From 849739772f282cad993d0369454f7c8620610dbf Mon Sep 17 00:00:00 2001 From: Cameron DeCoster Date: Thu, 16 Oct 2025 11:51:19 -0600 Subject: [PATCH 1/2] Add updates for release v3.1.2 --- CHANGELOG.md | 13 +++++++++++++ CITATION.cff | 4 ++-- README.md | 6 +++--- draftlogs/7249_add.md | 1 - draftlogs/7513_fix.md | 1 - draftlogs/7571_fix.md | 1 - draftlogs/7574_fix.md | 1 - draftlogs/7576_fix.md | 1 - draftlogs/7579_fix.md | 1 - 9 files changed, 18 insertions(+), 11 deletions(-) delete mode 100644 draftlogs/7249_add.md delete mode 100644 draftlogs/7513_fix.md delete mode 100644 draftlogs/7571_fix.md delete mode 100644 draftlogs/7574_fix.md delete mode 100644 draftlogs/7576_fix.md delete mode 100644 draftlogs/7579_fix.md diff --git a/CHANGELOG.md b/CHANGELOG.md index ba585961a91..c072094ccec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,19 @@ To see all merged commits on the master branch that will be part of the next plo where X.Y.Z is the semver of most recent plotly.js release. +## [3.1.2] -- 2025-10-16 + +### Added +- Add "SI extended" formatting rule for tick exponents on axis labels, allowing values to be displayed with extended SI prefixes (e.g., femto, pico, atto) [[#7249](https://github.com/plotly/plotly.js/pull/7249)], with thanks to @dberardi99 for the contribution! + +### Fixed +- Fix editable `title.text` for `ternary`, `polar`, `colorbar`, and `rangeslider` (regression introduced in 3.0.0) [[#7513](https://github.com/plotly/plotly.js/pull/7513)], with thanks to @Lexachoc for the contribution! +- Fix `layout.title.subtitle` does not properly clear/remove from the chart when `subtitle` object is not in place, or `subtitle.text` set to `null`, empty string, or whitespace-only values [[#7571](https://github.com/plotly/plotly.js/pull/7571)], with thanks to @cminn10 for the contribution! +- Fix issue where `visible` property of one legend was affecting another. [[#7574](https://github.com/plotly/plotly.js/pull/7574)] +- Resolve incorrect shape clipping for domain-referenced shapes on n*10th subplot. [[#7576](https://github.com/plotly/plotly.js/pull/7576)] +- Update config diff check method to handle nested arrays [[#7579](https://github.com/plotly/plotly.js/pull/7579)] + + ## [3.1.1] -- 2025-09-29 ### Fixed diff --git a/CITATION.cff b/CITATION.cff index fa9115d4b87..c46dd550e4a 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -9,7 +9,7 @@ authors: - family-names: "Samimi" given-names: "Mojtaba" title: "Open source Plotly charting library" -version: 3.1.1 +version: 3.1.2 doi: 10.5281/zenodo.13964707 -date-released: 2025-09-29 +date-released: 2025-10-16 url: "https://github.com/plotly/plotly.js" diff --git a/README.md b/README.md index b7b31c1ffc6..c3b70a72a2e 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo ```html - +
@@ -79,7 +79,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo Alternatively you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag. ```html ``` @@ -89,7 +89,7 @@ Fastly supports Plotly.js with free CDN service. Read more at + ``` > Please note that as of v2 the "plotly-latest" outputs (e.g. https://cdn.plot.ly/plotly-latest.min.js) will no longer be updated on the CDN, and will stay at the last v1 patch v1.58.5. Therefore, to use the CDN with plotly.js v2 and higher, you must specify an exact plotly.js version. diff --git a/draftlogs/7249_add.md b/draftlogs/7249_add.md deleted file mode 100644 index 2f289e3c8f5..00000000000 --- a/draftlogs/7249_add.md +++ /dev/null @@ -1 +0,0 @@ -- Add "SI extended" formatting rule for tick exponents on axis labels, allowing values to be displayed with extended SI prefixes (e.g., femto, pico, atto) [[#7249](https://github.com/plotly/plotly.js/pull/7249)] \ No newline at end of file diff --git a/draftlogs/7513_fix.md b/draftlogs/7513_fix.md deleted file mode 100644 index acb188240f8..00000000000 --- a/draftlogs/7513_fix.md +++ /dev/null @@ -1 +0,0 @@ -Fix editable `title.text` for `ternary`, `polar`, `colorbar`, and `rangeslider` (regression introduced in 3.0.0) [[#7513](https://github.com/plotly/plotly.js/pull/7513)] diff --git a/draftlogs/7571_fix.md b/draftlogs/7571_fix.md deleted file mode 100644 index c672c3db524..00000000000 --- a/draftlogs/7571_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Fix `layout.title.subtitle` does not properly clear/remove from the chart when `subtitle` object is not in place, or `subtitle.text` set to `null`, empty string, or whitespace-only values. [[#7571](https://github.com/plotly/plotly.js/pull/7571)] diff --git a/draftlogs/7574_fix.md b/draftlogs/7574_fix.md deleted file mode 100644 index 93e1c562198..00000000000 --- a/draftlogs/7574_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Fix issue where `visible` property of one legend was affecting another. [[#7574](https://github.com/plotly/plotly.js/pull/7574)] diff --git a/draftlogs/7576_fix.md b/draftlogs/7576_fix.md deleted file mode 100644 index 9f1c3d414c4..00000000000 --- a/draftlogs/7576_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Resolve incorrect shape clipping for domain-referenced shapes on n*10th subplot. [[#7576](https://github.com/plotly/plotly.js/pull/7576)] diff --git a/draftlogs/7579_fix.md b/draftlogs/7579_fix.md deleted file mode 100644 index f0ab5a99fdf..00000000000 --- a/draftlogs/7579_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Update config diff check method to handle nested arrays [[#7579](https://github.com/plotly/plotly.js/pull/7579)] From 2e95c4ceede81f1e965af7da1579294628e47375 Mon Sep 17 00:00:00 2001 From: Cameron DeCoster Date: Thu, 16 Oct 2025 11:52:00 -0600 Subject: [PATCH 2/2] 3.1.2 --- dist/README.md | 50 +++--- dist/plot-schema.json | 256 +++++++++++++++++----------- dist/plotly-basic.js | 303 +++++++++++++++------------------ dist/plotly-basic.min.js | 16 +- dist/plotly-cartesian.js | 309 ++++++++++++++++----------------- dist/plotly-cartesian.min.js | 62 +++---- dist/plotly-finance.js | 303 +++++++++++++++------------------ dist/plotly-finance.min.js | 16 +- dist/plotly-geo-assets.js | 4 +- dist/plotly-geo.js | 303 +++++++++++++++------------------ dist/plotly-geo.min.js | 16 +- dist/plotly-gl2d.js | 303 +++++++++++++++------------------ dist/plotly-gl2d.min.js | 84 ++++----- dist/plotly-gl3d.js | 303 +++++++++++++++------------------ dist/plotly-gl3d.min.js | 68 ++++---- dist/plotly-mapbox.js | 303 +++++++++++++++------------------ dist/plotly-mapbox.min.js | 60 +++---- dist/plotly-strict.js | 313 ++++++++++++++++------------------ dist/plotly-strict.min.js | 164 +++++++++--------- dist/plotly-with-meta.js | 319 ++++++++++++++++------------------- dist/plotly.js | 313 ++++++++++++++++------------------ dist/plotly.min.js | 170 +++++++++---------- package-lock.json | 4 +- package.json | 2 +- src/version.js | 2 +- 25 files changed, 1926 insertions(+), 2120 deletions(-) diff --git a/dist/README.md b/dist/README.md index 7fa3941c6cf..d856d2e0239 100644 --- a/dist/README.md +++ b/dist/README.md @@ -46,9 +46,9 @@ The main plotly.js bundles weight in at: | 10.7 MB | 4.6 MB | 1.4 MB | 11 MB | #### CDN links -> https://cdn.plot.ly/plotly-3.1.1.js +> https://cdn.plot.ly/plotly-3.1.2.js -> https://cdn.plot.ly/plotly-3.1.1.min.js +> https://cdn.plot.ly/plotly-3.1.2.min.js #### npm packages @@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`. | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 2.6 MB | 1.1 MB | 360.3 kB | +| 2.6 MB | 1.1 MB | 360.6 kB | #### CDN links -> https://cdn.plot.ly/plotly-basic-3.1.1.js +> https://cdn.plot.ly/plotly-basic-3.1.2.js -> https://cdn.plot.ly/plotly-basic-3.1.1.min.js +> https://cdn.plot.ly/plotly-basic-3.1.2.min.js #### npm packages @@ -114,12 +114,12 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, ` | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 3.3 MB | 1.3 MB | 458.5 kB | +| 3.3 MB | 1.3 MB | 458.6 kB | #### CDN links -> https://cdn.plot.ly/plotly-cartesian-3.1.1.js +> https://cdn.plot.ly/plotly-cartesian-3.1.2.js -> https://cdn.plot.ly/plotly-cartesian-3.1.1.min.js +> https://cdn.plot.ly/plotly-cartesian-3.1.2.min.js #### npm packages @@ -137,12 +137,12 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 2.9 MB | 1.2 MB | 410.3 kB | +| 2.9 MB | 1.2 MB | 410.6 kB | #### CDN links -> https://cdn.plot.ly/plotly-geo-3.1.1.js +> https://cdn.plot.ly/plotly-geo-3.1.2.js -> https://cdn.plot.ly/plotly-geo-3.1.1.min.js +> https://cdn.plot.ly/plotly-geo-3.1.2.min.js #### npm packages @@ -160,12 +160,12 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`, | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 4.2 MB | 1.6 MB | 525 kB | +| 4.2 MB | 1.6 MB | 525.1 kB | #### CDN links -> https://cdn.plot.ly/plotly-gl3d-3.1.1.js +> https://cdn.plot.ly/plotly-gl3d-3.1.2.js -> https://cdn.plot.ly/plotly-gl3d-3.1.1.min.js +> https://cdn.plot.ly/plotly-gl3d-3.1.2.min.js #### npm packages @@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `parcoords`, `scatter`, `scatte | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 3.8 MB | 1.5 MB | 517.2 kB | +| 3.8 MB | 1.5 MB | 517.3 kB | #### CDN links -> https://cdn.plot.ly/plotly-gl2d-3.1.1.js +> https://cdn.plot.ly/plotly-gl2d-3.1.2.js -> https://cdn.plot.ly/plotly-gl2d-3.1.1.min.js +> https://cdn.plot.ly/plotly-gl2d-3.1.2.min.js #### npm packages @@ -206,12 +206,12 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 4.5 MB | 1.8 MB | 575.8 kB | +| 4.5 MB | 1.8 MB | 575.9 kB | #### CDN links -> https://cdn.plot.ly/plotly-mapbox-3.1.1.js +> https://cdn.plot.ly/plotly-mapbox-3.1.2.js -> https://cdn.plot.ly/plotly-mapbox-3.1.1.min.js +> https://cdn.plot.ly/plotly-mapbox-3.1.2.min.js #### npm packages @@ -229,12 +229,12 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 2.9 MB | 1.2 MB | 394.4 kB | +| 2.9 MB | 1.2 MB | 394.8 kB | #### CDN links -> https://cdn.plot.ly/plotly-finance-3.1.1.js +> https://cdn.plot.ly/plotly-finance-3.1.2.js -> https://cdn.plot.ly/plotly-finance-3.1.1.min.js +> https://cdn.plot.ly/plotly-finance-3.1.2.min.js #### npm packages @@ -255,9 +255,9 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca | 11.5 MB | 4.9 MB | 1.5 MB | #### CDN links -> https://cdn.plot.ly/plotly-strict-3.1.1.js +> https://cdn.plot.ly/plotly-strict-3.1.2.js -> https://cdn.plot.ly/plotly-strict-3.1.1.min.js +> https://cdn.plot.ly/plotly-strict-3.1.2.min.js #### npm packages diff --git a/dist/plot-schema.json b/dist/plot-schema.json index dbc320a4631..618423414bf 100644 --- a/dist/plot-schema.json +++ b/dist/plot-schema.json @@ -1248,7 +1248,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -1258,7 +1258,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -5121,7 +5122,7 @@ }, "editType": "plot", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "plot", "valType": "enumerated", @@ -5131,7 +5132,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "gridcolor": { @@ -5813,7 +5815,7 @@ }, "editType": "plot", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "plot", "valType": "enumerated", @@ -5823,7 +5825,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "gridcolor": { @@ -7241,7 +7244,7 @@ }, "editType": "plot", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "plot", "valType": "enumerated", @@ -7251,7 +7254,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "gridcolor": { @@ -7980,7 +7984,7 @@ }, "editType": "plot", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "plot", "valType": "enumerated", @@ -7990,7 +7994,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "gridcolor": { @@ -8719,7 +8724,7 @@ }, "editType": "plot", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "plot", "valType": "enumerated", @@ -8729,7 +8734,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "gridcolor": { @@ -11132,7 +11138,7 @@ }, "editType": "plot", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "plot", "valType": "enumerated", @@ -11142,7 +11148,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "gridcolor": { @@ -11645,7 +11652,7 @@ }, "editType": "plot", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "plot", "valType": "enumerated", @@ -11655,7 +11662,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "gridcolor": { @@ -12164,7 +12172,7 @@ }, "editType": "plot", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "plot", "valType": "enumerated", @@ -12174,7 +12182,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "gridcolor": { @@ -13700,7 +13709,7 @@ }, "editType": "calc", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "ticks", "valType": "enumerated", @@ -13710,7 +13719,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "fixedrange": { @@ -15295,7 +15305,7 @@ }, "editType": "calc", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "ticks", "valType": "enumerated", @@ -15305,7 +15315,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "fixedrange": { @@ -17196,7 +17207,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -17206,7 +17217,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -19246,7 +19258,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -19256,7 +19268,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -22689,7 +22702,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "fixedrange": { @@ -23360,7 +23374,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "fixedrange": { @@ -24339,7 +24354,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -24349,7 +24364,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -25632,7 +25648,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -25642,7 +25658,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -26915,7 +26932,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -26925,7 +26942,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -28237,7 +28255,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -28247,7 +28265,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -29588,7 +29607,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -29598,7 +29617,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -31411,7 +31431,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -31421,7 +31441,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -32637,7 +32658,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -32647,7 +32668,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -33858,7 +33880,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -33868,7 +33890,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -35747,7 +35770,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -35757,7 +35780,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -38377,7 +38401,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -38387,7 +38411,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -40731,7 +40756,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -40741,7 +40766,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -42188,7 +42214,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -42198,7 +42224,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -43692,7 +43719,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -43702,7 +43729,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -46065,7 +46093,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -46075,7 +46103,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -48359,7 +48388,7 @@ }, "editType": "plot", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "plot", "valType": "enumerated", @@ -48369,7 +48398,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -49436,7 +49466,7 @@ }, "editType": "calc", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "calc", "valType": "enumerated", @@ -49446,7 +49476,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -50962,7 +50993,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -50972,7 +51003,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -53570,7 +53602,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -53580,7 +53612,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -54853,7 +54886,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -54863,7 +54896,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -59608,7 +59642,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -59618,7 +59652,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -62244,7 +62279,7 @@ }, "editType": "calc", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "calc", "valType": "enumerated", @@ -62254,7 +62289,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -62953,7 +62989,7 @@ }, "editType": "calc", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "calc", "valType": "enumerated", @@ -62963,7 +62999,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -64786,7 +64823,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -64796,7 +64833,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -67079,7 +67117,7 @@ }, "editType": "calc", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "calc", "valType": "enumerated", @@ -67089,7 +67127,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -69487,7 +69526,7 @@ }, "editType": "calc", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "calc", "valType": "enumerated", @@ -69497,7 +69536,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -71815,7 +71855,7 @@ }, "editType": "calc", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "calc", "valType": "enumerated", @@ -71825,7 +71865,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -73358,7 +73399,7 @@ }, "editType": "calc", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "calc", "valType": "enumerated", @@ -73368,7 +73409,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -74884,7 +74926,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -74894,7 +74936,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -77150,7 +77193,7 @@ }, "editType": "calc", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "calc", "valType": "enumerated", @@ -77160,7 +77203,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -79360,7 +79404,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -79370,7 +79414,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -81665,7 +81710,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -81675,7 +81720,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -83901,7 +83947,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -83911,7 +83957,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -85422,7 +85469,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -85432,7 +85479,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -87479,7 +87527,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -87489,7 +87537,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -88760,7 +88809,7 @@ }, "editType": "calc", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "calc", "valType": "enumerated", @@ -88770,7 +88819,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -92104,7 +92154,7 @@ }, "editType": "colorbars", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "colorbars", "valType": "enumerated", @@ -92114,7 +92164,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { @@ -95149,7 +95200,7 @@ }, "editType": "calc", "exponentformat": { - "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.", + "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. *SI* uses prefixes from \"femto\" f (10^-15) to \"tera\" T (10^12). *SI extended* covers instead the full SI range from \"quecto\" q (10^-30) to \"quetta\" Q (10^30). If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.", "dflt": "B", "editType": "calc", "valType": "enumerated", @@ -95159,7 +95210,8 @@ "E", "power", "SI", - "B" + "B", + "SI extended" ] }, "labelalias": { diff --git a/dist/plotly-basic.js b/dist/plotly-basic.js index 00b6baf760b..175af5f4264 100644 --- a/dist/plotly-basic.js +++ b/dist/plotly-basic.js @@ -1,5 +1,5 @@ /** -* plotly.js (basic) v3.1.1 +* plotly.js (basic) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -23,7 +23,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.1"; + exports.version = "3.1.2"; } }); @@ -13752,9 +13752,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -21427,7 +21427,7 @@ var Plotly = (() => { }, exponentformat: { valType: "enumerated", - values: ["none", "e", "E", "power", "SI", "B"], + values: ["none", "e", "E", "power", "SI", "B", "SI extended"], dflt: "B", editType: "ticks" }, @@ -25013,7 +25013,7 @@ var Plotly = (() => { var subtitleEnabled = !!subtitleProp; var subtitlePlaceholder = options.subtitlePlaceholder; var subtitle = (cont.title || {}).subtitle || { text: "", font: {} }; - var subtitleTxt = subtitle.text.trim(); + var subtitleTxt = (subtitle.text || "").trim(); var subtitleIsPlaceholder = false; var subtitleOpacity = 1; var subtitleFont = subtitle.font; @@ -25067,7 +25067,7 @@ var Plotly = (() => { var subtitleEl = null; var subtitleClass = titleClass + "-subtitle"; var subtitleElShouldExist = subtitleTxt || editable; - if (subtitleEnabled && subtitleElShouldExist) { + if (subtitleEnabled) { subtitleEl = group.selectAll("text." + subtitleClass).data(subtitleElShouldExist ? [0] : []); subtitleEl.enter().append("text"); subtitleEl.text(subtitleTxt).attr("class", subtitleClass); @@ -25118,7 +25118,7 @@ var Plotly = (() => { shadow: fontShadow, lineposition: fontLineposition }).attr(attributes).call(svgTextUtils.convertToTspans, gd, adjustSubtitlePosition); - if (subtitleEl2) { + if (subtitleEl2 && !subtitleEl2.empty()) { var titleElMathGroup = group.select("." + titleClass + "-math-group"); var titleElBbox2 = titleEl.node().getBBox(); var titleElMathBbox = titleElMathGroup.node() ? titleElMathGroup.node().getBBox() : void 0; @@ -25239,7 +25239,7 @@ var Plotly = (() => { } } el.classed("js-placeholder", titleIsPlaceholder); - if (subtitleEl) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); + if (subtitleEl && !subtitleEl.empty()) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); return group; } module.exports = { @@ -27558,7 +27558,7 @@ var Plotly = (() => { var rangeexp = Math.floor(Math.log(maxend) / Math.LN10 + 0.01); var minexponent = ax.minexponent === void 0 ? 3 : ax.minexponent; if (Math.abs(rangeexp) > minexponent) { - if (isSIFormat(ax.exponentformat) && !beyondSI(rangeexp)) { + if (isSIFormat(ax.exponentformat) && ax.exponentformat !== "SI extended" && !beyondSI(rangeexp) || isSIFormat(ax.exponentformat) && ax.exponentformat === "SI extended" && !beyondSIExtended(rangeexp)) { ax._tickexponent = 3 * Math.round((rangeexp - 1) / 3); } else ax._tickexponent = rangeexp; } @@ -27782,7 +27782,7 @@ var Plotly = (() => { var p = +parts[1]; var absP = Math.abs(p); var exponentFormat = ax.exponentformat; - if (exponentFormat === "power" || isSIFormat(exponentFormat) && beyondSI(p)) { + if (exponentFormat === "power" || isSIFormat(exponentFormat) && exponentFormat !== "SI extended" && beyondSI(p) || isSIFormat(exponentFormat) && exponentFormat === "SI extended" && beyondSIExtended(p)) { out.text = parts[0]; if (absP > 0) out.text += "x10"; if (out.text === "1x10") out.text = "10"; @@ -27898,12 +27898,20 @@ var Plotly = (() => { ]; } var SIPREFIXES = ["f", "p", "n", "\u03BC", "m", "", "k", "M", "G", "T"]; - function isSIFormat(exponentFormat) { - return exponentFormat === "SI" || exponentFormat === "B"; - } + var SIPREFIXES_EXTENDED = ["q", "r", "y", "z", "a", ...SIPREFIXES, "P", "E", "Z", "Y", "R", "Q"]; + var isSIFormat = (exponentFormat) => ["SI", "SI extended", "B"].includes(exponentFormat); function beyondSI(exponent) { return exponent > 14 || exponent < -15; } + function beyondSIExtended(exponent) { + return exponent > 32 || exponent < -30; + } + function shouldSwitchSIToPowerFormat(exponent, exponentFormat) { + if (!isSIFormat(exponentFormat)) return false; + if (exponentFormat === "SI extended" && beyondSIExtended(exponent)) return true; + if (exponentFormat !== "SI extended" && beyondSI(exponent)) return true; + return false; + } function numFormat(v, ax, fmtoverride, hover) { var isNeg = v < 0; var tickRound = ax._tickround; @@ -27951,7 +27959,7 @@ var Plotly = (() => { v = Lib.numSeparate(v, ax._separators, separatethousands); } if (exponent && exponentFormat !== "hide") { - if (isSIFormat(exponentFormat) && beyondSI(exponent)) exponentFormat = "power"; + if (shouldSwitchSIToPowerFormat(exponent, exponentFormat)) exponentFormat = "power"; var signedExponent; if (exponent < 0) signedExponent = MINUS_SIGN + -exponent; else if (exponentFormat !== "power") signedExponent = "+" + exponent; @@ -27963,7 +27971,7 @@ var Plotly = (() => { } else if (exponentFormat === "B" && exponent === 9) { v += "B"; } else if (isSIFormat(exponentFormat)) { - v += SIPREFIXES[exponent / 3 + 5]; + v += exponentFormat === "SI extended" ? SIPREFIXES_EXTENDED[exponent / 3 + 10] : SIPREFIXES[exponent / 3 + 5]; } } if (isNeg) return MINUS_SIGN + v; @@ -30248,9 +30256,11 @@ var Plotly = (() => { return Lib.coerce(traceIn, traceOut, plotsAttrs, attr, dflt); }; var globalFont = layoutOut.font || {}; - var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { overrideDflt: { - size: Math.round(globalFont.size * 1.1) - } }); + var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { + overrideDflt: { + size: Math.round(globalFont.size * 1.1) + } + }); var legendTraceCount = 0; var legendReallyHasATrace = false; var defaultOrder = "normal"; @@ -30397,7 +30407,7 @@ var Plotly = (() => { for (i = 0; i < legends.length; i++) { var legendId = legends[i]; groupDefaults(legendId, layoutIn, layoutOut, allLegendsData); - if (layoutOut[legendId] && layoutOut[legendId].visible) { + if (layoutOut[legendId]) { layoutOut[legendId]._id = legendId; } layoutOut._legends.push(legendId); @@ -36015,7 +36025,7 @@ var Plotly = (() => { } } function setClipPath(shapePath, gd, shapeOptions) { - var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][1-9]* *domain/g, ""); + var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][0-9]* *domain/g, ""); Drawing.setClipUrl( shapePath, clipAxes ? "clip" + gd._fullLayout._uid + clipAxes : null, @@ -43860,7 +43870,6 @@ var Plotly = (() => { "src/plot_api/helpers.js"(exports) { "use strict"; var isNumeric = require_fast_isnumeric(); - var m4FromQuat = require_fromQuat(); var Registry = require_registry(); var Lib = require_lib(); var Plots = require_plots(); @@ -43869,6 +43878,7 @@ var Plotly = (() => { var cleanId = AxisIds.cleanId; var getFromTrace = AxisIds.getFromTrace; var traceIs = Registry.traceIs; + var AX_LETTERS = ["x", "y", "z"]; exports.clearPromiseQueue = function(gd) { if (Array.isArray(gd._promises) && gd._promises.length > 0) { Lib.log("Clearing previous rejected promises from queue."); @@ -44035,12 +44045,7 @@ var Plotly = (() => { var increasingName = cleanFinanceDir(trace.increasing); var decreasingName = cleanFinanceDir(trace.decreasing); if (increasingName !== false && decreasingName !== false) { - var newName = commonPrefix( - increasingName, - decreasingName, - increasingShowlegend, - decreasingShowlegend - ); + var newName = commonPrefix(increasingName, decreasingName, increasingShowlegend, decreasingShowlegend); if (newName) trace.name = newName; } else if ((increasingName || decreasingName) && !trace.name) { trace.name = increasingName || decreasingName; @@ -44170,12 +44175,11 @@ var Plotly = (() => { } return false; }; - var axLetters = ["x", "y", "z"]; exports.clearAxisTypes = function(gd, traces, layoutUpdate) { for (var i = 0; i < traces.length; i++) { var trace = gd._fullData[i]; for (var j = 0; j < 3; j++) { - var ax = getFromTrace(gd, trace, axLetters[j]); + var ax = getFromTrace(gd, trace, AX_LETTERS[j]); if (ax && ax.type !== "log") { var axAttr = ax._name; var sceneName = ax._id.substr(1); @@ -44191,6 +44195,35 @@ var Plotly = (() => { } } }; + var collectionsAreEqual = (collection1, collection2) => { + const isArrayOrObject = (...vals) => vals.every((v) => Lib.isPlainObject(v)) || vals.every((v) => Array.isArray(v)); + if ([collection1, collection2].every((a) => Array.isArray(a))) { + if (collection1.length !== collection2.length) return false; + for (let i = 0; i < collection1.length; i++) { + const oldVal = collection1[i]; + const newVal = collection2[i]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } else if ([collection1, collection2].every((a) => Lib.isPlainObject(a))) { + if (Object.keys(collection1).length !== Object.keys(collection2).length) return false; + for (const k in collection1) { + if (k.startsWith("_")) continue; + const oldVal = collection1[k]; + const newVal = collection2[k]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } + return false; + }; + exports.collectionsAreEqual = collectionsAreEqual; } }); @@ -44298,21 +44331,28 @@ var Plotly = (() => { } } if (!fullLayout._glcanvas && fullLayout._has("gl")) { - fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data([{ - key: "contextLayer", - context: true, - pick: false - }, { - key: "focusLayer", - context: false, - pick: false - }, { - key: "pickLayer", - context: false, - pick: true - }], function(d) { - return d.key; - }); + fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data( + [ + { + key: "contextLayer", + context: true, + pick: false + }, + { + key: "focusLayer", + context: false, + pick: false + }, + { + key: "pickLayer", + context: false, + pick: true + } + ], + function(d) { + return d.key; + } + ); fullLayout._glcanvas.enter().append("canvas").attr("class", function(d) { return "gl-canvas gl-canvas-" + d.key.replace("Layer", ""); }).style({ @@ -44370,21 +44410,21 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([ - marginPushers, - subroutines.layoutStyles - ], gd); + return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); } function positionAndAutorange() { if (!recalc) { doAutoRangeAndConstraints(); return; } - return Lib.syncOrAsync([ - Registry.getComponentMethod("shapes", "calcAutorange"), - Registry.getComponentMethod("annotations", "calcAutorange"), - doAutoRangeAndConstraints - ], gd); + return Lib.syncOrAsync( + [ + Registry.getComponentMethod("shapes", "calcAutorange"), + Registry.getComponentMethod("annotations", "calcAutorange"), + doAutoRangeAndConstraints + ], + gd + ); } function doAutoRangeAndConstraints() { if (gd._transitioning) return; @@ -44395,28 +44435,19 @@ var Plotly = (() => { function drawAxes() { return Axes.draw(gd, graphWasEmpty ? "" : "redraw"); } - var seq = [ - Plots.previousPromises, - addFrames2, - drawFramework, - marginPushers, - marginPushersAgain - ]; + var seq = [Plots.previousPromises, addFrames2, drawFramework, marginPushers, marginPushersAgain]; if (hasCartesian) seq.push(positionAndAutorange); seq.push(subroutines.layoutStyles); if (hasCartesian) { - seq.push( - drawAxes, - function insideTickLabelsAutorange(gd2) { - var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; - if (insideTickLabelsUpdaterange) { - gd2._fullLayout._insideTickLabelsUpdaterange = void 0; - return relayout(gd2, insideTickLabelsUpdaterange).then(function() { - Axes.saveRangeInitial(gd2, true); - }); - } + seq.push(drawAxes, function insideTickLabelsAutorange(gd2) { + var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; + if (insideTickLabelsUpdaterange) { + gd2._fullLayout._insideTickLabelsUpdaterange = void 0; + return relayout(gd2, insideTickLabelsUpdaterange).then(function() { + Axes.saveRangeInitial(gd2, true); + }); } - ); + }); } seq.push( subroutines.drawData, @@ -44622,7 +44653,7 @@ var Plotly = (() => { } for (i = 0; i < traces.length; i++) { value = traces[i]; - if (typeof value !== "object" || (Array.isArray(value) || value === null)) { + if (typeof value !== "object" || Array.isArray(value) || value === null) { throw new Error("all values in traces array must be non-array objects"); } } @@ -44630,9 +44661,7 @@ var Plotly = (() => { newIndices = [newIndices]; } if (typeof newIndices !== "undefined" && newIndices.length !== traces.length) { - throw new Error( - "if indices is specified, traces.length must equal indices.length" - ); + throw new Error("if indices is specified, traces.length must equal indices.length"); } } function assertExtendTracesArgs(gd, update2, indices, maxPoints) { @@ -44652,7 +44681,9 @@ var Plotly = (() => { throw new Error("attribute " + key + " must be an array of length equal to indices array length"); } if (maxPointsIsObject && (!(key in maxPoints) || !Array.isArray(maxPoints[key]) || maxPoints[key].length !== update2[key].length)) { - throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object"); + throw new Error( + "when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object" + ); } } } @@ -44942,18 +44973,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - restyle, - [gd, specs.undoit, specs.traces], - restyle, - [gd, specs.redoit, specs.traces] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, restyle, [gd, specs.undoit, specs.traces], restyle, [gd, specs.redoit, specs.traces]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(); return plotDone.then(function() { @@ -45120,7 +45141,11 @@ var Plotly = (() => { var topOrBottom = orient === "top" || orient === "bottom"; if (finalPart === "thicknessmode") { var thicknorm = topOrBottom ? gs.h : gs.w; - doextra(prefixDot + "thickness", innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), i); + doextra( + prefixDot + "thickness", + innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), + i + ); } else { var lennorm = topOrBottom ? gs.w : gs.h; doextra(prefixDot + "len", innerContFull.len * (newVal === "fraction" ? 1 / lennorm : lennorm), i); @@ -45143,12 +45168,7 @@ var Plotly = (() => { } } undoit[ai][i] = undefinedToNull(oldVal); - var swapAttrs = [ - "swapxy", - "swapxyaxes", - "orientation", - "orientationaxes" - ]; + var swapAttrs = ["swapxy", "swapxyaxes", "orientation", "orientationaxes"]; if (swapAttrs.indexOf(ai) !== -1) { if (ai === "orientation") { param.set(newVal); @@ -45245,18 +45265,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - relayout, - [gd, specs.undoit], - relayout, - [gd, specs.redoit] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, relayout, [gd, specs.undoit], relayout, [gd, specs.redoit]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45496,7 +45506,7 @@ var Plotly = (() => { } else { if (ai === "dragmode" && (vi === false && vOld !== false || vi !== false && vOld === false)) { flags.plot = true; - } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && (ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select"))) { + } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select")) { flags.plot = true; } else if (valObject) editTypes.update(flags, valObject); else flags.calc = true; @@ -45583,18 +45593,13 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, update, [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], update, [ gd, - update, - [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], - update, - [gd, restyleSpecs.redoit, relayoutSpecs.redoit, restyleSpecs.traces] - ); + restyleSpecs.redoit, + relayoutSpecs.redoit, + restyleSpecs.traces + ]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45816,10 +45821,10 @@ var Plotly = (() => { } var configChanged = false; if (config) { - var oldConfig = Lib.extendDeep({}, gd._context); + const oldConfig = Lib.extendDeepAll({}, gd._context); gd._context = void 0; setPlotContext(gd, config); - configChanged = diffConfig(oldConfig, gd._context); + configChanged = !helpers.collectionsAreEqual(oldConfig, gd._context); } if (configChanged) { const eventListeners = gd._ev.eventNames().map((name2) => [name2, gd._ev.listeners(name2)]); @@ -45903,11 +45908,7 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); } @@ -46124,38 +46125,6 @@ var Plotly = (() => { } } } - function diffConfig(oldConfig, newConfig) { - var key; - for (key in oldConfig) { - if (key.charAt(0) === "_") continue; - var oldVal = oldConfig[key]; - var newVal = newConfig[key]; - if (oldVal !== newVal) { - if (Lib.isPlainObject(oldVal) && Lib.isPlainObject(newVal)) { - if (diffConfig(oldVal, newVal)) { - return true; - } - } else if (Array.isArray(oldVal) && Array.isArray(newVal)) { - if (oldVal.length !== newVal.length) { - return true; - } - for (var i = 0; i < oldVal.length; i++) { - if (oldVal[i] !== newVal[i]) { - if (Lib.isPlainObject(oldVal[i]) && Lib.isPlainObject(newVal[i])) { - if (diffConfig(oldVal[i], newVal[i])) { - return true; - } - } else { - return true; - } - } - } - } else { - return true; - } - } - } - } function animate(gd, frameOrGroupNameOrFrameList, animationOpts) { gd = Lib.getGraphDiv(gd); if (!Lib.isPlotDiv(gd)) { @@ -46424,9 +46393,13 @@ var Plotly = (() => { var collisionPresent = _frameHash[name] || _frameHashLocal[name]; if (name && newName && typeof newName === "number" && collisionPresent && numericNameWarningCount < numericNameWarningCountLimit) { numericNameWarningCount++; - Lib.warn('addFrames: overwriting frame "' + (_frameHash[name] || _frameHashLocal[name]).name + '" with a frame whose name of type "number" also equates to "' + name + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'); + Lib.warn( + 'addFrames: overwriting frame "' + (_frameHash[name] || _frameHashLocal[name]).name + '" with a frame whose name of type "number" also equates to "' + name + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.' + ); if (numericNameWarningCount === numericNameWarningCountLimit) { - Lib.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed."); + Lib.warn( + "addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed." + ); } } _frameHashLocal[lookupName] = { name: lookupName }; @@ -46446,7 +46419,9 @@ var Plotly = (() => { for (i = insertions.length - 1; i >= 0; i--) { frame = insertions[i].frame; if (typeof frame.name === "number") { - Lib.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"); + Lib.warn( + "Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings" + ); } if (!frame.name) { while (_frameHash[frame.name = "frame " + gd._transitionData._counter++]) ; @@ -56485,7 +56460,7 @@ var Plotly = (() => { if (axisOpts.side === "bottom") { Titles.draw(gd, axisOpts._id + "title", { propContainer: axisOpts, - propName: axisOpts._name + ".title", + propName: axisOpts._name + ".title.text", placeholder: fullLayout._dfltTitle.x, attributes: { x: axisOpts._offset + axisOpts._length / 2, @@ -58308,7 +58283,7 @@ var Plotly = (() => { function drawTitle(titleClass, titleOpts) { var dfltTitleOpts = { propContainer: ax, - propName: opts._propPrefix + "title", + propName: opts._propPrefix + "title.text", traceIndex: opts._traceIndex, _meta: opts._meta, placeholder: fullLayout._dfltTitle.colorbar, diff --git a/dist/plotly-basic.min.js b/dist/plotly-basic.min.js index 842f8442a0f..9ff08166a69 100644 --- a/dist/plotly-basic.min.js +++ b/dist/plotly-basic.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (basic - minified) v3.1.1 +* plotly.js (basic - minified) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,13 +12,13 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var Z=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var iv=Z(ib=>{"use strict";ib.version="3.1.1"});var ob=Z((lb,lv)=>{(function(r,t,a){t[r]=t[r]||a(),typeof lv!="undefined"&&lv.exports&&(lv.exports=t[r])})("Promise",typeof window!="undefined"?window:lb,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(w,T,b,A){return Object.defineProperty(w,T,{value:b,writable:!0,configurable:A!==!1})}}catch(_){r=function(T,b,A){return T[b]=A,T}}a=function(){var w,T,b;function A(C,k){this.fn=C,this.self=k,this.next=void 0}return{add:function(k,q){b=new A(k,q),T?T.next=b:w=b,T=b,b=void 0},drain:function(){var k=w;for(w=T=t=void 0;k;)k.fn.call(k.self),k=k.next}}}();function l(_,w){a.add(_,w),t||(t=i(a.drain))}function o(_){var w,T=typeof _;return _!=null&&(T=="object"||T=="function")&&(w=_.then),typeof w=="function"?w:!1}function s(){for(var _=0;_0&&l(s,T))}catch(b){v.call(new d(T),b)}}}function v(_){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=_,w.state=2,w.chain.length>0&&l(s,w))}function h(_,w,T,b){for(var A=0;A{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},a=self.document;function n(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(c){t=function(p){for(var x=p.length,M=new Array(x);x--;)M[x]=p[x];return M}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(p,x){o.call(this,p,x+"")},l.setAttributeNS=function(p,x,M){s.call(this,p,x,M+"")},u.setProperty=function(p,x,M){f.call(this,p,x+"",M)}}e.ascending=v;function v(c,p){return cp?1:c>=p?0:NaN}e.descending=function(c,p){return pc?1:p>=c?0:NaN},e.min=function(c,p){var x=-1,M=c.length,S,L;if(arguments.length===1){for(;++x=L){S=L;break}for(;++xL&&(S=L)}else{for(;++x=L){S=L;break}for(;++xL&&(S=L)}return S},e.max=function(c,p){var x=-1,M=c.length,S,L;if(arguments.length===1){for(;++x=L){S=L;break}for(;++xS&&(S=L)}else{for(;++x=L){S=L;break}for(;++xS&&(S=L)}return S},e.extent=function(c,p){var x=-1,M=c.length,S,L,P;if(arguments.length===1){for(;++x=L){S=P=L;break}for(;++xL&&(S=L),P=L){S=P=L;break}for(;++xL&&(S=L),P1)return P/(N-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(p,x,M,S){for(arguments.length<3&&(M=0),arguments.length<4&&(S=p.length);M>>1;c(p[L],x)<0?M=L+1:S=L}return M},right:function(p,x,M,S){for(arguments.length<3&&(M=0),arguments.length<4&&(S=p.length);M>>1;c(p[L],x)>0?S=L:M=L+1}return M}}}var g=m(v);e.bisectLeft=g.left,e.bisect=e.bisectRight=g.right,e.bisector=function(c){return m(c.length===1?function(p,x){return v(c(p),x)}:c)},e.shuffle=function(c,p,x){(M=arguments.length)<3&&(x=c.length,M<2&&(p=0));for(var M=x-p,S,L;M;)L=Math.random()*M--|0,S=c[M+p],c[M+p]=c[L+p],c[L+p]=S;return c},e.permute=function(c,p){for(var x=p.length,M=new Array(x);x--;)M[x]=c[p[x]];return M},e.pairs=function(c){for(var p=0,x=c.length-1,M,S=c[0],L=new Array(x<0?0:x);p=0;)for(P=c[p],x=P.length;--x>=0;)L[--S]=P[x];return L};var _=Math.abs;e.range=function(c,p,x){if(arguments.length<3&&(x=1,arguments.length<2&&(p=c,c=0)),(p-c)/x===1/0)throw new Error("infinite range");var M=[],S=w(_(x)),L=-1,P;if(c*=S,p*=S,x*=S,x<0)for(;(P=c+x*++L)>p;)M.push(P/S);else for(;(P=c+x*++L)=p.length)return S?S.call(c,N):M?N.sort(M):N;for(var W=-1,$=N.length,j=p[V++],de,_e,te,oe=new b,ce;++W<$;)(ce=oe.get(de=j(_e=N[W])))?ce.push(_e):oe.set(de,[_e]);return E?(_e=E(),te=function(xe,we){_e.set(xe,L(E,we,V))}):(_e={},te=function(xe,we){_e[xe]=L(E,we,V)}),oe.forEach(te),_e}function P(E,N){if(N>=p.length)return E;var V=[],W=x[N++];return E.forEach(function($,j){V.push({key:$,values:P(j,N)})}),W?V.sort(function($,j){return W($.key,j.key)}):V}return c.map=function(E,N){return L(N,E,0)},c.entries=function(E){return P(L(e.map,E,0),0)},c.key=function(E){return p.push(E),c},c.sortKeys=function(E){return x[p.length-1]=E,c},c.sortValues=function(E){return M=E,c},c.rollup=function(E){return S=E,c},c},e.set=function(c){var p=new O;if(c)for(var x=0,M=c.length;x=0&&(M=c.slice(x+1),c=c.slice(0,x)),c)return arguments.length<2?this[c].on(M):this[c].on(M,p);if(arguments.length===2){if(p==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(M,null);return this}};function Q(c){var p=[],x=new b;function M(){for(var S=p,L=-1,P=S.length,E;++L=0&&(x=c.slice(0,p))!=="xmlns"&&(c=c.slice(p+1)),ye.hasOwnProperty(x)?{space:ye[x],local:c}:c}},be.attr=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node();return c=e.ns.qualify(c),c.local?x.getAttributeNS(c.space,c.local):x.getAttribute(c)}for(p in c)this.each(Me(p,c[p]));return this}return this.each(Me(c,p))};function Me(c,p){c=e.ns.qualify(c);function x(){this.removeAttribute(c)}function M(){this.removeAttributeNS(c.space,c.local)}function S(){this.setAttribute(c,p)}function L(){this.setAttributeNS(c.space,c.local,p)}function P(){var N=p.apply(this,arguments);N==null?this.removeAttribute(c):this.setAttribute(c,N)}function E(){var N=p.apply(this,arguments);N==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,N)}return p==null?c.local?M:x:typeof p=="function"?c.local?E:P:c.local?L:S}function ge(c){return c.trim().replace(/\s+/g," ")}be.classed=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node(),M=(c=Ne(c)).length,S=-1;if(p=x.classList){for(;++S=0;)(L=x[M])&&(S&&S!==L.nextSibling&&S.parentNode.insertBefore(L,S),S=L);return this},be.sort=function(c){c=Te.apply(this,arguments);for(var p=-1,x=this.length;++p=p&&(p=S+1);!(N=P[p])&&++p0&&(c=c.slice(0,S));var P=Fe.get(c);P&&(c=P,L=Ge);function E(){var W=this[M];W&&(this.removeEventListener(c,W,W.$),delete this[M])}function N(){var W=L(p,t(arguments));E.call(this),this.addEventListener(c,this[M]=W,W.$=x),W._=p}function V(){var W=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),$;for(var j in this)if($=j.match(W)){var de=this[j];this.removeEventListener($[1],de,de.$),delete this[j]}}return S?p?N:E:p?G:V}var Fe=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Fe.forEach(function(c){"on"+c in a&&Fe.remove(c)});function We(c,p){return function(x){var M=e.event;e.event=x,p[0]=this.__data__;try{c.apply(this,p)}finally{e.event=M}}}function Ge(c,p){var x=We(c,p);return function(M){var S=this,L=M.relatedTarget;(!L||L!==S&&!(L.compareDocumentPosition(S)&8))&&x.call(S,M)}}var Je,je=0;function vr(c){var p=".dragsuppress-"+ ++je,x="click"+p,M=e.select(i(c)).on("touchmove"+p,ie).on("dragstart"+p,ie).on("selectstart"+p,ie);if(Je==null&&(Je="onselectstart"in c?!1:U(c.style,"userSelect")),Je){var S=n(c).style,L=S[Je];S[Je]="none"}return function(P){if(M.on(p,null),Je&&(S[Je]=L),P){var E=function(){M.on(x,null)};M.on(x,function(){ie(),E()},!0),setTimeout(E,0)}}}e.mouse=function(c){return Pe(c,pe())};var Ke=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Pe(c,p){p.changedTouches&&(p=p.changedTouches[0]);var x=c.ownerSVGElement||c;if(x.createSVGPoint){var M=x.createSVGPoint();if(Ke<0){var S=i(c);if(S.scrollX||S.scrollY){x=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=x[0][0].getScreenCTM();Ke=!(L.f||L.e),x.remove()}}return Ke?(M.x=p.pageX,M.y=p.pageY):(M.x=p.clientX,M.y=p.clientY),M=M.matrixTransform(c.getScreenCTM().inverse()),[M.x,M.y]}var P=c.getBoundingClientRect();return[p.clientX-P.left-c.clientLeft,p.clientY-P.top-c.clientTop]}e.touch=function(c,p,x){if(arguments.length<3&&(x=p,p=pe().changedTouches),p){for(var M=0,S=p.length,L;M0?1:c<0?-1:0}function Qr(c,p,x){return(p[0]-c[0])*(x[1]-c[1])-(p[1]-c[1])*(x[0]-c[0])}function Kt(c){return c>1?0:c<-1?Ce:Math.acos(c)}function qt(c){return c>1?ar:c<-1?-ar:Math.asin(c)}function yt(c){return((c=Math.exp(c))-1/c)/2}function At(c){return((c=Math.exp(c))+1/c)/2}function ua(c){return((c=Math.exp(2*c))-1)/(c+1)}function fa(c){return(c=Math.sin(c/2))*c}var zt=Math.SQRT2,Oa=2,yr=4;e.interpolateZoom=function(c,p){var x=c[0],M=c[1],S=c[2],L=p[0],P=p[1],E=p[2],N=L-x,V=P-M,W=N*N+V*V,$,j;if(W0&&(er=er.transition().duration(P)),er.call(we.event)}function hr(){oe&&oe.domain(te.range().map(function(er){return(er-c.x)/c.k}).map(te.invert)),xe&&xe.domain(ce.range().map(function(er){return(er-c.y)/c.k}).map(ce.invert))}function dr(er){E++||er({type:"zoomstart"})}function Cr(er){hr(),er({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function pr(er){--E||(er({type:"zoomend"}),x=null)}function Tr(){var er=this,Lr=_e.of(er,arguments),qr=0,Kr=e.select(i(er)).on(V,da).on(W,Da),wt=he(e.mouse(er)),Ut=vr(er);rv.call(er),dr(Lr);function da(){qr=1,sr(e.mouse(er),wt),Cr(Lr)}function Da(){Kr.on(V,null).on(W,null),Ut(qr),pr(Lr)}}function Jr(){var er=this,Lr=_e.of(er,arguments),qr={},Kr=0,wt,Ut=".zoom-"+e.event.changedTouches[0].identifier,da="touchmove"+Ut,Da="touchend"+Ut,Ba=[],Ea=e.select(er),Ga=vr(er);Va(),dr(Lr),Ea.on(N,null).on(j,Va);function wa(){var Yn=e.touches(er);return wt=c.k,Yn.forEach(function(pa){pa.identifier in qr&&(qr[pa.identifier]=he(pa))}),Yn}function Va(){var Yn=e.event.target;e.select(Yn).on(da,Jl).on(Da,KF),Ba.push(Yn);for(var pa=e.event.changedTouches,yn=0,vi=pa.length;yn1){var Kl=gn[0],al=gn[1],nv=Kl[0]-al[0],nb=Kl[1]-al[1];Kr=nv*nv+nb*nb}}function Jl(){var Yn=e.touches(er),pa,yn,vi,gn;rv.call(er);for(var ls=0,Kl=Yn.length;ls1?1:p,x=x<0?0:x>1?1:x,S=x<=.5?x*(1+p):x+p-x*p,M=2*x-S;function L(E){return E>360?E-=360:E<0&&(E+=360),E<60?M+(S-M)*E/60:E<180?S:E<240?M+(S-M)*(240-E)/60:M}function P(E){return Math.round(L(E)*255)}return new qa(P(c+120),P(c),P(c-120))}e.hcl=na;function na(c,p,x){return this instanceof na?(this.h=+c,this.c=+p,void(this.l=+x)):arguments.length<2?c instanceof na?new na(c.h,c.c,c.l):c instanceof Qt?Rc(c.l,c.a,c.b):Rc((c=ir((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new na(c,p,x)}var In=na.prototype=new kt;In.brighter=function(c){return new na(this.h,this.c,Math.min(100,this.l+nt*(arguments.length?c:1)))},In.darker=function(c){return new na(this.h,this.c,Math.max(0,this.l-nt*(arguments.length?c:1)))},In.rgb=function(){return Hn(this.h,this.c,this.l).rgb()};function Hn(c,p,x){return isNaN(c)&&(c=0),isNaN(p)&&(p=0),new Qt(x,Math.cos(c*=Mr)*p,Math.sin(c)*p)}e.lab=Qt;function Qt(c,p,x){return this instanceof Qt?(this.l=+c,this.a=+p,void(this.b=+x)):arguments.length<2?c instanceof Qt?new Qt(c.l,c.a,c.b):c instanceof na?Hn(c.h,c.c,c.l):ir((c=qa(c)).r,c.g,c.b):new Qt(c,p,x)}var nt=18,ca=.95047,Ul=1,Gl=1.08883,rl=Qt.prototype=new kt;rl.brighter=function(c){return new Qt(Math.min(100,this.l+nt*(arguments.length?c:1)),this.a,this.b)},rl.darker=function(c){return new Qt(Math.max(0,this.l-nt*(arguments.length?c:1)),this.a,this.b)},rl.rgb=function(){return Pc(this.l,this.a,this.b)};function Pc(c,p,x){var M=(c+16)/116,S=M+p/500,L=M-x/200;return S=ku(S)*ca,M=ku(M)*Ul,L=ku(L)*Gl,new qa(Cu(3.2404542*S-1.5371385*M-.4985314*L),Cu(-.969266*S+1.8760108*M+.041556*L),Cu(.0556434*S-.2040259*M+1.0572252*L))}function Rc(c,p,x){return c>0?new na(Math.atan2(x,p)*Br,Math.sqrt(p*p+x*x),c):new na(NaN,NaN,c)}function ku(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function Su(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Cu(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=qa;function qa(c,p,x){return this instanceof qa?(this.r=~~c,this.g=~~p,void(this.b=~~x)):arguments.length<2?c instanceof qa?new qa(c.r,c.g,c.b):Wr(""+c,qa,La):new qa(c,p,x)}function zc(c){return new qa(c>>16,c>>8&255,c&255)}function $o(c){return zc(c)+""}var jo=qa.prototype=new kt;jo.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var p=this.r,x=this.g,M=this.b,S=30;return!p&&!x&&!M?new qa(S,S,S):(p&&p>4,M=M>>4|M,S=N&240,S=S>>4|S,L=N&15,L=L<<4|L):c.length===7&&(M=(N&16711680)>>16,S=(N&65280)>>8,L=N&255)),p(M,S,L))}function $r(c,p,x){var M=Math.min(c/=255,p/=255,x/=255),S=Math.max(c,p,x),L=S-M,P,E,N=(S+M)/2;return L?(E=N<.5?L/(S+M):L/(2-S-M),c==S?P=(p-x)/L+(p0&&N<1?0:P),new ot(P,E,N)}function ir(c,p,x){c=va(c),p=va(p),x=va(x);var M=Su((.4124564*c+.3575761*p+.1804375*x)/ca),S=Su((.2126729*c+.7151522*p+.072175*x)/Ul),L=Su((.0193339*c+.119192*p+.9503041*x)/Gl);return Qt(116*S-16,500*(M-S),200*(S-L))}function va(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function st(c){var p=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(p*2.55):p}var ha=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});ha.forEach(function(c,p){ha.set(c,zc(p))});function Rr(c){return typeof c=="function"?c:function(){return c}}e.functor=Rr,e.xhr=On(X);function On(c){return function(p,x,M){return arguments.length===2&&typeof x=="function"&&(M=x,x=null),Vl(p,x,c,M)}}function Vl(c,p,x,M){var S={},L=e.dispatch("beforesend","progress","load","error"),P={},E=new XMLHttpRequest,N=null;self.XDomainRequest&&!("withCredentials"in E)&&/^(http(s)?:)?\/\//.test(c)&&(E=new XDomainRequest),"onload"in E?E.onload=E.onerror=V:E.onreadystatechange=function(){E.readyState>3&&V()};function V(){var W=E.status,$;if(!W&&$z(E)||W>=200&&W<300||W===304){try{$=x.call(S,E)}catch(j){L.error.call(S,j);return}L.load.call(S,$)}else L.error.call(S,E)}return E.onprogress=function(W){var $=e.event;e.event=W;try{L.progress.call(S,E)}finally{e.event=$}},S.header=function(W,$){return W=(W+"").toLowerCase(),arguments.length<2?P[W]:($==null?delete P[W]:P[W]=$+"",S)},S.mimeType=function(W){return arguments.length?(p=W==null?null:W+"",S):p},S.responseType=function(W){return arguments.length?(N=W,S):N},S.response=function(W){return x=W,S},["get","post"].forEach(function(W){S[W]=function(){return S.send.apply(S,[W].concat(t(arguments)))}}),S.send=function(W,$,j){if(arguments.length===2&&typeof $=="function"&&(j=$,$=null),E.open(W,c,!0),p!=null&&!("accept"in P)&&(P.accept=p+",*/*"),E.setRequestHeader)for(var de in P)E.setRequestHeader(de,P[de]);return p!=null&&E.overrideMimeType&&E.overrideMimeType(p),N!=null&&(E.responseType=N),j!=null&&S.on("error",j).on("load",function(_e){j(null,_e)}),L.beforesend.call(S,E),E.send($==null?null:$),S},S.abort=function(){return E.abort(),S},e.rebind(S,L,"on"),M==null?S:S.get(Qz(M))}function Qz(c){return c.length===1?function(p,x){c(p==null?x:null)}:c}function $z(c){var p=c.responseType;return p&&p!=="text"?c.response:c.responseText}e.dsv=function(c,p){var x=new RegExp('["'+c+` -]`),M=c.charCodeAt(0);function S(V,W,$){arguments.length<3&&($=W,W=null);var j=Vl(V,p,W==null?L:P(W),$);return j.row=function(de){return arguments.length?j.response((W=de)==null?L:P(de)):W},j}function L(V){return S.parse(V.responseText)}function P(V){return function(W){return S.parse(W.responseText,V)}}S.parse=function(V,W){var $;return S.parseRows(V,function(j,de){if($)return $(j,de-1);var _e=function(te){for(var oe={},ce=j.length,xe=0;xe=_e)return j;if(xe)return xe=!1,$;var Be=te;if(V.charCodeAt(Be)===34){for(var tr=Be;tr++<_e;)if(V.charCodeAt(tr)===34){if(V.charCodeAt(tr+1)!==34)break;++tr}te=tr+2;var sr=V.charCodeAt(tr+1);return sr===13?(xe=!0,V.charCodeAt(tr+2)===10&&++te):sr===10&&(xe=!0),V.slice(Be+1,tr).replace(/""/g,'"')}for(;te<_e;){var sr=V.charCodeAt(te++),nr=1;if(sr===10)xe=!0;else if(sr===13)xe=!0,V.charCodeAt(te)===10&&(++te,++nr);else if(sr!==M)continue;return V.slice(Be,te-nr)}return V.slice(Be)}for(;(ce=we())!==j;){for(var he=[];ce!==$&&ce!==j;)he.push(ce),ce=we();W&&(he=W(he,oe++))==null||de.push(he)}return de},S.format=function(V){if(Array.isArray(V[0]))return S.formatRows(V);var W=new O,$=[];return V.forEach(function(j){for(var de in j)W.has(de)||$.push(W.add(de))}),[$.map(N).join(c)].concat(V.map(function(j){return $.map(function(de){return N(j[de])}).join(c)})).join(` -`)},S.formatRows=function(V){return V.map(E).join(` -`)};function E(V){return V.map(N).join(c)}function N(V){return x.test(V)?'"'+V.replace(/\"/g,'""')+'"':V}return S},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Nc,Fc,Ic,Hc,G3=this[U(this,"requestAnimationFrame")]||function(c){setTimeout(c,17)};e.timer=function(){Oc.apply(this,arguments)};function Oc(c,p,x){var M=arguments.length;M<2&&(p=0),M<3&&(x=Date.now());var S=x+p,L={c,t:S,n:null};return Fc?Fc.n=L:Nc=L,Fc=L,Ic||(Hc=clearTimeout(Hc),Ic=1,G3(v1)),L}function v1(){var c=V3(),p=W3()-c;p>24?(isFinite(p)&&(clearTimeout(Hc),Hc=setTimeout(v1,p)),Ic=0):(Ic=1,G3(v1))}e.timer.flush=function(){V3(),W3()};function V3(){for(var c=Date.now(),p=Nc;p;)c>=p.t&&p.c(c-p.t)&&(p.c=null),p=p.n;return c}function W3(){for(var c,p=Nc,x=1/0;p;)p.c?(p.t=0;--E)te.push(S[V[$[E]][2]]);for(E=+de;E1&&Qr(c[x[M-2]],c[x[M-1]],c[S])<=0;)--M;x[M++]=S}return x.slice(0,M)}function jz(c,p){return c[0]-p[0]||c[1]-p[1]}e.geom.polygon=function(c){return re(c,Bc),c};var Bc=e.geom.polygon.prototype=[];Bc.area=function(){for(var c=-1,p=this.length,x,M=this[p-1],S=0;++cue)E=E.L;else if(P=p-aN(E,x),P>ue){if(!E.R){M=E;break}E=E.R}else{L>-ue?(M=E.P,S=E):P>-ue?(M=E,S=E.N):M=S=E;break}var N=Q3(c);if(ts.insert(M,N),!(!M&&!S)){if(M===S){ns(M),S=Q3(M.site),ts.insert(N,S),N.edge=S.edge=Du(M.site,N.site),as(M),as(S);return}if(!S){N.edge=Du(M.site,N.site);return}ns(M),ns(S);var V=M.site,W=V.x,$=V.y,j=c.x-W,de=c.y-$,_e=S.site,te=_e.x-W,oe=_e.y-$,ce=2*(j*oe-de*te),xe=j*j+de*de,we=te*te+oe*oe,he={x:(oe*xe-de*we)/ce+W,y:(j*we-te*xe)/ce+$};Yc(S.edge,V,_e,he),N.edge=Du(V,c,null,he),S.edge=Du(c,_e,null,he),as(M),as(S)}}function $3(c,p){var x=c.site,M=x.x,S=x.y,L=S-p;if(!L)return M;var P=c.P;if(!P)return-1/0;x=P.site;var E=x.x,N=x.y,V=N-p;if(!V)return E;var W=E-M,$=1/L-1/V,j=W/V;return $?(-j+Math.sqrt(j*j-2*$*(W*W/(-2*V)-N+V/2+S-L/2)))/$+M:(M+E)/2}function aN(c,p){var x=c.N;if(x)return $3(x,p);var M=c.site;return M.y===p?M.x:1/0}function j3(c){this.site=c,this.edges=[]}j3.prototype.prepare=function(){for(var c=this.edges,p=c.length,x;p--;)x=c[p].edge,(!x.b||!x.a)&&c.splice(p,1);return c.sort(e5),c.length};function nN(c){for(var p=c[0][0],x=c[1][0],M=c[0][1],S=c[1][1],L,P,E,N,V=Wl,W=V.length,$,j,de,_e,te,oe;W--;)if($=V[W],!(!$||!$.prepare()))for(de=$.edges,_e=de.length,j=0;j<_e;)oe=de[j].end(),E=oe.x,N=oe.y,te=de[++j%_e].start(),L=te.x,P=te.y,(_(E-L)>ue||_(N-P)>ue)&&(de.splice(j,0,new Uc(uN($.site,oe,_(E-p)ue?{x:p,y:_(L-p)ue?{x:_(P-S)ue?{x,y:_(L-x)ue?{x:_(P-M)=-qe)){var j=N*N+V*V,de=W*W+oe*oe,_e=(oe*j-V*de)/$,te=(N*de-W*j)/$,oe=te+E,ce=K3.pop()||new iN;ce.arc=c,ce.site=S,ce.x=_e+P,ce.y=oe+Math.sqrt(_e*_e+te*te),ce.cy=oe,c.circle=ce;for(var xe=null,we=qu._;we;)if(ce.y0)){if(te/=de,de<0){if(te<$)return;te0){if(te>j)return;te>$&&($=te)}if(te=x-E,!(!de&&te<0)){if(te/=de,de<0){if(te>j)return;te>$&&($=te)}else if(de>0){if(te<$)return;te0)){if(te/=_e,_e<0){if(te<$)return;te0){if(te>j)return;te>$&&($=te)}if(te=M-N,!(!_e&&te<0)){if(te/=_e,_e<0){if(te>j)return;te>$&&($=te)}else if(_e>0){if(te<$)return;te0&&(S.a={x:E+$*de,y:N+$*_e}),j<1&&(S.b={x:E+j*de,y:N+j*_e}),S}}}}}}function oN(c){for(var p=rs,x=lN(c[0][0],c[0][1],c[1][0],c[1][1]),M=p.length,S;M--;)S=p[M],(!sN(S,c)||!x(S)||_(S.a.x-S.b.x)=L)return;if(W>j){if(!M)M={x:_e,y:P};else if(M.y>=E)return;x={x:_e,y:E}}else{if(!M)M={x:_e,y:E};else if(M.y1)if(W>j){if(!M)M={x:(P-ce)/oe,y:P};else if(M.y>=E)return;x={x:(E-ce)/oe,y:E}}else{if(!M)M={x:(E-ce)/oe,y:E};else if(M.y=L)return;x={x:L,y:oe*L+ce}}else{if(!M)M={x:L,y:oe*L+ce};else if(M.x=W&&ce.x<=j&&ce.y>=$&&ce.y<=de?[[W,de],[j,de],[j,$],[W,$]]:[];xe.point=N[te]}),V}function E(N){return N.map(function(V,W){return{x:Math.round(M(V,W)/ue)*ue,y:Math.round(S(V,W)/ue)*ue,i:W}})}return P.links=function(N){return g1(E(N)).edges.filter(function(V){return V.l&&V.r}).map(function(V){return{source:N[V.l.i],target:N[V.r.i]}})},P.triangles=function(N){var V=[];return g1(E(N)).cells.forEach(function(W,$){for(var j=W.site,de=W.edges.sort(e5),_e=-1,te=de.length,oe,ce,xe=de[te-1].edge,we=xe.l===j?xe.r:xe.l;++_ewe&&(we=W.x),W.y>he&&(he=W.y),de.push(W.x),_e.push(W.y);else for(te=0;tewe&&(we=Be),tr>he&&(he=tr),de.push(Be),_e.push(tr)}var sr=we-ce,nr=he-xe;sr>nr?he=xe+sr:we=ce+nr;function hr(pr,Tr,Jr,Dt,rt,er,Lr,qr){if(!(isNaN(Jr)||isNaN(Dt)))if(pr.leaf){var Kr=pr.x,wt=pr.y;if(Kr!=null)if(_(Kr-Jr)+_(wt-Dt)<.01)dr(pr,Tr,Jr,Dt,rt,er,Lr,qr);else{var Ut=pr.point;pr.x=pr.y=pr.point=null,dr(pr,Ut,Kr,wt,rt,er,Lr,qr),dr(pr,Tr,Jr,Dt,rt,er,Lr,qr)}else pr.x=Jr,pr.y=Dt,pr.point=Tr}else dr(pr,Tr,Jr,Dt,rt,er,Lr,qr)}function dr(pr,Tr,Jr,Dt,rt,er,Lr,qr){var Kr=(rt+Lr)*.5,wt=(er+qr)*.5,Ut=Jr>=Kr,da=Dt>=wt,Da=da<<1|Ut;pr.leaf=!1,pr=pr.nodes[Da]||(pr.nodes[Da]=a5()),Ut?rt=Kr:Lr=Kr,da?er=wt:qr=wt,hr(pr,Tr,Jr,Dt,rt,er,Lr,qr)}var Cr=a5();if(Cr.add=function(pr){hr(Cr,pr,+$(pr,++te),+j(pr,te),ce,xe,we,he)},Cr.visit=function(pr){Ru(pr,Cr,ce,xe,we,he)},Cr.find=function(pr){return dN(Cr,pr[0],pr[1],ce,xe,we,he)},te=-1,p==null){for(;++teL||j>P||de=Be,nr=x>=tr,hr=nr<<1|sr,dr=hr+4;hrx&&(L=p.slice(x,L),E[P]?E[P]+=L:E[++P]=L),(M=M[0])===(S=S[0])?E[P]?E[P]+=S:E[++P]=S:(E[++P]=null,N.push({i:P,x:zi(M,S)})),x=_1.lastIndex;return x=0&&!(M=e.interpolators[x](c,p)););return M}e.interpolators=[function(c,p){var x=typeof p;return(x==="string"?ha.has(p.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(p)?b1:i5:p instanceof kt?b1:Array.isArray(p)?Wc:x==="object"&&isNaN(p)?n5:zi)(c,p)}],e.interpolateArray=Wc;function Wc(c,p){var x=[],M=[],S=c.length,L=p.length,P=Math.min(c.length,p.length),E;for(E=0;E=0?c.slice(0,p):c,M=p>=0?c.slice(p+1):"in";return x=pN.get(x)||l5,M=mN.get(M)||X,yN(M(x.apply(null,r.call(arguments,1))))};function yN(c){return function(p){return p<=0?0:p>=1?1:c(p)}}function o5(c){return function(p){return 1-c(1-p)}}function s5(c){return function(p){return .5*(p<.5?c(2*p):2-c(2-2*p))}}function gN(c){return c*c}function bN(c){return c*c*c}function xN(c){if(c<=0)return 0;if(c>=1)return 1;var p=c*c,x=p*c;return 4*(c<.5?x:3*(c-p)+x-.75)}function _N(c){return function(p){return Math.pow(p,c)}}function wN(c){return 1-Math.cos(c*ar)}function TN(c){return Math.pow(2,10*(c-1))}function MN(c){return 1-Math.sqrt(1-c*c)}function AN(c,p){var x;return arguments.length<2&&(p=.45),arguments.length?x=p/or*Math.asin(1/c):(c=1,x=p/4),function(M){return 1+c*Math.pow(2,-10*M)*Math.sin((M-x)*or/p)}}function kN(c){return c||(c=1.70158),function(p){return p*p*((c+1)*p-c)}}function SN(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375}e.interpolateHcl=CN;function CN(c,p){c=e.hcl(c),p=e.hcl(p);var x=c.h,M=c.c,S=c.l,L=p.h-x,P=p.c-M,E=p.l-S;return isNaN(P)&&(P=0,M=isNaN(M)?p.c:M),isNaN(L)?(L=0,x=isNaN(x)?p.h:x):L>180?L-=360:L<-180&&(L+=360),function(N){return Hn(x+L*N,M+P*N,S+E*N)+""}}e.interpolateHsl=LN;function LN(c,p){c=e.hsl(c),p=e.hsl(p);var x=c.h,M=c.s,S=c.l,L=p.h-x,P=p.s-M,E=p.l-S;return isNaN(P)&&(P=0,M=isNaN(M)?p.s:M),isNaN(L)?(L=0,x=isNaN(x)?p.h:x):L>180?L-=360:L<-180&&(L+=360),function(N){return La(x+L*N,M+P*N,S+E*N)+""}}e.interpolateLab=qN;function qN(c,p){c=e.lab(c),p=e.lab(p);var x=c.l,M=c.a,S=c.b,L=p.l-x,P=p.a-M,E=p.b-S;return function(N){return Pc(x+L*N,M+P*N,S+E*N)+""}}e.interpolateRound=u5;function u5(c,p){return p-=c,function(x){return Math.round(c+p*x)}}e.transform=function(c){var p=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(x){if(x!=null){p.setAttribute("transform",x);var M=p.transform.baseVal.consolidate()}return new f5(M?M.matrix:EN)})(c)};function f5(c){var p=[c.a,c.b],x=[c.c,c.d],M=v5(p),S=c5(p,x),L=v5(DN(x,p,-S))||0;p[0]*x[1]180?p+=360:p-c>180&&(c+=360),M.push({i:x.push(is(x)+"rotate(",null,")")-2,x:zi(c,p)})):p&&x.push(is(x)+"rotate("+p+")")}function zN(c,p,x,M){c!==p?M.push({i:x.push(is(x)+"skewX(",null,")")-2,x:zi(c,p)}):p&&x.push(is(x)+"skewX("+p+")")}function NN(c,p,x,M){if(c[0]!==p[0]||c[1]!==p[1]){var S=x.push(is(x)+"scale(",null,",",null,")");M.push({i:S-4,x:zi(c[0],p[0])},{i:S-2,x:zi(c[1],p[1])})}else(p[0]!==1||p[1]!==1)&&x.push(is(x)+"scale("+p+")")}function h5(c,p){var x=[],M=[];return c=e.transform(c),p=e.transform(p),PN(c.translate,p.translate,x,M),RN(c.rotate,p.rotate,x,M),zN(c.skew,p.skew,x,M),NN(c.scale,p.scale,x,M),c=p=null,function(S){for(var L=-1,P=M.length,E;++L0?L=he:(x.c=null,x.t=NaN,x=null,p.end({type:"end",alpha:L=0})):he>0&&(p.start({type:"start",alpha:L=he}),x=Oc(c.tick)),c):L},c.start=function(){var he,Be=de.length,tr=_e.length,sr=M[0],nr=M[1],hr,dr;for(he=0;he=0;)L.push(W=V[N]),W.parent=E,W.depth=E.depth+1;x&&(E.value=0),E.children=V}else x&&(E.value=+x.call(M,E,E.depth)||0),delete E.children;return ci(S,function($){var j,de;c&&(j=$.children)&&j.sort(c),x&&(de=$.parent)&&(de.value+=$.value)}),P}return M.sort=function(S){return arguments.length?(c=S,M):c},M.children=function(S){return arguments.length?(p=S,M):p},M.value=function(S){return arguments.length?(x=S,M):x},M.revalue=function(S){return x&&(Nu(S,function(L){L.children&&(L.value=0)}),ci(S,function(L){var P;L.children||(L.value=+x.call(M,L,L.depth)||0),(P=L.parent)&&(P.value+=L.value)})),S},M};function zu(c,p){return e.rebind(c,p,"sort","children","value"),c.nodes=c,c.links=QN,c}function Nu(c,p){for(var x=[c];(c=x.pop())!=null;)if(p(c),(S=c.children)&&(M=S.length))for(var M,S;--M>=0;)x.push(S[M])}function ci(c,p){for(var x=[c],M=[];(c=x.pop())!=null;)if(M.push(c),(P=c.children)&&(L=P.length))for(var S=-1,L,P;++SS&&(S=E),M.push(E)}for(P=0;PM&&(x=p,M=S);return x}function nF(c){return c.reduce(iF,0)}function iF(c,p){return c+p[1]}e.layout.histogram=function(){var c=!0,p=Number,x=oF,M=lF;function S(L,j){for(var E=[],N=L.map(p,this),V=x.call(this,N,j),W=M.call(this,V,N,j),$,j=-1,de=N.length,_e=W.length-1,te=c?1:1/de,oe;++j<_e;)$=E[j]=[],$.dx=W[j+1]-($.x=W[j]),$.y=0;if(_e>0)for(j=-1;++j=V[0]&&oe<=V[1]&&($=E[e.bisect(W,oe,1,_e)-1],$.y+=te,$.push(L[j]));return E}return S.value=function(L){return arguments.length?(p=L,S):p},S.range=function(L){return arguments.length?(x=Rr(L),S):x},S.bins=function(L){return arguments.length?(M=typeof L=="number"?function(P){return y5(P,L)}:Rr(L),S):M},S.frequency=function(L){return arguments.length?(c=!!L,S):c},S};function lF(c,p){return y5(c,Math.ceil(Math.log(p.length)/Math.LN2+1))}function y5(c,p){for(var x=-1,M=+c[0],S=(c[1]-M)/p,L=[];++x<=p;)L[x]=S*x+M;return L}function oF(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(sF),p=0,x=[1,1],M;function S(L,P){var E=c.call(this,L,P),N=E[0],V=x[0],W=x[1],$=M==null?Math.sqrt:typeof M=="function"?M:function(){return M};if(N.x=N.y=0,ci(N,function(de){de.r=+$(de.value)}),ci(N,x5),p){var j=p*(M?1:Math.max(2*N.r/V,2*N.r/W))/2;ci(N,function(de){de.r+=j}),ci(N,x5),ci(N,function(de){de.r-=j})}return _5(N,V/2,W/2,M?1:1/Math.max(2*N.r/V,2*N.r/W)),E}return S.size=function(L){return arguments.length?(x=L,S):x},S.radius=function(L){return arguments.length?(M=L==null||typeof L=="function"?L:+L,S):M},S.padding=function(L){return arguments.length?(p=+L,S):p},zu(S,c)};function sF(c,p){return c.value-p.value}function M1(c,p){var x=c._pack_next;c._pack_next=p,p._pack_prev=c,p._pack_next=x,x._pack_prev=p}function g5(c,p){c._pack_next=p,p._pack_prev=c}function b5(c,p){var x=p.x-c.x,M=p.y-c.y,S=c.r+p.r;return .999*S*S>x*x+M*M}function x5(c){if(!(p=c.children)||!(j=p.length))return;var p,x=1/0,M=-1/0,S=1/0,L=-1/0,P,E,N,V,W,$,j;function de(he){x=Math.min(he.x-he.r,x),M=Math.max(he.x+he.r,M),S=Math.min(he.y-he.r,S),L=Math.max(he.y+he.r,L)}if(p.forEach(uF),P=p[0],P.x=-P.r,P.y=0,de(P),j>1&&(E=p[1],E.x=E.r,E.y=0,de(E),j>2))for(N=p[2],w5(P,E,N),de(N),M1(P,N),P._pack_prev=N,M1(N,E),E=P._pack_next,V=3;Voe.x&&(oe=Be),Be.depth>ce.depth&&(ce=Be)});var xe=p(te,oe)/2-te.x,we=x[0]/(oe.x+p(oe,te)/2+xe),he=x[1]/(ce.depth||1);Nu(de,function(Be){Be.x=(Be.x+xe)*we,Be.y=Be.depth*he})}return j}function L(W){for(var $={A:null,children:[W]},j=[$],de;(de=j.pop())!=null;)for(var _e=de.children,te,oe=0,ce=_e.length;oe0&&(cF(hF(te,W,j),W,Be),ce+=Be,xe+=Be),we+=te.m,ce+=de.m,he+=oe.m,xe+=_e.m;te&&!k1(_e)&&(_e.t=te,_e.m+=we-xe),de&&!A1(oe)&&(oe.t=de,oe.m+=ce-he,j=W)}return j}function V(W){W.x*=x[0],W.y=W.depth*x[1]}return S.separation=function(W){return arguments.length?(p=W,S):p},S.size=function(W){return arguments.length?(M=(x=W)==null?V:null,S):M?null:x},S.nodeSize=function(W){return arguments.length?(M=(x=W)==null?null:V,S):M?x:null},zu(S,c)};function T5(c,p){return c.parent==p.parent?1:2}function A1(c){var p=c.children;return p.length?p[0]:c.t}function k1(c){var p=c.children,x;return(x=p.length)?p[x-1]:c.t}function cF(c,p,x){var M=x/(p.i-c.i);p.c-=M,p.s+=x,c.c+=M,p.z+=x,p.m+=x}function vF(c){for(var p=0,x=0,M=c.children,S=M.length,L;--S>=0;)L=M[S],L.z+=p,L.m+=p,p+=L.s+(x+=L.c)}function hF(c,p,x){return c.a.parent===p.parent?c.a:x}e.layout.cluster=function(){var c=e.layout.hierarchy().sort(null).value(null),p=T5,x=[1,1],M=!1;function S(L,P){var E=c.call(this,L,P),N=E[0],V,W=0;ci(N,function(te){var oe=te.children;oe&&oe.length?(te.x=pF(oe),te.y=dF(oe)):(te.x=V?W+=p(te,V):0,te.y=0,V=te)});var $=M5(N),j=A5(N),de=$.x-p($,j)/2,_e=j.x+p(j,$)/2;return ci(N,M?function(te){te.x=(te.x-N.x)*x[0],te.y=(N.y-te.y)*x[1]}:function(te){te.x=(te.x-de)/(_e-de)*x[0],te.y=(1-(N.y?te.y/N.y:1))*x[1]}),E}return S.separation=function(L){return arguments.length?(p=L,S):p},S.size=function(L){return arguments.length?(M=(x=L)==null,S):M?null:x},S.nodeSize=function(L){return arguments.length?(M=(x=L)!=null,S):M?x:null},zu(S,c)};function dF(c){return 1+e.max(c,function(p){return p.y})}function pF(c){return c.reduce(function(p,x){return p+x.x},0)/c.length}function M5(c){var p=c.children;return p&&p.length?M5(p[0]):c}function A5(c){var p=c.children,x;return p&&(x=p.length)?A5(p[x-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),p=Math.round,x=[1,1],M=null,S=S1,L=!1,P,E="squarify",N=.5*(1+Math.sqrt(5));function V(te,oe){for(var ce=-1,xe=te.length,we,he;++ce0;)xe.push(he=we[nr-1]),xe.area+=he.area,E!=="squarify"||(tr=j(xe,sr))<=Be?(we.pop(),Be=tr):(xe.area-=xe.pop().area,de(xe,sr,ce,!1),sr=Math.min(ce.dx,ce.dy),xe.length=xe.area=0,Be=1/0);xe.length&&(de(xe,sr,ce,!0),xe.length=xe.area=0),oe.forEach(W)}}function $(te){var oe=te.children;if(oe&&oe.length){var ce=S(te),xe=oe.slice(),we,he=[];for(V(xe,ce.dx*ce.dy/te.value),he.area=0;we=xe.pop();)he.push(we),he.area+=we.area,we.z!=null&&(de(he,we.z?ce.dx:ce.dy,ce,!xe.length),he.length=he.area=0);oe.forEach($)}}function j(te,oe){for(var ce=te.area,xe,we=0,he=1/0,Be=-1,tr=te.length;++Bewe&&(we=xe));return ce*=ce,oe*=oe,ce?Math.max(oe*we*N/ce,ce/(oe*he*N)):1/0}function de(te,oe,ce,xe){var we=-1,he=te.length,Be=ce.x,tr=ce.y,sr=oe?p(te.area/oe):0,nr;if(oe==ce.dx){for((xe||sr>ce.dy)&&(sr=ce.dy);++wece.dx)&&(sr=ce.dx);++we1);return c+p*M*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var c=e.random.normal.apply(e,arguments);return function(){return Math.exp(c())}},bates:function(c){var p=e.random.irwinHall(c);return function(){return p()/c}},irwinHall:function(c){return function(){for(var p=0,x=0;x2?gF:mF,V=M?IN:FN;return S=N(c,p,V,x),L=N(p,c,V,Zl),E}function E(N){return S(N)}return E.invert=function(N){return L(N)},E.domain=function(N){return arguments.length?(c=N.map(Number),P()):c},E.range=function(N){return arguments.length?(p=N,P()):p},E.rangeRound=function(N){return E.range(N).interpolate(u5)},E.clamp=function(N){return arguments.length?(M=N,P()):M},E.interpolate=function(N){return arguments.length?(x=N,P()):x},E.ticks=function(N){return q1(c,N)},E.tickFormat=function(N,V){return d3_scale_linearTickFormat(c,N,V)},E.nice=function(N){return q5(c,N),P()},E.copy=function(){return C5(c,p,x,M)},P()}function L5(c,p){return e.rebind(c,p,"range","rangeRound","interpolate","clamp")}function q5(c,p){return C1(c,S5(L1(c,p)[2])),C1(c,S5(L1(c,p)[2])),c}function L1(c,p){p==null&&(p=10);var x=Zc(c),M=x[1]-x[0],S=Math.pow(10,Math.floor(Math.log(M/p)/Math.LN10)),L=p/M*S;return L<=.15?S*=10:L<=.35?S*=5:L<=.75&&(S*=2),x[0]=Math.ceil(x[0]/S)*S,x[1]=Math.floor(x[1]/S)*S+S*.5,x[2]=S,x}function q1(c,p){return e.range.apply(e,L1(c,p))}var bF={s:1,g:1,p:1,r:1,e:1};function D5(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function eie(c,p){var x=D5(p[2]);return c in bF?Math.abs(x-D5(Math.max(_(p[0]),_(p[1]))))+ +(c!=="e"):x-(c==="%")*2}e.scale.log=function(){return E5(e.scale.linear().domain([0,1]),10,!0,[1,10])};function E5(c,p,x,M){function S(E){return(x?Math.log(E<0?0:E):-Math.log(E>0?0:-E))/Math.log(p)}function L(E){return x?Math.pow(p,E):-Math.pow(p,-E)}function P(E){return c(S(E))}return P.invert=function(E){return L(c.invert(E))},P.domain=function(E){return arguments.length?(x=E[0]>=0,c.domain((M=E.map(Number)).map(S)),P):M},P.base=function(E){return arguments.length?(p=+E,c.domain(M.map(S)),P):p},P.nice=function(){var E=C1(M.map(S),x?Math:xF);return c.domain(E),M=E.map(L),P},P.ticks=function(){var E=Zc(M),N=[],V=E[0],W=E[1],$=Math.floor(S(V)),j=Math.ceil(S(W)),de=p%1?2:p;if(isFinite(j-$)){if(x){for(;$0;_e--)N.push(L($)*_e);for($=0;N[$]W;j--);N=N.slice($,j)}return N},P.copy=function(){return E5(c.copy(),p,x,M)},L5(P,c)}var xF={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return P5(e.scale.linear(),1,[0,1])};function P5(c,p,x){var M=Jc(p),S=Jc(1/p);function L(P){return c(M(P))}return L.invert=function(P){return S(c.invert(P))},L.domain=function(P){return arguments.length?(c.domain((x=P.map(Number)).map(M)),L):x},L.ticks=function(P){return q1(x,P)},L.tickFormat=function(P,E){return d3_scale_linearTickFormat(x,P,E)},L.nice=function(P){return L.domain(q5(x,P))},L.exponent=function(P){return arguments.length?(M=Jc(p=P),S=Jc(1/p),c.domain(x.map(M)),L):p},L.copy=function(){return P5(c.copy(),p,x)},L5(L,c)}function Jc(c){return function(p){return p<0?-Math.pow(-p,c):Math.pow(p,c)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return R5([],{t:"range",a:[[]]})};function R5(c,p){var x,M,S;function L(E){return M[((x.get(E)||(p.t==="range"?x.set(E,c.push(E)):NaN))-1)%M.length]}function P(E,N){return e.range(c.length).map(function(V){return E+N*V})}return L.domain=function(E){if(!arguments.length)return c;c=[],x=new b;for(var N=-1,V=E.length,W;++N0?x[L-1]:c[0],Lj?0:1;if(W=lr)return N(W,_e)+(V?N(V,1-_e):"")+"Z";var te,oe,ce,xe,we=0,he=0,Be,tr,sr,nr,hr,dr,Cr,pr,Tr=[];if((xe=(+P.apply(this,arguments)||0)/2)&&(ce=M===Kc?Math.sqrt(V*V+W*W):+M.apply(this,arguments),_e||(he*=-1),W&&(he=qt(ce/W*Math.sin(xe))),V&&(we=qt(ce/V*Math.sin(xe)))),W){Be=W*Math.cos($+he),tr=W*Math.sin($+he),sr=W*Math.cos(j-he),nr=W*Math.sin(j-he);var Jr=Math.abs(j-$-2*he)<=Ce?0:1;if(he&&Qc(Be,tr,sr,nr)===_e^Jr){var Dt=($+j)/2;Be=W*Math.cos(Dt),tr=W*Math.sin(Dt),sr=nr=null}}else Be=tr=0;if(V){hr=V*Math.cos(j-we),dr=V*Math.sin(j-we),Cr=V*Math.cos($+we),pr=V*Math.sin($+we);var rt=Math.abs($-j+2*we)<=Ce?0:1;if(we&&Qc(hr,dr,Cr,pr)===1-_e^rt){var er=($+j)/2;hr=V*Math.cos(er),dr=V*Math.sin(er),Cr=pr=null}}else hr=dr=0;if(de>ue&&(te=Math.min(Math.abs(W-V)/2,+x.apply(this,arguments)))>.001){oe=V0?0:1}function $c(c,p,x,M,S){var L=c[0]-p[0],P=c[1]-p[1],E=(S?M:-M)/Math.sqrt(L*L+P*P),N=E*P,V=-E*L,W=c[0]+N,$=c[1]+V,j=p[0]+N,de=p[1]+V,_e=(W+j)/2,te=($+de)/2,oe=j-W,ce=de-$,xe=oe*oe+ce*ce,we=x-M,he=W*de-j*$,Be=(ce<0?-1:1)*Math.sqrt(Math.max(0,we*we*xe-he*he)),tr=(he*ce-oe*Be)/xe,sr=(-he*oe-ce*Be)/xe,nr=(he*ce+oe*Be)/xe,hr=(-he*oe+ce*Be)/xe,dr=tr-_e,Cr=sr-te,pr=nr-_e,Tr=hr-te;return dr*dr+Cr*Cr>pr*pr+Tr*Tr&&(tr=nr,sr=hr),[[tr-N,sr-V],[tr*x/we,sr*x/we]]}function B5(){return!0}function Y5(c){var p=es,x=Lu,M=B5,S=Bn,L=S.key,P=.7;function E(N){var V=[],W=[],$=-1,j=N.length,de,_e=Rr(p),te=Rr(x);function oe(){V.push("M",S(c(W),P))}for(;++$1?c.join("L"):c+"Z"}function U5(c){return c.join("L")+"Z"}function LF(c){for(var p=0,x=c.length,M=c[0],S=[M[0],",",M[1]];++p1&&S.push("H",M[0]),S.join("")}function E1(c){for(var p=0,x=c.length,M=c[0],S=[M[0],",",M[1]];++p1){E=p[1],L=c[N],N++,M+="C"+(S[0]+P[0])+","+(S[1]+P[1])+","+(L[0]-E[0])+","+(L[1]-E[1])+","+L[0]+","+L[1];for(var V=2;V9&&(L=x*3/Math.sqrt(L),P[E]=L*M,P[E+1]=L*S));for(E=-1;++E<=N;)L=(c[Math.min(N,E+1)][0]-c[Math.max(0,E-1)][0])/(6*(1+P[E]*P[E])),p.push([L||0,P[E]*L||0]);return p}function IF(c){return c.length<3?Bn(c):c[0]+jc(c,FF(c))}e.svg.line.radial=function(){var c=Y5(Z5);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function Z5(c){for(var p,x=-1,M=c.length,S,L;++xCe)+",1 "+$}function V(W,$,j,de){return"Q 0,0 "+de}return L.radius=function(W){return arguments.length?(x=Rr(W),L):x},L.source=function(W){return arguments.length?(c=Rr(W),L):c},L.target=function(W){return arguments.length?(p=Rr(W),L):p},L.startAngle=function(W){return arguments.length?(M=Rr(W),L):M},L.endAngle=function(W){return arguments.length?(S=Rr(W),L):S},L};function HF(c){return c.radius}e.svg.diagonal=function(){var c=J5,p=K5,x=Q5;function M(S,L){var P=c.call(this,S,L),E=p.call(this,S,L),N=(P.y+E.y)/2,V=[P,{x:P.x,y:N},{x:E.x,y:N},E];return V=V.map(x),"M"+V[0]+"C"+V[1]+" "+V[2]+" "+V[3]}return M.source=function(S){return arguments.length?(c=Rr(S),M):c},M.target=function(S){return arguments.length?(p=Rr(S),M):p},M.projection=function(S){return arguments.length?(x=S,M):x},M};function Q5(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),p=Q5,x=c.projection;return c.projection=function(M){return arguments.length?x(OF(p=M)):p},c};function OF(c){return function(){var p=c.apply(this,arguments),x=p[0],M=p[1]-ar;return[x*Math.cos(M),x*Math.sin(M)]}}e.svg.symbol=function(){var c=YF,p=BF;function x(M,S){return(j5.get(c.call(this,M,S))||$5)(p.call(this,M,S))}return x.type=function(M){return arguments.length?(c=Rr(M),x):c},x.size=function(M){return arguments.length?(p=Rr(M),x):p},x};function BF(){return 64}function YF(){return"circle"}function $5(c){var p=Math.sqrt(c/Ce);return"M0,"+p+"A"+p+","+p+" 0 1,1 0,"+-p+"A"+p+","+p+" 0 1,1 0,"+p+"Z"}var j5=e.map({circle:$5,cross:function(c){var p=Math.sqrt(c/5)/2;return"M"+-3*p+","+-p+"H"+-p+"V"+-3*p+"H"+p+"V"+-p+"H"+3*p+"V"+p+"H"+p+"V"+3*p+"H"+-p+"V"+p+"H"+-3*p+"Z"},diamond:function(c){var p=Math.sqrt(c/(2*eb)),x=p*eb;return"M0,"+-p+"L"+x+",0 0,"+p+" "+-x+",0Z"},square:function(c){var p=Math.sqrt(c)/2;return"M"+-p+","+-p+"L"+p+","+-p+" "+p+","+p+" "+-p+","+p+"Z"},"triangle-down":function(c){var p=Math.sqrt(c/ev),x=p*ev/2;return"M0,"+x+"L"+p+","+-x+" "+-p+","+-x+"Z"},"triangle-up":function(c){var p=Math.sqrt(c/ev),x=p*ev/2;return"M0,"+-x+"L"+p+","+x+" "+-p+","+x+"Z"}});e.svg.symbolTypes=j5.keys();var ev=Math.sqrt(3),eb=Math.tan(30*Mr);be.transition=function(c){for(var p=Xl||++tb,x=I1(c),M=[],S,L,P=tv||{time:Date.now(),ease:xN,delay:0,duration:250},E=-1,N=this.length;++E0;)$[--xe].call(c,ce);if(oe>=1)return P.event&&P.event.end.call(c,c.__data__,p),--L.count?delete L[M]:delete c[x],1}P||(E=S.time,N=Oc(j,0,E),P=L[M]={tween:new b,time:E,timer:N,delay:S.delay,duration:S.duration,ease:S.ease,index:p},S=null,++L.count)}e.svg.axis=function(){var c=e.scale.linear(),p=ab,x=6,M=6,S=3,L=[10],P=null,E;function N(V){V.each(function(){var W=e.select(this),$=this.__chart__||c,j=this.__chart__=c.copy(),de=P==null?j.ticks?j.ticks.apply(j,L):j.domain():P,_e=E==null?j.tickFormat?j.tickFormat.apply(j,L):X:E,te=W.selectAll(".tick").data(de,j),oe=te.enter().insert("g",".domain").attr("class","tick").style("opacity",ue),ce=e.transition(te.exit()).style("opacity",ue).remove(),xe=e.transition(te.order()).style("opacity",1),we=Math.max(x,0)+S,he,Be=Xc(j),tr=W.selectAll(".domain").data([0]),sr=(tr.enter().append("path").attr("class","domain"),e.transition(tr));oe.append("line"),oe.append("text");var nr=oe.select("line"),hr=xe.select("line"),dr=te.select("text").text(_e),Cr=oe.select("text"),pr=xe.select("text"),Tr=p==="top"||p==="left"?-1:1,Jr,Dt,rt,er;if(p==="bottom"||p==="top"?(he=VF,Jr="x",rt="y",Dt="x2",er="y2",dr.attr("dy",Tr<0?"0em":".71em").style("text-anchor","middle"),sr.attr("d","M"+Be[0]+","+Tr*M+"V0H"+Be[1]+"V"+Tr*M)):(he=WF,Jr="y",rt="x",Dt="y2",er="x2",dr.attr("dy",".32em").style("text-anchor",Tr<0?"end":"start"),sr.attr("d","M"+Tr*M+","+Be[0]+"H0V"+Be[1]+"H"+Tr*M)),nr.attr(er,Tr*x),Cr.attr(rt,Tr*we),hr.attr(Dt,0).attr(er,Tr*x),pr.attr(Jr,0).attr(rt,Tr*we),j.rangeBand){var Lr=j,qr=Lr.rangeBand()/2;$=j=function(Kr){return Lr(Kr)+qr}}else $.rangeBand?$=j:ce.call(he,j,$);oe.call(he,$,j),xe.call(he,j,j)})}return N.scale=function(V){return arguments.length?(c=V,N):c},N.orient=function(V){return arguments.length?(p=V in GF?V+"":ab,N):p},N.ticks=function(){return arguments.length?(L=t(arguments),N):L},N.tickValues=function(V){return arguments.length?(P=V,N):P},N.tickFormat=function(V){return arguments.length?(E=V,N):E},N.tickSize=function(V){var W=arguments.length;return W?(x=+V,M=+arguments[W-1],N):x},N.innerTickSize=function(V){return arguments.length?(x=+V,N):x},N.outerTickSize=function(V){return arguments.length?(M=+V,N):M},N.tickPadding=function(V){return arguments.length?(S=+V,N):S},N.tickSubdivide=function(){return arguments.length&&N},N};var ab="bottom",GF={top:1,right:1,bottom:1,left:1};function VF(c,p,x){c.attr("transform",function(M){var S=p(M);return"translate("+(isFinite(S)?S:x(M))+",0)"})}function WF(c,p,x){c.attr("transform",function(M){var S=p(M);return"translate(0,"+(isFinite(S)?S:x(M))+")"})}e.svg.brush=function(){var c=me(W,"brushstart","brush","brushend"),p=null,x=null,M=[0,0],S=[0,0],L,P,E=!0,N=!0,V=H1[0];function W(te){te.each(function(){var oe=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",_e).on("touchstart.brush",_e),ce=oe.selectAll(".background").data([0]);ce.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),oe.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var xe=oe.selectAll(".resize").data(V,X);xe.exit().remove(),xe.enter().append("g").attr("class",function(tr){return"resize "+tr}).style("cursor",function(tr){return ZF[tr]}).append("rect").attr("x",function(tr){return/[ew]$/.test(tr)?-3:null}).attr("y",function(tr){return/^[ns]/.test(tr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),xe.style("display",W.empty()?"none":null);var we=e.transition(oe),he=e.transition(ce),Be;p&&(Be=Xc(p),he.attr("x",Be[0]).attr("width",Be[1]-Be[0]),j(we)),x&&(Be=Xc(x),he.attr("y",Be[0]).attr("height",Be[1]-Be[0]),de(we)),$(we)})}W.event=function(te){te.each(function(){var oe=c.of(this,arguments),ce={x:M,y:S,i:L,j:P},xe=this.__chart__||ce;this.__chart__=ce,Xl?e.select(this).transition().each("start.brush",function(){L=xe.i,P=xe.j,M=xe.x,S=xe.y,oe({type:"brushstart"})}).tween("brush:brush",function(){var we=Wc(M,ce.x),he=Wc(S,ce.y);return L=P=null,function(Be){M=ce.x=we(Be),S=ce.y=he(Be),oe({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=ce.i,P=ce.j,oe({type:"brush",mode:"resize"}),oe({type:"brushend"})}):(oe({type:"brushstart"}),oe({type:"brush",mode:"resize"}),oe({type:"brushend"}))})};function $(te){te.selectAll(".resize").attr("transform",function(oe){return"translate("+M[+/e$/.test(oe)]+","+S[+/^s/.test(oe)]+")"})}function j(te){te.select(".extent").attr("x",M[0]),te.selectAll(".extent,.n>rect,.s>rect").attr("width",M[1]-M[0])}function de(te){te.select(".extent").attr("y",S[0]),te.selectAll(".extent,.e>rect,.w>rect").attr("height",S[1]-S[0])}function _e(){var te=this,oe=e.select(e.event.target),ce=c.of(te,arguments),xe=e.select(te),we=oe.datum(),he=!/^(n|s)$/.test(we)&&p,Be=!/^(e|w)$/.test(we)&&x,tr=oe.classed("extent"),sr=vr(te),nr,hr=e.mouse(te),dr,Cr=e.select(i(te)).on("keydown.brush",Jr).on("keyup.brush",Dt);if(e.event.changedTouches?Cr.on("touchmove.brush",rt).on("touchend.brush",Lr):Cr.on("mousemove.brush",rt).on("mouseup.brush",Lr),xe.interrupt().selectAll("*").interrupt(),tr)hr[0]=M[0]-hr[0],hr[1]=S[0]-hr[1];else if(we){var pr=+/w$/.test(we),Tr=+/^n/.test(we);dr=[M[1-pr]-hr[0],S[1-Tr]-hr[1]],hr[0]=M[pr],hr[1]=S[Tr]}else e.event.altKey&&(nr=hr.slice());xe.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",oe.style("cursor")),ce({type:"brushstart"}),rt();function Jr(){e.event.keyCode==32&&(tr||(nr=null,hr[0]-=M[1],hr[1]-=S[1],tr=2),ie())}function Dt(){e.event.keyCode==32&&tr==2&&(hr[0]+=M[1],hr[1]+=S[1],tr=0,ie())}function rt(){var qr=e.mouse(te),Kr=!1;dr&&(qr[0]+=dr[0],qr[1]+=dr[1]),tr||(e.event.altKey?(nr||(nr=[(M[0]+M[1])/2,(S[0]+S[1])/2]),hr[0]=M[+(qr[0]{(function(e,r){typeof sv=="object"&&typeof sb!="undefined"?r(sv):(e=e||self,r(e.d3=e.d3||{}))})(sv,function(e){"use strict";var r=new Date,t=new Date;function a(ne,Te,Xe,cr){function fr(le){return ne(le=arguments.length===0?new Date:new Date(+le)),le}return fr.floor=function(le){return ne(le=new Date(+le)),le},fr.ceil=function(le){return ne(le=new Date(le-1)),Te(le,1),ne(le),le},fr.round=function(le){var Se=fr(le),Fe=fr.ceil(le);return le-Se0))return We;do We.push(Ge=new Date(+le)),Te(le,Fe),ne(le);while(Ge=Se)for(;ne(Se),!le(Se);)Se.setTime(Se-1)},function(Se,Fe){if(Se>=Se)if(Fe<0)for(;++Fe<=0;)for(;Te(Se,-1),!le(Se););else for(;--Fe>=0;)for(;Te(Se,1),!le(Se););})},Xe&&(fr.count=function(le,Se){return r.setTime(+le),t.setTime(+Se),ne(r),ne(t),Math.floor(Xe(r,t))},fr.every=function(le){return le=Math.floor(le),!isFinite(le)||!(le>0)?null:le>1?fr.filter(cr?function(Se){return cr(Se)%le===0}:function(Se){return fr.count(0,Se)%le===0}):fr}),fr}var n=a(function(){},function(ne,Te){ne.setTime(+ne+Te)},function(ne,Te){return Te-ne});n.every=function(ne){return ne=Math.floor(ne),!isFinite(ne)||!(ne>0)?null:ne>1?a(function(Te){Te.setTime(Math.floor(Te/ne)*ne)},function(Te,Xe){Te.setTime(+Te+Xe*ne)},function(Te,Xe){return(Xe-Te)/ne}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,v=a(function(ne){ne.setTime(ne-ne.getMilliseconds())},function(ne,Te){ne.setTime(+ne+Te*l)},function(ne,Te){return(Te-ne)/l},function(ne){return ne.getUTCSeconds()}),h=v.range,d=a(function(ne){ne.setTime(ne-ne.getMilliseconds()-ne.getSeconds()*l)},function(ne,Te){ne.setTime(+ne+Te*o)},function(ne,Te){return(Te-ne)/o},function(ne){return ne.getMinutes()}),m=d.range,g=a(function(ne){ne.setTime(ne-ne.getMilliseconds()-ne.getSeconds()*l-ne.getMinutes()*o)},function(ne,Te){ne.setTime(+ne+Te*s)},function(ne,Te){return(Te-ne)/s},function(ne){return ne.getHours()}),y=g.range,_=a(function(ne){ne.setHours(0,0,0,0)},function(ne,Te){ne.setDate(ne.getDate()+Te)},function(ne,Te){return(Te-ne-(Te.getTimezoneOffset()-ne.getTimezoneOffset())*o)/u},function(ne){return ne.getDate()-1}),w=_.range;function T(ne){return a(function(Te){Te.setDate(Te.getDate()-(Te.getDay()+7-ne)%7),Te.setHours(0,0,0,0)},function(Te,Xe){Te.setDate(Te.getDate()+Xe*7)},function(Te,Xe){return(Xe-Te-(Xe.getTimezoneOffset()-Te.getTimezoneOffset())*o)/f})}var b=T(0),A=T(1),C=T(2),k=T(3),q=T(4),D=T(5),R=T(6),z=b.range,F=A.range,I=C.range,O=k.range,X=q.range,J=D.range,U=R.range,H=a(function(ne){ne.setDate(1),ne.setHours(0,0,0,0)},function(ne,Te){ne.setMonth(ne.getMonth()+Te)},function(ne,Te){return Te.getMonth()-ne.getMonth()+(Te.getFullYear()-ne.getFullYear())*12},function(ne){return ne.getMonth()}),G=H.range,K=a(function(ne){ne.setMonth(0,1),ne.setHours(0,0,0,0)},function(ne,Te){ne.setFullYear(ne.getFullYear()+Te)},function(ne,Te){return Te.getFullYear()-ne.getFullYear()},function(ne){return ne.getFullYear()});K.every=function(ne){return!isFinite(ne=Math.floor(ne))||!(ne>0)?null:a(function(Te){Te.setFullYear(Math.floor(Te.getFullYear()/ne)*ne),Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Xe){Te.setFullYear(Te.getFullYear()+Xe*ne)})};var Q=K.range,ie=a(function(ne){ne.setUTCSeconds(0,0)},function(ne,Te){ne.setTime(+ne+Te*o)},function(ne,Te){return(Te-ne)/o},function(ne){return ne.getUTCMinutes()}),pe=ie.range,me=a(function(ne){ne.setUTCMinutes(0,0,0)},function(ne,Te){ne.setTime(+ne+Te*s)},function(ne,Te){return(Te-ne)/s},function(ne){return ne.getUTCHours()}),Ae=me.range,re=a(function(ne){ne.setUTCHours(0,0,0,0)},function(ne,Te){ne.setUTCDate(ne.getUTCDate()+Te)},function(ne,Te){return(Te-ne)/u},function(ne){return ne.getUTCDate()-1}),Le=re.range;function fe(ne){return a(function(Te){Te.setUTCDate(Te.getUTCDate()-(Te.getUTCDay()+7-ne)%7),Te.setUTCHours(0,0,0,0)},function(Te,Xe){Te.setUTCDate(Te.getUTCDate()+Xe*7)},function(Te,Xe){return(Xe-Te)/f})}var ke=fe(0),se=fe(1),be=fe(2),Y=fe(3),ee=fe(4),B=fe(5),ye=fe(6),Me=ke.range,ge=se.range,Re=be.range,Ne=Y.range,Ee=ee.range,ze=B.range,Ve=ye.range,Ue=a(function(ne){ne.setUTCDate(1),ne.setUTCHours(0,0,0,0)},function(ne,Te){ne.setUTCMonth(ne.getUTCMonth()+Te)},function(ne,Te){return Te.getUTCMonth()-ne.getUTCMonth()+(Te.getUTCFullYear()-ne.getUTCFullYear())*12},function(ne){return ne.getUTCMonth()}),De=Ue.range,He=a(function(ne){ne.setUTCMonth(0,1),ne.setUTCHours(0,0,0,0)},function(ne,Te){ne.setUTCFullYear(ne.getUTCFullYear()+Te)},function(ne,Te){return Te.getUTCFullYear()-ne.getUTCFullYear()},function(ne){return ne.getUTCFullYear()});He.every=function(ne){return!isFinite(ne=Math.floor(ne))||!(ne>0)?null:a(function(Te){Te.setUTCFullYear(Math.floor(Te.getUTCFullYear()/ne)*ne),Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Xe){Te.setUTCFullYear(Te.getUTCFullYear()+Xe*ne)})};var Oe=He.range;e.timeDay=_,e.timeDays=w,e.timeFriday=D,e.timeFridays=J,e.timeHour=g,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=A,e.timeMondays=F,e.timeMonth=H,e.timeMonths=G,e.timeSaturday=R,e.timeSaturdays=U,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=z,e.timeThursday=q,e.timeThursdays=X,e.timeTuesday=C,e.timeTuesdays=I,e.timeWednesday=k,e.timeWednesdays=O,e.timeWeek=b,e.timeWeeks=z,e.timeYear=K,e.timeYears=Q,e.utcDay=re,e.utcDays=Le,e.utcFriday=B,e.utcFridays=ze,e.utcHour=me,e.utcHours=Ae,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ie,e.utcMinutes=pe,e.utcMonday=se,e.utcMondays=ge,e.utcMonth=Ue,e.utcMonths=De,e.utcSaturday=ye,e.utcSaturdays=Ve,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=ke,e.utcSundays=Me,e.utcThursday=ee,e.utcThursdays=Ee,e.utcTuesday=be,e.utcTuesdays=Re,e.utcWednesday=Y,e.utcWednesdays=Ne,e.utcWeek=ke,e.utcWeeks=Me,e.utcYear=He,e.utcYears=Oe,Object.defineProperty(e,"__esModule",{value:!0})})});var os=Z((uv,ub)=>{(function(e,r){typeof uv=="object"&&typeof ub!="undefined"?r(uv,O1()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(uv,function(e,r){"use strict";function t(ae){if(0<=ae.y&&ae.y<100){var ue=new Date(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L);return ue.setFullYear(ae.y),ue}return new Date(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L)}function a(ae){if(0<=ae.y&&ae.y<100){var ue=new Date(Date.UTC(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L));return ue.setUTCFullYear(ae.y),ue}return new Date(Date.UTC(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L))}function n(ae,ue,qe){return{y:ae,m:ue,d:qe,H:0,M:0,S:0,L:0}}function i(ae){var ue=ae.dateTime,qe=ae.date,Ce=ae.time,or=ae.periods,lr=ae.days,ar=ae.shortDays,Mr=ae.months,Br=ae.shortMonths,et=h(or),Qr=d(or),Kt=h(lr),qt=d(lr),yt=h(ar),At=d(ar),ua=h(Mr),fa=d(Mr),zt=h(Br),Oa=d(Br),yr={a:Ul,A:Gl,b:rl,B:Pc,c:null,d:H,e:H,f:pe,H:G,I:K,j:Q,L:ie,m:me,M:Ae,p:Rc,q:ku,Q:Se,s:Fe,S:re,u:Le,U:fe,V:ke,w:se,W:be,x:null,X:null,y:Y,Y:ee,Z:B,"%":le},lt={a:Su,A:Cu,b:qa,B:zc,c:null,d:ye,e:ye,f:Ee,H:Me,I:ge,j:Re,L:Ne,m:ze,M:Ve,p:$o,q:jo,Q:Se,s:Fe,S:Ue,u:De,U:He,V:Oe,w:ne,W:Te,x:null,X:null,y:Xe,Y:cr,Z:fr,"%":le},Vr={a:La,A:na,b:In,B:Hn,c:Qt,d:q,e:q,f:O,H:R,I:R,j:D,L:I,m:k,M:z,p:bt,q:C,Q:J,s:U,S:F,u:g,U:y,V:_,w:m,W:w,x:nt,X:ca,y:b,Y:T,Z:A,"%":X};yr.x=gt(qe,yr),yr.X=gt(Ce,yr),yr.c=gt(ue,yr),lt.x=gt(qe,lt),lt.X=gt(Ce,lt),lt.c=gt(ue,lt);function gt(mr,Wr){return function($r){var ir=[],va=-1,st=0,ha=mr.length,Rr,On,Vl;for($r instanceof Date||($r=new Date(+$r));++va53)return null;"w"in ir||(ir.w=1),"Z"in ir?(st=a(n(ir.y,0,1)),ha=st.getUTCDay(),st=ha>4||ha===0?r.utcMonday.ceil(st):r.utcMonday(st),st=r.utcDay.offset(st,(ir.V-1)*7),ir.y=st.getUTCFullYear(),ir.m=st.getUTCMonth(),ir.d=st.getUTCDate()+(ir.w+6)%7):(st=t(n(ir.y,0,1)),ha=st.getDay(),st=ha>4||ha===0?r.timeMonday.ceil(st):r.timeMonday(st),st=r.timeDay.offset(st,(ir.V-1)*7),ir.y=st.getFullYear(),ir.m=st.getMonth(),ir.d=st.getDate()+(ir.w+6)%7)}else("W"in ir||"U"in ir)&&("w"in ir||(ir.w="u"in ir?ir.u%7:"W"in ir?1:0),ha="Z"in ir?a(n(ir.y,0,1)).getUTCDay():t(n(ir.y,0,1)).getDay(),ir.m=0,ir.d="W"in ir?(ir.w+6)%7+ir.W*7-(ha+5)%7:ir.w+ir.U*7-(ha+6)%7);return"Z"in ir?(ir.H+=ir.Z/100|0,ir.M+=ir.Z%100,a(ir)):t(ir)}}function ot(mr,Wr,$r,ir){for(var va=0,st=Wr.length,ha=$r.length,Rr,On;va=ha)return-1;if(Rr=Wr.charCodeAt(va++),Rr===37){if(Rr=Wr.charAt(va++),On=Vr[Rr in l?Wr.charAt(va++):Rr],!On||(ir=On(mr,$r,ir))<0)return-1}else if(Rr!=$r.charCodeAt(ir++))return-1}return ir}function bt(mr,Wr,$r){var ir=et.exec(Wr.slice($r));return ir?(mr.p=Qr[ir[0].toLowerCase()],$r+ir[0].length):-1}function La(mr,Wr,$r){var ir=yt.exec(Wr.slice($r));return ir?(mr.w=At[ir[0].toLowerCase()],$r+ir[0].length):-1}function na(mr,Wr,$r){var ir=Kt.exec(Wr.slice($r));return ir?(mr.w=qt[ir[0].toLowerCase()],$r+ir[0].length):-1}function In(mr,Wr,$r){var ir=zt.exec(Wr.slice($r));return ir?(mr.m=Oa[ir[0].toLowerCase()],$r+ir[0].length):-1}function Hn(mr,Wr,$r){var ir=ua.exec(Wr.slice($r));return ir?(mr.m=fa[ir[0].toLowerCase()],$r+ir[0].length):-1}function Qt(mr,Wr,$r){return ot(mr,ue,Wr,$r)}function nt(mr,Wr,$r){return ot(mr,qe,Wr,$r)}function ca(mr,Wr,$r){return ot(mr,Ce,Wr,$r)}function Ul(mr){return ar[mr.getDay()]}function Gl(mr){return lr[mr.getDay()]}function rl(mr){return Br[mr.getMonth()]}function Pc(mr){return Mr[mr.getMonth()]}function Rc(mr){return or[+(mr.getHours()>=12)]}function ku(mr){return 1+~~(mr.getMonth()/3)}function Su(mr){return ar[mr.getUTCDay()]}function Cu(mr){return lr[mr.getUTCDay()]}function qa(mr){return Br[mr.getUTCMonth()]}function zc(mr){return Mr[mr.getUTCMonth()]}function $o(mr){return or[+(mr.getUTCHours()>=12)]}function jo(mr){return 1+~~(mr.getUTCMonth()/3)}return{format:function(mr){var Wr=gt(mr+="",yr);return Wr.toString=function(){return mr},Wr},parse:function(mr){var Wr=kt(mr+="",!1);return Wr.toString=function(){return mr},Wr},utcFormat:function(mr){var Wr=gt(mr+="",lt);return Wr.toString=function(){return mr},Wr},utcParse:function(mr){var Wr=kt(mr+="",!0);return Wr.toString=function(){return mr},Wr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ae,ue,qe){var Ce=ae<0?"-":"",or=(Ce?-ae:ae)+"",lr=or.length;return Ce+(lr68?1900:2e3),qe+Ce[0].length):-1}function A(ae,ue,qe){var Ce=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ue.slice(qe,qe+6));return Ce?(ae.Z=Ce[1]?0:-(Ce[2]+(Ce[3]||"00")),qe+Ce[0].length):-1}function C(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+1));return Ce?(ae.q=Ce[0]*3-3,qe+Ce[0].length):-1}function k(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+2));return Ce?(ae.m=Ce[0]-1,qe+Ce[0].length):-1}function q(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+2));return Ce?(ae.d=+Ce[0],qe+Ce[0].length):-1}function D(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+3));return Ce?(ae.m=0,ae.d=+Ce[0],qe+Ce[0].length):-1}function R(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+2));return Ce?(ae.H=+Ce[0],qe+Ce[0].length):-1}function z(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+2));return Ce?(ae.M=+Ce[0],qe+Ce[0].length):-1}function F(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+2));return Ce?(ae.S=+Ce[0],qe+Ce[0].length):-1}function I(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+3));return Ce?(ae.L=+Ce[0],qe+Ce[0].length):-1}function O(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+6));return Ce?(ae.L=Math.floor(Ce[0]/1e3),qe+Ce[0].length):-1}function X(ae,ue,qe){var Ce=s.exec(ue.slice(qe,qe+1));return Ce?qe+Ce[0].length:-1}function J(ae,ue,qe){var Ce=o.exec(ue.slice(qe));return Ce?(ae.Q=+Ce[0],qe+Ce[0].length):-1}function U(ae,ue,qe){var Ce=o.exec(ue.slice(qe));return Ce?(ae.s=+Ce[0],qe+Ce[0].length):-1}function H(ae,ue){return f(ae.getDate(),ue,2)}function G(ae,ue){return f(ae.getHours(),ue,2)}function K(ae,ue){return f(ae.getHours()%12||12,ue,2)}function Q(ae,ue){return f(1+r.timeDay.count(r.timeYear(ae),ae),ue,3)}function ie(ae,ue){return f(ae.getMilliseconds(),ue,3)}function pe(ae,ue){return ie(ae,ue)+"000"}function me(ae,ue){return f(ae.getMonth()+1,ue,2)}function Ae(ae,ue){return f(ae.getMinutes(),ue,2)}function re(ae,ue){return f(ae.getSeconds(),ue,2)}function Le(ae){var ue=ae.getDay();return ue===0?7:ue}function fe(ae,ue){return f(r.timeSunday.count(r.timeYear(ae)-1,ae),ue,2)}function ke(ae,ue){var qe=ae.getDay();return ae=qe>=4||qe===0?r.timeThursday(ae):r.timeThursday.ceil(ae),f(r.timeThursday.count(r.timeYear(ae),ae)+(r.timeYear(ae).getDay()===4),ue,2)}function se(ae){return ae.getDay()}function be(ae,ue){return f(r.timeMonday.count(r.timeYear(ae)-1,ae),ue,2)}function Y(ae,ue){return f(ae.getFullYear()%100,ue,2)}function ee(ae,ue){return f(ae.getFullYear()%1e4,ue,4)}function B(ae){var ue=ae.getTimezoneOffset();return(ue>0?"-":(ue*=-1,"+"))+f(ue/60|0,"0",2)+f(ue%60,"0",2)}function ye(ae,ue){return f(ae.getUTCDate(),ue,2)}function Me(ae,ue){return f(ae.getUTCHours(),ue,2)}function ge(ae,ue){return f(ae.getUTCHours()%12||12,ue,2)}function Re(ae,ue){return f(1+r.utcDay.count(r.utcYear(ae),ae),ue,3)}function Ne(ae,ue){return f(ae.getUTCMilliseconds(),ue,3)}function Ee(ae,ue){return Ne(ae,ue)+"000"}function ze(ae,ue){return f(ae.getUTCMonth()+1,ue,2)}function Ve(ae,ue){return f(ae.getUTCMinutes(),ue,2)}function Ue(ae,ue){return f(ae.getUTCSeconds(),ue,2)}function De(ae){var ue=ae.getUTCDay();return ue===0?7:ue}function He(ae,ue){return f(r.utcSunday.count(r.utcYear(ae)-1,ae),ue,2)}function Oe(ae,ue){var qe=ae.getUTCDay();return ae=qe>=4||qe===0?r.utcThursday(ae):r.utcThursday.ceil(ae),f(r.utcThursday.count(r.utcYear(ae),ae)+(r.utcYear(ae).getUTCDay()===4),ue,2)}function ne(ae){return ae.getUTCDay()}function Te(ae,ue){return f(r.utcMonday.count(r.utcYear(ae)-1,ae),ue,2)}function Xe(ae,ue){return f(ae.getUTCFullYear()%100,ue,2)}function cr(ae,ue){return f(ae.getUTCFullYear()%1e4,ue,4)}function fr(){return"+0000"}function le(){return"%"}function Se(ae){return+ae}function Fe(ae){return Math.floor(+ae/1e3)}var We;Ge({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Ge(ae){return We=i(ae),e.timeFormat=We.format,e.timeParse=We.parse,e.utcFormat=We.utcFormat,e.utcParse=We.utcParse,We}var Je="%Y-%m-%dT%H:%M:%S.%LZ";function je(ae){return ae.toISOString()}var vr=Date.prototype.toISOString?je:e.utcFormat(Je);function Ke(ae){var ue=new Date(ae);return isNaN(ue)?null:ue}var Pe=+new Date("2000-01-01T00:00:00.000Z")?Ke:e.utcParse(Je);e.isoFormat=vr,e.isoParse=Pe,e.timeFormatDefaultLocale=Ge,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var B1=Z((fv,fb)=>{(function(e,r){typeof fv=="object"&&typeof fb!="undefined"?r(fv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(fv,function(e){"use strict";function r(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function t(k,q){if((D=(k=q?k.toExponential(q-1):k.toExponential()).indexOf("e"))<0)return null;var D,R=k.slice(0,D);return[R.length>1?R[0]+R.slice(2):R,+k.slice(D+1)]}function a(k){return k=t(Math.abs(k)),k?k[1]:NaN}function n(k,q){return function(D,R){for(var z=D.length,F=[],I=0,O=k[0],X=0;z>0&&O>0&&(X+O+1>R&&(O=Math.max(1,R-X)),F.push(D.substring(z-=O,z+O)),!((X+=O+1)>R));)O=k[I=(I+1)%k.length];return F.reverse().join(q)}}function i(k){return function(q){return q.replace(/[0-9]/g,function(D){return k[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(k){if(!(q=l.exec(k)))throw new Error("invalid format: "+k);var q;return new s({fill:q[1],align:q[2],sign:q[3],symbol:q[4],zero:q[5],width:q[6],comma:q[7],precision:q[8]&&q[8].slice(1),trim:q[9],type:q[10]})}o.prototype=s.prototype;function s(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(k){e:for(var q=k.length,D=1,R=-1,z;D0&&(R=0);break}return R>0?k.slice(0,R)+k.slice(z+1):k}var f;function v(k,q){var D=t(k,q);if(!D)return k+"";var R=D[0],z=D[1],F=z-(f=Math.max(-8,Math.min(8,Math.floor(z/3)))*3)+1,I=R.length;return F===I?R:F>I?R+new Array(F-I+1).join("0"):F>0?R.slice(0,F)+"."+R.slice(F):"0."+new Array(1-F).join("0")+t(k,Math.max(0,q+F-1))[0]}function h(k,q){var D=t(k,q);if(!D)return k+"";var R=D[0],z=D[1];return z<0?"0."+new Array(-z).join("0")+R:R.length>z+1?R.slice(0,z+1)+"."+R.slice(z+1):R+new Array(z-R.length+2).join("0")}var d={"%":function(k,q){return(k*100).toFixed(q)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:r,e:function(k,q){return k.toExponential(q)},f:function(k,q){return k.toFixed(q)},g:function(k,q){return k.toPrecision(q)},o:function(k){return Math.round(k).toString(8)},p:function(k,q){return h(k*100,q)},r:h,s:v,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function m(k){return k}var g=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function _(k){var q=k.grouping===void 0||k.thousands===void 0?m:n(g.call(k.grouping,Number),k.thousands+""),D=k.currency===void 0?"":k.currency[0]+"",R=k.currency===void 0?"":k.currency[1]+"",z=k.decimal===void 0?".":k.decimal+"",F=k.numerals===void 0?m:i(g.call(k.numerals,String)),I=k.percent===void 0?"%":k.percent+"",O=k.minus===void 0?"-":k.minus+"",X=k.nan===void 0?"NaN":k.nan+"";function J(H){H=o(H);var G=H.fill,K=H.align,Q=H.sign,ie=H.symbol,pe=H.zero,me=H.width,Ae=H.comma,re=H.precision,Le=H.trim,fe=H.type;fe==="n"?(Ae=!0,fe="g"):d[fe]||(re===void 0&&(re=12),Le=!0,fe="g"),(pe||G==="0"&&K==="=")&&(pe=!0,G="0",K="=");var ke=ie==="$"?D:ie==="#"&&/[boxX]/.test(fe)?"0"+fe.toLowerCase():"",se=ie==="$"?R:/[%p]/.test(fe)?I:"",be=d[fe],Y=/[defgprs%]/.test(fe);re=re===void 0?6:/[gprs]/.test(fe)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re));function ee(B){var ye=ke,Me=se,ge,Re,Ne;if(fe==="c")Me=be(B)+Me,B="";else{B=+B;var Ee=B<0||1/B<0;if(B=isNaN(B)?X:be(Math.abs(B),re),Le&&(B=u(B)),Ee&&+B==0&&Q!=="+"&&(Ee=!1),ye=(Ee?Q==="("?Q:O:Q==="-"||Q==="("?"":Q)+ye,Me=(fe==="s"?y[8+f/3]:"")+Me+(Ee&&Q==="("?")":""),Y){for(ge=-1,Re=B.length;++geNe||Ne>57){Me=(Ne===46?z+B.slice(ge+1):B.slice(ge))+Me,B=B.slice(0,ge);break}}}Ae&&!pe&&(B=q(B,1/0));var ze=ye.length+B.length+Me.length,Ve=ze>1)+ye+B+Me+Ve.slice(ze);break;default:B=Ve+ye+B+Me;break}return F(B)}return ee.toString=function(){return H+""},ee}function U(H,G){var K=J((H=o(H),H.type="f",H)),Q=Math.max(-8,Math.min(8,Math.floor(a(G)/3)))*3,ie=Math.pow(10,-Q),pe=y[8+Q/3];return function(me){return K(ie*me)+pe}}return{format:J,formatPrefix:U}}var w;T({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function T(k){return w=_(k),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(k){return Math.max(0,-a(Math.abs(k)))}function A(k,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(k)))}function C(k,q){return k=Math.abs(k),q=Math.abs(q)-k,Math.max(0,a(q)-a(k))+1}e.FormatSpecifier=s,e.formatDefaultLocale=T,e.formatLocale=_,e.formatSpecifier=o,e.precisionFixed=b,e.precisionPrefix=A,e.precisionRound=C,Object.defineProperty(e,"__esModule",{value:!0})})});var vb=Z((nie,cb)=>{"use strict";cb.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Hr=Z((iie,hb)=>{"use strict";var QF=vb();hb.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&QF(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Gt=Z((lie,db)=>{"use strict";db.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var Y1=Z((cv,pb)=>{(function(e,r){typeof cv=="object"&&typeof pb!="undefined"?r(cv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(cv,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,v,h,d,m;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var g=new ArrayBuffer(o),y=new Uint8Array(g);for(u=0;u>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|m&63;return g};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var nl=Z((oie,mb)=>{"use strict";mb.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var nn=Z(Un=>{"use strict";var $F=Y1().decode,jF=nl(),U1=Array.isArray,eI=ArrayBuffer,rI=DataView;function yb(e){return eI.isView(e)&&!(e instanceof rI)}Un.isTypedArray=yb;function vv(e){return U1(e)||yb(e)}Un.isArrayOrTypedArray=vv;function tI(e){return!vv(e[0])}Un.isArray1D=tI;Un.ensureArray=function(e,r){return U1(e)||(e=[]),e.length=r,e};var ia={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};ia.uint8c=ia.u1c;ia.uint8=ia.u1;ia.int8=ia.i1;ia.uint16=ia.u2;ia.int16=ia.i2;ia.uint32=ia.u4;ia.int32=ia.i4;ia.float32=ia.f4;ia.float64=ia.f8;function G1(e){return e.constructor===ArrayBuffer}Un.isArrayBuffer=G1;Un.decodeTypedArraySpec=function(e){var r=[],t=aI(e),a=t.dtype,n=ia[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;G1(l)||(l=$F(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,v=+o[0],h=i*v,d=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var bb=Hr(),W1=nn().isArrayOrTypedArray;Tb.exports=function(r,t){if(bb(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var ss=hv(),sI=/^\w*$/,uI=0,Mb=1,dv=2,Ab=3,Ql=4;kb.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=ss(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[d]=s[d]|dv,v.set(h,null);if(f){for(i=d;i{"use strict";var fI=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,cI=/^[^\.\[\]]+$/;Cb.exports=function(e,r){for(;r;){var t=e.match(fI);if(t)e=t[1];else if(e.match(cI))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var pv=Z((vie,qb)=>{"use strict";var vI=Hr();qb.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return vI(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var Pb=Z((hie,Eb)=>{"use strict";var Db=nn().isArrayOrTypedArray,Iu=nl();Eb.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(Db(n)&&Db(i)&&Iu(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o{"use strict";function hI(e,r){var t=e%r;return t<0?t+r:t}function dI(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Rb.exports={mod:hI,modHalf:dI}});var bn=Z((pie,mv)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(Y,ee){if(Y=Y||"",ee=ee||{},Y instanceof s)return Y;if(!(this instanceof s))return new s(Y,ee);var B=u(Y);this._originalInput=Y,this._r=B.r,this._g=B.g,this._b=B.b,this._a=B.a,this._roundA=n(100*this._a)/100,this._format=ee.format||B.format,this._gradientType=ee.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=B.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Y=this.toRgb();return(Y.r*299+Y.g*587+Y.b*114)/1e3},getLuminance:function(){var Y=this.toRgb(),ee,B,ye,Me,ge,Re;return ee=Y.r/255,B=Y.g/255,ye=Y.b/255,ee<=.03928?Me=ee/12.92:Me=e.pow((ee+.055)/1.055,2.4),B<=.03928?ge=B/12.92:ge=e.pow((B+.055)/1.055,2.4),ye<=.03928?Re=ye/12.92:Re=e.pow((ye+.055)/1.055,2.4),.2126*Me+.7152*ge+.0722*Re},setAlpha:function(Y){return this._a=H(Y),this._roundA=n(100*this._a)/100,this},toHsv:function(){var Y=d(this._r,this._g,this._b);return{h:Y.h*360,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=d(this._r,this._g,this._b),ee=n(Y.h*360),B=n(Y.s*100),ye=n(Y.v*100);return this._a==1?"hsv("+ee+", "+B+"%, "+ye+"%)":"hsva("+ee+", "+B+"%, "+ye+"%, "+this._roundA+")"},toHsl:function(){var Y=v(this._r,this._g,this._b);return{h:Y.h*360,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=v(this._r,this._g,this._b),ee=n(Y.h*360),B=n(Y.s*100),ye=n(Y.l*100);return this._a==1?"hsl("+ee+", "+B+"%, "+ye+"%)":"hsla("+ee+", "+B+"%, "+ye+"%, "+this._roundA+")"},toHex:function(Y){return g(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return y(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(G(this._r,255)*100)+"%",g:n(G(this._g,255)*100)+"%",b:n(G(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(G(this._r,255)*100)+"%, "+n(G(this._g,255)*100)+"%, "+n(G(this._b,255)*100)+"%)":"rgba("+n(G(this._r,255)*100)+"%, "+n(G(this._g,255)*100)+"%, "+n(G(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:J[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(Y){var ee="#"+_(this._r,this._g,this._b,this._a),B=ee,ye=this._gradientType?"GradientType = 1, ":"";if(Y){var Me=s(Y);B="#"+_(Me._r,Me._g,Me._b,Me._a)}return"progid:DXImageTransform.Microsoft.gradient("+ye+"startColorstr="+ee+",endColorstr="+B+")"},toString:function(Y){var ee=!!Y;Y=Y||this._format;var B=!1,ye=this._a<1&&this._a>=0,Me=!ee&&ye&&(Y==="hex"||Y==="hex6"||Y==="hex3"||Y==="hex4"||Y==="hex8"||Y==="name");return Me?Y==="name"&&this._a===0?this.toName():this.toRgbString():(Y==="rgb"&&(B=this.toRgbString()),Y==="prgb"&&(B=this.toPercentageRgbString()),(Y==="hex"||Y==="hex6")&&(B=this.toHexString()),Y==="hex3"&&(B=this.toHexString(!0)),Y==="hex4"&&(B=this.toHex8String(!0)),Y==="hex8"&&(B=this.toHex8String()),Y==="name"&&(B=this.toName()),Y==="hsl"&&(B=this.toHslString()),Y==="hsv"&&(B=this.toHsvString()),B||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Y,ee){var B=Y.apply(null,[this].concat([].slice.call(ee)));return this._r=B._r,this._g=B._g,this._b=B._b,this.setAlpha(B._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(T,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(q,arguments)},_applyCombination:function(Y,ee){return Y.apply(null,[this].concat([].slice.call(ee)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(R,arguments)},tetrad:function(){return this._applyCombination(z,arguments)}},s.fromRatio=function(Y,ee){if(typeof Y=="object"){var B={};for(var ye in Y)Y.hasOwnProperty(ye)&&(ye==="a"?B[ye]=Y[ye]:B[ye]=Ae(Y[ye]));Y=B}return s(Y,ee)};function u(Y){var ee={r:0,g:0,b:0},B=1,ye=null,Me=null,ge=null,Re=!1,Ne=!1;return typeof Y=="string"&&(Y=se(Y)),typeof Y=="object"&&(ke(Y.r)&&ke(Y.g)&&ke(Y.b)?(ee=f(Y.r,Y.g,Y.b),Re=!0,Ne=String(Y.r).substr(-1)==="%"?"prgb":"rgb"):ke(Y.h)&&ke(Y.s)&&ke(Y.v)?(ye=Ae(Y.s),Me=Ae(Y.v),ee=m(Y.h,ye,Me),Re=!0,Ne="hsv"):ke(Y.h)&&ke(Y.s)&&ke(Y.l)&&(ye=Ae(Y.s),ge=Ae(Y.l),ee=h(Y.h,ye,ge),Re=!0,Ne="hsl"),Y.hasOwnProperty("a")&&(B=Y.a)),B=H(B),{ok:Re,format:Y.format||Ne,r:i(255,l(ee.r,0)),g:i(255,l(ee.g,0)),b:i(255,l(ee.b,0)),a:B}}function f(Y,ee,B){return{r:G(Y,255)*255,g:G(ee,255)*255,b:G(B,255)*255}}function v(Y,ee,B){Y=G(Y,255),ee=G(ee,255),B=G(B,255);var ye=l(Y,ee,B),Me=i(Y,ee,B),ge,Re,Ne=(ye+Me)/2;if(ye==Me)ge=Re=0;else{var Ee=ye-Me;switch(Re=Ne>.5?Ee/(2-ye-Me):Ee/(ye+Me),ye){case Y:ge=(ee-B)/Ee+(ee1&&(Ue-=1),Ue<1/6?ze+(Ve-ze)*6*Ue:Ue<1/2?Ve:Ue<2/3?ze+(Ve-ze)*(2/3-Ue)*6:ze}if(ee===0)ye=Me=ge=B;else{var Ne=B<.5?B*(1+ee):B+ee-B*ee,Ee=2*B-Ne;ye=Re(Ee,Ne,Y+1/3),Me=Re(Ee,Ne,Y),ge=Re(Ee,Ne,Y-1/3)}return{r:ye*255,g:Me*255,b:ge*255}}function d(Y,ee,B){Y=G(Y,255),ee=G(ee,255),B=G(B,255);var ye=l(Y,ee,B),Me=i(Y,ee,B),ge,Re,Ne=ye,Ee=ye-Me;if(Re=ye===0?0:Ee/ye,ye==Me)ge=0;else{switch(ye){case Y:ge=(ee-B)/Ee+(ee>1)+720)%360;--ee;)ye.h=(ye.h+Me)%360,ge.push(s(ye));return ge}function O(Y,ee){ee=ee||6;for(var B=s(Y).toHsv(),ye=B.h,Me=B.s,ge=B.v,Re=[],Ne=1/ee;ee--;)Re.push(s({h:ye,s:Me,v:ge})),ge=(ge+Ne)%1;return Re}s.mix=function(Y,ee,B){B=B===0?0:B||50;var ye=s(Y).toRgb(),Me=s(ee).toRgb(),ge=B/100,Re={r:(Me.r-ye.r)*ge+ye.r,g:(Me.g-ye.g)*ge+ye.g,b:(Me.b-ye.b)*ge+ye.b,a:(Me.a-ye.a)*ge+ye.a};return s(Re)},s.readability=function(Y,ee){var B=s(Y),ye=s(ee);return(e.max(B.getLuminance(),ye.getLuminance())+.05)/(e.min(B.getLuminance(),ye.getLuminance())+.05)},s.isReadable=function(Y,ee,B){var ye=s.readability(Y,ee),Me,ge;switch(ge=!1,Me=be(B),Me.level+Me.size){case"AAsmall":case"AAAlarge":ge=ye>=4.5;break;case"AAlarge":ge=ye>=3;break;case"AAAsmall":ge=ye>=7;break}return ge},s.mostReadable=function(Y,ee,B){var ye=null,Me=0,ge,Re,Ne,Ee;B=B||{},Re=B.includeFallbackColors,Ne=B.level,Ee=B.size;for(var ze=0;zeMe&&(Me=ge,ye=s(ee[ze]));return s.isReadable(Y,ye,{level:Ne,size:Ee})||!Re?ye:(B.includeFallbackColors=!1,s.mostReadable(Y,["#fff","#000"],B))};var X=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},J=s.hexNames=U(X);function U(Y){var ee={};for(var B in Y)Y.hasOwnProperty(B)&&(ee[Y[B]]=B);return ee}function H(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function G(Y,ee){ie(Y)&&(Y="100%");var B=pe(Y);return Y=i(ee,l(0,parseFloat(Y))),B&&(Y=parseInt(Y*ee,10)/100),e.abs(Y-ee)<1e-6?1:Y%ee/parseFloat(ee)}function K(Y){return i(1,l(0,Y))}function Q(Y){return parseInt(Y,16)}function ie(Y){return typeof Y=="string"&&Y.indexOf(".")!=-1&&parseFloat(Y)===1}function pe(Y){return typeof Y=="string"&&Y.indexOf("%")!=-1}function me(Y){return Y.length==1?"0"+Y:""+Y}function Ae(Y){return Y<=1&&(Y=Y*100+"%"),Y}function re(Y){return e.round(parseFloat(Y)*255).toString(16)}function Le(Y){return Q(Y)/255}var fe=function(){var Y="[-\\+]?\\d+%?",ee="[-\\+]?\\d*\\.\\d+%?",B="(?:"+ee+")|(?:"+Y+")",ye="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",Me="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?";return{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+ye),rgba:new RegExp("rgba"+Me),hsl:new RegExp("hsl"+ye),hsla:new RegExp("hsla"+Me),hsv:new RegExp("hsv"+ye),hsva:new RegExp("hsva"+Me),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ke(Y){return!!fe.CSS_UNIT.exec(Y)}function se(Y){Y=Y.replace(r,"").replace(t,"").toLowerCase();var ee=!1;if(X[Y])Y=X[Y],ee=!0;else if(Y=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var B;return(B=fe.rgb.exec(Y))?{r:B[1],g:B[2],b:B[3]}:(B=fe.rgba.exec(Y))?{r:B[1],g:B[2],b:B[3],a:B[4]}:(B=fe.hsl.exec(Y))?{h:B[1],s:B[2],l:B[3]}:(B=fe.hsla.exec(Y))?{h:B[1],s:B[2],l:B[3],a:B[4]}:(B=fe.hsv.exec(Y))?{h:B[1],s:B[2],v:B[3]}:(B=fe.hsva.exec(Y))?{h:B[1],s:B[2],v:B[3],a:B[4]}:(B=fe.hex8.exec(Y))?{r:Q(B[1]),g:Q(B[2]),b:Q(B[3]),a:Le(B[4]),format:ee?"name":"hex8"}:(B=fe.hex6.exec(Y))?{r:Q(B[1]),g:Q(B[2]),b:Q(B[3]),format:ee?"name":"hex"}:(B=fe.hex4.exec(Y))?{r:Q(B[1]+""+B[1]),g:Q(B[2]+""+B[2]),b:Q(B[3]+""+B[3]),a:Le(B[4]+""+B[4]),format:ee?"name":"hex8"}:(B=fe.hex3.exec(Y))?{r:Q(B[1]+""+B[1]),g:Q(B[2]+""+B[2]),b:Q(B[3]+""+B[3]),format:ee?"name":"hex"}:!1}function be(Y){var ee,B;return Y=Y||{level:"AA",size:"small"},ee=(Y.level||"AA").toUpperCase(),B=(Y.size||"small").toLowerCase(),ee!=="AA"&&ee!=="AAA"&&(ee="AA"),B!=="small"&&B!=="large"&&(B="small"),{level:ee,size:B}}typeof mv!="undefined"&&mv.exports?mv.exports=s:window.tinycolor=s})(Math)});var Vt=Z(Bu=>{"use strict";var zb=nl(),Hu=Array.isArray;function pI(e,r){var t,a;for(t=0;t{"use strict";Nb.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var Yu=Z((gie,Fb)=>{"use strict";Fb.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var fs=Z((bie,Ob)=>{"use strict";var Ib=Yu(),Hb=ma(),Z1=Hb({editType:"none"});Z1.family.dflt=Ib.HOVERFONT;Z1.size.dflt=Ib.HOVERFONTSIZE;Ob.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Z1,grouptitlefont:Hb({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var yv=Z((xie,Bb)=>{"use strict";var mI=ma(),Uu=fs().hoverlabel,Gu=Vt().extendFlat;Bb.exports={hoverlabel:{bgcolor:Gu({},Uu.bgcolor,{arrayOk:!0}),bordercolor:Gu({},Uu.bordercolor,{arrayOk:!0}),font:mI({arrayOk:!0,editType:"none"}),align:Gu({},Uu.align,{arrayOk:!0}),namelength:Gu({},Uu.namelength,{arrayOk:!0}),showarrow:Gu({},Uu.showarrow),editType:"none"}}});var Gn=Z((_ie,Yb)=>{"use strict";var yI=ma(),gI=yv();Yb.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:yI({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:gI.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var $l=Z((wie,Vb)=>{"use strict";var bI=bn(),gv={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Ub=gv.RdBu;function xI(e,r){if(r||(r=Ub),!e)return r;function t(){try{e=gv[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),Gb(e)?e:r}function Gb(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";jl.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];jl.defaultLine="#444";jl.lightLine="#eee";jl.background="#fff";jl.borderLine="#BEC8D9";jl.lightFraction=100*10/11});var Er=Z((Mie,Wb)=>{"use strict";var Wa=bn(),wI=Hr(),TI=nn().isTypedArray,$t=Wb.exports={},bv=hi();$t.defaults=bv.defaults;var MI=$t.defaultLine=bv.defaultLine;$t.lightLine=bv.lightLine;var J1=$t.background=bv.background;$t.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};$t.rgb=function(e){return $t.tinyRGB(Wa(e))};$t.opacity=function(e){return e?Wa(e).getAlpha():0};$t.addOpacity=function(e,r){var t=Wa(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};$t.combine=function(e,r){var t=Wa(e).toRgb();if(t.a===1)return Wa(e).toRgbString();var a=Wa(r||J1).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Wa(i).toRgbString()};$t.interpolate=function(e,r,t){var a=Wa(e).toRgb(),n=Wa(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Wa(i).toRgbString()};$t.contrast=function(e,r,t){var a=Wa(e);a.getAlpha()!==1&&(a=Wa($t.combine(e,J1)));var n=a.isDark()?r?a.lighten(r):J1:t?a.darken(t):MI;return n.toString()};$t.stroke=function(e,r){var t=Wa(r);e.style({stroke:$t.tinyRGB(t),"stroke-opacity":t.getAlpha()})};$t.fill=function(e,r){var t=Wa(r);e.style({fill:$t.tinyRGB(t),"fill-opacity":t.getAlpha()})};$t.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var l=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}});var xv=Z((Aie,Zb)=>{"use strict";Zb.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var cs=Z(Xb=>{"use strict";Xb.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var $b=Z(Za=>{"use strict";var K1=Hr(),Jb=bn(),Kb=Vt().extendFlat,AI=Gn(),kI=$l(),SI=Er(),CI=xv().DESELECTDIM,vs=hv(),Qb=cs().counter,LI=us().modHalf,di=nn().isArrayOrTypedArray,il=nn().isTypedArraySpec,ll=nn().decodeTypedArraySpec;Za.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(di(e)?e:il(e)?ll(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;aa.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}il(e)&&(e=ll(e)),e%1||!K1(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){il(e)&&(e=ll(e)),Jb(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return Jb(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(kI.get(e,t))}},angle:{coerceFunction:function(e,r,t){il(e)&&(e=ll(e)),e==="auto"?r.set("auto"):K1(e)?r.set(LI(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||Qb(t);if(typeof e=="string"&&n.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!Qb(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var jb={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},ex={};function rx(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),rx(a,r[t]))}}rx(jb,ex);tx.exports={configAttributes:jb,dfltConfig:ex}});var $1=Z((Lie,ax)=>{"use strict";var Q1=Ir(),qI=Hr(),Vu=[];ax.exports=function(e,r){if(Vu.indexOf(e)!==-1)return;Vu.push(e);var t=1e3;qI(r)?t=r:r==="long"&&(t=3e3);var a=Q1.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Vu);function i(l){l.duration(700).style("opacity",0).each("end",function(o){var s=Vu.indexOf(o);s!==-1&&Vu.splice(s,1),Q1.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var o=Q1.select(this);o.append("button").classed("notifier-close",!0).html("×").on("click",function(){o.transition().call(i)});for(var s=o.append("p"),u=l.split(//g),f=0;f{"use strict";var hs=eo().dfltConfig,j1=$1(),ep=nx.exports={};ep.log=function(){var e;if(hs.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};ep.warn=function(){var e;if(hs.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};ep.error=function(){var e;if(hs.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var wv=Z((Die,ix)=>{"use strict";ix.exports=function(){}});var rp=Z((Eie,lx)=>{"use strict";lx.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{ox.exports=DI;function DI(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var fx=Z((Rie,ux)=>{ux.exports=EI;function EI(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var vx=Z((zie,cx)=>{cx.exports=PI;function PI(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var tp=Z((Nie,hx)=>{hx.exports=RI;function RI(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var px=Z((Fie,dx)=>{dx.exports=zI;function zI(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var yx=Z((Iie,mx)=>{mx.exports=NI;function NI(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],g=r[13],y=r[14],_=r[15],w=t*o-a*l,T=t*s-n*l,b=t*u-i*l,A=a*s-n*o,C=a*u-i*o,k=n*u-i*s,q=f*g-v*m,D=f*y-h*m,R=f*_-d*m,z=v*y-h*g,F=v*_-d*g,I=h*_-d*y,O=w*I-T*F+b*z+A*R-C*D+k*q;return O?(O=1/O,e[0]=(o*I-s*F+u*z)*O,e[1]=(n*F-a*I-i*z)*O,e[2]=(g*k-y*C+_*A)*O,e[3]=(h*C-v*k-d*A)*O,e[4]=(s*R-l*I-u*D)*O,e[5]=(t*I-n*R+i*D)*O,e[6]=(y*b-m*k-_*T)*O,e[7]=(f*k-h*b+d*T)*O,e[8]=(l*F-o*R+u*q)*O,e[9]=(a*R-t*F-i*q)*O,e[10]=(m*C-g*b+_*w)*O,e[11]=(v*b-f*C-d*w)*O,e[12]=(o*D-l*z-s*q)*O,e[13]=(t*z-a*D+n*q)*O,e[14]=(g*T-m*A-y*w)*O,e[15]=(f*A-v*T+h*w)*O,e):null}});var bx=Z((Hie,gx)=>{gx.exports=FI;function FI(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],g=r[13],y=r[14],_=r[15];return e[0]=o*(h*_-d*y)-v*(s*_-u*y)+g*(s*d-u*h),e[1]=-(a*(h*_-d*y)-v*(n*_-i*y)+g*(n*d-i*h)),e[2]=a*(s*_-u*y)-o*(n*_-i*y)+g*(n*u-i*s),e[3]=-(a*(s*d-u*h)-o*(n*d-i*h)+v*(n*u-i*s)),e[4]=-(l*(h*_-d*y)-f*(s*_-u*y)+m*(s*d-u*h)),e[5]=t*(h*_-d*y)-f*(n*_-i*y)+m*(n*d-i*h),e[6]=-(t*(s*_-u*y)-l*(n*_-i*y)+m*(n*u-i*s)),e[7]=t*(s*d-u*h)-l*(n*d-i*h)+f*(n*u-i*s),e[8]=l*(v*_-d*g)-f*(o*_-u*g)+m*(o*d-u*v),e[9]=-(t*(v*_-d*g)-f*(a*_-i*g)+m*(a*d-i*v)),e[10]=t*(o*_-u*g)-l*(a*_-i*g)+m*(a*u-i*o),e[11]=-(t*(o*d-u*v)-l*(a*d-i*v)+f*(a*u-i*o)),e[12]=-(l*(v*y-h*g)-f*(o*y-s*g)+m*(o*h-s*v)),e[13]=t*(v*y-h*g)-f*(a*y-n*g)+m*(a*h-n*v),e[14]=-(t*(o*y-s*g)-l*(a*y-n*g)+m*(a*s-n*o)),e[15]=t*(o*h-s*v)-l*(a*h-n*v)+f*(a*s-n*o),e}});var _x=Z((Oie,xx)=>{xx.exports=II;function II(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],v=e[10],h=e[11],d=e[12],m=e[13],g=e[14],y=e[15],_=r*l-t*i,w=r*o-a*i,T=r*s-n*i,b=t*o-a*l,A=t*s-n*l,C=a*s-n*o,k=u*m-f*d,q=u*g-v*d,D=u*y-h*d,R=f*g-v*m,z=f*y-h*m,F=v*y-h*g;return _*F-w*z+T*R+b*D-A*q+C*k}});var Tx=Z((Bie,wx)=>{wx.exports=HI;function HI(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],v=r[8],h=r[9],d=r[10],m=r[11],g=r[12],y=r[13],_=r[14],w=r[15],T=t[0],b=t[1],A=t[2],C=t[3];return e[0]=T*a+b*o+A*v+C*g,e[1]=T*n+b*s+A*h+C*y,e[2]=T*i+b*u+A*d+C*_,e[3]=T*l+b*f+A*m+C*w,T=t[4],b=t[5],A=t[6],C=t[7],e[4]=T*a+b*o+A*v+C*g,e[5]=T*n+b*s+A*h+C*y,e[6]=T*i+b*u+A*d+C*_,e[7]=T*l+b*f+A*m+C*w,T=t[8],b=t[9],A=t[10],C=t[11],e[8]=T*a+b*o+A*v+C*g,e[9]=T*n+b*s+A*h+C*y,e[10]=T*i+b*u+A*d+C*_,e[11]=T*l+b*f+A*m+C*w,T=t[12],b=t[13],A=t[14],C=t[15],e[12]=T*a+b*o+A*v+C*g,e[13]=T*n+b*s+A*h+C*y,e[14]=T*i+b*u+A*d+C*_,e[15]=T*l+b*f+A*m+C*w,e}});var Ax=Z((Yie,Mx)=>{Mx.exports=OI;function OI(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,v,h,d,m,g,y,_;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],v=r[5],h=r[6],d=r[7],m=r[8],g=r[9],y=r[10],_=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=v,e[6]=h,e[7]=d,e[8]=m,e[9]=g,e[10]=y,e[11]=_,e[12]=l*a+f*n+m*i+r[12],e[13]=o*a+v*n+g*i+r[13],e[14]=s*a+h*n+y*i+r[14],e[15]=u*a+d*n+_*i+r[15]),e}});var Sx=Z((Uie,kx)=>{kx.exports=BI;function BI(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Lx=Z((Gie,Cx)=>{Cx.exports=YI;function YI(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,v,h,d,m,g,y,_,w,T,b,A,C,k,q,D,R,z,F,I,O,X;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,v=r[0],h=r[1],d=r[2],m=r[3],g=r[4],y=r[5],_=r[6],w=r[7],T=r[8],b=r[9],A=r[10],C=r[11],k=n*n*f+u,q=i*n*f+l*s,D=l*n*f-i*s,R=n*i*f-l*s,z=i*i*f+u,F=l*i*f+n*s,I=n*l*f+i*s,O=i*l*f-n*s,X=l*l*f+u,e[0]=v*k+g*q+T*D,e[1]=h*k+y*q+b*D,e[2]=d*k+_*q+A*D,e[3]=m*k+w*q+C*D,e[4]=v*R+g*z+T*F,e[5]=h*R+y*z+b*F,e[6]=d*R+_*z+A*F,e[7]=m*R+w*z+C*F,e[8]=v*I+g*O+T*X,e[9]=h*I+y*O+b*X,e[10]=d*I+_*O+A*X,e[11]=m*I+w*O+C*X,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var Dx=Z((Vie,qx)=>{qx.exports=UI;function UI(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+v*a,e[7]=s*n+h*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=v*n-o*a,e[11]=h*n-s*a,e}});var Px=Z((Wie,Ex)=>{Ex.exports=GI;function GI(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-v*a,e[3]=s*n-h*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+v*n,e[11]=s*a+h*n,e}});var zx=Z((Zie,Rx)=>{Rx.exports=VI;function VI(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],v=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+v*a,e[3]=s*n+h*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=v*n-o*a,e[7]=h*n-s*a,e}});var Fx=Z((Xie,Nx)=>{Nx.exports=WI;function WI(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var Hx=Z((Jie,Ix)=>{Ix.exports=ZI;function ZI(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,v=a*s,h=a*u,d=n*s,m=n*u,g=i*u,y=l*o,_=l*s,w=l*u;return e[0]=1-(d+g),e[1]=v+w,e[2]=h-_,e[3]=0,e[4]=v-w,e[5]=1-(f+g),e[6]=m+y,e[7]=0,e[8]=h+_,e[9]=m-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var Bx=Z((Kie,Ox)=>{Ox.exports=XI;function XI(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Ux=Z((Qie,Yx)=>{Yx.exports=JI;function JI(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Vx=Z(($ie,Gx)=>{Gx.exports=KI;function KI(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Zx=Z((jie,Wx)=>{Wx.exports=QI;function QI(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Jx=Z((ele,Xx)=>{Xx.exports=$I;function $I(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ap=Z((rle,Kx)=>{Kx.exports=jI;function jI(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,v=a*o,h=n*l,d=n*o,m=n*s,g=i*l,y=i*o,_=i*s;return e[0]=1-v-m,e[1]=f+_,e[2]=h-y,e[3]=0,e[4]=f-_,e[5]=1-u-m,e[6]=d+g,e[7]=0,e[8]=h+y,e[9]=d-g,e[10]=1-u-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var $x=Z((tle,Qx)=>{Qx.exports=eH;function eH(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var e_=Z((ale,jx)=>{jx.exports=rH;function rH(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var t_=Z((nle,r_)=>{r_.exports=tH;function tH(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var n_=Z((ile,a_)=>{a_.exports=aH;function aH(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var l_=Z((lle,i_)=>{var nH=tp();i_.exports=iH;function iH(e,r,t,a){var n,i,l,o,s,u,f,v,h,d,m=r[0],g=r[1],y=r[2],_=a[0],w=a[1],T=a[2],b=t[0],A=t[1],C=t[2];return Math.abs(m-b)<1e-6&&Math.abs(g-A)<1e-6&&Math.abs(y-C)<1e-6?nH(e):(f=m-b,v=g-A,h=y-C,d=1/Math.sqrt(f*f+v*v+h*h),f*=d,v*=d,h*=d,n=w*h-T*v,i=T*f-_*h,l=_*v-w*f,d=Math.sqrt(n*n+i*i+l*l),d?(d=1/d,n*=d,i*=d,l*=d):(n=0,i=0,l=0),o=v*l-h*i,s=h*n-f*l,u=f*i-v*n,d=Math.sqrt(o*o+s*s+u*u),d?(d=1/d,o*=d,s*=d,u*=d):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=v,e[7]=0,e[8]=l,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*m+i*g+l*y),e[13]=-(o*m+s*g+u*y),e[14]=-(f*m+v*g+h*y),e[15]=1,e)}});var s_=Z((ole,o_)=>{o_.exports=lH;function lH(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var np=Z((sle,u_)=>{u_.exports={create:sx(),clone:fx(),copy:vx(),identity:tp(),transpose:px(),invert:yx(),adjoint:bx(),determinant:_x(),multiply:Tx(),translate:Ax(),scale:Sx(),rotate:Lx(),rotateX:Dx(),rotateY:Px(),rotateZ:zx(),fromRotation:Fx(),fromRotationTranslation:Hx(),fromScaling:Bx(),fromTranslation:Ux(),fromXRotation:Vx(),fromYRotation:Zx(),fromZRotation:Jx(),fromQuat:ap(),frustum:$x(),perspective:e_(),perspectiveFromFieldOfView:t_(),ortho:n_(),lookAt:l_(),str:s_()}});var Tv=Z(Et=>{"use strict";var oH=np();Et.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var sH=Ir(),f_=ro(),uH=Tv(),fH=np();function cH(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function vH(e){var r=sH.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function c_(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function hH(e,r){v_("global",e,r)}function v_(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):f_.warn("addStyleRule failed"):f_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function dH(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&c_(t)}function pH(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[l[0]]=l[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[l[0]]=l[1]:f.style[o[0]]=o[1])}),u.setAttribute(s,!0))})}function mH(e){var r=d_(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=h_(a);if(n){var i=uH.convertCssMatrix(n);t=fH.multiply(t,t,i)}}),t}function h_(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function d_(e){for(var r=[];yH(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function yH(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function gH(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}p_.exports={getGraphDiv:cH,isPlotDiv:vH,removeElement:c_,addStyleRule:hH,addRelatedStyleRule:v_,deleteRelatedStyleRule:dH,setStyleOnHover:pH,getFullTransformMatrix:mH,getElementTransformMatrix:h_,getElementAndAncestors:d_,equalDomRects:gH}});var Zu=Z((cle,m_)=>{"use strict";m_.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var pi=Z((vle,T_)=>{"use strict";var g_=Vt().extendFlat,bH=nl(),b_={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},x_={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},xH=b_.flags.slice().concat(["fullReplot"]),_H=x_.flags.slice().concat("layoutReplot");T_.exports={traces:b_,layout:x_,traceFlags:function(){return y_(xH)},layoutFlags:function(){return y_(_H)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";ip.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};ip.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var lp=Z((dle,M_)=>{"use strict";M_.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var yi=Z(Xu=>{"use strict";var A_=lp(),wH=A_.FORMAT_LINK,TH=A_.DATE_FORMAT_LINK;function MH(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,wH,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,TH,"for details on the date formatting syntax."].join(" ")}Xu.templateFormatStringDescription=MH;function op(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n{"use strict";function ol(e,r){return r?r.d2l(e):e}function k_(e,r){return r?r.l2d(e):e}function AH(e){return e.x0}function kH(e){return e.x1}function SH(e){return e.y0}function CH(e){return e.y1}function S_(e){return e.x0shift||0}function C_(e){return e.x1shift||0}function L_(e){return e.y0shift||0}function q_(e){return e.y1shift||0}function Mv(e,r){return ol(e.x1,r)+C_(e)-ol(e.x0,r)-S_(e)}function Av(e,r,t){return ol(e.y1,t)+q_(e)-ol(e.y0,t)-L_(e)}function LH(e,r){return Math.abs(Mv(e,r))}function qH(e,r,t){return Math.abs(Av(e,r,t))}function DH(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Mv(e,r),2)+Math.pow(Av(e,r,t),2))}function EH(e,r){return k_((ol(e.x1,r)+C_(e)+ol(e.x0,r)+S_(e))/2,r)}function PH(e,r,t){return k_((ol(e.y1,t)+q_(e)+ol(e.y0,t)+L_(e))/2,t)}function RH(e,r,t){return e.type!=="line"?void 0:Av(e,r,t)/Mv(e,r)}D_.exports={x0:AH,x1:kH,y0:SH,y1:CH,slope:RH,dx:Mv,dy:Av,width:LH,height:qH,length:DH,xcenter:EH,ycenter:PH}});var R_=Z((yle,P_)=>{"use strict";var zH=pi().overrideAll,to=Gn(),E_=ma(),NH=mi().dash,sl=Vt().extendFlat,FH=yi().shapeTexttemplateAttrs,IH=kv();P_.exports=zH({newshape:{visible:sl({},to.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:sl({},to.legend,{}),legendgroup:sl({},to.legendgroup,{}),legendgrouptitle:{text:sl({},to.legendgrouptitle.text,{}),font:E_({})},legendrank:sl({},to.legendrank,{}),legendwidth:sl({},to.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:sl({},NH,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:sl({},to.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:FH({newshape:!0},{keys:Object.keys(IH)}),font:E_({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var N_=Z((gle,z_)=>{"use strict";var HH=mi().dash,OH=Vt().extendFlat;z_.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:OH({},HH,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Sv=Z((ble,F_)=>{"use strict";F_.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var ds=Z((xle,B_)=>{"use strict";var sp=ma(),BH=Zu(),Cv=hi(),I_=R_(),H_=N_(),YH=Sv(),O_=Vt().extendFlat,Lv=sp({editType:"calc"});Lv.family.dflt='"Open Sans", verdana, arial, sans-serif';Lv.size.dflt=12;Lv.color.dflt=Cv.defaultLine;B_.exports={font:Lv,title:{text:{valType:"string",editType:"layoutstyle"},font:sp({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:sp({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:O_(YH({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Cv.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Cv.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Cv.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:I_.newshape,activeshape:I_.activeshape,newselection:H_.newselection,activeselection:H_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:O_({},BH.transition,{editType:"none"})}});var Y_=Z(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var br=Z(zr=>{"use strict";var ps=ro(),U_=wv(),G_=rp(),UH=nl(),GH=Wu().addStyleRule,V_=Vt(),VH=Gn(),WH=ds(),ZH=V_.extendFlat,up=V_.extendDeepAll;zr.modules={};zr.allCategories={};zr.allTypes=[];zr.subplotsRegistry={};zr.componentsRegistry={};zr.layoutArrayContainers=[];zr.layoutArrayRegexes=[];zr.traceLayoutAttributes={};zr.localeRegistry={};zr.apiMethodRegistry={};zr.collectableSubplotTypes=null;zr.register=function(r){if(zr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var jH=os().timeFormat,t4=Hr(),fp=ro(),fl=us().mod,gs=Gt(),xn=gs.BADNUM,Xa=gs.ONEDAY,Ju=gs.ONEHOUR,ul=gs.ONEMIN,ys=gs.ONESEC,Ku=gs.EPOCHJD,Ni=br(),K_=os().utcFormat,eO=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,rO=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Q_=new Date().getFullYear()-70;function Fi(e){return e&&Ni.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Pt.dateTick0=function(e,r){var t=tO(e,!!r);if(r<2)return t;var a=Pt.dateTime2ms(t,e);return a+=Xa*(r-1),Pt.ms2DateTime(a,0,e)};function tO(e,r){return Fi(e)?r?Ni.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ni.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Pt.dfltRange=function(e){return Fi(e)?Ni.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Pt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Dv,Ev;Pt.dateTime2ms=function(e,r){if(Pt.isJSDate(e)){var t=e.getTimezoneOffset()*ul,a=(e.getUTCMinutes()-e.getMinutes())*ul+(e.getUTCSeconds()-e.getSeconds())*ys+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*ul;t=t-n/2+fl(a-t+n/2,n)}return e=Number(e)-t,e>=Dv&&e<=Ev?e:xn}if(typeof e!="string"&&typeof e!="number")return xn;e=String(e);var i=Fi(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.substr(1),r="");var o=i&&r.substr(0,7)==="chinese",s=e.match(o?rO:eO);if(!s)return xn;var u=s[1],f=s[3]||"1",v=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return xn;u=Number(u);var g;try{var y=Ni.getComponentMethod("calendars","getCal")(r);if(o){var _=f.charAt(f.length-1)==="i";f=parseInt(f,10),g=y.newDate(u,y.toMonthIndex(u,f,_),v)}else g=y.newDate(u,Number(f),v)}catch(T){return xn}return g?(g.toJD()-Ku)*Xa+h*Ju+d*ul+m*ys:xn}u.length===2?u=(Number(u)+2e3-Q_)%100+Q_:u=Number(u),f-=1;var w=new Date(Date.UTC(2e3,f,v,h,d));return w.setUTCFullYear(u),w.getUTCMonth()!==f||w.getUTCDate()!==v?xn:w.getTime()+m*ys};Dv=Pt.MIN_MS=Pt.dateTime2ms("-9999");Ev=Pt.MAX_MS=Pt.dateTime2ms("9999-12-31 23:59:59.9999");Pt.isDateTime=function(e,r){return Pt.dateTime2ms(e,r)!==xn};function ms(e,r){return String(e+Math.pow(10,r)).substr(1)}var qv=90*Xa,$_=3*Ju,j_=5*ul;Pt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Dv&&e<=Ev))return xn;r||(r=0);var a=Math.floor(fl(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(Fi(t)){var v=Math.floor(n/Xa)+Ku,h=Math.floor(fl(e,Xa));try{i=Ni.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=K_("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;l=r=Dv+Xa&&e<=Ev-Xa))return xn;var r=Math.floor(fl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=jH("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return a4(a,n,i,l,o)};function a4(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+ms(r,2)+":"+ms(t,2),(a||n)&&(e+=":"+ms(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+ms(n,i)}return e}Pt.cleanDate=function(e,r,t){if(e===xn)return r;if(Pt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Fi(t))return fp.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Pt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Pt.isDateTime(e,t))return fp.error("unrecognized date",e),r;return e};var aO=/%\d?f/g,nO=/%h/g,iO={1:"1",2:"1",3:"2",4:"2"};function e4(e,r,t,a){e=e.replace(aO,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).substr(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(nO,function(){return iO[t("%q")(n)]}),Fi(a))try{e=Ni.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var lO=[59,59.9,59.99,59.999,59.9999];function oO(e,r){var t=fl(e+.05,Xa),a=ms(Math.floor(t/Ju),2)+":"+ms(fl(Math.floor(t/ul),60),2);if(r!=="M"){t4(r)||(r=0);var n=Math.min(fl(e/ys,60),lO[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Pt.formatDate=function(e,r,t,a,n,i){if(n=Fi(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return oO(e,t)+` -`+e4(i.dayMonthYear,e,a,n);return e4(r,e,a,n)};var r4=3*Xa;Pt.incrementMonth=function(e,r,t){t=Fi(t)&&t;var a=fl(e,Xa);if(e=Math.round(e-a),t)try{var n=Math.round(e/Xa)+Ku,i=Ni.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-Ku)*Xa+a}catch(s){fp.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+r4);return o.setUTCMonth(o.getUTCMonth()+r)+a-r4};Pt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=Fi(r)&&Ni.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";i4.exports=function(r){return r}});var hp=Z(Ii=>{"use strict";var sO=Hr(),uO=ro(),fO=cp(),cO=Gt().BADNUM,vp=1e-9;Ii.findBin=function(e,r,t){if(sO(r.start))return t?Math.ceil((e-r.start)/r.size-vp)-1:Math.floor((e-r.start)/r.size+vp);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?vO:hO:s=t?pO:dO,e+=l*vp*(t?-1:1)*(l>=0?1:-1);a90&&uO.log("Long binary search..."),a-1};function vO(e,r){return er}function pO(e,r){return e>=r}Ii.sorterAsc=function(e,r){return e-r};Ii.sorterDes=function(e,r){return r-e};Ii.distinctVals=function(e){var r=e.slice();r.sort(Ii.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===cO;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};Ii.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Ii.findIndexOfMin=function(e,r){r=r||fO;for(var t=1/0,a,n=0;n{"use strict";l4.exports=function(r){return Object.keys(r).sort()}});var o4=Z(Rt=>{"use strict";var Qu=Hr(),mO=nn().isArrayOrTypedArray;Rt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Qu(r)||(r=!1),mO(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var v4=Z((Lle,c4)=>{"use strict";var s4=us(),pp=s4.mod,yO=s4.modHalf,$u=Math.PI,cl=2*$u;function gO(e){return e/180*$u}function bO(e){return e/$u*180}function mp(e){return Math.abs(e[1]-e[0])>cl-1e-14}function u4(e,r){return yO(r-e,cl)}function xO(e,r){return Math.abs(u4(e,r))}function f4(e,r){if(mp(r))return!0;var t,a;r[0]a&&(a+=cl);var n=pp(e,cl),i=n+cl;return n>=t&&n<=a||i>=t&&i<=a}function _O(e,r,t,a){if(!f4(r,a))return!1;var n,i;return t[0]=n&&e<=i}function yp(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=mp([t,a]),s,u,f,v,h;o?(s=0,u=$u,f=cl):t{"use strict";ao.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};ao.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};ao.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};ao.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};ao.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};ao.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var m4=Z(no=>{"use strict";var gp=us().mod;no.segmentsIntersect=p4;function p4(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,v=a-r,h=i-r,d=o-i,m=s*d-f*v;if(m===0)return null;var g=(u*d-f*h)/m,y=(u*v-s*h)/m;return y<0||y>1||g<0||g>1?null:{x:e+s*g,y:r+v*g}}no.segmentDistance=function(r,t,a,n,i,l,o,s){if(p4(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,v=o-i,h=s-l,d=u*u+f*f,m=v*v+h*h,g=Math.min(Pv(u,f,d,i-r,l-t),Pv(u,f,d,o-r,s-t),Pv(v,h,m,r-i,t-l),Pv(v,h,m,a-i,n-l));return Math.sqrt(g)};function Pv(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var Rv,bp,d4;no.getTextLocation=function(r,t,a,n){if((r!==bp||n!==d4)&&(Rv={},bp=r,d4=n),Rv[a])return Rv[a];var i=r.getPointAtLength(gp(a-n/2,t)),l=r.getPointAtLength(gp(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(gp(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,v={x:u,y:f,theta:o};return Rv[a]=v,v};no.clearLocationCache=function(){bp=null};no.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,v,h;function d(g){var y=r.getPointAtLength(g);g===0?v=y:g===u&&(h=y);var _=y.xi?y.x-i:0,w=y.yo?y.y-o:0;return Math.sqrt(_*_+w*w)}for(var m=d(s);m;){if(s+=m+a,s>f)return;m=d(s)}for(m=d(f);m;){if(f-=m+a,s>f)return;m=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(v.x-h.x)<.1&&Math.abs(v.y-h.y)<.1}};no.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,v=i,h,d,m;u0?v=h:f=h,u++}return d}});var zv=Z(ju=>{"use strict";var Hi={};ju.throttle=function(r,t,a){var n=Hi[r],i=Date.now();if(!n){for(var l in Hi)Hi[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};ju.done=function(e){var r=Hi[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};ju.clear=function(e){if(e)y4(Hi[e]),delete Hi[e];else for(var r in Hi)ju.clear(r)};function y4(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var b4=Z((Ple,g4)=>{"use strict";g4.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var x4=Z((Rle,Nv)=>{"use strict";Nv.exports=xp;Nv.exports.isMobile=xp;Nv.exports.default=xp;var AO=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,kO=/CrOS/,SO=/android|ipad|playbook|silk/i;function xp(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=AO.test(r)&&!kO.test(r)||!!e.tablet&&SO.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var w4=Z((zle,_4)=>{"use strict";var CO=Hr(),LO=x4();_4.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=qO(),typeof t!="string")return!0;var a=LO({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;o--){var s=n[o];if(s.substr(0,8)==="Version/"){var u=s.substr(8).split(".")[0];if(CO(u)&&(u=+u),u>=13)return!0}}}return a};function qO(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var M4=Z((Nle,T4)=>{"use strict";var DO=Ir();T4.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=DO.select(this)}),n}});var k4=Z((Fle,A4)=>{"use strict";var EO=br();A4.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=EO.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var C4=Z((Ile,S4)=>{"use strict";S4.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";L4.exports=function(r){for(var t=zO(r)?RO:PO,a=[],n=0;n{"use strict";D4.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var R4=Z((Ble,P4)=>{"use strict";var NO=Hr(),FO=Gt().BADNUM,IO=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;P4.exports=function(r){return typeof r=="string"&&(r=r.replace(IO,"")),NO(r)?Number(r):FO}});var Ie=Z((Yle,Z4)=>{"use strict";var ef=Ir(),HO=os().utcFormat,OO=B1().format,O4=Hr(),B4=Gt(),Y4=B4.FP_SAFE,BO=-Y4,z4=B4.BADNUM,ve=Z4.exports={};ve.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var N4={};ve.warnBadFormat=function(e){var r=String(e);N4[r]||(N4[r]=1,ve.warn('encountered bad format: "'+r+'"'))};ve.noFormat=function(e){return String(e)};ve.numberFormat=function(e){var r;try{r=OO(ve.adjustFormat(e))}catch(t){return ve.warnBadFormat(e),ve.noFormat}return r};ve.nestedProperty=hv();ve.keyedContainer=Sb();ve.relativeAttr=Lb();ve.isPlainObject=nl();ve.toLogRange=pv();ve.relinkPrivateKeys=Pb();var vl=nn();ve.isArrayBuffer=vl.isArrayBuffer;ve.isTypedArray=vl.isTypedArray;ve.isArrayOrTypedArray=vl.isArrayOrTypedArray;ve.isArray1D=vl.isArray1D;ve.ensureArray=vl.ensureArray;ve.concat=vl.concat;ve.maxRowLength=vl.maxRowLength;ve.minRowLength=vl.minRowLength;var U4=us();ve.mod=U4.mod;ve.modHalf=U4.modHalf;var hl=$b();ve.valObjectMeta=hl.valObjectMeta;ve.coerce=hl.coerce;ve.coerce2=hl.coerce2;ve.coerceFont=hl.coerceFont;ve.coercePattern=hl.coercePattern;ve.coerceHoverinfo=hl.coerceHoverinfo;ve.coerceSelectionMarkerOpacity=hl.coerceSelectionMarkerOpacity;ve.validate=hl.validate;var ln=n4();ve.dateTime2ms=ln.dateTime2ms;ve.isDateTime=ln.isDateTime;ve.ms2DateTime=ln.ms2DateTime;ve.ms2DateTimeLocal=ln.ms2DateTimeLocal;ve.cleanDate=ln.cleanDate;ve.isJSDate=ln.isJSDate;ve.formatDate=ln.formatDate;ve.incrementMonth=ln.incrementMonth;ve.dateTick0=ln.dateTick0;ve.dfltRange=ln.dfltRange;ve.findExactDates=ln.findExactDates;ve.MIN_MS=ln.MIN_MS;ve.MAX_MS=ln.MAX_MS;var io=hp();ve.findBin=io.findBin;ve.sorterAsc=io.sorterAsc;ve.sorterDes=io.sorterDes;ve.distinctVals=io.distinctVals;ve.roundUp=io.roundUp;ve.sort=io.sort;ve.findIndexOfMin=io.findIndexOfMin;ve.sortObjectKeys=dp();var Oi=o4();ve.aggNums=Oi.aggNums;ve.len=Oi.len;ve.mean=Oi.mean;ve.geometricMean=Oi.geometricMean;ve.median=Oi.median;ve.midRange=Oi.midRange;ve.variance=Oi.variance;ve.stdev=Oi.stdev;ve.interp=Oi.interp;var Vn=Tv();ve.init2dArray=Vn.init2dArray;ve.transposeRagged=Vn.transposeRagged;ve.dot=Vn.dot;ve.translationMatrix=Vn.translationMatrix;ve.rotationMatrix=Vn.rotationMatrix;ve.rotationXYMatrix=Vn.rotationXYMatrix;ve.apply3DTransform=Vn.apply3DTransform;ve.apply2DTransform=Vn.apply2DTransform;ve.apply2DTransform2=Vn.apply2DTransform2;ve.convertCssMatrix=Vn.convertCssMatrix;ve.inverseTransformMatrix=Vn.inverseTransformMatrix;var gi=v4();ve.deg2rad=gi.deg2rad;ve.rad2deg=gi.rad2deg;ve.angleDelta=gi.angleDelta;ve.angleDist=gi.angleDist;ve.isFullCircle=gi.isFullCircle;ve.isAngleInsideSector=gi.isAngleInsideSector;ve.isPtInsideSector=gi.isPtInsideSector;ve.pathArc=gi.pathArc;ve.pathSector=gi.pathSector;ve.pathAnnulus=gi.pathAnnulus;var xs=h4();ve.isLeftAnchor=xs.isLeftAnchor;ve.isCenterAnchor=xs.isCenterAnchor;ve.isRightAnchor=xs.isRightAnchor;ve.isTopAnchor=xs.isTopAnchor;ve.isMiddleAnchor=xs.isMiddleAnchor;ve.isBottomAnchor=xs.isBottomAnchor;var _s=m4();ve.segmentsIntersect=_s.segmentsIntersect;ve.segmentDistance=_s.segmentDistance;ve.getTextLocation=_s.getTextLocation;ve.clearLocationCache=_s.clearLocationCache;ve.getVisibleSegment=_s.getVisibleSegment;ve.findPointOnPath=_s.findPointOnPath;var Hv=Vt();ve.extendFlat=Hv.extendFlat;ve.extendDeep=Hv.extendDeep;ve.extendDeepAll=Hv.extendDeepAll;ve.extendDeepNoArrays=Hv.extendDeepNoArrays;var _p=ro();ve.log=_p.log;ve.warn=_p.warn;ve.error=_p.error;var YO=cs();ve.counterRegex=YO.counter;var wp=zv();ve.throttle=wp.throttle;ve.throttleDone=wp.done;ve.clearThrottle=wp.clear;var Wn=Wu();ve.getGraphDiv=Wn.getGraphDiv;ve.isPlotDiv=Wn.isPlotDiv;ve.removeElement=Wn.removeElement;ve.addStyleRule=Wn.addStyleRule;ve.addRelatedStyleRule=Wn.addRelatedStyleRule;ve.deleteRelatedStyleRule=Wn.deleteRelatedStyleRule;ve.setStyleOnHover=Wn.setStyleOnHover;ve.getFullTransformMatrix=Wn.getFullTransformMatrix;ve.getElementTransformMatrix=Wn.getElementTransformMatrix;ve.getElementAndAncestors=Wn.getElementAndAncestors;ve.equalDomRects=Wn.equalDomRects;ve.clearResponsive=b4();ve.preserveDrawingBuffer=w4();ve.makeTraceGroups=M4();ve._=k4();ve.notifier=$1();ve.filterUnique=C4();ve.filterVisible=q4();ve.pushUnique=rp();ve.increment=E4();ve.cleanNumber=R4();ve.ensureNumber=function(r){return O4(r)?(r=Number(r),r>Y4||r=r?!1:O4(e)&&e>=0&&e%1===0};ve.noop=wv();ve.identity=cp();ve.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};ve.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};ve.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o=Math.pow(2,t)?n>10?(ve.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};ve.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};ve.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),l=new Array(t),o,s,u,f;for(o=0;o=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];l[o]=f}return l};ve.syncOrAsync=function(e,r,t){var a,n;function i(){return ve.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};ve.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};ve.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};ve.fillArray=function(e,r,t,a){if(a=a||ve.identity,ve.isArrayOrTypedArray(e))for(var n=0;nVO.test(window.navigator.userAgent);var WO=/Firefox\/(\d+)\.\d+/;ve.getFirefoxVersion=function(){var e=WO.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};ve.isD3Selection=function(e){return e instanceof ef.selection};ve.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};ve.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};ve.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};ve.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var W4=/^\w*$/;ve.templateString=function(e,r){var t={};return e.replace(ve.TEMPLATE_STRING_REGEX,function(a,n){var i;return W4.test(n)?i=r[n]:(t[n]=t[n]||ve.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var JO={max:10,count:0,name:"hovertemplate"};ve.hovertemplateString=function(){return Tp.apply(JO,arguments)};var KO={max:10,count:0,name:"texttemplate"};ve.texttemplateString=function(){return Tp.apply(KO,arguments)};var QO=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function $O(e){var r=e.match(QO);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var jO={max:10,count:0,name:"texttemplate",parseMultDiv:!0};ve.texttemplateStringForShapes=function(){return Tp.apply(jO,arguments)};var F4=/^[:|\|]/;function Tp(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(ve.TEMPLATE_STRING_REGEX,function(i,l,o){var s=l==="xother"||l==="yother",u=l==="_xother"||l==="_yother",f=l==="_xother_"||l==="_yother_",v=l==="xother_"||l==="yother_",h=s||u||v||f,d=l;(u||f)&&(d=d.substring(1)),(v||f)&&(d=d.substring(0,d.length-1));var m=null,g=null;if(a.parseMultDiv){var y=$O(d);d=y.key,m=y.op,g=y.number}var _;if(h){if(_=r[d],_===void 0)return""}else{var w,T;for(T=3;T=Iv&&l<=I4,u=o>=Iv&&o<=I4;if(s&&(a=10*a+l-Iv),u&&(n=10*n+o-Iv),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var bs=2e9;ve.seedPseudoRandom=function(){bs=2e9};ve.pseudoRandom=function(){var e=bs;return bs=(69069*bs+1)%4294967296,Math.abs(bs-e)<429496729?ve.pseudoRandom():bs/4294967296};ve.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=ve.extractOption(e,r,"htx","hovertext");if(ve.isValidTextValue(n))return a(n);var i=ve.extractOption(e,r,"tx","text");if(ve.isValidTextValue(i))return a(i)};ve.isValidTextValue=function(e){return e||e===0};ve.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,ve.strTranslate(n-u*(t+l),i-u*(a+o))+ve.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};ve.setTransormAndDisplay=function(e,r){e.attr("transform",ve.getTextTransform(r)),e.style("display",r.scale?null:"none")};ve.ensureUniformFontSize=function(e,r){var t=ve.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};ve.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};ve.bigFont=function(e){return Math.round(1.2*e)};var H4=ve.getFirefoxVersion(),eB=H4!==null&&H4<86;ve.getPositionFromD3Event=function(){return eB?[ef.event.layerX,ef.event.layerY]:[ef.event.offsetX,ef.event.offsetY]}});var K4=Z(()=>{"use strict";var rB=Ie(),X4={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Mp in X4)J4=Mp.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),rB.addStyleRule(J4,X4[Mp]);var J4,Mp});var Ap=Z((Vle,Q4)=>{Q4.exports=!0});var Sp=Z((Wle,$4)=>{"use strict";var tB=Ap(),kp;typeof window.matchMedia=="function"?kp=!window.matchMedia("(hover: none)").matches:kp=tB;$4.exports=kp});var Yv=Z((Zle,Cp)=>{"use strict";var ws=typeof Reflect=="object"?Reflect:null,j4=ws&&typeof ws.apply=="function"?ws.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Ov;ws&&typeof ws.ownKeys=="function"?Ov=ws.ownKeys:Object.getOwnPropertySymbols?Ov=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Ov=function(r){return Object.getOwnPropertyNames(r)};function aB(e){console&&console.warn&&console.warn(e)}var r6=Number.isNaN||function(r){return r!==r};function vt(){vt.init.call(this)}Cp.exports=vt;Cp.exports.once=oB;vt.EventEmitter=vt;vt.prototype._events=void 0;vt.prototype._eventsCount=0;vt.prototype._maxListeners=void 0;var e6=10;function Bv(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(vt,"defaultMaxListeners",{enumerable:!0,get:function(){return e6},set:function(e){if(typeof e!="number"||e<0||r6(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");e6=e}});vt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};vt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||r6(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function t6(e){return e._maxListeners===void 0?vt.defaultMaxListeners:e._maxListeners}vt.prototype.getMaxListeners=function(){return t6(this)};vt.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")j4(s,this,t);else for(var u=s.length,f=o6(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,aB(o)}return e}vt.prototype.addListener=function(r,t){return a6(this,r,t,!1)};vt.prototype.on=vt.prototype.addListener;vt.prototype.prependListener=function(r,t){return a6(this,r,t,!0)};function nB(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function n6(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=nB.bind(a);return n.listener=t,a.wrapFn=n,n}vt.prototype.once=function(r,t){return Bv(t),this.on(r,n6(this,r,t)),this};vt.prototype.prependOnceListener=function(r,t){return Bv(t),this.prependListener(r,n6(this,r,t)),this};vt.prototype.removeListener=function(r,t){var a,n,i,l,o;if(Bv(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():iB(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};vt.prototype.off=vt.prototype.removeListener;vt.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function i6(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?lB(n):o6(n,n.length)}vt.prototype.listeners=function(r){return i6(this,r,!0)};vt.prototype.rawListeners=function(r){return i6(this,r,!1)};vt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):l6.call(e,r)};vt.prototype.listenerCount=l6;function l6(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}vt.prototype.eventNames=function(){return this._eventsCount>0?Ov(this._events):[]};function o6(e,r){for(var t=new Array(r),a=0;a{"use strict";var Lp=Yv().EventEmitter,uB={init:function(e){if(e._ev instanceof Lp)return e;var r=new Lp,t=new Lp;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function l(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var o;for(o=0;o{"use strict";var f6=Ie(),fB=eo().dfltConfig;function cB(e,r){for(var t=[],a,n=0;nfB.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Bi.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Bi.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Bi.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";h6.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var As=Z(Wt=>{"use strict";var _n=br(),tf=Ie(),Gv=Gn(),Dp=ds(),vB=qp(),hB=Zu(),dB=eo().configAttributes,d6=pi(),Zn=tf.extendDeepAll,Ts=tf.isPlainObject,pB=tf.isArrayOrTypedArray,Vv=tf.nestedProperty,mB=tf.valObjectMeta,Ep="_isSubplotObj",Wv="_isLinkedToArray",yB="_arrayAttrRegexps",m6="_deprecated",Pp=[Ep,Wv,yB,m6];Wt.IS_SUBPLOT_OBJ=Ep;Wt.IS_LINKED_TO_ARRAY=Wv;Wt.DEPRECATED=m6;Wt.UNDERSCORE_ATTRS=Pp;Wt.get=function(){var e={};return _n.allTypes.forEach(function(r){e[r]=bB(r)}),{defs:{valObjects:mB,metaKeys:Pp.concat(["description","role","editType","impliedEdits"]),editType:{traces:d6.traces,layout:d6.layout},impliedEdits:{}},traces:e,layout:xB(),frames:_B(),animation:Ms(hB),config:Ms(dB)}};Wt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(Pp.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!Wt.isValObject(l)&&Ts(l)&&i!=="impliedEdits"&&Wt.crawl(l,r,n+1,o)}})};Wt.isValObject=function(e){return e&&e.valType!==void 0};Wt.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,v){t=t.slice(0,v).concat([u]),a=a.slice(0,v).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&o(n,0,"")}function o(s,u,f){var v=s[t[u]],h=f+t[u];if(u===t.length-1)pB(v)&&r.push(i+h);else if(a[u]){if(Array.isArray(v))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!Uv(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function Uv(e){return e===Math.round(e)&&e>=0}function bB(e){var r,t;r=_n.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Zn({},Gv),i=Zn({},r.attributes);Wt.crawl(i,function(s,u,f,v,h){Vv(n,h).set(void 0),s===void 0&&Vv(i,h).set(void 0)}),Zn(a,n),_n.traceIs(e,"noOpacity")&&delete a.opacity,_n.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),_n.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Zn(a,i),t.attributes&&Zn(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Ms(a)};if(r.layoutAttributes){var o={};Zn(o,r.layoutAttributes),l.layoutAttributes=Ms(o)}return r.animatable||Wt.crawl(l,function(s){Wt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function xB(){var e={},r,t;Zn(e,Dp);for(r in _n.subplotsRegistry)if(t=_n.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var ks=Ie(),kB=Gn(),dl="templateitemname",Rp={name:{valType:"string",editType:"none"}};Rp[dl]={valType:"string",editType:"calc"};lo.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Rp.name,r[dl]=Rp[dl],r};lo.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=ks.coerce(i,{},kB,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};lo.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);ks.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};lo.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[b6(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},v=f[dl]=u[dl];if(!g6(v))return f._template=n,f;for(var h=0;h=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][dl]=i)}s();function u(d,m){o[d]=m}function f(d,m){i?ks.nestedProperty(o[l],d).set(m):o[l+"."+d]=m}function v(){var d=o;return s(),d}function h(d,m){d&&f(d,m);var g=v();for(var y in g)ks.nestedProperty(e,y).set(g[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:h}}});var ya=Z((jle,x6)=>{"use strict";var af=cs().counter;x6.exports={idRegex:{x:af("x","( domain)?"),y:af("y","( domain)?")},attrRegex:af("[xy]axis"),xAxisMatch:af("xaxis"),yAxisMatch:af("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Zt=Z(Ja=>{"use strict";var SB=br(),zp=ya();Ja.id2name=function(r){if(!(typeof r!="string"||!r.match(zp.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Ja.name2id=function(r){if(r.match(zp.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};Ja.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(zp.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Ja.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Ja.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};Ja.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function _6(e,r){if(r&&r.length){for(var t=0;t{"use strict";function CB(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function LB(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}w6.exports={clearOutlineControllers:CB,clearOutline:LB}});var Zv=Z((toe,T6)=>{"use strict";T6.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Np=Z(Jv=>{"use strict";var Xv=br(),aoe=ya().SUBPLOT_PATTERN;Jv.getSubplotCalcData=function(e,r,t){var a=Xv.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var qB=br(),Ss=Ie();oo.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=oo.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){M6(e,l,n.cache),n.check=function(){if(i){var f=M6(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Ss.isPlainObject(i)?Fp(i,r,l,a+1):r(l,n,i)}})}});var Nt=Z((loe,B6)=>{"use strict";var R6=Ir(),EB=os().timeFormatLocale,PB=B1().formatLocale,nf=Hr(),RB=Y1(),Zr=br(),z6=As(),zB=ct(),ur=Ie(),N6=Er(),C6=Gt().BADNUM,Ka=Zt(),NB=pl().clearOutline,FB=Zv(),Ip=Zu(),IB=qp(),HB=Np().getModuleCalcData,L6=ur.relinkPrivateKeys,so=ur._,$e=B6.exports={};ur.extendFlat($e,Zr);$e.attributes=Gn();$e.attributes.type.values=$e.allTypes;$e.fontAttrs=ma();$e.layoutAttributes=ds();var Qv=S6();$e.executeAPICommand=Qv.executeAPICommand;$e.computeAPICommandBindings=Qv.computeAPICommandBindings;$e.manageCommandObserver=Qv.manageCommandObserver;$e.hasSimpleAPICommandBindings=Qv.hasSimpleAPICommandBindings;$e.redrawText=function(e){return e=ur.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Zr.getComponentMethod("annotations","draw")(e),Zr.getComponentMethod("legend","draw")(e),Zr.getComponentMethod("colorbar","draw")(e),r($e.previousPromises(e)))},300)})};$e.resize=function(e){e=ur.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||ur.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ur.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Zr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};$e.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};$e.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=ur.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:N6.defaultLine,"pointer-events":"all"}).each(function(){var u=R6.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),l=t.select(".js-link-spacer"),o=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&OB(e,i),l.text(i.text()&&o.text()?" - ":"")}};function OB(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){$e.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}$e.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=R6.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=$e.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var BB=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],YB=["year","month","dayMonth","dayMonthYear"];$e.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},v;e._transitionData||$e.createTransitionData(e),n._dfltTitle={plot:so(e,"Click to enter Plot title"),subtitle:so(e,"Click to enter Plot subtitle"),x:so(e,"Click to enter X axis title"),y:so(e,"Click to enter Y axis title"),colorbar:so(e,"Click to enter Colorscale title"),annotation:so(e,"new text")},n._traceWord=so(e,"trace");var h=q6(e,BB);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,m=a.height;$e.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=m),$e.sanitizeMargins(n)}else{$e.supplyLayoutGlobalDefaults(i,n,h);var g=!i.width||!i.height,y=n.autosize,_=f.autosizable,w=g&&(y||_);w?$e.plotAutoSize(e,i,n):g&&$e.sanitizeMargins(n),!y&&g&&(i.width=n.width,i.height=n.height)}n._d3locale=VB(h,n.separators),n._extraFormat=q6(e,YB),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var T=n._subplots=GB(),b=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=UB(l,s),$e.supplyDataDefaults(s,o,i,n);var C=Object.keys(b.x),k=Object.keys(b.y);if(C.length>1&&k.length>1){for(Zr.getComponentMethod("grid","sizeDefaults")(i,n),v=0;v15&&k.length>15&&n.shapes.length===0&&n.images.length===0,$e.linkSubplots(o,n,l,a),$e.cleanPlot(o,n,l,a);var F=!!(a._has&&a._has("cartesian")),I=!!(n._has&&n._has("cartesian")),O=F,X=I;O&&!X?a._bgLayer.remove():X&&!O&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&NB({_fullLayout:a}),WB(o,n),L6(n,a),Zr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var J=n._tracePreGUI,U={},H;for(H in J)U[H]="old";for(v=0;v0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var v=$e.layoutAttributes.width.min,h=$e.layoutAttributes.height.min;l1,m=!t.height&&Math.abs(a.height-o)>1;(m||d)&&(d&&(a.width=l),m&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),$e.sanitizeMargins(a)};$e.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Zr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Zr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Zr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(ur.subplotSort);for(o=0;o1&&(t.l/=y,t.r/=y)}if(h){var _=(t.t+t.b)/h;_>1&&(t.t/=_,t.b/=_)}var w=t.xl!==void 0?t.xl:t.x,T=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,A=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:w,size:t.l+g},r:{val:T,size:t.r+g},b:{val:A,size:t.b+g},t:{val:b,size:t.t+g}},m[r]=1}if(!a._replotting)return $e.doAutoMargin(e)}};function XB(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Ka.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}$e.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),F6(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=ur.extendFlat({},n),s=i.l,u=i.r,f=i.t,v=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,g=r.minreducedheight;if(i.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var _=e._fullLayout._reservedMargin;for(var w in _)for(var T in _[w]){var b=_[w][T];l[T]=Math.max(l[T],b)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:v}};for(var A in l){var C=0;for(var k in h)k!=="base"&&nf(h[k][A].size)&&(C=h[k][A].size>C?h[k][A].size:C);var q=Math.max(0,i[A]-C);l[A]=Math.max(0,l[A]-q)}for(var D in h){var R=h[D].l||{},z=h[D].b||{},F=R.val,I=R.size,O=z.val,X=z.size,J=t-l.r-l.l,U=a-l.t-l.b;for(var H in h){if(nf(I)&&h[H].r){var G=h[H].r.val,K=h[H].r.size;if(G>F){var Q=(I*G+(K-J)*F)/(G-F),ie=(K*(1-F)+(I-J)*(1-G))/(G-F);Q+ie>s+u&&(s=Q,u=ie)}}if(nf(X)&&h[H].t){var pe=h[H].t.val,me=h[H].t.size;if(pe>O){var Ae=(X*pe+(me-U)*O)/(pe-O),re=(me*(1-O)+(X-U)*(1-pe))/(pe-O);Ae+re>v+f&&(v=Ae,f=re)}}}}}var Le=ur.constrain(t-i.l-i.r,I6,m),fe=ur.constrain(a-i.t-i.b,H6,g),ke=Math.max(0,t-Le),se=Math.max(0,a-fe);if(ke){var be=(s+u)/ke;be>1&&(s/=be,u/=be)}if(se){var Y=(v+f)/se;Y>1&&(v/=Y,f/=Y)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(v)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&($e.didMarginChange(o,n)||XB(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ee=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};$e.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&$e.supplyDefaults(e);var l=n?e._fullData:e.data,o=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(ur.isPlainObject(h)){var m={},g;return Object.keys(h).sort().forEach(function(T){if(["_","["].indexOf(T.charAt(0))===-1){if(typeof h[T]=="function"){d&&(m[T]="_function");return}if(t==="keepdata"){if(T.substr(T.length-3)==="src")return}else if(t==="keepstream"){if(g=h[T+"src"],typeof g=="string"&&g.indexOf(":")>0&&!ur.isPlainObject(h.stream))return}else if(t!=="keepall"&&(g=h[T+"src"],typeof g=="string"&&g.indexOf(":")>0))return;m[T]=u(h[T],d)}}),m}var y=Array.isArray(h),_=ur.isTypedArray(h);if((y||_)&&h.dtype&&h.shape){var w=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:ur.isArrayBuffer(w)?RB.encode(w):w},d)}return y?h.map(function(T){return u(T,d)}):_?ur.simpleMap(h,ur.identity):ur.isJSDate(h)?ur.ms2DateTimeLocal(+h):h}var f={data:(l||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(o),n)){var v=o._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};$e.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Zr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!a&&d===h&&o(v)}}t.runFn(m),setTimeout(m())})}function o(v){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Zr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[$e.previousPromises,s,t.prepareFn,$e.rehover,$e.reselect,l],f=ur.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}$e.doCalcdata=function(e,r){var t=Ka.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;o=0;s--)if(A[s].enabled){i._indexToPoints=A[s]._indexToPoints;break}l&&l.calc&&(b=l.calc(e,i))}(!Array.isArray(b)||!b[0])&&(b=[{x:C6,y:C6}]),b[0].t||(b[0].t={}),b[0].trace=i,u[w]=b}}for(E6(t,a,n),o=0;o{"use strict";uo.xmlns="http://www.w3.org/2000/xmlns/";uo.svg="http://www.w3.org/2000/svg";uo.xlink="http://www.w3.org/1999/xlink";uo.svgAttrs={xmlns:uo.svg,"xmlns:xlink":uo.xlink}});var Pa=Z((soe,Y6)=>{"use strict";Y6.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Ta=Z(wn=>{"use strict";var Ft=Ir(),Yi=Ie(),$B=Yi.strTranslate,Hp=fo(),jB=Pa().LINE_SPACING,eY=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;wn.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(eY),i=Ft.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=hY(e.node(),a);s&&e.style("pointer-events","all"),wn.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};nY(n[2],f,function(v,h,d){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){o(),s();return}var g=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});g.node().appendChild(m.node()),h&&h.node()&&m.node().insertBefore(h.node().cloneNode(!0),m.node().firstChild);var y=d.width,_=d.height;m.attr({class:l,height:_,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var w=e.node().style.fill||"black",T=m.select("g");T.attr({fill:w,stroke:w});var b=T.node().getBoundingClientRect(),A=b.width,C=b.height;(A>y||C>_)&&(m.style("overflow","hidden"),b=m.node().getBoundingClientRect(),A=b.width,C=b.height);var k=+e.attr("x"),q=+e.attr("y"),D=u||e.node().getBoundingClientRect().height,R=-D/4;if(l[0]==="y")g.attr({transform:"rotate("+[-90,k,q]+")"+$B(-A/2,R-C/2)});else if(l[0]==="l")q=R-C/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)k=0,q=R;else{var z=e.attr("text-anchor");k=k-A*(z==="middle"?.5:z==="end"?1:0),q=q+R-C/2}m.attr({x:k,y:q}),t&&t.call(e,g),s(g)})})):o(),e};var rY=/(<|<|<)/g,tY=/(>|>|>)/g;function aY(e){return e.replace(rY,"\\lt ").replace(tY,"\\gt ")}var U6=[["$","$"],["\\(","\\)"]];function nY(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){Yi.warn("No MathJax version:",MathJax.version);return}var n,i,l,o,s=function(){return i=Yi.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:U6},displayAlign:"left"})},u=function(){i=Yi.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=U6},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},v=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var w="math-output-"+Yi.randstr({},64);o=Ft.select("body").append("div").attr({id:w}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(aY(e));var T=o.node();return a===2?MathJax.Hub.Typeset(T):MathJax.typeset([T])},d=function(){var w=o.select(a===2?".MathJax_SVG":".MathJax"),T=!w.empty()&&o.select("svg").node();if(!T)Yi.log("There was an error in the tex syntax.",e),t();else{var b=T.getBoundingClientRect(),A;a===2?A=Ft.select("body").select("#MathJax_SVG_glyphs"):A=w.select("defs"),t(w,A,b)}o.remove()},m=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},g=function(){n!=="svg"&&(MathJax.config.startup.output=n)},y=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(i)},_=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,h,d,m,y):a===3&&(u(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),g(),_()}))}var Z6={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},iY={sub:"0.3em",sup:"-0.6em"},lY={sub:"-0.21em",sup:"0.42em"},G6="\u200B",V6=["http:","https:","mailto:","",void 0,":"],X6=wn.NEWLINES=/(\r\n?|\n)/g,Bp=/(<[^<>]*>)/,Yp=/<(\/?)([^ >]*)(\s+(.*))?>/i,oY=//i;wn.BR_TAG_ALL=//gi;var J6=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,K6=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Q6=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,sY=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function co(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&$v(a)}var uY=/(^|;)\s*color:/;wn.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,l=e.split(Bp),o=[],s="",u=0,f=0;fi?o.push(v.substr(0,g-i)+n):o.push(v.substr(0,g));break}s=""}}return o.join("")};var fY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},cY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function $v(e){return e.replace(cY,function(r,t){var a;return t.charAt(0)==="#"?a=vY(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=fY[t],a||r})}wn.convertEntities=$v;function vY(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function hY(e,r){r=r.replace(X6," ");var t=!1,a=[],n,i=-1;function l(){i++;var C=document.createElementNS(Hp.svg,"tspan");Ft.select(C).attr({class:"line",dy:i*jB+"em"}),e.appendChild(C),n=C;var k=a;if(a=[{node:C}],k.length>1)for(var q=1;q.",r);return}var k=a.pop();C!==k.type&&Yi.log("Start tag <"+k.type+"> doesnt match end tag <"+C+">. Pretending it did match.",r),n=a[a.length-1].node}var f=oY.test(r);f?l():(n=e,a=[{node:e}]);for(var v=r.split(Bp),h=0;h{"use strict";var dY=Ir(),e0=bn(),of=Hr(),jv=Ie(),j6=Er(),pY=$l().isValid;function mY(e,r,t){var a=r?jv.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(jv.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function i7(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var o7=lp(),gY=o7.FORMAT_LINK,bY=o7.DATE_FORMAT_LINK;function xY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Up:s7)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Up(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+gY+"."].join(" ")}function s7(e,r){return Up(e,r)+[" And for dates see: "+bY+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}u7.exports={axisHoverFormat:xY,descriptionOnlyNumbers:Up,descriptionWithDates:s7}});var Xn=Z((hoe,k7)=>{"use strict";var f7=ma(),Cs=hi(),A7=mi().dash,Vp=Vt().extendFlat,c7=ct().templatedArray,voe=yi().templateFormatStringDescription,v7=r0().descriptionWithDates,_Y=Gt().ONEDAY,bi=ya(),wY=bi.HOUR_PATTERN,TY=bi.WEEKDAY_PATTERN,Gp={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},MY=Vp({},Gp,{values:Gp.values.slice().concat(["sync"])});function h7(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var d7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},p7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},m7={valType:"data_array",editType:"ticks"},y7={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function g7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function b7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var x7={valType:"color",dflt:Cs.defaultLine,editType:"ticks"},_7={valType:"color",dflt:Cs.lightLine,editType:"ticks"};function w7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var T7=Vp({},A7,{editType:"ticks"}),M7={valType:"boolean",editType:"ticks"};k7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Cs.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:f7({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[bi.idRegex.x.toString(),bi.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[bi.idRegex.x.toString(),bi.idRegex.y.toString()],editType:"calc"},rangebreaks:c7("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[TY,wY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:_Y},editType:"calc"}),tickmode:MY,nticks:h7(),tick0:d7,dtick:p7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:m7,ticktext:{valType:"data_array",editType:"ticks"},ticks:y7,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:g7(),tickwidth:b7(),tickcolor:x7,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Vp({},A7,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:f7({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:v7("tick label")},tickformatstops:c7("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:v7("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Cs.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:M7,gridcolor:_7,gridwidth:w7(),griddash:T7,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Cs.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Cs.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",bi.idRegex.x.toString(),bi.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",bi.idRegex.x.toString(),bi.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Gp,nticks:h7("minor"),tick0:d7,dtick:p7,tickvals:m7,ticks:y7,ticklen:g7("minor"),tickwidth:b7("minor"),tickcolor:x7,gridcolor:_7,gridwidth:w7("minor"),griddash:T7,showgrid:M7,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var t0=Z((doe,L7)=>{"use strict";var ht=Xn(),S7=ma(),C7=Vt().extendFlat,AY=pi().overrideAll;L7.exports=AY({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:ht.linecolor,outlinewidth:ht.linewidth,bordercolor:ht.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:ht.minor.tickmode,nticks:ht.nticks,tick0:ht.tick0,dtick:ht.dtick,tickvals:ht.tickvals,ticktext:ht.ticktext,ticks:C7({},ht.ticks,{dflt:""}),ticklabeloverflow:C7({},ht.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:ht.ticklen,tickwidth:ht.tickwidth,tickcolor:ht.tickcolor,ticklabelstep:ht.ticklabelstep,showticklabels:ht.showticklabels,labelalias:ht.labelalias,tickfont:S7({}),tickangle:ht.tickangle,tickformat:ht.tickformat,tickformatstops:ht.tickformatstops,tickprefix:ht.tickprefix,showtickprefix:ht.showtickprefix,ticksuffix:ht.ticksuffix,showticksuffix:ht.showticksuffix,separatethousands:ht.separatethousands,exponentformat:ht.exponentformat,minexponent:ht.minexponent,showexponent:ht.showexponent,title:{text:{valType:"string"},font:S7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var sf=Z((moe,D7)=>{"use strict";var kY=t0(),SY=cs().counter,CY=dp(),q7=$l().scales,poe=CY(q7);function a0(e){return"`"+e+"`"}D7.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?q7[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[a],v="in "+a0(u+f));var h=n?" Has an effect only if "+v+" is set to a numerical array.":"",d=a+"auto",m=a+"min",g=a+"max",y=a+"mid",_=a0(u+d),w=a0(u+m),T=a0(u+g),b=w+" and "+T,A={};A[m]=A[g]=void 0;var C={};C[d]=!1;var k={};return f==="color"&&(k.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(k.color.anim=!0)),k[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},k[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:C},k[g]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:C},k[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},k.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},k.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},k.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(k.showscale={valType:"boolean",dflt:l,editType:"calc"},k.colorbar=kY),t.noColorAxis||(k.coloraxis={valType:"subplotid",regex:SY("coloraxis"),dflt:null,editType:"calc"}),k}});var Zp=Z((yoe,E7)=>{"use strict";var LY=Vt().extendFlat,qY=sf(),Wp=$l().scales;E7.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Wp.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Wp.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Wp.RdBu,editType:"calc"}},coloraxis:LY({_isSubplotObj:!0,editType:"calc"},qY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Xp=Z((goe,P7)=>{"use strict";var DY=Ie();P7.exports=function(r){return DY.isPlainObject(r.colorbar)}});var Qp=Z(Kp=>{"use strict";var Jp=Hr(),R7=Ie(),z7=Gt(),EY=z7.ONEDAY,PY=z7.ONEWEEK;Kp.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?EY:1;if(!e)return i;if(Jp(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var l=e.charAt(0),o=e.substr(1);return o=Jp(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};Kp.tick0=function(e,r,t,a){if(r==="date")return R7.cleanDate(e,R7.dateTick0(t,a%PY===0?1:0));if(!(a==="D1"||a==="D2"))return Jp(e)?Number(e):0}});var $p=Z((xoe,F7)=>{"use strict";var N7=Qp(),RY=Ie().isArrayOrTypedArray,zY=nn().isTypedArraySpec,NY=nn().decodeTypedArraySpec;F7.exports=function(r,t,a,n,i){i||(i={});var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(w){var T=o[w];return zY(T)&&(T=NY(T)),T!==void 0?T:(s._template||{})[w]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=RY(d)?"array":h?"linear":"auto",g=a(u+"tickmode",m);if(g==="auto"||g==="sync")a(u+"nticks");else if(g==="linear"){var y=s.dtick=N7.dtick(h,n);s.tick0=N7.tick0(v,n,t.calendar,y)}else if(n!=="multicategory"){var _=a(u+"tickvals");_===void 0?s.tickmode="auto":l||a("ticktext")}}});var em=Z((_oe,H7)=>{"use strict";var jp=Ie(),I7=Xn();H7.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?I7.minor:I7,u=i?"minor.":"",f=jp.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=jp.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),h=jp.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),d=a(u+"ticks",!i&&n.outerTicks||f||v||h?"outside":"");d||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var rm=Z((woe,O7)=>{"use strict";O7.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var Jn=Z((Toe,B7)=>{"use strict";var n0=Ie(),FY=ct();B7.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=n0.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=FY.arrayTemplater(t,n,i),f,v;for(f=0;f{"use strict";var tm=Ie(),IY=Er().contrast,Y7=Xn(),HY=rm(),OY=Jn();U7.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");tm.isPlainObject(l)||delete t.labelalias;var o=HY(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,v=t.ticklabelposition||"",h=v.indexOf("inside")!==-1?IY(i.bgColor):f&&f!==Y7.color.dflt?f:u.color;if(tm.coerceFont(a,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var m=a("tickformat");OY(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:BY}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function BY(e,r){function t(n,i){return tm.coerce(e,r,Y7.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var nm=Z((Aoe,G7)=>{"use strict";var YY=rm();G7.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=YY(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var im=Z((koe,V7)=>{"use strict";var ml=Ie(),UY=ct(),GY=$p(),VY=em(),WY=am(),ZY=nm(),XY=t0();V7.exports=function(r,t,a){var n=UY.newContainer(t,"colorbar"),i=r.colorbar||{};function l(z,F){return ml.coerce(i,n,XY,z,F)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),v=f==="v",h=l("thicknessmode");l("thickness",h==="fraction"?30/(v?s:u):30);var d=l("lenmode");l("len",d==="fraction"?1:v?u:s);var m=l("yref"),g=l("xref"),y=m==="paper",_=g==="paper",w,T,b,A="left";v?(b="middle",A=_?"left":"right",w=_?1.02:1,T=.5):(b=y?"bottom":"top",A="center",w=.5,T=y?1.02:1),ml.coerce(i,n,{x:{valType:"number",min:_?-2:0,max:_?3:1,dflt:w}},"x"),ml.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:T}},"y"),l("xanchor",A),l("xpad"),l("yanchor",b),l("ypad"),ml.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var C=ml.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",C.indexOf("inside")!==-1?"hide past domain":"hide past div"),GY(i,n,l,"linear");var k=a.font,q={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};C.indexOf("inside")!==-1&&(q.bgColor="black"),ZY(i,n,l,"linear",q),WY(i,n,l,"linear",q),VY(i,n,l,"linear",q),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:k,R=ml.extendFlat({},k,{family:D.family,size:ml.bigFont(D.size)});ml.coerceFont(l,"title.font",R),l("title.side",v?"top":"right")}});var Ls=Z((Soe,X7)=>{"use strict";var W7=Hr(),om=Ie(),JY=Xp(),KY=im(),Z7=$l().isValid,QY=br().traceIs;function lm(e,r){var t=r.slice(0,r.length-1);return r?om.nestedProperty(e,t).get()||{}:e}X7.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=lm(r,l),f=lm(t,l),v=lm(t._template||{},l)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},m=n(l+"coloraxis");if(m){var g=QY(t,"contour")&&om.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[m];y?(y[2].push(h),y[0]!==g&&(y[0]=!1,om.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[g,t,[h]];return}}var _=u[o+"min"],w=u[o+"max"],T=W7(_)&&W7(w)&&_{"use strict";var J7=Ie(),$Y=ct(),K7=Zp(),jY=Ls();Q7.exports=function(r,t){function a(v,h){return J7.coerce(r,t,K7,v,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(v,h){return J7.coerce(i,l,K7.coloraxis,v,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=$Y.newContainer(t,s,"coloraxis"),l._name=s,jY(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var eU=Ie(),rU=Tn().hasColorscale,tU=Tn().extractOpts;j7.exports=function(r,t){function a(f,v){var h=f["_"+v];h!==void 0&&(f[v]=h)}function n(f,v){var h=v.container?eU.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=tU(h),m=d.auto;(m||d.min===void 0)&&a(h,v.min),(m||d.max===void 0)&&a(h,v.max),d.autocolorscale&&a(h,"colorscale")}}for(var i=0;i{"use strict";var r9=Hr(),sm=Ie(),aU=Tn().extractOpts;t9.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?sm.nestedProperty(t,l).get():t,s=aU(o),u=s.auto!==!1,f=s.min,v=s.max,h=s.mid,d=function(){return sm.aggNums(Math.min,null,i)},m=function(){return sm.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(o._colorAx&&r9(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(o._colorAx&&r9(v)?v=Math.max(v,m()):v=m()),u&&h!==void 0&&(v-h>h-f?f=h-(v-h):v-h=0?g=n.colorscale.sequential:g=n.colorscale.sequentialminus,s._sync("colorscale",g)}}});var um=Z((Doe,a9)=>{"use strict";var l0=$l(),qs=Tn();a9.exports={moduleType:"component",name:"colorscale",attributes:sf(),layoutAttributes:Zp(),supplyLayoutDefaults:$7(),handleDefaults:Ls(),crossTraceDefaults:e9(),calc:i0(),scales:l0.scales,defaultScale:l0.defaultScale,getScale:l0.get,isValidScale:l0.isValid,hasColorscale:qs.hasColorscale,extractOpts:qs.extractOpts,extractScale:qs.extractScale,flipScale:qs.flipScale,makeColorScaleFunc:qs.makeColorScaleFunc,makeColorScaleFuncFromTrace:qs.makeColorScaleFuncFromTrace}});var on=Z((Eoe,i9)=>{"use strict";var n9=Ie(),nU=nn().isTypedArraySpec;i9.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return n9.isPlainObject(r)&&(n9.isArrayOrTypedArray(r.size)||nU(r.size))}}});var o9=Z((Poe,l9)=>{"use strict";var iU=Hr();l9.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return iU(s)&&s>0?Math.max(s,i):0}}});var xi=Z(Ma=>{"use strict";var s9=Ie();Ma.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ma.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{c9.exports=fU;var fm={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},uU=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function fU(e){var r=[];return e.replace(uU,function(t,a,n){var i=a.toLowerCase();for(n=vU(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==fm[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var hU=cm(),Ze=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Ar="M0,0Z",v9=Math.sqrt(2),yl=Math.sqrt(3),vm=Math.PI,hm=Math.cos,dm=Math.sin;y9.exports={circle:{n:0,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Sr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.4,2),n=Ze(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.8/v9,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Sr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2/yl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2/yl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2/yl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2/yl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.951,2),n=Ze(e*.588,2),i=Ze(-e,2),l=Ze(e*-.309,2),o=Ze(e*.809,2);return Sr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e/2,2),i=Ze(e*yl/2,2);return Sr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e/2,2),i=Ze(e*yl/2,2);return Sr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.924,2),n=Ze(e*.383,2);return Sr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(kr(r))return Ar;var a=e*1.4,n=Ze(a*.225,2),i=Ze(a*.951,2),l=Ze(a*.363,2),o=Ze(a*.588,2),s=Ze(-a,2),u=Ze(a*-.309,2),f=Ze(a*.118,2),v=Ze(a*.809,2),h=Ze(a*.382,2);return Sr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+v+"L0,"+h+"L-"+o+","+v+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.66,2),n=Ze(e*.38,2),i=Ze(e*.76,2);return Sr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*yl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*yl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.1,2),n=Ze(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2),n=Ze(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.7,2),n=Ze(e*1.4,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2),n=Ze(e*.7,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e/v9,2);return Sr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.3,2),n=Ze(e*.65,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*.85,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e/2,2),n=Ze(e,2);return Sr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2);return Sr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(kr(r))return Ar;var a=vm/2.5,n=2*e*hm(a),i=2*e*dm(a);return Sr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(kr(r))return Ar;var a=vm/4,n=2*e*hm(a),i=2*e*dm(a);return Sr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function kr(e){return e===null}var h9,d9,p9,m9;function Sr(e,r,t){if((!e||e%360===0)&&!r)return t;if(p9===e&&m9===r&&h9===t)return d9;p9=e,m9=r,h9=t;function a(y,_){var w=hm(y),T=dm(y),b=_[0],A=_[1]+(r||0);return[b*w-A*T,b*T+A*w]}for(var n=e/180*vm,i=0,l=0,o=hU(t),s="",u=0;u{"use strict";var jt=Ir(),tt=Ie(),dU=tt.numberFormat,mo=Hr(),xm=bn(),s0=br(),ga=Er(),pU=um(),ff=tt.strTranslate,u0=Ta(),mU=fo(),yU=Pa(),gU=yU.LINE_SPACING,C9=xv().DESELECTDIM,bU=on(),xU=o9(),_U=xi().appendArrayPointValue,rr=I9.exports={};rr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(ga.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",pm(TU(f))),s&&e.style("text-shadow",s==="auto"?u0.makeTextShadow(ga.contrast(i)):pm(s)),u&&e.style("text-decoration-line",pm(MU(u)))};function pm(e){return e==="none"?void 0:e}var wU={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function TU(e){return wU[e]}function MU(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}rr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};rr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};rr.setRect=function(e,r,t,a,n){e.call(rr.setPosition,r,t).call(rr.setSize,a,n)};rr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(mo(n)&&mo(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",ff(n,i));else return!1;return!0};rr.translatePoints=function(e,r,t){e.each(function(a){var n=jt.select(this);rr.translatePoint(a,n,r,t)})};rr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};rr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=s0.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){rr.hideOutsideRangePoint(u,jt.select(this),t,a,l,o)})})}};rr.crispRound=function(e,r,t){return!r||!mo(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};rr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";ga.stroke(r,a||i.color),rr.dashLine(r,o,l)};rr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";jt.select(this).call(ga.stroke,t||i.color).call(rr.dashLine,o,l)})};rr.dashLine=function(e,r,t){t=+t||0,r=rr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};rr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function L9(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=rr.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,v=l(n.size,0,8),h=l(n.solidity,0,.3),d=r.uid;rr.pattern(e,"point",t,d,o,v,h,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,g="scatterfill-"+r.uid;if(a&&(g="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,_;m==="horizontal"?(y={x:i.start,y:0},_={x:i.stop,y:0}):m==="vertical"&&(y={x:0,y:i.start},_={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),_.x=r._xA.c2p(_.x===void 0?r._extremes.x.max[0].val:_.x,!0),_.y=r._yA.c2p(_.y===void 0?r._extremes.y.max[0].val:_.y,!0),e.call(E9,t,g,"linear",i.colorscale,"fill",y,_,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(rr.gradient,t,g,m,i.colorscale,"fill")}else r.fillcolor&&e.call(ga.fill,r.fillcolor)}rr.singleFillStyle=function(e,r){var t=jt.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};L9(e,n,r,!1)};rr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=jt.select(this);a[0].trace&&L9(n,a[0].trace,r,t)})};var b9=g9();rr.symbolNames=[];rr.symbolFuncs=[];rr.symbolBackOffs=[];rr.symbolNeedLines={};rr.symbolNoDot={};rr.symbolNoFill={};rr.symbolList=[];Object.keys(b9).forEach(function(e){var r=b9[e],t=r.n;rr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),rr.symbolNames[t]=e,rr.symbolFuncs[t]=r.f,rr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(rr.symbolNeedLines[t]=!0),r.noDot?rr.symbolNoDot[t]=!0:rr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(rr.symbolNoFill[t]=!0)});var AU=rr.symbolNames.length,kU="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";rr.symbolNumber=function(e){if(mo(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=rr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=AU||e>=400?0:Math.floor(Math.max(e,0))};function q9(e,r,t,a){var n=e%100;return rr.symbolFuncs[n](r,t,a)+(e>=200?kU:"")}var x9=dU("~f"),D9={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};rr.gradient=function(e,r,t,a,n,i){var l=D9[a];return E9(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function E9(e,r,t,a,n,i,l,o,s,u){var f=n.length,v;a==="linear"?v={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(v={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=rr.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=Tm(e,t),v=wm(e,t);r.attr("d",q9(u,s,f,v))}var h=!1,d,m,g;if(e.so)g=o.outlierwidth,m=o.outliercolor,d=l.outliercolor;else{var y=(o||{}).width;g=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=a.lineScale(e.mlc):tt.isArrayOrTypedArray(o.color)?m=ga.defaultLine:m=o.color,tt.isArrayOrTypedArray(l.color)&&(d=ga.defaultLine,h=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}if(e.om)r.call(ga.stroke,d).style({"stroke-width":(g||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:g)+"px");var _=l.gradient,w=e.mgt;w?h=!0:w=_&&_.type,tt.isArrayOrTypedArray(w)&&(w=w[0],D9[w]||(w=0));var T=l.pattern,b=rr.getPatternAttr,A=T&&(b(T.shape,e.i,"")||b(T.path,e.i,""));if(w&&w!=="none"){var C=e.mgc;C?h=!0:C=_.color;var k=t.uid;h&&(k+="-"+e.i),rr.gradient(r,n,k,w,[[0,C],[1,d]],"fill")}else if(A){var q=!1,D=T.fgcolor;!D&&i&&i.color&&(D=i.color,q=!0);var R=b(D,e.i,i&&i.color||null),z=b(T.bgcolor,e.i,null),F=T.fgopacity,I=b(T.size,e.i,8),O=b(T.solidity,e.i,.3);q=q||e.mcc||tt.isArrayOrTypedArray(T.shape)||tt.isArrayOrTypedArray(T.path)||tt.isArrayOrTypedArray(T.bgcolor)||tt.isArrayOrTypedArray(T.fgcolor)||tt.isArrayOrTypedArray(T.size)||tt.isArrayOrTypedArray(T.solidity);var X=t.uid;q&&(X+="-"+e.i),rr.pattern(r,"point",n,X,A,I,O,e.mcc,T.fillmode,z,R,F)}else tt.isArrayOrTypedArray(d)?ga.fill(r,d[e.i]):ga.fill(r,d);g&&ga.stroke(r,m)}};rr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=rr.tryColorscale(t,""),r.lineScale=rr.tryColorscale(t,"line"),s0.traceIs(e,"symbols")&&(r.ms2mrc=bU.isBubble(e)?xU(e):function(){return(t.size||6)/2}),e.selectedpoints&&tt.extendFlat(r,rr.makeSelectedPointStyleFns(e)),r};rr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,v=u!==void 0;(tt.isArrayOrTypedArray(o)||f||v)&&(r.selectedOpacityFn=function(b){var A=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:A:v?u:C9*A});var h=n.color,d=i.color,m=l.color;(d||m)&&(r.selectedColorFn=function(b){var A=b.mcc||h;return b.selected?d||A:m||A});var g=n.size,y=i.size,_=l.size,w=y!==void 0,T=_!==void 0;return s0.traceIs(e,"symbols")&&(w||T)&&(r.selectedSizeFn=function(b){var A=b.mrc||g/2;return b.selected?w?y/2:A:T?_/2:A}),r};rr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var v=f.tc||o;return f.selected?s||v:u||(s?v:ga.addOpacity(v,C9))},r};rr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){ga.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",q9(rr.symbolNumber(o),s,Tm(l,r),wm(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=jt.select(this),o=0;o0?t:0}rr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=rr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=jt.select(this),u=i?tt.extractOption(o,r,"txt","texttemplate"):tt.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,v=f?f(o,r,l):{},h={};_U(h,r,o.i);var d=r._meta||{};u=tt.texttemplateString(u,v,l._d3locale,h,o,d)}var m=o.tp||r.textposition,g=R9(o,r),y=a?a(o):o.tc||r.textfont.color;s.call(rr.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:g,color:y}).text(u).call(u0.convertToTspans,t).call(P9,m,g,o.mrc)})}};rr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.makeSelectedTextStyleFns(r);e.each(function(a){var n=jt.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=R9(a,r);ga.fill(n,i);var s=s0.traceIs(r,"bar-like");P9(n,l,o,a.mrc2||a.mrc,s)})}};var _9=.5;rr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(A<=v&&A>=u||A>=v&&A<=u)&&(e=[b,A])}return e}rr.applyBackoff=F9;rr.makeTester=function(){var e=tt.ensureSingleById(jt.select("body"),"svg","js-plotly-tester",function(t){t.attr(mU.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=tt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});rr.tester=e,rr.testref=r};rr.savedBBoxes={};var ym=0,LU=1e4;rr.bBox=function(e,r,t){t||(t=w9(e));var a;if(t){if(a=rr.savedBBoxes[t],a)return tt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=w9(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=rr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=rr.savedBBoxes[t],a)return tt.extendFlat({},a)}}var u,f;r?u=e:(f=rr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),jt.select(u).attr("transform",null).call(u0.positionText,0,0);var v=u.getBoundingClientRect(),h=rr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:v.height,width:v.width,left:v.left-h.left,top:v.top-h.top,right:v.right-h.left,bottom:v.bottom-h.top};return ym>=LU&&(rr.savedBBoxes={},ym=0),t&&(rr.savedBBoxes[t]=d),ym++,tt.extendFlat({},d)};function w9(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}rr.setClipUrl=function(e,r,t){e.attr("clip-path",_m(r,t))};function _m(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}rr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};rr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=ff(r,t),l=l.trim(),e[i]("transform",l),l};rr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};rr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var qU=/\s*sc.*/;rr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(qU,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var DU=/translate\([^)]*\)\s*$/;rr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=jt.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(DU);r===1&&t===1?a=[]:a=[ff(l,o),"scale("+r+","+t+")",ff(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function wm(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}rr.getMarkerStandoff=wm;var uf=Math.atan2,vo=Math.cos,Es=Math.sin;function T9(e,r){var t=r[0],a=r[1];return[t*vo(e)-a*Es(e),t*Es(e)+a*vo(e)]}var M9,A9,k9,S9,gm,bm;function Tm(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||tt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=uf(h[1]-n,h[0]-a),m=uf(v[1]-n,v[0]-a),g;if(i==="north")g=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,_=f/180*Math.PI,w=M9/180*Math.PI,T=A9/180*Math.PI,b=w-y,A=vo(T)*Es(b),C=Es(T)*vo(_)-vo(T)*Es(_)*vo(b);g=-uf(A,C)-Math.PI,M9=u,A9=f}var k=T9(d,[vo(g),0]),q=T9(m,[Es(g),0]);t=uf(k[1]+q[1],k[0]+q[0])/Math.PI*180,i==="previous"&&!(bm===r.uid&&e.i===gm+1)&&(t=null)}if(i==="previous"&&!r._geo)if(bm===r.uid&&e.i===gm+1&&mo(a)&&mo(n)){var D=a-k9,R=n-S9,z=r.line&&r.line.shape||"",F=z.slice(z.length-1);F==="h"&&(R=0),F==="v"&&(D=0),t+=uf(R,D)/Math.PI*180+90}else t=null}return k9=a,S9=n,gm=e.i,bm=r.uid,t}rr.getMarkerAngle=Tm});var cf=Z((Ioe,Y9)=>{"use strict";var Ps=Ir(),EU=Hr(),PU=Nt(),Mm=br(),yo=Ie(),H9=yo.strTranslate,f0=at(),c0=Er(),Rs=Ta(),O9=xv(),RU=Pa().OPPOSITE_SIDE,B9=/ [XY][0-9]* /,Am=1.6,km=1.6;function zU(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,v=t.containerGroup,h=1,d=n.title,m=(d&&d.text?d.text:"").trim(),g=!1,y=d&&d.font?d.font:{},_=y.family,w=y.size,T=y.color,b=y.weight,A=y.style,C=y.variant,k=y.textcase,q=y.lineposition,D=y.shadow,R=t.subtitlePropName,z=!!R,F=t.subtitlePlaceholder,I=(n.title||{}).subtitle||{text:"",font:{}},O=I.text.trim(),X=!1,J=1,U=I.font,H=U.family,G=U.size,K=U.color,Q=U.weight,ie=U.style,pe=U.variant,me=U.textcase,Ae=U.lineposition,re=U.shadow,Le;i==="title.text"?Le="titleText":i.indexOf("axis")!==-1?Le="axisTitleText":i.indexOf("colorbar")!==-1&&(Le="colorbarTitleText");var fe=e._context.edits[Le];function ke(Ve,Ue){return Ve===void 0||Ue===void 0?!1:Ve.replace(B9," % ")===Ue.replace(B9," % ")}m===""?h=0:ke(m,l)&&(fe||(m=""),h=.2,g=!0),z&&(O===""?J=0:ke(O,F)&&(fe||(O=""),J=.2,X=!0)),t._meta?m=yo.templateString(m,t._meta):a._meta&&(m=yo.templateString(m,a._meta));var se=m||O||fe,be;v||(v=yo.ensureSingle(a._infolayer,"g","g-"+r),be=a._hColorbarMoveTitle);var Y=v.selectAll("text."+r).data(se?[0]:[]);Y.enter().append("text"),Y.text(m).attr("class",r),Y.exit().remove();var ee=null,B=r+"-subtitle",ye=O||fe;if(z&&ye&&(ee=v.selectAll("text."+B).data(ye?[0]:[]),ee.enter().append("text"),ee.text(O).attr("class",B),ee.exit().remove()),!se)return v;function Me(Ve,Ue){yo.syncOrAsync([ge,Re],{title:Ve,subtitle:Ue})}function ge(Ve){var Ue=Ve.title,De=Ve.subtitle,He;!f&&be&&(f={}),f?(He="",f.rotate&&(He+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||be)&&(He+=H9(0,(f.offset||0)-(be||0)))):He=null,Ue.attr("transform",He);function Oe(le){if(le){var Se=Ps.select(le.node().parentNode).select("."+B);if(!Se.empty()){var Fe=le.node().getBBox();if(Fe.height){var We=Fe.y+Fe.height+Am*G;Se.attr("y",We)}}}}if(Ue.style("opacity",h*c0.opacity(T)).call(f0.font,{color:c0.rgb(T),size:Ps.round(w,2),family:_,weight:b,style:A,variant:C,textcase:k,shadow:D,lineposition:q}).attr(u).call(Rs.convertToTspans,e,Oe),De){var ne=v.select("."+r+"-math-group"),Te=Ue.node().getBBox(),Xe=ne.node()?ne.node().getBBox():void 0,cr=Xe?Xe.y+Xe.height+Am*G:Te.y+Te.height+km*G,fr=yo.extendFlat({},u,{y:cr});De.attr("transform",He),De.style("opacity",J*c0.opacity(K)).call(f0.font,{color:c0.rgb(K),size:Ps.round(G,2),family:H,weight:Q,style:ie,variant:pe,textcase:me,shadow:re,lineposition:Ae}).attr(fr).call(Rs.convertToTspans,e)}return PU.previousPromises(e)}function Re(Ve){var Ue=Ve.title,De=Ps.select(Ue.node().parentNode);if(s&&s.selection&&s.side&&m){De.attr("transform",null);var He=RU[s.side],Oe=s.side==="left"||s.side==="top"?-1:1,ne=EU(s.pad)?s.pad:2,Te=f0.bBox(De.node()),Xe={t:0,b:0,l:0,r:0},cr=e._fullLayout._reservedMargin;for(var fr in cr)for(var le in cr[fr]){var Se=cr[fr][le];Xe[le]=Math.max(Xe[le],Se)}var Fe={left:Xe.l,top:Xe.t,right:a.width-Xe.r,bottom:a.height-Xe.b},We=s.maxShift||Oe*(Fe[s.side]-Te[s.side]),Ge=0;if(We<0)Ge=We;else{var Je=s.offsetLeft||0,je=s.offsetTop||0;Te.left-=Je,Te.right-=Je,Te.top-=je,Te.bottom-=je,s.selection.each(function(){var Ke=f0.bBox(this);yo.bBoxIntersect(Te,Ke,ne)&&(Ge=Math.max(Ge,Oe*(Ke[s.side]-Te[He])+ne))}),Ge=Math.min(We,Ge),n._titleScoot=Math.abs(Ge)}if(Ge>0||We<0){var vr={left:[-Ge,0],right:[Ge,0],top:[0,-Ge],bottom:[0,Ge]}[s.side];De.attr("transform",H9(vr[0],vr[1]))}}}Y.call(Me,ee);function Ne(Ve,Ue){Ve.text(Ue).on("mouseover.opacity",function(){Ps.select(this).transition().duration(O9.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Ps.select(this).transition().duration(O9.HIDE_PLACEHOLDER).style("opacity",0)})}if(fe&&(m?Y.on(".opacity",null):(Ne(Y,l),g=!0),Y.call(Rs.makeEditable,{gd:e}).on("edit",function(Ve){o!==void 0?Mm.call("_guiRestyle",e,i,Ve,o):Mm.call("_guiRelayout",e,i,Ve)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Ve){this.text(Ve||" ").call(Rs.positionText,u.x,u.y)}),z)){if(z&&!m){var Ee=Y.node().getBBox(),ze=Ee.y+Ee.height+km*G;ee.attr("y",ze)}O?ee.on(".opacity",null):(Ne(ee,F),X=!0),ee.call(Rs.makeEditable,{gd:e}).on("edit",function(Ve){Mm.call("_guiRelayout",e,"title.subtitle.text",Ve)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Ve){this.text(Ve||" ").call(Rs.positionText,ee.attr("x"),ee.attr("y"))})}return Y.classed("js-placeholder",g),ee&&ee.classed("js-placeholder",X),v}Y9.exports={draw:zU,SUBTITLE_PADDING_EM:km,SUBTITLE_PADDING_MATHJAX_EM:Am}});var b0=Z((Hoe,Z9)=>{"use strict";var NU=Ir(),FU=os().utcFormat,it=Ie(),IU=it.numberFormat,_i=Hr(),gl=it.cleanNumber,HU=it.ms2DateTime,U9=it.dateTime2ms,wi=it.ensureNumber,G9=it.isArrayOrTypedArray,bl=Gt(),v0=bl.FP_SAFE,Kn=bl.BADNUM,OU=bl.LOG_CLIP,BU=bl.ONEWEEK,h0=bl.ONEDAY,d0=bl.ONEHOUR,V9=bl.ONEMIN,W9=bl.ONESEC,p0=Zt(),g0=ya(),m0=g0.HOUR_PATTERN,y0=g0.WEEKDAY_PATTERN;function vf(e){return Math.pow(10,e)}function Sm(e){return e!=null}Z9.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,A){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&A&&r.range&&r.range.length===2){var C=r.range[0],k=r.range[1];return .5*(C+k-2*OU*Math.abs(C-k))}else return Kn}function l(b,A,C,k){if((k||{}).msUTC&&_i(b))return+b;var q=U9(b,C||r.calendar);if(q===Kn)if(_i(b)){b=+b;var D=Math.floor(it.mod(b+.05,1)*10),R=Math.round(b-D/10);q=U9(new Date(R))+D/10}else return Kn;return q}function o(b,A,C){return HU(b,A,C||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Sm(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var A=r._categories.length-1;return r._categoriesMap[b]=A,A}return Kn}function f(b,A){for(var C=new Array(A),k=0;kr.range[1]&&(C=!C);for(var k=C?-1:1,q=k*b,D=0,R=0;RF)D=R+1;else{D=q<(z+F)/2?R:R+1;break}}var I=r._B[D]||0;return isFinite(I)?m(b,r._m2,I):0},_=function(b){var A=r._rangebreaks.length;if(!A)return g(b,r._m,r._b);for(var C=0,k=0;kr._rangebreaks[k].pmax&&(C=k+1);return g(b,r._m2,r._B[C])}}r.c2l=r.type==="log"?i:wi,r.l2c=r.type==="log"?vf:wi,r.l2p=y,r.p2l=_,r.c2p=r.type==="log"?function(b,A){return y(i(b,A))}:y,r.p2c=r.type==="log"?function(b){return vf(_(b))}:_,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=gl,r.c2d=r.c2r=r.l2d=r.l2r=wi,r.d2p=r.r2p=function(b){return r.l2p(gl(b))},r.p2d=r.p2r=_,r.cleanPos=wi):r.type==="log"?(r.d2r=r.d2l=function(b,A){return i(gl(b),A)},r.r2d=r.r2c=function(b){return vf(gl(b))},r.d2c=r.r2l=gl,r.c2d=r.l2r=wi,r.c2r=i,r.l2d=vf,r.d2p=function(b,A){return r.l2p(r.d2r(b,A))},r.p2d=function(b){return vf(_(b))},r.r2p=function(b){return r.l2p(gl(b))},r.p2r=_,r.cleanPos=wi):r.type==="date"?(r.d2r=r.r2d=it.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(b,A,C){return r.l2p(l(b,0,C))},r.p2d=r.p2r=function(b,A,C){return o(_(b),A,C)},r.cleanPos=function(b){return it.cleanDate(b,Kn,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var A=d(b);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=wi,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:wi(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var A=h(b);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=wi,r.r2l=h,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:wi(b)},r.setupMultiCategory=function(b){var A=r._traceIndices,C,k,q=r._matchGroup;if(q&&r._categories.length===0){for(var D in q)if(D!==a){var R=t[p0.id2name(D)];A=A.concat(R._traceIndices)}}var z=[[0,{}],[0,{}]],F=[];for(C=0;CR[1]&&(k[D?0:1]=C),k[0]===k[1]){var z=r.l2r(A),F=r.l2r(C);if(A!==void 0){var I=z+1;C!==void 0&&(I=Math.min(I,F)),k[D?1:0]=I}if(C!==void 0){var O=F+1;A!==void 0&&(O=Math.max(O,z)),k[D?0:1]=O}}}},r.cleanRange=function(b,A){r._cleanRange(b,A),r.limitRange(b)},r._cleanRange=function(b,A){A||(A={}),b||(b="range");var C=it.nestedProperty(r,b).get(),k,q;if(r.type==="date"?q=it.dfltRange(r.calendar):n==="y"?q=g0.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=A.dfltRange||g0.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!C||C.length!==2){it.nestedProperty(r,b).set(q);return}var D=C[0]===null,R=C[1]===null;for(r.type==="date"&&!r.autorange&&(C[0]=it.cleanDate(C[0],Kn,r.calendar),C[1]=it.cleanDate(C[1],Kn,r.calendar)),k=0;k<2;k++)if(r.type==="date"){if(!it.isDateTime(C[k],r.calendar)){r[b]=q;break}if(r.r2l(C[0])===r.r2l(C[1])){var z=it.constrain(r.r2l(C[0]),it.MIN_MS+1e3,it.MAX_MS-1e3);C[0]=r.l2r(z-1e3),C[1]=r.l2r(z+1e3);break}}else{if(!_i(C[k]))if(!(D||R)&&_i(C[1-k]))C[k]=C[1-k]*(k?10:.1);else{r[b]=q;break}if(C[k]<-v0?C[k]=-v0:C[k]>v0&&(C[k]=v0),C[0]===C[1]){var F=Math.max(1,Math.abs(C[0]*1e-6));C[0]-=F,C[1]+=F}}},r.setScale=function(b){var A=t._size;if(r.overlaying){var C=p0.getFromId({_fullLayout:t},r.overlaying);r.domain=C.domain}var k=b&&r._r?"_r":"range",q=r.calendar;r.cleanRange(k);var D=r.r2l(r[k][0],q),R=r.r2l(r[k][1],q),z=n==="y";if(z?(r._offset=A.t+(1-r.domain[1])*A.h,r._length=A.h*(r.domain[1]-r.domain[0]),r._m=r._length/(D-R),r._b=-r._m*R):(r._offset=A.l+r.domain[0]*A.w,r._length=A.w*(r.domain[1]-r.domain[0]),r._m=r._length/(R-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var F,I;if(r._rangebreaks=r.locateBreaks(Math.min(D,R),Math.max(D,R)),r._rangebreaks.length){for(F=0;FR&&(O=!O),O&&r._rangebreaks.reverse();var X=O?-1:1;for(r._m2=X*r._length/(Math.abs(R-D)-r._lBreaks),r._B.push(-r._m2*(z?R:D)),F=0;Fq&&(q+=7,Dq&&(q+=24,D=k&&D=k&&b=re.min&&(iere.max&&(re.max=pe),me=!1)}me&&R.push({min:ie,max:pe})}};for(C=0;C{"use strict";var X9=Hr(),Cm=Ie(),YU=Gt().BADNUM,x0=Cm.isArrayOrTypedArray,UU=Cm.isDateTime,GU=Cm.cleanNumber,J9=Math.round;Q9.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(x0(n)&&!n.length)return"-";if(!i&&JU(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function K9(e){return Math.max(1,(e-1)/1e3)}function XU(e,r){for(var t=e.length,a=K9(t),n=0,i=0,l={},o=0;on*2}function JU(e){return x0(e[0])&&x0(e[1])}});var hf=Z((Boe,i8)=>{"use strict";var KU=Ir(),r8=Hr(),xl=Ie(),_0=Gt().FP_SAFE,QU=br(),$U=at(),t8=Zt(),jU=t8.getFromId,eG=t8.isLinked;i8.exports={applyAutorangeOptions:n8,getAutoRange:qm,makePadFn:Dm,doAutoRange:tG,findExtremes:aG,concatExtremes:Rm};function qm(e,r){var t,a,n=[],i=e._fullLayout,l=Dm(i,r,0),o=Dm(i,r,1),s=Rm(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return xl.simpleMap(r.range,r.r2l);var v=u[0].val,h=f[0].val;for(t=1;t0&&(R=T-l(C)-o(k),R>b?z/R>A&&(q=C,D=k,A=z/R):z/T>A&&(q={val:C.val,nopad:1},D={val:k.val,nopad:1},A=z/T));function F(U,H){return Math.max(U,o(H))}if(v===h){var I=v-1,O=v+1;if(_)if(v===0)n=[0,1];else{var X=(v>0?f:u).reduce(F,0),J=v/(1-Math.min(.5,X/T));n=v>0?[0,J]:[J,0]}else w?n=[Math.max(0,I),Math.max(1,O)]:n=[I,O]}else _?(q.val>=0&&(q={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):w&&(q.val-A*l(q)<0&&(q={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),A=(D.val-q.val-$9(r,C.val,k.val))/(T-l(q)-o(D)),n=[q.val-A*l(q),D.val+A*o(D)];return n=n8(n,r),r.limitRange&&r.limitRange(),m&&n.reverse(),xl.simpleMap(n,r.l2r||Number)}function $9(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),C=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),k=b(t.vpadplus||t.vpad),q=b(t.vpadminus||t.vpad);if(!u){if(w=1/0,T=-1/0,s)for(v=0;v0&&(w=h),h>T&&h<_0&&(T=h);else for(v=0;v-_0&&(w=h),h>T&&h<_0&&(T=h);r=[w,T],i=2}var D={tozero:o,extrapad:l};function R(F){d=r[F],r8(d)&&(y=A(F),_=C(F),f?(m=e.c2l(d)-q(F),g=e.c2l(d)+k(F)):(w=d-q(F),T=d+k(F),s&&w=z;v--)R(v);return{min:a,max:n,opts:t}}function Em(e,r,t,a){a8(e,r,t,a,nG)}function Pm(e,r,t,a){a8(e,r,t,a,iG)}function a8(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function e8(e){return r8(e)&&Math.abs(e)<_0}function nG(e,r){return e<=r}function iG(e,r){return e>=r}function lG(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&w0(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&w0(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function oG(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&w0(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&w0(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function w0(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=lG(t,r),a=oG(a,r),[t,a]}});var dt=Z((Yoe,S8)=>{"use strict";var Mn=Ir(),It=Hr(),zs=Nt(),pf=br(),gr=Ie(),Ns=gr.strTranslate,go=Ta(),sG=cf(),mf=Er(),sn=at(),uG=Xn(),l8=Qp(),ba=Gt(),fG=ba.ONEMAXYEAR,A0=ba.ONEAVGYEAR,k0=ba.ONEMINYEAR,cG=ba.ONEMAXQUARTER,Im=ba.ONEAVGQUARTER,S0=ba.ONEMINQUARTER,vG=ba.ONEMAXMONTH,Fs=ba.ONEAVGMONTH,C0=ba.ONEMINMONTH,un=ba.ONEWEEK,Ra=ba.ONEDAY,_l=Ra/2,Mi=ba.ONEHOUR,yf=ba.ONEMIN,L0=ba.ONESEC,hG=ba.ONEMILLI,dG=ba.ONEMICROSEC,bo=ba.MINUS_SIGN,E0=ba.BADNUM,Hm={K:"zeroline"},Om={K:"gridline",L:"path"},Bm={K:"minor-gridline",L:"path"},y8={K:"tick",L:"path"},o8={K:"tick",L:"text"},s8={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},P0=Pa(),df=P0.MID_SHIFT,xo=P0.CAP_SHIFT,gf=P0.LINE_SPACING,pG=P0.OPPOSITE_SIDE,q0=3,Ye=S8.exports={};Ye.setConvert=b0();var mG=Lm(),Ui=Zt(),yG=Ui.idSort,gG=Ui.isLinked;Ye.id2name=Ui.id2name;Ye.name2id=Ui.name2id;Ye.cleanId=Ui.cleanId;Ye.list=Ui.list;Ye.listIds=Ui.listIds;Ye.getFromId=Ui.getFromId;Ye.getFromTrace=Ui.getFromTrace;var g8=hf();Ye.getAutoRange=g8.getAutoRange;Ye.findExtremes=g8.findExtremes;var bG=1e-4;function Vm(e){var r=(e[1]-e[0])*bG;return[e[0]-r,e[1]+r]}Ye.coerceRef=function(e,r,t,a,n,i){var l=a.charAt(a.length-1),o=t._fullLayout._subplots[l+"axis"],s=a+"ref",u={};return n||(n=o[0]||(typeof i=="string"?i:i[0])),i||(i=n),o=o.concat(o.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:o.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},gr.coerce(e,r,u,s)};Ye.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Ye.coercePosition=function(e,r,t,a,n,i){var l,o,s=Ye.getRefType(a);if(s!=="range")l=gr.ensureNumber,o=t(n,i);else{var u=Ye.getFromId(r,a);i=u.fraction2r(i),o=t(n,i),l=u.cleanPos}e[n]=l(o)};Ye.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?gr.ensureNumber:Ye.getFromId(r,t).cleanPos;return a(e)};Ye.redrawComponents=function(e,r){r=r||Ye.listIds(e);var t=e._fullLayout;function a(n,i,l,o){for(var s=pf.getComponentMethod(n,i),u={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.list(e,"",!0),a=!1,n=0;nv*.3||u(a)||u(n))){var h=t.dtick/2;e+=e+hl){var o=Number(t.substr(1));i.exactYears>l&&o%12===0?e=Ye.tickIncrement(e,"M6","reverse")+Ra*1.5:i.exactMonths>l?e=Ye.tickIncrement(e,"M1","reverse")+Ra*15.5:e-=_l;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&It(r._tmin),n;if(a){var i=Ye.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=gr.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=gr.simpleMap(n,r.l2r),e._isMinor=!0,Ye.prepTicks(e,t),a){var o=It(r.dtick),s=It(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?zm(u,f)?u===2*un&&f===2*Ra&&(e.dtick=un):u===2*un&&f===3*Ra?e.dtick=un:u===un&&!(r._input.minor||{}).nticks?e.dtick=Ra:c8(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":zm(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?zm(u,f)||(e.dtick=c8(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function zm(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function c8(e,r){return Math.abs(e/r-1)<.001}Ye.prepTicks=function(e,r){var t=gr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?gr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=gr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ye.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,l=a):(i=a,l=a);var o=e[i].value,s=e[l].value,u=Math.abs(s-o),f=t||u,v=0;f>=k0?u>=k0&&u<=fG?v=u:v=A0:t===Im&&f>=S0?u>=S0&&u<=cG?v=u:v=Im:f>=C0?u>=C0&&u<=vG?v=u:v=Fs:t===un&&f>=un?v=un:f>=Ra?v=Ra:t===_l&&f>=_l?v=_l:t===Mi&&f>=Mi&&(v=Mi);var h;v>=u&&(v=u,h=!0);var d=n+v;if(r.rangebreaks&&v>0){for(var m=84,g=0,y=0;yun&&(v=u)}(v>0||a===0)&&(e[a].periodX=n+v/2)}}Ye.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||gr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=gr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(T?0:1);b--){var A=!b;b?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var C=b?r:gr.extendFlat({},r,r.minor);if(A?Ye.prepMinorTicks(C,r,t):Ye.prepTicks(C,t),C.tickmode==="array"){b?(y=[],m=v8(r,!A)):(_=[],g=v8(r,!A));continue}if(C.tickmode==="sync"){y=[],m=AG(r);continue}var k=Vm(u),q=k[0],D=k[1],R=It(C.dtick),z=a==="log"&&!(R||C.dtick.charAt(0)==="L"),F=Ye.tickFirst(C,t);if(b){if(r._tmin=F,F=D:O<=D;O=Ye.tickIncrement(O,U,f,n)){if(b&&X++,C.rangebreaks&&!f){if(O=h)break}if(y.length>d||O===I)break;I=O;var H={value:O};b?(z&&O!==(O|0)&&(H.simpleLabel=!0),i>1&&X%i&&(H.skipLabel=!0),y.push(H)):(H.minor=!0,_.push(H))}}if(!_||_.length<2)s=!1;else{var G=(_[1].value-_[0].value)*(o?-1:1);JG(G,r.tickformat)||(s=!1)}if(!s)w=y;else{var K=y.concat(_);l&&y.length&&(K=K.slice(1)),K=K.sort(function(ze,Ve){return ze.value-Ve.value}).filter(function(ze,Ve,Ue){return Ve===0||ze.value!==Ue[Ve-1].value});var Q=K.map(function(ze,Ve){return ze.minor===void 0&&!ze.skipLabel?Ve:null}).filter(function(ze){return ze!==null});Q.forEach(function(ze){s.map(function(Ve){var Ue=ze+Ve;Ue>=0&&Ue-1;se--){if(y[se].drop){y.splice(se,1);continue}y[se].value=Fm(y[se].value,r);var B=r.c2p(y[se].value);(be?ee>B-Y:eeh||Deh&&(Ue.periodX=h),Den&&hA0)r/=A0,a=n(10),e.dtick="M"+12*Ti(r,a,T0);else if(i>Fs)r/=Fs,e.dtick="M"+Ti(r,1,h8);else if(i>Ra){if(e.dtick=Ti(r,Ra,e._hasDayOfWeekBreaks?[1,2,7,14]:kG),!t){var l=Ye.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=gr.dateTick0(e.calendar,2):e.tick0=gr.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>Mi?e.dtick=Ti(r,Mi,h8):i>yf?e.dtick=Ti(r,yf,d8):i>L0?e.dtick=Ti(r,L0,d8):(a=n(10),e.dtick=Ti(r,a,T0))}else if(e.type==="log"){e.tick0=0;var s=gr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Ti(r,a,T0)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):Xm(e)?(e.tick0=0,a=1,e.dtick=Ti(r,a,SG)):(e.tick0=0,a=n(10),e.dtick=Ti(r,a,T0));if(e.dtick===0&&(e.dtick=1),!It(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function w8(e){var r=e.dtick;if(e._tickexponent=0,!It(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=Ra&&n<=10||r>=Ra*15)e._tickround="d";else if(r>=yf&&n<=16||r>=Mi)e._tickround="M";else if(r>=L0&&n<=19||r>=yf)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(It(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);It(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(D0(e.exponentformat)&&!Wm(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ye.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(It(r))return gr.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.substr(1));if(i==="M")return gr.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?_8:x8,s=e+n*.01,u=gr.roundUp(gr.mod(s,1),o,t);return Math.floor(s)+Math.log(Mn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ye.tickFirst=function(e,r){var t=e.r2l||Number,a=gr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&_<=e._length?y:null};if(i&&gr.isArrayOrTypedArray(e.ticktext)){var v=gr.simpleMap(e.range,e.r2l),h=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(u=0;u"+o;else{var u=xf(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function LG(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=bf(Math.pow(10,l),e,n,a);else if(It(i)||s==="D"&&(e.minorloglabels==="complete"||gr.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(gr.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),v=f.split("e"),h=+v[1],d=Math.abs(h),m=e.exponentformat;m==="power"||D0(m)&&Wm(h)?(r.text=v[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":bo)+d+""),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=v[0]+m+(h>0?"+":bo)+d:(r.text=bf(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,gr.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var g=String(r.text).charAt(0);(g==="0"||g==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function qG(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function DG(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function EG(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=bf(r.x,e,n,a)}function PG(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=RG(i);if(l[1]>=100)r.text=bf(gr.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=bo+r.text)}}}else r.text=bf(r.x,e,n,a)}function RG(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var zG=["f","p","n","\u03BC","m","","k","M","G","T"];function D0(e){return e==="SI"||e==="B"}function Wm(e){return e>14||e<-15}function bf(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:It(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};w8(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,bo);var v=Math.pow(10,-i)/2;if(l==="none"&&(o=0),e=Math.abs(e),e"+m+"":l==="B"&&o===9?e+="B":D0(l)&&(e+=zG[o/3+5])}return n?bo+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Fs}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var v=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return v===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):v-h}else return typeof s=="number"?1:-1}function n(s,u,f){var v=f||function(m){return m},h=u[0],d=u[1];return(!h&&typeof h!="number"||v(h)<=v(s))&&(!d&&typeof d!="number"||v(d)>=v(s))}function i(s,u){var f=u[0]===null,v=u[1]===null,h=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||h)&&(v||d)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return gr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ye.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&Gm(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=gr.simpleMap(u._r,u.r2l),f}}}))};Ye.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),v=Ye.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),Gm(r,m,a,!0),Gm(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=XG(r,a));var g=h[f+"axislayer"],y=r._mainLinePosition,_=y+=r._shift,w=r._mainMirrorPosition,T=r._vals=Ye.calcTicks(r),b=[r.mirror,_,w].join("_");for(i=0;i0?De.bottom-Ve:0,Ue))));var Te=0,Xe=0;if(r._shiftPusher&&(Te=Math.max(Ue,De.height>0?Ee==="l"?Ve-De.left:De.right-Ve:0),r.title.text!==s._dfltTitle[f]&&(Xe=(r._titleStandoff||0)+(r._titleScoot||0),Ee==="l"&&(Xe+=m8(r))),r._fullDepth=Math.max(Te,Xe)),r.automargin){He={x:0,y:0,r:0,l:0,t:0,b:0};var cr=[0,1],fr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ee==="b"?He[Ee]=r._depth:(He[Ee]=r._depth=Math.max(De.width>0?Ve-De.top:0,Ue),cr.reverse()),De.width>0){var le=De.right-(r._offset+r._length);le>0&&(He.xr=1,He.r=le);var Se=r._offset-De.left;Se>0&&(He.xl=0,He.l=Se)}}else if(Ee==="l"?(r._depth=Math.max(De.height>0?Ve-De.left:0,Ue),He[Ee]=r._depth-fr):(r._depth=Math.max(De.height>0?De.right-Ve:0,Ue),He[Ee]=r._depth+fr,cr.reverse()),De.height>0){var Fe=De.bottom-(r._offset+r._length);Fe>0&&(He.yb=0,He.b=Fe);var We=r._offset-De.top;We>0&&(He.yt=1,He.t=We)}He[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[cr[0]],r.title.text!==s._dfltTitle[f]&&(He[Ee]+=m8(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Oe={x:0,y:0,r:0,l:0,t:0,b:0},Oe[ze]=r.linewidth,r.mirror&&r.mirror!==!0&&(Oe[ze]+=Ue),r.mirror===!0||r.mirror==="ticks"?Oe[v]=r._anchorAxis.domain[cr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Oe[v]=[r._counterDomainMin,r._counterDomainMax][cr[1]]))}Ne&&(ne=pf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(p8(He,r.automargin),p8(Oe,r.automargin)),zs.autoMargin(e,Zm(r),He),zs.autoMargin(e,A8(r),Oe),zs.autoMargin(e,k8(r),ne)}),gr.syncOrAsync(ge)}};function p8(e,r){if(e){var t=Object.keys(s8).reduce(function(a,n){return r.indexOf(n)!==-1&&s8[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function NG(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(gr.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,v=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*v}return e._id.charAt(0)==="x"?function(h){return Ns(n+e._offset+e.l2p(Ym(h))+t,i+a)}:function(h){return Ns(i+a,n+e._offset+e.l2p(Ym(h))+t)}};function Ym(e){return e.periodX!==void 0?e.periodX:e.x}function OG(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(m){return r.indexOf(m)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,v=u?(e.tickwidth||0)/2:0,h=q0,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(v+=d*xo,h+=(e.linewidth||0)/2),(i||l)&&(v+=(e.linewidth||0)/2,h+=q0),s&&f==="top"&&(h-=d*(1-xo)),(i||n)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h:0]}Ye.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Ye.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(I){return a.indexOf(I)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),v=i("inside"),h=a==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&n!=="boundaries",d=0,m=0,g=h?e.ticklen:0;if(v?g*=-1:f&&(g=0),h&&(d+=g,t)){var y=gr.deg2rad(t);d=g*Math.cos(y)+1,m=g*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(v?-1:1);var _={labelStandoff:d,labelShift:m},w,T,b,A,C=0,k=e.side,q=e._id.charAt(0),D=e.tickangle,R;if(q==="x")R=!v&&k==="bottom"||v&&k==="top",A=R?1:-1,v&&(A*=-1),w=m*A,T=r+d*A,b=R?1:-.2,Math.abs(D)===90&&(v?b+=df:D===-90&&k==="bottom"?b=xo:D===90&&k==="top"?b=df:b=.5,C=df/2*(D/90)),_.xFn=function(I){return I.dx+w+C*I.fontSize},_.yFn=function(I){return I.dy+T+I.fontSize*b},_.anchorFn=function(I,O){if(f){if(o)return"end";if(s)return"start"}return!It(O)||O===0||O===180?"middle":O*A<0!==v?"end":"start"},_.heightFn=function(I,O,X){return O<-60||O>60?-.5*X:e.side==="top"!==v?-X:0};else if(q==="y"){if(R=!v&&k==="left"||v&&k==="right",A=R?1:-1,v&&(A*=-1),w=d,T=m*A,b=0,!v&&Math.abs(D)===90&&(D===-90&&k==="left"||D===90&&k==="right"?b=xo:b=.5),v){var z=It(D)?+D:0;if(z!==0){var F=gr.deg2rad(z);C=Math.abs(Math.sin(F))*xo*A,b=0}}_.xFn=function(I){return I.dx+r-(w+I.fontSize*b)*A+C*I.fontSize},_.yFn=function(I){return I.dy+T+I.fontSize*df},_.anchorFn=function(I,O){return It(O)&&Math.abs(O)===90?"middle":R?"end":"start"},_.heightFn=function(I,O,X){return e.side==="right"&&(O*=-1),O<-30?-X:O<30?-.5*X:0}}return _};function R0(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ye.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,R0);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return mf.stroke(Mn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return sn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),z0(r,[y8]),i.attr("transform",t.transFn)};Ye.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(_){return _.minor}):[],l=r.showgrid?t.vals.filter(function(_){return!_.minor}):[],o=t.counterAxis;if(o&&Ye.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;m--){var g=m?h:d;if(g){var y=g.selectAll("path."+a).data(m?l:i,R0);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(_){return mf.stroke(Mn.select(this),_.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(_){return sn.dashStyle(_.minor?r.minor.griddash:r.griddash,_.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(_){return(_.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}z0(r,[Om,Bm])}};Ye.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ye.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return yG(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(mf.stroke,r.zerolinecolor||mf.defaultLine).style("stroke-width",sn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),z0(r,[Hm])};Ye.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(G){return G.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],v=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],R0),h=[];v.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(G){var K=Mn.select(this),Q=e._promises.length;K.call(go.positionText,s.xFn(G),s.yFn(G)).call(sn.font,{family:G.font,size:G.fontSize,color:G.fontColor,weight:G.fontWeight,style:G.fontStyle,variant:G.fontVariant,textcase:G.fontTextcase,lineposition:G.fontLineposition,shadow:G.fontShadow}).text(G.text).call(go.convertToTspans,e),e._promises[Q]?h.push(e._promises.pop().then(function(){d(K,u)})):d(K,u)}),z0(r,[o8]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(G){Mn.select(this).select("text").call(go.positionText,s.xFn(G),s.yFn(G))});function d(G,K){G.each(function(Q){var ie=Mn.select(this),pe=ie.select(".text-math-group"),me=s.anchorFn(Q,K),Ae=t.transFn.call(ie.node(),Q)+(It(K)&&+K!=0?" rotate("+K+","+s.xFn(Q)+","+(s.yFn(Q)-Q.fontSize/2)+")":""),re=go.lineCount(ie),Le=gf*Q.fontSize,fe=s.heightFn(Q,It(K)?+K:0,(re-1)*Le);if(fe&&(Ae+=Ns(0,fe)),pe.empty()){var ke=ie.select("text");ke.attr({transform:Ae,"text-anchor":me}),ke.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var se=sn.bBox(pe.node()).width,be=se*{end:-.5,start:.5}[me];pe.attr("transform",Ae+Ns(be,0))}})}r._adjustTickLabelsOverflow=function(){var G=r.ticklabeloverflow;if(!(!G||G==="allow")){var K=G.indexOf("hide")!==-1,Q=r._id.charAt(0)==="x",ie=0,pe=Q?e._fullLayout.width:e._fullLayout.height;if(G.indexOf("domain")!==-1){var me=gr.simpleMap(r.range,r.r2l);ie=r.l2p(me[0])+r._offset,pe=r.l2p(me[1])+r._offset}var Ae=Math.min(ie,pe),re=Math.max(ie,pe),Le=r.side,fe=1/0,ke=-1/0;v.each(function(ee){var B=Mn.select(this),ye=B.select(".text-math-group");if(ye.empty()){var Me=sn.bBox(B.node()),ge=0;Q?(Me.right>re||Me.leftre||Me.top+(r.tickangle?0:ee.fontSize/4)r["_visibleLabelMin_"+me._id]?B.style("display","none"):re.K==="tick"&&!Ae&&B.node().style.display!=="none"&&B.style("display",null)})})})})},d(v,f+1?f:u);function m(){return h.length&&Promise.all(h)}var g=null;function y(){if(d(v,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){g=r.autotickangles[0];var G=0,K=[],Q,ie=1;v.each(function(He){G=Math.max(G,He.fontSize);var Oe=r.l2p(He.x),ne=Um(this),Te=sn.bBox(ne.node());ie=Math.max(ie,go.lineCount(ne)),K.push({top:0,bottom:10,height:10,left:Oe-Te.width/2,right:Oe+Te.width/2+2,width:Te.width+2})});var pe=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,me=o.length,Ae=Math.abs((o[me-1].x-o[0].x)*r._m)/(me-1),re=pe?Ae/2:Ae,Le=pe?r.ticklen:G*1.25*ie,fe=Math.sqrt(Math.pow(re,2)+Math.pow(Le,2)),ke=re/fe,se=r.autotickangles.map(function(He){return He*Math.PI/180}),be=se.find(function(He){return Math.abs(Math.cos(He))<=ke});be===void 0&&(be=se.reduce(function(He,Oe){return Math.abs(Math.cos(He))J*X&&(F=X,D[q]=R[q]=I[q])}var U=Math.abs(F-z);U-A>0?(U-=A,A*=1+A/U):A=0,r._id.charAt(0)!=="y"&&(A=-A),D[k]=T.p2r(T.r2p(R[k])+C*A),T.autorange==="min"||T.autorange==="max reversed"?(D[0]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0):(T.autorange==="max"||T.autorange==="min reversed")&&(D[1]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[T._name+".range"]=D}var H=gr.syncOrAsync(_);return H&&H.then&&e._promises.push(H),H};function BG(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,R0);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(mf.stroke,r.dividercolor).style("stroke-width",sn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ye.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function m8(e){var r=e.title.font.size,t=(e.title.text.match(go.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(xo+t*gf):t?r*(t+1)*gf:r}function YG(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(go.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*xo:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(df+o*gf));else{var s=xf(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ye.getPxPosition(e,r),v,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-l:f+l):(d=r._offset+r._length/2,h=r.side==="right"?f+l:f-l,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var g=r._selections[r._id+"tick"];if(m={selection:g,side:r.side},g&&g.node()&&g.node().parentNode){var y=sn.getTranslate(g.node().parentNode);m.offsetLeft=y.x,m.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=l,sG.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:m,transform:v,attributes:{x:h,y:d,"text-anchor":"middle"}})}Ye.shouldShowZeroLine=function(e,r,t){var a=gr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===E0)&&(M8(r,0)||!UG(e,r,t,a)||GG(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return M8(e,t.x)})};function M8(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=dG:/%L/.test(r)?e>=hG:/%[SX]/.test(r)?e>=L0:/%M/.test(r)?e>=yf:/%[HI]/.test(r)?e>=Mi:/%p/.test(r)?e>=_l:/%[Aadejuwx]/.test(r)?e>=Ra:/%[UVW]/.test(r)?e>=un:/%[Bbm]/.test(r)?e>=C0:/%[q]/.test(r)?e>=S0:/%[Yy]/.test(r)?e>=k0:!0}});var L8=Z((Uoe,C8)=>{"use strict";C8.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var Jm=Z((Goe,q8)=>{"use strict";var KG=L8();q8.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),v;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,v=!0),v||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(KG(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var E8=Z((Voe,D8)=>{var QG={left:0,top:0};D8.exports=$G;function $G(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=jG(r);return t[0]=a-i.left,t[1]=n-i.top,t}function jG(e){return e===window||e===document||e===document.body?QG:e.getBoundingClientRect()}});var Km=Z((Woe,P8)=>{"use strict";var eV=Ap();function rV(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}P8.exports=eV&&rV()});var z8=Z((Zoe,R8)=>{"use strict";R8.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var I8=Z((Xoe,F8)=>{"use strict";var N8=Ie(),tV=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];F8.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=N8.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=N8.constrain(Math.floor(t*3),0,2),tV[t][r]}});var O8=Z((Joe,H8)=>{"use strict";var aV=rf(),nV=zv(),iV=Wu().getGraphDiv,lV=Yu(),Qm=H8.exports={};Qm.wrapped=function(e,r,t){e=iV(e),e._fullLayout&&nV.clear(e._fullLayout._uid+lV.HOVERID),Qm.raw(e,r,t)};Qm.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&aV.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var Qn=Z((Koe,G8)=>{"use strict";var oV=E8(),$m=Sp(),sV=Km(),uV=Ie().removeElement,fV=ya(),_o=G8.exports={};_o.align=z8();_o.getCursor=I8();var Y8=O8();_o.unhover=Y8.wrapped;_o.unhoverRaw=Y8.raw;_o.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,v,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,sV?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function m(T,b,A){return Math.abs(T)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;v.target===h?b=v:(b={target:h,srcElement:h,toElement:h},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(A=>{var C=v[A];!b[A]&&typeof C!="function"&&(b[A]=C)})),r.clickFn&&r.clickFn(a,b),d||h.dispatchEvent(new MouseEvent("click",T))}t._dragging=!1,t._dragged=!1}};function U8(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}_o.coverSlip=U8;function B8(e){return oV(e.changedTouches?e.changedTouches[0]:e,document.body)}});var wl=Z((Qoe,V8)=>{"use strict";V8.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var X8=Z(($oe,Z8)=>{"use strict";var jm=wl(),_f="data-savedcursor",W8="!!";Z8.exports=function(r,t){var a=r.attr(_f);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var ey=ma(),cV=hi();J8.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:cV.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:ey({editType:"legend"}),grouptitlefont:ey({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:ey({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var F0=Z(N0=>{"use strict";N0.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};N0.isVertical=function(r){return r.orientation!=="h"};N0.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var ny=Z((rse,K8)=>{"use strict";var ty=br(),fn=Ie(),vV=ct(),hV=Gn(),dV=ry(),pV=ds(),ay=F0();function mV(e,r,t,a){var n=r[e]||{},i=vV.newContainer(t,e);function l(U,H){return fn.coerce(n,i,dV,U,H)}var o=fn.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(s){for(var u,f=function(U,H){var G=u._input,K=u;return fn.coerce(G,K,hV,U,H)},v=t.font||{},h=fn.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),d=0,m=!1,g="normal",y=(t.shapes||[]).filter(function(U){return U.showlegend}),_=a.concat(y).filter(function(U){return e===(U.legend||"legend")}),w=0;w<_.length;w++)if(u=_[w],!!u.visible){var T=u._isShape;(u.showlegend||u._dfltShowLegend&&!(u._module&&u._module.attributes&&u._module.attributes.showlegend&&u._module.attributes.showlegend.dflt===!1))&&(d++,u.showlegend&&(m=!0,(!T&&ty.traceIs(u,"pie-like")||u._input.showlegend===!0)&&d++),fn.coerceFont(f,"legendgrouptitle.font",h)),(!T&&ty.traceIs(u,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(u.fill)!==-1)&&(g=ay.isGrouped({traceorder:g})?"grouped+reversed":"reversed"),u.legendgroup!==void 0&&u.legendgroup!==""&&(g=ay.isReversed({traceorder:g})?"reversed+grouped":"grouped")}var b=fn.coerce(r,t,pV,"showlegend",m&&d>(e==="legend"?1:0));if(b===!1&&(t[e]=void 0),!(b===!1&&!n.uirevision)&&(l("uirevision",t.uirevision),b!==!1)){l("borderwidth");var A=l("orientation"),C=l("yref"),k=l("xref"),q=A==="h",D=C==="paper",R=k==="paper",z,F,I,O="left";q?(z=0,ty.getComponentMethod("rangeslider","isVisible")(r.xaxis)?D?(F=1.1,I="bottom"):(F=1,I="top"):D?(F=-.1,I="top"):(F=0,I="bottom")):(F=1,I="auto",R?z=1.02:(z=1,O="right")),fn.coerce(n,i,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:z}},"x"),fn.coerce(n,i,{y:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:F}},"y"),l("traceorder",g),ay.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",O),l("yanchor",I),l("maxheight"),l("valign"),fn.noneOrAll(n,i,["x","y"]);var X=l("title.text");if(X){l("title.side",q?"left":"top");var J=fn.extendFlat({},o,{size:fn.bigFont(o.size)});fn.coerceFont(l,"title.font",J)}}}}K8.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var Is=br(),ly=Ie(),yV=ly.pushUnique,iy=!0;Q8.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,l=n.legend.itemdoubleclick,o=n.legend.groupclick;a===1&&i==="toggle"&&l==="toggleothers"&&iy&&t.data&&t._context.showTips&&ly.notifier(ly._(t,"Double-click on legend to isolate one trace"),"long"),iy=!1;var s;if(a===1?s=i:a===2&&(s=l),!s)return;var u=o==="togglegroup",f=n.hiddenlabels?n.hiddenlabels.slice():[],v=r.data()[0][0];if(v.groupTitle&&v.noClick)return;var h=t._fullData,d=(n.shapes||[]).filter(function(ze){return ze.showlegend}),m=h.concat(d),g=v.trace;g._isShape&&(g=g._fullInput);var y=g.legendgroup,_,w,T,b,A,C,k={},q=[],D=[],R=[];function z(ze,Ve){var Ue=q.indexOf(ze),De=k.visible;return De||(De=k.visible=[]),q.indexOf(ze)===-1&&(q.push(ze),Ue=q.length-1),De[Ue]=Ve,Ue}var F=(n.shapes||[]).map(function(ze){return ze._input}),I=!1;function O(ze,Ve){F[ze].visible=Ve,I=!0}function X(ze,Ve){if(!(v.groupTitle&&!u)){var Ue=ze._fullInput||ze,De=Ue._isShape,He=Ue.index;He===void 0&&(He=Ue._index);var Oe=Ue.visible===!1?!1:Ve;De?O(He,Oe):z(He,Oe)}}var J=g.legend,U=g._fullInput,H=U&&U._isShape;if(!H&&Is.traceIs(g,"pie-like")){var G=v.label,K=f.indexOf(G);if(s==="toggle")K===-1?f.push(G):f.splice(K,1);else if(s==="toggleothers"){var Q=K!==-1,ie=[];for(_=0;_{"use strict";j8.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var tw=Z((nse,rw)=>{"use strict";var ew=br(),sy=F0();rw.exports=function(r,t,a){var n=t._inHover,i=sy.isGrouped(t),l=sy.isReversed(t),o={},s=[],u=!1,f={},v=0,h=0,d,m;function g(U,H,G){if(t.visible!==!1&&!(a&&U!==t._id))if(H===""||!sy.isGrouped(t)){var K="~~i"+v;s.push(K),o[K]=[G],v++}else s.indexOf(H)===-1?(s.push(H),u=!0,o[H]=[G]):o[H].push(G)}for(d=0;dR&&(D=R)}k[d][0]._groupMinRank=D,k[d][0]._preGroupSort=d}var z=function(U,H){return U[0]._groupMinRank-H[0]._groupMinRank||U[0]._preGroupSort-H[0]._preGroupSort},F=function(U,H){return U.trace.legendrank-H.trace.legendrank||U._preSort-H._preSort};for(k.forEach(function(U,H){U[0]._preGroupSort=H}),k.sort(z),d=0;d{"use strict";var I0=Ie();function aw(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}wo.formatPiePercent=function(r,t){var a=aw((r*100).toPrecision(3));return I0.numSeparate(a,t)+"%"};wo.formatPieValue=function(r,t){var a=aw(r.toPrecision(10));return I0.numSeparate(a,t)};wo.getFirstFilled=function(r,t){if(I0.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var gV=at(),bV=Er();nw.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?gV.pointStyle(r,a,n,t):bV.fill(r,t.color)}});var O0=Z((ose,sw)=>{"use strict";var lw=Er(),ow=H0().castOption,xV=iw();sw.exports=function(r,t,a,n){var i=a.marker.line,l=ow(i.color,t.pts)||lw.defaultLine,o=ow(i.width,t.pts)||0;r.call(xV,t,a,n).style("stroke-width",o).call(lw.stroke,l)}});var vy=Z((sse,dw)=>{"use strict";var za=Ir(),uy=br(),Aa=Ie(),uw=Aa.strTranslate,cn=at(),An=Er(),fy=Tn().extractOpts,B0=on(),_V=O0(),wV=H0().castOption,TV=oy(),fw=12,cw=5,To=2,MV=10,Hs=5;dw.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+TV.itemGap*2)/2,s=uw(o,0),u=function(k,q,D,R){var z;if(k+1)z=k;else if(q&&q.width>0)z=q.width;else return 0;return i?R:Math.min(z,D)};r.each(function(k){var q=za.select(this),D=Aa.ensureSingle(q,"g","layers");D.style("opacity",k[0].trace.opacity);var R=a.indentation,z=a.valign,F=k[0].lineHeight,I=k[0].height;if(z==="middle"&&R===0||!F||!I)D.attr("transform",null);else{var O={top:1,bottom:-1}[z],X=O*(.5*(F-I+3))||0,J=a.indentation;D.attr("transform",uw(J,X))}var U=D.selectAll("g.legendfill").data([k]);U.enter().append("g").classed("legendfill",!0);var H=D.selectAll("g.legendlines").data([k]);H.enter().append("g").classed("legendlines",!0);var G=D.selectAll("g.legendsymbols").data([k]);G.enter().append("g").classed("legendsymbols",!0),G.selectAll("g.legendpoints").data([k]).enter().append("g").classed("legendpoints",!0)}).each(C).each(h).each(m).each(d).each(y).each(b).each(T).each(f).each(v).each(_).each(w);function f(k){var q=vw(k),D=q.showFill,R=q.showLine,z=q.showGradientLine,F=q.showGradientFill,I=q.anyFill,O=q.anyLine,X=k[0],J=X.trace,U,H,G=fy(J),K=G.colorscale,Q=G.reversescale,ie=function(ke){if(ke.size())if(D)cn.fillGroupStyle(ke,t,!0);else{var se="legendfill-"+J.uid;cn.gradient(ke,t,se,cy(Q),K,"fill")}},pe=function(ke){if(ke.size()){var se="legendline-"+J.uid;cn.lineGroupStyle(ke),cn.gradient(ke,t,se,cy(Q),K,"stroke")}},me=B0.hasMarkers(J)||!I?"M5,0":O?"M5,-2":"M5,-3",Ae=za.select(this),re=Ae.select(".legendfill").selectAll("path").data(D||F?[k]:[]);if(re.enter().append("path").classed("js-fill",!0),re.exit().remove(),re.attr("d",me+"h"+l+"v6h-"+l+"z").call(ie),R||z){var Le=u(void 0,J.line,MV,cw);H=Aa.minExtend(J,{line:{width:Le}}),U=[Aa.minExtend(X,{trace:H})]}var fe=Ae.select(".legendlines").selectAll("path").data(R||z?[U]:[]);fe.enter().append("path").classed("js-line",!0),fe.exit().remove(),fe.attr("d",me+(z?"l"+l+",0.0001":"h"+l)).call(R?cn.lineGroupStyle:pe)}function v(k){var q=vw(k),D=q.anyFill,R=q.anyLine,z=q.showLine,F=q.showMarker,I=k[0],O=I.trace,X=!F&&!R&&!D&&B0.hasText(O),J,U;function H(re,Le,fe,ke){var se=Aa.nestedProperty(O,re).get(),be=Aa.isArrayOrTypedArray(se)&&Le?Le(se):se;if(i&&be&&ke!==void 0&&(be=ke),fe){if(befe[1])return fe[1]}return be}function G(re){return I._distinct&&I.index&&re[I.index]?re[I.index]:re[0]}if(F||X||z){var K={},Q={};if(F){K.mc=H("marker.color",G),K.mx=H("marker.symbol",G),K.mo=H("marker.opacity",Aa.mean,[.2,1]),K.mlc=H("marker.line.color",G),K.mlw=H("marker.line.width",Aa.mean,[0,5],To),Q.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ie=H("marker.size",Aa.mean,[2,16],fw);K.ms=ie,Q.marker.size=ie}z&&(Q.line={width:H("line.width",G,[0,10],cw)}),X&&(K.tx="Aa",K.tp=H("textposition",G),K.ts=10,K.tc=H("textfont.color",G),K.tf=H("textfont.family",G),K.tw=H("textfont.weight",G),K.ty=H("textfont.style",G),K.tv=H("textfont.variant",G),K.tC=H("textfont.textcase",G),K.tE=H("textfont.lineposition",G),K.tS=H("textfont.shadow",G)),J=[Aa.minExtend(I,K)],U=Aa.minExtend(O,Q),U.selectedpoints=null,U.texttemplate=null}var pe=za.select(this).select("g.legendpoints"),me=pe.selectAll("path.scatterpts").data(F?J:[]);me.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),me.exit().remove(),me.call(cn.pointStyle,U,t),F&&(J[0].mrc=3);var Ae=pe.selectAll("g.pointtext").data(X?J:[]);Ae.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Ae.exit().remove(),Ae.selectAll("text").call(cn.textPointStyle,U,t)}function h(k){var q=k[0].trace,D=q.type==="waterfall";if(k[0]._distinct&&D){var R=k[0].trace[k[0].dir].marker;return k[0].mc=R.color,k[0].mlw=R.line.width,k[0].mlc=R.line.color,g(k,this,"waterfall")}var z=[];q.visible&&D&&(z=k[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var F=za.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(z);F.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(I){var O=za.select(this),X=q[I[0]].marker,J=u(void 0,X.line,Hs,To);O.attr("d",I[1]).style("stroke-width",J+"px").call(An.fill,X.color),J&&O.call(An.stroke,X.line.color)})}function d(k){g(k,this)}function m(k){g(k,this,"funnel")}function g(k,q,D){var R=k[0].trace,z=R.marker||{},F=z.line||{},I=z.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",O=D?R.visible&&R.type===D:uy.traceIs(R,"bar"),X=za.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(O?[k]:[]);X.enter().append("path").classed("legend"+D,!0).attr("d",I).attr("transform",s),X.exit().remove(),X.each(function(J){var U=za.select(this),H=J[0],G=u(H.mlw,z.line,Hs,To);U.style("stroke-width",G+"px");var K=H.mcc;if(!a._inHover&&"mc"in H){var Q=fy(z),ie=Q.mid;ie===void 0&&(ie=(Q.max+Q.min)/2),K=cn.tryColorscale(z,"")(ie)}var pe=K||H.mc||z.color,me=z.pattern,Ae=cn.getPatternAttr,re=me&&(Ae(me.shape,0,"")||Ae(me.path,0,""));if(re){var Le=Ae(me.bgcolor,0,null),fe=Ae(me.fgcolor,0,null),ke=me.fgopacity,se=hw(me.size,8,10),be=hw(me.solidity,.5,1),Y="legend-"+R.uid;U.call(cn.pattern,"legend",t,Y,re,se,be,K,me.fillmode,Le,fe,ke)}else U.call(An.fill,pe);G&&An.stroke(U,H.mlc||F.color)})}function y(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&uy.traceIs(q,"box-violin")?[k]:[]);D.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.each(function(){var R=za.select(this);if((q.boxpoints==="all"||q.points==="all")&&An.opacity(q.fillcolor)===0&&An.opacity((q.line||{}).color)===0){var z=Aa.minExtend(q,{marker:{size:i?fw:Aa.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(cn.pointStyle,z,t)}else{var F=u(void 0,q.line,Hs,To);R.style("stroke-width",F+"px").call(An.fill,q.fillcolor),F&&An.stroke(R,q.line.color)}})}function _(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.type==="candlestick"?[k,k]:[]);D.enter().append("path").classed("legendcandle",!0).attr("d",function(R,z){return z?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(R,z){var F=za.select(this),I=q[z?"increasing":"decreasing"],O=u(void 0,I.line,Hs,To);F.style("stroke-width",O+"px").call(An.fill,I.fillcolor),O&&An.stroke(F,I.line.color)})}function w(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.type==="ohlc"?[k,k]:[]);D.enter().append("path").classed("legendohlc",!0).attr("d",function(R,z){return z?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(R,z){var F=za.select(this),I=q[z?"increasing":"decreasing"],O=u(void 0,I.line,Hs,To);F.style("fill","none").call(cn.dashLine,I.line.dash,O),O&&An.stroke(F,I.line.color)})}function T(k){A(k,this,"pie")}function b(k){A(k,this,"funnelarea")}function A(k,q,D){var R=k[0],z=R.trace,F=D?z.visible&&z.type===D:uy.traceIs(z,D),I=za.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(F?[k]:[]);if(I.enter().append("path").classed("legend"+D,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),I.exit().remove(),I.size()){var O=z.marker||{},X=u(wV(O.line.width,R.pts),O.line,Hs,To),J="pieLike",U=Aa.minExtend(z,{marker:{line:{width:X}}},J),H=Aa.minExtend(R,{trace:U},J);_V(I,H,U,t)}}function C(k){var q=k[0].trace,D,R=[];if(q.visible)switch(q.type){case"histogram2d":case"heatmap":R=[["M-15,-2V4H15V-2Z"]],D=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":R=[["M-6,-6V6H6V-6Z"]],D=!0;break;case"densitymapbox":case"densitymap":R=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],D="radial";break;case"cone":R=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],D=!1;break;case"streamtube":R=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],D=!1;break;case"surface":R=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],D=!0;break;case"mesh3d":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!1;break;case"volume":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!0;break;case"isosurface":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],D=!1;break}var z=za.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(R);z.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(F,I){var O=za.select(this),X=fy(q),J=X.colorscale,U=X.reversescale,H=function(ie){if(ie.size()){var pe="legendfill-"+q.uid;cn.gradient(ie,t,pe,cy(U,D==="radial"),J,"fill")}},G;if(J){if(!D){var Q=J.length;G=I===0?J[U?Q-1:0][1]:I===1?J[U?0:Q-1][1]:J[Math.floor((Q-1)/2)][1]}}else{var K=q.vertexcolor||q.facecolor||q.color;G=Aa.isArrayOrTypedArray(K)?K[I]||K[0]:K}O.attr("d",F[0]),G?O.call(An.fill,G):O.call(H)})}};function cy(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function vw(e){var r=e[0].trace,t=r.contours,a=B0.hasLines(r),n=B0.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function hw(e,r,t){return e&&Aa.isArrayOrTypedArray(e)?r:e>t?t:e}});var my=Z((use,Mw)=>{"use strict";var Qa=Ir(),Ht=Ie(),dy=Nt(),Ys=br(),pw=rf(),hy=Qn(),Ot=at(),U0=Er(),Mo=Ta(),mw=$8(),Xt=oy(),py=Pa(),ww=py.LINE_SPACING,Bs=py.FROM_TL,yw=py.FROM_BR,gw=tw(),AV=vy(),bw=F0(),Os=1,kV=/^legend[0-9]*$/;Mw.exports=function(r,t){if(t)xw(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Qa.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(kV)&&n.indexOf(v)===-1&&u.remove()});for(var l=0;l1)}var m=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),dy.autoMargin(e,n);var g=Ht.ensureSingle(l,"g",n,function(q){o||q.attr("pointer-events","all")}),y=Ht.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),_=Ht.ensureSingle(g,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});_.call(U0.stroke,t.bordercolor).call(U0.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var w=Ht.ensureSingle(g,"g","scrollbox"),T=t.title;t._titleWidth=0,t._titleHeight=0;var b;T.text?(b=Ht.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(Ot.font,T.font).text(T.text),G0(b,w,e,t,Os)):w.selectAll("."+n+"titletext").remove();var A=Ht.ensureSingle(g,"rect","scrollbar",function(q){q.attr(Xt.scrollBarEnterAttrs).call(U0.fill,Xt.scrollBarColor)}),C=w.selectAll("g.groups").data(s);C.enter().append("g").attr("class","groups"),C.exit().remove();var k=C.selectAll("g.traces").data(Ht.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(q){var D=q[0].trace;return Ys.traceIs(D,"pie-like")?m.indexOf(q[0].label)!==-1?.5:1:D.visible==="legendonly"?.5:1}).each(function(){Qa.select(this).call(CV,e,t)}).call(AV,e,t).each(function(){o||Qa.select(this).call(LV,e,n)}),Ht.syncOrAsync([dy.previousPromises,function(){return EV(e,C,k,t)},function(){var q=a._size,D=t.borderwidth,R=t.xref==="paper",z=t.yref==="paper";if(T.text&&SV(b,t,D),!o){var F,I;R?F=q.l+q.w*t.x-Bs[V0(t)]*t._width:F=a.width*t.x-Bs[V0(t)]*t._width,z?I=q.t+q.h*(1-t.y)-Bs[W0(t)]*t._effHeight:I=a.height*(1-t.y)-Bs[W0(t)]*t._effHeight;var O=PV(e,n,F,I);if(O)return;if(a.margin.autoexpand){var X=F,J=I;F=R?Ht.constrain(F,0,a.width-t._width):X,I=z?Ht.constrain(I,0,a.height-t._effHeight):J,F!==X&&Ht.log("Constrain "+n+".x to make legend fit inside graph"),I!==J&&Ht.log("Constrain "+n+".y to make legend fit inside graph")}Ot.setTranslate(g,F,I)}if(A.on(".drag",null),g.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var U=t._effHeight;o&&(U=t._height),_.attr({width:t._width-D,height:U-D,x:D/2,y:D/2}),Ot.setTranslate(w,0,0),y.select("rect").attr({width:t._width-2*D,height:U-2*D,x:D,y:D}),Ot.setClipUrl(w,i,e),Ot.setRect(A,0,0,0,0),delete t._scrollY}else{var H=Math.max(Xt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),G=t._effHeight-H-2*Xt.scrollBarMargin,K=t._height-t._effHeight,Q=G/K,ie=Math.min(t._scrollY||0,K);_.attr({width:t._width-2*D+Xt.scrollBarWidth+Xt.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),y.select("rect").attr({width:t._width-2*D+Xt.scrollBarWidth+Xt.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+ie}),Ot.setClipUrl(w,i,e),se(ie,H,Q),g.on("wheel",function(){ie=Ht.constrain(t._scrollY+Qa.event.deltaY/G*K,0,K),se(ie,H,Q),ie!==0&&ie!==K&&Qa.event.preventDefault()});var pe,me,Ae,re=function(ye,Me,ge){var Re=(ge-Me)/Q+ye;return Ht.constrain(Re,0,K)},Le=function(ye,Me,ge){var Re=(Me-ge)/Q+ye;return Ht.constrain(Re,0,K)},fe=Qa.behavior.drag().on("dragstart",function(){var ye=Qa.event.sourceEvent;ye.type==="touchstart"?pe=ye.changedTouches[0].clientY:pe=ye.clientY,Ae=ie}).on("drag",function(){var ye=Qa.event.sourceEvent;ye.buttons===2||ye.ctrlKey||(ye.type==="touchmove"?me=ye.changedTouches[0].clientY:me=ye.clientY,ie=re(Ae,pe,me),se(ie,H,Q))});A.call(fe);var ke=Qa.behavior.drag().on("dragstart",function(){var ye=Qa.event.sourceEvent;ye.type==="touchstart"&&(pe=ye.changedTouches[0].clientY,Ae=ie)}).on("drag",function(){var ye=Qa.event.sourceEvent;ye.type==="touchmove"&&(me=ye.changedTouches[0].clientY,ie=Le(Ae,pe,me),se(ie,H,Q))});w.call(ke)}function se(ye,Me,ge){t._scrollY=e._fullLayout[n]._scrollY=ye,Ot.setTranslate(w,0,-ye),Ot.setRect(A,t._width,Xt.scrollBarMargin+ye*ge,Xt.scrollBarWidth,Me),y.select("rect").attr("y",D+ye)}if(e._context.edits.legendPosition){var be,Y,ee,B;g.classed("cursor-move",!0),hy.init({element:g.node(),gd:e,prepFn:function(ye){if(ye.target!==A.node()){var Me=Ot.getTranslate(g);ee=Me.x,B=Me.y}},moveFn:function(ye,Me){if(ee!==void 0&&B!==void 0){var ge=ee+ye,Re=B+Me;Ot.setTranslate(g,ge,Re),be=hy.align(ge,t._width,q.l,q.l+q.w,t.xanchor),Y=hy.align(Re+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(be!==void 0&&Y!==void 0){var ye={};ye[n+".x"]=be,ye[n+".y"]=Y,Ys.call("_guiRelayout",e,ye)}},clickFn:function(ye,Me){var ge=l.selectAll("g.traces").filter(function(){var Re=this.getBoundingClientRect();return Me.clientX>=Re.left&&Me.clientX<=Re.right&&Me.clientY>=Re.top&&Me.clientY<=Re.bottom});ge.size()>0&&Tw(e,g,ge,ye,Me)}})}}],e)}}function Y0(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function Tw(e,r,t,a,n){var i=t.data()[0][0].trace,l={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(l.group=i._group),Ys.traceIs(i,"pie-like")&&(l.label=t.datum()[0].label);var o=pw.triggerHandler(e,"plotly_legendclick",l);if(a===1){if(o===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&mw(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=pw.triggerHandler(e,"plotly_legenddoubleclick",l);s!==!1&&o!==!1&&mw(t,e,a)}}function CV(e,r,t){var a=Z0(t),n=e.data()[0][0],i=n.trace,l=Ys.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Ht.templateString(u,i._meta))));var v=Ht.ensureSingle(e,"text",a+"text");v.attr("text-anchor","start").call(Ot.font,f).text(o?_w(u,s):u);var h=t.indentation+t.itemwidth+Xt.itemGap*2;Mo.positionText(v,h,0),o?v.call(Mo.makeEditable,{gd:r,text:u}).call(G0,e,r,t).on("edit",function(d){this.text(_w(d,s)).call(G0,e,r,t);var m=n.trace._fullInput||{},g={};return g.name=d,m._isShape?Ys.call("_guiRelayout",r,"shapes["+i.index+"].name",g.name):Ys.call("_guiRestyle",r,g,i.index)}):G0(v,e,r,t)}function _w(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function LV(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Ht.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(U0.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),Tw(r,o,e,i,Qa.event)}}))}function G0(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),Mo.convertToTspans(e,t,function(){qV(r,t,a,n)})}function qV(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),l=i.node(),o=Z0(t);t||(t=r._fullLayout[o]);var s=t.borderwidth,u;a===Os?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var f=u.size*ww,v,h;if(l){var d=Ot.bBox(l);v=d.height,h=d.width,a===Os?Ot.setTranslate(i,s,s+v*.75):Ot.setTranslate(i,0,v*.25)}else{var m="."+o+(a===Os?"title":"")+"text",g=e.select(m),y=Mo.lineCount(g),_=g.node();if(v=f*y,h=_?Ot.bBox(_).width:0,a===Os)t.title.side==="left"&&(h+=Xt.itemGap*2),Mo.positionText(g,s+Xt.titlePad,s+f);else{var w=Xt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=Xt.itemGap,h-=t.indentation+t.itemwidth),Mo.positionText(g,w,-f*((y-1)/2-.3))}}a===Os?(t._titleWidth=h,t._titleHeight=v):(n.lineHeight=f,n.height=Math.max(v,16)+3,n.width=h)}function DV(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function EV(e,r,t,a){var n=e._fullLayout,i=Z0(a);a||(a=n[i]);var l=n._size,o=bw.isVertical(a),s=bw.isGrouped(a),u=a.entrywidthmode==="fraction",f=a.borderwidth,v=2*f,h=Xt.itemGap,d=a.indentation+a.itemwidth+h*2,m=2*(f+h),g=W0(a),y=a.y<0||a.y===0&&g==="top",_=a.y>1||a.y===1&&g==="bottom",w=a.tracegroupgap,T={};let{orientation:b,yref:A}=a,{maxheight:C}=a,k=y||_||b!=="v"||A!=="paper";C||(C=k?.5:1);let q=k?n.height:l.h;a._maxHeight=Math.max(C>1?C:C*q,30);var D=0;a._width=0,a._height=0;var R=DV(a);if(o)t.each(function(se){var be=se[0].height;Ot.setTranslate(this,f+R[0],f+R[1]+a._height+be/2+h),a._height+=be,a._width=Math.max(a._width,se[0].width)}),D=d+a._width,a._width+=h+d+v,a._height+=m,s&&(r.each(function(se,be){Ot.setTranslate(this,0,be*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var z=V0(a),F=a.x<0||a.x===0&&z==="right",I=a.x>1||a.x===1&&z==="left",O=_||y,X=n.width/2;a._maxWidth=Math.max(F?O&&z==="left"?l.l+l.w:X:I?O&&z==="right"?l.r+l.w:X:l.w,2*d);var J=0,U=0;t.each(function(se){var be=Y0(se,a,d);J=Math.max(J,be),U+=be}),D=null;var H=0;if(s){var G=0,K=0,Q=0;r.each(function(){var se=0,be=0;Qa.select(this).selectAll("g.traces").each(function(ee){var B=Y0(ee,a,d),ye=ee[0].height;Ot.setTranslate(this,R[0],R[1]+f+h+ye/2+be),be+=ye,se=Math.max(se,B),T[ee[0].trace.legendgroup]=se});var Y=se+h;K>0&&Y+f+K>a._maxWidth?(H=Math.max(H,K),K=0,Q+=G+w,G=be):G=Math.max(G,be),Ot.setTranslate(this,K,Q),K+=Y}),a._width=Math.max(H,K)+f,a._height=Q+G+m}else{var ie=t.size(),pe=U+v+(ie-1)*h=a._maxWidth&&(H=Math.max(H,Le),Ae=0,re+=me,a._height+=me,me=0),Ot.setTranslate(this,R[0]+f+Ae,R[1]+f+re+be/2+h),Le=Ae+Y+h,Ae+=ee,me=Math.max(me,be)}),pe?(a._width=Ae+v,a._height=me+m):(a._width=Math.max(H,Le)+v,a._height+=me+m)}}a._width=Math.ceil(Math.max(a._width+R[0],a._titleWidth+2*(f+Xt.titlePad))),a._height=Math.ceil(Math.max(a._height+R[1],a._titleHeight+2*(f+Xt.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var fe=e._context.edits,ke=fe.legendText||fe.legendPosition;t.each(function(se){var be=Qa.select(this).select("."+i+"toggle"),Y=se[0].height,ee=se[0].trace.legendgroup,B=Y0(se,a,d);s&&ee!==""&&(B=T[ee]);var ye=ke?d:D||B;!o&&!u&&(ye+=h/2),Ot.setRect(be,0,-Y/2,ye,Y)})}function PV(e,r,t,a){var n=e._fullLayout,i=n[r],l=V0(i),o=W0(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",v=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return dy.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Bs[l],r:i._width*yw[l],b:i._effHeight*yw[o],t:i._effHeight*Bs[o]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][v]=h[v]:e._fullLayout._reservedMargin[r][f]=h[f]}function V0(e){return Ht.isRightAnchor(e)?"right":Ht.isCenterAnchor(e)?"center":"left"}function W0(e){return Ht.isBottomAnchor(e)?"bottom":Ht.isMiddleAnchor(e)?"middle":"top"}function Z0(e){return e._id||"legend"}});var xy=Z(by=>{"use strict";var Ao=Ir(),Gi=Hr(),Aw=bn(),Tt=Ie(),RV=Tt.pushUnique,yy=Tt.strTranslate,zV=Tt.strRotate,NV=rf(),kn=Ta(),FV=X8(),Ai=at(),ea=Er(),X0=Qn(),ki=dt(),IV=ya().zindexSeparator,Gs=br(),$n=xi(),ko=Yu(),HV=ny(),OV=my(),Pw=ko.YANGLE,gy=Math.PI*Pw/180,BV=1/Math.sin(gy),YV=Math.cos(gy),UV=Math.sin(gy),pt=ko.HOVERARROWSIZE,Or=ko.HOVERTEXTPAD,kw={box:!0,ohlc:!0,violin:!0,candlestick:!0},GV={scatter:!0,scattergl:!0,splom:!0};function Sw(e,r){return e.distance-r.distance}by.hover=function(r,t,a,n){r=Tt.getGraphDiv(r);var i=t.target;Tt.throttle(r._fullLayout._uid+ko.HOVERID,ko.HOVERMINTIME,function(){VV(r,t,a,n,i)})};by.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=Iw(n),l=Hw(n),o=r.map(function(y){var _=y._x0||y.x0||y.x||0,w=y._x1||y.x1||y.x||0,T=y._y0||y.y0||y.y||0,b=y._y1||y.y1||y.y||0,A=y.eventData;if(A){var C=Math.min(_,w),k=Math.max(_,w),q=Math.min(T,b),D=Math.max(T,b),R=y.trace;if(Gs.traceIs(R,"gl3d")){var z=n._fullLayout[R.scene]._scene.container,F=z.offsetLeft,I=z.offsetTop;C+=F,k+=F,q+=I,D+=I}A.bbox={x0:C+l,x1:k+l,y0:q+i,y1:D+i},t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||ea.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:A}}),s=!1,u=zw(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||ea.background,container:Ao.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,v=5,h=0,d=0;f.sort(function(y,_){return y.y0-_.y0}).each(function(y,_){var w=y.y0-y.by/2;w-vk[0]._length||B<0||B>q[0]._length)return X0.unhoverRaw(e,r)}if(r.pointerX=ee+k[0]._offset,r.pointerY=B+q[0]._offset,"xval"in r?J=$n.flat(i,r.xval):J=$n.p2c(k,ee),"yval"in r?U=$n.flat(i,r.yval):U=$n.p2c(q,B),!Gi(J[0])||!Gi(U[0]))return Tt.warn("Fx.hover failed",r,e),X0.unhoverRaw(e,r)}var ge=1/0;function Re(yr,lt){for(G=0;Gfe&&(O.splice(0,fe),ge=O[0].distance),v&&I!==0&&O.length===0){Le.distance=I,Le.index=!1;var bt=Q._module.hoverPoints(Le,Ae,re,"closest",{hoverLayer:o._hoverlayer});if(bt&&(bt=bt.filter(function(nt){return nt.spikeDistance<=I})),bt&&bt.length){var La,na=bt.filter(function(nt){return nt.xa.showspikes&&nt.xa.spikesnap!=="hovered data"});if(na.length){var In=na[0];Gi(In.x0)&&Gi(In.y0)&&(La=Ee(In),(!ke.vLinePoint||ke.vLinePoint.spikeDistance>La.spikeDistance)&&(ke.vLinePoint=La))}var Hn=bt.filter(function(nt){return nt.ya.showspikes&&nt.ya.spikesnap!=="hovered data"});if(Hn.length){var Qt=Hn[0];Gi(Qt.x0)&&Gi(Qt.y0)&&(La=Ee(Qt),(!ke.hLinePoint||ke.hLinePoint.spikeDistance>La.spikeDistance)&&(ke.hLinePoint=La))}}}}}Re();function Ne(yr,lt,Vr){for(var gt=null,kt=1/0,ot,bt=0;bt0&&Math.abs(yr.distance)Se-1;Ke--)vr(O[Ke]);O=Ge,De()}var Pe=e._hoverdata,ae=[],ue=Iw(e),qe=Hw(e);for(H=0;H1||O.length>1)||h==="closest"&&se&&O.length>1,ua=ea.combine(o.plot_bgcolor||ea.background,o.paper_bgcolor),fa=zw(O,{gd:e,hovermode:h,rotateLabels:At,bgColor:ua,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),zt=fa.hoverLabels;if($n.isUnifiedHover(h)||(ZV(zt,At,o,fa.commonLabelBoundingBox),Fw(zt,At,o._invScaleX,o._invScaleY)),n&&n.tagName){var Oa=Gs.getComponentMethod("annotations","hasClickToShow")(e,ae);FV(Ao.select(n),Oa?"pointer":"")}!n||a||!KV(e,r,Pe)||(Pe&&e.emit("plotly_unhover",{event:r,points:Pe}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:k,yaxes:q,xvals:J,yvals:U}))}function Rw(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var WV=/([\s\S]*)<\/extra>/;function zw(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||ko.HOVERFONT,v=r.fontSize||ko.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,g=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,_=r.fontShadow||a.font.shadow,w=e[0],T=w.xa,b=w.ya,A=n.charAt(0),C=A+"Label",k=w[C];if(k===void 0&&T.type==="multicategory")for(var q=0;qa.width-qe&&(Ce=a.width-qe),Se.attr("d","M"+(Pe-Ce)+",0L"+(Pe-Ce+pt)+","+ue+pt+"H"+qe+"v"+ue+(Or*2+Ke.height)+"H"+-qe+"V"+ue+pt+"H"+(Pe-Ce-pt)+"Z"),Pe=Ce,G.minX=Pe-qe,G.maxX=Pe+qe,T.side==="top"?(G.minY=ae-(Or*2+Ke.height),G.maxY=ae-Or):(G.minY=ae+Or,G.maxY=ae+(Or*2+Ke.height))}else{var or,lr,ar;b.side==="right"?(or="start",lr=1,ar="",Pe=T._offset+T._length):(or="end",lr=-1,ar="-",Pe=T._offset),ae=b._offset+(w.y0+w.y1)/2,Fe.attr("text-anchor",or),Se.attr("d","M0,0L"+ar+pt+","+pt+"V"+(Or+Ke.height/2)+"h"+ar+(Or*2+Ke.width)+"V-"+(Or+Ke.height/2)+"H"+ar+pt+"V-"+pt+"Z"),G.minY=ae-(Or+Ke.height/2),G.maxY=ae+(Or+Ke.height/2),b.side==="right"?(G.minX=Pe+pt,G.maxX=Pe+pt+(Or*2+Ke.width)):(G.minX=Pe-pt-(Or*2+Ke.width),G.maxX=Pe-pt);var Mr=Ke.height/2,Br=R-Ke.top-Mr,et="clip"+a._uid+"commonlabel"+b._id,Qr;if(Pe=0?Xe=He:Oe+ge=0?Xe=Oe:ne+ge=0?cr=Ue:De+Re=0?cr=De:Te+Re=0,(le.idealAlign==="top"||!yt)&&At?(ar-=Br/2,le.anchor="end"):yt?(ar+=Br/2,le.anchor="start"):le.anchor="middle",le.crossPos=ar;else{if(le.pos=ar,yt=lr+Mr/2+qt<=z,At=lr-Mr/2-qt>=0,(le.idealAlign==="left"||!yt)&&At)lr-=Mr/2,le.anchor="end";else if(yt)lr+=Mr/2,le.anchor="start";else{le.anchor="middle";var ua=qt/2,fa=lr+ua-z,zt=lr-ua;fa>0&&(lr-=fa),zt<0&&(lr+=-zt)}le.crossPos=lr}ae.attr("text-anchor",le.anchor),qe&&ue.attr("text-anchor",le.anchor),Se.attr("transform",yy(lr,ar)+(i?zV(Pw):""))}),{hoverLabels:fr,commonLabelBoundingBox:G}}function Cw(e,r,t,a,n,i){var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Tt.templateString(e.name,e.trace._meta)),l=Dw(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l);var f=e.hovertemplate||!1;if(f){var v=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(v[s+"other"]=v[s+"Val"],v[s+"otherLabel"]=v[s+"Label"]),o=Tt.hovertemplateString(f,v,a._d3locale,e.eventData[0]||{},e.trace._meta),o=o.replace(WV,function(h,d){return l=Dw(d,e.nameLength),""})}return[o,l]}function ZV(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,v=a.minX,h=a.maxX,d=a.minY,m=a.maxY,g=function(J){return J*t._invScaleX},y=function(J){return J*t._invScaleY};e.each(function(J){var U=J[n],H=J[i],G=U._id.charAt(0)==="x",K=U.range;f===0&&K&&K[0]>K[1]!==G&&(o=-1);var Q=0,ie=G?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var pe=Nw(J,r),me=J.anchor,Ae=me==="end"?-1:1,re,Le;if(me==="middle")re=J.crossPos+(G?y(pe.y-J.by/2):g(J.bx/2+J.tx2width/2)),Le=re+(G?y(J.by):g(J.bx));else if(G)re=J.crossPos+y(pt+pe.y)-y(J.by/2-pt),Le=re+y(J.by);else{var fe=g(Ae*pt+pe.x),ke=fe+g(Ae*J.bx);re=J.crossPos+Math.min(fe,ke),Le=J.crossPos+Math.max(fe,ke)}G?d!==void 0&&m!==void 0&&Math.min(Le,m)-Math.max(re,d)>1&&(H.side==="left"?(Q=H._mainLinePosition,ie=t.width):ie=H._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(Le,h)-Math.max(re,v)>1&&(H.side==="top"?(Q=H._mainLinePosition,ie=t.height):ie=H._mainLinePosition)}u[f++]=[{datum:J,traceIndex:J.trace.index,dp:0,pos:J.pos,posref:J.posref,size:J.by*(G?BV:1)/2,pmin:Q,pmax:ie}]}),u.sort(function(J,U){return J[0].posref-U[0].posref||o*(U[0].traceIndex-J[0].traceIndex)});var _,w,T,b,A,C,k;function q(J){var U=J[0],H=J[J.length-1];if(w=U.pmin-U.pos-U.dp+U.size,T=H.pos+H.dp+H.size-U.pmax,w>.01){for(A=J.length-1;A>=0;A--)J[A].dp+=w;_=!1}if(!(T<.01)){if(w<-.01){for(A=J.length-1;A>=0;A--)J[A].dp-=T;_=!1}if(_){var G=0;for(b=0;bU.pmax&&G++;for(b=J.length-1;b>=0&&!(G<=0);b--)C=J[b],C.pos>U.pmax-1&&(C.del=!0,G--);for(b=0;b=0;A--)J[A].dp-=T;for(b=J.length-1;b>=0&&!(G<=0);b--)C=J[b],C.pos+C.dp+C.size>U.pmax&&(C.del=!0,G--)}}}for(;!_&&l<=s;){for(l++,_=!0,b=0;b.01){for(A=R.length-1;A>=0;A--)R[A].dp+=w;for(D.push.apply(D,R),u.splice(b+1,1),k=0,A=D.length-1;A>=0;A--)k+=D[A].dp;for(T=k/D.length,A=D.length-1;A>=0;A--)D[A].dp-=T;_=!1}else b++}u.forEach(q)}for(b=u.length-1;b>=0;b--){var I=u[b];for(A=I.length-1;A>=0;A--){var O=I[A],X=O.datum;X.offset=O.dp,X.del=O.del}}}function Nw(e,r){var t=0,a=e.offset;return r&&(a*=-UV,t=e.offset*YV),{x:t,y:a}}function XV(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(pt+Or),a=t+r*(e.txwidth+Or),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Or),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Fw(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=Ao.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,v=XV(l),h=Nw(l,r),d=h.x,m=h.y,g=u==="middle",y="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,_;g?_="M-"+n(l.bx/2+l.tx2width/2)+","+i(m-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":y?_="M0,0L"+n(f*pt+d)+","+i(pt+m)+"v"+i(l.by/2-pt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*pt+d)+"V"+i(m-pt)+"Z":_="M"+n(f*pt+d)+","+i(m-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",_);var w=d+v.textShiftX,T=m+l.ty0-l.by/2+Or,b=l.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),w=g?-l.bx/2-l.tx2width/2+Or:-l.bx-Or):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),w=g?l.bx/2-l.tx2width/2-Or:l.bx+Or)),s.call(kn.positionText,n(w),i(T)),l.tx2width&&(o.select("text.name").call(kn.positionText,n(v.text2ShiftX+v.alignShift*Or+d),i(m+l.ty0-l.by/2+Or)),o.select("rect").call(Ai.setRect,n(v.text2ShiftX+(v.alignShift-1)*l.tx2width/2+d),i(m-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function JV(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(h){return h||Gi(h)&&h===0}var o=Array.isArray(t)?function(h,d){var m=Tt.castOption(n,t,h);return l(m)?m:Tt.extractOption({},a,"",d)}:function(h,d){return Tt.extractOption(i,a,h,d)};function s(h,d,m){var g=o(d,m);l(g)&&(e[h]=g)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Tt.constrain(e.x0,0,e.xa._length),e.x1=Tt.constrain(e.x1,0,e.xa._length),e.y0=Tt.constrain(e.y0,0,e.ya._length),e.y1=Tt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:ki.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:ki.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=ki.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+ki.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=ki.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+ki.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function Lw(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var v=ea.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var h=r.hLinePoint,d,m;u=h&&h.xa,f=h&&h.ya;var g=f.spikesnap;g==="cursor"?(d=l.pointerX,m=l.pointerY):(d=u._offset+h.x,m=f._offset+h.y);var y=Aw.readability(h.color,v)<1.5?ea.contrast(v):h.color,_=f.spikemode,w=f.spikethickness,T=f.spikecolor||y,b=ki.getPxPosition(e,f),A,C;if(_.indexOf("toaxis")!==-1||_.indexOf("across")!==-1){if(_.indexOf("toaxis")!==-1&&(A=b,C=d),_.indexOf("across")!==-1){var k=f._counterDomainMin,q=f._counterDomainMax;f.anchor==="free"&&(k=Math.min(k,f.position),q=Math.max(q,f.position)),A=i.l+k*i.w,C=i.l+q*i.w}a.insert("line",":first-child").attr({x1:A,x2:C,y1:m,y2:m,"stroke-width":w,stroke:T,"stroke-dasharray":Ai.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:A,x2:C,y1:m,y2:m,"stroke-width":w+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}_.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:m,r:w,fill:T}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,R,z;u=D&&D.xa,f=D&&D.ya;var F=u.spikesnap;F==="cursor"?(R=l.pointerX,z=l.pointerY):(R=u._offset+D.x,z=f._offset+D.y);var I=Aw.readability(D.color,v)<1.5?ea.contrast(v):D.color,O=u.spikemode,X=u.spikethickness,J=u.spikecolor||I,U=ki.getPxPosition(e,u),H,G;if(O.indexOf("toaxis")!==-1||O.indexOf("across")!==-1){if(O.indexOf("toaxis")!==-1&&(H=U,G=z),O.indexOf("across")!==-1){var K=u._counterDomainMin,Q=u._counterDomainMax;u.anchor==="free"&&(K=Math.min(K,u.position),Q=Math.max(Q,u.position)),H=i.t+(1-Q)*i.h,G=i.t+(1-K)*i.h}a.insert("line",":first-child").attr({x1:R,x2:R,y1:H,y2:G,"stroke-width":X,stroke:J,"stroke-dasharray":Ai.dashStyle(u.spikedash,X)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:R,x2:R,y1:H,y2:G,"stroke-width":X+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}O.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:R,cy:U-(u.side!=="top"?X:-X),r:X,fill:J}).classed("spikeline",!0)}}}function KV(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function qw(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function Dw(e,r){return kn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function QV(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;l{"use strict";var $V=Ie(),jV=Er(),eW=xi().isUnifiedHover;Ow.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&eW(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=jV.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),$V.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var Yw=Z((vse,Bw)=>{"use strict";var rW=Ie(),tW=J0(),aW=fs();Bw.exports=function(r,t){function a(n,i){return rW.coerce(r,t,aW,n,i)}tW(r,t,a)}});var Vw=Z((hse,Gw)=>{"use strict";var Uw=Ie(),nW=yv(),iW=J0();Gw.exports=function(r,t,a,n){function i(o,s){return Uw.coerce(r,t,nW,o,s)}var l=Uw.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),iW(r,t,i,l)}});var _y=Z((dse,Ww)=>{"use strict";var lW=Ie(),oW=fs();Ww.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:lW.coerce(r,t,oW,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var Jw=Z((pse,Xw)=>{"use strict";var Zw=Ie(),sW=fs(),uW=_y(),fW=J0();Xw.exports=function(r,t){function a(f,v){return Zw.coerce(r,t,sW,f,v)}var n=uW(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("mapbox"),o=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o||s)&&u===1||(l||o)&&s&&u===2)&&(t.dragmode="pan"),fW(r,t,a),Zw.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var $w=Z((mse,Qw)=>{"use strict";var wy=Ie(),Kw=br();Qw.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return wy.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var vW=br(),hW=xy().hover;jw.exports=function(r,t,a){var n=vW.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&hW(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Si=Z((gse,aT)=>{"use strict";var dW=Ir(),K0=Ie(),pW=Qn(),wf=xi(),rT=fs(),tT=xy();aT.exports={moduleType:"component",name:"fx",constants:Yu(),schema:{layout:rT},attributes:yv(),layoutAttributes:rT,supplyLayoutGlobalDefaults:Yw(),supplyDefaults:Vw(),supplyLayoutDefaults:Jw(),calc:$w(),getDistanceFunction:wf.getDistanceFunction,getClosest:wf.getClosest,inbox:wf.inbox,quadrature:wf.quadrature,appendArrayPointValue:wf.appendArrayPointValue,castHoverOption:yW,castHoverinfo:gW,hover:tT.hover,unhover:pW.unhover,loneHover:tT.loneHover,loneUnhover:mW,click:eT()};function mW(e){var r=K0.isD3Selection(e)?e:dW.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function yW(e,r,t){return K0.castOption(e,r,"hoverlabel."+t)}function gW(e,r,t){function a(n){return K0.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return K0.castOption(e,t,"hoverinfo",a)}});var Vs=Z(Vi=>{"use strict";Vi.selectMode=function(e){return e==="lasso"||e==="select"};Vi.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Vi.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Vi.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Vi.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Vi.selectingOrDrawing=function(e){return Vi.freeMode(e)||Vi.rectMode(e)}});var Q0=Z((xse,nT)=>{"use strict";nT.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var $0=Z((_se,iT)=>{"use strict";iT.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var eh=Z((wse,lT)=>{"use strict";var j0=32;lT.exports={CIRCLE_SIDES:j0,i000:0,i090:j0/4,i180:j0/2,i270:j0/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var rh=Z((Tse,sT)=>{"use strict";var bW=Ie().strTranslate;function oT(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function xW(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function _W(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return oT(e,t[r])}}function wW(e){return bW(e.xaxis._offset,e.yaxis._offset)}sT.exports={p2r:oT,r2p:xW,axValue:_W,getTransform:wW}});var Tl=Z(Wi=>{"use strict";var TW=cm(),cT=eh(),Ws=cT.CIRCLE_SIDES,Ty=cT.SQRT2,vT=rh(),uT=vT.p2r,fT=vT.r2p,MW=[0,3,4,5,6,1,2],AW=[0,3,4,1,2];Wi.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var hT=Zt(),gT=Vs(),kW=gT.drawMode,SW=gT.openMode,Zs=eh(),dT=Zs.i000,pT=Zs.i090,mT=Zs.i180,yT=Zs.i270,CW=Zs.cos45,LW=Zs.sin45,bT=rh(),ah=bT.p2r,Ml=bT.r2p,qW=pl(),DW=qW.clearOutline,nh=Tl(),EW=nh.readPaths,PW=nh.writePaths,RW=nh.ellipseOver,zW=nh.fixDatesForPaths;function NW(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!kW(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var FW=Vs(),IW=FW.selectMode,HW=pl(),OW=HW.clearOutline,My=Tl(),BW=My.readPaths,YW=My.writePaths,UW=My.fixDatesForPaths;wT.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,v=t.dragmode,h=(i.layout||{}).selections||[];if(!IW(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";TT.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Al=Z(la=>{"use strict";var So=Mf(),MT=Ie(),lh=dt();la.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};la.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};la.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};la.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};la.extractPathCoords=function(e,r,t){var a=[],n=e.match(So.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.substr(1).match(So.paramRE);if(!(!o||o.lengthd&&(g="X"),g});return u>d&&(m=m.replace(/[\s,]*X.*/,""),MT.log("Ignoring extra params in segment "+s)),f+m})}function Af(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var Sy=Z((Lse,CT)=>{"use strict";var VW=Ie(),Xs=dt(),AT=Ta(),kT=at(),WW=Tl().readPaths,ky=Al(),ZW=ky.getPathString,ST=kv(),XW=Pa().FROM_TL;CT.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=Xs.getFromId(r,a.xref),s=Xs.getFromId(r,a.yref);for(var u in ST){var f=ST[u](a,o,s);f!==void 0&&(l[u]=f)}}i=VW.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,l)}else i=a.label.text;var v={"data-index":t},h=a.label.font,d={"data-notex":1},m=n.append("g").attr(v).classed("shape-label",!0),g=m.append("text").attr(d).classed("shape-label-text",!0).text(i),y,_,w,T;if(a.path){var b=ZW(r,a),A=WW(b,r);y=1/0,w=1/0,_=-1/0,T=-1/0;for(var C=0;C=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function KW(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,v=Math.PI/180*i,h=Math.sin(v),d=Math.cos(v),m=n.label.xanchor,g=n.label.yanchor,y,_,w,T;if(f==="line"){o==="start"?(y=e,_=r):o==="end"?(y=t,_=a):(y=(e+t)/2,_=(r+a)/2),m==="auto"&&(o==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var QW=Ie(),$W=QW.strTranslate,LT=Qn(),ET=Vs(),jW=ET.drawMode,PT=ET.selectMode,RT=br(),qT=Er(),sh=eh(),eZ=sh.i000,rZ=sh.i090,tZ=sh.i180,aZ=sh.i270,nZ=pl(),zT=nZ.clearOutlineControllers,Ly=Tl(),oh=Ly.pointsOnRectangle,Cy=Ly.pointsOnEllipse,iZ=Ly.writePaths,lZ=ih().newShapes,oZ=ih().createShapeObj,sZ=Ay(),uZ=Sy();NT.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(Cy(r[0])||a.hasText)&&o({redrawing:!0})}function o(U){var H={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,H=lZ(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,H=sZ(t,a),i._fullLayout._reselect=!0),Object.keys(H).length&&RT.call((U||{}).redrawing?"relayout":"_guiRelayout",i,H)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,v=jW(f),h=PT(f);(v||h)&&(i._fullLayout._outlining=!0),zT(i),t.attr("d",iZ(r));var d,m,g,y,_;if(!n&&(a.isActiveShape||a.isActiveSelection)){_=fZ([],r);var w=u.append("g").attr("class","outline-controllers");R(w),J()}if(v&&a.hasText){var T=u.select(".label-temp"),b=oZ(t,a,a.dragmode);uZ(i,"label-temp",b,T)}function A(U){g=+U.srcElement.getAttribute("data-i"),y=+U.srcElement.getAttribute("data-j"),d[g][y].moveFn=C}function C(U,H){if(r.length){var G=_[g][y][1],K=_[g][y][2],Q=r[g],ie=Q.length;if(oh(Q)){var pe=U,me=H;if(a.isActiveSelection){var Ae=DT(Q,y);Ae[1]===Q[y][1]?me=0:pe=0}for(var re=0;re1&&!(U.length===2&&U[1][0]==="Z")&&(y===0&&(U[0][0]="M"),r[g]=U,l(),o())}}function D(U,H){if(U===2){g=+H.srcElement.getAttribute("data-i"),y=+H.srcElement.getAttribute("data-j");var G=r[g];!oh(G)&&!Cy(G)&&q()}}function R(U){d=[];for(var H=0;H{"use strict";var vZ=Ir(),YT=br(),FT=Ie(),Js=dt(),hZ=Tl().readPaths,dZ=uh(),ch=Sy(),UT=pl().clearOutlineControllers,qy=Er(),Ey=at(),pZ=ct().arrayEditor,IT=Qn(),HT=wl(),Co=Mf(),$a=Al(),Dy=$a.getPathString;WT.exports={draw:Py,drawOne:GT,eraseActiveShape:gZ,drawLabel:ch};function Py(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;nl&&Ve>o&&!Ne.shiftKey?IT.getCursor(Ue/ze,1-De/Ve):"move";HT(r,He),Le=He.split("-")[0]}}function be(Ne){fh(e)||(s&&(_=Q(t.xanchor)),u&&(w=ie(t.yanchor)),t.type==="path"?z=t.path:(d=s?t.x0:Q(t.x0),m=u?t.y0:ie(t.y0),g=s?t.x1:Q(t.x1),y=u?t.y1:ie(t.y1)),dy?(T=m,k="y0",b=y,q="y1"):(T=y,k="y1",b=m,q="y0"),se(Ne),Me(n,t),Re(r,t,e),re.moveFn=Le==="move"?B:ye,re.altKey=Ne.altKey)}function Y(){fh(e)||(HT(r),ge(n),VT(r,e,t),YT.call("_guiRelayout",e,i.getUpdateObj()))}function ee(){fh(e)||ge(n)}function B(Ne,Ee){if(t.type==="path"){var ze=function(De){return De},Ve=ze,Ue=ze;s?h("xanchor",t.xanchor=pe(_+Ne)):(Ve=function(He){return pe(Q(He)+Ne)},I&&I.type==="date"&&(Ve=$a.encodeDate(Ve))),u?h("yanchor",t.yanchor=me(w+Ee)):(Ue=function(He){return me(ie(He)+Ee)},X&&X.type==="date"&&(Ue=$a.encodeDate(Ue))),h("path",t.path=OT(z,Ve,Ue))}else s?h("xanchor",t.xanchor=pe(_+Ne)):(h("x0",t.x0=pe(d+Ne)),h("x1",t.x1=pe(g+Ne))),u?h("yanchor",t.yanchor=me(w+Ee)):(h("y0",t.y0=me(m+Ee)),h("y1",t.y1=me(y+Ee)));r.attr("d",Dy(e,t)),Me(n,t),ch(e,a,t,F)}function ye(Ne,Ee){if(v){var ze=function(Je){return Je},Ve=ze,Ue=ze;s?h("xanchor",t.xanchor=pe(_+Ne)):(Ve=function(je){return pe(Q(je)+Ne)},I&&I.type==="date"&&(Ve=$a.encodeDate(Ve))),u?h("yanchor",t.yanchor=me(w+Ee)):(Ue=function(je){return me(ie(je)+Ee)},X&&X.type==="date"&&(Ue=$a.encodeDate(Ue))),h("path",t.path=OT(z,Ve,Ue))}else if(f){if(Le==="resize-over-start-point"){var De=d+Ne,He=u?m-Ee:m+Ee;h("x0",t.x0=s?De:pe(De)),h("y0",t.y0=u?He:me(He))}else if(Le==="resize-over-end-point"){var Oe=g+Ne,ne=u?y-Ee:y+Ee;h("x1",t.x1=s?Oe:pe(Oe)),h("y1",t.y1=u?ne:me(ne))}}else{var Te=function(Je){return Le.indexOf(Je)!==-1},Xe=Te("n"),cr=Te("s"),fr=Te("w"),le=Te("e"),Se=Xe?T+Ee:T,Fe=cr?b+Ee:b,We=fr?A+Ne:A,Ge=le?C+Ne:C;u&&(Xe&&(Se=T-Ee),cr&&(Fe=b-Ee)),(!u&&Fe-Se>o||u&&Se-Fe>o)&&(h(k,t[k]=u?Se:me(Se)),h(q,t[q]=u?Fe:me(Fe))),Ge-We>l&&(h(D,t[D]=s?We:pe(We)),h(R,t[R]=s?Ge:pe(Ge)))}r.attr("d",Dy(e,t)),Me(n,t),ch(e,a,t,F)}function Me(Ne,Ee){(s||u)&&ze();function ze(){var Ve=Ee.type!=="path",Ue=Ne.selectAll(".visual-cue").data([0]),De=1;Ue.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var He=Q(s?Ee.xanchor:FT.midRange(Ve?[Ee.x0,Ee.x1]:$a.extractPathCoords(Ee.path,Co.paramIsX))),Oe=ie(u?Ee.yanchor:FT.midRange(Ve?[Ee.y0,Ee.y1]:$a.extractPathCoords(Ee.path,Co.paramIsY)));if(He=$a.roundPositionForSharpStrokeRendering(He,De),Oe=$a.roundPositionForSharpStrokeRendering(Oe,De),s&&u){var ne="M"+(He-1-De)+","+(Oe-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ue.attr("d",ne)}else if(s){var Te="M"+(He-1-De)+","+(Oe-9-De)+"v18 h2 v-18 Z";Ue.attr("d",Te)}else{var Xe="M"+(He-9-De)+","+(Oe-1-De)+"h18 v2 h-18 Z";Ue.attr("d",Xe)}}}function ge(Ne){Ne.selectAll(".visual-cue").remove()}function Re(Ne,Ee,ze){var Ve=Ee.xref,Ue=Ee.yref,De=Js.getFromId(ze,Ve),He=Js.getFromId(ze,Ue),Oe="";Ve!=="paper"&&!De.autorange&&(Oe+=Ve),Ue!=="paper"&&!He.autorange&&(Oe+=Ue),Ey.setClipUrl(Ne,Oe?"clip"+ze._fullLayout._uid+Oe:null,ze)}}function OT(e,r,t){return e.replace(Co.segmentRE,function(a){var n=0,i=a.charAt(0),l=Co.paramIsX[i],o=Co.paramIsY[i],s=Co.numParams[i],u=a.substr(1).replace(Co.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function yZ(e,r){if(vh(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){BT(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=BT,Py(e)}}}function BT(e){if(vh(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(UT(e),delete e._fullLayout._activeShapeIndex,Py(e))}}function gZ(e){if(vh(e)){UT(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Sn=br(),ZT=Nt(),XT=Zt(),Ur=$0(),bZ=hh().eraseActiveShape,dh=Ie(),Nr=dh._,Gr=rM.exports={};Gr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Nr(e,"Download plot as a PNG"):Nr(e,"Download plot")},icon:Ur.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};dh.notifier(Nr(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Sn.call("downloadImage",e,t).then(function(a){dh.notifier(Nr(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){dh.notifier(Nr(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Gr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Ur.disk,click:function(e){ZT.sendDataToCloud(e)}};Gr.editInChartStudio={name:"editInChartStudio",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Ur.pencil,click:function(e){ZT.sendDataToCloud(e)}};Gr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Nr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ur.zoombox,click:Na};Gr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Nr(e,"Pan")},attr:"dragmode",val:"pan",icon:Ur.pan,click:Na};Gr.select2d={name:"select2d",_cat:"select",title:function(e){return Nr(e,"Box Select")},attr:"dragmode",val:"select",icon:Ur.selectbox,click:Na};Gr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Nr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ur.lasso,click:Na};Gr.drawclosedpath={name:"drawclosedpath",title:function(e){return Nr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ur.drawclosedpath,click:Na};Gr.drawopenpath={name:"drawopenpath",title:function(e){return Nr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ur.drawopenpath,click:Na};Gr.drawline={name:"drawline",title:function(e){return Nr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ur.drawline,click:Na};Gr.drawrect={name:"drawrect",title:function(e){return Nr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ur.drawrect,click:Na};Gr.drawcircle={name:"drawcircle",title:function(e){return Nr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ur.drawcircle,click:Na};Gr.eraseshape={name:"eraseshape",title:function(e){return Nr(e,"Erase active shape")},icon:Ur.eraseshape,click:bZ};Gr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Nr(e,"Zoom in")},attr:"zoom",val:"in",icon:Ur.zoom_plus,click:Na};Gr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Nr(e,"Zoom out")},attr:"zoom",val:"out",icon:Ur.zoom_minus,click:Na};Gr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Nr(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ur.autoscale,click:Na};Gr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Nr(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ur.home,click:Na};Gr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Nr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ur.tooltip_basic,gravity:"ne",click:Na};Gr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Nr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ur.tooltip_compare,gravity:"ne",click:Na};function Na(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=XT.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var v=n==="in"?.5:2,h=(1+v)/2,d=(1-v)/2,m,g;for(f=0;f{"use strict";var tM=Ny(),wZ=Object.keys(tM),aM=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],nM=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(aM),Qs=[],TZ=function(e){if(nM.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();Qs.indexOf(r)===-1&&Qs.push(r),Qs.indexOf(t)===-1&&Qs.push(t)}};wZ.forEach(function(e){TZ(tM[e])});Qs.sort();iM.exports={DRAW_MODES:aM,backButtons:nM,foreButtons:Qs}});var Iy=Z((zse,lM)=>{"use strict";var Rse=Fy();lM.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var sM=Z((Nse,oM)=>{"use strict";var MZ=Ie(),kf=Er(),AZ=ct(),kZ=Iy();oM.exports=function(r,t){var a=r.modebar||{},n=AZ.newContainer(t,"modebar");function i(o,s){return MZ.coerce(a,n,kZ,o,s)}i("orientation"),i("bgcolor",kf.addOpacity(t.paper_bgcolor,.5));var l=kf.contrast(kf.rgb(t.modebar.bgcolor));i("color",kf.addOpacity(l,.3)),i("activecolor",kf.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var vM=Z((Fse,cM)=>{"use strict";var Hy=Ir(),SZ=Hr(),mh=Ie(),uM=$0(),CZ=iv().version,LZ=new DOMParser;function fM(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ci=fM.prototype;Ci.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(v){v.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),mh.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Ci.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};Ci.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Ci.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Hy.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||uM.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Ci.createIcon=function(e){var r=SZ(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=LZ.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Ci.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=Hy.select(a),s=function(v,h){var d=r.modebar,m=v.querySelector(".icon path");m&&(h||v.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:mh.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Ci.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var EZ=Zt(),hM=on(),Oy=br(),PZ=xi().isUnifiedHover,RZ=vM(),yh=Ny(),zZ=Fy().DRAW_MODES,NZ=Ie().extendDeep;dM.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=YZ(i):!a.displayModeBar&&a.watermark?l=[]:l=FZ(r),n?n.update(r,l):t._modeBar=RZ(r,l)};function FZ(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(H,G){if(typeof G=="string"){if(G.toLowerCase()===H.toLowerCase())return!0}else{var K=G.name,Q=G._cat||G.name;if(K===H||Q===H.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(H){for(var G=0;G1?(R=["toggleHover"],z=["resetViews"]):v?(D=["zoomInGeo","zoomOutGeo"],R=["hoverClosestGeo"],z=["resetGeo"]):f?(R=["hoverClosest3d"],z=["resetCameraDefault3d","resetCameraLastSave3d"]):g?(D=["zoomInMapbox","zoomOutMapbox"],R=["toggleHover"],z=["resetViewMapbox"]):y?(D=["zoomInMap","zoomOutMap"],R=["toggleHover"],z=["resetViewMap"]):h?R=["hoverClosestPie"]:T?(R=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):R=["toggleHover"],u&&R.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(OZ(t)||A)&&(R=[]),u&&!b&&(D=["zoomIn2d","zoomOut2d","autoScale2d"],z[0]!=="resetViews"&&(z=["resetScale2d"])),f?F=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||m?F=["zoom2d","pan2d"]:g||y||v?F=["pan2d"]:_&&(F=["zoom2d"]),HZ(t)&&F.push("select2d","lasso2d");var I=[],O=function(H){I.indexOf(H)===-1&&R.indexOf(H)!==-1&&I.push(H)};if(Array.isArray(o)){for(var X=[],J=0;J{"use strict";mM.exports={moduleType:"component",name:"modebar",layoutAttributes:Iy(),supplyLayoutDefaults:sM(),manage:pM()}});var Yy=Z((Ose,yM)=>{"use strict";var UZ=Pa().FROM_BL;yM.exports=function(r,t,a){a===void 0&&(a=UZ[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Cf=Z(Sf=>{"use strict";var Lo=Ie(),Uy=hf(),jn=Zt().id2name,GZ=Xn(),gM=Yy(),VZ=b0(),WZ=Gt().ALMOST_EQUAL,ZZ=Pa().FROM_BL;Sf.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,v,h,d,m;for(o=0;oi?t.substr(i):a.substr(n))+l}function JZ(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lWZ*m&&!w)){for(i=0;iF&&KR&&(R=K);var ie=(R-D)/(2*z);v/=ie,D=s.l2r(D),R=s.l2r(R),s.range=s._input.range=C{"use strict";var bh=Ir(),Fa=br(),vn=Nt(),Cn=Ie(),Wy=Ta(),Zy=Q0(),Lf=Er(),$s=at(),wM=cf(),SM=By(),qf=dt(),Zi=Pa(),CM=Cf(),KZ=CM.enforce,QZ=CM.clean,TM=hf().doAutoRange,LM="start",$Z="middle",qM="end",jZ=ya().zindexSeparator;ra.layoutStyles=function(e){return Cn.syncOrAsync([vn.doAutoMargin,rX],e)};function eX(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function rX(e){var r=e._fullLayout,t=r._size,a=t.p,n=qf.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call($s.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),ra.drawMainTitle(e),SM.manage(e),!r._has("cartesian"))return vn.previousPromises(e);function v(be,Y,ee){var B=be._lw/2;if(be._id.charAt(0)==="x"){if(Y){if(ee==="top")return Y._offset-a-B}else return t.t+t.h*(1-(be.position||0))+B%1;return Y._offset+Y._length+a+B}if(Y){if(ee==="right")return Y._offset+Y._length+a+B}else return t.l+t.w*(be.position||0)+B%1;return Y._offset-a-B}for(i=0;i0){iX(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:kM(r.yanchor)}).call(Wy.positionText,l,i);var f=(r.text.match(Wy.BR_TAG_ALL)||[]).length;if(f){var v=Zi.LINE_SPACING*f+Zi.MID_SHIFT;r.y===0&&(v=-v),o.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",y)})}var h=bh.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=o.node().getBBox(),m=d.y+d.height,g=m+wM.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:l,y:g,"text-anchor":a,dy:kM(r.yanchor)}).call(Wy.positionText,l,g)}}}};function tX(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=Cn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return Cn.isTopAnchor(r)&&t==="t"||Cn.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=aX(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function iX(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&tX(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),vn.allowAutoMargin(e,n),vn.autoMargin(e,n,o)}function lX(e,r){var t=e.title,a=e._size,n=0;switch(r===LM?n=t.pad.l:r===qM&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function oX(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===Zi.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function kM(e){return e==="top"?Zi.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Zi.MID_SHIFT+"em"}function sX(e){var r=e.title,t=$Z;return Cn.isRightAnchor(r)?t=qM:Cn.isLeftAnchor(r)&&(t=LM),t}function uX(e){var r=e.title,t="0em";return Cn.isTopAnchor(r)?t=Zi.CAP_SHIFT+"em":Cn.isMiddleAnchor(r)&&(t=Zi.MID_SHIFT+"em"),t}ra.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var fX=Tl().readPaths,cX=uh(),DM=pl().clearOutlineControllers,Xy=Er(),EM=at(),vX=ct().arrayEditor,PM=Al(),hX=PM.getPathString;zM.exports={draw:_h,drawOne:RM,activateLastSelection:mX};function _h(e){var r=e._fullLayout;DM(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var _=l.append("path").attr(s).style("opacity",y?.1:u).call(Xy.stroke,v).call(Xy.fill,f).call(EM.dashLine,y?"solid":d,y?4+h:h);if(dX(_,e,a),m){var w=vX(e.layout,"selections",a);_.style({cursor:"move"});var T={element:_.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=fX(o,e);cX(b,_,T)}else _.style("pointer-events",y?"all":"none");g[y]=_}var A=g[0],C=g[1];C.node().addEventListener("click",function(){return pX(e,A)})}}function dX(e,r,t){var a=t.xref+t.yref;EM.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function pX(e,r){if(wh(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){Jy(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=Jy,_h(e)}}}function mX(e){if(wh(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=Jy,_h(e)}}function Jy(e){if(wh(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(DM(e),delete e._fullLayout._activeSelectionIndex,_h(e))}}});var FM=Z((Gse,NM)=>{function yX(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}NM.exports=yX});var HM=Z((Vse,IM)=>{function gX(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-v)/(o-v)+f-n>e&&(s=!s),l=f,o=v}return s}};return r}IM.exports=gX});var BM=Z((Wse,OM)=>{var bX={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};OM.exports=bX});var UM=Z((Zse,YM)=>{var Df=BM();function xX(e,r,t){function a(m,g){return{id:t?t.segmentId():-1,start:m,end:g,myFill:{above:null,below:null},otherFill:null}}function n(m,g,y){return{id:t?t.segmentId():-1,start:m,end:g,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=Df.create();function l(m,g,y,_,w,T){var b=r.pointsCompare(g,w);return b!==0?b:r.pointsSame(y,T)?0:m!==_?m?1:-1:r.pointAboveOrOnLine(y,_?w:T,_?T:w)?1:-1}function o(m,g){i.insertBefore(m,function(y){var _=l(m.isStart,m.pt,g,y.isStart,y.pt,y.other.pt);return _<0})}function s(m,g){var y=Df.node({isStart:!0,pt:m.start,seg:m,primary:g,other:null,status:null});return o(y,m.end),y}function u(m,g,y){var _=Df.node({isStart:!1,pt:g.end,seg:g,primary:y,other:m,status:null});m.other=_,o(_,m.pt)}function f(m,g){var y=s(m,g);return u(y,m,g),y}function v(m,g){t&&t.segmentChop(m.seg,g),m.other.remove(),m.seg.end=g,m.other.pt=g,o(m.other,m.pt)}function h(m,g){var y=n(g,m.seg.end,m.seg);return v(m,g),f(y,m.primary)}function d(m,g){var y=Df.create();function _(X,J){var U=X.seg.start,H=X.seg.end,G=J.seg.start,K=J.seg.end;return r.pointsCollinear(U,G,K)?r.pointsCollinear(H,G,K)||r.pointAboveOrOnLine(H,G,K)?1:-1:r.pointAboveOrOnLine(U,G,K)?1:-1}function w(X){return y.findTransition(function(J){var U=_(X,J.ev);return U>0})}function T(X,J){var U=X.seg,H=J.seg,G=U.start,K=U.end,Q=H.start,ie=H.end;t&&t.checkIntersection(U,H);var pe=r.linesIntersect(G,K,Q,ie);if(pe===!1){if(!r.pointsCollinear(G,K,Q)||r.pointsSame(G,ie)||r.pointsSame(K,Q))return!1;var me=r.pointsSame(G,Q),Ae=r.pointsSame(K,ie);if(me&&Ae)return J;var re=!me&&r.pointBetween(G,Q,ie),Le=!Ae&&r.pointBetween(K,Q,ie);if(me)return Le?h(J,K):h(X,ie),J;re&&(Ae||(Le?h(J,K):h(X,ie)),h(J,G))}else pe.alongA===0&&(pe.alongB===-1?h(X,Q):pe.alongB===0?h(X,pe.pt):pe.alongB===1&&h(X,ie)),pe.alongB===0&&(pe.alongA===-1?h(J,G):pe.alongA===0?h(J,pe.pt):pe.alongA===1&&h(J,K));return!1}for(var b=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let X=function(){if(k){var J=T(A,k);if(J)return J}return q?T(A,q):!1};var O=X;t&&t.segmentNew(A.seg,A.primary);var C=w(A),k=C.before?C.before.ev:null,q=C.after?C.after.ev:null;t&&t.tempStatus(A.seg,k?k.seg:!1,q?q.seg:!1);var D=X();if(D){if(e){var R;A.seg.myFill.below===null?R=!0:R=A.seg.myFill.above!==A.seg.myFill.below,R&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(D.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var R;A.seg.myFill.below===null?R=!0:R=A.seg.myFill.above!==A.seg.myFill.below,q?A.seg.myFill.below=q.seg.myFill.above:A.seg.myFill.below=m,R?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var z;q?A.primary===q.primary?z=q.seg.otherFill.above:z=q.seg.myFill.above:z=A.primary?g:m,A.seg.otherFill={above:z,below:z}}t&&t.status(A.seg,k?k.seg:!1,q?q.seg:!1),A.other.status=C.insert(Df.node({ev:A}))}else{var F=A.status;if(F===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(F.prev)&&y.exists(F.next)&&T(F.prev.ev,F.next.ev),t&&t.statusRemove(F.ev.seg),F.remove(),!A.primary){var I=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=I}b.push(A.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(m){for(var g,y=m[m.length-1],_=0;_{function _X(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function v(O,X,J){return f.index=O,f.matches_head=X,f.matches_pt1=J,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function Ef(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var wX={union:function(e,r){return Ef(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Ef(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Ef(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Ef(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Ef(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};WM.exports=wX});var JM=Z((Kse,XM)=>{var TX={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var MX=FM(),AX=HM(),KM=UM(),kX=VM(),Pf=ZM(),QM=JM(),Ln=!1,Rf=AX(),ja;ja={buildLog:function(e){return e===!0?Ln=MX():e===!1&&(Ln=!1),Ln===!1?!1:Ln.list},epsilon:function(e){return Rf.epsilon(e)},segments:function(e){var r=KM(!0,Rf,Ln);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=KM(!1,Rf,Ln);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Pf.union(e.combined,Ln),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Pf.intersect(e.combined,Ln),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Pf.difference(e.combined,Ln),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Pf.differenceRev(e.combined,Ln),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Pf.xor(e.combined,Ln),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:kX(e.segments,Rf,Ln),inverted:e.inverted}},polygonFromGeoJSON:function(e){return QM.toPolygon(ja,e)},polygonToGeoJSON:function(e){return QM.fromPolygon(ja,Rf,e)},union:function(e,r){return zf(e,r,ja.selectUnion)},intersect:function(e,r){return zf(e,r,ja.selectIntersect)},difference:function(e,r){return zf(e,r,ja.selectDifference)},differenceRev:function(e,r){return zf(e,r,ja.selectDifferenceRev)},xor:function(e,r){return zf(e,r,ja.selectXor)}};function zf(e,r,t){var a=ja.segments(e),n=ja.segments(r),i=ja.combine(a,n),l=t(i);return ja.polygon(l)}typeof window=="object"&&(window.PolyBool=ja);$M.exports=ja});var rA=Z(($se,eA)=>{eA.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=m>l&&i<(d-v)*(l-h)/(m-h)+v;g&&(o=!o)}return o}});var $y=Z((jse,tA)=>{"use strict";var Qy=Tv().dot,Th=Gt().BADNUM,Mh=tA.exports={};Mh.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||_===Th||_l||g&&u(m))}function v(m,g){var y=m[0],_=m[1];if(y===Th||yn||_===Th||_l)return!1;var w=t.length,T=t[0][0],b=t[0][1],A=0,C,k,q,D,R;for(C=1;CMath.max(k,T)||_>Math.max(q,b)))if(_o||Math.abs(Qy(v,u))>n)return!0;return!1};Mh.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var v=f+1;v1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var nA=Z((eue,aA)=>{"use strict";aA.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var kA=Z((rue,AA)=>{"use strict";var iA=jM(),SX=rA(),If=br(),CX=at().dashStyle,Nf=Er(),LX=Si(),qX=xi().makeEventData,Uf=Vs(),DX=Uf.freeMode,EX=Uf.rectMode,Hf=Uf.drawMode,tg=Uf.openMode,ag=Uf.selectMode,lA=Al(),oA=Mf(),vA=uh(),hA=pl().clearOutline,dA=Tl(),jy=dA.handleEllipse,PX=dA.readPaths,RX=ih().newShapes,zX=Ay(),NX=Ky().activateLastSelection,kh=Ie(),FX=kh.sorterAsc,pA=$y(),Ff=zv(),qn=Zt().getFromId,IX=Q0(),HX=xh().redrawReglTraces,Sh=nA(),Li=Sh.MINSELECT,OX=pA.filter,ng=pA.tester,ig=rh(),sA=ig.p2r,BX=ig.axValue,YX=ig.getTransform;function lg(e){return e.subplot!==void 0}function UX(e,r,t,a,n){var i=!lg(a),l=DX(n),o=EX(n),s=tg(n),u=Hf(n),f=ag(n),v=n==="drawline",h=n==="drawcircle",d=v||h,m=a.gd,g=m._fullLayout,y=f&&g.newselection.mode==="immediate"&&i,_=g._zoomlayer,w=a.element.getBoundingClientRect(),T=a.plotinfo,b=YX(T),A=r-w.left,C=t-w.top;g._calcInverseTransform(m);var k=kh.apply3DTransform(g._invTransform)(A,C);A=k[0],C=k[1];var q=g._invScaleX,D=g._invScaleY,R=A,z=C,F="M"+A+","+C,I=a.xaxes[0],O=a.yaxes[0],X=I._length,J=O._length,U=e.altKey&&!(Hf(n)&&s),H,G,K,Q,ie,pe,me;yA(e,m,a),l&&(H=OX([[A,C]],Sh.BENDPX));var Ae=_.selectAll("path.select-outline-"+T.id).data([1]),re=u?g.newshape:g.newselection;u&&(a.hasText=re.label.text||re.label.texttemplate);var Le=u&&!s?re.fillcolor:"rgba(0,0,0,0)",fe=re.line.color||(i?Nf.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Ae.enter().append("path").attr("class","select-outline select-outline-"+T.id).style({opacity:u?re.opacity/2:1,"stroke-dasharray":CX(re.line.dash,re.line.width),"stroke-width":re.line.width+"px","shape-rendering":"crispEdges"}).call(Nf.stroke,fe).call(Nf.fill,Le).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",F+"Z");var ke=_.append("path").attr("class","zoombox-corners").style({fill:Nf.background,stroke:Nf.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var se=_.select(".label-temp");se.empty()&&(se=_.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var be=g._uid+Sh.SELECTID,Y=[],ee=Ch(m,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var ye=I._id,Me=O._id;wA(m,ye,Me,ee);for(var ge=(m.layout||{}).selections||[],Re=[],Ne=!1,Ee=0;Ee=0){m._fullLayout._deactivateShape(m);return}if(!u){var ge=g.clickmode;Ff.done(be).then(function(){if(Ff.clear(be),ye===2){for(Ae.remove(),ie=0;ie-1&&mA(Me,m,a.xaxes,a.yaxes,a.subplot,a,Ae),ge==="event"&&Yf(m,void 0);LX.click(m,Me,T.id)}).catch(kh.error)}},a.doneFn=function(){ke.remove(),Ff.done(be).then(function(){Ff.clear(be),!y&&Q&&a.selectionDefs&&(Q.subtract=U,a.selectionDefs.push(Q),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,K)),(y||u)&&Of(a,y),a.doneFnCompleted&&a.doneFnCompleted(Y),f&&Yf(m,me)}).catch(kh.error)}}function mA(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,v=[],h,d,m,g,y,_,w,T,b,A;if(XX(o)){yA(e,r,i),h=Ch(r,t,a,n);var C=JX(o,h),k=C.pointNumbers.length>0;if(k?KX(h,C):QX(h)&&(w=fA(C))){for(l&&l.remove(),A=0;A=0}function ZX(e){return e._fullLayout._activeSelectionIndex>=0}function Of(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;WX(n)&&n._fullLayout._deactivateShape(n),ZX(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=Hf(t),s=ag(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=RX(u,e)),f&&If.call("_guiRelayout",n,{shapes:f});var v;s&&!lg(e)&&(v=zX(u,e)),v&&(n._fullLayout._noEmitSelectedAtStart=!0,If.call("_guiRelayout",n,{selections:v}).then(function(){r&&NX(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function uA(e){return e._id}function Ch(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(uA),l=t.map(uA),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function KX(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Bf(e,r,t){var a;for(a=0;a-1&&r;if(!l&&r){var ye=cA(e,!0);if(ye.length){var Me=ye[0].xref,ge=ye[0].yref;if(Me&&ge){var Re=TA(ye),Ne=MA([qn(e,Me,"x"),qn(e,ge,"y")]);Ne(Y,Re)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:B&&Yf(e,Y),h._reselect=!1}if(!l&&h._deselect){var Ee=h._deselect;o=Ee.xref,s=Ee.yref,eJ(o,s,f)||wA(e,o,s,a),B&&(Y.points.length?Yf(e,Y):ug(e)),h._deselect=!1}return{eventData:Y,selectionTesters:t}}function jX(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";SA.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Gf=Z((aue,CA)=>{"use strict";CA.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var js=Z((iue,DA)=>{"use strict";var LA=fg(),qA=ma(),Lh=ya(),iJ=ct().templatedArray,nue=Gf();DA.exports=iJ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:qA({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:LA.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:LA.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Lh.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Lh.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Lh.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Lh.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:qA({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var qh=Z((lue,EA)=>{"use strict";EA.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var RA=Z((oue,PA)=>{"use strict";PA.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var qo=Z((sue,OA)=>{"use strict";var zA=r0().axisHoverFormat,lJ=yi().texttemplateAttrs,oJ=yi().hovertemplateAttrs,NA=sf(),sJ=ma(),uJ=mi().dash,fJ=mi().pattern,cJ=at(),vJ=qh(),Dh=Vt().extendFlat,hJ=RA();function FA(e){return{valType:"any",dflt:0,editType:"calc"}}function IA(e){return{valType:"any",editType:"calc"}}function HA(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}OA.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:FA("x"),yperiod:FA("y"),xperiod0:IA("x0"),yperiod0:IA("y0"),xperiodalignment:HA("x"),yperiodalignment:HA("y"),xhoverformat:zA("x"),yhoverformat:zA("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:lJ({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:oJ({},{keys:vJ.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Dh({},uJ,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:hJ(!0),fillgradient:Dh({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:fJ,marker:Dh({symbol:{valType:"enumerated",values:cJ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Dh({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},NA("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},NA("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:sJ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var cg=Z((fue,UA)=>{"use strict";var BA=js(),YA=qo().line,dJ=mi().dash,Eh=Vt().extendFlat,pJ=pi().overrideAll,mJ=ct().templatedArray,uue=Gf();UA.exports=pJ(mJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Eh({},BA.xref,{}),yref:Eh({},BA.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:YA.color,width:Eh({},YA.width,{min:1,dflt:1}),dash:Eh({},dJ,{dflt:"dot"})}}),"arraydraw","from-root")});var ZA=Z((cue,WA)=>{"use strict";var GA=Ie(),Ph=dt(),yJ=Jn(),gJ=cg(),VA=Al();WA.exports=function(r,t){yJ(r,t,{name:"selections",handleItemDefaults:bJ});for(var a=t.selections,n=0;n{"use strict";XA.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Vf=Z((hue,$A)=>{"use strict";var xJ=br(),KA=Ie(),QA=Zt();$A.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=xJ.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,v=s.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var jA=Ky(),Wf=kA();ek.exports={moduleType:"component",name:"selections",layoutAttributes:cg(),supplyLayoutDefaults:ZA(),supplyDrawNewSelectionDefaults:JA(),includeBasePlot:Vf()("selections"),draw:jA.draw,drawOne:jA.drawOne,reselect:Wf.reselect,prepSelect:Wf.prepSelect,clearOutline:Wf.clearOutline,clearSelectionsCache:Wf.clearSelectionsCache,selectOnClick:Wf.selectOnClick}});var _k=Z((pue,xk)=>{"use strict";var mg=Ir(),Dn=Ie(),rk=Dn.numberFormat,_J=bn(),wJ=Km(),Rh=br(),fk=Dn.strTranslate,TJ=Ta(),tk=Er(),Sl=at(),MJ=Si(),ak=dt(),AJ=wl(),kJ=Qn(),ck=Vs(),zh=ck.selectingOrDrawing,SJ=ck.freeMode,CJ=Pa().FROM_TL,LJ=Q0(),qJ=xh().redrawReglTraces,DJ=Nt(),hg=Zt().getFromId,EJ=eu().prepSelect,PJ=eu().clearOutline,RJ=eu().selectOnClick,vg=Yy(),yg=ya(),nk=yg.MINDRAG,Ya=yg.MINZOOM,ik=!0;function zJ(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,v,h,d,m,g,y,_,w,T,b,A,C,k,q,D,R,z,F,I,O,X,J,U;t+=r.yaxis._shift;function H(){if(v=r.xaxis,h=r.yaxis,T=v._length,b=h._length,_=v._offset,w=h._offset,d={},d[v._id]=v,m={},m[h._id]=h,l&&o)for(var le=r.overlays,Se=0;Se=0){Fe._fullLayout._deactivateShape(Fe);return}var We=Fe._fullLayout.clickmode;if(pg(Fe),le===2&&!f&&Oe(),u)We.indexOf("select")>-1&&RJ(Se,Fe,g,y,r.id,Q),We.indexOf("event")>-1&&MJ.click(Fe,Se,r.id);else if(le===1&&f){var Ge=l?h:v,Je=l==="s"||o==="w"?0:1,je=Ge._name+".range["+Je+"]",vr=NJ(Ge,Je),Ke="left",Pe="middle";if(Ge.fixedrange)return;l?(Pe=l==="n"?"top":"bottom",Ge.side==="right"&&(Ke="right")):o==="e"&&(Ke="right"),Fe._context.showAxisRangeEntryBoxes&&mg.select(K).call(TJ.makeEditable,{gd:Fe,immediate:!0,background:Fe._fullLayout.paper_bgcolor,text:String(vr),fill:Ge.tickfont?Ge.tickfont.color:"#444",horizontalAlign:Ke,verticalAlign:Pe}).on("edit",function(ae){var ue=Ge.d2r(ae);ue!==void 0&&Rh.call("_guiRelayout",Fe,je,ue)})}}kJ.init(Q);var me,Ae,re,Le,fe,ke,se,be,Y,ee;function B(le,Se,Fe){var We=K.getBoundingClientRect();me=Se-We.left,Ae=Fe-We.top,e._fullLayout._calcInverseTransform(e);var Ge=Dn.apply3DTransform(e._fullLayout._invTransform)(me,Ae);me=Ge[0],Ae=Ge[1],re={l:me,r:me,w:0,t:Ae,b:Ae,h:0},Le=e._hmpixcount?e._hmlumcount/e._hmpixcount:_J(e._fullLayout.plot_bgcolor).getLuminance(),fe="M0,0H"+T+"V"+b+"H0V0",ke=!1,se="xy",ee=!1,be=dk(s,Le,_,w,fe),Y=pk(s,_,w)}function ye(le,Se){if(e._transitioningWithDuration)return!1;var Fe=Math.max(0,Math.min(T,J*le+me)),We=Math.max(0,Math.min(b,U*Se+Ae)),Ge=Math.abs(Fe-me),Je=Math.abs(We-Ae);re.l=Math.min(me,Fe),re.r=Math.max(me,Fe),re.t=Math.min(Ae,We),re.b=Math.max(Ae,We);function je(){se="",re.r=re.l,re.t=re.b,Y.attr("d","M0,0Z")}if(A.isSubplotConstrained)Ge>Ya||Je>Ya?(se="xy",Ge/T>Je/b?(Je=Ge*b/T,Ae>We?re.t=Ae-Je:re.b=Ae+Je):(Ge=Je*T/b,me>Fe?re.l=me-Ge:re.r=me+Ge),Y.attr("d",Nh(re))):je();else if(C.isSubplotConstrained)if(Ge>Ya||Je>Ya){se="xy";var vr=Math.min(re.l/T,(b-re.b)/b),Ke=Math.max(re.r/T,(b-re.t)/b);re.l=vr*T,re.r=Ke*T,re.b=(1-vr)*b,re.t=(1-Ke)*b,Y.attr("d",Nh(re))}else je();else!q||Je0){var ae;if(C.isSubplotConstrained||!k&&q.length===1){for(ae=0;ae1&&(je.maxallowed!==void 0&&R===(je.range[0]1&&(vr.maxallowed!==void 0&&z===(vr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function IJ(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function dk(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",fk(t,a)).attr("d",n+"Z")}function pk(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:tk.background,stroke:tk.defaultLine,"stroke-width":1,opacity:0}).attr("transform",fk(r,t)).attr("d","M0,0Z")}function mk(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),yk(e,r,n,i)}function yk(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function pg(e){mg.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function gk(e){ik&&e.data&&e._context.showTips&&(Dn.notifier(Dn._(e,"Double-click to zoom back out"),"long"),ik=!1)}function HJ(e,r){return"M"+(e.l-.5)+","+(r-Ya-.5)+"h-3v"+(2*Ya+1)+"h3ZM"+(e.r+.5)+","+(r-Ya-.5)+"h3v"+(2*Ya+1)+"h-3Z"}function OJ(e,r){return"M"+(r-Ya-.5)+","+(e.t-.5)+"v-3h"+(2*Ya+1)+"v3ZM"+(r-Ya-.5)+","+(e.b+.5)+"v3h"+(2*Ya+1)+"v-3Z"}function Nh(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ya)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function sk(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,v,h=(n||{}).xaHash,d=(n||{}).yaHash,m=0;m{"use strict";var BJ=Ir(),Fh=Si(),YJ=Qn(),UJ=wl(),ei=_k().makeDragBox,ta=ya().DRAGGERSIZE;Ih.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){BJ.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=ei(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Fh.hover(r,h,i)},Fh.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,YJ.unhover(r,h))},r._context.showAxisDragHandles&&(ei(r,l,o._offset-ta,s._offset-ta,ta,ta,"n","w"),ei(r,l,o._offset+o._length,s._offset-ta,ta,ta,"n","e"),ei(r,l,o._offset-ta,s._offset+s._length,ta,ta,"s","w"),ei(r,l,o._offset+o._length,s._offset+s._length,ta,ta,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=ta),ei(r,l,o._offset+o._length*.1,f,o._length*.8,ta,"","ew"),ei(r,l,o._offset,f,o._length*.1,ta,"","w"),ei(r,l,o._offset+o._length*.9,f,o._length*.1,ta,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=ta),ei(r,l,v,s._offset+s._length*.1,ta,s._length*.8,"ns",""),ei(r,l,v,s._offset+s._length*.9,ta,s._length*.1,"s",""),ei(r,l,v,s._offset,ta,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Fh.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Fh.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Ih.updateFx(r)}};Ih.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";UJ(r._draggers,t)}});var Mk=Z((yue,Tk)=>{"use strict";var wk=br();Tk.exports=function(r){for(var t=wk.layoutArrayContainers,a=wk.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var GJ=nl(),bg=wv(),Zf=ro(),VJ=hp().sorterAsc,xg=br();Xf.containerArrayMatch=Mk();var WJ=Xf.isAddVal=function(r){return r==="add"||GJ(r)},Ak=Xf.isRemoveVal=function(r){return r===null||r==="remove"};Xf.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=xg.getComponentMethod(l,"supplyLayoutDefaults"),s=xg.getComponentMethod(l,"draw"),u=xg.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===bg||s===bg,v=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Zf.warn("Full array edits are incompatible with other edits",l);var d=a[""][""];if(Ak(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Zf.warn("Unrecognized full array edit value",l,d),!0;return f?!1:(o(v,h),s(r),!0)}var m=Object.keys(a).map(Number).sort(VJ),g=t.get(),y=g||[],_=i(h,l).get(),w=[],T=-1,b=y.length,A,C,k,q,D,R,z,F;for(A=0;Ay.length-(z?0:1)){Zf.warn("index out of range",l,k);continue}if(R!==void 0)D.length>1&&Zf.warn("Insertion & removal are incompatible with edits to the same index.",l,k),Ak(R)?w.push(k):z?(R==="add"&&(R={}),y.splice(k,0,R),_&&_.splice(k,0,{})):Zf.warn("Unrecognized full object edit value",l,k,R),T===-1&&(T=k);else for(C=0;C=0;A--)y.splice(w[A],1),_&&_.splice(w[A],1);if(y.length?g||t.set(y):t.set(null),f)return!1;if(o(v,h),u!==bg){var I;if(T===-1)I=m;else{for(b=Math.max(y.length,b),I=[],A=0;A=T));A++)I.push(k);for(A=T;A{"use strict";var qk=Hr(),bue=ap(),Dk=br(),en=Ie(),Jf=Nt(),Ek=Zt(),Pk=Er(),Kf=Ek.cleanId,ZJ=Ek.getFromTrace,_g=Dk.traceIs;ri.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&en.log("Clearing previous rejected promises from queue."),e._promises=[]};ri.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Jf.subplotsRegistry.cartesian||{}).attrRegex,n=(Jf.subplotsRegistry.polar||{}).attrRegex,i=(Jf.subplotsRegistry.ternary||{}).attrRegex,l=(Jf.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),Pk.clean(e),e.template&&e.template.layout&&ri.cleanLayout(e.template.layout),e};function ru(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=Kf(t,a,!0))}ri.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}ri.hasParent=function(e,r){for(var t=Lk(r);t;){if(t in e)return!0;t=Lk(t)}return!1};var KJ=["x","y","z"];ri.clearAxisTypes=function(e,r,t){for(var a=0;a{"use strict";var Yh=Ir(),QJ=Hr(),$J=Sp(),Qe=Ie(),ut=Qe.nestedProperty,Mg=rf(),Ua=v6(),En=br(),Jh=As(),xr=Nt(),Ia=dt(),jJ=Jm(),eK=Xn(),wg=at(),rK=Er(),tK=gg().initInteractions,aK=fo(),nK=eu().clearOutline,Hk=eo().dfltConfig,Oh=kk(),Bt=Rk(),jr=xh(),Cl=pi(),iK=ya().AX_NAME_PATTERN,Tg=0,zk=5;function lK(e,r,t,a){var n;if(e=Qe.getGraphDiv(e),Mg.init(e),Qe.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=Mg.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!Qe.isPlotDiv(e)&&Qe.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Yr.addFrames(e,n)}Bk(e,a),t||(t={}),Yh.select(e).classed("js-plotly-plot",!0),wg.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Bt.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Bt.cleanLayout(t)),xr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(LK(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),wg.initGradients(e),wg.initPatterns(e),s&&Ia.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&xr.doCalcdata(e);for(var h=0;h=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function Yk(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Gh(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Gh(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function cK(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof q.parts[z]!="string";)z--;var F=q.parts[z],I=q.parts[z-1]+"."+F,O=q.parts.slice(0,z).join("."),X=ut(e.layout,O).get(),J=ut(a,O).get(),U=q.get();if(D!==void 0){_[k]=D,w[k]=F==="reverse"?D:Xi(U);var H=Jh.getLayoutValObject(a,q.parts);if(H&&H.impliedEdits&&D!==null)for(var G in H.impliedEdits)T(Qe.relativeAttr(k,G),H.impliedEdits[G]);if(["width","height"].indexOf(k)!==-1)if(D){T("autosize",null);var K=k==="height"?"width":"height";T(K,a[K])}else a[k]=e._initialAutoSize[k];else if(k==="autosize")T("width",D?null:a.width),T("height",D?null:a.height);else if(I.match(Qk))C(I),ut(a,O+"._inputRange").set(null);else if(I.match($k)){C(I),ut(a,O+"._inputRange").set(null);var Q=ut(a,O).get();Q._inputDomain&&(Q._input.domain=Q._inputDomain.slice())}else I.match(pK)&&ut(a,O+"._inputDomain").set(null);if(F==="type"){A=X;var ie=J.type==="linear"&&D==="log",pe=J.type==="log"&&D==="linear";if(ie||pe){if(!A||!A.range)T(O+".autorange",!0);else if(J.autorange)ie&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var me=A.range[0],Ae=A.range[1];ie?(me<=0&&Ae<=0&&T(O+".autorange",!0),me<=0?me=Ae/1e6:Ae<=0&&(Ae=me/1e6),T(O+".range[0]",Math.log(me)/Math.LN10),T(O+".range[1]",Math.log(Ae)/Math.LN10)):(T(O+".range[0]",Math.pow(10,me)),T(O+".range[1]",Math.pow(10,Ae)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[q.parts[0]]&&q.parts[1]==="radialaxis"&&delete a[q.parts[0]]._subplot.viewInitial["radialaxis.range"],En.getComponentMethod("annotations","convertCoords")(e,J,D,T),En.getComponentMethod("images","convertCoords")(e,J,D,T)}else T(O+".autorange",!0),T(O+".range",null);ut(a,O+"._inputRange").set(null)}else if(F.match(iK)){var re=ut(a,k).get(),Le=(D||{}).type;(!Le||Le==="-")&&(Le="linear"),En.getComponentMethod("annotations","convertCoords")(e,re,Le,T),En.getComponentMethod("images","convertCoords")(e,re,Le,T)}var fe=Oh.containerArrayMatch(k);if(fe){f=fe.array,v=fe.index;var ke=fe.property,se=H||{editType:"calc"};v!==""&&ke===""&&(Oh.isAddVal(D)?w[k]=null:Oh.isRemoveVal(D)?w[k]=(ut(t,f).get()||[])[v]:Qe.warn("unrecognized full object value",r)),Cl.update(y,se),u[f]||(u[f]={});var be=u[f][v];be||(be=u[f][v]={}),be[ke]=D,delete r[k]}else F==="reverse"?(X.range?X.range.reverse():(T(O+".autorange",!0),X.range=[1,0]),J.autorange?y.calc=!0:y.plot=!0):(k==="dragmode"&&(D===!1&&U!==!1||D!==!1&&U===!1)||a._has("scatter-like")&&a._has("regl")&&k==="dragmode"&&(D==="lasso"||D==="select")&&!(U==="lasso"||U==="select")?y.plot=!0:H?Cl.update(y,H):y.calc=!0,q.set(D))}}for(f in u){var Y=Oh.applyContainerArrayChanges(e,i(t,f),u[f],y,i);Y||(y.plot=!0)}for(var ee in b){A=Ia.getFromId(e,ee);var B=A&&A._constraintGroup;if(B){y.calc=!0;for(var ye in B)b[ye]||(Ia.getFromId(e,ye)._constraintShrinkable=!0)}}(eS(e)||r.height||r.width)&&(y.plot=!0);var Me=a.shapes;for(v=0;v1;)if(a.pop(),t=ut(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function gK(e,r){for(var t=0;t[X,e._ev.listeners(X)]);i=Yr.newPlot(e,r,t,a).then(()=>{for(let[X,J]of O)J.forEach(U=>e.on(X,U));return Yr.react(e,r,t,a)})}else{e.data=r||[],Bt.cleanData(e.data),e.layout=t||{},Bt.cleanLayout(e.layout),xK(e.data,e.layout,o,s),xr.supplyDefaults(e,{skipUpdateCalc:!0});var h=e._fullData,d=e._fullLayout,m=d.datarevision===void 0,g=d.transition,y=TK(e,s,d,m,g),_=y.newDataRevision,w=wK(e,o,h,m,g,_);if(eS(e)&&(y.layoutReplot=!0),w.calc||y.calc){e.calcdata=void 0;for(var T=Object.getOwnPropertyNames(d),b=0;b(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function wK(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=Cl.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(d){var m=Jh.getTraceValObject(u,d);return!u._module.animatable&&m.anim&&(m.anim=!1),m}var v={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},h={};for(s=0;s=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var v=0;return function(){if(u&&++v===f)return u()}}return new Promise(function(u,f){function v(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var F=a._frameQueue.pop();F.onInterrupt&&F.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(F){if(F.length!==0){for(var I=0;Ia._timeToNext&&m()};F()}var y=0;function _(F){return Array.isArray(n)?y>=n.length?F.transitionOpts=n[y]:F.transitionOpts=n[0]:F.transitionOpts=n,y++,F}var w,T,b=[],A=r==null,C=Array.isArray(r),k=!A&&!C&&Qe.isPlainObject(r);if(k)b.push({type:"object",data:_(Qe.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(w=0;w0&&RR)&&z.push(T);b=z}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function AK(e,r,t){if(e=Qe.getGraphDiv(e),r==null)return Promise.resolve();if(!Qe.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],v={};for(a=r.length-1;a>=0;a--)if(Qe.isPlainObject(r[a])){var h=r[a].name,d=(s[h]||v[h]||{}).name,m=r[a].name,g=s[d]||v[d];d&&m&&typeof m=="number"&&g&&Tgq.index?-1:k.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Qe.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=xr.modifyFrames,s=xr.modifyFrames,u=[e,l],f=[e,i];return Ua&&Ua.add(e,o,u,s,f),xr.modifyFrames(e,i)}function SK(e){e=Qe.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return xr.cleanPlot([],{},t,r),xr.purge(e),Mg.purge(e),r._container&&r._container.remove(),delete e._context,e}function CK(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Qe.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Qe.inverseTransformMatrix(Qe.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function LK(e){var r=Yh.select(e),t=e._fullLayout;if(t._calcInverseTransform=CK,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Yh.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Qe.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(aK.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Yr.animate=MK;Yr.addFrames=AK;Yr.deleteFrames=kK;Yr.addTraces=Zk;Yr.deleteTraces=Xk;Yr.extendTraces=Vk;Yr.moveTraces=Ag;Yr.prependTraces=Wk;Yr.newPlot=fK;Yr._doPlot=lK;Yr.purge=SK;Yr.react=_K;Yr.redraw=uK;Yr.relayout=Qf;Yr.restyle=Vh;Yr.setPlotConfig=oK;Yr.update=Zh;Yr._guiRelayout=Sg(Qf);Yr._guiRestyle=Sg(Vh);Yr._guiUpdate=Sg(Zh);Yr._storeDirectGUIEdit=dK});var Do=Z(qi=>{"use strict";var qK=br();qi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};qi.getRedrawFunc=function(e){return function(){qK.getComponentMethod("colorbar","draw")(e)}};qi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};qi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var rS=window.URL||window.webkitURL;qi.createObjectURL=function(e){return rS.createObjectURL(e)};qi.revokeObjectURL=function(e){return rS.revokeObjectURL(e)};qi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=DK(window.atob(e));return new window.Blob([t],{type:"image/"+r})};qi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function DK(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var qg=Ir(),Tue=Ie(),EK=at(),PK=Er(),Mue=fo(),Lg=/"/g,jf="TOBESTRIPPED",RK=new RegExp('("'+jf+")|("+jf+'")',"g");function zK(e){var r=qg.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function NK(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}tS.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(EK.setRect,0,0,o,s).call(PK.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var FK=Ie(),IK=Yv().EventEmitter,ec=Do();function HK(e){var r=e.emitter||new IK,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,v=e.height||150,h=u*f,d=u*v,m=s.getContext("2d",{willReadFrequently:!0}),g=new i,y,_;o==="svg"||FK.isSafari()?_=ec.encodeSVG(l):(y=ec.createBlob(l,"svg"),_=ec.createObjectURL(y)),s.width=h,s.height=d,g.onload=function(){var w;switch(y=null,ec.revokeObjectURL(_),o!=="svg"&&m.drawImage(g,0,0,h,d),o){case"jpeg":w=s.toDataURL("image/jpeg");break;case"png":w=s.toDataURL("image/png");break;case"webp":w=s.toDataURL("image/webp");break;case"svg":w=_;break;default:var T="Image format is not jpeg, png, svg or webp.";if(n(new Error(T)),!e.promise)return r.emit("error",T)}a(w),e.promise||r.emit("success",w)},g.onerror=function(w){if(y=null,ec.revokeObjectURL(_),n(w),!e.promise)return r.emit("error",w)},g.src=_});return e.promise?t:r}aS.exports=HK});var Eg=Z((Sue,lS)=>{"use strict";var nS=Hr(),iS=Cg(),OK=Nt(),Di=Ie(),rc=Do(),BK=Qh(),YK=$h(),UK=iv().version,Dg={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function GK(e,r){r=r||{};var t,a,n,i;Di.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Di.getGraphDiv(e),t=Di.extendDeep([],e.data),a=Di.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(C){return!(C in r)||Di.validate(r[C],Dg[C])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Di.join2(Dg.format.values,", "," or ")+".");var o={};function s(C,k){return Di.coerce(r,o,Dg,C,k)}var u=s("format"),f=s("width"),v=s("height"),h=s("scale"),d=s("setBackground"),m=s("imageDataOnly"),g=document.createElement("div");g.style.position="absolute",g.style.left="-5000px",document.body.appendChild(g);var y=Di.extendFlat({},a);f?y.width=f:r.width===null&&nS(i.width)&&(y.width=i.width),v?y.height=v:r.height===null&&nS(i.height)&&(y.height=i.height);var _=Di.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),w=rc.getRedrawFunc(g);function T(){return new Promise(function(C){setTimeout(C,rc.getDelay(g._fullLayout))})}function b(){return new Promise(function(C,k){var q=BK(g,u,h),D=g._fullLayout.width,R=g._fullLayout.height;function z(){iS.purge(g),document.body.removeChild(g)}if(u==="full-json"){var F=OK.graphJson(g,!1,"keepdata","object",!0,!0);return F.version=UK,F=JSON.stringify(F),z(),C(m?F:rc.encodeJSON(F))}if(z(),u==="svg")return C(m?q:rc.encodeSVG(q));var I=document.createElement("canvas");I.id=Di.randstr(),YK({format:u,width:D,height:R,scale:h,canvas:I,svg:q,promise:!0}).then(C).catch(k)})}function A(C){return m?C.replace(rc.IMAGE_URL_PREFIX,""):C}return new Promise(function(C,k){iS.newPlot(g,t,y,_).then(w).then(T).then(b).then(function(q){C(A(q))}).catch(function(q){k(q)})})}lS.exports=GK});var uS=Z((Cue,sS)=>{"use strict";var Pn=Ie(),VK=Nt(),WK=As(),ZK=eo().dfltConfig,ti=Pn.isPlainObject,Po=Array.isArray,Pg=Pn.isArrayOrTypedArray;sS.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=WK.get(),n=[],i={_context:Pn.extendFlat({},ZK)},l,o;Po(r)?(i.data=Pn.extendDeep([],r),l=r):(i.data=[],l=[],n.push(aa("array","data"))),ti(t)?(i.layout=Pn.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(aa("object","layout"))),VK.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fv.length&&a.push(aa("unused",n,u.concat(v.length)));var _=v.length,w=Array.isArray(y);w&&(_=Math.min(_,y.length));var T,b,A,C,k;if(h.dimensions===2)for(b=0;b<_;b++)if(Po(f[b])){f[b].length>v[b].length&&a.push(aa("unused",n,u.concat(b,v[b].length)));var q=v[b].length;for(T=0;T<(w?Math.min(q,y[b].length):q);T++)A=w?y[b][T]:y,C=f[b][T],k=v[b][T],Pn.validate(C,A)?k!==C&&k!==+C&&a.push(aa("dynamic",n,u.concat(b,T),C,k)):a.push(aa("value",n,u.concat(b,T),C))}else a.push(aa("array",n,u.concat(b),f[b]));else for(b=0;b<_;b++)A=w?y[b]:y,C=f[b],k=v[b],Pn.validate(C,A)?k!==C&&k!==+C&&a.push(aa("dynamic",n,u.concat(b),C,k)):a.push(aa("value",n,u.concat(b),C))}else if(h.items&&!m&&Po(f)){var D=y[Object.keys(y)[0]],R=[],z,F;for(z=0;z{"use strict";var eQ=Ie(),ed=Do();function rQ(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=ed.createBlob(e,t),u=ed.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),ed.revokeObjectURL(u),s=null,l(r);if(eQ.isSafari()){var f=t==="svg"?",":";base64,";return ed.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}fS.exports=rQ});var Rg=Z((Due,hS)=>{"use strict";var vS=Ie(),tQ=Eg(),aQ=cS(),que=Do();function nQ(e,r){var t;return vS.isPlainObject(e)||(t=vS.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=tQ(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),aQ(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}hS.exports=nQ});var gS=Z(zg=>{"use strict";var rn=Ie(),tn=rn.isPlainObject,dS=As(),pS=Nt(),iQ=Gn(),mS=ct(),yS=eo().dfltConfig;zg.makeTemplate=function(e){e=rn.isPlainObject(e)?e:rn.getGraphDiv(e),e=rn.extendDeep({_context:yS},{data:e.data,layout:e.layout}),pS.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var m={};tc(d,m,oQ.bind(null,d));var g=rn.coerce(d,{},iQ,"type"),y=a.data[g];y||(y=a.data[g]=[]),y.push(m)}),tc(t,a.layout,lQ.bind(null,t)),delete a.layout.template;var n=t.template;if(tn(n)){var i=n.layout,l,o,s,u,f,v;tn(i)&&rd(i,a.layout);var h=n.data;if(tn(h)){for(o in a.data)if(s=h[o],Array.isArray(s)){for(f=a.data[o],v=f.length,u=s.length,l=0;l_?l.push({code:"unused",traceType:d,templateCount:y,dataCount:_}):_>y&&l.push({code:"reused",traceType:d,templateCount:y,dataCount:_})}}function w(T,b){for(var A in T)if(A.charAt(0)!=="_"){var C=T[A],k=Rn(T,A,b);tn(C)?(Array.isArray(T)&&C._template===!1&&C.templateitemname&&l.push({code:"missing",path:k,templateitemname:C.templateitemname}),w(C,k)):Array.isArray(C)&&sQ(C)&&w(C,k)}}if(w({data:s,layout:o},""),l.length)return l.map(uQ)};function sQ(e){for(var r=0;r{"use strict";var Jt=Cg();mt._doPlot=Jt._doPlot;mt.newPlot=Jt.newPlot;mt.restyle=Jt.restyle;mt.relayout=Jt.relayout;mt.redraw=Jt.redraw;mt.update=Jt.update;mt._guiRestyle=Jt._guiRestyle;mt._guiRelayout=Jt._guiRelayout;mt._guiUpdate=Jt._guiUpdate;mt._storeDirectGUIEdit=Jt._storeDirectGUIEdit;mt.react=Jt.react;mt.extendTraces=Jt.extendTraces;mt.prependTraces=Jt.prependTraces;mt.addTraces=Jt.addTraces;mt.deleteTraces=Jt.deleteTraces;mt.moveTraces=Jt.moveTraces;mt.purge=Jt.purge;mt.addFrames=Jt.addFrames;mt.deleteFrames=Jt.deleteFrames;mt.animate=Jt.animate;mt.setPlotConfig=Jt.setPlotConfig;var fQ=Wu().getGraphDiv,cQ=hh().eraseActiveShape;mt.deleteActiveShape=function(e){return cQ(fQ(e))};mt.toImage=Eg();mt.validate=uS();mt.downloadImage=Rg();var bS=gS();mt.makeTemplate=bS.makeTemplate;mt.validateTemplate=bS.validateTemplate});var Fg=Z((Rue,_S)=>{"use strict";var Ng=Ie(),vQ=br();_S.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=vQ.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Ng.minRowLength(i);l?o=Math.min(u,Ng.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=Ng.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var Ig=Z((zue,MS)=>{"use strict";var wS=Ie().dateTick0,hQ=Gt(),dQ=hQ.ONEWEEK;function TS(e,r){return e%dQ===0?wS(r,1):wS(r,0)}MS.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",TS(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",TS(o,t.ycalendar)),n("yperiodalignment"))}}});var SS=Z((Nue,kS)=>{"use strict";var AS=["orientation","groupnorm","stackgaps"];kS.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var CS=Er(),LS=Tn().hasColorscale,qS=Ls(),pQ=on();DS.exports=function(r,t,a,n,i,l){var o=pQ.isBubble(r),s=(r.line||{}).color,u;if(l=l||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),LS(r,"marker")&&qS(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=CS.background:u=CS.defaultLine,i("marker.line.color",u),LS(r,"marker.line")&&qS(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0)),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var RS=Z((Iue,PS)=>{"use strict";var mQ=Ie().isArrayOrTypedArray,yQ=Tn().hasColorscale,gQ=Ls();PS.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),yQ(r,"line"))gQ(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(mQ(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var NS=Z((Hue,zS)=>{"use strict";zS.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var IS=Z((Oue,FS)=>{"use strict";var bQ=Ie();FS.exports=function(e,r,t,a,n){n=n||{},a("textposition"),bQ.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var BS=Z((Bue,OS)=>{"use strict";var ad=Er(),HS=Ie().isArrayOrTypedArray;function xQ(e){for(var r=ad.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var YS=Ie(),_Q=br(),wQ=qo(),TQ=qh(),tu=on(),MQ=Fg(),AQ=Ig(),kQ=SS(),SQ=ES(),CQ=RS(),US=NS(),LQ=IS(),qQ=BS(),DQ=Ie().coercePattern;GS.exports=function(r,t,a,n){function i(d,m){return YS.coerce(r,t,wQ,d,m)}var l=MQ(r,t,n,i);if(l||(t.visible=!1),!!t.visible){AQ(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=kQ(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var EQ=Cf().getAxisGroup;WS.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=EQ(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),v=u[s];v||(v=u[s]={});var h=v[f];h?h.traces.push(t):h=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var d=n("offsetgroup")||"",m=h.offsetGroups,g=m[d];t._offsetIndex=0,(i!=="group"||d)&&(g||(g=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=g.offsetIndex)}});var XS=Z((Gue,ZS)=>{"use strict";var PQ=Ie(),RQ=Hg(),zQ=qo();ZS.exports=function(r,t){var a,n,i,l=t.scattermode;function o(h){return PQ.coerce(n._input,n,zQ,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===s.xaxis&&v.yaxis===s.yaxis){v.opacity=void 0;break}}}}}});var KS=Z((Vue,JS)=>{"use strict";var NQ=Ie(),FQ=Zv();JS.exports=function(e,r){function t(n,i){return NQ.coerce(e,r,FQ,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Og=Z((Wue,$S)=>{"use strict";var IQ=Hr(),QS=Ie(),HQ=QS.dateTime2ms,nd=QS.incrementMonth,OQ=Gt(),BQ=OQ.ONEAVGMONTH;$S.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(IQ(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",v=i==="end",h=r[a+"period0"],d=HQ(h,u)||0,m=[],g=[],y=[],_=n.length,w=0;w<_;w++){var T=n[w],b,A,C;if(o){for(b=Math.round((T-d)/(o*BQ)),C=nd(d,o*b,u);C>T;)C=nd(C,-o,u);for(;C<=T;)C=nd(C,o,u);A=nd(C,-o,u)}else{for(b=Math.round((T-d)/l),C=d+b*l;C>T;)C-=l;for(;C<=T;)C+=l;A=C-l}m[w]=f?A:v?C:(A+C)/2,g[w]=A,y[w]=C}return{vals:m,starts:g,ends:y}}});var rC=Z((Zue,eC)=>{"use strict";var Bg=Tn().hasColorscale,Yg=i0(),jS=on();eC.exports=function(r,t){jS.hasLines(t)&&Bg(t,"line")&&Yg(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),jS.hasMarkers(t)&&(Bg(t,"marker")&&Yg(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Bg(t,"marker.line")&&Yg(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Ug=Z((Xue,tC)=>{"use strict";var St=Ie();tC.exports=function(r,t){for(var a=0;a{"use strict";var aC=Ie();nC.exports=function(r,t){aC.isArrayOrTypedArray(t.selectedpoints)&&aC.tagSelected(r,t)}});var Jg=Z((Kue,cC)=>{"use strict";var iC=Hr(),Wg=Ie(),ac=dt(),lC=Og(),Vg=Gt().BADNUM,Zg=on(),YQ=rC(),UQ=Ug(),GQ=Gg();function VQ(e,r){var t=e._fullLayout,a=r._xA=ac.getFromId(e,r.xaxis||"x","x"),n=r._yA=ac.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=lC(r,a,"x",i),s=lC(r,n,"y",l),u=o.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=Xg(r,t,a,n),g=!1,y,_,w,T,b,A;uC(t,r);var C="x",k="y",q;if(m)Wg.pushUnique(m.traceIndices,r.index),y=m.orientation==="v",y?(k="s",q="x"):(C="s",q="y"),b=m.stackgaps==="interpolate";else{var D=sC(r,v);oC(e,r,a,n,u,f,D)}var R=!!r.xperiodalignment,z=!!r.yperiodalignment;for(_=0;__&&h[T].gap;)T--;for(A=h[T].s,w=h.length-1;w>T;w--)h[w].s=A;for(;_{"use strict";vC.exports=id;var WQ=Ie().distinctVals;function id(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var zn=Hr(),Ll=Ie().isArrayOrTypedArray,au=Gt().BADNUM,ZQ=br(),nc=dt(),XQ=Cf().getAxisGroup,ld=hC();function JQ(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!zn(o))}for(var f=0;f{"use strict";var gC=Jg(),bC=e2().setGroupPositions;function o$(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uD[f]&&f{"use strict";var u$=at(),AC=Gt(),ic=AC.BADNUM,kC=AC.LOG_CLIP,wC=kC+.5,TC=kC-.5,od=Ie(),f$=od.segmentsIntersect,MC=od.constrain,t2=qh();SC.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,v=a.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,g=m==="linear",y=a.fill&&a.fill!=="none",_=[],w=t2.minTolerance,T=r.length,b=new Array(T),A=0,C,k,q,D,R,z,F,I,O,X,J,U,H,G,K,Q;function ie(Pe){var ae=r[Pe];if(!ae)return!1;var ue=t.linearized?n.l2p(ae.x):n.c2p(ae.x),qe=t.linearized?i.l2p(ae.y):i.c2p(ae.y);if(ue===ic){if(l&&(ue=n.c2p(ae.x,!0)),ue===ic)return!1;o&&qe===ic&&(ue*=Math.abs(n._m*u*(n._m>0?wC:TC)/(i._m*s*(i._m>0?wC:TC)))),ue*=1e3}if(qe===ic){if(o&&(qe=i.c2p(ae.y,!0)),qe===ic)return!1;qe*=1e3}return[ue,qe]}function pe(Pe,ae,ue,qe){var Ce=ue-Pe,or=qe-ae,lr=.5-Pe,ar=.5-ae,Mr=Ce*Ce+or*or,Br=Ce*lr+or*ar;if(Br>0&&Br1||Math.abs(lr.y-ue[0][1])>1)&&(lr=[lr.x,lr.y],qe&&Le(lr,Pe)se||Pe[1]Y)return[MC(Pe[0],ke,se),MC(Pe[1],be,Y)]}function Ve(Pe,ae){if(Pe[0]===ae[0]&&(Pe[0]===ke||Pe[0]===se)||Pe[1]===ae[1]&&(Pe[1]===be||Pe[1]===Y))return!0}function Ue(Pe,ae){var ue=[],qe=ze(Pe),Ce=ze(ae);return qe&&Ce&&Ve(qe,Ce)||(qe&&ue.push(qe),Ce&&ue.push(Ce)),ue}function De(Pe,ae,ue){return function(qe,Ce){var or=ze(qe),lr=ze(Ce),ar=[];if(or&&lr&&Ve(or,lr))return ar;or&&ar.push(or),lr&&ar.push(lr);var Mr=2*od.constrain((qe[Pe]+Ce[Pe])/2,ae,ue)-((or||qe)[Pe]+(lr||Ce)[Pe]);if(Mr){var Br;or&&lr?Br=Mr>0==or[Pe]>lr[Pe]?or:lr:Br=or||lr,Br[Pe]+=Mr}return ar}}var He;m==="linear"||m==="spline"?He=Ee:m==="hv"||m==="vh"?He=Ue:m==="hvh"?He=De(0,ke,se):m==="vhv"&&(He=De(1,be,Y));function Oe(Pe,ae){var ue=ae[0]-Pe[0],qe=(ae[1]-Pe[1])/ue,Ce=(Pe[1]*ae[0]-ae[1]*Pe[0])/ue;return Ce>0?[qe>0?ke:se,Y]:[qe>0?se:ke,be]}function ne(Pe){var ae=Pe[0],ue=Pe[1],qe=ae===b[A-1][0],Ce=ue===b[A-1][1];if(!(qe&&Ce))if(A>1){var or=ae===b[A-2][0],lr=ue===b[A-2][1];qe&&(ae===ke||ae===se)&&or?lr?A--:b[A-1]=Pe:Ce&&(ue===be||ue===Y)&&lr?or?A--:b[A-1]=Pe:b[A++]=Pe}else b[A++]=Pe}function Te(Pe){b[A-1][0]!==Pe[0]&&b[A-1][1]!==Pe[1]&&ne([Me,ge]),ne(Pe),Re=null,Me=ge=0}var Xe=od.isArrayOrTypedArray(v);function cr(Pe){if(Pe&&f&&(Pe.i=C,Pe.d=r,Pe.trace=a,Pe.marker=Xe?v[Pe.i]:v,Pe.backoff=f),me=Pe[0]/s,Ae=Pe[1]/u,B=Pe[0]se?se:0,ye=Pe[1]Y?Y:0,B||ye){if(!A)b[A++]=[B||Pe[0],ye||Pe[1]];else if(Re){var ae=He(Re,Pe);ae.length>1&&(Te(ae[0]),b[A++]=ae[1])}else Ne=He(b[A-1],Pe)[0],b[A++]=Ne;var ue=b[A-1];B&&ye&&(ue[0]!==B||ue[1]!==ye)?(Re&&(Me!==B&&ge!==ye?ne(Me&&ge?Oe(Re,Pe):[Me||B,ge||ye]):Me&&ge&&ne([Me,ge])),ne([B,ye])):Me-B&&ge-ye&&ne([B||Me,ye||ge]),Re=Pe,Me=B,ge=ye}else Re&&Te(He(Re,Pe)[0]),b[A++]=Pe}for(C=0;Cre(z,fr))break;q=z,H=O[0]*I[0]+O[1]*I[1],H>J?(J=H,D=z,F=!1):H=r.length||!z)break;cr(z),k=z}}Re&&ne([Me||Re[0],ge||Re[1]]),_.push(b.slice(0,A))}var le=m.slice(m.length-1);if(f&&le!=="h"&&le!=="v"){for(var Se=!1,Fe=-1,We=[],Ge=0;Ge<_.length;Ge++)for(var Je=0;Je<_[Ge].length-1;Je++){var je=_[Ge][Je],vr=_[Ge][Je+1],Ke=u$.applyBackoff(vr,je);(Ke[0]!==vr[0]||Ke[1]!==vr[1])&&(Se=!0),We[Fe+1]||(Fe++,We[Fe]=[je,[Ke[0],Ke[1]]])}return Se?We:_}return _}});var DC=Z((rfe,qC)=>{"use strict";var LC={tonextx:1,tonexty:1,tonext:1};qC.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,v=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var ai=Ir(),c$=br(),lc=Ie(),iu=lc.ensureSingle,PC=lc.identity,Ct=at(),lu=on(),v$=CC(),h$=DC(),sd=$y().tester;RC.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,v=h$(r,t,a);if(o=n.selectAll("g.trace").data(v,function(d){return d[0].trace.uid}),o.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),o.order(),d$(r,o,t),f){l&&(s=l());var h=ai.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){n.selectAll("g.trace").each(function(d,m){EC(r,m,t,d,v,this,i)})})}else o.each(function(d,m){EC(r,m,t,d,v,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function d$(e,r,t){r.each(function(a){var n=iu(ai.select(this),"g","fills");Ct.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,PC);o.enter().append("g"),o.exit().each(function(s){i[s]=null}).remove(),o.order().each(function(s){i[s]=iu(ai.select(this),"path","js-fill")})})}function EC(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;p$(e,r,t,a,n);var u=!!l&&l.duration>0;function f(De){return u?De.transition():De}var v=t.xaxis,h=t.yaxis,d=a[0].trace,m=d.line,g=ai.select(i),y=iu(g,"g","errorbars"),_=iu(g,"g","lines"),w=iu(g,"g","points"),T=iu(g,"g","text");if(c$.getComponentMethod("errorbars","plot")(e,y,t,l),d.visible!==!0)return;f(g).style("opacity",d.opacity);var b,A,C=d.fill.charAt(d.fill.length-1);C!=="x"&&C!=="y"&&(C="");var k,q;C==="y"?(k=1,q=h.c2p(0,!0)):C==="x"&&(k=0,q=v.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=g;var D="",R=[],z=d._prevtrace,F=null,I=null;z&&(D=z._prevRevpath||"",A=z._nextFill,R=z._ownPolygons,F=z._fillsegments,I=z._fillElement);var O,X,J="",U="",H,G,K,Q,ie,pe,me=[];d._polygons=[];var Ae=[],re=[],Le=lc.noop;if(b=d._ownFill,lu.hasLines(d)||d.fill!=="none"){A&&A.datum(a),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(H=Ct.steps(m.shape),G=Ct.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?H=G=function(De){var He=De[De.length-1];return De.length>1&&De[0][0]===He[0]&&De[0][1]===He[1]?Ct.smoothclosed(De.slice(1),m.smoothing):Ct.smoothopen(De,m.smoothing)}:H=G=function(De){return"M"+De.join("L")},K=function(De){return G(De.reverse())},re=v$(a,{xaxis:v,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Ae=new Array(re.length);var fe=0;for(s=0;s=o[0]&&g.x<=o[1]&&g.y>=s[0]&&g.y<=s[1]}),h=Math.ceil(v.length/f),d=0;n.forEach(function(g,y){var _=g[0].trace;lu.hasMarkers(_)&&_.marker.maxdisplayed>0&&y{"use strict";NC.exports={container:"marker",min:"cmin",max:"cmax"}});var IC=Z((nfe,FC)=>{"use strict";var ud=dt();FC.exports=function(r,t,a){var n={},i={_fullLayout:a},l=ud.getFromTrace(i,t,"x"),o=ud.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=ud.tickText(l,l.c2l(s),!0).text,n.yLabel=ud.tickText(o,o.c2l(u),!0).text,n}});var o2=Z((ife,HC)=>{"use strict";var n2=Ir(),ou=at(),m$=br();function y$(e){var r=n2.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=n2.select(this),n=t.trace||t[0].trace;i2(a,n,e)}),r.selectAll("g.text").each(function(t){var a=n2.select(this),n=t.trace||t[0].trace;l2(a,n,e)}),r.selectAll("g.trace path.js-line").call(ou.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(ou.fillGroupStyle,e,!1),m$.getComponentMethod("errorbars","style")(r)}function i2(e,r,t){ou.pointStyle(e.selectAll("path.point"),r,t)}function l2(e,r,t){ou.textPointStyle(e.selectAll("text"),r,t)}function g$(e,r,t){var a=r[0].trace;a.selectedpoints?(ou.selectedPointStyle(t.selectAll("path.point"),a),ou.selectedTextStyle(t.selectAll("text"),a)):(i2(t,a,e),l2(t,a,e))}HC.exports={style:y$,stylePoints:i2,styleText:l2,styleOnSelect:g$}});var BC=Z((lfe,OC)=>{"use strict";var su=Er(),b$=on();OC.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&su.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&su.opacity(i)?i:l&&su.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?su.opacity(n)<.3?su.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&su.opacity(a)&&b$.hasLines(r)&&r.line.width?a:r.fillcolor)}});var GC=Z((ofe,UC)=>{"use strict";var fd=Ie(),YC=Si(),x$=br(),_$=BC(),s2=Er(),w$=fd.fillText;UC.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),v=[u,f],h=l.hoveron||"",d=l.mode.indexOf("markers")!==-1?3:.5,m=!!l.xperiodalignment,g=!!l.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(U){if(m){var H=o.c2p(U.xStart),G=o.c2p(U.xEnd);return u>=Math.min(H,G)&&u<=Math.max(H,G)?0:1/0}var K=Math.max(3,U.mrc||0),Q=1-1/K,ie=Math.abs(o.c2p(U.x)-u);return ie=Math.min(H,G)&&f<=Math.max(H,G)?0:1/0}var K=Math.max(3,U.mrc||0),Q=1-1/K,ie=Math.abs(s.c2p(U.y)-f);return ieme!=Y>=me&&(ke=Le[re-1][0],se=Le[re][0],Y-be&&(fe=ke+(se-ke)*(me-be)/(Y-be),K=Math.min(K,fe),Q=Math.max(Q,fe)));return K=Math.max(K,0),Q=Math.min(Q,o._length),{x0:K,x1:Q,y0:me,y1:me}}if(h.indexOf("fills")!==-1&&l._fillElement){var O=F(l._fillElement)&&!F(l._fillExclusionElement);if(O){var X=I(l._polygons);X===null&&(X={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var J=s2.defaultLine;return s2.opacity(l.fillcolor)?J=l.fillcolor:s2.opacity((l.line||{}).color)&&(J=l.line.color),fd.extendFlat(r,{distance:r.maxHoverDistance,x0:X.x0,x1:X.x1,y0:X.y0,y1:X.y1,color:J,hovertemplate:!1}),delete r.index,l.text&&!fd.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var ZC=Z((sfe,WC)=>{"use strict";var VC=on();WC.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,v,h=!VC.hasMarkers(o)&&!VC.hasText(o);if(h)return[];if(t===!1)for(s=0;s{"use strict";XC.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var jC=Z((ffe,$C)=>{"use strict";var oc=br().traceIs,u2=Lm();$C.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(T$(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function T$(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=M$(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!oc(i,"cartesian")||oc(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,QC(i,a)){var u=KC(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(QC(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function KC(e){return{v:"x",h:"y"}[e.orientation||"v"]}function QC(e,r){var t=KC(e),a=oc(e,"box-violin"),n=oc(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var rL=Z((cfe,eL)=>{"use strict";var A$=nn().isTypedArraySpec;function k$(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||A$(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=k$(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var nL=Z((vfe,aL)=>{"use strict";var tL=bn().mix,S$=hi(),C$=Ie();aL.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(q,D){return C$.coerce2(r,t,n.attributes,q,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=tL(i,n.bgColor,n.blend||S$.lightFraction).toRgbString(),v=l("gridcolor",f),h=l("gridwidth"),d=l("griddash"),m=a("showgrid",n.showGrid||!!v||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var g=tL(t.gridcolor,n.bgColor,67).toRgbString(),y=l("minor.gridcolor",g),_=l("minor.gridwidth",t.gridwidth||1),w=l("minor.griddash",t.griddash||"solid"),T=a("minor.showgrid",!!y||!!_||!!w);T||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=l("zerolinelayer"),A=l("zerolinecolor",i),C=l("zerolinewidth"),k=a("zeroline",n.showGrid||!!A||!!C);k||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var c2=Z((hfe,fL)=>{"use strict";var iL=Hr(),L$=br(),sc=Ie(),q$=ct(),D$=Jn(),f2=Xn(),lL=$p(),oL=em(),E$=am(),P$=nm(),R$=rL(),z$=nL(),N$=Jm(),sL=b0(),cd=ya().WEEKDAY_PATTERN,F$=ya().HOUR_PATTERN;fL.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},v=t.type||f.type||"-",h;if(v==="date"){var d=L$.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(v==="date"||v==="linear")&&a("ticklabelindex");var m="";(!n.noTicklabelposition||v==="multicategory")&&(m=sc.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),sL(t,i),N$(r,t,a,n),R$(r,t,a,n),n.noHover||(v!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var g=a("color"),y=g!==f2.color.dflt?g:o.color,_=s.label||i._dfltTitle[l];if(P$(r,t,a,v,n),!u)return t;a("title.text",_),sc.coerceFont(a,"title.font",o,{overrideDflt:{size:sc.bigFont(o.size),color:y}}),lL(r,t,a,v);var w=n.hasMinor;if(w&&(q$.newContainer(t,"minor"),lL(r,t,a,v,{isMinor:!0})),E$(r,t,a,v,n),oL(r,t,a,n),w){var T=n.isMinor;n.isMinor=!0,oL(r,t,a,n),n.isMinor=T}z$(r,t,a,{dfltColor:g,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:f2}),w&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=v==="multicategory";if(!n.noTickson&&(v==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var A=a("showdividers");A&&(a("dividercolor"),a("dividerwidth"))}if(v==="date")if(D$(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:I$}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var C=0;C=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=uL(i[o]),s){l=cd;break}}var u=a("pattern",l);if(u===cd)for(o=0;o<2;o++)s=uL(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case cd:if(!iL(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case F$:if(!iL(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var O$=Hr(),vd=Ie();cL.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,v,h,d,m,g;s&&(v=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],v&&(h=s[o+"side"].split(" ")[0],d=s.domain[o][h==="right"||h==="top"?1:0])),v=v||[0,1],f=f||(O$(r.position)?"free":i[0]||"free"),h=h||(o==="x"?"bottom":"left"),d=d||0,m=0,g=!1;var y=vd.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),_=vd.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(o==="y"){var w=a("autoshift");w&&(d=_==="left"?u[0]:u[1],g=t.automargin?t.automargin:!0,m=_==="left"?-3:3),a("shift",m)}a("position",d)}a("automargin",g);var T=!1;if(l.length&&(T=vd.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!T){var b=a("domain",v);b[0]>b[1]-1/4096&&(t.domain=v),vd.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var xL=Z((pfe,bL)=>{"use strict";var Ro=Ie(),vL=Er(),B$=xi().isUnifiedHover,Y$=_y(),hL=ct(),U$=ds(),dL=Xn(),G$=jC(),pL=c2(),V$=Cf(),mL=v2(),d2=Zt(),Ei=d2.id2name,yL=d2.name2id,W$=ya().AX_ID_PATTERN,gL=br(),hd=gL.traceIs,h2=gL.getComponentMethod;function dd(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}bL.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},v={},h={},d={},m={},g,y;for(g=0;g{"use strict";var Z$=Ir(),_L=br(),pd=Ie(),hn=at(),md=dt();wL.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){md.redrawComponents(r);return}function l(y){var _=y.xaxis,w=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(hn.setTranslate,0,0).call(hn.setScale,1,1),y.plot.call(hn.setTranslate,_._offset,w._offset).call(hn.setScale,1,1);var T=y.plot.selectAll(".scatterlayer .trace");T.selectAll(".point").call(hn.setPointGroupScale,1,1),T.selectAll(".textpoint").call(hn.setTextPointsScale,1,1),T.call(hn.hideOutsideRangePoints,y)}function o(y,_){var w=y.plotinfo,T=w.xaxis,b=w.yaxis,A=T._length,C=b._length,k=!!y.xr1,q=!!y.yr1,D=[];if(k){var R=pd.simpleMap(y.xr0,T.r2l),z=pd.simpleMap(y.xr1,T.r2l),F=R[1]-R[0],I=z[1]-z[0];D[0]=(R[0]*(1-_)+_*z[0]-R[0])/(R[1]-R[0])*A,D[2]=A*(1-_+_*I/F),T.range[0]=T.l2r(R[0]*(1-_)+_*z[0]),T.range[1]=T.l2r(R[1]*(1-_)+_*z[1])}else D[0]=0,D[2]=A;if(q){var O=pd.simpleMap(y.yr0,b.r2l),X=pd.simpleMap(y.yr1,b.r2l),J=O[1]-O[0],U=X[1]-X[0];D[1]=(O[1]*(1-_)+_*X[1]-O[1])/(O[0]-O[1])*C,D[3]=C*(1-_+_*U/J),b.range[0]=T.l2r(O[0]*(1-_)+_*X[0]),b.range[1]=b.l2r(O[1]*(1-_)+_*X[1])}else D[1]=0,D[3]=C;md.drawOne(r,T,{skipTitle:!0}),md.drawOne(r,b,{skipTitle:!0}),md.redrawComponents(r,[T._id,b._id]);var H=k?A/D[2]:1,G=q?C/D[3]:1,K=k?D[0]:0,Q=q?D[1]:0,ie=k?D[0]/D[2]*A:0,pe=q?D[1]/D[3]*C:0,me=T._offset-ie,Ae=b._offset-pe;w.clipRect.call(hn.setTranslate,K,Q).call(hn.setScale,1/H,1/G),w.plot.call(hn.setTranslate,me,Ae).call(hn.setScale,H,G),hn.setPointGroupScale(w.zoomScalePts,1/H,1/G),hn.setTextPointsScale(w.zoomScaleTxt,1/H,1/G)}var s;n&&(s=n());function u(){for(var y={},_=0;_a.duration?(u(),d=window.cancelAnimationFrame(g)):d=window.requestAnimationFrame(g)}return v=Date.now(),d=window.requestAnimationFrame(g),Promise.resolve()}});var bd=Z(ka=>{"use strict";var gd=Ir(),ML=br(),zo=Ie(),X$=Nt(),J$=at(),AL=Np().getModuleCalcData,ql=Zt(),ni=ya(),K$=fo(),Xr=zo.ensureSingle;function yd(e,r,t){return zo.ensureSingle(e,r,t,function(a){a.datum(t)})}var No=ni.zindexSeparator;ka.name="cartesian";ka.attr=["xaxis","yaxis"];ka.idRoot=["x","y"];ka.idRegex=ni.idRegex;ka.attrRegex=ni.attrRegex;ka.attributes=JC();ka.layoutAttributes=Xn();ka.supplyLayoutDefaults=xL();ka.transitionAxes=TL();ka.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,v;for(u=0;u0){var d=h.id;if(d.indexOf(No)!==-1)continue;d+=No+(u+1),h=zo.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],g,y=0;y1&&(A+=No+b),T.push(o+A),l=0;l1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=Xr(a,"path","xlines-above"),r.ylines=Xr(a,"path","ylines-above"),r.xaxislayer=Xr(a,"g","xaxislayer-above"),r.yaxislayer=Xr(a,"g","yaxislayer-above");else{if(!l){var h=Xr(a,"g","layer-subplot");r.shapelayer=Xr(h,"g","shapelayer"),r.imagelayer=Xr(h,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=Xr(a,"g","minor-gridlayer"),r.gridlayer=Xr(a,"g","gridlayer"),r.zerolinelayer=Xr(a,"g","zerolinelayer"));var d=Xr(a,"g","layer-between");r.shapelayerBetween=Xr(d,"g","shapelayer"),r.imagelayerBetween=Xr(d,"g","imagelayer"),Xr(a,"path","xlines-below"),Xr(a,"path","ylines-below"),r.overlinesBelow=Xr(a,"g","overlines-below"),Xr(a,"g","xaxislayer-below"),Xr(a,"g","yaxislayer-below"),r.overaxesBelow=Xr(a,"g","overaxes-below")}r.overplot=Xr(a,"g","overplot"),r.plot=Xr(r.overplot,"g",n),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=Xr(a,"g","zerolinelayer-above"),l||(r.xlines=Xr(a,"path","xlines-above"),r.ylines=Xr(a,"path","ylines-above"),r.overlinesAbove=Xr(a,"g","overlines-above"),Xr(a,"g","xaxislayer-above"),Xr(a,"g","yaxislayer-above"),r.overaxesAbove=Xr(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var m=v.plotgroup,g=n+"-x",y=n+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,Xr(v.overlinesBelow,"path",g),Xr(v.overlinesBelow,"path",y),Xr(v.overaxesBelow,"g",g),Xr(v.overaxesBelow,"g",y),r.plot=Xr(v.overplot,"g",n),Xr(v.overlinesAbove,"path",g),Xr(v.overlinesAbove,"path",y),Xr(v.overaxesAbove,"g",g),Xr(v.overaxesAbove,"g",y),r.xlines=m.select(".overlines-"+o).select("."+g),r.ylines=m.select(".overlines-"+s).select("."+y),r.xaxislayer=m.select(".overaxes-"+o).select("."+g),r.yaxislayer=m.select(".overaxes-"+s).select("."+y)}l||(u||(yd(r.minorGridlayer,"g",r.xaxis._id),yd(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(_){return _[0]}).sort(ql.idSort),yd(r.gridlayer,"g",r.xaxis._id),yd(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(_){return _[0]}).sort(ql.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function CL(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=gd.select(this);f.remove(),LL(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var xd=on();qL.exports={hasLines:xd.hasLines,hasMarkers:xd.hasMarkers,hasText:xd.hasText,isBubble:xd.isBubble,attributes:qo(),layoutAttributes:Zv(),supplyDefaults:VS(),crossTraceDefaults:XS(),supplyLayoutDefaults:KS(),calc:Jg().calc,crossTraceCalc:_C(),arraysToCalcdata:Ug(),plot:zC(),colorbar:a2(),formatLabels:IC(),style:o2().style,styleOnSelect:o2().styleOnSelect,hoverPoints:GC(),selectPoints:ZC(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:bd(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var RL=Z((bfe,PL)=>{"use strict";var $$=Ir(),j$=Er(),EL=fg(),p2=Ie(),ej=p2.strScale,rj=p2.strRotate,tj=p2.strTranslate;PL.exports=function(r,t,a){var n=r.node(),i=EL[a.arrowhead||0],l=EL[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=i.backoff*o+a.standoff,h=l.backoff*s+a.startstandoff,d,m,g,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var _=d.x-m.x,w=d.y-m.y;if(g=Math.atan2(w,_),y=g+Math.PI,v&&h&&v+h>Math.sqrt(_*_+w*w)){O();return}if(v){if(v*v>_*_+w*w){O();return}var T=v*Math.cos(g),b=v*Math.sin(g);m.x+=T,m.y+=b,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>_*_+w*w){O();return}var A=h*Math.cos(g),C=h*Math.sin(g);d.x-=A,d.y-=C,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var k=n.getTotalLength(),q="";if(k{"use strict";var zL=Ir(),m2=br(),aj=Nt(),El=Ie(),y2=El.strTranslate,fc=dt(),Fo=Er(),Ji=at(),NL=Si(),g2=Ta(),b2=wl(),uc=Qn(),nj=ct().arrayEditor,ij=RL();HL.exports={draw:lj,drawOne:FL,drawRaw:IL};function lj(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ce="right":Ce="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ce]}for(var be=!1,Y=["x","y"],ee=0;ee1)&&(Me===ye?(fr=ge.r2fraction(r["a"+B]),(fr<0||fr>1)&&(be=!0)):be=!0),He=ge._offset+ge.r2p(r[B]),Te=.5}else{var le=cr==="domain";B==="x"?(ne=r[B],He=le?ge._offset+ge._length*ne:He=o.l+o.w*ne):(ne=1-r[B],He=le?ge._offset+ge._length*ne:He=o.t+o.h*ne),Te=r.showarrow?.5:ne}if(r.showarrow){De.head=He;var Se=r["a"+B];if(Xe=Ne*se(.5,r.xanchor)-Ee*se(.5,r.yanchor),Me===ye){var Fe=fc.getRefType(Me);Fe==="domain"?(B==="y"&&(Se=1-Se),De.tail=ge._offset+ge._length*Se):Fe==="paper"?B==="y"?(Se=1-Se,De.tail=o.t+o.h*Se):De.tail=o.l+o.w*Se:De.tail=ge._offset+ge.r2p(Se),Oe=Xe}else De.tail=He+Se,Oe=Xe+Se;De.text=De.tail+Xe;var We=l[B==="x"?"width":"height"];if(ye==="paper"&&(De.head=El.constrain(De.head,1,We-1)),Me==="pixel"){var Ge=-Math.max(De.tail-3,De.text),Je=Math.min(De.tail+3,De.text)-We;Ge>0?(De.tail+=Ge,De.text+=Ge):Je>0&&(De.tail-=Je,De.text-=Je)}De.tail+=Ue,De.head+=Ue}else Xe=ze*se(Te,Ve),Oe=Xe,De.text=He+Xe;De.text+=Ue,Xe+=Ue,Oe+=Ue,r["_"+B+"padplus"]=ze/2+Oe,r["_"+B+"padminus"]=ze/2-Oe,r["_"+B+"size"]=ze,r["_"+B+"shift"]=Xe}if(be){k.remove();return}var je=0,vr=0;if(r.align!=="left"&&(je=(re-me)*(r.align==="center"?.5:1)),r.valign!=="top"&&(vr=(Le-Ae)*(r.valign==="middle"?.5:1)),ie)Q.select("svg").attr({x:R+je-1,y:R+vr}).call(Ji.setClipUrl,F?g:null,e);else{var Ke=R+vr-pe.top,Pe=R+je-pe.left;J.call(g2.positionText,Pe,Ke).call(Ji.setClipUrl,F?g:null,e)}I.select("rect").call(Ji.setRect,R,R,re,Le),z.call(Ji.setRect,q/2,q/2,fe-q,ke-q),k.call(Ji.setTranslate,Math.round(y.x.text-fe/2),Math.round(y.y.text-ke/2)),T.attr({transform:"rotate("+_+","+y.x.text+","+y.y.text+")"});var ae=function(qe,Ce){w.selectAll(".annotation-arrow-g").remove();var or=y.x.head,lr=y.y.head,ar=y.x.tail+qe,Mr=y.y.tail+Ce,Br=y.x.text+qe,et=y.y.text+Ce,Qr=El.rotationXYMatrix(_,Br,et),Kt=El.apply2DTransform(Qr),qt=El.apply2DTransform2(Qr),yt=+z.attr("width"),At=+z.attr("height"),ua=Br-.5*yt,fa=ua+yt,zt=et-.5*At,Oa=zt+At,yr=[[ua,zt,ua,Oa],[ua,Oa,fa,Oa],[fa,Oa,fa,zt],[fa,zt,ua,zt]].map(qt);if(!yr.reduce(function(nt,ca){return nt^!!El.segmentsIntersect(or,lr,or+1e6,lr+1e6,ca[0],ca[1],ca[2],ca[3])},!1)){yr.forEach(function(nt){var ca=El.segmentsIntersect(ar,Mr,or,lr,nt[0],nt[1],nt[2],nt[3]);ca&&(ar=ca.x,Mr=ca.y)});var lt=r.arrowwidth,Vr=r.arrowcolor,gt=r.arrowside,kt=w.append("g").style({opacity:Fo.opacity(Vr)}).classed("annotation-arrow-g",!0),ot=kt.append("path").attr("d","M"+ar+","+Mr+"L"+or+","+lr).style("stroke-width",lt+"px").call(Fo.stroke,Fo.rgb(Vr));if(ij(ot,gt,r),s.annotationPosition&&ot.node().parentNode&&!a){var bt=or,La=lr;if(r.standoff){var na=Math.sqrt(Math.pow(or-ar,2)+Math.pow(lr-Mr,2));bt+=r.standoff*(ar-or)/na,La+=r.standoff*(Mr-lr)/na}var In=kt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ar-bt)+","+(Mr-La),transform:y2(bt,La)}).style("stroke-width",lt+6+"px").call(Fo.stroke,"rgba(0,0,0,0)").call(Fo.fill,"rgba(0,0,0,0)"),Hn,Qt;uc.init({element:In.node(),gd:e,prepFn:function(){var nt=Ji.getTranslate(k);Hn=nt.x,Qt=nt.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(nt,ca){var Ul=Kt(Hn,Qt),Gl=Ul[0]+nt,rl=Ul[1]+ca;k.call(Ji.setTranslate,Gl,rl),d("x",Dl(n,nt,"x",o,r)),d("y",Dl(i,ca,"y",o,r)),r.axref===r.xref&&d("ax",Dl(n,nt,"ax",o,r)),r.ayref===r.yref&&d("ay",Dl(i,ca,"ay",o,r)),kt.attr("transform",y2(nt,ca)),T.attr({transform:"rotate("+_+","+Gl+","+rl+")"})},doneFn:function(){m2.call("_guiRelayout",e,m());var nt=document.querySelector(".js-notes-box-panel");nt&&nt.redraw(nt.selectedObj)}})}}};if(r.showarrow&&ae(0,0),b){var ue;uc.init({element:k.node(),gd:e,prepFn:function(){ue=T.attr("transform")},moveFn:function(qe,Ce){var or="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Dl(n,qe,"ax",o,r)):d("ax",r.ax+qe),r.ayref===r.yref?d("ay",Dl(i,Ce,"ay",o.w,r)):d("ay",r.ay+Ce),ae(qe,Ce);else{if(a)return;var lr,ar;if(n)lr=Dl(n,qe,"x",o,r);else{var Mr=r._xsize/o.w,Br=r.x+(r._xshift-r.xshift)/o.w-Mr/2;lr=uc.align(Br+qe/o.w,Mr,0,1,r.xanchor)}if(i)ar=Dl(i,Ce,"y",o,r);else{var et=r._ysize/o.h,Qr=r.y-(r._yshift+r.yshift)/o.h-et/2;ar=uc.align(Qr-Ce/o.h,et,0,1,r.yanchor)}d("x",lr),d("y",ar),(!n||!i)&&(or=uc.getCursor(n?.5:lr,i?.5:ar,r.xanchor,r.yanchor))}T.attr({transform:y2(qe,Ce)+ue}),b2(k,or)},clickFn:function(qe,Ce){r.captureevents&&e.emit("plotly_clickannotation",C(Ce))},doneFn:function(){b2(k),m2.call("_guiRelayout",e,m());var qe=document.querySelector(".js-notes-box-panel");qe&&qe.redraw(qe.selectedObj)}})}}s.annotationText?J.call(g2.makeEditable,{delegate:k,gd:e}).call(U).on("edit",function(G){r.text=G,this.call(U),d("text",G),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),m2.call("_guiRelayout",e,m())}):J.call(U)}});var VL=Z((_fe,GL)=>{"use strict";var OL=Ie(),oj=br(),BL=ct().arrayEditor;GL.exports={hasClickToShow:sj,onClick:uj};function sj(e,r){var t=UL(e,r);return t.on.length>0||t.explicitOff.length>0}function uj(e,r){var t=UL(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var x2=Ie(),uu=Er();WL.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=uu.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),x2.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var v=n("arrowside"),h,d;v.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),v.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",o?t.bordercolor:uu.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var m=n("hovertext"),g=a.hoverlabel||{};if(m){var y=n("hoverlabel.bgcolor",g.bgcolor||(uu.opacity(i)?uu.rgb(i):uu.defaultLine)),_=n("hoverlabel.bordercolor",g.bordercolor||uu.contrast(y)),w=x2.extendFlat({},g.font);w.color||(w.color=_),x2.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!m)}});var XL=Z((Tfe,ZL)=>{"use strict";var w2=Ie(),Io=dt(),fj=Jn(),cj=_2(),vj=js();ZL.exports=function(r,t){fj(r,t,{name:"annotations",handleItemDefaults:hj})};function hj(e,r,t){function a(T,b){return w2.coerce(e,r,vj,T,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){cj(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var v=o[f],h=Io.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Io.getFromId(u,h);d._annIndices.push(r._index)}if(Io.coercePosition(r,u,a,h,v,.5),l){var m="a"+v,g=Io.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);g!=="pixel"&&g!==h&&(g=r[m]="pixel");var y=g==="pixel"?s[f]:.4;Io.coercePosition(r,u,a,g,m,y)}a(v+"anchor"),a(v+"shift")}if(w2.noneOrAll(e,r,["x","y"]),l&&w2.noneOrAll(e,r,["ax","ay"]),i){var _=a("xclick"),w=a("yclick");r._xclick=_===void 0?r.x:Io.cleanPosition(_,u,r.xref),r._yclick=w===void 0?r.y:Io.cleanPosition(w,u,r.yref)}}}});var QL=Z((Mfe,KL)=>{"use strict";var T2=Ie(),Ho=dt(),dj=_d().draw;KL.exports=function(r){var t=r._fullLayout,a=T2.filterVisible(t.annotations);if(a.length&&r._fullData.length)return T2.syncOrAsync([dj,pj],r)};function pj(e){var r=e._fullLayout;T2.filterVisible(r.annotations).forEach(function(t){var a=Ho.getFromId(e,t.xref),n=Ho.getFromId(e,t.yref),i=Ho.getRefType(t.xref),l=Ho.getRefType(t.yref);t._extremes={},i==="range"&&JL(t,a),l==="range"&&JL(t,n)})}function JL(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],v=3*e.arrowsize*e.arrowwidth||0,h=v+f,d=v-f,m=3*e.startarrowsize*e.arrowwidth||0,g=m+f,y=m-f,_;if(o===l){var w=Ho.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),T=Ho.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,g),ppadminus:Math.max(u,y)});_={min:[w.min[0],T.min[0]],max:[w.max[0],T.max[0]]}}else g=i?g+i:g,y=i?y-i:y,_=Ho.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,g),ppadminus:Math.max(u,d,y)});e._extremes[t]=_}});var jL=Z((Afe,$L)=>{"use strict";var mj=Hr(),yj=pv();$L.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function v(d){var m=u[d],g=null;i?g=yj(m,t.range):g=Math.pow(10,m),mj(g)||(g=null),n(f+d,g)}for(var h=0;h{"use strict";var M2=_d(),eq=VL();rq.exports={moduleType:"component",name:"annotations",layoutAttributes:js(),supplyLayoutDefaults:XL(),includeBasePlot:Vf()("annotations"),calcAutorange:QL(),draw:M2.draw,drawOne:M2.drawOne,drawRaw:M2.drawRaw,hasClickToShow:eq.hasClickToShow,onClick:eq.onClick,convertCoords:jL()}});var wd=Z((Sfe,aq)=>{"use strict";var ft=js(),gj=pi().overrideAll,bj=ct().templatedArray;aq.exports=gj(bj("annotation",{visible:ft.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:ft.xanchor,xshift:ft.xshift,yanchor:ft.yanchor,yshift:ft.yshift,text:ft.text,textangle:ft.textangle,font:ft.font,width:ft.width,height:ft.height,opacity:ft.opacity,align:ft.align,valign:ft.valign,bgcolor:ft.bgcolor,bordercolor:ft.bordercolor,borderpad:ft.borderpad,borderwidth:ft.borderwidth,showarrow:ft.showarrow,arrowcolor:ft.arrowcolor,arrowhead:ft.arrowhead,startarrowhead:ft.startarrowhead,arrowside:ft.arrowside,arrowsize:ft.arrowsize,startarrowsize:ft.startarrowsize,arrowwidth:ft.arrowwidth,standoff:ft.standoff,startstandoff:ft.startstandoff,hovertext:ft.hovertext,hoverlabel:ft.hoverlabel,captureevents:ft.captureevents}),"calc","from-root")});var iq=Z((Cfe,nq)=>{"use strict";var A2=Ie(),xj=dt(),_j=Jn(),wj=_2(),Tj=wd();nq.exports=function(r,t,a){_j(r,t,{name:"annotations",handleItemDefaults:Mj,fullLayout:a.fullLayout})};function Mj(e,r,t,a){function n(o,s){return A2.coerce(e,r,Tj,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],xj.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(wj(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),A2.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),A2.noneOrAll(e,r,["ax","ay"])))}});var uq=Z((Lfe,sq)=>{"use strict";var lq=Ie(),oq=dt();sq.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function k2(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function kj(e,r){var t=k2(e.projection,k2(e.view,k2(e.model,[r[0],r[1],r[2],1])));return t}fq.exports=kj});var hq=Z((Dfe,vq)=>{"use strict";var Sj=_d().drawRaw,Cj=cq(),Lj=["x","y","z"];vq.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=Cj(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),Sj(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var mq=Z((Efe,pq)=>{"use strict";var qj=br(),dq=Ie();pq.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:wd()}}},layoutAttributes:wd(),handleDefaults:iq(),includeBasePlot:Dj,convert:uq(),draw:hq()};function Dj(e,r){var t=qj.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var yq=js(),gq=ma(),bq=qo().line,Ej=mi().dash,ii=Vt().extendFlat,Pj=ct().templatedArray,Pfe=Gf(),fu=Gn(),Rj=yi().shapeTexttemplateAttrs,zj=kv();xq.exports=Pj("shape",{visible:ii({},fu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:ii({},fu.legend,{editType:"calc+arraydraw"}),legendgroup:ii({},fu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:ii({},fu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:gq({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:ii({},fu.legendrank,{editType:"calc+arraydraw"}),legendwidth:ii({},fu.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:ii({},yq.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:ii({},yq.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:ii({},bq.color,{editType:"arraydraw"}),width:ii({},bq.width,{editType:"calc+arraydraw"}),dash:ii({},Ej,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Rj({},{keys:Object.keys(zj)}),font:gq({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var Tq=Z((zfe,wq)=>{"use strict";var cc=Ie(),cu=dt(),Nj=Jn(),Fj=S2(),_q=Al();wq.exports=function(r,t){Nj(r,t,{name:"shapes",handleItemDefaults:Hj})};function Ij(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Hj(e,r,t){function a(G,K){return cc.coerce(e,r,Fj,G,K)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),cc.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));for(var v=a("xsizemode"),h=a("ysizemode"),d=["x","y"],m=0;m<2;m++){var g=d[m],y=g+"anchor",_=g==="x"?v:h,w={_fullLayout:t},T,b,A,C=cu.coerceRef(e,r,w,g,void 0,"paper"),k=cu.getRefType(C);if(k==="range"?(T=cu.getFromId(w,C),T._shapeIndices.push(r._index),A=_q.rangeToShapePosition(T),b=_q.shapePositionToRange(T),(T.type==="category"||T.type==="multicategory")&&(a(g+"0shift"),a(g+"1shift"))):b=A=cc.identity,u){var q=.25,D=.75,R=g+"0",z=g+"1",F=e[R],I=e[z];e[R]=b(e[R],!0),e[z]=b(e[z],!0),_==="pixel"?(a(R,0),a(z,10)):(cu.coercePosition(r,w,a,C,R,q),cu.coercePosition(r,w,a,C,z,D)),r[R]=A(r[R]),r[z]=A(r[z]),e[R]=F,e[z]=I}if(_==="pixel"){var O=e[y];e[y]=b(e[y],!0),cu.coercePosition(r,w,a,C,y,.25),r[y]=A(r[y]),e[y]=O}}u&&cc.noneOrAll(e,r,["x0","x1","y0","y1"]);var X=s==="line",J,U;if(u&&(J=a("label.texttemplate")),J||(U=a("label.text")),U||J){a("label.textangle");var H=a("label.textposition",X?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Ij(X,H)),a("label.padding"),cc.coerceFont(a,"label.font",t.font)}}}});var kq=Z((Nfe,Aq)=>{"use strict";var Oj=Er(),Mq=Ie();function Bj(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}Aq.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),Mq.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Oj.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Bj(l,u)),a("newshape.label.padding"),Mq.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var Dq=Z((Ffe,qq)=>{"use strict";var C2=Ie(),vu=dt(),hu=Mf(),Cq=Al();qq.exports=function(r){var t=r._fullLayout,a=C2.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?u+l:l;return{ppad:l,ppadplus:o?v:h,ppadminus:o?h:v}}else return{ppad:l}}function Sq(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var v=1/0,h=-1/0,d=r.path.match(hu.segmentRE),m,g,y,_,w;for(e.type==="date"&&(u=Cq.decodeDate(u)),m=0;mh&&(h=w)));if(h>=v)return[v,h]}}});var Rq=Z((Ife,Pq)=>{"use strict";var Eq=hh();Pq.exports={moduleType:"component",name:"shapes",layoutAttributes:S2(),supplyLayoutDefaults:Tq(),supplyDrawNewShapeDefaults:kq(),includeBasePlot:Vf()("shapes"),calcAutorange:Dq(),draw:Eq.draw,drawOne:Eq.drawOne}});var L2=Z((Ofe,Nq)=>{"use strict";var zq=ya(),Gj=ct().templatedArray,Hfe=Gf();Nq.exports=Gj("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",zq.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",zq.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var Iq=Z((Bfe,Fq)=>{"use strict";var Vj=Ie(),q2=dt(),Wj=Jn(),Zj=L2(),Xj="images";Fq.exports=function(r,t){var a={name:Xj,handleItemDefaults:Jj};Wj(r,t,a)};function Jj(e,r,t){function a(h,d){return Vj.coerce(e,r,Zj,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=q2.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var v=q2.getFromId(l,f);v._imgIndices.push(r._index)}q2.coercePosition(r,l,a,f,u,0)}return r}});var Yq=Z((Yfe,Bq)=>{"use strict";var Hq=Ir(),Kj=at(),du=dt(),Oq=Zt(),Qj=fo();Bq.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var Uq=Hr(),$j=pv();Gq.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,v=0;v{"use strict";Wq.exports={moduleType:"component",name:"images",layoutAttributes:L2(),supplyLayoutDefaults:Iq(),includeBasePlot:Vf()("images"),draw:Yq(),convertCoords:Vq()}});var Td=Z((Vfe,Xq)=>{"use strict";Xq.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var D2=Z((Wfe,Kq)=>{"use strict";var jj=ma(),eee=hi(),ree=Vt().extendFlat,tee=pi().overrideAll,aee=Sv(),Jq=ct().templatedArray,nee=Jq("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});Kq.exports=tee(Jq("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:nee,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:ree(aee({editType:"arraydraw"}),{}),font:jj({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:eee.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var eD=Z((Zfe,jq)=>{"use strict";var Md=Ie(),Qq=Jn(),$q=D2(),iee=Td(),lee=iee.name,oee=$q.buttons;jq.exports=function(r,t){var a={name:lee,handleItemDefaults:see};Qq(r,t,a)};function see(e,r,t){function a(l,o){return Md.coerce(e,r,$q,l,o)}var n=Qq(e,r,{name:"buttons",handleItemDefaults:uee}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Md.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Md.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function uee(e,r){function t(n,i){return Md.coerce(e,r,oee,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var aD=Z((Xfe,tD)=>{"use strict";tD.exports=_t;var li=Ir(),rD=Er(),pu=at(),Ad=Ie();function _t(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}_t.barWidth=2;_t.barLength=20;_t.barRadius=2;_t.barPad=1;_t.barColor="#808BA4";_t.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,v=this.position.direction,h=v==="down",d=v==="left",m=v==="right",g=v==="up",y=s,_=f,w,T,b,A;!h&&!d&&!m&&!g&&(this.position.direction="down",h=!0);var C=h||g;C?(w=o,T=w+y,h?(b=u,A=Math.min(b+_,l),_=A-b):(A=u+_,b=Math.max(A-_,0),_=A-b)):(b=u,A=b+_,d?(T=o+y,w=Math.max(T-y,0),y=T-w):(w=o,T=Math.min(w+y,i),y=T-w)),this._box={l:w,t:b,w:y,h:_};var k=s>y,q=_t.barLength+2*_t.barPad,D=_t.barWidth+2*_t.barPad,R=o,z=u+f;z+D>l&&(z=l-D);var F=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);F.exit().on(".drag",null).remove(),F.enter().append("rect").classed("scrollbar-horizontal",!0).call(rD.fill,_t.barColor),k?(this.hbar=F.attr({rx:_t.barRadius,ry:_t.barRadius,x:R,y:z,width:q,height:D}),this._hbarXMin=R+q/2,this._hbarTranslateMax=y-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>_,O=_t.barWidth+2*_t.barPad,X=_t.barLength+2*_t.barPad,J=o+s,U=u;J+O>i&&(J=i-O);var H=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(rD.fill,_t.barColor),I?(this.vbar=H.attr({rx:_t.barRadius,ry:_t.barRadius,x:J,y:U,width:O,height:X}),this._vbarYMin=U+X/2,this._vbarTranslateMax=_-X):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var G=this.id,K=w-.5,Q=I?T+O+.5:T+.5,ie=b-.5,pe=k?A+D+.5:A+.5,me=n._topdefs.selectAll("#"+G).data(k||I?[0]:[]);if(me.exit().remove(),me.enter().append("clipPath").attr("id",G).append("rect"),k||I?(this._clipRect=me.select("rect").attr({x:Math.floor(K),y:Math.floor(ie),width:Math.ceil(Q)-Math.floor(K),height:Math.ceil(pe)-Math.floor(ie)}),this.container.call(pu.setClipUrl,G,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pu.setClipUrl,null),delete this._clipRect),k||I){var Ae=li.behavior.drag().on("dragstart",function(){li.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ae);var re=li.behavior.drag().on("dragstart",function(){li.event.sourceEvent.preventDefault(),li.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(re),I&&this.vbar.on(".drag",null).call(re)}this.setTranslate(t,a)};_t.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pu.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};_t.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=li.event.dx),this.vbar&&(t-=li.event.dy),this.setTranslate(r,t)};_t.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=li.event.deltaY),this.vbar&&(t+=li.event.deltaY),this.setTranslate(r,t)};_t.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Ad.constrain(li.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Ad.constrain(li.event.y,s,u),v=(f-s)/(u-s),h=this.position.h-this._box.h;t=v*h}this.setTranslate(r,t)};_t.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Ad.constrain(r||0,0,a),t=Ad.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(pu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(pu.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(pu.setTranslate,r,t+l*this._vbarTranslateMax)}}});var hD=Z((Jfe,vD)=>{"use strict";var mu=Ir(),vc=Nt(),hc=Er(),yu=at(),dn=Ie(),kd=Ta(),fee=ct().arrayEditor,iD=Pa().LINE_SPACING,_r=Td(),cee=aD();vD.exports=function(r){var t=r._fullLayout,a=dn.filterVisible(t[_r.name]);function n(h){vc.autoMargin(r,fD(h))}var i=t._menulayer.selectAll("g."+_r.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(_r.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){mu.select(this).selectAll("g."+_r.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+_r.headerGroupClassName).data(a,vee);l.enter().append("g").classed(_r.headerGroupClassName,!0);for(var o=dn.ensureSingle(i,"g",_r.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var bee=Td();dD.exports={moduleType:"component",name:bee.name,layoutAttributes:D2(),supplyLayoutDefaults:eD(),draw:hD()}});var pc=Z((Qfe,mD)=>{"use strict";mD.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var z2=Z(($fe,bD)=>{"use strict";var yD=ma(),xee=Sv(),_ee=Vt().extendDeepAll,wee=pi().overrideAll,Tee=Zu(),gD=ct().templatedArray,Oo=pc(),Mee=gD("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});bD.exports=wee(gD("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Mee,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:_ee(xee({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Tee.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:yD({})},font:yD({}),activebgcolor:{valType:"color",dflt:Oo.gripBgActiveColor},bgcolor:{valType:"color",dflt:Oo.railBgColor},bordercolor:{valType:"color",dflt:Oo.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Oo.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Oo.tickLength},tickcolor:{valType:"color",dflt:Oo.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Oo.minorTickLength}}),"arraydraw","from-root")});var TD=Z((jfe,wD)=>{"use strict";var gu=Ie(),xD=Jn(),_D=z2(),Aee=pc(),kee=Aee.name,See=_D.steps;wD.exports=function(r,t){xD(r,t,{name:kee,handleItemDefaults:Cee})};function Cee(e,r,t){function a(v,h){return gu.coerce(e,r,_D,v,h)}for(var n=xD(e,r,{name:"steps",handleItemDefaults:Lee}),i=0,l=0;l{"use strict";var oi=Ir(),Sd=Nt(),Pl=Er(),si=at(),pn=Ie(),qee=pn.strTranslate,mc=Ta(),Dee=ct().arrayEditor,Dr=pc(),I2=Pa(),kD=I2.LINE_SPACING,N2=I2.FROM_TL,F2=I2.FROM_BR;ED.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=Eee(a,r),i=a._infolayer.selectAll("g."+Dr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Dr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Sd.autoMargin(r,SD(f))}if(i.exit().each(function(){oi.select(this).selectAll("g."+Dr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Dr.groupClassName).data(n,Pee);o.enter().append("g").classed(Dr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",qee(l-Dr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function H2(e,r){var t=e._dims;return t.inputAreaStart+Dr.stepInset+(t.inputAreaLength-2*Dr.stepInset)*Math.min(1,Math.max(0,r))}function AD(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Dr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Dr.stepInset-2*t.inputAreaStart)))}function Oee(e,r,t){var a=t._dims,n=pn.ensureSingle(e,"rect",Dr.railTouchRectClass,function(i){i.call(qD,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Dr.tickOffset+t.ticklen+a.labelHeight)}).call(Pl.fill,t.bgcolor).attr("opacity",0),si.setTranslate(n,0,a.currentValueTotalHeight)}function Bee(e,r){var t=r._dims,a=t.inputAreaLength-Dr.railInset*2,n=pn.ensureSingle(e,"rect",Dr.railRectClass);n.attr({width:a,height:Dr.railWidth,rx:Dr.railRadius,ry:Dr.railRadius,"shape-rendering":"crispEdges"}).call(Pl.stroke,r.bordercolor).call(Pl.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),si.setTranslate(n,Dr.railInset,(t.inputAreaWidth-Dr.railWidth)*.5+t.currentValueTotalHeight)}});var zD=Z((rce,RD)=>{"use strict";var Yee=pc();RD.exports={moduleType:"component",name:Yee.name,layoutAttributes:z2(),supplyLayoutDefaults:TD(),draw:PD()}});var Ld=Z((tce,FD)=>{"use strict";var ND=hi();FD.exports={bgcolor:{valType:"color",dflt:ND.background,editType:"plot"},bordercolor:{valType:"color",dflt:ND.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var O2=Z((ace,ID)=>{"use strict";ID.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var qd=Z((nce,HD)=>{"use strict";HD.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var YD=Z(Ed=>{"use strict";var Uee=Zt(),Gee=Ta(),OD=qd(),Vee=Pa().LINE_SPACING,Dd=OD.name;function BD(e){var r=e&&e[Dd];return r&&r.visible}Ed.isVisible=BD;Ed.makeData=function(e){for(var r=Uee.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Pd=Ie(),UD=ct(),GD=Zt(),Wee=Ld(),Zee=O2();VD.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Pd.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=UD.newContainer(i,"rangeslider");function s(A,C){return Pd.coerce(l,o,Wee,A,C)}var u,f;function v(A,C){return Pd.coerce(u,f,Zee,A,C)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(A){return A.substr(0,A.indexOf("y"))===GD.name2id(a)}).map(function(A){return A.substr(A.indexOf("y"),A.length)}),g=Pd.simpleMap(m,GD.id2name),y=0;y{"use strict";var Xee=Zt().list,Jee=hf().getAutoRange,Kee=qd();ZD.exports=function(r){for(var t=Xee(r,"x",!0),a=0;a{"use strict";var Rd=Ir(),Qee=br(),$ee=Nt(),Lt=Ie(),zd=Lt.strTranslate,KD=at(),Rl=Er(),jee=cf(),ere=bd(),B2=Zt(),rre=Qn(),tre=wl(),Fr=qd();QD.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=H.max)J=z[U+1];else if(X=H.pmax)J=z[U+1];else if(X0?e.touches[0].clientX:0}function are(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Fr.slideBoxClassName).node(),i=e.select("rect."+Fr.grabAreaMinClassName).node(),l=e.select("rect."+Fr.grabAreaMaxClassName).node();function o(){var s=Rd.event,u=s.target,f=JD(s),v=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),m=rre.coverSlip();this.addEventListener("touchmove",g),this.addEventListener("touchend",y),m.addEventListener("mousemove",g),m.addEventListener("mouseup",y);function g(_){var w=JD(_),T=+w-f,b,A,C;switch(u){case n:if(C="ew-resize",h+T>t._length||d+T<0)return;b=h+T,A=d+T;break;case i:if(C="col-resize",h+T>t._length)return;b=h+T,A=d;break;case l:if(C="col-resize",d+T<0)return;b=h,A=d+T;break;default:C="ew-resize",b=v,A=v+T;break}if(A{"use strict";var hre=Ie(),dre=Ld(),pre=O2(),Y2=YD();jD.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:hre.extendFlat({},dre,{yaxis:pre})}}},layoutAttributes:Ld(),handleDefaults:WD(),calcAutorange:XD(),draw:$D(),isVisible:Y2.isVisible,makeData:Y2.makeData,autoMarginOpts:Y2.autoMarginOpts}});var Nd=Z((fce,tE)=>{"use strict";var mre=ma(),rE=hi(),yre=ct().templatedArray,gre=yre("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});tE.exports={visible:{valType:"boolean",editType:"plot"},buttons:gre,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:mre({editType:"plot"}),bgcolor:{valType:"color",dflt:rE.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:rE.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var U2=Z((cce,aE)=>{"use strict";aE.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var lE=Z((vce,iE)=>{"use strict";var Fd=Ie(),bre=Er(),xre=ct(),_re=Jn(),nE=Nd(),G2=U2();iE.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=xre.newContainer(t,"rangeselector");function s(d,m){return Fd.coerce(l,o,nE,d,m)}var u=_re(l,o,{name:"buttons",handleItemDefaults:wre,calendar:i}),f=s("visible",u.length>0);if(f){var v=Tre(t,a,n);s("x",v[0]),s("y",v[1]),Fd.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Fd.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",bre.contrast(h,G2.lightAmount,G2.darkAmount)),s("bordercolor"),s("borderwidth")}};function wre(e,r,t,a){var n=a.calendar;function i(s,u){return Fd.coerce(e,r,nE.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Tre(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var Mre=O1(),Are=Ie().titleCase;oE.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=kre(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function kre(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Mre["utc"+Are(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var mE=Z((dce,pE)=>{"use strict";var Hd=Ir(),Sre=br(),Cre=Nt(),uE=Er(),dE=at(),Ki=Ie(),fE=Ki.strTranslate,Id=Ta(),Lre=Zt(),Z2=Pa(),cE=Z2.LINE_SPACING,vE=Z2.FROM_TL,hE=Z2.FROM_BR,W2=U2(),qre=sE();pE.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Dre(r),Ere);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Hd.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(Ki.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Hd.select(this),v=qre(l,u);u._isActive=Pre(l,u,v),f.call(V2,o,u),f.call(zre,o,u,r),f.on("click",function(){r._dragged||Sre.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(V2,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(V2,o,u)})}),Fre(r,s,o,l._name,i)})};function Dre(e){for(var r=Lre.list(e,"x",!0),t=[],a=0;a{"use strict";yE.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Nd()}}},layoutAttributes:Nd(),handleDefaults:lE(),draw:mE()}});var Od=Z(X2=>{"use strict";var bE=Vt().extendFlat;X2.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",l={x:bE({},t,{}),y:bE({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};X2.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var Ire=Ie(),Hre=cs().counter,Ore=Od().attributes,xE=ya().idRegex,Bre=ct(),J2={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Hre("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[xE.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[xE.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Ore({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Bd(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Yre(e,r){var t=e.grid||{},a=Bd(r,t,"x"),n=Bd(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var v=Bre.newContainer(r,"grid");function h(C,k){return Ire.coerce(t,v,J2,C,k)}var d=h("rows",u),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!l&&!o){var g=h("pattern")==="independent";g&&(i=!0)}v._hasSubplotGrid=i;var y=h("roworder"),_=y==="top to bottom",w=i?.2:.1,T=i?.3:.1,b,A;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,A=r._splomGridDflt.yside),v._domains={x:_E("x",h,w,b,m),y:_E("y",h,T,A,d,_)}}function _E(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),v=f*(1-l),h=0;h{"use strict";AE.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var CE=Z((bce,SE)=>{"use strict";var kE=Hr(),Gre=br(),Vre=Ie(),Wre=ct(),Zre=K2();SE.exports=function(e,r,t,a){var n="error_"+a.axis,i=Wre.newContainer(r,n),l=e[n]||{};function o(m,g){return Vre.coerce(l,i,Zre,m,g)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),v=!0;f!=="sqrt"&&(v=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),v||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),v||o("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&o(h,!(l.color||kE(l.thickness)||kE(l.width)))}(!a.inherit||!i[h])&&(o("color",t),o("thickness"),o("width",Gre.traceIs(r,"gl3d")?0:4))}}});var Q2=Z((xce,qE)=>{"use strict";qE.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var v=+n[f];return[v,v]};var i=r.arrayminus||[];return function(u,f){var v=+n[f],h=+i[f];return!isNaN(v)||!isNaN(h)?[h||0,v||0]:[NaN,NaN]}}else{var l=LE(t,r.value),o=LE(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function LE(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var PE=Z((_ce,EE)=>{"use strict";var $2=Hr(),Xre=br(),j2=dt(),Jre=Ie(),Kre=Q2();EE.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var RE=Ir(),zl=Hr(),Qre=at(),$re=on();zE.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var v=f[0].trace,h=v.error_x||{},d=v.error_y||{},m;v.ids&&(m=function(w){return w.id});var g=$re.hasMarkers(v)&&v.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=RE.select(this).selectAll("g.errorbar").data(f,m);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var _=y.enter().append("g").classed("errorbar",!0);s&&_.style("opacity",0).transition().duration(n.duration).style("opacity",1),Qre.setClipUrl(y,a.layerClipId,r),y.each(function(w){var T=RE.select(this),b=jre(w,l,o);if(!(g&&!w.vis)){var A,C=T.select("path.yerror");if(d.visible&&zl(b.x)&&zl(b.yh)&&zl(b.ys)){var k=d.width;A="M"+(b.x-k)+","+b.yh+"h"+2*k+"m-"+k+",0V"+b.ys,b.noYS||(A+="m-"+k+",0h"+2*k),i=!C.size(),i?C=T.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(C=C.transition().duration(n.duration).ease(n.easing)),C.attr("d",A)}else C.remove();var q=T.select("path.xerror");if(h.visible&&zl(b.y)&&zl(b.xh)&&zl(b.xs)){var D=(h.copy_ystyle?d:h).width;A="M"+b.xh+","+(b.y-D)+"v"+2*D+"m0,-"+D+"H"+b.xs,b.noXS||(A+="m0,-"+D+"v"+2*D),i=!q.size(),i?q=T.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(q=q.transition().duration(n.duration).ease(n.easing)),q.attr("d",A)}else q.remove()}})}})};function jre(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),zl(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),zl(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var HE=Z((Tce,IE)=>{"use strict";var ete=Ir(),FE=Er();IE.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=ete.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(FE.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(FE.stroke,i.color)})}});var YE=Z((Mce,BE)=>{"use strict";var yc=Ie(),OE=pi().overrideAll,gc=K2(),Bo={error_x:yc.extendFlat({},gc),error_y:yc.extendFlat({},gc)};delete Bo.error_x.copy_zstyle;delete Bo.error_y.copy_zstyle;delete Bo.error_y.copy_ystyle;var bc={error_x:yc.extendFlat({},gc),error_y:yc.extendFlat({},gc),error_z:yc.extendFlat({},gc)};delete bc.error_x.copy_ystyle;delete bc.error_y.copy_ystyle;delete bc.error_z.copy_ystyle;delete bc.error_z.copy_zstyle;BE.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Bo,bar:Bo,histogram:Bo,scatter3d:OE(bc,"calc","nested"),scattergl:OE(Bo,"calc","nested")}},supplyDefaults:CE(),calc:PE(),makeComputeError:Q2(),plot:NE(),style:HE(),hoverInfo:rte};function rte(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var GE=Z((Ace,UE)=>{"use strict";UE.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var QE=Z((kce,KE)=>{"use strict";var Nl=Ir(),e3=bn(),Ud=Nt(),VE=br(),Qi=dt(),Yd=Qn(),Nn=Ie(),fi=Nn.strTranslate,JE=Vt().extendFlat,r3=wl(),ui=at(),t3=Er(),tte=cf(),ate=Ta(),nte=Tn().flipScale,ite=c2(),lte=v2(),ote=Xn(),a3=Pa(),WE=a3.LINE_SPACING,ZE=a3.FROM_TL,XE=a3.FROM_BR,xt=GE().cn;function ste(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+xt.colorbar).data(ute(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(xt.colorbar,!0),t.each(function(a){var n=Nl.select(this);Nn.ensureSingle(n,"rect",xt.cbbg),Nn.ensureSingle(n,"g",xt.cbfills),Nn.ensureSingle(n,"g",xt.cblines),Nn.ensureSingle(n,"g",xt.cbaxis,function(l){l.classed(xt.crisp,!0)}),Nn.ensureSingle(n,"g",xt.cbtitleunshift,function(l){l.append("g").classed(xt.cbtitle,!0)}),Nn.ensureSingle(n,"rect",xt.cboutline);var i=fte(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&cte(n,a,e)}),t.exit().each(function(a){Ud.autoMargin(e,a._id)}).remove(),t.order()}function ute(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(T){return JE(T,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?nte(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f1){var ee=Math.pow(10,Math.floor(Math.log(Y)/Math.LN10));se*=ee*Nn.roundUp(Y/ee,[2,5,10]),(Math.abs(F.start)/F.size+1e-6)%1<2e-6&&(fe.tick0=0)}fe.dtick=se}fe.domain=a?[re+m/b.h,re+G-m/b.h]:[re+d/b.w,re+G-d/b.w],fe.setScale(),e.attr("transform",fi(Math.round(b.l),Math.round(b.t)));var B=e.select("."+xt.cbtitleunshift).attr("transform",fi(-Math.round(b.l),-Math.round(b.t))),ye=fe.ticklabelposition,Me=fe.title.font.size,ge=e.select("."+xt.cbaxis),Re,Ne=0,Ee=0;function ze(Oe,ne){var Te={propContainer:fe,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:T._dfltTitle.colorbar,containerGroup:e.select("."+xt.cbtitle)},Xe=Oe.charAt(0)==="h"?Oe.substr(1):"h"+Oe;e.selectAll("."+Xe+",."+Xe+"-math-group").remove(),tte.draw(t,Oe,JE(Te,ne||{}))}function Ve(){if(a&&ke||!a&&!ke){var Oe,ne;q==="top"&&(Oe=d+b.l+K*g,ne=m+b.t+Q*(1-re-G)+3+Me*.75),q==="bottom"&&(Oe=d+b.l+K*g,ne=m+b.t+Q*(1-re)-3-Me*.25),q==="right"&&(ne=m+b.t+Q*y+3+Me*.75,Oe=d+b.l+K*re),ze(fe._id+"title",{attributes:{x:Oe,y:ne,"text-anchor":a?"start":"middle"}})}}function Ue(){if(a&&!ke||!a&&ke){var Oe=fe.position||0,ne=fe._offset+fe._length/2,Te,Xe;if(q==="right")Xe=ne,Te=b.l+K*Oe+10+Me*(fe.showticklabels?1:.5);else if(Te=ne,q==="bottom"&&(Xe=b.t+Q*Oe+10+(ye.indexOf("inside")===-1?fe.tickfont.size:0)+(fe.ticks!=="inside"&&r.ticklen||0)),q==="top"){var cr=k.text.split("
").length;Xe=b.t+Q*Oe+10-J-WE*Me*cr}ze((a?"h":"v")+fe._id+"title",{avoid:{selection:Nl.select(t).selectAll("g."+fe._id+"tick"),side:q,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?T.width:T.height},attributes:{x:Te,y:Xe,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function De(){if(!a&&!ke||a&&ke){var Oe=e.select("."+xt.cbtitle),ne=Oe.select("text"),Te=[-s/2,s/2],Xe=Oe.select(".h"+fe._id+"title-math-group").node(),cr=15.6;ne.node()&&(cr=parseInt(ne.node().style.fontSize,10)*WE);var fr;if(Xe?(fr=ui.bBox(Xe),Ee=fr.width,Ne=fr.height,Ne>cr&&(Te[1]-=(Ne-cr)/2)):ne.node()&&!ne.classed(xt.jsPlaceholder)&&(fr=ui.bBox(ne.node()),Ee=fr.width,Ne=fr.height),a){if(Ne){if(Ne+=5,q==="top")fe.domain[1]-=Ne/b.h,Te[1]*=-1;else{fe.domain[0]+=Ne/b.h;var le=ate.lineCount(ne);Te[1]+=(1-le)*cr}Oe.attr("transform",fi(Te[0],Te[1])),fe.setScale()}}else Ee&&(q==="right"&&(fe.domain[0]+=(Ee+Me/2)/b.w),Oe.attr("transform",fi(Te[0],Te[1])),fe.setScale())}e.selectAll("."+xt.cbfills+",."+xt.cblines).attr("transform",a?fi(0,Math.round(b.h*(1-fe.domain[1]))):fi(Math.round(b.w*fe.domain[0]),0)),ge.attr("transform",a?fi(0,Math.round(-b.t)):fi(Math.round(-b.l),0));var Se=e.select("."+xt.cbfills).selectAll("rect."+xt.cbfill).attr("style","").data(O);Se.enter().append("rect").classed(xt.cbfill,!0).attr("style",""),Se.exit().remove();var Fe=D.map(fe.c2p).map(Math.round).sort(function(vr,Ke){return vr-Ke});Se.each(function(vr,Ke){var Pe=[Ke===0?D[0]:(O[Ke]+O[Ke-1])/2,Ke===O.length-1?D[1]:(O[Ke]+O[Ke+1])/2].map(fe.c2p).map(Math.round);a&&(Pe[1]=Nn.constrain(Pe[1]+(Pe[1]>Pe[0])?1:-1,Fe[0],Fe[1]));var ae=Nl.select(this).attr(a?"x":"y",ie).attr(a?"y":"x",Nl.min(Pe)).attr(a?"width":"height",Math.max(J,2)).attr(a?"height":"width",Math.max(Nl.max(Pe)-Nl.min(Pe),2));if(r._fillgradient)ui.gradient(ae,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var ue=z(vr).replace("e-","");ae.attr("fill",e3(ue).toHexString())}});var We=e.select("."+xt.cblines).selectAll("path."+xt.cbline).data(C.color&&C.width?X:[]);We.enter().append("path").classed(xt.cbline,!0),We.exit().remove(),We.each(function(vr){var Ke=ie,Pe=Math.round(fe.c2p(vr))+C.width/2%1;Nl.select(this).attr("d","M"+(a?Ke+","+Pe:Pe+","+Ke)+(a?"h":"v")+J).call(ui.lineGroupStyle,C.width,R(vr),C.dash)}),ge.selectAll("g."+fe._id+"tick,path").remove();var Ge=ie+J+(s||0)/2-(r.ticks==="outside"?1:0),Je=Qi.calcTicks(fe),je=Qi.getTickSigns(fe)[2];return Qi.drawTicks(t,fe,{vals:fe.ticks==="inside"?Qi.clipEnds(fe,Je):Je,layer:ge,path:Qi.makeTickPath(fe,Ge,je),transFn:Qi.makeTransTickFn(fe)}),Qi.drawLabels(t,fe,{vals:Je,layer:ge,transFn:Qi.makeTransTickLabelFn(fe),labelFns:Qi.makeLabelFns(fe,Ge)})}function He(){var Oe,ne=J+s/2;ye.indexOf("inside")===-1&&(Oe=ui.bBox(ge.node()),ne+=a?Oe.width:Oe.height),Re=B.select("text");var Te=0,Xe=a&&q==="top",cr=!a&&q==="right",fr=0;if(Re.node()&&!Re.classed(xt.jsPlaceholder)){var le,Se=B.select(".h"+fe._id+"title-math-group").node();Se&&(a&&ke||!a&&!ke)?(Oe=ui.bBox(Se),Te=Oe.width,le=Oe.height):(Oe=ui.bBox(B.node()),Te=Oe.right-b.l-(a?ie:Le),le=Oe.bottom-b.t-(a?Le:ie),!a&&q==="top"&&(ne+=Oe.height,fr=Oe.height)),cr&&(Re.attr("transform",fi(Te/2+Me/2,0)),Te*=2),ne=Math.max(ne,a?Te:le)}var Fe=(a?d:m)*2+ne+u+s/2,We=0;!a&&k.text&&h==="bottom"&&y<=0&&(We=Fe/2,Fe+=We,fr+=We),T._hColorbarMoveTitle=We,T._hColorbarMoveCBTitle=fr;var Ge=u+s,Je=(a?ie:Le)-Ge/2-(a?d:0),je=(a?Le:ie)-(a?H:m+fr-We);e.select("."+xt.cbbg).attr("x",Je).attr("y",je).attr(a?"width":"height",Math.max(Fe-We,2)).attr(a?"height":"width",Math.max(H+Ge,2)).call(t3.fill,f).call(t3.stroke,r.bordercolor).style("stroke-width",u);var vr=cr?Math.max(Te-10,0):0;e.selectAll("."+xt.cboutline).attr("x",(a?ie:Le+d)+vr).attr("y",(a?Le+m-H:ie)+(Xe?Ne:0)).attr(a?"width":"height",Math.max(J,2)).attr(a?"height":"width",Math.max(H-(a?2*m+Ne:2*d+vr),2)).call(t3.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ke=a?pe*Fe:0,Pe=a?0:(1-me)*Fe-fr;if(Ke=w?b.l-Ke:-Ke,Pe=_?b.t-Pe:-Pe,e.attr("transform",fi(Ke,Pe)),!a&&(u||e3(f).getAlpha()&&!e3.equals(T.paper_bgcolor,f))){var ae=ge.selectAll("text"),ue=ae[0].length,qe=e.select("."+xt.cbbg).node(),Ce=ui.bBox(qe),or=ui.getTranslate(e),lr=2;ae.each(function(ua,fa){var zt=0,Oa=ue-1;if(fa===zt||fa===Oa){var yr=ui.bBox(this),lt=ui.getTranslate(this),Vr;if(fa===Oa){var gt=yr.right+lt.x,kt=Ce.right+or.x+Le-u-lr+g;Vr=kt-gt,Vr>0&&(Vr=0)}else if(fa===zt){var ot=yr.left+lt.x,bt=Ce.left+or.x+Le+u+lr;Vr=bt-ot,Vr<0&&(Vr=0)}Vr&&(ue<3?this.setAttribute("transform","translate("+Vr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ar={},Mr=ZE[v],Br=XE[v],et=ZE[h],Qr=XE[h],Kt=Fe-J;a?(i==="pixels"?(ar.y=y,ar.t=H*et,ar.b=H*Qr):(ar.t=ar.b=0,ar.yt=y+n*et,ar.yb=y-n*Qr),o==="pixels"?(ar.x=g,ar.l=Fe*Mr,ar.r=Fe*Br):(ar.l=Kt*Mr,ar.r=Kt*Br,ar.xl=g-l*Mr,ar.xr=g+l*Br)):(i==="pixels"?(ar.x=g,ar.l=H*Mr,ar.r=H*Br):(ar.l=ar.r=0,ar.xl=g+n*Mr,ar.xr=g-n*Br),o==="pixels"?(ar.y=1-y,ar.t=Fe*et,ar.b=Fe*Qr):(ar.t=Kt*et,ar.b=Kt*Qr,ar.yt=y-l*et,ar.yb=y+l*Qr));var qt=r.y<.5?"b":"t",yt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var At={r:T.width-Je-Ke,l:Je+ar.r,b:T.height-je-Pe,t:je+ar.b};w&&_?Ud.autoMargin(t,r._id,ar):w?t._fullLayout._reservedMargin[r._id][qt]=At[qt]:_||a?t._fullLayout._reservedMargin[r._id][yt]=At[yt]:t._fullLayout._reservedMargin[r._id][qt]=At[qt]}return Nn.syncOrAsync([Ud.previousPromises,Ve,De,Ue,Ud.previousPromises,He],t)}function cte(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Yd.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),r3(e)},moveFn:function(u,f){e.attr("transform",l+fi(u,f)),o=Yd.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Yd.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Yd.getCursor(o,s,r.xanchor,r.yanchor);r3(e,v)},doneFn:function(){if(r3(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?VE.call("_guiRestyle",t,u,r._traceIndex):VE.call("_guiRelayout",t,u)}}})}function vte(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";$E.exports={moduleType:"component",name:"colorbar",attributes:t0(),supplyDefaults:im(),draw:QE().draw,hasColorbar:Xp()}});var rP=Z((Cce,eP)=>{"use strict";eP.exports={moduleType:"component",name:"legend",layoutAttributes:ry(),supplyLayoutDefaults:ny(),draw:my(),style:vy()}});var aP=Z((Lce,tP)=>{"use strict";tP.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var iP=Z((qce,nP)=>{"use strict";nP.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var i3=Z((Dce,uP)=>{"use strict";var dte=br(),sP=Ie(),n3=sP.extendFlat,lP=sP.extendDeep;function oP(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function pte(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}uP.exports=function(r,t){var a,n=r.data,i=r.layout,l=lP([],n),o=lP({},i,oP(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var mte=Yv().EventEmitter,yte=br(),gte=Ie(),fP=Do(),bte=i3(),xte=Qh(),_te=$h();function wte(e,r){var t=new mte,a=bte(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=fP.getDelay(n._fullLayout);setTimeout(function(){var s=xte(n),u=document.createElement("canvas");u.id=gte.randstr(),t=_te({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=fP.getRedrawFunc(n);return yte.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}cP.exports=wte});var pP=Z((Pce,dP)=>{"use strict";var hP=Do(),Tte={getDelay:hP.getDelay,getRedrawFunc:hP.getRedrawFunc,clone:i3(),toSVG:Qh(),svgToImg:$h(),toImage:vP(),downloadImage:Rg()};dP.exports=Tte});var yP=Z($i=>{"use strict";$i.version=iv().version;ob();K4();var Mte=br(),xc=$i.register=Mte.register,o3=xS(),mP=Object.keys(o3);for(Gd=0;Gd{"use strict";gP.exports=yP()});var Wd=Z((Nce,xP)=>{"use strict";xP.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var _c=Z((Fce,MP)=>{"use strict";var Mt=qo(),_P=r0().axisHoverFormat,Ate=yi().hovertemplateAttrs,kte=yi().texttemplateAttrs,TP=sf(),Ste=ma(),wP=Wd(),Cte=mi().pattern,Yo=Vt().extendFlat,s3=Ste({editType:"calc",arrayOk:!0,colorEditType:"style"}),Lte=Mt.marker,qte=Lte.line,Dte=Yo({},qte.width,{dflt:0}),Ete=Yo({width:Dte,editType:"calc"},TP("marker.line")),Pte=Yo({line:Ete,editType:"calc"},TP("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Cte,cornerradius:{valType:"any",editType:"calc"}});MP.exports={x:Mt.x,x0:Mt.x0,dx:Mt.dx,y:Mt.y,y0:Mt.y0,dy:Mt.dy,xperiod:Mt.xperiod,yperiod:Mt.yperiod,xperiod0:Mt.xperiod0,yperiod0:Mt.yperiod0,xperiodalignment:Mt.xperiodalignment,yperiodalignment:Mt.yperiodalignment,xhoverformat:_P("x"),yhoverformat:_P("y"),text:Mt.text,texttemplate:kte({editType:"plot"},{keys:wP.eventDataKeys}),hovertext:Mt.hovertext,hovertemplate:Ate({},{keys:wP.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Yo({},s3,{}),insidetextfont:Yo({},s3,{}),outsidetextfont:Yo({},s3,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Yo({},Mt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Pte,offsetgroup:Mt.offsetgroup,alignmentgroup:Mt.alignmentgroup,selected:{marker:{opacity:Mt.selected.marker.opacity,color:Mt.selected.marker.color,editType:"style"},textfont:Mt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Mt.unselected.marker.opacity,color:Mt.unselected.marker.color,editType:"style"},textfont:Mt.unselected.textfont,editType:"style"},zorder:Mt.zorder}});var u3=Z((Ice,AP)=>{"use strict";AP.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var LP=Z((Hce,CP)=>{"use strict";var Rte=Er(),kP=Tn().hasColorscale,SP=Ls(),zte=Ie().coercePattern;CP.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=kP(r,"marker");o&&SP(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Rte.defaultLine),kP(r,"marker.line")&&SP(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),zte(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var wc=Z((Oce,zP)=>{"use strict";var qP=Hr(),xu=Ie(),DP=Er(),Nte=br(),Fte=Fg(),Ite=Ig(),Hte=LP(),Ote=Hg(),EP=_c(),Zd=xu.coerceFont;function Bte(e,r,t,a){function n(u,f){return xu.coerce(e,r,EP,u,f)}var i=Fte(e,r,a,n);if(!i){r.visible=!1;return}Ite(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var l=n("textposition");RP(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Hte(e,r,n,t,a);var o=(r.marker.line||{}).color,s=Nte.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||DP.defaultLine,{axis:"y"}),s(e,r,o||DP.defaultLine,{axis:"x",inherit:"y"}),xu.coerceSelectionMarkerOpacity(r,n)}function Yte(e,r){var t,a;function n(o,s){return xu.coerce(a._input,a,EP,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&qP(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function RP(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,v=i.moduleHasInsideanchor!==!1,h=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",m=d||n==="inside",g=d||n==="outside";if(m||g){var y=Zd(a,"textfont",t.font),_=xu.extendFlat({},y),w=e.textfont&&e.textfont.color,T=!w;if(T&&delete _.color,Zd(a,"insidetextfont",_),h){var b=xu.extendFlat({},y);T&&delete b.color,Zd(a,"pathbar.textfont",b)}g&&Zd(a,"outsidetextfont",y),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate")}m&&v&&a("insidetextanchor")}zP.exports={supplyDefaults:Bte,crossTraceDefaults:Yte,handleText:RP,validateCornerradius:PP}});var FP=Z((Bce,NP)=>{"use strict";var Ute=br(),Gte=dt(),Vte=Ie(),Wte=u3(),Zte=wc().validateCornerradius;NP.exports=function(e,r,t){function a(g,y){return Vte.coerce(e,r,Wte,g,y)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[h]&&(l=!0),o[h]=!0),v.visible&&v.type==="histogram"){var d=Gte.getFromId({_fullLayout:r},v[v.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var m=a("barcornerradius");r.barcornerradius=Zte(m)}});var f3=Z((Yce,IP)=>{"use strict";var _u=Ie();IP.exports=function(r,t){for(var a=0;a{"use strict";var HP=dt(),OP=Og(),BP=Tn().hasColorscale,YP=i0(),Xte=f3(),Jte=Gg();UP.exports=function(r,t){var a=HP.getFromId(r,t.xaxis||"x"),n=HP.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,v={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",v),o=n.makeCalcdata(t,"y"),s=OP(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",v),o=a.makeCalcdata(t,"x"),s=OP(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var h=Math.min(l.length,i.length),d=new Array(h),m=0;m{"use strict";var Kte=Ir(),Qte=Ie();function $te(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=Kte.select(this).select("text");Qte.setTransormAndDisplay(u,s)}})}}function jte(e,r,t){if(t.uniformtext.mode){var a=VP(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var rae=Hr(),tae=bn(),ZP=Ie().isArrayOrTypedArray;Uo.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Uo.coerceNumber=function(e,r,t){if(rae(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Uo.coerceColor=function(e,r,t){return tae(r).isValid()?r:t!==void 0?t:e.dflt};Uo.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Uo.getValue=function(e,r){var t;return ZP(e)?r{"use strict";var Mc=Ir(),aae=Er(),Ac=at(),XP=Ie(),JP=br(),KP=Tc().resizeText,c3=_c(),nae=c3.textfont,iae=c3.insidetextfont,lae=c3.outsidetextfont,xa=Xd();function oae(e){var r=Mc.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");KP(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&Mc.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=Mc.select(this),l=n[0].trace;QP(i,l,e)}),JP.getComponentMethod("errorbars","style")(r)}function QP(e,r,t){Ac.pointStyle(e.selectAll("path"),r,t),$P(e,r,t)}function $P(e,r,t){e.selectAll("text").each(function(a){var n=Mc.select(this),i=XP.ensureUniformFontSize(t,jP(n,a,r,t));Ac.font(n,i)})}function sae(e,r,t){var a=r[0].trace;a.selectedpoints?uae(t,a,e):(QP(t,a,e),JP.getComponentMethod("errorbars","style")(t))}function uae(e,r,t){Ac.selectedPointStyle(e.selectAll("path"),r),fae(e.selectAll("text"),r,t)}function fae(e,r,t){e.each(function(a){var n=Mc.select(this),i;if(a.selected){i=XP.ensureUniformFontSize(t,jP(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),Ac.font(n,i)}else Ac.selectedTextStyle(n,r)})}function jP(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=aR(r,t);i=rR(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=tR(t,r.i,n));return i}function eR(e,r,t){return v3(nae,e.textfont,r,t)}function rR(e,r,t,a){var n=eR(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:aae.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),v3(iae,e.insidetextfont,r,n)}function tR(e,r,t){var a=eR(e,r,t);return v3(lae,e.outsidetextfont,r,a)}function v3(e,r,t,a){r=r||{};var n=xa.getValue(r.family,t),i=xa.getValue(r.size,t),l=xa.getValue(r.color,t),o=xa.getValue(r.weight,t),s=xa.getValue(r.style,t),u=xa.getValue(r.variant,t),f=xa.getValue(r.textcase,t),v=xa.getValue(r.lineposition,t),h=xa.getValue(r.shadow,t);return{family:xa.coerceString(e.family,n,a.family),size:xa.coerceNumber(e.size,i,a.size),color:xa.coerceColor(e.color,l,a.color),weight:xa.coerceString(e.weight,o,a.weight),style:xa.coerceString(e.style,s,a.style),variant:xa.coerceString(e.variant,u,a.variant),textcase:xa.coerceString(e.variant,f,a.textcase),lineposition:xa.coerceString(e.variant,v,a.lineposition),shadow:xa.coerceString(e.variant,h,a.shadow)}}function aR(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}nR.exports={style:oae,styleTextPoints:$P,styleOnSelect:sae,getInsideTextFont:rR,getOutsideTextFont:tR,getBarColor:aR,resizeText:KP}});var hR=Z((Zce,vR)=>{"use strict";var Kd=Ir(),Qd=Hr(),oa=Ie(),cae=Ta(),vae=Er(),Fl=at(),hae=br(),$d=dt().tickText,iR=Tc(),dae=iR.recordMinTextSize,pae=iR.clearMinTextSize,h3=Jd(),wu=Xd(),mae=Wd(),lR=_c(),yae=lR.text,gae=lR.textposition,bae=xi().appendArrayPointValue,Ha=mae.TEXTPAD;function xae(e){return e.id}function _ae(e){if(e.ids)return xae}function d3(e){return(e>0)-(e<0)}function Pi(e,r){return e0}function Tae(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},pae("bar",s));var f=oa.makeTraceGroups(a,t,"trace bars").each(function(v){var h=Kd.select(this),d=v[0].trace,m=v[0].t,g=d.type==="waterfall",y=d.type==="funnel",_=d.type==="histogram",w=d.type==="bar",T=w||y,b=0;g&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var A=d.orientation==="h",C=sR(n),k=oa.ensureSingle(h,"g","points"),q=_ae(d),D=k.selectAll("g.point").data(oa.identity,q);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(z,F){var I=Kd.select(this),O=wae(z,l,o,A),X=O[0][0],J=O[0][1],U=O[1][0],H=O[1][1],G=(A?J-X:H-U)===0;G&&T&&wu.getLineWidth(d,z)&&(G=!1),G||(G=!Qd(X)||!Qd(J)||!Qd(U)||!Qd(H)),z.isBlank=G,G&&(A?J=X:H=U),b&&!G&&(A?(X-=Pi(X,J)*b,J+=Pi(X,J)*b):(U-=Pi(U,H)*b,H+=Pi(U,H)*b));var K,Q;if(d.type==="waterfall"){if(!G){var ie=d[z.dir].marker;K=ie.line.width,Q=ie.color}}else K=wu.getLineWidth(d,z),Q=z.mc||d.marker.color;function pe(ne){var Te=Kd.round(K/2%1,2);return n.gap===0&&n.groupgap===0?Kd.round(Math.round(ne)-Te,2):ne}function me(ne,Te,Xe){return Xe&&ne===Te?ne:Math.abs(ne-Te)>=2?pe(ne):ne>Te?Math.ceil(ne):Math.floor(ne)}var Ae=vae.opacity(Q),re=Ae<1||K>.01?pe:me;e._context.staticPlot||(X=re(X,J,A),J=re(J,X,A),U=re(U,H,!A),H=re(H,U,!A));var Le=A?l.c2p:o.c2p,fe;z.s0>0?fe=z._sMax:z.s0<0?fe=z._sMin:fe=z.s1>0?z._sMax:z._sMin;function ke(ne,Te){if(!ne)return 0;var Xe=Math.abs(A?H-U:J-X),cr=Math.abs(A?J-X:H-U),fr=re(Math.abs(Le(fe,!0)-Le(0,!0))),le=z.hasB?Math.min(Xe/2,cr/2):Math.min(Xe/2,fr),Se;if(Te==="%"){var Fe=Math.min(50,ne);Se=Xe*(Fe/100)}else Se=ne;return re(Math.max(Math.min(Se,le),0))}var se=w||_?ke(m.cornerradiusvalue,m.cornerradiusform):0,be,Y,ee="M"+X+","+U+"V"+H+"H"+J+"V"+U+"Z",B=0;if(se&&z.s){var ye=d3(z.s0)===0||d3(z.s)===d3(z.s0)?z.s1:z.s0;if(B=re(z.hasB?0:Math.abs(Le(fe,!0)-Le(ye,!0))),B0?Math.sqrt(B*(2*se-B)):0,ze=Me>0?Math.max:Math.min;be="M"+X+","+U+"V"+(H-Ne*ge)+"H"+ze(J-(se-B)*Me,X)+"A "+se+","+se+" 0 0 "+Re+" "+J+","+(H-se*ge-Ee)+"V"+(U+se*ge+Ee)+"A "+se+","+se+" 0 0 "+Re+" "+ze(J-(se-B)*Me,X)+","+(U+Ne*ge)+"Z"}else if(z.hasB)be="M"+(X+se*Me)+","+U+"A "+se+","+se+" 0 0 "+Re+" "+X+","+(U+se*ge)+"V"+(H-se*ge)+"A "+se+","+se+" 0 0 "+Re+" "+(X+se*Me)+","+H+"H"+(J-se*Me)+"A "+se+","+se+" 0 0 "+Re+" "+J+","+(H-se*ge)+"V"+(U+se*ge)+"A "+se+","+se+" 0 0 "+Re+" "+(J-se*Me)+","+U+"Z";else{Y=Math.abs(H-U)+B;var Ve=Y0?Math.sqrt(B*(2*se-B)):0,De=ge>0?Math.max:Math.min;be="M"+(X+Ve*Me)+","+U+"V"+De(H-(se-B)*ge,U)+"A "+se+","+se+" 0 0 "+Re+" "+(X+se*Me-Ue)+","+H+"H"+(J-se*Me+Ue)+"A "+se+","+se+" 0 0 "+Re+" "+(J-Ve*Me)+","+De(H-(se-B)*ge,U)+"V"+U+"Z"}}else be=ee}else be=ee;var He=oR(oa.ensureSingle(I,"path"),s,n,i);if(He.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((J-X)*(H-U))||G&&e._context.staticPlot?"M0,0Z":be).call(Fl.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&C){var Oe=Fl.makePointStyleFns(d);Fl.singlePointStyle(z,He,d,Oe,e)}Mae(e,r,I,v,F,X,J,U,H,se,B,n,i),r.layerClipId&&Fl.hideOutsideRangePoint(z,I.select("text"),l,o,d.xcalendar,d.ycalendar)});var R=d.cliponaxis===!1;Fl.setClipUrl(h,R?null:r.layerClipId,e)});hae.getComponentMethod("errorbars","plot")(e,f,r,n)}function Mae(e,r,t,a,n,i,l,o,s,u,f,v,h){var d=r.xaxis,m=r.yaxis,g=e._fullLayout,y;function _(Y,ee,B){var ye=oa.ensureSingle(Y,"text").text(ee).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(Fl.font,B).call(cae.convertToTspans,e);return ye}var w=a[0].trace,T=w.orientation==="h",b=Sae(g,a,n,d,m);y=Cae(w,n);var A=v.mode==="stack"||v.mode==="relative",C=a[n],k=!A||C._outmost,q=C.hasB,D=u&&u-f>Ha;if(!b||y==="none"||(C.isBlank||i===l||o===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var R=g.font,z=h3.getBarColor(a[n],w),F=h3.getInsideTextFont(w,n,R,z),I=h3.getOutsideTextFont(w,n,R),O=w.insidetextanchor||"end",X=t.datum();T?d.type==="log"&&X.s0<=0&&(d.range[0]0&&pe>0,re;D?q?re=Go(H-2*u,G,ie,pe,T)||Go(H,G-2*u,ie,pe,T):T?re=Go(H-(u-f),G,ie,pe,T)||Go(H,G-2*(u-f),ie,pe,T):re=Go(H,G-(u-f),ie,pe,T)||Go(H-2*(u-f),G,ie,pe,T):re=Go(H,G,ie,pe,T),Ae&&re?y="inside":(y="outside",K.remove(),K=null)}else y="inside";if(!K){me=oa.ensureUniformFontSize(e,y==="outside"?I:F),K=_(t,b,me);var Le=K.attr("transform");if(K.attr("transform",""),Q=Fl.bBox(K.node()),ie=Q.width,pe=Q.height,K.attr("transform",Le),ie<=0||pe<=0){K.remove();return}}var fe=w.textangle,ke,se;y==="outside"?(se=w.constraintext==="both"||w.constraintext==="outside",ke=kae(i,l,o,s,Q,{isHorizontal:T,constrained:se,angle:fe})):(se=w.constraintext==="both"||w.constraintext==="inside",ke=cR(i,l,o,s,Q,{isHorizontal:T,constrained:se,angle:fe,anchor:O,hasB:q,r:u,overhead:f})),ke.fontSize=me.size,dae(w.type==="histogram"?"bar":w.type,ke,g),C.transform=ke;var be=oR(K,g,v,h);oa.setTransormAndDisplay(be,ke)}function Go(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function uR(e){return e==="auto"?0:e}function fR(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function cR(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",v=u==="start",h=i.leftToRight||0,d=(h+1)/2,m=1-d,g=i.hasB,y=i.r,_=i.overhead,w=n.width,T=n.height,b=Math.abs(r-e),A=Math.abs(a-t),C=b>2*Ha&&A>2*Ha?Ha:0;b-=2*C,A-=2*C;var k=uR(s);s==="auto"&&!(w<=b&&T<=A)&&(w>b||T>A)&&(!(w>A||T>b)||wHa){var z=Aae(e,r,t,a,q,y,_,l,g);D=z.scale,R=z.pad}else D=1,o&&(D=Math.min(1,b/q.x,A/q.y)),R=0;var F=n.left*m+n.right*d,I=(n.top+n.bottom)/2,O=(e+Ha)*m+(r-Ha)*d,X=(t+a)/2,J=0,U=0;if(v||f){var H=(l?q.x:q.y)/2;y&&(f||g)&&(C+=R);var G=l?Pi(e,r):Pi(t,a);l?v?(O=e+G*C,J=-G*H):(O=r-G*C,J=G*H):v?(X=t+G*C,U=-G*H):(X=a-G*C,U=G*H)}return{textX:F,textY:I,targetX:O,targetY:X,anchorX:J,anchorY:U,scale:D,rotate:k}}function Aae(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*Ha),f=Math.max(0,Math.abs(a-t)-2*Ha),v=i-Ha,h=l?v-Math.sqrt(v*v-(v-l)*(v-l)):v,d=s?v*2:o?v-l:2*h,m=s?v*2:o?2*h:v-l,g,y,_,w,T;return n.y/n.x>=f/(u-d)?w=f/n.y:n.y/n.x<=(f-m)/u?w=u/n.x:!s&&o?(g=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-v)-n.y*(f/2-v),_=(u-v)*(u-v)+(f/2-v)*(f/2-v)-v*v,w=(-y+Math.sqrt(y*y-4*g*_))/(2*g)):s?(g=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-v)-n.y*(f/2-v),_=(u/2-v)*(u/2-v)+(f/2-v)*(f/2-v)-v*v,w=(-y+Math.sqrt(y*y-4*g*_))/(2*g)):(g=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-v)-2*n.y*(f-v),_=(u/2-v)*(u/2-v)+(f-v)*(f-v)-v*v,w=(-y+Math.sqrt(y*y-4*g*_))/(2*g)),w=Math.min(1,w),o?T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(f-n.y*w)/2)*(v-(f-n.y*w)/2)))-l):T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(u-n.x*w)/2)*(v-(u-n.x*w)/2)))-l),{scale:w,pad:T}}function kae(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,v=Math.abs(r-e),h=Math.abs(a-t),d;l?d=h>2*Ha?Ha:0:d=v>2*Ha?Ha:0;var m=1;o&&(m=l?Math.min(1,h/f):Math.min(1,v/u));var g=uR(s),y=fR(n,g),_=(l?y.x:y.y)/2,w=(n.left+n.right)/2,T=(n.top+n.bottom)/2,b=(e+r)/2,A=(t+a)/2,C=0,k=0,q=l?Pi(r,e):Pi(t,a);return l?(b=r-q*d,C=q*_):(A=a+q*d,k=-q*_),{textX:w,textY:T,targetX:b,targetY:A,anchorX:C,anchorY:k,scale:m,rotate:g}}function Sae(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=Lae(e,r,t,a,n):i.textinfo?o=qae(r,t,a,n):o=wu.getValue(i.text,t),wu.coerceString(yae,o)}function Cae(e,r){var t=wu.getValue(e.textposition,r);return wu.coerceEnumerated(gae,t)}function Lae(e,r,t,a,n){var i=r[0].trace,l=oa.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",v,h,d,m;f?(v="y",h=n,d="x",m=a):(v="x",h=a,d="y",m=n);function g(C){return $d(h,h.c2l(C),!0).text}function y(C){return $d(m,m.c2l(C),!0).text}var _=r[t],w={};w.label=_.p,w.labelLabel=w[v+"Label"]=g(_.p);var T=oa.castOption(i,_.i,"text");(T===0||T)&&(w.text=T),w.value=_.s,w.valueLabel=w[d+"Label"]=y(_.s);var b={};bae(b,i,_.i),(o||b.x===void 0)&&(b.x=f?w.value:w.label),(o||b.y===void 0)&&(b.y=f?w.label:w.value),(o||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(o||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),s&&(w.delta=+_.rawS||_.s,w.deltaLabel=y(w.delta),w.final=_.v,w.finalLabel=y(w.final),w.initial=w.final-w.delta,w.initialLabel=y(w.initial)),u&&(w.value=_.s,w.valueLabel=y(w.value),w.percentInitial=_.begR,w.percentInitialLabel=oa.formatPercent(_.begR),w.percentPrevious=_.difR,w.percentPreviousLabel=oa.formatPercent(_.difR),w.percentTotal=_.sumR,w.percenTotalLabel=oa.formatPercent(_.sumR));var A=oa.castOption(i,_.i,"customdata");return A&&(w.customdata=A),oa.texttemplateString(l,w,e._d3locale,b,w,i._meta||{})}function qae(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(A){var C=i?a:t;return $d(C,A,!0).text}function u(A){var C=i?t:a;return $d(C,+A,!0).text}var f=n.textinfo,v=e[r],h=f.split("+"),d=[],m,g=function(A){return h.indexOf(A)!==-1};if(g("label")&&d.push(s(e[r].p)),g("text")&&(m=oa.castOption(n,v.i,"text"),(m===0||m)&&d.push(m)),l){var y=+v.rawS||v.s,_=v.v,w=_-y;g("initial")&&d.push(u(w)),g("delta")&&d.push(u(y)),g("final")&&d.push(u(_))}if(o){g("value")&&d.push(u(v.s));var T=0;g("percent initial")&&T++,g("percent previous")&&T++,g("percent total")&&T++;var b=T>1;g("percent initial")&&(m=oa.formatPercent(v.begR),b&&(m+=" of initial"),d.push(m)),g("percent previous")&&(m=oa.formatPercent(v.difR),b&&(m+=" of previous"),d.push(m)),g("percent total")&&(m=oa.formatPercent(v.sumR),b&&(m+=" of total"),d.push(m))}return d.join("
")}vR.exports={plot:Tae,toMoveInsideBar:cR}});var gR=Z((Xce,yR)=>{"use strict";var kc=Si(),Dae=br(),dR=Er(),Eae=Ie().fillText,Pae=Xd().getLineWidth,p3=dt().hoverLabelText,Rae=Gt().BADNUM;function zae(e,r,t,a,n){var i=pR(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=mR(o,s),Dae.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function pR(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,v=e.maxSpikeDistance,h,d,m,g,y,_,w;l.orientation==="h"?(h=t,d=r,m="y",g="x",y=X,_=F):(h=r,d=t,m="x",g="y",_=X,y=F);var T=l[m+"period"],b=s||T;function A(re){return k(re,-1)}function C(re){return k(re,1)}function k(re,Le){var fe=re.w;return re[m]+Le*fe/2}function q(re){return re[m+"End"]-re[m+"Start"]}var D=s?A:T?function(re){return re.p-q(re)/2}:function(re){return Math.min(A(re),re.p-o.bardelta/2)},R=s?C:T?function(re){return re.p+q(re)/2}:function(re){return Math.max(C(re),re.p+o.bardelta/2)};function z(re,Le,fe){return n.finiteRange&&(fe=0),kc.inbox(re-h,Le-h,fe+Math.min(1,Math.abs(Le-re)/w)-1)}function F(re){return z(D(re),R(re),f)}function I(re){return z(A(re),C(re),v)}function O(re){var Le=re[g];if(u){var fe=Math.abs(re.rawS)||0;d>0?Le+=fe:d<0&&(Le-=fe)}return Le}function X(re){var Le=d,fe=re.b,ke=O(re);return kc.inbox(fe-Le,ke-Le,f+(ke-Le)/(ke-fe)-1)}function J(re){var Le=d,fe=re.b,ke=O(re);return kc.inbox(fe-Le,ke-Le,v+(ke-Le)/(ke-fe)-1)}var U=e[m+"a"],H=e[g+"a"];w=Math.abs(U.r2c(U.range[1])-U.r2c(U.range[0]));function G(re){return(y(re)+_(re))/2}var K=kc.getDistanceFunction(a,y,_,G);if(kc.getClosest(i,K,e),e.index!==!1&&i[e.index].p!==Rae){b||(D=function(re){return Math.min(A(re),re.p-o.bargroupwidth/2)},R=function(re){return Math.max(C(re),re.p+o.bargroupwidth/2)});var Q=e.index,ie=i[Q],pe=l.base?ie.b+ie.s:ie.s;e[g+"0"]=e[g+"1"]=H.c2p(ie[g],!0),e[g+"LabelVal"]=pe;var me=o.extents[o.extents.round(ie.p)];e[m+"0"]=U.c2p(s?D(ie):me[0],!0),e[m+"1"]=U.c2p(s?R(ie):me[1],!0);var Ae=ie.orig_p!==void 0;return e[m+"LabelVal"]=Ae?ie.orig_p:ie.p,e.labelLabel=p3(U,e[m+"LabelVal"],l[m+"hoverformat"]),e.valueLabel=p3(H,e[g+"LabelVal"],l[g+"hoverformat"]),e.baseLabel=p3(H,ie.b,l[g+"hoverformat"]),e.spikeDistance=(J(ie)+I(ie))/2,e[m+"Spike"]=U.c2p(ie.p,!0),Eae(ie,l,e),e.hovertemplate=l.hovertemplate,e}}function mR(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=Pae(e,r);if(dR.opacity(t))return t;if(dR.opacity(a)&&n)return a}yR.exports={hoverPoints:zae,hoverOnBars:pR,getTraceColor:mR}});var xR=Z((Jce,bR)=>{"use strict";bR.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var wR=Z((Kce,_R)=>{"use strict";_R.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";TR.exports={attributes:_c(),layoutAttributes:u3(),supplyDefaults:wc().supplyDefaults,crossTraceDefaults:wc().crossTraceDefaults,supplyLayoutDefaults:FP(),calc:GP(),crossTraceCalc:e2().crossTraceCalc,colorbar:a2(),arraysToCalcdata:f3(),plot:hR().plot,style:Jd().style,styleOnSelect:Jd().styleOnSelect,hoverPoints:gR().hoverPoints,eventData:xR(),selectPoints:wR(),moduleType:"trace",name:"bar",basePlotModule:bd(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var kR=Z(($ce,AR)=>{"use strict";AR.exports=MR()});var m3=Z((jce,SR)=>{"use strict";var Fae=Gn(),Iae=Od().attributes,Hae=ma(),Oae=hi(),Bae=yi().hovertemplateAttrs,Yae=yi().texttemplateAttrs,Sc=Vt().extendFlat,Uae=mi().pattern,jd=Hae({editType:"plot",arrayOk:!0,colorEditType:"plot"});SR.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Oae.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:Uae,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:Sc({},Fae.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Bae({},{keys:["label","color","value","percent","text"]}),texttemplate:Yae({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Sc({},jd,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Sc({},jd,{}),outsidetextfont:Sc({},jd,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:Sc({},jd,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:Iae({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var DR=Z((eve,qR)=>{"use strict";var Gae=Hr(),Cc=Ie(),Vae=m3(),Wae=Od().defaults,Zae=wc().handleText,Xae=Ie().coercePattern;function CR(e,r){var t=Cc.isArrayOrTypedArray(e),a=Cc.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function LR(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");Xae(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function Jae(e,r,t,a){function n(w,T){return Cc.coerce(e,r,Vae,w,T)}var i=n("labels"),l=n("values"),o=CR(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,LR(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate"),v;if(f||(v=n("textinfo",Cc.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),f||v&&v!=="none"){var h=n("textposition");Zae(e,r,a,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",m=d||h==="outside";m&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else v==="none"&&n("textposition","none");Wae(r,a,n);var g=n("hole"),y=n("title.text");if(y){var _=n("title.position",g?"middle center":"top center");!g&&_==="middle center"&&(r.title.position="top center"),Cc.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}qR.exports={handleLabelsAndValues:CR,handleMarkerDefaults:LR,supplyDefaults:Jae}});var y3=Z((rve,ER)=>{"use strict";ER.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var RR=Z((tve,PR)=>{"use strict";var Kae=Ie(),Qae=y3();PR.exports=function(r,t){function a(n,i){return Kae.coerce(r,t,Qae,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var b3=Z((ave,FR)=>{"use strict";var $ae=Hr(),g3=bn(),jae=Er(),ene={};function rne(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,v;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?g:r.sort;return b&&t.sort(function(A,C){return C.v-A.v}),t[0]&&(t[0].vTotal=m),t}function zR(e){return function(t,a){return!t||(t=g3(t),!t.isValid())?!1:(t=jae.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function tne(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=NR(i,ene));for(var o=0,s=0;s{"use strict";var ane=xi().appendArrayMultiPointValues;IR.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),ane(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var oz=Z((ive,lz)=>{"use strict";var an=Ir(),nne=Nt(),e1=Si(),VR=Er(),ji=at(),_a=Ie(),ine=_a.strScale,OR=_a.strTranslate,x3=Ta(),WR=Tc(),lne=WR.recordMinTextSize,one=WR.clearMinTextSize,ZR=Wd().TEXTPAD,wr=H0(),r1=HR(),BR=Ie().isValidTextValue;function sne(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;one("pie",a),KR(r,e),az(r,n);var i=_a.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=an.select(this),s=l[0],u=s.trace;yne(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=an.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var v=[[[],[]],[[],[]]],h=!1;f.each(function(b,A){if(b.hidden){an.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,v[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var C=s.cx,k=s.cy,q=an.select(this),D=q.selectAll("path.surface").data([b]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),q.call(XR,e,l),u.pull){var R=+wr.castOption(u.pull,b.pts)||0;R>0&&(C+=R*b.pxmid[0],k+=R*b.pxmid[1])}b.cxFinal=C,b.cyFinal=k;function z(H,G,K,Q){var ie=Q*(G[0]-H[0]),pe=Q*(G[1]-H[1]);return"a"+Q*s.r+","+Q*s.r+" 0 "+b.largeArc+(K?" 1 ":" 0 ")+ie+","+pe}var F=u.hole;if(b.v===s.vTotal){var I="M"+(C+b.px0[0])+","+(k+b.px0[1])+z(b.px0,b.pxmid,!0,1)+z(b.pxmid,b.px0,!0,1)+"Z";F?D.attr("d","M"+(C+F*b.px0[0])+","+(k+F*b.px0[1])+z(b.px0,b.pxmid,!1,F)+z(b.pxmid,b.px0,!1,F)+"Z"+I):D.attr("d",I)}else{var O=z(b.px0,b.px1,!0,1);if(F){var X=1-F;D.attr("d","M"+(C+F*b.px1[0])+","+(k+F*b.px1[1])+z(b.px1,b.px0,!1,F)+"l"+X*b.px0[0]+","+X*b.px0[1]+O+"Z")}else D.attr("d","M"+C+","+k+"l"+b.px0[0]+","+b.px0[1]+O+"Z")}nz(e,b,s);var J=wr.castOption(u.textposition,b.pts),U=q.selectAll("g.slicetext").data(b.text&&J!=="none"?[0]:[]);U.enter().append("g").classed("slicetext",!0),U.exit().remove(),U.each(function(){var H=_a.ensureSingle(an.select(this),"text","",function(re){re.attr("data-notex",1)}),G=_a.ensureUniformFontSize(e,J==="outside"?fne(u,b,a.font):JR(u,b,a.font));H.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(ji.font,G).call(x3.convertToTspans,e);var K=ji.bBox(H.node()),Q;if(J==="outside")Q=GR(K,b);else if(Q=QR(K,b,s),J==="auto"&&Q.scale<1){var ie=_a.ensureUniformFontSize(e,u.outsidetextfont);H.call(ji.font,ie),K=ji.bBox(H.node()),Q=GR(K,b)}var pe=Q.textPosAngle,me=pe===void 0?b.pxmid:t1(s.r,pe);if(Q.targetX=C+me[0]*Q.rCenter+(Q.x||0),Q.targetY=k+me[1]*Q.rCenter+(Q.y||0),iz(Q,K),Q.outside){var Ae=Q.targetY;b.yLabelMin=Ae-K.height/2,b.yLabelMid=Ae,b.yLabelMax=Ae+K.height/2,b.labelExtraX=0,b.labelExtraY=0,h=!0}Q.fontSize=G.size,lne(u.type,Q,a),l[A].transform=Q,_a.setTransormAndDisplay(H,Q)})});var d=an.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var b=_a.ensureSingle(an.select(this),"text","",function(k){k.attr("data-notex",1)}),A=u.title.text;u._meta&&(A=_a.templateString(A,u._meta)),b.text(A).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(ji.font,u.title.font).call(x3.convertToTspans,e);var C;u.title.position==="middle center"?C=hne(s):C=rz(s,n),b.attr("transform",OR(C.x,C.y)+ine(Math.min(1,C.scale))+OR(C.tx,C.ty))}),h&&pne(v,u),une(f,u),h&&u.automargin){var m=ji.bBox(o.node()),g=u.domain,y=n.w*(g.x[1]-g.x[0]),_=n.h*(g.y[1]-g.y[0]),w=(.5*y-s.r)/n.w,T=(.5*_-s.r)/n.h;nne.autoMargin(e,"pie."+u.uid+".automargin",{xl:g.x[0]-w,xr:g.x[1]+w,yb:g.y[0]-T,yt:g.y[1]+T,l:Math.max(s.cx-s.r-m.left,0),r:Math.max(m.right-(s.cx+s.r),0),b:Math.max(m.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-m.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=an.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function une(e,r){e.each(function(t){var a=an.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,_a.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;_a.ensureSingle(a,"path","textline").call(VR.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function XR(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var v=f.hoverinfo;if(Array.isArray(v)&&(v=e1.castHoverinfo({hoverinfo:[wr.castOption(v,s.pts)],_module:l._module},u,0)),v==="all"&&(v="label+text+value+percent+name"),f.hovertemplate||v!=="none"&&v!=="skip"&&v){var h=s.rInscribed||0,d=n+s.pxmid[0]*(1-h),m=i+s.pxmid[1]*(1-h),g=u.separators,y=[];if(v&&v.indexOf("label")!==-1&&y.push(s.label),s.text=wr.castOption(f.hovertext||f.text,s.pts),v&&v.indexOf("text")!==-1){var _=s.text;_a.isValidTextValue(_)&&y.push(_)}s.value=s.v,s.valueLabel=wr.formatPieValue(s.v,g),v&&v.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=wr.formatPiePercent(s.percent,g),v&&v.indexOf("percent")!==-1&&y.push(s.percentLabel);var w=f.hoverlabel,T=w.font,b=[];e1.loneHover({trace:l,x0:d-h*a.r,x1:d+h*a.r,y:m,_x0:o?n+s.TL[0]:d-h*a.r,_x1:o?n+s.TR[0]:d+h*a.r,_y0:o?i+s.TL[1]:m-h*a.r,_y1:o?i+s.BL[1]:m+h*a.r,text:y.join("
"),name:f.hovertemplate||v.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:wr.castOption(w.bgcolor,s.pts)||s.color,borderColor:wr.castOption(w.bordercolor,s.pts),fontFamily:wr.castOption(T.family,s.pts),fontSize:wr.castOption(T.size,s.pts),fontColor:wr.castOption(T.color,s.pts),nameLength:wr.castOption(w.namelength,s.pts),textAlign:wr.castOption(w.align,s.pts),hovertemplate:wr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[r1(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[r1(s,f)],event:an.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],v=an.select(this).datum();l._hasHoverEvent&&(s.originalEvent=an.event,r.emit("plotly_unhover",{points:[r1(v,f)],event:an.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(e1.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[r1(s,f)],e1.click(r,an.event))})}function fne(e,r,t){var a=wr.castOption(e.outsidetextfont.color,r.pts)||wr.castOption(e.textfont.color,r.pts)||t.color,n=wr.castOption(e.outsidetextfont.family,r.pts)||wr.castOption(e.textfont.family,r.pts)||t.family,i=wr.castOption(e.outsidetextfont.size,r.pts)||wr.castOption(e.textfont.size,r.pts)||t.size,l=wr.castOption(e.outsidetextfont.weight,r.pts)||wr.castOption(e.textfont.weight,r.pts)||t.weight,o=wr.castOption(e.outsidetextfont.style,r.pts)||wr.castOption(e.textfont.style,r.pts)||t.style,s=wr.castOption(e.outsidetextfont.variant,r.pts)||wr.castOption(e.textfont.variant,r.pts)||t.variant,u=wr.castOption(e.outsidetextfont.textcase,r.pts)||wr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=wr.castOption(e.outsidetextfont.lineposition,r.pts)||wr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=wr.castOption(e.outsidetextfont.shadow,r.pts)||wr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function JR(e,r,t){var a=wr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=wr.castOption(e._input.textfont.color,r.pts));var n=wr.castOption(e.insidetextfont.family,r.pts)||wr.castOption(e.textfont.family,r.pts)||t.family,i=wr.castOption(e.insidetextfont.size,r.pts)||wr.castOption(e.textfont.size,r.pts)||t.size,l=wr.castOption(e.insidetextfont.weight,r.pts)||wr.castOption(e.textfont.weight,r.pts)||t.weight,o=wr.castOption(e.insidetextfont.style,r.pts)||wr.castOption(e.textfont.style,r.pts)||t.style,s=wr.castOption(e.insidetextfont.variant,r.pts)||wr.castOption(e.textfont.variant,r.pts)||t.variant,u=wr.castOption(e.insidetextfont.textcase,r.pts)||wr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=wr.castOption(e.insidetextfont.lineposition,r.pts)||wr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=wr.castOption(e.insidetextfont.shadow,r.pts)||wr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||VR.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function KR(e,r){for(var t,a,n=0;n=-4;w-=2)_(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)_(Math.PI*(w+1),"tan")}if(v||d){for(w=4;w>=-4;w-=2)_(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)_(Math.PI*(w+.5),"rad")}}if(o||m||v){var T=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/T,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;g.push(y)}(m||d)&&(y=YR(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,g.push(y)),(m||h)&&(y=UR(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,g.push(y));for(var b=0,A=0,C=0;C=1)break}return g[b]}function cne(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function hne(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function rz(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=tz(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=dne(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=_3(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function dne(e,r){return e/(r===void 0?1:r)}function _3(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function tz(e){var r=e.pull;if(!r)return 0;var t;if(_a.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function pne(e,r){var t,a,n,i,l,o,s,u,f,v,h,d,m;function g(T,b){return T.pxmid[1]-b.pxmid[1]}function y(T,b){return b.pxmid[1]-T.pxmid[1]}function _(T,b){b||(b={});var A=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),C=a?T.yLabelMin:T.yLabelMax,k=a?T.yLabelMax:T.yLabelMin,q=T.cyFinal+l(T.px0[1],T.px1[1]),D=A-C,R,z,F,I,O,X;if(D*s>0&&(T.labelExtraY=D),!!_a.isArrayOrTypedArray(r.pull))for(z=0;z=(wr.castOption(r.pull,F.pts)||0))&&((T.pxmid[1]-F.pxmid[1])*s>0?(I=F.cyFinal+l(F.px0[1],F.px1[1]),D=I-C-T.labelExtraY,D*s>0&&(T.labelExtraY+=D)):(k+T.labelExtraY-q)*s>0&&(R=3*o*Math.abs(z-v.indexOf(T)),O=F.cxFinal+i(F.px0[0],F.px1[0]),X=O+R-(T.cxFinal+T.pxmid[0])-T.labelExtraX,X*o>0&&(T.labelExtraX+=X)))}for(a=0;a<2;a++)for(n=a?g:y,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],v=f.concat(u),d=[],h=0;h1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=vne(u,r))}function t1(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function nz(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(b){return o.indexOf(b)!==-1},u=s("label"),f=s("text"),v=s("value"),h=s("percent"),d=a.separators,m;if(m=u?[r.label]:[],f){var g=wr.getFirstFilled(n.text,r.pts);BR(g)&&m.push(g)}v&&m.push(wr.formatPieValue(r.v,d)),h&&m.push(wr.formatPiePercent(r.v/t.vTotal,d)),r.text=m.join("
")}function y(b){return{label:b.label,value:b.v,valueLabel:wr.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:wr.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:_a.castOption(n,b.i,"customdata")}}if(i){var _=_a.castOption(n,r.i,"texttemplate");if(!_)r.text="";else{var w=y(r),T=wr.getFirstFilled(n.text,r.pts);(BR(T)||T==="")&&(w.text=T),r.text=_a.texttemplateString(_,w,e._fullLayout._d3locale,w,n._meta||{})}}}function iz(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}lz.exports={plot:sne,formatSliceLabel:nz,transformInsideText:QR,determineInsideTextFont:JR,positionTitleOutside:rz,prerenderTitles:KR,layoutAreas:az,attachFxHandlers:XR,computeTransform:iz}});var fz=Z((lve,uz)=>{"use strict";var sz=Ir(),gne=O0(),bne=Tc().resizeText;uz.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");bne(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=sz.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){sz.select(this).call(gne,o,i,r)})})}});var vz=Z(Tu=>{"use strict";var cz=Nt();Tu.name="pie";Tu.plot=function(e,r,t,a){cz.plotBasePlot(Tu.name,e,r,t,a)};Tu.clean=function(e,r,t,a){cz.cleanBasePlot(Tu.name,e,r,t,a)}});var dz=Z((sve,hz)=>{"use strict";hz.exports={attributes:m3(),supplyDefaults:DR().supplyDefaults,supplyLayoutDefaults:RR(),layoutAttributes:y3(),calc:b3().calc,crossTraceCalc:b3().crossTraceCalc,plot:oz().plot,style:fz(),styleOne:O0(),moduleType:"trace",name:"pie",basePlotModule:vz(),categories:["pie-like","pie","showLegend"],meta:{}}});var mz=Z((uve,pz)=>{"use strict";pz.exports=dz()});var Sa=Z((fve,gz)=>{"use strict";var yz=Object.getOwnPropertySymbols,xne=Object.prototype.hasOwnProperty,_ne=Object.prototype.propertyIsEnumerable;function wne(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Tne(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}gz.exports=Tne()?Object.assign:function(e,r){for(var t,a=wne(e),n,i=1;i{var n1=Sa();function bz(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}n1(bz.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function w3(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function a1(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}n1(w3.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Pr.local.differentCalendars||Pr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+a1(Math.abs(this.year()),4)+"-"+a1(this.month(),2)+"-"+a1(this.day(),2)}});function T3(){this.shortYearCutoff="+10"}n1(T3.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new w3(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+a1(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Pr.local.invalidMonth||Pr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Pr.local.invalidMonth||Pr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lv-1+f.minMonth;)i++,l-=v,v=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Pr=xz.exports=new bz;Pr.cdate=w3;Pr.baseCalendar=T3;Pr.calendars.gregorian=M3});var _z=Z(()=>{var A3=Sa(),sa=Ca();A3(sa.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});sa.local=sa.regionalOptions[""];A3(sa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});A3(sa.baseCalendar.prototype,{UNIX_EPOCH:sa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:sa.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw sa.local.invalidFormat||sa.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,A){for(var C=1;T+C1},f=function(b,A,C,k){var q=""+A;if(u(b,k))for(;q.length1},w=function(F,I){var O=_(F,I),X=[2,3,O?4:2,O?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],J=new RegExp("^-?\\d{1,"+X+"}"),U=r.substring(q).match(J);if(!U)throw(sa.local.missingNumberAt||sa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=U[0].length,parseInt(U[0],10)},T=this,b=function(){if(typeof o=="function"){_("m");var F=o.call(T,r.substring(q));return q+=F.length,F}return w("m")},A=function(F,I,O,X){for(var J=_(F,X)?O:I,U=0;U-1){h=1,d=m;for(var z=this.daysInMonth(v,h);d>z;z=this.daysInMonth(v,h))h++,d-=z}return f>-1?this.fromJD(f):this.newDate(v,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(v){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var wz=Z(()=>{var Il=Ca(),Mne=Sa(),k3=Il.instance();function i1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i1.prototype=new Il.baseCalendar;Mne(i1.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(kne);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(Sne);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(Cne);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Il.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Il.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Il.local.invalidyear),n=Ol[a-Ol[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=k3.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Hl[e-Hl[0]],a=t>>13,n=a?12:11;if(r>n)throw Il.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Il.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=qne(e,i,t,n);return k3.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=k3.fromJD(e),t=Lne(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(Ane),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(i1.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),v=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);v!==u&&o.month(v)}return o}});var Ane=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,kne=/^\d?\d[iI]?/m,Sne=/^闰?十?[一二三四五六七八九]?月/m,Cne=/^闰?十?[一二三四五六七八九]?/m;Il.calendars.chinese=i1;var Hl=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Ol=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function Lne(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Ol[n.year-Ol[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Ol[i.year-Ol[0]];var v=u>>9&4095,h=u>>5&15,d=u&31,m,g=new Date(v,h-1,d),y=new Date(n.year,n.month-1,n.day);m=Math.round((y-g)/(24*3600*1e3));var _=Hl[i.year-Hl[0]],w;for(w=0;w<13;w++){var T=_&1<<12-w?30:29;if(m>13;return!b||w=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var v;v=l.day-1;var h=Hl[l.year-Hl[0]],d=h>>13,m;d&&(l.month>d||l.isIntercalary)?m=l.month:m=l.month-1;for(var g=0;g>9&4095,T=_>>5&15,b=_&31,A=new Date(w,T-1,b+v);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var Tz=Z(()=>{var Vo=Ca(),Dne=Sa();function S3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S3.prototype=new Vo.baseCalendar;Dne(S3.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Vo.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Vo.local.invalidYear||Vo.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Vo.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Vo.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Vo.calendars.coptic=S3});var Mz=Z(()=>{var el=Ca(),Ene=Sa();function C3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C3.prototype=new el.baseCalendar;Ene(C3.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,el.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,el.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,el.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,el.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,el.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,el.local.invalidDate);return{century:Pne[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,el.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var Pne={20:"Fruitbat",21:"Anchovy"};el.calendars.discworld=C3});var Az=Z(()=>{var Wo=Ca(),Rne=Sa();function L3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}L3.prototype=new Wo.baseCalendar;Rne(L3.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Wo.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wo.local.invalidYear||Wo.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Wo.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Wo.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Wo.calendars.ethiopian=L3});var kz=Z(()=>{var Bl=Ca(),zne=Sa();function q3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q3.prototype=new Bl.baseCalendar;zne(q3.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,l1(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bl.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bl.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Bl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&l1(this.daysInYear(e),10)===5?30:r===9&&l1(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Bl.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Bl.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function l1(e,r){return e-r*Math.floor(e/r)}Bl.calendars.hebrew=q3});var Sz=Z(()=>{var Lc=Ca(),Nne=Sa();function D3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D3.prototype=new Lc.baseCalendar;Nne(D3.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Lc.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Lc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Lc.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});Lc.calendars.islamic=D3});var Cz=Z(()=>{var qc=Ca(),Fne=Sa();function E3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E3.prototype=new qc.baseCalendar;Fne(E3.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,qc.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,qc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,qc.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});qc.calendars.julian=E3});var qz=Z(()=>{var Fn=Ca(),Ine=Sa();function R3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R3.prototype=new Fn.baseCalendar;Ine(R3.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fn.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Fn.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fn.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Fn.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fn.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Fn.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Fn.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Fn.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Fn.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=P3(e+8+17*20,365);return[Math.floor(r/20)+1,P3(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Lz(e+20,20),Lz(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Fn.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function P3(e,r){return e-r*Math.floor(e/r)}function Lz(e,r){return P3(e-1,r)+1}Fn.calendars.mayan=R3});var Ez=Z(()=>{var Zo=Ca(),Hne=Sa();function z3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z3.prototype=new Zo.baseCalendar;var Dz=Zo.instance("gregorian");Hne(z3.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Zo.local.invalidYear||Zo.regionalOptions[""].invalidYear);return Dz.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Zo.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Zo.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Zo.calendars.nanakshahi=z3});var Pz=Z(()=>{var Xo=Ca(),One=Sa();function N3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N3.prototype=new Xo.baseCalendar;One(N3.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Xo.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Xo.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Xo.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Xo.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Xo.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Mu=Ca(),Bne=Sa();function s1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o1(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}s1.prototype=new Mu.baseCalendar;Bne(s1.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Mu.local.invalidYear);return o1(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Mu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Mu.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,o1(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Mu.calendars.persian=s1;Mu.calendars.jalali=s1});var zz=Z(()=>{var Jo=Ca(),Yne=Sa(),u1=Jo.instance();function F3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F3.prototype=new Jo.baseCalendar;Yne(F3.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Jo.local.invalidYear),t=this._t2gYear(r.year());return u1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Jo.local.invalidYear),n=this._t2gYear(a.year());return u1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Jo.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Jo.local.invalidDate),n=this._t2gYear(a.year());return u1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=u1.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Jo.calendars.taiwan=F3});var Nz=Z(()=>{var Ko=Ca(),Une=Sa(),f1=Ko.instance();function I3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I3.prototype=new Ko.baseCalendar;Une(I3.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Ko.local.invalidYear),t=this._t2gYear(r.year());return f1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Ko.local.invalidYear),n=this._t2gYear(a.year());return f1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ko.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ko.local.invalidDate),n=this._t2gYear(a.year());return f1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=f1.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Ko.calendars.thai=I3});var Fz=Z(()=>{var Qo=Ca(),Gne=Sa();function H3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H3.prototype=new Qo.baseCalendar;Gne(H3.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Qo.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Qo.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Yl[n]-Yl[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Qo.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Yl[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-Yl[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=Qo.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Qo.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Qo.calendars.ummalqura=H3;var Yl=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Hz=Z((Yve,Iz)=>{"use strict";Iz.exports=Ca();_z();wz();Tz();Mz();Az();kz();Sz();Cz();qz();Ez();Pz();Rz();zz();Nz();Fz()});var Wz=Z((Uve,Vz)=>{"use strict";var Bz=Hz(),Dc=Ie(),Yz=Gt(),Vne=Yz.EPOCHJD,Wne=Yz.ONEDAY,Y3={valType:"enumerated",values:Dc.sortObjectKeys(Bz.calendars),editType:"calc",dflt:"gregorian"},Uz=function(e,r,t,a){var n={};return n[t]=Y3,Dc.coerce(e,r,n,t,a)},Zne=function(e,r,t,a){for(var n=0;n{"use strict";Zz.exports=Wz()});var jne=Z((Vve,Kz)=>{var Jz=bP();Jz.register([kR(),mz(),Xz()]);Kz.exports=Jz});return jne();})(); +"use strict";var Plotly=(()=>{var Z=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var lv=Z(ib=>{"use strict";ib.version="3.1.2"});var ob=Z((lb,ov)=>{(function(r,t,a){t[r]=t[r]||a(),typeof ov!="undefined"&&ov.exports&&(ov.exports=t[r])})("Promise",typeof window!="undefined"?window:lb,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(w,T,b,A){return Object.defineProperty(w,T,{value:b,writable:!0,configurable:A!==!1})}}catch(_){r=function(T,b,A){return T[b]=A,T}}a=function(){var w,T,b;function A(C,k){this.fn=C,this.self=k,this.next=void 0}return{add:function(k,q){b=new A(k,q),T?T.next=b:w=b,T=b,b=void 0},drain:function(){var k=w;for(w=T=t=void 0;k;)k.fn.call(k.self),k=k.next}}}();function l(_,w){a.add(_,w),t||(t=i(a.drain))}function o(_){var w,T=typeof _;return _!=null&&(T=="object"||T=="function")&&(w=_.then),typeof w=="function"?w:!1}function s(){for(var _=0;_0&&l(s,T))}catch(b){v.call(new d(T),b)}}}function v(_){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=_,w.state=2,w.chain.length>0&&l(s,w))}function h(_,w,T,b){for(var A=0;A{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},a=self.document;function n(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(c){t=function(p){for(var x=p.length,M=new Array(x);x--;)M[x]=p[x];return M}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(p,x){o.call(this,p,x+"")},l.setAttributeNS=function(p,x,M){s.call(this,p,x,M+"")},u.setProperty=function(p,x,M){f.call(this,p,x+"",M)}}e.ascending=v;function v(c,p){return cp?1:c>=p?0:NaN}e.descending=function(c,p){return pc?1:p>=c?0:NaN},e.min=function(c,p){var x=-1,M=c.length,S,L;if(arguments.length===1){for(;++x=L){S=L;break}for(;++xL&&(S=L)}else{for(;++x=L){S=L;break}for(;++xL&&(S=L)}return S},e.max=function(c,p){var x=-1,M=c.length,S,L;if(arguments.length===1){for(;++x=L){S=L;break}for(;++xS&&(S=L)}else{for(;++x=L){S=L;break}for(;++xS&&(S=L)}return S},e.extent=function(c,p){var x=-1,M=c.length,S,L,P;if(arguments.length===1){for(;++x=L){S=P=L;break}for(;++xL&&(S=L),P=L){S=P=L;break}for(;++xL&&(S=L),P1)return P/(N-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(p,x,M,S){for(arguments.length<3&&(M=0),arguments.length<4&&(S=p.length);M>>1;c(p[L],x)<0?M=L+1:S=L}return M},right:function(p,x,M,S){for(arguments.length<3&&(M=0),arguments.length<4&&(S=p.length);M>>1;c(p[L],x)>0?S=L:M=L+1}return M}}}var y=m(v);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(c){return m(c.length===1?function(p,x){return v(c(p),x)}:c)},e.shuffle=function(c,p,x){(M=arguments.length)<3&&(x=c.length,M<2&&(p=0));for(var M=x-p,S,L;M;)L=Math.random()*M--|0,S=c[M+p],c[M+p]=c[L+p],c[L+p]=S;return c},e.permute=function(c,p){for(var x=p.length,M=new Array(x);x--;)M[x]=c[p[x]];return M},e.pairs=function(c){for(var p=0,x=c.length-1,M,S=c[0],L=new Array(x<0?0:x);p=0;)for(P=c[p],x=P.length;--x>=0;)L[--S]=P[x];return L};var _=Math.abs;e.range=function(c,p,x){if(arguments.length<3&&(x=1,arguments.length<2&&(p=c,c=0)),(p-c)/x===1/0)throw new Error("infinite range");var M=[],S=w(_(x)),L=-1,P;if(c*=S,p*=S,x*=S,x<0)for(;(P=c+x*++L)>p;)M.push(P/S);else for(;(P=c+x*++L)=p.length)return S?S.call(c,N):M?N.sort(M):N;for(var W=-1,$=N.length,j=p[G++],de,_e,te,oe=new b,ce;++W<$;)(ce=oe.get(de=j(_e=N[W])))?ce.push(_e):oe.set(de,[_e]);return E?(_e=E(),te=function(xe,we){_e.set(xe,L(E,we,G))}):(_e={},te=function(xe,we){_e[xe]=L(E,we,G)}),oe.forEach(te),_e}function P(E,N){if(N>=p.length)return E;var G=[],W=x[N++];return E.forEach(function($,j){G.push({key:$,values:P(j,N)})}),W?G.sort(function($,j){return W($.key,j.key)}):G}return c.map=function(E,N){return L(N,E,0)},c.entries=function(E){return P(L(e.map,E,0),0)},c.key=function(E){return p.push(E),c},c.sortKeys=function(E){return x[p.length-1]=E,c},c.sortValues=function(E){return M=E,c},c.rollup=function(E){return S=E,c},c},e.set=function(c){var p=new O;if(c)for(var x=0,M=c.length;x=0&&(M=c.slice(x+1),c=c.slice(0,x)),c)return arguments.length<2?this[c].on(M):this[c].on(M,p);if(arguments.length===2){if(p==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(M,null);return this}};function Q(c){var p=[],x=new b;function M(){for(var S=p,L=-1,P=S.length,E;++L=0&&(x=c.slice(0,p))!=="xmlns"&&(c=c.slice(p+1)),ye.hasOwnProperty(x)?{space:ye[x],local:c}:c}},be.attr=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node();return c=e.ns.qualify(c),c.local?x.getAttributeNS(c.space,c.local):x.getAttribute(c)}for(p in c)this.each(Me(p,c[p]));return this}return this.each(Me(c,p))};function Me(c,p){c=e.ns.qualify(c);function x(){this.removeAttribute(c)}function M(){this.removeAttributeNS(c.space,c.local)}function S(){this.setAttribute(c,p)}function L(){this.setAttributeNS(c.space,c.local,p)}function P(){var N=p.apply(this,arguments);N==null?this.removeAttribute(c):this.setAttribute(c,N)}function E(){var N=p.apply(this,arguments);N==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,N)}return p==null?c.local?M:x:typeof p=="function"?c.local?E:P:c.local?L:S}function ge(c){return c.trim().replace(/\s+/g," ")}be.classed=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node(),M=(c=Ne(c)).length,S=-1;if(p=x.classList){for(;++S=0;)(L=x[M])&&(S&&S!==L.nextSibling&&S.parentNode.insertBefore(L,S),S=L);return this},be.sort=function(c){c=Te.apply(this,arguments);for(var p=-1,x=this.length;++p=p&&(p=S+1);!(N=P[p])&&++p0&&(c=c.slice(0,S));var P=Fe.get(c);P&&(c=P,L=Ve);function E(){var W=this[M];W&&(this.removeEventListener(c,W,W.$),delete this[M])}function N(){var W=L(p,t(arguments));E.call(this),this.addEventListener(c,this[M]=W,W.$=x),W._=p}function G(){var W=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),$;for(var j in this)if($=j.match(W)){var de=this[j];this.removeEventListener($[1],de,de.$),delete this[j]}}return S?p?N:E:p?V:G}var Fe=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Fe.forEach(function(c){"on"+c in a&&Fe.remove(c)});function We(c,p){return function(x){var M=e.event;e.event=x,p[0]=this.__data__;try{c.apply(this,p)}finally{e.event=M}}}function Ve(c,p){var x=We(c,p);return function(M){var S=this,L=M.relatedTarget;(!L||L!==S&&!(L.compareDocumentPosition(S)&8))&&x.call(S,M)}}var Je,$e=0;function vr(c){var p=".dragsuppress-"+ ++$e,x="click"+p,M=e.select(i(c)).on("touchmove"+p,ie).on("dragstart"+p,ie).on("selectstart"+p,ie);if(Je==null&&(Je="onselectstart"in c?!1:U(c.style,"userSelect")),Je){var S=n(c).style,L=S[Je];S[Je]="none"}return function(P){if(M.on(p,null),Je&&(S[Je]=L),P){var E=function(){M.on(x,null)};M.on(x,function(){ie(),E()},!0),setTimeout(E,0)}}}e.mouse=function(c){return Pe(c,pe())};var Ke=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Pe(c,p){p.changedTouches&&(p=p.changedTouches[0]);var x=c.ownerSVGElement||c;if(x.createSVGPoint){var M=x.createSVGPoint();if(Ke<0){var S=i(c);if(S.scrollX||S.scrollY){x=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=x[0][0].getScreenCTM();Ke=!(L.f||L.e),x.remove()}}return Ke?(M.x=p.pageX,M.y=p.pageY):(M.x=p.clientX,M.y=p.clientY),M=M.matrixTransform(c.getScreenCTM().inverse()),[M.x,M.y]}var P=c.getBoundingClientRect();return[p.clientX-P.left-c.clientLeft,p.clientY-P.top-c.clientTop]}e.touch=function(c,p,x){if(arguments.length<3&&(x=p,p=pe().changedTouches),p){for(var M=0,S=p.length,L;M0?1:c<0?-1:0}function Qr(c,p,x){return(p[0]-c[0])*(x[1]-c[1])-(p[1]-c[1])*(x[0]-c[0])}function Kt(c){return c>1?0:c<-1?Ce:Math.acos(c)}function qt(c){return c>1?ar:c<-1?-ar:Math.asin(c)}function yt(c){return((c=Math.exp(c))-1/c)/2}function At(c){return((c=Math.exp(c))+1/c)/2}function ua(c){return((c=Math.exp(2*c))-1)/(c+1)}function fa(c){return(c=Math.sin(c/2))*c}var Nt=Math.SQRT2,Ba=2,yr=4;e.interpolateZoom=function(c,p){var x=c[0],M=c[1],S=c[2],L=p[0],P=p[1],E=p[2],N=L-x,G=P-M,W=N*N+G*G,$,j;if(W0&&(je=je.transition().duration(P)),je.call(we.event)}function hr(){oe&&oe.domain(te.range().map(function(je){return(je-c.x)/c.k}).map(te.invert)),xe&&xe.domain(ce.range().map(function(je){return(je-c.y)/c.k}).map(ce.invert))}function dr(je){E++||je({type:"zoomstart"})}function Cr(je){hr(),je({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function pr(je){--E||(je({type:"zoomend"}),x=null)}function Tr(){var je=this,Lr=_e.of(je,arguments),qr=0,Kr=e.select(i(je)).on(G,da).on(W,Da),wt=he(e.mouse(je)),Ut=vr(je);tv.call(je),dr(Lr);function da(){qr=1,sr(e.mouse(je),wt),Cr(Lr)}function Da(){Kr.on(G,null).on(W,null),Ut(qr),pr(Lr)}}function Jr(){var je=this,Lr=_e.of(je,arguments),qr={},Kr=0,wt,Ut=".zoom-"+e.event.changedTouches[0].identifier,da="touchmove"+Ut,Da="touchend"+Ut,Ya=[],Ea=e.select(je),Ga=vr(je);Wa(),dr(Lr),Ea.on(N,null).on(j,Wa);function wa(){var Un=e.touches(je);return wt=c.k,Un.forEach(function(pa){pa.identifier in qr&&(qr[pa.identifier]=he(pa))}),Un}function Wa(){var Un=e.event.target;e.select(Un).on(da,Jl).on(Da,$F),Ya.push(Un);for(var pa=e.event.changedTouches,yn=0,vi=pa.length;yn1){var Kl=gn[0],al=gn[1],iv=Kl[0]-al[0],nb=Kl[1]-al[1];Kr=iv*iv+nb*nb}}function Jl(){var Un=e.touches(je),pa,yn,vi,gn;tv.call(je);for(var ls=0,Kl=Un.length;ls1?1:p,x=x<0?0:x>1?1:x,S=x<=.5?x*(1+p):x+p-x*p,M=2*x-S;function L(E){return E>360?E-=360:E<0&&(E+=360),E<60?M+(S-M)*E/60:E<180?S:E<240?M+(S-M)*(240-E)/60:M}function P(E){return Math.round(L(E)*255)}return new qa(P(c+120),P(c),P(c-120))}e.hcl=na;function na(c,p,x){return this instanceof na?(this.h=+c,this.c=+p,void(this.l=+x)):arguments.length<2?c instanceof na?new na(c.h,c.c,c.l):c instanceof Qt?zc(c.l,c.a,c.b):zc((c=ir((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new na(c,p,x)}var Hn=na.prototype=new kt;Hn.brighter=function(c){return new na(this.h,this.c,Math.min(100,this.l+nt*(arguments.length?c:1)))},Hn.darker=function(c){return new na(this.h,this.c,Math.max(0,this.l-nt*(arguments.length?c:1)))},Hn.rgb=function(){return On(this.h,this.c,this.l).rgb()};function On(c,p,x){return isNaN(c)&&(c=0),isNaN(p)&&(p=0),new Qt(x,Math.cos(c*=Mr)*p,Math.sin(c)*p)}e.lab=Qt;function Qt(c,p,x){return this instanceof Qt?(this.l=+c,this.a=+p,void(this.b=+x)):arguments.length<2?c instanceof Qt?new Qt(c.l,c.a,c.b):c instanceof na?On(c.h,c.c,c.l):ir((c=qa(c)).r,c.g,c.b):new Qt(c,p,x)}var nt=18,ca=.95047,Ul=1,Vl=1.08883,rl=Qt.prototype=new kt;rl.brighter=function(c){return new Qt(Math.min(100,this.l+nt*(arguments.length?c:1)),this.a,this.b)},rl.darker=function(c){return new Qt(Math.max(0,this.l-nt*(arguments.length?c:1)),this.a,this.b)},rl.rgb=function(){return Rc(this.l,this.a,this.b)};function Rc(c,p,x){var M=(c+16)/116,S=M+p/500,L=M-x/200;return S=Su(S)*ca,M=Su(M)*Ul,L=Su(L)*Vl,new qa(Lu(3.2404542*S-1.5371385*M-.4985314*L),Lu(-.969266*S+1.8760108*M+.041556*L),Lu(.0556434*S-.2040259*M+1.0572252*L))}function zc(c,p,x){return c>0?new na(Math.atan2(x,p)*Br,Math.sqrt(p*p+x*x),c):new na(NaN,NaN,c)}function Su(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function Cu(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Lu(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=qa;function qa(c,p,x){return this instanceof qa?(this.r=~~c,this.g=~~p,void(this.b=~~x)):arguments.length<2?c instanceof qa?new qa(c.r,c.g,c.b):Wr(""+c,qa,La):new qa(c,p,x)}function Nc(c){return new qa(c>>16,c>>8&255,c&255)}function $o(c){return Nc(c)+""}var jo=qa.prototype=new kt;jo.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var p=this.r,x=this.g,M=this.b,S=30;return!p&&!x&&!M?new qa(S,S,S):(p&&p>4,M=M>>4|M,S=N&240,S=S>>4|S,L=N&15,L=L<<4|L):c.length===7&&(M=(N&16711680)>>16,S=(N&65280)>>8,L=N&255)),p(M,S,L))}function $r(c,p,x){var M=Math.min(c/=255,p/=255,x/=255),S=Math.max(c,p,x),L=S-M,P,E,N=(S+M)/2;return L?(E=N<.5?L/(S+M):L/(2-S-M),c==S?P=(p-x)/L+(p0&&N<1?0:P),new ot(P,E,N)}function ir(c,p,x){c=va(c),p=va(p),x=va(x);var M=Cu((.4124564*c+.3575761*p+.1804375*x)/ca),S=Cu((.2126729*c+.7151522*p+.072175*x)/Ul),L=Cu((.0193339*c+.119192*p+.9503041*x)/Vl);return Qt(116*S-16,500*(M-S),200*(S-L))}function va(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function st(c){var p=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(p*2.55):p}var ha=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});ha.forEach(function(c,p){ha.set(c,Nc(p))});function Rr(c){return typeof c=="function"?c:function(){return c}}e.functor=Rr,e.xhr=Bn(J);function Bn(c){return function(p,x,M){return arguments.length===2&&typeof x=="function"&&(M=x,x=null),Gl(p,x,c,M)}}function Gl(c,p,x,M){var S={},L=e.dispatch("beforesend","progress","load","error"),P={},E=new XMLHttpRequest,N=null;self.XDomainRequest&&!("withCredentials"in E)&&/^(http(s)?:)?\/\//.test(c)&&(E=new XDomainRequest),"onload"in E?E.onload=E.onerror=G:E.onreadystatechange=function(){E.readyState>3&&G()};function G(){var W=E.status,$;if(!W&&eN(E)||W>=200&&W<300||W===304){try{$=x.call(S,E)}catch(j){L.error.call(S,j);return}L.load.call(S,$)}else L.error.call(S,E)}return E.onprogress=function(W){var $=e.event;e.event=W;try{L.progress.call(S,E)}finally{e.event=$}},S.header=function(W,$){return W=(W+"").toLowerCase(),arguments.length<2?P[W]:($==null?delete P[W]:P[W]=$+"",S)},S.mimeType=function(W){return arguments.length?(p=W==null?null:W+"",S):p},S.responseType=function(W){return arguments.length?(N=W,S):N},S.response=function(W){return x=W,S},["get","post"].forEach(function(W){S[W]=function(){return S.send.apply(S,[W].concat(t(arguments)))}}),S.send=function(W,$,j){if(arguments.length===2&&typeof $=="function"&&(j=$,$=null),E.open(W,c,!0),p!=null&&!("accept"in P)&&(P.accept=p+",*/*"),E.setRequestHeader)for(var de in P)E.setRequestHeader(de,P[de]);return p!=null&&E.overrideMimeType&&E.overrideMimeType(p),N!=null&&(E.responseType=N),j!=null&&S.on("error",j).on("load",function(_e){j(null,_e)}),L.beforesend.call(S,E),E.send($==null?null:$),S},S.abort=function(){return E.abort(),S},e.rebind(S,L,"on"),M==null?S:S.get(jz(M))}function jz(c){return c.length===1?function(p,x){c(p==null?x:null)}:c}function eN(c){var p=c.responseType;return p&&p!=="text"?c.response:c.responseText}e.dsv=function(c,p){var x=new RegExp('["'+c+` +]`),M=c.charCodeAt(0);function S(G,W,$){arguments.length<3&&($=W,W=null);var j=Gl(G,p,W==null?L:P(W),$);return j.row=function(de){return arguments.length?j.response((W=de)==null?L:P(de)):W},j}function L(G){return S.parse(G.responseText)}function P(G){return function(W){return S.parse(W.responseText,G)}}S.parse=function(G,W){var $;return S.parseRows(G,function(j,de){if($)return $(j,de-1);var _e=function(te){for(var oe={},ce=j.length,xe=0;xe=_e)return j;if(xe)return xe=!1,$;var Be=te;if(G.charCodeAt(Be)===34){for(var tr=Be;tr++<_e;)if(G.charCodeAt(tr)===34){if(G.charCodeAt(tr+1)!==34)break;++tr}te=tr+2;var sr=G.charCodeAt(tr+1);return sr===13?(xe=!0,G.charCodeAt(tr+2)===10&&++te):sr===10&&(xe=!0),G.slice(Be+1,tr).replace(/""/g,'"')}for(;te<_e;){var sr=G.charCodeAt(te++),nr=1;if(sr===10)xe=!0;else if(sr===13)xe=!0,G.charCodeAt(te)===10&&(++te,++nr);else if(sr!==M)continue;return G.slice(Be,te-nr)}return G.slice(Be)}for(;(ce=we())!==j;){for(var he=[];ce!==$&&ce!==j;)he.push(ce),ce=we();W&&(he=W(he,oe++))==null||de.push(he)}return de},S.format=function(G){if(Array.isArray(G[0]))return S.formatRows(G);var W=new O,$=[];return G.forEach(function(j){for(var de in j)W.has(de)||$.push(W.add(de))}),[$.map(N).join(c)].concat(G.map(function(j){return $.map(function(de){return N(j[de])}).join(c)})).join(` +`)},S.formatRows=function(G){return G.map(E).join(` +`)};function E(G){return G.map(N).join(c)}function N(G){return x.test(G)?'"'+G.replace(/\"/g,'""')+'"':G}return S},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Fc,Ic,Hc,Oc,V3=this[U(this,"requestAnimationFrame")]||function(c){setTimeout(c,17)};e.timer=function(){Bc.apply(this,arguments)};function Bc(c,p,x){var M=arguments.length;M<2&&(p=0),M<3&&(x=Date.now());var S=x+p,L={c,t:S,n:null};return Ic?Ic.n=L:Fc=L,Ic=L,Hc||(Oc=clearTimeout(Oc),Hc=1,V3(v1)),L}function v1(){var c=G3(),p=W3()-c;p>24?(isFinite(p)&&(clearTimeout(Oc),Oc=setTimeout(v1,p)),Hc=0):(Hc=1,V3(v1))}e.timer.flush=function(){G3(),W3()};function G3(){for(var c=Date.now(),p=Fc;p;)c>=p.t&&p.c(c-p.t)&&(p.c=null),p=p.n;return c}function W3(){for(var c,p=Fc,x=1/0;p;)p.c?(p.t=0;--E)te.push(S[G[$[E]][2]]);for(E=+de;E1&&Qr(c[x[M-2]],c[x[M-1]],c[S])<=0;)--M;x[M++]=S}return x.slice(0,M)}function rN(c,p){return c[0]-p[0]||c[1]-p[1]}e.geom.polygon=function(c){return re(c,Yc),c};var Yc=e.geom.polygon.prototype=[];Yc.area=function(){for(var c=-1,p=this.length,x,M=this[p-1],S=0;++cue)E=E.L;else if(P=p-iN(E,x),P>ue){if(!E.R){M=E;break}E=E.R}else{L>-ue?(M=E.P,S=E):P>-ue?(M=E,S=E.N):M=S=E;break}var N=Q3(c);if(ts.insert(M,N),!(!M&&!S)){if(M===S){ns(M),S=Q3(M.site),ts.insert(N,S),N.edge=S.edge=Eu(M.site,N.site),as(M),as(S);return}if(!S){N.edge=Eu(M.site,N.site);return}ns(M),ns(S);var G=M.site,W=G.x,$=G.y,j=c.x-W,de=c.y-$,_e=S.site,te=_e.x-W,oe=_e.y-$,ce=2*(j*oe-de*te),xe=j*j+de*de,we=te*te+oe*oe,he={x:(oe*xe-de*we)/ce+W,y:(j*we-te*xe)/ce+$};Uc(S.edge,G,_e,he),N.edge=Eu(G,c,null,he),S.edge=Eu(c,_e,null,he),as(M),as(S)}}function $3(c,p){var x=c.site,M=x.x,S=x.y,L=S-p;if(!L)return M;var P=c.P;if(!P)return-1/0;x=P.site;var E=x.x,N=x.y,G=N-p;if(!G)return E;var W=E-M,$=1/L-1/G,j=W/G;return $?(-j+Math.sqrt(j*j-2*$*(W*W/(-2*G)-N+G/2+S-L/2)))/$+M:(M+E)/2}function iN(c,p){var x=c.N;if(x)return $3(x,p);var M=c.site;return M.y===p?M.x:1/0}function j3(c){this.site=c,this.edges=[]}j3.prototype.prepare=function(){for(var c=this.edges,p=c.length,x;p--;)x=c[p].edge,(!x.b||!x.a)&&c.splice(p,1);return c.sort(e5),c.length};function lN(c){for(var p=c[0][0],x=c[1][0],M=c[0][1],S=c[1][1],L,P,E,N,G=Wl,W=G.length,$,j,de,_e,te,oe;W--;)if($=G[W],!(!$||!$.prepare()))for(de=$.edges,_e=de.length,j=0;j<_e;)oe=de[j].end(),E=oe.x,N=oe.y,te=de[++j%_e].start(),L=te.x,P=te.y,(_(E-L)>ue||_(N-P)>ue)&&(de.splice(j,0,new Vc(cN($.site,oe,_(E-p)ue?{x:p,y:_(L-p)ue?{x:_(P-S)ue?{x,y:_(L-x)ue?{x:_(P-M)=-qe)){var j=N*N+G*G,de=W*W+oe*oe,_e=(oe*j-G*de)/$,te=(N*de-W*j)/$,oe=te+E,ce=K3.pop()||new oN;ce.arc=c,ce.site=S,ce.x=_e+P,ce.y=oe+Math.sqrt(_e*_e+te*te),ce.cy=oe,c.circle=ce;for(var xe=null,we=Du._;we;)if(ce.y0)){if(te/=de,de<0){if(te<$)return;te0){if(te>j)return;te>$&&($=te)}if(te=x-E,!(!de&&te<0)){if(te/=de,de<0){if(te>j)return;te>$&&($=te)}else if(de>0){if(te<$)return;te0)){if(te/=_e,_e<0){if(te<$)return;te0){if(te>j)return;te>$&&($=te)}if(te=M-N,!(!_e&&te<0)){if(te/=_e,_e<0){if(te>j)return;te>$&&($=te)}else if(_e>0){if(te<$)return;te0&&(S.a={x:E+$*de,y:N+$*_e}),j<1&&(S.b={x:E+j*de,y:N+j*_e}),S}}}}}}function uN(c){for(var p=rs,x=sN(c[0][0],c[0][1],c[1][0],c[1][1]),M=p.length,S;M--;)S=p[M],(!fN(S,c)||!x(S)||_(S.a.x-S.b.x)=L)return;if(W>j){if(!M)M={x:_e,y:P};else if(M.y>=E)return;x={x:_e,y:E}}else{if(!M)M={x:_e,y:E};else if(M.y1)if(W>j){if(!M)M={x:(P-ce)/oe,y:P};else if(M.y>=E)return;x={x:(E-ce)/oe,y:E}}else{if(!M)M={x:(E-ce)/oe,y:E};else if(M.y=L)return;x={x:L,y:oe*L+ce}}else{if(!M)M={x:L,y:oe*L+ce};else if(M.x=W&&ce.x<=j&&ce.y>=$&&ce.y<=de?[[W,de],[j,de],[j,$],[W,$]]:[];xe.point=N[te]}),G}function E(N){return N.map(function(G,W){return{x:Math.round(M(G,W)/ue)*ue,y:Math.round(S(G,W)/ue)*ue,i:W}})}return P.links=function(N){return g1(E(N)).edges.filter(function(G){return G.l&&G.r}).map(function(G){return{source:N[G.l.i],target:N[G.r.i]}})},P.triangles=function(N){var G=[];return g1(E(N)).cells.forEach(function(W,$){for(var j=W.site,de=W.edges.sort(e5),_e=-1,te=de.length,oe,ce,xe=de[te-1].edge,we=xe.l===j?xe.r:xe.l;++_ewe&&(we=W.x),W.y>he&&(he=W.y),de.push(W.x),_e.push(W.y);else for(te=0;tewe&&(we=Be),tr>he&&(he=tr),de.push(Be),_e.push(tr)}var sr=we-ce,nr=he-xe;sr>nr?he=xe+sr:we=ce+nr;function hr(pr,Tr,Jr,Dt,rt,je,Lr,qr){if(!(isNaN(Jr)||isNaN(Dt)))if(pr.leaf){var Kr=pr.x,wt=pr.y;if(Kr!=null)if(_(Kr-Jr)+_(wt-Dt)<.01)dr(pr,Tr,Jr,Dt,rt,je,Lr,qr);else{var Ut=pr.point;pr.x=pr.y=pr.point=null,dr(pr,Ut,Kr,wt,rt,je,Lr,qr),dr(pr,Tr,Jr,Dt,rt,je,Lr,qr)}else pr.x=Jr,pr.y=Dt,pr.point=Tr}else dr(pr,Tr,Jr,Dt,rt,je,Lr,qr)}function dr(pr,Tr,Jr,Dt,rt,je,Lr,qr){var Kr=(rt+Lr)*.5,wt=(je+qr)*.5,Ut=Jr>=Kr,da=Dt>=wt,Da=da<<1|Ut;pr.leaf=!1,pr=pr.nodes[Da]||(pr.nodes[Da]=a5()),Ut?rt=Kr:Lr=Kr,da?je=wt:qr=wt,hr(pr,Tr,Jr,Dt,rt,je,Lr,qr)}var Cr=a5();if(Cr.add=function(pr){hr(Cr,pr,+$(pr,++te),+j(pr,te),ce,xe,we,he)},Cr.visit=function(pr){zu(pr,Cr,ce,xe,we,he)},Cr.find=function(pr){return mN(Cr,pr[0],pr[1],ce,xe,we,he)},te=-1,p==null){for(;++teL||j>P||de=Be,nr=x>=tr,hr=nr<<1|sr,dr=hr+4;hrx&&(L=p.slice(x,L),E[P]?E[P]+=L:E[++P]=L),(M=M[0])===(S=S[0])?E[P]?E[P]+=S:E[++P]=S:(E[++P]=null,N.push({i:P,x:zi(M,S)})),x=_1.lastIndex;return x=0&&!(M=e.interpolators[x](c,p)););return M}e.interpolators=[function(c,p){var x=typeof p;return(x==="string"?ha.has(p.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(p)?b1:i5:p instanceof kt?b1:Array.isArray(p)?Zc:x==="object"&&isNaN(p)?n5:zi)(c,p)}],e.interpolateArray=Zc;function Zc(c,p){var x=[],M=[],S=c.length,L=p.length,P=Math.min(c.length,p.length),E;for(E=0;E=0?c.slice(0,p):c,M=p>=0?c.slice(p+1):"in";return x=yN.get(x)||l5,M=gN.get(M)||J,bN(M(x.apply(null,r.call(arguments,1))))};function bN(c){return function(p){return p<=0?0:p>=1?1:c(p)}}function o5(c){return function(p){return 1-c(1-p)}}function s5(c){return function(p){return .5*(p<.5?c(2*p):2-c(2-2*p))}}function xN(c){return c*c}function _N(c){return c*c*c}function wN(c){if(c<=0)return 0;if(c>=1)return 1;var p=c*c,x=p*c;return 4*(c<.5?x:3*(c-p)+x-.75)}function TN(c){return function(p){return Math.pow(p,c)}}function MN(c){return 1-Math.cos(c*ar)}function AN(c){return Math.pow(2,10*(c-1))}function kN(c){return 1-Math.sqrt(1-c*c)}function SN(c,p){var x;return arguments.length<2&&(p=.45),arguments.length?x=p/or*Math.asin(1/c):(c=1,x=p/4),function(M){return 1+c*Math.pow(2,-10*M)*Math.sin((M-x)*or/p)}}function CN(c){return c||(c=1.70158),function(p){return p*p*((c+1)*p-c)}}function LN(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375}e.interpolateHcl=qN;function qN(c,p){c=e.hcl(c),p=e.hcl(p);var x=c.h,M=c.c,S=c.l,L=p.h-x,P=p.c-M,E=p.l-S;return isNaN(P)&&(P=0,M=isNaN(M)?p.c:M),isNaN(L)?(L=0,x=isNaN(x)?p.h:x):L>180?L-=360:L<-180&&(L+=360),function(N){return On(x+L*N,M+P*N,S+E*N)+""}}e.interpolateHsl=DN;function DN(c,p){c=e.hsl(c),p=e.hsl(p);var x=c.h,M=c.s,S=c.l,L=p.h-x,P=p.s-M,E=p.l-S;return isNaN(P)&&(P=0,M=isNaN(M)?p.s:M),isNaN(L)?(L=0,x=isNaN(x)?p.h:x):L>180?L-=360:L<-180&&(L+=360),function(N){return La(x+L*N,M+P*N,S+E*N)+""}}e.interpolateLab=EN;function EN(c,p){c=e.lab(c),p=e.lab(p);var x=c.l,M=c.a,S=c.b,L=p.l-x,P=p.a-M,E=p.b-S;return function(N){return Rc(x+L*N,M+P*N,S+E*N)+""}}e.interpolateRound=u5;function u5(c,p){return p-=c,function(x){return Math.round(c+p*x)}}e.transform=function(c){var p=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(x){if(x!=null){p.setAttribute("transform",x);var M=p.transform.baseVal.consolidate()}return new f5(M?M.matrix:RN)})(c)};function f5(c){var p=[c.a,c.b],x=[c.c,c.d],M=v5(p),S=c5(p,x),L=v5(PN(x,p,-S))||0;p[0]*x[1]180?p+=360:p-c>180&&(c+=360),M.push({i:x.push(is(x)+"rotate(",null,")")-2,x:zi(c,p)})):p&&x.push(is(x)+"rotate("+p+")")}function FN(c,p,x,M){c!==p?M.push({i:x.push(is(x)+"skewX(",null,")")-2,x:zi(c,p)}):p&&x.push(is(x)+"skewX("+p+")")}function IN(c,p,x,M){if(c[0]!==p[0]||c[1]!==p[1]){var S=x.push(is(x)+"scale(",null,",",null,")");M.push({i:S-4,x:zi(c[0],p[0])},{i:S-2,x:zi(c[1],p[1])})}else(p[0]!==1||p[1]!==1)&&x.push(is(x)+"scale("+p+")")}function h5(c,p){var x=[],M=[];return c=e.transform(c),p=e.transform(p),zN(c.translate,p.translate,x,M),NN(c.rotate,p.rotate,x,M),FN(c.skew,p.skew,x,M),IN(c.scale,p.scale,x,M),c=p=null,function(S){for(var L=-1,P=M.length,E;++L0?L=he:(x.c=null,x.t=NaN,x=null,p.end({type:"end",alpha:L=0})):he>0&&(p.start({type:"start",alpha:L=he}),x=Bc(c.tick)),c):L},c.start=function(){var he,Be=de.length,tr=_e.length,sr=M[0],nr=M[1],hr,dr;for(he=0;he=0;)L.push(W=G[N]),W.parent=E,W.depth=E.depth+1;x&&(E.value=0),E.children=G}else x&&(E.value=+x.call(M,E,E.depth)||0),delete E.children;return ci(S,function($){var j,de;c&&(j=$.children)&&j.sort(c),x&&(de=$.parent)&&(de.value+=$.value)}),P}return M.sort=function(S){return arguments.length?(c=S,M):c},M.children=function(S){return arguments.length?(p=S,M):p},M.value=function(S){return arguments.length?(x=S,M):x},M.revalue=function(S){return x&&(Fu(S,function(L){L.children&&(L.value=0)}),ci(S,function(L){var P;L.children||(L.value=+x.call(M,L,L.depth)||0),(P=L.parent)&&(P.value+=L.value)})),S},M};function Nu(c,p){return e.rebind(c,p,"sort","children","value"),c.nodes=c,c.links=jN,c}function Fu(c,p){for(var x=[c];(c=x.pop())!=null;)if(p(c),(S=c.children)&&(M=S.length))for(var M,S;--M>=0;)x.push(S[M])}function ci(c,p){for(var x=[c],M=[];(c=x.pop())!=null;)if(M.push(c),(P=c.children)&&(L=P.length))for(var S=-1,L,P;++SS&&(S=E),M.push(E)}for(P=0;PM&&(x=p,M=S);return x}function lF(c){return c.reduce(oF,0)}function oF(c,p){return c+p[1]}e.layout.histogram=function(){var c=!0,p=Number,x=uF,M=sF;function S(L,j){for(var E=[],N=L.map(p,this),G=x.call(this,N,j),W=M.call(this,G,N,j),$,j=-1,de=N.length,_e=W.length-1,te=c?1:1/de,oe;++j<_e;)$=E[j]=[],$.dx=W[j+1]-($.x=W[j]),$.y=0;if(_e>0)for(j=-1;++j=G[0]&&oe<=G[1]&&($=E[e.bisect(W,oe,1,_e)-1],$.y+=te,$.push(L[j]));return E}return S.value=function(L){return arguments.length?(p=L,S):p},S.range=function(L){return arguments.length?(x=Rr(L),S):x},S.bins=function(L){return arguments.length?(M=typeof L=="number"?function(P){return y5(P,L)}:Rr(L),S):M},S.frequency=function(L){return arguments.length?(c=!!L,S):c},S};function sF(c,p){return y5(c,Math.ceil(Math.log(p.length)/Math.LN2+1))}function y5(c,p){for(var x=-1,M=+c[0],S=(c[1]-M)/p,L=[];++x<=p;)L[x]=S*x+M;return L}function uF(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(fF),p=0,x=[1,1],M;function S(L,P){var E=c.call(this,L,P),N=E[0],G=x[0],W=x[1],$=M==null?Math.sqrt:typeof M=="function"?M:function(){return M};if(N.x=N.y=0,ci(N,function(de){de.r=+$(de.value)}),ci(N,x5),p){var j=p*(M?1:Math.max(2*N.r/G,2*N.r/W))/2;ci(N,function(de){de.r+=j}),ci(N,x5),ci(N,function(de){de.r-=j})}return _5(N,G/2,W/2,M?1:1/Math.max(2*N.r/G,2*N.r/W)),E}return S.size=function(L){return arguments.length?(x=L,S):x},S.radius=function(L){return arguments.length?(M=L==null||typeof L=="function"?L:+L,S):M},S.padding=function(L){return arguments.length?(p=+L,S):p},Nu(S,c)};function fF(c,p){return c.value-p.value}function M1(c,p){var x=c._pack_next;c._pack_next=p,p._pack_prev=c,p._pack_next=x,x._pack_prev=p}function g5(c,p){c._pack_next=p,p._pack_prev=c}function b5(c,p){var x=p.x-c.x,M=p.y-c.y,S=c.r+p.r;return .999*S*S>x*x+M*M}function x5(c){if(!(p=c.children)||!(j=p.length))return;var p,x=1/0,M=-1/0,S=1/0,L=-1/0,P,E,N,G,W,$,j;function de(he){x=Math.min(he.x-he.r,x),M=Math.max(he.x+he.r,M),S=Math.min(he.y-he.r,S),L=Math.max(he.y+he.r,L)}if(p.forEach(cF),P=p[0],P.x=-P.r,P.y=0,de(P),j>1&&(E=p[1],E.x=E.r,E.y=0,de(E),j>2))for(N=p[2],w5(P,E,N),de(N),M1(P,N),P._pack_prev=N,M1(N,E),E=P._pack_next,G=3;Goe.x&&(oe=Be),Be.depth>ce.depth&&(ce=Be)});var xe=p(te,oe)/2-te.x,we=x[0]/(oe.x+p(oe,te)/2+xe),he=x[1]/(ce.depth||1);Fu(de,function(Be){Be.x=(Be.x+xe)*we,Be.y=Be.depth*he})}return j}function L(W){for(var $={A:null,children:[W]},j=[$],de;(de=j.pop())!=null;)for(var _e=de.children,te,oe=0,ce=_e.length;oe0&&(hF(pF(te,W,j),W,Be),ce+=Be,xe+=Be),we+=te.m,ce+=de.m,he+=oe.m,xe+=_e.m;te&&!k1(_e)&&(_e.t=te,_e.m+=we-xe),de&&!A1(oe)&&(oe.t=de,oe.m+=ce-he,j=W)}return j}function G(W){W.x*=x[0],W.y=W.depth*x[1]}return S.separation=function(W){return arguments.length?(p=W,S):p},S.size=function(W){return arguments.length?(M=(x=W)==null?G:null,S):M?null:x},S.nodeSize=function(W){return arguments.length?(M=(x=W)==null?null:G,S):M?x:null},Nu(S,c)};function T5(c,p){return c.parent==p.parent?1:2}function A1(c){var p=c.children;return p.length?p[0]:c.t}function k1(c){var p=c.children,x;return(x=p.length)?p[x-1]:c.t}function hF(c,p,x){var M=x/(p.i-c.i);p.c-=M,p.s+=x,c.c+=M,p.z+=x,p.m+=x}function dF(c){for(var p=0,x=0,M=c.children,S=M.length,L;--S>=0;)L=M[S],L.z+=p,L.m+=p,p+=L.s+(x+=L.c)}function pF(c,p,x){return c.a.parent===p.parent?c.a:x}e.layout.cluster=function(){var c=e.layout.hierarchy().sort(null).value(null),p=T5,x=[1,1],M=!1;function S(L,P){var E=c.call(this,L,P),N=E[0],G,W=0;ci(N,function(te){var oe=te.children;oe&&oe.length?(te.x=yF(oe),te.y=mF(oe)):(te.x=G?W+=p(te,G):0,te.y=0,G=te)});var $=M5(N),j=A5(N),de=$.x-p($,j)/2,_e=j.x+p(j,$)/2;return ci(N,M?function(te){te.x=(te.x-N.x)*x[0],te.y=(N.y-te.y)*x[1]}:function(te){te.x=(te.x-de)/(_e-de)*x[0],te.y=(1-(N.y?te.y/N.y:1))*x[1]}),E}return S.separation=function(L){return arguments.length?(p=L,S):p},S.size=function(L){return arguments.length?(M=(x=L)==null,S):M?null:x},S.nodeSize=function(L){return arguments.length?(M=(x=L)!=null,S):M?x:null},Nu(S,c)};function mF(c){return 1+e.max(c,function(p){return p.y})}function yF(c){return c.reduce(function(p,x){return p+x.x},0)/c.length}function M5(c){var p=c.children;return p&&p.length?M5(p[0]):c}function A5(c){var p=c.children,x;return p&&(x=p.length)?A5(p[x-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),p=Math.round,x=[1,1],M=null,S=S1,L=!1,P,E="squarify",N=.5*(1+Math.sqrt(5));function G(te,oe){for(var ce=-1,xe=te.length,we,he;++ce0;)xe.push(he=we[nr-1]),xe.area+=he.area,E!=="squarify"||(tr=j(xe,sr))<=Be?(we.pop(),Be=tr):(xe.area-=xe.pop().area,de(xe,sr,ce,!1),sr=Math.min(ce.dx,ce.dy),xe.length=xe.area=0,Be=1/0);xe.length&&(de(xe,sr,ce,!0),xe.length=xe.area=0),oe.forEach(W)}}function $(te){var oe=te.children;if(oe&&oe.length){var ce=S(te),xe=oe.slice(),we,he=[];for(G(xe,ce.dx*ce.dy/te.value),he.area=0;we=xe.pop();)he.push(we),he.area+=we.area,we.z!=null&&(de(he,we.z?ce.dx:ce.dy,ce,!xe.length),he.length=he.area=0);oe.forEach($)}}function j(te,oe){for(var ce=te.area,xe,we=0,he=1/0,Be=-1,tr=te.length;++Bewe&&(we=xe));return ce*=ce,oe*=oe,ce?Math.max(oe*we*N/ce,ce/(oe*he*N)):1/0}function de(te,oe,ce,xe){var we=-1,he=te.length,Be=ce.x,tr=ce.y,sr=oe?p(te.area/oe):0,nr;if(oe==ce.dx){for((xe||sr>ce.dy)&&(sr=ce.dy);++wece.dx)&&(sr=ce.dx);++we1);return c+p*M*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var c=e.random.normal.apply(e,arguments);return function(){return Math.exp(c())}},bates:function(c){var p=e.random.irwinHall(c);return function(){return p()/c}},irwinHall:function(c){return function(){for(var p=0,x=0;x2?xF:gF,G=M?ON:HN;return S=N(c,p,G,x),L=N(p,c,G,Zl),E}function E(N){return S(N)}return E.invert=function(N){return L(N)},E.domain=function(N){return arguments.length?(c=N.map(Number),P()):c},E.range=function(N){return arguments.length?(p=N,P()):p},E.rangeRound=function(N){return E.range(N).interpolate(u5)},E.clamp=function(N){return arguments.length?(M=N,P()):M},E.interpolate=function(N){return arguments.length?(x=N,P()):x},E.ticks=function(N){return q1(c,N)},E.tickFormat=function(N,G){return d3_scale_linearTickFormat(c,N,G)},E.nice=function(N){return q5(c,N),P()},E.copy=function(){return C5(c,p,x,M)},P()}function L5(c,p){return e.rebind(c,p,"range","rangeRound","interpolate","clamp")}function q5(c,p){return C1(c,S5(L1(c,p)[2])),C1(c,S5(L1(c,p)[2])),c}function L1(c,p){p==null&&(p=10);var x=Xc(c),M=x[1]-x[0],S=Math.pow(10,Math.floor(Math.log(M/p)/Math.LN10)),L=p/M*S;return L<=.15?S*=10:L<=.35?S*=5:L<=.75&&(S*=2),x[0]=Math.ceil(x[0]/S)*S,x[1]=Math.floor(x[1]/S)*S+S*.5,x[2]=S,x}function q1(c,p){return e.range.apply(e,L1(c,p))}var _F={s:1,g:1,p:1,r:1,e:1};function D5(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function aie(c,p){var x=D5(p[2]);return c in _F?Math.abs(x-D5(Math.max(_(p[0]),_(p[1]))))+ +(c!=="e"):x-(c==="%")*2}e.scale.log=function(){return E5(e.scale.linear().domain([0,1]),10,!0,[1,10])};function E5(c,p,x,M){function S(E){return(x?Math.log(E<0?0:E):-Math.log(E>0?0:-E))/Math.log(p)}function L(E){return x?Math.pow(p,E):-Math.pow(p,-E)}function P(E){return c(S(E))}return P.invert=function(E){return L(c.invert(E))},P.domain=function(E){return arguments.length?(x=E[0]>=0,c.domain((M=E.map(Number)).map(S)),P):M},P.base=function(E){return arguments.length?(p=+E,c.domain(M.map(S)),P):p},P.nice=function(){var E=C1(M.map(S),x?Math:wF);return c.domain(E),M=E.map(L),P},P.ticks=function(){var E=Xc(M),N=[],G=E[0],W=E[1],$=Math.floor(S(G)),j=Math.ceil(S(W)),de=p%1?2:p;if(isFinite(j-$)){if(x){for(;$0;_e--)N.push(L($)*_e);for($=0;N[$]W;j--);N=N.slice($,j)}return N},P.copy=function(){return E5(c.copy(),p,x,M)},L5(P,c)}var wF={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return P5(e.scale.linear(),1,[0,1])};function P5(c,p,x){var M=Kc(p),S=Kc(1/p);function L(P){return c(M(P))}return L.invert=function(P){return S(c.invert(P))},L.domain=function(P){return arguments.length?(c.domain((x=P.map(Number)).map(M)),L):x},L.ticks=function(P){return q1(x,P)},L.tickFormat=function(P,E){return d3_scale_linearTickFormat(x,P,E)},L.nice=function(P){return L.domain(q5(x,P))},L.exponent=function(P){return arguments.length?(M=Kc(p=P),S=Kc(1/p),c.domain(x.map(M)),L):p},L.copy=function(){return P5(c.copy(),p,x)},L5(L,c)}function Kc(c){return function(p){return p<0?-Math.pow(-p,c):Math.pow(p,c)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return R5([],{t:"range",a:[[]]})};function R5(c,p){var x,M,S;function L(E){return M[((x.get(E)||(p.t==="range"?x.set(E,c.push(E)):NaN))-1)%M.length]}function P(E,N){return e.range(c.length).map(function(G){return E+N*G})}return L.domain=function(E){if(!arguments.length)return c;c=[],x=new b;for(var N=-1,G=E.length,W;++N0?x[L-1]:c[0],Lj?0:1;if(W=lr)return N(W,_e)+(G?N(G,1-_e):"")+"Z";var te,oe,ce,xe,we=0,he=0,Be,tr,sr,nr,hr,dr,Cr,pr,Tr=[];if((xe=(+P.apply(this,arguments)||0)/2)&&(ce=M===Qc?Math.sqrt(G*G+W*W):+M.apply(this,arguments),_e||(he*=-1),W&&(he=qt(ce/W*Math.sin(xe))),G&&(we=qt(ce/G*Math.sin(xe)))),W){Be=W*Math.cos($+he),tr=W*Math.sin($+he),sr=W*Math.cos(j-he),nr=W*Math.sin(j-he);var Jr=Math.abs(j-$-2*he)<=Ce?0:1;if(he&&$c(Be,tr,sr,nr)===_e^Jr){var Dt=($+j)/2;Be=W*Math.cos(Dt),tr=W*Math.sin(Dt),sr=nr=null}}else Be=tr=0;if(G){hr=G*Math.cos(j-we),dr=G*Math.sin(j-we),Cr=G*Math.cos($+we),pr=G*Math.sin($+we);var rt=Math.abs($-j+2*we)<=Ce?0:1;if(we&&$c(hr,dr,Cr,pr)===1-_e^rt){var je=($+j)/2;hr=G*Math.cos(je),dr=G*Math.sin(je),Cr=pr=null}}else hr=dr=0;if(de>ue&&(te=Math.min(Math.abs(W-G)/2,+x.apply(this,arguments)))>.001){oe=G0?0:1}function jc(c,p,x,M,S){var L=c[0]-p[0],P=c[1]-p[1],E=(S?M:-M)/Math.sqrt(L*L+P*P),N=E*P,G=-E*L,W=c[0]+N,$=c[1]+G,j=p[0]+N,de=p[1]+G,_e=(W+j)/2,te=($+de)/2,oe=j-W,ce=de-$,xe=oe*oe+ce*ce,we=x-M,he=W*de-j*$,Be=(ce<0?-1:1)*Math.sqrt(Math.max(0,we*we*xe-he*he)),tr=(he*ce-oe*Be)/xe,sr=(-he*oe-ce*Be)/xe,nr=(he*ce+oe*Be)/xe,hr=(-he*oe+ce*Be)/xe,dr=tr-_e,Cr=sr-te,pr=nr-_e,Tr=hr-te;return dr*dr+Cr*Cr>pr*pr+Tr*Tr&&(tr=nr,sr=hr),[[tr-N,sr-G],[tr*x/we,sr*x/we]]}function B5(){return!0}function Y5(c){var p=es,x=qu,M=B5,S=Yn,L=S.key,P=.7;function E(N){var G=[],W=[],$=-1,j=N.length,de,_e=Rr(p),te=Rr(x);function oe(){G.push("M",S(c(W),P))}for(;++$1?c.join("L"):c+"Z"}function U5(c){return c.join("L")+"Z"}function DF(c){for(var p=0,x=c.length,M=c[0],S=[M[0],",",M[1]];++p1&&S.push("H",M[0]),S.join("")}function E1(c){for(var p=0,x=c.length,M=c[0],S=[M[0],",",M[1]];++p1){E=p[1],L=c[N],N++,M+="C"+(S[0]+P[0])+","+(S[1]+P[1])+","+(L[0]-E[0])+","+(L[1]-E[1])+","+L[0]+","+L[1];for(var G=2;G9&&(L=x*3/Math.sqrt(L),P[E]=L*M,P[E+1]=L*S));for(E=-1;++E<=N;)L=(c[Math.min(N,E+1)][0]-c[Math.max(0,E-1)][0])/(6*(1+P[E]*P[E])),p.push([L||0,P[E]*L||0]);return p}function OF(c){return c.length<3?Yn(c):c[0]+ev(c,HF(c))}e.svg.line.radial=function(){var c=Y5(Z5);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function Z5(c){for(var p,x=-1,M=c.length,S,L;++xCe)+",1 "+$}function G(W,$,j,de){return"Q 0,0 "+de}return L.radius=function(W){return arguments.length?(x=Rr(W),L):x},L.source=function(W){return arguments.length?(c=Rr(W),L):c},L.target=function(W){return arguments.length?(p=Rr(W),L):p},L.startAngle=function(W){return arguments.length?(M=Rr(W),L):M},L.endAngle=function(W){return arguments.length?(S=Rr(W),L):S},L};function BF(c){return c.radius}e.svg.diagonal=function(){var c=J5,p=K5,x=Q5;function M(S,L){var P=c.call(this,S,L),E=p.call(this,S,L),N=(P.y+E.y)/2,G=[P,{x:P.x,y:N},{x:E.x,y:N},E];return G=G.map(x),"M"+G[0]+"C"+G[1]+" "+G[2]+" "+G[3]}return M.source=function(S){return arguments.length?(c=Rr(S),M):c},M.target=function(S){return arguments.length?(p=Rr(S),M):p},M.projection=function(S){return arguments.length?(x=S,M):x},M};function Q5(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),p=Q5,x=c.projection;return c.projection=function(M){return arguments.length?x(YF(p=M)):p},c};function YF(c){return function(){var p=c.apply(this,arguments),x=p[0],M=p[1]-ar;return[x*Math.cos(M),x*Math.sin(M)]}}e.svg.symbol=function(){var c=VF,p=UF;function x(M,S){return(j5.get(c.call(this,M,S))||$5)(p.call(this,M,S))}return x.type=function(M){return arguments.length?(c=Rr(M),x):c},x.size=function(M){return arguments.length?(p=Rr(M),x):p},x};function UF(){return 64}function VF(){return"circle"}function $5(c){var p=Math.sqrt(c/Ce);return"M0,"+p+"A"+p+","+p+" 0 1,1 0,"+-p+"A"+p+","+p+" 0 1,1 0,"+p+"Z"}var j5=e.map({circle:$5,cross:function(c){var p=Math.sqrt(c/5)/2;return"M"+-3*p+","+-p+"H"+-p+"V"+-3*p+"H"+p+"V"+-p+"H"+3*p+"V"+p+"H"+p+"V"+3*p+"H"+-p+"V"+p+"H"+-3*p+"Z"},diamond:function(c){var p=Math.sqrt(c/(2*eb)),x=p*eb;return"M0,"+-p+"L"+x+",0 0,"+p+" "+-x+",0Z"},square:function(c){var p=Math.sqrt(c)/2;return"M"+-p+","+-p+"L"+p+","+-p+" "+p+","+p+" "+-p+","+p+"Z"},"triangle-down":function(c){var p=Math.sqrt(c/rv),x=p*rv/2;return"M0,"+x+"L"+p+","+-x+" "+-p+","+-x+"Z"},"triangle-up":function(c){var p=Math.sqrt(c/rv),x=p*rv/2;return"M0,"+-x+"L"+p+","+x+" "+-p+","+x+"Z"}});e.svg.symbolTypes=j5.keys();var rv=Math.sqrt(3),eb=Math.tan(30*Mr);be.transition=function(c){for(var p=Xl||++tb,x=I1(c),M=[],S,L,P=av||{time:Date.now(),ease:wN,delay:0,duration:250},E=-1,N=this.length;++E0;)$[--xe].call(c,ce);if(oe>=1)return P.event&&P.event.end.call(c,c.__data__,p),--L.count?delete L[M]:delete c[x],1}P||(E=S.time,N=Bc(j,0,E),P=L[M]={tween:new b,time:E,timer:N,delay:S.delay,duration:S.duration,ease:S.ease,index:p},S=null,++L.count)}e.svg.axis=function(){var c=e.scale.linear(),p=ab,x=6,M=6,S=3,L=[10],P=null,E;function N(G){G.each(function(){var W=e.select(this),$=this.__chart__||c,j=this.__chart__=c.copy(),de=P==null?j.ticks?j.ticks.apply(j,L):j.domain():P,_e=E==null?j.tickFormat?j.tickFormat.apply(j,L):J:E,te=W.selectAll(".tick").data(de,j),oe=te.enter().insert("g",".domain").attr("class","tick").style("opacity",ue),ce=e.transition(te.exit()).style("opacity",ue).remove(),xe=e.transition(te.order()).style("opacity",1),we=Math.max(x,0)+S,he,Be=Jc(j),tr=W.selectAll(".domain").data([0]),sr=(tr.enter().append("path").attr("class","domain"),e.transition(tr));oe.append("line"),oe.append("text");var nr=oe.select("line"),hr=xe.select("line"),dr=te.select("text").text(_e),Cr=oe.select("text"),pr=xe.select("text"),Tr=p==="top"||p==="left"?-1:1,Jr,Dt,rt,je;if(p==="bottom"||p==="top"?(he=ZF,Jr="x",rt="y",Dt="x2",je="y2",dr.attr("dy",Tr<0?"0em":".71em").style("text-anchor","middle"),sr.attr("d","M"+Be[0]+","+Tr*M+"V0H"+Be[1]+"V"+Tr*M)):(he=XF,Jr="y",rt="x",Dt="y2",je="x2",dr.attr("dy",".32em").style("text-anchor",Tr<0?"end":"start"),sr.attr("d","M"+Tr*M+","+Be[0]+"H0V"+Be[1]+"H"+Tr*M)),nr.attr(je,Tr*x),Cr.attr(rt,Tr*we),hr.attr(Dt,0).attr(je,Tr*x),pr.attr(Jr,0).attr(rt,Tr*we),j.rangeBand){var Lr=j,qr=Lr.rangeBand()/2;$=j=function(Kr){return Lr(Kr)+qr}}else $.rangeBand?$=j:ce.call(he,j,$);oe.call(he,$,j),xe.call(he,j,j)})}return N.scale=function(G){return arguments.length?(c=G,N):c},N.orient=function(G){return arguments.length?(p=G in WF?G+"":ab,N):p},N.ticks=function(){return arguments.length?(L=t(arguments),N):L},N.tickValues=function(G){return arguments.length?(P=G,N):P},N.tickFormat=function(G){return arguments.length?(E=G,N):E},N.tickSize=function(G){var W=arguments.length;return W?(x=+G,M=+arguments[W-1],N):x},N.innerTickSize=function(G){return arguments.length?(x=+G,N):x},N.outerTickSize=function(G){return arguments.length?(M=+G,N):M},N.tickPadding=function(G){return arguments.length?(S=+G,N):S},N.tickSubdivide=function(){return arguments.length&&N},N};var ab="bottom",WF={top:1,right:1,bottom:1,left:1};function ZF(c,p,x){c.attr("transform",function(M){var S=p(M);return"translate("+(isFinite(S)?S:x(M))+",0)"})}function XF(c,p,x){c.attr("transform",function(M){var S=p(M);return"translate(0,"+(isFinite(S)?S:x(M))+")"})}e.svg.brush=function(){var c=me(W,"brushstart","brush","brushend"),p=null,x=null,M=[0,0],S=[0,0],L,P,E=!0,N=!0,G=H1[0];function W(te){te.each(function(){var oe=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",_e).on("touchstart.brush",_e),ce=oe.selectAll(".background").data([0]);ce.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),oe.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var xe=oe.selectAll(".resize").data(G,J);xe.exit().remove(),xe.enter().append("g").attr("class",function(tr){return"resize "+tr}).style("cursor",function(tr){return JF[tr]}).append("rect").attr("x",function(tr){return/[ew]$/.test(tr)?-3:null}).attr("y",function(tr){return/^[ns]/.test(tr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),xe.style("display",W.empty()?"none":null);var we=e.transition(oe),he=e.transition(ce),Be;p&&(Be=Jc(p),he.attr("x",Be[0]).attr("width",Be[1]-Be[0]),j(we)),x&&(Be=Jc(x),he.attr("y",Be[0]).attr("height",Be[1]-Be[0]),de(we)),$(we)})}W.event=function(te){te.each(function(){var oe=c.of(this,arguments),ce={x:M,y:S,i:L,j:P},xe=this.__chart__||ce;this.__chart__=ce,Xl?e.select(this).transition().each("start.brush",function(){L=xe.i,P=xe.j,M=xe.x,S=xe.y,oe({type:"brushstart"})}).tween("brush:brush",function(){var we=Zc(M,ce.x),he=Zc(S,ce.y);return L=P=null,function(Be){M=ce.x=we(Be),S=ce.y=he(Be),oe({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=ce.i,P=ce.j,oe({type:"brush",mode:"resize"}),oe({type:"brushend"})}):(oe({type:"brushstart"}),oe({type:"brush",mode:"resize"}),oe({type:"brushend"}))})};function $(te){te.selectAll(".resize").attr("transform",function(oe){return"translate("+M[+/e$/.test(oe)]+","+S[+/^s/.test(oe)]+")"})}function j(te){te.select(".extent").attr("x",M[0]),te.selectAll(".extent,.n>rect,.s>rect").attr("width",M[1]-M[0])}function de(te){te.select(".extent").attr("y",S[0]),te.selectAll(".extent,.e>rect,.w>rect").attr("height",S[1]-S[0])}function _e(){var te=this,oe=e.select(e.event.target),ce=c.of(te,arguments),xe=e.select(te),we=oe.datum(),he=!/^(n|s)$/.test(we)&&p,Be=!/^(e|w)$/.test(we)&&x,tr=oe.classed("extent"),sr=vr(te),nr,hr=e.mouse(te),dr,Cr=e.select(i(te)).on("keydown.brush",Jr).on("keyup.brush",Dt);if(e.event.changedTouches?Cr.on("touchmove.brush",rt).on("touchend.brush",Lr):Cr.on("mousemove.brush",rt).on("mouseup.brush",Lr),xe.interrupt().selectAll("*").interrupt(),tr)hr[0]=M[0]-hr[0],hr[1]=S[0]-hr[1];else if(we){var pr=+/w$/.test(we),Tr=+/^n/.test(we);dr=[M[1-pr]-hr[0],S[1-Tr]-hr[1]],hr[0]=M[pr],hr[1]=S[Tr]}else e.event.altKey&&(nr=hr.slice());xe.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",oe.style("cursor")),ce({type:"brushstart"}),rt();function Jr(){e.event.keyCode==32&&(tr||(nr=null,hr[0]-=M[1],hr[1]-=S[1],tr=2),ie())}function Dt(){e.event.keyCode==32&&tr==2&&(hr[0]+=M[1],hr[1]+=S[1],tr=0,ie())}function rt(){var qr=e.mouse(te),Kr=!1;dr&&(qr[0]+=dr[0],qr[1]+=dr[1]),tr||(e.event.altKey?(nr||(nr=[(M[0]+M[1])/2,(S[0]+S[1])/2]),hr[0]=M[+(qr[0]{(function(e,r){typeof uv=="object"&&typeof sb!="undefined"?r(uv):(e=e||self,r(e.d3=e.d3||{}))})(uv,function(e){"use strict";var r=new Date,t=new Date;function a(ne,Te,Xe,cr){function fr(le){return ne(le=arguments.length===0?new Date:new Date(+le)),le}return fr.floor=function(le){return ne(le=new Date(+le)),le},fr.ceil=function(le){return ne(le=new Date(le-1)),Te(le,1),ne(le),le},fr.round=function(le){var Se=fr(le),Fe=fr.ceil(le);return le-Se0))return We;do We.push(Ve=new Date(+le)),Te(le,Fe),ne(le);while(Ve=Se)for(;ne(Se),!le(Se);)Se.setTime(Se-1)},function(Se,Fe){if(Se>=Se)if(Fe<0)for(;++Fe<=0;)for(;Te(Se,-1),!le(Se););else for(;--Fe>=0;)for(;Te(Se,1),!le(Se););})},Xe&&(fr.count=function(le,Se){return r.setTime(+le),t.setTime(+Se),ne(r),ne(t),Math.floor(Xe(r,t))},fr.every=function(le){return le=Math.floor(le),!isFinite(le)||!(le>0)?null:le>1?fr.filter(cr?function(Se){return cr(Se)%le===0}:function(Se){return fr.count(0,Se)%le===0}):fr}),fr}var n=a(function(){},function(ne,Te){ne.setTime(+ne+Te)},function(ne,Te){return Te-ne});n.every=function(ne){return ne=Math.floor(ne),!isFinite(ne)||!(ne>0)?null:ne>1?a(function(Te){Te.setTime(Math.floor(Te/ne)*ne)},function(Te,Xe){Te.setTime(+Te+Xe*ne)},function(Te,Xe){return(Xe-Te)/ne}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,v=a(function(ne){ne.setTime(ne-ne.getMilliseconds())},function(ne,Te){ne.setTime(+ne+Te*l)},function(ne,Te){return(Te-ne)/l},function(ne){return ne.getUTCSeconds()}),h=v.range,d=a(function(ne){ne.setTime(ne-ne.getMilliseconds()-ne.getSeconds()*l)},function(ne,Te){ne.setTime(+ne+Te*o)},function(ne,Te){return(Te-ne)/o},function(ne){return ne.getMinutes()}),m=d.range,y=a(function(ne){ne.setTime(ne-ne.getMilliseconds()-ne.getSeconds()*l-ne.getMinutes()*o)},function(ne,Te){ne.setTime(+ne+Te*s)},function(ne,Te){return(Te-ne)/s},function(ne){return ne.getHours()}),g=y.range,_=a(function(ne){ne.setHours(0,0,0,0)},function(ne,Te){ne.setDate(ne.getDate()+Te)},function(ne,Te){return(Te-ne-(Te.getTimezoneOffset()-ne.getTimezoneOffset())*o)/u},function(ne){return ne.getDate()-1}),w=_.range;function T(ne){return a(function(Te){Te.setDate(Te.getDate()-(Te.getDay()+7-ne)%7),Te.setHours(0,0,0,0)},function(Te,Xe){Te.setDate(Te.getDate()+Xe*7)},function(Te,Xe){return(Xe-Te-(Xe.getTimezoneOffset()-Te.getTimezoneOffset())*o)/f})}var b=T(0),A=T(1),C=T(2),k=T(3),q=T(4),D=T(5),R=T(6),z=b.range,F=A.range,I=C.range,O=k.range,J=q.range,X=D.range,U=R.range,H=a(function(ne){ne.setDate(1),ne.setHours(0,0,0,0)},function(ne,Te){ne.setMonth(ne.getMonth()+Te)},function(ne,Te){return Te.getMonth()-ne.getMonth()+(Te.getFullYear()-ne.getFullYear())*12},function(ne){return ne.getMonth()}),V=H.range,K=a(function(ne){ne.setMonth(0,1),ne.setHours(0,0,0,0)},function(ne,Te){ne.setFullYear(ne.getFullYear()+Te)},function(ne,Te){return Te.getFullYear()-ne.getFullYear()},function(ne){return ne.getFullYear()});K.every=function(ne){return!isFinite(ne=Math.floor(ne))||!(ne>0)?null:a(function(Te){Te.setFullYear(Math.floor(Te.getFullYear()/ne)*ne),Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Xe){Te.setFullYear(Te.getFullYear()+Xe*ne)})};var Q=K.range,ie=a(function(ne){ne.setUTCSeconds(0,0)},function(ne,Te){ne.setTime(+ne+Te*o)},function(ne,Te){return(Te-ne)/o},function(ne){return ne.getUTCMinutes()}),pe=ie.range,me=a(function(ne){ne.setUTCMinutes(0,0,0)},function(ne,Te){ne.setTime(+ne+Te*s)},function(ne,Te){return(Te-ne)/s},function(ne){return ne.getUTCHours()}),Ae=me.range,re=a(function(ne){ne.setUTCHours(0,0,0,0)},function(ne,Te){ne.setUTCDate(ne.getUTCDate()+Te)},function(ne,Te){return(Te-ne)/u},function(ne){return ne.getUTCDate()-1}),Le=re.range;function fe(ne){return a(function(Te){Te.setUTCDate(Te.getUTCDate()-(Te.getUTCDay()+7-ne)%7),Te.setUTCHours(0,0,0,0)},function(Te,Xe){Te.setUTCDate(Te.getUTCDate()+Xe*7)},function(Te,Xe){return(Xe-Te)/f})}var ke=fe(0),se=fe(1),be=fe(2),Y=fe(3),ee=fe(4),B=fe(5),ye=fe(6),Me=ke.range,ge=se.range,Re=be.range,Ne=Y.range,Ee=ee.range,ze=B.range,Ge=ye.range,Ue=a(function(ne){ne.setUTCDate(1),ne.setUTCHours(0,0,0,0)},function(ne,Te){ne.setUTCMonth(ne.getUTCMonth()+Te)},function(ne,Te){return Te.getUTCMonth()-ne.getUTCMonth()+(Te.getUTCFullYear()-ne.getUTCFullYear())*12},function(ne){return ne.getUTCMonth()}),De=Ue.range,He=a(function(ne){ne.setUTCMonth(0,1),ne.setUTCHours(0,0,0,0)},function(ne,Te){ne.setUTCFullYear(ne.getUTCFullYear()+Te)},function(ne,Te){return Te.getUTCFullYear()-ne.getUTCFullYear()},function(ne){return ne.getUTCFullYear()});He.every=function(ne){return!isFinite(ne=Math.floor(ne))||!(ne>0)?null:a(function(Te){Te.setUTCFullYear(Math.floor(Te.getUTCFullYear()/ne)*ne),Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Xe){Te.setUTCFullYear(Te.getUTCFullYear()+Xe*ne)})};var Oe=He.range;e.timeDay=_,e.timeDays=w,e.timeFriday=D,e.timeFridays=X,e.timeHour=y,e.timeHours=g,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=A,e.timeMondays=F,e.timeMonth=H,e.timeMonths=V,e.timeSaturday=R,e.timeSaturdays=U,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=z,e.timeThursday=q,e.timeThursdays=J,e.timeTuesday=C,e.timeTuesdays=I,e.timeWednesday=k,e.timeWednesdays=O,e.timeWeek=b,e.timeWeeks=z,e.timeYear=K,e.timeYears=Q,e.utcDay=re,e.utcDays=Le,e.utcFriday=B,e.utcFridays=ze,e.utcHour=me,e.utcHours=Ae,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ie,e.utcMinutes=pe,e.utcMonday=se,e.utcMondays=ge,e.utcMonth=Ue,e.utcMonths=De,e.utcSaturday=ye,e.utcSaturdays=Ge,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=ke,e.utcSundays=Me,e.utcThursday=ee,e.utcThursdays=Ee,e.utcTuesday=be,e.utcTuesdays=Re,e.utcWednesday=Y,e.utcWednesdays=Ne,e.utcWeek=ke,e.utcWeeks=Me,e.utcYear=He,e.utcYears=Oe,Object.defineProperty(e,"__esModule",{value:!0})})});var os=Z((fv,ub)=>{(function(e,r){typeof fv=="object"&&typeof ub!="undefined"?r(fv,O1()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(fv,function(e,r){"use strict";function t(ae){if(0<=ae.y&&ae.y<100){var ue=new Date(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L);return ue.setFullYear(ae.y),ue}return new Date(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L)}function a(ae){if(0<=ae.y&&ae.y<100){var ue=new Date(Date.UTC(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L));return ue.setUTCFullYear(ae.y),ue}return new Date(Date.UTC(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L))}function n(ae,ue,qe){return{y:ae,m:ue,d:qe,H:0,M:0,S:0,L:0}}function i(ae){var ue=ae.dateTime,qe=ae.date,Ce=ae.time,or=ae.periods,lr=ae.days,ar=ae.shortDays,Mr=ae.months,Br=ae.shortMonths,et=h(or),Qr=d(or),Kt=h(lr),qt=d(lr),yt=h(ar),At=d(ar),ua=h(Mr),fa=d(Mr),Nt=h(Br),Ba=d(Br),yr={a:Ul,A:Vl,b:rl,B:Rc,c:null,d:H,e:H,f:pe,H:V,I:K,j:Q,L:ie,m:me,M:Ae,p:zc,q:Su,Q:Se,s:Fe,S:re,u:Le,U:fe,V:ke,w:se,W:be,x:null,X:null,y:Y,Y:ee,Z:B,"%":le},lt={a:Cu,A:Lu,b:qa,B:Nc,c:null,d:ye,e:ye,f:Ee,H:Me,I:ge,j:Re,L:Ne,m:ze,M:Ge,p:$o,q:jo,Q:Se,s:Fe,S:Ue,u:De,U:He,V:Oe,w:ne,W:Te,x:null,X:null,y:Xe,Y:cr,Z:fr,"%":le},Gr={a:La,A:na,b:Hn,B:On,c:Qt,d:q,e:q,f:O,H:R,I:R,j:D,L:I,m:k,M:z,p:bt,q:C,Q:X,s:U,S:F,u:y,U:g,V:_,w:m,W:w,x:nt,X:ca,y:b,Y:T,Z:A,"%":J};yr.x=gt(qe,yr),yr.X=gt(Ce,yr),yr.c=gt(ue,yr),lt.x=gt(qe,lt),lt.X=gt(Ce,lt),lt.c=gt(ue,lt);function gt(mr,Wr){return function($r){var ir=[],va=-1,st=0,ha=mr.length,Rr,Bn,Gl;for($r instanceof Date||($r=new Date(+$r));++va53)return null;"w"in ir||(ir.w=1),"Z"in ir?(st=a(n(ir.y,0,1)),ha=st.getUTCDay(),st=ha>4||ha===0?r.utcMonday.ceil(st):r.utcMonday(st),st=r.utcDay.offset(st,(ir.V-1)*7),ir.y=st.getUTCFullYear(),ir.m=st.getUTCMonth(),ir.d=st.getUTCDate()+(ir.w+6)%7):(st=t(n(ir.y,0,1)),ha=st.getDay(),st=ha>4||ha===0?r.timeMonday.ceil(st):r.timeMonday(st),st=r.timeDay.offset(st,(ir.V-1)*7),ir.y=st.getFullYear(),ir.m=st.getMonth(),ir.d=st.getDate()+(ir.w+6)%7)}else("W"in ir||"U"in ir)&&("w"in ir||(ir.w="u"in ir?ir.u%7:"W"in ir?1:0),ha="Z"in ir?a(n(ir.y,0,1)).getUTCDay():t(n(ir.y,0,1)).getDay(),ir.m=0,ir.d="W"in ir?(ir.w+6)%7+ir.W*7-(ha+5)%7:ir.w+ir.U*7-(ha+6)%7);return"Z"in ir?(ir.H+=ir.Z/100|0,ir.M+=ir.Z%100,a(ir)):t(ir)}}function ot(mr,Wr,$r,ir){for(var va=0,st=Wr.length,ha=$r.length,Rr,Bn;va=ha)return-1;if(Rr=Wr.charCodeAt(va++),Rr===37){if(Rr=Wr.charAt(va++),Bn=Gr[Rr in l?Wr.charAt(va++):Rr],!Bn||(ir=Bn(mr,$r,ir))<0)return-1}else if(Rr!=$r.charCodeAt(ir++))return-1}return ir}function bt(mr,Wr,$r){var ir=et.exec(Wr.slice($r));return ir?(mr.p=Qr[ir[0].toLowerCase()],$r+ir[0].length):-1}function La(mr,Wr,$r){var ir=yt.exec(Wr.slice($r));return ir?(mr.w=At[ir[0].toLowerCase()],$r+ir[0].length):-1}function na(mr,Wr,$r){var ir=Kt.exec(Wr.slice($r));return ir?(mr.w=qt[ir[0].toLowerCase()],$r+ir[0].length):-1}function Hn(mr,Wr,$r){var ir=Nt.exec(Wr.slice($r));return ir?(mr.m=Ba[ir[0].toLowerCase()],$r+ir[0].length):-1}function On(mr,Wr,$r){var ir=ua.exec(Wr.slice($r));return ir?(mr.m=fa[ir[0].toLowerCase()],$r+ir[0].length):-1}function Qt(mr,Wr,$r){return ot(mr,ue,Wr,$r)}function nt(mr,Wr,$r){return ot(mr,qe,Wr,$r)}function ca(mr,Wr,$r){return ot(mr,Ce,Wr,$r)}function Ul(mr){return ar[mr.getDay()]}function Vl(mr){return lr[mr.getDay()]}function rl(mr){return Br[mr.getMonth()]}function Rc(mr){return Mr[mr.getMonth()]}function zc(mr){return or[+(mr.getHours()>=12)]}function Su(mr){return 1+~~(mr.getMonth()/3)}function Cu(mr){return ar[mr.getUTCDay()]}function Lu(mr){return lr[mr.getUTCDay()]}function qa(mr){return Br[mr.getUTCMonth()]}function Nc(mr){return Mr[mr.getUTCMonth()]}function $o(mr){return or[+(mr.getUTCHours()>=12)]}function jo(mr){return 1+~~(mr.getUTCMonth()/3)}return{format:function(mr){var Wr=gt(mr+="",yr);return Wr.toString=function(){return mr},Wr},parse:function(mr){var Wr=kt(mr+="",!1);return Wr.toString=function(){return mr},Wr},utcFormat:function(mr){var Wr=gt(mr+="",lt);return Wr.toString=function(){return mr},Wr},utcParse:function(mr){var Wr=kt(mr+="",!0);return Wr.toString=function(){return mr},Wr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ae,ue,qe){var Ce=ae<0?"-":"",or=(Ce?-ae:ae)+"",lr=or.length;return Ce+(lr68?1900:2e3),qe+Ce[0].length):-1}function A(ae,ue,qe){var Ce=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ue.slice(qe,qe+6));return Ce?(ae.Z=Ce[1]?0:-(Ce[2]+(Ce[3]||"00")),qe+Ce[0].length):-1}function C(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+1));return Ce?(ae.q=Ce[0]*3-3,qe+Ce[0].length):-1}function k(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+2));return Ce?(ae.m=Ce[0]-1,qe+Ce[0].length):-1}function q(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+2));return Ce?(ae.d=+Ce[0],qe+Ce[0].length):-1}function D(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+3));return Ce?(ae.m=0,ae.d=+Ce[0],qe+Ce[0].length):-1}function R(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+2));return Ce?(ae.H=+Ce[0],qe+Ce[0].length):-1}function z(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+2));return Ce?(ae.M=+Ce[0],qe+Ce[0].length):-1}function F(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+2));return Ce?(ae.S=+Ce[0],qe+Ce[0].length):-1}function I(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+3));return Ce?(ae.L=+Ce[0],qe+Ce[0].length):-1}function O(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+6));return Ce?(ae.L=Math.floor(Ce[0]/1e3),qe+Ce[0].length):-1}function J(ae,ue,qe){var Ce=s.exec(ue.slice(qe,qe+1));return Ce?qe+Ce[0].length:-1}function X(ae,ue,qe){var Ce=o.exec(ue.slice(qe));return Ce?(ae.Q=+Ce[0],qe+Ce[0].length):-1}function U(ae,ue,qe){var Ce=o.exec(ue.slice(qe));return Ce?(ae.s=+Ce[0],qe+Ce[0].length):-1}function H(ae,ue){return f(ae.getDate(),ue,2)}function V(ae,ue){return f(ae.getHours(),ue,2)}function K(ae,ue){return f(ae.getHours()%12||12,ue,2)}function Q(ae,ue){return f(1+r.timeDay.count(r.timeYear(ae),ae),ue,3)}function ie(ae,ue){return f(ae.getMilliseconds(),ue,3)}function pe(ae,ue){return ie(ae,ue)+"000"}function me(ae,ue){return f(ae.getMonth()+1,ue,2)}function Ae(ae,ue){return f(ae.getMinutes(),ue,2)}function re(ae,ue){return f(ae.getSeconds(),ue,2)}function Le(ae){var ue=ae.getDay();return ue===0?7:ue}function fe(ae,ue){return f(r.timeSunday.count(r.timeYear(ae)-1,ae),ue,2)}function ke(ae,ue){var qe=ae.getDay();return ae=qe>=4||qe===0?r.timeThursday(ae):r.timeThursday.ceil(ae),f(r.timeThursday.count(r.timeYear(ae),ae)+(r.timeYear(ae).getDay()===4),ue,2)}function se(ae){return ae.getDay()}function be(ae,ue){return f(r.timeMonday.count(r.timeYear(ae)-1,ae),ue,2)}function Y(ae,ue){return f(ae.getFullYear()%100,ue,2)}function ee(ae,ue){return f(ae.getFullYear()%1e4,ue,4)}function B(ae){var ue=ae.getTimezoneOffset();return(ue>0?"-":(ue*=-1,"+"))+f(ue/60|0,"0",2)+f(ue%60,"0",2)}function ye(ae,ue){return f(ae.getUTCDate(),ue,2)}function Me(ae,ue){return f(ae.getUTCHours(),ue,2)}function ge(ae,ue){return f(ae.getUTCHours()%12||12,ue,2)}function Re(ae,ue){return f(1+r.utcDay.count(r.utcYear(ae),ae),ue,3)}function Ne(ae,ue){return f(ae.getUTCMilliseconds(),ue,3)}function Ee(ae,ue){return Ne(ae,ue)+"000"}function ze(ae,ue){return f(ae.getUTCMonth()+1,ue,2)}function Ge(ae,ue){return f(ae.getUTCMinutes(),ue,2)}function Ue(ae,ue){return f(ae.getUTCSeconds(),ue,2)}function De(ae){var ue=ae.getUTCDay();return ue===0?7:ue}function He(ae,ue){return f(r.utcSunday.count(r.utcYear(ae)-1,ae),ue,2)}function Oe(ae,ue){var qe=ae.getUTCDay();return ae=qe>=4||qe===0?r.utcThursday(ae):r.utcThursday.ceil(ae),f(r.utcThursday.count(r.utcYear(ae),ae)+(r.utcYear(ae).getUTCDay()===4),ue,2)}function ne(ae){return ae.getUTCDay()}function Te(ae,ue){return f(r.utcMonday.count(r.utcYear(ae)-1,ae),ue,2)}function Xe(ae,ue){return f(ae.getUTCFullYear()%100,ue,2)}function cr(ae,ue){return f(ae.getUTCFullYear()%1e4,ue,4)}function fr(){return"+0000"}function le(){return"%"}function Se(ae){return+ae}function Fe(ae){return Math.floor(+ae/1e3)}var We;Ve({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Ve(ae){return We=i(ae),e.timeFormat=We.format,e.timeParse=We.parse,e.utcFormat=We.utcFormat,e.utcParse=We.utcParse,We}var Je="%Y-%m-%dT%H:%M:%S.%LZ";function $e(ae){return ae.toISOString()}var vr=Date.prototype.toISOString?$e:e.utcFormat(Je);function Ke(ae){var ue=new Date(ae);return isNaN(ue)?null:ue}var Pe=+new Date("2000-01-01T00:00:00.000Z")?Ke:e.utcParse(Je);e.isoFormat=vr,e.isoParse=Pe,e.timeFormatDefaultLocale=Ve,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var B1=Z((cv,fb)=>{(function(e,r){typeof cv=="object"&&typeof fb!="undefined"?r(cv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(cv,function(e){"use strict";function r(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function t(k,q){if((D=(k=q?k.toExponential(q-1):k.toExponential()).indexOf("e"))<0)return null;var D,R=k.slice(0,D);return[R.length>1?R[0]+R.slice(2):R,+k.slice(D+1)]}function a(k){return k=t(Math.abs(k)),k?k[1]:NaN}function n(k,q){return function(D,R){for(var z=D.length,F=[],I=0,O=k[0],J=0;z>0&&O>0&&(J+O+1>R&&(O=Math.max(1,R-J)),F.push(D.substring(z-=O,z+O)),!((J+=O+1)>R));)O=k[I=(I+1)%k.length];return F.reverse().join(q)}}function i(k){return function(q){return q.replace(/[0-9]/g,function(D){return k[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(k){if(!(q=l.exec(k)))throw new Error("invalid format: "+k);var q;return new s({fill:q[1],align:q[2],sign:q[3],symbol:q[4],zero:q[5],width:q[6],comma:q[7],precision:q[8]&&q[8].slice(1),trim:q[9],type:q[10]})}o.prototype=s.prototype;function s(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(k){e:for(var q=k.length,D=1,R=-1,z;D0&&(R=0);break}return R>0?k.slice(0,R)+k.slice(z+1):k}var f;function v(k,q){var D=t(k,q);if(!D)return k+"";var R=D[0],z=D[1],F=z-(f=Math.max(-8,Math.min(8,Math.floor(z/3)))*3)+1,I=R.length;return F===I?R:F>I?R+new Array(F-I+1).join("0"):F>0?R.slice(0,F)+"."+R.slice(F):"0."+new Array(1-F).join("0")+t(k,Math.max(0,q+F-1))[0]}function h(k,q){var D=t(k,q);if(!D)return k+"";var R=D[0],z=D[1];return z<0?"0."+new Array(-z).join("0")+R:R.length>z+1?R.slice(0,z+1)+"."+R.slice(z+1):R+new Array(z-R.length+2).join("0")}var d={"%":function(k,q){return(k*100).toFixed(q)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:r,e:function(k,q){return k.toExponential(q)},f:function(k,q){return k.toFixed(q)},g:function(k,q){return k.toPrecision(q)},o:function(k){return Math.round(k).toString(8)},p:function(k,q){return h(k*100,q)},r:h,s:v,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function m(k){return k}var y=Array.prototype.map,g=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function _(k){var q=k.grouping===void 0||k.thousands===void 0?m:n(y.call(k.grouping,Number),k.thousands+""),D=k.currency===void 0?"":k.currency[0]+"",R=k.currency===void 0?"":k.currency[1]+"",z=k.decimal===void 0?".":k.decimal+"",F=k.numerals===void 0?m:i(y.call(k.numerals,String)),I=k.percent===void 0?"%":k.percent+"",O=k.minus===void 0?"-":k.minus+"",J=k.nan===void 0?"NaN":k.nan+"";function X(H){H=o(H);var V=H.fill,K=H.align,Q=H.sign,ie=H.symbol,pe=H.zero,me=H.width,Ae=H.comma,re=H.precision,Le=H.trim,fe=H.type;fe==="n"?(Ae=!0,fe="g"):d[fe]||(re===void 0&&(re=12),Le=!0,fe="g"),(pe||V==="0"&&K==="=")&&(pe=!0,V="0",K="=");var ke=ie==="$"?D:ie==="#"&&/[boxX]/.test(fe)?"0"+fe.toLowerCase():"",se=ie==="$"?R:/[%p]/.test(fe)?I:"",be=d[fe],Y=/[defgprs%]/.test(fe);re=re===void 0?6:/[gprs]/.test(fe)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re));function ee(B){var ye=ke,Me=se,ge,Re,Ne;if(fe==="c")Me=be(B)+Me,B="";else{B=+B;var Ee=B<0||1/B<0;if(B=isNaN(B)?J:be(Math.abs(B),re),Le&&(B=u(B)),Ee&&+B==0&&Q!=="+"&&(Ee=!1),ye=(Ee?Q==="("?Q:O:Q==="-"||Q==="("?"":Q)+ye,Me=(fe==="s"?g[8+f/3]:"")+Me+(Ee&&Q==="("?")":""),Y){for(ge=-1,Re=B.length;++geNe||Ne>57){Me=(Ne===46?z+B.slice(ge+1):B.slice(ge))+Me,B=B.slice(0,ge);break}}}Ae&&!pe&&(B=q(B,1/0));var ze=ye.length+B.length+Me.length,Ge=ze>1)+ye+B+Me+Ge.slice(ze);break;default:B=Ge+ye+B+Me;break}return F(B)}return ee.toString=function(){return H+""},ee}function U(H,V){var K=X((H=o(H),H.type="f",H)),Q=Math.max(-8,Math.min(8,Math.floor(a(V)/3)))*3,ie=Math.pow(10,-Q),pe=g[8+Q/3];return function(me){return K(ie*me)+pe}}return{format:X,formatPrefix:U}}var w;T({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function T(k){return w=_(k),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(k){return Math.max(0,-a(Math.abs(k)))}function A(k,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(k)))}function C(k,q){return k=Math.abs(k),q=Math.abs(q)-k,Math.max(0,a(q)-a(k))+1}e.FormatSpecifier=s,e.formatDefaultLocale=T,e.formatLocale=_,e.formatSpecifier=o,e.precisionFixed=b,e.precisionPrefix=A,e.precisionRound=C,Object.defineProperty(e,"__esModule",{value:!0})})});var vb=Z((oie,cb)=>{"use strict";cb.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Hr=Z((sie,hb)=>{"use strict";var jF=vb();hb.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&jF(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Vt=Z((uie,db)=>{"use strict";db.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var Y1=Z((vv,pb)=>{(function(e,r){typeof vv=="object"&&typeof pb!="undefined"?r(vv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(vv,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,v,h,d,m;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var y=new ArrayBuffer(o),g=new Uint8Array(y);for(u=0;u>4,g[f++]=(h&15)<<4|d>>2,g[f++]=(d&3)<<6|m&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var nl=Z((fie,mb)=>{"use strict";mb.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var nn=Z(Vn=>{"use strict";var eI=Y1().decode,rI=nl(),U1=Array.isArray,tI=ArrayBuffer,aI=DataView;function yb(e){return tI.isView(e)&&!(e instanceof aI)}Vn.isTypedArray=yb;function hv(e){return U1(e)||yb(e)}Vn.isArrayOrTypedArray=hv;function nI(e){return!hv(e[0])}Vn.isArray1D=nI;Vn.ensureArray=function(e,r){return U1(e)||(e=[]),e.length=r,e};var ia={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};ia.uint8c=ia.u1c;ia.uint8=ia.u1;ia.int8=ia.i1;ia.uint16=ia.u2;ia.int16=ia.i2;ia.uint32=ia.u4;ia.int32=ia.i4;ia.float32=ia.f4;ia.float64=ia.f8;function V1(e){return e.constructor===ArrayBuffer}Vn.isArrayBuffer=V1;Vn.decodeTypedArraySpec=function(e){var r=[],t=iI(e),a=t.dtype,n=ia[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;V1(l)||(l=eI(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,v=+o[0],h=i*v,d=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var bb=Hr(),W1=nn().isArrayOrTypedArray;Tb.exports=function(r,t){if(bb(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var ss=dv(),fI=/^\w*$/,cI=0,Mb=1,pv=2,Ab=3,Ql=4;kb.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=ss(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[d]=s[d]|pv,v.set(h,null);if(f){for(i=d;i{"use strict";var vI=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,hI=/^[^\.\[\]]+$/;Cb.exports=function(e,r){for(;r;){var t=e.match(vI);if(t)e=t[1];else if(e.match(hI))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var mv=Z((pie,qb)=>{"use strict";var dI=Hr();qb.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return dI(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var Pb=Z((mie,Eb)=>{"use strict";var Db=nn().isArrayOrTypedArray,Hu=nl();Eb.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(Db(n)&&Db(i)&&Hu(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o{"use strict";function pI(e,r){var t=e%r;return t<0?t+r:t}function mI(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Rb.exports={mod:pI,modHalf:mI}});var bn=Z((gie,yv)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(Y,ee){if(Y=Y||"",ee=ee||{},Y instanceof s)return Y;if(!(this instanceof s))return new s(Y,ee);var B=u(Y);this._originalInput=Y,this._r=B.r,this._g=B.g,this._b=B.b,this._a=B.a,this._roundA=n(100*this._a)/100,this._format=ee.format||B.format,this._gradientType=ee.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=B.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Y=this.toRgb();return(Y.r*299+Y.g*587+Y.b*114)/1e3},getLuminance:function(){var Y=this.toRgb(),ee,B,ye,Me,ge,Re;return ee=Y.r/255,B=Y.g/255,ye=Y.b/255,ee<=.03928?Me=ee/12.92:Me=e.pow((ee+.055)/1.055,2.4),B<=.03928?ge=B/12.92:ge=e.pow((B+.055)/1.055,2.4),ye<=.03928?Re=ye/12.92:Re=e.pow((ye+.055)/1.055,2.4),.2126*Me+.7152*ge+.0722*Re},setAlpha:function(Y){return this._a=H(Y),this._roundA=n(100*this._a)/100,this},toHsv:function(){var Y=d(this._r,this._g,this._b);return{h:Y.h*360,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=d(this._r,this._g,this._b),ee=n(Y.h*360),B=n(Y.s*100),ye=n(Y.v*100);return this._a==1?"hsv("+ee+", "+B+"%, "+ye+"%)":"hsva("+ee+", "+B+"%, "+ye+"%, "+this._roundA+")"},toHsl:function(){var Y=v(this._r,this._g,this._b);return{h:Y.h*360,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=v(this._r,this._g,this._b),ee=n(Y.h*360),B=n(Y.s*100),ye=n(Y.l*100);return this._a==1?"hsl("+ee+", "+B+"%, "+ye+"%)":"hsla("+ee+", "+B+"%, "+ye+"%, "+this._roundA+")"},toHex:function(Y){return y(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return g(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(V(this._r,255)*100)+"%",g:n(V(this._g,255)*100)+"%",b:n(V(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(V(this._r,255)*100)+"%, "+n(V(this._g,255)*100)+"%, "+n(V(this._b,255)*100)+"%)":"rgba("+n(V(this._r,255)*100)+"%, "+n(V(this._g,255)*100)+"%, "+n(V(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:X[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(Y){var ee="#"+_(this._r,this._g,this._b,this._a),B=ee,ye=this._gradientType?"GradientType = 1, ":"";if(Y){var Me=s(Y);B="#"+_(Me._r,Me._g,Me._b,Me._a)}return"progid:DXImageTransform.Microsoft.gradient("+ye+"startColorstr="+ee+",endColorstr="+B+")"},toString:function(Y){var ee=!!Y;Y=Y||this._format;var B=!1,ye=this._a<1&&this._a>=0,Me=!ee&&ye&&(Y==="hex"||Y==="hex6"||Y==="hex3"||Y==="hex4"||Y==="hex8"||Y==="name");return Me?Y==="name"&&this._a===0?this.toName():this.toRgbString():(Y==="rgb"&&(B=this.toRgbString()),Y==="prgb"&&(B=this.toPercentageRgbString()),(Y==="hex"||Y==="hex6")&&(B=this.toHexString()),Y==="hex3"&&(B=this.toHexString(!0)),Y==="hex4"&&(B=this.toHex8String(!0)),Y==="hex8"&&(B=this.toHex8String()),Y==="name"&&(B=this.toName()),Y==="hsl"&&(B=this.toHslString()),Y==="hsv"&&(B=this.toHsvString()),B||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Y,ee){var B=Y.apply(null,[this].concat([].slice.call(ee)));return this._r=B._r,this._g=B._g,this._b=B._b,this.setAlpha(B._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(T,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(q,arguments)},_applyCombination:function(Y,ee){return Y.apply(null,[this].concat([].slice.call(ee)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(R,arguments)},tetrad:function(){return this._applyCombination(z,arguments)}},s.fromRatio=function(Y,ee){if(typeof Y=="object"){var B={};for(var ye in Y)Y.hasOwnProperty(ye)&&(ye==="a"?B[ye]=Y[ye]:B[ye]=Ae(Y[ye]));Y=B}return s(Y,ee)};function u(Y){var ee={r:0,g:0,b:0},B=1,ye=null,Me=null,ge=null,Re=!1,Ne=!1;return typeof Y=="string"&&(Y=se(Y)),typeof Y=="object"&&(ke(Y.r)&&ke(Y.g)&&ke(Y.b)?(ee=f(Y.r,Y.g,Y.b),Re=!0,Ne=String(Y.r).substr(-1)==="%"?"prgb":"rgb"):ke(Y.h)&&ke(Y.s)&&ke(Y.v)?(ye=Ae(Y.s),Me=Ae(Y.v),ee=m(Y.h,ye,Me),Re=!0,Ne="hsv"):ke(Y.h)&&ke(Y.s)&&ke(Y.l)&&(ye=Ae(Y.s),ge=Ae(Y.l),ee=h(Y.h,ye,ge),Re=!0,Ne="hsl"),Y.hasOwnProperty("a")&&(B=Y.a)),B=H(B),{ok:Re,format:Y.format||Ne,r:i(255,l(ee.r,0)),g:i(255,l(ee.g,0)),b:i(255,l(ee.b,0)),a:B}}function f(Y,ee,B){return{r:V(Y,255)*255,g:V(ee,255)*255,b:V(B,255)*255}}function v(Y,ee,B){Y=V(Y,255),ee=V(ee,255),B=V(B,255);var ye=l(Y,ee,B),Me=i(Y,ee,B),ge,Re,Ne=(ye+Me)/2;if(ye==Me)ge=Re=0;else{var Ee=ye-Me;switch(Re=Ne>.5?Ee/(2-ye-Me):Ee/(ye+Me),ye){case Y:ge=(ee-B)/Ee+(ee1&&(Ue-=1),Ue<1/6?ze+(Ge-ze)*6*Ue:Ue<1/2?Ge:Ue<2/3?ze+(Ge-ze)*(2/3-Ue)*6:ze}if(ee===0)ye=Me=ge=B;else{var Ne=B<.5?B*(1+ee):B+ee-B*ee,Ee=2*B-Ne;ye=Re(Ee,Ne,Y+1/3),Me=Re(Ee,Ne,Y),ge=Re(Ee,Ne,Y-1/3)}return{r:ye*255,g:Me*255,b:ge*255}}function d(Y,ee,B){Y=V(Y,255),ee=V(ee,255),B=V(B,255);var ye=l(Y,ee,B),Me=i(Y,ee,B),ge,Re,Ne=ye,Ee=ye-Me;if(Re=ye===0?0:Ee/ye,ye==Me)ge=0;else{switch(ye){case Y:ge=(ee-B)/Ee+(ee>1)+720)%360;--ee;)ye.h=(ye.h+Me)%360,ge.push(s(ye));return ge}function O(Y,ee){ee=ee||6;for(var B=s(Y).toHsv(),ye=B.h,Me=B.s,ge=B.v,Re=[],Ne=1/ee;ee--;)Re.push(s({h:ye,s:Me,v:ge})),ge=(ge+Ne)%1;return Re}s.mix=function(Y,ee,B){B=B===0?0:B||50;var ye=s(Y).toRgb(),Me=s(ee).toRgb(),ge=B/100,Re={r:(Me.r-ye.r)*ge+ye.r,g:(Me.g-ye.g)*ge+ye.g,b:(Me.b-ye.b)*ge+ye.b,a:(Me.a-ye.a)*ge+ye.a};return s(Re)},s.readability=function(Y,ee){var B=s(Y),ye=s(ee);return(e.max(B.getLuminance(),ye.getLuminance())+.05)/(e.min(B.getLuminance(),ye.getLuminance())+.05)},s.isReadable=function(Y,ee,B){var ye=s.readability(Y,ee),Me,ge;switch(ge=!1,Me=be(B),Me.level+Me.size){case"AAsmall":case"AAAlarge":ge=ye>=4.5;break;case"AAlarge":ge=ye>=3;break;case"AAAsmall":ge=ye>=7;break}return ge},s.mostReadable=function(Y,ee,B){var ye=null,Me=0,ge,Re,Ne,Ee;B=B||{},Re=B.includeFallbackColors,Ne=B.level,Ee=B.size;for(var ze=0;zeMe&&(Me=ge,ye=s(ee[ze]));return s.isReadable(Y,ye,{level:Ne,size:Ee})||!Re?ye:(B.includeFallbackColors=!1,s.mostReadable(Y,["#fff","#000"],B))};var J=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},X=s.hexNames=U(J);function U(Y){var ee={};for(var B in Y)Y.hasOwnProperty(B)&&(ee[Y[B]]=B);return ee}function H(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function V(Y,ee){ie(Y)&&(Y="100%");var B=pe(Y);return Y=i(ee,l(0,parseFloat(Y))),B&&(Y=parseInt(Y*ee,10)/100),e.abs(Y-ee)<1e-6?1:Y%ee/parseFloat(ee)}function K(Y){return i(1,l(0,Y))}function Q(Y){return parseInt(Y,16)}function ie(Y){return typeof Y=="string"&&Y.indexOf(".")!=-1&&parseFloat(Y)===1}function pe(Y){return typeof Y=="string"&&Y.indexOf("%")!=-1}function me(Y){return Y.length==1?"0"+Y:""+Y}function Ae(Y){return Y<=1&&(Y=Y*100+"%"),Y}function re(Y){return e.round(parseFloat(Y)*255).toString(16)}function Le(Y){return Q(Y)/255}var fe=function(){var Y="[-\\+]?\\d+%?",ee="[-\\+]?\\d*\\.\\d+%?",B="(?:"+ee+")|(?:"+Y+")",ye="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",Me="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?";return{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+ye),rgba:new RegExp("rgba"+Me),hsl:new RegExp("hsl"+ye),hsla:new RegExp("hsla"+Me),hsv:new RegExp("hsv"+ye),hsva:new RegExp("hsva"+Me),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ke(Y){return!!fe.CSS_UNIT.exec(Y)}function se(Y){Y=Y.replace(r,"").replace(t,"").toLowerCase();var ee=!1;if(J[Y])Y=J[Y],ee=!0;else if(Y=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var B;return(B=fe.rgb.exec(Y))?{r:B[1],g:B[2],b:B[3]}:(B=fe.rgba.exec(Y))?{r:B[1],g:B[2],b:B[3],a:B[4]}:(B=fe.hsl.exec(Y))?{h:B[1],s:B[2],l:B[3]}:(B=fe.hsla.exec(Y))?{h:B[1],s:B[2],l:B[3],a:B[4]}:(B=fe.hsv.exec(Y))?{h:B[1],s:B[2],v:B[3]}:(B=fe.hsva.exec(Y))?{h:B[1],s:B[2],v:B[3],a:B[4]}:(B=fe.hex8.exec(Y))?{r:Q(B[1]),g:Q(B[2]),b:Q(B[3]),a:Le(B[4]),format:ee?"name":"hex8"}:(B=fe.hex6.exec(Y))?{r:Q(B[1]),g:Q(B[2]),b:Q(B[3]),format:ee?"name":"hex"}:(B=fe.hex4.exec(Y))?{r:Q(B[1]+""+B[1]),g:Q(B[2]+""+B[2]),b:Q(B[3]+""+B[3]),a:Le(B[4]+""+B[4]),format:ee?"name":"hex8"}:(B=fe.hex3.exec(Y))?{r:Q(B[1]+""+B[1]),g:Q(B[2]+""+B[2]),b:Q(B[3]+""+B[3]),format:ee?"name":"hex"}:!1}function be(Y){var ee,B;return Y=Y||{level:"AA",size:"small"},ee=(Y.level||"AA").toUpperCase(),B=(Y.size||"small").toLowerCase(),ee!=="AA"&&ee!=="AAA"&&(ee="AA"),B!=="small"&&B!=="large"&&(B="small"),{level:ee,size:B}}typeof yv!="undefined"&&yv.exports?yv.exports=s:window.tinycolor=s})(Math)});var Gt=Z(Yu=>{"use strict";var zb=nl(),Ou=Array.isArray;function yI(e,r){var t,a;for(t=0;t{"use strict";Nb.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var Uu=Z((_ie,Fb)=>{"use strict";Fb.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var fs=Z((wie,Ob)=>{"use strict";var Ib=Uu(),Hb=ma(),Z1=Hb({editType:"none"});Z1.family.dflt=Ib.HOVERFONT;Z1.size.dflt=Ib.HOVERFONTSIZE;Ob.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Z1,grouptitlefont:Hb({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var gv=Z((Tie,Bb)=>{"use strict";var gI=ma(),Vu=fs().hoverlabel,Gu=Gt().extendFlat;Bb.exports={hoverlabel:{bgcolor:Gu({},Vu.bgcolor,{arrayOk:!0}),bordercolor:Gu({},Vu.bordercolor,{arrayOk:!0}),font:gI({arrayOk:!0,editType:"none"}),align:Gu({},Vu.align,{arrayOk:!0}),namelength:Gu({},Vu.namelength,{arrayOk:!0}),showarrow:Gu({},Vu.showarrow),editType:"none"}}});var Gn=Z((Mie,Yb)=>{"use strict";var bI=ma(),xI=gv();Yb.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:bI({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:xI.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var $l=Z((Aie,Gb)=>{"use strict";var _I=bn(),bv={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Ub=bv.RdBu;function wI(e,r){if(r||(r=Ub),!e)return r;function t(){try{e=bv[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),Vb(e)?e:r}function Vb(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";jl.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];jl.defaultLine="#444";jl.lightLine="#eee";jl.background="#fff";jl.borderLine="#BEC8D9";jl.lightFraction=100*10/11});var Er=Z((Sie,Wb)=>{"use strict";var Za=bn(),MI=Hr(),AI=nn().isTypedArray,$t=Wb.exports={},xv=hi();$t.defaults=xv.defaults;var kI=$t.defaultLine=xv.defaultLine;$t.lightLine=xv.lightLine;var J1=$t.background=xv.background;$t.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};$t.rgb=function(e){return $t.tinyRGB(Za(e))};$t.opacity=function(e){return e?Za(e).getAlpha():0};$t.addOpacity=function(e,r){var t=Za(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};$t.combine=function(e,r){var t=Za(e).toRgb();if(t.a===1)return Za(e).toRgbString();var a=Za(r||J1).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Za(i).toRgbString()};$t.interpolate=function(e,r,t){var a=Za(e).toRgb(),n=Za(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Za(i).toRgbString()};$t.contrast=function(e,r,t){var a=Za(e);a.getAlpha()!==1&&(a=Za($t.combine(e,J1)));var n=a.isDark()?r?a.lighten(r):J1:t?a.darken(t):kI;return n.toString()};$t.stroke=function(e,r){var t=Za(r);e.style({stroke:$t.tinyRGB(t),"stroke-opacity":t.getAlpha()})};$t.fill=function(e,r){var t=Za(r);e.style({fill:$t.tinyRGB(t),"fill-opacity":t.getAlpha()})};$t.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var l=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}});var _v=Z((Cie,Zb)=>{"use strict";Zb.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var cs=Z(Xb=>{"use strict";Xb.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var $b=Z(Xa=>{"use strict";var K1=Hr(),Jb=bn(),Kb=Gt().extendFlat,SI=Gn(),CI=$l(),LI=Er(),qI=_v().DESELECTDIM,vs=dv(),Qb=cs().counter,DI=us().modHalf,di=nn().isArrayOrTypedArray,il=nn().isTypedArraySpec,ll=nn().decodeTypedArraySpec;Xa.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(di(e)?e:il(e)?ll(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;aa.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}il(e)&&(e=ll(e)),e%1||!K1(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){il(e)&&(e=ll(e)),Jb(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return Jb(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(CI.get(e,t))}},angle:{coerceFunction:function(e,r,t){il(e)&&(e=ll(e)),e==="auto"?r.set("auto"):K1(e)?r.set(DI(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||Qb(t);if(typeof e=="string"&&n.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!Qb(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var jb={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},ex={};function rx(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),rx(a,r[t]))}}rx(jb,ex);tx.exports={configAttributes:jb,dfltConfig:ex}});var $1=Z((Eie,ax)=>{"use strict";var Q1=Ir(),EI=Hr(),Wu=[];ax.exports=function(e,r){if(Wu.indexOf(e)!==-1)return;Wu.push(e);var t=1e3;EI(r)?t=r:r==="long"&&(t=3e3);var a=Q1.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Wu);function i(l){l.duration(700).style("opacity",0).each("end",function(o){var s=Wu.indexOf(o);s!==-1&&Wu.splice(s,1),Q1.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var o=Q1.select(this);o.append("button").classed("notifier-close",!0).html("×").on("click",function(){o.transition().call(i)});for(var s=o.append("p"),u=l.split(//g),f=0;f{"use strict";var hs=eo().dfltConfig,j1=$1(),ep=nx.exports={};ep.log=function(){var e;if(hs.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};ep.warn=function(){var e;if(hs.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};ep.error=function(){var e;if(hs.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Tv=Z((Rie,ix)=>{"use strict";ix.exports=function(){}});var rp=Z((zie,lx)=>{"use strict";lx.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{ox.exports=PI;function PI(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var fx=Z((Fie,ux)=>{ux.exports=RI;function RI(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var vx=Z((Iie,cx)=>{cx.exports=zI;function zI(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var tp=Z((Hie,hx)=>{hx.exports=NI;function NI(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var px=Z((Oie,dx)=>{dx.exports=FI;function FI(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var yx=Z((Bie,mx)=>{mx.exports=II;function II(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],y=r[13],g=r[14],_=r[15],w=t*o-a*l,T=t*s-n*l,b=t*u-i*l,A=a*s-n*o,C=a*u-i*o,k=n*u-i*s,q=f*y-v*m,D=f*g-h*m,R=f*_-d*m,z=v*g-h*y,F=v*_-d*y,I=h*_-d*g,O=w*I-T*F+b*z+A*R-C*D+k*q;return O?(O=1/O,e[0]=(o*I-s*F+u*z)*O,e[1]=(n*F-a*I-i*z)*O,e[2]=(y*k-g*C+_*A)*O,e[3]=(h*C-v*k-d*A)*O,e[4]=(s*R-l*I-u*D)*O,e[5]=(t*I-n*R+i*D)*O,e[6]=(g*b-m*k-_*T)*O,e[7]=(f*k-h*b+d*T)*O,e[8]=(l*F-o*R+u*q)*O,e[9]=(a*R-t*F-i*q)*O,e[10]=(m*C-y*b+_*w)*O,e[11]=(v*b-f*C-d*w)*O,e[12]=(o*D-l*z-s*q)*O,e[13]=(t*z-a*D+n*q)*O,e[14]=(y*T-m*A-g*w)*O,e[15]=(f*A-v*T+h*w)*O,e):null}});var bx=Z((Yie,gx)=>{gx.exports=HI;function HI(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],y=r[13],g=r[14],_=r[15];return e[0]=o*(h*_-d*g)-v*(s*_-u*g)+y*(s*d-u*h),e[1]=-(a*(h*_-d*g)-v*(n*_-i*g)+y*(n*d-i*h)),e[2]=a*(s*_-u*g)-o*(n*_-i*g)+y*(n*u-i*s),e[3]=-(a*(s*d-u*h)-o*(n*d-i*h)+v*(n*u-i*s)),e[4]=-(l*(h*_-d*g)-f*(s*_-u*g)+m*(s*d-u*h)),e[5]=t*(h*_-d*g)-f*(n*_-i*g)+m*(n*d-i*h),e[6]=-(t*(s*_-u*g)-l*(n*_-i*g)+m*(n*u-i*s)),e[7]=t*(s*d-u*h)-l*(n*d-i*h)+f*(n*u-i*s),e[8]=l*(v*_-d*y)-f*(o*_-u*y)+m*(o*d-u*v),e[9]=-(t*(v*_-d*y)-f*(a*_-i*y)+m*(a*d-i*v)),e[10]=t*(o*_-u*y)-l*(a*_-i*y)+m*(a*u-i*o),e[11]=-(t*(o*d-u*v)-l*(a*d-i*v)+f*(a*u-i*o)),e[12]=-(l*(v*g-h*y)-f*(o*g-s*y)+m*(o*h-s*v)),e[13]=t*(v*g-h*y)-f*(a*g-n*y)+m*(a*h-n*v),e[14]=-(t*(o*g-s*y)-l*(a*g-n*y)+m*(a*s-n*o)),e[15]=t*(o*h-s*v)-l*(a*h-n*v)+f*(a*s-n*o),e}});var _x=Z((Uie,xx)=>{xx.exports=OI;function OI(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],v=e[10],h=e[11],d=e[12],m=e[13],y=e[14],g=e[15],_=r*l-t*i,w=r*o-a*i,T=r*s-n*i,b=t*o-a*l,A=t*s-n*l,C=a*s-n*o,k=u*m-f*d,q=u*y-v*d,D=u*g-h*d,R=f*y-v*m,z=f*g-h*m,F=v*g-h*y;return _*F-w*z+T*R+b*D-A*q+C*k}});var Tx=Z((Vie,wx)=>{wx.exports=BI;function BI(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],v=r[8],h=r[9],d=r[10],m=r[11],y=r[12],g=r[13],_=r[14],w=r[15],T=t[0],b=t[1],A=t[2],C=t[3];return e[0]=T*a+b*o+A*v+C*y,e[1]=T*n+b*s+A*h+C*g,e[2]=T*i+b*u+A*d+C*_,e[3]=T*l+b*f+A*m+C*w,T=t[4],b=t[5],A=t[6],C=t[7],e[4]=T*a+b*o+A*v+C*y,e[5]=T*n+b*s+A*h+C*g,e[6]=T*i+b*u+A*d+C*_,e[7]=T*l+b*f+A*m+C*w,T=t[8],b=t[9],A=t[10],C=t[11],e[8]=T*a+b*o+A*v+C*y,e[9]=T*n+b*s+A*h+C*g,e[10]=T*i+b*u+A*d+C*_,e[11]=T*l+b*f+A*m+C*w,T=t[12],b=t[13],A=t[14],C=t[15],e[12]=T*a+b*o+A*v+C*y,e[13]=T*n+b*s+A*h+C*g,e[14]=T*i+b*u+A*d+C*_,e[15]=T*l+b*f+A*m+C*w,e}});var Ax=Z((Gie,Mx)=>{Mx.exports=YI;function YI(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,v,h,d,m,y,g,_;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],v=r[5],h=r[6],d=r[7],m=r[8],y=r[9],g=r[10],_=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=v,e[6]=h,e[7]=d,e[8]=m,e[9]=y,e[10]=g,e[11]=_,e[12]=l*a+f*n+m*i+r[12],e[13]=o*a+v*n+y*i+r[13],e[14]=s*a+h*n+g*i+r[14],e[15]=u*a+d*n+_*i+r[15]),e}});var Sx=Z((Wie,kx)=>{kx.exports=UI;function UI(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Lx=Z((Zie,Cx)=>{Cx.exports=VI;function VI(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,v,h,d,m,y,g,_,w,T,b,A,C,k,q,D,R,z,F,I,O,J;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,v=r[0],h=r[1],d=r[2],m=r[3],y=r[4],g=r[5],_=r[6],w=r[7],T=r[8],b=r[9],A=r[10],C=r[11],k=n*n*f+u,q=i*n*f+l*s,D=l*n*f-i*s,R=n*i*f-l*s,z=i*i*f+u,F=l*i*f+n*s,I=n*l*f+i*s,O=i*l*f-n*s,J=l*l*f+u,e[0]=v*k+y*q+T*D,e[1]=h*k+g*q+b*D,e[2]=d*k+_*q+A*D,e[3]=m*k+w*q+C*D,e[4]=v*R+y*z+T*F,e[5]=h*R+g*z+b*F,e[6]=d*R+_*z+A*F,e[7]=m*R+w*z+C*F,e[8]=v*I+y*O+T*J,e[9]=h*I+g*O+b*J,e[10]=d*I+_*O+A*J,e[11]=m*I+w*O+C*J,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var Dx=Z((Xie,qx)=>{qx.exports=GI;function GI(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+v*a,e[7]=s*n+h*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=v*n-o*a,e[11]=h*n-s*a,e}});var Px=Z((Jie,Ex)=>{Ex.exports=WI;function WI(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-v*a,e[3]=s*n-h*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+v*n,e[11]=s*a+h*n,e}});var zx=Z((Kie,Rx)=>{Rx.exports=ZI;function ZI(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],v=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+v*a,e[3]=s*n+h*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=v*n-o*a,e[7]=h*n-s*a,e}});var Fx=Z((Qie,Nx)=>{Nx.exports=XI;function XI(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var Hx=Z(($ie,Ix)=>{Ix.exports=JI;function JI(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,v=a*s,h=a*u,d=n*s,m=n*u,y=i*u,g=l*o,_=l*s,w=l*u;return e[0]=1-(d+y),e[1]=v+w,e[2]=h-_,e[3]=0,e[4]=v-w,e[5]=1-(f+y),e[6]=m+g,e[7]=0,e[8]=h+_,e[9]=m-g,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var Bx=Z((jie,Ox)=>{Ox.exports=KI;function KI(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Ux=Z((ele,Yx)=>{Yx.exports=QI;function QI(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Gx=Z((rle,Vx)=>{Vx.exports=$I;function $I(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Zx=Z((tle,Wx)=>{Wx.exports=jI;function jI(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Jx=Z((ale,Xx)=>{Xx.exports=eH;function eH(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Qx=Z((nle,Kx)=>{Kx.exports=rH;function rH(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,v=a*o,h=n*l,d=n*o,m=n*s,y=i*l,g=i*o,_=i*s;return e[0]=1-v-m,e[1]=f+_,e[2]=h-g,e[3]=0,e[4]=f-_,e[5]=1-u-m,e[6]=d+y,e[7]=0,e[8]=h+g,e[9]=d-y,e[10]=1-u-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var jx=Z((ile,$x)=>{$x.exports=tH;function tH(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var r_=Z((lle,e_)=>{e_.exports=aH;function aH(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var a_=Z((ole,t_)=>{t_.exports=nH;function nH(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var i_=Z((sle,n_)=>{n_.exports=iH;function iH(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var o_=Z((ule,l_)=>{var lH=tp();l_.exports=oH;function oH(e,r,t,a){var n,i,l,o,s,u,f,v,h,d,m=r[0],y=r[1],g=r[2],_=a[0],w=a[1],T=a[2],b=t[0],A=t[1],C=t[2];return Math.abs(m-b)<1e-6&&Math.abs(y-A)<1e-6&&Math.abs(g-C)<1e-6?lH(e):(f=m-b,v=y-A,h=g-C,d=1/Math.sqrt(f*f+v*v+h*h),f*=d,v*=d,h*=d,n=w*h-T*v,i=T*f-_*h,l=_*v-w*f,d=Math.sqrt(n*n+i*i+l*l),d?(d=1/d,n*=d,i*=d,l*=d):(n=0,i=0,l=0),o=v*l-h*i,s=h*n-f*l,u=f*i-v*n,d=Math.sqrt(o*o+s*s+u*u),d?(d=1/d,o*=d,s*=d,u*=d):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=v,e[7]=0,e[8]=l,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*m+i*y+l*g),e[13]=-(o*m+s*y+u*g),e[14]=-(f*m+v*y+h*g),e[15]=1,e)}});var u_=Z((fle,s_)=>{s_.exports=sH;function sH(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var ap=Z((cle,f_)=>{f_.exports={create:sx(),clone:fx(),copy:vx(),identity:tp(),transpose:px(),invert:yx(),adjoint:bx(),determinant:_x(),multiply:Tx(),translate:Ax(),scale:Sx(),rotate:Lx(),rotateX:Dx(),rotateY:Px(),rotateZ:zx(),fromRotation:Fx(),fromRotationTranslation:Hx(),fromScaling:Bx(),fromTranslation:Ux(),fromXRotation:Gx(),fromYRotation:Zx(),fromZRotation:Jx(),fromQuat:Qx(),frustum:jx(),perspective:r_(),perspectiveFromFieldOfView:a_(),ortho:i_(),lookAt:o_(),str:u_()}});var Mv=Z(Et=>{"use strict";var uH=ap();Et.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var fH=Ir(),c_=ro(),cH=Mv(),vH=ap();function hH(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function dH(e){var r=fH.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function v_(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function pH(e,r){h_("global",e,r)}function h_(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):c_.warn("addStyleRule failed"):c_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function mH(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&v_(t)}function yH(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[l[0]]=l[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[l[0]]=l[1]:f.style[o[0]]=o[1])}),u.setAttribute(s,!0))})}function gH(e){var r=p_(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=d_(a);if(n){var i=cH.convertCssMatrix(n);t=vH.multiply(t,t,i)}}),t}function d_(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function p_(e){for(var r=[];bH(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function bH(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function xH(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}m_.exports={getGraphDiv:hH,isPlotDiv:dH,removeElement:v_,addStyleRule:pH,addRelatedStyleRule:h_,deleteRelatedStyleRule:mH,setStyleOnHover:yH,getFullTransformMatrix:gH,getElementTransformMatrix:d_,getElementAndAncestors:p_,equalDomRects:xH}});var Xu=Z((dle,y_)=>{"use strict";y_.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var pi=Z((ple,M_)=>{"use strict";var b_=Gt().extendFlat,_H=nl(),x_={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},__={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},wH=x_.flags.slice().concat(["fullReplot"]),TH=__.flags.slice().concat("layoutReplot");M_.exports={traces:x_,layout:__,traceFlags:function(){return g_(wH)},layoutFlags:function(){return g_(TH)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";np.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};np.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var ip=Z((yle,A_)=>{"use strict";A_.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var yi=Z(Ju=>{"use strict";var k_=ip(),MH=k_.FORMAT_LINK,AH=k_.DATE_FORMAT_LINK;function kH(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,MH,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,AH,"for details on the date formatting syntax."].join(" ")}Ju.templateFormatStringDescription=kH;function lp(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n{"use strict";function ol(e,r){return r?r.d2l(e):e}function S_(e,r){return r?r.l2d(e):e}function SH(e){return e.x0}function CH(e){return e.x1}function LH(e){return e.y0}function qH(e){return e.y1}function C_(e){return e.x0shift||0}function L_(e){return e.x1shift||0}function q_(e){return e.y0shift||0}function D_(e){return e.y1shift||0}function Av(e,r){return ol(e.x1,r)+L_(e)-ol(e.x0,r)-C_(e)}function kv(e,r,t){return ol(e.y1,t)+D_(e)-ol(e.y0,t)-q_(e)}function DH(e,r){return Math.abs(Av(e,r))}function EH(e,r,t){return Math.abs(kv(e,r,t))}function PH(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Av(e,r),2)+Math.pow(kv(e,r,t),2))}function RH(e,r){return S_((ol(e.x1,r)+L_(e)+ol(e.x0,r)+C_(e))/2,r)}function zH(e,r,t){return S_((ol(e.y1,t)+D_(e)+ol(e.y0,t)+q_(e))/2,t)}function NH(e,r,t){return e.type!=="line"?void 0:kv(e,r,t)/Av(e,r)}E_.exports={x0:SH,x1:CH,y0:LH,y1:qH,slope:NH,dx:Av,dy:kv,width:DH,height:EH,length:PH,xcenter:RH,ycenter:zH}});var z_=Z((xle,R_)=>{"use strict";var FH=pi().overrideAll,to=Gn(),P_=ma(),IH=mi().dash,sl=Gt().extendFlat,HH=yi().shapeTexttemplateAttrs,OH=Sv();R_.exports=FH({newshape:{visible:sl({},to.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:sl({},to.legend,{}),legendgroup:sl({},to.legendgroup,{}),legendgrouptitle:{text:sl({},to.legendgrouptitle.text,{}),font:P_({})},legendrank:sl({},to.legendrank,{}),legendwidth:sl({},to.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:sl({},IH,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:sl({},to.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:HH({newshape:!0},{keys:Object.keys(OH)}),font:P_({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var F_=Z((_le,N_)=>{"use strict";var BH=mi().dash,YH=Gt().extendFlat;N_.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:YH({},BH,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Cv=Z((wle,I_)=>{"use strict";I_.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var ds=Z((Tle,Y_)=>{"use strict";var op=ma(),UH=Xu(),Lv=hi(),H_=z_(),O_=F_(),VH=Cv(),B_=Gt().extendFlat,qv=op({editType:"calc"});qv.family.dflt='"Open Sans", verdana, arial, sans-serif';qv.size.dflt=12;qv.color.dflt=Lv.defaultLine;Y_.exports={font:qv,title:{text:{valType:"string",editType:"layoutstyle"},font:op({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:op({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:B_(VH({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Lv.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Lv.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Lv.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:H_.newshape,activeshape:H_.activeshape,newselection:O_.newselection,activeselection:O_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:B_({},UH.transition,{editType:"none"})}});var U_=Z(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var br=Z(zr=>{"use strict";var ps=ro(),V_=Tv(),G_=rp(),GH=nl(),WH=Zu().addStyleRule,W_=Gt(),ZH=Gn(),XH=ds(),JH=W_.extendFlat,sp=W_.extendDeepAll;zr.modules={};zr.allCategories={};zr.allTypes=[];zr.subplotsRegistry={};zr.componentsRegistry={};zr.layoutArrayContainers=[];zr.layoutArrayRegexes=[];zr.traceLayoutAttributes={};zr.localeRegistry={};zr.apiMethodRegistry={};zr.collectableSubplotTypes=null;zr.register=function(r){if(zr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var rO=os().timeFormat,a4=Hr(),up=ro(),fl=us().mod,gs=Vt(),xn=gs.BADNUM,Ja=gs.ONEDAY,Ku=gs.ONEHOUR,ul=gs.ONEMIN,ys=gs.ONESEC,Qu=gs.EPOCHJD,Ni=br(),Q_=os().utcFormat,tO=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,aO=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,$_=new Date().getFullYear()-70;function Fi(e){return e&&Ni.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Pt.dateTick0=function(e,r){var t=nO(e,!!r);if(r<2)return t;var a=Pt.dateTime2ms(t,e);return a+=Ja*(r-1),Pt.ms2DateTime(a,0,e)};function nO(e,r){return Fi(e)?r?Ni.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ni.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Pt.dfltRange=function(e){return Fi(e)?Ni.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Pt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ev,Pv;Pt.dateTime2ms=function(e,r){if(Pt.isJSDate(e)){var t=e.getTimezoneOffset()*ul,a=(e.getUTCMinutes()-e.getMinutes())*ul+(e.getUTCSeconds()-e.getSeconds())*ys+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*ul;t=t-n/2+fl(a-t+n/2,n)}return e=Number(e)-t,e>=Ev&&e<=Pv?e:xn}if(typeof e!="string"&&typeof e!="number")return xn;e=String(e);var i=Fi(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.substr(1),r="");var o=i&&r.substr(0,7)==="chinese",s=e.match(o?aO:tO);if(!s)return xn;var u=s[1],f=s[3]||"1",v=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return xn;u=Number(u);var y;try{var g=Ni.getComponentMethod("calendars","getCal")(r);if(o){var _=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=g.newDate(u,g.toMonthIndex(u,f,_),v)}else y=g.newDate(u,Number(f),v)}catch(T){return xn}return y?(y.toJD()-Qu)*Ja+h*Ku+d*ul+m*ys:xn}u.length===2?u=(Number(u)+2e3-$_)%100+$_:u=Number(u),f-=1;var w=new Date(Date.UTC(2e3,f,v,h,d));return w.setUTCFullYear(u),w.getUTCMonth()!==f||w.getUTCDate()!==v?xn:w.getTime()+m*ys};Ev=Pt.MIN_MS=Pt.dateTime2ms("-9999");Pv=Pt.MAX_MS=Pt.dateTime2ms("9999-12-31 23:59:59.9999");Pt.isDateTime=function(e,r){return Pt.dateTime2ms(e,r)!==xn};function ms(e,r){return String(e+Math.pow(10,r)).substr(1)}var Dv=90*Ja,j_=3*Ku,e4=5*ul;Pt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ev&&e<=Pv))return xn;r||(r=0);var a=Math.floor(fl(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(Fi(t)){var v=Math.floor(n/Ja)+Qu,h=Math.floor(fl(e,Ja));try{i=Ni.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=Q_("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;l=r=Ev+Ja&&e<=Pv-Ja))return xn;var r=Math.floor(fl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=rO("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return n4(a,n,i,l,o)};function n4(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+ms(r,2)+":"+ms(t,2),(a||n)&&(e+=":"+ms(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+ms(n,i)}return e}Pt.cleanDate=function(e,r,t){if(e===xn)return r;if(Pt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Fi(t))return up.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Pt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Pt.isDateTime(e,t))return up.error("unrecognized date",e),r;return e};var iO=/%\d?f/g,lO=/%h/g,oO={1:"1",2:"1",3:"2",4:"2"};function r4(e,r,t,a){e=e.replace(iO,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).substr(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(lO,function(){return oO[t("%q")(n)]}),Fi(a))try{e=Ni.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var sO=[59,59.9,59.99,59.999,59.9999];function uO(e,r){var t=fl(e+.05,Ja),a=ms(Math.floor(t/Ku),2)+":"+ms(fl(Math.floor(t/ul),60),2);if(r!=="M"){a4(r)||(r=0);var n=Math.min(fl(e/ys,60),sO[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Pt.formatDate=function(e,r,t,a,n,i){if(n=Fi(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return uO(e,t)+` +`+r4(i.dayMonthYear,e,a,n);return r4(r,e,a,n)};var t4=3*Ja;Pt.incrementMonth=function(e,r,t){t=Fi(t)&&t;var a=fl(e,Ja);if(e=Math.round(e-a),t)try{var n=Math.round(e/Ja)+Qu,i=Ni.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-Qu)*Ja+a}catch(s){up.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+t4);return o.setUTCMonth(o.getUTCMonth()+r)+a-t4};Pt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=Fi(r)&&Ni.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";l4.exports=function(r){return r}});var vp=Z(Ii=>{"use strict";var fO=Hr(),cO=ro(),vO=fp(),hO=Vt().BADNUM,cp=1e-9;Ii.findBin=function(e,r,t){if(fO(r.start))return t?Math.ceil((e-r.start)/r.size-cp)-1:Math.floor((e-r.start)/r.size+cp);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?dO:pO:s=t?yO:mO,e+=l*cp*(t?-1:1)*(l>=0?1:-1);a90&&cO.log("Long binary search..."),a-1};function dO(e,r){return er}function yO(e,r){return e>=r}Ii.sorterAsc=function(e,r){return e-r};Ii.sorterDes=function(e,r){return r-e};Ii.distinctVals=function(e){var r=e.slice();r.sort(Ii.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===hO;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};Ii.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Ii.findIndexOfMin=function(e,r){r=r||vO;for(var t=1/0,a,n=0;n{"use strict";o4.exports=function(r){return Object.keys(r).sort()}});var s4=Z(Rt=>{"use strict";var $u=Hr(),gO=nn().isArrayOrTypedArray;Rt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),$u(r)||(r=!1),gO(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var h4=Z((Ele,v4)=>{"use strict";var u4=us(),dp=u4.mod,bO=u4.modHalf,ju=Math.PI,cl=2*ju;function xO(e){return e/180*ju}function _O(e){return e/ju*180}function pp(e){return Math.abs(e[1]-e[0])>cl-1e-14}function f4(e,r){return bO(r-e,cl)}function wO(e,r){return Math.abs(f4(e,r))}function c4(e,r){if(pp(r))return!0;var t,a;r[0]a&&(a+=cl);var n=dp(e,cl),i=n+cl;return n>=t&&n<=a||i>=t&&i<=a}function TO(e,r,t,a){if(!c4(r,a))return!1;var n,i;return t[0]=n&&e<=i}function mp(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=pp([t,a]),s,u,f,v,h;o?(s=0,u=ju,f=cl):t{"use strict";ao.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};ao.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};ao.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};ao.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};ao.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};ao.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var y4=Z(no=>{"use strict";var yp=us().mod;no.segmentsIntersect=m4;function m4(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,v=a-r,h=i-r,d=o-i,m=s*d-f*v;if(m===0)return null;var y=(u*d-f*h)/m,g=(u*v-s*h)/m;return g<0||g>1||y<0||y>1?null:{x:e+s*y,y:r+v*y}}no.segmentDistance=function(r,t,a,n,i,l,o,s){if(m4(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,v=o-i,h=s-l,d=u*u+f*f,m=v*v+h*h,y=Math.min(Rv(u,f,d,i-r,l-t),Rv(u,f,d,o-r,s-t),Rv(v,h,m,r-i,t-l),Rv(v,h,m,a-i,n-l));return Math.sqrt(y)};function Rv(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var zv,gp,p4;no.getTextLocation=function(r,t,a,n){if((r!==gp||n!==p4)&&(zv={},gp=r,p4=n),zv[a])return zv[a];var i=r.getPointAtLength(yp(a-n/2,t)),l=r.getPointAtLength(yp(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(yp(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,v={x:u,y:f,theta:o};return zv[a]=v,v};no.clearLocationCache=function(){gp=null};no.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,v,h;function d(y){var g=r.getPointAtLength(y);y===0?v=g:y===u&&(h=g);var _=g.xi?g.x-i:0,w=g.yo?g.y-o:0;return Math.sqrt(_*_+w*w)}for(var m=d(s);m;){if(s+=m+a,s>f)return;m=d(s)}for(m=d(f);m;){if(f-=m+a,s>f)return;m=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(v.x-h.x)<.1&&Math.abs(v.y-h.y)<.1}};no.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,v=i,h,d,m;u0?v=h:f=h,u++}return d}});var Nv=Z(ef=>{"use strict";var Hi={};ef.throttle=function(r,t,a){var n=Hi[r],i=Date.now();if(!n){for(var l in Hi)Hi[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};ef.done=function(e){var r=Hi[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};ef.clear=function(e){if(e)g4(Hi[e]),delete Hi[e];else for(var r in Hi)ef.clear(r)};function g4(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var x4=Z((Nle,b4)=>{"use strict";b4.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var _4=Z((Fle,Fv)=>{"use strict";Fv.exports=bp;Fv.exports.isMobile=bp;Fv.exports.default=bp;var SO=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,CO=/CrOS/,LO=/android|ipad|playbook|silk/i;function bp(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=SO.test(r)&&!CO.test(r)||!!e.tablet&&LO.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var T4=Z((Ile,w4)=>{"use strict";var qO=Hr(),DO=_4();w4.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=EO(),typeof t!="string")return!0;var a=DO({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;o--){var s=n[o];if(s.substr(0,8)==="Version/"){var u=s.substr(8).split(".")[0];if(qO(u)&&(u=+u),u>=13)return!0}}}return a};function EO(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var A4=Z((Hle,M4)=>{"use strict";var PO=Ir();M4.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=PO.select(this)}),n}});var S4=Z((Ole,k4)=>{"use strict";var RO=br();k4.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=RO.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var L4=Z((Ble,C4)=>{"use strict";C4.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";q4.exports=function(r){for(var t=FO(r)?NO:zO,a=[],n=0;n{"use strict";E4.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var z4=Z((Vle,R4)=>{"use strict";var IO=Hr(),HO=Vt().BADNUM,OO=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;R4.exports=function(r){return typeof r=="string"&&(r=r.replace(OO,"")),IO(r)?Number(r):HO}});var Ie=Z((Gle,X4)=>{"use strict";var rf=Ir(),BO=os().utcFormat,YO=B1().format,B4=Hr(),Y4=Vt(),U4=Y4.FP_SAFE,UO=-U4,N4=Y4.BADNUM,ve=X4.exports={};ve.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var F4={};ve.warnBadFormat=function(e){var r=String(e);F4[r]||(F4[r]=1,ve.warn('encountered bad format: "'+r+'"'))};ve.noFormat=function(e){return String(e)};ve.numberFormat=function(e){var r;try{r=YO(ve.adjustFormat(e))}catch(t){return ve.warnBadFormat(e),ve.noFormat}return r};ve.nestedProperty=dv();ve.keyedContainer=Sb();ve.relativeAttr=Lb();ve.isPlainObject=nl();ve.toLogRange=mv();ve.relinkPrivateKeys=Pb();var vl=nn();ve.isArrayBuffer=vl.isArrayBuffer;ve.isTypedArray=vl.isTypedArray;ve.isArrayOrTypedArray=vl.isArrayOrTypedArray;ve.isArray1D=vl.isArray1D;ve.ensureArray=vl.ensureArray;ve.concat=vl.concat;ve.maxRowLength=vl.maxRowLength;ve.minRowLength=vl.minRowLength;var V4=us();ve.mod=V4.mod;ve.modHalf=V4.modHalf;var hl=$b();ve.valObjectMeta=hl.valObjectMeta;ve.coerce=hl.coerce;ve.coerce2=hl.coerce2;ve.coerceFont=hl.coerceFont;ve.coercePattern=hl.coercePattern;ve.coerceHoverinfo=hl.coerceHoverinfo;ve.coerceSelectionMarkerOpacity=hl.coerceSelectionMarkerOpacity;ve.validate=hl.validate;var ln=i4();ve.dateTime2ms=ln.dateTime2ms;ve.isDateTime=ln.isDateTime;ve.ms2DateTime=ln.ms2DateTime;ve.ms2DateTimeLocal=ln.ms2DateTimeLocal;ve.cleanDate=ln.cleanDate;ve.isJSDate=ln.isJSDate;ve.formatDate=ln.formatDate;ve.incrementMonth=ln.incrementMonth;ve.dateTick0=ln.dateTick0;ve.dfltRange=ln.dfltRange;ve.findExactDates=ln.findExactDates;ve.MIN_MS=ln.MIN_MS;ve.MAX_MS=ln.MAX_MS;var io=vp();ve.findBin=io.findBin;ve.sorterAsc=io.sorterAsc;ve.sorterDes=io.sorterDes;ve.distinctVals=io.distinctVals;ve.roundUp=io.roundUp;ve.sort=io.sort;ve.findIndexOfMin=io.findIndexOfMin;ve.sortObjectKeys=hp();var Oi=s4();ve.aggNums=Oi.aggNums;ve.len=Oi.len;ve.mean=Oi.mean;ve.geometricMean=Oi.geometricMean;ve.median=Oi.median;ve.midRange=Oi.midRange;ve.variance=Oi.variance;ve.stdev=Oi.stdev;ve.interp=Oi.interp;var Wn=Mv();ve.init2dArray=Wn.init2dArray;ve.transposeRagged=Wn.transposeRagged;ve.dot=Wn.dot;ve.translationMatrix=Wn.translationMatrix;ve.rotationMatrix=Wn.rotationMatrix;ve.rotationXYMatrix=Wn.rotationXYMatrix;ve.apply3DTransform=Wn.apply3DTransform;ve.apply2DTransform=Wn.apply2DTransform;ve.apply2DTransform2=Wn.apply2DTransform2;ve.convertCssMatrix=Wn.convertCssMatrix;ve.inverseTransformMatrix=Wn.inverseTransformMatrix;var gi=h4();ve.deg2rad=gi.deg2rad;ve.rad2deg=gi.rad2deg;ve.angleDelta=gi.angleDelta;ve.angleDist=gi.angleDist;ve.isFullCircle=gi.isFullCircle;ve.isAngleInsideSector=gi.isAngleInsideSector;ve.isPtInsideSector=gi.isPtInsideSector;ve.pathArc=gi.pathArc;ve.pathSector=gi.pathSector;ve.pathAnnulus=gi.pathAnnulus;var xs=d4();ve.isLeftAnchor=xs.isLeftAnchor;ve.isCenterAnchor=xs.isCenterAnchor;ve.isRightAnchor=xs.isRightAnchor;ve.isTopAnchor=xs.isTopAnchor;ve.isMiddleAnchor=xs.isMiddleAnchor;ve.isBottomAnchor=xs.isBottomAnchor;var _s=y4();ve.segmentsIntersect=_s.segmentsIntersect;ve.segmentDistance=_s.segmentDistance;ve.getTextLocation=_s.getTextLocation;ve.clearLocationCache=_s.clearLocationCache;ve.getVisibleSegment=_s.getVisibleSegment;ve.findPointOnPath=_s.findPointOnPath;var Ov=Gt();ve.extendFlat=Ov.extendFlat;ve.extendDeep=Ov.extendDeep;ve.extendDeepAll=Ov.extendDeepAll;ve.extendDeepNoArrays=Ov.extendDeepNoArrays;var xp=ro();ve.log=xp.log;ve.warn=xp.warn;ve.error=xp.error;var VO=cs();ve.counterRegex=VO.counter;var _p=Nv();ve.throttle=_p.throttle;ve.throttleDone=_p.done;ve.clearThrottle=_p.clear;var Zn=Zu();ve.getGraphDiv=Zn.getGraphDiv;ve.isPlotDiv=Zn.isPlotDiv;ve.removeElement=Zn.removeElement;ve.addStyleRule=Zn.addStyleRule;ve.addRelatedStyleRule=Zn.addRelatedStyleRule;ve.deleteRelatedStyleRule=Zn.deleteRelatedStyleRule;ve.setStyleOnHover=Zn.setStyleOnHover;ve.getFullTransformMatrix=Zn.getFullTransformMatrix;ve.getElementTransformMatrix=Zn.getElementTransformMatrix;ve.getElementAndAncestors=Zn.getElementAndAncestors;ve.equalDomRects=Zn.equalDomRects;ve.clearResponsive=x4();ve.preserveDrawingBuffer=T4();ve.makeTraceGroups=A4();ve._=S4();ve.notifier=$1();ve.filterUnique=L4();ve.filterVisible=D4();ve.pushUnique=rp();ve.increment=P4();ve.cleanNumber=z4();ve.ensureNumber=function(r){return B4(r)?(r=Number(r),r>U4||r=r?!1:B4(e)&&e>=0&&e%1===0};ve.noop=Tv();ve.identity=fp();ve.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};ve.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};ve.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o=Math.pow(2,t)?n>10?(ve.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};ve.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};ve.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),l=new Array(t),o,s,u,f;for(o=0;o=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];l[o]=f}return l};ve.syncOrAsync=function(e,r,t){var a,n;function i(){return ve.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};ve.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};ve.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};ve.fillArray=function(e,r,t,a){if(a=a||ve.identity,ve.isArrayOrTypedArray(e))for(var n=0;nZO.test(window.navigator.userAgent);var XO=/Firefox\/(\d+)\.\d+/;ve.getFirefoxVersion=function(){var e=XO.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};ve.isD3Selection=function(e){return e instanceof rf.selection};ve.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};ve.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};ve.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};ve.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Z4=/^\w*$/;ve.templateString=function(e,r){var t={};return e.replace(ve.TEMPLATE_STRING_REGEX,function(a,n){var i;return Z4.test(n)?i=r[n]:(t[n]=t[n]||ve.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var QO={max:10,count:0,name:"hovertemplate"};ve.hovertemplateString=function(){return wp.apply(QO,arguments)};var $O={max:10,count:0,name:"texttemplate"};ve.texttemplateString=function(){return wp.apply($O,arguments)};var jO=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function eB(e){var r=e.match(jO);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var rB={max:10,count:0,name:"texttemplate",parseMultDiv:!0};ve.texttemplateStringForShapes=function(){return wp.apply(rB,arguments)};var I4=/^[:|\|]/;function wp(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(ve.TEMPLATE_STRING_REGEX,function(i,l,o){var s=l==="xother"||l==="yother",u=l==="_xother"||l==="_yother",f=l==="_xother_"||l==="_yother_",v=l==="xother_"||l==="yother_",h=s||u||v||f,d=l;(u||f)&&(d=d.substring(1)),(v||f)&&(d=d.substring(0,d.length-1));var m=null,y=null;if(a.parseMultDiv){var g=eB(d);d=g.key,m=g.op,y=g.number}var _;if(h){if(_=r[d],_===void 0)return""}else{var w,T;for(T=3;T=Hv&&l<=H4,u=o>=Hv&&o<=H4;if(s&&(a=10*a+l-Hv),u&&(n=10*n+o-Hv),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var bs=2e9;ve.seedPseudoRandom=function(){bs=2e9};ve.pseudoRandom=function(){var e=bs;return bs=(69069*bs+1)%4294967296,Math.abs(bs-e)<429496729?ve.pseudoRandom():bs/4294967296};ve.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=ve.extractOption(e,r,"htx","hovertext");if(ve.isValidTextValue(n))return a(n);var i=ve.extractOption(e,r,"tx","text");if(ve.isValidTextValue(i))return a(i)};ve.isValidTextValue=function(e){return e||e===0};ve.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,ve.strTranslate(n-u*(t+l),i-u*(a+o))+ve.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};ve.setTransormAndDisplay=function(e,r){e.attr("transform",ve.getTextTransform(r)),e.style("display",r.scale?null:"none")};ve.ensureUniformFontSize=function(e,r){var t=ve.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};ve.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};ve.bigFont=function(e){return Math.round(1.2*e)};var O4=ve.getFirefoxVersion(),tB=O4!==null&&O4<86;ve.getPositionFromD3Event=function(){return tB?[rf.event.layerX,rf.event.layerY]:[rf.event.offsetX,rf.event.offsetY]}});var Q4=Z(()=>{"use strict";var aB=Ie(),J4={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Tp in J4)K4=Tp.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),aB.addStyleRule(K4,J4[Tp]);var K4,Tp});var Mp=Z((Xle,$4)=>{$4.exports=!0});var kp=Z((Jle,j4)=>{"use strict";var nB=Mp(),Ap;typeof window.matchMedia=="function"?Ap=!window.matchMedia("(hover: none)").matches:Ap=nB;j4.exports=Ap});var Uv=Z((Kle,Sp)=>{"use strict";var ws=typeof Reflect=="object"?Reflect:null,e6=ws&&typeof ws.apply=="function"?ws.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Bv;ws&&typeof ws.ownKeys=="function"?Bv=ws.ownKeys:Object.getOwnPropertySymbols?Bv=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Bv=function(r){return Object.getOwnPropertyNames(r)};function iB(e){console&&console.warn&&console.warn(e)}var t6=Number.isNaN||function(r){return r!==r};function vt(){vt.init.call(this)}Sp.exports=vt;Sp.exports.once=uB;vt.EventEmitter=vt;vt.prototype._events=void 0;vt.prototype._eventsCount=0;vt.prototype._maxListeners=void 0;var r6=10;function Yv(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(vt,"defaultMaxListeners",{enumerable:!0,get:function(){return r6},set:function(e){if(typeof e!="number"||e<0||t6(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");r6=e}});vt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};vt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||t6(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function a6(e){return e._maxListeners===void 0?vt.defaultMaxListeners:e._maxListeners}vt.prototype.getMaxListeners=function(){return a6(this)};vt.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")e6(s,this,t);else for(var u=s.length,f=s6(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,iB(o)}return e}vt.prototype.addListener=function(r,t){return n6(this,r,t,!1)};vt.prototype.on=vt.prototype.addListener;vt.prototype.prependListener=function(r,t){return n6(this,r,t,!0)};function lB(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function i6(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=lB.bind(a);return n.listener=t,a.wrapFn=n,n}vt.prototype.once=function(r,t){return Yv(t),this.on(r,i6(this,r,t)),this};vt.prototype.prependOnceListener=function(r,t){return Yv(t),this.prependListener(r,i6(this,r,t)),this};vt.prototype.removeListener=function(r,t){var a,n,i,l,o;if(Yv(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():oB(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};vt.prototype.off=vt.prototype.removeListener;vt.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function l6(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?sB(n):s6(n,n.length)}vt.prototype.listeners=function(r){return l6(this,r,!0)};vt.prototype.rawListeners=function(r){return l6(this,r,!1)};vt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):o6.call(e,r)};vt.prototype.listenerCount=o6;function o6(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}vt.prototype.eventNames=function(){return this._eventsCount>0?Bv(this._events):[]};function s6(e,r){for(var t=new Array(r),a=0;a{"use strict";var Cp=Uv().EventEmitter,cB={init:function(e){if(e._ev instanceof Cp)return e;var r=new Cp,t=new Cp;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function l(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var o;for(o=0;o{"use strict";var c6=Ie(),vB=eo().dfltConfig;function hB(e,r){for(var t=[],a,n=0;nvB.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Bi.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Bi.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Bi.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";d6.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var As=Z(Wt=>{"use strict";var _n=br(),af=Ie(),Gv=Gn(),qp=ds(),dB=Lp(),pB=Xu(),mB=eo().configAttributes,p6=pi(),Xn=af.extendDeepAll,Ts=af.isPlainObject,yB=af.isArrayOrTypedArray,Wv=af.nestedProperty,gB=af.valObjectMeta,Dp="_isSubplotObj",Zv="_isLinkedToArray",bB="_arrayAttrRegexps",y6="_deprecated",Ep=[Dp,Zv,bB,y6];Wt.IS_SUBPLOT_OBJ=Dp;Wt.IS_LINKED_TO_ARRAY=Zv;Wt.DEPRECATED=y6;Wt.UNDERSCORE_ATTRS=Ep;Wt.get=function(){var e={};return _n.allTypes.forEach(function(r){e[r]=_B(r)}),{defs:{valObjects:gB,metaKeys:Ep.concat(["description","role","editType","impliedEdits"]),editType:{traces:p6.traces,layout:p6.layout},impliedEdits:{}},traces:e,layout:wB(),frames:TB(),animation:Ms(pB),config:Ms(mB)}};Wt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(Ep.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!Wt.isValObject(l)&&Ts(l)&&i!=="impliedEdits"&&Wt.crawl(l,r,n+1,o)}})};Wt.isValObject=function(e){return e&&e.valType!==void 0};Wt.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,v){t=t.slice(0,v).concat([u]),a=a.slice(0,v).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&o(n,0,"")}function o(s,u,f){var v=s[t[u]],h=f+t[u];if(u===t.length-1)yB(v)&&r.push(i+h);else if(a[u]){if(Array.isArray(v))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!Vv(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function Vv(e){return e===Math.round(e)&&e>=0}function _B(e){var r,t;r=_n.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Xn({},Gv),i=Xn({},r.attributes);Wt.crawl(i,function(s,u,f,v,h){Wv(n,h).set(void 0),s===void 0&&Wv(i,h).set(void 0)}),Xn(a,n),_n.traceIs(e,"noOpacity")&&delete a.opacity,_n.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),_n.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Xn(a,i),t.attributes&&Xn(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Ms(a)};if(r.layoutAttributes){var o={};Xn(o,r.layoutAttributes),l.layoutAttributes=Ms(o)}return r.animatable||Wt.crawl(l,function(s){Wt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function wB(){var e={},r,t;Xn(e,qp);for(r in _n.subplotsRegistry)if(t=_n.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var ks=Ie(),CB=Gn(),dl="templateitemname",Pp={name:{valType:"string",editType:"none"}};Pp[dl]={valType:"string",editType:"calc"};lo.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Pp.name,r[dl]=Pp[dl],r};lo.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=ks.coerce(i,{},CB,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};lo.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);ks.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};lo.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[x6(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},v=f[dl]=u[dl];if(!b6(v))return f._template=n,f;for(var h=0;h=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][dl]=i)}s();function u(d,m){o[d]=m}function f(d,m){i?ks.nestedProperty(o[l],d).set(m):o[l+"."+d]=m}function v(){var d=o;return s(),d}function h(d,m){d&&f(d,m);var y=v();for(var g in y)ks.nestedProperty(e,g).set(y[g])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:h}}});var ya=Z((toe,_6)=>{"use strict";var nf=cs().counter;_6.exports={idRegex:{x:nf("x","( domain)?"),y:nf("y","( domain)?")},attrRegex:nf("[xy]axis"),xAxisMatch:nf("xaxis"),yAxisMatch:nf("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Zt=Z(Ka=>{"use strict";var LB=br(),Rp=ya();Ka.id2name=function(r){if(!(typeof r!="string"||!r.match(Rp.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Ka.name2id=function(r){if(r.match(Rp.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};Ka.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(Rp.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Ka.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Ka.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};Ka.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function w6(e,r){if(r&&r.length){for(var t=0;t{"use strict";function qB(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function DB(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}T6.exports={clearOutlineControllers:qB,clearOutline:DB}});var Xv=Z((ioe,M6)=>{"use strict";M6.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var zp=Z(Kv=>{"use strict";var Jv=br(),loe=ya().SUBPLOT_PATTERN;Kv.getSubplotCalcData=function(e,r,t){var a=Jv.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var EB=br(),Ss=Ie();oo.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=oo.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){A6(e,l,n.cache),n.check=function(){if(i){var f=A6(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Ss.isPlainObject(i)?Np(i,r,l,a+1):r(l,n,i)}})}});var Ft=Z((uoe,Y6)=>{"use strict";var z6=Ir(),RB=os().timeFormatLocale,zB=B1().formatLocale,lf=Hr(),NB=Y1(),Zr=br(),N6=As(),FB=ct(),ur=Ie(),F6=Er(),L6=Vt().BADNUM,Qa=Zt(),IB=pl().clearOutline,HB=Xv(),Fp=Xu(),OB=Lp(),BB=zp().getModuleCalcData,q6=ur.relinkPrivateKeys,so=ur._,Qe=Y6.exports={};ur.extendFlat(Qe,Zr);Qe.attributes=Gn();Qe.attributes.type.values=Qe.allTypes;Qe.fontAttrs=ma();Qe.layoutAttributes=ds();var $v=C6();Qe.executeAPICommand=$v.executeAPICommand;Qe.computeAPICommandBindings=$v.computeAPICommandBindings;Qe.manageCommandObserver=$v.manageCommandObserver;Qe.hasSimpleAPICommandBindings=$v.hasSimpleAPICommandBindings;Qe.redrawText=function(e){return e=ur.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Zr.getComponentMethod("annotations","draw")(e),Zr.getComponentMethod("legend","draw")(e),Zr.getComponentMethod("colorbar","draw")(e),r(Qe.previousPromises(e)))},300)})};Qe.resize=function(e){e=ur.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||ur.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ur.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Zr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Qe.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Qe.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=ur.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:F6.defaultLine,"pointer-events":"all"}).each(function(){var u=z6.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),l=t.select(".js-link-spacer"),o=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&YB(e,i),l.text(i.text()&&o.text()?" - ":"")}};function YB(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){Qe.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}Qe.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=z6.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=Qe.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var UB=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],VB=["year","month","dayMonth","dayMonthYear"];Qe.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},v;e._transitionData||Qe.createTransitionData(e),n._dfltTitle={plot:so(e,"Click to enter Plot title"),subtitle:so(e,"Click to enter Plot subtitle"),x:so(e,"Click to enter X axis title"),y:so(e,"Click to enter Y axis title"),colorbar:so(e,"Click to enter Colorscale title"),annotation:so(e,"new text")},n._traceWord=so(e,"trace");var h=D6(e,UB);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,m=a.height;Qe.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=m),Qe.sanitizeMargins(n)}else{Qe.supplyLayoutGlobalDefaults(i,n,h);var y=!i.width||!i.height,g=n.autosize,_=f.autosizable,w=y&&(g||_);w?Qe.plotAutoSize(e,i,n):y&&Qe.sanitizeMargins(n),!g&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=ZB(h,n.separators),n._extraFormat=D6(e,VB),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var T=n._subplots=WB(),b=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=GB(l,s),Qe.supplyDataDefaults(s,o,i,n);var C=Object.keys(b.x),k=Object.keys(b.y);if(C.length>1&&k.length>1){for(Zr.getComponentMethod("grid","sizeDefaults")(i,n),v=0;v15&&k.length>15&&n.shapes.length===0&&n.images.length===0,Qe.linkSubplots(o,n,l,a),Qe.cleanPlot(o,n,l,a);var F=!!(a._has&&a._has("cartesian")),I=!!(n._has&&n._has("cartesian")),O=F,J=I;O&&!J?a._bgLayer.remove():J&&!O&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&IB({_fullLayout:a}),XB(o,n),q6(n,a),Zr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var X=n._tracePreGUI,U={},H;for(H in X)U[H]="old";for(v=0;v0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var v=Qe.layoutAttributes.width.min,h=Qe.layoutAttributes.height.min;l1,m=!t.height&&Math.abs(a.height-o)>1;(m||d)&&(d&&(a.width=l),m&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),Qe.sanitizeMargins(a)};Qe.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Zr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Zr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Zr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(ur.subplotSort);for(o=0;o1&&(t.l/=g,t.r/=g)}if(h){var _=(t.t+t.b)/h;_>1&&(t.t/=_,t.b/=_)}var w=t.xl!==void 0?t.xl:t.x,T=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,A=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:w,size:t.l+y},r:{val:T,size:t.r+y},b:{val:A,size:t.b+y},t:{val:b,size:t.t+y}},m[r]=1}if(!a._replotting)return Qe.doAutoMargin(e)}};function KB(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Qa.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Qe.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),I6(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=ur.extendFlat({},n),s=i.l,u=i.r,f=i.t,v=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var g in h)d[g]||delete h[g];var _=e._fullLayout._reservedMargin;for(var w in _)for(var T in _[w]){var b=_[w][T];l[T]=Math.max(l[T],b)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:v}};for(var A in l){var C=0;for(var k in h)k!=="base"&&lf(h[k][A].size)&&(C=h[k][A].size>C?h[k][A].size:C);var q=Math.max(0,i[A]-C);l[A]=Math.max(0,l[A]-q)}for(var D in h){var R=h[D].l||{},z=h[D].b||{},F=R.val,I=R.size,O=z.val,J=z.size,X=t-l.r-l.l,U=a-l.t-l.b;for(var H in h){if(lf(I)&&h[H].r){var V=h[H].r.val,K=h[H].r.size;if(V>F){var Q=(I*V+(K-X)*F)/(V-F),ie=(K*(1-F)+(I-X)*(1-V))/(V-F);Q+ie>s+u&&(s=Q,u=ie)}}if(lf(J)&&h[H].t){var pe=h[H].t.val,me=h[H].t.size;if(pe>O){var Ae=(J*pe+(me-U)*O)/(pe-O),re=(me*(1-O)+(J-U)*(1-pe))/(pe-O);Ae+re>v+f&&(v=Ae,f=re)}}}}}var Le=ur.constrain(t-i.l-i.r,H6,m),fe=ur.constrain(a-i.t-i.b,O6,y),ke=Math.max(0,t-Le),se=Math.max(0,a-fe);if(ke){var be=(s+u)/ke;be>1&&(s/=be,u/=be)}if(se){var Y=(v+f)/se;Y>1&&(v/=Y,f/=Y)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(v)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Qe.didMarginChange(o,n)||KB(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ee=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Qe.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&Qe.supplyDefaults(e);var l=n?e._fullData:e.data,o=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(ur.isPlainObject(h)){var m={},y;return Object.keys(h).sort().forEach(function(T){if(["_","["].indexOf(T.charAt(0))===-1){if(typeof h[T]=="function"){d&&(m[T]="_function");return}if(t==="keepdata"){if(T.substr(T.length-3)==="src")return}else if(t==="keepstream"){if(y=h[T+"src"],typeof y=="string"&&y.indexOf(":")>0&&!ur.isPlainObject(h.stream))return}else if(t!=="keepall"&&(y=h[T+"src"],typeof y=="string"&&y.indexOf(":")>0))return;m[T]=u(h[T],d)}}),m}var g=Array.isArray(h),_=ur.isTypedArray(h);if((g||_)&&h.dtype&&h.shape){var w=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:ur.isArrayBuffer(w)?NB.encode(w):w},d)}return g?h.map(function(T){return u(T,d)}):_?ur.simpleMap(h,ur.identity):ur.isJSDate(h)?ur.ms2DateTimeLocal(+h):h}var f={data:(l||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(o),n)){var v=o._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};Qe.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Zr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!a&&d===h&&o(v)}}t.runFn(m),setTimeout(m())})}function o(v){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Zr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Qe.previousPromises,s,t.prepareFn,Qe.rehover,Qe.reselect,l],f=ur.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Qe.doCalcdata=function(e,r){var t=Qa.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;o=0;s--)if(A[s].enabled){i._indexToPoints=A[s]._indexToPoints;break}l&&l.calc&&(b=l.calc(e,i))}(!Array.isArray(b)||!b[0])&&(b=[{x:L6,y:L6}]),b[0].t||(b[0].t={}),b[0].trace=i,u[w]=b}}for(P6(t,a,n),o=0;o{"use strict";uo.xmlns="http://www.w3.org/2000/xmlns/";uo.svg="http://www.w3.org/2000/svg";uo.xlink="http://www.w3.org/1999/xlink";uo.svgAttrs={xmlns:uo.svg,"xmlns:xlink":uo.xlink}});var Pa=Z((coe,U6)=>{"use strict";U6.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Ta=Z(wn=>{"use strict";var It=Ir(),Yi=Ie(),eY=Yi.strTranslate,Ip=fo(),rY=Pa().LINE_SPACING,tY=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;wn.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(tY),i=It.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=pY(e.node(),a);s&&e.style("pointer-events","all"),wn.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};lY(n[2],f,function(v,h,d){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){o(),s();return}var y=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(m.node()),h&&h.node()&&m.node().insertBefore(h.node().cloneNode(!0),m.node().firstChild);var g=d.width,_=d.height;m.attr({class:l,height:_,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var w=e.node().style.fill||"black",T=m.select("g");T.attr({fill:w,stroke:w});var b=T.node().getBoundingClientRect(),A=b.width,C=b.height;(A>g||C>_)&&(m.style("overflow","hidden"),b=m.node().getBoundingClientRect(),A=b.width,C=b.height);var k=+e.attr("x"),q=+e.attr("y"),D=u||e.node().getBoundingClientRect().height,R=-D/4;if(l[0]==="y")y.attr({transform:"rotate("+[-90,k,q]+")"+eY(-A/2,R-C/2)});else if(l[0]==="l")q=R-C/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)k=0,q=R;else{var z=e.attr("text-anchor");k=k-A*(z==="middle"?.5:z==="end"?1:0),q=q+R-C/2}m.attr({x:k,y:q}),t&&t.call(e,y),s(y)})})):o(),e};var aY=/(<|<|<)/g,nY=/(>|>|>)/g;function iY(e){return e.replace(aY,"\\lt ").replace(nY,"\\gt ")}var V6=[["$","$"],["\\(","\\)"]];function lY(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){Yi.warn("No MathJax version:",MathJax.version);return}var n,i,l,o,s=function(){return i=Yi.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:V6},displayAlign:"left"})},u=function(){i=Yi.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=V6},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},v=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var w="math-output-"+Yi.randstr({},64);o=It.select("body").append("div").attr({id:w}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(iY(e));var T=o.node();return a===2?MathJax.Hub.Typeset(T):MathJax.typeset([T])},d=function(){var w=o.select(a===2?".MathJax_SVG":".MathJax"),T=!w.empty()&&o.select("svg").node();if(!T)Yi.log("There was an error in the tex syntax.",e),t();else{var b=T.getBoundingClientRect(),A;a===2?A=It.select("body").select("#MathJax_SVG_glyphs"):A=w.select("defs"),t(w,A,b)}o.remove()},m=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},y=function(){n!=="svg"&&(MathJax.config.startup.output=n)},g=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(i)},_=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,h,d,m,g):a===3&&(u(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),y(),_()}))}var X6={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},oY={sub:"0.3em",sup:"-0.6em"},sY={sub:"-0.21em",sup:"0.42em"},G6="\u200B",W6=["http:","https:","mailto:","",void 0,":"],J6=wn.NEWLINES=/(\r\n?|\n)/g,Op=/(<[^<>]*>)/,Bp=/<(\/?)([^ >]*)(\s+(.*))?>/i,uY=//i;wn.BR_TAG_ALL=//gi;var K6=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Q6=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,$6=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,fY=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function co(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&jv(a)}var cY=/(^|;)\s*color:/;wn.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,l=e.split(Op),o=[],s="",u=0,f=0;fi?o.push(v.substr(0,y-i)+n):o.push(v.substr(0,y));break}s=""}}return o.join("")};var vY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},hY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function jv(e){return e.replace(hY,function(r,t){var a;return t.charAt(0)==="#"?a=dY(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=vY[t],a||r})}wn.convertEntities=jv;function dY(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function pY(e,r){r=r.replace(J6," ");var t=!1,a=[],n,i=-1;function l(){i++;var C=document.createElementNS(Ip.svg,"tspan");It.select(C).attr({class:"line",dy:i*rY+"em"}),e.appendChild(C),n=C;var k=a;if(a=[{node:C}],k.length>1)for(var q=1;q.",r);return}var k=a.pop();C!==k.type&&Yi.log("Start tag <"+k.type+"> doesnt match end tag <"+C+">. Pretending it did match.",r),n=a[a.length-1].node}var f=uY.test(r);f?l():(n=e,a=[{node:e}]);for(var v=r.split(Op),h=0;h{"use strict";var mY=Ir(),r0=bn(),sf=Hr(),e0=Ie(),e7=Er(),yY=$l().isValid;function gY(e,r,t){var a=r?e0.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(e0.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function l7(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var s7=ip(),xY=s7.FORMAT_LINK,_Y=s7.DATE_FORMAT_LINK;function wY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Yp:u7)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Yp(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+xY+"."].join(" ")}function u7(e,r){return Yp(e,r)+[" And for dates see: "+_Y+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}f7.exports={axisHoverFormat:wY,descriptionOnlyNumbers:Yp,descriptionWithDates:u7}});var Jn=Z((moe,S7)=>{"use strict";var c7=ma(),Cs=hi(),k7=mi().dash,Vp=Gt().extendFlat,v7=ct().templatedArray,poe=yi().templateFormatStringDescription,h7=t0().descriptionWithDates,TY=Vt().ONEDAY,bi=ya(),MY=bi.HOUR_PATTERN,AY=bi.WEEKDAY_PATTERN,Up={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},kY=Vp({},Up,{values:Up.values.slice().concat(["sync"])});function d7(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var p7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},m7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},y7={valType:"data_array",editType:"ticks"},g7={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function b7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function x7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var _7={valType:"color",dflt:Cs.defaultLine,editType:"ticks"},w7={valType:"color",dflt:Cs.lightLine,editType:"ticks"};function T7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var M7=Vp({},k7,{editType:"ticks"}),A7={valType:"boolean",editType:"ticks"};S7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Cs.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:c7({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[bi.idRegex.x.toString(),bi.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[bi.idRegex.x.toString(),bi.idRegex.y.toString()],editType:"calc"},rangebreaks:v7("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[AY,MY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:TY},editType:"calc"}),tickmode:kY,nticks:d7(),tick0:p7,dtick:m7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:y7,ticktext:{valType:"data_array",editType:"ticks"},ticks:g7,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:b7(),tickwidth:x7(),tickcolor:_7,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Vp({},k7,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:c7({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:h7("tick label")},tickformatstops:v7("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:h7("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Cs.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:A7,gridcolor:w7,gridwidth:T7(),griddash:M7,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Cs.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Cs.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",bi.idRegex.x.toString(),bi.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",bi.idRegex.x.toString(),bi.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Up,nticks:d7("minor"),tick0:p7,dtick:m7,tickvals:y7,ticks:g7,ticklen:b7("minor"),tickwidth:x7("minor"),tickcolor:_7,gridcolor:w7,gridwidth:T7("minor"),griddash:M7,showgrid:A7,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var a0=Z((yoe,q7)=>{"use strict";var ht=Jn(),C7=ma(),L7=Gt().extendFlat,SY=pi().overrideAll;q7.exports=SY({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:ht.linecolor,outlinewidth:ht.linewidth,bordercolor:ht.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:ht.minor.tickmode,nticks:ht.nticks,tick0:ht.tick0,dtick:ht.dtick,tickvals:ht.tickvals,ticktext:ht.ticktext,ticks:L7({},ht.ticks,{dflt:""}),ticklabeloverflow:L7({},ht.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:ht.ticklen,tickwidth:ht.tickwidth,tickcolor:ht.tickcolor,ticklabelstep:ht.ticklabelstep,showticklabels:ht.showticklabels,labelalias:ht.labelalias,tickfont:C7({}),tickangle:ht.tickangle,tickformat:ht.tickformat,tickformatstops:ht.tickformatstops,tickprefix:ht.tickprefix,showtickprefix:ht.showtickprefix,ticksuffix:ht.ticksuffix,showticksuffix:ht.showticksuffix,separatethousands:ht.separatethousands,exponentformat:ht.exponentformat,minexponent:ht.minexponent,showexponent:ht.showexponent,title:{text:{valType:"string"},font:C7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var uf=Z((boe,E7)=>{"use strict";var CY=a0(),LY=cs().counter,qY=hp(),D7=$l().scales,goe=qY(D7);function n0(e){return"`"+e+"`"}E7.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?D7[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[a],v="in "+n0(u+f));var h=n?" Has an effect only if "+v+" is set to a numerical array.":"",d=a+"auto",m=a+"min",y=a+"max",g=a+"mid",_=n0(u+d),w=n0(u+m),T=n0(u+y),b=w+" and "+T,A={};A[m]=A[y]=void 0;var C={};C[d]=!1;var k={};return f==="color"&&(k.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(k.color.anim=!0)),k[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},k[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:C},k[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:C},k[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},k.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},k.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},k.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(k.showscale={valType:"boolean",dflt:l,editType:"calc"},k.colorbar=CY),t.noColorAxis||(k.coloraxis={valType:"subplotid",regex:LY("coloraxis"),dflt:null,editType:"calc"}),k}});var Wp=Z((xoe,P7)=>{"use strict";var DY=Gt().extendFlat,EY=uf(),Gp=$l().scales;P7.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Gp.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Gp.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Gp.RdBu,editType:"calc"}},coloraxis:DY({_isSubplotObj:!0,editType:"calc"},EY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Zp=Z((_oe,R7)=>{"use strict";var PY=Ie();R7.exports=function(r){return PY.isPlainObject(r.colorbar)}});var Kp=Z(Jp=>{"use strict";var Xp=Hr(),z7=Ie(),N7=Vt(),RY=N7.ONEDAY,zY=N7.ONEWEEK;Jp.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?RY:1;if(!e)return i;if(Xp(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var l=e.charAt(0),o=e.substr(1);return o=Xp(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};Jp.tick0=function(e,r,t,a){if(r==="date")return z7.cleanDate(e,z7.dateTick0(t,a%zY===0?1:0));if(!(a==="D1"||a==="D2"))return Xp(e)?Number(e):0}});var Qp=Z((Toe,I7)=>{"use strict";var F7=Kp(),NY=Ie().isArrayOrTypedArray,FY=nn().isTypedArraySpec,IY=nn().decodeTypedArraySpec;I7.exports=function(r,t,a,n,i){i||(i={});var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(w){var T=o[w];return FY(T)&&(T=IY(T)),T!==void 0?T:(s._template||{})[w]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=NY(d)?"array":h?"linear":"auto",y=a(u+"tickmode",m);if(y==="auto"||y==="sync")a(u+"nticks");else if(y==="linear"){var g=s.dtick=F7.dtick(h,n);s.tick0=F7.tick0(v,n,t.calendar,g)}else if(n!=="multicategory"){var _=a(u+"tickvals");_===void 0?s.tickmode="auto":l||a("ticktext")}}});var jp=Z((Moe,O7)=>{"use strict";var $p=Ie(),H7=Jn();O7.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?H7.minor:H7,u=i?"minor.":"",f=$p.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=$p.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),h=$p.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),d=a(u+"ticks",!i&&n.outerTicks||f||v||h?"outside":"");d||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var em=Z((Aoe,B7)=>{"use strict";B7.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var Kn=Z((koe,Y7)=>{"use strict";var i0=Ie(),HY=ct();Y7.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=i0.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=HY.arrayTemplater(t,n,i),f,v;for(f=0;f{"use strict";var rm=Ie(),OY=Er().contrast,U7=Jn(),BY=em(),YY=Kn();V7.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");rm.isPlainObject(l)||delete t.labelalias;var o=BY(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,v=t.ticklabelposition||"",h=v.indexOf("inside")!==-1?OY(i.bgColor):f&&f!==U7.color.dflt?f:u.color;if(rm.coerceFont(a,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var m=a("tickformat");YY(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:UY}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function UY(e,r){function t(n,i){return rm.coerce(e,r,U7.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var am=Z((Coe,G7)=>{"use strict";var VY=em();G7.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=VY(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var nm=Z((Loe,W7)=>{"use strict";var ml=Ie(),GY=ct(),WY=Qp(),ZY=jp(),XY=tm(),JY=am(),KY=a0();W7.exports=function(r,t,a){var n=GY.newContainer(t,"colorbar"),i=r.colorbar||{};function l(z,F){return ml.coerce(i,n,KY,z,F)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),v=f==="v",h=l("thicknessmode");l("thickness",h==="fraction"?30/(v?s:u):30);var d=l("lenmode");l("len",d==="fraction"?1:v?u:s);var m=l("yref"),y=l("xref"),g=m==="paper",_=y==="paper",w,T,b,A="left";v?(b="middle",A=_?"left":"right",w=_?1.02:1,T=.5):(b=g?"bottom":"top",A="center",w=.5,T=g?1.02:1),ml.coerce(i,n,{x:{valType:"number",min:_?-2:0,max:_?3:1,dflt:w}},"x"),ml.coerce(i,n,{y:{valType:"number",min:g?-2:0,max:g?3:1,dflt:T}},"y"),l("xanchor",A),l("xpad"),l("yanchor",b),l("ypad"),ml.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var C=ml.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",C.indexOf("inside")!==-1?"hide past domain":"hide past div"),WY(i,n,l,"linear");var k=a.font,q={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};C.indexOf("inside")!==-1&&(q.bgColor="black"),JY(i,n,l,"linear",q),XY(i,n,l,"linear",q),ZY(i,n,l,"linear",q),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:k,R=ml.extendFlat({},k,{family:D.family,size:ml.bigFont(D.size)});ml.coerceFont(l,"title.font",R),l("title.side",v?"top":"right")}});var Ls=Z((qoe,J7)=>{"use strict";var Z7=Hr(),lm=Ie(),QY=Zp(),$Y=nm(),X7=$l().isValid,jY=br().traceIs;function im(e,r){var t=r.slice(0,r.length-1);return r?lm.nestedProperty(e,t).get()||{}:e}J7.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=im(r,l),f=im(t,l),v=im(t._template||{},l)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},m=n(l+"coloraxis");if(m){var y=jY(t,"contour")&&lm.nestedProperty(t,"contours.coloring").get()||"heatmap",g=d[m];g?(g[2].push(h),g[0]!==y&&(g[0]=!1,lm.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[y,t,[h]];return}}var _=u[o+"min"],w=u[o+"max"],T=Z7(_)&&Z7(w)&&_{"use strict";var K7=Ie(),eU=ct(),Q7=Wp(),rU=Ls();$7.exports=function(r,t){function a(v,h){return K7.coerce(r,t,Q7,v,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(v,h){return K7.coerce(i,l,Q7.coloraxis,v,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=eU.newContainer(t,s,"coloraxis"),l._name=s,rU(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var tU=Ie(),aU=Tn().hasColorscale,nU=Tn().extractOpts;e9.exports=function(r,t){function a(f,v){var h=f["_"+v];h!==void 0&&(f[v]=h)}function n(f,v){var h=v.container?tU.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=nU(h),m=d.auto;(m||d.min===void 0)&&a(h,v.min),(m||d.max===void 0)&&a(h,v.max),d.autocolorscale&&a(h,"colorscale")}}for(var i=0;i{"use strict";var t9=Hr(),om=Ie(),iU=Tn().extractOpts;a9.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?om.nestedProperty(t,l).get():t,s=iU(o),u=s.auto!==!1,f=s.min,v=s.max,h=s.mid,d=function(){return om.aggNums(Math.min,null,i)},m=function(){return om.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(o._colorAx&&t9(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(o._colorAx&&t9(v)?v=Math.max(v,m()):v=m()),u&&h!==void 0&&(v-h>h-f?f=h-(v-h):v-h=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var sm=Z((Roe,n9)=>{"use strict";var o0=$l(),qs=Tn();n9.exports={moduleType:"component",name:"colorscale",attributes:uf(),layoutAttributes:Wp(),supplyLayoutDefaults:j7(),handleDefaults:Ls(),crossTraceDefaults:r9(),calc:l0(),scales:o0.scales,defaultScale:o0.defaultScale,getScale:o0.get,isValidScale:o0.isValid,hasColorscale:qs.hasColorscale,extractOpts:qs.extractOpts,extractScale:qs.extractScale,flipScale:qs.flipScale,makeColorScaleFunc:qs.makeColorScaleFunc,makeColorScaleFuncFromTrace:qs.makeColorScaleFuncFromTrace}});var on=Z((zoe,l9)=>{"use strict";var i9=Ie(),lU=nn().isTypedArraySpec;l9.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return i9.isPlainObject(r)&&(i9.isArrayOrTypedArray(r.size)||lU(r.size))}}});var s9=Z((Noe,o9)=>{"use strict";var oU=Hr();o9.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return oU(s)&&s>0?Math.max(s,i):0}}});var xi=Z(Ma=>{"use strict";var u9=Ie();Ma.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ma.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{v9.exports=vU;var um={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},cU=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function vU(e){var r=[];return e.replace(cU,function(t,a,n){var i=a.toLowerCase();for(n=dU(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==um[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var pU=fm(),Ze=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Ar="M0,0Z",h9=Math.sqrt(2),yl=Math.sqrt(3),cm=Math.PI,vm=Math.cos,hm=Math.sin;g9.exports={circle:{n:0,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Sr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.4,2),n=Ze(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.8/h9,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Sr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2/yl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2/yl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2/yl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2/yl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.951,2),n=Ze(e*.588,2),i=Ze(-e,2),l=Ze(e*-.309,2),o=Ze(e*.809,2);return Sr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e/2,2),i=Ze(e*yl/2,2);return Sr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e/2,2),i=Ze(e*yl/2,2);return Sr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.924,2),n=Ze(e*.383,2);return Sr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(kr(r))return Ar;var a=e*1.4,n=Ze(a*.225,2),i=Ze(a*.951,2),l=Ze(a*.363,2),o=Ze(a*.588,2),s=Ze(-a,2),u=Ze(a*-.309,2),f=Ze(a*.118,2),v=Ze(a*.809,2),h=Ze(a*.382,2);return Sr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+v+"L0,"+h+"L-"+o+","+v+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.66,2),n=Ze(e*.38,2),i=Ze(e*.76,2);return Sr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*yl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*yl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.1,2),n=Ze(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2),n=Ze(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.7,2),n=Ze(e*1.4,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2),n=Ze(e*.7,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e/h9,2);return Sr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.3,2),n=Ze(e*.65,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*.85,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e/2,2),n=Ze(e,2);return Sr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2);return Sr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(kr(r))return Ar;var a=cm/2.5,n=2*e*vm(a),i=2*e*hm(a);return Sr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(kr(r))return Ar;var a=cm/4,n=2*e*vm(a),i=2*e*hm(a);return Sr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function kr(e){return e===null}var d9,p9,m9,y9;function Sr(e,r,t){if((!e||e%360===0)&&!r)return t;if(m9===e&&y9===r&&d9===t)return p9;m9=e,y9=r,d9=t;function a(g,_){var w=vm(g),T=hm(g),b=_[0],A=_[1]+(r||0);return[b*w-A*T,b*T+A*w]}for(var n=e/180*cm,i=0,l=0,o=pU(t),s="",u=0;u{"use strict";var jt=Ir(),tt=Ie(),mU=tt.numberFormat,mo=Hr(),bm=bn(),u0=br(),ga=Er(),yU=sm(),cf=tt.strTranslate,f0=Ta(),gU=fo(),bU=Pa(),xU=bU.LINE_SPACING,L9=_v().DESELECTDIM,_U=on(),wU=s9(),TU=xi().appendArrayPointValue,er=H9.exports={};er.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(ga.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",dm(AU(f))),s&&e.style("text-shadow",s==="auto"?f0.makeTextShadow(ga.contrast(i)):dm(s)),u&&e.style("text-decoration-line",dm(kU(u)))};function dm(e){return e==="none"?void 0:e}var MU={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function AU(e){return MU[e]}function kU(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}er.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};er.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};er.setRect=function(e,r,t,a,n){e.call(er.setPosition,r,t).call(er.setSize,a,n)};er.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(mo(n)&&mo(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",cf(n,i));else return!1;return!0};er.translatePoints=function(e,r,t){e.each(function(a){var n=jt.select(this);er.translatePoint(a,n,r,t)})};er.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};er.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=u0.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){er.hideOutsideRangePoint(u,jt.select(this),t,a,l,o)})})}};er.crispRound=function(e,r,t){return!r||!mo(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};er.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";ga.stroke(r,a||i.color),er.dashLine(r,o,l)};er.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";jt.select(this).call(ga.stroke,t||i.color).call(er.dashLine,o,l)})};er.dashLine=function(e,r,t){t=+t||0,r=er.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};er.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function q9(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=er.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,v=l(n.size,0,8),h=l(n.solidity,0,.3),d=r.uid;er.pattern(e,"point",t,d,o,v,h,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var g,_;m==="horizontal"?(g={x:i.start,y:0},_={x:i.stop,y:0}):m==="vertical"&&(g={x:0,y:i.start},_={x:0,y:i.stop}),g.x=r._xA.c2p(g.x===void 0?r._extremes.x.min[0].val:g.x,!0),g.y=r._yA.c2p(g.y===void 0?r._extremes.y.min[0].val:g.y,!0),_.x=r._xA.c2p(_.x===void 0?r._extremes.x.max[0].val:_.x,!0),_.y=r._yA.c2p(_.y===void 0?r._extremes.y.max[0].val:_.y,!0),e.call(P9,t,y,"linear",i.colorscale,"fill",g,_,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(er.gradient,t,y,m,i.colorscale,"fill")}else r.fillcolor&&e.call(ga.fill,r.fillcolor)}er.singleFillStyle=function(e,r){var t=jt.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};q9(e,n,r,!1)};er.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=jt.select(this);a[0].trace&&q9(n,a[0].trace,r,t)})};var x9=b9();er.symbolNames=[];er.symbolFuncs=[];er.symbolBackOffs=[];er.symbolNeedLines={};er.symbolNoDot={};er.symbolNoFill={};er.symbolList=[];Object.keys(x9).forEach(function(e){var r=x9[e],t=r.n;er.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),er.symbolNames[t]=e,er.symbolFuncs[t]=r.f,er.symbolBackOffs[t]=r.backoff||0,r.needLine&&(er.symbolNeedLines[t]=!0),r.noDot?er.symbolNoDot[t]=!0:er.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(er.symbolNoFill[t]=!0)});var SU=er.symbolNames.length,CU="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";er.symbolNumber=function(e){if(mo(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=er.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=SU||e>=400?0:Math.floor(Math.max(e,0))};function D9(e,r,t,a){var n=e%100;return er.symbolFuncs[n](r,t,a)+(e>=200?CU:"")}var _9=mU("~f"),E9={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};er.gradient=function(e,r,t,a,n,i){var l=E9[a];return P9(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function P9(e,r,t,a,n,i,l,o,s,u){var f=n.length,v;a==="linear"?v={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(v={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=er.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=wm(e,t),v=_m(e,t);r.attr("d",D9(u,s,f,v))}var h=!1,d,m,y;if(e.so)y=o.outlierwidth,m=o.outliercolor,d=l.outliercolor;else{var g=(o||{}).width;y=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=a.lineScale(e.mlc):tt.isArrayOrTypedArray(o.color)?m=ga.defaultLine:m=o.color,tt.isArrayOrTypedArray(l.color)&&(d=ga.defaultLine,h=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}if(e.om)r.call(ga.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var _=l.gradient,w=e.mgt;w?h=!0:w=_&&_.type,tt.isArrayOrTypedArray(w)&&(w=w[0],E9[w]||(w=0));var T=l.pattern,b=er.getPatternAttr,A=T&&(b(T.shape,e.i,"")||b(T.path,e.i,""));if(w&&w!=="none"){var C=e.mgc;C?h=!0:C=_.color;var k=t.uid;h&&(k+="-"+e.i),er.gradient(r,n,k,w,[[0,C],[1,d]],"fill")}else if(A){var q=!1,D=T.fgcolor;!D&&i&&i.color&&(D=i.color,q=!0);var R=b(D,e.i,i&&i.color||null),z=b(T.bgcolor,e.i,null),F=T.fgopacity,I=b(T.size,e.i,8),O=b(T.solidity,e.i,.3);q=q||e.mcc||tt.isArrayOrTypedArray(T.shape)||tt.isArrayOrTypedArray(T.path)||tt.isArrayOrTypedArray(T.bgcolor)||tt.isArrayOrTypedArray(T.fgcolor)||tt.isArrayOrTypedArray(T.size)||tt.isArrayOrTypedArray(T.solidity);var J=t.uid;q&&(J+="-"+e.i),er.pattern(r,"point",n,J,A,I,O,e.mcc,T.fillmode,z,R,F)}else tt.isArrayOrTypedArray(d)?ga.fill(r,d[e.i]):ga.fill(r,d);y&&ga.stroke(r,m)}};er.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=er.tryColorscale(t,""),r.lineScale=er.tryColorscale(t,"line"),u0.traceIs(e,"symbols")&&(r.ms2mrc=_U.isBubble(e)?wU(e):function(){return(t.size||6)/2}),e.selectedpoints&&tt.extendFlat(r,er.makeSelectedPointStyleFns(e)),r};er.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,v=u!==void 0;(tt.isArrayOrTypedArray(o)||f||v)&&(r.selectedOpacityFn=function(b){var A=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:A:v?u:L9*A});var h=n.color,d=i.color,m=l.color;(d||m)&&(r.selectedColorFn=function(b){var A=b.mcc||h;return b.selected?d||A:m||A});var y=n.size,g=i.size,_=l.size,w=g!==void 0,T=_!==void 0;return u0.traceIs(e,"symbols")&&(w||T)&&(r.selectedSizeFn=function(b){var A=b.mrc||y/2;return b.selected?w?g/2:A:T?_/2:A}),r};er.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var v=f.tc||o;return f.selected?s||v:u||(s?v:ga.addOpacity(v,L9))},r};er.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){ga.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",D9(er.symbolNumber(o),s,wm(l,r),_m(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=jt.select(this),o=0;o0?t:0}er.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=er.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=jt.select(this),u=i?tt.extractOption(o,r,"txt","texttemplate"):tt.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,v=f?f(o,r,l):{},h={};TU(h,r,o.i);var d=r._meta||{};u=tt.texttemplateString(u,v,l._d3locale,h,o,d)}var m=o.tp||r.textposition,y=z9(o,r),g=a?a(o):o.tc||r.textfont.color;s.call(er.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:y,color:g}).text(u).call(f0.convertToTspans,t).call(R9,m,y,o.mrc)})}};er.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedTextStyleFns(r);e.each(function(a){var n=jt.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=z9(a,r);ga.fill(n,i);var s=u0.traceIs(r,"bar-like");R9(n,l,o,a.mrc2||a.mrc,s)})}};var w9=.5;er.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(A<=v&&A>=u||A>=v&&A<=u)&&(e=[b,A])}return e}er.applyBackoff=I9;er.makeTester=function(){var e=tt.ensureSingleById(jt.select("body"),"svg","js-plotly-tester",function(t){t.attr(gU.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=tt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});er.tester=e,er.testref=r};er.savedBBoxes={};var mm=0,DU=1e4;er.bBox=function(e,r,t){t||(t=T9(e));var a;if(t){if(a=er.savedBBoxes[t],a)return tt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=T9(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=er.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=er.savedBBoxes[t],a)return tt.extendFlat({},a)}}var u,f;r?u=e:(f=er.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),jt.select(u).attr("transform",null).call(f0.positionText,0,0);var v=u.getBoundingClientRect(),h=er.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:v.height,width:v.width,left:v.left-h.left,top:v.top-h.top,right:v.right-h.left,bottom:v.bottom-h.top};return mm>=DU&&(er.savedBBoxes={},mm=0),t&&(er.savedBBoxes[t]=d),mm++,tt.extendFlat({},d)};function T9(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}er.setClipUrl=function(e,r,t){e.attr("clip-path",xm(r,t))};function xm(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}er.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};er.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=cf(r,t),l=l.trim(),e[i]("transform",l),l};er.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};er.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var EU=/\s*sc.*/;er.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(EU,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var PU=/translate\([^)]*\)\s*$/;er.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=jt.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(PU);r===1&&t===1?a=[]:a=[cf(l,o),"scale("+r+","+t+")",cf(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function _m(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}er.getMarkerStandoff=_m;var ff=Math.atan2,vo=Math.cos,Es=Math.sin;function M9(e,r){var t=r[0],a=r[1];return[t*vo(e)-a*Es(e),t*Es(e)+a*vo(e)]}var A9,k9,S9,C9,ym,gm;function wm(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||tt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=ff(h[1]-n,h[0]-a),m=ff(v[1]-n,v[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var g=u/180*Math.PI,_=f/180*Math.PI,w=A9/180*Math.PI,T=k9/180*Math.PI,b=w-g,A=vo(T)*Es(b),C=Es(T)*vo(_)-vo(T)*Es(_)*vo(b);y=-ff(A,C)-Math.PI,A9=u,k9=f}var k=M9(d,[vo(y),0]),q=M9(m,[Es(y),0]);t=ff(k[1]+q[1],k[0]+q[0])/Math.PI*180,i==="previous"&&!(gm===r.uid&&e.i===ym+1)&&(t=null)}if(i==="previous"&&!r._geo)if(gm===r.uid&&e.i===ym+1&&mo(a)&&mo(n)){var D=a-S9,R=n-C9,z=r.line&&r.line.shape||"",F=z.slice(z.length-1);F==="h"&&(R=0),F==="v"&&(D=0),t+=ff(R,D)/Math.PI*180+90}else t=null}return S9=a,C9=n,ym=e.i,gm=r.uid,t}er.getMarkerAngle=wm});var vf=Z((Boe,U9)=>{"use strict";var Ps=Ir(),RU=Hr(),zU=Ft(),Tm=br(),yo=Ie(),O9=yo.strTranslate,c0=at(),v0=Er(),Rs=Ta(),B9=_v(),NU=Pa().OPPOSITE_SIDE,Y9=/ [XY][0-9]* /,Mm=1.6,Am=1.6;function FU(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,v=t.containerGroup,h=1,d=n.title,m=(d&&d.text?d.text:"").trim(),y=!1,g=d&&d.font?d.font:{},_=g.family,w=g.size,T=g.color,b=g.weight,A=g.style,C=g.variant,k=g.textcase,q=g.lineposition,D=g.shadow,R=t.subtitlePropName,z=!!R,F=t.subtitlePlaceholder,I=(n.title||{}).subtitle||{text:"",font:{}},O=(I.text||"").trim(),J=!1,X=1,U=I.font,H=U.family,V=U.size,K=U.color,Q=U.weight,ie=U.style,pe=U.variant,me=U.textcase,Ae=U.lineposition,re=U.shadow,Le;i==="title.text"?Le="titleText":i.indexOf("axis")!==-1?Le="axisTitleText":i.indexOf("colorbar")!==-1&&(Le="colorbarTitleText");var fe=e._context.edits[Le];function ke(Ge,Ue){return Ge===void 0||Ue===void 0?!1:Ge.replace(Y9," % ")===Ue.replace(Y9," % ")}m===""?h=0:ke(m,l)&&(fe||(m=""),h=.2,y=!0),z&&(O===""?X=0:ke(O,F)&&(fe||(O=""),X=.2,J=!0)),t._meta?m=yo.templateString(m,t._meta):a._meta&&(m=yo.templateString(m,a._meta));var se=m||O||fe,be;v||(v=yo.ensureSingle(a._infolayer,"g","g-"+r),be=a._hColorbarMoveTitle);var Y=v.selectAll("text."+r).data(se?[0]:[]);Y.enter().append("text"),Y.text(m).attr("class",r),Y.exit().remove();var ee=null,B=r+"-subtitle",ye=O||fe;if(z&&(ee=v.selectAll("text."+B).data(ye?[0]:[]),ee.enter().append("text"),ee.text(O).attr("class",B),ee.exit().remove()),!se)return v;function Me(Ge,Ue){yo.syncOrAsync([ge,Re],{title:Ge,subtitle:Ue})}function ge(Ge){var Ue=Ge.title,De=Ge.subtitle,He;!f&&be&&(f={}),f?(He="",f.rotate&&(He+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||be)&&(He+=O9(0,(f.offset||0)-(be||0)))):He=null,Ue.attr("transform",He);function Oe(le){if(le){var Se=Ps.select(le.node().parentNode).select("."+B);if(!Se.empty()){var Fe=le.node().getBBox();if(Fe.height){var We=Fe.y+Fe.height+Mm*V;Se.attr("y",We)}}}}if(Ue.style("opacity",h*v0.opacity(T)).call(c0.font,{color:v0.rgb(T),size:Ps.round(w,2),family:_,weight:b,style:A,variant:C,textcase:k,shadow:D,lineposition:q}).attr(u).call(Rs.convertToTspans,e,Oe),De&&!De.empty()){var ne=v.select("."+r+"-math-group"),Te=Ue.node().getBBox(),Xe=ne.node()?ne.node().getBBox():void 0,cr=Xe?Xe.y+Xe.height+Mm*V:Te.y+Te.height+Am*V,fr=yo.extendFlat({},u,{y:cr});De.attr("transform",He),De.style("opacity",X*v0.opacity(K)).call(c0.font,{color:v0.rgb(K),size:Ps.round(V,2),family:H,weight:Q,style:ie,variant:pe,textcase:me,shadow:re,lineposition:Ae}).attr(fr).call(Rs.convertToTspans,e)}return zU.previousPromises(e)}function Re(Ge){var Ue=Ge.title,De=Ps.select(Ue.node().parentNode);if(s&&s.selection&&s.side&&m){De.attr("transform",null);var He=NU[s.side],Oe=s.side==="left"||s.side==="top"?-1:1,ne=RU(s.pad)?s.pad:2,Te=c0.bBox(De.node()),Xe={t:0,b:0,l:0,r:0},cr=e._fullLayout._reservedMargin;for(var fr in cr)for(var le in cr[fr]){var Se=cr[fr][le];Xe[le]=Math.max(Xe[le],Se)}var Fe={left:Xe.l,top:Xe.t,right:a.width-Xe.r,bottom:a.height-Xe.b},We=s.maxShift||Oe*(Fe[s.side]-Te[s.side]),Ve=0;if(We<0)Ve=We;else{var Je=s.offsetLeft||0,$e=s.offsetTop||0;Te.left-=Je,Te.right-=Je,Te.top-=$e,Te.bottom-=$e,s.selection.each(function(){var Ke=c0.bBox(this);yo.bBoxIntersect(Te,Ke,ne)&&(Ve=Math.max(Ve,Oe*(Ke[s.side]-Te[He])+ne))}),Ve=Math.min(We,Ve),n._titleScoot=Math.abs(Ve)}if(Ve>0||We<0){var vr={left:[-Ve,0],right:[Ve,0],top:[0,-Ve],bottom:[0,Ve]}[s.side];De.attr("transform",O9(vr[0],vr[1]))}}}Y.call(Me,ee);function Ne(Ge,Ue){Ge.text(Ue).on("mouseover.opacity",function(){Ps.select(this).transition().duration(B9.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Ps.select(this).transition().duration(B9.HIDE_PLACEHOLDER).style("opacity",0)})}if(fe&&(m?Y.on(".opacity",null):(Ne(Y,l),y=!0),Y.call(Rs.makeEditable,{gd:e}).on("edit",function(Ge){o!==void 0?Tm.call("_guiRestyle",e,i,Ge,o):Tm.call("_guiRelayout",e,i,Ge)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Ge){this.text(Ge||" ").call(Rs.positionText,u.x,u.y)}),z)){if(z&&!m){var Ee=Y.node().getBBox(),ze=Ee.y+Ee.height+Am*V;ee.attr("y",ze)}O?ee.on(".opacity",null):(Ne(ee,F),J=!0),ee.call(Rs.makeEditable,{gd:e}).on("edit",function(Ge){Tm.call("_guiRelayout",e,"title.subtitle.text",Ge)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Ge){this.text(Ge||" ").call(Rs.positionText,ee.attr("x"),ee.attr("y"))})}return Y.classed("js-placeholder",y),ee&&!ee.empty()&&ee.classed("js-placeholder",J),v}U9.exports={draw:FU,SUBTITLE_PADDING_EM:Am,SUBTITLE_PADDING_MATHJAX_EM:Mm}});var x0=Z((Yoe,X9)=>{"use strict";var IU=Ir(),HU=os().utcFormat,it=Ie(),OU=it.numberFormat,_i=Hr(),gl=it.cleanNumber,BU=it.ms2DateTime,V9=it.dateTime2ms,wi=it.ensureNumber,G9=it.isArrayOrTypedArray,bl=Vt(),h0=bl.FP_SAFE,Qn=bl.BADNUM,YU=bl.LOG_CLIP,UU=bl.ONEWEEK,d0=bl.ONEDAY,p0=bl.ONEHOUR,W9=bl.ONEMIN,Z9=bl.ONESEC,m0=Zt(),b0=ya(),y0=b0.HOUR_PATTERN,g0=b0.WEEKDAY_PATTERN;function hf(e){return Math.pow(10,e)}function km(e){return e!=null}X9.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,A){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&A&&r.range&&r.range.length===2){var C=r.range[0],k=r.range[1];return .5*(C+k-2*YU*Math.abs(C-k))}else return Qn}function l(b,A,C,k){if((k||{}).msUTC&&_i(b))return+b;var q=V9(b,C||r.calendar);if(q===Qn)if(_i(b)){b=+b;var D=Math.floor(it.mod(b+.05,1)*10),R=Math.round(b-D/10);q=V9(new Date(R))+D/10}else return Qn;return q}function o(b,A,C){return BU(b,A,C||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(km(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var A=r._categories.length-1;return r._categoriesMap[b]=A,A}return Qn}function f(b,A){for(var C=new Array(A),k=0;kr.range[1]&&(C=!C);for(var k=C?-1:1,q=k*b,D=0,R=0;RF)D=R+1;else{D=q<(z+F)/2?R:R+1;break}}var I=r._B[D]||0;return isFinite(I)?m(b,r._m2,I):0},_=function(b){var A=r._rangebreaks.length;if(!A)return y(b,r._m,r._b);for(var C=0,k=0;kr._rangebreaks[k].pmax&&(C=k+1);return y(b,r._m2,r._B[C])}}r.c2l=r.type==="log"?i:wi,r.l2c=r.type==="log"?hf:wi,r.l2p=g,r.p2l=_,r.c2p=r.type==="log"?function(b,A){return g(i(b,A))}:g,r.p2c=r.type==="log"?function(b){return hf(_(b))}:_,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=gl,r.c2d=r.c2r=r.l2d=r.l2r=wi,r.d2p=r.r2p=function(b){return r.l2p(gl(b))},r.p2d=r.p2r=_,r.cleanPos=wi):r.type==="log"?(r.d2r=r.d2l=function(b,A){return i(gl(b),A)},r.r2d=r.r2c=function(b){return hf(gl(b))},r.d2c=r.r2l=gl,r.c2d=r.l2r=wi,r.c2r=i,r.l2d=hf,r.d2p=function(b,A){return r.l2p(r.d2r(b,A))},r.p2d=function(b){return hf(_(b))},r.r2p=function(b){return r.l2p(gl(b))},r.p2r=_,r.cleanPos=wi):r.type==="date"?(r.d2r=r.r2d=it.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(b,A,C){return r.l2p(l(b,0,C))},r.p2d=r.p2r=function(b,A,C){return o(_(b),A,C)},r.cleanPos=function(b){return it.cleanDate(b,Qn,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var A=d(b);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=wi,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:wi(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var A=h(b);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=wi,r.r2l=h,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:wi(b)},r.setupMultiCategory=function(b){var A=r._traceIndices,C,k,q=r._matchGroup;if(q&&r._categories.length===0){for(var D in q)if(D!==a){var R=t[m0.id2name(D)];A=A.concat(R._traceIndices)}}var z=[[0,{}],[0,{}]],F=[];for(C=0;CR[1]&&(k[D?0:1]=C),k[0]===k[1]){var z=r.l2r(A),F=r.l2r(C);if(A!==void 0){var I=z+1;C!==void 0&&(I=Math.min(I,F)),k[D?1:0]=I}if(C!==void 0){var O=F+1;A!==void 0&&(O=Math.max(O,z)),k[D?0:1]=O}}}},r.cleanRange=function(b,A){r._cleanRange(b,A),r.limitRange(b)},r._cleanRange=function(b,A){A||(A={}),b||(b="range");var C=it.nestedProperty(r,b).get(),k,q;if(r.type==="date"?q=it.dfltRange(r.calendar):n==="y"?q=b0.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=A.dfltRange||b0.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!C||C.length!==2){it.nestedProperty(r,b).set(q);return}var D=C[0]===null,R=C[1]===null;for(r.type==="date"&&!r.autorange&&(C[0]=it.cleanDate(C[0],Qn,r.calendar),C[1]=it.cleanDate(C[1],Qn,r.calendar)),k=0;k<2;k++)if(r.type==="date"){if(!it.isDateTime(C[k],r.calendar)){r[b]=q;break}if(r.r2l(C[0])===r.r2l(C[1])){var z=it.constrain(r.r2l(C[0]),it.MIN_MS+1e3,it.MAX_MS-1e3);C[0]=r.l2r(z-1e3),C[1]=r.l2r(z+1e3);break}}else{if(!_i(C[k]))if(!(D||R)&&_i(C[1-k]))C[k]=C[1-k]*(k?10:.1);else{r[b]=q;break}if(C[k]<-h0?C[k]=-h0:C[k]>h0&&(C[k]=h0),C[0]===C[1]){var F=Math.max(1,Math.abs(C[0]*1e-6));C[0]-=F,C[1]+=F}}},r.setScale=function(b){var A=t._size;if(r.overlaying){var C=m0.getFromId({_fullLayout:t},r.overlaying);r.domain=C.domain}var k=b&&r._r?"_r":"range",q=r.calendar;r.cleanRange(k);var D=r.r2l(r[k][0],q),R=r.r2l(r[k][1],q),z=n==="y";if(z?(r._offset=A.t+(1-r.domain[1])*A.h,r._length=A.h*(r.domain[1]-r.domain[0]),r._m=r._length/(D-R),r._b=-r._m*R):(r._offset=A.l+r.domain[0]*A.w,r._length=A.w*(r.domain[1]-r.domain[0]),r._m=r._length/(R-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var F,I;if(r._rangebreaks=r.locateBreaks(Math.min(D,R),Math.max(D,R)),r._rangebreaks.length){for(F=0;FR&&(O=!O),O&&r._rangebreaks.reverse();var J=O?-1:1;for(r._m2=J*r._length/(Math.abs(R-D)-r._lBreaks),r._B.push(-r._m2*(z?R:D)),F=0;Fq&&(q+=7,Dq&&(q+=24,D=k&&D=k&&b=re.min&&(iere.max&&(re.max=pe),me=!1)}me&&R.push({min:ie,max:pe})}};for(C=0;C{"use strict";var J9=Hr(),Sm=Ie(),VU=Vt().BADNUM,_0=Sm.isArrayOrTypedArray,GU=Sm.isDateTime,WU=Sm.cleanNumber,K9=Math.round;$9.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(_0(n)&&!n.length)return"-";if(!i&&QU(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function Q9(e){return Math.max(1,(e-1)/1e3)}function KU(e,r){for(var t=e.length,a=Q9(t),n=0,i=0,l={},o=0;on*2}function QU(e){return _0(e[0])&&_0(e[1])}});var df=Z((Voe,l8)=>{"use strict";var $U=Ir(),t8=Hr(),xl=Ie(),w0=Vt().FP_SAFE,jU=br(),eV=at(),a8=Zt(),rV=a8.getFromId,tV=a8.isLinked;l8.exports={applyAutorangeOptions:i8,getAutoRange:Lm,makePadFn:qm,doAutoRange:nV,findExtremes:iV,concatExtremes:Pm};function Lm(e,r){var t,a,n=[],i=e._fullLayout,l=qm(i,r,0),o=qm(i,r,1),s=Pm(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return xl.simpleMap(r.range,r.r2l);var v=u[0].val,h=f[0].val;for(t=1;t0&&(R=T-l(C)-o(k),R>b?z/R>A&&(q=C,D=k,A=z/R):z/T>A&&(q={val:C.val,nopad:1},D={val:k.val,nopad:1},A=z/T));function F(U,H){return Math.max(U,o(H))}if(v===h){var I=v-1,O=v+1;if(_)if(v===0)n=[0,1];else{var J=(v>0?f:u).reduce(F,0),X=v/(1-Math.min(.5,J/T));n=v>0?[0,X]:[X,0]}else w?n=[Math.max(0,I),Math.max(1,O)]:n=[I,O]}else _?(q.val>=0&&(q={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):w&&(q.val-A*l(q)<0&&(q={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),A=(D.val-q.val-j9(r,C.val,k.val))/(T-l(q)-o(D)),n=[q.val-A*l(q),D.val+A*o(D)];return n=i8(n,r),r.limitRange&&r.limitRange(),m&&n.reverse(),xl.simpleMap(n,r.l2r||Number)}function j9(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),C=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),k=b(t.vpadplus||t.vpad),q=b(t.vpadminus||t.vpad);if(!u){if(w=1/0,T=-1/0,s)for(v=0;v0&&(w=h),h>T&&h-w0&&(w=h),h>T&&h=z;v--)R(v);return{min:a,max:n,opts:t}}function Dm(e,r,t,a){n8(e,r,t,a,lV)}function Em(e,r,t,a){n8(e,r,t,a,oV)}function n8(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function r8(e){return t8(e)&&Math.abs(e)=r}function sV(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&T0(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&T0(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function uV(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&T0(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&T0(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function T0(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=sV(t,r),a=uV(a,r),[t,a]}});var dt=Z((Goe,L8)=>{"use strict";var Mn=Ir(),Ht=Hr(),zs=Ft(),mf=br(),gr=Ie(),Ns=gr.strTranslate,go=Ta(),fV=vf(),yf=Er(),sn=at(),cV=Jn(),o8=Kp(),ba=Vt(),vV=ba.ONEMAXYEAR,k0=ba.ONEAVGYEAR,S0=ba.ONEMINYEAR,hV=ba.ONEMAXQUARTER,Fm=ba.ONEAVGQUARTER,C0=ba.ONEMINQUARTER,dV=ba.ONEMAXMONTH,Fs=ba.ONEAVGMONTH,L0=ba.ONEMINMONTH,un=ba.ONEWEEK,Ra=ba.ONEDAY,_l=Ra/2,Mi=ba.ONEHOUR,gf=ba.ONEMIN,q0=ba.ONESEC,pV=ba.ONEMILLI,mV=ba.ONEMICROSEC,bo=ba.MINUS_SIGN,E0=ba.BADNUM,Im={K:"zeroline"},Hm={K:"gridline",L:"path"},Om={K:"minor-gridline",L:"path"},g8={K:"tick",L:"path"},s8={K:"tick",L:"text"},u8={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},P0=Pa(),pf=P0.MID_SHIFT,xo=P0.CAP_SHIFT,bf=P0.LINE_SPACING,yV=P0.OPPOSITE_SIDE,D0=3,Ye=L8.exports={};Ye.setConvert=x0();var gV=Cm(),Ui=Zt(),bV=Ui.idSort,xV=Ui.isLinked;Ye.id2name=Ui.id2name;Ye.name2id=Ui.name2id;Ye.cleanId=Ui.cleanId;Ye.list=Ui.list;Ye.listIds=Ui.listIds;Ye.getFromId=Ui.getFromId;Ye.getFromTrace=Ui.getFromTrace;var b8=df();Ye.getAutoRange=b8.getAutoRange;Ye.findExtremes=b8.findExtremes;var _V=1e-4;function Vm(e){var r=(e[1]-e[0])*_V;return[e[0]-r,e[1]+r]}Ye.coerceRef=function(e,r,t,a,n,i){var l=a.charAt(a.length-1),o=t._fullLayout._subplots[l+"axis"],s=a+"ref",u={};return n||(n=o[0]||(typeof i=="string"?i:i[0])),i||(i=n),o=o.concat(o.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:o.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},gr.coerce(e,r,u,s)};Ye.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Ye.coercePosition=function(e,r,t,a,n,i){var l,o,s=Ye.getRefType(a);if(s!=="range")l=gr.ensureNumber,o=t(n,i);else{var u=Ye.getFromId(r,a);i=u.fraction2r(i),o=t(n,i),l=u.cleanPos}e[n]=l(o)};Ye.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?gr.ensureNumber:Ye.getFromId(r,t).cleanPos;return a(e)};Ye.redrawComponents=function(e,r){r=r||Ye.listIds(e);var t=e._fullLayout;function a(n,i,l,o){for(var s=mf.getComponentMethod(n,i),u={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.list(e,"",!0),a=!1,n=0;nv*.3||u(a)||u(n))){var h=t.dtick/2;e+=e+hl){var o=Number(t.substr(1));i.exactYears>l&&o%12===0?e=Ye.tickIncrement(e,"M6","reverse")+Ra*1.5:i.exactMonths>l?e=Ye.tickIncrement(e,"M1","reverse")+Ra*15.5:e-=_l;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&Ht(r._tmin),n;if(a){var i=Ye.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=gr.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=gr.simpleMap(n,r.l2r),e._isMinor=!0,Ye.prepTicks(e,t),a){var o=Ht(r.dtick),s=Ht(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?Rm(u,f)?u===2*un&&f===2*Ra&&(e.dtick=un):u===2*un&&f===3*Ra?e.dtick=un:u===un&&!(r._input.minor||{}).nticks?e.dtick=Ra:v8(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Rm(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?Rm(u,f)||(e.dtick=v8(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function Rm(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function v8(e,r){return Math.abs(e/r-1)<.001}Ye.prepTicks=function(e,r){var t=gr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?gr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=gr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ye.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,l=a):(i=a,l=a);var o=e[i].value,s=e[l].value,u=Math.abs(s-o),f=t||u,v=0;f>=S0?u>=S0&&u<=vV?v=u:v=k0:t===Fm&&f>=C0?u>=C0&&u<=hV?v=u:v=Fm:f>=L0?u>=L0&&u<=dV?v=u:v=Fs:t===un&&f>=un?v=un:f>=Ra?v=Ra:t===_l&&f>=_l?v=_l:t===Mi&&f>=Mi&&(v=Mi);var h;v>=u&&(v=u,h=!0);var d=n+v;if(r.rangebreaks&&v>0){for(var m=84,y=0,g=0;gun&&(v=u)}(v>0||a===0)&&(e[a].periodX=n+v/2)}}Ye.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||gr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=gr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(T?0:1);b--){var A=!b;b?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var C=b?r:gr.extendFlat({},r,r.minor);if(A?Ye.prepMinorTicks(C,r,t):Ye.prepTicks(C,t),C.tickmode==="array"){b?(g=[],m=h8(r,!A)):(_=[],y=h8(r,!A));continue}if(C.tickmode==="sync"){g=[],m=SV(r);continue}var k=Vm(u),q=k[0],D=k[1],R=Ht(C.dtick),z=a==="log"&&!(R||C.dtick.charAt(0)==="L"),F=Ye.tickFirst(C,t);if(b){if(r._tmin=F,F=D:O<=D;O=Ye.tickIncrement(O,U,f,n)){if(b&&J++,C.rangebreaks&&!f){if(O=h)break}if(g.length>d||O===I)break;I=O;var H={value:O};b?(z&&O!==(O|0)&&(H.simpleLabel=!0),i>1&&J%i&&(H.skipLabel=!0),g.push(H)):(H.minor=!0,_.push(H))}}if(!_||_.length<2)s=!1;else{var V=(_[1].value-_[0].value)*(o?-1:1);$V(V,r.tickformat)||(s=!1)}if(!s)w=g;else{var K=g.concat(_);l&&g.length&&(K=K.slice(1)),K=K.sort(function(ze,Ge){return ze.value-Ge.value}).filter(function(ze,Ge,Ue){return Ge===0||ze.value!==Ue[Ge-1].value});var Q=K.map(function(ze,Ge){return ze.minor===void 0&&!ze.skipLabel?Ge:null}).filter(function(ze){return ze!==null});Q.forEach(function(ze){s.map(function(Ge){var Ue=ze+Ge;Ue>=0&&Ue-1;se--){if(g[se].drop){g.splice(se,1);continue}g[se].value=Nm(g[se].value,r);var B=r.c2p(g[se].value);(be?ee>B-Y:eeh||Deh&&(Ue.periodX=h),Den&&hk0)r/=k0,a=n(10),e.dtick="M"+12*Ti(r,a,M0);else if(i>Fs)r/=Fs,e.dtick="M"+Ti(r,1,d8);else if(i>Ra){if(e.dtick=Ti(r,Ra,e._hasDayOfWeekBreaks?[1,2,7,14]:CV),!t){var l=Ye.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=gr.dateTick0(e.calendar,2):e.tick0=gr.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>Mi?e.dtick=Ti(r,Mi,d8):i>gf?e.dtick=Ti(r,gf,p8):i>q0?e.dtick=Ti(r,q0,p8):(a=n(10),e.dtick=Ti(r,a,M0))}else if(e.type==="log"){e.tick0=0;var s=gr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Ti(r,a,M0)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):Xm(e)?(e.tick0=0,a=1,e.dtick=Ti(r,a,LV)):(e.tick0=0,a=n(10),e.dtick=Ti(r,a,M0));if(e.dtick===0&&(e.dtick=1),!Ht(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function T8(e){var r=e.dtick;if(e._tickexponent=0,!Ht(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=Ra&&n<=10||r>=Ra*15)e._tickround="d";else if(r>=gf&&n<=16||r>=Mi)e._tickround="M";else if(r>=q0&&n<=19||r>=gf)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(Ht(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Ht(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Is(e.exponentformat)&&e.exponentformat!=="SI extended"&&!Gm(s)||Is(e.exponentformat)&&e.exponentformat==="SI extended"&&!Wm(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ye.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(Ht(r))return gr.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.substr(1));if(i==="M")return gr.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?w8:_8,s=e+n*.01,u=gr.roundUp(gr.mod(s,1),o,t);return Math.floor(s)+Math.log(Mn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ye.tickFirst=function(e,r){var t=e.r2l||Number,a=gr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&_<=e._length?g:null};if(i&&gr.isArrayOrTypedArray(e.ticktext)){var v=gr.simpleMap(e.range,e.r2l),h=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(u=0;u"+o;else{var u=_f(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function DV(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=xf(Math.pow(10,l),e,n,a);else if(Ht(i)||s==="D"&&(e.minorloglabels==="complete"||gr.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(gr.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),v=f.split("e"),h=+v[1],d=Math.abs(h),m=e.exponentformat;m==="power"||Is(m)&&m!=="SI extended"&&Gm(h)||Is(m)&&m==="SI extended"&&Wm(h)?(r.text=v[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":bo)+d+""),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=v[0]+m+(h>0?"+":bo)+d:(r.text=xf(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,gr.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function EV(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function PV(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function RV(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=xf(r.x,e,n,a)}function zV(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=NV(i);if(l[1]>=100)r.text=xf(gr.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=bo+r.text)}}}else r.text=xf(r.x,e,n,a)}function NV(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var A8=["f","p","n","\u03BC","m","","k","M","G","T"],FV=["q","r","y","z","a",...A8,"P","E","Z","Y","R","Q"],Is=e=>["SI","SI extended","B"].includes(e);function Gm(e){return e>14||e<-15}function Wm(e){return e>32||e<-30}function IV(e,r){return Is(r)?!!(r==="SI extended"&&Wm(e)||r!=="SI extended"&&Gm(e)):!1}function xf(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Ht(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};T8(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,bo);var v=Math.pow(10,-i)/2;if(l==="none"&&(o=0),e=Math.abs(e),e"+m+"":l==="B"&&o===9?e+="B":Is(l)&&(e+=l==="SI extended"?FV[o/3+10]:A8[o/3+5])}return n?bo+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Fs}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var v=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return v===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):v-h}else return typeof s=="number"?1:-1}function n(s,u,f){var v=f||function(m){return m},h=u[0],d=u[1];return(!h&&typeof h!="number"||v(h)<=v(s))&&(!d&&typeof d!="number"||v(d)>=v(s))}function i(s,u){var f=u[0]===null,v=u[1]===null,h=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||h)&&(v||d)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return gr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ye.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&Um(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=gr.simpleMap(u._r,u.r2l),f}}}))};Ye.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),v=Ye.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),Um(r,m,a,!0),Um(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=QV(r,a));var y=h[f+"axislayer"],g=r._mainLinePosition,_=g+=r._shift,w=r._mainMirrorPosition,T=r._vals=Ye.calcTicks(r),b=[r.mirror,_,w].join("_");for(i=0;i0?De.bottom-Ge:0,Ue))));var Te=0,Xe=0;if(r._shiftPusher&&(Te=Math.max(Ue,De.height>0?Ee==="l"?Ge-De.left:De.right-Ge:0),r.title.text!==s._dfltTitle[f]&&(Xe=(r._titleStandoff||0)+(r._titleScoot||0),Ee==="l"&&(Xe+=y8(r))),r._fullDepth=Math.max(Te,Xe)),r.automargin){He={x:0,y:0,r:0,l:0,t:0,b:0};var cr=[0,1],fr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ee==="b"?He[Ee]=r._depth:(He[Ee]=r._depth=Math.max(De.width>0?Ge-De.top:0,Ue),cr.reverse()),De.width>0){var le=De.right-(r._offset+r._length);le>0&&(He.xr=1,He.r=le);var Se=r._offset-De.left;Se>0&&(He.xl=0,He.l=Se)}}else if(Ee==="l"?(r._depth=Math.max(De.height>0?Ge-De.left:0,Ue),He[Ee]=r._depth-fr):(r._depth=Math.max(De.height>0?De.right-Ge:0,Ue),He[Ee]=r._depth+fr,cr.reverse()),De.height>0){var Fe=De.bottom-(r._offset+r._length);Fe>0&&(He.yb=0,He.b=Fe);var We=r._offset-De.top;We>0&&(He.yt=1,He.t=We)}He[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[cr[0]],r.title.text!==s._dfltTitle[f]&&(He[Ee]+=y8(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Oe={x:0,y:0,r:0,l:0,t:0,b:0},Oe[ze]=r.linewidth,r.mirror&&r.mirror!==!0&&(Oe[ze]+=Ue),r.mirror===!0||r.mirror==="ticks"?Oe[v]=r._anchorAxis.domain[cr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Oe[v]=[r._counterDomainMin,r._counterDomainMax][cr[1]]))}Ne&&(ne=mf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(m8(He,r.automargin),m8(Oe,r.automargin)),zs.autoMargin(e,Zm(r),He),zs.autoMargin(e,S8(r),Oe),zs.autoMargin(e,C8(r),ne)}),gr.syncOrAsync(ge)}};function m8(e,r){if(e){var t=Object.keys(u8).reduce(function(a,n){return r.indexOf(n)!==-1&&u8[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function HV(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(gr.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,v=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*v}return e._id.charAt(0)==="x"?function(h){return Ns(n+e._offset+e.l2p(Bm(h))+t,i+a)}:function(h){return Ns(i+a,n+e._offset+e.l2p(Bm(h))+t)}};function Bm(e){return e.periodX!==void 0?e.periodX:e.x}function UV(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(m){return r.indexOf(m)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,v=u?(e.tickwidth||0)/2:0,h=D0,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(v+=d*xo,h+=(e.linewidth||0)/2),(i||l)&&(v+=(e.linewidth||0)/2,h+=D0),s&&f==="top"&&(h-=d*(1-xo)),(i||n)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h:0]}Ye.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Ye.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(I){return a.indexOf(I)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),v=i("inside"),h=a==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&n!=="boundaries",d=0,m=0,y=h?e.ticklen:0;if(v?y*=-1:f&&(y=0),h&&(d+=y,t)){var g=gr.deg2rad(t);d=y*Math.cos(g)+1,m=y*Math.sin(g)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(v?-1:1);var _={labelStandoff:d,labelShift:m},w,T,b,A,C=0,k=e.side,q=e._id.charAt(0),D=e.tickangle,R;if(q==="x")R=!v&&k==="bottom"||v&&k==="top",A=R?1:-1,v&&(A*=-1),w=m*A,T=r+d*A,b=R?1:-.2,Math.abs(D)===90&&(v?b+=pf:D===-90&&k==="bottom"?b=xo:D===90&&k==="top"?b=pf:b=.5,C=pf/2*(D/90)),_.xFn=function(I){return I.dx+w+C*I.fontSize},_.yFn=function(I){return I.dy+T+I.fontSize*b},_.anchorFn=function(I,O){if(f){if(o)return"end";if(s)return"start"}return!Ht(O)||O===0||O===180?"middle":O*A<0!==v?"end":"start"},_.heightFn=function(I,O,J){return O<-60||O>60?-.5*J:e.side==="top"!==v?-J:0};else if(q==="y"){if(R=!v&&k==="left"||v&&k==="right",A=R?1:-1,v&&(A*=-1),w=d,T=m*A,b=0,!v&&Math.abs(D)===90&&(D===-90&&k==="left"||D===90&&k==="right"?b=xo:b=.5),v){var z=Ht(D)?+D:0;if(z!==0){var F=gr.deg2rad(z);C=Math.abs(Math.sin(F))*xo*A,b=0}}_.xFn=function(I){return I.dx+r-(w+I.fontSize*b)*A+C*I.fontSize},_.yFn=function(I){return I.dy+T+I.fontSize*pf},_.anchorFn=function(I,O){return Ht(O)&&Math.abs(O)===90?"middle":R?"end":"start"},_.heightFn=function(I,O,J){return e.side==="right"&&(O*=-1),O<-30?-J:O<30?-.5*J:0}}return _};function R0(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ye.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,R0);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return yf.stroke(Mn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return sn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),z0(r,[g8]),i.attr("transform",t.transFn)};Ye.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(_){return _.minor}):[],l=r.showgrid?t.vals.filter(function(_){return!_.minor}):[],o=t.counterAxis;if(o&&Ye.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;m--){var y=m?h:d;if(y){var g=y.selectAll("path."+a).data(m?l:i,R0);g.exit().remove(),g.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),g.attr("transform",t.transFn).attr("d",t.path).each(function(_){return yf.stroke(Mn.select(this),_.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(_){return sn.dashStyle(_.minor?r.minor.griddash:r.griddash,_.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(_){return(_.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&g.attr("d",t.path)}}z0(r,[Hm,Om])}};Ye.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ye.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return bV(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(yf.stroke,r.zerolinecolor||yf.defaultLine).style("stroke-width",sn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),z0(r,[Im])};Ye.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(V){return V.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],v=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],R0),h=[];v.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(V){var K=Mn.select(this),Q=e._promises.length;K.call(go.positionText,s.xFn(V),s.yFn(V)).call(sn.font,{family:V.font,size:V.fontSize,color:V.fontColor,weight:V.fontWeight,style:V.fontStyle,variant:V.fontVariant,textcase:V.fontTextcase,lineposition:V.fontLineposition,shadow:V.fontShadow}).text(V.text).call(go.convertToTspans,e),e._promises[Q]?h.push(e._promises.pop().then(function(){d(K,u)})):d(K,u)}),z0(r,[s8]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(V){Mn.select(this).select("text").call(go.positionText,s.xFn(V),s.yFn(V))});function d(V,K){V.each(function(Q){var ie=Mn.select(this),pe=ie.select(".text-math-group"),me=s.anchorFn(Q,K),Ae=t.transFn.call(ie.node(),Q)+(Ht(K)&&+K!=0?" rotate("+K+","+s.xFn(Q)+","+(s.yFn(Q)-Q.fontSize/2)+")":""),re=go.lineCount(ie),Le=bf*Q.fontSize,fe=s.heightFn(Q,Ht(K)?+K:0,(re-1)*Le);if(fe&&(Ae+=Ns(0,fe)),pe.empty()){var ke=ie.select("text");ke.attr({transform:Ae,"text-anchor":me}),ke.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var se=sn.bBox(pe.node()).width,be=se*{end:-.5,start:.5}[me];pe.attr("transform",Ae+Ns(be,0))}})}r._adjustTickLabelsOverflow=function(){var V=r.ticklabeloverflow;if(!(!V||V==="allow")){var K=V.indexOf("hide")!==-1,Q=r._id.charAt(0)==="x",ie=0,pe=Q?e._fullLayout.width:e._fullLayout.height;if(V.indexOf("domain")!==-1){var me=gr.simpleMap(r.range,r.r2l);ie=r.l2p(me[0])+r._offset,pe=r.l2p(me[1])+r._offset}var Ae=Math.min(ie,pe),re=Math.max(ie,pe),Le=r.side,fe=1/0,ke=-1/0;v.each(function(ee){var B=Mn.select(this),ye=B.select(".text-math-group");if(ye.empty()){var Me=sn.bBox(B.node()),ge=0;Q?(Me.right>re||Me.leftre||Me.top+(r.tickangle?0:ee.fontSize/4)r["_visibleLabelMin_"+me._id]?B.style("display","none"):re.K==="tick"&&!Ae&&B.node().style.display!=="none"&&B.style("display",null)})})})})},d(v,f+1?f:u);function m(){return h.length&&Promise.all(h)}var y=null;function g(){if(d(v,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var V=0,K=[],Q,ie=1;v.each(function(He){V=Math.max(V,He.fontSize);var Oe=r.l2p(He.x),ne=Ym(this),Te=sn.bBox(ne.node());ie=Math.max(ie,go.lineCount(ne)),K.push({top:0,bottom:10,height:10,left:Oe-Te.width/2,right:Oe+Te.width/2+2,width:Te.width+2})});var pe=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,me=o.length,Ae=Math.abs((o[me-1].x-o[0].x)*r._m)/(me-1),re=pe?Ae/2:Ae,Le=pe?r.ticklen:V*1.25*ie,fe=Math.sqrt(Math.pow(re,2)+Math.pow(Le,2)),ke=re/fe,se=r.autotickangles.map(function(He){return He*Math.PI/180}),be=se.find(function(He){return Math.abs(Math.cos(He))<=ke});be===void 0&&(be=se.reduce(function(He,Oe){return Math.abs(Math.cos(He))X*J&&(F=J,D[q]=R[q]=I[q])}var U=Math.abs(F-z);U-A>0?(U-=A,A*=1+A/U):A=0,r._id.charAt(0)!=="y"&&(A=-A),D[k]=T.p2r(T.r2p(R[k])+C*A),T.autorange==="min"||T.autorange==="max reversed"?(D[0]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0):(T.autorange==="max"||T.autorange==="min reversed")&&(D[1]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[T._name+".range"]=D}var H=gr.syncOrAsync(_);return H&&H.then&&e._promises.push(H),H};function VV(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,R0);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(yf.stroke,r.dividercolor).style("stroke-width",sn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ye.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function y8(e){var r=e.title.font.size,t=(e.title.text.match(go.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(xo+t*bf):t?r*(t+1)*bf:r}function GV(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(go.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*xo:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(pf+o*bf));else{var s=_f(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ye.getPxPosition(e,r),v,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-l:f+l):(d=r._offset+r._length/2,h=r.side==="right"?f+l:f-l,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(m={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var g=sn.getTranslate(y.node().parentNode);m.offsetLeft=g.x,m.offsetTop=g.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=l,fV.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:m,transform:v,attributes:{x:h,y:d,"text-anchor":"middle"}})}Ye.shouldShowZeroLine=function(e,r,t){var a=gr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===E0)&&(k8(r,0)||!WV(e,r,t,a)||ZV(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return k8(e,t.x)})};function k8(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=mV:/%L/.test(r)?e>=pV:/%[SX]/.test(r)?e>=q0:/%M/.test(r)?e>=gf:/%[HI]/.test(r)?e>=Mi:/%p/.test(r)?e>=_l:/%[Aadejuwx]/.test(r)?e>=Ra:/%[UVW]/.test(r)?e>=un:/%[Bbm]/.test(r)?e>=L0:/%[q]/.test(r)?e>=C0:/%[Yy]/.test(r)?e>=S0:!0}});var D8=Z((Woe,q8)=>{"use strict";q8.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var Jm=Z((Zoe,E8)=>{"use strict";var jV=D8();E8.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),v;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,v=!0),v||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(jV(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var R8=Z((Xoe,P8)=>{var eG={left:0,top:0};P8.exports=rG;function rG(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=tG(r);return t[0]=a-i.left,t[1]=n-i.top,t}function tG(e){return e===window||e===document||e===document.body?eG:e.getBoundingClientRect()}});var Km=Z((Joe,z8)=>{"use strict";var aG=Mp();function nG(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}z8.exports=aG&&nG()});var F8=Z((Koe,N8)=>{"use strict";N8.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var O8=Z((Qoe,H8)=>{"use strict";var I8=Ie(),iG=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];H8.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=I8.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=I8.constrain(Math.floor(t*3),0,2),iG[t][r]}});var Y8=Z(($oe,B8)=>{"use strict";var lG=tf(),oG=Nv(),sG=Zu().getGraphDiv,uG=Uu(),Qm=B8.exports={};Qm.wrapped=function(e,r,t){e=sG(e),e._fullLayout&&oG.clear(e._fullLayout._uid+uG.HOVERID),Qm.raw(e,r,t)};Qm.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&lG.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var $n=Z((joe,W8)=>{"use strict";var fG=R8(),$m=kp(),cG=Km(),vG=Ie().removeElement,hG=ya(),_o=W8.exports={};_o.align=F8();_o.getCursor=O8();var V8=Y8();_o.unhover=V8.wrapped;_o.unhoverRaw=V8.raw;_o.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,v,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=g,cG?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=g,i.addEventListener("touchstart",g,{passive:!1})):i.ontouchstart=g;function m(T,b,A){return Math.abs(T)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;v.target===h?b=v:(b={target:h,srcElement:h,toElement:h},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(A=>{var C=v[A];!b[A]&&typeof C!="function"&&(b[A]=C)})),r.clickFn&&r.clickFn(a,b),d||h.dispatchEvent(new MouseEvent("click",T))}t._dragging=!1,t._dragged=!1}};function G8(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}_o.coverSlip=G8;function U8(e){return fG(e.changedTouches?e.changedTouches[0]:e,document.body)}});var wl=Z((ese,Z8)=>{"use strict";Z8.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var K8=Z((rse,J8)=>{"use strict";var jm=wl(),wf="data-savedcursor",X8="!!";J8.exports=function(r,t){var a=r.attr(wf);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var ey=ma(),dG=hi();Q8.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:dG.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:ey({editType:"legend"}),grouptitlefont:ey({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:ey({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var F0=Z(N0=>{"use strict";N0.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};N0.isVertical=function(r){return r.orientation!=="h"};N0.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var ny=Z((nse,$8)=>{"use strict";var ty=br(),fn=Ie(),pG=ct(),mG=Gn(),yG=ry(),gG=ds(),ay=F0();function bG(e,r,t,a){var n=r[e]||{},i=pG.newContainer(t,e);function l(U,H){return fn.coerce(n,i,yG,U,H)}var o=fn.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(s){for(var u,f=function(U,H){var V=u._input,K=u;return fn.coerce(V,K,mG,U,H)},v=t.font||{},h=fn.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),d=0,m=!1,y="normal",g=(t.shapes||[]).filter(function(U){return U.showlegend}),_=a.concat(g).filter(function(U){return e===(U.legend||"legend")}),w=0;w<_.length;w++)if(u=_[w],!!u.visible){var T=u._isShape;(u.showlegend||u._dfltShowLegend&&!(u._module&&u._module.attributes&&u._module.attributes.showlegend&&u._module.attributes.showlegend.dflt===!1))&&(d++,u.showlegend&&(m=!0,(!T&&ty.traceIs(u,"pie-like")||u._input.showlegend===!0)&&d++),fn.coerceFont(f,"legendgrouptitle.font",h)),(!T&&ty.traceIs(u,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(u.fill)!==-1)&&(y=ay.isGrouped({traceorder:y})?"grouped+reversed":"reversed"),u.legendgroup!==void 0&&u.legendgroup!==""&&(y=ay.isReversed({traceorder:y})?"reversed+grouped":"grouped")}var b=fn.coerce(r,t,gG,"showlegend",m&&d>(e==="legend"?1:0));if(b===!1&&(t[e]=void 0),!(b===!1&&!n.uirevision)&&(l("uirevision",t.uirevision),b!==!1)){l("borderwidth");var A=l("orientation"),C=l("yref"),k=l("xref"),q=A==="h",D=C==="paper",R=k==="paper",z,F,I,O="left";q?(z=0,ty.getComponentMethod("rangeslider","isVisible")(r.xaxis)?D?(F=1.1,I="bottom"):(F=1,I="top"):D?(F=-.1,I="top"):(F=0,I="bottom")):(F=1,I="auto",R?z=1.02:(z=1,O="right")),fn.coerce(n,i,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:z}},"x"),fn.coerce(n,i,{y:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:F}},"y"),l("traceorder",y),ay.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",O),l("yanchor",I),l("maxheight"),l("valign"),fn.noneOrAll(n,i,["x","y"]);var J=l("title.text");if(J){l("title.side",q?"left":"top");var X=fn.extendFlat({},o,{size:fn.bigFont(o.size)});fn.coerceFont(l,"title.font",X)}}}}$8.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var Hs=br(),ly=Ie(),xG=ly.pushUnique,iy=!0;j8.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,l=n.legend.itemdoubleclick,o=n.legend.groupclick;a===1&&i==="toggle"&&l==="toggleothers"&&iy&&t.data&&t._context.showTips&&ly.notifier(ly._(t,"Double-click on legend to isolate one trace"),"long"),iy=!1;var s;if(a===1?s=i:a===2&&(s=l),!s)return;var u=o==="togglegroup",f=n.hiddenlabels?n.hiddenlabels.slice():[],v=r.data()[0][0];if(v.groupTitle&&v.noClick)return;var h=t._fullData,d=(n.shapes||[]).filter(function(ze){return ze.showlegend}),m=h.concat(d),y=v.trace;y._isShape&&(y=y._fullInput);var g=y.legendgroup,_,w,T,b,A,C,k={},q=[],D=[],R=[];function z(ze,Ge){var Ue=q.indexOf(ze),De=k.visible;return De||(De=k.visible=[]),q.indexOf(ze)===-1&&(q.push(ze),Ue=q.length-1),De[Ue]=Ge,Ue}var F=(n.shapes||[]).map(function(ze){return ze._input}),I=!1;function O(ze,Ge){F[ze].visible=Ge,I=!0}function J(ze,Ge){if(!(v.groupTitle&&!u)){var Ue=ze._fullInput||ze,De=Ue._isShape,He=Ue.index;He===void 0&&(He=Ue._index);var Oe=Ue.visible===!1?!1:Ge;De?O(He,Oe):z(He,Oe)}}var X=y.legend,U=y._fullInput,H=U&&U._isShape;if(!H&&Hs.traceIs(y,"pie-like")){var V=v.label,K=f.indexOf(V);if(s==="toggle")K===-1?f.push(V):f.splice(K,1);else if(s==="toggleothers"){var Q=K!==-1,ie=[];for(_=0;_{"use strict";rw.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var nw=Z((ose,aw)=>{"use strict";var tw=br(),sy=F0();aw.exports=function(r,t,a){var n=t._inHover,i=sy.isGrouped(t),l=sy.isReversed(t),o={},s=[],u=!1,f={},v=0,h=0,d,m;function y(U,H,V){if(t.visible!==!1&&!(a&&U!==t._id))if(H===""||!sy.isGrouped(t)){var K="~~i"+v;s.push(K),o[K]=[V],v++}else s.indexOf(H)===-1?(s.push(H),u=!0,o[H]=[V]):o[H].push(V)}for(d=0;dR&&(D=R)}k[d][0]._groupMinRank=D,k[d][0]._preGroupSort=d}var z=function(U,H){return U[0]._groupMinRank-H[0]._groupMinRank||U[0]._preGroupSort-H[0]._preGroupSort},F=function(U,H){return U.trace.legendrank-H.trace.legendrank||U._preSort-H._preSort};for(k.forEach(function(U,H){U[0]._preGroupSort=H}),k.sort(z),d=0;d{"use strict";var I0=Ie();function iw(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}wo.formatPiePercent=function(r,t){var a=iw((r*100).toPrecision(3));return I0.numSeparate(a,t)+"%"};wo.formatPieValue=function(r,t){var a=iw(r.toPrecision(10));return I0.numSeparate(a,t)};wo.getFirstFilled=function(r,t){if(I0.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var _G=at(),wG=Er();lw.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?_G.pointStyle(r,a,n,t):wG.fill(r,t.color)}});var O0=Z((fse,fw)=>{"use strict";var sw=Er(),uw=H0().castOption,TG=ow();fw.exports=function(r,t,a,n){var i=a.marker.line,l=uw(i.color,t.pts)||sw.defaultLine,o=uw(i.width,t.pts)||0;r.call(TG,t,a,n).style("stroke-width",o).call(sw.stroke,l)}});var vy=Z((cse,mw)=>{"use strict";var za=Ir(),uy=br(),Aa=Ie(),cw=Aa.strTranslate,cn=at(),An=Er(),fy=Tn().extractOpts,B0=on(),MG=O0(),AG=H0().castOption,kG=oy(),vw=12,hw=5,To=2,SG=10,Os=5;mw.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+kG.itemGap*2)/2,s=cw(o,0),u=function(k,q,D,R){var z;if(k+1)z=k;else if(q&&q.width>0)z=q.width;else return 0;return i?R:Math.min(z,D)};r.each(function(k){var q=za.select(this),D=Aa.ensureSingle(q,"g","layers");D.style("opacity",k[0].trace.opacity);var R=a.indentation,z=a.valign,F=k[0].lineHeight,I=k[0].height;if(z==="middle"&&R===0||!F||!I)D.attr("transform",null);else{var O={top:1,bottom:-1}[z],J=O*(.5*(F-I+3))||0,X=a.indentation;D.attr("transform",cw(X,J))}var U=D.selectAll("g.legendfill").data([k]);U.enter().append("g").classed("legendfill",!0);var H=D.selectAll("g.legendlines").data([k]);H.enter().append("g").classed("legendlines",!0);var V=D.selectAll("g.legendsymbols").data([k]);V.enter().append("g").classed("legendsymbols",!0),V.selectAll("g.legendpoints").data([k]).enter().append("g").classed("legendpoints",!0)}).each(C).each(h).each(m).each(d).each(g).each(b).each(T).each(f).each(v).each(_).each(w);function f(k){var q=dw(k),D=q.showFill,R=q.showLine,z=q.showGradientLine,F=q.showGradientFill,I=q.anyFill,O=q.anyLine,J=k[0],X=J.trace,U,H,V=fy(X),K=V.colorscale,Q=V.reversescale,ie=function(ke){if(ke.size())if(D)cn.fillGroupStyle(ke,t,!0);else{var se="legendfill-"+X.uid;cn.gradient(ke,t,se,cy(Q),K,"fill")}},pe=function(ke){if(ke.size()){var se="legendline-"+X.uid;cn.lineGroupStyle(ke),cn.gradient(ke,t,se,cy(Q),K,"stroke")}},me=B0.hasMarkers(X)||!I?"M5,0":O?"M5,-2":"M5,-3",Ae=za.select(this),re=Ae.select(".legendfill").selectAll("path").data(D||F?[k]:[]);if(re.enter().append("path").classed("js-fill",!0),re.exit().remove(),re.attr("d",me+"h"+l+"v6h-"+l+"z").call(ie),R||z){var Le=u(void 0,X.line,SG,hw);H=Aa.minExtend(X,{line:{width:Le}}),U=[Aa.minExtend(J,{trace:H})]}var fe=Ae.select(".legendlines").selectAll("path").data(R||z?[U]:[]);fe.enter().append("path").classed("js-line",!0),fe.exit().remove(),fe.attr("d",me+(z?"l"+l+",0.0001":"h"+l)).call(R?cn.lineGroupStyle:pe)}function v(k){var q=dw(k),D=q.anyFill,R=q.anyLine,z=q.showLine,F=q.showMarker,I=k[0],O=I.trace,J=!F&&!R&&!D&&B0.hasText(O),X,U;function H(re,Le,fe,ke){var se=Aa.nestedProperty(O,re).get(),be=Aa.isArrayOrTypedArray(se)&&Le?Le(se):se;if(i&&be&&ke!==void 0&&(be=ke),fe){if(befe[1])return fe[1]}return be}function V(re){return I._distinct&&I.index&&re[I.index]?re[I.index]:re[0]}if(F||J||z){var K={},Q={};if(F){K.mc=H("marker.color",V),K.mx=H("marker.symbol",V),K.mo=H("marker.opacity",Aa.mean,[.2,1]),K.mlc=H("marker.line.color",V),K.mlw=H("marker.line.width",Aa.mean,[0,5],To),Q.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ie=H("marker.size",Aa.mean,[2,16],vw);K.ms=ie,Q.marker.size=ie}z&&(Q.line={width:H("line.width",V,[0,10],hw)}),J&&(K.tx="Aa",K.tp=H("textposition",V),K.ts=10,K.tc=H("textfont.color",V),K.tf=H("textfont.family",V),K.tw=H("textfont.weight",V),K.ty=H("textfont.style",V),K.tv=H("textfont.variant",V),K.tC=H("textfont.textcase",V),K.tE=H("textfont.lineposition",V),K.tS=H("textfont.shadow",V)),X=[Aa.minExtend(I,K)],U=Aa.minExtend(O,Q),U.selectedpoints=null,U.texttemplate=null}var pe=za.select(this).select("g.legendpoints"),me=pe.selectAll("path.scatterpts").data(F?X:[]);me.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),me.exit().remove(),me.call(cn.pointStyle,U,t),F&&(X[0].mrc=3);var Ae=pe.selectAll("g.pointtext").data(J?X:[]);Ae.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Ae.exit().remove(),Ae.selectAll("text").call(cn.textPointStyle,U,t)}function h(k){var q=k[0].trace,D=q.type==="waterfall";if(k[0]._distinct&&D){var R=k[0].trace[k[0].dir].marker;return k[0].mc=R.color,k[0].mlw=R.line.width,k[0].mlc=R.line.color,y(k,this,"waterfall")}var z=[];q.visible&&D&&(z=k[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var F=za.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(z);F.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(I){var O=za.select(this),J=q[I[0]].marker,X=u(void 0,J.line,Os,To);O.attr("d",I[1]).style("stroke-width",X+"px").call(An.fill,J.color),X&&O.call(An.stroke,J.line.color)})}function d(k){y(k,this)}function m(k){y(k,this,"funnel")}function y(k,q,D){var R=k[0].trace,z=R.marker||{},F=z.line||{},I=z.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",O=D?R.visible&&R.type===D:uy.traceIs(R,"bar"),J=za.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(O?[k]:[]);J.enter().append("path").classed("legend"+D,!0).attr("d",I).attr("transform",s),J.exit().remove(),J.each(function(X){var U=za.select(this),H=X[0],V=u(H.mlw,z.line,Os,To);U.style("stroke-width",V+"px");var K=H.mcc;if(!a._inHover&&"mc"in H){var Q=fy(z),ie=Q.mid;ie===void 0&&(ie=(Q.max+Q.min)/2),K=cn.tryColorscale(z,"")(ie)}var pe=K||H.mc||z.color,me=z.pattern,Ae=cn.getPatternAttr,re=me&&(Ae(me.shape,0,"")||Ae(me.path,0,""));if(re){var Le=Ae(me.bgcolor,0,null),fe=Ae(me.fgcolor,0,null),ke=me.fgopacity,se=pw(me.size,8,10),be=pw(me.solidity,.5,1),Y="legend-"+R.uid;U.call(cn.pattern,"legend",t,Y,re,se,be,K,me.fillmode,Le,fe,ke)}else U.call(An.fill,pe);V&&An.stroke(U,H.mlc||F.color)})}function g(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&uy.traceIs(q,"box-violin")?[k]:[]);D.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.each(function(){var R=za.select(this);if((q.boxpoints==="all"||q.points==="all")&&An.opacity(q.fillcolor)===0&&An.opacity((q.line||{}).color)===0){var z=Aa.minExtend(q,{marker:{size:i?vw:Aa.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(cn.pointStyle,z,t)}else{var F=u(void 0,q.line,Os,To);R.style("stroke-width",F+"px").call(An.fill,q.fillcolor),F&&An.stroke(R,q.line.color)}})}function _(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.type==="candlestick"?[k,k]:[]);D.enter().append("path").classed("legendcandle",!0).attr("d",function(R,z){return z?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(R,z){var F=za.select(this),I=q[z?"increasing":"decreasing"],O=u(void 0,I.line,Os,To);F.style("stroke-width",O+"px").call(An.fill,I.fillcolor),O&&An.stroke(F,I.line.color)})}function w(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.type==="ohlc"?[k,k]:[]);D.enter().append("path").classed("legendohlc",!0).attr("d",function(R,z){return z?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(R,z){var F=za.select(this),I=q[z?"increasing":"decreasing"],O=u(void 0,I.line,Os,To);F.style("fill","none").call(cn.dashLine,I.line.dash,O),O&&An.stroke(F,I.line.color)})}function T(k){A(k,this,"pie")}function b(k){A(k,this,"funnelarea")}function A(k,q,D){var R=k[0],z=R.trace,F=D?z.visible&&z.type===D:uy.traceIs(z,D),I=za.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(F?[k]:[]);if(I.enter().append("path").classed("legend"+D,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),I.exit().remove(),I.size()){var O=z.marker||{},J=u(AG(O.line.width,R.pts),O.line,Os,To),X="pieLike",U=Aa.minExtend(z,{marker:{line:{width:J}}},X),H=Aa.minExtend(R,{trace:U},X);MG(I,H,U,t)}}function C(k){var q=k[0].trace,D,R=[];if(q.visible)switch(q.type){case"histogram2d":case"heatmap":R=[["M-15,-2V4H15V-2Z"]],D=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":R=[["M-6,-6V6H6V-6Z"]],D=!0;break;case"densitymapbox":case"densitymap":R=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],D="radial";break;case"cone":R=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],D=!1;break;case"streamtube":R=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],D=!1;break;case"surface":R=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],D=!0;break;case"mesh3d":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!1;break;case"volume":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!0;break;case"isosurface":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],D=!1;break}var z=za.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(R);z.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(F,I){var O=za.select(this),J=fy(q),X=J.colorscale,U=J.reversescale,H=function(ie){if(ie.size()){var pe="legendfill-"+q.uid;cn.gradient(ie,t,pe,cy(U,D==="radial"),X,"fill")}},V;if(X){if(!D){var Q=X.length;V=I===0?X[U?Q-1:0][1]:I===1?X[U?0:Q-1][1]:X[Math.floor((Q-1)/2)][1]}}else{var K=q.vertexcolor||q.facecolor||q.color;V=Aa.isArrayOrTypedArray(K)?K[I]||K[0]:K}O.attr("d",F[0]),V?O.call(An.fill,V):O.call(H)})}};function cy(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function dw(e){var r=e[0].trace,t=r.contours,a=B0.hasLines(r),n=B0.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function pw(e,r,t){return e&&Aa.isArrayOrTypedArray(e)?r:e>t?t:e}});var my=Z((vse,kw)=>{"use strict";var $a=Ir(),Ot=Ie(),dy=Ft(),Us=br(),yw=tf(),hy=$n(),Bt=at(),U0=Er(),Mo=Ta(),gw=ew(),Xt=oy(),py=Pa(),Mw=py.LINE_SPACING,Ys=py.FROM_TL,bw=py.FROM_BR,xw=nw(),CG=vy(),_w=F0(),Bs=1,LG=/^legend[0-9]*$/;kw.exports=function(r,t){if(t)ww(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=$a.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(LG)&&n.indexOf(v)===-1&&u.remove()});for(var l=0;l1)}var m=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),dy.autoMargin(e,n);var y=Ot.ensureSingle(l,"g",n,function(q){o||q.attr("pointer-events","all")}),g=Ot.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),_=Ot.ensureSingle(y,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});_.call(U0.stroke,t.bordercolor).call(U0.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var w=Ot.ensureSingle(y,"g","scrollbox"),T=t.title;t._titleWidth=0,t._titleHeight=0;var b;T.text?(b=Ot.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(Bt.font,T.font).text(T.text),V0(b,w,e,t,Bs)):w.selectAll("."+n+"titletext").remove();var A=Ot.ensureSingle(y,"rect","scrollbar",function(q){q.attr(Xt.scrollBarEnterAttrs).call(U0.fill,Xt.scrollBarColor)}),C=w.selectAll("g.groups").data(s);C.enter().append("g").attr("class","groups"),C.exit().remove();var k=C.selectAll("g.traces").data(Ot.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(q){var D=q[0].trace;return Us.traceIs(D,"pie-like")?m.indexOf(q[0].label)!==-1?.5:1:D.visible==="legendonly"?.5:1}).each(function(){$a.select(this).call(DG,e,t)}).call(CG,e,t).each(function(){o||$a.select(this).call(EG,e,n)}),Ot.syncOrAsync([dy.previousPromises,function(){return zG(e,C,k,t)},function(){var q=a._size,D=t.borderwidth,R=t.xref==="paper",z=t.yref==="paper";if(T.text&&qG(b,t,D),!o){var F,I;R?F=q.l+q.w*t.x-Ys[G0(t)]*t._width:F=a.width*t.x-Ys[G0(t)]*t._width,z?I=q.t+q.h*(1-t.y)-Ys[W0(t)]*t._effHeight:I=a.height*(1-t.y)-Ys[W0(t)]*t._effHeight;var O=NG(e,n,F,I);if(O)return;if(a.margin.autoexpand){var J=F,X=I;F=R?Ot.constrain(F,0,a.width-t._width):J,I=z?Ot.constrain(I,0,a.height-t._effHeight):X,F!==J&&Ot.log("Constrain "+n+".x to make legend fit inside graph"),I!==X&&Ot.log("Constrain "+n+".y to make legend fit inside graph")}Bt.setTranslate(y,F,I)}if(A.on(".drag",null),y.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var U=t._effHeight;o&&(U=t._height),_.attr({width:t._width-D,height:U-D,x:D/2,y:D/2}),Bt.setTranslate(w,0,0),g.select("rect").attr({width:t._width-2*D,height:U-2*D,x:D,y:D}),Bt.setClipUrl(w,i,e),Bt.setRect(A,0,0,0,0),delete t._scrollY}else{var H=Math.max(Xt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),V=t._effHeight-H-2*Xt.scrollBarMargin,K=t._height-t._effHeight,Q=V/K,ie=Math.min(t._scrollY||0,K);_.attr({width:t._width-2*D+Xt.scrollBarWidth+Xt.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),g.select("rect").attr({width:t._width-2*D+Xt.scrollBarWidth+Xt.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+ie}),Bt.setClipUrl(w,i,e),se(ie,H,Q),y.on("wheel",function(){ie=Ot.constrain(t._scrollY+$a.event.deltaY/V*K,0,K),se(ie,H,Q),ie!==0&&ie!==K&&$a.event.preventDefault()});var pe,me,Ae,re=function(ye,Me,ge){var Re=(ge-Me)/Q+ye;return Ot.constrain(Re,0,K)},Le=function(ye,Me,ge){var Re=(Me-ge)/Q+ye;return Ot.constrain(Re,0,K)},fe=$a.behavior.drag().on("dragstart",function(){var ye=$a.event.sourceEvent;ye.type==="touchstart"?pe=ye.changedTouches[0].clientY:pe=ye.clientY,Ae=ie}).on("drag",function(){var ye=$a.event.sourceEvent;ye.buttons===2||ye.ctrlKey||(ye.type==="touchmove"?me=ye.changedTouches[0].clientY:me=ye.clientY,ie=re(Ae,pe,me),se(ie,H,Q))});A.call(fe);var ke=$a.behavior.drag().on("dragstart",function(){var ye=$a.event.sourceEvent;ye.type==="touchstart"&&(pe=ye.changedTouches[0].clientY,Ae=ie)}).on("drag",function(){var ye=$a.event.sourceEvent;ye.type==="touchmove"&&(me=ye.changedTouches[0].clientY,ie=Le(Ae,pe,me),se(ie,H,Q))});w.call(ke)}function se(ye,Me,ge){t._scrollY=e._fullLayout[n]._scrollY=ye,Bt.setTranslate(w,0,-ye),Bt.setRect(A,t._width,Xt.scrollBarMargin+ye*ge,Xt.scrollBarWidth,Me),g.select("rect").attr("y",D+ye)}if(e._context.edits.legendPosition){var be,Y,ee,B;y.classed("cursor-move",!0),hy.init({element:y.node(),gd:e,prepFn:function(ye){if(ye.target!==A.node()){var Me=Bt.getTranslate(y);ee=Me.x,B=Me.y}},moveFn:function(ye,Me){if(ee!==void 0&&B!==void 0){var ge=ee+ye,Re=B+Me;Bt.setTranslate(y,ge,Re),be=hy.align(ge,t._width,q.l,q.l+q.w,t.xanchor),Y=hy.align(Re+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(be!==void 0&&Y!==void 0){var ye={};ye[n+".x"]=be,ye[n+".y"]=Y,Us.call("_guiRelayout",e,ye)}},clickFn:function(ye,Me){var ge=l.selectAll("g.traces").filter(function(){var Re=this.getBoundingClientRect();return Me.clientX>=Re.left&&Me.clientX<=Re.right&&Me.clientY>=Re.top&&Me.clientY<=Re.bottom});ge.size()>0&&Aw(e,y,ge,ye,Me)}})}}],e)}}function Y0(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function Aw(e,r,t,a,n){var i=t.data()[0][0].trace,l={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(l.group=i._group),Us.traceIs(i,"pie-like")&&(l.label=t.datum()[0].label);var o=yw.triggerHandler(e,"plotly_legendclick",l);if(a===1){if(o===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&gw(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=yw.triggerHandler(e,"plotly_legenddoubleclick",l);s!==!1&&o!==!1&&gw(t,e,a)}}function DG(e,r,t){var a=Z0(t),n=e.data()[0][0],i=n.trace,l=Us.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Ot.templateString(u,i._meta))));var v=Ot.ensureSingle(e,"text",a+"text");v.attr("text-anchor","start").call(Bt.font,f).text(o?Tw(u,s):u);var h=t.indentation+t.itemwidth+Xt.itemGap*2;Mo.positionText(v,h,0),o?v.call(Mo.makeEditable,{gd:r,text:u}).call(V0,e,r,t).on("edit",function(d){this.text(Tw(d,s)).call(V0,e,r,t);var m=n.trace._fullInput||{},y={};return y.name=d,m._isShape?Us.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):Us.call("_guiRestyle",r,y,i.index)}):V0(v,e,r,t)}function Tw(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function EG(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Ot.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(U0.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),Aw(r,o,e,i,$a.event)}}))}function V0(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),Mo.convertToTspans(e,t,function(){PG(r,t,a,n)})}function PG(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),l=i.node(),o=Z0(t);t||(t=r._fullLayout[o]);var s=t.borderwidth,u;a===Bs?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var f=u.size*Mw,v,h;if(l){var d=Bt.bBox(l);v=d.height,h=d.width,a===Bs?Bt.setTranslate(i,s,s+v*.75):Bt.setTranslate(i,0,v*.25)}else{var m="."+o+(a===Bs?"title":"")+"text",y=e.select(m),g=Mo.lineCount(y),_=y.node();if(v=f*g,h=_?Bt.bBox(_).width:0,a===Bs)t.title.side==="left"&&(h+=Xt.itemGap*2),Mo.positionText(y,s+Xt.titlePad,s+f);else{var w=Xt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=Xt.itemGap,h-=t.indentation+t.itemwidth),Mo.positionText(y,w,-f*((g-1)/2-.3))}}a===Bs?(t._titleWidth=h,t._titleHeight=v):(n.lineHeight=f,n.height=Math.max(v,16)+3,n.width=h)}function RG(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function zG(e,r,t,a){var n=e._fullLayout,i=Z0(a);a||(a=n[i]);var l=n._size,o=_w.isVertical(a),s=_w.isGrouped(a),u=a.entrywidthmode==="fraction",f=a.borderwidth,v=2*f,h=Xt.itemGap,d=a.indentation+a.itemwidth+h*2,m=2*(f+h),y=W0(a),g=a.y<0||a.y===0&&y==="top",_=a.y>1||a.y===1&&y==="bottom",w=a.tracegroupgap,T={};let{orientation:b,yref:A}=a,{maxheight:C}=a,k=g||_||b!=="v"||A!=="paper";C||(C=k?.5:1);let q=k?n.height:l.h;a._maxHeight=Math.max(C>1?C:C*q,30);var D=0;a._width=0,a._height=0;var R=RG(a);if(o)t.each(function(se){var be=se[0].height;Bt.setTranslate(this,f+R[0],f+R[1]+a._height+be/2+h),a._height+=be,a._width=Math.max(a._width,se[0].width)}),D=d+a._width,a._width+=h+d+v,a._height+=m,s&&(r.each(function(se,be){Bt.setTranslate(this,0,be*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var z=G0(a),F=a.x<0||a.x===0&&z==="right",I=a.x>1||a.x===1&&z==="left",O=_||g,J=n.width/2;a._maxWidth=Math.max(F?O&&z==="left"?l.l+l.w:J:I?O&&z==="right"?l.r+l.w:J:l.w,2*d);var X=0,U=0;t.each(function(se){var be=Y0(se,a,d);X=Math.max(X,be),U+=be}),D=null;var H=0;if(s){var V=0,K=0,Q=0;r.each(function(){var se=0,be=0;$a.select(this).selectAll("g.traces").each(function(ee){var B=Y0(ee,a,d),ye=ee[0].height;Bt.setTranslate(this,R[0],R[1]+f+h+ye/2+be),be+=ye,se=Math.max(se,B),T[ee[0].trace.legendgroup]=se});var Y=se+h;K>0&&Y+f+K>a._maxWidth?(H=Math.max(H,K),K=0,Q+=V+w,V=be):V=Math.max(V,be),Bt.setTranslate(this,K,Q),K+=Y}),a._width=Math.max(H,K)+f,a._height=Q+V+m}else{var ie=t.size(),pe=U+v+(ie-1)*h=a._maxWidth&&(H=Math.max(H,Le),Ae=0,re+=me,a._height+=me,me=0),Bt.setTranslate(this,R[0]+f+Ae,R[1]+f+re+be/2+h),Le=Ae+Y+h,Ae+=ee,me=Math.max(me,be)}),pe?(a._width=Ae+v,a._height=me+m):(a._width=Math.max(H,Le)+v,a._height+=me+m)}}a._width=Math.ceil(Math.max(a._width+R[0],a._titleWidth+2*(f+Xt.titlePad))),a._height=Math.ceil(Math.max(a._height+R[1],a._titleHeight+2*(f+Xt.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var fe=e._context.edits,ke=fe.legendText||fe.legendPosition;t.each(function(se){var be=$a.select(this).select("."+i+"toggle"),Y=se[0].height,ee=se[0].trace.legendgroup,B=Y0(se,a,d);s&&ee!==""&&(B=T[ee]);var ye=ke?d:D||B;!o&&!u&&(ye+=h/2),Bt.setRect(be,0,-Y/2,ye,Y)})}function NG(e,r,t,a){var n=e._fullLayout,i=n[r],l=G0(i),o=W0(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",v=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return dy.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Ys[l],r:i._width*bw[l],b:i._effHeight*bw[o],t:i._effHeight*Ys[o]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][v]=h[v]:e._fullLayout._reservedMargin[r][f]=h[f]}function G0(e){return Ot.isRightAnchor(e)?"right":Ot.isCenterAnchor(e)?"center":"left"}function W0(e){return Ot.isBottomAnchor(e)?"bottom":Ot.isMiddleAnchor(e)?"middle":"top"}function Z0(e){return e._id||"legend"}});var xy=Z(by=>{"use strict";var Ao=Ir(),Vi=Hr(),Sw=bn(),Tt=Ie(),FG=Tt.pushUnique,yy=Tt.strTranslate,IG=Tt.strRotate,HG=tf(),kn=Ta(),OG=K8(),Ai=at(),ea=Er(),X0=$n(),ki=dt(),BG=ya().zindexSeparator,Gs=br(),jn=xi(),ko=Uu(),YG=ny(),UG=my(),zw=ko.YANGLE,gy=Math.PI*zw/180,VG=1/Math.sin(gy),GG=Math.cos(gy),WG=Math.sin(gy),pt=ko.HOVERARROWSIZE,Or=ko.HOVERTEXTPAD,Cw={box:!0,ohlc:!0,violin:!0,candlestick:!0},ZG={scatter:!0,scattergl:!0,splom:!0};function Lw(e,r){return e.distance-r.distance}by.hover=function(r,t,a,n){r=Tt.getGraphDiv(r);var i=t.target;Tt.throttle(r._fullLayout._uid+ko.HOVERID,ko.HOVERMINTIME,function(){XG(r,t,a,n,i)})};by.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=Ow(n),l=Bw(n),o=r.map(function(g){var _=g._x0||g.x0||g.x||0,w=g._x1||g.x1||g.x||0,T=g._y0||g.y0||g.y||0,b=g._y1||g.y1||g.y||0,A=g.eventData;if(A){var C=Math.min(_,w),k=Math.max(_,w),q=Math.min(T,b),D=Math.max(T,b),R=g.trace;if(Gs.traceIs(R,"gl3d")){var z=n._fullLayout[R.scene]._scene.container,F=z.offsetLeft,I=z.offsetTop;C+=F,k+=F,q+=I,D+=I}A.bbox={x0:C+l,x1:k+l,y0:q+i,y1:D+i},t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:g.color||ea.defaultLine,x0:g.x0||g.x||0,x1:g.x1||g.x||0,y0:g.y0||g.y||0,y1:g.y1||g.y||0,xLabel:g.xLabel,yLabel:g.yLabel,zLabel:g.zLabel,text:g.text,name:g.name,idealAlign:g.idealAlign,borderColor:g.borderColor,fontFamily:g.fontFamily,fontSize:g.fontSize,fontColor:g.fontColor,fontWeight:g.fontWeight,fontStyle:g.fontStyle,fontVariant:g.fontVariant,nameLength:g.nameLength,textAlign:g.textAlign,trace:g.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:g.hovertemplate||!1,hovertemplateLabels:g.hovertemplateLabels||!1,eventData:A}}),s=!1,u=Fw(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||ea.background,container:Ao.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,v=5,h=0,d=0;f.sort(function(g,_){return g.y0-_.y0}).each(function(g,_){var w=g.y0-g.by/2;w-vk[0]._length||B<0||B>q[0]._length)return X0.unhoverRaw(e,r)}if(r.pointerX=ee+k[0]._offset,r.pointerY=B+q[0]._offset,"xval"in r?X=jn.flat(i,r.xval):X=jn.p2c(k,ee),"yval"in r?U=jn.flat(i,r.yval):U=jn.p2c(q,B),!Vi(X[0])||!Vi(U[0]))return Tt.warn("Fx.hover failed",r,e),X0.unhoverRaw(e,r)}var ge=1/0;function Re(yr,lt){for(V=0;Vfe&&(O.splice(0,fe),ge=O[0].distance),v&&I!==0&&O.length===0){Le.distance=I,Le.index=!1;var bt=Q._module.hoverPoints(Le,Ae,re,"closest",{hoverLayer:o._hoverlayer});if(bt&&(bt=bt.filter(function(nt){return nt.spikeDistance<=I})),bt&&bt.length){var La,na=bt.filter(function(nt){return nt.xa.showspikes&&nt.xa.spikesnap!=="hovered data"});if(na.length){var Hn=na[0];Vi(Hn.x0)&&Vi(Hn.y0)&&(La=Ee(Hn),(!ke.vLinePoint||ke.vLinePoint.spikeDistance>La.spikeDistance)&&(ke.vLinePoint=La))}var On=bt.filter(function(nt){return nt.ya.showspikes&&nt.ya.spikesnap!=="hovered data"});if(On.length){var Qt=On[0];Vi(Qt.x0)&&Vi(Qt.y0)&&(La=Ee(Qt),(!ke.hLinePoint||ke.hLinePoint.spikeDistance>La.spikeDistance)&&(ke.hLinePoint=La))}}}}}Re();function Ne(yr,lt,Gr){for(var gt=null,kt=1/0,ot,bt=0;bt0&&Math.abs(yr.distance)Se-1;Ke--)vr(O[Ke]);O=Ve,De()}var Pe=e._hoverdata,ae=[],ue=Ow(e),qe=Bw(e);for(H=0;H1||O.length>1)||h==="closest"&&se&&O.length>1,ua=ea.combine(o.plot_bgcolor||ea.background,o.paper_bgcolor),fa=Fw(O,{gd:e,hovermode:h,rotateLabels:At,bgColor:ua,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),Nt=fa.hoverLabels;if(jn.isUnifiedHover(h)||(KG(Nt,At,o,fa.commonLabelBoundingBox),Hw(Nt,At,o._invScaleX,o._invScaleY)),n&&n.tagName){var Ba=Gs.getComponentMethod("annotations","hasClickToShow")(e,ae);OG(Ao.select(n),Ba?"pointer":"")}!n||a||!jG(e,r,Pe)||(Pe&&e.emit("plotly_unhover",{event:r,points:Pe}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:k,yaxes:q,xvals:X,yvals:U}))}function Nw(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var JG=/([\s\S]*)<\/extra>/;function Fw(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||ko.HOVERFONT,v=r.fontSize||ko.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,g=r.fontLineposition||a.font.lineposition,_=r.fontShadow||a.font.shadow,w=e[0],T=w.xa,b=w.ya,A=n.charAt(0),C=A+"Label",k=w[C];if(k===void 0&&T.type==="multicategory")for(var q=0;qa.width-qe&&(Ce=a.width-qe),Se.attr("d","M"+(Pe-Ce)+",0L"+(Pe-Ce+pt)+","+ue+pt+"H"+qe+"v"+ue+(Or*2+Ke.height)+"H"+-qe+"V"+ue+pt+"H"+(Pe-Ce-pt)+"Z"),Pe=Ce,V.minX=Pe-qe,V.maxX=Pe+qe,T.side==="top"?(V.minY=ae-(Or*2+Ke.height),V.maxY=ae-Or):(V.minY=ae+Or,V.maxY=ae+(Or*2+Ke.height))}else{var or,lr,ar;b.side==="right"?(or="start",lr=1,ar="",Pe=T._offset+T._length):(or="end",lr=-1,ar="-",Pe=T._offset),ae=b._offset+(w.y0+w.y1)/2,Fe.attr("text-anchor",or),Se.attr("d","M0,0L"+ar+pt+","+pt+"V"+(Or+Ke.height/2)+"h"+ar+(Or*2+Ke.width)+"V-"+(Or+Ke.height/2)+"H"+ar+pt+"V-"+pt+"Z"),V.minY=ae-(Or+Ke.height/2),V.maxY=ae+(Or+Ke.height/2),b.side==="right"?(V.minX=Pe+pt,V.maxX=Pe+pt+(Or*2+Ke.width)):(V.minX=Pe-pt-(Or*2+Ke.width),V.maxX=Pe-pt);var Mr=Ke.height/2,Br=R-Ke.top-Mr,et="clip"+a._uid+"commonlabel"+b._id,Qr;if(Pe=0?Xe=He:Oe+ge=0?Xe=Oe:ne+ge=0?cr=Ue:De+Re=0?cr=De:Te+Re=0,(le.idealAlign==="top"||!yt)&&At?(ar-=Br/2,le.anchor="end"):yt?(ar+=Br/2,le.anchor="start"):le.anchor="middle",le.crossPos=ar;else{if(le.pos=ar,yt=lr+Mr/2+qt<=z,At=lr-Mr/2-qt>=0,(le.idealAlign==="left"||!yt)&&At)lr-=Mr/2,le.anchor="end";else if(yt)lr+=Mr/2,le.anchor="start";else{le.anchor="middle";var ua=qt/2,fa=lr+ua-z,Nt=lr-ua;fa>0&&(lr-=fa),Nt<0&&(lr+=-Nt)}le.crossPos=lr}ae.attr("text-anchor",le.anchor),qe&&ue.attr("text-anchor",le.anchor),Se.attr("transform",yy(lr,ar)+(i?IG(zw):""))}),{hoverLabels:fr,commonLabelBoundingBox:V}}function qw(e,r,t,a,n,i){var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Tt.templateString(e.name,e.trace._meta)),l=Pw(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l);var f=e.hovertemplate||!1;if(f){var v=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(v[s+"other"]=v[s+"Val"],v[s+"otherLabel"]=v[s+"Label"]),o=Tt.hovertemplateString(f,v,a._d3locale,e.eventData[0]||{},e.trace._meta),o=o.replace(JG,function(h,d){return l=Pw(d,e.nameLength),""})}return[o,l]}function KG(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,v=a.minX,h=a.maxX,d=a.minY,m=a.maxY,y=function(X){return X*t._invScaleX},g=function(X){return X*t._invScaleY};e.each(function(X){var U=X[n],H=X[i],V=U._id.charAt(0)==="x",K=U.range;f===0&&K&&K[0]>K[1]!==V&&(o=-1);var Q=0,ie=V?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var pe=Iw(X,r),me=X.anchor,Ae=me==="end"?-1:1,re,Le;if(me==="middle")re=X.crossPos+(V?g(pe.y-X.by/2):y(X.bx/2+X.tx2width/2)),Le=re+(V?g(X.by):y(X.bx));else if(V)re=X.crossPos+g(pt+pe.y)-g(X.by/2-pt),Le=re+g(X.by);else{var fe=y(Ae*pt+pe.x),ke=fe+y(Ae*X.bx);re=X.crossPos+Math.min(fe,ke),Le=X.crossPos+Math.max(fe,ke)}V?d!==void 0&&m!==void 0&&Math.min(Le,m)-Math.max(re,d)>1&&(H.side==="left"?(Q=H._mainLinePosition,ie=t.width):ie=H._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(Le,h)-Math.max(re,v)>1&&(H.side==="top"?(Q=H._mainLinePosition,ie=t.height):ie=H._mainLinePosition)}u[f++]=[{datum:X,traceIndex:X.trace.index,dp:0,pos:X.pos,posref:X.posref,size:X.by*(V?VG:1)/2,pmin:Q,pmax:ie}]}),u.sort(function(X,U){return X[0].posref-U[0].posref||o*(U[0].traceIndex-X[0].traceIndex)});var _,w,T,b,A,C,k;function q(X){var U=X[0],H=X[X.length-1];if(w=U.pmin-U.pos-U.dp+U.size,T=H.pos+H.dp+H.size-U.pmax,w>.01){for(A=X.length-1;A>=0;A--)X[A].dp+=w;_=!1}if(!(T<.01)){if(w<-.01){for(A=X.length-1;A>=0;A--)X[A].dp-=T;_=!1}if(_){var V=0;for(b=0;bU.pmax&&V++;for(b=X.length-1;b>=0&&!(V<=0);b--)C=X[b],C.pos>U.pmax-1&&(C.del=!0,V--);for(b=0;b=0;A--)X[A].dp-=T;for(b=X.length-1;b>=0&&!(V<=0);b--)C=X[b],C.pos+C.dp+C.size>U.pmax&&(C.del=!0,V--)}}}for(;!_&&l<=s;){for(l++,_=!0,b=0;b.01){for(A=R.length-1;A>=0;A--)R[A].dp+=w;for(D.push.apply(D,R),u.splice(b+1,1),k=0,A=D.length-1;A>=0;A--)k+=D[A].dp;for(T=k/D.length,A=D.length-1;A>=0;A--)D[A].dp-=T;_=!1}else b++}u.forEach(q)}for(b=u.length-1;b>=0;b--){var I=u[b];for(A=I.length-1;A>=0;A--){var O=I[A],J=O.datum;J.offset=O.dp,J.del=O.del}}}function Iw(e,r){var t=0,a=e.offset;return r&&(a*=-WG,t=e.offset*GG),{x:t,y:a}}function QG(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(pt+Or),a=t+r*(e.txwidth+Or),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Or),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Hw(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=Ao.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,v=QG(l),h=Iw(l,r),d=h.x,m=h.y,y=u==="middle",g="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,_;y?_="M-"+n(l.bx/2+l.tx2width/2)+","+i(m-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":g?_="M0,0L"+n(f*pt+d)+","+i(pt+m)+"v"+i(l.by/2-pt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*pt+d)+"V"+i(m-pt)+"Z":_="M"+n(f*pt+d)+","+i(m-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",_);var w=d+v.textShiftX,T=m+l.ty0-l.by/2+Or,b=l.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),w=y?-l.bx/2-l.tx2width/2+Or:-l.bx-Or):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),w=y?l.bx/2-l.tx2width/2-Or:l.bx+Or)),s.call(kn.positionText,n(w),i(T)),l.tx2width&&(o.select("text.name").call(kn.positionText,n(v.text2ShiftX+v.alignShift*Or+d),i(m+l.ty0-l.by/2+Or)),o.select("rect").call(Ai.setRect,n(v.text2ShiftX+(v.alignShift-1)*l.tx2width/2+d),i(m-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function $G(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(h){return h||Vi(h)&&h===0}var o=Array.isArray(t)?function(h,d){var m=Tt.castOption(n,t,h);return l(m)?m:Tt.extractOption({},a,"",d)}:function(h,d){return Tt.extractOption(i,a,h,d)};function s(h,d,m){var y=o(d,m);l(y)&&(e[h]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Tt.constrain(e.x0,0,e.xa._length),e.x1=Tt.constrain(e.x1,0,e.xa._length),e.y0=Tt.constrain(e.y0,0,e.ya._length),e.y1=Tt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:ki.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:ki.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=ki.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+ki.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=ki.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+ki.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function Dw(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var v=ea.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var h=r.hLinePoint,d,m;u=h&&h.xa,f=h&&h.ya;var y=f.spikesnap;y==="cursor"?(d=l.pointerX,m=l.pointerY):(d=u._offset+h.x,m=f._offset+h.y);var g=Sw.readability(h.color,v)<1.5?ea.contrast(v):h.color,_=f.spikemode,w=f.spikethickness,T=f.spikecolor||g,b=ki.getPxPosition(e,f),A,C;if(_.indexOf("toaxis")!==-1||_.indexOf("across")!==-1){if(_.indexOf("toaxis")!==-1&&(A=b,C=d),_.indexOf("across")!==-1){var k=f._counterDomainMin,q=f._counterDomainMax;f.anchor==="free"&&(k=Math.min(k,f.position),q=Math.max(q,f.position)),A=i.l+k*i.w,C=i.l+q*i.w}a.insert("line",":first-child").attr({x1:A,x2:C,y1:m,y2:m,"stroke-width":w,stroke:T,"stroke-dasharray":Ai.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:A,x2:C,y1:m,y2:m,"stroke-width":w+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}_.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:m,r:w,fill:T}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,R,z;u=D&&D.xa,f=D&&D.ya;var F=u.spikesnap;F==="cursor"?(R=l.pointerX,z=l.pointerY):(R=u._offset+D.x,z=f._offset+D.y);var I=Sw.readability(D.color,v)<1.5?ea.contrast(v):D.color,O=u.spikemode,J=u.spikethickness,X=u.spikecolor||I,U=ki.getPxPosition(e,u),H,V;if(O.indexOf("toaxis")!==-1||O.indexOf("across")!==-1){if(O.indexOf("toaxis")!==-1&&(H=U,V=z),O.indexOf("across")!==-1){var K=u._counterDomainMin,Q=u._counterDomainMax;u.anchor==="free"&&(K=Math.min(K,u.position),Q=Math.max(Q,u.position)),H=i.t+(1-Q)*i.h,V=i.t+(1-K)*i.h}a.insert("line",":first-child").attr({x1:R,x2:R,y1:H,y2:V,"stroke-width":J,stroke:X,"stroke-dasharray":Ai.dashStyle(u.spikedash,J)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:R,x2:R,y1:H,y2:V,"stroke-width":J+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}O.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:R,cy:U-(u.side!=="top"?J:-J),r:J,fill:X}).classed("spikeline",!0)}}}function jG(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function Ew(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function Pw(e,r){return kn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function eW(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;l{"use strict";var rW=Ie(),tW=Er(),aW=xi().isUnifiedHover;Yw.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&aW(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=tW.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),rW.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var Vw=Z((pse,Uw)=>{"use strict";var nW=Ie(),iW=J0(),lW=fs();Uw.exports=function(r,t){function a(n,i){return nW.coerce(r,t,lW,n,i)}iW(r,t,a)}});var Zw=Z((mse,Ww)=>{"use strict";var Gw=Ie(),oW=gv(),sW=J0();Ww.exports=function(r,t,a,n){function i(o,s){return Gw.coerce(r,t,oW,o,s)}var l=Gw.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),sW(r,t,i,l)}});var _y=Z((yse,Xw)=>{"use strict";var uW=Ie(),fW=fs();Xw.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:uW.coerce(r,t,fW,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var Qw=Z((gse,Kw)=>{"use strict";var Jw=Ie(),cW=fs(),vW=_y(),hW=J0();Kw.exports=function(r,t){function a(f,v){return Jw.coerce(r,t,cW,f,v)}var n=vW(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("mapbox"),o=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o||s)&&u===1||(l||o)&&s&&u===2)&&(t.dragmode="pan"),hW(r,t,a),Jw.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var eT=Z((bse,jw)=>{"use strict";var wy=Ie(),$w=br();jw.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return wy.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var pW=br(),mW=xy().hover;rT.exports=function(r,t,a){var n=pW.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&mW(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Si=Z((_se,iT)=>{"use strict";var yW=Ir(),K0=Ie(),gW=$n(),Tf=xi(),aT=fs(),nT=xy();iT.exports={moduleType:"component",name:"fx",constants:Uu(),schema:{layout:aT},attributes:gv(),layoutAttributes:aT,supplyLayoutGlobalDefaults:Vw(),supplyDefaults:Zw(),supplyLayoutDefaults:Qw(),calc:eT(),getDistanceFunction:Tf.getDistanceFunction,getClosest:Tf.getClosest,inbox:Tf.inbox,quadrature:Tf.quadrature,appendArrayPointValue:Tf.appendArrayPointValue,castHoverOption:xW,castHoverinfo:_W,hover:nT.hover,unhover:gW.unhover,loneHover:nT.loneHover,loneUnhover:bW,click:tT()};function bW(e){var r=K0.isD3Selection(e)?e:yW.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function xW(e,r,t){return K0.castOption(e,r,"hoverlabel."+t)}function _W(e,r,t){function a(n){return K0.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return K0.castOption(e,t,"hoverinfo",a)}});var Ws=Z(Gi=>{"use strict";Gi.selectMode=function(e){return e==="lasso"||e==="select"};Gi.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Gi.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Gi.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Gi.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Gi.selectingOrDrawing=function(e){return Gi.freeMode(e)||Gi.rectMode(e)}});var Q0=Z((Tse,lT)=>{"use strict";lT.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var $0=Z((Mse,oT)=>{"use strict";oT.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var eh=Z((Ase,sT)=>{"use strict";var j0=32;sT.exports={CIRCLE_SIDES:j0,i000:0,i090:j0/4,i180:j0/2,i270:j0/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var rh=Z((kse,fT)=>{"use strict";var wW=Ie().strTranslate;function uT(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function TW(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function MW(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return uT(e,t[r])}}function AW(e){return wW(e.xaxis._offset,e.yaxis._offset)}fT.exports={p2r:uT,r2p:TW,axValue:MW,getTransform:AW}});var Tl=Z(Wi=>{"use strict";var kW=fm(),hT=eh(),Zs=hT.CIRCLE_SIDES,Ty=hT.SQRT2,dT=rh(),cT=dT.p2r,vT=dT.r2p,SW=[0,3,4,5,6,1,2],CW=[0,3,4,1,2];Wi.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var pT=Zt(),xT=Ws(),LW=xT.drawMode,qW=xT.openMode,Xs=eh(),mT=Xs.i000,yT=Xs.i090,gT=Xs.i180,bT=Xs.i270,DW=Xs.cos45,EW=Xs.sin45,_T=rh(),ah=_T.p2r,Ml=_T.r2p,PW=pl(),RW=PW.clearOutline,nh=Tl(),zW=nh.readPaths,NW=nh.writePaths,FW=nh.ellipseOver,IW=nh.fixDatesForPaths;function HW(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!LW(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var OW=Ws(),BW=OW.selectMode,YW=pl(),UW=YW.clearOutline,My=Tl(),VW=My.readPaths,GW=My.writePaths,WW=My.fixDatesForPaths;MT.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,v=t.dragmode,h=(i.layout||{}).selections||[];if(!BW(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";AT.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Al=Z(la=>{"use strict";var So=Af(),kT=Ie(),lh=dt();la.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};la.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};la.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};la.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};la.extractPathCoords=function(e,r,t){var a=[],n=e.match(So.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.substr(1).match(So.paramRE);if(!(!o||o.lengthd&&(y="X"),y});return u>d&&(m=m.replace(/[\s,]*X.*/,""),kT.log("Ignoring extra params in segment "+s)),f+m})}function kf(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var Sy=Z((Ese,qT)=>{"use strict";var XW=Ie(),Js=dt(),ST=Ta(),CT=at(),JW=Tl().readPaths,ky=Al(),KW=ky.getPathString,LT=Sv(),QW=Pa().FROM_TL;qT.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=Js.getFromId(r,a.xref),s=Js.getFromId(r,a.yref);for(var u in LT){var f=LT[u](a,o,s);f!==void 0&&(l[u]=f)}}i=XW.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,l)}else i=a.label.text;var v={"data-index":t},h=a.label.font,d={"data-notex":1},m=n.append("g").attr(v).classed("shape-label",!0),y=m.append("text").attr(d).classed("shape-label-text",!0).text(i),g,_,w,T;if(a.path){var b=KW(r,a),A=JW(b,r);g=1/0,w=1/0,_=-1/0,T=-1/0;for(var C=0;C=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function jW(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,v=Math.PI/180*i,h=Math.sin(v),d=Math.cos(v),m=n.label.xanchor,y=n.label.yanchor,g,_,w,T;if(f==="line"){o==="start"?(g=e,_=r):o==="end"?(g=t,_=a):(g=(e+t)/2,_=(r+a)/2),m==="auto"&&(o==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var eZ=Ie(),rZ=eZ.strTranslate,DT=$n(),RT=Ws(),tZ=RT.drawMode,zT=RT.selectMode,NT=br(),ET=Er(),sh=eh(),aZ=sh.i000,nZ=sh.i090,iZ=sh.i180,lZ=sh.i270,oZ=pl(),FT=oZ.clearOutlineControllers,Ly=Tl(),oh=Ly.pointsOnRectangle,Cy=Ly.pointsOnEllipse,sZ=Ly.writePaths,uZ=ih().newShapes,fZ=ih().createShapeObj,cZ=Ay(),vZ=Sy();IT.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(Cy(r[0])||a.hasText)&&o({redrawing:!0})}function o(U){var H={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,H=uZ(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,H=cZ(t,a),i._fullLayout._reselect=!0),Object.keys(H).length&&NT.call((U||{}).redrawing?"relayout":"_guiRelayout",i,H)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,v=tZ(f),h=zT(f);(v||h)&&(i._fullLayout._outlining=!0),FT(i),t.attr("d",sZ(r));var d,m,y,g,_;if(!n&&(a.isActiveShape||a.isActiveSelection)){_=hZ([],r);var w=u.append("g").attr("class","outline-controllers");R(w),X()}if(v&&a.hasText){var T=u.select(".label-temp"),b=fZ(t,a,a.dragmode);vZ(i,"label-temp",b,T)}function A(U){y=+U.srcElement.getAttribute("data-i"),g=+U.srcElement.getAttribute("data-j"),d[y][g].moveFn=C}function C(U,H){if(r.length){var V=_[y][g][1],K=_[y][g][2],Q=r[y],ie=Q.length;if(oh(Q)){var pe=U,me=H;if(a.isActiveSelection){var Ae=PT(Q,g);Ae[1]===Q[g][1]?me=0:pe=0}for(var re=0;re1&&!(U.length===2&&U[1][0]==="Z")&&(g===0&&(U[0][0]="M"),r[y]=U,l(),o())}}function D(U,H){if(U===2){y=+H.srcElement.getAttribute("data-i"),g=+H.srcElement.getAttribute("data-j");var V=r[y];!oh(V)&&!Cy(V)&&q()}}function R(U){d=[];for(var H=0;H{"use strict";var pZ=Ir(),VT=br(),HT=Ie(),Ks=dt(),mZ=Tl().readPaths,yZ=uh(),ch=Sy(),GT=pl().clearOutlineControllers,qy=Er(),Ey=at(),gZ=ct().arrayEditor,OT=$n(),BT=wl(),Co=Af(),ja=Al(),Dy=ja.getPathString;XT.exports={draw:Py,drawOne:WT,eraseActiveShape:_Z,drawLabel:ch};function Py(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;nl&&Ge>o&&!Ne.shiftKey?OT.getCursor(Ue/ze,1-De/Ge):"move";BT(r,He),Le=He.split("-")[0]}}function be(Ne){fh(e)||(s&&(_=Q(t.xanchor)),u&&(w=ie(t.yanchor)),t.type==="path"?z=t.path:(d=s?t.x0:Q(t.x0),m=u?t.y0:ie(t.y0),y=s?t.x1:Q(t.x1),g=u?t.y1:ie(t.y1)),dg?(T=m,k="y0",b=g,q="y1"):(T=g,k="y1",b=m,q="y0"),se(Ne),Me(n,t),Re(r,t,e),re.moveFn=Le==="move"?B:ye,re.altKey=Ne.altKey)}function Y(){fh(e)||(BT(r),ge(n),ZT(r,e,t),VT.call("_guiRelayout",e,i.getUpdateObj()))}function ee(){fh(e)||ge(n)}function B(Ne,Ee){if(t.type==="path"){var ze=function(De){return De},Ge=ze,Ue=ze;s?h("xanchor",t.xanchor=pe(_+Ne)):(Ge=function(He){return pe(Q(He)+Ne)},I&&I.type==="date"&&(Ge=ja.encodeDate(Ge))),u?h("yanchor",t.yanchor=me(w+Ee)):(Ue=function(He){return me(ie(He)+Ee)},J&&J.type==="date"&&(Ue=ja.encodeDate(Ue))),h("path",t.path=YT(z,Ge,Ue))}else s?h("xanchor",t.xanchor=pe(_+Ne)):(h("x0",t.x0=pe(d+Ne)),h("x1",t.x1=pe(y+Ne))),u?h("yanchor",t.yanchor=me(w+Ee)):(h("y0",t.y0=me(m+Ee)),h("y1",t.y1=me(g+Ee)));r.attr("d",Dy(e,t)),Me(n,t),ch(e,a,t,F)}function ye(Ne,Ee){if(v){var ze=function(Je){return Je},Ge=ze,Ue=ze;s?h("xanchor",t.xanchor=pe(_+Ne)):(Ge=function($e){return pe(Q($e)+Ne)},I&&I.type==="date"&&(Ge=ja.encodeDate(Ge))),u?h("yanchor",t.yanchor=me(w+Ee)):(Ue=function($e){return me(ie($e)+Ee)},J&&J.type==="date"&&(Ue=ja.encodeDate(Ue))),h("path",t.path=YT(z,Ge,Ue))}else if(f){if(Le==="resize-over-start-point"){var De=d+Ne,He=u?m-Ee:m+Ee;h("x0",t.x0=s?De:pe(De)),h("y0",t.y0=u?He:me(He))}else if(Le==="resize-over-end-point"){var Oe=y+Ne,ne=u?g-Ee:g+Ee;h("x1",t.x1=s?Oe:pe(Oe)),h("y1",t.y1=u?ne:me(ne))}}else{var Te=function(Je){return Le.indexOf(Je)!==-1},Xe=Te("n"),cr=Te("s"),fr=Te("w"),le=Te("e"),Se=Xe?T+Ee:T,Fe=cr?b+Ee:b,We=fr?A+Ne:A,Ve=le?C+Ne:C;u&&(Xe&&(Se=T-Ee),cr&&(Fe=b-Ee)),(!u&&Fe-Se>o||u&&Se-Fe>o)&&(h(k,t[k]=u?Se:me(Se)),h(q,t[q]=u?Fe:me(Fe))),Ve-We>l&&(h(D,t[D]=s?We:pe(We)),h(R,t[R]=s?Ve:pe(Ve)))}r.attr("d",Dy(e,t)),Me(n,t),ch(e,a,t,F)}function Me(Ne,Ee){(s||u)&&ze();function ze(){var Ge=Ee.type!=="path",Ue=Ne.selectAll(".visual-cue").data([0]),De=1;Ue.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var He=Q(s?Ee.xanchor:HT.midRange(Ge?[Ee.x0,Ee.x1]:ja.extractPathCoords(Ee.path,Co.paramIsX))),Oe=ie(u?Ee.yanchor:HT.midRange(Ge?[Ee.y0,Ee.y1]:ja.extractPathCoords(Ee.path,Co.paramIsY)));if(He=ja.roundPositionForSharpStrokeRendering(He,De),Oe=ja.roundPositionForSharpStrokeRendering(Oe,De),s&&u){var ne="M"+(He-1-De)+","+(Oe-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ue.attr("d",ne)}else if(s){var Te="M"+(He-1-De)+","+(Oe-9-De)+"v18 h2 v-18 Z";Ue.attr("d",Te)}else{var Xe="M"+(He-9-De)+","+(Oe-1-De)+"h18 v2 h-18 Z";Ue.attr("d",Xe)}}}function ge(Ne){Ne.selectAll(".visual-cue").remove()}function Re(Ne,Ee,ze){var Ge=Ee.xref,Ue=Ee.yref,De=Ks.getFromId(ze,Ge),He=Ks.getFromId(ze,Ue),Oe="";Ge!=="paper"&&!De.autorange&&(Oe+=Ge),Ue!=="paper"&&!He.autorange&&(Oe+=Ue),Ey.setClipUrl(Ne,Oe?"clip"+ze._fullLayout._uid+Oe:null,ze)}}function YT(e,r,t){return e.replace(Co.segmentRE,function(a){var n=0,i=a.charAt(0),l=Co.paramIsX[i],o=Co.paramIsY[i],s=Co.numParams[i],u=a.substr(1).replace(Co.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function xZ(e,r){if(vh(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){UT(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=UT,Py(e)}}}function UT(e){if(vh(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(GT(e),delete e._fullLayout._activeShapeIndex,Py(e))}}function _Z(e){if(vh(e)){GT(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Sn=br(),JT=Ft(),KT=Zt(),Ur=$0(),wZ=hh().eraseActiveShape,dh=Ie(),Nr=dh._,Vr=aM.exports={};Vr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Nr(e,"Download plot as a PNG"):Nr(e,"Download plot")},icon:Ur.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};dh.notifier(Nr(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Sn.call("downloadImage",e,t).then(function(a){dh.notifier(Nr(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){dh.notifier(Nr(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Vr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Ur.disk,click:function(e){JT.sendDataToCloud(e)}};Vr.editInChartStudio={name:"editInChartStudio",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Ur.pencil,click:function(e){JT.sendDataToCloud(e)}};Vr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Nr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ur.zoombox,click:Na};Vr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Nr(e,"Pan")},attr:"dragmode",val:"pan",icon:Ur.pan,click:Na};Vr.select2d={name:"select2d",_cat:"select",title:function(e){return Nr(e,"Box Select")},attr:"dragmode",val:"select",icon:Ur.selectbox,click:Na};Vr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Nr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ur.lasso,click:Na};Vr.drawclosedpath={name:"drawclosedpath",title:function(e){return Nr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ur.drawclosedpath,click:Na};Vr.drawopenpath={name:"drawopenpath",title:function(e){return Nr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ur.drawopenpath,click:Na};Vr.drawline={name:"drawline",title:function(e){return Nr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ur.drawline,click:Na};Vr.drawrect={name:"drawrect",title:function(e){return Nr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ur.drawrect,click:Na};Vr.drawcircle={name:"drawcircle",title:function(e){return Nr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ur.drawcircle,click:Na};Vr.eraseshape={name:"eraseshape",title:function(e){return Nr(e,"Erase active shape")},icon:Ur.eraseshape,click:wZ};Vr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Nr(e,"Zoom in")},attr:"zoom",val:"in",icon:Ur.zoom_plus,click:Na};Vr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Nr(e,"Zoom out")},attr:"zoom",val:"out",icon:Ur.zoom_minus,click:Na};Vr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Nr(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ur.autoscale,click:Na};Vr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Nr(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ur.home,click:Na};Vr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Nr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ur.tooltip_basic,gravity:"ne",click:Na};Vr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Nr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ur.tooltip_compare,gravity:"ne",click:Na};function Na(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=KT.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var v=n==="in"?.5:2,h=(1+v)/2,d=(1-v)/2,m,y;for(f=0;f{"use strict";var nM=Ny(),AZ=Object.keys(nM),iM=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],lM=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(iM),$s=[],kZ=function(e){if(lM.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();$s.indexOf(r)===-1&&$s.push(r),$s.indexOf(t)===-1&&$s.push(t)}};AZ.forEach(function(e){kZ(nM[e])});$s.sort();oM.exports={DRAW_MODES:iM,backButtons:lM,foreButtons:$s}});var Iy=Z((Ise,sM)=>{"use strict";var Fse=Fy();sM.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var fM=Z((Hse,uM)=>{"use strict";var SZ=Ie(),Sf=Er(),CZ=ct(),LZ=Iy();uM.exports=function(r,t){var a=r.modebar||{},n=CZ.newContainer(t,"modebar");function i(o,s){return SZ.coerce(a,n,LZ,o,s)}i("orientation"),i("bgcolor",Sf.addOpacity(t.paper_bgcolor,.5));var l=Sf.contrast(Sf.rgb(t.modebar.bgcolor));i("color",Sf.addOpacity(l,.3)),i("activecolor",Sf.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var dM=Z((Ose,hM)=>{"use strict";var Hy=Ir(),qZ=Hr(),mh=Ie(),cM=$0(),DZ=lv().version,EZ=new DOMParser;function vM(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ci=vM.prototype;Ci.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(v){v.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),mh.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Ci.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};Ci.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Ci.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Hy.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||cM.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Ci.createIcon=function(e){var r=qZ(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=EZ.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Ci.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=Hy.select(a),s=function(v,h){var d=r.modebar,m=v.querySelector(".icon path");m&&(h||v.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:mh.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Ci.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var zZ=Zt(),pM=on(),Oy=br(),NZ=xi().isUnifiedHover,FZ=dM(),yh=Ny(),IZ=Fy().DRAW_MODES,HZ=Ie().extendDeep;mM.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=GZ(i):!a.displayModeBar&&a.watermark?l=[]:l=OZ(r),n?n.update(r,l):t._modeBar=FZ(r,l)};function OZ(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(H,V){if(typeof V=="string"){if(V.toLowerCase()===H.toLowerCase())return!0}else{var K=V.name,Q=V._cat||V.name;if(K===H||Q===H.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(H){for(var V=0;V1?(R=["toggleHover"],z=["resetViews"]):v?(D=["zoomInGeo","zoomOutGeo"],R=["hoverClosestGeo"],z=["resetGeo"]):f?(R=["hoverClosest3d"],z=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(D=["zoomInMapbox","zoomOutMapbox"],R=["toggleHover"],z=["resetViewMapbox"]):g?(D=["zoomInMap","zoomOutMap"],R=["toggleHover"],z=["resetViewMap"]):h?R=["hoverClosestPie"]:T?(R=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):R=["toggleHover"],u&&R.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(UZ(t)||A)&&(R=[]),u&&!b&&(D=["zoomIn2d","zoomOut2d","autoScale2d"],z[0]!=="resetViews"&&(z=["resetScale2d"])),f?F=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||m?F=["zoom2d","pan2d"]:y||g||v?F=["pan2d"]:_&&(F=["zoom2d"]),YZ(t)&&F.push("select2d","lasso2d");var I=[],O=function(H){I.indexOf(H)===-1&&R.indexOf(H)!==-1&&I.push(H)};if(Array.isArray(o)){for(var J=[],X=0;X{"use strict";gM.exports={moduleType:"component",name:"modebar",layoutAttributes:Iy(),supplyLayoutDefaults:fM(),manage:yM()}});var Yy=Z((Use,bM)=>{"use strict";var WZ=Pa().FROM_BL;bM.exports=function(r,t,a){a===void 0&&(a=WZ[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Lf=Z(Cf=>{"use strict";var Lo=Ie(),Uy=df(),ei=Zt().id2name,ZZ=Jn(),xM=Yy(),XZ=x0(),JZ=Vt().ALMOST_EQUAL,KZ=Pa().FROM_BL;Cf.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,v,h,d,m;for(o=0;oi?t.substr(i):a.substr(n))+l}function $Z(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lJZ*m&&!w)){for(i=0;iF&&KR&&(R=K);var ie=(R-D)/(2*z);v/=ie,D=s.l2r(D),R=s.l2r(R),s.range=s._input.range=C{"use strict";var bh=Ir(),Fa=br(),vn=Ft(),Cn=Ie(),Wy=Ta(),Zy=Q0(),qf=Er(),js=at(),MM=vf(),LM=By(),Df=dt(),Zi=Pa(),qM=Lf(),jZ=qM.enforce,eX=qM.clean,AM=df().doAutoRange,DM="start",rX="middle",EM="end",tX=ya().zindexSeparator;ra.layoutStyles=function(e){return Cn.syncOrAsync([vn.doAutoMargin,nX],e)};function aX(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function nX(e){var r=e._fullLayout,t=r._size,a=t.p,n=Df.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(js.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),ra.drawMainTitle(e),LM.manage(e),!r._has("cartesian"))return vn.previousPromises(e);function v(be,Y,ee){var B=be._lw/2;if(be._id.charAt(0)==="x"){if(Y){if(ee==="top")return Y._offset-a-B}else return t.t+t.h*(1-(be.position||0))+B%1;return Y._offset+Y._length+a+B}if(Y){if(ee==="right")return Y._offset+Y._length+a+B}else return t.l+t.w*(be.position||0)+B%1;return Y._offset-a-B}for(i=0;i0){sX(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:CM(r.yanchor)}).call(Wy.positionText,l,i);var f=(r.text.match(Wy.BR_TAG_ALL)||[]).length;if(f){var v=Zi.LINE_SPACING*f+Zi.MID_SHIFT;r.y===0&&(v=-v),o.selectAll(".line").each(function(){var g=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",g)})}var h=bh.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=o.node().getBBox(),m=d.y+d.height,y=m+MM.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:l,y,"text-anchor":a,dy:CM(r.yanchor)}).call(Wy.positionText,l,y)}}}};function iX(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=Cn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return Cn.isTopAnchor(r)&&t==="t"||Cn.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=lX(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function sX(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&iX(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),vn.allowAutoMargin(e,n),vn.autoMargin(e,n,o)}function uX(e,r){var t=e.title,a=e._size,n=0;switch(r===DM?n=t.pad.l:r===EM&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function fX(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===Zi.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function CM(e){return e==="top"?Zi.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Zi.MID_SHIFT+"em"}function cX(e){var r=e.title,t=rX;return Cn.isRightAnchor(r)?t=EM:Cn.isLeftAnchor(r)&&(t=DM),t}function vX(e){var r=e.title,t="0em";return Cn.isTopAnchor(r)?t=Zi.CAP_SHIFT+"em":Cn.isMiddleAnchor(r)&&(t=Zi.MID_SHIFT+"em"),t}ra.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var hX=Tl().readPaths,dX=uh(),PM=pl().clearOutlineControllers,Xy=Er(),RM=at(),pX=ct().arrayEditor,zM=Al(),mX=zM.getPathString;FM.exports={draw:_h,drawOne:NM,activateLastSelection:bX};function _h(e){var r=e._fullLayout;PM(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;g--){var _=l.append("path").attr(s).style("opacity",g?.1:u).call(Xy.stroke,v).call(Xy.fill,f).call(RM.dashLine,g?"solid":d,g?4+h:h);if(yX(_,e,a),m){var w=pX(e.layout,"selections",a);_.style({cursor:"move"});var T={element:_.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=hX(o,e);dX(b,_,T)}else _.style("pointer-events",g?"all":"none");y[g]=_}var A=y[0],C=y[1];C.node().addEventListener("click",function(){return gX(e,A)})}}function yX(e,r,t){var a=t.xref+t.yref;RM.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function gX(e,r){if(wh(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){Jy(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=Jy,_h(e)}}}function bX(e){if(wh(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=Jy,_h(e)}}function Jy(e){if(wh(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(PM(e),delete e._fullLayout._activeSelectionIndex,_h(e))}}});var HM=Z((Zse,IM)=>{function xX(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}IM.exports=xX});var BM=Z((Xse,OM)=>{function _X(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-v)/(o-v)+f-n>e&&(s=!s),l=f,o=v}return s}};return r}OM.exports=_X});var UM=Z((Jse,YM)=>{var wX={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};YM.exports=wX});var GM=Z((Kse,VM)=>{var Ef=UM();function TX(e,r,t){function a(m,y){return{id:t?t.segmentId():-1,start:m,end:y,myFill:{above:null,below:null},otherFill:null}}function n(m,y,g){return{id:t?t.segmentId():-1,start:m,end:y,myFill:{above:g.myFill.above,below:g.myFill.below},otherFill:null}}var i=Ef.create();function l(m,y,g,_,w,T){var b=r.pointsCompare(y,w);return b!==0?b:r.pointsSame(g,T)?0:m!==_?m?1:-1:r.pointAboveOrOnLine(g,_?w:T,_?T:w)?1:-1}function o(m,y){i.insertBefore(m,function(g){var _=l(m.isStart,m.pt,y,g.isStart,g.pt,g.other.pt);return _<0})}function s(m,y){var g=Ef.node({isStart:!0,pt:m.start,seg:m,primary:y,other:null,status:null});return o(g,m.end),g}function u(m,y,g){var _=Ef.node({isStart:!1,pt:y.end,seg:y,primary:g,other:m,status:null});m.other=_,o(_,m.pt)}function f(m,y){var g=s(m,y);return u(g,m,y),g}function v(m,y){t&&t.segmentChop(m.seg,y),m.other.remove(),m.seg.end=y,m.other.pt=y,o(m.other,m.pt)}function h(m,y){var g=n(y,m.seg.end,m.seg);return v(m,y),f(g,m.primary)}function d(m,y){var g=Ef.create();function _(J,X){var U=J.seg.start,H=J.seg.end,V=X.seg.start,K=X.seg.end;return r.pointsCollinear(U,V,K)?r.pointsCollinear(H,V,K)||r.pointAboveOrOnLine(H,V,K)?1:-1:r.pointAboveOrOnLine(U,V,K)?1:-1}function w(J){return g.findTransition(function(X){var U=_(J,X.ev);return U>0})}function T(J,X){var U=J.seg,H=X.seg,V=U.start,K=U.end,Q=H.start,ie=H.end;t&&t.checkIntersection(U,H);var pe=r.linesIntersect(V,K,Q,ie);if(pe===!1){if(!r.pointsCollinear(V,K,Q)||r.pointsSame(V,ie)||r.pointsSame(K,Q))return!1;var me=r.pointsSame(V,Q),Ae=r.pointsSame(K,ie);if(me&&Ae)return X;var re=!me&&r.pointBetween(V,Q,ie),Le=!Ae&&r.pointBetween(K,Q,ie);if(me)return Le?h(X,K):h(J,ie),X;re&&(Ae||(Le?h(X,K):h(J,ie)),h(X,V))}else pe.alongA===0&&(pe.alongB===-1?h(J,Q):pe.alongB===0?h(J,pe.pt):pe.alongB===1&&h(J,ie)),pe.alongB===0&&(pe.alongA===-1?h(X,V):pe.alongA===0?h(X,pe.pt):pe.alongA===1&&h(X,K));return!1}for(var b=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let J=function(){if(k){var X=T(A,k);if(X)return X}return q?T(A,q):!1};var O=J;t&&t.segmentNew(A.seg,A.primary);var C=w(A),k=C.before?C.before.ev:null,q=C.after?C.after.ev:null;t&&t.tempStatus(A.seg,k?k.seg:!1,q?q.seg:!1);var D=J();if(D){if(e){var R;A.seg.myFill.below===null?R=!0:R=A.seg.myFill.above!==A.seg.myFill.below,R&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(D.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var R;A.seg.myFill.below===null?R=!0:R=A.seg.myFill.above!==A.seg.myFill.below,q?A.seg.myFill.below=q.seg.myFill.above:A.seg.myFill.below=m,R?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var z;q?A.primary===q.primary?z=q.seg.otherFill.above:z=q.seg.myFill.above:z=A.primary?y:m,A.seg.otherFill={above:z,below:z}}t&&t.status(A.seg,k?k.seg:!1,q?q.seg:!1),A.other.status=C.insert(Ef.node({ev:A}))}else{var F=A.status;if(F===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(g.exists(F.prev)&&g.exists(F.next)&&T(F.prev.ev,F.next.ev),t&&t.statusRemove(F.ev.seg),F.remove(),!A.primary){var I=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=I}b.push(A.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(m){for(var y,g=m[m.length-1],_=0;_{function MX(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function v(O,J,X){return f.index=O,f.matches_head=J,f.matches_pt1=X,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function Pf(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var AX={union:function(e,r){return Pf(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Pf(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Pf(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Pf(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Pf(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};XM.exports=AX});var QM=Z((jse,KM)=>{var kX={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var SX=HM(),CX=BM(),$M=GM(),LX=ZM(),Rf=JM(),jM=QM(),Ln=!1,zf=CX(),en;en={buildLog:function(e){return e===!0?Ln=SX():e===!1&&(Ln=!1),Ln===!1?!1:Ln.list},epsilon:function(e){return zf.epsilon(e)},segments:function(e){var r=$M(!0,zf,Ln);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=$M(!1,zf,Ln);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Rf.union(e.combined,Ln),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Rf.intersect(e.combined,Ln),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Rf.difference(e.combined,Ln),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Rf.differenceRev(e.combined,Ln),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Rf.xor(e.combined,Ln),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:LX(e.segments,zf,Ln),inverted:e.inverted}},polygonFromGeoJSON:function(e){return jM.toPolygon(en,e)},polygonToGeoJSON:function(e){return jM.fromPolygon(en,zf,e)},union:function(e,r){return Nf(e,r,en.selectUnion)},intersect:function(e,r){return Nf(e,r,en.selectIntersect)},difference:function(e,r){return Nf(e,r,en.selectDifference)},differenceRev:function(e,r){return Nf(e,r,en.selectDifferenceRev)},xor:function(e,r){return Nf(e,r,en.selectXor)}};function Nf(e,r,t){var a=en.segments(e),n=en.segments(r),i=en.combine(a,n),l=t(i);return en.polygon(l)}typeof window=="object"&&(window.PolyBool=en);eA.exports=en});var aA=Z((rue,tA)=>{tA.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=m>l&&i<(d-v)*(l-h)/(m-h)+v;y&&(o=!o)}return o}});var $y=Z((tue,nA)=>{"use strict";var Qy=Mv().dot,Th=Vt().BADNUM,Mh=nA.exports={};Mh.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||_===Th||_l||y&&u(m))}function v(m,y){var g=m[0],_=m[1];if(g===Th||gn||_===Th||_l)return!1;var w=t.length,T=t[0][0],b=t[0][1],A=0,C,k,q,D,R;for(C=1;CMath.max(k,T)||_>Math.max(q,b)))if(_o||Math.abs(Qy(v,u))>n)return!0;return!1};Mh.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var v=f+1;v1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var lA=Z((aue,iA)=>{"use strict";iA.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var CA=Z((nue,SA)=>{"use strict";var oA=rA(),qX=aA(),Hf=br(),DX=at().dashStyle,Ff=Er(),EX=Si(),PX=xi().makeEventData,Vf=Ws(),RX=Vf.freeMode,zX=Vf.rectMode,Of=Vf.drawMode,tg=Vf.openMode,ag=Vf.selectMode,sA=Al(),uA=Af(),dA=uh(),pA=pl().clearOutline,mA=Tl(),jy=mA.handleEllipse,NX=mA.readPaths,FX=ih().newShapes,IX=Ay(),HX=Ky().activateLastSelection,kh=Ie(),OX=kh.sorterAsc,yA=$y(),If=Nv(),qn=Zt().getFromId,BX=Q0(),YX=xh().redrawReglTraces,Sh=lA(),Li=Sh.MINSELECT,UX=yA.filter,ng=yA.tester,ig=rh(),fA=ig.p2r,VX=ig.axValue,GX=ig.getTransform;function lg(e){return e.subplot!==void 0}function WX(e,r,t,a,n){var i=!lg(a),l=RX(n),o=zX(n),s=tg(n),u=Of(n),f=ag(n),v=n==="drawline",h=n==="drawcircle",d=v||h,m=a.gd,y=m._fullLayout,g=f&&y.newselection.mode==="immediate"&&i,_=y._zoomlayer,w=a.element.getBoundingClientRect(),T=a.plotinfo,b=GX(T),A=r-w.left,C=t-w.top;y._calcInverseTransform(m);var k=kh.apply3DTransform(y._invTransform)(A,C);A=k[0],C=k[1];var q=y._invScaleX,D=y._invScaleY,R=A,z=C,F="M"+A+","+C,I=a.xaxes[0],O=a.yaxes[0],J=I._length,X=O._length,U=e.altKey&&!(Of(n)&&s),H,V,K,Q,ie,pe,me;bA(e,m,a),l&&(H=UX([[A,C]],Sh.BENDPX));var Ae=_.selectAll("path.select-outline-"+T.id).data([1]),re=u?y.newshape:y.newselection;u&&(a.hasText=re.label.text||re.label.texttemplate);var Le=u&&!s?re.fillcolor:"rgba(0,0,0,0)",fe=re.line.color||(i?Ff.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Ae.enter().append("path").attr("class","select-outline select-outline-"+T.id).style({opacity:u?re.opacity/2:1,"stroke-dasharray":DX(re.line.dash,re.line.width),"stroke-width":re.line.width+"px","shape-rendering":"crispEdges"}).call(Ff.stroke,fe).call(Ff.fill,Le).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",F+"Z");var ke=_.append("path").attr("class","zoombox-corners").style({fill:Ff.background,stroke:Ff.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var se=_.select(".label-temp");se.empty()&&(se=_.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var be=y._uid+Sh.SELECTID,Y=[],ee=Ch(m,a.xaxes,a.yaxes,a.subplot);g&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var ye=I._id,Me=O._id;MA(m,ye,Me,ee);for(var ge=(m.layout||{}).selections||[],Re=[],Ne=!1,Ee=0;Ee=0){m._fullLayout._deactivateShape(m);return}if(!u){var ge=y.clickmode;If.done(be).then(function(){if(If.clear(be),ye===2){for(Ae.remove(),ie=0;ie-1&&gA(Me,m,a.xaxes,a.yaxes,a.subplot,a,Ae),ge==="event"&&Uf(m,void 0);EX.click(m,Me,T.id)}).catch(kh.error)}},a.doneFn=function(){ke.remove(),If.done(be).then(function(){If.clear(be),!g&&Q&&a.selectionDefs&&(Q.subtract=U,a.selectionDefs.push(Q),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,K)),(g||u)&&Bf(a,g),a.doneFnCompleted&&a.doneFnCompleted(Y),f&&Uf(m,me)}).catch(kh.error)}}function gA(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,v=[],h,d,m,y,g,_,w,T,b,A;if(QX(o)){bA(e,r,i),h=Ch(r,t,a,n);var C=$X(o,h),k=C.pointNumbers.length>0;if(k?jX(h,C):eJ(h)&&(w=vA(C))){for(l&&l.remove(),A=0;A=0}function KX(e){return e._fullLayout._activeSelectionIndex>=0}function Bf(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;JX(n)&&n._fullLayout._deactivateShape(n),KX(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=Of(t),s=ag(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=FX(u,e)),f&&Hf.call("_guiRelayout",n,{shapes:f});var v;s&&!lg(e)&&(v=IX(u,e)),v&&(n._fullLayout._noEmitSelectedAtStart=!0,Hf.call("_guiRelayout",n,{selections:v}).then(function(){r&&HX(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function cA(e){return e._id}function Ch(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(cA),l=t.map(cA),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function jX(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Yf(e,r,t){var a;for(a=0;a-1&&r;if(!l&&r){var ye=hA(e,!0);if(ye.length){var Me=ye[0].xref,ge=ye[0].yref;if(Me&&ge){var Re=AA(ye),Ne=kA([qn(e,Me,"x"),qn(e,ge,"y")]);Ne(Y,Re)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:B&&Uf(e,Y),h._reselect=!1}if(!l&&h._deselect){var Ee=h._deselect;o=Ee.xref,s=Ee.yref,aJ(o,s,f)||MA(e,o,s,a),B&&(Y.points.length?Uf(e,Y):ug(e)),h._deselect=!1}return{eventData:Y,selectionTesters:t}}function tJ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";LA.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Gf=Z((lue,qA)=>{"use strict";qA.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var eu=Z((sue,PA)=>{"use strict";var DA=fg(),EA=ma(),Lh=ya(),sJ=ct().templatedArray,oue=Gf();PA.exports=sJ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:EA({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:DA.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:DA.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Lh.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Lh.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Lh.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Lh.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:EA({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var qh=Z((uue,RA)=>{"use strict";RA.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var NA=Z((fue,zA)=>{"use strict";zA.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var qo=Z((cue,YA)=>{"use strict";var FA=t0().axisHoverFormat,uJ=yi().texttemplateAttrs,fJ=yi().hovertemplateAttrs,IA=uf(),cJ=ma(),vJ=mi().dash,hJ=mi().pattern,dJ=at(),pJ=qh(),Dh=Gt().extendFlat,mJ=NA();function HA(e){return{valType:"any",dflt:0,editType:"calc"}}function OA(e){return{valType:"any",editType:"calc"}}function BA(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}YA.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:HA("x"),yperiod:HA("y"),xperiod0:OA("x0"),yperiod0:OA("y0"),xperiodalignment:BA("x"),yperiodalignment:BA("y"),xhoverformat:FA("x"),yhoverformat:FA("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:uJ({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:fJ({},{keys:pJ.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Dh({},vJ,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:mJ(!0),fillgradient:Dh({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:hJ,marker:Dh({symbol:{valType:"enumerated",values:dJ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Dh({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},IA("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},IA("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:cJ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var cg=Z((hue,GA)=>{"use strict";var UA=eu(),VA=qo().line,yJ=mi().dash,Eh=Gt().extendFlat,gJ=pi().overrideAll,bJ=ct().templatedArray,vue=Gf();GA.exports=gJ(bJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Eh({},UA.xref,{}),yref:Eh({},UA.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:VA.color,width:Eh({},VA.width,{min:1,dflt:1}),dash:Eh({},yJ,{dflt:"dot"})}}),"arraydraw","from-root")});var JA=Z((due,XA)=>{"use strict";var WA=Ie(),Ph=dt(),xJ=Kn(),_J=cg(),ZA=Al();XA.exports=function(r,t){xJ(r,t,{name:"selections",handleItemDefaults:wJ});for(var a=t.selections,n=0;n{"use strict";KA.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Wf=Z((mue,ek)=>{"use strict";var TJ=br(),$A=Ie(),jA=Zt();ek.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=TJ.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,v=s.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var rk=Ky(),Zf=CA();tk.exports={moduleType:"component",name:"selections",layoutAttributes:cg(),supplyLayoutDefaults:JA(),supplyDrawNewSelectionDefaults:QA(),includeBasePlot:Wf()("selections"),draw:rk.draw,drawOne:rk.drawOne,reselect:Zf.reselect,prepSelect:Zf.prepSelect,clearOutline:Zf.clearOutline,clearSelectionsCache:Zf.clearSelectionsCache,selectOnClick:Zf.selectOnClick}});var Tk=Z((gue,wk)=>{"use strict";var mg=Ir(),Dn=Ie(),ak=Dn.numberFormat,MJ=bn(),AJ=Km(),Rh=br(),vk=Dn.strTranslate,kJ=Ta(),nk=Er(),Sl=at(),SJ=Si(),ik=dt(),CJ=wl(),LJ=$n(),hk=Ws(),zh=hk.selectingOrDrawing,qJ=hk.freeMode,DJ=Pa().FROM_TL,EJ=Q0(),PJ=xh().redrawReglTraces,RJ=Ft(),hg=Zt().getFromId,zJ=ru().prepSelect,NJ=ru().clearOutline,FJ=ru().selectOnClick,vg=Yy(),yg=ya(),lk=yg.MINDRAG,Ua=yg.MINZOOM,ok=!0;function IJ(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,v,h,d,m,y,g,_,w,T,b,A,C,k,q,D,R,z,F,I,O,J,X,U;t+=r.yaxis._shift;function H(){if(v=r.xaxis,h=r.yaxis,T=v._length,b=h._length,_=v._offset,w=h._offset,d={},d[v._id]=v,m={},m[h._id]=h,l&&o)for(var le=r.overlays,Se=0;Se=0){Fe._fullLayout._deactivateShape(Fe);return}var We=Fe._fullLayout.clickmode;if(pg(Fe),le===2&&!f&&Oe(),u)We.indexOf("select")>-1&&FJ(Se,Fe,y,g,r.id,Q),We.indexOf("event")>-1&&SJ.click(Fe,Se,r.id);else if(le===1&&f){var Ve=l?h:v,Je=l==="s"||o==="w"?0:1,$e=Ve._name+".range["+Je+"]",vr=HJ(Ve,Je),Ke="left",Pe="middle";if(Ve.fixedrange)return;l?(Pe=l==="n"?"top":"bottom",Ve.side==="right"&&(Ke="right")):o==="e"&&(Ke="right"),Fe._context.showAxisRangeEntryBoxes&&mg.select(K).call(kJ.makeEditable,{gd:Fe,immediate:!0,background:Fe._fullLayout.paper_bgcolor,text:String(vr),fill:Ve.tickfont?Ve.tickfont.color:"#444",horizontalAlign:Ke,verticalAlign:Pe}).on("edit",function(ae){var ue=Ve.d2r(ae);ue!==void 0&&Rh.call("_guiRelayout",Fe,$e,ue)})}}LJ.init(Q);var me,Ae,re,Le,fe,ke,se,be,Y,ee;function B(le,Se,Fe){var We=K.getBoundingClientRect();me=Se-We.left,Ae=Fe-We.top,e._fullLayout._calcInverseTransform(e);var Ve=Dn.apply3DTransform(e._fullLayout._invTransform)(me,Ae);me=Ve[0],Ae=Ve[1],re={l:me,r:me,w:0,t:Ae,b:Ae,h:0},Le=e._hmpixcount?e._hmlumcount/e._hmpixcount:MJ(e._fullLayout.plot_bgcolor).getLuminance(),fe="M0,0H"+T+"V"+b+"H0V0",ke=!1,se="xy",ee=!1,be=mk(s,Le,_,w,fe),Y=yk(s,_,w)}function ye(le,Se){if(e._transitioningWithDuration)return!1;var Fe=Math.max(0,Math.min(T,X*le+me)),We=Math.max(0,Math.min(b,U*Se+Ae)),Ve=Math.abs(Fe-me),Je=Math.abs(We-Ae);re.l=Math.min(me,Fe),re.r=Math.max(me,Fe),re.t=Math.min(Ae,We),re.b=Math.max(Ae,We);function $e(){se="",re.r=re.l,re.t=re.b,Y.attr("d","M0,0Z")}if(A.isSubplotConstrained)Ve>Ua||Je>Ua?(se="xy",Ve/T>Je/b?(Je=Ve*b/T,Ae>We?re.t=Ae-Je:re.b=Ae+Je):(Ve=Je*T/b,me>Fe?re.l=me-Ve:re.r=me+Ve),Y.attr("d",Nh(re))):$e();else if(C.isSubplotConstrained)if(Ve>Ua||Je>Ua){se="xy";var vr=Math.min(re.l/T,(b-re.b)/b),Ke=Math.max(re.r/T,(b-re.t)/b);re.l=vr*T,re.r=Ke*T,re.b=(1-vr)*b,re.t=(1-Ke)*b,Y.attr("d",Nh(re))}else $e();else!q||Je0){var ae;if(C.isSubplotConstrained||!k&&q.length===1){for(ae=0;ae1&&($e.maxallowed!==void 0&&R===($e.range[0]<$e.range[1]?"e":"w")||$e.minallowed!==void 0&&R===($e.range[0]<$e.range[1]?"w":"e"))&&(or=1,ar=0),Ce?(lr=ue,Mr=l||C.isSubplotConstrained?le[1]:fr(vr,lr)):C.yaHash[vr._id]?(lr=ue,Mr=le[1]*vr._length/h._length):C.xaHash[vr._id]?(lr=ae,Mr=k==="ew"?-le[0]*vr._length/v._length:fr(vr,lr,{e:"right",w:"left"}[k])):(lr=Xe(vr,ae,ue),Mr=cr(vr,lr)),lr>1&&(vr.maxallowed!==void 0&&z===(vr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function BJ(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function mk(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",vk(t,a)).attr("d",n+"Z")}function yk(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:nk.background,stroke:nk.defaultLine,"stroke-width":1,opacity:0}).attr("transform",vk(r,t)).attr("d","M0,0Z")}function gk(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),bk(e,r,n,i)}function bk(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function pg(e){mg.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function xk(e){ok&&e.data&&e._context.showTips&&(Dn.notifier(Dn._(e,"Double-click to zoom back out"),"long"),ok=!1)}function YJ(e,r){return"M"+(e.l-.5)+","+(r-Ua-.5)+"h-3v"+(2*Ua+1)+"h3ZM"+(e.r+.5)+","+(r-Ua-.5)+"h3v"+(2*Ua+1)+"h-3Z"}function UJ(e,r){return"M"+(r-Ua-.5)+","+(e.t-.5)+"v-3h"+(2*Ua+1)+"v3ZM"+(r-Ua-.5)+","+(e.b+.5)+"v3h"+(2*Ua+1)+"v-3Z"}function Nh(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ua)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function fk(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,v,h=(n||{}).xaHash,d=(n||{}).yaHash,m=0;m{"use strict";var VJ=Ir(),Fh=Si(),GJ=$n(),WJ=wl(),ri=Tk().makeDragBox,ta=ya().DRAGGERSIZE;Ih.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){VJ.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=ri(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Fh.hover(r,h,i)},Fh.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,GJ.unhover(r,h))},r._context.showAxisDragHandles&&(ri(r,l,o._offset-ta,s._offset-ta,ta,ta,"n","w"),ri(r,l,o._offset+o._length,s._offset-ta,ta,ta,"n","e"),ri(r,l,o._offset-ta,s._offset+s._length,ta,ta,"s","w"),ri(r,l,o._offset+o._length,s._offset+s._length,ta,ta,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=ta),ri(r,l,o._offset+o._length*.1,f,o._length*.8,ta,"","ew"),ri(r,l,o._offset,f,o._length*.1,ta,"","w"),ri(r,l,o._offset+o._length*.9,f,o._length*.1,ta,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=ta),ri(r,l,v,s._offset+s._length*.1,ta,s._length*.8,"ns",""),ri(r,l,v,s._offset+s._length*.9,ta,s._length*.1,"s",""),ri(r,l,v,s._offset,ta,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Fh.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Fh.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Ih.updateFx(r)}};Ih.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";WJ(r._draggers,t)}});var kk=Z((xue,Ak)=>{"use strict";var Mk=br();Ak.exports=function(r){for(var t=Mk.layoutArrayContainers,a=Mk.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var ZJ=nl(),bg=Tv(),Xf=ro(),XJ=vp().sorterAsc,xg=br();Jf.containerArrayMatch=kk();var JJ=Jf.isAddVal=function(r){return r==="add"||ZJ(r)},Sk=Jf.isRemoveVal=function(r){return r===null||r==="remove"};Jf.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=xg.getComponentMethod(l,"supplyLayoutDefaults"),s=xg.getComponentMethod(l,"draw"),u=xg.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===bg||s===bg,v=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Xf.warn("Full array edits are incompatible with other edits",l);var d=a[""][""];if(Sk(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Xf.warn("Unrecognized full array edit value",l,d),!0;return f?!1:(o(v,h),s(r),!0)}var m=Object.keys(a).map(Number).sort(XJ),y=t.get(),g=y||[],_=i(h,l).get(),w=[],T=-1,b=g.length,A,C,k,q,D,R,z,F;for(A=0;Ag.length-(z?0:1)){Xf.warn("index out of range",l,k);continue}if(R!==void 0)D.length>1&&Xf.warn("Insertion & removal are incompatible with edits to the same index.",l,k),Sk(R)?w.push(k):z?(R==="add"&&(R={}),g.splice(k,0,R),_&&_.splice(k,0,{})):Xf.warn("Unrecognized full object edit value",l,k,R),T===-1&&(T=k);else for(C=0;C=0;A--)g.splice(w[A],1),_&&_.splice(w[A],1);if(g.length?y||t.set(g):t.set(null),f)return!1;if(o(v,h),u!==bg){var I;if(T===-1)I=m;else{for(b=Math.max(g.length,b),I=[],A=0;A=T));A++)I.push(k);for(A=T;A{"use strict";var Ek=Hr(),Pk=br(),Ia=Ie(),Kf=Ft(),Rk=Zt(),zk=Er(),Qf=Rk.cleanId,KJ=Rk.getFromTrace,_g=Pk.traceIs,QJ=["x","y","z"];En.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ia.log("Clearing previous rejected promises from queue."),e._promises=[]};En.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Kf.subplotsRegistry.cartesian||{}).attrRegex,n=(Kf.subplotsRegistry.polar||{}).attrRegex,i=(Kf.subplotsRegistry.ternary||{}).attrRegex,l=(Kf.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(g.x=1.02,g.xanchor="left"):g.x<-2&&(g.x=-.02,g.xanchor="right"),g.y>3?(g.y=1.02,g.yanchor="bottom"):g.y<-2&&(g.y=-.02,g.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),zk.clean(e),e.template&&e.template.layout&&En.cleanLayout(e.template.layout),e};function tu(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=Qf(t,a,!0))}En.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}En.hasParent=function(e,r){for(var t=Dk(r);t;){if(t in e)return!0;t=Dk(t)}return!1};En.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>Ia.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;aIa.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?wg(n,i):!1))return!1}return!0}return!1};En.collectionsAreEqual=wg});var Cg=Z(Yr=>{"use strict";var Yh=Ir(),eK=Hr(),rK=kp(),rr=Ie(),ut=rr.nestedProperty,Ag=tf(),Va=h6(),Pn=br(),Jh=As(),xr=Ft(),Ha=dt(),tK=Jm(),aK=Jn(),Tg=at(),nK=Er(),iK=gg().initInteractions,lK=fo(),oK=ru().clearOutline,Bk=eo().dfltConfig,Oh=Ck(),zt=Nk(),jr=xh(),Cl=pi(),sK=ya().AX_NAME_PATTERN,Mg=0,Fk=5;function uK(e,r,t,a){var n;if(e=rr.getGraphDiv(e),Ag.init(e),rr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=Ag.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!rr.isPlotDiv(e)&&rr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Yr.addFrames(e,n)}Uk(e,a),t||(t={}),Yh.select(e).classed("js-plotly-plot",!0),Tg.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(zt.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=zt.cleanLayout(t)),xr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(EK(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Tg.initGradients(e),Tg.initPatterns(e),s&&Ha.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&xr.doCalcdata(e);for(var h=0;h=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function Vk(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Vh(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Vh(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function dK(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof q.parts[z]!="string";)z--;var F=q.parts[z],I=q.parts[z-1]+"."+F,O=q.parts.slice(0,z).join("."),J=ut(e.layout,O).get(),X=ut(a,O).get(),U=q.get();if(D!==void 0){_[k]=D,w[k]=F==="reverse"?D:Xi(U);var H=Jh.getLayoutValObject(a,q.parts);if(H&&H.impliedEdits&&D!==null)for(var V in H.impliedEdits)T(rr.relativeAttr(k,V),H.impliedEdits[V]);if(["width","height"].indexOf(k)!==-1)if(D){T("autosize",null);var K=k==="height"?"width":"height";T(K,a[K])}else a[k]=e._initialAutoSize[k];else if(k==="autosize")T("width",D?null:a.width),T("height",D?null:a.height);else if(I.match(jk))C(I),ut(a,O+"._inputRange").set(null);else if(I.match(eS)){C(I),ut(a,O+"._inputRange").set(null);var Q=ut(a,O).get();Q._inputDomain&&(Q._input.domain=Q._inputDomain.slice())}else I.match(gK)&&ut(a,O+"._inputDomain").set(null);if(F==="type"){A=J;var ie=X.type==="linear"&&D==="log",pe=X.type==="log"&&D==="linear";if(ie||pe){if(!A||!A.range)T(O+".autorange",!0);else if(X.autorange)ie&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var me=A.range[0],Ae=A.range[1];ie?(me<=0&&Ae<=0&&T(O+".autorange",!0),me<=0?me=Ae/1e6:Ae<=0&&(Ae=me/1e6),T(O+".range[0]",Math.log(me)/Math.LN10),T(O+".range[1]",Math.log(Ae)/Math.LN10)):(T(O+".range[0]",Math.pow(10,me)),T(O+".range[1]",Math.pow(10,Ae)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[q.parts[0]]&&q.parts[1]==="radialaxis"&&delete a[q.parts[0]]._subplot.viewInitial["radialaxis.range"],Pn.getComponentMethod("annotations","convertCoords")(e,X,D,T),Pn.getComponentMethod("images","convertCoords")(e,X,D,T)}else T(O+".autorange",!0),T(O+".range",null);ut(a,O+"._inputRange").set(null)}else if(F.match(sK)){var re=ut(a,k).get(),Le=(D||{}).type;(!Le||Le==="-")&&(Le="linear"),Pn.getComponentMethod("annotations","convertCoords")(e,re,Le,T),Pn.getComponentMethod("images","convertCoords")(e,re,Le,T)}var fe=Oh.containerArrayMatch(k);if(fe){f=fe.array,v=fe.index;var ke=fe.property,se=H||{editType:"calc"};v!==""&&ke===""&&(Oh.isAddVal(D)?w[k]=null:Oh.isRemoveVal(D)?w[k]=(ut(t,f).get()||[])[v]:rr.warn("unrecognized full object value",r)),Cl.update(g,se),u[f]||(u[f]={});var be=u[f][v];be||(be=u[f][v]={}),be[ke]=D,delete r[k]}else F==="reverse"?(J.range?J.range.reverse():(T(O+".autorange",!0),J.range=[1,0]),X.autorange?g.calc=!0:g.plot=!0):(k==="dragmode"&&(D===!1&&U!==!1||D!==!1&&U===!1)||a._has("scatter-like")&&a._has("regl")&&k==="dragmode"&&(D==="lasso"||D==="select")&&!(U==="lasso"||U==="select")?g.plot=!0:H?Cl.update(g,H):g.calc=!0,q.set(D))}}for(f in u){var Y=Oh.applyContainerArrayChanges(e,i(t,f),u[f],g,i);Y||(g.plot=!0)}for(var ee in b){A=Ha.getFromId(e,ee);var B=A&&A._constraintGroup;if(B){g.calc=!0;for(var ye in B)b[ye]||(Ha.getFromId(e,ye)._constraintShrinkable=!0)}}(tS(e)||r.height||r.width)&&(g.plot=!0);var Me=a.shapes;for(v=0;v1;)if(a.pop(),t=ut(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function _K(e,r){for(var t=0;t[O,e._ev.listeners(O)]);i=Yr.newPlot(e,r,t,a).then(()=>{for(let[O,J]of I)J.forEach(X=>e.on(O,X));return Yr.react(e,r,t,a)})}else{e.data=r||[],zt.cleanData(e.data),e.layout=t||{},zt.cleanLayout(e.layout),TK(e.data,e.layout,o,s),xr.supplyDefaults(e,{skipUpdateCalc:!0});var v=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,m=h.transition,y=kK(e,s,h,d,m),g=y.newDataRevision,_=AK(e,o,v,d,m,g);if(tS(e)&&(y.layoutReplot=!0),_.calc||y.calc){e.calcdata=void 0;for(var w=Object.getOwnPropertyNames(h),T=0;T(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function AK(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=Cl.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(d){var m=Jh.getTraceValObject(u,d);return!u._module.animatable&&m.anim&&(m.anim=!1),m}var v={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},h={};for(s=0;s=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var v=0;return function(){if(u&&++v===f)return u()}}return new Promise(function(u,f){function v(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var F=a._frameQueue.pop();F.onInterrupt&&F.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(F){if(F.length!==0){for(var I=0;Ia._timeToNext&&m()};F()}var g=0;function _(F){return Array.isArray(n)?g>=n.length?F.transitionOpts=n[g]:F.transitionOpts=n[0]:F.transitionOpts=n,g++,F}var w,T,b=[],A=r==null,C=Array.isArray(r),k=!A&&!C&&rr.isPlainObject(r);if(k)b.push({type:"object",data:_(rr.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(w=0;w0&&RR)&&z.push(T);b=z}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function CK(e,r,t){if(e=rr.getGraphDiv(e),r==null)return Promise.resolve();if(!rr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],v={};for(a=r.length-1;a>=0;a--)if(rr.isPlainObject(r[a])){var h=r[a].name,d=(s[h]||v[h]||{}).name,m=r[a].name,y=s[d]||v[d];d&&m&&typeof m=="number"&&y&&Mgq.index?-1:k.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&rr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=xr.modifyFrames,s=xr.modifyFrames,u=[e,l],f=[e,i];return Va&&Va.add(e,o,u,s,f),xr.modifyFrames(e,i)}function qK(e){e=rr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return xr.cleanPlot([],{},t,r),xr.purge(e),Ag.purge(e),r._container&&r._container.remove(),delete e._context,e}function DK(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!rr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=rr.inverseTransformMatrix(rr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function EK(e){var r=Yh.select(e),t=e._fullLayout;if(t._calcInverseTransform=DK,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Yh.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=rr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(lK.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Yr.animate=SK;Yr.addFrames=CK;Yr.deleteFrames=LK;Yr.addTraces=Jk;Yr.deleteTraces=Kk;Yr.extendTraces=Zk;Yr.moveTraces=kg;Yr.prependTraces=Xk;Yr.newPlot=hK;Yr._doPlot=uK;Yr.purge=qK;Yr.react=MK;Yr.redraw=vK;Yr.relayout=$f;Yr.restyle=Gh;Yr.setPlotConfig=fK;Yr.update=Zh;Yr._guiRelayout=Sg($f);Yr._guiRestyle=Sg(Gh);Yr._guiUpdate=Sg(Zh);Yr._storeDirectGUIEdit=yK});var Do=Z(qi=>{"use strict";var PK=br();qi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};qi.getRedrawFunc=function(e){return function(){PK.getComponentMethod("colorbar","draw")(e)}};qi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};qi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var aS=window.URL||window.webkitURL;qi.createObjectURL=function(e){return aS.createObjectURL(e)};qi.revokeObjectURL=function(e){return aS.revokeObjectURL(e)};qi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=RK(window.atob(e));return new window.Blob([t],{type:"image/"+r})};qi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function RK(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var qg=Ir(),Aue=Ie(),zK=at(),NK=Er(),kue=fo(),Lg=/"/g,ec="TOBESTRIPPED",FK=new RegExp('("'+ec+")|("+ec+'")',"g");function IK(e){var r=qg.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function HK(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}nS.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(zK.setRect,0,0,o,s).call(NK.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var OK=Ie(),BK=Uv().EventEmitter,rc=Do();function YK(e){var r=e.emitter||new BK,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,v=e.height||150,h=u*f,d=u*v,m=s.getContext("2d",{willReadFrequently:!0}),y=new i,g,_;o==="svg"||OK.isSafari()?_=rc.encodeSVG(l):(g=rc.createBlob(l,"svg"),_=rc.createObjectURL(g)),s.width=h,s.height=d,y.onload=function(){var w;switch(g=null,rc.revokeObjectURL(_),o!=="svg"&&m.drawImage(y,0,0,h,d),o){case"jpeg":w=s.toDataURL("image/jpeg");break;case"png":w=s.toDataURL("image/png");break;case"webp":w=s.toDataURL("image/webp");break;case"svg":w=_;break;default:var T="Image format is not jpeg, png, svg or webp.";if(n(new Error(T)),!e.promise)return r.emit("error",T)}a(w),e.promise||r.emit("success",w)},y.onerror=function(w){if(g=null,rc.revokeObjectURL(_),n(w),!e.promise)return r.emit("error",w)},y.src=_});return e.promise?t:r}iS.exports=YK});var Eg=Z((Lue,sS)=>{"use strict";var lS=Hr(),oS=Cg(),UK=Ft(),Di=Ie(),tc=Do(),VK=Qh(),GK=$h(),WK=lv().version,Dg={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function ZK(e,r){r=r||{};var t,a,n,i;Di.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Di.getGraphDiv(e),t=Di.extendDeep([],e.data),a=Di.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(C){return!(C in r)||Di.validate(r[C],Dg[C])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Di.join2(Dg.format.values,", "," or ")+".");var o={};function s(C,k){return Di.coerce(r,o,Dg,C,k)}var u=s("format"),f=s("width"),v=s("height"),h=s("scale"),d=s("setBackground"),m=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var g=Di.extendFlat({},a);f?g.width=f:r.width===null&&lS(i.width)&&(g.width=i.width),v?g.height=v:r.height===null&&lS(i.height)&&(g.height=i.height);var _=Di.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),w=tc.getRedrawFunc(y);function T(){return new Promise(function(C){setTimeout(C,tc.getDelay(y._fullLayout))})}function b(){return new Promise(function(C,k){var q=VK(y,u,h),D=y._fullLayout.width,R=y._fullLayout.height;function z(){oS.purge(y),document.body.removeChild(y)}if(u==="full-json"){var F=UK.graphJson(y,!1,"keepdata","object",!0,!0);return F.version=WK,F=JSON.stringify(F),z(),C(m?F:tc.encodeJSON(F))}if(z(),u==="svg")return C(m?q:tc.encodeSVG(q));var I=document.createElement("canvas");I.id=Di.randstr(),GK({format:u,width:D,height:R,scale:h,canvas:I,svg:q,promise:!0}).then(C).catch(k)})}function A(C){return m?C.replace(tc.IMAGE_URL_PREFIX,""):C}return new Promise(function(C,k){oS.newPlot(y,t,g,_).then(w).then(T).then(b).then(function(q){C(A(q))}).catch(function(q){k(q)})})}sS.exports=ZK});var cS=Z((que,fS)=>{"use strict";var Rn=Ie(),XK=Ft(),JK=As(),KK=eo().dfltConfig,ti=Rn.isPlainObject,Po=Array.isArray,Pg=Rn.isArrayOrTypedArray;fS.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=JK.get(),n=[],i={_context:Rn.extendFlat({},KK)},l,o;Po(r)?(i.data=Rn.extendDeep([],r),l=r):(i.data=[],l=[],n.push(aa("array","data"))),ti(t)?(i.layout=Rn.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(aa("object","layout"))),XK.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fv.length&&a.push(aa("unused",n,u.concat(v.length)));var _=v.length,w=Array.isArray(g);w&&(_=Math.min(_,g.length));var T,b,A,C,k;if(h.dimensions===2)for(b=0;b<_;b++)if(Po(f[b])){f[b].length>v[b].length&&a.push(aa("unused",n,u.concat(b,v[b].length)));var q=v[b].length;for(T=0;T<(w?Math.min(q,g[b].length):q);T++)A=w?g[b][T]:g,C=f[b][T],k=v[b][T],Rn.validate(C,A)?k!==C&&k!==+C&&a.push(aa("dynamic",n,u.concat(b,T),C,k)):a.push(aa("value",n,u.concat(b,T),C))}else a.push(aa("array",n,u.concat(b),f[b]));else for(b=0;b<_;b++)A=w?g[b]:g,C=f[b],k=v[b],Rn.validate(C,A)?k!==C&&k!==+C&&a.push(aa("dynamic",n,u.concat(b),C,k)):a.push(aa("value",n,u.concat(b),C))}else if(h.items&&!m&&Po(f)){var D=g[Object.keys(g)[0]],R=[],z,F;for(z=0;z{"use strict";var aQ=Ie(),ed=Do();function nQ(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=ed.createBlob(e,t),u=ed.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),ed.revokeObjectURL(u),s=null,l(r);if(aQ.isSafari()){var f=t==="svg"?",":";base64,";return ed.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}vS.exports=nQ});var Rg=Z((Pue,pS)=>{"use strict";var dS=Ie(),iQ=Eg(),lQ=hS(),Eue=Do();function oQ(e,r){var t;return dS.isPlainObject(e)||(t=dS.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=iQ(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),lQ(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}pS.exports=oQ});var xS=Z(zg=>{"use strict";var rn=Ie(),tn=rn.isPlainObject,mS=As(),yS=Ft(),sQ=Gn(),gS=ct(),bS=eo().dfltConfig;zg.makeTemplate=function(e){e=rn.isPlainObject(e)?e:rn.getGraphDiv(e),e=rn.extendDeep({_context:bS},{data:e.data,layout:e.layout}),yS.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var m={};ac(d,m,fQ.bind(null,d));var y=rn.coerce(d,{},sQ,"type"),g=a.data[y];g||(g=a.data[y]=[]),g.push(m)}),ac(t,a.layout,uQ.bind(null,t)),delete a.layout.template;var n=t.template;if(tn(n)){var i=n.layout,l,o,s,u,f,v;tn(i)&&rd(i,a.layout);var h=n.data;if(tn(h)){for(o in a.data)if(s=h[o],Array.isArray(s)){for(f=a.data[o],v=f.length,u=s.length,l=0;l_?l.push({code:"unused",traceType:d,templateCount:g,dataCount:_}):_>g&&l.push({code:"reused",traceType:d,templateCount:g,dataCount:_})}}function w(T,b){for(var A in T)if(A.charAt(0)!=="_"){var C=T[A],k=zn(T,A,b);tn(C)?(Array.isArray(T)&&C._template===!1&&C.templateitemname&&l.push({code:"missing",path:k,templateitemname:C.templateitemname}),w(C,k)):Array.isArray(C)&&cQ(C)&&w(C,k)}}if(w({data:s,layout:o},""),l.length)return l.map(vQ)};function cQ(e){for(var r=0;r{"use strict";var Jt=Cg();mt._doPlot=Jt._doPlot;mt.newPlot=Jt.newPlot;mt.restyle=Jt.restyle;mt.relayout=Jt.relayout;mt.redraw=Jt.redraw;mt.update=Jt.update;mt._guiRestyle=Jt._guiRestyle;mt._guiRelayout=Jt._guiRelayout;mt._guiUpdate=Jt._guiUpdate;mt._storeDirectGUIEdit=Jt._storeDirectGUIEdit;mt.react=Jt.react;mt.extendTraces=Jt.extendTraces;mt.prependTraces=Jt.prependTraces;mt.addTraces=Jt.addTraces;mt.deleteTraces=Jt.deleteTraces;mt.moveTraces=Jt.moveTraces;mt.purge=Jt.purge;mt.addFrames=Jt.addFrames;mt.deleteFrames=Jt.deleteFrames;mt.animate=Jt.animate;mt.setPlotConfig=Jt.setPlotConfig;var hQ=Zu().getGraphDiv,dQ=hh().eraseActiveShape;mt.deleteActiveShape=function(e){return dQ(hQ(e))};mt.toImage=Eg();mt.validate=cS();mt.downloadImage=Rg();var _S=xS();mt.makeTemplate=_S.makeTemplate;mt.validateTemplate=_S.validateTemplate});var Fg=Z((Nue,TS)=>{"use strict";var Ng=Ie(),pQ=br();TS.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=pQ.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Ng.minRowLength(i);l?o=Math.min(u,Ng.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=Ng.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var Ig=Z((Fue,kS)=>{"use strict";var MS=Ie().dateTick0,mQ=Vt(),yQ=mQ.ONEWEEK;function AS(e,r){return e%yQ===0?MS(r,1):MS(r,0)}kS.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",AS(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",AS(o,t.ycalendar)),n("yperiodalignment"))}}});var LS=Z((Iue,CS)=>{"use strict";var SS=["orientation","groupnorm","stackgaps"];CS.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var qS=Er(),DS=Tn().hasColorscale,ES=Ls(),gQ=on();PS.exports=function(r,t,a,n,i,l){var o=gQ.isBubble(r),s=(r.line||{}).color,u;if(l=l||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),DS(r,"marker")&&ES(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=qS.background:u=qS.defaultLine,i("marker.line.color",u),DS(r,"marker.line")&&ES(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0)),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var NS=Z((Oue,zS)=>{"use strict";var bQ=Ie().isArrayOrTypedArray,xQ=Tn().hasColorscale,_Q=Ls();zS.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),xQ(r,"line"))_Q(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(bQ(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var IS=Z((Bue,FS)=>{"use strict";FS.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var OS=Z((Yue,HS)=>{"use strict";var wQ=Ie();HS.exports=function(e,r,t,a,n){n=n||{},a("textposition"),wQ.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var US=Z((Uue,YS)=>{"use strict";var ad=Er(),BS=Ie().isArrayOrTypedArray;function TQ(e){for(var r=ad.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var VS=Ie(),MQ=br(),AQ=qo(),kQ=qh(),au=on(),SQ=Fg(),CQ=Ig(),LQ=LS(),qQ=RS(),DQ=NS(),GS=IS(),EQ=OS(),PQ=US(),RQ=Ie().coercePattern;WS.exports=function(r,t,a,n){function i(d,m){return VS.coerce(r,t,AQ,d,m)}var l=SQ(r,t,n,i);if(l||(t.visible=!1),!!t.visible){CQ(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=LQ(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var zQ=Lf().getAxisGroup;XS.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=zQ(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),v=u[s];v||(v=u[s]={});var h=v[f];h?h.traces.push(t):h=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var d=n("offsetgroup")||"",m=h.offsetGroups,y=m[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=y.offsetIndex)}});var KS=Z((Wue,JS)=>{"use strict";var NQ=Ie(),FQ=Hg(),IQ=qo();JS.exports=function(r,t){var a,n,i,l=t.scattermode;function o(h){return NQ.coerce(n._input,n,IQ,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===s.xaxis&&v.yaxis===s.yaxis){v.opacity=void 0;break}}}}}});var $S=Z((Zue,QS)=>{"use strict";var HQ=Ie(),OQ=Xv();QS.exports=function(e,r){function t(n,i){return HQ.coerce(e,r,OQ,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Og=Z((Xue,eC)=>{"use strict";var BQ=Hr(),jS=Ie(),YQ=jS.dateTime2ms,nd=jS.incrementMonth,UQ=Vt(),VQ=UQ.ONEAVGMONTH;eC.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(BQ(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",v=i==="end",h=r[a+"period0"],d=YQ(h,u)||0,m=[],y=[],g=[],_=n.length,w=0;w<_;w++){var T=n[w],b,A,C;if(o){for(b=Math.round((T-d)/(o*VQ)),C=nd(d,o*b,u);C>T;)C=nd(C,-o,u);for(;C<=T;)C=nd(C,o,u);A=nd(C,-o,u)}else{for(b=Math.round((T-d)/l),C=d+b*l;C>T;)C-=l;for(;C<=T;)C+=l;A=C-l}m[w]=f?A:v?C:(A+C)/2,y[w]=A,g[w]=C}return{vals:m,starts:y,ends:g}}});var aC=Z((Jue,tC)=>{"use strict";var Bg=Tn().hasColorscale,Yg=l0(),rC=on();tC.exports=function(r,t){rC.hasLines(t)&&Bg(t,"line")&&Yg(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),rC.hasMarkers(t)&&(Bg(t,"marker")&&Yg(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Bg(t,"marker.line")&&Yg(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Ug=Z((Kue,nC)=>{"use strict";var St=Ie();nC.exports=function(r,t){for(var a=0;a{"use strict";var iC=Ie();lC.exports=function(r,t){iC.isArrayOrTypedArray(t.selectedpoints)&&iC.tagSelected(r,t)}});var Jg=Z(($ue,hC)=>{"use strict";var oC=Hr(),Wg=Ie(),nc=dt(),sC=Og(),Gg=Vt().BADNUM,Zg=on(),GQ=aC(),WQ=Ug(),ZQ=Vg();function XQ(e,r){var t=e._fullLayout,a=r._xA=nc.getFromId(e,r.xaxis||"x","x"),n=r._yA=nc.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=sC(r,a,"x",i),s=sC(r,n,"y",l),u=o.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=Xg(r,t,a,n),y=!1,g,_,w,T,b,A;cC(t,r);var C="x",k="y",q;if(m)Wg.pushUnique(m.traceIndices,r.index),g=m.orientation==="v",g?(k="s",q="x"):(C="s",q="y"),b=m.stackgaps==="interpolate";else{var D=fC(r,v);uC(e,r,a,n,u,f,D)}var R=!!r.xperiodalignment,z=!!r.yperiodalignment;for(_=0;__&&h[T].gap;)T--;for(A=h[T].s,w=h.length-1;w>T;w--)h[w].s=A;for(;_{"use strict";dC.exports=id;var JQ=Ie().distinctVals;function id(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var Nn=Hr(),Ll=Ie().isArrayOrTypedArray,nu=Vt().BADNUM,KQ=br(),ic=dt(),QQ=Lf().getAxisGroup,ld=pC();function $Q(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!Nn(o))}for(var f=0;f{"use strict";var xC=Jg(),_C=e2().setGroupPositions;function f$(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uD[f]&&f{"use strict";var v$=at(),SC=Vt(),lc=SC.BADNUM,CC=SC.LOG_CLIP,MC=CC+.5,AC=CC-.5,od=Ie(),h$=od.segmentsIntersect,kC=od.constrain,t2=qh();LC.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,v=a.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,y=m==="linear",g=a.fill&&a.fill!=="none",_=[],w=t2.minTolerance,T=r.length,b=new Array(T),A=0,C,k,q,D,R,z,F,I,O,J,X,U,H,V,K,Q;function ie(Pe){var ae=r[Pe];if(!ae)return!1;var ue=t.linearized?n.l2p(ae.x):n.c2p(ae.x),qe=t.linearized?i.l2p(ae.y):i.c2p(ae.y);if(ue===lc){if(l&&(ue=n.c2p(ae.x,!0)),ue===lc)return!1;o&&qe===lc&&(ue*=Math.abs(n._m*u*(n._m>0?MC:AC)/(i._m*s*(i._m>0?MC:AC)))),ue*=1e3}if(qe===lc){if(o&&(qe=i.c2p(ae.y,!0)),qe===lc)return!1;qe*=1e3}return[ue,qe]}function pe(Pe,ae,ue,qe){var Ce=ue-Pe,or=qe-ae,lr=.5-Pe,ar=.5-ae,Mr=Ce*Ce+or*or,Br=Ce*lr+or*ar;if(Br>0&&Br1||Math.abs(lr.y-ue[0][1])>1)&&(lr=[lr.x,lr.y],qe&&Le(lr,Pe)se||Pe[1]Y)return[kC(Pe[0],ke,se),kC(Pe[1],be,Y)]}function Ge(Pe,ae){if(Pe[0]===ae[0]&&(Pe[0]===ke||Pe[0]===se)||Pe[1]===ae[1]&&(Pe[1]===be||Pe[1]===Y))return!0}function Ue(Pe,ae){var ue=[],qe=ze(Pe),Ce=ze(ae);return qe&&Ce&&Ge(qe,Ce)||(qe&&ue.push(qe),Ce&&ue.push(Ce)),ue}function De(Pe,ae,ue){return function(qe,Ce){var or=ze(qe),lr=ze(Ce),ar=[];if(or&&lr&&Ge(or,lr))return ar;or&&ar.push(or),lr&&ar.push(lr);var Mr=2*od.constrain((qe[Pe]+Ce[Pe])/2,ae,ue)-((or||qe)[Pe]+(lr||Ce)[Pe]);if(Mr){var Br;or&&lr?Br=Mr>0==or[Pe]>lr[Pe]?or:lr:Br=or||lr,Br[Pe]+=Mr}return ar}}var He;m==="linear"||m==="spline"?He=Ee:m==="hv"||m==="vh"?He=Ue:m==="hvh"?He=De(0,ke,se):m==="vhv"&&(He=De(1,be,Y));function Oe(Pe,ae){var ue=ae[0]-Pe[0],qe=(ae[1]-Pe[1])/ue,Ce=(Pe[1]*ae[0]-ae[1]*Pe[0])/ue;return Ce>0?[qe>0?ke:se,Y]:[qe>0?se:ke,be]}function ne(Pe){var ae=Pe[0],ue=Pe[1],qe=ae===b[A-1][0],Ce=ue===b[A-1][1];if(!(qe&&Ce))if(A>1){var or=ae===b[A-2][0],lr=ue===b[A-2][1];qe&&(ae===ke||ae===se)&&or?lr?A--:b[A-1]=Pe:Ce&&(ue===be||ue===Y)&&lr?or?A--:b[A-1]=Pe:b[A++]=Pe}else b[A++]=Pe}function Te(Pe){b[A-1][0]!==Pe[0]&&b[A-1][1]!==Pe[1]&&ne([Me,ge]),ne(Pe),Re=null,Me=ge=0}var Xe=od.isArrayOrTypedArray(v);function cr(Pe){if(Pe&&f&&(Pe.i=C,Pe.d=r,Pe.trace=a,Pe.marker=Xe?v[Pe.i]:v,Pe.backoff=f),me=Pe[0]/s,Ae=Pe[1]/u,B=Pe[0]se?se:0,ye=Pe[1]Y?Y:0,B||ye){if(!A)b[A++]=[B||Pe[0],ye||Pe[1]];else if(Re){var ae=He(Re,Pe);ae.length>1&&(Te(ae[0]),b[A++]=ae[1])}else Ne=He(b[A-1],Pe)[0],b[A++]=Ne;var ue=b[A-1];B&&ye&&(ue[0]!==B||ue[1]!==ye)?(Re&&(Me!==B&&ge!==ye?ne(Me&&ge?Oe(Re,Pe):[Me||B,ge||ye]):Me&&ge&&ne([Me,ge])),ne([B,ye])):Me-B&&ge-ye&&ne([B||Me,ye||ge]),Re=Pe,Me=B,ge=ye}else Re&&Te(He(Re,Pe)[0]),b[A++]=Pe}for(C=0;Cre(z,fr))break;q=z,H=O[0]*I[0]+O[1]*I[1],H>X?(X=H,D=z,F=!1):H=r.length||!z)break;cr(z),k=z}}Re&&ne([Me||Re[0],ge||Re[1]]),_.push(b.slice(0,A))}var le=m.slice(m.length-1);if(f&&le!=="h"&&le!=="v"){for(var Se=!1,Fe=-1,We=[],Ve=0;Ve<_.length;Ve++)for(var Je=0;Je<_[Ve].length-1;Je++){var $e=_[Ve][Je],vr=_[Ve][Je+1],Ke=v$.applyBackoff(vr,$e);(Ke[0]!==vr[0]||Ke[1]!==vr[1])&&(Se=!0),We[Fe+1]||(Fe++,We[Fe]=[$e,[Ke[0],Ke[1]]])}return Se?We:_}return _}});var PC=Z((afe,EC)=>{"use strict";var DC={tonextx:1,tonexty:1,tonext:1};EC.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,v=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var ai=Ir(),d$=br(),oc=Ie(),lu=oc.ensureSingle,zC=oc.identity,Ct=at(),ou=on(),p$=qC(),m$=PC(),sd=$y().tester;NC.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,v=m$(r,t,a);if(o=n.selectAll("g.trace").data(v,function(d){return d[0].trace.uid}),o.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),o.order(),y$(r,o,t),f){l&&(s=l());var h=ai.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){n.selectAll("g.trace").each(function(d,m){RC(r,m,t,d,v,this,i)})})}else o.each(function(d,m){RC(r,m,t,d,v,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function y$(e,r,t){r.each(function(a){var n=lu(ai.select(this),"g","fills");Ct.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,zC);o.enter().append("g"),o.exit().each(function(s){i[s]=null}).remove(),o.order().each(function(s){i[s]=lu(ai.select(this),"path","js-fill")})})}function RC(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;g$(e,r,t,a,n);var u=!!l&&l.duration>0;function f(De){return u?De.transition():De}var v=t.xaxis,h=t.yaxis,d=a[0].trace,m=d.line,y=ai.select(i),g=lu(y,"g","errorbars"),_=lu(y,"g","lines"),w=lu(y,"g","points"),T=lu(y,"g","text");if(d$.getComponentMethod("errorbars","plot")(e,g,t,l),d.visible!==!0)return;f(y).style("opacity",d.opacity);var b,A,C=d.fill.charAt(d.fill.length-1);C!=="x"&&C!=="y"&&(C="");var k,q;C==="y"?(k=1,q=h.c2p(0,!0)):C==="x"&&(k=0,q=v.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var D="",R=[],z=d._prevtrace,F=null,I=null;z&&(D=z._prevRevpath||"",A=z._nextFill,R=z._ownPolygons,F=z._fillsegments,I=z._fillElement);var O,J,X="",U="",H,V,K,Q,ie,pe,me=[];d._polygons=[];var Ae=[],re=[],Le=oc.noop;if(b=d._ownFill,ou.hasLines(d)||d.fill!=="none"){A&&A.datum(a),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(H=Ct.steps(m.shape),V=Ct.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?H=V=function(De){var He=De[De.length-1];return De.length>1&&De[0][0]===He[0]&&De[0][1]===He[1]?Ct.smoothclosed(De.slice(1),m.smoothing):Ct.smoothopen(De,m.smoothing)}:H=V=function(De){return"M"+De.join("L")},K=function(De){return V(De.reverse())},re=p$(a,{xaxis:v,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Ae=new Array(re.length);var fe=0;for(s=0;s=o[0]&&y.x<=o[1]&&y.y>=s[0]&&y.y<=s[1]}),h=Math.ceil(v.length/f),d=0;n.forEach(function(y,g){var _=y[0].trace;ou.hasMarkers(_)&&_.marker.maxdisplayed>0&&g{"use strict";IC.exports={container:"marker",min:"cmin",max:"cmax"}});var OC=Z((lfe,HC)=>{"use strict";var ud=dt();HC.exports=function(r,t,a){var n={},i={_fullLayout:a},l=ud.getFromTrace(i,t,"x"),o=ud.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=ud.tickText(l,l.c2l(s),!0).text,n.yLabel=ud.tickText(o,o.c2l(u),!0).text,n}});var o2=Z((ofe,BC)=>{"use strict";var n2=Ir(),su=at(),b$=br();function x$(e){var r=n2.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=n2.select(this),n=t.trace||t[0].trace;i2(a,n,e)}),r.selectAll("g.text").each(function(t){var a=n2.select(this),n=t.trace||t[0].trace;l2(a,n,e)}),r.selectAll("g.trace path.js-line").call(su.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(su.fillGroupStyle,e,!1),b$.getComponentMethod("errorbars","style")(r)}function i2(e,r,t){su.pointStyle(e.selectAll("path.point"),r,t)}function l2(e,r,t){su.textPointStyle(e.selectAll("text"),r,t)}function _$(e,r,t){var a=r[0].trace;a.selectedpoints?(su.selectedPointStyle(t.selectAll("path.point"),a),su.selectedTextStyle(t.selectAll("text"),a)):(i2(t,a,e),l2(t,a,e))}BC.exports={style:x$,stylePoints:i2,styleText:l2,styleOnSelect:_$}});var UC=Z((sfe,YC)=>{"use strict";var uu=Er(),w$=on();YC.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&uu.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&uu.opacity(i)?i:l&&uu.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?uu.opacity(n)<.3?uu.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&uu.opacity(a)&&w$.hasLines(r)&&r.line.width?a:r.fillcolor)}});var WC=Z((ufe,GC)=>{"use strict";var fd=Ie(),VC=Si(),T$=br(),M$=UC(),s2=Er(),A$=fd.fillText;GC.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),v=[u,f],h=l.hoveron||"",d=l.mode.indexOf("markers")!==-1?3:.5,m=!!l.xperiodalignment,y=!!l.yperiodalignment;if(h.indexOf("points")!==-1){var g=function(U){if(m){var H=o.c2p(U.xStart),V=o.c2p(U.xEnd);return u>=Math.min(H,V)&&u<=Math.max(H,V)?0:1/0}var K=Math.max(3,U.mrc||0),Q=1-1/K,ie=Math.abs(o.c2p(U.x)-u);return ie=Math.min(H,V)&&f<=Math.max(H,V)?0:1/0}var K=Math.max(3,U.mrc||0),Q=1-1/K,ie=Math.abs(s.c2p(U.y)-f);return ieme!=Y>=me&&(ke=Le[re-1][0],se=Le[re][0],Y-be&&(fe=ke+(se-ke)*(me-be)/(Y-be),K=Math.min(K,fe),Q=Math.max(Q,fe)));return K=Math.max(K,0),Q=Math.min(Q,o._length),{x0:K,x1:Q,y0:me,y1:me}}if(h.indexOf("fills")!==-1&&l._fillElement){var O=F(l._fillElement)&&!F(l._fillExclusionElement);if(O){var J=I(l._polygons);J===null&&(J={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var X=s2.defaultLine;return s2.opacity(l.fillcolor)?X=l.fillcolor:s2.opacity((l.line||{}).color)&&(X=l.line.color),fd.extendFlat(r,{distance:r.maxHoverDistance,x0:J.x0,x1:J.x1,y0:J.y0,y1:J.y1,color:X,hovertemplate:!1}),delete r.index,l.text&&!fd.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var JC=Z((ffe,XC)=>{"use strict";var ZC=on();XC.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,v,h=!ZC.hasMarkers(o)&&!ZC.hasText(o);if(h)return[];if(t===!1)for(s=0;s{"use strict";KC.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var rL=Z((vfe,eL)=>{"use strict";var sc=br().traceIs,u2=Cm();eL.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(k$(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function k$(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=S$(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!sc(i,"cartesian")||sc(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,jC(i,a)){var u=$C(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(jC(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function $C(e){return{v:"x",h:"y"}[e.orientation||"v"]}function jC(e,r){var t=$C(e),a=sc(e,"box-violin"),n=sc(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var aL=Z((hfe,tL)=>{"use strict";var C$=nn().isTypedArraySpec;function L$(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||C$(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=L$(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var lL=Z((dfe,iL)=>{"use strict";var nL=bn().mix,q$=hi(),D$=Ie();iL.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(q,D){return D$.coerce2(r,t,n.attributes,q,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=nL(i,n.bgColor,n.blend||q$.lightFraction).toRgbString(),v=l("gridcolor",f),h=l("gridwidth"),d=l("griddash"),m=a("showgrid",n.showGrid||!!v||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=nL(t.gridcolor,n.bgColor,67).toRgbString(),g=l("minor.gridcolor",y),_=l("minor.gridwidth",t.gridwidth||1),w=l("minor.griddash",t.griddash||"solid"),T=a("minor.showgrid",!!g||!!_||!!w);T||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=l("zerolinelayer"),A=l("zerolinecolor",i),C=l("zerolinewidth"),k=a("zeroline",n.showGrid||!!A||!!C);k||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var c2=Z((pfe,vL)=>{"use strict";var oL=Hr(),E$=br(),uc=Ie(),P$=ct(),R$=Kn(),f2=Jn(),sL=Qp(),uL=jp(),z$=tm(),N$=am(),F$=aL(),I$=lL(),H$=Jm(),fL=x0(),cd=ya().WEEKDAY_PATTERN,O$=ya().HOUR_PATTERN;vL.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},v=t.type||f.type||"-",h;if(v==="date"){var d=E$.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(v==="date"||v==="linear")&&a("ticklabelindex");var m="";(!n.noTicklabelposition||v==="multicategory")&&(m=uc.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),fL(t,i),H$(r,t,a,n),F$(r,t,a,n),n.noHover||(v!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),g=y!==f2.color.dflt?y:o.color,_=s.label||i._dfltTitle[l];if(N$(r,t,a,v,n),!u)return t;a("title.text",_),uc.coerceFont(a,"title.font",o,{overrideDflt:{size:uc.bigFont(o.size),color:g}}),sL(r,t,a,v);var w=n.hasMinor;if(w&&(P$.newContainer(t,"minor"),sL(r,t,a,v,{isMinor:!0})),z$(r,t,a,v,n),uL(r,t,a,n),w){var T=n.isMinor;n.isMinor=!0,uL(r,t,a,n),n.isMinor=T}I$(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:f2}),w&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=v==="multicategory";if(!n.noTickson&&(v==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var A=a("showdividers");A&&(a("dividercolor"),a("dividerwidth"))}if(v==="date")if(R$(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:B$}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var C=0;C=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=cL(i[o]),s){l=cd;break}}var u=a("pattern",l);if(u===cd)for(o=0;o<2;o++)s=cL(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case cd:if(!oL(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case O$:if(!oL(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var U$=Hr(),vd=Ie();hL.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,v,h,d,m,y;s&&(v=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],v&&(h=s[o+"side"].split(" ")[0],d=s.domain[o][h==="right"||h==="top"?1:0])),v=v||[0,1],f=f||(U$(r.position)?"free":i[0]||"free"),h=h||(o==="x"?"bottom":"left"),d=d||0,m=0,y=!1;var g=vd.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),_=vd.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(g==="free"){if(o==="y"){var w=a("autoshift");w&&(d=_==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,m=_==="left"?-3:3),a("shift",m)}a("position",d)}a("automargin",y);var T=!1;if(l.length&&(T=vd.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!T){var b=a("domain",v);b[0]>b[1]-1/4096&&(t.domain=v),vd.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var wL=Z((yfe,_L)=>{"use strict";var Ro=Ie(),dL=Er(),V$=xi().isUnifiedHover,G$=_y(),pL=ct(),W$=ds(),mL=Jn(),Z$=rL(),yL=c2(),X$=Lf(),gL=v2(),d2=Zt(),Ei=d2.id2name,bL=d2.name2id,J$=ya().AX_ID_PATTERN,xL=br(),hd=xL.traceIs,h2=xL.getComponentMethod;function dd(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}_L.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},v={},h={},d={},m={},y,g;for(y=0;y{"use strict";var K$=Ir(),TL=br(),pd=Ie(),hn=at(),md=dt();ML.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){md.redrawComponents(r);return}function l(g){var _=g.xaxis,w=g.yaxis;i._defs.select("#"+g.clipId+"> rect").call(hn.setTranslate,0,0).call(hn.setScale,1,1),g.plot.call(hn.setTranslate,_._offset,w._offset).call(hn.setScale,1,1);var T=g.plot.selectAll(".scatterlayer .trace");T.selectAll(".point").call(hn.setPointGroupScale,1,1),T.selectAll(".textpoint").call(hn.setTextPointsScale,1,1),T.call(hn.hideOutsideRangePoints,g)}function o(g,_){var w=g.plotinfo,T=w.xaxis,b=w.yaxis,A=T._length,C=b._length,k=!!g.xr1,q=!!g.yr1,D=[];if(k){var R=pd.simpleMap(g.xr0,T.r2l),z=pd.simpleMap(g.xr1,T.r2l),F=R[1]-R[0],I=z[1]-z[0];D[0]=(R[0]*(1-_)+_*z[0]-R[0])/(R[1]-R[0])*A,D[2]=A*(1-_+_*I/F),T.range[0]=T.l2r(R[0]*(1-_)+_*z[0]),T.range[1]=T.l2r(R[1]*(1-_)+_*z[1])}else D[0]=0,D[2]=A;if(q){var O=pd.simpleMap(g.yr0,b.r2l),J=pd.simpleMap(g.yr1,b.r2l),X=O[1]-O[0],U=J[1]-J[0];D[1]=(O[1]*(1-_)+_*J[1]-O[1])/(O[0]-O[1])*C,D[3]=C*(1-_+_*U/X),b.range[0]=T.l2r(O[0]*(1-_)+_*J[0]),b.range[1]=b.l2r(O[1]*(1-_)+_*J[1])}else D[1]=0,D[3]=C;md.drawOne(r,T,{skipTitle:!0}),md.drawOne(r,b,{skipTitle:!0}),md.redrawComponents(r,[T._id,b._id]);var H=k?A/D[2]:1,V=q?C/D[3]:1,K=k?D[0]:0,Q=q?D[1]:0,ie=k?D[0]/D[2]*A:0,pe=q?D[1]/D[3]*C:0,me=T._offset-ie,Ae=b._offset-pe;w.clipRect.call(hn.setTranslate,K,Q).call(hn.setScale,1/H,1/V),w.plot.call(hn.setTranslate,me,Ae).call(hn.setScale,H,V),hn.setPointGroupScale(w.zoomScalePts,1/H,1/V),hn.setTextPointsScale(w.zoomScaleTxt,1/H,1/V)}var s;n&&(s=n());function u(){for(var g={},_=0;_a.duration?(u(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return v=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var bd=Z(ka=>{"use strict";var gd=Ir(),kL=br(),zo=Ie(),Q$=Ft(),$$=at(),SL=zp().getModuleCalcData,ql=Zt(),ni=ya(),j$=fo(),Xr=zo.ensureSingle;function yd(e,r,t){return zo.ensureSingle(e,r,t,function(a){a.datum(t)})}var No=ni.zindexSeparator;ka.name="cartesian";ka.attr=["xaxis","yaxis"];ka.idRoot=["x","y"];ka.idRegex=ni.idRegex;ka.attrRegex=ni.attrRegex;ka.attributes=QC();ka.layoutAttributes=Jn();ka.supplyLayoutDefaults=wL();ka.transitionAxes=AL();ka.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,v;for(u=0;u0){var d=h.id;if(d.indexOf(No)!==-1)continue;d+=No+(u+1),h=zo.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],y,g=0;g1&&(A+=No+b),T.push(o+A),l=0;l1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=Xr(a,"path","xlines-above"),r.ylines=Xr(a,"path","ylines-above"),r.xaxislayer=Xr(a,"g","xaxislayer-above"),r.yaxislayer=Xr(a,"g","yaxislayer-above");else{if(!l){var h=Xr(a,"g","layer-subplot");r.shapelayer=Xr(h,"g","shapelayer"),r.imagelayer=Xr(h,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=Xr(a,"g","minor-gridlayer"),r.gridlayer=Xr(a,"g","gridlayer"),r.zerolinelayer=Xr(a,"g","zerolinelayer"));var d=Xr(a,"g","layer-between");r.shapelayerBetween=Xr(d,"g","shapelayer"),r.imagelayerBetween=Xr(d,"g","imagelayer"),Xr(a,"path","xlines-below"),Xr(a,"path","ylines-below"),r.overlinesBelow=Xr(a,"g","overlines-below"),Xr(a,"g","xaxislayer-below"),Xr(a,"g","yaxislayer-below"),r.overaxesBelow=Xr(a,"g","overaxes-below")}r.overplot=Xr(a,"g","overplot"),r.plot=Xr(r.overplot,"g",n),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=Xr(a,"g","zerolinelayer-above"),l||(r.xlines=Xr(a,"path","xlines-above"),r.ylines=Xr(a,"path","ylines-above"),r.overlinesAbove=Xr(a,"g","overlines-above"),Xr(a,"g","xaxislayer-above"),Xr(a,"g","yaxislayer-above"),r.overaxesAbove=Xr(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var m=v.plotgroup,y=n+"-x",g=n+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,Xr(v.overlinesBelow,"path",y),Xr(v.overlinesBelow,"path",g),Xr(v.overaxesBelow,"g",y),Xr(v.overaxesBelow,"g",g),r.plot=Xr(v.overplot,"g",n),Xr(v.overlinesAbove,"path",y),Xr(v.overlinesAbove,"path",g),Xr(v.overaxesAbove,"g",y),Xr(v.overaxesAbove,"g",g),r.xlines=m.select(".overlines-"+o).select("."+y),r.ylines=m.select(".overlines-"+s).select("."+g),r.xaxislayer=m.select(".overaxes-"+o).select("."+y),r.yaxislayer=m.select(".overaxes-"+s).select("."+g)}l||(u||(yd(r.minorGridlayer,"g",r.xaxis._id),yd(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(_){return _[0]}).sort(ql.idSort),yd(r.gridlayer,"g",r.xaxis._id),yd(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(_){return _[0]}).sort(ql.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function qL(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=gd.select(this);f.remove(),DL(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var xd=on();EL.exports={hasLines:xd.hasLines,hasMarkers:xd.hasMarkers,hasText:xd.hasText,isBubble:xd.isBubble,attributes:qo(),layoutAttributes:Xv(),supplyDefaults:ZS(),crossTraceDefaults:KS(),supplyLayoutDefaults:$S(),calc:Jg().calc,crossTraceCalc:TC(),arraysToCalcdata:Ug(),plot:FC(),colorbar:a2(),formatLabels:OC(),style:o2().style,styleOnSelect:o2().styleOnSelect,hoverPoints:WC(),selectPoints:JC(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:bd(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var NL=Z((_fe,zL)=>{"use strict";var rj=Ir(),tj=Er(),RL=fg(),p2=Ie(),aj=p2.strScale,nj=p2.strRotate,ij=p2.strTranslate;zL.exports=function(r,t,a){var n=r.node(),i=RL[a.arrowhead||0],l=RL[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=i.backoff*o+a.standoff,h=l.backoff*s+a.startstandoff,d,m,y,g;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var _=d.x-m.x,w=d.y-m.y;if(y=Math.atan2(w,_),g=y+Math.PI,v&&h&&v+h>Math.sqrt(_*_+w*w)){O();return}if(v){if(v*v>_*_+w*w){O();return}var T=v*Math.cos(y),b=v*Math.sin(y);m.x+=T,m.y+=b,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>_*_+w*w){O();return}var A=h*Math.cos(y),C=h*Math.sin(y);d.x-=A,d.y-=C,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var k=n.getTotalLength(),q="";if(k{"use strict";var FL=Ir(),m2=br(),lj=Ft(),El=Ie(),y2=El.strTranslate,cc=dt(),Fo=Er(),Ji=at(),IL=Si(),g2=Ta(),b2=wl(),fc=$n(),oj=ct().arrayEditor,sj=NL();BL.exports={draw:uj,drawOne:HL,drawRaw:OL};function uj(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ce="right":Ce="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ce]}for(var be=!1,Y=["x","y"],ee=0;ee1)&&(Me===ye?(fr=ge.r2fraction(r["a"+B]),(fr<0||fr>1)&&(be=!0)):be=!0),He=ge._offset+ge.r2p(r[B]),Te=.5}else{var le=cr==="domain";B==="x"?(ne=r[B],He=le?ge._offset+ge._length*ne:He=o.l+o.w*ne):(ne=1-r[B],He=le?ge._offset+ge._length*ne:He=o.t+o.h*ne),Te=r.showarrow?.5:ne}if(r.showarrow){De.head=He;var Se=r["a"+B];if(Xe=Ne*se(.5,r.xanchor)-Ee*se(.5,r.yanchor),Me===ye){var Fe=cc.getRefType(Me);Fe==="domain"?(B==="y"&&(Se=1-Se),De.tail=ge._offset+ge._length*Se):Fe==="paper"?B==="y"?(Se=1-Se,De.tail=o.t+o.h*Se):De.tail=o.l+o.w*Se:De.tail=ge._offset+ge.r2p(Se),Oe=Xe}else De.tail=He+Se,Oe=Xe+Se;De.text=De.tail+Xe;var We=l[B==="x"?"width":"height"];if(ye==="paper"&&(De.head=El.constrain(De.head,1,We-1)),Me==="pixel"){var Ve=-Math.max(De.tail-3,De.text),Je=Math.min(De.tail+3,De.text)-We;Ve>0?(De.tail+=Ve,De.text+=Ve):Je>0&&(De.tail-=Je,De.text-=Je)}De.tail+=Ue,De.head+=Ue}else Xe=ze*se(Te,Ge),Oe=Xe,De.text=He+Xe;De.text+=Ue,Xe+=Ue,Oe+=Ue,r["_"+B+"padplus"]=ze/2+Oe,r["_"+B+"padminus"]=ze/2-Oe,r["_"+B+"size"]=ze,r["_"+B+"shift"]=Xe}if(be){k.remove();return}var $e=0,vr=0;if(r.align!=="left"&&($e=(re-me)*(r.align==="center"?.5:1)),r.valign!=="top"&&(vr=(Le-Ae)*(r.valign==="middle"?.5:1)),ie)Q.select("svg").attr({x:R+$e-1,y:R+vr}).call(Ji.setClipUrl,F?y:null,e);else{var Ke=R+vr-pe.top,Pe=R+$e-pe.left;X.call(g2.positionText,Pe,Ke).call(Ji.setClipUrl,F?y:null,e)}I.select("rect").call(Ji.setRect,R,R,re,Le),z.call(Ji.setRect,q/2,q/2,fe-q,ke-q),k.call(Ji.setTranslate,Math.round(g.x.text-fe/2),Math.round(g.y.text-ke/2)),T.attr({transform:"rotate("+_+","+g.x.text+","+g.y.text+")"});var ae=function(qe,Ce){w.selectAll(".annotation-arrow-g").remove();var or=g.x.head,lr=g.y.head,ar=g.x.tail+qe,Mr=g.y.tail+Ce,Br=g.x.text+qe,et=g.y.text+Ce,Qr=El.rotationXYMatrix(_,Br,et),Kt=El.apply2DTransform(Qr),qt=El.apply2DTransform2(Qr),yt=+z.attr("width"),At=+z.attr("height"),ua=Br-.5*yt,fa=ua+yt,Nt=et-.5*At,Ba=Nt+At,yr=[[ua,Nt,ua,Ba],[ua,Ba,fa,Ba],[fa,Ba,fa,Nt],[fa,Nt,ua,Nt]].map(qt);if(!yr.reduce(function(nt,ca){return nt^!!El.segmentsIntersect(or,lr,or+1e6,lr+1e6,ca[0],ca[1],ca[2],ca[3])},!1)){yr.forEach(function(nt){var ca=El.segmentsIntersect(ar,Mr,or,lr,nt[0],nt[1],nt[2],nt[3]);ca&&(ar=ca.x,Mr=ca.y)});var lt=r.arrowwidth,Gr=r.arrowcolor,gt=r.arrowside,kt=w.append("g").style({opacity:Fo.opacity(Gr)}).classed("annotation-arrow-g",!0),ot=kt.append("path").attr("d","M"+ar+","+Mr+"L"+or+","+lr).style("stroke-width",lt+"px").call(Fo.stroke,Fo.rgb(Gr));if(sj(ot,gt,r),s.annotationPosition&&ot.node().parentNode&&!a){var bt=or,La=lr;if(r.standoff){var na=Math.sqrt(Math.pow(or-ar,2)+Math.pow(lr-Mr,2));bt+=r.standoff*(ar-or)/na,La+=r.standoff*(Mr-lr)/na}var Hn=kt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ar-bt)+","+(Mr-La),transform:y2(bt,La)}).style("stroke-width",lt+6+"px").call(Fo.stroke,"rgba(0,0,0,0)").call(Fo.fill,"rgba(0,0,0,0)"),On,Qt;fc.init({element:Hn.node(),gd:e,prepFn:function(){var nt=Ji.getTranslate(k);On=nt.x,Qt=nt.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(nt,ca){var Ul=Kt(On,Qt),Vl=Ul[0]+nt,rl=Ul[1]+ca;k.call(Ji.setTranslate,Vl,rl),d("x",Dl(n,nt,"x",o,r)),d("y",Dl(i,ca,"y",o,r)),r.axref===r.xref&&d("ax",Dl(n,nt,"ax",o,r)),r.ayref===r.yref&&d("ay",Dl(i,ca,"ay",o,r)),kt.attr("transform",y2(nt,ca)),T.attr({transform:"rotate("+_+","+Vl+","+rl+")"})},doneFn:function(){m2.call("_guiRelayout",e,m());var nt=document.querySelector(".js-notes-box-panel");nt&&nt.redraw(nt.selectedObj)}})}}};if(r.showarrow&&ae(0,0),b){var ue;fc.init({element:k.node(),gd:e,prepFn:function(){ue=T.attr("transform")},moveFn:function(qe,Ce){var or="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Dl(n,qe,"ax",o,r)):d("ax",r.ax+qe),r.ayref===r.yref?d("ay",Dl(i,Ce,"ay",o.w,r)):d("ay",r.ay+Ce),ae(qe,Ce);else{if(a)return;var lr,ar;if(n)lr=Dl(n,qe,"x",o,r);else{var Mr=r._xsize/o.w,Br=r.x+(r._xshift-r.xshift)/o.w-Mr/2;lr=fc.align(Br+qe/o.w,Mr,0,1,r.xanchor)}if(i)ar=Dl(i,Ce,"y",o,r);else{var et=r._ysize/o.h,Qr=r.y-(r._yshift+r.yshift)/o.h-et/2;ar=fc.align(Qr-Ce/o.h,et,0,1,r.yanchor)}d("x",lr),d("y",ar),(!n||!i)&&(or=fc.getCursor(n?.5:lr,i?.5:ar,r.xanchor,r.yanchor))}T.attr({transform:y2(qe,Ce)+ue}),b2(k,or)},clickFn:function(qe,Ce){r.captureevents&&e.emit("plotly_clickannotation",C(Ce))},doneFn:function(){b2(k),m2.call("_guiRelayout",e,m());var qe=document.querySelector(".js-notes-box-panel");qe&&qe.redraw(qe.selectedObj)}})}}s.annotationText?X.call(g2.makeEditable,{delegate:k,gd:e}).call(U).on("edit",function(V){r.text=V,this.call(U),d("text",V),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),m2.call("_guiRelayout",e,m())}):X.call(U)}});var ZL=Z((Tfe,WL)=>{"use strict";var YL=Ie(),fj=br(),UL=ct().arrayEditor;WL.exports={hasClickToShow:cj,onClick:vj};function cj(e,r){var t=GL(e,r);return t.on.length>0||t.explicitOff.length>0}function vj(e,r){var t=GL(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var x2=Ie(),fu=Er();XL.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=fu.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),x2.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var v=n("arrowside"),h,d;v.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),v.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",o?t.bordercolor:fu.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var m=n("hovertext"),y=a.hoverlabel||{};if(m){var g=n("hoverlabel.bgcolor",y.bgcolor||(fu.opacity(i)?fu.rgb(i):fu.defaultLine)),_=n("hoverlabel.bordercolor",y.bordercolor||fu.contrast(g)),w=x2.extendFlat({},y.font);w.color||(w.color=_),x2.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!m)}});var KL=Z((Afe,JL)=>{"use strict";var w2=Ie(),Io=dt(),hj=Kn(),dj=_2(),pj=eu();JL.exports=function(r,t){hj(r,t,{name:"annotations",handleItemDefaults:mj})};function mj(e,r,t){function a(T,b){return w2.coerce(e,r,pj,T,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){dj(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var v=o[f],h=Io.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Io.getFromId(u,h);d._annIndices.push(r._index)}if(Io.coercePosition(r,u,a,h,v,.5),l){var m="a"+v,y=Io.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);y!=="pixel"&&y!==h&&(y=r[m]="pixel");var g=y==="pixel"?s[f]:.4;Io.coercePosition(r,u,a,y,m,g)}a(v+"anchor"),a(v+"shift")}if(w2.noneOrAll(e,r,["x","y"]),l&&w2.noneOrAll(e,r,["ax","ay"]),i){var _=a("xclick"),w=a("yclick");r._xclick=_===void 0?r.x:Io.cleanPosition(_,u,r.xref),r._yclick=w===void 0?r.y:Io.cleanPosition(w,u,r.yref)}}}});var jL=Z((kfe,$L)=>{"use strict";var T2=Ie(),Ho=dt(),yj=_d().draw;$L.exports=function(r){var t=r._fullLayout,a=T2.filterVisible(t.annotations);if(a.length&&r._fullData.length)return T2.syncOrAsync([yj,gj],r)};function gj(e){var r=e._fullLayout;T2.filterVisible(r.annotations).forEach(function(t){var a=Ho.getFromId(e,t.xref),n=Ho.getFromId(e,t.yref),i=Ho.getRefType(t.xref),l=Ho.getRefType(t.yref);t._extremes={},i==="range"&&QL(t,a),l==="range"&&QL(t,n)})}function QL(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],v=3*e.arrowsize*e.arrowwidth||0,h=v+f,d=v-f,m=3*e.startarrowsize*e.arrowwidth||0,y=m+f,g=m-f,_;if(o===l){var w=Ho.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),T=Ho.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,g)});_={min:[w.min[0],T.min[0]],max:[w.max[0],T.max[0]]}}else y=i?y+i:y,g=i?g-i:g,_=Ho.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,y),ppadminus:Math.max(u,d,g)});e._extremes[t]=_}});var rq=Z((Sfe,eq)=>{"use strict";var bj=Hr(),xj=mv();eq.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function v(d){var m=u[d],y=null;i?y=xj(m,t.range):y=Math.pow(10,m),bj(y)||(y=null),n(f+d,y)}for(var h=0;h{"use strict";var M2=_d(),tq=ZL();aq.exports={moduleType:"component",name:"annotations",layoutAttributes:eu(),supplyLayoutDefaults:KL(),includeBasePlot:Wf()("annotations"),calcAutorange:jL(),draw:M2.draw,drawOne:M2.drawOne,drawRaw:M2.drawRaw,hasClickToShow:tq.hasClickToShow,onClick:tq.onClick,convertCoords:rq()}});var wd=Z((Lfe,iq)=>{"use strict";var ft=eu(),_j=pi().overrideAll,wj=ct().templatedArray;iq.exports=_j(wj("annotation",{visible:ft.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:ft.xanchor,xshift:ft.xshift,yanchor:ft.yanchor,yshift:ft.yshift,text:ft.text,textangle:ft.textangle,font:ft.font,width:ft.width,height:ft.height,opacity:ft.opacity,align:ft.align,valign:ft.valign,bgcolor:ft.bgcolor,bordercolor:ft.bordercolor,borderpad:ft.borderpad,borderwidth:ft.borderwidth,showarrow:ft.showarrow,arrowcolor:ft.arrowcolor,arrowhead:ft.arrowhead,startarrowhead:ft.startarrowhead,arrowside:ft.arrowside,arrowsize:ft.arrowsize,startarrowsize:ft.startarrowsize,arrowwidth:ft.arrowwidth,standoff:ft.standoff,startstandoff:ft.startstandoff,hovertext:ft.hovertext,hoverlabel:ft.hoverlabel,captureevents:ft.captureevents}),"calc","from-root")});var oq=Z((qfe,lq)=>{"use strict";var A2=Ie(),Tj=dt(),Mj=Kn(),Aj=_2(),kj=wd();lq.exports=function(r,t,a){Mj(r,t,{name:"annotations",handleItemDefaults:Sj,fullLayout:a.fullLayout})};function Sj(e,r,t,a){function n(o,s){return A2.coerce(e,r,kj,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Tj.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Aj(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),A2.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),A2.noneOrAll(e,r,["ax","ay"])))}});var cq=Z((Dfe,fq)=>{"use strict";var sq=Ie(),uq=dt();fq.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function k2(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function Lj(e,r){var t=k2(e.projection,k2(e.view,k2(e.model,[r[0],r[1],r[2],1])));return t}vq.exports=Lj});var pq=Z((Pfe,dq)=>{"use strict";var qj=_d().drawRaw,Dj=hq(),Ej=["x","y","z"];dq.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=Dj(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),qj(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var gq=Z((Rfe,yq)=>{"use strict";var Pj=br(),mq=Ie();yq.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:wd()}}},layoutAttributes:wd(),handleDefaults:oq(),includeBasePlot:Rj,convert:cq(),draw:pq()};function Rj(e,r){var t=Pj.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var bq=eu(),xq=ma(),_q=qo().line,zj=mi().dash,ii=Gt().extendFlat,Nj=ct().templatedArray,zfe=Gf(),cu=Gn(),Fj=yi().shapeTexttemplateAttrs,Ij=Sv();wq.exports=Nj("shape",{visible:ii({},cu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:ii({},cu.legend,{editType:"calc+arraydraw"}),legendgroup:ii({},cu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:ii({},cu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:xq({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:ii({},cu.legendrank,{editType:"calc+arraydraw"}),legendwidth:ii({},cu.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:ii({},bq.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:ii({},bq.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:ii({},_q.color,{editType:"arraydraw"}),width:ii({},_q.width,{editType:"calc+arraydraw"}),dash:ii({},zj,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Fj({},{keys:Object.keys(Ij)}),font:xq({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var Aq=Z((Ffe,Mq)=>{"use strict";var vc=Ie(),vu=dt(),Hj=Kn(),Oj=S2(),Tq=Al();Mq.exports=function(r,t){Hj(r,t,{name:"shapes",handleItemDefaults:Yj})};function Bj(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Yj(e,r,t){function a(V,K){return vc.coerce(e,r,Oj,V,K)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),vc.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));for(var v=a("xsizemode"),h=a("ysizemode"),d=["x","y"],m=0;m<2;m++){var y=d[m],g=y+"anchor",_=y==="x"?v:h,w={_fullLayout:t},T,b,A,C=vu.coerceRef(e,r,w,y,void 0,"paper"),k=vu.getRefType(C);if(k==="range"?(T=vu.getFromId(w,C),T._shapeIndices.push(r._index),A=Tq.rangeToShapePosition(T),b=Tq.shapePositionToRange(T),(T.type==="category"||T.type==="multicategory")&&(a(y+"0shift"),a(y+"1shift"))):b=A=vc.identity,u){var q=.25,D=.75,R=y+"0",z=y+"1",F=e[R],I=e[z];e[R]=b(e[R],!0),e[z]=b(e[z],!0),_==="pixel"?(a(R,0),a(z,10)):(vu.coercePosition(r,w,a,C,R,q),vu.coercePosition(r,w,a,C,z,D)),r[R]=A(r[R]),r[z]=A(r[z]),e[R]=F,e[z]=I}if(_==="pixel"){var O=e[g];e[g]=b(e[g],!0),vu.coercePosition(r,w,a,C,g,.25),r[g]=A(r[g]),e[g]=O}}u&&vc.noneOrAll(e,r,["x0","x1","y0","y1"]);var J=s==="line",X,U;if(u&&(X=a("label.texttemplate")),X||(U=a("label.text")),U||X){a("label.textangle");var H=a("label.textposition",J?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Bj(J,H)),a("label.padding"),vc.coerceFont(a,"label.font",t.font)}}}});var Cq=Z((Ife,Sq)=>{"use strict";var Uj=Er(),kq=Ie();function Vj(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}Sq.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),kq.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Uj.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Vj(l,u)),a("newshape.label.padding"),kq.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var Pq=Z((Hfe,Eq)=>{"use strict";var C2=Ie(),hu=dt(),du=Af(),qq=Al();Eq.exports=function(r){var t=r._fullLayout,a=C2.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?u+l:l;return{ppad:l,ppadplus:o?v:h,ppadminus:o?h:v}}else return{ppad:l}}function Lq(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var v=1/0,h=-1/0,d=r.path.match(du.segmentRE),m,y,g,_,w;for(e.type==="date"&&(u=qq.decodeDate(u)),m=0;mh&&(h=w)));if(h>=v)return[v,h]}}});var Nq=Z((Ofe,zq)=>{"use strict";var Rq=hh();zq.exports={moduleType:"component",name:"shapes",layoutAttributes:S2(),supplyLayoutDefaults:Aq(),supplyDrawNewShapeDefaults:Cq(),includeBasePlot:Wf()("shapes"),calcAutorange:Pq(),draw:Rq.draw,drawOne:Rq.drawOne}});var L2=Z((Yfe,Iq)=>{"use strict";var Fq=ya(),Zj=ct().templatedArray,Bfe=Gf();Iq.exports=Zj("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",Fq.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",Fq.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var Oq=Z((Ufe,Hq)=>{"use strict";var Xj=Ie(),q2=dt(),Jj=Kn(),Kj=L2(),Qj="images";Hq.exports=function(r,t){var a={name:Qj,handleItemDefaults:$j};Jj(r,t,a)};function $j(e,r,t){function a(h,d){return Xj.coerce(e,r,Kj,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=q2.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var v=q2.getFromId(l,f);v._imgIndices.push(r._index)}q2.coercePosition(r,l,a,f,u,0)}return r}});var Vq=Z((Vfe,Uq)=>{"use strict";var Bq=Ir(),jj=at(),pu=dt(),Yq=Zt(),eee=fo();Uq.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var Gq=Hr(),ree=mv();Wq.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,v=0;v{"use strict";Xq.exports={moduleType:"component",name:"images",layoutAttributes:L2(),supplyLayoutDefaults:Oq(),includeBasePlot:Wf()("images"),draw:Vq(),convertCoords:Zq()}});var Td=Z((Zfe,Kq)=>{"use strict";Kq.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var D2=Z((Xfe,$q)=>{"use strict";var tee=ma(),aee=hi(),nee=Gt().extendFlat,iee=pi().overrideAll,lee=Cv(),Qq=ct().templatedArray,oee=Qq("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});$q.exports=iee(Qq("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:oee,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:nee(lee({editType:"arraydraw"}),{}),font:tee({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:aee.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var tD=Z((Jfe,rD)=>{"use strict";var Md=Ie(),jq=Kn(),eD=D2(),see=Td(),uee=see.name,fee=eD.buttons;rD.exports=function(r,t){var a={name:uee,handleItemDefaults:cee};jq(r,t,a)};function cee(e,r,t){function a(l,o){return Md.coerce(e,r,eD,l,o)}var n=jq(e,r,{name:"buttons",handleItemDefaults:vee}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Md.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Md.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function vee(e,r){function t(n,i){return Md.coerce(e,r,fee,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var iD=Z((Kfe,nD)=>{"use strict";nD.exports=_t;var li=Ir(),aD=Er(),mu=at(),Ad=Ie();function _t(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}_t.barWidth=2;_t.barLength=20;_t.barRadius=2;_t.barPad=1;_t.barColor="#808BA4";_t.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,v=this.position.direction,h=v==="down",d=v==="left",m=v==="right",y=v==="up",g=s,_=f,w,T,b,A;!h&&!d&&!m&&!y&&(this.position.direction="down",h=!0);var C=h||y;C?(w=o,T=w+g,h?(b=u,A=Math.min(b+_,l),_=A-b):(A=u+_,b=Math.max(A-_,0),_=A-b)):(b=u,A=b+_,d?(T=o+g,w=Math.max(T-g,0),g=T-w):(w=o,T=Math.min(w+g,i),g=T-w)),this._box={l:w,t:b,w:g,h:_};var k=s>g,q=_t.barLength+2*_t.barPad,D=_t.barWidth+2*_t.barPad,R=o,z=u+f;z+D>l&&(z=l-D);var F=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);F.exit().on(".drag",null).remove(),F.enter().append("rect").classed("scrollbar-horizontal",!0).call(aD.fill,_t.barColor),k?(this.hbar=F.attr({rx:_t.barRadius,ry:_t.barRadius,x:R,y:z,width:q,height:D}),this._hbarXMin=R+q/2,this._hbarTranslateMax=g-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>_,O=_t.barWidth+2*_t.barPad,J=_t.barLength+2*_t.barPad,X=o+s,U=u;X+O>i&&(X=i-O);var H=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(aD.fill,_t.barColor),I?(this.vbar=H.attr({rx:_t.barRadius,ry:_t.barRadius,x:X,y:U,width:O,height:J}),this._vbarYMin=U+J/2,this._vbarTranslateMax=_-J):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,K=w-.5,Q=I?T+O+.5:T+.5,ie=b-.5,pe=k?A+D+.5:A+.5,me=n._topdefs.selectAll("#"+V).data(k||I?[0]:[]);if(me.exit().remove(),me.enter().append("clipPath").attr("id",V).append("rect"),k||I?(this._clipRect=me.select("rect").attr({x:Math.floor(K),y:Math.floor(ie),width:Math.ceil(Q)-Math.floor(K),height:Math.ceil(pe)-Math.floor(ie)}),this.container.call(mu.setClipUrl,V,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(mu.setClipUrl,null),delete this._clipRect),k||I){var Ae=li.behavior.drag().on("dragstart",function(){li.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ae);var re=li.behavior.drag().on("dragstart",function(){li.event.sourceEvent.preventDefault(),li.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(re),I&&this.vbar.on(".drag",null).call(re)}this.setTranslate(t,a)};_t.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(mu.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};_t.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=li.event.dx),this.vbar&&(t-=li.event.dy),this.setTranslate(r,t)};_t.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=li.event.deltaY),this.vbar&&(t+=li.event.deltaY),this.setTranslate(r,t)};_t.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Ad.constrain(li.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Ad.constrain(li.event.y,s,u),v=(f-s)/(u-s),h=this.position.h-this._box.h;t=v*h}this.setTranslate(r,t)};_t.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Ad.constrain(r||0,0,a),t=Ad.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(mu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(mu.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(mu.setTranslate,r,t+l*this._vbarTranslateMax)}}});var pD=Z((Qfe,dD)=>{"use strict";var yu=Ir(),hc=Ft(),dc=Er(),gu=at(),dn=Ie(),kd=Ta(),hee=ct().arrayEditor,oD=Pa().LINE_SPACING,_r=Td(),dee=iD();dD.exports=function(r){var t=r._fullLayout,a=dn.filterVisible(t[_r.name]);function n(h){hc.autoMargin(r,vD(h))}var i=t._menulayer.selectAll("g."+_r.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(_r.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){yu.select(this).selectAll("g."+_r.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+_r.headerGroupClassName).data(a,pee);l.enter().append("g").classed(_r.headerGroupClassName,!0);for(var o=dn.ensureSingle(i,"g",_r.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var wee=Td();mD.exports={moduleType:"component",name:wee.name,layoutAttributes:D2(),supplyLayoutDefaults:tD(),draw:pD()}});var mc=Z((jfe,gD)=>{"use strict";gD.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var z2=Z((ece,_D)=>{"use strict";var bD=ma(),Tee=Cv(),Mee=Gt().extendDeepAll,Aee=pi().overrideAll,kee=Xu(),xD=ct().templatedArray,Oo=mc(),See=xD("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});_D.exports=Aee(xD("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:See,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Mee(Tee({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:kee.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:bD({})},font:bD({}),activebgcolor:{valType:"color",dflt:Oo.gripBgActiveColor},bgcolor:{valType:"color",dflt:Oo.railBgColor},bordercolor:{valType:"color",dflt:Oo.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Oo.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Oo.tickLength},tickcolor:{valType:"color",dflt:Oo.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Oo.minorTickLength}}),"arraydraw","from-root")});var AD=Z((rce,MD)=>{"use strict";var bu=Ie(),wD=Kn(),TD=z2(),Cee=mc(),Lee=Cee.name,qee=TD.steps;MD.exports=function(r,t){wD(r,t,{name:Lee,handleItemDefaults:Dee})};function Dee(e,r,t){function a(v,h){return bu.coerce(e,r,TD,v,h)}for(var n=wD(e,r,{name:"steps",handleItemDefaults:Eee}),i=0,l=0;l{"use strict";var oi=Ir(),Sd=Ft(),Pl=Er(),si=at(),pn=Ie(),Pee=pn.strTranslate,yc=Ta(),Ree=ct().arrayEditor,Dr=mc(),I2=Pa(),CD=I2.LINE_SPACING,N2=I2.FROM_TL,F2=I2.FROM_BR;RD.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=zee(a,r),i=a._infolayer.selectAll("g."+Dr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Dr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Sd.autoMargin(r,LD(f))}if(i.exit().each(function(){oi.select(this).selectAll("g."+Dr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Dr.groupClassName).data(n,Nee);o.enter().append("g").classed(Dr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",Pee(l-Dr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function H2(e,r){var t=e._dims;return t.inputAreaStart+Dr.stepInset+(t.inputAreaLength-2*Dr.stepInset)*Math.min(1,Math.max(0,r))}function SD(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Dr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Dr.stepInset-2*t.inputAreaStart)))}function Uee(e,r,t){var a=t._dims,n=pn.ensureSingle(e,"rect",Dr.railTouchRectClass,function(i){i.call(ED,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Dr.tickOffset+t.ticklen+a.labelHeight)}).call(Pl.fill,t.bgcolor).attr("opacity",0),si.setTranslate(n,0,a.currentValueTotalHeight)}function Vee(e,r){var t=r._dims,a=t.inputAreaLength-Dr.railInset*2,n=pn.ensureSingle(e,"rect",Dr.railRectClass);n.attr({width:a,height:Dr.railWidth,rx:Dr.railRadius,ry:Dr.railRadius,"shape-rendering":"crispEdges"}).call(Pl.stroke,r.bordercolor).call(Pl.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),si.setTranslate(n,Dr.railInset,(t.inputAreaWidth-Dr.railWidth)*.5+t.currentValueTotalHeight)}});var FD=Z((ace,ND)=>{"use strict";var Gee=mc();ND.exports={moduleType:"component",name:Gee.name,layoutAttributes:z2(),supplyLayoutDefaults:AD(),draw:zD()}});var Ld=Z((nce,HD)=>{"use strict";var ID=hi();HD.exports={bgcolor:{valType:"color",dflt:ID.background,editType:"plot"},bordercolor:{valType:"color",dflt:ID.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var O2=Z((ice,OD)=>{"use strict";OD.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var qd=Z((lce,BD)=>{"use strict";BD.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var VD=Z(Ed=>{"use strict";var Wee=Zt(),Zee=Ta(),YD=qd(),Xee=Pa().LINE_SPACING,Dd=YD.name;function UD(e){var r=e&&e[Dd];return r&&r.visible}Ed.isVisible=UD;Ed.makeData=function(e){for(var r=Wee.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Pd=Ie(),GD=ct(),WD=Zt(),Jee=Ld(),Kee=O2();ZD.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Pd.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=GD.newContainer(i,"rangeslider");function s(A,C){return Pd.coerce(l,o,Jee,A,C)}var u,f;function v(A,C){return Pd.coerce(u,f,Kee,A,C)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(A){return A.substr(0,A.indexOf("y"))===WD.name2id(a)}).map(function(A){return A.substr(A.indexOf("y"),A.length)}),y=Pd.simpleMap(m,WD.id2name),g=0;g{"use strict";var Qee=Zt().list,$ee=df().getAutoRange,jee=qd();JD.exports=function(r){for(var t=Qee(r,"x",!0),a=0;a{"use strict";var Rd=Ir(),ere=br(),rre=Ft(),Lt=Ie(),zd=Lt.strTranslate,$D=at(),Rl=Er(),tre=vf(),are=bd(),B2=Zt(),nre=$n(),ire=wl(),Fr=qd();jD.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=H.max)X=z[U+1];else if(J=H.pmax)X=z[U+1];else if(J0?e.touches[0].clientX:0}function lre(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Fr.slideBoxClassName).node(),i=e.select("rect."+Fr.grabAreaMinClassName).node(),l=e.select("rect."+Fr.grabAreaMaxClassName).node();function o(){var s=Rd.event,u=s.target,f=QD(s),v=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),m=nre.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",g),m.addEventListener("mousemove",y),m.addEventListener("mouseup",g);function y(_){var w=QD(_),T=+w-f,b,A,C;switch(u){case n:if(C="ew-resize",h+T>t._length||d+T<0)return;b=h+T,A=d+T;break;case i:if(C="col-resize",h+T>t._length)return;b=h+T,A=d;break;case l:if(C="col-resize",d+T<0)return;b=h,A=d+T;break;default:C="ew-resize",b=v,A=v+T;break}if(A{"use strict";var mre=Ie(),yre=Ld(),gre=O2(),Y2=VD();rE.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:mre.extendFlat({},yre,{yaxis:gre})}}},layoutAttributes:Ld(),handleDefaults:XD(),calcAutorange:KD(),draw:eE(),isVisible:Y2.isVisible,makeData:Y2.makeData,autoMarginOpts:Y2.autoMarginOpts}});var Nd=Z((vce,nE)=>{"use strict";var bre=ma(),aE=hi(),xre=ct().templatedArray,_re=xre("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});nE.exports={visible:{valType:"boolean",editType:"plot"},buttons:_re,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:bre({editType:"plot"}),bgcolor:{valType:"color",dflt:aE.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:aE.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var U2=Z((hce,iE)=>{"use strict";iE.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var sE=Z((dce,oE)=>{"use strict";var Fd=Ie(),wre=Er(),Tre=ct(),Mre=Kn(),lE=Nd(),V2=U2();oE.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Tre.newContainer(t,"rangeselector");function s(d,m){return Fd.coerce(l,o,lE,d,m)}var u=Mre(l,o,{name:"buttons",handleItemDefaults:Are,calendar:i}),f=s("visible",u.length>0);if(f){var v=kre(t,a,n);s("x",v[0]),s("y",v[1]),Fd.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Fd.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",wre.contrast(h,V2.lightAmount,V2.darkAmount)),s("bordercolor"),s("borderwidth")}};function Are(e,r,t,a){var n=a.calendar;function i(s,u){return Fd.coerce(e,r,lE.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function kre(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var Sre=O1(),Cre=Ie().titleCase;uE.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Lre(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Lre(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Sre["utc"+Cre(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var gE=Z((mce,yE)=>{"use strict";var Hd=Ir(),qre=br(),Dre=Ft(),cE=Er(),mE=at(),Ki=Ie(),vE=Ki.strTranslate,Id=Ta(),Ere=Zt(),Z2=Pa(),hE=Z2.LINE_SPACING,dE=Z2.FROM_TL,pE=Z2.FROM_BR,W2=U2(),Pre=fE();yE.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Rre(r),zre);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Hd.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(Ki.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Hd.select(this),v=Pre(l,u);u._isActive=Nre(l,u,v),f.call(G2,o,u),f.call(Ire,o,u,r),f.on("click",function(){r._dragged||qre.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(G2,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(G2,o,u)})}),Ore(r,s,o,l._name,i)})};function Rre(e){for(var r=Ere.list(e,"x",!0),t=[],a=0;a{"use strict";bE.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Nd()}}},layoutAttributes:Nd(),handleDefaults:sE(),draw:gE()}});var Od=Z(X2=>{"use strict";var _E=Gt().extendFlat;X2.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",l={x:_E({},t,{}),y:_E({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};X2.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var Bre=Ie(),Yre=cs().counter,Ure=Od().attributes,wE=ya().idRegex,Vre=ct(),J2={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Yre("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[wE.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[wE.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Ure({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Bd(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Gre(e,r){var t=e.grid||{},a=Bd(r,t,"x"),n=Bd(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var v=Vre.newContainer(r,"grid");function h(C,k){return Bre.coerce(t,v,J2,C,k)}var d=h("rows",u),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!l&&!o){var y=h("pattern")==="independent";y&&(i=!0)}v._hasSubplotGrid=i;var g=h("roworder"),_=g==="top to bottom",w=i?.2:.1,T=i?.3:.1,b,A;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,A=r._splomGridDflt.yside),v._domains={x:TE("x",h,w,b,m),y:TE("y",h,T,A,d,_)}}function TE(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),v=f*(1-l),h=0;h{"use strict";SE.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var qE=Z((_ce,LE)=>{"use strict";var CE=Hr(),Zre=br(),Xre=Ie(),Jre=ct(),Kre=K2();LE.exports=function(e,r,t,a){var n="error_"+a.axis,i=Jre.newContainer(r,n),l=e[n]||{};function o(m,y){return Xre.coerce(l,i,Kre,m,y)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),v=!0;f!=="sqrt"&&(v=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),v||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),v||o("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&o(h,!(l.color||CE(l.thickness)||CE(l.width)))}(!a.inherit||!i[h])&&(o("color",t),o("thickness"),o("width",Zre.traceIs(r,"gl3d")?0:4))}}});var Q2=Z((wce,EE)=>{"use strict";EE.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var v=+n[f];return[v,v]};var i=r.arrayminus||[];return function(u,f){var v=+n[f],h=+i[f];return!isNaN(v)||!isNaN(h)?[h||0,v||0]:[NaN,NaN]}}else{var l=DE(t,r.value),o=DE(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function DE(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var zE=Z((Tce,RE)=>{"use strict";var $2=Hr(),Qre=br(),j2=dt(),$re=Ie(),jre=Q2();RE.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var NE=Ir(),zl=Hr(),ete=at(),rte=on();FE.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var v=f[0].trace,h=v.error_x||{},d=v.error_y||{},m;v.ids&&(m=function(w){return w.id});var y=rte.hasMarkers(v)&&v.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var g=NE.select(this).selectAll("g.errorbar").data(f,m);if(g.exit().remove(),!!f.length){h.visible||g.selectAll("path.xerror").remove(),d.visible||g.selectAll("path.yerror").remove(),g.style("opacity",1);var _=g.enter().append("g").classed("errorbar",!0);s&&_.style("opacity",0).transition().duration(n.duration).style("opacity",1),ete.setClipUrl(g,a.layerClipId,r),g.each(function(w){var T=NE.select(this),b=tte(w,l,o);if(!(y&&!w.vis)){var A,C=T.select("path.yerror");if(d.visible&&zl(b.x)&&zl(b.yh)&&zl(b.ys)){var k=d.width;A="M"+(b.x-k)+","+b.yh+"h"+2*k+"m-"+k+",0V"+b.ys,b.noYS||(A+="m-"+k+",0h"+2*k),i=!C.size(),i?C=T.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(C=C.transition().duration(n.duration).ease(n.easing)),C.attr("d",A)}else C.remove();var q=T.select("path.xerror");if(h.visible&&zl(b.y)&&zl(b.xh)&&zl(b.xs)){var D=(h.copy_ystyle?d:h).width;A="M"+b.xh+","+(b.y-D)+"v"+2*D+"m0,-"+D+"H"+b.xs,b.noXS||(A+="m0,-"+D+"v"+2*D),i=!q.size(),i?q=T.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(q=q.transition().duration(n.duration).ease(n.easing)),q.attr("d",A)}else q.remove()}})}})};function tte(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),zl(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),zl(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var BE=Z((Ace,OE)=>{"use strict";var ate=Ir(),HE=Er();OE.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=ate.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(HE.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(HE.stroke,i.color)})}});var VE=Z((kce,UE)=>{"use strict";var gc=Ie(),YE=pi().overrideAll,bc=K2(),Bo={error_x:gc.extendFlat({},bc),error_y:gc.extendFlat({},bc)};delete Bo.error_x.copy_zstyle;delete Bo.error_y.copy_zstyle;delete Bo.error_y.copy_ystyle;var xc={error_x:gc.extendFlat({},bc),error_y:gc.extendFlat({},bc),error_z:gc.extendFlat({},bc)};delete xc.error_x.copy_ystyle;delete xc.error_y.copy_ystyle;delete xc.error_z.copy_ystyle;delete xc.error_z.copy_zstyle;UE.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Bo,bar:Bo,histogram:Bo,scatter3d:YE(xc,"calc","nested"),scattergl:YE(Bo,"calc","nested")}},supplyDefaults:qE(),calc:zE(),makeComputeError:Q2(),plot:IE(),style:BE(),hoverInfo:nte};function nte(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var WE=Z((Sce,GE)=>{"use strict";GE.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var jE=Z((Cce,$E)=>{"use strict";var Nl=Ir(),e3=bn(),Ud=Ft(),ZE=br(),Qi=dt(),Yd=$n(),Fn=Ie(),fi=Fn.strTranslate,QE=Gt().extendFlat,r3=wl(),ui=at(),t3=Er(),ite=vf(),lte=Ta(),ote=Tn().flipScale,ste=c2(),ute=v2(),fte=Jn(),a3=Pa(),XE=a3.LINE_SPACING,JE=a3.FROM_TL,KE=a3.FROM_BR,xt=WE().cn;function cte(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+xt.colorbar).data(vte(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(xt.colorbar,!0),t.each(function(a){var n=Nl.select(this);Fn.ensureSingle(n,"rect",xt.cbbg),Fn.ensureSingle(n,"g",xt.cbfills),Fn.ensureSingle(n,"g",xt.cblines),Fn.ensureSingle(n,"g",xt.cbaxis,function(l){l.classed(xt.crisp,!0)}),Fn.ensureSingle(n,"g",xt.cbtitleunshift,function(l){l.append("g").classed(xt.cbtitle,!0)}),Fn.ensureSingle(n,"rect",xt.cboutline);var i=hte(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&dte(n,a,e)}),t.exit().each(function(a){Ud.autoMargin(e,a._id)}).remove(),t.order()}function vte(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(T){return QE(T,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?ote(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f1){var ee=Math.pow(10,Math.floor(Math.log(Y)/Math.LN10));se*=ee*Fn.roundUp(Y/ee,[2,5,10]),(Math.abs(F.start)/F.size+1e-6)%1<2e-6&&(fe.tick0=0)}fe.dtick=se}fe.domain=a?[re+m/b.h,re+V-m/b.h]:[re+d/b.w,re+V-d/b.w],fe.setScale(),e.attr("transform",fi(Math.round(b.l),Math.round(b.t)));var B=e.select("."+xt.cbtitleunshift).attr("transform",fi(-Math.round(b.l),-Math.round(b.t))),ye=fe.ticklabelposition,Me=fe.title.font.size,ge=e.select("."+xt.cbaxis),Re,Ne=0,Ee=0;function ze(Oe,ne){var Te={propContainer:fe,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:T._dfltTitle.colorbar,containerGroup:e.select("."+xt.cbtitle)},Xe=Oe.charAt(0)==="h"?Oe.substr(1):"h"+Oe;e.selectAll("."+Xe+",."+Xe+"-math-group").remove(),ite.draw(t,Oe,QE(Te,ne||{}))}function Ge(){if(a&&ke||!a&&!ke){var Oe,ne;q==="top"&&(Oe=d+b.l+K*y,ne=m+b.t+Q*(1-re-V)+3+Me*.75),q==="bottom"&&(Oe=d+b.l+K*y,ne=m+b.t+Q*(1-re)-3-Me*.25),q==="right"&&(ne=m+b.t+Q*g+3+Me*.75,Oe=d+b.l+K*re),ze(fe._id+"title",{attributes:{x:Oe,y:ne,"text-anchor":a?"start":"middle"}})}}function Ue(){if(a&&!ke||!a&&ke){var Oe=fe.position||0,ne=fe._offset+fe._length/2,Te,Xe;if(q==="right")Xe=ne,Te=b.l+K*Oe+10+Me*(fe.showticklabels?1:.5);else if(Te=ne,q==="bottom"&&(Xe=b.t+Q*Oe+10+(ye.indexOf("inside")===-1?fe.tickfont.size:0)+(fe.ticks!=="inside"&&r.ticklen||0)),q==="top"){var cr=k.text.split("
").length;Xe=b.t+Q*Oe+10-X-XE*Me*cr}ze((a?"h":"v")+fe._id+"title",{avoid:{selection:Nl.select(t).selectAll("g."+fe._id+"tick"),side:q,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?T.width:T.height},attributes:{x:Te,y:Xe,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function De(){if(!a&&!ke||a&&ke){var Oe=e.select("."+xt.cbtitle),ne=Oe.select("text"),Te=[-s/2,s/2],Xe=Oe.select(".h"+fe._id+"title-math-group").node(),cr=15.6;ne.node()&&(cr=parseInt(ne.node().style.fontSize,10)*XE);var fr;if(Xe?(fr=ui.bBox(Xe),Ee=fr.width,Ne=fr.height,Ne>cr&&(Te[1]-=(Ne-cr)/2)):ne.node()&&!ne.classed(xt.jsPlaceholder)&&(fr=ui.bBox(ne.node()),Ee=fr.width,Ne=fr.height),a){if(Ne){if(Ne+=5,q==="top")fe.domain[1]-=Ne/b.h,Te[1]*=-1;else{fe.domain[0]+=Ne/b.h;var le=lte.lineCount(ne);Te[1]+=(1-le)*cr}Oe.attr("transform",fi(Te[0],Te[1])),fe.setScale()}}else Ee&&(q==="right"&&(fe.domain[0]+=(Ee+Me/2)/b.w),Oe.attr("transform",fi(Te[0],Te[1])),fe.setScale())}e.selectAll("."+xt.cbfills+",."+xt.cblines).attr("transform",a?fi(0,Math.round(b.h*(1-fe.domain[1]))):fi(Math.round(b.w*fe.domain[0]),0)),ge.attr("transform",a?fi(0,Math.round(-b.t)):fi(Math.round(-b.l),0));var Se=e.select("."+xt.cbfills).selectAll("rect."+xt.cbfill).attr("style","").data(O);Se.enter().append("rect").classed(xt.cbfill,!0).attr("style",""),Se.exit().remove();var Fe=D.map(fe.c2p).map(Math.round).sort(function(vr,Ke){return vr-Ke});Se.each(function(vr,Ke){var Pe=[Ke===0?D[0]:(O[Ke]+O[Ke-1])/2,Ke===O.length-1?D[1]:(O[Ke]+O[Ke+1])/2].map(fe.c2p).map(Math.round);a&&(Pe[1]=Fn.constrain(Pe[1]+(Pe[1]>Pe[0])?1:-1,Fe[0],Fe[1]));var ae=Nl.select(this).attr(a?"x":"y",ie).attr(a?"y":"x",Nl.min(Pe)).attr(a?"width":"height",Math.max(X,2)).attr(a?"height":"width",Math.max(Nl.max(Pe)-Nl.min(Pe),2));if(r._fillgradient)ui.gradient(ae,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var ue=z(vr).replace("e-","");ae.attr("fill",e3(ue).toHexString())}});var We=e.select("."+xt.cblines).selectAll("path."+xt.cbline).data(C.color&&C.width?J:[]);We.enter().append("path").classed(xt.cbline,!0),We.exit().remove(),We.each(function(vr){var Ke=ie,Pe=Math.round(fe.c2p(vr))+C.width/2%1;Nl.select(this).attr("d","M"+(a?Ke+","+Pe:Pe+","+Ke)+(a?"h":"v")+X).call(ui.lineGroupStyle,C.width,R(vr),C.dash)}),ge.selectAll("g."+fe._id+"tick,path").remove();var Ve=ie+X+(s||0)/2-(r.ticks==="outside"?1:0),Je=Qi.calcTicks(fe),$e=Qi.getTickSigns(fe)[2];return Qi.drawTicks(t,fe,{vals:fe.ticks==="inside"?Qi.clipEnds(fe,Je):Je,layer:ge,path:Qi.makeTickPath(fe,Ve,$e),transFn:Qi.makeTransTickFn(fe)}),Qi.drawLabels(t,fe,{vals:Je,layer:ge,transFn:Qi.makeTransTickLabelFn(fe),labelFns:Qi.makeLabelFns(fe,Ve)})}function He(){var Oe,ne=X+s/2;ye.indexOf("inside")===-1&&(Oe=ui.bBox(ge.node()),ne+=a?Oe.width:Oe.height),Re=B.select("text");var Te=0,Xe=a&&q==="top",cr=!a&&q==="right",fr=0;if(Re.node()&&!Re.classed(xt.jsPlaceholder)){var le,Se=B.select(".h"+fe._id+"title-math-group").node();Se&&(a&&ke||!a&&!ke)?(Oe=ui.bBox(Se),Te=Oe.width,le=Oe.height):(Oe=ui.bBox(B.node()),Te=Oe.right-b.l-(a?ie:Le),le=Oe.bottom-b.t-(a?Le:ie),!a&&q==="top"&&(ne+=Oe.height,fr=Oe.height)),cr&&(Re.attr("transform",fi(Te/2+Me/2,0)),Te*=2),ne=Math.max(ne,a?Te:le)}var Fe=(a?d:m)*2+ne+u+s/2,We=0;!a&&k.text&&h==="bottom"&&g<=0&&(We=Fe/2,Fe+=We,fr+=We),T._hColorbarMoveTitle=We,T._hColorbarMoveCBTitle=fr;var Ve=u+s,Je=(a?ie:Le)-Ve/2-(a?d:0),$e=(a?Le:ie)-(a?H:m+fr-We);e.select("."+xt.cbbg).attr("x",Je).attr("y",$e).attr(a?"width":"height",Math.max(Fe-We,2)).attr(a?"height":"width",Math.max(H+Ve,2)).call(t3.fill,f).call(t3.stroke,r.bordercolor).style("stroke-width",u);var vr=cr?Math.max(Te-10,0):0;e.selectAll("."+xt.cboutline).attr("x",(a?ie:Le+d)+vr).attr("y",(a?Le+m-H:ie)+(Xe?Ne:0)).attr(a?"width":"height",Math.max(X,2)).attr(a?"height":"width",Math.max(H-(a?2*m+Ne:2*d+vr),2)).call(t3.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ke=a?pe*Fe:0,Pe=a?0:(1-me)*Fe-fr;if(Ke=w?b.l-Ke:-Ke,Pe=_?b.t-Pe:-Pe,e.attr("transform",fi(Ke,Pe)),!a&&(u||e3(f).getAlpha()&&!e3.equals(T.paper_bgcolor,f))){var ae=ge.selectAll("text"),ue=ae[0].length,qe=e.select("."+xt.cbbg).node(),Ce=ui.bBox(qe),or=ui.getTranslate(e),lr=2;ae.each(function(ua,fa){var Nt=0,Ba=ue-1;if(fa===Nt||fa===Ba){var yr=ui.bBox(this),lt=ui.getTranslate(this),Gr;if(fa===Ba){var gt=yr.right+lt.x,kt=Ce.right+or.x+Le-u-lr+y;Gr=kt-gt,Gr>0&&(Gr=0)}else if(fa===Nt){var ot=yr.left+lt.x,bt=Ce.left+or.x+Le+u+lr;Gr=bt-ot,Gr<0&&(Gr=0)}Gr&&(ue<3?this.setAttribute("transform","translate("+Gr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ar={},Mr=JE[v],Br=KE[v],et=JE[h],Qr=KE[h],Kt=Fe-X;a?(i==="pixels"?(ar.y=g,ar.t=H*et,ar.b=H*Qr):(ar.t=ar.b=0,ar.yt=g+n*et,ar.yb=g-n*Qr),o==="pixels"?(ar.x=y,ar.l=Fe*Mr,ar.r=Fe*Br):(ar.l=Kt*Mr,ar.r=Kt*Br,ar.xl=y-l*Mr,ar.xr=y+l*Br)):(i==="pixels"?(ar.x=y,ar.l=H*Mr,ar.r=H*Br):(ar.l=ar.r=0,ar.xl=y+n*Mr,ar.xr=y-n*Br),o==="pixels"?(ar.y=1-g,ar.t=Fe*et,ar.b=Fe*Qr):(ar.t=Kt*et,ar.b=Kt*Qr,ar.yt=g-l*et,ar.yb=g+l*Qr));var qt=r.y<.5?"b":"t",yt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var At={r:T.width-Je-Ke,l:Je+ar.r,b:T.height-$e-Pe,t:$e+ar.b};w&&_?Ud.autoMargin(t,r._id,ar):w?t._fullLayout._reservedMargin[r._id][qt]=At[qt]:_||a?t._fullLayout._reservedMargin[r._id][yt]=At[yt]:t._fullLayout._reservedMargin[r._id][qt]=At[qt]}return Fn.syncOrAsync([Ud.previousPromises,Ge,De,Ue,Ud.previousPromises,He],t)}function dte(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Yd.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),r3(e)},moveFn:function(u,f){e.attr("transform",l+fi(u,f)),o=Yd.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Yd.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Yd.getCursor(o,s,r.xanchor,r.yanchor);r3(e,v)},doneFn:function(){if(r3(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?ZE.call("_guiRestyle",t,u,r._traceIndex):ZE.call("_guiRelayout",t,u)}}})}function pte(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";eP.exports={moduleType:"component",name:"colorbar",attributes:a0(),supplyDefaults:nm(),draw:jE().draw,hasColorbar:Zp()}});var aP=Z((qce,tP)=>{"use strict";tP.exports={moduleType:"component",name:"legend",layoutAttributes:ry(),supplyLayoutDefaults:ny(),draw:my(),style:vy()}});var iP=Z((Dce,nP)=>{"use strict";nP.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var oP=Z((Ece,lP)=>{"use strict";lP.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var i3=Z((Pce,cP)=>{"use strict";var yte=br(),fP=Ie(),n3=fP.extendFlat,sP=fP.extendDeep;function uP(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function gte(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}cP.exports=function(r,t){var a,n=r.data,i=r.layout,l=sP([],n),o=sP({},i,uP(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var bte=Uv().EventEmitter,xte=br(),_te=Ie(),vP=Do(),wte=i3(),Tte=Qh(),Mte=$h();function Ate(e,r){var t=new bte,a=wte(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=vP.getDelay(n._fullLayout);setTimeout(function(){var s=Tte(n),u=document.createElement("canvas");u.id=_te.randstr(),t=Mte({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=vP.getRedrawFunc(n);return xte.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}hP.exports=Ate});var yP=Z((zce,mP)=>{"use strict";var pP=Do(),kte={getDelay:pP.getDelay,getRedrawFunc:pP.getRedrawFunc,clone:i3(),toSVG:Qh(),svgToImg:$h(),toImage:dP(),downloadImage:Rg()};mP.exports=kte});var bP=Z($i=>{"use strict";$i.version=lv().version;ob();Q4();var Ste=br(),_c=$i.register=Ste.register,o3=wS(),gP=Object.keys(o3);for(Vd=0;Vd{"use strict";xP.exports=bP()});var Wd=Z((Ice,wP)=>{"use strict";wP.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var wc=Z((Hce,kP)=>{"use strict";var Mt=qo(),TP=t0().axisHoverFormat,Cte=yi().hovertemplateAttrs,Lte=yi().texttemplateAttrs,AP=uf(),qte=ma(),MP=Wd(),Dte=mi().pattern,Yo=Gt().extendFlat,s3=qte({editType:"calc",arrayOk:!0,colorEditType:"style"}),Ete=Mt.marker,Pte=Ete.line,Rte=Yo({},Pte.width,{dflt:0}),zte=Yo({width:Rte,editType:"calc"},AP("marker.line")),Nte=Yo({line:zte,editType:"calc"},AP("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Dte,cornerradius:{valType:"any",editType:"calc"}});kP.exports={x:Mt.x,x0:Mt.x0,dx:Mt.dx,y:Mt.y,y0:Mt.y0,dy:Mt.dy,xperiod:Mt.xperiod,yperiod:Mt.yperiod,xperiod0:Mt.xperiod0,yperiod0:Mt.yperiod0,xperiodalignment:Mt.xperiodalignment,yperiodalignment:Mt.yperiodalignment,xhoverformat:TP("x"),yhoverformat:TP("y"),text:Mt.text,texttemplate:Lte({editType:"plot"},{keys:MP.eventDataKeys}),hovertext:Mt.hovertext,hovertemplate:Cte({},{keys:MP.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Yo({},s3,{}),insidetextfont:Yo({},s3,{}),outsidetextfont:Yo({},s3,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Yo({},Mt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Nte,offsetgroup:Mt.offsetgroup,alignmentgroup:Mt.alignmentgroup,selected:{marker:{opacity:Mt.selected.marker.opacity,color:Mt.selected.marker.color,editType:"style"},textfont:Mt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Mt.unselected.marker.opacity,color:Mt.unselected.marker.color,editType:"style"},textfont:Mt.unselected.textfont,editType:"style"},zorder:Mt.zorder}});var u3=Z((Oce,SP)=>{"use strict";SP.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var DP=Z((Bce,qP)=>{"use strict";var Fte=Er(),CP=Tn().hasColorscale,LP=Ls(),Ite=Ie().coercePattern;qP.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=CP(r,"marker");o&&LP(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Fte.defaultLine),CP(r,"marker.line")&&LP(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),Ite(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var Tc=Z((Yce,FP)=>{"use strict";var EP=Hr(),_u=Ie(),PP=Er(),Hte=br(),Ote=Fg(),Bte=Ig(),Yte=DP(),Ute=Hg(),RP=wc(),Zd=_u.coerceFont;function Vte(e,r,t,a){function n(u,f){return _u.coerce(e,r,RP,u,f)}var i=Ote(e,r,a,n);if(!i){r.visible=!1;return}Bte(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var l=n("textposition");NP(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Yte(e,r,n,t,a);var o=(r.marker.line||{}).color,s=Hte.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||PP.defaultLine,{axis:"y"}),s(e,r,o||PP.defaultLine,{axis:"x",inherit:"y"}),_u.coerceSelectionMarkerOpacity(r,n)}function Gte(e,r){var t,a;function n(o,s){return _u.coerce(a._input,a,RP,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&EP(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function NP(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,v=i.moduleHasInsideanchor!==!1,h=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",m=d||n==="inside",y=d||n==="outside";if(m||y){var g=Zd(a,"textfont",t.font),_=_u.extendFlat({},g),w=e.textfont&&e.textfont.color,T=!w;if(T&&delete _.color,Zd(a,"insidetextfont",_),h){var b=_u.extendFlat({},g);T&&delete b.color,Zd(a,"pathbar.textfont",b)}y&&Zd(a,"outsidetextfont",g),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate")}m&&v&&a("insidetextanchor")}FP.exports={supplyDefaults:Vte,crossTraceDefaults:Gte,handleText:NP,validateCornerradius:zP}});var HP=Z((Uce,IP)=>{"use strict";var Wte=br(),Zte=dt(),Xte=Ie(),Jte=u3(),Kte=Tc().validateCornerradius;IP.exports=function(e,r,t){function a(y,g){return Xte.coerce(e,r,Jte,y,g)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[h]&&(l=!0),o[h]=!0),v.visible&&v.type==="histogram"){var d=Zte.getFromId({_fullLayout:r},v[v.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var m=a("barcornerradius");r.barcornerradius=Kte(m)}});var f3=Z((Vce,OP)=>{"use strict";var wu=Ie();OP.exports=function(r,t){for(var a=0;a{"use strict";var BP=dt(),YP=Og(),UP=Tn().hasColorscale,VP=l0(),Qte=f3(),$te=Vg();GP.exports=function(r,t){var a=BP.getFromId(r,t.xaxis||"x"),n=BP.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,v={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",v),o=n.makeCalcdata(t,"y"),s=YP(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",v),o=a.makeCalcdata(t,"x"),s=YP(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var h=Math.min(l.length,i.length),d=new Array(h),m=0;m{"use strict";var jte=Ir(),eae=Ie();function rae(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=jte.select(this).select("text");eae.setTransormAndDisplay(u,s)}})}}function tae(e,r,t){if(t.uniformtext.mode){var a=ZP(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var nae=Hr(),iae=bn(),JP=Ie().isArrayOrTypedArray;Uo.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Uo.coerceNumber=function(e,r,t){if(nae(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Uo.coerceColor=function(e,r,t){return iae(r).isValid()?r:t!==void 0?t:e.dflt};Uo.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Uo.getValue=function(e,r){var t;return JP(e)?r{"use strict";var Ac=Ir(),lae=Er(),kc=at(),KP=Ie(),QP=br(),$P=Mc().resizeText,c3=wc(),oae=c3.textfont,sae=c3.insidetextfont,uae=c3.outsidetextfont,xa=Xd();function fae(e){var r=Ac.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");$P(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&Ac.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=Ac.select(this),l=n[0].trace;jP(i,l,e)}),QP.getComponentMethod("errorbars","style")(r)}function jP(e,r,t){kc.pointStyle(e.selectAll("path"),r,t),eR(e,r,t)}function eR(e,r,t){e.selectAll("text").each(function(a){var n=Ac.select(this),i=KP.ensureUniformFontSize(t,rR(n,a,r,t));kc.font(n,i)})}function cae(e,r,t){var a=r[0].trace;a.selectedpoints?vae(t,a,e):(jP(t,a,e),QP.getComponentMethod("errorbars","style")(t))}function vae(e,r,t){kc.selectedPointStyle(e.selectAll("path"),r),hae(e.selectAll("text"),r,t)}function hae(e,r,t){e.each(function(a){var n=Ac.select(this),i;if(a.selected){i=KP.ensureUniformFontSize(t,rR(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),kc.font(n,i)}else kc.selectedTextStyle(n,r)})}function rR(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=iR(r,t);i=aR(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=nR(t,r.i,n));return i}function tR(e,r,t){return v3(oae,e.textfont,r,t)}function aR(e,r,t,a){var n=tR(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:lae.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),v3(sae,e.insidetextfont,r,n)}function nR(e,r,t){var a=tR(e,r,t);return v3(uae,e.outsidetextfont,r,a)}function v3(e,r,t,a){r=r||{};var n=xa.getValue(r.family,t),i=xa.getValue(r.size,t),l=xa.getValue(r.color,t),o=xa.getValue(r.weight,t),s=xa.getValue(r.style,t),u=xa.getValue(r.variant,t),f=xa.getValue(r.textcase,t),v=xa.getValue(r.lineposition,t),h=xa.getValue(r.shadow,t);return{family:xa.coerceString(e.family,n,a.family),size:xa.coerceNumber(e.size,i,a.size),color:xa.coerceColor(e.color,l,a.color),weight:xa.coerceString(e.weight,o,a.weight),style:xa.coerceString(e.style,s,a.style),variant:xa.coerceString(e.variant,u,a.variant),textcase:xa.coerceString(e.variant,f,a.textcase),lineposition:xa.coerceString(e.variant,v,a.lineposition),shadow:xa.coerceString(e.variant,h,a.shadow)}}function iR(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}lR.exports={style:fae,styleTextPoints:eR,styleOnSelect:cae,getInsideTextFont:aR,getOutsideTextFont:nR,getBarColor:iR,resizeText:$P}});var pR=Z((Jce,dR)=>{"use strict";var Kd=Ir(),Qd=Hr(),oa=Ie(),dae=Ta(),pae=Er(),Fl=at(),mae=br(),$d=dt().tickText,oR=Mc(),yae=oR.recordMinTextSize,gae=oR.clearMinTextSize,h3=Jd(),Tu=Xd(),bae=Wd(),sR=wc(),xae=sR.text,_ae=sR.textposition,wae=xi().appendArrayPointValue,Oa=bae.TEXTPAD;function Tae(e){return e.id}function Mae(e){if(e.ids)return Tae}function d3(e){return(e>0)-(e<0)}function Pi(e,r){return e0}function kae(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},gae("bar",s));var f=oa.makeTraceGroups(a,t,"trace bars").each(function(v){var h=Kd.select(this),d=v[0].trace,m=v[0].t,y=d.type==="waterfall",g=d.type==="funnel",_=d.type==="histogram",w=d.type==="bar",T=w||g,b=0;y&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var A=d.orientation==="h",C=fR(n),k=oa.ensureSingle(h,"g","points"),q=Mae(d),D=k.selectAll("g.point").data(oa.identity,q);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(z,F){var I=Kd.select(this),O=Aae(z,l,o,A),J=O[0][0],X=O[0][1],U=O[1][0],H=O[1][1],V=(A?X-J:H-U)===0;V&&T&&Tu.getLineWidth(d,z)&&(V=!1),V||(V=!Qd(J)||!Qd(X)||!Qd(U)||!Qd(H)),z.isBlank=V,V&&(A?X=J:H=U),b&&!V&&(A?(J-=Pi(J,X)*b,X+=Pi(J,X)*b):(U-=Pi(U,H)*b,H+=Pi(U,H)*b));var K,Q;if(d.type==="waterfall"){if(!V){var ie=d[z.dir].marker;K=ie.line.width,Q=ie.color}}else K=Tu.getLineWidth(d,z),Q=z.mc||d.marker.color;function pe(ne){var Te=Kd.round(K/2%1,2);return n.gap===0&&n.groupgap===0?Kd.round(Math.round(ne)-Te,2):ne}function me(ne,Te,Xe){return Xe&&ne===Te?ne:Math.abs(ne-Te)>=2?pe(ne):ne>Te?Math.ceil(ne):Math.floor(ne)}var Ae=pae.opacity(Q),re=Ae<1||K>.01?pe:me;e._context.staticPlot||(J=re(J,X,A),X=re(X,J,A),U=re(U,H,!A),H=re(H,U,!A));var Le=A?l.c2p:o.c2p,fe;z.s0>0?fe=z._sMax:z.s0<0?fe=z._sMin:fe=z.s1>0?z._sMax:z._sMin;function ke(ne,Te){if(!ne)return 0;var Xe=Math.abs(A?H-U:X-J),cr=Math.abs(A?X-J:H-U),fr=re(Math.abs(Le(fe,!0)-Le(0,!0))),le=z.hasB?Math.min(Xe/2,cr/2):Math.min(Xe/2,fr),Se;if(Te==="%"){var Fe=Math.min(50,ne);Se=Xe*(Fe/100)}else Se=ne;return re(Math.max(Math.min(Se,le),0))}var se=w||_?ke(m.cornerradiusvalue,m.cornerradiusform):0,be,Y,ee="M"+J+","+U+"V"+H+"H"+X+"V"+U+"Z",B=0;if(se&&z.s){var ye=d3(z.s0)===0||d3(z.s)===d3(z.s0)?z.s1:z.s0;if(B=re(z.hasB?0:Math.abs(Le(fe,!0)-Le(ye,!0))),B0?Math.sqrt(B*(2*se-B)):0,ze=Me>0?Math.max:Math.min;be="M"+J+","+U+"V"+(H-Ne*ge)+"H"+ze(X-(se-B)*Me,J)+"A "+se+","+se+" 0 0 "+Re+" "+X+","+(H-se*ge-Ee)+"V"+(U+se*ge+Ee)+"A "+se+","+se+" 0 0 "+Re+" "+ze(X-(se-B)*Me,J)+","+(U+Ne*ge)+"Z"}else if(z.hasB)be="M"+(J+se*Me)+","+U+"A "+se+","+se+" 0 0 "+Re+" "+J+","+(U+se*ge)+"V"+(H-se*ge)+"A "+se+","+se+" 0 0 "+Re+" "+(J+se*Me)+","+H+"H"+(X-se*Me)+"A "+se+","+se+" 0 0 "+Re+" "+X+","+(H-se*ge)+"V"+(U+se*ge)+"A "+se+","+se+" 0 0 "+Re+" "+(X-se*Me)+","+U+"Z";else{Y=Math.abs(H-U)+B;var Ge=Y0?Math.sqrt(B*(2*se-B)):0,De=ge>0?Math.max:Math.min;be="M"+(J+Ge*Me)+","+U+"V"+De(H-(se-B)*ge,U)+"A "+se+","+se+" 0 0 "+Re+" "+(J+se*Me-Ue)+","+H+"H"+(X-se*Me+Ue)+"A "+se+","+se+" 0 0 "+Re+" "+(X-Ge*Me)+","+De(H-(se-B)*ge,U)+"V"+U+"Z"}}else be=ee}else be=ee;var He=uR(oa.ensureSingle(I,"path"),s,n,i);if(He.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((X-J)*(H-U))||V&&e._context.staticPlot?"M0,0Z":be).call(Fl.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&C){var Oe=Fl.makePointStyleFns(d);Fl.singlePointStyle(z,He,d,Oe,e)}Sae(e,r,I,v,F,J,X,U,H,se,B,n,i),r.layerClipId&&Fl.hideOutsideRangePoint(z,I.select("text"),l,o,d.xcalendar,d.ycalendar)});var R=d.cliponaxis===!1;Fl.setClipUrl(h,R?null:r.layerClipId,e)});mae.getComponentMethod("errorbars","plot")(e,f,r,n)}function Sae(e,r,t,a,n,i,l,o,s,u,f,v,h){var d=r.xaxis,m=r.yaxis,y=e._fullLayout,g;function _(Y,ee,B){var ye=oa.ensureSingle(Y,"text").text(ee).attr({class:"bartext bartext-"+g,"text-anchor":"middle","data-notex":1}).call(Fl.font,B).call(dae.convertToTspans,e);return ye}var w=a[0].trace,T=w.orientation==="h",b=qae(y,a,n,d,m);g=Dae(w,n);var A=v.mode==="stack"||v.mode==="relative",C=a[n],k=!A||C._outmost,q=C.hasB,D=u&&u-f>Oa;if(!b||g==="none"||(C.isBlank||i===l||o===s)&&(g==="auto"||g==="inside")){t.select("text").remove();return}var R=y.font,z=h3.getBarColor(a[n],w),F=h3.getInsideTextFont(w,n,R,z),I=h3.getOutsideTextFont(w,n,R),O=w.insidetextanchor||"end",J=t.datum();T?d.type==="log"&&J.s0<=0&&(d.range[0]0&&pe>0,re;D?q?re=Vo(H-2*u,V,ie,pe,T)||Vo(H,V-2*u,ie,pe,T):T?re=Vo(H-(u-f),V,ie,pe,T)||Vo(H,V-2*(u-f),ie,pe,T):re=Vo(H,V-(u-f),ie,pe,T)||Vo(H-2*(u-f),V,ie,pe,T):re=Vo(H,V,ie,pe,T),Ae&&re?g="inside":(g="outside",K.remove(),K=null)}else g="inside";if(!K){me=oa.ensureUniformFontSize(e,g==="outside"?I:F),K=_(t,b,me);var Le=K.attr("transform");if(K.attr("transform",""),Q=Fl.bBox(K.node()),ie=Q.width,pe=Q.height,K.attr("transform",Le),ie<=0||pe<=0){K.remove();return}}var fe=w.textangle,ke,se;g==="outside"?(se=w.constraintext==="both"||w.constraintext==="outside",ke=Lae(i,l,o,s,Q,{isHorizontal:T,constrained:se,angle:fe})):(se=w.constraintext==="both"||w.constraintext==="inside",ke=hR(i,l,o,s,Q,{isHorizontal:T,constrained:se,angle:fe,anchor:O,hasB:q,r:u,overhead:f})),ke.fontSize=me.size,yae(w.type==="histogram"?"bar":w.type,ke,y),C.transform=ke;var be=uR(K,y,v,h);oa.setTransormAndDisplay(be,ke)}function Vo(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function cR(e){return e==="auto"?0:e}function vR(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function hR(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",v=u==="start",h=i.leftToRight||0,d=(h+1)/2,m=1-d,y=i.hasB,g=i.r,_=i.overhead,w=n.width,T=n.height,b=Math.abs(r-e),A=Math.abs(a-t),C=b>2*Oa&&A>2*Oa?Oa:0;b-=2*C,A-=2*C;var k=cR(s);s==="auto"&&!(w<=b&&T<=A)&&(w>b||T>A)&&(!(w>A||T>b)||wOa){var z=Cae(e,r,t,a,q,g,_,l,y);D=z.scale,R=z.pad}else D=1,o&&(D=Math.min(1,b/q.x,A/q.y)),R=0;var F=n.left*m+n.right*d,I=(n.top+n.bottom)/2,O=(e+Oa)*m+(r-Oa)*d,J=(t+a)/2,X=0,U=0;if(v||f){var H=(l?q.x:q.y)/2;g&&(f||y)&&(C+=R);var V=l?Pi(e,r):Pi(t,a);l?v?(O=e+V*C,X=-V*H):(O=r-V*C,X=V*H):v?(J=t+V*C,U=-V*H):(J=a-V*C,U=V*H)}return{textX:F,textY:I,targetX:O,targetY:J,anchorX:X,anchorY:U,scale:D,rotate:k}}function Cae(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*Oa),f=Math.max(0,Math.abs(a-t)-2*Oa),v=i-Oa,h=l?v-Math.sqrt(v*v-(v-l)*(v-l)):v,d=s?v*2:o?v-l:2*h,m=s?v*2:o?2*h:v-l,y,g,_,w,T;return n.y/n.x>=f/(u-d)?w=f/n.y:n.y/n.x<=(f-m)/u?w=u/n.x:!s&&o?(y=n.x*n.x+n.y*n.y/4,g=-2*n.x*(u-v)-n.y*(f/2-v),_=(u-v)*(u-v)+(f/2-v)*(f/2-v)-v*v,w=(-g+Math.sqrt(g*g-4*y*_))/(2*y)):s?(y=(n.x*n.x+n.y*n.y)/4,g=-n.x*(u/2-v)-n.y*(f/2-v),_=(u/2-v)*(u/2-v)+(f/2-v)*(f/2-v)-v*v,w=(-g+Math.sqrt(g*g-4*y*_))/(2*y)):(y=n.x*n.x/4+n.y*n.y,g=-n.x*(u/2-v)-2*n.y*(f-v),_=(u/2-v)*(u/2-v)+(f-v)*(f-v)-v*v,w=(-g+Math.sqrt(g*g-4*y*_))/(2*y)),w=Math.min(1,w),o?T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(f-n.y*w)/2)*(v-(f-n.y*w)/2)))-l):T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(u-n.x*w)/2)*(v-(u-n.x*w)/2)))-l),{scale:w,pad:T}}function Lae(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,v=Math.abs(r-e),h=Math.abs(a-t),d;l?d=h>2*Oa?Oa:0:d=v>2*Oa?Oa:0;var m=1;o&&(m=l?Math.min(1,h/f):Math.min(1,v/u));var y=cR(s),g=vR(n,y),_=(l?g.x:g.y)/2,w=(n.left+n.right)/2,T=(n.top+n.bottom)/2,b=(e+r)/2,A=(t+a)/2,C=0,k=0,q=l?Pi(r,e):Pi(t,a);return l?(b=r-q*d,C=q*_):(A=a+q*d,k=-q*_),{textX:w,textY:T,targetX:b,targetY:A,anchorX:C,anchorY:k,scale:m,rotate:y}}function qae(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=Eae(e,r,t,a,n):i.textinfo?o=Pae(r,t,a,n):o=Tu.getValue(i.text,t),Tu.coerceString(xae,o)}function Dae(e,r){var t=Tu.getValue(e.textposition,r);return Tu.coerceEnumerated(_ae,t)}function Eae(e,r,t,a,n){var i=r[0].trace,l=oa.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",v,h,d,m;f?(v="y",h=n,d="x",m=a):(v="x",h=a,d="y",m=n);function y(C){return $d(h,h.c2l(C),!0).text}function g(C){return $d(m,m.c2l(C),!0).text}var _=r[t],w={};w.label=_.p,w.labelLabel=w[v+"Label"]=y(_.p);var T=oa.castOption(i,_.i,"text");(T===0||T)&&(w.text=T),w.value=_.s,w.valueLabel=w[d+"Label"]=g(_.s);var b={};wae(b,i,_.i),(o||b.x===void 0)&&(b.x=f?w.value:w.label),(o||b.y===void 0)&&(b.y=f?w.label:w.value),(o||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(o||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),s&&(w.delta=+_.rawS||_.s,w.deltaLabel=g(w.delta),w.final=_.v,w.finalLabel=g(w.final),w.initial=w.final-w.delta,w.initialLabel=g(w.initial)),u&&(w.value=_.s,w.valueLabel=g(w.value),w.percentInitial=_.begR,w.percentInitialLabel=oa.formatPercent(_.begR),w.percentPrevious=_.difR,w.percentPreviousLabel=oa.formatPercent(_.difR),w.percentTotal=_.sumR,w.percenTotalLabel=oa.formatPercent(_.sumR));var A=oa.castOption(i,_.i,"customdata");return A&&(w.customdata=A),oa.texttemplateString(l,w,e._d3locale,b,w,i._meta||{})}function Pae(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(A){var C=i?a:t;return $d(C,A,!0).text}function u(A){var C=i?t:a;return $d(C,+A,!0).text}var f=n.textinfo,v=e[r],h=f.split("+"),d=[],m,y=function(A){return h.indexOf(A)!==-1};if(y("label")&&d.push(s(e[r].p)),y("text")&&(m=oa.castOption(n,v.i,"text"),(m===0||m)&&d.push(m)),l){var g=+v.rawS||v.s,_=v.v,w=_-g;y("initial")&&d.push(u(w)),y("delta")&&d.push(u(g)),y("final")&&d.push(u(_))}if(o){y("value")&&d.push(u(v.s));var T=0;y("percent initial")&&T++,y("percent previous")&&T++,y("percent total")&&T++;var b=T>1;y("percent initial")&&(m=oa.formatPercent(v.begR),b&&(m+=" of initial"),d.push(m)),y("percent previous")&&(m=oa.formatPercent(v.difR),b&&(m+=" of previous"),d.push(m)),y("percent total")&&(m=oa.formatPercent(v.sumR),b&&(m+=" of total"),d.push(m))}return d.join("
")}dR.exports={plot:kae,toMoveInsideBar:hR}});var xR=Z((Kce,bR)=>{"use strict";var Sc=Si(),Rae=br(),mR=Er(),zae=Ie().fillText,Nae=Xd().getLineWidth,p3=dt().hoverLabelText,Fae=Vt().BADNUM;function Iae(e,r,t,a,n){var i=yR(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=gR(o,s),Rae.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function yR(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,v=e.maxSpikeDistance,h,d,m,y,g,_,w;l.orientation==="h"?(h=t,d=r,m="y",y="x",g=J,_=F):(h=r,d=t,m="x",y="y",_=J,g=F);var T=l[m+"period"],b=s||T;function A(re){return k(re,-1)}function C(re){return k(re,1)}function k(re,Le){var fe=re.w;return re[m]+Le*fe/2}function q(re){return re[m+"End"]-re[m+"Start"]}var D=s?A:T?function(re){return re.p-q(re)/2}:function(re){return Math.min(A(re),re.p-o.bardelta/2)},R=s?C:T?function(re){return re.p+q(re)/2}:function(re){return Math.max(C(re),re.p+o.bardelta/2)};function z(re,Le,fe){return n.finiteRange&&(fe=0),Sc.inbox(re-h,Le-h,fe+Math.min(1,Math.abs(Le-re)/w)-1)}function F(re){return z(D(re),R(re),f)}function I(re){return z(A(re),C(re),v)}function O(re){var Le=re[y];if(u){var fe=Math.abs(re.rawS)||0;d>0?Le+=fe:d<0&&(Le-=fe)}return Le}function J(re){var Le=d,fe=re.b,ke=O(re);return Sc.inbox(fe-Le,ke-Le,f+(ke-Le)/(ke-fe)-1)}function X(re){var Le=d,fe=re.b,ke=O(re);return Sc.inbox(fe-Le,ke-Le,v+(ke-Le)/(ke-fe)-1)}var U=e[m+"a"],H=e[y+"a"];w=Math.abs(U.r2c(U.range[1])-U.r2c(U.range[0]));function V(re){return(g(re)+_(re))/2}var K=Sc.getDistanceFunction(a,g,_,V);if(Sc.getClosest(i,K,e),e.index!==!1&&i[e.index].p!==Fae){b||(D=function(re){return Math.min(A(re),re.p-o.bargroupwidth/2)},R=function(re){return Math.max(C(re),re.p+o.bargroupwidth/2)});var Q=e.index,ie=i[Q],pe=l.base?ie.b+ie.s:ie.s;e[y+"0"]=e[y+"1"]=H.c2p(ie[y],!0),e[y+"LabelVal"]=pe;var me=o.extents[o.extents.round(ie.p)];e[m+"0"]=U.c2p(s?D(ie):me[0],!0),e[m+"1"]=U.c2p(s?R(ie):me[1],!0);var Ae=ie.orig_p!==void 0;return e[m+"LabelVal"]=Ae?ie.orig_p:ie.p,e.labelLabel=p3(U,e[m+"LabelVal"],l[m+"hoverformat"]),e.valueLabel=p3(H,e[y+"LabelVal"],l[y+"hoverformat"]),e.baseLabel=p3(H,ie.b,l[y+"hoverformat"]),e.spikeDistance=(X(ie)+I(ie))/2,e[m+"Spike"]=U.c2p(ie.p,!0),zae(ie,l,e),e.hovertemplate=l.hovertemplate,e}}function gR(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=Nae(e,r);if(mR.opacity(t))return t;if(mR.opacity(a)&&n)return a}bR.exports={hoverPoints:Iae,hoverOnBars:yR,getTraceColor:gR}});var wR=Z((Qce,_R)=>{"use strict";_R.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var MR=Z(($ce,TR)=>{"use strict";TR.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";AR.exports={attributes:wc(),layoutAttributes:u3(),supplyDefaults:Tc().supplyDefaults,crossTraceDefaults:Tc().crossTraceDefaults,supplyLayoutDefaults:HP(),calc:WP(),crossTraceCalc:e2().crossTraceCalc,colorbar:a2(),arraysToCalcdata:f3(),plot:pR().plot,style:Jd().style,styleOnSelect:Jd().styleOnSelect,hoverPoints:xR().hoverPoints,eventData:wR(),selectPoints:MR(),moduleType:"trace",name:"bar",basePlotModule:bd(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var CR=Z((eve,SR)=>{"use strict";SR.exports=kR()});var m3=Z((rve,LR)=>{"use strict";var Oae=Gn(),Bae=Od().attributes,Yae=ma(),Uae=hi(),Vae=yi().hovertemplateAttrs,Gae=yi().texttemplateAttrs,Cc=Gt().extendFlat,Wae=mi().pattern,jd=Yae({editType:"plot",arrayOk:!0,colorEditType:"plot"});LR.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Uae.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:Wae,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:Cc({},Oae.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Vae({},{keys:["label","color","value","percent","text"]}),texttemplate:Gae({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Cc({},jd,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Cc({},jd,{}),outsidetextfont:Cc({},jd,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:Cc({},jd,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:Bae({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var PR=Z((tve,ER)=>{"use strict";var Zae=Hr(),Lc=Ie(),Xae=m3(),Jae=Od().defaults,Kae=Tc().handleText,Qae=Ie().coercePattern;function qR(e,r){var t=Lc.isArrayOrTypedArray(e),a=Lc.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function DR(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");Qae(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function $ae(e,r,t,a){function n(w,T){return Lc.coerce(e,r,Xae,w,T)}var i=n("labels"),l=n("values"),o=qR(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,DR(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate"),v;if(f||(v=n("textinfo",Lc.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),f||v&&v!=="none"){var h=n("textposition");Kae(e,r,a,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",m=d||h==="outside";m&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else v==="none"&&n("textposition","none");Jae(r,a,n);var y=n("hole"),g=n("title.text");if(g){var _=n("title.position",y?"middle center":"top center");!y&&_==="middle center"&&(r.title.position="top center"),Lc.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}ER.exports={handleLabelsAndValues:qR,handleMarkerDefaults:DR,supplyDefaults:$ae}});var y3=Z((ave,RR)=>{"use strict";RR.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var NR=Z((nve,zR)=>{"use strict";var jae=Ie(),ene=y3();zR.exports=function(r,t){function a(n,i){return jae.coerce(r,t,ene,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var b3=Z((ive,HR)=>{"use strict";var rne=Hr(),g3=bn(),tne=Er(),ane={};function nne(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,v;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?y:r.sort;return b&&t.sort(function(A,C){return C.v-A.v}),t[0]&&(t[0].vTotal=m),t}function FR(e){return function(t,a){return!t||(t=g3(t),!t.isValid())?!1:(t=tne.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function ine(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=IR(i,ane));for(var o=0,s=0;s{"use strict";var lne=xi().appendArrayMultiPointValues;OR.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),lne(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var uz=Z((ove,sz)=>{"use strict";var an=Ir(),one=Ft(),e1=Si(),ZR=Er(),ji=at(),_a=Ie(),sne=_a.strScale,YR=_a.strTranslate,x3=Ta(),XR=Mc(),une=XR.recordMinTextSize,fne=XR.clearMinTextSize,JR=Wd().TEXTPAD,wr=H0(),r1=BR(),UR=Ie().isValidTextValue;function cne(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;fne("pie",a),$R(r,e),iz(r,n);var i=_a.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=an.select(this),s=l[0],u=s.trace;xne(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=an.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var v=[[[],[]],[[],[]]],h=!1;f.each(function(b,A){if(b.hidden){an.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,v[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var C=s.cx,k=s.cy,q=an.select(this),D=q.selectAll("path.surface").data([b]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),q.call(KR,e,l),u.pull){var R=+wr.castOption(u.pull,b.pts)||0;R>0&&(C+=R*b.pxmid[0],k+=R*b.pxmid[1])}b.cxFinal=C,b.cyFinal=k;function z(H,V,K,Q){var ie=Q*(V[0]-H[0]),pe=Q*(V[1]-H[1]);return"a"+Q*s.r+","+Q*s.r+" 0 "+b.largeArc+(K?" 1 ":" 0 ")+ie+","+pe}var F=u.hole;if(b.v===s.vTotal){var I="M"+(C+b.px0[0])+","+(k+b.px0[1])+z(b.px0,b.pxmid,!0,1)+z(b.pxmid,b.px0,!0,1)+"Z";F?D.attr("d","M"+(C+F*b.px0[0])+","+(k+F*b.px0[1])+z(b.px0,b.pxmid,!1,F)+z(b.pxmid,b.px0,!1,F)+"Z"+I):D.attr("d",I)}else{var O=z(b.px0,b.px1,!0,1);if(F){var J=1-F;D.attr("d","M"+(C+F*b.px1[0])+","+(k+F*b.px1[1])+z(b.px1,b.px0,!1,F)+"l"+J*b.px0[0]+","+J*b.px0[1]+O+"Z")}else D.attr("d","M"+C+","+k+"l"+b.px0[0]+","+b.px0[1]+O+"Z")}lz(e,b,s);var X=wr.castOption(u.textposition,b.pts),U=q.selectAll("g.slicetext").data(b.text&&X!=="none"?[0]:[]);U.enter().append("g").classed("slicetext",!0),U.exit().remove(),U.each(function(){var H=_a.ensureSingle(an.select(this),"text","",function(re){re.attr("data-notex",1)}),V=_a.ensureUniformFontSize(e,X==="outside"?hne(u,b,a.font):QR(u,b,a.font));H.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(ji.font,V).call(x3.convertToTspans,e);var K=ji.bBox(H.node()),Q;if(X==="outside")Q=WR(K,b);else if(Q=jR(K,b,s),X==="auto"&&Q.scale<1){var ie=_a.ensureUniformFontSize(e,u.outsidetextfont);H.call(ji.font,ie),K=ji.bBox(H.node()),Q=WR(K,b)}var pe=Q.textPosAngle,me=pe===void 0?b.pxmid:t1(s.r,pe);if(Q.targetX=C+me[0]*Q.rCenter+(Q.x||0),Q.targetY=k+me[1]*Q.rCenter+(Q.y||0),oz(Q,K),Q.outside){var Ae=Q.targetY;b.yLabelMin=Ae-K.height/2,b.yLabelMid=Ae,b.yLabelMax=Ae+K.height/2,b.labelExtraX=0,b.labelExtraY=0,h=!0}Q.fontSize=V.size,une(u.type,Q,a),l[A].transform=Q,_a.setTransormAndDisplay(H,Q)})});var d=an.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var b=_a.ensureSingle(an.select(this),"text","",function(k){k.attr("data-notex",1)}),A=u.title.text;u._meta&&(A=_a.templateString(A,u._meta)),b.text(A).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(ji.font,u.title.font).call(x3.convertToTspans,e);var C;u.title.position==="middle center"?C=mne(s):C=az(s,n),b.attr("transform",YR(C.x,C.y)+sne(Math.min(1,C.scale))+YR(C.tx,C.ty))}),h&&gne(v,u),vne(f,u),h&&u.automargin){var m=ji.bBox(o.node()),y=u.domain,g=n.w*(y.x[1]-y.x[0]),_=n.h*(y.y[1]-y.y[0]),w=(.5*g-s.r)/n.w,T=(.5*_-s.r)/n.h;one.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-w,xr:y.x[1]+w,yb:y.y[0]-T,yt:y.y[1]+T,l:Math.max(s.cx-s.r-m.left,0),r:Math.max(m.right-(s.cx+s.r),0),b:Math.max(m.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-m.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=an.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function vne(e,r){e.each(function(t){var a=an.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,_a.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;_a.ensureSingle(a,"path","textline").call(ZR.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function KR(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var v=f.hoverinfo;if(Array.isArray(v)&&(v=e1.castHoverinfo({hoverinfo:[wr.castOption(v,s.pts)],_module:l._module},u,0)),v==="all"&&(v="label+text+value+percent+name"),f.hovertemplate||v!=="none"&&v!=="skip"&&v){var h=s.rInscribed||0,d=n+s.pxmid[0]*(1-h),m=i+s.pxmid[1]*(1-h),y=u.separators,g=[];if(v&&v.indexOf("label")!==-1&&g.push(s.label),s.text=wr.castOption(f.hovertext||f.text,s.pts),v&&v.indexOf("text")!==-1){var _=s.text;_a.isValidTextValue(_)&&g.push(_)}s.value=s.v,s.valueLabel=wr.formatPieValue(s.v,y),v&&v.indexOf("value")!==-1&&g.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=wr.formatPiePercent(s.percent,y),v&&v.indexOf("percent")!==-1&&g.push(s.percentLabel);var w=f.hoverlabel,T=w.font,b=[];e1.loneHover({trace:l,x0:d-h*a.r,x1:d+h*a.r,y:m,_x0:o?n+s.TL[0]:d-h*a.r,_x1:o?n+s.TR[0]:d+h*a.r,_y0:o?i+s.TL[1]:m-h*a.r,_y1:o?i+s.BL[1]:m+h*a.r,text:g.join("
"),name:f.hovertemplate||v.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:wr.castOption(w.bgcolor,s.pts)||s.color,borderColor:wr.castOption(w.bordercolor,s.pts),fontFamily:wr.castOption(T.family,s.pts),fontSize:wr.castOption(T.size,s.pts),fontColor:wr.castOption(T.color,s.pts),nameLength:wr.castOption(w.namelength,s.pts),textAlign:wr.castOption(w.align,s.pts),hovertemplate:wr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[r1(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[r1(s,f)],event:an.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],v=an.select(this).datum();l._hasHoverEvent&&(s.originalEvent=an.event,r.emit("plotly_unhover",{points:[r1(v,f)],event:an.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(e1.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[r1(s,f)],e1.click(r,an.event))})}function hne(e,r,t){var a=wr.castOption(e.outsidetextfont.color,r.pts)||wr.castOption(e.textfont.color,r.pts)||t.color,n=wr.castOption(e.outsidetextfont.family,r.pts)||wr.castOption(e.textfont.family,r.pts)||t.family,i=wr.castOption(e.outsidetextfont.size,r.pts)||wr.castOption(e.textfont.size,r.pts)||t.size,l=wr.castOption(e.outsidetextfont.weight,r.pts)||wr.castOption(e.textfont.weight,r.pts)||t.weight,o=wr.castOption(e.outsidetextfont.style,r.pts)||wr.castOption(e.textfont.style,r.pts)||t.style,s=wr.castOption(e.outsidetextfont.variant,r.pts)||wr.castOption(e.textfont.variant,r.pts)||t.variant,u=wr.castOption(e.outsidetextfont.textcase,r.pts)||wr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=wr.castOption(e.outsidetextfont.lineposition,r.pts)||wr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=wr.castOption(e.outsidetextfont.shadow,r.pts)||wr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function QR(e,r,t){var a=wr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=wr.castOption(e._input.textfont.color,r.pts));var n=wr.castOption(e.insidetextfont.family,r.pts)||wr.castOption(e.textfont.family,r.pts)||t.family,i=wr.castOption(e.insidetextfont.size,r.pts)||wr.castOption(e.textfont.size,r.pts)||t.size,l=wr.castOption(e.insidetextfont.weight,r.pts)||wr.castOption(e.textfont.weight,r.pts)||t.weight,o=wr.castOption(e.insidetextfont.style,r.pts)||wr.castOption(e.textfont.style,r.pts)||t.style,s=wr.castOption(e.insidetextfont.variant,r.pts)||wr.castOption(e.textfont.variant,r.pts)||t.variant,u=wr.castOption(e.insidetextfont.textcase,r.pts)||wr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=wr.castOption(e.insidetextfont.lineposition,r.pts)||wr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=wr.castOption(e.insidetextfont.shadow,r.pts)||wr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||ZR.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function $R(e,r){for(var t,a,n=0;n=-4;w-=2)_(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)_(Math.PI*(w+1),"tan")}if(v||d){for(w=4;w>=-4;w-=2)_(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)_(Math.PI*(w+.5),"rad")}}if(o||m||v){var T=Math.sqrt(e.width*e.width+e.height*e.height);if(g={scale:n*a*2/T,rCenter:1-n,rotate:0},g.textPosAngle=(r.startangle+r.stopangle)/2,g.scale>=1)return g;y.push(g)}(m||d)&&(g=VR(e,a,l,s,u),g.textPosAngle=(r.startangle+r.stopangle)/2,y.push(g)),(m||h)&&(g=GR(e,a,l,s,u),g.textPosAngle=(r.startangle+r.stopangle)/2,y.push(g));for(var b=0,A=0,C=0;C=1)break}return y[b]}function dne(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function mne(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function az(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=nz(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=yne(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=_3(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function yne(e,r){return e/(r===void 0?1:r)}function _3(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function nz(e){var r=e.pull;if(!r)return 0;var t;if(_a.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function gne(e,r){var t,a,n,i,l,o,s,u,f,v,h,d,m;function y(T,b){return T.pxmid[1]-b.pxmid[1]}function g(T,b){return b.pxmid[1]-T.pxmid[1]}function _(T,b){b||(b={});var A=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),C=a?T.yLabelMin:T.yLabelMax,k=a?T.yLabelMax:T.yLabelMin,q=T.cyFinal+l(T.px0[1],T.px1[1]),D=A-C,R,z,F,I,O,J;if(D*s>0&&(T.labelExtraY=D),!!_a.isArrayOrTypedArray(r.pull))for(z=0;z=(wr.castOption(r.pull,F.pts)||0))&&((T.pxmid[1]-F.pxmid[1])*s>0?(I=F.cyFinal+l(F.px0[1],F.px1[1]),D=I-C-T.labelExtraY,D*s>0&&(T.labelExtraY+=D)):(k+T.labelExtraY-q)*s>0&&(R=3*o*Math.abs(z-v.indexOf(T)),O=F.cxFinal+i(F.px0[0],F.px1[0]),J=O+R-(T.cxFinal+T.pxmid[0])-T.labelExtraX,J*o>0&&(T.labelExtraX+=J)))}for(a=0;a<2;a++)for(n=a?y:g,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],v=f.concat(u),d=[],h=0;h1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=pne(u,r))}function t1(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function lz(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(b){return o.indexOf(b)!==-1},u=s("label"),f=s("text"),v=s("value"),h=s("percent"),d=a.separators,m;if(m=u?[r.label]:[],f){var y=wr.getFirstFilled(n.text,r.pts);UR(y)&&m.push(y)}v&&m.push(wr.formatPieValue(r.v,d)),h&&m.push(wr.formatPiePercent(r.v/t.vTotal,d)),r.text=m.join("
")}function g(b){return{label:b.label,value:b.v,valueLabel:wr.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:wr.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:_a.castOption(n,b.i,"customdata")}}if(i){var _=_a.castOption(n,r.i,"texttemplate");if(!_)r.text="";else{var w=g(r),T=wr.getFirstFilled(n.text,r.pts);(UR(T)||T==="")&&(w.text=T),r.text=_a.texttemplateString(_,w,e._fullLayout._d3locale,w,n._meta||{})}}}function oz(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}sz.exports={plot:cne,formatSliceLabel:lz,transformInsideText:jR,determineInsideTextFont:QR,positionTitleOutside:az,prerenderTitles:$R,layoutAreas:iz,attachFxHandlers:KR,computeTransform:oz}});var vz=Z((sve,cz)=>{"use strict";var fz=Ir(),_ne=O0(),wne=Mc().resizeText;cz.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");wne(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=fz.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){fz.select(this).call(_ne,o,i,r)})})}});var dz=Z(Mu=>{"use strict";var hz=Ft();Mu.name="pie";Mu.plot=function(e,r,t,a){hz.plotBasePlot(Mu.name,e,r,t,a)};Mu.clean=function(e,r,t,a){hz.cleanBasePlot(Mu.name,e,r,t,a)}});var mz=Z((fve,pz)=>{"use strict";pz.exports={attributes:m3(),supplyDefaults:PR().supplyDefaults,supplyLayoutDefaults:NR(),layoutAttributes:y3(),calc:b3().calc,crossTraceCalc:b3().crossTraceCalc,plot:uz().plot,style:vz(),styleOne:O0(),moduleType:"trace",name:"pie",basePlotModule:dz(),categories:["pie-like","pie","showLegend"],meta:{}}});var gz=Z((cve,yz)=>{"use strict";yz.exports=mz()});var Sa=Z((vve,xz)=>{"use strict";var bz=Object.getOwnPropertySymbols,Tne=Object.prototype.hasOwnProperty,Mne=Object.prototype.propertyIsEnumerable;function Ane(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function kne(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}xz.exports=kne()?Object.assign:function(e,r){for(var t,a=Ane(e),n,i=1;i{var n1=Sa();function _z(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}n1(_z.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function w3(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function a1(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}n1(w3.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Pr.local.differentCalendars||Pr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+a1(Math.abs(this.year()),4)+"-"+a1(this.month(),2)+"-"+a1(this.day(),2)}});function T3(){this.shortYearCutoff="+10"}n1(T3.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new w3(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+a1(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Pr.local.invalidMonth||Pr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Pr.local.invalidMonth||Pr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lv-1+f.minMonth;)i++,l-=v,v=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Pr=wz.exports=new _z;Pr.cdate=w3;Pr.baseCalendar=T3;Pr.calendars.gregorian=M3});var Tz=Z(()=>{var A3=Sa(),sa=Ca();A3(sa.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});sa.local=sa.regionalOptions[""];A3(sa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});A3(sa.baseCalendar.prototype,{UNIX_EPOCH:sa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:sa.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw sa.local.invalidFormat||sa.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,A){for(var C=1;T+C1},f=function(b,A,C,k){var q=""+A;if(u(b,k))for(;q.length1},w=function(F,I){var O=_(F,I),J=[2,3,O?4:2,O?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],X=new RegExp("^-?\\d{1,"+J+"}"),U=r.substring(q).match(X);if(!U)throw(sa.local.missingNumberAt||sa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=U[0].length,parseInt(U[0],10)},T=this,b=function(){if(typeof o=="function"){_("m");var F=o.call(T,r.substring(q));return q+=F.length,F}return w("m")},A=function(F,I,O,J){for(var X=_(F,J)?O:I,U=0;U-1){h=1,d=m;for(var z=this.daysInMonth(v,h);d>z;z=this.daysInMonth(v,h))h++,d-=z}return f>-1?this.fromJD(f):this.newDate(v,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(v){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var Mz=Z(()=>{var Il=Ca(),Sne=Sa(),k3=Il.instance();function i1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i1.prototype=new Il.baseCalendar;Sne(i1.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(Lne);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(qne);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(Dne);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Il.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Il.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Il.local.invalidyear),n=Ol[a-Ol[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=k3.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Hl[e-Hl[0]],a=t>>13,n=a?12:11;if(r>n)throw Il.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Il.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=Pne(e,i,t,n);return k3.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=k3.fromJD(e),t=Ene(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(Cne),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(i1.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),v=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);v!==u&&o.month(v)}return o}});var Cne=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Lne=/^\d?\d[iI]?/m,qne=/^闰?十?[一二三四五六七八九]?月/m,Dne=/^闰?十?[一二三四五六七八九]?/m;Il.calendars.chinese=i1;var Hl=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Ol=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function Ene(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Ol[n.year-Ol[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Ol[i.year-Ol[0]];var v=u>>9&4095,h=u>>5&15,d=u&31,m,y=new Date(v,h-1,d),g=new Date(n.year,n.month-1,n.day);m=Math.round((g-y)/(24*3600*1e3));var _=Hl[i.year-Hl[0]],w;for(w=0;w<13;w++){var T=_&1<<12-w?30:29;if(m>13;return!b||w=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var v;v=l.day-1;var h=Hl[l.year-Hl[0]],d=h>>13,m;d&&(l.month>d||l.isIntercalary)?m=l.month:m=l.month-1;for(var y=0;y>9&4095,T=_>>5&15,b=_&31,A=new Date(w,T-1,b+v);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var Az=Z(()=>{var Go=Ca(),Rne=Sa();function S3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S3.prototype=new Go.baseCalendar;Rne(S3.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Go.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Go.local.invalidYear||Go.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Go.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Go.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Go.calendars.coptic=S3});var kz=Z(()=>{var el=Ca(),zne=Sa();function C3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C3.prototype=new el.baseCalendar;zne(C3.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,el.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,el.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,el.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,el.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,el.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,el.local.invalidDate);return{century:Nne[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,el.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var Nne={20:"Fruitbat",21:"Anchovy"};el.calendars.discworld=C3});var Sz=Z(()=>{var Wo=Ca(),Fne=Sa();function L3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}L3.prototype=new Wo.baseCalendar;Fne(L3.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Wo.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wo.local.invalidYear||Wo.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Wo.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Wo.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Wo.calendars.ethiopian=L3});var Cz=Z(()=>{var Bl=Ca(),Ine=Sa();function q3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q3.prototype=new Bl.baseCalendar;Ine(q3.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,l1(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bl.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bl.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Bl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&l1(this.daysInYear(e),10)===5?30:r===9&&l1(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Bl.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Bl.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function l1(e,r){return e-r*Math.floor(e/r)}Bl.calendars.hebrew=q3});var Lz=Z(()=>{var qc=Ca(),Hne=Sa();function D3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D3.prototype=new qc.baseCalendar;Hne(D3.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,qc.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,qc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,qc.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});qc.calendars.islamic=D3});var qz=Z(()=>{var Dc=Ca(),One=Sa();function E3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E3.prototype=new Dc.baseCalendar;One(E3.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Dc.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Dc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Dc.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});Dc.calendars.julian=E3});var Ez=Z(()=>{var In=Ca(),Bne=Sa();function R3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R3.prototype=new In.baseCalendar;Bne(R3.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,In.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,In.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,In.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,In.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,In.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,In.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,In.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,In.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,In.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=P3(e+8+17*20,365);return[Math.floor(r/20)+1,P3(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Dz(e+20,20),Dz(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,In.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function P3(e,r){return e-r*Math.floor(e/r)}function Dz(e,r){return P3(e-1,r)+1}In.calendars.mayan=R3});var Rz=Z(()=>{var Zo=Ca(),Yne=Sa();function z3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z3.prototype=new Zo.baseCalendar;var Pz=Zo.instance("gregorian");Yne(z3.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Zo.local.invalidYear||Zo.regionalOptions[""].invalidYear);return Pz.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Zo.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Zo.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Zo.calendars.nanakshahi=z3});var zz=Z(()=>{var Xo=Ca(),Une=Sa();function N3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N3.prototype=new Xo.baseCalendar;Une(N3.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Xo.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Xo.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Xo.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Xo.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Xo.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Au=Ca(),Vne=Sa();function s1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o1(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}s1.prototype=new Au.baseCalendar;Vne(s1.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Au.local.invalidYear);return o1(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Au.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Au.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,o1(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Au.calendars.persian=s1;Au.calendars.jalali=s1});var Fz=Z(()=>{var Jo=Ca(),Gne=Sa(),u1=Jo.instance();function F3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F3.prototype=new Jo.baseCalendar;Gne(F3.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Jo.local.invalidYear),t=this._t2gYear(r.year());return u1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Jo.local.invalidYear),n=this._t2gYear(a.year());return u1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Jo.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Jo.local.invalidDate),n=this._t2gYear(a.year());return u1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=u1.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Jo.calendars.taiwan=F3});var Iz=Z(()=>{var Ko=Ca(),Wne=Sa(),f1=Ko.instance();function I3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I3.prototype=new Ko.baseCalendar;Wne(I3.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Ko.local.invalidYear),t=this._t2gYear(r.year());return f1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Ko.local.invalidYear),n=this._t2gYear(a.year());return f1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ko.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ko.local.invalidDate),n=this._t2gYear(a.year());return f1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=f1.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Ko.calendars.thai=I3});var Hz=Z(()=>{var Qo=Ca(),Zne=Sa();function H3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H3.prototype=new Qo.baseCalendar;Zne(H3.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Qo.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Qo.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Yl[n]-Yl[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Qo.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Yl[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-Yl[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=Qo.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Qo.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Qo.calendars.ummalqura=H3;var Yl=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Bz=Z((Vve,Oz)=>{"use strict";Oz.exports=Ca();Tz();Mz();Az();kz();Sz();Cz();Lz();qz();Ez();Rz();zz();Nz();Fz();Iz();Hz()});var Xz=Z((Gve,Zz)=>{"use strict";var Uz=Bz(),Ec=Ie(),Vz=Vt(),Xne=Vz.EPOCHJD,Jne=Vz.ONEDAY,Y3={valType:"enumerated",values:Ec.sortObjectKeys(Uz.calendars),editType:"calc",dflt:"gregorian"},Gz=function(e,r,t,a){var n={};return n[t]=Y3,Ec.coerce(e,r,n,t,a)},Kne=function(e,r,t,a){for(var n=0;n{"use strict";Jz.exports=Xz()});var tie=Z((Zve,$z)=>{var Qz=_P();Qz.register([CR(),gz(),Kz()]);$z.exports=Qz});return tie();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-cartesian.js b/dist/plotly-cartesian.js index c1a8f69fdbd..cb84b2a711c 100644 --- a/dist/plotly-cartesian.js +++ b/dist/plotly-cartesian.js @@ -1,5 +1,5 @@ /** -* plotly.js (cartesian) v3.1.1 +* plotly.js (cartesian) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -23,7 +23,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.1"; + exports.version = "3.1.2"; } }); @@ -13752,9 +13752,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -21427,7 +21427,7 @@ var Plotly = (() => { }, exponentformat: { valType: "enumerated", - values: ["none", "e", "E", "power", "SI", "B"], + values: ["none", "e", "E", "power", "SI", "B", "SI extended"], dflt: "B", editType: "ticks" }, @@ -25013,7 +25013,7 @@ var Plotly = (() => { var subtitleEnabled = !!subtitleProp; var subtitlePlaceholder = options.subtitlePlaceholder; var subtitle = (cont.title || {}).subtitle || { text: "", font: {} }; - var subtitleTxt = subtitle.text.trim(); + var subtitleTxt = (subtitle.text || "").trim(); var subtitleIsPlaceholder = false; var subtitleOpacity = 1; var subtitleFont = subtitle.font; @@ -25067,7 +25067,7 @@ var Plotly = (() => { var subtitleEl = null; var subtitleClass = titleClass + "-subtitle"; var subtitleElShouldExist = subtitleTxt || editable; - if (subtitleEnabled && subtitleElShouldExist) { + if (subtitleEnabled) { subtitleEl = group.selectAll("text." + subtitleClass).data(subtitleElShouldExist ? [0] : []); subtitleEl.enter().append("text"); subtitleEl.text(subtitleTxt).attr("class", subtitleClass); @@ -25118,7 +25118,7 @@ var Plotly = (() => { shadow: fontShadow, lineposition: fontLineposition }).attr(attributes).call(svgTextUtils.convertToTspans, gd, adjustSubtitlePosition); - if (subtitleEl2) { + if (subtitleEl2 && !subtitleEl2.empty()) { var titleElMathGroup = group.select("." + titleClass + "-math-group"); var titleElBbox2 = titleEl.node().getBBox(); var titleElMathBbox = titleElMathGroup.node() ? titleElMathGroup.node().getBBox() : void 0; @@ -25239,7 +25239,7 @@ var Plotly = (() => { } } el.classed("js-placeholder", titleIsPlaceholder); - if (subtitleEl) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); + if (subtitleEl && !subtitleEl.empty()) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); return group; } module.exports = { @@ -27558,7 +27558,7 @@ var Plotly = (() => { var rangeexp = Math.floor(Math.log(maxend) / Math.LN10 + 0.01); var minexponent = ax.minexponent === void 0 ? 3 : ax.minexponent; if (Math.abs(rangeexp) > minexponent) { - if (isSIFormat(ax.exponentformat) && !beyondSI(rangeexp)) { + if (isSIFormat(ax.exponentformat) && ax.exponentformat !== "SI extended" && !beyondSI(rangeexp) || isSIFormat(ax.exponentformat) && ax.exponentformat === "SI extended" && !beyondSIExtended(rangeexp)) { ax._tickexponent = 3 * Math.round((rangeexp - 1) / 3); } else ax._tickexponent = rangeexp; } @@ -27782,7 +27782,7 @@ var Plotly = (() => { var p = +parts[1]; var absP = Math.abs(p); var exponentFormat = ax.exponentformat; - if (exponentFormat === "power" || isSIFormat(exponentFormat) && beyondSI(p)) { + if (exponentFormat === "power" || isSIFormat(exponentFormat) && exponentFormat !== "SI extended" && beyondSI(p) || isSIFormat(exponentFormat) && exponentFormat === "SI extended" && beyondSIExtended(p)) { out.text = parts[0]; if (absP > 0) out.text += "x10"; if (out.text === "1x10") out.text = "10"; @@ -27898,12 +27898,20 @@ var Plotly = (() => { ]; } var SIPREFIXES = ["f", "p", "n", "\u03BC", "m", "", "k", "M", "G", "T"]; - function isSIFormat(exponentFormat) { - return exponentFormat === "SI" || exponentFormat === "B"; - } + var SIPREFIXES_EXTENDED = ["q", "r", "y", "z", "a", ...SIPREFIXES, "P", "E", "Z", "Y", "R", "Q"]; + var isSIFormat = (exponentFormat) => ["SI", "SI extended", "B"].includes(exponentFormat); function beyondSI(exponent) { return exponent > 14 || exponent < -15; } + function beyondSIExtended(exponent) { + return exponent > 32 || exponent < -30; + } + function shouldSwitchSIToPowerFormat(exponent, exponentFormat) { + if (!isSIFormat(exponentFormat)) return false; + if (exponentFormat === "SI extended" && beyondSIExtended(exponent)) return true; + if (exponentFormat !== "SI extended" && beyondSI(exponent)) return true; + return false; + } function numFormat(v, ax, fmtoverride, hover) { var isNeg = v < 0; var tickRound = ax._tickround; @@ -27951,7 +27959,7 @@ var Plotly = (() => { v = Lib.numSeparate(v, ax._separators, separatethousands); } if (exponent && exponentFormat !== "hide") { - if (isSIFormat(exponentFormat) && beyondSI(exponent)) exponentFormat = "power"; + if (shouldSwitchSIToPowerFormat(exponent, exponentFormat)) exponentFormat = "power"; var signedExponent; if (exponent < 0) signedExponent = MINUS_SIGN + -exponent; else if (exponentFormat !== "power") signedExponent = "+" + exponent; @@ -27963,7 +27971,7 @@ var Plotly = (() => { } else if (exponentFormat === "B" && exponent === 9) { v += "B"; } else if (isSIFormat(exponentFormat)) { - v += SIPREFIXES[exponent / 3 + 5]; + v += exponentFormat === "SI extended" ? SIPREFIXES_EXTENDED[exponent / 3 + 10] : SIPREFIXES[exponent / 3 + 5]; } } if (isNeg) return MINUS_SIGN + v; @@ -30248,9 +30256,11 @@ var Plotly = (() => { return Lib.coerce(traceIn, traceOut, plotsAttrs, attr, dflt); }; var globalFont = layoutOut.font || {}; - var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { overrideDflt: { - size: Math.round(globalFont.size * 1.1) - } }); + var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { + overrideDflt: { + size: Math.round(globalFont.size * 1.1) + } + }); var legendTraceCount = 0; var legendReallyHasATrace = false; var defaultOrder = "normal"; @@ -30397,7 +30407,7 @@ var Plotly = (() => { for (i = 0; i < legends.length; i++) { var legendId = legends[i]; groupDefaults(legendId, layoutIn, layoutOut, allLegendsData); - if (layoutOut[legendId] && layoutOut[legendId].visible) { + if (layoutOut[legendId]) { layoutOut[legendId]._id = legendId; } layoutOut._legends.push(legendId); @@ -36015,7 +36025,7 @@ var Plotly = (() => { } } function setClipPath(shapePath, gd, shapeOptions) { - var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][1-9]* *domain/g, ""); + var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][0-9]* *domain/g, ""); Drawing.setClipUrl( shapePath, clipAxes ? "clip" + gd._fullLayout._uid + clipAxes : null, @@ -43860,7 +43870,6 @@ var Plotly = (() => { "src/plot_api/helpers.js"(exports) { "use strict"; var isNumeric = require_fast_isnumeric(); - var m4FromQuat = require_fromQuat(); var Registry = require_registry(); var Lib = require_lib(); var Plots = require_plots(); @@ -43869,6 +43878,7 @@ var Plotly = (() => { var cleanId = AxisIds.cleanId; var getFromTrace = AxisIds.getFromTrace; var traceIs = Registry.traceIs; + var AX_LETTERS = ["x", "y", "z"]; exports.clearPromiseQueue = function(gd) { if (Array.isArray(gd._promises) && gd._promises.length > 0) { Lib.log("Clearing previous rejected promises from queue."); @@ -44035,12 +44045,7 @@ var Plotly = (() => { var increasingName = cleanFinanceDir(trace.increasing); var decreasingName = cleanFinanceDir(trace.decreasing); if (increasingName !== false && decreasingName !== false) { - var newName = commonPrefix( - increasingName, - decreasingName, - increasingShowlegend, - decreasingShowlegend - ); + var newName = commonPrefix(increasingName, decreasingName, increasingShowlegend, decreasingShowlegend); if (newName) trace.name = newName; } else if ((increasingName || decreasingName) && !trace.name) { trace.name = increasingName || decreasingName; @@ -44170,12 +44175,11 @@ var Plotly = (() => { } return false; }; - var axLetters = ["x", "y", "z"]; exports.clearAxisTypes = function(gd, traces, layoutUpdate) { for (var i = 0; i < traces.length; i++) { var trace = gd._fullData[i]; for (var j = 0; j < 3; j++) { - var ax = getFromTrace(gd, trace, axLetters[j]); + var ax = getFromTrace(gd, trace, AX_LETTERS[j]); if (ax && ax.type !== "log") { var axAttr = ax._name; var sceneName = ax._id.substr(1); @@ -44191,6 +44195,35 @@ var Plotly = (() => { } } }; + var collectionsAreEqual = (collection1, collection2) => { + const isArrayOrObject = (...vals) => vals.every((v) => Lib.isPlainObject(v)) || vals.every((v) => Array.isArray(v)); + if ([collection1, collection2].every((a) => Array.isArray(a))) { + if (collection1.length !== collection2.length) return false; + for (let i = 0; i < collection1.length; i++) { + const oldVal = collection1[i]; + const newVal = collection2[i]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } else if ([collection1, collection2].every((a) => Lib.isPlainObject(a))) { + if (Object.keys(collection1).length !== Object.keys(collection2).length) return false; + for (const k in collection1) { + if (k.startsWith("_")) continue; + const oldVal = collection1[k]; + const newVal = collection2[k]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } + return false; + }; + exports.collectionsAreEqual = collectionsAreEqual; } }); @@ -44298,21 +44331,28 @@ var Plotly = (() => { } } if (!fullLayout._glcanvas && fullLayout._has("gl")) { - fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data([{ - key: "contextLayer", - context: true, - pick: false - }, { - key: "focusLayer", - context: false, - pick: false - }, { - key: "pickLayer", - context: false, - pick: true - }], function(d) { - return d.key; - }); + fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data( + [ + { + key: "contextLayer", + context: true, + pick: false + }, + { + key: "focusLayer", + context: false, + pick: false + }, + { + key: "pickLayer", + context: false, + pick: true + } + ], + function(d) { + return d.key; + } + ); fullLayout._glcanvas.enter().append("canvas").attr("class", function(d) { return "gl-canvas gl-canvas-" + d.key.replace("Layer", ""); }).style({ @@ -44370,21 +44410,21 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([ - marginPushers, - subroutines.layoutStyles - ], gd); + return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); } function positionAndAutorange() { if (!recalc) { doAutoRangeAndConstraints(); return; } - return Lib.syncOrAsync([ - Registry.getComponentMethod("shapes", "calcAutorange"), - Registry.getComponentMethod("annotations", "calcAutorange"), - doAutoRangeAndConstraints - ], gd); + return Lib.syncOrAsync( + [ + Registry.getComponentMethod("shapes", "calcAutorange"), + Registry.getComponentMethod("annotations", "calcAutorange"), + doAutoRangeAndConstraints + ], + gd + ); } function doAutoRangeAndConstraints() { if (gd._transitioning) return; @@ -44395,28 +44435,19 @@ var Plotly = (() => { function drawAxes() { return Axes.draw(gd, graphWasEmpty ? "" : "redraw"); } - var seq = [ - Plots.previousPromises, - addFrames2, - drawFramework, - marginPushers, - marginPushersAgain - ]; + var seq = [Plots.previousPromises, addFrames2, drawFramework, marginPushers, marginPushersAgain]; if (hasCartesian) seq.push(positionAndAutorange); seq.push(subroutines.layoutStyles); if (hasCartesian) { - seq.push( - drawAxes, - function insideTickLabelsAutorange(gd2) { - var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; - if (insideTickLabelsUpdaterange) { - gd2._fullLayout._insideTickLabelsUpdaterange = void 0; - return relayout(gd2, insideTickLabelsUpdaterange).then(function() { - Axes.saveRangeInitial(gd2, true); - }); - } + seq.push(drawAxes, function insideTickLabelsAutorange(gd2) { + var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; + if (insideTickLabelsUpdaterange) { + gd2._fullLayout._insideTickLabelsUpdaterange = void 0; + return relayout(gd2, insideTickLabelsUpdaterange).then(function() { + Axes.saveRangeInitial(gd2, true); + }); } - ); + }); } seq.push( subroutines.drawData, @@ -44622,7 +44653,7 @@ var Plotly = (() => { } for (i = 0; i < traces.length; i++) { value = traces[i]; - if (typeof value !== "object" || (Array.isArray(value) || value === null)) { + if (typeof value !== "object" || Array.isArray(value) || value === null) { throw new Error("all values in traces array must be non-array objects"); } } @@ -44630,9 +44661,7 @@ var Plotly = (() => { newIndices = [newIndices]; } if (typeof newIndices !== "undefined" && newIndices.length !== traces.length) { - throw new Error( - "if indices is specified, traces.length must equal indices.length" - ); + throw new Error("if indices is specified, traces.length must equal indices.length"); } } function assertExtendTracesArgs(gd, update2, indices, maxPoints) { @@ -44652,7 +44681,9 @@ var Plotly = (() => { throw new Error("attribute " + key + " must be an array of length equal to indices array length"); } if (maxPointsIsObject && (!(key in maxPoints) || !Array.isArray(maxPoints[key]) || maxPoints[key].length !== update2[key].length)) { - throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object"); + throw new Error( + "when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object" + ); } } } @@ -44942,18 +44973,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - restyle, - [gd, specs.undoit, specs.traces], - restyle, - [gd, specs.redoit, specs.traces] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, restyle, [gd, specs.undoit, specs.traces], restyle, [gd, specs.redoit, specs.traces]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(); return plotDone.then(function() { @@ -45120,7 +45141,11 @@ var Plotly = (() => { var topOrBottom = orient === "top" || orient === "bottom"; if (finalPart === "thicknessmode") { var thicknorm = topOrBottom ? gs.h : gs.w; - doextra(prefixDot + "thickness", innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), i); + doextra( + prefixDot + "thickness", + innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), + i + ); } else { var lennorm = topOrBottom ? gs.w : gs.h; doextra(prefixDot + "len", innerContFull.len * (newVal === "fraction" ? 1 / lennorm : lennorm), i); @@ -45143,12 +45168,7 @@ var Plotly = (() => { } } undoit[ai][i] = undefinedToNull(oldVal); - var swapAttrs = [ - "swapxy", - "swapxyaxes", - "orientation", - "orientationaxes" - ]; + var swapAttrs = ["swapxy", "swapxyaxes", "orientation", "orientationaxes"]; if (swapAttrs.indexOf(ai) !== -1) { if (ai === "orientation") { param.set(newVal); @@ -45245,18 +45265,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - relayout, - [gd, specs.undoit], - relayout, - [gd, specs.redoit] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, relayout, [gd, specs.undoit], relayout, [gd, specs.redoit]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45496,7 +45506,7 @@ var Plotly = (() => { } else { if (ai === "dragmode" && (vi === false && vOld !== false || vi !== false && vOld === false)) { flags.plot = true; - } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && (ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select"))) { + } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select")) { flags.plot = true; } else if (valObject) editTypes.update(flags, valObject); else flags.calc = true; @@ -45583,18 +45593,13 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, update, [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], update, [ gd, - update, - [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], - update, - [gd, restyleSpecs.redoit, relayoutSpecs.redoit, restyleSpecs.traces] - ); + restyleSpecs.redoit, + relayoutSpecs.redoit, + restyleSpecs.traces + ]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45816,10 +45821,10 @@ var Plotly = (() => { } var configChanged = false; if (config) { - var oldConfig = Lib.extendDeep({}, gd._context); + const oldConfig = Lib.extendDeepAll({}, gd._context); gd._context = void 0; setPlotContext(gd, config); - configChanged = diffConfig(oldConfig, gd._context); + configChanged = !helpers.collectionsAreEqual(oldConfig, gd._context); } if (configChanged) { const eventListeners = gd._ev.eventNames().map((name2) => [name2, gd._ev.listeners(name2)]); @@ -45903,11 +45908,7 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); } @@ -46124,38 +46125,6 @@ var Plotly = (() => { } } } - function diffConfig(oldConfig, newConfig) { - var key; - for (key in oldConfig) { - if (key.charAt(0) === "_") continue; - var oldVal = oldConfig[key]; - var newVal = newConfig[key]; - if (oldVal !== newVal) { - if (Lib.isPlainObject(oldVal) && Lib.isPlainObject(newVal)) { - if (diffConfig(oldVal, newVal)) { - return true; - } - } else if (Array.isArray(oldVal) && Array.isArray(newVal)) { - if (oldVal.length !== newVal.length) { - return true; - } - for (var i = 0; i < oldVal.length; i++) { - if (oldVal[i] !== newVal[i]) { - if (Lib.isPlainObject(oldVal[i]) && Lib.isPlainObject(newVal[i])) { - if (diffConfig(oldVal[i], newVal[i])) { - return true; - } - } else { - return true; - } - } - } - } else { - return true; - } - } - } - } function animate(gd, frameOrGroupNameOrFrameList, animationOpts) { gd = Lib.getGraphDiv(gd); if (!Lib.isPlotDiv(gd)) { @@ -46424,9 +46393,13 @@ var Plotly = (() => { var collisionPresent = _frameHash[name] || _frameHashLocal[name]; if (name && newName && typeof newName === "number" && collisionPresent && numericNameWarningCount < numericNameWarningCountLimit) { numericNameWarningCount++; - Lib.warn('addFrames: overwriting frame "' + (_frameHash[name] || _frameHashLocal[name]).name + '" with a frame whose name of type "number" also equates to "' + name + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'); + Lib.warn( + 'addFrames: overwriting frame "' + (_frameHash[name] || _frameHashLocal[name]).name + '" with a frame whose name of type "number" also equates to "' + name + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.' + ); if (numericNameWarningCount === numericNameWarningCountLimit) { - Lib.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed."); + Lib.warn( + "addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed." + ); } } _frameHashLocal[lookupName] = { name: lookupName }; @@ -46446,7 +46419,9 @@ var Plotly = (() => { for (i = insertions.length - 1; i >= 0; i--) { frame = insertions[i].frame; if (typeof frame.name === "number") { - Lib.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"); + Lib.warn( + "Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings" + ); } if (!frame.name) { while (_frameHash[frame.name = "frame " + gd._transitionData._counter++]) ; @@ -56485,7 +56460,7 @@ var Plotly = (() => { if (axisOpts.side === "bottom") { Titles.draw(gd, axisOpts._id + "title", { propContainer: axisOpts, - propName: axisOpts._name + ".title", + propName: axisOpts._name + ".title.text", placeholder: fullLayout._dfltTitle.x, attributes: { x: axisOpts._offset + axisOpts._length / 2, @@ -58308,7 +58283,7 @@ var Plotly = (() => { function drawTitle(titleClass, titleOpts) { var dfltTitleOpts = { propContainer: ax, - propName: opts._propPrefix + "title", + propName: opts._propPrefix + "title.text", traceIndex: opts._traceIndex, _meta: opts._meta, placeholder: fullLayout._dfltTitle.colorbar, @@ -68387,7 +68362,7 @@ var Plotly = (() => { var bpad = (baxis.showticklabels ? baxis.tickfont.size : 0) + (baxis.ticks === "outside" ? baxis.ticklen : 0) + 3; layers["a-title"] = Titles.draw(gd, "a" + titlesuffix, { propContainer: aaxis, - propName: _this.id + ".aaxis.title", + propName: _this.id + ".aaxis.title.text", placeholder: _(gd, "Click to enter Component A title"), attributes: { x: _this.x0 + _this.w / 2, @@ -68397,7 +68372,7 @@ var Plotly = (() => { }); layers["b-title"] = Titles.draw(gd, "b" + titlesuffix, { propContainer: baxis, - propName: _this.id + ".baxis.title", + propName: _this.id + ".baxis.title.text", placeholder: _(gd, "Click to enter Component B title"), attributes: { x: _this.x0 - bpad, @@ -68407,7 +68382,7 @@ var Plotly = (() => { }); layers["c-title"] = Titles.draw(gd, "c" + titlesuffix, { propContainer: caxis, - propName: _this.id + ".caxis.title", + propName: _this.id + ".caxis.title.text", placeholder: _(gd, "Click to enter Component C title"), attributes: { x: _this.x0 + _this.w + bpad, diff --git a/dist/plotly-cartesian.min.js b/dist/plotly-cartesian.min.js index b9a20d2cd79..5ee4658997c 100644 --- a/dist/plotly-cartesian.min.js +++ b/dist/plotly-cartesian.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (cartesian - minified) v3.1.1 +* plotly.js (cartesian - minified) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,39 +12,39 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var ip=N(BA=>{"use strict";BA.version="3.1.1"});var UA=N((HA,op)=>{(function(r,t,a){t[r]=t[r]||a(),typeof op!="undefined"&&op.exports&&(op.exports=t[r])})("Promise",typeof window!="undefined"?window:HA,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(w,_,b,T){return Object.defineProperty(w,_,{value:b,writable:!0,configurable:T!==!1})}}catch(x){r=function(_,b,T){return _[b]=T,_}}a=function(){var w,_,b;function T(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,S){b=new T(M,S),_?_.next=b:w=b,_=b,b=void 0},drain:function(){var M=w;for(w=_=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(x,w){a.add(x,w),t||(t=i(a.drain))}function l(x){var w,_=typeof x;return x!=null&&(_=="object"||_=="function")&&(w=x.then),typeof w=="function"?w:!1}function s(){for(var x=0;x0&&o(s,_))}catch(b){c.call(new d(_),b)}}}function c(x){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=x,w.state=2,w.chain.length>0&&o(s,w))}function v(x,w,_,b){for(var T=0;T{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var A=g.length,q=new Array(A);A--;)q[A]=g[A];return q}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,A){l.call(this,g,A+"")},o.setAttributeNS=function(g,A,q){s.call(this,g,A,q+"")},u.setProperty=function(g,A,q){f.call(this,g,A+"",q)}}e.ascending=c;function c(h,g){return hg?1:h>=g?0:NaN}e.descending=function(h,g){return gh?1:g>=h?0:NaN},e.min=function(h,g){var A=-1,q=h.length,L,C;if(arguments.length===1){for(;++A=C){L=C;break}for(;++AC&&(L=C)}else{for(;++A=C){L=C;break}for(;++AC&&(L=C)}return L},e.max=function(h,g){var A=-1,q=h.length,L,C;if(arguments.length===1){for(;++A=C){L=C;break}for(;++AL&&(L=C)}else{for(;++A=C){L=C;break}for(;++AL&&(L=C)}return L},e.extent=function(h,g){var A=-1,q=h.length,L,C,I;if(arguments.length===1){for(;++A=C){L=I=C;break}for(;++AC&&(L=C),I=C){L=I=C;break}for(;++AC&&(L=C),I1)return I/(H-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,A,q,L){for(arguments.length<3&&(q=0),arguments.length<4&&(L=g.length);q>>1;h(g[C],A)<0?q=C+1:L=C}return q},right:function(g,A,q,L){for(arguments.length<3&&(q=0),arguments.length<4&&(L=g.length);q>>1;h(g[C],A)>0?L=C:q=C+1}return q}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(h){return p(h.length===1?function(g,A){return c(h(g),A)}:h)},e.shuffle=function(h,g,A){(q=arguments.length)<3&&(A=h.length,q<2&&(g=0));for(var q=A-g,L,C;q;)C=Math.random()*q--|0,L=h[q+g],h[q+g]=h[C+g],h[C+g]=L;return h},e.permute=function(h,g){for(var A=g.length,q=new Array(A);A--;)q[A]=h[g[A]];return q},e.pairs=function(h){for(var g=0,A=h.length-1,q,L=h[0],C=new Array(A<0?0:A);g=0;)for(I=h[g],A=I.length;--A>=0;)C[--L]=I[A];return C};var x=Math.abs;e.range=function(h,g,A){if(arguments.length<3&&(A=1,arguments.length<2&&(g=h,h=0)),(g-h)/A===1/0)throw new Error("infinite range");var q=[],L=w(x(A)),C=-1,I;if(h*=L,g*=L,A*=L,A<0)for(;(I=h+A*++C)>g;)q.push(I/L);else for(;(I=h+A*++C)=g.length)return L?L.call(h,H):q?H.sort(q):H;for(var $=-1,ee=H.length,te=g[J++],we,ke,ae,he=new b,ge;++$=g.length)return F;var J=[],$=A[H++];return F.forEach(function(ee,te){J.push({key:ee,values:I(te,H)})}),$?J.sort(function(ee,te){return $(ee.key,te.key)}):J}return h.map=function(F,H){return C(H,F,0)},h.entries=function(F){return I(C(e.map,F,0),0)},h.key=function(F){return g.push(F),h},h.sortKeys=function(F){return A[g.length-1]=F,h},h.sortValues=function(F){return q=F,h},h.rollup=function(F){return L=F,h},h},e.set=function(h){var g=new O;if(h)for(var A=0,q=h.length;A=0&&(q=h.slice(A+1),h=h.slice(0,A)),h)return arguments.length<2?this[h].on(q):this[h].on(q,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(q,null);return this}};function Z(h){var g=[],A=new b;function q(){for(var L=g,C=-1,I=L.length,F;++C=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),ye.hasOwnProperty(A)?{space:ye[A],local:h}:h}},ve.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node();return h=e.ns.qualify(h),h.local?A.getAttributeNS(h.space,h.local):A.getAttribute(h)}for(g in h)this.each(_e(g,h[g]));return this}return this.each(_e(h,g))};function _e(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function q(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function C(){this.setAttributeNS(h.space,h.local,g)}function I(){var H=g.apply(this,arguments);H==null?this.removeAttribute(h):this.setAttribute(h,H)}function F(){var H=g.apply(this,arguments);H==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,H)}return g==null?h.local?q:A:typeof g=="function"?h.local?F:I:h.local?C:L}function me(h){return h.trim().replace(/\s+/g," ")}ve.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),q=(h=Ne(h)).length,L=-1;if(g=A.classList){for(;++L=0;)(C=A[q])&&(L&&L!==C.nextSibling&&L.parentNode.insertBefore(C,L),L=C);return this},ve.sort=function(h){h=Ae.apply(this,arguments);for(var g=-1,A=this.length;++g=g&&(g=L+1);!(H=I[g])&&++g0&&(h=h.slice(0,L));var I=Oe.get(h);I&&(h=I,C=Ue);function F(){var $=this[q];$&&(this.removeEventListener(h,$,$.$),delete this[q])}function H(){var $=C(g,t(arguments));F.call(this),this.addEventListener(h,this[q]=$,$.$=A),$._=g}function J(){var $=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),ee;for(var te in this)if(ee=te.match($)){var we=this[te];this.removeEventListener(ee[1],we,we.$),delete this[te]}}return L?g?H:F:g?Y:J}var Oe=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Oe.forEach(function(h){"on"+h in a&&Oe.remove(h)});function Ze(h,g){return function(A){var q=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=q}}}function Ue(h,g){var A=Ze(h,g);return function(q){var L=this,C=q.relatedTarget;(!C||C!==L&&!(C.compareDocumentPosition(L)&8))&&A.call(L,q)}}var Xe,Qe=0;function hr(h){var g=".dragsuppress-"+ ++Qe,A="click"+g,q=e.select(i(h)).on("touchmove"+g,re).on("dragstart"+g,re).on("selectstart"+g,re);if(Xe==null&&(Xe="onselectstart"in h?!1:G(h.style,"userSelect")),Xe){var L=n(h).style,C=L[Xe];L[Xe]="none"}return function(I){if(q.on(g,null),Xe&&(L[Xe]=C),I){var F=function(){q.on(A,null)};q.on(A,function(){re(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Fe(h,ce())};var $e=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Fe(h,g){g.changedTouches&&(g=g.changedTouches[0]);var A=h.ownerSVGElement||h;if(A.createSVGPoint){var q=A.createSVGPoint();if($e<0){var L=i(h);if(L.scrollX||L.scrollY){A=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var C=A[0][0].getScreenCTM();$e=!(C.f||C.e),A.remove()}}return $e?(q.x=g.pageX,q.y=g.pageY):(q.x=g.clientX,q.y=g.clientY),q=q.matrixTransform(h.getScreenCTM().inverse()),[q.x,q.y]}var I=h.getBoundingClientRect();return[g.clientX-I.left-h.clientLeft,g.clientY-I.top-h.clientTop]}e.touch=function(h,g,A){if(arguments.length<3&&(A=g,g=ce().changedTouches),g){for(var q=0,L=g.length,C;q0?1:h<0?-1:0}function Vr(h,g,A){return(g[0]-h[0])*(A[1]-h[1])-(g[1]-h[1])*(A[0]-h[0])}function Yt(h){return h>1?0:h<-1?Le:Math.acos(h)}function wt(h){return h>1?nr:h<-1?-nr:Math.asin(h)}function Tt(h){return((h=Math.exp(h))-1/h)/2}function pt(h){return((h=Math.exp(h))+1/h)/2}function Xt(h){return((h=Math.exp(2*h))-1)/(h+1)}function Jt(h){return(h=Math.sin(h/2))*h}var It=Math.SQRT2,za=2,br=4;e.interpolateZoom=function(h,g){var A=h[0],q=h[1],L=h[2],C=g[0],I=g[1],F=g[2],H=C-A,J=I-q,$=H*H+J*J,ee,te;if($0&&(rr=rr.transition().duration(I)),rr.call(Se.event)}function dr(){he&&he.domain(ae.range().map(function(rr){return(rr-h.x)/h.k}).map(ae.invert)),Me&&Me.domain(ge.range().map(function(rr){return(rr-h.y)/h.k}).map(ge.invert))}function pr(rr){F++||rr({type:"zoomstart"})}function Er(rr){dr(),rr({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function mr(rr){--F||(rr({type:"zoomend"}),A=null)}function kr(){var rr=this,Dr=ke.of(rr,arguments),Pr=0,at=e.select(i(rr)).on(J,Ba).on($,an),Ht=xe(e.mouse(rr)),ha=hr(rr);rp.call(rr),pr(Dr);function Ba(){Pr=1,cr(e.mouse(rr),Ht),Er(Dr)}function an(){at.on(J,null).on($,null),ha(Pr),mr(Dr)}}function tt(){var rr=this,Dr=ke.of(rr,arguments),Pr={},at=0,Ht,ha=".zoom-"+e.event.changedTouches[0].identifier,Ba="touchmove"+ha,an="touchend"+ha,yn=[],nn=e.select(rr),An=hr(rr);Mn(),pr(Dr),nn.on(H,null).on(te,Mn);function Za(){var ji=e.touches(rr);return Ht=h.k,ji.forEach(function(Ha){Ha.identifier in Pr&&(Pr[Ha.identifier]=xe(Ha))}),ji}function Mn(){var ji=e.event.target;e.select(ji).on(Ba,Us).on(an,Hie),yn.push(ji);for(var Ha=e.event.changedTouches,oi=0,wo=Ha.length;oi1){var Gs=li[0],Nl=li[1],np=Gs[0]-Nl[0],OA=Gs[1]-Nl[1];at=np*np+OA*OA}}function Us(){var ji=e.touches(rr),Ha,oi,wo,li;rp.call(rr);for(var bf=0,Gs=ji.length;bf1?1:g,A=A<0?0:A>1?1:A,L=A<=.5?A*(1+g):A+g-A*g,q=2*A-L;function C(F){return F>360?F-=360:F<0&&(F+=360),F<60?q+(L-q)*F/60:F<180?L:F<240?q+(L-q)*(240-F)/60:q}function I(F){return Math.round(C(F)*255)}return new Vt(I(h+120),I(h),I(h-120))}e.hcl=$t;function $t(h,g,A){return this instanceof $t?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof $t?new $t(h.h,h.c,h.l):h instanceof Kt?Ft(h.l,h.a,h.b):Ft((h=fr((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new $t(h,g,A)}var tn=$t.prototype=new Pt;tn.brighter=function(h){return new $t(this.h,this.c,Math.min(100,this.l+ft*(arguments.length?h:1)))},tn.darker=function(h){return new $t(this.h,this.c,Math.max(0,this.l-ft*(arguments.length?h:1)))},tn.rgb=function(){return wn(this.h,this.c,this.l).rgb()};function wn(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Kt(A,Math.cos(h*=Mr)*g,Math.sin(h)*g)}e.lab=Kt;function Kt(h,g,A){return this instanceof Kt?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof Kt?new Kt(h.l,h.a,h.b):h instanceof $t?wn(h.h,h.c,h.l):fr((h=Vt(h)).r,h.g,h.b):new Kt(h,g,A)}var ft=18,_a=.95047,Ko=1,Qo=1.08883,vt=Kt.prototype=new Pt;vt.brighter=function(h){return new Kt(Math.min(100,this.l+ft*(arguments.length?h:1)),this.a,this.b)},vt.darker=function(h){return new Kt(Math.max(0,this.l-ft*(arguments.length?h:1)),this.a,this.b)},vt.rgb=function(){return Tn(this.l,this.a,this.b)};function Tn(h,g,A){var q=(h+16)/116,L=q+g/500,C=q-A/200;return L=zs(L)*_a,q=zs(q)*Ko,C=zs(C)*Qo,new Vt(Gi(3.2404542*L-1.5371385*q-.4985314*C),Gi(-.969266*L+1.8760108*q+.041556*C),Gi(.0556434*L-.2040259*q+1.0572252*C))}function Ft(h,g,A){return h>0?new $t(Math.atan2(A,g)*Or,Math.sqrt(g*g+A*A),h):new $t(NaN,NaN,h)}function zs(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function pn(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function Gi(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=Vt;function Vt(h,g,A){return this instanceof Vt?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof Vt?new Vt(h.r,h.g,h.b):$r(""+h,Vt,xa):new Vt(h,g,A)}function Yi(h){return new Vt(h>>16,h>>8&255,h&255)}function Rl(h){return Yi(h)+""}var Pl=Vt.prototype=new Pt;Pl.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,q=this.b,L=30;return!g&&!A&&!q?new Vt(L,L,L):(g&&g>4,q=q>>4|q,L=H&240,L=L>>4|L,C=H&15,C=C<<4|C):h.length===7&&(q=(H&16711680)>>16,L=(H&65280)>>8,C=H&255)),g(q,L,C))}function ht(h,g,A){var q=Math.min(h/=255,g/=255,A/=255),L=Math.max(h,g,A),C=L-q,I,F,H=(L+q)/2;return C?(F=H<.5?C/(L+q):C/(2-L-q),h==L?I=(g-A)/C+(g0&&H<1?0:I),new Qr(I,F,H)}function fr(h,g,A){h=Ia(h),g=Ia(g),A=Ia(A);var q=pn((.4124564*h+.3575761*g+.1804375*A)/_a),L=pn((.2126729*h+.7151522*g+.072175*A)/Ko),C=pn((.0193339*h+.119192*g+.9503041*A)/Qo);return Kt(116*L-16,500*(q-L),200*(L-C))}function Ia(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function kt(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var Oa=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Oa.forEach(function(h,g){Oa.set(h,Yi(g))});function Br(h){return typeof h=="function"?h:function(){return h}}e.functor=Br,e.xhr=Vi(B);function Vi(h){return function(g,A,q){return arguments.length===2&&typeof A=="function"&&(q=A,A=null),Is(g,A,h,q)}}function Is(h,g,A,q){var L={},C=e.dispatch("beforesend","progress","load","error"),I={},F=new XMLHttpRequest,H=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(h)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=J:F.onreadystatechange=function(){F.readyState>3&&J()};function J(){var $=F.status,ee;if(!$&&Gae(F)||$>=200&&$<300||$===304){try{ee=A.call(L,F)}catch(te){C.error.call(L,te);return}C.load.call(L,ee)}else C.error.call(L,F)}return F.onprogress=function($){var ee=e.event;e.event=$;try{C.progress.call(L,F)}finally{e.event=ee}},L.header=function($,ee){return $=($+"").toLowerCase(),arguments.length<2?I[$]:(ee==null?delete I[$]:I[$]=ee+"",L)},L.mimeType=function($){return arguments.length?(g=$==null?null:$+"",L):g},L.responseType=function($){return arguments.length?(H=$,L):H},L.response=function($){return A=$,L},["get","post"].forEach(function($){L[$]=function(){return L.send.apply(L,[$].concat(t(arguments)))}}),L.send=function($,ee,te){if(arguments.length===2&&typeof ee=="function"&&(te=ee,ee=null),F.open($,h,!0),g!=null&&!("accept"in I)&&(I.accept=g+",*/*"),F.setRequestHeader)for(var we in I)F.setRequestHeader(we,I[we]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),H!=null&&(F.responseType=H),te!=null&&L.on("error",te).on("load",function(ke){te(null,ke)}),C.beforesend.call(L,F),F.send(ee==null?null:ee),L},L.abort=function(){return F.abort(),L},e.rebind(L,C,"on"),q==null?L:L.get(Uae(q))}function Uae(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function Gae(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+` -]`),q=h.charCodeAt(0);function L(J,$,ee){arguments.length<3&&(ee=$,$=null);var te=Is(J,g,$==null?C:I($),ee);return te.row=function(we){return arguments.length?te.response(($=we)==null?C:I(we)):$},te}function C(J){return L.parse(J.responseText)}function I(J){return function($){return L.parse($.responseText,J)}}L.parse=function(J,$){var ee;return L.parseRows(J,function(te,we){if(ee)return ee(te,we-1);var ke=function(ae){for(var he={},ge=te.length,Me=0;Me=ke)return te;if(Me)return Me=!1,ee;var Ye=ae;if(J.charCodeAt(Ye)===34){for(var ir=Ye;ir++{var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var op=N(BA=>{"use strict";BA.version="3.1.2"});var UA=N((HA,lp)=>{(function(r,t,a){t[r]=t[r]||a(),typeof lp!="undefined"&&lp.exports&&(lp.exports=t[r])})("Promise",typeof window!="undefined"?window:HA,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(w,_,b,T){return Object.defineProperty(w,_,{value:b,writable:!0,configurable:T!==!1})}}catch(x){r=function(_,b,T){return _[b]=T,_}}a=function(){var w,_,b;function T(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,q){b=new T(M,q),_?_.next=b:w=b,_=b,b=void 0},drain:function(){var M=w;for(w=_=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(x,w){a.add(x,w),t||(t=i(a.drain))}function l(x){var w,_=typeof x;return x!=null&&(_=="object"||_=="function")&&(w=x.then),typeof w=="function"?w:!1}function s(){for(var x=0;x0&&o(s,_))}catch(b){c.call(new d(_),b)}}}function c(x){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=x,w.state=2,w.chain.length>0&&o(s,w))}function v(x,w,_,b){for(var T=0;T{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var A=g.length,S=new Array(A);A--;)S[A]=g[A];return S}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,A){l.call(this,g,A+"")},o.setAttributeNS=function(g,A,S){s.call(this,g,A,S+"")},u.setProperty=function(g,A,S){f.call(this,g,A+"",S)}}e.ascending=c;function c(h,g){return hg?1:h>=g?0:NaN}e.descending=function(h,g){return gh?1:g>=h?0:NaN},e.min=function(h,g){var A=-1,S=h.length,L,C;if(arguments.length===1){for(;++A=C){L=C;break}for(;++AC&&(L=C)}else{for(;++A=C){L=C;break}for(;++AC&&(L=C)}return L},e.max=function(h,g){var A=-1,S=h.length,L,C;if(arguments.length===1){for(;++A=C){L=C;break}for(;++AL&&(L=C)}else{for(;++A=C){L=C;break}for(;++AL&&(L=C)}return L},e.extent=function(h,g){var A=-1,S=h.length,L,C,I;if(arguments.length===1){for(;++A=C){L=I=C;break}for(;++AC&&(L=C),I=C){L=I=C;break}for(;++AC&&(L=C),I1)return I/(H-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,A,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S>>1;h(g[C],A)<0?S=C+1:L=C}return S},right:function(g,A,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S>>1;h(g[C],A)>0?L=C:S=C+1}return S}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(h){return p(h.length===1?function(g,A){return c(h(g),A)}:h)},e.shuffle=function(h,g,A){(S=arguments.length)<3&&(A=h.length,S<2&&(g=0));for(var S=A-g,L,C;S;)C=Math.random()*S--|0,L=h[S+g],h[S+g]=h[C+g],h[C+g]=L;return h},e.permute=function(h,g){for(var A=g.length,S=new Array(A);A--;)S[A]=h[g[A]];return S},e.pairs=function(h){for(var g=0,A=h.length-1,S,L=h[0],C=new Array(A<0?0:A);g=0;)for(I=h[g],A=I.length;--A>=0;)C[--L]=I[A];return C};var x=Math.abs;e.range=function(h,g,A){if(arguments.length<3&&(A=1,arguments.length<2&&(g=h,h=0)),(g-h)/A===1/0)throw new Error("infinite range");var S=[],L=w(x(A)),C=-1,I;if(h*=L,g*=L,A*=L,A<0)for(;(I=h+A*++C)>g;)S.push(I/L);else for(;(I=h+A*++C)=g.length)return L?L.call(h,H):S?H.sort(S):H;for(var $=-1,ee=H.length,te=g[J++],we,ke,ae,he=new b,ge;++$=g.length)return F;var J=[],$=A[H++];return F.forEach(function(ee,te){J.push({key:ee,values:I(te,H)})}),$?J.sort(function(ee,te){return $(ee.key,te.key)}):J}return h.map=function(F,H){return C(H,F,0)},h.entries=function(F){return I(C(e.map,F,0),0)},h.key=function(F){return g.push(F),h},h.sortKeys=function(F){return A[g.length-1]=F,h},h.sortValues=function(F){return S=F,h},h.rollup=function(F){return L=F,h},h},e.set=function(h){var g=new O;if(h)for(var A=0,S=h.length;A=0&&(S=h.slice(A+1),h=h.slice(0,A)),h)return arguments.length<2?this[h].on(S):this[h].on(S,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(S,null);return this}};function Z(h){var g=[],A=new b;function S(){for(var L=g,C=-1,I=L.length,F;++C=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),ye.hasOwnProperty(A)?{space:ye[A],local:h}:h}},ve.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node();return h=e.ns.qualify(h),h.local?A.getAttributeNS(h.space,h.local):A.getAttribute(h)}for(g in h)this.each(_e(g,h[g]));return this}return this.each(_e(h,g))};function _e(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function S(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function C(){this.setAttributeNS(h.space,h.local,g)}function I(){var H=g.apply(this,arguments);H==null?this.removeAttribute(h):this.setAttribute(h,H)}function F(){var H=g.apply(this,arguments);H==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,H)}return g==null?h.local?S:A:typeof g=="function"?h.local?F:I:h.local?C:L}function me(h){return h.trim().replace(/\s+/g," ")}ve.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),S=(h=Ne(h)).length,L=-1;if(g=A.classList){for(;++L=0;)(C=A[S])&&(L&&L!==C.nextSibling&&L.parentNode.insertBefore(C,L),L=C);return this},ve.sort=function(h){h=Ae.apply(this,arguments);for(var g=-1,A=this.length;++g=g&&(g=L+1);!(H=I[g])&&++g0&&(h=h.slice(0,L));var I=Oe.get(h);I&&(h=I,C=Ue);function F(){var $=this[S];$&&(this.removeEventListener(h,$,$.$),delete this[S])}function H(){var $=C(g,t(arguments));F.call(this),this.addEventListener(h,this[S]=$,$.$=A),$._=g}function J(){var $=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),ee;for(var te in this)if(ee=te.match($)){var we=this[te];this.removeEventListener(ee[1],we,we.$),delete this[te]}}return L?g?H:F:g?V:J}var Oe=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Oe.forEach(function(h){"on"+h in a&&Oe.remove(h)});function Ze(h,g){return function(A){var S=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=S}}}function Ue(h,g){var A=Ze(h,g);return function(S){var L=this,C=S.relatedTarget;(!C||C!==L&&!(C.compareDocumentPosition(L)&8))&&A.call(L,S)}}var Xe,Ke=0;function hr(h){var g=".dragsuppress-"+ ++Ke,A="click"+g,S=e.select(i(h)).on("touchmove"+g,re).on("dragstart"+g,re).on("selectstart"+g,re);if(Xe==null&&(Xe="onselectstart"in h?!1:G(h.style,"userSelect")),Xe){var L=n(h).style,C=L[Xe];L[Xe]="none"}return function(I){if(S.on(g,null),Xe&&(L[Xe]=C),I){var F=function(){S.on(A,null)};S.on(A,function(){re(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Fe(h,ce())};var $e=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Fe(h,g){g.changedTouches&&(g=g.changedTouches[0]);var A=h.ownerSVGElement||h;if(A.createSVGPoint){var S=A.createSVGPoint();if($e<0){var L=i(h);if(L.scrollX||L.scrollY){A=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var C=A[0][0].getScreenCTM();$e=!(C.f||C.e),A.remove()}}return $e?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(h.getScreenCTM().inverse()),[S.x,S.y]}var I=h.getBoundingClientRect();return[g.clientX-I.left-h.clientLeft,g.clientY-I.top-h.clientTop]}e.touch=function(h,g,A){if(arguments.length<3&&(A=g,g=ce().changedTouches),g){for(var S=0,L=g.length,C;S0?1:h<0?-1:0}function Yr(h,g,A){return(g[0]-h[0])*(A[1]-h[1])-(g[1]-h[1])*(A[0]-h[0])}function Vt(h){return h>1?0:h<-1?Le:Math.acos(h)}function wt(h){return h>1?nr:h<-1?-nr:Math.asin(h)}function Tt(h){return((h=Math.exp(h))-1/h)/2}function pt(h){return((h=Math.exp(h))+1/h)/2}function Xt(h){return((h=Math.exp(2*h))-1)/(h+1)}function Jt(h){return(h=Math.sin(h/2))*h}var It=Math.SQRT2,za=2,br=4;e.interpolateZoom=function(h,g){var A=h[0],S=h[1],L=h[2],C=g[0],I=g[1],F=g[2],H=C-A,J=I-S,$=H*H+J*J,ee,te;if($0&&(er=er.transition().duration(I)),er.call(Se.event)}function dr(){he&&he.domain(ae.range().map(function(er){return(er-h.x)/h.k}).map(ae.invert)),Me&&Me.domain(ge.range().map(function(er){return(er-h.y)/h.k}).map(ge.invert))}function pr(er){F++||er({type:"zoomstart"})}function Er(er){dr(),er({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function mr(er){--F||(er({type:"zoomend"}),A=null)}function kr(){var er=this,Dr=ke.of(er,arguments),Pr=0,at=e.select(i(er)).on(J,Ba).on($,an),Ht=xe(e.mouse(er)),ha=hr(er);tp.call(er),pr(Dr);function Ba(){Pr=1,cr(e.mouse(er),Ht),Er(Dr)}function an(){at.on(J,null).on($,null),ha(Pr),mr(Dr)}}function tt(){var er=this,Dr=ke.of(er,arguments),Pr={},at=0,Ht,ha=".zoom-"+e.event.changedTouches[0].identifier,Ba="touchmove"+ha,an="touchend"+ha,mn=[],nn=e.select(er),Mn=hr(er);kn(),pr(Dr),nn.on(H,null).on(te,kn);function Za(){var Zi=e.touches(er);return Ht=h.k,Zi.forEach(function(Ha){Ha.identifier in Pr&&(Pr[Ha.identifier]=xe(Ha))}),Zi}function kn(){var Zi=e.event.target;e.select(Zi).on(Ba,Us).on(an,Gie),mn.push(Zi);for(var Ha=e.event.changedTouches,oi=0,wo=Ha.length;oi1){var Gs=li[0],Nl=li[1],ip=Gs[0]-Nl[0],OA=Gs[1]-Nl[1];at=ip*ip+OA*OA}}function Us(){var Zi=e.touches(er),Ha,oi,wo,li;tp.call(er);for(var bf=0,Gs=Zi.length;bf1?1:g,A=A<0?0:A>1?1:A,L=A<=.5?A*(1+g):A+g-A*g,S=2*A-L;function C(F){return F>360?F-=360:F<0&&(F+=360),F<60?S+(L-S)*F/60:F<180?L:F<240?S+(L-S)*(240-F)/60:S}function I(F){return Math.round(C(F)*255)}return new Yt(I(h+120),I(h),I(h-120))}e.hcl=$t;function $t(h,g,A){return this instanceof $t?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof $t?new $t(h.h,h.c,h.l):h instanceof Kt?Ft(h.l,h.a,h.b):Ft((h=fr((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new $t(h,g,A)}var tn=$t.prototype=new Pt;tn.brighter=function(h){return new $t(this.h,this.c,Math.min(100,this.l+ft*(arguments.length?h:1)))},tn.darker=function(h){return new $t(this.h,this.c,Math.max(0,this.l-ft*(arguments.length?h:1)))},tn.rgb=function(){return Tn(this.h,this.c,this.l).rgb()};function Tn(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Kt(A,Math.cos(h*=Mr)*g,Math.sin(h)*g)}e.lab=Kt;function Kt(h,g,A){return this instanceof Kt?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof Kt?new Kt(h.l,h.a,h.b):h instanceof $t?Tn(h.h,h.c,h.l):fr((h=Yt(h)).r,h.g,h.b):new Kt(h,g,A)}var ft=18,_a=.95047,Ko=1,Qo=1.08883,vt=Kt.prototype=new Pt;vt.brighter=function(h){return new Kt(Math.min(100,this.l+ft*(arguments.length?h:1)),this.a,this.b)},vt.darker=function(h){return new Kt(Math.max(0,this.l-ft*(arguments.length?h:1)),this.a,this.b)},vt.rgb=function(){return An(this.l,this.a,this.b)};function An(h,g,A){var S=(h+16)/116,L=S+g/500,C=S-A/200;return L=zs(L)*_a,S=zs(S)*Ko,C=zs(C)*Qo,new Yt(Vi(3.2404542*L-1.5371385*S-.4985314*C),Vi(-.969266*L+1.8760108*S+.041556*C),Vi(.0556434*L-.2040259*S+1.0572252*C))}function Ft(h,g,A){return h>0?new $t(Math.atan2(A,g)*Or,Math.sqrt(g*g+A*A),h):new $t(NaN,NaN,h)}function zs(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function yn(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function Vi(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=Yt;function Yt(h,g,A){return this instanceof Yt?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof Yt?new Yt(h.r,h.g,h.b):$r(""+h,Yt,xa):new Yt(h,g,A)}function Yi(h){return new Yt(h>>16,h>>8&255,h&255)}function Rl(h){return Yi(h)+""}var Pl=Yt.prototype=new Pt;Pl.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,S=this.b,L=30;return!g&&!A&&!S?new Yt(L,L,L):(g&&g>4,S=S>>4|S,L=H&240,L=L>>4|L,C=H&15,C=C<<4|C):h.length===7&&(S=(H&16711680)>>16,L=(H&65280)>>8,C=H&255)),g(S,L,C))}function ht(h,g,A){var S=Math.min(h/=255,g/=255,A/=255),L=Math.max(h,g,A),C=L-S,I,F,H=(L+S)/2;return C?(F=H<.5?C/(L+S):C/(2-L-S),h==L?I=(g-A)/C+(g0&&H<1?0:I),new Qr(I,F,H)}function fr(h,g,A){h=Ia(h),g=Ia(g),A=Ia(A);var S=yn((.4124564*h+.3575761*g+.1804375*A)/_a),L=yn((.2126729*h+.7151522*g+.072175*A)/Ko),C=yn((.0193339*h+.119192*g+.9503041*A)/Qo);return Kt(116*L-16,500*(S-L),200*(L-C))}function Ia(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function kt(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var Oa=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Oa.forEach(function(h,g){Oa.set(h,Yi(g))});function Br(h){return typeof h=="function"?h:function(){return h}}e.functor=Br,e.xhr=Wi(B);function Wi(h){return function(g,A,S){return arguments.length===2&&typeof A=="function"&&(S=A,A=null),Is(g,A,h,S)}}function Is(h,g,A,S){var L={},C=e.dispatch("beforesend","progress","load","error"),I={},F=new XMLHttpRequest,H=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(h)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=J:F.onreadystatechange=function(){F.readyState>3&&J()};function J(){var $=F.status,ee;if(!$&&Yae(F)||$>=200&&$<300||$===304){try{ee=A.call(L,F)}catch(te){C.error.call(L,te);return}C.load.call(L,ee)}else C.error.call(L,F)}return F.onprogress=function($){var ee=e.event;e.event=$;try{C.progress.call(L,F)}finally{e.event=ee}},L.header=function($,ee){return $=($+"").toLowerCase(),arguments.length<2?I[$]:(ee==null?delete I[$]:I[$]=ee+"",L)},L.mimeType=function($){return arguments.length?(g=$==null?null:$+"",L):g},L.responseType=function($){return arguments.length?(H=$,L):H},L.response=function($){return A=$,L},["get","post"].forEach(function($){L[$]=function(){return L.send.apply(L,[$].concat(t(arguments)))}}),L.send=function($,ee,te){if(arguments.length===2&&typeof ee=="function"&&(te=ee,ee=null),F.open($,h,!0),g!=null&&!("accept"in I)&&(I.accept=g+",*/*"),F.setRequestHeader)for(var we in I)F.setRequestHeader(we,I[we]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),H!=null&&(F.responseType=H),te!=null&&L.on("error",te).on("load",function(ke){te(null,ke)}),C.beforesend.call(L,F),F.send(ee==null?null:ee),L},L.abort=function(){return F.abort(),L},e.rebind(L,C,"on"),S==null?L:L.get(Vae(S))}function Vae(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function Yae(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+` +]`),S=h.charCodeAt(0);function L(J,$,ee){arguments.length<3&&(ee=$,$=null);var te=Is(J,g,$==null?C:I($),ee);return te.row=function(we){return arguments.length?te.response(($=we)==null?C:I(we)):$},te}function C(J){return L.parse(J.responseText)}function I(J){return function($){return L.parse($.responseText,J)}}L.parse=function(J,$){var ee;return L.parseRows(J,function(te,we){if(ee)return ee(te,we-1);var ke=function(ae){for(var he={},ge=te.length,Me=0;Me=ke)return te;if(Me)return Me=!1,ee;var Ve=ae;if(J.charCodeAt(Ve)===34){for(var ir=Ve;ir++24?(isFinite(g)&&(clearTimeout(Od),Od=setTimeout(A3,g)),Id=0):(Id=1,M8(A3))}e.timer.flush=function(){k8(),S8()};function k8(){for(var h=Date.now(),g=Nd;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function S8(){for(var h,g=Nd,A=1/0;g;)g.c?(g.t=0;--F)ae.push(L[J[ee[F]][2]]);for(F=+we;F1&&Vr(h[A[q-2]],h[A[q-1]],h[L])<=0;)--q;A[q++]=L}return A.slice(0,q)}function Yae(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return K(h,Hd),h};var Hd=e.geom.polygon.prototype=[];Hd.area=function(){for(var h=-1,g=this.length,A,q=this[g-1],L=0;++hde)F=F.L;else if(I=g-Zae(F,A),I>de){if(!F.R){q=F;break}F=F.R}else{C>-de?(q=F.P,L=F):I>-de?(q=F,L=F.N):q=L=F;break}var H=D8(h);if(pf.insert(q,H),!(!q&&!L)){if(q===L){mf(q),L=D8(q.site),pf.insert(H,L),H.edge=L.edge=Fv(q.site,H.site),yf(q),yf(L);return}if(!L){H.edge=Fv(q.site,H.site);return}mf(q),mf(L);var J=q.site,$=J.x,ee=J.y,te=h.x-$,we=h.y-ee,ke=L.site,ae=ke.x-$,he=ke.y-ee,ge=2*(te*he-we*ae),Me=te*te+we*we,Se=ae*ae+he*he,xe={x:(he*Me-we*Se)/ge+$,y:(te*Se-ae*Me)/ge+ee};Ud(L.edge,J,ke,xe),H.edge=Fv(J,h,null,xe),L.edge=Fv(h,ke,null,xe),yf(q),yf(L)}}function R8(h,g){var A=h.site,q=A.x,L=A.y,C=L-g;if(!C)return q;var I=h.P;if(!I)return-1/0;A=I.site;var F=A.x,H=A.y,J=H-g;if(!J)return F;var $=F-q,ee=1/C-1/J,te=$/J;return ee?(-te+Math.sqrt(te*te-2*ee*($*$/(-2*J)-H+J/2+L-C/2)))/ee+q:(q+F)/2}function Zae(h,g){var A=h.N;if(A)return R8(A,g);var q=h.site;return q.y===g?q.x:1/0}function P8(h){this.site=h,this.edges=[]}P8.prototype.prepare=function(){for(var h=this.edges,g=h.length,A;g--;)A=h[g].edge,(!A.b||!A.a)&&h.splice(g,1);return h.sort(F8),h.length};function Xae(h){for(var g=h[0][0],A=h[1][0],q=h[0][1],L=h[1][1],C,I,F,H,J=Os,$=J.length,ee,te,we,ke,ae,he;$--;)if(ee=J[$],!(!ee||!ee.prepare()))for(we=ee.edges,ke=we.length,te=0;tede||x(H-I)>de)&&(we.splice(te,0,new Gd(ene(ee.site,he,x(F-g)de?{x:g,y:x(C-g)de?{x:x(I-L)de?{x:A,y:x(C-A)de?{x:x(I-q)=-Ee)){var te=H*H+J*J,we=$*$+he*he,ke=(he*te-J*we)/ee,ae=(H*we-$*te)/ee,he=ae+F,ge=E8.pop()||new Jae;ge.arc=h,ge.site=L,ge.x=ke+I,ge.y=he+Math.sqrt(ke*ke+ae*ae),ge.cy=he,h.circle=ge;for(var Me=null,Se=Pv._;Se;)if(ge.y0)){if(ae/=we,we<0){if(ae0){if(ae>te)return;ae>ee&&(ee=ae)}if(ae=A-F,!(!we&&ae<0)){if(ae/=we,we<0){if(ae>te)return;ae>ee&&(ee=ae)}else if(we>0){if(ae0)){if(ae/=ke,ke<0){if(ae0){if(ae>te)return;ae>ee&&(ee=ae)}if(ae=q-H,!(!ke&&ae<0)){if(ae/=ke,ke<0){if(ae>te)return;ae>ee&&(ee=ae)}else if(ke>0){if(ae0&&(L.a={x:F+ee*we,y:H+ee*ke}),te<1&&(L.b={x:F+te*we,y:H+te*ke}),L}}}}}}function Kae(h){for(var g=df,A=$ae(h[0][0],h[0][1],h[1][0],h[1][1]),q=g.length,L;q--;)L=g[q],(!Qae(L,h)||!A(L)||x(L.a.x-L.b.x)=C)return;if($>te){if(!q)q={x:ke,y:I};else if(q.y>=F)return;A={x:ke,y:F}}else{if(!q)q={x:ke,y:F};else if(q.y1)if($>te){if(!q)q={x:(I-ge)/he,y:I};else if(q.y>=F)return;A={x:(F-ge)/he,y:F}}else{if(!q)q={x:(F-ge)/he,y:F};else if(q.y=C)return;A={x:C,y:he*C+ge}}else{if(!q)q={x:C,y:he*C+ge};else if(q.x=$&&ge.x<=te&&ge.y>=ee&&ge.y<=we?[[$,we],[te,we],[te,ee],[$,ee]]:[];Me.point=H[ae]}),J}function F(H){return H.map(function(J,$){return{x:Math.round(q(J,$)/de)*de,y:Math.round(L(J,$)/de)*de,i:$}})}return I.links=function(H){return C3(F(H)).edges.filter(function(J){return J.l&&J.r}).map(function(J){return{source:H[J.l.i],target:H[J.r.i]}})},I.triangles=function(H){var J=[];return C3(F(H)).cells.forEach(function($,ee){for(var te=$.site,we=$.edges.sort(F8),ke=-1,ae=we.length,he,ge,Me=we[ae-1].edge,Se=Me.l===te?Me.r:Me.l;++keSe&&(Se=$.x),$.y>xe&&(xe=$.y),we.push($.x),ke.push($.y);else for(ae=0;aeSe&&(Se=Ye),ir>xe&&(xe=ir),we.push(Ye),ke.push(ir)}var cr=Se-ge,or=xe-Me;cr>or?xe=Me+cr:Se=ge+or;function dr(mr,kr,tt,Qt,mt,rr,Dr,Pr){if(!(isNaN(tt)||isNaN(Qt)))if(mr.leaf){var at=mr.x,Ht=mr.y;if(at!=null)if(x(at-tt)+x(Ht-Qt)<.01)pr(mr,kr,tt,Qt,mt,rr,Dr,Pr);else{var ha=mr.point;mr.x=mr.y=mr.point=null,pr(mr,ha,at,Ht,mt,rr,Dr,Pr),pr(mr,kr,tt,Qt,mt,rr,Dr,Pr)}else mr.x=tt,mr.y=Qt,mr.point=kr}else pr(mr,kr,tt,Qt,mt,rr,Dr,Pr)}function pr(mr,kr,tt,Qt,mt,rr,Dr,Pr){var at=(mt+Dr)*.5,Ht=(rr+Pr)*.5,ha=tt>=at,Ba=Qt>=Ht,an=Ba<<1|ha;mr.leaf=!1,mr=mr.nodes[an]||(mr.nodes[an]=I8()),ha?mt=at:Dr=at,Ba?rr=Ht:Pr=Ht,dr(mr,kr,tt,Qt,mt,rr,Dr,Pr)}var Er=I8();if(Er.add=function(mr){dr(Er,mr,+ee(mr,++ae),+te(mr,ae),ge,Me,Se,xe)},Er.visit=function(mr){Iv(mr,Er,ge,Me,Se,xe)},Er.find=function(mr){return ine(Er,mr[0],mr[1],ge,Me,Se,xe)},ae=-1,g==null){for(;++aeC||te>I||we=Ye,or=A>=ir,dr=or<<1|cr,pr=dr+4;drA&&(C=g.slice(A,C),F[I]?F[I]+=C:F[++I]=C),(q=q[0])===(L=L[0])?F[I]?F[I]+=L:F[++I]=L:(F[++I]=null,H.push({i:I,x:el(q,L)})),A=R3.lastIndex;return A=0&&!(q=e.interpolators[A](h,g)););return q}e.interpolators=[function(h,g){var A=typeof g;return(A==="string"?Oa.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?E3:B8:g instanceof Pt?E3:Array.isArray(g)?Wd:A==="object"&&isNaN(g)?O8:el)(h,g)}],e.interpolateArray=Wd;function Wd(h,g){var A=[],q=[],L=h.length,C=g.length,I=Math.min(h.length,g.length),F;for(F=0;F=0?h.slice(0,g):h,q=g>=0?h.slice(g+1):"in";return A=one.get(A)||H8,q=lne.get(q)||B,sne(q(A.apply(null,r.call(arguments,1))))};function sne(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function U8(h){return function(g){return 1-h(1-g)}}function G8(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function une(h){return h*h}function fne(h){return h*h*h}function cne(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,A=g*h;return 4*(h<.5?A:3*(h-g)+A-.75)}function vne(h){return function(g){return Math.pow(g,h)}}function hne(h){return 1-Math.cos(h*nr)}function dne(h){return Math.pow(2,10*(h-1))}function pne(h){return 1-Math.sqrt(1-h*h)}function yne(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/ar*Math.asin(1/h):(h=1,A=g/4),function(q){return 1+h*Math.pow(2,-10*q)*Math.sin((q-A)*ar/g)}}function mne(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function gne(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=bne;function bne(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,q=h.c,L=h.l,C=g.h-A,I=g.c-q,F=g.l-L;return isNaN(I)&&(I=0,q=isNaN(q)?g.c:q),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(H){return wn(A+C*H,q+I*H,L+F*H)+""}}e.interpolateHsl=xne;function xne(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,q=h.s,L=h.l,C=g.h-A,I=g.s-q,F=g.l-L;return isNaN(I)&&(I=0,q=isNaN(q)?g.s:q),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(H){return xa(A+C*H,q+I*H,L+F*H)+""}}e.interpolateLab=_ne;function _ne(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,q=h.a,L=h.b,C=g.l-A,I=g.a-q,F=g.b-L;return function(H){return Tn(A+C*H,q+I*H,L+F*H)+""}}e.interpolateRound=Y8;function Y8(h,g){return g-=h,function(A){return Math.round(h+g*A)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(A){if(A!=null){g.setAttribute("transform",A);var q=g.transform.baseVal.consolidate()}return new V8(q?q.matrix:Tne)})(h)};function V8(h){var g=[h.a,h.b],A=[h.c,h.d],q=j8(g),L=W8(g,A),C=j8(wne(A,g,-L))||0;g[0]*A[1]180?g+=360:g-h>180&&(h+=360),q.push({i:A.push(gf(A)+"rotate(",null,")")-2,x:el(h,g)})):g&&A.push(gf(A)+"rotate("+g+")")}function kne(h,g,A,q){h!==g?q.push({i:A.push(gf(A)+"skewX(",null,")")-2,x:el(h,g)}):g&&A.push(gf(A)+"skewX("+g+")")}function Sne(h,g,A,q){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push(gf(A)+"scale(",null,",",null,")");q.push({i:L-4,x:el(h[0],g[0])},{i:L-2,x:el(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&A.push(gf(A)+"scale("+g+")")}function Z8(h,g){var A=[],q=[];return h=e.transform(h),g=e.transform(g),Ane(h.translate,g.translate,A,q),Mne(h.rotate,g.rotate,A,q),kne(h.skew,g.skew,A,q),Sne(h.scale,g.scale,A,q),h=g=null,function(L){for(var C=-1,I=q.length,F;++C0?C=xe:(A.c=null,A.t=NaN,A=null,g.end({type:"end",alpha:C=0})):xe>0&&(g.start({type:"start",alpha:C=xe}),A=Bd(h.tick)),h):C},h.start=function(){var xe,Ye=we.length,ir=ke.length,cr=q[0],or=q[1],dr,pr;for(xe=0;xe=0;)C.push($=J[H]),$.parent=F,$.depth=F.depth+1;A&&(F.value=0),F.children=J}else A&&(F.value=+A.call(q,F,F.depth)||0),delete F.children;return _o(L,function(ee){var te,we;h&&(te=ee.children)&&te.sort(h),A&&(we=ee.parent)&&(we.value+=ee.value)}),I}return q.sort=function(L){return arguments.length?(h=L,q):h},q.children=function(L){return arguments.length?(g=L,q):g},q.value=function(L){return arguments.length?(A=L,q):A},q.revalue=function(L){return A&&(Bv(L,function(C){C.children&&(C.value=0)}),_o(L,function(C){var I;C.children||(C.value=+A.call(q,C,C.depth)||0),(I=C.parent)&&(I.value+=C.value)})),L},q};function Ov(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=Une,h}function Bv(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(L=h.children)&&(q=L.length))for(var q,L;--q>=0;)A.push(L[q])}function _o(h,g){for(var A=[h],q=[];(h=A.pop())!=null;)if(q.push(h),(I=h.children)&&(C=I.length))for(var L=-1,C,I;++LL&&(L=F),q.push(F)}for(I=0;Iq&&(A=g,q=L);return A}function Xne(h){return h.reduce(Jne,0)}function Jne(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=Kne,q=$ne;function L(C,te){for(var F=[],H=C.map(g,this),J=A.call(this,H,te),$=q.call(this,J,H,te),ee,te=-1,we=H.length,ke=$.length-1,ae=h?1:1/we,he;++te0)for(te=-1;++te=J[0]&&he<=J[1]&&(ee=F[e.bisect($,he,1,ke)-1],ee.y+=ae,ee.push(C[te]));return F}return L.value=function(C){return arguments.length?(g=C,L):g},L.range=function(C){return arguments.length?(A=Br(C),L):A},L.bins=function(C){return arguments.length?(q=typeof C=="number"?function(I){return K8(I,C)}:Br(C),L):q},L.frequency=function(C){return arguments.length?(h=!!C,L):h},L};function $ne(h,g){return K8(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function K8(h,g){for(var A=-1,q=+h[0],L=(h[1]-q)/g,C=[];++A<=g;)C[A]=L*A+q;return C}function Kne(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(Qne),g=0,A=[1,1],q;function L(C,I){var F=h.call(this,C,I),H=F[0],J=A[0],$=A[1],ee=q==null?Math.sqrt:typeof q=="function"?q:function(){return q};if(H.x=H.y=0,_o(H,function(we){we.r=+ee(we.value)}),_o(H,rA),g){var te=g*(q?1:Math.max(2*H.r/J,2*H.r/$))/2;_o(H,function(we){we.r+=te}),_o(H,rA),_o(H,function(we){we.r-=te})}return tA(H,J/2,$/2,q?1:1/Math.max(2*H.r/J,2*H.r/$)),F}return L.size=function(C){return arguments.length?(A=C,L):A},L.radius=function(C){return arguments.length?(q=C==null||typeof C=="function"?C:+C,L):q},L.padding=function(C){return arguments.length?(g=+C,L):g},Ov(L,h)};function Qne(h,g){return h.value-g.value}function N3(h,g){var A=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=A,A._pack_prev=g}function Q8(h,g){h._pack_next=g,g._pack_prev=h}function eA(h,g){var A=g.x-h.x,q=g.y-h.y,L=h.r+g.r;return .999*L*L>A*A+q*q}function rA(h){if(!(g=h.children)||!(te=g.length))return;var g,A=1/0,q=-1/0,L=1/0,C=-1/0,I,F,H,J,$,ee,te;function we(xe){A=Math.min(xe.x-xe.r,A),q=Math.max(xe.x+xe.r,q),L=Math.min(xe.y-xe.r,L),C=Math.max(xe.y+xe.r,C)}if(g.forEach(eie),I=g[0],I.x=-I.r,I.y=0,we(I),te>1&&(F=g[1],F.x=F.r,F.y=0,we(F),te>2))for(H=g[2],aA(I,F,H),we(H),N3(I,H),I._pack_prev=H,N3(H,F),F=I._pack_next,J=3;Jhe.x&&(he=Ye),Ye.depth>ge.depth&&(ge=Ye)});var Me=g(ae,he)/2-ae.x,Se=A[0]/(he.x+g(he,ae)/2+Me),xe=A[1]/(ge.depth||1);Bv(we,function(Ye){Ye.x=(Ye.x+Me)*Se,Ye.y=Ye.depth*xe})}return te}function C($){for(var ee={A:null,children:[$]},te=[ee],we;(we=te.pop())!=null;)for(var ke=we.children,ae,he=0,ge=ke.length;he0&&(tie(nie(ae,$,te),$,Ye),ge+=Ye,Me+=Ye),Se+=ae.m,ge+=we.m,xe+=he.m,Me+=ke.m;ae&&!I3(ke)&&(ke.t=ae,ke.m+=Se-Me),we&&!z3(he)&&(he.t=we,he.m+=ge-xe,te=$)}return te}function J($){$.x*=A[0],$.y=$.depth*A[1]}return L.separation=function($){return arguments.length?(g=$,L):g},L.size=function($){return arguments.length?(q=(A=$)==null?J:null,L):q?null:A},L.nodeSize=function($){return arguments.length?(q=(A=$)==null?null:J,L):q?A:null},Ov(L,h)};function nA(h,g){return h.parent==g.parent?1:2}function z3(h){var g=h.children;return g.length?g[0]:h.t}function I3(h){var g=h.children,A;return(A=g.length)?g[A-1]:h.t}function tie(h,g,A){var q=A/(g.i-h.i);g.c-=q,g.s+=A,h.c+=q,g.z+=A,g.m+=A}function aie(h){for(var g=0,A=0,q=h.children,L=q.length,C;--L>=0;)C=q[L],C.z+=g,C.m+=g,g+=C.s+(A+=C.c)}function nie(h,g,A){return h.a.parent===g.parent?h.a:A}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=nA,A=[1,1],q=!1;function L(C,I){var F=h.call(this,C,I),H=F[0],J,$=0;_o(H,function(ae){var he=ae.children;he&&he.length?(ae.x=oie(he),ae.y=iie(he)):(ae.x=J?$+=g(ae,J):0,ae.y=0,J=ae)});var ee=iA(H),te=oA(H),we=ee.x-g(ee,te)/2,ke=te.x+g(te,ee)/2;return _o(H,q?function(ae){ae.x=(ae.x-H.x)*A[0],ae.y=(H.y-ae.y)*A[1]}:function(ae){ae.x=(ae.x-we)/(ke-we)*A[0],ae.y=(1-(H.y?ae.y/H.y:1))*A[1]}),F}return L.separation=function(C){return arguments.length?(g=C,L):g},L.size=function(C){return arguments.length?(q=(A=C)==null,L):q?null:A},L.nodeSize=function(C){return arguments.length?(q=(A=C)!=null,L):q?A:null},Ov(L,h)};function iie(h){return 1+e.max(h,function(g){return g.y})}function oie(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function iA(h){var g=h.children;return g&&g.length?iA(g[0]):h}function oA(h){var g=h.children,A;return g&&(A=g.length)?oA(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],q=null,L=O3,C=!1,I,F="squarify",H=.5*(1+Math.sqrt(5));function J(ae,he){for(var ge=-1,Me=ae.length,Se,xe;++ge0;)Me.push(xe=Se[or-1]),Me.area+=xe.area,F!=="squarify"||(ir=te(Me,cr))<=Ye?(Se.pop(),Ye=ir):(Me.area-=Me.pop().area,we(Me,cr,ge,!1),cr=Math.min(ge.dx,ge.dy),Me.length=Me.area=0,Ye=1/0);Me.length&&(we(Me,cr,ge,!0),Me.length=Me.area=0),he.forEach($)}}function ee(ae){var he=ae.children;if(he&&he.length){var ge=L(ae),Me=he.slice(),Se,xe=[];for(J(Me,ge.dx*ge.dy/ae.value),xe.area=0;Se=Me.pop();)xe.push(Se),xe.area+=Se.area,Se.z!=null&&(we(xe,Se.z?ge.dx:ge.dy,ge,!Me.length),xe.length=xe.area=0);he.forEach(ee)}}function te(ae,he){for(var ge=ae.area,Me,Se=0,xe=1/0,Ye=-1,ir=ae.length;++YeSe&&(Se=Me));return ge*=ge,he*=he,ge?Math.max(he*Se*H/ge,ge/(he*xe*H)):1/0}function we(ae,he,ge,Me){var Se=-1,xe=ae.length,Ye=ge.x,ir=ge.y,cr=he?g(ae.area/he):0,or;if(he==ge.dx){for((Me||cr>ge.dy)&&(cr=ge.dy);++Sege.dx)&&(cr=ge.dx);++Se1);return h+g*q*Math.sqrt(-2*Math.log(C)/C)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,A=0;A2?uie:lie,J=q?Lne:qne;return L=H(h,g,J,A),C=H(g,h,J,Bs),F}function F(H){return L(H)}return F.invert=function(H){return C(H)},F.domain=function(H){return arguments.length?(h=H.map(Number),I()):h},F.range=function(H){return arguments.length?(g=H,I()):g},F.rangeRound=function(H){return F.range(H).interpolate(Y8)},F.clamp=function(H){return arguments.length?(q=H,I()):q},F.interpolate=function(H){return arguments.length?(A=H,I()):A},F.ticks=function(H){return U3(h,H)},F.tickFormat=function(H,J){return d3_scale_linearTickFormat(h,H,J)},F.nice=function(H){return cA(h,H),I()},F.copy=function(){return uA(h,g,A,q)},I()}function fA(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function cA(h,g){return B3(h,sA(H3(h,g)[2])),B3(h,sA(H3(h,g)[2])),h}function H3(h,g){g==null&&(g=10);var A=jd(h),q=A[1]-A[0],L=Math.pow(10,Math.floor(Math.log(q/g)/Math.LN10)),C=g/q*L;return C<=.15?L*=10:C<=.35?L*=5:C<=.75&&(L*=2),A[0]=Math.ceil(A[0]/L)*L,A[1]=Math.floor(A[1]/L)*L+L*.5,A[2]=L,A}function U3(h,g){return e.range.apply(e,H3(h,g))}var fie={s:1,g:1,p:1,r:1,e:1};function vA(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function XLe(h,g){var A=vA(g[2]);return h in fie?Math.abs(A-vA(Math.max(x(g[0]),x(g[1]))))+ +(h!=="e"):A-(h==="%")*2}e.scale.log=function(){return hA(e.scale.linear().domain([0,1]),10,!0,[1,10])};function hA(h,g,A,q){function L(F){return(A?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(g)}function C(F){return A?Math.pow(g,F):-Math.pow(g,-F)}function I(F){return h(L(F))}return I.invert=function(F){return C(h.invert(F))},I.domain=function(F){return arguments.length?(A=F[0]>=0,h.domain((q=F.map(Number)).map(L)),I):q},I.base=function(F){return arguments.length?(g=+F,h.domain(q.map(L)),I):g},I.nice=function(){var F=B3(q.map(L),A?Math:cie);return h.domain(F),q=F.map(C),I},I.ticks=function(){var F=jd(q),H=[],J=F[0],$=F[1],ee=Math.floor(L(J)),te=Math.ceil(L($)),we=g%1?2:g;if(isFinite(te-ee)){if(A){for(;ee0;ke--)H.push(C(ee)*ke);for(ee=0;H[ee]$;te--);H=H.slice(ee,te)}return H},I.copy=function(){return hA(h.copy(),g,A,q)},fA(I,h)}var cie={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return dA(e.scale.linear(),1,[0,1])};function dA(h,g,A){var q=Xd(g),L=Xd(1/g);function C(I){return h(q(I))}return C.invert=function(I){return L(h.invert(I))},C.domain=function(I){return arguments.length?(h.domain((A=I.map(Number)).map(q)),C):A},C.ticks=function(I){return U3(A,I)},C.tickFormat=function(I,F){return d3_scale_linearTickFormat(A,I,F)},C.nice=function(I){return C.domain(cA(A,I))},C.exponent=function(I){return arguments.length?(q=Xd(g=I),L=Xd(1/g),h.domain(A.map(q)),C):g},C.copy=function(){return dA(h.copy(),g,A)},fA(C,h)}function Xd(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return pA([],{t:"range",a:[[]]})};function pA(h,g){var A,q,L;function C(F){return q[((A.get(F)||(g.t==="range"?A.set(F,h.push(F)):NaN))-1)%q.length]}function I(F,H){return e.range(h.length).map(function(J){return F+H*J})}return C.domain=function(F){if(!arguments.length)return h;h=[],A=new b;for(var H=-1,J=F.length,$;++H0?A[C-1]:h[0],Cte?0:1;if($=sr)return H($,ke)+(J?H(J,1-ke):"")+"Z";var ae,he,ge,Me,Se=0,xe=0,Ye,ir,cr,or,dr,pr,Er,mr,kr=[];if((Me=(+I.apply(this,arguments)||0)/2)&&(ge=q===Jd?Math.sqrt(J*J+$*$):+q.apply(this,arguments),ke||(xe*=-1),$&&(xe=wt(ge/$*Math.sin(Me))),J&&(Se=wt(ge/J*Math.sin(Me)))),$){Ye=$*Math.cos(ee+xe),ir=$*Math.sin(ee+xe),cr=$*Math.cos(te-xe),or=$*Math.sin(te-xe);var tt=Math.abs(te-ee-2*xe)<=Le?0:1;if(xe&&$d(Ye,ir,cr,or)===ke^tt){var Qt=(ee+te)/2;Ye=$*Math.cos(Qt),ir=$*Math.sin(Qt),cr=or=null}}else Ye=ir=0;if(J){dr=J*Math.cos(te-Se),pr=J*Math.sin(te-Se),Er=J*Math.cos(ee+Se),mr=J*Math.sin(ee+Se);var mt=Math.abs(ee-te+2*Se)<=Le?0:1;if(Se&&$d(dr,pr,Er,mr)===1-ke^mt){var rr=(ee+te)/2;dr=J*Math.cos(rr),pr=J*Math.sin(rr),Er=mr=null}}else dr=pr=0;if(we>de&&(ae=Math.min(Math.abs($-J)/2,+A.apply(this,arguments)))>.001){he=J<$^ke?0:1;var Dr=ae,Pr=ae;if(we0?0:1}function Kd(h,g,A,q,L){var C=h[0]-g[0],I=h[1]-g[1],F=(L?q:-q)/Math.sqrt(C*C+I*I),H=F*I,J=-F*C,$=h[0]+H,ee=h[1]+J,te=g[0]+H,we=g[1]+J,ke=($+te)/2,ae=(ee+we)/2,he=te-$,ge=we-ee,Me=he*he+ge*ge,Se=A-q,xe=$*we-te*ee,Ye=(ge<0?-1:1)*Math.sqrt(Math.max(0,Se*Se*Me-xe*xe)),ir=(xe*ge-he*Ye)/Me,cr=(-xe*he-ge*Ye)/Me,or=(xe*ge+he*Ye)/Me,dr=(-xe*he+ge*Ye)/Me,pr=ir-ke,Er=cr-ae,mr=or-ke,kr=dr-ae;return pr*pr+Er*Er>mr*mr+kr*kr&&(ir=or,cr=dr),[[ir-H,cr-J],[ir*A/Se,cr*A/Se]]}function wA(){return!0}function TA(h){var g=hf,A=Rv,q=wA,L=Wi,C=L.key,I=.7;function F(H){var J=[],$=[],ee=-1,te=H.length,we,ke=Br(g),ae=Br(A);function he(){J.push("M",L(h($),I))}for(;++ee1?h.join("L"):h+"Z"}function AA(h){return h.join("L")+"Z"}function xie(h){for(var g=0,A=h.length,q=h[0],L=[q[0],",",q[1]];++g1&&L.push("H",q[0]),L.join("")}function Y3(h){for(var g=0,A=h.length,q=h[0],L=[q[0],",",q[1]];++g1){F=g[1],C=h[H],H++,q+="C"+(L[0]+I[0])+","+(L[1]+I[1])+","+(C[0]-F[0])+","+(C[1]-F[1])+","+C[0]+","+C[1];for(var J=2;J9&&(C=A*3/Math.sqrt(C),I[F]=C*q,I[F+1]=C*L));for(F=-1;++F<=H;)C=(h[Math.min(H,F+1)][0]-h[Math.max(0,F-1)][0])/(6*(1+I[F]*I[F])),g.push([C||0,I[F]*C||0]);return g}function Lie(h){return h.length<3?Wi(h):h[0]+Qd(h,qie(h))}e.svg.line.radial=function(){var h=TA(qA);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function qA(h){for(var g,A=-1,q=h.length,L,C;++ALe)+",1 "+ee}function J($,ee,te,we){return"Q 0,0 "+we}return C.radius=function($){return arguments.length?(A=Br($),C):A},C.source=function($){return arguments.length?(h=Br($),C):h},C.target=function($){return arguments.length?(g=Br($),C):g},C.startAngle=function($){return arguments.length?(q=Br($),C):q},C.endAngle=function($){return arguments.length?(L=Br($),C):L},C};function Cie(h){return h.radius}e.svg.diagonal=function(){var h=CA,g=EA,A=DA;function q(L,C){var I=h.call(this,L,C),F=g.call(this,L,C),H=(I.y+F.y)/2,J=[I,{x:I.x,y:H},{x:F.x,y:H},F];return J=J.map(A),"M"+J[0]+"C"+J[1]+" "+J[2]+" "+J[3]}return q.source=function(L){return arguments.length?(h=Br(L),q):h},q.target=function(L){return arguments.length?(g=Br(L),q):g},q.projection=function(L){return arguments.length?(A=L,q):A},q};function DA(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=DA,A=h.projection;return h.projection=function(q){return arguments.length?A(Eie(g=q)):g},h};function Eie(h){return function(){var g=h.apply(this,arguments),A=g[0],q=g[1]-nr;return[A*Math.cos(q),A*Math.sin(q)]}}e.svg.symbol=function(){var h=Rie,g=Die;function A(q,L){return(PA.get(h.call(this,q,L))||RA)(g.call(this,q,L))}return A.type=function(q){return arguments.length?(h=Br(q),A):h},A.size=function(q){return arguments.length?(g=Br(q),A):g},A};function Die(){return 64}function Rie(){return"circle"}function RA(h){var g=Math.sqrt(h/Le);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var PA=e.map({circle:RA,cross:function(h){var g=Math.sqrt(h/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(h){var g=Math.sqrt(h/(2*FA)),A=g*FA;return"M0,"+-g+"L"+A+",0 0,"+g+" "+-A+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/ep),A=g*ep/2;return"M0,"+A+"L"+g+","+-A+" "+-g+","+-A+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/ep),A=g*ep/2;return"M0,"+-A+"L"+g+","+A+" "+-g+","+A+"Z"}});e.svg.symbolTypes=PA.keys();var ep=Math.sqrt(3),FA=Math.tan(30*Mr);ve.transition=function(h){for(var g=Hs||++zA,A=J3(h),q=[],L,C,I=tp||{time:Date.now(),ease:cne,delay:0,duration:250},F=-1,H=this.length;++F0;)ee[--Me].call(h,ge);if(he>=1)return I.event&&I.event.end.call(h,h.__data__,g),--C.count?delete C[q]:delete h[A],1}I||(F=L.time,H=Bd(te,0,F),I=C[q]={tween:new b,time:F,timer:H,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++C.count)}e.svg.axis=function(){var h=e.scale.linear(),g=IA,A=6,q=6,L=3,C=[10],I=null,F;function H(J){J.each(function(){var $=e.select(this),ee=this.__chart__||h,te=this.__chart__=h.copy(),we=I==null?te.ticks?te.ticks.apply(te,C):te.domain():I,ke=F==null?te.tickFormat?te.tickFormat.apply(te,C):B:F,ae=$.selectAll(".tick").data(we,te),he=ae.enter().insert("g",".domain").attr("class","tick").style("opacity",de),ge=e.transition(ae.exit()).style("opacity",de).remove(),Me=e.transition(ae.order()).style("opacity",1),Se=Math.max(A,0)+L,xe,Ye=Zd(te),ir=$.selectAll(".domain").data([0]),cr=(ir.enter().append("path").attr("class","domain"),e.transition(ir));he.append("line"),he.append("text");var or=he.select("line"),dr=Me.select("line"),pr=ae.select("text").text(ke),Er=he.select("text"),mr=Me.select("text"),kr=g==="top"||g==="left"?-1:1,tt,Qt,mt,rr;if(g==="bottom"||g==="top"?(xe=Nie,tt="x",mt="y",Qt="x2",rr="y2",pr.attr("dy",kr<0?"0em":".71em").style("text-anchor","middle"),cr.attr("d","M"+Ye[0]+","+kr*q+"V0H"+Ye[1]+"V"+kr*q)):(xe=zie,tt="y",mt="x",Qt="y2",rr="x2",pr.attr("dy",".32em").style("text-anchor",kr<0?"end":"start"),cr.attr("d","M"+kr*q+","+Ye[0]+"H0V"+Ye[1]+"H"+kr*q)),or.attr(rr,kr*A),Er.attr(mt,kr*Se),dr.attr(Qt,0).attr(rr,kr*A),mr.attr(tt,0).attr(mt,kr*Se),te.rangeBand){var Dr=te,Pr=Dr.rangeBand()/2;ee=te=function(at){return Dr(at)+Pr}}else ee.rangeBand?ee=te:ge.call(xe,te,ee);he.call(xe,ee,te),Me.call(xe,te,te)})}return H.scale=function(J){return arguments.length?(h=J,H):h},H.orient=function(J){return arguments.length?(g=J in Fie?J+"":IA,H):g},H.ticks=function(){return arguments.length?(C=t(arguments),H):C},H.tickValues=function(J){return arguments.length?(I=J,H):I},H.tickFormat=function(J){return arguments.length?(F=J,H):F},H.tickSize=function(J){var $=arguments.length;return $?(A=+J,q=+arguments[$-1],H):A},H.innerTickSize=function(J){return arguments.length?(A=+J,H):A},H.outerTickSize=function(J){return arguments.length?(q=+J,H):q},H.tickPadding=function(J){return arguments.length?(L=+J,H):L},H.tickSubdivide=function(){return arguments.length&&H},H};var IA="bottom",Fie={top:1,right:1,bottom:1,left:1};function Nie(h,g,A){h.attr("transform",function(q){var L=g(q);return"translate("+(isFinite(L)?L:A(q))+",0)"})}function zie(h,g,A){h.attr("transform",function(q){var L=g(q);return"translate(0,"+(isFinite(L)?L:A(q))+")"})}e.svg.brush=function(){var h=oe($,"brushstart","brush","brushend"),g=null,A=null,q=[0,0],L=[0,0],C,I,F=!0,H=!0,J=$3[0];function $(ae){ae.each(function(){var he=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",ke).on("touchstart.brush",ke),ge=he.selectAll(".background").data([0]);ge.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),he.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Me=he.selectAll(".resize").data(J,B);Me.exit().remove(),Me.enter().append("g").attr("class",function(ir){return"resize "+ir}).style("cursor",function(ir){return Iie[ir]}).append("rect").attr("x",function(ir){return/[ew]$/.test(ir)?-3:null}).attr("y",function(ir){return/^[ns]/.test(ir)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Me.style("display",$.empty()?"none":null);var Se=e.transition(he),xe=e.transition(ge),Ye;g&&(Ye=Zd(g),xe.attr("x",Ye[0]).attr("width",Ye[1]-Ye[0]),te(Se)),A&&(Ye=Zd(A),xe.attr("y",Ye[0]).attr("height",Ye[1]-Ye[0]),we(Se)),ee(Se)})}$.event=function(ae){ae.each(function(){var he=h.of(this,arguments),ge={x:q,y:L,i:C,j:I},Me=this.__chart__||ge;this.__chart__=ge,Hs?e.select(this).transition().each("start.brush",function(){C=Me.i,I=Me.j,q=Me.x,L=Me.y,he({type:"brushstart"})}).tween("brush:brush",function(){var Se=Wd(q,ge.x),xe=Wd(L,ge.y);return C=I=null,function(Ye){q=ge.x=Se(Ye),L=ge.y=xe(Ye),he({type:"brush",mode:"resize"})}}).each("end.brush",function(){C=ge.i,I=ge.j,he({type:"brush",mode:"resize"}),he({type:"brushend"})}):(he({type:"brushstart"}),he({type:"brush",mode:"resize"}),he({type:"brushend"}))})};function ee(ae){ae.selectAll(".resize").attr("transform",function(he){return"translate("+q[+/e$/.test(he)]+","+L[+/^s/.test(he)]+")"})}function te(ae){ae.select(".extent").attr("x",q[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",q[1]-q[0])}function we(ae){ae.select(".extent").attr("y",L[0]),ae.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function ke(){var ae=this,he=e.select(e.event.target),ge=h.of(ae,arguments),Me=e.select(ae),Se=he.datum(),xe=!/^(n|s)$/.test(Se)&&g,Ye=!/^(e|w)$/.test(Se)&&A,ir=he.classed("extent"),cr=hr(ae),or,dr=e.mouse(ae),pr,Er=e.select(i(ae)).on("keydown.brush",tt).on("keyup.brush",Qt);if(e.event.changedTouches?Er.on("touchmove.brush",mt).on("touchend.brush",Dr):Er.on("mousemove.brush",mt).on("mouseup.brush",Dr),Me.interrupt().selectAll("*").interrupt(),ir)dr[0]=q[0]-dr[0],dr[1]=L[0]-dr[1];else if(Se){var mr=+/w$/.test(Se),kr=+/^n/.test(Se);pr=[q[1-mr]-dr[0],L[1-kr]-dr[1]],dr[0]=q[mr],dr[1]=L[kr]}else e.event.altKey&&(or=dr.slice());Me.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",he.style("cursor")),ge({type:"brushstart"}),mt();function tt(){e.event.keyCode==32&&(ir||(or=null,dr[0]-=q[1],dr[1]-=L[1],ir=2),re())}function Qt(){e.event.keyCode==32&&ir==2&&(dr[0]+=q[1],dr[1]+=L[1],ir=0,re())}function mt(){var Pr=e.mouse(ae),at=!1;pr&&(Pr[0]+=pr[0],Pr[1]+=pr[1]),ir||(e.event.altKey?(or||(or=[(q[0]+q[1])/2,(L[0]+L[1])/2]),dr[0]=q[+(Pr[0]{(function(e,r){typeof sp=="object"&&typeof GA!="undefined"?r(sp):(e=e||self,r(e.d3=e.d3||{}))})(sp,function(e){"use strict";var r=new Date,t=new Date;function a(se,Ae,je,ur){function lr(ue){return se(ue=arguments.length===0?new Date:new Date(+ue)),ue}return lr.floor=function(ue){return se(ue=new Date(+ue)),ue},lr.ceil=function(ue){return se(ue=new Date(ue-1)),Ae(ue,1),se(ue),ue},lr.round=function(ue){var qe=lr(ue),Oe=lr.ceil(ue);return ue-qe0))return Ze;do Ze.push(Ue=new Date(+ue)),Ae(ue,Oe),se(ue);while(Ue=qe)for(;se(qe),!ue(qe);)qe.setTime(qe-1)},function(qe,Oe){if(qe>=qe)if(Oe<0)for(;++Oe<=0;)for(;Ae(qe,-1),!ue(qe););else for(;--Oe>=0;)for(;Ae(qe,1),!ue(qe););})},je&&(lr.count=function(ue,qe){return r.setTime(+ue),t.setTime(+qe),se(r),se(t),Math.floor(je(r,t))},lr.every=function(ue){return ue=Math.floor(ue),!isFinite(ue)||!(ue>0)?null:ue>1?lr.filter(ur?function(qe){return ur(qe)%ue===0}:function(qe){return lr.count(0,qe)%ue===0}):lr}),lr}var n=a(function(){},function(se,Ae){se.setTime(+se+Ae)},function(se,Ae){return Ae-se});n.every=function(se){return se=Math.floor(se),!isFinite(se)||!(se>0)?null:se>1?a(function(Ae){Ae.setTime(Math.floor(Ae/se)*se)},function(Ae,je){Ae.setTime(+Ae+je*se)},function(Ae,je){return(je-Ae)/se}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(se){se.setTime(se-se.getMilliseconds())},function(se,Ae){se.setTime(+se+Ae*o)},function(se,Ae){return(Ae-se)/o},function(se){return se.getUTCSeconds()}),v=c.range,d=a(function(se){se.setTime(se-se.getMilliseconds()-se.getSeconds()*o)},function(se,Ae){se.setTime(+se+Ae*l)},function(se,Ae){return(Ae-se)/l},function(se){return se.getMinutes()}),p=d.range,m=a(function(se){se.setTime(se-se.getMilliseconds()-se.getSeconds()*o-se.getMinutes()*l)},function(se,Ae){se.setTime(+se+Ae*s)},function(se,Ae){return(Ae-se)/s},function(se){return se.getHours()}),y=m.range,x=a(function(se){se.setHours(0,0,0,0)},function(se,Ae){se.setDate(se.getDate()+Ae)},function(se,Ae){return(Ae-se-(Ae.getTimezoneOffset()-se.getTimezoneOffset())*l)/u},function(se){return se.getDate()-1}),w=x.range;function _(se){return a(function(Ae){Ae.setDate(Ae.getDate()-(Ae.getDay()+7-se)%7),Ae.setHours(0,0,0,0)},function(Ae,je){Ae.setDate(Ae.getDate()+je*7)},function(Ae,je){return(je-Ae-(je.getTimezoneOffset()-Ae.getTimezoneOffset())*l)/f})}var b=_(0),T=_(1),k=_(2),M=_(3),S=_(4),E=_(5),D=_(6),P=b.range,R=T.range,z=k.range,O=M.range,B=S.range,V=E.range,G=D.range,U=a(function(se){se.setDate(1),se.setHours(0,0,0,0)},function(se,Ae){se.setMonth(se.getMonth()+Ae)},function(se,Ae){return Ae.getMonth()-se.getMonth()+(Ae.getFullYear()-se.getFullYear())*12},function(se){return se.getMonth()}),Y=U.range,X=a(function(se){se.setMonth(0,1),se.setHours(0,0,0,0)},function(se,Ae){se.setFullYear(se.getFullYear()+Ae)},function(se,Ae){return Ae.getFullYear()-se.getFullYear()},function(se){return se.getFullYear()});X.every=function(se){return!isFinite(se=Math.floor(se))||!(se>0)?null:a(function(Ae){Ae.setFullYear(Math.floor(Ae.getFullYear()/se)*se),Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,je){Ae.setFullYear(Ae.getFullYear()+je*se)})};var Z=X.range,re=a(function(se){se.setUTCSeconds(0,0)},function(se,Ae){se.setTime(+se+Ae*l)},function(se,Ae){return(Ae-se)/l},function(se){return se.getUTCMinutes()}),ce=re.range,oe=a(function(se){se.setUTCMinutes(0,0,0)},function(se,Ae){se.setTime(+se+Ae*s)},function(se,Ae){return(Ae-se)/s},function(se){return se.getUTCHours()}),fe=oe.range,K=a(function(se){se.setUTCHours(0,0,0,0)},function(se,Ae){se.setUTCDate(se.getUTCDate()+Ae)},function(se,Ae){return(Ae-se)/u},function(se){return se.getUTCDate()-1}),Te=K.range;function le(se){return a(function(Ae){Ae.setUTCDate(Ae.getUTCDate()-(Ae.getUTCDay()+7-se)%7),Ae.setUTCHours(0,0,0,0)},function(Ae,je){Ae.setUTCDate(Ae.getUTCDate()+je*7)},function(Ae,je){return(je-Ae)/f})}var pe=le(0),ie=le(1),ve=le(2),W=le(3),Q=le(4),j=le(5),ye=le(6),_e=pe.range,me=ie.range,Pe=ve.range,Ne=W.range,Re=Q.range,ze=j.range,Ge=ye.range,He=a(function(se){se.setUTCDate(1),se.setUTCHours(0,0,0,0)},function(se,Ae){se.setUTCMonth(se.getUTCMonth()+Ae)},function(se,Ae){return Ae.getUTCMonth()-se.getUTCMonth()+(Ae.getUTCFullYear()-se.getUTCFullYear())*12},function(se){return se.getUTCMonth()}),De=He.range,Ie=a(function(se){se.setUTCMonth(0,1),se.setUTCHours(0,0,0,0)},function(se,Ae){se.setUTCFullYear(se.getUTCFullYear()+Ae)},function(se,Ae){return Ae.getUTCFullYear()-se.getUTCFullYear()},function(se){return se.getUTCFullYear()});Ie.every=function(se){return!isFinite(se=Math.floor(se))||!(se>0)?null:a(function(Ae){Ae.setUTCFullYear(Math.floor(Ae.getUTCFullYear()/se)*se),Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,je){Ae.setUTCFullYear(Ae.getUTCFullYear()+je*se)})};var Be=Ie.range;e.timeDay=x,e.timeDays=w,e.timeFriday=E,e.timeFridays=V,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=T,e.timeMondays=R,e.timeMonth=U,e.timeMonths=Y,e.timeSaturday=D,e.timeSaturdays=G,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=b,e.timeSundays=P,e.timeThursday=S,e.timeThursdays=B,e.timeTuesday=k,e.timeTuesdays=z,e.timeWednesday=M,e.timeWednesdays=O,e.timeWeek=b,e.timeWeeks=P,e.timeYear=X,e.timeYears=Z,e.utcDay=K,e.utcDays=Te,e.utcFriday=j,e.utcFridays=ze,e.utcHour=oe,e.utcHours=fe,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=re,e.utcMinutes=ce,e.utcMonday=ie,e.utcMondays=me,e.utcMonth=He,e.utcMonths=De,e.utcSaturday=ye,e.utcSaturdays=Ge,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=pe,e.utcSundays=_e,e.utcThursday=Q,e.utcThursdays=Re,e.utcTuesday=ve,e.utcTuesdays=Pe,e.utcWednesday=W,e.utcWednesdays=Ne,e.utcWeek=pe,e.utcWeeks=_e,e.utcYear=Ie,e.utcYears=Be,Object.defineProperty(e,"__esModule",{value:!0})})});var xf=N((up,YA)=>{(function(e,r){typeof up=="object"&&typeof YA!="undefined"?r(up,K3()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(up,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var de=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return de.setFullYear(ne.y),de}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var de=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return de.setUTCFullYear(ne.y),de}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,de,Ee){return{y:ne,m:de,d:Ee,H:0,M:0,S:0,L:0}}function i(ne){var de=ne.dateTime,Ee=ne.date,Le=ne.time,ar=ne.periods,sr=ne.days,nr=ne.shortDays,Mr=ne.months,Or=ne.shortMonths,Zr=v(ar),Vr=d(ar),Yt=v(sr),wt=d(sr),Tt=v(nr),pt=d(nr),Xt=v(Mr),Jt=d(Mr),It=v(Or),za=d(Or),br={a:Ko,A:Qo,b:vt,B:Tn,c:null,d:U,e:U,f:ce,H:Y,I:X,j:Z,L:re,m:oe,M:fe,p:Ft,q:zs,Q:qe,s:Oe,S:K,u:Te,U:le,V:pe,w:ie,W:ve,x:null,X:null,y:W,Y:Q,Z:j,"%":ue},yt={a:pn,A:Gi,b:Vt,B:Yi,c:null,d:ye,e:ye,f:Re,H:_e,I:me,j:Pe,L:Ne,m:ze,M:Ge,p:Rl,q:Pl,Q:qe,s:Oe,S:He,u:De,U:Ie,V:Be,w:se,W:Ae,x:null,X:null,y:je,Y:ur,Z:lr,"%":ue},Nr={a:xa,A:$t,b:tn,B:wn,c:Kt,d:S,e:S,f:O,H:D,I:D,j:E,L:z,m:M,M:P,p:ct,q:k,Q:V,s:G,S:R,u:m,U:y,V:x,w:p,W:w,x:ft,X:_a,y:b,Y:_,Z:T,"%":B};br.x=ut(Ee,br),br.X=ut(Le,br),br.c=ut(de,br),yt.x=ut(Ee,yt),yt.X=ut(Le,yt),yt.c=ut(de,yt);function ut(yr,$r){return function(ht){var fr=[],Ia=-1,kt=0,Oa=yr.length,Br,Vi,Is;for(ht instanceof Date||(ht=new Date(+ht));++Ia53)return null;"w"in fr||(fr.w=1),"Z"in fr?(kt=a(n(fr.y,0,1)),Oa=kt.getUTCDay(),kt=Oa>4||Oa===0?r.utcMonday.ceil(kt):r.utcMonday(kt),kt=r.utcDay.offset(kt,(fr.V-1)*7),fr.y=kt.getUTCFullYear(),fr.m=kt.getUTCMonth(),fr.d=kt.getUTCDate()+(fr.w+6)%7):(kt=t(n(fr.y,0,1)),Oa=kt.getDay(),kt=Oa>4||Oa===0?r.timeMonday.ceil(kt):r.timeMonday(kt),kt=r.timeDay.offset(kt,(fr.V-1)*7),fr.y=kt.getFullYear(),fr.m=kt.getMonth(),fr.d=kt.getDate()+(fr.w+6)%7)}else("W"in fr||"U"in fr)&&("w"in fr||(fr.w="u"in fr?fr.u%7:"W"in fr?1:0),Oa="Z"in fr?a(n(fr.y,0,1)).getUTCDay():t(n(fr.y,0,1)).getDay(),fr.m=0,fr.d="W"in fr?(fr.w+6)%7+fr.W*7-(Oa+5)%7:fr.w+fr.U*7-(Oa+6)%7);return"Z"in fr?(fr.H+=fr.Z/100|0,fr.M+=fr.Z%100,a(fr)):t(fr)}}function Qr(yr,$r,ht,fr){for(var Ia=0,kt=$r.length,Oa=ht.length,Br,Vi;Ia=Oa)return-1;if(Br=$r.charCodeAt(Ia++),Br===37){if(Br=$r.charAt(Ia++),Vi=Nr[Br in o?$r.charAt(Ia++):Br],!Vi||(fr=Vi(yr,ht,fr))<0)return-1}else if(Br!=ht.charCodeAt(fr++))return-1}return fr}function ct(yr,$r,ht){var fr=Zr.exec($r.slice(ht));return fr?(yr.p=Vr[fr[0].toLowerCase()],ht+fr[0].length):-1}function xa(yr,$r,ht){var fr=Tt.exec($r.slice(ht));return fr?(yr.w=pt[fr[0].toLowerCase()],ht+fr[0].length):-1}function $t(yr,$r,ht){var fr=Yt.exec($r.slice(ht));return fr?(yr.w=wt[fr[0].toLowerCase()],ht+fr[0].length):-1}function tn(yr,$r,ht){var fr=It.exec($r.slice(ht));return fr?(yr.m=za[fr[0].toLowerCase()],ht+fr[0].length):-1}function wn(yr,$r,ht){var fr=Xt.exec($r.slice(ht));return fr?(yr.m=Jt[fr[0].toLowerCase()],ht+fr[0].length):-1}function Kt(yr,$r,ht){return Qr(yr,de,$r,ht)}function ft(yr,$r,ht){return Qr(yr,Ee,$r,ht)}function _a(yr,$r,ht){return Qr(yr,Le,$r,ht)}function Ko(yr){return nr[yr.getDay()]}function Qo(yr){return sr[yr.getDay()]}function vt(yr){return Or[yr.getMonth()]}function Tn(yr){return Mr[yr.getMonth()]}function Ft(yr){return ar[+(yr.getHours()>=12)]}function zs(yr){return 1+~~(yr.getMonth()/3)}function pn(yr){return nr[yr.getUTCDay()]}function Gi(yr){return sr[yr.getUTCDay()]}function Vt(yr){return Or[yr.getUTCMonth()]}function Yi(yr){return Mr[yr.getUTCMonth()]}function Rl(yr){return ar[+(yr.getUTCHours()>=12)]}function Pl(yr){return 1+~~(yr.getUTCMonth()/3)}return{format:function(yr){var $r=ut(yr+="",br);return $r.toString=function(){return yr},$r},parse:function(yr){var $r=Pt(yr+="",!1);return $r.toString=function(){return yr},$r},utcFormat:function(yr){var $r=ut(yr+="",yt);return $r.toString=function(){return yr},$r},utcParse:function(yr){var $r=Pt(yr+="",!0);return $r.toString=function(){return yr},$r}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,de,Ee){var Le=ne<0?"-":"",ar=(Le?-ne:ne)+"",sr=ar.length;return Le+(sr68?1900:2e3),Ee+Le[0].length):-1}function T(ne,de,Ee){var Le=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(de.slice(Ee,Ee+6));return Le?(ne.Z=Le[1]?0:-(Le[2]+(Le[3]||"00")),Ee+Le[0].length):-1}function k(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+1));return Le?(ne.q=Le[0]*3-3,Ee+Le[0].length):-1}function M(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+2));return Le?(ne.m=Le[0]-1,Ee+Le[0].length):-1}function S(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+2));return Le?(ne.d=+Le[0],Ee+Le[0].length):-1}function E(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+3));return Le?(ne.m=0,ne.d=+Le[0],Ee+Le[0].length):-1}function D(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+2));return Le?(ne.H=+Le[0],Ee+Le[0].length):-1}function P(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+2));return Le?(ne.M=+Le[0],Ee+Le[0].length):-1}function R(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+2));return Le?(ne.S=+Le[0],Ee+Le[0].length):-1}function z(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+3));return Le?(ne.L=+Le[0],Ee+Le[0].length):-1}function O(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+6));return Le?(ne.L=Math.floor(Le[0]/1e3),Ee+Le[0].length):-1}function B(ne,de,Ee){var Le=s.exec(de.slice(Ee,Ee+1));return Le?Ee+Le[0].length:-1}function V(ne,de,Ee){var Le=l.exec(de.slice(Ee));return Le?(ne.Q=+Le[0],Ee+Le[0].length):-1}function G(ne,de,Ee){var Le=l.exec(de.slice(Ee));return Le?(ne.s=+Le[0],Ee+Le[0].length):-1}function U(ne,de){return f(ne.getDate(),de,2)}function Y(ne,de){return f(ne.getHours(),de,2)}function X(ne,de){return f(ne.getHours()%12||12,de,2)}function Z(ne,de){return f(1+r.timeDay.count(r.timeYear(ne),ne),de,3)}function re(ne,de){return f(ne.getMilliseconds(),de,3)}function ce(ne,de){return re(ne,de)+"000"}function oe(ne,de){return f(ne.getMonth()+1,de,2)}function fe(ne,de){return f(ne.getMinutes(),de,2)}function K(ne,de){return f(ne.getSeconds(),de,2)}function Te(ne){var de=ne.getDay();return de===0?7:de}function le(ne,de){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),de,2)}function pe(ne,de){var Ee=ne.getDay();return ne=Ee>=4||Ee===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),de,2)}function ie(ne){return ne.getDay()}function ve(ne,de){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),de,2)}function W(ne,de){return f(ne.getFullYear()%100,de,2)}function Q(ne,de){return f(ne.getFullYear()%1e4,de,4)}function j(ne){var de=ne.getTimezoneOffset();return(de>0?"-":(de*=-1,"+"))+f(de/60|0,"0",2)+f(de%60,"0",2)}function ye(ne,de){return f(ne.getUTCDate(),de,2)}function _e(ne,de){return f(ne.getUTCHours(),de,2)}function me(ne,de){return f(ne.getUTCHours()%12||12,de,2)}function Pe(ne,de){return f(1+r.utcDay.count(r.utcYear(ne),ne),de,3)}function Ne(ne,de){return f(ne.getUTCMilliseconds(),de,3)}function Re(ne,de){return Ne(ne,de)+"000"}function ze(ne,de){return f(ne.getUTCMonth()+1,de,2)}function Ge(ne,de){return f(ne.getUTCMinutes(),de,2)}function He(ne,de){return f(ne.getUTCSeconds(),de,2)}function De(ne){var de=ne.getUTCDay();return de===0?7:de}function Ie(ne,de){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),de,2)}function Be(ne,de){var Ee=ne.getUTCDay();return ne=Ee>=4||Ee===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),de,2)}function se(ne){return ne.getUTCDay()}function Ae(ne,de){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),de,2)}function je(ne,de){return f(ne.getUTCFullYear()%100,de,2)}function ur(ne,de){return f(ne.getUTCFullYear()%1e4,de,4)}function lr(){return"+0000"}function ue(){return"%"}function qe(ne){return+ne}function Oe(ne){return Math.floor(+ne/1e3)}var Ze;Ue({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Ue(ne){return Ze=i(ne),e.timeFormat=Ze.format,e.timeParse=Ze.parse,e.utcFormat=Ze.utcFormat,e.utcParse=Ze.utcParse,Ze}var Xe="%Y-%m-%dT%H:%M:%S.%LZ";function Qe(ne){return ne.toISOString()}var hr=Date.prototype.toISOString?Qe:e.utcFormat(Xe);function $e(ne){var de=new Date(ne);return isNaN(de)?null:de}var Fe=+new Date("2000-01-01T00:00:00.000Z")?$e:e.utcParse(Xe);e.isoFormat=hr,e.isoParse=Fe,e.timeFormatDefaultLocale=Ue,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Q3=N((fp,VA)=>{(function(e,r){typeof fp=="object"&&typeof VA!="undefined"?r(fp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(fp,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,S){if((E=(M=S?M.toExponential(S-1):M.toExponential()).indexOf("e"))<0)return null;var E,D=M.slice(0,E);return[D.length>1?D[0]+D.slice(2):D,+M.slice(E+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,S){return function(E,D){for(var P=E.length,R=[],z=0,O=M[0],B=0;P>0&&O>0&&(B+O+1>D&&(O=Math.max(1,D-B)),R.push(E.substring(P-=O,P+O)),!((B+=O+1)>D));)O=M[z=(z+1)%M.length];return R.reverse().join(S)}}function i(M){return function(S){return S.replace(/[0-9]/g,function(E){return M[+E]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(S=o.exec(M)))throw new Error("invalid format: "+M);var S;return new s({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var S=M.length,E=1,D=-1,P;E0&&(D=0);break}return D>0?M.slice(0,D)+M.slice(P+1):M}var f;function c(M,S){var E=t(M,S);if(!E)return M+"";var D=E[0],P=E[1],R=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,z=D.length;return R===z?D:R>z?D+new Array(R-z+1).join("0"):R>0?D.slice(0,R)+"."+D.slice(R):"0."+new Array(1-R).join("0")+t(M,Math.max(0,S+R-1))[0]}function v(M,S){var E=t(M,S);if(!E)return M+"";var D=E[0],P=E[1];return P<0?"0."+new Array(-P).join("0")+D:D.length>P+1?D.slice(0,P+1)+"."+D.slice(P+1):D+new Array(P-D.length+2).join("0")}var d={"%":function(M,S){return(M*100).toFixed(S)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,S){return M.toExponential(S)},f:function(M,S){return M.toFixed(S)},g:function(M,S){return M.toPrecision(S)},o:function(M){return Math.round(M).toString(8)},p:function(M,S){return v(M*100,S)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function x(M){var S=M.grouping===void 0||M.thousands===void 0?p:n(m.call(M.grouping,Number),M.thousands+""),E=M.currency===void 0?"":M.currency[0]+"",D=M.currency===void 0?"":M.currency[1]+"",P=M.decimal===void 0?".":M.decimal+"",R=M.numerals===void 0?p:i(m.call(M.numerals,String)),z=M.percent===void 0?"%":M.percent+"",O=M.minus===void 0?"-":M.minus+"",B=M.nan===void 0?"NaN":M.nan+"";function V(U){U=l(U);var Y=U.fill,X=U.align,Z=U.sign,re=U.symbol,ce=U.zero,oe=U.width,fe=U.comma,K=U.precision,Te=U.trim,le=U.type;le==="n"?(fe=!0,le="g"):d[le]||(K===void 0&&(K=12),Te=!0,le="g"),(ce||Y==="0"&&X==="=")&&(ce=!0,Y="0",X="=");var pe=re==="$"?E:re==="#"&&/[boxX]/.test(le)?"0"+le.toLowerCase():"",ie=re==="$"?D:/[%p]/.test(le)?z:"",ve=d[le],W=/[defgprs%]/.test(le);K=K===void 0?6:/[gprs]/.test(le)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K));function Q(j){var ye=pe,_e=ie,me,Pe,Ne;if(le==="c")_e=ve(j)+_e,j="";else{j=+j;var Re=j<0||1/j<0;if(j=isNaN(j)?B:ve(Math.abs(j),K),Te&&(j=u(j)),Re&&+j==0&&Z!=="+"&&(Re=!1),ye=(Re?Z==="("?Z:O:Z==="-"||Z==="("?"":Z)+ye,_e=(le==="s"?y[8+f/3]:"")+_e+(Re&&Z==="("?")":""),W){for(me=-1,Pe=j.length;++meNe||Ne>57){_e=(Ne===46?P+j.slice(me+1):j.slice(me))+_e,j=j.slice(0,me);break}}}fe&&!ce&&(j=S(j,1/0));var ze=ye.length+j.length+_e.length,Ge=ze>1)+ye+j+_e+Ge.slice(ze);break;default:j=Ge+ye+j+_e;break}return R(j)}return Q.toString=function(){return U+""},Q}function G(U,Y){var X=V((U=l(U),U.type="f",U)),Z=Math.max(-8,Math.min(8,Math.floor(a(Y)/3)))*3,re=Math.pow(10,-Z),ce=y[8+Z/3];return function(oe){return X(re*oe)+ce}}return{format:V,formatPrefix:G}}var w;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(M){return w=x(M),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(M){return Math.max(0,-a(Math.abs(M)))}function T(M,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(S)/3)))*3-a(Math.abs(M)))}function k(M,S){return M=Math.abs(M),S=Math.abs(S)-M,Math.max(0,a(S)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=_,e.formatLocale=x,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=T,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var jA=N((QLe,WA)=>{"use strict";WA.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Rr=N((eCe,ZA)=>{"use strict";var Uie=jA();ZA.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Uie(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Nt=N((rCe,XA)=>{"use strict";XA.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var eb=N((cp,JA)=>{(function(e,r){typeof cp=="object"&&typeof JA!="undefined"?r(cp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(cp,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var m=new ArrayBuffer(l),y=new Uint8Array(m);for(u=0;u>4,y[f++]=(v&15)<<4|d>>2,y[f++]=(d&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var zl=N((tCe,$A)=>{"use strict";$A.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Vn=N(Zi=>{"use strict";var Gie=eb().decode,Yie=zl(),rb=Array.isArray,Vie=ArrayBuffer,Wie=DataView;function KA(e){return Vie.isView(e)&&!(e instanceof Wie)}Zi.isTypedArray=KA;function vp(e){return rb(e)||KA(e)}Zi.isArrayOrTypedArray=vp;function jie(e){return!vp(e[0])}Zi.isArray1D=jie;Zi.ensureArray=function(e,r){return rb(e)||(e=[]),e.length=r,e};var Ca={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ca.uint8c=Ca.u1c;Ca.uint8=Ca.u1;Ca.int8=Ca.i1;Ca.uint16=Ca.u2;Ca.int16=Ca.i2;Ca.uint32=Ca.u4;Ca.int32=Ca.i4;Ca.float32=Ca.f4;Ca.float64=Ca.f8;function tb(e){return e.constructor===ArrayBuffer}Zi.isArrayBuffer=tb;Zi.decodeTypedArraySpec=function(e){var r=[],t=Zie(e),a=t.dtype,n=Ca[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;tb(o)||(o=Gie(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var eM=Rr(),nb=Vn().isArrayOrTypedArray;nM.exports=function(r,t){if(eM(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var _f=hp(),Qie=/^\w*$/,eoe=0,iM=1,dp=2,oM=3,Ys=4;lM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=_f(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|dp,c.set(v,null);if(f){for(i=d;i{"use strict";var roe=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,toe=/^[^\.\[\]]+$/;uM.exports=function(e,r){for(;r;){var t=e.match(roe);if(t)e=t[1];else if(e.match(toe))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var pp=N((lCe,cM)=>{"use strict";var aoe=Rr();cM.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return aoe(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var dM=N((sCe,hM)=>{"use strict";var vM=Vn().isArrayOrTypedArray,Uv=zl();hM.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(vM(n)&&vM(i)&&Uv(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function noe(e,r){var t=e%r;return t<0?t+r:t}function ioe(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}pM.exports={mod:noe,modHalf:ioe}});var kn=N((fCe,yp)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(W,Q){if(W=W||"",Q=Q||{},W instanceof s)return W;if(!(this instanceof s))return new s(W,Q);var j=u(W);this._originalInput=W,this._r=j.r,this._g=j.g,this._b=j.b,this._a=j.a,this._roundA=n(100*this._a)/100,this._format=Q.format||j.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=j.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var W=this.toRgb();return(W.r*299+W.g*587+W.b*114)/1e3},getLuminance:function(){var W=this.toRgb(),Q,j,ye,_e,me,Pe;return Q=W.r/255,j=W.g/255,ye=W.b/255,Q<=.03928?_e=Q/12.92:_e=e.pow((Q+.055)/1.055,2.4),j<=.03928?me=j/12.92:me=e.pow((j+.055)/1.055,2.4),ye<=.03928?Pe=ye/12.92:Pe=e.pow((ye+.055)/1.055,2.4),.2126*_e+.7152*me+.0722*Pe},setAlpha:function(W){return this._a=U(W),this._roundA=n(100*this._a)/100,this},toHsv:function(){var W=d(this._r,this._g,this._b);return{h:W.h*360,s:W.s,v:W.v,a:this._a}},toHsvString:function(){var W=d(this._r,this._g,this._b),Q=n(W.h*360),j=n(W.s*100),ye=n(W.v*100);return this._a==1?"hsv("+Q+", "+j+"%, "+ye+"%)":"hsva("+Q+", "+j+"%, "+ye+"%, "+this._roundA+")"},toHsl:function(){var W=c(this._r,this._g,this._b);return{h:W.h*360,s:W.s,l:W.l,a:this._a}},toHslString:function(){var W=c(this._r,this._g,this._b),Q=n(W.h*360),j=n(W.s*100),ye=n(W.l*100);return this._a==1?"hsl("+Q+", "+j+"%, "+ye+"%)":"hsla("+Q+", "+j+"%, "+ye+"%, "+this._roundA+")"},toHex:function(W){return m(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return y(this._r,this._g,this._b,this._a,W)},toHex8String:function(W){return"#"+this.toHex8(W)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(Y(this._r,255)*100)+"%",g:n(Y(this._g,255)*100)+"%",b:n(Y(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(Y(this._r,255)*100)+"%, "+n(Y(this._g,255)*100)+"%, "+n(Y(this._b,255)*100)+"%)":"rgba("+n(Y(this._r,255)*100)+"%, "+n(Y(this._g,255)*100)+"%, "+n(Y(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:V[m(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var Q="#"+x(this._r,this._g,this._b,this._a),j=Q,ye=this._gradientType?"GradientType = 1, ":"";if(W){var _e=s(W);j="#"+x(_e._r,_e._g,_e._b,_e._a)}return"progid:DXImageTransform.Microsoft.gradient("+ye+"startColorstr="+Q+",endColorstr="+j+")"},toString:function(W){var Q=!!W;W=W||this._format;var j=!1,ye=this._a<1&&this._a>=0,_e=!Q&&ye&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return _e?W==="name"&&this._a===0?this.toName():this.toRgbString():(W==="rgb"&&(j=this.toRgbString()),W==="prgb"&&(j=this.toPercentageRgbString()),(W==="hex"||W==="hex6")&&(j=this.toHexString()),W==="hex3"&&(j=this.toHexString(!0)),W==="hex4"&&(j=this.toHex8String(!0)),W==="hex8"&&(j=this.toHex8String()),W==="name"&&(j=this.toName()),W==="hsl"&&(j=this.toHslString()),W==="hsv"&&(j=this.toHsvString()),j||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(W,Q){var j=W.apply(null,[this].concat([].slice.call(Q)));return this._r=j._r,this._g=j._g,this._b=j._b,this.setAlpha(j._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(W,Q){return W.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(P,arguments)}},s.fromRatio=function(W,Q){if(typeof W=="object"){var j={};for(var ye in W)W.hasOwnProperty(ye)&&(ye==="a"?j[ye]=W[ye]:j[ye]=fe(W[ye]));W=j}return s(W,Q)};function u(W){var Q={r:0,g:0,b:0},j=1,ye=null,_e=null,me=null,Pe=!1,Ne=!1;return typeof W=="string"&&(W=ie(W)),typeof W=="object"&&(pe(W.r)&&pe(W.g)&&pe(W.b)?(Q=f(W.r,W.g,W.b),Pe=!0,Ne=String(W.r).substr(-1)==="%"?"prgb":"rgb"):pe(W.h)&&pe(W.s)&&pe(W.v)?(ye=fe(W.s),_e=fe(W.v),Q=p(W.h,ye,_e),Pe=!0,Ne="hsv"):pe(W.h)&&pe(W.s)&&pe(W.l)&&(ye=fe(W.s),me=fe(W.l),Q=v(W.h,ye,me),Pe=!0,Ne="hsl"),W.hasOwnProperty("a")&&(j=W.a)),j=U(j),{ok:Pe,format:W.format||Ne,r:i(255,o(Q.r,0)),g:i(255,o(Q.g,0)),b:i(255,o(Q.b,0)),a:j}}function f(W,Q,j){return{r:Y(W,255)*255,g:Y(Q,255)*255,b:Y(j,255)*255}}function c(W,Q,j){W=Y(W,255),Q=Y(Q,255),j=Y(j,255);var ye=o(W,Q,j),_e=i(W,Q,j),me,Pe,Ne=(ye+_e)/2;if(ye==_e)me=Pe=0;else{var Re=ye-_e;switch(Pe=Ne>.5?Re/(2-ye-_e):Re/(ye+_e),ye){case W:me=(Q-j)/Re+(Q1&&(He-=1),He<1/6?ze+(Ge-ze)*6*He:He<1/2?Ge:He<2/3?ze+(Ge-ze)*(2/3-He)*6:ze}if(Q===0)ye=_e=me=j;else{var Ne=j<.5?j*(1+Q):j+Q-j*Q,Re=2*j-Ne;ye=Pe(Re,Ne,W+1/3),_e=Pe(Re,Ne,W),me=Pe(Re,Ne,W-1/3)}return{r:ye*255,g:_e*255,b:me*255}}function d(W,Q,j){W=Y(W,255),Q=Y(Q,255),j=Y(j,255);var ye=o(W,Q,j),_e=i(W,Q,j),me,Pe,Ne=ye,Re=ye-_e;if(Pe=ye===0?0:Re/ye,ye==_e)me=0;else{switch(ye){case W:me=(Q-j)/Re+(Q>1)+720)%360;--Q;)ye.h=(ye.h+_e)%360,me.push(s(ye));return me}function O(W,Q){Q=Q||6;for(var j=s(W).toHsv(),ye=j.h,_e=j.s,me=j.v,Pe=[],Ne=1/Q;Q--;)Pe.push(s({h:ye,s:_e,v:me})),me=(me+Ne)%1;return Pe}s.mix=function(W,Q,j){j=j===0?0:j||50;var ye=s(W).toRgb(),_e=s(Q).toRgb(),me=j/100,Pe={r:(_e.r-ye.r)*me+ye.r,g:(_e.g-ye.g)*me+ye.g,b:(_e.b-ye.b)*me+ye.b,a:(_e.a-ye.a)*me+ye.a};return s(Pe)},s.readability=function(W,Q){var j=s(W),ye=s(Q);return(e.max(j.getLuminance(),ye.getLuminance())+.05)/(e.min(j.getLuminance(),ye.getLuminance())+.05)},s.isReadable=function(W,Q,j){var ye=s.readability(W,Q),_e,me;switch(me=!1,_e=ve(j),_e.level+_e.size){case"AAsmall":case"AAAlarge":me=ye>=4.5;break;case"AAlarge":me=ye>=3;break;case"AAAsmall":me=ye>=7;break}return me},s.mostReadable=function(W,Q,j){var ye=null,_e=0,me,Pe,Ne,Re;j=j||{},Pe=j.includeFallbackColors,Ne=j.level,Re=j.size;for(var ze=0;ze_e&&(_e=me,ye=s(Q[ze]));return s.isReadable(W,ye,{level:Ne,size:Re})||!Pe?ye:(j.includeFallbackColors=!1,s.mostReadable(W,["#fff","#000"],j))};var B=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},V=s.hexNames=G(B);function G(W){var Q={};for(var j in W)W.hasOwnProperty(j)&&(Q[W[j]]=j);return Q}function U(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function Y(W,Q){re(W)&&(W="100%");var j=ce(W);return W=i(Q,o(0,parseFloat(W))),j&&(W=parseInt(W*Q,10)/100),e.abs(W-Q)<1e-6?1:W%Q/parseFloat(Q)}function X(W){return i(1,o(0,W))}function Z(W){return parseInt(W,16)}function re(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function ce(W){return typeof W=="string"&&W.indexOf("%")!=-1}function oe(W){return W.length==1?"0"+W:""+W}function fe(W){return W<=1&&(W=W*100+"%"),W}function K(W){return e.round(parseFloat(W)*255).toString(16)}function Te(W){return Z(W)/255}var le=function(){var W="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",j="(?:"+Q+")|(?:"+W+")",ye="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",_e="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?";return{CSS_UNIT:new RegExp(j),rgb:new RegExp("rgb"+ye),rgba:new RegExp("rgba"+_e),hsl:new RegExp("hsl"+ye),hsla:new RegExp("hsla"+_e),hsv:new RegExp("hsv"+ye),hsva:new RegExp("hsva"+_e),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function pe(W){return!!le.CSS_UNIT.exec(W)}function ie(W){W=W.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(B[W])W=B[W],Q=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var j;return(j=le.rgb.exec(W))?{r:j[1],g:j[2],b:j[3]}:(j=le.rgba.exec(W))?{r:j[1],g:j[2],b:j[3],a:j[4]}:(j=le.hsl.exec(W))?{h:j[1],s:j[2],l:j[3]}:(j=le.hsla.exec(W))?{h:j[1],s:j[2],l:j[3],a:j[4]}:(j=le.hsv.exec(W))?{h:j[1],s:j[2],v:j[3]}:(j=le.hsva.exec(W))?{h:j[1],s:j[2],v:j[3],a:j[4]}:(j=le.hex8.exec(W))?{r:Z(j[1]),g:Z(j[2]),b:Z(j[3]),a:Te(j[4]),format:Q?"name":"hex8"}:(j=le.hex6.exec(W))?{r:Z(j[1]),g:Z(j[2]),b:Z(j[3]),format:Q?"name":"hex"}:(j=le.hex4.exec(W))?{r:Z(j[1]+""+j[1]),g:Z(j[2]+""+j[2]),b:Z(j[3]+""+j[3]),a:Te(j[4]+""+j[4]),format:Q?"name":"hex8"}:(j=le.hex3.exec(W))?{r:Z(j[1]+""+j[1]),g:Z(j[2]+""+j[2]),b:Z(j[3]+""+j[3]),format:Q?"name":"hex"}:!1}function ve(W){var Q,j;return W=W||{level:"AA",size:"small"},Q=(W.level||"AA").toUpperCase(),j=(W.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),j!=="small"&&j!=="large"&&(j="small"),{level:Q,size:j}}typeof yp!="undefined"&&yp.exports?yp.exports=s:window.tinycolor=s})(Math)});var xt=N(Vv=>{"use strict";var yM=zl(),Gv=Array.isArray;function ooe(e,r){var t,a;for(t=0;t{"use strict";mM.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var Wv=N((hCe,gM)=>{"use strict";gM.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Tf=N((dCe,_M)=>{"use strict";var bM=Wv(),xM=da(),ib=xM({editType:"none"});ib.family.dflt=bM.HOVERFONT;ib.size.dflt=bM.HOVERFONTSIZE;_M.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:ib,grouptitlefont:xM({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var mp=N((pCe,wM)=>{"use strict";var loe=da(),jv=Tf().hoverlabel,Zv=xt().extendFlat;wM.exports={hoverlabel:{bgcolor:Zv({},jv.bgcolor,{arrayOk:!0}),bordercolor:Zv({},jv.bordercolor,{arrayOk:!0}),font:loe({arrayOk:!0,editType:"none"}),align:Zv({},jv.align,{arrayOk:!0}),namelength:Zv({},jv.namelength,{arrayOk:!0}),showarrow:Zv({},jv.showarrow),editType:"none"}}});var mn=N((yCe,TM)=>{"use strict";var soe=da(),uoe=mp();TM.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:soe({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:uoe.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Vs=N((mCe,kM)=>{"use strict";var foe=kn(),gp={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},AM=gp.RdBu;function coe(e,r){if(r||(r=AM),!e)return r;function t(){try{e=gp[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),MM(e)?e:r}function MM(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";Ws.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Ws.defaultLine="#444";Ws.lightLine="#eee";Ws.background="#fff";Ws.borderLine="#BEC8D9";Ws.lightFraction=100*10/11});var Tr=N((bCe,SM)=>{"use strict";var Sn=kn(),hoe=Rr(),doe=Vn().isTypedArray,wa=SM.exports={},bp=si();wa.defaults=bp.defaults;var poe=wa.defaultLine=bp.defaultLine;wa.lightLine=bp.lightLine;var lb=wa.background=bp.background;wa.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};wa.rgb=function(e){return wa.tinyRGB(Sn(e))};wa.opacity=function(e){return e?Sn(e).getAlpha():0};wa.addOpacity=function(e,r){var t=Sn(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};wa.combine=function(e,r){var t=Sn(e).toRgb();if(t.a===1)return Sn(e).toRgbString();var a=Sn(r||lb).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Sn(i).toRgbString()};wa.interpolate=function(e,r,t){var a=Sn(e).toRgb(),n=Sn(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Sn(i).toRgbString()};wa.contrast=function(e,r,t){var a=Sn(e);a.getAlpha()!==1&&(a=Sn(wa.combine(e,lb)));var n=a.isDark()?r?a.lighten(r):lb:t?a.darken(t):poe;return n.toString()};wa.stroke=function(e,r){var t=Sn(r);e.style({stroke:wa.tinyRGB(t),"stroke-opacity":t.getAlpha()})};wa.fill=function(e,r){var t=Sn(r);e.style({fill:wa.tinyRGB(t),"fill-opacity":t.getAlpha()})};wa.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var o=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+o+", "+a[3]+")":"rgb("+o+")"}});var xp=N((xCe,qM)=>{"use strict";qM.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Af=N(LM=>{"use strict";LM.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var RM=N(qn=>{"use strict";var sb=Rr(),CM=kn(),EM=xt().extendFlat,yoe=mn(),moe=Vs(),goe=Tr(),boe=xp().DESELECTDIM,Mf=hp(),DM=Af().counter,xoe=wf().modHalf,To=Vn().isArrayOrTypedArray,Il=Vn().isTypedArraySpec,Ol=Vn().decodeTypedArraySpec;qn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(To(e)?e:Il(e)?Ol(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;aa.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Il(e)&&(e=Ol(e)),e%1||!sb(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Il(e)&&(e=Ol(e)),CM(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return CM(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(moe.get(e,t))}},angle:{coerceFunction:function(e,r,t){Il(e)&&(e=Ol(e)),e==="auto"?r.set("auto"):sb(e)?r.set(xoe(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||DM(t);if(typeof e=="string"&&n.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!DM(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var PM={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},FM={};function NM(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),NM(a,r[t]))}}NM(PM,FM);zM.exports={configAttributes:PM,dfltConfig:FM}});var fb=N((ACe,IM)=>{"use strict";var ub=Sr(),_oe=Rr(),Xv=[];IM.exports=function(e,r){if(Xv.indexOf(e)!==-1)return;Xv.push(e);var t=1e3;_oe(r)?t=r:r==="long"&&(t=3e3);var a=ub.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Xv);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=Xv.indexOf(l);s!==-1&&Xv.splice(s,1),ub.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=ub.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),u=o.split(//g),f=0;f{"use strict";var kf=js().dfltConfig,cb=fb(),vb=OM.exports={};vb.log=function(){var e;if(kf.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};vb.warn=function(){var e;if(kf.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};vb.error=function(){var e;if(kf.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var wp=N((kCe,BM)=>{"use strict";BM.exports=function(){}});var hb=N((SCe,HM)=>{"use strict";HM.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{UM.exports=woe;function woe(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var VM=N((LCe,YM)=>{YM.exports=Toe;function Toe(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var jM=N((CCe,WM)=>{WM.exports=Aoe;function Aoe(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var db=N((ECe,ZM)=>{ZM.exports=Moe;function Moe(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var JM=N((DCe,XM)=>{XM.exports=koe;function koe(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var KM=N((RCe,$M)=>{$M.exports=Soe;function Soe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],x=r[15],w=t*l-a*o,_=t*s-n*o,b=t*u-i*o,T=a*s-n*l,k=a*u-i*l,M=n*u-i*s,S=f*m-c*p,E=f*y-v*p,D=f*x-d*p,P=c*y-v*m,R=c*x-d*m,z=v*x-d*y,O=w*z-_*R+b*P+T*D-k*E+M*S;return O?(O=1/O,e[0]=(l*z-s*R+u*P)*O,e[1]=(n*R-a*z-i*P)*O,e[2]=(m*M-y*k+x*T)*O,e[3]=(v*k-c*M-d*T)*O,e[4]=(s*D-o*z-u*E)*O,e[5]=(t*z-n*D+i*E)*O,e[6]=(y*b-p*M-x*_)*O,e[7]=(f*M-v*b+d*_)*O,e[8]=(o*R-l*D+u*S)*O,e[9]=(a*D-t*R-i*S)*O,e[10]=(p*k-m*b+x*w)*O,e[11]=(c*b-f*k-d*w)*O,e[12]=(l*E-o*P-s*S)*O,e[13]=(t*P-a*E+n*S)*O,e[14]=(m*_-p*T-y*w)*O,e[15]=(f*T-c*_+v*w)*O,e):null}});var e9=N((PCe,QM)=>{QM.exports=qoe;function qoe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],x=r[15];return e[0]=l*(v*x-d*y)-c*(s*x-u*y)+m*(s*d-u*v),e[1]=-(a*(v*x-d*y)-c*(n*x-i*y)+m*(n*d-i*v)),e[2]=a*(s*x-u*y)-l*(n*x-i*y)+m*(n*u-i*s),e[3]=-(a*(s*d-u*v)-l*(n*d-i*v)+c*(n*u-i*s)),e[4]=-(o*(v*x-d*y)-f*(s*x-u*y)+p*(s*d-u*v)),e[5]=t*(v*x-d*y)-f*(n*x-i*y)+p*(n*d-i*v),e[6]=-(t*(s*x-u*y)-o*(n*x-i*y)+p*(n*u-i*s)),e[7]=t*(s*d-u*v)-o*(n*d-i*v)+f*(n*u-i*s),e[8]=o*(c*x-d*m)-f*(l*x-u*m)+p*(l*d-u*c),e[9]=-(t*(c*x-d*m)-f*(a*x-i*m)+p*(a*d-i*c)),e[10]=t*(l*x-u*m)-o*(a*x-i*m)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*y-v*m)-f*(l*y-s*m)+p*(l*v-s*c)),e[13]=t*(c*y-v*m)-f*(a*y-n*m)+p*(a*v-n*c),e[14]=-(t*(l*y-s*m)-o*(a*y-n*m)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var t9=N((FCe,r9)=>{r9.exports=Loe;function Loe(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],d=e[12],p=e[13],m=e[14],y=e[15],x=r*o-t*i,w=r*l-a*i,_=r*s-n*i,b=t*l-a*o,T=t*s-n*o,k=a*s-n*l,M=u*p-f*d,S=u*m-c*d,E=u*y-v*d,D=f*m-c*p,P=f*y-v*p,R=c*y-v*m;return x*R-w*P+_*D+b*E-T*S+k*M}});var n9=N((NCe,a9)=>{a9.exports=Coe;function Coe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],d=r[10],p=r[11],m=r[12],y=r[13],x=r[14],w=r[15],_=t[0],b=t[1],T=t[2],k=t[3];return e[0]=_*a+b*l+T*c+k*m,e[1]=_*n+b*s+T*v+k*y,e[2]=_*i+b*u+T*d+k*x,e[3]=_*o+b*f+T*p+k*w,_=t[4],b=t[5],T=t[6],k=t[7],e[4]=_*a+b*l+T*c+k*m,e[5]=_*n+b*s+T*v+k*y,e[6]=_*i+b*u+T*d+k*x,e[7]=_*o+b*f+T*p+k*w,_=t[8],b=t[9],T=t[10],k=t[11],e[8]=_*a+b*l+T*c+k*m,e[9]=_*n+b*s+T*v+k*y,e[10]=_*i+b*u+T*d+k*x,e[11]=_*o+b*f+T*p+k*w,_=t[12],b=t[13],T=t[14],k=t[15],e[12]=_*a+b*l+T*c+k*m,e[13]=_*n+b*s+T*v+k*y,e[14]=_*i+b*u+T*d+k*x,e[15]=_*o+b*f+T*p+k*w,e}});var o9=N((zCe,i9)=>{i9.exports=Eoe;function Eoe(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,m,y,x;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],m=r[9],y=r[10],x=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=m,e[10]=y,e[11]=x,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+m*i+r[13],e[14]=s*a+v*n+y*i+r[14],e[15]=u*a+d*n+x*i+r[15]),e}});var s9=N((ICe,l9)=>{l9.exports=Doe;function Doe(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var f9=N((OCe,u9)=>{u9.exports=Roe;function Roe(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,v,d,p,m,y,x,w,_,b,T,k,M,S,E,D,P,R,z,O,B;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],d=r[2],p=r[3],m=r[4],y=r[5],x=r[6],w=r[7],_=r[8],b=r[9],T=r[10],k=r[11],M=n*n*f+u,S=i*n*f+o*s,E=o*n*f-i*s,D=n*i*f-o*s,P=i*i*f+u,R=o*i*f+n*s,z=n*o*f+i*s,O=i*o*f-n*s,B=o*o*f+u,e[0]=c*M+m*S+_*E,e[1]=v*M+y*S+b*E,e[2]=d*M+x*S+T*E,e[3]=p*M+w*S+k*E,e[4]=c*D+m*P+_*R,e[5]=v*D+y*P+b*R,e[6]=d*D+x*P+T*R,e[7]=p*D+w*P+k*R,e[8]=c*z+m*O+_*B,e[9]=v*z+y*O+b*B,e[10]=d*z+x*O+T*B,e[11]=p*z+w*O+k*B,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var v9=N((BCe,c9)=>{c9.exports=Poe;function Poe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var d9=N((HCe,h9)=>{h9.exports=Foe;function Foe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var y9=N((UCe,p9)=>{p9.exports=Noe;function Noe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var g9=N((GCe,m9)=>{m9.exports=zoe;function zoe(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var x9=N((YCe,b9)=>{b9.exports=Ioe;function Ioe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,v=a*u,d=n*s,p=n*u,m=i*u,y=o*l,x=o*s,w=o*u;return e[0]=1-(d+m),e[1]=c+w,e[2]=v-x,e[3]=0,e[4]=c-w,e[5]=1-(f+m),e[6]=p+y,e[7]=0,e[8]=v+x,e[9]=p-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var w9=N((VCe,_9)=>{_9.exports=Ooe;function Ooe(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var A9=N((WCe,T9)=>{T9.exports=Boe;function Boe(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var k9=N((jCe,M9)=>{M9.exports=Hoe;function Hoe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var q9=N((ZCe,S9)=>{S9.exports=Uoe;function Uoe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var C9=N((XCe,L9)=>{L9.exports=Goe;function Goe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var pb=N((JCe,E9)=>{E9.exports=Yoe;function Yoe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,v=n*o,d=n*l,p=n*s,m=i*o,y=i*l,x=i*s;return e[0]=1-c-p,e[1]=f+x,e[2]=v-y,e[3]=0,e[4]=f-x,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=v+y,e[9]=d-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var R9=N(($Ce,D9)=>{D9.exports=Voe;function Voe(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var F9=N((KCe,P9)=>{P9.exports=Woe;function Woe(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var z9=N((QCe,N9)=>{N9.exports=joe;function joe(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var O9=N((eEe,I9)=>{I9.exports=Zoe;function Zoe(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var H9=N((rEe,B9)=>{var Xoe=db();B9.exports=Joe;function Joe(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],m=r[1],y=r[2],x=a[0],w=a[1],_=a[2],b=t[0],T=t[1],k=t[2];return Math.abs(p-b)<1e-6&&Math.abs(m-T)<1e-6&&Math.abs(y-k)<1e-6?Xoe(e):(f=p-b,c=m-T,v=y-k,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=w*v-_*c,i=_*f-x*v,o=x*c-w*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*m+o*y),e[13]=-(l*p+s*m+u*y),e[14]=-(f*p+c*m+v*y),e[15]=1,e)}});var G9=N((tEe,U9)=>{U9.exports=$oe;function $oe(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var yb=N((aEe,Y9)=>{Y9.exports={create:GM(),clone:VM(),copy:jM(),identity:db(),transpose:JM(),invert:KM(),adjoint:e9(),determinant:t9(),multiply:n9(),translate:o9(),scale:s9(),rotate:f9(),rotateX:v9(),rotateY:d9(),rotateZ:y9(),fromRotation:g9(),fromRotationTranslation:x9(),fromScaling:w9(),fromTranslation:A9(),fromXRotation:k9(),fromYRotation:q9(),fromZRotation:C9(),fromQuat:pb(),frustum:R9(),perspective:F9(),perspectiveFromFieldOfView:z9(),ortho:O9(),lookAt:H9(),str:G9()}});var Tp=N(ea=>{"use strict";var Koe=yb();ea.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var Qoe=Sr(),V9=Zs(),ele=Tp(),rle=yb();function tle(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function ale(e){var r=Qoe.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function W9(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function nle(e,r){j9("global",e,r)}function j9(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):V9.warn("addStyleRule failed"):V9.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function ile(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&W9(t)}function ole(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),u.setAttribute(s,!0))})}function lle(e){var r=X9(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=Z9(a);if(n){var i=ele.convertCssMatrix(n);t=rle.multiply(t,t,i)}}),t}function Z9(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function X9(e){for(var r=[];sle(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function sle(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function ule(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}J9.exports={getGraphDiv:tle,isPlotDiv:ale,removeElement:W9,addStyleRule:nle,addRelatedStyleRule:j9,deleteRelatedStyleRule:ile,setStyleOnHover:ole,getFullTransformMatrix:lle,getElementTransformMatrix:Z9,getElementAndAncestors:X9,equalDomRects:ule}});var $v=N((oEe,$9)=>{"use strict";$9.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Xi=N((lEe,nk)=>{"use strict";var Q9=xt().extendFlat,fle=zl(),ek={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},rk={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},cle=ek.flags.slice().concat(["fullReplot"]),vle=rk.flags.slice().concat("layoutReplot");nk.exports={traces:ek,layout:rk,traceFlags:function(){return K9(cle)},layoutFlags:function(){return K9(vle)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";mb.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};mb.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var gb=N((uEe,ik)=>{"use strict";ik.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Ta=N(Kv=>{"use strict";var ok=gb(),hle=ok.FORMAT_LINK,dle=ok.DATE_FORMAT_LINK;function ple(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,hle,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,dle,"for details on the date formatting syntax."].join(" ")}Kv.templateFormatStringDescription=ple;function bb(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n{"use strict";function Bl(e,r){return r?r.d2l(e):e}function lk(e,r){return r?r.l2d(e):e}function yle(e){return e.x0}function mle(e){return e.x1}function gle(e){return e.y0}function ble(e){return e.y1}function sk(e){return e.x0shift||0}function uk(e){return e.x1shift||0}function fk(e){return e.y0shift||0}function ck(e){return e.y1shift||0}function Ap(e,r){return Bl(e.x1,r)+uk(e)-Bl(e.x0,r)-sk(e)}function Mp(e,r,t){return Bl(e.y1,t)+ck(e)-Bl(e.y0,t)-fk(e)}function xle(e,r){return Math.abs(Ap(e,r))}function _le(e,r,t){return Math.abs(Mp(e,r,t))}function wle(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Ap(e,r),2)+Math.pow(Mp(e,r,t),2))}function Tle(e,r){return lk((Bl(e.x1,r)+uk(e)+Bl(e.x0,r)+sk(e))/2,r)}function Ale(e,r,t){return lk((Bl(e.y1,t)+ck(e)+Bl(e.y0,t)+fk(e))/2,t)}function Mle(e,r,t){return e.type!=="line"?void 0:Mp(e,r,t)/Ap(e,r)}vk.exports={x0:yle,x1:mle,y0:gle,y1:ble,slope:Mle,dx:Ap,dy:Mp,width:xle,height:_le,length:wle,xcenter:Tle,ycenter:Ale}});var pk=N((vEe,dk)=>{"use strict";var kle=Xi().overrideAll,Xs=mn(),hk=da(),Sle=ui().dash,Hl=xt().extendFlat,qle=Ta().shapeTexttemplateAttrs,Lle=kp();dk.exports=kle({newshape:{visible:Hl({},Xs.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Hl({},Xs.legend,{}),legendgroup:Hl({},Xs.legendgroup,{}),legendgrouptitle:{text:Hl({},Xs.legendgrouptitle.text,{}),font:hk({})},legendrank:Hl({},Xs.legendrank,{}),legendwidth:Hl({},Xs.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Hl({},Sle,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Hl({},Xs.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:qle({newshape:!0},{keys:Object.keys(Lle)}),font:hk({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var mk=N((hEe,yk)=>{"use strict";var Cle=ui().dash,Ele=xt().extendFlat;yk.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:Ele({},Cle,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Sp=N((dEe,gk)=>{"use strict";gk.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Sf=N((pEe,wk)=>{"use strict";var xb=da(),Dle=$v(),qp=si(),bk=pk(),xk=mk(),Rle=Sp(),_k=xt().extendFlat,Lp=xb({editType:"calc"});Lp.family.dflt='"Open Sans", verdana, arial, sans-serif';Lp.size.dflt=12;Lp.color.dflt=qp.defaultLine;wk.exports={font:Lp,title:{text:{valType:"string",editType:"layoutstyle"},font:xb({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:xb({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:_k(Rle({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:qp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:qp.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:qp.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:bk.newshape,activeshape:bk.activeshape,newselection:xk.newselection,activeselection:xk.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:_k({},Dle.transition,{editType:"none"})}});var Tk=N(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var gr=N(Hr=>{"use strict";var qf=Zs(),Ak=wp(),Mk=hb(),Ple=zl(),Fle=Jv().addStyleRule,kk=xt(),Nle=mn(),zle=Sf(),Ile=kk.extendFlat,_b=kk.extendDeepAll;Hr.modules={};Hr.allCategories={};Hr.allTypes=[];Hr.subplotsRegistry={};Hr.componentsRegistry={};Hr.layoutArrayContainers=[];Hr.layoutArrayRegexes=[];Hr.traceLayoutAttributes={};Hr.localeRegistry={};Hr.apiMethodRegistry={};Hr.collectableSubplotTypes=null;Hr.register=function(r){if(Hr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var Yle=xf().timeFormat,zk=Rr(),wb=Zs(),Gl=wf().mod,Ef=Nt(),fi=Ef.BADNUM,Ln=Ef.ONEDAY,Qv=Ef.ONEHOUR,Ul=Ef.ONEMIN,Cf=Ef.ONESEC,eh=Ef.EPOCHJD,rl=gr(),Ek=xf().utcFormat,Vle=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Wle=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Dk=new Date().getFullYear()-70;function tl(e){return e&&rl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}ra.dateTick0=function(e,r){var t=jle(e,!!r);if(r<2)return t;var a=ra.dateTime2ms(t,e);return a+=Ln*(r-1),ra.ms2DateTime(a,0,e)};function jle(e,r){return tl(e)?r?rl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:rl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}ra.dfltRange=function(e){return tl(e)?rl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};ra.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ep,Dp;ra.dateTime2ms=function(e,r){if(ra.isJSDate(e)){var t=e.getTimezoneOffset()*Ul,a=(e.getUTCMinutes()-e.getMinutes())*Ul+(e.getUTCSeconds()-e.getSeconds())*Cf+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Ul;t=t-n/2+Gl(a-t+n/2,n)}return e=Number(e)-t,e>=Ep&&e<=Dp?e:fi}if(typeof e!="string"&&typeof e!="number")return fi;e=String(e);var i=tl(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.substr(1),r="");var l=i&&r.substr(0,7)==="chinese",s=e.match(l?Wle:Vle);if(!s)return fi;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return fi;u=Number(u);var m;try{var y=rl.getComponentMethod("calendars","getCal")(r);if(l){var x=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=y.newDate(u,y.toMonthIndex(u,f,x),c)}else m=y.newDate(u,Number(f),c)}catch(_){return fi}return m?(m.toJD()-eh)*Ln+v*Qv+d*Ul+p*Cf:fi}u.length===2?u=(Number(u)+2e3-Dk)%100+Dk:u=Number(u),f-=1;var w=new Date(Date.UTC(2e3,f,c,v,d));return w.setUTCFullYear(u),w.getUTCMonth()!==f||w.getUTCDate()!==c?fi:w.getTime()+p*Cf};Ep=ra.MIN_MS=ra.dateTime2ms("-9999");Dp=ra.MAX_MS=ra.dateTime2ms("9999-12-31 23:59:59.9999");ra.isDateTime=function(e,r){return ra.dateTime2ms(e,r)!==fi};function Lf(e,r){return String(e+Math.pow(10,r)).substr(1)}var Cp=90*Ln,Rk=3*Qv,Pk=5*Ul;ra.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ep&&e<=Dp))return fi;r||(r=0);var a=Math.floor(Gl(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(tl(t)){var c=Math.floor(n/Ln)+eh,v=Math.floor(Gl(e,Ln));try{i=rl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=Ek("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=r=Ep+Ln&&e<=Dp-Ln))return fi;var r=Math.floor(Gl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Yle("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return Ik(a,n,i,o,l)};function Ik(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Lf(r,2)+":"+Lf(t,2),(a||n)&&(e+=":"+Lf(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Lf(n,i)}return e}ra.cleanDate=function(e,r,t){if(e===fi)return r;if(ra.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(tl(t))return wb.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=ra.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!ra.isDateTime(e,t))return wb.error("unrecognized date",e),r;return e};var Zle=/%\d?f/g,Xle=/%h/g,Jle={1:"1",2:"1",3:"2",4:"2"};function Fk(e,r,t,a){e=e.replace(Zle,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(Xle,function(){return Jle[t("%q")(n)]}),tl(a))try{e=rl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var $le=[59,59.9,59.99,59.999,59.9999];function Kle(e,r){var t=Gl(e+.05,Ln),a=Lf(Math.floor(t/Qv),2)+":"+Lf(Gl(Math.floor(t/Ul),60),2);if(r!=="M"){zk(r)||(r=0);var n=Math.min(Gl(e/Cf,60),$le[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}ra.formatDate=function(e,r,t,a,n,i){if(n=tl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return Kle(e,t)+` -`+Fk(i.dayMonthYear,e,a,n);return Fk(r,e,a,n)};var Nk=3*Ln;ra.incrementMonth=function(e,r,t){t=tl(t)&&t;var a=Gl(e,Ln);if(e=Math.round(e-a),t)try{var n=Math.round(e/Ln)+eh,i=rl.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-eh)*Ln+a}catch(s){wb.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+Nk);return l.setUTCMonth(l.getUTCMonth()+r)+a-Nk};ra.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=tl(r)&&rl.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";Bk.exports=function(r){return r}});var Mb=N(al=>{"use strict";var Qle=Rr(),ese=Zs(),rse=Tb(),tse=Nt().BADNUM,Ab=1e-9;al.findBin=function(e,r,t){if(Qle(r.start))return t?Math.ceil((e-r.start)/r.size-Ab)-1:Math.floor((e-r.start)/r.size+Ab);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?ase:nse:s=t?ose:ise,e+=o*Ab*(t?-1:1)*(o>=0?1:-1);a90&&ese.log("Long binary search..."),a-1};function ase(e,r){return er}function ose(e,r){return e>=r}al.sorterAsc=function(e,r){return e-r};al.sorterDes=function(e,r){return r-e};al.distinctVals=function(e){var r=e.slice();r.sort(al.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===tse;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};al.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};al.findIndexOfMin=function(e,r){r=r||rse;for(var t=1/0,a,n=0;n{"use strict";Hk.exports=function(r){return Object.keys(r).sort()}});var Uk=N(ta=>{"use strict";var rh=Rr(),lse=Vn().isArrayOrTypedArray;ta.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),rh(r)||(r=!1),lse(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var jk=N((AEe,Wk)=>{"use strict";var Gk=wf(),Sb=Gk.mod,sse=Gk.modHalf,th=Math.PI,Yl=2*th;function use(e){return e/180*th}function fse(e){return e/th*180}function qb(e){return Math.abs(e[1]-e[0])>Yl-1e-14}function Yk(e,r){return sse(r-e,Yl)}function cse(e,r){return Math.abs(Yk(e,r))}function Vk(e,r){if(qb(r))return!0;var t,a;r[0]a&&(a+=Yl);var n=Sb(e,Yl),i=n+Yl;return n>=t&&n<=a||i>=t&&i<=a}function vse(e,r,t,a){if(!Vk(r,a))return!1;var n,i;return t[0]=n&&e<=i}function Lb(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=qb([t,a]),s,u,f,c,v;l?(s=0,u=th,f=Yl):t{"use strict";Js.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Js.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Js.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Js.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Js.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Js.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var $k=N($s=>{"use strict";var Cb=wf().mod;$s.segmentsIntersect=Jk;function Jk(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,v=i-r,d=l-i,p=s*d-f*c;if(p===0)return null;var m=(u*d-f*v)/p,y=(u*c-s*v)/p;return y<0||y>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}$s.segmentDistance=function(r,t,a,n,i,o,l,s){if(Jk(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,v=s-o,d=u*u+f*f,p=c*c+v*v,m=Math.min(Rp(u,f,d,i-r,o-t),Rp(u,f,d,l-r,s-t),Rp(c,v,p,r-i,t-o),Rp(c,v,p,a-i,n-o));return Math.sqrt(m)};function Rp(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var Pp,Eb,Xk;$s.getTextLocation=function(r,t,a,n){if((r!==Eb||n!==Xk)&&(Pp={},Eb=r,Xk=n),Pp[a])return Pp[a];var i=r.getPointAtLength(Cb(a-n/2,t)),o=r.getPointAtLength(Cb(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(Cb(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return Pp[a]=c,c};$s.clearLocationCache=function(){Eb=null};$s.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function d(m){var y=r.getPointAtLength(m);m===0?c=y:m===u&&(v=y);var x=y.xi?y.x-i:0,w=y.yl?y.y-l:0;return Math.sqrt(x*x+w*w)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};$s.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,d,p;u0?c=v:f=v,u++}return d}});var Fp=N(ah=>{"use strict";var nl={};ah.throttle=function(r,t,a){var n=nl[r],i=Date.now();if(!n){for(var o in nl)nl[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};ah.done=function(e){var r=nl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};ah.clear=function(e){if(e)Kk(nl[e]),delete nl[e];else for(var r in nl)ah.clear(r)};function Kk(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var eS=N((qEe,Qk)=>{"use strict";Qk.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var rS=N((LEe,Np)=>{"use strict";Np.exports=Db;Np.exports.isMobile=Db;Np.exports.default=Db;var yse=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,mse=/CrOS/,gse=/android|ipad|playbook|silk/i;function Db(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=yse.test(r)&&!mse.test(r)||!!e.tablet&&gse.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var aS=N((CEe,tS)=>{"use strict";var bse=Rr(),xse=rS();tS.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=_se(),typeof t!="string")return!0;var a=xse({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.substr(0,8)==="Version/"){var u=s.substr(8).split(".")[0];if(bse(u)&&(u=+u),u>=13)return!0}}}return a};function _se(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var iS=N((EEe,nS)=>{"use strict";var wse=Sr();nS.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=wse.select(this)}),n}});var lS=N((DEe,oS)=>{"use strict";var Tse=gr();oS.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=Tse.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var uS=N((REe,sS)=>{"use strict";sS.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";fS.exports=function(r){for(var t=kse(r)?Mse:Ase,a=[],n=0;n{"use strict";vS.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var pS=N((NEe,dS)=>{"use strict";var Sse=Rr(),qse=Nt().BADNUM,Lse=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;dS.exports=function(r){return typeof r=="string"&&(r=r.replace(Lse,"")),Sse(r)?Number(r):qse}});var Ce=N((zEe,qS)=>{"use strict";var nh=Sr(),Cse=xf().utcFormat,Ese=Q3().format,_S=Rr(),wS=Nt(),TS=wS.FP_SAFE,Dse=-TS,yS=wS.BADNUM,be=qS.exports={};be.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var mS={};be.warnBadFormat=function(e){var r=String(e);mS[r]||(mS[r]=1,be.warn('encountered bad format: "'+r+'"'))};be.noFormat=function(e){return String(e)};be.numberFormat=function(e){var r;try{r=Ese(be.adjustFormat(e))}catch(t){return be.warnBadFormat(e),be.noFormat}return r};be.nestedProperty=hp();be.keyedContainer=sM();be.relativeAttr=fM();be.isPlainObject=zl();be.toLogRange=pp();be.relinkPrivateKeys=dM();var Vl=Vn();be.isArrayBuffer=Vl.isArrayBuffer;be.isTypedArray=Vl.isTypedArray;be.isArrayOrTypedArray=Vl.isArrayOrTypedArray;be.isArray1D=Vl.isArray1D;be.ensureArray=Vl.ensureArray;be.concat=Vl.concat;be.maxRowLength=Vl.maxRowLength;be.minRowLength=Vl.minRowLength;var AS=wf();be.mod=AS.mod;be.modHalf=AS.modHalf;var Wl=RM();be.valObjectMeta=Wl.valObjectMeta;be.coerce=Wl.coerce;be.coerce2=Wl.coerce2;be.coerceFont=Wl.coerceFont;be.coercePattern=Wl.coercePattern;be.coerceHoverinfo=Wl.coerceHoverinfo;be.coerceSelectionMarkerOpacity=Wl.coerceSelectionMarkerOpacity;be.validate=Wl.validate;var Wn=Ok();be.dateTime2ms=Wn.dateTime2ms;be.isDateTime=Wn.isDateTime;be.ms2DateTime=Wn.ms2DateTime;be.ms2DateTimeLocal=Wn.ms2DateTimeLocal;be.cleanDate=Wn.cleanDate;be.isJSDate=Wn.isJSDate;be.formatDate=Wn.formatDate;be.incrementMonth=Wn.incrementMonth;be.dateTick0=Wn.dateTick0;be.dfltRange=Wn.dfltRange;be.findExactDates=Wn.findExactDates;be.MIN_MS=Wn.MIN_MS;be.MAX_MS=Wn.MAX_MS;var Ks=Mb();be.findBin=Ks.findBin;be.sorterAsc=Ks.sorterAsc;be.sorterDes=Ks.sorterDes;be.distinctVals=Ks.distinctVals;be.roundUp=Ks.roundUp;be.sort=Ks.sort;be.findIndexOfMin=Ks.findIndexOfMin;be.sortObjectKeys=kb();var il=Uk();be.aggNums=il.aggNums;be.len=il.len;be.mean=il.mean;be.geometricMean=il.geometricMean;be.median=il.median;be.midRange=il.midRange;be.variance=il.variance;be.stdev=il.stdev;be.interp=il.interp;var Ji=Tp();be.init2dArray=Ji.init2dArray;be.transposeRagged=Ji.transposeRagged;be.dot=Ji.dot;be.translationMatrix=Ji.translationMatrix;be.rotationMatrix=Ji.rotationMatrix;be.rotationXYMatrix=Ji.rotationXYMatrix;be.apply3DTransform=Ji.apply3DTransform;be.apply2DTransform=Ji.apply2DTransform;be.apply2DTransform2=Ji.apply2DTransform2;be.convertCssMatrix=Ji.convertCssMatrix;be.inverseTransformMatrix=Ji.inverseTransformMatrix;var Ao=jk();be.deg2rad=Ao.deg2rad;be.rad2deg=Ao.rad2deg;be.angleDelta=Ao.angleDelta;be.angleDist=Ao.angleDist;be.isFullCircle=Ao.isFullCircle;be.isAngleInsideSector=Ao.isAngleInsideSector;be.isPtInsideSector=Ao.isPtInsideSector;be.pathArc=Ao.pathArc;be.pathSector=Ao.pathSector;be.pathAnnulus=Ao.pathAnnulus;var Rf=Zk();be.isLeftAnchor=Rf.isLeftAnchor;be.isCenterAnchor=Rf.isCenterAnchor;be.isRightAnchor=Rf.isRightAnchor;be.isTopAnchor=Rf.isTopAnchor;be.isMiddleAnchor=Rf.isMiddleAnchor;be.isBottomAnchor=Rf.isBottomAnchor;var Pf=$k();be.segmentsIntersect=Pf.segmentsIntersect;be.segmentDistance=Pf.segmentDistance;be.getTextLocation=Pf.getTextLocation;be.clearLocationCache=Pf.clearLocationCache;be.getVisibleSegment=Pf.getVisibleSegment;be.findPointOnPath=Pf.findPointOnPath;var Op=xt();be.extendFlat=Op.extendFlat;be.extendDeep=Op.extendDeep;be.extendDeepAll=Op.extendDeepAll;be.extendDeepNoArrays=Op.extendDeepNoArrays;var Rb=Zs();be.log=Rb.log;be.warn=Rb.warn;be.error=Rb.error;var Rse=Af();be.counterRegex=Rse.counter;var Pb=Fp();be.throttle=Pb.throttle;be.throttleDone=Pb.done;be.clearThrottle=Pb.clear;var $i=Jv();be.getGraphDiv=$i.getGraphDiv;be.isPlotDiv=$i.isPlotDiv;be.removeElement=$i.removeElement;be.addStyleRule=$i.addStyleRule;be.addRelatedStyleRule=$i.addRelatedStyleRule;be.deleteRelatedStyleRule=$i.deleteRelatedStyleRule;be.setStyleOnHover=$i.setStyleOnHover;be.getFullTransformMatrix=$i.getFullTransformMatrix;be.getElementTransformMatrix=$i.getElementTransformMatrix;be.getElementAndAncestors=$i.getElementAndAncestors;be.equalDomRects=$i.equalDomRects;be.clearResponsive=eS();be.preserveDrawingBuffer=aS();be.makeTraceGroups=iS();be._=lS();be.notifier=fb();be.filterUnique=uS();be.filterVisible=cS();be.pushUnique=hb();be.increment=hS();be.cleanNumber=pS();be.ensureNumber=function(r){return _S(r)?(r=Number(r),r>TS||r=r?!1:_S(e)&&e>=0&&e%1===0};be.noop=wp();be.identity=Tb();be.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};be.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};be.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(be.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};be.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};be.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,u,f;for(l=0;l=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};be.syncOrAsync=function(e,r,t){var a,n;function i(){return be.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};be.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};be.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};be.fillArray=function(e,r,t,a){if(a=a||be.identity,be.isArrayOrTypedArray(e))for(var n=0;nNse.test(window.navigator.userAgent);var zse=/Firefox\/(\d+)\.\d+/;be.getFirefoxVersion=function(){var e=zse.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};be.isD3Selection=function(e){return e instanceof nh.selection};be.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};be.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};be.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};be.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var SS=/^\w*$/;be.templateString=function(e,r){var t={};return e.replace(be.TEMPLATE_STRING_REGEX,function(a,n){var i;return SS.test(n)?i=r[n]:(t[n]=t[n]||be.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Bse={max:10,count:0,name:"hovertemplate"};be.hovertemplateString=function(){return Fb.apply(Bse,arguments)};var Hse={max:10,count:0,name:"texttemplate"};be.texttemplateString=function(){return Fb.apply(Hse,arguments)};var Use=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Gse(e){var r=e.match(Use);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Yse={max:10,count:0,name:"texttemplate",parseMultDiv:!0};be.texttemplateStringForShapes=function(){return Fb.apply(Yse,arguments)};var gS=/^[:|\|]/;function Fb(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(be.TEMPLATE_STRING_REGEX,function(i,o,l){var s=o==="xother"||o==="yother",u=o==="_xother"||o==="_yother",f=o==="_xother_"||o==="_yother_",c=o==="xother_"||o==="yother_",v=s||u||c||f,d=o;(u||f)&&(d=d.substring(1)),(c||f)&&(d=d.substring(0,d.length-1));var p=null,m=null;if(a.parseMultDiv){var y=Gse(d);d=y.key,p=y.op,m=y.number}var x;if(v){if(x=r[d],x===void 0)return""}else{var w,_;for(_=3;_=Ip&&o<=bS,u=l>=Ip&&l<=bS;if(s&&(a=10*a+o-Ip),u&&(n=10*n+l-Ip),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var Df=2e9;be.seedPseudoRandom=function(){Df=2e9};be.pseudoRandom=function(){var e=Df;return Df=(69069*Df+1)%4294967296,Math.abs(Df-e)<429496729?be.pseudoRandom():Df/4294967296};be.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=be.extractOption(e,r,"htx","hovertext");if(be.isValidTextValue(n))return a(n);var i=be.extractOption(e,r,"tx","text");if(be.isValidTextValue(i))return a(i)};be.isValidTextValue=function(e){return e||e===0};be.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,be.strTranslate(n-u*(t+o),i-u*(a+l))+be.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};be.setTransormAndDisplay=function(e,r){e.attr("transform",be.getTextTransform(r)),e.style("display",r.scale?null:"none")};be.ensureUniformFontSize=function(e,r){var t=be.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};be.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};be.bigFont=function(e){return Math.round(1.2*e)};var xS=be.getFirefoxVersion(),Vse=xS!==null&&xS<86;be.getPositionFromD3Event=function(){return Vse?[nh.event.layerX,nh.event.layerY]:[nh.event.offsetX,nh.event.offsetY]}});var ES=N(()=>{"use strict";var Wse=Ce(),LS={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Nb in LS)CS=Nb.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Wse.addStyleRule(CS,LS[Nb]);var CS,Nb});var zb=N((BEe,DS)=>{DS.exports=!0});var Ob=N((HEe,RS)=>{"use strict";var jse=zb(),Ib;typeof window.matchMedia=="function"?Ib=!window.matchMedia("(hover: none)").matches:Ib=jse;RS.exports=Ib});var Qs=N((UEe,Bb)=>{"use strict";var Ff=typeof Reflect=="object"?Reflect:null,PS=Ff&&typeof Ff.apply=="function"?Ff.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Bp;Ff&&typeof Ff.ownKeys=="function"?Bp=Ff.ownKeys:Object.getOwnPropertySymbols?Bp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Bp=function(r){return Object.getOwnPropertyNames(r)};function Zse(e){console&&console.warn&&console.warn(e)}var NS=Number.isNaN||function(r){return r!==r};function Ct(){Ct.init.call(this)}Bb.exports=Ct;Bb.exports.once=Kse;Ct.EventEmitter=Ct;Ct.prototype._events=void 0;Ct.prototype._eventsCount=0;Ct.prototype._maxListeners=void 0;var FS=10;function Hp(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ct,"defaultMaxListeners",{enumerable:!0,get:function(){return FS},set:function(e){if(typeof e!="number"||e<0||NS(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");FS=e}});Ct.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ct.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||NS(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function zS(e){return e._maxListeners===void 0?Ct.defaultMaxListeners:e._maxListeners}Ct.prototype.getMaxListeners=function(){return zS(this)};Ct.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")PS(s,this,t);else for(var u=s.length,f=US(s,u),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,Zse(l)}return e}Ct.prototype.addListener=function(r,t){return IS(this,r,t,!1)};Ct.prototype.on=Ct.prototype.addListener;Ct.prototype.prependListener=function(r,t){return IS(this,r,t,!0)};function Xse(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function OS(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=Xse.bind(a);return n.listener=t,a.wrapFn=n,n}Ct.prototype.once=function(r,t){return Hp(t),this.on(r,OS(this,r,t)),this};Ct.prototype.prependOnceListener=function(r,t){return Hp(t),this.prependListener(r,OS(this,r,t)),this};Ct.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Hp(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():Jse(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Ct.prototype.off=Ct.prototype.removeListener;Ct.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function BS(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?$se(n):US(n,n.length)}Ct.prototype.listeners=function(r){return BS(this,r,!0)};Ct.prototype.rawListeners=function(r){return BS(this,r,!1)};Ct.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):HS.call(e,r)};Ct.prototype.listenerCount=HS;function HS(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Ct.prototype.eventNames=function(){return this._eventsCount>0?Bp(this._events):[]};function US(e,r){for(var t=new Array(r),a=0;a{"use strict";var Hb=Qs().EventEmitter,eue={init:function(e){if(e._ev instanceof Hb)return e;var r=new Hb,t=new Hb;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var VS=Ce(),rue=js().dfltConfig;function tue(e,r){for(var t=[],a,n=0;nrue.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};ol.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};ol.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};ol.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";ZS.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var If=N(pa=>{"use strict";var ci=gr(),oh=Ce(),Gp=mn(),Gb=Sf(),aue=Ub(),nue=$v(),iue=js().configAttributes,XS=Xi(),Ki=oh.extendDeepAll,Nf=oh.isPlainObject,oue=oh.isArrayOrTypedArray,Yp=oh.nestedProperty,lue=oh.valObjectMeta,Yb="_isSubplotObj",Vp="_isLinkedToArray",sue="_arrayAttrRegexps",$S="_deprecated",Vb=[Yb,Vp,sue,$S];pa.IS_SUBPLOT_OBJ=Yb;pa.IS_LINKED_TO_ARRAY=Vp;pa.DEPRECATED=$S;pa.UNDERSCORE_ATTRS=Vb;pa.get=function(){var e={};return ci.allTypes.forEach(function(r){e[r]=fue(r)}),{defs:{valObjects:lue,metaKeys:Vb.concat(["description","role","editType","impliedEdits"]),editType:{traces:XS.traces,layout:XS.layout},impliedEdits:{}},traces:e,layout:cue(),frames:vue(),animation:zf(nue),config:zf(iue)}};pa.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(Vb.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!pa.isValObject(o)&&Nf(o)&&i!=="impliedEdits"&&pa.crawl(o,r,n+1,l)}})};pa.isValObject=function(e){return e&&e.valType!==void 0};pa.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)oue(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Up(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function Up(e){return e===Math.round(e)&&e>=0}function fue(e){var r,t;r=ci.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Ki({},Gp),i=Ki({},r.attributes);pa.crawl(i,function(s,u,f,c,v){Yp(n,v).set(void 0),s===void 0&&Yp(i,v).set(void 0)}),Ki(a,n),ci.traceIs(e,"noOpacity")&&delete a.opacity,ci.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),ci.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Ki(a,i),t.attributes&&Ki(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:zf(a)};if(r.layoutAttributes){var l={};Ki(l,r.layoutAttributes),o.layoutAttributes=zf(l)}return r.animatable||pa.crawl(o,function(s){pa.isValObject(s)&&"anim"in s&&delete s.anim}),o}function cue(){var e={},r,t;Ki(e,Gb);for(r in ci.subplotsRegistry)if(t=ci.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Of=Ce(),mue=mn(),jl="templateitemname",Wb={name:{valType:"string",editType:"none"}};Wb[jl]={valType:"string",editType:"calc"};eu.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Wb.name,r[jl]=Wb[jl],r};eu.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Of.coerce(i,{},mue,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};eu.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Of.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};eu.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[eq(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},c=f[jl]=u[jl];if(!QS(c))return f._template=n,f;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][jl]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?Of.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&f(d,p);var m=c();for(var y in m)Of.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var Ea=N((ZEe,rq)=>{"use strict";var lh=Af().counter;rq.exports={idRegex:{x:lh("x","( domain)?"),y:lh("y","( domain)?")},attrRegex:lh("[xy]axis"),xAxisMatch:lh("xaxis"),yAxisMatch:lh("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var ia=N(Cn=>{"use strict";var gue=gr(),jb=Ea();Cn.id2name=function(r){if(!(typeof r!="string"||!r.match(jb.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Cn.name2id=function(r){if(r.match(jb.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};Cn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(jb.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Cn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Cn.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};Cn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function tq(e,r){if(r&&r.length){for(var t=0;t{"use strict";function bue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function xue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}aq.exports={clearOutlineControllers:bue,clearOutline:xue}});var Wp=N(($Ee,nq)=>{"use strict";nq.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Xp=N(Zp=>{"use strict";var jp=gr(),KEe=Ea().SUBPLOT_PATTERN;Zp.getSubplotCalcData=function(e,r,t){var a=jp.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var _ue=gr(),Bf=Ce();ru.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=ru.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){iq(e,o,n.cache),n.check=function(){if(i){var f=iq(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Bf.isPlainObject(i)?Zb(i,r,o,a+1):r(o,n,i)}})}});var aa=N((rDe,wq)=>{"use strict";var pq=Sr(),Tue=xf().timeFormatLocale,Aue=Q3().formatLocale,sh=Rr(),Mue=eb(),Kr=gr(),yq=If(),kue=At(),vr=Ce(),mq=Tr(),uq=Nt().BADNUM,En=ia(),Sue=Zl().clearOutline,que=Wp(),Xb=$v(),Lue=Ub(),Cue=Xp().getModuleCalcData,fq=vr.relinkPrivateKeys,tu=vr._,er=wq.exports={};vr.extendFlat(er,Kr);er.attributes=mn();er.attributes.type.values=er.allTypes;er.fontAttrs=da();er.layoutAttributes=Sf();var $p=sq();er.executeAPICommand=$p.executeAPICommand;er.computeAPICommandBindings=$p.computeAPICommandBindings;er.manageCommandObserver=$p.manageCommandObserver;er.hasSimpleAPICommandBindings=$p.hasSimpleAPICommandBindings;er.redrawText=function(e){return e=vr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Kr.getComponentMethod("annotations","draw")(e),Kr.getComponentMethod("legend","draw")(e),Kr.getComponentMethod("colorbar","draw")(e),r(er.previousPromises(e)))},300)})};er.resize=function(e){e=vr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||vr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||vr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Kr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};er.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};er.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=vr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:mq.defaultLine,"pointer-events":"all"}).each(function(){var u=pq.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Eue(e,i),o.text(i.text()&&l.text()?" - ":"")}};function Eue(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){er.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}er.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=pq.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=er.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var Due=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Rue=["year","month","dayMonth","dayMonthYear"];er.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||er.createTransitionData(e),n._dfltTitle={plot:tu(e,"Click to enter Plot title"),subtitle:tu(e,"Click to enter Plot subtitle"),x:tu(e,"Click to enter X axis title"),y:tu(e,"Click to enter Y axis title"),colorbar:tu(e,"Click to enter Colorscale title"),annotation:tu(e,"new text")},n._traceWord=tu(e,"trace");var v=cq(e,Due);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;er.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),er.sanitizeMargins(n)}else{er.supplyLayoutGlobalDefaults(i,n,v);var m=!i.width||!i.height,y=n.autosize,x=f.autosizable,w=m&&(y||x);w?er.plotAutoSize(e,i,n):m&&er.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=Nue(v,n.separators),n._extraFormat=cq(e,Rue),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=Fue(),b=n._splomAxes={x:{},y:{}},T=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Pue(o,s),er.supplyDataDefaults(s,l,i,n);var k=Object.keys(b.x),M=Object.keys(b.y);if(k.length>1&&M.length>1){for(Kr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,er.linkSubplots(l,n,o,a),er.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),z=!!(n._has&&n._has("cartesian")),O=R,B=z;O&&!B?a._bgLayer.remove():B&&!O&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Sue({_fullLayout:a}),zue(l,n),fq(n,a),Kr.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var V=n._tracePreGUI,G={},U;for(U in V)G[U]="old";for(c=0;c0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=er.layoutAttributes.width.min,v=er.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),er.sanitizeMargins(a)};er.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Kr.componentsRegistry,i=r._basePlotModules,o,l,s,u=Kr.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Kr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(vr.subplotSort);for(l=0;l1&&(t.l/=y,t.r/=y)}if(v){var x=(t.t+t.b)/v;x>1&&(t.t/=x,t.b/=x)}var w=t.xl!==void 0?t.xl:t.x,_=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,T=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:w,size:t.l+m},r:{val:_,size:t.r+m},b:{val:T,size:t.b+m},t:{val:b,size:t.t+m}},p[r]=1}if(!a._replotting)return er.doAutoMargin(e)}};function Oue(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=En.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}er.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),gq(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=vr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var y in v)d[y]||delete v[y];var x=e._fullLayout._reservedMargin;for(var w in x)for(var _ in x[w]){var b=x[w][_];o[_]=Math.max(o[_],b)}v.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var T in o){var k=0;for(var M in v)M!=="base"&&sh(v[M][T].size)&&(k=v[M][T].size>k?v[M][T].size:k);var S=Math.max(0,i[T]-k);o[T]=Math.max(0,o[T]-S)}for(var E in v){var D=v[E].l||{},P=v[E].b||{},R=D.val,z=D.size,O=P.val,B=P.size,V=t-o.r-o.l,G=a-o.t-o.b;for(var U in v){if(sh(z)&&v[U].r){var Y=v[U].r.val,X=v[U].r.size;if(Y>R){var Z=(z*Y+(X-V)*R)/(Y-R),re=(X*(1-R)+(z-V)*(1-Y))/(Y-R);Z+re>s+u&&(s=Z,u=re)}}if(sh(B)&&v[U].t){var ce=v[U].t.val,oe=v[U].t.size;if(ce>O){var fe=(B*ce+(oe-G)*O)/(ce-O),K=(oe*(1-O)+(B-G)*(1-ce))/(ce-O);fe+K>c+f&&(c=fe,f=K)}}}}}var Te=vr.constrain(t-i.l-i.r,bq,p),le=vr.constrain(a-i.t-i.b,xq,m),pe=Math.max(0,t-Te),ie=Math.max(0,a-le);if(pe){var ve=(s+u)/pe;ve>1&&(s/=ve,u/=ve)}if(ie){var W=(c+f)/ie;W>1&&(c/=W,f/=W)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(er.didMarginChange(l,n)||Oue(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};er.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&er.supplyDefaults(e);var o=n?e._fullData:e.data,l=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(v,d){if(typeof v=="function")return d?"_function_":null;if(vr.isPlainObject(v)){var p={},m;return Object.keys(v).sort().forEach(function(_){if(["_","["].indexOf(_.charAt(0))===-1){if(typeof v[_]=="function"){d&&(p[_]="_function");return}if(t==="keepdata"){if(_.substr(_.length-3)==="src")return}else if(t==="keepstream"){if(m=v[_+"src"],typeof m=="string"&&m.indexOf(":")>0&&!vr.isPlainObject(v.stream))return}else if(t!=="keepall"&&(m=v[_+"src"],typeof m=="string"&&m.indexOf(":")>0))return;p[_]=u(v[_],d)}}),p}var y=Array.isArray(v),x=vr.isTypedArray(v);if((y||x)&&v.dtype&&v.shape){var w=v.bdata;return u({dtype:v.dtype,shape:v.shape,bdata:vr.isArrayBuffer(w)?Mue.encode(w):w},d)}return y?v.map(function(_){return u(_,d)}):x?vr.simpleMap(v,vr.identity):vr.isJSDate(v)?vr.ms2DateTimeLocal(+v):v}var f={data:(o||[]).map(function(v){var d=u(v);return r&&delete d.fit,d})};if(!r&&(f.layout=u(l),n)){var c=l._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};er.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Kr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Kr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[er.previousPromises,s,t.prepareFn,er.rehover,er.reselect,o],f=vr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}er.doCalcdata=function(e,r){var t=En.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l=0;s--)if(T[s].enabled){i._indexToPoints=T[s]._indexToPoints;break}o&&o.calc&&(b=o.calc(e,i))}(!Array.isArray(b)||!b[0])&&(b=[{x:uq,y:uq}]),b[0].t||(b[0].t={}),b[0].trace=i,u[w]=b}}for(hq(t,a,n),l=0;l{"use strict";au.xmlns="http://www.w3.org/2000/xmlns/";au.svg="http://www.w3.org/2000/svg";au.xlink="http://www.w3.org/1999/xlink";au.svgAttrs={xmlns:au.svg,"xmlns:xlink":au.xlink}});var Xa=N((aDe,Tq)=>{"use strict";Tq.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Da=N(vi=>{"use strict";var oa=Sr(),sl=Ce(),Gue=sl.strTranslate,Jb=ll(),Yue=Xa().LINE_SPACING,Vue=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;vi.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(Vue),i=oa.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=nfe(e.node(),a);s&&e.style("pointer-events","all"),vi.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};Xue(n[2],f,function(c,v,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){l(),s();return}var m=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});m.node().appendChild(p.node()),v&&v.node()&&p.node().insertBefore(v.node().cloneNode(!0),p.node().firstChild);var y=d.width,x=d.height;p.attr({class:o,height:x,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var w=e.node().style.fill||"black",_=p.select("g");_.attr({fill:w,stroke:w});var b=_.node().getBoundingClientRect(),T=b.width,k=b.height;(T>y||k>x)&&(p.style("overflow","hidden"),b=p.node().getBoundingClientRect(),T=b.width,k=b.height);var M=+e.attr("x"),S=+e.attr("y"),E=u||e.node().getBoundingClientRect().height,D=-E/4;if(o[0]==="y")m.attr({transform:"rotate("+[-90,M,S]+")"+Gue(-T/2,D-k/2)});else if(o[0]==="l")S=D-k/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,S=D;else{var P=e.attr("text-anchor");M=M-T*(P==="middle"?.5:P==="end"?1:0),S=S+D-k/2}p.attr({x:M,y:S}),t&&t.call(e,m),s(m)})})):l(),e};var Wue=/(<|<|<)/g,jue=/(>|>|>)/g;function Zue(e){return e.replace(Wue,"\\lt ").replace(jue,"\\gt ")}var Aq=[["$","$"],["\\(","\\)"]];function Xue(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){sl.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=sl.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Aq},displayAlign:"left"})},u=function(){i=sl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Aq},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},v=function(){var w="math-output-"+sl.randstr({},64);l=oa.select("body").append("div").attr({id:w}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(Zue(e));var _=l.node();return a===2?MathJax.Hub.Typeset(_):MathJax.typeset([_])},d=function(){var w=l.select(a===2?".MathJax_SVG":".MathJax"),_=!w.empty()&&l.select("svg").node();if(!_)sl.log("There was an error in the tex syntax.",e),t();else{var b=_.getBoundingClientRect(),T;a===2?T=oa.select("body").select("#MathJax_SVG_glyphs"):T=w.select("defs"),t(w,T,b)}l.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},m=function(){n!=="svg"&&(MathJax.config.startup.output=n)},y=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},x=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,v,d,p,y):a===3&&(u(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){v(),d(),m(),x()}))}var qq={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Jue={sub:"0.3em",sup:"-0.6em"},$ue={sub:"-0.21em",sup:"0.42em"},Mq="\u200B",kq=["http:","https:","mailto:","",void 0,":"],Lq=vi.NEWLINES=/(\r\n?|\n)/g,Kb=/(<[^<>]*>)/,Qb=/<(\/?)([^ >]*)(\s+(.*))?>/i,Kue=//i;vi.BR_TAG_ALL=//gi;var Cq=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Eq=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Dq=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Que=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function nu(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Kp(a)}var efe=/(^|;)\s*color:/;vi.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(Kb),l=[],s="",u=0,f=0;fi?l.push(c.substr(0,m-i)+n):l.push(c.substr(0,m));break}s=""}}return l.join("")};var rfe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},tfe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Kp(e){return e.replace(tfe,function(r,t){var a;return t.charAt(0)==="#"?a=afe(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=rfe[t],a||r})}vi.convertEntities=Kp;function afe(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function nfe(e,r){r=r.replace(Lq," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(Jb.svg,"tspan");oa.select(k).attr({class:"line",dy:i*Yue+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var S=1;S.",r);return}var M=a.pop();k!==M.type&&sl.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=Kue.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(Kb),v=0;v{"use strict";var ife=Sr(),e1=kn(),fh=Rr(),Qp=Ce(),Pq=Tr(),ofe=Vs().isValid;function lfe(e,r,t){var a=r?Qp.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Qp.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function Bq(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var Uq=gb(),ufe=Uq.FORMAT_LINK,ffe=Uq.DATE_FORMAT_LINK;function cfe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?ex:Gq)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function ex(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+ufe+"."].join(" ")}function Gq(e,r){return ex(e,r)+[" And for dates see: "+ffe+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Yq.exports={axisHoverFormat:cfe,descriptionOnlyNumbers:ex,descriptionWithDates:Gq}});var hi=N((sDe,lL)=>{"use strict";var Vq=da(),Hf=si(),oL=ui().dash,tx=xt().extendFlat,Wq=At().templatedArray,lDe=Ta().templateFormatStringDescription,jq=Qi().descriptionWithDates,vfe=Nt().ONEDAY,Mo=Ea(),hfe=Mo.HOUR_PATTERN,dfe=Mo.WEEKDAY_PATTERN,rx={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},pfe=tx({},rx,{values:rx.values.slice().concat(["sync"])});function Zq(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var Xq={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Jq={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},$q={valType:"data_array",editType:"ticks"},Kq={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Qq(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function eL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var rL={valType:"color",dflt:Hf.defaultLine,editType:"ticks"},tL={valType:"color",dflt:Hf.lightLine,editType:"ticks"};function aL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var nL=tx({},oL,{editType:"ticks"}),iL={valType:"boolean",editType:"ticks"};lL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Hf.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Vq({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Mo.idRegex.x.toString(),Mo.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Mo.idRegex.x.toString(),Mo.idRegex.y.toString()],editType:"calc"},rangebreaks:Wq("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[dfe,hfe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:vfe},editType:"calc"}),tickmode:pfe,nticks:Zq(),tick0:Xq,dtick:Jq,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:$q,ticktext:{valType:"data_array",editType:"ticks"},ticks:Kq,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Qq(),tickwidth:eL(),tickcolor:rL,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:tx({},oL,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:Vq({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:jq("tick label")},tickformatstops:Wq("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:jq("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Hf.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:iL,gridcolor:tL,gridwidth:aL(),griddash:nL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Hf.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Hf.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Mo.idRegex.x.toString(),Mo.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Mo.idRegex.x.toString(),Mo.idRegex.y.toString()],editType:"plot"},minor:{tickmode:rx,nticks:Zq("minor"),tick0:Xq,dtick:Jq,tickvals:$q,ticks:Kq,ticklen:Qq("minor"),tickwidth:eL("minor"),tickcolor:rL,gridcolor:tL,gridwidth:aL("minor"),griddash:nL,showgrid:iL,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var r1=N((uDe,fL)=>{"use strict";var Et=hi(),sL=da(),uL=xt().extendFlat,yfe=Xi().overrideAll;fL.exports=yfe({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Et.linecolor,outlinewidth:Et.linewidth,bordercolor:Et.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Et.minor.tickmode,nticks:Et.nticks,tick0:Et.tick0,dtick:Et.dtick,tickvals:Et.tickvals,ticktext:Et.ticktext,ticks:uL({},Et.ticks,{dflt:""}),ticklabeloverflow:uL({},Et.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Et.ticklen,tickwidth:Et.tickwidth,tickcolor:Et.tickcolor,ticklabelstep:Et.ticklabelstep,showticklabels:Et.showticklabels,labelalias:Et.labelalias,tickfont:sL({}),tickangle:Et.tickangle,tickformat:Et.tickformat,tickformatstops:Et.tickformatstops,tickprefix:Et.tickprefix,showtickprefix:Et.showtickprefix,ticksuffix:Et.ticksuffix,showticksuffix:Et.showticksuffix,separatethousands:Et.separatethousands,exponentformat:Et.exponentformat,minexponent:Et.minexponent,showexponent:Et.showexponent,title:{text:{valType:"string"},font:sL({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var ko=N((cDe,vL)=>{"use strict";var mfe=r1(),gfe=Af().counter,bfe=kb(),cL=Vs().scales,fDe=bfe(cL);function t1(e){return"`"+e+"`"}vL.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?cL[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+t1(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",m=a+"max",y=a+"mid",x=t1(u+d),w=t1(u+p),_=t1(u+m),b=w+" and "+_,T={};T[p]=T[m]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=mfe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:gfe("coloraxis"),dflt:null,editType:"calc"}),M}});var nx=N((vDe,hL)=>{"use strict";var xfe=xt().extendFlat,_fe=ko(),ax=Vs().scales;hL.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:ax.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:ax.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:ax.RdBu,editType:"calc"}},coloraxis:xfe({_isSubplotObj:!0,editType:"calc"},_fe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var ix=N((hDe,dL)=>{"use strict";var wfe=Ce();dL.exports=function(r){return wfe.isPlainObject(r.colorbar)}});var sx=N(lx=>{"use strict";var ox=Rr(),pL=Ce(),yL=Nt(),Tfe=yL.ONEDAY,Afe=yL.ONEWEEK;lx.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Tfe:1;if(!e)return i;if(ox(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.substr(1);return l=ox(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};lx.tick0=function(e,r,t,a){if(r==="date")return pL.cleanDate(e,pL.dateTick0(t,a%Afe===0?1:0));if(!(a==="D1"||a==="D2"))return ox(e)?Number(e):0}});var a1=N((pDe,gL)=>{"use strict";var mL=sx(),Mfe=Ce().isArrayOrTypedArray,kfe=Vn().isTypedArraySpec,Sfe=Vn().decodeTypedArraySpec;gL.exports=function(r,t,a,n,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(w){var _=l[w];return kfe(_)&&(_=Sfe(_)),_!==void 0?_:(s._template||{})[w]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=Mfe(d)?"array":v?"linear":"auto",m=a(u+"tickmode",p);if(m==="auto"||m==="sync")a(u+"nticks");else if(m==="linear"){var y=s.dtick=mL.dtick(v,n);s.tick0=mL.tick0(c,n,t.calendar,y)}else if(n!=="multicategory"){var x=a(u+"tickvals");x===void 0?s.tickmode="auto":o||a("ticktext")}}});var n1=N((yDe,xL)=>{"use strict";var ux=Ce(),bL=hi();xL.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?bL.minor:bL,u=i?"minor.":"",f=ux.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=ux.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=ux.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var fx=N((mDe,_L)=>{"use strict";_L.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var eo=N((gDe,wL)=>{"use strict";var i1=Ce(),qfe=At();wL.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=i1.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=qfe.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var cx=Ce(),Lfe=Tr().contrast,TL=hi(),Cfe=fx(),Efe=eo();AL.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");cx.isPlainObject(o)||delete t.labelalias;var l=Cfe(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?Lfe(i.bgColor):f&&f!==TL.color.dflt?f:u.color;if(cx.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");Efe(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Dfe}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function Dfe(e,r){function t(n,i){return cx.coerce(e,r,TL.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var l1=N((xDe,ML)=>{"use strict";var Rfe=fx();ML.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Rfe(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var vx=N((_De,kL)=>{"use strict";var Xl=Ce(),Pfe=At(),Ffe=a1(),Nfe=n1(),zfe=o1(),Ife=l1(),Ofe=r1();kL.exports=function(r,t,a){var n=Pfe.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,R){return Xl.coerce(i,n,Ofe,P,R)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var p=o("yref"),m=o("xref"),y=p==="paper",x=m==="paper",w,_,b,T="left";c?(b="middle",T=x?"left":"right",w=x?1.02:1,_=.5):(b=y?"bottom":"top",T="center",w=.5,_=y?1.02:1),Xl.coerce(i,n,{x:{valType:"number",min:x?-2:0,max:x?3:1,dflt:w}},"x"),Xl.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:_}},"y"),o("xanchor",T),o("xpad"),o("yanchor",b),o("ypad"),Xl.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=Xl.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),Ffe(i,n,o,"linear");var M=a.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(S.bgColor="black"),Ife(i,n,o,"linear",S),zfe(i,n,o,"linear",S),Nfe(i,n,o,"linear",S),o("title.text",a._dfltTitle.colorbar);var E=n.showticklabels?n.tickfont:M,D=Xl.extendFlat({},M,{family:E.family,size:Xl.bigFont(E.size)});Xl.coerceFont(o,"title.font",D),o("title.side",c?"top":"right")}});var ul=N((wDe,LL)=>{"use strict";var SL=Rr(),dx=Ce(),Bfe=ix(),Hfe=vx(),qL=Vs().isValid,Ufe=gr().traceIs;function hx(e,r){var t=r.slice(0,r.length-1);return r?dx.nestedProperty(e,t).get()||{}:e}LL.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=hx(r,o),f=hx(t,o),c=hx(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var m=Ufe(t,"contour")&&dx.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[p];y?(y[2].push(v),y[0]!==m&&(y[0]=!1,dx.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[m,t,[v]];return}}var x=u[l+"min"],w=u[l+"max"],_=SL(x)&&SL(w)&&x{"use strict";var CL=Ce(),Gfe=At(),EL=nx(),Yfe=ul();DL.exports=function(r,t){function a(c,v){return CL.coerce(r,t,EL,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return CL.coerce(i,o,EL.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=Gfe.newContainer(t,s,"coloraxis"),o._name=s,Yfe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var Vfe=Ce(),Wfe=jn().hasColorscale,jfe=jn().extractOpts;PL.exports=function(r,t){function a(f,c){var v=f["_"+c];v!==void 0&&(f[c]=v)}function n(f,c){var v=c.container?Vfe.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=jfe(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var NL=Rr(),px=Ce(),Zfe=jn().extractOpts;zL.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?px.nestedProperty(t,o).get():t,s=Zfe(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return px.aggNums(Math.min,null,i)},p=function(){return px.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&NL(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&NL(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var So=N((kDe,IL)=>{"use strict";var s1=Vs(),Gf=jn();IL.exports={moduleType:"component",name:"colorscale",attributes:ko(),layoutAttributes:nx(),supplyLayoutDefaults:RL(),handleDefaults:ul(),crossTraceDefaults:FL(),calc:Uf(),scales:s1.scales,defaultScale:s1.defaultScale,getScale:s1.get,isValidScale:s1.isValid,hasColorscale:Gf.hasColorscale,extractOpts:Gf.extractOpts,extractScale:Gf.extractScale,flipScale:Gf.flipScale,makeColorScaleFunc:Gf.makeColorScaleFunc,makeColorScaleFuncFromTrace:Gf.makeColorScaleFuncFromTrace}});var Dn=N((SDe,BL)=>{"use strict";var OL=Ce(),Xfe=Vn().isTypedArraySpec;BL.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return OL.isPlainObject(r)&&(OL.isArrayOrTypedArray(r.size)||Xfe(r.size))}}});var UL=N((qDe,HL)=>{"use strict";var Jfe=Rr();HL.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return Jfe(s)&&s>0?Math.max(s,i):0}}});var qo=N(Ja=>{"use strict";var GL=Ce();Ja.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ja.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{WL.exports=rce;var yx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},ece=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function rce(e){var r=[];return e.replace(ece,function(t,a,n){var i=a.toLowerCase();for(n=ace(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==yx[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var nce=mx(),Je=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",jL=Math.sqrt(2),Jl=Math.sqrt(3),gx=Math.PI,bx=Math.cos,xx=Math.sin;KL.exports={circle:{n:0,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Cr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.3,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.4,2),n=Je(e*1.2,2);return Cr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.8/jL,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Cr(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.951,2),n=Je(e*.588,2),i=Je(-e,2),o=Je(e*-.309,2),l=Je(e*.809,2);return Cr(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Jl/2,2);return Cr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Jl/2,2);return Cr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.924,2),n=Je(e*.383,2);return Cr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Lr(r))return qr;var a=e*1.4,n=Je(a*.225,2),i=Je(a*.951,2),o=Je(a*.363,2),l=Je(a*.588,2),s=Je(-a,2),u=Je(a*-.309,2),f=Je(a*.118,2),c=Je(a*.809,2),v=Je(a*.382,2);return Cr(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.66,2),n=Je(e*.38,2),i=Je(e*.76,2);return Cr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*Jl*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),o=Je(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Cr(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*Jl*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),o=Je(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Cr(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.1,2),n=Je(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Cr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2),n=Je(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Cr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.7,2),n=Je(e*1.4,2);return Cr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2),n=Je(e*.7,2);return Cr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e/jL,2);return Cr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.3,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.3,2),n=Je(e*.65,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*.85,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e/2,2),n=Je(e,2);return Cr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2);return Cr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2);return Cr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Lr(r))return qr;var a=gx/2.5,n=2*e*bx(a),i=2*e*xx(a);return Cr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Lr(r))return qr;var a=gx/4,n=2*e*bx(a),i=2*e*xx(a);return Cr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Lr(e){return e===null}var ZL,XL,JL,$L;function Cr(e,r,t){if((!e||e%360===0)&&!r)return t;if(JL===e&&$L===r&&ZL===t)return XL;JL=e,$L=r,ZL=t;function a(y,x){var w=bx(y),_=xx(y),b=x[0],T=x[1]+(r||0);return[b*w-T*_,b*_+T*w]}for(var n=e/180*gx,i=0,o=0,l=nce(t),s="",u=0;u{"use strict";var Aa=Sr(),gt=Ce(),ice=gt.numberFormat,su=Rr(),kx=kn(),f1=gr(),Ua=Tr(),oce=So(),vh=gt.strTranslate,c1=Da(),lce=ll(),sce=Xa(),uce=sce.LINE_SPACING,uC=xp().DESELECTDIM,fce=Dn(),cce=UL(),vce=qo().appendArrayPointValue,tr=bC.exports={};tr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Ua.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",_x(dce(f))),s&&e.style("text-shadow",s==="auto"?c1.makeTextShadow(Ua.contrast(i)):_x(s)),u&&e.style("text-decoration-line",_x(pce(u)))};function _x(e){return e==="none"?void 0:e}var hce={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function dce(e){return hce[e]}function pce(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}tr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};tr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};tr.setRect=function(e,r,t,a,n){e.call(tr.setPosition,r,t).call(tr.setSize,a,n)};tr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(su(n)&&su(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",vh(n,i));else return!1;return!0};tr.translatePoints=function(e,r,t){e.each(function(a){var n=Aa.select(this);tr.translatePoint(a,n,r,t)})};tr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};tr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=f1.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){tr.hideOutsideRangePoint(u,Aa.select(this),t,a,o,l)})})}};tr.crispRound=function(e,r,t){return!r||!su(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};tr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Ua.stroke(r,a||i.color),tr.dashLine(r,l,o)};tr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";Aa.select(this).call(Ua.stroke,t||i.color).call(tr.dashLine,l,o)})};tr.dashLine=function(e,r,t){t=+t||0,r=tr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};tr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function fC(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=tr.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;tr.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,x;p==="horizontal"?(y={x:i.start,y:0},x={x:i.stop,y:0}):p==="vertical"&&(y={x:0,y:i.start},x={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),x.x=r._xA.c2p(x.x===void 0?r._extremes.x.max[0].val:x.x,!0),x.y=r._yA.c2p(x.y===void 0?r._extremes.y.max[0].val:x.y,!0),e.call(hC,t,m,"linear",i.colorscale,"fill",y,x,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(tr.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Ua.fill,r.fillcolor)}tr.singleFillStyle=function(e,r){var t=Aa.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};fC(e,n,r,!1)};tr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=Aa.select(this);a[0].trace&&fC(n,a[0].trace,r,t)})};var eC=QL();tr.symbolNames=[];tr.symbolFuncs=[];tr.symbolBackOffs=[];tr.symbolNeedLines={};tr.symbolNoDot={};tr.symbolNoFill={};tr.symbolList=[];Object.keys(eC).forEach(function(e){var r=eC[e],t=r.n;tr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),tr.symbolNames[t]=e,tr.symbolFuncs[t]=r.f,tr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(tr.symbolNeedLines[t]=!0),r.noDot?tr.symbolNoDot[t]=!0:tr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(tr.symbolNoFill[t]=!0)});var yce=tr.symbolNames.length,mce="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";tr.symbolNumber=function(e){if(su(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=tr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=yce||e>=400?0:Math.floor(Math.max(e,0))};function cC(e,r,t,a){var n=e%100;return tr.symbolFuncs[n](r,t,a)+(e>=200?mce:"")}var rC=ice("~f"),vC={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};tr.gradient=function(e,r,t,a,n,i){var o=vC[a];return hC(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function hC(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=tr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=Lx(e,t),c=qx(e,t);r.attr("d",cC(u,s,f,c))}var v=!1,d,p,m;if(e.so)m=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;m=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):gt.isArrayOrTypedArray(l.color)?p=Ua.defaultLine:p=l.color,gt.isArrayOrTypedArray(o.color)&&(d=Ua.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}if(e.om)r.call(Ua.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var x=o.gradient,w=e.mgt;w?v=!0:w=x&&x.type,gt.isArrayOrTypedArray(w)&&(w=w[0],vC[w]||(w=0));var _=o.pattern,b=tr.getPatternAttr,T=_&&(b(_.shape,e.i,"")||b(_.path,e.i,""));if(w&&w!=="none"){var k=e.mgc;k?v=!0:k=x.color;var M=t.uid;v&&(M+="-"+e.i),tr.gradient(r,n,M,w,[[0,k],[1,d]],"fill")}else if(T){var S=!1,E=_.fgcolor;!E&&i&&i.color&&(E=i.color,S=!0);var D=b(E,e.i,i&&i.color||null),P=b(_.bgcolor,e.i,null),R=_.fgopacity,z=b(_.size,e.i,8),O=b(_.solidity,e.i,.3);S=S||e.mcc||gt.isArrayOrTypedArray(_.shape)||gt.isArrayOrTypedArray(_.path)||gt.isArrayOrTypedArray(_.bgcolor)||gt.isArrayOrTypedArray(_.fgcolor)||gt.isArrayOrTypedArray(_.size)||gt.isArrayOrTypedArray(_.solidity);var B=t.uid;S&&(B+="-"+e.i),tr.pattern(r,"point",n,B,T,z,O,e.mcc,_.fillmode,P,D,R)}else gt.isArrayOrTypedArray(d)?Ua.fill(r,d[e.i]):Ua.fill(r,d);m&&Ua.stroke(r,p)}};tr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=tr.tryColorscale(t,""),r.lineScale=tr.tryColorscale(t,"line"),f1.traceIs(e,"symbols")&&(r.ms2mrc=fce.isBubble(e)?cce(e):function(){return(t.size||6)/2}),e.selectedpoints&>.extendFlat(r,tr.makeSelectedPointStyleFns(e)),r};tr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(gt.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(b){var T=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:T:c?u:uC*T});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(b){var T=b.mcc||v;return b.selected?d||T:p||T});var m=n.size,y=i.size,x=o.size,w=y!==void 0,_=x!==void 0;return f1.traceIs(e,"symbols")&&(w||_)&&(r.selectedSizeFn=function(b){var T=b.mrc||m/2;return b.selected?w?y/2:T:_?x/2:T}),r};tr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:Ua.addOpacity(c,uC))},r};tr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=tr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Ua.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",cC(tr.symbolNumber(l),s,Lx(o,r),qx(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=Aa.select(this),l=0;l0?t:0}tr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=tr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=Aa.select(this),u=i?gt.extractOption(l,r,"txt","texttemplate"):gt.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},v={};vce(v,r,l.i);var d=r._meta||{};u=gt.texttemplateString(u,c,o._d3locale,v,l,d)}var p=l.tp||r.textposition,m=pC(l,r),y=a?a(l):l.tc||r.textfont.color;s.call(tr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:m,color:y}).text(u).call(c1.convertToTspans,t).call(dC,p,m,l.mrc)})}};tr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=tr.makeSelectedTextStyleFns(r);e.each(function(a){var n=Aa.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=pC(a,r);Ua.fill(n,i);var s=f1.traceIs(r,"bar-like");dC(n,o,l,a.mrc2||a.mrc,s)})}};var tC=.5;tr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(T<=c&&T>=u||T>=c&&T<=u)&&(e=[b,T])}return e}tr.applyBackoff=gC;tr.makeTester=function(){var e=gt.ensureSingleById(Aa.select("body"),"svg","js-plotly-tester",function(t){t.attr(lce.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=gt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});tr.tester=e,tr.testref=r};tr.savedBBoxes={};var Tx=0,xce=1e4;tr.bBox=function(e,r,t){t||(t=aC(e));var a;if(t){if(a=tr.savedBBoxes[t],a)return gt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=aC(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=tr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=tr.savedBBoxes[t],a)return gt.extendFlat({},a)}}var u,f;r?u=e:(f=tr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),Aa.select(u).attr("transform",null).call(c1.positionText,0,0);var c=u.getBoundingClientRect(),v=tr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return Tx>=xce&&(tr.savedBBoxes={},Tx=0),t&&(tr.savedBBoxes[t]=d),Tx++,gt.extendFlat({},d)};function aC(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}tr.setClipUrl=function(e,r,t){e.attr("clip-path",Sx(r,t))};function Sx(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}tr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};tr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=vh(r,t),o=o.trim(),e[i]("transform",o),o};tr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};tr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var _ce=/\s*sc.*/;tr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(_ce,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var wce=/translate\([^)]*\)\s*$/;tr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=Aa.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(wce);r===1&&t===1?a=[]:a=[vh(o,l),"scale("+r+","+t+")",vh(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function qx(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}tr.getMarkerStandoff=qx;var ch=Math.atan2,iu=Math.cos,Vf=Math.sin;function nC(e,r){var t=r[0],a=r[1];return[t*iu(e)-a*Vf(e),t*Vf(e)+a*iu(e)]}var iC,oC,lC,sC,Ax,Mx;function Lx(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||gt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),v=r._geo.project([u+1e-5,f]),d=ch(v[1]-n,v[0]-a),p=ch(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,x=f/180*Math.PI,w=iC/180*Math.PI,_=oC/180*Math.PI,b=w-y,T=iu(_)*Vf(b),k=Vf(_)*iu(x)-iu(_)*Vf(x)*iu(b);m=-ch(T,k)-Math.PI,iC=u,oC=f}var M=nC(d,[iu(m),0]),S=nC(p,[Vf(m),0]);t=ch(M[1]+S[1],M[0]+S[0])/Math.PI*180,i==="previous"&&!(Mx===r.uid&&e.i===Ax+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Mx===r.uid&&e.i===Ax+1&&su(a)&&su(n)){var E=a-lC,D=n-sC,P=r.line&&r.line.shape||"",R=P.slice(P.length-1);R==="h"&&(D=0),R==="v"&&(E=0),t+=ch(D,E)/Math.PI*180+90}else t=null}return lC=a,sC=n,Ax=e.i,Mx=r.uid,t}tr.getMarkerAngle=Lx});var Zf=N((RDe,TC)=>{"use strict";var Wf=Sr(),Tce=Rr(),Ace=aa(),Cx=gr(),uu=Ce(),xC=uu.strTranslate,v1=Wr(),h1=Tr(),jf=Da(),_C=xp(),Mce=Xa().OPPOSITE_SIDE,wC=/ [XY][0-9]* /,Ex=1.6,Dx=1.6;function kce(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),m=!1,y=d&&d.font?d.font:{},x=y.family,w=y.size,_=y.color,b=y.weight,T=y.style,k=y.variant,M=y.textcase,S=y.lineposition,E=y.shadow,D=t.subtitlePropName,P=!!D,R=t.subtitlePlaceholder,z=(n.title||{}).subtitle||{text:"",font:{}},O=z.text.trim(),B=!1,V=1,G=z.font,U=G.family,Y=G.size,X=G.color,Z=G.weight,re=G.style,ce=G.variant,oe=G.textcase,fe=G.lineposition,K=G.shadow,Te;i==="title.text"?Te="titleText":i.indexOf("axis")!==-1?Te="axisTitleText":i.indexOf("colorbar")!==-1&&(Te="colorbarTitleText");var le=e._context.edits[Te];function pe(Ge,He){return Ge===void 0||He===void 0?!1:Ge.replace(wC," % ")===He.replace(wC," % ")}p===""?v=0:pe(p,o)&&(le||(p=""),v=.2,m=!0),P&&(O===""?V=0:pe(O,R)&&(le||(O=""),V=.2,B=!0)),t._meta?p=uu.templateString(p,t._meta):a._meta&&(p=uu.templateString(p,a._meta));var ie=p||O||le,ve;c||(c=uu.ensureSingle(a._infolayer,"g","g-"+r),ve=a._hColorbarMoveTitle);var W=c.selectAll("text."+r).data(ie?[0]:[]);W.enter().append("text"),W.text(p).attr("class",r),W.exit().remove();var Q=null,j=r+"-subtitle",ye=O||le;if(P&&ye&&(Q=c.selectAll("text."+j).data(ye?[0]:[]),Q.enter().append("text"),Q.text(O).attr("class",j),Q.exit().remove()),!ie)return c;function _e(Ge,He){uu.syncOrAsync([me,Pe],{title:Ge,subtitle:He})}function me(Ge){var He=Ge.title,De=Ge.subtitle,Ie;!f&&ve&&(f={}),f?(Ie="",f.rotate&&(Ie+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ve)&&(Ie+=xC(0,(f.offset||0)-(ve||0)))):Ie=null,He.attr("transform",Ie);function Be(ue){if(ue){var qe=Wf.select(ue.node().parentNode).select("."+j);if(!qe.empty()){var Oe=ue.node().getBBox();if(Oe.height){var Ze=Oe.y+Oe.height+Ex*Y;qe.attr("y",Ze)}}}}if(He.style("opacity",v*h1.opacity(_)).call(v1.font,{color:h1.rgb(_),size:Wf.round(w,2),family:x,weight:b,style:T,variant:k,textcase:M,shadow:E,lineposition:S}).attr(u).call(jf.convertToTspans,e,Be),De){var se=c.select("."+r+"-math-group"),Ae=He.node().getBBox(),je=se.node()?se.node().getBBox():void 0,ur=je?je.y+je.height+Ex*Y:Ae.y+Ae.height+Dx*Y,lr=uu.extendFlat({},u,{y:ur});De.attr("transform",Ie),De.style("opacity",V*h1.opacity(X)).call(v1.font,{color:h1.rgb(X),size:Wf.round(Y,2),family:U,weight:Z,style:re,variant:ce,textcase:oe,shadow:K,lineposition:fe}).attr(lr).call(jf.convertToTspans,e)}return Ace.previousPromises(e)}function Pe(Ge){var He=Ge.title,De=Wf.select(He.node().parentNode);if(s&&s.selection&&s.side&&p){De.attr("transform",null);var Ie=Mce[s.side],Be=s.side==="left"||s.side==="top"?-1:1,se=Tce(s.pad)?s.pad:2,Ae=v1.bBox(De.node()),je={t:0,b:0,l:0,r:0},ur=e._fullLayout._reservedMargin;for(var lr in ur)for(var ue in ur[lr]){var qe=ur[lr][ue];je[ue]=Math.max(je[ue],qe)}var Oe={left:je.l,top:je.t,right:a.width-je.r,bottom:a.height-je.b},Ze=s.maxShift||Be*(Oe[s.side]-Ae[s.side]),Ue=0;if(Ze<0)Ue=Ze;else{var Xe=s.offsetLeft||0,Qe=s.offsetTop||0;Ae.left-=Xe,Ae.right-=Xe,Ae.top-=Qe,Ae.bottom-=Qe,s.selection.each(function(){var $e=v1.bBox(this);uu.bBoxIntersect(Ae,$e,se)&&(Ue=Math.max(Ue,Be*($e[s.side]-Ae[Ie])+se))}),Ue=Math.min(Ze,Ue),n._titleScoot=Math.abs(Ue)}if(Ue>0||Ze<0){var hr={left:[-Ue,0],right:[Ue,0],top:[0,-Ue],bottom:[0,Ue]}[s.side];De.attr("transform",xC(hr[0],hr[1]))}}}W.call(_e,Q);function Ne(Ge,He){Ge.text(He).on("mouseover.opacity",function(){Wf.select(this).transition().duration(_C.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Wf.select(this).transition().duration(_C.HIDE_PLACEHOLDER).style("opacity",0)})}if(le&&(p?W.on(".opacity",null):(Ne(W,o),m=!0),W.call(jf.makeEditable,{gd:e}).on("edit",function(Ge){l!==void 0?Cx.call("_guiRestyle",e,i,Ge,l):Cx.call("_guiRelayout",e,i,Ge)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(_e)}).on("input",function(Ge){this.text(Ge||" ").call(jf.positionText,u.x,u.y)}),P)){if(P&&!p){var Re=W.node().getBBox(),ze=Re.y+Re.height+Dx*Y;Q.attr("y",ze)}O?Q.on(".opacity",null):(Ne(Q,R),B=!0),Q.call(jf.makeEditable,{gd:e}).on("edit",function(Ge){Cx.call("_guiRelayout",e,"title.subtitle.text",Ge)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(_e)}).on("input",function(Ge){this.text(Ge||" ").call(jf.positionText,Q.attr("x"),Q.attr("y"))})}return W.classed("js-placeholder",m),Q&&Q.classed("js-placeholder",B),c}TC.exports={draw:kce,SUBTITLE_PADDING_EM:Dx,SUBTITLE_PADDING_MATHJAX_EM:Ex}});var Xf=N((PDe,qC)=>{"use strict";var Sce=Sr(),qce=xf().utcFormat,Mt=Ce(),Lce=Mt.numberFormat,Lo=Rr(),$l=Mt.cleanNumber,Cce=Mt.ms2DateTime,AC=Mt.dateTime2ms,Co=Mt.ensureNumber,MC=Mt.isArrayOrTypedArray,Kl=Nt(),d1=Kl.FP_SAFE,ro=Kl.BADNUM,Ece=Kl.LOG_CLIP,Dce=Kl.ONEWEEK,p1=Kl.ONEDAY,y1=Kl.ONEHOUR,kC=Kl.ONEMIN,SC=Kl.ONESEC,m1=ia(),x1=Ea(),g1=x1.HOUR_PATTERN,b1=x1.WEEKDAY_PATTERN;function hh(e){return Math.pow(10,e)}function Rx(e){return e!=null}qC.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,T){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&T&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*Ece*Math.abs(k-M))}else return ro}function o(b,T,k,M){if((M||{}).msUTC&&Lo(b))return+b;var S=AC(b,k||r.calendar);if(S===ro)if(Lo(b)){b=+b;var E=Math.floor(Mt.mod(b+.05,1)*10),D=Math.round(b-E/10);S=AC(new Date(D))+E/10}else return ro;return S}function l(b,T,k){return Cce(b,T,k||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Rx(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var T=r._categories.length-1;return r._categoriesMap[b]=T,T}return ro}function f(b,T){for(var k=new Array(T),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,S=M*b,E=0,D=0;DR)E=D+1;else{E=S<(P+R)/2?D:D+1;break}}var z=r._B[E]||0;return isFinite(z)?p(b,r._m2,z):0},x=function(b){var T=r._rangebreaks.length;if(!T)return m(b,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return m(b,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:Co,r.l2c=r.type==="log"?hh:Co,r.l2p=y,r.p2l=x,r.c2p=r.type==="log"?function(b,T){return y(i(b,T))}:y,r.p2c=r.type==="log"?function(b){return hh(x(b))}:x,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=$l,r.c2d=r.c2r=r.l2d=r.l2r=Co,r.d2p=r.r2p=function(b){return r.l2p($l(b))},r.p2d=r.p2r=x,r.cleanPos=Co):r.type==="log"?(r.d2r=r.d2l=function(b,T){return i($l(b),T)},r.r2d=r.r2c=function(b){return hh($l(b))},r.d2c=r.r2l=$l,r.c2d=r.l2r=Co,r.c2r=i,r.l2d=hh,r.d2p=function(b,T){return r.l2p(r.d2r(b,T))},r.p2d=function(b){return hh(x(b))},r.r2p=function(b){return r.l2p($l(b))},r.p2r=x,r.cleanPos=Co):r.type==="date"?(r.d2r=r.r2d=Mt.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(b,T,k){return r.l2p(o(b,0,k))},r.p2d=r.p2r=function(b,T,k){return l(x(b),T,k)},r.cleanPos=function(b){return Mt.cleanDate(b,ro,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var T=d(b);return T!==void 0?T:r.fraction2r(.5)},r.l2r=r.c2r=Co,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:Co(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var T=v(b);return T!==void 0?T:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Co,r.r2l=v,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:Co(b)},r.setupMultiCategory=function(b){var T=r._traceIndices,k,M,S=r._matchGroup;if(S&&r._categories.length===0){for(var E in S)if(E!==a){var D=t[m1.id2name(E)];T=T.concat(D._traceIndices)}}var P=[[0,{}],[0,{}]],R=[];for(k=0;kD[1]&&(M[E?0:1]=k),M[0]===M[1]){var P=r.l2r(T),R=r.l2r(k);if(T!==void 0){var z=P+1;k!==void 0&&(z=Math.min(z,R)),M[E?1:0]=z}if(k!==void 0){var O=R+1;T!==void 0&&(O=Math.max(O,P)),M[E?0:1]=O}}}},r.cleanRange=function(b,T){r._cleanRange(b,T),r.limitRange(b)},r._cleanRange=function(b,T){T||(T={}),b||(b="range");var k=Mt.nestedProperty(r,b).get(),M,S;if(r.type==="date"?S=Mt.dfltRange(r.calendar):n==="y"?S=x1.DFLTRANGEY:r._name==="realaxis"?S=[0,1]:S=T.dfltRange||x1.DFLTRANGEX,S=S.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(S[0]=0),!k||k.length!==2){Mt.nestedProperty(r,b).set(S);return}var E=k[0]===null,D=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=Mt.cleanDate(k[0],ro,r.calendar),k[1]=Mt.cleanDate(k[1],ro,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Mt.isDateTime(k[M],r.calendar)){r[b]=S;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=Mt.constrain(r.r2l(k[0]),Mt.MIN_MS+1e3,Mt.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!Lo(k[M]))if(!(E||D)&&Lo(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[b]=S;break}if(k[M]<-d1?k[M]=-d1:k[M]>d1&&(k[M]=d1),k[0]===k[1]){var R=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=R,k[1]+=R}}},r.setScale=function(b){var T=t._size;if(r.overlaying){var k=m1.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=b&&r._r?"_r":"range",S=r.calendar;r.cleanRange(M);var E=r.r2l(r[M][0],S),D=r.r2l(r[M][1],S),P=n==="y";if(P?(r._offset=T.t+(1-r.domain[1])*T.h,r._length=T.h*(r.domain[1]-r.domain[0]),r._m=r._length/(E-D),r._b=-r._m*D):(r._offset=T.l+r.domain[0]*T.w,r._length=T.w*(r.domain[1]-r.domain[0]),r._m=r._length/(D-E),r._b=-r._m*E),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,z;if(r._rangebreaks=r.locateBreaks(Math.min(E,D),Math.max(E,D)),r._rangebreaks.length){for(R=0;RD&&(O=!O),O&&r._rangebreaks.reverse();var B=O?-1:1;for(r._m2=B*r._length/(Math.abs(D-E)-r._lBreaks),r._B.push(-r._m2*(P?D:E)),R=0;RS&&(S+=7,ES&&(S+=24,E=M&&E=M&&b=K.min&&(reK.max&&(K.max=ce),oe=!1)}oe&&D.push({min:re,max:ce})}};for(k=0;k{"use strict";var LC=Rr(),Px=Ce(),Rce=Nt().BADNUM,_1=Px.isArrayOrTypedArray,Pce=Px.isDateTime,Fce=Px.cleanNumber,CC=Math.round;DC.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(_1(n)&&!n.length)return"-";if(!i&&Bce(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function EC(e){return Math.max(1,(e-1)/1e3)}function Oce(e,r){for(var t=e.length,a=EC(t),n=0,i=0,o={},l=0;ln*2}function Bce(e){return _1(e[0])&&_1(e[1])}});var dh=N((NDe,BC)=>{"use strict";var Hce=Sr(),NC=Rr(),Ql=Ce(),T1=Nt().FP_SAFE,Uce=gr(),Gce=Wr(),zC=ia(),Yce=zC.getFromId,Vce=zC.isLinked;BC.exports={applyAutorangeOptions:OC,getAutoRange:Fx,makePadFn:Nx,doAutoRange:jce,findExtremes:Zce,concatExtremes:Ox};function Fx(e,r){var t,a,n=[],i=e._fullLayout,o=Nx(i,r,0),l=Nx(i,r,1),s=Ox(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Ql.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t0&&(D=_-o(k)-l(M),D>b?P/D>T&&(S=k,E=M,T=P/D):P/_>T&&(S={val:k.val,nopad:1},E={val:M.val,nopad:1},T=P/_));function R(G,U){return Math.max(G,l(U))}if(c===v){var z=c-1,O=c+1;if(x)if(c===0)n=[0,1];else{var B=(c>0?f:u).reduce(R,0),V=c/(1-Math.min(.5,B/_));n=c>0?[0,V]:[V,0]}else w?n=[Math.max(0,z),Math.max(1,O)]:n=[z,O]}else x?(S.val>=0&&(S={val:0,nopad:1}),E.val<=0&&(E={val:0,nopad:1})):w&&(S.val-T*o(S)<0&&(S={val:0,nopad:1}),E.val<=0&&(E={val:1,nopad:1})),T=(E.val-S.val-RC(r,k.val,M.val))/(_-o(S)-l(E)),n=[S.val-T*o(S),E.val+T*l(E)];return n=OC(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Ql.simpleMap(n,r.l2r||Number)}function RC(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=b(t.vpadplus||t.vpad),S=b(t.vpadminus||t.vpad);if(!u){if(w=1/0,_=-1/0,s)for(c=0;c0&&(w=v),v>_&&v-T1&&(w=v),v>_&&v=P;c--)D(c);return{min:a,max:n,opts:t}}function zx(e,r,t,a){IC(e,r,t,a,Xce)}function Ix(e,r,t,a){IC(e,r,t,a,Jce)}function IC(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function FC(e){return NC(e)&&Math.abs(e)=r}function $ce(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&A1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&A1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Kce(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&A1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&A1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function A1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=$ce(t,r),a=Kce(a,r),[t,a]}});var Ir=N((zDe,sE)=>{"use strict";var di=Sr(),la=Rr(),Jf=aa(),yh=gr(),xr=Ce(),$f=xr.strTranslate,fu=Da(),Qce=Zf(),mh=Tr(),Zn=Wr(),eve=hi(),HC=sx(),Ga=Nt(),rve=Ga.ONEMAXYEAR,S1=Ga.ONEAVGYEAR,q1=Ga.ONEMINYEAR,tve=Ga.ONEMAXQUARTER,Gx=Ga.ONEAVGQUARTER,L1=Ga.ONEMINQUARTER,ave=Ga.ONEMAXMONTH,Kf=Ga.ONEAVGMONTH,C1=Ga.ONEMINMONTH,Xn=Ga.ONEWEEK,on=Ga.ONEDAY,es=on/2,Do=Ga.ONEHOUR,gh=Ga.ONEMIN,E1=Ga.ONESEC,nve=Ga.ONEMILLI,ive=Ga.ONEMICROSEC,cu=Ga.MINUS_SIGN,P1=Ga.BADNUM,Yx={K:"zeroline"},Vx={K:"gridline",L:"path"},Wx={K:"minor-gridline",L:"path"},KC={K:"tick",L:"path"},UC={K:"tick",L:"text"},GC={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},F1=Xa(),ph=F1.MID_SHIFT,vu=F1.CAP_SHIFT,bh=F1.LINE_SPACING,ove=F1.OPPOSITE_SIDE,D1=3,Ve=sE.exports={};Ve.setConvert=Xf();var lve=w1(),fl=ia(),sve=fl.idSort,uve=fl.isLinked;Ve.id2name=fl.id2name;Ve.name2id=fl.name2id;Ve.cleanId=fl.cleanId;Ve.list=fl.list;Ve.listIds=fl.listIds;Ve.getFromId=fl.getFromId;Ve.getFromTrace=fl.getFromTrace;var QC=dh();Ve.getAutoRange=QC.getAutoRange;Ve.findExtremes=QC.findExtremes;var fve=1e-4;function Jx(e){var r=(e[1]-e[0])*fve;return[e[0]-r,e[1]+r]}Ve.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",u={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},xr.coerce(e,r,u,s)};Ve.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Ve.coercePosition=function(e,r,t,a,n,i){var o,l,s=Ve.getRefType(a);if(s!=="range")o=xr.ensureNumber,l=t(n,i);else{var u=Ve.getFromId(r,a);i=u.fraction2r(i),l=t(n,i),o=u.cleanPos}e[n]=o(l)};Ve.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?xr.ensureNumber:Ve.getFromId(r,t).cleanPos;return a(e)};Ve.redrawComponents=function(e,r){r=r||Ve.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var s=yh.getComponentMethod(n,i),u={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ve.saveRangeInitial=function(e,r){for(var t=Ve.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.substr(1));i.exactYears>o&&l%12===0?e=Ve.tickIncrement(e,"M6","reverse")+on*1.5:i.exactMonths>o?e=Ve.tickIncrement(e,"M1","reverse")+on*15.5:e-=es;var s=Ve.tickIncrement(e,t);if(s<=a)return s}return e}Ve.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&la(r._tmin),n;if(a){var i=Ve.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=xr.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=xr.simpleMap(n,r.l2r),e._isMinor=!0,Ve.prepTicks(e,t),a){var l=la(r.dtick),s=la(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?Bx(u,f)?u===2*Xn&&f===2*on&&(e.dtick=Xn):u===2*Xn&&f===3*on?e.dtick=Xn:u===Xn&&!(r._input.minor||{}).nticks?e.dtick=on:WC(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Bx(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?Bx(u,f)||(e.dtick=WC(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function Bx(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function WC(e,r){return Math.abs(e/r-1)<.001}Ve.prepTicks=function(e,r){var t=xr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?xr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=xr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ve.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,c=0;f>=q1?u>=q1&&u<=rve?c=u:c=S1:t===Gx&&f>=L1?u>=L1&&u<=tve?c=u:c=Gx:f>=C1?u>=C1&&u<=ave?c=u:c=Kf:t===Xn&&f>=Xn?c=Xn:f>=on?c=on:t===es&&f>=es?c=es:t===Do&&f>=Do&&(c=Do);var v;c>=u&&(c=u,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,y=0;yXn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Ve.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||xr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=xr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(_?0:1);b--){var T=!b;b?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=b?r:xr.extendFlat({},r,r.minor);if(T?Ve.prepMinorTicks(k,r,t):Ve.prepTicks(k,t),k.tickmode==="array"){b?(y=[],p=jC(r,!T)):(x=[],m=jC(r,!T));continue}if(k.tickmode==="sync"){y=[],p=yve(r);continue}var M=Jx(u),S=M[0],E=M[1],D=la(k.dtick),P=a==="log"&&!(D||k.dtick.charAt(0)==="L"),R=Ve.tickFirst(k,t);if(b){if(r._tmin=R,R=E:O<=E;O=Ve.tickIncrement(O,G,f,n)){if(b&&B++,k.rangebreaks&&!f){if(O=v)break}if(y.length>d||O===z)break;z=O;var U={value:O};b?(P&&O!==(O|0)&&(U.simpleLabel=!0),i>1&&B%i&&(U.skipLabel=!0),y.push(U)):(U.minor=!0,x.push(U))}}if(!x||x.length<2)s=!1;else{var Y=(x[1].value-x[0].value)*(l?-1:1);Bve(Y,r.tickformat)||(s=!1)}if(!s)w=y;else{var X=y.concat(x);o&&y.length&&(X=X.slice(1)),X=X.sort(function(ze,Ge){return ze.value-Ge.value}).filter(function(ze,Ge,He){return Ge===0||ze.value!==He[Ge-1].value});var Z=X.map(function(ze,Ge){return ze.minor===void 0&&!ze.skipLabel?Ge:null}).filter(function(ze){return ze!==null});Z.forEach(function(ze){s.map(function(Ge){var He=ze+Ge;He>=0&&He-1;ie--){if(y[ie].drop){y.splice(ie,1);continue}y[ie].value=Ux(y[ie].value,r);var j=r.c2p(y[ie].value);(ve?Q>j-W:Qv||Dev&&(He.periodX=v),Den&&vS1)r/=S1,a=n(10),e.dtick="M"+12*Eo(r,a,M1);else if(i>Kf)r/=Kf,e.dtick="M"+Eo(r,1,ZC);else if(i>on){if(e.dtick=Eo(r,on,e._hasDayOfWeekBreaks?[1,2,7,14]:mve),!t){var o=Ve.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=xr.dateTick0(e.calendar,2):e.tick0=xr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Do?e.dtick=Eo(r,Do,ZC):i>gh?e.dtick=Eo(r,gh,XC):i>E1?e.dtick=Eo(r,E1,XC):(a=n(10),e.dtick=Eo(r,a,M1))}else if(e.type==="log"){e.tick0=0;var s=xr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Eo(r,a,M1)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):Qx(e)?(e.tick0=0,a=1,e.dtick=Eo(r,a,gve)):(e.tick0=0,a=n(10),e.dtick=Eo(r,a,M1));if(e.dtick===0&&(e.dtick=1),!la(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function aE(e){var r=e.dtick;if(e._tickexponent=0,!la(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=on&&n<=10||r>=on*15)e._tickround="d";else if(r>=gh&&n<=16||r>=Do)e._tickround="M";else if(r>=E1&&n<=19||r>=gh)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(la(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);la(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(R1(e.exponentformat)&&!$x(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ve.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(la(r))return xr.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.substr(1));if(i==="M")return xr.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?tE:rE,s=e+n*.01,u=xr.roundUp(xr.mod(s,1),l,t);return Math.floor(s)+Math.log(di.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ve.tickFirst=function(e,r){var t=e.r2l||Number,a=xr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&x<=e._length?y:null};if(i&&xr.isArrayOrTypedArray(e.ticktext)){var c=xr.simpleMap(e.range,e.r2l),v=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(u=0;u"+l;else{var u=_h(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function xve(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=xh(Math.pow(10,o),e,n,a);else if(la(i)||s==="D"&&(e.minorloglabels==="complete"||xr.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(xr.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||R1(p)&&$x(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":cu)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":cu)+d:(r.text=xh(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,xr.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var m=String(r.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function _ve(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function wve(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function Tve(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=xh(r.x,e,n,a)}function Ave(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Mve(i);if(o[1]>=100)r.text=xh(xr.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=cu+r.text)}}}else r.text=xh(r.x,e,n,a)}function Mve(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var kve=["f","p","n","\u03BC","m","","k","M","G","T"];function R1(e){return e==="SI"||e==="B"}function $x(e){return e>14||e<-15}function xh(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=Ve.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:la(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};aE(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,cu);var c=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+p+"":o==="B"&&l===9?e+="B":R1(o)&&(e+=kve[l/3+5])}return n?cu+e:e}Ve.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Kf}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),v=f.indexOf(u.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},v=u[0],d=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return xr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ve.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=Ve.drawOne(e,u,t);return u._shiftPusher&&Xx(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=xr.simpleMap(u._r,u.r2l),f}}}))};Ve.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Ve.counterLetter(u),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),Xx(r,p,a,!0),Xx(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Ove(r,a));var m=v[f+"axislayer"],y=r._mainLinePosition,x=y+=r._shift,w=r._mainMirrorPosition,_=r._vals=Ve.calcTicks(r),b=[r.mirror,x,w].join("_");for(i=0;i<_.length;i++)_[i].axInfo=b;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var T={};function k(Re){var ze=u+(Re||"tick");return T[ze]||(T[ze]=Cve(r,ze,x)),T[ze]}if(r.visible){var M=Ve.makeTransTickFn(r),S=Ve.makeTransTickLabelFn(r),E,D,P=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var z=Sve(r,_);D=Ve.clipEnds(r,z),E=P?D:z}else D=Ve.clipEnds(r,_),E=P&&r.ticklabelmode!=="period"?D:_;var O=r._gridVals=D,B=Lve(r,_);if(!s._hasOnlyLargeSploms){var V=r._subplotsWith,G={};for(i=0;i0?De.bottom-Ge:0,He))));var Ae=0,je=0;if(r._shiftPusher&&(Ae=Math.max(He,De.height>0?Re==="l"?Ge-De.left:De.right-Ge:0),r.title.text!==s._dfltTitle[f]&&(je=(r._titleStandoff||0)+(r._titleScoot||0),Re==="l"&&(je+=$C(r))),r._fullDepth=Math.max(Ae,je)),r.automargin){Ie={x:0,y:0,r:0,l:0,t:0,b:0};var ur=[0,1],lr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Re==="b"?Ie[Re]=r._depth:(Ie[Re]=r._depth=Math.max(De.width>0?Ge-De.top:0,He),ur.reverse()),De.width>0){var ue=De.right-(r._offset+r._length);ue>0&&(Ie.xr=1,Ie.r=ue);var qe=r._offset-De.left;qe>0&&(Ie.xl=0,Ie.l=qe)}}else if(Re==="l"?(r._depth=Math.max(De.height>0?Ge-De.left:0,He),Ie[Re]=r._depth-lr):(r._depth=Math.max(De.height>0?De.right-Ge:0,He),Ie[Re]=r._depth+lr,ur.reverse()),De.height>0){var Oe=De.bottom-(r._offset+r._length);Oe>0&&(Ie.yb=0,Ie.b=Oe);var Ze=r._offset-De.top;Ze>0&&(Ie.yt=1,Ie.t=Ze)}Ie[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[ur[0]],r.title.text!==s._dfltTitle[f]&&(Ie[Re]+=$C(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Be={x:0,y:0,r:0,l:0,t:0,b:0},Be[ze]=r.linewidth,r.mirror&&r.mirror!==!0&&(Be[ze]+=He),r.mirror===!0||r.mirror==="ticks"?Be[c]=r._anchorAxis.domain[ur[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Be[c]=[r._counterDomainMin,r._counterDomainMax][ur[1]]))}Ne&&(se=yh.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(JC(Ie,r.automargin),JC(Be,r.automargin)),Jf.autoMargin(e,Kx(r),Ie),Jf.autoMargin(e,oE(r),Be),Jf.autoMargin(e,lE(r),se)}),xr.syncOrAsync(me)}};function JC(e,r){if(e){var t=Object.keys(GC).reduce(function(a,n){return r.indexOf(n)!==-1&&GC[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Sve(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(xr.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return $f(n+e._offset+e.l2p(jx(v))+t,i+a)}:function(v){return $f(i+a,n+e._offset+e.l2p(jx(v))+t)}};function jx(e){return e.periodX!==void 0?e.periodX:e.x}function Eve(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=D1,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*vu,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=D1),s&&f==="top"&&(v-=d*(1-vu)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}Ve.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};Ve.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(z){return a.indexOf(z)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,m=v?e.ticklen:0;if(c?m*=-1:f&&(m=0),v&&(d+=m,t)){var y=xr.deg2rad(t);d=m*Math.cos(y)+1,p=m*Math.sin(y)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var x={labelStandoff:d,labelShift:p},w,_,b,T,k=0,M=e.side,S=e._id.charAt(0),E=e.tickangle,D;if(S==="x")D=!c&&M==="bottom"||c&&M==="top",T=D?1:-1,c&&(T*=-1),w=p*T,_=r+d*T,b=D?1:-.2,Math.abs(E)===90&&(c?b+=ph:E===-90&&M==="bottom"?b=vu:E===90&&M==="top"?b=ph:b=.5,k=ph/2*(E/90)),x.xFn=function(z){return z.dx+w+k*z.fontSize},x.yFn=function(z){return z.dy+_+z.fontSize*b},x.anchorFn=function(z,O){if(f){if(l)return"end";if(s)return"start"}return!la(O)||O===0||O===180?"middle":O*T<0!==c?"end":"start"},x.heightFn=function(z,O,B){return O<-60||O>60?-.5*B:e.side==="top"!==c?-B:0};else if(S==="y"){if(D=!c&&M==="left"||c&&M==="right",T=D?1:-1,c&&(T*=-1),w=d,_=p*T,b=0,!c&&Math.abs(E)===90&&(E===-90&&M==="left"||E===90&&M==="right"?b=vu:b=.5),c){var P=la(E)?+E:0;if(P!==0){var R=xr.deg2rad(P);k=Math.abs(Math.sin(R))*vu*T,b=0}}x.xFn=function(z){return z.dx+r-(w+z.fontSize*b)*T+k*z.fontSize},x.yFn=function(z){return z.dy+_+z.fontSize*ph},x.anchorFn=function(z,O){return la(O)&&Math.abs(O)===90?"middle":D?"end":"start"},x.heightFn=function(z,O,B){return e.side==="right"&&(O*=-1),O<-30?-B:O<30?-.5*B:0}}return x};function N1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ve.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,N1);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return mh.stroke(di.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return Zn.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),z1(r,[KC]),i.attr("transform",t.transFn)};Ve.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(x){return x.minor}):[],o=r.showgrid?t.vals.filter(function(x){return!x.minor}):[],l=t.counterAxis;if(l&&Ve.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;p--){var m=p?v:d;if(m){var y=m.selectAll("path."+a).data(p?o:i,N1);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(x){return mh.stroke(di.select(this),x.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(x){return Zn.dashStyle(x.minor?r.minor.griddash:r.griddash,x.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(x){return(x.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}z1(r,[Vx,Wx])}};Ve.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ve.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return sve(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(mh.stroke,r.zerolinecolor||mh.defaultLine).style("stroke-width",Zn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),z1(r,[Yx])};Ve.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(Y){return Y.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],N1),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(Y){var X=di.select(this),Z=e._promises.length;X.call(fu.positionText,s.xFn(Y),s.yFn(Y)).call(Zn.font,{family:Y.font,size:Y.fontSize,color:Y.fontColor,weight:Y.fontWeight,style:Y.fontStyle,variant:Y.fontVariant,textcase:Y.fontTextcase,lineposition:Y.fontLineposition,shadow:Y.fontShadow}).text(Y.text).call(fu.convertToTspans,e),e._promises[Z]?v.push(e._promises.pop().then(function(){d(X,u)})):d(X,u)}),z1(r,[UC]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(Y){di.select(this).select("text").call(fu.positionText,s.xFn(Y),s.yFn(Y))});function d(Y,X){Y.each(function(Z){var re=di.select(this),ce=re.select(".text-math-group"),oe=s.anchorFn(Z,X),fe=t.transFn.call(re.node(),Z)+(la(X)&&+X!=0?" rotate("+X+","+s.xFn(Z)+","+(s.yFn(Z)-Z.fontSize/2)+")":""),K=fu.lineCount(re),Te=bh*Z.fontSize,le=s.heightFn(Z,la(X)?+X:0,(K-1)*Te);if(le&&(fe+=$f(0,le)),ce.empty()){var pe=re.select("text");pe.attr({transform:fe,"text-anchor":oe}),pe.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ie=Zn.bBox(ce.node()).width,ve=ie*{end:-.5,start:.5}[oe];ce.attr("transform",fe+$f(ve,0))}})}r._adjustTickLabelsOverflow=function(){var Y=r.ticklabeloverflow;if(!(!Y||Y==="allow")){var X=Y.indexOf("hide")!==-1,Z=r._id.charAt(0)==="x",re=0,ce=Z?e._fullLayout.width:e._fullLayout.height;if(Y.indexOf("domain")!==-1){var oe=xr.simpleMap(r.range,r.r2l);re=r.l2p(oe[0])+r._offset,ce=r.l2p(oe[1])+r._offset}var fe=Math.min(re,ce),K=Math.max(re,ce),Te=r.side,le=1/0,pe=-1/0;c.each(function(Q){var j=di.select(this),ye=j.select(".text-math-group");if(ye.empty()){var _e=Zn.bBox(j.node()),me=0;Z?(_e.right>K||_e.leftK||_e.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+oe._id]?j.style("display","none"):K.K==="tick"&&!fe&&j.node().style.display!=="none"&&j.style("display",null)})})})})},d(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var m=null;function y(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var Y=0,X=[],Z,re=1;c.each(function(Ie){Y=Math.max(Y,Ie.fontSize);var Be=r.l2p(Ie.x),se=Zx(this),Ae=Zn.bBox(se.node());re=Math.max(re,fu.lineCount(se)),X.push({top:0,bottom:10,height:10,left:Be-Ae.width/2,right:Be+Ae.width/2+2,width:Ae.width+2})});var ce=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,oe=l.length,fe=Math.abs((l[oe-1].x-l[0].x)*r._m)/(oe-1),K=ce?fe/2:fe,Te=ce?r.ticklen:Y*1.25*re,le=Math.sqrt(Math.pow(K,2)+Math.pow(Te,2)),pe=K/le,ie=r.autotickangles.map(function(Ie){return Ie*Math.PI/180}),ve=ie.find(function(Ie){return Math.abs(Math.cos(Ie))<=pe});ve===void 0&&(ve=ie.reduce(function(Ie,Be){return Math.abs(Math.cos(Ie))V*B&&(R=B,E[S]=D[S]=z[S])}var G=Math.abs(R-P);G-T>0?(G-=T,T*=1+T/G):T=0,r._id.charAt(0)!=="y"&&(T=-T),E[M]=_.p2r(_.r2p(D[M])+k*T),_.autorange==="min"||_.autorange==="max reversed"?(E[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(E[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=E}var U=xr.syncOrAsync(x);return U&&U.then&&e._promises.push(U),U};function Dve(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,N1);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(mh.stroke,r.dividercolor).style("stroke-width",Zn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ve.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function $C(e){var r=e.title.font.size,t=(e.title.text.match(fu.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(vu+t*bh):t?r*(t+1)*bh:r}function Rve(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(fu.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*vu:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(ph+l*bh));else{var s=_h(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ve.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,v=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var y=Zn.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,Qce.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}Ve.shouldShowZeroLine=function(e,r,t){var a=xr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===P1)&&(iE(r,0)||!Pve(e,r,t,a)||Fve(e,r))};Ve.clipEnds=function(e,r){return r.filter(function(t){return iE(e,t.x)})};function iE(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=ive:/%L/.test(r)?e>=nve:/%[SX]/.test(r)?e>=E1:/%M/.test(r)?e>=gh:/%[HI]/.test(r)?e>=Do:/%p/.test(r)?e>=es:/%[Aadejuwx]/.test(r)?e>=on:/%[UVW]/.test(r)?e>=Xn:/%[Bbm]/.test(r)?e>=C1:/%[q]/.test(r)?e>=L1:/%[Yy]/.test(r)?e>=q1:!0}});var fE=N((IDe,uE)=>{"use strict";uE.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var e5=N((ODe,cE)=>{"use strict";var Hve=fE();cE.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&(Hve(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var hE=N((BDe,vE)=>{var Uve={left:0,top:0};vE.exports=Gve;function Gve(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=Yve(r);return t[0]=a-i.left,t[1]=n-i.top,t}function Yve(e){return e===window||e===document||e===document.body?Uve:e.getBoundingClientRect()}});var r5=N((HDe,dE)=>{"use strict";var Vve=zb();function Wve(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}dE.exports=Vve&&Wve()});var yE=N((UDe,pE)=>{"use strict";pE.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var bE=N((GDe,gE)=>{"use strict";var mE=Ce(),jve=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];gE.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=mE.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=mE.constrain(Math.floor(t*3),0,2),jve[t][r]}});var _E=N((YDe,xE)=>{"use strict";var Zve=ih(),Xve=Fp(),Jve=Jv().getGraphDiv,$ve=Wv(),t5=xE.exports={};t5.wrapped=function(e,r,t){e=Jve(e),e._fullLayout&&Xve.clear(e._fullLayout._uid+$ve.HOVERID),t5.raw(e,r,t)};t5.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&Zve.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var pi=N((VDe,ME)=>{"use strict";var Kve=hE(),a5=Ob(),Qve=r5(),ehe=Ce().removeElement,rhe=Ea(),hu=ME.exports={};hu.align=yE();hu.getCursor=bE();var TE=_E();hu.unhover=TE.wrapped;hu.unhoverRaw=TE.raw;hu.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,Qve?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(_,b,T){return Math.abs(_)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;c.target===v?b=c:(b={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(T=>{var k=c[T];!b[T]&&typeof k!="function"&&(b[T]=k)})),r.clickFn&&r.clickFn(a,b),d||v.dispatchEvent(new MouseEvent("click",_))}t._dragging=!1,t._dragged=!1}};function AE(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}hu.coverSlip=AE;function wE(e){return Kve(e.changedTouches?e.changedTouches[0]:e,document.body)}});var rs=N((WDe,kE)=>{"use strict";kE.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var LE=N((jDe,qE)=>{"use strict";var n5=rs(),wh="data-savedcursor",SE="!!";qE.exports=function(r,t){var a=r.attr(wh);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var i5=da(),the=si();CE.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:the.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:i5({editType:"legend"}),grouptitlefont:i5({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:i5({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var O1=N(I1=>{"use strict";I1.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};I1.isVertical=function(r){return r.orientation!=="h"};I1.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var u5=N((JDe,EE)=>{"use strict";var l5=gr(),Jn=Ce(),ahe=At(),nhe=mn(),ihe=o5(),ohe=Sf(),s5=O1();function lhe(e,r,t,a){var n=r[e]||{},i=ahe.newContainer(t,e);function o(G,U){return Jn.coerce(n,i,ihe,G,U)}var l=Jn.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var s=o("visible");if(s){for(var u,f=function(G,U){var Y=u._input,X=u;return Jn.coerce(Y,X,nhe,G,U)},c=t.font||{},v=Jn.coerceFont(o,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,m="normal",y=(t.shapes||[]).filter(function(G){return G.showlegend}),x=a.concat(y).filter(function(G){return e===(G.legend||"legend")}),w=0;w(e==="legend"?1:0));if(b===!1&&(t[e]=void 0),!(b===!1&&!n.uirevision)&&(o("uirevision",t.uirevision),b!==!1)){o("borderwidth");var T=o("orientation"),k=o("yref"),M=o("xref"),S=T==="h",E=k==="paper",D=M==="paper",P,R,z,O="left";S?(P=0,l5.getComponentMethod("rangeslider","isVisible")(r.xaxis)?E?(R=1.1,z="bottom"):(R=1,z="top"):E?(R=-.1,z="top"):(R=0,z="bottom")):(R=1,z="auto",D?P=1.02:(P=1,O="right")),Jn.coerce(n,i,{x:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:P}},"x"),Jn.coerce(n,i,{y:{valType:"number",editType:"legend",min:E?-2:0,max:E?3:1,dflt:R}},"y"),o("traceorder",m),s5.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",O),o("yanchor",z),o("maxheight"),o("valign"),Jn.noneOrAll(n,i,["x","y"]);var B=o("title.text");if(B){o("title.side",S?"left":"top");var V=Jn.extendFlat({},l,{size:Jn.bigFont(l.size)});Jn.coerceFont(o,"title.font",V)}}}}EE.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var Qf=gr(),c5=Ce(),she=c5.pushUnique,f5=!0;DE.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,o=n.legend.itemdoubleclick,l=n.legend.groupclick;a===1&&i==="toggle"&&o==="toggleothers"&&f5&&t.data&&t._context.showTips&&c5.notifier(c5._(t,"Double-click on legend to isolate one trace"),"long"),f5=!1;var s;if(a===1?s=i:a===2&&(s=o),!s)return;var u=l==="togglegroup",f=n.hiddenlabels?n.hiddenlabels.slice():[],c=r.data()[0][0];if(c.groupTitle&&c.noClick)return;var v=t._fullData,d=(n.shapes||[]).filter(function(ze){return ze.showlegend}),p=v.concat(d),m=c.trace;m._isShape&&(m=m._fullInput);var y=m.legendgroup,x,w,_,b,T,k,M={},S=[],E=[],D=[];function P(ze,Ge){var He=S.indexOf(ze),De=M.visible;return De||(De=M.visible=[]),S.indexOf(ze)===-1&&(S.push(ze),He=S.length-1),De[He]=Ge,He}var R=(n.shapes||[]).map(function(ze){return ze._input}),z=!1;function O(ze,Ge){R[ze].visible=Ge,z=!0}function B(ze,Ge){if(!(c.groupTitle&&!u)){var He=ze._fullInput||ze,De=He._isShape,Ie=He.index;Ie===void 0&&(Ie=He._index);var Be=He.visible===!1?!1:Ge;De?O(Ie,Be):P(Ie,Be)}}var V=m.legend,G=m._fullInput,U=G&&G._isShape;if(!U&&Qf.traceIs(m,"pie-like")){var Y=c.label,X=f.indexOf(Y);if(s==="toggle")X===-1?f.push(Y):f.splice(X,1);else if(s==="toggleothers"){var Z=X!==-1,re=[];for(x=0;x{"use strict";PE.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var zE=N((QDe,NE)=>{"use strict";var FE=gr(),h5=O1();NE.exports=function(r,t,a){var n=t._inHover,i=h5.isGrouped(t),o=h5.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function m(G,U,Y){if(t.visible!==!1&&!(a&&G!==t._id))if(U===""||!h5.isGrouped(t)){var X="~~i"+c;s.push(X),l[X]=[Y],c++}else s.indexOf(U)===-1?(s.push(U),u=!0,l[U]=[Y]):l[U].push(Y)}for(d=0;dD&&(E=D)}M[d][0]._groupMinRank=E,M[d][0]._preGroupSort=d}var P=function(G,U){return G[0]._groupMinRank-U[0]._groupMinRank||G[0]._preGroupSort-U[0]._preGroupSort},R=function(G,U){return G.trace.legendrank-U.trace.legendrank||G._preSort-U._preSort};for(M.forEach(function(G,U){G[0]._preGroupSort=U}),M.sort(P),d=0;d{"use strict";var B1=Ce();function IE(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}du.formatPiePercent=function(r,t){var a=IE((r*100).toPrecision(3));return B1.numSeparate(a,t)+"%"};du.formatPieValue=function(r,t){var a=IE(r.toPrecision(10));return B1.numSeparate(a,t)};du.getFirstFilled=function(r,t){if(B1.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var uhe=Wr(),fhe=Tr();OE.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?uhe.pointStyle(r,a,n,t):fhe.fill(r,t.color)}});var U1=N((tRe,GE)=>{"use strict";var HE=Tr(),UE=H1().castOption,che=BE();GE.exports=function(r,t,a,n){var i=a.marker.line,o=UE(i.color,t.pts)||HE.defaultLine,l=UE(i.width,t.pts)||0;r.call(che,t,a,n).style("stroke-width",l).call(HE.stroke,o)}});var m5=N((aRe,XE)=>{"use strict";var ln=Sr(),d5=gr(),$a=Ce(),YE=$a.strTranslate,$n=Wr(),yi=Tr(),p5=jn().extractOpts,G1=Dn(),vhe=U1(),hhe=H1().castOption,dhe=v5(),VE=12,WE=5,pu=2,phe=10,ec=5;XE.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+dhe.itemGap*2)/2,s=YE(l,0),u=function(M,S,E,D){var P;if(M+1)P=M;else if(S&&S.width>0)P=S.width;else return 0;return i?D:Math.min(P,E)};r.each(function(M){var S=ln.select(this),E=$a.ensureSingle(S,"g","layers");E.style("opacity",M[0].trace.opacity);var D=a.indentation,P=a.valign,R=M[0].lineHeight,z=M[0].height;if(P==="middle"&&D===0||!R||!z)E.attr("transform",null);else{var O={top:1,bottom:-1}[P],B=O*(.5*(R-z+3))||0,V=a.indentation;E.attr("transform",YE(V,B))}var G=E.selectAll("g.legendfill").data([M]);G.enter().append("g").classed("legendfill",!0);var U=E.selectAll("g.legendlines").data([M]);U.enter().append("g").classed("legendlines",!0);var Y=E.selectAll("g.legendsymbols").data([M]);Y.enter().append("g").classed("legendsymbols",!0),Y.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(v).each(p).each(d).each(y).each(b).each(_).each(f).each(c).each(x).each(w);function f(M){var S=jE(M),E=S.showFill,D=S.showLine,P=S.showGradientLine,R=S.showGradientFill,z=S.anyFill,O=S.anyLine,B=M[0],V=B.trace,G,U,Y=p5(V),X=Y.colorscale,Z=Y.reversescale,re=function(pe){if(pe.size())if(E)$n.fillGroupStyle(pe,t,!0);else{var ie="legendfill-"+V.uid;$n.gradient(pe,t,ie,y5(Z),X,"fill")}},ce=function(pe){if(pe.size()){var ie="legendline-"+V.uid;$n.lineGroupStyle(pe),$n.gradient(pe,t,ie,y5(Z),X,"stroke")}},oe=G1.hasMarkers(V)||!z?"M5,0":O?"M5,-2":"M5,-3",fe=ln.select(this),K=fe.select(".legendfill").selectAll("path").data(E||R?[M]:[]);if(K.enter().append("path").classed("js-fill",!0),K.exit().remove(),K.attr("d",oe+"h"+o+"v6h-"+o+"z").call(re),D||P){var Te=u(void 0,V.line,phe,WE);U=$a.minExtend(V,{line:{width:Te}}),G=[$a.minExtend(B,{trace:U})]}var le=fe.select(".legendlines").selectAll("path").data(D||P?[G]:[]);le.enter().append("path").classed("js-line",!0),le.exit().remove(),le.attr("d",oe+(P?"l"+o+",0.0001":"h"+o)).call(D?$n.lineGroupStyle:ce)}function c(M){var S=jE(M),E=S.anyFill,D=S.anyLine,P=S.showLine,R=S.showMarker,z=M[0],O=z.trace,B=!R&&!D&&!E&&G1.hasText(O),V,G;function U(K,Te,le,pe){var ie=$a.nestedProperty(O,K).get(),ve=$a.isArrayOrTypedArray(ie)&&Te?Te(ie):ie;if(i&&ve&&pe!==void 0&&(ve=pe),le){if(vele[1])return le[1]}return ve}function Y(K){return z._distinct&&z.index&&K[z.index]?K[z.index]:K[0]}if(R||B||P){var X={},Z={};if(R){X.mc=U("marker.color",Y),X.mx=U("marker.symbol",Y),X.mo=U("marker.opacity",$a.mean,[.2,1]),X.mlc=U("marker.line.color",Y),X.mlw=U("marker.line.width",$a.mean,[0,5],pu),Z.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var re=U("marker.size",$a.mean,[2,16],VE);X.ms=re,Z.marker.size=re}P&&(Z.line={width:U("line.width",Y,[0,10],WE)}),B&&(X.tx="Aa",X.tp=U("textposition",Y),X.ts=10,X.tc=U("textfont.color",Y),X.tf=U("textfont.family",Y),X.tw=U("textfont.weight",Y),X.ty=U("textfont.style",Y),X.tv=U("textfont.variant",Y),X.tC=U("textfont.textcase",Y),X.tE=U("textfont.lineposition",Y),X.tS=U("textfont.shadow",Y)),V=[$a.minExtend(z,X)],G=$a.minExtend(O,Z),G.selectedpoints=null,G.texttemplate=null}var ce=ln.select(this).select("g.legendpoints"),oe=ce.selectAll("path.scatterpts").data(R?V:[]);oe.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),oe.exit().remove(),oe.call($n.pointStyle,G,t),R&&(V[0].mrc=3);var fe=ce.selectAll("g.pointtext").data(B?V:[]);fe.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),fe.exit().remove(),fe.selectAll("text").call($n.textPointStyle,G,t)}function v(M){var S=M[0].trace,E=S.type==="waterfall";if(M[0]._distinct&&E){var D=M[0].trace[M[0].dir].marker;return M[0].mc=D.color,M[0].mlw=D.line.width,M[0].mlc=D.line.color,m(M,this,"waterfall")}var P=[];S.visible&&E&&(P=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=ln.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(P);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(z){var O=ln.select(this),B=S[z[0]].marker,V=u(void 0,B.line,ec,pu);O.attr("d",z[1]).style("stroke-width",V+"px").call(yi.fill,B.color),V&&O.call(yi.stroke,B.line.color)})}function d(M){m(M,this)}function p(M){m(M,this,"funnel")}function m(M,S,E){var D=M[0].trace,P=D.marker||{},R=P.line||{},z=P.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",O=E?D.visible&&D.type===E:d5.traceIs(D,"bar"),B=ln.select(S).select("g.legendpoints").selectAll("path.legend"+E).data(O?[M]:[]);B.enter().append("path").classed("legend"+E,!0).attr("d",z).attr("transform",s),B.exit().remove(),B.each(function(V){var G=ln.select(this),U=V[0],Y=u(U.mlw,P.line,ec,pu);G.style("stroke-width",Y+"px");var X=U.mcc;if(!a._inHover&&"mc"in U){var Z=p5(P),re=Z.mid;re===void 0&&(re=(Z.max+Z.min)/2),X=$n.tryColorscale(P,"")(re)}var ce=X||U.mc||P.color,oe=P.pattern,fe=$n.getPatternAttr,K=oe&&(fe(oe.shape,0,"")||fe(oe.path,0,""));if(K){var Te=fe(oe.bgcolor,0,null),le=fe(oe.fgcolor,0,null),pe=oe.fgopacity,ie=ZE(oe.size,8,10),ve=ZE(oe.solidity,.5,1),W="legend-"+D.uid;G.call($n.pattern,"legend",t,W,K,ie,ve,X,oe.fillmode,Te,le,pe)}else G.call(yi.fill,ce);Y&&yi.stroke(G,U.mlc||R.color)})}function y(M){var S=M[0].trace,E=ln.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&d5.traceIs(S,"box-violin")?[M]:[]);E.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),E.exit().remove(),E.each(function(){var D=ln.select(this);if((S.boxpoints==="all"||S.points==="all")&&yi.opacity(S.fillcolor)===0&&yi.opacity((S.line||{}).color)===0){var P=$a.minExtend(S,{marker:{size:i?VE:$a.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});E.call($n.pointStyle,P,t)}else{var R=u(void 0,S.line,ec,pu);D.style("stroke-width",R+"px").call(yi.fill,S.fillcolor),R&&yi.stroke(D,S.line.color)}})}function x(M){var S=M[0].trace,E=ln.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[M,M]:[]);E.enter().append("path").classed("legendcandle",!0).attr("d",function(D,P){return P?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(D,P){var R=ln.select(this),z=S[P?"increasing":"decreasing"],O=u(void 0,z.line,ec,pu);R.style("stroke-width",O+"px").call(yi.fill,z.fillcolor),O&&yi.stroke(R,z.line.color)})}function w(M){var S=M[0].trace,E=ln.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[M,M]:[]);E.enter().append("path").classed("legendohlc",!0).attr("d",function(D,P){return P?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(D,P){var R=ln.select(this),z=S[P?"increasing":"decreasing"],O=u(void 0,z.line,ec,pu);R.style("fill","none").call($n.dashLine,z.line.dash,O),O&&yi.stroke(R,z.line.color)})}function _(M){T(M,this,"pie")}function b(M){T(M,this,"funnelarea")}function T(M,S,E){var D=M[0],P=D.trace,R=E?P.visible&&P.type===E:d5.traceIs(P,E),z=ln.select(S).select("g.legendpoints").selectAll("path.legend"+E).data(R?[M]:[]);if(z.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),z.exit().remove(),z.size()){var O=P.marker||{},B=u(hhe(O.line.width,D.pts),O.line,ec,pu),V="pieLike",G=$a.minExtend(P,{marker:{line:{width:B}}},V),U=$a.minExtend(D,{trace:G},V);vhe(z,U,G,t)}}function k(M){var S=M[0].trace,E,D=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":D=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":D=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymapbox":case"densitymap":D=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":D=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],E=!1;break;case"streamtube":D=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],E=!1;break;case"surface":D=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],E=!0;break;case"mesh3d":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1;break}var P=ln.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(D);P.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,z){var O=ln.select(this),B=p5(S),V=B.colorscale,G=B.reversescale,U=function(re){if(re.size()){var ce="legendfill-"+S.uid;$n.gradient(re,t,ce,y5(G,E==="radial"),V,"fill")}},Y;if(V){if(!E){var Z=V.length;Y=z===0?V[G?Z-1:0][1]:z===1?V[G?0:Z-1][1]:V[Math.floor((Z-1)/2)][1]}}else{var X=S.vertexcolor||S.facecolor||S.color;Y=$a.isArrayOrTypedArray(X)?X[z]||X[0]:X}O.attr("d",R[0]),Y?O.call(yi.fill,Y):O.call(U)})}};function y5(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function jE(e){var r=e[0].trace,t=r.contours,a=G1.hasLines(r),n=G1.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function ZE(e,r,t){return e&&$a.isArrayOrTypedArray(e)?r:e>t?t:e}});var _5=N((nRe,iD)=>{"use strict";var Rn=Sr(),sa=Ce(),b5=aa(),ac=gr(),JE=ih(),g5=pi(),ua=Wr(),V1=Tr(),yu=Da(),$E=RE(),ya=v5(),x5=Xa(),aD=x5.LINE_SPACING,tc=x5.FROM_TL,KE=x5.FROM_BR,QE=zE(),yhe=m5(),eD=O1(),rc=1,mhe=/^legend[0-9]*$/;iD.exports=function(r,t){if(t)rD(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Rn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(mhe)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),b5.autoMargin(e,n);var m=sa.ensureSingle(o,"g",n,function(S){l||S.attr("pointer-events","all")}),y=sa.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),x=sa.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});x.call(V1.stroke,t.bordercolor).call(V1.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var w=sa.ensureSingle(m,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var b;_.text?(b=sa.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(ua.font,_.font).text(_.text),W1(b,w,e,t,rc)):w.selectAll("."+n+"titletext").remove();var T=sa.ensureSingle(m,"rect","scrollbar",function(S){S.attr(ya.scrollBarEnterAttrs).call(V1.fill,ya.scrollBarColor)}),k=w.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(sa.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(S){var E=S[0].trace;return ac.traceIs(E,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){Rn.select(this).call(bhe,e,t)}).call(yhe,e,t).each(function(){l||Rn.select(this).call(xhe,e,n)}),sa.syncOrAsync([b5.previousPromises,function(){return The(e,k,M,t)},function(){var S=a._size,E=t.borderwidth,D=t.xref==="paper",P=t.yref==="paper";if(_.text&&ghe(b,t,E),!l){var R,z;D?R=S.l+S.w*t.x-tc[j1(t)]*t._width:R=a.width*t.x-tc[j1(t)]*t._width,P?z=S.t+S.h*(1-t.y)-tc[Z1(t)]*t._effHeight:z=a.height*(1-t.y)-tc[Z1(t)]*t._effHeight;var O=Ahe(e,n,R,z);if(O)return;if(a.margin.autoexpand){var B=R,V=z;R=D?sa.constrain(R,0,a.width-t._width):B,z=P?sa.constrain(z,0,a.height-t._effHeight):V,R!==B&&sa.log("Constrain "+n+".x to make legend fit inside graph"),z!==V&&sa.log("Constrain "+n+".y to make legend fit inside graph")}ua.setTranslate(m,R,z)}if(T.on(".drag",null),m.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var G=t._effHeight;l&&(G=t._height),x.attr({width:t._width-E,height:G-E,x:E/2,y:E/2}),ua.setTranslate(w,0,0),y.select("rect").attr({width:t._width-2*E,height:G-2*E,x:E,y:E}),ua.setClipUrl(w,i,e),ua.setRect(T,0,0,0,0),delete t._scrollY}else{var U=Math.max(ya.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),Y=t._effHeight-U-2*ya.scrollBarMargin,X=t._height-t._effHeight,Z=Y/X,re=Math.min(t._scrollY||0,X);x.attr({width:t._width-2*E+ya.scrollBarWidth+ya.scrollBarMargin,height:t._effHeight-E,x:E/2,y:E/2}),y.select("rect").attr({width:t._width-2*E+ya.scrollBarWidth+ya.scrollBarMargin,height:t._effHeight-2*E,x:E,y:E+re}),ua.setClipUrl(w,i,e),ie(re,U,Z),m.on("wheel",function(){re=sa.constrain(t._scrollY+Rn.event.deltaY/Y*X,0,X),ie(re,U,Z),re!==0&&re!==X&&Rn.event.preventDefault()});var ce,oe,fe,K=function(ye,_e,me){var Pe=(me-_e)/Z+ye;return sa.constrain(Pe,0,X)},Te=function(ye,_e,me){var Pe=(_e-me)/Z+ye;return sa.constrain(Pe,0,X)},le=Rn.behavior.drag().on("dragstart",function(){var ye=Rn.event.sourceEvent;ye.type==="touchstart"?ce=ye.changedTouches[0].clientY:ce=ye.clientY,fe=re}).on("drag",function(){var ye=Rn.event.sourceEvent;ye.buttons===2||ye.ctrlKey||(ye.type==="touchmove"?oe=ye.changedTouches[0].clientY:oe=ye.clientY,re=K(fe,ce,oe),ie(re,U,Z))});T.call(le);var pe=Rn.behavior.drag().on("dragstart",function(){var ye=Rn.event.sourceEvent;ye.type==="touchstart"&&(ce=ye.changedTouches[0].clientY,fe=re)}).on("drag",function(){var ye=Rn.event.sourceEvent;ye.type==="touchmove"&&(oe=ye.changedTouches[0].clientY,re=Te(fe,ce,oe),ie(re,U,Z))});w.call(pe)}function ie(ye,_e,me){t._scrollY=e._fullLayout[n]._scrollY=ye,ua.setTranslate(w,0,-ye),ua.setRect(T,t._width,ya.scrollBarMargin+ye*me,ya.scrollBarWidth,_e),y.select("rect").attr("y",E+ye)}if(e._context.edits.legendPosition){var ve,W,Q,j;m.classed("cursor-move",!0),g5.init({element:m.node(),gd:e,prepFn:function(ye){if(ye.target!==T.node()){var _e=ua.getTranslate(m);Q=_e.x,j=_e.y}},moveFn:function(ye,_e){if(Q!==void 0&&j!==void 0){var me=Q+ye,Pe=j+_e;ua.setTranslate(m,me,Pe),ve=g5.align(me,t._width,S.l,S.l+S.w,t.xanchor),W=g5.align(Pe+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(ve!==void 0&&W!==void 0){var ye={};ye[n+".x"]=ve,ye[n+".y"]=W,ac.call("_guiRelayout",e,ye)}},clickFn:function(ye,_e){var me=o.selectAll("g.traces").filter(function(){var Pe=this.getBoundingClientRect();return _e.clientX>=Pe.left&&_e.clientX<=Pe.right&&_e.clientY>=Pe.top&&_e.clientY<=Pe.bottom});me.size()>0&&nD(e,m,me,ye,_e)}})}}],e)}}function Y1(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function nD(e,r,t,a,n){var i=t.data()[0][0].trace,o={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(o.group=i._group),ac.traceIs(i,"pie-like")&&(o.label=t.datum()[0].label);var l=JE.triggerHandler(e,"plotly_legendclick",o);if(a===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&$E(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=JE.triggerHandler(e,"plotly_legenddoubleclick",o);s!==!1&&l!==!1&&$E(t,e,a)}}function bhe(e,r,t){var a=X1(t),n=e.data()[0][0],i=n.trace,o=ac.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=sa.templateString(u,i._meta))));var c=sa.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(ua.font,f).text(l?tD(u,s):u);var v=t.indentation+t.itemwidth+ya.itemGap*2;yu.positionText(c,v,0),l?c.call(yu.makeEditable,{gd:r,text:u}).call(W1,e,r,t).on("edit",function(d){this.text(tD(d,s)).call(W1,e,r,t);var p=n.trace._fullInput||{},m={};return m.name=d,p._isShape?ac.call("_guiRelayout",r,"shapes["+i.index+"].name",m.name):ac.call("_guiRestyle",r,m,i.index)}):W1(c,e,r,t)}function tD(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function xhe(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=sa.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(V1.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),nD(r,l,e,i,Rn.event)}}))}function W1(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),yu.convertToTspans(e,t,function(){_he(r,t,a,n)})}function _he(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),o=i.node(),l=X1(t);t||(t=r._fullLayout[l]);var s=t.borderwidth,u;a===rc?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var f=u.size*aD,c,v;if(o){var d=ua.bBox(o);c=d.height,v=d.width,a===rc?ua.setTranslate(i,s,s+c*.75):ua.setTranslate(i,0,c*.25)}else{var p="."+l+(a===rc?"title":"")+"text",m=e.select(p),y=yu.lineCount(m),x=m.node();if(c=f*y,v=x?ua.bBox(x).width:0,a===rc)t.title.side==="left"&&(v+=ya.itemGap*2),yu.positionText(m,s+ya.titlePad,s+f);else{var w=ya.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=ya.itemGap,v-=t.indentation+t.itemwidth),yu.positionText(m,w,-f*((y-1)/2-.3))}}a===rc?(t._titleWidth=v,t._titleHeight=c):(n.lineHeight=f,n.height=Math.max(c,16)+3,n.width=v)}function whe(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function The(e,r,t,a){var n=e._fullLayout,i=X1(a);a||(a=n[i]);var o=n._size,l=eD.isVertical(a),s=eD.isGrouped(a),u=a.entrywidthmode==="fraction",f=a.borderwidth,c=2*f,v=ya.itemGap,d=a.indentation+a.itemwidth+v*2,p=2*(f+v),m=Z1(a),y=a.y<0||a.y===0&&m==="top",x=a.y>1||a.y===1&&m==="bottom",w=a.tracegroupgap,_={};let{orientation:b,yref:T}=a,{maxheight:k}=a,M=y||x||b!=="v"||T!=="paper";k||(k=M?.5:1);let S=M?n.height:o.h;a._maxHeight=Math.max(k>1?k:k*S,30);var E=0;a._width=0,a._height=0;var D=whe(a);if(l)t.each(function(ie){var ve=ie[0].height;ua.setTranslate(this,f+D[0],f+D[1]+a._height+ve/2+v),a._height+=ve,a._width=Math.max(a._width,ie[0].width)}),E=d+a._width,a._width+=v+d+c,a._height+=p,s&&(r.each(function(ie,ve){ua.setTranslate(this,0,ve*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var P=j1(a),R=a.x<0||a.x===0&&P==="right",z=a.x>1||a.x===1&&P==="left",O=x||y,B=n.width/2;a._maxWidth=Math.max(R?O&&P==="left"?o.l+o.w:B:z?O&&P==="right"?o.r+o.w:B:o.w,2*d);var V=0,G=0;t.each(function(ie){var ve=Y1(ie,a,d);V=Math.max(V,ve),G+=ve}),E=null;var U=0;if(s){var Y=0,X=0,Z=0;r.each(function(){var ie=0,ve=0;Rn.select(this).selectAll("g.traces").each(function(Q){var j=Y1(Q,a,d),ye=Q[0].height;ua.setTranslate(this,D[0],D[1]+f+v+ye/2+ve),ve+=ye,ie=Math.max(ie,j),_[Q[0].trace.legendgroup]=ie});var W=ie+v;X>0&&W+f+X>a._maxWidth?(U=Math.max(U,X),X=0,Z+=Y+w,Y=ve):Y=Math.max(Y,ve),ua.setTranslate(this,X,Z),X+=W}),a._width=Math.max(U,X)+f,a._height=Z+Y+p}else{var re=t.size(),ce=G+c+(re-1)*v=a._maxWidth&&(U=Math.max(U,Te),fe=0,K+=oe,a._height+=oe,oe=0),ua.setTranslate(this,D[0]+f+fe,D[1]+f+K+ve/2+v),Te=fe+W+v,fe+=Q,oe=Math.max(oe,ve)}),ce?(a._width=fe+c,a._height=oe+p):(a._width=Math.max(U,Te)+c,a._height+=oe+p)}}a._width=Math.ceil(Math.max(a._width+D[0],a._titleWidth+2*(f+ya.titlePad))),a._height=Math.ceil(Math.max(a._height+D[1],a._titleHeight+2*(f+ya.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var le=e._context.edits,pe=le.legendText||le.legendPosition;t.each(function(ie){var ve=Rn.select(this).select("."+i+"toggle"),W=ie[0].height,Q=ie[0].trace.legendgroup,j=Y1(ie,a,d);s&&Q!==""&&(j=_[Q]);var ye=pe?d:E||j;!l&&!u&&(ye+=v/2),ua.setRect(ve,0,-W/2,ye,W)})}function Ahe(e,r,t,a){var n=e._fullLayout,i=n[r],o=j1(i),l=Z1(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return b5.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*tc[o],r:i._width*KE[o],b:i._effHeight*KE[l],t:i._effHeight*tc[l]});s?e._fullLayout._reservedMargin[r][f]=v[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][f]=v[f]}function j1(e){return sa.isRightAnchor(e)?"right":sa.isCenterAnchor(e)?"center":"left"}function Z1(e){return sa.isBottomAnchor(e)?"bottom":sa.isMiddleAnchor(e)?"middle":"top"}function X1(e){return e._id||"legend"}});var M5=N(A5=>{"use strict";var mu=Sr(),cl=Rr(),oD=kn(),Ut=Ce(),Mhe=Ut.pushUnique,w5=Ut.strTranslate,khe=Ut.strRotate,She=ih(),mi=Da(),qhe=LE(),Ro=Wr(),Ma=Tr(),J1=pi(),Po=Ir(),Lhe=Ea().zindexSeparator,ic=gr(),to=qo(),gu=Wv(),Che=u5(),Ehe=_5(),dD=gu.YANGLE,T5=Math.PI*dD/180,Dhe=1/Math.sin(T5),Rhe=Math.cos(T5),Phe=Math.sin(T5),Dt=gu.HOVERARROWSIZE,Yr=gu.HOVERTEXTPAD,lD={box:!0,ohlc:!0,violin:!0,candlestick:!0},Fhe={scatter:!0,scattergl:!0,splom:!0};function sD(e,r){return e.distance-r.distance}A5.hover=function(r,t,a,n){r=Ut.getGraphDiv(r);var i=t.target;Ut.throttle(r._fullLayout._uid+gu.HOVERID,gu.HOVERMINTIME,function(){Nhe(r,t,a,n,i)})};A5.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=bD(n),o=xD(n),l=r.map(function(y){var x=y._x0||y.x0||y.x||0,w=y._x1||y.x1||y.x||0,_=y._y0||y.y0||y.y||0,b=y._y1||y.y1||y.y||0,T=y.eventData;if(T){var k=Math.min(x,w),M=Math.max(x,w),S=Math.min(_,b),E=Math.max(_,b),D=y.trace;if(ic.traceIs(D,"gl3d")){var P=n._fullLayout[D.scene]._scene.container,R=P.offsetLeft,z=P.offsetTop;k+=R,M+=R,S+=z,E+=z}T.bbox={x0:k+o,x1:M+o,y0:S+i,y1:E+i},t.inOut_bbox&&t.inOut_bbox.push(T.bbox)}else T=!1;return{color:y.color||Ma.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:T}}),s=!1,u=yD(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Ma.background,container:mu.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,v=0,d=0;f.sort(function(y,x){return y.y0-x.y0}).each(function(y,x){var w=y.y0-y.by/2;w-cM[0]._length||j<0||j>S[0]._length)return J1.unhoverRaw(e,r)}if(r.pointerX=Q+M[0]._offset,r.pointerY=j+S[0]._offset,"xval"in r?V=to.flat(i,r.xval):V=to.p2c(M,Q),"yval"in r?G=to.flat(i,r.yval):G=to.p2c(S,j),!cl(V[0])||!cl(G[0]))return Ut.warn("Fx.hover failed",r,e),J1.unhoverRaw(e,r)}var me=1/0;function Pe(br,yt){for(Y=0;Yle&&(O.splice(0,le),me=O[0].distance),c&&z!==0&&O.length===0){Te.distance=z,Te.index=!1;var ct=Z._module.hoverPoints(Te,fe,K,"closest",{hoverLayer:l._hoverlayer});if(ct&&(ct=ct.filter(function(ft){return ft.spikeDistance<=z})),ct&&ct.length){var xa,$t=ct.filter(function(ft){return ft.xa.showspikes&&ft.xa.spikesnap!=="hovered data"});if($t.length){var tn=$t[0];cl(tn.x0)&&cl(tn.y0)&&(xa=Re(tn),(!pe.vLinePoint||pe.vLinePoint.spikeDistance>xa.spikeDistance)&&(pe.vLinePoint=xa))}var wn=ct.filter(function(ft){return ft.ya.showspikes&&ft.ya.spikesnap!=="hovered data"});if(wn.length){var Kt=wn[0];cl(Kt.x0)&&cl(Kt.y0)&&(xa=Re(Kt),(!pe.hLinePoint||pe.hLinePoint.spikeDistance>xa.spikeDistance)&&(pe.hLinePoint=xa))}}}}}Pe();function Ne(br,yt,Nr){for(var ut=null,Pt=1/0,Qr,ct=0;ct0&&Math.abs(br.distance)qe-1;$e--)hr(O[$e]);O=Ue,De()}var Fe=e._hoverdata,ne=[],de=bD(e),Ee=xD(e);for(U=0;U1||O.length>1)||v==="closest"&&ie&&O.length>1,Xt=Ma.combine(l.plot_bgcolor||Ma.background,l.paper_bgcolor),Jt=yD(O,{gd:e,hovermode:v,rotateLabels:pt,bgColor:Xt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),It=Jt.hoverLabels;if(to.isUnifiedHover(v)||(Ihe(It,pt,l,Jt.commonLabelBoundingBox),gD(It,pt,l._invScaleX,l._invScaleY)),n&&n.tagName){var za=ic.getComponentMethod("annotations","hasClickToShow")(e,ne);qhe(mu.select(n),za?"pointer":"")}!n||a||!Hhe(e,r,Fe)||(Fe&&e.emit("plotly_unhover",{event:r,points:Fe}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:S,xvals:V,yvals:G}))}function pD(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var zhe=/([\s\S]*)<\/extra>/;function yD(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||gu.HOVERFONT,c=r.fontSize||gu.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,m=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,x=r.fontShadow||a.font.shadow,w=e[0],_=w.xa,b=w.ya,T=n.charAt(0),k=T+"Label",M=w[k];if(M===void 0&&_.type==="multicategory")for(var S=0;Sa.width-Ee&&(Le=a.width-Ee),qe.attr("d","M"+(Fe-Le)+",0L"+(Fe-Le+Dt)+","+de+Dt+"H"+Ee+"v"+de+(Yr*2+$e.height)+"H"+-Ee+"V"+de+Dt+"H"+(Fe-Le-Dt)+"Z"),Fe=Le,Y.minX=Fe-Ee,Y.maxX=Fe+Ee,_.side==="top"?(Y.minY=ne-(Yr*2+$e.height),Y.maxY=ne-Yr):(Y.minY=ne+Yr,Y.maxY=ne+(Yr*2+$e.height))}else{var ar,sr,nr;b.side==="right"?(ar="start",sr=1,nr="",Fe=_._offset+_._length):(ar="end",sr=-1,nr="-",Fe=_._offset),ne=b._offset+(w.y0+w.y1)/2,Oe.attr("text-anchor",ar),qe.attr("d","M0,0L"+nr+Dt+","+Dt+"V"+(Yr+$e.height/2)+"h"+nr+(Yr*2+$e.width)+"V-"+(Yr+$e.height/2)+"H"+nr+Dt+"V-"+Dt+"Z"),Y.minY=ne-(Yr+$e.height/2),Y.maxY=ne+(Yr+$e.height/2),b.side==="right"?(Y.minX=Fe+Dt,Y.maxX=Fe+Dt+(Yr*2+$e.width)):(Y.minX=Fe-Dt-(Yr*2+$e.width),Y.maxX=Fe-Dt);var Mr=$e.height/2,Or=D-$e.top-Mr,Zr="clip"+a._uid+"commonlabel"+b._id,Vr;if(Fe<$e.width+2*Yr+Dt){Vr="M-"+(Dt+Yr)+"-"+Mr+"h-"+($e.width-Yr)+"V"+Mr+"h"+($e.width-Yr)+"Z";var Yt=$e.width-Fe+Yr;mi.positionText(Oe,Yt,Or),ar==="end"&&Oe.selectAll("tspan").each(function(){var Tt=mu.select(this),pt=Ro.tester.append("text").text(Tt.text()).call(Ro.font,hr),Xt=nc(t,pt.node());Math.round(Xt.width)=0?je=Ie:Be+me=0?je=Be:se+me=0?ur=He:De+Pe=0?ur=De:Ae+Pe=0,(ue.idealAlign==="top"||!Tt)&&pt?(nr-=Or/2,ue.anchor="end"):Tt?(nr+=Or/2,ue.anchor="start"):ue.anchor="middle",ue.crossPos=nr;else{if(ue.pos=nr,Tt=sr+Mr/2+wt<=P,pt=sr-Mr/2-wt>=0,(ue.idealAlign==="left"||!Tt)&&pt)sr-=Mr/2,ue.anchor="end";else if(Tt)sr+=Mr/2,ue.anchor="start";else{ue.anchor="middle";var Xt=wt/2,Jt=sr+Xt-P,It=sr-Xt;Jt>0&&(sr-=Jt),It<0&&(sr+=-It)}ue.crossPos=sr}ne.attr("text-anchor",ue.anchor),Ee&&de.attr("text-anchor",ue.anchor),qe.attr("transform",w5(sr,nr)+(i?khe(dD):""))}),{hoverLabels:lr,commonLabelBoundingBox:Y}}function uD(e,r,t,a,n,i){var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ut.templateString(e.name,e.trace._meta)),o=vD(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o);var f=e.hovertemplate||!1;if(f){var c=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(c[s+"other"]=c[s+"Val"],c[s+"otherLabel"]=c[s+"Label"]),l=Ut.hovertemplateString(f,c,a._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(zhe,function(v,d){return o=vD(d,e.nameLength),""})}return[l,o]}function Ihe(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,m=function(V){return V*t._invScaleX},y=function(V){return V*t._invScaleY};e.each(function(V){var G=V[n],U=V[i],Y=G._id.charAt(0)==="x",X=G.range;f===0&&X&&X[0]>X[1]!==Y&&(l=-1);var Z=0,re=Y?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var ce=mD(V,r),oe=V.anchor,fe=oe==="end"?-1:1,K,Te;if(oe==="middle")K=V.crossPos+(Y?y(ce.y-V.by/2):m(V.bx/2+V.tx2width/2)),Te=K+(Y?y(V.by):m(V.bx));else if(Y)K=V.crossPos+y(Dt+ce.y)-y(V.by/2-Dt),Te=K+y(V.by);else{var le=m(fe*Dt+ce.x),pe=le+m(fe*V.bx);K=V.crossPos+Math.min(le,pe),Te=V.crossPos+Math.max(le,pe)}Y?d!==void 0&&p!==void 0&&Math.min(Te,p)-Math.max(K,d)>1&&(U.side==="left"?(Z=U._mainLinePosition,re=t.width):re=U._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(Te,v)-Math.max(K,c)>1&&(U.side==="top"?(Z=U._mainLinePosition,re=t.height):re=U._mainLinePosition)}u[f++]=[{datum:V,traceIndex:V.trace.index,dp:0,pos:V.pos,posref:V.posref,size:V.by*(Y?Dhe:1)/2,pmin:Z,pmax:re}]}),u.sort(function(V,G){return V[0].posref-G[0].posref||l*(G[0].traceIndex-V[0].traceIndex)});var x,w,_,b,T,k,M;function S(V){var G=V[0],U=V[V.length-1];if(w=G.pmin-G.pos-G.dp+G.size,_=U.pos+U.dp+U.size-G.pmax,w>.01){for(T=V.length-1;T>=0;T--)V[T].dp+=w;x=!1}if(!(_<.01)){if(w<-.01){for(T=V.length-1;T>=0;T--)V[T].dp-=_;x=!1}if(x){var Y=0;for(b=0;bG.pmax&&Y++;for(b=V.length-1;b>=0&&!(Y<=0);b--)k=V[b],k.pos>G.pmax-1&&(k.del=!0,Y--);for(b=0;b=0;T--)V[T].dp-=_;for(b=V.length-1;b>=0&&!(Y<=0);b--)k=V[b],k.pos+k.dp+k.size>G.pmax&&(k.del=!0,Y--)}}}for(;!x&&o<=s;){for(o++,x=!0,b=0;b.01){for(T=D.length-1;T>=0;T--)D[T].dp+=w;for(E.push.apply(E,D),u.splice(b+1,1),M=0,T=E.length-1;T>=0;T--)M+=E[T].dp;for(_=M/E.length,T=E.length-1;T>=0;T--)E[T].dp-=_;x=!1}else b++}u.forEach(S)}for(b=u.length-1;b>=0;b--){var z=u[b];for(T=z.length-1;T>=0;T--){var O=z[T],B=O.datum;B.offset=O.dp,B.del=O.del}}}function mD(e,r){var t=0,a=e.offset;return r&&(a*=-Phe,t=e.offset*Rhe),{x:t,y:a}}function Ohe(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Dt+Yr),a=t+r*(e.txwidth+Yr),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Yr),{alignShift:r,textShiftX:t,text2ShiftX:a}}function gD(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=mu.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=Ohe(o),v=mD(o,r),d=v.x,p=v.y,m=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,x;m?x="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":y?x="M0,0L"+n(f*Dt+d)+","+i(Dt+p)+"v"+i(o.by/2-Dt)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Dt+d)+"V"+i(p-Dt)+"Z":x="M"+n(f*Dt+d)+","+i(p-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",x);var w=d+c.textShiftX,_=p+o.ty0-o.by/2+Yr,b=o.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),w=m?-o.bx/2-o.tx2width/2+Yr:-o.bx-Yr):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),w=m?o.bx/2-o.tx2width/2-Yr:o.bx+Yr)),s.call(mi.positionText,n(w),i(_)),o.tx2width&&(l.select("text.name").call(mi.positionText,n(c.text2ShiftX+c.alignShift*Yr+d),i(p+o.ty0-o.by/2+Yr)),l.select("rect").call(Ro.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function Bhe(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||cl(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=Ut.castOption(n,t,v);return o(p)?p:Ut.extractOption({},a,"",d)}:function(v,d){return Ut.extractOption(i,a,v,d)};function s(v,d,p){var m=l(d,p);o(m)&&(e[v]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ut.constrain(e.x0,0,e.xa._length),e.x1=Ut.constrain(e.x1,0,e.xa._length),e.y0=Ut.constrain(e.y0,0,e.ya._length),e.y1=Ut.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Po.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Po.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Po.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Po.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Po.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Po.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function fD(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=Ma.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;u=v&&v.xa,f=v&&v.ya;var m=f.spikesnap;m==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+v.x,p=f._offset+v.y);var y=oD.readability(v.color,c)<1.5?Ma.contrast(c):v.color,x=f.spikemode,w=f.spikethickness,_=f.spikecolor||y,b=Po.getPxPosition(e,f),T,k;if(x.indexOf("toaxis")!==-1||x.indexOf("across")!==-1){if(x.indexOf("toaxis")!==-1&&(T=b,k=d),x.indexOf("across")!==-1){var M=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),S=Math.max(S,f.position)),T=i.l+M*i.w,k=i.l+S*i.w}a.insert("line",":first-child").attr({x1:T,x2:k,y1:p,y2:p,"stroke-width":w,stroke:_,"stroke-dasharray":Ro.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:T,x2:k,y1:p,y2:p,"stroke-width":w+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}x.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:p,r:w,fill:_}).classed("spikeline",!0)}if(s){var E=r.vLinePoint,D,P;u=E&&E.xa,f=E&&E.ya;var R=u.spikesnap;R==="cursor"?(D=o.pointerX,P=o.pointerY):(D=u._offset+E.x,P=f._offset+E.y);var z=oD.readability(E.color,c)<1.5?Ma.contrast(c):E.color,O=u.spikemode,B=u.spikethickness,V=u.spikecolor||z,G=Po.getPxPosition(e,u),U,Y;if(O.indexOf("toaxis")!==-1||O.indexOf("across")!==-1){if(O.indexOf("toaxis")!==-1&&(U=G,Y=P),O.indexOf("across")!==-1){var X=u._counterDomainMin,Z=u._counterDomainMax;u.anchor==="free"&&(X=Math.min(X,u.position),Z=Math.max(Z,u.position)),U=i.t+(1-Z)*i.h,Y=i.t+(1-X)*i.h}a.insert("line",":first-child").attr({x1:D,x2:D,y1:U,y2:Y,"stroke-width":B,stroke:V,"stroke-dasharray":Ro.dashStyle(u.spikedash,B)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:D,x2:D,y1:U,y2:Y,"stroke-width":B+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}O.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:D,cy:G-(u.side!=="top"?B:-B),r:B,fill:V}).classed("spikeline",!0)}}}function Hhe(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function cD(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function vD(e,r){return mi.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Uhe(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o{"use strict";var Ghe=Ce(),Yhe=Tr(),Vhe=qo().isUnifiedHover;_D.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&Vhe(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=Yhe.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),Ghe.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var TD=N((lRe,wD)=>{"use strict";var Whe=Ce(),jhe=$1(),Zhe=Tf();wD.exports=function(r,t){function a(n,i){return Whe.coerce(r,t,Zhe,n,i)}jhe(r,t,a)}});var kD=N((sRe,MD)=>{"use strict";var AD=Ce(),Xhe=mp(),Jhe=$1();MD.exports=function(r,t,a,n){function i(l,s){return AD.coerce(r,t,Xhe,l,s)}var o=AD.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),Jhe(r,t,i,o)}});var k5=N((uRe,SD)=>{"use strict";var $he=Ce(),Khe=Tf();SD.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:$he.coerce(r,t,Khe,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var CD=N((fRe,LD)=>{"use strict";var qD=Ce(),Qhe=Tf(),e0e=k5(),r0e=$1();LD.exports=function(r,t){function a(f,c){return qD.coerce(r,t,Qhe,f,c)}var n=e0e(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&u===1||(o||l)&&s&&u===2)&&(t.dragmode="pan"),r0e(r,t,a),qD.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var RD=N((cRe,DD)=>{"use strict";var S5=Ce(),ED=gr();DD.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return S5.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var a0e=gr(),n0e=M5().hover;PD.exports=function(r,t,a){var n=a0e.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&n0e(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Pn=N((hRe,ID)=>{"use strict";var i0e=Sr(),K1=Ce(),o0e=pi(),Th=qo(),ND=Tf(),zD=M5();ID.exports={moduleType:"component",name:"fx",constants:Wv(),schema:{layout:ND},attributes:mp(),layoutAttributes:ND,supplyLayoutGlobalDefaults:TD(),supplyDefaults:kD(),supplyLayoutDefaults:CD(),calc:RD(),getDistanceFunction:Th.getDistanceFunction,getClosest:Th.getClosest,inbox:Th.inbox,quadrature:Th.quadrature,appendArrayPointValue:Th.appendArrayPointValue,castHoverOption:s0e,castHoverinfo:u0e,hover:zD.hover,unhover:o0e.unhover,loneHover:zD.loneHover,loneUnhover:l0e,click:FD()};function l0e(e){var r=K1.isD3Selection(e)?e:i0e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function s0e(e,r,t){return K1.castOption(e,r,"hoverlabel."+t)}function u0e(e,r,t){function a(n){return K1.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return K1.castOption(e,t,"hoverinfo",a)}});var bu=N(vl=>{"use strict";vl.selectMode=function(e){return e==="lasso"||e==="select"};vl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};vl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};vl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};vl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};vl.selectingOrDrawing=function(e){return vl.freeMode(e)||vl.rectMode(e)}});var Q1=N((pRe,OD)=>{"use strict";OD.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var ey=N((yRe,BD)=>{"use strict";BD.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var ty=N((mRe,HD)=>{"use strict";var ry=32;HD.exports={CIRCLE_SIDES:ry,i000:0,i090:ry/4,i180:ry/2,i270:ry/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var ay=N((gRe,GD)=>{"use strict";var f0e=Ce().strTranslate;function UD(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function c0e(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function v0e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return UD(e,t[r])}}function h0e(e){return f0e(e.xaxis._offset,e.yaxis._offset)}GD.exports={p2r:UD,r2p:c0e,axValue:v0e,getTransform:h0e}});var ts=N(hl=>{"use strict";var d0e=mx(),WD=ty(),oc=WD.CIRCLE_SIDES,q5=WD.SQRT2,jD=ay(),YD=jD.p2r,VD=jD.r2p,p0e=[0,3,4,5,6,1,2],y0e=[0,3,4,1,2];hl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var ZD=ia(),QD=bu(),m0e=QD.drawMode,g0e=QD.openMode,lc=ty(),XD=lc.i000,JD=lc.i090,$D=lc.i180,KD=lc.i270,b0e=lc.cos45,x0e=lc.sin45,eR=ay(),iy=eR.p2r,as=eR.r2p,_0e=Zl(),w0e=_0e.clearOutline,oy=ts(),T0e=oy.readPaths,A0e=oy.writePaths,M0e=oy.ellipseOver,k0e=oy.fixDatesForPaths;function S0e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!m0e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var q0e=bu(),L0e=q0e.selectMode,C0e=Zl(),E0e=C0e.clearOutline,L5=ts(),D0e=L5.readPaths,R0e=L5.writePaths,P0e=L5.fixDatesForPaths;aR.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!L0e(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";nR.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var ns=N(Ra=>{"use strict";var xu=Mh(),iR=Ce(),sy=Ir();Ra.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Ra.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Ra.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Ra.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Ra.extractPathCoords=function(e,r,t){var a=[],n=e.match(xu.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.substr(1).match(xu.paramRE);if(!(!l||l.lengthd&&(m="X"),m});return u>d&&(p=p.replace(/[\s,]*X.*/,""),iR.log("Ignoring extra params in segment "+s)),f+p})}function kh(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var D5=N((ARe,uR)=>{"use strict";var N0e=Ce(),sc=Ir(),oR=Da(),lR=Wr(),z0e=ts().readPaths,E5=ns(),I0e=E5.getPathString,sR=kp(),O0e=Xa().FROM_TL;uR.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=sc.getFromId(r,a.xref),s=sc.getFromId(r,a.yref);for(var u in sR){var f=sR[u](a,l,s);f!==void 0&&(o[u]=f)}}i=N0e.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,o)}else i=a.label.text;var c={"data-index":t},v=a.label.font,d={"data-notex":1},p=n.append("g").attr(c).classed("shape-label",!0),m=p.append("text").attr(d).classed("shape-label-text",!0).text(i),y,x,w,_;if(a.path){var b=I0e(r,a),T=z0e(b,r);y=1/0,w=1/0,x=-1/0,_=-1/0;for(var k=0;k=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function H0e(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,m=n.label.yanchor,y,x,w,_;if(f==="line"){l==="start"?(y=e,x=r):l==="end"?(y=t,x=a):(y=(e+t)/2,x=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var U0e=Ce(),G0e=U0e.strTranslate,fR=pi(),hR=bu(),Y0e=hR.drawMode,dR=hR.selectMode,pR=gr(),cR=Tr(),fy=ty(),V0e=fy.i000,W0e=fy.i090,j0e=fy.i180,Z0e=fy.i270,X0e=Zl(),yR=X0e.clearOutlineControllers,P5=ts(),uy=P5.pointsOnRectangle,R5=P5.pointsOnEllipse,J0e=P5.writePaths,$0e=ly().newShapes,K0e=ly().createShapeObj,Q0e=C5(),ede=D5();mR.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(R5(r[0])||a.hasText)&&l({redrawing:!0})}function l(G){var U={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,U=$0e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,U=Q0e(t,a),i._fullLayout._reselect=!0),Object.keys(U).length&&pR.call((G||{}).redrawing?"relayout":"_guiRelayout",i,U)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Y0e(f),v=dR(f);(c||v)&&(i._fullLayout._outlining=!0),yR(i),t.attr("d",J0e(r));var d,p,m,y,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=rde([],r);var w=u.append("g").attr("class","outline-controllers");D(w),V()}if(c&&a.hasText){var _=u.select(".label-temp"),b=K0e(t,a,a.dragmode);ede(i,"label-temp",b,_)}function T(G){m=+G.srcElement.getAttribute("data-i"),y=+G.srcElement.getAttribute("data-j"),d[m][y].moveFn=k}function k(G,U){if(r.length){var Y=x[m][y][1],X=x[m][y][2],Z=r[m],re=Z.length;if(uy(Z)){var ce=G,oe=U;if(a.isActiveSelection){var fe=vR(Z,y);fe[1]===Z[y][1]?oe=0:ce=0}for(var K=0;K1&&!(G.length===2&&G[1][0]==="Z")&&(y===0&&(G[0][0]="M"),r[m]=G,o(),l())}}function E(G,U){if(G===2){m=+U.srcElement.getAttribute("data-i"),y=+U.srcElement.getAttribute("data-j");var Y=r[m];!uy(Y)&&!R5(Y)&&S()}}function D(G){d=[];for(var U=0;U{"use strict";var ade=Sr(),TR=gr(),gR=Ce(),uc=Ir(),nde=ts().readPaths,ide=cy(),hy=D5(),AR=Zl().clearOutlineControllers,F5=Tr(),z5=Wr(),ode=At().arrayEditor,bR=pi(),xR=rs(),_u=Mh(),Fn=ns(),N5=Fn.getPathString;SR.exports={draw:I5,drawOne:MR,eraseActiveShape:ude,drawLabel:hy};function I5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;no&&Ge>l&&!Ne.shiftKey?bR.getCursor(He/ze,1-De/Ge):"move";xR(r,Ie),Te=Ie.split("-")[0]}}function ve(Ne){vy(e)||(s&&(x=Z(t.xanchor)),u&&(w=re(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:Z(t.x0),p=u?t.y0:re(t.y0),m=s?t.x1:Z(t.x1),y=u?t.y1:re(t.y1)),dy?(_=p,M="y0",b=y,S="y1"):(_=y,M="y1",b=p,S="y0"),ie(Ne),_e(n,t),Pe(r,t,e),K.moveFn=Te==="move"?j:ye,K.altKey=Ne.altKey)}function W(){vy(e)||(xR(r),me(n),kR(r,e,t),TR.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){vy(e)||me(n)}function j(Ne,Re){if(t.type==="path"){var ze=function(De){return De},Ge=ze,He=ze;s?v("xanchor",t.xanchor=ce(x+Ne)):(Ge=function(Ie){return ce(Z(Ie)+Ne)},z&&z.type==="date"&&(Ge=Fn.encodeDate(Ge))),u?v("yanchor",t.yanchor=oe(w+Re)):(He=function(Ie){return oe(re(Ie)+Re)},B&&B.type==="date"&&(He=Fn.encodeDate(He))),v("path",t.path=_R(P,Ge,He))}else s?v("xanchor",t.xanchor=ce(x+Ne)):(v("x0",t.x0=ce(d+Ne)),v("x1",t.x1=ce(m+Ne))),u?v("yanchor",t.yanchor=oe(w+Re)):(v("y0",t.y0=oe(p+Re)),v("y1",t.y1=oe(y+Re)));r.attr("d",N5(e,t)),_e(n,t),hy(e,a,t,R)}function ye(Ne,Re){if(c){var ze=function(Xe){return Xe},Ge=ze,He=ze;s?v("xanchor",t.xanchor=ce(x+Ne)):(Ge=function(Qe){return ce(Z(Qe)+Ne)},z&&z.type==="date"&&(Ge=Fn.encodeDate(Ge))),u?v("yanchor",t.yanchor=oe(w+Re)):(He=function(Qe){return oe(re(Qe)+Re)},B&&B.type==="date"&&(He=Fn.encodeDate(He))),v("path",t.path=_R(P,Ge,He))}else if(f){if(Te==="resize-over-start-point"){var De=d+Ne,Ie=u?p-Re:p+Re;v("x0",t.x0=s?De:ce(De)),v("y0",t.y0=u?Ie:oe(Ie))}else if(Te==="resize-over-end-point"){var Be=m+Ne,se=u?y-Re:y+Re;v("x1",t.x1=s?Be:ce(Be)),v("y1",t.y1=u?se:oe(se))}}else{var Ae=function(Xe){return Te.indexOf(Xe)!==-1},je=Ae("n"),ur=Ae("s"),lr=Ae("w"),ue=Ae("e"),qe=je?_+Re:_,Oe=ur?b+Re:b,Ze=lr?T+Ne:T,Ue=ue?k+Ne:k;u&&(je&&(qe=_-Re),ur&&(Oe=b-Re)),(!u&&Oe-qe>l||u&&qe-Oe>l)&&(v(M,t[M]=u?qe:oe(qe)),v(S,t[S]=u?Oe:oe(Oe))),Ue-Ze>o&&(v(E,t[E]=s?Ze:ce(Ze)),v(D,t[D]=s?Ue:ce(Ue)))}r.attr("d",N5(e,t)),_e(n,t),hy(e,a,t,R)}function _e(Ne,Re){(s||u)&&ze();function ze(){var Ge=Re.type!=="path",He=Ne.selectAll(".visual-cue").data([0]),De=1;He.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var Ie=Z(s?Re.xanchor:gR.midRange(Ge?[Re.x0,Re.x1]:Fn.extractPathCoords(Re.path,_u.paramIsX))),Be=re(u?Re.yanchor:gR.midRange(Ge?[Re.y0,Re.y1]:Fn.extractPathCoords(Re.path,_u.paramIsY)));if(Ie=Fn.roundPositionForSharpStrokeRendering(Ie,De),Be=Fn.roundPositionForSharpStrokeRendering(Be,De),s&&u){var se="M"+(Ie-1-De)+","+(Be-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";He.attr("d",se)}else if(s){var Ae="M"+(Ie-1-De)+","+(Be-9-De)+"v18 h2 v-18 Z";He.attr("d",Ae)}else{var je="M"+(Ie-9-De)+","+(Be-1-De)+"h18 v2 h-18 Z";He.attr("d",je)}}}function me(Ne){Ne.selectAll(".visual-cue").remove()}function Pe(Ne,Re,ze){var Ge=Re.xref,He=Re.yref,De=uc.getFromId(ze,Ge),Ie=uc.getFromId(ze,He),Be="";Ge!=="paper"&&!De.autorange&&(Be+=Ge),He!=="paper"&&!Ie.autorange&&(Be+=He),z5.setClipUrl(Ne,Be?"clip"+ze._fullLayout._uid+Be:null,ze)}}function _R(e,r,t){return e.replace(_u.segmentRE,function(a){var n=0,i=a.charAt(0),o=_u.paramIsX[i],l=_u.paramIsY[i],s=_u.numParams[i],u=a.substr(1).replace(_u.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function sde(e,r){if(dy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){wR(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=wR,I5(e)}}}function wR(e){if(dy(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(AR(e),delete e._fullLayout._activeShapeIndex,I5(e))}}function ude(e){if(dy(e)){AR(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var gi=gr(),qR=aa(),LR=ia(),Xr=ey(),fde=py().eraseActiveShape,yy=Ce(),Ur=yy._,Jr=NR.exports={};Jr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Ur(e,"Download plot as a PNG"):Ur(e,"Download plot")},icon:Xr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};yy.notifier(Ur(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),gi.call("downloadImage",e,t).then(function(a){yy.notifier(Ur(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){yy.notifier(Ur(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Jr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Ur(e,"Edit in Chart Studio")},icon:Xr.disk,click:function(e){qR.sendDataToCloud(e)}};Jr.editInChartStudio={name:"editInChartStudio",title:function(e){return Ur(e,"Edit in Chart Studio")},icon:Xr.pencil,click:function(e){qR.sendDataToCloud(e)}};Jr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ur(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Xr.zoombox,click:sn};Jr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ur(e,"Pan")},attr:"dragmode",val:"pan",icon:Xr.pan,click:sn};Jr.select2d={name:"select2d",_cat:"select",title:function(e){return Ur(e,"Box Select")},attr:"dragmode",val:"select",icon:Xr.selectbox,click:sn};Jr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ur(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Xr.lasso,click:sn};Jr.drawclosedpath={name:"drawclosedpath",title:function(e){return Ur(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Xr.drawclosedpath,click:sn};Jr.drawopenpath={name:"drawopenpath",title:function(e){return Ur(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Xr.drawopenpath,click:sn};Jr.drawline={name:"drawline",title:function(e){return Ur(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Xr.drawline,click:sn};Jr.drawrect={name:"drawrect",title:function(e){return Ur(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Xr.drawrect,click:sn};Jr.drawcircle={name:"drawcircle",title:function(e){return Ur(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Xr.drawcircle,click:sn};Jr.eraseshape={name:"eraseshape",title:function(e){return Ur(e,"Erase active shape")},icon:Xr.eraseshape,click:fde};Jr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ur(e,"Zoom in")},attr:"zoom",val:"in",icon:Xr.zoom_plus,click:sn};Jr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ur(e,"Zoom out")},attr:"zoom",val:"out",icon:Xr.zoom_minus,click:sn};Jr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ur(e,"Autoscale")},attr:"zoom",val:"auto",icon:Xr.autoscale,click:sn};Jr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ur(e,"Reset axes")},attr:"zoom",val:"reset",icon:Xr.home,click:sn};Jr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ur(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Xr.tooltip_basic,gravity:"ne",click:sn};Jr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ur(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Xr.tooltip_compare,gravity:"ne",click:sn};function sn(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=LR.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,m;for(f=0;f{"use strict";var zR=H5(),hde=Object.keys(zR),IR=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],OR=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(IR),cc=[],dde=function(e){if(OR.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();cc.indexOf(r)===-1&&cc.push(r),cc.indexOf(t)===-1&&cc.push(t)}};hde.forEach(function(e){dde(zR[e])});cc.sort();BR.exports={DRAW_MODES:IR,backButtons:OR,foreButtons:cc}});var G5=N((CRe,HR)=>{"use strict";var LRe=U5();HR.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var GR=N((ERe,UR)=>{"use strict";var pde=Ce(),Sh=Tr(),yde=At(),mde=G5();UR.exports=function(r,t){var a=r.modebar||{},n=yde.newContainer(t,"modebar");function i(l,s){return pde.coerce(a,n,mde,l,s)}i("orientation"),i("bgcolor",Sh.addOpacity(t.paper_bgcolor,.5));var o=Sh.contrast(Sh.rgb(t.modebar.bgcolor));i("color",Sh.addOpacity(o,.3)),i("activecolor",Sh.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var jR=N((DRe,WR)=>{"use strict";var Y5=Sr(),gde=Rr(),gy=Ce(),YR=ey(),bde=ip().version,xde=new DOMParser;function VR(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Fo=VR.prototype;Fo.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),gy.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Fo.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Fo.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Fo.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Y5.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||YR.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Fo.createIcon=function(e){var r=gde(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=xde.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Fo.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=Y5.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:gy.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};Fo.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Tde=ia(),ZR=Dn(),V5=gr(),Ade=qo().isUnifiedHover,Mde=jR(),by=H5(),kde=U5().DRAW_MODES,Sde=Ce().extendDeep;XR.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=Rde(i):!a.displayModeBar&&a.watermark?o=[]:o=qde(r),n?n.update(r,o):t._modeBar=Mde(r,o)};function qde(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(U,Y){if(typeof Y=="string"){if(Y.toLowerCase()===U.toLowerCase())return!0}else{var X=Y.name,Z=Y._cat||Y.name;if(X===U||Z===U.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(U){for(var Y=0;Y1?(D=["toggleHover"],P=["resetViews"]):c?(E=["zoomInGeo","zoomOutGeo"],D=["hoverClosestGeo"],P=["resetGeo"]):f?(D=["hoverClosest3d"],P=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(E=["zoomInMapbox","zoomOutMapbox"],D=["toggleHover"],P=["resetViewMapbox"]):y?(E=["zoomInMap","zoomOutMap"],D=["toggleHover"],P=["resetViewMap"]):v?D=["hoverClosestPie"]:_?(D=["hoverClosestCartesian","hoverCompareCartesian"],P=["resetViewSankey"]):D=["toggleHover"],u&&D.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Ede(t)||T)&&(D=[]),u&&!b&&(E=["zoomIn2d","zoomOut2d","autoScale2d"],P[0]!=="resetViews"&&(P=["resetScale2d"])),f?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||p?R=["zoom2d","pan2d"]:m||y||c?R=["pan2d"]:x&&(R=["zoom2d"]),Cde(t)&&R.push("select2d","lasso2d");var z=[],O=function(U){z.indexOf(U)===-1&&D.indexOf(U)!==-1&&z.push(U)};if(Array.isArray(l)){for(var B=[],V=0;V{"use strict";$R.exports={moduleType:"component",name:"modebar",layoutAttributes:G5(),supplyLayoutDefaults:GR(),manage:JR()}});var j5=N((FRe,KR)=>{"use strict";var Pde=Xa().FROM_BL;KR.exports=function(r,t,a){a===void 0&&(a=Pde[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Tu=N(qh=>{"use strict";var wu=Ce(),Z5=dh(),ao=ia().id2name,Fde=hi(),QR=j5(),Nde=Xf(),zde=Nt().ALMOST_EQUAL,Ide=Xa().FROM_BL;qh.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,v,d,p;for(l=0;li?t.substr(i):a.substr(n))+o}function Bde(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;ozde*p&&!w)){for(i=0;iR&&XD&&(D=X);var re=(D-E)/(2*P);c/=re,E=s.l2r(E),D=s.l2r(D),s.range=s._input.range=k{"use strict";var _y=Sr(),un=gr(),Kn=aa(),bi=Ce(),$5=Da(),K5=Q1(),Lh=Tr(),vc=Wr(),aP=Zf(),sP=W5(),Ch=Ir(),dl=Xa(),uP=Tu(),Hde=uP.enforce,Ude=uP.clean,nP=dh().doAutoRange,fP="start",Gde="middle",cP="end",Yde=Ea().zindexSeparator;ka.layoutStyles=function(e){return bi.syncOrAsync([Kn.doAutoMargin,Wde],e)};function Vde(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Wde(e){var r=e._fullLayout,t=r._size,a=t.p,n=Ch.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(vc.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),ka.drawMainTitle(e),sP.manage(e),!r._has("cartesian"))return Kn.previousPromises(e);function c(ve,W,Q){var j=ve._lw/2;if(ve._id.charAt(0)==="x"){if(W){if(Q==="top")return W._offset-a-j}else return t.t+t.h*(1-(ve.position||0))+j%1;return W._offset+W._length+a+j}if(W){if(Q==="right")return W._offset+W._length+a+j}else return t.l+t.w*(ve.position||0)+j%1;return W._offset-a-j}for(i=0;i0){Jde(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:lP(r.yanchor)}).call($5.positionText,o,i);var f=(r.text.match($5.BR_TAG_ALL)||[]).length;if(f){var c=dl.LINE_SPACING*f+dl.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var v=_y.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,m=p+aP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y:m,"text-anchor":a,dy:lP(r.yanchor)}).call($5.positionText,o,m)}}}};function jde(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=bi.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return bi.isTopAnchor(r)&&t==="t"||bi.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=Zde(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function Jde(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&jde(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Kn.allowAutoMargin(e,n),Kn.autoMargin(e,n,l)}function $de(e,r){var t=e.title,a=e._size,n=0;switch(r===fP?n=t.pad.l:r===cP&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function Kde(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===dl.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function lP(e){return e==="top"?dl.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":dl.MID_SHIFT+"em"}function Qde(e){var r=e.title,t=Gde;return bi.isRightAnchor(r)?t=cP:bi.isLeftAnchor(r)&&(t=fP),t}function epe(e){var r=e.title,t="0em";return bi.isTopAnchor(r)?t=dl.CAP_SHIFT+"em":bi.isMiddleAnchor(r)&&(t=dl.MID_SHIFT+"em"),t}ka.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var rpe=ts().readPaths,tpe=cy(),vP=Zl().clearOutlineControllers,Q5=Tr(),hP=Wr(),ape=At().arrayEditor,dP=ns(),npe=dP.getPathString;yP.exports={draw:Ty,drawOne:pP,activateLastSelection:lpe};function Ty(e){var r=e._fullLayout;vP(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var x=o.append("path").attr(s).style("opacity",y?.1:u).call(Q5.stroke,c).call(Q5.fill,f).call(hP.dashLine,y?"solid":d,y?4+v:v);if(ipe(x,e,a),p){var w=ape(e.layout,"selections",a);x.style({cursor:"move"});var _={element:x.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=rpe(l,e);tpe(b,x,_)}else x.style("pointer-events",y?"all":"none");m[y]=x}var T=m[0],k=m[1];k.node().addEventListener("click",function(){return ope(e,T)})}}function ipe(e,r,t){var a=t.xref+t.yref;hP.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function ope(e,r){if(Ay(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){e_(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=e_,Ty(e)}}}function lpe(e){if(Ay(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=e_,Ty(e)}}function e_(e){if(Ay(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(vP(e),delete e._fullLayout._activeSelectionIndex,Ty(e))}}});var gP=N((ORe,mP)=>{function spe(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}mP.exports=spe});var xP=N((BRe,bP)=>{function upe(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}bP.exports=upe});var wP=N((HRe,_P)=>{var fpe={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};_P.exports=fpe});var AP=N((URe,TP)=>{var Eh=wP();function cpe(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,y){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=Eh.create();function o(p,m,y,x,w,_){var b=r.pointsCompare(m,w);return b!==0?b:r.pointsSame(y,_)?0:p!==x?p?1:-1:r.pointAboveOrOnLine(y,x?w:_,x?_:w)?1:-1}function l(p,m){i.insertBefore(p,function(y){var x=o(p.isStart,p.pt,m,y.isStart,y.pt,y.other.pt);return x<0})}function s(p,m){var y=Eh.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return l(y,p.end),y}function u(p,m,y){var x=Eh.node({isStart:!1,pt:m.end,seg:m,primary:y,other:p,status:null});p.other=x,l(x,p.pt)}function f(p,m){var y=s(p,m);return u(y,p,m),y}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,l(p.other,p.pt)}function v(p,m){var y=n(m,p.seg.end,p.seg);return c(p,m),f(y,p.primary)}function d(p,m){var y=Eh.create();function x(B,V){var G=B.seg.start,U=B.seg.end,Y=V.seg.start,X=V.seg.end;return r.pointsCollinear(G,Y,X)?r.pointsCollinear(U,Y,X)||r.pointAboveOrOnLine(U,Y,X)?1:-1:r.pointAboveOrOnLine(G,Y,X)?1:-1}function w(B){return y.findTransition(function(V){var G=x(B,V.ev);return G>0})}function _(B,V){var G=B.seg,U=V.seg,Y=G.start,X=G.end,Z=U.start,re=U.end;t&&t.checkIntersection(G,U);var ce=r.linesIntersect(Y,X,Z,re);if(ce===!1){if(!r.pointsCollinear(Y,X,Z)||r.pointsSame(Y,re)||r.pointsSame(X,Z))return!1;var oe=r.pointsSame(Y,Z),fe=r.pointsSame(X,re);if(oe&&fe)return V;var K=!oe&&r.pointBetween(Y,Z,re),Te=!fe&&r.pointBetween(X,Z,re);if(oe)return Te?v(V,X):v(B,re),V;K&&(fe||(Te?v(V,X):v(B,re)),v(V,Y))}else ce.alongA===0&&(ce.alongB===-1?v(B,Z):ce.alongB===0?v(B,ce.pt):ce.alongB===1&&v(B,re)),ce.alongB===0&&(ce.alongA===-1?v(V,Y):ce.alongA===0?v(V,ce.pt):ce.alongA===1&&v(V,X));return!1}for(var b=[];!i.isEmpty();){var T=i.getHead();if(t&&t.vert(T.pt[0]),T.isStart){let B=function(){if(M){var V=_(T,M);if(V)return V}return S?_(T,S):!1};var O=B;t&&t.segmentNew(T.seg,T.primary);var k=w(T),M=k.before?k.before.ev:null,S=k.after?k.after.ev:null;t&&t.tempStatus(T.seg,M?M.seg:!1,S?S.seg:!1);var E=B();if(E){if(e){var D;T.seg.myFill.below===null?D=!0:D=T.seg.myFill.above!==T.seg.myFill.below,D&&(E.seg.myFill.above=!E.seg.myFill.above)}else E.seg.otherFill=T.seg.myFill;t&&t.segmentUpdate(E.seg),T.other.remove(),T.remove()}if(i.getHead()!==T){t&&t.rewind(T.seg);continue}if(e){var D;T.seg.myFill.below===null?D=!0:D=T.seg.myFill.above!==T.seg.myFill.below,S?T.seg.myFill.below=S.seg.myFill.above:T.seg.myFill.below=p,D?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var P;S?T.primary===S.primary?P=S.seg.otherFill.above:P=S.seg.myFill.above:P=T.primary?m:p,T.seg.otherFill={above:P,below:P}}t&&t.status(T.seg,M?M.seg:!1,S?S.seg:!1),T.other.status=k.insert(Eh.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(R.prev)&&y.exists(R.next)&&_(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!T.primary){var z=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=z}b.push(T.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(p){for(var m,y=p[p.length-1],x=0;x{function vpe(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(O,B,V){return f.index=O,f.matches_head=B,f.matches_pt1=V,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v{function Dh(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var hpe={union:function(e,r){return Dh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Dh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Dh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Dh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Dh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};SP.exports=hpe});var CP=N((VRe,LP)=>{var dpe={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var ppe=gP(),ype=xP(),EP=AP(),mpe=kP(),Rh=qP(),DP=CP(),xi=!1,Ph=ype(),Nn;Nn={buildLog:function(e){return e===!0?xi=ppe():e===!1&&(xi=!1),xi===!1?!1:xi.list},epsilon:function(e){return Ph.epsilon(e)},segments:function(e){var r=EP(!0,Ph,xi);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=EP(!1,Ph,xi);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Rh.union(e.combined,xi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Rh.intersect(e.combined,xi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Rh.difference(e.combined,xi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Rh.differenceRev(e.combined,xi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Rh.xor(e.combined,xi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:mpe(e.segments,Ph,xi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return DP.toPolygon(Nn,e)},polygonToGeoJSON:function(e){return DP.fromPolygon(Nn,Ph,e)},union:function(e,r){return Fh(e,r,Nn.selectUnion)},intersect:function(e,r){return Fh(e,r,Nn.selectIntersect)},difference:function(e,r){return Fh(e,r,Nn.selectDifference)},differenceRev:function(e,r){return Fh(e,r,Nn.selectDifferenceRev)},xor:function(e,r){return Fh(e,r,Nn.selectXor)}};function Fh(e,r,t){var a=Nn.segments(e),n=Nn.segments(r),i=Nn.combine(a,n),o=t(i);return Nn.polygon(o)}typeof window=="object"&&(window.PolyBool=Nn);RP.exports=Nn});var NP=N((jRe,FP)=>{FP.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;uo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;m&&(l=!l)}return l}});var a_=N((ZRe,zP)=>{"use strict";var t_=Tp().dot,My=Nt().BADNUM,ky=zP.exports={};ky.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||x===My||xo||m&&u(p))}function c(p,m){var y=p[0],x=p[1];if(y===My||yn||x===My||xo)return!1;var w=t.length,_=t[0][0],b=t[0][1],T=0,k,M,S,E,D;for(k=1;kMath.max(M,_)||x>Math.max(S,b)))if(xl||Math.abs(t_(c,u))>n)return!0;return!1};ky.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var OP=N((XRe,IP)=>{"use strict";IP.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var lF=N((JRe,oF)=>{"use strict";var BP=PP(),gpe=NP(),Ih=gr(),bpe=Wr().dashStyle,Nh=Tr(),xpe=Pn(),_pe=qo().makeEventData,Gh=bu(),wpe=Gh.freeMode,Tpe=Gh.rectMode,Oh=Gh.drawMode,l_=Gh.openMode,s_=Gh.selectMode,HP=ns(),UP=Mh(),jP=cy(),ZP=Zl().clearOutline,XP=ts(),n_=XP.handleEllipse,Ape=XP.readPaths,Mpe=ly().newShapes,kpe=C5(),Spe=r_().activateLastSelection,qy=Ce(),qpe=qy.sorterAsc,JP=a_(),zh=Fp(),_i=ia().getFromId,Lpe=Q1(),Cpe=wy().redrawReglTraces,Ly=OP(),No=Ly.MINSELECT,Epe=JP.filter,u_=JP.tester,f_=ay(),GP=f_.p2r,Dpe=f_.axValue,Rpe=f_.getTransform;function c_(e){return e.subplot!==void 0}function Ppe(e,r,t,a,n){var i=!c_(a),o=wpe(n),l=Tpe(n),s=l_(n),u=Oh(n),f=s_(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,m=p._fullLayout,y=f&&m.newselection.mode==="immediate"&&i,x=m._zoomlayer,w=a.element.getBoundingClientRect(),_=a.plotinfo,b=Rpe(_),T=r-w.left,k=t-w.top;m._calcInverseTransform(p);var M=qy.apply3DTransform(m._invTransform)(T,k);T=M[0],k=M[1];var S=m._invScaleX,E=m._invScaleY,D=T,P=k,R="M"+T+","+k,z=a.xaxes[0],O=a.yaxes[0],B=z._length,V=O._length,G=e.altKey&&!(Oh(n)&&s),U,Y,X,Z,re,ce,oe;KP(e,p,a),o&&(U=Epe([[T,k]],Ly.BENDPX));var fe=x.selectAll("path.select-outline-"+_.id).data([1]),K=u?m.newshape:m.newselection;u&&(a.hasText=K.label.text||K.label.texttemplate);var Te=u&&!s?K.fillcolor:"rgba(0,0,0,0)",le=K.line.color||(i?Nh.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");fe.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:u?K.opacity/2:1,"stroke-dasharray":bpe(K.line.dash,K.line.width),"stroke-width":K.line.width+"px","shape-rendering":"crispEdges"}).call(Nh.stroke,le).call(Nh.fill,Te).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",R+"Z");var pe=x.append("path").attr("class","zoombox-corners").style({fill:Nh.background,stroke:Nh.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var ie=x.select(".label-temp");ie.empty()&&(ie=x.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ve=m._uid+Ly.SELECTID,W=[],Q=Cy(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var ye=z._id,_e=O._id;aF(p,ye,_e,Q);for(var me=(p.layout||{}).selections||[],Pe=[],Ne=!1,Re=0;Re=0){p._fullLayout._deactivateShape(p);return}if(!u){var me=m.clickmode;zh.done(ve).then(function(){if(zh.clear(ve),ye===2){for(fe.remove(),re=0;re-1&&$P(_e,p,a.xaxes,a.yaxes,a.subplot,a,fe),me==="event"&&Uh(p,void 0);xpe.click(p,_e,_.id)}).catch(qy.error)}},a.doneFn=function(){pe.remove(),zh.done(ve).then(function(){zh.clear(ve),!y&&Z&&a.selectionDefs&&(Z.subtract=G,a.selectionDefs.push(Z),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,X)),(y||u)&&Bh(a,y),a.doneFnCompleted&&a.doneFnCompleted(W),f&&Uh(p,oe)}).catch(qy.error)}}function $P(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,d,p,m,y,x,w,_,b,T;if(Ope(l)){KP(e,r,i),v=Cy(r,t,a,n);var k=Bpe(l,v),M=k.pointNumbers.length>0;if(M?Hpe(v,k):Upe(v)&&(w=VP(k))){for(o&&o.remove(),T=0;T=0}function Ipe(e){return e._fullLayout._activeSelectionIndex>=0}function Bh(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;zpe(n)&&n._fullLayout._deactivateShape(n),Ipe(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=Oh(t),s=s_(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=Mpe(u,e)),f&&Ih.call("_guiRelayout",n,{shapes:f});var c;s&&!c_(e)&&(c=kpe(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Ih.call("_guiRelayout",n,{selections:c}).then(function(){r&&Spe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function YP(e){return e._id}function Cy(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(YP),o=t.map(YP),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Hpe(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Hh(e,r,t){var a;for(a=0;a-1&&r;if(!o&&r){var ye=WP(e,!0);if(ye.length){var _e=ye[0].xref,me=ye[0].yref;if(_e&&me){var Pe=nF(ye),Ne=iF([_i(e,_e,"x"),_i(e,me,"y")]);Ne(W,Pe)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:j&&Uh(e,W),v._reselect=!1}if(!o&&v._deselect){var Re=v._deselect;l=Re.xref,s=Re.yref,Vpe(l,s,f)||aF(e,l,s,a),j&&(W.points.length?Uh(e,W):d_(e)),v._deselect=!1}return{eventData:W,selectionTesters:t}}function Ype(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";sF.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Yh=N((KRe,uF)=>{"use strict";uF.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var hc=N((ePe,vF)=>{"use strict";var fF=p_(),cF=da(),Ey=Ea(),Jpe=At().templatedArray,QRe=Yh();vF.exports=Jpe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:cF({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:fF.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:fF.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Ey.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Ey.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Ey.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Ey.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:cF({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Vh=N((rPe,hF)=>{"use strict";hF.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Dy=N((tPe,dF)=>{"use strict";dF.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var wi=N((aPe,xF)=>{"use strict";var pF=Qi().axisHoverFormat,$pe=Ta().texttemplateAttrs,Kpe=Ta().hovertemplateAttrs,yF=ko(),Qpe=da(),e1e=ui().dash,r1e=ui().pattern,t1e=Wr(),a1e=Vh(),Ry=xt().extendFlat,n1e=Dy();function mF(e){return{valType:"any",dflt:0,editType:"calc"}}function gF(e){return{valType:"any",editType:"calc"}}function bF(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}xF.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:mF("x"),yperiod:mF("y"),xperiod0:gF("x0"),yperiod0:gF("y0"),xperiodalignment:bF("x"),yperiodalignment:bF("y"),xhoverformat:pF("x"),yhoverformat:pF("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:$pe({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Kpe({},{keys:a1e.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Ry({},e1e,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:n1e(!0),fillgradient:Ry({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:r1e,marker:Ry({symbol:{valType:"enumerated",values:t1e.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Ry({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},yF("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},yF("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Qpe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var y_=N((iPe,TF)=>{"use strict";var _F=hc(),wF=wi().line,i1e=ui().dash,Py=xt().extendFlat,o1e=Xi().overrideAll,l1e=At().templatedArray,nPe=Yh();TF.exports=o1e(l1e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Py({},_F.xref,{}),yref:Py({},_F.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:wF.color,width:Py({},wF.width,{min:1,dflt:1}),dash:Py({},i1e,{dflt:"dot"})}}),"arraydraw","from-root")});var SF=N((oPe,kF)=>{"use strict";var AF=Ce(),Fy=Ir(),s1e=eo(),u1e=y_(),MF=ns();kF.exports=function(r,t){s1e(r,t,{name:"selections",handleItemDefaults:f1e});for(var a=t.selections,n=0;n{"use strict";qF.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Wh=N((sPe,DF)=>{"use strict";var c1e=gr(),CF=Ce(),EF=ia();DF.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=c1e.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var RF=r_(),jh=lF();PF.exports={moduleType:"component",name:"selections",layoutAttributes:y_(),supplyLayoutDefaults:SF(),supplyDrawNewSelectionDefaults:LF(),includeBasePlot:Wh()("selections"),draw:RF.draw,drawOne:RF.drawOne,reselect:jh.reselect,prepSelect:jh.prepSelect,clearOutline:jh.clearOutline,clearSelectionsCache:jh.clearSelectionsCache,selectOnClick:jh.selectOnClick}});var rN=N((fPe,eN)=>{"use strict";var __=Sr(),Ti=Ce(),FF=Ti.numberFormat,v1e=kn(),h1e=r5(),Ny=gr(),YF=Ti.strTranslate,d1e=Da(),NF=Tr(),os=Wr(),p1e=Pn(),zF=Ir(),y1e=rs(),m1e=pi(),VF=bu(),zy=VF.selectingOrDrawing,g1e=VF.freeMode,b1e=Xa().FROM_TL,x1e=Q1(),_1e=wy().redrawReglTraces,w1e=aa(),g_=ia().getFromId,T1e=zo().prepSelect,A1e=zo().clearOutline,M1e=zo().selectOnClick,m_=j5(),w_=Ea(),IF=w_.MINDRAG,gn=w_.MINZOOM,OF=!0;function k1e(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,v,d,p,m,y,x,w,_,b,T,k,M,S,E,D,P,R,z,O,B,V,G;t+=r.yaxis._shift;function U(){if(c=r.xaxis,v=r.yaxis,_=c._length,b=v._length,x=c._offset,w=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var ue=r.overlays,qe=0;qe=0){Oe._fullLayout._deactivateShape(Oe);return}var Ze=Oe._fullLayout.clickmode;if(x_(Oe),ue===2&&!f&&Be(),u)Ze.indexOf("select")>-1&&M1e(qe,Oe,m,y,r.id,Z),Ze.indexOf("event")>-1&&p1e.click(Oe,qe,r.id);else if(ue===1&&f){var Ue=o?v:c,Xe=o==="s"||l==="w"?0:1,Qe=Ue._name+".range["+Xe+"]",hr=S1e(Ue,Xe),$e="left",Fe="middle";if(Ue.fixedrange)return;o?(Fe=o==="n"?"top":"bottom",Ue.side==="right"&&($e="right")):l==="e"&&($e="right"),Oe._context.showAxisRangeEntryBoxes&&__.select(X).call(d1e.makeEditable,{gd:Oe,immediate:!0,background:Oe._fullLayout.paper_bgcolor,text:String(hr),fill:Ue.tickfont?Ue.tickfont.color:"#444",horizontalAlign:$e,verticalAlign:Fe}).on("edit",function(ne){var de=Ue.d2r(ne);de!==void 0&&Ny.call("_guiRelayout",Oe,Qe,de)})}}m1e.init(Z);var oe,fe,K,Te,le,pe,ie,ve,W,Q;function j(ue,qe,Oe){var Ze=X.getBoundingClientRect();oe=qe-Ze.left,fe=Oe-Ze.top,e._fullLayout._calcInverseTransform(e);var Ue=Ti.apply3DTransform(e._fullLayout._invTransform)(oe,fe);oe=Ue[0],fe=Ue[1],K={l:oe,r:oe,w:0,t:fe,b:fe,h:0},Te=e._hmpixcount?e._hmlumcount/e._hmpixcount:v1e(e._fullLayout.plot_bgcolor).getLuminance(),le="M0,0H"+_+"V"+b+"H0V0",pe=!1,ie="xy",Q=!1,ve=ZF(s,Te,x,w,le),W=XF(s,x,w)}function ye(ue,qe){if(e._transitioningWithDuration)return!1;var Oe=Math.max(0,Math.min(_,V*ue+oe)),Ze=Math.max(0,Math.min(b,G*qe+fe)),Ue=Math.abs(Oe-oe),Xe=Math.abs(Ze-fe);K.l=Math.min(oe,Oe),K.r=Math.max(oe,Oe),K.t=Math.min(fe,Ze),K.b=Math.max(fe,Ze);function Qe(){ie="",K.r=K.l,K.t=K.b,W.attr("d","M0,0Z")}if(T.isSubplotConstrained)Ue>gn||Xe>gn?(ie="xy",Ue/_>Xe/b?(Xe=Ue*b/_,fe>Ze?K.t=fe-Xe:K.b=fe+Xe):(Ue=Xe*_/b,oe>Oe?K.l=oe-Ue:K.r=oe+Ue),W.attr("d",Iy(K))):Qe();else if(k.isSubplotConstrained)if(Ue>gn||Xe>gn){ie="xy";var hr=Math.min(K.l/_,(b-K.b)/b),$e=Math.max(K.r/_,(b-K.t)/b);K.l=hr*_,K.r=$e*_,K.b=(1-hr)*b,K.t=(1-$e)*b,W.attr("d",Iy(K))}else Qe();else!S||Xe0){var ne;if(k.isSubplotConstrained||!M&&S.length===1){for(ne=0;ne1&&(Qe.maxallowed!==void 0&&D===(Qe.range[0]1&&(hr.maxallowed!==void 0&&P===(hr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function L1e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function ZF(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",YF(t,a)).attr("d",n+"Z")}function XF(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:NF.background,stroke:NF.defaultLine,"stroke-width":1,opacity:0}).attr("transform",YF(r,t)).attr("d","M0,0Z")}function JF(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),$F(e,r,n,i)}function $F(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function x_(e){__.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function KF(e){OF&&e.data&&e._context.showTips&&(Ti.notifier(Ti._(e,"Double-click to zoom back out"),"long"),OF=!1)}function C1e(e,r){return"M"+(e.l-.5)+","+(r-gn-.5)+"h-3v"+(2*gn+1)+"h3ZM"+(e.r+.5)+","+(r-gn-.5)+"h3v"+(2*gn+1)+"h-3Z"}function E1e(e,r){return"M"+(r-gn-.5)+","+(e.t-.5)+"v-3h"+(2*gn+1)+"v3ZM"+(r-gn-.5)+","+(e.b+.5)+"v3h"+(2*gn+1)+"v-3Z"}function Iy(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,gn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function UF(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var D1e=Sr(),Oy=Pn(),R1e=pi(),P1e=rs(),no=rN().makeDragBox,Sa=Ea().DRAGGERSIZE;By.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){D1e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=no(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Oy.hover(r,v,i)},Oy.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,R1e.unhover(r,v))},r._context.showAxisDragHandles&&(no(r,o,l._offset-Sa,s._offset-Sa,Sa,Sa,"n","w"),no(r,o,l._offset+l._length,s._offset-Sa,Sa,Sa,"n","e"),no(r,o,l._offset-Sa,s._offset+s._length,Sa,Sa,"s","w"),no(r,o,l._offset+l._length,s._offset+s._length,Sa,Sa,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Sa),no(r,o,l._offset+l._length*.1,f,l._length*.8,Sa,"","ew"),no(r,o,l._offset,f,l._length*.1,Sa,"","w"),no(r,o,l._offset+l._length*.9,f,l._length*.1,Sa,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Sa),no(r,o,c,s._offset+s._length*.1,Sa,s._length*.8,"ns",""),no(r,o,c,s._offset+s._length*.9,Sa,s._length*.1,"s",""),no(r,o,c,s._offset,Sa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Oy.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Oy.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},By.updateFx(r)}};By.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";P1e(r._draggers,t)}});var nN=N((vPe,aN)=>{"use strict";var tN=gr();aN.exports=function(r){for(var t=tN.layoutArrayContainers,a=tN.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var F1e=zl(),A_=wp(),Zh=Zs(),N1e=Mb().sorterAsc,M_=gr();Xh.containerArrayMatch=nN();var z1e=Xh.isAddVal=function(r){return r==="add"||F1e(r)},iN=Xh.isRemoveVal=function(r){return r===null||r==="remove"};Xh.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=M_.getComponentMethod(o,"supplyLayoutDefaults"),s=M_.getComponentMethod(o,"draw"),u=M_.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===A_||s===A_,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Zh.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(iN(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Zh.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(N1e),m=t.get(),y=m||[],x=i(v,o).get(),w=[],_=-1,b=y.length,T,k,M,S,E,D,P,R;for(T=0;Ty.length-(P?0:1)){Zh.warn("index out of range",o,M);continue}if(D!==void 0)E.length>1&&Zh.warn("Insertion & removal are incompatible with edits to the same index.",o,M),iN(D)?w.push(M):P?(D==="add"&&(D={}),y.splice(M,0,D),x&&x.splice(M,0,{})):Zh.warn("Unrecognized full object edit value",o,M,D),_===-1&&(_=M);else for(k=0;k=0;T--)y.splice(w[T],1),x&&x.splice(w[T],1);if(y.length?m||t.set(y):t.set(null),f)return!1;if(l(c,v),u!==A_){var z;if(_===-1)z=p;else{for(b=Math.max(y.length,b),z=[],T=0;T=_));T++)z.push(M);for(T=_;T{"use strict";var fN=Rr(),dPe=pb(),cN=gr(),zn=Ce(),Jh=aa(),vN=ia(),hN=Tr(),$h=vN.cleanId,I1e=vN.getFromTrace,k_=cN.traceIs;io.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&zn.log("Clearing previous rejected promises from queue."),e._promises=[]};io.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Jh.subplotsRegistry.cartesian||{}).attrRegex,n=(Jh.subplotsRegistry.polar||{}).attrRegex,i=(Jh.subplotsRegistry.ternary||{}).attrRegex,o=(Jh.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),hN.clean(e),e.template&&e.template.layout&&io.cleanLayout(e.template.layout),e};function dc(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=$h(t,a,!0))}io.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}io.hasParent=function(e,r){for(var t=uN(r);t;){if(t in e)return!0;t=uN(t)}return!1};var H1e=["x","y","z"];io.clearAxisTypes=function(e,r,t){for(var a=0;a{"use strict";var Yy=Sr(),U1e=Rr(),G1e=Ob(),Ke=Ce(),St=Ke.nestedProperty,L_=ih(),bn=jS(),Ai=gr(),$y=If(),_r=aa(),fn=Ir(),Y1e=e5(),V1e=hi(),S_=Wr(),W1e=Tr(),j1e=T_().initInteractions,Z1e=ll(),X1e=zo().clearOutline,bN=js().dfltConfig,Uy=oN(),fa=dN(),dt=wy(),ls=Xi(),J1e=Ea().AX_NAME_PATTERN,q_=0,pN=5;function $1e(e,r,t,a){var n;if(e=Ke.getGraphDiv(e),L_.init(e),Ke.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=L_.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!Ke.isPlotDiv(e)&&Ke.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return jr.addFrames(e,n)}_N(e,a),t||(t={}),Yy.select(e).classed("js-plotly-plot",!0),S_.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(fa.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=fa.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(xye(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),S_.initGradients(e),S_.initPatterns(e),s&&fn.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&_r.doCalcdata(e);for(var v=0;v=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function wN(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Wy(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Wy(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function tye(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof S.parts[P]!="string";)P--;var R=S.parts[P],z=S.parts[P-1]+"."+R,O=S.parts.slice(0,P).join("."),B=St(e.layout,O).get(),V=St(a,O).get(),G=S.get();if(E!==void 0){x[M]=E,w[M]=R==="reverse"?E:pl(G);var U=$y.getLayoutValObject(a,S.parts);if(U&&U.impliedEdits&&E!==null)for(var Y in U.impliedEdits)_(Ke.relativeAttr(M,Y),U.impliedEdits[Y]);if(["width","height"].indexOf(M)!==-1)if(E){_("autosize",null);var X=M==="height"?"width":"height";_(X,a[X])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",E?null:a.width),_("height",E?null:a.height);else if(z.match(EN))k(z),St(a,O+"._inputRange").set(null);else if(z.match(DN)){k(z),St(a,O+"._inputRange").set(null);var Z=St(a,O).get();Z._inputDomain&&(Z._input.domain=Z._inputDomain.slice())}else z.match(oye)&&St(a,O+"._inputDomain").set(null);if(R==="type"){T=B;var re=V.type==="linear"&&E==="log",ce=V.type==="log"&&E==="linear";if(re||ce){if(!T||!T.range)_(O+".autorange",!0);else if(V.autorange)re&&(T.range=T.range[1]>T.range[0]?[1,2]:[2,1]);else{var oe=T.range[0],fe=T.range[1];re?(oe<=0&&fe<=0&&_(O+".autorange",!0),oe<=0?oe=fe/1e6:fe<=0&&(fe=oe/1e6),_(O+".range[0]",Math.log(oe)/Math.LN10),_(O+".range[1]",Math.log(fe)/Math.LN10)):(_(O+".range[0]",Math.pow(10,oe)),_(O+".range[1]",Math.pow(10,fe)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete a[S.parts[0]]._subplot.viewInitial["radialaxis.range"],Ai.getComponentMethod("annotations","convertCoords")(e,V,E,_),Ai.getComponentMethod("images","convertCoords")(e,V,E,_)}else _(O+".autorange",!0),_(O+".range",null);St(a,O+"._inputRange").set(null)}else if(R.match(J1e)){var K=St(a,M).get(),Te=(E||{}).type;(!Te||Te==="-")&&(Te="linear"),Ai.getComponentMethod("annotations","convertCoords")(e,K,Te,_),Ai.getComponentMethod("images","convertCoords")(e,K,Te,_)}var le=Uy.containerArrayMatch(M);if(le){f=le.array,c=le.index;var pe=le.property,ie=U||{editType:"calc"};c!==""&&pe===""&&(Uy.isAddVal(E)?w[M]=null:Uy.isRemoveVal(E)?w[M]=(St(t,f).get()||[])[c]:Ke.warn("unrecognized full object value",r)),ls.update(y,ie),u[f]||(u[f]={});var ve=u[f][c];ve||(ve=u[f][c]={}),ve[pe]=E,delete r[M]}else R==="reverse"?(B.range?B.range.reverse():(_(O+".autorange",!0),B.range=[1,0]),V.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(E===!1&&G!==!1||E!==!1&&G===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(E==="lasso"||E==="select")&&!(G==="lasso"||G==="select")?y.plot=!0:U?ls.update(y,U):y.calc=!0,S.set(E))}}for(f in u){var W=Uy.applyContainerArrayChanges(e,i(t,f),u[f],y,i);W||(y.plot=!0)}for(var Q in b){T=fn.getFromId(e,Q);var j=T&&T._constraintGroup;if(j){y.calc=!0;for(var ye in j)b[ye]||(fn.getFromId(e,ye)._constraintShrinkable=!0)}}(PN(e)||r.height||r.width)&&(y.plot=!0);var _e=a.shapes;for(c=0;c<_e.length;c++)if(_e[c].showlegend){y.calc=!0;break}return(y.plot||y.calc)&&(y.layoutReplot=!0),{flags:y,rangesAltered:b,undoit:w,redoit:x,eventData:s}}function PN(e){var r=e._fullLayout,t=r.width,a=r.height;return e.layout.autosize&&_r.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==a}function Xy(e,r,t,a){e=Ke.getGraphDiv(e),fa.clearPromiseQueue(e),Ke.isPlainObject(r)||(r={}),Ke.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var n=fa.coerceTraceIndices(e,a),i=LN(e,Ke.extendFlat({},r),n),o=i.flags,l=RN(e,Ke.extendFlat({},t)),s=l.flags;(o.calc||s.calc)&&(e.calcdata=void 0),o.clearAxisTypes&&fa.clearAxisTypes(e,n,t);var u=[];s.layoutReplot?u.push(dt.layoutReplot):o.fullReplot?u.push(jr._doPlot):(u.push(_r.previousPromises),CN(e,s,l)||_r.supplyDefaults(e),o.style&&u.push(dt.doTraceStyle),(o.colorbars||s.colorbars)&&u.push(dt.doColorBars),s.legend&&u.push(dt.doLegend),s.layoutstyle&&u.push(dt.layoutStyles),s.axrange&&Ky(u,l.rangesAltered),s.ticks&&u.push(dt.doTicksRelayout),s.modebar&&u.push(dt.doModeBar),s.camera&&u.push(dt.doCamera),u.push(Qh)),u.push(_r.rehover,_r.redrag,_r.reselect),bn.add(e,Xy,[e,i.undoit,l.undoit,i.traces],Xy,[e,i.redoit,l.redoit,i.traces]);var f=Ke.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve(e)),f.then(function(){return e.emit("plotly_update",{data:i.eventData,layout:l.eventData}),e})}function D_(e){return function(t){t._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,a}}var lye=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^(map\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],sye=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function yN(e,r){for(var t=0;t1;)if(a.pop(),t=St(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function uye(e,r){for(var t=0;t[B,e._ev.listeners(B)]);i=jr.newPlot(e,r,t,a).then(()=>{for(let[B,V]of O)V.forEach(G=>e.on(B,G));return jr.react(e,r,t,a)})}else{e.data=r||[],fa.cleanData(e.data),e.layout=t||{},fa.cleanLayout(e.layout),cye(e.data,e.layout,l,s),_r.supplyDefaults(e,{skipUpdateCalc:!0});var v=e._fullData,d=e._fullLayout,p=d.datarevision===void 0,m=d.transition,y=dye(e,s,d,p,m),x=y.newDataRevision,w=hye(e,l,v,p,m,x);if(PN(e)&&(y.layoutReplot=!0),w.calc||y.calc){e.calcdata=void 0;for(var _=Object.getOwnPropertyNames(d),b=0;b<_.length;b++){var T=_[b],k=T.substring(0,5);if(k==="xaxis"||k==="yaxis"){var M=d[T]._emptyCategories;M&&M()}}}else _r.supplyDefaultsUpdateCalc(e.calcdata,v);var S=[];if(n&&(e._transitionData={},_r.createTransitionData(e),S.push(o)),d.transition&&(w.anim||y.anim))y.ticks&&S.push(dt.doTicksRelayout),_r.doCalcdata(e),dt.doAutoRangeAndConstraints(e),S.push(function(){return _r.transitionFromReact(e,w,y,s)});else if(w.fullReplot||y.layoutReplot)e._fullLayout._skipDefaults=!0,S.push(jr._doPlot);else{for(var E in y.arrays){var D=y.arrays[E];if(D.length){var P=Ai.getComponentMethod(E,"drawOne");if(P!==Ke.noop)for(var R=0;R(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function hye(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=ls.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var p=$y.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var R=a._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(R){if(R.length!==0){for(var z=0;za._timeToNext&&p()};R()}var y=0;function x(R){return Array.isArray(n)?y>=n.length?R.transitionOpts=n[y]:R.transitionOpts=n[0]:R.transitionOpts=n,y++,R}var w,_,b=[],T=r==null,k=Array.isArray(r),M=!T&&!k&&Ke.isPlainObject(r);if(M)b.push({type:"object",data:x(Ke.extendFlat({},r))});else if(T||["string","number"].indexOf(typeof r)!==-1)for(w=0;w0&&DD)&&P.push(_);b=P}}b.length>0?v(b):(e.emit("plotly_animated"),u())})}function yye(e,r,t){if(e=Ke.getGraphDiv(e),r==null)return Promise.resolve();if(!Ke.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(Ke.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,m=s[d]||c[d];d&&p&&typeof p=="number"&&m&&q_S.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Ke.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=_r.modifyFrames,s=_r.modifyFrames,u=[e,o],f=[e,i];return bn&&bn.add(e,l,u,s,f),_r.modifyFrames(e,i)}function gye(e){e=Ke.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),L_.purge(e),r._container&&r._container.remove(),delete e._context,e}function bye(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Ke.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Ke.inverseTransformMatrix(Ke.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function xye(e){var r=Yy.select(e),t=e._fullLayout;if(t._calcInverseTransform=bye,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Yy.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Ke.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(Z1e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}jr.animate=pye;jr.addFrames=yye;jr.deleteFrames=mye;jr.addTraces=SN;jr.deleteTraces=qN;jr.extendTraces=MN;jr.moveTraces=C_;jr.prependTraces=kN;jr.newPlot=rye;jr._doPlot=$1e;jr.purge=gye;jr.react=vye;jr.redraw=eye;jr.relayout=Kh;jr.restyle=jy;jr.setPlotConfig=K1e;jr.update=Xy;jr._guiRelayout=D_(Kh);jr._guiRestyle=D_(jy);jr._guiUpdate=D_(Xy);jr._storeDirectGUIEdit=iye});var yl=N(Io=>{"use strict";var _ye=gr();Io.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Io.getRedrawFunc=function(e){return function(){_ye.getComponentMethod("colorbar","draw")(e)}};Io.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Io.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var FN=window.URL||window.webkitURL;Io.createObjectURL=function(e){return FN.createObjectURL(e)};Io.revokeObjectURL=function(e){return FN.revokeObjectURL(e)};Io.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=wye(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Io.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function wye(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var F_=Sr(),gPe=Ce(),Tye=Wr(),Aye=Tr(),bPe=ll(),P_=/"/g,e0="TOBESTRIPPED",Mye=new RegExp('("'+e0+")|("+e0+'")',"g");function kye(e){var r=F_.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function Sye(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}NN.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(Tye.setRect,0,0,l,s).call(Aye.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var qye=Ce(),Lye=Qs().EventEmitter,r0=yl();function Cye(e){var r=e.emitter||new Lye,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,y,x;l==="svg"||qye.isSafari()?x=r0.encodeSVG(o):(y=r0.createBlob(o,"svg"),x=r0.createObjectURL(y)),s.width=v,s.height=d,m.onload=function(){var w;switch(y=null,r0.revokeObjectURL(x),l!=="svg"&&p.drawImage(m,0,0,v,d),l){case"jpeg":w=s.toDataURL("image/jpeg");break;case"png":w=s.toDataURL("image/png");break;case"webp":w=s.toDataURL("image/webp");break;case"svg":w=x;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return r.emit("error",_)}a(w),e.promise||r.emit("success",w)},m.onerror=function(w){if(y=null,r0.revokeObjectURL(x),n(w),!e.promise)return r.emit("error",w)},m.src=x});return e.promise?t:r}zN.exports=Cye});var z_=N((wPe,BN)=>{"use strict";var IN=Rr(),ON=R_(),Eye=aa(),Oo=Ce(),t0=yl(),Dye=Qy(),Rye=em(),Pye=ip().version,N_={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Fye(e,r){r=r||{};var t,a,n,i;Oo.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Oo.getGraphDiv(e),t=Oo.extendDeep([],e.data),a=Oo.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||Oo.validate(r[k],N_[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Oo.join2(N_.format.values,", "," or ")+".");var l={};function s(k,M){return Oo.coerce(r,l,N_,k,M)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var y=Oo.extendFlat({},a);f?y.width=f:r.width===null&&IN(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&IN(i.height)&&(y.height=i.height);var x=Oo.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),w=t0.getRedrawFunc(m);function _(){return new Promise(function(k){setTimeout(k,t0.getDelay(m._fullLayout))})}function b(){return new Promise(function(k,M){var S=Dye(m,u,v),E=m._fullLayout.width,D=m._fullLayout.height;function P(){ON.purge(m),document.body.removeChild(m)}if(u==="full-json"){var R=Eye.graphJson(m,!1,"keepdata","object",!0,!0);return R.version=Pye,R=JSON.stringify(R),P(),k(p?R:t0.encodeJSON(R))}if(P(),u==="svg")return k(p?S:t0.encodeSVG(S));var z=document.createElement("canvas");z.id=Oo.randstr(),Rye({format:u,width:E,height:D,scale:v,canvas:z,svg:S,promise:!0}).then(k).catch(M)})}function T(k){return p?k.replace(t0.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){ON.newPlot(m,t,y,x).then(w).then(_).then(b).then(function(S){k(T(S))}).catch(function(S){M(S)})})}BN.exports=Fye});var GN=N((TPe,UN)=>{"use strict";var Mi=Ce(),Nye=aa(),zye=If(),Iye=js().dfltConfig,oo=Mi.isPlainObject,Mu=Array.isArray,I_=Mi.isArrayOrTypedArray;UN.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=zye.get(),n=[],i={_context:Mi.extendFlat({},Iye)},o,l;Mu(r)?(i.data=Mi.extendDeep([],r),o=r):(i.data=[],o=[],n.push(qa("array","data"))),oo(t)?(i.layout=Mi.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(qa("object","layout"))),Nye.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fc.length&&a.push(qa("unused",n,u.concat(c.length)));var x=c.length,w=Array.isArray(y);w&&(x=Math.min(x,y.length));var _,b,T,k,M;if(v.dimensions===2)for(b=0;bc[b].length&&a.push(qa("unused",n,u.concat(b,c[b].length)));var S=c[b].length;for(_=0;_<(w?Math.min(S,y[b].length):S);_++)T=w?y[b][_]:y,k=f[b][_],M=c[b][_],Mi.validate(k,T)?M!==k&&M!==+k&&a.push(qa("dynamic",n,u.concat(b,_),k,M)):a.push(qa("value",n,u.concat(b,_),k))}else a.push(qa("array",n,u.concat(b),f[b]));else for(b=0;b{"use strict";var Vye=Ce(),tm=yl();function Wye(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=tm.createBlob(e,t),u=tm.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),tm.revokeObjectURL(u),s=null,o(r);if(Vye.isSafari()){var f=t==="svg"?",":";base64,";return tm.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}YN.exports=Wye});var O_=N((kPe,jN)=>{"use strict";var WN=Ce(),jye=z_(),Zye=VN(),MPe=yl();function Xye(e,r){var t;return WN.isPlainObject(e)||(t=WN.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=jye(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),Zye(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}jN.exports=Xye});var KN=N(B_=>{"use strict";var In=Ce(),On=In.isPlainObject,ZN=If(),XN=aa(),Jye=mn(),JN=At(),$N=js().dfltConfig;B_.makeTemplate=function(e){e=In.isPlainObject(e)?e:In.getGraphDiv(e),e=In.extendDeep({_context:$N},{data:e.data,layout:e.layout}),XN.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};a0(d,p,Kye.bind(null,d));var m=In.coerce(d,{},Jye,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),a0(t,a.layout,$ye.bind(null,t)),delete a.layout.template;var n=t.template;if(On(n)){var i=n.layout,o,l,s,u,f,c;On(i)&&am(i,a.layout);var v=n.data;if(On(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;ox?o.push({code:"unused",traceType:d,templateCount:y,dataCount:x}):x>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:x})}}function w(_,b){for(var T in _)if(T.charAt(0)!=="_"){var k=_[T],M=ki(_,T,b);On(k)?(Array.isArray(_)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),w(k,M)):Array.isArray(k)&&Qye(k)&&w(k,M)}}if(w({data:s,layout:l},""),o.length)return o.map(eme)};function Qye(e){for(var r=0;r{"use strict";var ma=R_();Rt._doPlot=ma._doPlot;Rt.newPlot=ma.newPlot;Rt.restyle=ma.restyle;Rt.relayout=ma.relayout;Rt.redraw=ma.redraw;Rt.update=ma.update;Rt._guiRestyle=ma._guiRestyle;Rt._guiRelayout=ma._guiRelayout;Rt._guiUpdate=ma._guiUpdate;Rt._storeDirectGUIEdit=ma._storeDirectGUIEdit;Rt.react=ma.react;Rt.extendTraces=ma.extendTraces;Rt.prependTraces=ma.prependTraces;Rt.addTraces=ma.addTraces;Rt.deleteTraces=ma.deleteTraces;Rt.moveTraces=ma.moveTraces;Rt.purge=ma.purge;Rt.addFrames=ma.addFrames;Rt.deleteFrames=ma.deleteFrames;Rt.animate=ma.animate;Rt.setPlotConfig=ma.setPlotConfig;var rme=Jv().getGraphDiv,tme=py().eraseActiveShape;Rt.deleteActiveShape=function(e){return tme(rme(e))};Rt.toImage=z_();Rt.validate=GN();Rt.downloadImage=O_();var QN=KN();Rt.makeTemplate=QN.makeTemplate;Rt.validateTemplate=QN.validateTemplate});var U_=N((LPe,rz)=>{"use strict";var H_=Ce(),ame=gr();rz.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=ame.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=H_.minRowLength(i);o?l=Math.min(u,H_.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=H_.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var pc=N((CPe,nz)=>{"use strict";var tz=Ce().dateTick0,nme=Nt(),ime=nme.ONEWEEK;function az(e,r){return e%ime===0?tz(r,1):tz(r,0)}nz.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",az(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",az(l,t.ycalendar)),n("yperiodalignment"))}}});var lz=N((EPe,oz)=>{"use strict";var iz=["orientation","groupnorm","stackgaps"];oz.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var sz=Tr(),uz=jn().hasColorscale,fz=ul(),ome=Dn();cz.exports=function(r,t,a,n,i,o){var l=ome.isBubble(r),s=(r.line||{}).color,u;if(o=o||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),uz(r,"marker")&&fz(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=sz.background:u=sz.defaultLine,i("marker.line.color",u),uz(r,"marker.line")&&fz(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0)),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var Y_=N((RPe,vz)=>{"use strict";var lme=Ce().isArrayOrTypedArray,sme=jn().hasColorscale,ume=ul();vz.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),sme(r,"line"))ume(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(lme(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var V_=N((PPe,hz)=>{"use strict";hz.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var W_=N((FPe,dz)=>{"use strict";var fme=Ce();dz.exports=function(e,r,t,a,n){n=n||{},a("textposition"),fme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var j_=N((NPe,yz)=>{"use strict";var im=Tr(),pz=Ce().isArrayOrTypedArray;function cme(e){for(var r=im.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var mz=Ce(),vme=gr(),hme=wi(),dme=Vh(),yc=Dn(),pme=U_(),yme=pc(),mme=lz(),gme=G_(),bme=Y_(),gz=V_(),xme=W_(),_me=j_(),wme=Ce().coercePattern;bz.exports=function(r,t,a,n){function i(d,p){return mz.coerce(r,t,hme,d,p)}var o=pme(r,t,n,i);if(o||(t.visible=!1),!!t.visible){yme(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=mme(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var Tme=Tu().getAxisGroup;_z.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=Tme(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,m=p[d];t._offsetIndex=0,(i!=="group"||d)&&(m||(m=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var Tz=N((OPe,wz)=>{"use strict";var Ame=Ce(),Mme=n0(),kme=wi();wz.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return Ame.coerce(n._input,n,kme,v)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var Mz=N((BPe,Az)=>{"use strict";var Sme=Ce(),qme=Wp();Az.exports=function(e,r){function t(n,i){return Sme.coerce(e,r,qme,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var mc=N((HPe,Sz)=>{"use strict";var Lme=Rr(),kz=Ce(),Cme=kz.dateTime2ms,om=kz.incrementMonth,Eme=Nt(),Dme=Eme.ONEAVGMONTH;Sz.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(Lme(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],d=Cme(v,u)||0,p=[],m=[],y=[],x=n.length,w=0;w_;)k=om(k,-l,u);for(;k<=_;)k=om(k,l,u);T=om(k,-l,u)}else{for(b=Math.round((_-d)/o),k=d+b*o;k>_;)k-=o;for(;k<=_;)k+=o;T=k-o}p[w]=f?T:c?k:(T+k)/2,m[w]=T,y[w]=k}return{vals:p,starts:m,ends:y}}});var J_=N((UPe,Lz)=>{"use strict";var Z_=jn().hasColorscale,X_=Uf(),qz=Dn();Lz.exports=function(r,t){qz.hasLines(t)&&Z_(t,"line")&&X_(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),qz.hasMarkers(t)&&(Z_(t,"marker")&&X_(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Z_(t,"marker.line")&&X_(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var lm=N((GPe,Cz)=>{"use strict";var Wt=Ce();Cz.exports=function(r,t){for(var a=0;a{"use strict";var Ez=Ce();Dz.exports=function(r,t){Ez.isArrayOrTypedArray(t.selectedpoints)&&Ez.tagSelected(r,t)}});var um=N((VPe,Oz)=>{"use strict";var Rz=Rr(),K_=Ce(),i0=Ir(),Pz=mc(),$_=Nt().BADNUM,Q_=Dn(),Rme=J_(),Pme=lm(),Fme=sm();function Nme(e,r){var t=e._fullLayout,a=r._xA=i0.getFromId(e,r.xaxis||"x","x"),n=r._yA=i0.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=Pz(r,a,"x",i),s=Pz(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=e4(r,t,a,n),m=!1,y,x,w,_,b,T;zz(t,r);var k="x",M="y",S;if(p)K_.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(M="s",S="x"):(k="s",S="y"),b=p.stackgaps==="interpolate";else{var E=Nz(r,c);Fz(e,r,a,n,u,f,E)}var D=!!r.xperiodalignment,P=!!r.yperiodalignment;for(x=0;xx&&v[_].gap;)_--;for(T=v[_].s,w=v.length-1;w>_;w--)v[w].s=T;for(;x<_;)if(x++,v[x].gap){for(w=x+1;v[w].gap;)w++;for(var B=v[x-1][S],V=v[x-1].s,G=(v[w].s-V)/(v[w][S]-B);x{"use strict";Bz.exports=fm;var zme=Ce().distinctVals;function fm(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var Si=Rr(),ss=Ce().isArrayOrTypedArray,gc=Nt().BADNUM,Ime=gr(),o0=Ir(),Ome=Tu().getAxisGroup,cm=Hz();function Bme(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!Si(l))}for(var f=0;f{"use strict";var Wz=um(),jz=vm().setGroupPositions;function Kme(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uE[f]&&f{"use strict";var ege=Wr(),Qz=Nt(),l0=Qz.BADNUM,eI=Qz.LOG_CLIP,Jz=eI+.5,$z=eI-.5,hm=Ce(),rge=hm.segmentsIntersect,Kz=hm.constrain,o4=Vh();rI.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,m=p==="linear",y=a.fill&&a.fill!=="none",x=[],w=o4.minTolerance,_=r.length,b=new Array(_),T=0,k,M,S,E,D,P,R,z,O,B,V,G,U,Y,X,Z;function re(Fe){var ne=r[Fe];if(!ne)return!1;var de=t.linearized?n.l2p(ne.x):n.c2p(ne.x),Ee=t.linearized?i.l2p(ne.y):i.c2p(ne.y);if(de===l0){if(o&&(de=n.c2p(ne.x,!0)),de===l0)return!1;l&&Ee===l0&&(de*=Math.abs(n._m*u*(n._m>0?Jz:$z)/(i._m*s*(i._m>0?Jz:$z)))),de*=1e3}if(Ee===l0){if(l&&(Ee=i.c2p(ne.y,!0)),Ee===l0)return!1;Ee*=1e3}return[de,Ee]}function ce(Fe,ne,de,Ee){var Le=de-Fe,ar=Ee-ne,sr=.5-Fe,nr=.5-ne,Mr=Le*Le+ar*ar,Or=Le*sr+ar*nr;if(Or>0&&Or1||Math.abs(sr.y-de[0][1])>1)&&(sr=[sr.x,sr.y],Ee&&Te(sr,Fe)ie||Fe[1]W)return[Kz(Fe[0],pe,ie),Kz(Fe[1],ve,W)]}function Ge(Fe,ne){if(Fe[0]===ne[0]&&(Fe[0]===pe||Fe[0]===ie)||Fe[1]===ne[1]&&(Fe[1]===ve||Fe[1]===W))return!0}function He(Fe,ne){var de=[],Ee=ze(Fe),Le=ze(ne);return Ee&&Le&&Ge(Ee,Le)||(Ee&&de.push(Ee),Le&&de.push(Le)),de}function De(Fe,ne,de){return function(Ee,Le){var ar=ze(Ee),sr=ze(Le),nr=[];if(ar&&sr&&Ge(ar,sr))return nr;ar&&nr.push(ar),sr&&nr.push(sr);var Mr=2*hm.constrain((Ee[Fe]+Le[Fe])/2,ne,de)-((ar||Ee)[Fe]+(sr||Le)[Fe]);if(Mr){var Or;ar&&sr?Or=Mr>0==ar[Fe]>sr[Fe]?ar:sr:Or=ar||sr,Or[Fe]+=Mr}return nr}}var Ie;p==="linear"||p==="spline"?Ie=Re:p==="hv"||p==="vh"?Ie=He:p==="hvh"?Ie=De(0,pe,ie):p==="vhv"&&(Ie=De(1,ve,W));function Be(Fe,ne){var de=ne[0]-Fe[0],Ee=(ne[1]-Fe[1])/de,Le=(Fe[1]*ne[0]-ne[1]*Fe[0])/de;return Le>0?[Ee>0?pe:ie,W]:[Ee>0?ie:pe,ve]}function se(Fe){var ne=Fe[0],de=Fe[1],Ee=ne===b[T-1][0],Le=de===b[T-1][1];if(!(Ee&&Le))if(T>1){var ar=ne===b[T-2][0],sr=de===b[T-2][1];Ee&&(ne===pe||ne===ie)&&ar?sr?T--:b[T-1]=Fe:Le&&(de===ve||de===W)&&sr?ar?T--:b[T-1]=Fe:b[T++]=Fe}else b[T++]=Fe}function Ae(Fe){b[T-1][0]!==Fe[0]&&b[T-1][1]!==Fe[1]&&se([_e,me]),se(Fe),Pe=null,_e=me=0}var je=hm.isArrayOrTypedArray(c);function ur(Fe){if(Fe&&f&&(Fe.i=k,Fe.d=r,Fe.trace=a,Fe.marker=je?c[Fe.i]:c,Fe.backoff=f),oe=Fe[0]/s,fe=Fe[1]/u,j=Fe[0]ie?ie:0,ye=Fe[1]W?W:0,j||ye){if(!T)b[T++]=[j||Fe[0],ye||Fe[1]];else if(Pe){var ne=Ie(Pe,Fe);ne.length>1&&(Ae(ne[0]),b[T++]=ne[1])}else Ne=Ie(b[T-1],Fe)[0],b[T++]=Ne;var de=b[T-1];j&&ye&&(de[0]!==j||de[1]!==ye)?(Pe&&(_e!==j&&me!==ye?se(_e&&me?Be(Pe,Fe):[_e||j,me||ye]):_e&&me&&se([_e,me])),se([j,ye])):_e-j&&me-ye&&se([j||_e,ye||me]),Pe=Fe,_e=j,me=ye}else Pe&&Ae(Ie(Pe,Fe)[0]),b[T++]=Fe}for(k=0;k<_;k++)if(M=re(k),!!M){for(T=0,Pe=null,ur(M),k++;k<_;k++){if(E=re(k),!E){if(v)continue;break}if(!m||!t.simplify){ur(E);continue}var lr=re(k+1);if(B=Te(E,M),!(!(y&&(T===0||T===_-1))&&BK(P,lr))break;S=P,U=O[0]*z[0]+O[1]*z[1],U>V?(V=U,E=P,R=!1):U=r.length||!P)break;ur(P),M=P}}Pe&&se([_e||Pe[0],me||Pe[1]]),x.push(b.slice(0,T))}var ue=p.slice(p.length-1);if(f&&ue!=="h"&&ue!=="v"){for(var qe=!1,Oe=-1,Ze=[],Ue=0;Ue{"use strict";var tI={tonextx:1,tonexty:1,tonext:1};aI.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var lo=Sr(),tge=gr(),s0=Ce(),xc=s0.ensureSingle,oI=s0.identity,jt=Wr(),_c=Dn(),age=l4(),nge=nI(),dm=a_().tester;lI.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=nge(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),ige(r,l,t),f){o&&(s=o());var v=lo.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){iI(r,p,t,d,c,this,i)})})}else l.each(function(d,p){iI(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function ige(e,r,t){r.each(function(a){var n=xc(lo.select(this),"g","fills");jt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,oI);l.enter().append("g"),l.exit().each(function(s){i[s]=null}).remove(),l.order().each(function(s){i[s]=xc(lo.select(this),"path","js-fill")})})}function iI(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;oge(e,r,t,a,n);var u=!!o&&o.duration>0;function f(De){return u?De.transition():De}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,m=lo.select(i),y=xc(m,"g","errorbars"),x=xc(m,"g","lines"),w=xc(m,"g","points"),_=xc(m,"g","text");if(tge.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(m).style("opacity",d.opacity);var b,T,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,S;k==="y"?(M=1,S=v.c2p(0,!0)):k==="x"&&(M=0,S=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var E="",D=[],P=d._prevtrace,R=null,z=null;P&&(E=P._prevRevpath||"",T=P._nextFill,D=P._ownPolygons,R=P._fillsegments,z=P._fillElement);var O,B,V="",G="",U,Y,X,Z,re,ce,oe=[];d._polygons=[];var fe=[],K=[],Te=s0.noop;if(b=d._ownFill,_c.hasLines(d)||d.fill!=="none"){T&&T.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(U=jt.steps(p.shape),Y=jt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?U=Y=function(De){var Ie=De[De.length-1];return De.length>1&&De[0][0]===Ie[0]&&De[0][1]===Ie[1]?jt.smoothclosed(De.slice(1),p.smoothing):jt.smoothopen(De,p.smoothing)}:U=Y=function(De){return"M"+De.join("L")},X=function(De){return Y(De.reverse())},K=age(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),fe=new Array(K.length);var le=0;for(s=0;s=l[0]&&m.x<=l[1]&&m.y>=s[0]&&m.y<=s[1]}),v=Math.ceil(c.length/f),d=0;n.forEach(function(m,y){var x=m[0].trace;_c.hasMarkers(x)&&x.marker.maxdisplayed>0&&y{"use strict";sI.exports={container:"marker",min:"cmin",max:"cmax"}});var u4=N((QPe,uI)=>{"use strict";var pm=Ir();uI.exports=function(r,t,a){var n={},i={_fullLayout:a},o=pm.getFromTrace(i,t,"x"),l=pm.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=pm.tickText(o,o.c2l(s),!0).text,n.yLabel=pm.tickText(l,l.c2l(u),!0).text,n}});var ku=N((eFe,fI)=>{"use strict";var f4=Sr(),wc=Wr(),lge=gr();function sge(e){var r=f4.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=f4.select(this),n=t.trace||t[0].trace;c4(a,n,e)}),r.selectAll("g.text").each(function(t){var a=f4.select(this),n=t.trace||t[0].trace;v4(a,n,e)}),r.selectAll("g.trace path.js-line").call(wc.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(wc.fillGroupStyle,e,!1),lge.getComponentMethod("errorbars","style")(r)}function c4(e,r,t){wc.pointStyle(e.selectAll("path.point"),r,t)}function v4(e,r,t){wc.textPointStyle(e.selectAll("text"),r,t)}function uge(e,r,t){var a=r[0].trace;a.selectedpoints?(wc.selectedPointStyle(t.selectAll("path.point"),a),wc.selectedTextStyle(t.selectAll("text"),a)):(c4(t,a,e),v4(t,a,e))}fI.exports={style:sge,stylePoints:c4,styleText:v4,styleOnSelect:uge}});var vI=N((rFe,cI)=>{"use strict";var Tc=Tr(),fge=Dn();cI.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&Tc.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&Tc.opacity(i)?i:o&&Tc.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?Tc.opacity(n)<.3?Tc.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&Tc.opacity(a)&&fge.hasLines(r)&&r.line.width?a:r.fillcolor)}});var d4=N((tFe,dI)=>{"use strict";var ym=Ce(),hI=Pn(),cge=gr(),vge=vI(),h4=Tr(),hge=ym.fillText;dI.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,m=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var y=function(G){if(p){var U=l.c2p(G.xStart),Y=l.c2p(G.xEnd);return u>=Math.min(U,Y)&&u<=Math.max(U,Y)?0:1/0}var X=Math.max(3,G.mrc||0),Z=1-1/X,re=Math.abs(l.c2p(G.x)-u);return re=Math.min(U,Y)&&f<=Math.max(U,Y)?0:1/0}var X=Math.max(3,G.mrc||0),Z=1-1/X,re=Math.abs(s.c2p(G.y)-f);return reoe!=W>=oe&&(pe=Te[K-1][0],ie=Te[K][0],W-ve&&(le=pe+(ie-pe)*(oe-ve)/(W-ve),X=Math.min(X,le),Z=Math.max(Z,le)));return X=Math.max(X,0),Z=Math.min(Z,l._length),{x0:X,x1:Z,y0:oe,y1:oe}}if(v.indexOf("fills")!==-1&&o._fillElement){var O=R(o._fillElement)&&!R(o._fillExclusionElement);if(O){var B=z(o._polygons);B===null&&(B={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var V=h4.defaultLine;return h4.opacity(o.fillcolor)?V=o.fillcolor:h4.opacity((o.line||{}).color)&&(V=o.line.color),ym.extendFlat(r,{distance:r.maxHoverDistance,x0:B.x0,x1:B.x1,y0:B.y0,y1:B.y1,color:V,hovertemplate:!1}),delete r.index,o.text&&!ym.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var p4=N((aFe,yI)=>{"use strict";var pI=Dn();yI.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,v=!pI.hasMarkers(l)&&!pI.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";mI.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var wI=N((iFe,_I)=>{"use strict";var f0=gr().traceIs,y4=w1();_I.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(dge(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function dge(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=pge(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!f0(i,"cartesian")||f0(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,xI(i,a)){var u=bI(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(xI(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function bI(e){return{v:"x",h:"y"}[e.orientation||"v"]}function xI(e,r){var t=bI(e),a=f0(e,"box-violin"),n=f0(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var AI=N((oFe,TI)=>{"use strict";var yge=Vn().isTypedArraySpec;function mge(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||yge(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=mge(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var m4=N((lFe,kI)=>{"use strict";var MI=kn().mix,gge=si(),bge=Ce();kI.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(S,E){return bge.coerce2(r,t,n.attributes,S,E)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=MI(i,n.bgColor,n.blend||gge.lightFraction).toRgbString(),c=o("gridcolor",f),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=MI(t.gridcolor,n.bgColor,67).toRgbString(),y=o("minor.gridcolor",m),x=o("minor.gridwidth",t.gridwidth||1),w=o("minor.griddash",t.griddash||"solid"),_=a("minor.showgrid",!!y||!!x||!!w);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=o("zerolinelayer"),T=o("zerolinecolor",i),k=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!T||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var b4=N((sFe,DI)=>{"use strict";var SI=Rr(),xge=gr(),c0=Ce(),_ge=At(),wge=eo(),g4=hi(),qI=a1(),LI=n1(),Tge=o1(),Age=l1(),Mge=AI(),kge=m4(),Sge=e5(),CI=Xf(),mm=Ea().WEEKDAY_PATTERN,qge=Ea().HOUR_PATTERN;DI.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var d=xge.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=c0.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),CI(t,i),Sge(r,t,a,n),Mge(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==g4.color.dflt?m:l.color,x=s.label||i._dfltTitle[o];if(Age(r,t,a,c,n),!u)return t;a("title.text",x),c0.coerceFont(a,"title.font",l,{overrideDflt:{size:c0.bigFont(l.size),color:y}}),qI(r,t,a,c);var w=n.hasMinor;if(w&&(_ge.newContainer(t,"minor"),qI(r,t,a,c,{isMinor:!0})),Tge(r,t,a,c,n),LI(r,t,a,n),w){var _=n.isMinor;n.isMinor=!0,LI(r,t,a,n),n.isMinor=_}kge(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:g4}),w&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=c==="multicategory";if(!n.noTickson&&(c==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var T=a("showdividers");T&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(wge(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Lge}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=EI(i[l]),s){o=mm;break}}var u=a("pattern",o);if(u===mm)for(l=0;l<2;l++)s=EI(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case mm:if(!SI(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case qge:if(!SI(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var Ege=Rr(),gm=Ce();RI.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,d,p,m;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(Ege(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,m=!1;var y=gm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),x=gm.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(y==="free"){if(l==="y"){var w=a("autoshift");w&&(d=x==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=x==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",m);var _=!1;if(o.length&&(_=gm.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var b=a("domain",c);b[0]>b[1]-1/4096&&(t.domain=c),gm.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var UI=N((fFe,HI)=>{"use strict";var Su=Ce(),PI=Tr(),Dge=qo().isUnifiedHover,Rge=k5(),FI=At(),Pge=Sf(),NI=hi(),Fge=wI(),zI=b4(),Nge=Tu(),II=x4(),w4=ia(),Bo=w4.id2name,OI=w4.name2id,zge=Ea().AX_ID_PATTERN,BI=gr(),bm=BI.traceIs,_4=BI.getComponentMethod;function xm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}HI.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},v={},d={},p={},m,y;for(m=0;m{"use strict";var Ige=Sr(),GI=gr(),_m=Ce(),Qn=Wr(),wm=Ir();YI.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){wm.redrawComponents(r);return}function o(y){var x=y.xaxis,w=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Qn.setTranslate,0,0).call(Qn.setScale,1,1),y.plot.call(Qn.setTranslate,x._offset,w._offset).call(Qn.setScale,1,1);var _=y.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Qn.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Qn.setTextPointsScale,1,1),_.call(Qn.hideOutsideRangePoints,y)}function l(y,x){var w=y.plotinfo,_=w.xaxis,b=w.yaxis,T=_._length,k=b._length,M=!!y.xr1,S=!!y.yr1,E=[];if(M){var D=_m.simpleMap(y.xr0,_.r2l),P=_m.simpleMap(y.xr1,_.r2l),R=D[1]-D[0],z=P[1]-P[0];E[0]=(D[0]*(1-x)+x*P[0]-D[0])/(D[1]-D[0])*T,E[2]=T*(1-x+x*z/R),_.range[0]=_.l2r(D[0]*(1-x)+x*P[0]),_.range[1]=_.l2r(D[1]*(1-x)+x*P[1])}else E[0]=0,E[2]=T;if(S){var O=_m.simpleMap(y.yr0,b.r2l),B=_m.simpleMap(y.yr1,b.r2l),V=O[1]-O[0],G=B[1]-B[0];E[1]=(O[1]*(1-x)+x*B[1]-O[1])/(O[0]-O[1])*k,E[3]=k*(1-x+x*G/V),b.range[0]=_.l2r(O[0]*(1-x)+x*B[0]),b.range[1]=b.l2r(O[1]*(1-x)+x*B[1])}else E[1]=0,E[3]=k;wm.drawOne(r,_,{skipTitle:!0}),wm.drawOne(r,b,{skipTitle:!0}),wm.redrawComponents(r,[_._id,b._id]);var U=M?T/E[2]:1,Y=S?k/E[3]:1,X=M?E[0]:0,Z=S?E[1]:0,re=M?E[0]/E[2]*T:0,ce=S?E[1]/E[3]*k:0,oe=_._offset-re,fe=b._offset-ce;w.clipRect.call(Qn.setTranslate,X,Z).call(Qn.setScale,1/U,1/Y),w.plot.call(Qn.setTranslate,oe,fe).call(Qn.setScale,U,Y),Qn.setPointGroupScale(w.zoomScalePts,1/U,1/Y),Qn.setTextPointsScale(w.zoomScaleTxt,1/U,1/Y)}var s;n&&(s=n());function u(){for(var y={},x=0;xa.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return c=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var qi=N(Ka=>{"use strict";var Am=Sr(),WI=gr(),qu=Ce(),Oge=aa(),Bge=Wr(),jI=Xp().getModuleCalcData,us=ia(),so=Ea(),Hge=ll(),et=qu.ensureSingle;function Tm(e,r,t){return qu.ensureSingle(e,r,t,function(a){a.datum(t)})}var Lu=so.zindexSeparator;Ka.name="cartesian";Ka.attr=["xaxis","yaxis"];Ka.idRoot=["x","y"];Ka.idRegex=so.idRegex;Ka.attrRegex=so.attrRegex;Ka.attributes=gI();Ka.layoutAttributes=hi();Ka.supplyLayoutDefaults=UI();Ka.transitionAxes=VI();Ka.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u0){var d=v.id;if(d.indexOf(Lu)!==-1)continue;d+=Lu+(u+1),v=qu.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],m,y=0;y1&&(T+=Lu+b),_.push(l+T),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=et(a,"path","xlines-above"),r.ylines=et(a,"path","ylines-above"),r.xaxislayer=et(a,"g","xaxislayer-above"),r.yaxislayer=et(a,"g","yaxislayer-above");else{if(!o){var v=et(a,"g","layer-subplot");r.shapelayer=et(v,"g","shapelayer"),r.imagelayer=et(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=et(a,"g","minor-gridlayer"),r.gridlayer=et(a,"g","gridlayer"),r.zerolinelayer=et(a,"g","zerolinelayer"));var d=et(a,"g","layer-between");r.shapelayerBetween=et(d,"g","shapelayer"),r.imagelayerBetween=et(d,"g","imagelayer"),et(a,"path","xlines-below"),et(a,"path","ylines-below"),r.overlinesBelow=et(a,"g","overlines-below"),et(a,"g","xaxislayer-below"),et(a,"g","yaxislayer-below"),r.overaxesBelow=et(a,"g","overaxes-below")}r.overplot=et(a,"g","overplot"),r.plot=et(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=et(a,"g","zerolinelayer-above"),o||(r.xlines=et(a,"path","xlines-above"),r.ylines=et(a,"path","ylines-above"),r.overlinesAbove=et(a,"g","overlines-above"),et(a,"g","xaxislayer-above"),et(a,"g","yaxislayer-above"),r.overaxesAbove=et(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,et(c.overlinesBelow,"path",m),et(c.overlinesBelow,"path",y),et(c.overaxesBelow,"g",m),et(c.overaxesBelow,"g",y),r.plot=et(c.overplot,"g",n),et(c.overlinesAbove,"path",m),et(c.overlinesAbove,"path",y),et(c.overaxesAbove,"g",m),et(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+l).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+l).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}o||(u||(Tm(r.minorGridlayer,"g",r.xaxis._id),Tm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(x){return x[0]}).sort(us.idSort),Tm(r.gridlayer,"g",r.xaxis._id),Tm(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(x){return x[0]}).sort(us.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function JI(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Am.select(this);f.remove(),$I(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Mm=Dn();KI.exports={hasLines:Mm.hasLines,hasMarkers:Mm.hasMarkers,hasText:Mm.hasText,isBubble:Mm.isBubble,attributes:wi(),layoutAttributes:Wp(),supplyDefaults:xz(),crossTraceDefaults:Tz(),supplyLayoutDefaults:Mz(),calc:um().calc,crossTraceCalc:Xz(),arraysToCalcdata:lm(),plot:s4(),colorbar:u0(),formatLabels:u4(),style:ku().style,styleOnSelect:ku().styleOnSelect,hoverPoints:d4(),selectPoints:p4(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:qi(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var tO=N((dFe,rO)=>{"use strict";var Gge=Sr(),Yge=Tr(),eO=p_(),T4=Ce(),Vge=T4.strScale,Wge=T4.strRotate,jge=T4.strTranslate;rO.exports=function(r,t,a){var n=r.node(),i=eO[a.arrowhead||0],o=eO[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,m,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var x=d.x-p.x,w=d.y-p.y;if(m=Math.atan2(w,x),y=m+Math.PI,c&&v&&c+v>Math.sqrt(x*x+w*w)){O();return}if(c){if(c*c>x*x+w*w){O();return}var _=c*Math.cos(m),b=c*Math.sin(m);p.x+=_,p.y+=b,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>x*x+w*w){O();return}var T=v*Math.cos(m),k=v*Math.sin(m);d.x-=T,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),S="";if(M{"use strict";var aO=Sr(),A4=gr(),Zge=aa(),cs=Ce(),M4=cs.strTranslate,h0=Ir(),Cu=Tr(),ml=Wr(),nO=Pn(),k4=Da(),S4=rs(),v0=pi(),Xge=At().arrayEditor,Jge=tO();lO.exports={draw:$ge,drawOne:iO,drawRaw:oO};function $ge(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Le="right":Le="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Le]}for(var ve=!1,W=["x","y"],Q=0;Q1)&&(_e===ye?(lr=me.r2fraction(r["a"+j]),(lr<0||lr>1)&&(ve=!0)):ve=!0),Ie=me._offset+me.r2p(r[j]),Ae=.5}else{var ue=ur==="domain";j==="x"?(se=r[j],Ie=ue?me._offset+me._length*se:Ie=l.l+l.w*se):(se=1-r[j],Ie=ue?me._offset+me._length*se:Ie=l.t+l.h*se),Ae=r.showarrow?.5:se}if(r.showarrow){De.head=Ie;var qe=r["a"+j];if(je=Ne*ie(.5,r.xanchor)-Re*ie(.5,r.yanchor),_e===ye){var Oe=h0.getRefType(_e);Oe==="domain"?(j==="y"&&(qe=1-qe),De.tail=me._offset+me._length*qe):Oe==="paper"?j==="y"?(qe=1-qe,De.tail=l.t+l.h*qe):De.tail=l.l+l.w*qe:De.tail=me._offset+me.r2p(qe),Be=je}else De.tail=Ie+qe,Be=je+qe;De.text=De.tail+je;var Ze=o[j==="x"?"width":"height"];if(ye==="paper"&&(De.head=cs.constrain(De.head,1,Ze-1)),_e==="pixel"){var Ue=-Math.max(De.tail-3,De.text),Xe=Math.min(De.tail+3,De.text)-Ze;Ue>0?(De.tail+=Ue,De.text+=Ue):Xe>0&&(De.tail-=Xe,De.text-=Xe)}De.tail+=He,De.head+=He}else je=ze*ie(Ae,Ge),Be=je,De.text=Ie+je;De.text+=He,je+=He,Be+=He,r["_"+j+"padplus"]=ze/2+Be,r["_"+j+"padminus"]=ze/2-Be,r["_"+j+"size"]=ze,r["_"+j+"shift"]=je}if(ve){M.remove();return}var Qe=0,hr=0;if(r.align!=="left"&&(Qe=(K-oe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(hr=(Te-fe)*(r.valign==="middle"?.5:1)),re)Z.select("svg").attr({x:D+Qe-1,y:D+hr}).call(ml.setClipUrl,R?m:null,e);else{var $e=D+hr-ce.top,Fe=D+Qe-ce.left;V.call(k4.positionText,Fe,$e).call(ml.setClipUrl,R?m:null,e)}z.select("rect").call(ml.setRect,D,D,K,Te),P.call(ml.setRect,S/2,S/2,le-S,pe-S),M.call(ml.setTranslate,Math.round(y.x.text-le/2),Math.round(y.y.text-pe/2)),_.attr({transform:"rotate("+x+","+y.x.text+","+y.y.text+")"});var ne=function(Ee,Le){w.selectAll(".annotation-arrow-g").remove();var ar=y.x.head,sr=y.y.head,nr=y.x.tail+Ee,Mr=y.y.tail+Le,Or=y.x.text+Ee,Zr=y.y.text+Le,Vr=cs.rotationXYMatrix(x,Or,Zr),Yt=cs.apply2DTransform(Vr),wt=cs.apply2DTransform2(Vr),Tt=+P.attr("width"),pt=+P.attr("height"),Xt=Or-.5*Tt,Jt=Xt+Tt,It=Zr-.5*pt,za=It+pt,br=[[Xt,It,Xt,za],[Xt,za,Jt,za],[Jt,za,Jt,It],[Jt,It,Xt,It]].map(wt);if(!br.reduce(function(ft,_a){return ft^!!cs.segmentsIntersect(ar,sr,ar+1e6,sr+1e6,_a[0],_a[1],_a[2],_a[3])},!1)){br.forEach(function(ft){var _a=cs.segmentsIntersect(nr,Mr,ar,sr,ft[0],ft[1],ft[2],ft[3]);_a&&(nr=_a.x,Mr=_a.y)});var yt=r.arrowwidth,Nr=r.arrowcolor,ut=r.arrowside,Pt=w.append("g").style({opacity:Cu.opacity(Nr)}).classed("annotation-arrow-g",!0),Qr=Pt.append("path").attr("d","M"+nr+","+Mr+"L"+ar+","+sr).style("stroke-width",yt+"px").call(Cu.stroke,Cu.rgb(Nr));if(Jge(Qr,ut,r),s.annotationPosition&&Qr.node().parentNode&&!a){var ct=ar,xa=sr;if(r.standoff){var $t=Math.sqrt(Math.pow(ar-nr,2)+Math.pow(sr-Mr,2));ct+=r.standoff*(nr-ar)/$t,xa+=r.standoff*(Mr-sr)/$t}var tn=Pt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(nr-ct)+","+(Mr-xa),transform:M4(ct,xa)}).style("stroke-width",yt+6+"px").call(Cu.stroke,"rgba(0,0,0,0)").call(Cu.fill,"rgba(0,0,0,0)"),wn,Kt;v0.init({element:tn.node(),gd:e,prepFn:function(){var ft=ml.getTranslate(M);wn=ft.x,Kt=ft.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(ft,_a){var Ko=Yt(wn,Kt),Qo=Ko[0]+ft,vt=Ko[1]+_a;M.call(ml.setTranslate,Qo,vt),d("x",fs(n,ft,"x",l,r)),d("y",fs(i,_a,"y",l,r)),r.axref===r.xref&&d("ax",fs(n,ft,"ax",l,r)),r.ayref===r.yref&&d("ay",fs(i,_a,"ay",l,r)),Pt.attr("transform",M4(ft,_a)),_.attr({transform:"rotate("+x+","+Qo+","+vt+")"})},doneFn:function(){A4.call("_guiRelayout",e,p());var ft=document.querySelector(".js-notes-box-panel");ft&&ft.redraw(ft.selectedObj)}})}}};if(r.showarrow&&ne(0,0),b){var de;v0.init({element:M.node(),gd:e,prepFn:function(){de=_.attr("transform")},moveFn:function(Ee,Le){var ar="pointer";if(r.showarrow)r.axref===r.xref?d("ax",fs(n,Ee,"ax",l,r)):d("ax",r.ax+Ee),r.ayref===r.yref?d("ay",fs(i,Le,"ay",l.w,r)):d("ay",r.ay+Le),ne(Ee,Le);else{if(a)return;var sr,nr;if(n)sr=fs(n,Ee,"x",l,r);else{var Mr=r._xsize/l.w,Or=r.x+(r._xshift-r.xshift)/l.w-Mr/2;sr=v0.align(Or+Ee/l.w,Mr,0,1,r.xanchor)}if(i)nr=fs(i,Le,"y",l,r);else{var Zr=r._ysize/l.h,Vr=r.y-(r._yshift+r.yshift)/l.h-Zr/2;nr=v0.align(Vr-Le/l.h,Zr,0,1,r.yanchor)}d("x",sr),d("y",nr),(!n||!i)&&(ar=v0.getCursor(n?.5:sr,i?.5:nr,r.xanchor,r.yanchor))}_.attr({transform:M4(Ee,Le)+de}),S4(M,ar)},clickFn:function(Ee,Le){r.captureevents&&e.emit("plotly_clickannotation",k(Le))},doneFn:function(){S4(M),A4.call("_guiRelayout",e,p());var Ee=document.querySelector(".js-notes-box-panel");Ee&&Ee.redraw(Ee.selectedObj)}})}}s.annotationText?V.call(k4.makeEditable,{delegate:M,gd:e}).call(G).on("edit",function(Y){r.text=Y,this.call(G),d("text",Y),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),A4.call("_guiRelayout",e,p())}):V.call(G)}});var hO=N((yFe,vO)=>{"use strict";var sO=Ce(),Kge=gr(),uO=At().arrayEditor;vO.exports={hasClickToShow:Qge,onClick:e2e};function Qge(e,r){var t=cO(e,r);return t.on.length>0||t.explicitOff.length>0}function e2e(e,r){var t=cO(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var q4=Ce(),Ac=Tr();dO.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=Ac.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),q4.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:Ac.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",m.bgcolor||(Ac.opacity(i)?Ac.rgb(i):Ac.defaultLine)),x=n("hoverlabel.bordercolor",m.bordercolor||Ac.contrast(y)),w=q4.extendFlat({},m.font);w.color||(w.color=x),q4.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!p)}});var yO=N((gFe,pO)=>{"use strict";var C4=Ce(),Eu=Ir(),r2e=eo(),t2e=L4(),a2e=hc();pO.exports=function(r,t){r2e(r,t,{name:"annotations",handleItemDefaults:n2e})};function n2e(e,r,t){function a(_,b){return C4.coerce(e,r,a2e,_,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){t2e(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],v=Eu.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=Eu.getFromId(u,v);d._annIndices.push(r._index)}if(Eu.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,m=Eu.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==v&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;Eu.coercePosition(r,u,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(C4.noneOrAll(e,r,["x","y"]),o&&C4.noneOrAll(e,r,["ax","ay"]),i){var x=a("xclick"),w=a("yclick");r._xclick=x===void 0?r.x:Eu.cleanPosition(x,u,r.xref),r._yclick=w===void 0?r.y:Eu.cleanPosition(w,u,r.yref)}}}});var bO=N((bFe,gO)=>{"use strict";var E4=Ce(),Du=Ir(),i2e=km().draw;gO.exports=function(r){var t=r._fullLayout,a=E4.filterVisible(t.annotations);if(a.length&&r._fullData.length)return E4.syncOrAsync([i2e,o2e],r)};function o2e(e){var r=e._fullLayout;E4.filterVisible(r.annotations).forEach(function(t){var a=Du.getFromId(e,t.xref),n=Du.getFromId(e,t.yref),i=Du.getRefType(t.xref),o=Du.getRefType(t.yref);t._extremes={},i==="range"&&mO(t,a),o==="range"&&mO(t,n)})}function mO(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,m=p+f,y=p-f,x;if(l===o){var w=Du.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=Du.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(u,y)});x={min:[w.min[0],_.min[0]],max:[w.max[0],_.max[0]]}}else m=i?m+i:m,y=i?y-i:y,x=Du.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,m),ppadminus:Math.max(u,d,y)});e._extremes[t]=x}});var _O=N((xFe,xO)=>{"use strict";var l2e=Rr(),s2e=pp();xO.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],m=null;i?m=s2e(p,t.range):m=Math.pow(10,p),l2e(m)||(m=null),n(f+d,m)}for(var v=0;v{"use strict";var D4=km(),wO=hO();TO.exports={moduleType:"component",name:"annotations",layoutAttributes:hc(),supplyLayoutDefaults:yO(),includeBasePlot:Wh()("annotations"),calcAutorange:bO(),draw:D4.draw,drawOne:D4.drawOne,drawRaw:D4.drawRaw,hasClickToShow:wO.hasClickToShow,onClick:wO.onClick,convertCoords:_O()}});var Sm=N((wFe,MO)=>{"use strict";var qt=hc(),u2e=Xi().overrideAll,f2e=At().templatedArray;MO.exports=u2e(f2e("annotation",{visible:qt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:qt.xanchor,xshift:qt.xshift,yanchor:qt.yanchor,yshift:qt.yshift,text:qt.text,textangle:qt.textangle,font:qt.font,width:qt.width,height:qt.height,opacity:qt.opacity,align:qt.align,valign:qt.valign,bgcolor:qt.bgcolor,bordercolor:qt.bordercolor,borderpad:qt.borderpad,borderwidth:qt.borderwidth,showarrow:qt.showarrow,arrowcolor:qt.arrowcolor,arrowhead:qt.arrowhead,startarrowhead:qt.startarrowhead,arrowside:qt.arrowside,arrowsize:qt.arrowsize,startarrowsize:qt.startarrowsize,arrowwidth:qt.arrowwidth,standoff:qt.standoff,startstandoff:qt.startstandoff,hovertext:qt.hovertext,hoverlabel:qt.hoverlabel,captureevents:qt.captureevents}),"calc","from-root")});var SO=N((TFe,kO)=>{"use strict";var R4=Ce(),c2e=Ir(),v2e=eo(),h2e=L4(),d2e=Sm();kO.exports=function(r,t,a){v2e(r,t,{name:"annotations",handleItemDefaults:p2e,fullLayout:a.fullLayout})};function p2e(e,r,t,a){function n(l,s){return R4.coerce(e,r,d2e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],c2e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(h2e(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),R4.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),R4.noneOrAll(e,r,["ax","ay"])))}});var EO=N((AFe,CO)=>{"use strict";var qO=Ce(),LO=Ir();CO.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function P4(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function m2e(e,r){var t=P4(e.projection,P4(e.view,P4(e.model,[r[0],r[1],r[2],1])));return t}DO.exports=m2e});var FO=N((kFe,PO)=>{"use strict";var g2e=km().drawRaw,b2e=RO(),x2e=["x","y","z"];PO.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=b2e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),g2e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var IO=N((SFe,zO)=>{"use strict";var _2e=gr(),NO=Ce();zO.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Sm()}}},layoutAttributes:Sm(),handleDefaults:SO(),includeBasePlot:w2e,convert:EO(),draw:FO()};function w2e(e,r){var t=_2e.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var OO=hc(),BO=da(),HO=wi().line,T2e=ui().dash,uo=xt().extendFlat,A2e=At().templatedArray,qFe=Yh(),Mc=mn(),M2e=Ta().shapeTexttemplateAttrs,k2e=kp();UO.exports=A2e("shape",{visible:uo({},Mc.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:uo({},Mc.legend,{editType:"calc+arraydraw"}),legendgroup:uo({},Mc.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:uo({},Mc.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:BO({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:uo({},Mc.legendrank,{editType:"calc+arraydraw"}),legendwidth:uo({},Mc.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:uo({},OO.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:uo({},OO.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:uo({},HO.color,{editType:"arraydraw"}),width:uo({},HO.width,{editType:"calc+arraydraw"}),dash:uo({},T2e,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:M2e({},{keys:Object.keys(k2e)}),font:BO({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var VO=N((CFe,YO)=>{"use strict";var d0=Ce(),kc=Ir(),S2e=eo(),q2e=F4(),GO=ns();YO.exports=function(r,t){S2e(r,t,{name:"shapes",handleItemDefaults:C2e})};function L2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function C2e(e,r,t){function a(Y,X){return d0.coerce(e,r,q2e,Y,X)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),d0.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));for(var c=a("xsizemode"),v=a("ysizemode"),d=["x","y"],p=0;p<2;p++){var m=d[p],y=m+"anchor",x=m==="x"?c:v,w={_fullLayout:t},_,b,T,k=kc.coerceRef(e,r,w,m,void 0,"paper"),M=kc.getRefType(k);if(M==="range"?(_=kc.getFromId(w,k),_._shapeIndices.push(r._index),T=GO.rangeToShapePosition(_),b=GO.shapePositionToRange(_),(_.type==="category"||_.type==="multicategory")&&(a(m+"0shift"),a(m+"1shift"))):b=T=d0.identity,u){var S=.25,E=.75,D=m+"0",P=m+"1",R=e[D],z=e[P];e[D]=b(e[D],!0),e[P]=b(e[P],!0),x==="pixel"?(a(D,0),a(P,10)):(kc.coercePosition(r,w,a,k,D,S),kc.coercePosition(r,w,a,k,P,E)),r[D]=T(r[D]),r[P]=T(r[P]),e[D]=R,e[P]=z}if(x==="pixel"){var O=e[y];e[y]=b(e[y],!0),kc.coercePosition(r,w,a,k,y,.25),r[y]=T(r[y]),e[y]=O}}u&&d0.noneOrAll(e,r,["x0","x1","y0","y1"]);var B=s==="line",V,G;if(u&&(V=a("label.texttemplate")),V||(G=a("label.text")),G||V){a("label.textangle");var U=a("label.textposition",B?"middle":"middle center");a("label.xanchor"),a("label.yanchor",L2e(B,U)),a("label.padding"),d0.coerceFont(a,"label.font",t.font)}}}});var ZO=N((EFe,jO)=>{"use strict";var E2e=Tr(),WO=Ce();function D2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}jO.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),WO.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",E2e.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",D2e(o,u)),a("newshape.label.padding"),WO.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var QO=N((DFe,KO)=>{"use strict";var N4=Ce(),Sc=Ir(),qc=Mh(),JO=ns();KO.exports=function(r){var t=r._fullLayout,a=N4.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?u+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function XO(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(qc.segmentRE),p,m,y,x,w;for(e.type==="date"&&(u=JO.decodeDate(u)),p=0;pv&&(v=w)));if(v>=c)return[c,v]}}});var tB=N((RFe,rB)=>{"use strict";var eB=py();rB.exports={moduleType:"component",name:"shapes",layoutAttributes:F4(),supplyLayoutDefaults:VO(),supplyDrawNewShapeDefaults:ZO(),includeBasePlot:Wh()("shapes"),calcAutorange:QO(),draw:eB.draw,drawOne:eB.drawOne}});var z4=N((FFe,nB)=>{"use strict";var aB=Ea(),F2e=At().templatedArray,PFe=Yh();nB.exports=F2e("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",aB.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",aB.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var oB=N((NFe,iB)=>{"use strict";var N2e=Ce(),I4=Ir(),z2e=eo(),I2e=z4(),O2e="images";iB.exports=function(r,t){var a={name:O2e,handleItemDefaults:B2e};z2e(r,t,a)};function B2e(e,r,t){function a(v,d){return N2e.coerce(e,r,I2e,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=I4.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=I4.getFromId(o,f);c._imgIndices.push(r._index)}I4.coercePosition(r,o,a,f,u,0)}return r}});var fB=N((zFe,uB)=>{"use strict";var lB=Sr(),H2e=Wr(),Lc=Ir(),sB=ia(),U2e=ll();uB.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var cB=Rr(),G2e=pp();vB.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";dB.exports={moduleType:"component",name:"images",layoutAttributes:z4(),supplyLayoutDefaults:oB(),includeBasePlot:Wh()("images"),draw:fB(),convertCoords:hB()}});var qm=N((BFe,yB)=>{"use strict";yB.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var O4=N((HFe,gB)=>{"use strict";var Y2e=da(),V2e=si(),W2e=xt().extendFlat,j2e=Xi().overrideAll,Z2e=Sp(),mB=At().templatedArray,X2e=mB("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});gB.exports=j2e(mB("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:X2e,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:W2e(Z2e({editType:"arraydraw"}),{}),font:Y2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:V2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var wB=N((UFe,_B)=>{"use strict";var Lm=Ce(),bB=eo(),xB=O4(),J2e=qm(),$2e=J2e.name,K2e=xB.buttons;_B.exports=function(r,t){var a={name:$2e,handleItemDefaults:Q2e};bB(r,t,a)};function Q2e(e,r,t){function a(o,l){return Lm.coerce(e,r,xB,o,l)}var n=bB(e,r,{name:"buttons",handleItemDefaults:e3e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Lm.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Lm.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function e3e(e,r){function t(n,i){return Lm.coerce(e,r,K2e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var MB=N((GFe,AB)=>{"use strict";AB.exports=Ot;var fo=Sr(),TB=Tr(),Cc=Wr(),Cm=Ce();function Ot(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Ot.barWidth=2;Ot.barLength=20;Ot.barRadius=2;Ot.barPad=1;Ot.barColor="#808BA4";Ot.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",m=c==="up",y=s,x=f,w,_,b,T;!v&&!d&&!p&&!m&&(this.position.direction="down",v=!0);var k=v||m;k?(w=l,_=w+y,v?(b=u,T=Math.min(b+x,o),x=T-b):(T=u+x,b=Math.max(T-x,0),x=T-b)):(b=u,T=b+x,d?(_=l+y,w=Math.max(_-y,0),y=_-w):(w=l,_=Math.min(w+y,i),y=_-w)),this._box={l:w,t:b,w:y,h:x};var M=s>y,S=Ot.barLength+2*Ot.barPad,E=Ot.barWidth+2*Ot.barPad,D=l,P=u+f;P+E>o&&(P=o-E);var R=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(TB.fill,Ot.barColor),M?(this.hbar=R.attr({rx:Ot.barRadius,ry:Ot.barRadius,x:D,y:P,width:S,height:E}),this._hbarXMin=D+S/2,this._hbarTranslateMax=y-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var z=f>x,O=Ot.barWidth+2*Ot.barPad,B=Ot.barLength+2*Ot.barPad,V=l+s,G=u;V+O>i&&(V=i-O);var U=this.container.selectAll("rect.scrollbar-vertical").data(z?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(TB.fill,Ot.barColor),z?(this.vbar=U.attr({rx:Ot.barRadius,ry:Ot.barRadius,x:V,y:G,width:O,height:B}),this._vbarYMin=G+B/2,this._vbarTranslateMax=x-B):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var Y=this.id,X=w-.5,Z=z?_+O+.5:_+.5,re=b-.5,ce=M?T+E+.5:T+.5,oe=n._topdefs.selectAll("#"+Y).data(M||z?[0]:[]);if(oe.exit().remove(),oe.enter().append("clipPath").attr("id",Y).append("rect"),M||z?(this._clipRect=oe.select("rect").attr({x:Math.floor(X),y:Math.floor(re),width:Math.ceil(Z)-Math.floor(X),height:Math.ceil(ce)-Math.floor(re)}),this.container.call(Cc.setClipUrl,Y,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Cc.setClipUrl,null),delete this._clipRect),M||z){var fe=fo.behavior.drag().on("dragstart",function(){fo.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(fe);var K=fo.behavior.drag().on("dragstart",function(){fo.event.sourceEvent.preventDefault(),fo.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(K),z&&this.vbar.on(".drag",null).call(K)}this.setTranslate(t,a)};Ot.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Cc.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Ot.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=fo.event.dx),this.vbar&&(t-=fo.event.dy),this.setTranslate(r,t)};Ot.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=fo.event.deltaY),this.vbar&&(t+=fo.event.deltaY),this.setTranslate(r,t)};Ot.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Cm.constrain(fo.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Cm.constrain(fo.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};Ot.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Cm.constrain(r||0,0,a),t=Cm.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Cc.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Cc.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(Cc.setTranslate,r,t+o*this._vbarTranslateMax)}}});var FB=N((YFe,PB)=>{"use strict";var Ec=Sr(),p0=aa(),y0=Tr(),Dc=Wr(),ei=Ce(),Em=Da(),r3e=At().arrayEditor,SB=Xa().LINE_SPACING,wr=qm(),t3e=MB();PB.exports=function(r){var t=r._fullLayout,a=ei.filterVisible(t[wr.name]);function n(v){p0.autoMargin(r,DB(v))}var i=t._menulayer.selectAll("g."+wr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(wr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Ec.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+wr.headerGroupClassName).data(a,a3e);o.enter().append("g").classed(wr.headerGroupClassName,!0);for(var l=ei.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var f3e=qm();NB.exports={moduleType:"component",name:f3e.name,layoutAttributes:O4(),supplyLayoutDefaults:wB(),draw:FB()}});var g0=N((WFe,IB)=>{"use strict";IB.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var G4=N((jFe,HB)=>{"use strict";var OB=da(),c3e=Sp(),v3e=xt().extendDeepAll,h3e=Xi().overrideAll,d3e=$v(),BB=At().templatedArray,Ru=g0(),p3e=BB("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});HB.exports=h3e(BB("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:p3e,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:v3e(c3e({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:d3e.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:OB({})},font:OB({}),activebgcolor:{valType:"color",dflt:Ru.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ru.railBgColor},bordercolor:{valType:"color",dflt:Ru.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ru.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ru.tickLength},tickcolor:{valType:"color",dflt:Ru.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ru.minorTickLength}}),"arraydraw","from-root")});var VB=N((ZFe,YB)=>{"use strict";var Rc=Ce(),UB=eo(),GB=G4(),y3e=g0(),m3e=y3e.name,g3e=GB.steps;YB.exports=function(r,t){UB(r,t,{name:m3e,handleItemDefaults:b3e})};function b3e(e,r,t){function a(c,v){return Rc.coerce(e,r,GB,c,v)}for(var n=UB(e,r,{name:"steps",handleItemDefaults:x3e}),i=0,o=0;o{"use strict";var co=Sr(),Dm=aa(),vs=Tr(),vo=Wr(),ri=Ce(),_3e=ri.strTranslate,b0=Da(),w3e=At().arrayEditor,Fr=g0(),W4=Xa(),ZB=W4.LINE_SPACING,Y4=W4.FROM_TL,V4=W4.FROM_BR;eH.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=T3e(a,r),i=a._infolayer.selectAll("g."+Fr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Fr.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Dm.autoMargin(r,XB(f))}if(i.exit().each(function(){co.select(this).selectAll("g."+Fr.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Fr.groupClassName).data(n,A3e);l.enter().append("g").classed(Fr.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",_3e(o-Fr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function j4(e,r){var t=e._dims;return t.inputAreaStart+Fr.stepInset+(t.inputAreaLength-2*Fr.stepInset)*Math.min(1,Math.max(0,r))}function jB(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Fr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Fr.stepInset-2*t.inputAreaStart)))}function E3e(e,r,t){var a=t._dims,n=ri.ensureSingle(e,"rect",Fr.railTouchRectClass,function(i){i.call(KB,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Fr.tickOffset+t.ticklen+a.labelHeight)}).call(vs.fill,t.bgcolor).attr("opacity",0),vo.setTranslate(n,0,a.currentValueTotalHeight)}function D3e(e,r){var t=r._dims,a=t.inputAreaLength-Fr.railInset*2,n=ri.ensureSingle(e,"rect",Fr.railRectClass);n.attr({width:a,height:Fr.railWidth,rx:Fr.railRadius,ry:Fr.railRadius,"shape-rendering":"crispEdges"}).call(vs.stroke,r.bordercolor).call(vs.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),vo.setTranslate(n,Fr.railInset,(t.inputAreaWidth-Fr.railWidth)*.5+t.currentValueTotalHeight)}});var aH=N((JFe,tH)=>{"use strict";var R3e=g0();tH.exports={moduleType:"component",name:R3e.name,layoutAttributes:G4(),supplyLayoutDefaults:VB(),draw:rH()}});var Pm=N(($Fe,iH)=>{"use strict";var nH=si();iH.exports={bgcolor:{valType:"color",dflt:nH.background,editType:"plot"},bordercolor:{valType:"color",dflt:nH.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var Z4=N((KFe,oH)=>{"use strict";oH.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Fm=N((QFe,lH)=>{"use strict";lH.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var fH=N(zm=>{"use strict";var P3e=ia(),F3e=Da(),sH=Fm(),N3e=Xa().LINE_SPACING,Nm=sH.name;function uH(e){var r=e&&e[Nm];return r&&r.visible}zm.isVisible=uH;zm.makeData=function(e){for(var r=P3e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Im=Ce(),cH=At(),vH=ia(),z3e=Pm(),I3e=Z4();hH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Im.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=cH.newContainer(i,"rangeslider");function s(T,k){return Im.coerce(o,l,z3e,T,k)}var u,f;function c(T,k){return Im.coerce(u,f,I3e,T,k)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(T){return T.substr(0,T.indexOf("y"))===vH.name2id(a)}).map(function(T){return T.substr(T.indexOf("y"),T.length)}),m=Im.simpleMap(p,vH.id2name),y=0;y{"use strict";var O3e=ia().list,B3e=dh().getAutoRange,H3e=Fm();pH.exports=function(r){for(var t=O3e(r,"x",!0),a=0;a{"use strict";var Om=Sr(),U3e=gr(),G3e=aa(),Zt=Ce(),Bm=Zt.strTranslate,gH=Wr(),hs=Tr(),Y3e=Zf(),V3e=qi(),X4=ia(),W3e=pi(),j3e=rs(),Gr=Fm();bH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=U.max)V=P[G+1];else if(B=U.pmax)V=P[G+1];else if(B0?e.touches[0].clientX:0}function Z3e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Gr.slideBoxClassName).node(),i=e.select("rect."+Gr.grabAreaMinClassName).node(),o=e.select("rect."+Gr.grabAreaMaxClassName).node();function l(){var s=Om.event,u=s.target,f=mH(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=W3e.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(x){var w=mH(x),_=+w-f,b,T,k;switch(u){case n:if(k="ew-resize",v+_>t._length||d+_<0)return;b=v+_,T=d+_;break;case i:if(k="col-resize",v+_>t._length)return;b=v+_,T=d;break;case o:if(k="col-resize",d+_<0)return;b=v,T=d+_;break;default:k="ew-resize",b=c,T=c+_;break}if(T{"use strict";var nbe=Ce(),ibe=Pm(),obe=Z4(),J4=fH();_H.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:nbe.extendFlat({},ibe,{yaxis:obe})}}},layoutAttributes:Pm(),handleDefaults:dH(),calcAutorange:yH(),draw:xH(),isVisible:J4.isVisible,makeData:J4.makeData,autoMarginOpts:J4.autoMarginOpts}});var Hm=N((iNe,AH)=>{"use strict";var lbe=da(),TH=si(),sbe=At().templatedArray,ube=sbe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});AH.exports={visible:{valType:"boolean",editType:"plot"},buttons:ube,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:lbe({editType:"plot"}),bgcolor:{valType:"color",dflt:TH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:TH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var $4=N((oNe,MH)=>{"use strict";MH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var qH=N((lNe,SH)=>{"use strict";var Um=Ce(),fbe=Tr(),cbe=At(),vbe=eo(),kH=Hm(),K4=$4();SH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=cbe.newContainer(t,"rangeselector");function s(d,p){return Um.coerce(o,l,kH,d,p)}var u=vbe(o,l,{name:"buttons",handleItemDefaults:hbe,calendar:i}),f=s("visible",u.length>0);if(f){var c=dbe(t,a,n);s("x",c[0]),s("y",c[1]),Um.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Um.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",fbe.contrast(v,K4.lightAmount,K4.darkAmount)),s("bordercolor"),s("borderwidth")}};function hbe(e,r,t,a){var n=a.calendar;function i(s,u){return Um.coerce(e,r,kH.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function dbe(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var pbe=K3(),ybe=Ce().titleCase;LH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=mbe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function mbe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=pbe["utc"+ybe(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var IH=N((uNe,zH)=>{"use strict";var Ym=Sr(),gbe=gr(),bbe=aa(),EH=Tr(),NH=Wr(),gl=Ce(),DH=gl.strTranslate,Gm=Da(),xbe=ia(),rw=Xa(),RH=rw.LINE_SPACING,PH=rw.FROM_TL,FH=rw.FROM_BR,ew=$4(),_be=CH();zH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(wbe(r),Tbe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Ym.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(gl.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Ym.select(this),c=_be(o,u);u._isActive=Abe(o,u,c),f.call(Q4,l,u),f.call(kbe,l,u,r),f.on("click",function(){r._dragged||gbe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(Q4,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(Q4,l,u)})}),qbe(r,s,l,o._name,i)})};function wbe(e){for(var r=xbe.list(e,"x",!0),t=[],a=0;a{"use strict";OH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Hm()}}},layoutAttributes:Hm(),handleDefaults:qH(),draw:IH()}});var Pc=N(tw=>{"use strict";var HH=xt().extendFlat;tw.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:HH({},t,{}),y:HH({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};tw.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var Lbe=Ce(),Cbe=Af().counter,Ebe=Pc().attributes,UH=Ea().idRegex,Dbe=At(),aw={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Cbe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[UH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[UH.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Ebe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Vm(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Rbe(e,r){var t=e.grid||{},a=Vm(r,t,"x"),n=Vm(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=Dbe.newContainer(r,"grid");function v(k,M){return Lbe.coerce(t,c,aw,k,M)}var d=v("rows",u),p=v("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var m=v("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var y=v("roworder"),x=y==="top to bottom",w=i?.2:.1,_=i?.3:.1,b,T;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,T=r._splomGridDflt.yside),c._domains={x:GH("x",v,w,b,p),y:GH("y",v,_,T,d,x)}}function GH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),v=0;v{"use strict";jH.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var JH=N((dNe,XH)=>{"use strict";var ZH=Rr(),Fbe=gr(),Nbe=Ce(),zbe=At(),Ibe=nw();XH.exports=function(e,r,t,a){var n="error_"+a.axis,i=zbe.newContainer(r,n),o=e[n]||{};function l(p,m){return Nbe.coerce(o,i,Ibe,p,m)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||ZH(o.thickness)||ZH(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",Fbe.traceIs(r,"gl3d")?0:4))}}});var iw=N((pNe,KH)=>{"use strict";KH.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],v=+i[f];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=$H(t,r.value),l=$H(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function $H(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var rU=N((yNe,eU)=>{"use strict";var ow=Rr(),Obe=gr(),lw=Ir(),Bbe=Ce(),Hbe=iw();eU.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var tU=Sr(),ds=Rr(),Ube=Wr(),Gbe=Dn();aU.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(w){return w.id});var m=Gbe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var y=tU.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){v.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var x=y.enter().append("g").classed("errorbar",!0);s&&x.style("opacity",0).transition().duration(n.duration).style("opacity",1),Ube.setClipUrl(y,a.layerClipId,r),y.each(function(w){var _=tU.select(this),b=Ybe(w,o,l);if(!(m&&!w.vis)){var T,k=_.select("path.yerror");if(d.visible&&ds(b.x)&&ds(b.yh)&&ds(b.ys)){var M=d.width;T="M"+(b.x-M)+","+b.yh+"h"+2*M+"m-"+M+",0V"+b.ys,b.noYS||(T+="m-"+M+",0h"+2*M),i=!k.size(),i?k=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",T)}else k.remove();var S=_.select("path.xerror");if(v.visible&&ds(b.y)&&ds(b.xh)&&ds(b.xs)){var E=(v.copy_ystyle?d:v).width;T="M"+b.xh+","+(b.y-E)+"v"+2*E+"m0,-"+E+"H"+b.xs,b.noXS||(T+="m0,-"+E+"v"+2*E),i=!S.size(),i?S=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",T)}else S.remove()}})}})};function Ybe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),ds(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),ds(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var lU=N((gNe,oU)=>{"use strict";var Vbe=Sr(),iU=Tr();oU.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=Vbe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(iU.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(iU.stroke,i.color)})}});var fU=N((bNe,uU)=>{"use strict";var x0=Ce(),sU=Xi().overrideAll,_0=nw(),Pu={error_x:x0.extendFlat({},_0),error_y:x0.extendFlat({},_0)};delete Pu.error_x.copy_zstyle;delete Pu.error_y.copy_zstyle;delete Pu.error_y.copy_ystyle;var w0={error_x:x0.extendFlat({},_0),error_y:x0.extendFlat({},_0),error_z:x0.extendFlat({},_0)};delete w0.error_x.copy_ystyle;delete w0.error_y.copy_ystyle;delete w0.error_z.copy_ystyle;delete w0.error_z.copy_zstyle;uU.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Pu,bar:Pu,histogram:Pu,scatter3d:sU(w0,"calc","nested"),scattergl:sU(Pu,"calc","nested")}},supplyDefaults:JH(),calc:rU(),makeComputeError:iw(),plot:nU(),style:lU(),hoverInfo:Wbe};function Wbe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var vU=N((xNe,cU)=>{"use strict";cU.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var bU=N((_Ne,gU)=>{"use strict";var ps=Sr(),sw=kn(),jm=aa(),hU=gr(),bl=Ir(),Wm=pi(),Li=Ce(),po=Li.strTranslate,mU=xt().extendFlat,uw=rs(),ho=Wr(),fw=Tr(),jbe=Zf(),Zbe=Da(),Xbe=jn().flipScale,Jbe=b4(),$be=x4(),Kbe=hi(),cw=Xa(),dU=cw.LINE_SPACING,pU=cw.FROM_TL,yU=cw.FROM_BR,zt=vU().cn;function Qbe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+zt.colorbar).data(exe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(zt.colorbar,!0),t.each(function(a){var n=ps.select(this);Li.ensureSingle(n,"rect",zt.cbbg),Li.ensureSingle(n,"g",zt.cbfills),Li.ensureSingle(n,"g",zt.cblines),Li.ensureSingle(n,"g",zt.cbaxis,function(o){o.classed(zt.crisp,!0)}),Li.ensureSingle(n,"g",zt.cbtitleunshift,function(o){o.append("g").classed(zt.cbtitle,!0)}),Li.ensureSingle(n,"rect",zt.cboutline);var i=rxe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&txe(n,a,e)}),t.exit().each(function(a){jm.autoMargin(e,a._id)}).remove(),t.order()}function exe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return mU(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?Xbe(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f1){var Q=Math.pow(10,Math.floor(Math.log(W)/Math.LN10));ie*=Q*Li.roundUp(W/Q,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(le.tick0=0)}le.dtick=ie}le.domain=a?[K+p/b.h,K+Y-p/b.h]:[K+d/b.w,K+Y-d/b.w],le.setScale(),e.attr("transform",po(Math.round(b.l),Math.round(b.t)));var j=e.select("."+zt.cbtitleunshift).attr("transform",po(-Math.round(b.l),-Math.round(b.t))),ye=le.ticklabelposition,_e=le.title.font.size,me=e.select("."+zt.cbaxis),Pe,Ne=0,Re=0;function ze(Be,se){var Ae={propContainer:le,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+zt.cbtitle)},je=Be.charAt(0)==="h"?Be.substr(1):"h"+Be;e.selectAll("."+je+",."+je+"-math-group").remove(),jbe.draw(t,Be,mU(Ae,se||{}))}function Ge(){if(a&&pe||!a&&!pe){var Be,se;S==="top"&&(Be=d+b.l+X*m,se=p+b.t+Z*(1-K-Y)+3+_e*.75),S==="bottom"&&(Be=d+b.l+X*m,se=p+b.t+Z*(1-K)-3-_e*.25),S==="right"&&(se=p+b.t+Z*y+3+_e*.75,Be=d+b.l+X*K),ze(le._id+"title",{attributes:{x:Be,y:se,"text-anchor":a?"start":"middle"}})}}function He(){if(a&&!pe||!a&&pe){var Be=le.position||0,se=le._offset+le._length/2,Ae,je;if(S==="right")je=se,Ae=b.l+X*Be+10+_e*(le.showticklabels?1:.5);else if(Ae=se,S==="bottom"&&(je=b.t+Z*Be+10+(ye.indexOf("inside")===-1?le.tickfont.size:0)+(le.ticks!=="inside"&&r.ticklen||0)),S==="top"){var ur=M.text.split("
").length;je=b.t+Z*Be+10-V-dU*_e*ur}ze((a?"h":"v")+le._id+"title",{avoid:{selection:ps.select(t).selectAll("g."+le._id+"tick"),side:S,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?_.width:_.height},attributes:{x:Ae,y:je,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function De(){if(!a&&!pe||a&&pe){var Be=e.select("."+zt.cbtitle),se=Be.select("text"),Ae=[-s/2,s/2],je=Be.select(".h"+le._id+"title-math-group").node(),ur=15.6;se.node()&&(ur=parseInt(se.node().style.fontSize,10)*dU);var lr;if(je?(lr=ho.bBox(je),Re=lr.width,Ne=lr.height,Ne>ur&&(Ae[1]-=(Ne-ur)/2)):se.node()&&!se.classed(zt.jsPlaceholder)&&(lr=ho.bBox(se.node()),Re=lr.width,Ne=lr.height),a){if(Ne){if(Ne+=5,S==="top")le.domain[1]-=Ne/b.h,Ae[1]*=-1;else{le.domain[0]+=Ne/b.h;var ue=Zbe.lineCount(se);Ae[1]+=(1-ue)*ur}Be.attr("transform",po(Ae[0],Ae[1])),le.setScale()}}else Re&&(S==="right"&&(le.domain[0]+=(Re+_e/2)/b.w),Be.attr("transform",po(Ae[0],Ae[1])),le.setScale())}e.selectAll("."+zt.cbfills+",."+zt.cblines).attr("transform",a?po(0,Math.round(b.h*(1-le.domain[1]))):po(Math.round(b.w*le.domain[0]),0)),me.attr("transform",a?po(0,Math.round(-b.t)):po(Math.round(-b.l),0));var qe=e.select("."+zt.cbfills).selectAll("rect."+zt.cbfill).attr("style","").data(O);qe.enter().append("rect").classed(zt.cbfill,!0).attr("style",""),qe.exit().remove();var Oe=E.map(le.c2p).map(Math.round).sort(function(hr,$e){return hr-$e});qe.each(function(hr,$e){var Fe=[$e===0?E[0]:(O[$e]+O[$e-1])/2,$e===O.length-1?E[1]:(O[$e]+O[$e+1])/2].map(le.c2p).map(Math.round);a&&(Fe[1]=Li.constrain(Fe[1]+(Fe[1]>Fe[0])?1:-1,Oe[0],Oe[1]));var ne=ps.select(this).attr(a?"x":"y",re).attr(a?"y":"x",ps.min(Fe)).attr(a?"width":"height",Math.max(V,2)).attr(a?"height":"width",Math.max(ps.max(Fe)-ps.min(Fe),2));if(r._fillgradient)ho.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var de=P(hr).replace("e-","");ne.attr("fill",sw(de).toHexString())}});var Ze=e.select("."+zt.cblines).selectAll("path."+zt.cbline).data(k.color&&k.width?B:[]);Ze.enter().append("path").classed(zt.cbline,!0),Ze.exit().remove(),Ze.each(function(hr){var $e=re,Fe=Math.round(le.c2p(hr))+k.width/2%1;ps.select(this).attr("d","M"+(a?$e+","+Fe:Fe+","+$e)+(a?"h":"v")+V).call(ho.lineGroupStyle,k.width,D(hr),k.dash)}),me.selectAll("g."+le._id+"tick,path").remove();var Ue=re+V+(s||0)/2-(r.ticks==="outside"?1:0),Xe=bl.calcTicks(le),Qe=bl.getTickSigns(le)[2];return bl.drawTicks(t,le,{vals:le.ticks==="inside"?bl.clipEnds(le,Xe):Xe,layer:me,path:bl.makeTickPath(le,Ue,Qe),transFn:bl.makeTransTickFn(le)}),bl.drawLabels(t,le,{vals:Xe,layer:me,transFn:bl.makeTransTickLabelFn(le),labelFns:bl.makeLabelFns(le,Ue)})}function Ie(){var Be,se=V+s/2;ye.indexOf("inside")===-1&&(Be=ho.bBox(me.node()),se+=a?Be.width:Be.height),Pe=j.select("text");var Ae=0,je=a&&S==="top",ur=!a&&S==="right",lr=0;if(Pe.node()&&!Pe.classed(zt.jsPlaceholder)){var ue,qe=j.select(".h"+le._id+"title-math-group").node();qe&&(a&&pe||!a&&!pe)?(Be=ho.bBox(qe),Ae=Be.width,ue=Be.height):(Be=ho.bBox(j.node()),Ae=Be.right-b.l-(a?re:Te),ue=Be.bottom-b.t-(a?Te:re),!a&&S==="top"&&(se+=Be.height,lr=Be.height)),ur&&(Pe.attr("transform",po(Ae/2+_e/2,0)),Ae*=2),se=Math.max(se,a?Ae:ue)}var Oe=(a?d:p)*2+se+u+s/2,Ze=0;!a&&M.text&&v==="bottom"&&y<=0&&(Ze=Oe/2,Oe+=Ze,lr+=Ze),_._hColorbarMoveTitle=Ze,_._hColorbarMoveCBTitle=lr;var Ue=u+s,Xe=(a?re:Te)-Ue/2-(a?d:0),Qe=(a?Te:re)-(a?U:p+lr-Ze);e.select("."+zt.cbbg).attr("x",Xe).attr("y",Qe).attr(a?"width":"height",Math.max(Oe-Ze,2)).attr(a?"height":"width",Math.max(U+Ue,2)).call(fw.fill,f).call(fw.stroke,r.bordercolor).style("stroke-width",u);var hr=ur?Math.max(Ae-10,0):0;e.selectAll("."+zt.cboutline).attr("x",(a?re:Te+d)+hr).attr("y",(a?Te+p-U:re)+(je?Ne:0)).attr(a?"width":"height",Math.max(V,2)).attr(a?"height":"width",Math.max(U-(a?2*p+Ne:2*d+hr),2)).call(fw.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var $e=a?ce*Oe:0,Fe=a?0:(1-oe)*Oe-lr;if($e=w?b.l-$e:-$e,Fe=x?b.t-Fe:-Fe,e.attr("transform",po($e,Fe)),!a&&(u||sw(f).getAlpha()&&!sw.equals(_.paper_bgcolor,f))){var ne=me.selectAll("text"),de=ne[0].length,Ee=e.select("."+zt.cbbg).node(),Le=ho.bBox(Ee),ar=ho.getTranslate(e),sr=2;ne.each(function(Xt,Jt){var It=0,za=de-1;if(Jt===It||Jt===za){var br=ho.bBox(this),yt=ho.getTranslate(this),Nr;if(Jt===za){var ut=br.right+yt.x,Pt=Le.right+ar.x+Te-u-sr+m;Nr=Pt-ut,Nr>0&&(Nr=0)}else if(Jt===It){var Qr=br.left+yt.x,ct=Le.left+ar.x+Te+u+sr;Nr=ct-Qr,Nr<0&&(Nr=0)}Nr&&(de<3?this.setAttribute("transform","translate("+Nr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var nr={},Mr=pU[c],Or=yU[c],Zr=pU[v],Vr=yU[v],Yt=Oe-V;a?(i==="pixels"?(nr.y=y,nr.t=U*Zr,nr.b=U*Vr):(nr.t=nr.b=0,nr.yt=y+n*Zr,nr.yb=y-n*Vr),l==="pixels"?(nr.x=m,nr.l=Oe*Mr,nr.r=Oe*Or):(nr.l=Yt*Mr,nr.r=Yt*Or,nr.xl=m-o*Mr,nr.xr=m+o*Or)):(i==="pixels"?(nr.x=m,nr.l=U*Mr,nr.r=U*Or):(nr.l=nr.r=0,nr.xl=m+n*Mr,nr.xr=m-n*Or),l==="pixels"?(nr.y=1-y,nr.t=Oe*Zr,nr.b=Oe*Vr):(nr.t=Yt*Zr,nr.b=Yt*Vr,nr.yt=y-o*Zr,nr.yb=y+o*Vr));var wt=r.y<.5?"b":"t",Tt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var pt={r:_.width-Xe-$e,l:Xe+nr.r,b:_.height-Qe-Fe,t:Qe+nr.b};w&&x?jm.autoMargin(t,r._id,nr):w?t._fullLayout._reservedMargin[r._id][wt]=pt[wt]:x||a?t._fullLayout._reservedMargin[r._id][Tt]=pt[Tt]:t._fullLayout._reservedMargin[r._id][wt]=pt[wt]}return Li.syncOrAsync([jm.previousPromises,Ge,De,He,jm.previousPromises,Ie],t)}function txe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;Wm.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),uw(e)},moveFn:function(u,f){e.attr("transform",o+po(u,f)),l=Wm.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Wm.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Wm.getCursor(l,s,r.xanchor,r.yanchor);uw(e,c)},doneFn:function(){if(uw(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?hU.call("_guiRestyle",t,u,r._traceIndex):hU.call("_guiRelayout",t,u)}}})}function axe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";xU.exports={moduleType:"component",name:"colorbar",attributes:r1(),supplyDefaults:vx(),draw:bU().draw,hasColorbar:ix()}});var TU=N((TNe,wU)=>{"use strict";wU.exports={moduleType:"component",name:"legend",layoutAttributes:o5(),supplyLayoutDefaults:u5(),draw:_5(),style:m5()}});var MU=N((ANe,AU)=>{"use strict";AU.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var SU=N((MNe,kU)=>{"use strict";kU.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var hw=N((kNe,EU)=>{"use strict";var ixe=gr(),CU=Ce(),vw=CU.extendFlat,qU=CU.extendDeep;function LU(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function oxe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}EU.exports=function(r,t){var a,n=r.data,i=r.layout,o=qU([],n),l=qU({},i,LU(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var u=Object.keys(l);for(a=0;a{"use strict";var lxe=Qs().EventEmitter,sxe=gr(),uxe=Ce(),DU=yl(),fxe=hw(),cxe=Qy(),vxe=em();function hxe(e,r){var t=new lxe,a=fxe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=DU.getDelay(n._fullLayout);setTimeout(function(){var s=cxe(n),u=document.createElement("canvas");u.id=uxe.randstr(),t=vxe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=DU.getRedrawFunc(n);return sxe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}RU.exports=hxe});var zU=N((qNe,NU)=>{"use strict";var FU=yl(),dxe={getDelay:FU.getDelay,getRedrawFunc:FU.getRedrawFunc,clone:hw(),toSVG:Qy(),svgToImg:em(),toImage:PU(),downloadImage:O_()};NU.exports=dxe});var OU=N(xl=>{"use strict";xl.version=ip().version;UA();ES();var pxe=gr(),T0=xl.register=pxe.register,pw=ez(),IU=Object.keys(pw);for(Zm=0;Zm{"use strict";BU.exports=OU()});var Jm=N((ENe,UU)=>{"use strict";UU.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Nu=N((DNe,WU)=>{"use strict";var Gt=wi(),GU=Qi().axisHoverFormat,yxe=Ta().hovertemplateAttrs,mxe=Ta().texttemplateAttrs,VU=ko(),gxe=da(),YU=Jm(),bxe=ui().pattern,Fu=xt().extendFlat,yw=gxe({editType:"calc",arrayOk:!0,colorEditType:"style"}),xxe=Gt.marker,_xe=xxe.line,wxe=Fu({},_xe.width,{dflt:0}),Txe=Fu({width:wxe,editType:"calc"},VU("marker.line")),Axe=Fu({line:Txe,editType:"calc"},VU("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:bxe,cornerradius:{valType:"any",editType:"calc"}});WU.exports={x:Gt.x,x0:Gt.x0,dx:Gt.dx,y:Gt.y,y0:Gt.y0,dy:Gt.dy,xperiod:Gt.xperiod,yperiod:Gt.yperiod,xperiod0:Gt.xperiod0,yperiod0:Gt.yperiod0,xperiodalignment:Gt.xperiodalignment,yperiodalignment:Gt.yperiodalignment,xhoverformat:GU("x"),yhoverformat:GU("y"),text:Gt.text,texttemplate:mxe({editType:"plot"},{keys:YU.eventDataKeys}),hovertext:Gt.hovertext,hovertemplate:yxe({},{keys:YU.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Fu({},yw,{}),insidetextfont:Fu({},yw,{}),outsidetextfont:Fu({},yw,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Fu({},Gt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Axe,offsetgroup:Gt.offsetgroup,alignmentgroup:Gt.alignmentgroup,selected:{marker:{opacity:Gt.selected.marker.opacity,color:Gt.selected.marker.color,editType:"style"},textfont:Gt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Gt.unselected.marker.opacity,color:Gt.unselected.marker.color,editType:"style"},textfont:Gt.unselected.textfont,editType:"style"},zorder:Gt.zorder}});var $m=N((RNe,jU)=>{"use strict";jU.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var mw=N((PNe,JU)=>{"use strict";var Mxe=Tr(),ZU=jn().hasColorscale,XU=ul(),kxe=Ce().coercePattern;JU.exports=function(r,t,a,n,i){var o=a("marker.color",n),l=ZU(r,"marker");l&&XU(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Mxe.defaultLine),ZU(r,"marker.line")&&XU(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),kxe(a,"marker.pattern",o,l),a("selected.marker.color"),a("unselected.marker.color")}});var zu=N((FNe,tG)=>{"use strict";var $U=Rr(),Nc=Ce(),KU=Tr(),Sxe=gr(),qxe=U_(),Lxe=pc(),Cxe=mw(),Exe=n0(),QU=Nu(),Km=Nc.coerceFont;function Dxe(e,r,t,a){function n(u,f){return Nc.coerce(e,r,QU,u,f)}var i=qxe(e,r,a,n);if(!i){r.visible=!1;return}Lxe(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var o=n("textposition");rG(e,r,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Cxe(e,r,n,t,a);var l=(r.marker.line||{}).color,s=Sxe.getComponentMethod("errorbars","supplyDefaults");s(e,r,l||KU.defaultLine,{axis:"y"}),s(e,r,l||KU.defaultLine,{axis:"x",inherit:"y"}),Nc.coerceSelectionMarkerOpacity(r,n)}function Rxe(e,r){var t,a;function n(l,s){return Nc.coerce(a._input,a,QU,l,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&$U(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function rG(e,r,t,a,n,i){i=i||{};var o=i.moduleHasSelected!==!1,l=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,v=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",m=d||n==="outside";if(p||m){var y=Km(a,"textfont",t.font),x=Nc.extendFlat({},y),w=e.textfont&&e.textfont.color,_=!w;if(_&&delete x.color,Km(a,"insidetextfont",x),v){var b=Nc.extendFlat({},y);_&&delete b.color,Km(a,"pathbar.textfont",b)}m&&Km(a,"outsidetextfont",y),o&&a("selected.textfont.color"),l&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate")}p&&c&&a("insidetextanchor")}tG.exports={supplyDefaults:Dxe,crossTraceDefaults:Rxe,handleText:rG,validateCornerradius:eG}});var gw=N((NNe,aG)=>{"use strict";var Pxe=gr(),Fxe=Ir(),Nxe=Ce(),zxe=$m(),Ixe=zu().validateCornerradius;aG.exports=function(e,r,t){function a(m,y){return Nxe.coerce(e,r,zxe,m,y)}for(var n=!1,i=!1,o=!1,l={},s=a("barmode"),u=s==="group",f=0;f0&&!l[v]&&(o=!0),l[v]=!0),c.visible&&c.type==="histogram"){var d=Fxe.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!o?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=Ixe(p)}});var Qm=N((zNe,nG)=>{"use strict";var zc=Ce();nG.exports=function(r,t){for(var a=0;a{"use strict";var iG=Ir(),oG=mc(),lG=jn().hasColorscale,sG=Uf(),Oxe=Qm(),Bxe=sm();uG.exports=function(r,t){var a=iG.getFromId(r,t.xaxis||"x"),n=iG.getFromId(r,t.yaxis||"y"),i,o,l,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),l=n.makeCalcdata(t,"y"),s=oG(t,n,"y",l),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),l=a.makeCalcdata(t,"x"),s=oG(t,a,"x",l),u=!!t.xperiodalignment,f="x"),o=s.vals;for(var v=Math.min(o.length,i.length),d=new Array(v),p=0;p{"use strict";var Hxe=Sr(),Uxe=Ce();function Gxe(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",o;switch(t){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}r.selectAll(o).each(function(l){var s=l.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=Hxe.select(this).select("text");Uxe.setTransormAndDisplay(u,s)}})}}function Yxe(e,r,t){if(t.uniformtext.mode){var a=cG(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var Wxe=Rr(),jxe=kn(),hG=Ce().isArrayOrTypedArray;Iu.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Iu.coerceNumber=function(e,r,t){if(Wxe(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Iu.coerceColor=function(e,r,t){return jxe(r).isValid()?r:t!==void 0?t:e.dflt};Iu.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Iu.getValue=function(e,r){var t;return hG(e)?r{"use strict";var M0=Sr(),Zxe=Tr(),k0=Wr(),dG=Ce(),pG=gr(),yG=A0().resizeText,bw=Nu(),Xxe=bw.textfont,Jxe=bw.insidetextfont,$xe=bw.outsidetextfont,Ya=eg();function Kxe(e){var r=M0.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");yG(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&M0.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=M0.select(this),o=n[0].trace;mG(i,o,e)}),pG.getComponentMethod("errorbars","style")(r)}function mG(e,r,t){k0.pointStyle(e.selectAll("path"),r,t),gG(e,r,t)}function gG(e,r,t){e.selectAll("text").each(function(a){var n=M0.select(this),i=dG.ensureUniformFontSize(t,bG(n,a,r,t));k0.font(n,i)})}function Qxe(e,r,t){var a=r[0].trace;a.selectedpoints?e5e(t,a,e):(mG(t,a,e),pG.getComponentMethod("errorbars","style")(t))}function e5e(e,r,t){k0.selectedPointStyle(e.selectAll("path"),r),r5e(e.selectAll("text"),r,t)}function r5e(e,r,t){e.each(function(a){var n=M0.select(this),i;if(a.selected){i=dG.ensureUniformFontSize(t,bG(n,a,r,t));var o=r.selected.textfont&&r.selected.textfont.color;o&&(i.color=o),k0.font(n,i)}else k0.selectedTextStyle(n,r)})}function bG(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var o=TG(r,t);i=_G(t,r.i,n,o)}else e.classed("bartext-outside")&&(i=wG(t,r.i,n));return i}function xG(e,r,t){return xw(Xxe,e.textfont,r,t)}function _G(e,r,t,a){var n=xG(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:Zxe.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),xw(Jxe,e.insidetextfont,r,n)}function wG(e,r,t){var a=xG(e,r,t);return xw($xe,e.outsidetextfont,r,a)}function xw(e,r,t,a){r=r||{};var n=Ya.getValue(r.family,t),i=Ya.getValue(r.size,t),o=Ya.getValue(r.color,t),l=Ya.getValue(r.weight,t),s=Ya.getValue(r.style,t),u=Ya.getValue(r.variant,t),f=Ya.getValue(r.textcase,t),c=Ya.getValue(r.lineposition,t),v=Ya.getValue(r.shadow,t);return{family:Ya.coerceString(e.family,n,a.family),size:Ya.coerceNumber(e.size,i,a.size),color:Ya.coerceColor(e.color,o,a.color),weight:Ya.coerceString(e.weight,l,a.weight),style:Ya.coerceString(e.style,s,a.style),variant:Ya.coerceString(e.variant,u,a.variant),textcase:Ya.coerceString(e.variant,f,a.textcase),lineposition:Ya.coerceString(e.variant,c,a.lineposition),shadow:Ya.coerceString(e.variant,v,a.shadow)}}function TG(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}AG.exports={style:Kxe,styleTextPoints:gG,styleOnSelect:Qxe,getInsideTextFont:_G,getOutsideTextFont:wG,getBarColor:TG,resizeText:yG}});var Tw=N((UNe,DG)=>{"use strict";var rg=Sr(),tg=Rr(),Pa=Ce(),t5e=Da(),a5e=Tr(),ys=Wr(),n5e=gr(),ag=Ir().tickText,MG=A0(),i5e=MG.recordMinTextSize,o5e=MG.clearMinTextSize,_w=Ic(),Oc=eg(),l5e=Jm(),kG=Nu(),s5e=kG.text,u5e=kG.textposition,f5e=qo().appendArrayPointValue,cn=l5e.TEXTPAD;function c5e(e){return e.id}function v5e(e){if(e.ids)return c5e}function ww(e){return(e>0)-(e<0)}function Ho(e,r){return e0}function d5e(e,r,t,a,n,i){var o=r.xaxis,l=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},o5e("bar",s));var f=Pa.makeTraceGroups(a,t,"trace bars").each(function(c){var v=rg.select(this),d=c[0].trace,p=c[0].t,m=d.type==="waterfall",y=d.type==="funnel",x=d.type==="histogram",w=d.type==="bar",_=w||y,b=0;m&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var T=d.orientation==="h",k=qG(n),M=Pa.ensureSingle(v,"g","points"),S=v5e(d),E=M.selectAll("g.point").data(Pa.identity,S);E.enter().append("g").classed("point",!0),E.exit().remove(),E.each(function(P,R){var z=rg.select(this),O=h5e(P,o,l,T),B=O[0][0],V=O[0][1],G=O[1][0],U=O[1][1],Y=(T?V-B:U-G)===0;Y&&_&&Oc.getLineWidth(d,P)&&(Y=!1),Y||(Y=!tg(B)||!tg(V)||!tg(G)||!tg(U)),P.isBlank=Y,Y&&(T?V=B:U=G),b&&!Y&&(T?(B-=Ho(B,V)*b,V+=Ho(B,V)*b):(G-=Ho(G,U)*b,U+=Ho(G,U)*b));var X,Z;if(d.type==="waterfall"){if(!Y){var re=d[P.dir].marker;X=re.line.width,Z=re.color}}else X=Oc.getLineWidth(d,P),Z=P.mc||d.marker.color;function ce(se){var Ae=rg.round(X/2%1,2);return n.gap===0&&n.groupgap===0?rg.round(Math.round(se)-Ae,2):se}function oe(se,Ae,je){return je&&se===Ae?se:Math.abs(se-Ae)>=2?ce(se):se>Ae?Math.ceil(se):Math.floor(se)}var fe=a5e.opacity(Z),K=fe<1||X>.01?ce:oe;e._context.staticPlot||(B=K(B,V,T),V=K(V,B,T),G=K(G,U,!T),U=K(U,G,!T));var Te=T?o.c2p:l.c2p,le;P.s0>0?le=P._sMax:P.s0<0?le=P._sMin:le=P.s1>0?P._sMax:P._sMin;function pe(se,Ae){if(!se)return 0;var je=Math.abs(T?U-G:V-B),ur=Math.abs(T?V-B:U-G),lr=K(Math.abs(Te(le,!0)-Te(0,!0))),ue=P.hasB?Math.min(je/2,ur/2):Math.min(je/2,lr),qe;if(Ae==="%"){var Oe=Math.min(50,se);qe=je*(Oe/100)}else qe=se;return K(Math.max(Math.min(qe,ue),0))}var ie=w||x?pe(p.cornerradiusvalue,p.cornerradiusform):0,ve,W,Q="M"+B+","+G+"V"+U+"H"+V+"V"+G+"Z",j=0;if(ie&&P.s){var ye=ww(P.s0)===0||ww(P.s)===ww(P.s0)?P.s1:P.s0;if(j=K(P.hasB?0:Math.abs(Te(le,!0)-Te(ye,!0))),j0?Math.sqrt(j*(2*ie-j)):0,ze=_e>0?Math.max:Math.min;ve="M"+B+","+G+"V"+(U-Ne*me)+"H"+ze(V-(ie-j)*_e,B)+"A "+ie+","+ie+" 0 0 "+Pe+" "+V+","+(U-ie*me-Re)+"V"+(G+ie*me+Re)+"A "+ie+","+ie+" 0 0 "+Pe+" "+ze(V-(ie-j)*_e,B)+","+(G+Ne*me)+"Z"}else if(P.hasB)ve="M"+(B+ie*_e)+","+G+"A "+ie+","+ie+" 0 0 "+Pe+" "+B+","+(G+ie*me)+"V"+(U-ie*me)+"A "+ie+","+ie+" 0 0 "+Pe+" "+(B+ie*_e)+","+U+"H"+(V-ie*_e)+"A "+ie+","+ie+" 0 0 "+Pe+" "+V+","+(U-ie*me)+"V"+(G+ie*me)+"A "+ie+","+ie+" 0 0 "+Pe+" "+(V-ie*_e)+","+G+"Z";else{W=Math.abs(U-G)+j;var Ge=W0?Math.sqrt(j*(2*ie-j)):0,De=me>0?Math.max:Math.min;ve="M"+(B+Ge*_e)+","+G+"V"+De(U-(ie-j)*me,G)+"A "+ie+","+ie+" 0 0 "+Pe+" "+(B+ie*_e-He)+","+U+"H"+(V-ie*_e+He)+"A "+ie+","+ie+" 0 0 "+Pe+" "+(V-Ge*_e)+","+De(U-(ie-j)*me,G)+"V"+G+"Z"}}else ve=Q}else ve=Q;var Ie=SG(Pa.ensureSingle(z,"path"),s,n,i);if(Ie.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((V-B)*(U-G))||Y&&e._context.staticPlot?"M0,0Z":ve).call(ys.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Be=ys.makePointStyleFns(d);ys.singlePointStyle(P,Ie,d,Be,e)}p5e(e,r,z,c,R,B,V,G,U,ie,j,n,i),r.layerClipId&&ys.hideOutsideRangePoint(P,z.select("text"),o,l,d.xcalendar,d.ycalendar)});var D=d.cliponaxis===!1;ys.setClipUrl(v,D?null:r.layerClipId,e)});n5e.getComponentMethod("errorbars","plot")(e,f,r,n)}function p5e(e,r,t,a,n,i,o,l,s,u,f,c,v){var d=r.xaxis,p=r.yaxis,m=e._fullLayout,y;function x(W,Q,j){var ye=Pa.ensureSingle(W,"text").text(Q).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(ys.font,j).call(t5e.convertToTspans,e);return ye}var w=a[0].trace,_=w.orientation==="h",b=g5e(m,a,n,d,p);y=b5e(w,n);var T=c.mode==="stack"||c.mode==="relative",k=a[n],M=!T||k._outmost,S=k.hasB,E=u&&u-f>cn;if(!b||y==="none"||(k.isBlank||i===o||l===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var D=m.font,P=_w.getBarColor(a[n],w),R=_w.getInsideTextFont(w,n,D,P),z=_w.getOutsideTextFont(w,n,D),O=w.insidetextanchor||"end",B=t.datum();_?d.type==="log"&&B.s0<=0&&(d.range[0]0&&ce>0,K;E?S?K=Ou(U-2*u,Y,re,ce,_)||Ou(U,Y-2*u,re,ce,_):_?K=Ou(U-(u-f),Y,re,ce,_)||Ou(U,Y-2*(u-f),re,ce,_):K=Ou(U,Y-(u-f),re,ce,_)||Ou(U-2*(u-f),Y,re,ce,_):K=Ou(U,Y,re,ce,_),fe&&K?y="inside":(y="outside",X.remove(),X=null)}else y="inside";if(!X){oe=Pa.ensureUniformFontSize(e,y==="outside"?z:R),X=x(t,b,oe);var Te=X.attr("transform");if(X.attr("transform",""),Z=ys.bBox(X.node()),re=Z.width,ce=Z.height,X.attr("transform",Te),re<=0||ce<=0){X.remove();return}}var le=w.textangle,pe,ie;y==="outside"?(ie=w.constraintext==="both"||w.constraintext==="outside",pe=m5e(i,o,l,s,Z,{isHorizontal:_,constrained:ie,angle:le})):(ie=w.constraintext==="both"||w.constraintext==="inside",pe=EG(i,o,l,s,Z,{isHorizontal:_,constrained:ie,angle:le,anchor:O,hasB:S,r:u,overhead:f})),pe.fontSize=oe.size,i5e(w.type==="histogram"?"bar":w.type,pe,m),k.transform=pe;var ve=SG(X,m,c,v);Pa.setTransormAndDisplay(ve,pe)}function Ou(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,o=t<=r&&a<=e,l=n?e>=t*(r/a):r>=a*(e/t);return i||o||l}function LG(e){return e==="auto"?0:e}function CG(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function EG(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",v=i.leftToRight||0,d=(v+1)/2,p=1-d,m=i.hasB,y=i.r,x=i.overhead,w=n.width,_=n.height,b=Math.abs(r-e),T=Math.abs(a-t),k=b>2*cn&&T>2*cn?cn:0;b-=2*k,T-=2*k;var M=LG(s);s==="auto"&&!(w<=b&&_<=T)&&(w>b||_>T)&&(!(w>T||_>b)||w<_!=bcn){var P=y5e(e,r,t,a,S,y,x,o,m);E=P.scale,D=P.pad}else E=1,l&&(E=Math.min(1,b/S.x,T/S.y)),D=0;var R=n.left*p+n.right*d,z=(n.top+n.bottom)/2,O=(e+cn)*p+(r-cn)*d,B=(t+a)/2,V=0,G=0;if(c||f){var U=(o?S.x:S.y)/2;y&&(f||m)&&(k+=D);var Y=o?Ho(e,r):Ho(t,a);o?c?(O=e+Y*k,V=-Y*U):(O=r-Y*k,V=Y*U):c?(B=t+Y*k,G=-Y*U):(B=a-Y*k,G=Y*U)}return{textX:R,textY:z,targetX:O,targetY:B,anchorX:V,anchorY:G,scale:E,rotate:M}}function y5e(e,r,t,a,n,i,o,l,s){var u=Math.max(0,Math.abs(r-e)-2*cn),f=Math.max(0,Math.abs(a-t)-2*cn),c=i-cn,v=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=s?c*2:l?c-o:2*v,p=s?c*2:l?2*v:c-o,m,y,x,w,_;return n.y/n.x>=f/(u-d)?w=f/n.y:n.y/n.x<=(f-p)/u?w=u/n.x:!s&&l?(m=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-c)-n.y*(f/2-c),x=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,w=(-y+Math.sqrt(y*y-4*m*x))/(2*m)):s?(m=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-c)-n.y*(f/2-c),x=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,w=(-y+Math.sqrt(y*y-4*m*x))/(2*m)):(m=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-c)-2*n.y*(f-c),x=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,w=(-y+Math.sqrt(y*y-4*m*x))/(2*m)),w=Math.min(1,w),l?_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*w)/2)*(c-(f-n.y*w)/2)))-o):_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*w)/2)*(c-(u-n.x*w)/2)))-o),{scale:w,pad:_}}function m5e(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),v=Math.abs(a-t),d;o?d=v>2*cn?cn:0:d=c>2*cn?cn:0;var p=1;l&&(p=o?Math.min(1,v/f):Math.min(1,c/u));var m=LG(s),y=CG(n,m),x=(o?y.x:y.y)/2,w=(n.left+n.right)/2,_=(n.top+n.bottom)/2,b=(e+r)/2,T=(t+a)/2,k=0,M=0,S=o?Ho(r,e):Ho(t,a);return o?(b=r-S*d,k=S*x):(T=a+S*d,M=-S*x),{textX:w,textY:_,targetX:b,targetY:T,anchorX:k,anchorY:M,scale:p,rotate:m}}function g5e(e,r,t,a,n){var i=r[0].trace,o=i.texttemplate,l;return o?l=x5e(e,r,t,a,n):i.textinfo?l=_5e(r,t,a,n):l=Oc.getValue(i.text,t),Oc.coerceString(s5e,l)}function b5e(e,r){var t=Oc.getValue(e.textposition,r);return Oc.coerceEnumerated(u5e,t)}function x5e(e,r,t,a,n){var i=r[0].trace,o=Pa.castOption(i,t,"texttemplate");if(!o)return"";var l=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,v,d,p;f?(c="y",v=n,d="x",p=a):(c="x",v=a,d="y",p=n);function m(k){return ag(v,v.c2l(k),!0).text}function y(k){return ag(p,p.c2l(k),!0).text}var x=r[t],w={};w.label=x.p,w.labelLabel=w[c+"Label"]=m(x.p);var _=Pa.castOption(i,x.i,"text");(_===0||_)&&(w.text=_),w.value=x.s,w.valueLabel=w[d+"Label"]=y(x.s);var b={};f5e(b,i,x.i),(l||b.x===void 0)&&(b.x=f?w.value:w.label),(l||b.y===void 0)&&(b.y=f?w.label:w.value),(l||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(l||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),s&&(w.delta=+x.rawS||x.s,w.deltaLabel=y(w.delta),w.final=x.v,w.finalLabel=y(w.final),w.initial=w.final-w.delta,w.initialLabel=y(w.initial)),u&&(w.value=x.s,w.valueLabel=y(w.value),w.percentInitial=x.begR,w.percentInitialLabel=Pa.formatPercent(x.begR),w.percentPrevious=x.difR,w.percentPreviousLabel=Pa.formatPercent(x.difR),w.percentTotal=x.sumR,w.percenTotalLabel=Pa.formatPercent(x.sumR));var T=Pa.castOption(i,x.i,"customdata");return T&&(w.customdata=T),Pa.texttemplateString(o,w,e._d3locale,b,w,i._meta||{})}function _5e(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",o=n.type==="waterfall",l=n.type==="funnel";function s(T){var k=i?a:t;return ag(k,T,!0).text}function u(T){var k=i?t:a;return ag(k,+T,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),d=[],p,m=function(T){return v.indexOf(T)!==-1};if(m("label")&&d.push(s(e[r].p)),m("text")&&(p=Pa.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),o){var y=+c.rawS||c.s,x=c.v,w=x-y;m("initial")&&d.push(u(w)),m("delta")&&d.push(u(y)),m("final")&&d.push(u(x))}if(l){m("value")&&d.push(u(c.s));var _=0;m("percent initial")&&_++,m("percent previous")&&_++,m("percent total")&&_++;var b=_>1;m("percent initial")&&(p=Pa.formatPercent(c.begR),b&&(p+=" of initial"),d.push(p)),m("percent previous")&&(p=Pa.formatPercent(c.difR),b&&(p+=" of previous"),d.push(p)),m("percent total")&&(p=Pa.formatPercent(c.sumR),b&&(p+=" of total"),d.push(p))}return d.join("
")}DG.exports={plot:d5e,toMoveInsideBar:EG}});var Mw=N((GNe,NG)=>{"use strict";var S0=Pn(),w5e=gr(),RG=Tr(),T5e=Ce().fillText,A5e=eg().getLineWidth,Aw=Ir().hoverLabelText,M5e=Nt().BADNUM;function k5e(e,r,t,a,n){var i=PG(e,r,t,a,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=FG(l,s),w5e.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function PG(e,r,t,a,n){var i=e.cd,o=i[0].trace,l=i[0].t,s=a==="closest",u=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,v,d,p,m,y,x,w;o.orientation==="h"?(v=t,d=r,p="y",m="x",y=B,x=R):(v=r,d=t,p="x",m="y",x=B,y=R);var _=o[p+"period"],b=s||_;function T(K){return M(K,-1)}function k(K){return M(K,1)}function M(K,Te){var le=K.w;return K[p]+Te*le/2}function S(K){return K[p+"End"]-K[p+"Start"]}var E=s?T:_?function(K){return K.p-S(K)/2}:function(K){return Math.min(T(K),K.p-l.bardelta/2)},D=s?k:_?function(K){return K.p+S(K)/2}:function(K){return Math.max(k(K),K.p+l.bardelta/2)};function P(K,Te,le){return n.finiteRange&&(le=0),S0.inbox(K-v,Te-v,le+Math.min(1,Math.abs(Te-K)/w)-1)}function R(K){return P(E(K),D(K),f)}function z(K){return P(T(K),k(K),c)}function O(K){var Te=K[m];if(u){var le=Math.abs(K.rawS)||0;d>0?Te+=le:d<0&&(Te-=le)}return Te}function B(K){var Te=d,le=K.b,pe=O(K);return S0.inbox(le-Te,pe-Te,f+(pe-Te)/(pe-le)-1)}function V(K){var Te=d,le=K.b,pe=O(K);return S0.inbox(le-Te,pe-Te,c+(pe-Te)/(pe-le)-1)}var G=e[p+"a"],U=e[m+"a"];w=Math.abs(G.r2c(G.range[1])-G.r2c(G.range[0]));function Y(K){return(y(K)+x(K))/2}var X=S0.getDistanceFunction(a,y,x,Y);if(S0.getClosest(i,X,e),e.index!==!1&&i[e.index].p!==M5e){b||(E=function(K){return Math.min(T(K),K.p-l.bargroupwidth/2)},D=function(K){return Math.max(k(K),K.p+l.bargroupwidth/2)});var Z=e.index,re=i[Z],ce=o.base?re.b+re.s:re.s;e[m+"0"]=e[m+"1"]=U.c2p(re[m],!0),e[m+"LabelVal"]=ce;var oe=l.extents[l.extents.round(re.p)];e[p+"0"]=G.c2p(s?E(re):oe[0],!0),e[p+"1"]=G.c2p(s?D(re):oe[1],!0);var fe=re.orig_p!==void 0;return e[p+"LabelVal"]=fe?re.orig_p:re.p,e.labelLabel=Aw(G,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=Aw(U,e[m+"LabelVal"],o[m+"hoverformat"]),e.baseLabel=Aw(U,re.b,o[m+"hoverformat"]),e.spikeDistance=(V(re)+z(re))/2,e[p+"Spike"]=G.c2p(re.p,!0),T5e(re,o,e),e.hovertemplate=o.hovertemplate,e}}function FG(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=A5e(e,r);if(RG.opacity(t))return t;if(RG.opacity(a)&&n)return a}NG.exports={hoverPoints:k5e,hoverOnBars:PG,getTraceColor:FG}});var IG=N((YNe,zG)=>{"use strict";zG.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var kw=N((VNe,OG)=>{"use strict";OG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=a[0].trace,l=o.type==="funnel",s=o.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";BG.exports={attributes:Nu(),layoutAttributes:$m(),supplyDefaults:zu().supplyDefaults,crossTraceDefaults:zu().crossTraceDefaults,supplyLayoutDefaults:gw(),calc:fG(),crossTraceCalc:vm().crossTraceCalc,colorbar:u0(),arraysToCalcdata:Qm(),plot:Tw().plot,style:Ic().style,styleOnSelect:Ic().styleOnSelect,hoverPoints:Mw().hoverPoints,eventData:IG(),selectPoints:kw(),moduleType:"trace",name:"bar",basePlotModule:qi(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var GG=N((jNe,UG)=>{"use strict";UG.exports=HG()});var ng=N((ZNe,jG)=>{"use strict";var q5e=Dy(),Ci=wi(),YG=Nu(),L5e=si(),VG=Qi().axisHoverFormat,C5e=Ta().hovertemplateAttrs,_l=xt().extendFlat,Bc=Ci.marker,WG=Bc.line;jG.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:Ci.xperiod,yperiod:Ci.yperiod,xperiod0:Ci.xperiod0,yperiod0:Ci.yperiod0,xperiodalignment:Ci.xperiodalignment,yperiodalignment:Ci.yperiodalignment,xhoverformat:VG("x"),yhoverformat:VG("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:_l({},Bc.symbol,{arrayOk:!1,editType:"plot"}),opacity:_l({},Bc.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:_l({},Bc.angle,{arrayOk:!1,editType:"calc"}),size:_l({},Bc.size,{arrayOk:!1,editType:"calc"}),color:_l({},Bc.color,{arrayOk:!1,editType:"style"}),line:{color:_l({},WG.color,{arrayOk:!1,dflt:L5e.defaultLine,editType:"style"}),width:_l({},WG.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:q5e(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:YG.offsetgroup,alignmentgroup:YG.alignmentgroup,selected:{marker:Ci.selected.marker,editType:"style"},unselected:{marker:Ci.unselected.marker,editType:"style"},text:_l({},Ci.text,{}),hovertext:_l({},Ci.hovertext,{}),hovertemplate:C5e({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:Ci.zorder}});var ig=N((XNe,ZG)=>{"use strict";ZG.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var L0=N((JNe,KG)=>{"use strict";var Ei=Ce(),E5e=gr(),D5e=Tr(),R5e=pc(),P5e=n0(),XG=w1(),q0=ng();function F5e(e,r,t,a){function n(p,m){return Ei.coerce(e,r,q0,p,m)}if(JG(e,r,n,a),r.visible!==!1){R5e(e,r,a,n),n("xhoverformat"),n("yhoverformat");var i=r._hasPreCompStats;i&&(n("lowerfence"),n("upperfence")),n("line.color",(e.marker||{}).color||t),n("line.width"),n("fillcolor",D5e.addOpacity(r.line.color,.5));var o=!1;if(i){var l=n("mean"),s=n("sd");l&&l.length&&(o=!0,s&&s.length&&(o="sd"))}n("whiskerwidth");var u=n("sizemode"),f;u==="quartiles"&&(f=n("boxmean",o)),n("showwhiskers",u==="quartiles"),(u==="sd"||f==="sd")&&n("sdmultiple"),n("width"),n("quartilemethod");var c=!1;if(i){var v=n("notchspan");v&&v.length&&(c=!0)}else Ei.validate(e.notchwidth,q0.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),$G(e,r,n,{prefix:"box"}),n("zorder")}}function JG(e,r,t,a){function n(D){var P=0;return D&&D.length&&(P+=1,Ei.isArrayOrTypedArray(D[0])&&D[0].length&&(P+=1)),P}function i(D){return Ei.validate(e[D],q0[D])}var o=t("y"),l=t("x"),s;if(r.type==="box"){var u=t("q1"),f=t("median"),c=t("q3");r._hasPreCompStats=u&&u.length&&f&&f.length&&c&&c.length,s=Math.min(Ei.minRowLength(u),Ei.minRowLength(f),Ei.minRowLength(c))}var v=n(o),d=n(l),p=v&&Ei.minRowLength(o),m=d&&Ei.minRowLength(l),y=a.calendar,x={autotypenumbers:a.autotypenumbers},w,_;if(r._hasPreCompStats)switch(String(d)+String(v)){case"00":var b=i("x0")||i("dx"),T=i("y0")||i("dy");T&&!b?w="h":w="v",_=s;break;case"10":w="v",_=Math.min(s,m);break;case"20":w="h",_=Math.min(s,l.length);break;case"01":w="h",_=Math.min(s,p);break;case"02":w="v",_=Math.min(s,o.length);break;case"12":w="v",_=Math.min(s,m,o.length);break;case"21":w="h",_=Math.min(s,l.length,p);break;case"11":_=0;break;case"22":var k=!1,M;for(M=0;M0?(w="v",d>0?_=Math.min(m,p):_=Math.min(p)):d>0?(w="h",_=Math.min(m)):_=0;if(!_){r.visible=!1;return}r._length=_;var S=t("orientation",w);r._hasPreCompStats?S==="v"&&d===0?(t("x0",0),t("dx",1)):S==="h"&&v===0&&(t("y0",0),t("dy",1)):S==="v"&&d===0?t("x0"):S==="h"&&v===0&&t("y0");var E=E5e.getComponentMethod("calendars","handleTraceDefaults");E(e,r,["x","y"],a)}function $G(e,r,t,a){var n=a.prefix,i=Ei.coerce2(e,r,q0,"marker.outliercolor"),o=t("marker.line.outliercolor"),l="outliers";r._hasPreCompStats?l="all":(i||o)&&(l="suspectedoutliers");var s=t(n+"points",l);s?(t("jitter",s==="all"?.3:0),t("pointpos",s==="all"?-1.5:0),t("marker.symbol"),t("marker.opacity"),t("marker.size"),t("marker.angle"),t("marker.color",r.line.color),t("marker.line.color"),t("marker.line.width"),s==="suspectedoutliers"&&(t("marker.line.outliercolor",r.marker.color),t("marker.line.outlierwidth")),t("selected.marker.color"),t("unselected.marker.color"),t("selected.marker.size"),t("unselected.marker.size"),t("text"),t("hovertext")):delete r.marker;var u=t("hoveron");(u==="all"||u.indexOf("points")!==-1)&&t("hovertemplate"),Ei.coerceSelectionMarkerOpacity(r,t)}function N5e(e,r){var t,a;function n(s){return Ei.coerce(a._input,a,q0,s)}for(var i=0;i{"use strict";var z5e=gr(),I5e=Ce(),O5e=ig();function QG(e,r,t,a,n){for(var i=n+"Layout",o=!1,l=0;l{"use strict";var Lw=Rr(),og=Ir(),H5e=mc(),na=Ce(),ti=Nt().BADNUM,wl=na._;uY.exports=function(r,t){var a=r._fullLayout,n=og.getFromId(r,t.xaxis||"x"),i=og.getFromId(r,t.yaxis||"y"),o=[],l=t.type==="violin"?"_numViolins":"_numBoxes",s,u,f,c,v,d,p;t.orientation==="h"?(f=n,c="x",v=i,d="y",p=!!t.yperiodalignment):(f=i,c="y",v=n,d="x",p=!!t.xperiodalignment);var m=U5e(t,d,v,a[l]),y=m[0],x=m[1],w=na.distinctVals(y,v),_=w.vals,b=w.minDiff/2,T,k,M,S,E,D,P=(t.boxpoints||t.points)==="all"?na.identity:function(Pe){return Pe.vT.uf};if(t._hasPreCompStats){var R=t[c],z=function(Pe){return f.d2c((t[Pe]||[])[s])},O=1/0,B=-1/0;for(s=0;s=T.q1&&T.q3>=T.med){var G=z("lowerfence");T.lf=G!==ti&&G<=T.q1?G:nY(T,M,S);var U=z("upperfence");T.uf=U!==ti&&U>=T.q3?U:iY(T,M,S);var Y=z("mean");T.mean=Y!==ti?Y:S?na.mean(M,S):(T.q1+T.q3)/2;var X=z("sd");T.sd=Y!==ti&&X>=0?X:S?na.stdev(M,S,T.mean):T.q3-T.q1,T.lo=oY(T),T.uo=lY(T);var Z=z("notchspan");Z=Z!==ti&&Z>0?Z:sY(T,S),T.ln=T.med-Z,T.un=T.med+Z;var re=T.lf,ce=T.uf;t.boxpoints&&M.length&&(re=Math.min(re,M[0]),ce=Math.max(ce,M[S-1])),t.notched&&(re=Math.min(re,T.ln),ce=Math.max(ce,T.un)),T.min=re,T.max=ce}else{na.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+T.q1,"median = "+T.med,"q3 = "+T.q3].join(` -`));var oe;T.med!==ti?oe=T.med:T.q1!==ti?T.q3!==ti?oe=(T.q1+T.q3)/2:oe=T.q1:T.q3!==ti?oe=T.q3:oe=0,T.med=oe,T.q1=T.q3=oe,T.lf=T.uf=oe,T.mean=T.sd=oe,T.ln=T.un=oe,T.min=T.max=oe}O=Math.min(O,T.min),B=Math.max(B,T.max),T.pts2=k.filter(P),o.push(T)}}t._extremes[f._id]=og.findExtremes(f,[O,B],{padded:!0})}else{var fe=f.makeCalcdata(t,c),K=G5e(_,b),Te=_.length,le=Y5e(Te);for(s=0;s=0&&pe0){if(T={},T.pos=T[d]=_[s],k=T.pts=le[s].sort(tY),M=T[c]=k.map(aY),S=M.length,T.min=M[0],T.max=M[S-1],T.mean=na.mean(M,S),T.sd=na.stdev(M,S,T.mean)*t.sdmultiple,T.med=na.interp(M,.5),S%2&&(Q||j)){var ye,_e;Q?(ye=M.slice(0,S/2),_e=M.slice(S/2+1)):j&&(ye=M.slice(0,S/2+1),_e=M.slice(S/2)),T.q1=na.interp(ye,.5),T.q3=na.interp(_e,.5)}else T.q1=na.interp(M,.25),T.q3=na.interp(M,.75);T.lf=nY(T,M,S),T.uf=iY(T,M,S),T.lo=oY(T),T.uo=lY(T);var me=sY(T,S);T.ln=T.med-me,T.un=T.med+me,ie=Math.min(ie,T.ln),ve=Math.max(ve,T.un),T.pts2=k.filter(P),o.push(T)}t.notched&&na.isTypedArray(fe)&&(fe=Array.from(fe)),t._extremes[f._id]=og.findExtremes(f,t.notched?fe.concat([ie,ve]):fe,{padded:!0})}return V5e(o,t),o.length>0?(o[0].t={num:a[l],dPos:b,posLetter:d,valLetter:c,labels:{med:wl(r,"median:"),min:wl(r,"min:"),q1:wl(r,"q1:"),q3:wl(r,"q3:"),max:wl(r,"max:"),mean:t.boxmean==="sd"||t.sizemode==="sd"?wl(r,"mean \xB1 \u03C3:").replace("\u03C3",t.sdmultiple===1?"\u03C3":t.sdmultiple+"\u03C3"):wl(r,"mean:"),lf:wl(r,"lower fence:"),uf:wl(r,"upper fence:")}},a[l]++,o):[{t:{empty:!0}}]};function U5e(e,r,t,a){var n=r in e,i=r+"0"in e,o="d"+r in e;if(n||i&&o){var l=t.makeCalcdata(e,r),s=H5e(e,t,r,l).vals;return[s,l]}var u;i?u=e[r+"0"]:"name"in e&&(t.type==="category"||Lw(e.name)&&["linear","log"].indexOf(t.type)!==-1||na.isDateTime(e.name)&&t.type==="date")?u=e.name:u=a;for(var f=t.type==="multicategory"?t.r2c_just_indices(u):t.d2c(u,0,e[r+"calendar"]),c=e._length,v=new Array(c),d=0;d{"use strict";var fY=Ir(),W5e=Ce(),j5e=Tu().getAxisGroup,cY=["v","h"];function Z5e(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,w=1-i[e+"gap"],_=1-i[e+"groupgap"];for(s=0;s0;if(M==="positive"?(U=S*(k?1:.5),Z=X,Y=Z=D):M==="negative"?(U=Z=D,Y=S*(k?1:.5),re=X):(U=Y=S,Z=re=X),le){var pe=b.pointpos,ie=b.jitter,ve=b.marker.size/2,W=0;pe+ie>=0&&(W=X*(pe+ie),W>U?(Te=!0,fe=ve,ce=W):W>Z&&(fe=ve,ce=U)),W<=U&&(ce=U);var Q=0;pe-ie<=0&&(Q=-X*(pe-ie),Q>Y?(Te=!0,K=ve,oe=Q):Q>re&&(K=ve,oe=Y)),Q<=Y&&(oe=Y)}else ce=U,oe=Y;var j=new Array(f.length);for(u=0;u{"use strict";var Hc=Sr(),Bu=Ce(),X5e=Wr(),dY=5,J5e=.01;function $5e(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,o=r.yaxis;Bu.makeTraceGroups(a,t,"trace boxes").each(function(l){var s=Hc.select(this),u=l[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var v,d;c.orientation==="h"?(v=o,d=i):(v=i,d=o),pY(s,{pos:v,val:d},c,f,n),yY(s,{x:i,y:o},c,f),mY(s,{pos:v,val:d},c,f)})}function pY(e,r,t,a,n){var i=t.orientation==="h",o=r.val,l=r.pos,s=!!l.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,v=t.whiskerwidth||0,d=t.showwhiskers!==!1,p=t.notched||!1,m=p?1-2*t.notchwidth:1,y,x;Array.isArray(a.bdPos)?(y=a.bdPos[0],x=a.bdPos[1]):(y=a.bdPos,x=a.bdPos);var w=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Bu.identity:[]);w.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),w.exit().remove(),w.each(function(_){if(_.empty)return Hc.select(this).attr("d","M0,0Z");var b=l.c2l(_.pos+u,!0),T=l.l2p(b-y)+c,k=l.l2p(b+x)+c,M=s?(T+k)/2:l.l2p(b)+c,S=t.whiskerwidth,E=s?T*S+(1-S)*M:l.l2p(b-f)+c,D=s?k*S+(1-S)*M:l.l2p(b+f)+c,P=l.l2p(b-y*m)+c,R=l.l2p(b+x*m)+c,z=t.sizemode==="sd",O=o.c2p(z?_.mean-_.sd:_.q1,!0),B=z?o.c2p(_.mean+_.sd,!0):o.c2p(_.q3,!0),V=Bu.constrain(z?o.c2p(_.mean,!0):o.c2p(_.med,!0),Math.min(O,B)+1,Math.max(O,B)-1),G=_.lf===void 0||t.boxpoints===!1||z,U=o.c2p(G?_.min:_.lf,!0),Y=o.c2p(G?_.max:_.uf,!0),X=o.c2p(_.ln,!0),Z=o.c2p(_.un,!0);i?Hc.select(this).attr("d","M"+V+","+P+"V"+R+"M"+O+","+T+"V"+k+(p?"H"+X+"L"+V+","+R+"L"+Z+","+k:"")+"H"+B+"V"+T+(p?"H"+Z+"L"+V+","+P+"L"+X+","+T:"")+"Z"+(d?"M"+O+","+M+"H"+U+"M"+B+","+M+"H"+Y+(v===0?"":"M"+U+","+E+"V"+D+"M"+Y+","+E+"V"+D):"")):Hc.select(this).attr("d","M"+P+","+V+"H"+R+"M"+T+","+O+"H"+k+(p?"V"+X+"L"+R+","+V+"L"+k+","+Z:"")+"V"+B+"H"+T+(p?"V"+Z+"L"+P+","+V+"L"+T+","+X:"")+"Z"+(d?"M"+M+","+O+"V"+U+"M"+M+","+B+"V"+Y+(v===0?"":"M"+E+","+U+"H"+D+"M"+E+","+Y+"H"+D):""))})}function yY(e,r,t,a){var n=r.x,i=r.y,o=a.bdPos,l=a.bPos,s=t.boxpoints||t.points;Bu.seedPseudoRandom();var u=function(v){return v.forEach(function(d){d.t=a,d.trace=t}),v},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(v){var d,p=v.pts2,m=Math.max((v.max-v.min)/10,v.q3-v.q1),y=m*1e-9,x=m*J5e,w=[],_=0,b;if(t.jitter){if(m===0)for(_=1,w=new Array(p.length),d=0;dv.lo&&(D.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(X5e.translatePoints,n,i)}function mY(e,r,t,a){var n=r.val,i=r.pos,o=!!i.rangebreaks,l=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var v=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Bu.identity:[]);v.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),v.exit().remove(),v.each(function(d){var p=i.c2l(d.pos+l,!0),m=i.l2p(p-f)+s,y=i.l2p(p+c)+s,x=o?(m+y)/2:i.l2p(p)+s,w=n.c2p(d.mean,!0),_=n.c2p(d.mean-d.sd,!0),b=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?Hc.select(this).attr("d","M"+w+","+m+"V"+y+(u==="sd"?"m0,0L"+_+","+x+"L"+w+","+m+"L"+b+","+x+"Z":"")):Hc.select(this).attr("d","M"+m+","+w+"H"+y+(u==="sd"?"m0,0L"+x+","+_+"L"+m+","+w+"L"+x+","+b+"Z":""))})}gY.exports={plot:$5e,plotBoxAndWhiskers:pY,plotPoints:yY,plotBoxMean:mY}});var Nw=N((rze,bY)=>{"use strict";var Rw=Sr(),Pw=Tr(),Fw=Wr();function K5e(e,r,t){var a=t||Rw.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=Rw.select(this),o=n[0].trace,l=o.line.width;function s(c,v,d,p){c.style("stroke-width",v+"px").call(Pw.stroke,d).call(Pw.fill,p)}var u=i.selectAll("path.box");if(o.type==="candlestick")u.each(function(c){if(!c.empty){var v=Rw.select(this),d=o[c.dir];s(v,d.line.width,d.line.color,d.fillcolor),v.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{s(u,l,o.line.color,o.fillcolor),i.selectAll("path.mean").style({"stroke-width":l,"stroke-dasharray":2*l+"px,"+l+"px"}).call(Pw.stroke,o.line.color);var f=i.selectAll("path.point");Fw.pointStyle(f,o,e)}})}function Q5e(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?Fw.selectedPointStyle(n,a):Fw.pointStyle(n,a,e)}bY.exports={style:K5e,styleOnSelect:Q5e}});var Iw=N((tze,TY)=>{"use strict";var e_e=Ir(),zw=Ce(),ms=Pn(),xY=Tr(),r_e=zw.fillText;function t_e(e,r,t,a){var n=e.cd,i=n[0].trace,o=i.hoveron,l=[],s;return o.indexOf("boxes")!==-1&&(l=l.concat(_Y(e,r,t,a))),o.indexOf("points")!==-1&&(s=wY(e,r,t)),a==="closest"?s?[s]:l:(s&&l.push(s),l)}function _Y(e,r,t,a){var n=e.cd,i=e.xa,o=e.ya,l=n[0].trace,s=n[0].t,u=l.type==="violin",f,c,v,d,p,m,y,x,w,_,b,T=s.bdPos,k,M,S=s.wHover,E=function(ve){return v.c2l(ve.pos)+s.bPos-v.c2l(m)};u&&l.side!=="both"?(l.side==="positive"&&(w=function(ve){var W=E(ve);return ms.inbox(W,W+S,_)},k=T,M=0),l.side==="negative"&&(w=function(ve){var W=E(ve);return ms.inbox(W-S,W,_)},k=0,M=T)):(w=function(ve){var W=E(ve);return ms.inbox(W-S,W+S,_)},k=M=T);var D;u?D=function(ve){return ms.inbox(ve.span[0]-p,ve.span[1]-p,_)}:D=function(ve){return ms.inbox(ve.min-p,ve.max-p,_)},l.orientation==="h"?(p=r,m=t,y=D,x=w,f="y",v=o,c="x",d=i):(p=t,m=r,y=w,x=D,f="x",v=i,c="y",d=o);var P=Math.min(1,T/Math.abs(v.r2c(v.range[1])-v.r2c(v.range[0])));_=e.maxHoverDistance-P,b=e.maxSpikeDistance-P;function R(ve){return(y(ve)+x(ve))/2}var z=ms.getDistanceFunction(a,y,x,R);if(ms.getClosest(n,z,e),e.index===!1)return[];var O=n[e.index],B=l.line.color,V=(l.marker||{}).color;xY.opacity(B)&&l.line.width?e.color=B:xY.opacity(V)&&l.boxpoints?e.color=V:e.color=l.fillcolor,e[f+"0"]=v.c2p(O.pos+s.bPos-M,!0),e[f+"1"]=v.c2p(O.pos+s.bPos+k,!0),e[f+"LabelVal"]=O.orig_p!==void 0?O.orig_p:O.pos;var G=f+"Spike";e.spikeDistance=R(O)*b/_,e[G]=v.c2p(O.pos,!0);var U=l.boxmean||l.sizemode==="sd"||(l.meanline||{}).visible,Y=l.boxpoints||l.points,X=Y&&U?["max","uf","q3","med","mean","q1","lf","min"]:Y&&!U?["max","uf","q3","med","q1","lf","min"]:!Y&&U?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],Z=d.range[1]{"use strict";AY.exports=function(r,t){return t.hoverOnBox&&(r.hoverOnBox=t.hoverOnBox),"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var Ow=N((nze,kY)=>{"use strict";kY.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,s;if(t===!1)for(l=0;l{"use strict";SY.exports={attributes:ng(),layoutAttributes:ig(),supplyDefaults:L0().supplyDefaults,crossTraceDefaults:L0().crossTraceDefaults,supplyLayoutDefaults:Sw().supplyLayoutDefaults,calc:Cw(),crossTraceCalc:Ew().crossTraceCalc,plot:Dw().plot,style:Nw().style,styleOnSelect:Nw().styleOnSelect,hoverPoints:Iw().hoverPoints,eventData:MY(),selectPoints:Ow(),moduleType:"trace",name:"box",basePlotModule:qi(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var CY=N((oze,LY)=>{"use strict";LY.exports=qY()});var C0=N((lze,EY)=>{"use strict";var ai=wi(),a_e=mn(),n_e=da(),Bw=Qi().axisHoverFormat,i_e=Ta().hovertemplateAttrs,o_e=Ta().texttemplateAttrs,l_e=ko(),Bn=xt().extendFlat;EY.exports=Bn({z:{valType:"data_array",editType:"calc"},x:Bn({},ai.x,{impliedEdits:{xtype:"array"}}),x0:Bn({},ai.x0,{impliedEdits:{xtype:"scaled"}}),dx:Bn({},ai.dx,{impliedEdits:{xtype:"scaled"}}),y:Bn({},ai.y,{impliedEdits:{ytype:"array"}}),y0:Bn({},ai.y0,{impliedEdits:{ytype:"scaled"}}),dy:Bn({},ai.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Bn({},ai.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Bn({},ai.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Bn({},ai.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Bn({},ai.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Bn({},ai.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Bn({},ai.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:Bw("x"),yhoverformat:Bw("y"),zhoverformat:Bw("z",1),hovertemplate:i_e(),texttemplate:o_e({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:n_e({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Bn({},a_e.showlegend,{dflt:!1}),zorder:ai.zorder},l_e("",{cLetter:"z",autoColorDflt:!1}))});var Hw=N((sze,RY)=>{"use strict";var s_e=Rr(),lg=Ce(),u_e=gr();RY.exports=function(r,t,a,n,i,o){var l=a("z");i=i||"x",o=o||"y";var s,u;if(l===void 0||!l.length)return 0;if(lg.isArray1D(l)){s=a(i),u=a(o);var f=lg.minRowLength(s),c=lg.minRowLength(u);if(f===0||c===0)return 0;t._length=Math.min(f,c,l.length)}else{if(s=DY(i,a),u=DY(o,a),!f_e(l))return 0;a("transpose"),t._length=null}var v=u_e.getComponentMethod("calendars","handleTraceDefaults");return v(r,t,[i,o],n),!0};function DY(e,r){var t=r(e),a=t?r(e+"type","array"):"scaled";return a==="scaled"&&(r(e+"0"),r("d"+e)),t}function f_e(e){for(var r=!0,t=!1,a=!1,n,i=0;i0&&(t=!0);for(var o=0;o{"use strict";var PY=Ce();FY.exports=function(r,t){r("texttemplate");var a=PY.extendFlat({},t.font,{color:"auto",size:"auto"});PY.coerceFont(r,"textfont",a)}});var Uw=N((fze,NY)=>{"use strict";NY.exports=function(r,t,a){var n=a("zsmooth");n===!1&&(a("xgap"),a("ygap")),a("zhoverformat")}});var OY=N((cze,IY)=>{"use strict";var zY=Ce(),c_e=Hw(),v_e=E0(),h_e=pc(),d_e=Uw(),p_e=ul(),y_e=C0();IY.exports=function(r,t,a,n){function i(l,s){return zY.coerce(r,t,y_e,l,s)}var o=c_e(r,t,i,n);if(!o){t.visible=!1;return}h_e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hovertemplate"),v_e(i,n),d_e(r,t,i,n),i("hoverongaps"),i("connectgaps",zY.isArray1D(t.z)&&t.zsmooth!==!1),p_e(r,t,n,i,{prefix:"",cLetter:"z"}),i("zorder")}});var Gw=N((vze,BY)=>{"use strict";var Uc=Rr();BY.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Uc(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Uc(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Uc(n))if(n=Number(n),Uc(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if(Uc(n))if(n=Number(n),Uc(t[e])){if(t[e]{"use strict";HY.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";UY.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Gc=Nt(),Hu=Gc.ONEAVGYEAR,GY=Gc.ONEAVGMONTH,ug=Gc.ONEDAY,YY=Gc.ONEHOUR,VY=Gc.ONEMIN,WY=Gc.ONESEC,jY=Ir().tickIncrement;JY.exports=function(r,t,a,n,i){var o=-1.1*t,l=-.1*t,s=r-l,u=a[0],f=a[1],c=Math.min(sg(u+l,u+s,n,i),sg(f+l,f+s,n,i)),v=Math.min(sg(u+o,u+l,n,i),sg(f+o,f+l,n,i)),d,p;if(c>v&&vug){var m=d===Hu?1:6,y=d===Hu?"M12":"M1";return function(x,w){var _=n.c2d(x,Hu,i),b=_.indexOf("-",m);b>0&&(_=_.substr(0,b));var T=n.d2c(_,0,i);if(TWY?e>ug?e>Hu*1.1?Hu:e>GY*1.1?GY:ug:e>YY?YY:e>VY?VY:WY:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function m_e(e,r,t,a,n,i){if(a&&e>ug){var o=XY(r,n,i),l=XY(t,n,i),s=e===Hu?0:1;return o[s]!==l[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function XY(e,r,t){var a=r.c2d(e,Hu,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var Xw=N((yze,rV)=>{"use strict";var jw=Rr(),vn=Ce(),$Y=gr(),Di=Ir(),{hasColorscale:KY}=jn(),QY=Uf(),g_e=Qm(),eV=Gw(),b_e=Yw(),x_e=Vw(),__e=Ww();function w_e(e,r){var t=[],a=[],n=r.orientation==="h",i=Di.getFromId(e,n?r.yaxis:r.xaxis),o=n?"y":"x",l={x:"y",y:"x"}[o],s=r[o+"calendar"],u=r.cumulative,f,c=Zw(e,r,i,o),v=c[0],d=c[1],p=typeof v.size=="string",m=[],y=p?m:v,x=[],w=[],_=[],b=0,T=r.histnorm,k=r.histfunc,M=T.indexOf("density")!==-1,S,E,D;u.enabled&&M&&(T=T.replace(/ ?density$/,""),M=!1);var P=k==="max"||k==="min",R=P?null:0,z=eV.count,O=b_e[T],B=!1,V=function(W){return i.r2c(W,0,s)},G;for(vn.isArrayOrTypedArray(r[l])&&k!=="count"&&(G=r[l],B=k==="avg",z=eV[k]),f=V(v.start),E=V(v.end)+(f-Di.tickIncrement(f,v.size,!1,s))/1e6;f=0&&D=pe;f--)if(a[f]){ie=f;break}for(f=pe;f<=ie;f++)if(jw(t[f])&&jw(a[f])){var ve={p:t[f],s:a[f],b:0};u.enabled||(ve.pts=_[f],Z?ve.ph0=ve.ph1=_[f].length?d[_[f][0]]:t[f]:(r._computePh=!0,ve.ph0=K(m[f]),ve.ph1=K(m[f+1],!0))),le.push(ve)}return le.length===1&&(le[0].width1=Di.tickIncrement(le[0].p,v.size,!1,s)-le[0].p),KY(r,"marker")&&QY(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),KY(r,"marker.line")&&QY(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),g_e(le,r),vn.isArrayOrTypedArray(r.selectedpoints)&&vn.tagSelected(le,r,oe),le}function Zw(e,r,t,a,n){var i=a+"bins",o=e._fullLayout,l=r["_"+a+"bingroup"],s=o._histogramBinOpts[l],u=o.barmode==="overlay",f,c,v,d,p,m,y,x=function(fe){return t.r2c(fe,0,d)},w=function(fe){return t.c2r(fe,0,d)},_=t.type==="date"?function(fe){return fe||fe===0?vn.cleanDate(fe,null,d):null}:function(fe){return jw(fe)?Number(fe):null};function b(fe,K,Te){K[fe+"Found"]?(K[fe]=_(K[fe]),K[fe]===null&&(K[fe]=Te[fe])):(m[fe]=K[fe]=Te[fe],vn.nestedProperty(c[0],i+"."+fe).set(Te[fe]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var T=[],k=!0,M=!1,S=!1;for(f=0;ft.r2l(G)&&(Y=Di.tickIncrement(Y,s.size,!0,d)),z.start=t.l2r(Y),V||vn.nestedProperty(r,i+".start").set(z.start)}var X=s.end,Z=t.r2l(R.end),re=Z!==void 0;if((s.endFound||re)&&Z!==t.r2l(X)){var ce=re?Z:vn.aggNums(Math.max,null,p);z.end=t.l2r(ce),re||vn.nestedProperty(r,i+".start").set(z.end)}var oe="autobin"+a;return r._input[oe]===!1&&(r._input[i]=vn.extendFlat({},r[i]||{}),delete r._input[oe],delete r[oe]),[z,p]}function T_e(e,r,t,a,n){var i=e._fullLayout,o=A_e(e,r),l=!1,s=1/0,u=[r],f,c,v;for(f=0;f=0;a--)l(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}rV.exports={calc:w_e,calcAllAutoBins:Zw}});var uV=N((mze,sV)=>{"use strict";var tV=Ce(),Yc=Ir(),aV=Gw(),k_e=Yw(),S_e=Vw(),q_e=Ww(),nV=Xw().calcAllAutoBins;sV.exports=function(r,t){var a=Yc.getFromId(r,t.xaxis),n=Yc.getFromId(r,t.yaxis),i=t.xcalendar,o=t.ycalendar,l=function(ue){return a.r2c(ue,0,i)},s=function(ue){return n.r2c(ue,0,o)},u=function(ue){return a.c2r(ue,0,i)},f=function(ue){return n.c2r(ue,0,o)},c,v,d,p,m=nV(r,t,a,"x"),y=m[0],x=m[1],w=nV(r,t,n,"y"),_=w[0],b=w[1],T=t._length;x.length>T&&x.splice(T,x.length-T),b.length>T&&b.splice(T,b.length-T);var k=[],M=[],S=[],E=typeof y.size=="string",D=typeof _.size=="string",P=[],R=[],z=E?P:y,O=D?R:_,B=0,V=[],G=[],U=t.histnorm,Y=t.histfunc,X=U.indexOf("density")!==-1,Z=Y==="max"||Y==="min",re=Z?null:0,ce=aV.count,oe=k_e[U],fe=!1,K=[],Te=[],le="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";le&&Y!=="count"&&(fe=Y==="avg",ce=aV[Y]);var pe=y.size,ie=l(y.start),ve=l(y.end)+(ie-Yc.tickIncrement(ie,pe,!1,i))/1e6;for(c=ie;c=0&&d=0&&p{"use strict";var Uo=Ce(),fV=Nt().BADNUM,cV=mc();vV.exports=function(r,t,a,n,i,o){var l=r._length,s=t.makeCalcdata(r,n),u=a.makeCalcdata(r,i);s=cV(r,t,n,s).vals,u=cV(r,a,i,u).vals;var f=r.text,c=f!==void 0&&Uo.isArray1D(f),v=r.hovertext,d=v!==void 0&&Uo.isArray1D(v),p,m,y=Uo.distinctVals(s),x=y.vals,w=Uo.distinctVals(u),_=w.vals,b=[],T,k,M=_.length,S=x.length;for(p=0;p{"use strict";var L_e=Rr(),C_e=Ce(),fg=Nt().BADNUM;dV.exports=function(r,t,a,n){var i,o,l,s,u,f;function c(x){if(L_e(x))return+x}if(t&&t.transpose){for(i=0,u=0;u{"use strict";var E_e=Ce(),yV=.01,D_e=[[-1,0],[1,0],[0,-1],[0,1]];function R_e(e){return .5-.25*Math.min(1,e*.5)}gV.exports=function(r,t){var a=1,n;for(mV(r,t),n=0;nyV;n++)a=mV(r,t,R_e(a));return a>yV&&E_e.log("interp2d didn't converge quickly",a),r};function mV(e,r,t){var a=0,n,i,o,l,s,u,f,c,v,d,p,m,y;for(l=0;lm&&(a=Math.max(a,Math.abs(e[i][o]-p)/(y-m))))}return a}});var _V=N((_ze,xV)=>{"use strict";var P_e=Ce().maxRowLength;xV.exports=function(r){var t=[],a={},n=[],i=r[0],o=[],l=[0,0,0],s=P_e(r),u,f,c,v,d,p,m,y;for(f=0;f=0;d--)v=n[d],f=v[0],c=v[1],p=((a[[f-1,c]]||l)[2]+(a[[f+1,c]]||l)[2]+(a[[f,c-1]]||l)[2]+(a[[f,c+1]]||l)[2])/20,p&&(m[v]=[f,c,p],n.splice(d,1),y=!0);if(!y)throw"findEmpties iterated with no new neighbors";for(v in m)a[v]=m[v],t.push(m[v])}return t.sort(function(x,w){return w[2]-x[2]})}});var MV=N((wze,AV)=>{"use strict";var wV=gr(),TV=Ce().isArrayOrTypedArray;AV.exports=function(r,t,a,n,i,o){var l=[],s=wV.traceIs(r,"contour"),u=wV.traceIs(r,"histogram"),f,c,v,d=TV(t)&&t.length>1;if(d&&!u&&o.type!=="category"){var p=t.length;if(p<=i){if(s)l=Array.from(t).slice(0,i);else if(i===1)o.type==="log"?l=[.5*t[0],2*t[0]]:l=[t[0]-.5,t[0]+.5];else if(o.type==="log"){for(l=[Math.pow(t[0],1.5)/Math.pow(t[1],.5)],v=1;v{"use strict";var kV=gr(),Jw=Ce(),cg=Ir(),SV=mc(),F_e=uV(),N_e=Uf(),z_e=hV(),I_e=pV(),O_e=bV(),B_e=_V(),vg=MV(),$w=Nt().BADNUM;LV.exports=function(r,t){var a=cg.getFromId(r,t.xaxis||"x"),n=cg.getFromId(r,t.yaxis||"y"),i=kV.traceIs(t,"contour"),o=kV.traceIs(t,"histogram"),l=i?"best":t.zsmooth,s,u,f,c,v,d,p,m,y,x,w;if(a._minDtick=0,n._minDtick=0,o)w=F_e(r,t),c=w.orig_x,s=w.x,u=w.x0,f=w.dx,m=w.orig_y,v=w.y,d=w.y0,p=w.dy,y=w.z;else{var _=t.z;Jw.isArray1D(_)?(z_e(t,a,n,"x","y",["z"]),s=t._x,v=t._y,_=t._z):(c=t.x?a.makeCalcdata(t,"x"):[],m=t.y?n.makeCalcdata(t,"y"):[],s=SV(t,a,"x",c).vals,v=SV(t,n,"y",m).vals,t._x=s,t._y=v),u=t.x0,f=t.dx,d=t.y0,p=t.dy,y=I_e(_,t,a,n)}(a.rangebreaks||n.rangebreaks)&&(y=H_e(s,v,y),o||(s=qV(s),v=qV(v),t._x=s,t._y=v)),!o&&(i||t.connectgaps)&&(t._emptypoints=B_e(y),O_e(y,t._emptypoints));function b(z){l=t._input.zsmooth=t.zsmooth=!1,Jw.warn('cannot use zsmooth: "fast": '+z)}function T(z){if(z.length>1){var O=(z[z.length-1]-z[0])/(z.length-1),B=Math.abs(O/100);for(x=0;xB)return!1}return!0}t._islinear=!1,a.type==="log"||n.type==="log"?l==="fast"&&b("log axis found"):T(s)?T(v)?t._islinear=!0:l==="fast"&&b("y scale is not linear"):l==="fast"&&b("x scale is not linear");var k=Jw.maxRowLength(y),M=t.xtype==="scaled"?"":s,S=vg(t,M,u,f,k,a),E=t.ytype==="scaled"?"":v,D=vg(t,E,d,p,y.length,n);t._extremes[a._id]=cg.findExtremes(a,S),t._extremes[n._id]=cg.findExtremes(n,D);var P={x:S,y:D,z:y,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&c&&(P.orig_x=c),t.yperiodalignment&&m&&(P.orig_y=m),M&&M.length===S.length-1&&(P.xCenter=M),E&&E.length===D.length-1&&(P.yCenter=E),o&&(P.xRanges=w.xRanges,P.yRanges=w.yRanges,P.pts=w.pts),i||N_e(r,t,{vals:y,cLetter:"z"}),i&&t.contours&&t.contours.coloring==="heatmap"){var R={type:t.type==="contour"?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};P.xfill=vg(R,M,u,f,k,a),P.yfill=vg(R,E,d,p,y.length,n)}return[P]};function qV(e){for(var r=[],t=e.length,a=0;a{"use strict";dg.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];dg.STYLE=dg.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var Qw=N((Mze,EV)=>{"use strict";var CV=pg(),U_e=Wr(),Kw=Ce(),Vc=null;function G_e(){if(Vc!==null)return Vc;Vc=!1;var e=Kw.isSafari()||Kw.isMacWKWebView()||Kw.isIOS();if(window.navigator.userAgent&&!e){var r=Array.from(CV.CSS_DECLARATIONS).reverse(),t=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof t=="function")Vc=r.some(function(o){return t.apply(null,o)});else{var a=U_e.tester.append("image").attr("style",CV.STYLE),n=window.getComputedStyle(a.node()),i=n.imageRendering;Vc=r.some(function(o){var l=o[1];return i===l||i===l.toLowerCase()}),a.remove()}}return Vc}EV.exports=G_e});var yg=N((kze,BV)=>{"use strict";var DV=Sr(),Y_e=kn(),V_e=gr(),W_e=Wr(),j_e=Ir(),Ri=Ce(),RV=Da(),Z_e=u4(),X_e=Tr(),J_e=So().extractOpts,$_e=So().makeColorScaleFuncFromTrace,K_e=ll(),Q_e=Xa(),e6=Q_e.LINE_SPACING,e4e=Qw(),r4e=pg().STYLE,IV="heatmap-label";function OV(e){return e.selectAll("g."+IV)}function PV(e){OV(e).remove()}BV.exports=function(e,r,t,a){var n=r.xaxis,i=r.yaxis;Ri.makeTraceGroups(a,t,"hm").each(function(o){var l=DV.select(this),s=o[0],u=s.trace,f=u.xgap||0,c=u.ygap||0,v=s.z,d=s.x,p=s.y,m=s.xCenter,y=s.yCenter,x=V_e.traceIs(u,"contour"),w=x?"best":u.zsmooth,_=v.length,b=Ri.maxRowLength(v),T=!1,k=!1,M,S,E,D,P,R,z,O;for(R=0;M===void 0&&R0;)S=n.c2p(d[R]),R--;for(S0;)P=i.c2p(p[R]),R--;P=n._length||S<=0||D>=i._length||P<=0;if(Y){var X=l.selectAll("image").data([]);X.exit().remove(),PV(l);return}var Z,re;B==="fast"?(Z=b,re=_):(Z=G,re=U);var ce=document.createElement("canvas");ce.width=Z,ce.height=re;var oe=ce.getContext("2d",{willReadFrequently:!0}),fe=$_e(u,{noNumericCheck:!0,returnArray:!0}),K,Te;B==="fast"?(K=T?function(vt){return b-1-vt}:Ri.identity,Te=k?function(vt){return _-1-vt}:Ri.identity):(K=function(vt){return Ri.constrain(Math.round(n.c2p(d[vt])-M),0,G)},Te=function(vt){return Ri.constrain(Math.round(i.c2p(p[vt])-D),0,U)});var le=Te(0),pe=[le,le],ie=T?0:1,ve=k?0:1,W=0,Q=0,j=0,ye=0,_e,me,Pe,Ne,Re;function ze(vt,Tn){if(vt!==void 0){var Ft=fe(vt);return Ft[0]=Math.round(Ft[0]),Ft[1]=Math.round(Ft[1]),Ft[2]=Math.round(Ft[2]),W+=Tn,Q+=Ft[0]*Tn,j+=Ft[1]*Tn,ye+=Ft[2]*Tn,Ft}return[0,0,0,0]}function Ge(vt,Tn,Ft,zs){var pn=vt[Ft.bin0];if(pn===void 0)return ze(void 0,1);var Gi=vt[Ft.bin1],Vt=Tn[Ft.bin0],Yi=Tn[Ft.bin1],Rl=Gi-pn||0,Pl=Vt-pn||0,yr;return Gi===void 0?Yi===void 0?yr=0:Vt===void 0?yr=2*(Yi-pn):yr=(2*Yi-Vt-pn)*2/3:Yi===void 0?Vt===void 0?yr=0:yr=(2*pn-Gi-Vt)*2/3:Vt===void 0?yr=(2*Yi-Gi-pn)*2/3:yr=Yi+pn-Gi-Vt,ze(pn+Ft.frac*Rl+zs.frac*(Pl+Ft.frac*yr))}if(B!=="default"){var He=0,De;try{De=new Uint8Array(Z*re*4)}catch(vt){De=new Array(Z*re*4)}if(B==="smooth"){var Ie=m||d,Be=y||p,se=new Array(Ie.length),Ae=new Array(Be.length),je=new Array(G),ur=m?NV:FV,lr=y?NV:FV,ue,qe,Oe;for(R=0;RYt||Yt>i._length))for(z=Mr;zTt||Tt>n._length)){var pt=Z_e({x:wt,y:Vr},u,e._fullLayout);pt.x=wt,pt.y=Vr;var Xt=s.z[R][z];Xt===void 0?(pt.z="",pt.zLabel=""):(pt.z=Xt,pt.zLabel=j_e.tickText(Ee,Xt,"hover").text);var Jt=s.text&&s.text[R]&&s.text[R][z];(Jt===void 0||Jt===!1)&&(Jt=""),pt.text=Jt;var It=Ri.texttemplateString(ne,pt,e._fullLayout._d3locale,pt,u._meta||{});if(It){var za=It.split("
"),br=za.length,yt=0;for(O=0;O{"use strict";HV.exports={min:"zmin",max:"zmax"}});var mg=N((qze,UV)=>{"use strict";var t4e=Sr();UV.exports=function(r){t4e.select(r).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})}});var bg=N((Lze,YV)=>{"use strict";var GV=Pn(),D0=Ce(),gg=D0.isArrayOrTypedArray,a4e=Ir(),n4e=So().extractOpts;YV.exports=function(r,t,a,n,i){i||(i={});var o=i.isContour,l=r.cd[0],s=l.trace,u=r.xa,f=r.ya,c=l.x,v=l.y,d=l.z,p=l.xCenter,m=l.yCenter,y=l.zmask,x=s.zhoverformat,w=c,_=v,b,T,k,M;if(r.index!==!1){try{k=Math.round(r.index[1]),M=Math.round(r.index[0])}catch(X){D0.error("Error hovering on heatmap, pointNumber must be [row,col], found:",r.index);return}if(k<0||k>=d[0].length||M<0||M>d.length)return}else{if(GV.inbox(t-c[0],t-c[c.length-1],0)>0||GV.inbox(a-v[0],a-v[v.length-1],0)>0)return;if(o){var S;for(w=[2*c[0]-c[1]],S=1;S{"use strict";VV.exports={attributes:C0(),supplyDefaults:OY(),calc:hg(),plot:yg(),colorbar:r6(),style:mg(),hoverPoints:bg(),moduleType:"trace",name:"heatmap",basePlotModule:qi(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var ZV=N((Eze,jV)=>{"use strict";jV.exports=WV()});var t6=N((Dze,XV)=>{"use strict";XV.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var $V=N((Rze,JV)=>{"use strict";JV.exports={eventDataKeys:["binNumber"]}});var xg=N((Pze,eW)=>{"use strict";var Hn=Nu(),KV=Qi().axisHoverFormat,i4e=Ta().hovertemplateAttrs,o4e=Ta().texttemplateAttrs,a6=da(),QV=t6(),l4e=$V(),n6=xt().extendFlat;eW.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:KV("x"),yhoverformat:KV("y"),text:n6({},Hn.text,{}),hovertext:n6({},Hn.hovertext,{}),orientation:Hn.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:QV("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:QV("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:i4e({},{keys:l4e.eventDataKeys}),texttemplate:o4e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:n6({},Hn.textposition,{arrayOk:!1}),textfont:a6({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:a6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:a6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Hn.insidetextanchor,textangle:Hn.textangle,cliponaxis:Hn.cliponaxis,constraintext:Hn.constraintext,marker:Hn.marker,offsetgroup:Hn.offsetgroup,alignmentgroup:Hn.alignmentgroup,selected:Hn.selected,unselected:Hn.unselected,zorder:Hn.zorder}});var nW=N((Fze,aW)=>{"use strict";var rW=gr(),R0=Ce(),tW=Tr(),s4e=zu().handleText,u4e=mw(),f4e=xg();aW.exports=function(r,t,a,n){function i(w,_){return R0.coerce(r,t,f4e,w,_)}var o=i("x"),l=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");s4e(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",l&&!o?"h":"v"),c=f==="v"?"x":"y",v=f==="v"?"y":"x",d=o&&l?Math.min(R0.minRowLength(o)&&R0.minRowLength(l)):R0.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=rW.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var m=t[v];m&&i("histfunc"),i("histnorm"),i("autobin"+c),u4e(r,t,i,a,n),R0.coerceSelectionMarkerOpacity(t,i);var y=(t.marker.line||{}).color,x=rW.getComponentMethod("errorbars","supplyDefaults");x(r,t,y||tW.defaultLine,{axis:"y"}),x(r,t,y||tW.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var wg=N((Nze,lW)=>{"use strict";var P0=Ce(),c4e=ia(),_g=gr().traceIs,v4e=n0(),h4e=zu().validateCornerradius,iW=P0.nestedProperty,i6=Tu().getAxisGroup,oW=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],d4e=["x","y"];lW.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},o=[],l,s,u,f,c,v,d;function p(B,V){return P0.coerce(l._input,l,l._module.attributes,B,V)}function m(B){return B.orientation==="v"?"x":"y"}function y(B,V){var G=c4e.getFromTrace({_fullLayout:t},B,V);return G.type}function x(B,V,G){var U=B.uid+"__"+G;V||(V=U);var Y=y(B,G),X=B[G+"calendar"]||"",Z=a[V],re=!0;Z&&(Y===Z.axType&&X===Z.calendar?(re=!1,Z.traces.push(B),Z.dirs.push(G)):(V=U,Y!==Z.axType&&P0.warn(["Attempted to group the bins of trace",B.index,"set on a","type:"+Y,"axis","with bins on","type:"+Z.axType,"axis."].join(" ")),X!==Z.calendar&&P0.warn(["Attempted to group the bins of trace",B.index,"set with a",X,"calendar","with bins",Z.calendar?"on a "+Z.calendar+" calendar":"w/o a set calendar"].join(" ")))),re&&(a[V]={traces:[B],dirs:[G],axType:Y,calendar:B[G+"calendar"]||""}),B["_"+G+"bingroup"]=V}for(c=0;c{"use strict";var p4e=Mw().hoverPoints,y4e=Ir().hoverLabelText;sW.exports=function(r,t,a,n,i){var o=p4e(r,t,a,n,i);if(o){r=o[0];var l=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=y4e(r[u+"a"],[l.ph0,l.ph1],s[u+"hoverformat"])}return o}}});var o6=N((Ize,fW)=>{"use strict";fW.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=o,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex;var l;if(a._indexToPoints){l=[];for(var s=0;s{"use strict";cW.exports={attributes:xg(),layoutAttributes:$m(),supplyDefaults:nW(),crossTraceDefaults:wg(),supplyLayoutDefaults:gw(),calc:Xw().calc,crossTraceCalc:vm().crossTraceCalc,plot:Tw().plot,layerName:"barlayer",style:Ic().style,styleOnSelect:Ic().styleOnSelect,colorbar:u0(),hoverPoints:uW(),selectPoints:kw(),eventData:o6(),moduleType:"trace",name:"histogram",basePlotModule:qi(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var dW=N((Bze,hW)=>{"use strict";hW.exports=vW()});var Ag=N((Hze,yW)=>{"use strict";var yo=xg(),pW=t6(),Tg=C0(),m4e=mn(),l6=Qi().axisHoverFormat,g4e=Ta().hovertemplateAttrs,b4e=Ta().texttemplateAttrs,x4e=ko(),F0=xt().extendFlat;yW.exports=F0({x:yo.x,y:yo.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:yo.histnorm,histfunc:yo.histfunc,nbinsx:yo.nbinsx,xbins:pW("x"),nbinsy:yo.nbinsy,ybins:pW("y"),autobinx:yo.autobinx,autobiny:yo.autobiny,bingroup:F0({},yo.bingroup,{}),xbingroup:F0({},yo.bingroup,{}),ybingroup:F0({},yo.bingroup,{}),xgap:Tg.xgap,ygap:Tg.ygap,zsmooth:Tg.zsmooth,xhoverformat:l6("x"),yhoverformat:l6("y"),zhoverformat:l6("z",1),hovertemplate:g4e({},{keys:"z"}),texttemplate:b4e({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:Tg.textfont,showlegend:F0({},m4e.showlegend,{dflt:!1})},x4e("",{cLetter:"z",autoColorDflt:!1}))});var s6=N((Uze,gW)=>{"use strict";var _4e=gr(),mW=Ce();gW.exports=function(r,t,a,n){var i=a("x"),o=a("y"),l=mW.minRowLength(i),s=mW.minRowLength(o);if(!l||!s){t.visible=!1;return}t._length=Math.min(l,s);var u=_4e.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y"],n);var f=a("z")||a("marker.color");f&&a("histfunc"),a("histnorm"),a("autobinx"),a("autobiny")}});var xW=N((Gze,bW)=>{"use strict";var w4e=Ce(),T4e=s6(),A4e=Uw(),M4e=ul(),k4e=E0(),S4e=Ag();bW.exports=function(r,t,a,n){function i(o,l){return w4e.coerce(r,t,S4e,o,l)}T4e(r,t,i,n),t.visible!==!1&&(A4e(r,t,i,n),M4e(r,t,n,i,{prefix:"",cLetter:"z"}),i("hovertemplate"),k4e(i,n),i("xhoverformat"),i("yhoverformat"))}});var TW=N((Yze,wW)=>{"use strict";var q4e=bg(),_W=Ir().hoverLabelText;wW.exports=function(r,t,a,n,i){var o=q4e(r,t,a,n,i);if(o){r=o[0];var l=r.index,s=l[0],u=l[1],f=r.cd[0],c=f.trace,v=f.xRanges[u],d=f.yRanges[s];return r.xLabel=_W(r.xa,[v[0],v[1]],c.xhoverformat),r.yLabel=_W(r.ya,[d[0],d[1]],c.yhoverformat),o}}});var MW=N((Vze,AW)=>{"use strict";AW.exports={attributes:Ag(),supplyDefaults:xW(),crossTraceDefaults:wg(),calc:hg(),plot:yg(),layerName:"heatmaplayer",colorbar:r6(),style:mg(),hoverPoints:TW(),eventData:o6(),moduleType:"trace",name:"histogram2d",basePlotModule:qi(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var SW=N((Wze,kW)=>{"use strict";kW.exports=MW()});var Mg=N((jze,qW)=>{"use strict";qW.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var Sg=N((Zze,DW)=>{"use strict";var ga=C0(),kg=wi(),CW=Qi(),u6=CW.axisHoverFormat,L4e=CW.descriptionOnlyNumbers,C4e=ko(),E4e=ui().dash,D4e=da(),Wc=xt().extendFlat,EW=Mg(),R4e=EW.COMPARISON_OPS2,P4e=EW.INTERVAL_OPS,LW=kg.line;DW.exports=Wc({z:ga.z,x:ga.x,x0:ga.x0,dx:ga.dx,y:ga.y,y0:ga.y0,dy:ga.dy,xperiod:ga.xperiod,yperiod:ga.yperiod,xperiod0:kg.xperiod0,yperiod0:kg.yperiod0,xperiodalignment:ga.xperiodalignment,yperiodalignment:ga.yperiodalignment,text:ga.text,hovertext:ga.hovertext,transpose:ga.transpose,xtype:ga.xtype,ytype:ga.ytype,xhoverformat:u6("x"),yhoverformat:u6("y"),zhoverformat:u6("z",1),hovertemplate:ga.hovertemplate,texttemplate:Wc({},ga.texttemplate,{}),textfont:Wc({},ga.textfont,{}),hoverongaps:ga.hoverongaps,connectgaps:Wc({},ga.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:D4e({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:L4e("contour label")},operation:{valType:"enumerated",values:[].concat(R4e).concat(P4e),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:Wc({},LW.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:E4e,smoothing:Wc({},LW.smoothing,{}),editType:"plot"},zorder:kg.zorder},C4e("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var c6=N((Xze,PW)=>{"use strict";var hn=Ag(),Tl=Sg(),F4e=ko(),f6=Qi().axisHoverFormat,RW=xt().extendFlat;PW.exports=RW({x:hn.x,y:hn.y,z:hn.z,marker:hn.marker,histnorm:hn.histnorm,histfunc:hn.histfunc,nbinsx:hn.nbinsx,xbins:hn.xbins,nbinsy:hn.nbinsy,ybins:hn.ybins,autobinx:hn.autobinx,autobiny:hn.autobiny,bingroup:hn.bingroup,xbingroup:hn.xbingroup,ybingroup:hn.ybingroup,autocontour:Tl.autocontour,ncontours:Tl.ncontours,contours:Tl.contours,line:{color:Tl.line.color,width:RW({},Tl.line.width,{dflt:.5}),dash:Tl.line.dash,smoothing:Tl.line.smoothing,editType:"plot"},xhoverformat:f6("x"),yhoverformat:f6("y"),zhoverformat:f6("z",1),hovertemplate:hn.hovertemplate,texttemplate:Tl.texttemplate,textfont:Tl.textfont},F4e("",{cLetter:"z",editTypeOverride:"calc"}))});var v6=N((Jze,FW)=>{"use strict";FW.exports=function(r,t,a,n){var i=n("contours.start"),o=n("contours.end"),l=i===!1||o===!1,s=a("contours.size"),u;l?u=t.autocontour=!0:u=a("autocontour",!1),(u||!s)&&a("ncontours")}});var h6=N(($ze,NW)=>{"use strict";var N4e=Ce();NW.exports=function(r,t,a,n){n||(n={});var i=r("contours.showlabels");if(i){var o=t.font;N4e.coerceFont(r,"contours.labelfont",o,{overrideDflt:{color:a}}),r("contours.labelformat")}n.hasHover!==!1&&r("zhoverformat")}});var d6=N((Kze,zW)=>{"use strict";var z4e=ul(),I4e=h6();zW.exports=function(r,t,a,n,i){var o=a("contours.coloring"),l,s="";o==="fill"&&(l=a("contours.showlines")),l!==!1&&(o!=="lines"&&(s=a("line.color","#000")),a("line.width",.5),a("line.dash")),o!=="none"&&(r.showlegend!==!0&&(t.showlegend=!1),t._dfltShowLegend=!1,z4e(r,t,n,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),I4e(a,n,s,i)}});var HW=N((Qze,BW)=>{"use strict";var IW=Ce(),O4e=s6(),B4e=v6(),H4e=d6(),U4e=E0(),OW=c6();BW.exports=function(r,t,a,n){function i(l,s){return IW.coerce(r,t,OW,l,s)}function o(l){return IW.coerce2(r,t,OW,l)}O4e(r,t,i,n),t.visible!==!1&&(B4e(r,t,i,o),H4e(r,t,i,n),i("xhoverformat"),i("yhoverformat"),i("hovertemplate"),t.contours&&t.contours.coloring==="heatmap"&&U4e(i,n))}});var YW=N((eIe,GW)=>{"use strict";var y6=Ir(),p6=Ce();GW.exports=function(r,t){var a=r.contours;if(r.autocontour){var n=r.zmin,i=r.zmax;(r.zauto||n===void 0)&&(n=p6.aggNums(Math.min,null,t)),(r.zauto||i===void 0)&&(i=p6.aggNums(Math.max,null,t));var o=UW(n,i,r.ncontours);a.size=o.dtick,a.start=y6.tickFirst(o),o.range.reverse(),a.end=y6.tickFirst(o),a.start===n&&(a.start+=a.size),a.end===i&&(a.end-=a.size),a.start>a.end&&(a.start=a.end=(a.start+a.end)/2),r._input.contours||(r._input.contours={}),p6.extendFlat(r._input.contours,{start:a.start,end:a.end,size:a.size}),r._input.autocontour=!0}else if(a.type!=="constraint"){var l=a.start,s=a.end,u=r._input.contours;if(l>s&&(a.start=u.start=s,s=a.end=u.end=l,l=a.start),!(a.size>0)){var f;l===s?f=1:f=UW(l,s,r.ncontours).dtick,u.size=a.size=f}}};function UW(e,r,t){var a={type:"linear",range:[e,r]};return y6.autoTicks(a,(r-e)/(t||15)),a}});var N0=N((rIe,VW)=>{"use strict";VW.exports=function(r){return r.end+r.size/1e6}});var m6=N((tIe,jW)=>{"use strict";var WW=So(),G4e=hg(),Y4e=YW(),V4e=N0();jW.exports=function(r,t){var a=G4e(r,t),n=a[0].z;Y4e(t,n);var i=t.contours,o=WW.extractOpts(t),l;if(i.coloring==="heatmap"&&o.auto&&t.autocontour===!1){var s=i.start,u=V4e(i),f=i.size||1,c=Math.floor((u-s)/f)+1;isFinite(f)||(f=1,c=1);var v=s-f/2,d=v+c*f;l=[v,d]}else l=n;return WW.calc(r,t,{vals:l,cLetter:"z"}),a}});var qg=N((aIe,ZW)=>{"use strict";ZW.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var JW=N((nIe,XW)=>{"use strict";var Lg=qg();XW.exports=function(r){var t=r[0].z,a=t.length,n=t[0].length,i=a===2||n===2,o,l,s,u,f,c,v,d,p;for(l=0;le?0:1)+(r[0][1]>e?0:2)+(r[1][1]>e?0:4)+(r[1][0]>e?0:8);if(t===5||t===10){var a=(r[0][0]+r[0][1]+r[1][0]+r[1][1])/4;return e>a?t===5?713:1114:t===5?104:208}return t===15?0:t}});var ej=N((iIe,QW)=>{"use strict";var Cg=Ce(),jc=qg();QW.exports=function(r,t,a){var n,i,o,l,s;for(t=t||.01,a=a||.01,o=0;o20?(o=jc.CHOOSESADDLE[o][(l[0]||l[1])<0?0:1],e.crossings[i]=jc.SADDLEREMAINDER[o]):delete e.crossings[i],l=jc.NEWDELTA[o],!l){Cg.log("Found bad marching index:",o,r,e.level);break}s.push(KW(e,r,l)),r[0]+=l[0],r[1]+=l[1],i=r.join(","),z0(s[s.length-1],s[s.length-2],a,n)&&s.pop();var p=l[0]&&(r[0]<0||r[0]>f-2)||l[1]&&(r[1]<0||r[1]>u-2),m=r[0]===c[0]&&r[1]===c[1]&&l[0]===v[0]&&l[1]===v[1];if(m||t&&p)break;o=e.crossings[i]}d===1e4&&Cg.log("Infinite loop in contour?");var y=z0(s[0],s[s.length-1],a,n),x=0,w=.2*e.smoothing,_=[],b=0,T,k,M,S,E,D,P,R,z,O,B;for(d=1;d=b;d--)if(T=_[d],T=b&&T+_[k]R&&z--,e.edgepaths[z]=B.concat(s,O));break}Y||(e.edgepaths[R]=s.concat(O))}for(R=0;R20&&r?e===208||e===1114?a=t[0]===0?1:-1:n=t[1]===0?1:-1:jc.BOTTOMSTART.indexOf(e)!==-1?n=1:jc.LEFTSTART.indexOf(e)!==-1?a=1:jc.TOPSTART.indexOf(e)!==-1?n=-1:a=-1,[a,n]}function KW(e,r,t){var a=r[0]+Math.max(t[0],0),n=r[1]+Math.max(t[1],0),i=e.z[n][a],o=e.xaxis,l=e.yaxis;if(t[1]){var s=(e.level-i)/(e.z[n][a+1]-i),u=(s!==1?(1-s)*o.c2l(e.x[a]):0)+(s!==0?s*o.c2l(e.x[a+1]):0);return[o.c2p(o.l2c(u),!0),l.c2p(e.y[n],!0),a+s,n]}else{var f=(e.level-i)/(e.z[n+1][a]-i),c=(f!==1?(1-f)*l.c2l(e.y[n]):0)+(f!==0?f*l.c2l(e.y[n+1]):0);return[o.c2p(e.x[a],!0),l.c2p(l.l2c(c),!0),a,n+f]}}});var nj=N((oIe,aj)=>{"use strict";var g6=Mg(),X4e=Rr();aj.exports={"[]":rj("[]"),"][":rj("]["),">":b6(">"),"<":b6("<"),"=":b6("=")};function tj(e,r){var t=Array.isArray(r),a;function n(i){return X4e(i)?+i:null}return g6.COMPARISON_OPS2.indexOf(e)!==-1?a=n(t?r[0]:r):g6.INTERVAL_OPS.indexOf(e)!==-1?a=t?[n(r[0]),n(r[1])]:[n(r),n(r)]:g6.SET_OPS.indexOf(e)!==-1&&(a=t?r.map(n):[n(r)]),a}function rj(e){return function(r){r=tj(e,r);var t=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return{start:t,end:a,size:a-t}}}function b6(e){return function(r){return r=tj(e,r),{start:r,end:1/0,size:1/0}}}});var lj=N((lIe,oj)=>{"use strict";var ij=Ce(),J4e=nj(),$4e=N0();oj.exports=function(r,t,a){for(var n=r.type==="constraint"?J4e[r._operation](r.value):r,i=n.size,o=[],l=$4e(n),s=a.trace._carpetTrace,u=s?{xaxis:s.aaxis,yaxis:s.baxis,x:a.a,y:a.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:a.x,y:a.y},f=n.start;f1e3){ij.warn("Too many contours, clipping at 1000",r);break}return o}});var fj=N((sIe,uj)=>{"use strict";var Zc=Ce();uj.exports=function(e,r){var t,a,n,i=function(s){return s.reverse()},o=function(s){return s};switch(r){case"=":case"<":return e;case">":for(e.length!==1&&Zc.warn("Contour data invalid for the specified inequality operation."),a=e[0],t=0;t{"use strict";cj.exports=function(e,r){var t=e[0],a=t.z,n;switch(r.type){case"levels":var i=Math.min(a[0][0],a[0][1]);for(n=0;no.level||o.starts.length&&i===o.level)}break;case"constraint":if(t.prefixBoundary=!1,t.edgepaths.length)return;var l=t.x.length,s=t.y.length,u=-1/0,f=1/0;for(n=0;n":c>u&&(t.prefixBoundary=!0);break;case"<":(cu||t.starts.length&&d===f)&&(t.prefixBoundary=!0);break;case"][":v=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),vu&&(t.prefixBoundary=!0);break}break}}});var x6=N(dn=>{"use strict";var O0=Sr(),Fa=Ce(),Al=Wr(),K4e=So(),pj=Da(),hj=Ir(),dj=Xf(),Q4e=yg(),yj=JW(),mj=ej(),ewe=lj(),rwe=fj(),gj=vj(),I0=qg(),Go=I0.LABELOPTIMIZER;dn.plot=function(r,t,a,n){var i=t.xaxis,o=t.yaxis;Fa.makeTraceGroups(n,a,"contour").each(function(l){var s=O0.select(this),u=l[0],f=u.trace,c=u.x,v=u.y,d=f.contours,p=ewe(d,t,u),m=Fa.ensureSingle(s,"g","heatmapcoloring"),y=[];d.coloring==="heatmap"&&(y=[l]),Q4e(r,t,y,m),yj(p),mj(p);var x=i.c2p(c[0],!0),w=i.c2p(c[c.length-1],!0),_=o.c2p(v[0],!0),b=o.c2p(v[v.length-1],!0),T=[[x,b],[w,b],[w,_],[x,_]],k=p;d.type==="constraint"&&(k=rwe(p,d._operation)),twe(s,T,d),awe(s,k,T,d),nwe(s,p,r,u,d),owe(s,t,r,u,T)})};function twe(e,r,t){var a=Fa.ensureSingle(e,"g","contourbg"),n=a.selectAll("path").data(t.coloring==="fill"?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+r.join("L")+"Z").style("stroke","none")}function awe(e,r,t,a){var n=a.coloring==="fill"||a.type==="constraint"&&a._operation!=="=",i="M"+t.join("L")+"Z";n&&gj(r,a);var o=Fa.ensureSingle(e,"g","contourfill"),l=o.selectAll("path").data(n?r:[]);l.enter().append("path"),l.exit().remove(),l.each(function(s){var u=(s.prefixBoundary?i:"")+bj(s,t);u?O0.select(this).attr("d",u).style("stroke","none"):O0.select(this).remove()})}function bj(e,r){var t="",a=0,n=e.edgepaths.map(function(x,w){return w}),i=!0,o,l,s,u,f,c;function v(x){return Math.abs(x[1]-r[0][1])<.01}function d(x){return Math.abs(x[1]-r[2][1])<.01}function p(x){return Math.abs(x[0]-r[0][0])<.01}function m(x){return Math.abs(x[0]-r[2][0])<.01}for(;n.length;){for(c=Al.smoothopen(e.edgepaths[a],e.smoothing),t+=i?c:c.replace(/^M/,"L"),n.splice(n.indexOf(a),1),o=e.edgepaths[a][e.edgepaths[a].length-1],u=-1,s=0;s<4;s++){if(!o){Fa.log("Missing end?",a,e);break}for(v(o)&&!m(o)?l=r[1]:p(o)?l=r[0]:d(o)?l=r[3]:m(o)&&(l=r[2]),f=0;f=0&&(l=y,u=f):Math.abs(o[1]-l[1])<.01?Math.abs(o[1]-y[1])<.01&&(y[0]-o[0])*(l[0]-y[0])>=0&&(l=y,u=f):Fa.log("endpt to newendpt is not vert. or horz.",o,l,y)}if(o=l,u>=0)break;t+="L"+l}if(u===e.edgepaths.length){Fa.log("unclosed perimeter path");break}a=u,i=n.indexOf(a)===-1,i&&(a=n[0],t+="Z")}for(a=0;aGo.MAXCOST*2)break;v&&(l/=2),o=u-l/2,s=o+l*1.5}if(c<=Go.MAXCOST)return f};function iwe(e,r,t,a){var n=r.width/2,i=r.height/2,o=e.x,l=e.y,s=e.theta,u=Math.cos(s)*n,f=Math.sin(s)*n,c=(o>a.center?a.right-o:o-a.left)/(u+Math.abs(Math.sin(s)*i)),v=(l>a.middle?a.bottom-l:l-a.top)/(Math.abs(f)+Math.cos(s)*i);if(c<1||v<1)return 1/0;var d=Go.EDGECOST*(1/(c-1)+1/(v-1));d+=Go.ANGLECOST*s*s;for(var p=o-u,m=l-f,y=o+u,x=l+f,w=0;w{"use strict";var swe=Sr(),_6=So(),uwe=N0();xj.exports=function(r){var t=r.contours,a=t.start,n=uwe(t),i=t.size||1,o=Math.floor((n-a)/i)+1,l=t.coloring==="lines"?0:1,s=_6.extractOpts(r);isFinite(i)||(i=1,o=1);var u=s.reversescale?_6.flipScale(s.colorscale):s.colorscale,f=u.length,c=new Array(f),v=new Array(f),d,p,m=s.min,y=s.max;if(t.coloring==="heatmap"){for(p=0;p=y)&&(a<=m&&(a=m),n>=y&&(n=y),o=Math.floor((n-a)/i)+1,l=0),p=0;pm&&(c.unshift(m),v.unshift(v[0])),c[c.length-1]{"use strict";var Eg=Sr(),_j=Wr(),fwe=mg(),cwe=w6();wj.exports=function(r){var t=Eg.select(r).selectAll("g.contour");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=Eg.select(this),i=a[0].trace,o=i.contours,l=i.line,s=o.size||1,u=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",v=!f&&o.coloring==="fill",d=c||v?cwe(i):null;n.selectAll("g.contourlevel").each(function(y){Eg.select(this).selectAll("path").call(_j.lineGroupStyle,l.width,c?d(y.level):l.color,l.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(y){_j.font(Eg.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(y.level):l.color)})}),f)n.selectAll("g.contourfill path").style("fill",i.fillcolor);else if(v){var m;n.selectAll("g.contourfill path").style("fill",function(y){return m===void 0&&(m=y.level),d(y.level+.5*s)}),m===void 0&&(m=u),n.selectAll("g.contourbg path").style("fill",d(m-.5*s))}}),fwe(r)}});var A6=N((hIe,Aj)=>{"use strict";var Tj=So(),vwe=w6(),hwe=N0();function dwe(e,r,t){var a=r.contours,n=r.line,i=a.size||1,o=a.coloring,l=vwe(r,{isColorbar:!0});if(o==="heatmap"){var s=Tj.extractOpts(r);t._fillgradient=s.reversescale?Tj.flipScale(s.colorscale):s.colorscale,t._zrange=[s.min,s.max]}else o==="fill"&&(t._fillcolor=l);t._line={color:o==="lines"?l:n.color,width:a.showlines!==!1?n.width:0,dash:n.dash},t._levels={start:a.start,end:hwe(a),size:i}}Aj.exports={min:"zmin",max:"zmax",calc:dwe}});var M6=N((dIe,Mj)=>{"use strict";var Dg=Tr(),pwe=bg();Mj.exports=function(r,t,a,n,i){i||(i={}),i.isContour=!0;var o=pwe(r,t,a,n,i);return o&&o.forEach(function(l){var s=l.trace;s.contours.type==="constraint"&&(s.fillcolor&&Dg.opacity(s.fillcolor)?l.color=Dg.addOpacity(s.fillcolor,1):s.contours.showlines&&Dg.opacity(s.line.color)&&(l.color=Dg.addOpacity(s.line.color,1)))}),o}});var Sj=N((pIe,kj)=>{"use strict";kj.exports={attributes:c6(),supplyDefaults:HW(),crossTraceDefaults:wg(),calc:m6(),plot:x6().plot,layerName:"contourlayer",style:T6(),colorbar:A6(),hoverPoints:M6(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:qi(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Lj=N((yIe,qj)=>{"use strict";qj.exports=Sj()});var Nj=N((mIe,Fj)=>{"use strict";var Cj=Rr(),ywe=h6(),Rj=Tr(),Ej=Rj.addOpacity,mwe=Rj.opacity,Pj=Mg(),Dj=Ce().isArrayOrTypedArray,gwe=Pj.CONSTRAINT_REDUCTION,bwe=Pj.COMPARISON_OPS2;Fj.exports=function(r,t,a,n,i,o){var l=t.contours,s,u,f,c=a("contours.operation");if(l._operation=gwe[c],xwe(a,l),c==="="?s=l.showlines=!0:(s=a("contours.showlines"),f=a("fillcolor",Ej((r.line||{}).color||i,.5))),s){var v=f&&mwe(f)?Ej(t.fillcolor,1):i;u=a("line.color",v),a("line.width",2),a("line.dash")}a("line.smoothing"),ywe(a,n,u,o)};function xwe(e,r){var t;bwe.indexOf(r.operation)===-1?(e("contours.value",[0,1]),Dj(r.value)?r.value.length>2?r.value=r.value.slice(2):r.length===0?r.value=[0,1]:r.length<2?(t=parseFloat(r.value[0]),r.value=[t,t+1]):r.value=[parseFloat(r.value[0]),parseFloat(r.value[1])]:Cj(r.value)&&(t=parseFloat(r.value),r.value=[t,t+1])):(e("contours.value",0),Cj(r.value)||(Dj(r.value)?r.value=parseFloat(r.value[0]):r.value=0))}});var Oj=N((gIe,Ij)=>{"use strict";var k6=Ce(),_we=Hw(),wwe=pc(),Twe=Nj(),Awe=v6(),Mwe=d6(),kwe=E0(),zj=Sg();Ij.exports=function(r,t,a,n){function i(u,f){return k6.coerce(r,t,zj,u,f)}function o(u){return k6.coerce2(r,t,zj,u)}var l=_we(r,t,i,n);if(!l){t.visible=!1;return}wwe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hoverongaps"),i("hovertemplate");var s=i("contours.type")==="constraint";i("connectgaps",k6.isArray1D(t.z)),s?Twe(r,t,i,n,a):(Awe(r,t,i,o),Mwe(r,t,i,n)),t.contours&&t.contours.coloring==="heatmap"&&kwe(i,n),i("zorder")}});var Hj=N((bIe,Bj)=>{"use strict";Bj.exports={attributes:Sg(),supplyDefaults:Oj(),calc:m6(),plot:x6().plot,style:T6(),colorbar:A6(),hoverPoints:M6(),moduleType:"trace",name:"contour",basePlotModule:qi(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var Gj=N((xIe,Uj)=>{"use strict";Uj.exports=Hj()});var S6=N((_Ie,Vj)=>{"use strict";var Swe=Ta().hovertemplateAttrs,qwe=Ta().texttemplateAttrs,Lwe=Dy(),ni=wi(),Cwe=mn(),Yj=ko(),Ewe=ui().dash,gs=xt().extendFlat,Pi=ni.marker,B0=ni.line,Dwe=Pi.line;Vj.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:gs({},ni.mode,{dflt:"markers"}),text:gs({},ni.text,{}),texttemplate:qwe({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:gs({},ni.hovertext,{}),line:{color:B0.color,width:B0.width,dash:Ewe,backoff:B0.backoff,shape:gs({},B0.shape,{values:["linear","spline"]}),smoothing:B0.smoothing,editType:"calc"},connectgaps:ni.connectgaps,cliponaxis:ni.cliponaxis,fill:gs({},ni.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Lwe(),marker:gs({symbol:Pi.symbol,opacity:Pi.opacity,angle:Pi.angle,angleref:Pi.angleref,standoff:Pi.standoff,maxdisplayed:Pi.maxdisplayed,size:Pi.size,sizeref:Pi.sizeref,sizemin:Pi.sizemin,sizemode:Pi.sizemode,line:gs({width:Dwe.width,editType:"calc"},Yj("marker.line")),gradient:Pi.gradient,editType:"calc"},Yj("marker")),textfont:ni.textfont,textposition:ni.textposition,selected:ni.selected,unselected:ni.unselected,hoverinfo:gs({},Cwe.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:ni.hoveron,hovertemplate:Swe()}});var Xj=N((wIe,Zj)=>{"use strict";var Wj=Ce(),Rwe=Vh(),Xc=Dn(),Pwe=G_(),Fwe=Y_(),jj=V_(),Nwe=W_(),zwe=j_(),Iwe=S6();Zj.exports=function(r,t,a,n){function i(v,d){return Wj.coerce(r,t,Iwe,v,d)}var o=i("a"),l=i("b"),s=i("c"),u;if(o?(u=o.length,l?(u=Math.min(u,l.length),s&&(u=Math.min(u,s.length))):s?u=Math.min(u,s.length):u=0):l&&s&&(u=Math.min(l.length,s.length)),!u){t.visible=!1;return}t._length=u,i("sum"),i("text"),i("hovertext"),t.hoveron!=="fills"&&i("hovertemplate");var f=u{"use strict";var q6=Ir();Jj.exports=function(r,t,a){var n={},i=a[t.subplot]._subplot;return n.aLabel=q6.tickText(i.aaxis,r.a,!0).text,n.bLabel=q6.tickText(i.baxis,r.b,!0).text,n.cLabel=q6.tickText(i.caxis,r.c,!0).text,n}});var rZ=N((AIe,eZ)=>{"use strict";var L6=Rr(),Owe=J_(),Bwe=lm(),Hwe=sm(),Uwe=um().calcMarkerSize,Kj=["a","b","c"],Qj={a:["b","c"],b:["a","c"],c:["a","b"]};eZ.exports=function(r,t){var a=r._fullLayout[t.subplot],n=a.sum,i=t.sum||n,o={a:t.a,b:t.b,c:t.c},l=t.ids,s,u,f,c,v,d;for(s=0;s{"use strict";var Gwe=s4();tZ.exports=function(r,t,a){var n=t.plotContainer;n.select(".scatterlayer").selectAll("*").remove();for(var i=t.xaxis,o=t.yaxis,l={xaxis:i,yaxis:o,plot:n,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},s=t.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var Ywe=d4();nZ.exports=function(r,t,a,n){var i=Ywe(r,t,a,n);if(!i||i[0].index===!1)return;var o=i[0];if(o.index===void 0){var l=1-o.y0/r.ya._length,s=r.xa._length,u=s*l/2,f=s-u;return o.x0=Math.max(Math.min(o.x0,f),u),o.x1=Math.max(Math.min(o.x1,f),u),i}var c=o.cd[o.index],v=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[v.subplot]={_subplot:d};var m=v._module.formatLabels(c,v,p);o.aLabel=m.aLabel,o.bLabel=m.bLabel,o.cLabel=m.cLabel;var y=c.hi||v.hoverinfo,x=[];function w(b,T){x.push(b._hovertitle+": "+T)}if(!v.hovertemplate){var _=y.split("+");_.indexOf("all")!==-1&&(_=["a","b","c"]),_.indexOf("a")!==-1&&w(d.aaxis,o.aLabel),_.indexOf("b")!==-1&&w(d.baxis,o.bLabel),_.indexOf("c")!==-1&&w(d.caxis,o.cLabel)}return o.extraText=x.join("
"),o.hovertemplate=v.hovertemplate,i}});var lZ=N((SIe,oZ)=>{"use strict";oZ.exports=function(r,t,a,n,i){if(t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),n[i]){var o=n[i];r.a=o.a,r.b=o.b,r.c=o.c}else r.a=t.a,r.b=t.b,r.c=t.c;return r}});var gZ=N((qIe,mZ)=>{"use strict";var hZ=Sr(),Vwe=kn(),C6=gr(),Ml=Ce(),Yo=Ml.strTranslate,Rg=Ml._,$c=Tr(),Pg=Wr(),H0=Xf(),E6=xt().extendFlat,Wwe=aa(),bs=Ir(),sZ=pi(),uZ=Pn(),dZ=bu(),fZ=dZ.freeMode,jwe=dZ.rectMode,D6=Zf(),Zwe=zo().prepSelect,Xwe=zo().selectOnClick,Jwe=zo().clearOutline,$we=zo().clearSelectionsCache,pZ=Ea();function yZ(e,r){this.id=e.id,this.graphDiv=e.graphDiv,this.init(r),this.makeFramework(r),this.updateFx(r),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}mZ.exports=yZ;var Vo=yZ.prototype;Vo.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Vo.plot=function(e,r){var t=this,a=r[t.id],n=r._size;t._hasClipOnAxisFalse=!1;for(var i=0;iJc*u?(x=u,y=x*Jc):(y=s,x=y/Jc),w=o*y/s,_=l*x/u,p=r.l+r.w*n-y/2,m=r.t+r.h*(1-i)-x/2,t.x0=p,t.y0=m,t.w=y,t.h=x,t.sum=f,t.xaxis={type:"linear",range:[c+2*d-f,f-c-2*v],domain:[n-w/2,n+w/2],_id:"x"},H0(t.xaxis,t.graphDiv._fullLayout),t.xaxis.setScale(),t.xaxis.isPtWithinRange=function(O){return O.a>=t.aaxis.range[0]&&O.a<=t.aaxis.range[1]&&O.b>=t.baxis.range[1]&&O.b<=t.baxis.range[0]&&O.c>=t.caxis.range[1]&&O.c<=t.caxis.range[0]},t.yaxis={type:"linear",range:[c,f-v-d],domain:[i-_/2,i+_/2],_id:"y"},H0(t.yaxis,t.graphDiv._fullLayout),t.yaxis.setScale(),t.yaxis.isPtWithinRange=function(){return!0};var b=t.yaxis.domain[0],T=t.aaxis=E6({},e.aaxis,{range:[c,f-v-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[b,b+_*Jc],anchor:"free",position:0,_id:"y",_length:y});H0(T,t.graphDiv._fullLayout),T.setScale();var k=t.baxis=E6({},e.baxis,{range:[f-c-d,v],side:"bottom",domain:t.xaxis.domain,anchor:"free",position:0,_id:"x",_length:y});H0(k,t.graphDiv._fullLayout),k.setScale();var M=t.caxis=E6({},e.caxis,{range:[f-c-v,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[b,b+_*Jc],anchor:"free",position:0,_id:"y",_length:y});H0(M,t.graphDiv._fullLayout),M.setScale();var S="M"+p+","+(m+x)+"h"+y+"l-"+y/2+",-"+x+"Z";t.clipDef.select("path").attr("d",S),t.layers.plotbg.select("path").attr("d",S);var E="M0,"+x+"h"+y+"l-"+y/2+",-"+x+"Z";t.clipDefRelative.select("path").attr("d",E);var D=Yo(p,m);t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",D),t.clipDefRelative.select("path").attr("transform",null);var P=Yo(p-k._offset,m+x);t.layers.baxis.attr("transform",P),t.layers.bgrid.attr("transform",P);var R=Yo(p+y/2,m)+"rotate(30)"+Yo(0,-T._offset);t.layers.aaxis.attr("transform",R),t.layers.agrid.attr("transform",R);var z=Yo(p+y/2,m)+"rotate(-30)"+Yo(0,-M._offset);t.layers.caxis.attr("transform",z),t.layers.cgrid.attr("transform",z),t.drawAxes(!0),t.layers.aline.select("path").attr("d",T.showline?"M"+p+","+(m+x)+"l"+y/2+",-"+x:"M0,0").call($c.stroke,T.linecolor||"#000").style("stroke-width",(T.linewidth||0)+"px"),t.layers.bline.select("path").attr("d",k.showline?"M"+p+","+(m+x)+"h"+y:"M0,0").call($c.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),t.layers.cline.select("path").attr("d",M.showline?"M"+(p+y/2)+","+m+"l"+y/2+","+x:"M0,0").call($c.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),t.graphDiv._context.staticPlot||t.initInteractions(),Pg.setClipUrl(t.layers.frontplot,t._hasClipOnAxisFalse?null:t.clipId,t.graphDiv)};Vo.drawAxes=function(e){var r=this,t=r.graphDiv,a=r.id.substr(7)+"title",n=r.layers,i=r.aaxis,o=r.baxis,l=r.caxis;if(r.drawAx(i),r.drawAx(o),r.drawAx(l),e){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(l.showticklabels?l.tickfont.size*.75:0)+(l.ticks==="outside"?l.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;n["a-title"]=D6.draw(t,"a"+a,{propContainer:i,propName:r.id+".aaxis.title",placeholder:Rg(t,"Click to enter Component A title"),attributes:{x:r.x0+r.w/2,y:r.y0-i.title.font.size/3-s,"text-anchor":"middle"}}),n["b-title"]=D6.draw(t,"b"+a,{propContainer:o,propName:r.id+".baxis.title",placeholder:Rg(t,"Click to enter Component B title"),attributes:{x:r.x0-u,y:r.y0+r.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),n["c-title"]=D6.draw(t,"c"+a,{propContainer:l,propName:r.id+".caxis.title",placeholder:Rg(t,"Click to enter Component C title"),attributes:{x:r.x0+r.w+u,y:r.y0+r.h+l.title.font.size*.83+u,"text-anchor":"middle"}})}};Vo.drawAx=function(e){var r=this,t=r.graphDiv,a=e._name,n=a.charAt(0),i=e._id,o=r.layers[a],l=30,s=n+"tickLayout",u=Kwe(e);r[s]!==u&&(o.selectAll("."+i+"tick").remove(),r[s]=u),e.setScale();var f=bs.calcTicks(e),c=bs.clipEnds(e,f),v=bs.makeTransTickFn(e),d=bs.getTickSigns(e)[2],p=Ml.deg2rad(l),m=d*(e.linewidth||1)/2,y=d*e.ticklen,x=r.w,w=r.h,_=n==="b"?"M0,"+m+"l"+Math.sin(p)*y+","+Math.cos(p)*y:"M"+m+",0l"+Math.cos(p)*y+","+-Math.sin(p)*y,b={a:"M0,0l"+w+",-"+x/2,b:"M0,0l-"+x/2+",-"+w,c:"M0,0l-"+w+","+x/2}[n];bs.drawTicks(t,e,{vals:e.ticks==="inside"?c:f,layer:o,path:_,transFn:v,crisp:!1}),bs.drawGrid(t,e,{vals:c,layer:r.layers[n+"grid"],path:b,transFn:v,crisp:!1}),bs.drawLabels(t,e,{vals:f,layer:o,transFn:v,labelFns:bs.makeLabelFns(e,0,l)})};function Kwe(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var La=pZ.MINZOOM/2+.87,Qwe="m-0.87,.5h"+La+"v3h-"+(La+5.2)+"l"+(La/2+2.6)+",-"+(La*.87+4.5)+"l2.6,1.5l-"+La/2+","+La*.87+"Z",e6e="m0.87,.5h-"+La+"v3h"+(La+5.2)+"l-"+(La/2+2.6)+",-"+(La*.87+4.5)+"l-2.6,1.5l"+La/2+","+La*.87+"Z",r6e="m0,1l"+La/2+","+La*.87+"l2.6,-1.5l-"+(La/2+2.6)+",-"+(La*.87+4.5)+"l-"+(La/2+2.6)+","+(La*.87+4.5)+"l2.6,1.5l"+La/2+",-"+La*.87+"Z",t6e="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",cZ=!0;Vo.clearOutline=function(){$we(this.dragOptions),Jwe(this.dragOptions.gd)};Vo.initInteractions=function(){var e=this,r=e.layers.plotbg.select("path").node(),t=e.graphDiv,a=t._fullLayout._zoomlayer,n,i;this.dragOptions={element:r,gd:t,plotinfo:{id:e.id,domain:t._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(P,R,z){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=t._fullLayout._invScaleX,i=t._fullLayout._invScaleY;var O=e.dragOptions.dragmode=t._fullLayout.dragmode;fZ(O)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,O==="zoom"?(e.dragOptions.moveFn=k,e.dragOptions.clickFn=x,e.dragOptions.doneFn=M,w(P,R,z)):O==="pan"?(e.dragOptions.moveFn=E,e.dragOptions.clickFn=x,e.dragOptions.doneFn=D,S(),e.clearOutline(t)):(jwe(O)||fZ(O))&&Zwe(P,R,z,e.dragOptions,O)}};var o,l,s,u,f,c,v,d,p,m;function y(P){var R={};return R[e.id+".aaxis.min"]=P.a,R[e.id+".baxis.min"]=P.b,R[e.id+".caxis.min"]=P.c,R}function x(P,R){var z=t._fullLayout.clickmode;vZ(t),P===2&&(t.emit("plotly_doubleclick",null),C6.call("_guiRelayout",t,y({a:0,b:0,c:0}))),z.indexOf("select")>-1&&P===1&&Xwe(R,t,[e.xaxis],[e.yaxis],e.id,e.dragOptions),z.indexOf("event")>-1&&uZ.click(t,R,e.id)}function w(P,R,z){var O=r.getBoundingClientRect();o=R-O.left,l=z-O.top,t._fullLayout._calcInverseTransform(t);var B=t._fullLayout._invTransform,V=Ml.apply3DTransform(B)(o,l);o=V[0],l=V[1],s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s,u=e.aaxis.range[1]-s.a,c=Vwe(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),v="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=a.append("path").attr("class","zoombox").attr("transform",Yo(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),m=a.append("path").attr("class","zoombox-corners").attr("transform",Yo(e.x0,e.y0)).style({fill:$c.background,stroke:$c.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(t)}function _(P,R){return 1-R/e.h}function b(P,R){return 1-(P+(e.h-R)/Math.sqrt(3))/e.w}function T(P,R){return(P-(e.h-R)/Math.sqrt(3))/e.w}function k(P,R){var z=o+P*n,O=l+R*i,B=Math.max(0,Math.min(1,_(o,l),_(z,O))),V=Math.max(0,Math.min(1,b(o,l),b(z,O))),G=Math.max(0,Math.min(1,T(o,l),T(z,O))),U=(B/2+G)*e.w,Y=(1-B/2-V)*e.w,X=(U+Y)/2,Z=Y-U,re=(1-B)*e.h,ce=re-Z/Jc;Z.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),m.transition().style("opacity",1).duration(200),d=!0),t.emit("plotly_relayouting",y(f))}function M(){vZ(t),f!==s&&(C6.call("_guiRelayout",t,y(f)),cZ&&t.data&&t._context.showTips&&(Ml.notifier(Rg(t,"Double-click to zoom back out"),"long"),cZ=!1))}function S(){s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s}function E(P,R){var z=P/e.xaxis._m,O=R/e.yaxis._m;f={a:s.a-O,b:s.b+(z+O)/2,c:s.c-(z-O)/2};var B=[f.a,f.b,f.c].sort(Ml.sorterAsc),V={a:B.indexOf(f.a),b:B.indexOf(f.b),c:B.indexOf(f.c)};B[0]<0&&(B[1]+B[0]/2<0?(B[2]+=B[0]+B[1],B[0]=B[1]=0):(B[2]+=B[0]/2,B[1]+=B[0]/2,B[0]=0),f={a:B[V.a],b:B[V.b],c:B[V.c]},R=(s.a-f.a)*e.yaxis._m,P=(s.c-f.c-s.b+f.b)*e.xaxis._m);var G=Yo(e.x0+P,e.y0+R);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",G);var U=Yo(-P,-R);e.clipDefRelative.select("path").attr("transform",U),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(Pg.hideOutsideRangePoints,e),t.emit("plotly_relayouting",y(f))}function D(){C6.call("_guiRelayout",t,y(f))}r.onmousemove=function(P){uZ.hover(t,P,e.id),t._fullLayout._lasthover=r,t._fullLayout._hoversubplot=e.id},r.onmouseout=function(P){t._dragging||sZ.unhover(t,P)},sZ.init(this.dragOptions)};function vZ(e){hZ.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var F6=N((LIe,bZ)=>{"use strict";var a6e=si(),n6e=Pc().attributes,nt=hi(),i6e=Xi().overrideAll,R6=xt().extendFlat,P6={title:{text:nt.title.text,font:nt.title.font},color:nt.color,tickmode:nt.minor.tickmode,nticks:R6({},nt.nticks,{dflt:6,min:1}),tick0:nt.tick0,dtick:nt.dtick,tickvals:nt.tickvals,ticktext:nt.ticktext,ticks:nt.ticks,ticklen:nt.ticklen,tickwidth:nt.tickwidth,tickcolor:nt.tickcolor,ticklabelstep:nt.ticklabelstep,showticklabels:nt.showticklabels,labelalias:nt.labelalias,showtickprefix:nt.showtickprefix,tickprefix:nt.tickprefix,showticksuffix:nt.showticksuffix,ticksuffix:nt.ticksuffix,showexponent:nt.showexponent,exponentformat:nt.exponentformat,minexponent:nt.minexponent,separatethousands:nt.separatethousands,tickfont:nt.tickfont,tickangle:nt.tickangle,tickformat:nt.tickformat,tickformatstops:nt.tickformatstops,hoverformat:nt.hoverformat,showline:R6({},nt.showline,{dflt:!0}),linecolor:nt.linecolor,linewidth:nt.linewidth,showgrid:R6({},nt.showgrid,{dflt:!0}),gridcolor:nt.gridcolor,gridwidth:nt.gridwidth,griddash:nt.griddash,layer:nt.layer,min:{valType:"number",dflt:0,min:0}},Fg=bZ.exports=i6e({domain:n6e({name:"ternary"}),bgcolor:{valType:"color",dflt:a6e.background},sum:{valType:"number",dflt:1,min:0},aaxis:P6,baxis:P6,caxis:P6},"plot","from-root");Fg.uirevision={valType:"any",editType:"none"};Fg.aaxis.uirevision=Fg.baxis.uirevision=Fg.caxis.uirevision={valType:"any",editType:"none"}});var _Z=N((CIe,xZ)=>{"use strict";var o6e=Ce(),l6e=At(),s6e=Pc().defaults;xZ.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,s=n.partition||"x",u=t._subplots[i],f=u.length,c=f&&u[0].replace(/\d+$/,""),v,d;function p(w,_){return o6e.coerce(v,d,o,w,_)}for(var m=0;m{"use strict";var u6e=Tr(),f6e=At(),Ng=Ce(),c6e=_Z(),v6e=o1(),h6e=l1(),d6e=n1(),p6e=a1(),y6e=m4(),TZ=F6(),wZ=["aaxis","baxis","caxis"];AZ.exports=function(r,t,a){c6e(r,t,a,{type:"ternary",attributes:TZ,handleDefaults:m6e,font:t.font,paper_bgcolor:t.paper_bgcolor})};function m6e(e,r,t,a){var n=t("bgcolor"),i=t("sum");a.bgColor=u6e.combine(n,a.paper_bgcolor);for(var o,l,s,u=0;u=i&&(f.min=0,c.min=0,v.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function g6e(e,r,t,a){var n=TZ[r._name];function i(d,p){return Ng.coerce(e,r,n,d,p)}i("uirevision",a.uirevision),r.type="linear";var o=i("color"),l=o!==n.color.dflt?o:t.font.color,s=r._name,u=s.charAt(0).toUpperCase(),f="Component "+u,c=i("title.text",f);r._hovertitle=c===f?c:u,Ng.coerceFont(i,"title.font",t.font,{overrideDflt:{size:Ng.bigFont(t.font.size),color:l}}),i("min"),p6e(e,r,i,"linear"),h6e(e,r,i,"linear"),v6e(e,r,i,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),d6e(e,r,i,{outerTicks:!0});var v=i("showticklabels");v&&(Ng.coerceFont(i,"tickfont",t.font,{overrideDflt:{color:l}}),i("tickangle"),i("tickformat")),y6e(e,r,i,{dfltColor:o,bgColor:t.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i("hoverformat"),i("layer")}});var kZ=N(Fi=>{"use strict";var b6e=gZ(),x6e=Xp().getSubplotCalcData,_6e=Ce().counterRegex,Kc="ternary";Fi.name=Kc;var w6e=Fi.attr="subplot";Fi.idRoot=Kc;Fi.idRegex=Fi.attrRegex=_6e(Kc);var T6e=Fi.attributes={};T6e[w6e]={valType:"subplotid",dflt:"ternary",editType:"calc"};Fi.layoutAttributes=F6();Fi.supplyLayoutDefaults=MZ();Fi.plot=function(r){for(var t=r._fullLayout,a=r.calcdata,n=t._subplots[Kc],i=0;i{"use strict";SZ.exports={attributes:S6(),supplyDefaults:Xj(),colorbar:u0(),formatLabels:$j(),calc:rZ(),plot:aZ(),style:ku().style,styleOnSelect:ku().styleOnSelect,hoverPoints:iZ(),selectPoints:p4(),eventData:lZ(),moduleType:"trace",name:"scatterternary",basePlotModule:kZ(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var CZ=N((PIe,LZ)=>{"use strict";LZ.exports=qZ()});var N6=N((FIe,DZ)=>{"use strict";var ba=ng(),Qc=xt().extendFlat,EZ=Qi().axisHoverFormat;DZ.exports={y:ba.y,x:ba.x,x0:ba.x0,y0:ba.y0,xhoverformat:EZ("x"),yhoverformat:EZ("y"),name:Qc({},ba.name,{}),orientation:Qc({},ba.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:ba.fillcolor,points:Qc({},ba.boxpoints,{}),jitter:Qc({},ba.jitter,{}),pointpos:Qc({},ba.pointpos,{}),width:Qc({},ba.width,{}),marker:ba.marker,text:ba.text,hovertext:ba.hovertext,hovertemplate:ba.hovertemplate,quartilemethod:ba.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:ba.offsetgroup,alignmentgroup:ba.alignmentgroup,selected:ba.selected,unselected:ba.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:ba.zorder}});var O6=N((NIe,RZ)=>{"use strict";var z6=ig(),I6=Ce().extendFlat;RZ.exports={violinmode:I6({},z6.boxmode,{}),violingap:I6({},z6.boxgap,{}),violingroupgap:I6({},z6.boxgroupgap,{})}});var IZ=N((zIe,zZ)=>{"use strict";var PZ=Ce(),A6e=Tr(),FZ=L0(),NZ=N6();zZ.exports=function(r,t,a,n){function i(T,k){return PZ.coerce(r,t,NZ,T,k)}function o(T,k){return PZ.coerce2(r,t,NZ,T,k)}if(FZ.handleSampleDefaults(r,t,i,n),t.visible!==!1){i("bandwidth"),i("side");var l=i("width");l||(i("scalegroup",t.name),i("scalemode"));var s=i("span"),u;Array.isArray(s)&&(u="manual"),i("spanmode",u);var f=i("line.color",(r.marker||{}).color||a),c=i("line.width"),v=i("fillcolor",A6e.addOpacity(t.line.color,.5));FZ.handlePointsDefaults(r,t,i,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",v),m=o("box.line.color",f),y=o("box.line.width",c),x=i("box.visible",!!(d||p||m||y));x||(t.box={visible:!1});var w=o("meanline.color",f),_=o("meanline.width",c),b=i("meanline.visible",!!(w||_));b||(t.meanline={visible:!1}),i("quartilemethod"),i("zorder")}}});var BZ=N((IIe,OZ)=>{"use strict";var M6e=Ce(),k6e=O6(),S6e=Sw();OZ.exports=function(r,t,a){function n(i,o){return M6e.coerce(r,t,k6e,i,o)}S6e._supply(r,t,a,n,"violin")}});var zg=N(Uu=>{"use strict";var q6e=Ce(),L6e={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};Uu.makeKDE=function(e,r,t){var a=t.length,n=L6e.gaussian,i=e.bandwidth,o=1/(a*i);return function(l){for(var s=0,u=0;u{"use strict";var B6=Ce(),H6=Ir(),C6e=Cw(),HZ=zg(),E6e=Nt().BADNUM;UZ.exports=function(r,t){var a=C6e(r,t);if(a[0].t.empty)return a;for(var n=r._fullLayout,i=H6.getFromId(r,t[t.orientation==="h"?"xaxis":"yaxis"]),o=1/0,l=-1/0,s=0,u=0,f=0;f{"use strict";var F6e=Ew().setPositionOffset,YZ=["v","h"];VZ.exports=function(r,t){for(var a=r.calcdata,n=t.xaxis,i=t.yaxis,o=0;o{"use strict";var U6=Sr(),G6=Ce(),N6e=Wr(),Y6=Dw(),z6e=l4(),I6e=zg();jZ.exports=function(r,t,a,n){var i=r._context.staticPlot,o=r._fullLayout,l=t.xaxis,s=t.yaxis;function u(f,c){var v=z6e(f,{xaxis:l,yaxis:s,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return N6e.smoothopen(v[0],1)}G6.makeTraceGroups(n,a,"trace violins").each(function(f){var c=U6.select(this),v=f[0],d=v.t,p=v.trace;if(p.visible!==!0||d.empty){c.remove();return}var m=d.bPos,y=d.bdPos,x=t[d.valLetter+"axis"],w=t[d.posLetter+"axis"],_=p.side==="both",b=_||p.side==="positive",T=_||p.side==="negative",k=c.selectAll("path.violin").data(G6.identity);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","violin"),k.exit().remove(),k.each(function(O){var B=U6.select(this),V=O.density,G=V.length,U=w.c2l(O.pos+m,!0),Y=w.l2p(U),X;if(p.width)X=d.maxKDE/y;else{var Z=o._violinScaleGroupStats[p.scalegroup];X=p.scalemode==="count"?Z.maxKDE/y*(Z.maxCount/O.pts.length):Z.maxKDE/y}var re,ce,oe,fe,K,Te,le;if(b){for(Te=new Array(G),fe=0;fe{"use strict";var XZ=Sr(),ev=Tr(),O6e=ku().stylePoints;JZ.exports=function(r){var t=XZ.select(r).selectAll("g.trace.violins");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=a[0].trace,i=XZ.select(this),o=n.box||{},l=o.line||{},s=n.meanline||{},u=s.width;i.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(ev.stroke,n.line.color).call(ev.fill,n.fillcolor),i.selectAll("path.box").style("stroke-width",l.width+"px").call(ev.stroke,l.color).call(ev.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};i.selectAll("path.mean").style(f).call(ev.stroke,s.color),i.selectAll("path.meanline").style(f).call(ev.stroke,s.color),O6e(i,n,r)})}});var rX=N((YIe,eX)=>{"use strict";var B6e=Tr(),V6=Ce(),H6e=Ir(),KZ=Iw(),QZ=zg();eX.exports=function(r,t,a,n,i){i||(i={});var o=i.hoverLayer,l=r.cd,s=l[0].trace,u=s.hoveron,f=u.indexOf("violins")!==-1,c=u.indexOf("kde")!==-1,v=[],d,p;if(f||c){var m=KZ.hoverOnBoxes(r,t,a,n);if(c&&m.length>0){var y=r.xa,x=r.ya,w,_,b,T,k;s.orientation==="h"?(k=t,w="y",b=x,_="x",T=y):(k=a,w="x",b=y,_="y",T=x);var M=l[r.index];if(k>=M.span[0]&&k<=M.span[1]){var S=V6.extendFlat({},r),E=T.c2p(k,!0),D=QZ.getKdeValue(M,s,k),P=QZ.getPositionOnKdePath(M,s,E),R=b._offset,z=b._length;S[w+"0"]=P[0],S[w+"1"]=P[1],S[_+"0"]=S[_+"1"]=E,S[_+"Label"]=_+": "+H6e.hoverLabelText(T,k,s[_+"hoverformat"])+", "+l[0].t.labels.kde+" "+D.toFixed(3);for(var O=0,B=0;B{"use strict";tX.exports={attributes:N6(),layoutAttributes:O6(),supplyDefaults:IZ(),crossTraceDefaults:L0().crossTraceDefaults,supplyLayoutDefaults:BZ(),calc:GZ(),crossTraceCalc:WZ(),plot:ZZ(),style:$Z(),styleOnSelect:ku().styleOnSelect,hoverPoints:rX(),selectPoints:Ow(),moduleType:"trace",name:"violin",basePlotModule:qi(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var iX=N((WIe,nX)=>{"use strict";nX.exports=aX()});var rv=N((jIe,oX)=>{"use strict";oX.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var r=e.slice(0,3);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var r=e.slice(0,4);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%",""]}}}});var W6=N((ZIe,sX)=>{"use strict";var U6e=mn(),G6e=wi().zorder,Y6e=Ta().hovertemplateAttrs,lX=xt().extendFlat,V6e=rv().colormodel,G0=["rgb","rgba","rgba256","hsl","hsla"],W6e=[],j6e=[];for(tv=0;tv{"use strict";var Z6e=Ce(),X6e=W6(),uX=rv(),J6e=yl().IMAGE_URL_PREFIX;fX.exports=function(r,t){function a(o,l){return Z6e.coerce(r,t,X6e,o,l)}a("source"),t.source&&!t.source.match(J6e)&&delete t.source,t._hasSource=!!t.source;var n=a("z");if(t._hasZ=!(n===void 0||!n.length||!n[0]||!n[0].length),!t._hasZ&&!t._hasSource){t.visible=!1;return}a("x0"),a("y0"),a("dx"),a("dy");var i;t._hasZ?(a("colormodel","rgb"),i=uX.colormodel[t.colormodel],a("zmin",i.zminDflt||i.min),a("zmax",i.zmaxDflt||i.max)):t._hasSource&&(t.colormodel="rgba256",i=uX.colormodel[t.colormodel],t.zmin=i.zminDflt,t.zmax=i.zmaxDflt),a("zsmooth"),a("text"),a("hovertext"),a("hovertemplate"),t._length=null,a("zorder")}});var kl=N((JIe,j6)=>{typeof Object.create=="function"?j6.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:j6.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var Z6=N(($Ie,vX)=>{vX.exports=Qs().EventEmitter});var pX=N(Ig=>{"use strict";Ig.byteLength=K6e;Ig.toByteArray=e7e;Ig.fromByteArray=a7e;var Wo=[],Ni=[],$6e=typeof Uint8Array!="undefined"?Uint8Array:Array,X6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Gu=0,hX=X6.length;Gu0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function K6e(e){var r=dX(e),t=r[0],a=r[1];return(t+a)*3/4-a}function Q6e(e,r,t){return(r+t)*3/4-t}function e7e(e){var r,t=dX(e),a=t[0],n=t[1],i=new $6e(Q6e(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=Ni[e.charCodeAt(s)]<<2|Ni[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=Ni[e.charCodeAt(s)]<<10|Ni[e.charCodeAt(s+1)]<<4|Ni[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function r7e(e){return Wo[e>>18&63]+Wo[e>>12&63]+Wo[e>>6&63]+Wo[e&63]}function t7e(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(Wo[r>>2]+Wo[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Wo[r>>10]+Wo[r>>4&63]+Wo[r<<2&63]+"=")),n.join("")}});var yX=N(J6=>{J6.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,f=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-f)-1,d>>=-f,f+=l;f>0;i=i*256+e[r+c],c+=v,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=a;f>0;o=o*256+e[r+c],c+=v,f-=8);if(i===0)i=1-u;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-u}return(d?-1:1)*o*Math.pow(2,i-a)};J6.write=function(e,r,t,a,n,i){var o,l,s,u=i*8-n-1,f=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,m=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=f?(l=0,o=f):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,u-=8);e[t+d-p]|=m*128}});var lv=N(ov=>{"use strict";var $6=pX(),nv=yX(),mX=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ov.Buffer=We;ov.SlowBuffer=u7e;ov.INSPECT_MAX_BYTES=50;var Og=2147483647;ov.kMaxLength=Og;We.TYPED_ARRAY_SUPPORT=n7e();!We.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function n7e(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(We.prototype,"parent",{enumerable:!0,get:function(){if(We.isBuffer(this))return this.buffer}});Object.defineProperty(We.prototype,"offset",{enumerable:!0,get:function(){if(We.isBuffer(this))return this.byteOffset}});function Sl(e){if(e>Og)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,We.prototype),r}function We(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return r7(e)}return _X(e,r,t)}We.poolSize=8192;function _X(e,r,t){if(typeof e=="string")return o7e(e,r);if(ArrayBuffer.isView(e))return l7e(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(jo(e,ArrayBuffer)||e&&jo(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(jo(e,SharedArrayBuffer)||e&&jo(e.buffer,SharedArrayBuffer)))return Q6(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return We.from(a,r,t);let n=s7e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return We.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}We.from=function(e,r,t){return _X(e,r,t)};Object.setPrototypeOf(We.prototype,Uint8Array.prototype);Object.setPrototypeOf(We,Uint8Array);function wX(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function i7e(e,r,t){return wX(e),e<=0?Sl(e):r!==void 0?typeof t=="string"?Sl(e).fill(r,t):Sl(e).fill(r):Sl(e)}We.alloc=function(e,r,t){return i7e(e,r,t)};function r7(e){return wX(e),Sl(e<0?0:t7(e)|0)}We.allocUnsafe=function(e){return r7(e)};We.allocUnsafeSlow=function(e){return r7(e)};function o7e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!We.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=TX(e,r)|0,a=Sl(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function K6(e){let r=e.length<0?0:t7(e.length)|0,t=Sl(r);for(let a=0;a=Og)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Og.toString(16)+" bytes");return e|0}function u7e(e){return+e!=e&&(e=0),We.alloc(+e)}We.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==We.prototype};We.compare=function(r,t){if(jo(r,Uint8Array)&&(r=We.from(r,r.offset,r.byteLength)),jo(t,Uint8Array)&&(t=We.from(t,t.offset,t.byteLength)),!We.isBuffer(r)||!We.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(We.isBuffer(o)||(o=We.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(We.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function TX(e,r){if(We.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||jo(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return e7(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return DX(e).length;default:if(n)return a?-1:e7(e).length;r=(""+r).toLowerCase(),n=!0}}We.byteLength=TX;function f7e(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return x7e(this,r,t);case"utf8":case"utf-8":return MX(this,r,t);case"ascii":return g7e(this,r,t);case"latin1":case"binary":return b7e(this,r,t);case"base64":return y7e(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _7e(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}We.prototype._isBuffer=!0;function Yu(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}We.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};mX&&(We.prototype[mX]=We.prototype.inspect);We.prototype.compare=function(r,t,a,n,i){if(jo(r,Uint8Array)&&(r=We.from(r,r.offset,r.byteLength)),!We.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),u=this.slice(n,i),f=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,n7(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=We.from(r,a)),We.isBuffer(r))return r.length===0?-1:gX(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):gX(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function gX(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(f,c){return i===1?f[c]:f.readUInt16BE(c*i)}let u;if(n){let f=-1;for(u=t;uo&&(t=o-l),u=t;u>=0;u--){let f=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return c7e(this,r,t,a);case"utf8":case"utf-8":return v7e(this,r,t,a);case"ascii":case"latin1":case"binary":return h7e(this,r,t,a);case"base64":return d7e(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p7e(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};We.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function y7e(e,r,t){return r===0&&t===e.length?$6.fromByteArray(e):$6.fromByteArray(e.slice(r,t))}function MX(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,u,f,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],u=e[n+2],(s&192)===128&&(u&192)===128&&(c=(i&15)<<12|(s&63)<<6|u&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],u=e[n+2],f=e[n+3],(s&192)===128&&(u&192)===128&&(f&192)===128&&(c=(i&15)<<18|(s&63)<<12|(u&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return m7e(a)}var bX=4096;function m7e(e){let r=e.length;if(r<=bX)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}We.prototype.readUintLE=We.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||Va(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Va(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};We.prototype.readUint8=We.prototype.readUInt8=function(r,t){return r=r>>>0,t||Va(r,1,this.length),this[r]};We.prototype.readUint16LE=We.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Va(r,2,this.length),this[r]|this[r+1]<<8};We.prototype.readUint16BE=We.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Va(r,2,this.length),this[r]<<8|this[r+1]};We.prototype.readUint32LE=We.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};We.prototype.readUint32BE=We.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};We.prototype.readBigUInt64LE=xs(function(r){r=r>>>0,iv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Y0(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,iv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Y0(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||Va(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};We.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Va(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};We.prototype.readInt8=function(r,t){return r=r>>>0,t||Va(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};We.prototype.readInt16LE=function(r,t){r=r>>>0,t||Va(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};We.prototype.readInt16BE=function(r,t){r=r>>>0,t||Va(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};We.prototype.readInt32LE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};We.prototype.readInt32BE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};We.prototype.readBigInt64LE=xs(function(r){r=r>>>0,iv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Y0(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,iv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Y0(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||Va(r,4,this.length),nv.read(this,r,!0,23,4)};We.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),nv.read(this,r,!1,23,4)};We.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Va(r,8,this.length),nv.read(this,r,!0,52,8)};We.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Va(r,8,this.length),nv.read(this,r,!1,52,8)};function Un(e,r,t,a,n,i){if(!We.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}We.prototype.writeUintLE=We.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;Un(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;Un(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};We.prototype.writeUint8=We.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,1,255,0),this[t]=r&255,t+1};We.prototype.writeUint16LE=We.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};We.prototype.writeUint16BE=We.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};We.prototype.writeUint32LE=We.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};We.prototype.writeUint32BE=We.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function kX(e,r,t,a,n){EX(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function SX(e,r,t,a,n){EX(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}We.prototype.writeBigUInt64LE=xs(function(r,t=0){return kX(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});We.prototype.writeBigUInt64BE=xs(function(r,t=0){return SX(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});We.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Un(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};We.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Un(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};We.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};We.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};We.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};We.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};We.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};We.prototype.writeBigInt64LE=xs(function(r,t=0){return kX(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});We.prototype.writeBigInt64BE=xs(function(r,t=0){return SX(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function qX(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function LX(e,r,t,a,n){return r=+r,t=t>>>0,n||qX(e,r,t,4,34028234663852886e22,-34028234663852886e22),nv.write(e,r,t,a,23,4),t+4}We.prototype.writeFloatLE=function(r,t,a){return LX(this,r,t,!0,a)};We.prototype.writeFloatBE=function(r,t,a){return LX(this,r,t,!1,a)};function CX(e,r,t,a,n){return r=+r,t=t>>>0,n||qX(e,r,t,8,17976931348623157e292,-17976931348623157e292),nv.write(e,r,t,a,52,8),t+8}We.prototype.writeDoubleLE=function(r,t,a){return CX(this,r,t,!0,a)};We.prototype.writeDoubleBE=function(r,t,a){return CX(this,r,t,!1,a)};We.prototype.copy=function(r,t,a,n){if(!We.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=xX(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=xX(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function xX(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function w7e(e,r,t){iv(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&Y0(r,e.length-(t+1))}function EX(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new av.ERR_OUT_OF_RANGE("value",l,e)}w7e(a,n,i)}function iv(e,r){if(typeof e!="number")throw new av.ERR_INVALID_ARG_TYPE(r,"number",e)}function Y0(e,r,t){throw Math.floor(e)!==e?(iv(e,t),new av.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new av.ERR_BUFFER_OUT_OF_BOUNDS:new av.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var T7e=/[^+/0-9A-Za-z-_]/g;function A7e(e){if(e=e.split("=")[0],e=e.trim().replace(T7e,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function e7(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function M7e(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function DX(e){return $6.toByteArray(A7e(e))}function Bg(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function jo(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function n7(e){return e!==e}var S7e=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r}();function xs(e){return typeof BigInt=="undefined"?q7e:e}function q7e(){throw new Error("BigInt not supported")}});var Hg=N((tOe,RX)=>{"use strict";RX.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var V0=N((aOe,PX)=>{"use strict";var L7e=Hg();PX.exports=function(){return L7e()&&!!Symbol.toStringTag}});var i7=N((nOe,FX)=>{"use strict";FX.exports=Object});var zX=N((iOe,NX)=>{"use strict";NX.exports=Error});var OX=N((oOe,IX)=>{"use strict";IX.exports=EvalError});var HX=N((lOe,BX)=>{"use strict";BX.exports=RangeError});var GX=N((sOe,UX)=>{"use strict";UX.exports=ReferenceError});var o7=N((uOe,YX)=>{"use strict";YX.exports=SyntaxError});var sv=N((fOe,VX)=>{"use strict";VX.exports=TypeError});var jX=N((cOe,WX)=>{"use strict";WX.exports=URIError});var XX=N((vOe,ZX)=>{"use strict";ZX.exports=Math.abs});var $X=N((hOe,JX)=>{"use strict";JX.exports=Math.floor});var QX=N((dOe,KX)=>{"use strict";KX.exports=Math.max});var rJ=N((pOe,eJ)=>{"use strict";eJ.exports=Math.min});var aJ=N((yOe,tJ)=>{"use strict";tJ.exports=Math.pow});var iJ=N((mOe,nJ)=>{"use strict";nJ.exports=Math.round});var lJ=N((gOe,oJ)=>{"use strict";oJ.exports=Number.isNaN||function(r){return r!==r}});var uJ=N((bOe,sJ)=>{"use strict";var C7e=lJ();sJ.exports=function(r){return C7e(r)||r===0?r:r<0?-1:1}});var cJ=N((xOe,fJ)=>{"use strict";fJ.exports=Object.getOwnPropertyDescriptor});var Vu=N((_Oe,vJ)=>{"use strict";var Ug=cJ();if(Ug)try{Ug([],"length")}catch(e){Ug=null}vJ.exports=Ug});var W0=N((wOe,hJ)=>{"use strict";var Gg=Object.defineProperty||!1;if(Gg)try{Gg({},"a",{value:1})}catch(e){Gg=!1}hJ.exports=Gg});var yJ=N((TOe,pJ)=>{"use strict";var dJ=typeof Symbol!="undefined"&&Symbol,E7e=Hg();pJ.exports=function(){return typeof dJ!="function"||typeof Symbol!="function"||typeof dJ("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:E7e()}});var l7=N((AOe,mJ)=>{"use strict";mJ.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var s7=N((MOe,gJ)=>{"use strict";var D7e=i7();gJ.exports=D7e.getPrototypeOf||null});var _J=N((kOe,xJ)=>{"use strict";var R7e="Function.prototype.bind called on incompatible ",P7e=Object.prototype.toString,F7e=Math.max,N7e="[object Function]",bJ=function(r,t){for(var a=[],n=0;n{"use strict";var O7e=_J();wJ.exports=Function.prototype.bind||O7e});var Yg=N((qOe,TJ)=>{"use strict";TJ.exports=Function.prototype.call});var u7=N((LOe,AJ)=>{"use strict";AJ.exports=Function.prototype.apply});var kJ=N((COe,MJ)=>{"use strict";MJ.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var qJ=N((EOe,SJ)=>{"use strict";var B7e=uv(),H7e=u7(),U7e=Yg(),G7e=kJ();SJ.exports=G7e||B7e.call(U7e,H7e)});var CJ=N((DOe,LJ)=>{"use strict";var Y7e=uv(),V7e=sv(),W7e=Yg(),j7e=qJ();LJ.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new V7e("a function is required");return j7e(Y7e,W7e,r)}});var NJ=N((ROe,FJ)=>{"use strict";var Z7e=CJ(),EJ=Vu(),RJ;try{RJ=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var f7=!!RJ&&EJ&&EJ(Object.prototype,"__proto__"),PJ=Object,DJ=PJ.getPrototypeOf;FJ.exports=f7&&typeof f7.get=="function"?Z7e([f7.get]):typeof DJ=="function"?function(r){return DJ(r==null?r:PJ(r))}:!1});var HJ=N((POe,BJ)=>{"use strict";var zJ=l7(),IJ=s7(),OJ=NJ();BJ.exports=zJ?function(r){return zJ(r)}:IJ?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return IJ(r)}:OJ?function(r){return OJ(r)}:null});var GJ=N((FOe,UJ)=>{"use strict";var X7e=Function.prototype.call,J7e=Object.prototype.hasOwnProperty,$7e=uv();UJ.exports=$7e.call(X7e,J7e)});var jg=N((NOe,XJ)=>{"use strict";var it,K7e=i7(),Q7e=zX(),eTe=OX(),rTe=HX(),tTe=GX(),hv=o7(),vv=sv(),aTe=jX(),nTe=XX(),iTe=$X(),oTe=QX(),lTe=rJ(),sTe=aJ(),uTe=iJ(),fTe=uJ(),jJ=Function,c7=function(e){try{return jJ('"use strict"; return ('+e+").constructor;")()}catch(r){}},j0=Vu(),cTe=W0(),v7=function(){throw new vv},vTe=j0?function(){try{return arguments.callee,v7}catch(e){try{return j0(arguments,"callee").get}catch(r){return v7}}}():v7,fv=yJ()(),Wa=HJ(),hTe=s7(),dTe=l7(),ZJ=u7(),Z0=Yg(),cv={},pTe=typeof Uint8Array=="undefined"||!Wa?it:Wa(Uint8Array),Wu={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?it:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?it:ArrayBuffer,"%ArrayIteratorPrototype%":fv&&Wa?Wa([][Symbol.iterator]()):it,"%AsyncFromSyncIteratorPrototype%":it,"%AsyncFunction%":cv,"%AsyncGenerator%":cv,"%AsyncGeneratorFunction%":cv,"%AsyncIteratorPrototype%":cv,"%Atomics%":typeof Atomics=="undefined"?it:Atomics,"%BigInt%":typeof BigInt=="undefined"?it:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?it:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?it:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?it:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Q7e,"%eval%":eval,"%EvalError%":eTe,"%Float16Array%":typeof Float16Array=="undefined"?it:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?it:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?it:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?it:FinalizationRegistry,"%Function%":jJ,"%GeneratorFunction%":cv,"%Int8Array%":typeof Int8Array=="undefined"?it:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?it:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?it:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fv&&Wa?Wa(Wa([][Symbol.iterator]())):it,"%JSON%":typeof JSON=="object"?JSON:it,"%Map%":typeof Map=="undefined"?it:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!fv||!Wa?it:Wa(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":K7e,"%Object.getOwnPropertyDescriptor%":j0,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?it:Promise,"%Proxy%":typeof Proxy=="undefined"?it:Proxy,"%RangeError%":rTe,"%ReferenceError%":tTe,"%Reflect%":typeof Reflect=="undefined"?it:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?it:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!fv||!Wa?it:Wa(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?it:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fv&&Wa?Wa(""[Symbol.iterator]()):it,"%Symbol%":fv?Symbol:it,"%SyntaxError%":hv,"%ThrowTypeError%":vTe,"%TypedArray%":pTe,"%TypeError%":vv,"%Uint8Array%":typeof Uint8Array=="undefined"?it:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?it:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?it:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?it:Uint32Array,"%URIError%":aTe,"%WeakMap%":typeof WeakMap=="undefined"?it:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?it:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?it:WeakSet,"%Function.prototype.call%":Z0,"%Function.prototype.apply%":ZJ,"%Object.defineProperty%":cTe,"%Object.getPrototypeOf%":hTe,"%Math.abs%":nTe,"%Math.floor%":iTe,"%Math.max%":oTe,"%Math.min%":lTe,"%Math.pow%":sTe,"%Math.round%":uTe,"%Math.sign%":fTe,"%Reflect.getPrototypeOf%":dTe};if(Wa)try{null.error}catch(e){YJ=Wa(Wa(e)),Wu["%Error.prototype%"]=YJ}var YJ,yTe=function e(r){var t;if(r==="%AsyncFunction%")t=c7("async function () {}");else if(r==="%GeneratorFunction%")t=c7("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=c7("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Wa&&(t=Wa(n.prototype))}return Wu[r]=t,t},VJ={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},X0=uv(),Vg=GJ(),mTe=X0.call(Z0,Array.prototype.concat),gTe=X0.call(ZJ,Array.prototype.splice),WJ=X0.call(Z0,String.prototype.replace),Wg=X0.call(Z0,String.prototype.slice),bTe=X0.call(Z0,RegExp.prototype.exec),xTe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_Te=/\\(\\)?/g,wTe=function(r){var t=Wg(r,0,1),a=Wg(r,-1);if(t==="%"&&a!=="%")throw new hv("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new hv("invalid intrinsic syntax, expected opening `%`");var n=[];return WJ(r,xTe,function(i,o,l,s){n[n.length]=l?WJ(s,_Te,"$1"):o||i}),n},TTe=function(r,t){var a=r,n;if(Vg(VJ,a)&&(n=VJ[a],a="%"+n[0]+"%"),Vg(Wu,a)){var i=Wu[a];if(i===cv&&(i=yTe(a)),typeof i=="undefined"&&!t)throw new vv("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new hv("intrinsic "+r+" does not exist!")};XJ.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new vv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new vv('"allowMissing" argument must be a boolean');if(bTe(/^%?[^%]*%?$/,r)===null)throw new hv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=wTe(r),n=a.length>0?a[0]:"",i=TTe("%"+n+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(n=u[0],gTe(a,mTe([0,1],u)));for(var f=1,c=!0;f=a.length){var m=j0(l,v);c=!!m,c&&"get"in m&&!("originalValue"in m.get)?l=m.get:l=l[v]}else c=Vg(l,v),l=l[v];c&&!s&&(Wu[o]=l)}}return l}});var QJ=N((zOe,KJ)=>{"use strict";var JJ=W0(),ATe=o7(),dv=sv(),$J=Vu();KJ.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new dv("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new dv("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new dv("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new dv("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new dv("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new dv("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!$J&&$J(r,t);if(JJ)JJ(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new ATe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var d7=N((IOe,r$)=>{"use strict";var h7=W0(),e$=function(){return!!h7};e$.hasArrayLengthDefineBug=function(){if(!h7)return null;try{return h7([],"length",{value:1}).length!==1}catch(r){return!0}};r$.exports=e$});var o$=N((OOe,i$)=>{"use strict";var MTe=jg(),t$=QJ(),kTe=d7()(),a$=Vu(),n$=sv(),STe=MTe("%Math.floor%");i$.exports=function(r,t){if(typeof r!="function")throw new n$("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||STe(t)!==t)throw new n$("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&a$){var o=a$(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(kTe?t$(r,"length",t,!0,!0):t$(r,"length",t)),r}});var J0=N((BOe,Zg)=>{"use strict";var p7=uv(),Xg=jg(),qTe=o$(),LTe=sv(),u$=Xg("%Function.prototype.apply%"),f$=Xg("%Function.prototype.call%"),c$=Xg("%Reflect.apply%",!0)||p7.call(f$,u$),l$=W0(),CTe=Xg("%Math.max%");Zg.exports=function(r){if(typeof r!="function")throw new LTe("a function is required");var t=c$(p7,f$,arguments);return qTe(t,1+CTe(0,r.length-(arguments.length-1)),!0)};var s$=function(){return c$(p7,u$,arguments)};l$?l$(Zg.exports,"apply",{value:s$}):Zg.exports.apply=s$});var pv=N((HOe,d$)=>{"use strict";var v$=jg(),h$=J0(),ETe=h$(v$("String.prototype.indexOf"));d$.exports=function(r,t){var a=v$(r,!!t);return typeof a=="function"&&ETe(r,".prototype.")>-1?h$(a):a}});var m$=N((UOe,y$)=>{"use strict";var DTe=V0()(),RTe=pv(),y7=RTe("Object.prototype.toString"),Jg=function(r){return DTe&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:y7(r)==="[object Arguments]"},p$=function(r){return Jg(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&y7(r)!=="[object Array]"&&y7(r.callee)==="[object Function]"},PTe=function(){return Jg(arguments)}();Jg.isLegacyArguments=p$;y$.exports=PTe?Jg:p$});var x$=N((GOe,b$)=>{"use strict";var FTe=Object.prototype.toString,NTe=Function.prototype.toString,zTe=/^\s*(?:function)?\*/,g$=V0()(),m7=Object.getPrototypeOf,ITe=function(){if(!g$)return!1;try{return Function("return function*() {}")()}catch(e){}},g7;b$.exports=function(r){if(typeof r!="function")return!1;if(zTe.test(NTe.call(r)))return!0;if(!g$){var t=FTe.call(r);return t==="[object GeneratorFunction]"}if(!m7)return!1;if(typeof g7=="undefined"){var a=ITe();g7=a?m7(a):!1}return m7(r)===g7}});var A$=N((YOe,T$)=>{"use strict";var w$=Function.prototype.toString,yv=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,x7,$g;if(typeof yv=="function"&&typeof Object.defineProperty=="function")try{x7=Object.defineProperty({},"length",{get:function(){throw $g}}),$g={},yv(function(){throw 42},null,x7)}catch(e){e!==$g&&(yv=null)}else yv=null;var OTe=/^\s*class\b/,_7=function(r){try{var t=w$.call(r);return OTe.test(t)}catch(a){return!1}},b7=function(r){try{return _7(r)?!1:(w$.call(r),!0)}catch(t){return!1}},Kg=Object.prototype.toString,BTe="[object Object]",HTe="[object Function]",UTe="[object GeneratorFunction]",GTe="[object HTMLAllCollection]",YTe="[object HTML document.all class]",VTe="[object HTMLCollection]",WTe=typeof Symbol=="function"&&!!Symbol.toStringTag,jTe=!(0 in[,]),w7=function(){return!1};typeof document=="object"&&(_$=document.all,Kg.call(_$)===Kg.call(document.all)&&(w7=function(r){if((jTe||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=Kg.call(r);return(t===GTe||t===YTe||t===VTe||t===BTe)&&r("")==null}catch(a){}return!1}));var _$;T$.exports=yv?function(r){if(w7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{yv(r,null,x7)}catch(t){if(t!==$g)return!1}return!_7(r)&&b7(r)}:function(r){if(w7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(WTe)return b7(r);if(_7(r))return!1;var t=Kg.call(r);return t!==HTe&&t!==UTe&&!/^\[object HTML/.test(t)?!1:b7(r)}});var T7=N((VOe,k$)=>{"use strict";var ZTe=A$(),XTe=Object.prototype.toString,M$=Object.prototype.hasOwnProperty,JTe=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),XTe.call(r)==="[object Array]"?JTe(r,t,n):typeof r=="string"?$Te(r,t,n):KTe(r,t,n)};k$.exports=QTe});var M7=N((WOe,S$)=>{"use strict";var A7=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e8e=typeof globalThis=="undefined"?window:globalThis;S$.exports=function(){for(var r=[],t=0;t{"use strict";var e2=T7(),r8e=M7(),q$=J0(),q7=pv(),Qg=Vu(),t8e=q7("Object.prototype.toString"),C$=V0()(),L$=typeof globalThis=="undefined"?window:globalThis,S7=r8e(),L7=q7("String.prototype.slice"),k7=Object.getPrototypeOf,a8e=q7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:i8e(r)}return Qg?n8e(r):null}});var I$=N((ZOe,z$)=>{"use strict";var R$=T7(),o8e=M7(),E7=pv(),l8e=E7("Object.prototype.toString"),P$=V0()(),t2=Vu(),s8e=typeof globalThis=="undefined"?window:globalThis,F$=o8e(),u8e=E7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return t2?c8e(r):!1}});var P7=N(ot=>{"use strict";var v8e=m$(),h8e=x$(),mo=D$(),O$=I$();function mv(e){return e.call.bind(e)}var B$=typeof BigInt!="undefined",H$=typeof Symbol!="undefined",zi=mv(Object.prototype.toString),d8e=mv(Number.prototype.valueOf),p8e=mv(String.prototype.valueOf),y8e=mv(Boolean.prototype.valueOf);B$&&(U$=mv(BigInt.prototype.valueOf));var U$;H$&&(G$=mv(Symbol.prototype.valueOf));var G$;function K0(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}ot.isArgumentsObject=v8e;ot.isGeneratorFunction=h8e;ot.isTypedArray=O$;function m8e(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}ot.isPromise=m8e;function g8e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):O$(e)||V$(e)}ot.isArrayBufferView=g8e;function b8e(e){return mo(e)==="Uint8Array"}ot.isUint8Array=b8e;function x8e(e){return mo(e)==="Uint8ClampedArray"}ot.isUint8ClampedArray=x8e;function _8e(e){return mo(e)==="Uint16Array"}ot.isUint16Array=_8e;function w8e(e){return mo(e)==="Uint32Array"}ot.isUint32Array=w8e;function T8e(e){return mo(e)==="Int8Array"}ot.isInt8Array=T8e;function A8e(e){return mo(e)==="Int16Array"}ot.isInt16Array=A8e;function M8e(e){return mo(e)==="Int32Array"}ot.isInt32Array=M8e;function k8e(e){return mo(e)==="Float32Array"}ot.isFloat32Array=k8e;function S8e(e){return mo(e)==="Float64Array"}ot.isFloat64Array=S8e;function q8e(e){return mo(e)==="BigInt64Array"}ot.isBigInt64Array=q8e;function L8e(e){return mo(e)==="BigUint64Array"}ot.isBigUint64Array=L8e;function a2(e){return zi(e)==="[object Map]"}a2.working=typeof Map!="undefined"&&a2(new Map);function C8e(e){return typeof Map=="undefined"?!1:a2.working?a2(e):e instanceof Map}ot.isMap=C8e;function n2(e){return zi(e)==="[object Set]"}n2.working=typeof Set!="undefined"&&n2(new Set);function E8e(e){return typeof Set=="undefined"?!1:n2.working?n2(e):e instanceof Set}ot.isSet=E8e;function i2(e){return zi(e)==="[object WeakMap]"}i2.working=typeof WeakMap!="undefined"&&i2(new WeakMap);function D8e(e){return typeof WeakMap=="undefined"?!1:i2.working?i2(e):e instanceof WeakMap}ot.isWeakMap=D8e;function R7(e){return zi(e)==="[object WeakSet]"}R7.working=typeof WeakSet!="undefined"&&R7(new WeakSet);function R8e(e){return R7(e)}ot.isWeakSet=R8e;function o2(e){return zi(e)==="[object ArrayBuffer]"}o2.working=typeof ArrayBuffer!="undefined"&&o2(new ArrayBuffer);function Y$(e){return typeof ArrayBuffer=="undefined"?!1:o2.working?o2(e):e instanceof ArrayBuffer}ot.isArrayBuffer=Y$;function l2(e){return zi(e)==="[object DataView]"}l2.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&l2(new DataView(new ArrayBuffer(1),0,1));function V$(e){return typeof DataView=="undefined"?!1:l2.working?l2(e):e instanceof DataView}ot.isDataView=V$;var D7=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function $0(e){return zi(e)==="[object SharedArrayBuffer]"}function W$(e){return typeof D7=="undefined"?!1:(typeof $0.working=="undefined"&&($0.working=$0(new D7)),$0.working?$0(e):e instanceof D7)}ot.isSharedArrayBuffer=W$;function P8e(e){return zi(e)==="[object AsyncFunction]"}ot.isAsyncFunction=P8e;function F8e(e){return zi(e)==="[object Map Iterator]"}ot.isMapIterator=F8e;function N8e(e){return zi(e)==="[object Set Iterator]"}ot.isSetIterator=N8e;function z8e(e){return zi(e)==="[object Generator]"}ot.isGeneratorObject=z8e;function I8e(e){return zi(e)==="[object WebAssembly.Module]"}ot.isWebAssemblyCompiledModule=I8e;function j$(e){return K0(e,d8e)}ot.isNumberObject=j$;function Z$(e){return K0(e,p8e)}ot.isStringObject=Z$;function X$(e){return K0(e,y8e)}ot.isBooleanObject=X$;function J$(e){return B$&&K0(e,U$)}ot.isBigIntObject=J$;function $$(e){return H$&&K0(e,G$)}ot.isSymbolObject=$$;function O8e(e){return j$(e)||Z$(e)||X$(e)||J$(e)||$$(e)}ot.isBoxedPrimitive=O8e;function B8e(e){return typeof Uint8Array!="undefined"&&(Y$(e)||W$(e))}ot.isAnyArrayBuffer=B8e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(ot,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var F7=N((JOe,K$)=>{K$.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var H7=N(lt=>{var Q$=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),O7(r)?t.showHidden=r:r&<._extend(t,r),Zu(t.showHidden)&&(t.showHidden=!1),Zu(t.depth)&&(t.depth=2),Zu(t.colors)&&(t.colors=!1),Zu(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=U8e),c2(t,e,t.depth)}lt.inspect=_s;_s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};_s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function U8e(e,r){var t=_s.styles[r];return t?"\x1B["+_s.colors[t][0]+"m"+e+"\x1B["+_s.colors[t][1]+"m":e}function G8e(e,r){return e}function Y8e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function c2(e,r,t){if(e.customInspect&&r&&f2(r.inspect)&&r.inspect!==lt.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return d2(a)||(a=c2(e,a,t)),a}var n=V8e(e,r);if(n)return n;var i=Object.keys(r),o=Y8e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),ed(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return N7(r);if(i.length===0){if(f2(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(Q0(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(v2(r))return e.stylize(Date.prototype.toString.call(r),"date");if(ed(r))return N7(r)}var s="",u=!1,f=["{","}"];if(rK(r)&&(u=!0,f=["[","]"]),f2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(Q0(r)&&(s=" "+RegExp.prototype.toString.call(r)),v2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),ed(r)&&(s=" "+N7(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return Q0(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=W8e(e,r,t,o,i):v=i.map(function(d){return I7(e,r,t,o,d,u)}),e.seen.pop(),j8e(v,s,f)}function V8e(e,r){if(Zu(r))return e.stylize("undefined","undefined");if(d2(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(tK(r))return e.stylize(""+r,"number");if(O7(r))return e.stylize(""+r,"boolean");if(h2(r))return e.stylize("null","null")}function N7(e){return"["+Error.prototype.toString.call(e)+"]"}function W8e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o24?(isFinite(g)&&(clearTimeout(Bd),Bd=setTimeout(A3,g)),Od=0):(Od=1,M8(A3))}e.timer.flush=function(){k8(),S8()};function k8(){for(var h=Date.now(),g=zd;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function S8(){for(var h,g=zd,A=1/0;g;)g.c?(g.t=0;--F)ae.push(L[J[ee[F]][2]]);for(F=+we;F1&&Yr(h[A[S-2]],h[A[S-1]],h[L])<=0;)--S;A[S++]=L}return A.slice(0,S)}function Wae(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return K(h,Ud),h};var Ud=e.geom.polygon.prototype=[];Ud.area=function(){for(var h=-1,g=this.length,A,S=this[g-1],L=0;++hde)F=F.L;else if(I=g-Jae(F,A),I>de){if(!F.R){S=F;break}F=F.R}else{C>-de?(S=F.P,L=F):I>-de?(S=F,L=F.N):S=L=F;break}var H=D8(h);if(pf.insert(S,H),!(!S&&!L)){if(S===L){mf(S),L=D8(S.site),pf.insert(H,L),H.edge=L.edge=Nv(S.site,H.site),yf(S),yf(L);return}if(!L){H.edge=Nv(S.site,H.site);return}mf(S),mf(L);var J=S.site,$=J.x,ee=J.y,te=h.x-$,we=h.y-ee,ke=L.site,ae=ke.x-$,he=ke.y-ee,ge=2*(te*he-we*ae),Me=te*te+we*we,Se=ae*ae+he*he,xe={x:(he*Me-we*Se)/ge+$,y:(te*Se-ae*Me)/ge+ee};Gd(L.edge,J,ke,xe),H.edge=Nv(J,h,null,xe),L.edge=Nv(h,ke,null,xe),yf(S),yf(L)}}function R8(h,g){var A=h.site,S=A.x,L=A.y,C=L-g;if(!C)return S;var I=h.P;if(!I)return-1/0;A=I.site;var F=A.x,H=A.y,J=H-g;if(!J)return F;var $=F-S,ee=1/C-1/J,te=$/J;return ee?(-te+Math.sqrt(te*te-2*ee*($*$/(-2*J)-H+J/2+L-C/2)))/ee+S:(S+F)/2}function Jae(h,g){var A=h.N;if(A)return R8(A,g);var S=h.site;return S.y===g?S.x:1/0}function P8(h){this.site=h,this.edges=[]}P8.prototype.prepare=function(){for(var h=this.edges,g=h.length,A;g--;)A=h[g].edge,(!A.b||!A.a)&&h.splice(g,1);return h.sort(F8),h.length};function $ae(h){for(var g=h[0][0],A=h[1][0],S=h[0][1],L=h[1][1],C,I,F,H,J=Os,$=J.length,ee,te,we,ke,ae,he;$--;)if(ee=J[$],!(!ee||!ee.prepare()))for(we=ee.edges,ke=we.length,te=0;tede||x(H-I)>de)&&(we.splice(te,0,new Vd(tne(ee.site,he,x(F-g)de?{x:g,y:x(C-g)de?{x:x(I-L)de?{x:A,y:x(C-A)de?{x:x(I-S)=-De)){var te=H*H+J*J,we=$*$+he*he,ke=(he*te-J*we)/ee,ae=(H*we-$*te)/ee,he=ae+F,ge=E8.pop()||new Kae;ge.arc=h,ge.site=L,ge.x=ke+I,ge.y=he+Math.sqrt(ke*ke+ae*ae),ge.cy=he,h.circle=ge;for(var Me=null,Se=Fv._;Se;)if(ge.y0)){if(ae/=we,we<0){if(ae0){if(ae>te)return;ae>ee&&(ee=ae)}if(ae=A-F,!(!we&&ae<0)){if(ae/=we,we<0){if(ae>te)return;ae>ee&&(ee=ae)}else if(we>0){if(ae0)){if(ae/=ke,ke<0){if(ae0){if(ae>te)return;ae>ee&&(ee=ae)}if(ae=S-H,!(!ke&&ae<0)){if(ae/=ke,ke<0){if(ae>te)return;ae>ee&&(ee=ae)}else if(ke>0){if(ae0&&(L.a={x:F+ee*we,y:H+ee*ke}),te<1&&(L.b={x:F+te*we,y:H+te*ke}),L}}}}}}function ene(h){for(var g=df,A=Qae(h[0][0],h[0][1],h[1][0],h[1][1]),S=g.length,L;S--;)L=g[S],(!rne(L,h)||!A(L)||x(L.a.x-L.b.x)=C)return;if($>te){if(!S)S={x:ke,y:I};else if(S.y>=F)return;A={x:ke,y:F}}else{if(!S)S={x:ke,y:F};else if(S.y1)if($>te){if(!S)S={x:(I-ge)/he,y:I};else if(S.y>=F)return;A={x:(F-ge)/he,y:F}}else{if(!S)S={x:(F-ge)/he,y:F};else if(S.y=C)return;A={x:C,y:he*C+ge}}else{if(!S)S={x:C,y:he*C+ge};else if(S.x=$&&ge.x<=te&&ge.y>=ee&&ge.y<=we?[[$,we],[te,we],[te,ee],[$,ee]]:[];Me.point=H[ae]}),J}function F(H){return H.map(function(J,$){return{x:Math.round(S(J,$)/de)*de,y:Math.round(L(J,$)/de)*de,i:$}})}return I.links=function(H){return C3(F(H)).edges.filter(function(J){return J.l&&J.r}).map(function(J){return{source:H[J.l.i],target:H[J.r.i]}})},I.triangles=function(H){var J=[];return C3(F(H)).cells.forEach(function($,ee){for(var te=$.site,we=$.edges.sort(F8),ke=-1,ae=we.length,he,ge,Me=we[ae-1].edge,Se=Me.l===te?Me.r:Me.l;++keSe&&(Se=$.x),$.y>xe&&(xe=$.y),we.push($.x),ke.push($.y);else for(ae=0;aeSe&&(Se=Ve),ir>xe&&(xe=ir),we.push(Ve),ke.push(ir)}var cr=Se-ge,or=xe-Me;cr>or?xe=Me+cr:Se=ge+or;function dr(mr,kr,tt,Qt,mt,er,Dr,Pr){if(!(isNaN(tt)||isNaN(Qt)))if(mr.leaf){var at=mr.x,Ht=mr.y;if(at!=null)if(x(at-tt)+x(Ht-Qt)<.01)pr(mr,kr,tt,Qt,mt,er,Dr,Pr);else{var ha=mr.point;mr.x=mr.y=mr.point=null,pr(mr,ha,at,Ht,mt,er,Dr,Pr),pr(mr,kr,tt,Qt,mt,er,Dr,Pr)}else mr.x=tt,mr.y=Qt,mr.point=kr}else pr(mr,kr,tt,Qt,mt,er,Dr,Pr)}function pr(mr,kr,tt,Qt,mt,er,Dr,Pr){var at=(mt+Dr)*.5,Ht=(er+Pr)*.5,ha=tt>=at,Ba=Qt>=Ht,an=Ba<<1|ha;mr.leaf=!1,mr=mr.nodes[an]||(mr.nodes[an]=I8()),ha?mt=at:Dr=at,Ba?er=Ht:Pr=Ht,dr(mr,kr,tt,Qt,mt,er,Dr,Pr)}var Er=I8();if(Er.add=function(mr){dr(Er,mr,+ee(mr,++ae),+te(mr,ae),ge,Me,Se,xe)},Er.visit=function(mr){Ov(mr,Er,ge,Me,Se,xe)},Er.find=function(mr){return lne(Er,mr[0],mr[1],ge,Me,Se,xe)},ae=-1,g==null){for(;++aeC||te>I||we=Ve,or=A>=ir,dr=or<<1|cr,pr=dr+4;drA&&(C=g.slice(A,C),F[I]?F[I]+=C:F[++I]=C),(S=S[0])===(L=L[0])?F[I]?F[I]+=L:F[++I]=L:(F[++I]=null,H.push({i:I,x:el(S,L)})),A=R3.lastIndex;return A=0&&!(S=e.interpolators[A](h,g)););return S}e.interpolators=[function(h,g){var A=typeof g;return(A==="string"?Oa.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?E3:B8:g instanceof Pt?E3:Array.isArray(g)?jd:A==="object"&&isNaN(g)?O8:el)(h,g)}],e.interpolateArray=jd;function jd(h,g){var A=[],S=[],L=h.length,C=g.length,I=Math.min(h.length,g.length),F;for(F=0;F=0?h.slice(0,g):h,S=g>=0?h.slice(g+1):"in";return A=sne.get(A)||H8,S=une.get(S)||B,fne(S(A.apply(null,r.call(arguments,1))))};function fne(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function U8(h){return function(g){return 1-h(1-g)}}function G8(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function cne(h){return h*h}function vne(h){return h*h*h}function hne(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,A=g*h;return 4*(h<.5?A:3*(h-g)+A-.75)}function dne(h){return function(g){return Math.pow(g,h)}}function pne(h){return 1-Math.cos(h*nr)}function yne(h){return Math.pow(2,10*(h-1))}function mne(h){return 1-Math.sqrt(1-h*h)}function gne(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/ar*Math.asin(1/h):(h=1,A=g/4),function(S){return 1+h*Math.pow(2,-10*S)*Math.sin((S-A)*ar/g)}}function bne(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function xne(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=_ne;function _ne(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,S=h.c,L=h.l,C=g.h-A,I=g.c-S,F=g.l-L;return isNaN(I)&&(I=0,S=isNaN(S)?g.c:S),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(H){return Tn(A+C*H,S+I*H,L+F*H)+""}}e.interpolateHsl=wne;function wne(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,S=h.s,L=h.l,C=g.h-A,I=g.s-S,F=g.l-L;return isNaN(I)&&(I=0,S=isNaN(S)?g.s:S),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(H){return xa(A+C*H,S+I*H,L+F*H)+""}}e.interpolateLab=Tne;function Tne(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,S=h.a,L=h.b,C=g.l-A,I=g.a-S,F=g.b-L;return function(H){return An(A+C*H,S+I*H,L+F*H)+""}}e.interpolateRound=V8;function V8(h,g){return g-=h,function(A){return Math.round(h+g*A)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(A){if(A!=null){g.setAttribute("transform",A);var S=g.transform.baseVal.consolidate()}return new Y8(S?S.matrix:Mne)})(h)};function Y8(h){var g=[h.a,h.b],A=[h.c,h.d],S=j8(g),L=W8(g,A),C=j8(Ane(A,g,-L))||0;g[0]*A[1]180?g+=360:g-h>180&&(h+=360),S.push({i:A.push(gf(A)+"rotate(",null,")")-2,x:el(h,g)})):g&&A.push(gf(A)+"rotate("+g+")")}function qne(h,g,A,S){h!==g?S.push({i:A.push(gf(A)+"skewX(",null,")")-2,x:el(h,g)}):g&&A.push(gf(A)+"skewX("+g+")")}function Lne(h,g,A,S){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push(gf(A)+"scale(",null,",",null,")");S.push({i:L-4,x:el(h[0],g[0])},{i:L-2,x:el(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&A.push(gf(A)+"scale("+g+")")}function Z8(h,g){var A=[],S=[];return h=e.transform(h),g=e.transform(g),kne(h.translate,g.translate,A,S),Sne(h.rotate,g.rotate,A,S),qne(h.skew,g.skew,A,S),Lne(h.scale,g.scale,A,S),h=g=null,function(L){for(var C=-1,I=S.length,F;++C0?C=xe:(A.c=null,A.t=NaN,A=null,g.end({type:"end",alpha:C=0})):xe>0&&(g.start({type:"start",alpha:C=xe}),A=Hd(h.tick)),h):C},h.start=function(){var xe,Ve=we.length,ir=ke.length,cr=S[0],or=S[1],dr,pr;for(xe=0;xe=0;)C.push($=J[H]),$.parent=F,$.depth=F.depth+1;A&&(F.value=0),F.children=J}else A&&(F.value=+A.call(S,F,F.depth)||0),delete F.children;return _o(L,function(ee){var te,we;h&&(te=ee.children)&&te.sort(h),A&&(we=ee.parent)&&(we.value+=ee.value)}),I}return S.sort=function(L){return arguments.length?(h=L,S):h},S.children=function(L){return arguments.length?(g=L,S):g},S.value=function(L){return arguments.length?(A=L,S):A},S.revalue=function(L){return A&&(Hv(L,function(C){C.children&&(C.value=0)}),_o(L,function(C){var I;C.children||(C.value=+A.call(S,C,C.depth)||0),(I=C.parent)&&(I.value+=C.value)})),L},S};function Bv(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=Vne,h}function Hv(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(L=h.children)&&(S=L.length))for(var S,L;--S>=0;)A.push(L[S])}function _o(h,g){for(var A=[h],S=[];(h=A.pop())!=null;)if(S.push(h),(I=h.children)&&(C=I.length))for(var L=-1,C,I;++LL&&(L=F),S.push(F)}for(I=0;IS&&(A=g,S=L);return A}function $ne(h){return h.reduce(Kne,0)}function Kne(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=eie,S=Qne;function L(C,te){for(var F=[],H=C.map(g,this),J=A.call(this,H,te),$=S.call(this,J,H,te),ee,te=-1,we=H.length,ke=$.length-1,ae=h?1:1/we,he;++te0)for(te=-1;++te=J[0]&&he<=J[1]&&(ee=F[e.bisect($,he,1,ke)-1],ee.y+=ae,ee.push(C[te]));return F}return L.value=function(C){return arguments.length?(g=C,L):g},L.range=function(C){return arguments.length?(A=Br(C),L):A},L.bins=function(C){return arguments.length?(S=typeof C=="number"?function(I){return K8(I,C)}:Br(C),L):S},L.frequency=function(C){return arguments.length?(h=!!C,L):h},L};function Qne(h,g){return K8(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function K8(h,g){for(var A=-1,S=+h[0],L=(h[1]-S)/g,C=[];++A<=g;)C[A]=L*A+S;return C}function eie(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(rie),g=0,A=[1,1],S;function L(C,I){var F=h.call(this,C,I),H=F[0],J=A[0],$=A[1],ee=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(H.x=H.y=0,_o(H,function(we){we.r=+ee(we.value)}),_o(H,rA),g){var te=g*(S?1:Math.max(2*H.r/J,2*H.r/$))/2;_o(H,function(we){we.r+=te}),_o(H,rA),_o(H,function(we){we.r-=te})}return tA(H,J/2,$/2,S?1:1/Math.max(2*H.r/J,2*H.r/$)),F}return L.size=function(C){return arguments.length?(A=C,L):A},L.radius=function(C){return arguments.length?(S=C==null||typeof C=="function"?C:+C,L):S},L.padding=function(C){return arguments.length?(g=+C,L):g},Bv(L,h)};function rie(h,g){return h.value-g.value}function N3(h,g){var A=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=A,A._pack_prev=g}function Q8(h,g){h._pack_next=g,g._pack_prev=h}function eA(h,g){var A=g.x-h.x,S=g.y-h.y,L=h.r+g.r;return .999*L*L>A*A+S*S}function rA(h){if(!(g=h.children)||!(te=g.length))return;var g,A=1/0,S=-1/0,L=1/0,C=-1/0,I,F,H,J,$,ee,te;function we(xe){A=Math.min(xe.x-xe.r,A),S=Math.max(xe.x+xe.r,S),L=Math.min(xe.y-xe.r,L),C=Math.max(xe.y+xe.r,C)}if(g.forEach(tie),I=g[0],I.x=-I.r,I.y=0,we(I),te>1&&(F=g[1],F.x=F.r,F.y=0,we(F),te>2))for(H=g[2],aA(I,F,H),we(H),N3(I,H),I._pack_prev=H,N3(H,F),F=I._pack_next,J=3;Jhe.x&&(he=Ve),Ve.depth>ge.depth&&(ge=Ve)});var Me=g(ae,he)/2-ae.x,Se=A[0]/(he.x+g(he,ae)/2+Me),xe=A[1]/(ge.depth||1);Hv(we,function(Ve){Ve.x=(Ve.x+Me)*Se,Ve.y=Ve.depth*xe})}return te}function C($){for(var ee={A:null,children:[$]},te=[ee],we;(we=te.pop())!=null;)for(var ke=we.children,ae,he=0,ge=ke.length;he0&&(nie(oie(ae,$,te),$,Ve),ge+=Ve,Me+=Ve),Se+=ae.m,ge+=we.m,xe+=he.m,Me+=ke.m;ae&&!I3(ke)&&(ke.t=ae,ke.m+=Se-Me),we&&!z3(he)&&(he.t=we,he.m+=ge-xe,te=$)}return te}function J($){$.x*=A[0],$.y=$.depth*A[1]}return L.separation=function($){return arguments.length?(g=$,L):g},L.size=function($){return arguments.length?(S=(A=$)==null?J:null,L):S?null:A},L.nodeSize=function($){return arguments.length?(S=(A=$)==null?null:J,L):S?A:null},Bv(L,h)};function nA(h,g){return h.parent==g.parent?1:2}function z3(h){var g=h.children;return g.length?g[0]:h.t}function I3(h){var g=h.children,A;return(A=g.length)?g[A-1]:h.t}function nie(h,g,A){var S=A/(g.i-h.i);g.c-=S,g.s+=A,h.c+=S,g.z+=A,g.m+=A}function iie(h){for(var g=0,A=0,S=h.children,L=S.length,C;--L>=0;)C=S[L],C.z+=g,C.m+=g,g+=C.s+(A+=C.c)}function oie(h,g,A){return h.a.parent===g.parent?h.a:A}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=nA,A=[1,1],S=!1;function L(C,I){var F=h.call(this,C,I),H=F[0],J,$=0;_o(H,function(ae){var he=ae.children;he&&he.length?(ae.x=sie(he),ae.y=lie(he)):(ae.x=J?$+=g(ae,J):0,ae.y=0,J=ae)});var ee=iA(H),te=oA(H),we=ee.x-g(ee,te)/2,ke=te.x+g(te,ee)/2;return _o(H,S?function(ae){ae.x=(ae.x-H.x)*A[0],ae.y=(H.y-ae.y)*A[1]}:function(ae){ae.x=(ae.x-we)/(ke-we)*A[0],ae.y=(1-(H.y?ae.y/H.y:1))*A[1]}),F}return L.separation=function(C){return arguments.length?(g=C,L):g},L.size=function(C){return arguments.length?(S=(A=C)==null,L):S?null:A},L.nodeSize=function(C){return arguments.length?(S=(A=C)!=null,L):S?A:null},Bv(L,h)};function lie(h){return 1+e.max(h,function(g){return g.y})}function sie(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function iA(h){var g=h.children;return g&&g.length?iA(g[0]):h}function oA(h){var g=h.children,A;return g&&(A=g.length)?oA(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],S=null,L=O3,C=!1,I,F="squarify",H=.5*(1+Math.sqrt(5));function J(ae,he){for(var ge=-1,Me=ae.length,Se,xe;++ge0;)Me.push(xe=Se[or-1]),Me.area+=xe.area,F!=="squarify"||(ir=te(Me,cr))<=Ve?(Se.pop(),Ve=ir):(Me.area-=Me.pop().area,we(Me,cr,ge,!1),cr=Math.min(ge.dx,ge.dy),Me.length=Me.area=0,Ve=1/0);Me.length&&(we(Me,cr,ge,!0),Me.length=Me.area=0),he.forEach($)}}function ee(ae){var he=ae.children;if(he&&he.length){var ge=L(ae),Me=he.slice(),Se,xe=[];for(J(Me,ge.dx*ge.dy/ae.value),xe.area=0;Se=Me.pop();)xe.push(Se),xe.area+=Se.area,Se.z!=null&&(we(xe,Se.z?ge.dx:ge.dy,ge,!Me.length),xe.length=xe.area=0);he.forEach(ee)}}function te(ae,he){for(var ge=ae.area,Me,Se=0,xe=1/0,Ve=-1,ir=ae.length;++VeSe&&(Se=Me));return ge*=ge,he*=he,ge?Math.max(he*Se*H/ge,ge/(he*xe*H)):1/0}function we(ae,he,ge,Me){var Se=-1,xe=ae.length,Ve=ge.x,ir=ge.y,cr=he?g(ae.area/he):0,or;if(he==ge.dx){for((Me||cr>ge.dy)&&(cr=ge.dy);++Sege.dx)&&(cr=ge.dx);++Se1);return h+g*S*Math.sqrt(-2*Math.log(C)/C)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,A=0;A2?cie:uie,J=S?Ene:Cne;return L=H(h,g,J,A),C=H(g,h,J,Bs),F}function F(H){return L(H)}return F.invert=function(H){return C(H)},F.domain=function(H){return arguments.length?(h=H.map(Number),I()):h},F.range=function(H){return arguments.length?(g=H,I()):g},F.rangeRound=function(H){return F.range(H).interpolate(V8)},F.clamp=function(H){return arguments.length?(S=H,I()):S},F.interpolate=function(H){return arguments.length?(A=H,I()):A},F.ticks=function(H){return U3(h,H)},F.tickFormat=function(H,J){return d3_scale_linearTickFormat(h,H,J)},F.nice=function(H){return cA(h,H),I()},F.copy=function(){return uA(h,g,A,S)},I()}function fA(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function cA(h,g){return B3(h,sA(H3(h,g)[2])),B3(h,sA(H3(h,g)[2])),h}function H3(h,g){g==null&&(g=10);var A=Zd(h),S=A[1]-A[0],L=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),C=g/S*L;return C<=.15?L*=10:C<=.35?L*=5:C<=.75&&(L*=2),A[0]=Math.ceil(A[0]/L)*L,A[1]=Math.floor(A[1]/L)*L+L*.5,A[2]=L,A}function U3(h,g){return e.range.apply(e,H3(h,g))}var vie={s:1,g:1,p:1,r:1,e:1};function vA(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function KLe(h,g){var A=vA(g[2]);return h in vie?Math.abs(A-vA(Math.max(x(g[0]),x(g[1]))))+ +(h!=="e"):A-(h==="%")*2}e.scale.log=function(){return hA(e.scale.linear().domain([0,1]),10,!0,[1,10])};function hA(h,g,A,S){function L(F){return(A?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(g)}function C(F){return A?Math.pow(g,F):-Math.pow(g,-F)}function I(F){return h(L(F))}return I.invert=function(F){return C(h.invert(F))},I.domain=function(F){return arguments.length?(A=F[0]>=0,h.domain((S=F.map(Number)).map(L)),I):S},I.base=function(F){return arguments.length?(g=+F,h.domain(S.map(L)),I):g},I.nice=function(){var F=B3(S.map(L),A?Math:hie);return h.domain(F),S=F.map(C),I},I.ticks=function(){var F=Zd(S),H=[],J=F[0],$=F[1],ee=Math.floor(L(J)),te=Math.ceil(L($)),we=g%1?2:g;if(isFinite(te-ee)){if(A){for(;ee0;ke--)H.push(C(ee)*ke);for(ee=0;H[ee]$;te--);H=H.slice(ee,te)}return H},I.copy=function(){return hA(h.copy(),g,A,S)},fA(I,h)}var hie={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return dA(e.scale.linear(),1,[0,1])};function dA(h,g,A){var S=Jd(g),L=Jd(1/g);function C(I){return h(S(I))}return C.invert=function(I){return L(h.invert(I))},C.domain=function(I){return arguments.length?(h.domain((A=I.map(Number)).map(S)),C):A},C.ticks=function(I){return U3(A,I)},C.tickFormat=function(I,F){return d3_scale_linearTickFormat(A,I,F)},C.nice=function(I){return C.domain(cA(A,I))},C.exponent=function(I){return arguments.length?(S=Jd(g=I),L=Jd(1/g),h.domain(A.map(S)),C):g},C.copy=function(){return dA(h.copy(),g,A)},fA(C,h)}function Jd(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return pA([],{t:"range",a:[[]]})};function pA(h,g){var A,S,L;function C(F){return S[((A.get(F)||(g.t==="range"?A.set(F,h.push(F)):NaN))-1)%S.length]}function I(F,H){return e.range(h.length).map(function(J){return F+H*J})}return C.domain=function(F){if(!arguments.length)return h;h=[],A=new b;for(var H=-1,J=F.length,$;++H0?A[C-1]:h[0],Cte?0:1;if($=sr)return H($,ke)+(J?H(J,1-ke):"")+"Z";var ae,he,ge,Me,Se=0,xe=0,Ve,ir,cr,or,dr,pr,Er,mr,kr=[];if((Me=(+I.apply(this,arguments)||0)/2)&&(ge=S===$d?Math.sqrt(J*J+$*$):+S.apply(this,arguments),ke||(xe*=-1),$&&(xe=wt(ge/$*Math.sin(Me))),J&&(Se=wt(ge/J*Math.sin(Me)))),$){Ve=$*Math.cos(ee+xe),ir=$*Math.sin(ee+xe),cr=$*Math.cos(te-xe),or=$*Math.sin(te-xe);var tt=Math.abs(te-ee-2*xe)<=Le?0:1;if(xe&&Kd(Ve,ir,cr,or)===ke^tt){var Qt=(ee+te)/2;Ve=$*Math.cos(Qt),ir=$*Math.sin(Qt),cr=or=null}}else Ve=ir=0;if(J){dr=J*Math.cos(te-Se),pr=J*Math.sin(te-Se),Er=J*Math.cos(ee+Se),mr=J*Math.sin(ee+Se);var mt=Math.abs(ee-te+2*Se)<=Le?0:1;if(Se&&Kd(dr,pr,Er,mr)===1-ke^mt){var er=(ee+te)/2;dr=J*Math.cos(er),pr=J*Math.sin(er),Er=mr=null}}else dr=pr=0;if(we>de&&(ae=Math.min(Math.abs($-J)/2,+A.apply(this,arguments)))>.001){he=J<$^ke?0:1;var Dr=ae,Pr=ae;if(we0?0:1}function Qd(h,g,A,S,L){var C=h[0]-g[0],I=h[1]-g[1],F=(L?S:-S)/Math.sqrt(C*C+I*I),H=F*I,J=-F*C,$=h[0]+H,ee=h[1]+J,te=g[0]+H,we=g[1]+J,ke=($+te)/2,ae=(ee+we)/2,he=te-$,ge=we-ee,Me=he*he+ge*ge,Se=A-S,xe=$*we-te*ee,Ve=(ge<0?-1:1)*Math.sqrt(Math.max(0,Se*Se*Me-xe*xe)),ir=(xe*ge-he*Ve)/Me,cr=(-xe*he-ge*Ve)/Me,or=(xe*ge+he*Ve)/Me,dr=(-xe*he+ge*Ve)/Me,pr=ir-ke,Er=cr-ae,mr=or-ke,kr=dr-ae;return pr*pr+Er*Er>mr*mr+kr*kr&&(ir=or,cr=dr),[[ir-H,cr-J],[ir*A/Se,cr*A/Se]]}function wA(){return!0}function TA(h){var g=hf,A=Pv,S=wA,L=ji,C=L.key,I=.7;function F(H){var J=[],$=[],ee=-1,te=H.length,we,ke=Br(g),ae=Br(A);function he(){J.push("M",L(h($),I))}for(;++ee1?h.join("L"):h+"Z"}function AA(h){return h.join("L")+"Z"}function wie(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g1&&L.push("H",S[0]),L.join("")}function V3(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g1){F=g[1],C=h[H],H++,S+="C"+(L[0]+I[0])+","+(L[1]+I[1])+","+(C[0]-F[0])+","+(C[1]-F[1])+","+C[0]+","+C[1];for(var J=2;J9&&(C=A*3/Math.sqrt(C),I[F]=C*S,I[F+1]=C*L));for(F=-1;++F<=H;)C=(h[Math.min(H,F+1)][0]-h[Math.max(0,F-1)][0])/(6*(1+I[F]*I[F])),g.push([C||0,I[F]*C||0]);return g}function Eie(h){return h.length<3?ji(h):h[0]+ep(h,Cie(h))}e.svg.line.radial=function(){var h=TA(qA);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function qA(h){for(var g,A=-1,S=h.length,L,C;++ALe)+",1 "+ee}function J($,ee,te,we){return"Q 0,0 "+we}return C.radius=function($){return arguments.length?(A=Br($),C):A},C.source=function($){return arguments.length?(h=Br($),C):h},C.target=function($){return arguments.length?(g=Br($),C):g},C.startAngle=function($){return arguments.length?(S=Br($),C):S},C.endAngle=function($){return arguments.length?(L=Br($),C):L},C};function Die(h){return h.radius}e.svg.diagonal=function(){var h=CA,g=EA,A=DA;function S(L,C){var I=h.call(this,L,C),F=g.call(this,L,C),H=(I.y+F.y)/2,J=[I,{x:I.x,y:H},{x:F.x,y:H},F];return J=J.map(A),"M"+J[0]+"C"+J[1]+" "+J[2]+" "+J[3]}return S.source=function(L){return arguments.length?(h=Br(L),S):h},S.target=function(L){return arguments.length?(g=Br(L),S):g},S.projection=function(L){return arguments.length?(A=L,S):A},S};function DA(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=DA,A=h.projection;return h.projection=function(S){return arguments.length?A(Rie(g=S)):g},h};function Rie(h){return function(){var g=h.apply(this,arguments),A=g[0],S=g[1]-nr;return[A*Math.cos(S),A*Math.sin(S)]}}e.svg.symbol=function(){var h=Fie,g=Pie;function A(S,L){return(PA.get(h.call(this,S,L))||RA)(g.call(this,S,L))}return A.type=function(S){return arguments.length?(h=Br(S),A):h},A.size=function(S){return arguments.length?(g=Br(S),A):g},A};function Pie(){return 64}function Fie(){return"circle"}function RA(h){var g=Math.sqrt(h/Le);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var PA=e.map({circle:RA,cross:function(h){var g=Math.sqrt(h/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(h){var g=Math.sqrt(h/(2*FA)),A=g*FA;return"M0,"+-g+"L"+A+",0 0,"+g+" "+-A+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/rp),A=g*rp/2;return"M0,"+A+"L"+g+","+-A+" "+-g+","+-A+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/rp),A=g*rp/2;return"M0,"+-A+"L"+g+","+A+" "+-g+","+A+"Z"}});e.svg.symbolTypes=PA.keys();var rp=Math.sqrt(3),FA=Math.tan(30*Mr);ve.transition=function(h){for(var g=Hs||++zA,A=J3(h),S=[],L,C,I=ap||{time:Date.now(),ease:hne,delay:0,duration:250},F=-1,H=this.length;++F0;)ee[--Me].call(h,ge);if(he>=1)return I.event&&I.event.end.call(h,h.__data__,g),--C.count?delete C[S]:delete h[A],1}I||(F=L.time,H=Hd(te,0,F),I=C[S]={tween:new b,time:F,timer:H,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++C.count)}e.svg.axis=function(){var h=e.scale.linear(),g=IA,A=6,S=6,L=3,C=[10],I=null,F;function H(J){J.each(function(){var $=e.select(this),ee=this.__chart__||h,te=this.__chart__=h.copy(),we=I==null?te.ticks?te.ticks.apply(te,C):te.domain():I,ke=F==null?te.tickFormat?te.tickFormat.apply(te,C):B:F,ae=$.selectAll(".tick").data(we,te),he=ae.enter().insert("g",".domain").attr("class","tick").style("opacity",de),ge=e.transition(ae.exit()).style("opacity",de).remove(),Me=e.transition(ae.order()).style("opacity",1),Se=Math.max(A,0)+L,xe,Ve=Xd(te),ir=$.selectAll(".domain").data([0]),cr=(ir.enter().append("path").attr("class","domain"),e.transition(ir));he.append("line"),he.append("text");var or=he.select("line"),dr=Me.select("line"),pr=ae.select("text").text(ke),Er=he.select("text"),mr=Me.select("text"),kr=g==="top"||g==="left"?-1:1,tt,Qt,mt,er;if(g==="bottom"||g==="top"?(xe=Iie,tt="x",mt="y",Qt="x2",er="y2",pr.attr("dy",kr<0?"0em":".71em").style("text-anchor","middle"),cr.attr("d","M"+Ve[0]+","+kr*S+"V0H"+Ve[1]+"V"+kr*S)):(xe=Oie,tt="y",mt="x",Qt="y2",er="x2",pr.attr("dy",".32em").style("text-anchor",kr<0?"end":"start"),cr.attr("d","M"+kr*S+","+Ve[0]+"H0V"+Ve[1]+"H"+kr*S)),or.attr(er,kr*A),Er.attr(mt,kr*Se),dr.attr(Qt,0).attr(er,kr*A),mr.attr(tt,0).attr(mt,kr*Se),te.rangeBand){var Dr=te,Pr=Dr.rangeBand()/2;ee=te=function(at){return Dr(at)+Pr}}else ee.rangeBand?ee=te:ge.call(xe,te,ee);he.call(xe,ee,te),Me.call(xe,te,te)})}return H.scale=function(J){return arguments.length?(h=J,H):h},H.orient=function(J){return arguments.length?(g=J in zie?J+"":IA,H):g},H.ticks=function(){return arguments.length?(C=t(arguments),H):C},H.tickValues=function(J){return arguments.length?(I=J,H):I},H.tickFormat=function(J){return arguments.length?(F=J,H):F},H.tickSize=function(J){var $=arguments.length;return $?(A=+J,S=+arguments[$-1],H):A},H.innerTickSize=function(J){return arguments.length?(A=+J,H):A},H.outerTickSize=function(J){return arguments.length?(S=+J,H):S},H.tickPadding=function(J){return arguments.length?(L=+J,H):L},H.tickSubdivide=function(){return arguments.length&&H},H};var IA="bottom",zie={top:1,right:1,bottom:1,left:1};function Iie(h,g,A){h.attr("transform",function(S){var L=g(S);return"translate("+(isFinite(L)?L:A(S))+",0)"})}function Oie(h,g,A){h.attr("transform",function(S){var L=g(S);return"translate(0,"+(isFinite(L)?L:A(S))+")"})}e.svg.brush=function(){var h=oe($,"brushstart","brush","brushend"),g=null,A=null,S=[0,0],L=[0,0],C,I,F=!0,H=!0,J=$3[0];function $(ae){ae.each(function(){var he=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",ke).on("touchstart.brush",ke),ge=he.selectAll(".background").data([0]);ge.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),he.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Me=he.selectAll(".resize").data(J,B);Me.exit().remove(),Me.enter().append("g").attr("class",function(ir){return"resize "+ir}).style("cursor",function(ir){return Bie[ir]}).append("rect").attr("x",function(ir){return/[ew]$/.test(ir)?-3:null}).attr("y",function(ir){return/^[ns]/.test(ir)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Me.style("display",$.empty()?"none":null);var Se=e.transition(he),xe=e.transition(ge),Ve;g&&(Ve=Xd(g),xe.attr("x",Ve[0]).attr("width",Ve[1]-Ve[0]),te(Se)),A&&(Ve=Xd(A),xe.attr("y",Ve[0]).attr("height",Ve[1]-Ve[0]),we(Se)),ee(Se)})}$.event=function(ae){ae.each(function(){var he=h.of(this,arguments),ge={x:S,y:L,i:C,j:I},Me=this.__chart__||ge;this.__chart__=ge,Hs?e.select(this).transition().each("start.brush",function(){C=Me.i,I=Me.j,S=Me.x,L=Me.y,he({type:"brushstart"})}).tween("brush:brush",function(){var Se=jd(S,ge.x),xe=jd(L,ge.y);return C=I=null,function(Ve){S=ge.x=Se(Ve),L=ge.y=xe(Ve),he({type:"brush",mode:"resize"})}}).each("end.brush",function(){C=ge.i,I=ge.j,he({type:"brush",mode:"resize"}),he({type:"brushend"})}):(he({type:"brushstart"}),he({type:"brush",mode:"resize"}),he({type:"brushend"}))})};function ee(ae){ae.selectAll(".resize").attr("transform",function(he){return"translate("+S[+/e$/.test(he)]+","+L[+/^s/.test(he)]+")"})}function te(ae){ae.select(".extent").attr("x",S[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function we(ae){ae.select(".extent").attr("y",L[0]),ae.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function ke(){var ae=this,he=e.select(e.event.target),ge=h.of(ae,arguments),Me=e.select(ae),Se=he.datum(),xe=!/^(n|s)$/.test(Se)&&g,Ve=!/^(e|w)$/.test(Se)&&A,ir=he.classed("extent"),cr=hr(ae),or,dr=e.mouse(ae),pr,Er=e.select(i(ae)).on("keydown.brush",tt).on("keyup.brush",Qt);if(e.event.changedTouches?Er.on("touchmove.brush",mt).on("touchend.brush",Dr):Er.on("mousemove.brush",mt).on("mouseup.brush",Dr),Me.interrupt().selectAll("*").interrupt(),ir)dr[0]=S[0]-dr[0],dr[1]=L[0]-dr[1];else if(Se){var mr=+/w$/.test(Se),kr=+/^n/.test(Se);pr=[S[1-mr]-dr[0],L[1-kr]-dr[1]],dr[0]=S[mr],dr[1]=L[kr]}else e.event.altKey&&(or=dr.slice());Me.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",he.style("cursor")),ge({type:"brushstart"}),mt();function tt(){e.event.keyCode==32&&(ir||(or=null,dr[0]-=S[1],dr[1]-=L[1],ir=2),re())}function Qt(){e.event.keyCode==32&&ir==2&&(dr[0]+=S[1],dr[1]+=L[1],ir=0,re())}function mt(){var Pr=e.mouse(ae),at=!1;pr&&(Pr[0]+=pr[0],Pr[1]+=pr[1]),ir||(e.event.altKey?(or||(or=[(S[0]+S[1])/2,(L[0]+L[1])/2]),dr[0]=S[+(Pr[0]{(function(e,r){typeof up=="object"&&typeof GA!="undefined"?r(up):(e=e||self,r(e.d3=e.d3||{}))})(up,function(e){"use strict";var r=new Date,t=new Date;function a(se,Ae,je,ur){function lr(ue){return se(ue=arguments.length===0?new Date:new Date(+ue)),ue}return lr.floor=function(ue){return se(ue=new Date(+ue)),ue},lr.ceil=function(ue){return se(ue=new Date(ue-1)),Ae(ue,1),se(ue),ue},lr.round=function(ue){var qe=lr(ue),Oe=lr.ceil(ue);return ue-qe0))return Ze;do Ze.push(Ue=new Date(+ue)),Ae(ue,Oe),se(ue);while(Ue=qe)for(;se(qe),!ue(qe);)qe.setTime(qe-1)},function(qe,Oe){if(qe>=qe)if(Oe<0)for(;++Oe<=0;)for(;Ae(qe,-1),!ue(qe););else for(;--Oe>=0;)for(;Ae(qe,1),!ue(qe););})},je&&(lr.count=function(ue,qe){return r.setTime(+ue),t.setTime(+qe),se(r),se(t),Math.floor(je(r,t))},lr.every=function(ue){return ue=Math.floor(ue),!isFinite(ue)||!(ue>0)?null:ue>1?lr.filter(ur?function(qe){return ur(qe)%ue===0}:function(qe){return lr.count(0,qe)%ue===0}):lr}),lr}var n=a(function(){},function(se,Ae){se.setTime(+se+Ae)},function(se,Ae){return Ae-se});n.every=function(se){return se=Math.floor(se),!isFinite(se)||!(se>0)?null:se>1?a(function(Ae){Ae.setTime(Math.floor(Ae/se)*se)},function(Ae,je){Ae.setTime(+Ae+je*se)},function(Ae,je){return(je-Ae)/se}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(se){se.setTime(se-se.getMilliseconds())},function(se,Ae){se.setTime(+se+Ae*o)},function(se,Ae){return(Ae-se)/o},function(se){return se.getUTCSeconds()}),v=c.range,d=a(function(se){se.setTime(se-se.getMilliseconds()-se.getSeconds()*o)},function(se,Ae){se.setTime(+se+Ae*l)},function(se,Ae){return(Ae-se)/l},function(se){return se.getMinutes()}),p=d.range,y=a(function(se){se.setTime(se-se.getMilliseconds()-se.getSeconds()*o-se.getMinutes()*l)},function(se,Ae){se.setTime(+se+Ae*s)},function(se,Ae){return(Ae-se)/s},function(se){return se.getHours()}),m=y.range,x=a(function(se){se.setHours(0,0,0,0)},function(se,Ae){se.setDate(se.getDate()+Ae)},function(se,Ae){return(Ae-se-(Ae.getTimezoneOffset()-se.getTimezoneOffset())*l)/u},function(se){return se.getDate()-1}),w=x.range;function _(se){return a(function(Ae){Ae.setDate(Ae.getDate()-(Ae.getDay()+7-se)%7),Ae.setHours(0,0,0,0)},function(Ae,je){Ae.setDate(Ae.getDate()+je*7)},function(Ae,je){return(je-Ae-(je.getTimezoneOffset()-Ae.getTimezoneOffset())*l)/f})}var b=_(0),T=_(1),k=_(2),M=_(3),q=_(4),E=_(5),D=_(6),P=b.range,R=T.range,z=k.range,O=M.range,B=q.range,Y=E.range,G=D.range,U=a(function(se){se.setDate(1),se.setHours(0,0,0,0)},function(se,Ae){se.setMonth(se.getMonth()+Ae)},function(se,Ae){return Ae.getMonth()-se.getMonth()+(Ae.getFullYear()-se.getFullYear())*12},function(se){return se.getMonth()}),V=U.range,X=a(function(se){se.setMonth(0,1),se.setHours(0,0,0,0)},function(se,Ae){se.setFullYear(se.getFullYear()+Ae)},function(se,Ae){return Ae.getFullYear()-se.getFullYear()},function(se){return se.getFullYear()});X.every=function(se){return!isFinite(se=Math.floor(se))||!(se>0)?null:a(function(Ae){Ae.setFullYear(Math.floor(Ae.getFullYear()/se)*se),Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,je){Ae.setFullYear(Ae.getFullYear()+je*se)})};var Z=X.range,re=a(function(se){se.setUTCSeconds(0,0)},function(se,Ae){se.setTime(+se+Ae*l)},function(se,Ae){return(Ae-se)/l},function(se){return se.getUTCMinutes()}),ce=re.range,oe=a(function(se){se.setUTCMinutes(0,0,0)},function(se,Ae){se.setTime(+se+Ae*s)},function(se,Ae){return(Ae-se)/s},function(se){return se.getUTCHours()}),fe=oe.range,K=a(function(se){se.setUTCHours(0,0,0,0)},function(se,Ae){se.setUTCDate(se.getUTCDate()+Ae)},function(se,Ae){return(Ae-se)/u},function(se){return se.getUTCDate()-1}),Te=K.range;function le(se){return a(function(Ae){Ae.setUTCDate(Ae.getUTCDate()-(Ae.getUTCDay()+7-se)%7),Ae.setUTCHours(0,0,0,0)},function(Ae,je){Ae.setUTCDate(Ae.getUTCDate()+je*7)},function(Ae,je){return(je-Ae)/f})}var pe=le(0),ie=le(1),ve=le(2),W=le(3),Q=le(4),j=le(5),ye=le(6),_e=pe.range,me=ie.range,Pe=ve.range,Ne=W.range,Re=Q.range,ze=j.range,Ge=ye.range,He=a(function(se){se.setUTCDate(1),se.setUTCHours(0,0,0,0)},function(se,Ae){se.setUTCMonth(se.getUTCMonth()+Ae)},function(se,Ae){return Ae.getUTCMonth()-se.getUTCMonth()+(Ae.getUTCFullYear()-se.getUTCFullYear())*12},function(se){return se.getUTCMonth()}),Ee=He.range,Ie=a(function(se){se.setUTCMonth(0,1),se.setUTCHours(0,0,0,0)},function(se,Ae){se.setUTCFullYear(se.getUTCFullYear()+Ae)},function(se,Ae){return Ae.getUTCFullYear()-se.getUTCFullYear()},function(se){return se.getUTCFullYear()});Ie.every=function(se){return!isFinite(se=Math.floor(se))||!(se>0)?null:a(function(Ae){Ae.setUTCFullYear(Math.floor(Ae.getUTCFullYear()/se)*se),Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,je){Ae.setUTCFullYear(Ae.getUTCFullYear()+je*se)})};var Be=Ie.range;e.timeDay=x,e.timeDays=w,e.timeFriday=E,e.timeFridays=Y,e.timeHour=y,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=T,e.timeMondays=R,e.timeMonth=U,e.timeMonths=V,e.timeSaturday=D,e.timeSaturdays=G,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=b,e.timeSundays=P,e.timeThursday=q,e.timeThursdays=B,e.timeTuesday=k,e.timeTuesdays=z,e.timeWednesday=M,e.timeWednesdays=O,e.timeWeek=b,e.timeWeeks=P,e.timeYear=X,e.timeYears=Z,e.utcDay=K,e.utcDays=Te,e.utcFriday=j,e.utcFridays=ze,e.utcHour=oe,e.utcHours=fe,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=re,e.utcMinutes=ce,e.utcMonday=ie,e.utcMondays=me,e.utcMonth=He,e.utcMonths=Ee,e.utcSaturday=ye,e.utcSaturdays=Ge,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=pe,e.utcSundays=_e,e.utcThursday=Q,e.utcThursdays=Re,e.utcTuesday=ve,e.utcTuesdays=Pe,e.utcWednesday=W,e.utcWednesdays=Ne,e.utcWeek=pe,e.utcWeeks=_e,e.utcYear=Ie,e.utcYears=Be,Object.defineProperty(e,"__esModule",{value:!0})})});var xf=N((fp,VA)=>{(function(e,r){typeof fp=="object"&&typeof VA!="undefined"?r(fp,K3()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(fp,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var de=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return de.setFullYear(ne.y),de}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var de=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return de.setUTCFullYear(ne.y),de}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,de,De){return{y:ne,m:de,d:De,H:0,M:0,S:0,L:0}}function i(ne){var de=ne.dateTime,De=ne.date,Le=ne.time,ar=ne.periods,sr=ne.days,nr=ne.shortDays,Mr=ne.months,Or=ne.shortMonths,Zr=v(ar),Yr=d(ar),Vt=v(sr),wt=d(sr),Tt=v(nr),pt=d(nr),Xt=v(Mr),Jt=d(Mr),It=v(Or),za=d(Or),br={a:Ko,A:Qo,b:vt,B:An,c:null,d:U,e:U,f:ce,H:V,I:X,j:Z,L:re,m:oe,M:fe,p:Ft,q:zs,Q:qe,s:Oe,S:K,u:Te,U:le,V:pe,w:ie,W:ve,x:null,X:null,y:W,Y:Q,Z:j,"%":ue},yt={a:yn,A:Vi,b:Yt,B:Yi,c:null,d:ye,e:ye,f:Re,H:_e,I:me,j:Pe,L:Ne,m:ze,M:Ge,p:Rl,q:Pl,Q:qe,s:Oe,S:He,u:Ee,U:Ie,V:Be,w:se,W:Ae,x:null,X:null,y:je,Y:ur,Z:lr,"%":ue},Nr={a:xa,A:$t,b:tn,B:Tn,c:Kt,d:q,e:q,f:O,H:D,I:D,j:E,L:z,m:M,M:P,p:ct,q:k,Q:Y,s:G,S:R,u:y,U:m,V:x,w:p,W:w,x:ft,X:_a,y:b,Y:_,Z:T,"%":B};br.x=ut(De,br),br.X=ut(Le,br),br.c=ut(de,br),yt.x=ut(De,yt),yt.X=ut(Le,yt),yt.c=ut(de,yt);function ut(yr,$r){return function(ht){var fr=[],Ia=-1,kt=0,Oa=yr.length,Br,Wi,Is;for(ht instanceof Date||(ht=new Date(+ht));++Ia53)return null;"w"in fr||(fr.w=1),"Z"in fr?(kt=a(n(fr.y,0,1)),Oa=kt.getUTCDay(),kt=Oa>4||Oa===0?r.utcMonday.ceil(kt):r.utcMonday(kt),kt=r.utcDay.offset(kt,(fr.V-1)*7),fr.y=kt.getUTCFullYear(),fr.m=kt.getUTCMonth(),fr.d=kt.getUTCDate()+(fr.w+6)%7):(kt=t(n(fr.y,0,1)),Oa=kt.getDay(),kt=Oa>4||Oa===0?r.timeMonday.ceil(kt):r.timeMonday(kt),kt=r.timeDay.offset(kt,(fr.V-1)*7),fr.y=kt.getFullYear(),fr.m=kt.getMonth(),fr.d=kt.getDate()+(fr.w+6)%7)}else("W"in fr||"U"in fr)&&("w"in fr||(fr.w="u"in fr?fr.u%7:"W"in fr?1:0),Oa="Z"in fr?a(n(fr.y,0,1)).getUTCDay():t(n(fr.y,0,1)).getDay(),fr.m=0,fr.d="W"in fr?(fr.w+6)%7+fr.W*7-(Oa+5)%7:fr.w+fr.U*7-(Oa+6)%7);return"Z"in fr?(fr.H+=fr.Z/100|0,fr.M+=fr.Z%100,a(fr)):t(fr)}}function Qr(yr,$r,ht,fr){for(var Ia=0,kt=$r.length,Oa=ht.length,Br,Wi;Ia=Oa)return-1;if(Br=$r.charCodeAt(Ia++),Br===37){if(Br=$r.charAt(Ia++),Wi=Nr[Br in o?$r.charAt(Ia++):Br],!Wi||(fr=Wi(yr,ht,fr))<0)return-1}else if(Br!=ht.charCodeAt(fr++))return-1}return fr}function ct(yr,$r,ht){var fr=Zr.exec($r.slice(ht));return fr?(yr.p=Yr[fr[0].toLowerCase()],ht+fr[0].length):-1}function xa(yr,$r,ht){var fr=Tt.exec($r.slice(ht));return fr?(yr.w=pt[fr[0].toLowerCase()],ht+fr[0].length):-1}function $t(yr,$r,ht){var fr=Vt.exec($r.slice(ht));return fr?(yr.w=wt[fr[0].toLowerCase()],ht+fr[0].length):-1}function tn(yr,$r,ht){var fr=It.exec($r.slice(ht));return fr?(yr.m=za[fr[0].toLowerCase()],ht+fr[0].length):-1}function Tn(yr,$r,ht){var fr=Xt.exec($r.slice(ht));return fr?(yr.m=Jt[fr[0].toLowerCase()],ht+fr[0].length):-1}function Kt(yr,$r,ht){return Qr(yr,de,$r,ht)}function ft(yr,$r,ht){return Qr(yr,De,$r,ht)}function _a(yr,$r,ht){return Qr(yr,Le,$r,ht)}function Ko(yr){return nr[yr.getDay()]}function Qo(yr){return sr[yr.getDay()]}function vt(yr){return Or[yr.getMonth()]}function An(yr){return Mr[yr.getMonth()]}function Ft(yr){return ar[+(yr.getHours()>=12)]}function zs(yr){return 1+~~(yr.getMonth()/3)}function yn(yr){return nr[yr.getUTCDay()]}function Vi(yr){return sr[yr.getUTCDay()]}function Yt(yr){return Or[yr.getUTCMonth()]}function Yi(yr){return Mr[yr.getUTCMonth()]}function Rl(yr){return ar[+(yr.getUTCHours()>=12)]}function Pl(yr){return 1+~~(yr.getUTCMonth()/3)}return{format:function(yr){var $r=ut(yr+="",br);return $r.toString=function(){return yr},$r},parse:function(yr){var $r=Pt(yr+="",!1);return $r.toString=function(){return yr},$r},utcFormat:function(yr){var $r=ut(yr+="",yt);return $r.toString=function(){return yr},$r},utcParse:function(yr){var $r=Pt(yr+="",!0);return $r.toString=function(){return yr},$r}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,de,De){var Le=ne<0?"-":"",ar=(Le?-ne:ne)+"",sr=ar.length;return Le+(sr68?1900:2e3),De+Le[0].length):-1}function T(ne,de,De){var Le=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(de.slice(De,De+6));return Le?(ne.Z=Le[1]?0:-(Le[2]+(Le[3]||"00")),De+Le[0].length):-1}function k(ne,de,De){var Le=l.exec(de.slice(De,De+1));return Le?(ne.q=Le[0]*3-3,De+Le[0].length):-1}function M(ne,de,De){var Le=l.exec(de.slice(De,De+2));return Le?(ne.m=Le[0]-1,De+Le[0].length):-1}function q(ne,de,De){var Le=l.exec(de.slice(De,De+2));return Le?(ne.d=+Le[0],De+Le[0].length):-1}function E(ne,de,De){var Le=l.exec(de.slice(De,De+3));return Le?(ne.m=0,ne.d=+Le[0],De+Le[0].length):-1}function D(ne,de,De){var Le=l.exec(de.slice(De,De+2));return Le?(ne.H=+Le[0],De+Le[0].length):-1}function P(ne,de,De){var Le=l.exec(de.slice(De,De+2));return Le?(ne.M=+Le[0],De+Le[0].length):-1}function R(ne,de,De){var Le=l.exec(de.slice(De,De+2));return Le?(ne.S=+Le[0],De+Le[0].length):-1}function z(ne,de,De){var Le=l.exec(de.slice(De,De+3));return Le?(ne.L=+Le[0],De+Le[0].length):-1}function O(ne,de,De){var Le=l.exec(de.slice(De,De+6));return Le?(ne.L=Math.floor(Le[0]/1e3),De+Le[0].length):-1}function B(ne,de,De){var Le=s.exec(de.slice(De,De+1));return Le?De+Le[0].length:-1}function Y(ne,de,De){var Le=l.exec(de.slice(De));return Le?(ne.Q=+Le[0],De+Le[0].length):-1}function G(ne,de,De){var Le=l.exec(de.slice(De));return Le?(ne.s=+Le[0],De+Le[0].length):-1}function U(ne,de){return f(ne.getDate(),de,2)}function V(ne,de){return f(ne.getHours(),de,2)}function X(ne,de){return f(ne.getHours()%12||12,de,2)}function Z(ne,de){return f(1+r.timeDay.count(r.timeYear(ne),ne),de,3)}function re(ne,de){return f(ne.getMilliseconds(),de,3)}function ce(ne,de){return re(ne,de)+"000"}function oe(ne,de){return f(ne.getMonth()+1,de,2)}function fe(ne,de){return f(ne.getMinutes(),de,2)}function K(ne,de){return f(ne.getSeconds(),de,2)}function Te(ne){var de=ne.getDay();return de===0?7:de}function le(ne,de){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),de,2)}function pe(ne,de){var De=ne.getDay();return ne=De>=4||De===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),de,2)}function ie(ne){return ne.getDay()}function ve(ne,de){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),de,2)}function W(ne,de){return f(ne.getFullYear()%100,de,2)}function Q(ne,de){return f(ne.getFullYear()%1e4,de,4)}function j(ne){var de=ne.getTimezoneOffset();return(de>0?"-":(de*=-1,"+"))+f(de/60|0,"0",2)+f(de%60,"0",2)}function ye(ne,de){return f(ne.getUTCDate(),de,2)}function _e(ne,de){return f(ne.getUTCHours(),de,2)}function me(ne,de){return f(ne.getUTCHours()%12||12,de,2)}function Pe(ne,de){return f(1+r.utcDay.count(r.utcYear(ne),ne),de,3)}function Ne(ne,de){return f(ne.getUTCMilliseconds(),de,3)}function Re(ne,de){return Ne(ne,de)+"000"}function ze(ne,de){return f(ne.getUTCMonth()+1,de,2)}function Ge(ne,de){return f(ne.getUTCMinutes(),de,2)}function He(ne,de){return f(ne.getUTCSeconds(),de,2)}function Ee(ne){var de=ne.getUTCDay();return de===0?7:de}function Ie(ne,de){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),de,2)}function Be(ne,de){var De=ne.getUTCDay();return ne=De>=4||De===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),de,2)}function se(ne){return ne.getUTCDay()}function Ae(ne,de){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),de,2)}function je(ne,de){return f(ne.getUTCFullYear()%100,de,2)}function ur(ne,de){return f(ne.getUTCFullYear()%1e4,de,4)}function lr(){return"+0000"}function ue(){return"%"}function qe(ne){return+ne}function Oe(ne){return Math.floor(+ne/1e3)}var Ze;Ue({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Ue(ne){return Ze=i(ne),e.timeFormat=Ze.format,e.timeParse=Ze.parse,e.utcFormat=Ze.utcFormat,e.utcParse=Ze.utcParse,Ze}var Xe="%Y-%m-%dT%H:%M:%S.%LZ";function Ke(ne){return ne.toISOString()}var hr=Date.prototype.toISOString?Ke:e.utcFormat(Xe);function $e(ne){var de=new Date(ne);return isNaN(de)?null:de}var Fe=+new Date("2000-01-01T00:00:00.000Z")?$e:e.utcParse(Xe);e.isoFormat=hr,e.isoParse=Fe,e.timeFormatDefaultLocale=Ue,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Q3=N((cp,YA)=>{(function(e,r){typeof cp=="object"&&typeof YA!="undefined"?r(cp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(cp,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,q){if((E=(M=q?M.toExponential(q-1):M.toExponential()).indexOf("e"))<0)return null;var E,D=M.slice(0,E);return[D.length>1?D[0]+D.slice(2):D,+M.slice(E+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,q){return function(E,D){for(var P=E.length,R=[],z=0,O=M[0],B=0;P>0&&O>0&&(B+O+1>D&&(O=Math.max(1,D-B)),R.push(E.substring(P-=O,P+O)),!((B+=O+1)>D));)O=M[z=(z+1)%M.length];return R.reverse().join(q)}}function i(M){return function(q){return q.replace(/[0-9]/g,function(E){return M[+E]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(q=o.exec(M)))throw new Error("invalid format: "+M);var q;return new s({fill:q[1],align:q[2],sign:q[3],symbol:q[4],zero:q[5],width:q[6],comma:q[7],precision:q[8]&&q[8].slice(1),trim:q[9],type:q[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var q=M.length,E=1,D=-1,P;E0&&(D=0);break}return D>0?M.slice(0,D)+M.slice(P+1):M}var f;function c(M,q){var E=t(M,q);if(!E)return M+"";var D=E[0],P=E[1],R=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,z=D.length;return R===z?D:R>z?D+new Array(R-z+1).join("0"):R>0?D.slice(0,R)+"."+D.slice(R):"0."+new Array(1-R).join("0")+t(M,Math.max(0,q+R-1))[0]}function v(M,q){var E=t(M,q);if(!E)return M+"";var D=E[0],P=E[1];return P<0?"0."+new Array(-P).join("0")+D:D.length>P+1?D.slice(0,P+1)+"."+D.slice(P+1):D+new Array(P-D.length+2).join("0")}var d={"%":function(M,q){return(M*100).toFixed(q)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,q){return M.toExponential(q)},f:function(M,q){return M.toFixed(q)},g:function(M,q){return M.toPrecision(q)},o:function(M){return Math.round(M).toString(8)},p:function(M,q){return v(M*100,q)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var y=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function x(M){var q=M.grouping===void 0||M.thousands===void 0?p:n(y.call(M.grouping,Number),M.thousands+""),E=M.currency===void 0?"":M.currency[0]+"",D=M.currency===void 0?"":M.currency[1]+"",P=M.decimal===void 0?".":M.decimal+"",R=M.numerals===void 0?p:i(y.call(M.numerals,String)),z=M.percent===void 0?"%":M.percent+"",O=M.minus===void 0?"-":M.minus+"",B=M.nan===void 0?"NaN":M.nan+"";function Y(U){U=l(U);var V=U.fill,X=U.align,Z=U.sign,re=U.symbol,ce=U.zero,oe=U.width,fe=U.comma,K=U.precision,Te=U.trim,le=U.type;le==="n"?(fe=!0,le="g"):d[le]||(K===void 0&&(K=12),Te=!0,le="g"),(ce||V==="0"&&X==="=")&&(ce=!0,V="0",X="=");var pe=re==="$"?E:re==="#"&&/[boxX]/.test(le)?"0"+le.toLowerCase():"",ie=re==="$"?D:/[%p]/.test(le)?z:"",ve=d[le],W=/[defgprs%]/.test(le);K=K===void 0?6:/[gprs]/.test(le)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K));function Q(j){var ye=pe,_e=ie,me,Pe,Ne;if(le==="c")_e=ve(j)+_e,j="";else{j=+j;var Re=j<0||1/j<0;if(j=isNaN(j)?B:ve(Math.abs(j),K),Te&&(j=u(j)),Re&&+j==0&&Z!=="+"&&(Re=!1),ye=(Re?Z==="("?Z:O:Z==="-"||Z==="("?"":Z)+ye,_e=(le==="s"?m[8+f/3]:"")+_e+(Re&&Z==="("?")":""),W){for(me=-1,Pe=j.length;++meNe||Ne>57){_e=(Ne===46?P+j.slice(me+1):j.slice(me))+_e,j=j.slice(0,me);break}}}fe&&!ce&&(j=q(j,1/0));var ze=ye.length+j.length+_e.length,Ge=ze>1)+ye+j+_e+Ge.slice(ze);break;default:j=Ge+ye+j+_e;break}return R(j)}return Q.toString=function(){return U+""},Q}function G(U,V){var X=Y((U=l(U),U.type="f",U)),Z=Math.max(-8,Math.min(8,Math.floor(a(V)/3)))*3,re=Math.pow(10,-Z),ce=m[8+Z/3];return function(oe){return X(re*oe)+ce}}return{format:Y,formatPrefix:G}}var w;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(M){return w=x(M),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(M){return Math.max(0,-a(Math.abs(M)))}function T(M,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(M)))}function k(M,q){return M=Math.abs(M),q=Math.abs(q)-M,Math.max(0,a(q)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=_,e.formatLocale=x,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=T,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var jA=N((tCe,WA)=>{"use strict";WA.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Rr=N((aCe,ZA)=>{"use strict";var Vie=jA();ZA.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Vie(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Nt=N((nCe,XA)=>{"use strict";XA.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var eb=N((vp,JA)=>{(function(e,r){typeof vp=="object"&&typeof JA!="undefined"?r(vp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(vp,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var y=new ArrayBuffer(l),m=new Uint8Array(y);for(u=0;u>4,m[f++]=(v&15)<<4|d>>2,m[f++]=(d&3)<<6|p&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var zl=N((iCe,$A)=>{"use strict";$A.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Yn=N(Xi=>{"use strict";var Yie=eb().decode,Wie=zl(),rb=Array.isArray,jie=ArrayBuffer,Zie=DataView;function KA(e){return jie.isView(e)&&!(e instanceof Zie)}Xi.isTypedArray=KA;function hp(e){return rb(e)||KA(e)}Xi.isArrayOrTypedArray=hp;function Xie(e){return!hp(e[0])}Xi.isArray1D=Xie;Xi.ensureArray=function(e,r){return rb(e)||(e=[]),e.length=r,e};var Ca={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ca.uint8c=Ca.u1c;Ca.uint8=Ca.u1;Ca.int8=Ca.i1;Ca.uint16=Ca.u2;Ca.int16=Ca.i2;Ca.uint32=Ca.u4;Ca.int32=Ca.i4;Ca.float32=Ca.f4;Ca.float64=Ca.f8;function tb(e){return e.constructor===ArrayBuffer}Xi.isArrayBuffer=tb;Xi.decodeTypedArraySpec=function(e){var r=[],t=Jie(e),a=t.dtype,n=Ca[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;tb(o)||(o=Yie(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var eM=Rr(),nb=Yn().isArrayOrTypedArray;nM.exports=function(r,t){if(eM(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var _f=dp(),roe=/^\w*$/,toe=0,iM=1,pp=2,oM=3,Vs=4;lM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=_f(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|pp,c.set(v,null);if(f){for(i=d;i{"use strict";var aoe=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,noe=/^[^\.\[\]]+$/;uM.exports=function(e,r){for(;r;){var t=e.match(aoe);if(t)e=t[1];else if(e.match(noe))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var yp=N((fCe,cM)=>{"use strict";var ioe=Rr();cM.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return ioe(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var dM=N((cCe,hM)=>{"use strict";var vM=Yn().isArrayOrTypedArray,Gv=zl();hM.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(vM(n)&&vM(i)&&Gv(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function ooe(e,r){var t=e%r;return t<0?t+r:t}function loe(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}pM.exports={mod:ooe,modHalf:loe}});var Sn=N((hCe,mp)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(W,Q){if(W=W||"",Q=Q||{},W instanceof s)return W;if(!(this instanceof s))return new s(W,Q);var j=u(W);this._originalInput=W,this._r=j.r,this._g=j.g,this._b=j.b,this._a=j.a,this._roundA=n(100*this._a)/100,this._format=Q.format||j.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=j.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var W=this.toRgb();return(W.r*299+W.g*587+W.b*114)/1e3},getLuminance:function(){var W=this.toRgb(),Q,j,ye,_e,me,Pe;return Q=W.r/255,j=W.g/255,ye=W.b/255,Q<=.03928?_e=Q/12.92:_e=e.pow((Q+.055)/1.055,2.4),j<=.03928?me=j/12.92:me=e.pow((j+.055)/1.055,2.4),ye<=.03928?Pe=ye/12.92:Pe=e.pow((ye+.055)/1.055,2.4),.2126*_e+.7152*me+.0722*Pe},setAlpha:function(W){return this._a=U(W),this._roundA=n(100*this._a)/100,this},toHsv:function(){var W=d(this._r,this._g,this._b);return{h:W.h*360,s:W.s,v:W.v,a:this._a}},toHsvString:function(){var W=d(this._r,this._g,this._b),Q=n(W.h*360),j=n(W.s*100),ye=n(W.v*100);return this._a==1?"hsv("+Q+", "+j+"%, "+ye+"%)":"hsva("+Q+", "+j+"%, "+ye+"%, "+this._roundA+")"},toHsl:function(){var W=c(this._r,this._g,this._b);return{h:W.h*360,s:W.s,l:W.l,a:this._a}},toHslString:function(){var W=c(this._r,this._g,this._b),Q=n(W.h*360),j=n(W.s*100),ye=n(W.l*100);return this._a==1?"hsl("+Q+", "+j+"%, "+ye+"%)":"hsla("+Q+", "+j+"%, "+ye+"%, "+this._roundA+")"},toHex:function(W){return y(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return m(this._r,this._g,this._b,this._a,W)},toHex8String:function(W){return"#"+this.toHex8(W)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(V(this._r,255)*100)+"%",g:n(V(this._g,255)*100)+"%",b:n(V(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(V(this._r,255)*100)+"%, "+n(V(this._g,255)*100)+"%, "+n(V(this._b,255)*100)+"%)":"rgba("+n(V(this._r,255)*100)+"%, "+n(V(this._g,255)*100)+"%, "+n(V(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Y[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var Q="#"+x(this._r,this._g,this._b,this._a),j=Q,ye=this._gradientType?"GradientType = 1, ":"";if(W){var _e=s(W);j="#"+x(_e._r,_e._g,_e._b,_e._a)}return"progid:DXImageTransform.Microsoft.gradient("+ye+"startColorstr="+Q+",endColorstr="+j+")"},toString:function(W){var Q=!!W;W=W||this._format;var j=!1,ye=this._a<1&&this._a>=0,_e=!Q&&ye&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return _e?W==="name"&&this._a===0?this.toName():this.toRgbString():(W==="rgb"&&(j=this.toRgbString()),W==="prgb"&&(j=this.toPercentageRgbString()),(W==="hex"||W==="hex6")&&(j=this.toHexString()),W==="hex3"&&(j=this.toHexString(!0)),W==="hex4"&&(j=this.toHex8String(!0)),W==="hex8"&&(j=this.toHex8String()),W==="name"&&(j=this.toName()),W==="hsl"&&(j=this.toHslString()),W==="hsv"&&(j=this.toHsvString()),j||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(W,Q){var j=W.apply(null,[this].concat([].slice.call(Q)));return this._r=j._r,this._g=j._g,this._b=j._b,this.setAlpha(j._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(q,arguments)},_applyCombination:function(W,Q){return W.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(P,arguments)}},s.fromRatio=function(W,Q){if(typeof W=="object"){var j={};for(var ye in W)W.hasOwnProperty(ye)&&(ye==="a"?j[ye]=W[ye]:j[ye]=fe(W[ye]));W=j}return s(W,Q)};function u(W){var Q={r:0,g:0,b:0},j=1,ye=null,_e=null,me=null,Pe=!1,Ne=!1;return typeof W=="string"&&(W=ie(W)),typeof W=="object"&&(pe(W.r)&&pe(W.g)&&pe(W.b)?(Q=f(W.r,W.g,W.b),Pe=!0,Ne=String(W.r).substr(-1)==="%"?"prgb":"rgb"):pe(W.h)&&pe(W.s)&&pe(W.v)?(ye=fe(W.s),_e=fe(W.v),Q=p(W.h,ye,_e),Pe=!0,Ne="hsv"):pe(W.h)&&pe(W.s)&&pe(W.l)&&(ye=fe(W.s),me=fe(W.l),Q=v(W.h,ye,me),Pe=!0,Ne="hsl"),W.hasOwnProperty("a")&&(j=W.a)),j=U(j),{ok:Pe,format:W.format||Ne,r:i(255,o(Q.r,0)),g:i(255,o(Q.g,0)),b:i(255,o(Q.b,0)),a:j}}function f(W,Q,j){return{r:V(W,255)*255,g:V(Q,255)*255,b:V(j,255)*255}}function c(W,Q,j){W=V(W,255),Q=V(Q,255),j=V(j,255);var ye=o(W,Q,j),_e=i(W,Q,j),me,Pe,Ne=(ye+_e)/2;if(ye==_e)me=Pe=0;else{var Re=ye-_e;switch(Pe=Ne>.5?Re/(2-ye-_e):Re/(ye+_e),ye){case W:me=(Q-j)/Re+(Q1&&(He-=1),He<1/6?ze+(Ge-ze)*6*He:He<1/2?Ge:He<2/3?ze+(Ge-ze)*(2/3-He)*6:ze}if(Q===0)ye=_e=me=j;else{var Ne=j<.5?j*(1+Q):j+Q-j*Q,Re=2*j-Ne;ye=Pe(Re,Ne,W+1/3),_e=Pe(Re,Ne,W),me=Pe(Re,Ne,W-1/3)}return{r:ye*255,g:_e*255,b:me*255}}function d(W,Q,j){W=V(W,255),Q=V(Q,255),j=V(j,255);var ye=o(W,Q,j),_e=i(W,Q,j),me,Pe,Ne=ye,Re=ye-_e;if(Pe=ye===0?0:Re/ye,ye==_e)me=0;else{switch(ye){case W:me=(Q-j)/Re+(Q>1)+720)%360;--Q;)ye.h=(ye.h+_e)%360,me.push(s(ye));return me}function O(W,Q){Q=Q||6;for(var j=s(W).toHsv(),ye=j.h,_e=j.s,me=j.v,Pe=[],Ne=1/Q;Q--;)Pe.push(s({h:ye,s:_e,v:me})),me=(me+Ne)%1;return Pe}s.mix=function(W,Q,j){j=j===0?0:j||50;var ye=s(W).toRgb(),_e=s(Q).toRgb(),me=j/100,Pe={r:(_e.r-ye.r)*me+ye.r,g:(_e.g-ye.g)*me+ye.g,b:(_e.b-ye.b)*me+ye.b,a:(_e.a-ye.a)*me+ye.a};return s(Pe)},s.readability=function(W,Q){var j=s(W),ye=s(Q);return(e.max(j.getLuminance(),ye.getLuminance())+.05)/(e.min(j.getLuminance(),ye.getLuminance())+.05)},s.isReadable=function(W,Q,j){var ye=s.readability(W,Q),_e,me;switch(me=!1,_e=ve(j),_e.level+_e.size){case"AAsmall":case"AAAlarge":me=ye>=4.5;break;case"AAlarge":me=ye>=3;break;case"AAAsmall":me=ye>=7;break}return me},s.mostReadable=function(W,Q,j){var ye=null,_e=0,me,Pe,Ne,Re;j=j||{},Pe=j.includeFallbackColors,Ne=j.level,Re=j.size;for(var ze=0;ze_e&&(_e=me,ye=s(Q[ze]));return s.isReadable(W,ye,{level:Ne,size:Re})||!Pe?ye:(j.includeFallbackColors=!1,s.mostReadable(W,["#fff","#000"],j))};var B=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Y=s.hexNames=G(B);function G(W){var Q={};for(var j in W)W.hasOwnProperty(j)&&(Q[W[j]]=j);return Q}function U(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function V(W,Q){re(W)&&(W="100%");var j=ce(W);return W=i(Q,o(0,parseFloat(W))),j&&(W=parseInt(W*Q,10)/100),e.abs(W-Q)<1e-6?1:W%Q/parseFloat(Q)}function X(W){return i(1,o(0,W))}function Z(W){return parseInt(W,16)}function re(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function ce(W){return typeof W=="string"&&W.indexOf("%")!=-1}function oe(W){return W.length==1?"0"+W:""+W}function fe(W){return W<=1&&(W=W*100+"%"),W}function K(W){return e.round(parseFloat(W)*255).toString(16)}function Te(W){return Z(W)/255}var le=function(){var W="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",j="(?:"+Q+")|(?:"+W+")",ye="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",_e="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?";return{CSS_UNIT:new RegExp(j),rgb:new RegExp("rgb"+ye),rgba:new RegExp("rgba"+_e),hsl:new RegExp("hsl"+ye),hsla:new RegExp("hsla"+_e),hsv:new RegExp("hsv"+ye),hsva:new RegExp("hsva"+_e),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function pe(W){return!!le.CSS_UNIT.exec(W)}function ie(W){W=W.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(B[W])W=B[W],Q=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var j;return(j=le.rgb.exec(W))?{r:j[1],g:j[2],b:j[3]}:(j=le.rgba.exec(W))?{r:j[1],g:j[2],b:j[3],a:j[4]}:(j=le.hsl.exec(W))?{h:j[1],s:j[2],l:j[3]}:(j=le.hsla.exec(W))?{h:j[1],s:j[2],l:j[3],a:j[4]}:(j=le.hsv.exec(W))?{h:j[1],s:j[2],v:j[3]}:(j=le.hsva.exec(W))?{h:j[1],s:j[2],v:j[3],a:j[4]}:(j=le.hex8.exec(W))?{r:Z(j[1]),g:Z(j[2]),b:Z(j[3]),a:Te(j[4]),format:Q?"name":"hex8"}:(j=le.hex6.exec(W))?{r:Z(j[1]),g:Z(j[2]),b:Z(j[3]),format:Q?"name":"hex"}:(j=le.hex4.exec(W))?{r:Z(j[1]+""+j[1]),g:Z(j[2]+""+j[2]),b:Z(j[3]+""+j[3]),a:Te(j[4]+""+j[4]),format:Q?"name":"hex8"}:(j=le.hex3.exec(W))?{r:Z(j[1]+""+j[1]),g:Z(j[2]+""+j[2]),b:Z(j[3]+""+j[3]),format:Q?"name":"hex"}:!1}function ve(W){var Q,j;return W=W||{level:"AA",size:"small"},Q=(W.level||"AA").toUpperCase(),j=(W.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),j!=="small"&&j!=="large"&&(j="small"),{level:Q,size:j}}typeof mp!="undefined"&&mp.exports?mp.exports=s:window.tinycolor=s})(Math)});var xt=N(Wv=>{"use strict";var yM=zl(),Vv=Array.isArray;function soe(e,r){var t,a;for(t=0;t{"use strict";mM.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var jv=N((yCe,gM)=>{"use strict";gM.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Tf=N((mCe,_M)=>{"use strict";var bM=jv(),xM=da(),ib=xM({editType:"none"});ib.family.dflt=bM.HOVERFONT;ib.size.dflt=bM.HOVERFONTSIZE;_M.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:ib,grouptitlefont:xM({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var gp=N((gCe,wM)=>{"use strict";var uoe=da(),Zv=Tf().hoverlabel,Xv=xt().extendFlat;wM.exports={hoverlabel:{bgcolor:Xv({},Zv.bgcolor,{arrayOk:!0}),bordercolor:Xv({},Zv.bordercolor,{arrayOk:!0}),font:uoe({arrayOk:!0,editType:"none"}),align:Xv({},Zv.align,{arrayOk:!0}),namelength:Xv({},Zv.namelength,{arrayOk:!0}),showarrow:Xv({},Zv.showarrow),editType:"none"}}});var gn=N((bCe,TM)=>{"use strict";var foe=da(),coe=gp();TM.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:foe({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:coe.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Ys=N((xCe,kM)=>{"use strict";var voe=Sn(),bp={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},AM=bp.RdBu;function hoe(e,r){if(r||(r=AM),!e)return r;function t(){try{e=bp[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),MM(e)?e:r}function MM(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";Ws.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Ws.defaultLine="#444";Ws.lightLine="#eee";Ws.background="#fff";Ws.borderLine="#BEC8D9";Ws.lightFraction=100*10/11});var Tr=N((wCe,SM)=>{"use strict";var qn=Sn(),poe=Rr(),yoe=Yn().isTypedArray,wa=SM.exports={},xp=si();wa.defaults=xp.defaults;var moe=wa.defaultLine=xp.defaultLine;wa.lightLine=xp.lightLine;var lb=wa.background=xp.background;wa.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};wa.rgb=function(e){return wa.tinyRGB(qn(e))};wa.opacity=function(e){return e?qn(e).getAlpha():0};wa.addOpacity=function(e,r){var t=qn(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};wa.combine=function(e,r){var t=qn(e).toRgb();if(t.a===1)return qn(e).toRgbString();var a=qn(r||lb).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return qn(i).toRgbString()};wa.interpolate=function(e,r,t){var a=qn(e).toRgb(),n=qn(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return qn(i).toRgbString()};wa.contrast=function(e,r,t){var a=qn(e);a.getAlpha()!==1&&(a=qn(wa.combine(e,lb)));var n=a.isDark()?r?a.lighten(r):lb:t?a.darken(t):moe;return n.toString()};wa.stroke=function(e,r){var t=qn(r);e.style({stroke:wa.tinyRGB(t),"stroke-opacity":t.getAlpha()})};wa.fill=function(e,r){var t=qn(r);e.style({fill:wa.tinyRGB(t),"fill-opacity":t.getAlpha()})};wa.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var o=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+o+", "+a[3]+")":"rgb("+o+")"}});var _p=N((TCe,qM)=>{"use strict";qM.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Af=N(LM=>{"use strict";LM.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var RM=N(Ln=>{"use strict";var sb=Rr(),CM=Sn(),EM=xt().extendFlat,goe=gn(),boe=Ys(),xoe=Tr(),_oe=_p().DESELECTDIM,Mf=dp(),DM=Af().counter,woe=wf().modHalf,To=Yn().isArrayOrTypedArray,Il=Yn().isTypedArraySpec,Ol=Yn().decodeTypedArraySpec;Ln.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(To(e)?e:Il(e)?Ol(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;aa.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Il(e)&&(e=Ol(e)),e%1||!sb(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Il(e)&&(e=Ol(e)),CM(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return CM(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(boe.get(e,t))}},angle:{coerceFunction:function(e,r,t){Il(e)&&(e=Ol(e)),e==="auto"?r.set("auto"):sb(e)?r.set(woe(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||DM(t);if(typeof e=="string"&&n.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!DM(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var PM={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},FM={};function NM(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),NM(a,r[t]))}}NM(PM,FM);zM.exports={configAttributes:PM,dfltConfig:FM}});var fb=N((SCe,IM)=>{"use strict";var ub=Sr(),Toe=Rr(),Jv=[];IM.exports=function(e,r){if(Jv.indexOf(e)!==-1)return;Jv.push(e);var t=1e3;Toe(r)?t=r:r==="long"&&(t=3e3);var a=ub.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Jv);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=Jv.indexOf(l);s!==-1&&Jv.splice(s,1),ub.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=ub.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),u=o.split(//g),f=0;f{"use strict";var kf=js().dfltConfig,cb=fb(),vb=OM.exports={};vb.log=function(){var e;if(kf.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};vb.warn=function(){var e;if(kf.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};vb.error=function(){var e;if(kf.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Tp=N((LCe,BM)=>{"use strict";BM.exports=function(){}});var hb=N((CCe,HM)=>{"use strict";HM.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{UM.exports=Aoe;function Aoe(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var YM=N((DCe,VM)=>{VM.exports=Moe;function Moe(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var jM=N((RCe,WM)=>{WM.exports=koe;function koe(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var db=N((PCe,ZM)=>{ZM.exports=Soe;function Soe(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var JM=N((FCe,XM)=>{XM.exports=qoe;function qoe(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var KM=N((NCe,$M)=>{$M.exports=Loe;function Loe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],x=r[15],w=t*l-a*o,_=t*s-n*o,b=t*u-i*o,T=a*s-n*l,k=a*u-i*l,M=n*u-i*s,q=f*y-c*p,E=f*m-v*p,D=f*x-d*p,P=c*m-v*y,R=c*x-d*y,z=v*x-d*m,O=w*z-_*R+b*P+T*D-k*E+M*q;return O?(O=1/O,e[0]=(l*z-s*R+u*P)*O,e[1]=(n*R-a*z-i*P)*O,e[2]=(y*M-m*k+x*T)*O,e[3]=(v*k-c*M-d*T)*O,e[4]=(s*D-o*z-u*E)*O,e[5]=(t*z-n*D+i*E)*O,e[6]=(m*b-p*M-x*_)*O,e[7]=(f*M-v*b+d*_)*O,e[8]=(o*R-l*D+u*q)*O,e[9]=(a*D-t*R-i*q)*O,e[10]=(p*k-y*b+x*w)*O,e[11]=(c*b-f*k-d*w)*O,e[12]=(l*E-o*P-s*q)*O,e[13]=(t*P-a*E+n*q)*O,e[14]=(y*_-p*T-m*w)*O,e[15]=(f*T-c*_+v*w)*O,e):null}});var e9=N((zCe,QM)=>{QM.exports=Coe;function Coe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],x=r[15];return e[0]=l*(v*x-d*m)-c*(s*x-u*m)+y*(s*d-u*v),e[1]=-(a*(v*x-d*m)-c*(n*x-i*m)+y*(n*d-i*v)),e[2]=a*(s*x-u*m)-l*(n*x-i*m)+y*(n*u-i*s),e[3]=-(a*(s*d-u*v)-l*(n*d-i*v)+c*(n*u-i*s)),e[4]=-(o*(v*x-d*m)-f*(s*x-u*m)+p*(s*d-u*v)),e[5]=t*(v*x-d*m)-f*(n*x-i*m)+p*(n*d-i*v),e[6]=-(t*(s*x-u*m)-o*(n*x-i*m)+p*(n*u-i*s)),e[7]=t*(s*d-u*v)-o*(n*d-i*v)+f*(n*u-i*s),e[8]=o*(c*x-d*y)-f*(l*x-u*y)+p*(l*d-u*c),e[9]=-(t*(c*x-d*y)-f*(a*x-i*y)+p*(a*d-i*c)),e[10]=t*(l*x-u*y)-o*(a*x-i*y)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*m-v*y)-f*(l*m-s*y)+p*(l*v-s*c)),e[13]=t*(c*m-v*y)-f*(a*m-n*y)+p*(a*v-n*c),e[14]=-(t*(l*m-s*y)-o*(a*m-n*y)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var t9=N((ICe,r9)=>{r9.exports=Eoe;function Eoe(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],d=e[12],p=e[13],y=e[14],m=e[15],x=r*o-t*i,w=r*l-a*i,_=r*s-n*i,b=t*l-a*o,T=t*s-n*o,k=a*s-n*l,M=u*p-f*d,q=u*y-c*d,E=u*m-v*d,D=f*y-c*p,P=f*m-v*p,R=c*m-v*y;return x*R-w*P+_*D+b*E-T*q+k*M}});var n9=N((OCe,a9)=>{a9.exports=Doe;function Doe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],d=r[10],p=r[11],y=r[12],m=r[13],x=r[14],w=r[15],_=t[0],b=t[1],T=t[2],k=t[3];return e[0]=_*a+b*l+T*c+k*y,e[1]=_*n+b*s+T*v+k*m,e[2]=_*i+b*u+T*d+k*x,e[3]=_*o+b*f+T*p+k*w,_=t[4],b=t[5],T=t[6],k=t[7],e[4]=_*a+b*l+T*c+k*y,e[5]=_*n+b*s+T*v+k*m,e[6]=_*i+b*u+T*d+k*x,e[7]=_*o+b*f+T*p+k*w,_=t[8],b=t[9],T=t[10],k=t[11],e[8]=_*a+b*l+T*c+k*y,e[9]=_*n+b*s+T*v+k*m,e[10]=_*i+b*u+T*d+k*x,e[11]=_*o+b*f+T*p+k*w,_=t[12],b=t[13],T=t[14],k=t[15],e[12]=_*a+b*l+T*c+k*y,e[13]=_*n+b*s+T*v+k*m,e[14]=_*i+b*u+T*d+k*x,e[15]=_*o+b*f+T*p+k*w,e}});var o9=N((BCe,i9)=>{i9.exports=Roe;function Roe(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,y,m,x;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],y=r[9],m=r[10],x=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=y,e[10]=m,e[11]=x,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+y*i+r[13],e[14]=s*a+v*n+m*i+r[14],e[15]=u*a+d*n+x*i+r[15]),e}});var s9=N((HCe,l9)=>{l9.exports=Poe;function Poe(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var f9=N((UCe,u9)=>{u9.exports=Foe;function Foe(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,v,d,p,y,m,x,w,_,b,T,k,M,q,E,D,P,R,z,O,B;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],d=r[2],p=r[3],y=r[4],m=r[5],x=r[6],w=r[7],_=r[8],b=r[9],T=r[10],k=r[11],M=n*n*f+u,q=i*n*f+o*s,E=o*n*f-i*s,D=n*i*f-o*s,P=i*i*f+u,R=o*i*f+n*s,z=n*o*f+i*s,O=i*o*f-n*s,B=o*o*f+u,e[0]=c*M+y*q+_*E,e[1]=v*M+m*q+b*E,e[2]=d*M+x*q+T*E,e[3]=p*M+w*q+k*E,e[4]=c*D+y*P+_*R,e[5]=v*D+m*P+b*R,e[6]=d*D+x*P+T*R,e[7]=p*D+w*P+k*R,e[8]=c*z+y*O+_*B,e[9]=v*z+m*O+b*B,e[10]=d*z+x*O+T*B,e[11]=p*z+w*O+k*B,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var v9=N((GCe,c9)=>{c9.exports=Noe;function Noe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var d9=N((VCe,h9)=>{h9.exports=zoe;function zoe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var y9=N((YCe,p9)=>{p9.exports=Ioe;function Ioe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var g9=N((WCe,m9)=>{m9.exports=Ooe;function Ooe(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var x9=N((jCe,b9)=>{b9.exports=Boe;function Boe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,v=a*u,d=n*s,p=n*u,y=i*u,m=o*l,x=o*s,w=o*u;return e[0]=1-(d+y),e[1]=c+w,e[2]=v-x,e[3]=0,e[4]=c-w,e[5]=1-(f+y),e[6]=p+m,e[7]=0,e[8]=v+x,e[9]=p-m,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var w9=N((ZCe,_9)=>{_9.exports=Hoe;function Hoe(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var A9=N((XCe,T9)=>{T9.exports=Uoe;function Uoe(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var k9=N((JCe,M9)=>{M9.exports=Goe;function Goe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var q9=N(($Ce,S9)=>{S9.exports=Voe;function Voe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var C9=N((KCe,L9)=>{L9.exports=Yoe;function Yoe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var D9=N((QCe,E9)=>{E9.exports=Woe;function Woe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,v=n*o,d=n*l,p=n*s,y=i*o,m=i*l,x=i*s;return e[0]=1-c-p,e[1]=f+x,e[2]=v-m,e[3]=0,e[4]=f-x,e[5]=1-u-p,e[6]=d+y,e[7]=0,e[8]=v+m,e[9]=d-y,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var P9=N((eEe,R9)=>{R9.exports=joe;function joe(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var N9=N((rEe,F9)=>{F9.exports=Zoe;function Zoe(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var I9=N((tEe,z9)=>{z9.exports=Xoe;function Xoe(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var B9=N((aEe,O9)=>{O9.exports=Joe;function Joe(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var U9=N((nEe,H9)=>{var $oe=db();H9.exports=Koe;function Koe(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],y=r[1],m=r[2],x=a[0],w=a[1],_=a[2],b=t[0],T=t[1],k=t[2];return Math.abs(p-b)<1e-6&&Math.abs(y-T)<1e-6&&Math.abs(m-k)<1e-6?$oe(e):(f=p-b,c=y-T,v=m-k,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=w*v-_*c,i=_*f-x*v,o=x*c-w*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*y+o*m),e[13]=-(l*p+s*y+u*m),e[14]=-(f*p+c*y+v*m),e[15]=1,e)}});var V9=N((iEe,G9)=>{G9.exports=Qoe;function Qoe(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var pb=N((oEe,Y9)=>{Y9.exports={create:GM(),clone:YM(),copy:jM(),identity:db(),transpose:JM(),invert:KM(),adjoint:e9(),determinant:t9(),multiply:n9(),translate:o9(),scale:s9(),rotate:f9(),rotateX:v9(),rotateY:d9(),rotateZ:y9(),fromRotation:g9(),fromRotationTranslation:x9(),fromScaling:w9(),fromTranslation:A9(),fromXRotation:k9(),fromYRotation:q9(),fromZRotation:C9(),fromQuat:D9(),frustum:P9(),perspective:N9(),perspectiveFromFieldOfView:I9(),ortho:B9(),lookAt:U9(),str:V9()}});var Ap=N(ea=>{"use strict";var ele=pb();ea.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var rle=Sr(),W9=Zs(),tle=Ap(),ale=pb();function nle(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function ile(e){var r=rle.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function j9(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function ole(e,r){Z9("global",e,r)}function Z9(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):W9.warn("addStyleRule failed"):W9.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function lle(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&j9(t)}function sle(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),u.setAttribute(s,!0))})}function ule(e){var r=J9(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=X9(a);if(n){var i=tle.convertCssMatrix(n);t=ale.multiply(t,t,i)}}),t}function X9(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function J9(e){for(var r=[];fle(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function fle(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function cle(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}$9.exports={getGraphDiv:nle,isPlotDiv:ile,removeElement:j9,addStyleRule:ole,addRelatedStyleRule:Z9,deleteRelatedStyleRule:lle,setStyleOnHover:sle,getFullTransformMatrix:ule,getElementTransformMatrix:X9,getElementAndAncestors:J9,equalDomRects:cle}});var Kv=N((uEe,K9)=>{"use strict";K9.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Ji=N((fEe,ik)=>{"use strict";var ek=xt().extendFlat,vle=zl(),rk={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},tk={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},hle=rk.flags.slice().concat(["fullReplot"]),dle=tk.flags.slice().concat("layoutReplot");ik.exports={traces:rk,layout:tk,traceFlags:function(){return Q9(hle)},layoutFlags:function(){return Q9(dle)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";yb.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};yb.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var mb=N((vEe,ok)=>{"use strict";ok.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Ta=N(Qv=>{"use strict";var lk=mb(),ple=lk.FORMAT_LINK,yle=lk.DATE_FORMAT_LINK;function mle(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,ple,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,yle,"for details on the date formatting syntax."].join(" ")}Qv.templateFormatStringDescription=mle;function gb(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n{"use strict";function Bl(e,r){return r?r.d2l(e):e}function sk(e,r){return r?r.l2d(e):e}function gle(e){return e.x0}function ble(e){return e.x1}function xle(e){return e.y0}function _le(e){return e.y1}function uk(e){return e.x0shift||0}function fk(e){return e.x1shift||0}function ck(e){return e.y0shift||0}function vk(e){return e.y1shift||0}function Mp(e,r){return Bl(e.x1,r)+fk(e)-Bl(e.x0,r)-uk(e)}function kp(e,r,t){return Bl(e.y1,t)+vk(e)-Bl(e.y0,t)-ck(e)}function wle(e,r){return Math.abs(Mp(e,r))}function Tle(e,r,t){return Math.abs(kp(e,r,t))}function Ale(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Mp(e,r),2)+Math.pow(kp(e,r,t),2))}function Mle(e,r){return sk((Bl(e.x1,r)+fk(e)+Bl(e.x0,r)+uk(e))/2,r)}function kle(e,r,t){return sk((Bl(e.y1,t)+vk(e)+Bl(e.y0,t)+ck(e))/2,t)}function Sle(e,r,t){return e.type!=="line"?void 0:kp(e,r,t)/Mp(e,r)}hk.exports={x0:gle,x1:ble,y0:xle,y1:_le,slope:Sle,dx:Mp,dy:kp,width:wle,height:Tle,length:Ale,xcenter:Mle,ycenter:kle}});var yk=N((pEe,pk)=>{"use strict";var qle=Ji().overrideAll,Xs=gn(),dk=da(),Lle=ui().dash,Hl=xt().extendFlat,Cle=Ta().shapeTexttemplateAttrs,Ele=Sp();pk.exports=qle({newshape:{visible:Hl({},Xs.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Hl({},Xs.legend,{}),legendgroup:Hl({},Xs.legendgroup,{}),legendgrouptitle:{text:Hl({},Xs.legendgrouptitle.text,{}),font:dk({})},legendrank:Hl({},Xs.legendrank,{}),legendwidth:Hl({},Xs.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Hl({},Lle,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Hl({},Xs.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Cle({newshape:!0},{keys:Object.keys(Ele)}),font:dk({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var gk=N((yEe,mk)=>{"use strict";var Dle=ui().dash,Rle=xt().extendFlat;mk.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:Rle({},Dle,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var qp=N((mEe,bk)=>{"use strict";bk.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Sf=N((gEe,Tk)=>{"use strict";var bb=da(),Ple=Kv(),Lp=si(),xk=yk(),_k=gk(),Fle=qp(),wk=xt().extendFlat,Cp=bb({editType:"calc"});Cp.family.dflt='"Open Sans", verdana, arial, sans-serif';Cp.size.dflt=12;Cp.color.dflt=Lp.defaultLine;Tk.exports={font:Cp,title:{text:{valType:"string",editType:"layoutstyle"},font:bb({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:bb({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:wk(Fle({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Lp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Lp.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Lp.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:xk.newshape,activeshape:xk.activeshape,newselection:_k.newselection,activeselection:_k.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:wk({},Ple.transition,{editType:"none"})}});var Ak=N(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var gr=N(Hr=>{"use strict";var qf=Zs(),Mk=Tp(),kk=hb(),Nle=zl(),zle=$v().addStyleRule,Sk=xt(),Ile=gn(),Ole=Sf(),Ble=Sk.extendFlat,xb=Sk.extendDeepAll;Hr.modules={};Hr.allCategories={};Hr.allTypes=[];Hr.subplotsRegistry={};Hr.componentsRegistry={};Hr.layoutArrayContainers=[];Hr.layoutArrayRegexes=[];Hr.traceLayoutAttributes={};Hr.localeRegistry={};Hr.apiMethodRegistry={};Hr.collectableSubplotTypes=null;Hr.register=function(r){if(Hr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var Wle=xf().timeFormat,Ik=Rr(),_b=Zs(),Gl=wf().mod,Ef=Nt(),fi=Ef.BADNUM,Cn=Ef.ONEDAY,eh=Ef.ONEHOUR,Ul=Ef.ONEMIN,Cf=Ef.ONESEC,rh=Ef.EPOCHJD,rl=gr(),Dk=xf().utcFormat,jle=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Zle=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Rk=new Date().getFullYear()-70;function tl(e){return e&&rl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}ra.dateTick0=function(e,r){var t=Xle(e,!!r);if(r<2)return t;var a=ra.dateTime2ms(t,e);return a+=Cn*(r-1),ra.ms2DateTime(a,0,e)};function Xle(e,r){return tl(e)?r?rl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:rl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}ra.dfltRange=function(e){return tl(e)?rl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};ra.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Dp,Rp;ra.dateTime2ms=function(e,r){if(ra.isJSDate(e)){var t=e.getTimezoneOffset()*Ul,a=(e.getUTCMinutes()-e.getMinutes())*Ul+(e.getUTCSeconds()-e.getSeconds())*Cf+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Ul;t=t-n/2+Gl(a-t+n/2,n)}return e=Number(e)-t,e>=Dp&&e<=Rp?e:fi}if(typeof e!="string"&&typeof e!="number")return fi;e=String(e);var i=tl(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.substr(1),r="");var l=i&&r.substr(0,7)==="chinese",s=e.match(l?Zle:jle);if(!s)return fi;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return fi;u=Number(u);var y;try{var m=rl.getComponentMethod("calendars","getCal")(r);if(l){var x=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=m.newDate(u,m.toMonthIndex(u,f,x),c)}else y=m.newDate(u,Number(f),c)}catch(_){return fi}return y?(y.toJD()-rh)*Cn+v*eh+d*Ul+p*Cf:fi}u.length===2?u=(Number(u)+2e3-Rk)%100+Rk:u=Number(u),f-=1;var w=new Date(Date.UTC(2e3,f,c,v,d));return w.setUTCFullYear(u),w.getUTCMonth()!==f||w.getUTCDate()!==c?fi:w.getTime()+p*Cf};Dp=ra.MIN_MS=ra.dateTime2ms("-9999");Rp=ra.MAX_MS=ra.dateTime2ms("9999-12-31 23:59:59.9999");ra.isDateTime=function(e,r){return ra.dateTime2ms(e,r)!==fi};function Lf(e,r){return String(e+Math.pow(10,r)).substr(1)}var Ep=90*Cn,Pk=3*eh,Fk=5*Ul;ra.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Dp&&e<=Rp))return fi;r||(r=0);var a=Math.floor(Gl(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(tl(t)){var c=Math.floor(n/Cn)+rh,v=Math.floor(Gl(e,Cn));try{i=rl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=Dk("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=r=Dp+Cn&&e<=Rp-Cn))return fi;var r=Math.floor(Gl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Wle("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return Ok(a,n,i,o,l)};function Ok(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Lf(r,2)+":"+Lf(t,2),(a||n)&&(e+=":"+Lf(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Lf(n,i)}return e}ra.cleanDate=function(e,r,t){if(e===fi)return r;if(ra.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(tl(t))return _b.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=ra.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!ra.isDateTime(e,t))return _b.error("unrecognized date",e),r;return e};var Jle=/%\d?f/g,$le=/%h/g,Kle={1:"1",2:"1",3:"2",4:"2"};function Nk(e,r,t,a){e=e.replace(Jle,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace($le,function(){return Kle[t("%q")(n)]}),tl(a))try{e=rl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Qle=[59,59.9,59.99,59.999,59.9999];function ese(e,r){var t=Gl(e+.05,Cn),a=Lf(Math.floor(t/eh),2)+":"+Lf(Gl(Math.floor(t/Ul),60),2);if(r!=="M"){Ik(r)||(r=0);var n=Math.min(Gl(e/Cf,60),Qle[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}ra.formatDate=function(e,r,t,a,n,i){if(n=tl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return ese(e,t)+` +`+Nk(i.dayMonthYear,e,a,n);return Nk(r,e,a,n)};var zk=3*Cn;ra.incrementMonth=function(e,r,t){t=tl(t)&&t;var a=Gl(e,Cn);if(e=Math.round(e-a),t)try{var n=Math.round(e/Cn)+rh,i=rl.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-rh)*Cn+a}catch(s){_b.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+zk);return l.setUTCMonth(l.getUTCMonth()+r)+a-zk};ra.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=tl(r)&&rl.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";Hk.exports=function(r){return r}});var Ab=N(al=>{"use strict";var rse=Rr(),tse=Zs(),ase=wb(),nse=Nt().BADNUM,Tb=1e-9;al.findBin=function(e,r,t){if(rse(r.start))return t?Math.ceil((e-r.start)/r.size-Tb)-1:Math.floor((e-r.start)/r.size+Tb);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?ise:ose:s=t?sse:lse,e+=o*Tb*(t?-1:1)*(o>=0?1:-1);a90&&tse.log("Long binary search..."),a-1};function ise(e,r){return er}function sse(e,r){return e>=r}al.sorterAsc=function(e,r){return e-r};al.sorterDes=function(e,r){return r-e};al.distinctVals=function(e){var r=e.slice();r.sort(al.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===nse;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};al.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};al.findIndexOfMin=function(e,r){r=r||ase;for(var t=1/0,a,n=0;n{"use strict";Uk.exports=function(r){return Object.keys(r).sort()}});var Gk=N(ta=>{"use strict";var th=Rr(),use=Yn().isArrayOrTypedArray;ta.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),th(r)||(r=!1),use(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var Zk=N((SEe,jk)=>{"use strict";var Vk=wf(),kb=Vk.mod,fse=Vk.modHalf,ah=Math.PI,Vl=2*ah;function cse(e){return e/180*ah}function vse(e){return e/ah*180}function Sb(e){return Math.abs(e[1]-e[0])>Vl-1e-14}function Yk(e,r){return fse(r-e,Vl)}function hse(e,r){return Math.abs(Yk(e,r))}function Wk(e,r){if(Sb(r))return!0;var t,a;r[0]a&&(a+=Vl);var n=kb(e,Vl),i=n+Vl;return n>=t&&n<=a||i>=t&&i<=a}function dse(e,r,t,a){if(!Wk(r,a))return!1;var n,i;return t[0]=n&&e<=i}function qb(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=Sb([t,a]),s,u,f,c,v;l?(s=0,u=ah,f=Vl):t{"use strict";Js.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Js.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Js.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Js.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Js.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Js.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var Kk=N($s=>{"use strict";var Lb=wf().mod;$s.segmentsIntersect=$k;function $k(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,v=i-r,d=l-i,p=s*d-f*c;if(p===0)return null;var y=(u*d-f*v)/p,m=(u*c-s*v)/p;return m<0||m>1||y<0||y>1?null:{x:e+s*y,y:r+c*y}}$s.segmentDistance=function(r,t,a,n,i,o,l,s){if($k(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,v=s-o,d=u*u+f*f,p=c*c+v*v,y=Math.min(Pp(u,f,d,i-r,o-t),Pp(u,f,d,l-r,s-t),Pp(c,v,p,r-i,t-o),Pp(c,v,p,a-i,n-o));return Math.sqrt(y)};function Pp(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var Fp,Cb,Jk;$s.getTextLocation=function(r,t,a,n){if((r!==Cb||n!==Jk)&&(Fp={},Cb=r,Jk=n),Fp[a])return Fp[a];var i=r.getPointAtLength(Lb(a-n/2,t)),o=r.getPointAtLength(Lb(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(Lb(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return Fp[a]=c,c};$s.clearLocationCache=function(){Cb=null};$s.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function d(y){var m=r.getPointAtLength(y);y===0?c=m:y===u&&(v=m);var x=m.xi?m.x-i:0,w=m.yl?m.y-l:0;return Math.sqrt(x*x+w*w)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};$s.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,d,p;u0?c=v:f=v,u++}return d}});var Np=N(nh=>{"use strict";var nl={};nh.throttle=function(r,t,a){var n=nl[r],i=Date.now();if(!n){for(var o in nl)nl[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};nh.done=function(e){var r=nl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};nh.clear=function(e){if(e)Qk(nl[e]),delete nl[e];else for(var r in nl)nh.clear(r)};function Qk(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var rS=N((EEe,eS)=>{"use strict";eS.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var tS=N((DEe,zp)=>{"use strict";zp.exports=Eb;zp.exports.isMobile=Eb;zp.exports.default=Eb;var gse=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,bse=/CrOS/,xse=/android|ipad|playbook|silk/i;function Eb(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=gse.test(r)&&!bse.test(r)||!!e.tablet&&xse.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var nS=N((REe,aS)=>{"use strict";var _se=Rr(),wse=tS();aS.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=Tse(),typeof t!="string")return!0;var a=wse({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.substr(0,8)==="Version/"){var u=s.substr(8).split(".")[0];if(_se(u)&&(u=+u),u>=13)return!0}}}return a};function Tse(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var oS=N((PEe,iS)=>{"use strict";var Ase=Sr();iS.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=Ase.select(this)}),n}});var sS=N((FEe,lS)=>{"use strict";var Mse=gr();lS.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=Mse.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var fS=N((NEe,uS)=>{"use strict";uS.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";cS.exports=function(r){for(var t=qse(r)?Sse:kse,a=[],n=0;n{"use strict";hS.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var yS=N((OEe,pS)=>{"use strict";var Lse=Rr(),Cse=Nt().BADNUM,Ese=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;pS.exports=function(r){return typeof r=="string"&&(r=r.replace(Ese,"")),Lse(r)?Number(r):Cse}});var Ce=N((BEe,LS)=>{"use strict";var ih=Sr(),Dse=xf().utcFormat,Rse=Q3().format,wS=Rr(),TS=Nt(),AS=TS.FP_SAFE,Pse=-AS,mS=TS.BADNUM,be=LS.exports={};be.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var gS={};be.warnBadFormat=function(e){var r=String(e);gS[r]||(gS[r]=1,be.warn('encountered bad format: "'+r+'"'))};be.noFormat=function(e){return String(e)};be.numberFormat=function(e){var r;try{r=Rse(be.adjustFormat(e))}catch(t){return be.warnBadFormat(e),be.noFormat}return r};be.nestedProperty=dp();be.keyedContainer=sM();be.relativeAttr=fM();be.isPlainObject=zl();be.toLogRange=yp();be.relinkPrivateKeys=dM();var Yl=Yn();be.isArrayBuffer=Yl.isArrayBuffer;be.isTypedArray=Yl.isTypedArray;be.isArrayOrTypedArray=Yl.isArrayOrTypedArray;be.isArray1D=Yl.isArray1D;be.ensureArray=Yl.ensureArray;be.concat=Yl.concat;be.maxRowLength=Yl.maxRowLength;be.minRowLength=Yl.minRowLength;var MS=wf();be.mod=MS.mod;be.modHalf=MS.modHalf;var Wl=RM();be.valObjectMeta=Wl.valObjectMeta;be.coerce=Wl.coerce;be.coerce2=Wl.coerce2;be.coerceFont=Wl.coerceFont;be.coercePattern=Wl.coercePattern;be.coerceHoverinfo=Wl.coerceHoverinfo;be.coerceSelectionMarkerOpacity=Wl.coerceSelectionMarkerOpacity;be.validate=Wl.validate;var Wn=Bk();be.dateTime2ms=Wn.dateTime2ms;be.isDateTime=Wn.isDateTime;be.ms2DateTime=Wn.ms2DateTime;be.ms2DateTimeLocal=Wn.ms2DateTimeLocal;be.cleanDate=Wn.cleanDate;be.isJSDate=Wn.isJSDate;be.formatDate=Wn.formatDate;be.incrementMonth=Wn.incrementMonth;be.dateTick0=Wn.dateTick0;be.dfltRange=Wn.dfltRange;be.findExactDates=Wn.findExactDates;be.MIN_MS=Wn.MIN_MS;be.MAX_MS=Wn.MAX_MS;var Ks=Ab();be.findBin=Ks.findBin;be.sorterAsc=Ks.sorterAsc;be.sorterDes=Ks.sorterDes;be.distinctVals=Ks.distinctVals;be.roundUp=Ks.roundUp;be.sort=Ks.sort;be.findIndexOfMin=Ks.findIndexOfMin;be.sortObjectKeys=Mb();var il=Gk();be.aggNums=il.aggNums;be.len=il.len;be.mean=il.mean;be.geometricMean=il.geometricMean;be.median=il.median;be.midRange=il.midRange;be.variance=il.variance;be.stdev=il.stdev;be.interp=il.interp;var $i=Ap();be.init2dArray=$i.init2dArray;be.transposeRagged=$i.transposeRagged;be.dot=$i.dot;be.translationMatrix=$i.translationMatrix;be.rotationMatrix=$i.rotationMatrix;be.rotationXYMatrix=$i.rotationXYMatrix;be.apply3DTransform=$i.apply3DTransform;be.apply2DTransform=$i.apply2DTransform;be.apply2DTransform2=$i.apply2DTransform2;be.convertCssMatrix=$i.convertCssMatrix;be.inverseTransformMatrix=$i.inverseTransformMatrix;var Ao=Zk();be.deg2rad=Ao.deg2rad;be.rad2deg=Ao.rad2deg;be.angleDelta=Ao.angleDelta;be.angleDist=Ao.angleDist;be.isFullCircle=Ao.isFullCircle;be.isAngleInsideSector=Ao.isAngleInsideSector;be.isPtInsideSector=Ao.isPtInsideSector;be.pathArc=Ao.pathArc;be.pathSector=Ao.pathSector;be.pathAnnulus=Ao.pathAnnulus;var Rf=Xk();be.isLeftAnchor=Rf.isLeftAnchor;be.isCenterAnchor=Rf.isCenterAnchor;be.isRightAnchor=Rf.isRightAnchor;be.isTopAnchor=Rf.isTopAnchor;be.isMiddleAnchor=Rf.isMiddleAnchor;be.isBottomAnchor=Rf.isBottomAnchor;var Pf=Kk();be.segmentsIntersect=Pf.segmentsIntersect;be.segmentDistance=Pf.segmentDistance;be.getTextLocation=Pf.getTextLocation;be.clearLocationCache=Pf.clearLocationCache;be.getVisibleSegment=Pf.getVisibleSegment;be.findPointOnPath=Pf.findPointOnPath;var Bp=xt();be.extendFlat=Bp.extendFlat;be.extendDeep=Bp.extendDeep;be.extendDeepAll=Bp.extendDeepAll;be.extendDeepNoArrays=Bp.extendDeepNoArrays;var Db=Zs();be.log=Db.log;be.warn=Db.warn;be.error=Db.error;var Fse=Af();be.counterRegex=Fse.counter;var Rb=Np();be.throttle=Rb.throttle;be.throttleDone=Rb.done;be.clearThrottle=Rb.clear;var Ki=$v();be.getGraphDiv=Ki.getGraphDiv;be.isPlotDiv=Ki.isPlotDiv;be.removeElement=Ki.removeElement;be.addStyleRule=Ki.addStyleRule;be.addRelatedStyleRule=Ki.addRelatedStyleRule;be.deleteRelatedStyleRule=Ki.deleteRelatedStyleRule;be.setStyleOnHover=Ki.setStyleOnHover;be.getFullTransformMatrix=Ki.getFullTransformMatrix;be.getElementTransformMatrix=Ki.getElementTransformMatrix;be.getElementAndAncestors=Ki.getElementAndAncestors;be.equalDomRects=Ki.equalDomRects;be.clearResponsive=rS();be.preserveDrawingBuffer=nS();be.makeTraceGroups=oS();be._=sS();be.notifier=fb();be.filterUnique=fS();be.filterVisible=vS();be.pushUnique=hb();be.increment=dS();be.cleanNumber=yS();be.ensureNumber=function(r){return wS(r)?(r=Number(r),r>AS||r=r?!1:wS(e)&&e>=0&&e%1===0};be.noop=Tp();be.identity=wb();be.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};be.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};be.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(be.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};be.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};be.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,u,f;for(l=0;l=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};be.syncOrAsync=function(e,r,t){var a,n;function i(){return be.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};be.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};be.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};be.fillArray=function(e,r,t,a){if(a=a||be.identity,be.isArrayOrTypedArray(e))for(var n=0;nIse.test(window.navigator.userAgent);var Ose=/Firefox\/(\d+)\.\d+/;be.getFirefoxVersion=function(){var e=Ose.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};be.isD3Selection=function(e){return e instanceof ih.selection};be.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};be.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};be.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};be.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var qS=/^\w*$/;be.templateString=function(e,r){var t={};return e.replace(be.TEMPLATE_STRING_REGEX,function(a,n){var i;return qS.test(n)?i=r[n]:(t[n]=t[n]||be.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Use={max:10,count:0,name:"hovertemplate"};be.hovertemplateString=function(){return Pb.apply(Use,arguments)};var Gse={max:10,count:0,name:"texttemplate"};be.texttemplateString=function(){return Pb.apply(Gse,arguments)};var Vse=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Yse(e){var r=e.match(Vse);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Wse={max:10,count:0,name:"texttemplate",parseMultDiv:!0};be.texttemplateStringForShapes=function(){return Pb.apply(Wse,arguments)};var bS=/^[:|\|]/;function Pb(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(be.TEMPLATE_STRING_REGEX,function(i,o,l){var s=o==="xother"||o==="yother",u=o==="_xother"||o==="_yother",f=o==="_xother_"||o==="_yother_",c=o==="xother_"||o==="yother_",v=s||u||c||f,d=o;(u||f)&&(d=d.substring(1)),(c||f)&&(d=d.substring(0,d.length-1));var p=null,y=null;if(a.parseMultDiv){var m=Yse(d);d=m.key,p=m.op,y=m.number}var x;if(v){if(x=r[d],x===void 0)return""}else{var w,_;for(_=3;_=Op&&o<=xS,u=l>=Op&&l<=xS;if(s&&(a=10*a+o-Op),u&&(n=10*n+l-Op),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var Df=2e9;be.seedPseudoRandom=function(){Df=2e9};be.pseudoRandom=function(){var e=Df;return Df=(69069*Df+1)%4294967296,Math.abs(Df-e)<429496729?be.pseudoRandom():Df/4294967296};be.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=be.extractOption(e,r,"htx","hovertext");if(be.isValidTextValue(n))return a(n);var i=be.extractOption(e,r,"tx","text");if(be.isValidTextValue(i))return a(i)};be.isValidTextValue=function(e){return e||e===0};be.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,be.strTranslate(n-u*(t+o),i-u*(a+l))+be.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};be.setTransormAndDisplay=function(e,r){e.attr("transform",be.getTextTransform(r)),e.style("display",r.scale?null:"none")};be.ensureUniformFontSize=function(e,r){var t=be.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};be.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};be.bigFont=function(e){return Math.round(1.2*e)};var _S=be.getFirefoxVersion(),jse=_S!==null&&_S<86;be.getPositionFromD3Event=function(){return jse?[ih.event.layerX,ih.event.layerY]:[ih.event.offsetX,ih.event.offsetY]}});var DS=N(()=>{"use strict";var Zse=Ce(),CS={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Fb in CS)ES=Fb.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Zse.addStyleRule(ES,CS[Fb]);var ES,Fb});var Nb=N((GEe,RS)=>{RS.exports=!0});var Ib=N((VEe,PS)=>{"use strict";var Xse=Nb(),zb;typeof window.matchMedia=="function"?zb=!window.matchMedia("(hover: none)").matches:zb=Xse;PS.exports=zb});var Qs=N((YEe,Ob)=>{"use strict";var Ff=typeof Reflect=="object"?Reflect:null,FS=Ff&&typeof Ff.apply=="function"?Ff.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Hp;Ff&&typeof Ff.ownKeys=="function"?Hp=Ff.ownKeys:Object.getOwnPropertySymbols?Hp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Hp=function(r){return Object.getOwnPropertyNames(r)};function Jse(e){console&&console.warn&&console.warn(e)}var zS=Number.isNaN||function(r){return r!==r};function Ct(){Ct.init.call(this)}Ob.exports=Ct;Ob.exports.once=eue;Ct.EventEmitter=Ct;Ct.prototype._events=void 0;Ct.prototype._eventsCount=0;Ct.prototype._maxListeners=void 0;var NS=10;function Up(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ct,"defaultMaxListeners",{enumerable:!0,get:function(){return NS},set:function(e){if(typeof e!="number"||e<0||zS(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");NS=e}});Ct.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ct.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||zS(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function IS(e){return e._maxListeners===void 0?Ct.defaultMaxListeners:e._maxListeners}Ct.prototype.getMaxListeners=function(){return IS(this)};Ct.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")FS(s,this,t);else for(var u=s.length,f=GS(s,u),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,Jse(l)}return e}Ct.prototype.addListener=function(r,t){return OS(this,r,t,!1)};Ct.prototype.on=Ct.prototype.addListener;Ct.prototype.prependListener=function(r,t){return OS(this,r,t,!0)};function $se(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function BS(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=$se.bind(a);return n.listener=t,a.wrapFn=n,n}Ct.prototype.once=function(r,t){return Up(t),this.on(r,BS(this,r,t)),this};Ct.prototype.prependOnceListener=function(r,t){return Up(t),this.prependListener(r,BS(this,r,t)),this};Ct.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Up(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():Kse(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Ct.prototype.off=Ct.prototype.removeListener;Ct.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function HS(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?Qse(n):GS(n,n.length)}Ct.prototype.listeners=function(r){return HS(this,r,!0)};Ct.prototype.rawListeners=function(r){return HS(this,r,!1)};Ct.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):US.call(e,r)};Ct.prototype.listenerCount=US;function US(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Ct.prototype.eventNames=function(){return this._eventsCount>0?Hp(this._events):[]};function GS(e,r){for(var t=new Array(r),a=0;a{"use strict";var Bb=Qs().EventEmitter,tue={init:function(e){if(e._ev instanceof Bb)return e;var r=new Bb,t=new Bb;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var WS=Ce(),aue=js().dfltConfig;function nue(e,r){for(var t=[],a,n=0;naue.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};ol.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};ol.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};ol.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";XS.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var If=N(pa=>{"use strict";var ci=gr(),lh=Ce(),Vp=gn(),Ub=Sf(),iue=Hb(),oue=Kv(),lue=js().configAttributes,JS=Ji(),Qi=lh.extendDeepAll,Nf=lh.isPlainObject,sue=lh.isArrayOrTypedArray,Yp=lh.nestedProperty,uue=lh.valObjectMeta,Gb="_isSubplotObj",Wp="_isLinkedToArray",fue="_arrayAttrRegexps",KS="_deprecated",Vb=[Gb,Wp,fue,KS];pa.IS_SUBPLOT_OBJ=Gb;pa.IS_LINKED_TO_ARRAY=Wp;pa.DEPRECATED=KS;pa.UNDERSCORE_ATTRS=Vb;pa.get=function(){var e={};return ci.allTypes.forEach(function(r){e[r]=vue(r)}),{defs:{valObjects:uue,metaKeys:Vb.concat(["description","role","editType","impliedEdits"]),editType:{traces:JS.traces,layout:JS.layout},impliedEdits:{}},traces:e,layout:hue(),frames:due(),animation:zf(oue),config:zf(lue)}};pa.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(Vb.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!pa.isValObject(o)&&Nf(o)&&i!=="impliedEdits"&&pa.crawl(o,r,n+1,l)}})};pa.isValObject=function(e){return e&&e.valType!==void 0};pa.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)sue(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Gp(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function Gp(e){return e===Math.round(e)&&e>=0}function vue(e){var r,t;r=ci.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Qi({},Vp),i=Qi({},r.attributes);pa.crawl(i,function(s,u,f,c,v){Yp(n,v).set(void 0),s===void 0&&Yp(i,v).set(void 0)}),Qi(a,n),ci.traceIs(e,"noOpacity")&&delete a.opacity,ci.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),ci.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Qi(a,i),t.attributes&&Qi(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:zf(a)};if(r.layoutAttributes){var l={};Qi(l,r.layoutAttributes),o.layoutAttributes=zf(l)}return r.animatable||pa.crawl(o,function(s){pa.isValObject(s)&&"anim"in s&&delete s.anim}),o}function hue(){var e={},r,t;Qi(e,Ub);for(r in ci.subplotsRegistry)if(t=ci.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Of=Ce(),bue=gn(),jl="templateitemname",Yb={name:{valType:"string",editType:"none"}};Yb[jl]={valType:"string",editType:"calc"};eu.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Yb.name,r[jl]=Yb[jl],r};eu.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Of.coerce(i,{},bue,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};eu.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Of.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};eu.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[rq(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},c=f[jl]=u[jl];if(!eq(c))return f._template=n,f;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][jl]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?Of.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&f(d,p);var y=c();for(var m in y)Of.nestedProperty(e,m).set(y[m])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var Ea=N(($Ee,tq)=>{"use strict";var sh=Af().counter;tq.exports={idRegex:{x:sh("x","( domain)?"),y:sh("y","( domain)?")},attrRegex:sh("[xy]axis"),xAxisMatch:sh("xaxis"),yAxisMatch:sh("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var oa=N(En=>{"use strict";var xue=gr(),Wb=Ea();En.id2name=function(r){if(!(typeof r!="string"||!r.match(Wb.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};En.name2id=function(r){if(r.match(Wb.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};En.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(Wb.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};En.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=En.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};En.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function aq(e,r){if(r&&r.length){for(var t=0;t{"use strict";function _ue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function wue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}nq.exports={clearOutlineControllers:_ue,clearOutline:wue}});var jp=N((eDe,iq)=>{"use strict";iq.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Jp=N(Xp=>{"use strict";var Zp=gr(),rDe=Ea().SUBPLOT_PATTERN;Xp.getSubplotCalcData=function(e,r,t){var a=Zp.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var Tue=gr(),Bf=Ce();ru.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=ru.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){oq(e,o,n.cache),n.check=function(){if(i){var f=oq(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Bf.isPlainObject(i)?jb(i,r,o,a+1):r(o,n,i)}})}});var aa=N((nDe,Tq)=>{"use strict";var yq=Sr(),Mue=xf().timeFormatLocale,kue=Q3().formatLocale,uh=Rr(),Sue=eb(),Kr=gr(),mq=If(),que=At(),vr=Ce(),gq=Tr(),fq=Nt().BADNUM,Dn=oa(),Lue=Zl().clearOutline,Cue=jp(),Zb=Kv(),Eue=Hb(),Due=Jp().getModuleCalcData,cq=vr.relinkPrivateKeys,tu=vr._,Qe=Tq.exports={};vr.extendFlat(Qe,Kr);Qe.attributes=gn();Qe.attributes.type.values=Qe.allTypes;Qe.fontAttrs=da();Qe.layoutAttributes=Sf();var Kp=uq();Qe.executeAPICommand=Kp.executeAPICommand;Qe.computeAPICommandBindings=Kp.computeAPICommandBindings;Qe.manageCommandObserver=Kp.manageCommandObserver;Qe.hasSimpleAPICommandBindings=Kp.hasSimpleAPICommandBindings;Qe.redrawText=function(e){return e=vr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Kr.getComponentMethod("annotations","draw")(e),Kr.getComponentMethod("legend","draw")(e),Kr.getComponentMethod("colorbar","draw")(e),r(Qe.previousPromises(e)))},300)})};Qe.resize=function(e){e=vr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||vr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||vr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Kr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Qe.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Qe.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=vr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:gq.defaultLine,"pointer-events":"all"}).each(function(){var u=yq.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Rue(e,i),o.text(i.text()&&l.text()?" - ":"")}};function Rue(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){Qe.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}Qe.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=yq.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=Qe.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var Pue=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Fue=["year","month","dayMonth","dayMonthYear"];Qe.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Qe.createTransitionData(e),n._dfltTitle={plot:tu(e,"Click to enter Plot title"),subtitle:tu(e,"Click to enter Plot subtitle"),x:tu(e,"Click to enter X axis title"),y:tu(e,"Click to enter Y axis title"),colorbar:tu(e,"Click to enter Colorscale title"),annotation:tu(e,"new text")},n._traceWord=tu(e,"trace");var v=vq(e,Pue);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;Qe.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),Qe.sanitizeMargins(n)}else{Qe.supplyLayoutGlobalDefaults(i,n,v);var y=!i.width||!i.height,m=n.autosize,x=f.autosizable,w=y&&(m||x);w?Qe.plotAutoSize(e,i,n):y&&Qe.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=Iue(v,n.separators),n._extraFormat=vq(e,Fue),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=zue(),b=n._splomAxes={x:{},y:{}},T=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Nue(o,s),Qe.supplyDataDefaults(s,l,i,n);var k=Object.keys(b.x),M=Object.keys(b.y);if(k.length>1&&M.length>1){for(Kr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,Qe.linkSubplots(l,n,o,a),Qe.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),z=!!(n._has&&n._has("cartesian")),O=R,B=z;O&&!B?a._bgLayer.remove():B&&!O&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Lue({_fullLayout:a}),Oue(l,n),cq(n,a),Kr.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Y=n._tracePreGUI,G={},U;for(U in Y)G[U]="old";for(c=0;c0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=Qe.layoutAttributes.width.min,v=Qe.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),Qe.sanitizeMargins(a)};Qe.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Kr.componentsRegistry,i=r._basePlotModules,o,l,s,u=Kr.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Kr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(vr.subplotSort);for(l=0;l1&&(t.l/=m,t.r/=m)}if(v){var x=(t.t+t.b)/v;x>1&&(t.t/=x,t.b/=x)}var w=t.xl!==void 0?t.xl:t.x,_=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,T=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:w,size:t.l+y},r:{val:_,size:t.r+y},b:{val:T,size:t.b+y},t:{val:b,size:t.t+y}},p[r]=1}if(!a._replotting)return Qe.doAutoMargin(e)}};function Hue(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Dn.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Qe.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),bq(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=vr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var m in v)d[m]||delete v[m];var x=e._fullLayout._reservedMargin;for(var w in x)for(var _ in x[w]){var b=x[w][_];o[_]=Math.max(o[_],b)}v.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var T in o){var k=0;for(var M in v)M!=="base"&&uh(v[M][T].size)&&(k=v[M][T].size>k?v[M][T].size:k);var q=Math.max(0,i[T]-k);o[T]=Math.max(0,o[T]-q)}for(var E in v){var D=v[E].l||{},P=v[E].b||{},R=D.val,z=D.size,O=P.val,B=P.size,Y=t-o.r-o.l,G=a-o.t-o.b;for(var U in v){if(uh(z)&&v[U].r){var V=v[U].r.val,X=v[U].r.size;if(V>R){var Z=(z*V+(X-Y)*R)/(V-R),re=(X*(1-R)+(z-Y)*(1-V))/(V-R);Z+re>s+u&&(s=Z,u=re)}}if(uh(B)&&v[U].t){var ce=v[U].t.val,oe=v[U].t.size;if(ce>O){var fe=(B*ce+(oe-G)*O)/(ce-O),K=(oe*(1-O)+(B-G)*(1-ce))/(ce-O);fe+K>c+f&&(c=fe,f=K)}}}}}var Te=vr.constrain(t-i.l-i.r,xq,p),le=vr.constrain(a-i.t-i.b,_q,y),pe=Math.max(0,t-Te),ie=Math.max(0,a-le);if(pe){var ve=(s+u)/pe;ve>1&&(s/=ve,u/=ve)}if(ie){var W=(c+f)/ie;W>1&&(c/=W,f/=W)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Qe.didMarginChange(l,n)||Hue(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Qe.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&Qe.supplyDefaults(e);var o=n?e._fullData:e.data,l=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(v,d){if(typeof v=="function")return d?"_function_":null;if(vr.isPlainObject(v)){var p={},y;return Object.keys(v).sort().forEach(function(_){if(["_","["].indexOf(_.charAt(0))===-1){if(typeof v[_]=="function"){d&&(p[_]="_function");return}if(t==="keepdata"){if(_.substr(_.length-3)==="src")return}else if(t==="keepstream"){if(y=v[_+"src"],typeof y=="string"&&y.indexOf(":")>0&&!vr.isPlainObject(v.stream))return}else if(t!=="keepall"&&(y=v[_+"src"],typeof y=="string"&&y.indexOf(":")>0))return;p[_]=u(v[_],d)}}),p}var m=Array.isArray(v),x=vr.isTypedArray(v);if((m||x)&&v.dtype&&v.shape){var w=v.bdata;return u({dtype:v.dtype,shape:v.shape,bdata:vr.isArrayBuffer(w)?Sue.encode(w):w},d)}return m?v.map(function(_){return u(_,d)}):x?vr.simpleMap(v,vr.identity):vr.isJSDate(v)?vr.ms2DateTimeLocal(+v):v}var f={data:(o||[]).map(function(v){var d=u(v);return r&&delete d.fit,d})};if(!r&&(f.layout=u(l),n)){var c=l._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};Qe.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Kr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Kr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Qe.previousPromises,s,t.prepareFn,Qe.rehover,Qe.reselect,o],f=vr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Qe.doCalcdata=function(e,r){var t=Dn.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l=0;s--)if(T[s].enabled){i._indexToPoints=T[s]._indexToPoints;break}o&&o.calc&&(b=o.calc(e,i))}(!Array.isArray(b)||!b[0])&&(b=[{x:fq,y:fq}]),b[0].t||(b[0].t={}),b[0].trace=i,u[w]=b}}for(dq(t,a,n),l=0;l{"use strict";au.xmlns="http://www.w3.org/2000/xmlns/";au.svg="http://www.w3.org/2000/svg";au.xlink="http://www.w3.org/1999/xlink";au.svgAttrs={xmlns:au.svg,"xmlns:xlink":au.xlink}});var Xa=N((oDe,Aq)=>{"use strict";Aq.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Da=N(vi=>{"use strict";var la=Sr(),sl=Ce(),Yue=sl.strTranslate,Xb=ll(),Wue=Xa().LINE_SPACING,jue=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;vi.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(jue),i=la.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=ofe(e.node(),a);s&&e.style("pointer-events","all"),vi.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};$ue(n[2],f,function(c,v,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){l(),s();return}var y=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(p.node()),v&&v.node()&&p.node().insertBefore(v.node().cloneNode(!0),p.node().firstChild);var m=d.width,x=d.height;p.attr({class:o,height:x,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var w=e.node().style.fill||"black",_=p.select("g");_.attr({fill:w,stroke:w});var b=_.node().getBoundingClientRect(),T=b.width,k=b.height;(T>m||k>x)&&(p.style("overflow","hidden"),b=p.node().getBoundingClientRect(),T=b.width,k=b.height);var M=+e.attr("x"),q=+e.attr("y"),E=u||e.node().getBoundingClientRect().height,D=-E/4;if(o[0]==="y")y.attr({transform:"rotate("+[-90,M,q]+")"+Yue(-T/2,D-k/2)});else if(o[0]==="l")q=D-k/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,q=D;else{var P=e.attr("text-anchor");M=M-T*(P==="middle"?.5:P==="end"?1:0),q=q+D-k/2}p.attr({x:M,y:q}),t&&t.call(e,y),s(y)})})):l(),e};var Zue=/(<|<|<)/g,Xue=/(>|>|>)/g;function Jue(e){return e.replace(Zue,"\\lt ").replace(Xue,"\\gt ")}var Mq=[["$","$"],["\\(","\\)"]];function $ue(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){sl.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=sl.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Mq},displayAlign:"left"})},u=function(){i=sl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Mq},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},v=function(){var w="math-output-"+sl.randstr({},64);l=la.select("body").append("div").attr({id:w}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(Jue(e));var _=l.node();return a===2?MathJax.Hub.Typeset(_):MathJax.typeset([_])},d=function(){var w=l.select(a===2?".MathJax_SVG":".MathJax"),_=!w.empty()&&l.select("svg").node();if(!_)sl.log("There was an error in the tex syntax.",e),t();else{var b=_.getBoundingClientRect(),T;a===2?T=la.select("body").select("#MathJax_SVG_glyphs"):T=w.select("defs"),t(w,T,b)}l.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},y=function(){n!=="svg"&&(MathJax.config.startup.output=n)},m=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},x=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,v,d,p,m):a===3&&(u(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){v(),d(),y(),x()}))}var Lq={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Kue={sub:"0.3em",sup:"-0.6em"},Que={sub:"-0.21em",sup:"0.42em"},kq="\u200B",Sq=["http:","https:","mailto:","",void 0,":"],Cq=vi.NEWLINES=/(\r\n?|\n)/g,$b=/(<[^<>]*>)/,Kb=/<(\/?)([^ >]*)(\s+(.*))?>/i,efe=//i;vi.BR_TAG_ALL=//gi;var Eq=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Dq=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Rq=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,rfe=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function nu(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Qp(a)}var tfe=/(^|;)\s*color:/;vi.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split($b),l=[],s="",u=0,f=0;fi?l.push(c.substr(0,y-i)+n):l.push(c.substr(0,y));break}s=""}}return l.join("")};var afe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},nfe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Qp(e){return e.replace(nfe,function(r,t){var a;return t.charAt(0)==="#"?a=ife(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=afe[t],a||r})}vi.convertEntities=Qp;function ife(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function ofe(e,r){r=r.replace(Cq," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(Xb.svg,"tspan");la.select(k).attr({class:"line",dy:i*Wue+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var q=1;q.",r);return}var M=a.pop();k!==M.type&&sl.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=efe.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split($b),v=0;v{"use strict";var lfe=Sr(),r1=Sn(),ch=Rr(),e1=Ce(),Fq=Tr(),sfe=Ys().isValid;function ufe(e,r,t){var a=r?e1.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(e1.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function Hq(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var Gq=mb(),cfe=Gq.FORMAT_LINK,vfe=Gq.DATE_FORMAT_LINK;function hfe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Qb:Vq)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Qb(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+cfe+"."].join(" ")}function Vq(e,r){return Qb(e,r)+[" And for dates see: "+vfe+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Yq.exports={axisHoverFormat:hfe,descriptionOnlyNumbers:Qb,descriptionWithDates:Vq}});var hi=N((cDe,sL)=>{"use strict";var Wq=da(),Hf=si(),lL=ui().dash,rx=xt().extendFlat,jq=At().templatedArray,fDe=Ta().templateFormatStringDescription,Zq=eo().descriptionWithDates,dfe=Nt().ONEDAY,Mo=Ea(),pfe=Mo.HOUR_PATTERN,yfe=Mo.WEEKDAY_PATTERN,ex={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},mfe=rx({},ex,{values:ex.values.slice().concat(["sync"])});function Xq(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var Jq={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},$q={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Kq={valType:"data_array",editType:"ticks"},Qq={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function eL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function rL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var tL={valType:"color",dflt:Hf.defaultLine,editType:"ticks"},aL={valType:"color",dflt:Hf.lightLine,editType:"ticks"};function nL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var iL=rx({},lL,{editType:"ticks"}),oL={valType:"boolean",editType:"ticks"};sL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Hf.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Wq({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Mo.idRegex.x.toString(),Mo.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Mo.idRegex.x.toString(),Mo.idRegex.y.toString()],editType:"calc"},rangebreaks:jq("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[yfe,pfe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:dfe},editType:"calc"}),tickmode:mfe,nticks:Xq(),tick0:Jq,dtick:$q,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Kq,ticktext:{valType:"data_array",editType:"ticks"},ticks:Qq,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:eL(),tickwidth:rL(),tickcolor:tL,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:rx({},lL,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:Wq({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Zq("tick label")},tickformatstops:jq("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Zq("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Hf.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:oL,gridcolor:aL,gridwidth:nL(),griddash:iL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Hf.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Hf.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Mo.idRegex.x.toString(),Mo.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Mo.idRegex.x.toString(),Mo.idRegex.y.toString()],editType:"plot"},minor:{tickmode:ex,nticks:Xq("minor"),tick0:Jq,dtick:$q,tickvals:Kq,ticks:Qq,ticklen:eL("minor"),tickwidth:rL("minor"),tickcolor:tL,gridcolor:aL,gridwidth:nL("minor"),griddash:iL,showgrid:oL,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var t1=N((vDe,cL)=>{"use strict";var Et=hi(),uL=da(),fL=xt().extendFlat,gfe=Ji().overrideAll;cL.exports=gfe({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Et.linecolor,outlinewidth:Et.linewidth,bordercolor:Et.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Et.minor.tickmode,nticks:Et.nticks,tick0:Et.tick0,dtick:Et.dtick,tickvals:Et.tickvals,ticktext:Et.ticktext,ticks:fL({},Et.ticks,{dflt:""}),ticklabeloverflow:fL({},Et.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Et.ticklen,tickwidth:Et.tickwidth,tickcolor:Et.tickcolor,ticklabelstep:Et.ticklabelstep,showticklabels:Et.showticklabels,labelalias:Et.labelalias,tickfont:uL({}),tickangle:Et.tickangle,tickformat:Et.tickformat,tickformatstops:Et.tickformatstops,tickprefix:Et.tickprefix,showtickprefix:Et.showtickprefix,ticksuffix:Et.ticksuffix,showticksuffix:Et.showticksuffix,separatethousands:Et.separatethousands,exponentformat:Et.exponentformat,minexponent:Et.minexponent,showexponent:Et.showexponent,title:{text:{valType:"string"},font:uL({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var ko=N((dDe,hL)=>{"use strict";var bfe=t1(),xfe=Af().counter,_fe=Mb(),vL=Ys().scales,hDe=_fe(vL);function a1(e){return"`"+e+"`"}hL.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?vL[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+a1(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",y=a+"max",m=a+"mid",x=a1(u+d),w=a1(u+p),_=a1(u+y),b=w+" and "+_,T={};T[p]=T[y]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=bfe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:xfe("coloraxis"),dflt:null,editType:"calc"}),M}});var ax=N((pDe,dL)=>{"use strict";var wfe=xt().extendFlat,Tfe=ko(),tx=Ys().scales;dL.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:tx.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:tx.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:tx.RdBu,editType:"calc"}},coloraxis:wfe({_isSubplotObj:!0,editType:"calc"},Tfe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var nx=N((yDe,pL)=>{"use strict";var Afe=Ce();pL.exports=function(r){return Afe.isPlainObject(r.colorbar)}});var lx=N(ox=>{"use strict";var ix=Rr(),yL=Ce(),mL=Nt(),Mfe=mL.ONEDAY,kfe=mL.ONEWEEK;ox.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Mfe:1;if(!e)return i;if(ix(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.substr(1);return l=ix(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};ox.tick0=function(e,r,t,a){if(r==="date")return yL.cleanDate(e,yL.dateTick0(t,a%kfe===0?1:0));if(!(a==="D1"||a==="D2"))return ix(e)?Number(e):0}});var n1=N((gDe,bL)=>{"use strict";var gL=lx(),Sfe=Ce().isArrayOrTypedArray,qfe=Yn().isTypedArraySpec,Lfe=Yn().decodeTypedArraySpec;bL.exports=function(r,t,a,n,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(w){var _=l[w];return qfe(_)&&(_=Lfe(_)),_!==void 0?_:(s._template||{})[w]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=Sfe(d)?"array":v?"linear":"auto",y=a(u+"tickmode",p);if(y==="auto"||y==="sync")a(u+"nticks");else if(y==="linear"){var m=s.dtick=gL.dtick(v,n);s.tick0=gL.tick0(c,n,t.calendar,m)}else if(n!=="multicategory"){var x=a(u+"tickvals");x===void 0?s.tickmode="auto":o||a("ticktext")}}});var i1=N((bDe,_L)=>{"use strict";var sx=Ce(),xL=hi();_L.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?xL.minor:xL,u=i?"minor.":"",f=sx.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=sx.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=sx.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var ux=N((xDe,wL)=>{"use strict";wL.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var ro=N((_De,TL)=>{"use strict";var o1=Ce(),Cfe=At();TL.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=o1.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=Cfe.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var fx=Ce(),Efe=Tr().contrast,AL=hi(),Dfe=ux(),Rfe=ro();ML.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");fx.isPlainObject(o)||delete t.labelalias;var l=Dfe(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?Efe(i.bgColor):f&&f!==AL.color.dflt?f:u.color;if(fx.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");Rfe(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Pfe}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function Pfe(e,r){function t(n,i){return fx.coerce(e,r,AL.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var s1=N((TDe,kL)=>{"use strict";var Ffe=ux();kL.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Ffe(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var cx=N((ADe,SL)=>{"use strict";var Xl=Ce(),Nfe=At(),zfe=n1(),Ife=i1(),Ofe=l1(),Bfe=s1(),Hfe=t1();SL.exports=function(r,t,a){var n=Nfe.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,R){return Xl.coerce(i,n,Hfe,P,R)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var p=o("yref"),y=o("xref"),m=p==="paper",x=y==="paper",w,_,b,T="left";c?(b="middle",T=x?"left":"right",w=x?1.02:1,_=.5):(b=m?"bottom":"top",T="center",w=.5,_=m?1.02:1),Xl.coerce(i,n,{x:{valType:"number",min:x?-2:0,max:x?3:1,dflt:w}},"x"),Xl.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:_}},"y"),o("xanchor",T),o("xpad"),o("yanchor",b),o("ypad"),Xl.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=Xl.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),zfe(i,n,o,"linear");var M=a.font,q={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(q.bgColor="black"),Bfe(i,n,o,"linear",q),Ofe(i,n,o,"linear",q),Ife(i,n,o,"linear",q),o("title.text",a._dfltTitle.colorbar);var E=n.showticklabels?n.tickfont:M,D=Xl.extendFlat({},M,{family:E.family,size:Xl.bigFont(E.size)});Xl.coerceFont(o,"title.font",D),o("title.side",c?"top":"right")}});var ul=N((MDe,CL)=>{"use strict";var qL=Rr(),hx=Ce(),Ufe=nx(),Gfe=cx(),LL=Ys().isValid,Vfe=gr().traceIs;function vx(e,r){var t=r.slice(0,r.length-1);return r?hx.nestedProperty(e,t).get()||{}:e}CL.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=vx(r,o),f=vx(t,o),c=vx(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var y=Vfe(t,"contour")&&hx.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==y&&(m[0]=!1,hx.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[y,t,[v]];return}}var x=u[l+"min"],w=u[l+"max"],_=qL(x)&&qL(w)&&x{"use strict";var EL=Ce(),Yfe=At(),DL=ax(),Wfe=ul();RL.exports=function(r,t){function a(c,v){return EL.coerce(r,t,DL,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return EL.coerce(i,o,DL.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=Yfe.newContainer(t,s,"coloraxis"),o._name=s,Wfe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var jfe=Ce(),Zfe=jn().hasColorscale,Xfe=jn().extractOpts;FL.exports=function(r,t){function a(f,c){var v=f["_"+c];v!==void 0&&(f[c]=v)}function n(f,c){var v=c.container?jfe.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=Xfe(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var zL=Rr(),dx=Ce(),Jfe=jn().extractOpts;IL.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?dx.nestedProperty(t,o).get():t,s=Jfe(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return dx.aggNums(Math.min,null,i)},p=function(){return dx.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&zL(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&zL(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var So=N((LDe,OL)=>{"use strict";var u1=Ys(),Gf=jn();OL.exports={moduleType:"component",name:"colorscale",attributes:ko(),layoutAttributes:ax(),supplyLayoutDefaults:PL(),handleDefaults:ul(),crossTraceDefaults:NL(),calc:Uf(),scales:u1.scales,defaultScale:u1.defaultScale,getScale:u1.get,isValidScale:u1.isValid,hasColorscale:Gf.hasColorscale,extractOpts:Gf.extractOpts,extractScale:Gf.extractScale,flipScale:Gf.flipScale,makeColorScaleFunc:Gf.makeColorScaleFunc,makeColorScaleFuncFromTrace:Gf.makeColorScaleFuncFromTrace}});var Rn=N((CDe,HL)=>{"use strict";var BL=Ce(),$fe=Yn().isTypedArraySpec;HL.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return BL.isPlainObject(r)&&(BL.isArrayOrTypedArray(r.size)||$fe(r.size))}}});var GL=N((EDe,UL)=>{"use strict";var Kfe=Rr();UL.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return Kfe(s)&&s>0?Math.max(s,i):0}}});var qo=N(Ja=>{"use strict";var VL=Ce();Ja.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ja.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{jL.exports=ace;var px={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},tce=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function ace(e){var r=[];return e.replace(tce,function(t,a,n){var i=a.toLowerCase();for(n=ice(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==px[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var oce=yx(),Je=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",ZL=Math.sqrt(2),Jl=Math.sqrt(3),mx=Math.PI,gx=Math.cos,bx=Math.sin;QL.exports={circle:{n:0,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Cr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.3,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.4,2),n=Je(e*1.2,2);return Cr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.8/ZL,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Cr(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.951,2),n=Je(e*.588,2),i=Je(-e,2),o=Je(e*-.309,2),l=Je(e*.809,2);return Cr(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Jl/2,2);return Cr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Jl/2,2);return Cr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.924,2),n=Je(e*.383,2);return Cr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Lr(r))return qr;var a=e*1.4,n=Je(a*.225,2),i=Je(a*.951,2),o=Je(a*.363,2),l=Je(a*.588,2),s=Je(-a,2),u=Je(a*-.309,2),f=Je(a*.118,2),c=Je(a*.809,2),v=Je(a*.382,2);return Cr(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.66,2),n=Je(e*.38,2),i=Je(e*.76,2);return Cr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*Jl*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),o=Je(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Cr(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*Jl*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),o=Je(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Cr(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.1,2),n=Je(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Cr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2),n=Je(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Cr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.7,2),n=Je(e*1.4,2);return Cr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2),n=Je(e*.7,2);return Cr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e/ZL,2);return Cr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.3,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.3,2),n=Je(e*.65,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*.85,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e/2,2),n=Je(e,2);return Cr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2);return Cr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2);return Cr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Lr(r))return qr;var a=mx/2.5,n=2*e*gx(a),i=2*e*bx(a);return Cr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Lr(r))return qr;var a=mx/4,n=2*e*gx(a),i=2*e*bx(a);return Cr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Lr(e){return e===null}var XL,JL,$L,KL;function Cr(e,r,t){if((!e||e%360===0)&&!r)return t;if($L===e&&KL===r&&XL===t)return JL;$L=e,KL=r,XL=t;function a(m,x){var w=gx(m),_=bx(m),b=x[0],T=x[1]+(r||0);return[b*w-T*_,b*_+T*w]}for(var n=e/180*mx,i=0,o=0,l=oce(t),s="",u=0;u{"use strict";var Aa=Sr(),gt=Ce(),lce=gt.numberFormat,su=Rr(),Mx=Sn(),c1=gr(),Ua=Tr(),sce=So(),hh=gt.strTranslate,v1=Da(),uce=ll(),fce=Xa(),cce=fce.LINE_SPACING,fC=_p().DESELECTDIM,vce=Rn(),hce=GL(),dce=qo().appendArrayPointValue,rr=xC.exports={};rr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Ua.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",xx(yce(f))),s&&e.style("text-shadow",s==="auto"?v1.makeTextShadow(Ua.contrast(i)):xx(s)),u&&e.style("text-decoration-line",xx(mce(u)))};function xx(e){return e==="none"?void 0:e}var pce={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function yce(e){return pce[e]}function mce(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}rr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};rr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};rr.setRect=function(e,r,t,a,n){e.call(rr.setPosition,r,t).call(rr.setSize,a,n)};rr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(su(n)&&su(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",hh(n,i));else return!1;return!0};rr.translatePoints=function(e,r,t){e.each(function(a){var n=Aa.select(this);rr.translatePoint(a,n,r,t)})};rr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};rr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=c1.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){rr.hideOutsideRangePoint(u,Aa.select(this),t,a,o,l)})})}};rr.crispRound=function(e,r,t){return!r||!su(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};rr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Ua.stroke(r,a||i.color),rr.dashLine(r,l,o)};rr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";Aa.select(this).call(Ua.stroke,t||i.color).call(rr.dashLine,l,o)})};rr.dashLine=function(e,r,t){t=+t||0,r=rr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};rr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function cC(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=rr.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;rr.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,x;p==="horizontal"?(m={x:i.start,y:0},x={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},x={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.y,!0),x.x=r._xA.c2p(x.x===void 0?r._extremes.x.max[0].val:x.x,!0),x.y=r._yA.c2p(x.y===void 0?r._extremes.y.max[0].val:x.y,!0),e.call(dC,t,y,"linear",i.colorscale,"fill",m,x,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(rr.gradient,t,y,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Ua.fill,r.fillcolor)}rr.singleFillStyle=function(e,r){var t=Aa.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};cC(e,n,r,!1)};rr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=Aa.select(this);a[0].trace&&cC(n,a[0].trace,r,t)})};var rC=eC();rr.symbolNames=[];rr.symbolFuncs=[];rr.symbolBackOffs=[];rr.symbolNeedLines={};rr.symbolNoDot={};rr.symbolNoFill={};rr.symbolList=[];Object.keys(rC).forEach(function(e){var r=rC[e],t=r.n;rr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),rr.symbolNames[t]=e,rr.symbolFuncs[t]=r.f,rr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(rr.symbolNeedLines[t]=!0),r.noDot?rr.symbolNoDot[t]=!0:rr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(rr.symbolNoFill[t]=!0)});var gce=rr.symbolNames.length,bce="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";rr.symbolNumber=function(e){if(su(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=rr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=gce||e>=400?0:Math.floor(Math.max(e,0))};function vC(e,r,t,a){var n=e%100;return rr.symbolFuncs[n](r,t,a)+(e>=200?bce:"")}var tC=lce("~f"),hC={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};rr.gradient=function(e,r,t,a,n,i){var o=hC[a];return dC(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function dC(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=rr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=qx(e,t),c=Sx(e,t);r.attr("d",vC(u,s,f,c))}var v=!1,d,p,y;if(e.so)y=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var m=(l||{}).width;y=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):gt.isArrayOrTypedArray(l.color)?p=Ua.defaultLine:p=l.color,gt.isArrayOrTypedArray(o.color)&&(d=Ua.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}if(e.om)r.call(Ua.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var x=o.gradient,w=e.mgt;w?v=!0:w=x&&x.type,gt.isArrayOrTypedArray(w)&&(w=w[0],hC[w]||(w=0));var _=o.pattern,b=rr.getPatternAttr,T=_&&(b(_.shape,e.i,"")||b(_.path,e.i,""));if(w&&w!=="none"){var k=e.mgc;k?v=!0:k=x.color;var M=t.uid;v&&(M+="-"+e.i),rr.gradient(r,n,M,w,[[0,k],[1,d]],"fill")}else if(T){var q=!1,E=_.fgcolor;!E&&i&&i.color&&(E=i.color,q=!0);var D=b(E,e.i,i&&i.color||null),P=b(_.bgcolor,e.i,null),R=_.fgopacity,z=b(_.size,e.i,8),O=b(_.solidity,e.i,.3);q=q||e.mcc||gt.isArrayOrTypedArray(_.shape)||gt.isArrayOrTypedArray(_.path)||gt.isArrayOrTypedArray(_.bgcolor)||gt.isArrayOrTypedArray(_.fgcolor)||gt.isArrayOrTypedArray(_.size)||gt.isArrayOrTypedArray(_.solidity);var B=t.uid;q&&(B+="-"+e.i),rr.pattern(r,"point",n,B,T,z,O,e.mcc,_.fillmode,P,D,R)}else gt.isArrayOrTypedArray(d)?Ua.fill(r,d[e.i]):Ua.fill(r,d);y&&Ua.stroke(r,p)}};rr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=rr.tryColorscale(t,""),r.lineScale=rr.tryColorscale(t,"line"),c1.traceIs(e,"symbols")&&(r.ms2mrc=vce.isBubble(e)?hce(e):function(){return(t.size||6)/2}),e.selectedpoints&>.extendFlat(r,rr.makeSelectedPointStyleFns(e)),r};rr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(gt.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(b){var T=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:T:c?u:fC*T});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(b){var T=b.mcc||v;return b.selected?d||T:p||T});var y=n.size,m=i.size,x=o.size,w=m!==void 0,_=x!==void 0;return c1.traceIs(e,"symbols")&&(w||_)&&(r.selectedSizeFn=function(b){var T=b.mrc||y/2;return b.selected?w?m/2:T:_?x/2:T}),r};rr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:Ua.addOpacity(c,fC))},r};rr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Ua.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",vC(rr.symbolNumber(l),s,qx(o,r),Sx(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=Aa.select(this),l=0;l0?t:0}rr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=rr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=Aa.select(this),u=i?gt.extractOption(l,r,"txt","texttemplate"):gt.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},v={};dce(v,r,l.i);var d=r._meta||{};u=gt.texttemplateString(u,c,o._d3locale,v,l,d)}var p=l.tp||r.textposition,y=yC(l,r),m=a?a(l):l.tc||r.textfont.color;s.call(rr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:y,color:m}).text(u).call(v1.convertToTspans,t).call(pC,p,y,l.mrc)})}};rr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.makeSelectedTextStyleFns(r);e.each(function(a){var n=Aa.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=yC(a,r);Ua.fill(n,i);var s=c1.traceIs(r,"bar-like");pC(n,o,l,a.mrc2||a.mrc,s)})}};var aC=.5;rr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(T<=c&&T>=u||T>=c&&T<=u)&&(e=[b,T])}return e}rr.applyBackoff=bC;rr.makeTester=function(){var e=gt.ensureSingleById(Aa.select("body"),"svg","js-plotly-tester",function(t){t.attr(uce.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=gt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});rr.tester=e,rr.testref=r};rr.savedBBoxes={};var wx=0,wce=1e4;rr.bBox=function(e,r,t){t||(t=nC(e));var a;if(t){if(a=rr.savedBBoxes[t],a)return gt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=nC(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=rr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=rr.savedBBoxes[t],a)return gt.extendFlat({},a)}}var u,f;r?u=e:(f=rr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),Aa.select(u).attr("transform",null).call(v1.positionText,0,0);var c=u.getBoundingClientRect(),v=rr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return wx>=wce&&(rr.savedBBoxes={},wx=0),t&&(rr.savedBBoxes[t]=d),wx++,gt.extendFlat({},d)};function nC(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}rr.setClipUrl=function(e,r,t){e.attr("clip-path",kx(r,t))};function kx(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}rr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};rr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=hh(r,t),o=o.trim(),e[i]("transform",o),o};rr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};rr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var Tce=/\s*sc.*/;rr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(Tce,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Ace=/translate\([^)]*\)\s*$/;rr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=Aa.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(Ace);r===1&&t===1?a=[]:a=[hh(o,l),"scale("+r+","+t+")",hh(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function Sx(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}rr.getMarkerStandoff=Sx;var vh=Math.atan2,iu=Math.cos,Yf=Math.sin;function iC(e,r){var t=r[0],a=r[1];return[t*iu(e)-a*Yf(e),t*Yf(e)+a*iu(e)]}var oC,lC,sC,uC,Tx,Ax;function qx(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||gt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),v=r._geo.project([u+1e-5,f]),d=vh(v[1]-n,v[0]-a),p=vh(c[1]-n,c[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var m=u/180*Math.PI,x=f/180*Math.PI,w=oC/180*Math.PI,_=lC/180*Math.PI,b=w-m,T=iu(_)*Yf(b),k=Yf(_)*iu(x)-iu(_)*Yf(x)*iu(b);y=-vh(T,k)-Math.PI,oC=u,lC=f}var M=iC(d,[iu(y),0]),q=iC(p,[Yf(y),0]);t=vh(M[1]+q[1],M[0]+q[0])/Math.PI*180,i==="previous"&&!(Ax===r.uid&&e.i===Tx+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Ax===r.uid&&e.i===Tx+1&&su(a)&&su(n)){var E=a-sC,D=n-uC,P=r.line&&r.line.shape||"",R=P.slice(P.length-1);R==="h"&&(D=0),R==="v"&&(E=0),t+=vh(D,E)/Math.PI*180+90}else t=null}return sC=a,uC=n,Tx=e.i,Ax=r.uid,t}rr.getMarkerAngle=qx});var Zf=N((NDe,AC)=>{"use strict";var Wf=Sr(),Mce=Rr(),kce=aa(),Lx=gr(),uu=Ce(),_C=uu.strTranslate,h1=Wr(),d1=Tr(),jf=Da(),wC=_p(),Sce=Xa().OPPOSITE_SIDE,TC=/ [XY][0-9]* /,Cx=1.6,Ex=1.6;function qce(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),y=!1,m=d&&d.font?d.font:{},x=m.family,w=m.size,_=m.color,b=m.weight,T=m.style,k=m.variant,M=m.textcase,q=m.lineposition,E=m.shadow,D=t.subtitlePropName,P=!!D,R=t.subtitlePlaceholder,z=(n.title||{}).subtitle||{text:"",font:{}},O=(z.text||"").trim(),B=!1,Y=1,G=z.font,U=G.family,V=G.size,X=G.color,Z=G.weight,re=G.style,ce=G.variant,oe=G.textcase,fe=G.lineposition,K=G.shadow,Te;i==="title.text"?Te="titleText":i.indexOf("axis")!==-1?Te="axisTitleText":i.indexOf("colorbar")!==-1&&(Te="colorbarTitleText");var le=e._context.edits[Te];function pe(Ge,He){return Ge===void 0||He===void 0?!1:Ge.replace(TC," % ")===He.replace(TC," % ")}p===""?v=0:pe(p,o)&&(le||(p=""),v=.2,y=!0),P&&(O===""?Y=0:pe(O,R)&&(le||(O=""),Y=.2,B=!0)),t._meta?p=uu.templateString(p,t._meta):a._meta&&(p=uu.templateString(p,a._meta));var ie=p||O||le,ve;c||(c=uu.ensureSingle(a._infolayer,"g","g-"+r),ve=a._hColorbarMoveTitle);var W=c.selectAll("text."+r).data(ie?[0]:[]);W.enter().append("text"),W.text(p).attr("class",r),W.exit().remove();var Q=null,j=r+"-subtitle",ye=O||le;if(P&&(Q=c.selectAll("text."+j).data(ye?[0]:[]),Q.enter().append("text"),Q.text(O).attr("class",j),Q.exit().remove()),!ie)return c;function _e(Ge,He){uu.syncOrAsync([me,Pe],{title:Ge,subtitle:He})}function me(Ge){var He=Ge.title,Ee=Ge.subtitle,Ie;!f&&ve&&(f={}),f?(Ie="",f.rotate&&(Ie+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ve)&&(Ie+=_C(0,(f.offset||0)-(ve||0)))):Ie=null,He.attr("transform",Ie);function Be(ue){if(ue){var qe=Wf.select(ue.node().parentNode).select("."+j);if(!qe.empty()){var Oe=ue.node().getBBox();if(Oe.height){var Ze=Oe.y+Oe.height+Cx*V;qe.attr("y",Ze)}}}}if(He.style("opacity",v*d1.opacity(_)).call(h1.font,{color:d1.rgb(_),size:Wf.round(w,2),family:x,weight:b,style:T,variant:k,textcase:M,shadow:E,lineposition:q}).attr(u).call(jf.convertToTspans,e,Be),Ee&&!Ee.empty()){var se=c.select("."+r+"-math-group"),Ae=He.node().getBBox(),je=se.node()?se.node().getBBox():void 0,ur=je?je.y+je.height+Cx*V:Ae.y+Ae.height+Ex*V,lr=uu.extendFlat({},u,{y:ur});Ee.attr("transform",Ie),Ee.style("opacity",Y*d1.opacity(X)).call(h1.font,{color:d1.rgb(X),size:Wf.round(V,2),family:U,weight:Z,style:re,variant:ce,textcase:oe,shadow:K,lineposition:fe}).attr(lr).call(jf.convertToTspans,e)}return kce.previousPromises(e)}function Pe(Ge){var He=Ge.title,Ee=Wf.select(He.node().parentNode);if(s&&s.selection&&s.side&&p){Ee.attr("transform",null);var Ie=Sce[s.side],Be=s.side==="left"||s.side==="top"?-1:1,se=Mce(s.pad)?s.pad:2,Ae=h1.bBox(Ee.node()),je={t:0,b:0,l:0,r:0},ur=e._fullLayout._reservedMargin;for(var lr in ur)for(var ue in ur[lr]){var qe=ur[lr][ue];je[ue]=Math.max(je[ue],qe)}var Oe={left:je.l,top:je.t,right:a.width-je.r,bottom:a.height-je.b},Ze=s.maxShift||Be*(Oe[s.side]-Ae[s.side]),Ue=0;if(Ze<0)Ue=Ze;else{var Xe=s.offsetLeft||0,Ke=s.offsetTop||0;Ae.left-=Xe,Ae.right-=Xe,Ae.top-=Ke,Ae.bottom-=Ke,s.selection.each(function(){var $e=h1.bBox(this);uu.bBoxIntersect(Ae,$e,se)&&(Ue=Math.max(Ue,Be*($e[s.side]-Ae[Ie])+se))}),Ue=Math.min(Ze,Ue),n._titleScoot=Math.abs(Ue)}if(Ue>0||Ze<0){var hr={left:[-Ue,0],right:[Ue,0],top:[0,-Ue],bottom:[0,Ue]}[s.side];Ee.attr("transform",_C(hr[0],hr[1]))}}}W.call(_e,Q);function Ne(Ge,He){Ge.text(He).on("mouseover.opacity",function(){Wf.select(this).transition().duration(wC.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Wf.select(this).transition().duration(wC.HIDE_PLACEHOLDER).style("opacity",0)})}if(le&&(p?W.on(".opacity",null):(Ne(W,o),y=!0),W.call(jf.makeEditable,{gd:e}).on("edit",function(Ge){l!==void 0?Lx.call("_guiRestyle",e,i,Ge,l):Lx.call("_guiRelayout",e,i,Ge)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(_e)}).on("input",function(Ge){this.text(Ge||" ").call(jf.positionText,u.x,u.y)}),P)){if(P&&!p){var Re=W.node().getBBox(),ze=Re.y+Re.height+Ex*V;Q.attr("y",ze)}O?Q.on(".opacity",null):(Ne(Q,R),B=!0),Q.call(jf.makeEditable,{gd:e}).on("edit",function(Ge){Lx.call("_guiRelayout",e,"title.subtitle.text",Ge)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(_e)}).on("input",function(Ge){this.text(Ge||" ").call(jf.positionText,Q.attr("x"),Q.attr("y"))})}return W.classed("js-placeholder",y),Q&&!Q.empty()&&Q.classed("js-placeholder",B),c}AC.exports={draw:qce,SUBTITLE_PADDING_EM:Ex,SUBTITLE_PADDING_MATHJAX_EM:Cx}});var Xf=N((zDe,LC)=>{"use strict";var Lce=Sr(),Cce=xf().utcFormat,Mt=Ce(),Ece=Mt.numberFormat,Lo=Rr(),$l=Mt.cleanNumber,Dce=Mt.ms2DateTime,MC=Mt.dateTime2ms,Co=Mt.ensureNumber,kC=Mt.isArrayOrTypedArray,Kl=Nt(),p1=Kl.FP_SAFE,to=Kl.BADNUM,Rce=Kl.LOG_CLIP,Pce=Kl.ONEWEEK,y1=Kl.ONEDAY,m1=Kl.ONEHOUR,SC=Kl.ONEMIN,qC=Kl.ONESEC,g1=oa(),_1=Ea(),b1=_1.HOUR_PATTERN,x1=_1.WEEKDAY_PATTERN;function dh(e){return Math.pow(10,e)}function Dx(e){return e!=null}LC.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,T){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&T&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*Rce*Math.abs(k-M))}else return to}function o(b,T,k,M){if((M||{}).msUTC&&Lo(b))return+b;var q=MC(b,k||r.calendar);if(q===to)if(Lo(b)){b=+b;var E=Math.floor(Mt.mod(b+.05,1)*10),D=Math.round(b-E/10);q=MC(new Date(D))+E/10}else return to;return q}function l(b,T,k){return Dce(b,T,k||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Dx(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var T=r._categories.length-1;return r._categoriesMap[b]=T,T}return to}function f(b,T){for(var k=new Array(T),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,q=M*b,E=0,D=0;DR)E=D+1;else{E=q<(P+R)/2?D:D+1;break}}var z=r._B[E]||0;return isFinite(z)?p(b,r._m2,z):0},x=function(b){var T=r._rangebreaks.length;if(!T)return y(b,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return y(b,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:Co,r.l2c=r.type==="log"?dh:Co,r.l2p=m,r.p2l=x,r.c2p=r.type==="log"?function(b,T){return m(i(b,T))}:m,r.p2c=r.type==="log"?function(b){return dh(x(b))}:x,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=$l,r.c2d=r.c2r=r.l2d=r.l2r=Co,r.d2p=r.r2p=function(b){return r.l2p($l(b))},r.p2d=r.p2r=x,r.cleanPos=Co):r.type==="log"?(r.d2r=r.d2l=function(b,T){return i($l(b),T)},r.r2d=r.r2c=function(b){return dh($l(b))},r.d2c=r.r2l=$l,r.c2d=r.l2r=Co,r.c2r=i,r.l2d=dh,r.d2p=function(b,T){return r.l2p(r.d2r(b,T))},r.p2d=function(b){return dh(x(b))},r.r2p=function(b){return r.l2p($l(b))},r.p2r=x,r.cleanPos=Co):r.type==="date"?(r.d2r=r.r2d=Mt.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(b,T,k){return r.l2p(o(b,0,k))},r.p2d=r.p2r=function(b,T,k){return l(x(b),T,k)},r.cleanPos=function(b){return Mt.cleanDate(b,to,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var T=d(b);return T!==void 0?T:r.fraction2r(.5)},r.l2r=r.c2r=Co,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:Co(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var T=v(b);return T!==void 0?T:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Co,r.r2l=v,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:Co(b)},r.setupMultiCategory=function(b){var T=r._traceIndices,k,M,q=r._matchGroup;if(q&&r._categories.length===0){for(var E in q)if(E!==a){var D=t[g1.id2name(E)];T=T.concat(D._traceIndices)}}var P=[[0,{}],[0,{}]],R=[];for(k=0;kD[1]&&(M[E?0:1]=k),M[0]===M[1]){var P=r.l2r(T),R=r.l2r(k);if(T!==void 0){var z=P+1;k!==void 0&&(z=Math.min(z,R)),M[E?1:0]=z}if(k!==void 0){var O=R+1;T!==void 0&&(O=Math.max(O,P)),M[E?0:1]=O}}}},r.cleanRange=function(b,T){r._cleanRange(b,T),r.limitRange(b)},r._cleanRange=function(b,T){T||(T={}),b||(b="range");var k=Mt.nestedProperty(r,b).get(),M,q;if(r.type==="date"?q=Mt.dfltRange(r.calendar):n==="y"?q=_1.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=T.dfltRange||_1.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!k||k.length!==2){Mt.nestedProperty(r,b).set(q);return}var E=k[0]===null,D=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=Mt.cleanDate(k[0],to,r.calendar),k[1]=Mt.cleanDate(k[1],to,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Mt.isDateTime(k[M],r.calendar)){r[b]=q;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=Mt.constrain(r.r2l(k[0]),Mt.MIN_MS+1e3,Mt.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!Lo(k[M]))if(!(E||D)&&Lo(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[b]=q;break}if(k[M]<-p1?k[M]=-p1:k[M]>p1&&(k[M]=p1),k[0]===k[1]){var R=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=R,k[1]+=R}}},r.setScale=function(b){var T=t._size;if(r.overlaying){var k=g1.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=b&&r._r?"_r":"range",q=r.calendar;r.cleanRange(M);var E=r.r2l(r[M][0],q),D=r.r2l(r[M][1],q),P=n==="y";if(P?(r._offset=T.t+(1-r.domain[1])*T.h,r._length=T.h*(r.domain[1]-r.domain[0]),r._m=r._length/(E-D),r._b=-r._m*D):(r._offset=T.l+r.domain[0]*T.w,r._length=T.w*(r.domain[1]-r.domain[0]),r._m=r._length/(D-E),r._b=-r._m*E),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,z;if(r._rangebreaks=r.locateBreaks(Math.min(E,D),Math.max(E,D)),r._rangebreaks.length){for(R=0;RD&&(O=!O),O&&r._rangebreaks.reverse();var B=O?-1:1;for(r._m2=B*r._length/(Math.abs(D-E)-r._lBreaks),r._B.push(-r._m2*(P?D:E)),R=0;Rq&&(q+=7,Eq&&(q+=24,E=M&&E=M&&b=K.min&&(reK.max&&(K.max=ce),oe=!1)}oe&&D.push({min:re,max:ce})}};for(k=0;k{"use strict";var CC=Rr(),Rx=Ce(),Fce=Nt().BADNUM,w1=Rx.isArrayOrTypedArray,Nce=Rx.isDateTime,zce=Rx.cleanNumber,EC=Math.round;RC.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(w1(n)&&!n.length)return"-";if(!i&&Uce(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function DC(e){return Math.max(1,(e-1)/1e3)}function Hce(e,r){for(var t=e.length,a=DC(t),n=0,i=0,o={},l=0;ln*2}function Uce(e){return w1(e[0])&&w1(e[1])}});var ph=N((ODe,HC)=>{"use strict";var Gce=Sr(),zC=Rr(),Ql=Ce(),A1=Nt().FP_SAFE,Vce=gr(),Yce=Wr(),IC=oa(),Wce=IC.getFromId,jce=IC.isLinked;HC.exports={applyAutorangeOptions:BC,getAutoRange:Px,makePadFn:Fx,doAutoRange:Xce,findExtremes:Jce,concatExtremes:Ix};function Px(e,r){var t,a,n=[],i=e._fullLayout,o=Fx(i,r,0),l=Fx(i,r,1),s=Ix(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Ql.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t0&&(D=_-o(k)-l(M),D>b?P/D>T&&(q=k,E=M,T=P/D):P/_>T&&(q={val:k.val,nopad:1},E={val:M.val,nopad:1},T=P/_));function R(G,U){return Math.max(G,l(U))}if(c===v){var z=c-1,O=c+1;if(x)if(c===0)n=[0,1];else{var B=(c>0?f:u).reduce(R,0),Y=c/(1-Math.min(.5,B/_));n=c>0?[0,Y]:[Y,0]}else w?n=[Math.max(0,z),Math.max(1,O)]:n=[z,O]}else x?(q.val>=0&&(q={val:0,nopad:1}),E.val<=0&&(E={val:0,nopad:1})):w&&(q.val-T*o(q)<0&&(q={val:0,nopad:1}),E.val<=0&&(E={val:1,nopad:1})),T=(E.val-q.val-PC(r,k.val,M.val))/(_-o(q)-l(E)),n=[q.val-T*o(q),E.val+T*l(E)];return n=BC(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Ql.simpleMap(n,r.l2r||Number)}function PC(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=b(t.vpadplus||t.vpad),q=b(t.vpadminus||t.vpad);if(!u){if(w=1/0,_=-1/0,s)for(c=0;c0&&(w=v),v>_&&v-A1&&(w=v),v>_&&v=P;c--)D(c);return{min:a,max:n,opts:t}}function Nx(e,r,t,a){OC(e,r,t,a,$ce)}function zx(e,r,t,a){OC(e,r,t,a,Kce)}function OC(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function NC(e){return zC(e)&&Math.abs(e)=r}function Qce(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&M1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&M1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function eve(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&M1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&M1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function M1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=Qce(t,r),a=eve(a,r),[t,a]}});var Ir=N((BDe,fE)=>{"use strict";var di=Sr(),sa=Rr(),Jf=aa(),mh=gr(),xr=Ce(),$f=xr.strTranslate,fu=Da(),rve=Zf(),gh=Tr(),Zn=Wr(),tve=hi(),UC=lx(),Ga=Nt(),ave=Ga.ONEMAXYEAR,q1=Ga.ONEAVGYEAR,L1=Ga.ONEMINYEAR,nve=Ga.ONEMAXQUARTER,Ux=Ga.ONEAVGQUARTER,C1=Ga.ONEMINQUARTER,ive=Ga.ONEMAXMONTH,Kf=Ga.ONEAVGMONTH,E1=Ga.ONEMINMONTH,Xn=Ga.ONEWEEK,on=Ga.ONEDAY,es=on/2,Do=Ga.ONEHOUR,bh=Ga.ONEMIN,D1=Ga.ONESEC,ove=Ga.ONEMILLI,lve=Ga.ONEMICROSEC,cu=Ga.MINUS_SIGN,P1=Ga.BADNUM,Gx={K:"zeroline"},Vx={K:"gridline",L:"path"},Yx={K:"minor-gridline",L:"path"},QC={K:"tick",L:"path"},GC={K:"tick",L:"text"},VC={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},F1=Xa(),yh=F1.MID_SHIFT,vu=F1.CAP_SHIFT,xh=F1.LINE_SPACING,sve=F1.OPPOSITE_SIDE,R1=3,Ye=fE.exports={};Ye.setConvert=Xf();var uve=T1(),fl=oa(),fve=fl.idSort,cve=fl.isLinked;Ye.id2name=fl.id2name;Ye.name2id=fl.name2id;Ye.cleanId=fl.cleanId;Ye.list=fl.list;Ye.listIds=fl.listIds;Ye.getFromId=fl.getFromId;Ye.getFromTrace=fl.getFromTrace;var eE=ph();Ye.getAutoRange=eE.getAutoRange;Ye.findExtremes=eE.findExtremes;var vve=1e-4;function Xx(e){var r=(e[1]-e[0])*vve;return[e[0]-r,e[1]+r]}Ye.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",u={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},xr.coerce(e,r,u,s)};Ye.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Ye.coercePosition=function(e,r,t,a,n,i){var o,l,s=Ye.getRefType(a);if(s!=="range")o=xr.ensureNumber,l=t(n,i);else{var u=Ye.getFromId(r,a);i=u.fraction2r(i),l=t(n,i),o=u.cleanPos}e[n]=o(l)};Ye.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?xr.ensureNumber:Ye.getFromId(r,t).cleanPos;return a(e)};Ye.redrawComponents=function(e,r){r=r||Ye.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var s=mh.getComponentMethod(n,i),u={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.substr(1));i.exactYears>o&&l%12===0?e=Ye.tickIncrement(e,"M6","reverse")+on*1.5:i.exactMonths>o?e=Ye.tickIncrement(e,"M1","reverse")+on*15.5:e-=es;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&sa(r._tmin),n;if(a){var i=Ye.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=xr.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=xr.simpleMap(n,r.l2r),e._isMinor=!0,Ye.prepTicks(e,t),a){var l=sa(r.dtick),s=sa(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?Ox(u,f)?u===2*Xn&&f===2*on&&(e.dtick=Xn):u===2*Xn&&f===3*on?e.dtick=Xn:u===Xn&&!(r._input.minor||{}).nticks?e.dtick=on:jC(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Ox(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?Ox(u,f)||(e.dtick=jC(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function Ox(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function jC(e,r){return Math.abs(e/r-1)<.001}Ye.prepTicks=function(e,r){var t=xr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?xr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=xr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ye.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,c=0;f>=L1?u>=L1&&u<=ave?c=u:c=q1:t===Ux&&f>=C1?u>=C1&&u<=nve?c=u:c=Ux:f>=E1?u>=E1&&u<=ive?c=u:c=Kf:t===Xn&&f>=Xn?c=Xn:f>=on?c=on:t===es&&f>=es?c=es:t===Do&&f>=Do&&(c=Do);var v;c>=u&&(c=u,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,y=0,m=0;mXn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Ye.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||xr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=xr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(_?0:1);b--){var T=!b;b?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=b?r:xr.extendFlat({},r,r.minor);if(T?Ye.prepMinorTicks(k,r,t):Ye.prepTicks(k,t),k.tickmode==="array"){b?(m=[],p=ZC(r,!T)):(x=[],y=ZC(r,!T));continue}if(k.tickmode==="sync"){m=[],p=gve(r);continue}var M=Xx(u),q=M[0],E=M[1],D=sa(k.dtick),P=a==="log"&&!(D||k.dtick.charAt(0)==="L"),R=Ye.tickFirst(k,t);if(b){if(r._tmin=R,R=E:O<=E;O=Ye.tickIncrement(O,G,f,n)){if(b&&B++,k.rangebreaks&&!f){if(O=v)break}if(m.length>d||O===z)break;z=O;var U={value:O};b?(P&&O!==(O|0)&&(U.simpleLabel=!0),i>1&&B%i&&(U.skipLabel=!0),m.push(U)):(U.minor=!0,x.push(U))}}if(!x||x.length<2)s=!1;else{var V=(x[1].value-x[0].value)*(l?-1:1);Gve(V,r.tickformat)||(s=!1)}if(!s)w=m;else{var X=m.concat(x);o&&m.length&&(X=X.slice(1)),X=X.sort(function(ze,Ge){return ze.value-Ge.value}).filter(function(ze,Ge,He){return Ge===0||ze.value!==He[Ge-1].value});var Z=X.map(function(ze,Ge){return ze.minor===void 0&&!ze.skipLabel?Ge:null}).filter(function(ze){return ze!==null});Z.forEach(function(ze){s.map(function(Ge){var He=ze+Ge;He>=0&&He-1;ie--){if(m[ie].drop){m.splice(ie,1);continue}m[ie].value=Hx(m[ie].value,r);var j=r.c2p(m[ie].value);(ve?Q>j-W:Qv||Eev&&(He.periodX=v),Een&&vq1)r/=q1,a=n(10),e.dtick="M"+12*Eo(r,a,k1);else if(i>Kf)r/=Kf,e.dtick="M"+Eo(r,1,XC);else if(i>on){if(e.dtick=Eo(r,on,e._hasDayOfWeekBreaks?[1,2,7,14]:bve),!t){var o=Ye.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=xr.dateTick0(e.calendar,2):e.tick0=xr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Do?e.dtick=Eo(r,Do,XC):i>bh?e.dtick=Eo(r,bh,JC):i>D1?e.dtick=Eo(r,D1,JC):(a=n(10),e.dtick=Eo(r,a,k1))}else if(e.type==="log"){e.tick0=0;var s=xr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Eo(r,a,k1)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):Qx(e)?(e.tick0=0,a=1,e.dtick=Eo(r,a,xve)):(e.tick0=0,a=n(10),e.dtick=Eo(r,a,k1));if(e.dtick===0&&(e.dtick=1),!sa(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function nE(e){var r=e.dtick;if(e._tickexponent=0,!sa(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=on&&n<=10||r>=on*15)e._tickround="d";else if(r>=bh&&n<=16||r>=Do)e._tickround="M";else if(r>=D1&&n<=19||r>=bh)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(sa(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);sa(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Qf(e.exponentformat)&&e.exponentformat!=="SI extended"&&!Jx(s)||Qf(e.exponentformat)&&e.exponentformat==="SI extended"&&!$x(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ye.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(sa(r))return xr.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.substr(1));if(i==="M")return xr.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?aE:tE,s=e+n*.01,u=xr.roundUp(xr.mod(s,1),l,t);return Math.floor(s)+Math.log(di.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ye.tickFirst=function(e,r){var t=e.r2l||Number,a=xr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&x<=e._length?m:null};if(i&&xr.isArrayOrTypedArray(e.ticktext)){var c=xr.simpleMap(e.range,e.r2l),v=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(u=0;u"+l;else{var u=wh(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function wve(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=_h(Math.pow(10,o),e,n,a);else if(sa(i)||s==="D"&&(e.minorloglabels==="complete"||xr.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(xr.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||Qf(p)&&p!=="SI extended"&&Jx(v)||Qf(p)&&p==="SI extended"&&$x(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":cu)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":cu)+d:(r.text=_h(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,xr.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function Tve(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Ave(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function Mve(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=_h(r.x,e,n,a)}function kve(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Sve(i);if(o[1]>=100)r.text=_h(xr.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=cu+r.text)}}}else r.text=_h(r.x,e,n,a)}function Sve(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var oE=["f","p","n","\u03BC","m","","k","M","G","T"],qve=["q","r","y","z","a",...oE,"P","E","Z","Y","R","Q"],Qf=e=>["SI","SI extended","B"].includes(e);function Jx(e){return e>14||e<-15}function $x(e){return e>32||e<-30}function Lve(e,r){return Qf(r)?!!(r==="SI extended"&&$x(e)||r!=="SI extended"&&Jx(e)):!1}function _h(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:sa(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};nE(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,cu);var c=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+p+"":o==="B"&&l===9?e+="B":Qf(o)&&(e+=o==="SI extended"?qve[l/3+10]:oE[l/3+5])}return n?cu+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Kf}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),v=f.indexOf(u.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},v=u[0],d=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return xr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ye.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&Zx(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=xr.simpleMap(u._r,u.r2l),f}}}))};Ye.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Ye.counterLetter(u),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),Zx(r,p,a,!0),Zx(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Uve(r,a));var y=v[f+"axislayer"],m=r._mainLinePosition,x=m+=r._shift,w=r._mainMirrorPosition,_=r._vals=Ye.calcTicks(r),b=[r.mirror,x,w].join("_");for(i=0;i<_.length;i++)_[i].axInfo=b;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var T={};function k(Re){var ze=u+(Re||"tick");return T[ze]||(T[ze]=Rve(r,ze,x)),T[ze]}if(r.visible){var M=Ye.makeTransTickFn(r),q=Ye.makeTransTickLabelFn(r),E,D,P=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var z=Cve(r,_);D=Ye.clipEnds(r,z),E=P?D:z}else D=Ye.clipEnds(r,_),E=P&&r.ticklabelmode!=="period"?D:_;var O=r._gridVals=D,B=Dve(r,_);if(!s._hasOnlyLargeSploms){var Y=r._subplotsWith,G={};for(i=0;i0?Ee.bottom-Ge:0,He))));var Ae=0,je=0;if(r._shiftPusher&&(Ae=Math.max(He,Ee.height>0?Re==="l"?Ge-Ee.left:Ee.right-Ge:0),r.title.text!==s._dfltTitle[f]&&(je=(r._titleStandoff||0)+(r._titleScoot||0),Re==="l"&&(je+=KC(r))),r._fullDepth=Math.max(Ae,je)),r.automargin){Ie={x:0,y:0,r:0,l:0,t:0,b:0};var ur=[0,1],lr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Re==="b"?Ie[Re]=r._depth:(Ie[Re]=r._depth=Math.max(Ee.width>0?Ge-Ee.top:0,He),ur.reverse()),Ee.width>0){var ue=Ee.right-(r._offset+r._length);ue>0&&(Ie.xr=1,Ie.r=ue);var qe=r._offset-Ee.left;qe>0&&(Ie.xl=0,Ie.l=qe)}}else if(Re==="l"?(r._depth=Math.max(Ee.height>0?Ge-Ee.left:0,He),Ie[Re]=r._depth-lr):(r._depth=Math.max(Ee.height>0?Ee.right-Ge:0,He),Ie[Re]=r._depth+lr,ur.reverse()),Ee.height>0){var Oe=Ee.bottom-(r._offset+r._length);Oe>0&&(Ie.yb=0,Ie.b=Oe);var Ze=r._offset-Ee.top;Ze>0&&(Ie.yt=1,Ie.t=Ze)}Ie[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[ur[0]],r.title.text!==s._dfltTitle[f]&&(Ie[Re]+=KC(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Be={x:0,y:0,r:0,l:0,t:0,b:0},Be[ze]=r.linewidth,r.mirror&&r.mirror!==!0&&(Be[ze]+=He),r.mirror===!0||r.mirror==="ticks"?Be[c]=r._anchorAxis.domain[ur[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Be[c]=[r._counterDomainMin,r._counterDomainMax][ur[1]]))}Ne&&(se=mh.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&($C(Ie,r.automargin),$C(Be,r.automargin)),Jf.autoMargin(e,Kx(r),Ie),Jf.autoMargin(e,sE(r),Be),Jf.autoMargin(e,uE(r),se)}),xr.syncOrAsync(me)}};function $C(e,r){if(e){var t=Object.keys(VC).reduce(function(a,n){return r.indexOf(n)!==-1&&VC[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Cve(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(xr.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return $f(n+e._offset+e.l2p(Wx(v))+t,i+a)}:function(v){return $f(i+a,n+e._offset+e.l2p(Wx(v))+t)}};function Wx(e){return e.periodX!==void 0?e.periodX:e.x}function Pve(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=R1,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*vu,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=R1),s&&f==="top"&&(v-=d*(1-vu)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}Ye.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};Ye.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(z){return a.indexOf(z)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,y=v?e.ticklen:0;if(c?y*=-1:f&&(y=0),v&&(d+=y,t)){var m=xr.deg2rad(t);d=y*Math.cos(m)+1,p=y*Math.sin(m)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var x={labelStandoff:d,labelShift:p},w,_,b,T,k=0,M=e.side,q=e._id.charAt(0),E=e.tickangle,D;if(q==="x")D=!c&&M==="bottom"||c&&M==="top",T=D?1:-1,c&&(T*=-1),w=p*T,_=r+d*T,b=D?1:-.2,Math.abs(E)===90&&(c?b+=yh:E===-90&&M==="bottom"?b=vu:E===90&&M==="top"?b=yh:b=.5,k=yh/2*(E/90)),x.xFn=function(z){return z.dx+w+k*z.fontSize},x.yFn=function(z){return z.dy+_+z.fontSize*b},x.anchorFn=function(z,O){if(f){if(l)return"end";if(s)return"start"}return!sa(O)||O===0||O===180?"middle":O*T<0!==c?"end":"start"},x.heightFn=function(z,O,B){return O<-60||O>60?-.5*B:e.side==="top"!==c?-B:0};else if(q==="y"){if(D=!c&&M==="left"||c&&M==="right",T=D?1:-1,c&&(T*=-1),w=d,_=p*T,b=0,!c&&Math.abs(E)===90&&(E===-90&&M==="left"||E===90&&M==="right"?b=vu:b=.5),c){var P=sa(E)?+E:0;if(P!==0){var R=xr.deg2rad(P);k=Math.abs(Math.sin(R))*vu*T,b=0}}x.xFn=function(z){return z.dx+r-(w+z.fontSize*b)*T+k*z.fontSize},x.yFn=function(z){return z.dy+_+z.fontSize*yh},x.anchorFn=function(z,O){return sa(O)&&Math.abs(O)===90?"middle":D?"end":"start"},x.heightFn=function(z,O,B){return e.side==="right"&&(O*=-1),O<-30?-B:O<30?-.5*B:0}}return x};function N1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ye.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,N1);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return gh.stroke(di.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return Zn.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),z1(r,[QC]),i.attr("transform",t.transFn)};Ye.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(x){return x.minor}):[],o=r.showgrid?t.vals.filter(function(x){return!x.minor}):[],l=t.counterAxis;if(l&&Ye.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;p--){var y=p?v:d;if(y){var m=y.selectAll("path."+a).data(p?o:i,N1);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(x){return gh.stroke(di.select(this),x.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(x){return Zn.dashStyle(x.minor?r.minor.griddash:r.griddash,x.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(x){return(x.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&m.attr("d",t.path)}}z1(r,[Vx,Yx])}};Ye.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ye.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return fve(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(gh.stroke,r.zerolinecolor||gh.defaultLine).style("stroke-width",Zn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),z1(r,[Gx])};Ye.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(V){return V.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],N1),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(V){var X=di.select(this),Z=e._promises.length;X.call(fu.positionText,s.xFn(V),s.yFn(V)).call(Zn.font,{family:V.font,size:V.fontSize,color:V.fontColor,weight:V.fontWeight,style:V.fontStyle,variant:V.fontVariant,textcase:V.fontTextcase,lineposition:V.fontLineposition,shadow:V.fontShadow}).text(V.text).call(fu.convertToTspans,e),e._promises[Z]?v.push(e._promises.pop().then(function(){d(X,u)})):d(X,u)}),z1(r,[GC]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(V){di.select(this).select("text").call(fu.positionText,s.xFn(V),s.yFn(V))});function d(V,X){V.each(function(Z){var re=di.select(this),ce=re.select(".text-math-group"),oe=s.anchorFn(Z,X),fe=t.transFn.call(re.node(),Z)+(sa(X)&&+X!=0?" rotate("+X+","+s.xFn(Z)+","+(s.yFn(Z)-Z.fontSize/2)+")":""),K=fu.lineCount(re),Te=xh*Z.fontSize,le=s.heightFn(Z,sa(X)?+X:0,(K-1)*Te);if(le&&(fe+=$f(0,le)),ce.empty()){var pe=re.select("text");pe.attr({transform:fe,"text-anchor":oe}),pe.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ie=Zn.bBox(ce.node()).width,ve=ie*{end:-.5,start:.5}[oe];ce.attr("transform",fe+$f(ve,0))}})}r._adjustTickLabelsOverflow=function(){var V=r.ticklabeloverflow;if(!(!V||V==="allow")){var X=V.indexOf("hide")!==-1,Z=r._id.charAt(0)==="x",re=0,ce=Z?e._fullLayout.width:e._fullLayout.height;if(V.indexOf("domain")!==-1){var oe=xr.simpleMap(r.range,r.r2l);re=r.l2p(oe[0])+r._offset,ce=r.l2p(oe[1])+r._offset}var fe=Math.min(re,ce),K=Math.max(re,ce),Te=r.side,le=1/0,pe=-1/0;c.each(function(Q){var j=di.select(this),ye=j.select(".text-math-group");if(ye.empty()){var _e=Zn.bBox(j.node()),me=0;Z?(_e.right>K||_e.leftK||_e.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+oe._id]?j.style("display","none"):K.K==="tick"&&!fe&&j.node().style.display!=="none"&&j.style("display",null)})})})})},d(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var y=null;function m(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var V=0,X=[],Z,re=1;c.each(function(Ie){V=Math.max(V,Ie.fontSize);var Be=r.l2p(Ie.x),se=jx(this),Ae=Zn.bBox(se.node());re=Math.max(re,fu.lineCount(se)),X.push({top:0,bottom:10,height:10,left:Be-Ae.width/2,right:Be+Ae.width/2+2,width:Ae.width+2})});var ce=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,oe=l.length,fe=Math.abs((l[oe-1].x-l[0].x)*r._m)/(oe-1),K=ce?fe/2:fe,Te=ce?r.ticklen:V*1.25*re,le=Math.sqrt(Math.pow(K,2)+Math.pow(Te,2)),pe=K/le,ie=r.autotickangles.map(function(Ie){return Ie*Math.PI/180}),ve=ie.find(function(Ie){return Math.abs(Math.cos(Ie))<=pe});ve===void 0&&(ve=ie.reduce(function(Ie,Be){return Math.abs(Math.cos(Ie))Y*B&&(R=B,E[q]=D[q]=z[q])}var G=Math.abs(R-P);G-T>0?(G-=T,T*=1+T/G):T=0,r._id.charAt(0)!=="y"&&(T=-T),E[M]=_.p2r(_.r2p(D[M])+k*T),_.autorange==="min"||_.autorange==="max reversed"?(E[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(E[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=E}var U=xr.syncOrAsync(x);return U&&U.then&&e._promises.push(U),U};function Fve(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,N1);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(gh.stroke,r.dividercolor).style("stroke-width",Zn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ye.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function KC(e){var r=e.title.font.size,t=(e.title.text.match(fu.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(vu+t*xh):t?r*(t+1)*xh:r}function Nve(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(fu.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*vu:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(yh+l*xh));else{var s=wh(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ye.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,v=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(p={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var m=Zn.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,rve.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}Ye.shouldShowZeroLine=function(e,r,t){var a=xr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===P1)&&(lE(r,0)||!zve(e,r,t,a)||Ive(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return lE(e,t.x)})};function lE(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=lve:/%L/.test(r)?e>=ove:/%[SX]/.test(r)?e>=D1:/%M/.test(r)?e>=bh:/%[HI]/.test(r)?e>=Do:/%p/.test(r)?e>=es:/%[Aadejuwx]/.test(r)?e>=on:/%[UVW]/.test(r)?e>=Xn:/%[Bbm]/.test(r)?e>=E1:/%[q]/.test(r)?e>=C1:/%[Yy]/.test(r)?e>=L1:!0}});var vE=N((HDe,cE)=>{"use strict";cE.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var e5=N((UDe,hE)=>{"use strict";var Vve=vE();hE.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&(Vve(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var pE=N((GDe,dE)=>{var Yve={left:0,top:0};dE.exports=Wve;function Wve(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=jve(r);return t[0]=a-i.left,t[1]=n-i.top,t}function jve(e){return e===window||e===document||e===document.body?Yve:e.getBoundingClientRect()}});var r5=N((VDe,yE)=>{"use strict";var Zve=Nb();function Xve(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}yE.exports=Zve&&Xve()});var gE=N((YDe,mE)=>{"use strict";mE.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var _E=N((WDe,xE)=>{"use strict";var bE=Ce(),Jve=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];xE.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=bE.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=bE.constrain(Math.floor(t*3),0,2),Jve[t][r]}});var TE=N((jDe,wE)=>{"use strict";var $ve=oh(),Kve=Np(),Qve=$v().getGraphDiv,ehe=jv(),t5=wE.exports={};t5.wrapped=function(e,r,t){e=Qve(e),e._fullLayout&&Kve.clear(e._fullLayout._uid+ehe.HOVERID),t5.raw(e,r,t)};t5.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&$ve.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var pi=N((ZDe,SE)=>{"use strict";var rhe=pE(),a5=Ib(),the=r5(),ahe=Ce().removeElement,nhe=Ea(),hu=SE.exports={};hu.align=gE();hu.getCursor=_E();var ME=TE();hu.unhover=ME.wrapped;hu.unhoverRaw=ME.raw;hu.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,the?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(_,b,T){return Math.abs(_)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;c.target===v?b=c:(b={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(T=>{var k=c[T];!b[T]&&typeof k!="function"&&(b[T]=k)})),r.clickFn&&r.clickFn(a,b),d||v.dispatchEvent(new MouseEvent("click",_))}t._dragging=!1,t._dragged=!1}};function kE(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}hu.coverSlip=kE;function AE(e){return rhe(e.changedTouches?e.changedTouches[0]:e,document.body)}});var rs=N((XDe,qE)=>{"use strict";qE.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var EE=N((JDe,CE)=>{"use strict";var n5=rs(),Th="data-savedcursor",LE="!!";CE.exports=function(r,t){var a=r.attr(Th);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var i5=da(),ihe=si();DE.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:ihe.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:i5({editType:"legend"}),grouptitlefont:i5({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:i5({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var O1=N(I1=>{"use strict";I1.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};I1.isVertical=function(r){return r.orientation!=="h"};I1.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var u5=N((QDe,RE)=>{"use strict";var l5=gr(),Jn=Ce(),ohe=At(),lhe=gn(),she=o5(),uhe=Sf(),s5=O1();function fhe(e,r,t,a){var n=r[e]||{},i=ohe.newContainer(t,e);function o(G,U){return Jn.coerce(n,i,she,G,U)}var l=Jn.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var s=o("visible");if(s){for(var u,f=function(G,U){var V=u._input,X=u;return Jn.coerce(V,X,lhe,G,U)},c=t.font||{},v=Jn.coerceFont(o,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,y="normal",m=(t.shapes||[]).filter(function(G){return G.showlegend}),x=a.concat(m).filter(function(G){return e===(G.legend||"legend")}),w=0;w(e==="legend"?1:0));if(b===!1&&(t[e]=void 0),!(b===!1&&!n.uirevision)&&(o("uirevision",t.uirevision),b!==!1)){o("borderwidth");var T=o("orientation"),k=o("yref"),M=o("xref"),q=T==="h",E=k==="paper",D=M==="paper",P,R,z,O="left";q?(P=0,l5.getComponentMethod("rangeslider","isVisible")(r.xaxis)?E?(R=1.1,z="bottom"):(R=1,z="top"):E?(R=-.1,z="top"):(R=0,z="bottom")):(R=1,z="auto",D?P=1.02:(P=1,O="right")),Jn.coerce(n,i,{x:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:P}},"x"),Jn.coerce(n,i,{y:{valType:"number",editType:"legend",min:E?-2:0,max:E?3:1,dflt:R}},"y"),o("traceorder",y),s5.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",O),o("yanchor",z),o("maxheight"),o("valign"),Jn.noneOrAll(n,i,["x","y"]);var B=o("title.text");if(B){o("title.side",q?"left":"top");var Y=Jn.extendFlat({},l,{size:Jn.bigFont(l.size)});Jn.coerceFont(o,"title.font",Y)}}}}RE.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var ec=gr(),c5=Ce(),che=c5.pushUnique,f5=!0;PE.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,o=n.legend.itemdoubleclick,l=n.legend.groupclick;a===1&&i==="toggle"&&o==="toggleothers"&&f5&&t.data&&t._context.showTips&&c5.notifier(c5._(t,"Double-click on legend to isolate one trace"),"long"),f5=!1;var s;if(a===1?s=i:a===2&&(s=o),!s)return;var u=l==="togglegroup",f=n.hiddenlabels?n.hiddenlabels.slice():[],c=r.data()[0][0];if(c.groupTitle&&c.noClick)return;var v=t._fullData,d=(n.shapes||[]).filter(function(ze){return ze.showlegend}),p=v.concat(d),y=c.trace;y._isShape&&(y=y._fullInput);var m=y.legendgroup,x,w,_,b,T,k,M={},q=[],E=[],D=[];function P(ze,Ge){var He=q.indexOf(ze),Ee=M.visible;return Ee||(Ee=M.visible=[]),q.indexOf(ze)===-1&&(q.push(ze),He=q.length-1),Ee[He]=Ge,He}var R=(n.shapes||[]).map(function(ze){return ze._input}),z=!1;function O(ze,Ge){R[ze].visible=Ge,z=!0}function B(ze,Ge){if(!(c.groupTitle&&!u)){var He=ze._fullInput||ze,Ee=He._isShape,Ie=He.index;Ie===void 0&&(Ie=He._index);var Be=He.visible===!1?!1:Ge;Ee?O(Ie,Be):P(Ie,Be)}}var Y=y.legend,G=y._fullInput,U=G&&G._isShape;if(!U&&ec.traceIs(y,"pie-like")){var V=c.label,X=f.indexOf(V);if(s==="toggle")X===-1?f.push(V):f.splice(X,1);else if(s==="toggleothers"){var Z=X!==-1,re=[];for(x=0;x{"use strict";NE.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var OE=N((tRe,IE)=>{"use strict";var zE=gr(),h5=O1();IE.exports=function(r,t,a){var n=t._inHover,i=h5.isGrouped(t),o=h5.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function y(G,U,V){if(t.visible!==!1&&!(a&&G!==t._id))if(U===""||!h5.isGrouped(t)){var X="~~i"+c;s.push(X),l[X]=[V],c++}else s.indexOf(U)===-1?(s.push(U),u=!0,l[U]=[V]):l[U].push(V)}for(d=0;dD&&(E=D)}M[d][0]._groupMinRank=E,M[d][0]._preGroupSort=d}var P=function(G,U){return G[0]._groupMinRank-U[0]._groupMinRank||G[0]._preGroupSort-U[0]._preGroupSort},R=function(G,U){return G.trace.legendrank-U.trace.legendrank||G._preSort-U._preSort};for(M.forEach(function(G,U){G[0]._preGroupSort=U}),M.sort(P),d=0;d{"use strict";var B1=Ce();function BE(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}du.formatPiePercent=function(r,t){var a=BE((r*100).toPrecision(3));return B1.numSeparate(a,t)+"%"};du.formatPieValue=function(r,t){var a=BE(r.toPrecision(10));return B1.numSeparate(a,t)};du.getFirstFilled=function(r,t){if(B1.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var vhe=Wr(),hhe=Tr();HE.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?vhe.pointStyle(r,a,n,t):hhe.fill(r,t.color)}});var U1=N((iRe,YE)=>{"use strict";var GE=Tr(),VE=H1().castOption,dhe=UE();YE.exports=function(r,t,a,n){var i=a.marker.line,o=VE(i.color,t.pts)||GE.defaultLine,l=VE(i.width,t.pts)||0;r.call(dhe,t,a,n).style("stroke-width",l).call(GE.stroke,o)}});var m5=N((oRe,$E)=>{"use strict";var ln=Sr(),d5=gr(),$a=Ce(),WE=$a.strTranslate,$n=Wr(),yi=Tr(),p5=jn().extractOpts,G1=Rn(),phe=U1(),yhe=H1().castOption,mhe=v5(),jE=12,ZE=5,pu=2,ghe=10,rc=5;$E.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+mhe.itemGap*2)/2,s=WE(l,0),u=function(M,q,E,D){var P;if(M+1)P=M;else if(q&&q.width>0)P=q.width;else return 0;return i?D:Math.min(P,E)};r.each(function(M){var q=ln.select(this),E=$a.ensureSingle(q,"g","layers");E.style("opacity",M[0].trace.opacity);var D=a.indentation,P=a.valign,R=M[0].lineHeight,z=M[0].height;if(P==="middle"&&D===0||!R||!z)E.attr("transform",null);else{var O={top:1,bottom:-1}[P],B=O*(.5*(R-z+3))||0,Y=a.indentation;E.attr("transform",WE(Y,B))}var G=E.selectAll("g.legendfill").data([M]);G.enter().append("g").classed("legendfill",!0);var U=E.selectAll("g.legendlines").data([M]);U.enter().append("g").classed("legendlines",!0);var V=E.selectAll("g.legendsymbols").data([M]);V.enter().append("g").classed("legendsymbols",!0),V.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(v).each(p).each(d).each(m).each(b).each(_).each(f).each(c).each(x).each(w);function f(M){var q=XE(M),E=q.showFill,D=q.showLine,P=q.showGradientLine,R=q.showGradientFill,z=q.anyFill,O=q.anyLine,B=M[0],Y=B.trace,G,U,V=p5(Y),X=V.colorscale,Z=V.reversescale,re=function(pe){if(pe.size())if(E)$n.fillGroupStyle(pe,t,!0);else{var ie="legendfill-"+Y.uid;$n.gradient(pe,t,ie,y5(Z),X,"fill")}},ce=function(pe){if(pe.size()){var ie="legendline-"+Y.uid;$n.lineGroupStyle(pe),$n.gradient(pe,t,ie,y5(Z),X,"stroke")}},oe=G1.hasMarkers(Y)||!z?"M5,0":O?"M5,-2":"M5,-3",fe=ln.select(this),K=fe.select(".legendfill").selectAll("path").data(E||R?[M]:[]);if(K.enter().append("path").classed("js-fill",!0),K.exit().remove(),K.attr("d",oe+"h"+o+"v6h-"+o+"z").call(re),D||P){var Te=u(void 0,Y.line,ghe,ZE);U=$a.minExtend(Y,{line:{width:Te}}),G=[$a.minExtend(B,{trace:U})]}var le=fe.select(".legendlines").selectAll("path").data(D||P?[G]:[]);le.enter().append("path").classed("js-line",!0),le.exit().remove(),le.attr("d",oe+(P?"l"+o+",0.0001":"h"+o)).call(D?$n.lineGroupStyle:ce)}function c(M){var q=XE(M),E=q.anyFill,D=q.anyLine,P=q.showLine,R=q.showMarker,z=M[0],O=z.trace,B=!R&&!D&&!E&&G1.hasText(O),Y,G;function U(K,Te,le,pe){var ie=$a.nestedProperty(O,K).get(),ve=$a.isArrayOrTypedArray(ie)&&Te?Te(ie):ie;if(i&&ve&&pe!==void 0&&(ve=pe),le){if(vele[1])return le[1]}return ve}function V(K){return z._distinct&&z.index&&K[z.index]?K[z.index]:K[0]}if(R||B||P){var X={},Z={};if(R){X.mc=U("marker.color",V),X.mx=U("marker.symbol",V),X.mo=U("marker.opacity",$a.mean,[.2,1]),X.mlc=U("marker.line.color",V),X.mlw=U("marker.line.width",$a.mean,[0,5],pu),Z.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var re=U("marker.size",$a.mean,[2,16],jE);X.ms=re,Z.marker.size=re}P&&(Z.line={width:U("line.width",V,[0,10],ZE)}),B&&(X.tx="Aa",X.tp=U("textposition",V),X.ts=10,X.tc=U("textfont.color",V),X.tf=U("textfont.family",V),X.tw=U("textfont.weight",V),X.ty=U("textfont.style",V),X.tv=U("textfont.variant",V),X.tC=U("textfont.textcase",V),X.tE=U("textfont.lineposition",V),X.tS=U("textfont.shadow",V)),Y=[$a.minExtend(z,X)],G=$a.minExtend(O,Z),G.selectedpoints=null,G.texttemplate=null}var ce=ln.select(this).select("g.legendpoints"),oe=ce.selectAll("path.scatterpts").data(R?Y:[]);oe.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),oe.exit().remove(),oe.call($n.pointStyle,G,t),R&&(Y[0].mrc=3);var fe=ce.selectAll("g.pointtext").data(B?Y:[]);fe.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),fe.exit().remove(),fe.selectAll("text").call($n.textPointStyle,G,t)}function v(M){var q=M[0].trace,E=q.type==="waterfall";if(M[0]._distinct&&E){var D=M[0].trace[M[0].dir].marker;return M[0].mc=D.color,M[0].mlw=D.line.width,M[0].mlc=D.line.color,y(M,this,"waterfall")}var P=[];q.visible&&E&&(P=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=ln.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(P);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(z){var O=ln.select(this),B=q[z[0]].marker,Y=u(void 0,B.line,rc,pu);O.attr("d",z[1]).style("stroke-width",Y+"px").call(yi.fill,B.color),Y&&O.call(yi.stroke,B.line.color)})}function d(M){y(M,this)}function p(M){y(M,this,"funnel")}function y(M,q,E){var D=M[0].trace,P=D.marker||{},R=P.line||{},z=P.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",O=E?D.visible&&D.type===E:d5.traceIs(D,"bar"),B=ln.select(q).select("g.legendpoints").selectAll("path.legend"+E).data(O?[M]:[]);B.enter().append("path").classed("legend"+E,!0).attr("d",z).attr("transform",s),B.exit().remove(),B.each(function(Y){var G=ln.select(this),U=Y[0],V=u(U.mlw,P.line,rc,pu);G.style("stroke-width",V+"px");var X=U.mcc;if(!a._inHover&&"mc"in U){var Z=p5(P),re=Z.mid;re===void 0&&(re=(Z.max+Z.min)/2),X=$n.tryColorscale(P,"")(re)}var ce=X||U.mc||P.color,oe=P.pattern,fe=$n.getPatternAttr,K=oe&&(fe(oe.shape,0,"")||fe(oe.path,0,""));if(K){var Te=fe(oe.bgcolor,0,null),le=fe(oe.fgcolor,0,null),pe=oe.fgopacity,ie=JE(oe.size,8,10),ve=JE(oe.solidity,.5,1),W="legend-"+D.uid;G.call($n.pattern,"legend",t,W,K,ie,ve,X,oe.fillmode,Te,le,pe)}else G.call(yi.fill,ce);V&&yi.stroke(G,U.mlc||R.color)})}function m(M){var q=M[0].trace,E=ln.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&d5.traceIs(q,"box-violin")?[M]:[]);E.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),E.exit().remove(),E.each(function(){var D=ln.select(this);if((q.boxpoints==="all"||q.points==="all")&&yi.opacity(q.fillcolor)===0&&yi.opacity((q.line||{}).color)===0){var P=$a.minExtend(q,{marker:{size:i?jE:$a.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});E.call($n.pointStyle,P,t)}else{var R=u(void 0,q.line,rc,pu);D.style("stroke-width",R+"px").call(yi.fill,q.fillcolor),R&&yi.stroke(D,q.line.color)}})}function x(M){var q=M[0].trace,E=ln.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.type==="candlestick"?[M,M]:[]);E.enter().append("path").classed("legendcandle",!0).attr("d",function(D,P){return P?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(D,P){var R=ln.select(this),z=q[P?"increasing":"decreasing"],O=u(void 0,z.line,rc,pu);R.style("stroke-width",O+"px").call(yi.fill,z.fillcolor),O&&yi.stroke(R,z.line.color)})}function w(M){var q=M[0].trace,E=ln.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.type==="ohlc"?[M,M]:[]);E.enter().append("path").classed("legendohlc",!0).attr("d",function(D,P){return P?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(D,P){var R=ln.select(this),z=q[P?"increasing":"decreasing"],O=u(void 0,z.line,rc,pu);R.style("fill","none").call($n.dashLine,z.line.dash,O),O&&yi.stroke(R,z.line.color)})}function _(M){T(M,this,"pie")}function b(M){T(M,this,"funnelarea")}function T(M,q,E){var D=M[0],P=D.trace,R=E?P.visible&&P.type===E:d5.traceIs(P,E),z=ln.select(q).select("g.legendpoints").selectAll("path.legend"+E).data(R?[M]:[]);if(z.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),z.exit().remove(),z.size()){var O=P.marker||{},B=u(yhe(O.line.width,D.pts),O.line,rc,pu),Y="pieLike",G=$a.minExtend(P,{marker:{line:{width:B}}},Y),U=$a.minExtend(D,{trace:G},Y);phe(z,U,G,t)}}function k(M){var q=M[0].trace,E,D=[];if(q.visible)switch(q.type){case"histogram2d":case"heatmap":D=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":D=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymapbox":case"densitymap":D=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":D=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],E=!1;break;case"streamtube":D=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],E=!1;break;case"surface":D=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],E=!0;break;case"mesh3d":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1;break}var P=ln.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(D);P.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,z){var O=ln.select(this),B=p5(q),Y=B.colorscale,G=B.reversescale,U=function(re){if(re.size()){var ce="legendfill-"+q.uid;$n.gradient(re,t,ce,y5(G,E==="radial"),Y,"fill")}},V;if(Y){if(!E){var Z=Y.length;V=z===0?Y[G?Z-1:0][1]:z===1?Y[G?0:Z-1][1]:Y[Math.floor((Z-1)/2)][1]}}else{var X=q.vertexcolor||q.facecolor||q.color;V=$a.isArrayOrTypedArray(X)?X[z]||X[0]:X}O.attr("d",R[0]),V?O.call(yi.fill,V):O.call(U)})}};function y5(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function XE(e){var r=e[0].trace,t=r.contours,a=G1.hasLines(r),n=G1.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function JE(e,r,t){return e&&$a.isArrayOrTypedArray(e)?r:e>t?t:e}});var _5=N((lRe,lD)=>{"use strict";var Pn=Sr(),ua=Ce(),b5=aa(),nc=gr(),KE=oh(),g5=pi(),fa=Wr(),Y1=Tr(),yu=Da(),QE=FE(),ya=v5(),x5=Xa(),iD=x5.LINE_SPACING,ac=x5.FROM_TL,eD=x5.FROM_BR,rD=OE(),bhe=m5(),tD=O1(),tc=1,xhe=/^legend[0-9]*$/;lD.exports=function(r,t){if(t)aD(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Pn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(xhe)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),b5.autoMargin(e,n);var y=ua.ensureSingle(o,"g",n,function(q){l||q.attr("pointer-events","all")}),m=ua.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),x=ua.ensureSingle(y,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});x.call(Y1.stroke,t.bordercolor).call(Y1.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var w=ua.ensureSingle(y,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var b;_.text?(b=ua.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(fa.font,_.font).text(_.text),W1(b,w,e,t,tc)):w.selectAll("."+n+"titletext").remove();var T=ua.ensureSingle(y,"rect","scrollbar",function(q){q.attr(ya.scrollBarEnterAttrs).call(Y1.fill,ya.scrollBarColor)}),k=w.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(ua.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(q){var E=q[0].trace;return nc.traceIs(E,"pie-like")?p.indexOf(q[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){Pn.select(this).call(whe,e,t)}).call(bhe,e,t).each(function(){l||Pn.select(this).call(The,e,n)}),ua.syncOrAsync([b5.previousPromises,function(){return khe(e,k,M,t)},function(){var q=a._size,E=t.borderwidth,D=t.xref==="paper",P=t.yref==="paper";if(_.text&&_he(b,t,E),!l){var R,z;D?R=q.l+q.w*t.x-ac[j1(t)]*t._width:R=a.width*t.x-ac[j1(t)]*t._width,P?z=q.t+q.h*(1-t.y)-ac[Z1(t)]*t._effHeight:z=a.height*(1-t.y)-ac[Z1(t)]*t._effHeight;var O=She(e,n,R,z);if(O)return;if(a.margin.autoexpand){var B=R,Y=z;R=D?ua.constrain(R,0,a.width-t._width):B,z=P?ua.constrain(z,0,a.height-t._effHeight):Y,R!==B&&ua.log("Constrain "+n+".x to make legend fit inside graph"),z!==Y&&ua.log("Constrain "+n+".y to make legend fit inside graph")}fa.setTranslate(y,R,z)}if(T.on(".drag",null),y.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var G=t._effHeight;l&&(G=t._height),x.attr({width:t._width-E,height:G-E,x:E/2,y:E/2}),fa.setTranslate(w,0,0),m.select("rect").attr({width:t._width-2*E,height:G-2*E,x:E,y:E}),fa.setClipUrl(w,i,e),fa.setRect(T,0,0,0,0),delete t._scrollY}else{var U=Math.max(ya.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),V=t._effHeight-U-2*ya.scrollBarMargin,X=t._height-t._effHeight,Z=V/X,re=Math.min(t._scrollY||0,X);x.attr({width:t._width-2*E+ya.scrollBarWidth+ya.scrollBarMargin,height:t._effHeight-E,x:E/2,y:E/2}),m.select("rect").attr({width:t._width-2*E+ya.scrollBarWidth+ya.scrollBarMargin,height:t._effHeight-2*E,x:E,y:E+re}),fa.setClipUrl(w,i,e),ie(re,U,Z),y.on("wheel",function(){re=ua.constrain(t._scrollY+Pn.event.deltaY/V*X,0,X),ie(re,U,Z),re!==0&&re!==X&&Pn.event.preventDefault()});var ce,oe,fe,K=function(ye,_e,me){var Pe=(me-_e)/Z+ye;return ua.constrain(Pe,0,X)},Te=function(ye,_e,me){var Pe=(_e-me)/Z+ye;return ua.constrain(Pe,0,X)},le=Pn.behavior.drag().on("dragstart",function(){var ye=Pn.event.sourceEvent;ye.type==="touchstart"?ce=ye.changedTouches[0].clientY:ce=ye.clientY,fe=re}).on("drag",function(){var ye=Pn.event.sourceEvent;ye.buttons===2||ye.ctrlKey||(ye.type==="touchmove"?oe=ye.changedTouches[0].clientY:oe=ye.clientY,re=K(fe,ce,oe),ie(re,U,Z))});T.call(le);var pe=Pn.behavior.drag().on("dragstart",function(){var ye=Pn.event.sourceEvent;ye.type==="touchstart"&&(ce=ye.changedTouches[0].clientY,fe=re)}).on("drag",function(){var ye=Pn.event.sourceEvent;ye.type==="touchmove"&&(oe=ye.changedTouches[0].clientY,re=Te(fe,ce,oe),ie(re,U,Z))});w.call(pe)}function ie(ye,_e,me){t._scrollY=e._fullLayout[n]._scrollY=ye,fa.setTranslate(w,0,-ye),fa.setRect(T,t._width,ya.scrollBarMargin+ye*me,ya.scrollBarWidth,_e),m.select("rect").attr("y",E+ye)}if(e._context.edits.legendPosition){var ve,W,Q,j;y.classed("cursor-move",!0),g5.init({element:y.node(),gd:e,prepFn:function(ye){if(ye.target!==T.node()){var _e=fa.getTranslate(y);Q=_e.x,j=_e.y}},moveFn:function(ye,_e){if(Q!==void 0&&j!==void 0){var me=Q+ye,Pe=j+_e;fa.setTranslate(y,me,Pe),ve=g5.align(me,t._width,q.l,q.l+q.w,t.xanchor),W=g5.align(Pe+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(ve!==void 0&&W!==void 0){var ye={};ye[n+".x"]=ve,ye[n+".y"]=W,nc.call("_guiRelayout",e,ye)}},clickFn:function(ye,_e){var me=o.selectAll("g.traces").filter(function(){var Pe=this.getBoundingClientRect();return _e.clientX>=Pe.left&&_e.clientX<=Pe.right&&_e.clientY>=Pe.top&&_e.clientY<=Pe.bottom});me.size()>0&&oD(e,y,me,ye,_e)}})}}],e)}}function V1(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function oD(e,r,t,a,n){var i=t.data()[0][0].trace,o={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(o.group=i._group),nc.traceIs(i,"pie-like")&&(o.label=t.datum()[0].label);var l=KE.triggerHandler(e,"plotly_legendclick",o);if(a===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&QE(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=KE.triggerHandler(e,"plotly_legenddoubleclick",o);s!==!1&&l!==!1&&QE(t,e,a)}}function whe(e,r,t){var a=X1(t),n=e.data()[0][0],i=n.trace,o=nc.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=ua.templateString(u,i._meta))));var c=ua.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(fa.font,f).text(l?nD(u,s):u);var v=t.indentation+t.itemwidth+ya.itemGap*2;yu.positionText(c,v,0),l?c.call(yu.makeEditable,{gd:r,text:u}).call(W1,e,r,t).on("edit",function(d){this.text(nD(d,s)).call(W1,e,r,t);var p=n.trace._fullInput||{},y={};return y.name=d,p._isShape?nc.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):nc.call("_guiRestyle",r,y,i.index)}):W1(c,e,r,t)}function nD(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function The(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=ua.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Y1.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),oD(r,l,e,i,Pn.event)}}))}function W1(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),yu.convertToTspans(e,t,function(){Ahe(r,t,a,n)})}function Ahe(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),o=i.node(),l=X1(t);t||(t=r._fullLayout[l]);var s=t.borderwidth,u;a===tc?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var f=u.size*iD,c,v;if(o){var d=fa.bBox(o);c=d.height,v=d.width,a===tc?fa.setTranslate(i,s,s+c*.75):fa.setTranslate(i,0,c*.25)}else{var p="."+l+(a===tc?"title":"")+"text",y=e.select(p),m=yu.lineCount(y),x=y.node();if(c=f*m,v=x?fa.bBox(x).width:0,a===tc)t.title.side==="left"&&(v+=ya.itemGap*2),yu.positionText(y,s+ya.titlePad,s+f);else{var w=ya.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=ya.itemGap,v-=t.indentation+t.itemwidth),yu.positionText(y,w,-f*((m-1)/2-.3))}}a===tc?(t._titleWidth=v,t._titleHeight=c):(n.lineHeight=f,n.height=Math.max(c,16)+3,n.width=v)}function Mhe(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function khe(e,r,t,a){var n=e._fullLayout,i=X1(a);a||(a=n[i]);var o=n._size,l=tD.isVertical(a),s=tD.isGrouped(a),u=a.entrywidthmode==="fraction",f=a.borderwidth,c=2*f,v=ya.itemGap,d=a.indentation+a.itemwidth+v*2,p=2*(f+v),y=Z1(a),m=a.y<0||a.y===0&&y==="top",x=a.y>1||a.y===1&&y==="bottom",w=a.tracegroupgap,_={};let{orientation:b,yref:T}=a,{maxheight:k}=a,M=m||x||b!=="v"||T!=="paper";k||(k=M?.5:1);let q=M?n.height:o.h;a._maxHeight=Math.max(k>1?k:k*q,30);var E=0;a._width=0,a._height=0;var D=Mhe(a);if(l)t.each(function(ie){var ve=ie[0].height;fa.setTranslate(this,f+D[0],f+D[1]+a._height+ve/2+v),a._height+=ve,a._width=Math.max(a._width,ie[0].width)}),E=d+a._width,a._width+=v+d+c,a._height+=p,s&&(r.each(function(ie,ve){fa.setTranslate(this,0,ve*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var P=j1(a),R=a.x<0||a.x===0&&P==="right",z=a.x>1||a.x===1&&P==="left",O=x||m,B=n.width/2;a._maxWidth=Math.max(R?O&&P==="left"?o.l+o.w:B:z?O&&P==="right"?o.r+o.w:B:o.w,2*d);var Y=0,G=0;t.each(function(ie){var ve=V1(ie,a,d);Y=Math.max(Y,ve),G+=ve}),E=null;var U=0;if(s){var V=0,X=0,Z=0;r.each(function(){var ie=0,ve=0;Pn.select(this).selectAll("g.traces").each(function(Q){var j=V1(Q,a,d),ye=Q[0].height;fa.setTranslate(this,D[0],D[1]+f+v+ye/2+ve),ve+=ye,ie=Math.max(ie,j),_[Q[0].trace.legendgroup]=ie});var W=ie+v;X>0&&W+f+X>a._maxWidth?(U=Math.max(U,X),X=0,Z+=V+w,V=ve):V=Math.max(V,ve),fa.setTranslate(this,X,Z),X+=W}),a._width=Math.max(U,X)+f,a._height=Z+V+p}else{var re=t.size(),ce=G+c+(re-1)*v=a._maxWidth&&(U=Math.max(U,Te),fe=0,K+=oe,a._height+=oe,oe=0),fa.setTranslate(this,D[0]+f+fe,D[1]+f+K+ve/2+v),Te=fe+W+v,fe+=Q,oe=Math.max(oe,ve)}),ce?(a._width=fe+c,a._height=oe+p):(a._width=Math.max(U,Te)+c,a._height+=oe+p)}}a._width=Math.ceil(Math.max(a._width+D[0],a._titleWidth+2*(f+ya.titlePad))),a._height=Math.ceil(Math.max(a._height+D[1],a._titleHeight+2*(f+ya.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var le=e._context.edits,pe=le.legendText||le.legendPosition;t.each(function(ie){var ve=Pn.select(this).select("."+i+"toggle"),W=ie[0].height,Q=ie[0].trace.legendgroup,j=V1(ie,a,d);s&&Q!==""&&(j=_[Q]);var ye=pe?d:E||j;!l&&!u&&(ye+=v/2),fa.setRect(ve,0,-W/2,ye,W)})}function She(e,r,t,a){var n=e._fullLayout,i=n[r],o=j1(i),l=Z1(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return b5.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*ac[o],r:i._width*eD[o],b:i._effHeight*eD[l],t:i._effHeight*ac[l]});s?e._fullLayout._reservedMargin[r][f]=v[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][f]=v[f]}function j1(e){return ua.isRightAnchor(e)?"right":ua.isCenterAnchor(e)?"center":"left"}function Z1(e){return ua.isBottomAnchor(e)?"bottom":ua.isMiddleAnchor(e)?"middle":"top"}function X1(e){return e._id||"legend"}});var M5=N(A5=>{"use strict";var mu=Sr(),cl=Rr(),sD=Sn(),Ut=Ce(),qhe=Ut.pushUnique,w5=Ut.strTranslate,Lhe=Ut.strRotate,Che=oh(),mi=Da(),Ehe=EE(),Ro=Wr(),Ma=Tr(),J1=pi(),Po=Ir(),Dhe=Ea().zindexSeparator,oc=gr(),ao=qo(),gu=jv(),Rhe=u5(),Phe=_5(),yD=gu.YANGLE,T5=Math.PI*yD/180,Fhe=1/Math.sin(T5),Nhe=Math.cos(T5),zhe=Math.sin(T5),Dt=gu.HOVERARROWSIZE,Vr=gu.HOVERTEXTPAD,uD={box:!0,ohlc:!0,violin:!0,candlestick:!0},Ihe={scatter:!0,scattergl:!0,splom:!0};function fD(e,r){return e.distance-r.distance}A5.hover=function(r,t,a,n){r=Ut.getGraphDiv(r);var i=t.target;Ut.throttle(r._fullLayout._uid+gu.HOVERID,gu.HOVERMINTIME,function(){Ohe(r,t,a,n,i)})};A5.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=_D(n),o=wD(n),l=r.map(function(m){var x=m._x0||m.x0||m.x||0,w=m._x1||m.x1||m.x||0,_=m._y0||m.y0||m.y||0,b=m._y1||m.y1||m.y||0,T=m.eventData;if(T){var k=Math.min(x,w),M=Math.max(x,w),q=Math.min(_,b),E=Math.max(_,b),D=m.trace;if(oc.traceIs(D,"gl3d")){var P=n._fullLayout[D.scene]._scene.container,R=P.offsetLeft,z=P.offsetTop;k+=R,M+=R,q+=z,E+=z}T.bbox={x0:k+o,x1:M+o,y0:q+i,y1:E+i},t.inOut_bbox&&t.inOut_bbox.push(T.bbox)}else T=!1;return{color:m.color||Ma.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:T}}),s=!1,u=gD(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Ma.background,container:mu.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,v=0,d=0;f.sort(function(m,x){return m.y0-x.y0}).each(function(m,x){var w=m.y0-m.by/2;w-cM[0]._length||j<0||j>q[0]._length)return J1.unhoverRaw(e,r)}if(r.pointerX=Q+M[0]._offset,r.pointerY=j+q[0]._offset,"xval"in r?Y=ao.flat(i,r.xval):Y=ao.p2c(M,Q),"yval"in r?G=ao.flat(i,r.yval):G=ao.p2c(q,j),!cl(Y[0])||!cl(G[0]))return Ut.warn("Fx.hover failed",r,e),J1.unhoverRaw(e,r)}var me=1/0;function Pe(br,yt){for(V=0;Vle&&(O.splice(0,le),me=O[0].distance),c&&z!==0&&O.length===0){Te.distance=z,Te.index=!1;var ct=Z._module.hoverPoints(Te,fe,K,"closest",{hoverLayer:l._hoverlayer});if(ct&&(ct=ct.filter(function(ft){return ft.spikeDistance<=z})),ct&&ct.length){var xa,$t=ct.filter(function(ft){return ft.xa.showspikes&&ft.xa.spikesnap!=="hovered data"});if($t.length){var tn=$t[0];cl(tn.x0)&&cl(tn.y0)&&(xa=Re(tn),(!pe.vLinePoint||pe.vLinePoint.spikeDistance>xa.spikeDistance)&&(pe.vLinePoint=xa))}var Tn=ct.filter(function(ft){return ft.ya.showspikes&&ft.ya.spikesnap!=="hovered data"});if(Tn.length){var Kt=Tn[0];cl(Kt.x0)&&cl(Kt.y0)&&(xa=Re(Kt),(!pe.hLinePoint||pe.hLinePoint.spikeDistance>xa.spikeDistance)&&(pe.hLinePoint=xa))}}}}}Pe();function Ne(br,yt,Nr){for(var ut=null,Pt=1/0,Qr,ct=0;ct0&&Math.abs(br.distance)qe-1;$e--)hr(O[$e]);O=Ue,Ee()}var Fe=e._hoverdata,ne=[],de=_D(e),De=wD(e);for(U=0;U1||O.length>1)||v==="closest"&&ie&&O.length>1,Xt=Ma.combine(l.plot_bgcolor||Ma.background,l.paper_bgcolor),Jt=gD(O,{gd:e,hovermode:v,rotateLabels:pt,bgColor:Xt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),It=Jt.hoverLabels;if(ao.isUnifiedHover(v)||(Hhe(It,pt,l,Jt.commonLabelBoundingBox),xD(It,pt,l._invScaleX,l._invScaleY)),n&&n.tagName){var za=oc.getComponentMethod("annotations","hasClickToShow")(e,ne);Ehe(mu.select(n),za?"pointer":"")}!n||a||!Vhe(e,r,Fe)||(Fe&&e.emit("plotly_unhover",{event:r,points:Fe}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:q,xvals:Y,yvals:G}))}function mD(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Bhe=/([\s\S]*)<\/extra>/;function gD(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||gu.HOVERFONT,c=r.fontSize||gu.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,x=r.fontShadow||a.font.shadow,w=e[0],_=w.xa,b=w.ya,T=n.charAt(0),k=T+"Label",M=w[k];if(M===void 0&&_.type==="multicategory")for(var q=0;qa.width-De&&(Le=a.width-De),qe.attr("d","M"+(Fe-Le)+",0L"+(Fe-Le+Dt)+","+de+Dt+"H"+De+"v"+de+(Vr*2+$e.height)+"H"+-De+"V"+de+Dt+"H"+(Fe-Le-Dt)+"Z"),Fe=Le,V.minX=Fe-De,V.maxX=Fe+De,_.side==="top"?(V.minY=ne-(Vr*2+$e.height),V.maxY=ne-Vr):(V.minY=ne+Vr,V.maxY=ne+(Vr*2+$e.height))}else{var ar,sr,nr;b.side==="right"?(ar="start",sr=1,nr="",Fe=_._offset+_._length):(ar="end",sr=-1,nr="-",Fe=_._offset),ne=b._offset+(w.y0+w.y1)/2,Oe.attr("text-anchor",ar),qe.attr("d","M0,0L"+nr+Dt+","+Dt+"V"+(Vr+$e.height/2)+"h"+nr+(Vr*2+$e.width)+"V-"+(Vr+$e.height/2)+"H"+nr+Dt+"V-"+Dt+"Z"),V.minY=ne-(Vr+$e.height/2),V.maxY=ne+(Vr+$e.height/2),b.side==="right"?(V.minX=Fe+Dt,V.maxX=Fe+Dt+(Vr*2+$e.width)):(V.minX=Fe-Dt-(Vr*2+$e.width),V.maxX=Fe-Dt);var Mr=$e.height/2,Or=D-$e.top-Mr,Zr="clip"+a._uid+"commonlabel"+b._id,Yr;if(Fe<$e.width+2*Vr+Dt){Yr="M-"+(Dt+Vr)+"-"+Mr+"h-"+($e.width-Vr)+"V"+Mr+"h"+($e.width-Vr)+"Z";var Vt=$e.width-Fe+Vr;mi.positionText(Oe,Vt,Or),ar==="end"&&Oe.selectAll("tspan").each(function(){var Tt=mu.select(this),pt=Ro.tester.append("text").text(Tt.text()).call(Ro.font,hr),Xt=ic(t,pt.node());Math.round(Xt.width)=0?je=Ie:Be+me=0?je=Be:se+me=0?ur=He:Ee+Pe=0?ur=Ee:Ae+Pe=0,(ue.idealAlign==="top"||!Tt)&&pt?(nr-=Or/2,ue.anchor="end"):Tt?(nr+=Or/2,ue.anchor="start"):ue.anchor="middle",ue.crossPos=nr;else{if(ue.pos=nr,Tt=sr+Mr/2+wt<=P,pt=sr-Mr/2-wt>=0,(ue.idealAlign==="left"||!Tt)&&pt)sr-=Mr/2,ue.anchor="end";else if(Tt)sr+=Mr/2,ue.anchor="start";else{ue.anchor="middle";var Xt=wt/2,Jt=sr+Xt-P,It=sr-Xt;Jt>0&&(sr-=Jt),It<0&&(sr+=-It)}ue.crossPos=sr}ne.attr("text-anchor",ue.anchor),De&&de.attr("text-anchor",ue.anchor),qe.attr("transform",w5(sr,nr)+(i?Lhe(yD):""))}),{hoverLabels:lr,commonLabelBoundingBox:V}}function cD(e,r,t,a,n,i){var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ut.templateString(e.name,e.trace._meta)),o=dD(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o);var f=e.hovertemplate||!1;if(f){var c=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(c[s+"other"]=c[s+"Val"],c[s+"otherLabel"]=c[s+"Label"]),l=Ut.hovertemplateString(f,c,a._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(Bhe,function(v,d){return o=dD(d,e.nameLength),""})}return[l,o]}function Hhe(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,y=function(Y){return Y*t._invScaleX},m=function(Y){return Y*t._invScaleY};e.each(function(Y){var G=Y[n],U=Y[i],V=G._id.charAt(0)==="x",X=G.range;f===0&&X&&X[0]>X[1]!==V&&(l=-1);var Z=0,re=V?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var ce=bD(Y,r),oe=Y.anchor,fe=oe==="end"?-1:1,K,Te;if(oe==="middle")K=Y.crossPos+(V?m(ce.y-Y.by/2):y(Y.bx/2+Y.tx2width/2)),Te=K+(V?m(Y.by):y(Y.bx));else if(V)K=Y.crossPos+m(Dt+ce.y)-m(Y.by/2-Dt),Te=K+m(Y.by);else{var le=y(fe*Dt+ce.x),pe=le+y(fe*Y.bx);K=Y.crossPos+Math.min(le,pe),Te=Y.crossPos+Math.max(le,pe)}V?d!==void 0&&p!==void 0&&Math.min(Te,p)-Math.max(K,d)>1&&(U.side==="left"?(Z=U._mainLinePosition,re=t.width):re=U._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(Te,v)-Math.max(K,c)>1&&(U.side==="top"?(Z=U._mainLinePosition,re=t.height):re=U._mainLinePosition)}u[f++]=[{datum:Y,traceIndex:Y.trace.index,dp:0,pos:Y.pos,posref:Y.posref,size:Y.by*(V?Fhe:1)/2,pmin:Z,pmax:re}]}),u.sort(function(Y,G){return Y[0].posref-G[0].posref||l*(G[0].traceIndex-Y[0].traceIndex)});var x,w,_,b,T,k,M;function q(Y){var G=Y[0],U=Y[Y.length-1];if(w=G.pmin-G.pos-G.dp+G.size,_=U.pos+U.dp+U.size-G.pmax,w>.01){for(T=Y.length-1;T>=0;T--)Y[T].dp+=w;x=!1}if(!(_<.01)){if(w<-.01){for(T=Y.length-1;T>=0;T--)Y[T].dp-=_;x=!1}if(x){var V=0;for(b=0;bG.pmax&&V++;for(b=Y.length-1;b>=0&&!(V<=0);b--)k=Y[b],k.pos>G.pmax-1&&(k.del=!0,V--);for(b=0;b=0;T--)Y[T].dp-=_;for(b=Y.length-1;b>=0&&!(V<=0);b--)k=Y[b],k.pos+k.dp+k.size>G.pmax&&(k.del=!0,V--)}}}for(;!x&&o<=s;){for(o++,x=!0,b=0;b.01){for(T=D.length-1;T>=0;T--)D[T].dp+=w;for(E.push.apply(E,D),u.splice(b+1,1),M=0,T=E.length-1;T>=0;T--)M+=E[T].dp;for(_=M/E.length,T=E.length-1;T>=0;T--)E[T].dp-=_;x=!1}else b++}u.forEach(q)}for(b=u.length-1;b>=0;b--){var z=u[b];for(T=z.length-1;T>=0;T--){var O=z[T],B=O.datum;B.offset=O.dp,B.del=O.del}}}function bD(e,r){var t=0,a=e.offset;return r&&(a*=-zhe,t=e.offset*Nhe),{x:t,y:a}}function Uhe(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Dt+Vr),a=t+r*(e.txwidth+Vr),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Vr),{alignShift:r,textShiftX:t,text2ShiftX:a}}function xD(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=mu.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=Uhe(o),v=bD(o,r),d=v.x,p=v.y,y=u==="middle",m="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,x;y?x="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":m?x="M0,0L"+n(f*Dt+d)+","+i(Dt+p)+"v"+i(o.by/2-Dt)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Dt+d)+"V"+i(p-Dt)+"Z":x="M"+n(f*Dt+d)+","+i(p-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",x);var w=d+c.textShiftX,_=p+o.ty0-o.by/2+Vr,b=o.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),w=y?-o.bx/2-o.tx2width/2+Vr:-o.bx-Vr):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),w=y?o.bx/2-o.tx2width/2-Vr:o.bx+Vr)),s.call(mi.positionText,n(w),i(_)),o.tx2width&&(l.select("text.name").call(mi.positionText,n(c.text2ShiftX+c.alignShift*Vr+d),i(p+o.ty0-o.by/2+Vr)),l.select("rect").call(Ro.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function Ghe(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||cl(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=Ut.castOption(n,t,v);return o(p)?p:Ut.extractOption({},a,"",d)}:function(v,d){return Ut.extractOption(i,a,v,d)};function s(v,d,p){var y=l(d,p);o(y)&&(e[v]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ut.constrain(e.x0,0,e.xa._length),e.x1=Ut.constrain(e.x1,0,e.xa._length),e.y0=Ut.constrain(e.y0,0,e.ya._length),e.y1=Ut.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Po.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Po.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Po.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Po.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Po.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Po.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function vD(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=Ma.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;u=v&&v.xa,f=v&&v.ya;var y=f.spikesnap;y==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+v.x,p=f._offset+v.y);var m=sD.readability(v.color,c)<1.5?Ma.contrast(c):v.color,x=f.spikemode,w=f.spikethickness,_=f.spikecolor||m,b=Po.getPxPosition(e,f),T,k;if(x.indexOf("toaxis")!==-1||x.indexOf("across")!==-1){if(x.indexOf("toaxis")!==-1&&(T=b,k=d),x.indexOf("across")!==-1){var M=f._counterDomainMin,q=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),q=Math.max(q,f.position)),T=i.l+M*i.w,k=i.l+q*i.w}a.insert("line",":first-child").attr({x1:T,x2:k,y1:p,y2:p,"stroke-width":w,stroke:_,"stroke-dasharray":Ro.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:T,x2:k,y1:p,y2:p,"stroke-width":w+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}x.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:p,r:w,fill:_}).classed("spikeline",!0)}if(s){var E=r.vLinePoint,D,P;u=E&&E.xa,f=E&&E.ya;var R=u.spikesnap;R==="cursor"?(D=o.pointerX,P=o.pointerY):(D=u._offset+E.x,P=f._offset+E.y);var z=sD.readability(E.color,c)<1.5?Ma.contrast(c):E.color,O=u.spikemode,B=u.spikethickness,Y=u.spikecolor||z,G=Po.getPxPosition(e,u),U,V;if(O.indexOf("toaxis")!==-1||O.indexOf("across")!==-1){if(O.indexOf("toaxis")!==-1&&(U=G,V=P),O.indexOf("across")!==-1){var X=u._counterDomainMin,Z=u._counterDomainMax;u.anchor==="free"&&(X=Math.min(X,u.position),Z=Math.max(Z,u.position)),U=i.t+(1-Z)*i.h,V=i.t+(1-X)*i.h}a.insert("line",":first-child").attr({x1:D,x2:D,y1:U,y2:V,"stroke-width":B,stroke:Y,"stroke-dasharray":Ro.dashStyle(u.spikedash,B)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:D,x2:D,y1:U,y2:V,"stroke-width":B+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}O.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:D,cy:G-(u.side!=="top"?B:-B),r:B,fill:Y}).classed("spikeline",!0)}}}function Vhe(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function hD(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function dD(e,r){return mi.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Yhe(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o{"use strict";var Whe=Ce(),jhe=Tr(),Zhe=qo().isUnifiedHover;TD.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&Zhe(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=jhe.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),Whe.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var MD=N((fRe,AD)=>{"use strict";var Xhe=Ce(),Jhe=$1(),$he=Tf();AD.exports=function(r,t){function a(n,i){return Xhe.coerce(r,t,$he,n,i)}Jhe(r,t,a)}});var qD=N((cRe,SD)=>{"use strict";var kD=Ce(),Khe=gp(),Qhe=$1();SD.exports=function(r,t,a,n){function i(l,s){return kD.coerce(r,t,Khe,l,s)}var o=kD.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),Qhe(r,t,i,o)}});var k5=N((vRe,LD)=>{"use strict";var e0e=Ce(),r0e=Tf();LD.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:e0e.coerce(r,t,r0e,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var DD=N((hRe,ED)=>{"use strict";var CD=Ce(),t0e=Tf(),a0e=k5(),n0e=$1();ED.exports=function(r,t){function a(f,c){return CD.coerce(r,t,t0e,f,c)}var n=a0e(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&u===1||(o||l)&&s&&u===2)&&(t.dragmode="pan"),n0e(r,t,a),CD.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var FD=N((dRe,PD)=>{"use strict";var S5=Ce(),RD=gr();PD.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return S5.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var o0e=gr(),l0e=M5().hover;ND.exports=function(r,t,a){var n=o0e.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&l0e(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Fn=N((yRe,BD)=>{"use strict";var s0e=Sr(),K1=Ce(),u0e=pi(),Ah=qo(),ID=Tf(),OD=M5();BD.exports={moduleType:"component",name:"fx",constants:jv(),schema:{layout:ID},attributes:gp(),layoutAttributes:ID,supplyLayoutGlobalDefaults:MD(),supplyDefaults:qD(),supplyLayoutDefaults:DD(),calc:FD(),getDistanceFunction:Ah.getDistanceFunction,getClosest:Ah.getClosest,inbox:Ah.inbox,quadrature:Ah.quadrature,appendArrayPointValue:Ah.appendArrayPointValue,castHoverOption:c0e,castHoverinfo:v0e,hover:OD.hover,unhover:u0e.unhover,loneHover:OD.loneHover,loneUnhover:f0e,click:zD()};function f0e(e){var r=K1.isD3Selection(e)?e:s0e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function c0e(e,r,t){return K1.castOption(e,r,"hoverlabel."+t)}function v0e(e,r,t){function a(n){return K1.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return K1.castOption(e,t,"hoverinfo",a)}});var bu=N(vl=>{"use strict";vl.selectMode=function(e){return e==="lasso"||e==="select"};vl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};vl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};vl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};vl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};vl.selectingOrDrawing=function(e){return vl.freeMode(e)||vl.rectMode(e)}});var Q1=N((gRe,HD)=>{"use strict";HD.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var ey=N((bRe,UD)=>{"use strict";UD.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var ty=N((xRe,GD)=>{"use strict";var ry=32;GD.exports={CIRCLE_SIDES:ry,i000:0,i090:ry/4,i180:ry/2,i270:ry/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var ay=N((_Re,YD)=>{"use strict";var h0e=Ce().strTranslate;function VD(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function d0e(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function p0e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return VD(e,t[r])}}function y0e(e){return h0e(e.xaxis._offset,e.yaxis._offset)}YD.exports={p2r:VD,r2p:d0e,axValue:p0e,getTransform:y0e}});var ts=N(hl=>{"use strict";var m0e=yx(),ZD=ty(),lc=ZD.CIRCLE_SIDES,q5=ZD.SQRT2,XD=ay(),WD=XD.p2r,jD=XD.r2p,g0e=[0,3,4,5,6,1,2],b0e=[0,3,4,1,2];hl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var JD=oa(),rR=bu(),x0e=rR.drawMode,_0e=rR.openMode,sc=ty(),$D=sc.i000,KD=sc.i090,QD=sc.i180,eR=sc.i270,w0e=sc.cos45,T0e=sc.sin45,tR=ay(),iy=tR.p2r,as=tR.r2p,A0e=Zl(),M0e=A0e.clearOutline,oy=ts(),k0e=oy.readPaths,S0e=oy.writePaths,q0e=oy.ellipseOver,L0e=oy.fixDatesForPaths;function C0e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!x0e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var E0e=bu(),D0e=E0e.selectMode,R0e=Zl(),P0e=R0e.clearOutline,L5=ts(),F0e=L5.readPaths,N0e=L5.writePaths,z0e=L5.fixDatesForPaths;iR.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!D0e(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";oR.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var ns=N(Ra=>{"use strict";var xu=kh(),lR=Ce(),sy=Ir();Ra.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Ra.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Ra.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Ra.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Ra.extractPathCoords=function(e,r,t){var a=[],n=e.match(xu.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.substr(1).match(xu.paramRE);if(!(!l||l.lengthd&&(y="X"),y});return u>d&&(p=p.replace(/[\s,]*X.*/,""),lR.log("Ignoring extra params in segment "+s)),f+p})}function Sh(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var D5=N((SRe,cR)=>{"use strict";var O0e=Ce(),uc=Ir(),sR=Da(),uR=Wr(),B0e=ts().readPaths,E5=ns(),H0e=E5.getPathString,fR=Sp(),U0e=Xa().FROM_TL;cR.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=uc.getFromId(r,a.xref),s=uc.getFromId(r,a.yref);for(var u in fR){var f=fR[u](a,l,s);f!==void 0&&(o[u]=f)}}i=O0e.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,o)}else i=a.label.text;var c={"data-index":t},v=a.label.font,d={"data-notex":1},p=n.append("g").attr(c).classed("shape-label",!0),y=p.append("text").attr(d).classed("shape-label-text",!0).text(i),m,x,w,_;if(a.path){var b=H0e(r,a),T=B0e(b,r);m=1/0,w=1/0,x=-1/0,_=-1/0;for(var k=0;k=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function V0e(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,y=n.label.yanchor,m,x,w,_;if(f==="line"){l==="start"?(m=e,x=r):l==="end"?(m=t,x=a):(m=(e+t)/2,x=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var Y0e=Ce(),W0e=Y0e.strTranslate,vR=pi(),pR=bu(),j0e=pR.drawMode,yR=pR.selectMode,mR=gr(),hR=Tr(),fy=ty(),Z0e=fy.i000,X0e=fy.i090,J0e=fy.i180,$0e=fy.i270,K0e=Zl(),gR=K0e.clearOutlineControllers,P5=ts(),uy=P5.pointsOnRectangle,R5=P5.pointsOnEllipse,Q0e=P5.writePaths,ede=ly().newShapes,rde=ly().createShapeObj,tde=C5(),ade=D5();bR.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(R5(r[0])||a.hasText)&&l({redrawing:!0})}function l(G){var U={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,U=ede(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,U=tde(t,a),i._fullLayout._reselect=!0),Object.keys(U).length&&mR.call((G||{}).redrawing?"relayout":"_guiRelayout",i,U)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=j0e(f),v=yR(f);(c||v)&&(i._fullLayout._outlining=!0),gR(i),t.attr("d",Q0e(r));var d,p,y,m,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=nde([],r);var w=u.append("g").attr("class","outline-controllers");D(w),Y()}if(c&&a.hasText){var _=u.select(".label-temp"),b=rde(t,a,a.dragmode);ade(i,"label-temp",b,_)}function T(G){y=+G.srcElement.getAttribute("data-i"),m=+G.srcElement.getAttribute("data-j"),d[y][m].moveFn=k}function k(G,U){if(r.length){var V=x[y][m][1],X=x[y][m][2],Z=r[y],re=Z.length;if(uy(Z)){var ce=G,oe=U;if(a.isActiveSelection){var fe=dR(Z,m);fe[1]===Z[m][1]?oe=0:ce=0}for(var K=0;K1&&!(G.length===2&&G[1][0]==="Z")&&(m===0&&(G[0][0]="M"),r[y]=G,o(),l())}}function E(G,U){if(G===2){y=+U.srcElement.getAttribute("data-i"),m=+U.srcElement.getAttribute("data-j");var V=r[y];!uy(V)&&!R5(V)&&q()}}function D(G){d=[];for(var U=0;U{"use strict";var ode=Sr(),MR=gr(),xR=Ce(),fc=Ir(),lde=ts().readPaths,sde=cy(),hy=D5(),kR=Zl().clearOutlineControllers,F5=Tr(),z5=Wr(),ude=At().arrayEditor,_R=pi(),wR=rs(),_u=kh(),Nn=ns(),N5=Nn.getPathString;LR.exports={draw:I5,drawOne:SR,eraseActiveShape:vde,drawLabel:hy};function I5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;no&&Ge>l&&!Ne.shiftKey?_R.getCursor(He/ze,1-Ee/Ge):"move";wR(r,Ie),Te=Ie.split("-")[0]}}function ve(Ne){vy(e)||(s&&(x=Z(t.xanchor)),u&&(w=re(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:Z(t.x0),p=u?t.y0:re(t.y0),y=s?t.x1:Z(t.x1),m=u?t.y1:re(t.y1)),dm?(_=p,M="y0",b=m,q="y1"):(_=m,M="y1",b=p,q="y0"),ie(Ne),_e(n,t),Pe(r,t,e),K.moveFn=Te==="move"?j:ye,K.altKey=Ne.altKey)}function W(){vy(e)||(wR(r),me(n),qR(r,e,t),MR.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){vy(e)||me(n)}function j(Ne,Re){if(t.type==="path"){var ze=function(Ee){return Ee},Ge=ze,He=ze;s?v("xanchor",t.xanchor=ce(x+Ne)):(Ge=function(Ie){return ce(Z(Ie)+Ne)},z&&z.type==="date"&&(Ge=Nn.encodeDate(Ge))),u?v("yanchor",t.yanchor=oe(w+Re)):(He=function(Ie){return oe(re(Ie)+Re)},B&&B.type==="date"&&(He=Nn.encodeDate(He))),v("path",t.path=TR(P,Ge,He))}else s?v("xanchor",t.xanchor=ce(x+Ne)):(v("x0",t.x0=ce(d+Ne)),v("x1",t.x1=ce(y+Ne))),u?v("yanchor",t.yanchor=oe(w+Re)):(v("y0",t.y0=oe(p+Re)),v("y1",t.y1=oe(m+Re)));r.attr("d",N5(e,t)),_e(n,t),hy(e,a,t,R)}function ye(Ne,Re){if(c){var ze=function(Xe){return Xe},Ge=ze,He=ze;s?v("xanchor",t.xanchor=ce(x+Ne)):(Ge=function(Ke){return ce(Z(Ke)+Ne)},z&&z.type==="date"&&(Ge=Nn.encodeDate(Ge))),u?v("yanchor",t.yanchor=oe(w+Re)):(He=function(Ke){return oe(re(Ke)+Re)},B&&B.type==="date"&&(He=Nn.encodeDate(He))),v("path",t.path=TR(P,Ge,He))}else if(f){if(Te==="resize-over-start-point"){var Ee=d+Ne,Ie=u?p-Re:p+Re;v("x0",t.x0=s?Ee:ce(Ee)),v("y0",t.y0=u?Ie:oe(Ie))}else if(Te==="resize-over-end-point"){var Be=y+Ne,se=u?m-Re:m+Re;v("x1",t.x1=s?Be:ce(Be)),v("y1",t.y1=u?se:oe(se))}}else{var Ae=function(Xe){return Te.indexOf(Xe)!==-1},je=Ae("n"),ur=Ae("s"),lr=Ae("w"),ue=Ae("e"),qe=je?_+Re:_,Oe=ur?b+Re:b,Ze=lr?T+Ne:T,Ue=ue?k+Ne:k;u&&(je&&(qe=_-Re),ur&&(Oe=b-Re)),(!u&&Oe-qe>l||u&&qe-Oe>l)&&(v(M,t[M]=u?qe:oe(qe)),v(q,t[q]=u?Oe:oe(Oe))),Ue-Ze>o&&(v(E,t[E]=s?Ze:ce(Ze)),v(D,t[D]=s?Ue:ce(Ue)))}r.attr("d",N5(e,t)),_e(n,t),hy(e,a,t,R)}function _e(Ne,Re){(s||u)&&ze();function ze(){var Ge=Re.type!=="path",He=Ne.selectAll(".visual-cue").data([0]),Ee=1;He.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ee}).classed("visual-cue",!0);var Ie=Z(s?Re.xanchor:xR.midRange(Ge?[Re.x0,Re.x1]:Nn.extractPathCoords(Re.path,_u.paramIsX))),Be=re(u?Re.yanchor:xR.midRange(Ge?[Re.y0,Re.y1]:Nn.extractPathCoords(Re.path,_u.paramIsY)));if(Ie=Nn.roundPositionForSharpStrokeRendering(Ie,Ee),Be=Nn.roundPositionForSharpStrokeRendering(Be,Ee),s&&u){var se="M"+(Ie-1-Ee)+","+(Be-1-Ee)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";He.attr("d",se)}else if(s){var Ae="M"+(Ie-1-Ee)+","+(Be-9-Ee)+"v18 h2 v-18 Z";He.attr("d",Ae)}else{var je="M"+(Ie-9-Ee)+","+(Be-1-Ee)+"h18 v2 h-18 Z";He.attr("d",je)}}}function me(Ne){Ne.selectAll(".visual-cue").remove()}function Pe(Ne,Re,ze){var Ge=Re.xref,He=Re.yref,Ee=fc.getFromId(ze,Ge),Ie=fc.getFromId(ze,He),Be="";Ge!=="paper"&&!Ee.autorange&&(Be+=Ge),He!=="paper"&&!Ie.autorange&&(Be+=He),z5.setClipUrl(Ne,Be?"clip"+ze._fullLayout._uid+Be:null,ze)}}function TR(e,r,t){return e.replace(_u.segmentRE,function(a){var n=0,i=a.charAt(0),o=_u.paramIsX[i],l=_u.paramIsY[i],s=_u.numParams[i],u=a.substr(1).replace(_u.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function cde(e,r){if(dy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){AR(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=AR,I5(e)}}}function AR(e){if(dy(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(kR(e),delete e._fullLayout._activeShapeIndex,I5(e))}}function vde(e){if(dy(e)){kR(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var gi=gr(),CR=aa(),ER=oa(),Xr=ey(),hde=py().eraseActiveShape,yy=Ce(),Ur=yy._,Jr=IR.exports={};Jr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Ur(e,"Download plot as a PNG"):Ur(e,"Download plot")},icon:Xr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};yy.notifier(Ur(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),gi.call("downloadImage",e,t).then(function(a){yy.notifier(Ur(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){yy.notifier(Ur(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Jr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Ur(e,"Edit in Chart Studio")},icon:Xr.disk,click:function(e){CR.sendDataToCloud(e)}};Jr.editInChartStudio={name:"editInChartStudio",title:function(e){return Ur(e,"Edit in Chart Studio")},icon:Xr.pencil,click:function(e){CR.sendDataToCloud(e)}};Jr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ur(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Xr.zoombox,click:sn};Jr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ur(e,"Pan")},attr:"dragmode",val:"pan",icon:Xr.pan,click:sn};Jr.select2d={name:"select2d",_cat:"select",title:function(e){return Ur(e,"Box Select")},attr:"dragmode",val:"select",icon:Xr.selectbox,click:sn};Jr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ur(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Xr.lasso,click:sn};Jr.drawclosedpath={name:"drawclosedpath",title:function(e){return Ur(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Xr.drawclosedpath,click:sn};Jr.drawopenpath={name:"drawopenpath",title:function(e){return Ur(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Xr.drawopenpath,click:sn};Jr.drawline={name:"drawline",title:function(e){return Ur(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Xr.drawline,click:sn};Jr.drawrect={name:"drawrect",title:function(e){return Ur(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Xr.drawrect,click:sn};Jr.drawcircle={name:"drawcircle",title:function(e){return Ur(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Xr.drawcircle,click:sn};Jr.eraseshape={name:"eraseshape",title:function(e){return Ur(e,"Erase active shape")},icon:Xr.eraseshape,click:hde};Jr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ur(e,"Zoom in")},attr:"zoom",val:"in",icon:Xr.zoom_plus,click:sn};Jr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ur(e,"Zoom out")},attr:"zoom",val:"out",icon:Xr.zoom_minus,click:sn};Jr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ur(e,"Autoscale")},attr:"zoom",val:"auto",icon:Xr.autoscale,click:sn};Jr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ur(e,"Reset axes")},attr:"zoom",val:"reset",icon:Xr.home,click:sn};Jr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ur(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Xr.tooltip_basic,gravity:"ne",click:sn};Jr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ur(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Xr.tooltip_compare,gravity:"ne",click:sn};function sn(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=ER.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,y;for(f=0;f{"use strict";var OR=H5(),yde=Object.keys(OR),BR=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],HR=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(BR),vc=[],mde=function(e){if(HR.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();vc.indexOf(r)===-1&&vc.push(r),vc.indexOf(t)===-1&&vc.push(t)}};yde.forEach(function(e){mde(OR[e])});vc.sort();UR.exports={DRAW_MODES:BR,backButtons:HR,foreButtons:vc}});var G5=N((RRe,GR)=>{"use strict";var DRe=U5();GR.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var YR=N((PRe,VR)=>{"use strict";var gde=Ce(),qh=Tr(),bde=At(),xde=G5();VR.exports=function(r,t){var a=r.modebar||{},n=bde.newContainer(t,"modebar");function i(l,s){return gde.coerce(a,n,xde,l,s)}i("orientation"),i("bgcolor",qh.addOpacity(t.paper_bgcolor,.5));var o=qh.contrast(qh.rgb(t.modebar.bgcolor));i("color",qh.addOpacity(o,.3)),i("activecolor",qh.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var XR=N((FRe,ZR)=>{"use strict";var V5=Sr(),_de=Rr(),gy=Ce(),WR=ey(),wde=op().version,Tde=new DOMParser;function jR(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Fo=jR.prototype;Fo.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),gy.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Fo.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Fo.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Fo.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&V5.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||WR.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Fo.createIcon=function(e){var r=_de(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=Tde.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Fo.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=V5.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:gy.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};Fo.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var kde=oa(),JR=Rn(),Y5=gr(),Sde=qo().isUnifiedHover,qde=XR(),by=H5(),Lde=U5().DRAW_MODES,Cde=Ce().extendDeep;$R.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=Nde(i):!a.displayModeBar&&a.watermark?o=[]:o=Ede(r),n?n.update(r,o):t._modeBar=qde(r,o)};function Ede(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(U,V){if(typeof V=="string"){if(V.toLowerCase()===U.toLowerCase())return!0}else{var X=V.name,Z=V._cat||V.name;if(X===U||Z===U.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(U){for(var V=0;V1?(D=["toggleHover"],P=["resetViews"]):c?(E=["zoomInGeo","zoomOutGeo"],D=["hoverClosestGeo"],P=["resetGeo"]):f?(D=["hoverClosest3d"],P=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(E=["zoomInMapbox","zoomOutMapbox"],D=["toggleHover"],P=["resetViewMapbox"]):m?(E=["zoomInMap","zoomOutMap"],D=["toggleHover"],P=["resetViewMap"]):v?D=["hoverClosestPie"]:_?(D=["hoverClosestCartesian","hoverCompareCartesian"],P=["resetViewSankey"]):D=["toggleHover"],u&&D.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Pde(t)||T)&&(D=[]),u&&!b&&(E=["zoomIn2d","zoomOut2d","autoScale2d"],P[0]!=="resetViews"&&(P=["resetScale2d"])),f?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||p?R=["zoom2d","pan2d"]:y||m||c?R=["pan2d"]:x&&(R=["zoom2d"]),Rde(t)&&R.push("select2d","lasso2d");var z=[],O=function(U){z.indexOf(U)===-1&&D.indexOf(U)!==-1&&z.push(U)};if(Array.isArray(l)){for(var B=[],Y=0;Y{"use strict";QR.exports={moduleType:"component",name:"modebar",layoutAttributes:G5(),supplyLayoutDefaults:YR(),manage:KR()}});var j5=N((IRe,eP)=>{"use strict";var zde=Xa().FROM_BL;eP.exports=function(r,t,a){a===void 0&&(a=zde[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Tu=N(Lh=>{"use strict";var wu=Ce(),Z5=ph(),no=oa().id2name,Ide=hi(),rP=j5(),Ode=Xf(),Bde=Nt().ALMOST_EQUAL,Hde=Xa().FROM_BL;Lh.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,v,d,p;for(l=0;li?t.substr(i):a.substr(n))+o}function Gde(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;oBde*p&&!w)){for(i=0;iR&&XD&&(D=X);var re=(D-E)/(2*P);c/=re,E=s.l2r(E),D=s.l2r(D),s.range=s._input.range=k{"use strict";var _y=Sr(),un=gr(),Kn=aa(),bi=Ce(),$5=Da(),K5=Q1(),Ch=Tr(),hc=Wr(),iP=Zf(),fP=W5(),Eh=Ir(),dl=Xa(),cP=Tu(),Vde=cP.enforce,Yde=cP.clean,oP=ph().doAutoRange,vP="start",Wde="middle",hP="end",jde=Ea().zindexSeparator;ka.layoutStyles=function(e){return bi.syncOrAsync([Kn.doAutoMargin,Xde],e)};function Zde(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Xde(e){var r=e._fullLayout,t=r._size,a=t.p,n=Eh.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(hc.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),ka.drawMainTitle(e),fP.manage(e),!r._has("cartesian"))return Kn.previousPromises(e);function c(ve,W,Q){var j=ve._lw/2;if(ve._id.charAt(0)==="x"){if(W){if(Q==="top")return W._offset-a-j}else return t.t+t.h*(1-(ve.position||0))+j%1;return W._offset+W._length+a+j}if(W){if(Q==="right")return W._offset+W._length+a+j}else return t.l+t.w*(ve.position||0)+j%1;return W._offset-a-j}for(i=0;i0){Qde(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:uP(r.yanchor)}).call($5.positionText,o,i);var f=(r.text.match($5.BR_TAG_ALL)||[]).length;if(f){var c=dl.LINE_SPACING*f+dl.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var v=_y.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,y=p+iP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y,"text-anchor":a,dy:uP(r.yanchor)}).call($5.positionText,o,y)}}}};function Jde(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=bi.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return bi.isTopAnchor(r)&&t==="t"||bi.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=$de(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function Qde(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&Jde(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Kn.allowAutoMargin(e,n),Kn.autoMargin(e,n,l)}function epe(e,r){var t=e.title,a=e._size,n=0;switch(r===vP?n=t.pad.l:r===hP&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function rpe(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===dl.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function uP(e){return e==="top"?dl.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":dl.MID_SHIFT+"em"}function tpe(e){var r=e.title,t=Wde;return bi.isRightAnchor(r)?t=hP:bi.isLeftAnchor(r)&&(t=vP),t}function ape(e){var r=e.title,t="0em";return bi.isTopAnchor(r)?t=dl.CAP_SHIFT+"em":bi.isMiddleAnchor(r)&&(t=dl.MID_SHIFT+"em"),t}ka.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var npe=ts().readPaths,ipe=cy(),dP=Zl().clearOutlineControllers,Q5=Tr(),pP=Wr(),ope=At().arrayEditor,yP=ns(),lpe=yP.getPathString;gP.exports={draw:Ty,drawOne:mP,activateLastSelection:fpe};function Ty(e){var r=e._fullLayout;dP(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;m--){var x=o.append("path").attr(s).style("opacity",m?.1:u).call(Q5.stroke,c).call(Q5.fill,f).call(pP.dashLine,m?"solid":d,m?4+v:v);if(spe(x,e,a),p){var w=ope(e.layout,"selections",a);x.style({cursor:"move"});var _={element:x.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=npe(l,e);ipe(b,x,_)}else x.style("pointer-events",m?"all":"none");y[m]=x}var T=y[0],k=y[1];k.node().addEventListener("click",function(){return upe(e,T)})}}function spe(e,r,t){var a=t.xref+t.yref;pP.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function upe(e,r){if(Ay(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){e_(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=e_,Ty(e)}}}function fpe(e){if(Ay(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=e_,Ty(e)}}function e_(e){if(Ay(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(dP(e),delete e._fullLayout._activeSelectionIndex,Ty(e))}}});var xP=N((URe,bP)=>{function cpe(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}bP.exports=cpe});var wP=N((GRe,_P)=>{function vpe(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}_P.exports=vpe});var AP=N((VRe,TP)=>{var hpe={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};TP.exports=hpe});var kP=N((YRe,MP)=>{var Dh=AP();function dpe(e,r,t){function a(p,y){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:null,below:null},otherFill:null}}function n(p,y,m){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=Dh.create();function o(p,y,m,x,w,_){var b=r.pointsCompare(y,w);return b!==0?b:r.pointsSame(m,_)?0:p!==x?p?1:-1:r.pointAboveOrOnLine(m,x?w:_,x?_:w)?1:-1}function l(p,y){i.insertBefore(p,function(m){var x=o(p.isStart,p.pt,y,m.isStart,m.pt,m.other.pt);return x<0})}function s(p,y){var m=Dh.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return l(m,p.end),m}function u(p,y,m){var x=Dh.node({isStart:!1,pt:y.end,seg:y,primary:m,other:p,status:null});p.other=x,l(x,p.pt)}function f(p,y){var m=s(p,y);return u(m,p,y),m}function c(p,y){t&&t.segmentChop(p.seg,y),p.other.remove(),p.seg.end=y,p.other.pt=y,l(p.other,p.pt)}function v(p,y){var m=n(y,p.seg.end,p.seg);return c(p,y),f(m,p.primary)}function d(p,y){var m=Dh.create();function x(B,Y){var G=B.seg.start,U=B.seg.end,V=Y.seg.start,X=Y.seg.end;return r.pointsCollinear(G,V,X)?r.pointsCollinear(U,V,X)||r.pointAboveOrOnLine(U,V,X)?1:-1:r.pointAboveOrOnLine(G,V,X)?1:-1}function w(B){return m.findTransition(function(Y){var G=x(B,Y.ev);return G>0})}function _(B,Y){var G=B.seg,U=Y.seg,V=G.start,X=G.end,Z=U.start,re=U.end;t&&t.checkIntersection(G,U);var ce=r.linesIntersect(V,X,Z,re);if(ce===!1){if(!r.pointsCollinear(V,X,Z)||r.pointsSame(V,re)||r.pointsSame(X,Z))return!1;var oe=r.pointsSame(V,Z),fe=r.pointsSame(X,re);if(oe&&fe)return Y;var K=!oe&&r.pointBetween(V,Z,re),Te=!fe&&r.pointBetween(X,Z,re);if(oe)return Te?v(Y,X):v(B,re),Y;K&&(fe||(Te?v(Y,X):v(B,re)),v(Y,V))}else ce.alongA===0&&(ce.alongB===-1?v(B,Z):ce.alongB===0?v(B,ce.pt):ce.alongB===1&&v(B,re)),ce.alongB===0&&(ce.alongA===-1?v(Y,V):ce.alongA===0?v(Y,ce.pt):ce.alongA===1&&v(Y,X));return!1}for(var b=[];!i.isEmpty();){var T=i.getHead();if(t&&t.vert(T.pt[0]),T.isStart){let B=function(){if(M){var Y=_(T,M);if(Y)return Y}return q?_(T,q):!1};var O=B;t&&t.segmentNew(T.seg,T.primary);var k=w(T),M=k.before?k.before.ev:null,q=k.after?k.after.ev:null;t&&t.tempStatus(T.seg,M?M.seg:!1,q?q.seg:!1);var E=B();if(E){if(e){var D;T.seg.myFill.below===null?D=!0:D=T.seg.myFill.above!==T.seg.myFill.below,D&&(E.seg.myFill.above=!E.seg.myFill.above)}else E.seg.otherFill=T.seg.myFill;t&&t.segmentUpdate(E.seg),T.other.remove(),T.remove()}if(i.getHead()!==T){t&&t.rewind(T.seg);continue}if(e){var D;T.seg.myFill.below===null?D=!0:D=T.seg.myFill.above!==T.seg.myFill.below,q?T.seg.myFill.below=q.seg.myFill.above:T.seg.myFill.below=p,D?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var P;q?T.primary===q.primary?P=q.seg.otherFill.above:P=q.seg.myFill.above:P=T.primary?y:p,T.seg.otherFill={above:P,below:P}}t&&t.status(T.seg,M?M.seg:!1,q?q.seg:!1),T.other.status=k.insert(Dh.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(R.prev)&&m.exists(R.next)&&_(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!T.primary){var z=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=z}b.push(T.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(p){for(var y,m=p[p.length-1],x=0;x{function ppe(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(O,B,Y){return f.index=O,f.matches_head=B,f.matches_pt1=Y,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v{function Rh(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var ype={union:function(e,r){return Rh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Rh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Rh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Rh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Rh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};LP.exports=ype});var DP=N((ZRe,EP)=>{var mpe={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var gpe=xP(),bpe=wP(),RP=kP(),xpe=qP(),Ph=CP(),PP=DP(),xi=!1,Fh=bpe(),zn;zn={buildLog:function(e){return e===!0?xi=gpe():e===!1&&(xi=!1),xi===!1?!1:xi.list},epsilon:function(e){return Fh.epsilon(e)},segments:function(e){var r=RP(!0,Fh,xi);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=RP(!1,Fh,xi);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Ph.union(e.combined,xi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Ph.intersect(e.combined,xi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Ph.difference(e.combined,xi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Ph.differenceRev(e.combined,xi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Ph.xor(e.combined,xi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:xpe(e.segments,Fh,xi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return PP.toPolygon(zn,e)},polygonToGeoJSON:function(e){return PP.fromPolygon(zn,Fh,e)},union:function(e,r){return Nh(e,r,zn.selectUnion)},intersect:function(e,r){return Nh(e,r,zn.selectIntersect)},difference:function(e,r){return Nh(e,r,zn.selectDifference)},differenceRev:function(e,r){return Nh(e,r,zn.selectDifferenceRev)},xor:function(e,r){return Nh(e,r,zn.selectXor)}};function Nh(e,r,t){var a=zn.segments(e),n=zn.segments(r),i=zn.combine(a,n),o=t(i);return zn.polygon(o)}typeof window=="object"&&(window.PolyBool=zn);FP.exports=zn});var IP=N((JRe,zP)=>{zP.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;uo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;y&&(l=!l)}return l}});var a_=N(($Re,OP)=>{"use strict";var t_=Ap().dot,My=Nt().BADNUM,ky=OP.exports={};ky.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||x===My||xo||y&&u(p))}function c(p,y){var m=p[0],x=p[1];if(m===My||mn||x===My||xo)return!1;var w=t.length,_=t[0][0],b=t[0][1],T=0,k,M,q,E,D;for(k=1;kMath.max(M,_)||x>Math.max(q,b)))if(xl||Math.abs(t_(c,u))>n)return!0;return!1};ky.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var HP=N((KRe,BP)=>{"use strict";BP.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var uF=N((QRe,sF)=>{"use strict";var UP=NP(),_pe=IP(),Oh=gr(),wpe=Wr().dashStyle,zh=Tr(),Tpe=Fn(),Ape=qo().makeEventData,Vh=bu(),Mpe=Vh.freeMode,kpe=Vh.rectMode,Bh=Vh.drawMode,l_=Vh.openMode,s_=Vh.selectMode,GP=ns(),VP=kh(),XP=cy(),JP=Zl().clearOutline,$P=ts(),n_=$P.handleEllipse,Spe=$P.readPaths,qpe=ly().newShapes,Lpe=C5(),Cpe=r_().activateLastSelection,qy=Ce(),Epe=qy.sorterAsc,KP=a_(),Ih=Np(),_i=oa().getFromId,Dpe=Q1(),Rpe=wy().redrawReglTraces,Ly=HP(),No=Ly.MINSELECT,Ppe=KP.filter,u_=KP.tester,f_=ay(),YP=f_.p2r,Fpe=f_.axValue,Npe=f_.getTransform;function c_(e){return e.subplot!==void 0}function zpe(e,r,t,a,n){var i=!c_(a),o=Mpe(n),l=kpe(n),s=l_(n),u=Bh(n),f=s_(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,y=p._fullLayout,m=f&&y.newselection.mode==="immediate"&&i,x=y._zoomlayer,w=a.element.getBoundingClientRect(),_=a.plotinfo,b=Npe(_),T=r-w.left,k=t-w.top;y._calcInverseTransform(p);var M=qy.apply3DTransform(y._invTransform)(T,k);T=M[0],k=M[1];var q=y._invScaleX,E=y._invScaleY,D=T,P=k,R="M"+T+","+k,z=a.xaxes[0],O=a.yaxes[0],B=z._length,Y=O._length,G=e.altKey&&!(Bh(n)&&s),U,V,X,Z,re,ce,oe;eF(e,p,a),o&&(U=Ppe([[T,k]],Ly.BENDPX));var fe=x.selectAll("path.select-outline-"+_.id).data([1]),K=u?y.newshape:y.newselection;u&&(a.hasText=K.label.text||K.label.texttemplate);var Te=u&&!s?K.fillcolor:"rgba(0,0,0,0)",le=K.line.color||(i?zh.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");fe.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:u?K.opacity/2:1,"stroke-dasharray":wpe(K.line.dash,K.line.width),"stroke-width":K.line.width+"px","shape-rendering":"crispEdges"}).call(zh.stroke,le).call(zh.fill,Te).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",R+"Z");var pe=x.append("path").attr("class","zoombox-corners").style({fill:zh.background,stroke:zh.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var ie=x.select(".label-temp");ie.empty()&&(ie=x.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ve=y._uid+Ly.SELECTID,W=[],Q=Cy(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var ye=z._id,_e=O._id;iF(p,ye,_e,Q);for(var me=(p.layout||{}).selections||[],Pe=[],Ne=!1,Re=0;Re=0){p._fullLayout._deactivateShape(p);return}if(!u){var me=y.clickmode;Ih.done(ve).then(function(){if(Ih.clear(ve),ye===2){for(fe.remove(),re=0;re-1&&QP(_e,p,a.xaxes,a.yaxes,a.subplot,a,fe),me==="event"&&Gh(p,void 0);Tpe.click(p,_e,_.id)}).catch(qy.error)}},a.doneFn=function(){pe.remove(),Ih.done(ve).then(function(){Ih.clear(ve),!m&&Z&&a.selectionDefs&&(Z.subtract=G,a.selectionDefs.push(Z),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,X)),(m||u)&&Hh(a,m),a.doneFnCompleted&&a.doneFnCompleted(W),f&&Gh(p,oe)}).catch(qy.error)}}function QP(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,d,p,y,m,x,w,_,b,T;if(Upe(l)){eF(e,r,i),v=Cy(r,t,a,n);var k=Gpe(l,v),M=k.pointNumbers.length>0;if(M?Vpe(v,k):Ype(v)&&(w=jP(k))){for(o&&o.remove(),T=0;T=0}function Hpe(e){return e._fullLayout._activeSelectionIndex>=0}function Hh(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Bpe(n)&&n._fullLayout._deactivateShape(n),Hpe(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=Bh(t),s=s_(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=qpe(u,e)),f&&Oh.call("_guiRelayout",n,{shapes:f});var c;s&&!c_(e)&&(c=Lpe(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Oh.call("_guiRelayout",n,{selections:c}).then(function(){r&&Cpe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function WP(e){return e._id}function Cy(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(WP),o=t.map(WP),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Vpe(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Uh(e,r,t){var a;for(a=0;a-1&&r;if(!o&&r){var ye=ZP(e,!0);if(ye.length){var _e=ye[0].xref,me=ye[0].yref;if(_e&&me){var Pe=oF(ye),Ne=lF([_i(e,_e,"x"),_i(e,me,"y")]);Ne(W,Pe)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:j&&Gh(e,W),v._reselect=!1}if(!o&&v._deselect){var Re=v._deselect;l=Re.xref,s=Re.yref,Zpe(l,s,f)||iF(e,l,s,a),j&&(W.points.length?Gh(e,W):d_(e)),v._deselect=!1}return{eventData:W,selectionTesters:t}}function jpe(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";fF.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Yh=N((rPe,cF)=>{"use strict";cF.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var dc=N((aPe,dF)=>{"use strict";var vF=p_(),hF=da(),Ey=Ea(),Qpe=At().templatedArray,tPe=Yh();dF.exports=Qpe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:hF({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:vF.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:vF.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Ey.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Ey.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Ey.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Ey.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:hF({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Wh=N((nPe,pF)=>{"use strict";pF.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Dy=N((iPe,yF)=>{"use strict";yF.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var wi=N((oPe,wF)=>{"use strict";var mF=eo().axisHoverFormat,e1e=Ta().texttemplateAttrs,r1e=Ta().hovertemplateAttrs,gF=ko(),t1e=da(),a1e=ui().dash,n1e=ui().pattern,i1e=Wr(),o1e=Wh(),Ry=xt().extendFlat,l1e=Dy();function bF(e){return{valType:"any",dflt:0,editType:"calc"}}function xF(e){return{valType:"any",editType:"calc"}}function _F(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}wF.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:bF("x"),yperiod:bF("y"),xperiod0:xF("x0"),yperiod0:xF("y0"),xperiodalignment:_F("x"),yperiodalignment:_F("y"),xhoverformat:mF("x"),yhoverformat:mF("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:e1e({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:r1e({},{keys:o1e.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Ry({},a1e,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:l1e(!0),fillgradient:Ry({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:n1e,marker:Ry({symbol:{valType:"enumerated",values:i1e.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Ry({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},gF("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},gF("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:t1e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var y_=N((sPe,MF)=>{"use strict";var TF=dc(),AF=wi().line,s1e=ui().dash,Py=xt().extendFlat,u1e=Ji().overrideAll,f1e=At().templatedArray,lPe=Yh();MF.exports=u1e(f1e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Py({},TF.xref,{}),yref:Py({},TF.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:AF.color,width:Py({},AF.width,{min:1,dflt:1}),dash:Py({},s1e,{dflt:"dot"})}}),"arraydraw","from-root")});var LF=N((uPe,qF)=>{"use strict";var kF=Ce(),Fy=Ir(),c1e=ro(),v1e=y_(),SF=ns();qF.exports=function(r,t){c1e(r,t,{name:"selections",handleItemDefaults:h1e});for(var a=t.selections,n=0;n{"use strict";CF.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var jh=N((cPe,PF)=>{"use strict";var d1e=gr(),DF=Ce(),RF=oa();PF.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=d1e.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var FF=r_(),Zh=uF();NF.exports={moduleType:"component",name:"selections",layoutAttributes:y_(),supplyLayoutDefaults:LF(),supplyDrawNewSelectionDefaults:EF(),includeBasePlot:jh()("selections"),draw:FF.draw,drawOne:FF.drawOne,reselect:Zh.reselect,prepSelect:Zh.prepSelect,clearOutline:Zh.clearOutline,clearSelectionsCache:Zh.clearSelectionsCache,selectOnClick:Zh.selectOnClick}});var aN=N((hPe,tN)=>{"use strict";var __=Sr(),Ti=Ce(),zF=Ti.numberFormat,p1e=Sn(),y1e=r5(),Ny=gr(),WF=Ti.strTranslate,m1e=Da(),IF=Tr(),os=Wr(),g1e=Fn(),OF=Ir(),b1e=rs(),x1e=pi(),jF=bu(),zy=jF.selectingOrDrawing,_1e=jF.freeMode,w1e=Xa().FROM_TL,T1e=Q1(),A1e=wy().redrawReglTraces,M1e=aa(),g_=oa().getFromId,k1e=zo().prepSelect,S1e=zo().clearOutline,q1e=zo().selectOnClick,m_=j5(),w_=Ea(),BF=w_.MINDRAG,bn=w_.MINZOOM,HF=!0;function L1e(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,v,d,p,y,m,x,w,_,b,T,k,M,q,E,D,P,R,z,O,B,Y,G;t+=r.yaxis._shift;function U(){if(c=r.xaxis,v=r.yaxis,_=c._length,b=v._length,x=c._offset,w=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var ue=r.overlays,qe=0;qe=0){Oe._fullLayout._deactivateShape(Oe);return}var Ze=Oe._fullLayout.clickmode;if(x_(Oe),ue===2&&!f&&Be(),u)Ze.indexOf("select")>-1&&q1e(qe,Oe,y,m,r.id,Z),Ze.indexOf("event")>-1&&g1e.click(Oe,qe,r.id);else if(ue===1&&f){var Ue=o?v:c,Xe=o==="s"||l==="w"?0:1,Ke=Ue._name+".range["+Xe+"]",hr=C1e(Ue,Xe),$e="left",Fe="middle";if(Ue.fixedrange)return;o?(Fe=o==="n"?"top":"bottom",Ue.side==="right"&&($e="right")):l==="e"&&($e="right"),Oe._context.showAxisRangeEntryBoxes&&__.select(X).call(m1e.makeEditable,{gd:Oe,immediate:!0,background:Oe._fullLayout.paper_bgcolor,text:String(hr),fill:Ue.tickfont?Ue.tickfont.color:"#444",horizontalAlign:$e,verticalAlign:Fe}).on("edit",function(ne){var de=Ue.d2r(ne);de!==void 0&&Ny.call("_guiRelayout",Oe,Ke,de)})}}x1e.init(Z);var oe,fe,K,Te,le,pe,ie,ve,W,Q;function j(ue,qe,Oe){var Ze=X.getBoundingClientRect();oe=qe-Ze.left,fe=Oe-Ze.top,e._fullLayout._calcInverseTransform(e);var Ue=Ti.apply3DTransform(e._fullLayout._invTransform)(oe,fe);oe=Ue[0],fe=Ue[1],K={l:oe,r:oe,w:0,t:fe,b:fe,h:0},Te=e._hmpixcount?e._hmlumcount/e._hmpixcount:p1e(e._fullLayout.plot_bgcolor).getLuminance(),le="M0,0H"+_+"V"+b+"H0V0",pe=!1,ie="xy",Q=!1,ve=JF(s,Te,x,w,le),W=$F(s,x,w)}function ye(ue,qe){if(e._transitioningWithDuration)return!1;var Oe=Math.max(0,Math.min(_,Y*ue+oe)),Ze=Math.max(0,Math.min(b,G*qe+fe)),Ue=Math.abs(Oe-oe),Xe=Math.abs(Ze-fe);K.l=Math.min(oe,Oe),K.r=Math.max(oe,Oe),K.t=Math.min(fe,Ze),K.b=Math.max(fe,Ze);function Ke(){ie="",K.r=K.l,K.t=K.b,W.attr("d","M0,0Z")}if(T.isSubplotConstrained)Ue>bn||Xe>bn?(ie="xy",Ue/_>Xe/b?(Xe=Ue*b/_,fe>Ze?K.t=fe-Xe:K.b=fe+Xe):(Ue=Xe*_/b,oe>Oe?K.l=oe-Ue:K.r=oe+Ue),W.attr("d",Iy(K))):Ke();else if(k.isSubplotConstrained)if(Ue>bn||Xe>bn){ie="xy";var hr=Math.min(K.l/_,(b-K.b)/b),$e=Math.max(K.r/_,(b-K.t)/b);K.l=hr*_,K.r=$e*_,K.b=(1-hr)*b,K.t=(1-$e)*b,W.attr("d",Iy(K))}else Ke();else!q||Xe0){var ne;if(k.isSubplotConstrained||!M&&q.length===1){for(ne=0;ne1&&(Ke.maxallowed!==void 0&&D===(Ke.range[0]1&&(hr.maxallowed!==void 0&&P===(hr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function D1e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function JF(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",WF(t,a)).attr("d",n+"Z")}function $F(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:IF.background,stroke:IF.defaultLine,"stroke-width":1,opacity:0}).attr("transform",WF(r,t)).attr("d","M0,0Z")}function KF(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),QF(e,r,n,i)}function QF(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function x_(e){__.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function eN(e){HF&&e.data&&e._context.showTips&&(Ti.notifier(Ti._(e,"Double-click to zoom back out"),"long"),HF=!1)}function R1e(e,r){return"M"+(e.l-.5)+","+(r-bn-.5)+"h-3v"+(2*bn+1)+"h3ZM"+(e.r+.5)+","+(r-bn-.5)+"h3v"+(2*bn+1)+"h-3Z"}function P1e(e,r){return"M"+(r-bn-.5)+","+(e.t-.5)+"v-3h"+(2*bn+1)+"v3ZM"+(r-bn-.5)+","+(e.b+.5)+"v3h"+(2*bn+1)+"v-3Z"}function Iy(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,bn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function VF(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var F1e=Sr(),Oy=Fn(),N1e=pi(),z1e=rs(),io=aN().makeDragBox,Sa=Ea().DRAGGERSIZE;By.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){F1e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=io(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Oy.hover(r,v,i)},Oy.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,N1e.unhover(r,v))},r._context.showAxisDragHandles&&(io(r,o,l._offset-Sa,s._offset-Sa,Sa,Sa,"n","w"),io(r,o,l._offset+l._length,s._offset-Sa,Sa,Sa,"n","e"),io(r,o,l._offset-Sa,s._offset+s._length,Sa,Sa,"s","w"),io(r,o,l._offset+l._length,s._offset+s._length,Sa,Sa,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Sa),io(r,o,l._offset+l._length*.1,f,l._length*.8,Sa,"","ew"),io(r,o,l._offset,f,l._length*.1,Sa,"","w"),io(r,o,l._offset+l._length*.9,f,l._length*.1,Sa,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Sa),io(r,o,c,s._offset+s._length*.1,Sa,s._length*.8,"ns",""),io(r,o,c,s._offset+s._length*.9,Sa,s._length*.1,"s",""),io(r,o,c,s._offset,Sa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Oy.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Oy.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},By.updateFx(r)}};By.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";z1e(r._draggers,t)}});var oN=N((pPe,iN)=>{"use strict";var nN=gr();iN.exports=function(r){for(var t=nN.layoutArrayContainers,a=nN.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var I1e=zl(),A_=Tp(),Xh=Zs(),O1e=Ab().sorterAsc,M_=gr();Jh.containerArrayMatch=oN();var B1e=Jh.isAddVal=function(r){return r==="add"||I1e(r)},lN=Jh.isRemoveVal=function(r){return r===null||r==="remove"};Jh.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=M_.getComponentMethod(o,"supplyLayoutDefaults"),s=M_.getComponentMethod(o,"draw"),u=M_.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===A_||s===A_,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Xh.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(lN(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Xh.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(O1e),y=t.get(),m=y||[],x=i(v,o).get(),w=[],_=-1,b=m.length,T,k,M,q,E,D,P,R;for(T=0;Tm.length-(P?0:1)){Xh.warn("index out of range",o,M);continue}if(D!==void 0)E.length>1&&Xh.warn("Insertion & removal are incompatible with edits to the same index.",o,M),lN(D)?w.push(M):P?(D==="add"&&(D={}),m.splice(M,0,D),x&&x.splice(M,0,{})):Xh.warn("Unrecognized full object edit value",o,M,D),_===-1&&(_=M);else for(k=0;k=0;T--)m.splice(w[T],1),x&&x.splice(w[T],1);if(m.length?y||t.set(m):t.set(null),f)return!1;if(l(c,v),u!==A_){var z;if(_===-1)z=p;else{for(b=Math.max(m.length,b),z=[],T=0;T=_));T++)z.push(M);for(T=_;T{"use strict";var vN=Rr(),hN=gr(),fn=Ce(),$h=aa(),dN=oa(),pN=Tr(),Kh=dN.cleanId,H1e=dN.getFromTrace,k_=hN.traceIs,U1e=["x","y","z"];Ai.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&fn.log("Clearing previous rejected promises from queue."),e._promises=[]};Ai.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=($h.subplotsRegistry.cartesian||{}).attrRegex,n=($h.subplotsRegistry.polar||{}).attrRegex,i=($h.subplotsRegistry.ternary||{}).attrRegex,o=($h.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),pN.clean(e),e.template&&e.template.layout&&Ai.cleanLayout(e.template.layout),e};function pc(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=Kh(t,a,!0))}Ai.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}Ai.hasParent=function(e,r){for(var t=cN(r);t;){if(t in e)return!0;t=cN(t)}return!1};Ai.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>fn.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;afn.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?S_(n,i):!1))return!1}return!0}return!1};Ai.collectionsAreEqual=S_});var R_=N(jr=>{"use strict";var Vy=Sr(),Y1e=Rr(),W1e=Ib(),tr=Ce(),St=tr.nestedProperty,C_=oh(),xn=ZS(),Mi=gr(),$y=If(),_r=aa(),cn=Ir(),j1e=e5(),Z1e=hi(),q_=Wr(),X1e=Tr(),J1e=T_().initInteractions,$1e=ll(),K1e=zo().clearOutline,_N=js().dfltConfig,Uy=sN(),na=yN(),dt=wy(),ls=Ji(),Q1e=Ea().AX_NAME_PATTERN,L_=0,mN=5;function eye(e,r,t,a){var n;if(e=tr.getGraphDiv(e),C_.init(e),tr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=C_.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!tr.isPlotDiv(e)&&tr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return jr.addFrames(e,n)}TN(e,a),t||(t={}),Vy.select(e).classed("js-plotly-plot",!0),q_.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(na.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=na.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(Tye(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),q_.initGradients(e),q_.initPatterns(e),s&&cn.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&_r.doCalcdata(e);for(var v=0;v=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function AN(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Wy(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Wy(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function iye(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof q.parts[P]!="string";)P--;var R=q.parts[P],z=q.parts[P-1]+"."+R,O=q.parts.slice(0,P).join("."),B=St(e.layout,O).get(),Y=St(a,O).get(),G=q.get();if(E!==void 0){x[M]=E,w[M]=R==="reverse"?E:pl(G);var U=$y.getLayoutValObject(a,q.parts);if(U&&U.impliedEdits&&E!==null)for(var V in U.impliedEdits)_(tr.relativeAttr(M,V),U.impliedEdits[V]);if(["width","height"].indexOf(M)!==-1)if(E){_("autosize",null);var X=M==="height"?"width":"height";_(X,a[X])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",E?null:a.width),_("height",E?null:a.height);else if(z.match(RN))k(z),St(a,O+"._inputRange").set(null);else if(z.match(PN)){k(z),St(a,O+"._inputRange").set(null);var Z=St(a,O).get();Z._inputDomain&&(Z._input.domain=Z._inputDomain.slice())}else z.match(uye)&&St(a,O+"._inputDomain").set(null);if(R==="type"){T=B;var re=Y.type==="linear"&&E==="log",ce=Y.type==="log"&&E==="linear";if(re||ce){if(!T||!T.range)_(O+".autorange",!0);else if(Y.autorange)re&&(T.range=T.range[1]>T.range[0]?[1,2]:[2,1]);else{var oe=T.range[0],fe=T.range[1];re?(oe<=0&&fe<=0&&_(O+".autorange",!0),oe<=0?oe=fe/1e6:fe<=0&&(fe=oe/1e6),_(O+".range[0]",Math.log(oe)/Math.LN10),_(O+".range[1]",Math.log(fe)/Math.LN10)):(_(O+".range[0]",Math.pow(10,oe)),_(O+".range[1]",Math.pow(10,fe)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[q.parts[0]]&&q.parts[1]==="radialaxis"&&delete a[q.parts[0]]._subplot.viewInitial["radialaxis.range"],Mi.getComponentMethod("annotations","convertCoords")(e,Y,E,_),Mi.getComponentMethod("images","convertCoords")(e,Y,E,_)}else _(O+".autorange",!0),_(O+".range",null);St(a,O+"._inputRange").set(null)}else if(R.match(Q1e)){var K=St(a,M).get(),Te=(E||{}).type;(!Te||Te==="-")&&(Te="linear"),Mi.getComponentMethod("annotations","convertCoords")(e,K,Te,_),Mi.getComponentMethod("images","convertCoords")(e,K,Te,_)}var le=Uy.containerArrayMatch(M);if(le){f=le.array,c=le.index;var pe=le.property,ie=U||{editType:"calc"};c!==""&&pe===""&&(Uy.isAddVal(E)?w[M]=null:Uy.isRemoveVal(E)?w[M]=(St(t,f).get()||[])[c]:tr.warn("unrecognized full object value",r)),ls.update(m,ie),u[f]||(u[f]={});var ve=u[f][c];ve||(ve=u[f][c]={}),ve[pe]=E,delete r[M]}else R==="reverse"?(B.range?B.range.reverse():(_(O+".autorange",!0),B.range=[1,0]),Y.autorange?m.calc=!0:m.plot=!0):(M==="dragmode"&&(E===!1&&G!==!1||E!==!1&&G===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(E==="lasso"||E==="select")&&!(G==="lasso"||G==="select")?m.plot=!0:U?ls.update(m,U):m.calc=!0,q.set(E))}}for(f in u){var W=Uy.applyContainerArrayChanges(e,i(t,f),u[f],m,i);W||(m.plot=!0)}for(var Q in b){T=cn.getFromId(e,Q);var j=T&&T._constraintGroup;if(j){m.calc=!0;for(var ye in j)b[ye]||(cn.getFromId(e,ye)._constraintShrinkable=!0)}}(NN(e)||r.height||r.width)&&(m.plot=!0);var _e=a.shapes;for(c=0;c<_e.length;c++)if(_e[c].showlegend){m.calc=!0;break}return(m.plot||m.calc)&&(m.layoutReplot=!0),{flags:m,rangesAltered:b,undoit:w,redoit:x,eventData:s}}function NN(e){var r=e._fullLayout,t=r.width,a=r.height;return e.layout.autosize&&_r.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==a}function Xy(e,r,t,a){e=tr.getGraphDiv(e),na.clearPromiseQueue(e),tr.isPlainObject(r)||(r={}),tr.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var n=na.coerceTraceIndices(e,a),i=EN(e,tr.extendFlat({},r),n),o=i.flags,l=FN(e,tr.extendFlat({},t)),s=l.flags;(o.calc||s.calc)&&(e.calcdata=void 0),o.clearAxisTypes&&na.clearAxisTypes(e,n,t);var u=[];s.layoutReplot?u.push(dt.layoutReplot):o.fullReplot?u.push(jr._doPlot):(u.push(_r.previousPromises),DN(e,s,l)||_r.supplyDefaults(e),o.style&&u.push(dt.doTraceStyle),(o.colorbars||s.colorbars)&&u.push(dt.doColorBars),s.legend&&u.push(dt.doLegend),s.layoutstyle&&u.push(dt.layoutStyles),s.axrange&&Ky(u,l.rangesAltered),s.ticks&&u.push(dt.doTicksRelayout),s.modebar&&u.push(dt.doModeBar),s.camera&&u.push(dt.doCamera),u.push(e0)),u.push(_r.rehover,_r.redrag,_r.reselect),xn.add(e,Xy,[e,i.undoit,l.undoit,i.traces],Xy,[e,i.redoit,l.redoit,i.traces]);var f=tr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve(e)),f.then(function(){return e.emit("plotly_update",{data:i.eventData,layout:l.eventData}),e})}function D_(e){return function(t){t._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,a}}var fye=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^(map\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],cye=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function gN(e,r){for(var t=0;t1;)if(a.pop(),t=St(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function vye(e,r){for(var t=0;t[O,e._ev.listeners(O)]);i=jr.newPlot(e,r,t,a).then(()=>{for(let[O,B]of z)B.forEach(Y=>e.on(O,Y));return jr.react(e,r,t,a)})}else{e.data=r||[],na.cleanData(e.data),e.layout=t||{},na.cleanLayout(e.layout),dye(e.data,e.layout,l,s),_r.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,d=v.datarevision===void 0,p=v.transition,y=mye(e,s,v,d,p),m=y.newDataRevision,x=yye(e,l,c,d,p,m);if(NN(e)&&(y.layoutReplot=!0),x.calc||y.calc){e.calcdata=void 0;for(var w=Object.getOwnPropertyNames(v),_=0;_(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function yye(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=ls.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var p=$y.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var R=a._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(R){if(R.length!==0){for(var z=0;za._timeToNext&&p()};R()}var m=0;function x(R){return Array.isArray(n)?m>=n.length?R.transitionOpts=n[m]:R.transitionOpts=n[0]:R.transitionOpts=n,m++,R}var w,_,b=[],T=r==null,k=Array.isArray(r),M=!T&&!k&&tr.isPlainObject(r);if(M)b.push({type:"object",data:x(tr.extendFlat({},r))});else if(T||["string","number"].indexOf(typeof r)!==-1)for(w=0;w0&&DD)&&P.push(_);b=P}}b.length>0?v(b):(e.emit("plotly_animated"),u())})}function bye(e,r,t){if(e=tr.getGraphDiv(e),r==null)return Promise.resolve();if(!tr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(tr.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,y=s[d]||c[d];d&&p&&typeof p=="number"&&y&&L_q.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&tr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=_r.modifyFrames,s=_r.modifyFrames,u=[e,o],f=[e,i];return xn&&xn.add(e,l,u,s,f),_r.modifyFrames(e,i)}function _ye(e){e=tr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),C_.purge(e),r._container&&r._container.remove(),delete e._context,e}function wye(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!tr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=tr.inverseTransformMatrix(tr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function Tye(e){var r=Vy.select(e),t=e._fullLayout;if(t._calcInverseTransform=wye,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Vy.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=tr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr($1e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}jr.animate=gye;jr.addFrames=bye;jr.deleteFrames=xye;jr.addTraces=LN;jr.deleteTraces=CN;jr.extendTraces=SN;jr.moveTraces=E_;jr.prependTraces=qN;jr.newPlot=nye;jr._doPlot=eye;jr.purge=_ye;jr.react=pye;jr.redraw=aye;jr.relayout=Qh;jr.restyle=jy;jr.setPlotConfig=rye;jr.update=Xy;jr._guiRelayout=D_(Qh);jr._guiRestyle=D_(jy);jr._guiUpdate=D_(Xy);jr._storeDirectGUIEdit=sye});var yl=N(Io=>{"use strict";var Aye=gr();Io.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Io.getRedrawFunc=function(e){return function(){Aye.getComponentMethod("colorbar","draw")(e)}};Io.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Io.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var zN=window.URL||window.webkitURL;Io.createObjectURL=function(e){return zN.createObjectURL(e)};Io.revokeObjectURL=function(e){return zN.revokeObjectURL(e)};Io.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=Mye(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Io.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Mye(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var F_=Sr(),xPe=Ce(),kye=Wr(),Sye=Tr(),_Pe=ll(),P_=/"/g,r0="TOBESTRIPPED",qye=new RegExp('("'+r0+")|("+r0+'")',"g");function Lye(e){var r=F_.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function Cye(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}IN.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(kye.setRect,0,0,l,s).call(Sye.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var Eye=Ce(),Dye=Qs().EventEmitter,t0=yl();function Rye(e){var r=e.emitter||new Dye,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),y=new i,m,x;l==="svg"||Eye.isSafari()?x=t0.encodeSVG(o):(m=t0.createBlob(o,"svg"),x=t0.createObjectURL(m)),s.width=v,s.height=d,y.onload=function(){var w;switch(m=null,t0.revokeObjectURL(x),l!=="svg"&&p.drawImage(y,0,0,v,d),l){case"jpeg":w=s.toDataURL("image/jpeg");break;case"png":w=s.toDataURL("image/png");break;case"webp":w=s.toDataURL("image/webp");break;case"svg":w=x;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return r.emit("error",_)}a(w),e.promise||r.emit("success",w)},y.onerror=function(w){if(m=null,t0.revokeObjectURL(x),n(w),!e.promise)return r.emit("error",w)},y.src=x});return e.promise?t:r}ON.exports=Rye});var z_=N((APe,UN)=>{"use strict";var BN=Rr(),HN=R_(),Pye=aa(),Oo=Ce(),a0=yl(),Fye=Qy(),Nye=em(),zye=op().version,N_={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Iye(e,r){r=r||{};var t,a,n,i;Oo.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Oo.getGraphDiv(e),t=Oo.extendDeep([],e.data),a=Oo.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||Oo.validate(r[k],N_[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Oo.join2(N_.format.values,", "," or ")+".");var l={};function s(k,M){return Oo.coerce(r,l,N_,k,M)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var m=Oo.extendFlat({},a);f?m.width=f:r.width===null&&BN(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&BN(i.height)&&(m.height=i.height);var x=Oo.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),w=a0.getRedrawFunc(y);function _(){return new Promise(function(k){setTimeout(k,a0.getDelay(y._fullLayout))})}function b(){return new Promise(function(k,M){var q=Fye(y,u,v),E=y._fullLayout.width,D=y._fullLayout.height;function P(){HN.purge(y),document.body.removeChild(y)}if(u==="full-json"){var R=Pye.graphJson(y,!1,"keepdata","object",!0,!0);return R.version=zye,R=JSON.stringify(R),P(),k(p?R:a0.encodeJSON(R))}if(P(),u==="svg")return k(p?q:a0.encodeSVG(q));var z=document.createElement("canvas");z.id=Oo.randstr(),Nye({format:u,width:E,height:D,scale:v,canvas:z,svg:q,promise:!0}).then(k).catch(M)})}function T(k){return p?k.replace(a0.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){HN.newPlot(y,t,m,x).then(w).then(_).then(b).then(function(q){k(T(q))}).catch(function(q){M(q)})})}UN.exports=Iye});var YN=N((MPe,VN)=>{"use strict";var ki=Ce(),Oye=aa(),Bye=If(),Hye=js().dfltConfig,oo=ki.isPlainObject,Mu=Array.isArray,I_=ki.isArrayOrTypedArray;VN.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=Bye.get(),n=[],i={_context:ki.extendFlat({},Hye)},o,l;Mu(r)?(i.data=ki.extendDeep([],r),o=r):(i.data=[],o=[],n.push(qa("array","data"))),oo(t)?(i.layout=ki.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(qa("object","layout"))),Oye.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fc.length&&a.push(qa("unused",n,u.concat(c.length)));var x=c.length,w=Array.isArray(m);w&&(x=Math.min(x,m.length));var _,b,T,k,M;if(v.dimensions===2)for(b=0;bc[b].length&&a.push(qa("unused",n,u.concat(b,c[b].length)));var q=c[b].length;for(_=0;_<(w?Math.min(q,m[b].length):q);_++)T=w?m[b][_]:m,k=f[b][_],M=c[b][_],ki.validate(k,T)?M!==k&&M!==+k&&a.push(qa("dynamic",n,u.concat(b,_),k,M)):a.push(qa("value",n,u.concat(b,_),k))}else a.push(qa("array",n,u.concat(b),f[b]));else for(b=0;b{"use strict";var Zye=Ce(),tm=yl();function Xye(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=tm.createBlob(e,t),u=tm.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),tm.revokeObjectURL(u),s=null,o(r);if(Zye.isSafari()){var f=t==="svg"?",":";base64,";return tm.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}WN.exports=Xye});var O_=N((qPe,XN)=>{"use strict";var ZN=Ce(),Jye=z_(),$ye=jN(),SPe=yl();function Kye(e,r){var t;return ZN.isPlainObject(e)||(t=ZN.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=Jye(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),$ye(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}XN.exports=Kye});var ez=N(B_=>{"use strict";var In=Ce(),On=In.isPlainObject,JN=If(),$N=aa(),Qye=gn(),KN=At(),QN=js().dfltConfig;B_.makeTemplate=function(e){e=In.isPlainObject(e)?e:In.getGraphDiv(e),e=In.extendDeep({_context:QN},{data:e.data,layout:e.layout}),$N.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};n0(d,p,rme.bind(null,d));var y=In.coerce(d,{},Qye,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),n0(t,a.layout,eme.bind(null,t)),delete a.layout.template;var n=t.template;if(On(n)){var i=n.layout,o,l,s,u,f,c;On(i)&&am(i,a.layout);var v=n.data;if(On(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;ox?o.push({code:"unused",traceType:d,templateCount:m,dataCount:x}):x>m&&o.push({code:"reused",traceType:d,templateCount:m,dataCount:x})}}function w(_,b){for(var T in _)if(T.charAt(0)!=="_"){var k=_[T],M=Si(_,T,b);On(k)?(Array.isArray(_)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),w(k,M)):Array.isArray(k)&&tme(k)&&w(k,M)}}if(w({data:s,layout:l},""),o.length)return o.map(ame)};function tme(e){for(var r=0;r{"use strict";var ma=R_();Rt._doPlot=ma._doPlot;Rt.newPlot=ma.newPlot;Rt.restyle=ma.restyle;Rt.relayout=ma.relayout;Rt.redraw=ma.redraw;Rt.update=ma.update;Rt._guiRestyle=ma._guiRestyle;Rt._guiRelayout=ma._guiRelayout;Rt._guiUpdate=ma._guiUpdate;Rt._storeDirectGUIEdit=ma._storeDirectGUIEdit;Rt.react=ma.react;Rt.extendTraces=ma.extendTraces;Rt.prependTraces=ma.prependTraces;Rt.addTraces=ma.addTraces;Rt.deleteTraces=ma.deleteTraces;Rt.moveTraces=ma.moveTraces;Rt.purge=ma.purge;Rt.addFrames=ma.addFrames;Rt.deleteFrames=ma.deleteFrames;Rt.animate=ma.animate;Rt.setPlotConfig=ma.setPlotConfig;var nme=$v().getGraphDiv,ime=py().eraseActiveShape;Rt.deleteActiveShape=function(e){return ime(nme(e))};Rt.toImage=z_();Rt.validate=YN();Rt.downloadImage=O_();var rz=ez();Rt.makeTemplate=rz.makeTemplate;Rt.validateTemplate=rz.validateTemplate});var U_=N((EPe,az)=>{"use strict";var H_=Ce(),ome=gr();az.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=ome.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=H_.minRowLength(i);o?l=Math.min(u,H_.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=H_.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var yc=N((DPe,oz)=>{"use strict";var nz=Ce().dateTick0,lme=Nt(),sme=lme.ONEWEEK;function iz(e,r){return e%sme===0?nz(r,1):nz(r,0)}oz.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",iz(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",iz(l,t.ycalendar)),n("yperiodalignment"))}}});var uz=N((RPe,sz)=>{"use strict";var lz=["orientation","groupnorm","stackgaps"];sz.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var fz=Tr(),cz=jn().hasColorscale,vz=ul(),ume=Rn();hz.exports=function(r,t,a,n,i,o){var l=ume.isBubble(r),s=(r.line||{}).color,u;if(o=o||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),cz(r,"marker")&&vz(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=fz.background:u=fz.defaultLine,i("marker.line.color",u),cz(r,"marker.line")&&vz(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0)),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var V_=N((FPe,dz)=>{"use strict";var fme=Ce().isArrayOrTypedArray,cme=jn().hasColorscale,vme=ul();dz.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),cme(r,"line"))vme(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(fme(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var Y_=N((NPe,pz)=>{"use strict";pz.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var W_=N((zPe,yz)=>{"use strict";var hme=Ce();yz.exports=function(e,r,t,a,n){n=n||{},a("textposition"),hme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var j_=N((IPe,gz)=>{"use strict";var im=Tr(),mz=Ce().isArrayOrTypedArray;function dme(e){for(var r=im.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var bz=Ce(),pme=gr(),yme=wi(),mme=Wh(),mc=Rn(),gme=U_(),bme=yc(),xme=uz(),_me=G_(),wme=V_(),xz=Y_(),Tme=W_(),Ame=j_(),Mme=Ce().coercePattern;_z.exports=function(r,t,a,n){function i(d,p){return bz.coerce(r,t,yme,d,p)}var o=gme(r,t,n,i);if(o||(t.visible=!1),!!t.visible){bme(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=xme(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var kme=Tu().getAxisGroup;Tz.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=kme(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,y=p[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=y.offsetIndex)}});var Mz=N((HPe,Az)=>{"use strict";var Sme=Ce(),qme=i0(),Lme=wi();Az.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return Sme.coerce(n._input,n,Lme,v)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var Sz=N((UPe,kz)=>{"use strict";var Cme=Ce(),Eme=jp();kz.exports=function(e,r){function t(n,i){return Cme.coerce(e,r,Eme,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var gc=N((GPe,Lz)=>{"use strict";var Dme=Rr(),qz=Ce(),Rme=qz.dateTime2ms,om=qz.incrementMonth,Pme=Nt(),Fme=Pme.ONEAVGMONTH;Lz.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(Dme(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],d=Rme(v,u)||0,p=[],y=[],m=[],x=n.length,w=0;w_;)k=om(k,-l,u);for(;k<=_;)k=om(k,l,u);T=om(k,-l,u)}else{for(b=Math.round((_-d)/o),k=d+b*o;k>_;)k-=o;for(;k<=_;)k+=o;T=k-o}p[w]=f?T:c?k:(T+k)/2,y[w]=T,m[w]=k}return{vals:p,starts:y,ends:m}}});var J_=N((VPe,Ez)=>{"use strict";var Z_=jn().hasColorscale,X_=Uf(),Cz=Rn();Ez.exports=function(r,t){Cz.hasLines(t)&&Z_(t,"line")&&X_(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),Cz.hasMarkers(t)&&(Z_(t,"marker")&&X_(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Z_(t,"marker.line")&&X_(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var lm=N((YPe,Dz)=>{"use strict";var Wt=Ce();Dz.exports=function(r,t){for(var a=0;a{"use strict";var Rz=Ce();Pz.exports=function(r,t){Rz.isArrayOrTypedArray(t.selectedpoints)&&Rz.tagSelected(r,t)}});var um=N((jPe,Hz)=>{"use strict";var Fz=Rr(),K_=Ce(),o0=Ir(),Nz=gc(),$_=Nt().BADNUM,Q_=Rn(),Nme=J_(),zme=lm(),Ime=sm();function Ome(e,r){var t=e._fullLayout,a=r._xA=o0.getFromId(e,r.xaxis||"x","x"),n=r._yA=o0.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=Nz(r,a,"x",i),s=Nz(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=e4(r,t,a,n),y=!1,m,x,w,_,b,T;Oz(t,r);var k="x",M="y",q;if(p)K_.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(M="s",q="x"):(k="s",q="y"),b=p.stackgaps==="interpolate";else{var E=Iz(r,c);zz(e,r,a,n,u,f,E)}var D=!!r.xperiodalignment,P=!!r.yperiodalignment;for(x=0;xx&&v[_].gap;)_--;for(T=v[_].s,w=v.length-1;w>_;w--)v[w].s=T;for(;x<_;)if(x++,v[x].gap){for(w=x+1;v[w].gap;)w++;for(var B=v[x-1][q],Y=v[x-1].s,G=(v[w].s-Y)/(v[w][q]-B);x{"use strict";Uz.exports=fm;var Bme=Ce().distinctVals;function fm(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var qi=Rr(),ss=Ce().isArrayOrTypedArray,bc=Nt().BADNUM,Hme=gr(),l0=Ir(),Ume=Tu().getAxisGroup,cm=Gz();function Gme(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!qi(l))}for(var f=0;f{"use strict";var Zz=um(),Xz=vm().setGroupPositions;function rge(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uE[f]&&f{"use strict";var age=Wr(),rI=Nt(),s0=rI.BADNUM,tI=rI.LOG_CLIP,Kz=tI+.5,Qz=tI-.5,hm=Ce(),nge=hm.segmentsIntersect,eI=hm.constrain,o4=Wh();aI.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,y=p==="linear",m=a.fill&&a.fill!=="none",x=[],w=o4.minTolerance,_=r.length,b=new Array(_),T=0,k,M,q,E,D,P,R,z,O,B,Y,G,U,V,X,Z;function re(Fe){var ne=r[Fe];if(!ne)return!1;var de=t.linearized?n.l2p(ne.x):n.c2p(ne.x),De=t.linearized?i.l2p(ne.y):i.c2p(ne.y);if(de===s0){if(o&&(de=n.c2p(ne.x,!0)),de===s0)return!1;l&&De===s0&&(de*=Math.abs(n._m*u*(n._m>0?Kz:Qz)/(i._m*s*(i._m>0?Kz:Qz)))),de*=1e3}if(De===s0){if(l&&(De=i.c2p(ne.y,!0)),De===s0)return!1;De*=1e3}return[de,De]}function ce(Fe,ne,de,De){var Le=de-Fe,ar=De-ne,sr=.5-Fe,nr=.5-ne,Mr=Le*Le+ar*ar,Or=Le*sr+ar*nr;if(Or>0&&Or1||Math.abs(sr.y-de[0][1])>1)&&(sr=[sr.x,sr.y],De&&Te(sr,Fe)ie||Fe[1]W)return[eI(Fe[0],pe,ie),eI(Fe[1],ve,W)]}function Ge(Fe,ne){if(Fe[0]===ne[0]&&(Fe[0]===pe||Fe[0]===ie)||Fe[1]===ne[1]&&(Fe[1]===ve||Fe[1]===W))return!0}function He(Fe,ne){var de=[],De=ze(Fe),Le=ze(ne);return De&&Le&&Ge(De,Le)||(De&&de.push(De),Le&&de.push(Le)),de}function Ee(Fe,ne,de){return function(De,Le){var ar=ze(De),sr=ze(Le),nr=[];if(ar&&sr&&Ge(ar,sr))return nr;ar&&nr.push(ar),sr&&nr.push(sr);var Mr=2*hm.constrain((De[Fe]+Le[Fe])/2,ne,de)-((ar||De)[Fe]+(sr||Le)[Fe]);if(Mr){var Or;ar&&sr?Or=Mr>0==ar[Fe]>sr[Fe]?ar:sr:Or=ar||sr,Or[Fe]+=Mr}return nr}}var Ie;p==="linear"||p==="spline"?Ie=Re:p==="hv"||p==="vh"?Ie=He:p==="hvh"?Ie=Ee(0,pe,ie):p==="vhv"&&(Ie=Ee(1,ve,W));function Be(Fe,ne){var de=ne[0]-Fe[0],De=(ne[1]-Fe[1])/de,Le=(Fe[1]*ne[0]-ne[1]*Fe[0])/de;return Le>0?[De>0?pe:ie,W]:[De>0?ie:pe,ve]}function se(Fe){var ne=Fe[0],de=Fe[1],De=ne===b[T-1][0],Le=de===b[T-1][1];if(!(De&&Le))if(T>1){var ar=ne===b[T-2][0],sr=de===b[T-2][1];De&&(ne===pe||ne===ie)&&ar?sr?T--:b[T-1]=Fe:Le&&(de===ve||de===W)&&sr?ar?T--:b[T-1]=Fe:b[T++]=Fe}else b[T++]=Fe}function Ae(Fe){b[T-1][0]!==Fe[0]&&b[T-1][1]!==Fe[1]&&se([_e,me]),se(Fe),Pe=null,_e=me=0}var je=hm.isArrayOrTypedArray(c);function ur(Fe){if(Fe&&f&&(Fe.i=k,Fe.d=r,Fe.trace=a,Fe.marker=je?c[Fe.i]:c,Fe.backoff=f),oe=Fe[0]/s,fe=Fe[1]/u,j=Fe[0]ie?ie:0,ye=Fe[1]W?W:0,j||ye){if(!T)b[T++]=[j||Fe[0],ye||Fe[1]];else if(Pe){var ne=Ie(Pe,Fe);ne.length>1&&(Ae(ne[0]),b[T++]=ne[1])}else Ne=Ie(b[T-1],Fe)[0],b[T++]=Ne;var de=b[T-1];j&&ye&&(de[0]!==j||de[1]!==ye)?(Pe&&(_e!==j&&me!==ye?se(_e&&me?Be(Pe,Fe):[_e||j,me||ye]):_e&&me&&se([_e,me])),se([j,ye])):_e-j&&me-ye&&se([j||_e,ye||me]),Pe=Fe,_e=j,me=ye}else Pe&&Ae(Ie(Pe,Fe)[0]),b[T++]=Fe}for(k=0;k<_;k++)if(M=re(k),!!M){for(T=0,Pe=null,ur(M),k++;k<_;k++){if(E=re(k),!E){if(v)continue;break}if(!y||!t.simplify){ur(E);continue}var lr=re(k+1);if(B=Te(E,M),!(!(m&&(T===0||T===_-1))&&BK(P,lr))break;q=P,U=O[0]*z[0]+O[1]*z[1],U>Y?(Y=U,E=P,R=!1):U=r.length||!P)break;ur(P),M=P}}Pe&&se([_e||Pe[0],me||Pe[1]]),x.push(b.slice(0,T))}var ue=p.slice(p.length-1);if(f&&ue!=="h"&&ue!=="v"){for(var qe=!1,Oe=-1,Ze=[],Ue=0;Ue{"use strict";var nI={tonextx:1,tonexty:1,tonext:1};iI.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var lo=Sr(),ige=gr(),u0=Ce(),_c=u0.ensureSingle,sI=u0.identity,jt=Wr(),wc=Rn(),oge=l4(),lge=oI(),dm=a_().tester;uI.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=lge(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),sge(r,l,t),f){o&&(s=o());var v=lo.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){lI(r,p,t,d,c,this,i)})})}else l.each(function(d,p){lI(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function sge(e,r,t){r.each(function(a){var n=_c(lo.select(this),"g","fills");jt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,sI);l.enter().append("g"),l.exit().each(function(s){i[s]=null}).remove(),l.order().each(function(s){i[s]=_c(lo.select(this),"path","js-fill")})})}function lI(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;uge(e,r,t,a,n);var u=!!o&&o.duration>0;function f(Ee){return u?Ee.transition():Ee}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,y=lo.select(i),m=_c(y,"g","errorbars"),x=_c(y,"g","lines"),w=_c(y,"g","points"),_=_c(y,"g","text");if(ige.getComponentMethod("errorbars","plot")(e,m,t,o),d.visible!==!0)return;f(y).style("opacity",d.opacity);var b,T,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,q;k==="y"?(M=1,q=v.c2p(0,!0)):k==="x"&&(M=0,q=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var E="",D=[],P=d._prevtrace,R=null,z=null;P&&(E=P._prevRevpath||"",T=P._nextFill,D=P._ownPolygons,R=P._fillsegments,z=P._fillElement);var O,B,Y="",G="",U,V,X,Z,re,ce,oe=[];d._polygons=[];var fe=[],K=[],Te=u0.noop;if(b=d._ownFill,wc.hasLines(d)||d.fill!=="none"){T&&T.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(U=jt.steps(p.shape),V=jt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?U=V=function(Ee){var Ie=Ee[Ee.length-1];return Ee.length>1&&Ee[0][0]===Ie[0]&&Ee[0][1]===Ie[1]?jt.smoothclosed(Ee.slice(1),p.smoothing):jt.smoothopen(Ee,p.smoothing)}:U=V=function(Ee){return"M"+Ee.join("L")},X=function(Ee){return V(Ee.reverse())},K=oge(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),fe=new Array(K.length);var le=0;for(s=0;s=l[0]&&y.x<=l[1]&&y.y>=s[0]&&y.y<=s[1]}),v=Math.ceil(c.length/f),d=0;n.forEach(function(y,m){var x=y[0].trace;wc.hasMarkers(x)&&x.marker.maxdisplayed>0&&m{"use strict";fI.exports={container:"marker",min:"cmin",max:"cmax"}});var u4=N((rFe,cI)=>{"use strict";var pm=Ir();cI.exports=function(r,t,a){var n={},i={_fullLayout:a},o=pm.getFromTrace(i,t,"x"),l=pm.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=pm.tickText(o,o.c2l(s),!0).text,n.yLabel=pm.tickText(l,l.c2l(u),!0).text,n}});var ku=N((tFe,vI)=>{"use strict";var f4=Sr(),Tc=Wr(),fge=gr();function cge(e){var r=f4.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=f4.select(this),n=t.trace||t[0].trace;c4(a,n,e)}),r.selectAll("g.text").each(function(t){var a=f4.select(this),n=t.trace||t[0].trace;v4(a,n,e)}),r.selectAll("g.trace path.js-line").call(Tc.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Tc.fillGroupStyle,e,!1),fge.getComponentMethod("errorbars","style")(r)}function c4(e,r,t){Tc.pointStyle(e.selectAll("path.point"),r,t)}function v4(e,r,t){Tc.textPointStyle(e.selectAll("text"),r,t)}function vge(e,r,t){var a=r[0].trace;a.selectedpoints?(Tc.selectedPointStyle(t.selectAll("path.point"),a),Tc.selectedTextStyle(t.selectAll("text"),a)):(c4(t,a,e),v4(t,a,e))}vI.exports={style:cge,stylePoints:c4,styleText:v4,styleOnSelect:vge}});var dI=N((aFe,hI)=>{"use strict";var Ac=Tr(),hge=Rn();hI.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&Ac.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&Ac.opacity(i)?i:o&&Ac.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?Ac.opacity(n)<.3?Ac.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&Ac.opacity(a)&&hge.hasLines(r)&&r.line.width?a:r.fillcolor)}});var d4=N((nFe,yI)=>{"use strict";var ym=Ce(),pI=Fn(),dge=gr(),pge=dI(),h4=Tr(),yge=ym.fillText;yI.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,y=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var m=function(G){if(p){var U=l.c2p(G.xStart),V=l.c2p(G.xEnd);return u>=Math.min(U,V)&&u<=Math.max(U,V)?0:1/0}var X=Math.max(3,G.mrc||0),Z=1-1/X,re=Math.abs(l.c2p(G.x)-u);return re=Math.min(U,V)&&f<=Math.max(U,V)?0:1/0}var X=Math.max(3,G.mrc||0),Z=1-1/X,re=Math.abs(s.c2p(G.y)-f);return reoe!=W>=oe&&(pe=Te[K-1][0],ie=Te[K][0],W-ve&&(le=pe+(ie-pe)*(oe-ve)/(W-ve),X=Math.min(X,le),Z=Math.max(Z,le)));return X=Math.max(X,0),Z=Math.min(Z,l._length),{x0:X,x1:Z,y0:oe,y1:oe}}if(v.indexOf("fills")!==-1&&o._fillElement){var O=R(o._fillElement)&&!R(o._fillExclusionElement);if(O){var B=z(o._polygons);B===null&&(B={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var Y=h4.defaultLine;return h4.opacity(o.fillcolor)?Y=o.fillcolor:h4.opacity((o.line||{}).color)&&(Y=o.line.color),ym.extendFlat(r,{distance:r.maxHoverDistance,x0:B.x0,x1:B.x1,y0:B.y0,y1:B.y1,color:Y,hovertemplate:!1}),delete r.index,o.text&&!ym.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var p4=N((iFe,gI)=>{"use strict";var mI=Rn();gI.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,v=!mI.hasMarkers(l)&&!mI.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";bI.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var AI=N((lFe,TI)=>{"use strict";var c0=gr().traceIs,y4=T1();TI.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(mge(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function mge(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=gge(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!c0(i,"cartesian")||c0(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,wI(i,a)){var u=_I(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(wI(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function _I(e){return{v:"x",h:"y"}[e.orientation||"v"]}function wI(e,r){var t=_I(e),a=c0(e,"box-violin"),n=c0(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var kI=N((sFe,MI)=>{"use strict";var bge=Yn().isTypedArraySpec;function xge(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||bge(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=xge(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var m4=N((uFe,qI)=>{"use strict";var SI=Sn().mix,_ge=si(),wge=Ce();qI.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(q,E){return wge.coerce2(r,t,n.attributes,q,E)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=SI(i,n.bgColor,n.blend||_ge.lightFraction).toRgbString(),c=o("gridcolor",f),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=SI(t.gridcolor,n.bgColor,67).toRgbString(),m=o("minor.gridcolor",y),x=o("minor.gridwidth",t.gridwidth||1),w=o("minor.griddash",t.griddash||"solid"),_=a("minor.showgrid",!!m||!!x||!!w);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=o("zerolinelayer"),T=o("zerolinecolor",i),k=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!T||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var b4=N((fFe,PI)=>{"use strict";var LI=Rr(),Tge=gr(),v0=Ce(),Age=At(),Mge=ro(),g4=hi(),CI=n1(),EI=i1(),kge=l1(),Sge=s1(),qge=kI(),Lge=m4(),Cge=e5(),DI=Xf(),mm=Ea().WEEKDAY_PATTERN,Ege=Ea().HOUR_PATTERN;PI.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var d=Tge.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=v0.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),DI(t,i),Cge(r,t,a,n),qge(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==g4.color.dflt?y:l.color,x=s.label||i._dfltTitle[o];if(Sge(r,t,a,c,n),!u)return t;a("title.text",x),v0.coerceFont(a,"title.font",l,{overrideDflt:{size:v0.bigFont(l.size),color:m}}),CI(r,t,a,c);var w=n.hasMinor;if(w&&(Age.newContainer(t,"minor"),CI(r,t,a,c,{isMinor:!0})),kge(r,t,a,c,n),EI(r,t,a,n),w){var _=n.isMinor;n.isMinor=!0,EI(r,t,a,n),n.isMinor=_}Lge(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:g4}),w&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=c==="multicategory";if(!n.noTickson&&(c==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var T=a("showdividers");T&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Mge(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Dge}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=RI(i[l]),s){o=mm;break}}var u=a("pattern",o);if(u===mm)for(l=0;l<2;l++)s=RI(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case mm:if(!LI(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case Ege:if(!LI(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var Pge=Rr(),gm=Ce();FI.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,d,p,y;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(Pge(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=gm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),x=gm.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(m==="free"){if(l==="y"){var w=a("autoshift");w&&(d=x==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,p=x==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",y);var _=!1;if(o.length&&(_=gm.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var b=a("domain",c);b[0]>b[1]-1/4096&&(t.domain=c),gm.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var VI=N((vFe,GI)=>{"use strict";var Su=Ce(),NI=Tr(),Fge=qo().isUnifiedHover,Nge=k5(),zI=At(),zge=Sf(),II=hi(),Ige=AI(),OI=b4(),Oge=Tu(),BI=x4(),w4=oa(),Bo=w4.id2name,HI=w4.name2id,Bge=Ea().AX_ID_PATTERN,UI=gr(),bm=UI.traceIs,_4=UI.getComponentMethod;function xm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}GI.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},v={},d={},p={},y,m;for(y=0;y{"use strict";var Hge=Sr(),YI=gr(),_m=Ce(),Qn=Wr(),wm=Ir();WI.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){wm.redrawComponents(r);return}function o(m){var x=m.xaxis,w=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(Qn.setTranslate,0,0).call(Qn.setScale,1,1),m.plot.call(Qn.setTranslate,x._offset,w._offset).call(Qn.setScale,1,1);var _=m.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Qn.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Qn.setTextPointsScale,1,1),_.call(Qn.hideOutsideRangePoints,m)}function l(m,x){var w=m.plotinfo,_=w.xaxis,b=w.yaxis,T=_._length,k=b._length,M=!!m.xr1,q=!!m.yr1,E=[];if(M){var D=_m.simpleMap(m.xr0,_.r2l),P=_m.simpleMap(m.xr1,_.r2l),R=D[1]-D[0],z=P[1]-P[0];E[0]=(D[0]*(1-x)+x*P[0]-D[0])/(D[1]-D[0])*T,E[2]=T*(1-x+x*z/R),_.range[0]=_.l2r(D[0]*(1-x)+x*P[0]),_.range[1]=_.l2r(D[1]*(1-x)+x*P[1])}else E[0]=0,E[2]=T;if(q){var O=_m.simpleMap(m.yr0,b.r2l),B=_m.simpleMap(m.yr1,b.r2l),Y=O[1]-O[0],G=B[1]-B[0];E[1]=(O[1]*(1-x)+x*B[1]-O[1])/(O[0]-O[1])*k,E[3]=k*(1-x+x*G/Y),b.range[0]=_.l2r(O[0]*(1-x)+x*B[0]),b.range[1]=b.l2r(O[1]*(1-x)+x*B[1])}else E[1]=0,E[3]=k;wm.drawOne(r,_,{skipTitle:!0}),wm.drawOne(r,b,{skipTitle:!0}),wm.redrawComponents(r,[_._id,b._id]);var U=M?T/E[2]:1,V=q?k/E[3]:1,X=M?E[0]:0,Z=q?E[1]:0,re=M?E[0]/E[2]*T:0,ce=q?E[1]/E[3]*k:0,oe=_._offset-re,fe=b._offset-ce;w.clipRect.call(Qn.setTranslate,X,Z).call(Qn.setScale,1/U,1/V),w.plot.call(Qn.setTranslate,oe,fe).call(Qn.setScale,U,V),Qn.setPointGroupScale(w.zoomScalePts,1/U,1/V),Qn.setTextPointsScale(w.zoomScaleTxt,1/U,1/V)}var s;n&&(s=n());function u(){for(var m={},x=0;xa.duration?(u(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return c=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var Li=N(Ka=>{"use strict";var Am=Sr(),ZI=gr(),qu=Ce(),Uge=aa(),Gge=Wr(),XI=Jp().getModuleCalcData,us=oa(),so=Ea(),Vge=ll(),et=qu.ensureSingle;function Tm(e,r,t){return qu.ensureSingle(e,r,t,function(a){a.datum(t)})}var Lu=so.zindexSeparator;Ka.name="cartesian";Ka.attr=["xaxis","yaxis"];Ka.idRoot=["x","y"];Ka.idRegex=so.idRegex;Ka.attrRegex=so.attrRegex;Ka.attributes=xI();Ka.layoutAttributes=hi();Ka.supplyLayoutDefaults=VI();Ka.transitionAxes=jI();Ka.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u0){var d=v.id;if(d.indexOf(Lu)!==-1)continue;d+=Lu+(u+1),v=qu.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m1&&(T+=Lu+b),_.push(l+T),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=et(a,"path","xlines-above"),r.ylines=et(a,"path","ylines-above"),r.xaxislayer=et(a,"g","xaxislayer-above"),r.yaxislayer=et(a,"g","yaxislayer-above");else{if(!o){var v=et(a,"g","layer-subplot");r.shapelayer=et(v,"g","shapelayer"),r.imagelayer=et(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=et(a,"g","minor-gridlayer"),r.gridlayer=et(a,"g","gridlayer"),r.zerolinelayer=et(a,"g","zerolinelayer"));var d=et(a,"g","layer-between");r.shapelayerBetween=et(d,"g","shapelayer"),r.imagelayerBetween=et(d,"g","imagelayer"),et(a,"path","xlines-below"),et(a,"path","ylines-below"),r.overlinesBelow=et(a,"g","overlines-below"),et(a,"g","xaxislayer-below"),et(a,"g","yaxislayer-below"),r.overaxesBelow=et(a,"g","overaxes-below")}r.overplot=et(a,"g","overplot"),r.plot=et(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=et(a,"g","zerolinelayer-above"),o||(r.xlines=et(a,"path","xlines-above"),r.ylines=et(a,"path","ylines-above"),r.overlinesAbove=et(a,"g","overlines-above"),et(a,"g","xaxislayer-above"),et(a,"g","yaxislayer-above"),r.overaxesAbove=et(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,y=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,et(c.overlinesBelow,"path",y),et(c.overlinesBelow,"path",m),et(c.overaxesBelow,"g",y),et(c.overaxesBelow,"g",m),r.plot=et(c.overplot,"g",n),et(c.overlinesAbove,"path",y),et(c.overlinesAbove,"path",m),et(c.overaxesAbove,"g",y),et(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+l).select("."+y),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+l).select("."+y),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}o||(u||(Tm(r.minorGridlayer,"g",r.xaxis._id),Tm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(x){return x[0]}).sort(us.idSort),Tm(r.gridlayer,"g",r.xaxis._id),Tm(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(x){return x[0]}).sort(us.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function KI(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Am.select(this);f.remove(),QI(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Mm=Rn();eO.exports={hasLines:Mm.hasLines,hasMarkers:Mm.hasMarkers,hasText:Mm.hasText,isBubble:Mm.isBubble,attributes:wi(),layoutAttributes:jp(),supplyDefaults:wz(),crossTraceDefaults:Mz(),supplyLayoutDefaults:Sz(),calc:um().calc,crossTraceCalc:$z(),arraysToCalcdata:lm(),plot:s4(),colorbar:f0(),formatLabels:u4(),style:ku().style,styleOnSelect:ku().styleOnSelect,hoverPoints:d4(),selectPoints:p4(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Li(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var nO=N((yFe,aO)=>{"use strict";var Wge=Sr(),jge=Tr(),tO=p_(),T4=Ce(),Zge=T4.strScale,Xge=T4.strRotate,Jge=T4.strTranslate;aO.exports=function(r,t,a){var n=r.node(),i=tO[a.arrowhead||0],o=tO[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,y,m;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var x=d.x-p.x,w=d.y-p.y;if(y=Math.atan2(w,x),m=y+Math.PI,c&&v&&c+v>Math.sqrt(x*x+w*w)){O();return}if(c){if(c*c>x*x+w*w){O();return}var _=c*Math.cos(y),b=c*Math.sin(y);p.x+=_,p.y+=b,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>x*x+w*w){O();return}var T=v*Math.cos(y),k=v*Math.sin(y);d.x-=T,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),q="";if(M{"use strict";var iO=Sr(),A4=gr(),$ge=aa(),cs=Ce(),M4=cs.strTranslate,d0=Ir(),Cu=Tr(),ml=Wr(),oO=Fn(),k4=Da(),S4=rs(),h0=pi(),Kge=At().arrayEditor,Qge=nO();uO.exports={draw:e2e,drawOne:lO,drawRaw:sO};function e2e(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Le="right":Le="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Le]}for(var ve=!1,W=["x","y"],Q=0;Q1)&&(_e===ye?(lr=me.r2fraction(r["a"+j]),(lr<0||lr>1)&&(ve=!0)):ve=!0),Ie=me._offset+me.r2p(r[j]),Ae=.5}else{var ue=ur==="domain";j==="x"?(se=r[j],Ie=ue?me._offset+me._length*se:Ie=l.l+l.w*se):(se=1-r[j],Ie=ue?me._offset+me._length*se:Ie=l.t+l.h*se),Ae=r.showarrow?.5:se}if(r.showarrow){Ee.head=Ie;var qe=r["a"+j];if(je=Ne*ie(.5,r.xanchor)-Re*ie(.5,r.yanchor),_e===ye){var Oe=d0.getRefType(_e);Oe==="domain"?(j==="y"&&(qe=1-qe),Ee.tail=me._offset+me._length*qe):Oe==="paper"?j==="y"?(qe=1-qe,Ee.tail=l.t+l.h*qe):Ee.tail=l.l+l.w*qe:Ee.tail=me._offset+me.r2p(qe),Be=je}else Ee.tail=Ie+qe,Be=je+qe;Ee.text=Ee.tail+je;var Ze=o[j==="x"?"width":"height"];if(ye==="paper"&&(Ee.head=cs.constrain(Ee.head,1,Ze-1)),_e==="pixel"){var Ue=-Math.max(Ee.tail-3,Ee.text),Xe=Math.min(Ee.tail+3,Ee.text)-Ze;Ue>0?(Ee.tail+=Ue,Ee.text+=Ue):Xe>0&&(Ee.tail-=Xe,Ee.text-=Xe)}Ee.tail+=He,Ee.head+=He}else je=ze*ie(Ae,Ge),Be=je,Ee.text=Ie+je;Ee.text+=He,je+=He,Be+=He,r["_"+j+"padplus"]=ze/2+Be,r["_"+j+"padminus"]=ze/2-Be,r["_"+j+"size"]=ze,r["_"+j+"shift"]=je}if(ve){M.remove();return}var Ke=0,hr=0;if(r.align!=="left"&&(Ke=(K-oe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(hr=(Te-fe)*(r.valign==="middle"?.5:1)),re)Z.select("svg").attr({x:D+Ke-1,y:D+hr}).call(ml.setClipUrl,R?y:null,e);else{var $e=D+hr-ce.top,Fe=D+Ke-ce.left;Y.call(k4.positionText,Fe,$e).call(ml.setClipUrl,R?y:null,e)}z.select("rect").call(ml.setRect,D,D,K,Te),P.call(ml.setRect,q/2,q/2,le-q,pe-q),M.call(ml.setTranslate,Math.round(m.x.text-le/2),Math.round(m.y.text-pe/2)),_.attr({transform:"rotate("+x+","+m.x.text+","+m.y.text+")"});var ne=function(De,Le){w.selectAll(".annotation-arrow-g").remove();var ar=m.x.head,sr=m.y.head,nr=m.x.tail+De,Mr=m.y.tail+Le,Or=m.x.text+De,Zr=m.y.text+Le,Yr=cs.rotationXYMatrix(x,Or,Zr),Vt=cs.apply2DTransform(Yr),wt=cs.apply2DTransform2(Yr),Tt=+P.attr("width"),pt=+P.attr("height"),Xt=Or-.5*Tt,Jt=Xt+Tt,It=Zr-.5*pt,za=It+pt,br=[[Xt,It,Xt,za],[Xt,za,Jt,za],[Jt,za,Jt,It],[Jt,It,Xt,It]].map(wt);if(!br.reduce(function(ft,_a){return ft^!!cs.segmentsIntersect(ar,sr,ar+1e6,sr+1e6,_a[0],_a[1],_a[2],_a[3])},!1)){br.forEach(function(ft){var _a=cs.segmentsIntersect(nr,Mr,ar,sr,ft[0],ft[1],ft[2],ft[3]);_a&&(nr=_a.x,Mr=_a.y)});var yt=r.arrowwidth,Nr=r.arrowcolor,ut=r.arrowside,Pt=w.append("g").style({opacity:Cu.opacity(Nr)}).classed("annotation-arrow-g",!0),Qr=Pt.append("path").attr("d","M"+nr+","+Mr+"L"+ar+","+sr).style("stroke-width",yt+"px").call(Cu.stroke,Cu.rgb(Nr));if(Qge(Qr,ut,r),s.annotationPosition&&Qr.node().parentNode&&!a){var ct=ar,xa=sr;if(r.standoff){var $t=Math.sqrt(Math.pow(ar-nr,2)+Math.pow(sr-Mr,2));ct+=r.standoff*(nr-ar)/$t,xa+=r.standoff*(Mr-sr)/$t}var tn=Pt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(nr-ct)+","+(Mr-xa),transform:M4(ct,xa)}).style("stroke-width",yt+6+"px").call(Cu.stroke,"rgba(0,0,0,0)").call(Cu.fill,"rgba(0,0,0,0)"),Tn,Kt;h0.init({element:tn.node(),gd:e,prepFn:function(){var ft=ml.getTranslate(M);Tn=ft.x,Kt=ft.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(ft,_a){var Ko=Vt(Tn,Kt),Qo=Ko[0]+ft,vt=Ko[1]+_a;M.call(ml.setTranslate,Qo,vt),d("x",fs(n,ft,"x",l,r)),d("y",fs(i,_a,"y",l,r)),r.axref===r.xref&&d("ax",fs(n,ft,"ax",l,r)),r.ayref===r.yref&&d("ay",fs(i,_a,"ay",l,r)),Pt.attr("transform",M4(ft,_a)),_.attr({transform:"rotate("+x+","+Qo+","+vt+")"})},doneFn:function(){A4.call("_guiRelayout",e,p());var ft=document.querySelector(".js-notes-box-panel");ft&&ft.redraw(ft.selectedObj)}})}}};if(r.showarrow&&ne(0,0),b){var de;h0.init({element:M.node(),gd:e,prepFn:function(){de=_.attr("transform")},moveFn:function(De,Le){var ar="pointer";if(r.showarrow)r.axref===r.xref?d("ax",fs(n,De,"ax",l,r)):d("ax",r.ax+De),r.ayref===r.yref?d("ay",fs(i,Le,"ay",l.w,r)):d("ay",r.ay+Le),ne(De,Le);else{if(a)return;var sr,nr;if(n)sr=fs(n,De,"x",l,r);else{var Mr=r._xsize/l.w,Or=r.x+(r._xshift-r.xshift)/l.w-Mr/2;sr=h0.align(Or+De/l.w,Mr,0,1,r.xanchor)}if(i)nr=fs(i,Le,"y",l,r);else{var Zr=r._ysize/l.h,Yr=r.y-(r._yshift+r.yshift)/l.h-Zr/2;nr=h0.align(Yr-Le/l.h,Zr,0,1,r.yanchor)}d("x",sr),d("y",nr),(!n||!i)&&(ar=h0.getCursor(n?.5:sr,i?.5:nr,r.xanchor,r.yanchor))}_.attr({transform:M4(De,Le)+de}),S4(M,ar)},clickFn:function(De,Le){r.captureevents&&e.emit("plotly_clickannotation",k(Le))},doneFn:function(){S4(M),A4.call("_guiRelayout",e,p());var De=document.querySelector(".js-notes-box-panel");De&&De.redraw(De.selectedObj)}})}}s.annotationText?Y.call(k4.makeEditable,{delegate:M,gd:e}).call(G).on("edit",function(V){r.text=V,this.call(G),d("text",V),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),A4.call("_guiRelayout",e,p())}):Y.call(G)}});var pO=N((gFe,dO)=>{"use strict";var fO=Ce(),r2e=gr(),cO=At().arrayEditor;dO.exports={hasClickToShow:t2e,onClick:a2e};function t2e(e,r){var t=hO(e,r);return t.on.length>0||t.explicitOff.length>0}function a2e(e,r){var t=hO(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var q4=Ce(),Mc=Tr();yO.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=Mc.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),q4.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:Mc.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),y=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",y.bgcolor||(Mc.opacity(i)?Mc.rgb(i):Mc.defaultLine)),x=n("hoverlabel.bordercolor",y.bordercolor||Mc.contrast(m)),w=q4.extendFlat({},y.font);w.color||(w.color=x),q4.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!p)}});var gO=N((xFe,mO)=>{"use strict";var C4=Ce(),Eu=Ir(),n2e=ro(),i2e=L4(),o2e=dc();mO.exports=function(r,t){n2e(r,t,{name:"annotations",handleItemDefaults:l2e})};function l2e(e,r,t){function a(_,b){return C4.coerce(e,r,o2e,_,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){i2e(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],v=Eu.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=Eu.getFromId(u,v);d._annIndices.push(r._index)}if(Eu.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,y=Eu.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==v&&(y=r[p]="pixel");var m=y==="pixel"?s[f]:.4;Eu.coercePosition(r,u,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(C4.noneOrAll(e,r,["x","y"]),o&&C4.noneOrAll(e,r,["ax","ay"]),i){var x=a("xclick"),w=a("yclick");r._xclick=x===void 0?r.x:Eu.cleanPosition(x,u,r.xref),r._yclick=w===void 0?r.y:Eu.cleanPosition(w,u,r.yref)}}}});var _O=N((_Fe,xO)=>{"use strict";var E4=Ce(),Du=Ir(),s2e=km().draw;xO.exports=function(r){var t=r._fullLayout,a=E4.filterVisible(t.annotations);if(a.length&&r._fullData.length)return E4.syncOrAsync([s2e,u2e],r)};function u2e(e){var r=e._fullLayout;E4.filterVisible(r.annotations).forEach(function(t){var a=Du.getFromId(e,t.xref),n=Du.getFromId(e,t.yref),i=Du.getRefType(t.xref),o=Du.getRefType(t.yref);t._extremes={},i==="range"&&bO(t,a),o==="range"&&bO(t,n)})}function bO(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,y=p+f,m=p-f,x;if(l===o){var w=Du.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=Du.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,m)});x={min:[w.min[0],_.min[0]],max:[w.max[0],_.max[0]]}}else y=i?y+i:y,m=i?m-i:m,x=Du.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,y),ppadminus:Math.max(u,d,m)});e._extremes[t]=x}});var TO=N((wFe,wO)=>{"use strict";var f2e=Rr(),c2e=yp();wO.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],y=null;i?y=c2e(p,t.range):y=Math.pow(10,p),f2e(y)||(y=null),n(f+d,y)}for(var v=0;v{"use strict";var D4=km(),AO=pO();MO.exports={moduleType:"component",name:"annotations",layoutAttributes:dc(),supplyLayoutDefaults:gO(),includeBasePlot:jh()("annotations"),calcAutorange:_O(),draw:D4.draw,drawOne:D4.drawOne,drawRaw:D4.drawRaw,hasClickToShow:AO.hasClickToShow,onClick:AO.onClick,convertCoords:TO()}});var Sm=N((AFe,SO)=>{"use strict";var qt=dc(),v2e=Ji().overrideAll,h2e=At().templatedArray;SO.exports=v2e(h2e("annotation",{visible:qt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:qt.xanchor,xshift:qt.xshift,yanchor:qt.yanchor,yshift:qt.yshift,text:qt.text,textangle:qt.textangle,font:qt.font,width:qt.width,height:qt.height,opacity:qt.opacity,align:qt.align,valign:qt.valign,bgcolor:qt.bgcolor,bordercolor:qt.bordercolor,borderpad:qt.borderpad,borderwidth:qt.borderwidth,showarrow:qt.showarrow,arrowcolor:qt.arrowcolor,arrowhead:qt.arrowhead,startarrowhead:qt.startarrowhead,arrowside:qt.arrowside,arrowsize:qt.arrowsize,startarrowsize:qt.startarrowsize,arrowwidth:qt.arrowwidth,standoff:qt.standoff,startstandoff:qt.startstandoff,hovertext:qt.hovertext,hoverlabel:qt.hoverlabel,captureevents:qt.captureevents}),"calc","from-root")});var LO=N((MFe,qO)=>{"use strict";var R4=Ce(),d2e=Ir(),p2e=ro(),y2e=L4(),m2e=Sm();qO.exports=function(r,t,a){p2e(r,t,{name:"annotations",handleItemDefaults:g2e,fullLayout:a.fullLayout})};function g2e(e,r,t,a){function n(l,s){return R4.coerce(e,r,m2e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],d2e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(y2e(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),R4.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),R4.noneOrAll(e,r,["ax","ay"])))}});var RO=N((kFe,DO)=>{"use strict";var CO=Ce(),EO=Ir();DO.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function P4(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function x2e(e,r){var t=P4(e.projection,P4(e.view,P4(e.model,[r[0],r[1],r[2],1])));return t}PO.exports=x2e});var zO=N((qFe,NO)=>{"use strict";var _2e=km().drawRaw,w2e=FO(),T2e=["x","y","z"];NO.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=w2e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),_2e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var BO=N((LFe,OO)=>{"use strict";var A2e=gr(),IO=Ce();OO.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Sm()}}},layoutAttributes:Sm(),handleDefaults:LO(),includeBasePlot:M2e,convert:RO(),draw:zO()};function M2e(e,r){var t=A2e.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var HO=dc(),UO=da(),GO=wi().line,k2e=ui().dash,uo=xt().extendFlat,S2e=At().templatedArray,CFe=Yh(),kc=gn(),q2e=Ta().shapeTexttemplateAttrs,L2e=Sp();VO.exports=S2e("shape",{visible:uo({},kc.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:uo({},kc.legend,{editType:"calc+arraydraw"}),legendgroup:uo({},kc.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:uo({},kc.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:UO({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:uo({},kc.legendrank,{editType:"calc+arraydraw"}),legendwidth:uo({},kc.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:uo({},HO.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:uo({},HO.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:uo({},GO.color,{editType:"arraydraw"}),width:uo({},GO.width,{editType:"calc+arraydraw"}),dash:uo({},k2e,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:q2e({},{keys:Object.keys(L2e)}),font:UO({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var jO=N((DFe,WO)=>{"use strict";var p0=Ce(),Sc=Ir(),C2e=ro(),E2e=F4(),YO=ns();WO.exports=function(r,t){C2e(r,t,{name:"shapes",handleItemDefaults:R2e})};function D2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function R2e(e,r,t){function a(V,X){return p0.coerce(e,r,E2e,V,X)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),p0.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));for(var c=a("xsizemode"),v=a("ysizemode"),d=["x","y"],p=0;p<2;p++){var y=d[p],m=y+"anchor",x=y==="x"?c:v,w={_fullLayout:t},_,b,T,k=Sc.coerceRef(e,r,w,y,void 0,"paper"),M=Sc.getRefType(k);if(M==="range"?(_=Sc.getFromId(w,k),_._shapeIndices.push(r._index),T=YO.rangeToShapePosition(_),b=YO.shapePositionToRange(_),(_.type==="category"||_.type==="multicategory")&&(a(y+"0shift"),a(y+"1shift"))):b=T=p0.identity,u){var q=.25,E=.75,D=y+"0",P=y+"1",R=e[D],z=e[P];e[D]=b(e[D],!0),e[P]=b(e[P],!0),x==="pixel"?(a(D,0),a(P,10)):(Sc.coercePosition(r,w,a,k,D,q),Sc.coercePosition(r,w,a,k,P,E)),r[D]=T(r[D]),r[P]=T(r[P]),e[D]=R,e[P]=z}if(x==="pixel"){var O=e[m];e[m]=b(e[m],!0),Sc.coercePosition(r,w,a,k,m,.25),r[m]=T(r[m]),e[m]=O}}u&&p0.noneOrAll(e,r,["x0","x1","y0","y1"]);var B=s==="line",Y,G;if(u&&(Y=a("label.texttemplate")),Y||(G=a("label.text")),G||Y){a("label.textangle");var U=a("label.textposition",B?"middle":"middle center");a("label.xanchor"),a("label.yanchor",D2e(B,U)),a("label.padding"),p0.coerceFont(a,"label.font",t.font)}}}});var JO=N((RFe,XO)=>{"use strict";var P2e=Tr(),ZO=Ce();function F2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}XO.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),ZO.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",P2e.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",F2e(o,u)),a("newshape.label.padding"),ZO.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var rB=N((PFe,eB)=>{"use strict";var N4=Ce(),qc=Ir(),Lc=kh(),KO=ns();eB.exports=function(r){var t=r._fullLayout,a=N4.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?u+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function $O(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(Lc.segmentRE),p,y,m,x,w;for(e.type==="date"&&(u=KO.decodeDate(u)),p=0;pv&&(v=w)));if(v>=c)return[c,v]}}});var nB=N((FFe,aB)=>{"use strict";var tB=py();aB.exports={moduleType:"component",name:"shapes",layoutAttributes:F4(),supplyLayoutDefaults:jO(),supplyDrawNewShapeDefaults:JO(),includeBasePlot:jh()("shapes"),calcAutorange:rB(),draw:tB.draw,drawOne:tB.drawOne}});var z4=N((zFe,oB)=>{"use strict";var iB=Ea(),I2e=At().templatedArray,NFe=Yh();oB.exports=I2e("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",iB.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",iB.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var sB=N((IFe,lB)=>{"use strict";var O2e=Ce(),I4=Ir(),B2e=ro(),H2e=z4(),U2e="images";lB.exports=function(r,t){var a={name:U2e,handleItemDefaults:G2e};B2e(r,t,a)};function G2e(e,r,t){function a(v,d){return O2e.coerce(e,r,H2e,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=I4.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=I4.getFromId(o,f);c._imgIndices.push(r._index)}I4.coercePosition(r,o,a,f,u,0)}return r}});var vB=N((OFe,cB)=>{"use strict";var uB=Sr(),V2e=Wr(),Cc=Ir(),fB=oa(),Y2e=ll();cB.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var hB=Rr(),W2e=yp();dB.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";yB.exports={moduleType:"component",name:"images",layoutAttributes:z4(),supplyLayoutDefaults:sB(),includeBasePlot:jh()("images"),draw:vB(),convertCoords:pB()}});var qm=N((UFe,gB)=>{"use strict";gB.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var O4=N((GFe,xB)=>{"use strict";var j2e=da(),Z2e=si(),X2e=xt().extendFlat,J2e=Ji().overrideAll,$2e=qp(),bB=At().templatedArray,K2e=bB("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});xB.exports=J2e(bB("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:K2e,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:X2e($2e({editType:"arraydraw"}),{}),font:j2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Z2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var AB=N((VFe,TB)=>{"use strict";var Lm=Ce(),_B=ro(),wB=O4(),Q2e=qm(),e3e=Q2e.name,r3e=wB.buttons;TB.exports=function(r,t){var a={name:e3e,handleItemDefaults:t3e};_B(r,t,a)};function t3e(e,r,t){function a(o,l){return Lm.coerce(e,r,wB,o,l)}var n=_B(e,r,{name:"buttons",handleItemDefaults:a3e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Lm.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Lm.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function a3e(e,r){function t(n,i){return Lm.coerce(e,r,r3e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var SB=N((YFe,kB)=>{"use strict";kB.exports=Ot;var fo=Sr(),MB=Tr(),Ec=Wr(),Cm=Ce();function Ot(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Ot.barWidth=2;Ot.barLength=20;Ot.barRadius=2;Ot.barPad=1;Ot.barColor="#808BA4";Ot.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",y=c==="up",m=s,x=f,w,_,b,T;!v&&!d&&!p&&!y&&(this.position.direction="down",v=!0);var k=v||y;k?(w=l,_=w+m,v?(b=u,T=Math.min(b+x,o),x=T-b):(T=u+x,b=Math.max(T-x,0),x=T-b)):(b=u,T=b+x,d?(_=l+m,w=Math.max(_-m,0),m=_-w):(w=l,_=Math.min(w+m,i),m=_-w)),this._box={l:w,t:b,w:m,h:x};var M=s>m,q=Ot.barLength+2*Ot.barPad,E=Ot.barWidth+2*Ot.barPad,D=l,P=u+f;P+E>o&&(P=o-E);var R=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(MB.fill,Ot.barColor),M?(this.hbar=R.attr({rx:Ot.barRadius,ry:Ot.barRadius,x:D,y:P,width:q,height:E}),this._hbarXMin=D+q/2,this._hbarTranslateMax=m-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var z=f>x,O=Ot.barWidth+2*Ot.barPad,B=Ot.barLength+2*Ot.barPad,Y=l+s,G=u;Y+O>i&&(Y=i-O);var U=this.container.selectAll("rect.scrollbar-vertical").data(z?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(MB.fill,Ot.barColor),z?(this.vbar=U.attr({rx:Ot.barRadius,ry:Ot.barRadius,x:Y,y:G,width:O,height:B}),this._vbarYMin=G+B/2,this._vbarTranslateMax=x-B):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,X=w-.5,Z=z?_+O+.5:_+.5,re=b-.5,ce=M?T+E+.5:T+.5,oe=n._topdefs.selectAll("#"+V).data(M||z?[0]:[]);if(oe.exit().remove(),oe.enter().append("clipPath").attr("id",V).append("rect"),M||z?(this._clipRect=oe.select("rect").attr({x:Math.floor(X),y:Math.floor(re),width:Math.ceil(Z)-Math.floor(X),height:Math.ceil(ce)-Math.floor(re)}),this.container.call(Ec.setClipUrl,V,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Ec.setClipUrl,null),delete this._clipRect),M||z){var fe=fo.behavior.drag().on("dragstart",function(){fo.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(fe);var K=fo.behavior.drag().on("dragstart",function(){fo.event.sourceEvent.preventDefault(),fo.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(K),z&&this.vbar.on(".drag",null).call(K)}this.setTranslate(t,a)};Ot.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Ec.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Ot.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=fo.event.dx),this.vbar&&(t-=fo.event.dy),this.setTranslate(r,t)};Ot.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=fo.event.deltaY),this.vbar&&(t+=fo.event.deltaY),this.setTranslate(r,t)};Ot.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Cm.constrain(fo.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Cm.constrain(fo.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};Ot.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Cm.constrain(r||0,0,a),t=Cm.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Ec.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Ec.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(Ec.setTranslate,r,t+o*this._vbarTranslateMax)}}});var zB=N((WFe,NB)=>{"use strict";var Dc=Sr(),y0=aa(),m0=Tr(),Rc=Wr(),ei=Ce(),Em=Da(),n3e=At().arrayEditor,LB=Xa().LINE_SPACING,wr=qm(),i3e=SB();NB.exports=function(r){var t=r._fullLayout,a=ei.filterVisible(t[wr.name]);function n(v){y0.autoMargin(r,PB(v))}var i=t._menulayer.selectAll("g."+wr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(wr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Dc.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+wr.headerGroupClassName).data(a,o3e);o.enter().append("g").classed(wr.headerGroupClassName,!0);for(var l=ei.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var h3e=qm();IB.exports={moduleType:"component",name:h3e.name,layoutAttributes:O4(),supplyLayoutDefaults:AB(),draw:zB()}});var b0=N((ZFe,BB)=>{"use strict";BB.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var G4=N((XFe,GB)=>{"use strict";var HB=da(),d3e=qp(),p3e=xt().extendDeepAll,y3e=Ji().overrideAll,m3e=Kv(),UB=At().templatedArray,Ru=b0(),g3e=UB("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});GB.exports=y3e(UB("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:g3e,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:p3e(d3e({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:m3e.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:HB({})},font:HB({}),activebgcolor:{valType:"color",dflt:Ru.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ru.railBgColor},bordercolor:{valType:"color",dflt:Ru.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ru.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ru.tickLength},tickcolor:{valType:"color",dflt:Ru.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ru.minorTickLength}}),"arraydraw","from-root")});var jB=N((JFe,WB)=>{"use strict";var Pc=Ce(),VB=ro(),YB=G4(),b3e=b0(),x3e=b3e.name,_3e=YB.steps;WB.exports=function(r,t){VB(r,t,{name:x3e,handleItemDefaults:w3e})};function w3e(e,r,t){function a(c,v){return Pc.coerce(e,r,YB,c,v)}for(var n=VB(e,r,{name:"steps",handleItemDefaults:T3e}),i=0,o=0;o{"use strict";var co=Sr(),Dm=aa(),vs=Tr(),vo=Wr(),ri=Ce(),A3e=ri.strTranslate,x0=Da(),M3e=At().arrayEditor,Fr=b0(),W4=Xa(),JB=W4.LINE_SPACING,V4=W4.FROM_TL,Y4=W4.FROM_BR;tH.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=k3e(a,r),i=a._infolayer.selectAll("g."+Fr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Fr.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Dm.autoMargin(r,$B(f))}if(i.exit().each(function(){co.select(this).selectAll("g."+Fr.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Fr.groupClassName).data(n,S3e);l.enter().append("g").classed(Fr.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",A3e(o-Fr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function j4(e,r){var t=e._dims;return t.inputAreaStart+Fr.stepInset+(t.inputAreaLength-2*Fr.stepInset)*Math.min(1,Math.max(0,r))}function XB(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Fr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Fr.stepInset-2*t.inputAreaStart)))}function P3e(e,r,t){var a=t._dims,n=ri.ensureSingle(e,"rect",Fr.railTouchRectClass,function(i){i.call(eH,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Fr.tickOffset+t.ticklen+a.labelHeight)}).call(vs.fill,t.bgcolor).attr("opacity",0),vo.setTranslate(n,0,a.currentValueTotalHeight)}function F3e(e,r){var t=r._dims,a=t.inputAreaLength-Fr.railInset*2,n=ri.ensureSingle(e,"rect",Fr.railRectClass);n.attr({width:a,height:Fr.railWidth,rx:Fr.railRadius,ry:Fr.railRadius,"shape-rendering":"crispEdges"}).call(vs.stroke,r.bordercolor).call(vs.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),vo.setTranslate(n,Fr.railInset,(t.inputAreaWidth-Fr.railWidth)*.5+t.currentValueTotalHeight)}});var iH=N((KFe,nH)=>{"use strict";var N3e=b0();nH.exports={moduleType:"component",name:N3e.name,layoutAttributes:G4(),supplyLayoutDefaults:jB(),draw:aH()}});var Pm=N((QFe,lH)=>{"use strict";var oH=si();lH.exports={bgcolor:{valType:"color",dflt:oH.background,editType:"plot"},bordercolor:{valType:"color",dflt:oH.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var Z4=N((eNe,sH)=>{"use strict";sH.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Fm=N((rNe,uH)=>{"use strict";uH.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var vH=N(zm=>{"use strict";var z3e=oa(),I3e=Da(),fH=Fm(),O3e=Xa().LINE_SPACING,Nm=fH.name;function cH(e){var r=e&&e[Nm];return r&&r.visible}zm.isVisible=cH;zm.makeData=function(e){for(var r=z3e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Im=Ce(),hH=At(),dH=oa(),B3e=Pm(),H3e=Z4();pH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Im.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=hH.newContainer(i,"rangeslider");function s(T,k){return Im.coerce(o,l,B3e,T,k)}var u,f;function c(T,k){return Im.coerce(u,f,H3e,T,k)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(T){return T.substr(0,T.indexOf("y"))===dH.name2id(a)}).map(function(T){return T.substr(T.indexOf("y"),T.length)}),y=Im.simpleMap(p,dH.id2name),m=0;m{"use strict";var U3e=oa().list,G3e=ph().getAutoRange,V3e=Fm();mH.exports=function(r){for(var t=U3e(r,"x",!0),a=0;a{"use strict";var Om=Sr(),Y3e=gr(),W3e=aa(),Zt=Ce(),Bm=Zt.strTranslate,xH=Wr(),hs=Tr(),j3e=Zf(),Z3e=Li(),X4=oa(),X3e=pi(),J3e=rs(),Gr=Fm();_H.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=U.max)Y=P[G+1];else if(B=U.pmax)Y=P[G+1];else if(B0?e.touches[0].clientX:0}function $3e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Gr.slideBoxClassName).node(),i=e.select("rect."+Gr.grabAreaMinClassName).node(),o=e.select("rect."+Gr.grabAreaMaxClassName).node();function l(){var s=Om.event,u=s.target,f=bH(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=X3e.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(x){var w=bH(x),_=+w-f,b,T,k;switch(u){case n:if(k="ew-resize",v+_>t._length||d+_<0)return;b=v+_,T=d+_;break;case i:if(k="col-resize",v+_>t._length)return;b=v+_,T=d;break;case o:if(k="col-resize",d+_<0)return;b=v,T=d+_;break;default:k="ew-resize",b=c,T=c+_;break}if(T{"use strict";var lbe=Ce(),sbe=Pm(),ube=Z4(),J4=vH();TH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:lbe.extendFlat({},sbe,{yaxis:ube})}}},layoutAttributes:Pm(),handleDefaults:yH(),calcAutorange:gH(),draw:wH(),isVisible:J4.isVisible,makeData:J4.makeData,autoMarginOpts:J4.autoMarginOpts}});var Hm=N((lNe,kH)=>{"use strict";var fbe=da(),MH=si(),cbe=At().templatedArray,vbe=cbe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});kH.exports={visible:{valType:"boolean",editType:"plot"},buttons:vbe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:fbe({editType:"plot"}),bgcolor:{valType:"color",dflt:MH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:MH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var $4=N((sNe,SH)=>{"use strict";SH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var CH=N((uNe,LH)=>{"use strict";var Um=Ce(),hbe=Tr(),dbe=At(),pbe=ro(),qH=Hm(),K4=$4();LH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=dbe.newContainer(t,"rangeselector");function s(d,p){return Um.coerce(o,l,qH,d,p)}var u=pbe(o,l,{name:"buttons",handleItemDefaults:ybe,calendar:i}),f=s("visible",u.length>0);if(f){var c=mbe(t,a,n);s("x",c[0]),s("y",c[1]),Um.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Um.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",hbe.contrast(v,K4.lightAmount,K4.darkAmount)),s("bordercolor"),s("borderwidth")}};function ybe(e,r,t,a){var n=a.calendar;function i(s,u){return Um.coerce(e,r,qH.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function mbe(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var gbe=K3(),bbe=Ce().titleCase;EH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=xbe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function xbe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=gbe["utc"+bbe(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var BH=N((cNe,OH)=>{"use strict";var Vm=Sr(),_be=gr(),wbe=aa(),RH=Tr(),IH=Wr(),gl=Ce(),PH=gl.strTranslate,Gm=Da(),Tbe=oa(),rw=Xa(),FH=rw.LINE_SPACING,NH=rw.FROM_TL,zH=rw.FROM_BR,ew=$4(),Abe=DH();OH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Mbe(r),kbe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Vm.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(gl.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Vm.select(this),c=Abe(o,u);u._isActive=Sbe(o,u,c),f.call(Q4,l,u),f.call(Lbe,l,u,r),f.on("click",function(){r._dragged||_be.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(Q4,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(Q4,l,u)})}),Ebe(r,s,l,o._name,i)})};function Mbe(e){for(var r=Tbe.list(e,"x",!0),t=[],a=0;a{"use strict";HH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Hm()}}},layoutAttributes:Hm(),handleDefaults:CH(),draw:BH()}});var Fc=N(tw=>{"use strict";var GH=xt().extendFlat;tw.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:GH({},t,{}),y:GH({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};tw.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var Dbe=Ce(),Rbe=Af().counter,Pbe=Fc().attributes,VH=Ea().idRegex,Fbe=At(),aw={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Rbe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[VH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[VH.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Pbe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Ym(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Nbe(e,r){var t=e.grid||{},a=Ym(r,t,"x"),n=Ym(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=Fbe.newContainer(r,"grid");function v(k,M){return Dbe.coerce(t,c,aw,k,M)}var d=v("rows",u),p=v("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var y=v("pattern")==="independent";y&&(i=!0)}c._hasSubplotGrid=i;var m=v("roworder"),x=m==="top to bottom",w=i?.2:.1,_=i?.3:.1,b,T;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,T=r._splomGridDflt.yside),c._domains={x:YH("x",v,w,b,p),y:YH("y",v,_,T,d,x)}}function YH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),v=0;v{"use strict";XH.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var KH=N((yNe,$H)=>{"use strict";var JH=Rr(),Ibe=gr(),Obe=Ce(),Bbe=At(),Hbe=nw();$H.exports=function(e,r,t,a){var n="error_"+a.axis,i=Bbe.newContainer(r,n),o=e[n]||{};function l(p,y){return Obe.coerce(o,i,Hbe,p,y)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||JH(o.thickness)||JH(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",Ibe.traceIs(r,"gl3d")?0:4))}}});var iw=N((mNe,eU)=>{"use strict";eU.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],v=+i[f];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=QH(t,r.value),l=QH(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function QH(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var aU=N((gNe,tU)=>{"use strict";var ow=Rr(),Ube=gr(),lw=Ir(),Gbe=Ce(),Vbe=iw();tU.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var nU=Sr(),ds=Rr(),Ybe=Wr(),Wbe=Rn();iU.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(w){return w.id});var y=Wbe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var m=nU.select(this).selectAll("g.errorbar").data(f,p);if(m.exit().remove(),!!f.length){v.visible||m.selectAll("path.xerror").remove(),d.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var x=m.enter().append("g").classed("errorbar",!0);s&&x.style("opacity",0).transition().duration(n.duration).style("opacity",1),Ybe.setClipUrl(m,a.layerClipId,r),m.each(function(w){var _=nU.select(this),b=jbe(w,o,l);if(!(y&&!w.vis)){var T,k=_.select("path.yerror");if(d.visible&&ds(b.x)&&ds(b.yh)&&ds(b.ys)){var M=d.width;T="M"+(b.x-M)+","+b.yh+"h"+2*M+"m-"+M+",0V"+b.ys,b.noYS||(T+="m-"+M+",0h"+2*M),i=!k.size(),i?k=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",T)}else k.remove();var q=_.select("path.xerror");if(v.visible&&ds(b.y)&&ds(b.xh)&&ds(b.xs)){var E=(v.copy_ystyle?d:v).width;T="M"+b.xh+","+(b.y-E)+"v"+2*E+"m0,-"+E+"H"+b.xs,b.noXS||(T+="m0,-"+E+"v"+2*E),i=!q.size(),i?q=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(q=q.transition().duration(n.duration).ease(n.easing)),q.attr("d",T)}else q.remove()}})}})};function jbe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),ds(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),ds(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var uU=N((xNe,sU)=>{"use strict";var Zbe=Sr(),lU=Tr();sU.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=Zbe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(lU.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(lU.stroke,i.color)})}});var vU=N((_Ne,cU)=>{"use strict";var _0=Ce(),fU=Ji().overrideAll,w0=nw(),Pu={error_x:_0.extendFlat({},w0),error_y:_0.extendFlat({},w0)};delete Pu.error_x.copy_zstyle;delete Pu.error_y.copy_zstyle;delete Pu.error_y.copy_ystyle;var T0={error_x:_0.extendFlat({},w0),error_y:_0.extendFlat({},w0),error_z:_0.extendFlat({},w0)};delete T0.error_x.copy_ystyle;delete T0.error_y.copy_ystyle;delete T0.error_z.copy_ystyle;delete T0.error_z.copy_zstyle;cU.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Pu,bar:Pu,histogram:Pu,scatter3d:fU(T0,"calc","nested"),scattergl:fU(Pu,"calc","nested")}},supplyDefaults:KH(),calc:aU(),makeComputeError:iw(),plot:oU(),style:uU(),hoverInfo:Xbe};function Xbe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var dU=N((wNe,hU)=>{"use strict";hU.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var _U=N((TNe,xU)=>{"use strict";var ps=Sr(),sw=Sn(),jm=aa(),pU=gr(),bl=Ir(),Wm=pi(),Ci=Ce(),po=Ci.strTranslate,bU=xt().extendFlat,uw=rs(),ho=Wr(),fw=Tr(),Jbe=Zf(),$be=Da(),Kbe=jn().flipScale,Qbe=b4(),exe=x4(),rxe=hi(),cw=Xa(),yU=cw.LINE_SPACING,mU=cw.FROM_TL,gU=cw.FROM_BR,zt=dU().cn;function txe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+zt.colorbar).data(axe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(zt.colorbar,!0),t.each(function(a){var n=ps.select(this);Ci.ensureSingle(n,"rect",zt.cbbg),Ci.ensureSingle(n,"g",zt.cbfills),Ci.ensureSingle(n,"g",zt.cblines),Ci.ensureSingle(n,"g",zt.cbaxis,function(o){o.classed(zt.crisp,!0)}),Ci.ensureSingle(n,"g",zt.cbtitleunshift,function(o){o.append("g").classed(zt.cbtitle,!0)}),Ci.ensureSingle(n,"rect",zt.cboutline);var i=nxe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&ixe(n,a,e)}),t.exit().each(function(a){jm.autoMargin(e,a._id)}).remove(),t.order()}function axe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return bU(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?Kbe(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f1){var Q=Math.pow(10,Math.floor(Math.log(W)/Math.LN10));ie*=Q*Ci.roundUp(W/Q,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(le.tick0=0)}le.dtick=ie}le.domain=a?[K+p/b.h,K+V-p/b.h]:[K+d/b.w,K+V-d/b.w],le.setScale(),e.attr("transform",po(Math.round(b.l),Math.round(b.t)));var j=e.select("."+zt.cbtitleunshift).attr("transform",po(-Math.round(b.l),-Math.round(b.t))),ye=le.ticklabelposition,_e=le.title.font.size,me=e.select("."+zt.cbaxis),Pe,Ne=0,Re=0;function ze(Be,se){var Ae={propContainer:le,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+zt.cbtitle)},je=Be.charAt(0)==="h"?Be.substr(1):"h"+Be;e.selectAll("."+je+",."+je+"-math-group").remove(),Jbe.draw(t,Be,bU(Ae,se||{}))}function Ge(){if(a&&pe||!a&&!pe){var Be,se;q==="top"&&(Be=d+b.l+X*y,se=p+b.t+Z*(1-K-V)+3+_e*.75),q==="bottom"&&(Be=d+b.l+X*y,se=p+b.t+Z*(1-K)-3-_e*.25),q==="right"&&(se=p+b.t+Z*m+3+_e*.75,Be=d+b.l+X*K),ze(le._id+"title",{attributes:{x:Be,y:se,"text-anchor":a?"start":"middle"}})}}function He(){if(a&&!pe||!a&&pe){var Be=le.position||0,se=le._offset+le._length/2,Ae,je;if(q==="right")je=se,Ae=b.l+X*Be+10+_e*(le.showticklabels?1:.5);else if(Ae=se,q==="bottom"&&(je=b.t+Z*Be+10+(ye.indexOf("inside")===-1?le.tickfont.size:0)+(le.ticks!=="inside"&&r.ticklen||0)),q==="top"){var ur=M.text.split("
").length;je=b.t+Z*Be+10-Y-yU*_e*ur}ze((a?"h":"v")+le._id+"title",{avoid:{selection:ps.select(t).selectAll("g."+le._id+"tick"),side:q,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?_.width:_.height},attributes:{x:Ae,y:je,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Ee(){if(!a&&!pe||a&&pe){var Be=e.select("."+zt.cbtitle),se=Be.select("text"),Ae=[-s/2,s/2],je=Be.select(".h"+le._id+"title-math-group").node(),ur=15.6;se.node()&&(ur=parseInt(se.node().style.fontSize,10)*yU);var lr;if(je?(lr=ho.bBox(je),Re=lr.width,Ne=lr.height,Ne>ur&&(Ae[1]-=(Ne-ur)/2)):se.node()&&!se.classed(zt.jsPlaceholder)&&(lr=ho.bBox(se.node()),Re=lr.width,Ne=lr.height),a){if(Ne){if(Ne+=5,q==="top")le.domain[1]-=Ne/b.h,Ae[1]*=-1;else{le.domain[0]+=Ne/b.h;var ue=$be.lineCount(se);Ae[1]+=(1-ue)*ur}Be.attr("transform",po(Ae[0],Ae[1])),le.setScale()}}else Re&&(q==="right"&&(le.domain[0]+=(Re+_e/2)/b.w),Be.attr("transform",po(Ae[0],Ae[1])),le.setScale())}e.selectAll("."+zt.cbfills+",."+zt.cblines).attr("transform",a?po(0,Math.round(b.h*(1-le.domain[1]))):po(Math.round(b.w*le.domain[0]),0)),me.attr("transform",a?po(0,Math.round(-b.t)):po(Math.round(-b.l),0));var qe=e.select("."+zt.cbfills).selectAll("rect."+zt.cbfill).attr("style","").data(O);qe.enter().append("rect").classed(zt.cbfill,!0).attr("style",""),qe.exit().remove();var Oe=E.map(le.c2p).map(Math.round).sort(function(hr,$e){return hr-$e});qe.each(function(hr,$e){var Fe=[$e===0?E[0]:(O[$e]+O[$e-1])/2,$e===O.length-1?E[1]:(O[$e]+O[$e+1])/2].map(le.c2p).map(Math.round);a&&(Fe[1]=Ci.constrain(Fe[1]+(Fe[1]>Fe[0])?1:-1,Oe[0],Oe[1]));var ne=ps.select(this).attr(a?"x":"y",re).attr(a?"y":"x",ps.min(Fe)).attr(a?"width":"height",Math.max(Y,2)).attr(a?"height":"width",Math.max(ps.max(Fe)-ps.min(Fe),2));if(r._fillgradient)ho.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var de=P(hr).replace("e-","");ne.attr("fill",sw(de).toHexString())}});var Ze=e.select("."+zt.cblines).selectAll("path."+zt.cbline).data(k.color&&k.width?B:[]);Ze.enter().append("path").classed(zt.cbline,!0),Ze.exit().remove(),Ze.each(function(hr){var $e=re,Fe=Math.round(le.c2p(hr))+k.width/2%1;ps.select(this).attr("d","M"+(a?$e+","+Fe:Fe+","+$e)+(a?"h":"v")+Y).call(ho.lineGroupStyle,k.width,D(hr),k.dash)}),me.selectAll("g."+le._id+"tick,path").remove();var Ue=re+Y+(s||0)/2-(r.ticks==="outside"?1:0),Xe=bl.calcTicks(le),Ke=bl.getTickSigns(le)[2];return bl.drawTicks(t,le,{vals:le.ticks==="inside"?bl.clipEnds(le,Xe):Xe,layer:me,path:bl.makeTickPath(le,Ue,Ke),transFn:bl.makeTransTickFn(le)}),bl.drawLabels(t,le,{vals:Xe,layer:me,transFn:bl.makeTransTickLabelFn(le),labelFns:bl.makeLabelFns(le,Ue)})}function Ie(){var Be,se=Y+s/2;ye.indexOf("inside")===-1&&(Be=ho.bBox(me.node()),se+=a?Be.width:Be.height),Pe=j.select("text");var Ae=0,je=a&&q==="top",ur=!a&&q==="right",lr=0;if(Pe.node()&&!Pe.classed(zt.jsPlaceholder)){var ue,qe=j.select(".h"+le._id+"title-math-group").node();qe&&(a&&pe||!a&&!pe)?(Be=ho.bBox(qe),Ae=Be.width,ue=Be.height):(Be=ho.bBox(j.node()),Ae=Be.right-b.l-(a?re:Te),ue=Be.bottom-b.t-(a?Te:re),!a&&q==="top"&&(se+=Be.height,lr=Be.height)),ur&&(Pe.attr("transform",po(Ae/2+_e/2,0)),Ae*=2),se=Math.max(se,a?Ae:ue)}var Oe=(a?d:p)*2+se+u+s/2,Ze=0;!a&&M.text&&v==="bottom"&&m<=0&&(Ze=Oe/2,Oe+=Ze,lr+=Ze),_._hColorbarMoveTitle=Ze,_._hColorbarMoveCBTitle=lr;var Ue=u+s,Xe=(a?re:Te)-Ue/2-(a?d:0),Ke=(a?Te:re)-(a?U:p+lr-Ze);e.select("."+zt.cbbg).attr("x",Xe).attr("y",Ke).attr(a?"width":"height",Math.max(Oe-Ze,2)).attr(a?"height":"width",Math.max(U+Ue,2)).call(fw.fill,f).call(fw.stroke,r.bordercolor).style("stroke-width",u);var hr=ur?Math.max(Ae-10,0):0;e.selectAll("."+zt.cboutline).attr("x",(a?re:Te+d)+hr).attr("y",(a?Te+p-U:re)+(je?Ne:0)).attr(a?"width":"height",Math.max(Y,2)).attr(a?"height":"width",Math.max(U-(a?2*p+Ne:2*d+hr),2)).call(fw.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var $e=a?ce*Oe:0,Fe=a?0:(1-oe)*Oe-lr;if($e=w?b.l-$e:-$e,Fe=x?b.t-Fe:-Fe,e.attr("transform",po($e,Fe)),!a&&(u||sw(f).getAlpha()&&!sw.equals(_.paper_bgcolor,f))){var ne=me.selectAll("text"),de=ne[0].length,De=e.select("."+zt.cbbg).node(),Le=ho.bBox(De),ar=ho.getTranslate(e),sr=2;ne.each(function(Xt,Jt){var It=0,za=de-1;if(Jt===It||Jt===za){var br=ho.bBox(this),yt=ho.getTranslate(this),Nr;if(Jt===za){var ut=br.right+yt.x,Pt=Le.right+ar.x+Te-u-sr+y;Nr=Pt-ut,Nr>0&&(Nr=0)}else if(Jt===It){var Qr=br.left+yt.x,ct=Le.left+ar.x+Te+u+sr;Nr=ct-Qr,Nr<0&&(Nr=0)}Nr&&(de<3?this.setAttribute("transform","translate("+Nr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var nr={},Mr=mU[c],Or=gU[c],Zr=mU[v],Yr=gU[v],Vt=Oe-Y;a?(i==="pixels"?(nr.y=m,nr.t=U*Zr,nr.b=U*Yr):(nr.t=nr.b=0,nr.yt=m+n*Zr,nr.yb=m-n*Yr),l==="pixels"?(nr.x=y,nr.l=Oe*Mr,nr.r=Oe*Or):(nr.l=Vt*Mr,nr.r=Vt*Or,nr.xl=y-o*Mr,nr.xr=y+o*Or)):(i==="pixels"?(nr.x=y,nr.l=U*Mr,nr.r=U*Or):(nr.l=nr.r=0,nr.xl=y+n*Mr,nr.xr=y-n*Or),l==="pixels"?(nr.y=1-m,nr.t=Oe*Zr,nr.b=Oe*Yr):(nr.t=Vt*Zr,nr.b=Vt*Yr,nr.yt=m-o*Zr,nr.yb=m+o*Yr));var wt=r.y<.5?"b":"t",Tt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var pt={r:_.width-Xe-$e,l:Xe+nr.r,b:_.height-Ke-Fe,t:Ke+nr.b};w&&x?jm.autoMargin(t,r._id,nr):w?t._fullLayout._reservedMargin[r._id][wt]=pt[wt]:x||a?t._fullLayout._reservedMargin[r._id][Tt]=pt[Tt]:t._fullLayout._reservedMargin[r._id][wt]=pt[wt]}return Ci.syncOrAsync([jm.previousPromises,Ge,Ee,He,jm.previousPromises,Ie],t)}function ixe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;Wm.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),uw(e)},moveFn:function(u,f){e.attr("transform",o+po(u,f)),l=Wm.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Wm.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Wm.getCursor(l,s,r.xanchor,r.yanchor);uw(e,c)},doneFn:function(){if(uw(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?pU.call("_guiRestyle",t,u,r._traceIndex):pU.call("_guiRelayout",t,u)}}})}function oxe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";wU.exports={moduleType:"component",name:"colorbar",attributes:t1(),supplyDefaults:cx(),draw:_U().draw,hasColorbar:nx()}});var MU=N((MNe,AU)=>{"use strict";AU.exports={moduleType:"component",name:"legend",layoutAttributes:o5(),supplyLayoutDefaults:u5(),draw:_5(),style:m5()}});var SU=N((kNe,kU)=>{"use strict";kU.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var LU=N((SNe,qU)=>{"use strict";qU.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var hw=N((qNe,RU)=>{"use strict";var sxe=gr(),DU=Ce(),vw=DU.extendFlat,CU=DU.extendDeep;function EU(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function uxe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}RU.exports=function(r,t){var a,n=r.data,i=r.layout,o=CU([],n),l=CU({},i,EU(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var u=Object.keys(l);for(a=0;a{"use strict";var fxe=Qs().EventEmitter,cxe=gr(),vxe=Ce(),PU=yl(),hxe=hw(),dxe=Qy(),pxe=em();function yxe(e,r){var t=new fxe,a=hxe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=PU.getDelay(n._fullLayout);setTimeout(function(){var s=dxe(n),u=document.createElement("canvas");u.id=vxe.randstr(),t=pxe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=PU.getRedrawFunc(n);return cxe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}FU.exports=yxe});var OU=N((CNe,IU)=>{"use strict";var zU=yl(),mxe={getDelay:zU.getDelay,getRedrawFunc:zU.getRedrawFunc,clone:hw(),toSVG:Qy(),svgToImg:em(),toImage:NU(),downloadImage:O_()};IU.exports=mxe});var HU=N(xl=>{"use strict";xl.version=op().version;UA();DS();var gxe=gr(),A0=xl.register=gxe.register,pw=tz(),BU=Object.keys(pw);for(Zm=0;Zm{"use strict";UU.exports=HU()});var Jm=N((RNe,VU)=>{"use strict";VU.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Nu=N((PNe,ZU)=>{"use strict";var Gt=wi(),YU=eo().axisHoverFormat,bxe=Ta().hovertemplateAttrs,xxe=Ta().texttemplateAttrs,jU=ko(),_xe=da(),WU=Jm(),wxe=ui().pattern,Fu=xt().extendFlat,yw=_xe({editType:"calc",arrayOk:!0,colorEditType:"style"}),Txe=Gt.marker,Axe=Txe.line,Mxe=Fu({},Axe.width,{dflt:0}),kxe=Fu({width:Mxe,editType:"calc"},jU("marker.line")),Sxe=Fu({line:kxe,editType:"calc"},jU("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:wxe,cornerradius:{valType:"any",editType:"calc"}});ZU.exports={x:Gt.x,x0:Gt.x0,dx:Gt.dx,y:Gt.y,y0:Gt.y0,dy:Gt.dy,xperiod:Gt.xperiod,yperiod:Gt.yperiod,xperiod0:Gt.xperiod0,yperiod0:Gt.yperiod0,xperiodalignment:Gt.xperiodalignment,yperiodalignment:Gt.yperiodalignment,xhoverformat:YU("x"),yhoverformat:YU("y"),text:Gt.text,texttemplate:xxe({editType:"plot"},{keys:WU.eventDataKeys}),hovertext:Gt.hovertext,hovertemplate:bxe({},{keys:WU.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Fu({},yw,{}),insidetextfont:Fu({},yw,{}),outsidetextfont:Fu({},yw,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Fu({},Gt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Sxe,offsetgroup:Gt.offsetgroup,alignmentgroup:Gt.alignmentgroup,selected:{marker:{opacity:Gt.selected.marker.opacity,color:Gt.selected.marker.color,editType:"style"},textfont:Gt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Gt.unselected.marker.opacity,color:Gt.unselected.marker.color,editType:"style"},textfont:Gt.unselected.textfont,editType:"style"},zorder:Gt.zorder}});var $m=N((FNe,XU)=>{"use strict";XU.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var mw=N((NNe,KU)=>{"use strict";var qxe=Tr(),JU=jn().hasColorscale,$U=ul(),Lxe=Ce().coercePattern;KU.exports=function(r,t,a,n,i){var o=a("marker.color",n),l=JU(r,"marker");l&&$U(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",qxe.defaultLine),JU(r,"marker.line")&&$U(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),Lxe(a,"marker.pattern",o,l),a("selected.marker.color"),a("unselected.marker.color")}});var zu=N((zNe,nG)=>{"use strict";var QU=Rr(),zc=Ce(),eG=Tr(),Cxe=gr(),Exe=U_(),Dxe=yc(),Rxe=mw(),Pxe=i0(),rG=Nu(),Km=zc.coerceFont;function Fxe(e,r,t,a){function n(u,f){return zc.coerce(e,r,rG,u,f)}var i=Exe(e,r,a,n);if(!i){r.visible=!1;return}Dxe(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var o=n("textposition");aG(e,r,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Rxe(e,r,n,t,a);var l=(r.marker.line||{}).color,s=Cxe.getComponentMethod("errorbars","supplyDefaults");s(e,r,l||eG.defaultLine,{axis:"y"}),s(e,r,l||eG.defaultLine,{axis:"x",inherit:"y"}),zc.coerceSelectionMarkerOpacity(r,n)}function Nxe(e,r){var t,a;function n(l,s){return zc.coerce(a._input,a,rG,l,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&QU(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function aG(e,r,t,a,n,i){i=i||{};var o=i.moduleHasSelected!==!1,l=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,v=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",y=d||n==="outside";if(p||y){var m=Km(a,"textfont",t.font),x=zc.extendFlat({},m),w=e.textfont&&e.textfont.color,_=!w;if(_&&delete x.color,Km(a,"insidetextfont",x),v){var b=zc.extendFlat({},m);_&&delete b.color,Km(a,"pathbar.textfont",b)}y&&Km(a,"outsidetextfont",m),o&&a("selected.textfont.color"),l&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate")}p&&c&&a("insidetextanchor")}nG.exports={supplyDefaults:Fxe,crossTraceDefaults:Nxe,handleText:aG,validateCornerradius:tG}});var gw=N((INe,iG)=>{"use strict";var zxe=gr(),Ixe=Ir(),Oxe=Ce(),Bxe=$m(),Hxe=zu().validateCornerradius;iG.exports=function(e,r,t){function a(y,m){return Oxe.coerce(e,r,Bxe,y,m)}for(var n=!1,i=!1,o=!1,l={},s=a("barmode"),u=s==="group",f=0;f0&&!l[v]&&(o=!0),l[v]=!0),c.visible&&c.type==="histogram"){var d=Ixe.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!o?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=Hxe(p)}});var Qm=N((ONe,oG)=>{"use strict";var Ic=Ce();oG.exports=function(r,t){for(var a=0;a{"use strict";var lG=Ir(),sG=gc(),uG=jn().hasColorscale,fG=Uf(),Uxe=Qm(),Gxe=sm();cG.exports=function(r,t){var a=lG.getFromId(r,t.xaxis||"x"),n=lG.getFromId(r,t.yaxis||"y"),i,o,l,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),l=n.makeCalcdata(t,"y"),s=sG(t,n,"y",l),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),l=a.makeCalcdata(t,"x"),s=sG(t,a,"x",l),u=!!t.xperiodalignment,f="x"),o=s.vals;for(var v=Math.min(o.length,i.length),d=new Array(v),p=0;p{"use strict";var Vxe=Sr(),Yxe=Ce();function Wxe(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",o;switch(t){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}r.selectAll(o).each(function(l){var s=l.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=Vxe.select(this).select("text");Yxe.setTransormAndDisplay(u,s)}})}}function jxe(e,r,t){if(t.uniformtext.mode){var a=hG(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var Xxe=Rr(),Jxe=Sn(),pG=Ce().isArrayOrTypedArray;Iu.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Iu.coerceNumber=function(e,r,t){if(Xxe(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Iu.coerceColor=function(e,r,t){return Jxe(r).isValid()?r:t!==void 0?t:e.dflt};Iu.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Iu.getValue=function(e,r){var t;return pG(e)?r{"use strict";var k0=Sr(),$xe=Tr(),S0=Wr(),yG=Ce(),mG=gr(),gG=M0().resizeText,bw=Nu(),Kxe=bw.textfont,Qxe=bw.insidetextfont,e5e=bw.outsidetextfont,Va=eg();function r5e(e){var r=k0.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");gG(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&k0.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=k0.select(this),o=n[0].trace;bG(i,o,e)}),mG.getComponentMethod("errorbars","style")(r)}function bG(e,r,t){S0.pointStyle(e.selectAll("path"),r,t),xG(e,r,t)}function xG(e,r,t){e.selectAll("text").each(function(a){var n=k0.select(this),i=yG.ensureUniformFontSize(t,_G(n,a,r,t));S0.font(n,i)})}function t5e(e,r,t){var a=r[0].trace;a.selectedpoints?a5e(t,a,e):(bG(t,a,e),mG.getComponentMethod("errorbars","style")(t))}function a5e(e,r,t){S0.selectedPointStyle(e.selectAll("path"),r),n5e(e.selectAll("text"),r,t)}function n5e(e,r,t){e.each(function(a){var n=k0.select(this),i;if(a.selected){i=yG.ensureUniformFontSize(t,_G(n,a,r,t));var o=r.selected.textfont&&r.selected.textfont.color;o&&(i.color=o),S0.font(n,i)}else S0.selectedTextStyle(n,r)})}function _G(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var o=MG(r,t);i=TG(t,r.i,n,o)}else e.classed("bartext-outside")&&(i=AG(t,r.i,n));return i}function wG(e,r,t){return xw(Kxe,e.textfont,r,t)}function TG(e,r,t,a){var n=wG(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:$xe.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),xw(Qxe,e.insidetextfont,r,n)}function AG(e,r,t){var a=wG(e,r,t);return xw(e5e,e.outsidetextfont,r,a)}function xw(e,r,t,a){r=r||{};var n=Va.getValue(r.family,t),i=Va.getValue(r.size,t),o=Va.getValue(r.color,t),l=Va.getValue(r.weight,t),s=Va.getValue(r.style,t),u=Va.getValue(r.variant,t),f=Va.getValue(r.textcase,t),c=Va.getValue(r.lineposition,t),v=Va.getValue(r.shadow,t);return{family:Va.coerceString(e.family,n,a.family),size:Va.coerceNumber(e.size,i,a.size),color:Va.coerceColor(e.color,o,a.color),weight:Va.coerceString(e.weight,l,a.weight),style:Va.coerceString(e.style,s,a.style),variant:Va.coerceString(e.variant,u,a.variant),textcase:Va.coerceString(e.variant,f,a.textcase),lineposition:Va.coerceString(e.variant,c,a.lineposition),shadow:Va.coerceString(e.variant,v,a.shadow)}}function MG(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}kG.exports={style:r5e,styleTextPoints:xG,styleOnSelect:t5e,getInsideTextFont:TG,getOutsideTextFont:AG,getBarColor:MG,resizeText:gG}});var Tw=N((VNe,PG)=>{"use strict";var rg=Sr(),tg=Rr(),Pa=Ce(),i5e=Da(),o5e=Tr(),ys=Wr(),l5e=gr(),ag=Ir().tickText,SG=M0(),s5e=SG.recordMinTextSize,u5e=SG.clearMinTextSize,_w=Oc(),Bc=eg(),f5e=Jm(),qG=Nu(),c5e=qG.text,v5e=qG.textposition,h5e=qo().appendArrayPointValue,vn=f5e.TEXTPAD;function d5e(e){return e.id}function p5e(e){if(e.ids)return d5e}function ww(e){return(e>0)-(e<0)}function Ho(e,r){return e0}function m5e(e,r,t,a,n,i){var o=r.xaxis,l=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},u5e("bar",s));var f=Pa.makeTraceGroups(a,t,"trace bars").each(function(c){var v=rg.select(this),d=c[0].trace,p=c[0].t,y=d.type==="waterfall",m=d.type==="funnel",x=d.type==="histogram",w=d.type==="bar",_=w||m,b=0;y&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var T=d.orientation==="h",k=CG(n),M=Pa.ensureSingle(v,"g","points"),q=p5e(d),E=M.selectAll("g.point").data(Pa.identity,q);E.enter().append("g").classed("point",!0),E.exit().remove(),E.each(function(P,R){var z=rg.select(this),O=y5e(P,o,l,T),B=O[0][0],Y=O[0][1],G=O[1][0],U=O[1][1],V=(T?Y-B:U-G)===0;V&&_&&Bc.getLineWidth(d,P)&&(V=!1),V||(V=!tg(B)||!tg(Y)||!tg(G)||!tg(U)),P.isBlank=V,V&&(T?Y=B:U=G),b&&!V&&(T?(B-=Ho(B,Y)*b,Y+=Ho(B,Y)*b):(G-=Ho(G,U)*b,U+=Ho(G,U)*b));var X,Z;if(d.type==="waterfall"){if(!V){var re=d[P.dir].marker;X=re.line.width,Z=re.color}}else X=Bc.getLineWidth(d,P),Z=P.mc||d.marker.color;function ce(se){var Ae=rg.round(X/2%1,2);return n.gap===0&&n.groupgap===0?rg.round(Math.round(se)-Ae,2):se}function oe(se,Ae,je){return je&&se===Ae?se:Math.abs(se-Ae)>=2?ce(se):se>Ae?Math.ceil(se):Math.floor(se)}var fe=o5e.opacity(Z),K=fe<1||X>.01?ce:oe;e._context.staticPlot||(B=K(B,Y,T),Y=K(Y,B,T),G=K(G,U,!T),U=K(U,G,!T));var Te=T?o.c2p:l.c2p,le;P.s0>0?le=P._sMax:P.s0<0?le=P._sMin:le=P.s1>0?P._sMax:P._sMin;function pe(se,Ae){if(!se)return 0;var je=Math.abs(T?U-G:Y-B),ur=Math.abs(T?Y-B:U-G),lr=K(Math.abs(Te(le,!0)-Te(0,!0))),ue=P.hasB?Math.min(je/2,ur/2):Math.min(je/2,lr),qe;if(Ae==="%"){var Oe=Math.min(50,se);qe=je*(Oe/100)}else qe=se;return K(Math.max(Math.min(qe,ue),0))}var ie=w||x?pe(p.cornerradiusvalue,p.cornerradiusform):0,ve,W,Q="M"+B+","+G+"V"+U+"H"+Y+"V"+G+"Z",j=0;if(ie&&P.s){var ye=ww(P.s0)===0||ww(P.s)===ww(P.s0)?P.s1:P.s0;if(j=K(P.hasB?0:Math.abs(Te(le,!0)-Te(ye,!0))),j0?Math.sqrt(j*(2*ie-j)):0,ze=_e>0?Math.max:Math.min;ve="M"+B+","+G+"V"+(U-Ne*me)+"H"+ze(Y-(ie-j)*_e,B)+"A "+ie+","+ie+" 0 0 "+Pe+" "+Y+","+(U-ie*me-Re)+"V"+(G+ie*me+Re)+"A "+ie+","+ie+" 0 0 "+Pe+" "+ze(Y-(ie-j)*_e,B)+","+(G+Ne*me)+"Z"}else if(P.hasB)ve="M"+(B+ie*_e)+","+G+"A "+ie+","+ie+" 0 0 "+Pe+" "+B+","+(G+ie*me)+"V"+(U-ie*me)+"A "+ie+","+ie+" 0 0 "+Pe+" "+(B+ie*_e)+","+U+"H"+(Y-ie*_e)+"A "+ie+","+ie+" 0 0 "+Pe+" "+Y+","+(U-ie*me)+"V"+(G+ie*me)+"A "+ie+","+ie+" 0 0 "+Pe+" "+(Y-ie*_e)+","+G+"Z";else{W=Math.abs(U-G)+j;var Ge=W0?Math.sqrt(j*(2*ie-j)):0,Ee=me>0?Math.max:Math.min;ve="M"+(B+Ge*_e)+","+G+"V"+Ee(U-(ie-j)*me,G)+"A "+ie+","+ie+" 0 0 "+Pe+" "+(B+ie*_e-He)+","+U+"H"+(Y-ie*_e+He)+"A "+ie+","+ie+" 0 0 "+Pe+" "+(Y-Ge*_e)+","+Ee(U-(ie-j)*me,G)+"V"+G+"Z"}}else ve=Q}else ve=Q;var Ie=LG(Pa.ensureSingle(z,"path"),s,n,i);if(Ie.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Y-B)*(U-G))||V&&e._context.staticPlot?"M0,0Z":ve).call(ys.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Be=ys.makePointStyleFns(d);ys.singlePointStyle(P,Ie,d,Be,e)}g5e(e,r,z,c,R,B,Y,G,U,ie,j,n,i),r.layerClipId&&ys.hideOutsideRangePoint(P,z.select("text"),o,l,d.xcalendar,d.ycalendar)});var D=d.cliponaxis===!1;ys.setClipUrl(v,D?null:r.layerClipId,e)});l5e.getComponentMethod("errorbars","plot")(e,f,r,n)}function g5e(e,r,t,a,n,i,o,l,s,u,f,c,v){var d=r.xaxis,p=r.yaxis,y=e._fullLayout,m;function x(W,Q,j){var ye=Pa.ensureSingle(W,"text").text(Q).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(ys.font,j).call(i5e.convertToTspans,e);return ye}var w=a[0].trace,_=w.orientation==="h",b=_5e(y,a,n,d,p);m=w5e(w,n);var T=c.mode==="stack"||c.mode==="relative",k=a[n],M=!T||k._outmost,q=k.hasB,E=u&&u-f>vn;if(!b||m==="none"||(k.isBlank||i===o||l===s)&&(m==="auto"||m==="inside")){t.select("text").remove();return}var D=y.font,P=_w.getBarColor(a[n],w),R=_w.getInsideTextFont(w,n,D,P),z=_w.getOutsideTextFont(w,n,D),O=w.insidetextanchor||"end",B=t.datum();_?d.type==="log"&&B.s0<=0&&(d.range[0]0&&ce>0,K;E?q?K=Ou(U-2*u,V,re,ce,_)||Ou(U,V-2*u,re,ce,_):_?K=Ou(U-(u-f),V,re,ce,_)||Ou(U,V-2*(u-f),re,ce,_):K=Ou(U,V-(u-f),re,ce,_)||Ou(U-2*(u-f),V,re,ce,_):K=Ou(U,V,re,ce,_),fe&&K?m="inside":(m="outside",X.remove(),X=null)}else m="inside";if(!X){oe=Pa.ensureUniformFontSize(e,m==="outside"?z:R),X=x(t,b,oe);var Te=X.attr("transform");if(X.attr("transform",""),Z=ys.bBox(X.node()),re=Z.width,ce=Z.height,X.attr("transform",Te),re<=0||ce<=0){X.remove();return}}var le=w.textangle,pe,ie;m==="outside"?(ie=w.constraintext==="both"||w.constraintext==="outside",pe=x5e(i,o,l,s,Z,{isHorizontal:_,constrained:ie,angle:le})):(ie=w.constraintext==="both"||w.constraintext==="inside",pe=RG(i,o,l,s,Z,{isHorizontal:_,constrained:ie,angle:le,anchor:O,hasB:q,r:u,overhead:f})),pe.fontSize=oe.size,s5e(w.type==="histogram"?"bar":w.type,pe,y),k.transform=pe;var ve=LG(X,y,c,v);Pa.setTransormAndDisplay(ve,pe)}function Ou(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,o=t<=r&&a<=e,l=n?e>=t*(r/a):r>=a*(e/t);return i||o||l}function EG(e){return e==="auto"?0:e}function DG(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function RG(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",v=i.leftToRight||0,d=(v+1)/2,p=1-d,y=i.hasB,m=i.r,x=i.overhead,w=n.width,_=n.height,b=Math.abs(r-e),T=Math.abs(a-t),k=b>2*vn&&T>2*vn?vn:0;b-=2*k,T-=2*k;var M=EG(s);s==="auto"&&!(w<=b&&_<=T)&&(w>b||_>T)&&(!(w>T||_>b)||w<_!=bvn){var P=b5e(e,r,t,a,q,m,x,o,y);E=P.scale,D=P.pad}else E=1,l&&(E=Math.min(1,b/q.x,T/q.y)),D=0;var R=n.left*p+n.right*d,z=(n.top+n.bottom)/2,O=(e+vn)*p+(r-vn)*d,B=(t+a)/2,Y=0,G=0;if(c||f){var U=(o?q.x:q.y)/2;m&&(f||y)&&(k+=D);var V=o?Ho(e,r):Ho(t,a);o?c?(O=e+V*k,Y=-V*U):(O=r-V*k,Y=V*U):c?(B=t+V*k,G=-V*U):(B=a-V*k,G=V*U)}return{textX:R,textY:z,targetX:O,targetY:B,anchorX:Y,anchorY:G,scale:E,rotate:M}}function b5e(e,r,t,a,n,i,o,l,s){var u=Math.max(0,Math.abs(r-e)-2*vn),f=Math.max(0,Math.abs(a-t)-2*vn),c=i-vn,v=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=s?c*2:l?c-o:2*v,p=s?c*2:l?2*v:c-o,y,m,x,w,_;return n.y/n.x>=f/(u-d)?w=f/n.y:n.y/n.x<=(f-p)/u?w=u/n.x:!s&&l?(y=n.x*n.x+n.y*n.y/4,m=-2*n.x*(u-c)-n.y*(f/2-c),x=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,w=(-m+Math.sqrt(m*m-4*y*x))/(2*y)):s?(y=(n.x*n.x+n.y*n.y)/4,m=-n.x*(u/2-c)-n.y*(f/2-c),x=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,w=(-m+Math.sqrt(m*m-4*y*x))/(2*y)):(y=n.x*n.x/4+n.y*n.y,m=-n.x*(u/2-c)-2*n.y*(f-c),x=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,w=(-m+Math.sqrt(m*m-4*y*x))/(2*y)),w=Math.min(1,w),l?_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*w)/2)*(c-(f-n.y*w)/2)))-o):_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*w)/2)*(c-(u-n.x*w)/2)))-o),{scale:w,pad:_}}function x5e(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),v=Math.abs(a-t),d;o?d=v>2*vn?vn:0:d=c>2*vn?vn:0;var p=1;l&&(p=o?Math.min(1,v/f):Math.min(1,c/u));var y=EG(s),m=DG(n,y),x=(o?m.x:m.y)/2,w=(n.left+n.right)/2,_=(n.top+n.bottom)/2,b=(e+r)/2,T=(t+a)/2,k=0,M=0,q=o?Ho(r,e):Ho(t,a);return o?(b=r-q*d,k=q*x):(T=a+q*d,M=-q*x),{textX:w,textY:_,targetX:b,targetY:T,anchorX:k,anchorY:M,scale:p,rotate:y}}function _5e(e,r,t,a,n){var i=r[0].trace,o=i.texttemplate,l;return o?l=T5e(e,r,t,a,n):i.textinfo?l=A5e(r,t,a,n):l=Bc.getValue(i.text,t),Bc.coerceString(c5e,l)}function w5e(e,r){var t=Bc.getValue(e.textposition,r);return Bc.coerceEnumerated(v5e,t)}function T5e(e,r,t,a,n){var i=r[0].trace,o=Pa.castOption(i,t,"texttemplate");if(!o)return"";var l=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,v,d,p;f?(c="y",v=n,d="x",p=a):(c="x",v=a,d="y",p=n);function y(k){return ag(v,v.c2l(k),!0).text}function m(k){return ag(p,p.c2l(k),!0).text}var x=r[t],w={};w.label=x.p,w.labelLabel=w[c+"Label"]=y(x.p);var _=Pa.castOption(i,x.i,"text");(_===0||_)&&(w.text=_),w.value=x.s,w.valueLabel=w[d+"Label"]=m(x.s);var b={};h5e(b,i,x.i),(l||b.x===void 0)&&(b.x=f?w.value:w.label),(l||b.y===void 0)&&(b.y=f?w.label:w.value),(l||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(l||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),s&&(w.delta=+x.rawS||x.s,w.deltaLabel=m(w.delta),w.final=x.v,w.finalLabel=m(w.final),w.initial=w.final-w.delta,w.initialLabel=m(w.initial)),u&&(w.value=x.s,w.valueLabel=m(w.value),w.percentInitial=x.begR,w.percentInitialLabel=Pa.formatPercent(x.begR),w.percentPrevious=x.difR,w.percentPreviousLabel=Pa.formatPercent(x.difR),w.percentTotal=x.sumR,w.percenTotalLabel=Pa.formatPercent(x.sumR));var T=Pa.castOption(i,x.i,"customdata");return T&&(w.customdata=T),Pa.texttemplateString(o,w,e._d3locale,b,w,i._meta||{})}function A5e(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",o=n.type==="waterfall",l=n.type==="funnel";function s(T){var k=i?a:t;return ag(k,T,!0).text}function u(T){var k=i?t:a;return ag(k,+T,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),d=[],p,y=function(T){return v.indexOf(T)!==-1};if(y("label")&&d.push(s(e[r].p)),y("text")&&(p=Pa.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),o){var m=+c.rawS||c.s,x=c.v,w=x-m;y("initial")&&d.push(u(w)),y("delta")&&d.push(u(m)),y("final")&&d.push(u(x))}if(l){y("value")&&d.push(u(c.s));var _=0;y("percent initial")&&_++,y("percent previous")&&_++,y("percent total")&&_++;var b=_>1;y("percent initial")&&(p=Pa.formatPercent(c.begR),b&&(p+=" of initial"),d.push(p)),y("percent previous")&&(p=Pa.formatPercent(c.difR),b&&(p+=" of previous"),d.push(p)),y("percent total")&&(p=Pa.formatPercent(c.sumR),b&&(p+=" of total"),d.push(p))}return d.join("
")}PG.exports={plot:m5e,toMoveInsideBar:RG}});var Mw=N((YNe,IG)=>{"use strict";var q0=Fn(),M5e=gr(),FG=Tr(),k5e=Ce().fillText,S5e=eg().getLineWidth,Aw=Ir().hoverLabelText,q5e=Nt().BADNUM;function L5e(e,r,t,a,n){var i=NG(e,r,t,a,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=zG(l,s),M5e.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function NG(e,r,t,a,n){var i=e.cd,o=i[0].trace,l=i[0].t,s=a==="closest",u=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,v,d,p,y,m,x,w;o.orientation==="h"?(v=t,d=r,p="y",y="x",m=B,x=R):(v=r,d=t,p="x",y="y",x=B,m=R);var _=o[p+"period"],b=s||_;function T(K){return M(K,-1)}function k(K){return M(K,1)}function M(K,Te){var le=K.w;return K[p]+Te*le/2}function q(K){return K[p+"End"]-K[p+"Start"]}var E=s?T:_?function(K){return K.p-q(K)/2}:function(K){return Math.min(T(K),K.p-l.bardelta/2)},D=s?k:_?function(K){return K.p+q(K)/2}:function(K){return Math.max(k(K),K.p+l.bardelta/2)};function P(K,Te,le){return n.finiteRange&&(le=0),q0.inbox(K-v,Te-v,le+Math.min(1,Math.abs(Te-K)/w)-1)}function R(K){return P(E(K),D(K),f)}function z(K){return P(T(K),k(K),c)}function O(K){var Te=K[y];if(u){var le=Math.abs(K.rawS)||0;d>0?Te+=le:d<0&&(Te-=le)}return Te}function B(K){var Te=d,le=K.b,pe=O(K);return q0.inbox(le-Te,pe-Te,f+(pe-Te)/(pe-le)-1)}function Y(K){var Te=d,le=K.b,pe=O(K);return q0.inbox(le-Te,pe-Te,c+(pe-Te)/(pe-le)-1)}var G=e[p+"a"],U=e[y+"a"];w=Math.abs(G.r2c(G.range[1])-G.r2c(G.range[0]));function V(K){return(m(K)+x(K))/2}var X=q0.getDistanceFunction(a,m,x,V);if(q0.getClosest(i,X,e),e.index!==!1&&i[e.index].p!==q5e){b||(E=function(K){return Math.min(T(K),K.p-l.bargroupwidth/2)},D=function(K){return Math.max(k(K),K.p+l.bargroupwidth/2)});var Z=e.index,re=i[Z],ce=o.base?re.b+re.s:re.s;e[y+"0"]=e[y+"1"]=U.c2p(re[y],!0),e[y+"LabelVal"]=ce;var oe=l.extents[l.extents.round(re.p)];e[p+"0"]=G.c2p(s?E(re):oe[0],!0),e[p+"1"]=G.c2p(s?D(re):oe[1],!0);var fe=re.orig_p!==void 0;return e[p+"LabelVal"]=fe?re.orig_p:re.p,e.labelLabel=Aw(G,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=Aw(U,e[y+"LabelVal"],o[y+"hoverformat"]),e.baseLabel=Aw(U,re.b,o[y+"hoverformat"]),e.spikeDistance=(Y(re)+z(re))/2,e[p+"Spike"]=G.c2p(re.p,!0),k5e(re,o,e),e.hovertemplate=o.hovertemplate,e}}function zG(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=S5e(e,r);if(FG.opacity(t))return t;if(FG.opacity(a)&&n)return a}IG.exports={hoverPoints:L5e,hoverOnBars:NG,getTraceColor:zG}});var BG=N((WNe,OG)=>{"use strict";OG.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var kw=N((jNe,HG)=>{"use strict";HG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=a[0].trace,l=o.type==="funnel",s=o.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";UG.exports={attributes:Nu(),layoutAttributes:$m(),supplyDefaults:zu().supplyDefaults,crossTraceDefaults:zu().crossTraceDefaults,supplyLayoutDefaults:gw(),calc:vG(),crossTraceCalc:vm().crossTraceCalc,colorbar:f0(),arraysToCalcdata:Qm(),plot:Tw().plot,style:Oc().style,styleOnSelect:Oc().styleOnSelect,hoverPoints:Mw().hoverPoints,eventData:BG(),selectPoints:kw(),moduleType:"trace",name:"bar",basePlotModule:Li(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var YG=N((XNe,VG)=>{"use strict";VG.exports=GG()});var ng=N((JNe,XG)=>{"use strict";var E5e=Dy(),Ei=wi(),WG=Nu(),D5e=si(),jG=eo().axisHoverFormat,R5e=Ta().hovertemplateAttrs,_l=xt().extendFlat,Hc=Ei.marker,ZG=Hc.line;XG.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:Ei.xperiod,yperiod:Ei.yperiod,xperiod0:Ei.xperiod0,yperiod0:Ei.yperiod0,xperiodalignment:Ei.xperiodalignment,yperiodalignment:Ei.yperiodalignment,xhoverformat:jG("x"),yhoverformat:jG("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:_l({},Hc.symbol,{arrayOk:!1,editType:"plot"}),opacity:_l({},Hc.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:_l({},Hc.angle,{arrayOk:!1,editType:"calc"}),size:_l({},Hc.size,{arrayOk:!1,editType:"calc"}),color:_l({},Hc.color,{arrayOk:!1,editType:"style"}),line:{color:_l({},ZG.color,{arrayOk:!1,dflt:D5e.defaultLine,editType:"style"}),width:_l({},ZG.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:E5e(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:WG.offsetgroup,alignmentgroup:WG.alignmentgroup,selected:{marker:Ei.selected.marker,editType:"style"},unselected:{marker:Ei.unselected.marker,editType:"style"},text:_l({},Ei.text,{}),hovertext:_l({},Ei.hovertext,{}),hovertemplate:R5e({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:Ei.zorder}});var ig=N(($Ne,JG)=>{"use strict";JG.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var C0=N((KNe,eV)=>{"use strict";var Di=Ce(),P5e=gr(),F5e=Tr(),N5e=yc(),z5e=i0(),$G=T1(),L0=ng();function I5e(e,r,t,a){function n(p,y){return Di.coerce(e,r,L0,p,y)}if(KG(e,r,n,a),r.visible!==!1){N5e(e,r,a,n),n("xhoverformat"),n("yhoverformat");var i=r._hasPreCompStats;i&&(n("lowerfence"),n("upperfence")),n("line.color",(e.marker||{}).color||t),n("line.width"),n("fillcolor",F5e.addOpacity(r.line.color,.5));var o=!1;if(i){var l=n("mean"),s=n("sd");l&&l.length&&(o=!0,s&&s.length&&(o="sd"))}n("whiskerwidth");var u=n("sizemode"),f;u==="quartiles"&&(f=n("boxmean",o)),n("showwhiskers",u==="quartiles"),(u==="sd"||f==="sd")&&n("sdmultiple"),n("width"),n("quartilemethod");var c=!1;if(i){var v=n("notchspan");v&&v.length&&(c=!0)}else Di.validate(e.notchwidth,L0.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),QG(e,r,n,{prefix:"box"}),n("zorder")}}function KG(e,r,t,a){function n(D){var P=0;return D&&D.length&&(P+=1,Di.isArrayOrTypedArray(D[0])&&D[0].length&&(P+=1)),P}function i(D){return Di.validate(e[D],L0[D])}var o=t("y"),l=t("x"),s;if(r.type==="box"){var u=t("q1"),f=t("median"),c=t("q3");r._hasPreCompStats=u&&u.length&&f&&f.length&&c&&c.length,s=Math.min(Di.minRowLength(u),Di.minRowLength(f),Di.minRowLength(c))}var v=n(o),d=n(l),p=v&&Di.minRowLength(o),y=d&&Di.minRowLength(l),m=a.calendar,x={autotypenumbers:a.autotypenumbers},w,_;if(r._hasPreCompStats)switch(String(d)+String(v)){case"00":var b=i("x0")||i("dx"),T=i("y0")||i("dy");T&&!b?w="h":w="v",_=s;break;case"10":w="v",_=Math.min(s,y);break;case"20":w="h",_=Math.min(s,l.length);break;case"01":w="h",_=Math.min(s,p);break;case"02":w="v",_=Math.min(s,o.length);break;case"12":w="v",_=Math.min(s,y,o.length);break;case"21":w="h",_=Math.min(s,l.length,p);break;case"11":_=0;break;case"22":var k=!1,M;for(M=0;M0?(w="v",d>0?_=Math.min(y,p):_=Math.min(p)):d>0?(w="h",_=Math.min(y)):_=0;if(!_){r.visible=!1;return}r._length=_;var q=t("orientation",w);r._hasPreCompStats?q==="v"&&d===0?(t("x0",0),t("dx",1)):q==="h"&&v===0&&(t("y0",0),t("dy",1)):q==="v"&&d===0?t("x0"):q==="h"&&v===0&&t("y0");var E=P5e.getComponentMethod("calendars","handleTraceDefaults");E(e,r,["x","y"],a)}function QG(e,r,t,a){var n=a.prefix,i=Di.coerce2(e,r,L0,"marker.outliercolor"),o=t("marker.line.outliercolor"),l="outliers";r._hasPreCompStats?l="all":(i||o)&&(l="suspectedoutliers");var s=t(n+"points",l);s?(t("jitter",s==="all"?.3:0),t("pointpos",s==="all"?-1.5:0),t("marker.symbol"),t("marker.opacity"),t("marker.size"),t("marker.angle"),t("marker.color",r.line.color),t("marker.line.color"),t("marker.line.width"),s==="suspectedoutliers"&&(t("marker.line.outliercolor",r.marker.color),t("marker.line.outlierwidth")),t("selected.marker.color"),t("unselected.marker.color"),t("selected.marker.size"),t("unselected.marker.size"),t("text"),t("hovertext")):delete r.marker;var u=t("hoveron");(u==="all"||u.indexOf("points")!==-1)&&t("hovertemplate"),Di.coerceSelectionMarkerOpacity(r,t)}function O5e(e,r){var t,a;function n(s){return Di.coerce(a._input,a,L0,s)}for(var i=0;i{"use strict";var B5e=gr(),H5e=Ce(),U5e=ig();function rV(e,r,t,a,n){for(var i=n+"Layout",o=!1,l=0;l{"use strict";var Lw=Rr(),og=Ir(),V5e=gc(),ia=Ce(),ti=Nt().BADNUM,wl=ia._;cV.exports=function(r,t){var a=r._fullLayout,n=og.getFromId(r,t.xaxis||"x"),i=og.getFromId(r,t.yaxis||"y"),o=[],l=t.type==="violin"?"_numViolins":"_numBoxes",s,u,f,c,v,d,p;t.orientation==="h"?(f=n,c="x",v=i,d="y",p=!!t.yperiodalignment):(f=i,c="y",v=n,d="x",p=!!t.xperiodalignment);var y=Y5e(t,d,v,a[l]),m=y[0],x=y[1],w=ia.distinctVals(m,v),_=w.vals,b=w.minDiff/2,T,k,M,q,E,D,P=(t.boxpoints||t.points)==="all"?ia.identity:function(Pe){return Pe.vT.uf};if(t._hasPreCompStats){var R=t[c],z=function(Pe){return f.d2c((t[Pe]||[])[s])},O=1/0,B=-1/0;for(s=0;s=T.q1&&T.q3>=T.med){var G=z("lowerfence");T.lf=G!==ti&&G<=T.q1?G:oV(T,M,q);var U=z("upperfence");T.uf=U!==ti&&U>=T.q3?U:lV(T,M,q);var V=z("mean");T.mean=V!==ti?V:q?ia.mean(M,q):(T.q1+T.q3)/2;var X=z("sd");T.sd=V!==ti&&X>=0?X:q?ia.stdev(M,q,T.mean):T.q3-T.q1,T.lo=sV(T),T.uo=uV(T);var Z=z("notchspan");Z=Z!==ti&&Z>0?Z:fV(T,q),T.ln=T.med-Z,T.un=T.med+Z;var re=T.lf,ce=T.uf;t.boxpoints&&M.length&&(re=Math.min(re,M[0]),ce=Math.max(ce,M[q-1])),t.notched&&(re=Math.min(re,T.ln),ce=Math.max(ce,T.un)),T.min=re,T.max=ce}else{ia.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+T.q1,"median = "+T.med,"q3 = "+T.q3].join(` +`));var oe;T.med!==ti?oe=T.med:T.q1!==ti?T.q3!==ti?oe=(T.q1+T.q3)/2:oe=T.q1:T.q3!==ti?oe=T.q3:oe=0,T.med=oe,T.q1=T.q3=oe,T.lf=T.uf=oe,T.mean=T.sd=oe,T.ln=T.un=oe,T.min=T.max=oe}O=Math.min(O,T.min),B=Math.max(B,T.max),T.pts2=k.filter(P),o.push(T)}}t._extremes[f._id]=og.findExtremes(f,[O,B],{padded:!0})}else{var fe=f.makeCalcdata(t,c),K=W5e(_,b),Te=_.length,le=j5e(Te);for(s=0;s=0&&pe0){if(T={},T.pos=T[d]=_[s],k=T.pts=le[s].sort(nV),M=T[c]=k.map(iV),q=M.length,T.min=M[0],T.max=M[q-1],T.mean=ia.mean(M,q),T.sd=ia.stdev(M,q,T.mean)*t.sdmultiple,T.med=ia.interp(M,.5),q%2&&(Q||j)){var ye,_e;Q?(ye=M.slice(0,q/2),_e=M.slice(q/2+1)):j&&(ye=M.slice(0,q/2+1),_e=M.slice(q/2)),T.q1=ia.interp(ye,.5),T.q3=ia.interp(_e,.5)}else T.q1=ia.interp(M,.25),T.q3=ia.interp(M,.75);T.lf=oV(T,M,q),T.uf=lV(T,M,q),T.lo=sV(T),T.uo=uV(T);var me=fV(T,q);T.ln=T.med-me,T.un=T.med+me,ie=Math.min(ie,T.ln),ve=Math.max(ve,T.un),T.pts2=k.filter(P),o.push(T)}t.notched&&ia.isTypedArray(fe)&&(fe=Array.from(fe)),t._extremes[f._id]=og.findExtremes(f,t.notched?fe.concat([ie,ve]):fe,{padded:!0})}return Z5e(o,t),o.length>0?(o[0].t={num:a[l],dPos:b,posLetter:d,valLetter:c,labels:{med:wl(r,"median:"),min:wl(r,"min:"),q1:wl(r,"q1:"),q3:wl(r,"q3:"),max:wl(r,"max:"),mean:t.boxmean==="sd"||t.sizemode==="sd"?wl(r,"mean \xB1 \u03C3:").replace("\u03C3",t.sdmultiple===1?"\u03C3":t.sdmultiple+"\u03C3"):wl(r,"mean:"),lf:wl(r,"lower fence:"),uf:wl(r,"upper fence:")}},a[l]++,o):[{t:{empty:!0}}]};function Y5e(e,r,t,a){var n=r in e,i=r+"0"in e,o="d"+r in e;if(n||i&&o){var l=t.makeCalcdata(e,r),s=V5e(e,t,r,l).vals;return[s,l]}var u;i?u=e[r+"0"]:"name"in e&&(t.type==="category"||Lw(e.name)&&["linear","log"].indexOf(t.type)!==-1||ia.isDateTime(e.name)&&t.type==="date")?u=e.name:u=a;for(var f=t.type==="multicategory"?t.r2c_just_indices(u):t.d2c(u,0,e[r+"calendar"]),c=e._length,v=new Array(c),d=0;d{"use strict";var vV=Ir(),X5e=Ce(),J5e=Tu().getAxisGroup,hV=["v","h"];function $5e(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,w=1-i[e+"gap"],_=1-i[e+"groupgap"];for(s=0;s0;if(M==="positive"?(U=q*(k?1:.5),Z=X,V=Z=D):M==="negative"?(U=Z=D,V=q*(k?1:.5),re=X):(U=V=q,Z=re=X),le){var pe=b.pointpos,ie=b.jitter,ve=b.marker.size/2,W=0;pe+ie>=0&&(W=X*(pe+ie),W>U?(Te=!0,fe=ve,ce=W):W>Z&&(fe=ve,ce=U)),W<=U&&(ce=U);var Q=0;pe-ie<=0&&(Q=-X*(pe-ie),Q>V?(Te=!0,K=ve,oe=Q):Q>re&&(K=ve,oe=V)),Q<=V&&(oe=V)}else ce=U,oe=V;var j=new Array(f.length);for(u=0;u{"use strict";var Uc=Sr(),Bu=Ce(),K5e=Wr(),yV=5,Q5e=.01;function e_e(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,o=r.yaxis;Bu.makeTraceGroups(a,t,"trace boxes").each(function(l){var s=Uc.select(this),u=l[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var v,d;c.orientation==="h"?(v=o,d=i):(v=i,d=o),mV(s,{pos:v,val:d},c,f,n),gV(s,{x:i,y:o},c,f),bV(s,{pos:v,val:d},c,f)})}function mV(e,r,t,a,n){var i=t.orientation==="h",o=r.val,l=r.pos,s=!!l.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,v=t.whiskerwidth||0,d=t.showwhiskers!==!1,p=t.notched||!1,y=p?1-2*t.notchwidth:1,m,x;Array.isArray(a.bdPos)?(m=a.bdPos[0],x=a.bdPos[1]):(m=a.bdPos,x=a.bdPos);var w=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Bu.identity:[]);w.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),w.exit().remove(),w.each(function(_){if(_.empty)return Uc.select(this).attr("d","M0,0Z");var b=l.c2l(_.pos+u,!0),T=l.l2p(b-m)+c,k=l.l2p(b+x)+c,M=s?(T+k)/2:l.l2p(b)+c,q=t.whiskerwidth,E=s?T*q+(1-q)*M:l.l2p(b-f)+c,D=s?k*q+(1-q)*M:l.l2p(b+f)+c,P=l.l2p(b-m*y)+c,R=l.l2p(b+x*y)+c,z=t.sizemode==="sd",O=o.c2p(z?_.mean-_.sd:_.q1,!0),B=z?o.c2p(_.mean+_.sd,!0):o.c2p(_.q3,!0),Y=Bu.constrain(z?o.c2p(_.mean,!0):o.c2p(_.med,!0),Math.min(O,B)+1,Math.max(O,B)-1),G=_.lf===void 0||t.boxpoints===!1||z,U=o.c2p(G?_.min:_.lf,!0),V=o.c2p(G?_.max:_.uf,!0),X=o.c2p(_.ln,!0),Z=o.c2p(_.un,!0);i?Uc.select(this).attr("d","M"+Y+","+P+"V"+R+"M"+O+","+T+"V"+k+(p?"H"+X+"L"+Y+","+R+"L"+Z+","+k:"")+"H"+B+"V"+T+(p?"H"+Z+"L"+Y+","+P+"L"+X+","+T:"")+"Z"+(d?"M"+O+","+M+"H"+U+"M"+B+","+M+"H"+V+(v===0?"":"M"+U+","+E+"V"+D+"M"+V+","+E+"V"+D):"")):Uc.select(this).attr("d","M"+P+","+Y+"H"+R+"M"+T+","+O+"H"+k+(p?"V"+X+"L"+R+","+Y+"L"+k+","+Z:"")+"V"+B+"H"+T+(p?"V"+Z+"L"+P+","+Y+"L"+T+","+X:"")+"Z"+(d?"M"+M+","+O+"V"+U+"M"+M+","+B+"V"+V+(v===0?"":"M"+E+","+U+"H"+D+"M"+E+","+V+"H"+D):""))})}function gV(e,r,t,a){var n=r.x,i=r.y,o=a.bdPos,l=a.bPos,s=t.boxpoints||t.points;Bu.seedPseudoRandom();var u=function(v){return v.forEach(function(d){d.t=a,d.trace=t}),v},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(v){var d,p=v.pts2,y=Math.max((v.max-v.min)/10,v.q3-v.q1),m=y*1e-9,x=y*Q5e,w=[],_=0,b;if(t.jitter){if(y===0)for(_=1,w=new Array(p.length),d=0;dv.lo&&(D.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(K5e.translatePoints,n,i)}function bV(e,r,t,a){var n=r.val,i=r.pos,o=!!i.rangebreaks,l=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var v=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Bu.identity:[]);v.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),v.exit().remove(),v.each(function(d){var p=i.c2l(d.pos+l,!0),y=i.l2p(p-f)+s,m=i.l2p(p+c)+s,x=o?(y+m)/2:i.l2p(p)+s,w=n.c2p(d.mean,!0),_=n.c2p(d.mean-d.sd,!0),b=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?Uc.select(this).attr("d","M"+w+","+y+"V"+m+(u==="sd"?"m0,0L"+_+","+x+"L"+w+","+y+"L"+b+","+x+"Z":"")):Uc.select(this).attr("d","M"+y+","+w+"H"+m+(u==="sd"?"m0,0L"+x+","+_+"L"+y+","+w+"L"+x+","+b+"Z":""))})}xV.exports={plot:e_e,plotBoxAndWhiskers:mV,plotPoints:gV,plotBoxMean:bV}});var Nw=N((aze,_V)=>{"use strict";var Rw=Sr(),Pw=Tr(),Fw=Wr();function r_e(e,r,t){var a=t||Rw.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=Rw.select(this),o=n[0].trace,l=o.line.width;function s(c,v,d,p){c.style("stroke-width",v+"px").call(Pw.stroke,d).call(Pw.fill,p)}var u=i.selectAll("path.box");if(o.type==="candlestick")u.each(function(c){if(!c.empty){var v=Rw.select(this),d=o[c.dir];s(v,d.line.width,d.line.color,d.fillcolor),v.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{s(u,l,o.line.color,o.fillcolor),i.selectAll("path.mean").style({"stroke-width":l,"stroke-dasharray":2*l+"px,"+l+"px"}).call(Pw.stroke,o.line.color);var f=i.selectAll("path.point");Fw.pointStyle(f,o,e)}})}function t_e(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?Fw.selectedPointStyle(n,a):Fw.pointStyle(n,a,e)}_V.exports={style:r_e,styleOnSelect:t_e}});var Iw=N((nze,MV)=>{"use strict";var a_e=Ir(),zw=Ce(),ms=Fn(),wV=Tr(),n_e=zw.fillText;function i_e(e,r,t,a){var n=e.cd,i=n[0].trace,o=i.hoveron,l=[],s;return o.indexOf("boxes")!==-1&&(l=l.concat(TV(e,r,t,a))),o.indexOf("points")!==-1&&(s=AV(e,r,t)),a==="closest"?s?[s]:l:(s&&l.push(s),l)}function TV(e,r,t,a){var n=e.cd,i=e.xa,o=e.ya,l=n[0].trace,s=n[0].t,u=l.type==="violin",f,c,v,d,p,y,m,x,w,_,b,T=s.bdPos,k,M,q=s.wHover,E=function(ve){return v.c2l(ve.pos)+s.bPos-v.c2l(y)};u&&l.side!=="both"?(l.side==="positive"&&(w=function(ve){var W=E(ve);return ms.inbox(W,W+q,_)},k=T,M=0),l.side==="negative"&&(w=function(ve){var W=E(ve);return ms.inbox(W-q,W,_)},k=0,M=T)):(w=function(ve){var W=E(ve);return ms.inbox(W-q,W+q,_)},k=M=T);var D;u?D=function(ve){return ms.inbox(ve.span[0]-p,ve.span[1]-p,_)}:D=function(ve){return ms.inbox(ve.min-p,ve.max-p,_)},l.orientation==="h"?(p=r,y=t,m=D,x=w,f="y",v=o,c="x",d=i):(p=t,y=r,m=w,x=D,f="x",v=i,c="y",d=o);var P=Math.min(1,T/Math.abs(v.r2c(v.range[1])-v.r2c(v.range[0])));_=e.maxHoverDistance-P,b=e.maxSpikeDistance-P;function R(ve){return(m(ve)+x(ve))/2}var z=ms.getDistanceFunction(a,m,x,R);if(ms.getClosest(n,z,e),e.index===!1)return[];var O=n[e.index],B=l.line.color,Y=(l.marker||{}).color;wV.opacity(B)&&l.line.width?e.color=B:wV.opacity(Y)&&l.boxpoints?e.color=Y:e.color=l.fillcolor,e[f+"0"]=v.c2p(O.pos+s.bPos-M,!0),e[f+"1"]=v.c2p(O.pos+s.bPos+k,!0),e[f+"LabelVal"]=O.orig_p!==void 0?O.orig_p:O.pos;var G=f+"Spike";e.spikeDistance=R(O)*b/_,e[G]=v.c2p(O.pos,!0);var U=l.boxmean||l.sizemode==="sd"||(l.meanline||{}).visible,V=l.boxpoints||l.points,X=V&&U?["max","uf","q3","med","mean","q1","lf","min"]:V&&!U?["max","uf","q3","med","q1","lf","min"]:!V&&U?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],Z=d.range[1]{"use strict";kV.exports=function(r,t){return t.hoverOnBox&&(r.hoverOnBox=t.hoverOnBox),"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var Ow=N((oze,qV)=>{"use strict";qV.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,s;if(t===!1)for(l=0;l{"use strict";LV.exports={attributes:ng(),layoutAttributes:ig(),supplyDefaults:C0().supplyDefaults,crossTraceDefaults:C0().crossTraceDefaults,supplyLayoutDefaults:Sw().supplyLayoutDefaults,calc:Cw(),crossTraceCalc:Ew().crossTraceCalc,plot:Dw().plot,style:Nw().style,styleOnSelect:Nw().styleOnSelect,hoverPoints:Iw().hoverPoints,eventData:SV(),selectPoints:Ow(),moduleType:"trace",name:"box",basePlotModule:Li(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var DV=N((sze,EV)=>{"use strict";EV.exports=CV()});var E0=N((uze,RV)=>{"use strict";var ai=wi(),o_e=gn(),l_e=da(),Bw=eo().axisHoverFormat,s_e=Ta().hovertemplateAttrs,u_e=Ta().texttemplateAttrs,f_e=ko(),Bn=xt().extendFlat;RV.exports=Bn({z:{valType:"data_array",editType:"calc"},x:Bn({},ai.x,{impliedEdits:{xtype:"array"}}),x0:Bn({},ai.x0,{impliedEdits:{xtype:"scaled"}}),dx:Bn({},ai.dx,{impliedEdits:{xtype:"scaled"}}),y:Bn({},ai.y,{impliedEdits:{ytype:"array"}}),y0:Bn({},ai.y0,{impliedEdits:{ytype:"scaled"}}),dy:Bn({},ai.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Bn({},ai.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Bn({},ai.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Bn({},ai.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Bn({},ai.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Bn({},ai.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Bn({},ai.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:Bw("x"),yhoverformat:Bw("y"),zhoverformat:Bw("z",1),hovertemplate:s_e(),texttemplate:u_e({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:l_e({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Bn({},o_e.showlegend,{dflt:!1}),zorder:ai.zorder},f_e("",{cLetter:"z",autoColorDflt:!1}))});var Hw=N((fze,FV)=>{"use strict";var c_e=Rr(),lg=Ce(),v_e=gr();FV.exports=function(r,t,a,n,i,o){var l=a("z");i=i||"x",o=o||"y";var s,u;if(l===void 0||!l.length)return 0;if(lg.isArray1D(l)){s=a(i),u=a(o);var f=lg.minRowLength(s),c=lg.minRowLength(u);if(f===0||c===0)return 0;t._length=Math.min(f,c,l.length)}else{if(s=PV(i,a),u=PV(o,a),!h_e(l))return 0;a("transpose"),t._length=null}var v=v_e.getComponentMethod("calendars","handleTraceDefaults");return v(r,t,[i,o],n),!0};function PV(e,r){var t=r(e),a=t?r(e+"type","array"):"scaled";return a==="scaled"&&(r(e+"0"),r("d"+e)),t}function h_e(e){for(var r=!0,t=!1,a=!1,n,i=0;i0&&(t=!0);for(var o=0;o{"use strict";var NV=Ce();zV.exports=function(r,t){r("texttemplate");var a=NV.extendFlat({},t.font,{color:"auto",size:"auto"});NV.coerceFont(r,"textfont",a)}});var Uw=N((vze,IV)=>{"use strict";IV.exports=function(r,t,a){var n=a("zsmooth");n===!1&&(a("xgap"),a("ygap")),a("zhoverformat")}});var HV=N((hze,BV)=>{"use strict";var OV=Ce(),d_e=Hw(),p_e=D0(),y_e=yc(),m_e=Uw(),g_e=ul(),b_e=E0();BV.exports=function(r,t,a,n){function i(l,s){return OV.coerce(r,t,b_e,l,s)}var o=d_e(r,t,i,n);if(!o){t.visible=!1;return}y_e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hovertemplate"),p_e(i,n),m_e(r,t,i,n),i("hoverongaps"),i("connectgaps",OV.isArray1D(t.z)&&t.zsmooth!==!1),g_e(r,t,n,i,{prefix:"",cLetter:"z"}),i("zorder")}});var Gw=N((dze,UV)=>{"use strict";var Gc=Rr();UV.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Gc(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Gc(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Gc(n))if(n=Number(n),Gc(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if(Gc(n))if(n=Number(n),Gc(t[e])){if(t[e]{"use strict";GV.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";VV.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Vc=Nt(),Hu=Vc.ONEAVGYEAR,YV=Vc.ONEAVGMONTH,ug=Vc.ONEDAY,WV=Vc.ONEHOUR,jV=Vc.ONEMIN,ZV=Vc.ONESEC,XV=Ir().tickIncrement;KV.exports=function(r,t,a,n,i){var o=-1.1*t,l=-.1*t,s=r-l,u=a[0],f=a[1],c=Math.min(sg(u+l,u+s,n,i),sg(f+l,f+s,n,i)),v=Math.min(sg(u+o,u+l,n,i),sg(f+o,f+l,n,i)),d,p;if(c>v&&vug){var y=d===Hu?1:6,m=d===Hu?"M12":"M1";return function(x,w){var _=n.c2d(x,Hu,i),b=_.indexOf("-",y);b>0&&(_=_.substr(0,b));var T=n.d2c(_,0,i);if(TZV?e>ug?e>Hu*1.1?Hu:e>YV*1.1?YV:ug:e>WV?WV:e>jV?jV:ZV:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function x_e(e,r,t,a,n,i){if(a&&e>ug){var o=$V(r,n,i),l=$V(t,n,i),s=e===Hu?0:1;return o[s]!==l[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function $V(e,r,t){var a=r.c2d(e,Hu,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var Xw=N((gze,aY)=>{"use strict";var jw=Rr(),hn=Ce(),QV=gr(),Ri=Ir(),{hasColorscale:eY}=jn(),rY=Uf(),__e=Qm(),tY=Gw(),w_e=Vw(),T_e=Yw(),A_e=Ww();function M_e(e,r){var t=[],a=[],n=r.orientation==="h",i=Ri.getFromId(e,n?r.yaxis:r.xaxis),o=n?"y":"x",l={x:"y",y:"x"}[o],s=r[o+"calendar"],u=r.cumulative,f,c=Zw(e,r,i,o),v=c[0],d=c[1],p=typeof v.size=="string",y=[],m=p?y:v,x=[],w=[],_=[],b=0,T=r.histnorm,k=r.histfunc,M=T.indexOf("density")!==-1,q,E,D;u.enabled&&M&&(T=T.replace(/ ?density$/,""),M=!1);var P=k==="max"||k==="min",R=P?null:0,z=tY.count,O=w_e[T],B=!1,Y=function(W){return i.r2c(W,0,s)},G;for(hn.isArrayOrTypedArray(r[l])&&k!=="count"&&(G=r[l],B=k==="avg",z=tY[k]),f=Y(v.start),E=Y(v.end)+(f-Ri.tickIncrement(f,v.size,!1,s))/1e6;f=0&&D=pe;f--)if(a[f]){ie=f;break}for(f=pe;f<=ie;f++)if(jw(t[f])&&jw(a[f])){var ve={p:t[f],s:a[f],b:0};u.enabled||(ve.pts=_[f],Z?ve.ph0=ve.ph1=_[f].length?d[_[f][0]]:t[f]:(r._computePh=!0,ve.ph0=K(y[f]),ve.ph1=K(y[f+1],!0))),le.push(ve)}return le.length===1&&(le[0].width1=Ri.tickIncrement(le[0].p,v.size,!1,s)-le[0].p),eY(r,"marker")&&rY(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),eY(r,"marker.line")&&rY(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),__e(le,r),hn.isArrayOrTypedArray(r.selectedpoints)&&hn.tagSelected(le,r,oe),le}function Zw(e,r,t,a,n){var i=a+"bins",o=e._fullLayout,l=r["_"+a+"bingroup"],s=o._histogramBinOpts[l],u=o.barmode==="overlay",f,c,v,d,p,y,m,x=function(fe){return t.r2c(fe,0,d)},w=function(fe){return t.c2r(fe,0,d)},_=t.type==="date"?function(fe){return fe||fe===0?hn.cleanDate(fe,null,d):null}:function(fe){return jw(fe)?Number(fe):null};function b(fe,K,Te){K[fe+"Found"]?(K[fe]=_(K[fe]),K[fe]===null&&(K[fe]=Te[fe])):(y[fe]=K[fe]=Te[fe],hn.nestedProperty(c[0],i+"."+fe).set(Te[fe]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var T=[],k=!0,M=!1,q=!1;for(f=0;ft.r2l(G)&&(V=Ri.tickIncrement(V,s.size,!0,d)),z.start=t.l2r(V),Y||hn.nestedProperty(r,i+".start").set(z.start)}var X=s.end,Z=t.r2l(R.end),re=Z!==void 0;if((s.endFound||re)&&Z!==t.r2l(X)){var ce=re?Z:hn.aggNums(Math.max,null,p);z.end=t.l2r(ce),re||hn.nestedProperty(r,i+".start").set(z.end)}var oe="autobin"+a;return r._input[oe]===!1&&(r._input[i]=hn.extendFlat({},r[i]||{}),delete r._input[oe],delete r[oe]),[z,p]}function k_e(e,r,t,a,n){var i=e._fullLayout,o=S_e(e,r),l=!1,s=1/0,u=[r],f,c,v;for(f=0;f=0;a--)l(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}aY.exports={calc:M_e,calcAllAutoBins:Zw}});var cY=N((bze,fY)=>{"use strict";var nY=Ce(),Yc=Ir(),iY=Gw(),L_e=Vw(),C_e=Yw(),E_e=Ww(),oY=Xw().calcAllAutoBins;fY.exports=function(r,t){var a=Yc.getFromId(r,t.xaxis),n=Yc.getFromId(r,t.yaxis),i=t.xcalendar,o=t.ycalendar,l=function(ue){return a.r2c(ue,0,i)},s=function(ue){return n.r2c(ue,0,o)},u=function(ue){return a.c2r(ue,0,i)},f=function(ue){return n.c2r(ue,0,o)},c,v,d,p,y=oY(r,t,a,"x"),m=y[0],x=y[1],w=oY(r,t,n,"y"),_=w[0],b=w[1],T=t._length;x.length>T&&x.splice(T,x.length-T),b.length>T&&b.splice(T,b.length-T);var k=[],M=[],q=[],E=typeof m.size=="string",D=typeof _.size=="string",P=[],R=[],z=E?P:m,O=D?R:_,B=0,Y=[],G=[],U=t.histnorm,V=t.histfunc,X=U.indexOf("density")!==-1,Z=V==="max"||V==="min",re=Z?null:0,ce=iY.count,oe=L_e[U],fe=!1,K=[],Te=[],le="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";le&&V!=="count"&&(fe=V==="avg",ce=iY[V]);var pe=m.size,ie=l(m.start),ve=l(m.end)+(ie-Yc.tickIncrement(ie,pe,!1,i))/1e6;for(c=ie;c=0&&d=0&&p{"use strict";var Uo=Ce(),vY=Nt().BADNUM,hY=gc();dY.exports=function(r,t,a,n,i,o){var l=r._length,s=t.makeCalcdata(r,n),u=a.makeCalcdata(r,i);s=hY(r,t,n,s).vals,u=hY(r,a,i,u).vals;var f=r.text,c=f!==void 0&&Uo.isArray1D(f),v=r.hovertext,d=v!==void 0&&Uo.isArray1D(v),p,y,m=Uo.distinctVals(s),x=m.vals,w=Uo.distinctVals(u),_=w.vals,b=[],T,k,M=_.length,q=x.length;for(p=0;p{"use strict";var D_e=Rr(),R_e=Ce(),fg=Nt().BADNUM;yY.exports=function(r,t,a,n){var i,o,l,s,u,f;function c(x){if(D_e(x))return+x}if(t&&t.transpose){for(i=0,u=0;u{"use strict";var P_e=Ce(),gY=.01,F_e=[[-1,0],[1,0],[0,-1],[0,1]];function N_e(e){return .5-.25*Math.min(1,e*.5)}xY.exports=function(r,t){var a=1,n;for(bY(r,t),n=0;ngY;n++)a=bY(r,t,N_e(a));return a>gY&&P_e.log("interp2d didn't converge quickly",a),r};function bY(e,r,t){var a=0,n,i,o,l,s,u,f,c,v,d,p,y,m;for(l=0;ly&&(a=Math.max(a,Math.abs(e[i][o]-p)/(m-y))))}return a}});var TY=N((Tze,wY)=>{"use strict";var z_e=Ce().maxRowLength;wY.exports=function(r){var t=[],a={},n=[],i=r[0],o=[],l=[0,0,0],s=z_e(r),u,f,c,v,d,p,y,m;for(f=0;f=0;d--)v=n[d],f=v[0],c=v[1],p=((a[[f-1,c]]||l)[2]+(a[[f+1,c]]||l)[2]+(a[[f,c-1]]||l)[2]+(a[[f,c+1]]||l)[2])/20,p&&(y[v]=[f,c,p],n.splice(d,1),m=!0);if(!m)throw"findEmpties iterated with no new neighbors";for(v in y)a[v]=y[v],t.push(y[v])}return t.sort(function(x,w){return w[2]-x[2]})}});var SY=N((Aze,kY)=>{"use strict";var AY=gr(),MY=Ce().isArrayOrTypedArray;kY.exports=function(r,t,a,n,i,o){var l=[],s=AY.traceIs(r,"contour"),u=AY.traceIs(r,"histogram"),f,c,v,d=MY(t)&&t.length>1;if(d&&!u&&o.type!=="category"){var p=t.length;if(p<=i){if(s)l=Array.from(t).slice(0,i);else if(i===1)o.type==="log"?l=[.5*t[0],2*t[0]]:l=[t[0]-.5,t[0]+.5];else if(o.type==="log"){for(l=[Math.pow(t[0],1.5)/Math.pow(t[1],.5)],v=1;v{"use strict";var qY=gr(),Jw=Ce(),cg=Ir(),LY=gc(),I_e=cY(),O_e=Uf(),B_e=pY(),H_e=mY(),U_e=_Y(),G_e=TY(),vg=SY(),$w=Nt().BADNUM;EY.exports=function(r,t){var a=cg.getFromId(r,t.xaxis||"x"),n=cg.getFromId(r,t.yaxis||"y"),i=qY.traceIs(t,"contour"),o=qY.traceIs(t,"histogram"),l=i?"best":t.zsmooth,s,u,f,c,v,d,p,y,m,x,w;if(a._minDtick=0,n._minDtick=0,o)w=I_e(r,t),c=w.orig_x,s=w.x,u=w.x0,f=w.dx,y=w.orig_y,v=w.y,d=w.y0,p=w.dy,m=w.z;else{var _=t.z;Jw.isArray1D(_)?(B_e(t,a,n,"x","y",["z"]),s=t._x,v=t._y,_=t._z):(c=t.x?a.makeCalcdata(t,"x"):[],y=t.y?n.makeCalcdata(t,"y"):[],s=LY(t,a,"x",c).vals,v=LY(t,n,"y",y).vals,t._x=s,t._y=v),u=t.x0,f=t.dx,d=t.y0,p=t.dy,m=H_e(_,t,a,n)}(a.rangebreaks||n.rangebreaks)&&(m=V_e(s,v,m),o||(s=CY(s),v=CY(v),t._x=s,t._y=v)),!o&&(i||t.connectgaps)&&(t._emptypoints=G_e(m),U_e(m,t._emptypoints));function b(z){l=t._input.zsmooth=t.zsmooth=!1,Jw.warn('cannot use zsmooth: "fast": '+z)}function T(z){if(z.length>1){var O=(z[z.length-1]-z[0])/(z.length-1),B=Math.abs(O/100);for(x=0;xB)return!1}return!0}t._islinear=!1,a.type==="log"||n.type==="log"?l==="fast"&&b("log axis found"):T(s)?T(v)?t._islinear=!0:l==="fast"&&b("y scale is not linear"):l==="fast"&&b("x scale is not linear");var k=Jw.maxRowLength(m),M=t.xtype==="scaled"?"":s,q=vg(t,M,u,f,k,a),E=t.ytype==="scaled"?"":v,D=vg(t,E,d,p,m.length,n);t._extremes[a._id]=cg.findExtremes(a,q),t._extremes[n._id]=cg.findExtremes(n,D);var P={x:q,y:D,z:m,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&c&&(P.orig_x=c),t.yperiodalignment&&y&&(P.orig_y=y),M&&M.length===q.length-1&&(P.xCenter=M),E&&E.length===D.length-1&&(P.yCenter=E),o&&(P.xRanges=w.xRanges,P.yRanges=w.yRanges,P.pts=w.pts),i||O_e(r,t,{vals:m,cLetter:"z"}),i&&t.contours&&t.contours.coloring==="heatmap"){var R={type:t.type==="contour"?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};P.xfill=vg(R,M,u,f,k,a),P.yfill=vg(R,E,d,p,m.length,n)}return[P]};function CY(e){for(var r=[],t=e.length,a=0;a{"use strict";dg.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];dg.STYLE=dg.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var Qw=N((Sze,RY)=>{"use strict";var DY=pg(),Y_e=Wr(),Kw=Ce(),Wc=null;function W_e(){if(Wc!==null)return Wc;Wc=!1;var e=Kw.isSafari()||Kw.isMacWKWebView()||Kw.isIOS();if(window.navigator.userAgent&&!e){var r=Array.from(DY.CSS_DECLARATIONS).reverse(),t=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof t=="function")Wc=r.some(function(o){return t.apply(null,o)});else{var a=Y_e.tester.append("image").attr("style",DY.STYLE),n=window.getComputedStyle(a.node()),i=n.imageRendering;Wc=r.some(function(o){var l=o[1];return i===l||i===l.toLowerCase()}),a.remove()}}return Wc}RY.exports=W_e});var yg=N((qze,UY)=>{"use strict";var PY=Sr(),j_e=Sn(),Z_e=gr(),X_e=Wr(),J_e=Ir(),Pi=Ce(),FY=Da(),$_e=u4(),K_e=Tr(),Q_e=So().extractOpts,e4e=So().makeColorScaleFuncFromTrace,r4e=ll(),t4e=Xa(),e6=t4e.LINE_SPACING,a4e=Qw(),n4e=pg().STYLE,BY="heatmap-label";function HY(e){return e.selectAll("g."+BY)}function NY(e){HY(e).remove()}UY.exports=function(e,r,t,a){var n=r.xaxis,i=r.yaxis;Pi.makeTraceGroups(a,t,"hm").each(function(o){var l=PY.select(this),s=o[0],u=s.trace,f=u.xgap||0,c=u.ygap||0,v=s.z,d=s.x,p=s.y,y=s.xCenter,m=s.yCenter,x=Z_e.traceIs(u,"contour"),w=x?"best":u.zsmooth,_=v.length,b=Pi.maxRowLength(v),T=!1,k=!1,M,q,E,D,P,R,z,O;for(R=0;M===void 0&&R0;)q=n.c2p(d[R]),R--;for(q0;)P=i.c2p(p[R]),R--;P=n._length||q<=0||D>=i._length||P<=0;if(V){var X=l.selectAll("image").data([]);X.exit().remove(),NY(l);return}var Z,re;B==="fast"?(Z=b,re=_):(Z=G,re=U);var ce=document.createElement("canvas");ce.width=Z,ce.height=re;var oe=ce.getContext("2d",{willReadFrequently:!0}),fe=e4e(u,{noNumericCheck:!0,returnArray:!0}),K,Te;B==="fast"?(K=T?function(vt){return b-1-vt}:Pi.identity,Te=k?function(vt){return _-1-vt}:Pi.identity):(K=function(vt){return Pi.constrain(Math.round(n.c2p(d[vt])-M),0,G)},Te=function(vt){return Pi.constrain(Math.round(i.c2p(p[vt])-D),0,U)});var le=Te(0),pe=[le,le],ie=T?0:1,ve=k?0:1,W=0,Q=0,j=0,ye=0,_e,me,Pe,Ne,Re;function ze(vt,An){if(vt!==void 0){var Ft=fe(vt);return Ft[0]=Math.round(Ft[0]),Ft[1]=Math.round(Ft[1]),Ft[2]=Math.round(Ft[2]),W+=An,Q+=Ft[0]*An,j+=Ft[1]*An,ye+=Ft[2]*An,Ft}return[0,0,0,0]}function Ge(vt,An,Ft,zs){var yn=vt[Ft.bin0];if(yn===void 0)return ze(void 0,1);var Vi=vt[Ft.bin1],Yt=An[Ft.bin0],Yi=An[Ft.bin1],Rl=Vi-yn||0,Pl=Yt-yn||0,yr;return Vi===void 0?Yi===void 0?yr=0:Yt===void 0?yr=2*(Yi-yn):yr=(2*Yi-Yt-yn)*2/3:Yi===void 0?Yt===void 0?yr=0:yr=(2*yn-Vi-Yt)*2/3:Yt===void 0?yr=(2*Yi-Vi-yn)*2/3:yr=Yi+yn-Vi-Yt,ze(yn+Ft.frac*Rl+zs.frac*(Pl+Ft.frac*yr))}if(B!=="default"){var He=0,Ee;try{Ee=new Uint8Array(Z*re*4)}catch(vt){Ee=new Array(Z*re*4)}if(B==="smooth"){var Ie=y||d,Be=m||p,se=new Array(Ie.length),Ae=new Array(Be.length),je=new Array(G),ur=y?IY:zY,lr=m?IY:zY,ue,qe,Oe;for(R=0;RVt||Vt>i._length))for(z=Mr;zTt||Tt>n._length)){var pt=$_e({x:wt,y:Yr},u,e._fullLayout);pt.x=wt,pt.y=Yr;var Xt=s.z[R][z];Xt===void 0?(pt.z="",pt.zLabel=""):(pt.z=Xt,pt.zLabel=J_e.tickText(De,Xt,"hover").text);var Jt=s.text&&s.text[R]&&s.text[R][z];(Jt===void 0||Jt===!1)&&(Jt=""),pt.text=Jt;var It=Pi.texttemplateString(ne,pt,e._fullLayout._d3locale,pt,u._meta||{});if(It){var za=It.split("
"),br=za.length,yt=0;for(O=0;O{"use strict";GY.exports={min:"zmin",max:"zmax"}});var mg=N((Cze,VY)=>{"use strict";var i4e=Sr();VY.exports=function(r){i4e.select(r).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})}});var bg=N((Eze,WY)=>{"use strict";var YY=Fn(),R0=Ce(),gg=R0.isArrayOrTypedArray,o4e=Ir(),l4e=So().extractOpts;WY.exports=function(r,t,a,n,i){i||(i={});var o=i.isContour,l=r.cd[0],s=l.trace,u=r.xa,f=r.ya,c=l.x,v=l.y,d=l.z,p=l.xCenter,y=l.yCenter,m=l.zmask,x=s.zhoverformat,w=c,_=v,b,T,k,M;if(r.index!==!1){try{k=Math.round(r.index[1]),M=Math.round(r.index[0])}catch(X){R0.error("Error hovering on heatmap, pointNumber must be [row,col], found:",r.index);return}if(k<0||k>=d[0].length||M<0||M>d.length)return}else{if(YY.inbox(t-c[0],t-c[c.length-1],0)>0||YY.inbox(a-v[0],a-v[v.length-1],0)>0)return;if(o){var q;for(w=[2*c[0]-c[1]],q=1;q{"use strict";jY.exports={attributes:E0(),supplyDefaults:HV(),calc:hg(),plot:yg(),colorbar:r6(),style:mg(),hoverPoints:bg(),moduleType:"trace",name:"heatmap",basePlotModule:Li(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var JY=N((Rze,XY)=>{"use strict";XY.exports=ZY()});var t6=N((Pze,$Y)=>{"use strict";$Y.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var QY=N((Fze,KY)=>{"use strict";KY.exports={eventDataKeys:["binNumber"]}});var xg=N((Nze,tW)=>{"use strict";var Hn=Nu(),eW=eo().axisHoverFormat,s4e=Ta().hovertemplateAttrs,u4e=Ta().texttemplateAttrs,a6=da(),rW=t6(),f4e=QY(),n6=xt().extendFlat;tW.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:eW("x"),yhoverformat:eW("y"),text:n6({},Hn.text,{}),hovertext:n6({},Hn.hovertext,{}),orientation:Hn.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:rW("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:rW("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:s4e({},{keys:f4e.eventDataKeys}),texttemplate:u4e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:n6({},Hn.textposition,{arrayOk:!1}),textfont:a6({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:a6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:a6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Hn.insidetextanchor,textangle:Hn.textangle,cliponaxis:Hn.cliponaxis,constraintext:Hn.constraintext,marker:Hn.marker,offsetgroup:Hn.offsetgroup,alignmentgroup:Hn.alignmentgroup,selected:Hn.selected,unselected:Hn.unselected,zorder:Hn.zorder}});var oW=N((zze,iW)=>{"use strict";var aW=gr(),P0=Ce(),nW=Tr(),c4e=zu().handleText,v4e=mw(),h4e=xg();iW.exports=function(r,t,a,n){function i(w,_){return P0.coerce(r,t,h4e,w,_)}var o=i("x"),l=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");c4e(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",l&&!o?"h":"v"),c=f==="v"?"x":"y",v=f==="v"?"y":"x",d=o&&l?Math.min(P0.minRowLength(o)&&P0.minRowLength(l)):P0.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=aW.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var y=t[v];y&&i("histfunc"),i("histnorm"),i("autobin"+c),v4e(r,t,i,a,n),P0.coerceSelectionMarkerOpacity(t,i);var m=(t.marker.line||{}).color,x=aW.getComponentMethod("errorbars","supplyDefaults");x(r,t,m||nW.defaultLine,{axis:"y"}),x(r,t,m||nW.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var wg=N((Ize,uW)=>{"use strict";var F0=Ce(),d4e=oa(),_g=gr().traceIs,p4e=i0(),y4e=zu().validateCornerradius,lW=F0.nestedProperty,i6=Tu().getAxisGroup,sW=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],m4e=["x","y"];uW.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},o=[],l,s,u,f,c,v,d;function p(B,Y){return F0.coerce(l._input,l,l._module.attributes,B,Y)}function y(B){return B.orientation==="v"?"x":"y"}function m(B,Y){var G=d4e.getFromTrace({_fullLayout:t},B,Y);return G.type}function x(B,Y,G){var U=B.uid+"__"+G;Y||(Y=U);var V=m(B,G),X=B[G+"calendar"]||"",Z=a[Y],re=!0;Z&&(V===Z.axType&&X===Z.calendar?(re=!1,Z.traces.push(B),Z.dirs.push(G)):(Y=U,V!==Z.axType&&F0.warn(["Attempted to group the bins of trace",B.index,"set on a","type:"+V,"axis","with bins on","type:"+Z.axType,"axis."].join(" ")),X!==Z.calendar&&F0.warn(["Attempted to group the bins of trace",B.index,"set with a",X,"calendar","with bins",Z.calendar?"on a "+Z.calendar+" calendar":"w/o a set calendar"].join(" ")))),re&&(a[Y]={traces:[B],dirs:[G],axType:V,calendar:B[G+"calendar"]||""}),B["_"+G+"bingroup"]=Y}for(c=0;c{"use strict";var g4e=Mw().hoverPoints,b4e=Ir().hoverLabelText;fW.exports=function(r,t,a,n,i){var o=g4e(r,t,a,n,i);if(o){r=o[0];var l=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=b4e(r[u+"a"],[l.ph0,l.ph1],s[u+"hoverformat"])}return o}}});var o6=N((Bze,vW)=>{"use strict";vW.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=o,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex;var l;if(a._indexToPoints){l=[];for(var s=0;s{"use strict";hW.exports={attributes:xg(),layoutAttributes:$m(),supplyDefaults:oW(),crossTraceDefaults:wg(),supplyLayoutDefaults:gw(),calc:Xw().calc,crossTraceCalc:vm().crossTraceCalc,plot:Tw().plot,layerName:"barlayer",style:Oc().style,styleOnSelect:Oc().styleOnSelect,colorbar:f0(),hoverPoints:cW(),selectPoints:kw(),eventData:o6(),moduleType:"trace",name:"histogram",basePlotModule:Li(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var yW=N((Uze,pW)=>{"use strict";pW.exports=dW()});var Ag=N((Gze,gW)=>{"use strict";var yo=xg(),mW=t6(),Tg=E0(),x4e=gn(),l6=eo().axisHoverFormat,_4e=Ta().hovertemplateAttrs,w4e=Ta().texttemplateAttrs,T4e=ko(),N0=xt().extendFlat;gW.exports=N0({x:yo.x,y:yo.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:yo.histnorm,histfunc:yo.histfunc,nbinsx:yo.nbinsx,xbins:mW("x"),nbinsy:yo.nbinsy,ybins:mW("y"),autobinx:yo.autobinx,autobiny:yo.autobiny,bingroup:N0({},yo.bingroup,{}),xbingroup:N0({},yo.bingroup,{}),ybingroup:N0({},yo.bingroup,{}),xgap:Tg.xgap,ygap:Tg.ygap,zsmooth:Tg.zsmooth,xhoverformat:l6("x"),yhoverformat:l6("y"),zhoverformat:l6("z",1),hovertemplate:_4e({},{keys:"z"}),texttemplate:w4e({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:Tg.textfont,showlegend:N0({},x4e.showlegend,{dflt:!1})},T4e("",{cLetter:"z",autoColorDflt:!1}))});var s6=N((Vze,xW)=>{"use strict";var A4e=gr(),bW=Ce();xW.exports=function(r,t,a,n){var i=a("x"),o=a("y"),l=bW.minRowLength(i),s=bW.minRowLength(o);if(!l||!s){t.visible=!1;return}t._length=Math.min(l,s);var u=A4e.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y"],n);var f=a("z")||a("marker.color");f&&a("histfunc"),a("histnorm"),a("autobinx"),a("autobiny")}});var wW=N((Yze,_W)=>{"use strict";var M4e=Ce(),k4e=s6(),S4e=Uw(),q4e=ul(),L4e=D0(),C4e=Ag();_W.exports=function(r,t,a,n){function i(o,l){return M4e.coerce(r,t,C4e,o,l)}k4e(r,t,i,n),t.visible!==!1&&(S4e(r,t,i,n),q4e(r,t,n,i,{prefix:"",cLetter:"z"}),i("hovertemplate"),L4e(i,n),i("xhoverformat"),i("yhoverformat"))}});var MW=N((Wze,AW)=>{"use strict";var E4e=bg(),TW=Ir().hoverLabelText;AW.exports=function(r,t,a,n,i){var o=E4e(r,t,a,n,i);if(o){r=o[0];var l=r.index,s=l[0],u=l[1],f=r.cd[0],c=f.trace,v=f.xRanges[u],d=f.yRanges[s];return r.xLabel=TW(r.xa,[v[0],v[1]],c.xhoverformat),r.yLabel=TW(r.ya,[d[0],d[1]],c.yhoverformat),o}}});var SW=N((jze,kW)=>{"use strict";kW.exports={attributes:Ag(),supplyDefaults:wW(),crossTraceDefaults:wg(),calc:hg(),plot:yg(),layerName:"heatmaplayer",colorbar:r6(),style:mg(),hoverPoints:MW(),eventData:o6(),moduleType:"trace",name:"histogram2d",basePlotModule:Li(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var LW=N((Zze,qW)=>{"use strict";qW.exports=SW()});var Mg=N((Xze,CW)=>{"use strict";CW.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var Sg=N((Jze,PW)=>{"use strict";var ga=E0(),kg=wi(),DW=eo(),u6=DW.axisHoverFormat,D4e=DW.descriptionOnlyNumbers,R4e=ko(),P4e=ui().dash,F4e=da(),jc=xt().extendFlat,RW=Mg(),N4e=RW.COMPARISON_OPS2,z4e=RW.INTERVAL_OPS,EW=kg.line;PW.exports=jc({z:ga.z,x:ga.x,x0:ga.x0,dx:ga.dx,y:ga.y,y0:ga.y0,dy:ga.dy,xperiod:ga.xperiod,yperiod:ga.yperiod,xperiod0:kg.xperiod0,yperiod0:kg.yperiod0,xperiodalignment:ga.xperiodalignment,yperiodalignment:ga.yperiodalignment,text:ga.text,hovertext:ga.hovertext,transpose:ga.transpose,xtype:ga.xtype,ytype:ga.ytype,xhoverformat:u6("x"),yhoverformat:u6("y"),zhoverformat:u6("z",1),hovertemplate:ga.hovertemplate,texttemplate:jc({},ga.texttemplate,{}),textfont:jc({},ga.textfont,{}),hoverongaps:ga.hoverongaps,connectgaps:jc({},ga.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:F4e({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:D4e("contour label")},operation:{valType:"enumerated",values:[].concat(N4e).concat(z4e),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:jc({},EW.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:P4e,smoothing:jc({},EW.smoothing,{}),editType:"plot"},zorder:kg.zorder},R4e("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var c6=N(($ze,NW)=>{"use strict";var dn=Ag(),Tl=Sg(),I4e=ko(),f6=eo().axisHoverFormat,FW=xt().extendFlat;NW.exports=FW({x:dn.x,y:dn.y,z:dn.z,marker:dn.marker,histnorm:dn.histnorm,histfunc:dn.histfunc,nbinsx:dn.nbinsx,xbins:dn.xbins,nbinsy:dn.nbinsy,ybins:dn.ybins,autobinx:dn.autobinx,autobiny:dn.autobiny,bingroup:dn.bingroup,xbingroup:dn.xbingroup,ybingroup:dn.ybingroup,autocontour:Tl.autocontour,ncontours:Tl.ncontours,contours:Tl.contours,line:{color:Tl.line.color,width:FW({},Tl.line.width,{dflt:.5}),dash:Tl.line.dash,smoothing:Tl.line.smoothing,editType:"plot"},xhoverformat:f6("x"),yhoverformat:f6("y"),zhoverformat:f6("z",1),hovertemplate:dn.hovertemplate,texttemplate:Tl.texttemplate,textfont:Tl.textfont},I4e("",{cLetter:"z",editTypeOverride:"calc"}))});var v6=N((Kze,zW)=>{"use strict";zW.exports=function(r,t,a,n){var i=n("contours.start"),o=n("contours.end"),l=i===!1||o===!1,s=a("contours.size"),u;l?u=t.autocontour=!0:u=a("autocontour",!1),(u||!s)&&a("ncontours")}});var h6=N((Qze,IW)=>{"use strict";var O4e=Ce();IW.exports=function(r,t,a,n){n||(n={});var i=r("contours.showlabels");if(i){var o=t.font;O4e.coerceFont(r,"contours.labelfont",o,{overrideDflt:{color:a}}),r("contours.labelformat")}n.hasHover!==!1&&r("zhoverformat")}});var d6=N((eIe,OW)=>{"use strict";var B4e=ul(),H4e=h6();OW.exports=function(r,t,a,n,i){var o=a("contours.coloring"),l,s="";o==="fill"&&(l=a("contours.showlines")),l!==!1&&(o!=="lines"&&(s=a("line.color","#000")),a("line.width",.5),a("line.dash")),o!=="none"&&(r.showlegend!==!0&&(t.showlegend=!1),t._dfltShowLegend=!1,B4e(r,t,n,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),H4e(a,n,s,i)}});var GW=N((rIe,UW)=>{"use strict";var BW=Ce(),U4e=s6(),G4e=v6(),V4e=d6(),Y4e=D0(),HW=c6();UW.exports=function(r,t,a,n){function i(l,s){return BW.coerce(r,t,HW,l,s)}function o(l){return BW.coerce2(r,t,HW,l)}U4e(r,t,i,n),t.visible!==!1&&(G4e(r,t,i,o),V4e(r,t,i,n),i("xhoverformat"),i("yhoverformat"),i("hovertemplate"),t.contours&&t.contours.coloring==="heatmap"&&Y4e(i,n))}});var WW=N((tIe,YW)=>{"use strict";var y6=Ir(),p6=Ce();YW.exports=function(r,t){var a=r.contours;if(r.autocontour){var n=r.zmin,i=r.zmax;(r.zauto||n===void 0)&&(n=p6.aggNums(Math.min,null,t)),(r.zauto||i===void 0)&&(i=p6.aggNums(Math.max,null,t));var o=VW(n,i,r.ncontours);a.size=o.dtick,a.start=y6.tickFirst(o),o.range.reverse(),a.end=y6.tickFirst(o),a.start===n&&(a.start+=a.size),a.end===i&&(a.end-=a.size),a.start>a.end&&(a.start=a.end=(a.start+a.end)/2),r._input.contours||(r._input.contours={}),p6.extendFlat(r._input.contours,{start:a.start,end:a.end,size:a.size}),r._input.autocontour=!0}else if(a.type!=="constraint"){var l=a.start,s=a.end,u=r._input.contours;if(l>s&&(a.start=u.start=s,s=a.end=u.end=l,l=a.start),!(a.size>0)){var f;l===s?f=1:f=VW(l,s,r.ncontours).dtick,u.size=a.size=f}}};function VW(e,r,t){var a={type:"linear",range:[e,r]};return y6.autoTicks(a,(r-e)/(t||15)),a}});var z0=N((aIe,jW)=>{"use strict";jW.exports=function(r){return r.end+r.size/1e6}});var m6=N((nIe,XW)=>{"use strict";var ZW=So(),W4e=hg(),j4e=WW(),Z4e=z0();XW.exports=function(r,t){var a=W4e(r,t),n=a[0].z;j4e(t,n);var i=t.contours,o=ZW.extractOpts(t),l;if(i.coloring==="heatmap"&&o.auto&&t.autocontour===!1){var s=i.start,u=Z4e(i),f=i.size||1,c=Math.floor((u-s)/f)+1;isFinite(f)||(f=1,c=1);var v=s-f/2,d=v+c*f;l=[v,d]}else l=n;return ZW.calc(r,t,{vals:l,cLetter:"z"}),a}});var qg=N((iIe,JW)=>{"use strict";JW.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var KW=N((oIe,$W)=>{"use strict";var Lg=qg();$W.exports=function(r){var t=r[0].z,a=t.length,n=t[0].length,i=a===2||n===2,o,l,s,u,f,c,v,d,p;for(l=0;le?0:1)+(r[0][1]>e?0:2)+(r[1][1]>e?0:4)+(r[1][0]>e?0:8);if(t===5||t===10){var a=(r[0][0]+r[0][1]+r[1][0]+r[1][1])/4;return e>a?t===5?713:1114:t===5?104:208}return t===15?0:t}});var tj=N((lIe,rj)=>{"use strict";var Cg=Ce(),Zc=qg();rj.exports=function(r,t,a){var n,i,o,l,s;for(t=t||.01,a=a||.01,o=0;o20?(o=Zc.CHOOSESADDLE[o][(l[0]||l[1])<0?0:1],e.crossings[i]=Zc.SADDLEREMAINDER[o]):delete e.crossings[i],l=Zc.NEWDELTA[o],!l){Cg.log("Found bad marching index:",o,r,e.level);break}s.push(ej(e,r,l)),r[0]+=l[0],r[1]+=l[1],i=r.join(","),I0(s[s.length-1],s[s.length-2],a,n)&&s.pop();var p=l[0]&&(r[0]<0||r[0]>f-2)||l[1]&&(r[1]<0||r[1]>u-2),y=r[0]===c[0]&&r[1]===c[1]&&l[0]===v[0]&&l[1]===v[1];if(y||t&&p)break;o=e.crossings[i]}d===1e4&&Cg.log("Infinite loop in contour?");var m=I0(s[0],s[s.length-1],a,n),x=0,w=.2*e.smoothing,_=[],b=0,T,k,M,q,E,D,P,R,z,O,B;for(d=1;d=b;d--)if(T=_[d],T=b&&T+_[k]R&&z--,e.edgepaths[z]=B.concat(s,O));break}V||(e.edgepaths[R]=s.concat(O))}for(R=0;R20&&r?e===208||e===1114?a=t[0]===0?1:-1:n=t[1]===0?1:-1:Zc.BOTTOMSTART.indexOf(e)!==-1?n=1:Zc.LEFTSTART.indexOf(e)!==-1?a=1:Zc.TOPSTART.indexOf(e)!==-1?n=-1:a=-1,[a,n]}function ej(e,r,t){var a=r[0]+Math.max(t[0],0),n=r[1]+Math.max(t[1],0),i=e.z[n][a],o=e.xaxis,l=e.yaxis;if(t[1]){var s=(e.level-i)/(e.z[n][a+1]-i),u=(s!==1?(1-s)*o.c2l(e.x[a]):0)+(s!==0?s*o.c2l(e.x[a+1]):0);return[o.c2p(o.l2c(u),!0),l.c2p(e.y[n],!0),a+s,n]}else{var f=(e.level-i)/(e.z[n+1][a]-i),c=(f!==1?(1-f)*l.c2l(e.y[n]):0)+(f!==0?f*l.c2l(e.y[n+1]):0);return[o.c2p(e.x[a],!0),l.c2p(l.l2c(c),!0),a,n+f]}}});var oj=N((sIe,ij)=>{"use strict";var g6=Mg(),K4e=Rr();ij.exports={"[]":aj("[]"),"][":aj("]["),">":b6(">"),"<":b6("<"),"=":b6("=")};function nj(e,r){var t=Array.isArray(r),a;function n(i){return K4e(i)?+i:null}return g6.COMPARISON_OPS2.indexOf(e)!==-1?a=n(t?r[0]:r):g6.INTERVAL_OPS.indexOf(e)!==-1?a=t?[n(r[0]),n(r[1])]:[n(r),n(r)]:g6.SET_OPS.indexOf(e)!==-1&&(a=t?r.map(n):[n(r)]),a}function aj(e){return function(r){r=nj(e,r);var t=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return{start:t,end:a,size:a-t}}}function b6(e){return function(r){return r=nj(e,r),{start:r,end:1/0,size:1/0}}}});var uj=N((uIe,sj)=>{"use strict";var lj=Ce(),Q4e=oj(),ewe=z0();sj.exports=function(r,t,a){for(var n=r.type==="constraint"?Q4e[r._operation](r.value):r,i=n.size,o=[],l=ewe(n),s=a.trace._carpetTrace,u=s?{xaxis:s.aaxis,yaxis:s.baxis,x:a.a,y:a.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:a.x,y:a.y},f=n.start;f1e3){lj.warn("Too many contours, clipping at 1000",r);break}return o}});var vj=N((fIe,cj)=>{"use strict";var Xc=Ce();cj.exports=function(e,r){var t,a,n,i=function(s){return s.reverse()},o=function(s){return s};switch(r){case"=":case"<":return e;case">":for(e.length!==1&&Xc.warn("Contour data invalid for the specified inequality operation."),a=e[0],t=0;t{"use strict";hj.exports=function(e,r){var t=e[0],a=t.z,n;switch(r.type){case"levels":var i=Math.min(a[0][0],a[0][1]);for(n=0;no.level||o.starts.length&&i===o.level)}break;case"constraint":if(t.prefixBoundary=!1,t.edgepaths.length)return;var l=t.x.length,s=t.y.length,u=-1/0,f=1/0;for(n=0;n":c>u&&(t.prefixBoundary=!0);break;case"<":(cu||t.starts.length&&d===f)&&(t.prefixBoundary=!0);break;case"][":v=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),vu&&(t.prefixBoundary=!0);break}break}}});var x6=N(pn=>{"use strict";var B0=Sr(),Fa=Ce(),Al=Wr(),rwe=So(),mj=Da(),pj=Ir(),yj=Xf(),twe=yg(),gj=KW(),bj=tj(),awe=uj(),nwe=vj(),xj=dj(),O0=qg(),Go=O0.LABELOPTIMIZER;pn.plot=function(r,t,a,n){var i=t.xaxis,o=t.yaxis;Fa.makeTraceGroups(n,a,"contour").each(function(l){var s=B0.select(this),u=l[0],f=u.trace,c=u.x,v=u.y,d=f.contours,p=awe(d,t,u),y=Fa.ensureSingle(s,"g","heatmapcoloring"),m=[];d.coloring==="heatmap"&&(m=[l]),twe(r,t,m,y),gj(p),bj(p);var x=i.c2p(c[0],!0),w=i.c2p(c[c.length-1],!0),_=o.c2p(v[0],!0),b=o.c2p(v[v.length-1],!0),T=[[x,b],[w,b],[w,_],[x,_]],k=p;d.type==="constraint"&&(k=nwe(p,d._operation)),iwe(s,T,d),owe(s,k,T,d),lwe(s,p,r,u,d),uwe(s,t,r,u,T)})};function iwe(e,r,t){var a=Fa.ensureSingle(e,"g","contourbg"),n=a.selectAll("path").data(t.coloring==="fill"?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+r.join("L")+"Z").style("stroke","none")}function owe(e,r,t,a){var n=a.coloring==="fill"||a.type==="constraint"&&a._operation!=="=",i="M"+t.join("L")+"Z";n&&xj(r,a);var o=Fa.ensureSingle(e,"g","contourfill"),l=o.selectAll("path").data(n?r:[]);l.enter().append("path"),l.exit().remove(),l.each(function(s){var u=(s.prefixBoundary?i:"")+_j(s,t);u?B0.select(this).attr("d",u).style("stroke","none"):B0.select(this).remove()})}function _j(e,r){var t="",a=0,n=e.edgepaths.map(function(x,w){return w}),i=!0,o,l,s,u,f,c;function v(x){return Math.abs(x[1]-r[0][1])<.01}function d(x){return Math.abs(x[1]-r[2][1])<.01}function p(x){return Math.abs(x[0]-r[0][0])<.01}function y(x){return Math.abs(x[0]-r[2][0])<.01}for(;n.length;){for(c=Al.smoothopen(e.edgepaths[a],e.smoothing),t+=i?c:c.replace(/^M/,"L"),n.splice(n.indexOf(a),1),o=e.edgepaths[a][e.edgepaths[a].length-1],u=-1,s=0;s<4;s++){if(!o){Fa.log("Missing end?",a,e);break}for(v(o)&&!y(o)?l=r[1]:p(o)?l=r[0]:d(o)?l=r[3]:y(o)&&(l=r[2]),f=0;f=0&&(l=m,u=f):Math.abs(o[1]-l[1])<.01?Math.abs(o[1]-m[1])<.01&&(m[0]-o[0])*(l[0]-m[0])>=0&&(l=m,u=f):Fa.log("endpt to newendpt is not vert. or horz.",o,l,m)}if(o=l,u>=0)break;t+="L"+l}if(u===e.edgepaths.length){Fa.log("unclosed perimeter path");break}a=u,i=n.indexOf(a)===-1,i&&(a=n[0],t+="Z")}for(a=0;aGo.MAXCOST*2)break;v&&(l/=2),o=u-l/2,s=o+l*1.5}if(c<=Go.MAXCOST)return f};function swe(e,r,t,a){var n=r.width/2,i=r.height/2,o=e.x,l=e.y,s=e.theta,u=Math.cos(s)*n,f=Math.sin(s)*n,c=(o>a.center?a.right-o:o-a.left)/(u+Math.abs(Math.sin(s)*i)),v=(l>a.middle?a.bottom-l:l-a.top)/(Math.abs(f)+Math.cos(s)*i);if(c<1||v<1)return 1/0;var d=Go.EDGECOST*(1/(c-1)+1/(v-1));d+=Go.ANGLECOST*s*s;for(var p=o-u,y=l-f,m=o+u,x=l+f,w=0;w{"use strict";var cwe=Sr(),_6=So(),vwe=z0();wj.exports=function(r){var t=r.contours,a=t.start,n=vwe(t),i=t.size||1,o=Math.floor((n-a)/i)+1,l=t.coloring==="lines"?0:1,s=_6.extractOpts(r);isFinite(i)||(i=1,o=1);var u=s.reversescale?_6.flipScale(s.colorscale):s.colorscale,f=u.length,c=new Array(f),v=new Array(f),d,p,y=s.min,m=s.max;if(t.coloring==="heatmap"){for(p=0;p=m)&&(a<=y&&(a=y),n>=m&&(n=m),o=Math.floor((n-a)/i)+1,l=0),p=0;py&&(c.unshift(y),v.unshift(v[0])),c[c.length-1]{"use strict";var Eg=Sr(),Tj=Wr(),hwe=mg(),dwe=w6();Aj.exports=function(r){var t=Eg.select(r).selectAll("g.contour");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=Eg.select(this),i=a[0].trace,o=i.contours,l=i.line,s=o.size||1,u=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",v=!f&&o.coloring==="fill",d=c||v?dwe(i):null;n.selectAll("g.contourlevel").each(function(m){Eg.select(this).selectAll("path").call(Tj.lineGroupStyle,l.width,c?d(m.level):l.color,l.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(m){Tj.font(Eg.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(m.level):l.color)})}),f)n.selectAll("g.contourfill path").style("fill",i.fillcolor);else if(v){var y;n.selectAll("g.contourfill path").style("fill",function(m){return y===void 0&&(y=m.level),d(m.level+.5*s)}),y===void 0&&(y=u),n.selectAll("g.contourbg path").style("fill",d(y-.5*s))}}),hwe(r)}});var A6=N((pIe,kj)=>{"use strict";var Mj=So(),pwe=w6(),ywe=z0();function mwe(e,r,t){var a=r.contours,n=r.line,i=a.size||1,o=a.coloring,l=pwe(r,{isColorbar:!0});if(o==="heatmap"){var s=Mj.extractOpts(r);t._fillgradient=s.reversescale?Mj.flipScale(s.colorscale):s.colorscale,t._zrange=[s.min,s.max]}else o==="fill"&&(t._fillcolor=l);t._line={color:o==="lines"?l:n.color,width:a.showlines!==!1?n.width:0,dash:n.dash},t._levels={start:a.start,end:ywe(a),size:i}}kj.exports={min:"zmin",max:"zmax",calc:mwe}});var M6=N((yIe,Sj)=>{"use strict";var Dg=Tr(),gwe=bg();Sj.exports=function(r,t,a,n,i){i||(i={}),i.isContour=!0;var o=gwe(r,t,a,n,i);return o&&o.forEach(function(l){var s=l.trace;s.contours.type==="constraint"&&(s.fillcolor&&Dg.opacity(s.fillcolor)?l.color=Dg.addOpacity(s.fillcolor,1):s.contours.showlines&&Dg.opacity(s.line.color)&&(l.color=Dg.addOpacity(s.line.color,1)))}),o}});var Lj=N((mIe,qj)=>{"use strict";qj.exports={attributes:c6(),supplyDefaults:GW(),crossTraceDefaults:wg(),calc:m6(),plot:x6().plot,layerName:"contourlayer",style:T6(),colorbar:A6(),hoverPoints:M6(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Li(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Ej=N((gIe,Cj)=>{"use strict";Cj.exports=Lj()});var Ij=N((bIe,zj)=>{"use strict";var Dj=Rr(),bwe=h6(),Fj=Tr(),Rj=Fj.addOpacity,xwe=Fj.opacity,Nj=Mg(),Pj=Ce().isArrayOrTypedArray,_we=Nj.CONSTRAINT_REDUCTION,wwe=Nj.COMPARISON_OPS2;zj.exports=function(r,t,a,n,i,o){var l=t.contours,s,u,f,c=a("contours.operation");if(l._operation=_we[c],Twe(a,l),c==="="?s=l.showlines=!0:(s=a("contours.showlines"),f=a("fillcolor",Rj((r.line||{}).color||i,.5))),s){var v=f&&xwe(f)?Rj(t.fillcolor,1):i;u=a("line.color",v),a("line.width",2),a("line.dash")}a("line.smoothing"),bwe(a,n,u,o)};function Twe(e,r){var t;wwe.indexOf(r.operation)===-1?(e("contours.value",[0,1]),Pj(r.value)?r.value.length>2?r.value=r.value.slice(2):r.length===0?r.value=[0,1]:r.length<2?(t=parseFloat(r.value[0]),r.value=[t,t+1]):r.value=[parseFloat(r.value[0]),parseFloat(r.value[1])]:Dj(r.value)&&(t=parseFloat(r.value),r.value=[t,t+1])):(e("contours.value",0),Dj(r.value)||(Pj(r.value)?r.value=parseFloat(r.value[0]):r.value=0))}});var Hj=N((xIe,Bj)=>{"use strict";var k6=Ce(),Awe=Hw(),Mwe=yc(),kwe=Ij(),Swe=v6(),qwe=d6(),Lwe=D0(),Oj=Sg();Bj.exports=function(r,t,a,n){function i(u,f){return k6.coerce(r,t,Oj,u,f)}function o(u){return k6.coerce2(r,t,Oj,u)}var l=Awe(r,t,i,n);if(!l){t.visible=!1;return}Mwe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hoverongaps"),i("hovertemplate");var s=i("contours.type")==="constraint";i("connectgaps",k6.isArray1D(t.z)),s?kwe(r,t,i,n,a):(Swe(r,t,i,o),qwe(r,t,i,n)),t.contours&&t.contours.coloring==="heatmap"&&Lwe(i,n),i("zorder")}});var Gj=N((_Ie,Uj)=>{"use strict";Uj.exports={attributes:Sg(),supplyDefaults:Hj(),calc:m6(),plot:x6().plot,style:T6(),colorbar:A6(),hoverPoints:M6(),moduleType:"trace",name:"contour",basePlotModule:Li(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var Yj=N((wIe,Vj)=>{"use strict";Vj.exports=Gj()});var S6=N((TIe,jj)=>{"use strict";var Cwe=Ta().hovertemplateAttrs,Ewe=Ta().texttemplateAttrs,Dwe=Dy(),ni=wi(),Rwe=gn(),Wj=ko(),Pwe=ui().dash,gs=xt().extendFlat,Fi=ni.marker,H0=ni.line,Fwe=Fi.line;jj.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:gs({},ni.mode,{dflt:"markers"}),text:gs({},ni.text,{}),texttemplate:Ewe({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:gs({},ni.hovertext,{}),line:{color:H0.color,width:H0.width,dash:Pwe,backoff:H0.backoff,shape:gs({},H0.shape,{values:["linear","spline"]}),smoothing:H0.smoothing,editType:"calc"},connectgaps:ni.connectgaps,cliponaxis:ni.cliponaxis,fill:gs({},ni.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Dwe(),marker:gs({symbol:Fi.symbol,opacity:Fi.opacity,angle:Fi.angle,angleref:Fi.angleref,standoff:Fi.standoff,maxdisplayed:Fi.maxdisplayed,size:Fi.size,sizeref:Fi.sizeref,sizemin:Fi.sizemin,sizemode:Fi.sizemode,line:gs({width:Fwe.width,editType:"calc"},Wj("marker.line")),gradient:Fi.gradient,editType:"calc"},Wj("marker")),textfont:ni.textfont,textposition:ni.textposition,selected:ni.selected,unselected:ni.unselected,hoverinfo:gs({},Rwe.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:ni.hoveron,hovertemplate:Cwe()}});var $j=N((AIe,Jj)=>{"use strict";var Zj=Ce(),Nwe=Wh(),Jc=Rn(),zwe=G_(),Iwe=V_(),Xj=Y_(),Owe=W_(),Bwe=j_(),Hwe=S6();Jj.exports=function(r,t,a,n){function i(v,d){return Zj.coerce(r,t,Hwe,v,d)}var o=i("a"),l=i("b"),s=i("c"),u;if(o?(u=o.length,l?(u=Math.min(u,l.length),s&&(u=Math.min(u,s.length))):s?u=Math.min(u,s.length):u=0):l&&s&&(u=Math.min(l.length,s.length)),!u){t.visible=!1;return}t._length=u,i("sum"),i("text"),i("hovertext"),t.hoveron!=="fills"&&i("hovertemplate");var f=u{"use strict";var q6=Ir();Kj.exports=function(r,t,a){var n={},i=a[t.subplot]._subplot;return n.aLabel=q6.tickText(i.aaxis,r.a,!0).text,n.bLabel=q6.tickText(i.baxis,r.b,!0).text,n.cLabel=q6.tickText(i.caxis,r.c,!0).text,n}});var aZ=N((kIe,tZ)=>{"use strict";var L6=Rr(),Uwe=J_(),Gwe=lm(),Vwe=sm(),Ywe=um().calcMarkerSize,eZ=["a","b","c"],rZ={a:["b","c"],b:["a","c"],c:["a","b"]};tZ.exports=function(r,t){var a=r._fullLayout[t.subplot],n=a.sum,i=t.sum||n,o={a:t.a,b:t.b,c:t.c},l=t.ids,s,u,f,c,v,d;for(s=0;s{"use strict";var Wwe=s4();nZ.exports=function(r,t,a){var n=t.plotContainer;n.select(".scatterlayer").selectAll("*").remove();for(var i=t.xaxis,o=t.yaxis,l={xaxis:i,yaxis:o,plot:n,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},s=t.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var jwe=d4();oZ.exports=function(r,t,a,n){var i=jwe(r,t,a,n);if(!i||i[0].index===!1)return;var o=i[0];if(o.index===void 0){var l=1-o.y0/r.ya._length,s=r.xa._length,u=s*l/2,f=s-u;return o.x0=Math.max(Math.min(o.x0,f),u),o.x1=Math.max(Math.min(o.x1,f),u),i}var c=o.cd[o.index],v=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[v.subplot]={_subplot:d};var y=v._module.formatLabels(c,v,p);o.aLabel=y.aLabel,o.bLabel=y.bLabel,o.cLabel=y.cLabel;var m=c.hi||v.hoverinfo,x=[];function w(b,T){x.push(b._hovertitle+": "+T)}if(!v.hovertemplate){var _=m.split("+");_.indexOf("all")!==-1&&(_=["a","b","c"]),_.indexOf("a")!==-1&&w(d.aaxis,o.aLabel),_.indexOf("b")!==-1&&w(d.baxis,o.bLabel),_.indexOf("c")!==-1&&w(d.caxis,o.cLabel)}return o.extraText=x.join("
"),o.hovertemplate=v.hovertemplate,i}});var uZ=N((LIe,sZ)=>{"use strict";sZ.exports=function(r,t,a,n,i){if(t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),n[i]){var o=n[i];r.a=o.a,r.b=o.b,r.c=o.c}else r.a=t.a,r.b=t.b,r.c=t.c;return r}});var xZ=N((CIe,bZ)=>{"use strict";var pZ=Sr(),Zwe=Sn(),C6=gr(),Ml=Ce(),Vo=Ml.strTranslate,Rg=Ml._,Kc=Tr(),Pg=Wr(),U0=Xf(),E6=xt().extendFlat,Xwe=aa(),bs=Ir(),fZ=pi(),cZ=Fn(),yZ=bu(),vZ=yZ.freeMode,Jwe=yZ.rectMode,D6=Zf(),$we=zo().prepSelect,Kwe=zo().selectOnClick,Qwe=zo().clearOutline,e6e=zo().clearSelectionsCache,mZ=Ea();function gZ(e,r){this.id=e.id,this.graphDiv=e.graphDiv,this.init(r),this.makeFramework(r),this.updateFx(r),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}bZ.exports=gZ;var Yo=gZ.prototype;Yo.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Yo.plot=function(e,r){var t=this,a=r[t.id],n=r._size;t._hasClipOnAxisFalse=!1;for(var i=0;i$c*u?(x=u,m=x*$c):(m=s,x=m/$c),w=o*m/s,_=l*x/u,p=r.l+r.w*n-m/2,y=r.t+r.h*(1-i)-x/2,t.x0=p,t.y0=y,t.w=m,t.h=x,t.sum=f,t.xaxis={type:"linear",range:[c+2*d-f,f-c-2*v],domain:[n-w/2,n+w/2],_id:"x"},U0(t.xaxis,t.graphDiv._fullLayout),t.xaxis.setScale(),t.xaxis.isPtWithinRange=function(O){return O.a>=t.aaxis.range[0]&&O.a<=t.aaxis.range[1]&&O.b>=t.baxis.range[1]&&O.b<=t.baxis.range[0]&&O.c>=t.caxis.range[1]&&O.c<=t.caxis.range[0]},t.yaxis={type:"linear",range:[c,f-v-d],domain:[i-_/2,i+_/2],_id:"y"},U0(t.yaxis,t.graphDiv._fullLayout),t.yaxis.setScale(),t.yaxis.isPtWithinRange=function(){return!0};var b=t.yaxis.domain[0],T=t.aaxis=E6({},e.aaxis,{range:[c,f-v-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[b,b+_*$c],anchor:"free",position:0,_id:"y",_length:m});U0(T,t.graphDiv._fullLayout),T.setScale();var k=t.baxis=E6({},e.baxis,{range:[f-c-d,v],side:"bottom",domain:t.xaxis.domain,anchor:"free",position:0,_id:"x",_length:m});U0(k,t.graphDiv._fullLayout),k.setScale();var M=t.caxis=E6({},e.caxis,{range:[f-c-v,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[b,b+_*$c],anchor:"free",position:0,_id:"y",_length:m});U0(M,t.graphDiv._fullLayout),M.setScale();var q="M"+p+","+(y+x)+"h"+m+"l-"+m/2+",-"+x+"Z";t.clipDef.select("path").attr("d",q),t.layers.plotbg.select("path").attr("d",q);var E="M0,"+x+"h"+m+"l-"+m/2+",-"+x+"Z";t.clipDefRelative.select("path").attr("d",E);var D=Vo(p,y);t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",D),t.clipDefRelative.select("path").attr("transform",null);var P=Vo(p-k._offset,y+x);t.layers.baxis.attr("transform",P),t.layers.bgrid.attr("transform",P);var R=Vo(p+m/2,y)+"rotate(30)"+Vo(0,-T._offset);t.layers.aaxis.attr("transform",R),t.layers.agrid.attr("transform",R);var z=Vo(p+m/2,y)+"rotate(-30)"+Vo(0,-M._offset);t.layers.caxis.attr("transform",z),t.layers.cgrid.attr("transform",z),t.drawAxes(!0),t.layers.aline.select("path").attr("d",T.showline?"M"+p+","+(y+x)+"l"+m/2+",-"+x:"M0,0").call(Kc.stroke,T.linecolor||"#000").style("stroke-width",(T.linewidth||0)+"px"),t.layers.bline.select("path").attr("d",k.showline?"M"+p+","+(y+x)+"h"+m:"M0,0").call(Kc.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),t.layers.cline.select("path").attr("d",M.showline?"M"+(p+m/2)+","+y+"l"+m/2+","+x:"M0,0").call(Kc.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),t.graphDiv._context.staticPlot||t.initInteractions(),Pg.setClipUrl(t.layers.frontplot,t._hasClipOnAxisFalse?null:t.clipId,t.graphDiv)};Yo.drawAxes=function(e){var r=this,t=r.graphDiv,a=r.id.substr(7)+"title",n=r.layers,i=r.aaxis,o=r.baxis,l=r.caxis;if(r.drawAx(i),r.drawAx(o),r.drawAx(l),e){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(l.showticklabels?l.tickfont.size*.75:0)+(l.ticks==="outside"?l.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;n["a-title"]=D6.draw(t,"a"+a,{propContainer:i,propName:r.id+".aaxis.title.text",placeholder:Rg(t,"Click to enter Component A title"),attributes:{x:r.x0+r.w/2,y:r.y0-i.title.font.size/3-s,"text-anchor":"middle"}}),n["b-title"]=D6.draw(t,"b"+a,{propContainer:o,propName:r.id+".baxis.title.text",placeholder:Rg(t,"Click to enter Component B title"),attributes:{x:r.x0-u,y:r.y0+r.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),n["c-title"]=D6.draw(t,"c"+a,{propContainer:l,propName:r.id+".caxis.title.text",placeholder:Rg(t,"Click to enter Component C title"),attributes:{x:r.x0+r.w+u,y:r.y0+r.h+l.title.font.size*.83+u,"text-anchor":"middle"}})}};Yo.drawAx=function(e){var r=this,t=r.graphDiv,a=e._name,n=a.charAt(0),i=e._id,o=r.layers[a],l=30,s=n+"tickLayout",u=r6e(e);r[s]!==u&&(o.selectAll("."+i+"tick").remove(),r[s]=u),e.setScale();var f=bs.calcTicks(e),c=bs.clipEnds(e,f),v=bs.makeTransTickFn(e),d=bs.getTickSigns(e)[2],p=Ml.deg2rad(l),y=d*(e.linewidth||1)/2,m=d*e.ticklen,x=r.w,w=r.h,_=n==="b"?"M0,"+y+"l"+Math.sin(p)*m+","+Math.cos(p)*m:"M"+y+",0l"+Math.cos(p)*m+","+-Math.sin(p)*m,b={a:"M0,0l"+w+",-"+x/2,b:"M0,0l-"+x/2+",-"+w,c:"M0,0l-"+w+","+x/2}[n];bs.drawTicks(t,e,{vals:e.ticks==="inside"?c:f,layer:o,path:_,transFn:v,crisp:!1}),bs.drawGrid(t,e,{vals:c,layer:r.layers[n+"grid"],path:b,transFn:v,crisp:!1}),bs.drawLabels(t,e,{vals:f,layer:o,transFn:v,labelFns:bs.makeLabelFns(e,0,l)})};function r6e(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var La=mZ.MINZOOM/2+.87,t6e="m-0.87,.5h"+La+"v3h-"+(La+5.2)+"l"+(La/2+2.6)+",-"+(La*.87+4.5)+"l2.6,1.5l-"+La/2+","+La*.87+"Z",a6e="m0.87,.5h-"+La+"v3h"+(La+5.2)+"l-"+(La/2+2.6)+",-"+(La*.87+4.5)+"l-2.6,1.5l"+La/2+","+La*.87+"Z",n6e="m0,1l"+La/2+","+La*.87+"l2.6,-1.5l-"+(La/2+2.6)+",-"+(La*.87+4.5)+"l-"+(La/2+2.6)+","+(La*.87+4.5)+"l2.6,1.5l"+La/2+",-"+La*.87+"Z",i6e="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",hZ=!0;Yo.clearOutline=function(){e6e(this.dragOptions),Qwe(this.dragOptions.gd)};Yo.initInteractions=function(){var e=this,r=e.layers.plotbg.select("path").node(),t=e.graphDiv,a=t._fullLayout._zoomlayer,n,i;this.dragOptions={element:r,gd:t,plotinfo:{id:e.id,domain:t._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(P,R,z){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=t._fullLayout._invScaleX,i=t._fullLayout._invScaleY;var O=e.dragOptions.dragmode=t._fullLayout.dragmode;vZ(O)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,O==="zoom"?(e.dragOptions.moveFn=k,e.dragOptions.clickFn=x,e.dragOptions.doneFn=M,w(P,R,z)):O==="pan"?(e.dragOptions.moveFn=E,e.dragOptions.clickFn=x,e.dragOptions.doneFn=D,q(),e.clearOutline(t)):(Jwe(O)||vZ(O))&&$we(P,R,z,e.dragOptions,O)}};var o,l,s,u,f,c,v,d,p,y;function m(P){var R={};return R[e.id+".aaxis.min"]=P.a,R[e.id+".baxis.min"]=P.b,R[e.id+".caxis.min"]=P.c,R}function x(P,R){var z=t._fullLayout.clickmode;dZ(t),P===2&&(t.emit("plotly_doubleclick",null),C6.call("_guiRelayout",t,m({a:0,b:0,c:0}))),z.indexOf("select")>-1&&P===1&&Kwe(R,t,[e.xaxis],[e.yaxis],e.id,e.dragOptions),z.indexOf("event")>-1&&cZ.click(t,R,e.id)}function w(P,R,z){var O=r.getBoundingClientRect();o=R-O.left,l=z-O.top,t._fullLayout._calcInverseTransform(t);var B=t._fullLayout._invTransform,Y=Ml.apply3DTransform(B)(o,l);o=Y[0],l=Y[1],s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s,u=e.aaxis.range[1]-s.a,c=Zwe(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),v="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=a.append("path").attr("class","zoombox").attr("transform",Vo(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),y=a.append("path").attr("class","zoombox-corners").attr("transform",Vo(e.x0,e.y0)).style({fill:Kc.background,stroke:Kc.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(t)}function _(P,R){return 1-R/e.h}function b(P,R){return 1-(P+(e.h-R)/Math.sqrt(3))/e.w}function T(P,R){return(P-(e.h-R)/Math.sqrt(3))/e.w}function k(P,R){var z=o+P*n,O=l+R*i,B=Math.max(0,Math.min(1,_(o,l),_(z,O))),Y=Math.max(0,Math.min(1,b(o,l),b(z,O))),G=Math.max(0,Math.min(1,T(o,l),T(z,O))),U=(B/2+G)*e.w,V=(1-B/2-Y)*e.w,X=(U+V)/2,Z=V-U,re=(1-B)*e.h,ce=re-Z/$c;Z.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),y.transition().style("opacity",1).duration(200),d=!0),t.emit("plotly_relayouting",m(f))}function M(){dZ(t),f!==s&&(C6.call("_guiRelayout",t,m(f)),hZ&&t.data&&t._context.showTips&&(Ml.notifier(Rg(t,"Double-click to zoom back out"),"long"),hZ=!1))}function q(){s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s}function E(P,R){var z=P/e.xaxis._m,O=R/e.yaxis._m;f={a:s.a-O,b:s.b+(z+O)/2,c:s.c-(z-O)/2};var B=[f.a,f.b,f.c].sort(Ml.sorterAsc),Y={a:B.indexOf(f.a),b:B.indexOf(f.b),c:B.indexOf(f.c)};B[0]<0&&(B[1]+B[0]/2<0?(B[2]+=B[0]+B[1],B[0]=B[1]=0):(B[2]+=B[0]/2,B[1]+=B[0]/2,B[0]=0),f={a:B[Y.a],b:B[Y.b],c:B[Y.c]},R=(s.a-f.a)*e.yaxis._m,P=(s.c-f.c-s.b+f.b)*e.xaxis._m);var G=Vo(e.x0+P,e.y0+R);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",G);var U=Vo(-P,-R);e.clipDefRelative.select("path").attr("transform",U),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(Pg.hideOutsideRangePoints,e),t.emit("plotly_relayouting",m(f))}function D(){C6.call("_guiRelayout",t,m(f))}r.onmousemove=function(P){cZ.hover(t,P,e.id),t._fullLayout._lasthover=r,t._fullLayout._hoversubplot=e.id},r.onmouseout=function(P){t._dragging||fZ.unhover(t,P)},fZ.init(this.dragOptions)};function dZ(e){pZ.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var F6=N((EIe,_Z)=>{"use strict";var o6e=si(),l6e=Fc().attributes,nt=hi(),s6e=Ji().overrideAll,R6=xt().extendFlat,P6={title:{text:nt.title.text,font:nt.title.font},color:nt.color,tickmode:nt.minor.tickmode,nticks:R6({},nt.nticks,{dflt:6,min:1}),tick0:nt.tick0,dtick:nt.dtick,tickvals:nt.tickvals,ticktext:nt.ticktext,ticks:nt.ticks,ticklen:nt.ticklen,tickwidth:nt.tickwidth,tickcolor:nt.tickcolor,ticklabelstep:nt.ticklabelstep,showticklabels:nt.showticklabels,labelalias:nt.labelalias,showtickprefix:nt.showtickprefix,tickprefix:nt.tickprefix,showticksuffix:nt.showticksuffix,ticksuffix:nt.ticksuffix,showexponent:nt.showexponent,exponentformat:nt.exponentformat,minexponent:nt.minexponent,separatethousands:nt.separatethousands,tickfont:nt.tickfont,tickangle:nt.tickangle,tickformat:nt.tickformat,tickformatstops:nt.tickformatstops,hoverformat:nt.hoverformat,showline:R6({},nt.showline,{dflt:!0}),linecolor:nt.linecolor,linewidth:nt.linewidth,showgrid:R6({},nt.showgrid,{dflt:!0}),gridcolor:nt.gridcolor,gridwidth:nt.gridwidth,griddash:nt.griddash,layer:nt.layer,min:{valType:"number",dflt:0,min:0}},Fg=_Z.exports=s6e({domain:l6e({name:"ternary"}),bgcolor:{valType:"color",dflt:o6e.background},sum:{valType:"number",dflt:1,min:0},aaxis:P6,baxis:P6,caxis:P6},"plot","from-root");Fg.uirevision={valType:"any",editType:"none"};Fg.aaxis.uirevision=Fg.baxis.uirevision=Fg.caxis.uirevision={valType:"any",editType:"none"}});var TZ=N((DIe,wZ)=>{"use strict";var u6e=Ce(),f6e=At(),c6e=Fc().defaults;wZ.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,s=n.partition||"x",u=t._subplots[i],f=u.length,c=f&&u[0].replace(/\d+$/,""),v,d;function p(w,_){return u6e.coerce(v,d,o,w,_)}for(var y=0;y{"use strict";var v6e=Tr(),h6e=At(),Ng=Ce(),d6e=TZ(),p6e=l1(),y6e=s1(),m6e=i1(),g6e=n1(),b6e=m4(),MZ=F6(),AZ=["aaxis","baxis","caxis"];kZ.exports=function(r,t,a){d6e(r,t,a,{type:"ternary",attributes:MZ,handleDefaults:x6e,font:t.font,paper_bgcolor:t.paper_bgcolor})};function x6e(e,r,t,a){var n=t("bgcolor"),i=t("sum");a.bgColor=v6e.combine(n,a.paper_bgcolor);for(var o,l,s,u=0;u=i&&(f.min=0,c.min=0,v.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function _6e(e,r,t,a){var n=MZ[r._name];function i(d,p){return Ng.coerce(e,r,n,d,p)}i("uirevision",a.uirevision),r.type="linear";var o=i("color"),l=o!==n.color.dflt?o:t.font.color,s=r._name,u=s.charAt(0).toUpperCase(),f="Component "+u,c=i("title.text",f);r._hovertitle=c===f?c:u,Ng.coerceFont(i,"title.font",t.font,{overrideDflt:{size:Ng.bigFont(t.font.size),color:l}}),i("min"),g6e(e,r,i,"linear"),y6e(e,r,i,"linear"),p6e(e,r,i,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),m6e(e,r,i,{outerTicks:!0});var v=i("showticklabels");v&&(Ng.coerceFont(i,"tickfont",t.font,{overrideDflt:{color:l}}),i("tickangle"),i("tickformat")),b6e(e,r,i,{dfltColor:o,bgColor:t.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i("hoverformat"),i("layer")}});var qZ=N(Ni=>{"use strict";var w6e=xZ(),T6e=Jp().getSubplotCalcData,A6e=Ce().counterRegex,Qc="ternary";Ni.name=Qc;var M6e=Ni.attr="subplot";Ni.idRoot=Qc;Ni.idRegex=Ni.attrRegex=A6e(Qc);var k6e=Ni.attributes={};k6e[M6e]={valType:"subplotid",dflt:"ternary",editType:"calc"};Ni.layoutAttributes=F6();Ni.supplyLayoutDefaults=SZ();Ni.plot=function(r){for(var t=r._fullLayout,a=r.calcdata,n=t._subplots[Qc],i=0;i{"use strict";LZ.exports={attributes:S6(),supplyDefaults:$j(),colorbar:f0(),formatLabels:Qj(),calc:aZ(),plot:iZ(),style:ku().style,styleOnSelect:ku().styleOnSelect,hoverPoints:lZ(),selectPoints:p4(),eventData:uZ(),moduleType:"trace",name:"scatterternary",basePlotModule:qZ(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var DZ=N((NIe,EZ)=>{"use strict";EZ.exports=CZ()});var N6=N((zIe,PZ)=>{"use strict";var ba=ng(),ev=xt().extendFlat,RZ=eo().axisHoverFormat;PZ.exports={y:ba.y,x:ba.x,x0:ba.x0,y0:ba.y0,xhoverformat:RZ("x"),yhoverformat:RZ("y"),name:ev({},ba.name,{}),orientation:ev({},ba.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:ba.fillcolor,points:ev({},ba.boxpoints,{}),jitter:ev({},ba.jitter,{}),pointpos:ev({},ba.pointpos,{}),width:ev({},ba.width,{}),marker:ba.marker,text:ba.text,hovertext:ba.hovertext,hovertemplate:ba.hovertemplate,quartilemethod:ba.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:ba.offsetgroup,alignmentgroup:ba.alignmentgroup,selected:ba.selected,unselected:ba.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:ba.zorder}});var O6=N((IIe,FZ)=>{"use strict";var z6=ig(),I6=Ce().extendFlat;FZ.exports={violinmode:I6({},z6.boxmode,{}),violingap:I6({},z6.boxgap,{}),violingroupgap:I6({},z6.boxgroupgap,{})}});var BZ=N((OIe,OZ)=>{"use strict";var NZ=Ce(),S6e=Tr(),zZ=C0(),IZ=N6();OZ.exports=function(r,t,a,n){function i(T,k){return NZ.coerce(r,t,IZ,T,k)}function o(T,k){return NZ.coerce2(r,t,IZ,T,k)}if(zZ.handleSampleDefaults(r,t,i,n),t.visible!==!1){i("bandwidth"),i("side");var l=i("width");l||(i("scalegroup",t.name),i("scalemode"));var s=i("span"),u;Array.isArray(s)&&(u="manual"),i("spanmode",u);var f=i("line.color",(r.marker||{}).color||a),c=i("line.width"),v=i("fillcolor",S6e.addOpacity(t.line.color,.5));zZ.handlePointsDefaults(r,t,i,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",v),y=o("box.line.color",f),m=o("box.line.width",c),x=i("box.visible",!!(d||p||y||m));x||(t.box={visible:!1});var w=o("meanline.color",f),_=o("meanline.width",c),b=i("meanline.visible",!!(w||_));b||(t.meanline={visible:!1}),i("quartilemethod"),i("zorder")}}});var UZ=N((BIe,HZ)=>{"use strict";var q6e=Ce(),L6e=O6(),C6e=Sw();HZ.exports=function(r,t,a){function n(i,o){return q6e.coerce(r,t,L6e,i,o)}C6e._supply(r,t,a,n,"violin")}});var zg=N(Uu=>{"use strict";var E6e=Ce(),D6e={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};Uu.makeKDE=function(e,r,t){var a=t.length,n=D6e.gaussian,i=e.bandwidth,o=1/(a*i);return function(l){for(var s=0,u=0;u{"use strict";var B6=Ce(),H6=Ir(),R6e=Cw(),GZ=zg(),P6e=Nt().BADNUM;VZ.exports=function(r,t){var a=R6e(r,t);if(a[0].t.empty)return a;for(var n=r._fullLayout,i=H6.getFromId(r,t[t.orientation==="h"?"xaxis":"yaxis"]),o=1/0,l=-1/0,s=0,u=0,f=0;f{"use strict";var I6e=Ew().setPositionOffset,WZ=["v","h"];jZ.exports=function(r,t){for(var a=r.calcdata,n=t.xaxis,i=t.yaxis,o=0;o{"use strict";var U6=Sr(),G6=Ce(),O6e=Wr(),V6=Dw(),B6e=l4(),H6e=zg();XZ.exports=function(r,t,a,n){var i=r._context.staticPlot,o=r._fullLayout,l=t.xaxis,s=t.yaxis;function u(f,c){var v=B6e(f,{xaxis:l,yaxis:s,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return O6e.smoothopen(v[0],1)}G6.makeTraceGroups(n,a,"trace violins").each(function(f){var c=U6.select(this),v=f[0],d=v.t,p=v.trace;if(p.visible!==!0||d.empty){c.remove();return}var y=d.bPos,m=d.bdPos,x=t[d.valLetter+"axis"],w=t[d.posLetter+"axis"],_=p.side==="both",b=_||p.side==="positive",T=_||p.side==="negative",k=c.selectAll("path.violin").data(G6.identity);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","violin"),k.exit().remove(),k.each(function(O){var B=U6.select(this),Y=O.density,G=Y.length,U=w.c2l(O.pos+y,!0),V=w.l2p(U),X;if(p.width)X=d.maxKDE/m;else{var Z=o._violinScaleGroupStats[p.scalegroup];X=p.scalemode==="count"?Z.maxKDE/m*(Z.maxCount/O.pts.length):Z.maxKDE/m}var re,ce,oe,fe,K,Te,le;if(b){for(Te=new Array(G),fe=0;fe{"use strict";var $Z=Sr(),rv=Tr(),U6e=ku().stylePoints;KZ.exports=function(r){var t=$Z.select(r).selectAll("g.trace.violins");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=a[0].trace,i=$Z.select(this),o=n.box||{},l=o.line||{},s=n.meanline||{},u=s.width;i.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(rv.stroke,n.line.color).call(rv.fill,n.fillcolor),i.selectAll("path.box").style("stroke-width",l.width+"px").call(rv.stroke,l.color).call(rv.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};i.selectAll("path.mean").style(f).call(rv.stroke,s.color),i.selectAll("path.meanline").style(f).call(rv.stroke,s.color),U6e(i,n,r)})}});var aX=N((WIe,tX)=>{"use strict";var G6e=Tr(),Y6=Ce(),V6e=Ir(),eX=Iw(),rX=zg();tX.exports=function(r,t,a,n,i){i||(i={});var o=i.hoverLayer,l=r.cd,s=l[0].trace,u=s.hoveron,f=u.indexOf("violins")!==-1,c=u.indexOf("kde")!==-1,v=[],d,p;if(f||c){var y=eX.hoverOnBoxes(r,t,a,n);if(c&&y.length>0){var m=r.xa,x=r.ya,w,_,b,T,k;s.orientation==="h"?(k=t,w="y",b=x,_="x",T=m):(k=a,w="x",b=m,_="y",T=x);var M=l[r.index];if(k>=M.span[0]&&k<=M.span[1]){var q=Y6.extendFlat({},r),E=T.c2p(k,!0),D=rX.getKdeValue(M,s,k),P=rX.getPositionOnKdePath(M,s,E),R=b._offset,z=b._length;q[w+"0"]=P[0],q[w+"1"]=P[1],q[_+"0"]=q[_+"1"]=E,q[_+"Label"]=_+": "+V6e.hoverLabelText(T,k,s[_+"hoverformat"])+", "+l[0].t.labels.kde+" "+D.toFixed(3);for(var O=0,B=0;B{"use strict";nX.exports={attributes:N6(),layoutAttributes:O6(),supplyDefaults:BZ(),crossTraceDefaults:C0().crossTraceDefaults,supplyLayoutDefaults:UZ(),calc:YZ(),crossTraceCalc:ZZ(),plot:JZ(),style:QZ(),styleOnSelect:ku().styleOnSelect,hoverPoints:aX(),selectPoints:Ow(),moduleType:"trace",name:"violin",basePlotModule:Li(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var lX=N((ZIe,oX)=>{"use strict";oX.exports=iX()});var tv=N((XIe,sX)=>{"use strict";sX.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var r=e.slice(0,3);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var r=e.slice(0,4);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%",""]}}}});var W6=N((JIe,fX)=>{"use strict";var Y6e=gn(),W6e=wi().zorder,j6e=Ta().hovertemplateAttrs,uX=xt().extendFlat,Z6e=tv().colormodel,V0=["rgb","rgba","rgba256","hsl","hsla"],X6e=[],J6e=[];for(av=0;av{"use strict";var $6e=Ce(),K6e=W6(),cX=tv(),Q6e=yl().IMAGE_URL_PREFIX;vX.exports=function(r,t){function a(o,l){return $6e.coerce(r,t,K6e,o,l)}a("source"),t.source&&!t.source.match(Q6e)&&delete t.source,t._hasSource=!!t.source;var n=a("z");if(t._hasZ=!(n===void 0||!n.length||!n[0]||!n[0].length),!t._hasZ&&!t._hasSource){t.visible=!1;return}a("x0"),a("y0"),a("dx"),a("dy");var i;t._hasZ?(a("colormodel","rgb"),i=cX.colormodel[t.colormodel],a("zmin",i.zminDflt||i.min),a("zmax",i.zmaxDflt||i.max)):t._hasSource&&(t.colormodel="rgba256",i=cX.colormodel[t.colormodel],t.zmin=i.zminDflt,t.zmax=i.zmaxDflt),a("zsmooth"),a("text"),a("hovertext"),a("hovertemplate"),t._length=null,a("zorder")}});var kl=N((KIe,j6)=>{typeof Object.create=="function"?j6.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:j6.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var Z6=N((QIe,dX)=>{dX.exports=Qs().EventEmitter});var mX=N(Ig=>{"use strict";Ig.byteLength=r7e;Ig.toByteArray=a7e;Ig.fromByteArray=o7e;var Wo=[],zi=[],e7e=typeof Uint8Array!="undefined"?Uint8Array:Array,X6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Gu=0,pX=X6.length;Gu0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function r7e(e){var r=yX(e),t=r[0],a=r[1];return(t+a)*3/4-a}function t7e(e,r,t){return(r+t)*3/4-t}function a7e(e){var r,t=yX(e),a=t[0],n=t[1],i=new e7e(t7e(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=zi[e.charCodeAt(s)]<<2|zi[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=zi[e.charCodeAt(s)]<<10|zi[e.charCodeAt(s+1)]<<4|zi[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function n7e(e){return Wo[e>>18&63]+Wo[e>>12&63]+Wo[e>>6&63]+Wo[e&63]}function i7e(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(Wo[r>>2]+Wo[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Wo[r>>10]+Wo[r>>4&63]+Wo[r<<2&63]+"=")),n.join("")}});var gX=N(J6=>{J6.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,f=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-f)-1,d>>=-f,f+=l;f>0;i=i*256+e[r+c],c+=v,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=a;f>0;o=o*256+e[r+c],c+=v,f-=8);if(i===0)i=1-u;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-u}return(d?-1:1)*o*Math.pow(2,i-a)};J6.write=function(e,r,t,a,n,i){var o,l,s,u=i*8-n-1,f=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,y=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=f?(l=0,o=f):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,u-=8);e[t+d-p]|=y*128}});var sv=N(lv=>{"use strict";var $6=mX(),iv=gX(),bX=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;lv.Buffer=We;lv.SlowBuffer=v7e;lv.INSPECT_MAX_BYTES=50;var Og=2147483647;lv.kMaxLength=Og;We.TYPED_ARRAY_SUPPORT=l7e();!We.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function l7e(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(We.prototype,"parent",{enumerable:!0,get:function(){if(We.isBuffer(this))return this.buffer}});Object.defineProperty(We.prototype,"offset",{enumerable:!0,get:function(){if(We.isBuffer(this))return this.byteOffset}});function Sl(e){if(e>Og)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,We.prototype),r}function We(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return r7(e)}return TX(e,r,t)}We.poolSize=8192;function TX(e,r,t){if(typeof e=="string")return u7e(e,r);if(ArrayBuffer.isView(e))return f7e(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(jo(e,ArrayBuffer)||e&&jo(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(jo(e,SharedArrayBuffer)||e&&jo(e.buffer,SharedArrayBuffer)))return Q6(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return We.from(a,r,t);let n=c7e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return We.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}We.from=function(e,r,t){return TX(e,r,t)};Object.setPrototypeOf(We.prototype,Uint8Array.prototype);Object.setPrototypeOf(We,Uint8Array);function AX(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function s7e(e,r,t){return AX(e),e<=0?Sl(e):r!==void 0?typeof t=="string"?Sl(e).fill(r,t):Sl(e).fill(r):Sl(e)}We.alloc=function(e,r,t){return s7e(e,r,t)};function r7(e){return AX(e),Sl(e<0?0:t7(e)|0)}We.allocUnsafe=function(e){return r7(e)};We.allocUnsafeSlow=function(e){return r7(e)};function u7e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!We.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=MX(e,r)|0,a=Sl(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function K6(e){let r=e.length<0?0:t7(e.length)|0,t=Sl(r);for(let a=0;a=Og)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Og.toString(16)+" bytes");return e|0}function v7e(e){return+e!=e&&(e=0),We.alloc(+e)}We.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==We.prototype};We.compare=function(r,t){if(jo(r,Uint8Array)&&(r=We.from(r,r.offset,r.byteLength)),jo(t,Uint8Array)&&(t=We.from(t,t.offset,t.byteLength)),!We.isBuffer(r)||!We.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(We.isBuffer(o)||(o=We.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(We.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function MX(e,r){if(We.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||jo(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return e7(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return PX(e).length;default:if(n)return a?-1:e7(e).length;r=(""+r).toLowerCase(),n=!0}}We.byteLength=MX;function h7e(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return T7e(this,r,t);case"utf8":case"utf-8":return SX(this,r,t);case"ascii":return _7e(this,r,t);case"latin1":case"binary":return w7e(this,r,t);case"base64":return b7e(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A7e(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}We.prototype._isBuffer=!0;function Vu(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}We.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};bX&&(We.prototype[bX]=We.prototype.inspect);We.prototype.compare=function(r,t,a,n,i){if(jo(r,Uint8Array)&&(r=We.from(r,r.offset,r.byteLength)),!We.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),u=this.slice(n,i),f=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,n7(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=We.from(r,a)),We.isBuffer(r))return r.length===0?-1:xX(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):xX(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function xX(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(f,c){return i===1?f[c]:f.readUInt16BE(c*i)}let u;if(n){let f=-1;for(u=t;uo&&(t=o-l),u=t;u>=0;u--){let f=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return d7e(this,r,t,a);case"utf8":case"utf-8":return p7e(this,r,t,a);case"ascii":case"latin1":case"binary":return y7e(this,r,t,a);case"base64":return m7e(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g7e(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};We.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function b7e(e,r,t){return r===0&&t===e.length?$6.fromByteArray(e):$6.fromByteArray(e.slice(r,t))}function SX(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,u,f,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],u=e[n+2],(s&192)===128&&(u&192)===128&&(c=(i&15)<<12|(s&63)<<6|u&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],u=e[n+2],f=e[n+3],(s&192)===128&&(u&192)===128&&(f&192)===128&&(c=(i&15)<<18|(s&63)<<12|(u&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return x7e(a)}var _X=4096;function x7e(e){let r=e.length;if(r<=_X)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}We.prototype.readUintLE=We.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||Ya(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Ya(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};We.prototype.readUint8=We.prototype.readUInt8=function(r,t){return r=r>>>0,t||Ya(r,1,this.length),this[r]};We.prototype.readUint16LE=We.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Ya(r,2,this.length),this[r]|this[r+1]<<8};We.prototype.readUint16BE=We.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Ya(r,2,this.length),this[r]<<8|this[r+1]};We.prototype.readUint32LE=We.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Ya(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};We.prototype.readUint32BE=We.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||Ya(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};We.prototype.readBigUInt64LE=xs(function(r){r=r>>>0,ov(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Y0(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,ov(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Y0(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||Ya(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};We.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Ya(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};We.prototype.readInt8=function(r,t){return r=r>>>0,t||Ya(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};We.prototype.readInt16LE=function(r,t){r=r>>>0,t||Ya(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};We.prototype.readInt16BE=function(r,t){r=r>>>0,t||Ya(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};We.prototype.readInt32LE=function(r,t){return r=r>>>0,t||Ya(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};We.prototype.readInt32BE=function(r,t){return r=r>>>0,t||Ya(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};We.prototype.readBigInt64LE=xs(function(r){r=r>>>0,ov(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Y0(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,ov(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Y0(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||Ya(r,4,this.length),iv.read(this,r,!0,23,4)};We.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Ya(r,4,this.length),iv.read(this,r,!1,23,4)};We.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Ya(r,8,this.length),iv.read(this,r,!0,52,8)};We.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Ya(r,8,this.length),iv.read(this,r,!1,52,8)};function Un(e,r,t,a,n,i){if(!We.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}We.prototype.writeUintLE=We.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;Un(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;Un(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};We.prototype.writeUint8=We.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,1,255,0),this[t]=r&255,t+1};We.prototype.writeUint16LE=We.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};We.prototype.writeUint16BE=We.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};We.prototype.writeUint32LE=We.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};We.prototype.writeUint32BE=We.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function qX(e,r,t,a,n){RX(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function LX(e,r,t,a,n){RX(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}We.prototype.writeBigUInt64LE=xs(function(r,t=0){return qX(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});We.prototype.writeBigUInt64BE=xs(function(r,t=0){return LX(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});We.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Un(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};We.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Un(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};We.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};We.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};We.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};We.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};We.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};We.prototype.writeBigInt64LE=xs(function(r,t=0){return qX(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});We.prototype.writeBigInt64BE=xs(function(r,t=0){return LX(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function CX(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function EX(e,r,t,a,n){return r=+r,t=t>>>0,n||CX(e,r,t,4,34028234663852886e22,-34028234663852886e22),iv.write(e,r,t,a,23,4),t+4}We.prototype.writeFloatLE=function(r,t,a){return EX(this,r,t,!0,a)};We.prototype.writeFloatBE=function(r,t,a){return EX(this,r,t,!1,a)};function DX(e,r,t,a,n){return r=+r,t=t>>>0,n||CX(e,r,t,8,17976931348623157e292,-17976931348623157e292),iv.write(e,r,t,a,52,8),t+8}We.prototype.writeDoubleLE=function(r,t,a){return DX(this,r,t,!0,a)};We.prototype.writeDoubleBE=function(r,t,a){return DX(this,r,t,!1,a)};We.prototype.copy=function(r,t,a,n){if(!We.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=wX(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=wX(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function wX(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function M7e(e,r,t){ov(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&Y0(r,e.length-(t+1))}function RX(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new nv.ERR_OUT_OF_RANGE("value",l,e)}M7e(a,n,i)}function ov(e,r){if(typeof e!="number")throw new nv.ERR_INVALID_ARG_TYPE(r,"number",e)}function Y0(e,r,t){throw Math.floor(e)!==e?(ov(e,t),new nv.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new nv.ERR_BUFFER_OUT_OF_BOUNDS:new nv.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var k7e=/[^+/0-9A-Za-z-_]/g;function S7e(e){if(e=e.split("=")[0],e=e.trim().replace(k7e,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function e7(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function q7e(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function PX(e){return $6.toByteArray(S7e(e))}function Bg(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function jo(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function n7(e){return e!==e}var C7e=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r}();function xs(e){return typeof BigInt=="undefined"?E7e:e}function E7e(){throw new Error("BigInt not supported")}});var Hg=N((nOe,FX)=>{"use strict";FX.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var W0=N((iOe,NX)=>{"use strict";var D7e=Hg();NX.exports=function(){return D7e()&&!!Symbol.toStringTag}});var i7=N((oOe,zX)=>{"use strict";zX.exports=Object});var OX=N((lOe,IX)=>{"use strict";IX.exports=Error});var HX=N((sOe,BX)=>{"use strict";BX.exports=EvalError});var GX=N((uOe,UX)=>{"use strict";UX.exports=RangeError});var YX=N((fOe,VX)=>{"use strict";VX.exports=ReferenceError});var o7=N((cOe,WX)=>{"use strict";WX.exports=SyntaxError});var uv=N((vOe,jX)=>{"use strict";jX.exports=TypeError});var XX=N((hOe,ZX)=>{"use strict";ZX.exports=URIError});var $X=N((dOe,JX)=>{"use strict";JX.exports=Math.abs});var QX=N((pOe,KX)=>{"use strict";KX.exports=Math.floor});var rJ=N((yOe,eJ)=>{"use strict";eJ.exports=Math.max});var aJ=N((mOe,tJ)=>{"use strict";tJ.exports=Math.min});var iJ=N((gOe,nJ)=>{"use strict";nJ.exports=Math.pow});var lJ=N((bOe,oJ)=>{"use strict";oJ.exports=Math.round});var uJ=N((xOe,sJ)=>{"use strict";sJ.exports=Number.isNaN||function(r){return r!==r}});var cJ=N((_Oe,fJ)=>{"use strict";var R7e=uJ();fJ.exports=function(r){return R7e(r)||r===0?r:r<0?-1:1}});var hJ=N((wOe,vJ)=>{"use strict";vJ.exports=Object.getOwnPropertyDescriptor});var Yu=N((TOe,dJ)=>{"use strict";var Ug=hJ();if(Ug)try{Ug([],"length")}catch(e){Ug=null}dJ.exports=Ug});var j0=N((AOe,pJ)=>{"use strict";var Gg=Object.defineProperty||!1;if(Gg)try{Gg({},"a",{value:1})}catch(e){Gg=!1}pJ.exports=Gg});var gJ=N((MOe,mJ)=>{"use strict";var yJ=typeof Symbol!="undefined"&&Symbol,P7e=Hg();mJ.exports=function(){return typeof yJ!="function"||typeof Symbol!="function"||typeof yJ("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:P7e()}});var l7=N((kOe,bJ)=>{"use strict";bJ.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var s7=N((SOe,xJ)=>{"use strict";var F7e=i7();xJ.exports=F7e.getPrototypeOf||null});var TJ=N((qOe,wJ)=>{"use strict";var N7e="Function.prototype.bind called on incompatible ",z7e=Object.prototype.toString,I7e=Math.max,O7e="[object Function]",_J=function(r,t){for(var a=[],n=0;n{"use strict";var U7e=TJ();AJ.exports=Function.prototype.bind||U7e});var Vg=N((COe,MJ)=>{"use strict";MJ.exports=Function.prototype.call});var u7=N((EOe,kJ)=>{"use strict";kJ.exports=Function.prototype.apply});var qJ=N((DOe,SJ)=>{"use strict";SJ.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var CJ=N((ROe,LJ)=>{"use strict";var G7e=fv(),V7e=u7(),Y7e=Vg(),W7e=qJ();LJ.exports=W7e||G7e.call(Y7e,V7e)});var DJ=N((POe,EJ)=>{"use strict";var j7e=fv(),Z7e=uv(),X7e=Vg(),J7e=CJ();EJ.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new Z7e("a function is required");return J7e(j7e,X7e,r)}});var IJ=N((FOe,zJ)=>{"use strict";var $7e=DJ(),RJ=Yu(),FJ;try{FJ=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var f7=!!FJ&&RJ&&RJ(Object.prototype,"__proto__"),NJ=Object,PJ=NJ.getPrototypeOf;zJ.exports=f7&&typeof f7.get=="function"?$7e([f7.get]):typeof PJ=="function"?function(r){return PJ(r==null?r:NJ(r))}:!1});var GJ=N((NOe,UJ)=>{"use strict";var OJ=l7(),BJ=s7(),HJ=IJ();UJ.exports=OJ?function(r){return OJ(r)}:BJ?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return BJ(r)}:HJ?function(r){return HJ(r)}:null});var YJ=N((zOe,VJ)=>{"use strict";var K7e=Function.prototype.call,Q7e=Object.prototype.hasOwnProperty,eTe=fv();VJ.exports=eTe.call(K7e,Q7e)});var jg=N((IOe,$J)=>{"use strict";var it,rTe=i7(),tTe=OX(),aTe=HX(),nTe=GX(),iTe=YX(),dv=o7(),hv=uv(),oTe=XX(),lTe=$X(),sTe=QX(),uTe=rJ(),fTe=aJ(),cTe=iJ(),vTe=lJ(),hTe=cJ(),XJ=Function,c7=function(e){try{return XJ('"use strict"; return ('+e+").constructor;")()}catch(r){}},Z0=Yu(),dTe=j0(),v7=function(){throw new hv},pTe=Z0?function(){try{return arguments.callee,v7}catch(e){try{return Z0(arguments,"callee").get}catch(r){return v7}}}():v7,cv=gJ()(),Wa=GJ(),yTe=s7(),mTe=l7(),JJ=u7(),X0=Vg(),vv={},gTe=typeof Uint8Array=="undefined"||!Wa?it:Wa(Uint8Array),Wu={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?it:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?it:ArrayBuffer,"%ArrayIteratorPrototype%":cv&&Wa?Wa([][Symbol.iterator]()):it,"%AsyncFromSyncIteratorPrototype%":it,"%AsyncFunction%":vv,"%AsyncGenerator%":vv,"%AsyncGeneratorFunction%":vv,"%AsyncIteratorPrototype%":vv,"%Atomics%":typeof Atomics=="undefined"?it:Atomics,"%BigInt%":typeof BigInt=="undefined"?it:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?it:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?it:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?it:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":tTe,"%eval%":eval,"%EvalError%":aTe,"%Float16Array%":typeof Float16Array=="undefined"?it:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?it:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?it:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?it:FinalizationRegistry,"%Function%":XJ,"%GeneratorFunction%":vv,"%Int8Array%":typeof Int8Array=="undefined"?it:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?it:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?it:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":cv&&Wa?Wa(Wa([][Symbol.iterator]())):it,"%JSON%":typeof JSON=="object"?JSON:it,"%Map%":typeof Map=="undefined"?it:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!cv||!Wa?it:Wa(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":rTe,"%Object.getOwnPropertyDescriptor%":Z0,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?it:Promise,"%Proxy%":typeof Proxy=="undefined"?it:Proxy,"%RangeError%":nTe,"%ReferenceError%":iTe,"%Reflect%":typeof Reflect=="undefined"?it:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?it:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!cv||!Wa?it:Wa(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?it:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":cv&&Wa?Wa(""[Symbol.iterator]()):it,"%Symbol%":cv?Symbol:it,"%SyntaxError%":dv,"%ThrowTypeError%":pTe,"%TypedArray%":gTe,"%TypeError%":hv,"%Uint8Array%":typeof Uint8Array=="undefined"?it:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?it:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?it:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?it:Uint32Array,"%URIError%":oTe,"%WeakMap%":typeof WeakMap=="undefined"?it:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?it:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?it:WeakSet,"%Function.prototype.call%":X0,"%Function.prototype.apply%":JJ,"%Object.defineProperty%":dTe,"%Object.getPrototypeOf%":yTe,"%Math.abs%":lTe,"%Math.floor%":sTe,"%Math.max%":uTe,"%Math.min%":fTe,"%Math.pow%":cTe,"%Math.round%":vTe,"%Math.sign%":hTe,"%Reflect.getPrototypeOf%":mTe};if(Wa)try{null.error}catch(e){WJ=Wa(Wa(e)),Wu["%Error.prototype%"]=WJ}var WJ,bTe=function e(r){var t;if(r==="%AsyncFunction%")t=c7("async function () {}");else if(r==="%GeneratorFunction%")t=c7("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=c7("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Wa&&(t=Wa(n.prototype))}return Wu[r]=t,t},jJ={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},J0=fv(),Yg=YJ(),xTe=J0.call(X0,Array.prototype.concat),_Te=J0.call(JJ,Array.prototype.splice),ZJ=J0.call(X0,String.prototype.replace),Wg=J0.call(X0,String.prototype.slice),wTe=J0.call(X0,RegExp.prototype.exec),TTe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ATe=/\\(\\)?/g,MTe=function(r){var t=Wg(r,0,1),a=Wg(r,-1);if(t==="%"&&a!=="%")throw new dv("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new dv("invalid intrinsic syntax, expected opening `%`");var n=[];return ZJ(r,TTe,function(i,o,l,s){n[n.length]=l?ZJ(s,ATe,"$1"):o||i}),n},kTe=function(r,t){var a=r,n;if(Yg(jJ,a)&&(n=jJ[a],a="%"+n[0]+"%"),Yg(Wu,a)){var i=Wu[a];if(i===vv&&(i=bTe(a)),typeof i=="undefined"&&!t)throw new hv("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new dv("intrinsic "+r+" does not exist!")};$J.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new hv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new hv('"allowMissing" argument must be a boolean');if(wTe(/^%?[^%]*%?$/,r)===null)throw new dv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=MTe(r),n=a.length>0?a[0]:"",i=kTe("%"+n+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(n=u[0],_Te(a,xTe([0,1],u)));for(var f=1,c=!0;f=a.length){var y=Z0(l,v);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[v]}else c=Yg(l,v),l=l[v];c&&!s&&(Wu[o]=l)}}return l}});var r$=N((OOe,e$)=>{"use strict";var KJ=j0(),STe=o7(),pv=uv(),QJ=Yu();e$.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new pv("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new pv("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new pv("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new pv("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new pv("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new pv("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!QJ&&QJ(r,t);if(KJ)KJ(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new STe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var d7=N((BOe,a$)=>{"use strict";var h7=j0(),t$=function(){return!!h7};t$.hasArrayLengthDefineBug=function(){if(!h7)return null;try{return h7([],"length",{value:1}).length!==1}catch(r){return!0}};a$.exports=t$});var s$=N((HOe,l$)=>{"use strict";var qTe=jg(),n$=r$(),LTe=d7()(),i$=Yu(),o$=uv(),CTe=qTe("%Math.floor%");l$.exports=function(r,t){if(typeof r!="function")throw new o$("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||CTe(t)!==t)throw new o$("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&i$){var o=i$(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(LTe?n$(r,"length",t,!0,!0):n$(r,"length",t)),r}});var $0=N((UOe,Zg)=>{"use strict";var p7=fv(),Xg=jg(),ETe=s$(),DTe=uv(),c$=Xg("%Function.prototype.apply%"),v$=Xg("%Function.prototype.call%"),h$=Xg("%Reflect.apply%",!0)||p7.call(v$,c$),u$=j0(),RTe=Xg("%Math.max%");Zg.exports=function(r){if(typeof r!="function")throw new DTe("a function is required");var t=h$(p7,v$,arguments);return ETe(t,1+RTe(0,r.length-(arguments.length-1)),!0)};var f$=function(){return h$(p7,c$,arguments)};u$?u$(Zg.exports,"apply",{value:f$}):Zg.exports.apply=f$});var yv=N((GOe,y$)=>{"use strict";var d$=jg(),p$=$0(),PTe=p$(d$("String.prototype.indexOf"));y$.exports=function(r,t){var a=d$(r,!!t);return typeof a=="function"&&PTe(r,".prototype.")>-1?p$(a):a}});var b$=N((VOe,g$)=>{"use strict";var FTe=W0()(),NTe=yv(),y7=NTe("Object.prototype.toString"),Jg=function(r){return FTe&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:y7(r)==="[object Arguments]"},m$=function(r){return Jg(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&y7(r)!=="[object Array]"&&y7(r.callee)==="[object Function]"},zTe=function(){return Jg(arguments)}();Jg.isLegacyArguments=m$;g$.exports=zTe?Jg:m$});var w$=N((YOe,_$)=>{"use strict";var ITe=Object.prototype.toString,OTe=Function.prototype.toString,BTe=/^\s*(?:function)?\*/,x$=W0()(),m7=Object.getPrototypeOf,HTe=function(){if(!x$)return!1;try{return Function("return function*() {}")()}catch(e){}},g7;_$.exports=function(r){if(typeof r!="function")return!1;if(BTe.test(OTe.call(r)))return!0;if(!x$){var t=ITe.call(r);return t==="[object GeneratorFunction]"}if(!m7)return!1;if(typeof g7=="undefined"){var a=HTe();g7=a?m7(a):!1}return m7(r)===g7}});var k$=N((WOe,M$)=>{"use strict";var A$=Function.prototype.toString,mv=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,x7,$g;if(typeof mv=="function"&&typeof Object.defineProperty=="function")try{x7=Object.defineProperty({},"length",{get:function(){throw $g}}),$g={},mv(function(){throw 42},null,x7)}catch(e){e!==$g&&(mv=null)}else mv=null;var UTe=/^\s*class\b/,_7=function(r){try{var t=A$.call(r);return UTe.test(t)}catch(a){return!1}},b7=function(r){try{return _7(r)?!1:(A$.call(r),!0)}catch(t){return!1}},Kg=Object.prototype.toString,GTe="[object Object]",VTe="[object Function]",YTe="[object GeneratorFunction]",WTe="[object HTMLAllCollection]",jTe="[object HTML document.all class]",ZTe="[object HTMLCollection]",XTe=typeof Symbol=="function"&&!!Symbol.toStringTag,JTe=!(0 in[,]),w7=function(){return!1};typeof document=="object"&&(T$=document.all,Kg.call(T$)===Kg.call(document.all)&&(w7=function(r){if((JTe||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=Kg.call(r);return(t===WTe||t===jTe||t===ZTe||t===GTe)&&r("")==null}catch(a){}return!1}));var T$;M$.exports=mv?function(r){if(w7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{mv(r,null,x7)}catch(t){if(t!==$g)return!1}return!_7(r)&&b7(r)}:function(r){if(w7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(XTe)return b7(r);if(_7(r))return!1;var t=Kg.call(r);return t!==VTe&&t!==YTe&&!/^\[object HTML/.test(t)?!1:b7(r)}});var T7=N((jOe,q$)=>{"use strict";var $Te=k$(),KTe=Object.prototype.toString,S$=Object.prototype.hasOwnProperty,QTe=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),KTe.call(r)==="[object Array]"?QTe(r,t,n):typeof r=="string"?e8e(r,t,n):r8e(r,t,n)};q$.exports=t8e});var M7=N((ZOe,L$)=>{"use strict";var A7=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a8e=typeof globalThis=="undefined"?window:globalThis;L$.exports=function(){for(var r=[],t=0;t{"use strict";var e2=T7(),n8e=M7(),C$=$0(),q7=yv(),Qg=Yu(),i8e=q7("Object.prototype.toString"),D$=W0()(),E$=typeof globalThis=="undefined"?window:globalThis,S7=n8e(),L7=q7("String.prototype.slice"),k7=Object.getPrototypeOf,o8e=q7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:s8e(r)}return Qg?l8e(r):null}});var B$=N((JOe,O$)=>{"use strict";var F$=T7(),u8e=M7(),E7=yv(),f8e=E7("Object.prototype.toString"),N$=W0()(),t2=Yu(),c8e=typeof globalThis=="undefined"?window:globalThis,z$=u8e(),v8e=E7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return t2?d8e(r):!1}});var P7=N(ot=>{"use strict";var p8e=b$(),y8e=w$(),mo=P$(),H$=B$();function gv(e){return e.call.bind(e)}var U$=typeof BigInt!="undefined",G$=typeof Symbol!="undefined",Ii=gv(Object.prototype.toString),m8e=gv(Number.prototype.valueOf),g8e=gv(String.prototype.valueOf),b8e=gv(Boolean.prototype.valueOf);U$&&(V$=gv(BigInt.prototype.valueOf));var V$;G$&&(Y$=gv(Symbol.prototype.valueOf));var Y$;function Q0(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}ot.isArgumentsObject=p8e;ot.isGeneratorFunction=y8e;ot.isTypedArray=H$;function x8e(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}ot.isPromise=x8e;function _8e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):H$(e)||j$(e)}ot.isArrayBufferView=_8e;function w8e(e){return mo(e)==="Uint8Array"}ot.isUint8Array=w8e;function T8e(e){return mo(e)==="Uint8ClampedArray"}ot.isUint8ClampedArray=T8e;function A8e(e){return mo(e)==="Uint16Array"}ot.isUint16Array=A8e;function M8e(e){return mo(e)==="Uint32Array"}ot.isUint32Array=M8e;function k8e(e){return mo(e)==="Int8Array"}ot.isInt8Array=k8e;function S8e(e){return mo(e)==="Int16Array"}ot.isInt16Array=S8e;function q8e(e){return mo(e)==="Int32Array"}ot.isInt32Array=q8e;function L8e(e){return mo(e)==="Float32Array"}ot.isFloat32Array=L8e;function C8e(e){return mo(e)==="Float64Array"}ot.isFloat64Array=C8e;function E8e(e){return mo(e)==="BigInt64Array"}ot.isBigInt64Array=E8e;function D8e(e){return mo(e)==="BigUint64Array"}ot.isBigUint64Array=D8e;function a2(e){return Ii(e)==="[object Map]"}a2.working=typeof Map!="undefined"&&a2(new Map);function R8e(e){return typeof Map=="undefined"?!1:a2.working?a2(e):e instanceof Map}ot.isMap=R8e;function n2(e){return Ii(e)==="[object Set]"}n2.working=typeof Set!="undefined"&&n2(new Set);function P8e(e){return typeof Set=="undefined"?!1:n2.working?n2(e):e instanceof Set}ot.isSet=P8e;function i2(e){return Ii(e)==="[object WeakMap]"}i2.working=typeof WeakMap!="undefined"&&i2(new WeakMap);function F8e(e){return typeof WeakMap=="undefined"?!1:i2.working?i2(e):e instanceof WeakMap}ot.isWeakMap=F8e;function R7(e){return Ii(e)==="[object WeakSet]"}R7.working=typeof WeakSet!="undefined"&&R7(new WeakSet);function N8e(e){return R7(e)}ot.isWeakSet=N8e;function o2(e){return Ii(e)==="[object ArrayBuffer]"}o2.working=typeof ArrayBuffer!="undefined"&&o2(new ArrayBuffer);function W$(e){return typeof ArrayBuffer=="undefined"?!1:o2.working?o2(e):e instanceof ArrayBuffer}ot.isArrayBuffer=W$;function l2(e){return Ii(e)==="[object DataView]"}l2.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&l2(new DataView(new ArrayBuffer(1),0,1));function j$(e){return typeof DataView=="undefined"?!1:l2.working?l2(e):e instanceof DataView}ot.isDataView=j$;var D7=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function K0(e){return Ii(e)==="[object SharedArrayBuffer]"}function Z$(e){return typeof D7=="undefined"?!1:(typeof K0.working=="undefined"&&(K0.working=K0(new D7)),K0.working?K0(e):e instanceof D7)}ot.isSharedArrayBuffer=Z$;function z8e(e){return Ii(e)==="[object AsyncFunction]"}ot.isAsyncFunction=z8e;function I8e(e){return Ii(e)==="[object Map Iterator]"}ot.isMapIterator=I8e;function O8e(e){return Ii(e)==="[object Set Iterator]"}ot.isSetIterator=O8e;function B8e(e){return Ii(e)==="[object Generator]"}ot.isGeneratorObject=B8e;function H8e(e){return Ii(e)==="[object WebAssembly.Module]"}ot.isWebAssemblyCompiledModule=H8e;function X$(e){return Q0(e,m8e)}ot.isNumberObject=X$;function J$(e){return Q0(e,g8e)}ot.isStringObject=J$;function $$(e){return Q0(e,b8e)}ot.isBooleanObject=$$;function K$(e){return U$&&Q0(e,V$)}ot.isBigIntObject=K$;function Q$(e){return G$&&Q0(e,Y$)}ot.isSymbolObject=Q$;function U8e(e){return X$(e)||J$(e)||$$(e)||K$(e)||Q$(e)}ot.isBoxedPrimitive=U8e;function G8e(e){return typeof Uint8Array!="undefined"&&(W$(e)||Z$(e))}ot.isAnyArrayBuffer=G8e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(ot,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var F7=N((KOe,eK)=>{eK.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var H7=N(lt=>{var rK=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),O7(r)?t.showHidden=r:r&<._extend(t,r),Zu(t.showHidden)&&(t.showHidden=!1),Zu(t.depth)&&(t.depth=2),Zu(t.colors)&&(t.colors=!1),Zu(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=Y8e),c2(t,e,t.depth)}lt.inspect=_s;_s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};_s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Y8e(e,r){var t=_s.styles[r];return t?"\x1B["+_s.colors[t][0]+"m"+e+"\x1B["+_s.colors[t][1]+"m":e}function W8e(e,r){return e}function j8e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function c2(e,r,t){if(e.customInspect&&r&&f2(r.inspect)&&r.inspect!==lt.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return d2(a)||(a=c2(e,a,t)),a}var n=Z8e(e,r);if(n)return n;var i=Object.keys(r),o=j8e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),rd(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return N7(r);if(i.length===0){if(f2(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(ed(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(v2(r))return e.stylize(Date.prototype.toString.call(r),"date");if(rd(r))return N7(r)}var s="",u=!1,f=["{","}"];if(aK(r)&&(u=!0,f=["[","]"]),f2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(ed(r)&&(s=" "+RegExp.prototype.toString.call(r)),v2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),rd(r)&&(s=" "+N7(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return ed(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=X8e(e,r,t,o,i):v=i.map(function(d){return I7(e,r,t,o,d,u)}),e.seen.pop(),J8e(v,s,f)}function Z8e(e,r){if(Zu(r))return e.stylize("undefined","undefined");if(d2(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(nK(r))return e.stylize(""+r,"number");if(O7(r))return e.stylize(""+r,"boolean");if(h2(r))return e.stylize("null","null")}function N7(e){return"["+Error.prototype.toString.call(e)+"]"}function X8e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o-1&&(i?l=l.split(` `).map(function(u){return" "+u}).join(` `).slice(2):l=` `+l.split(` `).map(function(u){return" "+u}).join(` -`))):l=e.stylize("[Circular]","special")),Zu(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function j8e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` +`))):l=e.stylize("[Circular]","special")),Zu(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function J8e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` `)>=0&&a++,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(r===""?"":r+` `)+" "+e.join(`, - `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}lt.types=P7();function rK(e){return Array.isArray(e)}lt.isArray=rK;function O7(e){return typeof e=="boolean"}lt.isBoolean=O7;function h2(e){return e===null}lt.isNull=h2;function Z8e(e){return e==null}lt.isNullOrUndefined=Z8e;function tK(e){return typeof e=="number"}lt.isNumber=tK;function d2(e){return typeof e=="string"}lt.isString=d2;function X8e(e){return typeof e=="symbol"}lt.isSymbol=X8e;function Zu(e){return e===void 0}lt.isUndefined=Zu;function Q0(e){return gv(e)&&B7(e)==="[object RegExp]"}lt.isRegExp=Q0;lt.types.isRegExp=Q0;function gv(e){return typeof e=="object"&&e!==null}lt.isObject=gv;function v2(e){return gv(e)&&B7(e)==="[object Date]"}lt.isDate=v2;lt.types.isDate=v2;function ed(e){return gv(e)&&(B7(e)==="[object Error]"||e instanceof Error)}lt.isError=ed;lt.types.isNativeError=ed;function f2(e){return typeof e=="function"}lt.isFunction=f2;function J8e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}lt.isPrimitive=J8e;lt.isBuffer=F7();function B7(e){return Object.prototype.toString.call(e)}function z7(e){return e<10?"0"+e.toString(10):e.toString(10)}var $8e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function K8e(){var e=new Date,r=[z7(e.getHours()),z7(e.getMinutes()),z7(e.getSeconds())].join(":");return[e.getDate(),$8e[e.getMonth()],r].join(" ")}lt.log=function(){console.log("%s - %s",K8e(),lt.format.apply(lt,arguments))};lt.inherits=kl();lt._extend=function(e,r){if(!r||!gv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function aK(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var ju=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;lt.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(ju&&r[ju]){var t=r[ju];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,ju,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l{"use strict";function nK(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function rAe(e){for(var r=1;r0?this.tail.next=a:this.head=a,this.tail=a,++this.length}},{key:"unshift",value:function(t){var a={data:t,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var a=this.head,n=""+a.data;a=a.next;)n+=t+a.data;return n}},{key:"concat",value:function(t){if(this.length===0)return p2.alloc(0);for(var a=p2.allocUnsafe(t>>>0),n=this.head,i=0;n;)sAe(n.data,a,i),i+=n.data.length,n=n.next;return a}},{key:"consume",value:function(t,a){var n;return to.length?o.length:t;if(l===o.length?i+=o:i+=o.slice(0,t),t-=l,t===0){l===o.length?(++n,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(l));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var a=p2.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(a),t-=n.data.length;n=n.next;){var o=n.data,l=t>o.length?o.length:t;if(o.copy(a,a.length-t,0,l),t-=l,t===0){l===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(l));break}++i}return this.length-=i,a}},{key:lAe,value:function(t,a){return U7(this,rAe({},a,{depth:0,customInspect:!1}))}}]),e}()});var Y7=N((QOe,uK)=>{"use strict";function uAe(e,r){var t=this,a=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return a||n?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(G7,this,e)):process.nextTick(G7,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!r&&i?t._writableState?t._writableState.errorEmitted?process.nextTick(y2,t):(t._writableState.errorEmitted=!0,process.nextTick(sK,t,i)):process.nextTick(sK,t,i):r?(process.nextTick(y2,t),r(i)):process.nextTick(y2,t)}),this)}function sK(e,r){G7(e,r),y2(e)}function y2(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function fAe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function G7(e,r){e.emit("error",r)}function cAe(e,r){var t=e._readableState,a=e._writableState;t&&t.autoDestroy||a&&a.autoDestroy?e.destroy(r):e.emit("error",r)}uK.exports={destroy:uAe,undestroy:fAe,errorOrDestroy:cAe}});var Xu=N((eBe,vK)=>{"use strict";function vAe(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var cK={};function Ii(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=function(i){vAe(o,i);function o(l,s,u){return i.call(this,a(l,s,u))||this}return o}(t);n.prototype.name=t.name,n.prototype.code=e,cK[e]=n}function fK(e,r){if(Array.isArray(e)){var t=e.length;return e=e.map(function(a){return String(a)}),t>2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function hAe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function dAe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function pAe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Ii("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);Ii("ERR_INVALID_ARG_TYPE",function(e,r,t){var a;typeof r=="string"&&hAe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(dAe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(fK(r,"type"));else{var i=pAe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(fK(r,"type"))}return n+=". Received type ".concat(typeof t),n},TypeError);Ii("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ii("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Ii("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ii("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Ii("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ii("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ii("ERR_STREAM_WRITE_AFTER_END","write after end");Ii("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ii("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Ii("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");vK.exports.codes=cK});var V7=N((rBe,hK)=>{"use strict";var yAe=Xu().codes.ERR_INVALID_OPT_VALUE;function mAe(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function gAe(e,r,t,a){var n=mAe(r,a,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var i=a?t:"highWaterMark";throw new yAe(i,n)}return Math.floor(n)}return e.objectMode?16:16*1024}hK.exports={getHighWaterMark:gAe}});var pK=N((tBe,dK)=>{dK.exports=bAe;function bAe(e,r){if(W7("noDeprecation"))return e;var t=!1;function a(){if(!t){if(W7("throwDeprecation"))throw new Error(r);W7("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return a}function W7(e){try{if(!window.localStorage)return!1}catch(t){return!1}var r=window.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}});var X7=N((aBe,_K)=>{"use strict";_K.exports=ca;function mK(e){var r=this;this.next=null,this.entry=null,this.finish=function(){WAe(r,e)}}var bv;ca.WritableState=td;var xAe={deprecate:pK()},gK=Z6(),g2=lv().Buffer,_Ae=window.Uint8Array||function(){};function wAe(e){return g2.from(e)}function TAe(e){return g2.isBuffer(e)||e instanceof _Ae}var Z7=Y7(),AAe=V7(),MAe=AAe.getHighWaterMark,ws=Xu().codes,kAe=ws.ERR_INVALID_ARG_TYPE,SAe=ws.ERR_METHOD_NOT_IMPLEMENTED,qAe=ws.ERR_MULTIPLE_CALLBACK,LAe=ws.ERR_STREAM_CANNOT_PIPE,CAe=ws.ERR_STREAM_DESTROYED,EAe=ws.ERR_STREAM_NULL_VALUES,DAe=ws.ERR_STREAM_WRITE_AFTER_END,RAe=ws.ERR_UNKNOWN_ENCODING,xv=Z7.errorOrDestroy;kl()(ca,gK);function PAe(){}function td(e,r,t){bv=bv||Ju(),e=e||{},typeof t!="boolean"&&(t=r instanceof bv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=MAe(this,e,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){HAe(r,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new mK(this)}td.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(td.prototype,"buffer",{get:xAe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var m2;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(m2=Function.prototype[Symbol.hasInstance],Object.defineProperty(ca,Symbol.hasInstance,{value:function(r){return m2.call(this,r)?!0:this!==ca?!1:r&&r._writableState instanceof td}})):m2=function(r){return r instanceof this};function ca(e){bv=bv||Ju();var r=this instanceof bv;if(!r&&!m2.call(ca,this))return new ca(e);this._writableState=new td(e,this,r),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),gK.call(this)}ca.prototype.pipe=function(){xv(this,new LAe)};function FAe(e,r){var t=new DAe;xv(e,t),process.nextTick(r,t)}function NAe(e,r,t,a){var n;return t===null?n=new EAe:typeof t!="string"&&!r.objectMode&&(n=new kAe("chunk",["string","Buffer"],t)),n?(xv(e,n),process.nextTick(a,n),!1):!0}ca.prototype.write=function(e,r,t){var a=this._writableState,n=!1,i=!a.objectMode&&TAe(e);return i&&!g2.isBuffer(e)&&(e=wAe(e)),typeof r=="function"&&(t=r,r=null),i?r="buffer":r||(r=a.defaultEncoding),typeof t!="function"&&(t=PAe),a.ending?FAe(this,t):(i||NAe(this,a,e,t))&&(a.pendingcb++,n=IAe(this,a,i,e,r,t)),n};ca.prototype.cork=function(){this._writableState.corked++};ca.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&bK(this,e))};ca.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new RAe(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(ca.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function zAe(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=g2.from(r,t)),r}Object.defineProperty(ca.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function IAe(e,r,t,a,n,i){if(!t){var o=zAe(r,a,n);a!==o&&(t=!0,n="buffer",a=o)}var l=r.objectMode?1:a.length;r.length+=l;var s=r.length{"use strict";var jAe=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};TK.exports=Zo;var wK=K7(),$7=X7();kl()(Zo,wK);for(J7=jAe($7.prototype),b2=0;b2{var _2=lv(),Xo=_2.Buffer;function AK(e,r){for(var t in e)r[t]=e[t]}Xo.from&&Xo.alloc&&Xo.allocUnsafe&&Xo.allocUnsafeSlow?MK.exports=_2:(AK(_2,Q7),Q7.Buffer=$u);function $u(e,r,t){return Xo(e,r,t)}$u.prototype=Object.create(Xo.prototype);AK(Xo,$u);$u.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Xo(e,r,t)};$u.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=Xo(e);return r!==void 0?typeof t=="string"?a.fill(r,t):a.fill(r):a.fill(0),a};$u.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Xo(e)};$u.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return _2.SlowBuffer(e)}});var tT=N(qK=>{"use strict";var rT=kK().Buffer,SK=rT.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function JAe(e){if(!e)return"utf8";for(var r;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function $Ae(e){var r=JAe(e);if(typeof r!="string"&&(rT.isEncoding===SK||!SK(e)))throw new Error("Unknown encoding: "+e);return r||e}qK.StringDecoder=ad;function ad(e){this.encoding=$Ae(e);var r;switch(this.encoding){case"utf16le":this.text=aMe,this.end=nMe,r=4;break;case"utf8":this.fillLast=eMe,r=4;break;case"base64":this.text=iMe,this.end=oMe,r=3;break;default:this.write=lMe,this.end=sMe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rT.allocUnsafe(r)}ad.prototype.write=function(e){if(e.length===0)return"";var r,t;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function KAe(e,r,t){var a=r.length-1;if(a=0?(n>0&&(e.lastNeed=n-1),n):--a=0?(n>0&&(e.lastNeed=n-2),n):--a=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function QAe(e,r,t){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function eMe(e){var r=this.lastTotal-this.lastNeed,t=QAe(this,e,r);if(t!==void 0)return t;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function rMe(e,r){var t=KAe(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=t;var a=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,a),e.toString("utf8",r,a)}function tMe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function aMe(e,r){if((e.length-r)%2===0){var t=e.toString("utf16le",r);if(t){var a=t.charCodeAt(t.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function nMe(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,t)}return r}function iMe(e,r){var t=(e.length-r)%3;return t===0?e.toString("base64",r):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-t))}function oMe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function lMe(e){return e.toString(this.encoding)}function sMe(e){return e&&e.length?this.write(e):""}});var w2=N((oBe,EK)=>{"use strict";var LK=Xu().codes.ERR_STREAM_PREMATURE_CLOSE;function uMe(e){var r=!1;return function(){if(!r){r=!0;for(var t=arguments.length,a=new Array(t),n=0;n{"use strict";var T2;function Ts(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var vMe=w2(),As=Symbol("lastResolve"),Ku=Symbol("lastReject"),nd=Symbol("error"),A2=Symbol("ended"),Qu=Symbol("lastPromise"),aT=Symbol("handlePromise"),ef=Symbol("stream");function Ms(e,r){return{value:e,done:r}}function hMe(e){var r=e[As];if(r!==null){var t=e[ef].read();t!==null&&(e[Qu]=null,e[As]=null,e[Ku]=null,r(Ms(t,!1)))}}function dMe(e){process.nextTick(hMe,e)}function pMe(e,r){return function(t,a){e.then(function(){if(r[A2]){t(Ms(void 0,!0));return}r[aT](t,a)},a)}}var yMe=Object.getPrototypeOf(function(){}),mMe=Object.setPrototypeOf((T2={get stream(){return this[ef]},next:function(){var r=this,t=this[nd];if(t!==null)return Promise.reject(t);if(this[A2])return Promise.resolve(Ms(void 0,!0));if(this[ef].destroyed)return new Promise(function(o,l){process.nextTick(function(){r[nd]?l(r[nd]):o(Ms(void 0,!0))})});var a=this[Qu],n;if(a)n=new Promise(pMe(a,this));else{var i=this[ef].read();if(i!==null)return Promise.resolve(Ms(i,!1));n=new Promise(this[aT])}return this[Qu]=n,n}},Ts(T2,Symbol.asyncIterator,function(){return this}),Ts(T2,"return",function(){var r=this;return new Promise(function(t,a){r[ef].destroy(null,function(n){if(n){a(n);return}t(Ms(void 0,!0))})})}),T2),yMe),gMe=function(r){var t,a=Object.create(mMe,(t={},Ts(t,ef,{value:r,writable:!0}),Ts(t,As,{value:null,writable:!0}),Ts(t,Ku,{value:null,writable:!0}),Ts(t,nd,{value:null,writable:!0}),Ts(t,A2,{value:r._readableState.endEmitted,writable:!0}),Ts(t,aT,{value:function(i,o){var l=a[ef].read();l?(a[Qu]=null,a[As]=null,a[Ku]=null,i(Ms(l,!1))):(a[As]=i,a[Ku]=o)},writable:!0}),t));return a[Qu]=null,vMe(r,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=a[Ku];i!==null&&(a[Qu]=null,a[As]=null,a[Ku]=null,i(n)),a[nd]=n;return}var o=a[As];o!==null&&(a[Qu]=null,a[As]=null,a[Ku]=null,o(Ms(void 0,!0))),a[A2]=!0}),r.on("readable",dMe.bind(null,a)),a};DK.exports=gMe});var FK=N((sBe,PK)=>{PK.exports=function(){throw new Error("Readable.from is not available in the browser")}});var K7=N((fBe,VK)=>{"use strict";VK.exports=bt;var _v;bt.ReadableState=OK;var uBe=Qs().EventEmitter,IK=function(r,t){return r.listeners(t).length},od=Z6(),M2=lv().Buffer,bMe=window.Uint8Array||function(){};function xMe(e){return M2.from(e)}function _Me(e){return M2.isBuffer(e)||e instanceof bMe}var nT=H7(),rt;nT&&nT.debuglog?rt=nT.debuglog("stream"):rt=function(){};var wMe=lK(),cT=Y7(),TMe=V7(),AMe=TMe.getHighWaterMark,k2=Xu().codes,MMe=k2.ERR_INVALID_ARG_TYPE,kMe=k2.ERR_STREAM_PUSH_AFTER_EOF,SMe=k2.ERR_METHOD_NOT_IMPLEMENTED,qMe=k2.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,wv,iT,oT;kl()(bt,od);var id=cT.errorOrDestroy,lT=["error","close","destroy","pause","resume"];function LMe(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Array.isArray(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function OK(e,r,t){_v=_v||Ju(),e=e||{},typeof t!="boolean"&&(t=r instanceof _v),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=AMe(this,e,"readableHighWaterMark",t),this.buffer=new wMe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(wv||(wv=tT().StringDecoder),this.decoder=new wv(e.encoding),this.encoding=e.encoding)}function bt(e){if(_v=_v||Ju(),!(this instanceof bt))return new bt(e);var r=this instanceof _v;this._readableState=new OK(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),od.call(this)}Object.defineProperty(bt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});bt.prototype.destroy=cT.destroy;bt.prototype._undestroy=cT.undestroy;bt.prototype._destroy=function(e,r){r(e)};bt.prototype.push=function(e,r){var t=this._readableState,a;return t.objectMode?a=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=M2.from(e,r),r=""),a=!0),BK(this,e,r,!1,a)};bt.prototype.unshift=function(e){return BK(this,e,null,!0,!1)};function BK(e,r,t,a,n){rt("readableAddChunk",r);var i=e._readableState;if(r===null)i.reading=!1,DMe(e,i);else{var o;if(n||(o=CMe(i,r)),o)id(e,o);else if(i.objectMode||r&&r.length>0)if(typeof r!="string"&&!i.objectMode&&Object.getPrototypeOf(r)!==M2.prototype&&(r=xMe(r)),a)i.endEmitted?id(e,new qMe):sT(e,i,r,!0);else if(i.ended)id(e,new kMe);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(r=i.decoder.write(r),i.objectMode||r.length!==0?sT(e,i,r,!1):fT(e,i)):sT(e,i,r,!1)}else a||(i.reading=!1,fT(e,i))}return!i.ended&&(i.length=NK?e=NK:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function zK(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=EMe(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}bt.prototype.read=function(e){rt("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&((r.highWaterMark!==0?r.length>=r.highWaterMark:r.length>0)||r.ended))return rt("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?uT(this):S2(this),null;if(e=zK(e,r),e===0&&r.ended)return r.length===0&&uT(this),null;var a=r.needReadable;rt("need readable",a),(r.length===0||r.length-e0?n=GK(e,r):n=null,n===null?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&uT(this)),n!==null&&this.emit("data",n),n};function DMe(e,r){if(rt("onEofChunk"),!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,r.sync?S2(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,HK(e)))}}function S2(e){var r=e._readableState;rt("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(rt("emitReadable",r.flowing),r.emittedReadable=!0,process.nextTick(HK,e))}function HK(e){var r=e._readableState;rt("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(e.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,vT(e)}function fT(e,r){r.readingMore||(r.readingMore=!0,process.nextTick(RMe,e,r))}function RMe(e,r){for(;!r.reading&&!r.ended&&(r.length1&&YK(a.pipes,e)!==-1)&&!u&&(rt("false write response, pause",a.awaitDrain),a.awaitDrain++),t.pause())}function v(y){rt("onerror",y),m(),e.removeListener("error",v),IK(e,"error")===0&&id(e,y)}LMe(e,"error",v);function d(){e.removeListener("finish",p),m()}e.once("close",d);function p(){rt("onfinish"),e.removeListener("close",d),m()}e.once("finish",p);function m(){rt("unpipe"),t.unpipe(e)}return e.emit("pipe",t),a.flowing||(rt("pipe resume"),t.resume()),e};function PMe(e){return function(){var t=e._readableState;rt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&IK(e,"data")&&(t.flowing=!0,vT(e))}}bt.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var a=r.pipes,n=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var i=0;i0,a.flowing!==!1&&this.resume()):e==="readable"&&!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,rt("on readable",a.length,a.reading),a.length?S2(this):a.reading||process.nextTick(FMe,this)),t};bt.prototype.addListener=bt.prototype.on;bt.prototype.removeListener=function(e,r){var t=od.prototype.removeListener.call(this,e,r);return e==="readable"&&process.nextTick(UK,this),t};bt.prototype.removeAllListeners=function(e){var r=od.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(UK,this),r};function UK(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0,r.resumeScheduled&&!r.paused?r.flowing=!0:e.listenerCount("data")>0&&e.resume()}function FMe(e){rt("readable nexttick read 0"),e.read(0)}bt.prototype.resume=function(){var e=this._readableState;return e.flowing||(rt("resume"),e.flowing=!e.readableListening,NMe(this,e)),e.paused=!1,this};function NMe(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(zMe,e,r))}function zMe(e,r){rt("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),vT(e),r.flowing&&!r.reading&&e.read(0)}bt.prototype.pause=function(){return rt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(rt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function vT(e){var r=e._readableState;for(rt("flow",r.flowing);r.flowing&&e.read()!==null;);}bt.prototype.wrap=function(e){var r=this,t=this._readableState,a=!1;e.on("end",function(){if(rt("wrapped end"),t.decoder&&!t.ended){var o=t.decoder.end();o&&o.length&&r.push(o)}r.push(null)}),e.on("data",function(o){if(rt("wrapped data"),t.decoder&&(o=t.decoder.write(o)),!(t.objectMode&&o==null)&&!(!t.objectMode&&(!o||!o.length))){var l=r.push(o);l||(a=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=function(l){return function(){return e[l].apply(e,arguments)}}(n));for(var i=0;i=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.first():t=r.buffer.concat(r.length),r.buffer.clear()):t=r.buffer.consume(e,r.decoder),t}function uT(e){var r=e._readableState;rt("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,process.nextTick(IMe,r,e))}function IMe(e,r){if(rt("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"),e.autoDestroy)){var t=r._writableState;(!t||t.autoDestroy&&t.finished)&&r.destroy()}}typeof Symbol=="function"&&(bt.from=function(e,r){return oT===void 0&&(oT=FK()),oT(bt,e,r)});function YK(e,r){for(var t=0,a=e.length;t{"use strict";jK.exports=ql;var q2=Xu().codes,OMe=q2.ERR_METHOD_NOT_IMPLEMENTED,BMe=q2.ERR_MULTIPLE_CALLBACK,HMe=q2.ERR_TRANSFORM_ALREADY_TRANSFORMING,UMe=q2.ERR_TRANSFORM_WITH_LENGTH_0,L2=Ju();kl()(ql,L2);function GMe(e,r){var t=this._transformState;t.transforming=!1;var a=t.writecb;if(a===null)return this.emit("error",new BMe);t.writechunk=null,t.writecb=null,r!=null&&this.push(r),a(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length{"use strict";XK.exports=ld;var ZK=hT();kl()(ld,ZK);function ld(e){if(!(this instanceof ld))return new ld(e);ZK.call(this,e)}ld.prototype._transform=function(e,r,t){t(null,e)}});var rQ=N((hBe,eQ)=>{"use strict";var dT;function VMe(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var QK=Xu().codes,WMe=QK.ERR_MISSING_ARGS,jMe=QK.ERR_STREAM_DESTROYED;function $K(e){if(e)throw e}function ZMe(e){return e.setHeader&&typeof e.abort=="function"}function XMe(e,r,t,a){a=VMe(a);var n=!1;e.on("close",function(){n=!0}),dT===void 0&&(dT=w2()),dT(e,{readable:r,writable:t},function(o){if(o)return a(o);n=!0,a()});var i=!1;return function(o){if(!n&&!i){if(i=!0,ZMe(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(o||new jMe("pipe"))}}}function KK(e){e()}function JMe(e,r){return e.pipe(r)}function $Me(e){return!e.length||typeof e[e.length-1]!="function"?$K:e.pop()}function KMe(){for(var e=arguments.length,r=new Array(e),t=0;t0;return XMe(o,s,u,function(f){n||(n=f),f&&i.forEach(KK),!s&&(i.forEach(KK),a(n))})});return r.reduce(JMe)}eQ.exports=KMe});var aQ=N((dBe,tQ)=>{tQ.exports=Oi;var pT=Qs().EventEmitter,QMe=kl();QMe(Oi,pT);Oi.Readable=K7();Oi.Writable=X7();Oi.Duplex=Ju();Oi.Transform=hT();Oi.PassThrough=JK();Oi.finished=w2();Oi.pipeline=rQ();Oi.Stream=Oi;function Oi(){pT.call(this)}Oi.prototype.pipe=function(e,r){var t=this;function a(f){e.writable&&e.write(f)===!1&&t.pause&&t.pause()}t.on("data",a);function n(){t.readable&&t.resume&&t.resume()}e.on("drain",n),!e._isStdio&&(!r||r.end!==!1)&&(t.on("end",o),t.on("close",l));var i=!1;function o(){i||(i=!0,e.end())}function l(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function s(f){if(u(),pT.listenerCount(this,"error")===0)throw f}t.on("error",s),e.on("error",s);function u(){t.removeListener("data",a),e.removeListener("drain",n),t.removeListener("end",o),t.removeListener("close",l),t.removeListener("error",s),e.removeListener("error",s),t.removeListener("end",u),t.removeListener("close",u),e.removeListener("close",u)}return t.on("end",u),t.on("close",u),e.on("close",u),e.emit("pipe",t),e}});var Av=N(st=>{var nQ=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),bT(r)?t.showHidden=r:r&&st._extend(t,r),tf(t.showHidden)&&(t.showHidden=!1),tf(t.depth)&&(t.depth=2),tf(t.colors)&&(t.colors=!1),tf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=r9e),R2(t,e,t.depth)}st.inspect=ks;ks.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};ks.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function r9e(e,r){var t=ks.styles[r];return t?"\x1B["+ks.colors[t][0]+"m"+e+"\x1B["+ks.colors[t][1]+"m":e}function t9e(e,r){return e}function a9e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function R2(e,r,t){if(e.customInspect&&r&&D2(r.inspect)&&r.inspect!==st.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return N2(a)||(a=R2(e,a,t)),a}var n=n9e(e,r);if(n)return n;var i=Object.keys(r),o=a9e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),ud(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return yT(r);if(i.length===0){if(D2(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(sd(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(P2(r))return e.stylize(Date.prototype.toString.call(r),"date");if(ud(r))return yT(r)}var s="",u=!1,f=["{","}"];if(oQ(r)&&(u=!0,f=["[","]"]),D2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(sd(r)&&(s=" "+RegExp.prototype.toString.call(r)),P2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),ud(r)&&(s=" "+yT(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return sd(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=i9e(e,r,t,o,i):v=i.map(function(d){return gT(e,r,t,o,d,u)}),e.seen.pop(),o9e(v,s,f)}function n9e(e,r){if(tf(r))return e.stylize("undefined","undefined");if(N2(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(lQ(r))return e.stylize(""+r,"number");if(bT(r))return e.stylize(""+r,"boolean");if(F2(r))return e.stylize("null","null")}function yT(e){return"["+Error.prototype.toString.call(e)+"]"}function i9e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o{"use strict";function oK(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function nAe(e){for(var r=1;r0?this.tail.next=a:this.head=a,this.tail=a,++this.length}},{key:"unshift",value:function(t){var a={data:t,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var a=this.head,n=""+a.data;a=a.next;)n+=t+a.data;return n}},{key:"concat",value:function(t){if(this.length===0)return p2.alloc(0);for(var a=p2.allocUnsafe(t>>>0),n=this.head,i=0;n;)cAe(n.data,a,i),i+=n.data.length,n=n.next;return a}},{key:"consume",value:function(t,a){var n;return to.length?o.length:t;if(l===o.length?i+=o:i+=o.slice(0,t),t-=l,t===0){l===o.length?(++n,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(l));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var a=p2.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(a),t-=n.data.length;n=n.next;){var o=n.data,l=t>o.length?o.length:t;if(o.copy(a,a.length-t,0,l),t-=l,t===0){l===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(l));break}++i}return this.length-=i,a}},{key:fAe,value:function(t,a){return U7(this,nAe({},a,{depth:0,customInspect:!1}))}}]),e}()});var V7=N((rBe,cK)=>{"use strict";function vAe(e,r){var t=this,a=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return a||n?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(G7,this,e)):process.nextTick(G7,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!r&&i?t._writableState?t._writableState.errorEmitted?process.nextTick(y2,t):(t._writableState.errorEmitted=!0,process.nextTick(fK,t,i)):process.nextTick(fK,t,i):r?(process.nextTick(y2,t),r(i)):process.nextTick(y2,t)}),this)}function fK(e,r){G7(e,r),y2(e)}function y2(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function hAe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function G7(e,r){e.emit("error",r)}function dAe(e,r){var t=e._readableState,a=e._writableState;t&&t.autoDestroy||a&&a.autoDestroy?e.destroy(r):e.emit("error",r)}cK.exports={destroy:vAe,undestroy:hAe,errorOrDestroy:dAe}});var Xu=N((tBe,dK)=>{"use strict";function pAe(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var hK={};function Oi(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=function(i){pAe(o,i);function o(l,s,u){return i.call(this,a(l,s,u))||this}return o}(t);n.prototype.name=t.name,n.prototype.code=e,hK[e]=n}function vK(e,r){if(Array.isArray(e)){var t=e.length;return e=e.map(function(a){return String(a)}),t>2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function yAe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function mAe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function gAe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Oi("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);Oi("ERR_INVALID_ARG_TYPE",function(e,r,t){var a;typeof r=="string"&&yAe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(mAe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(vK(r,"type"));else{var i=gAe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(vK(r,"type"))}return n+=". Received type ".concat(typeof t),n},TypeError);Oi("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Oi("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Oi("ERR_STREAM_PREMATURE_CLOSE","Premature close");Oi("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Oi("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Oi("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Oi("ERR_STREAM_WRITE_AFTER_END","write after end");Oi("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Oi("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Oi("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");dK.exports.codes=hK});var Y7=N((aBe,pK)=>{"use strict";var bAe=Xu().codes.ERR_INVALID_OPT_VALUE;function xAe(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function _Ae(e,r,t,a){var n=xAe(r,a,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var i=a?t:"highWaterMark";throw new bAe(i,n)}return Math.floor(n)}return e.objectMode?16:16*1024}pK.exports={getHighWaterMark:_Ae}});var mK=N((nBe,yK)=>{yK.exports=wAe;function wAe(e,r){if(W7("noDeprecation"))return e;var t=!1;function a(){if(!t){if(W7("throwDeprecation"))throw new Error(r);W7("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return a}function W7(e){try{if(!window.localStorage)return!1}catch(t){return!1}var r=window.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}});var X7=N((iBe,TK)=>{"use strict";TK.exports=ca;function bK(e){var r=this;this.next=null,this.entry=null,this.finish=function(){XAe(r,e)}}var xv;ca.WritableState=ad;var TAe={deprecate:mK()},xK=Z6(),g2=sv().Buffer,AAe=window.Uint8Array||function(){};function MAe(e){return g2.from(e)}function kAe(e){return g2.isBuffer(e)||e instanceof AAe}var Z7=V7(),SAe=Y7(),qAe=SAe.getHighWaterMark,ws=Xu().codes,LAe=ws.ERR_INVALID_ARG_TYPE,CAe=ws.ERR_METHOD_NOT_IMPLEMENTED,EAe=ws.ERR_MULTIPLE_CALLBACK,DAe=ws.ERR_STREAM_CANNOT_PIPE,RAe=ws.ERR_STREAM_DESTROYED,PAe=ws.ERR_STREAM_NULL_VALUES,FAe=ws.ERR_STREAM_WRITE_AFTER_END,NAe=ws.ERR_UNKNOWN_ENCODING,_v=Z7.errorOrDestroy;kl()(ca,xK);function zAe(){}function ad(e,r,t){xv=xv||Ju(),e=e||{},typeof t!="boolean"&&(t=r instanceof xv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=qAe(this,e,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){VAe(r,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new bK(this)}ad.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(ad.prototype,"buffer",{get:TAe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var m2;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(m2=Function.prototype[Symbol.hasInstance],Object.defineProperty(ca,Symbol.hasInstance,{value:function(r){return m2.call(this,r)?!0:this!==ca?!1:r&&r._writableState instanceof ad}})):m2=function(r){return r instanceof this};function ca(e){xv=xv||Ju();var r=this instanceof xv;if(!r&&!m2.call(ca,this))return new ca(e);this._writableState=new ad(e,this,r),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),xK.call(this)}ca.prototype.pipe=function(){_v(this,new DAe)};function IAe(e,r){var t=new FAe;_v(e,t),process.nextTick(r,t)}function OAe(e,r,t,a){var n;return t===null?n=new PAe:typeof t!="string"&&!r.objectMode&&(n=new LAe("chunk",["string","Buffer"],t)),n?(_v(e,n),process.nextTick(a,n),!1):!0}ca.prototype.write=function(e,r,t){var a=this._writableState,n=!1,i=!a.objectMode&&kAe(e);return i&&!g2.isBuffer(e)&&(e=MAe(e)),typeof r=="function"&&(t=r,r=null),i?r="buffer":r||(r=a.defaultEncoding),typeof t!="function"&&(t=zAe),a.ending?IAe(this,t):(i||OAe(this,a,e,t))&&(a.pendingcb++,n=HAe(this,a,i,e,r,t)),n};ca.prototype.cork=function(){this._writableState.corked++};ca.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&_K(this,e))};ca.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new NAe(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(ca.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function BAe(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=g2.from(r,t)),r}Object.defineProperty(ca.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function HAe(e,r,t,a,n,i){if(!t){var o=BAe(r,a,n);a!==o&&(t=!0,n="buffer",a=o)}var l=r.objectMode?1:a.length;r.length+=l;var s=r.length{"use strict";var JAe=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};MK.exports=Zo;var AK=K7(),$7=X7();kl()(Zo,AK);for(J7=JAe($7.prototype),b2=0;b2{var _2=sv(),Xo=_2.Buffer;function kK(e,r){for(var t in e)r[t]=e[t]}Xo.from&&Xo.alloc&&Xo.allocUnsafe&&Xo.allocUnsafeSlow?SK.exports=_2:(kK(_2,Q7),Q7.Buffer=$u);function $u(e,r,t){return Xo(e,r,t)}$u.prototype=Object.create(Xo.prototype);kK(Xo,$u);$u.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Xo(e,r,t)};$u.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=Xo(e);return r!==void 0?typeof t=="string"?a.fill(r,t):a.fill(r):a.fill(0),a};$u.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Xo(e)};$u.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return _2.SlowBuffer(e)}});var tT=N(CK=>{"use strict";var rT=qK().Buffer,LK=rT.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function QAe(e){if(!e)return"utf8";for(var r;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function eMe(e){var r=QAe(e);if(typeof r!="string"&&(rT.isEncoding===LK||!LK(e)))throw new Error("Unknown encoding: "+e);return r||e}CK.StringDecoder=nd;function nd(e){this.encoding=eMe(e);var r;switch(this.encoding){case"utf16le":this.text=oMe,this.end=lMe,r=4;break;case"utf8":this.fillLast=aMe,r=4;break;case"base64":this.text=sMe,this.end=uMe,r=3;break;default:this.write=fMe,this.end=cMe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rT.allocUnsafe(r)}nd.prototype.write=function(e){if(e.length===0)return"";var r,t;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function rMe(e,r,t){var a=r.length-1;if(a=0?(n>0&&(e.lastNeed=n-1),n):--a=0?(n>0&&(e.lastNeed=n-2),n):--a=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function tMe(e,r,t){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function aMe(e){var r=this.lastTotal-this.lastNeed,t=tMe(this,e,r);if(t!==void 0)return t;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function nMe(e,r){var t=rMe(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=t;var a=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,a),e.toString("utf8",r,a)}function iMe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function oMe(e,r){if((e.length-r)%2===0){var t=e.toString("utf16le",r);if(t){var a=t.charCodeAt(t.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function lMe(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,t)}return r}function sMe(e,r){var t=(e.length-r)%3;return t===0?e.toString("base64",r):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-t))}function uMe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function fMe(e){return e.toString(this.encoding)}function cMe(e){return e&&e.length?this.write(e):""}});var w2=N((sBe,RK)=>{"use strict";var EK=Xu().codes.ERR_STREAM_PREMATURE_CLOSE;function vMe(e){var r=!1;return function(){if(!r){r=!0;for(var t=arguments.length,a=new Array(t),n=0;n{"use strict";var T2;function Ts(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var pMe=w2(),As=Symbol("lastResolve"),Ku=Symbol("lastReject"),id=Symbol("error"),A2=Symbol("ended"),Qu=Symbol("lastPromise"),aT=Symbol("handlePromise"),ef=Symbol("stream");function Ms(e,r){return{value:e,done:r}}function yMe(e){var r=e[As];if(r!==null){var t=e[ef].read();t!==null&&(e[Qu]=null,e[As]=null,e[Ku]=null,r(Ms(t,!1)))}}function mMe(e){process.nextTick(yMe,e)}function gMe(e,r){return function(t,a){e.then(function(){if(r[A2]){t(Ms(void 0,!0));return}r[aT](t,a)},a)}}var bMe=Object.getPrototypeOf(function(){}),xMe=Object.setPrototypeOf((T2={get stream(){return this[ef]},next:function(){var r=this,t=this[id];if(t!==null)return Promise.reject(t);if(this[A2])return Promise.resolve(Ms(void 0,!0));if(this[ef].destroyed)return new Promise(function(o,l){process.nextTick(function(){r[id]?l(r[id]):o(Ms(void 0,!0))})});var a=this[Qu],n;if(a)n=new Promise(gMe(a,this));else{var i=this[ef].read();if(i!==null)return Promise.resolve(Ms(i,!1));n=new Promise(this[aT])}return this[Qu]=n,n}},Ts(T2,Symbol.asyncIterator,function(){return this}),Ts(T2,"return",function(){var r=this;return new Promise(function(t,a){r[ef].destroy(null,function(n){if(n){a(n);return}t(Ms(void 0,!0))})})}),T2),bMe),_Me=function(r){var t,a=Object.create(xMe,(t={},Ts(t,ef,{value:r,writable:!0}),Ts(t,As,{value:null,writable:!0}),Ts(t,Ku,{value:null,writable:!0}),Ts(t,id,{value:null,writable:!0}),Ts(t,A2,{value:r._readableState.endEmitted,writable:!0}),Ts(t,aT,{value:function(i,o){var l=a[ef].read();l?(a[Qu]=null,a[As]=null,a[Ku]=null,i(Ms(l,!1))):(a[As]=i,a[Ku]=o)},writable:!0}),t));return a[Qu]=null,pMe(r,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=a[Ku];i!==null&&(a[Qu]=null,a[As]=null,a[Ku]=null,i(n)),a[id]=n;return}var o=a[As];o!==null&&(a[Qu]=null,a[As]=null,a[Ku]=null,o(Ms(void 0,!0))),a[A2]=!0}),r.on("readable",mMe.bind(null,a)),a};PK.exports=_Me});var zK=N((fBe,NK)=>{NK.exports=function(){throw new Error("Readable.from is not available in the browser")}});var K7=N((vBe,jK)=>{"use strict";jK.exports=bt;var wv;bt.ReadableState=HK;var cBe=Qs().EventEmitter,BK=function(r,t){return r.listeners(t).length},ld=Z6(),M2=sv().Buffer,wMe=window.Uint8Array||function(){};function TMe(e){return M2.from(e)}function AMe(e){return M2.isBuffer(e)||e instanceof wMe}var nT=H7(),rt;nT&&nT.debuglog?rt=nT.debuglog("stream"):rt=function(){};var MMe=uK(),cT=V7(),kMe=Y7(),SMe=kMe.getHighWaterMark,k2=Xu().codes,qMe=k2.ERR_INVALID_ARG_TYPE,LMe=k2.ERR_STREAM_PUSH_AFTER_EOF,CMe=k2.ERR_METHOD_NOT_IMPLEMENTED,EMe=k2.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Tv,iT,oT;kl()(bt,ld);var od=cT.errorOrDestroy,lT=["error","close","destroy","pause","resume"];function DMe(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Array.isArray(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function HK(e,r,t){wv=wv||Ju(),e=e||{},typeof t!="boolean"&&(t=r instanceof wv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=SMe(this,e,"readableHighWaterMark",t),this.buffer=new MMe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Tv||(Tv=tT().StringDecoder),this.decoder=new Tv(e.encoding),this.encoding=e.encoding)}function bt(e){if(wv=wv||Ju(),!(this instanceof bt))return new bt(e);var r=this instanceof wv;this._readableState=new HK(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),ld.call(this)}Object.defineProperty(bt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});bt.prototype.destroy=cT.destroy;bt.prototype._undestroy=cT.undestroy;bt.prototype._destroy=function(e,r){r(e)};bt.prototype.push=function(e,r){var t=this._readableState,a;return t.objectMode?a=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=M2.from(e,r),r=""),a=!0),UK(this,e,r,!1,a)};bt.prototype.unshift=function(e){return UK(this,e,null,!0,!1)};function UK(e,r,t,a,n){rt("readableAddChunk",r);var i=e._readableState;if(r===null)i.reading=!1,FMe(e,i);else{var o;if(n||(o=RMe(i,r)),o)od(e,o);else if(i.objectMode||r&&r.length>0)if(typeof r!="string"&&!i.objectMode&&Object.getPrototypeOf(r)!==M2.prototype&&(r=TMe(r)),a)i.endEmitted?od(e,new EMe):sT(e,i,r,!0);else if(i.ended)od(e,new LMe);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(r=i.decoder.write(r),i.objectMode||r.length!==0?sT(e,i,r,!1):fT(e,i)):sT(e,i,r,!1)}else a||(i.reading=!1,fT(e,i))}return!i.ended&&(i.length=IK?e=IK:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function OK(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=PMe(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}bt.prototype.read=function(e){rt("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&((r.highWaterMark!==0?r.length>=r.highWaterMark:r.length>0)||r.ended))return rt("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?uT(this):S2(this),null;if(e=OK(e,r),e===0&&r.ended)return r.length===0&&uT(this),null;var a=r.needReadable;rt("need readable",a),(r.length===0||r.length-e0?n=YK(e,r):n=null,n===null?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&uT(this)),n!==null&&this.emit("data",n),n};function FMe(e,r){if(rt("onEofChunk"),!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,r.sync?S2(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,GK(e)))}}function S2(e){var r=e._readableState;rt("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(rt("emitReadable",r.flowing),r.emittedReadable=!0,process.nextTick(GK,e))}function GK(e){var r=e._readableState;rt("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(e.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,vT(e)}function fT(e,r){r.readingMore||(r.readingMore=!0,process.nextTick(NMe,e,r))}function NMe(e,r){for(;!r.reading&&!r.ended&&(r.length1&&WK(a.pipes,e)!==-1)&&!u&&(rt("false write response, pause",a.awaitDrain),a.awaitDrain++),t.pause())}function v(m){rt("onerror",m),y(),e.removeListener("error",v),BK(e,"error")===0&&od(e,m)}DMe(e,"error",v);function d(){e.removeListener("finish",p),y()}e.once("close",d);function p(){rt("onfinish"),e.removeListener("close",d),y()}e.once("finish",p);function y(){rt("unpipe"),t.unpipe(e)}return e.emit("pipe",t),a.flowing||(rt("pipe resume"),t.resume()),e};function zMe(e){return function(){var t=e._readableState;rt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&BK(e,"data")&&(t.flowing=!0,vT(e))}}bt.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var a=r.pipes,n=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var i=0;i0,a.flowing!==!1&&this.resume()):e==="readable"&&!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,rt("on readable",a.length,a.reading),a.length?S2(this):a.reading||process.nextTick(IMe,this)),t};bt.prototype.addListener=bt.prototype.on;bt.prototype.removeListener=function(e,r){var t=ld.prototype.removeListener.call(this,e,r);return e==="readable"&&process.nextTick(VK,this),t};bt.prototype.removeAllListeners=function(e){var r=ld.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(VK,this),r};function VK(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0,r.resumeScheduled&&!r.paused?r.flowing=!0:e.listenerCount("data")>0&&e.resume()}function IMe(e){rt("readable nexttick read 0"),e.read(0)}bt.prototype.resume=function(){var e=this._readableState;return e.flowing||(rt("resume"),e.flowing=!e.readableListening,OMe(this,e)),e.paused=!1,this};function OMe(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(BMe,e,r))}function BMe(e,r){rt("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),vT(e),r.flowing&&!r.reading&&e.read(0)}bt.prototype.pause=function(){return rt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(rt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function vT(e){var r=e._readableState;for(rt("flow",r.flowing);r.flowing&&e.read()!==null;);}bt.prototype.wrap=function(e){var r=this,t=this._readableState,a=!1;e.on("end",function(){if(rt("wrapped end"),t.decoder&&!t.ended){var o=t.decoder.end();o&&o.length&&r.push(o)}r.push(null)}),e.on("data",function(o){if(rt("wrapped data"),t.decoder&&(o=t.decoder.write(o)),!(t.objectMode&&o==null)&&!(!t.objectMode&&(!o||!o.length))){var l=r.push(o);l||(a=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=function(l){return function(){return e[l].apply(e,arguments)}}(n));for(var i=0;i=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.first():t=r.buffer.concat(r.length),r.buffer.clear()):t=r.buffer.consume(e,r.decoder),t}function uT(e){var r=e._readableState;rt("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,process.nextTick(HMe,r,e))}function HMe(e,r){if(rt("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"),e.autoDestroy)){var t=r._writableState;(!t||t.autoDestroy&&t.finished)&&r.destroy()}}typeof Symbol=="function"&&(bt.from=function(e,r){return oT===void 0&&(oT=zK()),oT(bt,e,r)});function WK(e,r){for(var t=0,a=e.length;t{"use strict";XK.exports=ql;var q2=Xu().codes,UMe=q2.ERR_METHOD_NOT_IMPLEMENTED,GMe=q2.ERR_MULTIPLE_CALLBACK,VMe=q2.ERR_TRANSFORM_ALREADY_TRANSFORMING,YMe=q2.ERR_TRANSFORM_WITH_LENGTH_0,L2=Ju();kl()(ql,L2);function WMe(e,r){var t=this._transformState;t.transforming=!1;var a=t.writecb;if(a===null)return this.emit("error",new GMe);t.writechunk=null,t.writecb=null,r!=null&&this.push(r),a(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length{"use strict";$K.exports=sd;var JK=hT();kl()(sd,JK);function sd(e){if(!(this instanceof sd))return new sd(e);JK.call(this,e)}sd.prototype._transform=function(e,r,t){t(null,e)}});var aQ=N((pBe,tQ)=>{"use strict";var dT;function ZMe(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var rQ=Xu().codes,XMe=rQ.ERR_MISSING_ARGS,JMe=rQ.ERR_STREAM_DESTROYED;function QK(e){if(e)throw e}function $Me(e){return e.setHeader&&typeof e.abort=="function"}function KMe(e,r,t,a){a=ZMe(a);var n=!1;e.on("close",function(){n=!0}),dT===void 0&&(dT=w2()),dT(e,{readable:r,writable:t},function(o){if(o)return a(o);n=!0,a()});var i=!1;return function(o){if(!n&&!i){if(i=!0,$Me(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(o||new JMe("pipe"))}}}function eQ(e){e()}function QMe(e,r){return e.pipe(r)}function e9e(e){return!e.length||typeof e[e.length-1]!="function"?QK:e.pop()}function r9e(){for(var e=arguments.length,r=new Array(e),t=0;t0;return KMe(o,s,u,function(f){n||(n=f),f&&i.forEach(eQ),!s&&(i.forEach(eQ),a(n))})});return r.reduce(QMe)}tQ.exports=r9e});var iQ=N((yBe,nQ)=>{nQ.exports=Bi;var pT=Qs().EventEmitter,t9e=kl();t9e(Bi,pT);Bi.Readable=K7();Bi.Writable=X7();Bi.Duplex=Ju();Bi.Transform=hT();Bi.PassThrough=KK();Bi.finished=w2();Bi.pipeline=aQ();Bi.Stream=Bi;function Bi(){pT.call(this)}Bi.prototype.pipe=function(e,r){var t=this;function a(f){e.writable&&e.write(f)===!1&&t.pause&&t.pause()}t.on("data",a);function n(){t.readable&&t.resume&&t.resume()}e.on("drain",n),!e._isStdio&&(!r||r.end!==!1)&&(t.on("end",o),t.on("close",l));var i=!1;function o(){i||(i=!0,e.end())}function l(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function s(f){if(u(),pT.listenerCount(this,"error")===0)throw f}t.on("error",s),e.on("error",s);function u(){t.removeListener("data",a),e.removeListener("drain",n),t.removeListener("end",o),t.removeListener("close",l),t.removeListener("error",s),e.removeListener("error",s),t.removeListener("end",u),t.removeListener("close",u),e.removeListener("close",u)}return t.on("end",u),t.on("close",u),e.on("close",u),e.emit("pipe",t),e}});var Mv=N(st=>{var oQ=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),bT(r)?t.showHidden=r:r&&st._extend(t,r),tf(t.showHidden)&&(t.showHidden=!1),tf(t.depth)&&(t.depth=2),tf(t.colors)&&(t.colors=!1),tf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=n9e),R2(t,e,t.depth)}st.inspect=ks;ks.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};ks.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function n9e(e,r){var t=ks.styles[r];return t?"\x1B["+ks.colors[t][0]+"m"+e+"\x1B["+ks.colors[t][1]+"m":e}function i9e(e,r){return e}function o9e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function R2(e,r,t){if(e.customInspect&&r&&D2(r.inspect)&&r.inspect!==st.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return N2(a)||(a=R2(e,a,t)),a}var n=l9e(e,r);if(n)return n;var i=Object.keys(r),o=o9e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),fd(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return yT(r);if(i.length===0){if(D2(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(ud(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(P2(r))return e.stylize(Date.prototype.toString.call(r),"date");if(fd(r))return yT(r)}var s="",u=!1,f=["{","}"];if(sQ(r)&&(u=!0,f=["[","]"]),D2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(ud(r)&&(s=" "+RegExp.prototype.toString.call(r)),P2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),fd(r)&&(s=" "+yT(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return ud(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=s9e(e,r,t,o,i):v=i.map(function(d){return gT(e,r,t,o,d,u)}),e.seen.pop(),u9e(v,s,f)}function l9e(e,r){if(tf(r))return e.stylize("undefined","undefined");if(N2(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(uQ(r))return e.stylize(""+r,"number");if(bT(r))return e.stylize(""+r,"boolean");if(F2(r))return e.stylize("null","null")}function yT(e){return"["+Error.prototype.toString.call(e)+"]"}function s9e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o-1&&(i?l=l.split(` `).map(function(u){return" "+u}).join(` `).slice(2):l=` `+l.split(` `).map(function(u){return" "+u}).join(` -`))):l=e.stylize("[Circular]","special")),tf(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function o9e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` +`))):l=e.stylize("[Circular]","special")),tf(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function u9e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` `)>=0&&a++,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(r===""?"":r+` `)+" "+e.join(`, - `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}st.types=P7();function oQ(e){return Array.isArray(e)}st.isArray=oQ;function bT(e){return typeof e=="boolean"}st.isBoolean=bT;function F2(e){return e===null}st.isNull=F2;function l9e(e){return e==null}st.isNullOrUndefined=l9e;function lQ(e){return typeof e=="number"}st.isNumber=lQ;function N2(e){return typeof e=="string"}st.isString=N2;function s9e(e){return typeof e=="symbol"}st.isSymbol=s9e;function tf(e){return e===void 0}st.isUndefined=tf;function sd(e){return Tv(e)&&xT(e)==="[object RegExp]"}st.isRegExp=sd;st.types.isRegExp=sd;function Tv(e){return typeof e=="object"&&e!==null}st.isObject=Tv;function P2(e){return Tv(e)&&xT(e)==="[object Date]"}st.isDate=P2;st.types.isDate=P2;function ud(e){return Tv(e)&&(xT(e)==="[object Error]"||e instanceof Error)}st.isError=ud;st.types.isNativeError=ud;function D2(e){return typeof e=="function"}st.isFunction=D2;function u9e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}st.isPrimitive=u9e;st.isBuffer=F7();function xT(e){return Object.prototype.toString.call(e)}function mT(e){return e<10?"0"+e.toString(10):e.toString(10)}var f9e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function c9e(){var e=new Date,r=[mT(e.getHours()),mT(e.getMinutes()),mT(e.getSeconds())].join(":");return[e.getDate(),f9e[e.getMonth()],r].join(" ")}st.log=function(){console.log("%s - %s",c9e(),st.format.apply(st,arguments))};st.inherits=kl();st._extend=function(e,r){if(!r||!Tv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function sQ(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var rf=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;st.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(rf&&r[rf]){var t=r[rf];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,rf,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l{"use strict";function Ss(e){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ss(e)}function uQ(e,r){for(var t=0;t2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function T9e(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function A9e(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function M9e(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}fd("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);fd("ERR_INVALID_ARG_TYPE",function(e,r,t){Mv===void 0&&(Mv=I2()),Mv(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&T9e(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(A9e(e," argument"))n="The ".concat(e," ").concat(a," ").concat(fQ(r,"type"));else{var i=M9e(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(fQ(r,"type"))}return n+=". Received type ".concat(Ss(t)),n},TypeError);fd("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";_T===void 0&&(_T=Av());var a=_T.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);fd("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(Ss(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);fd("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);vQ.exports.codes=cQ});var wQ=N((mBe,_Q)=>{"use strict";function hQ(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function dQ(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function N9e(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var go="",cd="",vd="",Qa="",af={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},z9e=10;function mQ(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function hd(e){return kT(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function I9e(e,r,t){var a="",n="",i=0,o="",l=!1,s=hd(e),u=s.split(` -`),f=hd(r).split(` -`),c=0,v="";if(t==="strictEqual"&&Gn(e)==="object"&&Gn(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),u.length===1&&f.length===1&&u[0]!==f[0]){var d=u[0].length+f[0].length;if(d<=z9e){if((Gn(e)!=="object"||e===null)&&(Gn(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(af[t],` + `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}st.types=P7();function sQ(e){return Array.isArray(e)}st.isArray=sQ;function bT(e){return typeof e=="boolean"}st.isBoolean=bT;function F2(e){return e===null}st.isNull=F2;function f9e(e){return e==null}st.isNullOrUndefined=f9e;function uQ(e){return typeof e=="number"}st.isNumber=uQ;function N2(e){return typeof e=="string"}st.isString=N2;function c9e(e){return typeof e=="symbol"}st.isSymbol=c9e;function tf(e){return e===void 0}st.isUndefined=tf;function ud(e){return Av(e)&&xT(e)==="[object RegExp]"}st.isRegExp=ud;st.types.isRegExp=ud;function Av(e){return typeof e=="object"&&e!==null}st.isObject=Av;function P2(e){return Av(e)&&xT(e)==="[object Date]"}st.isDate=P2;st.types.isDate=P2;function fd(e){return Av(e)&&(xT(e)==="[object Error]"||e instanceof Error)}st.isError=fd;st.types.isNativeError=fd;function D2(e){return typeof e=="function"}st.isFunction=D2;function v9e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}st.isPrimitive=v9e;st.isBuffer=F7();function xT(e){return Object.prototype.toString.call(e)}function mT(e){return e<10?"0"+e.toString(10):e.toString(10)}var h9e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function d9e(){var e=new Date,r=[mT(e.getHours()),mT(e.getMinutes()),mT(e.getSeconds())].join(":");return[e.getDate(),h9e[e.getMonth()],r].join(" ")}st.log=function(){console.log("%s - %s",d9e(),st.format.apply(st,arguments))};st.inherits=kl();st._extend=function(e,r){if(!r||!Av(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function fQ(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var rf=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;st.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(rf&&r[rf]){var t=r[rf];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,rf,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l{"use strict";function Ss(e){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ss(e)}function cQ(e,r){for(var t=0;t2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function k9e(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function S9e(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function q9e(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}cd("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);cd("ERR_INVALID_ARG_TYPE",function(e,r,t){kv===void 0&&(kv=I2()),kv(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&k9e(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(S9e(e," argument"))n="The ".concat(e," ").concat(a," ").concat(vQ(r,"type"));else{var i=q9e(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(vQ(r,"type"))}return n+=". Received type ".concat(Ss(t)),n},TypeError);cd("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";_T===void 0&&(_T=Mv());var a=_T.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);cd("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(Ss(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);cd("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);dQ.exports.codes=hQ});var AQ=N((bBe,TQ)=>{"use strict";function pQ(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function yQ(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function O9e(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var go="",vd="",hd="",Qa="",af={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},B9e=10;function bQ(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function dd(e){return kT(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function H9e(e,r,t){var a="",n="",i=0,o="",l=!1,s=dd(e),u=s.split(` +`),f=dd(r).split(` +`),c=0,v="";if(t==="strictEqual"&&Gn(e)==="object"&&Gn(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),u.length===1&&f.length===1&&u[0]!==f[0]){var d=u[0].length+f[0].length;if(d<=B9e){if((Gn(e)!=="object"||e===null)&&(Gn(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(af[t],` `)+"".concat(u[0]," !== ").concat(f[0],` `)}else if(t!=="strictEqualObject"){var p=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(v=` - `.concat(N9e(" ",c),"^"),c=0)}}}for(var m=u[u.length-1],y=f[f.length-1];m===y&&(c++<2?o=` - `.concat(m).concat(o):a=m,u.pop(),f.pop(),!(u.length===0||f.length===0));)m=u[u.length-1],y=f[f.length-1];var x=Math.max(u.length,f.length);if(x===0){var w=s.split(` + `.concat(O9e(" ",c),"^"),c=0)}}}for(var y=u[u.length-1],m=f[f.length-1];y===m&&(c++<2?o=` + `.concat(y).concat(o):a=y,u.pop(),f.pop(),!(u.length===0||f.length===0));)y=u[u.length-1],m=f[f.length-1];var x=Math.max(u.length,f.length);if(x===0){var w=s.split(` `);if(w.length>30)for(w[26]="".concat(go,"...").concat(Qa);w.length>27;)w.pop();return"".concat(af.notIdentical,` `).concat(w.join(` @@ -52,50 +52,50 @@ `)}c>3&&(o=` `.concat(go,"...").concat(Qa).concat(o),l=!0),a!==""&&(o=` `.concat(a).concat(o),a="");var _=0,b=af[t]+` -`.concat(cd,"+ actual").concat(Qa," ").concat(vd,"- expected").concat(Qa),T=" ".concat(go,"...").concat(Qa," Lines skipped");for(c=0;c1&&c>2&&(k>4?(n+=` +`.concat(vd,"+ actual").concat(Qa," ").concat(hd,"- expected").concat(Qa),T=" ".concat(go,"...").concat(Qa," Lines skipped");for(c=0;c1&&c>2&&(k>4?(n+=` `.concat(go,"...").concat(Qa),l=!0):k>3&&(n+=` `.concat(f[c-2]),_++),n+=` `.concat(f[c-1]),_++),i=c,a+=` -`.concat(vd,"-").concat(Qa," ").concat(f[c]),_++;else if(f.length1&&c>2&&(k>4?(n+=` +`.concat(hd,"-").concat(Qa," ").concat(f[c]),_++;else if(f.length1&&c>2&&(k>4?(n+=` `.concat(go,"...").concat(Qa),l=!0):k>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),i=c,n+=` -`.concat(cd,"+").concat(Qa," ").concat(u[c]),_++;else{var M=f[c],S=u[c],E=S!==M&&(!yQ(S,",")||S.slice(0,-1)!==M);E&&yQ(M,",")&&M.slice(0,-1)===S&&(E=!1,S+=","),E?(k>1&&c>2&&(k>4?(n+=` +`.concat(vd,"+").concat(Qa," ").concat(u[c]),_++;else{var M=f[c],q=u[c],E=q!==M&&(!gQ(q,",")||q.slice(0,-1)!==M);E&&gQ(M,",")&&M.slice(0,-1)===q&&(E=!1,q+=","),E?(k>1&&c>2&&(k>4?(n+=` `.concat(go,"...").concat(Qa),l=!0):k>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),i=c,n+=` -`.concat(cd,"+").concat(Qa," ").concat(S),a+=` -`.concat(vd,"-").concat(Qa," ").concat(M),_+=2):(n+=a,a="",(k===1||c===0)&&(n+=` - `.concat(S),_++))}if(_>20&&c20&&c30)for(d[26]="".concat(go,"...").concat(Qa);d.length>27;)d.pop();d.length===1?i=t.call(this,"".concat(v," ").concat(d[0])):i=t.call(this,"".concat(v,` `).concat(d.join(` `),` -`))}else{var p=hd(u),m="",y=af[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(af[l],` +`))}else{var p=dd(u),y="",m=af[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(af[l],` -`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(m="".concat(hd(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),m.length>512&&(m="".concat(m.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(y,` +`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(y="".concat(dd(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(m,` `).concat(p,` should equal -`):m=" ".concat(l," ").concat(m)),i=t.call(this,"".concat(p).concat(m))}return Error.stackTraceLimit=c,i.generatedMessage=!o,Object.defineProperty(AT(i),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),i.code="ERR_ASSERTION",i.actual=u,i.expected=f,i.operator=l,Error.captureStackTrace&&Error.captureStackTrace(AT(i),s),i.stack,i.name="AssertionError",bQ(i)}return q9e(a,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:r,value:function(i,o){return kT(this,dQ(dQ({},o),{},{customInspect:!1,depth:0}))}}]),a}(MT(Error),kT.custom);_Q.exports=O9e});var ST=N((gBe,AQ)=>{"use strict";var TQ=Object.prototype.toString;AQ.exports=function(r){var t=TQ.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&TQ.call(r.callee)==="[object Function]"),a}});var RQ=N((bBe,DQ)=>{"use strict";var EQ;Object.keys||(yd=Object.prototype.hasOwnProperty,qT=Object.prototype.toString,MQ=ST(),LT=Object.prototype.propertyIsEnumerable,kQ=!LT.call({toString:null},"toString"),SQ=LT.call(function(){},"prototype"),md=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],B2=function(e){var r=e.constructor;return r&&r.prototype===e},qQ={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},LQ=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!qQ["$"+e]&&yd.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{B2(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),CQ=function(e){if(typeof window=="undefined"||!LQ)return B2(e);try{return B2(e)}catch(r){return!1}},EQ=function(r){var t=r!==null&&typeof r=="object",a=qT.call(r)==="[object Function]",n=MQ(r),i=t&&qT.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=SQ&&a;if(i&&r.length>0&&!yd.call(r,0))for(var s=0;s0)for(var u=0;u{"use strict";var B9e=Array.prototype.slice,H9e=ST(),PQ=Object.keys,H2=PQ?function(r){return PQ(r)}:RQ(),FQ=Object.keys;H2.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(a){return H9e(a)?FQ(B9e.call(a)):FQ(a)})}else Object.keys=H2;return Object.keys||H2};NQ.exports=H2});var UQ=N((_Be,HQ)=>{"use strict";var U9e=CT(),OQ=Hg()(),BQ=pv(),zQ=Object,G9e=BQ("Array.prototype.push"),IQ=BQ("Object.prototype.propertyIsEnumerable"),Y9e=OQ?Object.getOwnPropertySymbols:null;HQ.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=zQ(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var ET=UQ(),V9e=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var VQ=function(e){return e!==e};WQ.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||VQ(r)&&VQ(t))}});var U2=N((ABe,jQ)=>{"use strict";var j9e=DT();jQ.exports=function(){return typeof Object.is=="function"?Object.is:j9e}});var gd=N((MBe,$Q)=>{"use strict";var Z9e=CT(),X9e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",J9e=Object.prototype.toString,$9e=Array.prototype.concat,ZQ=Object.defineProperty,K9e=function(e){return typeof e=="function"&&J9e.call(e)==="[object Function]"},Q9e=d7()(),XQ=ZQ&&Q9e,eke=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!K9e(a)||!a())return}XQ?ZQ(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},JQ=function(e,r){var t=arguments.length>2?arguments[2]:{},a=Z9e(r);X9e&&(a=$9e.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var rke=U2(),tke=gd();KQ.exports=function(){var r=rke();return tke(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var aee=N((SBe,tee)=>{"use strict";var ake=gd(),nke=J0(),ike=DT(),eee=U2(),oke=QQ(),ree=nke(eee(),Object);ake(ree,{getPolyfill:eee,implementation:ike,shim:oke});tee.exports=ree});var RT=N((qBe,nee)=>{"use strict";nee.exports=function(r){return r!==r}});var PT=N((LBe,iee)=>{"use strict";var lke=RT();iee.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:lke}});var lee=N((CBe,oee)=>{"use strict";var ske=gd(),uke=PT();oee.exports=function(){var r=uke();return ske(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var cee=N((EBe,fee)=>{"use strict";var fke=J0(),cke=gd(),vke=RT(),see=PT(),hke=lee(),uee=fke(see(),Number);cke(uee,{getPolyfill:see,implementation:vke,shim:hke});fee.exports=uee});var Eee=N((DBe,Cee)=>{"use strict";function vee(e,r){return mke(e)||yke(e,r)||pke(e,r)||dke()}function dke(){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 pke(e,r){if(e){if(typeof e=="string")return hee(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return hee(e,r)}}function hee(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t10)return!0;for(var r=0;r57)return!0}return e.length===10&&e>=Math.pow(2,32)}function V2(e){return Object.keys(e).filter(kke).concat(j2(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function kee(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n{"use strict";function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bo(e)}function Dee(e,r){for(var t=0;t1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n{"use strict";var MQ=Object.prototype.toString;kQ.exports=function(r){var t=MQ.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&MQ.call(r.callee)==="[object Function]"),a}});var FQ=N((_Be,PQ)=>{"use strict";var RQ;Object.keys||(md=Object.prototype.hasOwnProperty,qT=Object.prototype.toString,SQ=ST(),LT=Object.prototype.propertyIsEnumerable,qQ=!LT.call({toString:null},"toString"),LQ=LT.call(function(){},"prototype"),gd=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],B2=function(e){var r=e.constructor;return r&&r.prototype===e},CQ={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},EQ=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!CQ["$"+e]&&md.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{B2(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),DQ=function(e){if(typeof window=="undefined"||!EQ)return B2(e);try{return B2(e)}catch(r){return!1}},RQ=function(r){var t=r!==null&&typeof r=="object",a=qT.call(r)==="[object Function]",n=SQ(r),i=t&&qT.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=LQ&&a;if(i&&r.length>0&&!md.call(r,0))for(var s=0;s0)for(var u=0;u{"use strict";var G9e=Array.prototype.slice,V9e=ST(),NQ=Object.keys,H2=NQ?function(r){return NQ(r)}:FQ(),zQ=Object.keys;H2.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(a){return V9e(a)?zQ(G9e.call(a)):zQ(a)})}else Object.keys=H2;return Object.keys||H2};IQ.exports=H2});var VQ=N((TBe,GQ)=>{"use strict";var Y9e=CT(),HQ=Hg()(),UQ=yv(),OQ=Object,W9e=UQ("Array.prototype.push"),BQ=UQ("Object.prototype.propertyIsEnumerable"),j9e=HQ?Object.getOwnPropertySymbols:null;GQ.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=OQ(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var ET=VQ(),Z9e=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var jQ=function(e){return e!==e};ZQ.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||jQ(r)&&jQ(t))}});var U2=N((kBe,XQ)=>{"use strict";var J9e=DT();XQ.exports=function(){return typeof Object.is=="function"?Object.is:J9e}});var bd=N((SBe,QQ)=>{"use strict";var $9e=CT(),K9e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Q9e=Object.prototype.toString,eke=Array.prototype.concat,JQ=Object.defineProperty,rke=function(e){return typeof e=="function"&&Q9e.call(e)==="[object Function]"},tke=d7()(),$Q=JQ&&tke,ake=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!rke(a)||!a())return}$Q?JQ(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},KQ=function(e,r){var t=arguments.length>2?arguments[2]:{},a=$9e(r);K9e&&(a=eke.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var nke=U2(),ike=bd();eee.exports=function(){var r=nke();return ike(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var iee=N((LBe,nee)=>{"use strict";var oke=bd(),lke=$0(),ske=DT(),tee=U2(),uke=ree(),aee=lke(tee(),Object);oke(aee,{getPolyfill:tee,implementation:ske,shim:uke});nee.exports=aee});var RT=N((CBe,oee)=>{"use strict";oee.exports=function(r){return r!==r}});var PT=N((EBe,lee)=>{"use strict";var fke=RT();lee.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:fke}});var uee=N((DBe,see)=>{"use strict";var cke=bd(),vke=PT();see.exports=function(){var r=vke();return cke(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var hee=N((RBe,vee)=>{"use strict";var hke=$0(),dke=bd(),pke=RT(),fee=PT(),yke=uee(),cee=hke(fee(),Number);dke(cee,{getPolyfill:fee,implementation:pke,shim:yke});vee.exports=cee});var Ree=N((PBe,Dee)=>{"use strict";function dee(e,r){return xke(e)||bke(e,r)||gke(e,r)||mke()}function mke(){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 gke(e,r){if(e){if(typeof e=="string")return pee(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return pee(e,r)}}function pee(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t10)return!0;for(var r=0;r57)return!0}return e.length===10&&e>=Math.pow(2,32)}function Y2(e){return Object.keys(e).filter(Lke).concat(j2(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function qee(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n{"use strict";function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bo(e)}function Pee(e,r){for(var t=0;t1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n{var Td=1e3,Ad=Td*60,Md=Ad*60,kd=Md*24,Kke=kd*365.25;Jee.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return Qke(e);if(t==="number"&&isNaN(e)===!1)return r.long?rSe(e):eSe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Qke(e){if(e=String(e),!(e.length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var t=parseFloat(r[1]),a=(r[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return t*Kke;case"days":case"day":case"d":return t*kd;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Md;case"minutes":case"minute":case"mins":case"min":case"m":return t*Ad;case"seconds":case"second":case"secs":case"sec":case"s":return t*Td;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function eSe(e){return e>=kd?Math.round(e/kd)+"d":e>=Md?Math.round(e/Md)+"h":e>=Ad?Math.round(e/Ad)+"m":e>=Td?Math.round(e/Td)+"s":e+"ms"}function rSe(e){return r3(e,kd,"day")||r3(e,Md,"hour")||r3(e,Ad,"minute")||r3(e,Td,"second")||e+" ms"}function r3(e,r,t){if(!(e{Lt=Kee.exports=HT.debug=HT.default=HT;Lt.coerce=oSe;Lt.disable=nSe;Lt.enable=aSe;Lt.enabled=iSe;Lt.humanize=$ee();Lt.names=[];Lt.skips=[];Lt.formatters={};var BT;function tSe(e){var r=0,t;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return Lt.colors[Math.abs(r)%Lt.colors.length]}function HT(e){function r(){if(r.enabled){var t=r,a=+new Date,n=a-(BT||a);t.diff=n,t.prev=BT,t.curr=a,BT=a;for(var i=new Array(arguments.length),o=0;o{_n=rre.exports=Qee();_n.log=uSe;_n.formatArgs=sSe;_n.save=fSe;_n.load=ere;_n.useColors=lSe;_n.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:cSe();_n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function lSe(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}_n.formatters.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}};function sSe(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+_n.humanize(this.diff),!!r){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var a=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(i){i!=="%%"&&(a++,i==="%c"&&(n=a))}),e.splice(n,0,t)}}function uSe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function fSe(e){try{e==null?_n.storage.removeItem("debug"):_n.storage.debug=e}catch(r){}}function ere(){var e;try{e=_n.storage.debug}catch(r){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}_n.enable(ere());function cSe(){try{return window.localStorage}catch(e){}}});var fre=N((FBe,ure)=>{var Sv=I2(),Es=tre()("stream-parser");ure.exports=hSe;var nre=-1,t3=0,vSe=1,ire=2;function hSe(e){var r=e&&typeof e._transform=="function",t=e&&typeof e._write=="function";if(!r&&!t)throw new Error("must pass a Writable or Transform stream in");Es("extending Parser into stream"),e._bytes=dSe,e._skipBytes=pSe,r&&(e._passthrough=ySe),r?e._transform=gSe:e._write=mSe}function Sd(e){Es("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=nre,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function dSe(e,r){Sv(!this._parserCallback,'there is already a "callback" set!'),Sv(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||Sd(this),Es("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=t3}function pSe(e,r){Sv(!this._parserCallback,'there is already a "callback" set!'),Sv(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||Sd(this),Es("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=vSe}function ySe(e,r){Sv(!this._parserCallback,'There is already a "callback" set!'),Sv(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||Sd(this),Es("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=ire}function mSe(e,r,t){this._parserInit||Sd(this),Es("write(%o bytes)",e.length),typeof r=="function"&&(t=r),lre(this,e,null,t)}function gSe(e,r,t){this._parserInit||Sd(this),Es("transform(%o bytes)",e.length),typeof r!="function"&&(r=this._parserOutput),lre(this,e,r,t)}function ore(e,r,t,a){return e._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return are(e,r,t,a)}:function(){var n=r.slice(0,e._parserBytesLeft);return are(e,n,t,function(i){if(i)return a(i);if(r.length>n.length)return function(){return ore(e,r.slice(n.length),t,a)}})}}function are(e,r,t,a){if(e._parserBytesLeft-=r.length,Es("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===t3?(e._parserBuffers.push(r),e._parserBuffered+=r.length):e._parserState===ire&&t(r),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===t3&&e._parserBuffers.length>1&&(r=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==t3&&(r=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=nre,e._parserBuffers.splice(0),n){var i=[];r&&i.push(r),t&&i.push(t);var o=n.length>i.length;o&&i.push(sre(a));var l=n.apply(e,i);if(!o||a===l)return a}}else return a}var lre=sre(ore);function sre(e){return function(){for(var r=e.apply(this,arguments);typeof r=="function";)r=r();return r}}});var _t=N(Ll=>{"use strict";var cre=aQ().Transform,bSe=fre();function qd(){cre.call(this,{readableObjectMode:!0})}qd.prototype=Object.create(cre.prototype);qd.prototype.constructor=qd;bSe(qd.prototype);Ll.ParserStream=qd;Ll.sliceEq=function(e,r,t){for(var a=r,n=0;n{"use strict";var qv=_t().readUInt16BE,GT=_t().readUInt32BE;function Ld(e,r){if(e.length<4+r)return null;var t=GT(e,r);return e.length>4&15,a=e[4]&15,n=e[5]>>4&15,i=qv(e,6),o=8,l=0;li.width||n.width===i.width&&n.height>i.height?n:i}),t=e.reduce(function(n,i){return n.height>i.height||n.height===i.height&&n.width>i.width?n:i}),a;return r.width>t.height||r.width===t.height&&r.height>t.width?a=r:a=t,a}n3.exports.readSizeFromMeta=function(e){var r={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(ASe(e,r),!!r.sizes.length){var t=MSe(r.sizes),a=1;r.transforms.forEach(function(i){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},l={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(i.type==="imir"&&(i.value===0?a=l[a]:(a=l[a],a=o[a],a=o[a])),i.type==="irot")for(var s=0;s{"use strict";function i3(e,r){var t=new Error(e);return t.code=r,t}function kSe(e){try{return decodeURIComponent(escape(e))}catch(r){return e}}function Cl(e,r,t){this.input=e.subarray(r,t),this.start=r;var a=String.fromCharCode.apply(null,this.input.subarray(0,4));if(a!=="II*\0"&&a!=="MM\0*")throw i3("invalid TIFF signature","EBADDATA");this.big_endian=a[0]==="M"}Cl.prototype.each=function(e){this.aborted=!1;var r=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:r}];this.ifds_to_read.length>0&&!this.aborted;){var t=this.ifds_to_read.shift();t.offset&&this.scan_ifd(t.id,t.offset,e)}};Cl.prototype.read_uint16=function(e){var r=this.input;if(e+2>r.length)throw i3("unexpected EOF","EBADDATA");return this.big_endian?r[e]*256+r[e+1]:r[e]+r[e+1]*256};Cl.prototype.read_uint32=function(e){var r=this.input;if(e+4>r.length)throw i3("unexpected EOF","EBADDATA");return this.big_endian?r[e]*16777216+r[e+1]*65536+r[e+2]*256+r[e+3]:r[e]+r[e+1]*256+r[e+2]*65536+r[e+3]*16777216};Cl.prototype.is_subifd_link=function(e,r){return e===0&&r===34665||e===0&&r===34853||e===34665&&r===40965};Cl.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};Cl.prototype.exif_format_read=function(e,r){var t;switch(e){case 1:case 2:return t=this.input[r],t;case 6:return t=this.input[r],t|(t&128)*33554430;case 3:return t=this.read_uint16(r),t;case 8:return t=this.read_uint16(r),t|(t&32768)*131070;case 4:return t=this.read_uint32(r),t;case 9:return t=this.read_uint32(r),t|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};Cl.prototype.scan_ifd=function(e,r,t){var a=this.read_uint16(r);r+=2;for(var n=0;nthis.input.length)throw i3("unexpected EOF","EBADDATA");for(var v=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:i,offset:v[0]}),c=!0);var y={is_big_endian:this.big_endian,ifd:e,tag:i,format:o,count:l,entry_offset:r+this.start,data_length:u,data_offset:f+this.start,value:v,is_subifd_link:c};if(t(y)===!1){this.aborted=!0;return}r+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(r)})};YT.exports.ExifParser=Cl;YT.exports.get_orientation=function(e){var r=0;try{return new Cl(e,0,e.length).each(function(t){if(t.ifd===0&&t.tag===274&&Array.isArray(t.value))return r=t.value[0],!1}),r}catch(t){return-1}}});var dre=N((OBe,hre)=>{"use strict";var SSe=_t().str2arr,qSe=_t().sliceEq,LSe=_t().readUInt32BE,l3=vre(),CSe=o3(),ESe=SSe("ftyp");hre.exports=function(e){if(qSe(e,4,ESe)){var r=l3.unbox(e,0);if(r){var t=l3.getMimeType(r.data);if(t){for(var a,n=r.end;;){var i=l3.unbox(e,n);if(!i)break;if(n=i.end,i.boxtype==="mdat")return;if(i.boxtype==="meta"){a=i.data;break}}if(a){var o=l3.readSizeFromMeta(a);if(o){var l={width:o.width,height:o.height,type:t.type,mime:t.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(l.variants=o.variants),o.orientation&&(l.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var s=LSe(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+s+4,o.exif_location.offset+o.exif_location.length),f=CSe.get_orientation(u);f>0&&(l.orientation=f)}return l}}}}}}});var mre=N((BBe,yre)=>{"use strict";var DSe=_t().str2arr,RSe=_t().sliceEq,pre=_t().readUInt16LE,PSe=DSe("BM");yre.exports=function(e){if(!(e.length<26)&&RSe(e,0,PSe))return{width:pre(e,18),height:pre(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var wre=N((HBe,_re)=>{"use strict";var xre=_t().str2arr,gre=_t().sliceEq,bre=_t().readUInt16LE,FSe=xre("GIF87a"),NSe=xre("GIF89a");_re.exports=function(e){if(!(e.length<10)&&!(!gre(e,0,FSe)&&!gre(e,0,NSe)))return{width:bre(e,6),height:bre(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var Mre=N((UBe,Are)=>{"use strict";var VT=_t().readUInt16LE,zSe=0,ISe=1,Tre=16;Are.exports=function(e){var r=VT(e,0),t=VT(e,2),a=VT(e,4);if(!(r!==zSe||t!==ISe||!a)){for(var n=[],i={width:0,height:0},o=0;oi.width||s>i.height)&&(i=u)}return{width:i.width,height:i.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var Sre=N((GBe,kre)=>{"use strict";var WT=_t().readUInt16BE,OSe=_t().str2arr,BSe=_t().sliceEq,HSe=o3(),USe=OSe("Exif\0\0");kre.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var r=2;;){for(;;){if(e.length-r<2)return;if(e[r++]===255)break}for(var t=e[r++],a;t===255;)t=e[r++];if(208<=t&&t<=217||t===1)a=0;else if(192<=t&&t<=254){if(e.length-r<2)return;a=WT(e,r)-2,r+=2}else return;if(t===217||t===218)return;var n;if(t===225&&a>=10&&BSe(e,r,USe)&&(n=HSe.get_orientation(e.slice(r+6,r+a))),a>=5&&192<=t&&t<=207&&t!==196&&t!==200&&t!==204){if(e.length-r0&&(i.orientation=n),i}r+=a}}});var Dre=N((YBe,Ere)=>{"use strict";var Cre=_t().str2arr,qre=_t().sliceEq,Lre=_t().readUInt32BE,GSe=Cre(`\x89PNG\r +`));var l=new Cs({actual:e,expected:r,message:t,operator:n,stackStartFn:a});throw l.generatedMessage=o,l}}Bt.match=function e(r,t,a){Xee(r,t,a,e,"match")};Bt.doesNotMatch=function e(r,t,a){Xee(r,t,a,e,"doesNotMatch")};function Jee(){for(var e=arguments.length,r=new Array(e),t=0;t{var Ad=1e3,Md=Ad*60,kd=Md*60,Sd=kd*24,rSe=Sd*365.25;Kee.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return tSe(e);if(t==="number"&&isNaN(e)===!1)return r.long?nSe(e):aSe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function tSe(e){if(e=String(e),!(e.length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var t=parseFloat(r[1]),a=(r[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return t*rSe;case"days":case"day":case"d":return t*Sd;case"hours":case"hour":case"hrs":case"hr":case"h":return t*kd;case"minutes":case"minute":case"mins":case"min":case"m":return t*Md;case"seconds":case"second":case"secs":case"sec":case"s":return t*Ad;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function aSe(e){return e>=Sd?Math.round(e/Sd)+"d":e>=kd?Math.round(e/kd)+"h":e>=Md?Math.round(e/Md)+"m":e>=Ad?Math.round(e/Ad)+"s":e+"ms"}function nSe(e){return r3(e,Sd,"day")||r3(e,kd,"hour")||r3(e,Md,"minute")||r3(e,Ad,"second")||e+" ms"}function r3(e,r,t){if(!(e{Lt=ere.exports=HT.debug=HT.default=HT;Lt.coerce=uSe;Lt.disable=lSe;Lt.enable=oSe;Lt.enabled=sSe;Lt.humanize=Qee();Lt.names=[];Lt.skips=[];Lt.formatters={};var BT;function iSe(e){var r=0,t;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return Lt.colors[Math.abs(r)%Lt.colors.length]}function HT(e){function r(){if(r.enabled){var t=r,a=+new Date,n=a-(BT||a);t.diff=n,t.prev=BT,t.curr=a,BT=a;for(var i=new Array(arguments.length),o=0;o{wn=are.exports=rre();wn.log=vSe;wn.formatArgs=cSe;wn.save=hSe;wn.load=tre;wn.useColors=fSe;wn.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:dSe();wn.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function fSe(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}wn.formatters.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}};function cSe(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+wn.humanize(this.diff),!!r){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var a=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(i){i!=="%%"&&(a++,i==="%c"&&(n=a))}),e.splice(n,0,t)}}function vSe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function hSe(e){try{e==null?wn.storage.removeItem("debug"):wn.storage.debug=e}catch(r){}}function tre(){var e;try{e=wn.storage.debug}catch(r){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}wn.enable(tre());function dSe(){try{return window.localStorage}catch(e){}}});var vre=N((zBe,cre)=>{var qv=I2(),Es=nre()("stream-parser");cre.exports=ySe;var ore=-1,t3=0,pSe=1,lre=2;function ySe(e){var r=e&&typeof e._transform=="function",t=e&&typeof e._write=="function";if(!r&&!t)throw new Error("must pass a Writable or Transform stream in");Es("extending Parser into stream"),e._bytes=mSe,e._skipBytes=gSe,r&&(e._passthrough=bSe),r?e._transform=_Se:e._write=xSe}function qd(e){Es("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=ore,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function mSe(e,r){qv(!this._parserCallback,'there is already a "callback" set!'),qv(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||qd(this),Es("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=t3}function gSe(e,r){qv(!this._parserCallback,'there is already a "callback" set!'),qv(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||qd(this),Es("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=pSe}function bSe(e,r){qv(!this._parserCallback,'There is already a "callback" set!'),qv(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||qd(this),Es("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=lre}function xSe(e,r,t){this._parserInit||qd(this),Es("write(%o bytes)",e.length),typeof r=="function"&&(t=r),ure(this,e,null,t)}function _Se(e,r,t){this._parserInit||qd(this),Es("transform(%o bytes)",e.length),typeof r!="function"&&(r=this._parserOutput),ure(this,e,r,t)}function sre(e,r,t,a){return e._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return ire(e,r,t,a)}:function(){var n=r.slice(0,e._parserBytesLeft);return ire(e,n,t,function(i){if(i)return a(i);if(r.length>n.length)return function(){return sre(e,r.slice(n.length),t,a)}})}}function ire(e,r,t,a){if(e._parserBytesLeft-=r.length,Es("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===t3?(e._parserBuffers.push(r),e._parserBuffered+=r.length):e._parserState===lre&&t(r),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===t3&&e._parserBuffers.length>1&&(r=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==t3&&(r=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=ore,e._parserBuffers.splice(0),n){var i=[];r&&i.push(r),t&&i.push(t);var o=n.length>i.length;o&&i.push(fre(a));var l=n.apply(e,i);if(!o||a===l)return a}}else return a}var ure=fre(sre);function fre(e){return function(){for(var r=e.apply(this,arguments);typeof r=="function";)r=r();return r}}});var _t=N(Ll=>{"use strict";var hre=iQ().Transform,wSe=vre();function Ld(){hre.call(this,{readableObjectMode:!0})}Ld.prototype=Object.create(hre.prototype);Ld.prototype.constructor=Ld;wSe(Ld.prototype);Ll.ParserStream=Ld;Ll.sliceEq=function(e,r,t){for(var a=r,n=0;n{"use strict";var Lv=_t().readUInt16BE,GT=_t().readUInt32BE;function Cd(e,r){if(e.length<4+r)return null;var t=GT(e,r);return e.length>4&15,a=e[4]&15,n=e[5]>>4&15,i=Lv(e,6),o=8,l=0;li.width||n.width===i.width&&n.height>i.height?n:i}),t=e.reduce(function(n,i){return n.height>i.height||n.height===i.height&&n.width>i.width?n:i}),a;return r.width>t.height||r.width===t.height&&r.height>t.width?a=r:a=t,a}n3.exports.readSizeFromMeta=function(e){var r={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(SSe(e,r),!!r.sizes.length){var t=qSe(r.sizes),a=1;r.transforms.forEach(function(i){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},l={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(i.type==="imir"&&(i.value===0?a=l[a]:(a=l[a],a=o[a],a=o[a])),i.type==="irot")for(var s=0;s{"use strict";function i3(e,r){var t=new Error(e);return t.code=r,t}function LSe(e){try{return decodeURIComponent(escape(e))}catch(r){return e}}function Cl(e,r,t){this.input=e.subarray(r,t),this.start=r;var a=String.fromCharCode.apply(null,this.input.subarray(0,4));if(a!=="II*\0"&&a!=="MM\0*")throw i3("invalid TIFF signature","EBADDATA");this.big_endian=a[0]==="M"}Cl.prototype.each=function(e){this.aborted=!1;var r=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:r}];this.ifds_to_read.length>0&&!this.aborted;){var t=this.ifds_to_read.shift();t.offset&&this.scan_ifd(t.id,t.offset,e)}};Cl.prototype.read_uint16=function(e){var r=this.input;if(e+2>r.length)throw i3("unexpected EOF","EBADDATA");return this.big_endian?r[e]*256+r[e+1]:r[e]+r[e+1]*256};Cl.prototype.read_uint32=function(e){var r=this.input;if(e+4>r.length)throw i3("unexpected EOF","EBADDATA");return this.big_endian?r[e]*16777216+r[e+1]*65536+r[e+2]*256+r[e+3]:r[e]+r[e+1]*256+r[e+2]*65536+r[e+3]*16777216};Cl.prototype.is_subifd_link=function(e,r){return e===0&&r===34665||e===0&&r===34853||e===34665&&r===40965};Cl.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};Cl.prototype.exif_format_read=function(e,r){var t;switch(e){case 1:case 2:return t=this.input[r],t;case 6:return t=this.input[r],t|(t&128)*33554430;case 3:return t=this.read_uint16(r),t;case 8:return t=this.read_uint16(r),t|(t&32768)*131070;case 4:return t=this.read_uint32(r),t;case 9:return t=this.read_uint32(r),t|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};Cl.prototype.scan_ifd=function(e,r,t){var a=this.read_uint16(r);r+=2;for(var n=0;nthis.input.length)throw i3("unexpected EOF","EBADDATA");for(var v=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:i,offset:v[0]}),c=!0);var m={is_big_endian:this.big_endian,ifd:e,tag:i,format:o,count:l,entry_offset:r+this.start,data_length:u,data_offset:f+this.start,value:v,is_subifd_link:c};if(t(m)===!1){this.aborted=!0;return}r+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(r)})};VT.exports.ExifParser=Cl;VT.exports.get_orientation=function(e){var r=0;try{return new Cl(e,0,e.length).each(function(t){if(t.ifd===0&&t.tag===274&&Array.isArray(t.value))return r=t.value[0],!1}),r}catch(t){return-1}}});var yre=N((HBe,pre)=>{"use strict";var CSe=_t().str2arr,ESe=_t().sliceEq,DSe=_t().readUInt32BE,l3=dre(),RSe=o3(),PSe=CSe("ftyp");pre.exports=function(e){if(ESe(e,4,PSe)){var r=l3.unbox(e,0);if(r){var t=l3.getMimeType(r.data);if(t){for(var a,n=r.end;;){var i=l3.unbox(e,n);if(!i)break;if(n=i.end,i.boxtype==="mdat")return;if(i.boxtype==="meta"){a=i.data;break}}if(a){var o=l3.readSizeFromMeta(a);if(o){var l={width:o.width,height:o.height,type:t.type,mime:t.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(l.variants=o.variants),o.orientation&&(l.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var s=DSe(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+s+4,o.exif_location.offset+o.exif_location.length),f=RSe.get_orientation(u);f>0&&(l.orientation=f)}return l}}}}}}});var bre=N((UBe,gre)=>{"use strict";var FSe=_t().str2arr,NSe=_t().sliceEq,mre=_t().readUInt16LE,zSe=FSe("BM");gre.exports=function(e){if(!(e.length<26)&&NSe(e,0,zSe))return{width:mre(e,18),height:mre(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var Are=N((GBe,Tre)=>{"use strict";var wre=_t().str2arr,xre=_t().sliceEq,_re=_t().readUInt16LE,ISe=wre("GIF87a"),OSe=wre("GIF89a");Tre.exports=function(e){if(!(e.length<10)&&!(!xre(e,0,ISe)&&!xre(e,0,OSe)))return{width:_re(e,6),height:_re(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var Sre=N((VBe,kre)=>{"use strict";var YT=_t().readUInt16LE,BSe=0,HSe=1,Mre=16;kre.exports=function(e){var r=YT(e,0),t=YT(e,2),a=YT(e,4);if(!(r!==BSe||t!==HSe||!a)){for(var n=[],i={width:0,height:0},o=0;oi.width||s>i.height)&&(i=u)}return{width:i.width,height:i.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var Lre=N((YBe,qre)=>{"use strict";var WT=_t().readUInt16BE,USe=_t().str2arr,GSe=_t().sliceEq,VSe=o3(),YSe=USe("Exif\0\0");qre.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var r=2;;){for(;;){if(e.length-r<2)return;if(e[r++]===255)break}for(var t=e[r++],a;t===255;)t=e[r++];if(208<=t&&t<=217||t===1)a=0;else if(192<=t&&t<=254){if(e.length-r<2)return;a=WT(e,r)-2,r+=2}else return;if(t===217||t===218)return;var n;if(t===225&&a>=10&&GSe(e,r,YSe)&&(n=VSe.get_orientation(e.slice(r+6,r+a))),a>=5&&192<=t&&t<=207&&t!==196&&t!==200&&t!==204){if(e.length-r0&&(i.orientation=n),i}r+=a}}});var Pre=N((WBe,Rre)=>{"use strict";var Dre=_t().str2arr,Cre=_t().sliceEq,Ere=_t().readUInt32BE,WSe=Dre(`\x89PNG\r  -`),YSe=Cre("IHDR");Ere.exports=function(e){if(!(e.length<24)&&qre(e,0,GSe)&&qre(e,12,YSe))return{width:Lre(e,16),height:Lre(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var Fre=N((VBe,Pre)=>{"use strict";var VSe=_t().str2arr,WSe=_t().sliceEq,Rre=_t().readUInt32BE,jSe=VSe("8BPS\0");Pre.exports=function(e){if(!(e.length<22)&&WSe(e,0,jSe))return{width:Rre(e,18),height:Rre(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var Ire=N((WBe,zre)=>{"use strict";function ZSe(e){return e===32||e===9||e===13||e===10}function Lv(e){return typeof e=="number"&&isFinite(e)&&e>0}function XSe(e){var r=0,t=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(r=3);r]*>/,$Se=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,KSe=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,QSe=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,eqe=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,Nre=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function rqe(e){var r=e.match(KSe),t=e.match(QSe),a=e.match(eqe);return{width:r&&(r[1]||r[2]),height:t&&(t[1]||t[2]),viewbox:a&&(a[1]||a[2])}}function Jo(e){return Nre.test(e)?e.match(Nre)[0]:"px"}zre.exports=function(e){if(XSe(e)){for(var r="",t=0;t{"use strict";var Hre=_t().str2arr,Ore=_t().sliceEq,tqe=_t().readUInt16LE,aqe=_t().readUInt16BE,nqe=_t().readUInt32LE,iqe=_t().readUInt32BE,oqe=Hre("II*\0"),lqe=Hre("MM\0*");function s3(e,r,t){return t?aqe(e,r):tqe(e,r)}function jT(e,r,t){return t?iqe(e,r):nqe(e,r)}function Bre(e,r,t){var a=s3(e,r+2,t),n=jT(e,r+4,t);return n!==1||a!==3&&a!==4?null:a===3?s3(e,r+8,t):jT(e,r+8,t)}Ure.exports=function(e){if(!(e.length<8)&&!(!Ore(e,0,oqe)&&!Ore(e,0,lqe))){var r=e[0]===77,t=jT(e,4,r)-8;if(!(t<0)){var a=t+8;if(!(e.length-a<2)){var n=s3(e,a+0,r)*12;if(!(n<=0)&&(a+=2,!(e.length-a{"use strict";var Wre=_t().str2arr,Yre=_t().sliceEq,Vre=_t().readUInt16LE,ZT=_t().readUInt32LE,sqe=o3(),uqe=Wre("RIFF"),fqe=Wre("WEBP");function cqe(e,r){if(!(e[r+3]!==157||e[r+4]!==1||e[r+5]!==42))return{width:Vre(e,r+6)&16383,height:Vre(e,r+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function vqe(e,r){if(e[r]===47){var t=ZT(e,r+1);return{width:(t&16383)+1,height:(t>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function hqe(e,r){return{width:(e[r+6]<<16|e[r+5]<<8|e[r+4])+1,height:(e[r+9]<e.length)){for(;r+8=10?t=t||cqe(e,r+8):i==="VP8L"&&o>=9?t=t||vqe(e,r+8):i==="VP8X"&&o>=10?t=t||hqe(e,r+8):i==="EXIF"&&(a=sqe.get_orientation(e.slice(r+8,r+8+o)),r=1/0),r+=8+o}if(t)return a>0&&(t.orientation=a),t}}}});var Jre=N((XBe,Xre)=>{"use strict";Xre.exports={avif:dre(),bmp:mre(),gif:wre(),ico:Mre(),jpeg:Sre(),png:Dre(),psd:Fre(),svg:Ire(),tiff:Gre(),webp:Zre()}});var $re=N((JBe,JT)=>{"use strict";var XT=Jre();function dqe(e){for(var r=Object.keys(XT),t=0;t{"use strict";var pqe=$re(),yqe=yl().IMAGE_URL_PREFIX,mqe=lv().Buffer;Kre.getImageSize=function(e){var r=e.replace(yqe,""),t=new mqe(r,"base64");return pqe(t)}});var tte=N((KBe,rte)=>{"use strict";var ete=Ce(),gqe=rv(),bqe=Rr(),u3=Ir(),xqe=Ce().maxRowLength,_qe=Qre().getImageSize;rte.exports=function(r,t){var a,n;if(t._hasZ)a=t.z.length,n=xqe(t.z);else if(t._hasSource){var i=_qe(t.source);a=i.height,n=i.width}var o=u3.getFromId(r,t.xaxis||"x"),l=u3.getFromId(r,t.yaxis||"y"),s=o.d2c(t.x0)-t.dx/2,u=l.d2c(t.y0)-t.dy/2,f,c=[s,s+n*t.dx],v=[u,u+a*t.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var Mqe=Sr(),nf=Ce(),ate=nf.strTranslate,kqe=ll(),Sqe=rv(),qqe=Qw(),Lqe=pg().STYLE;nte.exports=function(r,t,a,n){var i=t.xaxis,o=t.yaxis,l=!r._context._exportedPlot&&qqe();nf.makeTraceGroups(n,a,"im").each(function(s){var u=Mqe.select(this),f=s[0],c=f.trace,v=(c.zsmooth==="fast"||c.zsmooth===!1&&l)&&!c._hasZ&&c._hasSource&&i.type==="linear"&&o.type==="linear";c._realImage=v;var d=f.z,p=f.x0,m=f.y0,y=f.w,x=f.h,w=c.dx,_=c.dy,b,T,k,M,S,E;for(E=0;b===void 0&&E0;)T=i.c2p(p+E*w),E--;for(E=0;M===void 0&&E0;)S=o.c2p(m+E*_),E--;if(TY[0];if(X||Z){var re=b+P/2,ce=M+R/2;G+="transform:"+ate(re+"px",ce+"px")+"scale("+(X?-1:1)+","+(Z?-1:1)+")"+ate(-re+"px",-ce+"px")+";"}}V.attr("style",G);var oe=new Promise(function(fe){if(c._hasZ)fe();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===y&&c._canvas.el.height===x&&c._canvas.source===c.source)fe();else{var K=document.createElement("canvas");K.width=y,K.height=x;var Te=K.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var le=c._image;le.onload=function(){Te.drawImage(le,0,0),c._canvas={el:K,source:c.source},fe()},le.setAttribute("src",c.source)}}).then(function(){var fe,K;if(c._hasZ)K=B(function(pe,ie){var ve=d[ie][pe];return nf.isTypedArray(ve)&&(ve=Array.from(ve)),ve}),fe=K.toDataURL("image/png");else if(c._hasSource)if(v)fe=c.source;else{var Te=c._canvas.el.getContext("2d",{willReadFrequently:!0}),le=Te.getImageData(0,0,y,x).data;K=B(function(pe,ie){var ve=4*(ie*y+pe);return[le[ve],le[ve+1],le[ve+2],le[ve+3]]}),fe=K.toDataURL("image/png")}V.attr({"xlink:href":fe,height:R,width:P,x:b,y:M})});r._promises.push(oe)})}});var lte=N((eHe,ote)=>{"use strict";var Cqe=Sr();ote.exports=function(r){Cqe.select(r).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}});var cte=N((rHe,fte)=>{"use strict";var ste=Pn(),ute=Ce(),f3=ute.isArrayOrTypedArray,Eqe=rv();fte.exports=function(r,t,a){var n=r.cd[0],i=n.trace,o=r.xa,l=r.ya;if(!(ste.inbox(t-n.x0,t-(n.x0+n.w*i.dx),0)>0||ste.inbox(a-n.y0,a-(n.y0+n.h*i.dy),0)>0)){var s=Math.floor((t-n.x0)/i.dx),u=Math.floor(Math.abs(a-n.y0)/i.dy),f;if(i._hasZ?f=n.z[u][s]:i._hasSource&&(f=i._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(s,u,1,1).data),!!f){var c=n.hi||i.hoverinfo,v;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(v=!0)}var p=Eqe.colormodel[i.colormodel],m=p.colormodel||i.colormodel,y=m.length,x=i._scaler(f),w=p.suffix,_=[];(i.hovertemplate||v)&&(_.push("["+[x[0]+w[0],x[1]+w[1],x[2]+w[2]].join(", ")),y===4&&_.push(", "+x[3]+w[3]),_.push("]"),_=_.join(""),r.extraText=m.toUpperCase()+": "+_);var b;f3(i.hovertext)&&f3(i.hovertext[u])?b=i.hovertext[u][s]:f3(i.text)&&f3(i.text[u])&&(b=i.text[u][s]);var T=l.c2p(n.y0+(u+.5)*i.dy),k=n.x0+(s+.5)*i.dx,M=n.y0+(u+.5)*i.dy,S="["+f.slice(0,i.colormodel.length).join(", ")+"]";return[ute.extendFlat(r,{index:[u,s],x0:o.c2p(n.x0+s*i.dx),x1:o.c2p(n.x0+(s+1)*i.dx),y0:T,y1:T,color:x,xVal:k,xLabelVal:k,yVal:M,yLabelVal:M,zLabelVal:S,text:b,hovertemplateLabels:{zLabel:S,colorLabel:_,"color[0]Label":x[0]+w[0],"color[1]Label":x[1]+w[1],"color[2]Label":x[2]+w[2],"color[3]Label":x[3]+w[3]}})]}}}});var hte=N((tHe,vte)=>{"use strict";vte.exports=function(r,t){return"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r.color=t.color,r.colormodel=t.trace.colormodel,r.z||(r.z=t.color),r}});var pte=N((aHe,dte)=>{"use strict";dte.exports={attributes:W6(),supplyDefaults:cX(),calc:tte(),plot:ite(),style:lte(),hoverPoints:cte(),eventData:hte(),moduleType:"trace",name:"image",basePlotModule:qi(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var mte=N((nHe,yte)=>{"use strict";yte.exports=pte()});var $T=N((iHe,gte)=>{"use strict";var Dqe=mn(),Rqe=Pc().attributes,Pqe=da(),Fqe=si(),Nqe=Ta().hovertemplateAttrs,zqe=Ta().texttemplateAttrs,Cd=xt().extendFlat,Iqe=ui().pattern,c3=Pqe({editType:"plot",arrayOk:!0,colorEditType:"plot"});gte.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Fqe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:Iqe,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:Cd({},Dqe.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Nqe({},{keys:["label","color","value","percent","text"]}),texttemplate:zqe({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Cd({},c3,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Cd({},c3,{}),outsidetextfont:Cd({},c3,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:Cd({},c3,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:Rqe({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var wte=N((oHe,_te)=>{"use strict";var Oqe=Rr(),Ed=Ce(),Bqe=$T(),Hqe=Pc().defaults,Uqe=zu().handleText,Gqe=Ce().coercePattern;function bte(e,r){var t=Ed.isArrayOrTypedArray(e),a=Ed.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,o=0;o0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function xte(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var o=a("marker.colors");Gqe(a,"marker.pattern",o),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function Yqe(e,r,t,a){function n(w,_){return Ed.coerce(e,r,Bqe,w,_)}var i=n("labels"),o=n("values"),l=bte(i,o),s=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,xte(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate"),c;if(f||(c=n("textinfo",Ed.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),f||c&&c!=="none"){var v=n("textposition");Uqe(e,r,a,n,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(v)||v==="auto",p=d||v==="outside";p&&n("automargin"),(v==="inside"||v==="auto"||Array.isArray(v))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");Hqe(r,a,n);var m=n("hole"),y=n("title.text");if(y){var x=n("title.position",m?"middle center":"top center");!m&&x==="middle center"&&(r.title.position="top center"),Ed.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}_te.exports={handleLabelsAndValues:bte,handleMarkerDefaults:xte,supplyDefaults:Yqe}});var KT=N((lHe,Tte)=>{"use strict";Tte.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Mte=N((sHe,Ate)=>{"use strict";var Vqe=Ce(),Wqe=KT();Ate.exports=function(r,t){function a(n,i){return Vqe.coerce(r,t,Wqe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var e8=N((uHe,qte)=>{"use strict";var jqe=Rr(),QT=kn(),Zqe=Tr(),Xqe={};function Jqe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,o=r.marker.colors||[],l=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?m:r.sort;return b&&t.sort(function(T,k){return k.v-T.v}),t[0]&&(t[0].vTotal=p),t}function kte(e){return function(t,a){return!t||(t=QT(t),!t.isValid())?!1:(t=Zqe.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function $qe(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],o=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=Ste(i,Xqe));for(var l=0,s=0;s{"use strict";var Kqe=qo().appendArrayMultiPointValues;Lte.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),Kqe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var Kte=N((cHe,$te)=>{"use strict";var Yn=Sr(),Qqe=aa(),v3=Pn(),Nte=Tr(),El=Wr(),ja=Ce(),eLe=ja.strScale,Ete=ja.strTranslate,r8=Da(),zte=A0(),rLe=zte.recordMinTextSize,tLe=zte.clearMinTextSize,Ite=Jm().TEXTPAD,Ar=H1(),h3=Cte(),Dte=Ce().isValidTextValue;function aLe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;tLe("pie",a),Hte(r,e),Zte(r,n);var i=ja.makeTraceGroups(a._pielayer,r,"trace").each(function(o){var l=Yn.select(this),s=o[0],u=s.trace;vLe(o),l.attr("stroke-linejoin","round"),l.each(function(){var f=Yn.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],v=!1;f.each(function(b,T){if(b.hidden){Yn.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,c[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var k=s.cx,M=s.cy,S=Yn.select(this),E=S.selectAll("path.surface").data([b]);if(E.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),S.call(Ote,e,o),u.pull){var D=+Ar.castOption(u.pull,b.pts)||0;D>0&&(k+=D*b.pxmid[0],M+=D*b.pxmid[1])}b.cxFinal=k,b.cyFinal=M;function P(U,Y,X,Z){var re=Z*(Y[0]-U[0]),ce=Z*(Y[1]-U[1]);return"a"+Z*s.r+","+Z*s.r+" 0 "+b.largeArc+(X?" 1 ":" 0 ")+re+","+ce}var R=u.hole;if(b.v===s.vTotal){var z="M"+(k+b.px0[0])+","+(M+b.px0[1])+P(b.px0,b.pxmid,!0,1)+P(b.pxmid,b.px0,!0,1)+"Z";R?E.attr("d","M"+(k+R*b.px0[0])+","+(M+R*b.px0[1])+P(b.px0,b.pxmid,!1,R)+P(b.pxmid,b.px0,!1,R)+"Z"+z):E.attr("d",z)}else{var O=P(b.px0,b.px1,!0,1);if(R){var B=1-R;E.attr("d","M"+(k+R*b.px1[0])+","+(M+R*b.px1[1])+P(b.px1,b.px0,!1,R)+"l"+B*b.px0[0]+","+B*b.px0[1]+O+"Z")}else E.attr("d","M"+k+","+M+"l"+b.px0[0]+","+b.px0[1]+O+"Z")}Xte(e,b,s);var V=Ar.castOption(u.textposition,b.pts),G=S.selectAll("g.slicetext").data(b.text&&V!=="none"?[0]:[]);G.enter().append("g").classed("slicetext",!0),G.exit().remove(),G.each(function(){var U=ja.ensureSingle(Yn.select(this),"text","",function(K){K.attr("data-notex",1)}),Y=ja.ensureUniformFontSize(e,V==="outside"?iLe(u,b,a.font):Bte(u,b,a.font));U.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(El.font,Y).call(r8.convertToTspans,e);var X=El.bBox(U.node()),Z;if(V==="outside")Z=Fte(X,b);else if(Z=Ute(X,b,s),V==="auto"&&Z.scale<1){var re=ja.ensureUniformFontSize(e,u.outsidetextfont);U.call(El.font,re),X=El.bBox(U.node()),Z=Fte(X,b)}var ce=Z.textPosAngle,oe=ce===void 0?b.pxmid:d3(s.r,ce);if(Z.targetX=k+oe[0]*Z.rCenter+(Z.x||0),Z.targetY=M+oe[1]*Z.rCenter+(Z.y||0),Jte(Z,X),Z.outside){var fe=Z.targetY;b.yLabelMin=fe-X.height/2,b.yLabelMid=fe,b.yLabelMax=fe+X.height/2,b.labelExtraX=0,b.labelExtraY=0,v=!0}Z.fontSize=Y.size,rLe(u.type,Z,a),o[T].transform=Z,ja.setTransormAndDisplay(U,Z)})});var d=Yn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var b=ja.ensureSingle(Yn.select(this),"text","",function(M){M.attr("data-notex",1)}),T=u.title.text;u._meta&&(T=ja.templateString(T,u._meta)),b.text(T).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(El.font,u.title.font).call(r8.convertToTspans,e);var k;u.title.position==="middle center"?k=sLe(s):k=Wte(s,n),b.attr("transform",Ete(k.x,k.y)+eLe(Math.min(1,k.scale))+Ete(k.tx,k.ty))}),v&&fLe(c,u),nLe(f,u),v&&u.automargin){var p=El.bBox(l.node()),m=u.domain,y=n.w*(m.x[1]-m.x[0]),x=n.h*(m.y[1]-m.y[0]),w=(.5*y-s.r)/n.w,_=(.5*x-s.r)/n.h;Qqe.autoMargin(e,"pie."+u.uid+".automargin",{xl:m.x[0]-w,xr:m.x[1]+w,yb:m.y[0]-_,yt:m.y[1]+_,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var o=Yn.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function nLe(e,r){e.each(function(t){var a=Yn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,ja.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],o=t.cyFinal+t.pxmid[1],l="M"+i+","+o,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?l+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):l+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else l+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;ja.ensureSingle(a,"path","textline").call(Nte.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:l,fill:"none"})})}function Ote(e,r,t){var a=t[0],n=a.cx,i=a.cy,o=a.trace,l=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[o.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=v3.castHoverinfo({hoverinfo:[Ar.castOption(c,s.pts)],_module:o._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var v=s.rInscribed||0,d=n+s.pxmid[0]*(1-v),p=i+s.pxmid[1]*(1-v),m=u.separators,y=[];if(c&&c.indexOf("label")!==-1&&y.push(s.label),s.text=Ar.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var x=s.text;ja.isValidTextValue(x)&&y.push(x)}s.value=s.v,s.valueLabel=Ar.formatPieValue(s.v,m),c&&c.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Ar.formatPiePercent(s.percent,m),c&&c.indexOf("percent")!==-1&&y.push(s.percentLabel);var w=f.hoverlabel,_=w.font,b=[];v3.loneHover({trace:o,x0:d-v*a.r,x1:d+v*a.r,y:p,_x0:l?n+s.TL[0]:d-v*a.r,_x1:l?n+s.TR[0]:d+v*a.r,_y0:l?i+s.TL[1]:p-v*a.r,_y1:l?i+s.BL[1]:p+v*a.r,text:y.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Ar.castOption(w.bgcolor,s.pts)||s.color,borderColor:Ar.castOption(w.bordercolor,s.pts),fontFamily:Ar.castOption(_.family,s.pts),fontSize:Ar.castOption(_.size,s.pts),fontColor:Ar.castOption(_.color,s.pts),nameLength:Ar.castOption(w.namelength,s.pts),textAlign:Ar.castOption(w.align,s.pts),hovertemplate:Ar.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[h3(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,r.emit("plotly_hover",{points:[h3(s,f)],event:Yn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[o.index],c=Yn.select(this).datum();o._hasHoverEvent&&(s.originalEvent=Yn.event,r.emit("plotly_unhover",{points:[h3(c,f)],event:Yn.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(v3.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[o.index];r._dragging||u.hovermode===!1||(r._hoverdata=[h3(s,f)],v3.click(r,Yn.event))})}function iLe(e,r,t){var a=Ar.castOption(e.outsidetextfont.color,r.pts)||Ar.castOption(e.textfont.color,r.pts)||t.color,n=Ar.castOption(e.outsidetextfont.family,r.pts)||Ar.castOption(e.textfont.family,r.pts)||t.family,i=Ar.castOption(e.outsidetextfont.size,r.pts)||Ar.castOption(e.textfont.size,r.pts)||t.size,o=Ar.castOption(e.outsidetextfont.weight,r.pts)||Ar.castOption(e.textfont.weight,r.pts)||t.weight,l=Ar.castOption(e.outsidetextfont.style,r.pts)||Ar.castOption(e.textfont.style,r.pts)||t.style,s=Ar.castOption(e.outsidetextfont.variant,r.pts)||Ar.castOption(e.textfont.variant,r.pts)||t.variant,u=Ar.castOption(e.outsidetextfont.textcase,r.pts)||Ar.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Ar.castOption(e.outsidetextfont.lineposition,r.pts)||Ar.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Ar.castOption(e.outsidetextfont.shadow,r.pts)||Ar.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function Bte(e,r,t){var a=Ar.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Ar.castOption(e._input.textfont.color,r.pts));var n=Ar.castOption(e.insidetextfont.family,r.pts)||Ar.castOption(e.textfont.family,r.pts)||t.family,i=Ar.castOption(e.insidetextfont.size,r.pts)||Ar.castOption(e.textfont.size,r.pts)||t.size,o=Ar.castOption(e.insidetextfont.weight,r.pts)||Ar.castOption(e.textfont.weight,r.pts)||t.weight,l=Ar.castOption(e.insidetextfont.style,r.pts)||Ar.castOption(e.textfont.style,r.pts)||t.style,s=Ar.castOption(e.insidetextfont.variant,r.pts)||Ar.castOption(e.textfont.variant,r.pts)||t.variant,u=Ar.castOption(e.insidetextfont.textcase,r.pts)||Ar.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Ar.castOption(e.insidetextfont.lineposition,r.pts)||Ar.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Ar.castOption(e.insidetextfont.shadow,r.pts)||Ar.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||Nte.contrast(r.color),family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function Hte(e,r){for(var t,a,n=0;n=-4;w-=2)x(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)x(Math.PI*(w+1),"tan")}if(c||d){for(w=4;w>=-4;w-=2)x(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)x(Math.PI*(w+.5),"rad")}}if(l||p||c){var _=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/_,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;m.push(y)}(p||d)&&(y=Rte(e,a,o,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y)),(p||v)&&(y=Pte(e,a,o,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y));for(var b=0,T=0,k=0;k=1)break}return m[b]}function oLe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function sLe(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function Wte(e,r){var t=1,a=1,n,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,n=jte(i),i.title.position.indexOf("top")!==-1?(o.y-=(1+n)*e.r,l.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(o.y+=(1+n)*e.r);var s=uLe(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,o.x-=(1+n)*s,l.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,o.x+=(1+n)*s,l.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=t8(e,r)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(t,a),tx:l.tx,ty:l.ty}}function uLe(e,r){return e/(r===void 0?1:r)}function t8(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function jte(e){var r=e.pull;if(!r)return 0;var t;if(ja.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function fLe(e,r){var t,a,n,i,o,l,s,u,f,c,v,d,p;function m(_,b){return _.pxmid[1]-b.pxmid[1]}function y(_,b){return b.pxmid[1]-_.pxmid[1]}function x(_,b){b||(b={});var T=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),k=a?_.yLabelMin:_.yLabelMax,M=a?_.yLabelMax:_.yLabelMin,S=_.cyFinal+o(_.px0[1],_.px1[1]),E=T-k,D,P,R,z,O,B;if(E*s>0&&(_.labelExtraY=E),!!ja.isArrayOrTypedArray(r.pull))for(P=0;P=(Ar.castOption(r.pull,R.pts)||0))&&((_.pxmid[1]-R.pxmid[1])*s>0?(z=R.cyFinal+o(R.px0[1],R.px1[1]),E=z-k-_.labelExtraY,E*s>0&&(_.labelExtraY+=E)):(M+_.labelExtraY-S)*s>0&&(D=3*l*Math.abs(P-c.indexOf(_)),O=R.cxFinal+i(R.px0[0],R.px1[0]),B=O+D-(_.cxFinal+_.pxmid[0])-_.labelExtraX,B*l>0&&(_.labelExtraX+=B)))}for(a=0;a<2;a++)for(n=a?m:y,o=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,l=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],v=0;v1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}o=Math.min(o,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=lLe(u,r))}function d3(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function Xte(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,o=n.textinfo;if(!i&&o&&o!=="none"){var l=o.split("+"),s=function(b){return l.indexOf(b)!==-1},u=s("label"),f=s("text"),c=s("value"),v=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var m=Ar.getFirstFilled(n.text,r.pts);Dte(m)&&p.push(m)}c&&p.push(Ar.formatPieValue(r.v,d)),v&&p.push(Ar.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("
")}function y(b){return{label:b.label,value:b.v,valueLabel:Ar.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:Ar.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:ja.castOption(n,b.i,"customdata")}}if(i){var x=ja.castOption(n,r.i,"texttemplate");if(!x)r.text="";else{var w=y(r),_=Ar.getFirstFilled(n.text,r.pts);(Dte(_)||_==="")&&(w.text=_),r.text=ja.texttemplateString(x,w,e._fullLayout._d3locale,w,n._meta||{})}}}function Jte(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2;e.textX=i*a-o*n,e.textY=i*n+o*a,e.noCenter=!0}$te.exports={plot:aLe,formatSliceLabel:Xte,transformInsideText:Ute,determineInsideTextFont:Bte,positionTitleOutside:Wte,prerenderTitles:Hte,layoutAreas:Zte,attachFxHandlers:Ote,computeTransform:Jte}});var rae=N((vHe,eae)=>{"use strict";var Qte=Sr(),hLe=U1(),dLe=A0().resizeText;eae.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");dLe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,o=Qte.select(this);o.style({opacity:i.opacity}),o.selectAll("path.surface").each(function(l){Qte.select(this).call(hLe,l,i,r)})})}});var aae=N(Cv=>{"use strict";var tae=aa();Cv.name="pie";Cv.plot=function(e,r,t,a){tae.plotBasePlot(Cv.name,e,r,t,a)};Cv.clean=function(e,r,t,a){tae.cleanBasePlot(Cv.name,e,r,t,a)}});var iae=N((dHe,nae)=>{"use strict";nae.exports={attributes:$T(),supplyDefaults:wte().supplyDefaults,supplyLayoutDefaults:Mte(),layoutAttributes:KT(),calc:e8().calc,crossTraceCalc:e8().crossTraceCalc,plot:Kte().plot,style:rae(),styleOne:U1(),moduleType:"trace",name:"pie",basePlotModule:aae(),categories:["pie-like","pie","showLegend"],meta:{}}});var lae=N((pHe,oae)=>{"use strict";oae.exports=iae()});var en=N((yHe,uae)=>{"use strict";var sae=Object.getOwnPropertySymbols,pLe=Object.prototype.hasOwnProperty,yLe=Object.prototype.propertyIsEnumerable;function mLe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function gLe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}uae.exports=gLe()?Object.assign:function(e,r){for(var t,a=mLe(e),n,i=1;i{var y3=en();function fae(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}y3(fae.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function a8(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(zr.local.invalidDate||zr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function p3(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}y3(a8.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(zr.local.invalidDate||zr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(zr.local.differentCalendars||zr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+p3(Math.abs(this.year()),4)+"-"+p3(this.month(),2)+"-"+p3(this.day(),2)}});function n8(){this.shortYearCutoff="+10"}y3(n8.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,zr.local.invalidDate||zr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new a8(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,zr.local.invalidYear||zr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,zr.local.invalidYear||zr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+p3(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,zr.local.invalidYear||zr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,zr.local.invalidMonth||zr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,zr.local.invalidMonth||zr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,zr.local.invalidYear||zr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,zr.local.invalidDate||zr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,zr.local.invalidDate||zr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,zr.local.invalidDate||zr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,zr.local.invalidDate||zr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;oc-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,zr.local.invalidDate||zr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,zr.local.invalidDate||zr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var zr=cae.exports=new fae;zr.cdate=a8;zr.baseCalendar=n8;zr.calendars.gregorian=i8});var vae=N(()=>{var o8=en(),Na=rn();o8(Na.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Na.local=Na.regionalOptions[""];o8(Na.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});o8(Na.baseCalendar.prototype,{UNIX_EPOCH:Na.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Na.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Na.local.invalidFormat||Na.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,T){for(var k=1;_+k1},f=function(b,T,k,M){var S=""+T;if(u(b,M))for(;S.length1},w=function(R,z){var O=x(R,z),B=[2,3,O?4:2,O?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],V=new RegExp("^-?\\d{1,"+B+"}"),G=r.substring(S).match(V);if(!G)throw(Na.local.missingNumberAt||Na.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=G[0].length,parseInt(G[0],10)},_=this,b=function(){if(typeof l=="function"){x("m");var R=l.call(_,r.substring(S));return S+=R.length,R}return w("m")},T=function(R,z,O,B){for(var V=x(R,B)?O:z,G=0;G-1){v=1,d=p;for(var P=this.daysInMonth(c,v);d>P;P=this.daysInMonth(c,v))v++,d-=P}return f>-1?this.fromJD(f):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var hae=N(()=>{var Ds=rn(),bLe=en(),l8=Ds.instance();function m3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m3.prototype=new Ds.baseCalendar;bLe(m3.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(_Le);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(wLe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(TLe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Ds.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Ds.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Ds.local.invalidyear),n=Ps[a-Ps[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=l8.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Rs[e-Rs[0]],a=t>>13,n=a?12:11;if(r>n)throw Ds.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Ds.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=MLe(e,i,t,n);return l8.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=l8.fromJD(e),t=ALe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(xLe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(m3.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var xLe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,_Le=/^\d?\d[iI]?/m,wLe=/^闰?十?[一二三四五六七八九]?月/m,TLe=/^闰?十?[一二三四五六七八九]?/m;Ds.calendars.chinese=m3;var Rs=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Ps=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function ALe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Ps[n.year-Ps[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Ps[i.year-Ps[0]];var c=u>>9&4095,v=u>>5&15,d=u&31,p,m=new Date(c,v-1,d),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-m)/(24*3600*1e3));var x=Rs[i.year-Rs[0]],w;for(w=0;w<13;w++){var _=x&1<<12-w?30:29;if(p<_)break;p-=_}var b=x>>13;return!b||w=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var v=Rs[o.year-Rs[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var m=0;m>9&4095,_=x>>5&15,b=x&31,T=new Date(w,_-1,b+c);return i.year=T.getFullYear(),i.month=1+T.getMonth(),i.day=T.getDate(),i}});var dae=N(()=>{var of=rn(),kLe=en();function s8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}s8.prototype=new of.baseCalendar;kLe(s8.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,of.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,of.local.invalidYear||of.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,of.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,of.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});of.calendars.coptic=s8});var pae=N(()=>{var Dl=rn(),SLe=en();function u8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}u8.prototype=new Dl.baseCalendar;SLe(u8.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Dl.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Dl.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Dl.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Dl.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Dl.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Dl.local.invalidDate);return{century:qLe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Dl.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var qLe={20:"Fruitbat",21:"Anchovy"};Dl.calendars.discworld=u8});var yae=N(()=>{var lf=rn(),LLe=en();function f8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}f8.prototype=new lf.baseCalendar;LLe(f8.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,lf.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,lf.local.invalidYear||lf.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,lf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,lf.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});lf.calendars.ethiopian=f8});var mae=N(()=>{var Fs=rn(),CLe=en();function c8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}c8.prototype=new Fs.baseCalendar;CLe(c8.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Fs.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,g3(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fs.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Fs.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Fs.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&g3(this.daysInYear(e),10)===5?30:r===9&&g3(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Fs.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Fs.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function g3(e,r){return e-r*Math.floor(e/r)}Fs.calendars.hebrew=c8});var gae=N(()=>{var Dd=rn(),ELe=en();function v8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}v8.prototype=new Dd.baseCalendar;ELe(v8.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Dd.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Dd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Dd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});Dd.calendars.islamic=v8});var bae=N(()=>{var Rd=rn(),DLe=en();function h8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}h8.prototype=new Rd.baseCalendar;DLe(h8.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Rd.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Rd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Rd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});Rd.calendars.julian=h8});var _ae=N(()=>{var Ui=rn(),RLe=en();function p8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}p8.prototype=new Ui.baseCalendar;RLe(p8.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ui.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ui.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ui.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Ui.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ui.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Ui.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Ui.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Ui.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Ui.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=d8(e+8+17*20,365);return[Math.floor(r/20)+1,d8(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[xae(e+20,20),xae(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Ui.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function d8(e,r){return e-r*Math.floor(e/r)}function xae(e,r){return d8(e-1,r)+1}Ui.calendars.mayan=p8});var Tae=N(()=>{var sf=rn(),PLe=en();function y8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y8.prototype=new sf.baseCalendar;var wae=sf.instance("gregorian");PLe(y8.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,sf.local.invalidYear||sf.regionalOptions[""].invalidYear);return wae.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,sf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,sf.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});sf.calendars.nanakshahi=y8});var Aae=N(()=>{var uf=rn(),FLe=en();function m8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m8.prototype=new uf.baseCalendar;FLe(m8.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,uf.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,uf.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,uf.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=uf.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=uf.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Ev=rn(),NLe=en();function x3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function b3(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}x3.prototype=new Ev.baseCalendar;NLe(x3.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ev.local.invalidYear);return b3(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ev.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Ev.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,b3(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Ev.calendars.persian=x3;Ev.calendars.jalali=x3});var kae=N(()=>{var ff=rn(),zLe=en(),_3=ff.instance();function g8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}g8.prototype=new ff.baseCalendar;zLe(g8.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ff.local.invalidYear),t=this._t2gYear(r.year());return _3.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,ff.local.invalidYear),n=this._t2gYear(a.year());return _3.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ff.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,ff.local.invalidDate),n=this._t2gYear(a.year());return _3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=_3.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});ff.calendars.taiwan=g8});var Sae=N(()=>{var cf=rn(),ILe=en(),w3=cf.instance();function b8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b8.prototype=new cf.baseCalendar;ILe(b8.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,cf.local.invalidYear),t=this._t2gYear(r.year());return w3.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,cf.local.invalidYear),n=this._t2gYear(a.year());return w3.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,cf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,cf.local.invalidDate),n=this._t2gYear(a.year());return w3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=w3.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});cf.calendars.thai=b8});var qae=N(()=>{var vf=rn(),OLe=en();function x8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x8.prototype=new vf.baseCalendar;OLe(x8.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,vf.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,vf.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Ns[n]-Ns[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,vf.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Ns[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Ns[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=vf.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=vf.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});vf.calendars.ummalqura=x8;var Ns=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Cae=N((ZHe,Lae)=>{"use strict";Lae.exports=rn();vae();hae();dae();pae();yae();mae();gae();bae();_ae();Tae();Aae();Mae();kae();Sae();qae()});var zae=N((XHe,Nae)=>{"use strict";var Dae=Cae(),Pd=Ce(),Rae=Nt(),BLe=Rae.EPOCHJD,HLe=Rae.ONEDAY,T8={valType:"enumerated",values:Pd.sortObjectKeys(Dae.calendars),editType:"calc",dflt:"gregorian"},Pae=function(e,r,t,a){var n={};return n[t]=T8,Pd.coerce(e,r,n,t,a)},ULe=function(e,r,t,a){for(var n=0;n{"use strict";Iae.exports=zae()});var ZLe=N(($He,Hae)=>{var Bae=HU();Bae.register([GG(),CY(),ZV(),dW(),SW(),Lj(),Gj(),CZ(),iX(),mte(),lae(),Oae()]);Hae.exports=Bae});return ZLe();})(); +`),jSe=Dre("IHDR");Rre.exports=function(e){if(!(e.length<24)&&Cre(e,0,WSe)&&Cre(e,12,jSe))return{width:Ere(e,16),height:Ere(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var zre=N((jBe,Nre)=>{"use strict";var ZSe=_t().str2arr,XSe=_t().sliceEq,Fre=_t().readUInt32BE,JSe=ZSe("8BPS\0");Nre.exports=function(e){if(!(e.length<22)&&XSe(e,0,JSe))return{width:Fre(e,18),height:Fre(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var Bre=N((ZBe,Ore)=>{"use strict";function $Se(e){return e===32||e===9||e===13||e===10}function Cv(e){return typeof e=="number"&&isFinite(e)&&e>0}function KSe(e){var r=0,t=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(r=3);r]*>/,eqe=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,rqe=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,tqe=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,aqe=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,Ire=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function nqe(e){var r=e.match(rqe),t=e.match(tqe),a=e.match(aqe);return{width:r&&(r[1]||r[2]),height:t&&(t[1]||t[2]),viewbox:a&&(a[1]||a[2])}}function Jo(e){return Ire.test(e)?e.match(Ire)[0]:"px"}Ore.exports=function(e){if(KSe(e)){for(var r="",t=0;t{"use strict";var Gre=_t().str2arr,Hre=_t().sliceEq,iqe=_t().readUInt16LE,oqe=_t().readUInt16BE,lqe=_t().readUInt32LE,sqe=_t().readUInt32BE,uqe=Gre("II*\0"),fqe=Gre("MM\0*");function s3(e,r,t){return t?oqe(e,r):iqe(e,r)}function jT(e,r,t){return t?sqe(e,r):lqe(e,r)}function Ure(e,r,t){var a=s3(e,r+2,t),n=jT(e,r+4,t);return n!==1||a!==3&&a!==4?null:a===3?s3(e,r+8,t):jT(e,r+8,t)}Vre.exports=function(e){if(!(e.length<8)&&!(!Hre(e,0,uqe)&&!Hre(e,0,fqe))){var r=e[0]===77,t=jT(e,4,r)-8;if(!(t<0)){var a=t+8;if(!(e.length-a<2)){var n=s3(e,a+0,r)*12;if(!(n<=0)&&(a+=2,!(e.length-a{"use strict";var Zre=_t().str2arr,Wre=_t().sliceEq,jre=_t().readUInt16LE,ZT=_t().readUInt32LE,cqe=o3(),vqe=Zre("RIFF"),hqe=Zre("WEBP");function dqe(e,r){if(!(e[r+3]!==157||e[r+4]!==1||e[r+5]!==42))return{width:jre(e,r+6)&16383,height:jre(e,r+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function pqe(e,r){if(e[r]===47){var t=ZT(e,r+1);return{width:(t&16383)+1,height:(t>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function yqe(e,r){return{width:(e[r+6]<<16|e[r+5]<<8|e[r+4])+1,height:(e[r+9]<e.length)){for(;r+8=10?t=t||dqe(e,r+8):i==="VP8L"&&o>=9?t=t||pqe(e,r+8):i==="VP8X"&&o>=10?t=t||yqe(e,r+8):i==="EXIF"&&(a=cqe.get_orientation(e.slice(r+8,r+8+o)),r=1/0),r+=8+o}if(t)return a>0&&(t.orientation=a),t}}}});var Kre=N(($Be,$re)=>{"use strict";$re.exports={avif:yre(),bmp:bre(),gif:Are(),ico:Sre(),jpeg:Lre(),png:Pre(),psd:zre(),svg:Bre(),tiff:Yre(),webp:Jre()}});var Qre=N((KBe,JT)=>{"use strict";var XT=Kre();function mqe(e){for(var r=Object.keys(XT),t=0;t{"use strict";var gqe=Qre(),bqe=yl().IMAGE_URL_PREFIX,xqe=sv().Buffer;ete.getImageSize=function(e){var r=e.replace(bqe,""),t=new xqe(r,"base64");return gqe(t)}});var nte=N((eHe,ate)=>{"use strict";var tte=Ce(),_qe=tv(),wqe=Rr(),u3=Ir(),Tqe=Ce().maxRowLength,Aqe=rte().getImageSize;ate.exports=function(r,t){var a,n;if(t._hasZ)a=t.z.length,n=Tqe(t.z);else if(t._hasSource){var i=Aqe(t.source);a=i.height,n=i.width}var o=u3.getFromId(r,t.xaxis||"x"),l=u3.getFromId(r,t.yaxis||"y"),s=o.d2c(t.x0)-t.dx/2,u=l.d2c(t.y0)-t.dy/2,f,c=[s,s+n*t.dx],v=[u,u+a*t.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var qqe=Sr(),nf=Ce(),ite=nf.strTranslate,Lqe=ll(),Cqe=tv(),Eqe=Qw(),Dqe=pg().STYLE;ote.exports=function(r,t,a,n){var i=t.xaxis,o=t.yaxis,l=!r._context._exportedPlot&&Eqe();nf.makeTraceGroups(n,a,"im").each(function(s){var u=qqe.select(this),f=s[0],c=f.trace,v=(c.zsmooth==="fast"||c.zsmooth===!1&&l)&&!c._hasZ&&c._hasSource&&i.type==="linear"&&o.type==="linear";c._realImage=v;var d=f.z,p=f.x0,y=f.y0,m=f.w,x=f.h,w=c.dx,_=c.dy,b,T,k,M,q,E;for(E=0;b===void 0&&E0;)T=i.c2p(p+E*w),E--;for(E=0;M===void 0&&E0;)q=o.c2p(y+E*_),E--;if(TV[0];if(X||Z){var re=b+P/2,ce=M+R/2;G+="transform:"+ite(re+"px",ce+"px")+"scale("+(X?-1:1)+","+(Z?-1:1)+")"+ite(-re+"px",-ce+"px")+";"}}Y.attr("style",G);var oe=new Promise(function(fe){if(c._hasZ)fe();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===m&&c._canvas.el.height===x&&c._canvas.source===c.source)fe();else{var K=document.createElement("canvas");K.width=m,K.height=x;var Te=K.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var le=c._image;le.onload=function(){Te.drawImage(le,0,0),c._canvas={el:K,source:c.source},fe()},le.setAttribute("src",c.source)}}).then(function(){var fe,K;if(c._hasZ)K=B(function(pe,ie){var ve=d[ie][pe];return nf.isTypedArray(ve)&&(ve=Array.from(ve)),ve}),fe=K.toDataURL("image/png");else if(c._hasSource)if(v)fe=c.source;else{var Te=c._canvas.el.getContext("2d",{willReadFrequently:!0}),le=Te.getImageData(0,0,m,x).data;K=B(function(pe,ie){var ve=4*(ie*m+pe);return[le[ve],le[ve+1],le[ve+2],le[ve+3]]}),fe=K.toDataURL("image/png")}Y.attr({"xlink:href":fe,height:R,width:P,x:b,y:M})});r._promises.push(oe)})}});var ute=N((tHe,ste)=>{"use strict";var Rqe=Sr();ste.exports=function(r){Rqe.select(r).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}});var hte=N((aHe,vte)=>{"use strict";var fte=Fn(),cte=Ce(),f3=cte.isArrayOrTypedArray,Pqe=tv();vte.exports=function(r,t,a){var n=r.cd[0],i=n.trace,o=r.xa,l=r.ya;if(!(fte.inbox(t-n.x0,t-(n.x0+n.w*i.dx),0)>0||fte.inbox(a-n.y0,a-(n.y0+n.h*i.dy),0)>0)){var s=Math.floor((t-n.x0)/i.dx),u=Math.floor(Math.abs(a-n.y0)/i.dy),f;if(i._hasZ?f=n.z[u][s]:i._hasSource&&(f=i._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(s,u,1,1).data),!!f){var c=n.hi||i.hoverinfo,v;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(v=!0)}var p=Pqe.colormodel[i.colormodel],y=p.colormodel||i.colormodel,m=y.length,x=i._scaler(f),w=p.suffix,_=[];(i.hovertemplate||v)&&(_.push("["+[x[0]+w[0],x[1]+w[1],x[2]+w[2]].join(", ")),m===4&&_.push(", "+x[3]+w[3]),_.push("]"),_=_.join(""),r.extraText=y.toUpperCase()+": "+_);var b;f3(i.hovertext)&&f3(i.hovertext[u])?b=i.hovertext[u][s]:f3(i.text)&&f3(i.text[u])&&(b=i.text[u][s]);var T=l.c2p(n.y0+(u+.5)*i.dy),k=n.x0+(s+.5)*i.dx,M=n.y0+(u+.5)*i.dy,q="["+f.slice(0,i.colormodel.length).join(", ")+"]";return[cte.extendFlat(r,{index:[u,s],x0:o.c2p(n.x0+s*i.dx),x1:o.c2p(n.x0+(s+1)*i.dx),y0:T,y1:T,color:x,xVal:k,xLabelVal:k,yVal:M,yLabelVal:M,zLabelVal:q,text:b,hovertemplateLabels:{zLabel:q,colorLabel:_,"color[0]Label":x[0]+w[0],"color[1]Label":x[1]+w[1],"color[2]Label":x[2]+w[2],"color[3]Label":x[3]+w[3]}})]}}}});var pte=N((nHe,dte)=>{"use strict";dte.exports=function(r,t){return"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r.color=t.color,r.colormodel=t.trace.colormodel,r.z||(r.z=t.color),r}});var mte=N((iHe,yte)=>{"use strict";yte.exports={attributes:W6(),supplyDefaults:hX(),calc:nte(),plot:lte(),style:ute(),hoverPoints:hte(),eventData:pte(),moduleType:"trace",name:"image",basePlotModule:Li(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var bte=N((oHe,gte)=>{"use strict";gte.exports=mte()});var $T=N((lHe,xte)=>{"use strict";var Fqe=gn(),Nqe=Fc().attributes,zqe=da(),Iqe=si(),Oqe=Ta().hovertemplateAttrs,Bqe=Ta().texttemplateAttrs,Ed=xt().extendFlat,Hqe=ui().pattern,c3=zqe({editType:"plot",arrayOk:!0,colorEditType:"plot"});xte.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Iqe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:Hqe,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:Ed({},Fqe.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Oqe({},{keys:["label","color","value","percent","text"]}),texttemplate:Bqe({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Ed({},c3,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Ed({},c3,{}),outsidetextfont:Ed({},c3,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:Ed({},c3,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:Nqe({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var Ate=N((sHe,Tte)=>{"use strict";var Uqe=Rr(),Dd=Ce(),Gqe=$T(),Vqe=Fc().defaults,Yqe=zu().handleText,Wqe=Ce().coercePattern;function _te(e,r){var t=Dd.isArrayOrTypedArray(e),a=Dd.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,o=0;o0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function wte(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var o=a("marker.colors");Wqe(a,"marker.pattern",o),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function jqe(e,r,t,a){function n(w,_){return Dd.coerce(e,r,Gqe,w,_)}var i=n("labels"),o=n("values"),l=_te(i,o),s=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,wte(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate"),c;if(f||(c=n("textinfo",Dd.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),f||c&&c!=="none"){var v=n("textposition");Yqe(e,r,a,n,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(v)||v==="auto",p=d||v==="outside";p&&n("automargin"),(v==="inside"||v==="auto"||Array.isArray(v))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");Vqe(r,a,n);var y=n("hole"),m=n("title.text");if(m){var x=n("title.position",y?"middle center":"top center");!y&&x==="middle center"&&(r.title.position="top center"),Dd.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}Tte.exports={handleLabelsAndValues:_te,handleMarkerDefaults:wte,supplyDefaults:jqe}});var KT=N((uHe,Mte)=>{"use strict";Mte.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Ste=N((fHe,kte)=>{"use strict";var Zqe=Ce(),Xqe=KT();kte.exports=function(r,t){function a(n,i){return Zqe.coerce(r,t,Xqe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var e8=N((cHe,Cte)=>{"use strict";var Jqe=Rr(),QT=Sn(),$qe=Tr(),Kqe={};function Qqe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,o=r.marker.colors||[],l=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?y:r.sort;return b&&t.sort(function(T,k){return k.v-T.v}),t[0]&&(t[0].vTotal=p),t}function qte(e){return function(t,a){return!t||(t=QT(t),!t.isValid())?!1:(t=$qe.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function eLe(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],o=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=Lte(i,Kqe));for(var l=0,s=0;s{"use strict";var rLe=qo().appendArrayMultiPointValues;Ete.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),rLe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var eae=N((hHe,Qte)=>{"use strict";var Vn=Sr(),tLe=aa(),v3=Fn(),Ite=Tr(),El=Wr(),ja=Ce(),aLe=ja.strScale,Rte=ja.strTranslate,r8=Da(),Ote=M0(),nLe=Ote.recordMinTextSize,iLe=Ote.clearMinTextSize,Bte=Jm().TEXTPAD,Ar=H1(),h3=Dte(),Pte=Ce().isValidTextValue;function oLe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;iLe("pie",a),Gte(r,e),Jte(r,n);var i=ja.makeTraceGroups(a._pielayer,r,"trace").each(function(o){var l=Vn.select(this),s=o[0],u=s.trace;pLe(o),l.attr("stroke-linejoin","round"),l.each(function(){var f=Vn.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],v=!1;f.each(function(b,T){if(b.hidden){Vn.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,c[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var k=s.cx,M=s.cy,q=Vn.select(this),E=q.selectAll("path.surface").data([b]);if(E.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),q.call(Hte,e,o),u.pull){var D=+Ar.castOption(u.pull,b.pts)||0;D>0&&(k+=D*b.pxmid[0],M+=D*b.pxmid[1])}b.cxFinal=k,b.cyFinal=M;function P(U,V,X,Z){var re=Z*(V[0]-U[0]),ce=Z*(V[1]-U[1]);return"a"+Z*s.r+","+Z*s.r+" 0 "+b.largeArc+(X?" 1 ":" 0 ")+re+","+ce}var R=u.hole;if(b.v===s.vTotal){var z="M"+(k+b.px0[0])+","+(M+b.px0[1])+P(b.px0,b.pxmid,!0,1)+P(b.pxmid,b.px0,!0,1)+"Z";R?E.attr("d","M"+(k+R*b.px0[0])+","+(M+R*b.px0[1])+P(b.px0,b.pxmid,!1,R)+P(b.pxmid,b.px0,!1,R)+"Z"+z):E.attr("d",z)}else{var O=P(b.px0,b.px1,!0,1);if(R){var B=1-R;E.attr("d","M"+(k+R*b.px1[0])+","+(M+R*b.px1[1])+P(b.px1,b.px0,!1,R)+"l"+B*b.px0[0]+","+B*b.px0[1]+O+"Z")}else E.attr("d","M"+k+","+M+"l"+b.px0[0]+","+b.px0[1]+O+"Z")}$te(e,b,s);var Y=Ar.castOption(u.textposition,b.pts),G=q.selectAll("g.slicetext").data(b.text&&Y!=="none"?[0]:[]);G.enter().append("g").classed("slicetext",!0),G.exit().remove(),G.each(function(){var U=ja.ensureSingle(Vn.select(this),"text","",function(K){K.attr("data-notex",1)}),V=ja.ensureUniformFontSize(e,Y==="outside"?sLe(u,b,a.font):Ute(u,b,a.font));U.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(El.font,V).call(r8.convertToTspans,e);var X=El.bBox(U.node()),Z;if(Y==="outside")Z=zte(X,b);else if(Z=Vte(X,b,s),Y==="auto"&&Z.scale<1){var re=ja.ensureUniformFontSize(e,u.outsidetextfont);U.call(El.font,re),X=El.bBox(U.node()),Z=zte(X,b)}var ce=Z.textPosAngle,oe=ce===void 0?b.pxmid:d3(s.r,ce);if(Z.targetX=k+oe[0]*Z.rCenter+(Z.x||0),Z.targetY=M+oe[1]*Z.rCenter+(Z.y||0),Kte(Z,X),Z.outside){var fe=Z.targetY;b.yLabelMin=fe-X.height/2,b.yLabelMid=fe,b.yLabelMax=fe+X.height/2,b.labelExtraX=0,b.labelExtraY=0,v=!0}Z.fontSize=V.size,nLe(u.type,Z,a),o[T].transform=Z,ja.setTransormAndDisplay(U,Z)})});var d=Vn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var b=ja.ensureSingle(Vn.select(this),"text","",function(M){M.attr("data-notex",1)}),T=u.title.text;u._meta&&(T=ja.templateString(T,u._meta)),b.text(T).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(El.font,u.title.font).call(r8.convertToTspans,e);var k;u.title.position==="middle center"?k=cLe(s):k=Zte(s,n),b.attr("transform",Rte(k.x,k.y)+aLe(Math.min(1,k.scale))+Rte(k.tx,k.ty))}),v&&hLe(c,u),lLe(f,u),v&&u.automargin){var p=El.bBox(l.node()),y=u.domain,m=n.w*(y.x[1]-y.x[0]),x=n.h*(y.y[1]-y.y[0]),w=(.5*m-s.r)/n.w,_=(.5*x-s.r)/n.h;tLe.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-w,xr:y.x[1]+w,yb:y.y[0]-_,yt:y.y[1]+_,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var o=Vn.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function lLe(e,r){e.each(function(t){var a=Vn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,ja.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],o=t.cyFinal+t.pxmid[1],l="M"+i+","+o,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?l+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):l+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else l+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;ja.ensureSingle(a,"path","textline").call(Ite.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:l,fill:"none"})})}function Hte(e,r,t){var a=t[0],n=a.cx,i=a.cy,o=a.trace,l=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[o.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=v3.castHoverinfo({hoverinfo:[Ar.castOption(c,s.pts)],_module:o._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var v=s.rInscribed||0,d=n+s.pxmid[0]*(1-v),p=i+s.pxmid[1]*(1-v),y=u.separators,m=[];if(c&&c.indexOf("label")!==-1&&m.push(s.label),s.text=Ar.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var x=s.text;ja.isValidTextValue(x)&&m.push(x)}s.value=s.v,s.valueLabel=Ar.formatPieValue(s.v,y),c&&c.indexOf("value")!==-1&&m.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Ar.formatPiePercent(s.percent,y),c&&c.indexOf("percent")!==-1&&m.push(s.percentLabel);var w=f.hoverlabel,_=w.font,b=[];v3.loneHover({trace:o,x0:d-v*a.r,x1:d+v*a.r,y:p,_x0:l?n+s.TL[0]:d-v*a.r,_x1:l?n+s.TR[0]:d+v*a.r,_y0:l?i+s.TL[1]:p-v*a.r,_y1:l?i+s.BL[1]:p+v*a.r,text:m.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Ar.castOption(w.bgcolor,s.pts)||s.color,borderColor:Ar.castOption(w.bordercolor,s.pts),fontFamily:Ar.castOption(_.family,s.pts),fontSize:Ar.castOption(_.size,s.pts),fontColor:Ar.castOption(_.color,s.pts),nameLength:Ar.castOption(w.namelength,s.pts),textAlign:Ar.castOption(w.align,s.pts),hovertemplate:Ar.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[h3(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,r.emit("plotly_hover",{points:[h3(s,f)],event:Vn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[o.index],c=Vn.select(this).datum();o._hasHoverEvent&&(s.originalEvent=Vn.event,r.emit("plotly_unhover",{points:[h3(c,f)],event:Vn.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(v3.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[o.index];r._dragging||u.hovermode===!1||(r._hoverdata=[h3(s,f)],v3.click(r,Vn.event))})}function sLe(e,r,t){var a=Ar.castOption(e.outsidetextfont.color,r.pts)||Ar.castOption(e.textfont.color,r.pts)||t.color,n=Ar.castOption(e.outsidetextfont.family,r.pts)||Ar.castOption(e.textfont.family,r.pts)||t.family,i=Ar.castOption(e.outsidetextfont.size,r.pts)||Ar.castOption(e.textfont.size,r.pts)||t.size,o=Ar.castOption(e.outsidetextfont.weight,r.pts)||Ar.castOption(e.textfont.weight,r.pts)||t.weight,l=Ar.castOption(e.outsidetextfont.style,r.pts)||Ar.castOption(e.textfont.style,r.pts)||t.style,s=Ar.castOption(e.outsidetextfont.variant,r.pts)||Ar.castOption(e.textfont.variant,r.pts)||t.variant,u=Ar.castOption(e.outsidetextfont.textcase,r.pts)||Ar.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Ar.castOption(e.outsidetextfont.lineposition,r.pts)||Ar.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Ar.castOption(e.outsidetextfont.shadow,r.pts)||Ar.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function Ute(e,r,t){var a=Ar.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Ar.castOption(e._input.textfont.color,r.pts));var n=Ar.castOption(e.insidetextfont.family,r.pts)||Ar.castOption(e.textfont.family,r.pts)||t.family,i=Ar.castOption(e.insidetextfont.size,r.pts)||Ar.castOption(e.textfont.size,r.pts)||t.size,o=Ar.castOption(e.insidetextfont.weight,r.pts)||Ar.castOption(e.textfont.weight,r.pts)||t.weight,l=Ar.castOption(e.insidetextfont.style,r.pts)||Ar.castOption(e.textfont.style,r.pts)||t.style,s=Ar.castOption(e.insidetextfont.variant,r.pts)||Ar.castOption(e.textfont.variant,r.pts)||t.variant,u=Ar.castOption(e.insidetextfont.textcase,r.pts)||Ar.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Ar.castOption(e.insidetextfont.lineposition,r.pts)||Ar.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Ar.castOption(e.insidetextfont.shadow,r.pts)||Ar.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||Ite.contrast(r.color),family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function Gte(e,r){for(var t,a,n=0;n=-4;w-=2)x(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)x(Math.PI*(w+1),"tan")}if(c||d){for(w=4;w>=-4;w-=2)x(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)x(Math.PI*(w+.5),"rad")}}if(l||p||c){var _=Math.sqrt(e.width*e.width+e.height*e.height);if(m={scale:n*a*2/_,rCenter:1-n,rotate:0},m.textPosAngle=(r.startangle+r.stopangle)/2,m.scale>=1)return m;y.push(m)}(p||d)&&(m=Fte(e,a,o,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m)),(p||v)&&(m=Nte(e,a,o,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m));for(var b=0,T=0,k=0;k=1)break}return y[b]}function uLe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function cLe(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function Zte(e,r){var t=1,a=1,n,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,n=Xte(i),i.title.position.indexOf("top")!==-1?(o.y-=(1+n)*e.r,l.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(o.y+=(1+n)*e.r);var s=vLe(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,o.x-=(1+n)*s,l.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,o.x+=(1+n)*s,l.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=t8(e,r)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(t,a),tx:l.tx,ty:l.ty}}function vLe(e,r){return e/(r===void 0?1:r)}function t8(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function Xte(e){var r=e.pull;if(!r)return 0;var t;if(ja.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function hLe(e,r){var t,a,n,i,o,l,s,u,f,c,v,d,p;function y(_,b){return _.pxmid[1]-b.pxmid[1]}function m(_,b){return b.pxmid[1]-_.pxmid[1]}function x(_,b){b||(b={});var T=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),k=a?_.yLabelMin:_.yLabelMax,M=a?_.yLabelMax:_.yLabelMin,q=_.cyFinal+o(_.px0[1],_.px1[1]),E=T-k,D,P,R,z,O,B;if(E*s>0&&(_.labelExtraY=E),!!ja.isArrayOrTypedArray(r.pull))for(P=0;P=(Ar.castOption(r.pull,R.pts)||0))&&((_.pxmid[1]-R.pxmid[1])*s>0?(z=R.cyFinal+o(R.px0[1],R.px1[1]),E=z-k-_.labelExtraY,E*s>0&&(_.labelExtraY+=E)):(M+_.labelExtraY-q)*s>0&&(D=3*l*Math.abs(P-c.indexOf(_)),O=R.cxFinal+i(R.px0[0],R.px1[0]),B=O+D-(_.cxFinal+_.pxmid[0])-_.labelExtraX,B*l>0&&(_.labelExtraX+=B)))}for(a=0;a<2;a++)for(n=a?y:m,o=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,l=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],v=0;v1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}o=Math.min(o,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=fLe(u,r))}function d3(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function $te(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,o=n.textinfo;if(!i&&o&&o!=="none"){var l=o.split("+"),s=function(b){return l.indexOf(b)!==-1},u=s("label"),f=s("text"),c=s("value"),v=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var y=Ar.getFirstFilled(n.text,r.pts);Pte(y)&&p.push(y)}c&&p.push(Ar.formatPieValue(r.v,d)),v&&p.push(Ar.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("
")}function m(b){return{label:b.label,value:b.v,valueLabel:Ar.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:Ar.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:ja.castOption(n,b.i,"customdata")}}if(i){var x=ja.castOption(n,r.i,"texttemplate");if(!x)r.text="";else{var w=m(r),_=Ar.getFirstFilled(n.text,r.pts);(Pte(_)||_==="")&&(w.text=_),r.text=ja.texttemplateString(x,w,e._fullLayout._d3locale,w,n._meta||{})}}}function Kte(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2;e.textX=i*a-o*n,e.textY=i*n+o*a,e.noCenter=!0}Qte.exports={plot:oLe,formatSliceLabel:$te,transformInsideText:Vte,determineInsideTextFont:Ute,positionTitleOutside:Zte,prerenderTitles:Gte,layoutAreas:Jte,attachFxHandlers:Hte,computeTransform:Kte}});var aae=N((dHe,tae)=>{"use strict";var rae=Sr(),yLe=U1(),mLe=M0().resizeText;tae.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");mLe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,o=rae.select(this);o.style({opacity:i.opacity}),o.selectAll("path.surface").each(function(l){rae.select(this).call(yLe,l,i,r)})})}});var iae=N(Ev=>{"use strict";var nae=aa();Ev.name="pie";Ev.plot=function(e,r,t,a){nae.plotBasePlot(Ev.name,e,r,t,a)};Ev.clean=function(e,r,t,a){nae.cleanBasePlot(Ev.name,e,r,t,a)}});var lae=N((yHe,oae)=>{"use strict";oae.exports={attributes:$T(),supplyDefaults:Ate().supplyDefaults,supplyLayoutDefaults:Ste(),layoutAttributes:KT(),calc:e8().calc,crossTraceCalc:e8().crossTraceCalc,plot:eae().plot,style:aae(),styleOne:U1(),moduleType:"trace",name:"pie",basePlotModule:iae(),categories:["pie-like","pie","showLegend"],meta:{}}});var uae=N((mHe,sae)=>{"use strict";sae.exports=lae()});var en=N((gHe,cae)=>{"use strict";var fae=Object.getOwnPropertySymbols,gLe=Object.prototype.hasOwnProperty,bLe=Object.prototype.propertyIsEnumerable;function xLe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function _Le(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}cae.exports=_Le()?Object.assign:function(e,r){for(var t,a=xLe(e),n,i=1;i{var y3=en();function vae(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}y3(vae.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function a8(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(zr.local.invalidDate||zr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function p3(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}y3(a8.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(zr.local.invalidDate||zr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(zr.local.differentCalendars||zr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+p3(Math.abs(this.year()),4)+"-"+p3(this.month(),2)+"-"+p3(this.day(),2)}});function n8(){this.shortYearCutoff="+10"}y3(n8.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,zr.local.invalidDate||zr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new a8(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,zr.local.invalidYear||zr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,zr.local.invalidYear||zr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+p3(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,zr.local.invalidYear||zr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,zr.local.invalidMonth||zr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,zr.local.invalidMonth||zr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,zr.local.invalidYear||zr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,zr.local.invalidDate||zr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,zr.local.invalidDate||zr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,zr.local.invalidDate||zr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,zr.local.invalidDate||zr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;oc-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,zr.local.invalidDate||zr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,zr.local.invalidDate||zr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var zr=hae.exports=new vae;zr.cdate=a8;zr.baseCalendar=n8;zr.calendars.gregorian=i8});var dae=N(()=>{var o8=en(),Na=rn();o8(Na.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Na.local=Na.regionalOptions[""];o8(Na.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});o8(Na.baseCalendar.prototype,{UNIX_EPOCH:Na.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Na.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Na.local.invalidFormat||Na.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,T){for(var k=1;_+k1},f=function(b,T,k,M){var q=""+T;if(u(b,M))for(;q.length1},w=function(R,z){var O=x(R,z),B=[2,3,O?4:2,O?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],Y=new RegExp("^-?\\d{1,"+B+"}"),G=r.substring(q).match(Y);if(!G)throw(Na.local.missingNumberAt||Na.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=G[0].length,parseInt(G[0],10)},_=this,b=function(){if(typeof l=="function"){x("m");var R=l.call(_,r.substring(q));return q+=R.length,R}return w("m")},T=function(R,z,O,B){for(var Y=x(R,B)?O:z,G=0;G-1){v=1,d=p;for(var P=this.daysInMonth(c,v);d>P;P=this.daysInMonth(c,v))v++,d-=P}return f>-1?this.fromJD(f):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var pae=N(()=>{var Ds=rn(),wLe=en(),l8=Ds.instance();function m3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m3.prototype=new Ds.baseCalendar;wLe(m3.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(ALe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(MLe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(kLe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Ds.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Ds.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Ds.local.invalidyear),n=Ps[a-Ps[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=l8.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Rs[e-Rs[0]],a=t>>13,n=a?12:11;if(r>n)throw Ds.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Ds.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=qLe(e,i,t,n);return l8.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=l8.fromJD(e),t=SLe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(TLe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(m3.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var TLe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,ALe=/^\d?\d[iI]?/m,MLe=/^闰?十?[一二三四五六七八九]?月/m,kLe=/^闰?十?[一二三四五六七八九]?/m;Ds.calendars.chinese=m3;var Rs=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Ps=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function SLe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Ps[n.year-Ps[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Ps[i.year-Ps[0]];var c=u>>9&4095,v=u>>5&15,d=u&31,p,y=new Date(c,v-1,d),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-y)/(24*3600*1e3));var x=Rs[i.year-Rs[0]],w;for(w=0;w<13;w++){var _=x&1<<12-w?30:29;if(p<_)break;p-=_}var b=x>>13;return!b||w=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var v=Rs[o.year-Rs[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var y=0;y>9&4095,_=x>>5&15,b=x&31,T=new Date(w,_-1,b+c);return i.year=T.getFullYear(),i.month=1+T.getMonth(),i.day=T.getDate(),i}});var yae=N(()=>{var of=rn(),LLe=en();function s8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}s8.prototype=new of.baseCalendar;LLe(s8.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,of.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,of.local.invalidYear||of.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,of.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,of.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});of.calendars.coptic=s8});var mae=N(()=>{var Dl=rn(),CLe=en();function u8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}u8.prototype=new Dl.baseCalendar;CLe(u8.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Dl.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Dl.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Dl.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Dl.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Dl.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Dl.local.invalidDate);return{century:ELe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Dl.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var ELe={20:"Fruitbat",21:"Anchovy"};Dl.calendars.discworld=u8});var gae=N(()=>{var lf=rn(),DLe=en();function f8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}f8.prototype=new lf.baseCalendar;DLe(f8.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,lf.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,lf.local.invalidYear||lf.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,lf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,lf.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});lf.calendars.ethiopian=f8});var bae=N(()=>{var Fs=rn(),RLe=en();function c8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}c8.prototype=new Fs.baseCalendar;RLe(c8.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Fs.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,g3(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fs.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Fs.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Fs.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&g3(this.daysInYear(e),10)===5?30:r===9&&g3(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Fs.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Fs.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function g3(e,r){return e-r*Math.floor(e/r)}Fs.calendars.hebrew=c8});var xae=N(()=>{var Rd=rn(),PLe=en();function v8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}v8.prototype=new Rd.baseCalendar;PLe(v8.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rd.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Rd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Rd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});Rd.calendars.islamic=v8});var _ae=N(()=>{var Pd=rn(),FLe=en();function h8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}h8.prototype=new Pd.baseCalendar;FLe(h8.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Pd.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Pd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Pd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});Pd.calendars.julian=h8});var Tae=N(()=>{var Gi=rn(),NLe=en();function p8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}p8.prototype=new Gi.baseCalendar;NLe(p8.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Gi.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Gi.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Gi.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Gi.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Gi.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Gi.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Gi.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Gi.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Gi.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=d8(e+8+17*20,365);return[Math.floor(r/20)+1,d8(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[wae(e+20,20),wae(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Gi.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function d8(e,r){return e-r*Math.floor(e/r)}function wae(e,r){return d8(e-1,r)+1}Gi.calendars.mayan=p8});var Mae=N(()=>{var sf=rn(),zLe=en();function y8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y8.prototype=new sf.baseCalendar;var Aae=sf.instance("gregorian");zLe(y8.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,sf.local.invalidYear||sf.regionalOptions[""].invalidYear);return Aae.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,sf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,sf.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});sf.calendars.nanakshahi=y8});var kae=N(()=>{var uf=rn(),ILe=en();function m8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m8.prototype=new uf.baseCalendar;ILe(m8.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,uf.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,uf.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,uf.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=uf.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=uf.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Dv=rn(),OLe=en();function x3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function b3(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}x3.prototype=new Dv.baseCalendar;OLe(x3.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Dv.local.invalidYear);return b3(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Dv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Dv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,b3(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Dv.calendars.persian=x3;Dv.calendars.jalali=x3});var qae=N(()=>{var ff=rn(),BLe=en(),_3=ff.instance();function g8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}g8.prototype=new ff.baseCalendar;BLe(g8.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ff.local.invalidYear),t=this._t2gYear(r.year());return _3.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,ff.local.invalidYear),n=this._t2gYear(a.year());return _3.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ff.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,ff.local.invalidDate),n=this._t2gYear(a.year());return _3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=_3.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});ff.calendars.taiwan=g8});var Lae=N(()=>{var cf=rn(),HLe=en(),w3=cf.instance();function b8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b8.prototype=new cf.baseCalendar;HLe(b8.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,cf.local.invalidYear),t=this._t2gYear(r.year());return w3.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,cf.local.invalidYear),n=this._t2gYear(a.year());return w3.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,cf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,cf.local.invalidDate),n=this._t2gYear(a.year());return w3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=w3.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});cf.calendars.thai=b8});var Cae=N(()=>{var vf=rn(),ULe=en();function x8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x8.prototype=new vf.baseCalendar;ULe(x8.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,vf.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,vf.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Ns[n]-Ns[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,vf.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Ns[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Ns[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=vf.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=vf.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});vf.calendars.ummalqura=x8;var Ns=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Dae=N((JHe,Eae)=>{"use strict";Eae.exports=rn();dae();pae();yae();mae();gae();bae();xae();_ae();Tae();Mae();kae();Sae();qae();Lae();Cae()});var Oae=N(($He,Iae)=>{"use strict";var Pae=Dae(),Fd=Ce(),Fae=Nt(),GLe=Fae.EPOCHJD,VLe=Fae.ONEDAY,T8={valType:"enumerated",values:Fd.sortObjectKeys(Pae.calendars),editType:"calc",dflt:"gregorian"},Nae=function(e,r,t,a){var n={};return n[t]=T8,Fd.coerce(e,r,n,t,a)},YLe=function(e,r,t,a){for(var n=0;n{"use strict";Bae.exports=Oae()});var $Le=N((QHe,Gae)=>{var Uae=GU();Uae.register([YG(),DV(),JY(),yW(),LW(),Ej(),Yj(),DZ(),lX(),bte(),uae(),Hae()]);Gae.exports=Uae});return $Le();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-finance.js b/dist/plotly-finance.js index 06d7383133f..c865a559d46 100644 --- a/dist/plotly-finance.js +++ b/dist/plotly-finance.js @@ -1,5 +1,5 @@ /** -* plotly.js (finance) v3.1.1 +* plotly.js (finance) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -42,7 +42,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.1"; + exports.version = "3.1.2"; } }); @@ -13771,9 +13771,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -21446,7 +21446,7 @@ var Plotly = (() => { }, exponentformat: { valType: "enumerated", - values: ["none", "e", "E", "power", "SI", "B"], + values: ["none", "e", "E", "power", "SI", "B", "SI extended"], dflt: "B", editType: "ticks" }, @@ -25032,7 +25032,7 @@ var Plotly = (() => { var subtitleEnabled = !!subtitleProp; var subtitlePlaceholder = options.subtitlePlaceholder; var subtitle = (cont.title || {}).subtitle || { text: "", font: {} }; - var subtitleTxt = subtitle.text.trim(); + var subtitleTxt = (subtitle.text || "").trim(); var subtitleIsPlaceholder = false; var subtitleOpacity = 1; var subtitleFont = subtitle.font; @@ -25086,7 +25086,7 @@ var Plotly = (() => { var subtitleEl = null; var subtitleClass = titleClass + "-subtitle"; var subtitleElShouldExist = subtitleTxt || editable; - if (subtitleEnabled && subtitleElShouldExist) { + if (subtitleEnabled) { subtitleEl = group.selectAll("text." + subtitleClass).data(subtitleElShouldExist ? [0] : []); subtitleEl.enter().append("text"); subtitleEl.text(subtitleTxt).attr("class", subtitleClass); @@ -25137,7 +25137,7 @@ var Plotly = (() => { shadow: fontShadow, lineposition: fontLineposition }).attr(attributes).call(svgTextUtils.convertToTspans, gd, adjustSubtitlePosition); - if (subtitleEl2) { + if (subtitleEl2 && !subtitleEl2.empty()) { var titleElMathGroup = group.select("." + titleClass + "-math-group"); var titleElBbox2 = titleEl.node().getBBox(); var titleElMathBbox = titleElMathGroup.node() ? titleElMathGroup.node().getBBox() : void 0; @@ -25258,7 +25258,7 @@ var Plotly = (() => { } } el.classed("js-placeholder", titleIsPlaceholder); - if (subtitleEl) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); + if (subtitleEl && !subtitleEl.empty()) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); return group; } module.exports = { @@ -27577,7 +27577,7 @@ var Plotly = (() => { var rangeexp = Math.floor(Math.log(maxend) / Math.LN10 + 0.01); var minexponent = ax.minexponent === void 0 ? 3 : ax.minexponent; if (Math.abs(rangeexp) > minexponent) { - if (isSIFormat(ax.exponentformat) && !beyondSI(rangeexp)) { + if (isSIFormat(ax.exponentformat) && ax.exponentformat !== "SI extended" && !beyondSI(rangeexp) || isSIFormat(ax.exponentformat) && ax.exponentformat === "SI extended" && !beyondSIExtended(rangeexp)) { ax._tickexponent = 3 * Math.round((rangeexp - 1) / 3); } else ax._tickexponent = rangeexp; } @@ -27801,7 +27801,7 @@ var Plotly = (() => { var p = +parts[1]; var absP = Math.abs(p); var exponentFormat = ax.exponentformat; - if (exponentFormat === "power" || isSIFormat(exponentFormat) && beyondSI(p)) { + if (exponentFormat === "power" || isSIFormat(exponentFormat) && exponentFormat !== "SI extended" && beyondSI(p) || isSIFormat(exponentFormat) && exponentFormat === "SI extended" && beyondSIExtended(p)) { out.text = parts[0]; if (absP > 0) out.text += "x10"; if (out.text === "1x10") out.text = "10"; @@ -27917,12 +27917,20 @@ var Plotly = (() => { ]; } var SIPREFIXES = ["f", "p", "n", "\u03BC", "m", "", "k", "M", "G", "T"]; - function isSIFormat(exponentFormat) { - return exponentFormat === "SI" || exponentFormat === "B"; - } + var SIPREFIXES_EXTENDED = ["q", "r", "y", "z", "a", ...SIPREFIXES, "P", "E", "Z", "Y", "R", "Q"]; + var isSIFormat = (exponentFormat) => ["SI", "SI extended", "B"].includes(exponentFormat); function beyondSI(exponent) { return exponent > 14 || exponent < -15; } + function beyondSIExtended(exponent) { + return exponent > 32 || exponent < -30; + } + function shouldSwitchSIToPowerFormat(exponent, exponentFormat) { + if (!isSIFormat(exponentFormat)) return false; + if (exponentFormat === "SI extended" && beyondSIExtended(exponent)) return true; + if (exponentFormat !== "SI extended" && beyondSI(exponent)) return true; + return false; + } function numFormat(v, ax, fmtoverride, hover) { var isNeg = v < 0; var tickRound = ax._tickround; @@ -27970,7 +27978,7 @@ var Plotly = (() => { v = Lib.numSeparate(v, ax._separators, separatethousands); } if (exponent && exponentFormat !== "hide") { - if (isSIFormat(exponentFormat) && beyondSI(exponent)) exponentFormat = "power"; + if (shouldSwitchSIToPowerFormat(exponent, exponentFormat)) exponentFormat = "power"; var signedExponent; if (exponent < 0) signedExponent = MINUS_SIGN + -exponent; else if (exponentFormat !== "power") signedExponent = "+" + exponent; @@ -27982,7 +27990,7 @@ var Plotly = (() => { } else if (exponentFormat === "B" && exponent === 9) { v += "B"; } else if (isSIFormat(exponentFormat)) { - v += SIPREFIXES[exponent / 3 + 5]; + v += exponentFormat === "SI extended" ? SIPREFIXES_EXTENDED[exponent / 3 + 10] : SIPREFIXES[exponent / 3 + 5]; } } if (isNeg) return MINUS_SIGN + v; @@ -30267,9 +30275,11 @@ var Plotly = (() => { return Lib.coerce(traceIn, traceOut, plotsAttrs, attr, dflt); }; var globalFont = layoutOut.font || {}; - var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { overrideDflt: { - size: Math.round(globalFont.size * 1.1) - } }); + var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { + overrideDflt: { + size: Math.round(globalFont.size * 1.1) + } + }); var legendTraceCount = 0; var legendReallyHasATrace = false; var defaultOrder = "normal"; @@ -30416,7 +30426,7 @@ var Plotly = (() => { for (i = 0; i < legends.length; i++) { var legendId = legends[i]; groupDefaults(legendId, layoutIn, layoutOut, allLegendsData); - if (layoutOut[legendId] && layoutOut[legendId].visible) { + if (layoutOut[legendId]) { layoutOut[legendId]._id = legendId; } layoutOut._legends.push(legendId); @@ -36034,7 +36044,7 @@ var Plotly = (() => { } } function setClipPath(shapePath, gd, shapeOptions) { - var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][1-9]* *domain/g, ""); + var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][0-9]* *domain/g, ""); Drawing.setClipUrl( shapePath, clipAxes ? "clip" + gd._fullLayout._uid + clipAxes : null, @@ -43879,7 +43889,6 @@ var Plotly = (() => { "src/plot_api/helpers.js"(exports) { "use strict"; var isNumeric = require_fast_isnumeric(); - var m4FromQuat = require_fromQuat(); var Registry = require_registry(); var Lib = require_lib(); var Plots = require_plots(); @@ -43888,6 +43897,7 @@ var Plotly = (() => { var cleanId = AxisIds.cleanId; var getFromTrace = AxisIds.getFromTrace; var traceIs = Registry.traceIs; + var AX_LETTERS = ["x", "y", "z"]; exports.clearPromiseQueue = function(gd) { if (Array.isArray(gd._promises) && gd._promises.length > 0) { Lib.log("Clearing previous rejected promises from queue."); @@ -44054,12 +44064,7 @@ var Plotly = (() => { var increasingName = cleanFinanceDir(trace.increasing); var decreasingName = cleanFinanceDir(trace.decreasing); if (increasingName !== false && decreasingName !== false) { - var newName = commonPrefix( - increasingName, - decreasingName, - increasingShowlegend, - decreasingShowlegend - ); + var newName = commonPrefix(increasingName, decreasingName, increasingShowlegend, decreasingShowlegend); if (newName) trace.name = newName; } else if ((increasingName || decreasingName) && !trace.name) { trace.name = increasingName || decreasingName; @@ -44189,12 +44194,11 @@ var Plotly = (() => { } return false; }; - var axLetters = ["x", "y", "z"]; exports.clearAxisTypes = function(gd, traces, layoutUpdate) { for (var i = 0; i < traces.length; i++) { var trace = gd._fullData[i]; for (var j = 0; j < 3; j++) { - var ax = getFromTrace(gd, trace, axLetters[j]); + var ax = getFromTrace(gd, trace, AX_LETTERS[j]); if (ax && ax.type !== "log") { var axAttr = ax._name; var sceneName = ax._id.substr(1); @@ -44210,6 +44214,35 @@ var Plotly = (() => { } } }; + var collectionsAreEqual = (collection1, collection2) => { + const isArrayOrObject = (...vals) => vals.every((v) => Lib.isPlainObject(v)) || vals.every((v) => Array.isArray(v)); + if ([collection1, collection2].every((a) => Array.isArray(a))) { + if (collection1.length !== collection2.length) return false; + for (let i = 0; i < collection1.length; i++) { + const oldVal = collection1[i]; + const newVal = collection2[i]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } else if ([collection1, collection2].every((a) => Lib.isPlainObject(a))) { + if (Object.keys(collection1).length !== Object.keys(collection2).length) return false; + for (const k in collection1) { + if (k.startsWith("_")) continue; + const oldVal = collection1[k]; + const newVal = collection2[k]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } + return false; + }; + exports.collectionsAreEqual = collectionsAreEqual; } }); @@ -44317,21 +44350,28 @@ var Plotly = (() => { } } if (!fullLayout._glcanvas && fullLayout._has("gl")) { - fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data([{ - key: "contextLayer", - context: true, - pick: false - }, { - key: "focusLayer", - context: false, - pick: false - }, { - key: "pickLayer", - context: false, - pick: true - }], function(d) { - return d.key; - }); + fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data( + [ + { + key: "contextLayer", + context: true, + pick: false + }, + { + key: "focusLayer", + context: false, + pick: false + }, + { + key: "pickLayer", + context: false, + pick: true + } + ], + function(d) { + return d.key; + } + ); fullLayout._glcanvas.enter().append("canvas").attr("class", function(d) { return "gl-canvas gl-canvas-" + d.key.replace("Layer", ""); }).style({ @@ -44389,21 +44429,21 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([ - marginPushers, - subroutines.layoutStyles - ], gd); + return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); } function positionAndAutorange() { if (!recalc) { doAutoRangeAndConstraints(); return; } - return Lib.syncOrAsync([ - Registry.getComponentMethod("shapes", "calcAutorange"), - Registry.getComponentMethod("annotations", "calcAutorange"), - doAutoRangeAndConstraints - ], gd); + return Lib.syncOrAsync( + [ + Registry.getComponentMethod("shapes", "calcAutorange"), + Registry.getComponentMethod("annotations", "calcAutorange"), + doAutoRangeAndConstraints + ], + gd + ); } function doAutoRangeAndConstraints() { if (gd._transitioning) return; @@ -44414,28 +44454,19 @@ var Plotly = (() => { function drawAxes() { return Axes.draw(gd, graphWasEmpty ? "" : "redraw"); } - var seq = [ - Plots.previousPromises, - addFrames2, - drawFramework, - marginPushers, - marginPushersAgain - ]; + var seq = [Plots.previousPromises, addFrames2, drawFramework, marginPushers, marginPushersAgain]; if (hasCartesian) seq.push(positionAndAutorange); seq.push(subroutines.layoutStyles); if (hasCartesian) { - seq.push( - drawAxes, - function insideTickLabelsAutorange(gd2) { - var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; - if (insideTickLabelsUpdaterange) { - gd2._fullLayout._insideTickLabelsUpdaterange = void 0; - return relayout(gd2, insideTickLabelsUpdaterange).then(function() { - Axes.saveRangeInitial(gd2, true); - }); - } + seq.push(drawAxes, function insideTickLabelsAutorange(gd2) { + var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; + if (insideTickLabelsUpdaterange) { + gd2._fullLayout._insideTickLabelsUpdaterange = void 0; + return relayout(gd2, insideTickLabelsUpdaterange).then(function() { + Axes.saveRangeInitial(gd2, true); + }); } - ); + }); } seq.push( subroutines.drawData, @@ -44641,7 +44672,7 @@ var Plotly = (() => { } for (i = 0; i < traces.length; i++) { value = traces[i]; - if (typeof value !== "object" || (Array.isArray(value) || value === null)) { + if (typeof value !== "object" || Array.isArray(value) || value === null) { throw new Error("all values in traces array must be non-array objects"); } } @@ -44649,9 +44680,7 @@ var Plotly = (() => { newIndices = [newIndices]; } if (typeof newIndices !== "undefined" && newIndices.length !== traces.length) { - throw new Error( - "if indices is specified, traces.length must equal indices.length" - ); + throw new Error("if indices is specified, traces.length must equal indices.length"); } } function assertExtendTracesArgs(gd, update2, indices, maxPoints) { @@ -44671,7 +44700,9 @@ var Plotly = (() => { throw new Error("attribute " + key + " must be an array of length equal to indices array length"); } if (maxPointsIsObject && (!(key in maxPoints) || !Array.isArray(maxPoints[key]) || maxPoints[key].length !== update2[key].length)) { - throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object"); + throw new Error( + "when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object" + ); } } } @@ -44961,18 +44992,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - restyle, - [gd, specs.undoit, specs.traces], - restyle, - [gd, specs.redoit, specs.traces] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, restyle, [gd, specs.undoit, specs.traces], restyle, [gd, specs.redoit, specs.traces]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(); return plotDone.then(function() { @@ -45139,7 +45160,11 @@ var Plotly = (() => { var topOrBottom = orient === "top" || orient === "bottom"; if (finalPart === "thicknessmode") { var thicknorm = topOrBottom ? gs.h : gs.w; - doextra(prefixDot + "thickness", innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), i); + doextra( + prefixDot + "thickness", + innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), + i + ); } else { var lennorm = topOrBottom ? gs.w : gs.h; doextra(prefixDot + "len", innerContFull.len * (newVal === "fraction" ? 1 / lennorm : lennorm), i); @@ -45162,12 +45187,7 @@ var Plotly = (() => { } } undoit[ai][i] = undefinedToNull(oldVal); - var swapAttrs = [ - "swapxy", - "swapxyaxes", - "orientation", - "orientationaxes" - ]; + var swapAttrs = ["swapxy", "swapxyaxes", "orientation", "orientationaxes"]; if (swapAttrs.indexOf(ai) !== -1) { if (ai === "orientation") { param.set(newVal); @@ -45264,18 +45284,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - relayout, - [gd, specs.undoit], - relayout, - [gd, specs.redoit] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, relayout, [gd, specs.undoit], relayout, [gd, specs.redoit]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45515,7 +45525,7 @@ var Plotly = (() => { } else { if (ai === "dragmode" && (vi === false && vOld !== false || vi !== false && vOld === false)) { flags.plot = true; - } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && (ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select"))) { + } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select")) { flags.plot = true; } else if (valObject) editTypes.update(flags, valObject); else flags.calc = true; @@ -45602,18 +45612,13 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, update, [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], update, [ gd, - update, - [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], - update, - [gd, restyleSpecs.redoit, relayoutSpecs.redoit, restyleSpecs.traces] - ); + restyleSpecs.redoit, + relayoutSpecs.redoit, + restyleSpecs.traces + ]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45835,10 +45840,10 @@ var Plotly = (() => { } var configChanged = false; if (config) { - var oldConfig = Lib.extendDeep({}, gd._context); + const oldConfig = Lib.extendDeepAll({}, gd._context); gd._context = void 0; setPlotContext(gd, config); - configChanged = diffConfig(oldConfig, gd._context); + configChanged = !helpers.collectionsAreEqual(oldConfig, gd._context); } if (configChanged) { const eventListeners = gd._ev.eventNames().map((name2) => [name2, gd._ev.listeners(name2)]); @@ -45922,11 +45927,7 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); } @@ -46143,38 +46144,6 @@ var Plotly = (() => { } } } - function diffConfig(oldConfig, newConfig) { - var key; - for (key in oldConfig) { - if (key.charAt(0) === "_") continue; - var oldVal = oldConfig[key]; - var newVal = newConfig[key]; - if (oldVal !== newVal) { - if (Lib.isPlainObject(oldVal) && Lib.isPlainObject(newVal)) { - if (diffConfig(oldVal, newVal)) { - return true; - } - } else if (Array.isArray(oldVal) && Array.isArray(newVal)) { - if (oldVal.length !== newVal.length) { - return true; - } - for (var i = 0; i < oldVal.length; i++) { - if (oldVal[i] !== newVal[i]) { - if (Lib.isPlainObject(oldVal[i]) && Lib.isPlainObject(newVal[i])) { - if (diffConfig(oldVal[i], newVal[i])) { - return true; - } - } else { - return true; - } - } - } - } else { - return true; - } - } - } - } function animate(gd, frameOrGroupNameOrFrameList, animationOpts) { gd = Lib.getGraphDiv(gd); if (!Lib.isPlotDiv(gd)) { @@ -46443,9 +46412,13 @@ var Plotly = (() => { var collisionPresent = _frameHash[name] || _frameHashLocal[name]; if (name && newName && typeof newName === "number" && collisionPresent && numericNameWarningCount < numericNameWarningCountLimit) { numericNameWarningCount++; - Lib.warn('addFrames: overwriting frame "' + (_frameHash[name] || _frameHashLocal[name]).name + '" with a frame whose name of type "number" also equates to "' + name + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'); + Lib.warn( + 'addFrames: overwriting frame "' + (_frameHash[name] || _frameHashLocal[name]).name + '" with a frame whose name of type "number" also equates to "' + name + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.' + ); if (numericNameWarningCount === numericNameWarningCountLimit) { - Lib.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed."); + Lib.warn( + "addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed." + ); } } _frameHashLocal[lookupName] = { name: lookupName }; @@ -46465,7 +46438,9 @@ var Plotly = (() => { for (i = insertions.length - 1; i >= 0; i--) { frame = insertions[i].frame; if (typeof frame.name === "number") { - Lib.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"); + Lib.warn( + "Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings" + ); } if (!frame.name) { while (_frameHash[frame.name = "frame " + gd._transitionData._counter++]) ; @@ -56504,7 +56479,7 @@ var Plotly = (() => { if (axisOpts.side === "bottom") { Titles.draw(gd, axisOpts._id + "title", { propContainer: axisOpts, - propName: axisOpts._name + ".title", + propName: axisOpts._name + ".title.text", placeholder: fullLayout._dfltTitle.x, attributes: { x: axisOpts._offset + axisOpts._length / 2, @@ -58327,7 +58302,7 @@ var Plotly = (() => { function drawTitle(titleClass, titleOpts) { var dfltTitleOpts = { propContainer: ax, - propName: opts._propPrefix + "title", + propName: opts._propPrefix + "title.text", traceIndex: opts._traceIndex, _meta: opts._meta, placeholder: fullLayout._dfltTitle.colorbar, diff --git a/dist/plotly-finance.min.js b/dist/plotly-finance.min.js index 2ab87f037af..ed7d2566d50 100644 --- a/dist/plotly-finance.min.js +++ b/dist/plotly-finance.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (finance - minified) v3.1.1 +* plotly.js (finance - minified) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,13 +12,13 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var Ty=Object.defineProperty;var ZW=Object.getOwnPropertyDescriptor;var JW=Object.getOwnPropertyNames;var $W=Object.prototype.hasOwnProperty;var lt=(e,r)=>()=>(e&&(r=e(e=0)),r);var B=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),KW=(e,r)=>{for(var t in r)Ty(e,t,{get:r[t],enumerable:!0})},QW=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of JW(r))!$W.call(e,n)&&n!==t&&Ty(e,n,{get:()=>r[n],enumerable:!(a=ZW(r,n))||a.enumerable});return e};var G4=e=>QW(Ty({},"__esModule",{value:!0}),e);var th=B(U4=>{"use strict";U4.version="3.1.1"});var W4=B((V4,ah)=>{(function(r,t,a){t[r]=t[r]||a(),typeof ah!="undefined"&&ah.exports&&(ah.exports=t[r])})("Promise",typeof window!="undefined"?window:V4,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(_){return setImmediate(_)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(_,w,x,M){return Object.defineProperty(_,w,{value:x,writable:!0,configurable:M!==!1})}}catch(b){r=function(w,x,M){return w[x]=M,w}}a=function(){var _,w,x;function M(k,A){this.fn=k,this.self=A,this.next=void 0}return{add:function(A,S){x=new M(A,S),w?w.next=x:_=x,w=x,x=void 0},drain:function(){var A=_;for(_=w=t=void 0;A;)A.fn.call(A.self),A=A.next}}}();function l(b,_){a.add(b,_),t||(t=i(a.drain))}function o(b){var _,w=typeof b;return b!=null&&(w=="object"||w=="function")&&(_=b.then),typeof _=="function"?_:!1}function s(){for(var b=0;b0&&l(s,w))}catch(x){c.call(new d(w),x)}}}function c(b){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=b,_.state=2,_.chain.length>0&&l(s,_))}function h(b,_,w,x){for(var M=0;M<_.length;M++)(function(A){b.resolve(_[A]).then(function(D){w(A,D)},x)})(M)}function d(b){this.def=b,this.triggered=!1}function p(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function y(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var _=new p(this);this.then=function(x,M){var k={success:typeof x=="function"?x:!0,failure:typeof M=="function"?M:!1};return k.promise=new this.constructor(function(S,D){if(typeof S!="function"||typeof D!="function")throw TypeError("Not a function");k.resolve=S,k.reject=D}),_.chain.push(k),_.state!==0&&l(s,_),k.promise},this.catch=function(x){return this.then(void 0,x)};try{b.call(void 0,function(x){f.call(_,x)},function(x){c.call(_,x)})}catch(w){c.call(_,w)}}var m=r({},"constructor",y,!1);return y.prototype=m,r(m,"__NPO__",0,!1),r(y,"resolve",function(_){var w=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");M(_)})}),r(y,"reject",function(_){return new this(function(x,M){if(typeof x!="function"||typeof M!="function")throw TypeError("Not a function");M(_)})}),r(y,"all",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):_.length===0?w.resolve([]):new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");var A=_.length,S=Array(A),D=0;h(w,_,function(R,N){S[R]=N,++D===A&&M(S)},k)})}),r(y,"race",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");h(w,_,function(S,D){M(D)},k)})}),y})});var kr=B((Hpe,nh)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(v){return r.call(v)},a=self.document;function n(v){return v&&(v.ownerDocument||v.document||v).documentElement}function i(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(v){t=function(g){for(var T=g.length,q=new Array(T);T--;)q[T]=g[T];return q}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(g,T){o.call(this,g,T+"")},l.setAttributeNS=function(g,T,q){s.call(this,g,T,q+"")},u.setProperty=function(g,T,q){f.call(this,g,T+"",q)}}e.ascending=c;function c(v,g){return vg?1:v>=g?0:NaN}e.descending=function(v,g){return gv?1:g>=v?0:NaN},e.min=function(v,g){var T=-1,q=v.length,C,L;if(arguments.length===1){for(;++T=L){C=L;break}for(;++TL&&(C=L)}else{for(;++T=L){C=L;break}for(;++TL&&(C=L)}return C},e.max=function(v,g){var T=-1,q=v.length,C,L;if(arguments.length===1){for(;++T=L){C=L;break}for(;++TC&&(C=L)}else{for(;++T=L){C=L;break}for(;++TC&&(C=L)}return C},e.extent=function(v,g){var T=-1,q=v.length,C,L,z;if(arguments.length===1){for(;++T=L){C=z=L;break}for(;++TL&&(C=L),z=L){C=z=L;break}for(;++TL&&(C=L),z1)return z/(F-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function p(v){return{left:function(g,T,q,C){for(arguments.length<3&&(q=0),arguments.length<4&&(C=g.length);q>>1;v(g[L],T)<0?q=L+1:C=L}return q},right:function(g,T,q,C){for(arguments.length<3&&(q=0),arguments.length<4&&(C=g.length);q>>1;v(g[L],T)>0?C=L:q=L+1}return q}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(v){return p(v.length===1?function(g,T){return c(v(g),T)}:v)},e.shuffle=function(v,g,T){(q=arguments.length)<3&&(T=v.length,q<2&&(g=0));for(var q=T-g,C,L;q;)L=Math.random()*q--|0,C=v[q+g],v[q+g]=v[L+g],v[L+g]=C;return v},e.permute=function(v,g){for(var T=g.length,q=new Array(T);T--;)q[T]=v[g[T]];return q},e.pairs=function(v){for(var g=0,T=v.length-1,q,C=v[0],L=new Array(T<0?0:T);g=0;)for(z=v[g],T=z.length;--T>=0;)L[--C]=z[T];return L};var b=Math.abs;e.range=function(v,g,T){if(arguments.length<3&&(T=1,arguments.length<2&&(g=v,v=0)),(g-v)/T===1/0)throw new Error("infinite range");var q=[],C=_(b(T)),L=-1,z;if(v*=C,g*=C,T*=C,T<0)for(;(z=v+T*++L)>g;)q.push(z/C);else for(;(z=v+T*++L)=g.length)return C?C.call(v,F):q?F.sort(q):F;for(var K=-1,ee=F.length,re=g[J++],ye,we,ae,ue=new x,de;++K=g.length)return P;var J=[],K=T[F++];return P.forEach(function(ee,re){J.push({key:ee,values:z(re,F)})}),K?J.sort(function(ee,re){return K(ee.key,re.key)}):J}return v.map=function(P,F){return L(F,P,0)},v.entries=function(P){return z(L(e.map,P,0),0)},v.key=function(P){return g.push(P),v},v.sortKeys=function(P){return T[g.length-1]=P,v},v.sortValues=function(P){return q=P,v},v.rollup=function(P){return C=P,v},v},e.set=function(v){var g=new H;if(v)for(var T=0,q=v.length;T=0&&(q=v.slice(T+1),v=v.slice(0,T)),v)return arguments.length<2?this[v].on(q):this[v].on(q,g);if(arguments.length===2){if(g==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(q,null);return this}};function $(v){var g=[],T=new x;function q(){for(var C=g,L=-1,z=C.length,P;++L=0&&(T=v.slice(0,g))!=="xmlns"&&(v=v.slice(g+1)),ge.hasOwnProperty(T)?{space:ge[T],local:v}:v}},be.attr=function(v,g){if(arguments.length<2){if(typeof v=="string"){var T=this.node();return v=e.ns.qualify(v),v.local?T.getAttributeNS(v.space,v.local):T.getAttribute(v)}for(g in v)this.each(ke(g,v[g]));return this}return this.each(ke(v,g))};function ke(v,g){v=e.ns.qualify(v);function T(){this.removeAttribute(v)}function q(){this.removeAttributeNS(v.space,v.local)}function C(){this.setAttribute(v,g)}function L(){this.setAttributeNS(v.space,v.local,g)}function z(){var F=g.apply(this,arguments);F==null?this.removeAttribute(v):this.setAttribute(v,F)}function P(){var F=g.apply(this,arguments);F==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,F)}return g==null?v.local?q:T:typeof g=="function"?v.local?P:z:v.local?L:C}function xe(v){return v.trim().replace(/\s+/g," ")}be.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var T=this.node(),q=(v=Fe(v)).length,C=-1;if(g=T.classList){for(;++C=0;)(L=T[q])&&(C&&C!==L.nextSibling&&C.parentNode.insertBefore(L,C),C=L);return this},be.sort=function(v){v=Me.apply(this,arguments);for(var g=-1,T=this.length;++g=g&&(g=C+1);!(F=z[g])&&++g0&&(v=v.slice(0,C));var z=Ie.get(v);z&&(v=z,L=Ue);function P(){var K=this[q];K&&(this.removeEventListener(v,K,K.$),delete this[q])}function F(){var K=L(g,t(arguments));P.call(this),this.addEventListener(v,this[q]=K,K.$=T),K._=g}function J(){var K=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),ee;for(var re in this)if(ee=re.match(K)){var ye=this[re];this.removeEventListener(ee[1],ye,ye.$),delete this[re]}}return C?g?F:P:g?G:J}var Ie=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ie.forEach(function(v){"on"+v in a&&Ie.remove(v)});function We(v,g){return function(T){var q=e.event;e.event=T,g[0]=this.__data__;try{v.apply(this,g)}finally{e.event=q}}}function Ue(v,g){var T=We(v,g);return function(q){var C=this,L=q.relatedTarget;(!L||L!==C&&!(L.compareDocumentPosition(C)&8))&&T.call(C,q)}}var Je,je=0;function vr(v){var g=".dragsuppress-"+ ++je,T="click"+g,q=e.select(i(v)).on("touchmove"+g,te).on("dragstart"+g,te).on("selectstart"+g,te);if(Je==null&&(Je="onselectstart"in v?!1:Y(v.style,"userSelect")),Je){var C=n(v).style,L=C[Je];C[Je]="none"}return function(z){if(q.on(g,null),Je&&(C[Je]=L),z){var P=function(){q.on(T,null)};q.on(T,function(){te(),P()},!0),setTimeout(P,0)}}}e.mouse=function(v){return Re(v,le())};var $e=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Re(v,g){g.changedTouches&&(g=g.changedTouches[0]);var T=v.ownerSVGElement||v;if(T.createSVGPoint){var q=T.createSVGPoint();if($e<0){var C=i(v);if(C.scrollX||C.scrollY){T=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=T[0][0].getScreenCTM();$e=!(L.f||L.e),T.remove()}}return $e?(q.x=g.pageX,q.y=g.pageY):(q.x=g.clientX,q.y=g.clientY),q=q.matrixTransform(v.getScreenCTM().inverse()),[q.x,q.y]}var z=v.getBoundingClientRect();return[g.clientX-z.left-v.clientLeft,g.clientY-z.top-v.clientTop]}e.touch=function(v,g,T){if(arguments.length<3&&(T=g,g=le().changedTouches),g){for(var q=0,C=g.length,L;q0?1:v<0?-1:0}function jr(v,g,T){return(g[0]-v[0])*(T[1]-v[1])-(g[1]-v[1])*(T[0]-v[0])}function ra(v){return v>1?0:v<-1?Se:Math.acos(v)}function It(v){return v>1?ar:v<-1?-ar:Math.asin(v)}function _t(v){return((v=Math.exp(v))-1/v)/2}function Dt(v){return((v=Math.exp(v))+1/v)/2}function ga(v){return((v=Math.exp(2*v))-1)/(v+1)}function xa(v){return(v=Math.sin(v/2))*v}var Gt=Math.SQRT2,$a=2,gr=4;e.interpolateZoom=function(v,g){var T=v[0],q=v[1],C=v[2],L=g[0],z=g[1],P=g[2],F=L-T,J=z-q,K=F*F+J*J,ee,re;if(K0&&(er=er.transition().duration(z)),er.call(Te.event)}function hr(){ue&&ue.domain(ae.range().map(function(er){return(er-v.x)/v.k}).map(ae.invert)),_e&&_e.domain(de.range().map(function(er){return(er-v.y)/v.k}).map(de.invert))}function dr(er){P++||er({type:"zoomstart"})}function Lr(er){hr(),er({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function pr(er){--P||(er({type:"zoomend"}),T=null)}function Mr(){var er=this,Dr=we.of(er,arguments),Er=0,Qr=e.select(i(er)).on(J,Ta).on(K,Ba),qt=me(e.mouse(er)),Kt=vr(er);Q0.call(er),dr(Dr);function Ta(){Er=1,sr(e.mouse(er),qt),Lr(Dr)}function Ba(){Qr.on(J,null).on(K,null),Kt(Er),pr(Dr)}}function Kr(){var er=this,Dr=we.of(er,arguments),Er={},Qr=0,qt,Kt=".zoom-"+e.event.changedTouches[0].identifier,Ta="touchmove"+Kt,Ba="touchend"+Kt,Ka=[],Ya=e.select(er),en=vr(er);rn(),dr(Dr),Ya.on(F,null).on(re,rn);function Ea(){var oi=e.touches(er);return qt=v.k,oi.forEach(function(Ma){Ma.identifier in Er&&(Er[Ma.identifier]=me(Ma))}),oi}function rn(){var oi=e.event.target;e.select(oi).on(Ta,Fo).on(Ba,XW),Ka.push(oi);for(var Ma=e.event.changedTouches,Pn=0,zi=Ma.length;Pn1){var Io=Rn[0],El=Rn[1],rh=Io[0]-El[0],Y4=Io[1]-El[1];Qr=rh*rh+Y4*Y4}}function Fo(){var oi=e.touches(er),Ma,Pn,zi,Rn;Q0.call(er);for(var fu=0,Io=oi.length;fu1?1:g,T=T<0?0:T>1?1:T,C=T<=.5?T*(1+g):T+g-T*g,q=2*T-C;function L(P){return P>360?P-=360:P<0&&(P+=360),P<60?q+(C-q)*P/60:P<180?C:P<240?q+(C-q)*(240-P)/60:q}function z(P){return Math.round(L(P)*255)}return new Oa(z(v+120),z(v),z(v-120))}e.hcl=ca;function ca(v,g,T){return this instanceof ca?(this.h=+v,this.c=+g,void(this.l=+T)):arguments.length<2?v instanceof ca?new ca(v.h,v.c,v.l):v instanceof ta?D0(v.l,v.a,v.b):D0((v=ir((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new ca(v,g,T)}var ai=ca.prototype=new Et;ai.brighter=function(v){return new ca(this.h,this.c,Math.min(100,this.l+it*(arguments.length?v:1)))},ai.darker=function(v){return new ca(this.h,this.c,Math.max(0,this.l-it*(arguments.length?v:1)))},ai.rgb=function(){return ni(this.h,this.c,this.l).rgb()};function ni(v,g,T){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new ta(T,Math.cos(v*=Ar)*g,Math.sin(v)*g)}e.lab=ta;function ta(v,g,T){return this instanceof ta?(this.l=+v,this.a=+g,void(this.b=+T)):arguments.length<2?v instanceof ta?new ta(v.l,v.a,v.b):v instanceof ca?ni(v.h,v.c,v.l):ir((v=Oa(v)).r,v.g,v.b):new ta(v,g,T)}var it=18,ba=.95047,Do=1,Eo=1.08883,Ll=ta.prototype=new Et;Ll.brighter=function(v){return new ta(Math.min(100,this.l+it*(arguments.length?v:1)),this.a,this.b)},Ll.darker=function(v){return new ta(Math.max(0,this.l-it*(arguments.length?v:1)),this.a,this.b)},Ll.rgb=function(){return L0(this.l,this.a,this.b)};function L0(v,g,T){var q=(v+16)/116,C=q+g/500,L=q-T/200;return C=ac(C)*ba,q=ac(q)*Do,L=ac(L)*Eo,new Oa(ic(3.2404542*C-1.5371385*q-.4985314*L),ic(-.969266*C+1.8760108*q+.041556*L),ic(.0556434*C-.2040259*q+1.0572252*L))}function D0(v,g,T){return v>0?new ca(Math.atan2(T,g)*Br,Math.sqrt(g*g+T*T),v):new ca(NaN,NaN,v)}function ac(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function nc(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function ic(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=Oa;function Oa(v,g,T){return this instanceof Oa?(this.r=~~v,this.g=~~g,void(this.b=~~T)):arguments.length<2?v instanceof Oa?new Oa(v.r,v.g,v.b):Xr(""+v,Oa,Ha):new Oa(v,g,T)}function E0(v){return new Oa(v>>16,v>>8&255,v&255)}function tu(v){return E0(v)+""}var au=Oa.prototype=new Et;au.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var g=this.r,T=this.g,q=this.b,C=30;return!g&&!T&&!q?new Oa(C,C,C):(g&&g>4,q=q>>4|q,C=F&240,C=C>>4|C,L=F&15,L=L<<4|L):v.length===7&&(q=(F&16711680)>>16,C=(F&65280)>>8,L=F&255)),g(q,C,L))}function et(v,g,T){var q=Math.min(v/=255,g/=255,T/=255),C=Math.max(v,g,T),L=C-q,z,P,F=(C+q)/2;return L?(P=F<.5?L/(C+q):L/(2-C-q),v==C?z=(g-T)/L+(g0&&F<1?0:z),new ct(z,P,F)}function ir(v,g,T){v=_a(v),g=_a(g),T=_a(T);var q=nc((.4124564*v+.3575761*g+.1804375*T)/ba),C=nc((.2126729*v+.7151522*g+.072175*T)/Do),L=nc((.0193339*v+.119192*g+.9503041*T)/Eo);return ta(116*C-16,500*(q-C),200*(C-L))}function _a(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function vt(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var wa=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});wa.forEach(function(v,g){wa.set(v,E0(g))});function Nr(v){return typeof v=="function"?v:function(){return v}}e.functor=Nr,e.xhr=ii(U);function ii(v){return function(g,T,q){return arguments.length===2&&typeof T=="function"&&(q=T,T=null),Po(g,T,v,q)}}function Po(v,g,T,q){var C={},L=e.dispatch("beforesend","progress","load","error"),z={},P=new XMLHttpRequest,F=null;self.XDomainRequest&&!("withCredentials"in P)&&/^(http(s)?:)?\/\//.test(v)&&(P=new XDomainRequest),"onload"in P?P.onload=P.onerror=J:P.onreadystatechange=function(){P.readyState>3&&J()};function J(){var K=P.status,ee;if(!K&&JU(P)||K>=200&&K<300||K===304){try{ee=T.call(C,P)}catch(re){L.error.call(C,re);return}L.load.call(C,ee)}else L.error.call(C,P)}return P.onprogress=function(K){var ee=e.event;e.event=K;try{L.progress.call(C,P)}finally{e.event=ee}},C.header=function(K,ee){return K=(K+"").toLowerCase(),arguments.length<2?z[K]:(ee==null?delete z[K]:z[K]=ee+"",C)},C.mimeType=function(K){return arguments.length?(g=K==null?null:K+"",C):g},C.responseType=function(K){return arguments.length?(F=K,C):F},C.response=function(K){return T=K,C},["get","post"].forEach(function(K){C[K]=function(){return C.send.apply(C,[K].concat(t(arguments)))}}),C.send=function(K,ee,re){if(arguments.length===2&&typeof ee=="function"&&(re=ee,ee=null),P.open(K,v,!0),g!=null&&!("accept"in z)&&(z.accept=g+",*/*"),P.setRequestHeader)for(var ye in z)P.setRequestHeader(ye,z[ye]);return g!=null&&P.overrideMimeType&&P.overrideMimeType(g),F!=null&&(P.responseType=F),re!=null&&C.on("error",re).on("load",function(we){re(null,we)}),L.beforesend.call(C,P),P.send(ee==null?null:ee),C},C.abort=function(){return P.abort(),C},e.rebind(C,L,"on"),q==null?C:C.get(ZU(q))}function ZU(v){return v.length===1?function(g,T){v(g==null?T:null)}:v}function JU(v){var g=v.responseType;return g&&g!=="text"?v.response:v.responseText}e.dsv=function(v,g){var T=new RegExp('["'+v+` -]`),q=v.charCodeAt(0);function C(J,K,ee){arguments.length<3&&(ee=K,K=null);var re=Po(J,g,K==null?L:z(K),ee);return re.row=function(ye){return arguments.length?re.response((K=ye)==null?L:z(ye)):K},re}function L(J){return C.parse(J.responseText)}function z(J){return function(K){return C.parse(K.responseText,J)}}C.parse=function(J,K){var ee;return C.parseRows(J,function(re,ye){if(ee)return ee(re,ye-1);var we=function(ae){for(var ue={},de=re.length,_e=0;_e=we)return re;if(_e)return _e=!1,ee;var Be=ae;if(J.charCodeAt(Be)===34){for(var tr=Be;tr++24?(isFinite(g)&&(clearTimeout(N0),N0=setTimeout(Jm,g)),z0=0):(z0=1,C_(Jm))}e.timer.flush=function(){S_(),L_()};function S_(){for(var v=Date.now(),g=P0;g;)v>=g.t&&g.c(v-g.t)&&(g.c=null),g=g.n;return v}function L_(){for(var v,g=P0,T=1/0;g;)g.c?(g.t=0;--P)ae.push(C[J[ee[P]][2]]);for(P=+ye;P1&&jr(v[T[q-2]],v[T[q-1]],v[C])<=0;)--q;T[q++]=C}return T.slice(0,q)}function $U(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return Q(v,I0),v};var I0=e.geom.polygon.prototype=[];I0.area=function(){for(var v=-1,g=this.length,T,q=this[g-1],C=0;++vce)P=P.L;else if(z=g-eV(P,T),z>ce){if(!P.R){q=P;break}P=P.R}else{L>-ce?(q=P.P,C=P):z>-ce?(q=P,C=P.N):q=C=P;break}var F=z_(v);if(lu.insert(q,F),!(!q&&!C)){if(q===C){su(q),C=z_(q.site),lu.insert(F,C),F.edge=C.edge=sc(q.site,F.site),ou(q),ou(C);return}if(!C){F.edge=sc(q.site,F.site);return}su(q),su(C);var J=q.site,K=J.x,ee=J.y,re=v.x-K,ye=v.y-ee,we=C.site,ae=we.x-K,ue=we.y-ee,de=2*(re*ue-ye*ae),_e=re*re+ye*ye,Te=ae*ae+ue*ue,me={x:(ue*_e-ye*Te)/de+K,y:(re*Te-ae*_e)/de+ee};H0(C.edge,J,we,me),F.edge=sc(J,v,null,me),C.edge=sc(v,we,null,me),ou(q),ou(C)}}function N_(v,g){var T=v.site,q=T.x,C=T.y,L=C-g;if(!L)return q;var z=v.P;if(!z)return-1/0;T=z.site;var P=T.x,F=T.y,J=F-g;if(!J)return P;var K=P-q,ee=1/L-1/J,re=K/J;return ee?(-re+Math.sqrt(re*re-2*ee*(K*K/(-2*J)-F+J/2+C-L/2)))/ee+q:(q+P)/2}function eV(v,g){var T=v.N;if(T)return N_(T,g);var q=v.site;return q.y===g?q.x:1/0}function F_(v){this.site=v,this.edges=[]}F_.prototype.prepare=function(){for(var v=this.edges,g=v.length,T;g--;)T=v[g].edge,(!T.b||!T.a)&&v.splice(g,1);return v.sort(I_),v.length};function rV(v){for(var g=v[0][0],T=v[1][0],q=v[0][1],C=v[1][1],L,z,P,F,J=Ro,K=J.length,ee,re,ye,we,ae,ue;K--;)if(ee=J[K],!(!ee||!ee.prepare()))for(ye=ee.edges,we=ye.length,re=0;rece||b(F-z)>ce)&&(ye.splice(re,0,new O0(lV(ee.site,ue,b(P-g)ce?{x:g,y:b(L-g)ce?{x:b(z-C)ce?{x:T,y:b(L-T)ce?{x:b(z-q)=-Le)){var re=F*F+J*J,ye=K*K+ue*ue,we=(ue*re-J*ye)/ee,ae=(F*ye-K*re)/ee,ue=ae+P,de=R_.pop()||new tV;de.arc=v,de.site=C,de.x=we+z,de.y=ue+Math.sqrt(we*we+ae*ae),de.cy=ue,v.circle=de;for(var _e=null,Te=oc._;Te;)if(de.y0)){if(ae/=ye,ye<0){if(ae0){if(ae>re)return;ae>ee&&(ee=ae)}if(ae=T-P,!(!ye&&ae<0)){if(ae/=ye,ye<0){if(ae>re)return;ae>ee&&(ee=ae)}else if(ye>0){if(ae0)){if(ae/=we,we<0){if(ae0){if(ae>re)return;ae>ee&&(ee=ae)}if(ae=q-F,!(!we&&ae<0)){if(ae/=we,we<0){if(ae>re)return;ae>ee&&(ee=ae)}else if(we>0){if(ae0&&(C.a={x:P+ee*ye,y:F+ee*we}),re<1&&(C.b={x:P+re*ye,y:F+re*we}),C}}}}}}function nV(v){for(var g=iu,T=aV(v[0][0],v[0][1],v[1][0],v[1][1]),q=g.length,C;q--;)C=g[q],(!iV(C,v)||!T(C)||b(C.a.x-C.b.x)=L)return;if(K>re){if(!q)q={x:we,y:z};else if(q.y>=P)return;T={x:we,y:P}}else{if(!q)q={x:we,y:P};else if(q.y1)if(K>re){if(!q)q={x:(z-de)/ue,y:z};else if(q.y>=P)return;T={x:(P-de)/ue,y:P}}else{if(!q)q={x:(P-de)/ue,y:P};else if(q.y=L)return;T={x:L,y:ue*L+de}}else{if(!q)q={x:L,y:ue*L+de};else if(q.x=K&&de.x<=re&&de.y>=ee&&de.y<=ye?[[K,ye],[re,ye],[re,ee],[K,ee]]:[];_e.point=F[ae]}),J}function P(F){return F.map(function(J,K){return{x:Math.round(q(J,K)/ce)*ce,y:Math.round(C(J,K)/ce)*ce,i:K}})}return z.links=function(F){return ry(P(F)).edges.filter(function(J){return J.l&&J.r}).map(function(J){return{source:F[J.l.i],target:F[J.r.i]}})},z.triangles=function(F){var J=[];return ry(P(F)).cells.forEach(function(K,ee){for(var re=K.site,ye=K.edges.sort(I_),we=-1,ae=ye.length,ue,de,_e=ye[ae-1].edge,Te=_e.l===re?_e.r:_e.l;++weTe&&(Te=K.x),K.y>me&&(me=K.y),ye.push(K.x),we.push(K.y);else for(ae=0;aeTe&&(Te=Be),tr>me&&(me=tr),ye.push(Be),we.push(tr)}var sr=Te-de,nr=me-_e;sr>nr?me=_e+sr:Te=de+nr;function hr(pr,Mr,Kr,Ht,at,er,Dr,Er){if(!(isNaN(Kr)||isNaN(Ht)))if(pr.leaf){var Qr=pr.x,qt=pr.y;if(Qr!=null)if(b(Qr-Kr)+b(qt-Ht)<.01)dr(pr,Mr,Kr,Ht,at,er,Dr,Er);else{var Kt=pr.point;pr.x=pr.y=pr.point=null,dr(pr,Kt,Qr,qt,at,er,Dr,Er),dr(pr,Mr,Kr,Ht,at,er,Dr,Er)}else pr.x=Kr,pr.y=Ht,pr.point=Mr}else dr(pr,Mr,Kr,Ht,at,er,Dr,Er)}function dr(pr,Mr,Kr,Ht,at,er,Dr,Er){var Qr=(at+Dr)*.5,qt=(er+Er)*.5,Kt=Kr>=Qr,Ta=Ht>=qt,Ba=Ta<<1|Kt;pr.leaf=!1,pr=pr.nodes[Ba]||(pr.nodes[Ba]=B_()),Kt?at=Qr:Dr=Qr,Ta?er=qt:Er=qt,hr(pr,Mr,Kr,Ht,at,er,Dr,Er)}var Lr=B_();if(Lr.add=function(pr){hr(Lr,pr,+ee(pr,++ae),+re(pr,ae),de,_e,Te,me)},Lr.visit=function(pr){cc(pr,Lr,de,_e,Te,me)},Lr.find=function(pr){return cV(Lr,pr[0],pr[1],de,_e,Te,me)},ae=-1,g==null){for(;++aeL||re>z||ye=Be,nr=T>=tr,hr=nr<<1|sr,dr=hr+4;hrT&&(L=g.slice(T,L),P[z]?P[z]+=L:P[++z]=L),(q=q[0])===(C=C[0])?P[z]?P[z]+=C:P[++z]=C:(P[++z]=null,F.push({i:z,x:nl(q,C)})),T=ny.lastIndex;return T=0&&!(q=e.interpolators[T](v,g)););return q}e.interpolators=[function(v,g){var T=typeof g;return(T==="string"?wa.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?ty:G_:g instanceof Et?ty:Array.isArray(g)?G0:T==="object"&&isNaN(g)?Y_:nl)(v,g)}],e.interpolateArray=G0;function G0(v,g){var T=[],q=[],C=v.length,L=g.length,z=Math.min(v.length,g.length),P;for(P=0;P=0?v.slice(0,g):v,q=g>=0?v.slice(g+1):"in";return T=vV.get(T)||U_,q=hV.get(q)||U,dV(q(T.apply(null,r.call(arguments,1))))};function dV(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function V_(v){return function(g){return 1-v(1-g)}}function W_(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function pV(v){return v*v}function mV(v){return v*v*v}function yV(v){if(v<=0)return 0;if(v>=1)return 1;var g=v*v,T=g*v;return 4*(v<.5?T:3*(v-g)+T-.75)}function gV(v){return function(g){return Math.pow(g,v)}}function xV(v){return 1-Math.cos(v*ar)}function bV(v){return Math.pow(2,10*(v-1))}function _V(v){return 1-Math.sqrt(1-v*v)}function wV(v,g){var T;return arguments.length<2&&(g=.45),arguments.length?T=g/or*Math.asin(1/v):(v=1,T=g/4),function(q){return 1+v*Math.pow(2,-10*q)*Math.sin((q-T)*or/g)}}function TV(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function MV(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=AV;function AV(v,g){v=e.hcl(v),g=e.hcl(g);var T=v.h,q=v.c,C=v.l,L=g.h-T,z=g.c-q,P=g.l-C;return isNaN(z)&&(z=0,q=isNaN(q)?g.c:q),isNaN(L)?(L=0,T=isNaN(T)?g.h:T):L>180?L-=360:L<-180&&(L+=360),function(F){return ni(T+L*F,q+z*F,C+P*F)+""}}e.interpolateHsl=kV;function kV(v,g){v=e.hsl(v),g=e.hsl(g);var T=v.h,q=v.s,C=v.l,L=g.h-T,z=g.s-q,P=g.l-C;return isNaN(z)&&(z=0,q=isNaN(q)?g.s:q),isNaN(L)?(L=0,T=isNaN(T)?g.h:T):L>180?L-=360:L<-180&&(L+=360),function(F){return Ha(T+L*F,q+z*F,C+P*F)+""}}e.interpolateLab=qV;function qV(v,g){v=e.lab(v),g=e.lab(g);var T=v.l,q=v.a,C=v.b,L=g.l-T,z=g.a-q,P=g.b-C;return function(F){return L0(T+L*F,q+z*F,C+P*F)+""}}e.interpolateRound=X_;function X_(v,g){return g-=v,function(T){return Math.round(v+g*T)}}e.transform=function(v){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(T){if(T!=null){g.setAttribute("transform",T);var q=g.transform.baseVal.consolidate()}return new Z_(q?q.matrix:SV)})(v)};function Z_(v){var g=[v.a,v.b],T=[v.c,v.d],q=$_(g),C=J_(g,T),L=$_(CV(T,g,-C))||0;g[0]*T[1]180?g+=360:g-v>180&&(v+=360),q.push({i:T.push(uu(T)+"rotate(",null,")")-2,x:nl(v,g)})):g&&T.push(uu(T)+"rotate("+g+")")}function EV(v,g,T,q){v!==g?q.push({i:T.push(uu(T)+"skewX(",null,")")-2,x:nl(v,g)}):g&&T.push(uu(T)+"skewX("+g+")")}function PV(v,g,T,q){if(v[0]!==g[0]||v[1]!==g[1]){var C=T.push(uu(T)+"scale(",null,",",null,")");q.push({i:C-4,x:nl(v[0],g[0])},{i:C-2,x:nl(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&T.push(uu(T)+"scale("+g+")")}function K_(v,g){var T=[],q=[];return v=e.transform(v),g=e.transform(g),LV(v.translate,g.translate,T,q),DV(v.rotate,g.rotate,T,q),EV(v.skew,g.skew,T,q),PV(v.scale,g.scale,T,q),v=g=null,function(C){for(var L=-1,z=q.length,P;++L0?L=me:(T.c=null,T.t=NaN,T=null,g.end({type:"end",alpha:L=0})):me>0&&(g.start({type:"start",alpha:L=me}),T=F0(v.tick)),v):L},v.start=function(){var me,Be=ye.length,tr=we.length,sr=q[0],nr=q[1],hr,dr;for(me=0;me=0;)L.push(K=J[F]),K.parent=P,K.depth=P.depth+1;T&&(P.value=0),P.children=J}else T&&(P.value=+T.call(q,P,P.depth)||0),delete P.children;return Ri(C,function(ee){var re,ye;v&&(re=ee.children)&&re.sort(v),T&&(ye=ee.parent)&&(ye.value+=ee.value)}),z}return q.sort=function(C){return arguments.length?(v=C,q):v},q.children=function(C){return arguments.length?(g=C,q):g},q.value=function(C){return arguments.length?(T=C,q):T},q.revalue=function(C){return T&&(hc(C,function(L){L.children&&(L.value=0)}),Ri(C,function(L){var z;L.children||(L.value=+T.call(q,L,L.depth)||0),(z=L.parent)&&(z.value+=L.value)})),C},q};function vc(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=ZV,v}function hc(v,g){for(var T=[v];(v=T.pop())!=null;)if(g(v),(C=v.children)&&(q=C.length))for(var q,C;--q>=0;)T.push(C[q])}function Ri(v,g){for(var T=[v],q=[];(v=T.pop())!=null;)if(q.push(v),(z=v.children)&&(L=z.length))for(var C=-1,L,z;++CC&&(C=P),q.push(P)}for(z=0;zq&&(T=g,q=C);return T}function rW(v){return v.reduce(tW,0)}function tW(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,T=nW,q=aW;function C(L,re){for(var P=[],F=L.map(g,this),J=T.call(this,F,re),K=q.call(this,J,F,re),ee,re=-1,ye=F.length,we=K.length-1,ae=v?1:1/ye,ue;++re0)for(re=-1;++re=J[0]&&ue<=J[1]&&(ee=P[e.bisect(K,ue,1,we)-1],ee.y+=ae,ee.push(L[re]));return P}return C.value=function(L){return arguments.length?(g=L,C):g},C.range=function(L){return arguments.length?(T=Nr(L),C):T},C.bins=function(L){return arguments.length?(q=typeof L=="number"?function(z){return r4(z,L)}:Nr(L),C):q},C.frequency=function(L){return arguments.length?(v=!!L,C):v},C};function aW(v,g){return r4(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function r4(v,g){for(var T=-1,q=+v[0],C=(v[1]-q)/g,L=[];++T<=g;)L[T]=C*T+q;return L}function nW(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(iW),g=0,T=[1,1],q;function C(L,z){var P=v.call(this,L,z),F=P[0],J=T[0],K=T[1],ee=q==null?Math.sqrt:typeof q=="function"?q:function(){return q};if(F.x=F.y=0,Ri(F,function(ye){ye.r=+ee(ye.value)}),Ri(F,n4),g){var re=g*(q?1:Math.max(2*F.r/J,2*F.r/K))/2;Ri(F,function(ye){ye.r+=re}),Ri(F,n4),Ri(F,function(ye){ye.r-=re})}return i4(F,J/2,K/2,q?1:1/Math.max(2*F.r/J,2*F.r/K)),P}return C.size=function(L){return arguments.length?(T=L,C):T},C.radius=function(L){return arguments.length?(q=L==null||typeof L=="function"?L:+L,C):q},C.padding=function(L){return arguments.length?(g=+L,C):g},vc(C,v)};function iW(v,g){return v.value-g.value}function oy(v,g){var T=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=T,T._pack_prev=g}function t4(v,g){v._pack_next=g,g._pack_prev=v}function a4(v,g){var T=g.x-v.x,q=g.y-v.y,C=v.r+g.r;return .999*C*C>T*T+q*q}function n4(v){if(!(g=v.children)||!(re=g.length))return;var g,T=1/0,q=-1/0,C=1/0,L=-1/0,z,P,F,J,K,ee,re;function ye(me){T=Math.min(me.x-me.r,T),q=Math.max(me.x+me.r,q),C=Math.min(me.y-me.r,C),L=Math.max(me.y+me.r,L)}if(g.forEach(lW),z=g[0],z.x=-z.r,z.y=0,ye(z),re>1&&(P=g[1],P.x=P.r,P.y=0,ye(P),re>2))for(F=g[2],l4(z,P,F),ye(F),oy(z,F),z._pack_prev=F,oy(F,P),P=z._pack_next,J=3;Jue.x&&(ue=Be),Be.depth>de.depth&&(de=Be)});var _e=g(ae,ue)/2-ae.x,Te=T[0]/(ue.x+g(ue,ae)/2+_e),me=T[1]/(de.depth||1);hc(ye,function(Be){Be.x=(Be.x+_e)*Te,Be.y=Be.depth*me})}return re}function L(K){for(var ee={A:null,children:[K]},re=[ee],ye;(ye=re.pop())!=null;)for(var we=ye.children,ae,ue=0,de=we.length;ue0&&(sW(fW(ae,K,re),K,Be),de+=Be,_e+=Be),Te+=ae.m,de+=ye.m,me+=ue.m,_e+=we.m;ae&&!uy(we)&&(we.t=ae,we.m+=Te-_e),ye&&!sy(ue)&&(ue.t=ye,ue.m+=de-me,re=K)}return re}function J(K){K.x*=T[0],K.y=K.depth*T[1]}return C.separation=function(K){return arguments.length?(g=K,C):g},C.size=function(K){return arguments.length?(q=(T=K)==null?J:null,C):q?null:T},C.nodeSize=function(K){return arguments.length?(q=(T=K)==null?null:J,C):q?T:null},vc(C,v)};function o4(v,g){return v.parent==g.parent?1:2}function sy(v){var g=v.children;return g.length?g[0]:v.t}function uy(v){var g=v.children,T;return(T=g.length)?g[T-1]:v.t}function sW(v,g,T){var q=T/(g.i-v.i);g.c-=q,g.s+=T,v.c+=q,g.z+=T,g.m+=T}function uW(v){for(var g=0,T=0,q=v.children,C=q.length,L;--C>=0;)L=q[C],L.z+=g,L.m+=g,g+=L.s+(T+=L.c)}function fW(v,g,T){return v.a.parent===g.parent?v.a:T}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),g=o4,T=[1,1],q=!1;function C(L,z){var P=v.call(this,L,z),F=P[0],J,K=0;Ri(F,function(ae){var ue=ae.children;ue&&ue.length?(ae.x=vW(ue),ae.y=cW(ue)):(ae.x=J?K+=g(ae,J):0,ae.y=0,J=ae)});var ee=s4(F),re=u4(F),ye=ee.x-g(ee,re)/2,we=re.x+g(re,ee)/2;return Ri(F,q?function(ae){ae.x=(ae.x-F.x)*T[0],ae.y=(F.y-ae.y)*T[1]}:function(ae){ae.x=(ae.x-ye)/(we-ye)*T[0],ae.y=(1-(F.y?ae.y/F.y:1))*T[1]}),P}return C.separation=function(L){return arguments.length?(g=L,C):g},C.size=function(L){return arguments.length?(q=(T=L)==null,C):q?null:T},C.nodeSize=function(L){return arguments.length?(q=(T=L)!=null,C):q?T:null},vc(C,v)};function cW(v){return 1+e.max(v,function(g){return g.y})}function vW(v){return v.reduce(function(g,T){return g+T.x},0)/v.length}function s4(v){var g=v.children;return g&&g.length?s4(g[0]):v}function u4(v){var g=v.children,T;return g&&(T=g.length)?u4(g[T-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,T=[1,1],q=null,C=fy,L=!1,z,P="squarify",F=.5*(1+Math.sqrt(5));function J(ae,ue){for(var de=-1,_e=ae.length,Te,me;++de<_e;)me=(Te=ae[de]).value*(ue<0?0:ue),Te.area=isNaN(me)||me<=0?0:me}function K(ae){var ue=ae.children;if(ue&&ue.length){var de=C(ae),_e=[],Te=ue.slice(),me,Be=1/0,tr,sr=P==="slice"?de.dx:P==="dice"?de.dy:P==="slice-dice"?ae.depth&1?de.dy:de.dx:Math.min(de.dx,de.dy),nr;for(J(Te,de.dx*de.dy/ae.value),_e.area=0;(nr=Te.length)>0;)_e.push(me=Te[nr-1]),_e.area+=me.area,P!=="squarify"||(tr=re(_e,sr))<=Be?(Te.pop(),Be=tr):(_e.area-=_e.pop().area,ye(_e,sr,de,!1),sr=Math.min(de.dx,de.dy),_e.length=_e.area=0,Be=1/0);_e.length&&(ye(_e,sr,de,!0),_e.length=_e.area=0),ue.forEach(K)}}function ee(ae){var ue=ae.children;if(ue&&ue.length){var de=C(ae),_e=ue.slice(),Te,me=[];for(J(_e,de.dx*de.dy/ae.value),me.area=0;Te=_e.pop();)me.push(Te),me.area+=Te.area,Te.z!=null&&(ye(me,Te.z?de.dx:de.dy,de,!_e.length),me.length=me.area=0);ue.forEach(ee)}}function re(ae,ue){for(var de=ae.area,_e,Te=0,me=1/0,Be=-1,tr=ae.length;++BeTe&&(Te=_e));return de*=de,ue*=ue,de?Math.max(ue*Te*F/de,de/(ue*me*F)):1/0}function ye(ae,ue,de,_e){var Te=-1,me=ae.length,Be=de.x,tr=de.y,sr=ue?g(ae.area/ue):0,nr;if(ue==de.dx){for((_e||sr>de.dy)&&(sr=de.dy);++Tede.dx)&&(sr=de.dx);++Te1);return v+g*q*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var g=e.random.irwinHall(v);return function(){return g()/v}},irwinHall:function(v){return function(){for(var g=0,T=0;T2?pW:hW,J=q?zV:RV;return C=F(v,g,J,T),L=F(g,v,J,zo),P}function P(F){return C(F)}return P.invert=function(F){return L(F)},P.domain=function(F){return arguments.length?(v=F.map(Number),z()):v},P.range=function(F){return arguments.length?(g=F,z()):g},P.rangeRound=function(F){return P.range(F).interpolate(X_)},P.clamp=function(F){return arguments.length?(q=F,z()):q},P.interpolate=function(F){return arguments.length?(T=F,z()):T},P.ticks=function(F){return hy(v,F)},P.tickFormat=function(F,J){return d3_scale_linearTickFormat(v,F,J)},P.nice=function(F){return d4(v,F),z()},P.copy=function(){return v4(v,g,T,q)},z()}function h4(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function d4(v,g){return cy(v,c4(vy(v,g)[2])),cy(v,c4(vy(v,g)[2])),v}function vy(v,g){g==null&&(g=10);var T=U0(v),q=T[1]-T[0],C=Math.pow(10,Math.floor(Math.log(q/g)/Math.LN10)),L=g/q*C;return L<=.15?C*=10:L<=.35?C*=5:L<=.75&&(C*=2),T[0]=Math.ceil(T[0]/C)*C,T[1]=Math.floor(T[1]/C)*C+C*.5,T[2]=C,T}function hy(v,g){return e.range.apply(e,vy(v,g))}var mW={s:1,g:1,p:1,r:1,e:1};function p4(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function Npe(v,g){var T=p4(g[2]);return v in mW?Math.abs(T-p4(Math.max(b(g[0]),b(g[1]))))+ +(v!=="e"):T-(v==="%")*2}e.scale.log=function(){return m4(e.scale.linear().domain([0,1]),10,!0,[1,10])};function m4(v,g,T,q){function C(P){return(T?Math.log(P<0?0:P):-Math.log(P>0?0:-P))/Math.log(g)}function L(P){return T?Math.pow(g,P):-Math.pow(g,-P)}function z(P){return v(C(P))}return z.invert=function(P){return L(v.invert(P))},z.domain=function(P){return arguments.length?(T=P[0]>=0,v.domain((q=P.map(Number)).map(C)),z):q},z.base=function(P){return arguments.length?(g=+P,v.domain(q.map(C)),z):g},z.nice=function(){var P=cy(q.map(C),T?Math:yW);return v.domain(P),q=P.map(L),z},z.ticks=function(){var P=U0(q),F=[],J=P[0],K=P[1],ee=Math.floor(C(J)),re=Math.ceil(C(K)),ye=g%1?2:g;if(isFinite(re-ee)){if(T){for(;ee0;we--)F.push(L(ee)*we);for(ee=0;F[ee]K;re--);F=F.slice(ee,re)}return F},z.copy=function(){return m4(v.copy(),g,T,q)},h4(z,v)}var yW={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return y4(e.scale.linear(),1,[0,1])};function y4(v,g,T){var q=W0(g),C=W0(1/g);function L(z){return v(q(z))}return L.invert=function(z){return C(v.invert(z))},L.domain=function(z){return arguments.length?(v.domain((T=z.map(Number)).map(q)),L):T},L.ticks=function(z){return hy(T,z)},L.tickFormat=function(z,P){return d3_scale_linearTickFormat(T,z,P)},L.nice=function(z){return L.domain(d4(T,z))},L.exponent=function(z){return arguments.length?(q=W0(g=z),C=W0(1/g),v.domain(T.map(q)),L):g},L.copy=function(){return y4(v.copy(),g,T)},h4(L,v)}function W0(v){return function(g){return g<0?-Math.pow(-g,v):Math.pow(g,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return g4([],{t:"range",a:[[]]})};function g4(v,g){var T,q,C;function L(P){return q[((T.get(P)||(g.t==="range"?T.set(P,v.push(P)):NaN))-1)%q.length]}function z(P,F){return e.range(v.length).map(function(J){return P+F*J})}return L.domain=function(P){if(!arguments.length)return v;v=[],T=new x;for(var F=-1,J=P.length,K;++F0?T[L-1]:v[0],Lre?0:1;if(K=lr)return F(K,we)+(J?F(J,1-we):"")+"Z";var ae,ue,de,_e,Te=0,me=0,Be,tr,sr,nr,hr,dr,Lr,pr,Mr=[];if((_e=(+z.apply(this,arguments)||0)/2)&&(de=q===X0?Math.sqrt(J*J+K*K):+q.apply(this,arguments),we||(me*=-1),K&&(me=It(de/K*Math.sin(_e))),J&&(Te=It(de/J*Math.sin(_e)))),K){Be=K*Math.cos(ee+me),tr=K*Math.sin(ee+me),sr=K*Math.cos(re-me),nr=K*Math.sin(re-me);var Kr=Math.abs(re-ee-2*me)<=Se?0:1;if(me&&Z0(Be,tr,sr,nr)===we^Kr){var Ht=(ee+re)/2;Be=K*Math.cos(Ht),tr=K*Math.sin(Ht),sr=nr=null}}else Be=tr=0;if(J){hr=J*Math.cos(re-Te),dr=J*Math.sin(re-Te),Lr=J*Math.cos(ee+Te),pr=J*Math.sin(ee+Te);var at=Math.abs(ee-re+2*Te)<=Se?0:1;if(Te&&Z0(hr,dr,Lr,pr)===1-we^at){var er=(ee+re)/2;hr=J*Math.cos(er),dr=J*Math.sin(er),Lr=pr=null}}else hr=dr=0;if(ye>ce&&(ae=Math.min(Math.abs(K-J)/2,+T.apply(this,arguments)))>.001){ue=J0?0:1}function J0(v,g,T,q,C){var L=v[0]-g[0],z=v[1]-g[1],P=(C?q:-q)/Math.sqrt(L*L+z*z),F=P*z,J=-P*L,K=v[0]+F,ee=v[1]+J,re=g[0]+F,ye=g[1]+J,we=(K+re)/2,ae=(ee+ye)/2,ue=re-K,de=ye-ee,_e=ue*ue+de*de,Te=T-q,me=K*ye-re*ee,Be=(de<0?-1:1)*Math.sqrt(Math.max(0,Te*Te*_e-me*me)),tr=(me*de-ue*Be)/_e,sr=(-me*ue-de*Be)/_e,nr=(me*de+ue*Be)/_e,hr=(-me*ue+de*Be)/_e,dr=tr-we,Lr=sr-ae,pr=nr-we,Mr=hr-ae;return dr*dr+Lr*Lr>pr*pr+Mr*Mr&&(tr=nr,sr=hr),[[tr-F,sr-J],[tr*T/Te,sr*T/Te]]}function A4(){return!0}function k4(v){var g=nu,T=lc,q=A4,C=li,L=C.key,z=.7;function P(F){var J=[],K=[],ee=-1,re=F.length,ye,we=Nr(g),ae=Nr(T);function ue(){J.push("M",C(v(K),z))}for(;++ee1?v.join("L"):v+"Z"}function q4(v){return v.join("L")+"Z"}function kW(v){for(var g=0,T=v.length,q=v[0],C=[q[0],",",q[1]];++g1&&C.push("H",q[0]),C.join("")}function py(v){for(var g=0,T=v.length,q=v[0],C=[q[0],",",q[1]];++g1){P=g[1],L=v[F],F++,q+="C"+(C[0]+z[0])+","+(C[1]+z[1])+","+(L[0]-P[0])+","+(L[1]-P[1])+","+L[0]+","+L[1];for(var J=2;J9&&(L=T*3/Math.sqrt(L),z[P]=L*q,z[P+1]=L*C));for(P=-1;++P<=F;)L=(v[Math.min(F,P+1)][0]-v[Math.max(0,P-1)][0])/(6*(1+z[P]*z[P])),g.push([L||0,z[P]*L||0]);return g}function zW(v){return v.length<3?li(v):v[0]+$0(v,RW(v))}e.svg.line.radial=function(){var v=k4(D4);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function D4(v){for(var g,T=-1,q=v.length,C,L;++TSe)+",1 "+ee}function J(K,ee,re,ye){return"Q 0,0 "+ye}return L.radius=function(K){return arguments.length?(T=Nr(K),L):T},L.source=function(K){return arguments.length?(v=Nr(K),L):v},L.target=function(K){return arguments.length?(g=Nr(K),L):g},L.startAngle=function(K){return arguments.length?(q=Nr(K),L):q},L.endAngle=function(K){return arguments.length?(C=Nr(K),L):C},L};function NW(v){return v.radius}e.svg.diagonal=function(){var v=P4,g=R4,T=z4;function q(C,L){var z=v.call(this,C,L),P=g.call(this,C,L),F=(z.y+P.y)/2,J=[z,{x:z.x,y:F},{x:P.x,y:F},P];return J=J.map(T),"M"+J[0]+"C"+J[1]+" "+J[2]+" "+J[3]}return q.source=function(C){return arguments.length?(v=Nr(C),q):v},q.target=function(C){return arguments.length?(g=Nr(C),q):g},q.projection=function(C){return arguments.length?(T=C,q):T},q};function z4(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=z4,T=v.projection;return v.projection=function(q){return arguments.length?T(FW(g=q)):g},v};function FW(v){return function(){var g=v.apply(this,arguments),T=g[0],q=g[1]-ar;return[T*Math.cos(q),T*Math.sin(q)]}}e.svg.symbol=function(){var v=HW,g=IW;function T(q,C){return(F4.get(v.call(this,q,C))||N4)(g.call(this,q,C))}return T.type=function(q){return arguments.length?(v=Nr(q),T):v},T.size=function(q){return arguments.length?(g=Nr(q),T):g},T};function IW(){return 64}function HW(){return"circle"}function N4(v){var g=Math.sqrt(v/Se);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var F4=e.map({circle:N4,cross:function(v){var g=Math.sqrt(v/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(v){var g=Math.sqrt(v/(2*I4)),T=g*I4;return"M0,"+-g+"L"+T+",0 0,"+g+" "+-T+",0Z"},square:function(v){var g=Math.sqrt(v)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(v){var g=Math.sqrt(v/K0),T=g*K0/2;return"M0,"+T+"L"+g+","+-T+" "+-g+","+-T+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/K0),T=g*K0/2;return"M0,"+-T+"L"+g+","+T+" "+-g+","+T+"Z"}});e.svg.symbolTypes=F4.keys();var K0=Math.sqrt(3),I4=Math.tan(30*Ar);be.transition=function(v){for(var g=No||++O4,T=_y(v),q=[],C,L,z=j0||{time:Date.now(),ease:yV,delay:0,duration:250},P=-1,F=this.length;++P0;)ee[--_e].call(v,de);if(ue>=1)return z.event&&z.event.end.call(v,v.__data__,g),--L.count?delete L[q]:delete v[T],1}z||(P=C.time,F=F0(re,0,P),z=L[q]={tween:new x,time:P,timer:F,delay:C.delay,duration:C.duration,ease:C.ease,index:g},C=null,++L.count)}e.svg.axis=function(){var v=e.scale.linear(),g=B4,T=6,q=6,C=3,L=[10],z=null,P;function F(J){J.each(function(){var K=e.select(this),ee=this.__chart__||v,re=this.__chart__=v.copy(),ye=z==null?re.ticks?re.ticks.apply(re,L):re.domain():z,we=P==null?re.tickFormat?re.tickFormat.apply(re,L):U:P,ae=K.selectAll(".tick").data(ye,re),ue=ae.enter().insert("g",".domain").attr("class","tick").style("opacity",ce),de=e.transition(ae.exit()).style("opacity",ce).remove(),_e=e.transition(ae.order()).style("opacity",1),Te=Math.max(T,0)+C,me,Be=V0(re),tr=K.selectAll(".domain").data([0]),sr=(tr.enter().append("path").attr("class","domain"),e.transition(tr));ue.append("line"),ue.append("text");var nr=ue.select("line"),hr=_e.select("line"),dr=ae.select("text").text(we),Lr=ue.select("text"),pr=_e.select("text"),Mr=g==="top"||g==="left"?-1:1,Kr,Ht,at,er;if(g==="bottom"||g==="top"?(me=YW,Kr="x",at="y",Ht="x2",er="y2",dr.attr("dy",Mr<0?"0em":".71em").style("text-anchor","middle"),sr.attr("d","M"+Be[0]+","+Mr*q+"V0H"+Be[1]+"V"+Mr*q)):(me=GW,Kr="y",at="x",Ht="y2",er="x2",dr.attr("dy",".32em").style("text-anchor",Mr<0?"end":"start"),sr.attr("d","M"+Mr*q+","+Be[0]+"H0V"+Be[1]+"H"+Mr*q)),nr.attr(er,Mr*T),Lr.attr(at,Mr*Te),hr.attr(Ht,0).attr(er,Mr*T),pr.attr(Kr,0).attr(at,Mr*Te),re.rangeBand){var Dr=re,Er=Dr.rangeBand()/2;ee=re=function(Qr){return Dr(Qr)+Er}}else ee.rangeBand?ee=re:de.call(me,re,ee);ue.call(me,ee,re),_e.call(me,re,re)})}return F.scale=function(J){return arguments.length?(v=J,F):v},F.orient=function(J){return arguments.length?(g=J in BW?J+"":B4,F):g},F.ticks=function(){return arguments.length?(L=t(arguments),F):L},F.tickValues=function(J){return arguments.length?(z=J,F):z},F.tickFormat=function(J){return arguments.length?(P=J,F):P},F.tickSize=function(J){var K=arguments.length;return K?(T=+J,q=+arguments[K-1],F):T},F.innerTickSize=function(J){return arguments.length?(T=+J,F):T},F.outerTickSize=function(J){return arguments.length?(q=+J,F):q},F.tickPadding=function(J){return arguments.length?(C=+J,F):C},F.tickSubdivide=function(){return arguments.length&&F},F};var B4="bottom",BW={top:1,right:1,bottom:1,left:1};function YW(v,g,T){v.attr("transform",function(q){var C=g(q);return"translate("+(isFinite(C)?C:T(q))+",0)"})}function GW(v,g,T){v.attr("transform",function(q){var C=g(q);return"translate(0,"+(isFinite(C)?C:T(q))+")"})}e.svg.brush=function(){var v=fe(K,"brushstart","brush","brushend"),g=null,T=null,q=[0,0],C=[0,0],L,z,P=!0,F=!0,J=wy[0];function K(ae){ae.each(function(){var ue=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",we).on("touchstart.brush",we),de=ue.selectAll(".background").data([0]);de.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ue.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var _e=ue.selectAll(".resize").data(J,U);_e.exit().remove(),_e.enter().append("g").attr("class",function(tr){return"resize "+tr}).style("cursor",function(tr){return UW[tr]}).append("rect").attr("x",function(tr){return/[ew]$/.test(tr)?-3:null}).attr("y",function(tr){return/^[ns]/.test(tr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),_e.style("display",K.empty()?"none":null);var Te=e.transition(ue),me=e.transition(de),Be;g&&(Be=V0(g),me.attr("x",Be[0]).attr("width",Be[1]-Be[0]),re(Te)),T&&(Be=V0(T),me.attr("y",Be[0]).attr("height",Be[1]-Be[0]),ye(Te)),ee(Te)})}K.event=function(ae){ae.each(function(){var ue=v.of(this,arguments),de={x:q,y:C,i:L,j:z},_e=this.__chart__||de;this.__chart__=de,No?e.select(this).transition().each("start.brush",function(){L=_e.i,z=_e.j,q=_e.x,C=_e.y,ue({type:"brushstart"})}).tween("brush:brush",function(){var Te=G0(q,de.x),me=G0(C,de.y);return L=z=null,function(Be){q=de.x=Te(Be),C=de.y=me(Be),ue({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=de.i,z=de.j,ue({type:"brush",mode:"resize"}),ue({type:"brushend"})}):(ue({type:"brushstart"}),ue({type:"brush",mode:"resize"}),ue({type:"brushend"}))})};function ee(ae){ae.selectAll(".resize").attr("transform",function(ue){return"translate("+q[+/e$/.test(ue)]+","+C[+/^s/.test(ue)]+")"})}function re(ae){ae.select(".extent").attr("x",q[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",q[1]-q[0])}function ye(ae){ae.select(".extent").attr("y",C[0]),ae.selectAll(".extent,.e>rect,.w>rect").attr("height",C[1]-C[0])}function we(){var ae=this,ue=e.select(e.event.target),de=v.of(ae,arguments),_e=e.select(ae),Te=ue.datum(),me=!/^(n|s)$/.test(Te)&&g,Be=!/^(e|w)$/.test(Te)&&T,tr=ue.classed("extent"),sr=vr(ae),nr,hr=e.mouse(ae),dr,Lr=e.select(i(ae)).on("keydown.brush",Kr).on("keyup.brush",Ht);if(e.event.changedTouches?Lr.on("touchmove.brush",at).on("touchend.brush",Dr):Lr.on("mousemove.brush",at).on("mouseup.brush",Dr),_e.interrupt().selectAll("*").interrupt(),tr)hr[0]=q[0]-hr[0],hr[1]=C[0]-hr[1];else if(Te){var pr=+/w$/.test(Te),Mr=+/^n/.test(Te);dr=[q[1-pr]-hr[0],C[1-Mr]-hr[1]],hr[0]=q[pr],hr[1]=C[Mr]}else e.event.altKey&&(nr=hr.slice());_e.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ue.style("cursor")),de({type:"brushstart"}),at();function Kr(){e.event.keyCode==32&&(tr||(nr=null,hr[0]-=q[1],hr[1]-=C[1],tr=2),te())}function Ht(){e.event.keyCode==32&&tr==2&&(hr[0]+=q[1],hr[1]+=C[1],tr=0,te())}function at(){var Er=e.mouse(ae),Qr=!1;dr&&(Er[0]+=dr[0],Er[1]+=dr[1]),tr||(e.event.altKey?(nr||(nr=[(q[0]+q[1])/2,(C[0]+C[1])/2]),hr[0]=q[+(Er[0]{(function(e,r){typeof ih=="object"&&typeof X4!="undefined"?r(ih):(e=e||self,r(e.d3=e.d3||{}))})(ih,function(e){"use strict";var r=new Date,t=new Date;function a(ie,Me,Ze,cr){function fr(oe){return ie(oe=arguments.length===0?new Date:new Date(+oe)),oe}return fr.floor=function(oe){return ie(oe=new Date(+oe)),oe},fr.ceil=function(oe){return ie(oe=new Date(oe-1)),Me(oe,1),ie(oe),oe},fr.round=function(oe){var Ce=fr(oe),Ie=fr.ceil(oe);return oe-Ce0))return We;do We.push(Ue=new Date(+oe)),Me(oe,Ie),ie(oe);while(Ue=Ce)for(;ie(Ce),!oe(Ce);)Ce.setTime(Ce-1)},function(Ce,Ie){if(Ce>=Ce)if(Ie<0)for(;++Ie<=0;)for(;Me(Ce,-1),!oe(Ce););else for(;--Ie>=0;)for(;Me(Ce,1),!oe(Ce););})},Ze&&(fr.count=function(oe,Ce){return r.setTime(+oe),t.setTime(+Ce),ie(r),ie(t),Math.floor(Ze(r,t))},fr.every=function(oe){return oe=Math.floor(oe),!isFinite(oe)||!(oe>0)?null:oe>1?fr.filter(cr?function(Ce){return cr(Ce)%oe===0}:function(Ce){return fr.count(0,Ce)%oe===0}):fr}),fr}var n=a(function(){},function(ie,Me){ie.setTime(+ie+Me)},function(ie,Me){return Me-ie});n.every=function(ie){return ie=Math.floor(ie),!isFinite(ie)||!(ie>0)?null:ie>1?a(function(Me){Me.setTime(Math.floor(Me/ie)*ie)},function(Me,Ze){Me.setTime(+Me+Ze*ie)},function(Me,Ze){return(Ze-Me)/ie}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(ie){ie.setTime(ie-ie.getMilliseconds())},function(ie,Me){ie.setTime(+ie+Me*l)},function(ie,Me){return(Me-ie)/l},function(ie){return ie.getUTCSeconds()}),h=c.range,d=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l)},function(ie,Me){ie.setTime(+ie+Me*o)},function(ie,Me){return(Me-ie)/o},function(ie){return ie.getMinutes()}),p=d.range,y=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l-ie.getMinutes()*o)},function(ie,Me){ie.setTime(+ie+Me*s)},function(ie,Me){return(Me-ie)/s},function(ie){return ie.getHours()}),m=y.range,b=a(function(ie){ie.setHours(0,0,0,0)},function(ie,Me){ie.setDate(ie.getDate()+Me)},function(ie,Me){return(Me-ie-(Me.getTimezoneOffset()-ie.getTimezoneOffset())*o)/u},function(ie){return ie.getDate()-1}),_=b.range;function w(ie){return a(function(Me){Me.setDate(Me.getDate()-(Me.getDay()+7-ie)%7),Me.setHours(0,0,0,0)},function(Me,Ze){Me.setDate(Me.getDate()+Ze*7)},function(Me,Ze){return(Ze-Me-(Ze.getTimezoneOffset()-Me.getTimezoneOffset())*o)/f})}var x=w(0),M=w(1),k=w(2),A=w(3),S=w(4),D=w(5),E=w(6),R=x.range,N=M.range,I=k.range,H=A.range,U=S.range,W=D.range,Y=E.range,O=a(function(ie){ie.setDate(1),ie.setHours(0,0,0,0)},function(ie,Me){ie.setMonth(ie.getMonth()+Me)},function(ie,Me){return Me.getMonth()-ie.getMonth()+(Me.getFullYear()-ie.getFullYear())*12},function(ie){return ie.getMonth()}),G=O.range,Z=a(function(ie){ie.setMonth(0,1),ie.setHours(0,0,0,0)},function(ie,Me){ie.setFullYear(ie.getFullYear()+Me)},function(ie,Me){return Me.getFullYear()-ie.getFullYear()},function(ie){return ie.getFullYear()});Z.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(Me){Me.setFullYear(Math.floor(Me.getFullYear()/ie)*ie),Me.setMonth(0,1),Me.setHours(0,0,0,0)},function(Me,Ze){Me.setFullYear(Me.getFullYear()+Ze*ie)})};var $=Z.range,te=a(function(ie){ie.setUTCSeconds(0,0)},function(ie,Me){ie.setTime(+ie+Me*o)},function(ie,Me){return(Me-ie)/o},function(ie){return ie.getUTCMinutes()}),le=te.range,fe=a(function(ie){ie.setUTCMinutes(0,0,0)},function(ie,Me){ie.setTime(+ie+Me*s)},function(ie,Me){return(Me-ie)/s},function(ie){return ie.getUTCHours()}),he=fe.range,Q=a(function(ie){ie.setUTCHours(0,0,0,0)},function(ie,Me){ie.setUTCDate(ie.getUTCDate()+Me)},function(ie,Me){return(Me-ie)/u},function(ie){return ie.getUTCDate()-1}),qe=Q.range;function ve(ie){return a(function(Me){Me.setUTCDate(Me.getUTCDate()-(Me.getUTCDay()+7-ie)%7),Me.setUTCHours(0,0,0,0)},function(Me,Ze){Me.setUTCDate(Me.getUTCDate()+Ze*7)},function(Me,Ze){return(Ze-Me)/f})}var Ae=ve(0),se=ve(1),be=ve(2),V=ve(3),j=ve(4),X=ve(5),ge=ve(6),ke=Ae.range,xe=se.range,ze=be.range,Fe=V.range,Ee=j.range,Ne=X.range,Ve=ge.range,Ge=a(function(ie){ie.setUTCDate(1),ie.setUTCHours(0,0,0,0)},function(ie,Me){ie.setUTCMonth(ie.getUTCMonth()+Me)},function(ie,Me){return Me.getUTCMonth()-ie.getUTCMonth()+(Me.getUTCFullYear()-ie.getUTCFullYear())*12},function(ie){return ie.getUTCMonth()}),De=Ge.range,He=a(function(ie){ie.setUTCMonth(0,1),ie.setUTCHours(0,0,0,0)},function(ie,Me){ie.setUTCFullYear(ie.getUTCFullYear()+Me)},function(ie,Me){return Me.getUTCFullYear()-ie.getUTCFullYear()},function(ie){return ie.getUTCFullYear()});He.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(Me){Me.setUTCFullYear(Math.floor(Me.getUTCFullYear()/ie)*ie),Me.setUTCMonth(0,1),Me.setUTCHours(0,0,0,0)},function(Me,Ze){Me.setUTCFullYear(Me.getUTCFullYear()+Ze*ie)})};var Oe=He.range;e.timeDay=b,e.timeDays=_,e.timeFriday=D,e.timeFridays=W,e.timeHour=y,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=M,e.timeMondays=N,e.timeMonth=O,e.timeMonths=G,e.timeSaturday=E,e.timeSaturdays=Y,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=x,e.timeSundays=R,e.timeThursday=S,e.timeThursdays=U,e.timeTuesday=k,e.timeTuesdays=I,e.timeWednesday=A,e.timeWednesdays=H,e.timeWeek=x,e.timeWeeks=R,e.timeYear=Z,e.timeYears=$,e.utcDay=Q,e.utcDays=qe,e.utcFriday=X,e.utcFridays=Ne,e.utcHour=fe,e.utcHours=he,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=te,e.utcMinutes=le,e.utcMonday=se,e.utcMondays=xe,e.utcMonth=Ge,e.utcMonths=De,e.utcSaturday=ge,e.utcSaturdays=Ve,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=Ae,e.utcSundays=ke,e.utcThursday=j,e.utcThursdays=Ee,e.utcTuesday=be,e.utcTuesdays=ze,e.utcWednesday=V,e.utcWednesdays=Fe,e.utcWeek=Ae,e.utcWeeks=ke,e.utcYear=He,e.utcYears=Oe,Object.defineProperty(e,"__esModule",{value:!0})})});var cu=B((lh,Z4)=>{(function(e,r){typeof lh=="object"&&typeof Z4!="undefined"?r(lh,My()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(lh,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var ce=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return ce.setFullYear(ne.y),ce}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var ce=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return ce.setUTCFullYear(ne.y),ce}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,ce,Le){return{y:ne,m:ce,d:Le,H:0,M:0,S:0,L:0}}function i(ne){var ce=ne.dateTime,Le=ne.date,Se=ne.time,or=ne.periods,lr=ne.days,ar=ne.shortDays,Ar=ne.months,Br=ne.shortMonths,tt=h(or),jr=d(or),ra=h(lr),It=d(lr),_t=h(ar),Dt=d(ar),ga=h(Ar),xa=d(Ar),Gt=h(Br),$a=d(Br),gr={a:Do,A:Eo,b:Ll,B:L0,c:null,d:O,e:O,f:le,H:G,I:Z,j:$,L:te,m:fe,M:he,p:D0,q:ac,Q:Ce,s:Ie,S:Q,u:qe,U:ve,V:Ae,w:se,W:be,x:null,X:null,y:V,Y:j,Z:X,"%":oe},ft={a:nc,A:ic,b:Oa,B:E0,c:null,d:ge,e:ge,f:Ee,H:ke,I:xe,j:ze,L:Fe,m:Ne,M:Ve,p:tu,q:au,Q:Ce,s:Ie,S:Ge,u:De,U:He,V:Oe,w:ie,W:Me,x:null,X:null,y:Ze,Y:cr,Z:fr,"%":oe},Wr={a:Ha,A:ca,b:ai,B:ni,c:ta,d:S,e:S,f:H,H:E,I:E,j:D,L:I,m:A,M:R,p:Tt,q:k,Q:W,s:Y,S:N,u:y,U:m,V:b,w:p,W:_,x:it,X:ba,y:x,Y:w,Z:M,"%":U};gr.x=wt(Le,gr),gr.X=wt(Se,gr),gr.c=wt(ce,gr),ft.x=wt(Le,ft),ft.X=wt(Se,ft),ft.c=wt(ce,ft);function wt(mr,Xr){return function(et){var ir=[],_a=-1,vt=0,wa=mr.length,Nr,ii,Po;for(et instanceof Date||(et=new Date(+et));++_a53)return null;"w"in ir||(ir.w=1),"Z"in ir?(vt=a(n(ir.y,0,1)),wa=vt.getUTCDay(),vt=wa>4||wa===0?r.utcMonday.ceil(vt):r.utcMonday(vt),vt=r.utcDay.offset(vt,(ir.V-1)*7),ir.y=vt.getUTCFullYear(),ir.m=vt.getUTCMonth(),ir.d=vt.getUTCDate()+(ir.w+6)%7):(vt=t(n(ir.y,0,1)),wa=vt.getDay(),vt=wa>4||wa===0?r.timeMonday.ceil(vt):r.timeMonday(vt),vt=r.timeDay.offset(vt,(ir.V-1)*7),ir.y=vt.getFullYear(),ir.m=vt.getMonth(),ir.d=vt.getDate()+(ir.w+6)%7)}else("W"in ir||"U"in ir)&&("w"in ir||(ir.w="u"in ir?ir.u%7:"W"in ir?1:0),wa="Z"in ir?a(n(ir.y,0,1)).getUTCDay():t(n(ir.y,0,1)).getDay(),ir.m=0,ir.d="W"in ir?(ir.w+6)%7+ir.W*7-(wa+5)%7:ir.w+ir.U*7-(wa+6)%7);return"Z"in ir?(ir.H+=ir.Z/100|0,ir.M+=ir.Z%100,a(ir)):t(ir)}}function ct(mr,Xr,et,ir){for(var _a=0,vt=Xr.length,wa=et.length,Nr,ii;_a=wa)return-1;if(Nr=Xr.charCodeAt(_a++),Nr===37){if(Nr=Xr.charAt(_a++),ii=Wr[Nr in l?Xr.charAt(_a++):Nr],!ii||(ir=ii(mr,et,ir))<0)return-1}else if(Nr!=et.charCodeAt(ir++))return-1}return ir}function Tt(mr,Xr,et){var ir=tt.exec(Xr.slice(et));return ir?(mr.p=jr[ir[0].toLowerCase()],et+ir[0].length):-1}function Ha(mr,Xr,et){var ir=_t.exec(Xr.slice(et));return ir?(mr.w=Dt[ir[0].toLowerCase()],et+ir[0].length):-1}function ca(mr,Xr,et){var ir=ra.exec(Xr.slice(et));return ir?(mr.w=It[ir[0].toLowerCase()],et+ir[0].length):-1}function ai(mr,Xr,et){var ir=Gt.exec(Xr.slice(et));return ir?(mr.m=$a[ir[0].toLowerCase()],et+ir[0].length):-1}function ni(mr,Xr,et){var ir=ga.exec(Xr.slice(et));return ir?(mr.m=xa[ir[0].toLowerCase()],et+ir[0].length):-1}function ta(mr,Xr,et){return ct(mr,ce,Xr,et)}function it(mr,Xr,et){return ct(mr,Le,Xr,et)}function ba(mr,Xr,et){return ct(mr,Se,Xr,et)}function Do(mr){return ar[mr.getDay()]}function Eo(mr){return lr[mr.getDay()]}function Ll(mr){return Br[mr.getMonth()]}function L0(mr){return Ar[mr.getMonth()]}function D0(mr){return or[+(mr.getHours()>=12)]}function ac(mr){return 1+~~(mr.getMonth()/3)}function nc(mr){return ar[mr.getUTCDay()]}function ic(mr){return lr[mr.getUTCDay()]}function Oa(mr){return Br[mr.getUTCMonth()]}function E0(mr){return Ar[mr.getUTCMonth()]}function tu(mr){return or[+(mr.getUTCHours()>=12)]}function au(mr){return 1+~~(mr.getUTCMonth()/3)}return{format:function(mr){var Xr=wt(mr+="",gr);return Xr.toString=function(){return mr},Xr},parse:function(mr){var Xr=Et(mr+="",!1);return Xr.toString=function(){return mr},Xr},utcFormat:function(mr){var Xr=wt(mr+="",ft);return Xr.toString=function(){return mr},Xr},utcParse:function(mr){var Xr=Et(mr+="",!0);return Xr.toString=function(){return mr},Xr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,ce,Le){var Se=ne<0?"-":"",or=(Se?-ne:ne)+"",lr=or.length;return Se+(lr68?1900:2e3),Le+Se[0].length):-1}function M(ne,ce,Le){var Se=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ce.slice(Le,Le+6));return Se?(ne.Z=Se[1]?0:-(Se[2]+(Se[3]||"00")),Le+Se[0].length):-1}function k(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+1));return Se?(ne.q=Se[0]*3-3,Le+Se[0].length):-1}function A(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+2));return Se?(ne.m=Se[0]-1,Le+Se[0].length):-1}function S(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+2));return Se?(ne.d=+Se[0],Le+Se[0].length):-1}function D(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+3));return Se?(ne.m=0,ne.d=+Se[0],Le+Se[0].length):-1}function E(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+2));return Se?(ne.H=+Se[0],Le+Se[0].length):-1}function R(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+2));return Se?(ne.M=+Se[0],Le+Se[0].length):-1}function N(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+2));return Se?(ne.S=+Se[0],Le+Se[0].length):-1}function I(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+3));return Se?(ne.L=+Se[0],Le+Se[0].length):-1}function H(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+6));return Se?(ne.L=Math.floor(Se[0]/1e3),Le+Se[0].length):-1}function U(ne,ce,Le){var Se=s.exec(ce.slice(Le,Le+1));return Se?Le+Se[0].length:-1}function W(ne,ce,Le){var Se=o.exec(ce.slice(Le));return Se?(ne.Q=+Se[0],Le+Se[0].length):-1}function Y(ne,ce,Le){var Se=o.exec(ce.slice(Le));return Se?(ne.s=+Se[0],Le+Se[0].length):-1}function O(ne,ce){return f(ne.getDate(),ce,2)}function G(ne,ce){return f(ne.getHours(),ce,2)}function Z(ne,ce){return f(ne.getHours()%12||12,ce,2)}function $(ne,ce){return f(1+r.timeDay.count(r.timeYear(ne),ne),ce,3)}function te(ne,ce){return f(ne.getMilliseconds(),ce,3)}function le(ne,ce){return te(ne,ce)+"000"}function fe(ne,ce){return f(ne.getMonth()+1,ce,2)}function he(ne,ce){return f(ne.getMinutes(),ce,2)}function Q(ne,ce){return f(ne.getSeconds(),ce,2)}function qe(ne){var ce=ne.getDay();return ce===0?7:ce}function ve(ne,ce){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),ce,2)}function Ae(ne,ce){var Le=ne.getDay();return ne=Le>=4||Le===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),ce,2)}function se(ne){return ne.getDay()}function be(ne,ce){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),ce,2)}function V(ne,ce){return f(ne.getFullYear()%100,ce,2)}function j(ne,ce){return f(ne.getFullYear()%1e4,ce,4)}function X(ne){var ce=ne.getTimezoneOffset();return(ce>0?"-":(ce*=-1,"+"))+f(ce/60|0,"0",2)+f(ce%60,"0",2)}function ge(ne,ce){return f(ne.getUTCDate(),ce,2)}function ke(ne,ce){return f(ne.getUTCHours(),ce,2)}function xe(ne,ce){return f(ne.getUTCHours()%12||12,ce,2)}function ze(ne,ce){return f(1+r.utcDay.count(r.utcYear(ne),ne),ce,3)}function Fe(ne,ce){return f(ne.getUTCMilliseconds(),ce,3)}function Ee(ne,ce){return Fe(ne,ce)+"000"}function Ne(ne,ce){return f(ne.getUTCMonth()+1,ce,2)}function Ve(ne,ce){return f(ne.getUTCMinutes(),ce,2)}function Ge(ne,ce){return f(ne.getUTCSeconds(),ce,2)}function De(ne){var ce=ne.getUTCDay();return ce===0?7:ce}function He(ne,ce){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),ce,2)}function Oe(ne,ce){var Le=ne.getUTCDay();return ne=Le>=4||Le===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),ce,2)}function ie(ne){return ne.getUTCDay()}function Me(ne,ce){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),ce,2)}function Ze(ne,ce){return f(ne.getUTCFullYear()%100,ce,2)}function cr(ne,ce){return f(ne.getUTCFullYear()%1e4,ce,4)}function fr(){return"+0000"}function oe(){return"%"}function Ce(ne){return+ne}function Ie(ne){return Math.floor(+ne/1e3)}var We;Ue({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Ue(ne){return We=i(ne),e.timeFormat=We.format,e.timeParse=We.parse,e.utcFormat=We.utcFormat,e.utcParse=We.utcParse,We}var Je="%Y-%m-%dT%H:%M:%S.%LZ";function je(ne){return ne.toISOString()}var vr=Date.prototype.toISOString?je:e.utcFormat(Je);function $e(ne){var ce=new Date(ne);return isNaN(ce)?null:ce}var Re=+new Date("2000-01-01T00:00:00.000Z")?$e:e.utcParse(Je);e.isoFormat=vr,e.isoParse=Re,e.timeFormatDefaultLocale=Ue,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Ay=B((oh,J4)=>{(function(e,r){typeof oh=="object"&&typeof J4!="undefined"?r(oh):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(oh,function(e){"use strict";function r(A){return Math.abs(A=Math.round(A))>=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function t(A,S){if((D=(A=S?A.toExponential(S-1):A.toExponential()).indexOf("e"))<0)return null;var D,E=A.slice(0,D);return[E.length>1?E[0]+E.slice(2):E,+A.slice(D+1)]}function a(A){return A=t(Math.abs(A)),A?A[1]:NaN}function n(A,S){return function(D,E){for(var R=D.length,N=[],I=0,H=A[0],U=0;R>0&&H>0&&(U+H+1>E&&(H=Math.max(1,E-U)),N.push(D.substring(R-=H,R+H)),!((U+=H+1)>E));)H=A[I=(I+1)%A.length];return N.reverse().join(S)}}function i(A){return function(S){return S.replace(/[0-9]/g,function(D){return A[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(A){if(!(S=l.exec(A)))throw new Error("invalid format: "+A);var S;return new s({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}o.prototype=s.prototype;function s(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(A){e:for(var S=A.length,D=1,E=-1,R;D0&&(E=0);break}return E>0?A.slice(0,E)+A.slice(R+1):A}var f;function c(A,S){var D=t(A,S);if(!D)return A+"";var E=D[0],R=D[1],N=R-(f=Math.max(-8,Math.min(8,Math.floor(R/3)))*3)+1,I=E.length;return N===I?E:N>I?E+new Array(N-I+1).join("0"):N>0?E.slice(0,N)+"."+E.slice(N):"0."+new Array(1-N).join("0")+t(A,Math.max(0,S+N-1))[0]}function h(A,S){var D=t(A,S);if(!D)return A+"";var E=D[0],R=D[1];return R<0?"0."+new Array(-R).join("0")+E:E.length>R+1?E.slice(0,R+1)+"."+E.slice(R+1):E+new Array(R-E.length+2).join("0")}var d={"%":function(A,S){return(A*100).toFixed(S)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:r,e:function(A,S){return A.toExponential(S)},f:function(A,S){return A.toFixed(S)},g:function(A,S){return A.toPrecision(S)},o:function(A){return Math.round(A).toString(8)},p:function(A,S){return h(A*100,S)},r:h,s:c,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function p(A){return A}var y=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(A){var S=A.grouping===void 0||A.thousands===void 0?p:n(y.call(A.grouping,Number),A.thousands+""),D=A.currency===void 0?"":A.currency[0]+"",E=A.currency===void 0?"":A.currency[1]+"",R=A.decimal===void 0?".":A.decimal+"",N=A.numerals===void 0?p:i(y.call(A.numerals,String)),I=A.percent===void 0?"%":A.percent+"",H=A.minus===void 0?"-":A.minus+"",U=A.nan===void 0?"NaN":A.nan+"";function W(O){O=o(O);var G=O.fill,Z=O.align,$=O.sign,te=O.symbol,le=O.zero,fe=O.width,he=O.comma,Q=O.precision,qe=O.trim,ve=O.type;ve==="n"?(he=!0,ve="g"):d[ve]||(Q===void 0&&(Q=12),qe=!0,ve="g"),(le||G==="0"&&Z==="=")&&(le=!0,G="0",Z="=");var Ae=te==="$"?D:te==="#"&&/[boxX]/.test(ve)?"0"+ve.toLowerCase():"",se=te==="$"?E:/[%p]/.test(ve)?I:"",be=d[ve],V=/[defgprs%]/.test(ve);Q=Q===void 0?6:/[gprs]/.test(ve)?Math.max(1,Math.min(21,Q)):Math.max(0,Math.min(20,Q));function j(X){var ge=Ae,ke=se,xe,ze,Fe;if(ve==="c")ke=be(X)+ke,X="";else{X=+X;var Ee=X<0||1/X<0;if(X=isNaN(X)?U:be(Math.abs(X),Q),qe&&(X=u(X)),Ee&&+X==0&&$!=="+"&&(Ee=!1),ge=(Ee?$==="("?$:H:$==="-"||$==="("?"":$)+ge,ke=(ve==="s"?m[8+f/3]:"")+ke+(Ee&&$==="("?")":""),V){for(xe=-1,ze=X.length;++xeFe||Fe>57){ke=(Fe===46?R+X.slice(xe+1):X.slice(xe))+ke,X=X.slice(0,xe);break}}}he&&!le&&(X=S(X,1/0));var Ne=ge.length+X.length+ke.length,Ve=Ne>1)+ge+X+ke+Ve.slice(Ne);break;default:X=Ve+ge+X+ke;break}return N(X)}return j.toString=function(){return O+""},j}function Y(O,G){var Z=W((O=o(O),O.type="f",O)),$=Math.max(-8,Math.min(8,Math.floor(a(G)/3)))*3,te=Math.pow(10,-$),le=m[8+$/3];return function(fe){return Z(te*fe)+le}}return{format:W,formatPrefix:Y}}var _;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(A){return _=b(A),e.format=_.format,e.formatPrefix=_.formatPrefix,_}function x(A){return Math.max(0,-a(Math.abs(A)))}function M(A,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(S)/3)))*3-a(Math.abs(A)))}function k(A,S){return A=Math.abs(A),S=Math.abs(S)-A,Math.max(0,a(S)-a(A))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=b,e.formatSpecifier=o,e.precisionFixed=x,e.precisionPrefix=M,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var K4=B((Ope,$4)=>{"use strict";$4.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var zr=B((Bpe,Q4)=>{"use strict";var jW=K4();Q4.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&jW(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Mt=B((Ype,j4)=>{"use strict";j4.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var ky=B((sh,e6)=>{(function(e,r){typeof sh=="object"&&typeof e6!="undefined"?r(sh):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(sh,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,c,h,d,p;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var y=new ArrayBuffer(o),m=new Uint8Array(y);for(u=0;u>4,m[f++]=(h&15)<<4|d>>2,m[f++]=(d&3)<<6|p&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var Pl=B((Gpe,r6)=>{"use strict";r6.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var gn=B(si=>{"use strict";var eX=ky().decode,rX=Pl(),qy=Array.isArray,tX=ArrayBuffer,aX=DataView;function t6(e){return tX.isView(e)&&!(e instanceof aX)}si.isTypedArray=t6;function uh(e){return qy(e)||t6(e)}si.isArrayOrTypedArray=uh;function nX(e){return!uh(e[0])}si.isArray1D=nX;si.ensureArray=function(e,r){return qy(e)||(e=[]),e.length=r,e};var va={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};va.uint8c=va.u1c;va.uint8=va.u1;va.int8=va.i1;va.uint16=va.u2;va.int16=va.i2;va.uint32=va.u4;va.int32=va.i4;va.float32=va.f4;va.float64=va.f8;function Cy(e){return e.constructor===ArrayBuffer}si.isArrayBuffer=Cy;si.decodeTypedArraySpec=function(e){var r=[],t=iX(e),a=t.dtype,n=va[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;Cy(l)||(l=eX(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,c=+o[0],h=i*c,d=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var n6=zr(),Ly=gn().isArrayOrTypedArray;s6.exports=function(r,t){if(n6(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var vu=fh(),fX=/^\w*$/,cX=0,u6=1,ch=2,f6=3,Ho=4;c6.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=vu(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[d]=s[d]|ch,c.set(h,null);if(f){for(i=d;i{"use strict";var vX=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,hX=/^[^\.\[\]]+$/;h6.exports=function(e,r){for(;r;){var t=e.match(vX);if(t)e=t[1];else if(e.match(hX))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var vh=B((Zpe,p6)=>{"use strict";var dX=zr();p6.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return dX(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var g6=B((Jpe,y6)=>{"use strict";var m6=gn().isArrayOrTypedArray,pc=Pl();y6.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(m6(n)&&m6(i)&&pc(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o{"use strict";function pX(e,r){var t=e%r;return t<0?t+r:t}function mX(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}x6.exports={mod:pX,modHalf:mX}});var zn=B((Kpe,hh)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(V,j){if(V=V||"",j=j||{},V instanceof s)return V;if(!(this instanceof s))return new s(V,j);var X=u(V);this._originalInput=V,this._r=X.r,this._g=X.g,this._b=X.b,this._a=X.a,this._roundA=n(100*this._a)/100,this._format=j.format||X.format,this._gradientType=j.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=X.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var V=this.toRgb();return(V.r*299+V.g*587+V.b*114)/1e3},getLuminance:function(){var V=this.toRgb(),j,X,ge,ke,xe,ze;return j=V.r/255,X=V.g/255,ge=V.b/255,j<=.03928?ke=j/12.92:ke=e.pow((j+.055)/1.055,2.4),X<=.03928?xe=X/12.92:xe=e.pow((X+.055)/1.055,2.4),ge<=.03928?ze=ge/12.92:ze=e.pow((ge+.055)/1.055,2.4),.2126*ke+.7152*xe+.0722*ze},setAlpha:function(V){return this._a=O(V),this._roundA=n(100*this._a)/100,this},toHsv:function(){var V=d(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=d(this._r,this._g,this._b),j=n(V.h*360),X=n(V.s*100),ge=n(V.v*100);return this._a==1?"hsv("+j+", "+X+"%, "+ge+"%)":"hsva("+j+", "+X+"%, "+ge+"%, "+this._roundA+")"},toHsl:function(){var V=c(this._r,this._g,this._b);return{h:V.h*360,s:V.s,l:V.l,a:this._a}},toHslString:function(){var V=c(this._r,this._g,this._b),j=n(V.h*360),X=n(V.s*100),ge=n(V.l*100);return this._a==1?"hsl("+j+", "+X+"%, "+ge+"%)":"hsla("+j+", "+X+"%, "+ge+"%, "+this._roundA+")"},toHex:function(V){return y(this._r,this._g,this._b,V)},toHexString:function(V){return"#"+this.toHex(V)},toHex8:function(V){return m(this._r,this._g,this._b,this._a,V)},toHex8String:function(V){return"#"+this.toHex8(V)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(G(this._r,255)*100)+"%",g:n(G(this._g,255)*100)+"%",b:n(G(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(G(this._r,255)*100)+"%, "+n(G(this._g,255)*100)+"%, "+n(G(this._b,255)*100)+"%)":"rgba("+n(G(this._r,255)*100)+"%, "+n(G(this._g,255)*100)+"%, "+n(G(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:W[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var j="#"+b(this._r,this._g,this._b,this._a),X=j,ge=this._gradientType?"GradientType = 1, ":"";if(V){var ke=s(V);X="#"+b(ke._r,ke._g,ke._b,ke._a)}return"progid:DXImageTransform.Microsoft.gradient("+ge+"startColorstr="+j+",endColorstr="+X+")"},toString:function(V){var j=!!V;V=V||this._format;var X=!1,ge=this._a<1&&this._a>=0,ke=!j&&ge&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return ke?V==="name"&&this._a===0?this.toName():this.toRgbString():(V==="rgb"&&(X=this.toRgbString()),V==="prgb"&&(X=this.toPercentageRgbString()),(V==="hex"||V==="hex6")&&(X=this.toHexString()),V==="hex3"&&(X=this.toHexString(!0)),V==="hex4"&&(X=this.toHex8String(!0)),V==="hex8"&&(X=this.toHex8String()),V==="name"&&(X=this.toName()),V==="hsl"&&(X=this.toHslString()),V==="hsv"&&(X=this.toHsvString()),X||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(V,j){var X=V.apply(null,[this].concat([].slice.call(j)));return this._r=X._r,this._g=X._g,this._b=X._b,this.setAlpha(X._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(V,j){return V.apply(null,[this].concat([].slice.call(j)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(N,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},s.fromRatio=function(V,j){if(typeof V=="object"){var X={};for(var ge in V)V.hasOwnProperty(ge)&&(ge==="a"?X[ge]=V[ge]:X[ge]=he(V[ge]));V=X}return s(V,j)};function u(V){var j={r:0,g:0,b:0},X=1,ge=null,ke=null,xe=null,ze=!1,Fe=!1;return typeof V=="string"&&(V=se(V)),typeof V=="object"&&(Ae(V.r)&&Ae(V.g)&&Ae(V.b)?(j=f(V.r,V.g,V.b),ze=!0,Fe=String(V.r).substr(-1)==="%"?"prgb":"rgb"):Ae(V.h)&&Ae(V.s)&&Ae(V.v)?(ge=he(V.s),ke=he(V.v),j=p(V.h,ge,ke),ze=!0,Fe="hsv"):Ae(V.h)&&Ae(V.s)&&Ae(V.l)&&(ge=he(V.s),xe=he(V.l),j=h(V.h,ge,xe),ze=!0,Fe="hsl"),V.hasOwnProperty("a")&&(X=V.a)),X=O(X),{ok:ze,format:V.format||Fe,r:i(255,l(j.r,0)),g:i(255,l(j.g,0)),b:i(255,l(j.b,0)),a:X}}function f(V,j,X){return{r:G(V,255)*255,g:G(j,255)*255,b:G(X,255)*255}}function c(V,j,X){V=G(V,255),j=G(j,255),X=G(X,255);var ge=l(V,j,X),ke=i(V,j,X),xe,ze,Fe=(ge+ke)/2;if(ge==ke)xe=ze=0;else{var Ee=ge-ke;switch(ze=Fe>.5?Ee/(2-ge-ke):Ee/(ge+ke),ge){case V:xe=(j-X)/Ee+(j1&&(Ge-=1),Ge<1/6?Ne+(Ve-Ne)*6*Ge:Ge<1/2?Ve:Ge<2/3?Ne+(Ve-Ne)*(2/3-Ge)*6:Ne}if(j===0)ge=ke=xe=X;else{var Fe=X<.5?X*(1+j):X+j-X*j,Ee=2*X-Fe;ge=ze(Ee,Fe,V+1/3),ke=ze(Ee,Fe,V),xe=ze(Ee,Fe,V-1/3)}return{r:ge*255,g:ke*255,b:xe*255}}function d(V,j,X){V=G(V,255),j=G(j,255),X=G(X,255);var ge=l(V,j,X),ke=i(V,j,X),xe,ze,Fe=ge,Ee=ge-ke;if(ze=ge===0?0:Ee/ge,ge==ke)xe=0;else{switch(ge){case V:xe=(j-X)/Ee+(j>1)+720)%360;--j;)ge.h=(ge.h+ke)%360,xe.push(s(ge));return xe}function H(V,j){j=j||6;for(var X=s(V).toHsv(),ge=X.h,ke=X.s,xe=X.v,ze=[],Fe=1/j;j--;)ze.push(s({h:ge,s:ke,v:xe})),xe=(xe+Fe)%1;return ze}s.mix=function(V,j,X){X=X===0?0:X||50;var ge=s(V).toRgb(),ke=s(j).toRgb(),xe=X/100,ze={r:(ke.r-ge.r)*xe+ge.r,g:(ke.g-ge.g)*xe+ge.g,b:(ke.b-ge.b)*xe+ge.b,a:(ke.a-ge.a)*xe+ge.a};return s(ze)},s.readability=function(V,j){var X=s(V),ge=s(j);return(e.max(X.getLuminance(),ge.getLuminance())+.05)/(e.min(X.getLuminance(),ge.getLuminance())+.05)},s.isReadable=function(V,j,X){var ge=s.readability(V,j),ke,xe;switch(xe=!1,ke=be(X),ke.level+ke.size){case"AAsmall":case"AAAlarge":xe=ge>=4.5;break;case"AAlarge":xe=ge>=3;break;case"AAAsmall":xe=ge>=7;break}return xe},s.mostReadable=function(V,j,X){var ge=null,ke=0,xe,ze,Fe,Ee;X=X||{},ze=X.includeFallbackColors,Fe=X.level,Ee=X.size;for(var Ne=0;Neke&&(ke=xe,ge=s(j[Ne]));return s.isReadable(V,ge,{level:Fe,size:Ee})||!ze?ge:(X.includeFallbackColors=!1,s.mostReadable(V,["#fff","#000"],X))};var U=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},W=s.hexNames=Y(U);function Y(V){var j={};for(var X in V)V.hasOwnProperty(X)&&(j[V[X]]=X);return j}function O(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function G(V,j){te(V)&&(V="100%");var X=le(V);return V=i(j,l(0,parseFloat(V))),X&&(V=parseInt(V*j,10)/100),e.abs(V-j)<1e-6?1:V%j/parseFloat(j)}function Z(V){return i(1,l(0,V))}function $(V){return parseInt(V,16)}function te(V){return typeof V=="string"&&V.indexOf(".")!=-1&&parseFloat(V)===1}function le(V){return typeof V=="string"&&V.indexOf("%")!=-1}function fe(V){return V.length==1?"0"+V:""+V}function he(V){return V<=1&&(V=V*100+"%"),V}function Q(V){return e.round(parseFloat(V)*255).toString(16)}function qe(V){return $(V)/255}var ve=function(){var V="[-\\+]?\\d+%?",j="[-\\+]?\\d*\\.\\d+%?",X="(?:"+j+")|(?:"+V+")",ge="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?",ke="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?";return{CSS_UNIT:new RegExp(X),rgb:new RegExp("rgb"+ge),rgba:new RegExp("rgba"+ke),hsl:new RegExp("hsl"+ge),hsla:new RegExp("hsla"+ke),hsv:new RegExp("hsv"+ge),hsva:new RegExp("hsva"+ke),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ae(V){return!!ve.CSS_UNIT.exec(V)}function se(V){V=V.replace(r,"").replace(t,"").toLowerCase();var j=!1;if(U[V])V=U[V],j=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var X;return(X=ve.rgb.exec(V))?{r:X[1],g:X[2],b:X[3]}:(X=ve.rgba.exec(V))?{r:X[1],g:X[2],b:X[3],a:X[4]}:(X=ve.hsl.exec(V))?{h:X[1],s:X[2],l:X[3]}:(X=ve.hsla.exec(V))?{h:X[1],s:X[2],l:X[3],a:X[4]}:(X=ve.hsv.exec(V))?{h:X[1],s:X[2],v:X[3]}:(X=ve.hsva.exec(V))?{h:X[1],s:X[2],v:X[3],a:X[4]}:(X=ve.hex8.exec(V))?{r:$(X[1]),g:$(X[2]),b:$(X[3]),a:qe(X[4]),format:j?"name":"hex8"}:(X=ve.hex6.exec(V))?{r:$(X[1]),g:$(X[2]),b:$(X[3]),format:j?"name":"hex"}:(X=ve.hex4.exec(V))?{r:$(X[1]+""+X[1]),g:$(X[2]+""+X[2]),b:$(X[3]+""+X[3]),a:qe(X[4]+""+X[4]),format:j?"name":"hex8"}:(X=ve.hex3.exec(V))?{r:$(X[1]+""+X[1]),g:$(X[2]+""+X[2]),b:$(X[3]+""+X[3]),format:j?"name":"hex"}:!1}function be(V){var j,X;return V=V||{level:"AA",size:"small"},j=(V.level||"AA").toUpperCase(),X=(V.size||"small").toLowerCase(),j!=="AA"&&j!=="AAA"&&(j="AA"),X!=="small"&&X!=="large"&&(X="small"),{level:j,size:X}}typeof hh!="undefined"&&hh.exports?hh.exports=s:window.tinycolor=s})(Math)});var mt=B(gc=>{"use strict";var b6=Pl(),mc=Array.isArray;function yX(e,r){var t,a;for(t=0;t{"use strict";_6.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var xc=B((eme,w6)=>{"use strict";w6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var du=B((rme,A6)=>{"use strict";var T6=xc(),M6=aa(),Dy=M6({editType:"none"});Dy.family.dflt=T6.HOVERFONT;Dy.size.dflt=T6.HOVERFONTSIZE;A6.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Dy,grouptitlefont:M6({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var wc=B((tme,k6)=>{"use strict";var gX=aa(),bc=du().hoverlabel,_c=mt().extendFlat;k6.exports={hoverlabel:{bgcolor:_c({},bc.bgcolor,{arrayOk:!0}),bordercolor:_c({},bc.bordercolor,{arrayOk:!0}),font:gX({arrayOk:!0,editType:"none"}),align:_c({},bc.align,{arrayOk:!0}),namelength:_c({},bc.namelength,{arrayOk:!0}),showarrow:_c({},bc.showarrow),editType:"none"}}});var tn=B((ame,q6)=>{"use strict";var xX=aa(),bX=wc();q6.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:xX({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:bX.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Oo=B((nme,L6)=>{"use strict";var _X=zn(),dh={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},C6=dh.RdBu;function wX(e,r){if(r||(r=C6),!e)return r;function t(){try{e=dh[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),S6(e)?e:r}function S6(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";Bo.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Bo.defaultLine="#444";Bo.lightLine="#eee";Bo.background="#fff";Bo.borderLine="#BEC8D9";Bo.lightFraction=100*10/11});var xr=B((lme,D6)=>{"use strict";var an=zn(),MX=zr(),AX=gn().isTypedArray,na=D6.exports={},ph=Nn();na.defaults=ph.defaults;var kX=na.defaultLine=ph.defaultLine;na.lightLine=ph.lightLine;var Py=na.background=ph.background;na.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};na.rgb=function(e){return na.tinyRGB(an(e))};na.opacity=function(e){return e?an(e).getAlpha():0};na.addOpacity=function(e,r){var t=an(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};na.combine=function(e,r){var t=an(e).toRgb();if(t.a===1)return an(e).toRgbString();var a=an(r||Py).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return an(i).toRgbString()};na.interpolate=function(e,r,t){var a=an(e).toRgb(),n=an(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return an(i).toRgbString()};na.contrast=function(e,r,t){var a=an(e);a.getAlpha()!==1&&(a=an(na.combine(e,Py)));var n=a.isDark()?r?a.lighten(r):Py:t?a.darken(t):kX;return n.toString()};na.stroke=function(e,r){var t=an(r);e.style({stroke:na.tinyRGB(t),"stroke-opacity":t.getAlpha()})};na.fill=function(e,r){var t=an(r);e.style({fill:na.tinyRGB(t),"fill-opacity":t.getAlpha()})};na.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var l=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}});var pu=B((ome,E6)=>{"use strict";E6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var mu=B(P6=>{"use strict";P6.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var F6=B(nn=>{"use strict";var Ry=zr(),R6=zn(),z6=mt().extendFlat,qX=tn(),CX=Oo(),SX=xr(),LX=pu().DESELECTDIM,yu=fh(),N6=mu().counter,DX=hu().modHalf,Ni=gn().isArrayOrTypedArray,Rl=gn().isTypedArraySpec,zl=gn().decodeTypedArraySpec;nn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Ni(e)?e:Rl(e)?zl(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;aa.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Rl(e)&&(e=zl(e)),e%1||!Ry(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Rl(e)&&(e=zl(e)),R6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return R6(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(CX.get(e,t))}},angle:{coerceFunction:function(e,r,t){Rl(e)&&(e=zl(e)),e==="auto"?r.set("auto"):Ry(e)?r.set(DX(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||N6(t);if(typeof e=="string"&&n.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!N6(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var I6={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},H6={};function O6(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),O6(a,r[t]))}}O6(I6,H6);B6.exports={configAttributes:I6,dfltConfig:H6}});var Ny=B((cme,Y6)=>{"use strict";var zy=kr(),EX=zr(),Tc=[];Y6.exports=function(e,r){if(Tc.indexOf(e)!==-1)return;Tc.push(e);var t=1e3;EX(r)?t=r:r==="long"&&(t=3e3);var a=zy.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Tc);function i(l){l.duration(700).style("opacity",0).each("end",function(o){var s=Tc.indexOf(o);s!==-1&&Tc.splice(s,1),zy.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var o=zy.select(this);o.append("button").classed("notifier-close",!0).html("×").on("click",function(){o.transition().call(i)});for(var s=o.append("p"),u=l.split(//g),f=0;f{"use strict";var gu=Yo().dfltConfig,Fy=Ny(),Iy=G6.exports={};Iy.log=function(){var e;if(gu.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Iy.warn=function(){var e;if(gu.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Iy.error=function(){var e;if(gu.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var yh=B((hme,U6)=>{"use strict";U6.exports=function(){}});var Hy=B((dme,V6)=>{"use strict";V6.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{W6.exports=PX;function PX(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var J6=B((mme,Z6)=>{Z6.exports=RX;function RX(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var K6=B((yme,$6)=>{$6.exports=zX;function zX(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Oy=B((gme,Q6)=>{Q6.exports=NX;function NX(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var e7=B((xme,j6)=>{j6.exports=FX;function FX(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var t7=B((bme,r7)=>{r7.exports=IX;function IX(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15],_=t*o-a*l,w=t*s-n*l,x=t*u-i*l,M=a*s-n*o,k=a*u-i*o,A=n*u-i*s,S=f*y-c*p,D=f*m-h*p,E=f*b-d*p,R=c*m-h*y,N=c*b-d*y,I=h*b-d*m,H=_*I-w*N+x*R+M*E-k*D+A*S;return H?(H=1/H,e[0]=(o*I-s*N+u*R)*H,e[1]=(n*N-a*I-i*R)*H,e[2]=(y*A-m*k+b*M)*H,e[3]=(h*k-c*A-d*M)*H,e[4]=(s*E-l*I-u*D)*H,e[5]=(t*I-n*E+i*D)*H,e[6]=(m*x-p*A-b*w)*H,e[7]=(f*A-h*x+d*w)*H,e[8]=(l*N-o*E+u*S)*H,e[9]=(a*E-t*N-i*S)*H,e[10]=(p*k-y*x+b*_)*H,e[11]=(c*x-f*k-d*_)*H,e[12]=(o*D-l*R-s*S)*H,e[13]=(t*R-a*D+n*S)*H,e[14]=(y*w-p*M-m*_)*H,e[15]=(f*M-c*w+h*_)*H,e):null}});var n7=B((_me,a7)=>{a7.exports=HX;function HX(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15];return e[0]=o*(h*b-d*m)-c*(s*b-u*m)+y*(s*d-u*h),e[1]=-(a*(h*b-d*m)-c*(n*b-i*m)+y*(n*d-i*h)),e[2]=a*(s*b-u*m)-o*(n*b-i*m)+y*(n*u-i*s),e[3]=-(a*(s*d-u*h)-o*(n*d-i*h)+c*(n*u-i*s)),e[4]=-(l*(h*b-d*m)-f*(s*b-u*m)+p*(s*d-u*h)),e[5]=t*(h*b-d*m)-f*(n*b-i*m)+p*(n*d-i*h),e[6]=-(t*(s*b-u*m)-l*(n*b-i*m)+p*(n*u-i*s)),e[7]=t*(s*d-u*h)-l*(n*d-i*h)+f*(n*u-i*s),e[8]=l*(c*b-d*y)-f*(o*b-u*y)+p*(o*d-u*c),e[9]=-(t*(c*b-d*y)-f*(a*b-i*y)+p*(a*d-i*c)),e[10]=t*(o*b-u*y)-l*(a*b-i*y)+p*(a*u-i*o),e[11]=-(t*(o*d-u*c)-l*(a*d-i*c)+f*(a*u-i*o)),e[12]=-(l*(c*m-h*y)-f*(o*m-s*y)+p*(o*h-s*c)),e[13]=t*(c*m-h*y)-f*(a*m-n*y)+p*(a*h-n*c),e[14]=-(t*(o*m-s*y)-l*(a*m-n*y)+p*(a*s-n*o)),e[15]=t*(o*h-s*c)-l*(a*h-n*c)+f*(a*s-n*o),e}});var l7=B((wme,i7)=>{i7.exports=OX;function OX(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],c=e[10],h=e[11],d=e[12],p=e[13],y=e[14],m=e[15],b=r*l-t*i,_=r*o-a*i,w=r*s-n*i,x=t*o-a*l,M=t*s-n*l,k=a*s-n*o,A=u*p-f*d,S=u*y-c*d,D=u*m-h*d,E=f*y-c*p,R=f*m-h*p,N=c*m-h*y;return b*N-_*R+w*E+x*D-M*S+k*A}});var s7=B((Tme,o7)=>{o7.exports=BX;function BX(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],c=r[8],h=r[9],d=r[10],p=r[11],y=r[12],m=r[13],b=r[14],_=r[15],w=t[0],x=t[1],M=t[2],k=t[3];return e[0]=w*a+x*o+M*c+k*y,e[1]=w*n+x*s+M*h+k*m,e[2]=w*i+x*u+M*d+k*b,e[3]=w*l+x*f+M*p+k*_,w=t[4],x=t[5],M=t[6],k=t[7],e[4]=w*a+x*o+M*c+k*y,e[5]=w*n+x*s+M*h+k*m,e[6]=w*i+x*u+M*d+k*b,e[7]=w*l+x*f+M*p+k*_,w=t[8],x=t[9],M=t[10],k=t[11],e[8]=w*a+x*o+M*c+k*y,e[9]=w*n+x*s+M*h+k*m,e[10]=w*i+x*u+M*d+k*b,e[11]=w*l+x*f+M*p+k*_,w=t[12],x=t[13],M=t[14],k=t[15],e[12]=w*a+x*o+M*c+k*y,e[13]=w*n+x*s+M*h+k*m,e[14]=w*i+x*u+M*d+k*b,e[15]=w*l+x*f+M*p+k*_,e}});var f7=B((Mme,u7)=>{u7.exports=YX;function YX(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,c,h,d,p,y,m,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],c=r[5],h=r[6],d=r[7],p=r[8],y=r[9],m=r[10],b=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=y,e[10]=m,e[11]=b,e[12]=l*a+f*n+p*i+r[12],e[13]=o*a+c*n+y*i+r[13],e[14]=s*a+h*n+m*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var v7=B((Ame,c7)=>{c7.exports=GX;function GX(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var d7=B((kme,h7)=>{h7.exports=UX;function UX(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,c,h,d,p,y,m,b,_,w,x,M,k,A,S,D,E,R,N,I,H,U;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],h=r[1],d=r[2],p=r[3],y=r[4],m=r[5],b=r[6],_=r[7],w=r[8],x=r[9],M=r[10],k=r[11],A=n*n*f+u,S=i*n*f+l*s,D=l*n*f-i*s,E=n*i*f-l*s,R=i*i*f+u,N=l*i*f+n*s,I=n*l*f+i*s,H=i*l*f-n*s,U=l*l*f+u,e[0]=c*A+y*S+w*D,e[1]=h*A+m*S+x*D,e[2]=d*A+b*S+M*D,e[3]=p*A+_*S+k*D,e[4]=c*E+y*R+w*N,e[5]=h*E+m*R+x*N,e[6]=d*E+b*R+M*N,e[7]=p*E+_*R+k*N,e[8]=c*I+y*H+w*U,e[9]=h*I+m*H+x*U,e[10]=d*I+b*H+M*U,e[11]=p*I+_*H+k*U,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var m7=B((qme,p7)=>{p7.exports=VX;function VX(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+c*a,e[7]=s*n+h*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=c*n-o*a,e[11]=h*n-s*a,e}});var g7=B((Cme,y7)=>{y7.exports=WX;function WX(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-c*a,e[3]=s*n-h*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+c*n,e[11]=s*a+h*n,e}});var b7=B((Sme,x7)=>{x7.exports=XX;function XX(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],c=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+c*a,e[3]=s*n+h*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=c*n-o*a,e[7]=h*n-s*a,e}});var w7=B((Lme,_7)=>{_7.exports=ZX;function ZX(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var M7=B((Dme,T7)=>{T7.exports=JX;function JX(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,c=a*s,h=a*u,d=n*s,p=n*u,y=i*u,m=l*o,b=l*s,_=l*u;return e[0]=1-(d+y),e[1]=c+_,e[2]=h-b,e[3]=0,e[4]=c-_,e[5]=1-(f+y),e[6]=p+m,e[7]=0,e[8]=h+b,e[9]=p-m,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var k7=B((Eme,A7)=>{A7.exports=$X;function $X(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var C7=B((Pme,q7)=>{q7.exports=KX;function KX(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var L7=B((Rme,S7)=>{S7.exports=QX;function QX(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var E7=B((zme,D7)=>{D7.exports=jX;function jX(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var R7=B((Nme,P7)=>{P7.exports=eZ;function eZ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var By=B((Fme,z7)=>{z7.exports=rZ;function rZ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,c=a*o,h=n*l,d=n*o,p=n*s,y=i*l,m=i*o,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=h-m,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=d+y,e[7]=0,e[8]=h+m,e[9]=d-y,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var F7=B((Ime,N7)=>{N7.exports=tZ;function tZ(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var H7=B((Hme,I7)=>{I7.exports=aZ;function aZ(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var B7=B((Ome,O7)=>{O7.exports=nZ;function nZ(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var G7=B((Bme,Y7)=>{Y7.exports=iZ;function iZ(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var V7=B((Yme,U7)=>{var lZ=Oy();U7.exports=oZ;function oZ(e,r,t,a){var n,i,l,o,s,u,f,c,h,d,p=r[0],y=r[1],m=r[2],b=a[0],_=a[1],w=a[2],x=t[0],M=t[1],k=t[2];return Math.abs(p-x)<1e-6&&Math.abs(y-M)<1e-6&&Math.abs(m-k)<1e-6?lZ(e):(f=p-x,c=y-M,h=m-k,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,n=_*h-w*c,i=w*f-b*h,l=b*c-_*f,d=Math.sqrt(n*n+i*i+l*l),d?(d=1/d,n*=d,i*=d,l*=d):(n=0,i=0,l=0),o=c*l-h*i,s=h*n-f*l,u=f*i-c*n,d=Math.sqrt(o*o+s*s+u*u),d?(d=1/d,o*=d,s*=d,u*=d):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=l,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*p+i*y+l*m),e[13]=-(o*p+s*y+u*m),e[14]=-(f*p+c*y+h*m),e[15]=1,e)}});var X7=B((Gme,W7)=>{W7.exports=sZ;function sZ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Yy=B((Ume,Z7)=>{Z7.exports={create:X6(),clone:J6(),copy:K6(),identity:Oy(),transpose:e7(),invert:t7(),adjoint:n7(),determinant:l7(),multiply:s7(),translate:f7(),scale:v7(),rotate:d7(),rotateX:m7(),rotateY:g7(),rotateZ:b7(),fromRotation:w7(),fromRotationTranslation:M7(),fromScaling:k7(),fromTranslation:C7(),fromXRotation:L7(),fromYRotation:E7(),fromZRotation:R7(),fromQuat:By(),frustum:F7(),perspective:H7(),perspectiveFromFieldOfView:B7(),ortho:G7(),lookAt:V7(),str:X7()}});var gh=B(Ot=>{"use strict";var uZ=Yy();Ot.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var fZ=kr(),J7=Go(),cZ=gh(),vZ=Yy();function hZ(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function dZ(e){var r=fZ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function $7(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function pZ(e,r){K7("global",e,r)}function K7(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):J7.warn("addStyleRule failed"):J7.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function mZ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&$7(t)}function yZ(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[l[0]]=l[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[l[0]]=l[1]:f.style[o[0]]=o[1])}),u.setAttribute(s,!0))})}function gZ(e){var r=j7(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=Q7(a);if(n){var i=cZ.convertCssMatrix(n);t=vZ.multiply(t,t,i)}}),t}function Q7(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function j7(e){for(var r=[];xZ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function xZ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function bZ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}ew.exports={getGraphDiv:hZ,isPlotDiv:dZ,removeElement:$7,addStyleRule:pZ,addRelatedStyleRule:K7,deleteRelatedStyleRule:mZ,setStyleOnHover:yZ,getFullTransformMatrix:gZ,getElementTransformMatrix:Q7,getElementAndAncestors:j7,equalDomRects:bZ}});var Ac=B((Xme,rw)=>{"use strict";rw.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var ui=B((Zme,sw)=>{"use strict";var aw=mt().extendFlat,_Z=Pl(),nw={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},iw={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},wZ=nw.flags.slice().concat(["fullReplot"]),TZ=iw.flags.slice().concat("layoutReplot");sw.exports={traces:nw,layout:iw,traceFlags:function(){return tw(wZ)},layoutFlags:function(){return tw(TZ)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";Gy.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Gy.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Uy=B(($me,uw)=>{"use strict";uw.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var ha=B(kc=>{"use strict";var fw=Uy(),MZ=fw.FORMAT_LINK,AZ=fw.DATE_FORMAT_LINK;function kZ(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,MZ,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,AZ,"for details on the date formatting syntax."].join(" ")}kc.templateFormatStringDescription=kZ;function Vy(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n{"use strict";function Nl(e,r){return r?r.d2l(e):e}function cw(e,r){return r?r.l2d(e):e}function qZ(e){return e.x0}function CZ(e){return e.x1}function SZ(e){return e.y0}function LZ(e){return e.y1}function vw(e){return e.x0shift||0}function hw(e){return e.x1shift||0}function dw(e){return e.y0shift||0}function pw(e){return e.y1shift||0}function xh(e,r){return Nl(e.x1,r)+hw(e)-Nl(e.x0,r)-vw(e)}function bh(e,r,t){return Nl(e.y1,t)+pw(e)-Nl(e.y0,t)-dw(e)}function DZ(e,r){return Math.abs(xh(e,r))}function EZ(e,r,t){return Math.abs(bh(e,r,t))}function PZ(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(xh(e,r),2)+Math.pow(bh(e,r,t),2))}function RZ(e,r){return cw((Nl(e.x1,r)+hw(e)+Nl(e.x0,r)+vw(e))/2,r)}function zZ(e,r,t){return cw((Nl(e.y1,t)+pw(e)+Nl(e.y0,t)+dw(e))/2,t)}function NZ(e,r,t){return e.type!=="line"?void 0:bh(e,r,t)/xh(e,r)}mw.exports={x0:qZ,x1:CZ,y0:SZ,y1:LZ,slope:NZ,dx:xh,dy:bh,width:DZ,height:EZ,length:PZ,xcenter:RZ,ycenter:zZ}});var xw=B((jme,gw)=>{"use strict";var FZ=ui().overrideAll,Uo=tn(),yw=aa(),IZ=fi().dash,Fl=mt().extendFlat,HZ=ha().shapeTexttemplateAttrs,OZ=_h();gw.exports=FZ({newshape:{visible:Fl({},Uo.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Fl({},Uo.legend,{}),legendgroup:Fl({},Uo.legendgroup,{}),legendgrouptitle:{text:Fl({},Uo.legendgrouptitle.text,{}),font:yw({})},legendrank:Fl({},Uo.legendrank,{}),legendwidth:Fl({},Uo.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Fl({},IZ,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Fl({},Uo.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:HZ({newshape:!0},{keys:Object.keys(OZ)}),font:yw({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var _w=B((eye,bw)=>{"use strict";var BZ=fi().dash,YZ=mt().extendFlat;bw.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:YZ({},BZ,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var wh=B((rye,ww)=>{"use strict";ww.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var xu=B((tye,kw)=>{"use strict";var Wy=aa(),GZ=Ac(),Th=Nn(),Tw=xw(),Mw=_w(),UZ=wh(),Aw=mt().extendFlat,Mh=Wy({editType:"calc"});Mh.family.dflt='"Open Sans", verdana, arial, sans-serif';Mh.size.dflt=12;Mh.color.dflt=Th.defaultLine;kw.exports={font:Mh,title:{text:{valType:"string",editType:"layoutstyle"},font:Wy({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Wy({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:Aw(UZ({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Th.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Th.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Th.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:Tw.newshape,activeshape:Tw.activeshape,newselection:Mw.newselection,activeselection:Mw.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Aw({},GZ.transition,{editType:"none"})}});var qw=B(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var yr=B(Fr=>{"use strict";var bu=Go(),Cw=yh(),Sw=Hy(),VZ=Pl(),WZ=Mc().addStyleRule,Lw=mt(),XZ=tn(),ZZ=xu(),JZ=Lw.extendFlat,Xy=Lw.extendDeepAll;Fr.modules={};Fr.allCategories={};Fr.allTypes=[];Fr.subplotsRegistry={};Fr.componentsRegistry={};Fr.layoutArrayContainers=[];Fr.layoutArrayRegexes=[];Fr.traceLayoutAttributes={};Fr.localeRegistry={};Fr.apiMethodRegistry={};Fr.collectableSubplotTypes=null;Fr.register=function(r){if(Fr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var rJ=cu().timeFormat,Bw=zr(),Zy=Go(),Hl=hu().mod,Tu=Mt(),Fn=Tu.BADNUM,ln=Tu.ONEDAY,qc=Tu.ONEHOUR,Il=Tu.ONEMIN,wu=Tu.ONESEC,Cc=Tu.EPOCHJD,il=yr(),zw=cu().utcFormat,tJ=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,aJ=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Nw=new Date().getFullYear()-70;function ll(e){return e&&il.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Bt.dateTick0=function(e,r){var t=nJ(e,!!r);if(r<2)return t;var a=Bt.dateTime2ms(t,e);return a+=ln*(r-1),Bt.ms2DateTime(a,0,e)};function nJ(e,r){return ll(e)?r?il.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:il.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Bt.dfltRange=function(e){return ll(e)?il.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Bt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var kh,qh;Bt.dateTime2ms=function(e,r){if(Bt.isJSDate(e)){var t=e.getTimezoneOffset()*Il,a=(e.getUTCMinutes()-e.getMinutes())*Il+(e.getUTCSeconds()-e.getSeconds())*wu+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Il;t=t-n/2+Hl(a-t+n/2,n)}return e=Number(e)-t,e>=kh&&e<=qh?e:Fn}if(typeof e!="string"&&typeof e!="number")return Fn;e=String(e);var i=ll(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.substr(1),r="");var o=i&&r.substr(0,7)==="chinese",s=e.match(o?aJ:tJ);if(!s)return Fn;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return Fn;u=Number(u);var y;try{var m=il.getComponentMethod("calendars","getCal")(r);if(o){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=m.newDate(u,m.toMonthIndex(u,f,b),c)}else y=m.newDate(u,Number(f),c)}catch(w){return Fn}return y?(y.toJD()-Cc)*ln+h*qc+d*Il+p*wu:Fn}u.length===2?u=(Number(u)+2e3-Nw)%100+Nw:u=Number(u),f-=1;var _=new Date(Date.UTC(2e3,f,c,h,d));return _.setUTCFullYear(u),_.getUTCMonth()!==f||_.getUTCDate()!==c?Fn:_.getTime()+p*wu};kh=Bt.MIN_MS=Bt.dateTime2ms("-9999");qh=Bt.MAX_MS=Bt.dateTime2ms("9999-12-31 23:59:59.9999");Bt.isDateTime=function(e,r){return Bt.dateTime2ms(e,r)!==Fn};function _u(e,r){return String(e+Math.pow(10,r)).substr(1)}var Ah=90*ln,Fw=3*qc,Iw=5*Il;Bt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=kh&&e<=qh))return Fn;r||(r=0);var a=Math.floor(Hl(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(ll(t)){var c=Math.floor(n/ln)+Cc,h=Math.floor(Hl(e,ln));try{i=il.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=zw("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;l=r=kh+ln&&e<=qh-ln))return Fn;var r=Math.floor(Hl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=rJ("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return Yw(a,n,i,l,o)};function Yw(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+_u(r,2)+":"+_u(t,2),(a||n)&&(e+=":"+_u(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+_u(n,i)}return e}Bt.cleanDate=function(e,r,t){if(e===Fn)return r;if(Bt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(ll(t))return Zy.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Bt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Bt.isDateTime(e,t))return Zy.error("unrecognized date",e),r;return e};var iJ=/%\d?f/g,lJ=/%h/g,oJ={1:"1",2:"1",3:"2",4:"2"};function Hw(e,r,t,a){e=e.replace(iJ,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).substr(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(lJ,function(){return oJ[t("%q")(n)]}),ll(a))try{e=il.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var sJ=[59,59.9,59.99,59.999,59.9999];function uJ(e,r){var t=Hl(e+.05,ln),a=_u(Math.floor(t/qc),2)+":"+_u(Hl(Math.floor(t/Il),60),2);if(r!=="M"){Bw(r)||(r=0);var n=Math.min(Hl(e/wu,60),sJ[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Bt.formatDate=function(e,r,t,a,n,i){if(n=ll(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return uJ(e,t)+` -`+Hw(i.dayMonthYear,e,a,n);return Hw(r,e,a,n)};var Ow=3*ln;Bt.incrementMonth=function(e,r,t){t=ll(t)&&t;var a=Hl(e,ln);if(e=Math.round(e-a),t)try{var n=Math.round(e/ln)+Cc,i=il.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-Cc)*ln+a}catch(s){Zy.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+Ow);return o.setUTCMonth(o.getUTCMonth()+r)+a-Ow};Bt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=ll(r)&&il.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";Uw.exports=function(r){return r}});var Ky=B(ol=>{"use strict";var fJ=zr(),cJ=Go(),vJ=Jy(),hJ=Mt().BADNUM,$y=1e-9;ol.findBin=function(e,r,t){if(fJ(r.start))return t?Math.ceil((e-r.start)/r.size-$y)-1:Math.floor((e-r.start)/r.size+$y);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?dJ:pJ:s=t?yJ:mJ,e+=l*$y*(t?-1:1)*(l>=0?1:-1);a90&&cJ.log("Long binary search..."),a-1};function dJ(e,r){return er}function yJ(e,r){return e>=r}ol.sorterAsc=function(e,r){return e-r};ol.sorterDes=function(e,r){return r-e};ol.distinctVals=function(e){var r=e.slice();r.sort(ol.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===hJ;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};ol.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};ol.findIndexOfMin=function(e,r){r=r||vJ;for(var t=1/0,a,n=0;n{"use strict";Vw.exports=function(r){return Object.keys(r).sort()}});var Ww=B(Yt=>{"use strict";var Sc=zr(),gJ=gn().isArrayOrTypedArray;Yt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Sc(r)||(r=!1),gJ(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var Kw=B((cye,$w)=>{"use strict";var Xw=hu(),jy=Xw.mod,xJ=Xw.modHalf,Lc=Math.PI,Ol=2*Lc;function bJ(e){return e/180*Lc}function _J(e){return e/Lc*180}function eg(e){return Math.abs(e[1]-e[0])>Ol-1e-14}function Zw(e,r){return xJ(r-e,Ol)}function wJ(e,r){return Math.abs(Zw(e,r))}function Jw(e,r){if(eg(r))return!0;var t,a;r[0]a&&(a+=Ol);var n=jy(e,Ol),i=n+Ol;return n>=t&&n<=a||i>=t&&i<=a}function TJ(e,r,t,a){if(!Jw(r,a))return!1;var n,i;return t[0]=n&&e<=i}function rg(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=eg([t,a]),s,u,f,c,h;o?(s=0,u=Lc,f=Ol):t{"use strict";Vo.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Vo.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Vo.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Vo.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Vo.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Vo.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var r8=B(Wo=>{"use strict";var tg=hu().mod;Wo.segmentsIntersect=e8;function e8(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,c=a-r,h=i-r,d=o-i,p=s*d-f*c;if(p===0)return null;var y=(u*d-f*h)/p,m=(u*c-s*h)/p;return m<0||m>1||y<0||y>1?null:{x:e+s*y,y:r+c*y}}Wo.segmentDistance=function(r,t,a,n,i,l,o,s){if(e8(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,c=o-i,h=s-l,d=u*u+f*f,p=c*c+h*h,y=Math.min(Ch(u,f,d,i-r,l-t),Ch(u,f,d,o-r,s-t),Ch(c,h,p,r-i,t-l),Ch(c,h,p,a-i,n-l));return Math.sqrt(y)};function Ch(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var Sh,ag,jw;Wo.getTextLocation=function(r,t,a,n){if((r!==ag||n!==jw)&&(Sh={},ag=r,jw=n),Sh[a])return Sh[a];var i=r.getPointAtLength(tg(a-n/2,t)),l=r.getPointAtLength(tg(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(tg(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,c={x:u,y:f,theta:o};return Sh[a]=c,c};Wo.clearLocationCache=function(){ag=null};Wo.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,c,h;function d(y){var m=r.getPointAtLength(y);y===0?c=m:y===u&&(h=m);var b=m.xi?m.x-i:0,_=m.yo?m.y-o:0;return Math.sqrt(b*b+_*_)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};Wo.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,h,d,p;u0?c=h:f=h,u++}return d}});var Lh=B(Dc=>{"use strict";var sl={};Dc.throttle=function(r,t,a){var n=sl[r],i=Date.now();if(!n){for(var l in sl)sl[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};Dc.done=function(e){var r=sl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Dc.clear=function(e){if(e)t8(sl[e]),delete sl[e];else for(var r in sl)Dc.clear(r)};function t8(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var n8=B((pye,a8)=>{"use strict";a8.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var i8=B((mye,Dh)=>{"use strict";Dh.exports=ng;Dh.exports.isMobile=ng;Dh.exports.default=ng;var qJ=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,CJ=/CrOS/,SJ=/android|ipad|playbook|silk/i;function ng(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=qJ.test(r)&&!CJ.test(r)||!!e.tablet&&SJ.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var o8=B((yye,l8)=>{"use strict";var LJ=zr(),DJ=i8();l8.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=EJ(),typeof t!="string")return!0;var a=DJ({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;o--){var s=n[o];if(s.substr(0,8)==="Version/"){var u=s.substr(8).split(".")[0];if(LJ(u)&&(u=+u),u>=13)return!0}}}return a};function EJ(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var u8=B((gye,s8)=>{"use strict";var PJ=kr();s8.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=PJ.select(this)}),n}});var c8=B((xye,f8)=>{"use strict";var RJ=yr();f8.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=RJ.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var h8=B((bye,v8)=>{"use strict";v8.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";d8.exports=function(r){for(var t=FJ(r)?NJ:zJ,a=[],n=0;n{"use strict";m8.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var x8=B((Tye,g8)=>{"use strict";var IJ=zr(),HJ=Mt().BADNUM,OJ=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;g8.exports=function(r){return typeof r=="string"&&(r=r.replace(OJ,"")),IJ(r)?Number(r):HJ}});var Pe=B((Mye,E8)=>{"use strict";var Ec=kr(),BJ=cu().utcFormat,YJ=Ay().format,A8=zr(),k8=Mt(),q8=k8.FP_SAFE,GJ=-q8,b8=k8.BADNUM,pe=E8.exports={};pe.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var _8={};pe.warnBadFormat=function(e){var r=String(e);_8[r]||(_8[r]=1,pe.warn('encountered bad format: "'+r+'"'))};pe.noFormat=function(e){return String(e)};pe.numberFormat=function(e){var r;try{r=YJ(pe.adjustFormat(e))}catch(t){return pe.warnBadFormat(e),pe.noFormat}return r};pe.nestedProperty=fh();pe.keyedContainer=v6();pe.relativeAttr=d6();pe.isPlainObject=Pl();pe.toLogRange=vh();pe.relinkPrivateKeys=g6();var Bl=gn();pe.isArrayBuffer=Bl.isArrayBuffer;pe.isTypedArray=Bl.isTypedArray;pe.isArrayOrTypedArray=Bl.isArrayOrTypedArray;pe.isArray1D=Bl.isArray1D;pe.ensureArray=Bl.ensureArray;pe.concat=Bl.concat;pe.maxRowLength=Bl.maxRowLength;pe.minRowLength=Bl.minRowLength;var C8=hu();pe.mod=C8.mod;pe.modHalf=C8.modHalf;var Yl=F6();pe.valObjectMeta=Yl.valObjectMeta;pe.coerce=Yl.coerce;pe.coerce2=Yl.coerce2;pe.coerceFont=Yl.coerceFont;pe.coercePattern=Yl.coercePattern;pe.coerceHoverinfo=Yl.coerceHoverinfo;pe.coerceSelectionMarkerOpacity=Yl.coerceSelectionMarkerOpacity;pe.validate=Yl.validate;var xn=Gw();pe.dateTime2ms=xn.dateTime2ms;pe.isDateTime=xn.isDateTime;pe.ms2DateTime=xn.ms2DateTime;pe.ms2DateTimeLocal=xn.ms2DateTimeLocal;pe.cleanDate=xn.cleanDate;pe.isJSDate=xn.isJSDate;pe.formatDate=xn.formatDate;pe.incrementMonth=xn.incrementMonth;pe.dateTick0=xn.dateTick0;pe.dfltRange=xn.dfltRange;pe.findExactDates=xn.findExactDates;pe.MIN_MS=xn.MIN_MS;pe.MAX_MS=xn.MAX_MS;var Xo=Ky();pe.findBin=Xo.findBin;pe.sorterAsc=Xo.sorterAsc;pe.sorterDes=Xo.sorterDes;pe.distinctVals=Xo.distinctVals;pe.roundUp=Xo.roundUp;pe.sort=Xo.sort;pe.findIndexOfMin=Xo.findIndexOfMin;pe.sortObjectKeys=Qy();var ul=Ww();pe.aggNums=ul.aggNums;pe.len=ul.len;pe.mean=ul.mean;pe.geometricMean=ul.geometricMean;pe.median=ul.median;pe.midRange=ul.midRange;pe.variance=ul.variance;pe.stdev=ul.stdev;pe.interp=ul.interp;var ci=gh();pe.init2dArray=ci.init2dArray;pe.transposeRagged=ci.transposeRagged;pe.dot=ci.dot;pe.translationMatrix=ci.translationMatrix;pe.rotationMatrix=ci.rotationMatrix;pe.rotationXYMatrix=ci.rotationXYMatrix;pe.apply3DTransform=ci.apply3DTransform;pe.apply2DTransform=ci.apply2DTransform;pe.apply2DTransform2=ci.apply2DTransform2;pe.convertCssMatrix=ci.convertCssMatrix;pe.inverseTransformMatrix=ci.inverseTransformMatrix;var Fi=Kw();pe.deg2rad=Fi.deg2rad;pe.rad2deg=Fi.rad2deg;pe.angleDelta=Fi.angleDelta;pe.angleDist=Fi.angleDist;pe.isFullCircle=Fi.isFullCircle;pe.isAngleInsideSector=Fi.isAngleInsideSector;pe.isPtInsideSector=Fi.isPtInsideSector;pe.pathArc=Fi.pathArc;pe.pathSector=Fi.pathSector;pe.pathAnnulus=Fi.pathAnnulus;var Au=Qw();pe.isLeftAnchor=Au.isLeftAnchor;pe.isCenterAnchor=Au.isCenterAnchor;pe.isRightAnchor=Au.isRightAnchor;pe.isTopAnchor=Au.isTopAnchor;pe.isMiddleAnchor=Au.isMiddleAnchor;pe.isBottomAnchor=Au.isBottomAnchor;var ku=r8();pe.segmentsIntersect=ku.segmentsIntersect;pe.segmentDistance=ku.segmentDistance;pe.getTextLocation=ku.getTextLocation;pe.clearLocationCache=ku.clearLocationCache;pe.getVisibleSegment=ku.getVisibleSegment;pe.findPointOnPath=ku.findPointOnPath;var Rh=mt();pe.extendFlat=Rh.extendFlat;pe.extendDeep=Rh.extendDeep;pe.extendDeepAll=Rh.extendDeepAll;pe.extendDeepNoArrays=Rh.extendDeepNoArrays;var ig=Go();pe.log=ig.log;pe.warn=ig.warn;pe.error=ig.error;var UJ=mu();pe.counterRegex=UJ.counter;var lg=Lh();pe.throttle=lg.throttle;pe.throttleDone=lg.done;pe.clearThrottle=lg.clear;var vi=Mc();pe.getGraphDiv=vi.getGraphDiv;pe.isPlotDiv=vi.isPlotDiv;pe.removeElement=vi.removeElement;pe.addStyleRule=vi.addStyleRule;pe.addRelatedStyleRule=vi.addRelatedStyleRule;pe.deleteRelatedStyleRule=vi.deleteRelatedStyleRule;pe.setStyleOnHover=vi.setStyleOnHover;pe.getFullTransformMatrix=vi.getFullTransformMatrix;pe.getElementTransformMatrix=vi.getElementTransformMatrix;pe.getElementAndAncestors=vi.getElementAndAncestors;pe.equalDomRects=vi.equalDomRects;pe.clearResponsive=n8();pe.preserveDrawingBuffer=o8();pe.makeTraceGroups=u8();pe._=c8();pe.notifier=Ny();pe.filterUnique=h8();pe.filterVisible=p8();pe.pushUnique=Hy();pe.increment=y8();pe.cleanNumber=x8();pe.ensureNumber=function(r){return A8(r)?(r=Number(r),r>q8||r=r?!1:A8(e)&&e>=0&&e%1===0};pe.noop=yh();pe.identity=Jy();pe.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};pe.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};pe.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o=Math.pow(2,t)?n>10?(pe.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};pe.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};pe.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),l=new Array(t),o,s,u,f;for(o=0;o=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];l[o]=f}return l};pe.syncOrAsync=function(e,r,t){var a,n;function i(){return pe.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};pe.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};pe.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};pe.fillArray=function(e,r,t,a){if(a=a||pe.identity,pe.isArrayOrTypedArray(e))for(var n=0;nXJ.test(window.navigator.userAgent);var ZJ=/Firefox\/(\d+)\.\d+/;pe.getFirefoxVersion=function(){var e=ZJ.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};pe.isD3Selection=function(e){return e instanceof Ec.selection};pe.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};pe.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};pe.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};pe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var D8=/^\w*$/;pe.templateString=function(e,r){var t={};return e.replace(pe.TEMPLATE_STRING_REGEX,function(a,n){var i;return D8.test(n)?i=r[n]:(t[n]=t[n]||pe.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var KJ={max:10,count:0,name:"hovertemplate"};pe.hovertemplateString=function(){return og.apply(KJ,arguments)};var QJ={max:10,count:0,name:"texttemplate"};pe.texttemplateString=function(){return og.apply(QJ,arguments)};var jJ=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function e$(e){var r=e.match(jJ);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var r$={max:10,count:0,name:"texttemplate",parseMultDiv:!0};pe.texttemplateStringForShapes=function(){return og.apply(r$,arguments)};var w8=/^[:|\|]/;function og(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(pe.TEMPLATE_STRING_REGEX,function(i,l,o){var s=l==="xother"||l==="yother",u=l==="_xother"||l==="_yother",f=l==="_xother_"||l==="_yother_",c=l==="xother_"||l==="yother_",h=s||u||c||f,d=l;(u||f)&&(d=d.substring(1)),(c||f)&&(d=d.substring(0,d.length-1));var p=null,y=null;if(a.parseMultDiv){var m=e$(d);d=m.key,p=m.op,y=m.number}var b;if(h){if(b=r[d],b===void 0)return""}else{var _,w;for(w=3;w=Ph&&l<=T8,u=o>=Ph&&o<=T8;if(s&&(a=10*a+l-Ph),u&&(n=10*n+o-Ph),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var Mu=2e9;pe.seedPseudoRandom=function(){Mu=2e9};pe.pseudoRandom=function(){var e=Mu;return Mu=(69069*Mu+1)%4294967296,Math.abs(Mu-e)<429496729?pe.pseudoRandom():Mu/4294967296};pe.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=pe.extractOption(e,r,"htx","hovertext");if(pe.isValidTextValue(n))return a(n);var i=pe.extractOption(e,r,"tx","text");if(pe.isValidTextValue(i))return a(i)};pe.isValidTextValue=function(e){return e||e===0};pe.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,pe.strTranslate(n-u*(t+l),i-u*(a+o))+pe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};pe.setTransormAndDisplay=function(e,r){e.attr("transform",pe.getTextTransform(r)),e.style("display",r.scale?null:"none")};pe.ensureUniformFontSize=function(e,r){var t=pe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};pe.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};pe.bigFont=function(e){return Math.round(1.2*e)};var M8=pe.getFirefoxVersion(),t$=M8!==null&&M8<86;pe.getPositionFromD3Event=function(){return t$?[Ec.event.layerX,Ec.event.layerY]:[Ec.event.offsetX,Ec.event.offsetY]}});var z8=B(()=>{"use strict";var a$=Pe(),P8={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(sg in P8)R8=sg.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),a$.addStyleRule(R8,P8[sg]);var R8,sg});var ug=B((qye,N8)=>{N8.exports=!0});var cg=B((Cye,F8)=>{"use strict";var n$=ug(),fg;typeof window.matchMedia=="function"?fg=!window.matchMedia("(hover: none)").matches:fg=n$;F8.exports=fg});var Fh=B((Sye,vg)=>{"use strict";var qu=typeof Reflect=="object"?Reflect:null,I8=qu&&typeof qu.apply=="function"?qu.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},zh;qu&&typeof qu.ownKeys=="function"?zh=qu.ownKeys:Object.getOwnPropertySymbols?zh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:zh=function(r){return Object.getOwnPropertyNames(r)};function i$(e){console&&console.warn&&console.warn(e)}var O8=Number.isNaN||function(r){return r!==r};function yt(){yt.init.call(this)}vg.exports=yt;vg.exports.once=u$;yt.EventEmitter=yt;yt.prototype._events=void 0;yt.prototype._eventsCount=0;yt.prototype._maxListeners=void 0;var H8=10;function Nh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(yt,"defaultMaxListeners",{enumerable:!0,get:function(){return H8},set:function(e){if(typeof e!="number"||e<0||O8(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");H8=e}});yt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};yt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||O8(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function B8(e){return e._maxListeners===void 0?yt.defaultMaxListeners:e._maxListeners}yt.prototype.getMaxListeners=function(){return B8(this)};yt.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")I8(s,this,t);else for(var u=s.length,f=W8(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,i$(o)}return e}yt.prototype.addListener=function(r,t){return Y8(this,r,t,!1)};yt.prototype.on=yt.prototype.addListener;yt.prototype.prependListener=function(r,t){return Y8(this,r,t,!0)};function l$(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function G8(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=l$.bind(a);return n.listener=t,a.wrapFn=n,n}yt.prototype.once=function(r,t){return Nh(t),this.on(r,G8(this,r,t)),this};yt.prototype.prependOnceListener=function(r,t){return Nh(t),this.prependListener(r,G8(this,r,t)),this};yt.prototype.removeListener=function(r,t){var a,n,i,l,o;if(Nh(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():o$(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};yt.prototype.off=yt.prototype.removeListener;yt.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function U8(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?s$(n):W8(n,n.length)}yt.prototype.listeners=function(r){return U8(this,r,!0)};yt.prototype.rawListeners=function(r){return U8(this,r,!1)};yt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):V8.call(e,r)};yt.prototype.listenerCount=V8;function V8(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}yt.prototype.eventNames=function(){return this._eventsCount>0?zh(this._events):[]};function W8(e,r){for(var t=new Array(r),a=0;a{"use strict";var hg=Fh().EventEmitter,c$={init:function(e){if(e._ev instanceof hg)return e;var r=new hg,t=new hg;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function l(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var o;for(o=0;o{"use strict";var J8=Pe(),v$=Yo().dfltConfig;function h$(e,r){for(var t=[],a,n=0;nv$.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};fl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};fl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};fl.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";Q8.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Lu=B(Qt=>{"use strict";var In=yr(),Rc=Pe(),Hh=tn(),pg=xu(),d$=dg(),p$=Ac(),m$=Yo().configAttributes,j8=ui(),hi=Rc.extendDeepAll,Cu=Rc.isPlainObject,y$=Rc.isArrayOrTypedArray,Oh=Rc.nestedProperty,g$=Rc.valObjectMeta,mg="_isSubplotObj",Bh="_isLinkedToArray",x$="_arrayAttrRegexps",r9="_deprecated",yg=[mg,Bh,x$,r9];Qt.IS_SUBPLOT_OBJ=mg;Qt.IS_LINKED_TO_ARRAY=Bh;Qt.DEPRECATED=r9;Qt.UNDERSCORE_ATTRS=yg;Qt.get=function(){var e={};return In.allTypes.forEach(function(r){e[r]=_$(r)}),{defs:{valObjects:g$,metaKeys:yg.concat(["description","role","editType","impliedEdits"]),editType:{traces:j8.traces,layout:j8.layout},impliedEdits:{}},traces:e,layout:w$(),frames:T$(),animation:Su(p$),config:Su(m$)}};Qt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(yg.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!Qt.isValObject(l)&&Cu(l)&&i!=="impliedEdits"&&Qt.crawl(l,r,n+1,o)}})};Qt.isValObject=function(e){return e&&e.valType!==void 0};Qt.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&o(n,0,"")}function o(s,u,f){var c=s[t[u]],h=f+t[u];if(u===t.length-1)y$(c)&&r.push(i+h);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!Ih(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function Ih(e){return e===Math.round(e)&&e>=0}function _$(e){var r,t;r=In.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=hi({},Hh),i=hi({},r.attributes);Qt.crawl(i,function(s,u,f,c,h){Oh(n,h).set(void 0),s===void 0&&Oh(i,h).set(void 0)}),hi(a,n),In.traceIs(e,"noOpacity")&&delete a.opacity,In.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),In.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,hi(a,i),t.attributes&&hi(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Su(a)};if(r.layoutAttributes){var o={};hi(o,r.layoutAttributes),l.layoutAttributes=Su(o)}return r.animatable||Qt.crawl(l,function(s){Qt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function w$(){var e={},r,t;hi(e,pg);for(r in In.subplotsRegistry)if(t=In.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Du=Pe(),C$=tn(),Gl="templateitemname",gg={name:{valType:"string",editType:"none"}};gg[Gl]={valType:"string",editType:"calc"};Zo.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=gg.name,r[Gl]=gg[Gl],r};Zo.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Du.coerce(i,{},C$,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};Zo.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Du.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Zo.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[n9(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},c=f[Gl]=u[Gl];if(!a9(c))return f._template=n,f;for(var h=0;h=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][Gl]=i)}s();function u(d,p){o[d]=p}function f(d,p){i?Du.nestedProperty(o[l],d).set(p):o[l+"."+d]=p}function c(){var d=o;return s(),d}function h(d,p){d&&f(d,p);var y=c();for(var m in y)Du.nestedProperty(e,m).set(y[m])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var Aa=B((zye,i9)=>{"use strict";var zc=mu().counter;i9.exports={idRegex:{x:zc("x","( domain)?"),y:zc("y","( domain)?")},attrRegex:zc("[xy]axis"),xAxisMatch:zc("xaxis"),yAxisMatch:zc("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Ut=B(on=>{"use strict";var S$=yr(),xg=Aa();on.id2name=function(r){if(!(typeof r!="string"||!r.match(xg.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};on.name2id=function(r){if(r.match(xg.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};on.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(xg.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};on.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=on.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};on.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function l9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function L$(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function D$(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}o9.exports={clearOutlineControllers:L$,clearOutline:D$}});var Yh=B((Iye,s9)=>{"use strict";s9.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var bg=B(Uh=>{"use strict";var Gh=yr(),Hye=Aa().SUBPLOT_PATTERN;Uh.getSubplotCalcData=function(e,r,t){var a=Gh.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var E$=yr(),Eu=Pe();Jo.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=Jo.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){u9(e,l,n.cache),n.check=function(){if(i){var f=u9(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Eu.isPlainObject(i)?_g(i,r,l,a+1):r(l,n,i)}})}});var Pt=B((Yye,k9)=>{"use strict";var x9=kr(),R$=cu().timeFormatLocale,z$=Ay().formatLocale,Nc=zr(),N$=ky(),Zr=yr(),b9=Lu(),F$=ot(),ur=Pe(),_9=xr(),h9=Mt().BADNUM,sn=Ut(),I$=Ul().clearOutline,H$=Yh(),wg=Ac(),O$=dg(),B$=bg().getModuleCalcData,d9=ur.relinkPrivateKeys,$o=ur._,Qe=k9.exports={};ur.extendFlat(Qe,Zr);Qe.attributes=tn();Qe.attributes.type.values=Qe.allTypes;Qe.fontAttrs=aa();Qe.layoutAttributes=xu();var Wh=v9();Qe.executeAPICommand=Wh.executeAPICommand;Qe.computeAPICommandBindings=Wh.computeAPICommandBindings;Qe.manageCommandObserver=Wh.manageCommandObserver;Qe.hasSimpleAPICommandBindings=Wh.hasSimpleAPICommandBindings;Qe.redrawText=function(e){return e=ur.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Zr.getComponentMethod("annotations","draw")(e),Zr.getComponentMethod("legend","draw")(e),Zr.getComponentMethod("colorbar","draw")(e),r(Qe.previousPromises(e)))},300)})};Qe.resize=function(e){e=ur.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||ur.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ur.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Zr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Qe.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Qe.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=ur.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:_9.defaultLine,"pointer-events":"all"}).each(function(){var u=x9.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),l=t.select(".js-link-spacer"),o=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Y$(e,i),l.text(i.text()&&o.text()?" - ":"")}};function Y$(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){Qe.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}Qe.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=x9.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=Qe.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var G$=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],U$=["year","month","dayMonth","dayMonthYear"];Qe.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Qe.createTransitionData(e),n._dfltTitle={plot:$o(e,"Click to enter Plot title"),subtitle:$o(e,"Click to enter Plot subtitle"),x:$o(e,"Click to enter X axis title"),y:$o(e,"Click to enter Y axis title"),colorbar:$o(e,"Click to enter Colorscale title"),annotation:$o(e,"new text")},n._traceWord=$o(e,"trace");var h=p9(e,G$);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;Qe.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=p),Qe.sanitizeMargins(n)}else{Qe.supplyLayoutGlobalDefaults(i,n,h);var y=!i.width||!i.height,m=n.autosize,b=f.autosizable,_=y&&(m||b);_?Qe.plotAutoSize(e,i,n):y&&Qe.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=X$(h,n.separators),n._extraFormat=p9(e,U$),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=W$(),x=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=V$(l,s),Qe.supplyDataDefaults(s,o,i,n);var k=Object.keys(x.x),A=Object.keys(x.y);if(k.length>1&&A.length>1){for(Zr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&A.length>15&&n.shapes.length===0&&n.images.length===0,Qe.linkSubplots(o,n,l,a),Qe.cleanPlot(o,n,l,a);var N=!!(a._has&&a._has("cartesian")),I=!!(n._has&&n._has("cartesian")),H=N,U=I;H&&!U?a._bgLayer.remove():U&&!H&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&I$({_fullLayout:a}),Z$(o,n),d9(n,a),Zr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var W=n._tracePreGUI,Y={},O;for(O in W)Y[O]="old";for(c=0;c0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var c=Qe.layoutAttributes.width.min,h=Qe.layoutAttributes.height.min;l1,p=!t.height&&Math.abs(a.height-o)>1;(p||d)&&(d&&(a.width=l),p&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),Qe.sanitizeMargins(a)};Qe.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Zr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Zr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Zr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(ur.subplotSort);for(o=0;o1&&(t.l/=m,t.r/=m)}if(h){var b=(t.t+t.b)/h;b>1&&(t.t/=b,t.b/=b)}var _=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:_,size:t.l+y},r:{val:w,size:t.r+y},b:{val:M,size:t.b+y},t:{val:x,size:t.t+y}},p[r]=1}if(!a._replotting)return Qe.doAutoMargin(e)}};function $$(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=sn.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Qe.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),w9(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=ur.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,h=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var m in h)d[m]||delete h[m];var b=e._fullLayout._reservedMargin;for(var _ in b)for(var w in b[_]){var x=b[_][w];l[w]=Math.max(l[w],x)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var M in l){var k=0;for(var A in h)A!=="base"&&Nc(h[A][M].size)&&(k=h[A][M].size>k?h[A][M].size:k);var S=Math.max(0,i[M]-k);l[M]=Math.max(0,l[M]-S)}for(var D in h){var E=h[D].l||{},R=h[D].b||{},N=E.val,I=E.size,H=R.val,U=R.size,W=t-l.r-l.l,Y=a-l.t-l.b;for(var O in h){if(Nc(I)&&h[O].r){var G=h[O].r.val,Z=h[O].r.size;if(G>N){var $=(I*G+(Z-W)*N)/(G-N),te=(Z*(1-N)+(I-W)*(1-G))/(G-N);$+te>s+u&&(s=$,u=te)}}if(Nc(U)&&h[O].t){var le=h[O].t.val,fe=h[O].t.size;if(le>H){var he=(U*le+(fe-Y)*H)/(le-H),Q=(fe*(1-H)+(U-Y)*(1-le))/(le-H);he+Q>c+f&&(c=he,f=Q)}}}}}var qe=ur.constrain(t-i.l-i.r,T9,p),ve=ur.constrain(a-i.t-i.b,M9,y),Ae=Math.max(0,t-qe),se=Math.max(0,a-ve);if(Ae){var be=(s+u)/Ae;be>1&&(s/=be,u/=be)}if(se){var V=(c+f)/se;V>1&&(c/=V,f/=V)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(c)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Qe.didMarginChange(o,n)||$$(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var j=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Qe.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&Qe.supplyDefaults(e);var l=n?e._fullData:e.data,o=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(ur.isPlainObject(h)){var p={},y;return Object.keys(h).sort().forEach(function(w){if(["_","["].indexOf(w.charAt(0))===-1){if(typeof h[w]=="function"){d&&(p[w]="_function");return}if(t==="keepdata"){if(w.substr(w.length-3)==="src")return}else if(t==="keepstream"){if(y=h[w+"src"],typeof y=="string"&&y.indexOf(":")>0&&!ur.isPlainObject(h.stream))return}else if(t!=="keepall"&&(y=h[w+"src"],typeof y=="string"&&y.indexOf(":")>0))return;p[w]=u(h[w],d)}}),p}var m=Array.isArray(h),b=ur.isTypedArray(h);if((m||b)&&h.dtype&&h.shape){var _=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:ur.isArrayBuffer(_)?N$.encode(_):_},d)}return m?h.map(function(w){return u(w,d)}):b?ur.simpleMap(h,ur.identity):ur.isJSDate(h)?ur.ms2DateTimeLocal(+h):h}var f={data:(l||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(o),n)){var c=o._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};Qe.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Zr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function p(){return h++,function(){d++,!a&&d===h&&o(c)}}t.runFn(p),setTimeout(p())})}function o(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Zr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Qe.previousPromises,s,t.prepareFn,Qe.rehover,Qe.reselect,l],f=ur.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Qe.doCalcdata=function(e,r){var t=sn.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;o=0;s--)if(M[s].enabled){i._indexToPoints=M[s]._indexToPoints;break}l&&l.calc&&(x=l.calc(e,i))}(!Array.isArray(x)||!x[0])&&(x=[{x:h9,y:h9}]),x[0].t||(x[0].t={}),x[0].trace=i,u[_]=x}}for(y9(t,a,n),o=0;o{"use strict";Ko.xmlns="http://www.w3.org/2000/xmlns/";Ko.svg="http://www.w3.org/2000/svg";Ko.xlink="http://www.w3.org/1999/xlink";Ko.svgAttrs={xmlns:Ko.svg,"xmlns:xlink":Ko.xlink}});var Pa=B((Uye,q9)=>{"use strict";q9.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var da=B(Hn=>{"use strict";var Vt=kr(),cl=Pe(),eK=cl.strTranslate,Tg=Qo(),rK=Pa().LINE_SPACING,tK=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Hn.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(tK),i=Vt.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=pK(e.node(),a);s&&e.style("pointer-events","all"),Hn.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};lK(n[2],f,function(c,h,d){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){o(),s();return}var y=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(p.node()),h&&h.node()&&p.node().insertBefore(h.node().cloneNode(!0),p.node().firstChild);var m=d.width,b=d.height;p.attr({class:l,height:b,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var _=e.node().style.fill||"black",w=p.select("g");w.attr({fill:_,stroke:_});var x=w.node().getBoundingClientRect(),M=x.width,k=x.height;(M>m||k>b)&&(p.style("overflow","hidden"),x=p.node().getBoundingClientRect(),M=x.width,k=x.height);var A=+e.attr("x"),S=+e.attr("y"),D=u||e.node().getBoundingClientRect().height,E=-D/4;if(l[0]==="y")y.attr({transform:"rotate("+[-90,A,S]+")"+eK(-M/2,E-k/2)});else if(l[0]==="l")S=E-k/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)A=0,S=E;else{var R=e.attr("text-anchor");A=A-M*(R==="middle"?.5:R==="end"?1:0),S=S+E-k/2}p.attr({x:A,y:S}),t&&t.call(e,y),s(y)})})):o(),e};var aK=/(<|<|<)/g,nK=/(>|>|>)/g;function iK(e){return e.replace(aK,"\\lt ").replace(nK,"\\gt ")}var C9=[["$","$"],["\\(","\\)"]];function lK(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){cl.warn("No MathJax version:",MathJax.version);return}var n,i,l,o,s=function(){return i=cl.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:C9},displayAlign:"left"})},u=function(){i=cl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=C9},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var _="math-output-"+cl.randstr({},64);o=Vt.select("body").append("div").attr({id:_}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(iK(e));var w=o.node();return a===2?MathJax.Hub.Typeset(w):MathJax.typeset([w])},d=function(){var _=o.select(a===2?".MathJax_SVG":".MathJax"),w=!_.empty()&&o.select("svg").node();if(!w)cl.log("There was an error in the tex syntax.",e),t();else{var x=w.getBoundingClientRect(),M;a===2?M=Vt.select("body").select("#MathJax_SVG_glyphs"):M=_.select("defs"),t(_,M,x)}o.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},y=function(){n!=="svg"&&(MathJax.config.startup.output=n)},m=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(i)},b=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,h,d,p,m):a===3&&(u(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),y(),b()}))}var E9={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},oK={sub:"0.3em",sup:"-0.6em"},sK={sub:"-0.21em",sup:"0.42em"},S9="\u200B",L9=["http:","https:","mailto:","",void 0,":"],P9=Hn.NEWLINES=/(\r\n?|\n)/g,Ag=/(<[^<>]*>)/,kg=/<(\/?)([^ >]*)(\s+(.*))?>/i,uK=//i;Hn.BR_TAG_ALL=//gi;var R9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,z9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,N9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,fK=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function jo(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Xh(a)}var cK=/(^|;)\s*color:/;Hn.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,l=e.split(Ag),o=[],s="",u=0,f=0;fi?o.push(c.substr(0,y-i)+n):o.push(c.substr(0,y));break}s=""}}return o.join("")};var vK={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},hK=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Xh(e){return e.replace(hK,function(r,t){var a;return t.charAt(0)==="#"?a=dK(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=vK[t],a||r})}Hn.convertEntities=Xh;function dK(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function pK(e,r){r=r.replace(P9," ");var t=!1,a=[],n,i=-1;function l(){i++;var k=document.createElementNS(Tg.svg,"tspan");Vt.select(k).attr({class:"line",dy:i*rK+"em"}),e.appendChild(k),n=k;var A=a;if(a=[{node:k}],A.length>1)for(var S=1;S.",r);return}var A=a.pop();k!==A.type&&cl.log("Start tag <"+A.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=uK.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(Ag),h=0;h{"use strict";var mK=kr(),Jh=zn(),Ic=zr(),Zh=Pe(),I9=xr(),yK=Oo().isValid;function gK(e,r,t){var a=r?Zh.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Zh.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function U9(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var W9=Uy(),bK=W9.FORMAT_LINK,_K=W9.DATE_FORMAT_LINK;function wK(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?qg:X9)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function qg(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+bK+"."].join(" ")}function X9(e,r){return qg(e,r)+[" And for dates see: "+_K+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Z9.exports={axisHoverFormat:wK,descriptionOnlyNumbers:qg,descriptionWithDates:X9}});var _n=B((Jye,cT)=>{"use strict";var J9=aa(),Pu=Nn(),fT=fi().dash,Sg=mt().extendFlat,$9=ot().templatedArray,Zye=ha().templateFormatStringDescription,K9=di().descriptionWithDates,TK=Mt().ONEDAY,Ii=Aa(),MK=Ii.HOUR_PATTERN,AK=Ii.WEEKDAY_PATTERN,Cg={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},kK=Sg({},Cg,{values:Cg.values.slice().concat(["sync"])});function Q9(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var j9={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},eT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},rT={valType:"data_array",editType:"ticks"},tT={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function aT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function nT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var iT={valType:"color",dflt:Pu.defaultLine,editType:"ticks"},lT={valType:"color",dflt:Pu.lightLine,editType:"ticks"};function oT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var sT=Sg({},fT,{editType:"ticks"}),uT={valType:"boolean",editType:"ticks"};cT.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Pu.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:J9({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Ii.idRegex.x.toString(),Ii.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Ii.idRegex.x.toString(),Ii.idRegex.y.toString()],editType:"calc"},rangebreaks:$9("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[AK,MK,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:TK},editType:"calc"}),tickmode:kK,nticks:Q9(),tick0:j9,dtick:eT,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:rT,ticktext:{valType:"data_array",editType:"ticks"},ticks:tT,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:aT(),tickwidth:nT(),tickcolor:iT,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Sg({},fT,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:J9({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:K9("tick label")},tickformatstops:$9("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:K9("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Pu.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:uT,gridcolor:lT,gridwidth:oT(),griddash:sT,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Pu.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Pu.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Ii.idRegex.x.toString(),Ii.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Ii.idRegex.x.toString(),Ii.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Cg,nticks:Q9("minor"),tick0:j9,dtick:eT,tickvals:rT,ticks:tT,ticklen:aT("minor"),tickwidth:nT("minor"),tickcolor:iT,gridcolor:lT,gridwidth:oT("minor"),griddash:sT,showgrid:uT,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var $h=B(($ye,dT)=>{"use strict";var gt=_n(),vT=aa(),hT=mt().extendFlat,qK=ui().overrideAll;dT.exports=qK({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:gt.linecolor,outlinewidth:gt.linewidth,bordercolor:gt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:gt.minor.tickmode,nticks:gt.nticks,tick0:gt.tick0,dtick:gt.dtick,tickvals:gt.tickvals,ticktext:gt.ticktext,ticks:hT({},gt.ticks,{dflt:""}),ticklabeloverflow:hT({},gt.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:gt.ticklen,tickwidth:gt.tickwidth,tickcolor:gt.tickcolor,ticklabelstep:gt.ticklabelstep,showticklabels:gt.showticklabels,labelalias:gt.labelalias,tickfont:vT({}),tickangle:gt.tickangle,tickformat:gt.tickformat,tickformatstops:gt.tickformatstops,tickprefix:gt.tickprefix,showtickprefix:gt.showtickprefix,ticksuffix:gt.ticksuffix,showticksuffix:gt.showticksuffix,separatethousands:gt.separatethousands,exponentformat:gt.exponentformat,minexponent:gt.minexponent,showexponent:gt.showexponent,title:{text:{valType:"string"},font:vT({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Hc=B((Qye,mT)=>{"use strict";var CK=$h(),SK=mu().counter,LK=Qy(),pT=Oo().scales,Kye=LK(pT);function Kh(e){return"`"+e+"`"}mT.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?pT[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+Kh(u+f));var h=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",y=a+"max",m=a+"mid",b=Kh(u+d),_=Kh(u+p),w=Kh(u+y),x=_+" and "+w,M={};M[p]=M[y]=void 0;var k={};k[d]=!1;var A={};return f==="color"&&(A.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(A.color.anim=!0)),A[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},A[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},A[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},A[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},A.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(A.showscale={valType:"boolean",dflt:l,editType:"calc"},A.colorbar=CK),t.noColorAxis||(A.coloraxis={valType:"subplotid",regex:SK("coloraxis"),dflt:null,editType:"calc"}),A}});var Dg=B((jye,yT)=>{"use strict";var DK=mt().extendFlat,EK=Hc(),Lg=Oo().scales;yT.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Lg.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Lg.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Lg.RdBu,editType:"calc"}},coloraxis:DK({_isSubplotObj:!0,editType:"calc"},EK("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Eg=B((ege,gT)=>{"use strict";var PK=Pe();gT.exports=function(r){return PK.isPlainObject(r.colorbar)}});var zg=B(Rg=>{"use strict";var Pg=zr(),xT=Pe(),bT=Mt(),RK=bT.ONEDAY,zK=bT.ONEWEEK;Rg.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?RK:1;if(!e)return i;if(Pg(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var l=e.charAt(0),o=e.substr(1);return o=Pg(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};Rg.tick0=function(e,r,t,a){if(r==="date")return xT.cleanDate(e,xT.dateTick0(t,a%zK===0?1:0));if(!(a==="D1"||a==="D2"))return Pg(e)?Number(e):0}});var Qh=B((tge,wT)=>{"use strict";var _T=zg(),NK=Pe().isArrayOrTypedArray,FK=gn().isTypedArraySpec,IK=gn().decodeTypedArraySpec;wT.exports=function(r,t,a,n,i){i||(i={});var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(_){var w=o[_];return FK(w)&&(w=IK(w)),w!==void 0?w:(s._template||{})[_]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=NK(d)?"array":h?"linear":"auto",y=a(u+"tickmode",p);if(y==="auto"||y==="sync")a(u+"nticks");else if(y==="linear"){var m=s.dtick=_T.dtick(h,n);s.tick0=_T.tick0(c,n,t.calendar,m)}else if(n!=="multicategory"){var b=a(u+"tickvals");b===void 0?s.tickmode="auto":l||a("ticktext")}}});var jh=B((age,MT)=>{"use strict";var Ng=Pe(),TT=_n();MT.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?TT.minor:TT,u=i?"minor.":"",f=Ng.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=Ng.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),h=Ng.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||h?"outside":"");d||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var Fg=B((nge,AT)=>{"use strict";AT.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var On=B((ige,kT)=>{"use strict";var ed=Pe(),HK=ot();kT.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=ed.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=HK.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var Ig=Pe(),OK=xr().contrast,qT=_n(),BK=Fg(),YK=On();CT.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");Ig.isPlainObject(l)||delete t.labelalias;var o=BK(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",h=c.indexOf("inside")!==-1?OK(i.bgColor):f&&f!==qT.color.dflt?f:u.color;if(Ig.coerceFont(a,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");YK(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:GK}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function GK(e,r){function t(n,i){return Ig.coerce(e,r,qT.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var td=B((oge,ST)=>{"use strict";var UK=Fg();ST.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=UK(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var Hg=B((sge,LT)=>{"use strict";var Vl=Pe(),VK=ot(),WK=Qh(),XK=jh(),ZK=rd(),JK=td(),$K=$h();LT.exports=function(r,t,a){var n=VK.newContainer(t,"colorbar"),i=r.colorbar||{};function l(R,N){return Vl.coerce(i,n,$K,R,N)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),c=f==="v",h=l("thicknessmode");l("thickness",h==="fraction"?30/(c?s:u):30);var d=l("lenmode");l("len",d==="fraction"?1:c?u:s);var p=l("yref"),y=l("xref"),m=p==="paper",b=y==="paper",_,w,x,M="left";c?(x="middle",M=b?"left":"right",_=b?1.02:1,w=.5):(x=m?"bottom":"top",M="center",_=.5,w=m?1.02:1),Vl.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:_}},"x"),Vl.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:w}},"y"),l("xanchor",M),l("xpad"),l("yanchor",x),l("ypad"),Vl.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var k=Vl.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),WK(i,n,l,"linear");var A=a.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:A};k.indexOf("inside")!==-1&&(S.bgColor="black"),JK(i,n,l,"linear",S),ZK(i,n,l,"linear",S),XK(i,n,l,"linear",S),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:A,E=Vl.extendFlat({},A,{family:D.family,size:Vl.bigFont(D.size)});Vl.coerceFont(l,"title.font",E),l("title.side",c?"top":"right")}});var Ru=B((uge,PT)=>{"use strict";var DT=zr(),Bg=Pe(),KK=Eg(),QK=Hg(),ET=Oo().isValid,jK=yr().traceIs;function Og(e,r){var t=r.slice(0,r.length-1);return r?Bg.nestedProperty(e,t).get()||{}:e}PT.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=Og(r,l),f=Og(t,l),c=Og(t._template||{},l)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(l+"coloraxis");if(p){var y=jK(t,"contour")&&Bg.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(h),m[0]!==y&&(m[0]=!1,Bg.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[y,t,[h]];return}}var b=u[o+"min"],_=u[o+"max"],w=DT(b)&&DT(_)&&b<_,x=n(l+o+"auto",!w);x?n(l+o+"mid"):(n(l+o+"min"),n(l+o+"max"));var M=u.colorscale,k=c.colorscale,A;if(M!==void 0&&(A=!ET(M)),k!==void 0&&(A=!ET(k)),n(l+"autocolorscale",A),n(l+"colorscale"),n(l+"reversescale"),l!=="marker.line."){var S;l&&s&&(S=KK(u));var D=n(l+"showscale",S);D&&(l&&c&&(f._template=c),QK(u,f,a))}}});var FT=B((fge,NT)=>{"use strict";var RT=Pe(),eQ=ot(),zT=Dg(),rQ=Ru();NT.exports=function(r,t){function a(c,h){return RT.coerce(r,t,zT,c,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(c,h){return RT.coerce(i,l,zT.coloraxis,c,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=eQ.newContainer(t,s,"coloraxis"),l._name=s,rQ(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var tQ=Pe(),aQ=bn().hasColorscale,nQ=bn().extractOpts;IT.exports=function(r,t){function a(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function n(f,c){var h=c.container?tQ.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=nQ(h),p=d.auto;(p||d.min===void 0)&&a(h,c.min),(p||d.max===void 0)&&a(h,c.max),d.autocolorscale&&a(h,"colorscale")}}for(var i=0;i{"use strict";var OT=zr(),Yg=Pe(),iQ=bn().extractOpts;BT.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?Yg.nestedProperty(t,l).get():t,s=iQ(o),u=s.auto!==!1,f=s.min,c=s.max,h=s.mid,d=function(){return Yg.aggNums(Math.min,null,i)},p=function(){return Yg.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(o._colorAx&&OT(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(o._colorAx&&OT(c)?c=Math.max(c,p()):c=p()),u&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var Gg=B((hge,YT)=>{"use strict";var ad=Oo(),zu=bn();YT.exports={moduleType:"component",name:"colorscale",attributes:Hc(),layoutAttributes:Dg(),supplyLayoutDefaults:FT(),handleDefaults:Ru(),crossTraceDefaults:HT(),calc:Oc(),scales:ad.scales,defaultScale:ad.defaultScale,getScale:ad.get,isValidScale:ad.isValid,hasColorscale:zu.hasColorscale,extractOpts:zu.extractOpts,extractScale:zu.extractScale,flipScale:zu.flipScale,makeColorScaleFunc:zu.makeColorScaleFunc,makeColorScaleFuncFromTrace:zu.makeColorScaleFuncFromTrace}});var wn=B((dge,UT)=>{"use strict";var GT=Pe(),lQ=gn().isTypedArraySpec;UT.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return GT.isPlainObject(r)&&(GT.isArrayOrTypedArray(r.size)||lQ(r.size))}}});var WT=B((pge,VT)=>{"use strict";var oQ=zr();VT.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return oQ(s)&&s>0?Math.max(s,i):0}}});var Hi=B(Ra=>{"use strict";var XT=Pe();Ra.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ra.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{$T.exports=vQ;var Ug={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},cQ=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function vQ(e){var r=[];return e.replace(cQ,function(t,a,n){var i=a.toLowerCase();for(n=dQ(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==Ug[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var pQ=Vg(),Xe=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",KT=Math.sqrt(2),Wl=Math.sqrt(3),Wg=Math.PI,Xg=Math.cos,Zg=Math.sin;tM.exports={circle:{n:0,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Sr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.4,2),n=Xe(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.8/KT,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Sr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2/Wl,2),n=Xe(e/2,2),i=Xe(e,2);return Sr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2/Wl,2),n=Xe(e/2,2),i=Xe(e,2);return Sr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2/Wl,2),n=Xe(e/2,2),i=Xe(e,2);return Sr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2/Wl,2),n=Xe(e/2,2),i=Xe(e,2);return Sr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.6,2),n=Xe(e*1.2,2);return Sr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.6,2),n=Xe(e*1.2,2);return Sr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.6,2),n=Xe(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.6,2),n=Xe(e*1.2,2);return Sr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.951,2),n=Xe(e*.588,2),i=Xe(-e,2),l=Xe(e*-.309,2),o=Xe(e*.809,2);return Sr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n=Xe(e/2,2),i=Xe(e*Wl/2,2);return Sr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n=Xe(e/2,2),i=Xe(e*Wl/2,2);return Sr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.924,2),n=Xe(e*.383,2);return Sr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Cr(r))return qr;var a=e*1.4,n=Xe(a*.225,2),i=Xe(a*.951,2),l=Xe(a*.363,2),o=Xe(a*.588,2),s=Xe(-a,2),u=Xe(a*-.309,2),f=Xe(a*.118,2),c=Xe(a*.809,2),h=Xe(a*.382,2);return Sr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+c+"L0,"+h+"L-"+o+","+c+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.66,2),n=Xe(e*.38,2),i=Xe(e*.76,2);return Sr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*Wl*.8,2),n=Xe(e*.8,2),i=Xe(e*1.6,2),l=Xe(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*Wl*.8,2),n=Xe(e*.8,2),i=Xe(e*1.6,2),l=Xe(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.1,2),n=Xe(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.4,2),n=Xe(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.7,2),n=Xe(e*1.4,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.4,2),n=Xe(e*.7,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n=Xe(e/KT,2);return Sr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.3,2),n=Xe(e*.65,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.2,2),n=Xe(e*.85,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e/2,2),n=Xe(e,2);return Sr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.2,2),n=Xe(e*1.6,2),i=Xe(e*.8,2);return Sr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.2,2),n=Xe(e*1.6,2),i=Xe(e*.8,2);return Sr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.2,2),n=Xe(e*1.6,2),i=Xe(e*.8,2);return Sr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.2,2),n=Xe(e*1.6,2),i=Xe(e*.8,2);return Sr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.4,2);return Sr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n=Xe(e*2,2);return Sr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n=Xe(e*2,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2,2),n=Xe(e,2);return Sr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2,2),n=Xe(e,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n=Xe(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n=Xe(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2,2),n=Xe(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2,2),n=Xe(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Cr(r))return qr;var a=Wg/2.5,n=2*e*Xg(a),i=2*e*Zg(a);return Sr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Cr(r))return qr;var a=Wg/4,n=2*e*Xg(a),i=2*e*Zg(a);return Sr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Cr(e){return e===null}var QT,jT,eM,rM;function Sr(e,r,t){if((!e||e%360===0)&&!r)return t;if(eM===e&&rM===r&&QT===t)return jT;eM=e,rM=r,QT=t;function a(m,b){var _=Xg(m),w=Zg(m),x=b[0],M=b[1]+(r||0);return[x*_-M*w,x*w+M*_]}for(var n=e/180*Wg,i=0,l=0,o=pQ(t),s="",u=0;u{"use strict";var ia=kr(),nt=Pe(),mQ=nt.numberFormat,as=zr(),e2=zn(),id=yr(),ka=xr(),yQ=Gg(),Yc=nt.strTranslate,ld=da(),gQ=Qo(),xQ=Pa(),bQ=xQ.LINE_SPACING,hM=pu().DESELECTDIM,_Q=wn(),wQ=WT(),TQ=Hi().appendArrayPointValue,rr=TM.exports={};rr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(ka.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",Jg(AQ(f))),s&&e.style("text-shadow",s==="auto"?ld.makeTextShadow(ka.contrast(i)):Jg(s)),u&&e.style("text-decoration-line",Jg(kQ(u)))};function Jg(e){return e==="none"?void 0:e}var MQ={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function AQ(e){return MQ[e]}function kQ(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}rr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};rr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};rr.setRect=function(e,r,t,a,n){e.call(rr.setPosition,r,t).call(rr.setSize,a,n)};rr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(as(n)&&as(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Yc(n,i));else return!1;return!0};rr.translatePoints=function(e,r,t){e.each(function(a){var n=ia.select(this);rr.translatePoint(a,n,r,t)})};rr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};rr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=id.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){rr.hideOutsideRangePoint(u,ia.select(this),t,a,l,o)})})}};rr.crispRound=function(e,r,t){return!r||!as(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};rr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";ka.stroke(r,a||i.color),rr.dashLine(r,o,l)};rr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";ia.select(this).call(ka.stroke,t||i.color).call(rr.dashLine,o,l)})};rr.dashLine=function(e,r,t){t=+t||0,r=rr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};rr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function dM(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=rr.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,c=l(n.size,0,8),h=l(n.solidity,0,.3),d=r.uid;rr.pattern(e,"point",t,d,o,c,h,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,b;p==="horizontal"?(m={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},b={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(yM,t,y,"linear",i.colorscale,"fill",m,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(rr.gradient,t,y,p,i.colorscale,"fill")}else r.fillcolor&&e.call(ka.fill,r.fillcolor)}rr.singleFillStyle=function(e,r){var t=ia.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};dM(e,n,r,!1)};rr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=ia.select(this);a[0].trace&&dM(n,a[0].trace,r,t)})};var nM=aM();rr.symbolNames=[];rr.symbolFuncs=[];rr.symbolBackOffs=[];rr.symbolNeedLines={};rr.symbolNoDot={};rr.symbolNoFill={};rr.symbolList=[];Object.keys(nM).forEach(function(e){var r=nM[e],t=r.n;rr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),rr.symbolNames[t]=e,rr.symbolFuncs[t]=r.f,rr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(rr.symbolNeedLines[t]=!0),r.noDot?rr.symbolNoDot[t]=!0:rr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(rr.symbolNoFill[t]=!0)});var qQ=rr.symbolNames.length,CQ="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";rr.symbolNumber=function(e){if(as(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=rr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=qQ||e>=400?0:Math.floor(Math.max(e,0))};function pM(e,r,t,a){var n=e%100;return rr.symbolFuncs[n](r,t,a)+(e>=200?CQ:"")}var iM=mQ("~f"),mM={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};rr.gradient=function(e,r,t,a,n,i){var l=mM[a];return yM(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function yM(e,r,t,a,n,i,l,o,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=rr.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=a2(e,t),c=t2(e,t);r.attr("d",pM(u,s,f,c))}var h=!1,d,p,y;if(e.so)y=o.outlierwidth,p=o.outliercolor,d=l.outliercolor;else{var m=(o||{}).width;y=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):nt.isArrayOrTypedArray(o.color)?p=ka.defaultLine:p=o.color,nt.isArrayOrTypedArray(l.color)&&(d=ka.defaultLine,h=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}if(e.om)r.call(ka.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var b=l.gradient,_=e.mgt;_?h=!0:_=b&&b.type,nt.isArrayOrTypedArray(_)&&(_=_[0],mM[_]||(_=0));var w=l.pattern,x=rr.getPatternAttr,M=w&&(x(w.shape,e.i,"")||x(w.path,e.i,""));if(_&&_!=="none"){var k=e.mgc;k?h=!0:k=b.color;var A=t.uid;h&&(A+="-"+e.i),rr.gradient(r,n,A,_,[[0,k],[1,d]],"fill")}else if(M){var S=!1,D=w.fgcolor;!D&&i&&i.color&&(D=i.color,S=!0);var E=x(D,e.i,i&&i.color||null),R=x(w.bgcolor,e.i,null),N=w.fgopacity,I=x(w.size,e.i,8),H=x(w.solidity,e.i,.3);S=S||e.mcc||nt.isArrayOrTypedArray(w.shape)||nt.isArrayOrTypedArray(w.path)||nt.isArrayOrTypedArray(w.bgcolor)||nt.isArrayOrTypedArray(w.fgcolor)||nt.isArrayOrTypedArray(w.size)||nt.isArrayOrTypedArray(w.solidity);var U=t.uid;S&&(U+="-"+e.i),rr.pattern(r,"point",n,U,M,I,H,e.mcc,w.fillmode,R,E,N)}else nt.isArrayOrTypedArray(d)?ka.fill(r,d[e.i]):ka.fill(r,d);y&&ka.stroke(r,p)}};rr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=rr.tryColorscale(t,""),r.lineScale=rr.tryColorscale(t,"line"),id.traceIs(e,"symbols")&&(r.ms2mrc=_Q.isBubble(e)?wQ(e):function(){return(t.size||6)/2}),e.selectedpoints&&nt.extendFlat(r,rr.makeSelectedPointStyleFns(e)),r};rr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,c=u!==void 0;(nt.isArrayOrTypedArray(o)||f||c)&&(r.selectedOpacityFn=function(x){var M=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:M:c?u:hM*M});var h=n.color,d=i.color,p=l.color;(d||p)&&(r.selectedColorFn=function(x){var M=x.mcc||h;return x.selected?d||M:p||M});var y=n.size,m=i.size,b=l.size,_=m!==void 0,w=b!==void 0;return id.traceIs(e,"symbols")&&(_||w)&&(r.selectedSizeFn=function(x){var M=x.mrc||y/2;return x.selected?_?m/2:M:w?b/2:M}),r};rr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var c=f.tc||o;return f.selected?s||c:u||(s?c:ka.addOpacity(c,hM))},r};rr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){ka.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",pM(rr.symbolNumber(o),s,a2(l,r),t2(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=ia.select(this),o=0;o0?t:0}rr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=rr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=ia.select(this),u=i?nt.extractOption(o,r,"txt","texttemplate"):nt.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(o,r,l):{},h={};TQ(h,r,o.i);var d=r._meta||{};u=nt.texttemplateString(u,c,l._d3locale,h,o,d)}var p=o.tp||r.textposition,y=xM(o,r),m=a?a(o):o.tc||r.textfont.color;s.call(rr.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:y,color:m}).text(u).call(ld.convertToTspans,t).call(gM,p,y,o.mrc)})}};rr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.makeSelectedTextStyleFns(r);e.each(function(a){var n=ia.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=xM(a,r);ka.fill(n,i);var s=id.traceIs(r,"bar-like");gM(n,l,o,a.mrc2||a.mrc,s)})}};var lM=.5;rr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=f&&x<=s)&&(M<=c&&M>=u||M>=c&&M<=u)&&(e=[x,M])}return e}rr.applyBackoff=wM;rr.makeTester=function(){var e=nt.ensureSingleById(ia.select("body"),"svg","js-plotly-tester",function(t){t.attr(gQ.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=nt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});rr.tester=e,rr.testref=r};rr.savedBBoxes={};var Kg=0,DQ=1e4;rr.bBox=function(e,r,t){t||(t=oM(e));var a;if(t){if(a=rr.savedBBoxes[t],a)return nt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=oM(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=rr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=rr.savedBBoxes[t],a)return nt.extendFlat({},a)}}var u,f;r?u=e:(f=rr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ia.select(u).attr("transform",null).call(ld.positionText,0,0);var c=u.getBoundingClientRect(),h=rr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return Kg>=DQ&&(rr.savedBBoxes={},Kg=0),t&&(rr.savedBBoxes[t]=d),Kg++,nt.extendFlat({},d)};function oM(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}rr.setClipUrl=function(e,r,t){e.attr("clip-path",r2(r,t))};function r2(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}rr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};rr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=Yc(r,t),l=l.trim(),e[i]("transform",l),l};rr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};rr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var EQ=/\s*sc.*/;rr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(EQ,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var PQ=/translate\([^)]*\)\s*$/;rr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=ia.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(PQ);r===1&&t===1?a=[]:a=[Yc(l,o),"scale("+r+","+t+")",Yc(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function t2(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}rr.getMarkerStandoff=t2;var Bc=Math.atan2,es=Math.cos,Fu=Math.sin;function sM(e,r){var t=r[0],a=r[1];return[t*es(e)-a*Fu(e),t*Fu(e)+a*es(e)]}var uM,fM,cM,vM,Qg,jg;function a2(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||nt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=Bc(h[1]-n,h[0]-a),p=Bc(c[1]-n,c[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var m=u/180*Math.PI,b=f/180*Math.PI,_=uM/180*Math.PI,w=fM/180*Math.PI,x=_-m,M=es(w)*Fu(x),k=Fu(w)*es(b)-es(w)*Fu(b)*es(x);y=-Bc(M,k)-Math.PI,uM=u,fM=f}var A=sM(d,[es(y),0]),S=sM(p,[Fu(y),0]);t=Bc(A[1]+S[1],A[0]+S[0])/Math.PI*180,i==="previous"&&!(jg===r.uid&&e.i===Qg+1)&&(t=null)}if(i==="previous"&&!r._geo)if(jg===r.uid&&e.i===Qg+1&&as(a)&&as(n)){var D=a-cM,E=n-vM,R=r.line&&r.line.shape||"",N=R.slice(R.length-1);N==="h"&&(E=0),N==="v"&&(D=0),t+=Bc(E,D)/Math.PI*180+90}else t=null}return cM=a,vM=n,Qg=e.i,jg=r.uid,t}rr.getMarkerAngle=a2});var Gc=B((bge,qM)=>{"use strict";var Iu=kr(),RQ=zr(),zQ=Pt(),n2=yr(),ns=Pe(),MM=ns.strTranslate,od=Yr(),sd=xr(),Hu=da(),AM=pu(),NQ=Pa().OPPOSITE_SIDE,kM=/ [XY][0-9]* /,i2=1.6,l2=1.6;function FQ(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,h=1,d=n.title,p=(d&&d.text?d.text:"").trim(),y=!1,m=d&&d.font?d.font:{},b=m.family,_=m.size,w=m.color,x=m.weight,M=m.style,k=m.variant,A=m.textcase,S=m.lineposition,D=m.shadow,E=t.subtitlePropName,R=!!E,N=t.subtitlePlaceholder,I=(n.title||{}).subtitle||{text:"",font:{}},H=I.text.trim(),U=!1,W=1,Y=I.font,O=Y.family,G=Y.size,Z=Y.color,$=Y.weight,te=Y.style,le=Y.variant,fe=Y.textcase,he=Y.lineposition,Q=Y.shadow,qe;i==="title.text"?qe="titleText":i.indexOf("axis")!==-1?qe="axisTitleText":i.indexOf("colorbar")!==-1&&(qe="colorbarTitleText");var ve=e._context.edits[qe];function Ae(Ve,Ge){return Ve===void 0||Ge===void 0?!1:Ve.replace(kM," % ")===Ge.replace(kM," % ")}p===""?h=0:Ae(p,l)&&(ve||(p=""),h=.2,y=!0),R&&(H===""?W=0:Ae(H,N)&&(ve||(H=""),W=.2,U=!0)),t._meta?p=ns.templateString(p,t._meta):a._meta&&(p=ns.templateString(p,a._meta));var se=p||H||ve,be;c||(c=ns.ensureSingle(a._infolayer,"g","g-"+r),be=a._hColorbarMoveTitle);var V=c.selectAll("text."+r).data(se?[0]:[]);V.enter().append("text"),V.text(p).attr("class",r),V.exit().remove();var j=null,X=r+"-subtitle",ge=H||ve;if(R&&ge&&(j=c.selectAll("text."+X).data(ge?[0]:[]),j.enter().append("text"),j.text(H).attr("class",X),j.exit().remove()),!se)return c;function ke(Ve,Ge){ns.syncOrAsync([xe,ze],{title:Ve,subtitle:Ge})}function xe(Ve){var Ge=Ve.title,De=Ve.subtitle,He;!f&&be&&(f={}),f?(He="",f.rotate&&(He+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||be)&&(He+=MM(0,(f.offset||0)-(be||0)))):He=null,Ge.attr("transform",He);function Oe(oe){if(oe){var Ce=Iu.select(oe.node().parentNode).select("."+X);if(!Ce.empty()){var Ie=oe.node().getBBox();if(Ie.height){var We=Ie.y+Ie.height+i2*G;Ce.attr("y",We)}}}}if(Ge.style("opacity",h*sd.opacity(w)).call(od.font,{color:sd.rgb(w),size:Iu.round(_,2),family:b,weight:x,style:M,variant:k,textcase:A,shadow:D,lineposition:S}).attr(u).call(Hu.convertToTspans,e,Oe),De){var ie=c.select("."+r+"-math-group"),Me=Ge.node().getBBox(),Ze=ie.node()?ie.node().getBBox():void 0,cr=Ze?Ze.y+Ze.height+i2*G:Me.y+Me.height+l2*G,fr=ns.extendFlat({},u,{y:cr});De.attr("transform",He),De.style("opacity",W*sd.opacity(Z)).call(od.font,{color:sd.rgb(Z),size:Iu.round(G,2),family:O,weight:$,style:te,variant:le,textcase:fe,shadow:Q,lineposition:he}).attr(fr).call(Hu.convertToTspans,e)}return zQ.previousPromises(e)}function ze(Ve){var Ge=Ve.title,De=Iu.select(Ge.node().parentNode);if(s&&s.selection&&s.side&&p){De.attr("transform",null);var He=NQ[s.side],Oe=s.side==="left"||s.side==="top"?-1:1,ie=RQ(s.pad)?s.pad:2,Me=od.bBox(De.node()),Ze={t:0,b:0,l:0,r:0},cr=e._fullLayout._reservedMargin;for(var fr in cr)for(var oe in cr[fr]){var Ce=cr[fr][oe];Ze[oe]=Math.max(Ze[oe],Ce)}var Ie={left:Ze.l,top:Ze.t,right:a.width-Ze.r,bottom:a.height-Ze.b},We=s.maxShift||Oe*(Ie[s.side]-Me[s.side]),Ue=0;if(We<0)Ue=We;else{var Je=s.offsetLeft||0,je=s.offsetTop||0;Me.left-=Je,Me.right-=Je,Me.top-=je,Me.bottom-=je,s.selection.each(function(){var $e=od.bBox(this);ns.bBoxIntersect(Me,$e,ie)&&(Ue=Math.max(Ue,Oe*($e[s.side]-Me[He])+ie))}),Ue=Math.min(We,Ue),n._titleScoot=Math.abs(Ue)}if(Ue>0||We<0){var vr={left:[-Ue,0],right:[Ue,0],top:[0,-Ue],bottom:[0,Ue]}[s.side];De.attr("transform",MM(vr[0],vr[1]))}}}V.call(ke,j);function Fe(Ve,Ge){Ve.text(Ge).on("mouseover.opacity",function(){Iu.select(this).transition().duration(AM.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Iu.select(this).transition().duration(AM.HIDE_PLACEHOLDER).style("opacity",0)})}if(ve&&(p?V.on(".opacity",null):(Fe(V,l),y=!0),V.call(Hu.makeEditable,{gd:e}).on("edit",function(Ve){o!==void 0?n2.call("_guiRestyle",e,i,Ve,o):n2.call("_guiRelayout",e,i,Ve)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ke)}).on("input",function(Ve){this.text(Ve||" ").call(Hu.positionText,u.x,u.y)}),R)){if(R&&!p){var Ee=V.node().getBBox(),Ne=Ee.y+Ee.height+l2*G;j.attr("y",Ne)}H?j.on(".opacity",null):(Fe(j,N),U=!0),j.call(Hu.makeEditable,{gd:e}).on("edit",function(Ve){n2.call("_guiRelayout",e,"title.subtitle.text",Ve)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ke)}).on("input",function(Ve){this.text(Ve||" ").call(Hu.positionText,j.attr("x"),j.attr("y"))})}return V.classed("js-placeholder",y),j&&j.classed("js-placeholder",U),c}qM.exports={draw:FQ,SUBTITLE_PADDING_EM:l2,SUBTITLE_PADDING_MATHJAX_EM:i2}});var md=B((_ge,EM)=>{"use strict";var IQ=kr(),HQ=cu().utcFormat,st=Pe(),OQ=st.numberFormat,Oi=zr(),Xl=st.cleanNumber,BQ=st.ms2DateTime,CM=st.dateTime2ms,Bi=st.ensureNumber,SM=st.isArrayOrTypedArray,Zl=Mt(),ud=Zl.FP_SAFE,pi=Zl.BADNUM,YQ=Zl.LOG_CLIP,GQ=Zl.ONEWEEK,fd=Zl.ONEDAY,cd=Zl.ONEHOUR,LM=Zl.ONEMIN,DM=Zl.ONESEC,vd=Ut(),pd=Aa(),hd=pd.HOUR_PATTERN,dd=pd.WEEKDAY_PATTERN;function Uc(e){return Math.pow(10,e)}function o2(e){return e!=null}EM.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,M){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&M&&r.range&&r.range.length===2){var k=r.range[0],A=r.range[1];return .5*(k+A-2*YQ*Math.abs(k-A))}else return pi}function l(x,M,k,A){if((A||{}).msUTC&&Oi(x))return+x;var S=CM(x,k||r.calendar);if(S===pi)if(Oi(x)){x=+x;var D=Math.floor(st.mod(x+.05,1)*10),E=Math.round(x-D/10);S=CM(new Date(E))+D/10}else return pi;return S}function o(x,M,k){return BQ(x,M,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(o2(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var M=r._categories.length-1;return r._categoriesMap[x]=M,M}return pi}function f(x,M){for(var k=new Array(M),A=0;Ar.range[1]&&(k=!k);for(var A=k?-1:1,S=A*x,D=0,E=0;EN)D=E+1;else{D=S<(R+N)/2?E:E+1;break}}var I=r._B[D]||0;return isFinite(I)?p(x,r._m2,I):0},b=function(x){var M=r._rangebreaks.length;if(!M)return y(x,r._m,r._b);for(var k=0,A=0;Ar._rangebreaks[A].pmax&&(k=A+1);return y(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:Bi,r.l2c=r.type==="log"?Uc:Bi,r.l2p=m,r.p2l=b,r.c2p=r.type==="log"?function(x,M){return m(i(x,M))}:m,r.p2c=r.type==="log"?function(x){return Uc(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Xl,r.c2d=r.c2r=r.l2d=r.l2r=Bi,r.d2p=r.r2p=function(x){return r.l2p(Xl(x))},r.p2d=r.p2r=b,r.cleanPos=Bi):r.type==="log"?(r.d2r=r.d2l=function(x,M){return i(Xl(x),M)},r.r2d=r.r2c=function(x){return Uc(Xl(x))},r.d2c=r.r2l=Xl,r.c2d=r.l2r=Bi,r.c2r=i,r.l2d=Uc,r.d2p=function(x,M){return r.l2p(r.d2r(x,M))},r.p2d=function(x){return Uc(b(x))},r.r2p=function(x){return r.l2p(Xl(x))},r.p2r=b,r.cleanPos=Bi):r.type==="date"?(r.d2r=r.r2d=st.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(x,M,k){return r.l2p(l(x,0,k))},r.p2d=r.p2r=function(x,M,k){return o(b(x),M,k)},r.cleanPos=function(x){return st.cleanDate(x,pi,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(x){var M=d(x);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Bi,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Bi(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(x){var M=h(x);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Bi,r.r2l=h,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Bi(x)},r.setupMultiCategory=function(x){var M=r._traceIndices,k,A,S=r._matchGroup;if(S&&r._categories.length===0){for(var D in S)if(D!==a){var E=t[vd.id2name(D)];M=M.concat(E._traceIndices)}}var R=[[0,{}],[0,{}]],N=[];for(k=0;kE[1]&&(A[D?0:1]=k),A[0]===A[1]){var R=r.l2r(M),N=r.l2r(k);if(M!==void 0){var I=R+1;k!==void 0&&(I=Math.min(I,N)),A[D?1:0]=I}if(k!==void 0){var H=N+1;M!==void 0&&(H=Math.max(H,R)),A[D?0:1]=H}}}},r.cleanRange=function(x,M){r._cleanRange(x,M),r.limitRange(x)},r._cleanRange=function(x,M){M||(M={}),x||(x="range");var k=st.nestedProperty(r,x).get(),A,S;if(r.type==="date"?S=st.dfltRange(r.calendar):n==="y"?S=pd.DFLTRANGEY:r._name==="realaxis"?S=[0,1]:S=M.dfltRange||pd.DFLTRANGEX,S=S.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(S[0]=0),!k||k.length!==2){st.nestedProperty(r,x).set(S);return}var D=k[0]===null,E=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=st.cleanDate(k[0],pi,r.calendar),k[1]=st.cleanDate(k[1],pi,r.calendar)),A=0;A<2;A++)if(r.type==="date"){if(!st.isDateTime(k[A],r.calendar)){r[x]=S;break}if(r.r2l(k[0])===r.r2l(k[1])){var R=st.constrain(r.r2l(k[0]),st.MIN_MS+1e3,st.MAX_MS-1e3);k[0]=r.l2r(R-1e3),k[1]=r.l2r(R+1e3);break}}else{if(!Oi(k[A]))if(!(D||E)&&Oi(k[1-A]))k[A]=k[1-A]*(A?10:.1);else{r[x]=S;break}if(k[A]<-ud?k[A]=-ud:k[A]>ud&&(k[A]=ud),k[0]===k[1]){var N=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=N,k[1]+=N}}},r.setScale=function(x){var M=t._size;if(r.overlaying){var k=vd.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var A=x&&r._r?"_r":"range",S=r.calendar;r.cleanRange(A);var D=r.r2l(r[A][0],S),E=r.r2l(r[A][1],S),R=n==="y";if(R?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(D-E),r._b=-r._m*E):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(E-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var N,I;if(r._rangebreaks=r.locateBreaks(Math.min(D,E),Math.max(D,E)),r._rangebreaks.length){for(N=0;NE&&(H=!H),H&&r._rangebreaks.reverse();var U=H?-1:1;for(r._m2=U*r._length/(Math.abs(E-D)-r._lBreaks),r._B.push(-r._m2*(R?E:D)),N=0;NS&&(S+=7,DS&&(S+=24,D=A&&D=A&&x=Q.min&&(teQ.max&&(Q.max=le),fe=!1)}fe&&E.push({min:te,max:le})}};for(k=0;k{"use strict";var PM=zr(),s2=Pe(),UQ=Mt().BADNUM,yd=s2.isArrayOrTypedArray,VQ=s2.isDateTime,WQ=s2.cleanNumber,RM=Math.round;NM.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(yd(n)&&!n.length)return"-";if(!i&&KQ(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function zM(e){return Math.max(1,(e-1)/1e3)}function $Q(e,r){for(var t=e.length,a=zM(t),n=0,i=0,l={},o=0;on*2}function KQ(e){return yd(e[0])&&yd(e[1])}});var Vc=B((Tge,UM)=>{"use strict";var QQ=kr(),OM=zr(),Jl=Pe(),gd=Mt().FP_SAFE,jQ=yr(),ej=Yr(),BM=Ut(),rj=BM.getFromId,tj=BM.isLinked;UM.exports={applyAutorangeOptions:GM,getAutoRange:f2,makePadFn:c2,doAutoRange:nj,findExtremes:ij,concatExtremes:d2};function f2(e,r){var t,a,n=[],i=e._fullLayout,l=c2(i,r,0),o=c2(i,r,1),s=d2(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Jl.simpleMap(r.range,r.r2l);var c=u[0].val,h=f[0].val;for(t=1;t0&&(E=w-l(k)-o(A),E>x?R/E>M&&(S=k,D=A,M=R/E):R/w>M&&(S={val:k.val,nopad:1},D={val:A.val,nopad:1},M=R/w));function N(Y,O){return Math.max(Y,o(O))}if(c===h){var I=c-1,H=c+1;if(b)if(c===0)n=[0,1];else{var U=(c>0?f:u).reduce(N,0),W=c/(1-Math.min(.5,U/w));n=c>0?[0,W]:[W,0]}else _?n=[Math.max(0,I),Math.max(1,H)]:n=[I,H]}else b?(S.val>=0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):_&&(S.val-M*l(S)<0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),M=(D.val-S.val-FM(r,k.val,A.val))/(w-l(S)-o(D)),n=[S.val-M*l(S),D.val+M*o(D)];return n=GM(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Jl.simpleMap(n,r.l2r||Number)}function FM(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),A=x(t.vpadplus||t.vpad),S=x(t.vpadminus||t.vpad);if(!u){if(_=1/0,w=-1/0,s)for(c=0;c0&&(_=h),h>w&&h-gd&&(_=h),h>w&&h=R;c--)E(c);return{min:a,max:n,opts:t}}function v2(e,r,t,a){YM(e,r,t,a,lj)}function h2(e,r,t,a){YM(e,r,t,a,oj)}function YM(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function HM(e){return OM(e)&&Math.abs(e)=r}function sj(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&xd(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&xd(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function uj(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&xd(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&xd(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function xd(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=sj(t,r),a=uj(a,r),[t,a]}});var Jr=B((Mge,vA)=>{"use strict";var Bn=kr(),Wt=zr(),Ou=Pt(),Xc=yr(),br=Pe(),Bu=br.strTranslate,is=da(),fj=Gc(),Zc=xr(),Tn=Yr(),cj=_n(),VM=zg(),qa=Mt(),vj=qa.ONEMAXYEAR,wd=qa.ONEAVGYEAR,Td=qa.ONEMINYEAR,hj=qa.ONEMAXQUARTER,g2=qa.ONEAVGQUARTER,Md=qa.ONEMINQUARTER,dj=qa.ONEMAXMONTH,Yu=qa.ONEAVGMONTH,Ad=qa.ONEMINMONTH,Mn=qa.ONEWEEK,Ga=qa.ONEDAY,$l=Ga/2,Gi=qa.ONEHOUR,Jc=qa.ONEMIN,kd=qa.ONESEC,pj=qa.ONEMILLI,mj=qa.ONEMICROSEC,ls=qa.MINUS_SIGN,Sd=qa.BADNUM,x2={K:"zeroline"},b2={K:"gridline",L:"path"},_2={K:"minor-gridline",L:"path"},tA={K:"tick",L:"path"},WM={K:"tick",L:"text"},XM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Ld=Pa(),Wc=Ld.MID_SHIFT,os=Ld.CAP_SHIFT,$c=Ld.LINE_SPACING,yj=Ld.OPPOSITE_SIDE,qd=3,Ye=vA.exports={};Ye.setConvert=md();var gj=u2(),vl=Ut(),xj=vl.idSort,bj=vl.isLinked;Ye.id2name=vl.id2name;Ye.name2id=vl.name2id;Ye.cleanId=vl.cleanId;Ye.list=vl.list;Ye.listIds=vl.listIds;Ye.getFromId=vl.getFromId;Ye.getFromTrace=vl.getFromTrace;var aA=Vc();Ye.getAutoRange=aA.getAutoRange;Ye.findExtremes=aA.findExtremes;var _j=1e-4;function A2(e){var r=(e[1]-e[0])*_j;return[e[0]-r,e[1]+r]}Ye.coerceRef=function(e,r,t,a,n,i){var l=a.charAt(a.length-1),o=t._fullLayout._subplots[l+"axis"],s=a+"ref",u={};return n||(n=o[0]||(typeof i=="string"?i:i[0])),i||(i=n),o=o.concat(o.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:o.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},br.coerce(e,r,u,s)};Ye.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Ye.coercePosition=function(e,r,t,a,n,i){var l,o,s=Ye.getRefType(a);if(s!=="range")l=br.ensureNumber,o=t(n,i);else{var u=Ye.getFromId(r,a);i=u.fraction2r(i),o=t(n,i),l=u.cleanPos}e[n]=l(o)};Ye.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?br.ensureNumber:Ye.getFromId(r,t).cleanPos;return a(e)};Ye.redrawComponents=function(e,r){r=r||Ye.listIds(e);var t=e._fullLayout;function a(n,i,l,o){for(var s=Xc.getComponentMethod(n,i),u={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var h=t.dtick/2;e+=e+hl){var o=Number(t.substr(1));i.exactYears>l&&o%12===0?e=Ye.tickIncrement(e,"M6","reverse")+Ga*1.5:i.exactMonths>l?e=Ye.tickIncrement(e,"M1","reverse")+Ga*15.5:e-=$l;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&Wt(r._tmin),n;if(a){var i=Ye.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=br.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=br.simpleMap(n,r.l2r),e._isMinor=!0,Ye.prepTicks(e,t),a){var o=Wt(r.dtick),s=Wt(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?p2(u,f)?u===2*Mn&&f===2*Ga&&(e.dtick=Mn):u===2*Mn&&f===3*Ga?e.dtick=Mn:u===Mn&&!(r._input.minor||{}).nticks?e.dtick=Ga:$M(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":p2(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?p2(u,f)||(e.dtick=$M(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function p2(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function $M(e,r){return Math.abs(e/r-1)<.001}Ye.prepTicks=function(e,r){var t=br.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?br.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=br.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ye.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,l=a):(i=a,l=a);var o=e[i].value,s=e[l].value,u=Math.abs(s-o),f=t||u,c=0;f>=Td?u>=Td&&u<=vj?c=u:c=wd:t===g2&&f>=Md?u>=Md&&u<=hj?c=u:c=g2:f>=Ad?u>=Ad&&u<=dj?c=u:c=Yu:t===Mn&&f>=Mn?c=Mn:f>=Ga?c=Ga:t===$l&&f>=$l?c=$l:t===Gi&&f>=Gi&&(c=Gi);var h;c>=u&&(c=u,h=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,y=0,m=0;mMn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Ye.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||br.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=br.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(w?0:1);x--){var M=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=x?r:br.extendFlat({},r,r.minor);if(M?Ye.prepMinorTicks(k,r,t):Ye.prepTicks(k,t),k.tickmode==="array"){x?(m=[],p=KM(r,!M)):(b=[],y=KM(r,!M));continue}if(k.tickmode==="sync"){m=[],p=qj(r);continue}var A=A2(u),S=A[0],D=A[1],E=Wt(k.dtick),R=a==="log"&&!(E||k.dtick.charAt(0)==="L"),N=Ye.tickFirst(k,t);if(x){if(r._tmin=N,N=D:H<=D;H=Ye.tickIncrement(H,Y,f,n)){if(x&&U++,k.rangebreaks&&!f){if(H=h)break}if(m.length>d||H===I)break;I=H;var O={value:H};x?(R&&H!==(H|0)&&(O.simpleLabel=!0),i>1&&U%i&&(O.skipLabel=!0),m.push(O)):(O.minor=!0,b.push(O))}}if(!b||b.length<2)s=!1;else{var G=(b[1].value-b[0].value)*(o?-1:1);Kj(G,r.tickformat)||(s=!1)}if(!s)_=m;else{var Z=m.concat(b);l&&m.length&&(Z=Z.slice(1)),Z=Z.sort(function(Ne,Ve){return Ne.value-Ve.value}).filter(function(Ne,Ve,Ge){return Ve===0||Ne.value!==Ge[Ve-1].value});var $=Z.map(function(Ne,Ve){return Ne.minor===void 0&&!Ne.skipLabel?Ve:null}).filter(function(Ne){return Ne!==null});$.forEach(function(Ne){s.map(function(Ve){var Ge=Ne+Ve;Ge>=0&&Ge-1;se--){if(m[se].drop){m.splice(se,1);continue}m[se].value=y2(m[se].value,r);var X=r.c2p(m[se].value);(be?j>X-V:jh||Deh&&(Ge.periodX=h),Den&&hwd)r/=wd,a=n(10),e.dtick="M"+12*Yi(r,a,bd);else if(i>Yu)r/=Yu,e.dtick="M"+Yi(r,1,QM);else if(i>Ga){if(e.dtick=Yi(r,Ga,e._hasDayOfWeekBreaks?[1,2,7,14]:Cj),!t){var l=Ye.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=br.dateTick0(e.calendar,2):e.tick0=br.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>Gi?e.dtick=Yi(r,Gi,QM):i>Jc?e.dtick=Yi(r,Jc,jM):i>kd?e.dtick=Yi(r,kd,jM):(a=n(10),e.dtick=Yi(r,a,bd))}else if(e.type==="log"){e.tick0=0;var s=br.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Yi(r,a,bd)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):C2(e)?(e.tick0=0,a=1,e.dtick=Yi(r,a,Sj)):(e.tick0=0,a=n(10),e.dtick=Yi(r,a,bd));if(e.dtick===0&&(e.dtick=1),!Wt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function oA(e){var r=e.dtick;if(e._tickexponent=0,!Wt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=Ga&&n<=10||r>=Ga*15)e._tickround="d";else if(r>=Jc&&n<=16||r>=Gi)e._tickround="M";else if(r>=kd&&n<=19||r>=Jc)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(Wt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Wt(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Cd(e.exponentformat)&&!k2(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ye.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(Wt(r))return br.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.substr(1));if(i==="M")return br.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?lA:iA,s=e+n*.01,u=br.roundUp(br.mod(s,1),o,t);return Math.floor(s)+Math.log(Bn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ye.tickFirst=function(e,r){var t=e.r2l||Number,a=br.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?m:null};if(i&&br.isArrayOrTypedArray(e.ticktext)){var c=br.simpleMap(e.range,e.r2l),h=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(u=0;u"+o;else{var u=Qc(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function Dj(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=Kc(Math.pow(10,l),e,n,a);else if(Wt(i)||s==="D"&&(e.minorloglabels==="complete"||br.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(br.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),p=e.exponentformat;p==="power"||Cd(p)&&k2(h)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":ls)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(h>0?"+":ls)+d:(r.text=Kc(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,br.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function Ej(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Pj(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function Rj(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Kc(r.x,e,n,a)}function zj(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=Nj(i);if(l[1]>=100)r.text=Kc(br.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=ls+r.text)}}}else r.text=Kc(r.x,e,n,a)}function Nj(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var Fj=["f","p","n","\u03BC","m","","k","M","G","T"];function Cd(e){return e==="SI"||e==="B"}function k2(e){return e>14||e<-15}function Kc(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Wt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};oA(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,ls);var c=Math.pow(10,-i)/2;if(l==="none"&&(o=0),e=Math.abs(e),e"+p+"":l==="B"&&o===9?e+="B":Cd(l)&&(e+=Fj[o/3+5])}return n?ls+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Yu}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return c===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-h}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},h=u[0],d=u[1];return(!h&&typeof h!="number"||c(h)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,h=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||h)&&(c||d)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return br.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ye.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&M2(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=br.simpleMap(u._r,u.r2l),f}}}))};Ye.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Ye.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),M2(r,p,a,!0),M2(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=$j(r,a));var y=h[f+"axislayer"],m=r._mainLinePosition,b=m+=r._shift,_=r._mainMirrorPosition,w=r._vals=Ye.calcTicks(r),x=[r.mirror,b,_].join("_");for(i=0;i0?De.bottom-Ve:0,Ge))));var Me=0,Ze=0;if(r._shiftPusher&&(Me=Math.max(Ge,De.height>0?Ee==="l"?Ve-De.left:De.right-Ve:0),r.title.text!==s._dfltTitle[f]&&(Ze=(r._titleStandoff||0)+(r._titleScoot||0),Ee==="l"&&(Ze+=rA(r))),r._fullDepth=Math.max(Me,Ze)),r.automargin){He={x:0,y:0,r:0,l:0,t:0,b:0};var cr=[0,1],fr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ee==="b"?He[Ee]=r._depth:(He[Ee]=r._depth=Math.max(De.width>0?Ve-De.top:0,Ge),cr.reverse()),De.width>0){var oe=De.right-(r._offset+r._length);oe>0&&(He.xr=1,He.r=oe);var Ce=r._offset-De.left;Ce>0&&(He.xl=0,He.l=Ce)}}else if(Ee==="l"?(r._depth=Math.max(De.height>0?Ve-De.left:0,Ge),He[Ee]=r._depth-fr):(r._depth=Math.max(De.height>0?De.right-Ve:0,Ge),He[Ee]=r._depth+fr,cr.reverse()),De.height>0){var Ie=De.bottom-(r._offset+r._length);Ie>0&&(He.yb=0,He.b=Ie);var We=r._offset-De.top;We>0&&(He.yt=1,He.t=We)}He[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[cr[0]],r.title.text!==s._dfltTitle[f]&&(He[Ee]+=rA(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Oe={x:0,y:0,r:0,l:0,t:0,b:0},Oe[Ne]=r.linewidth,r.mirror&&r.mirror!==!0&&(Oe[Ne]+=Ge),r.mirror===!0||r.mirror==="ticks"?Oe[c]=r._anchorAxis.domain[cr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Oe[c]=[r._counterDomainMin,r._counterDomainMax][cr[1]]))}Fe&&(ie=Xc.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(eA(He,r.automargin),eA(Oe,r.automargin)),Ou.autoMargin(e,q2(r),He),Ou.autoMargin(e,fA(r),Oe),Ou.autoMargin(e,cA(r),ie)}),br.syncOrAsync(xe)}};function eA(e,r){if(e){var t=Object.keys(XM).reduce(function(a,n){return r.indexOf(n)!==-1&&XM[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Ij(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(br.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,c=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(h){return Bu(n+e._offset+e.l2p(w2(h))+t,i+a)}:function(h){return Bu(i+a,n+e._offset+e.l2p(w2(h))+t)}};function w2(e){return e.periodX!==void 0?e.periodX:e.x}function Yj(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,h=qd,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(c+=d*os,h+=(e.linewidth||0)/2),(i||l)&&(c+=(e.linewidth||0)/2,h+=qd),s&&f==="top"&&(h-=d*(1-os)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[u?c:0,s?h:0]}Ye.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Ye.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(I){return a.indexOf(I)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),c=i("inside"),h=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,y=h?e.ticklen:0;if(c?y*=-1:f&&(y=0),h&&(d+=y,t)){var m=br.deg2rad(t);d=y*Math.cos(m)+1,p=y*Math.sin(m)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},_,w,x,M,k=0,A=e.side,S=e._id.charAt(0),D=e.tickangle,E;if(S==="x")E=!c&&A==="bottom"||c&&A==="top",M=E?1:-1,c&&(M*=-1),_=p*M,w=r+d*M,x=E?1:-.2,Math.abs(D)===90&&(c?x+=Wc:D===-90&&A==="bottom"?x=os:D===90&&A==="top"?x=Wc:x=.5,k=Wc/2*(D/90)),b.xFn=function(I){return I.dx+_+k*I.fontSize},b.yFn=function(I){return I.dy+w+I.fontSize*x},b.anchorFn=function(I,H){if(f){if(o)return"end";if(s)return"start"}return!Wt(H)||H===0||H===180?"middle":H*M<0!==c?"end":"start"},b.heightFn=function(I,H,U){return H<-60||H>60?-.5*U:e.side==="top"!==c?-U:0};else if(S==="y"){if(E=!c&&A==="left"||c&&A==="right",M=E?1:-1,c&&(M*=-1),_=d,w=p*M,x=0,!c&&Math.abs(D)===90&&(D===-90&&A==="left"||D===90&&A==="right"?x=os:x=.5),c){var R=Wt(D)?+D:0;if(R!==0){var N=br.deg2rad(R);k=Math.abs(Math.sin(N))*os*M,x=0}}b.xFn=function(I){return I.dx+r-(_+I.fontSize*x)*M+k*I.fontSize},b.yFn=function(I){return I.dy+w+I.fontSize*Wc},b.anchorFn=function(I,H){return Wt(H)&&Math.abs(H)===90?"middle":E?"end":"start"},b.heightFn=function(I,H,U){return e.side==="right"&&(H*=-1),H<-30?-U:H<30?-.5*U:0}}return b};function Dd(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ye.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,Dd);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return Zc.stroke(Bn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return Tn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Ed(r,[tA]),i.attr("transform",t.transFn)};Ye.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],l=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],o=t.counterAxis;if(o&&Ye.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;p--){var y=p?h:d;if(y){var m=y.selectAll("path."+a).data(p?l:i,Dd);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(b){return Zc.stroke(Bn.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return Tn.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&m.attr("d",t.path)}}Ed(r,[b2,_2])}};Ye.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ye.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return xj(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Zc.stroke,r.zerolinecolor||Zc.defaultLine).style("stroke-width",Tn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Ed(r,[x2])};Ye.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(G){return G.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],c=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],Dd),h=[];c.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(G){var Z=Bn.select(this),$=e._promises.length;Z.call(is.positionText,s.xFn(G),s.yFn(G)).call(Tn.font,{family:G.font,size:G.fontSize,color:G.fontColor,weight:G.fontWeight,style:G.fontStyle,variant:G.fontVariant,textcase:G.fontTextcase,lineposition:G.fontLineposition,shadow:G.fontShadow}).text(G.text).call(is.convertToTspans,e),e._promises[$]?h.push(e._promises.pop().then(function(){d(Z,u)})):d(Z,u)}),Ed(r,[WM]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(G){Bn.select(this).select("text").call(is.positionText,s.xFn(G),s.yFn(G))});function d(G,Z){G.each(function($){var te=Bn.select(this),le=te.select(".text-math-group"),fe=s.anchorFn($,Z),he=t.transFn.call(te.node(),$)+(Wt(Z)&&+Z!=0?" rotate("+Z+","+s.xFn($)+","+(s.yFn($)-$.fontSize/2)+")":""),Q=is.lineCount(te),qe=$c*$.fontSize,ve=s.heightFn($,Wt(Z)?+Z:0,(Q-1)*qe);if(ve&&(he+=Bu(0,ve)),le.empty()){var Ae=te.select("text");Ae.attr({transform:he,"text-anchor":fe}),Ae.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var se=Tn.bBox(le.node()).width,be=se*{end:-.5,start:.5}[fe];le.attr("transform",he+Bu(be,0))}})}r._adjustTickLabelsOverflow=function(){var G=r.ticklabeloverflow;if(!(!G||G==="allow")){var Z=G.indexOf("hide")!==-1,$=r._id.charAt(0)==="x",te=0,le=$?e._fullLayout.width:e._fullLayout.height;if(G.indexOf("domain")!==-1){var fe=br.simpleMap(r.range,r.r2l);te=r.l2p(fe[0])+r._offset,le=r.l2p(fe[1])+r._offset}var he=Math.min(te,le),Q=Math.max(te,le),qe=r.side,ve=1/0,Ae=-1/0;c.each(function(j){var X=Bn.select(this),ge=X.select(".text-math-group");if(ge.empty()){var ke=Tn.bBox(X.node()),xe=0;$?(ke.right>Q||ke.leftQ||ke.top+(r.tickangle?0:j.fontSize/4)r["_visibleLabelMin_"+fe._id]?X.style("display","none"):Q.K==="tick"&&!he&&X.node().style.display!=="none"&&X.style("display",null)})})})})},d(c,f+1?f:u);function p(){return h.length&&Promise.all(h)}var y=null;function m(){if(d(c,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var G=0,Z=[],$,te=1;c.each(function(He){G=Math.max(G,He.fontSize);var Oe=r.l2p(He.x),ie=T2(this),Me=Tn.bBox(ie.node());te=Math.max(te,is.lineCount(ie)),Z.push({top:0,bottom:10,height:10,left:Oe-Me.width/2,right:Oe+Me.width/2+2,width:Me.width+2})});var le=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,fe=o.length,he=Math.abs((o[fe-1].x-o[0].x)*r._m)/(fe-1),Q=le?he/2:he,qe=le?r.ticklen:G*1.25*te,ve=Math.sqrt(Math.pow(Q,2)+Math.pow(qe,2)),Ae=Q/ve,se=r.autotickangles.map(function(He){return He*Math.PI/180}),be=se.find(function(He){return Math.abs(Math.cos(He))<=Ae});be===void 0&&(be=se.reduce(function(He,Oe){return Math.abs(Math.cos(He))W*U&&(N=U,D[S]=E[S]=I[S])}var Y=Math.abs(N-R);Y-M>0?(Y-=M,M*=1+M/Y):M=0,r._id.charAt(0)!=="y"&&(M=-M),D[A]=w.p2r(w.r2p(E[A])+k*M),w.autorange==="min"||w.autorange==="max reversed"?(D[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(D[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=D}var O=br.syncOrAsync(b);return O&&O.then&&e._promises.push(O),O};function Gj(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,Dd);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Zc.stroke,r.dividercolor).style("stroke-width",Tn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ye.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function rA(e){var r=e.title.font.size,t=(e.title.text.match(is.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(os+t*$c):t?r*(t+1)*$c:r}function Uj(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(is.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*os:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(Wc+o*$c));else{var s=Qc(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ye.getPxPosition(e,r),c,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-l:f+l):(d=r._offset+r._length/2,h=r.side==="right"?f+l:f-l,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(p={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var m=Tn.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=l,fj.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}Ye.shouldShowZeroLine=function(e,r,t){var a=br.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Sd)&&(uA(r,0)||!Vj(e,r,t,a)||Wj(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return uA(e,t.x)})};function uA(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=mj:/%L/.test(r)?e>=pj:/%[SX]/.test(r)?e>=kd:/%M/.test(r)?e>=Jc:/%[HI]/.test(r)?e>=Gi:/%p/.test(r)?e>=$l:/%[Aadejuwx]/.test(r)?e>=Ga:/%[UVW]/.test(r)?e>=Mn:/%[Bbm]/.test(r)?e>=Ad:/%[q]/.test(r)?e>=Md:/%[Yy]/.test(r)?e>=Td:!0}});var dA=B((Age,hA)=>{"use strict";hA.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var S2=B((kge,pA)=>{"use strict";var Qj=dA();pA.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),c;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(Qj(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var yA=B((qge,mA)=>{var jj={left:0,top:0};mA.exports=eee;function eee(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=ree(r);return t[0]=a-i.left,t[1]=n-i.top,t}function ree(e){return e===window||e===document||e===document.body?jj:e.getBoundingClientRect()}});var L2=B((Cge,gA)=>{"use strict";var tee=ug();function aee(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}gA.exports=tee&&aee()});var bA=B((Sge,xA)=>{"use strict";xA.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var TA=B((Lge,wA)=>{"use strict";var _A=Pe(),nee=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];wA.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=_A.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=_A.constrain(Math.floor(t*3),0,2),nee[t][r]}});var AA=B((Dge,MA)=>{"use strict";var iee=Pc(),lee=Lh(),oee=Mc().getGraphDiv,see=xc(),D2=MA.exports={};D2.wrapped=function(e,r,t){e=oee(e),e._fullLayout&&lee.clear(e._fullLayout._uid+see.HOVERID),D2.raw(e,r,t)};D2.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&iee.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var mi=B((Ege,SA)=>{"use strict";var uee=yA(),E2=cg(),fee=L2(),cee=Pe().removeElement,vee=Aa(),ss=SA.exports={};ss.align=bA();ss.getCursor=TA();var qA=AA();ss.unhover=qA.wrapped;ss.unhoverRaw=qA.raw;ss.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,c,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,fee?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(w,x,M){return Math.abs(w)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===h?x=c:(x={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var k=c[M];!x[M]&&typeof k!="function"&&(x[M]=k)})),r.clickFn&&r.clickFn(a,x),d||h.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function CA(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}ss.coverSlip=CA;function kA(e){return uee(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Kl=B((Pge,LA)=>{"use strict";LA.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var PA=B((Rge,EA)=>{"use strict";var P2=Kl(),jc="data-savedcursor",DA="!!";EA.exports=function(r,t){var a=r.attr(jc);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var R2=aa(),hee=Nn();RA.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:hee.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:R2({editType:"legend"}),grouptitlefont:R2({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:R2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Rd=B(Pd=>{"use strict";Pd.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Pd.isVertical=function(r){return r.orientation!=="h"};Pd.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var I2=B((Fge,zA)=>{"use strict";var N2=yr(),An=Pe(),dee=ot(),pee=tn(),mee=z2(),yee=xu(),F2=Rd();function gee(e,r,t,a){var n=r[e]||{},i=dee.newContainer(t,e);function l(Y,O){return An.coerce(n,i,mee,Y,O)}var o=An.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(s){for(var u,f=function(Y,O){var G=u._input,Z=u;return An.coerce(G,Z,pee,Y,O)},c=t.font||{},h=An.coerceFont(l,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,y="normal",m=(t.shapes||[]).filter(function(Y){return Y.showlegend}),b=a.concat(m).filter(function(Y){return e===(Y.legend||"legend")}),_=0;_(e==="legend"?1:0));if(x===!1&&(t[e]=void 0),!(x===!1&&!n.uirevision)&&(l("uirevision",t.uirevision),x!==!1)){l("borderwidth");var M=l("orientation"),k=l("yref"),A=l("xref"),S=M==="h",D=k==="paper",E=A==="paper",R,N,I,H="left";S?(R=0,N2.getComponentMethod("rangeslider","isVisible")(r.xaxis)?D?(N=1.1,I="bottom"):(N=1,I="top"):D?(N=-.1,I="top"):(N=0,I="bottom")):(N=1,I="auto",E?R=1.02:(R=1,H="right")),An.coerce(n,i,{x:{valType:"number",editType:"legend",min:E?-2:0,max:E?3:1,dflt:R}},"x"),An.coerce(n,i,{y:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:N}},"y"),l("traceorder",y),F2.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",H),l("yanchor",I),l("maxheight"),l("valign"),An.noneOrAll(n,i,["x","y"]);var U=l("title.text");if(U){l("title.side",S?"left":"top");var W=An.extendFlat({},o,{size:An.bigFont(o.size)});An.coerceFont(l,"title.font",W)}}}}zA.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var Gu=yr(),O2=Pe(),xee=O2.pushUnique,H2=!0;NA.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,l=n.legend.itemdoubleclick,o=n.legend.groupclick;a===1&&i==="toggle"&&l==="toggleothers"&&H2&&t.data&&t._context.showTips&&O2.notifier(O2._(t,"Double-click on legend to isolate one trace"),"long"),H2=!1;var s;if(a===1?s=i:a===2&&(s=l),!s)return;var u=o==="togglegroup",f=n.hiddenlabels?n.hiddenlabels.slice():[],c=r.data()[0][0];if(c.groupTitle&&c.noClick)return;var h=t._fullData,d=(n.shapes||[]).filter(function(Ne){return Ne.showlegend}),p=h.concat(d),y=c.trace;y._isShape&&(y=y._fullInput);var m=y.legendgroup,b,_,w,x,M,k,A={},S=[],D=[],E=[];function R(Ne,Ve){var Ge=S.indexOf(Ne),De=A.visible;return De||(De=A.visible=[]),S.indexOf(Ne)===-1&&(S.push(Ne),Ge=S.length-1),De[Ge]=Ve,Ge}var N=(n.shapes||[]).map(function(Ne){return Ne._input}),I=!1;function H(Ne,Ve){N[Ne].visible=Ve,I=!0}function U(Ne,Ve){if(!(c.groupTitle&&!u)){var Ge=Ne._fullInput||Ne,De=Ge._isShape,He=Ge.index;He===void 0&&(He=Ge._index);var Oe=Ge.visible===!1?!1:Ve;De?H(He,Oe):R(He,Oe)}}var W=y.legend,Y=y._fullInput,O=Y&&Y._isShape;if(!O&&Gu.traceIs(y,"pie-like")){var G=c.label,Z=f.indexOf(G);if(s==="toggle")Z===-1?f.push(G):f.splice(Z,1);else if(s==="toggleothers"){var $=Z!==-1,te=[];for(b=0;b{"use strict";IA.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var BA=B((Oge,OA)=>{"use strict";var HA=yr(),Y2=Rd();OA.exports=function(r,t,a){var n=t._inHover,i=Y2.isGrouped(t),l=Y2.isReversed(t),o={},s=[],u=!1,f={},c=0,h=0,d,p;function y(Y,O,G){if(t.visible!==!1&&!(a&&Y!==t._id))if(O===""||!Y2.isGrouped(t)){var Z="~~i"+c;s.push(Z),o[Z]=[G],c++}else s.indexOf(O)===-1?(s.push(O),u=!0,o[O]=[G]):o[O].push(G)}for(d=0;dE&&(D=E)}A[d][0]._groupMinRank=D,A[d][0]._preGroupSort=d}var R=function(Y,O){return Y[0]._groupMinRank-O[0]._groupMinRank||Y[0]._preGroupSort-O[0]._preGroupSort},N=function(Y,O){return Y.trace.legendrank-O.trace.legendrank||Y._preSort-O._preSort};for(A.forEach(function(Y,O){Y[0]._preGroupSort=O}),A.sort(R),d=0;d{"use strict";var zd=Pe();function YA(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}us.formatPiePercent=function(r,t){var a=YA((r*100).toPrecision(3));return zd.numSeparate(a,t)+"%"};us.formatPieValue=function(r,t){var a=YA(r.toPrecision(10));return zd.numSeparate(a,t)};us.getFirstFilled=function(r,t){if(zd.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var bee=Yr(),_ee=xr();GA.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?bee.pointStyle(r,a,n,t):_ee.fill(r,t.color)}});var Uu=B((Gge,XA)=>{"use strict";var VA=xr(),WA=ev().castOption,wee=UA();XA.exports=function(r,t,a,n){var i=a.marker.line,l=WA(i.color,t.pts)||VA.defaultLine,o=WA(i.width,t.pts)||0;r.call(wee,t,a,n).style("stroke-width",o).call(VA.stroke,l)}});var W2=B((Uge,jA)=>{"use strict";var Ua=kr(),G2=yr(),za=Pe(),ZA=za.strTranslate,kn=Yr(),Yn=xr(),U2=bn().extractOpts,Nd=wn(),Tee=Uu(),Mee=ev().castOption,Aee=B2(),JA=12,$A=5,fs=2,kee=10,Vu=5;jA.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+Aee.itemGap*2)/2,s=ZA(o,0),u=function(A,S,D,E){var R;if(A+1)R=A;else if(S&&S.width>0)R=S.width;else return 0;return i?E:Math.min(R,D)};r.each(function(A){var S=Ua.select(this),D=za.ensureSingle(S,"g","layers");D.style("opacity",A[0].trace.opacity);var E=a.indentation,R=a.valign,N=A[0].lineHeight,I=A[0].height;if(R==="middle"&&E===0||!N||!I)D.attr("transform",null);else{var H={top:1,bottom:-1}[R],U=H*(.5*(N-I+3))||0,W=a.indentation;D.attr("transform",ZA(W,U))}var Y=D.selectAll("g.legendfill").data([A]);Y.enter().append("g").classed("legendfill",!0);var O=D.selectAll("g.legendlines").data([A]);O.enter().append("g").classed("legendlines",!0);var G=D.selectAll("g.legendsymbols").data([A]);G.enter().append("g").classed("legendsymbols",!0),G.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(k).each(h).each(p).each(d).each(m).each(x).each(w).each(f).each(c).each(b).each(_);function f(A){var S=KA(A),D=S.showFill,E=S.showLine,R=S.showGradientLine,N=S.showGradientFill,I=S.anyFill,H=S.anyLine,U=A[0],W=U.trace,Y,O,G=U2(W),Z=G.colorscale,$=G.reversescale,te=function(Ae){if(Ae.size())if(D)kn.fillGroupStyle(Ae,t,!0);else{var se="legendfill-"+W.uid;kn.gradient(Ae,t,se,V2($),Z,"fill")}},le=function(Ae){if(Ae.size()){var se="legendline-"+W.uid;kn.lineGroupStyle(Ae),kn.gradient(Ae,t,se,V2($),Z,"stroke")}},fe=Nd.hasMarkers(W)||!I?"M5,0":H?"M5,-2":"M5,-3",he=Ua.select(this),Q=he.select(".legendfill").selectAll("path").data(D||N?[A]:[]);if(Q.enter().append("path").classed("js-fill",!0),Q.exit().remove(),Q.attr("d",fe+"h"+l+"v6h-"+l+"z").call(te),E||R){var qe=u(void 0,W.line,kee,$A);O=za.minExtend(W,{line:{width:qe}}),Y=[za.minExtend(U,{trace:O})]}var ve=he.select(".legendlines").selectAll("path").data(E||R?[Y]:[]);ve.enter().append("path").classed("js-line",!0),ve.exit().remove(),ve.attr("d",fe+(R?"l"+l+",0.0001":"h"+l)).call(E?kn.lineGroupStyle:le)}function c(A){var S=KA(A),D=S.anyFill,E=S.anyLine,R=S.showLine,N=S.showMarker,I=A[0],H=I.trace,U=!N&&!E&&!D&&Nd.hasText(H),W,Y;function O(Q,qe,ve,Ae){var se=za.nestedProperty(H,Q).get(),be=za.isArrayOrTypedArray(se)&&qe?qe(se):se;if(i&&be&&Ae!==void 0&&(be=Ae),ve){if(beve[1])return ve[1]}return be}function G(Q){return I._distinct&&I.index&&Q[I.index]?Q[I.index]:Q[0]}if(N||U||R){var Z={},$={};if(N){Z.mc=O("marker.color",G),Z.mx=O("marker.symbol",G),Z.mo=O("marker.opacity",za.mean,[.2,1]),Z.mlc=O("marker.line.color",G),Z.mlw=O("marker.line.width",za.mean,[0,5],fs),$.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var te=O("marker.size",za.mean,[2,16],JA);Z.ms=te,$.marker.size=te}R&&($.line={width:O("line.width",G,[0,10],$A)}),U&&(Z.tx="Aa",Z.tp=O("textposition",G),Z.ts=10,Z.tc=O("textfont.color",G),Z.tf=O("textfont.family",G),Z.tw=O("textfont.weight",G),Z.ty=O("textfont.style",G),Z.tv=O("textfont.variant",G),Z.tC=O("textfont.textcase",G),Z.tE=O("textfont.lineposition",G),Z.tS=O("textfont.shadow",G)),W=[za.minExtend(I,Z)],Y=za.minExtend(H,$),Y.selectedpoints=null,Y.texttemplate=null}var le=Ua.select(this).select("g.legendpoints"),fe=le.selectAll("path.scatterpts").data(N?W:[]);fe.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),fe.exit().remove(),fe.call(kn.pointStyle,Y,t),N&&(W[0].mrc=3);var he=le.selectAll("g.pointtext").data(U?W:[]);he.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),he.exit().remove(),he.selectAll("text").call(kn.textPointStyle,Y,t)}function h(A){var S=A[0].trace,D=S.type==="waterfall";if(A[0]._distinct&&D){var E=A[0].trace[A[0].dir].marker;return A[0].mc=E.color,A[0].mlw=E.line.width,A[0].mlc=E.line.color,y(A,this,"waterfall")}var R=[];S.visible&&D&&(R=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=Ua.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(R);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(I){var H=Ua.select(this),U=S[I[0]].marker,W=u(void 0,U.line,Vu,fs);H.attr("d",I[1]).style("stroke-width",W+"px").call(Yn.fill,U.color),W&&H.call(Yn.stroke,U.line.color)})}function d(A){y(A,this)}function p(A){y(A,this,"funnel")}function y(A,S,D){var E=A[0].trace,R=E.marker||{},N=R.line||{},I=R.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",H=D?E.visible&&E.type===D:G2.traceIs(E,"bar"),U=Ua.select(S).select("g.legendpoints").selectAll("path.legend"+D).data(H?[A]:[]);U.enter().append("path").classed("legend"+D,!0).attr("d",I).attr("transform",s),U.exit().remove(),U.each(function(W){var Y=Ua.select(this),O=W[0],G=u(O.mlw,R.line,Vu,fs);Y.style("stroke-width",G+"px");var Z=O.mcc;if(!a._inHover&&"mc"in O){var $=U2(R),te=$.mid;te===void 0&&(te=($.max+$.min)/2),Z=kn.tryColorscale(R,"")(te)}var le=Z||O.mc||R.color,fe=R.pattern,he=kn.getPatternAttr,Q=fe&&(he(fe.shape,0,"")||he(fe.path,0,""));if(Q){var qe=he(fe.bgcolor,0,null),ve=he(fe.fgcolor,0,null),Ae=fe.fgopacity,se=QA(fe.size,8,10),be=QA(fe.solidity,.5,1),V="legend-"+E.uid;Y.call(kn.pattern,"legend",t,V,Q,se,be,Z,fe.fillmode,qe,ve,Ae)}else Y.call(Yn.fill,le);G&&Yn.stroke(Y,O.mlc||N.color)})}function m(A){var S=A[0].trace,D=Ua.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&G2.traceIs(S,"box-violin")?[A]:[]);D.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.each(function(){var E=Ua.select(this);if((S.boxpoints==="all"||S.points==="all")&&Yn.opacity(S.fillcolor)===0&&Yn.opacity((S.line||{}).color)===0){var R=za.minExtend(S,{marker:{size:i?JA:za.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(kn.pointStyle,R,t)}else{var N=u(void 0,S.line,Vu,fs);E.style("stroke-width",N+"px").call(Yn.fill,S.fillcolor),N&&Yn.stroke(E,S.line.color)}})}function b(A){var S=A[0].trace,D=Ua.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[A,A]:[]);D.enter().append("path").classed("legendcandle",!0).attr("d",function(E,R){return R?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var N=Ua.select(this),I=S[R?"increasing":"decreasing"],H=u(void 0,I.line,Vu,fs);N.style("stroke-width",H+"px").call(Yn.fill,I.fillcolor),H&&Yn.stroke(N,I.line.color)})}function _(A){var S=A[0].trace,D=Ua.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[A,A]:[]);D.enter().append("path").classed("legendohlc",!0).attr("d",function(E,R){return R?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var N=Ua.select(this),I=S[R?"increasing":"decreasing"],H=u(void 0,I.line,Vu,fs);N.style("fill","none").call(kn.dashLine,I.line.dash,H),H&&Yn.stroke(N,I.line.color)})}function w(A){M(A,this,"pie")}function x(A){M(A,this,"funnelarea")}function M(A,S,D){var E=A[0],R=E.trace,N=D?R.visible&&R.type===D:G2.traceIs(R,D),I=Ua.select(S).select("g.legendpoints").selectAll("path.legend"+D).data(N?[A]:[]);if(I.enter().append("path").classed("legend"+D,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),I.exit().remove(),I.size()){var H=R.marker||{},U=u(Mee(H.line.width,E.pts),H.line,Vu,fs),W="pieLike",Y=za.minExtend(R,{marker:{line:{width:U}}},W),O=za.minExtend(E,{trace:Y},W);Tee(I,O,Y,t)}}function k(A){var S=A[0].trace,D,E=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":E=[["M-15,-2V4H15V-2Z"]],D=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":E=[["M-6,-6V6H6V-6Z"]],D=!0;break;case"densitymapbox":case"densitymap":E=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],D="radial";break;case"cone":E=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],D=!1;break;case"streamtube":E=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],D=!1;break;case"surface":E=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],D=!0;break;case"mesh3d":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!1;break;case"volume":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!0;break;case"isosurface":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],D=!1;break}var R=Ua.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(E);R.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N,I){var H=Ua.select(this),U=U2(S),W=U.colorscale,Y=U.reversescale,O=function(te){if(te.size()){var le="legendfill-"+S.uid;kn.gradient(te,t,le,V2(Y,D==="radial"),W,"fill")}},G;if(W){if(!D){var $=W.length;G=I===0?W[Y?$-1:0][1]:I===1?W[Y?0:$-1][1]:W[Math.floor(($-1)/2)][1]}}else{var Z=S.vertexcolor||S.facecolor||S.color;G=za.isArrayOrTypedArray(Z)?Z[I]||Z[0]:Z}H.attr("d",N[0]),G?H.call(Yn.fill,G):H.call(O)})}};function V2(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function KA(e){var r=e[0].trace,t=r.contours,a=Nd.hasLines(r),n=Nd.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function QA(e,r,t){return e&&za.isArrayOrTypedArray(e)?r:e>t?t:e}});var $2=B((Vge,uk)=>{"use strict";var un=kr(),Xt=Pe(),Z2=Pt(),Zu=yr(),ek=Pc(),X2=mi(),Zt=Yr(),Id=xr(),cs=da(),rk=FA(),jt=B2(),J2=Pa(),ok=J2.LINE_SPACING,Xu=J2.FROM_TL,tk=J2.FROM_BR,ak=BA(),qee=W2(),nk=Rd(),Wu=1,Cee=/^legend[0-9]*$/;uk.exports=function(r,t){if(t)ik(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=un.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(Cee)&&n.indexOf(c)===-1&&u.remove()});for(var l=0;l1)}var p=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),Z2.autoMargin(e,n);var y=Xt.ensureSingle(l,"g",n,function(S){o||S.attr("pointer-events","all")}),m=Xt.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),b=Xt.ensureSingle(y,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});b.call(Id.stroke,t.bordercolor).call(Id.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var _=Xt.ensureSingle(y,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var x;w.text?(x=Xt.ensureSingle(_,"text",n+"titletext"),x.attr("text-anchor","start").call(Zt.font,w.font).text(w.text),Hd(x,_,e,t,Wu)):_.selectAll("."+n+"titletext").remove();var M=Xt.ensureSingle(y,"rect","scrollbar",function(S){S.attr(jt.scrollBarEnterAttrs).call(Id.fill,jt.scrollBarColor)}),k=_.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var A=k.selectAll("g.traces").data(Xt.identity);A.enter().append("g").attr("class","traces"),A.exit().remove(),A.style("opacity",function(S){var D=S[0].trace;return Zu.traceIs(D,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:D.visible==="legendonly"?.5:1}).each(function(){un.select(this).call(Lee,e,t)}).call(qee,e,t).each(function(){o||un.select(this).call(Dee,e,n)}),Xt.syncOrAsync([Z2.previousPromises,function(){return Ree(e,k,A,t)},function(){var S=a._size,D=t.borderwidth,E=t.xref==="paper",R=t.yref==="paper";if(w.text&&See(x,t,D),!o){var N,I;E?N=S.l+S.w*t.x-Xu[Od(t)]*t._width:N=a.width*t.x-Xu[Od(t)]*t._width,R?I=S.t+S.h*(1-t.y)-Xu[Bd(t)]*t._effHeight:I=a.height*(1-t.y)-Xu[Bd(t)]*t._effHeight;var H=zee(e,n,N,I);if(H)return;if(a.margin.autoexpand){var U=N,W=I;N=E?Xt.constrain(N,0,a.width-t._width):U,I=R?Xt.constrain(I,0,a.height-t._effHeight):W,N!==U&&Xt.log("Constrain "+n+".x to make legend fit inside graph"),I!==W&&Xt.log("Constrain "+n+".y to make legend fit inside graph")}Zt.setTranslate(y,N,I)}if(M.on(".drag",null),y.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var Y=t._effHeight;o&&(Y=t._height),b.attr({width:t._width-D,height:Y-D,x:D/2,y:D/2}),Zt.setTranslate(_,0,0),m.select("rect").attr({width:t._width-2*D,height:Y-2*D,x:D,y:D}),Zt.setClipUrl(_,i,e),Zt.setRect(M,0,0,0,0),delete t._scrollY}else{var O=Math.max(jt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),G=t._effHeight-O-2*jt.scrollBarMargin,Z=t._height-t._effHeight,$=G/Z,te=Math.min(t._scrollY||0,Z);b.attr({width:t._width-2*D+jt.scrollBarWidth+jt.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),m.select("rect").attr({width:t._width-2*D+jt.scrollBarWidth+jt.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+te}),Zt.setClipUrl(_,i,e),se(te,O,$),y.on("wheel",function(){te=Xt.constrain(t._scrollY+un.event.deltaY/G*Z,0,Z),se(te,O,$),te!==0&&te!==Z&&un.event.preventDefault()});var le,fe,he,Q=function(ge,ke,xe){var ze=(xe-ke)/$+ge;return Xt.constrain(ze,0,Z)},qe=function(ge,ke,xe){var ze=(ke-xe)/$+ge;return Xt.constrain(ze,0,Z)},ve=un.behavior.drag().on("dragstart",function(){var ge=un.event.sourceEvent;ge.type==="touchstart"?le=ge.changedTouches[0].clientY:le=ge.clientY,he=te}).on("drag",function(){var ge=un.event.sourceEvent;ge.buttons===2||ge.ctrlKey||(ge.type==="touchmove"?fe=ge.changedTouches[0].clientY:fe=ge.clientY,te=Q(he,le,fe),se(te,O,$))});M.call(ve);var Ae=un.behavior.drag().on("dragstart",function(){var ge=un.event.sourceEvent;ge.type==="touchstart"&&(le=ge.changedTouches[0].clientY,he=te)}).on("drag",function(){var ge=un.event.sourceEvent;ge.type==="touchmove"&&(fe=ge.changedTouches[0].clientY,te=qe(he,le,fe),se(te,O,$))});_.call(Ae)}function se(ge,ke,xe){t._scrollY=e._fullLayout[n]._scrollY=ge,Zt.setTranslate(_,0,-ge),Zt.setRect(M,t._width,jt.scrollBarMargin+ge*xe,jt.scrollBarWidth,ke),m.select("rect").attr("y",D+ge)}if(e._context.edits.legendPosition){var be,V,j,X;y.classed("cursor-move",!0),X2.init({element:y.node(),gd:e,prepFn:function(ge){if(ge.target!==M.node()){var ke=Zt.getTranslate(y);j=ke.x,X=ke.y}},moveFn:function(ge,ke){if(j!==void 0&&X!==void 0){var xe=j+ge,ze=X+ke;Zt.setTranslate(y,xe,ze),be=X2.align(xe,t._width,S.l,S.l+S.w,t.xanchor),V=X2.align(ze+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(be!==void 0&&V!==void 0){var ge={};ge[n+".x"]=be,ge[n+".y"]=V,Zu.call("_guiRelayout",e,ge)}},clickFn:function(ge,ke){var xe=l.selectAll("g.traces").filter(function(){var ze=this.getBoundingClientRect();return ke.clientX>=ze.left&&ke.clientX<=ze.right&&ke.clientY>=ze.top&&ke.clientY<=ze.bottom});xe.size()>0&&sk(e,y,xe,ge,ke)}})}}],e)}}function Fd(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function sk(e,r,t,a,n){var i=t.data()[0][0].trace,l={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(l.group=i._group),Zu.traceIs(i,"pie-like")&&(l.label=t.datum()[0].label);var o=ek.triggerHandler(e,"plotly_legendclick",l);if(a===1){if(o===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&rk(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=ek.triggerHandler(e,"plotly_legenddoubleclick",l);s!==!1&&o!==!1&&rk(t,e,a)}}function Lee(e,r,t){var a=Yd(t),n=e.data()[0][0],i=n.trace,l=Zu.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Xt.templateString(u,i._meta))));var c=Xt.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Zt.font,f).text(o?lk(u,s):u);var h=t.indentation+t.itemwidth+jt.itemGap*2;cs.positionText(c,h,0),o?c.call(cs.makeEditable,{gd:r,text:u}).call(Hd,e,r,t).on("edit",function(d){this.text(lk(d,s)).call(Hd,e,r,t);var p=n.trace._fullInput||{},y={};return y.name=d,p._isShape?Zu.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):Zu.call("_guiRestyle",r,y,i.index)}):Hd(c,e,r,t)}function lk(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function Dee(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Xt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(Id.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),sk(r,o,e,i,un.event)}}))}function Hd(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),cs.convertToTspans(e,t,function(){Eee(r,t,a,n)})}function Eee(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),l=i.node(),o=Yd(t);t||(t=r._fullLayout[o]);var s=t.borderwidth,u;a===Wu?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var f=u.size*ok,c,h;if(l){var d=Zt.bBox(l);c=d.height,h=d.width,a===Wu?Zt.setTranslate(i,s,s+c*.75):Zt.setTranslate(i,0,c*.25)}else{var p="."+o+(a===Wu?"title":"")+"text",y=e.select(p),m=cs.lineCount(y),b=y.node();if(c=f*m,h=b?Zt.bBox(b).width:0,a===Wu)t.title.side==="left"&&(h+=jt.itemGap*2),cs.positionText(y,s+jt.titlePad,s+f);else{var _=jt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(_=jt.itemGap,h-=t.indentation+t.itemwidth),cs.positionText(y,_,-f*((m-1)/2-.3))}}a===Wu?(t._titleWidth=h,t._titleHeight=c):(n.lineHeight=f,n.height=Math.max(c,16)+3,n.width=h)}function Pee(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function Ree(e,r,t,a){var n=e._fullLayout,i=Yd(a);a||(a=n[i]);var l=n._size,o=nk.isVertical(a),s=nk.isGrouped(a),u=a.entrywidthmode==="fraction",f=a.borderwidth,c=2*f,h=jt.itemGap,d=a.indentation+a.itemwidth+h*2,p=2*(f+h),y=Bd(a),m=a.y<0||a.y===0&&y==="top",b=a.y>1||a.y===1&&y==="bottom",_=a.tracegroupgap,w={};let{orientation:x,yref:M}=a,{maxheight:k}=a,A=m||b||x!=="v"||M!=="paper";k||(k=A?.5:1);let S=A?n.height:l.h;a._maxHeight=Math.max(k>1?k:k*S,30);var D=0;a._width=0,a._height=0;var E=Pee(a);if(o)t.each(function(se){var be=se[0].height;Zt.setTranslate(this,f+E[0],f+E[1]+a._height+be/2+h),a._height+=be,a._width=Math.max(a._width,se[0].width)}),D=d+a._width,a._width+=h+d+c,a._height+=p,s&&(r.each(function(se,be){Zt.setTranslate(this,0,be*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=Od(a),N=a.x<0||a.x===0&&R==="right",I=a.x>1||a.x===1&&R==="left",H=b||m,U=n.width/2;a._maxWidth=Math.max(N?H&&R==="left"?l.l+l.w:U:I?H&&R==="right"?l.r+l.w:U:l.w,2*d);var W=0,Y=0;t.each(function(se){var be=Fd(se,a,d);W=Math.max(W,be),Y+=be}),D=null;var O=0;if(s){var G=0,Z=0,$=0;r.each(function(){var se=0,be=0;un.select(this).selectAll("g.traces").each(function(j){var X=Fd(j,a,d),ge=j[0].height;Zt.setTranslate(this,E[0],E[1]+f+h+ge/2+be),be+=ge,se=Math.max(se,X),w[j[0].trace.legendgroup]=se});var V=se+h;Z>0&&V+f+Z>a._maxWidth?(O=Math.max(O,Z),Z=0,$+=G+_,G=be):G=Math.max(G,be),Zt.setTranslate(this,Z,$),Z+=V}),a._width=Math.max(O,Z)+f,a._height=$+G+p}else{var te=t.size(),le=Y+c+(te-1)*h=a._maxWidth&&(O=Math.max(O,qe),he=0,Q+=fe,a._height+=fe,fe=0),Zt.setTranslate(this,E[0]+f+he,E[1]+f+Q+be/2+h),qe=he+V+h,he+=j,fe=Math.max(fe,be)}),le?(a._width=he+c,a._height=fe+p):(a._width=Math.max(O,qe)+c,a._height+=fe+p)}}a._width=Math.ceil(Math.max(a._width+E[0],a._titleWidth+2*(f+jt.titlePad))),a._height=Math.ceil(Math.max(a._height+E[1],a._titleHeight+2*(f+jt.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ve=e._context.edits,Ae=ve.legendText||ve.legendPosition;t.each(function(se){var be=un.select(this).select("."+i+"toggle"),V=se[0].height,j=se[0].trace.legendgroup,X=Fd(se,a,d);s&&j!==""&&(X=w[j]);var ge=Ae?d:D||X;!o&&!u&&(ge+=h/2),Zt.setRect(be,0,-V/2,ge,V)})}function zee(e,r,t,a){var n=e._fullLayout,i=n[r],l=Od(i),o=Bd(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return Z2.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Xu[l],r:i._width*tk[l],b:i._effHeight*tk[o],t:i._effHeight*Xu[o]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=h[c]:e._fullLayout._reservedMargin[r][f]=h[f]}function Od(e){return Xt.isRightAnchor(e)?"right":Xt.isCenterAnchor(e)?"center":"left"}function Bd(e){return Xt.isBottomAnchor(e)?"bottom":Xt.isMiddleAnchor(e)?"middle":"top"}function Yd(e){return e._id||"legend"}});var e3=B(j2=>{"use strict";var vs=kr(),hl=zr(),fk=zn(),Ct=Pe(),Nee=Ct.pushUnique,K2=Ct.strTranslate,Fee=Ct.strRotate,Iee=Pc(),Gn=da(),Hee=PA(),Ui=Yr(),la=xr(),Gd=mi(),Vi=Jr(),Oee=Aa().zindexSeparator,$u=yr(),yi=Hi(),hs=xc(),Bee=I2(),Yee=$2(),gk=hs.YANGLE,Q2=Math.PI*gk/180,Gee=1/Math.sin(Q2),Uee=Math.cos(Q2),Vee=Math.sin(Q2),xt=hs.HOVERARROWSIZE,Or=hs.HOVERTEXTPAD,ck={box:!0,ohlc:!0,violin:!0,candlestick:!0},Wee={scatter:!0,scattergl:!0,splom:!0};function vk(e,r){return e.distance-r.distance}j2.hover=function(r,t,a,n){r=Ct.getGraphDiv(r);var i=t.target;Ct.throttle(r._fullLayout._uid+hs.HOVERID,hs.HOVERMINTIME,function(){Xee(r,t,a,n,i)})};j2.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=Tk(n),l=Mk(n),o=r.map(function(m){var b=m._x0||m.x0||m.x||0,_=m._x1||m.x1||m.x||0,w=m._y0||m.y0||m.y||0,x=m._y1||m.y1||m.y||0,M=m.eventData;if(M){var k=Math.min(b,_),A=Math.max(b,_),S=Math.min(w,x),D=Math.max(w,x),E=m.trace;if($u.traceIs(E,"gl3d")){var R=n._fullLayout[E.scene]._scene.container,N=R.offsetLeft,I=R.offsetTop;k+=N,A+=N,S+=I,D+=I}M.bbox={x0:k+l,x1:A+l,y0:S+i,y1:D+i},t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:m.color||la.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:M}}),s=!1,u=bk(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||la.background,container:vs.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,h=0,d=0;f.sort(function(m,b){return m.y0-b.y0}).each(function(m,b){var _=m.y0-m.by/2;_-cA[0]._length||X<0||X>S[0]._length)return Gd.unhoverRaw(e,r)}if(r.pointerX=j+A[0]._offset,r.pointerY=X+S[0]._offset,"xval"in r?W=yi.flat(i,r.xval):W=yi.p2c(A,j),"yval"in r?Y=yi.flat(i,r.yval):Y=yi.p2c(S,X),!hl(W[0])||!hl(Y[0]))return Ct.warn("Fx.hover failed",r,e),Gd.unhoverRaw(e,r)}var xe=1/0;function ze(gr,ft){for(G=0;Gve&&(H.splice(0,ve),xe=H[0].distance),c&&I!==0&&H.length===0){qe.distance=I,qe.index=!1;var Tt=$._module.hoverPoints(qe,he,Q,"closest",{hoverLayer:o._hoverlayer});if(Tt&&(Tt=Tt.filter(function(it){return it.spikeDistance<=I})),Tt&&Tt.length){var Ha,ca=Tt.filter(function(it){return it.xa.showspikes&&it.xa.spikesnap!=="hovered data"});if(ca.length){var ai=ca[0];hl(ai.x0)&&hl(ai.y0)&&(Ha=Ee(ai),(!Ae.vLinePoint||Ae.vLinePoint.spikeDistance>Ha.spikeDistance)&&(Ae.vLinePoint=Ha))}var ni=Tt.filter(function(it){return it.ya.showspikes&&it.ya.spikesnap!=="hovered data"});if(ni.length){var ta=ni[0];hl(ta.x0)&&hl(ta.y0)&&(Ha=Ee(ta),(!Ae.hLinePoint||Ae.hLinePoint.spikeDistance>Ha.spikeDistance)&&(Ae.hLinePoint=Ha))}}}}}ze();function Fe(gr,ft,Wr){for(var wt=null,Et=1/0,ct,Tt=0;Tt0&&Math.abs(gr.distance)Ce-1;$e--)vr(H[$e]);H=Ue,De()}var Re=e._hoverdata,ne=[],ce=Tk(e),Le=Mk(e);for(O=0;O1||H.length>1)||h==="closest"&&se&&H.length>1,ga=la.combine(o.plot_bgcolor||la.background,o.paper_bgcolor),xa=bk(H,{gd:e,hovermode:h,rotateLabels:Dt,bgColor:ga,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),Gt=xa.hoverLabels;if(yi.isUnifiedHover(h)||(Jee(Gt,Dt,o,xa.commonLabelBoundingBox),wk(Gt,Dt,o._invScaleX,o._invScaleY)),n&&n.tagName){var $a=$u.getComponentMethod("annotations","hasClickToShow")(e,ne);Hee(vs.select(n),$a?"pointer":"")}!n||a||!Qee(e,r,Re)||(Re&&e.emit("plotly_unhover",{event:r,points:Re}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:A,yaxes:S,xvals:W,yvals:Y}))}function xk(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Zee=/([\s\S]*)<\/extra>/;function bk(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||hs.HOVERFONT,c=r.fontSize||hs.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,_=e[0],w=_.xa,x=_.ya,M=n.charAt(0),k=M+"Label",A=_[k];if(A===void 0&&w.type==="multicategory")for(var S=0;Sa.width-Le&&(Se=a.width-Le),Ce.attr("d","M"+(Re-Se)+",0L"+(Re-Se+xt)+","+ce+xt+"H"+Le+"v"+ce+(Or*2+$e.height)+"H"+-Le+"V"+ce+xt+"H"+(Re-Se-xt)+"Z"),Re=Se,G.minX=Re-Le,G.maxX=Re+Le,w.side==="top"?(G.minY=ne-(Or*2+$e.height),G.maxY=ne-Or):(G.minY=ne+Or,G.maxY=ne+(Or*2+$e.height))}else{var or,lr,ar;x.side==="right"?(or="start",lr=1,ar="",Re=w._offset+w._length):(or="end",lr=-1,ar="-",Re=w._offset),ne=x._offset+(_.y0+_.y1)/2,Ie.attr("text-anchor",or),Ce.attr("d","M0,0L"+ar+xt+","+xt+"V"+(Or+$e.height/2)+"h"+ar+(Or*2+$e.width)+"V-"+(Or+$e.height/2)+"H"+ar+xt+"V-"+xt+"Z"),G.minY=ne-(Or+$e.height/2),G.maxY=ne+(Or+$e.height/2),x.side==="right"?(G.minX=Re+xt,G.maxX=Re+xt+(Or*2+$e.width)):(G.minX=Re-xt-(Or*2+$e.width),G.maxX=Re-xt);var Ar=$e.height/2,Br=E-$e.top-Ar,tt="clip"+a._uid+"commonlabel"+x._id,jr;if(Re<$e.width+2*Or+xt){jr="M-"+(xt+Or)+"-"+Ar+"h-"+($e.width-Or)+"V"+Ar+"h"+($e.width-Or)+"Z";var ra=$e.width-Re+Or;Gn.positionText(Ie,ra,Br),or==="end"&&Ie.selectAll("tspan").each(function(){var _t=vs.select(this),Dt=Ui.tester.append("text").text(_t.text()).call(Ui.font,vr),ga=Ju(t,Dt.node());Math.round(ga.width)=0?Ze=He:Oe+xe=0?Ze=Oe:ie+xe=0?cr=Ge:De+ze=0?cr=De:Me+ze=0,(oe.idealAlign==="top"||!_t)&&Dt?(ar-=Br/2,oe.anchor="end"):_t?(ar+=Br/2,oe.anchor="start"):oe.anchor="middle",oe.crossPos=ar;else{if(oe.pos=ar,_t=lr+Ar/2+It<=R,Dt=lr-Ar/2-It>=0,(oe.idealAlign==="left"||!_t)&&Dt)lr-=Ar/2,oe.anchor="end";else if(_t)lr+=Ar/2,oe.anchor="start";else{oe.anchor="middle";var ga=It/2,xa=lr+ga-R,Gt=lr-ga;xa>0&&(lr-=xa),Gt<0&&(lr+=-Gt)}oe.crossPos=lr}ne.attr("text-anchor",oe.anchor),Le&&ce.attr("text-anchor",oe.anchor),Ce.attr("transform",K2(lr,ar)+(i?Fee(gk):""))}),{hoverLabels:fr,commonLabelBoundingBox:G}}function hk(e,r,t,a,n,i){var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ct.templateString(e.name,e.trace._meta)),l=mk(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l);var f=e.hovertemplate||!1;if(f){var c=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(c[s+"other"]=c[s+"Val"],c[s+"otherLabel"]=c[s+"Label"]),o=Ct.hovertemplateString(f,c,a._d3locale,e.eventData[0]||{},e.trace._meta),o=o.replace(Zee,function(h,d){return l=mk(d,e.nameLength),""})}return[o,l]}function Jee(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,c=a.minX,h=a.maxX,d=a.minY,p=a.maxY,y=function(W){return W*t._invScaleX},m=function(W){return W*t._invScaleY};e.each(function(W){var Y=W[n],O=W[i],G=Y._id.charAt(0)==="x",Z=Y.range;f===0&&Z&&Z[0]>Z[1]!==G&&(o=-1);var $=0,te=G?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var le=_k(W,r),fe=W.anchor,he=fe==="end"?-1:1,Q,qe;if(fe==="middle")Q=W.crossPos+(G?m(le.y-W.by/2):y(W.bx/2+W.tx2width/2)),qe=Q+(G?m(W.by):y(W.bx));else if(G)Q=W.crossPos+m(xt+le.y)-m(W.by/2-xt),qe=Q+m(W.by);else{var ve=y(he*xt+le.x),Ae=ve+y(he*W.bx);Q=W.crossPos+Math.min(ve,Ae),qe=W.crossPos+Math.max(ve,Ae)}G?d!==void 0&&p!==void 0&&Math.min(qe,p)-Math.max(Q,d)>1&&(O.side==="left"?($=O._mainLinePosition,te=t.width):te=O._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(qe,h)-Math.max(Q,c)>1&&(O.side==="top"?($=O._mainLinePosition,te=t.height):te=O._mainLinePosition)}u[f++]=[{datum:W,traceIndex:W.trace.index,dp:0,pos:W.pos,posref:W.posref,size:W.by*(G?Gee:1)/2,pmin:$,pmax:te}]}),u.sort(function(W,Y){return W[0].posref-Y[0].posref||o*(Y[0].traceIndex-W[0].traceIndex)});var b,_,w,x,M,k,A;function S(W){var Y=W[0],O=W[W.length-1];if(_=Y.pmin-Y.pos-Y.dp+Y.size,w=O.pos+O.dp+O.size-Y.pmax,_>.01){for(M=W.length-1;M>=0;M--)W[M].dp+=_;b=!1}if(!(w<.01)){if(_<-.01){for(M=W.length-1;M>=0;M--)W[M].dp-=w;b=!1}if(b){var G=0;for(x=0;xY.pmax&&G++;for(x=W.length-1;x>=0&&!(G<=0);x--)k=W[x],k.pos>Y.pmax-1&&(k.del=!0,G--);for(x=0;x=0;M--)W[M].dp-=w;for(x=W.length-1;x>=0&&!(G<=0);x--)k=W[x],k.pos+k.dp+k.size>Y.pmax&&(k.del=!0,G--)}}}for(;!b&&l<=s;){for(l++,b=!0,x=0;x.01){for(M=E.length-1;M>=0;M--)E[M].dp+=_;for(D.push.apply(D,E),u.splice(x+1,1),A=0,M=D.length-1;M>=0;M--)A+=D[M].dp;for(w=A/D.length,M=D.length-1;M>=0;M--)D[M].dp-=w;b=!1}else x++}u.forEach(S)}for(x=u.length-1;x>=0;x--){var I=u[x];for(M=I.length-1;M>=0;M--){var H=I[M],U=H.datum;U.offset=H.dp,U.del=H.del}}}function _k(e,r){var t=0,a=e.offset;return r&&(a*=-Vee,t=e.offset*Uee),{x:t,y:a}}function $ee(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(xt+Or),a=t+r*(e.txwidth+Or),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Or),{alignShift:r,textShiftX:t,text2ShiftX:a}}function wk(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=vs.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,c=$ee(l),h=_k(l,r),d=h.x,p=h.y,y=u==="middle",m="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,b;y?b="M-"+n(l.bx/2+l.tx2width/2)+","+i(p-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":m?b="M0,0L"+n(f*xt+d)+","+i(xt+p)+"v"+i(l.by/2-xt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*xt+d)+"V"+i(p-xt)+"Z":b="M"+n(f*xt+d)+","+i(p-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",b);var _=d+c.textShiftX,w=p+l.ty0-l.by/2+Or,x=l.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),_=y?-l.bx/2-l.tx2width/2+Or:-l.bx-Or):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),_=y?l.bx/2-l.tx2width/2-Or:l.bx+Or)),s.call(Gn.positionText,n(_),i(w)),l.tx2width&&(o.select("text.name").call(Gn.positionText,n(c.text2ShiftX+c.alignShift*Or+d),i(p+l.ty0-l.by/2+Or)),o.select("rect").call(Ui.setRect,n(c.text2ShiftX+(c.alignShift-1)*l.tx2width/2+d),i(p-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function Kee(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(h){return h||hl(h)&&h===0}var o=Array.isArray(t)?function(h,d){var p=Ct.castOption(n,t,h);return l(p)?p:Ct.extractOption({},a,"",d)}:function(h,d){return Ct.extractOption(i,a,h,d)};function s(h,d,p){var y=o(d,p);l(y)&&(e[h]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ct.constrain(e.x0,0,e.xa._length),e.x1=Ct.constrain(e.x1,0,e.xa._length),e.y0=Ct.constrain(e.y0,0,e.ya._length),e.y1=Ct.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Vi.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Vi.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Vi.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Vi.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Vi.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Vi.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function dk(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var c=la.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var h=r.hLinePoint,d,p;u=h&&h.xa,f=h&&h.ya;var y=f.spikesnap;y==="cursor"?(d=l.pointerX,p=l.pointerY):(d=u._offset+h.x,p=f._offset+h.y);var m=fk.readability(h.color,c)<1.5?la.contrast(c):h.color,b=f.spikemode,_=f.spikethickness,w=f.spikecolor||m,x=Vi.getPxPosition(e,f),M,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(M=x,k=d),b.indexOf("across")!==-1){var A=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(A=Math.min(A,f.position),S=Math.max(S,f.position)),M=i.l+A*i.w,k=i.l+S*i.w}a.insert("line",":first-child").attr({x1:M,x2:k,y1:p,y2:p,"stroke-width":_,stroke:w,"stroke-dasharray":Ui.dashStyle(f.spikedash,_)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:k,y1:p,y2:p,"stroke-width":_+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?_:-_),cy:p,r:_,fill:w}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,E,R;u=D&&D.xa,f=D&&D.ya;var N=u.spikesnap;N==="cursor"?(E=l.pointerX,R=l.pointerY):(E=u._offset+D.x,R=f._offset+D.y);var I=fk.readability(D.color,c)<1.5?la.contrast(c):D.color,H=u.spikemode,U=u.spikethickness,W=u.spikecolor||I,Y=Vi.getPxPosition(e,u),O,G;if(H.indexOf("toaxis")!==-1||H.indexOf("across")!==-1){if(H.indexOf("toaxis")!==-1&&(O=Y,G=R),H.indexOf("across")!==-1){var Z=u._counterDomainMin,$=u._counterDomainMax;u.anchor==="free"&&(Z=Math.min(Z,u.position),$=Math.max($,u.position)),O=i.t+(1-$)*i.h,G=i.t+(1-Z)*i.h}a.insert("line",":first-child").attr({x1:E,x2:E,y1:O,y2:G,"stroke-width":U,stroke:W,"stroke-dasharray":Ui.dashStyle(u.spikedash,U)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:O,y2:G,"stroke-width":U+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}H.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:Y-(u.side!=="top"?U:-U),r:U,fill:W}).classed("spikeline",!0)}}}function Qee(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function pk(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function mk(e,r){return Gn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function jee(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;l{"use strict";var ere=Pe(),rre=xr(),tre=Hi().isUnifiedHover;Ak.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&tre(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=rre.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),ere.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var qk=B((Zge,kk)=>{"use strict";var are=Pe(),nre=Ud(),ire=du();kk.exports=function(r,t){function a(n,i){return are.coerce(r,t,ire,n,i)}nre(r,t,a)}});var Lk=B((Jge,Sk)=>{"use strict";var Ck=Pe(),lre=wc(),ore=Ud();Sk.exports=function(r,t,a,n){function i(o,s){return Ck.coerce(r,t,lre,o,s)}var l=Ck.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),ore(r,t,i,l)}});var r3=B(($ge,Dk)=>{"use strict";var sre=Pe(),ure=du();Dk.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:sre.coerce(r,t,ure,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var Rk=B((Kge,Pk)=>{"use strict";var Ek=Pe(),fre=du(),cre=r3(),vre=Ud();Pk.exports=function(r,t){function a(f,c){return Ek.coerce(r,t,fre,f,c)}var n=cre(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("mapbox"),o=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o||s)&&u===1||(l||o)&&s&&u===2)&&(t.dragmode="pan"),vre(r,t,a),Ek.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var Fk=B((Qge,Nk)=>{"use strict";var t3=Pe(),zk=yr();Nk.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return t3.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var dre=yr(),pre=e3().hover;Ik.exports=function(r,t,a){var n=dre.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&pre(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var gi=B((e2e,Yk)=>{"use strict";var mre=kr(),Vd=Pe(),yre=mi(),rv=Hi(),Ok=du(),Bk=e3();Yk.exports={moduleType:"component",name:"fx",constants:xc(),schema:{layout:Ok},attributes:wc(),layoutAttributes:Ok,supplyLayoutGlobalDefaults:qk(),supplyDefaults:Lk(),supplyLayoutDefaults:Rk(),calc:Fk(),getDistanceFunction:rv.getDistanceFunction,getClosest:rv.getClosest,inbox:rv.inbox,quadrature:rv.quadrature,appendArrayPointValue:rv.appendArrayPointValue,castHoverOption:xre,castHoverinfo:bre,hover:Bk.hover,unhover:yre.unhover,loneHover:Bk.loneHover,loneUnhover:gre,click:Hk()};function gre(e){var r=Vd.isD3Selection(e)?e:mre.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function xre(e,r,t){return Vd.castOption(e,r,"hoverlabel."+t)}function bre(e,r,t){function a(n){return Vd.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return Vd.castOption(e,t,"hoverinfo",a)}});var Ku=B(dl=>{"use strict";dl.selectMode=function(e){return e==="lasso"||e==="select"};dl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};dl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};dl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};dl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};dl.selectingOrDrawing=function(e){return dl.freeMode(e)||dl.rectMode(e)}});var Wd=B((t2e,Gk)=>{"use strict";Gk.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var Xd=B((a2e,Uk)=>{"use strict";Uk.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var Jd=B((n2e,Vk)=>{"use strict";var Zd=32;Vk.exports={CIRCLE_SIDES:Zd,i000:0,i090:Zd/4,i180:Zd/2,i270:Zd/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var $d=B((i2e,Xk)=>{"use strict";var _re=Pe().strTranslate;function Wk(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function wre(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function Tre(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return Wk(e,t[r])}}function Mre(e){return _re(e.xaxis._offset,e.yaxis._offset)}Xk.exports={p2r:Wk,r2p:wre,axValue:Tre,getTransform:Mre}});var Ql=B(pl=>{"use strict";var Are=Vg(),$k=Jd(),Qu=$k.CIRCLE_SIDES,a3=$k.SQRT2,Kk=$d(),Zk=Kk.p2r,Jk=Kk.r2p,kre=[0,3,4,5,6,1,2],qre=[0,3,4,1,2];pl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var Qk=Ut(),aq=Ku(),Cre=aq.drawMode,Sre=aq.openMode,ju=Jd(),jk=ju.i000,eq=ju.i090,rq=ju.i180,tq=ju.i270,Lre=ju.cos45,Dre=ju.sin45,nq=$d(),Qd=nq.p2r,jl=nq.r2p,Ere=Ul(),Pre=Ere.clearOutline,jd=Ql(),Rre=jd.readPaths,zre=jd.writePaths,Nre=jd.ellipseOver,Fre=jd.fixDatesForPaths;function Ire(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!Cre(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var Hre=Ku(),Ore=Hre.selectMode,Bre=Ul(),Yre=Bre.clearOutline,n3=Ql(),Gre=n3.readPaths,Ure=n3.writePaths,Vre=n3.fixDatesForPaths;oq.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,c=t.dragmode,h=(i.layout||{}).selections||[];if(!Ore(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";sq.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var eo=B(pa=>{"use strict";var ds=av(),uq=Pe(),r1=Jr();pa.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};pa.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};pa.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};pa.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};pa.extractPathCoords=function(e,r,t){var a=[],n=e.match(ds.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.substr(1).match(ds.paramRE);if(!(!o||o.lengthd&&(y="X"),y});return u>d&&(p=p.replace(/[\s,]*X.*/,""),uq.log("Ignoring extra params in segment "+s)),f+p})}function nv(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var o3=B((c2e,hq)=>{"use strict";var Xre=Pe(),ef=Jr(),fq=da(),cq=Yr(),Zre=Ql().readPaths,l3=eo(),Jre=l3.getPathString,vq=_h(),$re=Pa().FROM_TL;hq.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=ef.getFromId(r,a.xref),s=ef.getFromId(r,a.yref);for(var u in vq){var f=vq[u](a,o,s);f!==void 0&&(l[u]=f)}}i=Xre.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,l)}else i=a.label.text;var c={"data-index":t},h=a.label.font,d={"data-notex":1},p=n.append("g").attr(c).classed("shape-label",!0),y=p.append("text").attr(d).classed("shape-label-text",!0).text(i),m,b,_,w;if(a.path){var x=Jre(r,a),M=Zre(x,r);m=1/0,_=1/0,b=-1/0,w=-1/0;for(var k=0;k=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function Qre(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,h=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,y=n.label.yanchor,m,b,_,w;if(f==="line"){o==="start"?(m=e,b=r):o==="end"?(m=t,b=a):(m=(e+t)/2,b=(r+a)/2),p==="auto"&&(o==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var jre=Pe(),ete=jre.strTranslate,dq=mi(),yq=Ku(),rte=yq.drawMode,gq=yq.selectMode,xq=yr(),pq=xr(),a1=Jd(),tte=a1.i000,ate=a1.i090,nte=a1.i180,ite=a1.i270,lte=Ul(),bq=lte.clearOutlineControllers,u3=Ql(),t1=u3.pointsOnRectangle,s3=u3.pointsOnEllipse,ote=u3.writePaths,ste=e1().newShapes,ute=e1().createShapeObj,fte=i3(),cte=o3();_q.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(s3(r[0])||a.hasText)&&o({redrawing:!0})}function o(Y){var O={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,O=ste(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,O=fte(t,a),i._fullLayout._reselect=!0),Object.keys(O).length&&xq.call((Y||{}).redrawing?"relayout":"_guiRelayout",i,O)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=rte(f),h=gq(f);(c||h)&&(i._fullLayout._outlining=!0),bq(i),t.attr("d",ote(r));var d,p,y,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=vte([],r);var _=u.append("g").attr("class","outline-controllers");E(_),W()}if(c&&a.hasText){var w=u.select(".label-temp"),x=ute(t,a,a.dragmode);cte(i,"label-temp",x,w)}function M(Y){y=+Y.srcElement.getAttribute("data-i"),m=+Y.srcElement.getAttribute("data-j"),d[y][m].moveFn=k}function k(Y,O){if(r.length){var G=b[y][m][1],Z=b[y][m][2],$=r[y],te=$.length;if(t1($)){var le=Y,fe=O;if(a.isActiveSelection){var he=mq($,m);he[1]===$[m][1]?fe=0:le=0}for(var Q=0;Q1&&!(Y.length===2&&Y[1][0]==="Z")&&(m===0&&(Y[0][0]="M"),r[y]=Y,l(),o())}}function D(Y,O){if(Y===2){y=+O.srcElement.getAttribute("data-i"),m=+O.srcElement.getAttribute("data-j");var G=r[y];!t1(G)&&!s3(G)&&S()}}function E(Y){d=[];for(var O=0;O{"use strict";var dte=kr(),qq=yr(),wq=Pe(),rf=Jr(),pte=Ql().readPaths,mte=n1(),l1=o3(),Cq=Ul().clearOutlineControllers,f3=xr(),v3=Yr(),yte=ot().arrayEditor,Tq=mi(),Mq=Kl(),ps=av(),fn=eo(),c3=fn.getPathString;Dq.exports={draw:h3,drawOne:Sq,eraseActiveShape:bte,drawLabel:l1};function h3(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;nl&&Ve>o&&!Fe.shiftKey?Tq.getCursor(Ge/Ne,1-De/Ve):"move";Mq(r,He),qe=He.split("-")[0]}}function be(Fe){i1(e)||(s&&(b=$(t.xanchor)),u&&(_=te(t.yanchor)),t.type==="path"?R=t.path:(d=s?t.x0:$(t.x0),p=u?t.y0:te(t.y0),y=s?t.x1:$(t.x1),m=u?t.y1:te(t.y1)),dm?(w=p,A="y0",x=m,S="y1"):(w=m,A="y1",x=p,S="y0"),se(Fe),ke(n,t),ze(r,t,e),Q.moveFn=qe==="move"?X:ge,Q.altKey=Fe.altKey)}function V(){i1(e)||(Mq(r),xe(n),Lq(r,e,t),qq.call("_guiRelayout",e,i.getUpdateObj()))}function j(){i1(e)||xe(n)}function X(Fe,Ee){if(t.type==="path"){var Ne=function(De){return De},Ve=Ne,Ge=Ne;s?h("xanchor",t.xanchor=le(b+Fe)):(Ve=function(He){return le($(He)+Fe)},I&&I.type==="date"&&(Ve=fn.encodeDate(Ve))),u?h("yanchor",t.yanchor=fe(_+Ee)):(Ge=function(He){return fe(te(He)+Ee)},U&&U.type==="date"&&(Ge=fn.encodeDate(Ge))),h("path",t.path=Aq(R,Ve,Ge))}else s?h("xanchor",t.xanchor=le(b+Fe)):(h("x0",t.x0=le(d+Fe)),h("x1",t.x1=le(y+Fe))),u?h("yanchor",t.yanchor=fe(_+Ee)):(h("y0",t.y0=fe(p+Ee)),h("y1",t.y1=fe(m+Ee)));r.attr("d",c3(e,t)),ke(n,t),l1(e,a,t,N)}function ge(Fe,Ee){if(c){var Ne=function(Je){return Je},Ve=Ne,Ge=Ne;s?h("xanchor",t.xanchor=le(b+Fe)):(Ve=function(je){return le($(je)+Fe)},I&&I.type==="date"&&(Ve=fn.encodeDate(Ve))),u?h("yanchor",t.yanchor=fe(_+Ee)):(Ge=function(je){return fe(te(je)+Ee)},U&&U.type==="date"&&(Ge=fn.encodeDate(Ge))),h("path",t.path=Aq(R,Ve,Ge))}else if(f){if(qe==="resize-over-start-point"){var De=d+Fe,He=u?p-Ee:p+Ee;h("x0",t.x0=s?De:le(De)),h("y0",t.y0=u?He:fe(He))}else if(qe==="resize-over-end-point"){var Oe=y+Fe,ie=u?m-Ee:m+Ee;h("x1",t.x1=s?Oe:le(Oe)),h("y1",t.y1=u?ie:fe(ie))}}else{var Me=function(Je){return qe.indexOf(Je)!==-1},Ze=Me("n"),cr=Me("s"),fr=Me("w"),oe=Me("e"),Ce=Ze?w+Ee:w,Ie=cr?x+Ee:x,We=fr?M+Fe:M,Ue=oe?k+Fe:k;u&&(Ze&&(Ce=w-Ee),cr&&(Ie=x-Ee)),(!u&&Ie-Ce>o||u&&Ce-Ie>o)&&(h(A,t[A]=u?Ce:fe(Ce)),h(S,t[S]=u?Ie:fe(Ie))),Ue-We>l&&(h(D,t[D]=s?We:le(We)),h(E,t[E]=s?Ue:le(Ue)))}r.attr("d",c3(e,t)),ke(n,t),l1(e,a,t,N)}function ke(Fe,Ee){(s||u)&&Ne();function Ne(){var Ve=Ee.type!=="path",Ge=Fe.selectAll(".visual-cue").data([0]),De=1;Ge.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var He=$(s?Ee.xanchor:wq.midRange(Ve?[Ee.x0,Ee.x1]:fn.extractPathCoords(Ee.path,ps.paramIsX))),Oe=te(u?Ee.yanchor:wq.midRange(Ve?[Ee.y0,Ee.y1]:fn.extractPathCoords(Ee.path,ps.paramIsY)));if(He=fn.roundPositionForSharpStrokeRendering(He,De),Oe=fn.roundPositionForSharpStrokeRendering(Oe,De),s&&u){var ie="M"+(He-1-De)+","+(Oe-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ge.attr("d",ie)}else if(s){var Me="M"+(He-1-De)+","+(Oe-9-De)+"v18 h2 v-18 Z";Ge.attr("d",Me)}else{var Ze="M"+(He-9-De)+","+(Oe-1-De)+"h18 v2 h-18 Z";Ge.attr("d",Ze)}}}function xe(Fe){Fe.selectAll(".visual-cue").remove()}function ze(Fe,Ee,Ne){var Ve=Ee.xref,Ge=Ee.yref,De=rf.getFromId(Ne,Ve),He=rf.getFromId(Ne,Ge),Oe="";Ve!=="paper"&&!De.autorange&&(Oe+=Ve),Ge!=="paper"&&!He.autorange&&(Oe+=Ge),v3.setClipUrl(Fe,Oe?"clip"+Ne._fullLayout._uid+Oe:null,Ne)}}function Aq(e,r,t){return e.replace(ps.segmentRE,function(a){var n=0,i=a.charAt(0),l=ps.paramIsX[i],o=ps.paramIsY[i],s=ps.numParams[i],u=a.substr(1).replace(ps.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function xte(e,r){if(o1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){kq(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=kq,h3(e)}}}function kq(e){if(o1(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(Cq(e),delete e._fullLayout._activeShapeIndex,h3(e))}}function bte(e){if(o1(e)){Cq(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Un=yr(),Eq=Pt(),Pq=Ut(),Ur=Xd(),_te=s1().eraseActiveShape,u1=Pe(),Ir=u1._,Vr=Oq.exports={};Vr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Ir(e,"Download plot as a PNG"):Ir(e,"Download plot")},icon:Ur.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};u1.notifier(Ir(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Un.call("downloadImage",e,t).then(function(a){u1.notifier(Ir(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){u1.notifier(Ir(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Vr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Ir(e,"Edit in Chart Studio")},icon:Ur.disk,click:function(e){Eq.sendDataToCloud(e)}};Vr.editInChartStudio={name:"editInChartStudio",title:function(e){return Ir(e,"Edit in Chart Studio")},icon:Ur.pencil,click:function(e){Eq.sendDataToCloud(e)}};Vr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ir(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ur.zoombox,click:Va};Vr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ir(e,"Pan")},attr:"dragmode",val:"pan",icon:Ur.pan,click:Va};Vr.select2d={name:"select2d",_cat:"select",title:function(e){return Ir(e,"Box Select")},attr:"dragmode",val:"select",icon:Ur.selectbox,click:Va};Vr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ir(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ur.lasso,click:Va};Vr.drawclosedpath={name:"drawclosedpath",title:function(e){return Ir(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ur.drawclosedpath,click:Va};Vr.drawopenpath={name:"drawopenpath",title:function(e){return Ir(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ur.drawopenpath,click:Va};Vr.drawline={name:"drawline",title:function(e){return Ir(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ur.drawline,click:Va};Vr.drawrect={name:"drawrect",title:function(e){return Ir(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ur.drawrect,click:Va};Vr.drawcircle={name:"drawcircle",title:function(e){return Ir(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ur.drawcircle,click:Va};Vr.eraseshape={name:"eraseshape",title:function(e){return Ir(e,"Erase active shape")},icon:Ur.eraseshape,click:_te};Vr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ir(e,"Zoom in")},attr:"zoom",val:"in",icon:Ur.zoom_plus,click:Va};Vr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ir(e,"Zoom out")},attr:"zoom",val:"out",icon:Ur.zoom_minus,click:Va};Vr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ir(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ur.autoscale,click:Va};Vr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ir(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ur.home,click:Va};Vr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ir(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ur.tooltip_basic,gravity:"ne",click:Va};Vr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ir(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ur.tooltip_compare,gravity:"ne",click:Va};function Va(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=Pq.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,p,y;for(f=0;f{"use strict";var Bq=m3(),Mte=Object.keys(Bq),Yq=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Gq=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Yq),af=[],Ate=function(e){if(Gq.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();af.indexOf(r)===-1&&af.push(r),af.indexOf(t)===-1&&af.push(t)}};Mte.forEach(function(e){Ate(Bq[e])});af.sort();Uq.exports={DRAW_MODES:Yq,backButtons:Gq,foreButtons:af}});var g3=B((y2e,Vq)=>{"use strict";var m2e=y3();Vq.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var Xq=B((g2e,Wq)=>{"use strict";var kte=Pe(),iv=xr(),qte=ot(),Cte=g3();Wq.exports=function(r,t){var a=r.modebar||{},n=qte.newContainer(t,"modebar");function i(o,s){return kte.coerce(a,n,Cte,o,s)}i("orientation"),i("bgcolor",iv.addOpacity(t.paper_bgcolor,.5));var l=iv.contrast(iv.rgb(t.modebar.bgcolor));i("color",iv.addOpacity(l,.3)),i("activecolor",iv.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var Kq=B((x2e,$q)=>{"use strict";var x3=kr(),Ste=zr(),c1=Pe(),Zq=Xd(),Lte=th().version,Dte=new DOMParser;function Jq(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Wi=Jq.prototype;Wi.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(c){c.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),c1.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Wi.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};Wi.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Wi.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&x3.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||Zq.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Wi.createIcon=function(e){var r=Ste(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=Dte.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Wi.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=x3.select(a),s=function(c,h){var d=r.modebar,p=c.querySelector(".icon path");p&&(h||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:c1.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Wi.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Rte=Ut(),Qq=wn(),b3=yr(),zte=Hi().isUnifiedHover,Nte=Kq(),v1=m3(),Fte=y3().DRAW_MODES,Ite=Pe().extendDeep;jq.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=Ute(i):!a.displayModeBar&&a.watermark?l=[]:l=Hte(r),n?n.update(r,l):t._modeBar=Nte(r,l)};function Hte(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(O,G){if(typeof G=="string"){if(G.toLowerCase()===O.toLowerCase())return!0}else{var Z=G.name,$=G._cat||G.name;if(Z===O||$===O.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(O){for(var G=0;G1?(E=["toggleHover"],R=["resetViews"]):c?(D=["zoomInGeo","zoomOutGeo"],E=["hoverClosestGeo"],R=["resetGeo"]):f?(E=["hoverClosest3d"],R=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(D=["zoomInMapbox","zoomOutMapbox"],E=["toggleHover"],R=["resetViewMapbox"]):m?(D=["zoomInMap","zoomOutMap"],E=["toggleHover"],R=["resetViewMap"]):h?E=["hoverClosestPie"]:w?(E=["hoverClosestCartesian","hoverCompareCartesian"],R=["resetViewSankey"]):E=["toggleHover"],u&&E.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Yte(t)||M)&&(E=[]),u&&!x&&(D=["zoomIn2d","zoomOut2d","autoScale2d"],R[0]!=="resetViews"&&(R=["resetScale2d"])),f?N=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!x||p?N=["zoom2d","pan2d"]:y||m||c?N=["pan2d"]:b&&(N=["zoom2d"]),Bte(t)&&N.push("select2d","lasso2d");var I=[],H=function(O){I.indexOf(O)===-1&&E.indexOf(O)!==-1&&I.push(O)};if(Array.isArray(o)){for(var U=[],W=0;W{"use strict";rC.exports={moduleType:"component",name:"modebar",layoutAttributes:g3(),supplyLayoutDefaults:Xq(),manage:eC()}});var w3=B((w2e,tC)=>{"use strict";var Vte=Pa().FROM_BL;tC.exports=function(r,t,a){a===void 0&&(a=Vte[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var ys=B(lv=>{"use strict";var ms=Pe(),T3=Vc(),xi=Ut().id2name,Wte=_n(),aC=w3(),Xte=md(),Zte=Mt().ALMOST_EQUAL,Jte=Pa().FROM_BL;lv.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,c,h,d,p;for(o=0;oi?t.substr(i):a.substr(n))+l}function Kte(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lZte*p&&!_)){for(i=0;iN&&ZE&&(E=Z);var te=(E-D)/(2*R);c/=te,D=s.l2r(D),E=s.l2r(E),s.range=s._input.range=k{"use strict";var d1=kr(),Wa=yr(),qn=Pt(),Vn=Pe(),k3=da(),q3=Wd(),ov=xr(),nf=Yr(),oC=Gc(),vC=_3(),sv=Jr(),ml=Pa(),hC=ys(),Qte=hC.enforce,jte=hC.clean,sC=Vc().doAutoRange,dC="start",eae="middle",pC="end",rae=Aa().zindexSeparator;oa.layoutStyles=function(e){return Vn.syncOrAsync([qn.doAutoMargin,aae],e)};function tae(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function aae(e){var r=e._fullLayout,t=r._size,a=t.p,n=sv.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(nf.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),oa.drawMainTitle(e),vC.manage(e),!r._has("cartesian"))return qn.previousPromises(e);function c(be,V,j){var X=be._lw/2;if(be._id.charAt(0)==="x"){if(V){if(j==="top")return V._offset-a-X}else return t.t+t.h*(1-(be.position||0))+X%1;return V._offset+V._length+a+X}if(V){if(j==="right")return V._offset+V._length+a+X}else return t.l+t.w*(be.position||0)+X%1;return V._offset-a-X}for(i=0;i0){oae(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:cC(r.yanchor)}).call(k3.positionText,l,i);var f=(r.text.match(k3.BR_TAG_ALL)||[]).length;if(f){var c=ml.LINE_SPACING*f+ml.MID_SHIFT;r.y===0&&(c=-c),o.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var h=d1.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=o.node().getBBox(),p=d.y+d.height,y=p+oC.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:l,y,"text-anchor":a,dy:cC(r.yanchor)}).call(k3.positionText,l,y)}}}};function nae(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=Vn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return Vn.isTopAnchor(r)&&t==="t"||Vn.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=iae(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function oae(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&nae(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),qn.allowAutoMargin(e,n),qn.autoMargin(e,n,o)}function sae(e,r){var t=e.title,a=e._size,n=0;switch(r===dC?n=t.pad.l:r===pC&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function uae(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===ml.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function cC(e){return e==="top"?ml.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":ml.MID_SHIFT+"em"}function fae(e){var r=e.title,t=eae;return Vn.isRightAnchor(r)?t=pC:Vn.isLeftAnchor(r)&&(t=dC),t}function cae(e){var r=e.title,t="0em";return Vn.isTopAnchor(r)?t=ml.CAP_SHIFT+"em":Vn.isMiddleAnchor(r)&&(t=ml.MID_SHIFT+"em"),t}oa.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var vae=Ql().readPaths,hae=n1(),mC=Ul().clearOutlineControllers,C3=xr(),yC=Yr(),dae=ot().arrayEditor,gC=eo(),pae=gC.getPathString;bC.exports={draw:m1,drawOne:xC,activateLastSelection:gae};function m1(e){var r=e._fullLayout;mC(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;m--){var b=l.append("path").attr(s).style("opacity",m?.1:u).call(C3.stroke,c).call(C3.fill,f).call(yC.dashLine,m?"solid":d,m?4+h:h);if(mae(b,e,a),p){var _=dae(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:_,isActiveSelection:!0},x=vae(o,e);hae(x,b,w)}else b.style("pointer-events",m?"all":"none");y[m]=b}var M=y[0],k=y[1];k.node().addEventListener("click",function(){return yae(e,M)})}}function mae(e,r,t){var a=t.xref+t.yref;yC.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function yae(e,r){if(y1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){S3(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=S3,m1(e)}}}function gae(e){if(y1(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=S3,m1(e)}}function S3(e){if(y1(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(mC(e),delete e._fullLayout._activeSelectionIndex,m1(e))}}});var wC=B((k2e,_C)=>{function xae(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}_C.exports=xae});var MC=B((q2e,TC)=>{function bae(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-c)/(o-c)+f-n>e&&(s=!s),l=f,o=c}return s}};return r}TC.exports=bae});var kC=B((C2e,AC)=>{var _ae={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};AC.exports=_ae});var CC=B((S2e,qC)=>{var uv=kC();function wae(e,r,t){function a(p,y){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:null,below:null},otherFill:null}}function n(p,y,m){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=uv.create();function l(p,y,m,b,_,w){var x=r.pointsCompare(y,_);return x!==0?x:r.pointsSame(m,w)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(m,b?_:w,b?w:_)?1:-1}function o(p,y){i.insertBefore(p,function(m){var b=l(p.isStart,p.pt,y,m.isStart,m.pt,m.other.pt);return b<0})}function s(p,y){var m=uv.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return o(m,p.end),m}function u(p,y,m){var b=uv.node({isStart:!1,pt:y.end,seg:y,primary:m,other:p,status:null});p.other=b,o(b,p.pt)}function f(p,y){var m=s(p,y);return u(m,p,y),m}function c(p,y){t&&t.segmentChop(p.seg,y),p.other.remove(),p.seg.end=y,p.other.pt=y,o(p.other,p.pt)}function h(p,y){var m=n(y,p.seg.end,p.seg);return c(p,y),f(m,p.primary)}function d(p,y){var m=uv.create();function b(U,W){var Y=U.seg.start,O=U.seg.end,G=W.seg.start,Z=W.seg.end;return r.pointsCollinear(Y,G,Z)?r.pointsCollinear(O,G,Z)||r.pointAboveOrOnLine(O,G,Z)?1:-1:r.pointAboveOrOnLine(Y,G,Z)?1:-1}function _(U){return m.findTransition(function(W){var Y=b(U,W.ev);return Y>0})}function w(U,W){var Y=U.seg,O=W.seg,G=Y.start,Z=Y.end,$=O.start,te=O.end;t&&t.checkIntersection(Y,O);var le=r.linesIntersect(G,Z,$,te);if(le===!1){if(!r.pointsCollinear(G,Z,$)||r.pointsSame(G,te)||r.pointsSame(Z,$))return!1;var fe=r.pointsSame(G,$),he=r.pointsSame(Z,te);if(fe&&he)return W;var Q=!fe&&r.pointBetween(G,$,te),qe=!he&&r.pointBetween(Z,$,te);if(fe)return qe?h(W,Z):h(U,te),W;Q&&(he||(qe?h(W,Z):h(U,te)),h(W,G))}else le.alongA===0&&(le.alongB===-1?h(U,$):le.alongB===0?h(U,le.pt):le.alongB===1&&h(U,te)),le.alongB===0&&(le.alongA===-1?h(W,G):le.alongA===0?h(W,le.pt):le.alongA===1&&h(W,Z));return!1}for(var x=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let U=function(){if(A){var W=w(M,A);if(W)return W}return S?w(M,S):!1};var H=U;t&&t.segmentNew(M.seg,M.primary);var k=_(M),A=k.before?k.before.ev:null,S=k.after?k.after.ev:null;t&&t.tempStatus(M.seg,A?A.seg:!1,S?S.seg:!1);var D=U();if(D){if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,E&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(D.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,S?M.seg.myFill.below=S.seg.myFill.above:M.seg.myFill.below=p,E?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var R;S?M.primary===S.primary?R=S.seg.otherFill.above:R=S.seg.myFill.above:R=M.primary?y:p,M.seg.otherFill={above:R,below:R}}t&&t.status(M.seg,A?A.seg:!1,S?S.seg:!1),M.other.status=k.insert(uv.node({ev:M}))}else{var N=M.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(N.prev)&&m.exists(N.next)&&w(N.prev.ev,N.next.ev),t&&t.statusRemove(N.ev.seg),N.remove(),!M.primary){var I=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=I}x.push(M.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var y,m=p[p.length-1],b=0;b{function Tae(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(H,U,W){return f.index=H,f.matches_head=U,f.matches_pt1=W,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function fv(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var Mae={union:function(e,r){return fv(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return fv(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return fv(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return fv(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return fv(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};DC.exports=Mae});var RC=B((E2e,PC)=>{var Aae={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var kae=wC(),qae=MC(),zC=CC(),Cae=LC(),cv=EC(),NC=RC(),Wn=!1,vv=qae(),cn;cn={buildLog:function(e){return e===!0?Wn=kae():e===!1&&(Wn=!1),Wn===!1?!1:Wn.list},epsilon:function(e){return vv.epsilon(e)},segments:function(e){var r=zC(!0,vv,Wn);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=zC(!1,vv,Wn);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:cv.union(e.combined,Wn),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:cv.intersect(e.combined,Wn),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:cv.difference(e.combined,Wn),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:cv.differenceRev(e.combined,Wn),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:cv.xor(e.combined,Wn),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Cae(e.segments,vv,Wn),inverted:e.inverted}},polygonFromGeoJSON:function(e){return NC.toPolygon(cn,e)},polygonToGeoJSON:function(e){return NC.fromPolygon(cn,vv,e)},union:function(e,r){return hv(e,r,cn.selectUnion)},intersect:function(e,r){return hv(e,r,cn.selectIntersect)},difference:function(e,r){return hv(e,r,cn.selectDifference)},differenceRev:function(e,r){return hv(e,r,cn.selectDifferenceRev)},xor:function(e,r){return hv(e,r,cn.selectXor)}};function hv(e,r,t){var a=cn.segments(e),n=cn.segments(r),i=cn.combine(a,n),l=t(i);return cn.polygon(l)}typeof window=="object"&&(window.PolyBool=cn);FC.exports=cn});var OC=B((R2e,HC)=>{HC.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=p>l&&i<(d-c)*(l-h)/(p-h)+c;y&&(o=!o)}return o}});var E3=B((z2e,BC)=>{"use strict";var D3=gh().dot,g1=Mt().BADNUM,x1=BC.exports={};x1.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||b===g1||bl||y&&u(p))}function c(p,y){var m=p[0],b=p[1];if(m===g1||mn||b===g1||bl)return!1;var _=t.length,w=t[0][0],x=t[0][1],M=0,k,A,S,D,E;for(k=1;k<_;k++)if(A=w,S=x,w=t[k][0],x=t[k][1],D=Math.min(A,w),!(mMath.max(A,w)||b>Math.max(S,x)))if(bo||Math.abs(D3(c,u))>n)return!0;return!1};x1.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var GC=B((N2e,YC)=>{"use strict";YC.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var cS=B((F2e,fS)=>{"use strict";var UC=IC(),Sae=OC(),mv=yr(),Lae=Yr().dashStyle,dv=xr(),Dae=gi(),Eae=Hi().makeEventData,_v=Ku(),Pae=_v.freeMode,Rae=_v.rectMode,yv=_v.drawMode,N3=_v.openMode,F3=_v.selectMode,VC=eo(),WC=av(),KC=n1(),QC=Ul().clearOutline,jC=Ql(),P3=jC.handleEllipse,zae=jC.readPaths,Nae=e1().newShapes,Fae=i3(),Iae=L3().activateLastSelection,_1=Pe(),Hae=_1.sorterAsc,eS=E3(),pv=Lh(),Xn=Ut().getFromId,Oae=Wd(),Bae=p1().redrawReglTraces,w1=GC(),Xi=w1.MINSELECT,Yae=eS.filter,I3=eS.tester,H3=$d(),XC=H3.p2r,Gae=H3.axValue,Uae=H3.getTransform;function O3(e){return e.subplot!==void 0}function Vae(e,r,t,a,n){var i=!O3(a),l=Pae(n),o=Rae(n),s=N3(n),u=yv(n),f=F3(n),c=n==="drawline",h=n==="drawcircle",d=c||h,p=a.gd,y=p._fullLayout,m=f&&y.newselection.mode==="immediate"&&i,b=y._zoomlayer,_=a.element.getBoundingClientRect(),w=a.plotinfo,x=Uae(w),M=r-_.left,k=t-_.top;y._calcInverseTransform(p);var A=_1.apply3DTransform(y._invTransform)(M,k);M=A[0],k=A[1];var S=y._invScaleX,D=y._invScaleY,E=M,R=k,N="M"+M+","+k,I=a.xaxes[0],H=a.yaxes[0],U=I._length,W=H._length,Y=e.altKey&&!(yv(n)&&s),O,G,Z,$,te,le,fe;tS(e,p,a),l&&(O=Yae([[M,k]],w1.BENDPX));var he=b.selectAll("path.select-outline-"+w.id).data([1]),Q=u?y.newshape:y.newselection;u&&(a.hasText=Q.label.text||Q.label.texttemplate);var qe=u&&!s?Q.fillcolor:"rgba(0,0,0,0)",ve=Q.line.color||(i?dv.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");he.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?Q.opacity/2:1,"stroke-dasharray":Lae(Q.line.dash,Q.line.width),"stroke-width":Q.line.width+"px","shape-rendering":"crispEdges"}).call(dv.stroke,ve).call(dv.fill,qe).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",N+"Z");var Ae=b.append("path").attr("class","zoombox-corners").style({fill:dv.background,stroke:dv.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var se=b.select(".label-temp");se.empty()&&(se=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var be=y._uid+w1.SELECTID,V=[],j=T1(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var ge=I._id,ke=H._id;oS(p,ge,ke,j);for(var xe=(p.layout||{}).selections||[],ze=[],Fe=!1,Ee=0;Ee=0){p._fullLayout._deactivateShape(p);return}if(!u){var xe=y.clickmode;pv.done(be).then(function(){if(pv.clear(be),ge===2){for(he.remove(),te=0;te-1&&rS(ke,p,a.xaxes,a.yaxes,a.subplot,a,he),xe==="event"&&bv(p,void 0);Dae.click(p,ke,w.id)}).catch(_1.error)}},a.doneFn=function(){Ae.remove(),pv.done(be).then(function(){pv.clear(be),!m&&$&&a.selectionDefs&&($.subtract=Y,a.selectionDefs.push($),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Z)),(m||u)&&gv(a,m),a.doneFnCompleted&&a.doneFnCompleted(V),f&&bv(p,fe)}).catch(_1.error)}}function rS(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],h,d,p,y,m,b,_,w,x,M;if($ae(o)){tS(e,r,i),h=T1(r,t,a,n);var k=Kae(o,h),A=k.pointNumbers.length>0;if(A?Qae(h,k):jae(h)&&(_=JC(k))){for(l&&l.remove(),M=0;M=0}function Jae(e){return e._fullLayout._activeSelectionIndex>=0}function gv(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Zae(n)&&n._fullLayout._deactivateShape(n),Jae(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=yv(t),s=F3(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=Nae(u,e)),f&&mv.call("_guiRelayout",n,{shapes:f});var c;s&&!O3(e)&&(c=Fae(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,mv.call("_guiRelayout",n,{selections:c}).then(function(){r&&Iae(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function ZC(e){return e._id}function T1(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(ZC),l=t.map(ZC),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Qae(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function xv(e,r,t){var a;for(a=0;a-1&&r;if(!l&&r){var ge=$C(e,!0);if(ge.length){var ke=ge[0].xref,xe=ge[0].yref;if(ke&&xe){var ze=sS(ge),Fe=uS([Xn(e,ke,"x"),Xn(e,xe,"y")]);Fe(V,ze)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:X&&bv(e,V),h._reselect=!1}if(!l&&h._deselect){var Ee=h._deselect;o=Ee.xref,s=Ee.yref,tne(o,s,f)||oS(e,o,s,a),X&&(V.points.length?bv(e,V):G3(e)),h._deselect=!1}return{eventData:V,selectionTesters:t}}function rne(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";vS.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var wv=B((H2e,hS)=>{"use strict";hS.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var lf=B((B2e,mS)=>{"use strict";var dS=U3(),pS=aa(),M1=Aa(),one=ot().templatedArray,O2e=wv();mS.exports=one("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:pS({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:dS.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:dS.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",M1.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",M1.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",M1.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",M1.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:pS({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var A1=B((Y2e,yS)=>{"use strict";yS.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var V3=B((G2e,gS)=>{"use strict";gS.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var bi=B((U2e,MS)=>{"use strict";var xS=di().axisHoverFormat,sne=ha().texttemplateAttrs,une=ha().hovertemplateAttrs,bS=Hc(),fne=aa(),cne=fi().dash,vne=fi().pattern,hne=Yr(),dne=A1(),k1=mt().extendFlat,pne=V3();function _S(e){return{valType:"any",dflt:0,editType:"calc"}}function wS(e){return{valType:"any",editType:"calc"}}function TS(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}MS.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:_S("x"),yperiod:_S("y"),xperiod0:wS("x0"),yperiod0:wS("y0"),xperiodalignment:TS("x"),yperiodalignment:TS("y"),xhoverformat:xS("x"),yhoverformat:xS("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:sne({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:une({},{keys:dne.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:k1({},cne,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:pne(!0),fillgradient:k1({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:vne,marker:k1({symbol:{valType:"enumerated",values:hne.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:k1({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},bS("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},bS("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:fne({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var W3=B((W2e,qS)=>{"use strict";var AS=lf(),kS=bi().line,mne=fi().dash,q1=mt().extendFlat,yne=ui().overrideAll,gne=ot().templatedArray,V2e=wv();qS.exports=yne(gne("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:q1({},AS.xref,{}),yref:q1({},AS.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:kS.color,width:q1({},kS.width,{min:1,dflt:1}),dash:q1({},mne,{dflt:"dot"})}}),"arraydraw","from-root")});var DS=B((X2e,LS)=>{"use strict";var CS=Pe(),C1=Jr(),xne=On(),bne=W3(),SS=eo();LS.exports=function(r,t){xne(r,t,{name:"selections",handleItemDefaults:_ne});for(var a=t.selections,n=0;n{"use strict";ES.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Tv=B((J2e,NS)=>{"use strict";var wne=yr(),RS=Pe(),zS=Ut();NS.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=wne.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var FS=L3(),Mv=cS();IS.exports={moduleType:"component",name:"selections",layoutAttributes:W3(),supplyLayoutDefaults:DS(),supplyDrawNewSelectionDefaults:PS(),includeBasePlot:Tv()("selections"),draw:FS.draw,drawOne:FS.drawOne,reselect:Mv.reselect,prepSelect:Mv.prepSelect,clearOutline:Mv.clearOutline,clearSelectionsCache:Mv.clearSelectionsCache,selectOnClick:Mv.selectOnClick}});var iL=B((K2e,nL)=>{"use strict";var K3=kr(),Zn=Pe(),HS=Zn.numberFormat,Tne=zn(),Mne=L2(),S1=yr(),ZS=Zn.strTranslate,Ane=da(),OS=xr(),to=Yr(),kne=gi(),BS=Jr(),qne=Kl(),Cne=mi(),JS=Ku(),L1=JS.selectingOrDrawing,Sne=JS.freeMode,Lne=Pa().FROM_TL,Dne=Wd(),Ene=p1().redrawReglTraces,Pne=Pt(),Z3=Ut().getFromId,Rne=of().prepSelect,zne=of().clearOutline,Nne=of().selectOnClick,X3=w3(),Q3=Aa(),YS=Q3.MINDRAG,Qa=Q3.MINZOOM,GS=!0;function Fne(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,c,h,d,p,y,m,b,_,w,x,M,k,A,S,D,E,R,N,I,H,U,W,Y;t+=r.yaxis._shift;function O(){if(c=r.xaxis,h=r.yaxis,w=c._length,x=h._length,b=c._offset,_=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,l&&o)for(var oe=r.overlays,Ce=0;Ce=0){Ie._fullLayout._deactivateShape(Ie);return}var We=Ie._fullLayout.clickmode;if($3(Ie),oe===2&&!f&&Oe(),u)We.indexOf("select")>-1&&Nne(Ce,Ie,y,m,r.id,$),We.indexOf("event")>-1&&kne.click(Ie,Ce,r.id);else if(oe===1&&f){var Ue=l?h:c,Je=l==="s"||o==="w"?0:1,je=Ue._name+".range["+Je+"]",vr=Ine(Ue,Je),$e="left",Re="middle";if(Ue.fixedrange)return;l?(Re=l==="n"?"top":"bottom",Ue.side==="right"&&($e="right")):o==="e"&&($e="right"),Ie._context.showAxisRangeEntryBoxes&&K3.select(Z).call(Ane.makeEditable,{gd:Ie,immediate:!0,background:Ie._fullLayout.paper_bgcolor,text:String(vr),fill:Ue.tickfont?Ue.tickfont.color:"#444",horizontalAlign:$e,verticalAlign:Re}).on("edit",function(ne){var ce=Ue.d2r(ne);ce!==void 0&&S1.call("_guiRelayout",Ie,je,ce)})}}Cne.init($);var fe,he,Q,qe,ve,Ae,se,be,V,j;function X(oe,Ce,Ie){var We=Z.getBoundingClientRect();fe=Ce-We.left,he=Ie-We.top,e._fullLayout._calcInverseTransform(e);var Ue=Zn.apply3DTransform(e._fullLayout._invTransform)(fe,he);fe=Ue[0],he=Ue[1],Q={l:fe,r:fe,w:0,t:he,b:he,h:0},qe=e._hmpixcount?e._hmlumcount/e._hmpixcount:Tne(e._fullLayout.plot_bgcolor).getLuminance(),ve="M0,0H"+w+"V"+x+"H0V0",Ae=!1,se="xy",j=!1,be=QS(s,qe,b,_,ve),V=jS(s,b,_)}function ge(oe,Ce){if(e._transitioningWithDuration)return!1;var Ie=Math.max(0,Math.min(w,W*oe+fe)),We=Math.max(0,Math.min(x,Y*Ce+he)),Ue=Math.abs(Ie-fe),Je=Math.abs(We-he);Q.l=Math.min(fe,Ie),Q.r=Math.max(fe,Ie),Q.t=Math.min(he,We),Q.b=Math.max(he,We);function je(){se="",Q.r=Q.l,Q.t=Q.b,V.attr("d","M0,0Z")}if(M.isSubplotConstrained)Ue>Qa||Je>Qa?(se="xy",Ue/w>Je/x?(Je=Ue*x/w,he>We?Q.t=he-Je:Q.b=he+Je):(Ue=Je*w/x,fe>Ie?Q.l=fe-Ue:Q.r=fe+Ue),V.attr("d",D1(Q))):je();else if(k.isSubplotConstrained)if(Ue>Qa||Je>Qa){se="xy";var vr=Math.min(Q.l/w,(x-Q.b)/x),$e=Math.max(Q.r/w,(x-Q.t)/x);Q.l=vr*w,Q.r=$e*w,Q.b=(1-vr)*x,Q.t=(1-$e)*x,V.attr("d",D1(Q))}else je();else!S||Je0){var ne;if(k.isSubplotConstrained||!A&&S.length===1){for(ne=0;ne1&&(je.maxallowed!==void 0&&E===(je.range[0]1&&(vr.maxallowed!==void 0&&R===(vr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function One(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function QS(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",ZS(t,a)).attr("d",n+"Z")}function jS(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:OS.background,stroke:OS.defaultLine,"stroke-width":1,opacity:0}).attr("transform",ZS(r,t)).attr("d","M0,0Z")}function eL(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),rL(e,r,n,i)}function rL(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function $3(e){K3.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function tL(e){GS&&e.data&&e._context.showTips&&(Zn.notifier(Zn._(e,"Double-click to zoom back out"),"long"),GS=!1)}function Bne(e,r){return"M"+(e.l-.5)+","+(r-Qa-.5)+"h-3v"+(2*Qa+1)+"h3ZM"+(e.r+.5)+","+(r-Qa-.5)+"h3v"+(2*Qa+1)+"h-3Z"}function Yne(e,r){return"M"+(r-Qa-.5)+","+(e.t-.5)+"v-3h"+(2*Qa+1)+"v3ZM"+(r-Qa-.5)+","+(e.b+.5)+"v3h"+(2*Qa+1)+"v-3Z"}function D1(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Qa)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function WS(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,c,h=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var Gne=kr(),E1=gi(),Une=mi(),Vne=Kl(),_i=iL().makeDragBox,sa=Aa().DRAGGERSIZE;P1.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Gne.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=_i(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&E1.hover(r,h,i)},E1.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,Une.unhover(r,h))},r._context.showAxisDragHandles&&(_i(r,l,o._offset-sa,s._offset-sa,sa,sa,"n","w"),_i(r,l,o._offset+o._length,s._offset-sa,sa,sa,"n","e"),_i(r,l,o._offset-sa,s._offset+s._length,sa,sa,"s","w"),_i(r,l,o._offset+o._length,s._offset+s._length,sa,sa,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=sa),_i(r,l,o._offset+o._length*.1,f,o._length*.8,sa,"","ew"),_i(r,l,o._offset,f,o._length*.1,sa,"","w"),_i(r,l,o._offset+o._length*.9,f,o._length*.1,sa,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=sa),_i(r,l,c,s._offset+s._length*.1,sa,s._length*.8,"ns",""),_i(r,l,c,s._offset+s._length*.9,sa,s._length*.1,"s",""),_i(r,l,c,s._offset,sa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,E1.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,E1.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},P1.updateFx(r)}};P1.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";Vne(r._draggers,t)}});var sL=B((j2e,oL)=>{"use strict";var lL=yr();oL.exports=function(r){for(var t=lL.layoutArrayContainers,a=lL.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var Wne=Pl(),ex=yh(),Av=Go(),Xne=Ky().sorterAsc,rx=yr();kv.containerArrayMatch=sL();var Zne=kv.isAddVal=function(r){return r==="add"||Wne(r)},uL=kv.isRemoveVal=function(r){return r===null||r==="remove"};kv.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=rx.getComponentMethod(l,"supplyLayoutDefaults"),s=rx.getComponentMethod(l,"draw"),u=rx.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===ex||s===ex,c=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Av.warn("Full array edits are incompatible with other edits",l);var d=a[""][""];if(uL(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Av.warn("Unrecognized full array edit value",l,d),!0;return f?!1:(o(c,h),s(r),!0)}var p=Object.keys(a).map(Number).sort(Xne),y=t.get(),m=y||[],b=i(h,l).get(),_=[],w=-1,x=m.length,M,k,A,S,D,E,R,N;for(M=0;Mm.length-(R?0:1)){Av.warn("index out of range",l,A);continue}if(E!==void 0)D.length>1&&Av.warn("Insertion & removal are incompatible with edits to the same index.",l,A),uL(E)?_.push(A):R?(E==="add"&&(E={}),m.splice(A,0,E),b&&b.splice(A,0,{})):Av.warn("Unrecognized full object edit value",l,A,E),w===-1&&(w=A);else for(k=0;k=0;M--)m.splice(_[M],1),b&&b.splice(_[M],1);if(m.length?y||t.set(m):t.set(null),f)return!1;if(o(c,h),u!==ex){var I;if(w===-1)I=p;else{for(x=Math.max(m.length,x),I=[],M=0;M=w));M++)I.push(A);for(M=w;M{"use strict";var dL=zr(),r3e=By(),pL=yr(),vn=Pe(),qv=Pt(),mL=Ut(),yL=xr(),Cv=mL.cleanId,Jne=mL.getFromTrace,tx=pL.traceIs;wi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&vn.log("Clearing previous rejected promises from queue."),e._promises=[]};wi.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(qv.subplotsRegistry.cartesian||{}).attrRegex,n=(qv.subplotsRegistry.polar||{}).attrRegex,i=(qv.subplotsRegistry.ternary||{}).attrRegex,l=(qv.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),yL.clean(e),e.template&&e.template.layout&&wi.cleanLayout(e.template.layout),e};function sf(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=Cv(t,a,!0))}wi.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}wi.hasParent=function(e,r){for(var t=hL(r);t;){if(t in e)return!0;t=hL(t)}return!1};var Qne=["x","y","z"];wi.clearAxisTypes=function(e,r,t){for(var a=0;a{"use strict";var F1=kr(),jne=zr(),eie=cg(),Ke=Pe(),ht=Ke.nestedProperty,ix=Pc(),ja=K8(),Jn=yr(),U1=Lu(),_r=Pt(),Xa=Jr(),rie=S2(),tie=_n(),ax=Yr(),aie=xr(),nie=j3().initInteractions,iie=Qo(),lie=of().clearOutline,TL=Yo().dfltConfig,z1=fL(),Jt=gL(),rt=p1(),ao=ui(),oie=Aa().AX_NAME_PATTERN,nx=0,xL=5;function sie(e,r,t,a){var n;if(e=Ke.getGraphDiv(e),ix.init(e),Ke.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=ix.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!Ke.isPlotDiv(e)&&Ke.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Gr.addFrames(e,n)}AL(e,a),t||(t={}),F1.select(e).classed("js-plotly-plot",!0),ax.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Jt.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Jt.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(Die(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),ax.initGradients(e),ax.initPatterns(e),s&&Xa.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&_r.doCalcdata(e);for(var h=0;h=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function kL(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),H1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&H1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function hie(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof S.parts[R]!="string";)R--;var N=S.parts[R],I=S.parts[R-1]+"."+N,H=S.parts.slice(0,R).join("."),U=ht(e.layout,H).get(),W=ht(a,H).get(),Y=S.get();if(D!==void 0){b[A]=D,_[A]=N==="reverse"?D:yl(Y);var O=U1.getLayoutValObject(a,S.parts);if(O&&O.impliedEdits&&D!==null)for(var G in O.impliedEdits)w(Ke.relativeAttr(A,G),O.impliedEdits[G]);if(["width","height"].indexOf(A)!==-1)if(D){w("autosize",null);var Z=A==="height"?"width":"height";w(Z,a[Z])}else a[A]=e._initialAutoSize[A];else if(A==="autosize")w("width",D?null:a.width),w("height",D?null:a.height);else if(I.match(zL))k(I),ht(a,H+"._inputRange").set(null);else if(I.match(NL)){k(I),ht(a,H+"._inputRange").set(null);var $=ht(a,H).get();$._inputDomain&&($._input.domain=$._inputDomain.slice())}else I.match(yie)&&ht(a,H+"._inputDomain").set(null);if(N==="type"){M=U;var te=W.type==="linear"&&D==="log",le=W.type==="log"&&D==="linear";if(te||le){if(!M||!M.range)w(H+".autorange",!0);else if(W.autorange)te&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var fe=M.range[0],he=M.range[1];te?(fe<=0&&he<=0&&w(H+".autorange",!0),fe<=0?fe=he/1e6:he<=0&&(he=fe/1e6),w(H+".range[0]",Math.log(fe)/Math.LN10),w(H+".range[1]",Math.log(he)/Math.LN10)):(w(H+".range[0]",Math.pow(10,fe)),w(H+".range[1]",Math.pow(10,he)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete a[S.parts[0]]._subplot.viewInitial["radialaxis.range"],Jn.getComponentMethod("annotations","convertCoords")(e,W,D,w),Jn.getComponentMethod("images","convertCoords")(e,W,D,w)}else w(H+".autorange",!0),w(H+".range",null);ht(a,H+"._inputRange").set(null)}else if(N.match(oie)){var Q=ht(a,A).get(),qe=(D||{}).type;(!qe||qe==="-")&&(qe="linear"),Jn.getComponentMethod("annotations","convertCoords")(e,Q,qe,w),Jn.getComponentMethod("images","convertCoords")(e,Q,qe,w)}var ve=z1.containerArrayMatch(A);if(ve){f=ve.array,c=ve.index;var Ae=ve.property,se=O||{editType:"calc"};c!==""&&Ae===""&&(z1.isAddVal(D)?_[A]=null:z1.isRemoveVal(D)?_[A]=(ht(t,f).get()||[])[c]:Ke.warn("unrecognized full object value",r)),ao.update(m,se),u[f]||(u[f]={});var be=u[f][c];be||(be=u[f][c]={}),be[Ae]=D,delete r[A]}else N==="reverse"?(U.range?U.range.reverse():(w(H+".autorange",!0),U.range=[1,0]),W.autorange?m.calc=!0:m.plot=!0):(A==="dragmode"&&(D===!1&&Y!==!1||D!==!1&&Y===!1)||a._has("scatter-like")&&a._has("regl")&&A==="dragmode"&&(D==="lasso"||D==="select")&&!(Y==="lasso"||Y==="select")?m.plot=!0:O?ao.update(m,O):m.calc=!0,S.set(D))}}for(f in u){var V=z1.applyContainerArrayChanges(e,i(t,f),u[f],m,i);V||(m.plot=!0)}for(var j in x){M=Xa.getFromId(e,j);var X=M&&M._constraintGroup;if(X){m.calc=!0;for(var ge in X)x[ge]||(Xa.getFromId(e,ge)._constraintShrinkable=!0)}}(IL(e)||r.height||r.width)&&(m.plot=!0);var ke=a.shapes;for(c=0;c1;)if(a.pop(),t=ht(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function bie(e,r){for(var t=0;t[U,e._ev.listeners(U)]);i=Gr.newPlot(e,r,t,a).then(()=>{for(let[U,W]of H)W.forEach(Y=>e.on(U,Y));return Gr.react(e,r,t,a)})}else{e.data=r||[],Jt.cleanData(e.data),e.layout=t||{},Jt.cleanLayout(e.layout),wie(e.data,e.layout,o,s),_r.supplyDefaults(e,{skipUpdateCalc:!0});var h=e._fullData,d=e._fullLayout,p=d.datarevision===void 0,y=d.transition,m=Aie(e,s,d,p,y),b=m.newDataRevision,_=Mie(e,o,h,p,y,b);if(IL(e)&&(m.layoutReplot=!0),_.calc||m.calc){e.calcdata=void 0;for(var w=Object.getOwnPropertyNames(d),x=0;x(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function Mie(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=ao.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(d){var p=U1.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},h={};for(s=0;s=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var N=a._frameQueue.pop();N.onInterrupt&&N.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(N){if(N.length!==0){for(var I=0;Ia._timeToNext&&p()};N()}var m=0;function b(N){return Array.isArray(n)?m>=n.length?N.transitionOpts=n[m]:N.transitionOpts=n[0]:N.transitionOpts=n,m++,N}var _,w,x=[],M=r==null,k=Array.isArray(r),A=!M&&!k&&Ke.isPlainObject(r);if(A)x.push({type:"object",data:b(Ke.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(_=0;_0&&EE)&&R.push(w);x=R}}x.length>0?h(x):(e.emit("plotly_animated"),u())})}function qie(e,r,t){if(e=Ke.getGraphDiv(e),r==null)return Promise.resolve();if(!Ke.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(Ke.isPlainObject(r[a])){var h=r[a].name,d=(s[h]||c[h]||{}).name,p=r[a].name,y=s[d]||c[d];d&&p&&typeof p=="number"&&y&&nxS.index?-1:A.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Ke.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=_r.modifyFrames,s=_r.modifyFrames,u=[e,l],f=[e,i];return ja&&ja.add(e,o,u,s,f),_r.modifyFrames(e,i)}function Sie(e){e=Ke.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),ix.purge(e),r._container&&r._container.remove(),delete e._context,e}function Lie(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Ke.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Ke.inverseTransformMatrix(Ke.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function Die(e){var r=F1.select(e),t=e._fullLayout;if(t._calcInverseTransform=Lie,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};F1.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Ke.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(iie.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Gr.animate=kie;Gr.addFrames=qie;Gr.deleteFrames=Cie;Gr.addTraces=DL;Gr.deleteTraces=EL;Gr.extendTraces=SL;Gr.moveTraces=lx;Gr.prependTraces=LL;Gr.newPlot=vie;Gr._doPlot=sie;Gr.purge=Sie;Gr.react=Tie;Gr.redraw=cie;Gr.relayout=Sv;Gr.restyle=O1;Gr.setPlotConfig=uie;Gr.update=Y1;Gr._guiRelayout=sx(Sv);Gr._guiRestyle=sx(O1);Gr._guiUpdate=sx(Y1);Gr._storeDirectGUIEdit=mie});var gs=B(Zi=>{"use strict";var Eie=yr();Zi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Zi.getRedrawFunc=function(e){return function(){Eie.getComponentMethod("colorbar","draw")(e)}};Zi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Zi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var HL=window.URL||window.webkitURL;Zi.createObjectURL=function(e){return HL.createObjectURL(e)};Zi.revokeObjectURL=function(e){return HL.revokeObjectURL(e)};Zi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=Pie(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Zi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Pie(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var cx=kr(),i3e=Pe(),Rie=Yr(),zie=xr(),l3e=Qo(),fx=/"/g,Dv="TOBESTRIPPED",Nie=new RegExp('("'+Dv+")|("+Dv+'")',"g");function Fie(e){var r=cx.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function Iie(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}OL.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(Rie.setRect,0,0,o,s).call(zie.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var Hie=Pe(),Oie=Fh().EventEmitter,Ev=gs();function Bie(e){var r=e.emitter||new Oie,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,h=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),y=new i,m,b;o==="svg"||Hie.isSafari()?b=Ev.encodeSVG(l):(m=Ev.createBlob(l,"svg"),b=Ev.createObjectURL(m)),s.width=h,s.height=d,y.onload=function(){var _;switch(m=null,Ev.revokeObjectURL(b),o!=="svg"&&p.drawImage(y,0,0,h,d),o){case"jpeg":_=s.toDataURL("image/jpeg");break;case"png":_=s.toDataURL("image/png");break;case"webp":_=s.toDataURL("image/webp");break;case"svg":_=b;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(_),e.promise||r.emit("success",_)},y.onerror=function(_){if(m=null,Ev.revokeObjectURL(b),n(_),!e.promise)return r.emit("error",_)},y.src=b});return e.promise?t:r}BL.exports=Bie});var hx=B((u3e,UL)=>{"use strict";var YL=zr(),GL=ux(),Yie=Pt(),Ji=Pe(),Pv=gs(),Gie=W1(),Uie=X1(),Vie=th().version,vx={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Wie(e,r){r=r||{};var t,a,n,i;Ji.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Ji.getGraphDiv(e),t=Ji.extendDeep([],e.data),a=Ji.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(k){return!(k in r)||Ji.validate(r[k],vx[k])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Ji.join2(vx.format.values,", "," or ")+".");var o={};function s(k,A){return Ji.coerce(r,o,vx,k,A)}var u=s("format"),f=s("width"),c=s("height"),h=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var m=Ji.extendFlat({},a);f?m.width=f:r.width===null&&YL(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&YL(i.height)&&(m.height=i.height);var b=Ji.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),_=Pv.getRedrawFunc(y);function w(){return new Promise(function(k){setTimeout(k,Pv.getDelay(y._fullLayout))})}function x(){return new Promise(function(k,A){var S=Gie(y,u,h),D=y._fullLayout.width,E=y._fullLayout.height;function R(){GL.purge(y),document.body.removeChild(y)}if(u==="full-json"){var N=Yie.graphJson(y,!1,"keepdata","object",!0,!0);return N.version=Vie,N=JSON.stringify(N),R(),k(p?N:Pv.encodeJSON(N))}if(R(),u==="svg")return k(p?S:Pv.encodeSVG(S));var I=document.createElement("canvas");I.id=Ji.randstr(),Uie({format:u,width:D,height:E,scale:h,canvas:I,svg:S,promise:!0}).then(k).catch(A)})}function M(k){return p?k.replace(Pv.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,A){GL.newPlot(y,t,m,b).then(_).then(w).then(x).then(function(S){k(M(S))}).catch(function(S){A(S)})})}UL.exports=Wie});var XL=B((f3e,WL)=>{"use strict";var $n=Pe(),Xie=Pt(),Zie=Lu(),Jie=Yo().dfltConfig,Ti=$n.isPlainObject,bs=Array.isArray,dx=$n.isArrayOrTypedArray;WL.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=Zie.get(),n=[],i={_context:$n.extendFlat({},Jie)},l,o;bs(r)?(i.data=$n.extendDeep([],r),l=r):(i.data=[],l=[],n.push(ua("array","data"))),Ti(t)?(i.layout=$n.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(ua("object","layout"))),Xie.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fc.length&&a.push(ua("unused",n,u.concat(c.length)));var b=c.length,_=Array.isArray(m);_&&(b=Math.min(b,m.length));var w,x,M,k,A;if(h.dimensions===2)for(x=0;xc[x].length&&a.push(ua("unused",n,u.concat(x,c[x].length)));var S=c[x].length;for(w=0;w<(_?Math.min(S,m[x].length):S);w++)M=_?m[x][w]:m,k=f[x][w],A=c[x][w],$n.validate(k,M)?A!==k&&A!==+k&&a.push(ua("dynamic",n,u.concat(x,w),k,A)):a.push(ua("value",n,u.concat(x,w),k))}else a.push(ua("array",n,u.concat(x),f[x]));else for(x=0;x{"use strict";var tle=Pe(),J1=gs();function ale(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=J1.createBlob(e,t),u=J1.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),J1.revokeObjectURL(u),s=null,l(r);if(tle.isSafari()){var f=t==="svg"?",":";base64,";return J1.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}ZL.exports=ale});var px=B((h3e,KL)=>{"use strict";var $L=Pe(),nle=hx(),ile=JL(),v3e=gs();function lle(e,r){var t;return $L.isPlainObject(e)||(t=$L.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=nle(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),ile(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}KL.exports=lle});var tD=B(mx=>{"use strict";var hn=Pe(),dn=hn.isPlainObject,QL=Lu(),jL=Pt(),ole=tn(),eD=ot(),rD=Yo().dfltConfig;mx.makeTemplate=function(e){e=hn.isPlainObject(e)?e:hn.getGraphDiv(e),e=hn.extendDeep({_context:rD},{data:e.data,layout:e.layout}),jL.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};Rv(d,p,ule.bind(null,d));var y=hn.coerce(d,{},ole,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),Rv(t,a.layout,sle.bind(null,t)),delete a.layout.template;var n=t.template;if(dn(n)){var i=n.layout,l,o,s,u,f,c;dn(i)&&$1(i,a.layout);var h=n.data;if(dn(h)){for(o in a.data)if(s=h[o],Array.isArray(s)){for(f=a.data[o],c=f.length,u=s.length,l=0;lb?l.push({code:"unused",traceType:d,templateCount:m,dataCount:b}):b>m&&l.push({code:"reused",traceType:d,templateCount:m,dataCount:b})}}function _(w,x){for(var M in w)if(M.charAt(0)!=="_"){var k=w[M],A=Kn(w,M,x);dn(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&l.push({code:"missing",path:A,templateitemname:k.templateitemname}),_(k,A)):Array.isArray(k)&&fle(k)&&_(k,A)}}if(_({data:s,layout:o},""),l.length)return l.map(cle)};function fle(e){for(var r=0;r{"use strict";var ea=ux();bt._doPlot=ea._doPlot;bt.newPlot=ea.newPlot;bt.restyle=ea.restyle;bt.relayout=ea.relayout;bt.redraw=ea.redraw;bt.update=ea.update;bt._guiRestyle=ea._guiRestyle;bt._guiRelayout=ea._guiRelayout;bt._guiUpdate=ea._guiUpdate;bt._storeDirectGUIEdit=ea._storeDirectGUIEdit;bt.react=ea.react;bt.extendTraces=ea.extendTraces;bt.prependTraces=ea.prependTraces;bt.addTraces=ea.addTraces;bt.deleteTraces=ea.deleteTraces;bt.moveTraces=ea.moveTraces;bt.purge=ea.purge;bt.addFrames=ea.addFrames;bt.deleteFrames=ea.deleteFrames;bt.animate=ea.animate;bt.setPlotConfig=ea.setPlotConfig;var vle=Mc().getGraphDiv,hle=s1().eraseActiveShape;bt.deleteActiveShape=function(e){return hle(vle(e))};bt.toImage=hx();bt.validate=XL();bt.downloadImage=px();var aD=tD();bt.makeTemplate=aD.makeTemplate;bt.validateTemplate=aD.validateTemplate});var zv=B((m3e,iD)=>{"use strict";var yx=Pe(),dle=yr();iD.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=dle.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=yx.minRowLength(i);l?o=Math.min(u,yx.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=yx.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var _s=B((y3e,sD)=>{"use strict";var lD=Pe().dateTick0,ple=Mt(),mle=ple.ONEWEEK;function oD(e,r){return e%mle===0?lD(r,1):lD(r,0)}sD.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",oD(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",oD(o,t.ycalendar)),n("yperiodalignment"))}}});var cD=B((g3e,fD)=>{"use strict";var uD=["orientation","groupnorm","stackgaps"];fD.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var vD=xr(),hD=bn().hasColorscale,dD=Ru(),yle=wn();pD.exports=function(r,t,a,n,i,l){var o=yle.isBubble(r),s=(r.line||{}).color,u;if(l=l||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),hD(r,"marker")&&dD(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=vD.background:u=vD.defaultLine,i("marker.line.color",u),hD(r,"marker.line")&&dD(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0)),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var gD=B((b3e,yD)=>{"use strict";var gle=Pe().isArrayOrTypedArray,xle=bn().hasColorscale,ble=Ru();yD.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),xle(r,"line"))ble(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(gle(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var bD=B((_3e,xD)=>{"use strict";xD.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var wD=B((w3e,_D)=>{"use strict";var _le=Pe();_D.exports=function(e,r,t,a,n){n=n||{},a("textposition"),_le.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var AD=B((T3e,MD)=>{"use strict";var Q1=xr(),TD=Pe().isArrayOrTypedArray;function wle(e){for(var r=Q1.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var kD=Pe(),Tle=yr(),Mle=bi(),Ale=A1(),uf=wn(),kle=zv(),qle=_s(),Cle=cD(),Sle=mD(),Lle=gD(),qD=bD(),Dle=wD(),Ele=AD(),Ple=Pe().coercePattern;CD.exports=function(r,t,a,n){function i(d,p){return kD.coerce(r,t,Mle,d,p)}var l=kle(r,t,n,i);if(l||(t.visible=!1),!!t.visible){qle(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=Cle(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var Rle=ys().getAxisGroup;LD.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=Rle(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var h=c[f];h?h.traces.push(t):h=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=h.offsetGroups,y=p[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=y.offsetIndex)}});var ED=B((k3e,DD)=>{"use strict";var zle=Pe(),Nle=ff(),Fle=bi();DD.exports=function(r,t){var a,n,i,l=t.scattermode;function o(h){return zle.coerce(n._input,n,Fle,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var RD=B((q3e,PD)=>{"use strict";var Ile=Pe(),Hle=Yh();PD.exports=function(e,r){function t(n,i){return Ile.coerce(e,r,Hle,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var ws=B((C3e,ND)=>{"use strict";var Ole=zr(),zD=Pe(),Ble=zD.dateTime2ms,j1=zD.incrementMonth,Yle=Mt(),Gle=Yle.ONEAVGMONTH;ND.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(Ole(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",h=r[a+"period0"],d=Ble(h,u)||0,p=[],y=[],m=[],b=n.length,_=0;_w;)k=j1(k,-o,u);for(;k<=w;)k=j1(k,o,u);M=j1(k,-o,u)}else{for(x=Math.round((w-d)/l),k=d+x*l;k>w;)k-=l;for(;k<=w;)k+=l;M=k-l}p[_]=f?M:c?k:(M+k)/2,y[_]=M,m[_]=k}return{vals:p,starts:y,ends:m}}});var HD=B((S3e,ID)=>{"use strict";var gx=bn().hasColorscale,xx=Oc(),FD=wn();ID.exports=function(r,t){FD.hasLines(t)&&gx(t,"line")&&xx(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),FD.hasMarkers(t)&&(gx(t,"marker")&&xx(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),gx(t,"marker.line")&&xx(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var bx=B((L3e,OD)=>{"use strict";var Rt=Pe();OD.exports=function(r,t){for(var a=0;a{"use strict";var BD=Pe();YD.exports=function(r,t){BD.isArrayOrTypedArray(t.selectedpoints)&&BD.tagSelected(r,t)}});var Ax=B((E3e,JD)=>{"use strict";var GD=zr(),wx=Pe(),Fv=Jr(),UD=ws(),_x=Mt().BADNUM,Tx=wn(),Ule=HD(),Vle=bx(),Wle=Nv();function Xle(e,r){var t=e._fullLayout,a=r._xA=Fv.getFromId(e,r.xaxis||"x","x"),n=r._yA=Fv.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=UD(r,a,"x",i),s=UD(r,n,"y",l),u=o.vals,f=s.vals,c=r._length,h=new Array(c),d=r.ids,p=Mx(r,t,a,n),y=!1,m,b,_,w,x,M;XD(t,r);var k="x",A="y",S;if(p)wx.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(A="s",S="x"):(k="s",S="y"),x=p.stackgaps==="interpolate";else{var D=WD(r,c);VD(e,r,a,n,u,f,D)}var E=!!r.xperiodalignment,R=!!r.yperiodalignment;for(b=0;bb&&h[w].gap;)w--;for(M=h[w].s,_=h.length-1;_>w;_--)h[_].s=M;for(;b{"use strict";$D.exports=ep;var Zle=Pe().distinctVals;function ep(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var Qn=zr(),no=Pe().isArrayOrTypedArray,cf=Mt().BADNUM,Jle=yr(),Iv=Jr(),$le=ys().getAxisGroup,rp=KD();function Kle(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!Qn(o))}for(var f=0;f{"use strict";var tE=Ax(),aE=hf().setGroupPositions;function uoe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uD[f]&&f{"use strict";var coe=Yr(),uE=Mt(),Hv=uE.BADNUM,fE=uE.LOG_CLIP,lE=fE+.5,oE=fE-.5,tp=Pe(),voe=tp.segmentsIntersect,sE=tp.constrain,Dx=A1();cE.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,h=t.connectGaps,d=t.baseTolerance,p=t.shape,y=p==="linear",m=a.fill&&a.fill!=="none",b=[],_=Dx.minTolerance,w=r.length,x=new Array(w),M=0,k,A,S,D,E,R,N,I,H,U,W,Y,O,G,Z,$;function te(Re){var ne=r[Re];if(!ne)return!1;var ce=t.linearized?n.l2p(ne.x):n.c2p(ne.x),Le=t.linearized?i.l2p(ne.y):i.c2p(ne.y);if(ce===Hv){if(l&&(ce=n.c2p(ne.x,!0)),ce===Hv)return!1;o&&Le===Hv&&(ce*=Math.abs(n._m*u*(n._m>0?lE:oE)/(i._m*s*(i._m>0?lE:oE)))),ce*=1e3}if(Le===Hv){if(o&&(Le=i.c2p(ne.y,!0)),Le===Hv)return!1;Le*=1e3}return[ce,Le]}function le(Re,ne,ce,Le){var Se=ce-Re,or=Le-ne,lr=.5-Re,ar=.5-ne,Ar=Se*Se+or*or,Br=Se*lr+or*ar;if(Br>0&&Br1||Math.abs(lr.y-ce[0][1])>1)&&(lr=[lr.x,lr.y],Le&&qe(lr,Re)se||Re[1]V)return[sE(Re[0],Ae,se),sE(Re[1],be,V)]}function Ve(Re,ne){if(Re[0]===ne[0]&&(Re[0]===Ae||Re[0]===se)||Re[1]===ne[1]&&(Re[1]===be||Re[1]===V))return!0}function Ge(Re,ne){var ce=[],Le=Ne(Re),Se=Ne(ne);return Le&&Se&&Ve(Le,Se)||(Le&&ce.push(Le),Se&&ce.push(Se)),ce}function De(Re,ne,ce){return function(Le,Se){var or=Ne(Le),lr=Ne(Se),ar=[];if(or&&lr&&Ve(or,lr))return ar;or&&ar.push(or),lr&&ar.push(lr);var Ar=2*tp.constrain((Le[Re]+Se[Re])/2,ne,ce)-((or||Le)[Re]+(lr||Se)[Re]);if(Ar){var Br;or&&lr?Br=Ar>0==or[Re]>lr[Re]?or:lr:Br=or||lr,Br[Re]+=Ar}return ar}}var He;p==="linear"||p==="spline"?He=Ee:p==="hv"||p==="vh"?He=Ge:p==="hvh"?He=De(0,Ae,se):p==="vhv"&&(He=De(1,be,V));function Oe(Re,ne){var ce=ne[0]-Re[0],Le=(ne[1]-Re[1])/ce,Se=(Re[1]*ne[0]-ne[1]*Re[0])/ce;return Se>0?[Le>0?Ae:se,V]:[Le>0?se:Ae,be]}function ie(Re){var ne=Re[0],ce=Re[1],Le=ne===x[M-1][0],Se=ce===x[M-1][1];if(!(Le&&Se))if(M>1){var or=ne===x[M-2][0],lr=ce===x[M-2][1];Le&&(ne===Ae||ne===se)&&or?lr?M--:x[M-1]=Re:Se&&(ce===be||ce===V)&&lr?or?M--:x[M-1]=Re:x[M++]=Re}else x[M++]=Re}function Me(Re){x[M-1][0]!==Re[0]&&x[M-1][1]!==Re[1]&&ie([ke,xe]),ie(Re),ze=null,ke=xe=0}var Ze=tp.isArrayOrTypedArray(c);function cr(Re){if(Re&&f&&(Re.i=k,Re.d=r,Re.trace=a,Re.marker=Ze?c[Re.i]:c,Re.backoff=f),fe=Re[0]/s,he=Re[1]/u,X=Re[0]se?se:0,ge=Re[1]V?V:0,X||ge){if(!M)x[M++]=[X||Re[0],ge||Re[1]];else if(ze){var ne=He(ze,Re);ne.length>1&&(Me(ne[0]),x[M++]=ne[1])}else Fe=He(x[M-1],Re)[0],x[M++]=Fe;var ce=x[M-1];X&&ge&&(ce[0]!==X||ce[1]!==ge)?(ze&&(ke!==X&&xe!==ge?ie(ke&&xe?Oe(ze,Re):[ke||X,xe||ge]):ke&&xe&&ie([ke,xe])),ie([X,ge])):ke-X&&xe-ge&&ie([X||ke,ge||xe]),ze=Re,ke=X,xe=ge}else ze&&Me(He(ze,Re)[0]),x[M++]=Re}for(k=0;kQ(R,fr))break;S=R,O=H[0]*I[0]+H[1]*I[1],O>W?(W=O,D=R,N=!1):O=r.length||!R)break;cr(R),A=R}}ze&&ie([ke||ze[0],xe||ze[1]]),b.push(x.slice(0,M))}var oe=p.slice(p.length-1);if(f&&oe!=="h"&&oe!=="v"){for(var Ce=!1,Ie=-1,We=[],Ue=0;Ue{"use strict";var hE={tonextx:1,tonexty:1,tonext:1};dE.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,c=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var Mi=kr(),hoe=yr(),Ov=Pe(),df=Ov.ensureSingle,yE=Ov.identity,zt=Yr(),pf=wn(),doe=vE(),poe=pE(),ap=E3().tester;gE.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=poe(r,t,a);if(o=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),o.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),o.order(),moe(r,o,t),f){l&&(s=l());var h=Mi.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){n.selectAll("g.trace").each(function(d,p){mE(r,p,t,d,c,this,i)})})}else o.each(function(d,p){mE(r,p,t,d,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function moe(e,r,t){r.each(function(a){var n=df(Mi.select(this),"g","fills");zt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,yE);o.enter().append("g"),o.exit().each(function(s){i[s]=null}).remove(),o.order().each(function(s){i[s]=df(Mi.select(this),"path","js-fill")})})}function mE(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;yoe(e,r,t,a,n);var u=!!l&&l.duration>0;function f(De){return u?De.transition():De}var c=t.xaxis,h=t.yaxis,d=a[0].trace,p=d.line,y=Mi.select(i),m=df(y,"g","errorbars"),b=df(y,"g","lines"),_=df(y,"g","points"),w=df(y,"g","text");if(hoe.getComponentMethod("errorbars","plot")(e,m,t,l),d.visible!==!0)return;f(y).style("opacity",d.opacity);var x,M,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var A,S;k==="y"?(A=1,S=h.c2p(0,!0)):k==="x"&&(A=0,S=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var D="",E=[],R=d._prevtrace,N=null,I=null;R&&(D=R._prevRevpath||"",M=R._nextFill,E=R._ownPolygons,N=R._fillsegments,I=R._fillElement);var H,U,W="",Y="",O,G,Z,$,te,le,fe=[];d._polygons=[];var he=[],Q=[],qe=Ov.noop;if(x=d._ownFill,pf.hasLines(d)||d.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(O=zt.steps(p.shape),G=zt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?O=G=function(De){var He=De[De.length-1];return De.length>1&&De[0][0]===He[0]&&De[0][1]===He[1]?zt.smoothclosed(De.slice(1),p.smoothing):zt.smoothopen(De,p.smoothing)}:O=G=function(De){return"M"+De.join("L")},Z=function(De){return G(De.reverse())},Q=doe(a,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),he=new Array(Q.length);var ve=0;for(s=0;s=o[0]&&y.x<=o[1]&&y.y>=s[0]&&y.y<=s[1]}),h=Math.ceil(c.length/f),d=0;n.forEach(function(y,m){var b=y[0].trace;pf.hasMarkers(b)&&b.marker.maxdisplayed>0&&m{"use strict";bE.exports={container:"marker",min:"cmin",max:"cmax"}});var wE=B((O3e,_E)=>{"use strict";var ip=Jr();_E.exports=function(r,t,a){var n={},i={_fullLayout:a},l=ip.getFromTrace(i,t,"x"),o=ip.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=ip.tickText(l,l.c2l(s),!0).text,n.yLabel=ip.tickText(o,o.c2l(u),!0).text,n}});var zx=B((B3e,TE)=>{"use strict";var Ex=kr(),mf=Yr(),goe=yr();function xoe(e){var r=Ex.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=Ex.select(this),n=t.trace||t[0].trace;Px(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Ex.select(this),n=t.trace||t[0].trace;Rx(a,n,e)}),r.selectAll("g.trace path.js-line").call(mf.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(mf.fillGroupStyle,e,!1),goe.getComponentMethod("errorbars","style")(r)}function Px(e,r,t){mf.pointStyle(e.selectAll("path.point"),r,t)}function Rx(e,r,t){mf.textPointStyle(e.selectAll("text"),r,t)}function boe(e,r,t){var a=r[0].trace;a.selectedpoints?(mf.selectedPointStyle(t.selectAll("path.point"),a),mf.selectedTextStyle(t.selectAll("text"),a)):(Px(t,a,e),Rx(t,a,e))}TE.exports={style:xoe,stylePoints:Px,styleText:Rx,styleOnSelect:boe}});var AE=B((Y3e,ME)=>{"use strict";var yf=xr(),_oe=wn();ME.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&yf.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&yf.opacity(i)?i:l&&yf.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?yf.opacity(n)<.3?yf.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&yf.opacity(a)&&_oe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var CE=B((G3e,qE)=>{"use strict";var lp=Pe(),kE=gi(),woe=yr(),Toe=AE(),Nx=xr(),Moe=lp.fillText;qE.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),c=[u,f],h=l.hoveron||"",d=l.mode.indexOf("markers")!==-1?3:.5,p=!!l.xperiodalignment,y=!!l.yperiodalignment;if(h.indexOf("points")!==-1){var m=function(Y){if(p){var O=o.c2p(Y.xStart),G=o.c2p(Y.xEnd);return u>=Math.min(O,G)&&u<=Math.max(O,G)?0:1/0}var Z=Math.max(3,Y.mrc||0),$=1-1/Z,te=Math.abs(o.c2p(Y.x)-u);return te=Math.min(O,G)&&f<=Math.max(O,G)?0:1/0}var Z=Math.max(3,Y.mrc||0),$=1-1/Z,te=Math.abs(s.c2p(Y.y)-f);return tefe!=V>=fe&&(Ae=qe[Q-1][0],se=qe[Q][0],V-be&&(ve=Ae+(se-Ae)*(fe-be)/(V-be),Z=Math.min(Z,ve),$=Math.max($,ve)));return Z=Math.max(Z,0),$=Math.min($,o._length),{x0:Z,x1:$,y0:fe,y1:fe}}if(h.indexOf("fills")!==-1&&l._fillElement){var H=N(l._fillElement)&&!N(l._fillExclusionElement);if(H){var U=I(l._polygons);U===null&&(U={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var W=Nx.defaultLine;return Nx.opacity(l.fillcolor)?W=l.fillcolor:Nx.opacity((l.line||{}).color)&&(W=l.line.color),lp.extendFlat(r,{distance:r.maxHoverDistance,x0:U.x0,x1:U.x1,y0:U.y0,y1:U.y1,color:W,hovertemplate:!1}),delete r.index,l.text&&!lp.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var DE=B((U3e,LE)=>{"use strict";var SE=wn();LE.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,c,h=!SE.hasMarkers(o)&&!SE.hasText(o);if(h)return[];if(t===!1)for(s=0;s{"use strict";EE.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var FE=B((W3e,NE)=>{"use strict";var Bv=yr().traceIs,Fx=u2();NE.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Aoe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Aoe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=koe(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!Bv(i,"cartesian")||Bv(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,zE(i,a)){var u=RE(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(zE(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function RE(e){return{v:"x",h:"y"}[e.orientation||"v"]}function zE(e,r){var t=RE(e),a=Bv(e,"box-violin"),n=Bv(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var HE=B((X3e,IE)=>{"use strict";var qoe=gn().isTypedArraySpec;function Coe(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||qoe(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Coe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var YE=B((Z3e,BE)=>{"use strict";var OE=zn().mix,Soe=Nn(),Loe=Pe();BE.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(S,D){return Loe.coerce2(r,t,n.attributes,S,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=OE(i,n.bgColor,n.blend||Soe.lightFraction).toRgbString(),c=l("gridcolor",f),h=l("gridwidth"),d=l("griddash"),p=a("showgrid",n.showGrid||!!c||!!h||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=OE(t.gridcolor,n.bgColor,67).toRgbString(),m=l("minor.gridcolor",y),b=l("minor.gridwidth",t.gridwidth||1),_=l("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!m||!!b||!!_);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=l("zerolinelayer"),M=l("zerolinecolor",i),k=l("zerolinewidth"),A=a("zeroline",n.showGrid||!!M||!!k);A||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var sp=B((J3e,ZE)=>{"use strict";var GE=zr(),Doe=yr(),Yv=Pe(),Eoe=ot(),Poe=On(),Ix=_n(),UE=Qh(),VE=jh(),Roe=rd(),zoe=td(),Noe=HE(),Foe=YE(),Ioe=S2(),WE=md(),op=Aa().WEEKDAY_PATTERN,Hoe=Aa().HOUR_PATTERN;ZE.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",h;if(c==="date"){var d=Doe.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=Yv.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),WE(t,i),Ioe(r,t,a,n),Noe(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==Ix.color.dflt?y:o.color,b=s.label||i._dfltTitle[l];if(zoe(r,t,a,c,n),!u)return t;a("title.text",b),Yv.coerceFont(a,"title.font",o,{overrideDflt:{size:Yv.bigFont(o.size),color:m}}),UE(r,t,a,c);var _=n.hasMinor;if(_&&(Eoe.newContainer(t,"minor"),UE(r,t,a,c,{isMinor:!0})),Roe(r,t,a,c,n),VE(r,t,a,n),_){var w=n.isMinor;n.isMinor=!0,VE(r,t,a,n),n.isMinor=w}Foe(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:_,attributes:Ix}),_&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Poe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Ooe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=XE(i[o]),s){l=op;break}}var u=a("pattern",l);if(u===op)for(o=0;o<2;o++)s=XE(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case op:if(!GE(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case Hoe:if(!GE(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var Yoe=zr(),up=Pe();JE.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,c,h,d,p,y;s&&(c=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],c&&(h=s[o+"side"].split(" ")[0],d=s.domain[o][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(Yoe(r.position)?"free":i[0]||"free"),h=h||(o==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=up.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=up.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(m==="free"){if(o==="y"){var _=a("autoshift");_&&(d=b==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",y);var w=!1;if(l.length&&(w=up.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!w){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),up.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var nP=B((K3e,aP)=>{"use strict";var Ts=Pe(),$E=xr(),Goe=Hi().isUnifiedHover,Uoe=r3(),KE=ot(),Voe=xu(),QE=_n(),Woe=FE(),jE=sp(),Xoe=ys(),eP=fp(),Ox=Ut(),$i=Ox.id2name,rP=Ox.name2id,Zoe=Aa().AX_ID_PATTERN,tP=yr(),cp=tP.traceIs,Hx=tP.getComponentMethod;function vp(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}aP.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},c={},h={},d={},p={},y,m;for(y=0;y{"use strict";var Joe=kr(),iP=yr(),hp=Pe(),Cn=Yr(),dp=Jr();lP.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){dp.redrawComponents(r);return}function l(m){var b=m.xaxis,_=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(Cn.setTranslate,0,0).call(Cn.setScale,1,1),m.plot.call(Cn.setTranslate,b._offset,_._offset).call(Cn.setScale,1,1);var w=m.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(Cn.setPointGroupScale,1,1),w.selectAll(".textpoint").call(Cn.setTextPointsScale,1,1),w.call(Cn.hideOutsideRangePoints,m)}function o(m,b){var _=m.plotinfo,w=_.xaxis,x=_.yaxis,M=w._length,k=x._length,A=!!m.xr1,S=!!m.yr1,D=[];if(A){var E=hp.simpleMap(m.xr0,w.r2l),R=hp.simpleMap(m.xr1,w.r2l),N=E[1]-E[0],I=R[1]-R[0];D[0]=(E[0]*(1-b)+b*R[0]-E[0])/(E[1]-E[0])*M,D[2]=M*(1-b+b*I/N),w.range[0]=w.l2r(E[0]*(1-b)+b*R[0]),w.range[1]=w.l2r(E[1]*(1-b)+b*R[1])}else D[0]=0,D[2]=M;if(S){var H=hp.simpleMap(m.yr0,x.r2l),U=hp.simpleMap(m.yr1,x.r2l),W=H[1]-H[0],Y=U[1]-U[0];D[1]=(H[1]*(1-b)+b*U[1]-H[1])/(H[0]-H[1])*k,D[3]=k*(1-b+b*Y/W),x.range[0]=w.l2r(H[0]*(1-b)+b*U[0]),x.range[1]=x.l2r(H[1]*(1-b)+b*U[1])}else D[1]=0,D[3]=k;dp.drawOne(r,w,{skipTitle:!0}),dp.drawOne(r,x,{skipTitle:!0}),dp.redrawComponents(r,[w._id,x._id]);var O=A?M/D[2]:1,G=S?k/D[3]:1,Z=A?D[0]:0,$=S?D[1]:0,te=A?D[0]/D[2]*M:0,le=S?D[1]/D[3]*k:0,fe=w._offset-te,he=x._offset-le;_.clipRect.call(Cn.setTranslate,Z,$).call(Cn.setScale,1/O,1/G),_.plot.call(Cn.setTranslate,fe,he).call(Cn.setScale,O,G),Cn.setPointGroupScale(_.zoomScalePts,1/O,1/G),Cn.setTextPointsScale(_.zoomScaleTxt,1/O,1/G)}var s;n&&(s=n());function u(){for(var m={},b=0;ba.duration?(u(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return c=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var gl=B(Na=>{"use strict";var mp=kr(),sP=yr(),Ms=Pe(),$oe=Pt(),Koe=Yr(),uP=bg().getModuleCalcData,io=Ut(),Ai=Aa(),Qoe=Qo(),$r=Ms.ensureSingle;function pp(e,r,t){return Ms.ensureSingle(e,r,t,function(a){a.datum(t)})}var As=Ai.zindexSeparator;Na.name="cartesian";Na.attr=["xaxis","yaxis"];Na.idRoot=["x","y"];Na.idRegex=Ai.idRegex;Na.attrRegex=Ai.attrRegex;Na.attributes=PE();Na.layoutAttributes=_n();Na.supplyLayoutDefaults=nP();Na.transitionAxes=oP();Na.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,c;for(u=0;u0){var d=h.id;if(d.indexOf(As)!==-1)continue;d+=As+(u+1),h=Ms.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m1&&(M+=As+x),w.push(o+M),l=0;l1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=$r(a,"path","xlines-above"),r.ylines=$r(a,"path","ylines-above"),r.xaxislayer=$r(a,"g","xaxislayer-above"),r.yaxislayer=$r(a,"g","yaxislayer-above");else{if(!l){var h=$r(a,"g","layer-subplot");r.shapelayer=$r(h,"g","shapelayer"),r.imagelayer=$r(h,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=$r(a,"g","minor-gridlayer"),r.gridlayer=$r(a,"g","gridlayer"),r.zerolinelayer=$r(a,"g","zerolinelayer"));var d=$r(a,"g","layer-between");r.shapelayerBetween=$r(d,"g","shapelayer"),r.imagelayerBetween=$r(d,"g","imagelayer"),$r(a,"path","xlines-below"),$r(a,"path","ylines-below"),r.overlinesBelow=$r(a,"g","overlines-below"),$r(a,"g","xaxislayer-below"),$r(a,"g","yaxislayer-below"),r.overaxesBelow=$r(a,"g","overaxes-below")}r.overplot=$r(a,"g","overplot"),r.plot=$r(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=$r(a,"g","zerolinelayer-above"),l||(r.xlines=$r(a,"path","xlines-above"),r.ylines=$r(a,"path","ylines-above"),r.overlinesAbove=$r(a,"g","overlines-above"),$r(a,"g","xaxislayer-above"),$r(a,"g","yaxislayer-above"),r.overaxesAbove=$r(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,y=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,$r(c.overlinesBelow,"path",y),$r(c.overlinesBelow,"path",m),$r(c.overaxesBelow,"g",y),$r(c.overaxesBelow,"g",m),r.plot=$r(c.overplot,"g",n),$r(c.overlinesAbove,"path",y),$r(c.overlinesAbove,"path",m),$r(c.overaxesAbove,"g",y),$r(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+o).select("."+y),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+o).select("."+y),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}l||(u||(pp(r.minorGridlayer,"g",r.xaxis._id),pp(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(io.idSort),pp(r.gridlayer,"g",r.xaxis._id),pp(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(io.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function vP(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=mp.select(this);f.remove(),hP(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var yp=wn();dP.exports={hasLines:yp.hasLines,hasMarkers:yp.hasMarkers,hasText:yp.hasText,isBubble:yp.isBubble,attributes:bi(),layoutAttributes:Yh(),supplyDefaults:SD(),crossTraceDefaults:ED(),supplyLayoutDefaults:RD(),calc:Ax().calc,crossTraceCalc:iE(),arraysToCalcdata:bx(),plot:xE(),colorbar:np(),formatLabels:wE(),style:zx().style,styleOnSelect:zx().styleOnSelect,hoverPoints:CE(),selectPoints:DE(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:gl(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var gP=B((rxe,yP)=>{"use strict";var ese=kr(),rse=xr(),mP=U3(),Bx=Pe(),tse=Bx.strScale,ase=Bx.strRotate,nse=Bx.strTranslate;yP.exports=function(r,t,a){var n=r.node(),i=mP[a.arrowhead||0],l=mP[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*o+a.standoff,h=l.backoff*s+a.startstandoff,d,p,y,m;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,_=d.y-p.y;if(y=Math.atan2(_,b),m=y+Math.PI,c&&h&&c+h>Math.sqrt(b*b+_*_)){H();return}if(c){if(c*c>b*b+_*_){H();return}var w=c*Math.cos(y),x=c*Math.sin(y);p.x+=w,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(h){if(h*h>b*b+_*_){H();return}var M=h*Math.cos(y),k=h*Math.sin(y);d.x-=M,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var A=n.getTotalLength(),S="";if(A{"use strict";var xP=kr(),Yx=yr(),ise=Pt(),oo=Pe(),Gx=oo.strTranslate,Uv=Jr(),ks=xr(),xl=Yr(),bP=gi(),Ux=da(),Vx=Kl(),Gv=mi(),lse=ot().arrayEditor,ose=gP();TP.exports={draw:sse,drawOne:_P,drawRaw:wP};function sse(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Se="right":Se="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Se]}for(var be=!1,V=["x","y"],j=0;j1)&&(ke===ge?(fr=xe.r2fraction(r["a"+X]),(fr<0||fr>1)&&(be=!0)):be=!0),He=xe._offset+xe.r2p(r[X]),Me=.5}else{var oe=cr==="domain";X==="x"?(ie=r[X],He=oe?xe._offset+xe._length*ie:He=o.l+o.w*ie):(ie=1-r[X],He=oe?xe._offset+xe._length*ie:He=o.t+o.h*ie),Me=r.showarrow?.5:ie}if(r.showarrow){De.head=He;var Ce=r["a"+X];if(Ze=Fe*se(.5,r.xanchor)-Ee*se(.5,r.yanchor),ke===ge){var Ie=Uv.getRefType(ke);Ie==="domain"?(X==="y"&&(Ce=1-Ce),De.tail=xe._offset+xe._length*Ce):Ie==="paper"?X==="y"?(Ce=1-Ce,De.tail=o.t+o.h*Ce):De.tail=o.l+o.w*Ce:De.tail=xe._offset+xe.r2p(Ce),Oe=Ze}else De.tail=He+Ce,Oe=Ze+Ce;De.text=De.tail+Ze;var We=l[X==="x"?"width":"height"];if(ge==="paper"&&(De.head=oo.constrain(De.head,1,We-1)),ke==="pixel"){var Ue=-Math.max(De.tail-3,De.text),Je=Math.min(De.tail+3,De.text)-We;Ue>0?(De.tail+=Ue,De.text+=Ue):Je>0&&(De.tail-=Je,De.text-=Je)}De.tail+=Ge,De.head+=Ge}else Ze=Ne*se(Me,Ve),Oe=Ze,De.text=He+Ze;De.text+=Ge,Ze+=Ge,Oe+=Ge,r["_"+X+"padplus"]=Ne/2+Oe,r["_"+X+"padminus"]=Ne/2-Oe,r["_"+X+"size"]=Ne,r["_"+X+"shift"]=Ze}if(be){A.remove();return}var je=0,vr=0;if(r.align!=="left"&&(je=(Q-fe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(vr=(qe-he)*(r.valign==="middle"?.5:1)),te)$.select("svg").attr({x:E+je-1,y:E+vr}).call(xl.setClipUrl,N?y:null,e);else{var $e=E+vr-le.top,Re=E+je-le.left;W.call(Ux.positionText,Re,$e).call(xl.setClipUrl,N?y:null,e)}I.select("rect").call(xl.setRect,E,E,Q,qe),R.call(xl.setRect,S/2,S/2,ve-S,Ae-S),A.call(xl.setTranslate,Math.round(m.x.text-ve/2),Math.round(m.y.text-Ae/2)),w.attr({transform:"rotate("+b+","+m.x.text+","+m.y.text+")"});var ne=function(Le,Se){_.selectAll(".annotation-arrow-g").remove();var or=m.x.head,lr=m.y.head,ar=m.x.tail+Le,Ar=m.y.tail+Se,Br=m.x.text+Le,tt=m.y.text+Se,jr=oo.rotationXYMatrix(b,Br,tt),ra=oo.apply2DTransform(jr),It=oo.apply2DTransform2(jr),_t=+R.attr("width"),Dt=+R.attr("height"),ga=Br-.5*_t,xa=ga+_t,Gt=tt-.5*Dt,$a=Gt+Dt,gr=[[ga,Gt,ga,$a],[ga,$a,xa,$a],[xa,$a,xa,Gt],[xa,Gt,ga,Gt]].map(It);if(!gr.reduce(function(it,ba){return it^!!oo.segmentsIntersect(or,lr,or+1e6,lr+1e6,ba[0],ba[1],ba[2],ba[3])},!1)){gr.forEach(function(it){var ba=oo.segmentsIntersect(ar,Ar,or,lr,it[0],it[1],it[2],it[3]);ba&&(ar=ba.x,Ar=ba.y)});var ft=r.arrowwidth,Wr=r.arrowcolor,wt=r.arrowside,Et=_.append("g").style({opacity:ks.opacity(Wr)}).classed("annotation-arrow-g",!0),ct=Et.append("path").attr("d","M"+ar+","+Ar+"L"+or+","+lr).style("stroke-width",ft+"px").call(ks.stroke,ks.rgb(Wr));if(ose(ct,wt,r),s.annotationPosition&&ct.node().parentNode&&!a){var Tt=or,Ha=lr;if(r.standoff){var ca=Math.sqrt(Math.pow(or-ar,2)+Math.pow(lr-Ar,2));Tt+=r.standoff*(ar-or)/ca,Ha+=r.standoff*(Ar-lr)/ca}var ai=Et.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ar-Tt)+","+(Ar-Ha),transform:Gx(Tt,Ha)}).style("stroke-width",ft+6+"px").call(ks.stroke,"rgba(0,0,0,0)").call(ks.fill,"rgba(0,0,0,0)"),ni,ta;Gv.init({element:ai.node(),gd:e,prepFn:function(){var it=xl.getTranslate(A);ni=it.x,ta=it.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(it,ba){var Do=ra(ni,ta),Eo=Do[0]+it,Ll=Do[1]+ba;A.call(xl.setTranslate,Eo,Ll),d("x",lo(n,it,"x",o,r)),d("y",lo(i,ba,"y",o,r)),r.axref===r.xref&&d("ax",lo(n,it,"ax",o,r)),r.ayref===r.yref&&d("ay",lo(i,ba,"ay",o,r)),Et.attr("transform",Gx(it,ba)),w.attr({transform:"rotate("+b+","+Eo+","+Ll+")"})},doneFn:function(){Yx.call("_guiRelayout",e,p());var it=document.querySelector(".js-notes-box-panel");it&&it.redraw(it.selectedObj)}})}}};if(r.showarrow&&ne(0,0),x){var ce;Gv.init({element:A.node(),gd:e,prepFn:function(){ce=w.attr("transform")},moveFn:function(Le,Se){var or="pointer";if(r.showarrow)r.axref===r.xref?d("ax",lo(n,Le,"ax",o,r)):d("ax",r.ax+Le),r.ayref===r.yref?d("ay",lo(i,Se,"ay",o.w,r)):d("ay",r.ay+Se),ne(Le,Se);else{if(a)return;var lr,ar;if(n)lr=lo(n,Le,"x",o,r);else{var Ar=r._xsize/o.w,Br=r.x+(r._xshift-r.xshift)/o.w-Ar/2;lr=Gv.align(Br+Le/o.w,Ar,0,1,r.xanchor)}if(i)ar=lo(i,Se,"y",o,r);else{var tt=r._ysize/o.h,jr=r.y-(r._yshift+r.yshift)/o.h-tt/2;ar=Gv.align(jr-Se/o.h,tt,0,1,r.yanchor)}d("x",lr),d("y",ar),(!n||!i)&&(or=Gv.getCursor(n?.5:lr,i?.5:ar,r.xanchor,r.yanchor))}w.attr({transform:Gx(Le,Se)+ce}),Vx(A,or)},clickFn:function(Le,Se){r.captureevents&&e.emit("plotly_clickannotation",k(Se))},doneFn:function(){Vx(A),Yx.call("_guiRelayout",e,p());var Le=document.querySelector(".js-notes-box-panel");Le&&Le.redraw(Le.selectedObj)}})}}s.annotationText?W.call(Ux.makeEditable,{delegate:A,gd:e}).call(Y).on("edit",function(G){r.text=G,this.call(Y),d("text",G),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),Yx.call("_guiRelayout",e,p())}):W.call(Y)}});var SP=B((axe,CP)=>{"use strict";var MP=Pe(),use=yr(),AP=ot().arrayEditor;CP.exports={hasClickToShow:fse,onClick:cse};function fse(e,r){var t=qP(e,r);return t.on.length>0||t.explicitOff.length>0}function cse(e,r){var t=qP(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var Wx=Pe(),gf=xr();LP.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=gf.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),Wx.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),h,d;c.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",o?t.bordercolor:gf.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),y=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",y.bgcolor||(gf.opacity(i)?gf.rgb(i):gf.defaultLine)),b=n("hoverlabel.bordercolor",y.bordercolor||gf.contrast(m)),_=Wx.extendFlat({},y.font);_.color||(_.color=b),Wx.coerceFont(n,"hoverlabel.font",_)}n("captureevents",!!p)}});var EP=B((ixe,DP)=>{"use strict";var Zx=Pe(),qs=Jr(),vse=On(),hse=Xx(),dse=lf();DP.exports=function(r,t){vse(r,t,{name:"annotations",handleItemDefaults:pse})};function pse(e,r,t){function a(w,x){return Zx.coerce(e,r,dse,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){hse(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=o[f],h=qs.coerceRef(e,r,u,c,"","paper");if(h!=="paper"){var d=qs.getFromId(u,h);d._annIndices.push(r._index)}if(qs.coercePosition(r,u,a,h,c,.5),l){var p="a"+c,y=qs.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==h&&(y=r[p]="pixel");var m=y==="pixel"?s[f]:.4;qs.coercePosition(r,u,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(Zx.noneOrAll(e,r,["x","y"]),l&&Zx.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),_=a("yclick");r._xclick=b===void 0?r.x:qs.cleanPosition(b,u,r.xref),r._yclick=_===void 0?r.y:qs.cleanPosition(_,u,r.yref)}}}});var zP=B((lxe,RP)=>{"use strict";var Jx=Pe(),Cs=Jr(),mse=gp().draw;RP.exports=function(r){var t=r._fullLayout,a=Jx.filterVisible(t.annotations);if(a.length&&r._fullData.length)return Jx.syncOrAsync([mse,yse],r)};function yse(e){var r=e._fullLayout;Jx.filterVisible(r.annotations).forEach(function(t){var a=Cs.getFromId(e,t.xref),n=Cs.getFromId(e,t.yref),i=Cs.getRefType(t.xref),l=Cs.getRefType(t.yref);t._extremes={},i==="range"&&PP(t,a),l==="range"&&PP(t,n)})}function PP(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,y=p+f,m=p-f,b;if(o===l){var _=Cs.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),w=Cs.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,m)});b={min:[_.min[0],w.min[0]],max:[_.max[0],w.max[0]]}}else y=i?y+i:y,m=i?m-i:m,b=Cs.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,y),ppadminus:Math.max(u,d,m)});e._extremes[t]=b}});var FP=B((oxe,NP)=>{"use strict";var gse=zr(),xse=vh();NP.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],y=null;i?y=xse(p,t.range):y=Math.pow(10,p),gse(y)||(y=null),n(f+d,y)}for(var h=0;h{"use strict";var $x=gp(),IP=SP();HP.exports={moduleType:"component",name:"annotations",layoutAttributes:lf(),supplyLayoutDefaults:EP(),includeBasePlot:Tv()("annotations"),calcAutorange:zP(),draw:$x.draw,drawOne:$x.drawOne,drawRaw:$x.drawRaw,hasClickToShow:IP.hasClickToShow,onClick:IP.onClick,convertCoords:FP()}});var xp=B((uxe,BP)=>{"use strict";var dt=lf(),bse=ui().overrideAll,_se=ot().templatedArray;BP.exports=bse(_se("annotation",{visible:dt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:dt.xanchor,xshift:dt.xshift,yanchor:dt.yanchor,yshift:dt.yshift,text:dt.text,textangle:dt.textangle,font:dt.font,width:dt.width,height:dt.height,opacity:dt.opacity,align:dt.align,valign:dt.valign,bgcolor:dt.bgcolor,bordercolor:dt.bordercolor,borderpad:dt.borderpad,borderwidth:dt.borderwidth,showarrow:dt.showarrow,arrowcolor:dt.arrowcolor,arrowhead:dt.arrowhead,startarrowhead:dt.startarrowhead,arrowside:dt.arrowside,arrowsize:dt.arrowsize,startarrowsize:dt.startarrowsize,arrowwidth:dt.arrowwidth,standoff:dt.standoff,startstandoff:dt.startstandoff,hovertext:dt.hovertext,hoverlabel:dt.hoverlabel,captureevents:dt.captureevents}),"calc","from-root")});var GP=B((fxe,YP)=>{"use strict";var Kx=Pe(),wse=Jr(),Tse=On(),Mse=Xx(),Ase=xp();YP.exports=function(r,t,a){Tse(r,t,{name:"annotations",handleItemDefaults:kse,fullLayout:a.fullLayout})};function kse(e,r,t,a){function n(o,s){return Kx.coerce(e,r,Ase,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],wse.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Mse(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),Kx.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),Kx.noneOrAll(e,r,["ax","ay"])))}});var XP=B((cxe,WP)=>{"use strict";var UP=Pe(),VP=Jr();WP.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function Qx(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function Cse(e,r){var t=Qx(e.projection,Qx(e.view,Qx(e.model,[r[0],r[1],r[2],1])));return t}ZP.exports=Cse});var KP=B((hxe,$P)=>{"use strict";var Sse=gp().drawRaw,Lse=JP(),Dse=["x","y","z"];$P.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=Lse(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),Sse(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var eR=B((dxe,jP)=>{"use strict";var Ese=yr(),QP=Pe();jP.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:xp()}}},layoutAttributes:xp(),handleDefaults:GP(),includeBasePlot:Pse,convert:XP(),draw:KP()};function Pse(e,r){var t=Ese.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var rR=lf(),tR=aa(),aR=bi().line,Rse=fi().dash,ki=mt().extendFlat,zse=ot().templatedArray,pxe=wv(),xf=tn(),Nse=ha().shapeTexttemplateAttrs,Fse=_h();nR.exports=zse("shape",{visible:ki({},xf.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:ki({},xf.legend,{editType:"calc+arraydraw"}),legendgroup:ki({},xf.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:ki({},xf.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:tR({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:ki({},xf.legendrank,{editType:"calc+arraydraw"}),legendwidth:ki({},xf.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:ki({},rR.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:ki({},rR.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:ki({},aR.color,{editType:"arraydraw"}),width:ki({},aR.width,{editType:"calc+arraydraw"}),dash:ki({},Rse,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Nse({},{keys:Object.keys(Fse)}),font:tR({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var oR=B((yxe,lR)=>{"use strict";var Vv=Pe(),bf=Jr(),Ise=On(),Hse=jx(),iR=eo();lR.exports=function(r,t){Ise(r,t,{name:"shapes",handleItemDefaults:Bse})};function Ose(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Bse(e,r,t){function a(G,Z){return Vv.coerce(e,r,Hse,G,Z)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),Vv.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));for(var c=a("xsizemode"),h=a("ysizemode"),d=["x","y"],p=0;p<2;p++){var y=d[p],m=y+"anchor",b=y==="x"?c:h,_={_fullLayout:t},w,x,M,k=bf.coerceRef(e,r,_,y,void 0,"paper"),A=bf.getRefType(k);if(A==="range"?(w=bf.getFromId(_,k),w._shapeIndices.push(r._index),M=iR.rangeToShapePosition(w),x=iR.shapePositionToRange(w),(w.type==="category"||w.type==="multicategory")&&(a(y+"0shift"),a(y+"1shift"))):x=M=Vv.identity,u){var S=.25,D=.75,E=y+"0",R=y+"1",N=e[E],I=e[R];e[E]=x(e[E],!0),e[R]=x(e[R],!0),b==="pixel"?(a(E,0),a(R,10)):(bf.coercePosition(r,_,a,k,E,S),bf.coercePosition(r,_,a,k,R,D)),r[E]=M(r[E]),r[R]=M(r[R]),e[E]=N,e[R]=I}if(b==="pixel"){var H=e[m];e[m]=x(e[m],!0),bf.coercePosition(r,_,a,k,m,.25),r[m]=M(r[m]),e[m]=H}}u&&Vv.noneOrAll(e,r,["x0","x1","y0","y1"]);var U=s==="line",W,Y;if(u&&(W=a("label.texttemplate")),W||(Y=a("label.text")),Y||W){a("label.textangle");var O=a("label.textposition",U?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Ose(U,O)),a("label.padding"),Vv.coerceFont(a,"label.font",t.font)}}}});var fR=B((gxe,uR)=>{"use strict";var Yse=xr(),sR=Pe();function Gse(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}uR.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),sR.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Yse.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Gse(l,u)),a("newshape.label.padding"),sR.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var pR=B((xxe,dR)=>{"use strict";var eb=Pe(),_f=Jr(),wf=av(),vR=eo();dR.exports=function(r){var t=r._fullLayout,a=eb.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?u+l:l;return{ppad:l,ppadplus:o?c:h,ppadminus:o?h:c}}else return{ppad:l}}function cR(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var c=1/0,h=-1/0,d=r.path.match(wf.segmentRE),p,y,m,b,_;for(e.type==="date"&&(u=vR.decodeDate(u)),p=0;ph&&(h=_)));if(h>=c)return[c,h]}}});var gR=B((bxe,yR)=>{"use strict";var mR=s1();yR.exports={moduleType:"component",name:"shapes",layoutAttributes:jx(),supplyLayoutDefaults:oR(),supplyDrawNewShapeDefaults:fR(),includeBasePlot:Tv()("shapes"),calcAutorange:pR(),draw:mR.draw,drawOne:mR.drawOne}});var rb=B((wxe,bR)=>{"use strict";var xR=Aa(),Wse=ot().templatedArray,_xe=wv();bR.exports=Wse("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",xR.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",xR.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var wR=B((Txe,_R)=>{"use strict";var Xse=Pe(),tb=Jr(),Zse=On(),Jse=rb(),$se="images";_R.exports=function(r,t){var a={name:$se,handleItemDefaults:Kse};Zse(r,t,a)};function Kse(e,r,t){function a(h,d){return Xse.coerce(e,r,Jse,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=tb.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var c=tb.getFromId(l,f);c._imgIndices.push(r._index)}tb.coercePosition(r,l,a,f,u,0)}return r}});var kR=B((Mxe,AR)=>{"use strict";var TR=kr(),Qse=Yr(),Tf=Jr(),MR=Ut(),jse=Qo();AR.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var qR=zr(),eue=vh();CR.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";LR.exports={moduleType:"component",name:"images",layoutAttributes:rb(),supplyLayoutDefaults:wR(),includeBasePlot:Tv()("images"),draw:kR(),convertCoords:SR()}});var bp=B((qxe,ER)=>{"use strict";ER.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var ab=B((Cxe,RR)=>{"use strict";var rue=aa(),tue=Nn(),aue=mt().extendFlat,nue=ui().overrideAll,iue=wh(),PR=ot().templatedArray,lue=PR("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});RR.exports=nue(PR("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:lue,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:aue(iue({editType:"arraydraw"}),{}),font:rue({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:tue.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var IR=B((Sxe,FR)=>{"use strict";var _p=Pe(),zR=On(),NR=ab(),oue=bp(),sue=oue.name,uue=NR.buttons;FR.exports=function(r,t){var a={name:sue,handleItemDefaults:fue};zR(r,t,a)};function fue(e,r,t){function a(l,o){return _p.coerce(e,r,NR,l,o)}var n=zR(e,r,{name:"buttons",handleItemDefaults:cue}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),_p.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),_p.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function cue(e,r){function t(n,i){return _p.coerce(e,r,uue,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var BR=B((Lxe,OR)=>{"use strict";OR.exports=kt;var qi=kr(),HR=xr(),Mf=Yr(),wp=Pe();function kt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}kt.barWidth=2;kt.barLength=20;kt.barRadius=2;kt.barPad=1;kt.barColor="#808BA4";kt.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",p=c==="right",y=c==="up",m=s,b=f,_,w,x,M;!h&&!d&&!p&&!y&&(this.position.direction="down",h=!0);var k=h||y;k?(_=o,w=_+m,h?(x=u,M=Math.min(x+b,l),b=M-x):(M=u+b,x=Math.max(M-b,0),b=M-x)):(x=u,M=x+b,d?(w=o+m,_=Math.max(w-m,0),m=w-_):(_=o,w=Math.min(_+m,i),m=w-_)),this._box={l:_,t:x,w:m,h:b};var A=s>m,S=kt.barLength+2*kt.barPad,D=kt.barWidth+2*kt.barPad,E=o,R=u+f;R+D>l&&(R=l-D);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(HR.fill,kt.barColor),A?(this.hbar=N.attr({rx:kt.barRadius,ry:kt.barRadius,x:E,y:R,width:S,height:D}),this._hbarXMin=E+S/2,this._hbarTranslateMax=m-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>b,H=kt.barWidth+2*kt.barPad,U=kt.barLength+2*kt.barPad,W=o+s,Y=u;W+H>i&&(W=i-H);var O=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-vertical",!0).call(HR.fill,kt.barColor),I?(this.vbar=O.attr({rx:kt.barRadius,ry:kt.barRadius,x:W,y:Y,width:H,height:U}),this._vbarYMin=Y+U/2,this._vbarTranslateMax=b-U):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var G=this.id,Z=_-.5,$=I?w+H+.5:w+.5,te=x-.5,le=A?M+D+.5:M+.5,fe=n._topdefs.selectAll("#"+G).data(A||I?[0]:[]);if(fe.exit().remove(),fe.enter().append("clipPath").attr("id",G).append("rect"),A||I?(this._clipRect=fe.select("rect").attr({x:Math.floor(Z),y:Math.floor(te),width:Math.ceil($)-Math.floor(Z),height:Math.ceil(le)-Math.floor(te)}),this.container.call(Mf.setClipUrl,G,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Mf.setClipUrl,null),delete this._clipRect),A||I){var he=qi.behavior.drag().on("dragstart",function(){qi.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(he);var Q=qi.behavior.drag().on("dragstart",function(){qi.event.sourceEvent.preventDefault(),qi.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(Q),I&&this.vbar.on(".drag",null).call(Q)}this.setTranslate(t,a)};kt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Mf.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};kt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=qi.event.dx),this.vbar&&(t-=qi.event.dy),this.setTranslate(r,t)};kt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=qi.event.deltaY),this.vbar&&(t+=qi.event.deltaY),this.setTranslate(r,t)};kt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=wp.constrain(qi.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=wp.constrain(qi.event.y,s,u),c=(f-s)/(u-s),h=this.position.h-this._box.h;t=c*h}this.setTranslate(r,t)};kt.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=wp.constrain(r||0,0,a),t=wp.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Mf.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Mf.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(Mf.setTranslate,r,t+l*this._vbarTranslateMax)}}});var KR=B((Dxe,$R)=>{"use strict";var Af=kr(),Wv=Pt(),Xv=xr(),kf=Yr(),Sn=Pe(),Tp=da(),vue=ot().arrayEditor,GR=Pa().LINE_SPACING,wr=bp(),hue=BR();$R.exports=function(r){var t=r._fullLayout,a=Sn.filterVisible(t[wr.name]);function n(h){Wv.autoMargin(r,ZR(h))}var i=t._menulayer.selectAll("g."+wr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(wr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Af.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+wr.headerGroupClassName).data(a,due);l.enter().append("g").classed(wr.headerGroupClassName,!0);for(var o=Sn.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var _ue=bp();QR.exports={moduleType:"component",name:_ue.name,layoutAttributes:ab(),supplyLayoutDefaults:IR(),draw:KR()}});var Jv=B((Pxe,ez)=>{"use strict";ez.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var ob=B((Rxe,az)=>{"use strict";var rz=aa(),wue=wh(),Tue=mt().extendDeepAll,Mue=ui().overrideAll,Aue=Ac(),tz=ot().templatedArray,Ss=Jv(),kue=tz("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});az.exports=Mue(tz("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:kue,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Tue(wue({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Aue.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:rz({})},font:rz({}),activebgcolor:{valType:"color",dflt:Ss.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ss.railBgColor},bordercolor:{valType:"color",dflt:Ss.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ss.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ss.tickLength},tickcolor:{valType:"color",dflt:Ss.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ss.minorTickLength}}),"arraydraw","from-root")});var oz=B((zxe,lz)=>{"use strict";var qf=Pe(),nz=On(),iz=ob(),que=Jv(),Cue=que.name,Sue=iz.steps;lz.exports=function(r,t){nz(r,t,{name:Cue,handleItemDefaults:Lue})};function Lue(e,r,t){function a(c,h){return qf.coerce(e,r,iz,c,h)}for(var n=nz(e,r,{name:"steps",handleItemDefaults:Due}),i=0,l=0;l{"use strict";var Ci=kr(),Mp=Pt(),so=xr(),Si=Yr(),Ln=Pe(),Eue=Ln.strTranslate,$v=da(),Pue=ot().arrayEditor,Pr=Jv(),fb=Pa(),fz=fb.LINE_SPACING,sb=fb.FROM_TL,ub=fb.FROM_BR;mz.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=Rue(a,r),i=a._infolayer.selectAll("g."+Pr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Pr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Mp.autoMargin(r,cz(f))}if(i.exit().each(function(){Ci.select(this).selectAll("g."+Pr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Pr.groupClassName).data(n,zue);o.enter().append("g").classed(Pr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",Eue(l-Pr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function cb(e,r){var t=e._dims;return t.inputAreaStart+Pr.stepInset+(t.inputAreaLength-2*Pr.stepInset)*Math.min(1,Math.max(0,r))}function uz(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Pr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Pr.stepInset-2*t.inputAreaStart)))}function Yue(e,r,t){var a=t._dims,n=Ln.ensureSingle(e,"rect",Pr.railTouchRectClass,function(i){i.call(dz,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Pr.tickOffset+t.ticklen+a.labelHeight)}).call(so.fill,t.bgcolor).attr("opacity",0),Si.setTranslate(n,0,a.currentValueTotalHeight)}function Gue(e,r){var t=r._dims,a=t.inputAreaLength-Pr.railInset*2,n=Ln.ensureSingle(e,"rect",Pr.railRectClass);n.attr({width:a,height:Pr.railWidth,rx:Pr.railRadius,ry:Pr.railRadius,"shape-rendering":"crispEdges"}).call(so.stroke,r.bordercolor).call(so.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Si.setTranslate(n,Pr.railInset,(t.inputAreaWidth-Pr.railWidth)*.5+t.currentValueTotalHeight)}});var xz=B((Fxe,gz)=>{"use strict";var Uue=Jv();gz.exports={moduleType:"component",name:Uue.name,layoutAttributes:ob(),supplyLayoutDefaults:oz(),draw:yz()}});var kp=B((Ixe,_z)=>{"use strict";var bz=Nn();_z.exports={bgcolor:{valType:"color",dflt:bz.background,editType:"plot"},bordercolor:{valType:"color",dflt:bz.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var vb=B((Hxe,wz)=>{"use strict";wz.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var qp=B((Oxe,Tz)=>{"use strict";Tz.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var kz=B(Sp=>{"use strict";var Vue=Ut(),Wue=da(),Mz=qp(),Xue=Pa().LINE_SPACING,Cp=Mz.name;function Az(e){var r=e&&e[Cp];return r&&r.visible}Sp.isVisible=Az;Sp.makeData=function(e){for(var r=Vue.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Lp=Pe(),qz=ot(),Cz=Ut(),Zue=kp(),Jue=vb();Sz.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Lp.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=qz.newContainer(i,"rangeslider");function s(M,k){return Lp.coerce(l,o,Zue,M,k)}var u,f;function c(M,k){return Lp.coerce(u,f,Jue,M,k)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(M){return M.substr(0,M.indexOf("y"))===Cz.name2id(a)}).map(function(M){return M.substr(M.indexOf("y"),M.length)}),y=Lp.simpleMap(p,Cz.id2name),m=0;m{"use strict";var $ue=Ut().list,Kue=Vc().getAutoRange,Que=qp();Dz.exports=function(r){for(var t=$ue(r,"x",!0),a=0;a{"use strict";var Dp=kr(),jue=yr(),efe=Pt(),Nt=Pe(),Ep=Nt.strTranslate,Rz=Yr(),uo=xr(),rfe=Gc(),tfe=gl(),hb=Ut(),afe=mi(),nfe=Kl(),Hr=qp();zz.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=O.max)W=R[Y+1];else if(U=O.pmax)W=R[Y+1];else if(U0?e.touches[0].clientX:0}function ife(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Hr.slideBoxClassName).node(),i=e.select("rect."+Hr.grabAreaMinClassName).node(),l=e.select("rect."+Hr.grabAreaMaxClassName).node();function o(){var s=Dp.event,u=s.target,f=Pz(s),c=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=afe.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(b){var _=Pz(b),w=+_-f,x,M,k;switch(u){case n:if(k="ew-resize",h+w>t._length||d+w<0)return;x=h+w,M=d+w;break;case i:if(k="col-resize",h+w>t._length)return;x=h+w,M=d;break;case l:if(k="col-resize",d+w<0)return;x=h,M=d+w;break;default:k="ew-resize",x=c,M=c+w;break}if(M{"use strict";var pfe=Pe(),mfe=kp(),yfe=vb(),db=kz();Fz.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:pfe.extendFlat({},mfe,{yaxis:yfe})}}},layoutAttributes:kp(),handleDefaults:Lz(),calcAutorange:Ez(),draw:Nz(),isVisible:db.isVisible,makeData:db.makeData,autoMarginOpts:db.autoMarginOpts}});var Pp=B((Wxe,Oz)=>{"use strict";var gfe=aa(),Hz=Nn(),xfe=ot().templatedArray,bfe=xfe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});Oz.exports={visible:{valType:"boolean",editType:"plot"},buttons:bfe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:gfe({editType:"plot"}),bgcolor:{valType:"color",dflt:Hz.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Hz.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var pb=B((Xxe,Bz)=>{"use strict";Bz.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var Uz=B((Zxe,Gz)=>{"use strict";var Rp=Pe(),_fe=xr(),wfe=ot(),Tfe=On(),Yz=Pp(),mb=pb();Gz.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=wfe.newContainer(t,"rangeselector");function s(d,p){return Rp.coerce(l,o,Yz,d,p)}var u=Tfe(l,o,{name:"buttons",handleItemDefaults:Mfe,calendar:i}),f=s("visible",u.length>0);if(f){var c=Afe(t,a,n);s("x",c[0]),s("y",c[1]),Rp.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Rp.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",_fe.contrast(h,mb.lightAmount,mb.darkAmount)),s("bordercolor"),s("borderwidth")}};function Mfe(e,r,t,a){var n=a.calendar;function i(s,u){return Rp.coerce(e,r,Yz.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Afe(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var kfe=My(),qfe=Pe().titleCase;Vz.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Cfe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Cfe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=kfe["utc"+qfe(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var eN=B(($xe,jz)=>{"use strict";var Np=kr(),Sfe=yr(),Lfe=Pt(),Xz=xr(),Qz=Yr(),bl=Pe(),Zz=bl.strTranslate,zp=da(),Dfe=Ut(),xb=Pa(),Jz=xb.LINE_SPACING,$z=xb.FROM_TL,Kz=xb.FROM_BR,gb=pb(),Efe=Wz();jz.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Pfe(r),Rfe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Np.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(bl.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Np.select(this),c=Efe(l,u);u._isActive=zfe(l,u,c),f.call(yb,o,u),f.call(Ffe,o,u,r),f.on("click",function(){r._dragged||Sfe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(yb,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(yb,o,u)})}),Hfe(r,s,o,l._name,i)})};function Pfe(e){for(var r=Dfe.list(e,"x",!0),t=[],a=0;a{"use strict";rN.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Pp()}}},layoutAttributes:Pp(),handleDefaults:Uz(),draw:eN()}});var fo=B(bb=>{"use strict";var aN=mt().extendFlat;bb.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",l={x:aN({},t,{}),y:aN({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};bb.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var Ofe=Pe(),Bfe=mu().counter,Yfe=fo().attributes,nN=Aa().idRegex,Gfe=ot(),_b={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Bfe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nN.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nN.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Yfe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Fp(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Ufe(e,r){var t=e.grid||{},a=Fp(r,t,"x"),n=Fp(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var c=Gfe.newContainer(r,"grid");function h(k,A){return Ofe.coerce(t,c,_b,k,A)}var d=h("rows",u),p=h("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!l&&!o){var y=h("pattern")==="independent";y&&(i=!0)}c._hasSubplotGrid=i;var m=h("roworder"),b=m==="top to bottom",_=i?.2:.1,w=i?.3:.1,x,M;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:iN("x",h,_,x,p),y:iN("y",h,w,M,d,b)}}function iN(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),c=f*(1-l),h=0;h{"use strict";uN.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var vN=B((rbe,cN)=>{"use strict";var fN=zr(),Wfe=yr(),Xfe=Pe(),Zfe=ot(),Jfe=wb();cN.exports=function(e,r,t,a){var n="error_"+a.axis,i=Zfe.newContainer(r,n),l=e[n]||{};function o(p,y){return Xfe.coerce(l,i,Jfe,p,y)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),c=!0;f!=="sqrt"&&(c=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),c||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),c||o("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&o(h,!(l.color||fN(l.thickness)||fN(l.width)))}(!a.inherit||!i[h])&&(o("color",t),o("thickness"),o("width",Wfe.traceIs(r,"gl3d")?0:4))}}});var Tb=B((tbe,dN)=>{"use strict";dN.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],h=+i[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var l=hN(t,r.value),o=hN(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function hN(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var yN=B((abe,mN)=>{"use strict";var Mb=zr(),$fe=yr(),Ab=Jr(),Kfe=Pe(),Qfe=Tb();mN.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var gN=kr(),co=zr(),jfe=Yr(),ece=wn();xN.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(_){return _.id});var y=ece.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var m=gN.select(this).selectAll("g.errorbar").data(f,p);if(m.exit().remove(),!!f.length){h.visible||m.selectAll("path.xerror").remove(),d.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var b=m.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),jfe.setClipUrl(m,a.layerClipId,r),m.each(function(_){var w=gN.select(this),x=rce(_,l,o);if(!(y&&!_.vis)){var M,k=w.select("path.yerror");if(d.visible&&co(x.x)&&co(x.yh)&&co(x.ys)){var A=d.width;M="M"+(x.x-A)+","+x.yh+"h"+2*A+"m-"+A+",0V"+x.ys,x.noYS||(M+="m-"+A+",0h"+2*A),i=!k.size(),i?k=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",M)}else k.remove();var S=w.select("path.xerror");if(h.visible&&co(x.y)&&co(x.xh)&&co(x.xs)){var D=(h.copy_ystyle?d:h).width;M="M"+x.xh+","+(x.y-D)+"v"+2*D+"m0,-"+D+"H"+x.xs,x.noXS||(M+="m0,-"+D+"v"+2*D),i=!S.size(),i?S=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",M)}else S.remove()}})}})};function rce(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),co(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),co(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var TN=B((ibe,wN)=>{"use strict";var tce=kr(),_N=xr();wN.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=tce.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(_N.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(_N.stroke,i.color)})}});var kN=B((lbe,AN)=>{"use strict";var Kv=Pe(),MN=ui().overrideAll,Qv=wb(),Ls={error_x:Kv.extendFlat({},Qv),error_y:Kv.extendFlat({},Qv)};delete Ls.error_x.copy_zstyle;delete Ls.error_y.copy_zstyle;delete Ls.error_y.copy_ystyle;var jv={error_x:Kv.extendFlat({},Qv),error_y:Kv.extendFlat({},Qv),error_z:Kv.extendFlat({},Qv)};delete jv.error_x.copy_ystyle;delete jv.error_y.copy_ystyle;delete jv.error_z.copy_ystyle;delete jv.error_z.copy_zstyle;AN.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ls,bar:Ls,histogram:Ls,scatter3d:MN(jv,"calc","nested"),scattergl:MN(Ls,"calc","nested")}},supplyDefaults:vN(),calc:yN(),makeComputeError:Tb(),plot:bN(),style:TN(),hoverInfo:ace};function ace(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var CN=B((obe,qN)=>{"use strict";qN.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var zN=B((sbe,RN)=>{"use strict";var vo=kr(),kb=zn(),Hp=Pt(),SN=yr(),_l=Jr(),Ip=mi(),jn=Pe(),Di=jn.strTranslate,PN=mt().extendFlat,qb=Kl(),Li=Yr(),Cb=xr(),nce=Gc(),ice=da(),lce=bn().flipScale,oce=sp(),sce=fp(),uce=_n(),Sb=Pa(),LN=Sb.LINE_SPACING,DN=Sb.FROM_TL,EN=Sb.FROM_BR,At=CN().cn;function fce(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+At.colorbar).data(cce(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(At.colorbar,!0),t.each(function(a){var n=vo.select(this);jn.ensureSingle(n,"rect",At.cbbg),jn.ensureSingle(n,"g",At.cbfills),jn.ensureSingle(n,"g",At.cblines),jn.ensureSingle(n,"g",At.cbaxis,function(l){l.classed(At.crisp,!0)}),jn.ensureSingle(n,"g",At.cbtitleunshift,function(l){l.append("g").classed(At.cbtitle,!0)}),jn.ensureSingle(n,"rect",At.cboutline);var i=vce(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&hce(n,a,e)}),t.exit().each(function(a){Hp.autoMargin(e,a._id)}).remove(),t.order()}function cce(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(w){return PN(w,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?lce(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f1){var j=Math.pow(10,Math.floor(Math.log(V)/Math.LN10));se*=j*jn.roundUp(V/j,[2,5,10]),(Math.abs(N.start)/N.size+1e-6)%1<2e-6&&(ve.tick0=0)}ve.dtick=se}ve.domain=a?[Q+p/x.h,Q+G-p/x.h]:[Q+d/x.w,Q+G-d/x.w],ve.setScale(),e.attr("transform",Di(Math.round(x.l),Math.round(x.t)));var X=e.select("."+At.cbtitleunshift).attr("transform",Di(-Math.round(x.l),-Math.round(x.t))),ge=ve.ticklabelposition,ke=ve.title.font.size,xe=e.select("."+At.cbaxis),ze,Fe=0,Ee=0;function Ne(Oe,ie){var Me={propContainer:ve,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+At.cbtitle)},Ze=Oe.charAt(0)==="h"?Oe.substr(1):"h"+Oe;e.selectAll("."+Ze+",."+Ze+"-math-group").remove(),nce.draw(t,Oe,PN(Me,ie||{}))}function Ve(){if(a&&Ae||!a&&!Ae){var Oe,ie;S==="top"&&(Oe=d+x.l+Z*y,ie=p+x.t+$*(1-Q-G)+3+ke*.75),S==="bottom"&&(Oe=d+x.l+Z*y,ie=p+x.t+$*(1-Q)-3-ke*.25),S==="right"&&(ie=p+x.t+$*m+3+ke*.75,Oe=d+x.l+Z*Q),Ne(ve._id+"title",{attributes:{x:Oe,y:ie,"text-anchor":a?"start":"middle"}})}}function Ge(){if(a&&!Ae||!a&&Ae){var Oe=ve.position||0,ie=ve._offset+ve._length/2,Me,Ze;if(S==="right")Ze=ie,Me=x.l+Z*Oe+10+ke*(ve.showticklabels?1:.5);else if(Me=ie,S==="bottom"&&(Ze=x.t+$*Oe+10+(ge.indexOf("inside")===-1?ve.tickfont.size:0)+(ve.ticks!=="inside"&&r.ticklen||0)),S==="top"){var cr=A.text.split("
").length;Ze=x.t+$*Oe+10-W-LN*ke*cr}Ne((a?"h":"v")+ve._id+"title",{avoid:{selection:vo.select(t).selectAll("g."+ve._id+"tick"),side:S,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?w.width:w.height},attributes:{x:Me,y:Ze,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function De(){if(!a&&!Ae||a&&Ae){var Oe=e.select("."+At.cbtitle),ie=Oe.select("text"),Me=[-s/2,s/2],Ze=Oe.select(".h"+ve._id+"title-math-group").node(),cr=15.6;ie.node()&&(cr=parseInt(ie.node().style.fontSize,10)*LN);var fr;if(Ze?(fr=Li.bBox(Ze),Ee=fr.width,Fe=fr.height,Fe>cr&&(Me[1]-=(Fe-cr)/2)):ie.node()&&!ie.classed(At.jsPlaceholder)&&(fr=Li.bBox(ie.node()),Ee=fr.width,Fe=fr.height),a){if(Fe){if(Fe+=5,S==="top")ve.domain[1]-=Fe/x.h,Me[1]*=-1;else{ve.domain[0]+=Fe/x.h;var oe=ice.lineCount(ie);Me[1]+=(1-oe)*cr}Oe.attr("transform",Di(Me[0],Me[1])),ve.setScale()}}else Ee&&(S==="right"&&(ve.domain[0]+=(Ee+ke/2)/x.w),Oe.attr("transform",Di(Me[0],Me[1])),ve.setScale())}e.selectAll("."+At.cbfills+",."+At.cblines).attr("transform",a?Di(0,Math.round(x.h*(1-ve.domain[1]))):Di(Math.round(x.w*ve.domain[0]),0)),xe.attr("transform",a?Di(0,Math.round(-x.t)):Di(Math.round(-x.l),0));var Ce=e.select("."+At.cbfills).selectAll("rect."+At.cbfill).attr("style","").data(H);Ce.enter().append("rect").classed(At.cbfill,!0).attr("style",""),Ce.exit().remove();var Ie=D.map(ve.c2p).map(Math.round).sort(function(vr,$e){return vr-$e});Ce.each(function(vr,$e){var Re=[$e===0?D[0]:(H[$e]+H[$e-1])/2,$e===H.length-1?D[1]:(H[$e]+H[$e+1])/2].map(ve.c2p).map(Math.round);a&&(Re[1]=jn.constrain(Re[1]+(Re[1]>Re[0])?1:-1,Ie[0],Ie[1]));var ne=vo.select(this).attr(a?"x":"y",te).attr(a?"y":"x",vo.min(Re)).attr(a?"width":"height",Math.max(W,2)).attr(a?"height":"width",Math.max(vo.max(Re)-vo.min(Re),2));if(r._fillgradient)Li.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var ce=R(vr).replace("e-","");ne.attr("fill",kb(ce).toHexString())}});var We=e.select("."+At.cblines).selectAll("path."+At.cbline).data(k.color&&k.width?U:[]);We.enter().append("path").classed(At.cbline,!0),We.exit().remove(),We.each(function(vr){var $e=te,Re=Math.round(ve.c2p(vr))+k.width/2%1;vo.select(this).attr("d","M"+(a?$e+","+Re:Re+","+$e)+(a?"h":"v")+W).call(Li.lineGroupStyle,k.width,E(vr),k.dash)}),xe.selectAll("g."+ve._id+"tick,path").remove();var Ue=te+W+(s||0)/2-(r.ticks==="outside"?1:0),Je=_l.calcTicks(ve),je=_l.getTickSigns(ve)[2];return _l.drawTicks(t,ve,{vals:ve.ticks==="inside"?_l.clipEnds(ve,Je):Je,layer:xe,path:_l.makeTickPath(ve,Ue,je),transFn:_l.makeTransTickFn(ve)}),_l.drawLabels(t,ve,{vals:Je,layer:xe,transFn:_l.makeTransTickLabelFn(ve),labelFns:_l.makeLabelFns(ve,Ue)})}function He(){var Oe,ie=W+s/2;ge.indexOf("inside")===-1&&(Oe=Li.bBox(xe.node()),ie+=a?Oe.width:Oe.height),ze=X.select("text");var Me=0,Ze=a&&S==="top",cr=!a&&S==="right",fr=0;if(ze.node()&&!ze.classed(At.jsPlaceholder)){var oe,Ce=X.select(".h"+ve._id+"title-math-group").node();Ce&&(a&&Ae||!a&&!Ae)?(Oe=Li.bBox(Ce),Me=Oe.width,oe=Oe.height):(Oe=Li.bBox(X.node()),Me=Oe.right-x.l-(a?te:qe),oe=Oe.bottom-x.t-(a?qe:te),!a&&S==="top"&&(ie+=Oe.height,fr=Oe.height)),cr&&(ze.attr("transform",Di(Me/2+ke/2,0)),Me*=2),ie=Math.max(ie,a?Me:oe)}var Ie=(a?d:p)*2+ie+u+s/2,We=0;!a&&A.text&&h==="bottom"&&m<=0&&(We=Ie/2,Ie+=We,fr+=We),w._hColorbarMoveTitle=We,w._hColorbarMoveCBTitle=fr;var Ue=u+s,Je=(a?te:qe)-Ue/2-(a?d:0),je=(a?qe:te)-(a?O:p+fr-We);e.select("."+At.cbbg).attr("x",Je).attr("y",je).attr(a?"width":"height",Math.max(Ie-We,2)).attr(a?"height":"width",Math.max(O+Ue,2)).call(Cb.fill,f).call(Cb.stroke,r.bordercolor).style("stroke-width",u);var vr=cr?Math.max(Me-10,0):0;e.selectAll("."+At.cboutline).attr("x",(a?te:qe+d)+vr).attr("y",(a?qe+p-O:te)+(Ze?Fe:0)).attr(a?"width":"height",Math.max(W,2)).attr(a?"height":"width",Math.max(O-(a?2*p+Fe:2*d+vr),2)).call(Cb.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var $e=a?le*Ie:0,Re=a?0:(1-fe)*Ie-fr;if($e=_?x.l-$e:-$e,Re=b?x.t-Re:-Re,e.attr("transform",Di($e,Re)),!a&&(u||kb(f).getAlpha()&&!kb.equals(w.paper_bgcolor,f))){var ne=xe.selectAll("text"),ce=ne[0].length,Le=e.select("."+At.cbbg).node(),Se=Li.bBox(Le),or=Li.getTranslate(e),lr=2;ne.each(function(ga,xa){var Gt=0,$a=ce-1;if(xa===Gt||xa===$a){var gr=Li.bBox(this),ft=Li.getTranslate(this),Wr;if(xa===$a){var wt=gr.right+ft.x,Et=Se.right+or.x+qe-u-lr+y;Wr=Et-wt,Wr>0&&(Wr=0)}else if(xa===Gt){var ct=gr.left+ft.x,Tt=Se.left+or.x+qe+u+lr;Wr=Tt-ct,Wr<0&&(Wr=0)}Wr&&(ce<3?this.setAttribute("transform","translate("+Wr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ar={},Ar=DN[c],Br=EN[c],tt=DN[h],jr=EN[h],ra=Ie-W;a?(i==="pixels"?(ar.y=m,ar.t=O*tt,ar.b=O*jr):(ar.t=ar.b=0,ar.yt=m+n*tt,ar.yb=m-n*jr),o==="pixels"?(ar.x=y,ar.l=Ie*Ar,ar.r=Ie*Br):(ar.l=ra*Ar,ar.r=ra*Br,ar.xl=y-l*Ar,ar.xr=y+l*Br)):(i==="pixels"?(ar.x=y,ar.l=O*Ar,ar.r=O*Br):(ar.l=ar.r=0,ar.xl=y+n*Ar,ar.xr=y-n*Br),o==="pixels"?(ar.y=1-m,ar.t=Ie*tt,ar.b=Ie*jr):(ar.t=ra*tt,ar.b=ra*jr,ar.yt=m-l*tt,ar.yb=m+l*jr));var It=r.y<.5?"b":"t",_t=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Dt={r:w.width-Je-$e,l:Je+ar.r,b:w.height-je-Re,t:je+ar.b};_&&b?Hp.autoMargin(t,r._id,ar):_?t._fullLayout._reservedMargin[r._id][It]=Dt[It]:b||a?t._fullLayout._reservedMargin[r._id][_t]=Dt[_t]:t._fullLayout._reservedMargin[r._id][It]=Dt[It]}return jn.syncOrAsync([Hp.previousPromises,Ve,De,Ge,Hp.previousPromises,He],t)}function hce(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Ip.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),qb(e)},moveFn:function(u,f){e.attr("transform",l+Di(u,f)),o=Ip.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Ip.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Ip.getCursor(o,s,r.xanchor,r.yanchor);qb(e,c)},doneFn:function(){if(qb(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?SN.call("_guiRestyle",t,u,r._traceIndex):SN.call("_guiRelayout",t,u)}}})}function dce(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";NN.exports={moduleType:"component",name:"colorbar",attributes:$h(),supplyDefaults:Hg(),draw:zN().draw,hasColorbar:Eg()}});var HN=B((fbe,IN)=>{"use strict";IN.exports={moduleType:"component",name:"legend",layoutAttributes:z2(),supplyLayoutDefaults:I2(),draw:$2(),style:W2()}});var BN=B((cbe,ON)=>{"use strict";ON.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var GN=B((vbe,YN)=>{"use strict";YN.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var Db=B((hbe,XN)=>{"use strict";var mce=yr(),WN=Pe(),Lb=WN.extendFlat,UN=WN.extendDeep;function VN(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function yce(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}XN.exports=function(r,t){var a,n=r.data,i=r.layout,l=UN([],n),o=UN({},i,VN(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var gce=Fh().EventEmitter,xce=yr(),bce=Pe(),ZN=gs(),_ce=Db(),wce=W1(),Tce=X1();function Mce(e,r){var t=new gce,a=_ce(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=ZN.getDelay(n._fullLayout);setTimeout(function(){var s=wce(n),u=document.createElement("canvas");u.id=bce.randstr(),t=Tce({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=ZN.getRedrawFunc(n);return xce.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}JN.exports=Mce});var jN=B((pbe,QN)=>{"use strict";var KN=gs(),Ace={getDelay:KN.getDelay,getRedrawFunc:KN.getRedrawFunc,clone:Db(),toSVG:W1(),svgToImg:X1(),toImage:$N(),downloadImage:px()};QN.exports=Ace});var rF=B(wl=>{"use strict";wl.version=th().version;W4();z8();var kce=yr(),e0=wl.register=kce.register,Pb=nD(),eF=Object.keys(Pb);for(Op=0;Op{"use strict";tF.exports=rF()});var Yp=B((gbe,nF)=>{"use strict";nF.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Tl=B((xbe,sF)=>{"use strict";var St=bi(),iF=di().axisHoverFormat,qce=ha().hovertemplateAttrs,Cce=ha().texttemplateAttrs,oF=Hc(),Sce=aa(),lF=Yp(),Lce=fi().pattern,Ds=mt().extendFlat,Rb=Sce({editType:"calc",arrayOk:!0,colorEditType:"style"}),Dce=St.marker,Ece=Dce.line,Pce=Ds({},Ece.width,{dflt:0}),Rce=Ds({width:Pce,editType:"calc"},oF("marker.line")),zce=Ds({line:Rce,editType:"calc"},oF("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Lce,cornerradius:{valType:"any",editType:"calc"}});sF.exports={x:St.x,x0:St.x0,dx:St.dx,y:St.y,y0:St.y0,dy:St.dy,xperiod:St.xperiod,yperiod:St.yperiod,xperiod0:St.xperiod0,yperiod0:St.yperiod0,xperiodalignment:St.xperiodalignment,yperiodalignment:St.yperiodalignment,xhoverformat:iF("x"),yhoverformat:iF("y"),text:St.text,texttemplate:Cce({editType:"plot"},{keys:lF.eventDataKeys}),hovertext:St.hovertext,hovertemplate:qce({},{keys:lF.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Ds({},Rb,{}),insidetextfont:Ds({},Rb,{}),outsidetextfont:Ds({},Rb,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Ds({},St.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:zce,offsetgroup:St.offsetgroup,alignmentgroup:St.alignmentgroup,selected:{marker:{opacity:St.selected.marker.opacity,color:St.selected.marker.color,editType:"style"},textfont:St.selected.textfont,editType:"style"},unselected:{marker:{opacity:St.unselected.marker.opacity,color:St.unselected.marker.color,editType:"style"},textfont:St.unselected.textfont,editType:"style"},zorder:St.zorder}});var Gp=B((bbe,uF)=>{"use strict";uF.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var zb=B((_be,vF)=>{"use strict";var Nce=xr(),fF=bn().hasColorscale,cF=Ru(),Fce=Pe().coercePattern;vF.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=fF(r,"marker");o&&cF(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Nce.defaultLine),fF(r,"marker.line")&&cF(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),Fce(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var Ki=B((wbe,gF)=>{"use strict";var hF=zr(),Sf=Pe(),dF=xr(),Ice=yr(),Hce=zv(),Oce=_s(),Bce=zb(),Yce=ff(),pF=Tl(),Up=Sf.coerceFont;function Gce(e,r,t,a){function n(u,f){return Sf.coerce(e,r,pF,u,f)}var i=Hce(e,r,a,n);if(!i){r.visible=!1;return}Oce(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var l=n("textposition");yF(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Bce(e,r,n,t,a);var o=(r.marker.line||{}).color,s=Ice.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||dF.defaultLine,{axis:"y"}),s(e,r,o||dF.defaultLine,{axis:"x",inherit:"y"}),Sf.coerceSelectionMarkerOpacity(r,n)}function Uce(e,r){var t,a;function n(o,s){return Sf.coerce(a._input,a,pF,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&hF(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function yF(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,h=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",y=d||n==="outside";if(p||y){var m=Up(a,"textfont",t.font),b=Sf.extendFlat({},m),_=e.textfont&&e.textfont.color,w=!_;if(w&&delete b.color,Up(a,"insidetextfont",b),h){var x=Sf.extendFlat({},m);w&&delete x.color,Up(a,"pathbar.textfont",x)}y&&Up(a,"outsidetextfont",m),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate")}p&&c&&a("insidetextanchor")}gF.exports={supplyDefaults:Gce,crossTraceDefaults:Uce,handleText:yF,validateCornerradius:mF}});var Nb=B((Tbe,xF)=>{"use strict";var Vce=yr(),Wce=Jr(),Xce=Pe(),Zce=Gp(),Jce=Ki().validateCornerradius;xF.exports=function(e,r,t){function a(y,m){return Xce.coerce(e,r,Zce,y,m)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[h]&&(l=!0),o[h]=!0),c.visible&&c.type==="histogram"){var d=Wce.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=Jce(p)}});var Vp=B((Mbe,bF)=>{"use strict";var Lf=Pe();bF.exports=function(r,t){for(var a=0;a{"use strict";var _F=Jr(),wF=ws(),TF=bn().hasColorscale,MF=Oc(),$ce=Vp(),Kce=Nv();AF.exports=function(r,t){var a=_F.getFromId(r,t.xaxis||"x"),n=_F.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),o=n.makeCalcdata(t,"y"),s=wF(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=wF(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var h=Math.min(l.length,i.length),d=new Array(h),p=0;p{"use strict";var Qce=kr(),jce=Pe();function eve(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=Qce.select(this).select("text");jce.setTransormAndDisplay(u,s)}})}}function rve(e,r,t){if(t.uniformtext.mode){var a=qF(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var ave=zr(),nve=zn(),SF=Pe().isArrayOrTypedArray;Es.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Es.coerceNumber=function(e,r,t){if(ave(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Es.coerceColor=function(e,r,t){return nve(r).isValid()?r:t!==void 0?t:e.dflt};Es.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Es.getValue=function(e,r){var t;return SF(e)?r{"use strict";var r0=kr(),ive=xr(),t0=Yr(),LF=Pe(),DF=yr(),EF=Ei().resizeText,Fb=Tl(),lve=Fb.textfont,ove=Fb.insidetextfont,sve=Fb.outsidetextfont,Ca=Wp();function uve(e){var r=r0.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");EF(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&r0.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=r0.select(this),l=n[0].trace;PF(i,l,e)}),DF.getComponentMethod("errorbars","style")(r)}function PF(e,r,t){t0.pointStyle(e.selectAll("path"),r,t),RF(e,r,t)}function RF(e,r,t){e.selectAll("text").each(function(a){var n=r0.select(this),i=LF.ensureUniformFontSize(t,zF(n,a,r,t));t0.font(n,i)})}function fve(e,r,t){var a=r[0].trace;a.selectedpoints?cve(t,a,e):(PF(t,a,e),DF.getComponentMethod("errorbars","style")(t))}function cve(e,r,t){t0.selectedPointStyle(e.selectAll("path"),r),vve(e.selectAll("text"),r,t)}function vve(e,r,t){e.each(function(a){var n=r0.select(this),i;if(a.selected){i=LF.ensureUniformFontSize(t,zF(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),t0.font(n,i)}else t0.selectedTextStyle(n,r)})}function zF(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=HF(r,t);i=FF(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=IF(t,r.i,n));return i}function NF(e,r,t){return Ib(lve,e.textfont,r,t)}function FF(e,r,t,a){var n=NF(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:ive.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),Ib(ove,e.insidetextfont,r,n)}function IF(e,r,t){var a=NF(e,r,t);return Ib(sve,e.outsidetextfont,r,a)}function Ib(e,r,t,a){r=r||{};var n=Ca.getValue(r.family,t),i=Ca.getValue(r.size,t),l=Ca.getValue(r.color,t),o=Ca.getValue(r.weight,t),s=Ca.getValue(r.style,t),u=Ca.getValue(r.variant,t),f=Ca.getValue(r.textcase,t),c=Ca.getValue(r.lineposition,t),h=Ca.getValue(r.shadow,t);return{family:Ca.coerceString(e.family,n,a.family),size:Ca.coerceNumber(e.size,i,a.size),color:Ca.coerceColor(e.color,l,a.color),weight:Ca.coerceString(e.weight,o,a.weight),style:Ca.coerceString(e.style,s,a.style),variant:Ca.coerceString(e.variant,u,a.variant),textcase:Ca.coerceString(e.variant,f,a.textcase),lineposition:Ca.coerceString(e.variant,c,a.lineposition),shadow:Ca.coerceString(e.variant,h,a.shadow)}}function HF(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}OF.exports={style:uve,styleTextPoints:RF,styleOnSelect:fve,getInsideTextFont:FF,getOutsideTextFont:IF,getBarColor:HF,resizeText:EF}});var Ef=B((Sbe,ZF)=>{"use strict";var Xp=kr(),Zp=zr(),ma=Pe(),hve=da(),dve=xr(),po=Yr(),pve=yr(),Jp=Jr().tickText,BF=Ei(),mve=BF.recordMinTextSize,yve=BF.clearMinTextSize,Hb=ho(),Df=Wp(),gve=Yp(),YF=Tl(),xve=YF.text,bve=YF.textposition,_ve=Hi().appendArrayPointValue,Za=gve.TEXTPAD;function wve(e){return e.id}function Tve(e){if(e.ids)return wve}function Ob(e){return(e>0)-(e<0)}function Qi(e,r){return e0}function Ave(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},yve("bar",s));var f=ma.makeTraceGroups(a,t,"trace bars").each(function(c){var h=Xp.select(this),d=c[0].trace,p=c[0].t,y=d.type==="waterfall",m=d.type==="funnel",b=d.type==="histogram",_=d.type==="bar",w=_||m,x=0;y&&d.connector.visible&&d.connector.mode==="between"&&(x=d.connector.line.width/2);var M=d.orientation==="h",k=UF(n),A=ma.ensureSingle(h,"g","points"),S=Tve(d),D=A.selectAll("g.point").data(ma.identity,S);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(R,N){var I=Xp.select(this),H=Mve(R,l,o,M),U=H[0][0],W=H[0][1],Y=H[1][0],O=H[1][1],G=(M?W-U:O-Y)===0;G&&w&&Df.getLineWidth(d,R)&&(G=!1),G||(G=!Zp(U)||!Zp(W)||!Zp(Y)||!Zp(O)),R.isBlank=G,G&&(M?W=U:O=Y),x&&!G&&(M?(U-=Qi(U,W)*x,W+=Qi(U,W)*x):(Y-=Qi(Y,O)*x,O+=Qi(Y,O)*x));var Z,$;if(d.type==="waterfall"){if(!G){var te=d[R.dir].marker;Z=te.line.width,$=te.color}}else Z=Df.getLineWidth(d,R),$=R.mc||d.marker.color;function le(ie){var Me=Xp.round(Z/2%1,2);return n.gap===0&&n.groupgap===0?Xp.round(Math.round(ie)-Me,2):ie}function fe(ie,Me,Ze){return Ze&&ie===Me?ie:Math.abs(ie-Me)>=2?le(ie):ie>Me?Math.ceil(ie):Math.floor(ie)}var he=dve.opacity($),Q=he<1||Z>.01?le:fe;e._context.staticPlot||(U=Q(U,W,M),W=Q(W,U,M),Y=Q(Y,O,!M),O=Q(O,Y,!M));var qe=M?l.c2p:o.c2p,ve;R.s0>0?ve=R._sMax:R.s0<0?ve=R._sMin:ve=R.s1>0?R._sMax:R._sMin;function Ae(ie,Me){if(!ie)return 0;var Ze=Math.abs(M?O-Y:W-U),cr=Math.abs(M?W-U:O-Y),fr=Q(Math.abs(qe(ve,!0)-qe(0,!0))),oe=R.hasB?Math.min(Ze/2,cr/2):Math.min(Ze/2,fr),Ce;if(Me==="%"){var Ie=Math.min(50,ie);Ce=Ze*(Ie/100)}else Ce=ie;return Q(Math.max(Math.min(Ce,oe),0))}var se=_||b?Ae(p.cornerradiusvalue,p.cornerradiusform):0,be,V,j="M"+U+","+Y+"V"+O+"H"+W+"V"+Y+"Z",X=0;if(se&&R.s){var ge=Ob(R.s0)===0||Ob(R.s)===Ob(R.s0)?R.s1:R.s0;if(X=Q(R.hasB?0:Math.abs(qe(ve,!0)-qe(ge,!0))),X0?Math.sqrt(X*(2*se-X)):0,Ne=ke>0?Math.max:Math.min;be="M"+U+","+Y+"V"+(O-Fe*xe)+"H"+Ne(W-(se-X)*ke,U)+"A "+se+","+se+" 0 0 "+ze+" "+W+","+(O-se*xe-Ee)+"V"+(Y+se*xe+Ee)+"A "+se+","+se+" 0 0 "+ze+" "+Ne(W-(se-X)*ke,U)+","+(Y+Fe*xe)+"Z"}else if(R.hasB)be="M"+(U+se*ke)+","+Y+"A "+se+","+se+" 0 0 "+ze+" "+U+","+(Y+se*xe)+"V"+(O-se*xe)+"A "+se+","+se+" 0 0 "+ze+" "+(U+se*ke)+","+O+"H"+(W-se*ke)+"A "+se+","+se+" 0 0 "+ze+" "+W+","+(O-se*xe)+"V"+(Y+se*xe)+"A "+se+","+se+" 0 0 "+ze+" "+(W-se*ke)+","+Y+"Z";else{V=Math.abs(O-Y)+X;var Ve=V0?Math.sqrt(X*(2*se-X)):0,De=xe>0?Math.max:Math.min;be="M"+(U+Ve*ke)+","+Y+"V"+De(O-(se-X)*xe,Y)+"A "+se+","+se+" 0 0 "+ze+" "+(U+se*ke-Ge)+","+O+"H"+(W-se*ke+Ge)+"A "+se+","+se+" 0 0 "+ze+" "+(W-Ve*ke)+","+De(O-(se-X)*xe,Y)+"V"+Y+"Z"}}else be=j}else be=j;var He=GF(ma.ensureSingle(I,"path"),s,n,i);if(He.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((W-U)*(O-Y))||G&&e._context.staticPlot?"M0,0Z":be).call(po.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Oe=po.makePointStyleFns(d);po.singlePointStyle(R,He,d,Oe,e)}kve(e,r,I,c,N,U,W,Y,O,se,X,n,i),r.layerClipId&&po.hideOutsideRangePoint(R,I.select("text"),l,o,d.xcalendar,d.ycalendar)});var E=d.cliponaxis===!1;po.setClipUrl(h,E?null:r.layerClipId,e)});pve.getComponentMethod("errorbars","plot")(e,f,r,n)}function kve(e,r,t,a,n,i,l,o,s,u,f,c,h){var d=r.xaxis,p=r.yaxis,y=e._fullLayout,m;function b(V,j,X){var ge=ma.ensureSingle(V,"text").text(j).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(po.font,X).call(hve.convertToTspans,e);return ge}var _=a[0].trace,w=_.orientation==="h",x=Sve(y,a,n,d,p);m=Lve(_,n);var M=c.mode==="stack"||c.mode==="relative",k=a[n],A=!M||k._outmost,S=k.hasB,D=u&&u-f>Za;if(!x||m==="none"||(k.isBlank||i===l||o===s)&&(m==="auto"||m==="inside")){t.select("text").remove();return}var E=y.font,R=Hb.getBarColor(a[n],_),N=Hb.getInsideTextFont(_,n,E,R),I=Hb.getOutsideTextFont(_,n,E),H=_.insidetextanchor||"end",U=t.datum();w?d.type==="log"&&U.s0<=0&&(d.range[0]0&&le>0,Q;D?S?Q=Ps(O-2*u,G,te,le,w)||Ps(O,G-2*u,te,le,w):w?Q=Ps(O-(u-f),G,te,le,w)||Ps(O,G-2*(u-f),te,le,w):Q=Ps(O,G-(u-f),te,le,w)||Ps(O-2*(u-f),G,te,le,w):Q=Ps(O,G,te,le,w),he&&Q?m="inside":(m="outside",Z.remove(),Z=null)}else m="inside";if(!Z){fe=ma.ensureUniformFontSize(e,m==="outside"?I:N),Z=b(t,x,fe);var qe=Z.attr("transform");if(Z.attr("transform",""),$=po.bBox(Z.node()),te=$.width,le=$.height,Z.attr("transform",qe),te<=0||le<=0){Z.remove();return}}var ve=_.textangle,Ae,se;m==="outside"?(se=_.constraintext==="both"||_.constraintext==="outside",Ae=Cve(i,l,o,s,$,{isHorizontal:w,constrained:se,angle:ve})):(se=_.constraintext==="both"||_.constraintext==="inside",Ae=XF(i,l,o,s,$,{isHorizontal:w,constrained:se,angle:ve,anchor:H,hasB:S,r:u,overhead:f})),Ae.fontSize=fe.size,mve(_.type==="histogram"?"bar":_.type,Ae,y),k.transform=Ae;var be=GF(Z,y,c,h);ma.setTransormAndDisplay(be,Ae)}function Ps(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function VF(e){return e==="auto"?0:e}function WF(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function XF(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",h=i.leftToRight||0,d=(h+1)/2,p=1-d,y=i.hasB,m=i.r,b=i.overhead,_=n.width,w=n.height,x=Math.abs(r-e),M=Math.abs(a-t),k=x>2*Za&&M>2*Za?Za:0;x-=2*k,M-=2*k;var A=VF(s);s==="auto"&&!(_<=x&&w<=M)&&(_>x||w>M)&&(!(_>M||w>x)||_Za){var R=qve(e,r,t,a,S,m,b,l,y);D=R.scale,E=R.pad}else D=1,o&&(D=Math.min(1,x/S.x,M/S.y)),E=0;var N=n.left*p+n.right*d,I=(n.top+n.bottom)/2,H=(e+Za)*p+(r-Za)*d,U=(t+a)/2,W=0,Y=0;if(c||f){var O=(l?S.x:S.y)/2;m&&(f||y)&&(k+=E);var G=l?Qi(e,r):Qi(t,a);l?c?(H=e+G*k,W=-G*O):(H=r-G*k,W=G*O):c?(U=t+G*k,Y=-G*O):(U=a-G*k,Y=G*O)}return{textX:N,textY:I,targetX:H,targetY:U,anchorX:W,anchorY:Y,scale:D,rotate:A}}function qve(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*Za),f=Math.max(0,Math.abs(a-t)-2*Za),c=i-Za,h=l?c-Math.sqrt(c*c-(c-l)*(c-l)):c,d=s?c*2:o?c-l:2*h,p=s?c*2:o?2*h:c-l,y,m,b,_,w;return n.y/n.x>=f/(u-d)?_=f/n.y:n.y/n.x<=(f-p)/u?_=u/n.x:!s&&o?(y=n.x*n.x+n.y*n.y/4,m=-2*n.x*(u-c)-n.y*(f/2-c),b=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,_=(-m+Math.sqrt(m*m-4*y*b))/(2*y)):s?(y=(n.x*n.x+n.y*n.y)/4,m=-n.x*(u/2-c)-n.y*(f/2-c),b=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,_=(-m+Math.sqrt(m*m-4*y*b))/(2*y)):(y=n.x*n.x/4+n.y*n.y,m=-n.x*(u/2-c)-2*n.y*(f-c),b=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,_=(-m+Math.sqrt(m*m-4*y*b))/(2*y)),_=Math.min(1,_),o?w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*_)/2)*(c-(f-n.y*_)/2)))-l):w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*_)/2)*(c-(u-n.x*_)/2)))-l),{scale:_,pad:w}}function Cve(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),h=Math.abs(a-t),d;l?d=h>2*Za?Za:0:d=c>2*Za?Za:0;var p=1;o&&(p=l?Math.min(1,h/f):Math.min(1,c/u));var y=VF(s),m=WF(n,y),b=(l?m.x:m.y)/2,_=(n.left+n.right)/2,w=(n.top+n.bottom)/2,x=(e+r)/2,M=(t+a)/2,k=0,A=0,S=l?Qi(r,e):Qi(t,a);return l?(x=r-S*d,k=S*b):(M=a+S*d,A=-S*b),{textX:_,textY:w,targetX:x,targetY:M,anchorX:k,anchorY:A,scale:p,rotate:y}}function Sve(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=Dve(e,r,t,a,n):i.textinfo?o=Eve(r,t,a,n):o=Df.getValue(i.text,t),Df.coerceString(xve,o)}function Lve(e,r){var t=Df.getValue(e.textposition,r);return Df.coerceEnumerated(bve,t)}function Dve(e,r,t,a,n){var i=r[0].trace,l=ma.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,h,d,p;f?(c="y",h=n,d="x",p=a):(c="x",h=a,d="y",p=n);function y(k){return Jp(h,h.c2l(k),!0).text}function m(k){return Jp(p,p.c2l(k),!0).text}var b=r[t],_={};_.label=b.p,_.labelLabel=_[c+"Label"]=y(b.p);var w=ma.castOption(i,b.i,"text");(w===0||w)&&(_.text=w),_.value=b.s,_.valueLabel=_[d+"Label"]=m(b.s);var x={};_ve(x,i,b.i),(o||x.x===void 0)&&(x.x=f?_.value:_.label),(o||x.y===void 0)&&(x.y=f?_.label:_.value),(o||x.xLabel===void 0)&&(x.xLabel=f?_.valueLabel:_.labelLabel),(o||x.yLabel===void 0)&&(x.yLabel=f?_.labelLabel:_.valueLabel),s&&(_.delta=+b.rawS||b.s,_.deltaLabel=m(_.delta),_.final=b.v,_.finalLabel=m(_.final),_.initial=_.final-_.delta,_.initialLabel=m(_.initial)),u&&(_.value=b.s,_.valueLabel=m(_.value),_.percentInitial=b.begR,_.percentInitialLabel=ma.formatPercent(b.begR),_.percentPrevious=b.difR,_.percentPreviousLabel=ma.formatPercent(b.difR),_.percentTotal=b.sumR,_.percenTotalLabel=ma.formatPercent(b.sumR));var M=ma.castOption(i,b.i,"customdata");return M&&(_.customdata=M),ma.texttemplateString(l,_,e._d3locale,x,_,i._meta||{})}function Eve(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(M){var k=i?a:t;return Jp(k,M,!0).text}function u(M){var k=i?t:a;return Jp(k,+M,!0).text}var f=n.textinfo,c=e[r],h=f.split("+"),d=[],p,y=function(M){return h.indexOf(M)!==-1};if(y("label")&&d.push(s(e[r].p)),y("text")&&(p=ma.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),l){var m=+c.rawS||c.s,b=c.v,_=b-m;y("initial")&&d.push(u(_)),y("delta")&&d.push(u(m)),y("final")&&d.push(u(b))}if(o){y("value")&&d.push(u(c.s));var w=0;y("percent initial")&&w++,y("percent previous")&&w++,y("percent total")&&w++;var x=w>1;y("percent initial")&&(p=ma.formatPercent(c.begR),x&&(p+=" of initial"),d.push(p)),y("percent previous")&&(p=ma.formatPercent(c.difR),x&&(p+=" of previous"),d.push(p)),y("percent total")&&(p=ma.formatPercent(c.sumR),x&&(p+=" of total"),d.push(p))}return d.join("
")}ZF.exports={plot:Ave,toMoveInsideBar:XF}});var n0=B((Lbe,QF)=>{"use strict";var a0=gi(),Pve=yr(),JF=xr(),Rve=Pe().fillText,zve=Wp().getLineWidth,Bb=Jr().hoverLabelText,Nve=Mt().BADNUM;function Fve(e,r,t,a,n){var i=$F(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=KF(o,s),Pve.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function $F(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,h,d,p,y,m,b,_;l.orientation==="h"?(h=t,d=r,p="y",y="x",m=U,b=N):(h=r,d=t,p="x",y="y",b=U,m=N);var w=l[p+"period"],x=s||w;function M(Q){return A(Q,-1)}function k(Q){return A(Q,1)}function A(Q,qe){var ve=Q.w;return Q[p]+qe*ve/2}function S(Q){return Q[p+"End"]-Q[p+"Start"]}var D=s?M:w?function(Q){return Q.p-S(Q)/2}:function(Q){return Math.min(M(Q),Q.p-o.bardelta/2)},E=s?k:w?function(Q){return Q.p+S(Q)/2}:function(Q){return Math.max(k(Q),Q.p+o.bardelta/2)};function R(Q,qe,ve){return n.finiteRange&&(ve=0),a0.inbox(Q-h,qe-h,ve+Math.min(1,Math.abs(qe-Q)/_)-1)}function N(Q){return R(D(Q),E(Q),f)}function I(Q){return R(M(Q),k(Q),c)}function H(Q){var qe=Q[y];if(u){var ve=Math.abs(Q.rawS)||0;d>0?qe+=ve:d<0&&(qe-=ve)}return qe}function U(Q){var qe=d,ve=Q.b,Ae=H(Q);return a0.inbox(ve-qe,Ae-qe,f+(Ae-qe)/(Ae-ve)-1)}function W(Q){var qe=d,ve=Q.b,Ae=H(Q);return a0.inbox(ve-qe,Ae-qe,c+(Ae-qe)/(Ae-ve)-1)}var Y=e[p+"a"],O=e[y+"a"];_=Math.abs(Y.r2c(Y.range[1])-Y.r2c(Y.range[0]));function G(Q){return(m(Q)+b(Q))/2}var Z=a0.getDistanceFunction(a,m,b,G);if(a0.getClosest(i,Z,e),e.index!==!1&&i[e.index].p!==Nve){x||(D=function(Q){return Math.min(M(Q),Q.p-o.bargroupwidth/2)},E=function(Q){return Math.max(k(Q),Q.p+o.bargroupwidth/2)});var $=e.index,te=i[$],le=l.base?te.b+te.s:te.s;e[y+"0"]=e[y+"1"]=O.c2p(te[y],!0),e[y+"LabelVal"]=le;var fe=o.extents[o.extents.round(te.p)];e[p+"0"]=Y.c2p(s?D(te):fe[0],!0),e[p+"1"]=Y.c2p(s?E(te):fe[1],!0);var he=te.orig_p!==void 0;return e[p+"LabelVal"]=he?te.orig_p:te.p,e.labelLabel=Bb(Y,e[p+"LabelVal"],l[p+"hoverformat"]),e.valueLabel=Bb(O,e[y+"LabelVal"],l[y+"hoverformat"]),e.baseLabel=Bb(O,te.b,l[y+"hoverformat"]),e.spikeDistance=(W(te)+I(te))/2,e[p+"Spike"]=Y.c2p(te.p,!0),Rve(te,l,e),e.hovertemplate=l.hovertemplate,e}}function KF(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=zve(e,r);if(JF.opacity(t))return t;if(JF.opacity(a)&&n)return a}QF.exports={hoverPoints:Fve,hoverOnBars:$F,getTraceColor:KF}});var eI=B((Dbe,jF)=>{"use strict";jF.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var i0=B((Ebe,rI)=>{"use strict";rI.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";tI.exports={attributes:Tl(),layoutAttributes:Gp(),supplyDefaults:Ki().supplyDefaults,crossTraceDefaults:Ki().crossTraceDefaults,supplyLayoutDefaults:Nb(),calc:kF(),crossTraceCalc:hf().crossTraceCalc,colorbar:np(),arraysToCalcdata:Vp(),plot:Ef().plot,style:ho().style,styleOnSelect:ho().styleOnSelect,hoverPoints:n0().hoverPoints,eventData:eI(),selectPoints:i0(),moduleType:"trace",name:"bar",basePlotModule:gl(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var iI=B((Rbe,nI)=>{"use strict";nI.exports=aI()});var oI=B((zbe,lI)=>{"use strict";lI.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var uI=B((Nbe,sI)=>{"use strict";sI.exports={eventDataKeys:["binNumber"]}});var Ub=B((Fbe,vI)=>{"use strict";var pn=Tl(),fI=di().axisHoverFormat,Hve=ha().hovertemplateAttrs,Ove=ha().texttemplateAttrs,Yb=aa(),cI=oI(),Bve=uI(),Gb=mt().extendFlat;vI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:fI("x"),yhoverformat:fI("y"),text:Gb({},pn.text,{}),hovertext:Gb({},pn.hovertext,{}),orientation:pn.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:cI("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:cI("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:Hve({},{keys:Bve.eventDataKeys}),texttemplate:Ove({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:Gb({},pn.textposition,{arrayOk:!1}),textfont:Yb({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:Yb({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:Yb({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:pn.insidetextanchor,textangle:pn.textangle,cliponaxis:pn.cliponaxis,constraintext:pn.constraintext,marker:pn.marker,offsetgroup:pn.offsetgroup,alignmentgroup:pn.alignmentgroup,selected:pn.selected,unselected:pn.unselected,zorder:pn.zorder}});var mI=B((Ibe,pI)=>{"use strict";var hI=yr(),l0=Pe(),dI=xr(),Yve=Ki().handleText,Gve=zb(),Uve=Ub();pI.exports=function(r,t,a,n){function i(_,w){return l0.coerce(r,t,Uve,_,w)}var l=i("x"),o=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");Yve(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",o&&!l?"h":"v"),c=f==="v"?"x":"y",h=f==="v"?"y":"x",d=l&&o?Math.min(l0.minRowLength(l)&&l0.minRowLength(o)):l0.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=hI.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var y=t[h];y&&i("histfunc"),i("histnorm"),i("autobin"+c),Gve(r,t,i,a,n),l0.coerceSelectionMarkerOpacity(t,i);var m=(t.marker.line||{}).color,b=hI.getComponentMethod("errorbars","supplyDefaults");b(r,t,m||dI.defaultLine,{axis:"y"}),b(r,t,m||dI.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var bI=B((Hbe,xI)=>{"use strict";var o0=Pe(),Vve=Ut(),$p=yr().traceIs,Wve=ff(),Xve=Ki().validateCornerradius,yI=o0.nestedProperty,Vb=ys().getAxisGroup,gI=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],Zve=["x","y"];xI.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},l=[],o,s,u,f,c,h,d;function p(U,W){return o0.coerce(o._input,o,o._module.attributes,U,W)}function y(U){return U.orientation==="v"?"x":"y"}function m(U,W){var Y=Vve.getFromTrace({_fullLayout:t},U,W);return Y.type}function b(U,W,Y){var O=U.uid+"__"+Y;W||(W=O);var G=m(U,Y),Z=U[Y+"calendar"]||"",$=a[W],te=!0;$&&(G===$.axType&&Z===$.calendar?(te=!1,$.traces.push(U),$.dirs.push(Y)):(W=O,G!==$.axType&&o0.warn(["Attempted to group the bins of trace",U.index,"set on a","type:"+G,"axis","with bins on","type:"+$.axType,"axis."].join(" ")),Z!==$.calendar&&o0.warn(["Attempted to group the bins of trace",U.index,"set with a",Z,"calendar","with bins",$.calendar?"on a "+$.calendar+" calendar":"w/o a set calendar"].join(" ")))),te&&(a[W]={traces:[U],dirs:[Y],axType:G,calendar:U[Y+"calendar"]||""}),U["_"+Y+"bingroup"]=W}for(c=0;c{"use strict";var Pf=zr();_I.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Pf(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Pf(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Pf(n))if(n=Number(n),Pf(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if(Pf(n))if(n=Number(n),Pf(t[e])){if(t[e]{"use strict";TI.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";AI.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Rf=Mt(),Rs=Rf.ONEAVGYEAR,qI=Rf.ONEAVGMONTH,Qp=Rf.ONEDAY,CI=Rf.ONEHOUR,SI=Rf.ONEMIN,LI=Rf.ONESEC,DI=Jr().tickIncrement;RI.exports=function(r,t,a,n,i){var l=-1.1*t,o=-.1*t,s=r-o,u=a[0],f=a[1],c=Math.min(Kp(u+o,u+s,n,i),Kp(f+o,f+s,n,i)),h=Math.min(Kp(u+l,u+o,n,i),Kp(f+l,f+o,n,i)),d,p;if(c>h&&hQp){var y=d===Rs?1:6,m=d===Rs?"M12":"M1";return function(b,_){var w=n.c2d(b,Rs,i),x=w.indexOf("-",y);x>0&&(w=w.substr(0,x));var M=n.d2c(w,0,i);if(MLI?e>Qp?e>Rs*1.1?Rs:e>qI*1.1?qI:Qp:e>CI?CI:e>SI?SI:LI:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function Jve(e,r,t,a,n,i){if(a&&e>Qp){var l=PI(r,n,i),o=PI(t,n,i),s=e===Rs?0:1;return l[s]!==o[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function PI(e,r,t){var a=r.c2d(e,Rs,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var BI=B((Ube,OI)=>{"use strict";var Wb=zr(),Ja=Pe(),NI=yr(),ei=Jr(),{hasColorscale:FI}=bn(),II=Oc(),$ve=Vp(),HI=wI(),Kve=MI(),Qve=kI(),jve=zI();function e0e(e,r){var t=[],a=[],n=r.orientation==="h",i=ei.getFromId(e,n?r.yaxis:r.xaxis),l=n?"y":"x",o={x:"y",y:"x"}[l],s=r[l+"calendar"],u=r.cumulative,f,c=Xb(e,r,i,l),h=c[0],d=c[1],p=typeof h.size=="string",y=[],m=p?y:h,b=[],_=[],w=[],x=0,M=r.histnorm,k=r.histfunc,A=M.indexOf("density")!==-1,S,D,E;u.enabled&&A&&(M=M.replace(/ ?density$/,""),A=!1);var R=k==="max"||k==="min",N=R?null:0,I=HI.count,H=Kve[M],U=!1,W=function(V){return i.r2c(V,0,s)},Y;for(Ja.isArrayOrTypedArray(r[o])&&k!=="count"&&(Y=r[o],U=k==="avg",I=HI[k]),f=W(h.start),D=W(h.end)+(f-ei.tickIncrement(f,h.size,!1,s))/1e6;f=0&&E=Ae;f--)if(a[f]){se=f;break}for(f=Ae;f<=se;f++)if(Wb(t[f])&&Wb(a[f])){var be={p:t[f],s:a[f],b:0};u.enabled||(be.pts=w[f],$?be.ph0=be.ph1=w[f].length?d[w[f][0]]:t[f]:(r._computePh=!0,be.ph0=Q(y[f]),be.ph1=Q(y[f+1],!0))),ve.push(be)}return ve.length===1&&(ve[0].width1=ei.tickIncrement(ve[0].p,h.size,!1,s)-ve[0].p),FI(r,"marker")&&II(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),FI(r,"marker.line")&&II(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),$ve(ve,r),Ja.isArrayOrTypedArray(r.selectedpoints)&&Ja.tagSelected(ve,r,fe),ve}function Xb(e,r,t,a,n){var i=a+"bins",l=e._fullLayout,o=r["_"+a+"bingroup"],s=l._histogramBinOpts[o],u=l.barmode==="overlay",f,c,h,d,p,y,m,b=function(he){return t.r2c(he,0,d)},_=function(he){return t.c2r(he,0,d)},w=t.type==="date"?function(he){return he||he===0?Ja.cleanDate(he,null,d):null}:function(he){return Wb(he)?Number(he):null};function x(he,Q,qe){Q[he+"Found"]?(Q[he]=w(Q[he]),Q[he]===null&&(Q[he]=qe[he])):(y[he]=Q[he]=qe[he],Ja.nestedProperty(c[0],i+"."+he).set(qe[he]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var M=[],k=!0,A=!1,S=!1;for(f=0;ft.r2l(Y)&&(G=ei.tickIncrement(G,s.size,!0,d)),I.start=t.l2r(G),W||Ja.nestedProperty(r,i+".start").set(I.start)}var Z=s.end,$=t.r2l(N.end),te=$!==void 0;if((s.endFound||te)&&$!==t.r2l(Z)){var le=te?$:Ja.aggNums(Math.max,null,p);I.end=t.l2r(le),te||Ja.nestedProperty(r,i+".start").set(I.end)}var fe="autobin"+a;return r._input[fe]===!1&&(r._input[i]=Ja.extendFlat({},r[i]||{}),delete r._input[fe],delete r[fe]),[I,p]}function r0e(e,r,t,a,n){var i=e._fullLayout,l=t0e(e,r),o=!1,s=1/0,u=[r],f,c,h;for(f=0;f=0;a--)o(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}OI.exports={calc:e0e,calcAllAutoBins:Xb}});var GI=B((Vbe,YI)=>{"use strict";var n0e=n0().hoverPoints,i0e=Jr().hoverLabelText;YI.exports=function(r,t,a,n,i){var l=n0e(r,t,a,n,i);if(l){r=l[0];var o=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=i0e(r[u+"a"],[o.ph0,o.ph1],s[u+"hoverformat"])}return l}}});var VI=B((Wbe,UI)=>{"use strict";UI.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var l=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=l,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex;var o;if(a._indexToPoints){o=[];for(var s=0;s{"use strict";WI.exports={attributes:Ub(),layoutAttributes:Gp(),supplyDefaults:mI(),crossTraceDefaults:bI(),supplyLayoutDefaults:Nb(),calc:BI().calc,crossTraceCalc:hf().crossTraceCalc,plot:Ef().plot,layerName:"barlayer",style:ho().style,styleOnSelect:ho().styleOnSelect,colorbar:np(),hoverPoints:GI(),selectPoints:i0(),eventData:VI(),moduleType:"trace",name:"histogram",basePlotModule:gl(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var JI=B((Zbe,ZI)=>{"use strict";ZI.exports=XI()});var KI=B((Jbe,$I)=>{"use strict";$I.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var Jb=B(($be,eH)=>{"use strict";var pt=Tl(),Zb=bi().line,l0e=tn(),QI=di().axisHoverFormat,o0e=ha().hovertemplateAttrs,s0e=ha().texttemplateAttrs,jI=KI(),Ml=mt().extendFlat,u0e=xr();eH.exports={x:pt.x,x0:pt.x0,dx:pt.dx,y:pt.y,y0:pt.y0,dy:pt.dy,xperiod:pt.xperiod,yperiod:pt.yperiod,xperiod0:pt.xperiod0,yperiod0:pt.yperiod0,xperiodalignment:pt.xperiodalignment,yperiodalignment:pt.yperiodalignment,xhoverformat:QI("x"),yhoverformat:QI("y"),hovertext:pt.hovertext,hovertemplate:o0e({},{keys:jI.eventDataKeys}),hoverinfo:Ml({},l0e.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:s0e({editType:"plot"},{keys:jI.eventDataKeys.concat(["label","value"])}),text:pt.text,textposition:pt.textposition,insidetextanchor:Ml({},pt.insidetextanchor,{dflt:"middle"}),textangle:Ml({},pt.textangle,{dflt:0}),textfont:pt.textfont,insidetextfont:pt.insidetextfont,outsidetextfont:pt.outsidetextfont,constraintext:pt.constraintext,cliponaxis:pt.cliponaxis,orientation:Ml({},pt.orientation,{}),offset:Ml({},pt.offset,{arrayOk:!1}),width:Ml({},pt.width,{arrayOk:!1}),marker:f0e(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Ml({},Zb.color,{dflt:u0e.defaultLine}),width:Ml({},Zb.width,{dflt:0,editType:"plot"}),dash:Zb.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:pt.offsetgroup,alignmentgroup:pt.alignmentgroup,zorder:pt.zorder};function f0e(){var e=Ml({},pt.marker);return delete e.pattern,delete e.cornerradius,e}});var $b=B((Kbe,rH)=>{"use strict";rH.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var Qb=B((Qbe,aH)=>{"use strict";var jp=Pe(),c0e=ff(),v0e=Ki().handleText,h0e=zv(),d0e=_s(),tH=Jb(),Kb=xr();function p0e(e,r,t,a){function n(c,h){return jp.coerce(e,r,tH,c,h)}var i=h0e(e,r,a,n);if(!i){r.visible=!1;return}d0e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("orientation",r.y&&!r.x?"v":"h"),n("offset"),n("width");var l=n("text");n("hovertext"),n("hovertemplate");var o=n("textposition");v0e(e,r,a,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&!r.texttemplate&&n("textinfo",jp.isArrayOrTypedArray(l)?"text+value":"value");var s=n("marker.color",t);n("marker.line.color",Kb.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",m0e(s));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function m0e(e){var r=jp.isArrayOrTypedArray(e)?"#000":e;return Kb.addOpacity(r,.5*Kb.opacity(r))}function y0e(e,r){var t,a;function n(l){return jp.coerce(a._input,a,tH,l)}for(var i=0;i{"use strict";var g0e=Pe(),x0e=$b();nH.exports=function(e,r,t){var a=!1;function n(o,s){return g0e.coerce(e,r,x0e,o,s)}for(var i=0;i{"use strict";var zf=Pe();lH.exports=function(r,t){for(var a=0;a{"use strict";var sH=Jr(),uH=ws(),b0e=oH(),_0e=Nv(),s0=Mt().BADNUM;fH.exports=function(r,t){var a=sH.getFromId(r,t.xaxis||"x"),n=sH.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c,h;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=uH(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=uH(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;var d=Math.min(l.length,i.length),p=new Array(d);for(t._base=[],c=0;c{"use strict";var vH=hf().setGroupPositions;hH.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,h;for(h=0;h{"use strict";var em=kr(),yo=Pe(),pH=Yr(),mo=Mt().BADNUM,w0e=Ef(),T0e=Ei().clearMinTextSize;yH.exports=function(r,t,a,n){var i=r._fullLayout;T0e("funnel",i),M0e(r,t,a,n),A0e(r,t,a,n),w0e.plot(r,t,a,n,{mode:i.funnelmode,norm:i.funnelmode,gap:i.funnelgap,groupgap:i.funnelgroupgap})};function M0e(e,r,t,a){var n=r.xaxis,i=r.yaxis;yo.makeTraceGroups(a,t,"trace bars").each(function(l){var o=em.select(this),s=l[0].trace,u=yo.ensureSingle(o,"g","regions");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.region").data(yo.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var y=mH(d,n,i,f),m=y[0],b=y[1],_="";m[0]!==mo&&b[0]!==mo&&m[1]!==mo&&b[1]!==mo&&m[2]!==mo&&b[2]!==mo&&m[3]!==mo&&b[3]!==mo&&(f?_+="M"+m[0]+","+b[1]+"L"+m[2]+","+b[2]+"H"+m[3]+"L"+m[1]+","+b[1]+"Z":_+="M"+m[1]+","+b[1]+"L"+m[2]+","+b[3]+"V"+b[2]+"L"+m[1]+","+b[0]+"Z"),_===""&&(_="M0,0Z"),yo.ensureSingle(em.select(this),"path").attr("d",_).call(pH.setClipUrl,r.layerClipId,e)}})})}function A0e(e,r,t,a){var n=r.xaxis,i=r.yaxis;yo.makeTraceGroups(a,t,"trace bars").each(function(l){var o=em.select(this),s=l[0].trace,u=yo.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible||!s.connector.line.width){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.line").data(yo.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var y=mH(d,n,i,f),m=y[0],b=y[1],_="";m[3]!==void 0&&b[3]!==void 0&&(f?(_+="M"+m[0]+","+b[1]+"L"+m[2]+","+b[2],_+="M"+m[1]+","+b[1]+"L"+m[3]+","+b[2]):(_+="M"+m[1]+","+b[1]+"L"+m[2]+","+b[3],_+="M"+m[1]+","+b[0]+"L"+m[2]+","+b[2])),_===""&&(_="M0,0Z"),yo.ensureSingle(em.select(this),"path").attr("d",_).call(pH.setClipUrl,r.layerClipId,e)}})})}function mH(e,r,t,a){var n=[],i=[],l=a?r:t,o=a?t:r;return n[0]=l.c2p(e.s0,!0),i[0]=o.c2p(e.p0,!0),n[1]=l.c2p(e.s1,!0),i[1]=o.c2p(e.p1,!0),n[2]=l.c2p(e.nextS0,!0),i[2]=o.c2p(e.nextP0,!0),n[3]=l.c2p(e.nextS1,!0),i[3]=o.c2p(e.nextP1,!0),a?[n,i]:[i,n]}});var _H=B((n5e,bH)=>{"use strict";var u0=kr(),xH=Yr(),e5=xr(),k0e=pu().DESELECTDIM,q0e=ho(),C0e=Ei().resizeText,S0e=q0e.styleTextPoints;function L0e(e,r,t){var a=t||u0.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");C0e(e,a,"funnel"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=u0.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l.marker;u0.select(this).call(e5.fill,o.mc||s.color).call(e5.stroke,o.mlc||s.line.color).call(xH.dashLine,s.line.dash,o.mlw||s.line.width).style("opacity",l.selectedpoints&&!o.selected?k0e:1)}}),S0e(i,l,e),i.selectAll(".regions").each(function(){u0.select(this).selectAll("path").style("stroke-width",0).call(e5.fill,l.connector.fillcolor)}),i.selectAll(".lines").each(function(){var o=l.connector.line;xH.lineGroupStyle(u0.select(this).selectAll("path"),o.width,o.color,o.dash)})})}bH.exports={style:L0e}});var MH=B((i5e,TH)=>{"use strict";var wH=xr().opacity,D0e=n0().hoverOnBars,r5=Pe().formatPercent;TH.exports=function(r,t,a,n,i){var l=D0e(r,t,a,n,i);if(l){var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=l.index,c=o[f],h=u?"x":"y";l[h+"LabelVal"]=c.s,l.percentInitial=c.begR,l.percentInitialLabel=r5(c.begR,1),l.percentPrevious=c.difR,l.percentPreviousLabel=r5(c.difR,1),l.percentTotal=c.sumR,l.percentTotalLabel=r5(c.sumR,1);var d=c.hi||s.hoverinfo,p=[];if(d&&d!=="none"&&d!=="skip"){var y=d==="all",m=d.split("+"),b=function(_){return y||m.indexOf(_)!==-1};b("percent initial")&&p.push(l.percentInitialLabel+" of initial"),b("percent previous")&&p.push(l.percentPreviousLabel+" of previous"),b("percent total")&&p.push(l.percentTotalLabel+" of total")}return l.extraText=p.join("
"),l.color=E0e(s,c),[l]}};function E0e(e,r){var t=e.marker,a=r.mc||t.color,n=r.mlc||t.line.color,i=r.mlw||t.line.width;if(wH(a))return a;if(wH(n)&&i)return n}});var kH=B((l5e,AH)=>{"use strict";AH.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(r.percentInitial=t.percentInitial),"percentPrevious"in t&&(r.percentPrevious=t.percentPrevious),"percentTotal"in t&&(r.percentTotal=t.percentTotal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var CH=B((o5e,qH)=>{"use strict";qH.exports={attributes:Jb(),layoutAttributes:$b(),supplyDefaults:Qb().supplyDefaults,crossTraceDefaults:Qb().crossTraceDefaults,supplyLayoutDefaults:iH(),calc:cH(),crossTraceCalc:dH(),plot:gH(),style:_H().style,hoverPoints:MH(),eventData:kH(),selectPoints:i0(),moduleType:"trace",name:"funnel",basePlotModule:gl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var LH=B((s5e,SH)=>{"use strict";SH.exports=CH()});var EH=B((u5e,DH)=>{"use strict";DH.exports={eventDataKeys:["initial","delta","final"]}});var n5=B((f5e,zH)=>{"use strict";var ut=Tl(),t5=bi().line,P0e=tn(),PH=di().axisHoverFormat,R0e=ha().hovertemplateAttrs,z0e=ha().texttemplateAttrs,RH=EH(),Nf=mt().extendFlat,N0e=xr();function a5(e){return{marker:{color:Nf({},ut.marker.color,{arrayOk:!1,editType:"style"}),line:{color:Nf({},ut.marker.line.color,{arrayOk:!1,editType:"style"}),width:Nf({},ut.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}zH.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:ut.x,x0:ut.x0,dx:ut.dx,y:ut.y,y0:ut.y0,dy:ut.dy,xperiod:ut.xperiod,yperiod:ut.yperiod,xperiod0:ut.xperiod0,yperiod0:ut.yperiod0,xperiodalignment:ut.xperiodalignment,yperiodalignment:ut.yperiodalignment,xhoverformat:PH("x"),yhoverformat:PH("y"),hovertext:ut.hovertext,hovertemplate:R0e({},{keys:RH.eventDataKeys}),hoverinfo:Nf({},P0e.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:z0e({editType:"plot"},{keys:RH.eventDataKeys.concat(["label"])}),text:ut.text,textposition:ut.textposition,insidetextanchor:ut.insidetextanchor,textangle:ut.textangle,textfont:ut.textfont,insidetextfont:ut.insidetextfont,outsidetextfont:ut.outsidetextfont,constraintext:ut.constraintext,cliponaxis:ut.cliponaxis,orientation:ut.orientation,offset:ut.offset,width:ut.width,increasing:a5("increasing"),decreasing:a5("decreasing"),totals:a5("intermediate sums and total"),connector:{line:{color:Nf({},t5.color,{dflt:N0e.defaultLine}),width:Nf({},t5.width,{editType:"plot"}),dash:t5.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:ut.offsetgroup,alignmentgroup:ut.alignmentgroup,zorder:ut.zorder}});var i5=B((c5e,NH)=>{"use strict";NH.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var Ff=B((v5e,FH)=>{"use strict";FH.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var o5=B((h5e,BH)=>{"use strict";var IH=Pe(),F0e=ff(),I0e=Ki().handleText,H0e=zv(),O0e=_s(),HH=n5(),B0e=xr(),OH=Ff(),Y0e=OH.INCREASING.COLOR,G0e=OH.DECREASING.COLOR,U0e="#4499FF";function l5(e,r,t){e(r+".marker.color",t),e(r+".marker.line.color",B0e.defaultLine),e(r+".marker.line.width")}function V0e(e,r,t,a){function n(u,f){return IH.coerce(e,r,HH,u,f)}var i=H0e(e,r,a,n);if(!i){r.visible=!1;return}O0e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("measure"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var l=n("textposition");I0e(e,r,a,n,l,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&(n("texttemplate"),r.texttemplate||n("textinfo")),l5(n,"increasing",Y0e),l5(n,"decreasing",G0e),l5(n,"totals",U0e);var o=n("connector.visible");if(o){n("connector.mode");var s=n("connector.line.width");s&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function W0e(e,r){var t,a;function n(l){return IH.coerce(a._input,a,HH,l)}if(r.waterfallmode==="group")for(var i=0;i{"use strict";var X0e=Pe(),Z0e=i5();YH.exports=function(e,r,t){var a=!1;function n(o,s){return X0e.coerce(e,r,Z0e,o,s)}for(var i=0;i{"use strict";var UH=Jr(),VH=ws(),WH=Pe().mergeArray,J0e=Nv(),XH=Mt().BADNUM;function s5(e){return e==="a"||e==="absolute"}function u5(e){return e==="t"||e==="total"}ZH.exports=function(r,t){var a=UH.getFromId(r,t.xaxis||"x"),n=UH.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=VH(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=VH(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var c=Math.min(l.length,i.length),h=new Array(c),d=0,p,y=!1,m=0;m{"use strict";var $H=hf().setGroupPositions;KH.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,h;for(h=0;h{"use strict";var jH=kr(),rm=Pe(),$0e=Yr(),If=Mt().BADNUM,K0e=Ef(),Q0e=Ei().clearMinTextSize;eO.exports=function(r,t,a,n){var i=r._fullLayout;Q0e("waterfall",i),K0e.plot(r,t,a,n,{mode:i.waterfallmode,norm:i.waterfallmode,gap:i.waterfallgap,groupgap:i.waterfallgroupgap}),j0e(r,t,a,n)};function j0e(e,r,t,a){var n=r.xaxis,i=r.yaxis;rm.makeTraceGroups(a,t,"trace bars").each(function(l){var o=jH.select(this),s=l[0].trace,u=rm.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=s.connector.mode,h=u.selectAll("g.line").data(rm.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(p,y){if(!(y!==d-1&&!p.cNext)){var m=ehe(p,n,i,f),b=m[0],_=m[1],w="";b[0]!==If&&_[0]!==If&&b[1]!==If&&_[1]!==If&&(c==="spanning"&&!p.isSum&&y>0&&(f?w+="M"+b[0]+","+_[1]+"V"+_[0]:w+="M"+b[1]+","+_[0]+"H"+b[0]),c!=="between"&&(p.isSum||y{"use strict";var tm=kr(),tO=Yr(),aO=xr(),rhe=pu().DESELECTDIM,the=ho(),ahe=Ei().resizeText,nhe=the.styleTextPoints;function ihe(e,r,t){var a=t||tm.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");ahe(e,a,"waterfall"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=tm.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l[o.dir].marker;tm.select(this).call(aO.fill,s.color).call(aO.stroke,s.line.color).call(tO.dashLine,s.line.dash,s.line.width).style("opacity",l.selectedpoints&&!o.selected?rhe:1)}}),nhe(i,l,e),i.selectAll(".lines").each(function(){var o=l.connector.line;tO.lineGroupStyle(tm.select(this).selectAll("path"),o.width,o.color,o.dash)})})}nO.exports={style:ihe}});var fO=B((x5e,uO)=>{"use strict";var lhe=Jr().hoverLabelText,lO=xr().opacity,ohe=n0().hoverOnBars,oO=Ff(),sO={increasing:oO.INCREASING.SYMBOL,decreasing:oO.DECREASING.SYMBOL};uO.exports=function(r,t,a,n,i){var l=ohe(r,t,a,n,i);if(!l)return;var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=u?"x":"y",c=u?r.xa:r.ya;function h(k){return lhe(c,k,s[f+"hoverformat"])}var d=l.index,p=o[d],y=p.isSum?p.b+p.s:p.rawS;l.initial=p.b+p.s-y,l.delta=y,l.final=l.initial+l.delta;var m=h(Math.abs(l.delta));l.deltaLabel=y<0?"("+m+")":m,l.finalLabel=h(l.final),l.initialLabel=h(l.initial);var b=p.hi||s.hoverinfo,_=[];if(b&&b!=="none"&&b!=="skip"){var w=b==="all",x=b.split("+"),M=function(k){return w||x.indexOf(k)!==-1};p.isSum||(M("final")&&(u?!M("x"):!M("y"))&&_.push(l.finalLabel),M("delta")&&(y<0?_.push(l.deltaLabel+" "+sO.decreasing):_.push(l.deltaLabel+" "+sO.increasing)),M("initial")&&_.push("Initial: "+l.initialLabel))}return _.length&&(l.extraText=_.join("
")),l.color=she(s,p),[l]};function she(e,r){var t=e[r.dir].marker,a=t.color,n=t.line.color,i=t.line.width;if(lO(a))return a;if(lO(n)&&i)return n}});var vO=B((b5e,cO)=>{"use strict";cO.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"initial"in t&&(r.initial=t.initial),"delta"in t&&(r.delta=t.delta),"final"in t&&(r.final=t.final),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var dO=B((_5e,hO)=>{"use strict";hO.exports={attributes:n5(),layoutAttributes:i5(),supplyDefaults:o5().supplyDefaults,crossTraceDefaults:o5().crossTraceDefaults,supplyLayoutDefaults:GH(),calc:JH(),crossTraceCalc:QH(),plot:rO(),style:iO().style,hoverPoints:fO(),eventData:vO(),selectPoints:i0(),moduleType:"trace",name:"waterfall",basePlotModule:gl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var mO=B((w5e,pO)=>{"use strict";pO.exports=dO()});var nm=B((T5e,yO)=>{"use strict";var uhe=tn(),fhe=fo().attributes,che=aa(),vhe=Nn(),hhe=ha().hovertemplateAttrs,dhe=ha().texttemplateAttrs,f0=mt().extendFlat,phe=fi().pattern,am=che({editType:"plot",arrayOk:!0,colorEditType:"plot"});yO.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:vhe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:phe,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:f0({},uhe.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:hhe({},{keys:["label","color","value","percent","text"]}),texttemplate:dhe({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:f0({},am,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:f0({},am,{}),outsidetextfont:f0({},am,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:f0({},am,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:fhe({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var im=B((M5e,bO)=>{"use strict";var mhe=zr(),c0=Pe(),yhe=nm(),ghe=fo().defaults,xhe=Ki().handleText,bhe=Pe().coercePattern;function gO(e,r){var t=c0.isArrayOrTypedArray(e),a=c0.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function xO(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");bhe(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function _he(e,r,t,a){function n(_,w){return c0.coerce(e,r,yhe,_,w)}var i=n("labels"),l=n("values"),o=gO(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,xO(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate"),c;if(f||(c=n("textinfo",c0.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),f||c&&c!=="none"){var h=n("textposition");xhe(e,r,a,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",p=d||h==="outside";p&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");ghe(r,a,n);var y=n("hole"),m=n("title.text");if(m){var b=n("title.position",y?"middle center":"top center");!y&&b==="middle center"&&(r.title.position="top center"),c0.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}bO.exports={handleLabelsAndValues:gO,handleMarkerDefaults:xO,supplyDefaults:_he}});var lm=B((A5e,_O)=>{"use strict";_O.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var TO=B((k5e,wO)=>{"use strict";var whe=Pe(),The=lm();wO.exports=function(r,t){function a(n,i){return whe.coerce(r,t,The,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var om=B((q5e,kO)=>{"use strict";var Mhe=zr(),f5=zn(),Ahe=xr(),khe={};function qhe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var x=r.type==="funnelarea"?y:r.sort;return x&&t.sort(function(M,k){return k.v-M.v}),t[0]&&(t[0].vTotal=p),t}function MO(e){return function(t,a){return!t||(t=f5(t),!t.isValid())?!1:(t=Ahe.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function Che(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=AO(i,khe));for(var o=0,s=0;s{"use strict";var She=Hi().appendArrayMultiPointValues;qO.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),She(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var h5=B((S5e,JO)=>{"use strict";var mn=kr(),Lhe=Pt(),sm=gi(),RO=xr(),Al=Yr(),Sa=Pe(),Dhe=Sa.strScale,SO=Sa.strTranslate,c5=da(),zO=Ei(),Ehe=zO.recordMinTextSize,Phe=zO.clearMinTextSize,NO=Yp().TEXTPAD,Tr=ev(),um=CO(),LO=Pe().isValidTextValue;function Rhe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;Phe("pie",a),HO(r,e),WO(r,n);var i=Sa.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=mn.select(this),s=l[0],u=s.trace;Ghe(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=mn.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],h=!1;f.each(function(x,M){if(x.hidden){mn.select(this).selectAll("path,g").remove();return}x.pointNumber=x.i,x.curveNumber=u.index,c[x.pxmid[1]<0?0:1][x.pxmid[0]<0?0:1].push(x);var k=s.cx,A=s.cy,S=mn.select(this),D=S.selectAll("path.surface").data([x]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),S.call(FO,e,l),u.pull){var E=+Tr.castOption(u.pull,x.pts)||0;E>0&&(k+=E*x.pxmid[0],A+=E*x.pxmid[1])}x.cxFinal=k,x.cyFinal=A;function R(O,G,Z,$){var te=$*(G[0]-O[0]),le=$*(G[1]-O[1]);return"a"+$*s.r+","+$*s.r+" 0 "+x.largeArc+(Z?" 1 ":" 0 ")+te+","+le}var N=u.hole;if(x.v===s.vTotal){var I="M"+(k+x.px0[0])+","+(A+x.px0[1])+R(x.px0,x.pxmid,!0,1)+R(x.pxmid,x.px0,!0,1)+"Z";N?D.attr("d","M"+(k+N*x.px0[0])+","+(A+N*x.px0[1])+R(x.px0,x.pxmid,!1,N)+R(x.pxmid,x.px0,!1,N)+"Z"+I):D.attr("d",I)}else{var H=R(x.px0,x.px1,!0,1);if(N){var U=1-N;D.attr("d","M"+(k+N*x.px1[0])+","+(A+N*x.px1[1])+R(x.px1,x.px0,!1,N)+"l"+U*x.px0[0]+","+U*x.px0[1]+H+"Z")}else D.attr("d","M"+k+","+A+"l"+x.px0[0]+","+x.px0[1]+H+"Z")}XO(e,x,s);var W=Tr.castOption(u.textposition,x.pts),Y=S.selectAll("g.slicetext").data(x.text&&W!=="none"?[0]:[]);Y.enter().append("g").classed("slicetext",!0),Y.exit().remove(),Y.each(function(){var O=Sa.ensureSingle(mn.select(this),"text","",function(Q){Q.attr("data-notex",1)}),G=Sa.ensureUniformFontSize(e,W==="outside"?Nhe(u,x,a.font):IO(u,x,a.font));O.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Al.font,G).call(c5.convertToTspans,e);var Z=Al.bBox(O.node()),$;if(W==="outside")$=PO(Z,x);else if($=OO(Z,x,s),W==="auto"&&$.scale<1){var te=Sa.ensureUniformFontSize(e,u.outsidetextfont);O.call(Al.font,te),Z=Al.bBox(O.node()),$=PO(Z,x)}var le=$.textPosAngle,fe=le===void 0?x.pxmid:fm(s.r,le);if($.targetX=k+fe[0]*$.rCenter+($.x||0),$.targetY=A+fe[1]*$.rCenter+($.y||0),ZO($,Z),$.outside){var he=$.targetY;x.yLabelMin=he-Z.height/2,x.yLabelMid=he,x.yLabelMax=he+Z.height/2,x.labelExtraX=0,x.labelExtraY=0,h=!0}$.fontSize=G.size,Ehe(u.type,$,a),l[M].transform=$,Sa.setTransormAndDisplay(O,$)})});var d=mn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var x=Sa.ensureSingle(mn.select(this),"text","",function(A){A.attr("data-notex",1)}),M=u.title.text;u._meta&&(M=Sa.templateString(M,u._meta)),x.text(M).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Al.font,u.title.font).call(c5.convertToTspans,e);var k;u.title.position==="middle center"?k=Hhe(s):k=UO(s,n),x.attr("transform",SO(k.x,k.y)+Dhe(Math.min(1,k.scale))+SO(k.tx,k.ty))}),h&&Bhe(c,u),zhe(f,u),h&&u.automargin){var p=Al.bBox(o.node()),y=u.domain,m=n.w*(y.x[1]-y.x[0]),b=n.h*(y.y[1]-y.y[0]),_=(.5*m-s.r)/n.w,w=(.5*b-s.r)/n.h;Lhe.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-_,xr:y.x[1]+_,yb:y.y[0]-w,yt:y.y[1]+w,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=mn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function zhe(e,r){e.each(function(t){var a=mn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,Sa.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;Sa.ensureSingle(a,"path","textline").call(RO.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function FO(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=sm.castHoverinfo({hoverinfo:[Tr.castOption(c,s.pts)],_module:l._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var h=s.rInscribed||0,d=n+s.pxmid[0]*(1-h),p=i+s.pxmid[1]*(1-h),y=u.separators,m=[];if(c&&c.indexOf("label")!==-1&&m.push(s.label),s.text=Tr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var b=s.text;Sa.isValidTextValue(b)&&m.push(b)}s.value=s.v,s.valueLabel=Tr.formatPieValue(s.v,y),c&&c.indexOf("value")!==-1&&m.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Tr.formatPiePercent(s.percent,y),c&&c.indexOf("percent")!==-1&&m.push(s.percentLabel);var _=f.hoverlabel,w=_.font,x=[];sm.loneHover({trace:l,x0:d-h*a.r,x1:d+h*a.r,y:p,_x0:o?n+s.TL[0]:d-h*a.r,_x1:o?n+s.TR[0]:d+h*a.r,_y0:o?i+s.TL[1]:p-h*a.r,_y1:o?i+s.BL[1]:p+h*a.r,text:m.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Tr.castOption(_.bgcolor,s.pts)||s.color,borderColor:Tr.castOption(_.bordercolor,s.pts),fontFamily:Tr.castOption(w.family,s.pts),fontSize:Tr.castOption(w.size,s.pts),fontColor:Tr.castOption(w.color,s.pts),nameLength:Tr.castOption(_.namelength,s.pts),textAlign:Tr.castOption(_.align,s.pts),hovertemplate:Tr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[um(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:x}),s.bbox=x[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[um(s,f)],event:mn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],c=mn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=mn.event,r.emit("plotly_unhover",{points:[um(c,f)],event:mn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(sm.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[um(s,f)],sm.click(r,mn.event))})}function Nhe(e,r,t){var a=Tr.castOption(e.outsidetextfont.color,r.pts)||Tr.castOption(e.textfont.color,r.pts)||t.color,n=Tr.castOption(e.outsidetextfont.family,r.pts)||Tr.castOption(e.textfont.family,r.pts)||t.family,i=Tr.castOption(e.outsidetextfont.size,r.pts)||Tr.castOption(e.textfont.size,r.pts)||t.size,l=Tr.castOption(e.outsidetextfont.weight,r.pts)||Tr.castOption(e.textfont.weight,r.pts)||t.weight,o=Tr.castOption(e.outsidetextfont.style,r.pts)||Tr.castOption(e.textfont.style,r.pts)||t.style,s=Tr.castOption(e.outsidetextfont.variant,r.pts)||Tr.castOption(e.textfont.variant,r.pts)||t.variant,u=Tr.castOption(e.outsidetextfont.textcase,r.pts)||Tr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Tr.castOption(e.outsidetextfont.lineposition,r.pts)||Tr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Tr.castOption(e.outsidetextfont.shadow,r.pts)||Tr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function IO(e,r,t){var a=Tr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Tr.castOption(e._input.textfont.color,r.pts));var n=Tr.castOption(e.insidetextfont.family,r.pts)||Tr.castOption(e.textfont.family,r.pts)||t.family,i=Tr.castOption(e.insidetextfont.size,r.pts)||Tr.castOption(e.textfont.size,r.pts)||t.size,l=Tr.castOption(e.insidetextfont.weight,r.pts)||Tr.castOption(e.textfont.weight,r.pts)||t.weight,o=Tr.castOption(e.insidetextfont.style,r.pts)||Tr.castOption(e.textfont.style,r.pts)||t.style,s=Tr.castOption(e.insidetextfont.variant,r.pts)||Tr.castOption(e.textfont.variant,r.pts)||t.variant,u=Tr.castOption(e.insidetextfont.textcase,r.pts)||Tr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Tr.castOption(e.insidetextfont.lineposition,r.pts)||Tr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Tr.castOption(e.insidetextfont.shadow,r.pts)||Tr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||RO.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function HO(e,r){for(var t,a,n=0;n=-4;_-=2)b(Math.PI*_,"tan");for(_=4;_>=-4;_-=2)b(Math.PI*(_+1),"tan")}if(c||d){for(_=4;_>=-4;_-=2)b(Math.PI*(_+1.5),"rad");for(_=4;_>=-4;_-=2)b(Math.PI*(_+.5),"rad")}}if(o||p||c){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(m={scale:n*a*2/w,rCenter:1-n,rotate:0},m.textPosAngle=(r.startangle+r.stopangle)/2,m.scale>=1)return m;y.push(m)}(p||d)&&(m=DO(e,a,l,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m)),(p||h)&&(m=EO(e,a,l,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m));for(var x=0,M=0,k=0;k=1)break}return y[x]}function Fhe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function Hhe(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function UO(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=VO(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=Ohe(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=v5(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function Ohe(e,r){return e/(r===void 0?1:r)}function v5(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function VO(e){var r=e.pull;if(!r)return 0;var t;if(Sa.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function Bhe(e,r){var t,a,n,i,l,o,s,u,f,c,h,d,p;function y(w,x){return w.pxmid[1]-x.pxmid[1]}function m(w,x){return x.pxmid[1]-w.pxmid[1]}function b(w,x){x||(x={});var M=x.labelExtraY+(a?x.yLabelMax:x.yLabelMin),k=a?w.yLabelMin:w.yLabelMax,A=a?w.yLabelMax:w.yLabelMin,S=w.cyFinal+l(w.px0[1],w.px1[1]),D=M-k,E,R,N,I,H,U;if(D*s>0&&(w.labelExtraY=D),!!Sa.isArrayOrTypedArray(r.pull))for(R=0;R=(Tr.castOption(r.pull,N.pts)||0))&&((w.pxmid[1]-N.pxmid[1])*s>0?(I=N.cyFinal+l(N.px0[1],N.px1[1]),D=I-k-w.labelExtraY,D*s>0&&(w.labelExtraY+=D)):(A+w.labelExtraY-S)*s>0&&(E=3*o*Math.abs(R-c.indexOf(w)),H=N.cxFinal+i(N.px0[0],N.px1[0]),U=H+E-(w.cxFinal+w.pxmid[0])-w.labelExtraX,U*o>0&&(w.labelExtraX+=U)))}for(a=0;a<2;a++)for(n=a?y:m,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],h=0;h1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=Ihe(u,r))}function fm(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function XO(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(x){return o.indexOf(x)!==-1},u=s("label"),f=s("text"),c=s("value"),h=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var y=Tr.getFirstFilled(n.text,r.pts);LO(y)&&p.push(y)}c&&p.push(Tr.formatPieValue(r.v,d)),h&&p.push(Tr.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("
")}function m(x){return{label:x.label,value:x.v,valueLabel:Tr.formatPieValue(x.v,a.separators),percent:x.v/t.vTotal,percentLabel:Tr.formatPiePercent(x.v/t.vTotal,a.separators),color:x.color,text:x.text,customdata:Sa.castOption(n,x.i,"customdata")}}if(i){var b=Sa.castOption(n,r.i,"texttemplate");if(!b)r.text="";else{var _=m(r),w=Tr.getFirstFilled(n.text,r.pts);(LO(w)||w==="")&&(_.text=w),r.text=Sa.texttemplateString(b,_,e._fullLayout._d3locale,_,n._meta||{})}}}function ZO(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}JO.exports={plot:Rhe,formatSliceLabel:XO,transformInsideText:OO,determineInsideTextFont:IO,positionTitleOutside:UO,prerenderTitles:HO,layoutAreas:WO,attachFxHandlers:FO,computeTransform:ZO}});var QO=B((L5e,KO)=>{"use strict";var $O=kr(),Uhe=Uu(),Vhe=Ei().resizeText;KO.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");Vhe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=$O.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){$O.select(this).call(Uhe,o,i,r)})})}});var eB=B(Hf=>{"use strict";var jO=Pt();Hf.name="pie";Hf.plot=function(e,r,t,a){jO.plotBasePlot(Hf.name,e,r,t,a)};Hf.clean=function(e,r,t,a){jO.cleanBasePlot(Hf.name,e,r,t,a)}});var tB=B((E5e,rB)=>{"use strict";rB.exports={attributes:nm(),supplyDefaults:im().supplyDefaults,supplyLayoutDefaults:TO(),layoutAttributes:lm(),calc:om().calc,crossTraceCalc:om().crossTraceCalc,plot:h5().plot,style:QO(),styleOne:Uu(),moduleType:"trace",name:"pie",basePlotModule:eB(),categories:["pie-like","pie","showLegend"],meta:{}}});var nB=B((P5e,aB)=>{"use strict";aB.exports=tB()});var lB=B(Of=>{"use strict";var iB=Pt();Of.name="funnelarea";Of.plot=function(e,r,t,a){iB.plotBasePlot(Of.name,e,r,t,a)};Of.clean=function(e,r,t,a){iB.cleanBasePlot(Of.name,e,r,t,a)}});var d5=B((z5e,oB)=>{"use strict";var La=nm(),Whe=tn(),Xhe=fo().attributes,Zhe=ha().hovertemplateAttrs,Jhe=ha().texttemplateAttrs,zs=mt().extendFlat;oB.exports={labels:La.labels,label0:La.label0,dlabel:La.dlabel,values:La.values,marker:{colors:La.marker.colors,line:{color:zs({},La.marker.line.color,{dflt:null}),width:zs({},La.marker.line.width,{dflt:1}),editType:"calc"},pattern:La.marker.pattern,editType:"calc"},text:La.text,hovertext:La.hovertext,scalegroup:zs({},La.scalegroup,{}),textinfo:zs({},La.textinfo,{flags:["label","text","value","percent"]}),texttemplate:Jhe({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:zs({},Whe.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Zhe({},{keys:["label","color","value","text","percent"]}),textposition:zs({},La.textposition,{values:["inside","none"],dflt:"inside"}),textfont:La.textfont,insidetextfont:La.insidetextfont,title:{text:La.title.text,font:La.title.font,position:zs({},La.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:Xhe({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var p5=B((N5e,sB)=>{"use strict";var $he=lm().hiddenlabels;sB.exports={hiddenlabels:$he,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var cB=B((F5e,fB)=>{"use strict";var uB=Pe(),Khe=d5(),Qhe=fo().defaults,jhe=Ki().handleText,ede=im().handleLabelsAndValues,rde=im().handleMarkerDefaults;fB.exports=function(r,t,a,n){function i(y,m){return uB.coerce(r,t,Khe,y,m)}var l=i("labels"),o=i("values"),s=ede(l,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,rde(r,t,n,i),i("scalegroup");var f=i("text"),c=i("texttemplate"),h;if(c||(h=i("textinfo",Array.isArray(f)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),c||h&&h!=="none"){var d=i("textposition");jhe(r,t,n,i,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&i("textposition","none");Qhe(t,n,i);var p=i("title.text");p&&(i("title.position"),uB.coerceFont(i,"title.font",n.font)),i("aspectratio"),i("baseratio")}});var hB=B((I5e,vB)=>{"use strict";var tde=Pe(),ade=p5();vB.exports=function(r,t){function a(n,i){return tde.coerce(r,t,ade,n,i)}a("hiddenlabels"),a("funnelareacolorway",t.colorway),a("extendfunnelareacolors")}});var m5=B((H5e,pB)=>{"use strict";var dB=om();function nde(e,r){return dB.calc(e,r)}function ide(e){dB.crossTraceCalc(e,{type:"funnelarea"})}pB.exports={calc:nde,crossTraceCalc:ide}});var bB=B((O5e,xB)=>{"use strict";var Ns=kr(),y5=Yr(),go=Pe(),lde=go.strScale,mB=go.strTranslate,yB=da(),ode=Ef(),sde=ode.toMoveInsideBar,gB=Ei(),ude=gB.recordMinTextSize,fde=gB.clearMinTextSize,cde=ev(),Bf=h5(),vde=Bf.attachFxHandlers,hde=Bf.determineInsideTextFont,dde=Bf.layoutAreas,pde=Bf.prerenderTitles,mde=Bf.positionTitleOutside,yde=Bf.formatSliceLabel;xB.exports=function(r,t){var a=r._context.staticPlot,n=r._fullLayout;fde("funnelarea",n),pde(t,r),dde(t,n._size),go.makeTraceGroups(n._funnelarealayer,t,"trace").each(function(i){var l=Ns.select(this),o=i[0],s=o.trace;xde(i),l.each(function(){var u=Ns.select(this).selectAll("g.slice").data(i);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(c,h){if(c.hidden){Ns.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=s.index;var d=o.cx,p=o.cy,y=Ns.select(this),m=y.selectAll("path.surface").data([c]);m.enter().append("path").classed("surface",!0).style({"pointer-events":a?"none":"all"}),y.call(vde,r,i);var b="M"+(d+c.TR[0])+","+(p+c.TR[1])+g5(c.TR,c.BR)+g5(c.BR,c.BL)+g5(c.BL,c.TL)+"Z";m.attr("d",b),yde(r,c,o);var _=cde.castOption(s.textposition,c.pts),w=y.selectAll("g.slicetext").data(c.text&&_!=="none"?[0]:[]);w.enter().append("g").classed("slicetext",!0),w.exit().remove(),w.each(function(){var x=go.ensureSingle(Ns.select(this),"text","",function(N){N.attr("data-notex",1)}),M=go.ensureUniformFontSize(r,hde(s,c,n.font));x.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(y5.font,M).call(yB.convertToTspans,r);var k=y5.bBox(x.node()),A,S,D,E=Math.min(c.BL[1],c.BR[1])+p,R=Math.max(c.TL[1],c.TR[1])+p;S=Math.max(c.TL[0],c.BL[0])+d,D=Math.min(c.TR[0],c.BR[0])+d,A=sde(S,D,E,R,k,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),A.fontSize=M.size,ude(s.type,A,n),i[h].transform=A,go.setTransormAndDisplay(x,A)})});var f=Ns.select(this).selectAll("g.titletext").data(s.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=go.ensureSingle(Ns.select(this),"text","",function(p){p.attr("data-notex",1)}),h=s.title.text;s._meta&&(h=go.templateString(h,s._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(y5.font,s.title.font).call(yB.convertToTspans,r);var d=mde(o,n._size);c.attr("transform",mB(d.x,d.y)+lde(Math.min(1,d.scale))+mB(d.tx,d.ty))})})})};function g5(e,r){var t=r[0]-e[0],a=r[1]-e[1];return"l"+t+","+a}function gde(e,r){return[.5*(e[0]+r[0]),.5*(e[1]+r[1])]}function xde(e){if(!e.length)return;var r=e[0],t=r.trace,a=t.aspectratio,n=t.baseratio;n>.999&&(n=.999);var i=Math.pow(n,2),l=r.vTotal,o=l*i/(1-i),s=l,u=o/l;function f(){var I=Math.sqrt(u);return{x:I,y:-I}}function c(){var I=f();return[I.x,I.y]}var h,d=[];d.push(c());var p,y;for(p=e.length-1;p>-1;p--)if(y=e[p],!y.hidden){var m=y.v/s;u+=m,d.push(c())}var b=1/0,_=-1/0;for(p=0;p-1;p--)if(y=e[p],!y.hidden){E+=1;var R=d[E][0],N=d[E][1];y.TL=[-R,N],y.TR=[R,N],y.BL=S,y.BR=D,y.pxmid=gde(y.TR,y.BR),S=y.TL,D=y.TR}}});var TB=B((B5e,wB)=>{"use strict";var _B=kr(),bde=Uu(),_de=Ei().resizeText;wB.exports=function(r){var t=r._fullLayout._funnelarealayer.selectAll(".trace");_de(r,t,"funnelarea"),t.each(function(a){var n=a[0],i=n.trace,l=_B.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){_B.select(this).call(bde,o,i,r)})})}});var AB=B((Y5e,MB)=>{"use strict";MB.exports={moduleType:"trace",name:"funnelarea",basePlotModule:lB(),categories:["pie-like","funnelarea","showLegend"],attributes:d5(),layoutAttributes:p5(),supplyDefaults:cB(),supplyLayoutDefaults:hB(),calc:m5().calc,crossTraceCalc:m5().crossTraceCalc,plot:bB(),style:TB(),styleOne:Uu(),meta:{}}});var qB=B((G5e,kB)=>{"use strict";kB.exports=AB()});var SB=B(Yf=>{"use strict";var CB=Pt();Yf.name="indicator";Yf.plot=function(e,r,t,a){CB.plotBasePlot(Yf.name,e,r,t,a)};Yf.clean=function(e,r,t,a){CB.cleanBasePlot(Yf.name,e,r,t,a)}});var b5=B((V5e,zB)=>{"use strict";var xo=mt().extendFlat,DB=mt().extendDeep,wde=ui().overrideAll,EB=aa(),PB=Nn(),Tde=fo().attributes,Lt=_n(),Mde=ot().templatedArray,cm=Ff(),LB=di().descriptionOnlyNumbers,x5=EB({editType:"plot",colorEditType:"plot"}),v0={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:PB.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},RB={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},Ade=Mde("step",DB({},v0,{range:RB}));zB.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:Tde({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:xo({},x5,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:LB("value")},font:xo({},x5,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:LB("value")},increasing:{symbol:{valType:"string",dflt:cm.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:cm.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:cm.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:cm.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:xo({},x5,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:DB({},v0,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:PB.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:wde({range:RB,visible:xo({},Lt.visible,{dflt:!0}),tickmode:Lt.minor.tickmode,nticks:Lt.nticks,tick0:Lt.tick0,dtick:Lt.dtick,tickvals:Lt.tickvals,ticktext:Lt.ticktext,ticks:xo({},Lt.ticks,{dflt:"outside"}),ticklen:Lt.ticklen,tickwidth:Lt.tickwidth,tickcolor:Lt.tickcolor,ticklabelstep:Lt.ticklabelstep,showticklabels:Lt.showticklabels,labelalias:Lt.labelalias,tickfont:EB({}),tickangle:Lt.tickangle,tickformat:Lt.tickformat,tickformatstops:Lt.tickformatstops,tickprefix:Lt.tickprefix,showtickprefix:Lt.showtickprefix,ticksuffix:Lt.ticksuffix,showticksuffix:Lt.showticksuffix,separatethousands:Lt.separatethousands,exponentformat:Lt.exponentformat,minexponent:Lt.minexponent,showexponent:Lt.showexponent,editType:"plot"},"plot"),steps:Ade,threshold:{line:{color:xo({},v0.line.color,{}),width:xo({},v0.line.width,{dflt:1}),editType:"plot"},thickness:xo({},v0.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var _5=B((W5e,NB)=>{"use strict";NB.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var HB=B((X5e,IB)=>{"use strict";var ji=Pe(),hm=b5(),kde=fo().defaults,FB=ot(),qde=On(),vm=_5(),Cde=Qh(),Sde=jh(),Lde=rd(),Dde=td();function Ede(e,r,t,a){function n(k,A){return ji.coerce(e,r,hm,k,A)}kde(r,a,n),n("mode"),r._hasNumber=r.mode.indexOf("number")!==-1,r._hasDelta=r.mode.indexOf("delta")!==-1,r._hasGauge=r.mode.indexOf("gauge")!==-1;var i=n("value");r._range=[0,typeof i=="number"?1.5*i:1];var l=new Array(2),o;if(r._hasNumber){n("number.valueformat");var s=ji.extendFlat({},a.font);s.size=void 0,ji.coerceFont(n,"number.font",s),r.number.font.size===void 0&&(r.number.font.size=vm.defaultNumberFontSize,l[0]=!0),n("number.prefix"),n("number.suffix"),o=r.number.font.size}var u;if(r._hasDelta){var f=ji.extendFlat({},a.font);f.size=void 0,ji.coerceFont(n,"delta.font",f),r.delta.font.size===void 0&&(r.delta.font.size=(r._hasNumber?.5:1)*(o||vm.defaultNumberFontSize),l[1]=!0),n("delta.reference",r.value),n("delta.relative"),n("delta.valueformat",r.delta.relative?"2%":""),n("delta.increasing.symbol"),n("delta.increasing.color"),n("delta.decreasing.symbol"),n("delta.decreasing.color"),n("delta.position"),n("delta.prefix"),n("delta.suffix"),u=r.delta.font.size}r._scaleNumbers=(!r._hasNumber||l[0])&&(!r._hasDelta||l[1])||!1;var c=ji.extendFlat({},a.font);c.size=.25*(o||u||vm.defaultNumberFontSize),ji.coerceFont(n,"title.font",c),n("title.text");var h,d,p,y;function m(k,A){return ji.coerce(h,d,hm.gauge,k,A)}function b(k,A){return ji.coerce(p,y,hm.gauge.axis,k,A)}if(r._hasGauge){h=e.gauge,h||(h={}),d=FB.newContainer(r,"gauge"),m("shape");var _=r._isBullet=r.gauge.shape==="bullet";_||n("title.align","center");var w=r._isAngular=r.gauge.shape==="angular";w||n("align","center"),m("bgcolor",a.paper_bgcolor),m("borderwidth"),m("bordercolor"),m("bar.color"),m("bar.line.color"),m("bar.line.width");var x=vm.valueThickness*(r.gauge.shape==="bullet"?.5:1);m("bar.thickness",x),qde(h,d,{name:"steps",handleItemDefaults:Pde}),m("threshold.value"),m("threshold.thickness"),m("threshold.line.width"),m("threshold.line.color"),p={},h&&(p=h.axis||{}),y=FB.newContainer(d,"axis"),b("visible"),r._range=b("range",r._range);var M={font:a.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};Cde(p,y,b,"linear"),Dde(p,y,b,"linear",M),Lde(p,y,b,"linear",M),Sde(p,y,b,M)}else n("title.align","center"),n("align","center"),r._isAngular=r._isBullet=!1;r._length=null}function Pde(e,r){function t(a,n){return ji.coerce(e,r,hm.gauge.steps,a,n)}t("color"),t("line.color"),t("line.width"),t("range"),t("thickness")}IB.exports={supplyDefaults:Ede}});var BB=B((Z5e,OB)=>{"use strict";function Rde(e,r){var t=[],a=r.value;typeof r._lastValue!="number"&&(r._lastValue=r.value);var n=r._lastValue,i=n;return r._hasDelta&&typeof r.delta.reference=="number"&&(i=r.delta.reference),t[0]={y:a,lastY:n,delta:a-i,relativeDelta:(a-i)/i},t}OB.exports={calc:Rde}});function kl(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function bo(e,r){var t=Object.create(e.prototype);for(var a in r)t[a]=r[a];return t}var dm=lt(()=>{});function rl(){}function GB(){return this.rgb().formatHex()}function Yde(){return this.rgb().formatHex8()}function Gde(){return $B(this).formatHsl()}function UB(){return this.rgb().formatRgb()}function wo(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=zde.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?VB(r):t===3?new fa(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?pm(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?pm(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=Nde.exec(e))?new fa(r[1],r[2],r[3],1):(r=Fde.exec(e))?new fa(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=Ide.exec(e))?pm(r[1],r[2],r[3],r[4]):(r=Hde.exec(e))?pm(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=Ode.exec(e))?ZB(r[1],r[2]/100,r[3]/100,1):(r=Bde.exec(e))?ZB(r[1],r[2]/100,r[3]/100,r[4]):YB.hasOwnProperty(e)?VB(YB[e]):e==="transparent"?new fa(NaN,NaN,NaN,0):null}function VB(e){return new fa(e>>16&255,e>>8&255,e&255,1)}function pm(e,r,t,a){return a<=0&&(e=r=t=NaN),new fa(e,r,t,a)}function d0(e){return e instanceof rl||(e=wo(e)),e?(e=e.rgb(),new fa(e.r,e.g,e.b,e.opacity)):new fa}function Uf(e,r,t,a){return arguments.length===1?d0(e):new fa(e,r,t,a==null?1:a)}function fa(e,r,t,a){this.r=+e,this.g=+r,this.b=+t,this.opacity=+a}function WB(){return`#${Fs(this.r)}${Fs(this.g)}${Fs(this.b)}`}function Ude(){return`#${Fs(this.r)}${Fs(this.g)}${Fs(this.b)}${Fs((isNaN(this.opacity)?1:this.opacity)*255)}`}function XB(){let e=ym(this.opacity);return`${e===1?"rgb(":"rgba("}${Is(this.r)}, ${Is(this.g)}, ${Is(this.b)}${e===1?")":`, ${e})`}`}function ym(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Is(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fs(e){return e=Is(e),(e<16?"0":"")+e.toString(16)}function ZB(e,r,t,a){return a<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new Pi(e,r,t,a)}function $B(e){if(e instanceof Pi)return new Pi(e.h,e.s,e.l,e.opacity);if(e instanceof rl||(e=wo(e)),!e)return new Pi;if(e instanceof Pi)return e;e=e.rgb();var r=e.r/255,t=e.g/255,a=e.b/255,n=Math.min(r,t,a),i=Math.max(r,t,a),l=NaN,o=i-n,s=(i+n)/2;return o?(r===i?l=(t-a)/o+(t0&&s<1?0:l,new Pi(l,o,s,e.opacity)}function p0(e,r,t,a){return arguments.length===1?$B(e):new Pi(e,r,t,a==null?1:a)}function Pi(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}function JB(e){return e=(e||0)%360,e<0?e+360:e}function mm(e){return Math.max(0,Math.min(1,e||0))}function w5(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}var _o,Hs,Gf,h0,el,zde,Nde,Fde,Ide,Hde,Ode,Bde,YB,gm=lt(()=>{dm();_o=.7,Hs=1/_o,Gf="\\s*([+-]?\\d+)\\s*",h0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",el="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zde=/^#([0-9a-f]{3,8})$/,Nde=new RegExp(`^rgb\\(${Gf},${Gf},${Gf}\\)$`),Fde=new RegExp(`^rgb\\(${el},${el},${el}\\)$`),Ide=new RegExp(`^rgba\\(${Gf},${Gf},${Gf},${h0}\\)$`),Hde=new RegExp(`^rgba\\(${el},${el},${el},${h0}\\)$`),Ode=new RegExp(`^hsl\\(${h0},${el},${el}\\)$`),Bde=new RegExp(`^hsla\\(${h0},${el},${el},${h0}\\)$`),YB={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};kl(rl,wo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:GB,formatHex:GB,formatHex8:Yde,formatHsl:Gde,formatRgb:UB,toString:UB});kl(fa,Uf,bo(rl,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new fa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new fa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fa(Is(this.r),Is(this.g),Is(this.b),ym(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:WB,formatHex:WB,formatHex8:Ude,formatRgb:XB,toString:XB}));kl(Pi,p0,bo(rl,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new Pi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new Pi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,a=t+(t<.5?t:1-t)*r,n=2*t-a;return new fa(w5(e>=240?e-240:e+120,n,a),w5(e,n,a),w5(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new Pi(JB(this.h),mm(this.s),mm(this.l),ym(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ym(this.opacity);return`${e===1?"hsl(":"hsla("}${JB(this.h)}, ${mm(this.s)*100}%, ${mm(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var xm,bm,T5=lt(()=>{xm=Math.PI/180,bm=180/Math.PI});function tY(e){if(e instanceof tl)return new tl(e.l,e.a,e.b,e.opacity);if(e instanceof ql)return aY(e);e instanceof fa||(e=d0(e));var r=q5(e.r),t=q5(e.g),a=q5(e.b),n=M5((.2225045*r+.7168786*t+.0606169*a)/QB),i,l;return r===t&&t===a?i=l=n:(i=M5((.4360747*r+.3850649*t+.1430804*a)/KB),l=M5((.0139322*r+.0971045*t+.7141733*a)/jB)),new tl(116*n-16,500*(i-n),200*(n-l),e.opacity)}function Wf(e,r,t,a){return arguments.length===1?tY(e):new tl(e,r,t,a==null?1:a)}function tl(e,r,t,a){this.l=+e,this.a=+r,this.b=+t,this.opacity=+a}function M5(e){return e>Vde?Math.pow(e,1/3):e/rY+eY}function A5(e){return e>Vf?e*e*e:rY*(e-eY)}function k5(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function q5(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Wde(e){if(e instanceof ql)return new ql(e.h,e.c,e.l,e.opacity);if(e instanceof tl||(e=tY(e)),e.a===0&&e.b===0)return new ql(NaN,0{dm();gm();T5();_m=18,KB=.96422,QB=1,jB=.82521,eY=4/29,Vf=6/29,rY=3*Vf*Vf,Vde=Vf*Vf*Vf;kl(tl,Wf,bo(rl,{brighter(e){return new tl(this.l+_m*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new tl(this.l-_m*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return r=KB*A5(r),e=QB*A5(e),t=jB*A5(t),new fa(k5(3.1338561*r-1.6168667*e-.4906146*t),k5(-.9787684*r+1.9161415*e+.033454*t),k5(.0719453*r-.2289914*e+1.4052427*t),this.opacity)}}));kl(ql,m0,bo(rl,{brighter(e){return new ql(this.h,this.c,this.l+_m*(e==null?1:e),this.opacity)},darker(e){return new ql(this.h,this.c,this.l-_m*(e==null?1:e),this.opacity)},rgb(){return aY(this).rgb()}}))});function Xde(e){if(e instanceof Os)return new Os(e.h,e.s,e.l,e.opacity);e instanceof fa||(e=d0(e));var r=e.r/255,t=e.g/255,a=e.b/255,n=(oY*a+iY*r-lY*t)/(oY+iY-lY),i=a-n,l=(y0*(t-n)-S5*i)/wm,o=Math.sqrt(l*l+i*i)/(y0*n*(1-n)),s=o?Math.atan2(l,i)*bm-120:NaN;return new Os(s<0?s+360:s,o,n,e.opacity)}function Xf(e,r,t,a){return arguments.length===1?Xde(e):new Os(e,r,t,a==null?1:a)}function Os(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}var sY,C5,S5,wm,y0,iY,lY,oY,uY=lt(()=>{dm();gm();T5();sY=-.14861,C5=1.78277,S5=-.29227,wm=-.90649,y0=1.97294,iY=y0*wm,lY=y0*C5,oY=C5*S5-wm*sY;kl(Os,Xf,bo(rl,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new Os(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new Os(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*xm,r=+this.l,t=isNaN(this.s)?0:this.s*r*(1-r),a=Math.cos(e),n=Math.sin(e);return new fa(255*(r+t*(sY*a+C5*n)),255*(r+t*(S5*a+wm*n)),255*(r+t*(y0*a)),this.opacity)}}))});var Bs=lt(()=>{gm();nY();uY()});function L5(e,r,t,a,n){var i=e*e,l=i*e;return((1-3*e+3*i-l)*r+(4-6*i+3*l)*t+(1+3*e+3*i-3*l)*a+l*n)/6}function Tm(e){var r=e.length-1;return function(t){var a=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),n=e[a],i=e[a+1],l=a>0?e[a-1]:2*n-i,o=a{});function Am(e){var r=e.length;return function(t){var a=Math.floor(((t%=1)<0?++t:t)*r),n=e[(a+r-1)%r],i=e[a%r],l=e[(a+1)%r],o=e[(a+2)%r];return L5((t-a/r)*r,n,i,l,o)}}var D5=lt(()=>{Mm()});var Zf,E5=lt(()=>{Zf=e=>()=>e});function fY(e,r){return function(t){return e+t*r}}function Zde(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(a){return Math.pow(e+a*r,t)}}function To(e,r){var t=r-e;return t?fY(e,t>180||t<-180?t-360*Math.round(t/360):t):Zf(isNaN(e)?r:e)}function cY(e){return(e=+e)==1?Ft:function(r,t){return t-r?Zde(r,t,e):Zf(isNaN(r)?t:r)}}function Ft(e,r){var t=r-e;return t?fY(e,t):Zf(isNaN(e)?r:e)}var Ys=lt(()=>{E5()});function vY(e){return function(r){var t=r.length,a=new Array(t),n=new Array(t),i=new Array(t),l,o;for(l=0;l{Bs();Mm();D5();Ys();g0=function e(r){var t=cY(r);function a(n,i){var l=t((n=Uf(n)).r,(i=Uf(i)).r),o=t(n.g,i.g),s=t(n.b,i.b),u=Ft(n.opacity,i.opacity);return function(f){return n.r=l(f),n.g=o(f),n.b=s(f),n.opacity=u(f),n+""}}return a.gamma=e,a}(1);hY=vY(Tm),dY=vY(Am)});function Jf(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,a=r.slice(),n;return function(i){for(n=0;n{});function pY(e,r){return(km(r)?Jf:R5)(e,r)}function R5(e,r){var t=r?r.length:0,a=e?Math.min(t,e.length):0,n=new Array(a),i=new Array(t),l;for(l=0;l{x0();qm()});function Cm(e,r){var t=new Date;return e=+e,r=+r,function(a){return t.setTime(e*(1-a)+r*a),t}}var N5=lt(()=>{});function yn(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}var b0=lt(()=>{});function Sm(e,r){var t={},a={},n;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(n in r)n in e?t[n]=Mo(e[n],r[n]):a[n]=r[n];return function(i){for(n in t)a[n]=t[n](i);return a}}var F5=lt(()=>{x0()});function Jde(e){return function(){return e}}function $de(e){return function(r){return e(r)+""}}function Lm(e,r){var t=H5.lastIndex=I5.lastIndex=0,a,n,i,l=-1,o=[],s=[];for(e=e+"",r=r+"";(a=H5.exec(e))&&(n=I5.exec(r));)(i=n.index)>t&&(i=r.slice(t,i),o[l]?o[l]+=i:o[++l]=i),(a=a[0])===(n=n[0])?o[l]?o[l]+=n:o[++l]=n:(o[++l]=null,s.push({i:l,x:yn(a,n)})),t=I5.lastIndex;return t{b0();H5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,I5=new RegExp(H5.source,"g")});function Mo(e,r){var t=typeof r,a;return r==null||t==="boolean"?Zf(r):(t==="number"?yn:t==="string"?(a=wo(r))?(r=a,g0):Lm:r instanceof wo?g0:r instanceof Date?Cm:km(r)?Jf:Array.isArray(r)?R5:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Sm:yn)(e,r)}var x0=lt(()=>{Bs();P5();z5();N5();b0();F5();O5();E5();qm()});function mY(e){var r=e.length;return function(t){return e[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var yY=lt(()=>{});function gY(e,r){var t=To(+e,+r);return function(a){var n=t(a);return n-360*Math.floor(n/360)}}var xY=lt(()=>{Ys()});function bY(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}var _Y=lt(()=>{});function B5(e,r,t,a,n,i){var l,o,s;return(l=Math.sqrt(e*e+r*r))&&(e/=l,r/=l),(s=e*t+r*a)&&(t-=e*s,a-=r*s),(o=Math.sqrt(t*t+a*a))&&(t/=o,a/=o,s/=o),e*a{wY=180/Math.PI,Dm={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function MY(e){let r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?Dm:B5(r.a,r.b,r.c,r.d,r.e,r.f)}function AY(e){return e==null?Dm:(Em||(Em=document.createElementNS("http://www.w3.org/2000/svg","g")),Em.setAttribute("transform",e),(e=Em.transform.baseVal.consolidate())?(e=e.matrix,B5(e.a,e.b,e.c,e.d,e.e,e.f)):Dm)}var Em,kY=lt(()=>{TY()});function qY(e,r,t,a){function n(u){return u.length?u.pop()+" ":""}function i(u,f,c,h,d,p){if(u!==c||f!==h){var y=d.push("translate(",null,r,null,t);p.push({i:y-4,x:yn(u,c)},{i:y-2,x:yn(f,h)})}else(c||h)&&d.push("translate("+c+r+h+t)}function l(u,f,c,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:c.push(n(c)+"rotate(",null,a)-2,x:yn(u,f)})):f&&c.push(n(c)+"rotate("+f+a)}function o(u,f,c,h){u!==f?h.push({i:c.push(n(c)+"skewX(",null,a)-2,x:yn(u,f)}):f&&c.push(n(c)+"skewX("+f+a)}function s(u,f,c,h,d,p){if(u!==c||f!==h){var y=d.push(n(d)+"scale(",null,",",null,")");p.push({i:y-4,x:yn(u,c)},{i:y-2,x:yn(f,h)})}else(c!==1||h!==1)&&d.push(n(d)+"scale("+c+","+h+")")}return function(u,f){var c=[],h=[];return u=e(u),f=e(f),i(u.translateX,u.translateY,f.translateX,f.translateY,c,h),l(u.rotate,f.rotate,c,h),o(u.skewX,f.skewX,c,h),s(u.scaleX,u.scaleY,f.scaleX,f.scaleY,c,h),u=f=null,function(d){for(var p=-1,y=h.length,m;++p{b0();kY();CY=qY(MY,"px, ","px)","deg)"),SY=qY(AY,", ",")",")")});function DY(e){return((e=Math.exp(e))+1/e)/2}function Qde(e){return((e=Math.exp(e))-1/e)/2}function jde(e){return((e=Math.exp(2*e))-1)/(e+1)}var Kde,EY,PY=lt(()=>{Kde=1e-12;EY=function e(r,t,a){function n(i,l){var o=i[0],s=i[1],u=i[2],f=l[0],c=l[1],h=l[2],d=f-o,p=c-s,y=d*d+p*p,m,b;if(y{Bs();Ys();zY=RY(To),NY=RY(Ft)});function Y5(e,r){var t=Ft((e=Wf(e)).l,(r=Wf(r)).l),a=Ft(e.a,r.a),n=Ft(e.b,r.b),i=Ft(e.opacity,r.opacity);return function(l){return e.l=t(l),e.a=a(l),e.b=n(l),e.opacity=i(l),e+""}}var IY=lt(()=>{Bs();Ys()});function HY(e){return function(r,t){var a=e((r=m0(r)).h,(t=m0(t)).h),n=Ft(r.c,t.c),i=Ft(r.l,t.l),l=Ft(r.opacity,t.opacity);return function(o){return r.h=a(o),r.c=n(o),r.l=i(o),r.opacity=l(o),r+""}}}var OY,BY,YY=lt(()=>{Bs();Ys();OY=HY(To),BY=HY(Ft)});function GY(e){return function r(t){t=+t;function a(n,i){var l=e((n=Xf(n)).h,(i=Xf(i)).h),o=Ft(n.s,i.s),s=Ft(n.l,i.l),u=Ft(n.opacity,i.opacity);return function(f){return n.h=l(f),n.s=o(f),n.l=s(Math.pow(f,t)),n.opacity=u(f),n+""}}return a.gamma=r,a}(1)}var UY,VY,WY=lt(()=>{Bs();Ys();UY=GY(To),VY=GY(Ft)});function G5(e,r){r===void 0&&(r=e,e=Mo);for(var t=0,a=r.length-1,n=r[0],i=new Array(a<0?0:a);t{x0()});function ZY(e,r){for(var t=new Array(r),a=0;a{});var U5={};KW(U5,{interpolate:()=>Mo,interpolateArray:()=>pY,interpolateBasis:()=>Tm,interpolateBasisClosed:()=>Am,interpolateCubehelix:()=>UY,interpolateCubehelixLong:()=>VY,interpolateDate:()=>Cm,interpolateDiscrete:()=>mY,interpolateHcl:()=>OY,interpolateHclLong:()=>BY,interpolateHsl:()=>zY,interpolateHslLong:()=>NY,interpolateHue:()=>gY,interpolateLab:()=>Y5,interpolateNumber:()=>yn,interpolateNumberArray:()=>Jf,interpolateObject:()=>Sm,interpolateRgb:()=>g0,interpolateRgbBasis:()=>hY,interpolateRgbBasisClosed:()=>dY,interpolateRound:()=>bY,interpolateString:()=>Lm,interpolateTransformCss:()=>CY,interpolateTransformSvg:()=>SY,interpolateZoom:()=>EY,piecewise:()=>G5,quantize:()=>ZY});var V5=lt(()=>{x0();z5();Mm();D5();N5();yY();xY();b0();qm();F5();_Y();O5();LY();PY();P5();FY();IY();YY();WY();XY();JY()});var rG=B((F4e,eG)=>{"use strict";var Xs=kr(),e1e=(V5(),G4(U5)).interpolate,$Y=(V5(),G4(U5)).interpolateNumber,Ao=Pe(),r1e=Ao.strScale,w0=Ao.strTranslate,t1e=Ao.rad2deg,a1e=Pa().MID_SHIFT,Ws=Yr(),Gs=_5(),Rm=da(),Da=Jr(),n1e=sp(),i1e=fp(),l1e=_n(),$f=xr(),W5={left:"start",center:"middle",right:"end"},Us={left:0,center:.5,right:1},KY=/[yzafpnµmkMGTPEZY]/;function T0(e){return e&&e.duration>0}eG.exports=function(r,t,a,n){var i=r._fullLayout,l;T0(a)&&n&&(l=n()),Ao.makeTraceGroups(i._indicatorlayer,t,"trace").each(function(o){var s=o[0],u=s.trace,f=Xs.select(this),c=u._hasGauge,h=u._isAngular,d=u._isBullet,p=u.domain,y={w:i._size.w*(p.x[1]-p.x[0]),h:i._size.h*(p.y[1]-p.y[0]),l:i._size.l+i._size.w*p.x[0],r:i._size.r+i._size.w*(1-p.x[1]),t:i._size.t+i._size.h*(1-p.y[1]),b:i._size.b+i._size.h*p.y[0]},m=y.l+y.w/2,b=y.t+y.h/2,_=Math.min(y.w/2,y.h),w=Gs.innerRadius*_,x,M,k,A=u.align||"center";if(M=b,!c)x=y.l+Us[A]*y.w,k=function(Y){return QY(Y,y.w,y.h)};else if(h&&(x=m,M=b+_/2,k=function(Y){return c1e(Y,.9*w)}),d){var S=Gs.bulletPadding,D=1-Gs.bulletNumberDomainSize+S;x=y.l+(D+(1-D)*Us[A])*y.w,k=function(Y){return QY(Y,(Gs.bulletNumberDomainSize-S)*y.w,y.h)}}u1e(r,f,o,{numbersX:x,numbersY:M,numbersScaler:k,transitionOpts:a,onComplete:l});var E,R;c&&(E={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},R={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var N=f.selectAll("g.angular").data(h?o:[]);N.exit().remove();var I=f.selectAll("g.angularaxis").data(h?o:[]);I.exit().remove(),h&&s1e(r,f,o,{radius:_,innerRadius:w,gauge:N,layer:I,size:y,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var H=f.selectAll("g.bullet").data(d?o:[]);H.exit().remove();var U=f.selectAll("g.bulletaxis").data(d?o:[]);U.exit().remove(),d&&o1e(r,f,o,{gauge:H,layer:U,size:y,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var W=f.selectAll("text.title").data(o);W.exit().remove(),W.enter().append("text").classed("title",!0),W.attr("text-anchor",function(){return d?W5.right:W5[u.title.align]}).text(u.title.text).call(Ws.font,u.title.font).call(Rm.convertToTspans,r),W.attr("transform",function(){var Y=y.l+y.w*Us[u.title.align],O,G=Gs.titlePadding,Z=Ws.bBox(W.node());if(c){if(h)if(u.gauge.axis.visible){var $=Ws.bBox(I.node());O=$.top-G-Z.bottom}else O=y.t+y.h/2-_/2-Z.bottom-G;d&&(O=M-(Z.top+Z.bottom)/2,Y=y.l-Gs.bulletPadding*y.w)}else O=u._numbersTop-G-Z.bottom;return w0(Y,O)})})};function o1e(e,r,t,a){var n=t[0].trace,i=a.gauge,l=a.layer,o=a.gaugeBg,s=a.gaugeOutline,u=a.size,f=n.domain,c=a.transitionOpts,h=a.onComplete,d,p,y,m,b;i.enter().append("g").classed("bullet",!0),i.attr("transform",w0(u.l,u.t)),l.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),l.selectAll("g.xbulletaxistick,path,text").remove();var _=u.h,w=n.gauge.bar.thickness*_,x=f.x[0],M=f.x[0]+(f.x[1]-f.x[0])*(n._hasNumber||n._hasDelta?1-Gs.bulletNumberDomainSize:1);d=_0(e,n.gauge.axis),d._id="xbulletaxis",d.domain=[x,M],d.setScale(),p=Da.calcTicks(d),y=Da.makeTransTickFn(d),m=Da.getTickSigns(d)[2],b=u.t+u.h,d.visible&&(Da.drawTicks(e,d,{vals:d.ticks==="inside"?Da.clipEnds(d,p):p,layer:l,path:Da.makeTickPath(d,b,m),transFn:y}),Da.drawLabels(e,d,{vals:p,layer:l,transFn:y,labelFns:Da.makeLabelFns(d,b)}));function k(I){I.attr("width",function(H){return Math.max(0,d.c2p(H.range[1])-d.c2p(H.range[0]))}).attr("x",function(H){return d.c2p(H.range[0])}).attr("y",function(H){return .5*(1-H.thickness)*_}).attr("height",function(H){return H.thickness*_})}var A=[o].concat(n.gauge.steps),S=i.selectAll("g.bg-bullet").data(A);S.enter().append("g").classed("bg-bullet",!0).append("rect"),S.select("rect").call(k).call(Vs),S.exit().remove();var D=i.selectAll("g.value-bullet").data([n.gauge.bar]);D.enter().append("g").classed("value-bullet",!0).append("rect"),D.select("rect").attr("height",w).attr("y",(_-w)/2).call(Vs),T0(c)?D.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(n.gauge.axis.range[1],t[0].y)))):D.select("rect").attr("width",typeof t[0].y=="number"?Math.max(0,d.c2p(Math.min(n.gauge.axis.range[1],t[0].y))):0),D.exit().remove();var E=t.filter(function(){return n.gauge.threshold.value||n.gauge.threshold.value===0}),R=i.selectAll("g.threshold-bullet").data(E);R.enter().append("g").classed("threshold-bullet",!0).append("line"),R.select("line").attr("x1",d.c2p(n.gauge.threshold.value)).attr("x2",d.c2p(n.gauge.threshold.value)).attr("y1",(1-n.gauge.threshold.thickness)/2*_).attr("y2",(1-(1-n.gauge.threshold.thickness)/2)*_).call($f.stroke,n.gauge.threshold.line.color).style("stroke-width",n.gauge.threshold.line.width),R.exit().remove();var N=i.selectAll("g.gauge-outline").data([s]);N.enter().append("g").classed("gauge-outline",!0).append("rect"),N.select("rect").call(k).call(Vs),N.exit().remove()}function s1e(e,r,t,a){var n=t[0].trace,i=a.size,l=a.radius,o=a.innerRadius,s=a.gaugeBg,u=a.gaugeOutline,f=[i.l+i.w/2,i.t+i.h/2+l/2],c=a.gauge,h=a.layer,d=a.transitionOpts,p=a.onComplete,y=Math.PI/2;function m(te){var le=n.gauge.axis.range[0],fe=n.gauge.axis.range[1],he=(te-le)/(fe-le)*Math.PI-y;return he<-y?-y:he>y?y:he}function b(te){return Xs.svg.arc().innerRadius((o+l)/2-te/2*(l-o)).outerRadius((o+l)/2+te/2*(l-o)).startAngle(-y)}function _(te){te.attr("d",function(le){return b(le.thickness).startAngle(m(le.range[0])).endAngle(m(le.range[1]))()})}var w,x,M,k;c.enter().append("g").classed("angular",!0),c.attr("transform",w0(f[0],f[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),w=_0(e,n.gauge.axis),w.type="linear",w.range=n.gauge.axis.range,w._id="xangularaxis",w.ticklabeloverflow="allow",w.setScale();var A=function(te){return(w.range[0]-te.x)/(w.range[1]-w.range[0])*Math.PI+Math.PI},S={},D=Da.makeLabelFns(w,0),E=D.labelStandoff;S.xFn=function(te){var le=A(te);return Math.cos(le)*E},S.yFn=function(te){var le=A(te),fe=Math.sin(le)>0?.2:1;return-Math.sin(le)*(E+te.fontSize*fe)+Math.abs(Math.cos(le))*(te.fontSize*a1e)},S.anchorFn=function(te){var le=A(te),fe=Math.cos(le);return Math.abs(fe)<.1?"middle":fe>0?"start":"end"},S.heightFn=function(te,le,fe){var he=A(te);return-.5*(1+Math.sin(he))*fe};var R=function(te){return w0(f[0]+l*Math.cos(te),f[1]-l*Math.sin(te))};M=function(te){return R(A(te))};var N=function(te){var le=A(te);return R(le)+"rotate("+-t1e(le)+")"};if(x=Da.calcTicks(w),k=Da.getTickSigns(w)[2],w.visible){k=w.ticks==="inside"?-1:1;var I=(w.linewidth||1)/2;Da.drawTicks(e,w,{vals:x,layer:h,path:"M"+k*I+",0h"+k*w.ticklen,transFn:N}),Da.drawLabels(e,w,{vals:x,layer:h,transFn:M,labelFns:S})}var H=[s].concat(n.gauge.steps),U=c.selectAll("g.bg-arc").data(H);U.enter().append("g").classed("bg-arc",!0).append("path"),U.select("path").call(_).call(Vs),U.exit().remove();var W=b(n.gauge.bar.thickness),Y=c.selectAll("g.value-arc").data([n.gauge.bar]);Y.enter().append("g").classed("value-arc",!0).append("path");var O=Y.select("path");T0(d)?(O.transition().duration(d.duration).ease(d.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",f1e(W,m(t[0].lastY),m(t[0].y))),n._lastValue=t[0].y):O.attr("d",typeof t[0].y=="number"?W.endAngle(m(t[0].y)):"M0,0Z"),O.call(Vs),Y.exit().remove(),H=[];var G=n.gauge.threshold.value;(G||G===0)&&H.push({range:[G,G],color:n.gauge.threshold.color,line:{color:n.gauge.threshold.line.color,width:n.gauge.threshold.line.width},thickness:n.gauge.threshold.thickness});var Z=c.selectAll("g.threshold-arc").data(H);Z.enter().append("g").classed("threshold-arc",!0).append("path"),Z.select("path").call(_).call(Vs),Z.exit().remove();var $=c.selectAll("g.gauge-outline").data([u]);$.enter().append("g").classed("gauge-outline",!0).append("path"),$.select("path").call(_).call(Vs),$.exit().remove()}function u1e(e,r,t,a){var n=t[0].trace,i=a.numbersX,l=a.numbersY,o=n.align||"center",s=W5[o],u=a.transitionOpts,f=a.onComplete,c=Ao.ensureSingle(r,"g","numbers"),h,d,p,y=[];n._hasNumber&&y.push("number"),n._hasDelta&&(y.push("delta"),n.delta.position==="left"&&y.reverse());var m=c.selectAll("text").data(y);m.enter().append("text"),m.attr("text-anchor",function(){return s}).attr("class",function(R){return R}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),m.exit().remove();function b(R,N,I,H){if(R.match("s")&&I>=0!=H>=0&&!N(I).slice(-1).match(KY)&&!N(H).slice(-1).match(KY)){var U=R.slice().replace("s","f").replace(/\d+/,function(Y){return parseInt(Y)-1}),W=_0(e,{tickformat:U});return function(Y){return Math.abs(Y)<1?Da.tickText(W,Y).text:N(Y)}}else return N}function _(){var R=_0(e,{tickformat:n.number.valueformat},n._range);R.setScale(),Da.prepTicks(R);var N=function(Y){return Da.tickText(R,Y).text},I=n.number.suffix,H=n.number.prefix,U=c.select("text.number");function W(){var Y=typeof t[0].y=="number"?H+N(t[0].y)+I:"-";U.text(Y).call(Ws.font,n.number.font).call(Rm.convertToTspans,e)}return T0(u)?U.transition().duration(u.duration).ease(u.easing).each("end",function(){W(),f&&f()}).each("interrupt",function(){W(),f&&f()}).attrTween("text",function(){var Y=Xs.select(this),O=$Y(t[0].lastY,t[0].y);n._lastValue=t[0].y;var G=b(n.number.valueformat,N,t[0].lastY,t[0].y);return function(Z){Y.text(H+G(O(Z))+I)}}):W(),h=jY(H+N(t[0].y)+I,n.number.font,s,e),U}function w(){var R=_0(e,{tickformat:n.delta.valueformat},n._range);R.setScale(),Da.prepTicks(R);var N=function(Z){return Da.tickText(R,Z).text},I=n.delta.suffix,H=n.delta.prefix,U=function(Z){var $=n.delta.relative?Z.relativeDelta:Z.delta;return $},W=function(Z,$){return Z===0||typeof Z!="number"||isNaN(Z)?"-":(Z>0?n.delta.increasing.symbol:n.delta.decreasing.symbol)+H+$(Z)+I},Y=function(Z){return Z.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=U(t[0]));var O=c.select("text.delta");O.call(Ws.font,n.delta.font).call($f.fill,Y({delta:n._deltaLastValue}));function G(){O.text(W(U(t[0]),N)).call($f.fill,Y(t[0])).call(Rm.convertToTspans,e)}return T0(u)?O.transition().duration(u.duration).ease(u.easing).tween("text",function(){var Z=Xs.select(this),$=U(t[0]),te=n._deltaLastValue,le=b(n.delta.valueformat,N,te,$),fe=$Y(te,$);return n._deltaLastValue=$,function(he){Z.text(W(fe(he),le)),Z.call($f.fill,Y({delta:fe(he)}))}}).each("end",function(){G(),f&&f()}).each("interrupt",function(){G(),f&&f()}):G(),d=jY(W(U(t[0]),N),n.delta.font,s,e),O}var x=n.mode+n.align,M;if(n._hasDelta&&(M=w(),x+=n.delta.position+n.delta.font.size+n.delta.font.family+n.delta.valueformat,x+=n.delta.increasing.symbol+n.delta.decreasing.symbol,p=d),n._hasNumber&&(_(),x+=n.number.font.size+n.number.font.family+n.number.valueformat+n.number.suffix+n.number.prefix,p=h),n._hasDelta&&n._hasNumber){var k=[(h.left+h.right)/2,(h.top+h.bottom)/2],A=[(d.left+d.right)/2,(d.top+d.bottom)/2],S,D,E=.75*n.delta.font.size;n.delta.position==="left"&&(S=Pm(n,"deltaPos",0,-1*(h.width*Us[n.align]+d.width*(1-Us[n.align])+E),x,Math.min),D=k[1]-A[1],p={width:h.width+d.width+E,height:Math.max(h.height,d.height),left:d.left+S,right:h.right,top:Math.min(h.top,d.top+D),bottom:Math.max(h.bottom,d.bottom+D)}),n.delta.position==="right"&&(S=Pm(n,"deltaPos",0,h.width*(1-Us[n.align])+d.width*Us[n.align]+E,x,Math.max),D=k[1]-A[1],p={width:h.width+d.width+E,height:Math.max(h.height,d.height),left:h.left,right:d.right+S,top:Math.min(h.top,d.top+D),bottom:Math.max(h.bottom,d.bottom+D)}),n.delta.position==="bottom"&&(S=null,D=d.height,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),n.delta.position==="top"&&(S=null,D=h.top,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),M.attr({dx:S,dy:D})}(n._hasNumber||n._hasDelta)&&c.attr("transform",function(){var R=a.numbersScaler(p);x+=R[2];var N=Pm(n,"numbersScale",1,R[0],x,Math.min),I;n._scaleNumbers||(N=1),n._isAngular?I=l-N*p.bottom:I=l-N*(p.top+p.bottom)/2,n._numbersTop=N*p.top+I;var H=p[o];o==="center"&&(H=(p.left+p.right)/2);var U=i-N*H;return U=Pm(n,"numbersTranslate",0,U,x,Math.max),w0(U,I)+r1e(N)})}function Vs(e){e.each(function(r){$f.stroke(Xs.select(this),r.line.color)}).each(function(r){$f.fill(Xs.select(this),r.color)}).style("stroke-width",function(r){return r.line.width})}function f1e(e,r,t){return function(){var a=e1e(r,t);return function(n){return e.endAngle(a(n))()}}}function _0(e,r,t){var a=e._fullLayout,n=Ao.extendFlat({type:"linear",ticks:"outside",range:t,showline:!0},r),i={type:"linear",_id:"x"+r._id},l={letter:"x",font:a.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function o(s,u){return Ao.coerce(n,i,l1e,s,u)}return n1e(n,i,o,l,a),i1e(n,i,o,l),i}function QY(e,r,t){var a=Math.min(r/e.width,t/e.height);return[a,e,r+"x"+t]}function c1e(e,r){var t=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),a=r/t;return[a,e,r]}function jY(e,r,t,a){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),i=Xs.select(n);return i.text(e).attr("x",0).attr("y",0).attr("text-anchor",t).attr("data-unformatted",e).call(Rm.convertToTspans,a).call(Ws.font,r),Ws.bBox(i.node())}function Pm(e,r,t,a,n,i){var l="_cache"+r;e[l]&&e[l].key===n||(e[l]={key:n,value:t});var o=Ao.aggNums(i,null,[e[l].value,a],2);return e[l].value=o,o}});var aG=B((I4e,tG)=>{"use strict";tG.exports={moduleType:"trace",name:"indicator",basePlotModule:SB(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:b5(),supplyDefaults:HB().supplyDefaults,calc:BB().calc,plot:rG(),meta:{}}});var iG=B((H4e,nG)=>{"use strict";nG.exports=aG()});var Nm=B((O4e,fG)=>{"use strict";var zm=Pe().extendFlat,M0=bi(),lG=di().axisHoverFormat,sG=fi().dash,v1e=wc(),uG=Ff(),h1e=uG.INCREASING.COLOR,d1e=uG.DECREASING.COLOR,X5=M0.line;function oG(e){return{line:{color:zm({},X5.color,{dflt:e}),width:X5.width,dash:sG,editType:"style"},editType:"style"}}fG.exports={xperiod:M0.xperiod,xperiod0:M0.xperiod0,xperiodalignment:M0.xperiodalignment,xhoverformat:lG("x"),yhoverformat:lG("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:zm({},X5.width,{}),dash:zm({},sG,{}),editType:"style"},increasing:oG(h1e),decreasing:oG(d1e),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:zm({},v1e.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:M0.zorder}});var Z5=B((B4e,cG)=>{"use strict";var p1e=yr(),m1e=Pe();cG.exports=function(r,t,a,n){var i=a("x"),l=a("open"),o=a("high"),s=a("low"),u=a("close");a("hoverlabel.split");var f=p1e.getComponentMethod("calendars","handleTraceDefaults");if(f(r,t,["x"],n),!!(l&&o&&s&&u)){var c=Math.min(l.length,o.length,s.length,u.length);return i&&(c=Math.min(c,m1e.minRowLength(i))),t._length=c,c}}});var dG=B((Y4e,hG)=>{"use strict";var y1e=Pe(),g1e=Z5(),x1e=_s(),b1e=Nm();hG.exports=function(r,t,a,n){function i(o,s){return y1e.coerce(r,t,b1e,o,s)}var l=g1e(r,t,i,n);if(!l){t.visible=!1;return}x1e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),i("line.dash"),vG(r,t,i,"increasing"),vG(r,t,i,"decreasing"),i("text"),i("hovertext"),i("tickwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function vG(e,r,t,a){t(a+".line.color"),t(a+".line.width",r.line.width),t(a+".line.dash",r.line.dash)}});var J5=B((G4e,mG)=>{"use strict";var Kf=Pe(),Fm=Kf._,Im=Jr(),_1e=ws(),A0=Mt().BADNUM;function w1e(e,r){var t=Im.getFromId(e,r.xaxis),a=Im.getFromId(e,r.yaxis),n=M1e(e,t,r),i=r._minDiff;r._minDiff=null;var l=r._origX;r._origX=null;var o=r._xcalc;r._xcalc=null;var s=pG(e,r,l,o,a,T1e);return r._extremes[t._id]=Im.findExtremes(t,o,{vpad:i/2}),s.length?(Kf.extendFlat(s[0].t,{wHover:i/2,tickLen:n}),s):[{t:{empty:!0}}]}function T1e(e,r,t,a){return{o:e,h:r,l:t,c:a}}function pG(e,r,t,a,n,i){for(var l=n.makeCalcdata(r,"open"),o=n.makeCalcdata(r,"high"),s=n.makeCalcdata(r,"low"),u=n.makeCalcdata(r,"close"),f=Kf.isArrayOrTypedArray(r.text),c=Kf.isArrayOrTypedArray(r.hovertext),h=!0,d=null,p=!!r.xperiodalignment,y=[],m=0;md):h=M>_,d=M;var k=i(_,w,x,M);k.pos=b,k.yc=(_+M)/2,k.i=m,k.dir=h?"increasing":"decreasing",k.x=k.pos,k.y=[x,w],p&&(k.orig_p=t[m]),f&&(k.tx=r.text[m]),c&&(k.htx=r.hovertext[m]),y.push(k)}else y.push({pos:b,empty:!0})}return r._extremes[n._id]=Im.findExtremes(n,Kf.concat(s,o),{padded:!0}),y.length&&(y[0].t={labels:{open:Fm(e,"open:")+" ",high:Fm(e,"high:")+" ",low:Fm(e,"low:")+" ",close:Fm(e,"close:")+" "}}),y}function M1e(e,r,t){var a=t._minDiff;if(!a){var n=e._fullData,i=[];a=1/0;var l;for(l=0;l{"use strict";var A1e=kr(),yG=Pe();gG.exports=function(r,t,a,n){var i=t.yaxis,l=t.xaxis,o=!!l.rangebreaks;yG.makeTraceGroups(n,a,"trace ohlc").each(function(s){var u=A1e.select(this),f=s[0],c=f.t,h=f.trace;if(h.visible!==!0||c.empty){u.remove();return}var d=c.tickLen,p=u.selectAll("path").data(yG.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(y){if(y.empty)return"M0,0Z";var m=l.c2p(y.pos-d,!0),b=l.c2p(y.pos+d,!0),_=o?(m+b)/2:l.c2p(y.pos,!0),w=i.c2p(y.o,!0),x=i.c2p(y.h,!0),M=i.c2p(y.l,!0),k=i.c2p(y.c,!0);return"M"+m+","+w+"H"+_+"M"+_+","+x+"V"+M+"M"+b+","+k+"H"+_})})}});var _G=B((V4e,bG)=>{"use strict";var $5=kr(),k1e=Yr(),q1e=xr();bG.exports=function(r,t,a){var n=a||$5.select(r).selectAll("g.ohlclayer").selectAll("g.trace");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var l=i[0].trace;$5.select(this).selectAll("path").each(function(o){if(!o.empty){var s=l[o.dir].line;$5.select(this).style("fill","none").call(q1e.stroke,s.color).call(k1e.dashLine,s.dash,s.width).style("opacity",l.selectedpoints&&!o.selected?.3:1)}})})}});var Q5=B((W4e,kG)=>{"use strict";var K5=Jr(),C1e=Pe(),Hm=gi(),S1e=xr(),L1e=Pe().fillText,wG=Ff(),D1e={increasing:wG.INCREASING.SYMBOL,decreasing:wG.DECREASING.SYMBOL};function E1e(e,r,t,a){var n=e.cd,i=n[0].trace;return i.hoverlabel.split?MG(e,r,t,a):AG(e,r,t,a)}function TG(e,r,t,a){var n=e.cd,i=e.xa,l=n[0].trace,o=n[0].t,s=l.type,u=s==="ohlc"?"l":"min",f=s==="ohlc"?"h":"max",c,h,d=o.bPos||0,p=function(E){return E.pos+d-r},y=o.bdPos||o.tickLen,m=o.wHover,b=Math.min(1,y/Math.abs(i.r2c(i.range[1])-i.r2c(i.range[0])));c=e.maxHoverDistance-b,h=e.maxSpikeDistance-b;function _(E){var R=p(E);return Hm.inbox(R-m,R+m,c)}function w(E){var R=E[u],N=E[f];return R===N||Hm.inbox(R-t,N-t,c)}function x(E){return(_(E)+w(E))/2}var M=Hm.getDistanceFunction(a,_,w,x);if(Hm.getClosest(n,M,e),e.index===!1)return null;var k=n[e.index];if(k.empty)return null;var A=k.dir,S=l[A],D=S.line.color;return S1e.opacity(D)&&S.line.width?e.color=D:e.color=S.fillcolor,e.x0=i.c2p(k.pos+d-y,!0),e.x1=i.c2p(k.pos+d+y,!0),e.xLabelVal=k.orig_p!==void 0?k.orig_p:k.pos,e.spikeDistance=x(k)*h/c,e.xSpike=i.c2p(k.pos,!0),e}function MG(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=[],u=TG(e,r,t,a);if(!u)return[];var f=u.index,c=n[f],h=c.hi||l.hoverinfo,d=h.split("+"),p=h==="all",y=p||d.indexOf("y")!==-1;if(!y)return[];for(var m=["high","open","close","low"],b={},_=0;_"+o.labels[w]+K5.hoverLabelText(i,x,l.yhoverformat)):(k=C1e.extendFlat({},u),k.y0=k.y1=M,k.yLabelVal=x,k.yLabel=o.labels[w]+K5.hoverLabelText(i,x,l.yhoverformat),k.name="",s.push(k),b[x]=k)}return s}function AG(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=TG(e,r,t,a);if(!s)return[];var u=s.index,f=n[u],c=s.index=f.i,h=f.dir;function d(x){return o.labels[x]+K5.hoverLabelText(i,l[x][c],l.yhoverformat)}var p=f.hi||l.hoverinfo,y=p.split("+"),m=p==="all",b=m||y.indexOf("y")!==-1,_=m||y.indexOf("text")!==-1,w=b?[d("open"),d("high"),d("low"),d("close")+" "+D1e[h]]:[];return _&&L1e(f,l,w),s.extraText=w.join("
"),s.y0=s.y1=i.c2p(f.yc,!0),[s]}kG.exports={hoverPoints:E1e,hoverSplit:MG,hoverOnPoints:AG}});var j5=B((X4e,qG)=>{"use strict";qG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o,s=a[0].t.bPos||0;if(t===!1)for(o=0;o{"use strict";CG.exports={moduleType:"trace",name:"ohlc",basePlotModule:gl(),categories:["cartesian","svg","showLegend"],meta:{},attributes:Nm(),supplyDefaults:dG(),calc:J5().calc,plot:xG(),style:_G(),hoverPoints:Q5().hoverPoints,selectPoints:j5()}});var DG=B((J4e,LG)=>{"use strict";LG.exports=SG()});var NG=B(($4e,zG)=>{"use strict";var P1e=V3(),ri=bi(),EG=Tl(),R1e=Nn(),PG=di().axisHoverFormat,z1e=ha().hovertemplateAttrs,Cl=mt().extendFlat,Qf=ri.marker,RG=Qf.line;zG.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:ri.xperiod,yperiod:ri.yperiod,xperiod0:ri.xperiod0,yperiod0:ri.yperiod0,xperiodalignment:ri.xperiodalignment,yperiodalignment:ri.yperiodalignment,xhoverformat:PG("x"),yhoverformat:PG("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Cl({},Qf.symbol,{arrayOk:!1,editType:"plot"}),opacity:Cl({},Qf.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Cl({},Qf.angle,{arrayOk:!1,editType:"calc"}),size:Cl({},Qf.size,{arrayOk:!1,editType:"calc"}),color:Cl({},Qf.color,{arrayOk:!1,editType:"style"}),line:{color:Cl({},RG.color,{arrayOk:!1,dflt:R1e.defaultLine,editType:"style"}),width:Cl({},RG.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:P1e(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:EG.offsetgroup,alignmentgroup:EG.alignmentgroup,selected:{marker:ri.selected.marker,editType:"style"},unselected:{marker:ri.unselected.marker,editType:"style"},text:Cl({},ri.text,{}),hovertext:Cl({},ri.hovertext,{}),hovertemplate:z1e({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:ri.zorder}});var r_=B((K4e,HG)=>{"use strict";var e_=Pe().extendFlat,FG=di().axisHoverFormat,Dn=Nm(),jf=NG();function IG(e){return{line:{color:e_({},jf.line.color,{dflt:e}),width:jf.line.width,editType:"style"},fillcolor:jf.fillcolor,editType:"style"}}HG.exports={xperiod:Dn.xperiod,xperiod0:Dn.xperiod0,xperiodalignment:Dn.xperiodalignment,xhoverformat:FG("x"),yhoverformat:FG("y"),x:Dn.x,open:Dn.open,high:Dn.high,low:Dn.low,close:Dn.close,line:{width:e_({},jf.line.width,{}),editType:"style"},increasing:IG(Dn.increasing.line.color.dflt),decreasing:IG(Dn.decreasing.line.color.dflt),text:Dn.text,hovertext:Dn.hovertext,whiskerwidth:e_({},jf.whiskerwidth,{dflt:0}),hoverlabel:Dn.hoverlabel,zorder:jf.zorder}});var t_=B((Q4e,OG)=>{"use strict";OG.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var GG=B((j4e,YG)=>{"use strict";var N1e=yr(),F1e=Pe(),I1e=t_();function BG(e,r,t,a,n){for(var i=n+"Layout",l=!1,o=0;o{"use strict";var UG=Jr(),O1e=Pe(),B1e=ys().getAxisGroup,VG=["v","h"];function Y1e(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,_=1-i[e+"gap"],w=1-i[e+"groupgap"];for(s=0;s0;if(A==="positive"?(O=S*(k?1:.5),$=Z,G=$=E):A==="negative"?(O=$=E,G=S*(k?1:.5),te=Z):(O=G=S,$=te=Z),ve){var Ae=x.pointpos,se=x.jitter,be=x.marker.size/2,V=0;Ae+se>=0&&(V=Z*(Ae+se),V>O?(qe=!0,he=be,le=V):V>$&&(he=be,le=O)),V<=O&&(le=O);var j=0;Ae-se<=0&&(j=-Z*(Ae-se),j>G?(qe=!0,Q=be,fe=j):j>te&&(Q=be,fe=G)),j<=G&&(fe=G)}else le=O,fe=G;var X=new Array(f.length);for(u=0;u{"use strict";var G1e=Pe(),U1e=xr(),V1e=Z5(),W1e=_s(),X1e=r_();$G.exports=function(r,t,a,n){function i(o,s){return G1e.coerce(r,t,X1e,o,s)}var l=V1e(r,t,i,n);if(!l){t.visible=!1;return}W1e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),JG(r,t,i,"increasing"),JG(r,t,i,"decreasing"),i("text"),i("hovertext"),i("whiskerwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function JG(e,r,t,a){var n=t(a+".line.color");t(a+".line.width",r.line.width),t(a+".fillcolor",U1e.addOpacity(n,.5))}});var rU=B((t6e,eU)=>{"use strict";var QG=Pe(),jG=Jr(),Z1e=ws(),J1e=J5().calcCommon;eU.exports=function(e,r){var t=e._fullLayout,a=jG.getFromId(e,r.xaxis),n=jG.getFromId(e,r.yaxis),i=a.makeCalcdata(r,"x"),l=Z1e(r,a,"x",i).vals,o=J1e(e,r,i,l,n,$1e);return o.length?(QG.extendFlat(o[0].t,{num:t._numBoxes,dPos:QG.distinctVals(l).minDiff/2,posLetter:"x",valLetter:"y"}),t._numBoxes++,o):[{t:{empty:!0}}]};function $1e(e,r,t,a){return{min:t,q1:Math.min(e,a),med:a,q3:Math.max(e,a),max:r}}});var oU=B((a6e,lU)=>{"use strict";var ec=kr(),Zs=Pe(),K1e=Yr(),tU=5,Q1e=.01;function j1e(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,l=r.yaxis;Zs.makeTraceGroups(a,t,"trace boxes").each(function(o){var s=ec.select(this),u=o[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var h,d;c.orientation==="h"?(h=l,d=i):(h=i,d=l),aU(s,{pos:h,val:d},c,f,n),nU(s,{x:i,y:l},c,f),iU(s,{pos:h,val:d},c,f)})}function aU(e,r,t,a,n){var i=t.orientation==="h",l=r.val,o=r.pos,s=!!o.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,h=t.whiskerwidth||0,d=t.showwhiskers!==!1,p=t.notched||!1,y=p?1-2*t.notchwidth:1,m,b;Array.isArray(a.bdPos)?(m=a.bdPos[0],b=a.bdPos[1]):(m=a.bdPos,b=a.bdPos);var _=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Zs.identity:[]);_.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),_.exit().remove(),_.each(function(w){if(w.empty)return ec.select(this).attr("d","M0,0Z");var x=o.c2l(w.pos+u,!0),M=o.l2p(x-m)+c,k=o.l2p(x+b)+c,A=s?(M+k)/2:o.l2p(x)+c,S=t.whiskerwidth,D=s?M*S+(1-S)*A:o.l2p(x-f)+c,E=s?k*S+(1-S)*A:o.l2p(x+f)+c,R=o.l2p(x-m*y)+c,N=o.l2p(x+b*y)+c,I=t.sizemode==="sd",H=l.c2p(I?w.mean-w.sd:w.q1,!0),U=I?l.c2p(w.mean+w.sd,!0):l.c2p(w.q3,!0),W=Zs.constrain(I?l.c2p(w.mean,!0):l.c2p(w.med,!0),Math.min(H,U)+1,Math.max(H,U)-1),Y=w.lf===void 0||t.boxpoints===!1||I,O=l.c2p(Y?w.min:w.lf,!0),G=l.c2p(Y?w.max:w.uf,!0),Z=l.c2p(w.ln,!0),$=l.c2p(w.un,!0);i?ec.select(this).attr("d","M"+W+","+R+"V"+N+"M"+H+","+M+"V"+k+(p?"H"+Z+"L"+W+","+N+"L"+$+","+k:"")+"H"+U+"V"+M+(p?"H"+$+"L"+W+","+R+"L"+Z+","+M:"")+"Z"+(d?"M"+H+","+A+"H"+O+"M"+U+","+A+"H"+G+(h===0?"":"M"+O+","+D+"V"+E+"M"+G+","+D+"V"+E):"")):ec.select(this).attr("d","M"+R+","+W+"H"+N+"M"+M+","+H+"H"+k+(p?"V"+Z+"L"+N+","+W+"L"+k+","+$:"")+"V"+U+"H"+M+(p?"V"+$+"L"+R+","+W+"L"+M+","+Z:"")+"Z"+(d?"M"+A+","+H+"V"+O+"M"+A+","+U+"V"+G+(h===0?"":"M"+D+","+O+"H"+E+"M"+D+","+G+"H"+E):""))})}function nU(e,r,t,a){var n=r.x,i=r.y,l=a.bdPos,o=a.bPos,s=t.boxpoints||t.points;Zs.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=a,d.trace=t}),h},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(h){var d,p=h.pts2,y=Math.max((h.max-h.min)/10,h.q3-h.q1),m=y*1e-9,b=y*Q1e,_=[],w=0,x;if(t.jitter){if(y===0)for(w=1,_=new Array(p.length),d=0;dh.lo&&(E.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(K1e.translatePoints,n,i)}function iU(e,r,t,a){var n=r.val,i=r.pos,l=!!i.rangebreaks,o=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var h=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Zs.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var p=i.c2l(d.pos+o,!0),y=i.l2p(p-f)+s,m=i.l2p(p+c)+s,b=l?(y+m)/2:i.l2p(p)+s,_=n.c2p(d.mean,!0),w=n.c2p(d.mean-d.sd,!0),x=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?ec.select(this).attr("d","M"+_+","+y+"V"+m+(u==="sd"?"m0,0L"+w+","+b+"L"+_+","+y+"L"+x+","+b+"Z":"")):ec.select(this).attr("d","M"+y+","+_+"H"+m+(u==="sd"?"m0,0L"+b+","+w+"L"+y+","+_+"L"+b+","+x+"Z":""))})}lU.exports={plot:j1e,plotBoxAndWhiskers:aU,plotPoints:nU,plotBoxMean:iU}});var uU=B((n6e,sU)=>{"use strict";var a_=kr(),n_=xr(),i_=Yr();function epe(e,r,t){var a=t||a_.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=a_.select(this),l=n[0].trace,o=l.line.width;function s(c,h,d,p){c.style("stroke-width",h+"px").call(n_.stroke,d).call(n_.fill,p)}var u=i.selectAll("path.box");if(l.type==="candlestick")u.each(function(c){if(!c.empty){var h=a_.select(this),d=l[c.dir];s(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",l.selectedpoints&&!c.selected?.3:1)}});else{s(u,o,l.line.color,l.fillcolor),i.selectAll("path.mean").style({"stroke-width":o,"stroke-dasharray":2*o+"px,"+o+"px"}).call(n_.stroke,l.line.color);var f=i.selectAll("path.point");i_.pointStyle(f,l,e)}})}function rpe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?i_.selectedPointStyle(n,a):i_.pointStyle(n,a,e)}sU.exports={style:epe,styleOnSelect:rpe}});var cU=B((i6e,fU)=>{"use strict";fU.exports={moduleType:"trace",name:"candlestick",basePlotModule:gl(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:r_(),layoutAttributes:t_(),supplyLayoutDefaults:GG().supplyLayoutDefaults,crossTraceCalc:ZG().crossTraceCalc,supplyDefaults:KG(),calc:rU(),plot:oU().plot,layerName:"boxlayer",style:uU().style,hoverPoints:Q5().hoverPoints,selectPoints:j5()}});var hU=B((l6e,vU)=>{"use strict";vU.exports=cU()});var Fa=B((o6e,pU)=>{"use strict";var dU=Object.getOwnPropertySymbols,tpe=Object.prototype.hasOwnProperty,ape=Object.prototype.propertyIsEnumerable;function npe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ipe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}pU.exports=ipe()?Object.assign:function(e,r){for(var t,a=npe(e),n,i=1;i{var Bm=Fa();function mU(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}Bm(mU.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function l_(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Om(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Bm(l_.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Rr.local.differentCalendars||Rr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Om(Math.abs(this.year()),4)+"-"+Om(this.month(),2)+"-"+Om(this.day(),2)}});function o_(){this.shortYearCutoff="+10"}Bm(o_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new l_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Om(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Rr.local.invalidMonth||Rr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Rr.local.invalidMonth||Rr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lc-1+f.minMonth;)i++,l-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Rr=yU.exports=new mU;Rr.cdate=l_;Rr.baseCalendar=o_;Rr.calendars.gregorian=s_});var gU=B(()=>{var u_=Fa(),ya=Ia();u_(ya.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});ya.local=ya.regionalOptions[""];u_(ya.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});u_(ya.baseCalendar.prototype,{UNIX_EPOCH:ya.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:ya.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw ya.local.invalidFormat||ya.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(x,M){for(var k=1;w+k1},f=function(x,M,k,A){var S=""+M;if(u(x,A))for(;S.length1},_=function(N,I){var H=b(N,I),U=[2,3,H?4:2,H?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],W=new RegExp("^-?\\d{1,"+U+"}"),Y=r.substring(S).match(W);if(!Y)throw(ya.local.missingNumberAt||ya.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=Y[0].length,parseInt(Y[0],10)},w=this,x=function(){if(typeof o=="function"){b("m");var N=o.call(w,r.substring(S));return S+=N.length,N}return _("m")},M=function(N,I,H,U){for(var W=b(N,U)?H:I,Y=0;Y-1){h=1,d=p;for(var R=this.daysInMonth(c,h);d>R;R=this.daysInMonth(c,h))h++,d-=R}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(c){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var xU=B(()=>{var ko=Ia(),lpe=Fa(),f_=ko.instance();function Ym(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ym.prototype=new ko.baseCalendar;lpe(Ym.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(spe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(upe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(fpe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw ko.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw ko.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,ko.local.invalidyear),n=Co[a-Co[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=f_.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=qo[e-qo[0]],a=t>>13,n=a?12:11;if(r>n)throw ko.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,ko.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=vpe(e,i,t,n);return f_.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=f_.fromJD(e),t=cpe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(ope),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(Ym.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),c=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);c!==u&&o.month(c)}return o}});var ope=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,spe=/^\d?\d[iI]?/m,upe=/^闰?十?[一二三四五六七八九]?月/m,fpe=/^闰?十?[一二三四五六七八九]?/m;ko.calendars.chinese=Ym;var qo=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Co=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function cpe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Co[n.year-Co[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Co[i.year-Co[0]];var c=u>>9&4095,h=u>>5&15,d=u&31,p,y=new Date(c,h-1,d),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-y)/(24*3600*1e3));var b=qo[i.year-qo[0]],_;for(_=0;_<13;_++){var w=b&1<<12-_?30:29;if(p>13;return!x||_=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var c;c=l.day-1;var h=qo[l.year-qo[0]],d=h>>13,p;d&&(l.month>d||l.isIntercalary)?p=l.month:p=l.month-1;for(var y=0;y>9&4095,w=b>>5&15,x=b&31,M=new Date(_,w-1,x+c);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var bU=B(()=>{var Js=Ia(),hpe=Fa();function c_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}c_.prototype=new Js.baseCalendar;hpe(c_.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Js.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Js.local.invalidYear||Js.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Js.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Js.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Js.calendars.coptic=c_});var _U=B(()=>{var Sl=Ia(),dpe=Fa();function v_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}v_.prototype=new Sl.baseCalendar;dpe(v_.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Sl.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Sl.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Sl.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Sl.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Sl.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Sl.local.invalidDate);return{century:ppe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Sl.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var ppe={20:"Fruitbat",21:"Anchovy"};Sl.calendars.discworld=v_});var wU=B(()=>{var $s=Ia(),mpe=Fa();function h_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}h_.prototype=new $s.baseCalendar;mpe(h_.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,$s.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,$s.local.invalidYear||$s.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,$s.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,$s.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});$s.calendars.ethiopian=h_});var TU=B(()=>{var So=Ia(),ype=Fa();function d_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}d_.prototype=new So.baseCalendar;ype(d_.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,So.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Gm(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,So.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,So.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,So.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Gm(this.daysInYear(e),10)===5?30:r===9&&Gm(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,So.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,So.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function Gm(e,r){return e-r*Math.floor(e/r)}So.calendars.hebrew=d_});var MU=B(()=>{var k0=Ia(),gpe=Fa();function p_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}p_.prototype=new k0.baseCalendar;gpe(p_.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,k0.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,k0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,k0.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});k0.calendars.islamic=p_});var AU=B(()=>{var q0=Ia(),xpe=Fa();function m_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m_.prototype=new q0.baseCalendar;xpe(m_.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,q0.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,q0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,q0.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});q0.calendars.julian=m_});var qU=B(()=>{var ti=Ia(),bpe=Fa();function g_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}g_.prototype=new ti.baseCalendar;bpe(g_.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ti.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ti.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ti.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,ti.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ti.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,ti.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ti.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,ti.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ti.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=y_(e+8+17*20,365);return[Math.floor(r/20)+1,y_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[kU(e+20,20),kU(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,ti.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function y_(e,r){return e-r*Math.floor(e/r)}function kU(e,r){return y_(e-1,r)+1}ti.calendars.mayan=g_});var SU=B(()=>{var Ks=Ia(),_pe=Fa();function x_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x_.prototype=new Ks.baseCalendar;var CU=Ks.instance("gregorian");_pe(x_.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ks.local.invalidYear||Ks.regionalOptions[""].invalidYear);return CU.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ks.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ks.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Ks.calendars.nanakshahi=x_});var LU=B(()=>{var Qs=Ia(),wpe=Fa();function b_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b_.prototype=new Qs.baseCalendar;wpe(b_.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Qs.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Qs.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Qs.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Qs.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Qs.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var rc=Ia(),Tpe=Fa();function Vm(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Um(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}Vm.prototype=new rc.baseCalendar;Tpe(Vm.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,rc.local.invalidYear);return Um(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,rc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,rc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Um(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});rc.calendars.persian=Vm;rc.calendars.jalali=Vm});var EU=B(()=>{var js=Ia(),Mpe=Fa(),Wm=js.instance();function __(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}__.prototype=new js.baseCalendar;Mpe(__.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,js.local.invalidYear),t=this._t2gYear(r.year());return Wm.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,js.local.invalidYear),n=this._t2gYear(a.year());return Wm.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,js.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,js.local.invalidDate),n=this._t2gYear(a.year());return Wm.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Wm.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});js.calendars.taiwan=__});var PU=B(()=>{var eu=Ia(),Ape=Fa(),Xm=eu.instance();function w_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}w_.prototype=new eu.baseCalendar;Ape(w_.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,eu.local.invalidYear),t=this._t2gYear(r.year());return Xm.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,eu.local.invalidYear),n=this._t2gYear(a.year());return Xm.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,eu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,eu.local.invalidDate),n=this._t2gYear(a.year());return Xm.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Xm.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});eu.calendars.thai=w_});var RU=B(()=>{var ru=Ia(),kpe=Fa();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new ru.baseCalendar;kpe(T_.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ru.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,ru.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Lo[n]-Lo[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,ru.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Lo[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-Lo[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=ru.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=ru.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});ru.calendars.ummalqura=T_;var Lo=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var NU=B((H6e,zU)=>{"use strict";zU.exports=Ia();gU();xU();bU();_U();wU();TU();MU();AU();qU();SU();LU();DU();EU();PU();RU()});var GU=B((O6e,YU)=>{"use strict";var IU=NU(),C0=Pe(),HU=Mt(),qpe=HU.EPOCHJD,Cpe=HU.ONEDAY,k_={valType:"enumerated",values:C0.sortObjectKeys(IU.calendars),editType:"calc",dflt:"gregorian"},OU=function(e,r,t,a){var n={};return n[t]=k_,C0.coerce(e,r,n,t,a)},Spe=function(e,r,t,a){for(var n=0;n{"use strict";UU.exports=GU()});var zpe=B((Y6e,XU)=>{var WU=aF();WU.register([iI(),JI(),LH(),mO(),nB(),qB(),iG(),DG(),hU(),VU()]);XU.exports=WU});return zpe();})(); +"use strict";var Plotly=(()=>{var Ty=Object.defineProperty;var $W=Object.getOwnPropertyDescriptor;var KW=Object.getOwnPropertyNames;var QW=Object.prototype.hasOwnProperty;var lt=(e,r)=>()=>(e&&(r=e(e=0)),r);var B=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),jW=(e,r)=>{for(var t in r)Ty(e,t,{get:r[t],enumerable:!0})},eX=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of KW(r))!QW.call(e,n)&&n!==t&&Ty(e,n,{get:()=>r[n],enumerable:!(a=$W(r,n))||a.enumerable});return e};var V4=e=>eX(Ty({},"__esModule",{value:!0}),e);var ah=B(G4=>{"use strict";G4.version="3.1.2"});var W4=B((U4,nh)=>{(function(r,t,a){t[r]=t[r]||a(),typeof nh!="undefined"&&nh.exports&&(nh.exports=t[r])})("Promise",typeof window!="undefined"?window:U4,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(_){return setImmediate(_)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(_,w,x,M){return Object.defineProperty(_,w,{value:x,writable:!0,configurable:M!==!1})}}catch(b){r=function(w,x,M){return w[x]=M,w}}a=function(){var _,w,x;function M(k,A){this.fn=k,this.self=A,this.next=void 0}return{add:function(A,C){x=new M(A,C),w?w.next=x:_=x,w=x,x=void 0},drain:function(){var A=_;for(_=w=t=void 0;A;)A.fn.call(A.self),A=A.next}}}();function l(b,_){a.add(b,_),t||(t=i(a.drain))}function o(b){var _,w=typeof b;return b!=null&&(w=="object"||w=="function")&&(_=b.then),typeof _=="function"?_:!1}function s(){for(var b=0;b0&&l(s,w))}catch(x){c.call(new d(w),x)}}}function c(b){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=b,_.state=2,_.chain.length>0&&l(s,_))}function h(b,_,w,x){for(var M=0;M<_.length;M++)(function(A){b.resolve(_[A]).then(function(D){w(A,D)},x)})(M)}function d(b){this.def=b,this.triggered=!1}function p(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var _=new p(this);this.then=function(x,M){var k={success:typeof x=="function"?x:!0,failure:typeof M=="function"?M:!1};return k.promise=new this.constructor(function(C,D){if(typeof C!="function"||typeof D!="function")throw TypeError("Not a function");k.resolve=C,k.reject=D}),_.chain.push(k),_.state!==0&&l(s,_),k.promise},this.catch=function(x){return this.then(void 0,x)};try{b.call(void 0,function(x){f.call(_,x)},function(x){c.call(_,x)})}catch(w){c.call(_,w)}}var y=r({},"constructor",m,!1);return m.prototype=y,r(y,"__NPO__",0,!1),r(m,"resolve",function(_){var w=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");M(_)})}),r(m,"reject",function(_){return new this(function(x,M){if(typeof x!="function"||typeof M!="function")throw TypeError("Not a function");M(_)})}),r(m,"all",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):_.length===0?w.resolve([]):new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");var A=_.length,C=Array(A),D=0;h(w,_,function(R,N){C[R]=N,++D===A&&M(C)},k)})}),r(m,"race",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");h(w,_,function(C,D){M(D)},k)})}),m})});var kr=B((Ype,ih)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(v){return r.call(v)},a=self.document;function n(v){return v&&(v.ownerDocument||v.document||v).documentElement}function i(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(v){t=function(g){for(var T=g.length,q=new Array(T);T--;)q[T]=g[T];return q}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(g,T){o.call(this,g,T+"")},l.setAttributeNS=function(g,T,q){s.call(this,g,T,q+"")},u.setProperty=function(g,T,q){f.call(this,g,T+"",q)}}e.ascending=c;function c(v,g){return vg?1:v>=g?0:NaN}e.descending=function(v,g){return gv?1:g>=v?0:NaN},e.min=function(v,g){var T=-1,q=v.length,S,L;if(arguments.length===1){for(;++T=L){S=L;break}for(;++TL&&(S=L)}else{for(;++T=L){S=L;break}for(;++TL&&(S=L)}return S},e.max=function(v,g){var T=-1,q=v.length,S,L;if(arguments.length===1){for(;++T=L){S=L;break}for(;++TS&&(S=L)}else{for(;++T=L){S=L;break}for(;++TS&&(S=L)}return S},e.extent=function(v,g){var T=-1,q=v.length,S,L,z;if(arguments.length===1){for(;++T=L){S=z=L;break}for(;++TL&&(S=L),z=L){S=z=L;break}for(;++TL&&(S=L),z1)return z/(F-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function p(v){return{left:function(g,T,q,S){for(arguments.length<3&&(q=0),arguments.length<4&&(S=g.length);q>>1;v(g[L],T)<0?q=L+1:S=L}return q},right:function(g,T,q,S){for(arguments.length<3&&(q=0),arguments.length<4&&(S=g.length);q>>1;v(g[L],T)>0?S=L:q=L+1}return q}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(v){return p(v.length===1?function(g,T){return c(v(g),T)}:v)},e.shuffle=function(v,g,T){(q=arguments.length)<3&&(T=v.length,q<2&&(g=0));for(var q=T-g,S,L;q;)L=Math.random()*q--|0,S=v[q+g],v[q+g]=v[L+g],v[L+g]=S;return v},e.permute=function(v,g){for(var T=g.length,q=new Array(T);T--;)q[T]=v[g[T]];return q},e.pairs=function(v){for(var g=0,T=v.length-1,q,S=v[0],L=new Array(T<0?0:T);g=0;)for(z=v[g],T=z.length;--T>=0;)L[--S]=z[T];return L};var b=Math.abs;e.range=function(v,g,T){if(arguments.length<3&&(T=1,arguments.length<2&&(g=v,v=0)),(g-v)/T===1/0)throw new Error("infinite range");var q=[],S=_(b(T)),L=-1,z;if(v*=S,g*=S,T*=S,T<0)for(;(z=v+T*++L)>g;)q.push(z/S);else for(;(z=v+T*++L)=g.length)return S?S.call(v,F):q?F.sort(q):F;for(var K=-1,ee=F.length,re=g[J++],ye,we,ae,ue=new x,de;++K=g.length)return P;var J=[],K=T[F++];return P.forEach(function(ee,re){J.push({key:ee,values:z(re,F)})}),K?J.sort(function(ee,re){return K(ee.key,re.key)}):J}return v.map=function(P,F){return L(F,P,0)},v.entries=function(P){return z(L(e.map,P,0),0)},v.key=function(P){return g.push(P),v},v.sortKeys=function(P){return T[g.length-1]=P,v},v.sortValues=function(P){return q=P,v},v.rollup=function(P){return S=P,v},v},e.set=function(v){var g=new H;if(v)for(var T=0,q=v.length;T=0&&(q=v.slice(T+1),v=v.slice(0,T)),v)return arguments.length<2?this[v].on(q):this[v].on(q,g);if(arguments.length===2){if(g==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(q,null);return this}};function $(v){var g=[],T=new x;function q(){for(var S=g,L=-1,z=S.length,P;++L=0&&(T=v.slice(0,g))!=="xmlns"&&(v=v.slice(g+1)),ge.hasOwnProperty(T)?{space:ge[T],local:v}:v}},be.attr=function(v,g){if(arguments.length<2){if(typeof v=="string"){var T=this.node();return v=e.ns.qualify(v),v.local?T.getAttributeNS(v.space,v.local):T.getAttribute(v)}for(g in v)this.each(ke(g,v[g]));return this}return this.each(ke(v,g))};function ke(v,g){v=e.ns.qualify(v);function T(){this.removeAttribute(v)}function q(){this.removeAttributeNS(v.space,v.local)}function S(){this.setAttribute(v,g)}function L(){this.setAttributeNS(v.space,v.local,g)}function z(){var F=g.apply(this,arguments);F==null?this.removeAttribute(v):this.setAttribute(v,F)}function P(){var F=g.apply(this,arguments);F==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,F)}return g==null?v.local?q:T:typeof g=="function"?v.local?P:z:v.local?L:S}function xe(v){return v.trim().replace(/\s+/g," ")}be.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var T=this.node(),q=(v=Fe(v)).length,S=-1;if(g=T.classList){for(;++S=0;)(L=T[q])&&(S&&S!==L.nextSibling&&S.parentNode.insertBefore(L,S),S=L);return this},be.sort=function(v){v=Me.apply(this,arguments);for(var g=-1,T=this.length;++g=g&&(g=S+1);!(F=z[g])&&++g0&&(v=v.slice(0,S));var z=Ie.get(v);z&&(v=z,L=Ge);function P(){var K=this[q];K&&(this.removeEventListener(v,K,K.$),delete this[q])}function F(){var K=L(g,t(arguments));P.call(this),this.addEventListener(v,this[q]=K,K.$=T),K._=g}function J(){var K=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),ee;for(var re in this)if(ee=re.match(K)){var ye=this[re];this.removeEventListener(ee[1],ye,ye.$),delete this[re]}}return S?g?F:P:g?V:J}var Ie=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ie.forEach(function(v){"on"+v in a&&Ie.remove(v)});function We(v,g){return function(T){var q=e.event;e.event=T,g[0]=this.__data__;try{v.apply(this,g)}finally{e.event=q}}}function Ge(v,g){var T=We(v,g);return function(q){var S=this,L=q.relatedTarget;(!L||L!==S&&!(L.compareDocumentPosition(S)&8))&&T.call(S,q)}}var Je,Qe=0;function vr(v){var g=".dragsuppress-"+ ++Qe,T="click"+g,q=e.select(i(v)).on("touchmove"+g,te).on("dragstart"+g,te).on("selectstart"+g,te);if(Je==null&&(Je="onselectstart"in v?!1:Y(v.style,"userSelect")),Je){var S=n(v).style,L=S[Je];S[Je]="none"}return function(z){if(q.on(g,null),Je&&(S[Je]=L),z){var P=function(){q.on(T,null)};q.on(T,function(){te(),P()},!0),setTimeout(P,0)}}}e.mouse=function(v){return Re(v,le())};var $e=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Re(v,g){g.changedTouches&&(g=g.changedTouches[0]);var T=v.ownerSVGElement||v;if(T.createSVGPoint){var q=T.createSVGPoint();if($e<0){var S=i(v);if(S.scrollX||S.scrollY){T=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=T[0][0].getScreenCTM();$e=!(L.f||L.e),T.remove()}}return $e?(q.x=g.pageX,q.y=g.pageY):(q.x=g.clientX,q.y=g.clientY),q=q.matrixTransform(v.getScreenCTM().inverse()),[q.x,q.y]}var z=v.getBoundingClientRect();return[g.clientX-z.left-v.clientLeft,g.clientY-z.top-v.clientTop]}e.touch=function(v,g,T){if(arguments.length<3&&(T=g,g=le().changedTouches),g){for(var q=0,S=g.length,L;q0?1:v<0?-1:0}function jr(v,g,T){return(g[0]-v[0])*(T[1]-v[1])-(g[1]-v[1])*(T[0]-v[0])}function ra(v){return v>1?0:v<-1?Ce:Math.acos(v)}function It(v){return v>1?ar:v<-1?-ar:Math.asin(v)}function _t(v){return((v=Math.exp(v))-1/v)/2}function Dt(v){return((v=Math.exp(v))+1/v)/2}function ga(v){return((v=Math.exp(2*v))-1)/(v+1)}function xa(v){return(v=Math.sin(v/2))*v}var Gt=Math.SQRT2,Ka=2,gr=4;e.interpolateZoom=function(v,g){var T=v[0],q=v[1],S=v[2],L=g[0],z=g[1],P=g[2],F=L-T,J=z-q,K=F*F+J*J,ee,re;if(K0&&(je=je.transition().duration(z)),je.call(Te.event)}function hr(){ue&&ue.domain(ae.range().map(function(je){return(je-v.x)/v.k}).map(ae.invert)),_e&&_e.domain(de.range().map(function(je){return(je-v.y)/v.k}).map(de.invert))}function dr(je){P++||je({type:"zoomstart"})}function Lr(je){hr(),je({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function pr(je){--P||(je({type:"zoomend"}),T=null)}function Mr(){var je=this,Dr=we.of(je,arguments),Er=0,Qr=e.select(i(je)).on(J,Ta).on(K,Ba),qt=me(e.mouse(je)),Kt=vr(je);j0.call(je),dr(Dr);function Ta(){Er=1,sr(e.mouse(je),qt),Lr(Dr)}function Ba(){Qr.on(J,null).on(K,null),Kt(Er),pr(Dr)}}function Kr(){var je=this,Dr=we.of(je,arguments),Er={},Qr=0,qt,Kt=".zoom-"+e.event.changedTouches[0].identifier,Ta="touchmove"+Kt,Ba="touchend"+Kt,Qa=[],Ya=e.select(je),rn=vr(je);tn(),dr(Dr),Ya.on(F,null).on(re,tn);function Ea(){var si=e.touches(je);return qt=v.k,si.forEach(function(Ma){Ma.identifier in Er&&(Er[Ma.identifier]=me(Ma))}),si}function tn(){var si=e.event.target;e.select(si).on(Ta,Fo).on(Ba,JW),Qa.push(si);for(var Ma=e.event.changedTouches,Pn=0,zi=Ma.length;Pn1){var Io=Rn[0],El=Rn[1],th=Io[0]-El[0],Y4=Io[1]-El[1];Qr=th*th+Y4*Y4}}function Fo(){var si=e.touches(je),Ma,Pn,zi,Rn;j0.call(je);for(var fu=0,Io=si.length;fu1?1:g,T=T<0?0:T>1?1:T,S=T<=.5?T*(1+g):T+g-T*g,q=2*T-S;function L(P){return P>360?P-=360:P<0&&(P+=360),P<60?q+(S-q)*P/60:P<180?S:P<240?q+(S-q)*(240-P)/60:q}function z(P){return Math.round(L(P)*255)}return new Oa(z(v+120),z(v),z(v-120))}e.hcl=ca;function ca(v,g,T){return this instanceof ca?(this.h=+v,this.c=+g,void(this.l=+T)):arguments.length<2?v instanceof ca?new ca(v.h,v.c,v.l):v instanceof ta?E0(v.l,v.a,v.b):E0((v=ir((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new ca(v,g,T)}var ni=ca.prototype=new Et;ni.brighter=function(v){return new ca(this.h,this.c,Math.min(100,this.l+it*(arguments.length?v:1)))},ni.darker=function(v){return new ca(this.h,this.c,Math.max(0,this.l-it*(arguments.length?v:1)))},ni.rgb=function(){return ii(this.h,this.c,this.l).rgb()};function ii(v,g,T){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new ta(T,Math.cos(v*=Ar)*g,Math.sin(v)*g)}e.lab=ta;function ta(v,g,T){return this instanceof ta?(this.l=+v,this.a=+g,void(this.b=+T)):arguments.length<2?v instanceof ta?new ta(v.l,v.a,v.b):v instanceof ca?ii(v.h,v.c,v.l):ir((v=Oa(v)).r,v.g,v.b):new ta(v,g,T)}var it=18,ba=.95047,Do=1,Eo=1.08883,Ll=ta.prototype=new Et;Ll.brighter=function(v){return new ta(Math.min(100,this.l+it*(arguments.length?v:1)),this.a,this.b)},Ll.darker=function(v){return new ta(Math.max(0,this.l-it*(arguments.length?v:1)),this.a,this.b)},Ll.rgb=function(){return D0(this.l,this.a,this.b)};function D0(v,g,T){var q=(v+16)/116,S=q+g/500,L=q-T/200;return S=nc(S)*ba,q=nc(q)*Do,L=nc(L)*Eo,new Oa(lc(3.2404542*S-1.5371385*q-.4985314*L),lc(-.969266*S+1.8760108*q+.041556*L),lc(.0556434*S-.2040259*q+1.0572252*L))}function E0(v,g,T){return v>0?new ca(Math.atan2(T,g)*Br,Math.sqrt(g*g+T*T),v):new ca(NaN,NaN,v)}function nc(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function ic(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function lc(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=Oa;function Oa(v,g,T){return this instanceof Oa?(this.r=~~v,this.g=~~g,void(this.b=~~T)):arguments.length<2?v instanceof Oa?new Oa(v.r,v.g,v.b):Xr(""+v,Oa,Ha):new Oa(v,g,T)}function P0(v){return new Oa(v>>16,v>>8&255,v&255)}function tu(v){return P0(v)+""}var au=Oa.prototype=new Et;au.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var g=this.r,T=this.g,q=this.b,S=30;return!g&&!T&&!q?new Oa(S,S,S):(g&&g>4,q=q>>4|q,S=F&240,S=S>>4|S,L=F&15,L=L<<4|L):v.length===7&&(q=(F&16711680)>>16,S=(F&65280)>>8,L=F&255)),g(q,S,L))}function et(v,g,T){var q=Math.min(v/=255,g/=255,T/=255),S=Math.max(v,g,T),L=S-q,z,P,F=(S+q)/2;return L?(P=F<.5?L/(S+q):L/(2-S-q),v==S?z=(g-T)/L+(g0&&F<1?0:z),new ct(z,P,F)}function ir(v,g,T){v=_a(v),g=_a(g),T=_a(T);var q=ic((.4124564*v+.3575761*g+.1804375*T)/ba),S=ic((.2126729*v+.7151522*g+.072175*T)/Do),L=ic((.0193339*v+.119192*g+.9503041*T)/Eo);return ta(116*S-16,500*(q-S),200*(S-L))}function _a(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function vt(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var wa=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});wa.forEach(function(v,g){wa.set(v,P0(g))});function Nr(v){return typeof v=="function"?v:function(){return v}}e.functor=Nr,e.xhr=li(G);function li(v){return function(g,T,q){return arguments.length===2&&typeof T=="function"&&(q=T,T=null),Po(g,T,v,q)}}function Po(v,g,T,q){var S={},L=e.dispatch("beforesend","progress","load","error"),z={},P=new XMLHttpRequest,F=null;self.XDomainRequest&&!("withCredentials"in P)&&/^(http(s)?:)?\/\//.test(v)&&(P=new XDomainRequest),"onload"in P?P.onload=P.onerror=J:P.onreadystatechange=function(){P.readyState>3&&J()};function J(){var K=P.status,ee;if(!K&&KG(P)||K>=200&&K<300||K===304){try{ee=T.call(S,P)}catch(re){L.error.call(S,re);return}L.load.call(S,ee)}else L.error.call(S,P)}return P.onprogress=function(K){var ee=e.event;e.event=K;try{L.progress.call(S,P)}finally{e.event=ee}},S.header=function(K,ee){return K=(K+"").toLowerCase(),arguments.length<2?z[K]:(ee==null?delete z[K]:z[K]=ee+"",S)},S.mimeType=function(K){return arguments.length?(g=K==null?null:K+"",S):g},S.responseType=function(K){return arguments.length?(F=K,S):F},S.response=function(K){return T=K,S},["get","post"].forEach(function(K){S[K]=function(){return S.send.apply(S,[K].concat(t(arguments)))}}),S.send=function(K,ee,re){if(arguments.length===2&&typeof ee=="function"&&(re=ee,ee=null),P.open(K,v,!0),g!=null&&!("accept"in z)&&(z.accept=g+",*/*"),P.setRequestHeader)for(var ye in z)P.setRequestHeader(ye,z[ye]);return g!=null&&P.overrideMimeType&&P.overrideMimeType(g),F!=null&&(P.responseType=F),re!=null&&S.on("error",re).on("load",function(we){re(null,we)}),L.beforesend.call(S,P),P.send(ee==null?null:ee),S},S.abort=function(){return P.abort(),S},e.rebind(S,L,"on"),q==null?S:S.get($G(q))}function $G(v){return v.length===1?function(g,T){v(g==null?T:null)}:v}function KG(v){var g=v.responseType;return g&&g!=="text"?v.response:v.responseText}e.dsv=function(v,g){var T=new RegExp('["'+v+` +]`),q=v.charCodeAt(0);function S(J,K,ee){arguments.length<3&&(ee=K,K=null);var re=Po(J,g,K==null?L:z(K),ee);return re.row=function(ye){return arguments.length?re.response((K=ye)==null?L:z(ye)):K},re}function L(J){return S.parse(J.responseText)}function z(J){return function(K){return S.parse(K.responseText,J)}}S.parse=function(J,K){var ee;return S.parseRows(J,function(re,ye){if(ee)return ee(re,ye-1);var we=function(ae){for(var ue={},de=re.length,_e=0;_e=we)return re;if(_e)return _e=!1,ee;var Be=ae;if(J.charCodeAt(Be)===34){for(var tr=Be;tr++24?(isFinite(g)&&(clearTimeout(F0),F0=setTimeout(Jm,g)),N0=0):(N0=1,S_(Jm))}e.timer.flush=function(){C_(),L_()};function C_(){for(var v=Date.now(),g=R0;g;)v>=g.t&&g.c(v-g.t)&&(g.c=null),g=g.n;return v}function L_(){for(var v,g=R0,T=1/0;g;)g.c?(g.t=0;--P)ae.push(S[J[ee[P]][2]]);for(P=+ye;P1&&jr(v[T[q-2]],v[T[q-1]],v[S])<=0;)--q;T[q++]=S}return T.slice(0,q)}function QG(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return Q(v,H0),v};var H0=e.geom.polygon.prototype=[];H0.area=function(){for(var v=-1,g=this.length,T,q=this[g-1],S=0;++vce)P=P.L;else if(z=g-tU(P,T),z>ce){if(!P.R){q=P;break}P=P.R}else{L>-ce?(q=P.P,S=P):z>-ce?(q=P,S=P.N):q=S=P;break}var F=z_(v);if(lu.insert(q,F),!(!q&&!S)){if(q===S){su(q),S=z_(q.site),lu.insert(F,S),F.edge=S.edge=uc(q.site,F.site),ou(q),ou(S);return}if(!S){F.edge=uc(q.site,F.site);return}su(q),su(S);var J=q.site,K=J.x,ee=J.y,re=v.x-K,ye=v.y-ee,we=S.site,ae=we.x-K,ue=we.y-ee,de=2*(re*ue-ye*ae),_e=re*re+ye*ye,Te=ae*ae+ue*ue,me={x:(ue*_e-ye*Te)/de+K,y:(re*Te-ae*_e)/de+ee};O0(S.edge,J,we,me),F.edge=uc(J,v,null,me),S.edge=uc(v,we,null,me),ou(q),ou(S)}}function N_(v,g){var T=v.site,q=T.x,S=T.y,L=S-g;if(!L)return q;var z=v.P;if(!z)return-1/0;T=z.site;var P=T.x,F=T.y,J=F-g;if(!J)return P;var K=P-q,ee=1/L-1/J,re=K/J;return ee?(-re+Math.sqrt(re*re-2*ee*(K*K/(-2*J)-F+J/2+S-L/2)))/ee+q:(q+P)/2}function tU(v,g){var T=v.N;if(T)return N_(T,g);var q=v.site;return q.y===g?q.x:1/0}function F_(v){this.site=v,this.edges=[]}F_.prototype.prepare=function(){for(var v=this.edges,g=v.length,T;g--;)T=v[g].edge,(!T.b||!T.a)&&v.splice(g,1);return v.sort(I_),v.length};function aU(v){for(var g=v[0][0],T=v[1][0],q=v[0][1],S=v[1][1],L,z,P,F,J=Ro,K=J.length,ee,re,ye,we,ae,ue;K--;)if(ee=J[K],!(!ee||!ee.prepare()))for(ye=ee.edges,we=ye.length,re=0;rece||b(F-z)>ce)&&(ye.splice(re,0,new B0(sU(ee.site,ue,b(P-g)ce?{x:g,y:b(L-g)ce?{x:b(z-S)ce?{x:T,y:b(L-T)ce?{x:b(z-q)=-Le)){var re=F*F+J*J,ye=K*K+ue*ue,we=(ue*re-J*ye)/ee,ae=(F*ye-K*re)/ee,ue=ae+P,de=R_.pop()||new nU;de.arc=v,de.site=S,de.x=we+z,de.y=ue+Math.sqrt(we*we+ae*ae),de.cy=ue,v.circle=de;for(var _e=null,Te=sc._;Te;)if(de.y0)){if(ae/=ye,ye<0){if(ae0){if(ae>re)return;ae>ee&&(ee=ae)}if(ae=T-P,!(!ye&&ae<0)){if(ae/=ye,ye<0){if(ae>re)return;ae>ee&&(ee=ae)}else if(ye>0){if(ae0)){if(ae/=we,we<0){if(ae0){if(ae>re)return;ae>ee&&(ee=ae)}if(ae=q-F,!(!we&&ae<0)){if(ae/=we,we<0){if(ae>re)return;ae>ee&&(ee=ae)}else if(we>0){if(ae0&&(S.a={x:P+ee*ye,y:F+ee*we}),re<1&&(S.b={x:P+re*ye,y:F+re*we}),S}}}}}}function lU(v){for(var g=iu,T=iU(v[0][0],v[0][1],v[1][0],v[1][1]),q=g.length,S;q--;)S=g[q],(!oU(S,v)||!T(S)||b(S.a.x-S.b.x)=L)return;if(K>re){if(!q)q={x:we,y:z};else if(q.y>=P)return;T={x:we,y:P}}else{if(!q)q={x:we,y:P};else if(q.y1)if(K>re){if(!q)q={x:(z-de)/ue,y:z};else if(q.y>=P)return;T={x:(P-de)/ue,y:P}}else{if(!q)q={x:(P-de)/ue,y:P};else if(q.y=L)return;T={x:L,y:ue*L+de}}else{if(!q)q={x:L,y:ue*L+de};else if(q.x=K&&de.x<=re&&de.y>=ee&&de.y<=ye?[[K,ye],[re,ye],[re,ee],[K,ee]]:[];_e.point=F[ae]}),J}function P(F){return F.map(function(J,K){return{x:Math.round(q(J,K)/ce)*ce,y:Math.round(S(J,K)/ce)*ce,i:K}})}return z.links=function(F){return ry(P(F)).edges.filter(function(J){return J.l&&J.r}).map(function(J){return{source:F[J.l.i],target:F[J.r.i]}})},z.triangles=function(F){var J=[];return ry(P(F)).cells.forEach(function(K,ee){for(var re=K.site,ye=K.edges.sort(I_),we=-1,ae=ye.length,ue,de,_e=ye[ae-1].edge,Te=_e.l===re?_e.r:_e.l;++weTe&&(Te=K.x),K.y>me&&(me=K.y),ye.push(K.x),we.push(K.y);else for(ae=0;aeTe&&(Te=Be),tr>me&&(me=tr),ye.push(Be),we.push(tr)}var sr=Te-de,nr=me-_e;sr>nr?me=_e+sr:Te=de+nr;function hr(pr,Mr,Kr,Ht,at,je,Dr,Er){if(!(isNaN(Kr)||isNaN(Ht)))if(pr.leaf){var Qr=pr.x,qt=pr.y;if(Qr!=null)if(b(Qr-Kr)+b(qt-Ht)<.01)dr(pr,Mr,Kr,Ht,at,je,Dr,Er);else{var Kt=pr.point;pr.x=pr.y=pr.point=null,dr(pr,Kt,Qr,qt,at,je,Dr,Er),dr(pr,Mr,Kr,Ht,at,je,Dr,Er)}else pr.x=Kr,pr.y=Ht,pr.point=Mr}else dr(pr,Mr,Kr,Ht,at,je,Dr,Er)}function dr(pr,Mr,Kr,Ht,at,je,Dr,Er){var Qr=(at+Dr)*.5,qt=(je+Er)*.5,Kt=Kr>=Qr,Ta=Ht>=qt,Ba=Ta<<1|Kt;pr.leaf=!1,pr=pr.nodes[Ba]||(pr.nodes[Ba]=B_()),Kt?at=Qr:Dr=Qr,Ta?je=qt:Er=qt,hr(pr,Mr,Kr,Ht,at,je,Dr,Er)}var Lr=B_();if(Lr.add=function(pr){hr(Lr,pr,+ee(pr,++ae),+re(pr,ae),de,_e,Te,me)},Lr.visit=function(pr){vc(pr,Lr,de,_e,Te,me)},Lr.find=function(pr){return hU(Lr,pr[0],pr[1],de,_e,Te,me)},ae=-1,g==null){for(;++aeL||re>z||ye=Be,nr=T>=tr,hr=nr<<1|sr,dr=hr+4;hrT&&(L=g.slice(T,L),P[z]?P[z]+=L:P[++z]=L),(q=q[0])===(S=S[0])?P[z]?P[z]+=S:P[++z]=S:(P[++z]=null,F.push({i:z,x:nl(q,S)})),T=ny.lastIndex;return T=0&&!(q=e.interpolators[T](v,g)););return q}e.interpolators=[function(v,g){var T=typeof g;return(T==="string"?wa.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?ty:V_:g instanceof Et?ty:Array.isArray(g)?G0:T==="object"&&isNaN(g)?Y_:nl)(v,g)}],e.interpolateArray=G0;function G0(v,g){var T=[],q=[],S=v.length,L=g.length,z=Math.min(v.length,g.length),P;for(P=0;P=0?v.slice(0,g):v,q=g>=0?v.slice(g+1):"in";return T=dU.get(T)||G_,q=pU.get(q)||G,mU(q(T.apply(null,r.call(arguments,1))))};function mU(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function U_(v){return function(g){return 1-v(1-g)}}function W_(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function yU(v){return v*v}function gU(v){return v*v*v}function xU(v){if(v<=0)return 0;if(v>=1)return 1;var g=v*v,T=g*v;return 4*(v<.5?T:3*(v-g)+T-.75)}function bU(v){return function(g){return Math.pow(g,v)}}function _U(v){return 1-Math.cos(v*ar)}function wU(v){return Math.pow(2,10*(v-1))}function TU(v){return 1-Math.sqrt(1-v*v)}function MU(v,g){var T;return arguments.length<2&&(g=.45),arguments.length?T=g/or*Math.asin(1/v):(v=1,T=g/4),function(q){return 1+v*Math.pow(2,-10*q)*Math.sin((q-T)*or/g)}}function AU(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function kU(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=qU;function qU(v,g){v=e.hcl(v),g=e.hcl(g);var T=v.h,q=v.c,S=v.l,L=g.h-T,z=g.c-q,P=g.l-S;return isNaN(z)&&(z=0,q=isNaN(q)?g.c:q),isNaN(L)?(L=0,T=isNaN(T)?g.h:T):L>180?L-=360:L<-180&&(L+=360),function(F){return ii(T+L*F,q+z*F,S+P*F)+""}}e.interpolateHsl=SU;function SU(v,g){v=e.hsl(v),g=e.hsl(g);var T=v.h,q=v.s,S=v.l,L=g.h-T,z=g.s-q,P=g.l-S;return isNaN(z)&&(z=0,q=isNaN(q)?g.s:q),isNaN(L)?(L=0,T=isNaN(T)?g.h:T):L>180?L-=360:L<-180&&(L+=360),function(F){return Ha(T+L*F,q+z*F,S+P*F)+""}}e.interpolateLab=CU;function CU(v,g){v=e.lab(v),g=e.lab(g);var T=v.l,q=v.a,S=v.b,L=g.l-T,z=g.a-q,P=g.b-S;return function(F){return D0(T+L*F,q+z*F,S+P*F)+""}}e.interpolateRound=X_;function X_(v,g){return g-=v,function(T){return Math.round(v+g*T)}}e.transform=function(v){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(T){if(T!=null){g.setAttribute("transform",T);var q=g.transform.baseVal.consolidate()}return new Z_(q?q.matrix:DU)})(v)};function Z_(v){var g=[v.a,v.b],T=[v.c,v.d],q=$_(g),S=J_(g,T),L=$_(LU(T,g,-S))||0;g[0]*T[1]180?g+=360:g-v>180&&(v+=360),q.push({i:T.push(uu(T)+"rotate(",null,")")-2,x:nl(v,g)})):g&&T.push(uu(T)+"rotate("+g+")")}function RU(v,g,T,q){v!==g?q.push({i:T.push(uu(T)+"skewX(",null,")")-2,x:nl(v,g)}):g&&T.push(uu(T)+"skewX("+g+")")}function zU(v,g,T,q){if(v[0]!==g[0]||v[1]!==g[1]){var S=T.push(uu(T)+"scale(",null,",",null,")");q.push({i:S-4,x:nl(v[0],g[0])},{i:S-2,x:nl(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&T.push(uu(T)+"scale("+g+")")}function K_(v,g){var T=[],q=[];return v=e.transform(v),g=e.transform(g),EU(v.translate,g.translate,T,q),PU(v.rotate,g.rotate,T,q),RU(v.skew,g.skew,T,q),zU(v.scale,g.scale,T,q),v=g=null,function(S){for(var L=-1,z=q.length,P;++L0?L=me:(T.c=null,T.t=NaN,T=null,g.end({type:"end",alpha:L=0})):me>0&&(g.start({type:"start",alpha:L=me}),T=I0(v.tick)),v):L},v.start=function(){var me,Be=ye.length,tr=we.length,sr=q[0],nr=q[1],hr,dr;for(me=0;me=0;)L.push(K=J[F]),K.parent=P,K.depth=P.depth+1;T&&(P.value=0),P.children=J}else T&&(P.value=+T.call(q,P,P.depth)||0),delete P.children;return Ri(S,function(ee){var re,ye;v&&(re=ee.children)&&re.sort(v),T&&(ye=ee.parent)&&(ye.value+=ee.value)}),z}return q.sort=function(S){return arguments.length?(v=S,q):v},q.children=function(S){return arguments.length?(g=S,q):g},q.value=function(S){return arguments.length?(T=S,q):T},q.revalue=function(S){return T&&(dc(S,function(L){L.children&&(L.value=0)}),Ri(S,function(L){var z;L.children||(L.value=+T.call(q,L,L.depth)||0),(z=L.parent)&&(z.value+=L.value)})),S},q};function hc(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=$U,v}function dc(v,g){for(var T=[v];(v=T.pop())!=null;)if(g(v),(S=v.children)&&(q=S.length))for(var q,S;--q>=0;)T.push(S[q])}function Ri(v,g){for(var T=[v],q=[];(v=T.pop())!=null;)if(q.push(v),(z=v.children)&&(L=z.length))for(var S=-1,L,z;++SS&&(S=P),q.push(P)}for(z=0;zq&&(T=g,q=S);return T}function aW(v){return v.reduce(nW,0)}function nW(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,T=lW,q=iW;function S(L,re){for(var P=[],F=L.map(g,this),J=T.call(this,F,re),K=q.call(this,J,F,re),ee,re=-1,ye=F.length,we=K.length-1,ae=v?1:1/ye,ue;++re0)for(re=-1;++re=J[0]&&ue<=J[1]&&(ee=P[e.bisect(K,ue,1,we)-1],ee.y+=ae,ee.push(L[re]));return P}return S.value=function(L){return arguments.length?(g=L,S):g},S.range=function(L){return arguments.length?(T=Nr(L),S):T},S.bins=function(L){return arguments.length?(q=typeof L=="number"?function(z){return r4(z,L)}:Nr(L),S):q},S.frequency=function(L){return arguments.length?(v=!!L,S):v},S};function iW(v,g){return r4(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function r4(v,g){for(var T=-1,q=+v[0],S=(v[1]-q)/g,L=[];++T<=g;)L[T]=S*T+q;return L}function lW(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(oW),g=0,T=[1,1],q;function S(L,z){var P=v.call(this,L,z),F=P[0],J=T[0],K=T[1],ee=q==null?Math.sqrt:typeof q=="function"?q:function(){return q};if(F.x=F.y=0,Ri(F,function(ye){ye.r=+ee(ye.value)}),Ri(F,n4),g){var re=g*(q?1:Math.max(2*F.r/J,2*F.r/K))/2;Ri(F,function(ye){ye.r+=re}),Ri(F,n4),Ri(F,function(ye){ye.r-=re})}return i4(F,J/2,K/2,q?1:1/Math.max(2*F.r/J,2*F.r/K)),P}return S.size=function(L){return arguments.length?(T=L,S):T},S.radius=function(L){return arguments.length?(q=L==null||typeof L=="function"?L:+L,S):q},S.padding=function(L){return arguments.length?(g=+L,S):g},hc(S,v)};function oW(v,g){return v.value-g.value}function oy(v,g){var T=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=T,T._pack_prev=g}function t4(v,g){v._pack_next=g,g._pack_prev=v}function a4(v,g){var T=g.x-v.x,q=g.y-v.y,S=v.r+g.r;return .999*S*S>T*T+q*q}function n4(v){if(!(g=v.children)||!(re=g.length))return;var g,T=1/0,q=-1/0,S=1/0,L=-1/0,z,P,F,J,K,ee,re;function ye(me){T=Math.min(me.x-me.r,T),q=Math.max(me.x+me.r,q),S=Math.min(me.y-me.r,S),L=Math.max(me.y+me.r,L)}if(g.forEach(sW),z=g[0],z.x=-z.r,z.y=0,ye(z),re>1&&(P=g[1],P.x=P.r,P.y=0,ye(P),re>2))for(F=g[2],l4(z,P,F),ye(F),oy(z,F),z._pack_prev=F,oy(F,P),P=z._pack_next,J=3;Jue.x&&(ue=Be),Be.depth>de.depth&&(de=Be)});var _e=g(ae,ue)/2-ae.x,Te=T[0]/(ue.x+g(ue,ae)/2+_e),me=T[1]/(de.depth||1);dc(ye,function(Be){Be.x=(Be.x+_e)*Te,Be.y=Be.depth*me})}return re}function L(K){for(var ee={A:null,children:[K]},re=[ee],ye;(ye=re.pop())!=null;)for(var we=ye.children,ae,ue=0,de=we.length;ue0&&(fW(vW(ae,K,re),K,Be),de+=Be,_e+=Be),Te+=ae.m,de+=ye.m,me+=ue.m,_e+=we.m;ae&&!uy(we)&&(we.t=ae,we.m+=Te-_e),ye&&!sy(ue)&&(ue.t=ye,ue.m+=de-me,re=K)}return re}function J(K){K.x*=T[0],K.y=K.depth*T[1]}return S.separation=function(K){return arguments.length?(g=K,S):g},S.size=function(K){return arguments.length?(q=(T=K)==null?J:null,S):q?null:T},S.nodeSize=function(K){return arguments.length?(q=(T=K)==null?null:J,S):q?T:null},hc(S,v)};function o4(v,g){return v.parent==g.parent?1:2}function sy(v){var g=v.children;return g.length?g[0]:v.t}function uy(v){var g=v.children,T;return(T=g.length)?g[T-1]:v.t}function fW(v,g,T){var q=T/(g.i-v.i);g.c-=q,g.s+=T,v.c+=q,g.z+=T,g.m+=T}function cW(v){for(var g=0,T=0,q=v.children,S=q.length,L;--S>=0;)L=q[S],L.z+=g,L.m+=g,g+=L.s+(T+=L.c)}function vW(v,g,T){return v.a.parent===g.parent?v.a:T}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),g=o4,T=[1,1],q=!1;function S(L,z){var P=v.call(this,L,z),F=P[0],J,K=0;Ri(F,function(ae){var ue=ae.children;ue&&ue.length?(ae.x=dW(ue),ae.y=hW(ue)):(ae.x=J?K+=g(ae,J):0,ae.y=0,J=ae)});var ee=s4(F),re=u4(F),ye=ee.x-g(ee,re)/2,we=re.x+g(re,ee)/2;return Ri(F,q?function(ae){ae.x=(ae.x-F.x)*T[0],ae.y=(F.y-ae.y)*T[1]}:function(ae){ae.x=(ae.x-ye)/(we-ye)*T[0],ae.y=(1-(F.y?ae.y/F.y:1))*T[1]}),P}return S.separation=function(L){return arguments.length?(g=L,S):g},S.size=function(L){return arguments.length?(q=(T=L)==null,S):q?null:T},S.nodeSize=function(L){return arguments.length?(q=(T=L)!=null,S):q?T:null},hc(S,v)};function hW(v){return 1+e.max(v,function(g){return g.y})}function dW(v){return v.reduce(function(g,T){return g+T.x},0)/v.length}function s4(v){var g=v.children;return g&&g.length?s4(g[0]):v}function u4(v){var g=v.children,T;return g&&(T=g.length)?u4(g[T-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,T=[1,1],q=null,S=fy,L=!1,z,P="squarify",F=.5*(1+Math.sqrt(5));function J(ae,ue){for(var de=-1,_e=ae.length,Te,me;++de<_e;)me=(Te=ae[de]).value*(ue<0?0:ue),Te.area=isNaN(me)||me<=0?0:me}function K(ae){var ue=ae.children;if(ue&&ue.length){var de=S(ae),_e=[],Te=ue.slice(),me,Be=1/0,tr,sr=P==="slice"?de.dx:P==="dice"?de.dy:P==="slice-dice"?ae.depth&1?de.dy:de.dx:Math.min(de.dx,de.dy),nr;for(J(Te,de.dx*de.dy/ae.value),_e.area=0;(nr=Te.length)>0;)_e.push(me=Te[nr-1]),_e.area+=me.area,P!=="squarify"||(tr=re(_e,sr))<=Be?(Te.pop(),Be=tr):(_e.area-=_e.pop().area,ye(_e,sr,de,!1),sr=Math.min(de.dx,de.dy),_e.length=_e.area=0,Be=1/0);_e.length&&(ye(_e,sr,de,!0),_e.length=_e.area=0),ue.forEach(K)}}function ee(ae){var ue=ae.children;if(ue&&ue.length){var de=S(ae),_e=ue.slice(),Te,me=[];for(J(_e,de.dx*de.dy/ae.value),me.area=0;Te=_e.pop();)me.push(Te),me.area+=Te.area,Te.z!=null&&(ye(me,Te.z?de.dx:de.dy,de,!_e.length),me.length=me.area=0);ue.forEach(ee)}}function re(ae,ue){for(var de=ae.area,_e,Te=0,me=1/0,Be=-1,tr=ae.length;++BeTe&&(Te=_e));return de*=de,ue*=ue,de?Math.max(ue*Te*F/de,de/(ue*me*F)):1/0}function ye(ae,ue,de,_e){var Te=-1,me=ae.length,Be=de.x,tr=de.y,sr=ue?g(ae.area/ue):0,nr;if(ue==de.dx){for((_e||sr>de.dy)&&(sr=de.dy);++Tede.dx)&&(sr=de.dx);++Te1);return v+g*q*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var g=e.random.irwinHall(v);return function(){return g()/v}},irwinHall:function(v){return function(){for(var g=0,T=0;T2?yW:pW,J=q?FU:NU;return S=F(v,g,J,T),L=F(g,v,J,zo),P}function P(F){return S(F)}return P.invert=function(F){return L(F)},P.domain=function(F){return arguments.length?(v=F.map(Number),z()):v},P.range=function(F){return arguments.length?(g=F,z()):g},P.rangeRound=function(F){return P.range(F).interpolate(X_)},P.clamp=function(F){return arguments.length?(q=F,z()):q},P.interpolate=function(F){return arguments.length?(T=F,z()):T},P.ticks=function(F){return hy(v,F)},P.tickFormat=function(F,J){return d3_scale_linearTickFormat(v,F,J)},P.nice=function(F){return d4(v,F),z()},P.copy=function(){return v4(v,g,T,q)},z()}function h4(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function d4(v,g){return cy(v,c4(vy(v,g)[2])),cy(v,c4(vy(v,g)[2])),v}function vy(v,g){g==null&&(g=10);var T=U0(v),q=T[1]-T[0],S=Math.pow(10,Math.floor(Math.log(q/g)/Math.LN10)),L=g/q*S;return L<=.15?S*=10:L<=.35?S*=5:L<=.75&&(S*=2),T[0]=Math.ceil(T[0]/S)*S,T[1]=Math.floor(T[1]/S)*S+S*.5,T[2]=S,T}function hy(v,g){return e.range.apply(e,vy(v,g))}var gW={s:1,g:1,p:1,r:1,e:1};function p4(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function Hpe(v,g){var T=p4(g[2]);return v in gW?Math.abs(T-p4(Math.max(b(g[0]),b(g[1]))))+ +(v!=="e"):T-(v==="%")*2}e.scale.log=function(){return m4(e.scale.linear().domain([0,1]),10,!0,[1,10])};function m4(v,g,T,q){function S(P){return(T?Math.log(P<0?0:P):-Math.log(P>0?0:-P))/Math.log(g)}function L(P){return T?Math.pow(g,P):-Math.pow(g,-P)}function z(P){return v(S(P))}return z.invert=function(P){return L(v.invert(P))},z.domain=function(P){return arguments.length?(T=P[0]>=0,v.domain((q=P.map(Number)).map(S)),z):q},z.base=function(P){return arguments.length?(g=+P,v.domain(q.map(S)),z):g},z.nice=function(){var P=cy(q.map(S),T?Math:xW);return v.domain(P),q=P.map(L),z},z.ticks=function(){var P=U0(q),F=[],J=P[0],K=P[1],ee=Math.floor(S(J)),re=Math.ceil(S(K)),ye=g%1?2:g;if(isFinite(re-ee)){if(T){for(;ee0;we--)F.push(L(ee)*we);for(ee=0;F[ee]K;re--);F=F.slice(ee,re)}return F},z.copy=function(){return m4(v.copy(),g,T,q)},h4(z,v)}var xW={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return y4(e.scale.linear(),1,[0,1])};function y4(v,g,T){var q=X0(g),S=X0(1/g);function L(z){return v(q(z))}return L.invert=function(z){return S(v.invert(z))},L.domain=function(z){return arguments.length?(v.domain((T=z.map(Number)).map(q)),L):T},L.ticks=function(z){return hy(T,z)},L.tickFormat=function(z,P){return d3_scale_linearTickFormat(T,z,P)},L.nice=function(z){return L.domain(d4(T,z))},L.exponent=function(z){return arguments.length?(q=X0(g=z),S=X0(1/g),v.domain(T.map(q)),L):g},L.copy=function(){return y4(v.copy(),g,T)},h4(L,v)}function X0(v){return function(g){return g<0?-Math.pow(-g,v):Math.pow(g,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return g4([],{t:"range",a:[[]]})};function g4(v,g){var T,q,S;function L(P){return q[((T.get(P)||(g.t==="range"?T.set(P,v.push(P)):NaN))-1)%q.length]}function z(P,F){return e.range(v.length).map(function(J){return P+F*J})}return L.domain=function(P){if(!arguments.length)return v;v=[],T=new x;for(var F=-1,J=P.length,K;++F0?T[L-1]:v[0],Lre?0:1;if(K=lr)return F(K,we)+(J?F(J,1-we):"")+"Z";var ae,ue,de,_e,Te=0,me=0,Be,tr,sr,nr,hr,dr,Lr,pr,Mr=[];if((_e=(+z.apply(this,arguments)||0)/2)&&(de=q===Z0?Math.sqrt(J*J+K*K):+q.apply(this,arguments),we||(me*=-1),K&&(me=It(de/K*Math.sin(_e))),J&&(Te=It(de/J*Math.sin(_e)))),K){Be=K*Math.cos(ee+me),tr=K*Math.sin(ee+me),sr=K*Math.cos(re-me),nr=K*Math.sin(re-me);var Kr=Math.abs(re-ee-2*me)<=Ce?0:1;if(me&&J0(Be,tr,sr,nr)===we^Kr){var Ht=(ee+re)/2;Be=K*Math.cos(Ht),tr=K*Math.sin(Ht),sr=nr=null}}else Be=tr=0;if(J){hr=J*Math.cos(re-Te),dr=J*Math.sin(re-Te),Lr=J*Math.cos(ee+Te),pr=J*Math.sin(ee+Te);var at=Math.abs(ee-re+2*Te)<=Ce?0:1;if(Te&&J0(hr,dr,Lr,pr)===1-we^at){var je=(ee+re)/2;hr=J*Math.cos(je),dr=J*Math.sin(je),Lr=pr=null}}else hr=dr=0;if(ye>ce&&(ae=Math.min(Math.abs(K-J)/2,+T.apply(this,arguments)))>.001){ue=J0?0:1}function $0(v,g,T,q,S){var L=v[0]-g[0],z=v[1]-g[1],P=(S?q:-q)/Math.sqrt(L*L+z*z),F=P*z,J=-P*L,K=v[0]+F,ee=v[1]+J,re=g[0]+F,ye=g[1]+J,we=(K+re)/2,ae=(ee+ye)/2,ue=re-K,de=ye-ee,_e=ue*ue+de*de,Te=T-q,me=K*ye-re*ee,Be=(de<0?-1:1)*Math.sqrt(Math.max(0,Te*Te*_e-me*me)),tr=(me*de-ue*Be)/_e,sr=(-me*ue-de*Be)/_e,nr=(me*de+ue*Be)/_e,hr=(-me*ue+de*Be)/_e,dr=tr-we,Lr=sr-ae,pr=nr-we,Mr=hr-ae;return dr*dr+Lr*Lr>pr*pr+Mr*Mr&&(tr=nr,sr=hr),[[tr-F,sr-J],[tr*T/Te,sr*T/Te]]}function A4(){return!0}function k4(v){var g=nu,T=oc,q=A4,S=oi,L=S.key,z=.7;function P(F){var J=[],K=[],ee=-1,re=F.length,ye,we=Nr(g),ae=Nr(T);function ue(){J.push("M",S(v(K),z))}for(;++ee1?v.join("L"):v+"Z"}function q4(v){return v.join("L")+"Z"}function SW(v){for(var g=0,T=v.length,q=v[0],S=[q[0],",",q[1]];++g1&&S.push("H",q[0]),S.join("")}function py(v){for(var g=0,T=v.length,q=v[0],S=[q[0],",",q[1]];++g1){P=g[1],L=v[F],F++,q+="C"+(S[0]+z[0])+","+(S[1]+z[1])+","+(L[0]-P[0])+","+(L[1]-P[1])+","+L[0]+","+L[1];for(var J=2;J9&&(L=T*3/Math.sqrt(L),z[P]=L*q,z[P+1]=L*S));for(P=-1;++P<=F;)L=(v[Math.min(F,P+1)][0]-v[Math.max(0,P-1)][0])/(6*(1+z[P]*z[P])),g.push([L||0,z[P]*L||0]);return g}function FW(v){return v.length<3?oi(v):v[0]+K0(v,NW(v))}e.svg.line.radial=function(){var v=k4(D4);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function D4(v){for(var g,T=-1,q=v.length,S,L;++TCe)+",1 "+ee}function J(K,ee,re,ye){return"Q 0,0 "+ye}return L.radius=function(K){return arguments.length?(T=Nr(K),L):T},L.source=function(K){return arguments.length?(v=Nr(K),L):v},L.target=function(K){return arguments.length?(g=Nr(K),L):g},L.startAngle=function(K){return arguments.length?(q=Nr(K),L):q},L.endAngle=function(K){return arguments.length?(S=Nr(K),L):S},L};function IW(v){return v.radius}e.svg.diagonal=function(){var v=P4,g=R4,T=z4;function q(S,L){var z=v.call(this,S,L),P=g.call(this,S,L),F=(z.y+P.y)/2,J=[z,{x:z.x,y:F},{x:P.x,y:F},P];return J=J.map(T),"M"+J[0]+"C"+J[1]+" "+J[2]+" "+J[3]}return q.source=function(S){return arguments.length?(v=Nr(S),q):v},q.target=function(S){return arguments.length?(g=Nr(S),q):g},q.projection=function(S){return arguments.length?(T=S,q):T},q};function z4(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=z4,T=v.projection;return v.projection=function(q){return arguments.length?T(HW(g=q)):g},v};function HW(v){return function(){var g=v.apply(this,arguments),T=g[0],q=g[1]-ar;return[T*Math.cos(q),T*Math.sin(q)]}}e.svg.symbol=function(){var v=BW,g=OW;function T(q,S){return(F4.get(v.call(this,q,S))||N4)(g.call(this,q,S))}return T.type=function(q){return arguments.length?(v=Nr(q),T):v},T.size=function(q){return arguments.length?(g=Nr(q),T):g},T};function OW(){return 64}function BW(){return"circle"}function N4(v){var g=Math.sqrt(v/Ce);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var F4=e.map({circle:N4,cross:function(v){var g=Math.sqrt(v/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(v){var g=Math.sqrt(v/(2*I4)),T=g*I4;return"M0,"+-g+"L"+T+",0 0,"+g+" "+-T+",0Z"},square:function(v){var g=Math.sqrt(v)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(v){var g=Math.sqrt(v/Q0),T=g*Q0/2;return"M0,"+T+"L"+g+","+-T+" "+-g+","+-T+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/Q0),T=g*Q0/2;return"M0,"+-T+"L"+g+","+T+" "+-g+","+T+"Z"}});e.svg.symbolTypes=F4.keys();var Q0=Math.sqrt(3),I4=Math.tan(30*Ar);be.transition=function(v){for(var g=No||++O4,T=_y(v),q=[],S,L,z=eh||{time:Date.now(),ease:xU,delay:0,duration:250},P=-1,F=this.length;++P0;)ee[--_e].call(v,de);if(ue>=1)return z.event&&z.event.end.call(v,v.__data__,g),--L.count?delete L[q]:delete v[T],1}z||(P=S.time,F=I0(re,0,P),z=L[q]={tween:new x,time:P,timer:F,delay:S.delay,duration:S.duration,ease:S.ease,index:g},S=null,++L.count)}e.svg.axis=function(){var v=e.scale.linear(),g=B4,T=6,q=6,S=3,L=[10],z=null,P;function F(J){J.each(function(){var K=e.select(this),ee=this.__chart__||v,re=this.__chart__=v.copy(),ye=z==null?re.ticks?re.ticks.apply(re,L):re.domain():z,we=P==null?re.tickFormat?re.tickFormat.apply(re,L):G:P,ae=K.selectAll(".tick").data(ye,re),ue=ae.enter().insert("g",".domain").attr("class","tick").style("opacity",ce),de=e.transition(ae.exit()).style("opacity",ce).remove(),_e=e.transition(ae.order()).style("opacity",1),Te=Math.max(T,0)+S,me,Be=W0(re),tr=K.selectAll(".domain").data([0]),sr=(tr.enter().append("path").attr("class","domain"),e.transition(tr));ue.append("line"),ue.append("text");var nr=ue.select("line"),hr=_e.select("line"),dr=ae.select("text").text(we),Lr=ue.select("text"),pr=_e.select("text"),Mr=g==="top"||g==="left"?-1:1,Kr,Ht,at,je;if(g==="bottom"||g==="top"?(me=GW,Kr="x",at="y",Ht="x2",je="y2",dr.attr("dy",Mr<0?"0em":".71em").style("text-anchor","middle"),sr.attr("d","M"+Be[0]+","+Mr*q+"V0H"+Be[1]+"V"+Mr*q)):(me=UW,Kr="y",at="x",Ht="y2",je="x2",dr.attr("dy",".32em").style("text-anchor",Mr<0?"end":"start"),sr.attr("d","M"+Mr*q+","+Be[0]+"H0V"+Be[1]+"H"+Mr*q)),nr.attr(je,Mr*T),Lr.attr(at,Mr*Te),hr.attr(Ht,0).attr(je,Mr*T),pr.attr(Kr,0).attr(at,Mr*Te),re.rangeBand){var Dr=re,Er=Dr.rangeBand()/2;ee=re=function(Qr){return Dr(Qr)+Er}}else ee.rangeBand?ee=re:de.call(me,re,ee);ue.call(me,ee,re),_e.call(me,re,re)})}return F.scale=function(J){return arguments.length?(v=J,F):v},F.orient=function(J){return arguments.length?(g=J in VW?J+"":B4,F):g},F.ticks=function(){return arguments.length?(L=t(arguments),F):L},F.tickValues=function(J){return arguments.length?(z=J,F):z},F.tickFormat=function(J){return arguments.length?(P=J,F):P},F.tickSize=function(J){var K=arguments.length;return K?(T=+J,q=+arguments[K-1],F):T},F.innerTickSize=function(J){return arguments.length?(T=+J,F):T},F.outerTickSize=function(J){return arguments.length?(q=+J,F):q},F.tickPadding=function(J){return arguments.length?(S=+J,F):S},F.tickSubdivide=function(){return arguments.length&&F},F};var B4="bottom",VW={top:1,right:1,bottom:1,left:1};function GW(v,g,T){v.attr("transform",function(q){var S=g(q);return"translate("+(isFinite(S)?S:T(q))+",0)"})}function UW(v,g,T){v.attr("transform",function(q){var S=g(q);return"translate(0,"+(isFinite(S)?S:T(q))+")"})}e.svg.brush=function(){var v=fe(K,"brushstart","brush","brushend"),g=null,T=null,q=[0,0],S=[0,0],L,z,P=!0,F=!0,J=wy[0];function K(ae){ae.each(function(){var ue=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",we).on("touchstart.brush",we),de=ue.selectAll(".background").data([0]);de.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ue.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var _e=ue.selectAll(".resize").data(J,G);_e.exit().remove(),_e.enter().append("g").attr("class",function(tr){return"resize "+tr}).style("cursor",function(tr){return WW[tr]}).append("rect").attr("x",function(tr){return/[ew]$/.test(tr)?-3:null}).attr("y",function(tr){return/^[ns]/.test(tr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),_e.style("display",K.empty()?"none":null);var Te=e.transition(ue),me=e.transition(de),Be;g&&(Be=W0(g),me.attr("x",Be[0]).attr("width",Be[1]-Be[0]),re(Te)),T&&(Be=W0(T),me.attr("y",Be[0]).attr("height",Be[1]-Be[0]),ye(Te)),ee(Te)})}K.event=function(ae){ae.each(function(){var ue=v.of(this,arguments),de={x:q,y:S,i:L,j:z},_e=this.__chart__||de;this.__chart__=de,No?e.select(this).transition().each("start.brush",function(){L=_e.i,z=_e.j,q=_e.x,S=_e.y,ue({type:"brushstart"})}).tween("brush:brush",function(){var Te=G0(q,de.x),me=G0(S,de.y);return L=z=null,function(Be){q=de.x=Te(Be),S=de.y=me(Be),ue({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=de.i,z=de.j,ue({type:"brush",mode:"resize"}),ue({type:"brushend"})}):(ue({type:"brushstart"}),ue({type:"brush",mode:"resize"}),ue({type:"brushend"}))})};function ee(ae){ae.selectAll(".resize").attr("transform",function(ue){return"translate("+q[+/e$/.test(ue)]+","+S[+/^s/.test(ue)]+")"})}function re(ae){ae.select(".extent").attr("x",q[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",q[1]-q[0])}function ye(ae){ae.select(".extent").attr("y",S[0]),ae.selectAll(".extent,.e>rect,.w>rect").attr("height",S[1]-S[0])}function we(){var ae=this,ue=e.select(e.event.target),de=v.of(ae,arguments),_e=e.select(ae),Te=ue.datum(),me=!/^(n|s)$/.test(Te)&&g,Be=!/^(e|w)$/.test(Te)&&T,tr=ue.classed("extent"),sr=vr(ae),nr,hr=e.mouse(ae),dr,Lr=e.select(i(ae)).on("keydown.brush",Kr).on("keyup.brush",Ht);if(e.event.changedTouches?Lr.on("touchmove.brush",at).on("touchend.brush",Dr):Lr.on("mousemove.brush",at).on("mouseup.brush",Dr),_e.interrupt().selectAll("*").interrupt(),tr)hr[0]=q[0]-hr[0],hr[1]=S[0]-hr[1];else if(Te){var pr=+/w$/.test(Te),Mr=+/^n/.test(Te);dr=[q[1-pr]-hr[0],S[1-Mr]-hr[1]],hr[0]=q[pr],hr[1]=S[Mr]}else e.event.altKey&&(nr=hr.slice());_e.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ue.style("cursor")),de({type:"brushstart"}),at();function Kr(){e.event.keyCode==32&&(tr||(nr=null,hr[0]-=q[1],hr[1]-=S[1],tr=2),te())}function Ht(){e.event.keyCode==32&&tr==2&&(hr[0]+=q[1],hr[1]+=S[1],tr=0,te())}function at(){var Er=e.mouse(ae),Qr=!1;dr&&(Er[0]+=dr[0],Er[1]+=dr[1]),tr||(e.event.altKey?(nr||(nr=[(q[0]+q[1])/2,(S[0]+S[1])/2]),hr[0]=q[+(Er[0]{(function(e,r){typeof lh=="object"&&typeof X4!="undefined"?r(lh):(e=e||self,r(e.d3=e.d3||{}))})(lh,function(e){"use strict";var r=new Date,t=new Date;function a(ie,Me,Ze,cr){function fr(oe){return ie(oe=arguments.length===0?new Date:new Date(+oe)),oe}return fr.floor=function(oe){return ie(oe=new Date(+oe)),oe},fr.ceil=function(oe){return ie(oe=new Date(oe-1)),Me(oe,1),ie(oe),oe},fr.round=function(oe){var Se=fr(oe),Ie=fr.ceil(oe);return oe-Se0))return We;do We.push(Ge=new Date(+oe)),Me(oe,Ie),ie(oe);while(Ge=Se)for(;ie(Se),!oe(Se);)Se.setTime(Se-1)},function(Se,Ie){if(Se>=Se)if(Ie<0)for(;++Ie<=0;)for(;Me(Se,-1),!oe(Se););else for(;--Ie>=0;)for(;Me(Se,1),!oe(Se););})},Ze&&(fr.count=function(oe,Se){return r.setTime(+oe),t.setTime(+Se),ie(r),ie(t),Math.floor(Ze(r,t))},fr.every=function(oe){return oe=Math.floor(oe),!isFinite(oe)||!(oe>0)?null:oe>1?fr.filter(cr?function(Se){return cr(Se)%oe===0}:function(Se){return fr.count(0,Se)%oe===0}):fr}),fr}var n=a(function(){},function(ie,Me){ie.setTime(+ie+Me)},function(ie,Me){return Me-ie});n.every=function(ie){return ie=Math.floor(ie),!isFinite(ie)||!(ie>0)?null:ie>1?a(function(Me){Me.setTime(Math.floor(Me/ie)*ie)},function(Me,Ze){Me.setTime(+Me+Ze*ie)},function(Me,Ze){return(Ze-Me)/ie}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(ie){ie.setTime(ie-ie.getMilliseconds())},function(ie,Me){ie.setTime(+ie+Me*l)},function(ie,Me){return(Me-ie)/l},function(ie){return ie.getUTCSeconds()}),h=c.range,d=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l)},function(ie,Me){ie.setTime(+ie+Me*o)},function(ie,Me){return(Me-ie)/o},function(ie){return ie.getMinutes()}),p=d.range,m=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l-ie.getMinutes()*o)},function(ie,Me){ie.setTime(+ie+Me*s)},function(ie,Me){return(Me-ie)/s},function(ie){return ie.getHours()}),y=m.range,b=a(function(ie){ie.setHours(0,0,0,0)},function(ie,Me){ie.setDate(ie.getDate()+Me)},function(ie,Me){return(Me-ie-(Me.getTimezoneOffset()-ie.getTimezoneOffset())*o)/u},function(ie){return ie.getDate()-1}),_=b.range;function w(ie){return a(function(Me){Me.setDate(Me.getDate()-(Me.getDay()+7-ie)%7),Me.setHours(0,0,0,0)},function(Me,Ze){Me.setDate(Me.getDate()+Ze*7)},function(Me,Ze){return(Ze-Me-(Ze.getTimezoneOffset()-Me.getTimezoneOffset())*o)/f})}var x=w(0),M=w(1),k=w(2),A=w(3),C=w(4),D=w(5),E=w(6),R=x.range,N=M.range,I=k.range,H=A.range,G=C.range,W=D.range,Y=E.range,O=a(function(ie){ie.setDate(1),ie.setHours(0,0,0,0)},function(ie,Me){ie.setMonth(ie.getMonth()+Me)},function(ie,Me){return Me.getMonth()-ie.getMonth()+(Me.getFullYear()-ie.getFullYear())*12},function(ie){return ie.getMonth()}),V=O.range,Z=a(function(ie){ie.setMonth(0,1),ie.setHours(0,0,0,0)},function(ie,Me){ie.setFullYear(ie.getFullYear()+Me)},function(ie,Me){return Me.getFullYear()-ie.getFullYear()},function(ie){return ie.getFullYear()});Z.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(Me){Me.setFullYear(Math.floor(Me.getFullYear()/ie)*ie),Me.setMonth(0,1),Me.setHours(0,0,0,0)},function(Me,Ze){Me.setFullYear(Me.getFullYear()+Ze*ie)})};var $=Z.range,te=a(function(ie){ie.setUTCSeconds(0,0)},function(ie,Me){ie.setTime(+ie+Me*o)},function(ie,Me){return(Me-ie)/o},function(ie){return ie.getUTCMinutes()}),le=te.range,fe=a(function(ie){ie.setUTCMinutes(0,0,0)},function(ie,Me){ie.setTime(+ie+Me*s)},function(ie,Me){return(Me-ie)/s},function(ie){return ie.getUTCHours()}),he=fe.range,Q=a(function(ie){ie.setUTCHours(0,0,0,0)},function(ie,Me){ie.setUTCDate(ie.getUTCDate()+Me)},function(ie,Me){return(Me-ie)/u},function(ie){return ie.getUTCDate()-1}),qe=Q.range;function ve(ie){return a(function(Me){Me.setUTCDate(Me.getUTCDate()-(Me.getUTCDay()+7-ie)%7),Me.setUTCHours(0,0,0,0)},function(Me,Ze){Me.setUTCDate(Me.getUTCDate()+Ze*7)},function(Me,Ze){return(Ze-Me)/f})}var Ae=ve(0),se=ve(1),be=ve(2),U=ve(3),j=ve(4),X=ve(5),ge=ve(6),ke=Ae.range,xe=se.range,ze=be.range,Fe=U.range,Ee=j.range,Ne=X.range,Ue=ge.range,Ve=a(function(ie){ie.setUTCDate(1),ie.setUTCHours(0,0,0,0)},function(ie,Me){ie.setUTCMonth(ie.getUTCMonth()+Me)},function(ie,Me){return Me.getUTCMonth()-ie.getUTCMonth()+(Me.getUTCFullYear()-ie.getUTCFullYear())*12},function(ie){return ie.getUTCMonth()}),De=Ve.range,He=a(function(ie){ie.setUTCMonth(0,1),ie.setUTCHours(0,0,0,0)},function(ie,Me){ie.setUTCFullYear(ie.getUTCFullYear()+Me)},function(ie,Me){return Me.getUTCFullYear()-ie.getUTCFullYear()},function(ie){return ie.getUTCFullYear()});He.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(Me){Me.setUTCFullYear(Math.floor(Me.getUTCFullYear()/ie)*ie),Me.setUTCMonth(0,1),Me.setUTCHours(0,0,0,0)},function(Me,Ze){Me.setUTCFullYear(Me.getUTCFullYear()+Ze*ie)})};var Oe=He.range;e.timeDay=b,e.timeDays=_,e.timeFriday=D,e.timeFridays=W,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=M,e.timeMondays=N,e.timeMonth=O,e.timeMonths=V,e.timeSaturday=E,e.timeSaturdays=Y,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=x,e.timeSundays=R,e.timeThursday=C,e.timeThursdays=G,e.timeTuesday=k,e.timeTuesdays=I,e.timeWednesday=A,e.timeWednesdays=H,e.timeWeek=x,e.timeWeeks=R,e.timeYear=Z,e.timeYears=$,e.utcDay=Q,e.utcDays=qe,e.utcFriday=X,e.utcFridays=Ne,e.utcHour=fe,e.utcHours=he,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=te,e.utcMinutes=le,e.utcMonday=se,e.utcMondays=xe,e.utcMonth=Ve,e.utcMonths=De,e.utcSaturday=ge,e.utcSaturdays=Ue,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=Ae,e.utcSundays=ke,e.utcThursday=j,e.utcThursdays=Ee,e.utcTuesday=be,e.utcTuesdays=ze,e.utcWednesday=U,e.utcWednesdays=Fe,e.utcWeek=Ae,e.utcWeeks=ke,e.utcYear=He,e.utcYears=Oe,Object.defineProperty(e,"__esModule",{value:!0})})});var cu=B((oh,Z4)=>{(function(e,r){typeof oh=="object"&&typeof Z4!="undefined"?r(oh,My()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(oh,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var ce=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return ce.setFullYear(ne.y),ce}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var ce=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return ce.setUTCFullYear(ne.y),ce}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,ce,Le){return{y:ne,m:ce,d:Le,H:0,M:0,S:0,L:0}}function i(ne){var ce=ne.dateTime,Le=ne.date,Ce=ne.time,or=ne.periods,lr=ne.days,ar=ne.shortDays,Ar=ne.months,Br=ne.shortMonths,tt=h(or),jr=d(or),ra=h(lr),It=d(lr),_t=h(ar),Dt=d(ar),ga=h(Ar),xa=d(Ar),Gt=h(Br),Ka=d(Br),gr={a:Do,A:Eo,b:Ll,B:D0,c:null,d:O,e:O,f:le,H:V,I:Z,j:$,L:te,m:fe,M:he,p:E0,q:nc,Q:Se,s:Ie,S:Q,u:qe,U:ve,V:Ae,w:se,W:be,x:null,X:null,y:U,Y:j,Z:X,"%":oe},ft={a:ic,A:lc,b:Oa,B:P0,c:null,d:ge,e:ge,f:Ee,H:ke,I:xe,j:ze,L:Fe,m:Ne,M:Ue,p:tu,q:au,Q:Se,s:Ie,S:Ve,u:De,U:He,V:Oe,w:ie,W:Me,x:null,X:null,y:Ze,Y:cr,Z:fr,"%":oe},Wr={a:Ha,A:ca,b:ni,B:ii,c:ta,d:C,e:C,f:H,H:E,I:E,j:D,L:I,m:A,M:R,p:Tt,q:k,Q:W,s:Y,S:N,u:m,U:y,V:b,w:p,W:_,x:it,X:ba,y:x,Y:w,Z:M,"%":G};gr.x=wt(Le,gr),gr.X=wt(Ce,gr),gr.c=wt(ce,gr),ft.x=wt(Le,ft),ft.X=wt(Ce,ft),ft.c=wt(ce,ft);function wt(mr,Xr){return function(et){var ir=[],_a=-1,vt=0,wa=mr.length,Nr,li,Po;for(et instanceof Date||(et=new Date(+et));++_a53)return null;"w"in ir||(ir.w=1),"Z"in ir?(vt=a(n(ir.y,0,1)),wa=vt.getUTCDay(),vt=wa>4||wa===0?r.utcMonday.ceil(vt):r.utcMonday(vt),vt=r.utcDay.offset(vt,(ir.V-1)*7),ir.y=vt.getUTCFullYear(),ir.m=vt.getUTCMonth(),ir.d=vt.getUTCDate()+(ir.w+6)%7):(vt=t(n(ir.y,0,1)),wa=vt.getDay(),vt=wa>4||wa===0?r.timeMonday.ceil(vt):r.timeMonday(vt),vt=r.timeDay.offset(vt,(ir.V-1)*7),ir.y=vt.getFullYear(),ir.m=vt.getMonth(),ir.d=vt.getDate()+(ir.w+6)%7)}else("W"in ir||"U"in ir)&&("w"in ir||(ir.w="u"in ir?ir.u%7:"W"in ir?1:0),wa="Z"in ir?a(n(ir.y,0,1)).getUTCDay():t(n(ir.y,0,1)).getDay(),ir.m=0,ir.d="W"in ir?(ir.w+6)%7+ir.W*7-(wa+5)%7:ir.w+ir.U*7-(wa+6)%7);return"Z"in ir?(ir.H+=ir.Z/100|0,ir.M+=ir.Z%100,a(ir)):t(ir)}}function ct(mr,Xr,et,ir){for(var _a=0,vt=Xr.length,wa=et.length,Nr,li;_a=wa)return-1;if(Nr=Xr.charCodeAt(_a++),Nr===37){if(Nr=Xr.charAt(_a++),li=Wr[Nr in l?Xr.charAt(_a++):Nr],!li||(ir=li(mr,et,ir))<0)return-1}else if(Nr!=et.charCodeAt(ir++))return-1}return ir}function Tt(mr,Xr,et){var ir=tt.exec(Xr.slice(et));return ir?(mr.p=jr[ir[0].toLowerCase()],et+ir[0].length):-1}function Ha(mr,Xr,et){var ir=_t.exec(Xr.slice(et));return ir?(mr.w=Dt[ir[0].toLowerCase()],et+ir[0].length):-1}function ca(mr,Xr,et){var ir=ra.exec(Xr.slice(et));return ir?(mr.w=It[ir[0].toLowerCase()],et+ir[0].length):-1}function ni(mr,Xr,et){var ir=Gt.exec(Xr.slice(et));return ir?(mr.m=Ka[ir[0].toLowerCase()],et+ir[0].length):-1}function ii(mr,Xr,et){var ir=ga.exec(Xr.slice(et));return ir?(mr.m=xa[ir[0].toLowerCase()],et+ir[0].length):-1}function ta(mr,Xr,et){return ct(mr,ce,Xr,et)}function it(mr,Xr,et){return ct(mr,Le,Xr,et)}function ba(mr,Xr,et){return ct(mr,Ce,Xr,et)}function Do(mr){return ar[mr.getDay()]}function Eo(mr){return lr[mr.getDay()]}function Ll(mr){return Br[mr.getMonth()]}function D0(mr){return Ar[mr.getMonth()]}function E0(mr){return or[+(mr.getHours()>=12)]}function nc(mr){return 1+~~(mr.getMonth()/3)}function ic(mr){return ar[mr.getUTCDay()]}function lc(mr){return lr[mr.getUTCDay()]}function Oa(mr){return Br[mr.getUTCMonth()]}function P0(mr){return Ar[mr.getUTCMonth()]}function tu(mr){return or[+(mr.getUTCHours()>=12)]}function au(mr){return 1+~~(mr.getUTCMonth()/3)}return{format:function(mr){var Xr=wt(mr+="",gr);return Xr.toString=function(){return mr},Xr},parse:function(mr){var Xr=Et(mr+="",!1);return Xr.toString=function(){return mr},Xr},utcFormat:function(mr){var Xr=wt(mr+="",ft);return Xr.toString=function(){return mr},Xr},utcParse:function(mr){var Xr=Et(mr+="",!0);return Xr.toString=function(){return mr},Xr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,ce,Le){var Ce=ne<0?"-":"",or=(Ce?-ne:ne)+"",lr=or.length;return Ce+(lr68?1900:2e3),Le+Ce[0].length):-1}function M(ne,ce,Le){var Ce=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ce.slice(Le,Le+6));return Ce?(ne.Z=Ce[1]?0:-(Ce[2]+(Ce[3]||"00")),Le+Ce[0].length):-1}function k(ne,ce,Le){var Ce=o.exec(ce.slice(Le,Le+1));return Ce?(ne.q=Ce[0]*3-3,Le+Ce[0].length):-1}function A(ne,ce,Le){var Ce=o.exec(ce.slice(Le,Le+2));return Ce?(ne.m=Ce[0]-1,Le+Ce[0].length):-1}function C(ne,ce,Le){var Ce=o.exec(ce.slice(Le,Le+2));return Ce?(ne.d=+Ce[0],Le+Ce[0].length):-1}function D(ne,ce,Le){var Ce=o.exec(ce.slice(Le,Le+3));return Ce?(ne.m=0,ne.d=+Ce[0],Le+Ce[0].length):-1}function E(ne,ce,Le){var Ce=o.exec(ce.slice(Le,Le+2));return Ce?(ne.H=+Ce[0],Le+Ce[0].length):-1}function R(ne,ce,Le){var Ce=o.exec(ce.slice(Le,Le+2));return Ce?(ne.M=+Ce[0],Le+Ce[0].length):-1}function N(ne,ce,Le){var Ce=o.exec(ce.slice(Le,Le+2));return Ce?(ne.S=+Ce[0],Le+Ce[0].length):-1}function I(ne,ce,Le){var Ce=o.exec(ce.slice(Le,Le+3));return Ce?(ne.L=+Ce[0],Le+Ce[0].length):-1}function H(ne,ce,Le){var Ce=o.exec(ce.slice(Le,Le+6));return Ce?(ne.L=Math.floor(Ce[0]/1e3),Le+Ce[0].length):-1}function G(ne,ce,Le){var Ce=s.exec(ce.slice(Le,Le+1));return Ce?Le+Ce[0].length:-1}function W(ne,ce,Le){var Ce=o.exec(ce.slice(Le));return Ce?(ne.Q=+Ce[0],Le+Ce[0].length):-1}function Y(ne,ce,Le){var Ce=o.exec(ce.slice(Le));return Ce?(ne.s=+Ce[0],Le+Ce[0].length):-1}function O(ne,ce){return f(ne.getDate(),ce,2)}function V(ne,ce){return f(ne.getHours(),ce,2)}function Z(ne,ce){return f(ne.getHours()%12||12,ce,2)}function $(ne,ce){return f(1+r.timeDay.count(r.timeYear(ne),ne),ce,3)}function te(ne,ce){return f(ne.getMilliseconds(),ce,3)}function le(ne,ce){return te(ne,ce)+"000"}function fe(ne,ce){return f(ne.getMonth()+1,ce,2)}function he(ne,ce){return f(ne.getMinutes(),ce,2)}function Q(ne,ce){return f(ne.getSeconds(),ce,2)}function qe(ne){var ce=ne.getDay();return ce===0?7:ce}function ve(ne,ce){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),ce,2)}function Ae(ne,ce){var Le=ne.getDay();return ne=Le>=4||Le===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),ce,2)}function se(ne){return ne.getDay()}function be(ne,ce){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),ce,2)}function U(ne,ce){return f(ne.getFullYear()%100,ce,2)}function j(ne,ce){return f(ne.getFullYear()%1e4,ce,4)}function X(ne){var ce=ne.getTimezoneOffset();return(ce>0?"-":(ce*=-1,"+"))+f(ce/60|0,"0",2)+f(ce%60,"0",2)}function ge(ne,ce){return f(ne.getUTCDate(),ce,2)}function ke(ne,ce){return f(ne.getUTCHours(),ce,2)}function xe(ne,ce){return f(ne.getUTCHours()%12||12,ce,2)}function ze(ne,ce){return f(1+r.utcDay.count(r.utcYear(ne),ne),ce,3)}function Fe(ne,ce){return f(ne.getUTCMilliseconds(),ce,3)}function Ee(ne,ce){return Fe(ne,ce)+"000"}function Ne(ne,ce){return f(ne.getUTCMonth()+1,ce,2)}function Ue(ne,ce){return f(ne.getUTCMinutes(),ce,2)}function Ve(ne,ce){return f(ne.getUTCSeconds(),ce,2)}function De(ne){var ce=ne.getUTCDay();return ce===0?7:ce}function He(ne,ce){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),ce,2)}function Oe(ne,ce){var Le=ne.getUTCDay();return ne=Le>=4||Le===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),ce,2)}function ie(ne){return ne.getUTCDay()}function Me(ne,ce){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),ce,2)}function Ze(ne,ce){return f(ne.getUTCFullYear()%100,ce,2)}function cr(ne,ce){return f(ne.getUTCFullYear()%1e4,ce,4)}function fr(){return"+0000"}function oe(){return"%"}function Se(ne){return+ne}function Ie(ne){return Math.floor(+ne/1e3)}var We;Ge({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Ge(ne){return We=i(ne),e.timeFormat=We.format,e.timeParse=We.parse,e.utcFormat=We.utcFormat,e.utcParse=We.utcParse,We}var Je="%Y-%m-%dT%H:%M:%S.%LZ";function Qe(ne){return ne.toISOString()}var vr=Date.prototype.toISOString?Qe:e.utcFormat(Je);function $e(ne){var ce=new Date(ne);return isNaN(ce)?null:ce}var Re=+new Date("2000-01-01T00:00:00.000Z")?$e:e.utcParse(Je);e.isoFormat=vr,e.isoParse=Re,e.timeFormatDefaultLocale=Ge,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Ay=B((sh,J4)=>{(function(e,r){typeof sh=="object"&&typeof J4!="undefined"?r(sh):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(sh,function(e){"use strict";function r(A){return Math.abs(A=Math.round(A))>=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function t(A,C){if((D=(A=C?A.toExponential(C-1):A.toExponential()).indexOf("e"))<0)return null;var D,E=A.slice(0,D);return[E.length>1?E[0]+E.slice(2):E,+A.slice(D+1)]}function a(A){return A=t(Math.abs(A)),A?A[1]:NaN}function n(A,C){return function(D,E){for(var R=D.length,N=[],I=0,H=A[0],G=0;R>0&&H>0&&(G+H+1>E&&(H=Math.max(1,E-G)),N.push(D.substring(R-=H,R+H)),!((G+=H+1)>E));)H=A[I=(I+1)%A.length];return N.reverse().join(C)}}function i(A){return function(C){return C.replace(/[0-9]/g,function(D){return A[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(A){if(!(C=l.exec(A)))throw new Error("invalid format: "+A);var C;return new s({fill:C[1],align:C[2],sign:C[3],symbol:C[4],zero:C[5],width:C[6],comma:C[7],precision:C[8]&&C[8].slice(1),trim:C[9],type:C[10]})}o.prototype=s.prototype;function s(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(A){e:for(var C=A.length,D=1,E=-1,R;D0&&(E=0);break}return E>0?A.slice(0,E)+A.slice(R+1):A}var f;function c(A,C){var D=t(A,C);if(!D)return A+"";var E=D[0],R=D[1],N=R-(f=Math.max(-8,Math.min(8,Math.floor(R/3)))*3)+1,I=E.length;return N===I?E:N>I?E+new Array(N-I+1).join("0"):N>0?E.slice(0,N)+"."+E.slice(N):"0."+new Array(1-N).join("0")+t(A,Math.max(0,C+N-1))[0]}function h(A,C){var D=t(A,C);if(!D)return A+"";var E=D[0],R=D[1];return R<0?"0."+new Array(-R).join("0")+E:E.length>R+1?E.slice(0,R+1)+"."+E.slice(R+1):E+new Array(R-E.length+2).join("0")}var d={"%":function(A,C){return(A*100).toFixed(C)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:r,e:function(A,C){return A.toExponential(C)},f:function(A,C){return A.toFixed(C)},g:function(A,C){return A.toPrecision(C)},o:function(A){return Math.round(A).toString(8)},p:function(A,C){return h(A*100,C)},r:h,s:c,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function p(A){return A}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(A){var C=A.grouping===void 0||A.thousands===void 0?p:n(m.call(A.grouping,Number),A.thousands+""),D=A.currency===void 0?"":A.currency[0]+"",E=A.currency===void 0?"":A.currency[1]+"",R=A.decimal===void 0?".":A.decimal+"",N=A.numerals===void 0?p:i(m.call(A.numerals,String)),I=A.percent===void 0?"%":A.percent+"",H=A.minus===void 0?"-":A.minus+"",G=A.nan===void 0?"NaN":A.nan+"";function W(O){O=o(O);var V=O.fill,Z=O.align,$=O.sign,te=O.symbol,le=O.zero,fe=O.width,he=O.comma,Q=O.precision,qe=O.trim,ve=O.type;ve==="n"?(he=!0,ve="g"):d[ve]||(Q===void 0&&(Q=12),qe=!0,ve="g"),(le||V==="0"&&Z==="=")&&(le=!0,V="0",Z="=");var Ae=te==="$"?D:te==="#"&&/[boxX]/.test(ve)?"0"+ve.toLowerCase():"",se=te==="$"?E:/[%p]/.test(ve)?I:"",be=d[ve],U=/[defgprs%]/.test(ve);Q=Q===void 0?6:/[gprs]/.test(ve)?Math.max(1,Math.min(21,Q)):Math.max(0,Math.min(20,Q));function j(X){var ge=Ae,ke=se,xe,ze,Fe;if(ve==="c")ke=be(X)+ke,X="";else{X=+X;var Ee=X<0||1/X<0;if(X=isNaN(X)?G:be(Math.abs(X),Q),qe&&(X=u(X)),Ee&&+X==0&&$!=="+"&&(Ee=!1),ge=(Ee?$==="("?$:H:$==="-"||$==="("?"":$)+ge,ke=(ve==="s"?y[8+f/3]:"")+ke+(Ee&&$==="("?")":""),U){for(xe=-1,ze=X.length;++xeFe||Fe>57){ke=(Fe===46?R+X.slice(xe+1):X.slice(xe))+ke,X=X.slice(0,xe);break}}}he&&!le&&(X=C(X,1/0));var Ne=ge.length+X.length+ke.length,Ue=Ne>1)+ge+X+ke+Ue.slice(Ne);break;default:X=Ue+ge+X+ke;break}return N(X)}return j.toString=function(){return O+""},j}function Y(O,V){var Z=W((O=o(O),O.type="f",O)),$=Math.max(-8,Math.min(8,Math.floor(a(V)/3)))*3,te=Math.pow(10,-$),le=y[8+$/3];return function(fe){return Z(te*fe)+le}}return{format:W,formatPrefix:Y}}var _;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(A){return _=b(A),e.format=_.format,e.formatPrefix=_.formatPrefix,_}function x(A){return Math.max(0,-a(Math.abs(A)))}function M(A,C){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(C)/3)))*3-a(Math.abs(A)))}function k(A,C){return A=Math.abs(A),C=Math.abs(C)-A,Math.max(0,a(C)-a(A))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=b,e.formatSpecifier=o,e.precisionFixed=x,e.precisionPrefix=M,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var K4=B((Vpe,$4)=>{"use strict";$4.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var zr=B((Gpe,Q4)=>{"use strict";var rX=K4();Q4.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&rX(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Mt=B((Upe,j4)=>{"use strict";j4.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var ky=B((uh,e6)=>{(function(e,r){typeof uh=="object"&&typeof e6!="undefined"?r(uh):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(uh,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,c,h,d,p;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var m=new ArrayBuffer(o),y=new Uint8Array(m);for(u=0;u>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var Pl=B((Wpe,r6)=>{"use strict";r6.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var gn=B(ui=>{"use strict";var tX=ky().decode,aX=Pl(),qy=Array.isArray,nX=ArrayBuffer,iX=DataView;function t6(e){return nX.isView(e)&&!(e instanceof iX)}ui.isTypedArray=t6;function fh(e){return qy(e)||t6(e)}ui.isArrayOrTypedArray=fh;function lX(e){return!fh(e[0])}ui.isArray1D=lX;ui.ensureArray=function(e,r){return qy(e)||(e=[]),e.length=r,e};var va={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};va.uint8c=va.u1c;va.uint8=va.u1;va.int8=va.i1;va.uint16=va.u2;va.int16=va.i2;va.uint32=va.u4;va.int32=va.i4;va.float32=va.f4;va.float64=va.f8;function Sy(e){return e.constructor===ArrayBuffer}ui.isArrayBuffer=Sy;ui.decodeTypedArraySpec=function(e){var r=[],t=oX(e),a=t.dtype,n=va[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;Sy(l)||(l=tX(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,c=+o[0],h=i*c,d=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var n6=zr(),Ly=gn().isArrayOrTypedArray;s6.exports=function(r,t){if(n6(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var vu=ch(),vX=/^\w*$/,hX=0,u6=1,vh=2,f6=3,Ho=4;c6.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=vu(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[d]=s[d]|vh,c.set(h,null);if(f){for(i=d;i{"use strict";var dX=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,pX=/^[^\.\[\]]+$/;h6.exports=function(e,r){for(;r;){var t=e.match(dX);if(t)e=t[1];else if(e.match(pX))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var hh=B((Kpe,p6)=>{"use strict";var mX=zr();p6.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return mX(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var g6=B((Qpe,y6)=>{"use strict";var m6=gn().isArrayOrTypedArray,mc=Pl();y6.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(m6(n)&&m6(i)&&mc(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o{"use strict";function yX(e,r){var t=e%r;return t<0?t+r:t}function gX(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}x6.exports={mod:yX,modHalf:gX}});var zn=B((eme,dh)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(U,j){if(U=U||"",j=j||{},U instanceof s)return U;if(!(this instanceof s))return new s(U,j);var X=u(U);this._originalInput=U,this._r=X.r,this._g=X.g,this._b=X.b,this._a=X.a,this._roundA=n(100*this._a)/100,this._format=j.format||X.format,this._gradientType=j.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=X.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var U=this.toRgb();return(U.r*299+U.g*587+U.b*114)/1e3},getLuminance:function(){var U=this.toRgb(),j,X,ge,ke,xe,ze;return j=U.r/255,X=U.g/255,ge=U.b/255,j<=.03928?ke=j/12.92:ke=e.pow((j+.055)/1.055,2.4),X<=.03928?xe=X/12.92:xe=e.pow((X+.055)/1.055,2.4),ge<=.03928?ze=ge/12.92:ze=e.pow((ge+.055)/1.055,2.4),.2126*ke+.7152*xe+.0722*ze},setAlpha:function(U){return this._a=O(U),this._roundA=n(100*this._a)/100,this},toHsv:function(){var U=d(this._r,this._g,this._b);return{h:U.h*360,s:U.s,v:U.v,a:this._a}},toHsvString:function(){var U=d(this._r,this._g,this._b),j=n(U.h*360),X=n(U.s*100),ge=n(U.v*100);return this._a==1?"hsv("+j+", "+X+"%, "+ge+"%)":"hsva("+j+", "+X+"%, "+ge+"%, "+this._roundA+")"},toHsl:function(){var U=c(this._r,this._g,this._b);return{h:U.h*360,s:U.s,l:U.l,a:this._a}},toHslString:function(){var U=c(this._r,this._g,this._b),j=n(U.h*360),X=n(U.s*100),ge=n(U.l*100);return this._a==1?"hsl("+j+", "+X+"%, "+ge+"%)":"hsla("+j+", "+X+"%, "+ge+"%, "+this._roundA+")"},toHex:function(U){return m(this._r,this._g,this._b,U)},toHexString:function(U){return"#"+this.toHex(U)},toHex8:function(U){return y(this._r,this._g,this._b,this._a,U)},toHex8String:function(U){return"#"+this.toHex8(U)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(V(this._r,255)*100)+"%",g:n(V(this._g,255)*100)+"%",b:n(V(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(V(this._r,255)*100)+"%, "+n(V(this._g,255)*100)+"%, "+n(V(this._b,255)*100)+"%)":"rgba("+n(V(this._r,255)*100)+"%, "+n(V(this._g,255)*100)+"%, "+n(V(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:W[m(this._r,this._g,this._b,!0)]||!1},toFilter:function(U){var j="#"+b(this._r,this._g,this._b,this._a),X=j,ge=this._gradientType?"GradientType = 1, ":"";if(U){var ke=s(U);X="#"+b(ke._r,ke._g,ke._b,ke._a)}return"progid:DXImageTransform.Microsoft.gradient("+ge+"startColorstr="+j+",endColorstr="+X+")"},toString:function(U){var j=!!U;U=U||this._format;var X=!1,ge=this._a<1&&this._a>=0,ke=!j&&ge&&(U==="hex"||U==="hex6"||U==="hex3"||U==="hex4"||U==="hex8"||U==="name");return ke?U==="name"&&this._a===0?this.toName():this.toRgbString():(U==="rgb"&&(X=this.toRgbString()),U==="prgb"&&(X=this.toPercentageRgbString()),(U==="hex"||U==="hex6")&&(X=this.toHexString()),U==="hex3"&&(X=this.toHexString(!0)),U==="hex4"&&(X=this.toHex8String(!0)),U==="hex8"&&(X=this.toHex8String()),U==="name"&&(X=this.toName()),U==="hsl"&&(X=this.toHslString()),U==="hsv"&&(X=this.toHsvString()),X||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(U,j){var X=U.apply(null,[this].concat([].slice.call(j)));return this._r=X._r,this._g=X._g,this._b=X._b,this.setAlpha(X._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(U,j){return U.apply(null,[this].concat([].slice.call(j)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(N,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},s.fromRatio=function(U,j){if(typeof U=="object"){var X={};for(var ge in U)U.hasOwnProperty(ge)&&(ge==="a"?X[ge]=U[ge]:X[ge]=he(U[ge]));U=X}return s(U,j)};function u(U){var j={r:0,g:0,b:0},X=1,ge=null,ke=null,xe=null,ze=!1,Fe=!1;return typeof U=="string"&&(U=se(U)),typeof U=="object"&&(Ae(U.r)&&Ae(U.g)&&Ae(U.b)?(j=f(U.r,U.g,U.b),ze=!0,Fe=String(U.r).substr(-1)==="%"?"prgb":"rgb"):Ae(U.h)&&Ae(U.s)&&Ae(U.v)?(ge=he(U.s),ke=he(U.v),j=p(U.h,ge,ke),ze=!0,Fe="hsv"):Ae(U.h)&&Ae(U.s)&&Ae(U.l)&&(ge=he(U.s),xe=he(U.l),j=h(U.h,ge,xe),ze=!0,Fe="hsl"),U.hasOwnProperty("a")&&(X=U.a)),X=O(X),{ok:ze,format:U.format||Fe,r:i(255,l(j.r,0)),g:i(255,l(j.g,0)),b:i(255,l(j.b,0)),a:X}}function f(U,j,X){return{r:V(U,255)*255,g:V(j,255)*255,b:V(X,255)*255}}function c(U,j,X){U=V(U,255),j=V(j,255),X=V(X,255);var ge=l(U,j,X),ke=i(U,j,X),xe,ze,Fe=(ge+ke)/2;if(ge==ke)xe=ze=0;else{var Ee=ge-ke;switch(ze=Fe>.5?Ee/(2-ge-ke):Ee/(ge+ke),ge){case U:xe=(j-X)/Ee+(j1&&(Ve-=1),Ve<1/6?Ne+(Ue-Ne)*6*Ve:Ve<1/2?Ue:Ve<2/3?Ne+(Ue-Ne)*(2/3-Ve)*6:Ne}if(j===0)ge=ke=xe=X;else{var Fe=X<.5?X*(1+j):X+j-X*j,Ee=2*X-Fe;ge=ze(Ee,Fe,U+1/3),ke=ze(Ee,Fe,U),xe=ze(Ee,Fe,U-1/3)}return{r:ge*255,g:ke*255,b:xe*255}}function d(U,j,X){U=V(U,255),j=V(j,255),X=V(X,255);var ge=l(U,j,X),ke=i(U,j,X),xe,ze,Fe=ge,Ee=ge-ke;if(ze=ge===0?0:Ee/ge,ge==ke)xe=0;else{switch(ge){case U:xe=(j-X)/Ee+(j>1)+720)%360;--j;)ge.h=(ge.h+ke)%360,xe.push(s(ge));return xe}function H(U,j){j=j||6;for(var X=s(U).toHsv(),ge=X.h,ke=X.s,xe=X.v,ze=[],Fe=1/j;j--;)ze.push(s({h:ge,s:ke,v:xe})),xe=(xe+Fe)%1;return ze}s.mix=function(U,j,X){X=X===0?0:X||50;var ge=s(U).toRgb(),ke=s(j).toRgb(),xe=X/100,ze={r:(ke.r-ge.r)*xe+ge.r,g:(ke.g-ge.g)*xe+ge.g,b:(ke.b-ge.b)*xe+ge.b,a:(ke.a-ge.a)*xe+ge.a};return s(ze)},s.readability=function(U,j){var X=s(U),ge=s(j);return(e.max(X.getLuminance(),ge.getLuminance())+.05)/(e.min(X.getLuminance(),ge.getLuminance())+.05)},s.isReadable=function(U,j,X){var ge=s.readability(U,j),ke,xe;switch(xe=!1,ke=be(X),ke.level+ke.size){case"AAsmall":case"AAAlarge":xe=ge>=4.5;break;case"AAlarge":xe=ge>=3;break;case"AAAsmall":xe=ge>=7;break}return xe},s.mostReadable=function(U,j,X){var ge=null,ke=0,xe,ze,Fe,Ee;X=X||{},ze=X.includeFallbackColors,Fe=X.level,Ee=X.size;for(var Ne=0;Neke&&(ke=xe,ge=s(j[Ne]));return s.isReadable(U,ge,{level:Fe,size:Ee})||!ze?ge:(X.includeFallbackColors=!1,s.mostReadable(U,["#fff","#000"],X))};var G=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},W=s.hexNames=Y(G);function Y(U){var j={};for(var X in U)U.hasOwnProperty(X)&&(j[U[X]]=X);return j}function O(U){return U=parseFloat(U),(isNaN(U)||U<0||U>1)&&(U=1),U}function V(U,j){te(U)&&(U="100%");var X=le(U);return U=i(j,l(0,parseFloat(U))),X&&(U=parseInt(U*j,10)/100),e.abs(U-j)<1e-6?1:U%j/parseFloat(j)}function Z(U){return i(1,l(0,U))}function $(U){return parseInt(U,16)}function te(U){return typeof U=="string"&&U.indexOf(".")!=-1&&parseFloat(U)===1}function le(U){return typeof U=="string"&&U.indexOf("%")!=-1}function fe(U){return U.length==1?"0"+U:""+U}function he(U){return U<=1&&(U=U*100+"%"),U}function Q(U){return e.round(parseFloat(U)*255).toString(16)}function qe(U){return $(U)/255}var ve=function(){var U="[-\\+]?\\d+%?",j="[-\\+]?\\d*\\.\\d+%?",X="(?:"+j+")|(?:"+U+")",ge="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?",ke="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?";return{CSS_UNIT:new RegExp(X),rgb:new RegExp("rgb"+ge),rgba:new RegExp("rgba"+ke),hsl:new RegExp("hsl"+ge),hsla:new RegExp("hsla"+ke),hsv:new RegExp("hsv"+ge),hsva:new RegExp("hsva"+ke),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ae(U){return!!ve.CSS_UNIT.exec(U)}function se(U){U=U.replace(r,"").replace(t,"").toLowerCase();var j=!1;if(G[U])U=G[U],j=!0;else if(U=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var X;return(X=ve.rgb.exec(U))?{r:X[1],g:X[2],b:X[3]}:(X=ve.rgba.exec(U))?{r:X[1],g:X[2],b:X[3],a:X[4]}:(X=ve.hsl.exec(U))?{h:X[1],s:X[2],l:X[3]}:(X=ve.hsla.exec(U))?{h:X[1],s:X[2],l:X[3],a:X[4]}:(X=ve.hsv.exec(U))?{h:X[1],s:X[2],v:X[3]}:(X=ve.hsva.exec(U))?{h:X[1],s:X[2],v:X[3],a:X[4]}:(X=ve.hex8.exec(U))?{r:$(X[1]),g:$(X[2]),b:$(X[3]),a:qe(X[4]),format:j?"name":"hex8"}:(X=ve.hex6.exec(U))?{r:$(X[1]),g:$(X[2]),b:$(X[3]),format:j?"name":"hex"}:(X=ve.hex4.exec(U))?{r:$(X[1]+""+X[1]),g:$(X[2]+""+X[2]),b:$(X[3]+""+X[3]),a:qe(X[4]+""+X[4]),format:j?"name":"hex8"}:(X=ve.hex3.exec(U))?{r:$(X[1]+""+X[1]),g:$(X[2]+""+X[2]),b:$(X[3]+""+X[3]),format:j?"name":"hex"}:!1}function be(U){var j,X;return U=U||{level:"AA",size:"small"},j=(U.level||"AA").toUpperCase(),X=(U.size||"small").toLowerCase(),j!=="AA"&&j!=="AAA"&&(j="AA"),X!=="small"&&X!=="large"&&(X="small"),{level:j,size:X}}typeof dh!="undefined"&&dh.exports?dh.exports=s:window.tinycolor=s})(Math)});var mt=B(xc=>{"use strict";var b6=Pl(),yc=Array.isArray;function xX(e,r){var t,a;for(t=0;t{"use strict";_6.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var bc=B((ame,w6)=>{"use strict";w6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var du=B((nme,A6)=>{"use strict";var T6=bc(),M6=aa(),Dy=M6({editType:"none"});Dy.family.dflt=T6.HOVERFONT;Dy.size.dflt=T6.HOVERFONTSIZE;A6.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Dy,grouptitlefont:M6({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Tc=B((ime,k6)=>{"use strict";var bX=aa(),_c=du().hoverlabel,wc=mt().extendFlat;k6.exports={hoverlabel:{bgcolor:wc({},_c.bgcolor,{arrayOk:!0}),bordercolor:wc({},_c.bordercolor,{arrayOk:!0}),font:bX({arrayOk:!0,editType:"none"}),align:wc({},_c.align,{arrayOk:!0}),namelength:wc({},_c.namelength,{arrayOk:!0}),showarrow:wc({},_c.showarrow),editType:"none"}}});var an=B((lme,q6)=>{"use strict";var _X=aa(),wX=Tc();q6.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:_X({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:wX.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Oo=B((ome,L6)=>{"use strict";var TX=zn(),ph={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},S6=ph.RdBu;function MX(e,r){if(r||(r=S6),!e)return r;function t(){try{e=ph[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),C6(e)?e:r}function C6(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";Bo.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Bo.defaultLine="#444";Bo.lightLine="#eee";Bo.background="#fff";Bo.borderLine="#BEC8D9";Bo.lightFraction=100*10/11});var xr=B((ume,D6)=>{"use strict";var nn=zn(),kX=zr(),qX=gn().isTypedArray,na=D6.exports={},mh=Nn();na.defaults=mh.defaults;var SX=na.defaultLine=mh.defaultLine;na.lightLine=mh.lightLine;var Py=na.background=mh.background;na.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};na.rgb=function(e){return na.tinyRGB(nn(e))};na.opacity=function(e){return e?nn(e).getAlpha():0};na.addOpacity=function(e,r){var t=nn(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};na.combine=function(e,r){var t=nn(e).toRgb();if(t.a===1)return nn(e).toRgbString();var a=nn(r||Py).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return nn(i).toRgbString()};na.interpolate=function(e,r,t){var a=nn(e).toRgb(),n=nn(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return nn(i).toRgbString()};na.contrast=function(e,r,t){var a=nn(e);a.getAlpha()!==1&&(a=nn(na.combine(e,Py)));var n=a.isDark()?r?a.lighten(r):Py:t?a.darken(t):SX;return n.toString()};na.stroke=function(e,r){var t=nn(r);e.style({stroke:na.tinyRGB(t),"stroke-opacity":t.getAlpha()})};na.fill=function(e,r){var t=nn(r);e.style({fill:na.tinyRGB(t),"fill-opacity":t.getAlpha()})};na.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var l=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}});var pu=B((fme,E6)=>{"use strict";E6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var mu=B(P6=>{"use strict";P6.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var F6=B(ln=>{"use strict";var Ry=zr(),R6=zn(),z6=mt().extendFlat,CX=an(),LX=Oo(),DX=xr(),EX=pu().DESELECTDIM,yu=ch(),N6=mu().counter,PX=hu().modHalf,Ni=gn().isArrayOrTypedArray,Rl=gn().isTypedArraySpec,zl=gn().decodeTypedArraySpec;ln.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Ni(e)?e:Rl(e)?zl(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;aa.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Rl(e)&&(e=zl(e)),e%1||!Ry(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Rl(e)&&(e=zl(e)),R6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return R6(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(LX.get(e,t))}},angle:{coerceFunction:function(e,r,t){Rl(e)&&(e=zl(e)),e==="auto"?r.set("auto"):Ry(e)?r.set(PX(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||N6(t);if(typeof e=="string"&&n.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!N6(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var I6={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},H6={};function O6(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),O6(a,r[t]))}}O6(I6,H6);B6.exports={configAttributes:I6,dfltConfig:H6}});var Ny=B((dme,Y6)=>{"use strict";var zy=kr(),RX=zr(),Mc=[];Y6.exports=function(e,r){if(Mc.indexOf(e)!==-1)return;Mc.push(e);var t=1e3;RX(r)?t=r:r==="long"&&(t=3e3);var a=zy.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Mc);function i(l){l.duration(700).style("opacity",0).each("end",function(o){var s=Mc.indexOf(o);s!==-1&&Mc.splice(s,1),zy.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var o=zy.select(this);o.append("button").classed("notifier-close",!0).html("×").on("click",function(){o.transition().call(i)});for(var s=o.append("p"),u=l.split(//g),f=0;f{"use strict";var gu=Yo().dfltConfig,Fy=Ny(),Iy=V6.exports={};Iy.log=function(){var e;if(gu.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Iy.warn=function(){var e;if(gu.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Iy.error=function(){var e;if(gu.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var gh=B((mme,G6)=>{"use strict";G6.exports=function(){}});var Hy=B((yme,U6)=>{"use strict";U6.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{W6.exports=zX;function zX(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var J6=B((xme,Z6)=>{Z6.exports=NX;function NX(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var K6=B((bme,$6)=>{$6.exports=FX;function FX(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Oy=B((_me,Q6)=>{Q6.exports=IX;function IX(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var e7=B((wme,j6)=>{j6.exports=HX;function HX(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var t7=B((Tme,r7)=>{r7.exports=OX;function OX(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],p=r[12],m=r[13],y=r[14],b=r[15],_=t*o-a*l,w=t*s-n*l,x=t*u-i*l,M=a*s-n*o,k=a*u-i*o,A=n*u-i*s,C=f*m-c*p,D=f*y-h*p,E=f*b-d*p,R=c*y-h*m,N=c*b-d*m,I=h*b-d*y,H=_*I-w*N+x*R+M*E-k*D+A*C;return H?(H=1/H,e[0]=(o*I-s*N+u*R)*H,e[1]=(n*N-a*I-i*R)*H,e[2]=(m*A-y*k+b*M)*H,e[3]=(h*k-c*A-d*M)*H,e[4]=(s*E-l*I-u*D)*H,e[5]=(t*I-n*E+i*D)*H,e[6]=(y*x-p*A-b*w)*H,e[7]=(f*A-h*x+d*w)*H,e[8]=(l*N-o*E+u*C)*H,e[9]=(a*E-t*N-i*C)*H,e[10]=(p*k-m*x+b*_)*H,e[11]=(c*x-f*k-d*_)*H,e[12]=(o*D-l*R-s*C)*H,e[13]=(t*R-a*D+n*C)*H,e[14]=(m*w-p*M-y*_)*H,e[15]=(f*M-c*w+h*_)*H,e):null}});var n7=B((Mme,a7)=>{a7.exports=BX;function BX(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],p=r[12],m=r[13],y=r[14],b=r[15];return e[0]=o*(h*b-d*y)-c*(s*b-u*y)+m*(s*d-u*h),e[1]=-(a*(h*b-d*y)-c*(n*b-i*y)+m*(n*d-i*h)),e[2]=a*(s*b-u*y)-o*(n*b-i*y)+m*(n*u-i*s),e[3]=-(a*(s*d-u*h)-o*(n*d-i*h)+c*(n*u-i*s)),e[4]=-(l*(h*b-d*y)-f*(s*b-u*y)+p*(s*d-u*h)),e[5]=t*(h*b-d*y)-f*(n*b-i*y)+p*(n*d-i*h),e[6]=-(t*(s*b-u*y)-l*(n*b-i*y)+p*(n*u-i*s)),e[7]=t*(s*d-u*h)-l*(n*d-i*h)+f*(n*u-i*s),e[8]=l*(c*b-d*m)-f*(o*b-u*m)+p*(o*d-u*c),e[9]=-(t*(c*b-d*m)-f*(a*b-i*m)+p*(a*d-i*c)),e[10]=t*(o*b-u*m)-l*(a*b-i*m)+p*(a*u-i*o),e[11]=-(t*(o*d-u*c)-l*(a*d-i*c)+f*(a*u-i*o)),e[12]=-(l*(c*y-h*m)-f*(o*y-s*m)+p*(o*h-s*c)),e[13]=t*(c*y-h*m)-f*(a*y-n*m)+p*(a*h-n*c),e[14]=-(t*(o*y-s*m)-l*(a*y-n*m)+p*(a*s-n*o)),e[15]=t*(o*h-s*c)-l*(a*h-n*c)+f*(a*s-n*o),e}});var l7=B((Ame,i7)=>{i7.exports=YX;function YX(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],c=e[10],h=e[11],d=e[12],p=e[13],m=e[14],y=e[15],b=r*l-t*i,_=r*o-a*i,w=r*s-n*i,x=t*o-a*l,M=t*s-n*l,k=a*s-n*o,A=u*p-f*d,C=u*m-c*d,D=u*y-h*d,E=f*m-c*p,R=f*y-h*p,N=c*y-h*m;return b*N-_*R+w*E+x*D-M*C+k*A}});var s7=B((kme,o7)=>{o7.exports=VX;function VX(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],c=r[8],h=r[9],d=r[10],p=r[11],m=r[12],y=r[13],b=r[14],_=r[15],w=t[0],x=t[1],M=t[2],k=t[3];return e[0]=w*a+x*o+M*c+k*m,e[1]=w*n+x*s+M*h+k*y,e[2]=w*i+x*u+M*d+k*b,e[3]=w*l+x*f+M*p+k*_,w=t[4],x=t[5],M=t[6],k=t[7],e[4]=w*a+x*o+M*c+k*m,e[5]=w*n+x*s+M*h+k*y,e[6]=w*i+x*u+M*d+k*b,e[7]=w*l+x*f+M*p+k*_,w=t[8],x=t[9],M=t[10],k=t[11],e[8]=w*a+x*o+M*c+k*m,e[9]=w*n+x*s+M*h+k*y,e[10]=w*i+x*u+M*d+k*b,e[11]=w*l+x*f+M*p+k*_,w=t[12],x=t[13],M=t[14],k=t[15],e[12]=w*a+x*o+M*c+k*m,e[13]=w*n+x*s+M*h+k*y,e[14]=w*i+x*u+M*d+k*b,e[15]=w*l+x*f+M*p+k*_,e}});var f7=B((qme,u7)=>{u7.exports=GX;function GX(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,c,h,d,p,m,y,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],c=r[5],h=r[6],d=r[7],p=r[8],m=r[9],y=r[10],b=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=m,e[10]=y,e[11]=b,e[12]=l*a+f*n+p*i+r[12],e[13]=o*a+c*n+m*i+r[13],e[14]=s*a+h*n+y*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var v7=B((Sme,c7)=>{c7.exports=UX;function UX(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var d7=B((Cme,h7)=>{h7.exports=WX;function WX(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,c,h,d,p,m,y,b,_,w,x,M,k,A,C,D,E,R,N,I,H,G;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],h=r[1],d=r[2],p=r[3],m=r[4],y=r[5],b=r[6],_=r[7],w=r[8],x=r[9],M=r[10],k=r[11],A=n*n*f+u,C=i*n*f+l*s,D=l*n*f-i*s,E=n*i*f-l*s,R=i*i*f+u,N=l*i*f+n*s,I=n*l*f+i*s,H=i*l*f-n*s,G=l*l*f+u,e[0]=c*A+m*C+w*D,e[1]=h*A+y*C+x*D,e[2]=d*A+b*C+M*D,e[3]=p*A+_*C+k*D,e[4]=c*E+m*R+w*N,e[5]=h*E+y*R+x*N,e[6]=d*E+b*R+M*N,e[7]=p*E+_*R+k*N,e[8]=c*I+m*H+w*G,e[9]=h*I+y*H+x*G,e[10]=d*I+b*H+M*G,e[11]=p*I+_*H+k*G,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var m7=B((Lme,p7)=>{p7.exports=XX;function XX(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+c*a,e[7]=s*n+h*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=c*n-o*a,e[11]=h*n-s*a,e}});var g7=B((Dme,y7)=>{y7.exports=ZX;function ZX(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-c*a,e[3]=s*n-h*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+c*n,e[11]=s*a+h*n,e}});var b7=B((Eme,x7)=>{x7.exports=JX;function JX(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],c=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+c*a,e[3]=s*n+h*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=c*n-o*a,e[7]=h*n-s*a,e}});var w7=B((Pme,_7)=>{_7.exports=$X;function $X(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var M7=B((Rme,T7)=>{T7.exports=KX;function KX(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,c=a*s,h=a*u,d=n*s,p=n*u,m=i*u,y=l*o,b=l*s,_=l*u;return e[0]=1-(d+m),e[1]=c+_,e[2]=h-b,e[3]=0,e[4]=c-_,e[5]=1-(f+m),e[6]=p+y,e[7]=0,e[8]=h+b,e[9]=p-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var k7=B((zme,A7)=>{A7.exports=QX;function QX(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var S7=B((Nme,q7)=>{q7.exports=jX;function jX(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var L7=B((Fme,C7)=>{C7.exports=eZ;function eZ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var E7=B((Ime,D7)=>{D7.exports=rZ;function rZ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var R7=B((Hme,P7)=>{P7.exports=tZ;function tZ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var N7=B((Ome,z7)=>{z7.exports=aZ;function aZ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,c=a*o,h=n*l,d=n*o,p=n*s,m=i*l,y=i*o,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=h-y,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=h+y,e[9]=d-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var I7=B((Bme,F7)=>{F7.exports=nZ;function nZ(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var O7=B((Yme,H7)=>{H7.exports=iZ;function iZ(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var Y7=B((Vme,B7)=>{B7.exports=lZ;function lZ(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var G7=B((Gme,V7)=>{V7.exports=oZ;function oZ(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var W7=B((Ume,U7)=>{var sZ=Oy();U7.exports=uZ;function uZ(e,r,t,a){var n,i,l,o,s,u,f,c,h,d,p=r[0],m=r[1],y=r[2],b=a[0],_=a[1],w=a[2],x=t[0],M=t[1],k=t[2];return Math.abs(p-x)<1e-6&&Math.abs(m-M)<1e-6&&Math.abs(y-k)<1e-6?sZ(e):(f=p-x,c=m-M,h=y-k,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,n=_*h-w*c,i=w*f-b*h,l=b*c-_*f,d=Math.sqrt(n*n+i*i+l*l),d?(d=1/d,n*=d,i*=d,l*=d):(n=0,i=0,l=0),o=c*l-h*i,s=h*n-f*l,u=f*i-c*n,d=Math.sqrt(o*o+s*s+u*u),d?(d=1/d,o*=d,s*=d,u*=d):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=l,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*p+i*m+l*y),e[13]=-(o*p+s*m+u*y),e[14]=-(f*p+c*m+h*y),e[15]=1,e)}});var Z7=B((Wme,X7)=>{X7.exports=fZ;function fZ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var By=B((Xme,J7)=>{J7.exports={create:X6(),clone:J6(),copy:K6(),identity:Oy(),transpose:e7(),invert:t7(),adjoint:n7(),determinant:l7(),multiply:s7(),translate:f7(),scale:v7(),rotate:d7(),rotateX:m7(),rotateY:g7(),rotateZ:b7(),fromRotation:w7(),fromRotationTranslation:M7(),fromScaling:k7(),fromTranslation:S7(),fromXRotation:L7(),fromYRotation:E7(),fromZRotation:R7(),fromQuat:N7(),frustum:I7(),perspective:O7(),perspectiveFromFieldOfView:Y7(),ortho:G7(),lookAt:W7(),str:Z7()}});var xh=B(Ot=>{"use strict";var cZ=By();Ot.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var vZ=kr(),$7=Vo(),hZ=xh(),dZ=By();function pZ(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function mZ(e){var r=vZ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function K7(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function yZ(e,r){Q7("global",e,r)}function Q7(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):$7.warn("addStyleRule failed"):$7.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function gZ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&K7(t)}function xZ(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[l[0]]=l[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[l[0]]=l[1]:f.style[o[0]]=o[1])}),u.setAttribute(s,!0))})}function bZ(e){var r=ew(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=j7(a);if(n){var i=hZ.convertCssMatrix(n);t=dZ.multiply(t,t,i)}}),t}function j7(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function ew(e){for(var r=[];_Z(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function _Z(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function wZ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}rw.exports={getGraphDiv:pZ,isPlotDiv:mZ,removeElement:K7,addStyleRule:yZ,addRelatedStyleRule:Q7,deleteRelatedStyleRule:gZ,setStyleOnHover:xZ,getFullTransformMatrix:bZ,getElementTransformMatrix:j7,getElementAndAncestors:ew,equalDomRects:wZ}});var kc=B(($me,tw)=>{"use strict";tw.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var fi=B((Kme,uw)=>{"use strict";var nw=mt().extendFlat,TZ=Pl(),iw={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},lw={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},MZ=iw.flags.slice().concat(["fullReplot"]),AZ=lw.flags.slice().concat("layoutReplot");uw.exports={traces:iw,layout:lw,traceFlags:function(){return aw(MZ)},layoutFlags:function(){return aw(AZ)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";Yy.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Yy.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Vy=B((jme,fw)=>{"use strict";fw.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var ha=B(qc=>{"use strict";var cw=Vy(),kZ=cw.FORMAT_LINK,qZ=cw.DATE_FORMAT_LINK;function SZ(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,kZ,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,qZ,"for details on the date formatting syntax."].join(" ")}qc.templateFormatStringDescription=SZ;function Gy(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n{"use strict";function Nl(e,r){return r?r.d2l(e):e}function vw(e,r){return r?r.l2d(e):e}function CZ(e){return e.x0}function LZ(e){return e.x1}function DZ(e){return e.y0}function EZ(e){return e.y1}function hw(e){return e.x0shift||0}function dw(e){return e.x1shift||0}function pw(e){return e.y0shift||0}function mw(e){return e.y1shift||0}function bh(e,r){return Nl(e.x1,r)+dw(e)-Nl(e.x0,r)-hw(e)}function _h(e,r,t){return Nl(e.y1,t)+mw(e)-Nl(e.y0,t)-pw(e)}function PZ(e,r){return Math.abs(bh(e,r))}function RZ(e,r,t){return Math.abs(_h(e,r,t))}function zZ(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(bh(e,r),2)+Math.pow(_h(e,r,t),2))}function NZ(e,r){return vw((Nl(e.x1,r)+dw(e)+Nl(e.x0,r)+hw(e))/2,r)}function FZ(e,r,t){return vw((Nl(e.y1,t)+mw(e)+Nl(e.y0,t)+pw(e))/2,t)}function IZ(e,r,t){return e.type!=="line"?void 0:_h(e,r,t)/bh(e,r)}yw.exports={x0:CZ,x1:LZ,y0:DZ,y1:EZ,slope:IZ,dx:bh,dy:_h,width:PZ,height:RZ,length:zZ,xcenter:NZ,ycenter:FZ}});var bw=B((tye,xw)=>{"use strict";var HZ=fi().overrideAll,Go=an(),gw=aa(),OZ=ci().dash,Fl=mt().extendFlat,BZ=ha().shapeTexttemplateAttrs,YZ=wh();xw.exports=HZ({newshape:{visible:Fl({},Go.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Fl({},Go.legend,{}),legendgroup:Fl({},Go.legendgroup,{}),legendgrouptitle:{text:Fl({},Go.legendgrouptitle.text,{}),font:gw({})},legendrank:Fl({},Go.legendrank,{}),legendwidth:Fl({},Go.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Fl({},OZ,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Fl({},Go.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:BZ({newshape:!0},{keys:Object.keys(YZ)}),font:gw({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var ww=B((aye,_w)=>{"use strict";var VZ=ci().dash,GZ=mt().extendFlat;_w.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:GZ({},VZ,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Th=B((nye,Tw)=>{"use strict";Tw.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var xu=B((iye,qw)=>{"use strict";var Uy=aa(),UZ=kc(),Mh=Nn(),Mw=bw(),Aw=ww(),WZ=Th(),kw=mt().extendFlat,Ah=Uy({editType:"calc"});Ah.family.dflt='"Open Sans", verdana, arial, sans-serif';Ah.size.dflt=12;Ah.color.dflt=Mh.defaultLine;qw.exports={font:Ah,title:{text:{valType:"string",editType:"layoutstyle"},font:Uy({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Uy({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:kw(WZ({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Mh.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Mh.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Mh.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:Mw.newshape,activeshape:Mw.activeshape,newselection:Aw.newselection,activeselection:Aw.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:kw({},UZ.transition,{editType:"none"})}});var Sw=B(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var yr=B(Fr=>{"use strict";var bu=Vo(),Cw=gh(),Lw=Hy(),XZ=Pl(),ZZ=Ac().addStyleRule,Dw=mt(),JZ=an(),$Z=xu(),KZ=Dw.extendFlat,Wy=Dw.extendDeepAll;Fr.modules={};Fr.allCategories={};Fr.allTypes=[];Fr.subplotsRegistry={};Fr.componentsRegistry={};Fr.layoutArrayContainers=[];Fr.layoutArrayRegexes=[];Fr.traceLayoutAttributes={};Fr.localeRegistry={};Fr.apiMethodRegistry={};Fr.collectableSubplotTypes=null;Fr.register=function(r){if(Fr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var aJ=cu().timeFormat,Yw=zr(),Xy=Vo(),Hl=hu().mod,Tu=Mt(),Fn=Tu.BADNUM,on=Tu.ONEDAY,Sc=Tu.ONEHOUR,Il=Tu.ONEMIN,wu=Tu.ONESEC,Cc=Tu.EPOCHJD,il=yr(),Nw=cu().utcFormat,nJ=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,iJ=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Fw=new Date().getFullYear()-70;function ll(e){return e&&il.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Bt.dateTick0=function(e,r){var t=lJ(e,!!r);if(r<2)return t;var a=Bt.dateTime2ms(t,e);return a+=on*(r-1),Bt.ms2DateTime(a,0,e)};function lJ(e,r){return ll(e)?r?il.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:il.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Bt.dfltRange=function(e){return ll(e)?il.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Bt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var qh,Sh;Bt.dateTime2ms=function(e,r){if(Bt.isJSDate(e)){var t=e.getTimezoneOffset()*Il,a=(e.getUTCMinutes()-e.getMinutes())*Il+(e.getUTCSeconds()-e.getSeconds())*wu+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Il;t=t-n/2+Hl(a-t+n/2,n)}return e=Number(e)-t,e>=qh&&e<=Sh?e:Fn}if(typeof e!="string"&&typeof e!="number")return Fn;e=String(e);var i=ll(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.substr(1),r="");var o=i&&r.substr(0,7)==="chinese",s=e.match(o?iJ:nJ);if(!s)return Fn;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return Fn;u=Number(u);var m;try{var y=il.getComponentMethod("calendars","getCal")(r);if(o){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=y.newDate(u,y.toMonthIndex(u,f,b),c)}else m=y.newDate(u,Number(f),c)}catch(w){return Fn}return m?(m.toJD()-Cc)*on+h*Sc+d*Il+p*wu:Fn}u.length===2?u=(Number(u)+2e3-Fw)%100+Fw:u=Number(u),f-=1;var _=new Date(Date.UTC(2e3,f,c,h,d));return _.setUTCFullYear(u),_.getUTCMonth()!==f||_.getUTCDate()!==c?Fn:_.getTime()+p*wu};qh=Bt.MIN_MS=Bt.dateTime2ms("-9999");Sh=Bt.MAX_MS=Bt.dateTime2ms("9999-12-31 23:59:59.9999");Bt.isDateTime=function(e,r){return Bt.dateTime2ms(e,r)!==Fn};function _u(e,r){return String(e+Math.pow(10,r)).substr(1)}var kh=90*on,Iw=3*Sc,Hw=5*Il;Bt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=qh&&e<=Sh))return Fn;r||(r=0);var a=Math.floor(Hl(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(ll(t)){var c=Math.floor(n/on)+Cc,h=Math.floor(Hl(e,on));try{i=il.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=Nw("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;l=r=qh+on&&e<=Sh-on))return Fn;var r=Math.floor(Hl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=aJ("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return Vw(a,n,i,l,o)};function Vw(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+_u(r,2)+":"+_u(t,2),(a||n)&&(e+=":"+_u(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+_u(n,i)}return e}Bt.cleanDate=function(e,r,t){if(e===Fn)return r;if(Bt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(ll(t))return Xy.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Bt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Bt.isDateTime(e,t))return Xy.error("unrecognized date",e),r;return e};var oJ=/%\d?f/g,sJ=/%h/g,uJ={1:"1",2:"1",3:"2",4:"2"};function Ow(e,r,t,a){e=e.replace(oJ,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).substr(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(sJ,function(){return uJ[t("%q")(n)]}),ll(a))try{e=il.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var fJ=[59,59.9,59.99,59.999,59.9999];function cJ(e,r){var t=Hl(e+.05,on),a=_u(Math.floor(t/Sc),2)+":"+_u(Hl(Math.floor(t/Il),60),2);if(r!=="M"){Yw(r)||(r=0);var n=Math.min(Hl(e/wu,60),fJ[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Bt.formatDate=function(e,r,t,a,n,i){if(n=ll(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return cJ(e,t)+` +`+Ow(i.dayMonthYear,e,a,n);return Ow(r,e,a,n)};var Bw=3*on;Bt.incrementMonth=function(e,r,t){t=ll(t)&&t;var a=Hl(e,on);if(e=Math.round(e-a),t)try{var n=Math.round(e/on)+Cc,i=il.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-Cc)*on+a}catch(s){Xy.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+Bw);return o.setUTCMonth(o.getUTCMonth()+r)+a-Bw};Bt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=ll(r)&&il.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";Uw.exports=function(r){return r}});var $y=B(ol=>{"use strict";var vJ=zr(),hJ=Vo(),dJ=Zy(),pJ=Mt().BADNUM,Jy=1e-9;ol.findBin=function(e,r,t){if(vJ(r.start))return t?Math.ceil((e-r.start)/r.size-Jy)-1:Math.floor((e-r.start)/r.size+Jy);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?mJ:yJ:s=t?xJ:gJ,e+=l*Jy*(t?-1:1)*(l>=0?1:-1);a90&&hJ.log("Long binary search..."),a-1};function mJ(e,r){return er}function xJ(e,r){return e>=r}ol.sorterAsc=function(e,r){return e-r};ol.sorterDes=function(e,r){return r-e};ol.distinctVals=function(e){var r=e.slice();r.sort(ol.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===pJ;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};ol.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};ol.findIndexOfMin=function(e,r){r=r||dJ;for(var t=1/0,a,n=0;n{"use strict";Ww.exports=function(r){return Object.keys(r).sort()}});var Xw=B(Yt=>{"use strict";var Lc=zr(),bJ=gn().isArrayOrTypedArray;Yt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Lc(r)||(r=!1),bJ(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var Qw=B((dye,Kw)=>{"use strict";var Zw=hu(),Qy=Zw.mod,_J=Zw.modHalf,Dc=Math.PI,Ol=2*Dc;function wJ(e){return e/180*Dc}function TJ(e){return e/Dc*180}function jy(e){return Math.abs(e[1]-e[0])>Ol-1e-14}function Jw(e,r){return _J(r-e,Ol)}function MJ(e,r){return Math.abs(Jw(e,r))}function $w(e,r){if(jy(r))return!0;var t,a;r[0]a&&(a+=Ol);var n=Qy(e,Ol),i=n+Ol;return n>=t&&n<=a||i>=t&&i<=a}function AJ(e,r,t,a){if(!$w(r,a))return!1;var n,i;return t[0]=n&&e<=i}function eg(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=jy([t,a]),s,u,f,c,h;o?(s=0,u=Dc,f=Ol):t{"use strict";Uo.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Uo.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Uo.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Uo.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Uo.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Uo.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var t8=B(Wo=>{"use strict";var rg=hu().mod;Wo.segmentsIntersect=r8;function r8(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,c=a-r,h=i-r,d=o-i,p=s*d-f*c;if(p===0)return null;var m=(u*d-f*h)/p,y=(u*c-s*h)/p;return y<0||y>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}Wo.segmentDistance=function(r,t,a,n,i,l,o,s){if(r8(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,c=o-i,h=s-l,d=u*u+f*f,p=c*c+h*h,m=Math.min(Ch(u,f,d,i-r,l-t),Ch(u,f,d,o-r,s-t),Ch(c,h,p,r-i,t-l),Ch(c,h,p,a-i,n-l));return Math.sqrt(m)};function Ch(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var Lh,tg,e8;Wo.getTextLocation=function(r,t,a,n){if((r!==tg||n!==e8)&&(Lh={},tg=r,e8=n),Lh[a])return Lh[a];var i=r.getPointAtLength(rg(a-n/2,t)),l=r.getPointAtLength(rg(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(rg(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,c={x:u,y:f,theta:o};return Lh[a]=c,c};Wo.clearLocationCache=function(){tg=null};Wo.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,c,h;function d(m){var y=r.getPointAtLength(m);m===0?c=y:m===u&&(h=y);var b=y.xi?y.x-i:0,_=y.yo?y.y-o:0;return Math.sqrt(b*b+_*_)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};Wo.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,h,d,p;u0?c=h:f=h,u++}return d}});var Dh=B(Ec=>{"use strict";var sl={};Ec.throttle=function(r,t,a){var n=sl[r],i=Date.now();if(!n){for(var l in sl)sl[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};Ec.done=function(e){var r=sl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Ec.clear=function(e){if(e)a8(sl[e]),delete sl[e];else for(var r in sl)Ec.clear(r)};function a8(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var i8=B((gye,n8)=>{"use strict";n8.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var l8=B((xye,Eh)=>{"use strict";Eh.exports=ag;Eh.exports.isMobile=ag;Eh.exports.default=ag;var CJ=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,LJ=/CrOS/,DJ=/android|ipad|playbook|silk/i;function ag(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=CJ.test(r)&&!LJ.test(r)||!!e.tablet&&DJ.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var s8=B((bye,o8)=>{"use strict";var EJ=zr(),PJ=l8();o8.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=RJ(),typeof t!="string")return!0;var a=PJ({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;o--){var s=n[o];if(s.substr(0,8)==="Version/"){var u=s.substr(8).split(".")[0];if(EJ(u)&&(u=+u),u>=13)return!0}}}return a};function RJ(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var f8=B((_ye,u8)=>{"use strict";var zJ=kr();u8.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=zJ.select(this)}),n}});var v8=B((wye,c8)=>{"use strict";var NJ=yr();c8.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=NJ.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var d8=B((Tye,h8)=>{"use strict";h8.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";p8.exports=function(r){for(var t=HJ(r)?IJ:FJ,a=[],n=0;n{"use strict";y8.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var b8=B((kye,x8)=>{"use strict";var OJ=zr(),BJ=Mt().BADNUM,YJ=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;x8.exports=function(r){return typeof r=="string"&&(r=r.replace(YJ,"")),OJ(r)?Number(r):BJ}});var Pe=B((qye,P8)=>{"use strict";var Pc=kr(),VJ=cu().utcFormat,GJ=Ay().format,k8=zr(),q8=Mt(),S8=q8.FP_SAFE,UJ=-S8,_8=q8.BADNUM,pe=P8.exports={};pe.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var w8={};pe.warnBadFormat=function(e){var r=String(e);w8[r]||(w8[r]=1,pe.warn('encountered bad format: "'+r+'"'))};pe.noFormat=function(e){return String(e)};pe.numberFormat=function(e){var r;try{r=GJ(pe.adjustFormat(e))}catch(t){return pe.warnBadFormat(e),pe.noFormat}return r};pe.nestedProperty=ch();pe.keyedContainer=v6();pe.relativeAttr=d6();pe.isPlainObject=Pl();pe.toLogRange=hh();pe.relinkPrivateKeys=g6();var Bl=gn();pe.isArrayBuffer=Bl.isArrayBuffer;pe.isTypedArray=Bl.isTypedArray;pe.isArrayOrTypedArray=Bl.isArrayOrTypedArray;pe.isArray1D=Bl.isArray1D;pe.ensureArray=Bl.ensureArray;pe.concat=Bl.concat;pe.maxRowLength=Bl.maxRowLength;pe.minRowLength=Bl.minRowLength;var C8=hu();pe.mod=C8.mod;pe.modHalf=C8.modHalf;var Yl=F6();pe.valObjectMeta=Yl.valObjectMeta;pe.coerce=Yl.coerce;pe.coerce2=Yl.coerce2;pe.coerceFont=Yl.coerceFont;pe.coercePattern=Yl.coercePattern;pe.coerceHoverinfo=Yl.coerceHoverinfo;pe.coerceSelectionMarkerOpacity=Yl.coerceSelectionMarkerOpacity;pe.validate=Yl.validate;var xn=Gw();pe.dateTime2ms=xn.dateTime2ms;pe.isDateTime=xn.isDateTime;pe.ms2DateTime=xn.ms2DateTime;pe.ms2DateTimeLocal=xn.ms2DateTimeLocal;pe.cleanDate=xn.cleanDate;pe.isJSDate=xn.isJSDate;pe.formatDate=xn.formatDate;pe.incrementMonth=xn.incrementMonth;pe.dateTick0=xn.dateTick0;pe.dfltRange=xn.dfltRange;pe.findExactDates=xn.findExactDates;pe.MIN_MS=xn.MIN_MS;pe.MAX_MS=xn.MAX_MS;var Xo=$y();pe.findBin=Xo.findBin;pe.sorterAsc=Xo.sorterAsc;pe.sorterDes=Xo.sorterDes;pe.distinctVals=Xo.distinctVals;pe.roundUp=Xo.roundUp;pe.sort=Xo.sort;pe.findIndexOfMin=Xo.findIndexOfMin;pe.sortObjectKeys=Ky();var ul=Xw();pe.aggNums=ul.aggNums;pe.len=ul.len;pe.mean=ul.mean;pe.geometricMean=ul.geometricMean;pe.median=ul.median;pe.midRange=ul.midRange;pe.variance=ul.variance;pe.stdev=ul.stdev;pe.interp=ul.interp;var vi=xh();pe.init2dArray=vi.init2dArray;pe.transposeRagged=vi.transposeRagged;pe.dot=vi.dot;pe.translationMatrix=vi.translationMatrix;pe.rotationMatrix=vi.rotationMatrix;pe.rotationXYMatrix=vi.rotationXYMatrix;pe.apply3DTransform=vi.apply3DTransform;pe.apply2DTransform=vi.apply2DTransform;pe.apply2DTransform2=vi.apply2DTransform2;pe.convertCssMatrix=vi.convertCssMatrix;pe.inverseTransformMatrix=vi.inverseTransformMatrix;var Fi=Qw();pe.deg2rad=Fi.deg2rad;pe.rad2deg=Fi.rad2deg;pe.angleDelta=Fi.angleDelta;pe.angleDist=Fi.angleDist;pe.isFullCircle=Fi.isFullCircle;pe.isAngleInsideSector=Fi.isAngleInsideSector;pe.isPtInsideSector=Fi.isPtInsideSector;pe.pathArc=Fi.pathArc;pe.pathSector=Fi.pathSector;pe.pathAnnulus=Fi.pathAnnulus;var Au=jw();pe.isLeftAnchor=Au.isLeftAnchor;pe.isCenterAnchor=Au.isCenterAnchor;pe.isRightAnchor=Au.isRightAnchor;pe.isTopAnchor=Au.isTopAnchor;pe.isMiddleAnchor=Au.isMiddleAnchor;pe.isBottomAnchor=Au.isBottomAnchor;var ku=t8();pe.segmentsIntersect=ku.segmentsIntersect;pe.segmentDistance=ku.segmentDistance;pe.getTextLocation=ku.getTextLocation;pe.clearLocationCache=ku.clearLocationCache;pe.getVisibleSegment=ku.getVisibleSegment;pe.findPointOnPath=ku.findPointOnPath;var zh=mt();pe.extendFlat=zh.extendFlat;pe.extendDeep=zh.extendDeep;pe.extendDeepAll=zh.extendDeepAll;pe.extendDeepNoArrays=zh.extendDeepNoArrays;var ng=Vo();pe.log=ng.log;pe.warn=ng.warn;pe.error=ng.error;var WJ=mu();pe.counterRegex=WJ.counter;var ig=Dh();pe.throttle=ig.throttle;pe.throttleDone=ig.done;pe.clearThrottle=ig.clear;var hi=Ac();pe.getGraphDiv=hi.getGraphDiv;pe.isPlotDiv=hi.isPlotDiv;pe.removeElement=hi.removeElement;pe.addStyleRule=hi.addStyleRule;pe.addRelatedStyleRule=hi.addRelatedStyleRule;pe.deleteRelatedStyleRule=hi.deleteRelatedStyleRule;pe.setStyleOnHover=hi.setStyleOnHover;pe.getFullTransformMatrix=hi.getFullTransformMatrix;pe.getElementTransformMatrix=hi.getElementTransformMatrix;pe.getElementAndAncestors=hi.getElementAndAncestors;pe.equalDomRects=hi.equalDomRects;pe.clearResponsive=i8();pe.preserveDrawingBuffer=s8();pe.makeTraceGroups=f8();pe._=v8();pe.notifier=Ny();pe.filterUnique=d8();pe.filterVisible=m8();pe.pushUnique=Hy();pe.increment=g8();pe.cleanNumber=b8();pe.ensureNumber=function(r){return k8(r)?(r=Number(r),r>S8||r=r?!1:k8(e)&&e>=0&&e%1===0};pe.noop=gh();pe.identity=Zy();pe.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};pe.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};pe.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o=Math.pow(2,t)?n>10?(pe.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};pe.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};pe.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),l=new Array(t),o,s,u,f;for(o=0;o=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];l[o]=f}return l};pe.syncOrAsync=function(e,r,t){var a,n;function i(){return pe.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};pe.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};pe.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};pe.fillArray=function(e,r,t,a){if(a=a||pe.identity,pe.isArrayOrTypedArray(e))for(var n=0;nJJ.test(window.navigator.userAgent);var $J=/Firefox\/(\d+)\.\d+/;pe.getFirefoxVersion=function(){var e=$J.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};pe.isD3Selection=function(e){return e instanceof Pc.selection};pe.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};pe.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};pe.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};pe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var E8=/^\w*$/;pe.templateString=function(e,r){var t={};return e.replace(pe.TEMPLATE_STRING_REGEX,function(a,n){var i;return E8.test(n)?i=r[n]:(t[n]=t[n]||pe.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var jJ={max:10,count:0,name:"hovertemplate"};pe.hovertemplateString=function(){return lg.apply(jJ,arguments)};var e$={max:10,count:0,name:"texttemplate"};pe.texttemplateString=function(){return lg.apply(e$,arguments)};var r$=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function t$(e){var r=e.match(r$);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var a$={max:10,count:0,name:"texttemplate",parseMultDiv:!0};pe.texttemplateStringForShapes=function(){return lg.apply(a$,arguments)};var T8=/^[:|\|]/;function lg(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(pe.TEMPLATE_STRING_REGEX,function(i,l,o){var s=l==="xother"||l==="yother",u=l==="_xother"||l==="_yother",f=l==="_xother_"||l==="_yother_",c=l==="xother_"||l==="yother_",h=s||u||c||f,d=l;(u||f)&&(d=d.substring(1)),(c||f)&&(d=d.substring(0,d.length-1));var p=null,m=null;if(a.parseMultDiv){var y=t$(d);d=y.key,p=y.op,m=y.number}var b;if(h){if(b=r[d],b===void 0)return""}else{var _,w;for(w=3;w=Rh&&l<=M8,u=o>=Rh&&o<=M8;if(s&&(a=10*a+l-Rh),u&&(n=10*n+o-Rh),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var Mu=2e9;pe.seedPseudoRandom=function(){Mu=2e9};pe.pseudoRandom=function(){var e=Mu;return Mu=(69069*Mu+1)%4294967296,Math.abs(Mu-e)<429496729?pe.pseudoRandom():Mu/4294967296};pe.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=pe.extractOption(e,r,"htx","hovertext");if(pe.isValidTextValue(n))return a(n);var i=pe.extractOption(e,r,"tx","text");if(pe.isValidTextValue(i))return a(i)};pe.isValidTextValue=function(e){return e||e===0};pe.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,pe.strTranslate(n-u*(t+l),i-u*(a+o))+pe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};pe.setTransormAndDisplay=function(e,r){e.attr("transform",pe.getTextTransform(r)),e.style("display",r.scale?null:"none")};pe.ensureUniformFontSize=function(e,r){var t=pe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};pe.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};pe.bigFont=function(e){return Math.round(1.2*e)};var A8=pe.getFirefoxVersion(),n$=A8!==null&&A8<86;pe.getPositionFromD3Event=function(){return n$?[Pc.event.layerX,Pc.event.layerY]:[Pc.event.offsetX,Pc.event.offsetY]}});var N8=B(()=>{"use strict";var i$=Pe(),R8={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(og in R8)z8=og.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),i$.addStyleRule(z8,R8[og]);var z8,og});var sg=B((Lye,F8)=>{F8.exports=!0});var fg=B((Dye,I8)=>{"use strict";var l$=sg(),ug;typeof window.matchMedia=="function"?ug=!window.matchMedia("(hover: none)").matches:ug=l$;I8.exports=ug});var Ih=B((Eye,cg)=>{"use strict";var qu=typeof Reflect=="object"?Reflect:null,H8=qu&&typeof qu.apply=="function"?qu.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Nh;qu&&typeof qu.ownKeys=="function"?Nh=qu.ownKeys:Object.getOwnPropertySymbols?Nh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Nh=function(r){return Object.getOwnPropertyNames(r)};function o$(e){console&&console.warn&&console.warn(e)}var B8=Number.isNaN||function(r){return r!==r};function yt(){yt.init.call(this)}cg.exports=yt;cg.exports.once=c$;yt.EventEmitter=yt;yt.prototype._events=void 0;yt.prototype._eventsCount=0;yt.prototype._maxListeners=void 0;var O8=10;function Fh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(yt,"defaultMaxListeners",{enumerable:!0,get:function(){return O8},set:function(e){if(typeof e!="number"||e<0||B8(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");O8=e}});yt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};yt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||B8(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function Y8(e){return e._maxListeners===void 0?yt.defaultMaxListeners:e._maxListeners}yt.prototype.getMaxListeners=function(){return Y8(this)};yt.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")H8(s,this,t);else for(var u=s.length,f=X8(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,o$(o)}return e}yt.prototype.addListener=function(r,t){return V8(this,r,t,!1)};yt.prototype.on=yt.prototype.addListener;yt.prototype.prependListener=function(r,t){return V8(this,r,t,!0)};function s$(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function G8(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=s$.bind(a);return n.listener=t,a.wrapFn=n,n}yt.prototype.once=function(r,t){return Fh(t),this.on(r,G8(this,r,t)),this};yt.prototype.prependOnceListener=function(r,t){return Fh(t),this.prependListener(r,G8(this,r,t)),this};yt.prototype.removeListener=function(r,t){var a,n,i,l,o;if(Fh(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():u$(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};yt.prototype.off=yt.prototype.removeListener;yt.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function U8(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?f$(n):X8(n,n.length)}yt.prototype.listeners=function(r){return U8(this,r,!0)};yt.prototype.rawListeners=function(r){return U8(this,r,!1)};yt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):W8.call(e,r)};yt.prototype.listenerCount=W8;function W8(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}yt.prototype.eventNames=function(){return this._eventsCount>0?Nh(this._events):[]};function X8(e,r){for(var t=new Array(r),a=0;a{"use strict";var vg=Ih().EventEmitter,h$={init:function(e){if(e._ev instanceof vg)return e;var r=new vg,t=new vg;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function l(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var o;for(o=0;o{"use strict";var $8=Pe(),d$=Yo().dfltConfig;function p$(e,r){for(var t=[],a,n=0;nd$.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};fl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};fl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};fl.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";j8.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Lu=B(Qt=>{"use strict";var In=yr(),zc=Pe(),Oh=an(),dg=xu(),m$=hg(),y$=kc(),g$=Yo().configAttributes,e9=fi(),di=zc.extendDeepAll,Su=zc.isPlainObject,x$=zc.isArrayOrTypedArray,Bh=zc.nestedProperty,b$=zc.valObjectMeta,pg="_isSubplotObj",Yh="_isLinkedToArray",_$="_arrayAttrRegexps",t9="_deprecated",mg=[pg,Yh,_$,t9];Qt.IS_SUBPLOT_OBJ=pg;Qt.IS_LINKED_TO_ARRAY=Yh;Qt.DEPRECATED=t9;Qt.UNDERSCORE_ATTRS=mg;Qt.get=function(){var e={};return In.allTypes.forEach(function(r){e[r]=T$(r)}),{defs:{valObjects:b$,metaKeys:mg.concat(["description","role","editType","impliedEdits"]),editType:{traces:e9.traces,layout:e9.layout},impliedEdits:{}},traces:e,layout:M$(),frames:A$(),animation:Cu(y$),config:Cu(g$)}};Qt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(mg.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!Qt.isValObject(l)&&Su(l)&&i!=="impliedEdits"&&Qt.crawl(l,r,n+1,o)}})};Qt.isValObject=function(e){return e&&e.valType!==void 0};Qt.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&o(n,0,"")}function o(s,u,f){var c=s[t[u]],h=f+t[u];if(u===t.length-1)x$(c)&&r.push(i+h);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!Hh(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function Hh(e){return e===Math.round(e)&&e>=0}function T$(e){var r,t;r=In.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=di({},Oh),i=di({},r.attributes);Qt.crawl(i,function(s,u,f,c,h){Bh(n,h).set(void 0),s===void 0&&Bh(i,h).set(void 0)}),di(a,n),In.traceIs(e,"noOpacity")&&delete a.opacity,In.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),In.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,di(a,i),t.attributes&&di(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Cu(a)};if(r.layoutAttributes){var o={};di(o,r.layoutAttributes),l.layoutAttributes=Cu(o)}return r.animatable||Qt.crawl(l,function(s){Qt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function M$(){var e={},r,t;di(e,dg);for(r in In.subplotsRegistry)if(t=In.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Du=Pe(),L$=an(),Vl="templateitemname",yg={name:{valType:"string",editType:"none"}};yg[Vl]={valType:"string",editType:"calc"};Zo.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=yg.name,r[Vl]=yg[Vl],r};Zo.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Du.coerce(i,{},L$,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};Zo.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Du.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Zo.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[i9(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},c=f[Vl]=u[Vl];if(!n9(c))return f._template=n,f;for(var h=0;h=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][Vl]=i)}s();function u(d,p){o[d]=p}function f(d,p){i?Du.nestedProperty(o[l],d).set(p):o[l+"."+d]=p}function c(){var d=o;return s(),d}function h(d,p){d&&f(d,p);var m=c();for(var y in m)Du.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var Aa=B((Iye,l9)=>{"use strict";var Nc=mu().counter;l9.exports={idRegex:{x:Nc("x","( domain)?"),y:Nc("y","( domain)?")},attrRegex:Nc("[xy]axis"),xAxisMatch:Nc("xaxis"),yAxisMatch:Nc("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Ut=B(sn=>{"use strict";var D$=yr(),gg=Aa();sn.id2name=function(r){if(!(typeof r!="string"||!r.match(gg.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};sn.name2id=function(r){if(r.match(gg.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};sn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(gg.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};sn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=sn.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};sn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function o9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function E$(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function P$(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}s9.exports={clearOutlineControllers:E$,clearOutline:P$}});var Vh=B((Bye,u9)=>{"use strict";u9.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var xg=B(Uh=>{"use strict";var Gh=yr(),Yye=Aa().SUBPLOT_PATTERN;Uh.getSubplotCalcData=function(e,r,t){var a=Gh.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var R$=yr(),Eu=Pe();Jo.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=Jo.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){f9(e,l,n.cache),n.check=function(){if(i){var f=f9(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Eu.isPlainObject(i)?bg(i,r,l,a+1):r(l,n,i)}})}});var Pt=B((Uye,q9)=>{"use strict";var b9=kr(),N$=cu().timeFormatLocale,F$=Ay().formatLocale,Fc=zr(),I$=ky(),Zr=yr(),_9=Lu(),H$=ot(),ur=Pe(),w9=xr(),d9=Mt().BADNUM,un=Ut(),O$=Gl().clearOutline,B$=Vh(),_g=kc(),Y$=hg(),V$=xg().getModuleCalcData,p9=ur.relinkPrivateKeys,$o=ur._,Ke=q9.exports={};ur.extendFlat(Ke,Zr);Ke.attributes=an();Ke.attributes.type.values=Ke.allTypes;Ke.fontAttrs=aa();Ke.layoutAttributes=xu();var Xh=h9();Ke.executeAPICommand=Xh.executeAPICommand;Ke.computeAPICommandBindings=Xh.computeAPICommandBindings;Ke.manageCommandObserver=Xh.manageCommandObserver;Ke.hasSimpleAPICommandBindings=Xh.hasSimpleAPICommandBindings;Ke.redrawText=function(e){return e=ur.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Zr.getComponentMethod("annotations","draw")(e),Zr.getComponentMethod("legend","draw")(e),Zr.getComponentMethod("colorbar","draw")(e),r(Ke.previousPromises(e)))},300)})};Ke.resize=function(e){e=ur.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||ur.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ur.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Zr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Ke.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Ke.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=ur.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:w9.defaultLine,"pointer-events":"all"}).each(function(){var u=b9.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),l=t.select(".js-link-spacer"),o=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&G$(e,i),l.text(i.text()&&o.text()?" - ":"")}};function G$(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){Ke.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}Ke.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=b9.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=Ke.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var U$=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],W$=["year","month","dayMonth","dayMonthYear"];Ke.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Ke.createTransitionData(e),n._dfltTitle={plot:$o(e,"Click to enter Plot title"),subtitle:$o(e,"Click to enter Plot subtitle"),x:$o(e,"Click to enter X axis title"),y:$o(e,"Click to enter Y axis title"),colorbar:$o(e,"Click to enter Colorscale title"),annotation:$o(e,"new text")},n._traceWord=$o(e,"trace");var h=m9(e,U$);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;Ke.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=p),Ke.sanitizeMargins(n)}else{Ke.supplyLayoutGlobalDefaults(i,n,h);var m=!i.width||!i.height,y=n.autosize,b=f.autosizable,_=m&&(y||b);_?Ke.plotAutoSize(e,i,n):m&&Ke.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=J$(h,n.separators),n._extraFormat=m9(e,W$),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=Z$(),x=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=X$(l,s),Ke.supplyDataDefaults(s,o,i,n);var k=Object.keys(x.x),A=Object.keys(x.y);if(k.length>1&&A.length>1){for(Zr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&A.length>15&&n.shapes.length===0&&n.images.length===0,Ke.linkSubplots(o,n,l,a),Ke.cleanPlot(o,n,l,a);var N=!!(a._has&&a._has("cartesian")),I=!!(n._has&&n._has("cartesian")),H=N,G=I;H&&!G?a._bgLayer.remove():G&&!H&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&O$({_fullLayout:a}),$$(o,n),p9(n,a),Zr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var W=n._tracePreGUI,Y={},O;for(O in W)Y[O]="old";for(c=0;c0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var c=Ke.layoutAttributes.width.min,h=Ke.layoutAttributes.height.min;l1,p=!t.height&&Math.abs(a.height-o)>1;(p||d)&&(d&&(a.width=l),p&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),Ke.sanitizeMargins(a)};Ke.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Zr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Zr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Zr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(ur.subplotSort);for(o=0;o1&&(t.l/=y,t.r/=y)}if(h){var b=(t.t+t.b)/h;b>1&&(t.t/=b,t.b/=b)}var _=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:_,size:t.l+m},r:{val:w,size:t.r+m},b:{val:M,size:t.b+m},t:{val:x,size:t.t+m}},p[r]=1}if(!a._replotting)return Ke.doAutoMargin(e)}};function Q$(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=un.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Ke.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),T9(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=ur.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,h=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var b=e._fullLayout._reservedMargin;for(var _ in b)for(var w in b[_]){var x=b[_][w];l[w]=Math.max(l[w],x)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var M in l){var k=0;for(var A in h)A!=="base"&&Fc(h[A][M].size)&&(k=h[A][M].size>k?h[A][M].size:k);var C=Math.max(0,i[M]-k);l[M]=Math.max(0,l[M]-C)}for(var D in h){var E=h[D].l||{},R=h[D].b||{},N=E.val,I=E.size,H=R.val,G=R.size,W=t-l.r-l.l,Y=a-l.t-l.b;for(var O in h){if(Fc(I)&&h[O].r){var V=h[O].r.val,Z=h[O].r.size;if(V>N){var $=(I*V+(Z-W)*N)/(V-N),te=(Z*(1-N)+(I-W)*(1-V))/(V-N);$+te>s+u&&(s=$,u=te)}}if(Fc(G)&&h[O].t){var le=h[O].t.val,fe=h[O].t.size;if(le>H){var he=(G*le+(fe-Y)*H)/(le-H),Q=(fe*(1-H)+(G-Y)*(1-le))/(le-H);he+Q>c+f&&(c=he,f=Q)}}}}}var qe=ur.constrain(t-i.l-i.r,M9,p),ve=ur.constrain(a-i.t-i.b,A9,m),Ae=Math.max(0,t-qe),se=Math.max(0,a-ve);if(Ae){var be=(s+u)/Ae;be>1&&(s/=be,u/=be)}if(se){var U=(c+f)/se;U>1&&(c/=U,f/=U)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(c)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Ke.didMarginChange(o,n)||Q$(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var j=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Ke.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&Ke.supplyDefaults(e);var l=n?e._fullData:e.data,o=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(ur.isPlainObject(h)){var p={},m;return Object.keys(h).sort().forEach(function(w){if(["_","["].indexOf(w.charAt(0))===-1){if(typeof h[w]=="function"){d&&(p[w]="_function");return}if(t==="keepdata"){if(w.substr(w.length-3)==="src")return}else if(t==="keepstream"){if(m=h[w+"src"],typeof m=="string"&&m.indexOf(":")>0&&!ur.isPlainObject(h.stream))return}else if(t!=="keepall"&&(m=h[w+"src"],typeof m=="string"&&m.indexOf(":")>0))return;p[w]=u(h[w],d)}}),p}var y=Array.isArray(h),b=ur.isTypedArray(h);if((y||b)&&h.dtype&&h.shape){var _=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:ur.isArrayBuffer(_)?I$.encode(_):_},d)}return y?h.map(function(w){return u(w,d)}):b?ur.simpleMap(h,ur.identity):ur.isJSDate(h)?ur.ms2DateTimeLocal(+h):h}var f={data:(l||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(o),n)){var c=o._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};Ke.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Zr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function p(){return h++,function(){d++,!a&&d===h&&o(c)}}t.runFn(p),setTimeout(p())})}function o(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Zr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Ke.previousPromises,s,t.prepareFn,Ke.rehover,Ke.reselect,l],f=ur.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Ke.doCalcdata=function(e,r){var t=un.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;o=0;s--)if(M[s].enabled){i._indexToPoints=M[s]._indexToPoints;break}l&&l.calc&&(x=l.calc(e,i))}(!Array.isArray(x)||!x[0])&&(x=[{x:d9,y:d9}]),x[0].t||(x[0].t={}),x[0].trace=i,u[_]=x}}for(g9(t,a,n),o=0;o{"use strict";Ko.xmlns="http://www.w3.org/2000/xmlns/";Ko.svg="http://www.w3.org/2000/svg";Ko.xlink="http://www.w3.org/1999/xlink";Ko.svgAttrs={xmlns:Ko.svg,"xmlns:xlink":Ko.xlink}});var Pa=B((Xye,S9)=>{"use strict";S9.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var da=B(Hn=>{"use strict";var Wt=kr(),cl=Pe(),tK=cl.strTranslate,wg=Qo(),aK=Pa().LINE_SPACING,nK=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Hn.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(nK),i=Wt.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=yK(e.node(),a);s&&e.style("pointer-events","all"),Hn.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};sK(n[2],f,function(c,h,d){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){o(),s();return}var m=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});m.node().appendChild(p.node()),h&&h.node()&&p.node().insertBefore(h.node().cloneNode(!0),p.node().firstChild);var y=d.width,b=d.height;p.attr({class:l,height:b,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var _=e.node().style.fill||"black",w=p.select("g");w.attr({fill:_,stroke:_});var x=w.node().getBoundingClientRect(),M=x.width,k=x.height;(M>y||k>b)&&(p.style("overflow","hidden"),x=p.node().getBoundingClientRect(),M=x.width,k=x.height);var A=+e.attr("x"),C=+e.attr("y"),D=u||e.node().getBoundingClientRect().height,E=-D/4;if(l[0]==="y")m.attr({transform:"rotate("+[-90,A,C]+")"+tK(-M/2,E-k/2)});else if(l[0]==="l")C=E-k/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)A=0,C=E;else{var R=e.attr("text-anchor");A=A-M*(R==="middle"?.5:R==="end"?1:0),C=C+E-k/2}p.attr({x:A,y:C}),t&&t.call(e,m),s(m)})})):o(),e};var iK=/(<|<|<)/g,lK=/(>|>|>)/g;function oK(e){return e.replace(iK,"\\lt ").replace(lK,"\\gt ")}var C9=[["$","$"],["\\(","\\)"]];function sK(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){cl.warn("No MathJax version:",MathJax.version);return}var n,i,l,o,s=function(){return i=cl.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:C9},displayAlign:"left"})},u=function(){i=cl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=C9},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var _="math-output-"+cl.randstr({},64);o=Wt.select("body").append("div").attr({id:_}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(oK(e));var w=o.node();return a===2?MathJax.Hub.Typeset(w):MathJax.typeset([w])},d=function(){var _=o.select(a===2?".MathJax_SVG":".MathJax"),w=!_.empty()&&o.select("svg").node();if(!w)cl.log("There was an error in the tex syntax.",e),t();else{var x=w.getBoundingClientRect(),M;a===2?M=Wt.select("body").select("#MathJax_SVG_glyphs"):M=_.select("defs"),t(_,M,x)}o.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},m=function(){n!=="svg"&&(MathJax.config.startup.output=n)},y=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(i)},b=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,h,d,p,y):a===3&&(u(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),m(),b()}))}var P9={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},uK={sub:"0.3em",sup:"-0.6em"},fK={sub:"-0.21em",sup:"0.42em"},L9="\u200B",D9=["http:","https:","mailto:","",void 0,":"],R9=Hn.NEWLINES=/(\r\n?|\n)/g,Mg=/(<[^<>]*>)/,Ag=/<(\/?)([^ >]*)(\s+(.*))?>/i,cK=//i;Hn.BR_TAG_ALL=//gi;var z9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,N9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,F9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,vK=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function jo(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Zh(a)}var hK=/(^|;)\s*color:/;Hn.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,l=e.split(Mg),o=[],s="",u=0,f=0;fi?o.push(c.substr(0,m-i)+n):o.push(c.substr(0,m));break}s=""}}return o.join("")};var dK={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},pK=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Zh(e){return e.replace(pK,function(r,t){var a;return t.charAt(0)==="#"?a=mK(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=dK[t],a||r})}Hn.convertEntities=Zh;function mK(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function yK(e,r){r=r.replace(R9," ");var t=!1,a=[],n,i=-1;function l(){i++;var k=document.createElementNS(wg.svg,"tspan");Wt.select(k).attr({class:"line",dy:i*aK+"em"}),e.appendChild(k),n=k;var A=a;if(a=[{node:k}],A.length>1)for(var C=1;C.",r);return}var A=a.pop();k!==A.type&&cl.log("Start tag <"+A.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=cK.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(Mg),h=0;h{"use strict";var gK=kr(),$h=zn(),Hc=zr(),Jh=Pe(),H9=xr(),xK=Oo().isValid;function bK(e,r,t){var a=r?Jh.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Jh.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function U9(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var X9=Vy(),wK=X9.FORMAT_LINK,TK=X9.DATE_FORMAT_LINK;function MK(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?kg:Z9)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function kg(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+wK+"."].join(" ")}function Z9(e,r){return kg(e,r)+[" And for dates see: "+TK+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}J9.exports={axisHoverFormat:MK,descriptionOnlyNumbers:kg,descriptionWithDates:Z9}});var _n=B((Qye,vT)=>{"use strict";var $9=aa(),Pu=Nn(),cT=ci().dash,Sg=mt().extendFlat,K9=ot().templatedArray,Kye=ha().templateFormatStringDescription,Q9=pi().descriptionWithDates,AK=Mt().ONEDAY,Ii=Aa(),kK=Ii.HOUR_PATTERN,qK=Ii.WEEKDAY_PATTERN,qg={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},SK=Sg({},qg,{values:qg.values.slice().concat(["sync"])});function j9(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var eT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},rT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},tT={valType:"data_array",editType:"ticks"},aT={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function nT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function iT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var lT={valType:"color",dflt:Pu.defaultLine,editType:"ticks"},oT={valType:"color",dflt:Pu.lightLine,editType:"ticks"};function sT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var uT=Sg({},cT,{editType:"ticks"}),fT={valType:"boolean",editType:"ticks"};vT.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Pu.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:$9({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Ii.idRegex.x.toString(),Ii.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Ii.idRegex.x.toString(),Ii.idRegex.y.toString()],editType:"calc"},rangebreaks:K9("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[qK,kK,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:AK},editType:"calc"}),tickmode:SK,nticks:j9(),tick0:eT,dtick:rT,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:tT,ticktext:{valType:"data_array",editType:"ticks"},ticks:aT,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:nT(),tickwidth:iT(),tickcolor:lT,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Sg({},cT,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:$9({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Q9("tick label")},tickformatstops:K9("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Q9("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Pu.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:fT,gridcolor:oT,gridwidth:sT(),griddash:uT,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Pu.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Pu.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Ii.idRegex.x.toString(),Ii.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Ii.idRegex.x.toString(),Ii.idRegex.y.toString()],editType:"plot"},minor:{tickmode:qg,nticks:j9("minor"),tick0:eT,dtick:rT,tickvals:tT,ticks:aT,ticklen:nT("minor"),tickwidth:iT("minor"),tickcolor:lT,gridcolor:oT,gridwidth:sT("minor"),griddash:uT,showgrid:fT,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Kh=B((jye,pT)=>{"use strict";var gt=_n(),hT=aa(),dT=mt().extendFlat,CK=fi().overrideAll;pT.exports=CK({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:gt.linecolor,outlinewidth:gt.linewidth,bordercolor:gt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:gt.minor.tickmode,nticks:gt.nticks,tick0:gt.tick0,dtick:gt.dtick,tickvals:gt.tickvals,ticktext:gt.ticktext,ticks:dT({},gt.ticks,{dflt:""}),ticklabeloverflow:dT({},gt.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:gt.ticklen,tickwidth:gt.tickwidth,tickcolor:gt.tickcolor,ticklabelstep:gt.ticklabelstep,showticklabels:gt.showticklabels,labelalias:gt.labelalias,tickfont:hT({}),tickangle:gt.tickangle,tickformat:gt.tickformat,tickformatstops:gt.tickformatstops,tickprefix:gt.tickprefix,showtickprefix:gt.showtickprefix,ticksuffix:gt.ticksuffix,showticksuffix:gt.showticksuffix,separatethousands:gt.separatethousands,exponentformat:gt.exponentformat,minexponent:gt.minexponent,showexponent:gt.showexponent,title:{text:{valType:"string"},font:hT({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Oc=B((rge,yT)=>{"use strict";var LK=Kh(),DK=mu().counter,EK=Ky(),mT=Oo().scales,ege=EK(mT);function Qh(e){return"`"+e+"`"}yT.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?mT[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+Qh(u+f));var h=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",m=a+"max",y=a+"mid",b=Qh(u+d),_=Qh(u+p),w=Qh(u+m),x=_+" and "+w,M={};M[p]=M[m]=void 0;var k={};k[d]=!1;var A={};return f==="color"&&(A.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(A.color.anim=!0)),A[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},A[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},A[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},A[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},A.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(A.showscale={valType:"boolean",dflt:l,editType:"calc"},A.colorbar=LK),t.noColorAxis||(A.coloraxis={valType:"subplotid",regex:DK("coloraxis"),dflt:null,editType:"calc"}),A}});var Lg=B((tge,gT)=>{"use strict";var PK=mt().extendFlat,RK=Oc(),Cg=Oo().scales;gT.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Cg.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Cg.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Cg.RdBu,editType:"calc"}},coloraxis:PK({_isSubplotObj:!0,editType:"calc"},RK("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Dg=B((age,xT)=>{"use strict";var zK=Pe();xT.exports=function(r){return zK.isPlainObject(r.colorbar)}});var Rg=B(Pg=>{"use strict";var Eg=zr(),bT=Pe(),_T=Mt(),NK=_T.ONEDAY,FK=_T.ONEWEEK;Pg.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?NK:1;if(!e)return i;if(Eg(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var l=e.charAt(0),o=e.substr(1);return o=Eg(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};Pg.tick0=function(e,r,t,a){if(r==="date")return bT.cleanDate(e,bT.dateTick0(t,a%FK===0?1:0));if(!(a==="D1"||a==="D2"))return Eg(e)?Number(e):0}});var jh=B((ige,TT)=>{"use strict";var wT=Rg(),IK=Pe().isArrayOrTypedArray,HK=gn().isTypedArraySpec,OK=gn().decodeTypedArraySpec;TT.exports=function(r,t,a,n,i){i||(i={});var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(_){var w=o[_];return HK(w)&&(w=OK(w)),w!==void 0?w:(s._template||{})[_]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=IK(d)?"array":h?"linear":"auto",m=a(u+"tickmode",p);if(m==="auto"||m==="sync")a(u+"nticks");else if(m==="linear"){var y=s.dtick=wT.dtick(h,n);s.tick0=wT.tick0(c,n,t.calendar,y)}else if(n!=="multicategory"){var b=a(u+"tickvals");b===void 0?s.tickmode="auto":l||a("ticktext")}}});var ed=B((lge,AT)=>{"use strict";var zg=Pe(),MT=_n();AT.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?MT.minor:MT,u=i?"minor.":"",f=zg.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=zg.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),h=zg.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||h?"outside":"");d||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var Ng=B((oge,kT)=>{"use strict";kT.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var On=B((sge,qT)=>{"use strict";var rd=Pe(),BK=ot();qT.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=rd.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=BK.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var Fg=Pe(),YK=xr().contrast,ST=_n(),VK=Ng(),GK=On();CT.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");Fg.isPlainObject(l)||delete t.labelalias;var o=VK(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",h=c.indexOf("inside")!==-1?YK(i.bgColor):f&&f!==ST.color.dflt?f:u.color;if(Fg.coerceFont(a,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");GK(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:UK}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function UK(e,r){function t(n,i){return Fg.coerce(e,r,ST.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var ad=B((fge,LT)=>{"use strict";var WK=Ng();LT.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=WK(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var Ig=B((cge,DT)=>{"use strict";var Ul=Pe(),XK=ot(),ZK=jh(),JK=ed(),$K=td(),KK=ad(),QK=Kh();DT.exports=function(r,t,a){var n=XK.newContainer(t,"colorbar"),i=r.colorbar||{};function l(R,N){return Ul.coerce(i,n,QK,R,N)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),c=f==="v",h=l("thicknessmode");l("thickness",h==="fraction"?30/(c?s:u):30);var d=l("lenmode");l("len",d==="fraction"?1:c?u:s);var p=l("yref"),m=l("xref"),y=p==="paper",b=m==="paper",_,w,x,M="left";c?(x="middle",M=b?"left":"right",_=b?1.02:1,w=.5):(x=y?"bottom":"top",M="center",_=.5,w=y?1.02:1),Ul.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:_}},"x"),Ul.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:w}},"y"),l("xanchor",M),l("xpad"),l("yanchor",x),l("ypad"),Ul.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var k=Ul.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),ZK(i,n,l,"linear");var A=a.font,C={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:A};k.indexOf("inside")!==-1&&(C.bgColor="black"),KK(i,n,l,"linear",C),$K(i,n,l,"linear",C),JK(i,n,l,"linear",C),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:A,E=Ul.extendFlat({},A,{family:D.family,size:Ul.bigFont(D.size)});Ul.coerceFont(l,"title.font",E),l("title.side",c?"top":"right")}});var Ru=B((vge,RT)=>{"use strict";var ET=zr(),Og=Pe(),jK=Dg(),eQ=Ig(),PT=Oo().isValid,rQ=yr().traceIs;function Hg(e,r){var t=r.slice(0,r.length-1);return r?Og.nestedProperty(e,t).get()||{}:e}RT.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=Hg(r,l),f=Hg(t,l),c=Hg(t._template||{},l)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(l+"coloraxis");if(p){var m=rQ(t,"contour")&&Og.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[p];y?(y[2].push(h),y[0]!==m&&(y[0]=!1,Og.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[m,t,[h]];return}}var b=u[o+"min"],_=u[o+"max"],w=ET(b)&&ET(_)&&b<_,x=n(l+o+"auto",!w);x?n(l+o+"mid"):(n(l+o+"min"),n(l+o+"max"));var M=u.colorscale,k=c.colorscale,A;if(M!==void 0&&(A=!PT(M)),k!==void 0&&(A=!PT(k)),n(l+"autocolorscale",A),n(l+"colorscale"),n(l+"reversescale"),l!=="marker.line."){var C;l&&s&&(C=jK(u));var D=n(l+"showscale",C);D&&(l&&c&&(f._template=c),eQ(u,f,a))}}});var IT=B((hge,FT)=>{"use strict";var zT=Pe(),tQ=ot(),NT=Lg(),aQ=Ru();FT.exports=function(r,t){function a(c,h){return zT.coerce(r,t,NT,c,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(c,h){return zT.coerce(i,l,NT.coloraxis,c,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=tQ.newContainer(t,s,"coloraxis"),l._name=s,aQ(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var nQ=Pe(),iQ=bn().hasColorscale,lQ=bn().extractOpts;HT.exports=function(r,t){function a(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function n(f,c){var h=c.container?nQ.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=lQ(h),p=d.auto;(p||d.min===void 0)&&a(h,c.min),(p||d.max===void 0)&&a(h,c.max),d.autocolorscale&&a(h,"colorscale")}}for(var i=0;i{"use strict";var BT=zr(),Bg=Pe(),oQ=bn().extractOpts;YT.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?Bg.nestedProperty(t,l).get():t,s=oQ(o),u=s.auto!==!1,f=s.min,c=s.max,h=s.mid,d=function(){return Bg.aggNums(Math.min,null,i)},p=function(){return Bg.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(o._colorAx&&BT(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(o._colorAx&&BT(c)?c=Math.max(c,p()):c=p()),u&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var Yg=B((mge,VT)=>{"use strict";var nd=Oo(),zu=bn();VT.exports={moduleType:"component",name:"colorscale",attributes:Oc(),layoutAttributes:Lg(),supplyLayoutDefaults:IT(),handleDefaults:Ru(),crossTraceDefaults:OT(),calc:Bc(),scales:nd.scales,defaultScale:nd.defaultScale,getScale:nd.get,isValidScale:nd.isValid,hasColorscale:zu.hasColorscale,extractOpts:zu.extractOpts,extractScale:zu.extractScale,flipScale:zu.flipScale,makeColorScaleFunc:zu.makeColorScaleFunc,makeColorScaleFuncFromTrace:zu.makeColorScaleFuncFromTrace}});var wn=B((yge,UT)=>{"use strict";var GT=Pe(),sQ=gn().isTypedArraySpec;UT.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return GT.isPlainObject(r)&&(GT.isArrayOrTypedArray(r.size)||sQ(r.size))}}});var XT=B((gge,WT)=>{"use strict";var uQ=zr();WT.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return uQ(s)&&s>0?Math.max(s,i):0}}});var Hi=B(Ra=>{"use strict";var ZT=Pe();Ra.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ra.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{KT.exports=dQ;var Vg={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},hQ=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function dQ(e){var r=[];return e.replace(hQ,function(t,a,n){var i=a.toLowerCase();for(n=mQ(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==Vg[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var yQ=Gg(),Xe=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",QT=Math.sqrt(2),Wl=Math.sqrt(3),Ug=Math.PI,Wg=Math.cos,Xg=Math.sin;aM.exports={circle:{n:0,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Cr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2);return Cr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*1.3,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*.4,2),n=Xe(e*1.2,2);return Cr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*.8/QT,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Cr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*2/Wl,2),n=Xe(e/2,2),i=Xe(e,2);return Cr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*2/Wl,2),n=Xe(e/2,2),i=Xe(e,2);return Cr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*2/Wl,2),n=Xe(e/2,2),i=Xe(e,2);return Cr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*2/Wl,2),n=Xe(e/2,2),i=Xe(e,2);return Cr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*.6,2),n=Xe(e*1.2,2);return Cr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*.6,2),n=Xe(e*1.2,2);return Cr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*.6,2),n=Xe(e*1.2,2);return Cr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*.6,2),n=Xe(e*1.2,2);return Cr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*.951,2),n=Xe(e*.588,2),i=Xe(-e,2),l=Xe(e*-.309,2),o=Xe(e*.809,2);return Cr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2),n=Xe(e/2,2),i=Xe(e*Wl/2,2);return Cr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2),n=Xe(e/2,2),i=Xe(e*Wl/2,2);return Cr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*.924,2),n=Xe(e*.383,2);return Cr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Sr(r))return qr;var a=e*1.4,n=Xe(a*.225,2),i=Xe(a*.951,2),l=Xe(a*.363,2),o=Xe(a*.588,2),s=Xe(-a,2),u=Xe(a*-.309,2),f=Xe(a*.118,2),c=Xe(a*.809,2),h=Xe(a*.382,2);return Cr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+c+"L0,"+h+"L-"+o+","+c+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*.66,2),n=Xe(e*.38,2),i=Xe(e*.76,2);return Cr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*Wl*.8,2),n=Xe(e*.8,2),i=Xe(e*1.6,2),l=Xe(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Cr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*Wl*.8,2),n=Xe(e*.8,2),i=Xe(e*1.6,2),l=Xe(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Cr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*1.1,2),n=Xe(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Cr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*1.4,2),n=Xe(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Cr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*.7,2),n=Xe(e*1.4,2);return Cr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*1.4,2),n=Xe(e*.7,2);return Cr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2);return Cr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2);return Cr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2),n=Xe(e/QT,2);return Cr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*1.3,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*1.3,2),n=Xe(e*.65,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*1.4,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*1.2,2),n=Xe(e*.85,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e/2,2),n=Xe(e,2);return Cr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*1.2,2),n=Xe(e*1.6,2),i=Xe(e*.8,2);return Cr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*1.2,2),n=Xe(e*1.6,2),i=Xe(e*.8,2);return Cr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*1.2,2),n=Xe(e*1.6,2),i=Xe(e*.8,2);return Cr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*1.2,2),n=Xe(e*1.6,2),i=Xe(e*.8,2);return Cr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*1.4,2);return Cr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*1.4,2);return Cr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2);return Cr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2),n=Xe(e*2,2);return Cr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2),n=Xe(e*2,2);return Cr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*2,2),n=Xe(e,2);return Cr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*2,2),n=Xe(e,2);return Cr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2),n=Xe(e*2,2);return Cr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e,2),n=Xe(e*2,2);return Cr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*2,2),n=Xe(e,2);return Cr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Sr(r))return qr;var a=Xe(e*2,2),n=Xe(e,2);return Cr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Sr(r))return qr;var a=Ug/2.5,n=2*e*Wg(a),i=2*e*Xg(a);return Cr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Sr(r))return qr;var a=Ug/4,n=2*e*Wg(a),i=2*e*Xg(a);return Cr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Sr(e){return e===null}var jT,eM,rM,tM;function Cr(e,r,t){if((!e||e%360===0)&&!r)return t;if(rM===e&&tM===r&&jT===t)return eM;rM=e,tM=r,jT=t;function a(y,b){var _=Wg(y),w=Xg(y),x=b[0],M=b[1]+(r||0);return[x*_-M*w,x*w+M*_]}for(var n=e/180*Ug,i=0,l=0,o=yQ(t),s="",u=0;u{"use strict";var ia=kr(),nt=Pe(),gQ=nt.numberFormat,as=zr(),jg=zn(),ld=yr(),ka=xr(),xQ=Yg(),Vc=nt.strTranslate,od=da(),bQ=Qo(),_Q=Pa(),wQ=_Q.LINE_SPACING,dM=pu().DESELECTDIM,TQ=wn(),MQ=XT(),AQ=Hi().appendArrayPointValue,er=MM.exports={};er.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(ka.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",Zg(qQ(f))),s&&e.style("text-shadow",s==="auto"?od.makeTextShadow(ka.contrast(i)):Zg(s)),u&&e.style("text-decoration-line",Zg(SQ(u)))};function Zg(e){return e==="none"?void 0:e}var kQ={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function qQ(e){return kQ[e]}function SQ(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}er.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};er.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};er.setRect=function(e,r,t,a,n){e.call(er.setPosition,r,t).call(er.setSize,a,n)};er.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(as(n)&&as(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Vc(n,i));else return!1;return!0};er.translatePoints=function(e,r,t){e.each(function(a){var n=ia.select(this);er.translatePoint(a,n,r,t)})};er.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};er.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=ld.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){er.hideOutsideRangePoint(u,ia.select(this),t,a,l,o)})})}};er.crispRound=function(e,r,t){return!r||!as(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};er.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";ka.stroke(r,a||i.color),er.dashLine(r,o,l)};er.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";ia.select(this).call(ka.stroke,t||i.color).call(er.dashLine,o,l)})};er.dashLine=function(e,r,t){t=+t||0,r=er.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};er.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function pM(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=er.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,c=l(n.size,0,8),h=l(n.solidity,0,.3),d=r.uid;er.pattern(e,"point",t,d,o,c,h,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,b;p==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(y={x:0,y:i.start},b={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(gM,t,m,"linear",i.colorscale,"fill",y,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(er.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(ka.fill,r.fillcolor)}er.singleFillStyle=function(e,r){var t=ia.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};pM(e,n,r,!1)};er.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=ia.select(this);a[0].trace&&pM(n,a[0].trace,r,t)})};var iM=nM();er.symbolNames=[];er.symbolFuncs=[];er.symbolBackOffs=[];er.symbolNeedLines={};er.symbolNoDot={};er.symbolNoFill={};er.symbolList=[];Object.keys(iM).forEach(function(e){var r=iM[e],t=r.n;er.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),er.symbolNames[t]=e,er.symbolFuncs[t]=r.f,er.symbolBackOffs[t]=r.backoff||0,r.needLine&&(er.symbolNeedLines[t]=!0),r.noDot?er.symbolNoDot[t]=!0:er.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(er.symbolNoFill[t]=!0)});var CQ=er.symbolNames.length,LQ="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";er.symbolNumber=function(e){if(as(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=er.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=CQ||e>=400?0:Math.floor(Math.max(e,0))};function mM(e,r,t,a){var n=e%100;return er.symbolFuncs[n](r,t,a)+(e>=200?LQ:"")}var lM=gQ("~f"),yM={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};er.gradient=function(e,r,t,a,n,i){var l=yM[a];return gM(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function gM(e,r,t,a,n,i,l,o,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=er.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=t2(e,t),c=r2(e,t);r.attr("d",mM(u,s,f,c))}var h=!1,d,p,m;if(e.so)m=o.outlierwidth,p=o.outliercolor,d=l.outliercolor;else{var y=(o||{}).width;m=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):nt.isArrayOrTypedArray(o.color)?p=ka.defaultLine:p=o.color,nt.isArrayOrTypedArray(l.color)&&(d=ka.defaultLine,h=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}if(e.om)r.call(ka.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var b=l.gradient,_=e.mgt;_?h=!0:_=b&&b.type,nt.isArrayOrTypedArray(_)&&(_=_[0],yM[_]||(_=0));var w=l.pattern,x=er.getPatternAttr,M=w&&(x(w.shape,e.i,"")||x(w.path,e.i,""));if(_&&_!=="none"){var k=e.mgc;k?h=!0:k=b.color;var A=t.uid;h&&(A+="-"+e.i),er.gradient(r,n,A,_,[[0,k],[1,d]],"fill")}else if(M){var C=!1,D=w.fgcolor;!D&&i&&i.color&&(D=i.color,C=!0);var E=x(D,e.i,i&&i.color||null),R=x(w.bgcolor,e.i,null),N=w.fgopacity,I=x(w.size,e.i,8),H=x(w.solidity,e.i,.3);C=C||e.mcc||nt.isArrayOrTypedArray(w.shape)||nt.isArrayOrTypedArray(w.path)||nt.isArrayOrTypedArray(w.bgcolor)||nt.isArrayOrTypedArray(w.fgcolor)||nt.isArrayOrTypedArray(w.size)||nt.isArrayOrTypedArray(w.solidity);var G=t.uid;C&&(G+="-"+e.i),er.pattern(r,"point",n,G,M,I,H,e.mcc,w.fillmode,R,E,N)}else nt.isArrayOrTypedArray(d)?ka.fill(r,d[e.i]):ka.fill(r,d);m&&ka.stroke(r,p)}};er.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=er.tryColorscale(t,""),r.lineScale=er.tryColorscale(t,"line"),ld.traceIs(e,"symbols")&&(r.ms2mrc=TQ.isBubble(e)?MQ(e):function(){return(t.size||6)/2}),e.selectedpoints&&nt.extendFlat(r,er.makeSelectedPointStyleFns(e)),r};er.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,c=u!==void 0;(nt.isArrayOrTypedArray(o)||f||c)&&(r.selectedOpacityFn=function(x){var M=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:M:c?u:dM*M});var h=n.color,d=i.color,p=l.color;(d||p)&&(r.selectedColorFn=function(x){var M=x.mcc||h;return x.selected?d||M:p||M});var m=n.size,y=i.size,b=l.size,_=y!==void 0,w=b!==void 0;return ld.traceIs(e,"symbols")&&(_||w)&&(r.selectedSizeFn=function(x){var M=x.mrc||m/2;return x.selected?_?y/2:M:w?b/2:M}),r};er.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var c=f.tc||o;return f.selected?s||c:u||(s?c:ka.addOpacity(c,dM))},r};er.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){ka.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",mM(er.symbolNumber(o),s,t2(l,r),r2(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=ia.select(this),o=0;o0?t:0}er.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=er.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=ia.select(this),u=i?nt.extractOption(o,r,"txt","texttemplate"):nt.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(o,r,l):{},h={};AQ(h,r,o.i);var d=r._meta||{};u=nt.texttemplateString(u,c,l._d3locale,h,o,d)}var p=o.tp||r.textposition,m=bM(o,r),y=a?a(o):o.tc||r.textfont.color;s.call(er.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:m,color:y}).text(u).call(od.convertToTspans,t).call(xM,p,m,o.mrc)})}};er.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedTextStyleFns(r);e.each(function(a){var n=ia.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=bM(a,r);ka.fill(n,i);var s=ld.traceIs(r,"bar-like");xM(n,l,o,a.mrc2||a.mrc,s)})}};var oM=.5;er.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=f&&x<=s)&&(M<=c&&M>=u||M>=c&&M<=u)&&(e=[x,M])}return e}er.applyBackoff=TM;er.makeTester=function(){var e=nt.ensureSingleById(ia.select("body"),"svg","js-plotly-tester",function(t){t.attr(bQ.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=nt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});er.tester=e,er.testref=r};er.savedBBoxes={};var $g=0,PQ=1e4;er.bBox=function(e,r,t){t||(t=sM(e));var a;if(t){if(a=er.savedBBoxes[t],a)return nt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=sM(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=er.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=er.savedBBoxes[t],a)return nt.extendFlat({},a)}}var u,f;r?u=e:(f=er.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ia.select(u).attr("transform",null).call(od.positionText,0,0);var c=u.getBoundingClientRect(),h=er.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return $g>=PQ&&(er.savedBBoxes={},$g=0),t&&(er.savedBBoxes[t]=d),$g++,nt.extendFlat({},d)};function sM(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}er.setClipUrl=function(e,r,t){e.attr("clip-path",e2(r,t))};function e2(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}er.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};er.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=Vc(r,t),l=l.trim(),e[i]("transform",l),l};er.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};er.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var RQ=/\s*sc.*/;er.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(RQ,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var zQ=/translate\([^)]*\)\s*$/;er.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=ia.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(zQ);r===1&&t===1?a=[]:a=[Vc(l,o),"scale("+r+","+t+")",Vc(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function r2(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}er.getMarkerStandoff=r2;var Yc=Math.atan2,es=Math.cos,Fu=Math.sin;function uM(e,r){var t=r[0],a=r[1];return[t*es(e)-a*Fu(e),t*Fu(e)+a*es(e)]}var fM,cM,vM,hM,Kg,Qg;function t2(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||nt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=Yc(h[1]-n,h[0]-a),p=Yc(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,b=f/180*Math.PI,_=fM/180*Math.PI,w=cM/180*Math.PI,x=_-y,M=es(w)*Fu(x),k=Fu(w)*es(b)-es(w)*Fu(b)*es(x);m=-Yc(M,k)-Math.PI,fM=u,cM=f}var A=uM(d,[es(m),0]),C=uM(p,[Fu(m),0]);t=Yc(A[1]+C[1],A[0]+C[0])/Math.PI*180,i==="previous"&&!(Qg===r.uid&&e.i===Kg+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Qg===r.uid&&e.i===Kg+1&&as(a)&&as(n)){var D=a-vM,E=n-hM,R=r.line&&r.line.shape||"",N=R.slice(R.length-1);N==="h"&&(E=0),N==="v"&&(D=0),t+=Yc(E,D)/Math.PI*180+90}else t=null}return vM=a,hM=n,Kg=e.i,Qg=r.uid,t}er.getMarkerAngle=t2});var Gc=B((Tge,SM)=>{"use strict";var Iu=kr(),NQ=zr(),FQ=Pt(),a2=yr(),ns=Pe(),AM=ns.strTranslate,sd=Yr(),ud=xr(),Hu=da(),kM=pu(),IQ=Pa().OPPOSITE_SIDE,qM=/ [XY][0-9]* /,n2=1.6,i2=1.6;function HQ(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,h=1,d=n.title,p=(d&&d.text?d.text:"").trim(),m=!1,y=d&&d.font?d.font:{},b=y.family,_=y.size,w=y.color,x=y.weight,M=y.style,k=y.variant,A=y.textcase,C=y.lineposition,D=y.shadow,E=t.subtitlePropName,R=!!E,N=t.subtitlePlaceholder,I=(n.title||{}).subtitle||{text:"",font:{}},H=(I.text||"").trim(),G=!1,W=1,Y=I.font,O=Y.family,V=Y.size,Z=Y.color,$=Y.weight,te=Y.style,le=Y.variant,fe=Y.textcase,he=Y.lineposition,Q=Y.shadow,qe;i==="title.text"?qe="titleText":i.indexOf("axis")!==-1?qe="axisTitleText":i.indexOf("colorbar")!==-1&&(qe="colorbarTitleText");var ve=e._context.edits[qe];function Ae(Ue,Ve){return Ue===void 0||Ve===void 0?!1:Ue.replace(qM," % ")===Ve.replace(qM," % ")}p===""?h=0:Ae(p,l)&&(ve||(p=""),h=.2,m=!0),R&&(H===""?W=0:Ae(H,N)&&(ve||(H=""),W=.2,G=!0)),t._meta?p=ns.templateString(p,t._meta):a._meta&&(p=ns.templateString(p,a._meta));var se=p||H||ve,be;c||(c=ns.ensureSingle(a._infolayer,"g","g-"+r),be=a._hColorbarMoveTitle);var U=c.selectAll("text."+r).data(se?[0]:[]);U.enter().append("text"),U.text(p).attr("class",r),U.exit().remove();var j=null,X=r+"-subtitle",ge=H||ve;if(R&&(j=c.selectAll("text."+X).data(ge?[0]:[]),j.enter().append("text"),j.text(H).attr("class",X),j.exit().remove()),!se)return c;function ke(Ue,Ve){ns.syncOrAsync([xe,ze],{title:Ue,subtitle:Ve})}function xe(Ue){var Ve=Ue.title,De=Ue.subtitle,He;!f&&be&&(f={}),f?(He="",f.rotate&&(He+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||be)&&(He+=AM(0,(f.offset||0)-(be||0)))):He=null,Ve.attr("transform",He);function Oe(oe){if(oe){var Se=Iu.select(oe.node().parentNode).select("."+X);if(!Se.empty()){var Ie=oe.node().getBBox();if(Ie.height){var We=Ie.y+Ie.height+n2*V;Se.attr("y",We)}}}}if(Ve.style("opacity",h*ud.opacity(w)).call(sd.font,{color:ud.rgb(w),size:Iu.round(_,2),family:b,weight:x,style:M,variant:k,textcase:A,shadow:D,lineposition:C}).attr(u).call(Hu.convertToTspans,e,Oe),De&&!De.empty()){var ie=c.select("."+r+"-math-group"),Me=Ve.node().getBBox(),Ze=ie.node()?ie.node().getBBox():void 0,cr=Ze?Ze.y+Ze.height+n2*V:Me.y+Me.height+i2*V,fr=ns.extendFlat({},u,{y:cr});De.attr("transform",He),De.style("opacity",W*ud.opacity(Z)).call(sd.font,{color:ud.rgb(Z),size:Iu.round(V,2),family:O,weight:$,style:te,variant:le,textcase:fe,shadow:Q,lineposition:he}).attr(fr).call(Hu.convertToTspans,e)}return FQ.previousPromises(e)}function ze(Ue){var Ve=Ue.title,De=Iu.select(Ve.node().parentNode);if(s&&s.selection&&s.side&&p){De.attr("transform",null);var He=IQ[s.side],Oe=s.side==="left"||s.side==="top"?-1:1,ie=NQ(s.pad)?s.pad:2,Me=sd.bBox(De.node()),Ze={t:0,b:0,l:0,r:0},cr=e._fullLayout._reservedMargin;for(var fr in cr)for(var oe in cr[fr]){var Se=cr[fr][oe];Ze[oe]=Math.max(Ze[oe],Se)}var Ie={left:Ze.l,top:Ze.t,right:a.width-Ze.r,bottom:a.height-Ze.b},We=s.maxShift||Oe*(Ie[s.side]-Me[s.side]),Ge=0;if(We<0)Ge=We;else{var Je=s.offsetLeft||0,Qe=s.offsetTop||0;Me.left-=Je,Me.right-=Je,Me.top-=Qe,Me.bottom-=Qe,s.selection.each(function(){var $e=sd.bBox(this);ns.bBoxIntersect(Me,$e,ie)&&(Ge=Math.max(Ge,Oe*($e[s.side]-Me[He])+ie))}),Ge=Math.min(We,Ge),n._titleScoot=Math.abs(Ge)}if(Ge>0||We<0){var vr={left:[-Ge,0],right:[Ge,0],top:[0,-Ge],bottom:[0,Ge]}[s.side];De.attr("transform",AM(vr[0],vr[1]))}}}U.call(ke,j);function Fe(Ue,Ve){Ue.text(Ve).on("mouseover.opacity",function(){Iu.select(this).transition().duration(kM.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Iu.select(this).transition().duration(kM.HIDE_PLACEHOLDER).style("opacity",0)})}if(ve&&(p?U.on(".opacity",null):(Fe(U,l),m=!0),U.call(Hu.makeEditable,{gd:e}).on("edit",function(Ue){o!==void 0?a2.call("_guiRestyle",e,i,Ue,o):a2.call("_guiRelayout",e,i,Ue)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ke)}).on("input",function(Ue){this.text(Ue||" ").call(Hu.positionText,u.x,u.y)}),R)){if(R&&!p){var Ee=U.node().getBBox(),Ne=Ee.y+Ee.height+i2*V;j.attr("y",Ne)}H?j.on(".opacity",null):(Fe(j,N),G=!0),j.call(Hu.makeEditable,{gd:e}).on("edit",function(Ue){a2.call("_guiRelayout",e,"title.subtitle.text",Ue)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ke)}).on("input",function(Ue){this.text(Ue||" ").call(Hu.positionText,j.attr("x"),j.attr("y"))})}return U.classed("js-placeholder",m),j&&!j.empty()&&j.classed("js-placeholder",G),c}SM.exports={draw:HQ,SUBTITLE_PADDING_EM:i2,SUBTITLE_PADDING_MATHJAX_EM:n2}});var yd=B((Mge,PM)=>{"use strict";var OQ=kr(),BQ=cu().utcFormat,st=Pe(),YQ=st.numberFormat,Oi=zr(),Xl=st.cleanNumber,VQ=st.ms2DateTime,CM=st.dateTime2ms,Bi=st.ensureNumber,LM=st.isArrayOrTypedArray,Zl=Mt(),fd=Zl.FP_SAFE,mi=Zl.BADNUM,GQ=Zl.LOG_CLIP,UQ=Zl.ONEWEEK,cd=Zl.ONEDAY,vd=Zl.ONEHOUR,DM=Zl.ONEMIN,EM=Zl.ONESEC,hd=Ut(),md=Aa(),dd=md.HOUR_PATTERN,pd=md.WEEKDAY_PATTERN;function Uc(e){return Math.pow(10,e)}function l2(e){return e!=null}PM.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,M){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&M&&r.range&&r.range.length===2){var k=r.range[0],A=r.range[1];return .5*(k+A-2*GQ*Math.abs(k-A))}else return mi}function l(x,M,k,A){if((A||{}).msUTC&&Oi(x))return+x;var C=CM(x,k||r.calendar);if(C===mi)if(Oi(x)){x=+x;var D=Math.floor(st.mod(x+.05,1)*10),E=Math.round(x-D/10);C=CM(new Date(E))+D/10}else return mi;return C}function o(x,M,k){return VQ(x,M,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(l2(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var M=r._categories.length-1;return r._categoriesMap[x]=M,M}return mi}function f(x,M){for(var k=new Array(M),A=0;Ar.range[1]&&(k=!k);for(var A=k?-1:1,C=A*x,D=0,E=0;EN)D=E+1;else{D=C<(R+N)/2?E:E+1;break}}var I=r._B[D]||0;return isFinite(I)?p(x,r._m2,I):0},b=function(x){var M=r._rangebreaks.length;if(!M)return m(x,r._m,r._b);for(var k=0,A=0;Ar._rangebreaks[A].pmax&&(k=A+1);return m(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:Bi,r.l2c=r.type==="log"?Uc:Bi,r.l2p=y,r.p2l=b,r.c2p=r.type==="log"?function(x,M){return y(i(x,M))}:y,r.p2c=r.type==="log"?function(x){return Uc(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Xl,r.c2d=r.c2r=r.l2d=r.l2r=Bi,r.d2p=r.r2p=function(x){return r.l2p(Xl(x))},r.p2d=r.p2r=b,r.cleanPos=Bi):r.type==="log"?(r.d2r=r.d2l=function(x,M){return i(Xl(x),M)},r.r2d=r.r2c=function(x){return Uc(Xl(x))},r.d2c=r.r2l=Xl,r.c2d=r.l2r=Bi,r.c2r=i,r.l2d=Uc,r.d2p=function(x,M){return r.l2p(r.d2r(x,M))},r.p2d=function(x){return Uc(b(x))},r.r2p=function(x){return r.l2p(Xl(x))},r.p2r=b,r.cleanPos=Bi):r.type==="date"?(r.d2r=r.r2d=st.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(x,M,k){return r.l2p(l(x,0,k))},r.p2d=r.p2r=function(x,M,k){return o(b(x),M,k)},r.cleanPos=function(x){return st.cleanDate(x,mi,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(x){var M=d(x);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Bi,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Bi(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(x){var M=h(x);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Bi,r.r2l=h,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Bi(x)},r.setupMultiCategory=function(x){var M=r._traceIndices,k,A,C=r._matchGroup;if(C&&r._categories.length===0){for(var D in C)if(D!==a){var E=t[hd.id2name(D)];M=M.concat(E._traceIndices)}}var R=[[0,{}],[0,{}]],N=[];for(k=0;kE[1]&&(A[D?0:1]=k),A[0]===A[1]){var R=r.l2r(M),N=r.l2r(k);if(M!==void 0){var I=R+1;k!==void 0&&(I=Math.min(I,N)),A[D?1:0]=I}if(k!==void 0){var H=N+1;M!==void 0&&(H=Math.max(H,R)),A[D?0:1]=H}}}},r.cleanRange=function(x,M){r._cleanRange(x,M),r.limitRange(x)},r._cleanRange=function(x,M){M||(M={}),x||(x="range");var k=st.nestedProperty(r,x).get(),A,C;if(r.type==="date"?C=st.dfltRange(r.calendar):n==="y"?C=md.DFLTRANGEY:r._name==="realaxis"?C=[0,1]:C=M.dfltRange||md.DFLTRANGEX,C=C.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(C[0]=0),!k||k.length!==2){st.nestedProperty(r,x).set(C);return}var D=k[0]===null,E=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=st.cleanDate(k[0],mi,r.calendar),k[1]=st.cleanDate(k[1],mi,r.calendar)),A=0;A<2;A++)if(r.type==="date"){if(!st.isDateTime(k[A],r.calendar)){r[x]=C;break}if(r.r2l(k[0])===r.r2l(k[1])){var R=st.constrain(r.r2l(k[0]),st.MIN_MS+1e3,st.MAX_MS-1e3);k[0]=r.l2r(R-1e3),k[1]=r.l2r(R+1e3);break}}else{if(!Oi(k[A]))if(!(D||E)&&Oi(k[1-A]))k[A]=k[1-A]*(A?10:.1);else{r[x]=C;break}if(k[A]<-fd?k[A]=-fd:k[A]>fd&&(k[A]=fd),k[0]===k[1]){var N=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=N,k[1]+=N}}},r.setScale=function(x){var M=t._size;if(r.overlaying){var k=hd.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var A=x&&r._r?"_r":"range",C=r.calendar;r.cleanRange(A);var D=r.r2l(r[A][0],C),E=r.r2l(r[A][1],C),R=n==="y";if(R?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(D-E),r._b=-r._m*E):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(E-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var N,I;if(r._rangebreaks=r.locateBreaks(Math.min(D,E),Math.max(D,E)),r._rangebreaks.length){for(N=0;NE&&(H=!H),H&&r._rangebreaks.reverse();var G=H?-1:1;for(r._m2=G*r._length/(Math.abs(E-D)-r._lBreaks),r._B.push(-r._m2*(R?E:D)),N=0;NC&&(C+=7,DC&&(C+=24,D=A&&D=A&&x=Q.min&&(teQ.max&&(Q.max=le),fe=!1)}fe&&E.push({min:te,max:le})}};for(k=0;k{"use strict";var RM=zr(),o2=Pe(),WQ=Mt().BADNUM,gd=o2.isArrayOrTypedArray,XQ=o2.isDateTime,ZQ=o2.cleanNumber,zM=Math.round;FM.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(gd(n)&&!n.length)return"-";if(!i&&jQ(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function NM(e){return Math.max(1,(e-1)/1e3)}function QQ(e,r){for(var t=e.length,a=NM(t),n=0,i=0,l={},o=0;on*2}function jQ(e){return gd(e[0])&&gd(e[1])}});var Wc=B((kge,UM)=>{"use strict";var ej=kr(),BM=zr(),Jl=Pe(),xd=Mt().FP_SAFE,rj=yr(),tj=Yr(),YM=Ut(),aj=YM.getFromId,nj=YM.isLinked;UM.exports={applyAutorangeOptions:GM,getAutoRange:u2,makePadFn:f2,doAutoRange:lj,findExtremes:oj,concatExtremes:h2};function u2(e,r){var t,a,n=[],i=e._fullLayout,l=f2(i,r,0),o=f2(i,r,1),s=h2(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Jl.simpleMap(r.range,r.r2l);var c=u[0].val,h=f[0].val;for(t=1;t0&&(E=w-l(k)-o(A),E>x?R/E>M&&(C=k,D=A,M=R/E):R/w>M&&(C={val:k.val,nopad:1},D={val:A.val,nopad:1},M=R/w));function N(Y,O){return Math.max(Y,o(O))}if(c===h){var I=c-1,H=c+1;if(b)if(c===0)n=[0,1];else{var G=(c>0?f:u).reduce(N,0),W=c/(1-Math.min(.5,G/w));n=c>0?[0,W]:[W,0]}else _?n=[Math.max(0,I),Math.max(1,H)]:n=[I,H]}else b?(C.val>=0&&(C={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):_&&(C.val-M*l(C)<0&&(C={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),M=(D.val-C.val-IM(r,k.val,A.val))/(w-l(C)-o(D)),n=[C.val-M*l(C),D.val+M*o(D)];return n=GM(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Jl.simpleMap(n,r.l2r||Number)}function IM(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),A=x(t.vpadplus||t.vpad),C=x(t.vpadminus||t.vpad);if(!u){if(_=1/0,w=-1/0,s)for(c=0;c0&&(_=h),h>w&&h-xd&&(_=h),h>w&&h=R;c--)E(c);return{min:a,max:n,opts:t}}function c2(e,r,t,a){VM(e,r,t,a,sj)}function v2(e,r,t,a){VM(e,r,t,a,uj)}function VM(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function OM(e){return BM(e)&&Math.abs(e)=r}function fj(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&bd(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&bd(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function cj(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&bd(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&bd(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function bd(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=fj(t,r),a=cj(a,r),[t,a]}});var Jr=B((qge,dA)=>{"use strict";var Bn=kr(),Xt=zr(),Ou=Pt(),Zc=yr(),br=Pe(),Bu=br.strTranslate,is=da(),vj=Gc(),Jc=xr(),Tn=Yr(),hj=_n(),WM=Rg(),qa=Mt(),dj=qa.ONEMAXYEAR,Td=qa.ONEAVGYEAR,Md=qa.ONEMINYEAR,pj=qa.ONEMAXQUARTER,y2=qa.ONEAVGQUARTER,Ad=qa.ONEMINQUARTER,mj=qa.ONEMAXMONTH,Yu=qa.ONEAVGMONTH,kd=qa.ONEMINMONTH,Mn=qa.ONEWEEK,Va=qa.ONEDAY,$l=Va/2,Vi=qa.ONEHOUR,$c=qa.ONEMIN,qd=qa.ONESEC,yj=qa.ONEMILLI,gj=qa.ONEMICROSEC,ls=qa.MINUS_SIGN,Cd=qa.BADNUM,g2={K:"zeroline"},x2={K:"gridline",L:"path"},b2={K:"minor-gridline",L:"path"},aA={K:"tick",L:"path"},XM={K:"tick",L:"text"},ZM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Ld=Pa(),Xc=Ld.MID_SHIFT,os=Ld.CAP_SHIFT,Kc=Ld.LINE_SPACING,xj=Ld.OPPOSITE_SIDE,Sd=3,Ye=dA.exports={};Ye.setConvert=yd();var bj=s2(),vl=Ut(),_j=vl.idSort,wj=vl.isLinked;Ye.id2name=vl.id2name;Ye.name2id=vl.name2id;Ye.cleanId=vl.cleanId;Ye.list=vl.list;Ye.listIds=vl.listIds;Ye.getFromId=vl.getFromId;Ye.getFromTrace=vl.getFromTrace;var nA=Wc();Ye.getAutoRange=nA.getAutoRange;Ye.findExtremes=nA.findExtremes;var Tj=1e-4;function M2(e){var r=(e[1]-e[0])*Tj;return[e[0]-r,e[1]+r]}Ye.coerceRef=function(e,r,t,a,n,i){var l=a.charAt(a.length-1),o=t._fullLayout._subplots[l+"axis"],s=a+"ref",u={};return n||(n=o[0]||(typeof i=="string"?i:i[0])),i||(i=n),o=o.concat(o.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:o.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},br.coerce(e,r,u,s)};Ye.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Ye.coercePosition=function(e,r,t,a,n,i){var l,o,s=Ye.getRefType(a);if(s!=="range")l=br.ensureNumber,o=t(n,i);else{var u=Ye.getFromId(r,a);i=u.fraction2r(i),o=t(n,i),l=u.cleanPos}e[n]=l(o)};Ye.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?br.ensureNumber:Ye.getFromId(r,t).cleanPos;return a(e)};Ye.redrawComponents=function(e,r){r=r||Ye.listIds(e);var t=e._fullLayout;function a(n,i,l,o){for(var s=Zc.getComponentMethod(n,i),u={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var h=t.dtick/2;e+=e+hl){var o=Number(t.substr(1));i.exactYears>l&&o%12===0?e=Ye.tickIncrement(e,"M6","reverse")+Va*1.5:i.exactMonths>l?e=Ye.tickIncrement(e,"M1","reverse")+Va*15.5:e-=$l;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&Xt(r._tmin),n;if(a){var i=Ye.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=br.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=br.simpleMap(n,r.l2r),e._isMinor=!0,Ye.prepTicks(e,t),a){var o=Xt(r.dtick),s=Xt(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?d2(u,f)?u===2*Mn&&f===2*Va&&(e.dtick=Mn):u===2*Mn&&f===3*Va?e.dtick=Mn:u===Mn&&!(r._input.minor||{}).nticks?e.dtick=Va:KM(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":d2(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?d2(u,f)||(e.dtick=KM(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function d2(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function KM(e,r){return Math.abs(e/r-1)<.001}Ye.prepTicks=function(e,r){var t=br.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?br.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=br.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ye.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,l=a):(i=a,l=a);var o=e[i].value,s=e[l].value,u=Math.abs(s-o),f=t||u,c=0;f>=Md?u>=Md&&u<=dj?c=u:c=Td:t===y2&&f>=Ad?u>=Ad&&u<=pj?c=u:c=y2:f>=kd?u>=kd&&u<=mj?c=u:c=Yu:t===Mn&&f>=Mn?c=Mn:f>=Va?c=Va:t===$l&&f>=$l?c=$l:t===Vi&&f>=Vi&&(c=Vi);var h;c>=u&&(c=u,h=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,y=0;yMn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Ye.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||br.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=br.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(w?0:1);x--){var M=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=x?r:br.extendFlat({},r,r.minor);if(M?Ye.prepMinorTicks(k,r,t):Ye.prepTicks(k,t),k.tickmode==="array"){x?(y=[],p=QM(r,!M)):(b=[],m=QM(r,!M));continue}if(k.tickmode==="sync"){y=[],p=Cj(r);continue}var A=M2(u),C=A[0],D=A[1],E=Xt(k.dtick),R=a==="log"&&!(E||k.dtick.charAt(0)==="L"),N=Ye.tickFirst(k,t);if(x){if(r._tmin=N,N=D:H<=D;H=Ye.tickIncrement(H,Y,f,n)){if(x&&G++,k.rangebreaks&&!f){if(H=h)break}if(y.length>d||H===I)break;I=H;var O={value:H};x?(R&&H!==(H|0)&&(O.simpleLabel=!0),i>1&&G%i&&(O.skipLabel=!0),y.push(O)):(O.minor=!0,b.push(O))}}if(!b||b.length<2)s=!1;else{var V=(b[1].value-b[0].value)*(o?-1:1);eee(V,r.tickformat)||(s=!1)}if(!s)_=y;else{var Z=y.concat(b);l&&y.length&&(Z=Z.slice(1)),Z=Z.sort(function(Ne,Ue){return Ne.value-Ue.value}).filter(function(Ne,Ue,Ve){return Ue===0||Ne.value!==Ve[Ue-1].value});var $=Z.map(function(Ne,Ue){return Ne.minor===void 0&&!Ne.skipLabel?Ue:null}).filter(function(Ne){return Ne!==null});$.forEach(function(Ne){s.map(function(Ue){var Ve=Ne+Ue;Ve>=0&&Ve-1;se--){if(y[se].drop){y.splice(se,1);continue}y[se].value=m2(y[se].value,r);var X=r.c2p(y[se].value);(be?j>X-U:jh||Deh&&(Ve.periodX=h),Den&&hTd)r/=Td,a=n(10),e.dtick="M"+12*Yi(r,a,_d);else if(i>Yu)r/=Yu,e.dtick="M"+Yi(r,1,jM);else if(i>Va){if(e.dtick=Yi(r,Va,e._hasDayOfWeekBreaks?[1,2,7,14]:Lj),!t){var l=Ye.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=br.dateTick0(e.calendar,2):e.tick0=br.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>Vi?e.dtick=Yi(r,Vi,jM):i>$c?e.dtick=Yi(r,$c,eA):i>qd?e.dtick=Yi(r,qd,eA):(a=n(10),e.dtick=Yi(r,a,_d))}else if(e.type==="log"){e.tick0=0;var s=br.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Yi(r,a,_d)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):S2(e)?(e.tick0=0,a=1,e.dtick=Yi(r,a,Dj)):(e.tick0=0,a=n(10),e.dtick=Yi(r,a,_d));if(e.dtick===0&&(e.dtick=1),!Xt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function sA(e){var r=e.dtick;if(e._tickexponent=0,!Xt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=Va&&n<=10||r>=Va*15)e._tickround="d";else if(r>=$c&&n<=16||r>=Vi)e._tickround="M";else if(r>=qd&&n<=19||r>=$c)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(Xt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Xt(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Vu(e.exponentformat)&&e.exponentformat!=="SI extended"&&!A2(s)||Vu(e.exponentformat)&&e.exponentformat==="SI extended"&&!k2(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ye.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(Xt(r))return br.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.substr(1));if(i==="M")return br.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?oA:lA,s=e+n*.01,u=br.roundUp(br.mod(s,1),o,t);return Math.floor(s)+Math.log(Bn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ye.tickFirst=function(e,r){var t=e.r2l||Number,a=br.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?y:null};if(i&&br.isArrayOrTypedArray(e.ticktext)){var c=br.simpleMap(e.range,e.r2l),h=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(u=0;u"+o;else{var u=jc(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function Pj(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=Qc(Math.pow(10,l),e,n,a);else if(Xt(i)||s==="D"&&(e.minorloglabels==="complete"||br.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(br.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),p=e.exponentformat;p==="power"||Vu(p)&&p!=="SI extended"&&A2(h)||Vu(p)&&p==="SI extended"&&k2(h)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":ls)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(h>0?"+":ls)+d:(r.text=Qc(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,br.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var m=String(r.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function Rj(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function zj(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function Nj(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Qc(r.x,e,n,a)}function Fj(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=Ij(i);if(l[1]>=100)r.text=Qc(br.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=ls+r.text)}}}else r.text=Qc(r.x,e,n,a)}function Ij(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var fA=["f","p","n","\u03BC","m","","k","M","G","T"],Hj=["q","r","y","z","a",...fA,"P","E","Z","Y","R","Q"],Vu=e=>["SI","SI extended","B"].includes(e);function A2(e){return e>14||e<-15}function k2(e){return e>32||e<-30}function Oj(e,r){return Vu(r)?!!(r==="SI extended"&&k2(e)||r!=="SI extended"&&A2(e)):!1}function Qc(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Xt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};sA(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,ls);var c=Math.pow(10,-i)/2;if(l==="none"&&(o=0),e=Math.abs(e),e"+p+"":l==="B"&&o===9?e+="B":Vu(l)&&(e+=l==="SI extended"?Hj[o/3+10]:fA[o/3+5])}return n?ls+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Yu}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return c===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-h}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},h=u[0],d=u[1];return(!h&&typeof h!="number"||c(h)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,h=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||h)&&(c||d)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return br.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ye.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&T2(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=br.simpleMap(u._r,u.r2l),f}}}))};Ye.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Ye.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),T2(r,p,a,!0),T2(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=jj(r,a));var m=h[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,_=r._mainMirrorPosition,w=r._vals=Ye.calcTicks(r),x=[r.mirror,b,_].join("_");for(i=0;i0?De.bottom-Ue:0,Ve))));var Me=0,Ze=0;if(r._shiftPusher&&(Me=Math.max(Ve,De.height>0?Ee==="l"?Ue-De.left:De.right-Ue:0),r.title.text!==s._dfltTitle[f]&&(Ze=(r._titleStandoff||0)+(r._titleScoot||0),Ee==="l"&&(Ze+=tA(r))),r._fullDepth=Math.max(Me,Ze)),r.automargin){He={x:0,y:0,r:0,l:0,t:0,b:0};var cr=[0,1],fr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ee==="b"?He[Ee]=r._depth:(He[Ee]=r._depth=Math.max(De.width>0?Ue-De.top:0,Ve),cr.reverse()),De.width>0){var oe=De.right-(r._offset+r._length);oe>0&&(He.xr=1,He.r=oe);var Se=r._offset-De.left;Se>0&&(He.xl=0,He.l=Se)}}else if(Ee==="l"?(r._depth=Math.max(De.height>0?Ue-De.left:0,Ve),He[Ee]=r._depth-fr):(r._depth=Math.max(De.height>0?De.right-Ue:0,Ve),He[Ee]=r._depth+fr,cr.reverse()),De.height>0){var Ie=De.bottom-(r._offset+r._length);Ie>0&&(He.yb=0,He.b=Ie);var We=r._offset-De.top;We>0&&(He.yt=1,He.t=We)}He[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[cr[0]],r.title.text!==s._dfltTitle[f]&&(He[Ee]+=tA(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Oe={x:0,y:0,r:0,l:0,t:0,b:0},Oe[Ne]=r.linewidth,r.mirror&&r.mirror!==!0&&(Oe[Ne]+=Ve),r.mirror===!0||r.mirror==="ticks"?Oe[c]=r._anchorAxis.domain[cr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Oe[c]=[r._counterDomainMin,r._counterDomainMax][cr[1]]))}Fe&&(ie=Zc.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(rA(He,r.automargin),rA(Oe,r.automargin)),Ou.autoMargin(e,q2(r),He),Ou.autoMargin(e,vA(r),Oe),Ou.autoMargin(e,hA(r),ie)}),br.syncOrAsync(xe)}};function rA(e,r){if(e){var t=Object.keys(ZM).reduce(function(a,n){return r.indexOf(n)!==-1&&ZM[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Bj(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(br.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,c=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(h){return Bu(n+e._offset+e.l2p(_2(h))+t,i+a)}:function(h){return Bu(i+a,n+e._offset+e.l2p(_2(h))+t)}};function _2(e){return e.periodX!==void 0?e.periodX:e.x}function Uj(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,h=Sd,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(c+=d*os,h+=(e.linewidth||0)/2),(i||l)&&(c+=(e.linewidth||0)/2,h+=Sd),s&&f==="top"&&(h-=d*(1-os)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[u?c:0,s?h:0]}Ye.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Ye.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(I){return a.indexOf(I)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),c=i("inside"),h=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,m=h?e.ticklen:0;if(c?m*=-1:f&&(m=0),h&&(d+=m,t)){var y=br.deg2rad(t);d=m*Math.cos(y)+1,p=m*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},_,w,x,M,k=0,A=e.side,C=e._id.charAt(0),D=e.tickangle,E;if(C==="x")E=!c&&A==="bottom"||c&&A==="top",M=E?1:-1,c&&(M*=-1),_=p*M,w=r+d*M,x=E?1:-.2,Math.abs(D)===90&&(c?x+=Xc:D===-90&&A==="bottom"?x=os:D===90&&A==="top"?x=Xc:x=.5,k=Xc/2*(D/90)),b.xFn=function(I){return I.dx+_+k*I.fontSize},b.yFn=function(I){return I.dy+w+I.fontSize*x},b.anchorFn=function(I,H){if(f){if(o)return"end";if(s)return"start"}return!Xt(H)||H===0||H===180?"middle":H*M<0!==c?"end":"start"},b.heightFn=function(I,H,G){return H<-60||H>60?-.5*G:e.side==="top"!==c?-G:0};else if(C==="y"){if(E=!c&&A==="left"||c&&A==="right",M=E?1:-1,c&&(M*=-1),_=d,w=p*M,x=0,!c&&Math.abs(D)===90&&(D===-90&&A==="left"||D===90&&A==="right"?x=os:x=.5),c){var R=Xt(D)?+D:0;if(R!==0){var N=br.deg2rad(R);k=Math.abs(Math.sin(N))*os*M,x=0}}b.xFn=function(I){return I.dx+r-(_+I.fontSize*x)*M+k*I.fontSize},b.yFn=function(I){return I.dy+w+I.fontSize*Xc},b.anchorFn=function(I,H){return Xt(H)&&Math.abs(H)===90?"middle":E?"end":"start"},b.heightFn=function(I,H,G){return e.side==="right"&&(H*=-1),H<-30?-G:H<30?-.5*G:0}}return b};function Dd(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ye.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,Dd);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return Jc.stroke(Bn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return Tn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Ed(r,[aA]),i.attr("transform",t.transFn)};Ye.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],l=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],o=t.counterAxis;if(o&&Ye.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;p--){var m=p?h:d;if(m){var y=m.selectAll("path."+a).data(p?l:i,Dd);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(b){return Jc.stroke(Bn.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return Tn.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}Ed(r,[x2,b2])}};Ye.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ye.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return _j(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Jc.stroke,r.zerolinecolor||Jc.defaultLine).style("stroke-width",Tn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Ed(r,[g2])};Ye.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(V){return V.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],c=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],Dd),h=[];c.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(V){var Z=Bn.select(this),$=e._promises.length;Z.call(is.positionText,s.xFn(V),s.yFn(V)).call(Tn.font,{family:V.font,size:V.fontSize,color:V.fontColor,weight:V.fontWeight,style:V.fontStyle,variant:V.fontVariant,textcase:V.fontTextcase,lineposition:V.fontLineposition,shadow:V.fontShadow}).text(V.text).call(is.convertToTspans,e),e._promises[$]?h.push(e._promises.pop().then(function(){d(Z,u)})):d(Z,u)}),Ed(r,[XM]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(V){Bn.select(this).select("text").call(is.positionText,s.xFn(V),s.yFn(V))});function d(V,Z){V.each(function($){var te=Bn.select(this),le=te.select(".text-math-group"),fe=s.anchorFn($,Z),he=t.transFn.call(te.node(),$)+(Xt(Z)&&+Z!=0?" rotate("+Z+","+s.xFn($)+","+(s.yFn($)-$.fontSize/2)+")":""),Q=is.lineCount(te),qe=Kc*$.fontSize,ve=s.heightFn($,Xt(Z)?+Z:0,(Q-1)*qe);if(ve&&(he+=Bu(0,ve)),le.empty()){var Ae=te.select("text");Ae.attr({transform:he,"text-anchor":fe}),Ae.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var se=Tn.bBox(le.node()).width,be=se*{end:-.5,start:.5}[fe];le.attr("transform",he+Bu(be,0))}})}r._adjustTickLabelsOverflow=function(){var V=r.ticklabeloverflow;if(!(!V||V==="allow")){var Z=V.indexOf("hide")!==-1,$=r._id.charAt(0)==="x",te=0,le=$?e._fullLayout.width:e._fullLayout.height;if(V.indexOf("domain")!==-1){var fe=br.simpleMap(r.range,r.r2l);te=r.l2p(fe[0])+r._offset,le=r.l2p(fe[1])+r._offset}var he=Math.min(te,le),Q=Math.max(te,le),qe=r.side,ve=1/0,Ae=-1/0;c.each(function(j){var X=Bn.select(this),ge=X.select(".text-math-group");if(ge.empty()){var ke=Tn.bBox(X.node()),xe=0;$?(ke.right>Q||ke.leftQ||ke.top+(r.tickangle?0:j.fontSize/4)r["_visibleLabelMin_"+fe._id]?X.style("display","none"):Q.K==="tick"&&!he&&X.node().style.display!=="none"&&X.style("display",null)})})})})},d(c,f+1?f:u);function p(){return h.length&&Promise.all(h)}var m=null;function y(){if(d(c,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var V=0,Z=[],$,te=1;c.each(function(He){V=Math.max(V,He.fontSize);var Oe=r.l2p(He.x),ie=w2(this),Me=Tn.bBox(ie.node());te=Math.max(te,is.lineCount(ie)),Z.push({top:0,bottom:10,height:10,left:Oe-Me.width/2,right:Oe+Me.width/2+2,width:Me.width+2})});var le=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,fe=o.length,he=Math.abs((o[fe-1].x-o[0].x)*r._m)/(fe-1),Q=le?he/2:he,qe=le?r.ticklen:V*1.25*te,ve=Math.sqrt(Math.pow(Q,2)+Math.pow(qe,2)),Ae=Q/ve,se=r.autotickangles.map(function(He){return He*Math.PI/180}),be=se.find(function(He){return Math.abs(Math.cos(He))<=Ae});be===void 0&&(be=se.reduce(function(He,Oe){return Math.abs(Math.cos(He))W*G&&(N=G,D[C]=E[C]=I[C])}var Y=Math.abs(N-R);Y-M>0?(Y-=M,M*=1+M/Y):M=0,r._id.charAt(0)!=="y"&&(M=-M),D[A]=w.p2r(w.r2p(E[A])+k*M),w.autorange==="min"||w.autorange==="max reversed"?(D[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(D[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=D}var O=br.syncOrAsync(b);return O&&O.then&&e._promises.push(O),O};function Wj(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,Dd);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Jc.stroke,r.dividercolor).style("stroke-width",Tn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ye.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function tA(e){var r=e.title.font.size,t=(e.title.text.match(is.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(os+t*Kc):t?r*(t+1)*Kc:r}function Xj(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(is.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*os:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(Xc+o*Kc));else{var s=jc(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ye.getPxPosition(e,r),c,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-l:f+l):(d=r._offset+r._length/2,h=r.side==="right"?f+l:f-l,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var y=Tn.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=l,vj.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}Ye.shouldShowZeroLine=function(e,r,t){var a=br.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Cd)&&(cA(r,0)||!Zj(e,r,t,a)||Jj(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return cA(e,t.x)})};function cA(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=gj:/%L/.test(r)?e>=yj:/%[SX]/.test(r)?e>=qd:/%M/.test(r)?e>=$c:/%[HI]/.test(r)?e>=Vi:/%p/.test(r)?e>=$l:/%[Aadejuwx]/.test(r)?e>=Va:/%[UVW]/.test(r)?e>=Mn:/%[Bbm]/.test(r)?e>=kd:/%[q]/.test(r)?e>=Ad:/%[Yy]/.test(r)?e>=Md:!0}});var mA=B((Sge,pA)=>{"use strict";pA.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var C2=B((Cge,yA)=>{"use strict";var ree=mA();yA.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),c;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(ree(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var xA=B((Lge,gA)=>{var tee={left:0,top:0};gA.exports=aee;function aee(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=nee(r);return t[0]=a-i.left,t[1]=n-i.top,t}function nee(e){return e===window||e===document||e===document.body?tee:e.getBoundingClientRect()}});var L2=B((Dge,bA)=>{"use strict";var iee=sg();function lee(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}bA.exports=iee&&lee()});var wA=B((Ege,_A)=>{"use strict";_A.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var AA=B((Pge,MA)=>{"use strict";var TA=Pe(),oee=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];MA.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=TA.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=TA.constrain(Math.floor(t*3),0,2),oee[t][r]}});var qA=B((Rge,kA)=>{"use strict";var see=Rc(),uee=Dh(),fee=Ac().getGraphDiv,cee=bc(),D2=kA.exports={};D2.wrapped=function(e,r,t){e=fee(e),e._fullLayout&&uee.clear(e._fullLayout._uid+cee.HOVERID),D2.raw(e,r,t)};D2.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&see.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var yi=B((zge,DA)=>{"use strict";var vee=xA(),E2=fg(),hee=L2(),dee=Pe().removeElement,pee=Aa(),ss=DA.exports={};ss.align=wA();ss.getCursor=AA();var CA=qA();ss.unhover=CA.wrapped;ss.unhoverRaw=CA.raw;ss.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,c,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,hee?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(w,x,M){return Math.abs(w)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===h?x=c:(x={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var k=c[M];!x[M]&&typeof k!="function"&&(x[M]=k)})),r.clickFn&&r.clickFn(a,x),d||h.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function LA(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}ss.coverSlip=LA;function SA(e){return vee(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Kl=B((Nge,EA)=>{"use strict";EA.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var zA=B((Fge,RA)=>{"use strict";var P2=Kl(),ev="data-savedcursor",PA="!!";RA.exports=function(r,t){var a=r.attr(ev);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var R2=aa(),mee=Nn();NA.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:mee.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:R2({editType:"legend"}),grouptitlefont:R2({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:R2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Rd=B(Pd=>{"use strict";Pd.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Pd.isVertical=function(r){return r.orientation!=="h"};Pd.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var I2=B((Oge,FA)=>{"use strict";var N2=yr(),An=Pe(),yee=ot(),gee=an(),xee=z2(),bee=xu(),F2=Rd();function _ee(e,r,t,a){var n=r[e]||{},i=yee.newContainer(t,e);function l(Y,O){return An.coerce(n,i,xee,Y,O)}var o=An.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(s){for(var u,f=function(Y,O){var V=u._input,Z=u;return An.coerce(V,Z,gee,Y,O)},c=t.font||{},h=An.coerceFont(l,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,m="normal",y=(t.shapes||[]).filter(function(Y){return Y.showlegend}),b=a.concat(y).filter(function(Y){return e===(Y.legend||"legend")}),_=0;_(e==="legend"?1:0));if(x===!1&&(t[e]=void 0),!(x===!1&&!n.uirevision)&&(l("uirevision",t.uirevision),x!==!1)){l("borderwidth");var M=l("orientation"),k=l("yref"),A=l("xref"),C=M==="h",D=k==="paper",E=A==="paper",R,N,I,H="left";C?(R=0,N2.getComponentMethod("rangeslider","isVisible")(r.xaxis)?D?(N=1.1,I="bottom"):(N=1,I="top"):D?(N=-.1,I="top"):(N=0,I="bottom")):(N=1,I="auto",E?R=1.02:(R=1,H="right")),An.coerce(n,i,{x:{valType:"number",editType:"legend",min:E?-2:0,max:E?3:1,dflt:R}},"x"),An.coerce(n,i,{y:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:N}},"y"),l("traceorder",m),F2.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",H),l("yanchor",I),l("maxheight"),l("valign"),An.noneOrAll(n,i,["x","y"]);var G=l("title.text");if(G){l("title.side",C?"left":"top");var W=An.extendFlat({},o,{size:An.bigFont(o.size)});An.coerceFont(l,"title.font",W)}}}}FA.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var Gu=yr(),O2=Pe(),wee=O2.pushUnique,H2=!0;IA.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,l=n.legend.itemdoubleclick,o=n.legend.groupclick;a===1&&i==="toggle"&&l==="toggleothers"&&H2&&t.data&&t._context.showTips&&O2.notifier(O2._(t,"Double-click on legend to isolate one trace"),"long"),H2=!1;var s;if(a===1?s=i:a===2&&(s=l),!s)return;var u=o==="togglegroup",f=n.hiddenlabels?n.hiddenlabels.slice():[],c=r.data()[0][0];if(c.groupTitle&&c.noClick)return;var h=t._fullData,d=(n.shapes||[]).filter(function(Ne){return Ne.showlegend}),p=h.concat(d),m=c.trace;m._isShape&&(m=m._fullInput);var y=m.legendgroup,b,_,w,x,M,k,A={},C=[],D=[],E=[];function R(Ne,Ue){var Ve=C.indexOf(Ne),De=A.visible;return De||(De=A.visible=[]),C.indexOf(Ne)===-1&&(C.push(Ne),Ve=C.length-1),De[Ve]=Ue,Ve}var N=(n.shapes||[]).map(function(Ne){return Ne._input}),I=!1;function H(Ne,Ue){N[Ne].visible=Ue,I=!0}function G(Ne,Ue){if(!(c.groupTitle&&!u)){var Ve=Ne._fullInput||Ne,De=Ve._isShape,He=Ve.index;He===void 0&&(He=Ve._index);var Oe=Ve.visible===!1?!1:Ue;De?H(He,Oe):R(He,Oe)}}var W=m.legend,Y=m._fullInput,O=Y&&Y._isShape;if(!O&&Gu.traceIs(m,"pie-like")){var V=c.label,Z=f.indexOf(V);if(s==="toggle")Z===-1?f.push(V):f.splice(Z,1);else if(s==="toggleothers"){var $=Z!==-1,te=[];for(b=0;b{"use strict";OA.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var VA=B((Vge,YA)=>{"use strict";var BA=yr(),Y2=Rd();YA.exports=function(r,t,a){var n=t._inHover,i=Y2.isGrouped(t),l=Y2.isReversed(t),o={},s=[],u=!1,f={},c=0,h=0,d,p;function m(Y,O,V){if(t.visible!==!1&&!(a&&Y!==t._id))if(O===""||!Y2.isGrouped(t)){var Z="~~i"+c;s.push(Z),o[Z]=[V],c++}else s.indexOf(O)===-1?(s.push(O),u=!0,o[O]=[V]):o[O].push(V)}for(d=0;dE&&(D=E)}A[d][0]._groupMinRank=D,A[d][0]._preGroupSort=d}var R=function(Y,O){return Y[0]._groupMinRank-O[0]._groupMinRank||Y[0]._preGroupSort-O[0]._preGroupSort},N=function(Y,O){return Y.trace.legendrank-O.trace.legendrank||Y._preSort-O._preSort};for(A.forEach(function(Y,O){Y[0]._preGroupSort=O}),A.sort(R),d=0;d{"use strict";var zd=Pe();function GA(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}us.formatPiePercent=function(r,t){var a=GA((r*100).toPrecision(3));return zd.numSeparate(a,t)+"%"};us.formatPieValue=function(r,t){var a=GA(r.toPrecision(10));return zd.numSeparate(a,t)};us.getFirstFilled=function(r,t){if(zd.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var Tee=Yr(),Mee=xr();UA.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Tee.pointStyle(r,a,n,t):Mee.fill(r,t.color)}});var Uu=B((Wge,JA)=>{"use strict";var XA=xr(),ZA=rv().castOption,Aee=WA();JA.exports=function(r,t,a,n){var i=a.marker.line,l=ZA(i.color,t.pts)||XA.defaultLine,o=ZA(i.width,t.pts)||0;r.call(Aee,t,a,n).style("stroke-width",o).call(XA.stroke,l)}});var W2=B((Xge,rk)=>{"use strict";var Ga=kr(),V2=yr(),za=Pe(),$A=za.strTranslate,kn=Yr(),Yn=xr(),G2=bn().extractOpts,Nd=wn(),kee=Uu(),qee=rv().castOption,See=B2(),KA=12,QA=5,fs=2,Cee=10,Wu=5;rk.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+See.itemGap*2)/2,s=$A(o,0),u=function(A,C,D,E){var R;if(A+1)R=A;else if(C&&C.width>0)R=C.width;else return 0;return i?E:Math.min(R,D)};r.each(function(A){var C=Ga.select(this),D=za.ensureSingle(C,"g","layers");D.style("opacity",A[0].trace.opacity);var E=a.indentation,R=a.valign,N=A[0].lineHeight,I=A[0].height;if(R==="middle"&&E===0||!N||!I)D.attr("transform",null);else{var H={top:1,bottom:-1}[R],G=H*(.5*(N-I+3))||0,W=a.indentation;D.attr("transform",$A(W,G))}var Y=D.selectAll("g.legendfill").data([A]);Y.enter().append("g").classed("legendfill",!0);var O=D.selectAll("g.legendlines").data([A]);O.enter().append("g").classed("legendlines",!0);var V=D.selectAll("g.legendsymbols").data([A]);V.enter().append("g").classed("legendsymbols",!0),V.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(k).each(h).each(p).each(d).each(y).each(x).each(w).each(f).each(c).each(b).each(_);function f(A){var C=jA(A),D=C.showFill,E=C.showLine,R=C.showGradientLine,N=C.showGradientFill,I=C.anyFill,H=C.anyLine,G=A[0],W=G.trace,Y,O,V=G2(W),Z=V.colorscale,$=V.reversescale,te=function(Ae){if(Ae.size())if(D)kn.fillGroupStyle(Ae,t,!0);else{var se="legendfill-"+W.uid;kn.gradient(Ae,t,se,U2($),Z,"fill")}},le=function(Ae){if(Ae.size()){var se="legendline-"+W.uid;kn.lineGroupStyle(Ae),kn.gradient(Ae,t,se,U2($),Z,"stroke")}},fe=Nd.hasMarkers(W)||!I?"M5,0":H?"M5,-2":"M5,-3",he=Ga.select(this),Q=he.select(".legendfill").selectAll("path").data(D||N?[A]:[]);if(Q.enter().append("path").classed("js-fill",!0),Q.exit().remove(),Q.attr("d",fe+"h"+l+"v6h-"+l+"z").call(te),E||R){var qe=u(void 0,W.line,Cee,QA);O=za.minExtend(W,{line:{width:qe}}),Y=[za.minExtend(G,{trace:O})]}var ve=he.select(".legendlines").selectAll("path").data(E||R?[Y]:[]);ve.enter().append("path").classed("js-line",!0),ve.exit().remove(),ve.attr("d",fe+(R?"l"+l+",0.0001":"h"+l)).call(E?kn.lineGroupStyle:le)}function c(A){var C=jA(A),D=C.anyFill,E=C.anyLine,R=C.showLine,N=C.showMarker,I=A[0],H=I.trace,G=!N&&!E&&!D&&Nd.hasText(H),W,Y;function O(Q,qe,ve,Ae){var se=za.nestedProperty(H,Q).get(),be=za.isArrayOrTypedArray(se)&&qe?qe(se):se;if(i&&be&&Ae!==void 0&&(be=Ae),ve){if(beve[1])return ve[1]}return be}function V(Q){return I._distinct&&I.index&&Q[I.index]?Q[I.index]:Q[0]}if(N||G||R){var Z={},$={};if(N){Z.mc=O("marker.color",V),Z.mx=O("marker.symbol",V),Z.mo=O("marker.opacity",za.mean,[.2,1]),Z.mlc=O("marker.line.color",V),Z.mlw=O("marker.line.width",za.mean,[0,5],fs),$.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var te=O("marker.size",za.mean,[2,16],KA);Z.ms=te,$.marker.size=te}R&&($.line={width:O("line.width",V,[0,10],QA)}),G&&(Z.tx="Aa",Z.tp=O("textposition",V),Z.ts=10,Z.tc=O("textfont.color",V),Z.tf=O("textfont.family",V),Z.tw=O("textfont.weight",V),Z.ty=O("textfont.style",V),Z.tv=O("textfont.variant",V),Z.tC=O("textfont.textcase",V),Z.tE=O("textfont.lineposition",V),Z.tS=O("textfont.shadow",V)),W=[za.minExtend(I,Z)],Y=za.minExtend(H,$),Y.selectedpoints=null,Y.texttemplate=null}var le=Ga.select(this).select("g.legendpoints"),fe=le.selectAll("path.scatterpts").data(N?W:[]);fe.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),fe.exit().remove(),fe.call(kn.pointStyle,Y,t),N&&(W[0].mrc=3);var he=le.selectAll("g.pointtext").data(G?W:[]);he.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),he.exit().remove(),he.selectAll("text").call(kn.textPointStyle,Y,t)}function h(A){var C=A[0].trace,D=C.type==="waterfall";if(A[0]._distinct&&D){var E=A[0].trace[A[0].dir].marker;return A[0].mc=E.color,A[0].mlw=E.line.width,A[0].mlc=E.line.color,m(A,this,"waterfall")}var R=[];C.visible&&D&&(R=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=Ga.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(R);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(I){var H=Ga.select(this),G=C[I[0]].marker,W=u(void 0,G.line,Wu,fs);H.attr("d",I[1]).style("stroke-width",W+"px").call(Yn.fill,G.color),W&&H.call(Yn.stroke,G.line.color)})}function d(A){m(A,this)}function p(A){m(A,this,"funnel")}function m(A,C,D){var E=A[0].trace,R=E.marker||{},N=R.line||{},I=R.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",H=D?E.visible&&E.type===D:V2.traceIs(E,"bar"),G=Ga.select(C).select("g.legendpoints").selectAll("path.legend"+D).data(H?[A]:[]);G.enter().append("path").classed("legend"+D,!0).attr("d",I).attr("transform",s),G.exit().remove(),G.each(function(W){var Y=Ga.select(this),O=W[0],V=u(O.mlw,R.line,Wu,fs);Y.style("stroke-width",V+"px");var Z=O.mcc;if(!a._inHover&&"mc"in O){var $=G2(R),te=$.mid;te===void 0&&(te=($.max+$.min)/2),Z=kn.tryColorscale(R,"")(te)}var le=Z||O.mc||R.color,fe=R.pattern,he=kn.getPatternAttr,Q=fe&&(he(fe.shape,0,"")||he(fe.path,0,""));if(Q){var qe=he(fe.bgcolor,0,null),ve=he(fe.fgcolor,0,null),Ae=fe.fgopacity,se=ek(fe.size,8,10),be=ek(fe.solidity,.5,1),U="legend-"+E.uid;Y.call(kn.pattern,"legend",t,U,Q,se,be,Z,fe.fillmode,qe,ve,Ae)}else Y.call(Yn.fill,le);V&&Yn.stroke(Y,O.mlc||N.color)})}function y(A){var C=A[0].trace,D=Ga.select(this).select("g.legendpoints").selectAll("path.legendbox").data(C.visible&&V2.traceIs(C,"box-violin")?[A]:[]);D.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.each(function(){var E=Ga.select(this);if((C.boxpoints==="all"||C.points==="all")&&Yn.opacity(C.fillcolor)===0&&Yn.opacity((C.line||{}).color)===0){var R=za.minExtend(C,{marker:{size:i?KA:za.constrain(C.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(kn.pointStyle,R,t)}else{var N=u(void 0,C.line,Wu,fs);E.style("stroke-width",N+"px").call(Yn.fill,C.fillcolor),N&&Yn.stroke(E,C.line.color)}})}function b(A){var C=A[0].trace,D=Ga.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(C.visible&&C.type==="candlestick"?[A,A]:[]);D.enter().append("path").classed("legendcandle",!0).attr("d",function(E,R){return R?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var N=Ga.select(this),I=C[R?"increasing":"decreasing"],H=u(void 0,I.line,Wu,fs);N.style("stroke-width",H+"px").call(Yn.fill,I.fillcolor),H&&Yn.stroke(N,I.line.color)})}function _(A){var C=A[0].trace,D=Ga.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(C.visible&&C.type==="ohlc"?[A,A]:[]);D.enter().append("path").classed("legendohlc",!0).attr("d",function(E,R){return R?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var N=Ga.select(this),I=C[R?"increasing":"decreasing"],H=u(void 0,I.line,Wu,fs);N.style("fill","none").call(kn.dashLine,I.line.dash,H),H&&Yn.stroke(N,I.line.color)})}function w(A){M(A,this,"pie")}function x(A){M(A,this,"funnelarea")}function M(A,C,D){var E=A[0],R=E.trace,N=D?R.visible&&R.type===D:V2.traceIs(R,D),I=Ga.select(C).select("g.legendpoints").selectAll("path.legend"+D).data(N?[A]:[]);if(I.enter().append("path").classed("legend"+D,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),I.exit().remove(),I.size()){var H=R.marker||{},G=u(qee(H.line.width,E.pts),H.line,Wu,fs),W="pieLike",Y=za.minExtend(R,{marker:{line:{width:G}}},W),O=za.minExtend(E,{trace:Y},W);kee(I,O,Y,t)}}function k(A){var C=A[0].trace,D,E=[];if(C.visible)switch(C.type){case"histogram2d":case"heatmap":E=[["M-15,-2V4H15V-2Z"]],D=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":E=[["M-6,-6V6H6V-6Z"]],D=!0;break;case"densitymapbox":case"densitymap":E=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],D="radial";break;case"cone":E=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],D=!1;break;case"streamtube":E=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],D=!1;break;case"surface":E=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],D=!0;break;case"mesh3d":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!1;break;case"volume":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!0;break;case"isosurface":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],D=!1;break}var R=Ga.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(E);R.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N,I){var H=Ga.select(this),G=G2(C),W=G.colorscale,Y=G.reversescale,O=function(te){if(te.size()){var le="legendfill-"+C.uid;kn.gradient(te,t,le,U2(Y,D==="radial"),W,"fill")}},V;if(W){if(!D){var $=W.length;V=I===0?W[Y?$-1:0][1]:I===1?W[Y?0:$-1][1]:W[Math.floor(($-1)/2)][1]}}else{var Z=C.vertexcolor||C.facecolor||C.color;V=za.isArrayOrTypedArray(Z)?Z[I]||Z[0]:Z}H.attr("d",N[0]),V?H.call(Yn.fill,V):H.call(O)})}};function U2(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function jA(e){var r=e[0].trace,t=r.contours,a=Nd.hasLines(r),n=Nd.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function ek(e,r,t){return e&&za.isArrayOrTypedArray(e)?r:e>t?t:e}});var $2=B((Zge,ck)=>{"use strict";var fn=kr(),Zt=Pe(),Z2=Pt(),Ju=yr(),tk=Rc(),X2=yi(),Jt=Yr(),Id=xr(),cs=da(),ak=HA(),jt=B2(),J2=Pa(),uk=J2.LINE_SPACING,Zu=J2.FROM_TL,nk=J2.FROM_BR,ik=VA(),Lee=W2(),lk=Rd(),Xu=1,Dee=/^legend[0-9]*$/;ck.exports=function(r,t){if(t)ok(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=fn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(Dee)&&n.indexOf(c)===-1&&u.remove()});for(var l=0;l1)}var p=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),Z2.autoMargin(e,n);var m=Zt.ensureSingle(l,"g",n,function(C){o||C.attr("pointer-events","all")}),y=Zt.ensureSingleById(a._topdefs,"clipPath",i,function(C){C.append("rect")}),b=Zt.ensureSingle(m,"rect","bg",function(C){C.attr("shape-rendering","crispEdges")});b.call(Id.stroke,t.bordercolor).call(Id.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var _=Zt.ensureSingle(m,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var x;w.text?(x=Zt.ensureSingle(_,"text",n+"titletext"),x.attr("text-anchor","start").call(Jt.font,w.font).text(w.text),Hd(x,_,e,t,Xu)):_.selectAll("."+n+"titletext").remove();var M=Zt.ensureSingle(m,"rect","scrollbar",function(C){C.attr(jt.scrollBarEnterAttrs).call(Id.fill,jt.scrollBarColor)}),k=_.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var A=k.selectAll("g.traces").data(Zt.identity);A.enter().append("g").attr("class","traces"),A.exit().remove(),A.style("opacity",function(C){var D=C[0].trace;return Ju.traceIs(D,"pie-like")?p.indexOf(C[0].label)!==-1?.5:1:D.visible==="legendonly"?.5:1}).each(function(){fn.select(this).call(Pee,e,t)}).call(Lee,e,t).each(function(){o||fn.select(this).call(Ree,e,n)}),Zt.syncOrAsync([Z2.previousPromises,function(){return Fee(e,k,A,t)},function(){var C=a._size,D=t.borderwidth,E=t.xref==="paper",R=t.yref==="paper";if(w.text&&Eee(x,t,D),!o){var N,I;E?N=C.l+C.w*t.x-Zu[Od(t)]*t._width:N=a.width*t.x-Zu[Od(t)]*t._width,R?I=C.t+C.h*(1-t.y)-Zu[Bd(t)]*t._effHeight:I=a.height*(1-t.y)-Zu[Bd(t)]*t._effHeight;var H=Iee(e,n,N,I);if(H)return;if(a.margin.autoexpand){var G=N,W=I;N=E?Zt.constrain(N,0,a.width-t._width):G,I=R?Zt.constrain(I,0,a.height-t._effHeight):W,N!==G&&Zt.log("Constrain "+n+".x to make legend fit inside graph"),I!==W&&Zt.log("Constrain "+n+".y to make legend fit inside graph")}Jt.setTranslate(m,N,I)}if(M.on(".drag",null),m.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var Y=t._effHeight;o&&(Y=t._height),b.attr({width:t._width-D,height:Y-D,x:D/2,y:D/2}),Jt.setTranslate(_,0,0),y.select("rect").attr({width:t._width-2*D,height:Y-2*D,x:D,y:D}),Jt.setClipUrl(_,i,e),Jt.setRect(M,0,0,0,0),delete t._scrollY}else{var O=Math.max(jt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),V=t._effHeight-O-2*jt.scrollBarMargin,Z=t._height-t._effHeight,$=V/Z,te=Math.min(t._scrollY||0,Z);b.attr({width:t._width-2*D+jt.scrollBarWidth+jt.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),y.select("rect").attr({width:t._width-2*D+jt.scrollBarWidth+jt.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+te}),Jt.setClipUrl(_,i,e),se(te,O,$),m.on("wheel",function(){te=Zt.constrain(t._scrollY+fn.event.deltaY/V*Z,0,Z),se(te,O,$),te!==0&&te!==Z&&fn.event.preventDefault()});var le,fe,he,Q=function(ge,ke,xe){var ze=(xe-ke)/$+ge;return Zt.constrain(ze,0,Z)},qe=function(ge,ke,xe){var ze=(ke-xe)/$+ge;return Zt.constrain(ze,0,Z)},ve=fn.behavior.drag().on("dragstart",function(){var ge=fn.event.sourceEvent;ge.type==="touchstart"?le=ge.changedTouches[0].clientY:le=ge.clientY,he=te}).on("drag",function(){var ge=fn.event.sourceEvent;ge.buttons===2||ge.ctrlKey||(ge.type==="touchmove"?fe=ge.changedTouches[0].clientY:fe=ge.clientY,te=Q(he,le,fe),se(te,O,$))});M.call(ve);var Ae=fn.behavior.drag().on("dragstart",function(){var ge=fn.event.sourceEvent;ge.type==="touchstart"&&(le=ge.changedTouches[0].clientY,he=te)}).on("drag",function(){var ge=fn.event.sourceEvent;ge.type==="touchmove"&&(fe=ge.changedTouches[0].clientY,te=qe(he,le,fe),se(te,O,$))});_.call(Ae)}function se(ge,ke,xe){t._scrollY=e._fullLayout[n]._scrollY=ge,Jt.setTranslate(_,0,-ge),Jt.setRect(M,t._width,jt.scrollBarMargin+ge*xe,jt.scrollBarWidth,ke),y.select("rect").attr("y",D+ge)}if(e._context.edits.legendPosition){var be,U,j,X;m.classed("cursor-move",!0),X2.init({element:m.node(),gd:e,prepFn:function(ge){if(ge.target!==M.node()){var ke=Jt.getTranslate(m);j=ke.x,X=ke.y}},moveFn:function(ge,ke){if(j!==void 0&&X!==void 0){var xe=j+ge,ze=X+ke;Jt.setTranslate(m,xe,ze),be=X2.align(xe,t._width,C.l,C.l+C.w,t.xanchor),U=X2.align(ze+t._height,-t._height,C.t+C.h,C.t,t.yanchor)}},doneFn:function(){if(be!==void 0&&U!==void 0){var ge={};ge[n+".x"]=be,ge[n+".y"]=U,Ju.call("_guiRelayout",e,ge)}},clickFn:function(ge,ke){var xe=l.selectAll("g.traces").filter(function(){var ze=this.getBoundingClientRect();return ke.clientX>=ze.left&&ke.clientX<=ze.right&&ke.clientY>=ze.top&&ke.clientY<=ze.bottom});xe.size()>0&&fk(e,m,xe,ge,ke)}})}}],e)}}function Fd(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function fk(e,r,t,a,n){var i=t.data()[0][0].trace,l={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(l.group=i._group),Ju.traceIs(i,"pie-like")&&(l.label=t.datum()[0].label);var o=tk.triggerHandler(e,"plotly_legendclick",l);if(a===1){if(o===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&ak(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=tk.triggerHandler(e,"plotly_legenddoubleclick",l);s!==!1&&o!==!1&&ak(t,e,a)}}function Pee(e,r,t){var a=Yd(t),n=e.data()[0][0],i=n.trace,l=Ju.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Zt.templateString(u,i._meta))));var c=Zt.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Jt.font,f).text(o?sk(u,s):u);var h=t.indentation+t.itemwidth+jt.itemGap*2;cs.positionText(c,h,0),o?c.call(cs.makeEditable,{gd:r,text:u}).call(Hd,e,r,t).on("edit",function(d){this.text(sk(d,s)).call(Hd,e,r,t);var p=n.trace._fullInput||{},m={};return m.name=d,p._isShape?Ju.call("_guiRelayout",r,"shapes["+i.index+"].name",m.name):Ju.call("_guiRestyle",r,m,i.index)}):Hd(c,e,r,t)}function sk(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function Ree(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Zt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(Id.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),fk(r,o,e,i,fn.event)}}))}function Hd(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),cs.convertToTspans(e,t,function(){zee(r,t,a,n)})}function zee(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),l=i.node(),o=Yd(t);t||(t=r._fullLayout[o]);var s=t.borderwidth,u;a===Xu?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var f=u.size*uk,c,h;if(l){var d=Jt.bBox(l);c=d.height,h=d.width,a===Xu?Jt.setTranslate(i,s,s+c*.75):Jt.setTranslate(i,0,c*.25)}else{var p="."+o+(a===Xu?"title":"")+"text",m=e.select(p),y=cs.lineCount(m),b=m.node();if(c=f*y,h=b?Jt.bBox(b).width:0,a===Xu)t.title.side==="left"&&(h+=jt.itemGap*2),cs.positionText(m,s+jt.titlePad,s+f);else{var _=jt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(_=jt.itemGap,h-=t.indentation+t.itemwidth),cs.positionText(m,_,-f*((y-1)/2-.3))}}a===Xu?(t._titleWidth=h,t._titleHeight=c):(n.lineHeight=f,n.height=Math.max(c,16)+3,n.width=h)}function Nee(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function Fee(e,r,t,a){var n=e._fullLayout,i=Yd(a);a||(a=n[i]);var l=n._size,o=lk.isVertical(a),s=lk.isGrouped(a),u=a.entrywidthmode==="fraction",f=a.borderwidth,c=2*f,h=jt.itemGap,d=a.indentation+a.itemwidth+h*2,p=2*(f+h),m=Bd(a),y=a.y<0||a.y===0&&m==="top",b=a.y>1||a.y===1&&m==="bottom",_=a.tracegroupgap,w={};let{orientation:x,yref:M}=a,{maxheight:k}=a,A=y||b||x!=="v"||M!=="paper";k||(k=A?.5:1);let C=A?n.height:l.h;a._maxHeight=Math.max(k>1?k:k*C,30);var D=0;a._width=0,a._height=0;var E=Nee(a);if(o)t.each(function(se){var be=se[0].height;Jt.setTranslate(this,f+E[0],f+E[1]+a._height+be/2+h),a._height+=be,a._width=Math.max(a._width,se[0].width)}),D=d+a._width,a._width+=h+d+c,a._height+=p,s&&(r.each(function(se,be){Jt.setTranslate(this,0,be*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=Od(a),N=a.x<0||a.x===0&&R==="right",I=a.x>1||a.x===1&&R==="left",H=b||y,G=n.width/2;a._maxWidth=Math.max(N?H&&R==="left"?l.l+l.w:G:I?H&&R==="right"?l.r+l.w:G:l.w,2*d);var W=0,Y=0;t.each(function(se){var be=Fd(se,a,d);W=Math.max(W,be),Y+=be}),D=null;var O=0;if(s){var V=0,Z=0,$=0;r.each(function(){var se=0,be=0;fn.select(this).selectAll("g.traces").each(function(j){var X=Fd(j,a,d),ge=j[0].height;Jt.setTranslate(this,E[0],E[1]+f+h+ge/2+be),be+=ge,se=Math.max(se,X),w[j[0].trace.legendgroup]=se});var U=se+h;Z>0&&U+f+Z>a._maxWidth?(O=Math.max(O,Z),Z=0,$+=V+_,V=be):V=Math.max(V,be),Jt.setTranslate(this,Z,$),Z+=U}),a._width=Math.max(O,Z)+f,a._height=$+V+p}else{var te=t.size(),le=Y+c+(te-1)*h=a._maxWidth&&(O=Math.max(O,qe),he=0,Q+=fe,a._height+=fe,fe=0),Jt.setTranslate(this,E[0]+f+he,E[1]+f+Q+be/2+h),qe=he+U+h,he+=j,fe=Math.max(fe,be)}),le?(a._width=he+c,a._height=fe+p):(a._width=Math.max(O,qe)+c,a._height+=fe+p)}}a._width=Math.ceil(Math.max(a._width+E[0],a._titleWidth+2*(f+jt.titlePad))),a._height=Math.ceil(Math.max(a._height+E[1],a._titleHeight+2*(f+jt.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ve=e._context.edits,Ae=ve.legendText||ve.legendPosition;t.each(function(se){var be=fn.select(this).select("."+i+"toggle"),U=se[0].height,j=se[0].trace.legendgroup,X=Fd(se,a,d);s&&j!==""&&(X=w[j]);var ge=Ae?d:D||X;!o&&!u&&(ge+=h/2),Jt.setRect(be,0,-U/2,ge,U)})}function Iee(e,r,t,a){var n=e._fullLayout,i=n[r],l=Od(i),o=Bd(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return Z2.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Zu[l],r:i._width*nk[l],b:i._effHeight*nk[o],t:i._effHeight*Zu[o]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=h[c]:e._fullLayout._reservedMargin[r][f]=h[f]}function Od(e){return Zt.isRightAnchor(e)?"right":Zt.isCenterAnchor(e)?"center":"left"}function Bd(e){return Zt.isBottomAnchor(e)?"bottom":Zt.isMiddleAnchor(e)?"middle":"top"}function Yd(e){return e._id||"legend"}});var e3=B(j2=>{"use strict";var vs=kr(),hl=zr(),vk=zn(),St=Pe(),Hee=St.pushUnique,K2=St.strTranslate,Oee=St.strRotate,Bee=Rc(),Vn=da(),Yee=zA(),Gi=Yr(),la=xr(),Vd=yi(),Ui=Jr(),Vee=Aa().zindexSeparator,Ku=yr(),gi=Hi(),hs=bc(),Gee=I2(),Uee=$2(),bk=hs.YANGLE,Q2=Math.PI*bk/180,Wee=1/Math.sin(Q2),Xee=Math.cos(Q2),Zee=Math.sin(Q2),xt=hs.HOVERARROWSIZE,Or=hs.HOVERTEXTPAD,hk={box:!0,ohlc:!0,violin:!0,candlestick:!0},Jee={scatter:!0,scattergl:!0,splom:!0};function dk(e,r){return e.distance-r.distance}j2.hover=function(r,t,a,n){r=St.getGraphDiv(r);var i=t.target;St.throttle(r._fullLayout._uid+hs.HOVERID,hs.HOVERMINTIME,function(){$ee(r,t,a,n,i)})};j2.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=Ak(n),l=kk(n),o=r.map(function(y){var b=y._x0||y.x0||y.x||0,_=y._x1||y.x1||y.x||0,w=y._y0||y.y0||y.y||0,x=y._y1||y.y1||y.y||0,M=y.eventData;if(M){var k=Math.min(b,_),A=Math.max(b,_),C=Math.min(w,x),D=Math.max(w,x),E=y.trace;if(Ku.traceIs(E,"gl3d")){var R=n._fullLayout[E.scene]._scene.container,N=R.offsetLeft,I=R.offsetTop;k+=N,A+=N,C+=I,D+=I}M.bbox={x0:k+l,x1:A+l,y0:C+i,y1:D+i},t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:y.color||la.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:M}}),s=!1,u=wk(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||la.background,container:vs.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,h=0,d=0;f.sort(function(y,b){return y.y0-b.y0}).each(function(y,b){var _=y.y0-y.by/2;_-cA[0]._length||X<0||X>C[0]._length)return Vd.unhoverRaw(e,r)}if(r.pointerX=j+A[0]._offset,r.pointerY=X+C[0]._offset,"xval"in r?W=gi.flat(i,r.xval):W=gi.p2c(A,j),"yval"in r?Y=gi.flat(i,r.yval):Y=gi.p2c(C,X),!hl(W[0])||!hl(Y[0]))return St.warn("Fx.hover failed",r,e),Vd.unhoverRaw(e,r)}var xe=1/0;function ze(gr,ft){for(V=0;Vve&&(H.splice(0,ve),xe=H[0].distance),c&&I!==0&&H.length===0){qe.distance=I,qe.index=!1;var Tt=$._module.hoverPoints(qe,he,Q,"closest",{hoverLayer:o._hoverlayer});if(Tt&&(Tt=Tt.filter(function(it){return it.spikeDistance<=I})),Tt&&Tt.length){var Ha,ca=Tt.filter(function(it){return it.xa.showspikes&&it.xa.spikesnap!=="hovered data"});if(ca.length){var ni=ca[0];hl(ni.x0)&&hl(ni.y0)&&(Ha=Ee(ni),(!Ae.vLinePoint||Ae.vLinePoint.spikeDistance>Ha.spikeDistance)&&(Ae.vLinePoint=Ha))}var ii=Tt.filter(function(it){return it.ya.showspikes&&it.ya.spikesnap!=="hovered data"});if(ii.length){var ta=ii[0];hl(ta.x0)&&hl(ta.y0)&&(Ha=Ee(ta),(!Ae.hLinePoint||Ae.hLinePoint.spikeDistance>Ha.spikeDistance)&&(Ae.hLinePoint=Ha))}}}}}ze();function Fe(gr,ft,Wr){for(var wt=null,Et=1/0,ct,Tt=0;Tt0&&Math.abs(gr.distance)Se-1;$e--)vr(H[$e]);H=Ge,De()}var Re=e._hoverdata,ne=[],ce=Ak(e),Le=kk(e);for(O=0;O1||H.length>1)||h==="closest"&&se&&H.length>1,ga=la.combine(o.plot_bgcolor||la.background,o.paper_bgcolor),xa=wk(H,{gd:e,hovermode:h,rotateLabels:Dt,bgColor:ga,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),Gt=xa.hoverLabels;if(gi.isUnifiedHover(h)||(Qee(Gt,Dt,o,xa.commonLabelBoundingBox),Mk(Gt,Dt,o._invScaleX,o._invScaleY)),n&&n.tagName){var Ka=Ku.getComponentMethod("annotations","hasClickToShow")(e,ne);Yee(vs.select(n),Ka?"pointer":"")}!n||a||!rre(e,r,Re)||(Re&&e.emit("plotly_unhover",{event:r,points:Re}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:A,yaxes:C,xvals:W,yvals:Y}))}function _k(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Kee=/([\s\S]*)<\/extra>/;function wk(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||hs.HOVERFONT,c=r.fontSize||hs.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,m=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,_=e[0],w=_.xa,x=_.ya,M=n.charAt(0),k=M+"Label",A=_[k];if(A===void 0&&w.type==="multicategory")for(var C=0;Ca.width-Le&&(Ce=a.width-Le),Se.attr("d","M"+(Re-Ce)+",0L"+(Re-Ce+xt)+","+ce+xt+"H"+Le+"v"+ce+(Or*2+$e.height)+"H"+-Le+"V"+ce+xt+"H"+(Re-Ce-xt)+"Z"),Re=Ce,V.minX=Re-Le,V.maxX=Re+Le,w.side==="top"?(V.minY=ne-(Or*2+$e.height),V.maxY=ne-Or):(V.minY=ne+Or,V.maxY=ne+(Or*2+$e.height))}else{var or,lr,ar;x.side==="right"?(or="start",lr=1,ar="",Re=w._offset+w._length):(or="end",lr=-1,ar="-",Re=w._offset),ne=x._offset+(_.y0+_.y1)/2,Ie.attr("text-anchor",or),Se.attr("d","M0,0L"+ar+xt+","+xt+"V"+(Or+$e.height/2)+"h"+ar+(Or*2+$e.width)+"V-"+(Or+$e.height/2)+"H"+ar+xt+"V-"+xt+"Z"),V.minY=ne-(Or+$e.height/2),V.maxY=ne+(Or+$e.height/2),x.side==="right"?(V.minX=Re+xt,V.maxX=Re+xt+(Or*2+$e.width)):(V.minX=Re-xt-(Or*2+$e.width),V.maxX=Re-xt);var Ar=$e.height/2,Br=E-$e.top-Ar,tt="clip"+a._uid+"commonlabel"+x._id,jr;if(Re<$e.width+2*Or+xt){jr="M-"+(xt+Or)+"-"+Ar+"h-"+($e.width-Or)+"V"+Ar+"h"+($e.width-Or)+"Z";var ra=$e.width-Re+Or;Vn.positionText(Ie,ra,Br),or==="end"&&Ie.selectAll("tspan").each(function(){var _t=vs.select(this),Dt=Gi.tester.append("text").text(_t.text()).call(Gi.font,vr),ga=$u(t,Dt.node());Math.round(ga.width)=0?Ze=He:Oe+xe=0?Ze=Oe:ie+xe=0?cr=Ve:De+ze=0?cr=De:Me+ze=0,(oe.idealAlign==="top"||!_t)&&Dt?(ar-=Br/2,oe.anchor="end"):_t?(ar+=Br/2,oe.anchor="start"):oe.anchor="middle",oe.crossPos=ar;else{if(oe.pos=ar,_t=lr+Ar/2+It<=R,Dt=lr-Ar/2-It>=0,(oe.idealAlign==="left"||!_t)&&Dt)lr-=Ar/2,oe.anchor="end";else if(_t)lr+=Ar/2,oe.anchor="start";else{oe.anchor="middle";var ga=It/2,xa=lr+ga-R,Gt=lr-ga;xa>0&&(lr-=xa),Gt<0&&(lr+=-Gt)}oe.crossPos=lr}ne.attr("text-anchor",oe.anchor),Le&&ce.attr("text-anchor",oe.anchor),Se.attr("transform",K2(lr,ar)+(i?Oee(bk):""))}),{hoverLabels:fr,commonLabelBoundingBox:V}}function pk(e,r,t,a,n,i){var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=St.templateString(e.name,e.trace._meta)),l=gk(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l);var f=e.hovertemplate||!1;if(f){var c=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(c[s+"other"]=c[s+"Val"],c[s+"otherLabel"]=c[s+"Label"]),o=St.hovertemplateString(f,c,a._d3locale,e.eventData[0]||{},e.trace._meta),o=o.replace(Kee,function(h,d){return l=gk(d,e.nameLength),""})}return[o,l]}function Qee(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,c=a.minX,h=a.maxX,d=a.minY,p=a.maxY,m=function(W){return W*t._invScaleX},y=function(W){return W*t._invScaleY};e.each(function(W){var Y=W[n],O=W[i],V=Y._id.charAt(0)==="x",Z=Y.range;f===0&&Z&&Z[0]>Z[1]!==V&&(o=-1);var $=0,te=V?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var le=Tk(W,r),fe=W.anchor,he=fe==="end"?-1:1,Q,qe;if(fe==="middle")Q=W.crossPos+(V?y(le.y-W.by/2):m(W.bx/2+W.tx2width/2)),qe=Q+(V?y(W.by):m(W.bx));else if(V)Q=W.crossPos+y(xt+le.y)-y(W.by/2-xt),qe=Q+y(W.by);else{var ve=m(he*xt+le.x),Ae=ve+m(he*W.bx);Q=W.crossPos+Math.min(ve,Ae),qe=W.crossPos+Math.max(ve,Ae)}V?d!==void 0&&p!==void 0&&Math.min(qe,p)-Math.max(Q,d)>1&&(O.side==="left"?($=O._mainLinePosition,te=t.width):te=O._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(qe,h)-Math.max(Q,c)>1&&(O.side==="top"?($=O._mainLinePosition,te=t.height):te=O._mainLinePosition)}u[f++]=[{datum:W,traceIndex:W.trace.index,dp:0,pos:W.pos,posref:W.posref,size:W.by*(V?Wee:1)/2,pmin:$,pmax:te}]}),u.sort(function(W,Y){return W[0].posref-Y[0].posref||o*(Y[0].traceIndex-W[0].traceIndex)});var b,_,w,x,M,k,A;function C(W){var Y=W[0],O=W[W.length-1];if(_=Y.pmin-Y.pos-Y.dp+Y.size,w=O.pos+O.dp+O.size-Y.pmax,_>.01){for(M=W.length-1;M>=0;M--)W[M].dp+=_;b=!1}if(!(w<.01)){if(_<-.01){for(M=W.length-1;M>=0;M--)W[M].dp-=w;b=!1}if(b){var V=0;for(x=0;xY.pmax&&V++;for(x=W.length-1;x>=0&&!(V<=0);x--)k=W[x],k.pos>Y.pmax-1&&(k.del=!0,V--);for(x=0;x=0;M--)W[M].dp-=w;for(x=W.length-1;x>=0&&!(V<=0);x--)k=W[x],k.pos+k.dp+k.size>Y.pmax&&(k.del=!0,V--)}}}for(;!b&&l<=s;){for(l++,b=!0,x=0;x.01){for(M=E.length-1;M>=0;M--)E[M].dp+=_;for(D.push.apply(D,E),u.splice(x+1,1),A=0,M=D.length-1;M>=0;M--)A+=D[M].dp;for(w=A/D.length,M=D.length-1;M>=0;M--)D[M].dp-=w;b=!1}else x++}u.forEach(C)}for(x=u.length-1;x>=0;x--){var I=u[x];for(M=I.length-1;M>=0;M--){var H=I[M],G=H.datum;G.offset=H.dp,G.del=H.del}}}function Tk(e,r){var t=0,a=e.offset;return r&&(a*=-Zee,t=e.offset*Xee),{x:t,y:a}}function jee(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(xt+Or),a=t+r*(e.txwidth+Or),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Or),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Mk(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=vs.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,c=jee(l),h=Tk(l,r),d=h.x,p=h.y,m=u==="middle",y="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,b;m?b="M-"+n(l.bx/2+l.tx2width/2)+","+i(p-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":y?b="M0,0L"+n(f*xt+d)+","+i(xt+p)+"v"+i(l.by/2-xt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*xt+d)+"V"+i(p-xt)+"Z":b="M"+n(f*xt+d)+","+i(p-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",b);var _=d+c.textShiftX,w=p+l.ty0-l.by/2+Or,x=l.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),_=m?-l.bx/2-l.tx2width/2+Or:-l.bx-Or):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),_=m?l.bx/2-l.tx2width/2-Or:l.bx+Or)),s.call(Vn.positionText,n(_),i(w)),l.tx2width&&(o.select("text.name").call(Vn.positionText,n(c.text2ShiftX+c.alignShift*Or+d),i(p+l.ty0-l.by/2+Or)),o.select("rect").call(Gi.setRect,n(c.text2ShiftX+(c.alignShift-1)*l.tx2width/2+d),i(p-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function ere(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(h){return h||hl(h)&&h===0}var o=Array.isArray(t)?function(h,d){var p=St.castOption(n,t,h);return l(p)?p:St.extractOption({},a,"",d)}:function(h,d){return St.extractOption(i,a,h,d)};function s(h,d,p){var m=o(d,p);l(m)&&(e[h]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=St.constrain(e.x0,0,e.xa._length),e.x1=St.constrain(e.x1,0,e.xa._length),e.y0=St.constrain(e.y0,0,e.ya._length),e.y1=St.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ui.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Ui.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Ui.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Ui.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Ui.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ui.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function mk(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var c=la.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var h=r.hLinePoint,d,p;u=h&&h.xa,f=h&&h.ya;var m=f.spikesnap;m==="cursor"?(d=l.pointerX,p=l.pointerY):(d=u._offset+h.x,p=f._offset+h.y);var y=vk.readability(h.color,c)<1.5?la.contrast(c):h.color,b=f.spikemode,_=f.spikethickness,w=f.spikecolor||y,x=Ui.getPxPosition(e,f),M,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(M=x,k=d),b.indexOf("across")!==-1){var A=f._counterDomainMin,C=f._counterDomainMax;f.anchor==="free"&&(A=Math.min(A,f.position),C=Math.max(C,f.position)),M=i.l+A*i.w,k=i.l+C*i.w}a.insert("line",":first-child").attr({x1:M,x2:k,y1:p,y2:p,"stroke-width":_,stroke:w,"stroke-dasharray":Gi.dashStyle(f.spikedash,_)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:k,y1:p,y2:p,"stroke-width":_+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?_:-_),cy:p,r:_,fill:w}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,E,R;u=D&&D.xa,f=D&&D.ya;var N=u.spikesnap;N==="cursor"?(E=l.pointerX,R=l.pointerY):(E=u._offset+D.x,R=f._offset+D.y);var I=vk.readability(D.color,c)<1.5?la.contrast(c):D.color,H=u.spikemode,G=u.spikethickness,W=u.spikecolor||I,Y=Ui.getPxPosition(e,u),O,V;if(H.indexOf("toaxis")!==-1||H.indexOf("across")!==-1){if(H.indexOf("toaxis")!==-1&&(O=Y,V=R),H.indexOf("across")!==-1){var Z=u._counterDomainMin,$=u._counterDomainMax;u.anchor==="free"&&(Z=Math.min(Z,u.position),$=Math.max($,u.position)),O=i.t+(1-$)*i.h,V=i.t+(1-Z)*i.h}a.insert("line",":first-child").attr({x1:E,x2:E,y1:O,y2:V,"stroke-width":G,stroke:W,"stroke-dasharray":Gi.dashStyle(u.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:O,y2:V,"stroke-width":G+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}H.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:Y-(u.side!=="top"?G:-G),r:G,fill:W}).classed("spikeline",!0)}}}function rre(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function yk(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function gk(e,r){return Vn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function tre(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;l{"use strict";var are=Pe(),nre=xr(),ire=Hi().isUnifiedHover;qk.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&ire(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=nre.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),are.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var Ck=B((Kge,Sk)=>{"use strict";var lre=Pe(),ore=Gd(),sre=du();Sk.exports=function(r,t){function a(n,i){return lre.coerce(r,t,sre,n,i)}ore(r,t,a)}});var Ek=B((Qge,Dk)=>{"use strict";var Lk=Pe(),ure=Tc(),fre=Gd();Dk.exports=function(r,t,a,n){function i(o,s){return Lk.coerce(r,t,ure,o,s)}var l=Lk.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),fre(r,t,i,l)}});var r3=B((jge,Pk)=>{"use strict";var cre=Pe(),vre=du();Pk.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:cre.coerce(r,t,vre,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var Nk=B((e2e,zk)=>{"use strict";var Rk=Pe(),hre=du(),dre=r3(),pre=Gd();zk.exports=function(r,t){function a(f,c){return Rk.coerce(r,t,hre,f,c)}var n=dre(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("mapbox"),o=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o||s)&&u===1||(l||o)&&s&&u===2)&&(t.dragmode="pan"),pre(r,t,a),Rk.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var Hk=B((r2e,Ik)=>{"use strict";var t3=Pe(),Fk=yr();Ik.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return t3.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var yre=yr(),gre=e3().hover;Ok.exports=function(r,t,a){var n=yre.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&gre(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var xi=B((a2e,Gk)=>{"use strict";var xre=kr(),Ud=Pe(),bre=yi(),tv=Hi(),Yk=du(),Vk=e3();Gk.exports={moduleType:"component",name:"fx",constants:bc(),schema:{layout:Yk},attributes:Tc(),layoutAttributes:Yk,supplyLayoutGlobalDefaults:Ck(),supplyDefaults:Ek(),supplyLayoutDefaults:Nk(),calc:Hk(),getDistanceFunction:tv.getDistanceFunction,getClosest:tv.getClosest,inbox:tv.inbox,quadrature:tv.quadrature,appendArrayPointValue:tv.appendArrayPointValue,castHoverOption:wre,castHoverinfo:Tre,hover:Vk.hover,unhover:bre.unhover,loneHover:Vk.loneHover,loneUnhover:_re,click:Bk()};function _re(e){var r=Ud.isD3Selection(e)?e:xre.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function wre(e,r,t){return Ud.castOption(e,r,"hoverlabel."+t)}function Tre(e,r,t){function a(n){return Ud.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return Ud.castOption(e,t,"hoverinfo",a)}});var Qu=B(dl=>{"use strict";dl.selectMode=function(e){return e==="lasso"||e==="select"};dl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};dl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};dl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};dl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};dl.selectingOrDrawing=function(e){return dl.freeMode(e)||dl.rectMode(e)}});var Wd=B((i2e,Uk)=>{"use strict";Uk.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var Xd=B((l2e,Wk)=>{"use strict";Wk.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var Jd=B((o2e,Xk)=>{"use strict";var Zd=32;Xk.exports={CIRCLE_SIDES:Zd,i000:0,i090:Zd/4,i180:Zd/2,i270:Zd/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var $d=B((s2e,Jk)=>{"use strict";var Mre=Pe().strTranslate;function Zk(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function Are(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function kre(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return Zk(e,t[r])}}function qre(e){return Mre(e.xaxis._offset,e.yaxis._offset)}Jk.exports={p2r:Zk,r2p:Are,axValue:kre,getTransform:qre}});var Ql=B(pl=>{"use strict";var Sre=Gg(),Qk=Jd(),ju=Qk.CIRCLE_SIDES,a3=Qk.SQRT2,jk=$d(),$k=jk.p2r,Kk=jk.r2p,Cre=[0,3,4,5,6,1,2],Lre=[0,3,4,1,2];pl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var eq=Ut(),iq=Qu(),Dre=iq.drawMode,Ere=iq.openMode,ef=Jd(),rq=ef.i000,tq=ef.i090,aq=ef.i180,nq=ef.i270,Pre=ef.cos45,Rre=ef.sin45,lq=$d(),Qd=lq.p2r,jl=lq.r2p,zre=Gl(),Nre=zre.clearOutline,jd=Ql(),Fre=jd.readPaths,Ire=jd.writePaths,Hre=jd.ellipseOver,Ore=jd.fixDatesForPaths;function Bre(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!Dre(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var Yre=Qu(),Vre=Yre.selectMode,Gre=Gl(),Ure=Gre.clearOutline,n3=Ql(),Wre=n3.readPaths,Xre=n3.writePaths,Zre=n3.fixDatesForPaths;uq.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,c=t.dragmode,h=(i.layout||{}).selections||[];if(!Vre(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";fq.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var eo=B(pa=>{"use strict";var ds=nv(),cq=Pe(),r1=Jr();pa.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};pa.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};pa.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};pa.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};pa.extractPathCoords=function(e,r,t){var a=[],n=e.match(ds.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.substr(1).match(ds.paramRE);if(!(!o||o.lengthd&&(m="X"),m});return u>d&&(p=p.replace(/[\s,]*X.*/,""),cq.log("Ignoring extra params in segment "+s)),f+p})}function iv(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var o3=B((d2e,pq)=>{"use strict";var $re=Pe(),rf=Jr(),vq=da(),hq=Yr(),Kre=Ql().readPaths,l3=eo(),Qre=l3.getPathString,dq=wh(),jre=Pa().FROM_TL;pq.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=rf.getFromId(r,a.xref),s=rf.getFromId(r,a.yref);for(var u in dq){var f=dq[u](a,o,s);f!==void 0&&(l[u]=f)}}i=$re.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,l)}else i=a.label.text;var c={"data-index":t},h=a.label.font,d={"data-notex":1},p=n.append("g").attr(c).classed("shape-label",!0),m=p.append("text").attr(d).classed("shape-label-text",!0).text(i),y,b,_,w;if(a.path){var x=Qre(r,a),M=Kre(x,r);y=1/0,_=1/0,b=-1/0,w=-1/0;for(var k=0;k=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function rte(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,h=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,m=n.label.yanchor,y,b,_,w;if(f==="line"){o==="start"?(y=e,b=r):o==="end"?(y=t,b=a):(y=(e+t)/2,b=(r+a)/2),p==="auto"&&(o==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var tte=Pe(),ate=tte.strTranslate,mq=yi(),xq=Qu(),nte=xq.drawMode,bq=xq.selectMode,_q=yr(),yq=xr(),a1=Jd(),ite=a1.i000,lte=a1.i090,ote=a1.i180,ste=a1.i270,ute=Gl(),wq=ute.clearOutlineControllers,u3=Ql(),t1=u3.pointsOnRectangle,s3=u3.pointsOnEllipse,fte=u3.writePaths,cte=e1().newShapes,vte=e1().createShapeObj,hte=i3(),dte=o3();Tq.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(s3(r[0])||a.hasText)&&o({redrawing:!0})}function o(Y){var O={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,O=cte(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,O=hte(t,a),i._fullLayout._reselect=!0),Object.keys(O).length&&_q.call((Y||{}).redrawing?"relayout":"_guiRelayout",i,O)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=nte(f),h=bq(f);(c||h)&&(i._fullLayout._outlining=!0),wq(i),t.attr("d",fte(r));var d,p,m,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=pte([],r);var _=u.append("g").attr("class","outline-controllers");E(_),W()}if(c&&a.hasText){var w=u.select(".label-temp"),x=vte(t,a,a.dragmode);dte(i,"label-temp",x,w)}function M(Y){m=+Y.srcElement.getAttribute("data-i"),y=+Y.srcElement.getAttribute("data-j"),d[m][y].moveFn=k}function k(Y,O){if(r.length){var V=b[m][y][1],Z=b[m][y][2],$=r[m],te=$.length;if(t1($)){var le=Y,fe=O;if(a.isActiveSelection){var he=gq($,y);he[1]===$[y][1]?fe=0:le=0}for(var Q=0;Q1&&!(Y.length===2&&Y[1][0]==="Z")&&(y===0&&(Y[0][0]="M"),r[m]=Y,l(),o())}}function D(Y,O){if(Y===2){m=+O.srcElement.getAttribute("data-i"),y=+O.srcElement.getAttribute("data-j");var V=r[m];!t1(V)&&!s3(V)&&C()}}function E(Y){d=[];for(var O=0;O{"use strict";var yte=kr(),Cq=yr(),Mq=Pe(),tf=Jr(),gte=Ql().readPaths,xte=n1(),l1=o3(),Lq=Gl().clearOutlineControllers,f3=xr(),v3=Yr(),bte=ot().arrayEditor,Aq=yi(),kq=Kl(),ps=nv(),cn=eo(),c3=cn.getPathString;Pq.exports={draw:h3,drawOne:Dq,eraseActiveShape:Tte,drawLabel:l1};function h3(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;nl&&Ue>o&&!Fe.shiftKey?Aq.getCursor(Ve/Ne,1-De/Ue):"move";kq(r,He),qe=He.split("-")[0]}}function be(Fe){i1(e)||(s&&(b=$(t.xanchor)),u&&(_=te(t.yanchor)),t.type==="path"?R=t.path:(d=s?t.x0:$(t.x0),p=u?t.y0:te(t.y0),m=s?t.x1:$(t.x1),y=u?t.y1:te(t.y1)),dy?(w=p,A="y0",x=y,C="y1"):(w=y,A="y1",x=p,C="y0"),se(Fe),ke(n,t),ze(r,t,e),Q.moveFn=qe==="move"?X:ge,Q.altKey=Fe.altKey)}function U(){i1(e)||(kq(r),xe(n),Eq(r,e,t),Cq.call("_guiRelayout",e,i.getUpdateObj()))}function j(){i1(e)||xe(n)}function X(Fe,Ee){if(t.type==="path"){var Ne=function(De){return De},Ue=Ne,Ve=Ne;s?h("xanchor",t.xanchor=le(b+Fe)):(Ue=function(He){return le($(He)+Fe)},I&&I.type==="date"&&(Ue=cn.encodeDate(Ue))),u?h("yanchor",t.yanchor=fe(_+Ee)):(Ve=function(He){return fe(te(He)+Ee)},G&&G.type==="date"&&(Ve=cn.encodeDate(Ve))),h("path",t.path=qq(R,Ue,Ve))}else s?h("xanchor",t.xanchor=le(b+Fe)):(h("x0",t.x0=le(d+Fe)),h("x1",t.x1=le(m+Fe))),u?h("yanchor",t.yanchor=fe(_+Ee)):(h("y0",t.y0=fe(p+Ee)),h("y1",t.y1=fe(y+Ee)));r.attr("d",c3(e,t)),ke(n,t),l1(e,a,t,N)}function ge(Fe,Ee){if(c){var Ne=function(Je){return Je},Ue=Ne,Ve=Ne;s?h("xanchor",t.xanchor=le(b+Fe)):(Ue=function(Qe){return le($(Qe)+Fe)},I&&I.type==="date"&&(Ue=cn.encodeDate(Ue))),u?h("yanchor",t.yanchor=fe(_+Ee)):(Ve=function(Qe){return fe(te(Qe)+Ee)},G&&G.type==="date"&&(Ve=cn.encodeDate(Ve))),h("path",t.path=qq(R,Ue,Ve))}else if(f){if(qe==="resize-over-start-point"){var De=d+Fe,He=u?p-Ee:p+Ee;h("x0",t.x0=s?De:le(De)),h("y0",t.y0=u?He:fe(He))}else if(qe==="resize-over-end-point"){var Oe=m+Fe,ie=u?y-Ee:y+Ee;h("x1",t.x1=s?Oe:le(Oe)),h("y1",t.y1=u?ie:fe(ie))}}else{var Me=function(Je){return qe.indexOf(Je)!==-1},Ze=Me("n"),cr=Me("s"),fr=Me("w"),oe=Me("e"),Se=Ze?w+Ee:w,Ie=cr?x+Ee:x,We=fr?M+Fe:M,Ge=oe?k+Fe:k;u&&(Ze&&(Se=w-Ee),cr&&(Ie=x-Ee)),(!u&&Ie-Se>o||u&&Se-Ie>o)&&(h(A,t[A]=u?Se:fe(Se)),h(C,t[C]=u?Ie:fe(Ie))),Ge-We>l&&(h(D,t[D]=s?We:le(We)),h(E,t[E]=s?Ge:le(Ge)))}r.attr("d",c3(e,t)),ke(n,t),l1(e,a,t,N)}function ke(Fe,Ee){(s||u)&&Ne();function Ne(){var Ue=Ee.type!=="path",Ve=Fe.selectAll(".visual-cue").data([0]),De=1;Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var He=$(s?Ee.xanchor:Mq.midRange(Ue?[Ee.x0,Ee.x1]:cn.extractPathCoords(Ee.path,ps.paramIsX))),Oe=te(u?Ee.yanchor:Mq.midRange(Ue?[Ee.y0,Ee.y1]:cn.extractPathCoords(Ee.path,ps.paramIsY)));if(He=cn.roundPositionForSharpStrokeRendering(He,De),Oe=cn.roundPositionForSharpStrokeRendering(Oe,De),s&&u){var ie="M"+(He-1-De)+","+(Oe-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",ie)}else if(s){var Me="M"+(He-1-De)+","+(Oe-9-De)+"v18 h2 v-18 Z";Ve.attr("d",Me)}else{var Ze="M"+(He-9-De)+","+(Oe-1-De)+"h18 v2 h-18 Z";Ve.attr("d",Ze)}}}function xe(Fe){Fe.selectAll(".visual-cue").remove()}function ze(Fe,Ee,Ne){var Ue=Ee.xref,Ve=Ee.yref,De=tf.getFromId(Ne,Ue),He=tf.getFromId(Ne,Ve),Oe="";Ue!=="paper"&&!De.autorange&&(Oe+=Ue),Ve!=="paper"&&!He.autorange&&(Oe+=Ve),v3.setClipUrl(Fe,Oe?"clip"+Ne._fullLayout._uid+Oe:null,Ne)}}function qq(e,r,t){return e.replace(ps.segmentRE,function(a){var n=0,i=a.charAt(0),l=ps.paramIsX[i],o=ps.paramIsY[i],s=ps.numParams[i],u=a.substr(1).replace(ps.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function wte(e,r){if(o1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){Sq(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=Sq,h3(e)}}}function Sq(e){if(o1(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(Lq(e),delete e._fullLayout._activeShapeIndex,h3(e))}}function Tte(e){if(o1(e)){Lq(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Gn=yr(),Rq=Pt(),zq=Ut(),Gr=Xd(),Mte=s1().eraseActiveShape,u1=Pe(),Ir=u1._,Ur=Yq.exports={};Ur.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Ir(e,"Download plot as a PNG"):Ir(e,"Download plot")},icon:Gr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};u1.notifier(Ir(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Gn.call("downloadImage",e,t).then(function(a){u1.notifier(Ir(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){u1.notifier(Ir(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Ur.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Ir(e,"Edit in Chart Studio")},icon:Gr.disk,click:function(e){Rq.sendDataToCloud(e)}};Ur.editInChartStudio={name:"editInChartStudio",title:function(e){return Ir(e,"Edit in Chart Studio")},icon:Gr.pencil,click:function(e){Rq.sendDataToCloud(e)}};Ur.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ir(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Gr.zoombox,click:Ua};Ur.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ir(e,"Pan")},attr:"dragmode",val:"pan",icon:Gr.pan,click:Ua};Ur.select2d={name:"select2d",_cat:"select",title:function(e){return Ir(e,"Box Select")},attr:"dragmode",val:"select",icon:Gr.selectbox,click:Ua};Ur.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ir(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Gr.lasso,click:Ua};Ur.drawclosedpath={name:"drawclosedpath",title:function(e){return Ir(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Gr.drawclosedpath,click:Ua};Ur.drawopenpath={name:"drawopenpath",title:function(e){return Ir(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Gr.drawopenpath,click:Ua};Ur.drawline={name:"drawline",title:function(e){return Ir(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Gr.drawline,click:Ua};Ur.drawrect={name:"drawrect",title:function(e){return Ir(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Gr.drawrect,click:Ua};Ur.drawcircle={name:"drawcircle",title:function(e){return Ir(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Gr.drawcircle,click:Ua};Ur.eraseshape={name:"eraseshape",title:function(e){return Ir(e,"Erase active shape")},icon:Gr.eraseshape,click:Mte};Ur.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ir(e,"Zoom in")},attr:"zoom",val:"in",icon:Gr.zoom_plus,click:Ua};Ur.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ir(e,"Zoom out")},attr:"zoom",val:"out",icon:Gr.zoom_minus,click:Ua};Ur.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ir(e,"Autoscale")},attr:"zoom",val:"auto",icon:Gr.autoscale,click:Ua};Ur.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ir(e,"Reset axes")},attr:"zoom",val:"reset",icon:Gr.home,click:Ua};Ur.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ir(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Gr.tooltip_basic,gravity:"ne",click:Ua};Ur.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ir(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Gr.tooltip_compare,gravity:"ne",click:Ua};function Ua(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=zq.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,p,m;for(f=0;f{"use strict";var Vq=m3(),qte=Object.keys(Vq),Gq=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Uq=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Gq),nf=[],Ste=function(e){if(Uq.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();nf.indexOf(r)===-1&&nf.push(r),nf.indexOf(t)===-1&&nf.push(t)}};qte.forEach(function(e){Ste(Vq[e])});nf.sort();Wq.exports={DRAW_MODES:Gq,backButtons:Uq,foreButtons:nf}});var g3=B((b2e,Xq)=>{"use strict";var x2e=y3();Xq.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var Jq=B((_2e,Zq)=>{"use strict";var Cte=Pe(),lv=xr(),Lte=ot(),Dte=g3();Zq.exports=function(r,t){var a=r.modebar||{},n=Lte.newContainer(t,"modebar");function i(o,s){return Cte.coerce(a,n,Dte,o,s)}i("orientation"),i("bgcolor",lv.addOpacity(t.paper_bgcolor,.5));var l=lv.contrast(lv.rgb(t.modebar.bgcolor));i("color",lv.addOpacity(l,.3)),i("activecolor",lv.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var jq=B((w2e,Qq)=>{"use strict";var x3=kr(),Ete=zr(),c1=Pe(),$q=Xd(),Pte=ah().version,Rte=new DOMParser;function Kq(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Wi=Kq.prototype;Wi.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(c){c.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),c1.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Wi.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};Wi.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Wi.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&x3.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||$q.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Wi.createIcon=function(e){var r=Ete(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=Rte.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Wi.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=x3.select(a),s=function(c,h){var d=r.modebar,p=c.querySelector(".icon path");p&&(h||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:c1.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Wi.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Fte=Ut(),eS=wn(),b3=yr(),Ite=Hi().isUnifiedHover,Hte=jq(),v1=m3(),Ote=y3().DRAW_MODES,Bte=Pe().extendDeep;rS.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=Xte(i):!a.displayModeBar&&a.watermark?l=[]:l=Yte(r),n?n.update(r,l):t._modeBar=Hte(r,l)};function Yte(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(O,V){if(typeof V=="string"){if(V.toLowerCase()===O.toLowerCase())return!0}else{var Z=V.name,$=V._cat||V.name;if(Z===O||$===O.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(O){for(var V=0;V1?(E=["toggleHover"],R=["resetViews"]):c?(D=["zoomInGeo","zoomOutGeo"],E=["hoverClosestGeo"],R=["resetGeo"]):f?(E=["hoverClosest3d"],R=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(D=["zoomInMapbox","zoomOutMapbox"],E=["toggleHover"],R=["resetViewMapbox"]):y?(D=["zoomInMap","zoomOutMap"],E=["toggleHover"],R=["resetViewMap"]):h?E=["hoverClosestPie"]:w?(E=["hoverClosestCartesian","hoverCompareCartesian"],R=["resetViewSankey"]):E=["toggleHover"],u&&E.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Ute(t)||M)&&(E=[]),u&&!x&&(D=["zoomIn2d","zoomOut2d","autoScale2d"],R[0]!=="resetViews"&&(R=["resetScale2d"])),f?N=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!x||p?N=["zoom2d","pan2d"]:m||y||c?N=["pan2d"]:b&&(N=["zoom2d"]),Gte(t)&&N.push("select2d","lasso2d");var I=[],H=function(O){I.indexOf(O)===-1&&E.indexOf(O)!==-1&&I.push(O)};if(Array.isArray(o)){for(var G=[],W=0;W{"use strict";aS.exports={moduleType:"component",name:"modebar",layoutAttributes:g3(),supplyLayoutDefaults:Jq(),manage:tS()}});var w3=B((A2e,nS)=>{"use strict";var Zte=Pa().FROM_BL;nS.exports=function(r,t,a){a===void 0&&(a=Zte[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var ys=B(ov=>{"use strict";var ms=Pe(),T3=Wc(),bi=Ut().id2name,Jte=_n(),iS=w3(),$te=yd(),Kte=Mt().ALMOST_EQUAL,Qte=Pa().FROM_BL;ov.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,c,h,d,p;for(o=0;oi?t.substr(i):a.substr(n))+l}function eae(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lKte*p&&!_)){for(i=0;iN&&ZE&&(E=Z);var te=(E-D)/(2*R);c/=te,D=s.l2r(D),E=s.l2r(E),s.range=s._input.range=k{"use strict";var d1=kr(),Wa=yr(),qn=Pt(),Un=Pe(),k3=da(),q3=Wd(),sv=xr(),lf=Yr(),uS=Gc(),dS=_3(),uv=Jr(),ml=Pa(),pS=ys(),rae=pS.enforce,tae=pS.clean,fS=Wc().doAutoRange,mS="start",aae="middle",yS="end",nae=Aa().zindexSeparator;oa.layoutStyles=function(e){return Un.syncOrAsync([qn.doAutoMargin,lae],e)};function iae(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function lae(e){var r=e._fullLayout,t=r._size,a=t.p,n=uv.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(lf.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),oa.drawMainTitle(e),dS.manage(e),!r._has("cartesian"))return qn.previousPromises(e);function c(be,U,j){var X=be._lw/2;if(be._id.charAt(0)==="x"){if(U){if(j==="top")return U._offset-a-X}else return t.t+t.h*(1-(be.position||0))+X%1;return U._offset+U._length+a+X}if(U){if(j==="right")return U._offset+U._length+a+X}else return t.l+t.w*(be.position||0)+X%1;return U._offset-a-X}for(i=0;i0){fae(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:hS(r.yanchor)}).call(k3.positionText,l,i);var f=(r.text.match(k3.BR_TAG_ALL)||[]).length;if(f){var c=ml.LINE_SPACING*f+ml.MID_SHIFT;r.y===0&&(c=-c),o.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var h=d1.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=o.node().getBBox(),p=d.y+d.height,m=p+uS.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:l,y:m,"text-anchor":a,dy:hS(r.yanchor)}).call(k3.positionText,l,m)}}}};function oae(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=Un.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return Un.isTopAnchor(r)&&t==="t"||Un.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=sae(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function fae(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&oae(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),qn.allowAutoMargin(e,n),qn.autoMargin(e,n,o)}function cae(e,r){var t=e.title,a=e._size,n=0;switch(r===mS?n=t.pad.l:r===yS&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function vae(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===ml.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function hS(e){return e==="top"?ml.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":ml.MID_SHIFT+"em"}function hae(e){var r=e.title,t=aae;return Un.isRightAnchor(r)?t=yS:Un.isLeftAnchor(r)&&(t=mS),t}function dae(e){var r=e.title,t="0em";return Un.isTopAnchor(r)?t=ml.CAP_SHIFT+"em":Un.isMiddleAnchor(r)&&(t=ml.MID_SHIFT+"em"),t}oa.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var pae=Ql().readPaths,mae=n1(),gS=Gl().clearOutlineControllers,S3=xr(),xS=Yr(),yae=ot().arrayEditor,bS=eo(),gae=bS.getPathString;wS.exports={draw:m1,drawOne:_S,activateLastSelection:_ae};function m1(e){var r=e._fullLayout;gS(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var b=l.append("path").attr(s).style("opacity",y?.1:u).call(S3.stroke,c).call(S3.fill,f).call(xS.dashLine,y?"solid":d,y?4+h:h);if(xae(b,e,a),p){var _=yae(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:_,isActiveSelection:!0},x=pae(o,e);mae(x,b,w)}else b.style("pointer-events",y?"all":"none");m[y]=b}var M=m[0],k=m[1];k.node().addEventListener("click",function(){return bae(e,M)})}}function xae(e,r,t){var a=t.xref+t.yref;xS.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function bae(e,r){if(y1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){C3(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=C3,m1(e)}}}function _ae(e){if(y1(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=C3,m1(e)}}function C3(e){if(y1(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(gS(e),delete e._fullLayout._activeSelectionIndex,m1(e))}}});var MS=B((C2e,TS)=>{function wae(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}TS.exports=wae});var kS=B((L2e,AS)=>{function Tae(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-c)/(o-c)+f-n>e&&(s=!s),l=f,o=c}return s}};return r}AS.exports=Tae});var SS=B((D2e,qS)=>{var Mae={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};qS.exports=Mae});var LS=B((E2e,CS)=>{var fv=SS();function Aae(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,y){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=fv.create();function l(p,m,y,b,_,w){var x=r.pointsCompare(m,_);return x!==0?x:r.pointsSame(y,w)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(y,b?_:w,b?w:_)?1:-1}function o(p,m){i.insertBefore(p,function(y){var b=l(p.isStart,p.pt,m,y.isStart,y.pt,y.other.pt);return b<0})}function s(p,m){var y=fv.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return o(y,p.end),y}function u(p,m,y){var b=fv.node({isStart:!1,pt:m.end,seg:m,primary:y,other:p,status:null});p.other=b,o(b,p.pt)}function f(p,m){var y=s(p,m);return u(y,p,m),y}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,o(p.other,p.pt)}function h(p,m){var y=n(m,p.seg.end,p.seg);return c(p,m),f(y,p.primary)}function d(p,m){var y=fv.create();function b(G,W){var Y=G.seg.start,O=G.seg.end,V=W.seg.start,Z=W.seg.end;return r.pointsCollinear(Y,V,Z)?r.pointsCollinear(O,V,Z)||r.pointAboveOrOnLine(O,V,Z)?1:-1:r.pointAboveOrOnLine(Y,V,Z)?1:-1}function _(G){return y.findTransition(function(W){var Y=b(G,W.ev);return Y>0})}function w(G,W){var Y=G.seg,O=W.seg,V=Y.start,Z=Y.end,$=O.start,te=O.end;t&&t.checkIntersection(Y,O);var le=r.linesIntersect(V,Z,$,te);if(le===!1){if(!r.pointsCollinear(V,Z,$)||r.pointsSame(V,te)||r.pointsSame(Z,$))return!1;var fe=r.pointsSame(V,$),he=r.pointsSame(Z,te);if(fe&&he)return W;var Q=!fe&&r.pointBetween(V,$,te),qe=!he&&r.pointBetween(Z,$,te);if(fe)return qe?h(W,Z):h(G,te),W;Q&&(he||(qe?h(W,Z):h(G,te)),h(W,V))}else le.alongA===0&&(le.alongB===-1?h(G,$):le.alongB===0?h(G,le.pt):le.alongB===1&&h(G,te)),le.alongB===0&&(le.alongA===-1?h(W,V):le.alongA===0?h(W,le.pt):le.alongA===1&&h(W,Z));return!1}for(var x=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let G=function(){if(A){var W=w(M,A);if(W)return W}return C?w(M,C):!1};var H=G;t&&t.segmentNew(M.seg,M.primary);var k=_(M),A=k.before?k.before.ev:null,C=k.after?k.after.ev:null;t&&t.tempStatus(M.seg,A?A.seg:!1,C?C.seg:!1);var D=G();if(D){if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,E&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(D.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,C?M.seg.myFill.below=C.seg.myFill.above:M.seg.myFill.below=p,E?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var R;C?M.primary===C.primary?R=C.seg.otherFill.above:R=C.seg.myFill.above:R=M.primary?m:p,M.seg.otherFill={above:R,below:R}}t&&t.status(M.seg,A?A.seg:!1,C?C.seg:!1),M.other.status=k.insert(fv.node({ev:M}))}else{var N=M.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(N.prev)&&y.exists(N.next)&&w(N.prev.ev,N.next.ev),t&&t.statusRemove(N.ev.seg),N.remove(),!M.primary){var I=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=I}x.push(M.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var m,y=p[p.length-1],b=0;b{function kae(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(H,G,W){return f.index=H,f.matches_head=G,f.matches_pt1=W,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function cv(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var qae={union:function(e,r){return cv(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return cv(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return cv(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return cv(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return cv(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};PS.exports=qae});var NS=B((z2e,zS)=>{var Sae={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var Cae=MS(),Lae=kS(),FS=LS(),Dae=ES(),vv=RS(),IS=NS(),Wn=!1,hv=Lae(),vn;vn={buildLog:function(e){return e===!0?Wn=Cae():e===!1&&(Wn=!1),Wn===!1?!1:Wn.list},epsilon:function(e){return hv.epsilon(e)},segments:function(e){var r=FS(!0,hv,Wn);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=FS(!1,hv,Wn);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:vv.union(e.combined,Wn),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:vv.intersect(e.combined,Wn),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:vv.difference(e.combined,Wn),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:vv.differenceRev(e.combined,Wn),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:vv.xor(e.combined,Wn),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Dae(e.segments,hv,Wn),inverted:e.inverted}},polygonFromGeoJSON:function(e){return IS.toPolygon(vn,e)},polygonToGeoJSON:function(e){return IS.fromPolygon(vn,hv,e)},union:function(e,r){return dv(e,r,vn.selectUnion)},intersect:function(e,r){return dv(e,r,vn.selectIntersect)},difference:function(e,r){return dv(e,r,vn.selectDifference)},differenceRev:function(e,r){return dv(e,r,vn.selectDifferenceRev)},xor:function(e,r){return dv(e,r,vn.selectXor)}};function dv(e,r,t){var a=vn.segments(e),n=vn.segments(r),i=vn.combine(a,n),l=t(i);return vn.polygon(l)}typeof window=="object"&&(window.PolyBool=vn);HS.exports=vn});var YS=B((F2e,BS)=>{BS.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=p>l&&i<(d-c)*(l-h)/(p-h)+c;m&&(o=!o)}return o}});var E3=B((I2e,VS)=>{"use strict";var D3=xh().dot,g1=Mt().BADNUM,x1=VS.exports={};x1.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||b===g1||bl||m&&u(p))}function c(p,m){var y=p[0],b=p[1];if(y===g1||yn||b===g1||bl)return!1;var _=t.length,w=t[0][0],x=t[0][1],M=0,k,A,C,D,E;for(k=1;k<_;k++)if(A=w,C=x,w=t[k][0],x=t[k][1],D=Math.min(A,w),!(yMath.max(A,w)||b>Math.max(C,x)))if(bo||Math.abs(D3(c,u))>n)return!0;return!1};x1.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var US=B((H2e,GS)=>{"use strict";GS.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var hC=B((O2e,vC)=>{"use strict";var WS=OS(),Eae=YS(),yv=yr(),Pae=Yr().dashStyle,pv=xr(),Rae=xi(),zae=Hi().makeEventData,wv=Qu(),Nae=wv.freeMode,Fae=wv.rectMode,gv=wv.drawMode,N3=wv.openMode,F3=wv.selectMode,XS=eo(),ZS=nv(),jS=n1(),eC=Gl().clearOutline,rC=Ql(),P3=rC.handleEllipse,Iae=rC.readPaths,Hae=e1().newShapes,Oae=i3(),Bae=L3().activateLastSelection,_1=Pe(),Yae=_1.sorterAsc,tC=E3(),mv=Dh(),Xn=Ut().getFromId,Vae=Wd(),Gae=p1().redrawReglTraces,w1=US(),Xi=w1.MINSELECT,Uae=tC.filter,I3=tC.tester,H3=$d(),JS=H3.p2r,Wae=H3.axValue,Xae=H3.getTransform;function O3(e){return e.subplot!==void 0}function Zae(e,r,t,a,n){var i=!O3(a),l=Nae(n),o=Fae(n),s=N3(n),u=gv(n),f=F3(n),c=n==="drawline",h=n==="drawcircle",d=c||h,p=a.gd,m=p._fullLayout,y=f&&m.newselection.mode==="immediate"&&i,b=m._zoomlayer,_=a.element.getBoundingClientRect(),w=a.plotinfo,x=Xae(w),M=r-_.left,k=t-_.top;m._calcInverseTransform(p);var A=_1.apply3DTransform(m._invTransform)(M,k);M=A[0],k=A[1];var C=m._invScaleX,D=m._invScaleY,E=M,R=k,N="M"+M+","+k,I=a.xaxes[0],H=a.yaxes[0],G=I._length,W=H._length,Y=e.altKey&&!(gv(n)&&s),O,V,Z,$,te,le,fe;nC(e,p,a),l&&(O=Uae([[M,k]],w1.BENDPX));var he=b.selectAll("path.select-outline-"+w.id).data([1]),Q=u?m.newshape:m.newselection;u&&(a.hasText=Q.label.text||Q.label.texttemplate);var qe=u&&!s?Q.fillcolor:"rgba(0,0,0,0)",ve=Q.line.color||(i?pv.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");he.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?Q.opacity/2:1,"stroke-dasharray":Pae(Q.line.dash,Q.line.width),"stroke-width":Q.line.width+"px","shape-rendering":"crispEdges"}).call(pv.stroke,ve).call(pv.fill,qe).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",N+"Z");var Ae=b.append("path").attr("class","zoombox-corners").style({fill:pv.background,stroke:pv.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var se=b.select(".label-temp");se.empty()&&(se=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var be=m._uid+w1.SELECTID,U=[],j=T1(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var ge=I._id,ke=H._id;uC(p,ge,ke,j);for(var xe=(p.layout||{}).selections||[],ze=[],Fe=!1,Ee=0;Ee=0){p._fullLayout._deactivateShape(p);return}if(!u){var xe=m.clickmode;mv.done(be).then(function(){if(mv.clear(be),ge===2){for(he.remove(),te=0;te-1&&aC(ke,p,a.xaxes,a.yaxes,a.subplot,a,he),xe==="event"&&_v(p,void 0);Rae.click(p,ke,w.id)}).catch(_1.error)}},a.doneFn=function(){Ae.remove(),mv.done(be).then(function(){mv.clear(be),!y&&$&&a.selectionDefs&&($.subtract=Y,a.selectionDefs.push($),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Z)),(y||u)&&xv(a,y),a.doneFnCompleted&&a.doneFnCompleted(U),f&&_v(p,fe)}).catch(_1.error)}}function aC(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],h,d,p,m,y,b,_,w,x,M;if(jae(o)){nC(e,r,i),h=T1(r,t,a,n);var k=ene(o,h),A=k.pointNumbers.length>0;if(A?rne(h,k):tne(h)&&(_=KS(k))){for(l&&l.remove(),M=0;M=0}function Qae(e){return e._fullLayout._activeSelectionIndex>=0}function xv(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Kae(n)&&n._fullLayout._deactivateShape(n),Qae(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=gv(t),s=F3(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=Hae(u,e)),f&&yv.call("_guiRelayout",n,{shapes:f});var c;s&&!O3(e)&&(c=Oae(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,yv.call("_guiRelayout",n,{selections:c}).then(function(){r&&Bae(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function $S(e){return e._id}function T1(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map($S),l=t.map($S),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function rne(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function bv(e,r,t){var a;for(a=0;a-1&&r;if(!l&&r){var ge=QS(e,!0);if(ge.length){var ke=ge[0].xref,xe=ge[0].yref;if(ke&&xe){var ze=fC(ge),Fe=cC([Xn(e,ke,"x"),Xn(e,xe,"y")]);Fe(U,ze)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:X&&_v(e,U),h._reselect=!1}if(!l&&h._deselect){var Ee=h._deselect;o=Ee.xref,s=Ee.yref,ine(o,s,f)||uC(e,o,s,a),X&&(U.points.length?_v(e,U):V3(e)),h._deselect=!1}return{eventData:U,selectionTesters:t}}function nne(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";dC.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Tv=B((Y2e,pC)=>{"use strict";pC.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var of=B((G2e,gC)=>{"use strict";var mC=G3(),yC=aa(),M1=Aa(),fne=ot().templatedArray,V2e=Tv();gC.exports=fne("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:yC({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:mC.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:mC.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",M1.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",M1.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",M1.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",M1.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:yC({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var A1=B((U2e,xC)=>{"use strict";xC.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var U3=B((W2e,bC)=>{"use strict";bC.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var _i=B((X2e,kC)=>{"use strict";var _C=pi().axisHoverFormat,cne=ha().texttemplateAttrs,vne=ha().hovertemplateAttrs,wC=Oc(),hne=aa(),dne=ci().dash,pne=ci().pattern,mne=Yr(),yne=A1(),k1=mt().extendFlat,gne=U3();function TC(e){return{valType:"any",dflt:0,editType:"calc"}}function MC(e){return{valType:"any",editType:"calc"}}function AC(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}kC.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:TC("x"),yperiod:TC("y"),xperiod0:MC("x0"),yperiod0:MC("y0"),xperiodalignment:AC("x"),yperiodalignment:AC("y"),xhoverformat:_C("x"),yhoverformat:_C("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:cne({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:vne({},{keys:yne.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:k1({},dne,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:gne(!0),fillgradient:k1({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:pne,marker:k1({symbol:{valType:"enumerated",values:mne.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:k1({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},wC("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},wC("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:hne({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var W3=B((J2e,CC)=>{"use strict";var qC=of(),SC=_i().line,xne=ci().dash,q1=mt().extendFlat,bne=fi().overrideAll,_ne=ot().templatedArray,Z2e=Tv();CC.exports=bne(_ne("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:q1({},qC.xref,{}),yref:q1({},qC.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:SC.color,width:q1({},SC.width,{min:1,dflt:1}),dash:q1({},xne,{dflt:"dot"})}}),"arraydraw","from-root")});var PC=B(($2e,EC)=>{"use strict";var LC=Pe(),S1=Jr(),wne=On(),Tne=W3(),DC=eo();EC.exports=function(r,t){wne(r,t,{name:"selections",handleItemDefaults:Mne});for(var a=t.selections,n=0;n{"use strict";RC.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Mv=B((Q2e,IC)=>{"use strict";var Ane=yr(),NC=Pe(),FC=Ut();IC.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=Ane.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var HC=L3(),Av=hC();OC.exports={moduleType:"component",name:"selections",layoutAttributes:W3(),supplyLayoutDefaults:PC(),supplyDrawNewSelectionDefaults:zC(),includeBasePlot:Mv()("selections"),draw:HC.draw,drawOne:HC.drawOne,reselect:Av.reselect,prepSelect:Av.prepSelect,clearOutline:Av.clearOutline,clearSelectionsCache:Av.clearSelectionsCache,selectOnClick:Av.selectOnClick}});var oL=B((e3e,lL)=>{"use strict";var K3=kr(),Zn=Pe(),BC=Zn.numberFormat,kne=zn(),qne=L2(),C1=yr(),$C=Zn.strTranslate,Sne=da(),YC=xr(),to=Yr(),Cne=xi(),VC=Jr(),Lne=Kl(),Dne=yi(),KC=Qu(),L1=KC.selectingOrDrawing,Ene=KC.freeMode,Pne=Pa().FROM_TL,Rne=Wd(),zne=p1().redrawReglTraces,Nne=Pt(),Z3=Ut().getFromId,Fne=sf().prepSelect,Ine=sf().clearOutline,Hne=sf().selectOnClick,X3=w3(),Q3=Aa(),GC=Q3.MINDRAG,ja=Q3.MINZOOM,UC=!0;function One(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,c,h,d,p,m,y,b,_,w,x,M,k,A,C,D,E,R,N,I,H,G,W,Y;t+=r.yaxis._shift;function O(){if(c=r.xaxis,h=r.yaxis,w=c._length,x=h._length,b=c._offset,_=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,l&&o)for(var oe=r.overlays,Se=0;Se=0){Ie._fullLayout._deactivateShape(Ie);return}var We=Ie._fullLayout.clickmode;if($3(Ie),oe===2&&!f&&Oe(),u)We.indexOf("select")>-1&&Hne(Se,Ie,m,y,r.id,$),We.indexOf("event")>-1&&Cne.click(Ie,Se,r.id);else if(oe===1&&f){var Ge=l?h:c,Je=l==="s"||o==="w"?0:1,Qe=Ge._name+".range["+Je+"]",vr=Bne(Ge,Je),$e="left",Re="middle";if(Ge.fixedrange)return;l?(Re=l==="n"?"top":"bottom",Ge.side==="right"&&($e="right")):o==="e"&&($e="right"),Ie._context.showAxisRangeEntryBoxes&&K3.select(Z).call(Sne.makeEditable,{gd:Ie,immediate:!0,background:Ie._fullLayout.paper_bgcolor,text:String(vr),fill:Ge.tickfont?Ge.tickfont.color:"#444",horizontalAlign:$e,verticalAlign:Re}).on("edit",function(ne){var ce=Ge.d2r(ne);ce!==void 0&&C1.call("_guiRelayout",Ie,Qe,ce)})}}Dne.init($);var fe,he,Q,qe,ve,Ae,se,be,U,j;function X(oe,Se,Ie){var We=Z.getBoundingClientRect();fe=Se-We.left,he=Ie-We.top,e._fullLayout._calcInverseTransform(e);var Ge=Zn.apply3DTransform(e._fullLayout._invTransform)(fe,he);fe=Ge[0],he=Ge[1],Q={l:fe,r:fe,w:0,t:he,b:he,h:0},qe=e._hmpixcount?e._hmlumcount/e._hmpixcount:kne(e._fullLayout.plot_bgcolor).getLuminance(),ve="M0,0H"+w+"V"+x+"H0V0",Ae=!1,se="xy",j=!1,be=eL(s,qe,b,_,ve),U=rL(s,b,_)}function ge(oe,Se){if(e._transitioningWithDuration)return!1;var Ie=Math.max(0,Math.min(w,W*oe+fe)),We=Math.max(0,Math.min(x,Y*Se+he)),Ge=Math.abs(Ie-fe),Je=Math.abs(We-he);Q.l=Math.min(fe,Ie),Q.r=Math.max(fe,Ie),Q.t=Math.min(he,We),Q.b=Math.max(he,We);function Qe(){se="",Q.r=Q.l,Q.t=Q.b,U.attr("d","M0,0Z")}if(M.isSubplotConstrained)Ge>ja||Je>ja?(se="xy",Ge/w>Je/x?(Je=Ge*x/w,he>We?Q.t=he-Je:Q.b=he+Je):(Ge=Je*w/x,fe>Ie?Q.l=fe-Ge:Q.r=fe+Ge),U.attr("d",D1(Q))):Qe();else if(k.isSubplotConstrained)if(Ge>ja||Je>ja){se="xy";var vr=Math.min(Q.l/w,(x-Q.b)/x),$e=Math.max(Q.r/w,(x-Q.t)/x);Q.l=vr*w,Q.r=$e*w,Q.b=(1-vr)*x,Q.t=(1-$e)*x,U.attr("d",D1(Q))}else Qe();else!C||Je0){var ne;if(k.isSubplotConstrained||!A&&C.length===1){for(ne=0;ne1&&(Qe.maxallowed!==void 0&&E===(Qe.range[0]1&&(vr.maxallowed!==void 0&&R===(vr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Vne(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function eL(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",$C(t,a)).attr("d",n+"Z")}function rL(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:YC.background,stroke:YC.defaultLine,"stroke-width":1,opacity:0}).attr("transform",$C(r,t)).attr("d","M0,0Z")}function tL(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),aL(e,r,n,i)}function aL(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function $3(e){K3.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function nL(e){UC&&e.data&&e._context.showTips&&(Zn.notifier(Zn._(e,"Double-click to zoom back out"),"long"),UC=!1)}function Gne(e,r){return"M"+(e.l-.5)+","+(r-ja-.5)+"h-3v"+(2*ja+1)+"h3ZM"+(e.r+.5)+","+(r-ja-.5)+"h3v"+(2*ja+1)+"h-3Z"}function Une(e,r){return"M"+(r-ja-.5)+","+(e.t-.5)+"v-3h"+(2*ja+1)+"v3ZM"+(r-ja-.5)+","+(e.b+.5)+"v3h"+(2*ja+1)+"v-3Z"}function D1(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,ja)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function ZC(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,c,h=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var Wne=kr(),E1=xi(),Xne=yi(),Zne=Kl(),wi=oL().makeDragBox,sa=Aa().DRAGGERSIZE;P1.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Wne.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=wi(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&E1.hover(r,h,i)},E1.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,Xne.unhover(r,h))},r._context.showAxisDragHandles&&(wi(r,l,o._offset-sa,s._offset-sa,sa,sa,"n","w"),wi(r,l,o._offset+o._length,s._offset-sa,sa,sa,"n","e"),wi(r,l,o._offset-sa,s._offset+s._length,sa,sa,"s","w"),wi(r,l,o._offset+o._length,s._offset+s._length,sa,sa,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=sa),wi(r,l,o._offset+o._length*.1,f,o._length*.8,sa,"","ew"),wi(r,l,o._offset,f,o._length*.1,sa,"","w"),wi(r,l,o._offset+o._length*.9,f,o._length*.1,sa,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=sa),wi(r,l,c,s._offset+s._length*.1,sa,s._length*.8,"ns",""),wi(r,l,c,s._offset+s._length*.9,sa,s._length*.1,"s",""),wi(r,l,c,s._offset,sa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,E1.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,E1.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},P1.updateFx(r)}};P1.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";Zne(r._draggers,t)}});var fL=B((t3e,uL)=>{"use strict";var sL=yr();uL.exports=function(r){for(var t=sL.layoutArrayContainers,a=sL.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var Jne=Pl(),ex=gh(),kv=Vo(),$ne=$y().sorterAsc,rx=yr();qv.containerArrayMatch=fL();var Kne=qv.isAddVal=function(r){return r==="add"||Jne(r)},cL=qv.isRemoveVal=function(r){return r===null||r==="remove"};qv.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=rx.getComponentMethod(l,"supplyLayoutDefaults"),s=rx.getComponentMethod(l,"draw"),u=rx.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===ex||s===ex,c=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&kv.warn("Full array edits are incompatible with other edits",l);var d=a[""][""];if(cL(d))t.set(null);else if(Array.isArray(d))t.set(d);else return kv.warn("Unrecognized full array edit value",l,d),!0;return f?!1:(o(c,h),s(r),!0)}var p=Object.keys(a).map(Number).sort($ne),m=t.get(),y=m||[],b=i(h,l).get(),_=[],w=-1,x=y.length,M,k,A,C,D,E,R,N;for(M=0;My.length-(R?0:1)){kv.warn("index out of range",l,A);continue}if(E!==void 0)D.length>1&&kv.warn("Insertion & removal are incompatible with edits to the same index.",l,A),cL(E)?_.push(A):R?(E==="add"&&(E={}),y.splice(A,0,E),b&&b.splice(A,0,{})):kv.warn("Unrecognized full object edit value",l,A,E),w===-1&&(w=A);else for(k=0;k=0;M--)y.splice(_[M],1),b&&b.splice(_[M],1);if(y.length?m||t.set(y):t.set(null),f)return!1;if(o(c,h),u!==ex){var I;if(w===-1)I=p;else{for(x=Math.max(y.length,x),I=[],M=0;M=w));M++)I.push(A);for(M=w;M{"use strict";var mL=zr(),yL=yr(),Xa=Pe(),Sv=Pt(),gL=Ut(),xL=xr(),Cv=gL.cleanId,Qne=gL.getFromTrace,tx=yL.traceIs,jne=["x","y","z"];Jn.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Xa.log("Clearing previous rejected promises from queue."),e._promises=[]};Jn.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Sv.subplotsRegistry.cartesian||{}).attrRegex,n=(Sv.subplotsRegistry.polar||{}).attrRegex,i=(Sv.subplotsRegistry.ternary||{}).attrRegex,l=(Sv.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),xL.clean(e),e.template&&e.template.layout&&Jn.cleanLayout(e.template.layout),e};function uf(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=Cv(t,a,!0))}Jn.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}Jn.hasParent=function(e,r){for(var t=pL(r);t;){if(t in e)return!0;t=pL(t)}return!1};Jn.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>Xa.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;aXa.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?ax(n,i):!1))return!1}return!0}return!1};Jn.collectionsAreEqual=ax});var ux=B(Vr=>{"use strict";var F1=kr(),tie=zr(),aie=fg(),rr=Pe(),ht=rr.nestedProperty,lx=Rc(),en=Q8(),$n=yr(),G1=Lu(),_r=Pt(),Za=Jr(),nie=C2(),iie=_n(),nx=Yr(),lie=xr(),oie=j3().initInteractions,sie=Qo(),uie=sf().clearOutline,AL=Yo().dfltConfig,z1=vL(),Vt=bL(),rt=p1(),ao=fi(),fie=Aa().AX_NAME_PATTERN,ix=0,_L=5;function cie(e,r,t,a){var n;if(e=rr.getGraphDiv(e),lx.init(e),rr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=lx.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!rr.isPlotDiv(e)&&rr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Vr.addFrames(e,n)}qL(e,a),t||(t={}),F1.select(e).classed("js-plotly-plot",!0),nx.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Vt.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Vt.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(Rie(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),nx.initGradients(e),nx.initPatterns(e),s&&Za.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&_r.doCalcdata(e);for(var h=0;h=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function SL(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),H1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&H1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function mie(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof C.parts[R]!="string";)R--;var N=C.parts[R],I=C.parts[R-1]+"."+N,H=C.parts.slice(0,R).join("."),G=ht(e.layout,H).get(),W=ht(a,H).get(),Y=C.get();if(D!==void 0){b[A]=D,_[A]=N==="reverse"?D:yl(Y);var O=G1.getLayoutValObject(a,C.parts);if(O&&O.impliedEdits&&D!==null)for(var V in O.impliedEdits)w(rr.relativeAttr(A,V),O.impliedEdits[V]);if(["width","height"].indexOf(A)!==-1)if(D){w("autosize",null);var Z=A==="height"?"width":"height";w(Z,a[Z])}else a[A]=e._initialAutoSize[A];else if(A==="autosize")w("width",D?null:a.width),w("height",D?null:a.height);else if(I.match(FL))k(I),ht(a,H+"._inputRange").set(null);else if(I.match(IL)){k(I),ht(a,H+"._inputRange").set(null);var $=ht(a,H).get();$._inputDomain&&($._input.domain=$._inputDomain.slice())}else I.match(bie)&&ht(a,H+"._inputDomain").set(null);if(N==="type"){M=G;var te=W.type==="linear"&&D==="log",le=W.type==="log"&&D==="linear";if(te||le){if(!M||!M.range)w(H+".autorange",!0);else if(W.autorange)te&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var fe=M.range[0],he=M.range[1];te?(fe<=0&&he<=0&&w(H+".autorange",!0),fe<=0?fe=he/1e6:he<=0&&(he=fe/1e6),w(H+".range[0]",Math.log(fe)/Math.LN10),w(H+".range[1]",Math.log(he)/Math.LN10)):(w(H+".range[0]",Math.pow(10,fe)),w(H+".range[1]",Math.pow(10,he)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[C.parts[0]]&&C.parts[1]==="radialaxis"&&delete a[C.parts[0]]._subplot.viewInitial["radialaxis.range"],$n.getComponentMethod("annotations","convertCoords")(e,W,D,w),$n.getComponentMethod("images","convertCoords")(e,W,D,w)}else w(H+".autorange",!0),w(H+".range",null);ht(a,H+"._inputRange").set(null)}else if(N.match(fie)){var Q=ht(a,A).get(),qe=(D||{}).type;(!qe||qe==="-")&&(qe="linear"),$n.getComponentMethod("annotations","convertCoords")(e,Q,qe,w),$n.getComponentMethod("images","convertCoords")(e,Q,qe,w)}var ve=z1.containerArrayMatch(A);if(ve){f=ve.array,c=ve.index;var Ae=ve.property,se=O||{editType:"calc"};c!==""&&Ae===""&&(z1.isAddVal(D)?_[A]=null:z1.isRemoveVal(D)?_[A]=(ht(t,f).get()||[])[c]:rr.warn("unrecognized full object value",r)),ao.update(y,se),u[f]||(u[f]={});var be=u[f][c];be||(be=u[f][c]={}),be[Ae]=D,delete r[A]}else N==="reverse"?(G.range?G.range.reverse():(w(H+".autorange",!0),G.range=[1,0]),W.autorange?y.calc=!0:y.plot=!0):(A==="dragmode"&&(D===!1&&Y!==!1||D!==!1&&Y===!1)||a._has("scatter-like")&&a._has("regl")&&A==="dragmode"&&(D==="lasso"||D==="select")&&!(Y==="lasso"||Y==="select")?y.plot=!0:O?ao.update(y,O):y.calc=!0,C.set(D))}}for(f in u){var U=z1.applyContainerArrayChanges(e,i(t,f),u[f],y,i);U||(y.plot=!0)}for(var j in x){M=Za.getFromId(e,j);var X=M&&M._constraintGroup;if(X){y.calc=!0;for(var ge in X)x[ge]||(Za.getFromId(e,ge)._constraintShrinkable=!0)}}(OL(e)||r.height||r.width)&&(y.plot=!0);var ke=a.shapes;for(c=0;c1;)if(a.pop(),t=ht(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Tie(e,r){for(var t=0;t[H,e._ev.listeners(H)]);i=Vr.newPlot(e,r,t,a).then(()=>{for(let[H,G]of I)G.forEach(W=>e.on(H,W));return Vr.react(e,r,t,a)})}else{e.data=r||[],Vt.cleanData(e.data),e.layout=t||{},Vt.cleanLayout(e.layout),Aie(e.data,e.layout,o,s),_r.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,p=h.transition,m=Sie(e,s,h,d,p),y=m.newDataRevision,b=qie(e,o,c,d,p,y);if(OL(e)&&(m.layoutReplot=!0),b.calc||m.calc){e.calcdata=void 0;for(var _=Object.getOwnPropertyNames(h),w=0;w<_.length;w++){var x=_[w],M=x.substring(0,5);if(M==="xaxis"||M==="yaxis"){var k=h[x]._emptyCategories;k&&k()}}}else _r.supplyDefaultsUpdateCalc(e.calcdata,c);var A=[];if(n&&(e._transitionData={},_r.createTransitionData(e),A.push(l)),h.transition&&(b.anim||m.anim))m.ticks&&A.push(rt.doTicksRelayout),_r.doCalcdata(e),rt.doAutoRangeAndConstraints(e),A.push(function(){return _r.transitionFromReact(e,b,m,s)});else if(b.fullReplot||m.layoutReplot)e._fullLayout._skipDefaults=!0,A.push(Vr._doPlot);else{for(var C in m.arrays){var D=m.arrays[C];if(D.length){var E=$n.getComponentMethod(C,"drawOne");if(E!==rr.noop)for(var R=0;R(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function qie(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=ao.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(d){var p=G1.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},h={};for(s=0;s=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var N=a._frameQueue.pop();N.onInterrupt&&N.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(N){if(N.length!==0){for(var I=0;Ia._timeToNext&&p()};N()}var y=0;function b(N){return Array.isArray(n)?y>=n.length?N.transitionOpts=n[y]:N.transitionOpts=n[0]:N.transitionOpts=n,y++,N}var _,w,x=[],M=r==null,k=Array.isArray(r),A=!M&&!k&&rr.isPlainObject(r);if(A)x.push({type:"object",data:b(rr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(_=0;_0&&EE)&&R.push(w);x=R}}x.length>0?h(x):(e.emit("plotly_animated"),u())})}function Lie(e,r,t){if(e=rr.getGraphDiv(e),r==null)return Promise.resolve();if(!rr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(rr.isPlainObject(r[a])){var h=r[a].name,d=(s[h]||c[h]||{}).name,p=r[a].name,m=s[d]||c[d];d&&p&&typeof p=="number"&&m&&ix<_L&&(ix++,rr.warn('addFrames: overwriting frame "'+(s[d]||c[d]).name+'" with a frame whose name of type "number" also equates to "'+d+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),ix===_L&&rr.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),c[h]={name:h},f.push({frame:_r.supplyFrameDefaults(r[a]),index:t&&t[a]!==void 0&&t[a]!==null?t[a]:u+a})}f.sort(function(A,C){return A.index>C.index?-1:A.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&rr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=_r.modifyFrames,s=_r.modifyFrames,u=[e,l],f=[e,i];return en&&en.add(e,o,u,s,f),_r.modifyFrames(e,i)}function Eie(e){e=rr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),lx.purge(e),r._container&&r._container.remove(),delete e._context,e}function Pie(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!rr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=rr.inverseTransformMatrix(rr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function Rie(e){var r=F1.select(e),t=e._fullLayout;if(t._calcInverseTransform=Pie,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};F1.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=rr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(sie.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Vr.animate=Cie;Vr.addFrames=Lie;Vr.deleteFrames=Die;Vr.addTraces=PL;Vr.deleteTraces=RL;Vr.extendTraces=DL;Vr.moveTraces=ox;Vr.prependTraces=EL;Vr.newPlot=pie;Vr._doPlot=cie;Vr.purge=Eie;Vr.react=kie;Vr.redraw=die;Vr.relayout=Lv;Vr.restyle=O1;Vr.setPlotConfig=vie;Vr.update=Y1;Vr._guiRelayout=sx(Lv);Vr._guiRestyle=sx(O1);Vr._guiUpdate=sx(Y1);Vr._storeDirectGUIEdit=xie});var gs=B(Zi=>{"use strict";var zie=yr();Zi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Zi.getRedrawFunc=function(e){return function(){zie.getComponentMethod("colorbar","draw")(e)}};Zi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Zi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var BL=window.URL||window.webkitURL;Zi.createObjectURL=function(e){return BL.createObjectURL(e)};Zi.revokeObjectURL=function(e){return BL.revokeObjectURL(e)};Zi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=Nie(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Zi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Nie(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var cx=kr(),o3e=Pe(),Fie=Yr(),Iie=xr(),s3e=Qo(),fx=/"/g,Ev="TOBESTRIPPED",Hie=new RegExp('("'+Ev+")|("+Ev+'")',"g");function Oie(e){var r=cx.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function Bie(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}YL.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(Fie.setRect,0,0,o,s).call(Iie.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var Yie=Pe(),Vie=Ih().EventEmitter,Pv=gs();function Gie(e){var r=e.emitter||new Vie,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,h=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,y,b;o==="svg"||Yie.isSafari()?b=Pv.encodeSVG(l):(y=Pv.createBlob(l,"svg"),b=Pv.createObjectURL(y)),s.width=h,s.height=d,m.onload=function(){var _;switch(y=null,Pv.revokeObjectURL(b),o!=="svg"&&p.drawImage(m,0,0,h,d),o){case"jpeg":_=s.toDataURL("image/jpeg");break;case"png":_=s.toDataURL("image/png");break;case"webp":_=s.toDataURL("image/webp");break;case"svg":_=b;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(_),e.promise||r.emit("success",_)},m.onerror=function(_){if(y=null,Pv.revokeObjectURL(b),n(_),!e.promise)return r.emit("error",_)},m.src=b});return e.promise?t:r}VL.exports=Gie});var hx=B((c3e,WL)=>{"use strict";var GL=zr(),UL=ux(),Uie=Pt(),Ji=Pe(),Rv=gs(),Wie=W1(),Xie=X1(),Zie=ah().version,vx={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Jie(e,r){r=r||{};var t,a,n,i;Ji.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Ji.getGraphDiv(e),t=Ji.extendDeep([],e.data),a=Ji.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(k){return!(k in r)||Ji.validate(r[k],vx[k])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Ji.join2(vx.format.values,", "," or ")+".");var o={};function s(k,A){return Ji.coerce(r,o,vx,k,A)}var u=s("format"),f=s("width"),c=s("height"),h=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var y=Ji.extendFlat({},a);f?y.width=f:r.width===null&&GL(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&GL(i.height)&&(y.height=i.height);var b=Ji.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),_=Rv.getRedrawFunc(m);function w(){return new Promise(function(k){setTimeout(k,Rv.getDelay(m._fullLayout))})}function x(){return new Promise(function(k,A){var C=Wie(m,u,h),D=m._fullLayout.width,E=m._fullLayout.height;function R(){UL.purge(m),document.body.removeChild(m)}if(u==="full-json"){var N=Uie.graphJson(m,!1,"keepdata","object",!0,!0);return N.version=Zie,N=JSON.stringify(N),R(),k(p?N:Rv.encodeJSON(N))}if(R(),u==="svg")return k(p?C:Rv.encodeSVG(C));var I=document.createElement("canvas");I.id=Ji.randstr(),Xie({format:u,width:D,height:E,scale:h,canvas:I,svg:C,promise:!0}).then(k).catch(A)})}function M(k){return p?k.replace(Rv.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,A){UL.newPlot(m,t,y,b).then(_).then(w).then(x).then(function(C){k(M(C))}).catch(function(C){A(C)})})}WL.exports=Jie});var JL=B((v3e,ZL)=>{"use strict";var Kn=Pe(),$ie=Pt(),Kie=Lu(),Qie=Yo().dfltConfig,Ti=Kn.isPlainObject,bs=Array.isArray,dx=Kn.isArrayOrTypedArray;ZL.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=Kie.get(),n=[],i={_context:Kn.extendFlat({},Qie)},l,o;bs(r)?(i.data=Kn.extendDeep([],r),l=r):(i.data=[],l=[],n.push(ua("array","data"))),Ti(t)?(i.layout=Kn.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(ua("object","layout"))),$ie.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fc.length&&a.push(ua("unused",n,u.concat(c.length)));var b=c.length,_=Array.isArray(y);_&&(b=Math.min(b,y.length));var w,x,M,k,A;if(h.dimensions===2)for(x=0;xc[x].length&&a.push(ua("unused",n,u.concat(x,c[x].length)));var C=c[x].length;for(w=0;w<(_?Math.min(C,y[x].length):C);w++)M=_?y[x][w]:y,k=f[x][w],A=c[x][w],Kn.validate(k,M)?A!==k&&A!==+k&&a.push(ua("dynamic",n,u.concat(x,w),k,A)):a.push(ua("value",n,u.concat(x,w),k))}else a.push(ua("array",n,u.concat(x),f[x]));else for(x=0;x{"use strict";var ile=Pe(),J1=gs();function lle(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=J1.createBlob(e,t),u=J1.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),J1.revokeObjectURL(u),s=null,l(r);if(ile.isSafari()){var f=t==="svg"?",":";base64,";return J1.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}$L.exports=lle});var px=B((p3e,jL)=>{"use strict";var QL=Pe(),ole=hx(),sle=KL(),d3e=gs();function ule(e,r){var t;return QL.isPlainObject(e)||(t=QL.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=ole(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),sle(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}jL.exports=ule});var nD=B(mx=>{"use strict";var hn=Pe(),dn=hn.isPlainObject,eD=Lu(),rD=Pt(),fle=an(),tD=ot(),aD=Yo().dfltConfig;mx.makeTemplate=function(e){e=hn.isPlainObject(e)?e:hn.getGraphDiv(e),e=hn.extendDeep({_context:aD},{data:e.data,layout:e.layout}),rD.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};zv(d,p,vle.bind(null,d));var m=hn.coerce(d,{},fle,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),zv(t,a.layout,cle.bind(null,t)),delete a.layout.template;var n=t.template;if(dn(n)){var i=n.layout,l,o,s,u,f,c;dn(i)&&$1(i,a.layout);var h=n.data;if(dn(h)){for(o in a.data)if(s=h[o],Array.isArray(s)){for(f=a.data[o],c=f.length,u=s.length,l=0;lb?l.push({code:"unused",traceType:d,templateCount:y,dataCount:b}):b>y&&l.push({code:"reused",traceType:d,templateCount:y,dataCount:b})}}function _(w,x){for(var M in w)if(M.charAt(0)!=="_"){var k=w[M],A=Qn(w,M,x);dn(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&l.push({code:"missing",path:A,templateitemname:k.templateitemname}),_(k,A)):Array.isArray(k)&&hle(k)&&_(k,A)}}if(_({data:s,layout:o},""),l.length)return l.map(dle)};function hle(e){for(var r=0;r{"use strict";var ea=ux();bt._doPlot=ea._doPlot;bt.newPlot=ea.newPlot;bt.restyle=ea.restyle;bt.relayout=ea.relayout;bt.redraw=ea.redraw;bt.update=ea.update;bt._guiRestyle=ea._guiRestyle;bt._guiRelayout=ea._guiRelayout;bt._guiUpdate=ea._guiUpdate;bt._storeDirectGUIEdit=ea._storeDirectGUIEdit;bt.react=ea.react;bt.extendTraces=ea.extendTraces;bt.prependTraces=ea.prependTraces;bt.addTraces=ea.addTraces;bt.deleteTraces=ea.deleteTraces;bt.moveTraces=ea.moveTraces;bt.purge=ea.purge;bt.addFrames=ea.addFrames;bt.deleteFrames=ea.deleteFrames;bt.animate=ea.animate;bt.setPlotConfig=ea.setPlotConfig;var ple=Ac().getGraphDiv,mle=s1().eraseActiveShape;bt.deleteActiveShape=function(e){return mle(ple(e))};bt.toImage=hx();bt.validate=JL();bt.downloadImage=px();var iD=nD();bt.makeTemplate=iD.makeTemplate;bt.validateTemplate=iD.validateTemplate});var Nv=B((g3e,oD)=>{"use strict";var yx=Pe(),yle=yr();oD.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=yle.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=yx.minRowLength(i);l?o=Math.min(u,yx.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=yx.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var _s=B((x3e,fD)=>{"use strict";var sD=Pe().dateTick0,gle=Mt(),xle=gle.ONEWEEK;function uD(e,r){return e%xle===0?sD(r,1):sD(r,0)}fD.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",uD(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",uD(o,t.ycalendar)),n("yperiodalignment"))}}});var hD=B((b3e,vD)=>{"use strict";var cD=["orientation","groupnorm","stackgaps"];vD.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var dD=xr(),pD=bn().hasColorscale,mD=Ru(),ble=wn();yD.exports=function(r,t,a,n,i,l){var o=ble.isBubble(r),s=(r.line||{}).color,u;if(l=l||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),pD(r,"marker")&&mD(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=dD.background:u=dD.defaultLine,i("marker.line.color",u),pD(r,"marker.line")&&mD(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0)),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var bD=B((w3e,xD)=>{"use strict";var _le=Pe().isArrayOrTypedArray,wle=bn().hasColorscale,Tle=Ru();xD.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),wle(r,"line"))Tle(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(_le(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var wD=B((T3e,_D)=>{"use strict";_D.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var MD=B((M3e,TD)=>{"use strict";var Mle=Pe();TD.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Mle.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var qD=B((A3e,kD)=>{"use strict";var Q1=xr(),AD=Pe().isArrayOrTypedArray;function Ale(e){for(var r=Q1.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var SD=Pe(),kle=yr(),qle=_i(),Sle=A1(),ff=wn(),Cle=Nv(),Lle=_s(),Dle=hD(),Ele=gD(),Ple=bD(),CD=wD(),Rle=MD(),zle=qD(),Nle=Pe().coercePattern;LD.exports=function(r,t,a,n){function i(d,p){return SD.coerce(r,t,qle,d,p)}var l=Cle(r,t,n,i);if(l||(t.visible=!1),!!t.visible){Lle(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=Dle(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var Fle=ys().getAxisGroup;ED.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=Fle(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var h=c[f];h?h.traces.push(t):h=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=h.offsetGroups,m=p[d];t._offsetIndex=0,(i!=="group"||d)&&(m||(m=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var RD=B((S3e,PD)=>{"use strict";var Ile=Pe(),Hle=cf(),Ole=_i();PD.exports=function(r,t){var a,n,i,l=t.scattermode;function o(h){return Ile.coerce(n._input,n,Ole,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var ND=B((C3e,zD)=>{"use strict";var Ble=Pe(),Yle=Vh();zD.exports=function(e,r){function t(n,i){return Ble.coerce(e,r,Yle,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var ws=B((L3e,ID)=>{"use strict";var Vle=zr(),FD=Pe(),Gle=FD.dateTime2ms,j1=FD.incrementMonth,Ule=Mt(),Wle=Ule.ONEAVGMONTH;ID.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(Vle(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",h=r[a+"period0"],d=Gle(h,u)||0,p=[],m=[],y=[],b=n.length,_=0;_w;)k=j1(k,-o,u);for(;k<=w;)k=j1(k,o,u);M=j1(k,-o,u)}else{for(x=Math.round((w-d)/l),k=d+x*l;k>w;)k-=l;for(;k<=w;)k+=l;M=k-l}p[_]=f?M:c?k:(M+k)/2,m[_]=M,y[_]=k}return{vals:p,starts:m,ends:y}}});var BD=B((D3e,OD)=>{"use strict";var gx=bn().hasColorscale,xx=Bc(),HD=wn();OD.exports=function(r,t){HD.hasLines(t)&&gx(t,"line")&&xx(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),HD.hasMarkers(t)&&(gx(t,"marker")&&xx(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),gx(t,"marker.line")&&xx(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var bx=B((E3e,YD)=>{"use strict";var Rt=Pe();YD.exports=function(r,t){for(var a=0;a{"use strict";var VD=Pe();GD.exports=function(r,t){VD.isArrayOrTypedArray(t.selectedpoints)&&VD.tagSelected(r,t)}});var Ax=B((R3e,KD)=>{"use strict";var UD=zr(),wx=Pe(),Iv=Jr(),WD=ws(),_x=Mt().BADNUM,Tx=wn(),Xle=BD(),Zle=bx(),Jle=Fv();function $le(e,r){var t=e._fullLayout,a=r._xA=Iv.getFromId(e,r.xaxis||"x","x"),n=r._yA=Iv.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=WD(r,a,"x",i),s=WD(r,n,"y",l),u=o.vals,f=s.vals,c=r._length,h=new Array(c),d=r.ids,p=Mx(r,t,a,n),m=!1,y,b,_,w,x,M;JD(t,r);var k="x",A="y",C;if(p)wx.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(A="s",C="x"):(k="s",C="y"),x=p.stackgaps==="interpolate";else{var D=ZD(r,c);XD(e,r,a,n,u,f,D)}var E=!!r.xperiodalignment,R=!!r.yperiodalignment;for(b=0;bb&&h[w].gap;)w--;for(M=h[w].s,_=h.length-1;_>w;_--)h[_].s=M;for(;b{"use strict";QD.exports=ep;var Kle=Pe().distinctVals;function ep(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var jn=zr(),no=Pe().isArrayOrTypedArray,vf=Mt().BADNUM,Qle=yr(),Hv=Jr(),jle=ys().getAxisGroup,rp=jD();function eoe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!jn(o))}for(var f=0;f{"use strict";var nE=Ax(),iE=df().setGroupPositions;function voe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uD[f]&&f{"use strict";var doe=Yr(),cE=Mt(),Ov=cE.BADNUM,vE=cE.LOG_CLIP,sE=vE+.5,uE=vE-.5,tp=Pe(),poe=tp.segmentsIntersect,fE=tp.constrain,Dx=A1();hE.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,h=t.connectGaps,d=t.baseTolerance,p=t.shape,m=p==="linear",y=a.fill&&a.fill!=="none",b=[],_=Dx.minTolerance,w=r.length,x=new Array(w),M=0,k,A,C,D,E,R,N,I,H,G,W,Y,O,V,Z,$;function te(Re){var ne=r[Re];if(!ne)return!1;var ce=t.linearized?n.l2p(ne.x):n.c2p(ne.x),Le=t.linearized?i.l2p(ne.y):i.c2p(ne.y);if(ce===Ov){if(l&&(ce=n.c2p(ne.x,!0)),ce===Ov)return!1;o&&Le===Ov&&(ce*=Math.abs(n._m*u*(n._m>0?sE:uE)/(i._m*s*(i._m>0?sE:uE)))),ce*=1e3}if(Le===Ov){if(o&&(Le=i.c2p(ne.y,!0)),Le===Ov)return!1;Le*=1e3}return[ce,Le]}function le(Re,ne,ce,Le){var Ce=ce-Re,or=Le-ne,lr=.5-Re,ar=.5-ne,Ar=Ce*Ce+or*or,Br=Ce*lr+or*ar;if(Br>0&&Br1||Math.abs(lr.y-ce[0][1])>1)&&(lr=[lr.x,lr.y],Le&&qe(lr,Re)se||Re[1]U)return[fE(Re[0],Ae,se),fE(Re[1],be,U)]}function Ue(Re,ne){if(Re[0]===ne[0]&&(Re[0]===Ae||Re[0]===se)||Re[1]===ne[1]&&(Re[1]===be||Re[1]===U))return!0}function Ve(Re,ne){var ce=[],Le=Ne(Re),Ce=Ne(ne);return Le&&Ce&&Ue(Le,Ce)||(Le&&ce.push(Le),Ce&&ce.push(Ce)),ce}function De(Re,ne,ce){return function(Le,Ce){var or=Ne(Le),lr=Ne(Ce),ar=[];if(or&&lr&&Ue(or,lr))return ar;or&&ar.push(or),lr&&ar.push(lr);var Ar=2*tp.constrain((Le[Re]+Ce[Re])/2,ne,ce)-((or||Le)[Re]+(lr||Ce)[Re]);if(Ar){var Br;or&&lr?Br=Ar>0==or[Re]>lr[Re]?or:lr:Br=or||lr,Br[Re]+=Ar}return ar}}var He;p==="linear"||p==="spline"?He=Ee:p==="hv"||p==="vh"?He=Ve:p==="hvh"?He=De(0,Ae,se):p==="vhv"&&(He=De(1,be,U));function Oe(Re,ne){var ce=ne[0]-Re[0],Le=(ne[1]-Re[1])/ce,Ce=(Re[1]*ne[0]-ne[1]*Re[0])/ce;return Ce>0?[Le>0?Ae:se,U]:[Le>0?se:Ae,be]}function ie(Re){var ne=Re[0],ce=Re[1],Le=ne===x[M-1][0],Ce=ce===x[M-1][1];if(!(Le&&Ce))if(M>1){var or=ne===x[M-2][0],lr=ce===x[M-2][1];Le&&(ne===Ae||ne===se)&&or?lr?M--:x[M-1]=Re:Ce&&(ce===be||ce===U)&&lr?or?M--:x[M-1]=Re:x[M++]=Re}else x[M++]=Re}function Me(Re){x[M-1][0]!==Re[0]&&x[M-1][1]!==Re[1]&&ie([ke,xe]),ie(Re),ze=null,ke=xe=0}var Ze=tp.isArrayOrTypedArray(c);function cr(Re){if(Re&&f&&(Re.i=k,Re.d=r,Re.trace=a,Re.marker=Ze?c[Re.i]:c,Re.backoff=f),fe=Re[0]/s,he=Re[1]/u,X=Re[0]se?se:0,ge=Re[1]U?U:0,X||ge){if(!M)x[M++]=[X||Re[0],ge||Re[1]];else if(ze){var ne=He(ze,Re);ne.length>1&&(Me(ne[0]),x[M++]=ne[1])}else Fe=He(x[M-1],Re)[0],x[M++]=Fe;var ce=x[M-1];X&&ge&&(ce[0]!==X||ce[1]!==ge)?(ze&&(ke!==X&&xe!==ge?ie(ke&&xe?Oe(ze,Re):[ke||X,xe||ge]):ke&&xe&&ie([ke,xe])),ie([X,ge])):ke-X&&xe-ge&&ie([X||ke,ge||xe]),ze=Re,ke=X,xe=ge}else ze&&Me(He(ze,Re)[0]),x[M++]=Re}for(k=0;kQ(R,fr))break;C=R,O=H[0]*I[0]+H[1]*I[1],O>W?(W=O,D=R,N=!1):O=r.length||!R)break;cr(R),A=R}}ze&&ie([ke||ze[0],xe||ze[1]]),b.push(x.slice(0,M))}var oe=p.slice(p.length-1);if(f&&oe!=="h"&&oe!=="v"){for(var Se=!1,Ie=-1,We=[],Ge=0;Ge{"use strict";var pE={tonextx:1,tonexty:1,tonext:1};mE.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,c=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var Mi=kr(),moe=yr(),Bv=Pe(),pf=Bv.ensureSingle,xE=Bv.identity,zt=Yr(),mf=wn(),yoe=dE(),goe=yE(),ap=E3().tester;bE.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=goe(r,t,a);if(o=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),o.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),o.order(),xoe(r,o,t),f){l&&(s=l());var h=Mi.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){n.selectAll("g.trace").each(function(d,p){gE(r,p,t,d,c,this,i)})})}else o.each(function(d,p){gE(r,p,t,d,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function xoe(e,r,t){r.each(function(a){var n=pf(Mi.select(this),"g","fills");zt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,xE);o.enter().append("g"),o.exit().each(function(s){i[s]=null}).remove(),o.order().each(function(s){i[s]=pf(Mi.select(this),"path","js-fill")})})}function gE(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;boe(e,r,t,a,n);var u=!!l&&l.duration>0;function f(De){return u?De.transition():De}var c=t.xaxis,h=t.yaxis,d=a[0].trace,p=d.line,m=Mi.select(i),y=pf(m,"g","errorbars"),b=pf(m,"g","lines"),_=pf(m,"g","points"),w=pf(m,"g","text");if(moe.getComponentMethod("errorbars","plot")(e,y,t,l),d.visible!==!0)return;f(m).style("opacity",d.opacity);var x,M,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var A,C;k==="y"?(A=1,C=h.c2p(0,!0)):k==="x"&&(A=0,C=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var D="",E=[],R=d._prevtrace,N=null,I=null;R&&(D=R._prevRevpath||"",M=R._nextFill,E=R._ownPolygons,N=R._fillsegments,I=R._fillElement);var H,G,W="",Y="",O,V,Z,$,te,le,fe=[];d._polygons=[];var he=[],Q=[],qe=Bv.noop;if(x=d._ownFill,mf.hasLines(d)||d.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(O=zt.steps(p.shape),V=zt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?O=V=function(De){var He=De[De.length-1];return De.length>1&&De[0][0]===He[0]&&De[0][1]===He[1]?zt.smoothclosed(De.slice(1),p.smoothing):zt.smoothopen(De,p.smoothing)}:O=V=function(De){return"M"+De.join("L")},Z=function(De){return V(De.reverse())},Q=yoe(a,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),he=new Array(Q.length);var ve=0;for(s=0;s=o[0]&&m.x<=o[1]&&m.y>=s[0]&&m.y<=s[1]}),h=Math.ceil(c.length/f),d=0;n.forEach(function(m,y){var b=m[0].trace;mf.hasMarkers(b)&&b.marker.maxdisplayed>0&&y{"use strict";wE.exports={container:"marker",min:"cmin",max:"cmax"}});var ME=B((Y3e,TE)=>{"use strict";var ip=Jr();TE.exports=function(r,t,a){var n={},i={_fullLayout:a},l=ip.getFromTrace(i,t,"x"),o=ip.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=ip.tickText(l,l.c2l(s),!0).text,n.yLabel=ip.tickText(o,o.c2l(u),!0).text,n}});var zx=B((V3e,AE)=>{"use strict";var Ex=kr(),yf=Yr(),_oe=yr();function woe(e){var r=Ex.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=Ex.select(this),n=t.trace||t[0].trace;Px(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Ex.select(this),n=t.trace||t[0].trace;Rx(a,n,e)}),r.selectAll("g.trace path.js-line").call(yf.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(yf.fillGroupStyle,e,!1),_oe.getComponentMethod("errorbars","style")(r)}function Px(e,r,t){yf.pointStyle(e.selectAll("path.point"),r,t)}function Rx(e,r,t){yf.textPointStyle(e.selectAll("text"),r,t)}function Toe(e,r,t){var a=r[0].trace;a.selectedpoints?(yf.selectedPointStyle(t.selectAll("path.point"),a),yf.selectedTextStyle(t.selectAll("text"),a)):(Px(t,a,e),Rx(t,a,e))}AE.exports={style:woe,stylePoints:Px,styleText:Rx,styleOnSelect:Toe}});var qE=B((G3e,kE)=>{"use strict";var gf=xr(),Moe=wn();kE.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&gf.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&gf.opacity(i)?i:l&&gf.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?gf.opacity(n)<.3?gf.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&gf.opacity(a)&&Moe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var LE=B((U3e,CE)=>{"use strict";var lp=Pe(),SE=xi(),Aoe=yr(),koe=qE(),Nx=xr(),qoe=lp.fillText;CE.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),c=[u,f],h=l.hoveron||"",d=l.mode.indexOf("markers")!==-1?3:.5,p=!!l.xperiodalignment,m=!!l.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(Y){if(p){var O=o.c2p(Y.xStart),V=o.c2p(Y.xEnd);return u>=Math.min(O,V)&&u<=Math.max(O,V)?0:1/0}var Z=Math.max(3,Y.mrc||0),$=1-1/Z,te=Math.abs(o.c2p(Y.x)-u);return te=Math.min(O,V)&&f<=Math.max(O,V)?0:1/0}var Z=Math.max(3,Y.mrc||0),$=1-1/Z,te=Math.abs(s.c2p(Y.y)-f);return tefe!=U>=fe&&(Ae=qe[Q-1][0],se=qe[Q][0],U-be&&(ve=Ae+(se-Ae)*(fe-be)/(U-be),Z=Math.min(Z,ve),$=Math.max($,ve)));return Z=Math.max(Z,0),$=Math.min($,o._length),{x0:Z,x1:$,y0:fe,y1:fe}}if(h.indexOf("fills")!==-1&&l._fillElement){var H=N(l._fillElement)&&!N(l._fillExclusionElement);if(H){var G=I(l._polygons);G===null&&(G={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var W=Nx.defaultLine;return Nx.opacity(l.fillcolor)?W=l.fillcolor:Nx.opacity((l.line||{}).color)&&(W=l.line.color),lp.extendFlat(r,{distance:r.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:W,hovertemplate:!1}),delete r.index,l.text&&!lp.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var PE=B((W3e,EE)=>{"use strict";var DE=wn();EE.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,c,h=!DE.hasMarkers(o)&&!DE.hasText(o);if(h)return[];if(t===!1)for(s=0;s{"use strict";RE.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var HE=B((Z3e,IE)=>{"use strict";var Yv=yr().traceIs,Fx=s2();IE.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Soe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Soe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Coe(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!Yv(i,"cartesian")||Yv(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,FE(i,a)){var u=NE(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(FE(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function NE(e){return{v:"x",h:"y"}[e.orientation||"v"]}function FE(e,r){var t=NE(e),a=Yv(e,"box-violin"),n=Yv(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var BE=B((J3e,OE)=>{"use strict";var Loe=gn().isTypedArraySpec;function Doe(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||Loe(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Doe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var GE=B(($3e,VE)=>{"use strict";var YE=zn().mix,Eoe=Nn(),Poe=Pe();VE.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(C,D){return Poe.coerce2(r,t,n.attributes,C,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=YE(i,n.bgColor,n.blend||Eoe.lightFraction).toRgbString(),c=l("gridcolor",f),h=l("gridwidth"),d=l("griddash"),p=a("showgrid",n.showGrid||!!c||!!h||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=YE(t.gridcolor,n.bgColor,67).toRgbString(),y=l("minor.gridcolor",m),b=l("minor.gridwidth",t.gridwidth||1),_=l("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!y||!!b||!!_);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=l("zerolinelayer"),M=l("zerolinecolor",i),k=l("zerolinewidth"),A=a("zeroline",n.showGrid||!!M||!!k);A||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var sp=B((K3e,$E)=>{"use strict";var UE=zr(),Roe=yr(),Vv=Pe(),zoe=ot(),Noe=On(),Ix=_n(),WE=jh(),XE=ed(),Foe=td(),Ioe=ad(),Hoe=BE(),Ooe=GE(),Boe=C2(),ZE=yd(),op=Aa().WEEKDAY_PATTERN,Yoe=Aa().HOUR_PATTERN;$E.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",h;if(c==="date"){var d=Roe.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=Vv.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),ZE(t,i),Boe(r,t,a,n),Hoe(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==Ix.color.dflt?m:o.color,b=s.label||i._dfltTitle[l];if(Ioe(r,t,a,c,n),!u)return t;a("title.text",b),Vv.coerceFont(a,"title.font",o,{overrideDflt:{size:Vv.bigFont(o.size),color:y}}),WE(r,t,a,c);var _=n.hasMinor;if(_&&(zoe.newContainer(t,"minor"),WE(r,t,a,c,{isMinor:!0})),Foe(r,t,a,c,n),XE(r,t,a,n),_){var w=n.isMinor;n.isMinor=!0,XE(r,t,a,n),n.isMinor=w}Ooe(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:_,attributes:Ix}),_&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Noe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Voe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=JE(i[o]),s){l=op;break}}var u=a("pattern",l);if(u===op)for(o=0;o<2;o++)s=JE(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case op:if(!UE(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case Yoe:if(!UE(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var Uoe=zr(),up=Pe();KE.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,c,h,d,p,m;s&&(c=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],c&&(h=s[o+"side"].split(" ")[0],d=s.domain[o][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(Uoe(r.position)?"free":i[0]||"free"),h=h||(o==="x"?"bottom":"left"),d=d||0,p=0,m=!1;var y=up.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=up.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(o==="y"){var _=a("autoshift");_&&(d=b==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",m);var w=!1;if(l.length&&(w=up.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!w){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),up.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var lP=B((j3e,iP)=>{"use strict";var Ts=Pe(),QE=xr(),Woe=Hi().isUnifiedHover,Xoe=r3(),jE=ot(),Zoe=xu(),eP=_n(),Joe=HE(),rP=sp(),$oe=ys(),tP=fp(),Ox=Ut(),$i=Ox.id2name,aP=Ox.name2id,Koe=Aa().AX_ID_PATTERN,nP=yr(),cp=nP.traceIs,Hx=nP.getComponentMethod;function vp(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}iP.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},c={},h={},d={},p={},m,y;for(m=0;m{"use strict";var Qoe=kr(),oP=yr(),hp=Pe(),Sn=Yr(),dp=Jr();sP.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){dp.redrawComponents(r);return}function l(y){var b=y.xaxis,_=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Sn.setTranslate,0,0).call(Sn.setScale,1,1),y.plot.call(Sn.setTranslate,b._offset,_._offset).call(Sn.setScale,1,1);var w=y.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(Sn.setPointGroupScale,1,1),w.selectAll(".textpoint").call(Sn.setTextPointsScale,1,1),w.call(Sn.hideOutsideRangePoints,y)}function o(y,b){var _=y.plotinfo,w=_.xaxis,x=_.yaxis,M=w._length,k=x._length,A=!!y.xr1,C=!!y.yr1,D=[];if(A){var E=hp.simpleMap(y.xr0,w.r2l),R=hp.simpleMap(y.xr1,w.r2l),N=E[1]-E[0],I=R[1]-R[0];D[0]=(E[0]*(1-b)+b*R[0]-E[0])/(E[1]-E[0])*M,D[2]=M*(1-b+b*I/N),w.range[0]=w.l2r(E[0]*(1-b)+b*R[0]),w.range[1]=w.l2r(E[1]*(1-b)+b*R[1])}else D[0]=0,D[2]=M;if(C){var H=hp.simpleMap(y.yr0,x.r2l),G=hp.simpleMap(y.yr1,x.r2l),W=H[1]-H[0],Y=G[1]-G[0];D[1]=(H[1]*(1-b)+b*G[1]-H[1])/(H[0]-H[1])*k,D[3]=k*(1-b+b*Y/W),x.range[0]=w.l2r(H[0]*(1-b)+b*G[0]),x.range[1]=x.l2r(H[1]*(1-b)+b*G[1])}else D[1]=0,D[3]=k;dp.drawOne(r,w,{skipTitle:!0}),dp.drawOne(r,x,{skipTitle:!0}),dp.redrawComponents(r,[w._id,x._id]);var O=A?M/D[2]:1,V=C?k/D[3]:1,Z=A?D[0]:0,$=C?D[1]:0,te=A?D[0]/D[2]*M:0,le=C?D[1]/D[3]*k:0,fe=w._offset-te,he=x._offset-le;_.clipRect.call(Sn.setTranslate,Z,$).call(Sn.setScale,1/O,1/V),_.plot.call(Sn.setTranslate,fe,he).call(Sn.setScale,O,V),Sn.setPointGroupScale(_.zoomScalePts,1/O,1/V),Sn.setTextPointsScale(_.zoomScaleTxt,1/O,1/V)}var s;n&&(s=n());function u(){for(var y={},b=0;ba.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return c=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var gl=B(Na=>{"use strict";var mp=kr(),fP=yr(),Ms=Pe(),joe=Pt(),ese=Yr(),cP=xg().getModuleCalcData,io=Ut(),Ai=Aa(),rse=Qo(),$r=Ms.ensureSingle;function pp(e,r,t){return Ms.ensureSingle(e,r,t,function(a){a.datum(t)})}var As=Ai.zindexSeparator;Na.name="cartesian";Na.attr=["xaxis","yaxis"];Na.idRoot=["x","y"];Na.idRegex=Ai.idRegex;Na.attrRegex=Ai.attrRegex;Na.attributes=zE();Na.layoutAttributes=_n();Na.supplyLayoutDefaults=lP();Na.transitionAxes=uP();Na.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,c;for(u=0;u0){var d=h.id;if(d.indexOf(As)!==-1)continue;d+=As+(u+1),h=Ms.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],m,y=0;y1&&(M+=As+x),w.push(o+M),l=0;l1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=$r(a,"path","xlines-above"),r.ylines=$r(a,"path","ylines-above"),r.xaxislayer=$r(a,"g","xaxislayer-above"),r.yaxislayer=$r(a,"g","yaxislayer-above");else{if(!l){var h=$r(a,"g","layer-subplot");r.shapelayer=$r(h,"g","shapelayer"),r.imagelayer=$r(h,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=$r(a,"g","minor-gridlayer"),r.gridlayer=$r(a,"g","gridlayer"),r.zerolinelayer=$r(a,"g","zerolinelayer"));var d=$r(a,"g","layer-between");r.shapelayerBetween=$r(d,"g","shapelayer"),r.imagelayerBetween=$r(d,"g","imagelayer"),$r(a,"path","xlines-below"),$r(a,"path","ylines-below"),r.overlinesBelow=$r(a,"g","overlines-below"),$r(a,"g","xaxislayer-below"),$r(a,"g","yaxislayer-below"),r.overaxesBelow=$r(a,"g","overaxes-below")}r.overplot=$r(a,"g","overplot"),r.plot=$r(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=$r(a,"g","zerolinelayer-above"),l||(r.xlines=$r(a,"path","xlines-above"),r.ylines=$r(a,"path","ylines-above"),r.overlinesAbove=$r(a,"g","overlines-above"),$r(a,"g","xaxislayer-above"),$r(a,"g","yaxislayer-above"),r.overaxesAbove=$r(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,$r(c.overlinesBelow,"path",m),$r(c.overlinesBelow,"path",y),$r(c.overaxesBelow,"g",m),$r(c.overaxesBelow,"g",y),r.plot=$r(c.overplot,"g",n),$r(c.overlinesAbove,"path",m),$r(c.overlinesAbove,"path",y),$r(c.overaxesAbove,"g",m),$r(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+o).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+o).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}l||(u||(pp(r.minorGridlayer,"g",r.xaxis._id),pp(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(io.idSort),pp(r.gridlayer,"g",r.xaxis._id),pp(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(io.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function dP(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=mp.select(this);f.remove(),pP(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var yp=wn();mP.exports={hasLines:yp.hasLines,hasMarkers:yp.hasMarkers,hasText:yp.hasText,isBubble:yp.isBubble,attributes:_i(),layoutAttributes:Vh(),supplyDefaults:DD(),crossTraceDefaults:RD(),supplyLayoutDefaults:ND(),calc:Ax().calc,crossTraceCalc:oE(),arraysToCalcdata:bx(),plot:_E(),colorbar:np(),formatLabels:ME(),style:zx().style,styleOnSelect:zx().styleOnSelect,hoverPoints:LE(),selectPoints:PE(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:gl(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var bP=B((axe,xP)=>{"use strict";var ase=kr(),nse=xr(),gP=G3(),Bx=Pe(),ise=Bx.strScale,lse=Bx.strRotate,ose=Bx.strTranslate;xP.exports=function(r,t,a){var n=r.node(),i=gP[a.arrowhead||0],l=gP[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*o+a.standoff,h=l.backoff*s+a.startstandoff,d,p,m,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,_=d.y-p.y;if(m=Math.atan2(_,b),y=m+Math.PI,c&&h&&c+h>Math.sqrt(b*b+_*_)){H();return}if(c){if(c*c>b*b+_*_){H();return}var w=c*Math.cos(m),x=c*Math.sin(m);p.x+=w,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(h){if(h*h>b*b+_*_){H();return}var M=h*Math.cos(m),k=h*Math.sin(m);d.x-=M,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var A=n.getTotalLength(),C="";if(A{"use strict";var _P=kr(),Yx=yr(),sse=Pt(),oo=Pe(),Vx=oo.strTranslate,Uv=Jr(),ks=xr(),xl=Yr(),wP=xi(),Gx=da(),Ux=Kl(),Gv=yi(),use=ot().arrayEditor,fse=bP();AP.exports={draw:cse,drawOne:TP,drawRaw:MP};function cse(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ce="right":Ce="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ce]}for(var be=!1,U=["x","y"],j=0;j1)&&(ke===ge?(fr=xe.r2fraction(r["a"+X]),(fr<0||fr>1)&&(be=!0)):be=!0),He=xe._offset+xe.r2p(r[X]),Me=.5}else{var oe=cr==="domain";X==="x"?(ie=r[X],He=oe?xe._offset+xe._length*ie:He=o.l+o.w*ie):(ie=1-r[X],He=oe?xe._offset+xe._length*ie:He=o.t+o.h*ie),Me=r.showarrow?.5:ie}if(r.showarrow){De.head=He;var Se=r["a"+X];if(Ze=Fe*se(.5,r.xanchor)-Ee*se(.5,r.yanchor),ke===ge){var Ie=Uv.getRefType(ke);Ie==="domain"?(X==="y"&&(Se=1-Se),De.tail=xe._offset+xe._length*Se):Ie==="paper"?X==="y"?(Se=1-Se,De.tail=o.t+o.h*Se):De.tail=o.l+o.w*Se:De.tail=xe._offset+xe.r2p(Se),Oe=Ze}else De.tail=He+Se,Oe=Ze+Se;De.text=De.tail+Ze;var We=l[X==="x"?"width":"height"];if(ge==="paper"&&(De.head=oo.constrain(De.head,1,We-1)),ke==="pixel"){var Ge=-Math.max(De.tail-3,De.text),Je=Math.min(De.tail+3,De.text)-We;Ge>0?(De.tail+=Ge,De.text+=Ge):Je>0&&(De.tail-=Je,De.text-=Je)}De.tail+=Ve,De.head+=Ve}else Ze=Ne*se(Me,Ue),Oe=Ze,De.text=He+Ze;De.text+=Ve,Ze+=Ve,Oe+=Ve,r["_"+X+"padplus"]=Ne/2+Oe,r["_"+X+"padminus"]=Ne/2-Oe,r["_"+X+"size"]=Ne,r["_"+X+"shift"]=Ze}if(be){A.remove();return}var Qe=0,vr=0;if(r.align!=="left"&&(Qe=(Q-fe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(vr=(qe-he)*(r.valign==="middle"?.5:1)),te)$.select("svg").attr({x:E+Qe-1,y:E+vr}).call(xl.setClipUrl,N?m:null,e);else{var $e=E+vr-le.top,Re=E+Qe-le.left;W.call(Gx.positionText,Re,$e).call(xl.setClipUrl,N?m:null,e)}I.select("rect").call(xl.setRect,E,E,Q,qe),R.call(xl.setRect,C/2,C/2,ve-C,Ae-C),A.call(xl.setTranslate,Math.round(y.x.text-ve/2),Math.round(y.y.text-Ae/2)),w.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var ne=function(Le,Ce){_.selectAll(".annotation-arrow-g").remove();var or=y.x.head,lr=y.y.head,ar=y.x.tail+Le,Ar=y.y.tail+Ce,Br=y.x.text+Le,tt=y.y.text+Ce,jr=oo.rotationXYMatrix(b,Br,tt),ra=oo.apply2DTransform(jr),It=oo.apply2DTransform2(jr),_t=+R.attr("width"),Dt=+R.attr("height"),ga=Br-.5*_t,xa=ga+_t,Gt=tt-.5*Dt,Ka=Gt+Dt,gr=[[ga,Gt,ga,Ka],[ga,Ka,xa,Ka],[xa,Ka,xa,Gt],[xa,Gt,ga,Gt]].map(It);if(!gr.reduce(function(it,ba){return it^!!oo.segmentsIntersect(or,lr,or+1e6,lr+1e6,ba[0],ba[1],ba[2],ba[3])},!1)){gr.forEach(function(it){var ba=oo.segmentsIntersect(ar,Ar,or,lr,it[0],it[1],it[2],it[3]);ba&&(ar=ba.x,Ar=ba.y)});var ft=r.arrowwidth,Wr=r.arrowcolor,wt=r.arrowside,Et=_.append("g").style({opacity:ks.opacity(Wr)}).classed("annotation-arrow-g",!0),ct=Et.append("path").attr("d","M"+ar+","+Ar+"L"+or+","+lr).style("stroke-width",ft+"px").call(ks.stroke,ks.rgb(Wr));if(fse(ct,wt,r),s.annotationPosition&&ct.node().parentNode&&!a){var Tt=or,Ha=lr;if(r.standoff){var ca=Math.sqrt(Math.pow(or-ar,2)+Math.pow(lr-Ar,2));Tt+=r.standoff*(ar-or)/ca,Ha+=r.standoff*(Ar-lr)/ca}var ni=Et.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ar-Tt)+","+(Ar-Ha),transform:Vx(Tt,Ha)}).style("stroke-width",ft+6+"px").call(ks.stroke,"rgba(0,0,0,0)").call(ks.fill,"rgba(0,0,0,0)"),ii,ta;Gv.init({element:ni.node(),gd:e,prepFn:function(){var it=xl.getTranslate(A);ii=it.x,ta=it.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(it,ba){var Do=ra(ii,ta),Eo=Do[0]+it,Ll=Do[1]+ba;A.call(xl.setTranslate,Eo,Ll),d("x",lo(n,it,"x",o,r)),d("y",lo(i,ba,"y",o,r)),r.axref===r.xref&&d("ax",lo(n,it,"ax",o,r)),r.ayref===r.yref&&d("ay",lo(i,ba,"ay",o,r)),Et.attr("transform",Vx(it,ba)),w.attr({transform:"rotate("+b+","+Eo+","+Ll+")"})},doneFn:function(){Yx.call("_guiRelayout",e,p());var it=document.querySelector(".js-notes-box-panel");it&&it.redraw(it.selectedObj)}})}}};if(r.showarrow&&ne(0,0),x){var ce;Gv.init({element:A.node(),gd:e,prepFn:function(){ce=w.attr("transform")},moveFn:function(Le,Ce){var or="pointer";if(r.showarrow)r.axref===r.xref?d("ax",lo(n,Le,"ax",o,r)):d("ax",r.ax+Le),r.ayref===r.yref?d("ay",lo(i,Ce,"ay",o.w,r)):d("ay",r.ay+Ce),ne(Le,Ce);else{if(a)return;var lr,ar;if(n)lr=lo(n,Le,"x",o,r);else{var Ar=r._xsize/o.w,Br=r.x+(r._xshift-r.xshift)/o.w-Ar/2;lr=Gv.align(Br+Le/o.w,Ar,0,1,r.xanchor)}if(i)ar=lo(i,Ce,"y",o,r);else{var tt=r._ysize/o.h,jr=r.y-(r._yshift+r.yshift)/o.h-tt/2;ar=Gv.align(jr-Ce/o.h,tt,0,1,r.yanchor)}d("x",lr),d("y",ar),(!n||!i)&&(or=Gv.getCursor(n?.5:lr,i?.5:ar,r.xanchor,r.yanchor))}w.attr({transform:Vx(Le,Ce)+ce}),Ux(A,or)},clickFn:function(Le,Ce){r.captureevents&&e.emit("plotly_clickannotation",k(Ce))},doneFn:function(){Ux(A),Yx.call("_guiRelayout",e,p());var Le=document.querySelector(".js-notes-box-panel");Le&&Le.redraw(Le.selectedObj)}})}}s.annotationText?W.call(Gx.makeEditable,{delegate:A,gd:e}).call(Y).on("edit",function(V){r.text=V,this.call(Y),d("text",V),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),Yx.call("_guiRelayout",e,p())}):W.call(Y)}});var DP=B((ixe,LP)=>{"use strict";var kP=Pe(),vse=yr(),qP=ot().arrayEditor;LP.exports={hasClickToShow:hse,onClick:dse};function hse(e,r){var t=CP(e,r);return t.on.length>0||t.explicitOff.length>0}function dse(e,r){var t=CP(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var Wx=Pe(),xf=xr();EP.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=xf.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),Wx.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),h,d;c.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",o?t.bordercolor:xf.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",m.bgcolor||(xf.opacity(i)?xf.rgb(i):xf.defaultLine)),b=n("hoverlabel.bordercolor",m.bordercolor||xf.contrast(y)),_=Wx.extendFlat({},m.font);_.color||(_.color=b),Wx.coerceFont(n,"hoverlabel.font",_)}n("captureevents",!!p)}});var RP=B((oxe,PP)=>{"use strict";var Zx=Pe(),qs=Jr(),pse=On(),mse=Xx(),yse=of();PP.exports=function(r,t){pse(r,t,{name:"annotations",handleItemDefaults:gse})};function gse(e,r,t){function a(w,x){return Zx.coerce(e,r,yse,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){mse(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=o[f],h=qs.coerceRef(e,r,u,c,"","paper");if(h!=="paper"){var d=qs.getFromId(u,h);d._annIndices.push(r._index)}if(qs.coercePosition(r,u,a,h,c,.5),l){var p="a"+c,m=qs.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==h&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;qs.coercePosition(r,u,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(Zx.noneOrAll(e,r,["x","y"]),l&&Zx.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),_=a("yclick");r._xclick=b===void 0?r.x:qs.cleanPosition(b,u,r.xref),r._yclick=_===void 0?r.y:qs.cleanPosition(_,u,r.yref)}}}});var FP=B((sxe,NP)=>{"use strict";var Jx=Pe(),Ss=Jr(),xse=gp().draw;NP.exports=function(r){var t=r._fullLayout,a=Jx.filterVisible(t.annotations);if(a.length&&r._fullData.length)return Jx.syncOrAsync([xse,bse],r)};function bse(e){var r=e._fullLayout;Jx.filterVisible(r.annotations).forEach(function(t){var a=Ss.getFromId(e,t.xref),n=Ss.getFromId(e,t.yref),i=Ss.getRefType(t.xref),l=Ss.getRefType(t.yref);t._extremes={},i==="range"&&zP(t,a),l==="range"&&zP(t,n)})}function zP(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,m=p+f,y=p-f,b;if(o===l){var _=Ss.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),w=Ss.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(u,y)});b={min:[_.min[0],w.min[0]],max:[_.max[0],w.max[0]]}}else m=i?m+i:m,y=i?y-i:y,b=Ss.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,m),ppadminus:Math.max(u,d,y)});e._extremes[t]=b}});var HP=B((uxe,IP)=>{"use strict";var _se=zr(),wse=hh();IP.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],m=null;i?m=wse(p,t.range):m=Math.pow(10,p),_se(m)||(m=null),n(f+d,m)}for(var h=0;h{"use strict";var $x=gp(),OP=DP();BP.exports={moduleType:"component",name:"annotations",layoutAttributes:of(),supplyLayoutDefaults:RP(),includeBasePlot:Mv()("annotations"),calcAutorange:FP(),draw:$x.draw,drawOne:$x.drawOne,drawRaw:$x.drawRaw,hasClickToShow:OP.hasClickToShow,onClick:OP.onClick,convertCoords:HP()}});var xp=B((cxe,VP)=>{"use strict";var dt=of(),Tse=fi().overrideAll,Mse=ot().templatedArray;VP.exports=Tse(Mse("annotation",{visible:dt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:dt.xanchor,xshift:dt.xshift,yanchor:dt.yanchor,yshift:dt.yshift,text:dt.text,textangle:dt.textangle,font:dt.font,width:dt.width,height:dt.height,opacity:dt.opacity,align:dt.align,valign:dt.valign,bgcolor:dt.bgcolor,bordercolor:dt.bordercolor,borderpad:dt.borderpad,borderwidth:dt.borderwidth,showarrow:dt.showarrow,arrowcolor:dt.arrowcolor,arrowhead:dt.arrowhead,startarrowhead:dt.startarrowhead,arrowside:dt.arrowside,arrowsize:dt.arrowsize,startarrowsize:dt.startarrowsize,arrowwidth:dt.arrowwidth,standoff:dt.standoff,startstandoff:dt.startstandoff,hovertext:dt.hovertext,hoverlabel:dt.hoverlabel,captureevents:dt.captureevents}),"calc","from-root")});var UP=B((vxe,GP)=>{"use strict";var Kx=Pe(),Ase=Jr(),kse=On(),qse=Xx(),Sse=xp();GP.exports=function(r,t,a){kse(r,t,{name:"annotations",handleItemDefaults:Cse,fullLayout:a.fullLayout})};function Cse(e,r,t,a){function n(o,s){return Kx.coerce(e,r,Sse,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Ase.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(qse(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),Kx.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),Kx.noneOrAll(e,r,["ax","ay"])))}});var JP=B((hxe,ZP)=>{"use strict";var WP=Pe(),XP=Jr();ZP.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function Qx(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function Dse(e,r){var t=Qx(e.projection,Qx(e.view,Qx(e.model,[r[0],r[1],r[2],1])));return t}$P.exports=Dse});var jP=B((pxe,QP)=>{"use strict";var Ese=gp().drawRaw,Pse=KP(),Rse=["x","y","z"];QP.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=Pse(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),Ese(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var tR=B((mxe,rR)=>{"use strict";var zse=yr(),eR=Pe();rR.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:xp()}}},layoutAttributes:xp(),handleDefaults:UP(),includeBasePlot:Nse,convert:JP(),draw:jP()};function Nse(e,r){var t=zse.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var aR=of(),nR=aa(),iR=_i().line,Fse=ci().dash,ki=mt().extendFlat,Ise=ot().templatedArray,yxe=Tv(),bf=an(),Hse=ha().shapeTexttemplateAttrs,Ose=wh();lR.exports=Ise("shape",{visible:ki({},bf.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:ki({},bf.legend,{editType:"calc+arraydraw"}),legendgroup:ki({},bf.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:ki({},bf.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:nR({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:ki({},bf.legendrank,{editType:"calc+arraydraw"}),legendwidth:ki({},bf.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:ki({},aR.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:ki({},aR.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:ki({},iR.color,{editType:"arraydraw"}),width:ki({},iR.width,{editType:"calc+arraydraw"}),dash:ki({},Fse,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Hse({},{keys:Object.keys(Ose)}),font:nR({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var uR=B((xxe,sR)=>{"use strict";var Wv=Pe(),_f=Jr(),Bse=On(),Yse=jx(),oR=eo();sR.exports=function(r,t){Bse(r,t,{name:"shapes",handleItemDefaults:Gse})};function Vse(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Gse(e,r,t){function a(V,Z){return Wv.coerce(e,r,Yse,V,Z)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),Wv.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));for(var c=a("xsizemode"),h=a("ysizemode"),d=["x","y"],p=0;p<2;p++){var m=d[p],y=m+"anchor",b=m==="x"?c:h,_={_fullLayout:t},w,x,M,k=_f.coerceRef(e,r,_,m,void 0,"paper"),A=_f.getRefType(k);if(A==="range"?(w=_f.getFromId(_,k),w._shapeIndices.push(r._index),M=oR.rangeToShapePosition(w),x=oR.shapePositionToRange(w),(w.type==="category"||w.type==="multicategory")&&(a(m+"0shift"),a(m+"1shift"))):x=M=Wv.identity,u){var C=.25,D=.75,E=m+"0",R=m+"1",N=e[E],I=e[R];e[E]=x(e[E],!0),e[R]=x(e[R],!0),b==="pixel"?(a(E,0),a(R,10)):(_f.coercePosition(r,_,a,k,E,C),_f.coercePosition(r,_,a,k,R,D)),r[E]=M(r[E]),r[R]=M(r[R]),e[E]=N,e[R]=I}if(b==="pixel"){var H=e[y];e[y]=x(e[y],!0),_f.coercePosition(r,_,a,k,y,.25),r[y]=M(r[y]),e[y]=H}}u&&Wv.noneOrAll(e,r,["x0","x1","y0","y1"]);var G=s==="line",W,Y;if(u&&(W=a("label.texttemplate")),W||(Y=a("label.text")),Y||W){a("label.textangle");var O=a("label.textposition",G?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Vse(G,O)),a("label.padding"),Wv.coerceFont(a,"label.font",t.font)}}}});var vR=B((bxe,cR)=>{"use strict";var Use=xr(),fR=Pe();function Wse(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}cR.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),fR.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Use.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Wse(l,u)),a("newshape.label.padding"),fR.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var yR=B((_xe,mR)=>{"use strict";var e5=Pe(),wf=Jr(),Tf=nv(),dR=eo();mR.exports=function(r){var t=r._fullLayout,a=e5.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?u+l:l;return{ppad:l,ppadplus:o?c:h,ppadminus:o?h:c}}else return{ppad:l}}function hR(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var c=1/0,h=-1/0,d=r.path.match(Tf.segmentRE),p,m,y,b,_;for(e.type==="date"&&(u=dR.decodeDate(u)),p=0;ph&&(h=_)));if(h>=c)return[c,h]}}});var bR=B((wxe,xR)=>{"use strict";var gR=s1();xR.exports={moduleType:"component",name:"shapes",layoutAttributes:jx(),supplyLayoutDefaults:uR(),supplyDrawNewShapeDefaults:vR(),includeBasePlot:Mv()("shapes"),calcAutorange:yR(),draw:gR.draw,drawOne:gR.drawOne}});var r5=B((Mxe,wR)=>{"use strict";var _R=Aa(),Jse=ot().templatedArray,Txe=Tv();wR.exports=Jse("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",_R.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",_R.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var MR=B((Axe,TR)=>{"use strict";var $se=Pe(),t5=Jr(),Kse=On(),Qse=r5(),jse="images";TR.exports=function(r,t){var a={name:jse,handleItemDefaults:eue};Kse(r,t,a)};function eue(e,r,t){function a(h,d){return $se.coerce(e,r,Qse,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=t5.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var c=t5.getFromId(l,f);c._imgIndices.push(r._index)}t5.coercePosition(r,l,a,f,u,0)}return r}});var SR=B((kxe,qR)=>{"use strict";var AR=kr(),rue=Yr(),Mf=Jr(),kR=Ut(),tue=Qo();qR.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var CR=zr(),aue=hh();LR.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";ER.exports={moduleType:"component",name:"images",layoutAttributes:r5(),supplyLayoutDefaults:MR(),includeBasePlot:Mv()("images"),draw:SR(),convertCoords:DR()}});var bp=B((Cxe,RR)=>{"use strict";RR.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var a5=B((Lxe,NR)=>{"use strict";var nue=aa(),iue=Nn(),lue=mt().extendFlat,oue=fi().overrideAll,sue=Th(),zR=ot().templatedArray,uue=zR("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});NR.exports=oue(zR("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:uue,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:lue(sue({editType:"arraydraw"}),{}),font:nue({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:iue.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var OR=B((Dxe,HR)=>{"use strict";var _p=Pe(),FR=On(),IR=a5(),fue=bp(),cue=fue.name,vue=IR.buttons;HR.exports=function(r,t){var a={name:cue,handleItemDefaults:hue};FR(r,t,a)};function hue(e,r,t){function a(l,o){return _p.coerce(e,r,IR,l,o)}var n=FR(e,r,{name:"buttons",handleItemDefaults:due}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),_p.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),_p.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function due(e,r){function t(n,i){return _p.coerce(e,r,vue,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var VR=B((Exe,YR)=>{"use strict";YR.exports=kt;var qi=kr(),BR=xr(),Af=Yr(),wp=Pe();function kt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}kt.barWidth=2;kt.barLength=20;kt.barRadius=2;kt.barPad=1;kt.barColor="#808BA4";kt.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",p=c==="right",m=c==="up",y=s,b=f,_,w,x,M;!h&&!d&&!p&&!m&&(this.position.direction="down",h=!0);var k=h||m;k?(_=o,w=_+y,h?(x=u,M=Math.min(x+b,l),b=M-x):(M=u+b,x=Math.max(M-b,0),b=M-x)):(x=u,M=x+b,d?(w=o+y,_=Math.max(w-y,0),y=w-_):(_=o,w=Math.min(_+y,i),y=w-_)),this._box={l:_,t:x,w:y,h:b};var A=s>y,C=kt.barLength+2*kt.barPad,D=kt.barWidth+2*kt.barPad,E=o,R=u+f;R+D>l&&(R=l-D);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(BR.fill,kt.barColor),A?(this.hbar=N.attr({rx:kt.barRadius,ry:kt.barRadius,x:E,y:R,width:C,height:D}),this._hbarXMin=E+C/2,this._hbarTranslateMax=y-C):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>b,H=kt.barWidth+2*kt.barPad,G=kt.barLength+2*kt.barPad,W=o+s,Y=u;W+H>i&&(W=i-H);var O=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-vertical",!0).call(BR.fill,kt.barColor),I?(this.vbar=O.attr({rx:kt.barRadius,ry:kt.barRadius,x:W,y:Y,width:H,height:G}),this._vbarYMin=Y+G/2,this._vbarTranslateMax=b-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,Z=_-.5,$=I?w+H+.5:w+.5,te=x-.5,le=A?M+D+.5:M+.5,fe=n._topdefs.selectAll("#"+V).data(A||I?[0]:[]);if(fe.exit().remove(),fe.enter().append("clipPath").attr("id",V).append("rect"),A||I?(this._clipRect=fe.select("rect").attr({x:Math.floor(Z),y:Math.floor(te),width:Math.ceil($)-Math.floor(Z),height:Math.ceil(le)-Math.floor(te)}),this.container.call(Af.setClipUrl,V,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Af.setClipUrl,null),delete this._clipRect),A||I){var he=qi.behavior.drag().on("dragstart",function(){qi.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(he);var Q=qi.behavior.drag().on("dragstart",function(){qi.event.sourceEvent.preventDefault(),qi.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(Q),I&&this.vbar.on(".drag",null).call(Q)}this.setTranslate(t,a)};kt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Af.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};kt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=qi.event.dx),this.vbar&&(t-=qi.event.dy),this.setTranslate(r,t)};kt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=qi.event.deltaY),this.vbar&&(t+=qi.event.deltaY),this.setTranslate(r,t)};kt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=wp.constrain(qi.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=wp.constrain(qi.event.y,s,u),c=(f-s)/(u-s),h=this.position.h-this._box.h;t=c*h}this.setTranslate(r,t)};kt.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=wp.constrain(r||0,0,a),t=wp.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Af.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Af.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(Af.setTranslate,r,t+l*this._vbarTranslateMax)}}});var jR=B((Pxe,QR)=>{"use strict";var kf=kr(),Xv=Pt(),Zv=xr(),qf=Yr(),Cn=Pe(),Tp=da(),pue=ot().arrayEditor,UR=Pa().LINE_SPACING,wr=bp(),mue=VR();QR.exports=function(r){var t=r._fullLayout,a=Cn.filterVisible(t[wr.name]);function n(h){Xv.autoMargin(r,$R(h))}var i=t._menulayer.selectAll("g."+wr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(wr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){kf.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+wr.headerGroupClassName).data(a,yue);l.enter().append("g").classed(wr.headerGroupClassName,!0);for(var o=Cn.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var Mue=bp();ez.exports={moduleType:"component",name:Mue.name,layoutAttributes:a5(),supplyLayoutDefaults:OR(),draw:jR()}});var $v=B((zxe,tz)=>{"use strict";tz.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var o5=B((Nxe,iz)=>{"use strict";var az=aa(),Aue=Th(),kue=mt().extendDeepAll,que=fi().overrideAll,Sue=kc(),nz=ot().templatedArray,Cs=$v(),Cue=nz("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});iz.exports=que(nz("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Cue,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:kue(Aue({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Sue.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:az({})},font:az({}),activebgcolor:{valType:"color",dflt:Cs.gripBgActiveColor},bgcolor:{valType:"color",dflt:Cs.railBgColor},bordercolor:{valType:"color",dflt:Cs.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Cs.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Cs.tickLength},tickcolor:{valType:"color",dflt:Cs.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Cs.minorTickLength}}),"arraydraw","from-root")});var uz=B((Fxe,sz)=>{"use strict";var Sf=Pe(),lz=On(),oz=o5(),Lue=$v(),Due=Lue.name,Eue=oz.steps;sz.exports=function(r,t){lz(r,t,{name:Due,handleItemDefaults:Pue})};function Pue(e,r,t){function a(c,h){return Sf.coerce(e,r,oz,c,h)}for(var n=lz(e,r,{name:"steps",handleItemDefaults:Rue}),i=0,l=0;l{"use strict";var Si=kr(),Mp=Pt(),so=xr(),Ci=Yr(),Ln=Pe(),zue=Ln.strTranslate,Kv=da(),Nue=ot().arrayEditor,Pr=$v(),f5=Pa(),vz=f5.LINE_SPACING,s5=f5.FROM_TL,u5=f5.FROM_BR;gz.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=Fue(a,r),i=a._infolayer.selectAll("g."+Pr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Pr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Mp.autoMargin(r,hz(f))}if(i.exit().each(function(){Si.select(this).selectAll("g."+Pr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Pr.groupClassName).data(n,Iue);o.enter().append("g").classed(Pr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",zue(l-Pr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function c5(e,r){var t=e._dims;return t.inputAreaStart+Pr.stepInset+(t.inputAreaLength-2*Pr.stepInset)*Math.min(1,Math.max(0,r))}function cz(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Pr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Pr.stepInset-2*t.inputAreaStart)))}function Uue(e,r,t){var a=t._dims,n=Ln.ensureSingle(e,"rect",Pr.railTouchRectClass,function(i){i.call(mz,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Pr.tickOffset+t.ticklen+a.labelHeight)}).call(so.fill,t.bgcolor).attr("opacity",0),Ci.setTranslate(n,0,a.currentValueTotalHeight)}function Wue(e,r){var t=r._dims,a=t.inputAreaLength-Pr.railInset*2,n=Ln.ensureSingle(e,"rect",Pr.railRectClass);n.attr({width:a,height:Pr.railWidth,rx:Pr.railRadius,ry:Pr.railRadius,"shape-rendering":"crispEdges"}).call(so.stroke,r.bordercolor).call(so.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Ci.setTranslate(n,Pr.railInset,(t.inputAreaWidth-Pr.railWidth)*.5+t.currentValueTotalHeight)}});var _z=B((Hxe,bz)=>{"use strict";var Xue=$v();bz.exports={moduleType:"component",name:Xue.name,layoutAttributes:o5(),supplyLayoutDefaults:uz(),draw:xz()}});var kp=B((Oxe,Tz)=>{"use strict";var wz=Nn();Tz.exports={bgcolor:{valType:"color",dflt:wz.background,editType:"plot"},bordercolor:{valType:"color",dflt:wz.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var v5=B((Bxe,Mz)=>{"use strict";Mz.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var qp=B((Yxe,Az)=>{"use strict";Az.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Sz=B(Cp=>{"use strict";var Zue=Ut(),Jue=da(),kz=qp(),$ue=Pa().LINE_SPACING,Sp=kz.name;function qz(e){var r=e&&e[Sp];return r&&r.visible}Cp.isVisible=qz;Cp.makeData=function(e){for(var r=Zue.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Lp=Pe(),Cz=ot(),Lz=Ut(),Kue=kp(),Que=v5();Dz.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Lp.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=Cz.newContainer(i,"rangeslider");function s(M,k){return Lp.coerce(l,o,Kue,M,k)}var u,f;function c(M,k){return Lp.coerce(u,f,Que,M,k)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(M){return M.substr(0,M.indexOf("y"))===Lz.name2id(a)}).map(function(M){return M.substr(M.indexOf("y"),M.length)}),m=Lp.simpleMap(p,Lz.id2name),y=0;y{"use strict";var jue=Ut().list,efe=Wc().getAutoRange,rfe=qp();Pz.exports=function(r){for(var t=jue(r,"x",!0),a=0;a{"use strict";var Dp=kr(),tfe=yr(),afe=Pt(),Nt=Pe(),Ep=Nt.strTranslate,Nz=Yr(),uo=xr(),nfe=Gc(),ife=gl(),h5=Ut(),lfe=yi(),ofe=Kl(),Hr=qp();Fz.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=O.max)W=R[Y+1];else if(G=O.pmax)W=R[Y+1];else if(G0?e.touches[0].clientX:0}function sfe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Hr.slideBoxClassName).node(),i=e.select("rect."+Hr.grabAreaMinClassName).node(),l=e.select("rect."+Hr.grabAreaMaxClassName).node();function o(){var s=Dp.event,u=s.target,f=zz(s),c=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=lfe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(b){var _=zz(b),w=+_-f,x,M,k;switch(u){case n:if(k="ew-resize",h+w>t._length||d+w<0)return;x=h+w,M=d+w;break;case i:if(k="col-resize",h+w>t._length)return;x=h+w,M=d;break;case l:if(k="col-resize",d+w<0)return;x=h,M=d+w;break;default:k="ew-resize",x=c,M=c+w;break}if(M{"use strict";var gfe=Pe(),xfe=kp(),bfe=v5(),d5=Sz();Hz.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:gfe.extendFlat({},xfe,{yaxis:bfe})}}},layoutAttributes:kp(),handleDefaults:Ez(),calcAutorange:Rz(),draw:Iz(),isVisible:d5.isVisible,makeData:d5.makeData,autoMarginOpts:d5.autoMarginOpts}});var Pp=B((Zxe,Yz)=>{"use strict";var _fe=aa(),Bz=Nn(),wfe=ot().templatedArray,Tfe=wfe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});Yz.exports={visible:{valType:"boolean",editType:"plot"},buttons:Tfe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:_fe({editType:"plot"}),bgcolor:{valType:"color",dflt:Bz.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Bz.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var p5=B((Jxe,Vz)=>{"use strict";Vz.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var Wz=B(($xe,Uz)=>{"use strict";var Rp=Pe(),Mfe=xr(),Afe=ot(),kfe=On(),Gz=Pp(),m5=p5();Uz.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Afe.newContainer(t,"rangeselector");function s(d,p){return Rp.coerce(l,o,Gz,d,p)}var u=kfe(l,o,{name:"buttons",handleItemDefaults:qfe,calendar:i}),f=s("visible",u.length>0);if(f){var c=Sfe(t,a,n);s("x",c[0]),s("y",c[1]),Rp.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Rp.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",Mfe.contrast(h,m5.lightAmount,m5.darkAmount)),s("bordercolor"),s("borderwidth")}};function qfe(e,r,t,a){var n=a.calendar;function i(s,u){return Rp.coerce(e,r,Gz.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Sfe(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var Cfe=My(),Lfe=Pe().titleCase;Xz.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Dfe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Dfe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Cfe["utc"+Lfe(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var tN=B((Qxe,rN)=>{"use strict";var Np=kr(),Efe=yr(),Pfe=Pt(),Jz=xr(),eN=Yr(),bl=Pe(),$z=bl.strTranslate,zp=da(),Rfe=Ut(),x5=Pa(),Kz=x5.LINE_SPACING,Qz=x5.FROM_TL,jz=x5.FROM_BR,g5=p5(),zfe=Zz();rN.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Nfe(r),Ffe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Np.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(bl.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Np.select(this),c=zfe(l,u);u._isActive=Ife(l,u,c),f.call(y5,o,u),f.call(Ofe,o,u,r),f.on("click",function(){r._dragged||Efe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(y5,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(y5,o,u)})}),Yfe(r,s,o,l._name,i)})};function Nfe(e){for(var r=Rfe.list(e,"x",!0),t=[],a=0;a{"use strict";aN.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Pp()}}},layoutAttributes:Pp(),handleDefaults:Wz(),draw:tN()}});var fo=B(b5=>{"use strict";var iN=mt().extendFlat;b5.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",l={x:iN({},t,{}),y:iN({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};b5.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var Vfe=Pe(),Gfe=mu().counter,Ufe=fo().attributes,lN=Aa().idRegex,Wfe=ot(),_5={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Gfe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[lN.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[lN.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Ufe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Fp(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Xfe(e,r){var t=e.grid||{},a=Fp(r,t,"x"),n=Fp(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var c=Wfe.newContainer(r,"grid");function h(k,A){return Vfe.coerce(t,c,_5,k,A)}var d=h("rows",u),p=h("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!l&&!o){var m=h("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var y=h("roworder"),b=y==="top to bottom",_=i?.2:.1,w=i?.3:.1,x,M;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:oN("x",h,_,x,p),y:oN("y",h,w,M,d,b)}}function oN(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),c=f*(1-l),h=0;h{"use strict";cN.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var dN=B((a5e,hN)=>{"use strict";var vN=zr(),Jfe=yr(),$fe=Pe(),Kfe=ot(),Qfe=w5();hN.exports=function(e,r,t,a){var n="error_"+a.axis,i=Kfe.newContainer(r,n),l=e[n]||{};function o(p,m){return $fe.coerce(l,i,Qfe,p,m)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),c=!0;f!=="sqrt"&&(c=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),c||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),c||o("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&o(h,!(l.color||vN(l.thickness)||vN(l.width)))}(!a.inherit||!i[h])&&(o("color",t),o("thickness"),o("width",Jfe.traceIs(r,"gl3d")?0:4))}}});var T5=B((n5e,mN)=>{"use strict";mN.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],h=+i[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var l=pN(t,r.value),o=pN(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function pN(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var xN=B((i5e,gN)=>{"use strict";var M5=zr(),jfe=yr(),A5=Jr(),ece=Pe(),rce=T5();gN.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var bN=kr(),co=zr(),tce=Yr(),ace=wn();_N.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(_){return _.id});var m=ace.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=bN.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),tce.setClipUrl(y,a.layerClipId,r),y.each(function(_){var w=bN.select(this),x=nce(_,l,o);if(!(m&&!_.vis)){var M,k=w.select("path.yerror");if(d.visible&&co(x.x)&&co(x.yh)&&co(x.ys)){var A=d.width;M="M"+(x.x-A)+","+x.yh+"h"+2*A+"m-"+A+",0V"+x.ys,x.noYS||(M+="m-"+A+",0h"+2*A),i=!k.size(),i?k=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",M)}else k.remove();var C=w.select("path.xerror");if(h.visible&&co(x.y)&&co(x.xh)&&co(x.xs)){var D=(h.copy_ystyle?d:h).width;M="M"+x.xh+","+(x.y-D)+"v"+2*D+"m0,-"+D+"H"+x.xs,x.noXS||(M+="m0,-"+D+"v"+2*D),i=!C.size(),i?C=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(C=C.transition().duration(n.duration).ease(n.easing)),C.attr("d",M)}else C.remove()}})}})};function nce(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),co(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),co(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var AN=B((o5e,MN)=>{"use strict";var ice=kr(),TN=xr();MN.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=ice.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(TN.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(TN.stroke,i.color)})}});var SN=B((s5e,qN)=>{"use strict";var Qv=Pe(),kN=fi().overrideAll,jv=w5(),Ls={error_x:Qv.extendFlat({},jv),error_y:Qv.extendFlat({},jv)};delete Ls.error_x.copy_zstyle;delete Ls.error_y.copy_zstyle;delete Ls.error_y.copy_ystyle;var e0={error_x:Qv.extendFlat({},jv),error_y:Qv.extendFlat({},jv),error_z:Qv.extendFlat({},jv)};delete e0.error_x.copy_ystyle;delete e0.error_y.copy_ystyle;delete e0.error_z.copy_ystyle;delete e0.error_z.copy_zstyle;qN.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ls,bar:Ls,histogram:Ls,scatter3d:kN(e0,"calc","nested"),scattergl:kN(Ls,"calc","nested")}},supplyDefaults:dN(),calc:xN(),makeComputeError:T5(),plot:wN(),style:AN(),hoverInfo:lce};function lce(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var LN=B((u5e,CN)=>{"use strict";CN.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var FN=B((f5e,NN)=>{"use strict";var vo=kr(),k5=zn(),Hp=Pt(),DN=yr(),_l=Jr(),Ip=yi(),ei=Pe(),Di=ei.strTranslate,zN=mt().extendFlat,q5=Kl(),Li=Yr(),S5=xr(),oce=Gc(),sce=da(),uce=bn().flipScale,fce=sp(),cce=fp(),vce=_n(),C5=Pa(),EN=C5.LINE_SPACING,PN=C5.FROM_TL,RN=C5.FROM_BR,At=LN().cn;function hce(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+At.colorbar).data(dce(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(At.colorbar,!0),t.each(function(a){var n=vo.select(this);ei.ensureSingle(n,"rect",At.cbbg),ei.ensureSingle(n,"g",At.cbfills),ei.ensureSingle(n,"g",At.cblines),ei.ensureSingle(n,"g",At.cbaxis,function(l){l.classed(At.crisp,!0)}),ei.ensureSingle(n,"g",At.cbtitleunshift,function(l){l.append("g").classed(At.cbtitle,!0)}),ei.ensureSingle(n,"rect",At.cboutline);var i=pce(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&mce(n,a,e)}),t.exit().each(function(a){Hp.autoMargin(e,a._id)}).remove(),t.order()}function dce(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(w){return zN(w,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?uce(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f1){var j=Math.pow(10,Math.floor(Math.log(U)/Math.LN10));se*=j*ei.roundUp(U/j,[2,5,10]),(Math.abs(N.start)/N.size+1e-6)%1<2e-6&&(ve.tick0=0)}ve.dtick=se}ve.domain=a?[Q+p/x.h,Q+V-p/x.h]:[Q+d/x.w,Q+V-d/x.w],ve.setScale(),e.attr("transform",Di(Math.round(x.l),Math.round(x.t)));var X=e.select("."+At.cbtitleunshift).attr("transform",Di(-Math.round(x.l),-Math.round(x.t))),ge=ve.ticklabelposition,ke=ve.title.font.size,xe=e.select("."+At.cbaxis),ze,Fe=0,Ee=0;function Ne(Oe,ie){var Me={propContainer:ve,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+At.cbtitle)},Ze=Oe.charAt(0)==="h"?Oe.substr(1):"h"+Oe;e.selectAll("."+Ze+",."+Ze+"-math-group").remove(),oce.draw(t,Oe,zN(Me,ie||{}))}function Ue(){if(a&&Ae||!a&&!Ae){var Oe,ie;C==="top"&&(Oe=d+x.l+Z*m,ie=p+x.t+$*(1-Q-V)+3+ke*.75),C==="bottom"&&(Oe=d+x.l+Z*m,ie=p+x.t+$*(1-Q)-3-ke*.25),C==="right"&&(ie=p+x.t+$*y+3+ke*.75,Oe=d+x.l+Z*Q),Ne(ve._id+"title",{attributes:{x:Oe,y:ie,"text-anchor":a?"start":"middle"}})}}function Ve(){if(a&&!Ae||!a&&Ae){var Oe=ve.position||0,ie=ve._offset+ve._length/2,Me,Ze;if(C==="right")Ze=ie,Me=x.l+Z*Oe+10+ke*(ve.showticklabels?1:.5);else if(Me=ie,C==="bottom"&&(Ze=x.t+$*Oe+10+(ge.indexOf("inside")===-1?ve.tickfont.size:0)+(ve.ticks!=="inside"&&r.ticklen||0)),C==="top"){var cr=A.text.split("
").length;Ze=x.t+$*Oe+10-W-EN*ke*cr}Ne((a?"h":"v")+ve._id+"title",{avoid:{selection:vo.select(t).selectAll("g."+ve._id+"tick"),side:C,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?w.width:w.height},attributes:{x:Me,y:Ze,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function De(){if(!a&&!Ae||a&&Ae){var Oe=e.select("."+At.cbtitle),ie=Oe.select("text"),Me=[-s/2,s/2],Ze=Oe.select(".h"+ve._id+"title-math-group").node(),cr=15.6;ie.node()&&(cr=parseInt(ie.node().style.fontSize,10)*EN);var fr;if(Ze?(fr=Li.bBox(Ze),Ee=fr.width,Fe=fr.height,Fe>cr&&(Me[1]-=(Fe-cr)/2)):ie.node()&&!ie.classed(At.jsPlaceholder)&&(fr=Li.bBox(ie.node()),Ee=fr.width,Fe=fr.height),a){if(Fe){if(Fe+=5,C==="top")ve.domain[1]-=Fe/x.h,Me[1]*=-1;else{ve.domain[0]+=Fe/x.h;var oe=sce.lineCount(ie);Me[1]+=(1-oe)*cr}Oe.attr("transform",Di(Me[0],Me[1])),ve.setScale()}}else Ee&&(C==="right"&&(ve.domain[0]+=(Ee+ke/2)/x.w),Oe.attr("transform",Di(Me[0],Me[1])),ve.setScale())}e.selectAll("."+At.cbfills+",."+At.cblines).attr("transform",a?Di(0,Math.round(x.h*(1-ve.domain[1]))):Di(Math.round(x.w*ve.domain[0]),0)),xe.attr("transform",a?Di(0,Math.round(-x.t)):Di(Math.round(-x.l),0));var Se=e.select("."+At.cbfills).selectAll("rect."+At.cbfill).attr("style","").data(H);Se.enter().append("rect").classed(At.cbfill,!0).attr("style",""),Se.exit().remove();var Ie=D.map(ve.c2p).map(Math.round).sort(function(vr,$e){return vr-$e});Se.each(function(vr,$e){var Re=[$e===0?D[0]:(H[$e]+H[$e-1])/2,$e===H.length-1?D[1]:(H[$e]+H[$e+1])/2].map(ve.c2p).map(Math.round);a&&(Re[1]=ei.constrain(Re[1]+(Re[1]>Re[0])?1:-1,Ie[0],Ie[1]));var ne=vo.select(this).attr(a?"x":"y",te).attr(a?"y":"x",vo.min(Re)).attr(a?"width":"height",Math.max(W,2)).attr(a?"height":"width",Math.max(vo.max(Re)-vo.min(Re),2));if(r._fillgradient)Li.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var ce=R(vr).replace("e-","");ne.attr("fill",k5(ce).toHexString())}});var We=e.select("."+At.cblines).selectAll("path."+At.cbline).data(k.color&&k.width?G:[]);We.enter().append("path").classed(At.cbline,!0),We.exit().remove(),We.each(function(vr){var $e=te,Re=Math.round(ve.c2p(vr))+k.width/2%1;vo.select(this).attr("d","M"+(a?$e+","+Re:Re+","+$e)+(a?"h":"v")+W).call(Li.lineGroupStyle,k.width,E(vr),k.dash)}),xe.selectAll("g."+ve._id+"tick,path").remove();var Ge=te+W+(s||0)/2-(r.ticks==="outside"?1:0),Je=_l.calcTicks(ve),Qe=_l.getTickSigns(ve)[2];return _l.drawTicks(t,ve,{vals:ve.ticks==="inside"?_l.clipEnds(ve,Je):Je,layer:xe,path:_l.makeTickPath(ve,Ge,Qe),transFn:_l.makeTransTickFn(ve)}),_l.drawLabels(t,ve,{vals:Je,layer:xe,transFn:_l.makeTransTickLabelFn(ve),labelFns:_l.makeLabelFns(ve,Ge)})}function He(){var Oe,ie=W+s/2;ge.indexOf("inside")===-1&&(Oe=Li.bBox(xe.node()),ie+=a?Oe.width:Oe.height),ze=X.select("text");var Me=0,Ze=a&&C==="top",cr=!a&&C==="right",fr=0;if(ze.node()&&!ze.classed(At.jsPlaceholder)){var oe,Se=X.select(".h"+ve._id+"title-math-group").node();Se&&(a&&Ae||!a&&!Ae)?(Oe=Li.bBox(Se),Me=Oe.width,oe=Oe.height):(Oe=Li.bBox(X.node()),Me=Oe.right-x.l-(a?te:qe),oe=Oe.bottom-x.t-(a?qe:te),!a&&C==="top"&&(ie+=Oe.height,fr=Oe.height)),cr&&(ze.attr("transform",Di(Me/2+ke/2,0)),Me*=2),ie=Math.max(ie,a?Me:oe)}var Ie=(a?d:p)*2+ie+u+s/2,We=0;!a&&A.text&&h==="bottom"&&y<=0&&(We=Ie/2,Ie+=We,fr+=We),w._hColorbarMoveTitle=We,w._hColorbarMoveCBTitle=fr;var Ge=u+s,Je=(a?te:qe)-Ge/2-(a?d:0),Qe=(a?qe:te)-(a?O:p+fr-We);e.select("."+At.cbbg).attr("x",Je).attr("y",Qe).attr(a?"width":"height",Math.max(Ie-We,2)).attr(a?"height":"width",Math.max(O+Ge,2)).call(S5.fill,f).call(S5.stroke,r.bordercolor).style("stroke-width",u);var vr=cr?Math.max(Me-10,0):0;e.selectAll("."+At.cboutline).attr("x",(a?te:qe+d)+vr).attr("y",(a?qe+p-O:te)+(Ze?Fe:0)).attr(a?"width":"height",Math.max(W,2)).attr(a?"height":"width",Math.max(O-(a?2*p+Fe:2*d+vr),2)).call(S5.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var $e=a?le*Ie:0,Re=a?0:(1-fe)*Ie-fr;if($e=_?x.l-$e:-$e,Re=b?x.t-Re:-Re,e.attr("transform",Di($e,Re)),!a&&(u||k5(f).getAlpha()&&!k5.equals(w.paper_bgcolor,f))){var ne=xe.selectAll("text"),ce=ne[0].length,Le=e.select("."+At.cbbg).node(),Ce=Li.bBox(Le),or=Li.getTranslate(e),lr=2;ne.each(function(ga,xa){var Gt=0,Ka=ce-1;if(xa===Gt||xa===Ka){var gr=Li.bBox(this),ft=Li.getTranslate(this),Wr;if(xa===Ka){var wt=gr.right+ft.x,Et=Ce.right+or.x+qe-u-lr+m;Wr=Et-wt,Wr>0&&(Wr=0)}else if(xa===Gt){var ct=gr.left+ft.x,Tt=Ce.left+or.x+qe+u+lr;Wr=Tt-ct,Wr<0&&(Wr=0)}Wr&&(ce<3?this.setAttribute("transform","translate("+Wr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ar={},Ar=PN[c],Br=RN[c],tt=PN[h],jr=RN[h],ra=Ie-W;a?(i==="pixels"?(ar.y=y,ar.t=O*tt,ar.b=O*jr):(ar.t=ar.b=0,ar.yt=y+n*tt,ar.yb=y-n*jr),o==="pixels"?(ar.x=m,ar.l=Ie*Ar,ar.r=Ie*Br):(ar.l=ra*Ar,ar.r=ra*Br,ar.xl=m-l*Ar,ar.xr=m+l*Br)):(i==="pixels"?(ar.x=m,ar.l=O*Ar,ar.r=O*Br):(ar.l=ar.r=0,ar.xl=m+n*Ar,ar.xr=m-n*Br),o==="pixels"?(ar.y=1-y,ar.t=Ie*tt,ar.b=Ie*jr):(ar.t=ra*tt,ar.b=ra*jr,ar.yt=y-l*tt,ar.yb=y+l*jr));var It=r.y<.5?"b":"t",_t=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Dt={r:w.width-Je-$e,l:Je+ar.r,b:w.height-Qe-Re,t:Qe+ar.b};_&&b?Hp.autoMargin(t,r._id,ar):_?t._fullLayout._reservedMargin[r._id][It]=Dt[It]:b||a?t._fullLayout._reservedMargin[r._id][_t]=Dt[_t]:t._fullLayout._reservedMargin[r._id][It]=Dt[It]}return ei.syncOrAsync([Hp.previousPromises,Ue,De,Ve,Hp.previousPromises,He],t)}function mce(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Ip.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),q5(e)},moveFn:function(u,f){e.attr("transform",l+Di(u,f)),o=Ip.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Ip.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Ip.getCursor(o,s,r.xanchor,r.yanchor);q5(e,c)},doneFn:function(){if(q5(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?DN.call("_guiRestyle",t,u,r._traceIndex):DN.call("_guiRelayout",t,u)}}})}function yce(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";IN.exports={moduleType:"component",name:"colorbar",attributes:Kh(),supplyDefaults:Ig(),draw:FN().draw,hasColorbar:Dg()}});var BN=B((v5e,ON)=>{"use strict";ON.exports={moduleType:"component",name:"legend",layoutAttributes:z2(),supplyLayoutDefaults:I2(),draw:$2(),style:W2()}});var VN=B((h5e,YN)=>{"use strict";YN.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var UN=B((d5e,GN)=>{"use strict";GN.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var D5=B((p5e,JN)=>{"use strict";var xce=yr(),ZN=Pe(),L5=ZN.extendFlat,WN=ZN.extendDeep;function XN(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function bce(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}JN.exports=function(r,t){var a,n=r.data,i=r.layout,l=WN([],n),o=WN({},i,XN(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var _ce=Ih().EventEmitter,wce=yr(),Tce=Pe(),$N=gs(),Mce=D5(),Ace=W1(),kce=X1();function qce(e,r){var t=new _ce,a=Mce(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=$N.getDelay(n._fullLayout);setTimeout(function(){var s=Ace(n),u=document.createElement("canvas");u.id=Tce.randstr(),t=kce({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=$N.getRedrawFunc(n);return wce.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}KN.exports=qce});var rF=B((y5e,eF)=>{"use strict";var jN=gs(),Sce={getDelay:jN.getDelay,getRedrawFunc:jN.getRedrawFunc,clone:D5(),toSVG:W1(),svgToImg:X1(),toImage:QN(),downloadImage:px()};eF.exports=Sce});var aF=B(wl=>{"use strict";wl.version=ah().version;W4();N8();var Cce=yr(),r0=wl.register=Cce.register,P5=lD(),tF=Object.keys(P5);for(Op=0;Op{"use strict";nF.exports=aF()});var Yp=B((b5e,lF)=>{"use strict";lF.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Tl=B((_5e,fF)=>{"use strict";var Ct=_i(),oF=pi().axisHoverFormat,Lce=ha().hovertemplateAttrs,Dce=ha().texttemplateAttrs,uF=Oc(),Ece=aa(),sF=Yp(),Pce=ci().pattern,Ds=mt().extendFlat,R5=Ece({editType:"calc",arrayOk:!0,colorEditType:"style"}),Rce=Ct.marker,zce=Rce.line,Nce=Ds({},zce.width,{dflt:0}),Fce=Ds({width:Nce,editType:"calc"},uF("marker.line")),Ice=Ds({line:Fce,editType:"calc"},uF("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Pce,cornerradius:{valType:"any",editType:"calc"}});fF.exports={x:Ct.x,x0:Ct.x0,dx:Ct.dx,y:Ct.y,y0:Ct.y0,dy:Ct.dy,xperiod:Ct.xperiod,yperiod:Ct.yperiod,xperiod0:Ct.xperiod0,yperiod0:Ct.yperiod0,xperiodalignment:Ct.xperiodalignment,yperiodalignment:Ct.yperiodalignment,xhoverformat:oF("x"),yhoverformat:oF("y"),text:Ct.text,texttemplate:Dce({editType:"plot"},{keys:sF.eventDataKeys}),hovertext:Ct.hovertext,hovertemplate:Lce({},{keys:sF.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Ds({},R5,{}),insidetextfont:Ds({},R5,{}),outsidetextfont:Ds({},R5,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Ds({},Ct.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Ice,offsetgroup:Ct.offsetgroup,alignmentgroup:Ct.alignmentgroup,selected:{marker:{opacity:Ct.selected.marker.opacity,color:Ct.selected.marker.color,editType:"style"},textfont:Ct.selected.textfont,editType:"style"},unselected:{marker:{opacity:Ct.unselected.marker.opacity,color:Ct.unselected.marker.color,editType:"style"},textfont:Ct.unselected.textfont,editType:"style"},zorder:Ct.zorder}});var Vp=B((w5e,cF)=>{"use strict";cF.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var z5=B((T5e,dF)=>{"use strict";var Hce=xr(),vF=bn().hasColorscale,hF=Ru(),Oce=Pe().coercePattern;dF.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=vF(r,"marker");o&&hF(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Hce.defaultLine),vF(r,"marker.line")&&hF(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),Oce(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var Ki=B((M5e,bF)=>{"use strict";var pF=zr(),Lf=Pe(),mF=xr(),Bce=yr(),Yce=Nv(),Vce=_s(),Gce=z5(),Uce=cf(),yF=Tl(),Gp=Lf.coerceFont;function Wce(e,r,t,a){function n(u,f){return Lf.coerce(e,r,yF,u,f)}var i=Yce(e,r,a,n);if(!i){r.visible=!1;return}Vce(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var l=n("textposition");xF(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Gce(e,r,n,t,a);var o=(r.marker.line||{}).color,s=Bce.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||mF.defaultLine,{axis:"y"}),s(e,r,o||mF.defaultLine,{axis:"x",inherit:"y"}),Lf.coerceSelectionMarkerOpacity(r,n)}function Xce(e,r){var t,a;function n(o,s){return Lf.coerce(a._input,a,yF,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&pF(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function xF(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,h=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",m=d||n==="outside";if(p||m){var y=Gp(a,"textfont",t.font),b=Lf.extendFlat({},y),_=e.textfont&&e.textfont.color,w=!_;if(w&&delete b.color,Gp(a,"insidetextfont",b),h){var x=Lf.extendFlat({},y);w&&delete x.color,Gp(a,"pathbar.textfont",x)}m&&Gp(a,"outsidetextfont",y),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate")}p&&c&&a("insidetextanchor")}bF.exports={supplyDefaults:Wce,crossTraceDefaults:Xce,handleText:xF,validateCornerradius:gF}});var N5=B((A5e,_F)=>{"use strict";var Zce=yr(),Jce=Jr(),$ce=Pe(),Kce=Vp(),Qce=Ki().validateCornerradius;_F.exports=function(e,r,t){function a(m,y){return $ce.coerce(e,r,Kce,m,y)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[h]&&(l=!0),o[h]=!0),c.visible&&c.type==="histogram"){var d=Jce.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=Qce(p)}});var Up=B((k5e,wF)=>{"use strict";var Df=Pe();wF.exports=function(r,t){for(var a=0;a{"use strict";var TF=Jr(),MF=ws(),AF=bn().hasColorscale,kF=Bc(),jce=Up(),eve=Fv();qF.exports=function(r,t){var a=TF.getFromId(r,t.xaxis||"x"),n=TF.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),o=n.makeCalcdata(t,"y"),s=MF(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=MF(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var h=Math.min(l.length,i.length),d=new Array(h),p=0;p{"use strict";var rve=kr(),tve=Pe();function ave(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=rve.select(this).select("text");tve.setTransormAndDisplay(u,s)}})}}function nve(e,r,t){if(t.uniformtext.mode){var a=CF(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var lve=zr(),ove=zn(),DF=Pe().isArrayOrTypedArray;Es.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Es.coerceNumber=function(e,r,t){if(lve(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Es.coerceColor=function(e,r,t){return ove(r).isValid()?r:t!==void 0?t:e.dflt};Es.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Es.getValue=function(e,r){var t;return DF(e)?r{"use strict";var t0=kr(),sve=xr(),a0=Yr(),EF=Pe(),PF=yr(),RF=Ei().resizeText,F5=Tl(),uve=F5.textfont,fve=F5.insidetextfont,cve=F5.outsidetextfont,Sa=Wp();function vve(e){var r=t0.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");RF(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&t0.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=t0.select(this),l=n[0].trace;zF(i,l,e)}),PF.getComponentMethod("errorbars","style")(r)}function zF(e,r,t){a0.pointStyle(e.selectAll("path"),r,t),NF(e,r,t)}function NF(e,r,t){e.selectAll("text").each(function(a){var n=t0.select(this),i=EF.ensureUniformFontSize(t,FF(n,a,r,t));a0.font(n,i)})}function hve(e,r,t){var a=r[0].trace;a.selectedpoints?dve(t,a,e):(zF(t,a,e),PF.getComponentMethod("errorbars","style")(t))}function dve(e,r,t){a0.selectedPointStyle(e.selectAll("path"),r),pve(e.selectAll("text"),r,t)}function pve(e,r,t){e.each(function(a){var n=t0.select(this),i;if(a.selected){i=EF.ensureUniformFontSize(t,FF(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),a0.font(n,i)}else a0.selectedTextStyle(n,r)})}function FF(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=BF(r,t);i=HF(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=OF(t,r.i,n));return i}function IF(e,r,t){return I5(uve,e.textfont,r,t)}function HF(e,r,t,a){var n=IF(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:sve.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),I5(fve,e.insidetextfont,r,n)}function OF(e,r,t){var a=IF(e,r,t);return I5(cve,e.outsidetextfont,r,a)}function I5(e,r,t,a){r=r||{};var n=Sa.getValue(r.family,t),i=Sa.getValue(r.size,t),l=Sa.getValue(r.color,t),o=Sa.getValue(r.weight,t),s=Sa.getValue(r.style,t),u=Sa.getValue(r.variant,t),f=Sa.getValue(r.textcase,t),c=Sa.getValue(r.lineposition,t),h=Sa.getValue(r.shadow,t);return{family:Sa.coerceString(e.family,n,a.family),size:Sa.coerceNumber(e.size,i,a.size),color:Sa.coerceColor(e.color,l,a.color),weight:Sa.coerceString(e.weight,o,a.weight),style:Sa.coerceString(e.style,s,a.style),variant:Sa.coerceString(e.variant,u,a.variant),textcase:Sa.coerceString(e.variant,f,a.textcase),lineposition:Sa.coerceString(e.variant,c,a.lineposition),shadow:Sa.coerceString(e.variant,h,a.shadow)}}function BF(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}YF.exports={style:vve,styleTextPoints:NF,styleOnSelect:hve,getInsideTextFont:HF,getOutsideTextFont:OF,getBarColor:BF,resizeText:RF}});var Pf=B((D5e,$F)=>{"use strict";var Xp=kr(),Zp=zr(),ma=Pe(),mve=da(),yve=xr(),po=Yr(),gve=yr(),Jp=Jr().tickText,VF=Ei(),xve=VF.recordMinTextSize,bve=VF.clearMinTextSize,H5=ho(),Ef=Wp(),_ve=Yp(),GF=Tl(),wve=GF.text,Tve=GF.textposition,Mve=Hi().appendArrayPointValue,Ja=_ve.TEXTPAD;function Ave(e){return e.id}function kve(e){if(e.ids)return Ave}function O5(e){return(e>0)-(e<0)}function Qi(e,r){return e0}function Sve(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},bve("bar",s));var f=ma.makeTraceGroups(a,t,"trace bars").each(function(c){var h=Xp.select(this),d=c[0].trace,p=c[0].t,m=d.type==="waterfall",y=d.type==="funnel",b=d.type==="histogram",_=d.type==="bar",w=_||y,x=0;m&&d.connector.visible&&d.connector.mode==="between"&&(x=d.connector.line.width/2);var M=d.orientation==="h",k=WF(n),A=ma.ensureSingle(h,"g","points"),C=kve(d),D=A.selectAll("g.point").data(ma.identity,C);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(R,N){var I=Xp.select(this),H=qve(R,l,o,M),G=H[0][0],W=H[0][1],Y=H[1][0],O=H[1][1],V=(M?W-G:O-Y)===0;V&&w&&Ef.getLineWidth(d,R)&&(V=!1),V||(V=!Zp(G)||!Zp(W)||!Zp(Y)||!Zp(O)),R.isBlank=V,V&&(M?W=G:O=Y),x&&!V&&(M?(G-=Qi(G,W)*x,W+=Qi(G,W)*x):(Y-=Qi(Y,O)*x,O+=Qi(Y,O)*x));var Z,$;if(d.type==="waterfall"){if(!V){var te=d[R.dir].marker;Z=te.line.width,$=te.color}}else Z=Ef.getLineWidth(d,R),$=R.mc||d.marker.color;function le(ie){var Me=Xp.round(Z/2%1,2);return n.gap===0&&n.groupgap===0?Xp.round(Math.round(ie)-Me,2):ie}function fe(ie,Me,Ze){return Ze&&ie===Me?ie:Math.abs(ie-Me)>=2?le(ie):ie>Me?Math.ceil(ie):Math.floor(ie)}var he=yve.opacity($),Q=he<1||Z>.01?le:fe;e._context.staticPlot||(G=Q(G,W,M),W=Q(W,G,M),Y=Q(Y,O,!M),O=Q(O,Y,!M));var qe=M?l.c2p:o.c2p,ve;R.s0>0?ve=R._sMax:R.s0<0?ve=R._sMin:ve=R.s1>0?R._sMax:R._sMin;function Ae(ie,Me){if(!ie)return 0;var Ze=Math.abs(M?O-Y:W-G),cr=Math.abs(M?W-G:O-Y),fr=Q(Math.abs(qe(ve,!0)-qe(0,!0))),oe=R.hasB?Math.min(Ze/2,cr/2):Math.min(Ze/2,fr),Se;if(Me==="%"){var Ie=Math.min(50,ie);Se=Ze*(Ie/100)}else Se=ie;return Q(Math.max(Math.min(Se,oe),0))}var se=_||b?Ae(p.cornerradiusvalue,p.cornerradiusform):0,be,U,j="M"+G+","+Y+"V"+O+"H"+W+"V"+Y+"Z",X=0;if(se&&R.s){var ge=O5(R.s0)===0||O5(R.s)===O5(R.s0)?R.s1:R.s0;if(X=Q(R.hasB?0:Math.abs(qe(ve,!0)-qe(ge,!0))),X0?Math.sqrt(X*(2*se-X)):0,Ne=ke>0?Math.max:Math.min;be="M"+G+","+Y+"V"+(O-Fe*xe)+"H"+Ne(W-(se-X)*ke,G)+"A "+se+","+se+" 0 0 "+ze+" "+W+","+(O-se*xe-Ee)+"V"+(Y+se*xe+Ee)+"A "+se+","+se+" 0 0 "+ze+" "+Ne(W-(se-X)*ke,G)+","+(Y+Fe*xe)+"Z"}else if(R.hasB)be="M"+(G+se*ke)+","+Y+"A "+se+","+se+" 0 0 "+ze+" "+G+","+(Y+se*xe)+"V"+(O-se*xe)+"A "+se+","+se+" 0 0 "+ze+" "+(G+se*ke)+","+O+"H"+(W-se*ke)+"A "+se+","+se+" 0 0 "+ze+" "+W+","+(O-se*xe)+"V"+(Y+se*xe)+"A "+se+","+se+" 0 0 "+ze+" "+(W-se*ke)+","+Y+"Z";else{U=Math.abs(O-Y)+X;var Ue=U0?Math.sqrt(X*(2*se-X)):0,De=xe>0?Math.max:Math.min;be="M"+(G+Ue*ke)+","+Y+"V"+De(O-(se-X)*xe,Y)+"A "+se+","+se+" 0 0 "+ze+" "+(G+se*ke-Ve)+","+O+"H"+(W-se*ke+Ve)+"A "+se+","+se+" 0 0 "+ze+" "+(W-Ue*ke)+","+De(O-(se-X)*xe,Y)+"V"+Y+"Z"}}else be=j}else be=j;var He=UF(ma.ensureSingle(I,"path"),s,n,i);if(He.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((W-G)*(O-Y))||V&&e._context.staticPlot?"M0,0Z":be).call(po.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Oe=po.makePointStyleFns(d);po.singlePointStyle(R,He,d,Oe,e)}Cve(e,r,I,c,N,G,W,Y,O,se,X,n,i),r.layerClipId&&po.hideOutsideRangePoint(R,I.select("text"),l,o,d.xcalendar,d.ycalendar)});var E=d.cliponaxis===!1;po.setClipUrl(h,E?null:r.layerClipId,e)});gve.getComponentMethod("errorbars","plot")(e,f,r,n)}function Cve(e,r,t,a,n,i,l,o,s,u,f,c,h){var d=r.xaxis,p=r.yaxis,m=e._fullLayout,y;function b(U,j,X){var ge=ma.ensureSingle(U,"text").text(j).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(po.font,X).call(mve.convertToTspans,e);return ge}var _=a[0].trace,w=_.orientation==="h",x=Eve(m,a,n,d,p);y=Pve(_,n);var M=c.mode==="stack"||c.mode==="relative",k=a[n],A=!M||k._outmost,C=k.hasB,D=u&&u-f>Ja;if(!x||y==="none"||(k.isBlank||i===l||o===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var E=m.font,R=H5.getBarColor(a[n],_),N=H5.getInsideTextFont(_,n,E,R),I=H5.getOutsideTextFont(_,n,E),H=_.insidetextanchor||"end",G=t.datum();w?d.type==="log"&&G.s0<=0&&(d.range[0]0&&le>0,Q;D?C?Q=Ps(O-2*u,V,te,le,w)||Ps(O,V-2*u,te,le,w):w?Q=Ps(O-(u-f),V,te,le,w)||Ps(O,V-2*(u-f),te,le,w):Q=Ps(O,V-(u-f),te,le,w)||Ps(O-2*(u-f),V,te,le,w):Q=Ps(O,V,te,le,w),he&&Q?y="inside":(y="outside",Z.remove(),Z=null)}else y="inside";if(!Z){fe=ma.ensureUniformFontSize(e,y==="outside"?I:N),Z=b(t,x,fe);var qe=Z.attr("transform");if(Z.attr("transform",""),$=po.bBox(Z.node()),te=$.width,le=$.height,Z.attr("transform",qe),te<=0||le<=0){Z.remove();return}}var ve=_.textangle,Ae,se;y==="outside"?(se=_.constraintext==="both"||_.constraintext==="outside",Ae=Dve(i,l,o,s,$,{isHorizontal:w,constrained:se,angle:ve})):(se=_.constraintext==="both"||_.constraintext==="inside",Ae=JF(i,l,o,s,$,{isHorizontal:w,constrained:se,angle:ve,anchor:H,hasB:C,r:u,overhead:f})),Ae.fontSize=fe.size,xve(_.type==="histogram"?"bar":_.type,Ae,m),k.transform=Ae;var be=UF(Z,m,c,h);ma.setTransormAndDisplay(be,Ae)}function Ps(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function XF(e){return e==="auto"?0:e}function ZF(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function JF(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",h=i.leftToRight||0,d=(h+1)/2,p=1-d,m=i.hasB,y=i.r,b=i.overhead,_=n.width,w=n.height,x=Math.abs(r-e),M=Math.abs(a-t),k=x>2*Ja&&M>2*Ja?Ja:0;x-=2*k,M-=2*k;var A=XF(s);s==="auto"&&!(_<=x&&w<=M)&&(_>x||w>M)&&(!(_>M||w>x)||_Ja){var R=Lve(e,r,t,a,C,y,b,l,m);D=R.scale,E=R.pad}else D=1,o&&(D=Math.min(1,x/C.x,M/C.y)),E=0;var N=n.left*p+n.right*d,I=(n.top+n.bottom)/2,H=(e+Ja)*p+(r-Ja)*d,G=(t+a)/2,W=0,Y=0;if(c||f){var O=(l?C.x:C.y)/2;y&&(f||m)&&(k+=E);var V=l?Qi(e,r):Qi(t,a);l?c?(H=e+V*k,W=-V*O):(H=r-V*k,W=V*O):c?(G=t+V*k,Y=-V*O):(G=a-V*k,Y=V*O)}return{textX:N,textY:I,targetX:H,targetY:G,anchorX:W,anchorY:Y,scale:D,rotate:A}}function Lve(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*Ja),f=Math.max(0,Math.abs(a-t)-2*Ja),c=i-Ja,h=l?c-Math.sqrt(c*c-(c-l)*(c-l)):c,d=s?c*2:o?c-l:2*h,p=s?c*2:o?2*h:c-l,m,y,b,_,w;return n.y/n.x>=f/(u-d)?_=f/n.y:n.y/n.x<=(f-p)/u?_=u/n.x:!s&&o?(m=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-c)-n.y*(f/2-c),b=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,_=(-y+Math.sqrt(y*y-4*m*b))/(2*m)):s?(m=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-c)-n.y*(f/2-c),b=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,_=(-y+Math.sqrt(y*y-4*m*b))/(2*m)):(m=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-c)-2*n.y*(f-c),b=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,_=(-y+Math.sqrt(y*y-4*m*b))/(2*m)),_=Math.min(1,_),o?w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*_)/2)*(c-(f-n.y*_)/2)))-l):w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*_)/2)*(c-(u-n.x*_)/2)))-l),{scale:_,pad:w}}function Dve(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),h=Math.abs(a-t),d;l?d=h>2*Ja?Ja:0:d=c>2*Ja?Ja:0;var p=1;o&&(p=l?Math.min(1,h/f):Math.min(1,c/u));var m=XF(s),y=ZF(n,m),b=(l?y.x:y.y)/2,_=(n.left+n.right)/2,w=(n.top+n.bottom)/2,x=(e+r)/2,M=(t+a)/2,k=0,A=0,C=l?Qi(r,e):Qi(t,a);return l?(x=r-C*d,k=C*b):(M=a+C*d,A=-C*b),{textX:_,textY:w,targetX:x,targetY:M,anchorX:k,anchorY:A,scale:p,rotate:m}}function Eve(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=Rve(e,r,t,a,n):i.textinfo?o=zve(r,t,a,n):o=Ef.getValue(i.text,t),Ef.coerceString(wve,o)}function Pve(e,r){var t=Ef.getValue(e.textposition,r);return Ef.coerceEnumerated(Tve,t)}function Rve(e,r,t,a,n){var i=r[0].trace,l=ma.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,h,d,p;f?(c="y",h=n,d="x",p=a):(c="x",h=a,d="y",p=n);function m(k){return Jp(h,h.c2l(k),!0).text}function y(k){return Jp(p,p.c2l(k),!0).text}var b=r[t],_={};_.label=b.p,_.labelLabel=_[c+"Label"]=m(b.p);var w=ma.castOption(i,b.i,"text");(w===0||w)&&(_.text=w),_.value=b.s,_.valueLabel=_[d+"Label"]=y(b.s);var x={};Mve(x,i,b.i),(o||x.x===void 0)&&(x.x=f?_.value:_.label),(o||x.y===void 0)&&(x.y=f?_.label:_.value),(o||x.xLabel===void 0)&&(x.xLabel=f?_.valueLabel:_.labelLabel),(o||x.yLabel===void 0)&&(x.yLabel=f?_.labelLabel:_.valueLabel),s&&(_.delta=+b.rawS||b.s,_.deltaLabel=y(_.delta),_.final=b.v,_.finalLabel=y(_.final),_.initial=_.final-_.delta,_.initialLabel=y(_.initial)),u&&(_.value=b.s,_.valueLabel=y(_.value),_.percentInitial=b.begR,_.percentInitialLabel=ma.formatPercent(b.begR),_.percentPrevious=b.difR,_.percentPreviousLabel=ma.formatPercent(b.difR),_.percentTotal=b.sumR,_.percenTotalLabel=ma.formatPercent(b.sumR));var M=ma.castOption(i,b.i,"customdata");return M&&(_.customdata=M),ma.texttemplateString(l,_,e._d3locale,x,_,i._meta||{})}function zve(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(M){var k=i?a:t;return Jp(k,M,!0).text}function u(M){var k=i?t:a;return Jp(k,+M,!0).text}var f=n.textinfo,c=e[r],h=f.split("+"),d=[],p,m=function(M){return h.indexOf(M)!==-1};if(m("label")&&d.push(s(e[r].p)),m("text")&&(p=ma.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),l){var y=+c.rawS||c.s,b=c.v,_=b-y;m("initial")&&d.push(u(_)),m("delta")&&d.push(u(y)),m("final")&&d.push(u(b))}if(o){m("value")&&d.push(u(c.s));var w=0;m("percent initial")&&w++,m("percent previous")&&w++,m("percent total")&&w++;var x=w>1;m("percent initial")&&(p=ma.formatPercent(c.begR),x&&(p+=" of initial"),d.push(p)),m("percent previous")&&(p=ma.formatPercent(c.difR),x&&(p+=" of previous"),d.push(p)),m("percent total")&&(p=ma.formatPercent(c.sumR),x&&(p+=" of total"),d.push(p))}return d.join("
")}$F.exports={plot:Sve,toMoveInsideBar:JF}});var i0=B((E5e,eI)=>{"use strict";var n0=xi(),Nve=yr(),KF=xr(),Fve=Pe().fillText,Ive=Wp().getLineWidth,B5=Jr().hoverLabelText,Hve=Mt().BADNUM;function Ove(e,r,t,a,n){var i=QF(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=jF(o,s),Nve.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function QF(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,h,d,p,m,y,b,_;l.orientation==="h"?(h=t,d=r,p="y",m="x",y=G,b=N):(h=r,d=t,p="x",m="y",b=G,y=N);var w=l[p+"period"],x=s||w;function M(Q){return A(Q,-1)}function k(Q){return A(Q,1)}function A(Q,qe){var ve=Q.w;return Q[p]+qe*ve/2}function C(Q){return Q[p+"End"]-Q[p+"Start"]}var D=s?M:w?function(Q){return Q.p-C(Q)/2}:function(Q){return Math.min(M(Q),Q.p-o.bardelta/2)},E=s?k:w?function(Q){return Q.p+C(Q)/2}:function(Q){return Math.max(k(Q),Q.p+o.bardelta/2)};function R(Q,qe,ve){return n.finiteRange&&(ve=0),n0.inbox(Q-h,qe-h,ve+Math.min(1,Math.abs(qe-Q)/_)-1)}function N(Q){return R(D(Q),E(Q),f)}function I(Q){return R(M(Q),k(Q),c)}function H(Q){var qe=Q[m];if(u){var ve=Math.abs(Q.rawS)||0;d>0?qe+=ve:d<0&&(qe-=ve)}return qe}function G(Q){var qe=d,ve=Q.b,Ae=H(Q);return n0.inbox(ve-qe,Ae-qe,f+(Ae-qe)/(Ae-ve)-1)}function W(Q){var qe=d,ve=Q.b,Ae=H(Q);return n0.inbox(ve-qe,Ae-qe,c+(Ae-qe)/(Ae-ve)-1)}var Y=e[p+"a"],O=e[m+"a"];_=Math.abs(Y.r2c(Y.range[1])-Y.r2c(Y.range[0]));function V(Q){return(y(Q)+b(Q))/2}var Z=n0.getDistanceFunction(a,y,b,V);if(n0.getClosest(i,Z,e),e.index!==!1&&i[e.index].p!==Hve){x||(D=function(Q){return Math.min(M(Q),Q.p-o.bargroupwidth/2)},E=function(Q){return Math.max(k(Q),Q.p+o.bargroupwidth/2)});var $=e.index,te=i[$],le=l.base?te.b+te.s:te.s;e[m+"0"]=e[m+"1"]=O.c2p(te[m],!0),e[m+"LabelVal"]=le;var fe=o.extents[o.extents.round(te.p)];e[p+"0"]=Y.c2p(s?D(te):fe[0],!0),e[p+"1"]=Y.c2p(s?E(te):fe[1],!0);var he=te.orig_p!==void 0;return e[p+"LabelVal"]=he?te.orig_p:te.p,e.labelLabel=B5(Y,e[p+"LabelVal"],l[p+"hoverformat"]),e.valueLabel=B5(O,e[m+"LabelVal"],l[m+"hoverformat"]),e.baseLabel=B5(O,te.b,l[m+"hoverformat"]),e.spikeDistance=(W(te)+I(te))/2,e[p+"Spike"]=Y.c2p(te.p,!0),Fve(te,l,e),e.hovertemplate=l.hovertemplate,e}}function jF(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=Ive(e,r);if(KF.opacity(t))return t;if(KF.opacity(a)&&n)return a}eI.exports={hoverPoints:Ove,hoverOnBars:QF,getTraceColor:jF}});var tI=B((P5e,rI)=>{"use strict";rI.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var l0=B((R5e,aI)=>{"use strict";aI.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";nI.exports={attributes:Tl(),layoutAttributes:Vp(),supplyDefaults:Ki().supplyDefaults,crossTraceDefaults:Ki().crossTraceDefaults,supplyLayoutDefaults:N5(),calc:SF(),crossTraceCalc:df().crossTraceCalc,colorbar:np(),arraysToCalcdata:Up(),plot:Pf().plot,style:ho().style,styleOnSelect:ho().styleOnSelect,hoverPoints:i0().hoverPoints,eventData:tI(),selectPoints:l0(),moduleType:"trace",name:"bar",basePlotModule:gl(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var oI=B((N5e,lI)=>{"use strict";lI.exports=iI()});var uI=B((F5e,sI)=>{"use strict";sI.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var cI=B((I5e,fI)=>{"use strict";fI.exports={eventDataKeys:["binNumber"]}});var G5=B((H5e,dI)=>{"use strict";var pn=Tl(),vI=pi().axisHoverFormat,Yve=ha().hovertemplateAttrs,Vve=ha().texttemplateAttrs,Y5=aa(),hI=uI(),Gve=cI(),V5=mt().extendFlat;dI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:vI("x"),yhoverformat:vI("y"),text:V5({},pn.text,{}),hovertext:V5({},pn.hovertext,{}),orientation:pn.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:hI("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:hI("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:Yve({},{keys:Gve.eventDataKeys}),texttemplate:Vve({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:V5({},pn.textposition,{arrayOk:!1}),textfont:Y5({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:Y5({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:Y5({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:pn.insidetextanchor,textangle:pn.textangle,cliponaxis:pn.cliponaxis,constraintext:pn.constraintext,marker:pn.marker,offsetgroup:pn.offsetgroup,alignmentgroup:pn.alignmentgroup,selected:pn.selected,unselected:pn.unselected,zorder:pn.zorder}});var gI=B((O5e,yI)=>{"use strict";var pI=yr(),o0=Pe(),mI=xr(),Uve=Ki().handleText,Wve=z5(),Xve=G5();yI.exports=function(r,t,a,n){function i(_,w){return o0.coerce(r,t,Xve,_,w)}var l=i("x"),o=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");Uve(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",o&&!l?"h":"v"),c=f==="v"?"x":"y",h=f==="v"?"y":"x",d=l&&o?Math.min(o0.minRowLength(l)&&o0.minRowLength(o)):o0.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=pI.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var m=t[h];m&&i("histfunc"),i("histnorm"),i("autobin"+c),Wve(r,t,i,a,n),o0.coerceSelectionMarkerOpacity(t,i);var y=(t.marker.line||{}).color,b=pI.getComponentMethod("errorbars","supplyDefaults");b(r,t,y||mI.defaultLine,{axis:"y"}),b(r,t,y||mI.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var wI=B((B5e,_I)=>{"use strict";var s0=Pe(),Zve=Ut(),$p=yr().traceIs,Jve=cf(),$ve=Ki().validateCornerradius,xI=s0.nestedProperty,U5=ys().getAxisGroup,bI=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],Kve=["x","y"];_I.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},l=[],o,s,u,f,c,h,d;function p(G,W){return s0.coerce(o._input,o,o._module.attributes,G,W)}function m(G){return G.orientation==="v"?"x":"y"}function y(G,W){var Y=Zve.getFromTrace({_fullLayout:t},G,W);return Y.type}function b(G,W,Y){var O=G.uid+"__"+Y;W||(W=O);var V=y(G,Y),Z=G[Y+"calendar"]||"",$=a[W],te=!0;$&&(V===$.axType&&Z===$.calendar?(te=!1,$.traces.push(G),$.dirs.push(Y)):(W=O,V!==$.axType&&s0.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+V,"axis","with bins on","type:"+$.axType,"axis."].join(" ")),Z!==$.calendar&&s0.warn(["Attempted to group the bins of trace",G.index,"set with a",Z,"calendar","with bins",$.calendar?"on a "+$.calendar+" calendar":"w/o a set calendar"].join(" ")))),te&&(a[W]={traces:[G],dirs:[Y],axType:V,calendar:G[Y+"calendar"]||""}),G["_"+Y+"bingroup"]=W}for(c=0;c{"use strict";var Rf=zr();TI.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Rf(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Rf(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Rf(n))if(n=Number(n),Rf(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if(Rf(n))if(n=Number(n),Rf(t[e])){if(t[e]{"use strict";AI.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";qI.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var zf=Mt(),Rs=zf.ONEAVGYEAR,CI=zf.ONEAVGMONTH,Qp=zf.ONEDAY,LI=zf.ONEHOUR,DI=zf.ONEMIN,EI=zf.ONESEC,PI=Jr().tickIncrement;NI.exports=function(r,t,a,n,i){var l=-1.1*t,o=-.1*t,s=r-o,u=a[0],f=a[1],c=Math.min(Kp(u+o,u+s,n,i),Kp(f+o,f+s,n,i)),h=Math.min(Kp(u+l,u+o,n,i),Kp(f+l,f+o,n,i)),d,p;if(c>h&&hQp){var m=d===Rs?1:6,y=d===Rs?"M12":"M1";return function(b,_){var w=n.c2d(b,Rs,i),x=w.indexOf("-",m);x>0&&(w=w.substr(0,x));var M=n.d2c(w,0,i);if(MEI?e>Qp?e>Rs*1.1?Rs:e>CI*1.1?CI:Qp:e>LI?LI:e>DI?DI:EI:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function Qve(e,r,t,a,n,i){if(a&&e>Qp){var l=zI(r,n,i),o=zI(t,n,i),s=e===Rs?0:1;return l[s]!==o[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function zI(e,r,t){var a=r.c2d(e,Rs,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var VI=B((W5e,YI)=>{"use strict";var W5=zr(),$a=Pe(),II=yr(),ri=Jr(),{hasColorscale:HI}=bn(),OI=Bc(),jve=Up(),BI=MI(),e0e=kI(),r0e=SI(),t0e=FI();function a0e(e,r){var t=[],a=[],n=r.orientation==="h",i=ri.getFromId(e,n?r.yaxis:r.xaxis),l=n?"y":"x",o={x:"y",y:"x"}[l],s=r[l+"calendar"],u=r.cumulative,f,c=X5(e,r,i,l),h=c[0],d=c[1],p=typeof h.size=="string",m=[],y=p?m:h,b=[],_=[],w=[],x=0,M=r.histnorm,k=r.histfunc,A=M.indexOf("density")!==-1,C,D,E;u.enabled&&A&&(M=M.replace(/ ?density$/,""),A=!1);var R=k==="max"||k==="min",N=R?null:0,I=BI.count,H=e0e[M],G=!1,W=function(U){return i.r2c(U,0,s)},Y;for($a.isArrayOrTypedArray(r[o])&&k!=="count"&&(Y=r[o],G=k==="avg",I=BI[k]),f=W(h.start),D=W(h.end)+(f-ri.tickIncrement(f,h.size,!1,s))/1e6;f=0&&E=Ae;f--)if(a[f]){se=f;break}for(f=Ae;f<=se;f++)if(W5(t[f])&&W5(a[f])){var be={p:t[f],s:a[f],b:0};u.enabled||(be.pts=w[f],$?be.ph0=be.ph1=w[f].length?d[w[f][0]]:t[f]:(r._computePh=!0,be.ph0=Q(m[f]),be.ph1=Q(m[f+1],!0))),ve.push(be)}return ve.length===1&&(ve[0].width1=ri.tickIncrement(ve[0].p,h.size,!1,s)-ve[0].p),HI(r,"marker")&&OI(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),HI(r,"marker.line")&&OI(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),jve(ve,r),$a.isArrayOrTypedArray(r.selectedpoints)&&$a.tagSelected(ve,r,fe),ve}function X5(e,r,t,a,n){var i=a+"bins",l=e._fullLayout,o=r["_"+a+"bingroup"],s=l._histogramBinOpts[o],u=l.barmode==="overlay",f,c,h,d,p,m,y,b=function(he){return t.r2c(he,0,d)},_=function(he){return t.c2r(he,0,d)},w=t.type==="date"?function(he){return he||he===0?$a.cleanDate(he,null,d):null}:function(he){return W5(he)?Number(he):null};function x(he,Q,qe){Q[he+"Found"]?(Q[he]=w(Q[he]),Q[he]===null&&(Q[he]=qe[he])):(m[he]=Q[he]=qe[he],$a.nestedProperty(c[0],i+"."+he).set(qe[he]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var M=[],k=!0,A=!1,C=!1;for(f=0;ft.r2l(Y)&&(V=ri.tickIncrement(V,s.size,!0,d)),I.start=t.l2r(V),W||$a.nestedProperty(r,i+".start").set(I.start)}var Z=s.end,$=t.r2l(N.end),te=$!==void 0;if((s.endFound||te)&&$!==t.r2l(Z)){var le=te?$:$a.aggNums(Math.max,null,p);I.end=t.l2r(le),te||$a.nestedProperty(r,i+".start").set(I.end)}var fe="autobin"+a;return r._input[fe]===!1&&(r._input[i]=$a.extendFlat({},r[i]||{}),delete r._input[fe],delete r[fe]),[I,p]}function n0e(e,r,t,a,n){var i=e._fullLayout,l=i0e(e,r),o=!1,s=1/0,u=[r],f,c,h;for(f=0;f=0;a--)o(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}YI.exports={calc:a0e,calcAllAutoBins:X5}});var UI=B((X5e,GI)=>{"use strict";var o0e=i0().hoverPoints,s0e=Jr().hoverLabelText;GI.exports=function(r,t,a,n,i){var l=o0e(r,t,a,n,i);if(l){r=l[0];var o=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=s0e(r[u+"a"],[o.ph0,o.ph1],s[u+"hoverformat"])}return l}}});var XI=B((Z5e,WI)=>{"use strict";WI.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var l=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=l,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex;var o;if(a._indexToPoints){o=[];for(var s=0;s{"use strict";ZI.exports={attributes:G5(),layoutAttributes:Vp(),supplyDefaults:gI(),crossTraceDefaults:wI(),supplyLayoutDefaults:N5(),calc:VI().calc,crossTraceCalc:df().crossTraceCalc,plot:Pf().plot,layerName:"barlayer",style:ho().style,styleOnSelect:ho().styleOnSelect,colorbar:np(),hoverPoints:UI(),selectPoints:l0(),eventData:XI(),moduleType:"trace",name:"histogram",basePlotModule:gl(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var KI=B(($5e,$I)=>{"use strict";$I.exports=JI()});var jI=B((K5e,QI)=>{"use strict";QI.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var J5=B((Q5e,tH)=>{"use strict";var pt=Tl(),Z5=_i().line,u0e=an(),eH=pi().axisHoverFormat,f0e=ha().hovertemplateAttrs,c0e=ha().texttemplateAttrs,rH=jI(),Ml=mt().extendFlat,v0e=xr();tH.exports={x:pt.x,x0:pt.x0,dx:pt.dx,y:pt.y,y0:pt.y0,dy:pt.dy,xperiod:pt.xperiod,yperiod:pt.yperiod,xperiod0:pt.xperiod0,yperiod0:pt.yperiod0,xperiodalignment:pt.xperiodalignment,yperiodalignment:pt.yperiodalignment,xhoverformat:eH("x"),yhoverformat:eH("y"),hovertext:pt.hovertext,hovertemplate:f0e({},{keys:rH.eventDataKeys}),hoverinfo:Ml({},u0e.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:c0e({editType:"plot"},{keys:rH.eventDataKeys.concat(["label","value"])}),text:pt.text,textposition:pt.textposition,insidetextanchor:Ml({},pt.insidetextanchor,{dflt:"middle"}),textangle:Ml({},pt.textangle,{dflt:0}),textfont:pt.textfont,insidetextfont:pt.insidetextfont,outsidetextfont:pt.outsidetextfont,constraintext:pt.constraintext,cliponaxis:pt.cliponaxis,orientation:Ml({},pt.orientation,{}),offset:Ml({},pt.offset,{arrayOk:!1}),width:Ml({},pt.width,{arrayOk:!1}),marker:h0e(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Ml({},Z5.color,{dflt:v0e.defaultLine}),width:Ml({},Z5.width,{dflt:0,editType:"plot"}),dash:Z5.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:pt.offsetgroup,alignmentgroup:pt.alignmentgroup,zorder:pt.zorder};function h0e(){var e=Ml({},pt.marker);return delete e.pattern,delete e.cornerradius,e}});var $5=B((j5e,aH)=>{"use strict";aH.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var Q5=B((ebe,iH)=>{"use strict";var jp=Pe(),d0e=cf(),p0e=Ki().handleText,m0e=Nv(),y0e=_s(),nH=J5(),K5=xr();function g0e(e,r,t,a){function n(c,h){return jp.coerce(e,r,nH,c,h)}var i=m0e(e,r,a,n);if(!i){r.visible=!1;return}y0e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("orientation",r.y&&!r.x?"v":"h"),n("offset"),n("width");var l=n("text");n("hovertext"),n("hovertemplate");var o=n("textposition");p0e(e,r,a,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&!r.texttemplate&&n("textinfo",jp.isArrayOrTypedArray(l)?"text+value":"value");var s=n("marker.color",t);n("marker.line.color",K5.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",x0e(s));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function x0e(e){var r=jp.isArrayOrTypedArray(e)?"#000":e;return K5.addOpacity(r,.5*K5.opacity(r))}function b0e(e,r){var t,a;function n(l){return jp.coerce(a._input,a,nH,l)}for(var i=0;i{"use strict";var _0e=Pe(),w0e=$5();lH.exports=function(e,r,t){var a=!1;function n(o,s){return _0e.coerce(e,r,w0e,o,s)}for(var i=0;i{"use strict";var Nf=Pe();sH.exports=function(r,t){for(var a=0;a{"use strict";var fH=Jr(),cH=ws(),T0e=uH(),M0e=Fv(),u0=Mt().BADNUM;vH.exports=function(r,t){var a=fH.getFromId(r,t.xaxis||"x"),n=fH.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c,h;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=cH(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=cH(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;var d=Math.min(l.length,i.length),p=new Array(d);for(t._base=[],c=0;c{"use strict";var dH=df().setGroupPositions;pH.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,h;for(h=0;h{"use strict";var em=kr(),yo=Pe(),yH=Yr(),mo=Mt().BADNUM,A0e=Pf(),k0e=Ei().clearMinTextSize;xH.exports=function(r,t,a,n){var i=r._fullLayout;k0e("funnel",i),q0e(r,t,a,n),S0e(r,t,a,n),A0e.plot(r,t,a,n,{mode:i.funnelmode,norm:i.funnelmode,gap:i.funnelgap,groupgap:i.funnelgroupgap})};function q0e(e,r,t,a){var n=r.xaxis,i=r.yaxis;yo.makeTraceGroups(a,t,"trace bars").each(function(l){var o=em.select(this),s=l[0].trace,u=yo.ensureSingle(o,"g","regions");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.region").data(yo.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var m=gH(d,n,i,f),y=m[0],b=m[1],_="";y[0]!==mo&&b[0]!==mo&&y[1]!==mo&&b[1]!==mo&&y[2]!==mo&&b[2]!==mo&&y[3]!==mo&&b[3]!==mo&&(f?_+="M"+y[0]+","+b[1]+"L"+y[2]+","+b[2]+"H"+y[3]+"L"+y[1]+","+b[1]+"Z":_+="M"+y[1]+","+b[1]+"L"+y[2]+","+b[3]+"V"+b[2]+"L"+y[1]+","+b[0]+"Z"),_===""&&(_="M0,0Z"),yo.ensureSingle(em.select(this),"path").attr("d",_).call(yH.setClipUrl,r.layerClipId,e)}})})}function S0e(e,r,t,a){var n=r.xaxis,i=r.yaxis;yo.makeTraceGroups(a,t,"trace bars").each(function(l){var o=em.select(this),s=l[0].trace,u=yo.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible||!s.connector.line.width){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.line").data(yo.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var m=gH(d,n,i,f),y=m[0],b=m[1],_="";y[3]!==void 0&&b[3]!==void 0&&(f?(_+="M"+y[0]+","+b[1]+"L"+y[2]+","+b[2],_+="M"+y[1]+","+b[1]+"L"+y[3]+","+b[2]):(_+="M"+y[1]+","+b[1]+"L"+y[2]+","+b[3],_+="M"+y[1]+","+b[0]+"L"+y[2]+","+b[2])),_===""&&(_="M0,0Z"),yo.ensureSingle(em.select(this),"path").attr("d",_).call(yH.setClipUrl,r.layerClipId,e)}})})}function gH(e,r,t,a){var n=[],i=[],l=a?r:t,o=a?t:r;return n[0]=l.c2p(e.s0,!0),i[0]=o.c2p(e.p0,!0),n[1]=l.c2p(e.s1,!0),i[1]=o.c2p(e.p1,!0),n[2]=l.c2p(e.nextS0,!0),i[2]=o.c2p(e.nextP0,!0),n[3]=l.c2p(e.nextS1,!0),i[3]=o.c2p(e.nextP1,!0),a?[n,i]:[i,n]}});var TH=B((lbe,wH)=>{"use strict";var f0=kr(),_H=Yr(),eb=xr(),C0e=pu().DESELECTDIM,L0e=ho(),D0e=Ei().resizeText,E0e=L0e.styleTextPoints;function P0e(e,r,t){var a=t||f0.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");D0e(e,a,"funnel"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=f0.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l.marker;f0.select(this).call(eb.fill,o.mc||s.color).call(eb.stroke,o.mlc||s.line.color).call(_H.dashLine,s.line.dash,o.mlw||s.line.width).style("opacity",l.selectedpoints&&!o.selected?C0e:1)}}),E0e(i,l,e),i.selectAll(".regions").each(function(){f0.select(this).selectAll("path").style("stroke-width",0).call(eb.fill,l.connector.fillcolor)}),i.selectAll(".lines").each(function(){var o=l.connector.line;_H.lineGroupStyle(f0.select(this).selectAll("path"),o.width,o.color,o.dash)})})}wH.exports={style:P0e}});var kH=B((obe,AH)=>{"use strict";var MH=xr().opacity,R0e=i0().hoverOnBars,rb=Pe().formatPercent;AH.exports=function(r,t,a,n,i){var l=R0e(r,t,a,n,i);if(l){var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=l.index,c=o[f],h=u?"x":"y";l[h+"LabelVal"]=c.s,l.percentInitial=c.begR,l.percentInitialLabel=rb(c.begR,1),l.percentPrevious=c.difR,l.percentPreviousLabel=rb(c.difR,1),l.percentTotal=c.sumR,l.percentTotalLabel=rb(c.sumR,1);var d=c.hi||s.hoverinfo,p=[];if(d&&d!=="none"&&d!=="skip"){var m=d==="all",y=d.split("+"),b=function(_){return m||y.indexOf(_)!==-1};b("percent initial")&&p.push(l.percentInitialLabel+" of initial"),b("percent previous")&&p.push(l.percentPreviousLabel+" of previous"),b("percent total")&&p.push(l.percentTotalLabel+" of total")}return l.extraText=p.join("
"),l.color=z0e(s,c),[l]}};function z0e(e,r){var t=e.marker,a=r.mc||t.color,n=r.mlc||t.line.color,i=r.mlw||t.line.width;if(MH(a))return a;if(MH(n)&&i)return n}});var SH=B((sbe,qH)=>{"use strict";qH.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(r.percentInitial=t.percentInitial),"percentPrevious"in t&&(r.percentPrevious=t.percentPrevious),"percentTotal"in t&&(r.percentTotal=t.percentTotal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var LH=B((ube,CH)=>{"use strict";CH.exports={attributes:J5(),layoutAttributes:$5(),supplyDefaults:Q5().supplyDefaults,crossTraceDefaults:Q5().crossTraceDefaults,supplyLayoutDefaults:oH(),calc:hH(),crossTraceCalc:mH(),plot:bH(),style:TH().style,hoverPoints:kH(),eventData:SH(),selectPoints:l0(),moduleType:"trace",name:"funnel",basePlotModule:gl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var EH=B((fbe,DH)=>{"use strict";DH.exports=LH()});var RH=B((cbe,PH)=>{"use strict";PH.exports={eventDataKeys:["initial","delta","final"]}});var nb=B((vbe,FH)=>{"use strict";var ut=Tl(),tb=_i().line,N0e=an(),zH=pi().axisHoverFormat,F0e=ha().hovertemplateAttrs,I0e=ha().texttemplateAttrs,NH=RH(),Ff=mt().extendFlat,H0e=xr();function ab(e){return{marker:{color:Ff({},ut.marker.color,{arrayOk:!1,editType:"style"}),line:{color:Ff({},ut.marker.line.color,{arrayOk:!1,editType:"style"}),width:Ff({},ut.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}FH.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:ut.x,x0:ut.x0,dx:ut.dx,y:ut.y,y0:ut.y0,dy:ut.dy,xperiod:ut.xperiod,yperiod:ut.yperiod,xperiod0:ut.xperiod0,yperiod0:ut.yperiod0,xperiodalignment:ut.xperiodalignment,yperiodalignment:ut.yperiodalignment,xhoverformat:zH("x"),yhoverformat:zH("y"),hovertext:ut.hovertext,hovertemplate:F0e({},{keys:NH.eventDataKeys}),hoverinfo:Ff({},N0e.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:I0e({editType:"plot"},{keys:NH.eventDataKeys.concat(["label"])}),text:ut.text,textposition:ut.textposition,insidetextanchor:ut.insidetextanchor,textangle:ut.textangle,textfont:ut.textfont,insidetextfont:ut.insidetextfont,outsidetextfont:ut.outsidetextfont,constraintext:ut.constraintext,cliponaxis:ut.cliponaxis,orientation:ut.orientation,offset:ut.offset,width:ut.width,increasing:ab("increasing"),decreasing:ab("decreasing"),totals:ab("intermediate sums and total"),connector:{line:{color:Ff({},tb.color,{dflt:H0e.defaultLine}),width:Ff({},tb.width,{editType:"plot"}),dash:tb.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:ut.offsetgroup,alignmentgroup:ut.alignmentgroup,zorder:ut.zorder}});var ib=B((hbe,IH)=>{"use strict";IH.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var If=B((dbe,HH)=>{"use strict";HH.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var ob=B((pbe,VH)=>{"use strict";var OH=Pe(),O0e=cf(),B0e=Ki().handleText,Y0e=Nv(),V0e=_s(),BH=nb(),G0e=xr(),YH=If(),U0e=YH.INCREASING.COLOR,W0e=YH.DECREASING.COLOR,X0e="#4499FF";function lb(e,r,t){e(r+".marker.color",t),e(r+".marker.line.color",G0e.defaultLine),e(r+".marker.line.width")}function Z0e(e,r,t,a){function n(u,f){return OH.coerce(e,r,BH,u,f)}var i=Y0e(e,r,a,n);if(!i){r.visible=!1;return}V0e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("measure"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var l=n("textposition");B0e(e,r,a,n,l,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&(n("texttemplate"),r.texttemplate||n("textinfo")),lb(n,"increasing",U0e),lb(n,"decreasing",W0e),lb(n,"totals",X0e);var o=n("connector.visible");if(o){n("connector.mode");var s=n("connector.line.width");s&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function J0e(e,r){var t,a;function n(l){return OH.coerce(a._input,a,BH,l)}if(r.waterfallmode==="group")for(var i=0;i{"use strict";var $0e=Pe(),K0e=ib();GH.exports=function(e,r,t){var a=!1;function n(o,s){return $0e.coerce(e,r,K0e,o,s)}for(var i=0;i{"use strict";var WH=Jr(),XH=ws(),ZH=Pe().mergeArray,Q0e=Fv(),JH=Mt().BADNUM;function sb(e){return e==="a"||e==="absolute"}function ub(e){return e==="t"||e==="total"}$H.exports=function(r,t){var a=WH.getFromId(r,t.xaxis||"x"),n=WH.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=XH(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=XH(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var c=Math.min(l.length,i.length),h=new Array(c),d=0,p,m=!1,y=0;y{"use strict";var QH=df().setGroupPositions;jH.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,h;for(h=0;h{"use strict";var rO=kr(),rm=Pe(),j0e=Yr(),Hf=Mt().BADNUM,ehe=Pf(),rhe=Ei().clearMinTextSize;tO.exports=function(r,t,a,n){var i=r._fullLayout;rhe("waterfall",i),ehe.plot(r,t,a,n,{mode:i.waterfallmode,norm:i.waterfallmode,gap:i.waterfallgap,groupgap:i.waterfallgroupgap}),the(r,t,a,n)};function the(e,r,t,a){var n=r.xaxis,i=r.yaxis;rm.makeTraceGroups(a,t,"trace bars").each(function(l){var o=rO.select(this),s=l[0].trace,u=rm.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=s.connector.mode,h=u.selectAll("g.line").data(rm.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(p,m){if(!(m!==d-1&&!p.cNext)){var y=ahe(p,n,i,f),b=y[0],_=y[1],w="";b[0]!==Hf&&_[0]!==Hf&&b[1]!==Hf&&_[1]!==Hf&&(c==="spanning"&&!p.isSum&&m>0&&(f?w+="M"+b[0]+","+_[1]+"V"+_[0]:w+="M"+b[1]+","+_[0]+"H"+b[0]),c!=="between"&&(p.isSum||m{"use strict";var tm=kr(),nO=Yr(),iO=xr(),nhe=pu().DESELECTDIM,ihe=ho(),lhe=Ei().resizeText,ohe=ihe.styleTextPoints;function she(e,r,t){var a=t||tm.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");lhe(e,a,"waterfall"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=tm.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l[o.dir].marker;tm.select(this).call(iO.fill,s.color).call(iO.stroke,s.line.color).call(nO.dashLine,s.line.dash,s.line.width).style("opacity",l.selectedpoints&&!o.selected?nhe:1)}}),ohe(i,l,e),i.selectAll(".lines").each(function(){var o=l.connector.line;nO.lineGroupStyle(tm.select(this).selectAll("path"),o.width,o.color,o.dash)})})}lO.exports={style:she}});var vO=B((_be,cO)=>{"use strict";var uhe=Jr().hoverLabelText,sO=xr().opacity,fhe=i0().hoverOnBars,uO=If(),fO={increasing:uO.INCREASING.SYMBOL,decreasing:uO.DECREASING.SYMBOL};cO.exports=function(r,t,a,n,i){var l=fhe(r,t,a,n,i);if(!l)return;var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=u?"x":"y",c=u?r.xa:r.ya;function h(k){return uhe(c,k,s[f+"hoverformat"])}var d=l.index,p=o[d],m=p.isSum?p.b+p.s:p.rawS;l.initial=p.b+p.s-m,l.delta=m,l.final=l.initial+l.delta;var y=h(Math.abs(l.delta));l.deltaLabel=m<0?"("+y+")":y,l.finalLabel=h(l.final),l.initialLabel=h(l.initial);var b=p.hi||s.hoverinfo,_=[];if(b&&b!=="none"&&b!=="skip"){var w=b==="all",x=b.split("+"),M=function(k){return w||x.indexOf(k)!==-1};p.isSum||(M("final")&&(u?!M("x"):!M("y"))&&_.push(l.finalLabel),M("delta")&&(m<0?_.push(l.deltaLabel+" "+fO.decreasing):_.push(l.deltaLabel+" "+fO.increasing)),M("initial")&&_.push("Initial: "+l.initialLabel))}return _.length&&(l.extraText=_.join("
")),l.color=che(s,p),[l]};function che(e,r){var t=e[r.dir].marker,a=t.color,n=t.line.color,i=t.line.width;if(sO(a))return a;if(sO(n)&&i)return n}});var dO=B((wbe,hO)=>{"use strict";hO.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"initial"in t&&(r.initial=t.initial),"delta"in t&&(r.delta=t.delta),"final"in t&&(r.final=t.final),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var mO=B((Tbe,pO)=>{"use strict";pO.exports={attributes:nb(),layoutAttributes:ib(),supplyDefaults:ob().supplyDefaults,crossTraceDefaults:ob().crossTraceDefaults,supplyLayoutDefaults:UH(),calc:KH(),crossTraceCalc:eO(),plot:aO(),style:oO().style,hoverPoints:vO(),eventData:dO(),selectPoints:l0(),moduleType:"trace",name:"waterfall",basePlotModule:gl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var gO=B((Mbe,yO)=>{"use strict";yO.exports=mO()});var nm=B((Abe,xO)=>{"use strict";var vhe=an(),hhe=fo().attributes,dhe=aa(),phe=Nn(),mhe=ha().hovertemplateAttrs,yhe=ha().texttemplateAttrs,c0=mt().extendFlat,ghe=ci().pattern,am=dhe({editType:"plot",arrayOk:!0,colorEditType:"plot"});xO.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:phe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:ghe,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:c0({},vhe.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:mhe({},{keys:["label","color","value","percent","text"]}),texttemplate:yhe({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:c0({},am,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:c0({},am,{}),outsidetextfont:c0({},am,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:c0({},am,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:hhe({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var im=B((kbe,wO)=>{"use strict";var xhe=zr(),v0=Pe(),bhe=nm(),_he=fo().defaults,whe=Ki().handleText,The=Pe().coercePattern;function bO(e,r){var t=v0.isArrayOrTypedArray(e),a=v0.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function _O(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");The(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function Mhe(e,r,t,a){function n(_,w){return v0.coerce(e,r,bhe,_,w)}var i=n("labels"),l=n("values"),o=bO(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,_O(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate"),c;if(f||(c=n("textinfo",v0.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),f||c&&c!=="none"){var h=n("textposition");whe(e,r,a,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",p=d||h==="outside";p&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");_he(r,a,n);var m=n("hole"),y=n("title.text");if(y){var b=n("title.position",m?"middle center":"top center");!m&&b==="middle center"&&(r.title.position="top center"),v0.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}wO.exports={handleLabelsAndValues:bO,handleMarkerDefaults:_O,supplyDefaults:Mhe}});var lm=B((qbe,TO)=>{"use strict";TO.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var AO=B((Sbe,MO)=>{"use strict";var Ahe=Pe(),khe=lm();MO.exports=function(r,t){function a(n,i){return Ahe.coerce(r,t,khe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var om=B((Cbe,SO)=>{"use strict";var qhe=zr(),fb=zn(),She=xr(),Che={};function Lhe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var x=r.type==="funnelarea"?m:r.sort;return x&&t.sort(function(M,k){return k.v-M.v}),t[0]&&(t[0].vTotal=p),t}function kO(e){return function(t,a){return!t||(t=fb(t),!t.isValid())?!1:(t=She.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function Dhe(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=qO(i,Che));for(var o=0,s=0;s{"use strict";var Ehe=Hi().appendArrayMultiPointValues;CO.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),Ehe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var hb=B((Dbe,KO)=>{"use strict";var mn=kr(),Phe=Pt(),sm=xi(),NO=xr(),Al=Yr(),Ca=Pe(),Rhe=Ca.strScale,DO=Ca.strTranslate,cb=da(),FO=Ei(),zhe=FO.recordMinTextSize,Nhe=FO.clearMinTextSize,IO=Yp().TEXTPAD,Tr=rv(),um=LO(),EO=Pe().isValidTextValue;function Fhe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;Nhe("pie",a),BO(r,e),ZO(r,n);var i=Ca.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=mn.select(this),s=l[0],u=s.trace;Whe(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=mn.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],h=!1;f.each(function(x,M){if(x.hidden){mn.select(this).selectAll("path,g").remove();return}x.pointNumber=x.i,x.curveNumber=u.index,c[x.pxmid[1]<0?0:1][x.pxmid[0]<0?0:1].push(x);var k=s.cx,A=s.cy,C=mn.select(this),D=C.selectAll("path.surface").data([x]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),C.call(HO,e,l),u.pull){var E=+Tr.castOption(u.pull,x.pts)||0;E>0&&(k+=E*x.pxmid[0],A+=E*x.pxmid[1])}x.cxFinal=k,x.cyFinal=A;function R(O,V,Z,$){var te=$*(V[0]-O[0]),le=$*(V[1]-O[1]);return"a"+$*s.r+","+$*s.r+" 0 "+x.largeArc+(Z?" 1 ":" 0 ")+te+","+le}var N=u.hole;if(x.v===s.vTotal){var I="M"+(k+x.px0[0])+","+(A+x.px0[1])+R(x.px0,x.pxmid,!0,1)+R(x.pxmid,x.px0,!0,1)+"Z";N?D.attr("d","M"+(k+N*x.px0[0])+","+(A+N*x.px0[1])+R(x.px0,x.pxmid,!1,N)+R(x.pxmid,x.px0,!1,N)+"Z"+I):D.attr("d",I)}else{var H=R(x.px0,x.px1,!0,1);if(N){var G=1-N;D.attr("d","M"+(k+N*x.px1[0])+","+(A+N*x.px1[1])+R(x.px1,x.px0,!1,N)+"l"+G*x.px0[0]+","+G*x.px0[1]+H+"Z")}else D.attr("d","M"+k+","+A+"l"+x.px0[0]+","+x.px0[1]+H+"Z")}JO(e,x,s);var W=Tr.castOption(u.textposition,x.pts),Y=C.selectAll("g.slicetext").data(x.text&&W!=="none"?[0]:[]);Y.enter().append("g").classed("slicetext",!0),Y.exit().remove(),Y.each(function(){var O=Ca.ensureSingle(mn.select(this),"text","",function(Q){Q.attr("data-notex",1)}),V=Ca.ensureUniformFontSize(e,W==="outside"?Hhe(u,x,a.font):OO(u,x,a.font));O.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Al.font,V).call(cb.convertToTspans,e);var Z=Al.bBox(O.node()),$;if(W==="outside")$=zO(Z,x);else if($=YO(Z,x,s),W==="auto"&&$.scale<1){var te=Ca.ensureUniformFontSize(e,u.outsidetextfont);O.call(Al.font,te),Z=Al.bBox(O.node()),$=zO(Z,x)}var le=$.textPosAngle,fe=le===void 0?x.pxmid:fm(s.r,le);if($.targetX=k+fe[0]*$.rCenter+($.x||0),$.targetY=A+fe[1]*$.rCenter+($.y||0),$O($,Z),$.outside){var he=$.targetY;x.yLabelMin=he-Z.height/2,x.yLabelMid=he,x.yLabelMax=he+Z.height/2,x.labelExtraX=0,x.labelExtraY=0,h=!0}$.fontSize=V.size,zhe(u.type,$,a),l[M].transform=$,Ca.setTransormAndDisplay(O,$)})});var d=mn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var x=Ca.ensureSingle(mn.select(this),"text","",function(A){A.attr("data-notex",1)}),M=u.title.text;u._meta&&(M=Ca.templateString(M,u._meta)),x.text(M).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Al.font,u.title.font).call(cb.convertToTspans,e);var k;u.title.position==="middle center"?k=Yhe(s):k=WO(s,n),x.attr("transform",DO(k.x,k.y)+Rhe(Math.min(1,k.scale))+DO(k.tx,k.ty))}),h&&Ghe(c,u),Ihe(f,u),h&&u.automargin){var p=Al.bBox(o.node()),m=u.domain,y=n.w*(m.x[1]-m.x[0]),b=n.h*(m.y[1]-m.y[0]),_=(.5*y-s.r)/n.w,w=(.5*b-s.r)/n.h;Phe.autoMargin(e,"pie."+u.uid+".automargin",{xl:m.x[0]-_,xr:m.x[1]+_,yb:m.y[0]-w,yt:m.y[1]+w,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=mn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function Ihe(e,r){e.each(function(t){var a=mn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,Ca.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;Ca.ensureSingle(a,"path","textline").call(NO.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function HO(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=sm.castHoverinfo({hoverinfo:[Tr.castOption(c,s.pts)],_module:l._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var h=s.rInscribed||0,d=n+s.pxmid[0]*(1-h),p=i+s.pxmid[1]*(1-h),m=u.separators,y=[];if(c&&c.indexOf("label")!==-1&&y.push(s.label),s.text=Tr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var b=s.text;Ca.isValidTextValue(b)&&y.push(b)}s.value=s.v,s.valueLabel=Tr.formatPieValue(s.v,m),c&&c.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Tr.formatPiePercent(s.percent,m),c&&c.indexOf("percent")!==-1&&y.push(s.percentLabel);var _=f.hoverlabel,w=_.font,x=[];sm.loneHover({trace:l,x0:d-h*a.r,x1:d+h*a.r,y:p,_x0:o?n+s.TL[0]:d-h*a.r,_x1:o?n+s.TR[0]:d+h*a.r,_y0:o?i+s.TL[1]:p-h*a.r,_y1:o?i+s.BL[1]:p+h*a.r,text:y.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Tr.castOption(_.bgcolor,s.pts)||s.color,borderColor:Tr.castOption(_.bordercolor,s.pts),fontFamily:Tr.castOption(w.family,s.pts),fontSize:Tr.castOption(w.size,s.pts),fontColor:Tr.castOption(w.color,s.pts),nameLength:Tr.castOption(_.namelength,s.pts),textAlign:Tr.castOption(_.align,s.pts),hovertemplate:Tr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[um(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:x}),s.bbox=x[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[um(s,f)],event:mn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],c=mn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=mn.event,r.emit("plotly_unhover",{points:[um(c,f)],event:mn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(sm.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[um(s,f)],sm.click(r,mn.event))})}function Hhe(e,r,t){var a=Tr.castOption(e.outsidetextfont.color,r.pts)||Tr.castOption(e.textfont.color,r.pts)||t.color,n=Tr.castOption(e.outsidetextfont.family,r.pts)||Tr.castOption(e.textfont.family,r.pts)||t.family,i=Tr.castOption(e.outsidetextfont.size,r.pts)||Tr.castOption(e.textfont.size,r.pts)||t.size,l=Tr.castOption(e.outsidetextfont.weight,r.pts)||Tr.castOption(e.textfont.weight,r.pts)||t.weight,o=Tr.castOption(e.outsidetextfont.style,r.pts)||Tr.castOption(e.textfont.style,r.pts)||t.style,s=Tr.castOption(e.outsidetextfont.variant,r.pts)||Tr.castOption(e.textfont.variant,r.pts)||t.variant,u=Tr.castOption(e.outsidetextfont.textcase,r.pts)||Tr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Tr.castOption(e.outsidetextfont.lineposition,r.pts)||Tr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Tr.castOption(e.outsidetextfont.shadow,r.pts)||Tr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function OO(e,r,t){var a=Tr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Tr.castOption(e._input.textfont.color,r.pts));var n=Tr.castOption(e.insidetextfont.family,r.pts)||Tr.castOption(e.textfont.family,r.pts)||t.family,i=Tr.castOption(e.insidetextfont.size,r.pts)||Tr.castOption(e.textfont.size,r.pts)||t.size,l=Tr.castOption(e.insidetextfont.weight,r.pts)||Tr.castOption(e.textfont.weight,r.pts)||t.weight,o=Tr.castOption(e.insidetextfont.style,r.pts)||Tr.castOption(e.textfont.style,r.pts)||t.style,s=Tr.castOption(e.insidetextfont.variant,r.pts)||Tr.castOption(e.textfont.variant,r.pts)||t.variant,u=Tr.castOption(e.insidetextfont.textcase,r.pts)||Tr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Tr.castOption(e.insidetextfont.lineposition,r.pts)||Tr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Tr.castOption(e.insidetextfont.shadow,r.pts)||Tr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||NO.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function BO(e,r){for(var t,a,n=0;n=-4;_-=2)b(Math.PI*_,"tan");for(_=4;_>=-4;_-=2)b(Math.PI*(_+1),"tan")}if(c||d){for(_=4;_>=-4;_-=2)b(Math.PI*(_+1.5),"rad");for(_=4;_>=-4;_-=2)b(Math.PI*(_+.5),"rad")}}if(o||p||c){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/w,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;m.push(y)}(p||d)&&(y=PO(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y)),(p||h)&&(y=RO(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y));for(var x=0,M=0,k=0;k=1)break}return m[x]}function Ohe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function Yhe(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function WO(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=XO(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=Vhe(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=vb(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function Vhe(e,r){return e/(r===void 0?1:r)}function vb(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function XO(e){var r=e.pull;if(!r)return 0;var t;if(Ca.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function Ghe(e,r){var t,a,n,i,l,o,s,u,f,c,h,d,p;function m(w,x){return w.pxmid[1]-x.pxmid[1]}function y(w,x){return x.pxmid[1]-w.pxmid[1]}function b(w,x){x||(x={});var M=x.labelExtraY+(a?x.yLabelMax:x.yLabelMin),k=a?w.yLabelMin:w.yLabelMax,A=a?w.yLabelMax:w.yLabelMin,C=w.cyFinal+l(w.px0[1],w.px1[1]),D=M-k,E,R,N,I,H,G;if(D*s>0&&(w.labelExtraY=D),!!Ca.isArrayOrTypedArray(r.pull))for(R=0;R=(Tr.castOption(r.pull,N.pts)||0))&&((w.pxmid[1]-N.pxmid[1])*s>0?(I=N.cyFinal+l(N.px0[1],N.px1[1]),D=I-k-w.labelExtraY,D*s>0&&(w.labelExtraY+=D)):(A+w.labelExtraY-C)*s>0&&(E=3*o*Math.abs(R-c.indexOf(w)),H=N.cxFinal+i(N.px0[0],N.px1[0]),G=H+E-(w.cxFinal+w.pxmid[0])-w.labelExtraX,G*o>0&&(w.labelExtraX+=G)))}for(a=0;a<2;a++)for(n=a?m:y,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],h=0;h1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=Bhe(u,r))}function fm(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function JO(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(x){return o.indexOf(x)!==-1},u=s("label"),f=s("text"),c=s("value"),h=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var m=Tr.getFirstFilled(n.text,r.pts);EO(m)&&p.push(m)}c&&p.push(Tr.formatPieValue(r.v,d)),h&&p.push(Tr.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("
")}function y(x){return{label:x.label,value:x.v,valueLabel:Tr.formatPieValue(x.v,a.separators),percent:x.v/t.vTotal,percentLabel:Tr.formatPiePercent(x.v/t.vTotal,a.separators),color:x.color,text:x.text,customdata:Ca.castOption(n,x.i,"customdata")}}if(i){var b=Ca.castOption(n,r.i,"texttemplate");if(!b)r.text="";else{var _=y(r),w=Tr.getFirstFilled(n.text,r.pts);(EO(w)||w==="")&&(_.text=w),r.text=Ca.texttemplateString(b,_,e._fullLayout._d3locale,_,n._meta||{})}}}function $O(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}KO.exports={plot:Fhe,formatSliceLabel:JO,transformInsideText:YO,determineInsideTextFont:OO,positionTitleOutside:WO,prerenderTitles:BO,layoutAreas:ZO,attachFxHandlers:HO,computeTransform:$O}});var eB=B((Ebe,jO)=>{"use strict";var QO=kr(),Xhe=Uu(),Zhe=Ei().resizeText;jO.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");Zhe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=QO.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){QO.select(this).call(Xhe,o,i,r)})})}});var tB=B(Of=>{"use strict";var rB=Pt();Of.name="pie";Of.plot=function(e,r,t,a){rB.plotBasePlot(Of.name,e,r,t,a)};Of.clean=function(e,r,t,a){rB.cleanBasePlot(Of.name,e,r,t,a)}});var nB=B((Rbe,aB)=>{"use strict";aB.exports={attributes:nm(),supplyDefaults:im().supplyDefaults,supplyLayoutDefaults:AO(),layoutAttributes:lm(),calc:om().calc,crossTraceCalc:om().crossTraceCalc,plot:hb().plot,style:eB(),styleOne:Uu(),moduleType:"trace",name:"pie",basePlotModule:tB(),categories:["pie-like","pie","showLegend"],meta:{}}});var lB=B((zbe,iB)=>{"use strict";iB.exports=nB()});var sB=B(Bf=>{"use strict";var oB=Pt();Bf.name="funnelarea";Bf.plot=function(e,r,t,a){oB.plotBasePlot(Bf.name,e,r,t,a)};Bf.clean=function(e,r,t,a){oB.cleanBasePlot(Bf.name,e,r,t,a)}});var db=B((Fbe,uB)=>{"use strict";var La=nm(),Jhe=an(),$he=fo().attributes,Khe=ha().hovertemplateAttrs,Qhe=ha().texttemplateAttrs,zs=mt().extendFlat;uB.exports={labels:La.labels,label0:La.label0,dlabel:La.dlabel,values:La.values,marker:{colors:La.marker.colors,line:{color:zs({},La.marker.line.color,{dflt:null}),width:zs({},La.marker.line.width,{dflt:1}),editType:"calc"},pattern:La.marker.pattern,editType:"calc"},text:La.text,hovertext:La.hovertext,scalegroup:zs({},La.scalegroup,{}),textinfo:zs({},La.textinfo,{flags:["label","text","value","percent"]}),texttemplate:Qhe({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:zs({},Jhe.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Khe({},{keys:["label","color","value","text","percent"]}),textposition:zs({},La.textposition,{values:["inside","none"],dflt:"inside"}),textfont:La.textfont,insidetextfont:La.insidetextfont,title:{text:La.title.text,font:La.title.font,position:zs({},La.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:$he({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var pb=B((Ibe,fB)=>{"use strict";var jhe=lm().hiddenlabels;fB.exports={hiddenlabels:jhe,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var hB=B((Hbe,vB)=>{"use strict";var cB=Pe(),ede=db(),rde=fo().defaults,tde=Ki().handleText,ade=im().handleLabelsAndValues,nde=im().handleMarkerDefaults;vB.exports=function(r,t,a,n){function i(m,y){return cB.coerce(r,t,ede,m,y)}var l=i("labels"),o=i("values"),s=ade(l,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,nde(r,t,n,i),i("scalegroup");var f=i("text"),c=i("texttemplate"),h;if(c||(h=i("textinfo",Array.isArray(f)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),c||h&&h!=="none"){var d=i("textposition");tde(r,t,n,i,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&i("textposition","none");rde(t,n,i);var p=i("title.text");p&&(i("title.position"),cB.coerceFont(i,"title.font",n.font)),i("aspectratio"),i("baseratio")}});var pB=B((Obe,dB)=>{"use strict";var ide=Pe(),lde=pb();dB.exports=function(r,t){function a(n,i){return ide.coerce(r,t,lde,n,i)}a("hiddenlabels"),a("funnelareacolorway",t.colorway),a("extendfunnelareacolors")}});var mb=B((Bbe,yB)=>{"use strict";var mB=om();function ode(e,r){return mB.calc(e,r)}function sde(e){mB.crossTraceCalc(e,{type:"funnelarea"})}yB.exports={calc:ode,crossTraceCalc:sde}});var wB=B((Ybe,_B)=>{"use strict";var Ns=kr(),yb=Yr(),go=Pe(),ude=go.strScale,gB=go.strTranslate,xB=da(),fde=Pf(),cde=fde.toMoveInsideBar,bB=Ei(),vde=bB.recordMinTextSize,hde=bB.clearMinTextSize,dde=rv(),Yf=hb(),pde=Yf.attachFxHandlers,mde=Yf.determineInsideTextFont,yde=Yf.layoutAreas,gde=Yf.prerenderTitles,xde=Yf.positionTitleOutside,bde=Yf.formatSliceLabel;_B.exports=function(r,t){var a=r._context.staticPlot,n=r._fullLayout;hde("funnelarea",n),gde(t,r),yde(t,n._size),go.makeTraceGroups(n._funnelarealayer,t,"trace").each(function(i){var l=Ns.select(this),o=i[0],s=o.trace;wde(i),l.each(function(){var u=Ns.select(this).selectAll("g.slice").data(i);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(c,h){if(c.hidden){Ns.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=s.index;var d=o.cx,p=o.cy,m=Ns.select(this),y=m.selectAll("path.surface").data([c]);y.enter().append("path").classed("surface",!0).style({"pointer-events":a?"none":"all"}),m.call(pde,r,i);var b="M"+(d+c.TR[0])+","+(p+c.TR[1])+gb(c.TR,c.BR)+gb(c.BR,c.BL)+gb(c.BL,c.TL)+"Z";y.attr("d",b),bde(r,c,o);var _=dde.castOption(s.textposition,c.pts),w=m.selectAll("g.slicetext").data(c.text&&_!=="none"?[0]:[]);w.enter().append("g").classed("slicetext",!0),w.exit().remove(),w.each(function(){var x=go.ensureSingle(Ns.select(this),"text","",function(N){N.attr("data-notex",1)}),M=go.ensureUniformFontSize(r,mde(s,c,n.font));x.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(yb.font,M).call(xB.convertToTspans,r);var k=yb.bBox(x.node()),A,C,D,E=Math.min(c.BL[1],c.BR[1])+p,R=Math.max(c.TL[1],c.TR[1])+p;C=Math.max(c.TL[0],c.BL[0])+d,D=Math.min(c.TR[0],c.BR[0])+d,A=cde(C,D,E,R,k,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),A.fontSize=M.size,vde(s.type,A,n),i[h].transform=A,go.setTransormAndDisplay(x,A)})});var f=Ns.select(this).selectAll("g.titletext").data(s.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=go.ensureSingle(Ns.select(this),"text","",function(p){p.attr("data-notex",1)}),h=s.title.text;s._meta&&(h=go.templateString(h,s._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(yb.font,s.title.font).call(xB.convertToTspans,r);var d=xde(o,n._size);c.attr("transform",gB(d.x,d.y)+ude(Math.min(1,d.scale))+gB(d.tx,d.ty))})})})};function gb(e,r){var t=r[0]-e[0],a=r[1]-e[1];return"l"+t+","+a}function _de(e,r){return[.5*(e[0]+r[0]),.5*(e[1]+r[1])]}function wde(e){if(!e.length)return;var r=e[0],t=r.trace,a=t.aspectratio,n=t.baseratio;n>.999&&(n=.999);var i=Math.pow(n,2),l=r.vTotal,o=l*i/(1-i),s=l,u=o/l;function f(){var I=Math.sqrt(u);return{x:I,y:-I}}function c(){var I=f();return[I.x,I.y]}var h,d=[];d.push(c());var p,m;for(p=e.length-1;p>-1;p--)if(m=e[p],!m.hidden){var y=m.v/s;u+=y,d.push(c())}var b=1/0,_=-1/0;for(p=0;p-1;p--)if(m=e[p],!m.hidden){E+=1;var R=d[E][0],N=d[E][1];m.TL=[-R,N],m.TR=[R,N],m.BL=C,m.BR=D,m.pxmid=_de(m.TR,m.BR),C=m.TL,D=m.TR}}});var AB=B((Vbe,MB)=>{"use strict";var TB=kr(),Tde=Uu(),Mde=Ei().resizeText;MB.exports=function(r){var t=r._fullLayout._funnelarealayer.selectAll(".trace");Mde(r,t,"funnelarea"),t.each(function(a){var n=a[0],i=n.trace,l=TB.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){TB.select(this).call(Tde,o,i,r)})})}});var qB=B((Gbe,kB)=>{"use strict";kB.exports={moduleType:"trace",name:"funnelarea",basePlotModule:sB(),categories:["pie-like","funnelarea","showLegend"],attributes:db(),layoutAttributes:pb(),supplyDefaults:hB(),supplyLayoutDefaults:pB(),calc:mb().calc,crossTraceCalc:mb().crossTraceCalc,plot:wB(),style:AB(),styleOne:Uu(),meta:{}}});var CB=B((Ube,SB)=>{"use strict";SB.exports=qB()});var DB=B(Vf=>{"use strict";var LB=Pt();Vf.name="indicator";Vf.plot=function(e,r,t,a){LB.plotBasePlot(Vf.name,e,r,t,a)};Vf.clean=function(e,r,t,a){LB.cleanBasePlot(Vf.name,e,r,t,a)}});var bb=B((Xbe,FB)=>{"use strict";var xo=mt().extendFlat,PB=mt().extendDeep,Ade=fi().overrideAll,RB=aa(),zB=Nn(),kde=fo().attributes,Lt=_n(),qde=ot().templatedArray,cm=If(),EB=pi().descriptionOnlyNumbers,xb=RB({editType:"plot",colorEditType:"plot"}),h0={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:zB.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},NB={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},Sde=qde("step",PB({},h0,{range:NB}));FB.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:kde({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:xo({},xb,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:EB("value")},font:xo({},xb,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:EB("value")},increasing:{symbol:{valType:"string",dflt:cm.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:cm.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:cm.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:cm.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:xo({},xb,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:PB({},h0,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:zB.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:Ade({range:NB,visible:xo({},Lt.visible,{dflt:!0}),tickmode:Lt.minor.tickmode,nticks:Lt.nticks,tick0:Lt.tick0,dtick:Lt.dtick,tickvals:Lt.tickvals,ticktext:Lt.ticktext,ticks:xo({},Lt.ticks,{dflt:"outside"}),ticklen:Lt.ticklen,tickwidth:Lt.tickwidth,tickcolor:Lt.tickcolor,ticklabelstep:Lt.ticklabelstep,showticklabels:Lt.showticklabels,labelalias:Lt.labelalias,tickfont:RB({}),tickangle:Lt.tickangle,tickformat:Lt.tickformat,tickformatstops:Lt.tickformatstops,tickprefix:Lt.tickprefix,showtickprefix:Lt.showtickprefix,ticksuffix:Lt.ticksuffix,showticksuffix:Lt.showticksuffix,separatethousands:Lt.separatethousands,exponentformat:Lt.exponentformat,minexponent:Lt.minexponent,showexponent:Lt.showexponent,editType:"plot"},"plot"),steps:Sde,threshold:{line:{color:xo({},h0.line.color,{}),width:xo({},h0.line.width,{dflt:1}),editType:"plot"},thickness:xo({},h0.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var _b=B((Zbe,IB)=>{"use strict";IB.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var BB=B((Jbe,OB)=>{"use strict";var ji=Pe(),hm=bb(),Cde=fo().defaults,HB=ot(),Lde=On(),vm=_b(),Dde=jh(),Ede=ed(),Pde=td(),Rde=ad();function zde(e,r,t,a){function n(k,A){return ji.coerce(e,r,hm,k,A)}Cde(r,a,n),n("mode"),r._hasNumber=r.mode.indexOf("number")!==-1,r._hasDelta=r.mode.indexOf("delta")!==-1,r._hasGauge=r.mode.indexOf("gauge")!==-1;var i=n("value");r._range=[0,typeof i=="number"?1.5*i:1];var l=new Array(2),o;if(r._hasNumber){n("number.valueformat");var s=ji.extendFlat({},a.font);s.size=void 0,ji.coerceFont(n,"number.font",s),r.number.font.size===void 0&&(r.number.font.size=vm.defaultNumberFontSize,l[0]=!0),n("number.prefix"),n("number.suffix"),o=r.number.font.size}var u;if(r._hasDelta){var f=ji.extendFlat({},a.font);f.size=void 0,ji.coerceFont(n,"delta.font",f),r.delta.font.size===void 0&&(r.delta.font.size=(r._hasNumber?.5:1)*(o||vm.defaultNumberFontSize),l[1]=!0),n("delta.reference",r.value),n("delta.relative"),n("delta.valueformat",r.delta.relative?"2%":""),n("delta.increasing.symbol"),n("delta.increasing.color"),n("delta.decreasing.symbol"),n("delta.decreasing.color"),n("delta.position"),n("delta.prefix"),n("delta.suffix"),u=r.delta.font.size}r._scaleNumbers=(!r._hasNumber||l[0])&&(!r._hasDelta||l[1])||!1;var c=ji.extendFlat({},a.font);c.size=.25*(o||u||vm.defaultNumberFontSize),ji.coerceFont(n,"title.font",c),n("title.text");var h,d,p,m;function y(k,A){return ji.coerce(h,d,hm.gauge,k,A)}function b(k,A){return ji.coerce(p,m,hm.gauge.axis,k,A)}if(r._hasGauge){h=e.gauge,h||(h={}),d=HB.newContainer(r,"gauge"),y("shape");var _=r._isBullet=r.gauge.shape==="bullet";_||n("title.align","center");var w=r._isAngular=r.gauge.shape==="angular";w||n("align","center"),y("bgcolor",a.paper_bgcolor),y("borderwidth"),y("bordercolor"),y("bar.color"),y("bar.line.color"),y("bar.line.width");var x=vm.valueThickness*(r.gauge.shape==="bullet"?.5:1);y("bar.thickness",x),Lde(h,d,{name:"steps",handleItemDefaults:Nde}),y("threshold.value"),y("threshold.thickness"),y("threshold.line.width"),y("threshold.line.color"),p={},h&&(p=h.axis||{}),m=HB.newContainer(d,"axis"),b("visible"),r._range=b("range",r._range);var M={font:a.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};Dde(p,m,b,"linear"),Rde(p,m,b,"linear",M),Pde(p,m,b,"linear",M),Ede(p,m,b,M)}else n("title.align","center"),n("align","center"),r._isAngular=r._isBullet=!1;r._length=null}function Nde(e,r){function t(a,n){return ji.coerce(e,r,hm.gauge.steps,a,n)}t("color"),t("line.color"),t("line.width"),t("range"),t("thickness")}OB.exports={supplyDefaults:zde}});var VB=B(($be,YB)=>{"use strict";function Fde(e,r){var t=[],a=r.value;typeof r._lastValue!="number"&&(r._lastValue=r.value);var n=r._lastValue,i=n;return r._hasDelta&&typeof r.delta.reference=="number"&&(i=r.delta.reference),t[0]={y:a,lastY:n,delta:a-i,relativeDelta:(a-i)/i},t}YB.exports={calc:Fde}});function kl(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function bo(e,r){var t=Object.create(e.prototype);for(var a in r)t[a]=r[a];return t}var dm=lt(()=>{});function rl(){}function UB(){return this.rgb().formatHex()}function Ude(){return this.rgb().formatHex8()}function Wde(){return QB(this).formatHsl()}function WB(){return this.rgb().formatRgb()}function wo(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=Ide.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?XB(r):t===3?new fa(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?pm(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?pm(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=Hde.exec(e))?new fa(r[1],r[2],r[3],1):(r=Ode.exec(e))?new fa(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=Bde.exec(e))?pm(r[1],r[2],r[3],r[4]):(r=Yde.exec(e))?pm(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=Vde.exec(e))?$B(r[1],r[2]/100,r[3]/100,1):(r=Gde.exec(e))?$B(r[1],r[2]/100,r[3]/100,r[4]):GB.hasOwnProperty(e)?XB(GB[e]):e==="transparent"?new fa(NaN,NaN,NaN,0):null}function XB(e){return new fa(e>>16&255,e>>8&255,e&255,1)}function pm(e,r,t,a){return a<=0&&(e=r=t=NaN),new fa(e,r,t,a)}function p0(e){return e instanceof rl||(e=wo(e)),e?(e=e.rgb(),new fa(e.r,e.g,e.b,e.opacity)):new fa}function Uf(e,r,t,a){return arguments.length===1?p0(e):new fa(e,r,t,a==null?1:a)}function fa(e,r,t,a){this.r=+e,this.g=+r,this.b=+t,this.opacity=+a}function ZB(){return`#${Fs(this.r)}${Fs(this.g)}${Fs(this.b)}`}function Xde(){return`#${Fs(this.r)}${Fs(this.g)}${Fs(this.b)}${Fs((isNaN(this.opacity)?1:this.opacity)*255)}`}function JB(){let e=ym(this.opacity);return`${e===1?"rgb(":"rgba("}${Is(this.r)}, ${Is(this.g)}, ${Is(this.b)}${e===1?")":`, ${e})`}`}function ym(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Is(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fs(e){return e=Is(e),(e<16?"0":"")+e.toString(16)}function $B(e,r,t,a){return a<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new Pi(e,r,t,a)}function QB(e){if(e instanceof Pi)return new Pi(e.h,e.s,e.l,e.opacity);if(e instanceof rl||(e=wo(e)),!e)return new Pi;if(e instanceof Pi)return e;e=e.rgb();var r=e.r/255,t=e.g/255,a=e.b/255,n=Math.min(r,t,a),i=Math.max(r,t,a),l=NaN,o=i-n,s=(i+n)/2;return o?(r===i?l=(t-a)/o+(t0&&s<1?0:l,new Pi(l,o,s,e.opacity)}function m0(e,r,t,a){return arguments.length===1?QB(e):new Pi(e,r,t,a==null?1:a)}function Pi(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}function KB(e){return e=(e||0)%360,e<0?e+360:e}function mm(e){return Math.max(0,Math.min(1,e||0))}function wb(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}var _o,Hs,Gf,d0,el,Ide,Hde,Ode,Bde,Yde,Vde,Gde,GB,gm=lt(()=>{dm();_o=.7,Hs=1/_o,Gf="\\s*([+-]?\\d+)\\s*",d0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",el="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ide=/^#([0-9a-f]{3,8})$/,Hde=new RegExp(`^rgb\\(${Gf},${Gf},${Gf}\\)$`),Ode=new RegExp(`^rgb\\(${el},${el},${el}\\)$`),Bde=new RegExp(`^rgba\\(${Gf},${Gf},${Gf},${d0}\\)$`),Yde=new RegExp(`^rgba\\(${el},${el},${el},${d0}\\)$`),Vde=new RegExp(`^hsl\\(${d0},${el},${el}\\)$`),Gde=new RegExp(`^hsla\\(${d0},${el},${el},${d0}\\)$`),GB={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};kl(rl,wo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:UB,formatHex:UB,formatHex8:Ude,formatHsl:Wde,formatRgb:WB,toString:WB});kl(fa,Uf,bo(rl,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new fa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new fa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fa(Is(this.r),Is(this.g),Is(this.b),ym(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ZB,formatHex:ZB,formatHex8:Xde,formatRgb:JB,toString:JB}));kl(Pi,m0,bo(rl,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new Pi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new Pi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,a=t+(t<.5?t:1-t)*r,n=2*t-a;return new fa(wb(e>=240?e-240:e+120,n,a),wb(e,n,a),wb(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new Pi(KB(this.h),mm(this.s),mm(this.l),ym(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ym(this.opacity);return`${e===1?"hsl(":"hsla("}${KB(this.h)}, ${mm(this.s)*100}%, ${mm(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var xm,bm,Tb=lt(()=>{xm=Math.PI/180,bm=180/Math.PI});function nY(e){if(e instanceof tl)return new tl(e.l,e.a,e.b,e.opacity);if(e instanceof ql)return iY(e);e instanceof fa||(e=p0(e));var r=qb(e.r),t=qb(e.g),a=qb(e.b),n=Mb((.2225045*r+.7168786*t+.0606169*a)/eY),i,l;return r===t&&t===a?i=l=n:(i=Mb((.4360747*r+.3850649*t+.1430804*a)/jB),l=Mb((.0139322*r+.0971045*t+.7141733*a)/rY)),new tl(116*n-16,500*(i-n),200*(n-l),e.opacity)}function Xf(e,r,t,a){return arguments.length===1?nY(e):new tl(e,r,t,a==null?1:a)}function tl(e,r,t,a){this.l=+e,this.a=+r,this.b=+t,this.opacity=+a}function Mb(e){return e>Zde?Math.pow(e,1/3):e/aY+tY}function Ab(e){return e>Wf?e*e*e:aY*(e-tY)}function kb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function qb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Jde(e){if(e instanceof ql)return new ql(e.h,e.c,e.l,e.opacity);if(e instanceof tl||(e=nY(e)),e.a===0&&e.b===0)return new ql(NaN,0{dm();gm();Tb();_m=18,jB=.96422,eY=1,rY=.82521,tY=4/29,Wf=6/29,aY=3*Wf*Wf,Zde=Wf*Wf*Wf;kl(tl,Xf,bo(rl,{brighter(e){return new tl(this.l+_m*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new tl(this.l-_m*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return r=jB*Ab(r),e=eY*Ab(e),t=rY*Ab(t),new fa(kb(3.1338561*r-1.6168667*e-.4906146*t),kb(-.9787684*r+1.9161415*e+.033454*t),kb(.0719453*r-.2289914*e+1.4052427*t),this.opacity)}}));kl(ql,y0,bo(rl,{brighter(e){return new ql(this.h,this.c,this.l+_m*(e==null?1:e),this.opacity)},darker(e){return new ql(this.h,this.c,this.l-_m*(e==null?1:e),this.opacity)},rgb(){return iY(this).rgb()}}))});function $de(e){if(e instanceof Os)return new Os(e.h,e.s,e.l,e.opacity);e instanceof fa||(e=p0(e));var r=e.r/255,t=e.g/255,a=e.b/255,n=(uY*a+oY*r-sY*t)/(uY+oY-sY),i=a-n,l=(g0*(t-n)-Cb*i)/wm,o=Math.sqrt(l*l+i*i)/(g0*n*(1-n)),s=o?Math.atan2(l,i)*bm-120:NaN;return new Os(s<0?s+360:s,o,n,e.opacity)}function Zf(e,r,t,a){return arguments.length===1?$de(e):new Os(e,r,t,a==null?1:a)}function Os(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}var fY,Sb,Cb,wm,g0,oY,sY,uY,cY=lt(()=>{dm();gm();Tb();fY=-.14861,Sb=1.78277,Cb=-.29227,wm=-.90649,g0=1.97294,oY=g0*wm,sY=g0*Sb,uY=Sb*Cb-wm*fY;kl(Os,Zf,bo(rl,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new Os(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new Os(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*xm,r=+this.l,t=isNaN(this.s)?0:this.s*r*(1-r),a=Math.cos(e),n=Math.sin(e);return new fa(255*(r+t*(fY*a+Sb*n)),255*(r+t*(Cb*a+wm*n)),255*(r+t*(g0*a)),this.opacity)}}))});var Bs=lt(()=>{gm();lY();cY()});function Lb(e,r,t,a,n){var i=e*e,l=i*e;return((1-3*e+3*i-l)*r+(4-6*i+3*l)*t+(1+3*e+3*i-3*l)*a+l*n)/6}function Tm(e){var r=e.length-1;return function(t){var a=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),n=e[a],i=e[a+1],l=a>0?e[a-1]:2*n-i,o=a{});function Am(e){var r=e.length;return function(t){var a=Math.floor(((t%=1)<0?++t:t)*r),n=e[(a+r-1)%r],i=e[a%r],l=e[(a+1)%r],o=e[(a+2)%r];return Lb((t-a/r)*r,n,i,l,o)}}var Db=lt(()=>{Mm()});var Jf,Eb=lt(()=>{Jf=e=>()=>e});function vY(e,r){return function(t){return e+t*r}}function Kde(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(a){return Math.pow(e+a*r,t)}}function To(e,r){var t=r-e;return t?vY(e,t>180||t<-180?t-360*Math.round(t/360):t):Jf(isNaN(e)?r:e)}function hY(e){return(e=+e)==1?Ft:function(r,t){return t-r?Kde(r,t,e):Jf(isNaN(r)?t:r)}}function Ft(e,r){var t=r-e;return t?vY(e,t):Jf(isNaN(e)?r:e)}var Ys=lt(()=>{Eb()});function dY(e){return function(r){var t=r.length,a=new Array(t),n=new Array(t),i=new Array(t),l,o;for(l=0;l{Bs();Mm();Db();Ys();x0=function e(r){var t=hY(r);function a(n,i){var l=t((n=Uf(n)).r,(i=Uf(i)).r),o=t(n.g,i.g),s=t(n.b,i.b),u=Ft(n.opacity,i.opacity);return function(f){return n.r=l(f),n.g=o(f),n.b=s(f),n.opacity=u(f),n+""}}return a.gamma=e,a}(1);pY=dY(Tm),mY=dY(Am)});function $f(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,a=r.slice(),n;return function(i){for(n=0;n{});function yY(e,r){return(km(r)?$f:Rb)(e,r)}function Rb(e,r){var t=r?r.length:0,a=e?Math.min(t,e.length):0,n=new Array(a),i=new Array(t),l;for(l=0;l{b0();qm()});function Sm(e,r){var t=new Date;return e=+e,r=+r,function(a){return t.setTime(e*(1-a)+r*a),t}}var Nb=lt(()=>{});function yn(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}var _0=lt(()=>{});function Cm(e,r){var t={},a={},n;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(n in r)n in e?t[n]=Mo(e[n],r[n]):a[n]=r[n];return function(i){for(n in t)a[n]=t[n](i);return a}}var Fb=lt(()=>{b0()});function Qde(e){return function(){return e}}function jde(e){return function(r){return e(r)+""}}function Lm(e,r){var t=Hb.lastIndex=Ib.lastIndex=0,a,n,i,l=-1,o=[],s=[];for(e=e+"",r=r+"";(a=Hb.exec(e))&&(n=Ib.exec(r));)(i=n.index)>t&&(i=r.slice(t,i),o[l]?o[l]+=i:o[++l]=i),(a=a[0])===(n=n[0])?o[l]?o[l]+=n:o[++l]=n:(o[++l]=null,s.push({i:l,x:yn(a,n)})),t=Ib.lastIndex;return t{_0();Hb=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ib=new RegExp(Hb.source,"g")});function Mo(e,r){var t=typeof r,a;return r==null||t==="boolean"?Jf(r):(t==="number"?yn:t==="string"?(a=wo(r))?(r=a,x0):Lm:r instanceof wo?x0:r instanceof Date?Sm:km(r)?$f:Array.isArray(r)?Rb:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Cm:yn)(e,r)}var b0=lt(()=>{Bs();Pb();zb();Nb();_0();Fb();Ob();Eb();qm()});function gY(e){var r=e.length;return function(t){return e[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var xY=lt(()=>{});function bY(e,r){var t=To(+e,+r);return function(a){var n=t(a);return n-360*Math.floor(n/360)}}var _Y=lt(()=>{Ys()});function wY(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}var TY=lt(()=>{});function Bb(e,r,t,a,n,i){var l,o,s;return(l=Math.sqrt(e*e+r*r))&&(e/=l,r/=l),(s=e*t+r*a)&&(t-=e*s,a-=r*s),(o=Math.sqrt(t*t+a*a))&&(t/=o,a/=o,s/=o),e*a{MY=180/Math.PI,Dm={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function kY(e){let r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?Dm:Bb(r.a,r.b,r.c,r.d,r.e,r.f)}function qY(e){return e==null?Dm:(Em||(Em=document.createElementNS("http://www.w3.org/2000/svg","g")),Em.setAttribute("transform",e),(e=Em.transform.baseVal.consolidate())?(e=e.matrix,Bb(e.a,e.b,e.c,e.d,e.e,e.f)):Dm)}var Em,SY=lt(()=>{AY()});function CY(e,r,t,a){function n(u){return u.length?u.pop()+" ":""}function i(u,f,c,h,d,p){if(u!==c||f!==h){var m=d.push("translate(",null,r,null,t);p.push({i:m-4,x:yn(u,c)},{i:m-2,x:yn(f,h)})}else(c||h)&&d.push("translate("+c+r+h+t)}function l(u,f,c,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:c.push(n(c)+"rotate(",null,a)-2,x:yn(u,f)})):f&&c.push(n(c)+"rotate("+f+a)}function o(u,f,c,h){u!==f?h.push({i:c.push(n(c)+"skewX(",null,a)-2,x:yn(u,f)}):f&&c.push(n(c)+"skewX("+f+a)}function s(u,f,c,h,d,p){if(u!==c||f!==h){var m=d.push(n(d)+"scale(",null,",",null,")");p.push({i:m-4,x:yn(u,c)},{i:m-2,x:yn(f,h)})}else(c!==1||h!==1)&&d.push(n(d)+"scale("+c+","+h+")")}return function(u,f){var c=[],h=[];return u=e(u),f=e(f),i(u.translateX,u.translateY,f.translateX,f.translateY,c,h),l(u.rotate,f.rotate,c,h),o(u.skewX,f.skewX,c,h),s(u.scaleX,u.scaleY,f.scaleX,f.scaleY,c,h),u=f=null,function(d){for(var p=-1,m=h.length,y;++p{_0();SY();LY=CY(kY,"px, ","px)","deg)"),DY=CY(qY,", ",")",")")});function PY(e){return((e=Math.exp(e))+1/e)/2}function r1e(e){return((e=Math.exp(e))-1/e)/2}function t1e(e){return((e=Math.exp(2*e))-1)/(e+1)}var e1e,RY,zY=lt(()=>{e1e=1e-12;RY=function e(r,t,a){function n(i,l){var o=i[0],s=i[1],u=i[2],f=l[0],c=l[1],h=l[2],d=f-o,p=c-s,m=d*d+p*p,y,b;if(m{Bs();Ys();FY=NY(To),IY=NY(Ft)});function Yb(e,r){var t=Ft((e=Xf(e)).l,(r=Xf(r)).l),a=Ft(e.a,r.a),n=Ft(e.b,r.b),i=Ft(e.opacity,r.opacity);return function(l){return e.l=t(l),e.a=a(l),e.b=n(l),e.opacity=i(l),e+""}}var OY=lt(()=>{Bs();Ys()});function BY(e){return function(r,t){var a=e((r=y0(r)).h,(t=y0(t)).h),n=Ft(r.c,t.c),i=Ft(r.l,t.l),l=Ft(r.opacity,t.opacity);return function(o){return r.h=a(o),r.c=n(o),r.l=i(o),r.opacity=l(o),r+""}}}var YY,VY,GY=lt(()=>{Bs();Ys();YY=BY(To),VY=BY(Ft)});function UY(e){return function r(t){t=+t;function a(n,i){var l=e((n=Zf(n)).h,(i=Zf(i)).h),o=Ft(n.s,i.s),s=Ft(n.l,i.l),u=Ft(n.opacity,i.opacity);return function(f){return n.h=l(f),n.s=o(f),n.l=s(Math.pow(f,t)),n.opacity=u(f),n+""}}return a.gamma=r,a}(1)}var WY,XY,ZY=lt(()=>{Bs();Ys();WY=UY(To),XY=UY(Ft)});function Vb(e,r){r===void 0&&(r=e,e=Mo);for(var t=0,a=r.length-1,n=r[0],i=new Array(a<0?0:a);t{b0()});function $Y(e,r){for(var t=new Array(r),a=0;a{});var Gb={};jW(Gb,{interpolate:()=>Mo,interpolateArray:()=>yY,interpolateBasis:()=>Tm,interpolateBasisClosed:()=>Am,interpolateCubehelix:()=>WY,interpolateCubehelixLong:()=>XY,interpolateDate:()=>Sm,interpolateDiscrete:()=>gY,interpolateHcl:()=>YY,interpolateHclLong:()=>VY,interpolateHsl:()=>FY,interpolateHslLong:()=>IY,interpolateHue:()=>bY,interpolateLab:()=>Yb,interpolateNumber:()=>yn,interpolateNumberArray:()=>$f,interpolateObject:()=>Cm,interpolateRgb:()=>x0,interpolateRgbBasis:()=>pY,interpolateRgbBasisClosed:()=>mY,interpolateRound:()=>wY,interpolateString:()=>Lm,interpolateTransformCss:()=>LY,interpolateTransformSvg:()=>DY,interpolateZoom:()=>RY,piecewise:()=>Vb,quantize:()=>$Y});var Ub=lt(()=>{b0();zb();Mm();Db();Nb();xY();_Y();_0();qm();Fb();TY();Ob();EY();zY();Pb();HY();OY();GY();ZY();JY();KY()});var aV=B((H4e,tV)=>{"use strict";var Xs=kr(),a1e=(Ub(),V4(Gb)).interpolate,QY=(Ub(),V4(Gb)).interpolateNumber,Ao=Pe(),n1e=Ao.strScale,T0=Ao.strTranslate,i1e=Ao.rad2deg,l1e=Pa().MID_SHIFT,Ws=Yr(),Vs=_b(),Rm=da(),Da=Jr(),o1e=sp(),s1e=fp(),u1e=_n(),Kf=xr(),Wb={left:"start",center:"middle",right:"end"},Gs={left:0,center:.5,right:1},jY=/[yzafpnµmkMGTPEZY]/;function M0(e){return e&&e.duration>0}tV.exports=function(r,t,a,n){var i=r._fullLayout,l;M0(a)&&n&&(l=n()),Ao.makeTraceGroups(i._indicatorlayer,t,"trace").each(function(o){var s=o[0],u=s.trace,f=Xs.select(this),c=u._hasGauge,h=u._isAngular,d=u._isBullet,p=u.domain,m={w:i._size.w*(p.x[1]-p.x[0]),h:i._size.h*(p.y[1]-p.y[0]),l:i._size.l+i._size.w*p.x[0],r:i._size.r+i._size.w*(1-p.x[1]),t:i._size.t+i._size.h*(1-p.y[1]),b:i._size.b+i._size.h*p.y[0]},y=m.l+m.w/2,b=m.t+m.h/2,_=Math.min(m.w/2,m.h),w=Vs.innerRadius*_,x,M,k,A=u.align||"center";if(M=b,!c)x=m.l+Gs[A]*m.w,k=function(Y){return eV(Y,m.w,m.h)};else if(h&&(x=y,M=b+_/2,k=function(Y){return d1e(Y,.9*w)}),d){var C=Vs.bulletPadding,D=1-Vs.bulletNumberDomainSize+C;x=m.l+(D+(1-D)*Gs[A])*m.w,k=function(Y){return eV(Y,(Vs.bulletNumberDomainSize-C)*m.w,m.h)}}v1e(r,f,o,{numbersX:x,numbersY:M,numbersScaler:k,transitionOpts:a,onComplete:l});var E,R;c&&(E={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},R={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var N=f.selectAll("g.angular").data(h?o:[]);N.exit().remove();var I=f.selectAll("g.angularaxis").data(h?o:[]);I.exit().remove(),h&&c1e(r,f,o,{radius:_,innerRadius:w,gauge:N,layer:I,size:m,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var H=f.selectAll("g.bullet").data(d?o:[]);H.exit().remove();var G=f.selectAll("g.bulletaxis").data(d?o:[]);G.exit().remove(),d&&f1e(r,f,o,{gauge:H,layer:G,size:m,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var W=f.selectAll("text.title").data(o);W.exit().remove(),W.enter().append("text").classed("title",!0),W.attr("text-anchor",function(){return d?Wb.right:Wb[u.title.align]}).text(u.title.text).call(Ws.font,u.title.font).call(Rm.convertToTspans,r),W.attr("transform",function(){var Y=m.l+m.w*Gs[u.title.align],O,V=Vs.titlePadding,Z=Ws.bBox(W.node());if(c){if(h)if(u.gauge.axis.visible){var $=Ws.bBox(I.node());O=$.top-V-Z.bottom}else O=m.t+m.h/2-_/2-Z.bottom-V;d&&(O=M-(Z.top+Z.bottom)/2,Y=m.l-Vs.bulletPadding*m.w)}else O=u._numbersTop-V-Z.bottom;return T0(Y,O)})})};function f1e(e,r,t,a){var n=t[0].trace,i=a.gauge,l=a.layer,o=a.gaugeBg,s=a.gaugeOutline,u=a.size,f=n.domain,c=a.transitionOpts,h=a.onComplete,d,p,m,y,b;i.enter().append("g").classed("bullet",!0),i.attr("transform",T0(u.l,u.t)),l.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),l.selectAll("g.xbulletaxistick,path,text").remove();var _=u.h,w=n.gauge.bar.thickness*_,x=f.x[0],M=f.x[0]+(f.x[1]-f.x[0])*(n._hasNumber||n._hasDelta?1-Vs.bulletNumberDomainSize:1);d=w0(e,n.gauge.axis),d._id="xbulletaxis",d.domain=[x,M],d.setScale(),p=Da.calcTicks(d),m=Da.makeTransTickFn(d),y=Da.getTickSigns(d)[2],b=u.t+u.h,d.visible&&(Da.drawTicks(e,d,{vals:d.ticks==="inside"?Da.clipEnds(d,p):p,layer:l,path:Da.makeTickPath(d,b,y),transFn:m}),Da.drawLabels(e,d,{vals:p,layer:l,transFn:m,labelFns:Da.makeLabelFns(d,b)}));function k(I){I.attr("width",function(H){return Math.max(0,d.c2p(H.range[1])-d.c2p(H.range[0]))}).attr("x",function(H){return d.c2p(H.range[0])}).attr("y",function(H){return .5*(1-H.thickness)*_}).attr("height",function(H){return H.thickness*_})}var A=[o].concat(n.gauge.steps),C=i.selectAll("g.bg-bullet").data(A);C.enter().append("g").classed("bg-bullet",!0).append("rect"),C.select("rect").call(k).call(Us),C.exit().remove();var D=i.selectAll("g.value-bullet").data([n.gauge.bar]);D.enter().append("g").classed("value-bullet",!0).append("rect"),D.select("rect").attr("height",w).attr("y",(_-w)/2).call(Us),M0(c)?D.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(n.gauge.axis.range[1],t[0].y)))):D.select("rect").attr("width",typeof t[0].y=="number"?Math.max(0,d.c2p(Math.min(n.gauge.axis.range[1],t[0].y))):0),D.exit().remove();var E=t.filter(function(){return n.gauge.threshold.value||n.gauge.threshold.value===0}),R=i.selectAll("g.threshold-bullet").data(E);R.enter().append("g").classed("threshold-bullet",!0).append("line"),R.select("line").attr("x1",d.c2p(n.gauge.threshold.value)).attr("x2",d.c2p(n.gauge.threshold.value)).attr("y1",(1-n.gauge.threshold.thickness)/2*_).attr("y2",(1-(1-n.gauge.threshold.thickness)/2)*_).call(Kf.stroke,n.gauge.threshold.line.color).style("stroke-width",n.gauge.threshold.line.width),R.exit().remove();var N=i.selectAll("g.gauge-outline").data([s]);N.enter().append("g").classed("gauge-outline",!0).append("rect"),N.select("rect").call(k).call(Us),N.exit().remove()}function c1e(e,r,t,a){var n=t[0].trace,i=a.size,l=a.radius,o=a.innerRadius,s=a.gaugeBg,u=a.gaugeOutline,f=[i.l+i.w/2,i.t+i.h/2+l/2],c=a.gauge,h=a.layer,d=a.transitionOpts,p=a.onComplete,m=Math.PI/2;function y(te){var le=n.gauge.axis.range[0],fe=n.gauge.axis.range[1],he=(te-le)/(fe-le)*Math.PI-m;return he<-m?-m:he>m?m:he}function b(te){return Xs.svg.arc().innerRadius((o+l)/2-te/2*(l-o)).outerRadius((o+l)/2+te/2*(l-o)).startAngle(-m)}function _(te){te.attr("d",function(le){return b(le.thickness).startAngle(y(le.range[0])).endAngle(y(le.range[1]))()})}var w,x,M,k;c.enter().append("g").classed("angular",!0),c.attr("transform",T0(f[0],f[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),w=w0(e,n.gauge.axis),w.type="linear",w.range=n.gauge.axis.range,w._id="xangularaxis",w.ticklabeloverflow="allow",w.setScale();var A=function(te){return(w.range[0]-te.x)/(w.range[1]-w.range[0])*Math.PI+Math.PI},C={},D=Da.makeLabelFns(w,0),E=D.labelStandoff;C.xFn=function(te){var le=A(te);return Math.cos(le)*E},C.yFn=function(te){var le=A(te),fe=Math.sin(le)>0?.2:1;return-Math.sin(le)*(E+te.fontSize*fe)+Math.abs(Math.cos(le))*(te.fontSize*l1e)},C.anchorFn=function(te){var le=A(te),fe=Math.cos(le);return Math.abs(fe)<.1?"middle":fe>0?"start":"end"},C.heightFn=function(te,le,fe){var he=A(te);return-.5*(1+Math.sin(he))*fe};var R=function(te){return T0(f[0]+l*Math.cos(te),f[1]-l*Math.sin(te))};M=function(te){return R(A(te))};var N=function(te){var le=A(te);return R(le)+"rotate("+-i1e(le)+")"};if(x=Da.calcTicks(w),k=Da.getTickSigns(w)[2],w.visible){k=w.ticks==="inside"?-1:1;var I=(w.linewidth||1)/2;Da.drawTicks(e,w,{vals:x,layer:h,path:"M"+k*I+",0h"+k*w.ticklen,transFn:N}),Da.drawLabels(e,w,{vals:x,layer:h,transFn:M,labelFns:C})}var H=[s].concat(n.gauge.steps),G=c.selectAll("g.bg-arc").data(H);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(_).call(Us),G.exit().remove();var W=b(n.gauge.bar.thickness),Y=c.selectAll("g.value-arc").data([n.gauge.bar]);Y.enter().append("g").classed("value-arc",!0).append("path");var O=Y.select("path");M0(d)?(O.transition().duration(d.duration).ease(d.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",h1e(W,y(t[0].lastY),y(t[0].y))),n._lastValue=t[0].y):O.attr("d",typeof t[0].y=="number"?W.endAngle(y(t[0].y)):"M0,0Z"),O.call(Us),Y.exit().remove(),H=[];var V=n.gauge.threshold.value;(V||V===0)&&H.push({range:[V,V],color:n.gauge.threshold.color,line:{color:n.gauge.threshold.line.color,width:n.gauge.threshold.line.width},thickness:n.gauge.threshold.thickness});var Z=c.selectAll("g.threshold-arc").data(H);Z.enter().append("g").classed("threshold-arc",!0).append("path"),Z.select("path").call(_).call(Us),Z.exit().remove();var $=c.selectAll("g.gauge-outline").data([u]);$.enter().append("g").classed("gauge-outline",!0).append("path"),$.select("path").call(_).call(Us),$.exit().remove()}function v1e(e,r,t,a){var n=t[0].trace,i=a.numbersX,l=a.numbersY,o=n.align||"center",s=Wb[o],u=a.transitionOpts,f=a.onComplete,c=Ao.ensureSingle(r,"g","numbers"),h,d,p,m=[];n._hasNumber&&m.push("number"),n._hasDelta&&(m.push("delta"),n.delta.position==="left"&&m.reverse());var y=c.selectAll("text").data(m);y.enter().append("text"),y.attr("text-anchor",function(){return s}).attr("class",function(R){return R}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),y.exit().remove();function b(R,N,I,H){if(R.match("s")&&I>=0!=H>=0&&!N(I).slice(-1).match(jY)&&!N(H).slice(-1).match(jY)){var G=R.slice().replace("s","f").replace(/\d+/,function(Y){return parseInt(Y)-1}),W=w0(e,{tickformat:G});return function(Y){return Math.abs(Y)<1?Da.tickText(W,Y).text:N(Y)}}else return N}function _(){var R=w0(e,{tickformat:n.number.valueformat},n._range);R.setScale(),Da.prepTicks(R);var N=function(Y){return Da.tickText(R,Y).text},I=n.number.suffix,H=n.number.prefix,G=c.select("text.number");function W(){var Y=typeof t[0].y=="number"?H+N(t[0].y)+I:"-";G.text(Y).call(Ws.font,n.number.font).call(Rm.convertToTspans,e)}return M0(u)?G.transition().duration(u.duration).ease(u.easing).each("end",function(){W(),f&&f()}).each("interrupt",function(){W(),f&&f()}).attrTween("text",function(){var Y=Xs.select(this),O=QY(t[0].lastY,t[0].y);n._lastValue=t[0].y;var V=b(n.number.valueformat,N,t[0].lastY,t[0].y);return function(Z){Y.text(H+V(O(Z))+I)}}):W(),h=rV(H+N(t[0].y)+I,n.number.font,s,e),G}function w(){var R=w0(e,{tickformat:n.delta.valueformat},n._range);R.setScale(),Da.prepTicks(R);var N=function(Z){return Da.tickText(R,Z).text},I=n.delta.suffix,H=n.delta.prefix,G=function(Z){var $=n.delta.relative?Z.relativeDelta:Z.delta;return $},W=function(Z,$){return Z===0||typeof Z!="number"||isNaN(Z)?"-":(Z>0?n.delta.increasing.symbol:n.delta.decreasing.symbol)+H+$(Z)+I},Y=function(Z){return Z.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=G(t[0]));var O=c.select("text.delta");O.call(Ws.font,n.delta.font).call(Kf.fill,Y({delta:n._deltaLastValue}));function V(){O.text(W(G(t[0]),N)).call(Kf.fill,Y(t[0])).call(Rm.convertToTspans,e)}return M0(u)?O.transition().duration(u.duration).ease(u.easing).tween("text",function(){var Z=Xs.select(this),$=G(t[0]),te=n._deltaLastValue,le=b(n.delta.valueformat,N,te,$),fe=QY(te,$);return n._deltaLastValue=$,function(he){Z.text(W(fe(he),le)),Z.call(Kf.fill,Y({delta:fe(he)}))}}).each("end",function(){V(),f&&f()}).each("interrupt",function(){V(),f&&f()}):V(),d=rV(W(G(t[0]),N),n.delta.font,s,e),O}var x=n.mode+n.align,M;if(n._hasDelta&&(M=w(),x+=n.delta.position+n.delta.font.size+n.delta.font.family+n.delta.valueformat,x+=n.delta.increasing.symbol+n.delta.decreasing.symbol,p=d),n._hasNumber&&(_(),x+=n.number.font.size+n.number.font.family+n.number.valueformat+n.number.suffix+n.number.prefix,p=h),n._hasDelta&&n._hasNumber){var k=[(h.left+h.right)/2,(h.top+h.bottom)/2],A=[(d.left+d.right)/2,(d.top+d.bottom)/2],C,D,E=.75*n.delta.font.size;n.delta.position==="left"&&(C=Pm(n,"deltaPos",0,-1*(h.width*Gs[n.align]+d.width*(1-Gs[n.align])+E),x,Math.min),D=k[1]-A[1],p={width:h.width+d.width+E,height:Math.max(h.height,d.height),left:d.left+C,right:h.right,top:Math.min(h.top,d.top+D),bottom:Math.max(h.bottom,d.bottom+D)}),n.delta.position==="right"&&(C=Pm(n,"deltaPos",0,h.width*(1-Gs[n.align])+d.width*Gs[n.align]+E,x,Math.max),D=k[1]-A[1],p={width:h.width+d.width+E,height:Math.max(h.height,d.height),left:h.left,right:d.right+C,top:Math.min(h.top,d.top+D),bottom:Math.max(h.bottom,d.bottom+D)}),n.delta.position==="bottom"&&(C=null,D=d.height,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),n.delta.position==="top"&&(C=null,D=h.top,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),M.attr({dx:C,dy:D})}(n._hasNumber||n._hasDelta)&&c.attr("transform",function(){var R=a.numbersScaler(p);x+=R[2];var N=Pm(n,"numbersScale",1,R[0],x,Math.min),I;n._scaleNumbers||(N=1),n._isAngular?I=l-N*p.bottom:I=l-N*(p.top+p.bottom)/2,n._numbersTop=N*p.top+I;var H=p[o];o==="center"&&(H=(p.left+p.right)/2);var G=i-N*H;return G=Pm(n,"numbersTranslate",0,G,x,Math.max),T0(G,I)+n1e(N)})}function Us(e){e.each(function(r){Kf.stroke(Xs.select(this),r.line.color)}).each(function(r){Kf.fill(Xs.select(this),r.color)}).style("stroke-width",function(r){return r.line.width})}function h1e(e,r,t){return function(){var a=a1e(r,t);return function(n){return e.endAngle(a(n))()}}}function w0(e,r,t){var a=e._fullLayout,n=Ao.extendFlat({type:"linear",ticks:"outside",range:t,showline:!0},r),i={type:"linear",_id:"x"+r._id},l={letter:"x",font:a.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function o(s,u){return Ao.coerce(n,i,u1e,s,u)}return o1e(n,i,o,l,a),s1e(n,i,o,l),i}function eV(e,r,t){var a=Math.min(r/e.width,t/e.height);return[a,e,r+"x"+t]}function d1e(e,r){var t=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),a=r/t;return[a,e,r]}function rV(e,r,t,a){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),i=Xs.select(n);return i.text(e).attr("x",0).attr("y",0).attr("text-anchor",t).attr("data-unformatted",e).call(Rm.convertToTspans,a).call(Ws.font,r),Ws.bBox(i.node())}function Pm(e,r,t,a,n,i){var l="_cache"+r;e[l]&&e[l].key===n||(e[l]={key:n,value:t});var o=Ao.aggNums(i,null,[e[l].value,a],2);return e[l].value=o,o}});var iV=B((O4e,nV)=>{"use strict";nV.exports={moduleType:"trace",name:"indicator",basePlotModule:DB(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:bb(),supplyDefaults:BB().supplyDefaults,calc:VB().calc,plot:aV(),meta:{}}});var oV=B((B4e,lV)=>{"use strict";lV.exports=iV()});var Nm=B((Y4e,vV)=>{"use strict";var zm=Pe().extendFlat,A0=_i(),sV=pi().axisHoverFormat,fV=ci().dash,p1e=Tc(),cV=If(),m1e=cV.INCREASING.COLOR,y1e=cV.DECREASING.COLOR,Xb=A0.line;function uV(e){return{line:{color:zm({},Xb.color,{dflt:e}),width:Xb.width,dash:fV,editType:"style"},editType:"style"}}vV.exports={xperiod:A0.xperiod,xperiod0:A0.xperiod0,xperiodalignment:A0.xperiodalignment,xhoverformat:sV("x"),yhoverformat:sV("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:zm({},Xb.width,{}),dash:zm({},fV,{}),editType:"style"},increasing:uV(m1e),decreasing:uV(y1e),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:zm({},p1e.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:A0.zorder}});var Zb=B((V4e,hV)=>{"use strict";var g1e=yr(),x1e=Pe();hV.exports=function(r,t,a,n){var i=a("x"),l=a("open"),o=a("high"),s=a("low"),u=a("close");a("hoverlabel.split");var f=g1e.getComponentMethod("calendars","handleTraceDefaults");if(f(r,t,["x"],n),!!(l&&o&&s&&u)){var c=Math.min(l.length,o.length,s.length,u.length);return i&&(c=Math.min(c,x1e.minRowLength(i))),t._length=c,c}}});var mV=B((G4e,pV)=>{"use strict";var b1e=Pe(),_1e=Zb(),w1e=_s(),T1e=Nm();pV.exports=function(r,t,a,n){function i(o,s){return b1e.coerce(r,t,T1e,o,s)}var l=_1e(r,t,i,n);if(!l){t.visible=!1;return}w1e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),i("line.dash"),dV(r,t,i,"increasing"),dV(r,t,i,"decreasing"),i("text"),i("hovertext"),i("tickwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function dV(e,r,t,a){t(a+".line.color"),t(a+".line.width",r.line.width),t(a+".line.dash",r.line.dash)}});var Jb=B((U4e,gV)=>{"use strict";var Qf=Pe(),Fm=Qf._,Im=Jr(),M1e=ws(),k0=Mt().BADNUM;function A1e(e,r){var t=Im.getFromId(e,r.xaxis),a=Im.getFromId(e,r.yaxis),n=q1e(e,t,r),i=r._minDiff;r._minDiff=null;var l=r._origX;r._origX=null;var o=r._xcalc;r._xcalc=null;var s=yV(e,r,l,o,a,k1e);return r._extremes[t._id]=Im.findExtremes(t,o,{vpad:i/2}),s.length?(Qf.extendFlat(s[0].t,{wHover:i/2,tickLen:n}),s):[{t:{empty:!0}}]}function k1e(e,r,t,a){return{o:e,h:r,l:t,c:a}}function yV(e,r,t,a,n,i){for(var l=n.makeCalcdata(r,"open"),o=n.makeCalcdata(r,"high"),s=n.makeCalcdata(r,"low"),u=n.makeCalcdata(r,"close"),f=Qf.isArrayOrTypedArray(r.text),c=Qf.isArrayOrTypedArray(r.hovertext),h=!0,d=null,p=!!r.xperiodalignment,m=[],y=0;yd):h=M>_,d=M;var k=i(_,w,x,M);k.pos=b,k.yc=(_+M)/2,k.i=y,k.dir=h?"increasing":"decreasing",k.x=k.pos,k.y=[x,w],p&&(k.orig_p=t[y]),f&&(k.tx=r.text[y]),c&&(k.htx=r.hovertext[y]),m.push(k)}else m.push({pos:b,empty:!0})}return r._extremes[n._id]=Im.findExtremes(n,Qf.concat(s,o),{padded:!0}),m.length&&(m[0].t={labels:{open:Fm(e,"open:")+" ",high:Fm(e,"high:")+" ",low:Fm(e,"low:")+" ",close:Fm(e,"close:")+" "}}),m}function q1e(e,r,t){var a=t._minDiff;if(!a){var n=e._fullData,i=[];a=1/0;var l;for(l=0;l{"use strict";var S1e=kr(),xV=Pe();bV.exports=function(r,t,a,n){var i=t.yaxis,l=t.xaxis,o=!!l.rangebreaks;xV.makeTraceGroups(n,a,"trace ohlc").each(function(s){var u=S1e.select(this),f=s[0],c=f.t,h=f.trace;if(h.visible!==!0||c.empty){u.remove();return}var d=c.tickLen,p=u.selectAll("path").data(xV.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(m){if(m.empty)return"M0,0Z";var y=l.c2p(m.pos-d,!0),b=l.c2p(m.pos+d,!0),_=o?(y+b)/2:l.c2p(m.pos,!0),w=i.c2p(m.o,!0),x=i.c2p(m.h,!0),M=i.c2p(m.l,!0),k=i.c2p(m.c,!0);return"M"+y+","+w+"H"+_+"M"+_+","+x+"V"+M+"M"+b+","+k+"H"+_})})}});var TV=B((X4e,wV)=>{"use strict";var $b=kr(),C1e=Yr(),L1e=xr();wV.exports=function(r,t,a){var n=a||$b.select(r).selectAll("g.ohlclayer").selectAll("g.trace");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var l=i[0].trace;$b.select(this).selectAll("path").each(function(o){if(!o.empty){var s=l[o.dir].line;$b.select(this).style("fill","none").call(L1e.stroke,s.color).call(C1e.dashLine,s.dash,s.width).style("opacity",l.selectedpoints&&!o.selected?.3:1)}})})}});var Qb=B((Z4e,SV)=>{"use strict";var Kb=Jr(),D1e=Pe(),Hm=xi(),E1e=xr(),P1e=Pe().fillText,MV=If(),R1e={increasing:MV.INCREASING.SYMBOL,decreasing:MV.DECREASING.SYMBOL};function z1e(e,r,t,a){var n=e.cd,i=n[0].trace;return i.hoverlabel.split?kV(e,r,t,a):qV(e,r,t,a)}function AV(e,r,t,a){var n=e.cd,i=e.xa,l=n[0].trace,o=n[0].t,s=l.type,u=s==="ohlc"?"l":"min",f=s==="ohlc"?"h":"max",c,h,d=o.bPos||0,p=function(E){return E.pos+d-r},m=o.bdPos||o.tickLen,y=o.wHover,b=Math.min(1,m/Math.abs(i.r2c(i.range[1])-i.r2c(i.range[0])));c=e.maxHoverDistance-b,h=e.maxSpikeDistance-b;function _(E){var R=p(E);return Hm.inbox(R-y,R+y,c)}function w(E){var R=E[u],N=E[f];return R===N||Hm.inbox(R-t,N-t,c)}function x(E){return(_(E)+w(E))/2}var M=Hm.getDistanceFunction(a,_,w,x);if(Hm.getClosest(n,M,e),e.index===!1)return null;var k=n[e.index];if(k.empty)return null;var A=k.dir,C=l[A],D=C.line.color;return E1e.opacity(D)&&C.line.width?e.color=D:e.color=C.fillcolor,e.x0=i.c2p(k.pos+d-m,!0),e.x1=i.c2p(k.pos+d+m,!0),e.xLabelVal=k.orig_p!==void 0?k.orig_p:k.pos,e.spikeDistance=x(k)*h/c,e.xSpike=i.c2p(k.pos,!0),e}function kV(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=[],u=AV(e,r,t,a);if(!u)return[];var f=u.index,c=n[f],h=c.hi||l.hoverinfo,d=h.split("+"),p=h==="all",m=p||d.indexOf("y")!==-1;if(!m)return[];for(var y=["high","open","close","low"],b={},_=0;_"+o.labels[w]+Kb.hoverLabelText(i,x,l.yhoverformat)):(k=D1e.extendFlat({},u),k.y0=k.y1=M,k.yLabelVal=x,k.yLabel=o.labels[w]+Kb.hoverLabelText(i,x,l.yhoverformat),k.name="",s.push(k),b[x]=k)}return s}function qV(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=AV(e,r,t,a);if(!s)return[];var u=s.index,f=n[u],c=s.index=f.i,h=f.dir;function d(x){return o.labels[x]+Kb.hoverLabelText(i,l[x][c],l.yhoverformat)}var p=f.hi||l.hoverinfo,m=p.split("+"),y=p==="all",b=y||m.indexOf("y")!==-1,_=y||m.indexOf("text")!==-1,w=b?[d("open"),d("high"),d("low"),d("close")+" "+R1e[h]]:[];return _&&P1e(f,l,w),s.extraText=w.join("
"),s.y0=s.y1=i.c2p(f.yc,!0),[s]}SV.exports={hoverPoints:z1e,hoverSplit:kV,hoverOnPoints:qV}});var jb=B((J4e,CV)=>{"use strict";CV.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o,s=a[0].t.bPos||0;if(t===!1)for(o=0;o{"use strict";LV.exports={moduleType:"trace",name:"ohlc",basePlotModule:gl(),categories:["cartesian","svg","showLegend"],meta:{},attributes:Nm(),supplyDefaults:mV(),calc:Jb().calc,plot:_V(),style:TV(),hoverPoints:Qb().hoverPoints,selectPoints:jb()}});var PV=B((K4e,EV)=>{"use strict";EV.exports=DV()});var IV=B((Q4e,FV)=>{"use strict";var N1e=U3(),ti=_i(),RV=Tl(),F1e=Nn(),zV=pi().axisHoverFormat,I1e=ha().hovertemplateAttrs,Sl=mt().extendFlat,jf=ti.marker,NV=jf.line;FV.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:ti.xperiod,yperiod:ti.yperiod,xperiod0:ti.xperiod0,yperiod0:ti.yperiod0,xperiodalignment:ti.xperiodalignment,yperiodalignment:ti.yperiodalignment,xhoverformat:zV("x"),yhoverformat:zV("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Sl({},jf.symbol,{arrayOk:!1,editType:"plot"}),opacity:Sl({},jf.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Sl({},jf.angle,{arrayOk:!1,editType:"calc"}),size:Sl({},jf.size,{arrayOk:!1,editType:"calc"}),color:Sl({},jf.color,{arrayOk:!1,editType:"style"}),line:{color:Sl({},NV.color,{arrayOk:!1,dflt:F1e.defaultLine,editType:"style"}),width:Sl({},NV.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:N1e(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:RV.offsetgroup,alignmentgroup:RV.alignmentgroup,selected:{marker:ti.selected.marker,editType:"style"},unselected:{marker:ti.unselected.marker,editType:"style"},text:Sl({},ti.text,{}),hovertext:Sl({},ti.hovertext,{}),hovertemplate:I1e({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:ti.zorder}});var r_=B((j4e,BV)=>{"use strict";var e_=Pe().extendFlat,HV=pi().axisHoverFormat,Dn=Nm(),ec=IV();function OV(e){return{line:{color:e_({},ec.line.color,{dflt:e}),width:ec.line.width,editType:"style"},fillcolor:ec.fillcolor,editType:"style"}}BV.exports={xperiod:Dn.xperiod,xperiod0:Dn.xperiod0,xperiodalignment:Dn.xperiodalignment,xhoverformat:HV("x"),yhoverformat:HV("y"),x:Dn.x,open:Dn.open,high:Dn.high,low:Dn.low,close:Dn.close,line:{width:e_({},ec.line.width,{}),editType:"style"},increasing:OV(Dn.increasing.line.color.dflt),decreasing:OV(Dn.decreasing.line.color.dflt),text:Dn.text,hovertext:Dn.hovertext,whiskerwidth:e_({},ec.whiskerwidth,{dflt:0}),hoverlabel:Dn.hoverlabel,zorder:ec.zorder}});var t_=B((e6e,YV)=>{"use strict";YV.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var UV=B((r6e,GV)=>{"use strict";var H1e=yr(),O1e=Pe(),B1e=t_();function VV(e,r,t,a,n){for(var i=n+"Layout",l=!1,o=0;o{"use strict";var WV=Jr(),V1e=Pe(),G1e=ys().getAxisGroup,XV=["v","h"];function U1e(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,_=1-i[e+"gap"],w=1-i[e+"groupgap"];for(s=0;s0;if(A==="positive"?(O=C*(k?1:.5),$=Z,V=$=E):A==="negative"?(O=$=E,V=C*(k?1:.5),te=Z):(O=V=C,$=te=Z),ve){var Ae=x.pointpos,se=x.jitter,be=x.marker.size/2,U=0;Ae+se>=0&&(U=Z*(Ae+se),U>O?(qe=!0,he=be,le=U):U>$&&(he=be,le=O)),U<=O&&(le=O);var j=0;Ae-se<=0&&(j=-Z*(Ae-se),j>V?(qe=!0,Q=be,fe=j):j>te&&(Q=be,fe=V)),j<=V&&(fe=V)}else le=O,fe=V;var X=new Array(f.length);for(u=0;u{"use strict";var W1e=Pe(),X1e=xr(),Z1e=Zb(),J1e=_s(),$1e=r_();QV.exports=function(r,t,a,n){function i(o,s){return W1e.coerce(r,t,$1e,o,s)}var l=Z1e(r,t,i,n);if(!l){t.visible=!1;return}J1e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),KV(r,t,i,"increasing"),KV(r,t,i,"decreasing"),i("text"),i("hovertext"),i("whiskerwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function KV(e,r,t,a){var n=t(a+".line.color");t(a+".line.width",r.line.width),t(a+".fillcolor",X1e.addOpacity(n,.5))}});var aG=B((n6e,tG)=>{"use strict";var eG=Pe(),rG=Jr(),K1e=ws(),Q1e=Jb().calcCommon;tG.exports=function(e,r){var t=e._fullLayout,a=rG.getFromId(e,r.xaxis),n=rG.getFromId(e,r.yaxis),i=a.makeCalcdata(r,"x"),l=K1e(r,a,"x",i).vals,o=Q1e(e,r,i,l,n,j1e);return o.length?(eG.extendFlat(o[0].t,{num:t._numBoxes,dPos:eG.distinctVals(l).minDiff/2,posLetter:"x",valLetter:"y"}),t._numBoxes++,o):[{t:{empty:!0}}]};function j1e(e,r,t,a){return{min:t,q1:Math.min(e,a),med:a,q3:Math.max(e,a),max:r}}});var uG=B((i6e,sG)=>{"use strict";var rc=kr(),Zs=Pe(),epe=Yr(),nG=5,rpe=.01;function tpe(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,l=r.yaxis;Zs.makeTraceGroups(a,t,"trace boxes").each(function(o){var s=rc.select(this),u=o[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var h,d;c.orientation==="h"?(h=l,d=i):(h=i,d=l),iG(s,{pos:h,val:d},c,f,n),lG(s,{x:i,y:l},c,f),oG(s,{pos:h,val:d},c,f)})}function iG(e,r,t,a,n){var i=t.orientation==="h",l=r.val,o=r.pos,s=!!o.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,h=t.whiskerwidth||0,d=t.showwhiskers!==!1,p=t.notched||!1,m=p?1-2*t.notchwidth:1,y,b;Array.isArray(a.bdPos)?(y=a.bdPos[0],b=a.bdPos[1]):(y=a.bdPos,b=a.bdPos);var _=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Zs.identity:[]);_.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),_.exit().remove(),_.each(function(w){if(w.empty)return rc.select(this).attr("d","M0,0Z");var x=o.c2l(w.pos+u,!0),M=o.l2p(x-y)+c,k=o.l2p(x+b)+c,A=s?(M+k)/2:o.l2p(x)+c,C=t.whiskerwidth,D=s?M*C+(1-C)*A:o.l2p(x-f)+c,E=s?k*C+(1-C)*A:o.l2p(x+f)+c,R=o.l2p(x-y*m)+c,N=o.l2p(x+b*m)+c,I=t.sizemode==="sd",H=l.c2p(I?w.mean-w.sd:w.q1,!0),G=I?l.c2p(w.mean+w.sd,!0):l.c2p(w.q3,!0),W=Zs.constrain(I?l.c2p(w.mean,!0):l.c2p(w.med,!0),Math.min(H,G)+1,Math.max(H,G)-1),Y=w.lf===void 0||t.boxpoints===!1||I,O=l.c2p(Y?w.min:w.lf,!0),V=l.c2p(Y?w.max:w.uf,!0),Z=l.c2p(w.ln,!0),$=l.c2p(w.un,!0);i?rc.select(this).attr("d","M"+W+","+R+"V"+N+"M"+H+","+M+"V"+k+(p?"H"+Z+"L"+W+","+N+"L"+$+","+k:"")+"H"+G+"V"+M+(p?"H"+$+"L"+W+","+R+"L"+Z+","+M:"")+"Z"+(d?"M"+H+","+A+"H"+O+"M"+G+","+A+"H"+V+(h===0?"":"M"+O+","+D+"V"+E+"M"+V+","+D+"V"+E):"")):rc.select(this).attr("d","M"+R+","+W+"H"+N+"M"+M+","+H+"H"+k+(p?"V"+Z+"L"+N+","+W+"L"+k+","+$:"")+"V"+G+"H"+M+(p?"V"+$+"L"+R+","+W+"L"+M+","+Z:"")+"Z"+(d?"M"+A+","+H+"V"+O+"M"+A+","+G+"V"+V+(h===0?"":"M"+D+","+O+"H"+E+"M"+D+","+V+"H"+E):""))})}function lG(e,r,t,a){var n=r.x,i=r.y,l=a.bdPos,o=a.bPos,s=t.boxpoints||t.points;Zs.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=a,d.trace=t}),h},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(h){var d,p=h.pts2,m=Math.max((h.max-h.min)/10,h.q3-h.q1),y=m*1e-9,b=m*rpe,_=[],w=0,x;if(t.jitter){if(m===0)for(w=1,_=new Array(p.length),d=0;dh.lo&&(E.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(epe.translatePoints,n,i)}function oG(e,r,t,a){var n=r.val,i=r.pos,l=!!i.rangebreaks,o=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var h=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Zs.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var p=i.c2l(d.pos+o,!0),m=i.l2p(p-f)+s,y=i.l2p(p+c)+s,b=l?(m+y)/2:i.l2p(p)+s,_=n.c2p(d.mean,!0),w=n.c2p(d.mean-d.sd,!0),x=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?rc.select(this).attr("d","M"+_+","+m+"V"+y+(u==="sd"?"m0,0L"+w+","+b+"L"+_+","+m+"L"+x+","+b+"Z":"")):rc.select(this).attr("d","M"+m+","+_+"H"+y+(u==="sd"?"m0,0L"+b+","+w+"L"+m+","+_+"L"+b+","+x+"Z":""))})}sG.exports={plot:tpe,plotBoxAndWhiskers:iG,plotPoints:lG,plotBoxMean:oG}});var cG=B((l6e,fG)=>{"use strict";var a_=kr(),n_=xr(),i_=Yr();function ape(e,r,t){var a=t||a_.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=a_.select(this),l=n[0].trace,o=l.line.width;function s(c,h,d,p){c.style("stroke-width",h+"px").call(n_.stroke,d).call(n_.fill,p)}var u=i.selectAll("path.box");if(l.type==="candlestick")u.each(function(c){if(!c.empty){var h=a_.select(this),d=l[c.dir];s(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",l.selectedpoints&&!c.selected?.3:1)}});else{s(u,o,l.line.color,l.fillcolor),i.selectAll("path.mean").style({"stroke-width":o,"stroke-dasharray":2*o+"px,"+o+"px"}).call(n_.stroke,l.line.color);var f=i.selectAll("path.point");i_.pointStyle(f,l,e)}})}function npe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?i_.selectedPointStyle(n,a):i_.pointStyle(n,a,e)}fG.exports={style:ape,styleOnSelect:npe}});var hG=B((o6e,vG)=>{"use strict";vG.exports={moduleType:"trace",name:"candlestick",basePlotModule:gl(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:r_(),layoutAttributes:t_(),supplyLayoutDefaults:UV().supplyLayoutDefaults,crossTraceCalc:$V().crossTraceCalc,supplyDefaults:jV(),calc:aG(),plot:uG().plot,layerName:"boxlayer",style:cG().style,hoverPoints:Qb().hoverPoints,selectPoints:jb()}});var pG=B((s6e,dG)=>{"use strict";dG.exports=hG()});var Fa=B((u6e,yG)=>{"use strict";var mG=Object.getOwnPropertySymbols,ipe=Object.prototype.hasOwnProperty,lpe=Object.prototype.propertyIsEnumerable;function ope(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function spe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}yG.exports=spe()?Object.assign:function(e,r){for(var t,a=ope(e),n,i=1;i{var Bm=Fa();function gG(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}Bm(gG.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function l_(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Om(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Bm(l_.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Rr.local.differentCalendars||Rr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Om(Math.abs(this.year()),4)+"-"+Om(this.month(),2)+"-"+Om(this.day(),2)}});function o_(){this.shortYearCutoff="+10"}Bm(o_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new l_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Om(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Rr.local.invalidMonth||Rr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Rr.local.invalidMonth||Rr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lc-1+f.minMonth;)i++,l-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Rr=xG.exports=new gG;Rr.cdate=l_;Rr.baseCalendar=o_;Rr.calendars.gregorian=s_});var bG=B(()=>{var u_=Fa(),ya=Ia();u_(ya.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});ya.local=ya.regionalOptions[""];u_(ya.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});u_(ya.baseCalendar.prototype,{UNIX_EPOCH:ya.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:ya.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw ya.local.invalidFormat||ya.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(x,M){for(var k=1;w+k1},f=function(x,M,k,A){var C=""+M;if(u(x,A))for(;C.length1},_=function(N,I){var H=b(N,I),G=[2,3,H?4:2,H?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],W=new RegExp("^-?\\d{1,"+G+"}"),Y=r.substring(C).match(W);if(!Y)throw(ya.local.missingNumberAt||ya.regionalOptions[""].missingNumberAt).replace(/\{0\}/,C);return C+=Y[0].length,parseInt(Y[0],10)},w=this,x=function(){if(typeof o=="function"){b("m");var N=o.call(w,r.substring(C));return C+=N.length,N}return _("m")},M=function(N,I,H,G){for(var W=b(N,G)?H:I,Y=0;Y-1){h=1,d=p;for(var R=this.daysInMonth(c,h);d>R;R=this.daysInMonth(c,h))h++,d-=R}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(c){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var _G=B(()=>{var ko=Ia(),upe=Fa(),f_=ko.instance();function Ym(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ym.prototype=new ko.baseCalendar;upe(Ym.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(cpe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(vpe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(hpe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw ko.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw ko.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,ko.local.invalidyear),n=So[a-So[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=f_.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=qo[e-qo[0]],a=t>>13,n=a?12:11;if(r>n)throw ko.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,ko.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=ppe(e,i,t,n);return f_.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=f_.fromJD(e),t=dpe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(fpe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(Ym.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),c=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);c!==u&&o.month(c)}return o}});var fpe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,cpe=/^\d?\d[iI]?/m,vpe=/^闰?十?[一二三四五六七八九]?月/m,hpe=/^闰?十?[一二三四五六七八九]?/m;ko.calendars.chinese=Ym;var qo=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],So=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function dpe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=So[n.year-So[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=So[i.year-So[0]];var c=u>>9&4095,h=u>>5&15,d=u&31,p,m=new Date(c,h-1,d),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-m)/(24*3600*1e3));var b=qo[i.year-qo[0]],_;for(_=0;_<13;_++){var w=b&1<<12-_?30:29;if(p>13;return!x||_=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var c;c=l.day-1;var h=qo[l.year-qo[0]],d=h>>13,p;d&&(l.month>d||l.isIntercalary)?p=l.month:p=l.month-1;for(var m=0;m>9&4095,w=b>>5&15,x=b&31,M=new Date(_,w-1,x+c);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var wG=B(()=>{var Js=Ia(),mpe=Fa();function c_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}c_.prototype=new Js.baseCalendar;mpe(c_.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Js.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Js.local.invalidYear||Js.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Js.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Js.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Js.calendars.coptic=c_});var TG=B(()=>{var Cl=Ia(),ype=Fa();function v_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}v_.prototype=new Cl.baseCalendar;ype(v_.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Cl.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Cl.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Cl.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Cl.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Cl.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Cl.local.invalidDate);return{century:gpe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Cl.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var gpe={20:"Fruitbat",21:"Anchovy"};Cl.calendars.discworld=v_});var MG=B(()=>{var $s=Ia(),xpe=Fa();function h_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}h_.prototype=new $s.baseCalendar;xpe(h_.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,$s.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,$s.local.invalidYear||$s.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,$s.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,$s.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});$s.calendars.ethiopian=h_});var AG=B(()=>{var Co=Ia(),bpe=Fa();function d_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}d_.prototype=new Co.baseCalendar;bpe(d_.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Co.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Vm(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Co.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Co.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Co.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Vm(this.daysInYear(e),10)===5?30:r===9&&Vm(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Co.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Co.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function Vm(e,r){return e-r*Math.floor(e/r)}Co.calendars.hebrew=d_});var kG=B(()=>{var q0=Ia(),_pe=Fa();function p_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}p_.prototype=new q0.baseCalendar;_pe(p_.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,q0.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,q0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,q0.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});q0.calendars.islamic=p_});var qG=B(()=>{var S0=Ia(),wpe=Fa();function m_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m_.prototype=new S0.baseCalendar;wpe(m_.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,S0.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,S0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,S0.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});S0.calendars.julian=m_});var CG=B(()=>{var ai=Ia(),Tpe=Fa();function g_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}g_.prototype=new ai.baseCalendar;Tpe(g_.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ai.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ai.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ai.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,ai.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ai.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,ai.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ai.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,ai.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ai.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=y_(e+8+17*20,365);return[Math.floor(r/20)+1,y_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[SG(e+20,20),SG(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,ai.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function y_(e,r){return e-r*Math.floor(e/r)}function SG(e,r){return y_(e-1,r)+1}ai.calendars.mayan=g_});var DG=B(()=>{var Ks=Ia(),Mpe=Fa();function x_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x_.prototype=new Ks.baseCalendar;var LG=Ks.instance("gregorian");Mpe(x_.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ks.local.invalidYear||Ks.regionalOptions[""].invalidYear);return LG.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ks.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ks.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Ks.calendars.nanakshahi=x_});var EG=B(()=>{var Qs=Ia(),Ape=Fa();function b_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b_.prototype=new Qs.baseCalendar;Ape(b_.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Qs.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Qs.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Qs.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Qs.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Qs.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var tc=Ia(),kpe=Fa();function Um(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Gm(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}Um.prototype=new tc.baseCalendar;kpe(Um.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,tc.local.invalidYear);return Gm(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,tc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,tc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Gm(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});tc.calendars.persian=Um;tc.calendars.jalali=Um});var RG=B(()=>{var js=Ia(),qpe=Fa(),Wm=js.instance();function __(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}__.prototype=new js.baseCalendar;qpe(__.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,js.local.invalidYear),t=this._t2gYear(r.year());return Wm.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,js.local.invalidYear),n=this._t2gYear(a.year());return Wm.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,js.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,js.local.invalidDate),n=this._t2gYear(a.year());return Wm.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Wm.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});js.calendars.taiwan=__});var zG=B(()=>{var eu=Ia(),Spe=Fa(),Xm=eu.instance();function w_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}w_.prototype=new eu.baseCalendar;Spe(w_.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,eu.local.invalidYear),t=this._t2gYear(r.year());return Xm.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,eu.local.invalidYear),n=this._t2gYear(a.year());return Xm.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,eu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,eu.local.invalidDate),n=this._t2gYear(a.year());return Xm.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Xm.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});eu.calendars.thai=w_});var NG=B(()=>{var ru=Ia(),Cpe=Fa();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new ru.baseCalendar;Cpe(T_.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ru.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,ru.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Lo[n]-Lo[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,ru.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Lo[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-Lo[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=ru.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=ru.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});ru.calendars.ummalqura=T_;var Lo=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var IG=B((B6e,FG)=>{"use strict";FG.exports=Ia();bG();_G();wG();TG();MG();AG();kG();qG();CG();DG();EG();PG();RG();zG();NG()});var UG=B((Y6e,GG)=>{"use strict";var OG=IG(),C0=Pe(),BG=Mt(),Lpe=BG.EPOCHJD,Dpe=BG.ONEDAY,k_={valType:"enumerated",values:C0.sortObjectKeys(OG.calendars),editType:"calc",dflt:"gregorian"},YG=function(e,r,t,a){var n={};return n[t]=k_,C0.coerce(e,r,n,t,a)},Epe=function(e,r,t,a){for(var n=0;n{"use strict";WG.exports=UG()});var Ipe=B((G6e,JG)=>{var ZG=iF();ZG.register([oI(),KI(),EH(),gO(),lB(),CB(),oV(),PV(),pG(),XG()]);JG.exports=ZG});return Ipe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-geo-assets.js b/dist/plotly-geo-assets.js index 9771400cd62..6d633f46bc8 100644 --- a/dist/plotly-geo-assets.js +++ b/dist/plotly-geo-assets.js @@ -1,5 +1,5 @@ /** -* plotly.js v3.1.1 +* plotly.js v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -149,7 +149,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.1"; + exports.version = "3.1.2"; } }); diff --git a/dist/plotly-geo.js b/dist/plotly-geo.js index cf6dde866f5..4890d9b4081 100644 --- a/dist/plotly-geo.js +++ b/dist/plotly-geo.js @@ -1,5 +1,5 @@ /** -* plotly.js (geo) v3.1.1 +* plotly.js (geo) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -23,7 +23,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.1"; + exports.version = "3.1.2"; } }); @@ -13752,9 +13752,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -21427,7 +21427,7 @@ var Plotly = (() => { }, exponentformat: { valType: "enumerated", - values: ["none", "e", "E", "power", "SI", "B"], + values: ["none", "e", "E", "power", "SI", "B", "SI extended"], dflt: "B", editType: "ticks" }, @@ -25013,7 +25013,7 @@ var Plotly = (() => { var subtitleEnabled = !!subtitleProp; var subtitlePlaceholder = options.subtitlePlaceholder; var subtitle = (cont.title || {}).subtitle || { text: "", font: {} }; - var subtitleTxt = subtitle.text.trim(); + var subtitleTxt = (subtitle.text || "").trim(); var subtitleIsPlaceholder = false; var subtitleOpacity = 1; var subtitleFont = subtitle.font; @@ -25067,7 +25067,7 @@ var Plotly = (() => { var subtitleEl = null; var subtitleClass = titleClass + "-subtitle"; var subtitleElShouldExist = subtitleTxt || editable; - if (subtitleEnabled && subtitleElShouldExist) { + if (subtitleEnabled) { subtitleEl = group.selectAll("text." + subtitleClass).data(subtitleElShouldExist ? [0] : []); subtitleEl.enter().append("text"); subtitleEl.text(subtitleTxt).attr("class", subtitleClass); @@ -25118,7 +25118,7 @@ var Plotly = (() => { shadow: fontShadow, lineposition: fontLineposition }).attr(attributes).call(svgTextUtils.convertToTspans, gd, adjustSubtitlePosition); - if (subtitleEl2) { + if (subtitleEl2 && !subtitleEl2.empty()) { var titleElMathGroup = group.select("." + titleClass + "-math-group"); var titleElBbox2 = titleEl.node().getBBox(); var titleElMathBbox = titleElMathGroup.node() ? titleElMathGroup.node().getBBox() : void 0; @@ -25239,7 +25239,7 @@ var Plotly = (() => { } } el.classed("js-placeholder", titleIsPlaceholder); - if (subtitleEl) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); + if (subtitleEl && !subtitleEl.empty()) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); return group; } module.exports = { @@ -27558,7 +27558,7 @@ var Plotly = (() => { var rangeexp = Math.floor(Math.log(maxend) / Math.LN10 + 0.01); var minexponent = ax.minexponent === void 0 ? 3 : ax.minexponent; if (Math.abs(rangeexp) > minexponent) { - if (isSIFormat(ax.exponentformat) && !beyondSI(rangeexp)) { + if (isSIFormat(ax.exponentformat) && ax.exponentformat !== "SI extended" && !beyondSI(rangeexp) || isSIFormat(ax.exponentformat) && ax.exponentformat === "SI extended" && !beyondSIExtended(rangeexp)) { ax._tickexponent = 3 * Math.round((rangeexp - 1) / 3); } else ax._tickexponent = rangeexp; } @@ -27782,7 +27782,7 @@ var Plotly = (() => { var p = +parts[1]; var absP = Math.abs(p); var exponentFormat = ax.exponentformat; - if (exponentFormat === "power" || isSIFormat(exponentFormat) && beyondSI(p)) { + if (exponentFormat === "power" || isSIFormat(exponentFormat) && exponentFormat !== "SI extended" && beyondSI(p) || isSIFormat(exponentFormat) && exponentFormat === "SI extended" && beyondSIExtended(p)) { out.text = parts[0]; if (absP > 0) out.text += "x10"; if (out.text === "1x10") out.text = "10"; @@ -27898,12 +27898,20 @@ var Plotly = (() => { ]; } var SIPREFIXES = ["f", "p", "n", "\u03BC", "m", "", "k", "M", "G", "T"]; - function isSIFormat(exponentFormat) { - return exponentFormat === "SI" || exponentFormat === "B"; - } + var SIPREFIXES_EXTENDED = ["q", "r", "y", "z", "a", ...SIPREFIXES, "P", "E", "Z", "Y", "R", "Q"]; + var isSIFormat = (exponentFormat) => ["SI", "SI extended", "B"].includes(exponentFormat); function beyondSI(exponent) { return exponent > 14 || exponent < -15; } + function beyondSIExtended(exponent) { + return exponent > 32 || exponent < -30; + } + function shouldSwitchSIToPowerFormat(exponent, exponentFormat) { + if (!isSIFormat(exponentFormat)) return false; + if (exponentFormat === "SI extended" && beyondSIExtended(exponent)) return true; + if (exponentFormat !== "SI extended" && beyondSI(exponent)) return true; + return false; + } function numFormat(v, ax, fmtoverride, hover) { var isNeg = v < 0; var tickRound = ax._tickround; @@ -27951,7 +27959,7 @@ var Plotly = (() => { v = Lib.numSeparate(v, ax._separators, separatethousands); } if (exponent && exponentFormat !== "hide") { - if (isSIFormat(exponentFormat) && beyondSI(exponent)) exponentFormat = "power"; + if (shouldSwitchSIToPowerFormat(exponent, exponentFormat)) exponentFormat = "power"; var signedExponent; if (exponent < 0) signedExponent = MINUS_SIGN + -exponent; else if (exponentFormat !== "power") signedExponent = "+" + exponent; @@ -27963,7 +27971,7 @@ var Plotly = (() => { } else if (exponentFormat === "B" && exponent === 9) { v += "B"; } else if (isSIFormat(exponentFormat)) { - v += SIPREFIXES[exponent / 3 + 5]; + v += exponentFormat === "SI extended" ? SIPREFIXES_EXTENDED[exponent / 3 + 10] : SIPREFIXES[exponent / 3 + 5]; } } if (isNeg) return MINUS_SIGN + v; @@ -30248,9 +30256,11 @@ var Plotly = (() => { return Lib.coerce(traceIn, traceOut, plotsAttrs, attr, dflt); }; var globalFont = layoutOut.font || {}; - var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { overrideDflt: { - size: Math.round(globalFont.size * 1.1) - } }); + var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { + overrideDflt: { + size: Math.round(globalFont.size * 1.1) + } + }); var legendTraceCount = 0; var legendReallyHasATrace = false; var defaultOrder = "normal"; @@ -30397,7 +30407,7 @@ var Plotly = (() => { for (i = 0; i < legends.length; i++) { var legendId = legends[i]; groupDefaults(legendId, layoutIn, layoutOut, allLegendsData); - if (layoutOut[legendId] && layoutOut[legendId].visible) { + if (layoutOut[legendId]) { layoutOut[legendId]._id = legendId; } layoutOut._legends.push(legendId); @@ -36015,7 +36025,7 @@ var Plotly = (() => { } } function setClipPath(shapePath, gd, shapeOptions) { - var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][1-9]* *domain/g, ""); + var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][0-9]* *domain/g, ""); Drawing.setClipUrl( shapePath, clipAxes ? "clip" + gd._fullLayout._uid + clipAxes : null, @@ -43860,7 +43870,6 @@ var Plotly = (() => { "src/plot_api/helpers.js"(exports) { "use strict"; var isNumeric = require_fast_isnumeric(); - var m4FromQuat = require_fromQuat(); var Registry = require_registry(); var Lib = require_lib(); var Plots = require_plots(); @@ -43869,6 +43878,7 @@ var Plotly = (() => { var cleanId = AxisIds.cleanId; var getFromTrace = AxisIds.getFromTrace; var traceIs = Registry.traceIs; + var AX_LETTERS = ["x", "y", "z"]; exports.clearPromiseQueue = function(gd) { if (Array.isArray(gd._promises) && gd._promises.length > 0) { Lib.log("Clearing previous rejected promises from queue."); @@ -44035,12 +44045,7 @@ var Plotly = (() => { var increasingName = cleanFinanceDir(trace.increasing); var decreasingName = cleanFinanceDir(trace.decreasing); if (increasingName !== false && decreasingName !== false) { - var newName = commonPrefix( - increasingName, - decreasingName, - increasingShowlegend, - decreasingShowlegend - ); + var newName = commonPrefix(increasingName, decreasingName, increasingShowlegend, decreasingShowlegend); if (newName) trace.name = newName; } else if ((increasingName || decreasingName) && !trace.name) { trace.name = increasingName || decreasingName; @@ -44170,12 +44175,11 @@ var Plotly = (() => { } return false; }; - var axLetters = ["x", "y", "z"]; exports.clearAxisTypes = function(gd, traces, layoutUpdate) { for (var i = 0; i < traces.length; i++) { var trace = gd._fullData[i]; for (var j = 0; j < 3; j++) { - var ax = getFromTrace(gd, trace, axLetters[j]); + var ax = getFromTrace(gd, trace, AX_LETTERS[j]); if (ax && ax.type !== "log") { var axAttr = ax._name; var sceneName = ax._id.substr(1); @@ -44191,6 +44195,35 @@ var Plotly = (() => { } } }; + var collectionsAreEqual = (collection1, collection2) => { + const isArrayOrObject = (...vals) => vals.every((v) => Lib.isPlainObject(v)) || vals.every((v) => Array.isArray(v)); + if ([collection1, collection2].every((a) => Array.isArray(a))) { + if (collection1.length !== collection2.length) return false; + for (let i = 0; i < collection1.length; i++) { + const oldVal = collection1[i]; + const newVal = collection2[i]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } else if ([collection1, collection2].every((a) => Lib.isPlainObject(a))) { + if (Object.keys(collection1).length !== Object.keys(collection2).length) return false; + for (const k in collection1) { + if (k.startsWith("_")) continue; + const oldVal = collection1[k]; + const newVal = collection2[k]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } + return false; + }; + exports.collectionsAreEqual = collectionsAreEqual; } }); @@ -44298,21 +44331,28 @@ var Plotly = (() => { } } if (!fullLayout._glcanvas && fullLayout._has("gl")) { - fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data([{ - key: "contextLayer", - context: true, - pick: false - }, { - key: "focusLayer", - context: false, - pick: false - }, { - key: "pickLayer", - context: false, - pick: true - }], function(d) { - return d.key; - }); + fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data( + [ + { + key: "contextLayer", + context: true, + pick: false + }, + { + key: "focusLayer", + context: false, + pick: false + }, + { + key: "pickLayer", + context: false, + pick: true + } + ], + function(d) { + return d.key; + } + ); fullLayout._glcanvas.enter().append("canvas").attr("class", function(d) { return "gl-canvas gl-canvas-" + d.key.replace("Layer", ""); }).style({ @@ -44370,21 +44410,21 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([ - marginPushers, - subroutines.layoutStyles - ], gd); + return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); } function positionAndAutorange() { if (!recalc) { doAutoRangeAndConstraints(); return; } - return Lib.syncOrAsync([ - Registry.getComponentMethod("shapes", "calcAutorange"), - Registry.getComponentMethod("annotations", "calcAutorange"), - doAutoRangeAndConstraints - ], gd); + return Lib.syncOrAsync( + [ + Registry.getComponentMethod("shapes", "calcAutorange"), + Registry.getComponentMethod("annotations", "calcAutorange"), + doAutoRangeAndConstraints + ], + gd + ); } function doAutoRangeAndConstraints() { if (gd._transitioning) return; @@ -44395,28 +44435,19 @@ var Plotly = (() => { function drawAxes() { return Axes.draw(gd, graphWasEmpty ? "" : "redraw"); } - var seq = [ - Plots.previousPromises, - addFrames2, - drawFramework, - marginPushers, - marginPushersAgain - ]; + var seq = [Plots.previousPromises, addFrames2, drawFramework, marginPushers, marginPushersAgain]; if (hasCartesian) seq.push(positionAndAutorange); seq.push(subroutines.layoutStyles); if (hasCartesian) { - seq.push( - drawAxes, - function insideTickLabelsAutorange(gd2) { - var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; - if (insideTickLabelsUpdaterange) { - gd2._fullLayout._insideTickLabelsUpdaterange = void 0; - return relayout(gd2, insideTickLabelsUpdaterange).then(function() { - Axes.saveRangeInitial(gd2, true); - }); - } + seq.push(drawAxes, function insideTickLabelsAutorange(gd2) { + var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; + if (insideTickLabelsUpdaterange) { + gd2._fullLayout._insideTickLabelsUpdaterange = void 0; + return relayout(gd2, insideTickLabelsUpdaterange).then(function() { + Axes.saveRangeInitial(gd2, true); + }); } - ); + }); } seq.push( subroutines.drawData, @@ -44622,7 +44653,7 @@ var Plotly = (() => { } for (i = 0; i < traces.length; i++) { value = traces[i]; - if (typeof value !== "object" || (Array.isArray(value) || value === null)) { + if (typeof value !== "object" || Array.isArray(value) || value === null) { throw new Error("all values in traces array must be non-array objects"); } } @@ -44630,9 +44661,7 @@ var Plotly = (() => { newIndices = [newIndices]; } if (typeof newIndices !== "undefined" && newIndices.length !== traces.length) { - throw new Error( - "if indices is specified, traces.length must equal indices.length" - ); + throw new Error("if indices is specified, traces.length must equal indices.length"); } } function assertExtendTracesArgs(gd, update2, indices, maxPoints) { @@ -44652,7 +44681,9 @@ var Plotly = (() => { throw new Error("attribute " + key + " must be an array of length equal to indices array length"); } if (maxPointsIsObject && (!(key in maxPoints) || !Array.isArray(maxPoints[key]) || maxPoints[key].length !== update2[key].length)) { - throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object"); + throw new Error( + "when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object" + ); } } } @@ -44942,18 +44973,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - restyle, - [gd, specs.undoit, specs.traces], - restyle, - [gd, specs.redoit, specs.traces] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, restyle, [gd, specs.undoit, specs.traces], restyle, [gd, specs.redoit, specs.traces]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(); return plotDone.then(function() { @@ -45120,7 +45141,11 @@ var Plotly = (() => { var topOrBottom = orient === "top" || orient === "bottom"; if (finalPart === "thicknessmode") { var thicknorm = topOrBottom ? gs.h : gs.w; - doextra(prefixDot + "thickness", innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), i); + doextra( + prefixDot + "thickness", + innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), + i + ); } else { var lennorm = topOrBottom ? gs.w : gs.h; doextra(prefixDot + "len", innerContFull.len * (newVal === "fraction" ? 1 / lennorm : lennorm), i); @@ -45143,12 +45168,7 @@ var Plotly = (() => { } } undoit[ai][i] = undefinedToNull(oldVal); - var swapAttrs = [ - "swapxy", - "swapxyaxes", - "orientation", - "orientationaxes" - ]; + var swapAttrs = ["swapxy", "swapxyaxes", "orientation", "orientationaxes"]; if (swapAttrs.indexOf(ai) !== -1) { if (ai === "orientation") { param.set(newVal); @@ -45245,18 +45265,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - relayout, - [gd, specs.undoit], - relayout, - [gd, specs.redoit] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, relayout, [gd, specs.undoit], relayout, [gd, specs.redoit]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45496,7 +45506,7 @@ var Plotly = (() => { } else { if (ai === "dragmode" && (vi === false && vOld !== false || vi !== false && vOld === false)) { flags.plot = true; - } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && (ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select"))) { + } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select")) { flags.plot = true; } else if (valObject) editTypes.update(flags, valObject); else flags.calc = true; @@ -45583,18 +45593,13 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, update, [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], update, [ gd, - update, - [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], - update, - [gd, restyleSpecs.redoit, relayoutSpecs.redoit, restyleSpecs.traces] - ); + restyleSpecs.redoit, + relayoutSpecs.redoit, + restyleSpecs.traces + ]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45816,10 +45821,10 @@ var Plotly = (() => { } var configChanged = false; if (config) { - var oldConfig = Lib.extendDeep({}, gd._context); + const oldConfig = Lib.extendDeepAll({}, gd._context); gd._context = void 0; setPlotContext(gd, config); - configChanged = diffConfig(oldConfig, gd._context); + configChanged = !helpers.collectionsAreEqual(oldConfig, gd._context); } if (configChanged) { const eventListeners = gd._ev.eventNames().map((name2) => [name2, gd._ev.listeners(name2)]); @@ -45903,11 +45908,7 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); } @@ -46124,38 +46125,6 @@ var Plotly = (() => { } } } - function diffConfig(oldConfig, newConfig) { - var key; - for (key in oldConfig) { - if (key.charAt(0) === "_") continue; - var oldVal = oldConfig[key]; - var newVal = newConfig[key]; - if (oldVal !== newVal) { - if (Lib.isPlainObject(oldVal) && Lib.isPlainObject(newVal)) { - if (diffConfig(oldVal, newVal)) { - return true; - } - } else if (Array.isArray(oldVal) && Array.isArray(newVal)) { - if (oldVal.length !== newVal.length) { - return true; - } - for (var i = 0; i < oldVal.length; i++) { - if (oldVal[i] !== newVal[i]) { - if (Lib.isPlainObject(oldVal[i]) && Lib.isPlainObject(newVal[i])) { - if (diffConfig(oldVal[i], newVal[i])) { - return true; - } - } else { - return true; - } - } - } - } else { - return true; - } - } - } - } function animate(gd, frameOrGroupNameOrFrameList, animationOpts) { gd = Lib.getGraphDiv(gd); if (!Lib.isPlotDiv(gd)) { @@ -46424,9 +46393,13 @@ var Plotly = (() => { var collisionPresent = _frameHash[name] || _frameHashLocal[name]; if (name && newName && typeof newName === "number" && collisionPresent && numericNameWarningCount < numericNameWarningCountLimit) { numericNameWarningCount++; - Lib.warn('addFrames: overwriting frame "' + (_frameHash[name] || _frameHashLocal[name]).name + '" with a frame whose name of type "number" also equates to "' + name + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'); + Lib.warn( + 'addFrames: overwriting frame "' + (_frameHash[name] || _frameHashLocal[name]).name + '" with a frame whose name of type "number" also equates to "' + name + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.' + ); if (numericNameWarningCount === numericNameWarningCountLimit) { - Lib.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed."); + Lib.warn( + "addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed." + ); } } _frameHashLocal[lookupName] = { name: lookupName }; @@ -46446,7 +46419,9 @@ var Plotly = (() => { for (i = insertions.length - 1; i >= 0; i--) { frame = insertions[i].frame; if (typeof frame.name === "number") { - Lib.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"); + Lib.warn( + "Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings" + ); } if (!frame.name) { while (_frameHash[frame.name = "frame " + gd._transitionData._counter++]) ; @@ -56485,7 +56460,7 @@ var Plotly = (() => { if (axisOpts.side === "bottom") { Titles.draw(gd, axisOpts._id + "title", { propContainer: axisOpts, - propName: axisOpts._name + ".title", + propName: axisOpts._name + ".title.text", placeholder: fullLayout._dfltTitle.x, attributes: { x: axisOpts._offset + axisOpts._length / 2, @@ -58308,7 +58283,7 @@ var Plotly = (() => { function drawTitle(titleClass, titleOpts) { var dfltTitleOpts = { propContainer: ax, - propName: opts._propPrefix + "title", + propName: opts._propPrefix + "title.text", traceIndex: opts._traceIndex, _meta: opts._meta, placeholder: fullLayout._dfltTitle.colorbar, diff --git a/dist/plotly-geo.min.js b/dist/plotly-geo.min.js index 7882eea9c95..713ab05edfa 100644 --- a/dist/plotly-geo.min.js +++ b/dist/plotly-geo.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (geo - minified) v3.1.1 +* plotly.js (geo - minified) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,13 +12,13 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var te=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var ed=te(O_=>{"use strict";O_.version="3.1.1"});var Y_=te((U_,rd)=>{(function(r,t,n){t[r]=t[r]||n(),typeof rd!="undefined"&&rd.exports&&(rd.exports=t[r])})("Promise",typeof window!="undefined"?window:U_,function(){"use strict";var r,t,n,a=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(C,x,_,A){return Object.defineProperty(C,x,{value:_,writable:!0,configurable:A!==!1})}}catch(b){r=function(x,_,A){return x[_]=A,x}}n=function(){var C,x,_;function A(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,D){_=new A(M,D),x?x.next=_:C=_,x=_,_=void 0},drain:function(){var M=C;for(C=x=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(b,C){n.add(b,C),t||(t=i(n.drain))}function l(b){var C,x=typeof b;return b!=null&&(x=="object"||x=="function")&&(C=b.then),typeof C=="function"?C:!1}function s(){for(var b=0;b0&&o(s,x))}catch(_){v.call(new d(x),_)}}}function v(b){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=b,C.state=2,C.chain.length>0&&o(s,C))}function h(b,C,x,_){for(var A=0;A{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},n=self.document;function a(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(c){t=function(g){for(var w=g.length,S=new Array(w);w--;)S[w]=g[w];return S}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,S){s.call(this,g,w,S+"")},u.setProperty=function(g,w,S){f.call(this,g,w+"",S)}}e.ascending=v;function v(c,g){return cg?1:c>=g?0:NaN}e.descending=function(c,g){return gc?1:g>=c?0:NaN},e.min=function(c,g){var w=-1,S=c.length,q,E;if(arguments.length===1){for(;++w=E){q=E;break}for(;++wE&&(q=E)}else{for(;++w=E){q=E;break}for(;++wE&&(q=E)}return q},e.max=function(c,g){var w=-1,S=c.length,q,E;if(arguments.length===1){for(;++w=E){q=E;break}for(;++wq&&(q=E)}else{for(;++w=E){q=E;break}for(;++wq&&(q=E)}return q},e.extent=function(c,g){var w=-1,S=c.length,q,E,V;if(arguments.length===1){for(;++w=E){q=V=E;break}for(;++wE&&(q=E),V=E){q=V=E;break}for(;++wE&&(q=E),V1)return V/(j-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(g,w,S,q){for(arguments.length<3&&(S=0),arguments.length<4&&(q=g.length);S>>1;c(g[E],w)<0?S=E+1:q=E}return S},right:function(g,w,S,q){for(arguments.length<3&&(S=0),arguments.length<4&&(q=g.length);S>>1;c(g[E],w)>0?q=E:S=E+1}return S}}}var p=m(v);e.bisectLeft=p.left,e.bisect=e.bisectRight=p.right,e.bisector=function(c){return m(c.length===1?function(g,w){return v(c(g),w)}:c)},e.shuffle=function(c,g,w){(S=arguments.length)<3&&(w=c.length,S<2&&(g=0));for(var S=w-g,q,E;S;)E=Math.random()*S--|0,q=c[S+g],c[S+g]=c[E+g],c[E+g]=q;return c},e.permute=function(c,g){for(var w=g.length,S=new Array(w);w--;)S[w]=c[g[w]];return S},e.pairs=function(c){for(var g=0,w=c.length-1,S,q=c[0],E=new Array(w<0?0:w);g=0;)for(V=c[g],w=V.length;--w>=0;)E[--q]=V[w];return E};var b=Math.abs;e.range=function(c,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=c,c=0)),(g-c)/w===1/0)throw new Error("infinite range");var S=[],q=C(b(w)),E=-1,V;if(c*=q,g*=q,w*=q,w<0)for(;(V=c+w*++E)>g;)S.push(V/q);else for(;(V=c+w*++E)=g.length)return q?q.call(c,j):S?j.sort(S):j;for(var ie=-1,ge=j.length,me=g[ae++],ze,Ve,_e,Ce=new _,Ee;++ie=g.length)return N;var ae=[],ie=w[j++];return N.forEach(function(ge,me){ae.push({key:ge,values:V(me,j)})}),ie?ae.sort(function(ge,me){return ie(ge.key,me.key)}):ae}return c.map=function(N,j){return E(j,N,0)},c.entries=function(N){return V(E(e.map,N,0),0)},c.key=function(N){return g.push(N),c},c.sortKeys=function(N){return w[g.length-1]=N,c},c.sortValues=function(N){return S=N,c},c.rollup=function(N){return q=N,c},c},e.set=function(c){var g=new X;if(c)for(var w=0,S=c.length;w=0&&(S=c.slice(w+1),c=c.slice(0,w)),c)return arguments.length<2?this[c].on(S):this[c].on(S,g);if(arguments.length===2){if(g==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(S,null);return this}};function he(c){var g=[],w=new _;function S(){for(var q=g,E=-1,V=q.length,N;++E=0&&(w=c.slice(0,g))!=="xmlns"&&(c=c.slice(g+1)),ke.hasOwnProperty(w)?{space:ke[w],local:c}:c}},pe.attr=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node();return c=e.ns.qualify(c),c.local?w.getAttributeNS(c.space,c.local):w.getAttribute(c)}for(g in c)this.each(Oe(g,c[g]));return this}return this.each(Oe(c,g))};function Oe(c,g){c=e.ns.qualify(c);function w(){this.removeAttribute(c)}function S(){this.removeAttributeNS(c.space,c.local)}function q(){this.setAttribute(c,g)}function E(){this.setAttributeNS(c.space,c.local,g)}function V(){var j=g.apply(this,arguments);j==null?this.removeAttribute(c):this.setAttribute(c,j)}function N(){var j=g.apply(this,arguments);j==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,j)}return g==null?c.local?S:w:typeof g=="function"?c.local?N:V:c.local?E:q}function Ie(c){return c.trim().replace(/\s+/g," ")}pe.classed=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node(),S=(c=or(c)).length,q=-1;if(g=w.classList){for(;++q=0;)(E=w[S])&&(q&&q!==E.nextSibling&&q.parentNode.insertBefore(E,q),q=E);return this},pe.sort=function(c){c=Ye.apply(this,arguments);for(var g=-1,w=this.length;++g=g&&(g=q+1);!(j=V[g])&&++g0&&(c=c.slice(0,q));var V=hr.get(c);V&&(c=V,E=mr);function N(){var ie=this[S];ie&&(this.removeEventListener(c,ie,ie.$),delete this[S])}function j(){var ie=E(g,t(arguments));N.call(this),this.addEventListener(c,this[S]=ie,ie.$=w),ie._=g}function ae(){var ie=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),ge;for(var me in this)if(ge=me.match(ie)){var ze=this[me];this.removeEventListener(ge[1],ze,ze.$),delete this[me]}}return q?g?j:N:g?ee:ae}var hr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&hr.forEach(function(c){"on"+c in n&&hr.remove(c)});function wr(c,g){return function(w){var S=e.event;e.event=w,g[0]=this.__data__;try{c.apply(this,g)}finally{e.event=S}}}function mr(c,g){var w=wr(c,g);return function(S){var q=this,E=S.relatedTarget;(!E||E!==q&&!(E.compareDocumentPosition(q)&8))&&w.call(q,S)}}var Tr,Dr=0;function Or(c){var g=".dragsuppress-"+ ++Dr,w="click"+g,S=e.select(i(c)).on("touchmove"+g,De).on("dragstart"+g,De).on("selectstart"+g,De);if(Tr==null&&(Tr="onselectstart"in c?!1:ne(c.style,"userSelect")),Tr){var q=a(c).style,E=q[Tr];q[Tr]="none"}return function(V){if(S.on(g,null),Tr&&(q[Tr]=E),V){var N=function(){S.on(w,null)};S.on(w,function(){De(),N()},!0),setTimeout(N,0)}}}e.mouse=function(c){return ar(c,Ne())};var Cr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ar(c,g){g.changedTouches&&(g=g.changedTouches[0]);var w=c.ownerSVGElement||c;if(w.createSVGPoint){var S=w.createSVGPoint();if(Cr<0){var q=i(c);if(q.scrollX||q.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var E=w[0][0].getScreenCTM();Cr=!(E.f||E.e),w.remove()}}return Cr?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(c.getScreenCTM().inverse()),[S.x,S.y]}var V=c.getBoundingClientRect();return[g.clientX-V.left-c.clientLeft,g.clientY-V.top-c.clientTop]}e.touch=function(c,g,w){if(arguments.length<3&&(w=g,g=Ne().changedTouches),g){for(var S=0,q=g.length,E;S0?1:c<0?-1:0}function Ht(c,g,w){return(g[0]-c[0])*(w[1]-c[1])-(g[1]-c[1])*(w[0]-c[0])}function An(c){return c>1?0:c<-1?Ze:Math.acos(c)}function Tn(c){return c>1?Pr:c<-1?-Pr:Math.asin(c)}function cn(c){return((c=Math.exp(c))-1/c)/2}function Ft(c){return((c=Math.exp(c))+1/c)/2}function jt(c){return((c=Math.exp(2*c))-1)/(c+1)}function en(c){return(c=Math.sin(c/2))*c}var Jt=Math.SQRT2,aa=2,rt=4;e.interpolateZoom=function(c,g){var w=c[0],S=c[1],q=c[2],E=g[0],V=g[1],N=g[2],j=E-w,ae=V-S,ie=j*j+ae*ae,ge,me;if(ie<$e)me=Math.log(N/q)/Jt,ge=function(Ge){return[w+Ge*j,S+Ge*ae,q*Math.exp(Jt*Ge*me)]};else{var ze=Math.sqrt(ie),Ve=(N*N-q*q+rt*ie)/(2*q*aa*ze),_e=(N*N-q*q-rt*ie)/(2*N*aa*ze),Ce=Math.log(Math.sqrt(Ve*Ve+1)-Ve),Ee=Math.log(Math.sqrt(_e*_e+1)-_e);me=(Ee-Ce)/Jt,ge=function(Ge){var We=Ge*me,Re=Ft(Ce),br=q/(aa*ze)*(Re*jt(Jt*We+Ce)-cn(Ce));return[w+br*j,S+br*ae,q*Re/Ft(Jt*We+Ce)]}}return ge.duration=me*1e3,ge},e.behavior.zoom=function(){var c={x:0,y:0,k:1},g,w,S,q=[960,500],E=rn,V=250,N=0,j="mousedown.zoom",ae="mousemove.zoom",ie="mouseup.zoom",ge,me="touchstart.zoom",ze,Ve=Fe(We,"zoomstart","zoom","zoomend"),_e,Ce,Ee,Ge;dn||(dn="onwheel"in n?(St=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in n?(St=function(){return e.event.wheelDelta},"mousewheel"):(St=function(){return-e.event.detail},"MozMousePixelScroll"));function We(Fr){Fr.on(j,ht).on(dn+".zoom",Xn).on("dblclick.zoom",sn).on(me,Kt)}We.event=function(Fr){Fr.each(function(){var _t=Ve.of(this,arguments),wt=c;ma?e.select(this).transition().each("start.zoom",function(){c=this.__chart__||{x:0,y:0,k:1},$r(_t)}).tween("zoom:zoom",function(){var Qt=q[0],In=q[1],oa=w?w[0]:Qt/2,Da=w?w[1]:In/2,ja=e.interpolateZoom([(oa-c.x)/c.k,(Da-c.y)/c.k,Qt/c.k],[(oa-wt.x)/wt.k,(Da-wt.y)/wt.k,Qt/wt.k]);return function(fi){var Ja=ja(fi),ki=Qt/Ja[2];this.__chart__=c={x:oa-Ja[0]*ki,y:Da-Ja[1]*ki,k:ki},bt(_t)}}).each("interrupt.zoom",function(){Qr(_t)}).each("end.zoom",function(){Qr(_t)}):(this.__chart__=c,$r(_t),bt(_t),Qr(_t))})},We.translate=function(Fr){return arguments.length?(c={x:+Fr[0],y:+Fr[1],k:c.k},Jr(),We):[c.x,c.y]},We.scale=function(Fr){return arguments.length?(c={x:c.x,y:c.y,k:null},Yr(+Fr),Jr(),We):c.k},We.scaleExtent=function(Fr){return arguments.length?(E=Fr==null?rn:[+Fr[0],+Fr[1]],We):E},We.center=function(Fr){return arguments.length?(S=Fr&&[+Fr[0],+Fr[1]],We):S},We.size=function(Fr){return arguments.length?(q=Fr&&[+Fr[0],+Fr[1]],We):q},We.duration=function(Fr){return arguments.length?(V=+Fr,We):V},We.x=function(Fr){return arguments.length?(Ce=Fr,_e=Fr.copy(),c={x:0,y:0,k:1},We):Ce},We.y=function(Fr){return arguments.length?(Ge=Fr,Ee=Fr.copy(),c={x:0,y:0,k:1},We):Ge};function Re(Fr){return[(Fr[0]-c.x)/c.k,(Fr[1]-c.y)/c.k]}function br(Fr){return[Fr[0]*c.k+c.x,Fr[1]*c.k+c.y]}function Yr(Fr){c.k=Math.max(E[0],Math.min(E[1],Fr))}function Wr(Fr,_t){_t=br(_t),c.x+=Fr[0]-_t[0],c.y+=Fr[1]-_t[1]}function Vr(Fr,_t,wt,Qt){Fr.__chart__={x:c.x,y:c.y,k:c.k},Yr(Math.pow(2,Qt)),Wr(w=_t,wt),Fr=e.select(Fr),V>0&&(Fr=Fr.transition().duration(V)),Fr.call(We.event)}function Jr(){Ce&&Ce.domain(_e.range().map(function(Fr){return(Fr-c.x)/c.k}).map(_e.invert)),Ge&&Ge.domain(Ee.range().map(function(Fr){return(Fr-c.y)/c.k}).map(Ee.invert))}function $r(Fr){N++||Fr({type:"zoomstart"})}function bt(Fr){Jr(),Fr({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function Qr(Fr){--N||(Fr({type:"zoomend"}),w=null)}function ht(){var Fr=this,_t=Ve.of(Fr,arguments),wt=0,Qt=e.select(i(Fr)).on(ae,Da).on(ie,ja),In=Re(e.mouse(Fr)),oa=Or(Fr);vt.call(Fr),$r(_t);function Da(){wt=1,Wr(e.mouse(Fr),In),bt(_t)}function ja(){Qt.on(ae,null).on(ie,null),oa(wt),Qr(_t)}}function Kt(){var Fr=this,_t=Ve.of(Fr,arguments),wt={},Qt=0,In,oa=".zoom-"+e.event.changedTouches[0].identifier,Da="touchmove"+oa,ja="touchend"+oa,fi=[],Ja=e.select(Fr),ki=Or(Fr);Si(),$r(_t),Ja.on(j,null).on(me,Si);function Ha(){var ul=e.touches(Fr);return In=c.k,ul.forEach(function(Ea){Ea.identifier in wt&&(wt[Ea.identifier]=Re(Ea))}),ul}function Si(){var ul=e.event.target;e.select(ul).on(Da,Zf).on(ja,II),fi.push(ul);for(var Ea=e.event.changedTouches,mo=0,jl=Ea.length;mo1){var Xf=yo[0],Du=yo[1],Qh=Xf[0]-Du[0],B_=Xf[1]-Du[1];Qt=Qh*Qh+B_*B_}}function Zf(){var ul=e.touches(Fr),Ea,mo,jl,yo;vt.call(Fr);for(var g0=0,Xf=ul.length;g01?1:g,w=w<0?0:w>1?1:w,q=w<=.5?w*(1+g):w+g-w*g,S=2*w-q;function E(N){return N>360?N-=360:N<0&&(N+=360),N<60?S+(q-S)*N/60:N<180?q:N<240?S+(q-S)*(240-N)/60:S}function V(N){return Math.round(E(N)*255)}return new On(V(c+120),V(c),V(c-120))}e.hcl=qn;function qn(c,g,w){return this instanceof qn?(this.h=+c,this.c=+g,void(this.l=+w)):arguments.length<2?c instanceof qn?new qn(c.h,c.c,c.l):c instanceof wn?El(c.l,c.a,c.b):El((c=Ur((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new qn(c,g,w)}var Na=qn.prototype=new pn;Na.brighter=function(c){return new qn(this.h,this.c,Math.min(100,this.l+Bt*(arguments.length?c:1)))},Na.darker=function(c){return new qn(this.h,this.c,Math.max(0,this.l-Bt*(arguments.length?c:1)))},Na.rgb=function(){return pa(this.h,this.c,this.l).rgb()};function pa(c,g,w){return isNaN(c)&&(c=0),isNaN(g)&&(g=0),new wn(w,Math.cos(c*=lt)*g,Math.sin(c)*g)}e.lab=wn;function wn(c,g,w){return this instanceof wn?(this.l=+c,this.a=+g,void(this.b=+w)):arguments.length<2?c instanceof wn?new wn(c.l,c.a,c.b):c instanceof qn?pa(c.h,c.c,c.l):Ur((c=On(c)).r,c.g,c.b):new wn(c,g,w)}var Bt=18,Bn=.95047,pi=1,io=1.08883,gi=wn.prototype=new pn;gi.brighter=function(c){return new wn(Math.min(100,this.l+Bt*(arguments.length?c:1)),this.a,this.b)},gi.darker=function(c){return new wn(Math.max(0,this.l-Bt*(arguments.length?c:1)),this.a,this.b)},gi.rgb=function(){return ms(this.l,this.a,this.b)};function ms(c,g,w){var S=(c+16)/116,q=S+g/500,E=S-w/200;return q=Bo(q)*Bn,S=Bo(S)*pi,E=Bo(E)*io,new On(Oo(3.2404542*q-1.5371385*S-.4985314*E),Oo(-.969266*q+1.8760108*S+.041556*E),Oo(.0556434*q-.2040259*S+1.0572252*E))}function El(c,g,w){return c>0?new qn(Math.atan2(w,g)*xt,Math.sqrt(g*g+w*w),c):new qn(NaN,NaN,c)}function Bo(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function ys(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Oo(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=On;function On(c,g,w){return this instanceof On?(this.r=~~c,this.g=~~g,void(this.b=~~w)):arguments.length<2?c instanceof On?new On(c.r,c.g,c.b):Ct(""+c,On,da):new On(c,g,w)}function mi(c){return new On(c>>16,c>>8&255,c&255)}function Uo(c){return mi(c)+""}var yi=On.prototype=new pn;yi.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var g=this.r,w=this.g,S=this.b,q=30;return!g&&!w&&!S?new On(q,q,q):(g&&g>4,S=S>>4|S,q=j&240,q=q>>4|q,E=j&15,E=E<<4|E):c.length===7&&(S=(j&16711680)>>16,q=(j&65280)>>8,E=j&255)),g(S,q,E))}function Ot(c,g,w){var S=Math.min(c/=255,g/=255,w/=255),q=Math.max(c,g,w),E=q-S,V,N,j=(q+S)/2;return E?(N=j<.5?E/(q+S):E/(2-q-S),c==q?V=(g-w)/E+(g0&&j<1?0:V),new an(V,N,j)}function Ur(c,g,w){c=Wn(c),g=Wn(g),w=Wn(w);var S=ys((.4124564*c+.3575761*g+.1804375*w)/Bn),q=ys((.2126729*c+.7151522*g+.072175*w)/pi),E=ys((.0193339*c+.119192*g+.9503041*w)/io);return wn(116*q-16,500*(S-q),200*(q-E))}function Wn(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function on(c){var g=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(g*2.55):g}var Pn=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Pn.forEach(function(c,g){Pn.set(c,mi(g))});function At(c){return typeof c=="function"?c:function(){return c}}e.functor=At,e.xhr=Wa(G);function Wa(c){return function(g,w,S){return arguments.length===2&&typeof w=="function"&&(S=w,w=null),Yo(g,w,c,S)}}function Yo(c,g,w,S){var q={},E=e.dispatch("beforesend","progress","load","error"),V={},N=new XMLHttpRequest,j=null;self.XDomainRequest&&!("withCredentials"in N)&&/^(http(s)?:)?\/\//.test(c)&&(N=new XDomainRequest),"onload"in N?N.onload=N.onerror=ae:N.onreadystatechange=function(){N.readyState>3&&ae()};function ae(){var ie=N.status,ge;if(!ie&&vu(N)||ie>=200&&ie<300||ie===304){try{ge=w.call(q,N)}catch(me){E.error.call(q,me);return}E.load.call(q,ge)}else E.error.call(q,N)}return N.onprogress=function(ie){var ge=e.event;e.event=ie;try{E.progress.call(q,N)}finally{e.event=ge}},q.header=function(ie,ge){return ie=(ie+"").toLowerCase(),arguments.length<2?V[ie]:(ge==null?delete V[ie]:V[ie]=ge+"",q)},q.mimeType=function(ie){return arguments.length?(g=ie==null?null:ie+"",q):g},q.responseType=function(ie){return arguments.length?(j=ie,q):j},q.response=function(ie){return w=ie,q},["get","post"].forEach(function(ie){q[ie]=function(){return q.send.apply(q,[ie].concat(t(arguments)))}}),q.send=function(ie,ge,me){if(arguments.length===2&&typeof ge=="function"&&(me=ge,ge=null),N.open(ie,c,!0),g!=null&&!("accept"in V)&&(V.accept=g+",*/*"),N.setRequestHeader)for(var ze in V)N.setRequestHeader(ze,V[ze]);return g!=null&&N.overrideMimeType&&N.overrideMimeType(g),j!=null&&(N.responseType=j),me!=null&&q.on("error",me).on("load",function(Ve){me(null,Ve)}),E.beforesend.call(q,N),N.send(ge==null?null:ge),q},q.abort=function(){return N.abort(),q},e.rebind(q,E,"on"),S==null?q:q.get(wf(S))}function wf(c){return c.length===1?function(g,w){c(g==null?w:null)}:c}function vu(c){var g=c.responseType;return g&&g!=="text"?c.response:c.responseText}e.dsv=function(c,g){var w=new RegExp('["'+c+` -]`),S=c.charCodeAt(0);function q(ae,ie,ge){arguments.length<3&&(ge=ie,ie=null);var me=Yo(ae,g,ie==null?E:V(ie),ge);return me.row=function(ze){return arguments.length?me.response((ie=ze)==null?E:V(ze)):ie},me}function E(ae){return q.parse(ae.responseText)}function V(ae){return function(ie){return q.parse(ie.responseText,ae)}}q.parse=function(ae,ie){var ge;return q.parseRows(ae,function(me,ze){if(ge)return ge(me,ze-1);var Ve=function(_e){for(var Ce={},Ee=me.length,Ge=0;Ge=Ve)return me;if(Ge)return Ge=!1,ge;var br=_e;if(ae.charCodeAt(br)===34){for(var Yr=br;Yr++24?(isFinite(g)&&(clearTimeout(hu),hu=setTimeout(bi,g)),Vo=0):(Vo=1,Pl(bi))}e.timer.flush=function(){lo(),Wo()};function lo(){for(var c=Date.now(),g=oo;g;)c>=g.t&&g.c(c-g.t)&&(g.c=null),g=g.n;return c}function Wo(){for(var c,g=oo,w=1/0;g;)g.c?(g.t=0;--N)_e.push(q[ae[ge[N]][2]]);for(N=+ze;N1&&Ht(c[w[S-2]],c[w[S-1]],c[q])<=0;)--S;w[S++]=q}return w.slice(0,S)}function Zc(c,g){return c[0]-g[0]||c[1]-g[1]}e.geom.polygon=function(c){return Le(c,_s),c};var _s=e.geom.polygon.prototype=[];_s.area=function(){for(var c=-1,g=this.length,w,S=this[g-1],q=0;++cSe)N=N.L;else if(V=g-Fv(N,w),V>Se){if(!N.R){S=N;break}N=N.R}else{E>-Se?(S=N.P,q=N):V>-Se?(S=N,q=N.N):S=q=N;break}var j=Ms(c);if(Bi.insert(S,j),!(!S&&!q)){if(S===q){co(S),q=Ms(S.site),Bi.insert(j,q),j.edge=q.edge=Il(S.site,j.site),fo(S),fo(q);return}if(!q){j.edge=Il(S.site,j.site);return}co(S),co(q);var ae=S.site,ie=ae.x,ge=ae.y,me=c.x-ie,ze=c.y-ge,Ve=q.site,_e=Ve.x-ie,Ce=Ve.y-ge,Ee=2*(me*Ce-ze*_e),Ge=me*me+ze*ze,We=_e*_e+Ce*Ce,Re={x:(Ce*Ge-ze*We)/Ee+ie,y:(me*We-_e*Ge)/Ee+ge};Yi(q.edge,ae,Ve,Re),j.edge=Il(ae,c,null,Re),q.edge=Il(c,Ve,null,Re),fo(S),fo(q)}}function Ts(c,g){var w=c.site,S=w.x,q=w.y,E=q-g;if(!E)return S;var V=c.P;if(!V)return-1/0;w=V.site;var N=w.x,j=w.y,ae=j-g;if(!ae)return N;var ie=N-S,ge=1/E-1/ae,me=ie/ae;return ge?(-me+Math.sqrt(me*me-2*ge*(ie*ie/(-2*ae)-j+ae/2+q-E/2)))/ge+S:(S+N)/2}function Fv(c,g){var w=c.N;if(w)return Ts(w,g);var S=c.site;return S.y===g?S.x:1/0}function Xo(c){this.site=c,this.edges=[]}Xo.prototype.prepare=function(){for(var c=this.edges,g=c.length,w;g--;)w=c[g].edge,(!w.b||!w.a)&&c.splice(g,1);return c.sort(Fl),c.length};function kf(c){for(var g=c[0][0],w=c[1][0],S=c[0][1],q=c[1][1],E,V,N,j,ae=uo,ie=ae.length,ge,me,ze,Ve,_e,Ce;ie--;)if(ge=ae[ie],!(!ge||!ge.prepare()))for(ze=ge.edges,Ve=ze.length,me=0;meSe||b(j-V)>Se)&&(ze.splice(me,0,new jo(Hv(ge.site,Ce,b(N-g)Se?{x:g,y:b(E-g)Se?{x:b(V-q)Se?{x:w,y:b(E-w)Se?{x:b(V-S)=-$e)){var me=j*j+ae*ae,ze=ie*ie+Ce*Ce,Ve=(Ce*me-ae*ze)/ge,_e=(j*ze-ie*me)/ge,Ce=_e+N,Ee=Tf.pop()||new Jc;Ee.arc=c,Ee.site=q,Ee.x=Ve+V,Ee.y=Ce+Math.sqrt(Ve*Ve+_e*_e),Ee.cy=Ce,c.circle=Ee;for(var Ge=null,We=Nl._;We;)if(Ee.y0)){if(_e/=ze,ze<0){if(_e0){if(_e>me)return;_e>ge&&(ge=_e)}if(_e=w-N,!(!ze&&_e<0)){if(_e/=ze,ze<0){if(_e>me)return;_e>ge&&(ge=_e)}else if(ze>0){if(_e0)){if(_e/=Ve,Ve<0){if(_e0){if(_e>me)return;_e>ge&&(ge=_e)}if(_e=S-j,!(!Ve&&_e<0)){if(_e/=Ve,Ve<0){if(_e>me)return;_e>ge&&(ge=_e)}else if(Ve>0){if(_e0&&(q.a={x:N+ge*ze,y:j+ge*Ve}),me<1&&(q.b={x:N+me*ze,y:j+me*Ve}),q}}}}}}function _i(c){for(var g=so,w=Sf(c[0][0],c[0][1],c[1][0],c[1][1]),S=g.length,q;S--;)q=g[S],(!Iv(q,c)||!w(q)||b(q.a.x-q.b.x)=E)return;if(ie>me){if(!S)S={x:Ve,y:V};else if(S.y>=N)return;w={x:Ve,y:N}}else{if(!S)S={x:Ve,y:N};else if(S.y1)if(ie>me){if(!S)S={x:(V-Ee)/Ce,y:V};else if(S.y>=N)return;w={x:(N-Ee)/Ce,y:N}}else{if(!S)S={x:(N-Ee)/Ce,y:N};else if(S.y=E)return;w={x:E,y:Ce*E+Ee}}else{if(!S)S={x:E,y:Ce*E+Ee};else if(S.x=ie&&Ee.x<=me&&Ee.y>=ge&&Ee.y<=ze?[[ie,ze],[me,ze],[me,ge],[ie,ge]]:[];Ge.point=j[_e]}),ae}function N(j){return j.map(function(ae,ie){return{x:Math.round(S(ae,ie)/Se)*Se,y:Math.round(q(ae,ie)/Se)*Se,i:ie}})}return V.links=function(j){return Ss(N(j)).edges.filter(function(ae){return ae.l&&ae.r}).map(function(ae){return{source:j[ae.l.i],target:j[ae.r.i]}})},V.triangles=function(j){var ae=[];return Ss(N(j)).cells.forEach(function(ie,ge){for(var me=ie.site,ze=ie.edges.sort(Fl),Ve=-1,_e=ze.length,Ce,Ee,Ge=ze[_e-1].edge,We=Ge.l===me?Ge.r:Ge.l;++Ve<_e;)Ce=Ge,Ee=We,Ge=ze[Ve].edge,We=Ge.l===me?Ge.r:Ge.l,geWe&&(We=ie.x),ie.y>Re&&(Re=ie.y),ze.push(ie.x),Ve.push(ie.y);else for(_e=0;_eWe&&(We=br),Yr>Re&&(Re=Yr),ze.push(br),Ve.push(Yr)}var Wr=We-Ee,Vr=Re-Ge;Wr>Vr?Re=Ge+Wr:We=Ee+Vr;function Jr(Qr,ht,Kt,Xn,sn,Fr,_t,wt){if(!(isNaN(Kt)||isNaN(Xn)))if(Qr.leaf){var Qt=Qr.x,In=Qr.y;if(Qt!=null)if(b(Qt-Kt)+b(In-Xn)<.01)$r(Qr,ht,Kt,Xn,sn,Fr,_t,wt);else{var oa=Qr.point;Qr.x=Qr.y=Qr.point=null,$r(Qr,oa,Qt,In,sn,Fr,_t,wt),$r(Qr,ht,Kt,Xn,sn,Fr,_t,wt)}else Qr.x=Kt,Qr.y=Xn,Qr.point=ht}else $r(Qr,ht,Kt,Xn,sn,Fr,_t,wt)}function $r(Qr,ht,Kt,Xn,sn,Fr,_t,wt){var Qt=(sn+_t)*.5,In=(Fr+wt)*.5,oa=Kt>=Qt,Da=Xn>=In,ja=Da<<1|oa;Qr.leaf=!1,Qr=Qr.nodes[ja]||(Qr.nodes[ja]=mu()),oa?sn=Qt:_t=Qt,Da?Fr=In:wt=In,Jr(Qr,ht,Kt,Xn,sn,Fr,_t,wt)}var bt=mu();if(bt.add=function(Qr){Jr(bt,Qr,+ge(Qr,++_e),+me(Qr,_e),Ee,Ge,We,Re)},bt.visit=function(Qr){oi(Qr,bt,Ee,Ge,We,Re)},bt.find=function(Qr){return yu(bt,Qr[0],Qr[1],Ee,Ge,We,Re)},_e=-1,g==null){for(;++_eE||me>V||ze=br,Vr=w>=Yr,Jr=Vr<<1|Wr,$r=Jr+4;Jr<$r;++Jr)if(ie=Re[Jr&3])switch(Jr&3){case 0:ae(ie,ge,me,br,Yr);break;case 1:ae(ie,br,me,ze,Yr);break;case 2:ae(ie,ge,Yr,br,Ve);break;case 3:ae(ie,br,Yr,ze,Ve);break}}}(c,S,q,E,V),j}e.interpolateRgb=bu;function bu(c,g){c=e.rgb(c),g=e.rgb(g);var w=c.r,S=c.g,q=c.b,E=g.r-w,V=g.g-S,N=g.b-q;return function(j){return"#"+Kr(Math.round(w+E*j))+Kr(Math.round(S+V*j))+Kr(Math.round(q+N*j))}}e.interpolateObject=Fa;function Fa(c,g){var w={},S={},q;for(q in c)q in g?w[q]=Qo(c[q],g[q]):S[q]=c[q];for(q in g)q in c||(S[q]=g[q]);return function(E){for(q in w)S[q]=w[q](E);return S}}e.interpolateNumber=Kn;function Kn(c,g){return c=+c,g=+g,function(w){return c*(1-w)+g*w}}e.interpolateString=Aa;function Aa(c,g){var w=Gi.lastIndex=Ls.lastIndex=0,S,q,E,V=-1,N=[],j=[];for(c=c+"",g=g+"";(S=Gi.exec(c))&&(q=Ls.exec(g));)(E=q.index)>w&&(E=g.slice(w,E),N[V]?N[V]+=E:N[++V]=E),(S=S[0])===(q=q[0])?N[V]?N[V]+=q:N[++V]=q:(N[++V]=null,j.push({i:V,x:Kn(S,q)})),w=Ls.lastIndex;return w=0&&!(S=e.interpolators[w](c,g)););return S}e.interpolators=[function(c,g){var w=typeof g;return(w==="string"?Pn.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?bu:Aa:g instanceof pn?bu:Array.isArray(g)?Ol:w==="object"&&isNaN(g)?Fa:Kn)(c,g)}],e.interpolateArray=Ol;function Ol(c,g){var w=[],S=[],q=c.length,E=g.length,V=Math.min(c.length,g.length),N;for(N=0;N=0?c.slice(0,g):c,S=g>=0?c.slice(g+1):"in";return w=$c.get(w)||Cf,S=Bv.get(S)||G,Ov(S(w.apply(null,r.call(arguments,1))))};function Ov(c){return function(g){return g<=0?0:g>=1?1:c(g)}}function Lf(c){return function(g){return 1-c(1-g)}}function qf(c){return function(g){return .5*(g<.5?c(2*g):2-c(2-2*g))}}function Df(c){return c*c}function Ef(c){return c*c*c}function Kc(c){if(c<=0)return 0;if(c>=1)return 1;var g=c*c,w=g*c;return 4*(c<.5?w:3*(c-g)+w-.75)}function Qc(c){return function(g){return Math.pow(g,c)}}function qs(c){return 1-Math.cos(c*Pr)}function Ds(c){return Math.pow(2,10*(c-1))}function xi(c){return 1-Math.sqrt(1-c*c)}function _u(c,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/qr*Math.asin(1/c):(c=1,w=g/4),function(S){return 1+c*Math.pow(2,-10*S)*Math.sin((S-w)*qr/g)}}function Es(c){return c||(c=1.70158),function(g){return g*g*((c+1)*g-c)}}function xu(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375}e.interpolateHcl=e0;function e0(c,g){c=e.hcl(c),g=e.hcl(g);var w=c.h,S=c.c,q=c.l,E=g.h-w,V=g.c-S,N=g.l-q;return isNaN(V)&&(V=0,S=isNaN(S)?g.c:S),isNaN(E)?(E=0,w=isNaN(w)?g.h:w):E>180?E-=360:E<-180&&(E+=360),function(j){return pa(w+E*j,S+V*j,q+N*j)+""}}e.interpolateHsl=Pf;function Pf(c,g){c=e.hsl(c),g=e.hsl(g);var w=c.h,S=c.s,q=c.l,E=g.h-w,V=g.s-S,N=g.l-q;return isNaN(V)&&(V=0,S=isNaN(S)?g.s:S),isNaN(E)?(E=0,w=isNaN(w)?g.h:w):E>180?E-=360:E<-180&&(E+=360),function(j){return da(w+E*j,S+V*j,q+N*j)+""}}e.interpolateLab=Uv;function Uv(c,g){c=e.lab(c),g=e.lab(g);var w=c.l,S=c.a,q=c.b,E=g.l-w,V=g.a-S,N=g.b-q;return function(j){return ms(w+E*j,S+V*j,q+N*j)+""}}e.interpolateRound=ho;function ho(c,g){return g-=c,function(w){return Math.round(c+g*w)}}e.transform=function(c){var g=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var S=g.transform.baseVal.consolidate()}return new wu(S?S.matrix:Rf)})(c)};function wu(c){var g=[c.a,c.b],w=[c.c,c.d],S=Ps(g),q=Ul(g,w),E=Ps(Rs(w,g,-q))||0;g[0]*w[1]180?g+=360:g-c>180&&(c+=360),S.push({i:w.push(po(w)+"rotate(",null,")")-2,x:Kn(c,g)})):g&&w.push(po(w)+"rotate("+g+")")}function t0(c,g,w,S){c!==g?S.push({i:w.push(po(w)+"skewX(",null,")")-2,x:Kn(c,g)}):g&&w.push(po(w)+"skewX("+g+")")}function Nf(c,g,w,S){if(c[0]!==g[0]||c[1]!==g[1]){var q=w.push(po(w)+"scale(",null,",",null,")");S.push({i:q-4,x:Kn(c[0],g[0])},{i:q-2,x:Kn(c[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(po(w)+"scale("+g+")")}function Mu(c,g){var w=[],S=[];return c=e.transform(c),g=e.transform(g),r0(c.translate,g.translate,w,S),zf(c.rotate,g.rotate,w,S),t0(c.skew,g.skew,w,S),Nf(c.scale,g.scale,w,S),c=g=null,function(q){for(var E=-1,V=S.length,N;++E0?E=Re:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:E=0})):Re>0&&(g.start({type:"start",alpha:E=Re}),w=Rl(c.tick)),c):E},c.start=function(){var Re,br=ze.length,Yr=Ve.length,Wr=S[0],Vr=S[1],Jr,$r;for(Re=0;Re=0;)E.push(ie=ae[j]),ie.parent=N,ie.depth=N.depth+1;w&&(N.value=0),N.children=ae}else w&&(N.value=+w.call(S,N,N.depth)||0),delete N.children;return Ia(q,function(ge){var me,ze;c&&(me=ge.children)&&me.sort(c),w&&(ze=ge.parent)&&(ze.value+=ge.value)}),V}return S.sort=function(q){return arguments.length?(c=q,S):c},S.children=function(q){return arguments.length?(g=q,S):g},S.value=function(q){return arguments.length?(w=q,S):w},S.revalue=function(q){return w&&(Mi(q,function(E){E.children&&(E.value=0)}),Ia(q,function(E){var V;E.children||(E.value=+w.call(S,E,E.depth)||0),(V=E.parent)&&(V.value+=E.value)})),q},S};function Vi(c,g){return e.rebind(c,g,"sort","children","value"),c.nodes=c,c.links=Za,c}function Mi(c,g){for(var w=[c];(c=w.pop())!=null;)if(g(c),(q=c.children)&&(S=q.length))for(var S,q;--S>=0;)w.push(q[S])}function Ia(c,g){for(var w=[c],S=[];(c=w.pop())!=null;)if(S.push(c),(V=c.children)&&(E=V.length))for(var q=-1,E,V;++qq&&(q=N),S.push(N)}for(V=0;VS&&(w=g,S=q);return w}function Is(c){return c.reduce(rl,0)}function rl(c,g){return c+g[1]}e.layout.histogram=function(){var c=!0,g=Number,w=Vl,S=Hs;function q(E,me){for(var N=[],j=E.map(g,this),ae=w.call(this,j,me),ie=S.call(this,ae,j,me),ge,me=-1,ze=j.length,Ve=ie.length-1,_e=c?1:1/ze,Ce;++me0)for(me=-1;++me=ae[0]&&Ce<=ae[1]&&(ge=N[e.bisect(ie,Ce,1,Ve)-1],ge.y+=_e,ge.push(E[me]));return N}return q.value=function(E){return arguments.length?(g=E,q):g},q.range=function(E){return arguments.length?(w=At(E),q):w},q.bins=function(E){return arguments.length?(S=typeof E=="number"?function(V){return tl(V,E)}:At(E),q):S},q.frequency=function(E){return arguments.length?(c=!!E,q):c},q};function Hs(c,g){return tl(c,Math.ceil(Math.log(g.length)/Math.LN2+1))}function tl(c,g){for(var w=-1,S=+c[0],q=(c[1]-S)/g,E=[];++w<=g;)E[w]=q*w+S;return E}function Vl(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(ku),g=0,w=[1,1],S;function q(E,V){var N=c.call(this,E,V),j=N[0],ae=w[0],ie=w[1],ge=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(j.x=j.y=0,Ia(j,function(ze){ze.r=+ge(ze.value)}),Ia(j,f0),g){var me=g*(S?1:Math.max(2*j.r/ae,2*j.r/ie))/2;Ia(j,function(ze){ze.r+=me}),Ia(j,f0),Ia(j,function(ze){ze.r-=me})}return Cu(j,ae/2,ie/2,S?1:1/Math.max(2*j.r/ae,2*j.r/ie)),N}return q.size=function(E){return arguments.length?(w=E,q):w},q.radius=function(E){return arguments.length?(S=E==null||typeof E=="function"?E:+E,q):S},q.padding=function(E){return arguments.length?(g=+E,q):g},Vi(q,c)};function ku(c,g){return c.value-g.value}function Bs(c,g){var w=c._pack_next;c._pack_next=g,g._pack_prev=c,g._pack_next=w,w._pack_prev=g}function u0(c,g){c._pack_next=g,g._pack_prev=c}function Su(c,g){var w=g.x-c.x,S=g.y-c.y,q=c.r+g.r;return .999*q*q>w*w+S*S}function f0(c){if(!(g=c.children)||!(me=g.length))return;var g,w=1/0,S=-1/0,q=1/0,E=-1/0,V,N,j,ae,ie,ge,me;function ze(Re){w=Math.min(Re.x-Re.r,w),S=Math.max(Re.x+Re.r,S),q=Math.min(Re.y-Re.r,q),E=Math.max(Re.y+Re.r,E)}if(g.forEach(c0),V=g[0],V.x=-V.r,V.y=0,ze(V),me>1&&(N=g[1],N.x=N.r,N.y=0,ze(N),me>2))for(j=g[2],Zn(V,N,j),ze(j),Bs(V,j),V._pack_prev=j,Bs(j,N),N=V._pack_next,ae=3;aeCe.x&&(Ce=br),br.depth>Ee.depth&&(Ee=br)});var Ge=g(_e,Ce)/2-_e.x,We=w[0]/(Ce.x+g(Ce,_e)/2+Ge),Re=w[1]/(Ee.depth||1);Mi(ze,function(br){br.x=(br.x+Ge)*We,br.y=br.depth*Re})}return me}function E(ie){for(var ge={A:null,children:[ie]},me=[ge],ze;(ze=me.pop())!=null;)for(var Ve=ze.children,_e,Ce=0,Ee=Ve.length;Ce0&&(Os(H(_e,ie,me),ie,br),Ee+=br,Ge+=br),We+=_e.m,Ee+=ze.m,Re+=Ce.m,Ge+=Ve.m;_e&&!Lu(Ve)&&(Ve.t=_e,Ve.m+=We-Ge),ze&&!Wl(Ce)&&(Ce.t=ze,Ce.m+=Ee-Re,me=ie)}return me}function ae(ie){ie.x*=w[0],ie.y=ie.depth*w[1]}return q.separation=function(ie){return arguments.length?(g=ie,q):g},q.size=function(ie){return arguments.length?(S=(w=ie)==null?ae:null,q):S?null:w},q.nodeSize=function(ie){return arguments.length?(S=(w=ie)==null?null:ae,q):S?w:null},Vi(q,c)};function li(c,g){return c.parent==g.parent?1:2}function Wl(c){var g=c.children;return g.length?g[0]:c.t}function Lu(c){var g=c.children,w;return(w=g.length)?g[w-1]:c.t}function Os(c,g,w){var S=w/(g.i-c.i);g.c-=S,g.s+=w,c.c+=S,g.z+=w,g.m+=w}function Yf(c){for(var g=0,w=0,S=c.children,q=S.length,E;--q>=0;)E=S[q],E.z+=g,E.m+=g,g+=E.s+(w+=E.c)}function H(c,g,w){return c.a.parent===g.parent?c.a:w}e.layout.cluster=function(){var c=e.layout.hierarchy().sort(null).value(null),g=li,w=[1,1],S=!1;function q(E,V){var N=c.call(this,E,V),j=N[0],ae,ie=0;Ia(j,function(_e){var Ce=_e.children;Ce&&Ce.length?(_e.x=ce(Ce),_e.y=J(Ce)):(_e.x=ae?ie+=g(_e,ae):0,_e.y=0,ae=_e)});var ge=oe(j),me=Me(j),ze=ge.x-g(ge,me)/2,Ve=me.x+g(me,ge)/2;return Ia(j,S?function(_e){_e.x=(_e.x-j.x)*w[0],_e.y=(j.y-_e.y)*w[1]}:function(_e){_e.x=(_e.x-ze)/(Ve-ze)*w[0],_e.y=(1-(j.y?_e.y/j.y:1))*w[1]}),N}return q.separation=function(E){return arguments.length?(g=E,q):g},q.size=function(E){return arguments.length?(S=(w=E)==null,q):S?null:w},q.nodeSize=function(E){return arguments.length?(S=(w=E)!=null,q):S?w:null},Vi(q,c)};function J(c){return 1+e.max(c,function(g){return g.y})}function ce(c){return c.reduce(function(g,w){return g+w.x},0)/c.length}function oe(c){var g=c.children;return g&&g.length?oe(g[0]):c}function Me(c){var g=c.children,w;return g&&(w=g.length)?Me(g[w-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),g=Math.round,w=[1,1],S=null,q=Be,E=!1,V,N="squarify",j=.5*(1+Math.sqrt(5));function ae(_e,Ce){for(var Ee=-1,Ge=_e.length,We,Re;++Ee0;)Ge.push(Re=We[Vr-1]),Ge.area+=Re.area,N!=="squarify"||(Yr=me(Ge,Wr))<=br?(We.pop(),br=Yr):(Ge.area-=Ge.pop().area,ze(Ge,Wr,Ee,!1),Wr=Math.min(Ee.dx,Ee.dy),Ge.length=Ge.area=0,br=1/0);Ge.length&&(ze(Ge,Wr,Ee,!0),Ge.length=Ge.area=0),Ce.forEach(ie)}}function ge(_e){var Ce=_e.children;if(Ce&&Ce.length){var Ee=q(_e),Ge=Ce.slice(),We,Re=[];for(ae(Ge,Ee.dx*Ee.dy/_e.value),Re.area=0;We=Ge.pop();)Re.push(We),Re.area+=We.area,We.z!=null&&(ze(Re,We.z?Ee.dx:Ee.dy,Ee,!Ge.length),Re.length=Re.area=0);Ce.forEach(ge)}}function me(_e,Ce){for(var Ee=_e.area,Ge,We=0,Re=1/0,br=-1,Yr=_e.length;++brWe&&(We=Ge));return Ee*=Ee,Ce*=Ce,Ee?Math.max(Ce*We*j/Ee,Ee/(Ce*Re*j)):1/0}function ze(_e,Ce,Ee,Ge){var We=-1,Re=_e.length,br=Ee.x,Yr=Ee.y,Wr=Ce?g(_e.area/Ce):0,Vr;if(Ce==Ee.dx){for((Ge||Wr>Ee.dy)&&(Wr=Ee.dy);++WeEe.dx)&&(Wr=Ee.dx);++We1);return c+g*S*Math.sqrt(-2*Math.log(E)/E)}},logNormal:function(){var c=e.random.normal.apply(e,arguments);return function(){return Math.exp(c())}},bates:function(c){var g=e.random.irwinHall(c);return function(){return g()/c}},irwinHall:function(c){return function(){for(var g=0,w=0;w2?xr:yr,ae=S?If:Ff;return q=j(c,g,ae,w),E=j(g,c,ae,Qo),N}function N(j){return q(j)}return N.invert=function(j){return E(j)},N.domain=function(j){return arguments.length?(c=j.map(Number),V()):c},N.range=function(j){return arguments.length?(g=j,V()):g},N.rangeRound=function(j){return N.range(j).interpolate(ho)},N.clamp=function(j){return arguments.length?(S=j,V()):S},N.interpolate=function(j){return arguments.length?(w=j,V()):w},N.ticks=function(j){return nt(c,j)},N.tickFormat=function(j,ae){return d3_scale_linearTickFormat(c,j,ae)},N.nice=function(j){return jr(c,j),V()},N.copy=function(){return Sr(c,g,w,S)},V()}function et(c,g){return e.rebind(c,g,"range","rangeRound","interpolate","clamp")}function jr(c,g){return Ke(c,vr(tt(c,g)[2])),Ke(c,vr(tt(c,g)[2])),c}function tt(c,g){g==null&&(g=10);var w=nr(c),S=w[1]-w[0],q=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),E=g/S*q;return E<=.15?q*=10:E<=.35?q*=5:E<=.75&&(q*=2),w[0]=Math.ceil(w[0]/q)*q,w[1]=Math.floor(w[1]/q)*q+q*.5,w[2]=q,w}function nt(c,g){return e.range.apply(e,tt(c,g))}var Lr={s:1,g:1,p:1,r:1,e:1};function Br(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function it(c,g){var w=Br(g[2]);return c in Lr?Math.abs(w-Br(Math.max(b(g[0]),b(g[1]))))+ +(c!=="e"):w-(c==="%")*2}e.scale.log=function(){return pt(e.scale.linear().domain([0,1]),10,!0,[1,10])};function pt(c,g,w,S){function q(N){return(w?Math.log(N<0?0:N):-Math.log(N>0?0:-N))/Math.log(g)}function E(N){return w?Math.pow(g,N):-Math.pow(g,-N)}function V(N){return c(q(N))}return V.invert=function(N){return E(c.invert(N))},V.domain=function(N){return arguments.length?(w=N[0]>=0,c.domain((S=N.map(Number)).map(q)),V):S},V.base=function(N){return arguments.length?(g=+N,c.domain(S.map(q)),V):g},V.nice=function(){var N=Ke(S.map(q),w?Math:Vt);return c.domain(N),S=N.map(E),V},V.ticks=function(){var N=nr(S),j=[],ae=N[0],ie=N[1],ge=Math.floor(q(ae)),me=Math.ceil(q(ie)),ze=g%1?2:g;if(isFinite(me-ge)){if(w){for(;ge0;Ve--)j.push(E(ge)*Ve);for(ge=0;j[ge]ie;me--);j=j.slice(ge,me)}return j},V.copy=function(){return pt(c.copy(),g,w,S)},et(V,c)}var Vt={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return tn(e.scale.linear(),1,[0,1])};function tn(c,g,w){var S=Zt(g),q=Zt(1/g);function E(V){return c(S(V))}return E.invert=function(V){return q(c.invert(V))},E.domain=function(V){return arguments.length?(c.domain((w=V.map(Number)).map(S)),E):w},E.ticks=function(V){return nt(w,V)},E.tickFormat=function(V,N){return d3_scale_linearTickFormat(w,V,N)},E.nice=function(V){return E.domain(jr(w,V))},E.exponent=function(V){return arguments.length?(S=Zt(g=V),q=Zt(1/g),c.domain(w.map(S)),E):g},E.copy=function(){return tn(c.copy(),g,w)},et(E,c)}function Zt(c){return function(g){return g<0?-Math.pow(-g,c):Math.pow(g,c)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return gn([],{t:"range",a:[[]]})};function gn(c,g){var w,S,q;function E(N){return S[((w.get(N)||(g.t==="range"?w.set(N,c.push(N)):NaN))-1)%S.length]}function V(N,j){return e.range(c.length).map(function(ae){return N+j*ae})}return E.domain=function(N){if(!arguments.length)return c;c=[],w=new _;for(var j=-1,ae=N.length,ie;++j0?w[E-1]:c[0],Eme?0:1;if(ie=Hr)return j(ie,Ve)+(ae?j(ae,1-Ve):"")+"Z";var _e,Ce,Ee,Ge,We=0,Re=0,br,Yr,Wr,Vr,Jr,$r,bt,Qr,ht=[];if((Ge=(+V.apply(this,arguments)||0)/2)&&(Ee=S===Wi?Math.sqrt(ae*ae+ie*ie):+S.apply(this,arguments),Ve||(Re*=-1),ie&&(Re=Tn(Ee/ie*Math.sin(Ge))),ae&&(We=Tn(Ee/ae*Math.sin(Ge)))),ie){br=ie*Math.cos(ge+Re),Yr=ie*Math.sin(ge+Re),Wr=ie*Math.cos(me-Re),Vr=ie*Math.sin(me-Re);var Kt=Math.abs(me-ge-2*Re)<=Ze?0:1;if(Re&&qu(br,Yr,Wr,Vr)===Ve^Kt){var Xn=(ge+me)/2;br=ie*Math.cos(Xn),Yr=ie*Math.sin(Xn),Wr=Vr=null}}else br=Yr=0;if(ae){Jr=ae*Math.cos(me-We),$r=ae*Math.sin(me-We),bt=ae*Math.cos(ge+We),Qr=ae*Math.sin(ge+We);var sn=Math.abs(ge-me+2*We)<=Ze?0:1;if(We&&qu(Jr,$r,bt,Qr)===1-Ve^sn){var Fr=(ge+me)/2;Jr=ae*Math.cos(Fr),$r=ae*Math.sin(Fr),bt=Qr=null}}else Jr=$r=0;if(ze>Se&&(_e=Math.min(Math.abs(ie-ae)/2,+w.apply(this,arguments)))>.001){Ce=ae0?0:1}function v0(c,g,w,S,q){var E=c[0]-g[0],V=c[1]-g[1],N=(q?S:-S)/Math.sqrt(E*E+V*V),j=N*V,ae=-N*E,ie=c[0]+j,ge=c[1]+ae,me=g[0]+j,ze=g[1]+ae,Ve=(ie+me)/2,_e=(ge+ze)/2,Ce=me-ie,Ee=ze-ge,Ge=Ce*Ce+Ee*Ee,We=w-S,Re=ie*ze-me*ge,br=(Ee<0?-1:1)*Math.sqrt(Math.max(0,We*We*Ge-Re*Re)),Yr=(Re*Ee-Ce*br)/Ge,Wr=(-Re*Ce-Ee*br)/Ge,Vr=(Re*Ee+Ce*br)/Ge,Jr=(-Re*Ce+Ee*br)/Ge,$r=Yr-Ve,bt=Wr-_e,Qr=Vr-Ve,ht=Jr-_e;return $r*$r+bt*bt>Qr*Qr+ht*ht&&(Yr=Vr,Wr=Jr),[[Yr-j,Wr-ae],[Yr*w/We,Wr*w/We]]}function h0(){return!0}function Wh(c){var g=zl,w=bs,S=h0,q=Zi,E=q.key,V=.7;function N(j){var ae=[],ie=[],ge=-1,me=j.length,ze,Ve=At(g),_e=At(w);function Ce(){ae.push("M",q(c(ie),V))}for(;++ge1?c.join("L"):c+"Z"}function Zh(c){return c.join("L")+"Z"}function Xh(c){for(var g=0,w=c.length,S=c[0],q=[S[0],",",S[1]];++g1&&q.push("H",S[0]),q.join("")}function d0(c){for(var g=0,w=c.length,S=c[0],q=[S[0],",",S[1]];++g1){N=g[1],E=c[j],j++,S+="C"+(q[0]+V[0])+","+(q[1]+V[1])+","+(E[0]-N[0])+","+(E[1]-N[1])+","+E[0]+","+E[1];for(var ae=2;ae9&&(E=w*3/Math.sqrt(E),V[N]=E*S,V[N+1]=E*q));for(N=-1;++N<=j;)E=(c[Math.min(j,N+1)][0]-c[Math.max(0,N-1)][0])/(6*(1+V[N]*V[N])),g.push([E||0,V[N]*E||0]);return g}function ue(c){return c.length<3?Zi(c):c[0]+p0(c,Z(c))}e.svg.line.radial=function(){var c=Wh(ve);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function ve(c){for(var g,w=-1,S=c.length,q,E;++wZe)+",1 "+ge}function ae(ie,ge,me,ze){return"Q 0,0 "+ze}return E.radius=function(ie){return arguments.length?(w=At(ie),E):w},E.source=function(ie){return arguments.length?(c=At(ie),E):c},E.target=function(ie){return arguments.length?(g=At(ie),E):g},E.startAngle=function(ie){return arguments.length?(S=At(ie),E):S},E.endAngle=function(ie){return arguments.length?(q=At(ie),E):q},E};function qe(c){return c.radius}e.svg.diagonal=function(){var c=de,g=xe,w=He;function S(q,E){var V=c.call(this,q,E),N=g.call(this,q,E),j=(V.y+N.y)/2,ae=[V,{x:V.x,y:j},{x:N.x,y:j},N];return ae=ae.map(w),"M"+ae[0]+"C"+ae[1]+" "+ae[2]+" "+ae[3]}return S.source=function(q){return arguments.length?(c=At(q),S):c},S.target=function(q){return arguments.length?(g=At(q),S):g},S.projection=function(q){return arguments.length?(w=q,S):w},S};function He(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),g=He,w=c.projection;return c.projection=function(S){return arguments.length?w(er(g=S)):g},c};function er(c){return function(){var g=c.apply(this,arguments),w=g[0],S=g[1]-Pr;return[w*Math.cos(S),w*Math.sin(S)]}}e.svg.symbol=function(){var c=Mr,g=fr;function w(S,q){return(at.get(c.call(this,S,q))||Zr)(g.call(this,S,q))}return w.type=function(S){return arguments.length?(c=At(S),w):c},w.size=function(S){return arguments.length?(g=At(S),w):g},w};function fr(){return 64}function Mr(){return"circle"}function Zr(c){var g=Math.sqrt(c/Ze);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var at=e.map({circle:Zr,cross:function(c){var g=Math.sqrt(c/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(c){var g=Math.sqrt(c/(2*st)),w=g*st;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(c){var g=Math.sqrt(c)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(c){var g=Math.sqrt(c/ot),w=g*ot/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(c){var g=Math.sqrt(c/ot),w=g*ot/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=at.keys();var ot=Math.sqrt(3),st=Math.tan(30*lt);pe.transition=function(c){for(var g=ma||++Fn,w=La(c),S=[],q,E,V=ui||{time:Date.now(),ease:Kc,delay:0,duration:250},N=-1,j=this.length;++N0;)ge[--Ge].call(c,Ee);if(Ce>=1)return V.event&&V.event.end.call(c,c.__data__,g),--E.count?delete E[S]:delete c[w],1}V||(N=q.time,j=Rl(me,0,N),V=E[S]={tween:new _,time:N,timer:j,delay:q.delay,duration:q.duration,ease:q.ease,index:g},q=null,++E.count)}e.svg.axis=function(){var c=e.scale.linear(),g=Xi,w=6,S=6,q=3,E=[10],V=null,N;function j(ae){ae.each(function(){var ie=e.select(this),ge=this.__chart__||c,me=this.__chart__=c.copy(),ze=V==null?me.ticks?me.ticks.apply(me,E):me.domain():V,Ve=N==null?me.tickFormat?me.tickFormat.apply(me,E):G:N,_e=ie.selectAll(".tick").data(ze,me),Ce=_e.enter().insert("g",".domain").attr("class","tick").style("opacity",Se),Ee=e.transition(_e.exit()).style("opacity",Se).remove(),Ge=e.transition(_e.order()).style("opacity",1),We=Math.max(w,0)+q,Re,br=lr(me),Yr=ie.selectAll(".domain").data([0]),Wr=(Yr.enter().append("path").attr("class","domain"),e.transition(Yr));Ce.append("line"),Ce.append("text");var Vr=Ce.select("line"),Jr=Ge.select("line"),$r=_e.select("text").text(Ve),bt=Ce.select("text"),Qr=Ge.select("text"),ht=g==="top"||g==="left"?-1:1,Kt,Xn,sn,Fr;if(g==="bottom"||g==="top"?(Re=ll,Kt="x",sn="y",Xn="x2",Fr="y2",$r.attr("dy",ht<0?"0em":".71em").style("text-anchor","middle"),Wr.attr("d","M"+br[0]+","+ht*S+"V0H"+br[1]+"V"+ht*S)):(Re=sl,Kt="y",sn="x",Xn="y2",Fr="x2",$r.attr("dy",".32em").style("text-anchor",ht<0?"end":"start"),Wr.attr("d","M"+ht*S+","+br[0]+"H0V"+br[1]+"H"+ht*S)),Vr.attr(Fr,ht*w),bt.attr(sn,ht*We),Jr.attr(Xn,0).attr(Fr,ht*w),Qr.attr(Kt,0).attr(sn,ht*We),me.rangeBand){var _t=me,wt=_t.rangeBand()/2;ge=me=function(Qt){return _t(Qt)+wt}}else ge.rangeBand?ge=me:Ee.call(Re,me,ge);Ce.call(Re,ge,me),Ge.call(Re,me,me)})}return j.scale=function(ae){return arguments.length?(c=ae,j):c},j.orient=function(ae){return arguments.length?(g=ae in ol?ae+"":Xi,j):g},j.ticks=function(){return arguments.length?(E=t(arguments),j):E},j.tickValues=function(ae){return arguments.length?(V=ae,j):V},j.tickFormat=function(ae){return arguments.length?(N=ae,j):N},j.tickSize=function(ae){var ie=arguments.length;return ie?(w=+ae,S=+arguments[ie-1],j):w},j.innerTickSize=function(ae){return arguments.length?(w=+ae,j):w},j.outerTickSize=function(ae){return arguments.length?(S=+ae,j):S},j.tickPadding=function(ae){return arguments.length?(q=+ae,j):q},j.tickSubdivide=function(){return arguments.length&&j},j};var Xi="bottom",ol={top:1,right:1,bottom:1,left:1};function ll(c,g,w){c.attr("transform",function(S){var q=g(S);return"translate("+(isFinite(q)?q:w(S))+",0)"})}function sl(c,g,w){c.attr("transform",function(S){var q=g(S);return"translate(0,"+(isFinite(q)?q:w(S))+")"})}e.svg.brush=function(){var c=Fe(ie,"brushstart","brush","brushend"),g=null,w=null,S=[0,0],q=[0,0],E,V,N=!0,j=!0,ae=go[0];function ie(_e){_e.each(function(){var Ce=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ve).on("touchstart.brush",Ve),Ee=Ce.selectAll(".background").data([0]);Ee.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ce.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ge=Ce.selectAll(".resize").data(ae,G);Ge.exit().remove(),Ge.enter().append("g").attr("class",function(Yr){return"resize "+Yr}).style("cursor",function(Yr){return Xl[Yr]}).append("rect").attr("x",function(Yr){return/[ew]$/.test(Yr)?-3:null}).attr("y",function(Yr){return/^[ns]/.test(Yr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ge.style("display",ie.empty()?"none":null);var We=e.transition(Ce),Re=e.transition(Ee),br;g&&(br=lr(g),Re.attr("x",br[0]).attr("width",br[1]-br[0]),me(We)),w&&(br=lr(w),Re.attr("y",br[0]).attr("height",br[1]-br[0]),ze(We)),ge(We)})}ie.event=function(_e){_e.each(function(){var Ce=c.of(this,arguments),Ee={x:S,y:q,i:E,j:V},Ge=this.__chart__||Ee;this.__chart__=Ee,ma?e.select(this).transition().each("start.brush",function(){E=Ge.i,V=Ge.j,S=Ge.x,q=Ge.y,Ce({type:"brushstart"})}).tween("brush:brush",function(){var We=Ol(S,Ee.x),Re=Ol(q,Ee.y);return E=V=null,function(br){S=Ee.x=We(br),q=Ee.y=Re(br),Ce({type:"brush",mode:"resize"})}}).each("end.brush",function(){E=Ee.i,V=Ee.j,Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"})}):(Ce({type:"brushstart"}),Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"}))})};function ge(_e){_e.selectAll(".resize").attr("transform",function(Ce){return"translate("+S[+/e$/.test(Ce)]+","+q[+/^s/.test(Ce)]+")"})}function me(_e){_e.select(".extent").attr("x",S[0]),_e.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function ze(_e){_e.select(".extent").attr("y",q[0]),_e.selectAll(".extent,.e>rect,.w>rect").attr("height",q[1]-q[0])}function Ve(){var _e=this,Ce=e.select(e.event.target),Ee=c.of(_e,arguments),Ge=e.select(_e),We=Ce.datum(),Re=!/^(n|s)$/.test(We)&&g,br=!/^(e|w)$/.test(We)&&w,Yr=Ce.classed("extent"),Wr=Or(_e),Vr,Jr=e.mouse(_e),$r,bt=e.select(i(_e)).on("keydown.brush",Kt).on("keyup.brush",Xn);if(e.event.changedTouches?bt.on("touchmove.brush",sn).on("touchend.brush",_t):bt.on("mousemove.brush",sn).on("mouseup.brush",_t),Ge.interrupt().selectAll("*").interrupt(),Yr)Jr[0]=S[0]-Jr[0],Jr[1]=q[0]-Jr[1];else if(We){var Qr=+/w$/.test(We),ht=+/^n/.test(We);$r=[S[1-Qr]-Jr[0],q[1-ht]-Jr[1]],Jr[0]=S[Qr],Jr[1]=q[ht]}else e.event.altKey&&(Vr=Jr.slice());Ge.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ce.style("cursor")),Ee({type:"brushstart"}),sn();function Kt(){e.event.keyCode==32&&(Yr||(Vr=null,Jr[0]-=S[1],Jr[1]-=q[1],Yr=2),De())}function Xn(){e.event.keyCode==32&&Yr==2&&(Jr[0]+=S[1],Jr[1]+=q[1],Yr=0,De())}function sn(){var wt=e.mouse(_e),Qt=!1;$r&&(wt[0]+=$r[0],wt[1]+=$r[1]),Yr||(e.event.altKey?(Vr||(Vr=[(S[0]+S[1])/2,(q[0]+q[1])/2]),Jr[0]=S[+(wt[0]{(function(e,r){typeof nd=="object"&&typeof G_!="undefined"?r(nd):(e=e||self,r(e.d3=e.d3||{}))})(nd,function(e){"use strict";var r=new Date,t=new Date;function n(Te,Ye,Ar,Nr){function Er(Ae){return Te(Ae=arguments.length===0?new Date:new Date(+Ae)),Ae}return Er.floor=function(Ae){return Te(Ae=new Date(+Ae)),Ae},Er.ceil=function(Ae){return Te(Ae=new Date(Ae-1)),Ye(Ae,1),Te(Ae),Ae},Er.round=function(Ae){var je=Er(Ae),hr=Er.ceil(Ae);return Ae-je0))return wr;do wr.push(mr=new Date(+Ae)),Ye(Ae,hr),Te(Ae);while(mr=je)for(;Te(je),!Ae(je);)je.setTime(je-1)},function(je,hr){if(je>=je)if(hr<0)for(;++hr<=0;)for(;Ye(je,-1),!Ae(je););else for(;--hr>=0;)for(;Ye(je,1),!Ae(je););})},Ar&&(Er.count=function(Ae,je){return r.setTime(+Ae),t.setTime(+je),Te(r),Te(t),Math.floor(Ar(r,t))},Er.every=function(Ae){return Ae=Math.floor(Ae),!isFinite(Ae)||!(Ae>0)?null:Ae>1?Er.filter(Nr?function(je){return Nr(je)%Ae===0}:function(je){return Er.count(0,je)%Ae===0}):Er}),Er}var a=n(function(){},function(Te,Ye){Te.setTime(+Te+Ye)},function(Te,Ye){return Ye-Te});a.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?n(function(Ye){Ye.setTime(Math.floor(Ye/Te)*Te)},function(Ye,Ar){Ye.setTime(+Ye+Ar*Te)},function(Ye,Ar){return(Ar-Ye)/Te}):a};var i=a.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,v=n(function(Te){Te.setTime(Te-Te.getMilliseconds())},function(Te,Ye){Te.setTime(+Te+Ye*o)},function(Te,Ye){return(Ye-Te)/o},function(Te){return Te.getUTCSeconds()}),h=v.range,d=n(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o)},function(Te,Ye){Te.setTime(+Te+Ye*l)},function(Te,Ye){return(Ye-Te)/l},function(Te){return Te.getMinutes()}),m=d.range,p=n(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o-Te.getMinutes()*l)},function(Te,Ye){Te.setTime(+Te+Ye*s)},function(Te,Ye){return(Ye-Te)/s},function(Te){return Te.getHours()}),y=p.range,b=n(function(Te){Te.setHours(0,0,0,0)},function(Te,Ye){Te.setDate(Te.getDate()+Ye)},function(Te,Ye){return(Ye-Te-(Ye.getTimezoneOffset()-Te.getTimezoneOffset())*l)/u},function(Te){return Te.getDate()-1}),C=b.range;function x(Te){return n(function(Ye){Ye.setDate(Ye.getDate()-(Ye.getDay()+7-Te)%7),Ye.setHours(0,0,0,0)},function(Ye,Ar){Ye.setDate(Ye.getDate()+Ar*7)},function(Ye,Ar){return(Ar-Ye-(Ar.getTimezoneOffset()-Ye.getTimezoneOffset())*l)/f})}var _=x(0),A=x(1),k=x(2),M=x(3),D=x(4),z=x(5),F=x(6),I=_.range,W=A.range,B=k.range,X=M.range,G=D.range,re=z.range,ne=F.range,K=n(function(Te){Te.setDate(1),Te.setHours(0,0,0,0)},function(Te,Ye){Te.setMonth(Te.getMonth()+Ye)},function(Te,Ye){return Ye.getMonth()-Te.getMonth()+(Ye.getFullYear()-Te.getFullYear())*12},function(Te){return Te.getMonth()}),ee=K.range,fe=n(function(Te){Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Ye){Te.setFullYear(Te.getFullYear()+Ye)},function(Te,Ye){return Ye.getFullYear()-Te.getFullYear()},function(Te){return Te.getFullYear()});fe.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:n(function(Ye){Ye.setFullYear(Math.floor(Ye.getFullYear()/Te)*Te),Ye.setMonth(0,1),Ye.setHours(0,0,0,0)},function(Ye,Ar){Ye.setFullYear(Ye.getFullYear()+Ar*Te)})};var he=fe.range,De=n(function(Te){Te.setUTCSeconds(0,0)},function(Te,Ye){Te.setTime(+Te+Ye*l)},function(Te,Ye){return(Ye-Te)/l},function(Te){return Te.getUTCMinutes()}),Ne=De.range,Fe=n(function(Te){Te.setUTCMinutes(0,0,0)},function(Te,Ye){Te.setTime(+Te+Ye*s)},function(Te,Ye){return(Ye-Te)/s},function(Te){return Te.getUTCHours()}),Xe=Fe.range,Le=n(function(Te){Te.setUTCHours(0,0,0,0)},function(Te,Ye){Te.setUTCDate(Te.getUTCDate()+Ye)},function(Te,Ye){return(Ye-Te)/u},function(Te){return Te.getUTCDate()-1}),rr=Le.range;function se(Te){return n(function(Ye){Ye.setUTCDate(Ye.getUTCDate()-(Ye.getUTCDay()+7-Te)%7),Ye.setUTCHours(0,0,0,0)},function(Ye,Ar){Ye.setUTCDate(Ye.getUTCDate()+Ar*7)},function(Ye,Ar){return(Ar-Ye)/f})}var ye=se(0),we=se(1),pe=se(2),U=se(3),Q=se(4),$=se(5),ke=se(6),Oe=ye.range,Ie=we.range,ir=pe.range,or=U.range,Ue=Q.range,tr=$.range,ur=ke.range,cr=n(function(Te){Te.setUTCDate(1),Te.setUTCHours(0,0,0,0)},function(Te,Ye){Te.setUTCMonth(Te.getUTCMonth()+Ye)},function(Te,Ye){return Ye.getUTCMonth()-Te.getUTCMonth()+(Ye.getUTCFullYear()-Te.getUTCFullYear())*12},function(Te){return Te.getUTCMonth()}),Qe=cr.range,pr=n(function(Te){Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Ye){Te.setUTCFullYear(Te.getUTCFullYear()+Ye)},function(Te,Ye){return Ye.getUTCFullYear()-Te.getUTCFullYear()},function(Te){return Te.getUTCFullYear()});pr.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:n(function(Ye){Ye.setUTCFullYear(Math.floor(Ye.getUTCFullYear()/Te)*Te),Ye.setUTCMonth(0,1),Ye.setUTCHours(0,0,0,0)},function(Ye,Ar){Ye.setUTCFullYear(Ye.getUTCFullYear()+Ar*Te)})};var dr=pr.range;e.timeDay=b,e.timeDays=C,e.timeFriday=z,e.timeFridays=re,e.timeHour=p,e.timeHours=y,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=A,e.timeMondays=W,e.timeMonth=K,e.timeMonths=ee,e.timeSaturday=F,e.timeSaturdays=ne,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=_,e.timeSundays=I,e.timeThursday=D,e.timeThursdays=G,e.timeTuesday=k,e.timeTuesdays=B,e.timeWednesday=M,e.timeWednesdays=X,e.timeWeek=_,e.timeWeeks=I,e.timeYear=fe,e.timeYears=he,e.utcDay=Le,e.utcDays=rr,e.utcFriday=$,e.utcFridays=tr,e.utcHour=Fe,e.utcHours=Xe,e.utcMillisecond=a,e.utcMilliseconds=i,e.utcMinute=De,e.utcMinutes=Ne,e.utcMonday=we,e.utcMondays=Ie,e.utcMonth=cr,e.utcMonths=Qe,e.utcSaturday=ke,e.utcSaturdays=ur,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=ye,e.utcSundays=Oe,e.utcThursday=Q,e.utcThursdays=Ue,e.utcTuesday=pe,e.utcTuesdays=ir,e.utcWednesday=U,e.utcWednesdays=or,e.utcWeek=ye,e.utcWeeks=Oe,e.utcYear=pr,e.utcYears=dr,Object.defineProperty(e,"__esModule",{value:!0})})});var m0=te((ad,V_)=>{(function(e,r){typeof ad=="object"&&typeof V_!="undefined"?r(ad,wy()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(ad,function(e,r){"use strict";function t(be){if(0<=be.y&&be.y<100){var Se=new Date(-1,be.m,be.d,be.H,be.M,be.S,be.L);return Se.setFullYear(be.y),Se}return new Date(be.y,be.m,be.d,be.H,be.M,be.S,be.L)}function n(be){if(0<=be.y&&be.y<100){var Se=new Date(Date.UTC(-1,be.m,be.d,be.H,be.M,be.S,be.L));return Se.setUTCFullYear(be.y),Se}return new Date(Date.UTC(be.y,be.m,be.d,be.H,be.M,be.S,be.L))}function a(be,Se,$e){return{y:be,m:Se,d:$e,H:0,M:0,S:0,L:0}}function i(be){var Se=be.dateTime,$e=be.date,Ze=be.time,qr=be.periods,Hr=be.days,Pr=be.shortDays,lt=be.months,xt=be.shortMonths,Nt=h(qr),Ht=d(qr),An=h(Hr),Tn=d(Hr),cn=h(Pr),Ft=d(Pr),jt=h(lt),en=d(lt),Jt=h(xt),aa=d(xt),rt={a:pi,A:io,b:gi,B:ms,c:null,d:K,e:K,f:Ne,H:ee,I:fe,j:he,L:De,m:Fe,M:Xe,p:El,q:Bo,Q:je,s:hr,S:Le,u:rr,U:se,V:ye,w:we,W:pe,x:null,X:null,y:U,Y:Q,Z:$,"%":Ae},rn={a:ys,A:Oo,b:On,B:mi,c:null,d:ke,e:ke,f:Ue,H:Oe,I:Ie,j:ir,L:or,m:tr,M:ur,p:Uo,q:yi,Q:je,s:hr,S:cr,u:Qe,U:pr,V:dr,w:Te,W:Ye,x:null,X:null,y:Ar,Y:Nr,Z:Er,"%":Ae},St={a:da,A:qn,b:Na,B:pa,c:wn,d:D,e:D,f:X,H:F,I:F,j:z,L:B,m:M,M:I,p:vn,q:k,Q:re,s:ne,S:W,u:p,U:y,V:b,w:m,W:C,x:Bt,X:Bn,y:_,Y:x,Z:A,"%":G};rt.x=dn($e,rt),rt.X=dn(Ze,rt),rt.c=dn(Se,rt),rn.x=dn($e,rn),rn.X=dn(Ze,rn),rn.c=dn(Se,rn);function dn(Kr,Ct){return function(Ot){var Ur=[],Wn=-1,on=0,Pn=Kr.length,At,Wa,Yo;for(Ot instanceof Date||(Ot=new Date(+Ot));++Wn53)return null;"w"in Ur||(Ur.w=1),"Z"in Ur?(on=n(a(Ur.y,0,1)),Pn=on.getUTCDay(),on=Pn>4||Pn===0?r.utcMonday.ceil(on):r.utcMonday(on),on=r.utcDay.offset(on,(Ur.V-1)*7),Ur.y=on.getUTCFullYear(),Ur.m=on.getUTCMonth(),Ur.d=on.getUTCDate()+(Ur.w+6)%7):(on=t(a(Ur.y,0,1)),Pn=on.getDay(),on=Pn>4||Pn===0?r.timeMonday.ceil(on):r.timeMonday(on),on=r.timeDay.offset(on,(Ur.V-1)*7),Ur.y=on.getFullYear(),Ur.m=on.getMonth(),Ur.d=on.getDate()+(Ur.w+6)%7)}else("W"in Ur||"U"in Ur)&&("w"in Ur||(Ur.w="u"in Ur?Ur.u%7:"W"in Ur?1:0),Pn="Z"in Ur?n(a(Ur.y,0,1)).getUTCDay():t(a(Ur.y,0,1)).getDay(),Ur.m=0,Ur.d="W"in Ur?(Ur.w+6)%7+Ur.W*7-(Pn+5)%7:Ur.w+Ur.U*7-(Pn+6)%7);return"Z"in Ur?(Ur.H+=Ur.Z/100|0,Ur.M+=Ur.Z%100,n(Ur)):t(Ur)}}function an(Kr,Ct,Ot,Ur){for(var Wn=0,on=Ct.length,Pn=Ot.length,At,Wa;Wn=Pn)return-1;if(At=Ct.charCodeAt(Wn++),At===37){if(At=Ct.charAt(Wn++),Wa=St[At in o?Ct.charAt(Wn++):At],!Wa||(Ur=Wa(Kr,Ot,Ur))<0)return-1}else if(At!=Ot.charCodeAt(Ur++))return-1}return Ur}function vn(Kr,Ct,Ot){var Ur=Nt.exec(Ct.slice(Ot));return Ur?(Kr.p=Ht[Ur[0].toLowerCase()],Ot+Ur[0].length):-1}function da(Kr,Ct,Ot){var Ur=cn.exec(Ct.slice(Ot));return Ur?(Kr.w=Ft[Ur[0].toLowerCase()],Ot+Ur[0].length):-1}function qn(Kr,Ct,Ot){var Ur=An.exec(Ct.slice(Ot));return Ur?(Kr.w=Tn[Ur[0].toLowerCase()],Ot+Ur[0].length):-1}function Na(Kr,Ct,Ot){var Ur=Jt.exec(Ct.slice(Ot));return Ur?(Kr.m=aa[Ur[0].toLowerCase()],Ot+Ur[0].length):-1}function pa(Kr,Ct,Ot){var Ur=jt.exec(Ct.slice(Ot));return Ur?(Kr.m=en[Ur[0].toLowerCase()],Ot+Ur[0].length):-1}function wn(Kr,Ct,Ot){return an(Kr,Se,Ct,Ot)}function Bt(Kr,Ct,Ot){return an(Kr,$e,Ct,Ot)}function Bn(Kr,Ct,Ot){return an(Kr,Ze,Ct,Ot)}function pi(Kr){return Pr[Kr.getDay()]}function io(Kr){return Hr[Kr.getDay()]}function gi(Kr){return xt[Kr.getMonth()]}function ms(Kr){return lt[Kr.getMonth()]}function El(Kr){return qr[+(Kr.getHours()>=12)]}function Bo(Kr){return 1+~~(Kr.getMonth()/3)}function ys(Kr){return Pr[Kr.getUTCDay()]}function Oo(Kr){return Hr[Kr.getUTCDay()]}function On(Kr){return xt[Kr.getUTCMonth()]}function mi(Kr){return lt[Kr.getUTCMonth()]}function Uo(Kr){return qr[+(Kr.getUTCHours()>=12)]}function yi(Kr){return 1+~~(Kr.getUTCMonth()/3)}return{format:function(Kr){var Ct=dn(Kr+="",rt);return Ct.toString=function(){return Kr},Ct},parse:function(Kr){var Ct=pn(Kr+="",!1);return Ct.toString=function(){return Kr},Ct},utcFormat:function(Kr){var Ct=dn(Kr+="",rn);return Ct.toString=function(){return Kr},Ct},utcParse:function(Kr){var Ct=pn(Kr+="",!0);return Ct.toString=function(){return Kr},Ct}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(be,Se,$e){var Ze=be<0?"-":"",qr=(Ze?-be:be)+"",Hr=qr.length;return Ze+(Hr<$e?new Array($e-Hr+1).join(Se)+qr:qr)}function v(be){return be.replace(u,"\\$&")}function h(be){return new RegExp("^(?:"+be.map(v).join("|")+")","i")}function d(be){for(var Se={},$e=-1,Ze=be.length;++$e68?1900:2e3),$e+Ze[0].length):-1}function A(be,Se,$e){var Ze=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Se.slice($e,$e+6));return Ze?(be.Z=Ze[1]?0:-(Ze[2]+(Ze[3]||"00")),$e+Ze[0].length):-1}function k(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+1));return Ze?(be.q=Ze[0]*3-3,$e+Ze[0].length):-1}function M(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+2));return Ze?(be.m=Ze[0]-1,$e+Ze[0].length):-1}function D(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+2));return Ze?(be.d=+Ze[0],$e+Ze[0].length):-1}function z(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+3));return Ze?(be.m=0,be.d=+Ze[0],$e+Ze[0].length):-1}function F(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+2));return Ze?(be.H=+Ze[0],$e+Ze[0].length):-1}function I(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+2));return Ze?(be.M=+Ze[0],$e+Ze[0].length):-1}function W(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+2));return Ze?(be.S=+Ze[0],$e+Ze[0].length):-1}function B(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+3));return Ze?(be.L=+Ze[0],$e+Ze[0].length):-1}function X(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+6));return Ze?(be.L=Math.floor(Ze[0]/1e3),$e+Ze[0].length):-1}function G(be,Se,$e){var Ze=s.exec(Se.slice($e,$e+1));return Ze?$e+Ze[0].length:-1}function re(be,Se,$e){var Ze=l.exec(Se.slice($e));return Ze?(be.Q=+Ze[0],$e+Ze[0].length):-1}function ne(be,Se,$e){var Ze=l.exec(Se.slice($e));return Ze?(be.s=+Ze[0],$e+Ze[0].length):-1}function K(be,Se){return f(be.getDate(),Se,2)}function ee(be,Se){return f(be.getHours(),Se,2)}function fe(be,Se){return f(be.getHours()%12||12,Se,2)}function he(be,Se){return f(1+r.timeDay.count(r.timeYear(be),be),Se,3)}function De(be,Se){return f(be.getMilliseconds(),Se,3)}function Ne(be,Se){return De(be,Se)+"000"}function Fe(be,Se){return f(be.getMonth()+1,Se,2)}function Xe(be,Se){return f(be.getMinutes(),Se,2)}function Le(be,Se){return f(be.getSeconds(),Se,2)}function rr(be){var Se=be.getDay();return Se===0?7:Se}function se(be,Se){return f(r.timeSunday.count(r.timeYear(be)-1,be),Se,2)}function ye(be,Se){var $e=be.getDay();return be=$e>=4||$e===0?r.timeThursday(be):r.timeThursday.ceil(be),f(r.timeThursday.count(r.timeYear(be),be)+(r.timeYear(be).getDay()===4),Se,2)}function we(be){return be.getDay()}function pe(be,Se){return f(r.timeMonday.count(r.timeYear(be)-1,be),Se,2)}function U(be,Se){return f(be.getFullYear()%100,Se,2)}function Q(be,Se){return f(be.getFullYear()%1e4,Se,4)}function $(be){var Se=be.getTimezoneOffset();return(Se>0?"-":(Se*=-1,"+"))+f(Se/60|0,"0",2)+f(Se%60,"0",2)}function ke(be,Se){return f(be.getUTCDate(),Se,2)}function Oe(be,Se){return f(be.getUTCHours(),Se,2)}function Ie(be,Se){return f(be.getUTCHours()%12||12,Se,2)}function ir(be,Se){return f(1+r.utcDay.count(r.utcYear(be),be),Se,3)}function or(be,Se){return f(be.getUTCMilliseconds(),Se,3)}function Ue(be,Se){return or(be,Se)+"000"}function tr(be,Se){return f(be.getUTCMonth()+1,Se,2)}function ur(be,Se){return f(be.getUTCMinutes(),Se,2)}function cr(be,Se){return f(be.getUTCSeconds(),Se,2)}function Qe(be){var Se=be.getUTCDay();return Se===0?7:Se}function pr(be,Se){return f(r.utcSunday.count(r.utcYear(be)-1,be),Se,2)}function dr(be,Se){var $e=be.getUTCDay();return be=$e>=4||$e===0?r.utcThursday(be):r.utcThursday.ceil(be),f(r.utcThursday.count(r.utcYear(be),be)+(r.utcYear(be).getUTCDay()===4),Se,2)}function Te(be){return be.getUTCDay()}function Ye(be,Se){return f(r.utcMonday.count(r.utcYear(be)-1,be),Se,2)}function Ar(be,Se){return f(be.getUTCFullYear()%100,Se,2)}function Nr(be,Se){return f(be.getUTCFullYear()%1e4,Se,4)}function Er(){return"+0000"}function Ae(){return"%"}function je(be){return+be}function hr(be){return Math.floor(+be/1e3)}var wr;mr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function mr(be){return wr=i(be),e.timeFormat=wr.format,e.timeParse=wr.parse,e.utcFormat=wr.utcFormat,e.utcParse=wr.utcParse,wr}var Tr="%Y-%m-%dT%H:%M:%S.%LZ";function Dr(be){return be.toISOString()}var Or=Date.prototype.toISOString?Dr:e.utcFormat(Tr);function Cr(be){var Se=new Date(be);return isNaN(Se)?null:Se}var ar=+new Date("2000-01-01T00:00:00.000Z")?Cr:e.utcParse(Tr);e.isoFormat=Or,e.isoParse=ar,e.timeFormatDefaultLocale=mr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var My=te((id,W_)=>{(function(e,r){typeof id=="object"&&typeof W_!="undefined"?r(id):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(id,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,D){if((z=(M=D?M.toExponential(D-1):M.toExponential()).indexOf("e"))<0)return null;var z,F=M.slice(0,z);return[F.length>1?F[0]+F.slice(2):F,+M.slice(z+1)]}function n(M){return M=t(Math.abs(M)),M?M[1]:NaN}function a(M,D){return function(z,F){for(var I=z.length,W=[],B=0,X=M[0],G=0;I>0&&X>0&&(G+X+1>F&&(X=Math.max(1,F-G)),W.push(z.substring(I-=X,I+X)),!((G+=X+1)>F));)X=M[B=(B+1)%M.length];return W.reverse().join(D)}}function i(M){return function(D){return D.replace(/[0-9]/g,function(z){return M[+z]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(D=o.exec(M)))throw new Error("invalid format: "+M);var D;return new s({fill:D[1],align:D[2],sign:D[3],symbol:D[4],zero:D[5],width:D[6],comma:D[7],precision:D[8]&&D[8].slice(1),trim:D[9],type:D[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var D=M.length,z=1,F=-1,I;z0&&(F=0);break}return F>0?M.slice(0,F)+M.slice(I+1):M}var f;function v(M,D){var z=t(M,D);if(!z)return M+"";var F=z[0],I=z[1],W=I-(f=Math.max(-8,Math.min(8,Math.floor(I/3)))*3)+1,B=F.length;return W===B?F:W>B?F+new Array(W-B+1).join("0"):W>0?F.slice(0,W)+"."+F.slice(W):"0."+new Array(1-W).join("0")+t(M,Math.max(0,D+W-1))[0]}function h(M,D){var z=t(M,D);if(!z)return M+"";var F=z[0],I=z[1];return I<0?"0."+new Array(-I).join("0")+F:F.length>I+1?F.slice(0,I+1)+"."+F.slice(I+1):F+new Array(I-F.length+2).join("0")}var d={"%":function(M,D){return(M*100).toFixed(D)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,D){return M.toExponential(D)},f:function(M,D){return M.toFixed(D)},g:function(M,D){return M.toPrecision(D)},o:function(M){return Math.round(M).toString(8)},p:function(M,D){return h(M*100,D)},r:h,s:v,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function m(M){return M}var p=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var D=M.grouping===void 0||M.thousands===void 0?m:a(p.call(M.grouping,Number),M.thousands+""),z=M.currency===void 0?"":M.currency[0]+"",F=M.currency===void 0?"":M.currency[1]+"",I=M.decimal===void 0?".":M.decimal+"",W=M.numerals===void 0?m:i(p.call(M.numerals,String)),B=M.percent===void 0?"%":M.percent+"",X=M.minus===void 0?"-":M.minus+"",G=M.nan===void 0?"NaN":M.nan+"";function re(K){K=l(K);var ee=K.fill,fe=K.align,he=K.sign,De=K.symbol,Ne=K.zero,Fe=K.width,Xe=K.comma,Le=K.precision,rr=K.trim,se=K.type;se==="n"?(Xe=!0,se="g"):d[se]||(Le===void 0&&(Le=12),rr=!0,se="g"),(Ne||ee==="0"&&fe==="=")&&(Ne=!0,ee="0",fe="=");var ye=De==="$"?z:De==="#"&&/[boxX]/.test(se)?"0"+se.toLowerCase():"",we=De==="$"?F:/[%p]/.test(se)?B:"",pe=d[se],U=/[defgprs%]/.test(se);Le=Le===void 0?6:/[gprs]/.test(se)?Math.max(1,Math.min(21,Le)):Math.max(0,Math.min(20,Le));function Q($){var ke=ye,Oe=we,Ie,ir,or;if(se==="c")Oe=pe($)+Oe,$="";else{$=+$;var Ue=$<0||1/$<0;if($=isNaN($)?G:pe(Math.abs($),Le),rr&&($=u($)),Ue&&+$==0&&he!=="+"&&(Ue=!1),ke=(Ue?he==="("?he:X:he==="-"||he==="("?"":he)+ke,Oe=(se==="s"?y[8+f/3]:"")+Oe+(Ue&&he==="("?")":""),U){for(Ie=-1,ir=$.length;++Ieor||or>57){Oe=(or===46?I+$.slice(Ie+1):$.slice(Ie))+Oe,$=$.slice(0,Ie);break}}}Xe&&!Ne&&($=D($,1/0));var tr=ke.length+$.length+Oe.length,ur=tr>1)+ke+$+Oe+ur.slice(tr);break;default:$=ur+ke+$+Oe;break}return W($)}return Q.toString=function(){return K+""},Q}function ne(K,ee){var fe=re((K=l(K),K.type="f",K)),he=Math.max(-8,Math.min(8,Math.floor(n(ee)/3)))*3,De=Math.pow(10,-he),Ne=y[8+he/3];return function(Fe){return fe(De*Fe)+Ne}}return{format:re,formatPrefix:ne}}var C;x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function x(M){return C=b(M),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function _(M){return Math.max(0,-n(Math.abs(M)))}function A(M,D){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(D)/3)))*3-n(Math.abs(M)))}function k(M,D){return M=Math.abs(M),D=Math.abs(D)-M,Math.max(0,n(D)-n(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=x,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=_,e.precisionPrefix=A,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var X_=te((Ooe,Z_)=>{"use strict";Z_.exports=function(e){for(var r=e.length,t,n=0;n13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Ut=te((Uoe,j_)=>{"use strict";var HI=X_();j_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&HI(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Rn=te((Yoe,J_)=>{"use strict";J_.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var Ay=te((od,$_)=>{(function(e,r){typeof od=="object"&&typeof $_!="undefined"?r(od):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(od,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,v,h,d,m;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var p=new ArrayBuffer(l),y=new Uint8Array(p);for(u=0;u>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|m&63;return p};e.decode=i,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var Gs=te((Goe,K_)=>{"use strict";K_.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var ji=te(fl=>{"use strict";var BI=Ay().decode,OI=Gs(),Ty=Array.isArray,UI=ArrayBuffer,YI=DataView;function Q_(e){return UI.isView(e)&&!(e instanceof YI)}fl.isTypedArray=Q_;function ld(e){return Ty(e)||Q_(e)}fl.isArrayOrTypedArray=ld;function GI(e){return!ld(e[0])}fl.isArray1D=GI;fl.ensureArray=function(e,r){return Ty(e)||(e=[]),e.length=r,e};var Ta={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ta.uint8c=Ta.u1c;Ta.uint8=Ta.u1;Ta.int8=Ta.i1;Ta.uint16=Ta.u2;Ta.int16=Ta.i2;Ta.uint32=Ta.u4;Ta.int32=Ta.i4;Ta.float32=Ta.f4;Ta.float64=Ta.f8;function ky(e){return e.constructor===ArrayBuffer}fl.isArrayBuffer=ky;fl.decodeTypedArraySpec=function(e){var r=[],t=VI(e),n=t.dtype,a=Ta[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var i=a.BYTES_PER_ELEMENT,o=t.bdata;ky(o)||(o=BI(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,v=+l[0],h=i*v,d=0;if(s===1)r=new a(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var r6=Ut(),Cy=ji().isArrayOrTypedArray;i6.exports=function(r,t){if(r6(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var n=t.split("."),a,i,o,l;for(l=0;l{"use strict";var y0=$v(),JI=/^\w*$/,$I=0,o6=1,sd=2,l6=3,jf=4;s6.exports=function(r,t,n,a){n=n||"name",a=a||"value";var i,o,l,s={};t&&t.length?(l=y0(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|sd,v.set(h,null);if(f){for(i=d;i{"use strict";var KI=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,QI=/^[^\.\[\]]+$/;f6.exports=function(e,r){for(;r;){var t=e.match(KI);if(t)e=t[1];else if(e.match(QI))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var ud=te((joe,v6)=>{"use strict";var eH=Ut();v6.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return eH(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var p6=te((Joe,d6)=>{"use strict";var h6=ji().isArrayOrTypedArray,Kv=Gs();d6.exports=function e(r,t){for(var n in t){var a=t[n],i=r[n];if(i!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if(h6(a)&&h6(i)&&Kv(a[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(a.length,i.length),l=0;l{"use strict";function rH(e,r){var t=e%r;return t<0?t+r:t}function tH(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}g6.exports={mod:rH,modHalf:tH}});var Jl=te((Koe,fd)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,i=e.min,o=e.max,l=e.random;function s(U,Q){if(U=U||"",Q=Q||{},U instanceof s)return U;if(!(this instanceof s))return new s(U,Q);var $=u(U);this._originalInput=U,this._r=$.r,this._g=$.g,this._b=$.b,this._a=$.a,this._roundA=a(100*this._a)/100,this._format=Q.format||$.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=$.ok,this._tc_id=n++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var U=this.toRgb();return(U.r*299+U.g*587+U.b*114)/1e3},getLuminance:function(){var U=this.toRgb(),Q,$,ke,Oe,Ie,ir;return Q=U.r/255,$=U.g/255,ke=U.b/255,Q<=.03928?Oe=Q/12.92:Oe=e.pow((Q+.055)/1.055,2.4),$<=.03928?Ie=$/12.92:Ie=e.pow(($+.055)/1.055,2.4),ke<=.03928?ir=ke/12.92:ir=e.pow((ke+.055)/1.055,2.4),.2126*Oe+.7152*Ie+.0722*ir},setAlpha:function(U){return this._a=K(U),this._roundA=a(100*this._a)/100,this},toHsv:function(){var U=d(this._r,this._g,this._b);return{h:U.h*360,s:U.s,v:U.v,a:this._a}},toHsvString:function(){var U=d(this._r,this._g,this._b),Q=a(U.h*360),$=a(U.s*100),ke=a(U.v*100);return this._a==1?"hsv("+Q+", "+$+"%, "+ke+"%)":"hsva("+Q+", "+$+"%, "+ke+"%, "+this._roundA+")"},toHsl:function(){var U=v(this._r,this._g,this._b);return{h:U.h*360,s:U.s,l:U.l,a:this._a}},toHslString:function(){var U=v(this._r,this._g,this._b),Q=a(U.h*360),$=a(U.s*100),ke=a(U.l*100);return this._a==1?"hsl("+Q+", "+$+"%, "+ke+"%)":"hsla("+Q+", "+$+"%, "+ke+"%, "+this._roundA+")"},toHex:function(U){return p(this._r,this._g,this._b,U)},toHexString:function(U){return"#"+this.toHex(U)},toHex8:function(U){return y(this._r,this._g,this._b,this._a,U)},toHex8String:function(U){return"#"+this.toHex8(U)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(ee(this._r,255)*100)+"%",g:a(ee(this._g,255)*100)+"%",b:a(ee(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(ee(this._r,255)*100)+"%, "+a(ee(this._g,255)*100)+"%, "+a(ee(this._b,255)*100)+"%)":"rgba("+a(ee(this._r,255)*100)+"%, "+a(ee(this._g,255)*100)+"%, "+a(ee(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:re[p(this._r,this._g,this._b,!0)]||!1},toFilter:function(U){var Q="#"+b(this._r,this._g,this._b,this._a),$=Q,ke=this._gradientType?"GradientType = 1, ":"";if(U){var Oe=s(U);$="#"+b(Oe._r,Oe._g,Oe._b,Oe._a)}return"progid:DXImageTransform.Microsoft.gradient("+ke+"startColorstr="+Q+",endColorstr="+$+")"},toString:function(U){var Q=!!U;U=U||this._format;var $=!1,ke=this._a<1&&this._a>=0,Oe=!Q&&ke&&(U==="hex"||U==="hex6"||U==="hex3"||U==="hex4"||U==="hex8"||U==="name");return Oe?U==="name"&&this._a===0?this.toName():this.toRgbString():(U==="rgb"&&($=this.toRgbString()),U==="prgb"&&($=this.toPercentageRgbString()),(U==="hex"||U==="hex6")&&($=this.toHexString()),U==="hex3"&&($=this.toHexString(!0)),U==="hex4"&&($=this.toHex8String(!0)),U==="hex8"&&($=this.toHex8String()),U==="name"&&($=this.toName()),U==="hsl"&&($=this.toHslString()),U==="hsv"&&($=this.toHsvString()),$||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(U,Q){var $=U.apply(null,[this].concat([].slice.call(Q)));return this._r=$._r,this._g=$._g,this._b=$._b,this.setAlpha($._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(U,Q){return U.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(z,arguments)},monochromatic:function(){return this._applyCombination(X,arguments)},splitcomplement:function(){return this._applyCombination(W,arguments)},triad:function(){return this._applyCombination(F,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},s.fromRatio=function(U,Q){if(typeof U=="object"){var $={};for(var ke in U)U.hasOwnProperty(ke)&&(ke==="a"?$[ke]=U[ke]:$[ke]=Xe(U[ke]));U=$}return s(U,Q)};function u(U){var Q={r:0,g:0,b:0},$=1,ke=null,Oe=null,Ie=null,ir=!1,or=!1;return typeof U=="string"&&(U=we(U)),typeof U=="object"&&(ye(U.r)&&ye(U.g)&&ye(U.b)?(Q=f(U.r,U.g,U.b),ir=!0,or=String(U.r).substr(-1)==="%"?"prgb":"rgb"):ye(U.h)&&ye(U.s)&&ye(U.v)?(ke=Xe(U.s),Oe=Xe(U.v),Q=m(U.h,ke,Oe),ir=!0,or="hsv"):ye(U.h)&&ye(U.s)&&ye(U.l)&&(ke=Xe(U.s),Ie=Xe(U.l),Q=h(U.h,ke,Ie),ir=!0,or="hsl"),U.hasOwnProperty("a")&&($=U.a)),$=K($),{ok:ir,format:U.format||or,r:i(255,o(Q.r,0)),g:i(255,o(Q.g,0)),b:i(255,o(Q.b,0)),a:$}}function f(U,Q,$){return{r:ee(U,255)*255,g:ee(Q,255)*255,b:ee($,255)*255}}function v(U,Q,$){U=ee(U,255),Q=ee(Q,255),$=ee($,255);var ke=o(U,Q,$),Oe=i(U,Q,$),Ie,ir,or=(ke+Oe)/2;if(ke==Oe)Ie=ir=0;else{var Ue=ke-Oe;switch(ir=or>.5?Ue/(2-ke-Oe):Ue/(ke+Oe),ke){case U:Ie=(Q-$)/Ue+(Q<$?6:0);break;case Q:Ie=($-U)/Ue+2;break;case $:Ie=(U-Q)/Ue+4;break}Ie/=6}return{h:Ie,s:ir,l:or}}function h(U,Q,$){var ke,Oe,Ie;U=ee(U,360),Q=ee(Q,100),$=ee($,100);function ir(tr,ur,cr){return cr<0&&(cr+=1),cr>1&&(cr-=1),cr<1/6?tr+(ur-tr)*6*cr:cr<1/2?ur:cr<2/3?tr+(ur-tr)*(2/3-cr)*6:tr}if(Q===0)ke=Oe=Ie=$;else{var or=$<.5?$*(1+Q):$+Q-$*Q,Ue=2*$-or;ke=ir(Ue,or,U+1/3),Oe=ir(Ue,or,U),Ie=ir(Ue,or,U-1/3)}return{r:ke*255,g:Oe*255,b:Ie*255}}function d(U,Q,$){U=ee(U,255),Q=ee(Q,255),$=ee($,255);var ke=o(U,Q,$),Oe=i(U,Q,$),Ie,ir,or=ke,Ue=ke-Oe;if(ir=ke===0?0:Ue/ke,ke==Oe)Ie=0;else{switch(ke){case U:Ie=(Q-$)/Ue+(Q<$?6:0);break;case Q:Ie=($-U)/Ue+2;break;case $:Ie=(U-Q)/Ue+4;break}Ie/=6}return{h:Ie,s:ir,v:or}}function m(U,Q,$){U=ee(U,360)*6,Q=ee(Q,100),$=ee($,100);var ke=e.floor(U),Oe=U-ke,Ie=$*(1-Q),ir=$*(1-Oe*Q),or=$*(1-(1-Oe)*Q),Ue=ke%6,tr=[$,ir,Ie,Ie,or,$][Ue],ur=[or,$,$,ir,Ie,Ie][Ue],cr=[Ie,Ie,or,$,$,ir][Ue];return{r:tr*255,g:ur*255,b:cr*255}}function p(U,Q,$,ke){var Oe=[Fe(a(U).toString(16)),Fe(a(Q).toString(16)),Fe(a($).toString(16))];return ke&&Oe[0].charAt(0)==Oe[0].charAt(1)&&Oe[1].charAt(0)==Oe[1].charAt(1)&&Oe[2].charAt(0)==Oe[2].charAt(1)?Oe[0].charAt(0)+Oe[1].charAt(0)+Oe[2].charAt(0):Oe.join("")}function y(U,Q,$,ke,Oe){var Ie=[Fe(a(U).toString(16)),Fe(a(Q).toString(16)),Fe(a($).toString(16)),Fe(Le(ke))];return Oe&&Ie[0].charAt(0)==Ie[0].charAt(1)&&Ie[1].charAt(0)==Ie[1].charAt(1)&&Ie[2].charAt(0)==Ie[2].charAt(1)&&Ie[3].charAt(0)==Ie[3].charAt(1)?Ie[0].charAt(0)+Ie[1].charAt(0)+Ie[2].charAt(0)+Ie[3].charAt(0):Ie.join("")}function b(U,Q,$,ke){var Oe=[Fe(Le(ke)),Fe(a(U).toString(16)),Fe(a(Q).toString(16)),Fe(a($).toString(16))];return Oe.join("")}s.equals=function(U,Q){return!U||!Q?!1:s(U).toRgbString()==s(Q).toRgbString()},s.random=function(){return s.fromRatio({r:l(),g:l(),b:l()})};function C(U,Q){Q=Q===0?0:Q||10;var $=s(U).toHsl();return $.s-=Q/100,$.s=fe($.s),s($)}function x(U,Q){Q=Q===0?0:Q||10;var $=s(U).toHsl();return $.s+=Q/100,$.s=fe($.s),s($)}function _(U){return s(U).desaturate(100)}function A(U,Q){Q=Q===0?0:Q||10;var $=s(U).toHsl();return $.l+=Q/100,$.l=fe($.l),s($)}function k(U,Q){Q=Q===0?0:Q||10;var $=s(U).toRgb();return $.r=o(0,i(255,$.r-a(255*-(Q/100)))),$.g=o(0,i(255,$.g-a(255*-(Q/100)))),$.b=o(0,i(255,$.b-a(255*-(Q/100)))),s($)}function M(U,Q){Q=Q===0?0:Q||10;var $=s(U).toHsl();return $.l-=Q/100,$.l=fe($.l),s($)}function D(U,Q){var $=s(U).toHsl(),ke=($.h+Q)%360;return $.h=ke<0?360+ke:ke,s($)}function z(U){var Q=s(U).toHsl();return Q.h=(Q.h+180)%360,s(Q)}function F(U){var Q=s(U).toHsl(),$=Q.h;return[s(U),s({h:($+120)%360,s:Q.s,l:Q.l}),s({h:($+240)%360,s:Q.s,l:Q.l})]}function I(U){var Q=s(U).toHsl(),$=Q.h;return[s(U),s({h:($+90)%360,s:Q.s,l:Q.l}),s({h:($+180)%360,s:Q.s,l:Q.l}),s({h:($+270)%360,s:Q.s,l:Q.l})]}function W(U){var Q=s(U).toHsl(),$=Q.h;return[s(U),s({h:($+72)%360,s:Q.s,l:Q.l}),s({h:($+216)%360,s:Q.s,l:Q.l})]}function B(U,Q,$){Q=Q||6,$=$||30;var ke=s(U).toHsl(),Oe=360/$,Ie=[s(U)];for(ke.h=(ke.h-(Oe*Q>>1)+720)%360;--Q;)ke.h=(ke.h+Oe)%360,Ie.push(s(ke));return Ie}function X(U,Q){Q=Q||6;for(var $=s(U).toHsv(),ke=$.h,Oe=$.s,Ie=$.v,ir=[],or=1/Q;Q--;)ir.push(s({h:ke,s:Oe,v:Ie})),Ie=(Ie+or)%1;return ir}s.mix=function(U,Q,$){$=$===0?0:$||50;var ke=s(U).toRgb(),Oe=s(Q).toRgb(),Ie=$/100,ir={r:(Oe.r-ke.r)*Ie+ke.r,g:(Oe.g-ke.g)*Ie+ke.g,b:(Oe.b-ke.b)*Ie+ke.b,a:(Oe.a-ke.a)*Ie+ke.a};return s(ir)},s.readability=function(U,Q){var $=s(U),ke=s(Q);return(e.max($.getLuminance(),ke.getLuminance())+.05)/(e.min($.getLuminance(),ke.getLuminance())+.05)},s.isReadable=function(U,Q,$){var ke=s.readability(U,Q),Oe,Ie;switch(Ie=!1,Oe=pe($),Oe.level+Oe.size){case"AAsmall":case"AAAlarge":Ie=ke>=4.5;break;case"AAlarge":Ie=ke>=3;break;case"AAAsmall":Ie=ke>=7;break}return Ie},s.mostReadable=function(U,Q,$){var ke=null,Oe=0,Ie,ir,or,Ue;$=$||{},ir=$.includeFallbackColors,or=$.level,Ue=$.size;for(var tr=0;trOe&&(Oe=Ie,ke=s(Q[tr]));return s.isReadable(U,ke,{level:or,size:Ue})||!ir?ke:($.includeFallbackColors=!1,s.mostReadable(U,["#fff","#000"],$))};var G=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},re=s.hexNames=ne(G);function ne(U){var Q={};for(var $ in U)U.hasOwnProperty($)&&(Q[U[$]]=$);return Q}function K(U){return U=parseFloat(U),(isNaN(U)||U<0||U>1)&&(U=1),U}function ee(U,Q){De(U)&&(U="100%");var $=Ne(U);return U=i(Q,o(0,parseFloat(U))),$&&(U=parseInt(U*Q,10)/100),e.abs(U-Q)<1e-6?1:U%Q/parseFloat(Q)}function fe(U){return i(1,o(0,U))}function he(U){return parseInt(U,16)}function De(U){return typeof U=="string"&&U.indexOf(".")!=-1&&parseFloat(U)===1}function Ne(U){return typeof U=="string"&&U.indexOf("%")!=-1}function Fe(U){return U.length==1?"0"+U:""+U}function Xe(U){return U<=1&&(U=U*100+"%"),U}function Le(U){return e.round(parseFloat(U)*255).toString(16)}function rr(U){return he(U)/255}var se=function(){var U="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",$="(?:"+Q+")|(?:"+U+")",ke="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",Oe="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?";return{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+ke),rgba:new RegExp("rgba"+Oe),hsl:new RegExp("hsl"+ke),hsla:new RegExp("hsla"+Oe),hsv:new RegExp("hsv"+ke),hsva:new RegExp("hsva"+Oe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ye(U){return!!se.CSS_UNIT.exec(U)}function we(U){U=U.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(G[U])U=G[U],Q=!0;else if(U=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $;return($=se.rgb.exec(U))?{r:$[1],g:$[2],b:$[3]}:($=se.rgba.exec(U))?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=se.hsl.exec(U))?{h:$[1],s:$[2],l:$[3]}:($=se.hsla.exec(U))?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=se.hsv.exec(U))?{h:$[1],s:$[2],v:$[3]}:($=se.hsva.exec(U))?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=se.hex8.exec(U))?{r:he($[1]),g:he($[2]),b:he($[3]),a:rr($[4]),format:Q?"name":"hex8"}:($=se.hex6.exec(U))?{r:he($[1]),g:he($[2]),b:he($[3]),format:Q?"name":"hex"}:($=se.hex4.exec(U))?{r:he($[1]+""+$[1]),g:he($[2]+""+$[2]),b:he($[3]+""+$[3]),a:rr($[4]+""+$[4]),format:Q?"name":"hex8"}:($=se.hex3.exec(U))?{r:he($[1]+""+$[1]),g:he($[2]+""+$[2]),b:he($[3]+""+$[3]),format:Q?"name":"hex"}:!1}function pe(U){var Q,$;return U=U||{level:"AA",size:"small"},Q=(U.level||"AA").toUpperCase(),$=(U.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),$!=="small"&&$!=="large"&&($="small"),{level:Q,size:$}}typeof fd!="undefined"&&fd.exports?fd.exports=s:window.tinycolor=s})(Math)});var la=te(r1=>{"use strict";var m6=Gs(),Qv=Array.isArray;function nH(e,r){var t,n;for(t=0;t{"use strict";y6.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var t1=te((rle,b6)=>{"use strict";b6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var _0=te((tle,w6)=>{"use strict";var _6=t1(),x6=$a(),Ly=x6({editType:"none"});Ly.family.dflt=_6.HOVERFONT;Ly.size.dflt=_6.HOVERFONTSIZE;w6.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Ly,grouptitlefont:x6({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var cd=te((nle,M6)=>{"use strict";var aH=$a(),n1=_0().hoverlabel,a1=la().extendFlat;M6.exports={hoverlabel:{bgcolor:a1({},n1.bgcolor,{arrayOk:!0}),bordercolor:a1({},n1.bordercolor,{arrayOk:!0}),font:aH({arrayOk:!0,editType:"none"}),align:a1({},n1.align,{arrayOk:!0}),namelength:a1({},n1.namelength,{arrayOk:!0}),showarrow:a1({},n1.showarrow),editType:"none"}}});var bo=te((ale,A6)=>{"use strict";var iH=$a(),oH=cd();A6.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:iH({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:oH.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Jf=te((ile,S6)=>{"use strict";var lH=Jl(),vd={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},T6=vd.RdBu;function sH(e,r){if(r||(r=T6),!e)return r;function t(){try{e=vd[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),k6(e)?e:r}function k6(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";$f.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];$f.defaultLine="#444";$f.lightLine="#eee";$f.background="#fff";$f.borderLine="#BEC8D9";$f.lightFraction=100*10/11});var Pt=te((lle,C6)=>{"use strict";var Ci=Jl(),fH=Ut(),cH=ji().isTypedArray,ya=C6.exports={},hd=cl();ya.defaults=hd.defaults;var vH=ya.defaultLine=hd.defaultLine;ya.lightLine=hd.lightLine;var Dy=ya.background=hd.background;ya.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};ya.rgb=function(e){return ya.tinyRGB(Ci(e))};ya.opacity=function(e){return e?Ci(e).getAlpha():0};ya.addOpacity=function(e,r){var t=Ci(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};ya.combine=function(e,r){var t=Ci(e).toRgb();if(t.a===1)return Ci(e).toRgbString();var n=Ci(r||Dy).toRgb(),a=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},i={r:a.r*(1-t.a)+t.r*t.a,g:a.g*(1-t.a)+t.g*t.a,b:a.b*(1-t.a)+t.b*t.a};return Ci(i).toRgbString()};ya.interpolate=function(e,r,t){var n=Ci(e).toRgb(),a=Ci(r).toRgb(),i={r:t*n.r+(1-t)*a.r,g:t*n.g+(1-t)*a.g,b:t*n.b+(1-t)*a.b};return Ci(i).toRgbString()};ya.contrast=function(e,r,t){var n=Ci(e);n.getAlpha()!==1&&(n=Ci(ya.combine(e,Dy)));var a=n.isDark()?r?n.lighten(r):Dy:t?n.darken(t):vH;return a.toString()};ya.stroke=function(e,r){var t=Ci(r);e.style({stroke:ya.tinyRGB(t),"stroke-opacity":t.getAlpha()})};ya.fill=function(e,r){var t=Ci(r);e.style({fill:ya.tinyRGB(t),"fill-opacity":t.getAlpha()})};ya.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,n,a,i;for(t=0;t=0)))return e;if(i===3)n[i]>1&&(n[i]=1);else if(n[i]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return a?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var dd=te((sle,L6)=>{"use strict";L6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var x0=te(q6=>{"use strict";q6.counter=function(e,r,t,n){var a=(r||"")+(t?"":"$"),i=n===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+a)}});var R6=te(Li=>{"use strict";var Ey=Ut(),D6=Jl(),E6=la().extendFlat,hH=bo(),dH=Jf(),pH=Pt(),gH=dd().DESELECTDIM,w0=$v(),P6=x0().counter,mH=b0().modHalf,$l=ji().isArrayOrTypedArray,Eu=ji().isTypedArraySpec,Pu=ji().decodeTypedArraySpec;Li.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set($l(e)?e:Eu(e)?Pu(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;nn.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}Eu(e)&&(e=Pu(e)),e%1||!Ey(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Eu(e)&&(e=Pu(e)),D6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return D6(a).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(n)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(dH.get(e,t))}},angle:{coerceFunction:function(e,r,t){Eu(e)&&(e=Pu(e)),e==="auto"?r.set("auto"):Ey(e)?r.set(mH(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||P6(t);if(typeof e=="string"&&a.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!P6(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),i=0;i{"use strict";var z6={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},N6={};function F6(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),F6(n,r[t]))}}F6(z6,N6);I6.exports={configAttributes:z6,dfltConfig:N6}});var Ry=te((vle,H6)=>{"use strict";var Py=kt(),yH=Ut(),i1=[];H6.exports=function(e,r){if(i1.indexOf(e)!==-1)return;i1.push(e);var t=1e3;yH(r)?t=r:r==="long"&&(t=3e3);var n=Py.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(i1);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=i1.indexOf(l);s!==-1&&i1.splice(s,1),Py.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=Py.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),u=o.split(//g),f=0;f{"use strict";var M0=Kf().dfltConfig,zy=Ry(),Ny=B6.exports={};Ny.log=function(){var e;if(M0.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Ny.warn=function(){var e;if(M0.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Ny.error=function(){var e;if(M0.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var gd=te((dle,O6)=>{"use strict";O6.exports=function(){}});var Fy=te((ple,U6)=>{"use strict";U6.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{Y6.exports=bH;function bH(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var W6=te((mle,V6)=>{V6.exports=_H;function _H(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var X6=te((yle,Z6)=>{Z6.exports=xH;function xH(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Iy=te((ble,j6)=>{j6.exports=wH;function wH(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var $6=te((_le,J6)=>{J6.exports=MH;function MH(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=i,e[11]=r[14],e[12]=a,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var Q6=te((xle,K6)=>{K6.exports=AH;function AH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],b=r[15],C=t*l-n*o,x=t*s-a*o,_=t*u-i*o,A=n*s-a*l,k=n*u-i*l,M=a*u-i*s,D=f*p-v*m,z=f*y-h*m,F=f*b-d*m,I=v*y-h*p,W=v*b-d*p,B=h*b-d*y,X=C*B-x*W+_*I+A*F-k*z+M*D;return X?(X=1/X,e[0]=(l*B-s*W+u*I)*X,e[1]=(a*W-n*B-i*I)*X,e[2]=(p*M-y*k+b*A)*X,e[3]=(h*k-v*M-d*A)*X,e[4]=(s*F-o*B-u*z)*X,e[5]=(t*B-a*F+i*z)*X,e[6]=(y*_-m*M-b*x)*X,e[7]=(f*M-h*_+d*x)*X,e[8]=(o*W-l*F+u*D)*X,e[9]=(n*F-t*W-i*D)*X,e[10]=(m*k-p*_+b*C)*X,e[11]=(v*_-f*k-d*C)*X,e[12]=(l*z-o*I-s*D)*X,e[13]=(t*I-n*z+a*D)*X,e[14]=(p*x-m*A-y*C)*X,e[15]=(f*A-v*x+h*C)*X,e):null}});var rx=te((wle,ex)=>{ex.exports=TH;function TH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],b=r[15];return e[0]=l*(h*b-d*y)-v*(s*b-u*y)+p*(s*d-u*h),e[1]=-(n*(h*b-d*y)-v*(a*b-i*y)+p*(a*d-i*h)),e[2]=n*(s*b-u*y)-l*(a*b-i*y)+p*(a*u-i*s),e[3]=-(n*(s*d-u*h)-l*(a*d-i*h)+v*(a*u-i*s)),e[4]=-(o*(h*b-d*y)-f*(s*b-u*y)+m*(s*d-u*h)),e[5]=t*(h*b-d*y)-f*(a*b-i*y)+m*(a*d-i*h),e[6]=-(t*(s*b-u*y)-o*(a*b-i*y)+m*(a*u-i*s)),e[7]=t*(s*d-u*h)-o*(a*d-i*h)+f*(a*u-i*s),e[8]=o*(v*b-d*p)-f*(l*b-u*p)+m*(l*d-u*v),e[9]=-(t*(v*b-d*p)-f*(n*b-i*p)+m*(n*d-i*v)),e[10]=t*(l*b-u*p)-o*(n*b-i*p)+m*(n*u-i*l),e[11]=-(t*(l*d-u*v)-o*(n*d-i*v)+f*(n*u-i*l)),e[12]=-(o*(v*y-h*p)-f*(l*y-s*p)+m*(l*h-s*v)),e[13]=t*(v*y-h*p)-f*(n*y-a*p)+m*(n*h-a*v),e[14]=-(t*(l*y-s*p)-o*(n*y-a*p)+m*(n*s-a*l)),e[15]=t*(l*h-s*v)-o*(n*h-a*v)+f*(n*s-a*l),e}});var nx=te((Mle,tx)=>{tx.exports=kH;function kH(e){var r=e[0],t=e[1],n=e[2],a=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],v=e[10],h=e[11],d=e[12],m=e[13],p=e[14],y=e[15],b=r*o-t*i,C=r*l-n*i,x=r*s-a*i,_=t*l-n*o,A=t*s-a*o,k=n*s-a*l,M=u*m-f*d,D=u*p-v*d,z=u*y-h*d,F=f*p-v*m,I=f*y-h*m,W=v*y-h*p;return b*W-C*I+x*F+_*z-A*D+k*M}});var ix=te((Ale,ax)=>{ax.exports=SH;function SH(e,r,t){var n=r[0],a=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],v=r[8],h=r[9],d=r[10],m=r[11],p=r[12],y=r[13],b=r[14],C=r[15],x=t[0],_=t[1],A=t[2],k=t[3];return e[0]=x*n+_*l+A*v+k*p,e[1]=x*a+_*s+A*h+k*y,e[2]=x*i+_*u+A*d+k*b,e[3]=x*o+_*f+A*m+k*C,x=t[4],_=t[5],A=t[6],k=t[7],e[4]=x*n+_*l+A*v+k*p,e[5]=x*a+_*s+A*h+k*y,e[6]=x*i+_*u+A*d+k*b,e[7]=x*o+_*f+A*m+k*C,x=t[8],_=t[9],A=t[10],k=t[11],e[8]=x*n+_*l+A*v+k*p,e[9]=x*a+_*s+A*h+k*y,e[10]=x*i+_*u+A*d+k*b,e[11]=x*o+_*f+A*m+k*C,x=t[12],_=t[13],A=t[14],k=t[15],e[12]=x*n+_*l+A*v+k*p,e[13]=x*a+_*s+A*h+k*y,e[14]=x*i+_*u+A*d+k*b,e[15]=x*o+_*f+A*m+k*C,e}});var lx=te((Tle,ox)=>{ox.exports=CH;function CH(e,r,t){var n=t[0],a=t[1],i=t[2],o,l,s,u,f,v,h,d,m,p,y,b;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*i+r[12],e[13]=r[1]*n+r[5]*a+r[9]*i+r[13],e[14]=r[2]*n+r[6]*a+r[10]*i+r[14],e[15]=r[3]*n+r[7]*a+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],v=r[5],h=r[6],d=r[7],m=r[8],p=r[9],y=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=v,e[6]=h,e[7]=d,e[8]=m,e[9]=p,e[10]=y,e[11]=b,e[12]=o*n+f*a+m*i+r[12],e[13]=l*n+v*a+p*i+r[13],e[14]=s*n+h*a+y*i+r[14],e[15]=u*n+d*a+b*i+r[15]),e}});var ux=te((kle,sx)=>{sx.exports=LH;function LH(e,r,t){var n=t[0],a=t[1],i=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var cx=te((Sle,fx)=>{fx.exports=qH;function qH(e,r,t,n){var a=n[0],i=n[1],o=n[2],l=Math.sqrt(a*a+i*i+o*o),s,u,f,v,h,d,m,p,y,b,C,x,_,A,k,M,D,z,F,I,W,B,X,G;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,v=r[0],h=r[1],d=r[2],m=r[3],p=r[4],y=r[5],b=r[6],C=r[7],x=r[8],_=r[9],A=r[10],k=r[11],M=a*a*f+u,D=i*a*f+o*s,z=o*a*f-i*s,F=a*i*f-o*s,I=i*i*f+u,W=o*i*f+a*s,B=a*o*f+i*s,X=i*o*f-a*s,G=o*o*f+u,e[0]=v*M+p*D+x*z,e[1]=h*M+y*D+_*z,e[2]=d*M+b*D+A*z,e[3]=m*M+C*D+k*z,e[4]=v*F+p*I+x*W,e[5]=h*F+y*I+_*W,e[6]=d*F+b*I+A*W,e[7]=m*F+C*I+k*W,e[8]=v*B+p*X+x*G,e[9]=h*B+y*X+_*G,e[10]=d*B+b*X+A*G,e[11]=m*B+C*X+k*G,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var hx=te((Cle,vx)=>{vx.exports=DH;function DH(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*a+u*n,e[5]=o*a+f*n,e[6]=l*a+v*n,e[7]=s*a+h*n,e[8]=u*a-i*n,e[9]=f*a-o*n,e[10]=v*a-l*n,e[11]=h*a-s*n,e}});var px=te((Lle,dx)=>{dx.exports=EH;function EH(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*a-u*n,e[1]=o*a-f*n,e[2]=l*a-v*n,e[3]=s*a-h*n,e[8]=i*n+u*a,e[9]=o*n+f*a,e[10]=l*n+v*a,e[11]=s*n+h*a,e}});var mx=te((qle,gx)=>{gx.exports=PH;function PH(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],v=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*a+u*n,e[1]=o*a+f*n,e[2]=l*a+v*n,e[3]=s*a+h*n,e[4]=u*a-i*n,e[5]=f*a-o*n,e[6]=v*a-l*n,e[7]=h*a-s*n,e}});var bx=te((Dle,yx)=>{yx.exports=RH;function RH(e,r,t){var n,a,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,n=Math.sin(r),a=Math.cos(r),i=1-a,e[0]=o*o*i+a,e[1]=l*o*i+s*n,e[2]=s*o*i-l*n,e[3]=0,e[4]=o*l*i-s*n,e[5]=l*l*i+a,e[6]=s*l*i+o*n,e[7]=0,e[8]=o*s*i+l*n,e[9]=l*s*i-o*n,e[10]=s*s*i+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var xx=te((Ele,_x)=>{_x.exports=zH;function zH(e,r,t){var n=r[0],a=r[1],i=r[2],o=r[3],l=n+n,s=a+a,u=i+i,f=n*l,v=n*s,h=n*u,d=a*s,m=a*u,p=i*u,y=o*l,b=o*s,C=o*u;return e[0]=1-(d+p),e[1]=v+C,e[2]=h-b,e[3]=0,e[4]=v-C,e[5]=1-(f+p),e[6]=m+y,e[7]=0,e[8]=h+b,e[9]=m-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var Mx=te((Ple,wx)=>{wx.exports=NH;function NH(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Tx=te((Rle,Ax)=>{Ax.exports=FH;function FH(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Sx=te((zle,kx)=>{kx.exports=IH;function IH(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Lx=te((Nle,Cx)=>{Cx.exports=HH;function HH(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Dx=te((Fle,qx)=>{qx.exports=BH;function BH(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Hy=te((Ile,Ex)=>{Ex.exports=OH;function OH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=t+t,l=n+n,s=a+a,u=t*o,f=n*o,v=n*l,h=a*o,d=a*l,m=a*s,p=i*o,y=i*l,b=i*s;return e[0]=1-v-m,e[1]=f+b,e[2]=h-y,e[3]=0,e[4]=f-b,e[5]=1-u-m,e[6]=d+p,e[7]=0,e[8]=h+y,e[9]=d-p,e[10]=1-u-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Rx=te((Hle,Px)=>{Px.exports=UH;function UH(e,r,t,n,a,i,o){var l=1/(t-r),s=1/(a-n),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var Nx=te((Ble,zx)=>{zx.exports=YH;function YH(e,r,t,n,a){var i=1/Math.tan(r/2),o=1/(n-a);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*o,e[15]=0,e}});var Ix=te((Ole,Fx)=>{Fx.exports=GH;function GH(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(a+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(a-i)*u*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var Bx=te((Ule,Hx)=>{Hx.exports=VH;function VH(e,r,t,n,a,i,o){var l=1/(r-t),s=1/(n-a),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*s,e[14]=(o+i)*u,e[15]=1,e}});var Ux=te((Yle,Ox)=>{var WH=Iy();Ox.exports=ZH;function ZH(e,r,t,n){var a,i,o,l,s,u,f,v,h,d,m=r[0],p=r[1],y=r[2],b=n[0],C=n[1],x=n[2],_=t[0],A=t[1],k=t[2];return Math.abs(m-_)<1e-6&&Math.abs(p-A)<1e-6&&Math.abs(y-k)<1e-6?WH(e):(f=m-_,v=p-A,h=y-k,d=1/Math.sqrt(f*f+v*v+h*h),f*=d,v*=d,h*=d,a=C*h-x*v,i=x*f-b*h,o=b*v-C*f,d=Math.sqrt(a*a+i*i+o*o),d?(d=1/d,a*=d,i*=d,o*=d):(a=0,i=0,o=0),l=v*o-h*i,s=h*a-f*o,u=f*i-v*a,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=v,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(a*m+i*p+o*y),e[13]=-(l*m+s*p+u*y),e[14]=-(f*m+v*p+h*y),e[15]=1,e)}});var Gx=te((Gle,Yx)=>{Yx.exports=XH;function XH(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var By=te((Vle,Vx)=>{Vx.exports={create:G6(),clone:W6(),copy:X6(),identity:Iy(),transpose:$6(),invert:Q6(),adjoint:rx(),determinant:nx(),multiply:ix(),translate:lx(),scale:ux(),rotate:cx(),rotateX:hx(),rotateY:px(),rotateZ:mx(),fromRotation:bx(),fromRotationTranslation:xx(),fromScaling:Mx(),fromTranslation:Tx(),fromXRotation:Sx(),fromYRotation:Lx(),fromZRotation:Dx(),fromQuat:Hy(),frustum:Rx(),perspective:Nx(),perspectiveFromFieldOfView:Ix(),ortho:Bx(),lookAt:Ux(),str:Gx()}});var md=te(jn=>{"use strict";var jH=By();jn.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var JH=kt(),Wx=Ru(),$H=md(),KH=By();function QH(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function eB(e){var r=JH.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function Zx(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function rB(e,r){Xx("global",e,r)}function Xx(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var i=a.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):Wx.warn("addStyleRule failed"):Wx.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function tB(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&Zx(t)}function nB(e,r,t,n,a,i){var o=n.split(":"),l=a.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),u.setAttribute(s,!0))})}function aB(e){var r=Jx(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=jx(n);if(a){var i=$H.convertCssMatrix(a);t=KH.multiply(t,t,i)}}),t}function jx(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function Jx(e){for(var r=[];iB(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function iB(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function oB(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}$x.exports={getGraphDiv:QH,isPlotDiv:eB,removeElement:Zx,addStyleRule:rB,addRelatedStyleRule:Xx,deleteRelatedStyleRule:tB,setStyleOnHover:nB,getFullTransformMatrix:aB,getElementTransformMatrix:jx,getElementAndAncestors:Jx,equalDomRects:oB}});var l1=te((Xle,Kx)=>{"use strict";Kx.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var _o=te((jle,i7)=>{"use strict";var e7=la().extendFlat,lB=Gs(),r7={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},t7={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},sB=r7.flags.slice().concat(["fullReplot"]),uB=t7.flags.slice().concat("layoutReplot");i7.exports={traces:r7,layout:t7,traceFlags:function(){return Qx(sB)},layoutFlags:function(){return Qx(uB)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";Oy.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Oy.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Uy=te(($le,o7)=>{"use strict";o7.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Vs=te(s1=>{"use strict";var l7=Uy(),fB=l7.FORMAT_LINK,cB=l7.DATE_FORMAT_LINK;function vB(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,fB,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,cB,"for details on the date formatting syntax."].join(" ")}s1.templateFormatStringDescription=vB;function Yy(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var n=[],a=0;a{"use strict";function zu(e,r){return r?r.d2l(e):e}function s7(e,r){return r?r.l2d(e):e}function hB(e){return e.x0}function dB(e){return e.x1}function pB(e){return e.y0}function gB(e){return e.y1}function u7(e){return e.x0shift||0}function f7(e){return e.x1shift||0}function c7(e){return e.y0shift||0}function v7(e){return e.y1shift||0}function yd(e,r){return zu(e.x1,r)+f7(e)-zu(e.x0,r)-u7(e)}function bd(e,r,t){return zu(e.y1,t)+v7(e)-zu(e.y0,t)-c7(e)}function mB(e,r){return Math.abs(yd(e,r))}function yB(e,r,t){return Math.abs(bd(e,r,t))}function bB(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(yd(e,r),2)+Math.pow(bd(e,r,t),2))}function _B(e,r){return s7((zu(e.x1,r)+f7(e)+zu(e.x0,r)+u7(e))/2,r)}function xB(e,r,t){return s7((zu(e.y1,t)+v7(e)+zu(e.y0,t)+c7(e))/2,t)}function wB(e,r,t){return e.type!=="line"?void 0:bd(e,r,t)/yd(e,r)}h7.exports={x0:hB,x1:dB,y0:pB,y1:gB,slope:wB,dx:yd,dy:bd,width:mB,height:yB,length:bB,xcenter:_B,ycenter:xB}});var g7=te((ese,p7)=>{"use strict";var MB=_o().overrideAll,Qf=bo(),d7=$a(),AB=Kl().dash,Nu=la().extendFlat,TB=Vs().shapeTexttemplateAttrs,kB=_d();p7.exports=MB({newshape:{visible:Nu({},Qf.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Nu({},Qf.legend,{}),legendgroup:Nu({},Qf.legendgroup,{}),legendgrouptitle:{text:Nu({},Qf.legendgrouptitle.text,{}),font:d7({})},legendrank:Nu({},Qf.legendrank,{}),legendwidth:Nu({},Qf.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Nu({},AB,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Nu({},Qf.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:TB({newshape:!0},{keys:Object.keys(kB)}),font:d7({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var y7=te((rse,m7)=>{"use strict";var SB=Kl().dash,CB=la().extendFlat;m7.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:CB({},SB,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var xd=te((tse,b7)=>{"use strict";b7.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var A0=te((nse,M7)=>{"use strict";var Gy=$a(),LB=l1(),wd=cl(),_7=g7(),x7=y7(),qB=xd(),w7=la().extendFlat,Md=Gy({editType:"calc"});Md.family.dflt='"Open Sans", verdana, arial, sans-serif';Md.size.dflt=12;Md.color.dflt=wd.defaultLine;M7.exports={font:Md,title:{text:{valType:"string",editType:"layoutstyle"},font:Gy({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Gy({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:w7(qB({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:wd.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:wd.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:wd.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:_7.newshape,activeshape:_7.activeshape,newselection:x7.newselection,activeselection:x7.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:w7({},LB.transition,{editType:"none"})}});var A7=te(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var dt=te(qt=>{"use strict";var T0=Ru(),T7=gd(),k7=Fy(),DB=Gs(),EB=o1().addStyleRule,S7=la(),PB=bo(),RB=A0(),zB=S7.extendFlat,Vy=S7.extendDeepAll;qt.modules={};qt.allCategories={};qt.allTypes=[];qt.subplotsRegistry={};qt.componentsRegistry={};qt.layoutArrayContainers=[];qt.layoutArrayRegexes=[];qt.traceLayoutAttributes={};qt.localeRegistry={};qt.apiMethodRegistry={};qt.collectableSubplotTypes=null;qt.register=function(r){if(qt.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var OB=m0().timeFormat,I7=Ut(),Wy=Ru(),Iu=b0().mod,C0=Rn(),xo=C0.BADNUM,qi=C0.ONEDAY,u1=C0.ONEHOUR,Fu=C0.ONEMIN,S0=C0.ONESEC,f1=C0.EPOCHJD,Ws=dt(),E7=m0().utcFormat,UB=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,YB=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,P7=new Date().getFullYear()-70;function Zs(e){return e&&Ws.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Jn.dateTick0=function(e,r){var t=GB(e,!!r);if(r<2)return t;var n=Jn.dateTime2ms(t,e);return n+=qi*(r-1),Jn.ms2DateTime(n,0,e)};function GB(e,r){return Zs(e)?r?Ws.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ws.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Jn.dfltRange=function(e){return Zs(e)?Ws.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Jn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Td,kd;Jn.dateTime2ms=function(e,r){if(Jn.isJSDate(e)){var t=e.getTimezoneOffset()*Fu,n=(e.getUTCMinutes()-e.getMinutes())*Fu+(e.getUTCSeconds()-e.getSeconds())*S0+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*Fu;t=t-a/2+Iu(n-t+a/2,a)}return e=Number(e)-t,e>=Td&&e<=kd?e:xo}if(typeof e!="string"&&typeof e!="number")return xo;e=String(e);var i=Zs(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.substr(1),r="");var l=i&&r.substr(0,7)==="chinese",s=e.match(l?YB:UB);if(!s)return xo;var u=s[1],f=s[3]||"1",v=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return xo;u=Number(u);var p;try{var y=Ws.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),p=y.newDate(u,y.toMonthIndex(u,f,b),v)}else p=y.newDate(u,Number(f),v)}catch(x){return xo}return p?(p.toJD()-f1)*qi+h*u1+d*Fu+m*S0:xo}u.length===2?u=(Number(u)+2e3-P7)%100+P7:u=Number(u),f-=1;var C=new Date(Date.UTC(2e3,f,v,h,d));return C.setUTCFullYear(u),C.getUTCMonth()!==f||C.getUTCDate()!==v?xo:C.getTime()+m*S0};Td=Jn.MIN_MS=Jn.dateTime2ms("-9999");kd=Jn.MAX_MS=Jn.dateTime2ms("9999-12-31 23:59:59.9999");Jn.isDateTime=function(e,r){return Jn.dateTime2ms(e,r)!==xo};function k0(e,r){return String(e+Math.pow(10,r)).substr(1)}var Ad=90*qi,R7=3*u1,z7=5*Fu;Jn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Td&&e<=kd))return xo;r||(r=0);var n=Math.floor(Iu(e+.05,1)*10),a=Math.round(e-n/10),i,o,l,s,u,f;if(Zs(t)){var v=Math.floor(a/qi)+f1,h=Math.floor(Iu(e,qi));try{i=Ws.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=E7("G%Y-%m-%d")(new Date(a))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=r=Td+qi&&e<=kd-qi))return xo;var r=Math.floor(Iu(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=OB("%Y-%m-%d")(t),a=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return H7(n,a,i,o,l)};function H7(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+k0(r,2)+":"+k0(t,2),(n||a)&&(e+=":"+k0(n,2),a))){for(var i=4;a%10===0;)i-=1,a/=10;e+="."+k0(a,i)}return e}Jn.cleanDate=function(e,r,t){if(e===xo)return r;if(Jn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Zs(t))return Wy.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Jn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Jn.isDateTime(e,t))return Wy.error("unrecognized date",e),r;return e};var VB=/%\d?f/g,WB=/%h/g,ZB={1:"1",2:"1",3:"2",4:"2"};function N7(e,r,t,n){e=e.replace(VB,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(WB,function(){return ZB[t("%q")(a)]}),Zs(n))try{e=Ws.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(i){return"Invalid"}return t(e)(a)}var XB=[59,59.9,59.99,59.999,59.9999];function jB(e,r){var t=Iu(e+.05,qi),n=k0(Math.floor(t/u1),2)+":"+k0(Iu(Math.floor(t/Fu),60),2);if(r!=="M"){I7(r)||(r=0);var a=Math.min(Iu(e/S0,60),XB[r]),i=(100+a).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+i}return n}Jn.formatDate=function(e,r,t,n,a,i){if(a=Zs(a)&&a,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return jB(e,t)+` -`+N7(i.dayMonthYear,e,n,a);return N7(r,e,n,a)};var F7=3*qi;Jn.incrementMonth=function(e,r,t){t=Zs(t)&&t;var n=Iu(e,qi);if(e=Math.round(e-n),t)try{var a=Math.round(e/qi)+f1,i=Ws.getComponentMethod("calendars","getCal")(t),o=i.fromJD(a);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-f1)*qi+n}catch(s){Wy.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+F7);return l.setUTCMonth(l.getUTCMonth()+r)+n-F7};Jn.findExactDates=function(e,r){for(var t=0,n=0,a=0,i=0,o,l,s=Zs(r)&&Ws.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";O7.exports=function(r){return r}});var Xy=te(Xs=>{"use strict";var JB=Ut(),$B=Ru(),KB=Sd(),QB=Rn().BADNUM,Zy=1e-9;Xs.findBin=function(e,r,t){if(JB(r.start))return t?Math.ceil((e-r.start)/r.size-Zy)-1:Math.floor((e-r.start)/r.size+Zy);var n=0,a=r.length,i=0,o=a>1?(r[a-1]-r[0])/(a-1):1,l,s;for(o>=0?s=t?eO:rO:s=t?nO:tO,e+=o*Zy*(t?-1:1)*(o>=0?1:-1);n90&&$B.log("Long binary search..."),n-1};function eO(e,r){return er}function nO(e,r){return e>=r}Xs.sorterAsc=function(e,r){return e-r};Xs.sorterDes=function(e,r){return r-e};Xs.distinctVals=function(e){var r=e.slice();r.sort(Xs.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===QB;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>a&&(n=Math.min(n,u),i.push(s),o=s)}return{vals:i,minDiff:n}};Xs.roundUp=function(e,r,t){for(var n=0,a=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;n0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};Xs.findIndexOfMin=function(e,r){r=r||KB;for(var t=1/0,n,a=0;a{"use strict";U7.exports=function(r){return Object.keys(r).sort()}});var Y7=te($n=>{"use strict";var c1=Ut(),aO=ji().isArrayOrTypedArray;$n.aggNums=function(e,r,t,n){var a,i;if((!n||n>t.length)&&(n=t.length),c1(r)||(r=!1),aO(t[0])){for(i=new Array(n),a=0;ae.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var X7=te((vse,Z7)=>{"use strict";var G7=b0(),jy=G7.mod,iO=G7.modHalf,v1=Math.PI,Hu=2*v1;function oO(e){return e/180*v1}function lO(e){return e/v1*180}function Jy(e){return Math.abs(e[1]-e[0])>Hu-1e-14}function V7(e,r){return iO(r-e,Hu)}function sO(e,r){return Math.abs(V7(e,r))}function W7(e,r){if(Jy(r))return!0;var t,n;r[0]n&&(n+=Hu);var a=jy(e,Hu),i=a+Hu;return a>=t&&a<=n||i>=t&&i<=n}function uO(e,r,t,n){if(!W7(r,n))return!1;var a,i;return t[0]=a&&e<=i}function $y(e,r,t,n,a,i,o){a=a||0,i=i||0;var l=Jy([t,n]),s,u,f,v,h;l?(s=0,u=v1,f=Hu):t{"use strict";ec.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};ec.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};ec.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};ec.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};ec.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};ec.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var K7=te(rc=>{"use strict";var Ky=b0().mod;rc.segmentsIntersect=$7;function $7(e,r,t,n,a,i,o,l){var s=t-e,u=a-e,f=o-a,v=n-r,h=i-r,d=l-i,m=s*d-f*v;if(m===0)return null;var p=(u*d-f*h)/m,y=(u*v-s*h)/m;return y<0||y>1||p<0||p>1?null:{x:e+s*p,y:r+v*p}}rc.segmentDistance=function(r,t,n,a,i,o,l,s){if($7(r,t,n,a,i,o,l,s))return 0;var u=n-r,f=a-t,v=l-i,h=s-o,d=u*u+f*f,m=v*v+h*h,p=Math.min(Ld(u,f,d,i-r,o-t),Ld(u,f,d,l-r,s-t),Ld(v,h,m,r-i,t-o),Ld(v,h,m,n-i,a-o));return Math.sqrt(p)};function Ld(e,r,t,n,a){var i=n*e+a*r;if(i<0)return n*n+a*a;if(i>t){var o=n-e,l=a-r;return o*o+l*l}else{var s=n*r-a*e;return s*s/t}}var qd,Qy,J7;rc.getTextLocation=function(r,t,n,a){if((r!==Qy||a!==J7)&&(qd={},Qy=r,J7=a),qd[n])return qd[n];var i=r.getPointAtLength(Ky(n-a/2,t)),o=r.getPointAtLength(Ky(n+a/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(Ky(n,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,v={x:u,y:f,theta:l};return qd[n]=v,v};rc.clearLocationCache=function(){Qy=null};rc.getVisibleSegment=function(r,t,n){var a=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,v,h;function d(p){var y=r.getPointAtLength(p);p===0?v=y:p===u&&(h=y);var b=y.xi?y.x-i:0,C=y.yl?y.y-l:0;return Math.sqrt(b*b+C*C)}for(var m=d(s);m;){if(s+=m+n,s>f)return;m=d(s)}for(m=d(f);m;){if(f-=m+n,s>f)return;m=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(v.x-h.x)<.1&&Math.abs(v.y-h.y)<.1}};rc.findPointOnPath=function(r,t,n,a){a=a||{};for(var i=a.pathLength||r.getTotalLength(),o=a.tolerance||.001,l=a.iterationLimit||30,s=r.getPointAtLength(0)[n]>r.getPointAtLength(i)[n]?-1:1,u=0,f=0,v=i,h,d,m;u0?v=h:f=h,u++}return d}});var Dd=te(h1=>{"use strict";var js={};h1.throttle=function(r,t,n){var a=js[r],i=Date.now();if(!a){for(var o in js)js[o].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};h1.done=function(e){var r=js[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};h1.clear=function(e){if(e)Q7(js[e]),delete js[e];else for(var r in js)h1.clear(r)};function Q7(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var rw=te((gse,ew)=>{"use strict";ew.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var tw=te((mse,Ed)=>{"use strict";Ed.exports=e2;Ed.exports.isMobile=e2;Ed.exports.default=e2;var hO=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,dO=/CrOS/,pO=/android|ipad|playbook|silk/i;function e2(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=hO.test(r)&&!dO.test(r)||!!e.tablet&&pO.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var aw=te((yse,nw)=>{"use strict";var gO=Ut(),mO=tw();nw.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=yO(),typeof t!="string")return!0;var n=mO({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),i=1;i-1;l--){var s=a[l];if(s.substr(0,8)==="Version/"){var u=s.substr(8).split(".")[0];if(gO(u)&&(u=+u),u>=13)return!0}}}return n};function yO(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var ow=te((bse,iw)=>{"use strict";var bO=kt();iw.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(o){o[0][i]=bO.select(this)}),a}});var sw=te((_se,lw)=>{"use strict";var _O=dt();lw.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[n]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=_O.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return t}});var fw=te((xse,uw)=>{"use strict";uw.exports=function(r){for(var t={},n=[],a=0,i=0;i{"use strict";cw.exports=function(r){for(var t=MO(r)?wO:xO,n=[],a=0;a{"use strict";hw.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,i=String(a).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(a).toPrecision(12);s.indexOf("e+")===-1&&(a=+s)}}return a}});var gw=te((Ase,pw)=>{"use strict";var AO=Ut(),TO=Rn().BADNUM,kO=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;pw.exports=function(r){return typeof r=="string"&&(r=r.replace(kO,"")),AO(r)?Number(r):TO}});var gr=te((Tse,Lw)=>{"use strict";var d1=kt(),SO=m0().utcFormat,CO=My().format,ww=Ut(),Mw=Rn(),Aw=Mw.FP_SAFE,LO=-Aw,mw=Mw.BADNUM,Pe=Lw.exports={};Pe.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var yw={};Pe.warnBadFormat=function(e){var r=String(e);yw[r]||(yw[r]=1,Pe.warn('encountered bad format: "'+r+'"'))};Pe.noFormat=function(e){return String(e)};Pe.numberFormat=function(e){var r;try{r=CO(Pe.adjustFormat(e))}catch(t){return Pe.warnBadFormat(e),Pe.noFormat}return r};Pe.nestedProperty=$v();Pe.keyedContainer=u6();Pe.relativeAttr=c6();Pe.isPlainObject=Gs();Pe.toLogRange=ud();Pe.relinkPrivateKeys=p6();var Bu=ji();Pe.isArrayBuffer=Bu.isArrayBuffer;Pe.isTypedArray=Bu.isTypedArray;Pe.isArrayOrTypedArray=Bu.isArrayOrTypedArray;Pe.isArray1D=Bu.isArray1D;Pe.ensureArray=Bu.ensureArray;Pe.concat=Bu.concat;Pe.maxRowLength=Bu.maxRowLength;Pe.minRowLength=Bu.minRowLength;var Tw=b0();Pe.mod=Tw.mod;Pe.modHalf=Tw.modHalf;var Ou=R6();Pe.valObjectMeta=Ou.valObjectMeta;Pe.coerce=Ou.coerce;Pe.coerce2=Ou.coerce2;Pe.coerceFont=Ou.coerceFont;Pe.coercePattern=Ou.coercePattern;Pe.coerceHoverinfo=Ou.coerceHoverinfo;Pe.coerceSelectionMarkerOpacity=Ou.coerceSelectionMarkerOpacity;Pe.validate=Ou.validate;var Ji=B7();Pe.dateTime2ms=Ji.dateTime2ms;Pe.isDateTime=Ji.isDateTime;Pe.ms2DateTime=Ji.ms2DateTime;Pe.ms2DateTimeLocal=Ji.ms2DateTimeLocal;Pe.cleanDate=Ji.cleanDate;Pe.isJSDate=Ji.isJSDate;Pe.formatDate=Ji.formatDate;Pe.incrementMonth=Ji.incrementMonth;Pe.dateTick0=Ji.dateTick0;Pe.dfltRange=Ji.dfltRange;Pe.findExactDates=Ji.findExactDates;Pe.MIN_MS=Ji.MIN_MS;Pe.MAX_MS=Ji.MAX_MS;var tc=Xy();Pe.findBin=tc.findBin;Pe.sorterAsc=tc.sorterAsc;Pe.sorterDes=tc.sorterDes;Pe.distinctVals=tc.distinctVals;Pe.roundUp=tc.roundUp;Pe.sort=tc.sort;Pe.findIndexOfMin=tc.findIndexOfMin;Pe.sortObjectKeys=Cd();var Js=Y7();Pe.aggNums=Js.aggNums;Pe.len=Js.len;Pe.mean=Js.mean;Pe.geometricMean=Js.geometricMean;Pe.median=Js.median;Pe.midRange=Js.midRange;Pe.variance=Js.variance;Pe.stdev=Js.stdev;Pe.interp=Js.interp;var vl=md();Pe.init2dArray=vl.init2dArray;Pe.transposeRagged=vl.transposeRagged;Pe.dot=vl.dot;Pe.translationMatrix=vl.translationMatrix;Pe.rotationMatrix=vl.rotationMatrix;Pe.rotationXYMatrix=vl.rotationXYMatrix;Pe.apply3DTransform=vl.apply3DTransform;Pe.apply2DTransform=vl.apply2DTransform;Pe.apply2DTransform2=vl.apply2DTransform2;Pe.convertCssMatrix=vl.convertCssMatrix;Pe.inverseTransformMatrix=vl.inverseTransformMatrix;var Ql=X7();Pe.deg2rad=Ql.deg2rad;Pe.rad2deg=Ql.rad2deg;Pe.angleDelta=Ql.angleDelta;Pe.angleDist=Ql.angleDist;Pe.isFullCircle=Ql.isFullCircle;Pe.isAngleInsideSector=Ql.isAngleInsideSector;Pe.isPtInsideSector=Ql.isPtInsideSector;Pe.pathArc=Ql.pathArc;Pe.pathSector=Ql.pathSector;Pe.pathAnnulus=Ql.pathAnnulus;var q0=j7();Pe.isLeftAnchor=q0.isLeftAnchor;Pe.isCenterAnchor=q0.isCenterAnchor;Pe.isRightAnchor=q0.isRightAnchor;Pe.isTopAnchor=q0.isTopAnchor;Pe.isMiddleAnchor=q0.isMiddleAnchor;Pe.isBottomAnchor=q0.isBottomAnchor;var D0=K7();Pe.segmentsIntersect=D0.segmentsIntersect;Pe.segmentDistance=D0.segmentDistance;Pe.getTextLocation=D0.getTextLocation;Pe.clearLocationCache=D0.clearLocationCache;Pe.getVisibleSegment=D0.getVisibleSegment;Pe.findPointOnPath=D0.findPointOnPath;var zd=la();Pe.extendFlat=zd.extendFlat;Pe.extendDeep=zd.extendDeep;Pe.extendDeepAll=zd.extendDeepAll;Pe.extendDeepNoArrays=zd.extendDeepNoArrays;var r2=Ru();Pe.log=r2.log;Pe.warn=r2.warn;Pe.error=r2.error;var qO=x0();Pe.counterRegex=qO.counter;var t2=Dd();Pe.throttle=t2.throttle;Pe.throttleDone=t2.done;Pe.clearThrottle=t2.clear;var hl=o1();Pe.getGraphDiv=hl.getGraphDiv;Pe.isPlotDiv=hl.isPlotDiv;Pe.removeElement=hl.removeElement;Pe.addStyleRule=hl.addStyleRule;Pe.addRelatedStyleRule=hl.addRelatedStyleRule;Pe.deleteRelatedStyleRule=hl.deleteRelatedStyleRule;Pe.setStyleOnHover=hl.setStyleOnHover;Pe.getFullTransformMatrix=hl.getFullTransformMatrix;Pe.getElementTransformMatrix=hl.getElementTransformMatrix;Pe.getElementAndAncestors=hl.getElementAndAncestors;Pe.equalDomRects=hl.equalDomRects;Pe.clearResponsive=rw();Pe.preserveDrawingBuffer=aw();Pe.makeTraceGroups=ow();Pe._=sw();Pe.notifier=Ry();Pe.filterUnique=fw();Pe.filterVisible=vw();Pe.pushUnique=Fy();Pe.increment=dw();Pe.cleanNumber=gw();Pe.ensureNumber=function(r){return ww(r)?(r=Number(r),r>Aw||r=r?!1:ww(e)&&e>=0&&e%1===0};Pe.noop=gd();Pe.identity=Sd();Pe.repeat=function(e,r){for(var t=new Array(r),n=0;nt?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Pe.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};Pe.simpleMap=function(e,r,t,n,a){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?a>10?(Pe.warn("randstr failed uniqueness"),o):e(r,t,n,(a||0)+1):o};Pe.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};Pe.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,i=new Array(a),o=new Array(t),l,s,u,f;for(l=0;l=n&&(u-=n*Math.floor(u/n)),u<0?u=-1-u:u>=t&&(u=n-1-u),f+=e[u]*i[s];o[l]=f}return o};Pe.syncOrAsync=function(e,r,t){var n,a;function i(){return Pe.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(i);return t&&t(r)};Pe.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};Pe.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,i,o;for(i=0;i0?a:0})};Pe.fillArray=function(e,r,t,n){if(n=n||Pe.identity,Pe.isArrayOrTypedArray(e))for(var a=0;aPO.test(window.navigator.userAgent);var RO=/Firefox\/(\d+)\.\d+/;Pe.getFirefoxVersion=function(){var e=RO.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Pe.isD3Selection=function(e){return e instanceof d1.selection};Pe.ensureSingle=function(e,r,t,n){var a=e.select(r+(t?"."+t:""));if(a.size())return a;var i=e.append(r);return t&&i.classed(t,!0),n&&i.call(n),i};Pe.ensureSingleById=function(e,r,t,n){var a=e.select(r+"#"+t);if(a.size())return a;var i=e.append(r).attr("id",t);return n&&i.call(n),i};Pe.objectFromPath=function(e,r){for(var t=e.split("."),n,a=n={},i=0;i1?a+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+i+"$2");return l+s};Pe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Cw=/^\w*$/;Pe.templateString=function(e,r){var t={};return e.replace(Pe.TEMPLATE_STRING_REGEX,function(n,a){var i;return Cw.test(a)?i=r[a]:(t[a]=t[a]||Pe.nestedProperty(r,a).get,i=t[a](!0)),i!==void 0?i:""})};var FO={max:10,count:0,name:"hovertemplate"};Pe.hovertemplateString=function(){return n2.apply(FO,arguments)};var IO={max:10,count:0,name:"texttemplate"};Pe.texttemplateString=function(){return n2.apply(IO,arguments)};var HO=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function BO(e){var r=e.match(HO);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var OO={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Pe.texttemplateStringForShapes=function(){return n2.apply(OO,arguments)};var bw=/^[:|\|]/;function n2(e,r,t){var n=this,a=arguments;return r||(r={}),e.replace(Pe.TEMPLATE_STRING_REGEX,function(i,o,l){var s=o==="xother"||o==="yother",u=o==="_xother"||o==="_yother",f=o==="_xother_"||o==="_yother_",v=o==="xother_"||o==="yother_",h=s||u||v||f,d=o;(u||f)&&(d=d.substring(1)),(v||f)&&(d=d.substring(0,d.length-1));var m=null,p=null;if(n.parseMultDiv){var y=BO(d);d=y.key,m=y.op,p=y.number}var b;if(h){if(b=r[d],b===void 0)return""}else{var C,x;for(x=3;x=Rd&&o<=_w,u=l>=Rd&&l<=_w;if(s&&(n=10*n+o-Rd),u&&(a=10*a+l-Rd),!s||!u){if(n!==a)return n-a;if(o!==l)return o-l}}return a-n};var L0=2e9;Pe.seedPseudoRandom=function(){L0=2e9};Pe.pseudoRandom=function(){var e=L0;return L0=(69069*L0+1)%4294967296,Math.abs(L0-e)<429496729?Pe.pseudoRandom():L0/4294967296};Pe.fillText=function(e,r,t){var n=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},a=Pe.extractOption(e,r,"htx","hovertext");if(Pe.isValidTextValue(a))return n(a);var i=Pe.extractOption(e,r,"tx","text");if(Pe.isValidTextValue(i))return n(i)};Pe.isValidTextValue=function(e){return e||e===0};Pe.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n1&&(u=1):u=0,Pe.strTranslate(a-u*(t+o),i-u*(n+l))+Pe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+n)+")":"")};Pe.setTransormAndDisplay=function(e,r){e.attr("transform",Pe.getTextTransform(r)),e.style("display",r.scale?null:"none")};Pe.ensureUniformFontSize=function(e,r){var t=Pe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Pe.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};Pe.bigFont=function(e){return Math.round(1.2*e)};var xw=Pe.getFirefoxVersion(),UO=xw!==null&&xw<86;Pe.getPositionFromD3Event=function(){return UO?[d1.event.layerX,d1.event.layerY]:[d1.event.offsetX,d1.event.offsetY]}});var Ew=te(()=>{"use strict";var YO=gr(),qw={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(a2 in qw)Dw=a2.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),YO.addStyleRule(Dw,qw[a2]);var Dw,a2});var i2=te((Cse,Pw)=>{Pw.exports=!0});var l2=te((Lse,Rw)=>{"use strict";var GO=i2(),o2;typeof window.matchMedia=="function"?o2=!window.matchMedia("(hover: none)").matches:o2=GO;Rw.exports=o2});var Id=te((qse,s2)=>{"use strict";var E0=typeof Reflect=="object"?Reflect:null,zw=E0&&typeof E0.apply=="function"?E0.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},Nd;E0&&typeof E0.ownKeys=="function"?Nd=E0.ownKeys:Object.getOwnPropertySymbols?Nd=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Nd=function(r){return Object.getOwnPropertyNames(r)};function VO(e){console&&console.warn&&console.warn(e)}var Fw=Number.isNaN||function(r){return r!==r};function kn(){kn.init.call(this)}s2.exports=kn;s2.exports.once=jO;kn.EventEmitter=kn;kn.prototype._events=void 0;kn.prototype._eventsCount=0;kn.prototype._maxListeners=void 0;var Nw=10;function Fd(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(kn,"defaultMaxListeners",{enumerable:!0,get:function(){return Nw},set:function(e){if(typeof e!="number"||e<0||Fw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Nw=e}});kn.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};kn.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||Fw(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function Iw(e){return e._maxListeners===void 0?kn.defaultMaxListeners:e._maxListeners}kn.prototype.getMaxListeners=function(){return Iw(this)};kn.prototype.emit=function(r){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")zw(s,this,t);else for(var u=s.length,f=Yw(s,u),n=0;n0&&o.length>a&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,VO(l)}return e}kn.prototype.addListener=function(r,t){return Hw(this,r,t,!1)};kn.prototype.on=kn.prototype.addListener;kn.prototype.prependListener=function(r,t){return Hw(this,r,t,!0)};function WO(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Bw(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=WO.bind(n);return a.listener=t,n.wrapFn=a,a}kn.prototype.once=function(r,t){return Fd(t),this.on(r,Bw(this,r,t)),this};kn.prototype.prependOnceListener=function(r,t){return Fd(t),this.prependListener(r,Bw(this,r,t)),this};kn.prototype.removeListener=function(r,t){var n,a,i,o,l;if(Fd(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){l=n[o].listener,i=o;break}if(i<0)return this;i===0?n.shift():ZO(n,i),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};kn.prototype.off=kn.prototype.removeListener;kn.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var i=Object.keys(n),o;for(a=0;a=0;a--)this.removeListener(r,t[a]);return this};function Ow(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?XO(a):Yw(a,a.length)}kn.prototype.listeners=function(r){return Ow(this,r,!0)};kn.prototype.rawListeners=function(r){return Ow(this,r,!1)};kn.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):Uw.call(e,r)};kn.prototype.listenerCount=Uw;function Uw(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}kn.prototype.eventNames=function(){return this._eventsCount>0?Nd(this._events):[]};function Yw(e,r){for(var t=new Array(r),n=0;n{"use strict";var u2=Id().EventEmitter,$O={init:function(e){if(e._ev instanceof u2)return e;var r=new u2,t=new u2;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(n,a){r.emit(n,a),t.emit(n,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var i=a._events[r];if(!i)return;function o(s){if(s.listener){if(a.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(a,[t])}else return s.apply(a,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var Ww=gr(),KO=Kf().dfltConfig;function QO(e,r){for(var t=[],n,a=0;aKO.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};$s.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};$s.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};$s.undo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n{"use strict";jw.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var z0=te(sa=>{"use strict";var wo=dt(),g1=gr(),Bd=bo(),c2=A0(),eU=f2(),rU=l1(),tU=Kf().configAttributes,Jw=_o(),dl=g1.extendDeepAll,P0=g1.isPlainObject,nU=g1.isArrayOrTypedArray,Od=g1.nestedProperty,aU=g1.valObjectMeta,v2="_isSubplotObj",Ud="_isLinkedToArray",iU="_arrayAttrRegexps",Kw="_deprecated",h2=[v2,Ud,iU,Kw];sa.IS_SUBPLOT_OBJ=v2;sa.IS_LINKED_TO_ARRAY=Ud;sa.DEPRECATED=Kw;sa.UNDERSCORE_ATTRS=h2;sa.get=function(){var e={};return wo.allTypes.forEach(function(r){e[r]=lU(r)}),{defs:{valObjects:aU,metaKeys:h2.concat(["description","role","editType","impliedEdits"]),editType:{traces:Jw.traces,layout:Jw.layout},impliedEdits:{}},traces:e,layout:sU(),frames:uU(),animation:R0(rU),config:R0(tU)}};sa.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(i){var o=e[i];if(h2.indexOf(i)===-1){var l=(n?n+".":"")+i;r(o,i,e,a,l),!sa.isValObject(o)&&P0(o)&&i!=="impliedEdits"&&sa.crawl(o,r,a+1,l)}})};sa.isValObject=function(e){return e&&e.valType!==void 0};sa.findArrayAttributes=function(e){var r=[],t=[],n=[],a,i;function o(s,u,f,v){t=t.slice(0,v).concat([u]),n=n.slice(0,v).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&l(a,0,"")}function l(s,u,f){var v=s[t[u]],h=f+t[u];if(u===t.length-1)nU(v)&&r.push(i+h);else if(n[u]){if(Array.isArray(v))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Hd(o))return!1;e=i[a][o]}else e=i[a]}else e=i}}return e}function Hd(e){return e===Math.round(e)&&e>=0}function lU(e){var r,t;r=wo.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=dl({},Bd),i=dl({},r.attributes);sa.crawl(i,function(s,u,f,v,h){Od(a,h).set(void 0),s===void 0&&Od(i,h).set(void 0)}),dl(n,a),wo.traceIs(e,"noOpacity")&&delete n.opacity,wo.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),wo.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,dl(n,i),t.attributes&&dl(n,t.attributes),n.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:R0(n)};if(r.layoutAttributes){var l={};dl(l,r.layoutAttributes),o.layoutAttributes=R0(l)}return r.animatable||sa.crawl(o,function(s){sa.isValObject(s)&&"anim"in s&&delete s.anim}),o}function sU(){var e={},r,t;dl(e,c2);for(r in wo.subplotsRegistry)if(t=wo.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n{"use strict";var N0=gr(),dU=bo(),Uu="templateitemname",d2={name:{valType:"string",editType:"none"}};d2[Uu]={valType:"string",editType:"calc"};nc.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=d2.name,r[Uu]=d2[Uu],r};nc.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(i){t=N0.coerce(i,{},dU,"type");var o={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,o._template=n[l]}return o}return{newTrace:a}};nc.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);N0.isPlainObject(a)||(a=null);var i=e[r]={_template:a};return i};nc.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[r9(r)],i=n&&n[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},v=f[Uu]=u[Uu];if(!e9(v))return f._template=a,f;for(var h=0;h=n&&(t._input||{})._templateitemname;i&&(a=n);var o=r+"["+a+"]",l;function s(){l={},i&&(l[o]={},l[o][Uu]=i)}s();function u(d,m){l[d]=m}function f(d,m){i?N0.nestedProperty(l[o],d).set(m):l[o+"."+d]=m}function v(){var d=l;return s(),d}function h(d,m){d&&f(d,m);var p=v();for(var y in p)N0.nestedProperty(e,y).set(p[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:h}}});var Pa=te((Nse,t9)=>{"use strict";var m1=x0().counter;t9.exports={idRegex:{x:m1("x","( domain)?"),y:m1("y","( domain)?")},attrRegex:m1("[xy]axis"),xAxisMatch:m1("xaxis"),yAxisMatch:m1("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var ua=te(Di=>{"use strict";var pU=dt(),p2=Pa();Di.id2name=function(r){if(!(typeof r!="string"||!r.match(p2.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Di.name2id=function(r){if(r.match(p2.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};Di.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(p2.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(a&&n?" domain":"")}};Di.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=Di.listIds(e,r),i=new Array(a.length),o;for(o=0;on?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};Di.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function n9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function gU(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function mU(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}a9.exports={clearOutlineControllers:gU,clearOutline:mU}});var Yd=te((Hse,i9)=>{"use strict";i9.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var y1=te(Vd=>{"use strict";var Gd=dt(),Bse=Pa().SUBPLOT_PATTERN;Vd.getSubplotCalcData=function(e,r,t){var n=Gd.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,i=[],o=0;o{"use strict";var yU=dt(),F0=gr();ac.manageCommandObserver=function(e,r,t,n){var a={},i=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var o=ac.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(o)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(o){o9(e,o,a.cache),a.check=function(){if(i){var f=o9(e,o,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+a;F0.isPlainObject(i)?g2(i,r,o,n+1):r(o,a,i)}})}});var fa=te((Yse,M9)=>{"use strict";var g9=kt(),_U=m0().timeFormatLocale,xU=My().formatLocale,b1=Ut(),wU=Ay(),Xt=dt(),m9=z0(),MU=bn(),Xr=gr(),y9=Pt(),f9=Rn().BADNUM,Ei=ua(),AU=Yu().clearOutline,TU=Yd(),m2=l1(),kU=f2(),SU=y1().getModuleCalcData,c9=Xr.relinkPrivateKeys,ic=Xr._,zr=M9.exports={};Xr.extendFlat(zr,Xt);zr.attributes=bo();zr.attributes.type.values=zr.allTypes;zr.fontAttrs=$a();zr.layoutAttributes=A0();var Zd=u9();zr.executeAPICommand=Zd.executeAPICommand;zr.computeAPICommandBindings=Zd.computeAPICommandBindings;zr.manageCommandObserver=Zd.manageCommandObserver;zr.hasSimpleAPICommandBindings=Zd.hasSimpleAPICommandBindings;zr.redrawText=function(e){return e=Xr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Xt.getComponentMethod("annotations","draw")(e),Xt.getComponentMethod("legend","draw")(e),Xt.getComponentMethod("colorbar","draw")(e),r(zr.previousPromises(e)))},300)})};zr.resize=function(e){e=Xr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||Xr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Xr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Xt.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};zr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};zr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=Xr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:y9.defaultLine,"pointer-events":"all"}).each(function(){var u=g9.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),n=t.node(),a={y:r._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=r.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=r._paper.attr("width")-7),t.attr(a);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&CU(e,i),o.text(i.text()&&l.text()?" - ":"")}};function CU(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){zr.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),a=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}zr.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=g9.select(e).append("div").attr("id","hiddenform").style("display","none"),n=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),a=n.append("input").attr({type:"text",name:"data"});return a.node().value=zr.graphJson(e,!1,"keepdata"),n.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var LU=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],qU=["year","month","dayMonth","dayMonthYear"];zr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},v;e._transitionData||zr.createTransitionData(e),a._dfltTitle={plot:ic(e,"Click to enter Plot title"),subtitle:ic(e,"Click to enter Plot subtitle"),x:ic(e,"Click to enter X axis title"),y:ic(e,"Click to enter Y axis title"),colorbar:ic(e,"Click to enter Colorscale title"),annotation:ic(e,"new text")},a._traceWord=ic(e,"trace");var h=v9(e,LU);if(a._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,m=n.height;zr.supplyLayoutGlobalDefaults(i,a,h),i.width||(a.width=d),i.height||(a.height=m),zr.sanitizeMargins(a)}else{zr.supplyLayoutGlobalDefaults(i,a,h);var p=!i.width||!i.height,y=a.autosize,b=f.autosizable,C=p&&(y||b);C?zr.plotAutoSize(e,i,a):p&&zr.sanitizeMargins(a),!y&&p&&(i.width=a.width,i.height=a.height)}a._d3locale=PU(h,a.separators),a._extraFormat=v9(e,qU),a._initialAutoSizeIsDone=!0,a._dataLength=s.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var x=a._subplots=EU(),_=a._splomAxes={x:{},y:{}},A=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=DU(o,s),zr.supplyDataDefaults(s,l,i,a);var k=Object.keys(_.x),M=Object.keys(_.y);if(k.length>1&&M.length>1){for(Xt.getComponentMethod("grid","sizeDefaults")(i,a),v=0;v15&&M.length>15&&a.shapes.length===0&&a.images.length===0,zr.linkSubplots(l,a,o,n),zr.cleanPlot(l,a,o,n);var W=!!(n._has&&n._has("cartesian")),B=!!(a._has&&a._has("cartesian")),X=W,G=B;X&&!G?n._bgLayer.remove():G&&!X&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&AU({_fullLayout:n}),RU(l,a),c9(a,n),Xt.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var re=a._tracePreGUI,ne={},K;for(K in re)ne[K]="old";for(v=0;v0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var v=zr.layoutAttributes.width.min,h=zr.layoutAttributes.height.min;o1,m=!t.height&&Math.abs(n.height-l)>1;(m||d)&&(d&&(n.width=o),m&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),zr.sanitizeMargins(n)};zr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=Xt.componentsRegistry,i=r._basePlotModules,o,l,s,u=Xt.subplotsRegistry.cartesian;for(o in a)s=a[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Xt.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(Xr.subplotSort);for(l=0;l1&&(t.l/=y,t.r/=y)}if(h){var b=(t.t+t.b)/h;b>1&&(t.t/=b,t.b/=b)}var C=t.xl!==void 0?t.xl:t.x,x=t.xr!==void 0?t.xr:t.x,_=t.yt!==void 0?t.yt:t.y,A=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:C,size:t.l+p},r:{val:x,size:t.r+p},b:{val:A,size:t.b+p},t:{val:_,size:t.t+p}},m[r]=1}if(!n._replotting)return zr.doAutoMargin(e)}};function NU(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Ei.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}zr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),b9(r);var a=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Xr.extendFlat({},a),s=i.l,u=i.r,f=i.t,v=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,p=r.minreducedheight;if(i.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var b=e._fullLayout._reservedMargin;for(var C in b)for(var x in b[C]){var _=b[C][x];o[x]=Math.max(o[x],_)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:v}};for(var A in o){var k=0;for(var M in h)M!=="base"&&b1(h[M][A].size)&&(k=h[M][A].size>k?h[M][A].size:k);var D=Math.max(0,i[A]-k);o[A]=Math.max(0,o[A]-D)}for(var z in h){var F=h[z].l||{},I=h[z].b||{},W=F.val,B=F.size,X=I.val,G=I.size,re=t-o.r-o.l,ne=n-o.t-o.b;for(var K in h){if(b1(B)&&h[K].r){var ee=h[K].r.val,fe=h[K].r.size;if(ee>W){var he=(B*ee+(fe-re)*W)/(ee-W),De=(fe*(1-W)+(B-re)*(1-ee))/(ee-W);he+De>s+u&&(s=he,u=De)}}if(b1(G)&&h[K].t){var Ne=h[K].t.val,Fe=h[K].t.size;if(Ne>X){var Xe=(G*Ne+(Fe-ne)*X)/(Ne-X),Le=(Fe*(1-X)+(G-ne)*(1-Ne))/(Ne-X);Xe+Le>v+f&&(v=Xe,f=Le)}}}}}var rr=Xr.constrain(t-i.l-i.r,_9,m),se=Xr.constrain(n-i.t-i.b,x9,p),ye=Math.max(0,t-rr),we=Math.max(0,n-se);if(ye){var pe=(s+u)/ye;pe>1&&(s/=pe,u/=pe)}if(we){var U=(v+f)/we;U>1&&(v/=U,f/=U)}if(a.l=Math.round(s)+o.l,a.r=Math.round(u)+o.r,a.t=Math.round(f)+o.t,a.b=Math.round(v)+o.b,a.p=Math.round(i.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(zr.didMarginChange(l,a)||NU(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};zr.graphJson=function(e,r,t,n,a,i){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&zr.supplyDefaults(e);var o=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(Xr.isPlainObject(h)){var m={},p;return Object.keys(h).sort().forEach(function(x){if(["_","["].indexOf(x.charAt(0))===-1){if(typeof h[x]=="function"){d&&(m[x]="_function");return}if(t==="keepdata"){if(x.substr(x.length-3)==="src")return}else if(t==="keepstream"){if(p=h[x+"src"],typeof p=="string"&&p.indexOf(":")>0&&!Xr.isPlainObject(h.stream))return}else if(t!=="keepall"&&(p=h[x+"src"],typeof p=="string"&&p.indexOf(":")>0))return;m[x]=u(h[x],d)}}),m}var y=Array.isArray(h),b=Xr.isTypedArray(h);if((y||b)&&h.dtype&&h.shape){var C=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:Xr.isArrayBuffer(C)?wU.encode(C):C},d)}return y?h.map(function(x){return u(x,d)}):b?Xr.simpleMap(h,Xr.identity):Xr.isJSDate(h)?Xr.ms2DateTimeLocal(+h):h}var f={data:(o||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(l),a)){var v=l._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),n==="object"?f:JSON.stringify(f)};zr.modifyFrames=function(e,r){var t,n,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Xt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!n&&d===h&&l(v)}}t.runFn(m),setTimeout(m())})}function l(v){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Xt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function s(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var u=[zr.previousPromises,s,t.prepareFn,zr.rehover,zr.reselect,o],f=Xr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}zr.doCalcdata=function(e,r){var t=Ei.list(e),n=e._fullData,a=e._fullLayout,i,o,l,s,u=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l=0;s--)if(A[s].enabled){i._indexToPoints=A[s]._indexToPoints;break}o&&o.calc&&(_=o.calc(e,i))}(!Array.isArray(_)||!_[0])&&(_=[{x:f9,y:f9}]),_[0].t||(_[0].t={}),_[0].trace=i,u[C]=_}}for(d9(t,n,a),l=0;l{"use strict";oc.xmlns="http://www.w3.org/2000/xmlns/";oc.svg="http://www.w3.org/2000/svg";oc.xlink="http://www.w3.org/1999/xlink";oc.svgAttrs={xmlns:oc.svg,"xmlns:xlink":oc.xlink}});var Ka=te((Vse,A9)=>{"use strict";A9.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ci=te(Mo=>{"use strict";var Qn=kt(),Ks=gr(),BU=Ks.strTranslate,y2=lc(),OU=Ka().LINE_SPACING,UU=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Mo.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match(UU),i=Qn.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=rY(e.node(),n);s&&e.style("pointer-events","all"),Mo.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};WU(a[2],f,function(v,h,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){l(),s();return}var p=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});p.node().appendChild(m.node()),h&&h.node()&&m.node().insertBefore(h.node().cloneNode(!0),m.node().firstChild);var y=d.width,b=d.height;m.attr({class:o,height:b,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var C=e.node().style.fill||"black",x=m.select("g");x.attr({fill:C,stroke:C});var _=x.node().getBoundingClientRect(),A=_.width,k=_.height;(A>y||k>b)&&(m.style("overflow","hidden"),_=m.node().getBoundingClientRect(),A=_.width,k=_.height);var M=+e.attr("x"),D=+e.attr("y"),z=u||e.node().getBoundingClientRect().height,F=-z/4;if(o[0]==="y")p.attr({transform:"rotate("+[-90,M,D]+")"+BU(-A/2,F-k/2)});else if(o[0]==="l")D=F-k/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,D=F;else{var I=e.attr("text-anchor");M=M-A*(I==="middle"?.5:I==="end"?1:0),D=D+F-k/2}m.attr({x:M,y:D}),t&&t.call(e,p),s(p)})})):l(),e};var YU=/(<|<|<)/g,GU=/(>|>|>)/g;function VU(e){return e.replace(YU,"\\lt ").replace(GU,"\\gt ")}var T9=[["$","$"],["\\(","\\)"]];function WU(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Ks.warn("No MathJax version:",MathJax.version);return}var a,i,o,l,s=function(){return i=Ks.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:T9},displayAlign:"left"})},u=function(){i=Ks.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=T9},f=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},v=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var C="math-output-"+Ks.randstr({},64);l=Qn.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(VU(e));var x=l.node();return n===2?MathJax.Hub.Typeset(x):MathJax.typeset([x])},d=function(){var C=l.select(n===2?".MathJax_SVG":".MathJax"),x=!C.empty()&&l.select("svg").node();if(!x)Ks.log("There was an error in the tex syntax.",e),t();else{var _=x.getBoundingClientRect(),A;n===2?A=Qn.select("body").select("#MathJax_SVG_glyphs"):A=C.select("defs"),t(C,A,_)}l.remove()},m=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},p=function(){a!=="svg"&&(MathJax.config.startup.output=a)},y=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},b=function(){MathJax.config=i};n===2?MathJax.Hub.Queue(s,f,h,d,m,y):n===3&&(u(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),p(),b()}))}var L9={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},ZU={sub:"0.3em",sup:"-0.6em"},XU={sub:"-0.21em",sup:"0.42em"},k9="\u200B",S9=["http:","https:","mailto:","",void 0,":"],q9=Mo.NEWLINES=/(\r\n?|\n)/g,_2=/(<[^<>]*>)/,x2=/<(\/?)([^ >]*)(\s+(.*))?>/i,jU=//i;Mo.BR_TAG_ALL=//gi;var D9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,E9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,P9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,JU=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function sc(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&Xd(n)}var $U=/(^|;)\s*color:/;Mo.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",i=a.length,o=e.split(_2),l=[],s="",u=0,f=0;fi?l.push(v.substr(0,p-i)+a):l.push(v.substr(0,p));break}s=""}}return l.join("")};var KU={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},QU=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Xd(e){return e.replace(QU,function(r,t){var n;return t.charAt(0)==="#"?n=eY(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):n=KU[t],n||r})}Mo.convertEntities=Xd;function eY(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function rY(e,r){r=r.replace(q9," ");var t=!1,n=[],a,i=-1;function o(){i++;var k=document.createElementNS(y2.svg,"tspan");Qn.select(k).attr({class:"line",dy:i*OU+"em"}),e.appendChild(k),a=k;var M=n;if(n=[{node:k}],M.length>1)for(var D=1;D.",r);return}var M=n.pop();k!==M.type&&Ks.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),a=n[n.length-1].node}var f=jU.test(r);f?o():(a=e,n=[{node:e}]);for(var v=r.split(_2),h=0;h{"use strict";var tY=kt(),Jd=Jl(),x1=Ut(),jd=gr(),z9=Pt(),nY=Jf().isValid;function aY(e,r,t){var n=r?jd.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var i=!1;if(jd.isArrayOrTypedArray(a)){for(var o=0;o=0;n--,a++){var i=e[n];t[a]=[1-i[0],i[1]]}return t}function O9(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,i=new Array(a),o=0;o{"use strict";var Y9=Uy(),oY=Y9.FORMAT_LINK,lY=Y9.DATE_FORMAT_LINK;function sY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?w2:G9)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function w2(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+oY+"."].join(" ")}function G9(e,r){return w2(e,r)+[" And for dates see: "+lY+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}V9.exports={axisHoverFormat:sY,descriptionOnlyNumbers:w2,descriptionWithDates:G9}});var pl=te((Jse,s8)=>{"use strict";var W9=$a(),I0=cl(),l8=Kl().dash,T2=la().extendFlat,Z9=bn().templatedArray,jse=Vs().templateFormatStringDescription,X9=M2().descriptionWithDates,uY=Rn().ONEDAY,rs=Pa(),fY=rs.HOUR_PATTERN,cY=rs.WEEKDAY_PATTERN,A2={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},vY=T2({},A2,{values:A2.values.slice().concat(["sync"])});function j9(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var J9={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},$9={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},K9={valType:"data_array",editType:"ticks"},Q9={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function e8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function r8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var t8={valType:"color",dflt:I0.defaultLine,editType:"ticks"},n8={valType:"color",dflt:I0.lightLine,editType:"ticks"};function a8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var i8=T2({},l8,{editType:"ticks"}),o8={valType:"boolean",editType:"ticks"};s8.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:W9({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[rs.idRegex.x.toString(),rs.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[rs.idRegex.x.toString(),rs.idRegex.y.toString()],editType:"calc"},rangebreaks:Z9("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[cY,fY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:uY},editType:"calc"}),tickmode:vY,nticks:j9(),tick0:J9,dtick:$9,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:K9,ticktext:{valType:"data_array",editType:"ticks"},ticks:Q9,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:e8(),tickwidth:r8(),tickcolor:t8,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:T2({},l8,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:W9({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:X9("tick label")},tickformatstops:Z9("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:X9("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:I0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:o8,gridcolor:n8,gridwidth:a8(),griddash:i8,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",rs.idRegex.x.toString(),rs.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",rs.idRegex.x.toString(),rs.idRegex.y.toString()],editType:"plot"},minor:{tickmode:A2,nticks:j9("minor"),tick0:J9,dtick:$9,tickvals:K9,ticks:Q9,ticklen:e8("minor"),tickwidth:r8("minor"),tickcolor:t8,gridcolor:n8,gridwidth:a8("minor"),griddash:i8,showgrid:o8,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var $d=te(($se,c8)=>{"use strict";var Sn=pl(),u8=$a(),f8=la().extendFlat,hY=_o().overrideAll;c8.exports=hY({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Sn.linecolor,outlinewidth:Sn.linewidth,bordercolor:Sn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Sn.minor.tickmode,nticks:Sn.nticks,tick0:Sn.tick0,dtick:Sn.dtick,tickvals:Sn.tickvals,ticktext:Sn.ticktext,ticks:f8({},Sn.ticks,{dflt:""}),ticklabeloverflow:f8({},Sn.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Sn.ticklen,tickwidth:Sn.tickwidth,tickcolor:Sn.tickcolor,ticklabelstep:Sn.ticklabelstep,showticklabels:Sn.showticklabels,labelalias:Sn.labelalias,tickfont:u8({}),tickangle:Sn.tickangle,tickformat:Sn.tickformat,tickformatstops:Sn.tickformatstops,tickprefix:Sn.tickprefix,showtickprefix:Sn.showtickprefix,ticksuffix:Sn.ticksuffix,showticksuffix:Sn.showticksuffix,separatethousands:Sn.separatethousands,exponentformat:Sn.exponentformat,minexponent:Sn.minexponent,showexponent:Sn.showexponent,title:{text:{valType:"string"},font:u8({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var H0=te((Qse,h8)=>{"use strict";var dY=$d(),pY=x0().counter,gY=Cd(),v8=Jf().scales,Kse=gY(v8);function Kd(e){return"`"+e+"`"}h8.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?v8[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[n],v="in "+Kd(u+f));var h=a?" Has an effect only if "+v+" is set to a numerical array.":"",d=n+"auto",m=n+"min",p=n+"max",y=n+"mid",b=Kd(u+d),C=Kd(u+m),x=Kd(u+p),_=C+" and "+x,A={};A[m]=A[p]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=dY),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:pY("coloraxis"),dflt:null,editType:"calc"}),M}});var S2=te((eue,d8)=>{"use strict";var mY=la().extendFlat,yY=H0(),k2=Jf().scales;d8.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:k2.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:k2.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:k2.RdBu,editType:"calc"}},coloraxis:mY({_isSubplotObj:!0,editType:"calc"},yY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var C2=te((rue,p8)=>{"use strict";var bY=gr();p8.exports=function(r){return bY.isPlainObject(r.colorbar)}});var D2=te(q2=>{"use strict";var L2=Ut(),g8=gr(),m8=Rn(),_Y=m8.ONEDAY,xY=m8.ONEWEEK;q2.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",i=n?_Y:1;if(!e)return i;if(L2(e))return e=Number(e),e<=0?i:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return i;var o=e.charAt(0),l=e.substr(1);return l=L2(l)?Number(l):0,l<=0||!(n&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};q2.tick0=function(e,r,t,n){if(r==="date")return g8.cleanDate(e,g8.dateTick0(t,n%xY===0?1:0));if(!(n==="D1"||n==="D2"))return L2(e)?Number(e):0}});var E2=te((nue,b8)=>{"use strict";var y8=D2(),wY=gr().isArrayOrTypedArray,MY=ji().isTypedArraySpec,AY=ji().decodeTypedArraySpec;b8.exports=function(r,t,n,a,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(C){var x=l[C];return MY(x)&&(x=AY(x)),x!==void 0?x:(s._template||{})[C]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=wY(d)?"array":h?"linear":"auto",p=n(u+"tickmode",m);if(p==="auto"||p==="sync")n(u+"nticks");else if(p==="linear"){var y=s.dtick=y8.dtick(h,a);s.tick0=y8.tick0(v,a,t.calendar,y)}else if(a!=="multicategory"){var b=n(u+"tickvals");b===void 0?s.tickmode="auto":o||n("ticktext")}}});var R2=te((aue,x8)=>{"use strict";var P2=gr(),_8=pl();x8.exports=function(r,t,n,a){var i=a.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?_8.minor:_8,u=i?"minor.":"",f=P2.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=P2.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),h=P2.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=n(u+"ticks",!i&&a.outerTicks||f||v||h?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var z2=te((iue,w8)=>{"use strict";w8.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(i){return r[i]!==void 0}),a=function(i){return r[i]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var gl=te((oue,M8)=>{"use strict";var Qd=gr(),TY=bn();M8.exports=function(r,t,n){var a=n.name,i=n.inclusionAttr||"visible",o=t[a],l=Qd.isArrayOrTypedArray(r[a])?r[a]:[],s=t[a]=[],u=TY.arrayTemplater(t,a,i),f,v;for(f=0;f{"use strict";var N2=gr(),kY=Pt().contrast,A8=pl(),SY=z2(),CY=gl();T8.exports=function(r,t,n,a,i){i||(i={});var o=n("labelalias");N2.isPlainObject(o)||delete t.labelalias;var l=SY(r),s=n("showticklabels");if(s){i.noTicklabelshift||n("ticklabelshift"),i.noTicklabelstandoff||n("ticklabelstandoff");var u=i.font||{},f=t.color,v=t.ticklabelposition||"",h=v.indexOf("inside")!==-1?kY(i.bgColor):f&&f!==A8.color.dflt?f:u.color;if(N2.coerceFont(n,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!i.noAng){var d=n("tickangle");!i.noAutotickangles&&d==="auto"&&n("autotickangles")}if(a!=="category"){var m=n("tickformat");CY(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:LY}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!i.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function LY(e,r){function t(a,i){return N2.coerce(e,r,A8.tickformatstops,a,i)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var I2=te((sue,k8)=>{"use strict";var qY=z2();k8.exports=function(r,t,n,a,i){i||(i={});var o=i.tickSuffixDflt,l=qY(r),s=n("tickprefix");s&&n("showtickprefix",l);var u=n("ticksuffix",o);u&&n("showticksuffix",l)}});var H2=te((uue,S8)=>{"use strict";var Gu=gr(),DY=bn(),EY=E2(),PY=R2(),RY=F2(),zY=I2(),NY=$d();S8.exports=function(r,t,n){var a=DY.newContainer(t,"colorbar"),i=r.colorbar||{};function o(I,W){return Gu.coerce(i,a,NY,I,W)}var l=n.margin||{t:0,b:0,l:0,r:0},s=n.width-l.l-l.r,u=n.height-l.t-l.b,f=o("orientation"),v=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(v?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:v?u:s);var m=o("yref"),p=o("xref"),y=m==="paper",b=p==="paper",C,x,_,A="left";v?(_="middle",A=b?"left":"right",C=b?1.02:1,x=.5):(_=y?"bottom":"top",A="center",C=.5,x=y?1.02:1),Gu.coerce(i,a,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:C}},"x"),Gu.coerce(i,a,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:x}},"y"),o("xanchor",A),o("xpad"),o("yanchor",_),o("ypad"),Gu.noneOrAll(i,a,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=Gu.coerce(i,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),EY(i,a,o,"linear");var M=n.font,D={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(D.bgColor="black"),zY(i,a,o,"linear",D),RY(i,a,o,"linear",D),PY(i,a,o,"linear",D),o("title.text",n._dfltTitle.colorbar);var z=a.showticklabels?a.tickfont:M,F=Gu.extendFlat({},M,{family:z.family,size:Gu.bigFont(z.size)});Gu.coerceFont(o,"title.font",F),o("title.side",v?"top":"right")}});var B0=te((fue,q8)=>{"use strict";var C8=Ut(),O2=gr(),FY=C2(),IY=H2(),L8=Jf().isValid,HY=dt().traceIs;function B2(e,r){var t=r.slice(0,r.length-1);return r?O2.nestedProperty(e,t).get()||{}:e}q8.exports=function e(r,t,n,a,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=B2(r,o),f=B2(t,o),v=B2(t._template||{},o)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,i)};if(s){var d=n._colorAxes||{},m=a(o+"coloraxis");if(m){var p=HY(t,"contour")&&O2.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[m];y?(y[2].push(h),y[0]!==p&&(y[0]=!1,O2.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[p,t,[h]];return}}var b=u[l+"min"],C=u[l+"max"],x=C8(b)&&C8(C)&&b{"use strict";var D8=gr(),BY=bn(),E8=S2(),OY=B0();P8.exports=function(r,t){function n(v,h){return D8.coerce(r,t,E8,v,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,i,o;function l(v,h){return D8.coerce(i,o,E8.coloraxis,v,h)}for(var s in a){var u=a[s];if(u[0])i=r[s]||{},o=BY.newContainer(t,s,"coloraxis"),o._name=s,OY(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var UY=gr(),YY=es().hasColorscale,GY=es().extractOpts;z8.exports=function(r,t){function n(f,v){var h=f["_"+v];h!==void 0&&(f[v]=h)}function a(f,v){var h=v.container?UY.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=GY(h),m=d.auto;(m||d.min===void 0)&&n(h,v.min),(m||d.max===void 0)&&n(h,v.max),d.autocolorscale&&n(h,"colorscale")}}for(var i=0;i{"use strict";var F8=Ut(),U2=gr(),VY=es().extractOpts;I8.exports=function(r,t,n){var a=r._fullLayout,i=n.vals,o=n.containerStr,l=o?U2.nestedProperty(t,o).get():t,s=VY(l),u=s.auto!==!1,f=s.min,v=s.max,h=s.mid,d=function(){return U2.aggNums(Math.min,null,i)},m=function(){return U2.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&F8(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(l._colorAx&&F8(v)?v=Math.max(v,m()):v=m()),u&&h!==void 0&&(v-h>h-f?f=h-(v-h):v-h=0?p=a.colorscale.sequential:p=a.colorscale.sequentialminus,s._sync("colorscale",p)}}});var tp=te((due,H8)=>{"use strict";var rp=Jf(),O0=es();H8.exports={moduleType:"component",name:"colorscale",attributes:H0(),layoutAttributes:S2(),supplyLayoutDefaults:R8(),handleDefaults:B0(),crossTraceDefaults:N8(),calc:ep(),scales:rp.scales,defaultScale:rp.defaultScale,getScale:rp.get,isValidScale:rp.isValid,hasColorscale:O0.hasColorscale,extractOpts:O0.extractOpts,extractScale:O0.extractScale,flipScale:O0.flipScale,makeColorScaleFunc:O0.makeColorScaleFunc,makeColorScaleFuncFromTrace:O0.makeColorScaleFuncFromTrace}});var Qa=te((pue,O8)=>{"use strict";var B8=gr(),WY=ji().isTypedArraySpec;O8.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return B8.isPlainObject(r)&&(B8.isArrayOrTypedArray(r.size)||WY(r.size))}}});var Y8=te((gue,U8)=>{"use strict";var ZY=Ut();U8.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,i=n.sizemin||0,o=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var s=o(l/t);return ZY(s)&&s>0?Math.max(s,i):0}}});var Vu=te(Ba=>{"use strict";var G8=gr();Ba.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ba.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{Z8.exports=KY;var Y2={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},$Y=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function KY(e){var r=[];return e.replace($Y,function(t,n,a){var i=n.toLowerCase();for(a=eG(a),i=="m"&&a.length>2&&(r.push([n].concat(a.splice(0,2))),i="l",n=n=="m"?"l":"L");;){if(a.length==Y2[i])return a.unshift(n),r.push(a);if(a.length{"use strict";var rG=G2(),kr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},gt="M0,0Z",X8=Math.sqrt(2),Wu=Math.sqrt(3),V2=Math.PI,W2=Math.cos,Z2=Math.sin;Q8.exports={circle:{n:0,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?yt(r,t,a):a}},square:{n:1,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.3,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.4,2),a=kr(e*1.2,2);return yt(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.8/X8,2),a="l"+n+","+n,i="l"+n+",-"+n,o="l-"+n+",-"+n,l="l-"+n+","+n;return yt(r,t,"M0,"+n+a+i+o+i+o+l+o+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2/Wu,2),a=kr(e/2,2),i=kr(e,2);return yt(r,t,"M-"+n+","+a+"H"+n+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2/Wu,2),a=kr(e/2,2),i=kr(e,2);return yt(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2/Wu,2),a=kr(e/2,2),i=kr(e,2);return yt(r,t,"M"+a+",-"+n+"V"+n+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2/Wu,2),a=kr(e/2,2),i=kr(e,2);return yt(r,t,"M-"+a+",-"+n+"V"+n+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.6,2),a=kr(e*1.2,2);return yt(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.6,2),a=kr(e*1.2,2);return yt(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.6,2),a=kr(e*1.2,2);return yt(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.6,2),a=kr(e*1.2,2);return yt(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.951,2),a=kr(e*.588,2),i=kr(-e,2),o=kr(e*-.309,2),l=kr(e*.809,2);return yt(r,t,"M"+n+","+o+"L"+a+","+l+"H-"+a+"L-"+n+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e/2,2),i=kr(e*Wu/2,2);return yt(r,t,"M"+i+",-"+a+"V"+a+"L0,"+n+"L-"+i+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e/2,2),i=kr(e*Wu/2,2);return yt(r,t,"M-"+a+","+i+"H"+a+"L"+n+",0L"+a+",-"+i+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.924,2),a=kr(e*.383,2);return yt(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(mt(r))return gt;var n=e*1.4,a=kr(n*.225,2),i=kr(n*.951,2),o=kr(n*.363,2),l=kr(n*.588,2),s=kr(-n,2),u=kr(n*-.309,2),f=kr(n*.118,2),v=kr(n*.809,2),h=kr(n*.382,2);return yt(r,t,"M"+a+","+u+"H"+i+"L"+o+","+f+"L"+l+","+v+"L0,"+h+"L-"+l+","+v+"L-"+o+","+f+"L-"+i+","+u+"H-"+a+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.66,2),a=kr(e*.38,2),i=kr(e*.76,2);return yt(r,t,"M-"+i+",0l-"+a+",-"+n+"h"+i+"l"+a+",-"+n+"l"+a+","+n+"h"+i+"l-"+a+","+n+"l"+a+","+n+"h-"+i+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*Wu*.8,2),a=kr(e*.8,2),i=kr(e*1.6,2),o=kr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return yt(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+i+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*Wu*.8,2),a=kr(e*.8,2),i=kr(e*1.6,2),o=kr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return yt(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+i+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.1,2),a=kr(e*2,2),i="A "+a+","+a+" 0 0 1 ";return yt(r,t,"M-"+n+",-"+n+i+"-"+n+","+n+i+n+","+n+i+n+",-"+n+i+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.4,2),a=kr(e*1.9,2),i="A "+a+","+a+" 0 0 1 ";return yt(r,t,"M-"+n+",0"+i+"0,"+n+i+n+",0"+i+"0,-"+n+i+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.7,2),a=kr(e*1.4,2);return yt(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.4,2),a=kr(e*.7,2);return yt(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e/X8,2);return yt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.3,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.3,2),a=kr(e*.65,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.4,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.2,2),a=kr(e*.85,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(mt(r))return gt;var n=kr(e/2,2),a=kr(e,2);return yt(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.2,2),a=kr(e*1.6,2),i=kr(e*.8,2);return yt(r,t,"M-"+n+","+i+"L0,0M"+n+","+i+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.2,2),a=kr(e*1.6,2),i=kr(e*.8,2);return yt(r,t,"M-"+n+",-"+i+"L0,0M"+n+",-"+i+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.2,2),a=kr(e*1.6,2),i=kr(e*.8,2);return yt(r,t,"M"+i+","+n+"L0,0M"+i+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.2,2),a=kr(e*1.6,2),i=kr(e*.8,2);return yt(r,t,"M-"+i+","+n+"L0,0M-"+i+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.4,2);return yt(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.4,2);return yt(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e*2,2);return yt(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e*2,2);return yt(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2,2),a=kr(e,2);return yt(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2,2),a=kr(e,2);return yt(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e*2,2);return yt(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e*2,2);return yt(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2,2),a=kr(e,2);return yt(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2,2),a=kr(e,2);return yt(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(mt(r))return gt;var n=V2/2.5,a=2*e*W2(n),i=2*e*Z2(n);return yt(r,t,"M0,0L"+-a+","+i+"L"+a+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(mt(r))return gt;var n=V2/4,a=2*e*W2(n),i=2*e*Z2(n);return yt(r,t,"M0,0L"+-a+","+i+"A "+2*e+","+2*e+" 0 0 1 "+a+","+i+"Z")},backoff:.4,noDot:!0}};function mt(e){return e===null}var j8,J8,$8,K8;function yt(e,r,t){if((!e||e%360===0)&&!r)return t;if($8===e&&K8===r&&j8===t)return J8;$8=e,K8=r,j8=t;function n(y,b){var C=W2(y),x=Z2(y),_=b[0],A=b[1]+(r||0);return[_*C-A*x,_*x+A*C]}for(var a=e/180*V2,i=0,o=0,l=rG(t),s="",u=0;u{"use strict";var ba=kt(),un=gr(),tG=un.numberFormat,vc=Ut(),Q2=Jl(),ap=dt(),Ra=Pt(),nG=tp(),M1=un.strTranslate,ip=ci(),aG=lc(),iG=Ka(),oG=iG.LINE_SPACING,fM=dd().DESELECTDIM,lG=Qa(),sG=Y8(),uG=Vu().appendArrayPointValue,Ir=_M.exports={};Ir.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Ra.fill,i),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",X2(cG(f))),s&&e.style("text-shadow",s==="auto"?ip.makeTextShadow(Ra.contrast(i)):X2(s)),u&&e.style("text-decoration-line",X2(vG(u)))};function X2(e){return e==="none"?void 0:e}var fG={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function cG(e){return fG[e]}function vG(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Ir.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};Ir.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};Ir.setRect=function(e,r,t,n,a){e.call(Ir.setPosition,r,t).call(Ir.setSize,n,a)};Ir.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),i=n.c2p(e.y);if(vc(a)&&vc(i)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",i):r.attr("transform",M1(a,i));else return!1;return!0};Ir.translatePoints=function(e,r,t){e.each(function(n){var a=ba.select(this);Ir.translatePoint(n,a,r,t)})};Ir.hideOutsideRangePoint=function(e,r,t,n,a,i){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,i)?null:"none")};Ir.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var i=a[0].trace,o=i.xcalendar,l=i.ycalendar,s=ap.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){Ir.hideOutsideRangePoint(u,ba.select(this),t,n,o,l)})})}};Ir.crispRound=function(e,r,t){return!r||!vc(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};Ir.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=a||i.dash||"";Ra.stroke(r,n||i.color),Ir.dashLine(r,l,o)};Ir.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var i=(((a||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=n||i.dash||"";ba.select(this).call(Ra.stroke,t||i.color).call(Ir.dashLine,l,o)})};Ir.dashLine=function(e,r,t){t=+t||0,r=Ir.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};Ir.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function cM(e,r,t,n){var a=r.fillpattern,i=r.fillgradient,o=Ir.getPatternAttr,l=a&&(o(a.shape,0,"")||o(a.path,0,""));if(l){var s=o(a.bgcolor,0,null),u=o(a.fgcolor,0,null),f=a.fgopacity,v=o(a.size,0,8),h=o(a.solidity,0,.3),d=r.uid;Ir.pattern(e,"point",t,d,l,v,h,void 0,a.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,p="scatterfill-"+r.uid;if(n&&(p="legendfill-"+r.uid),!n&&(i.start!==void 0||i.stop!==void 0)){var y,b;m==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):m==="vertical"&&(y={x:0,y:i.start},b={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(dM,t,p,"linear",i.colorscale,"fill",y,b,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(Ir.gradient,t,p,m,i.colorscale,"fill")}else r.fillcolor&&e.call(Ra.fill,r.fillcolor)}Ir.singleFillStyle=function(e,r){var t=ba.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};cM(e,a,r,!1)};Ir.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=ba.select(this);n[0].trace&&cM(a,n[0].trace,r,t)})};var rM=eM();Ir.symbolNames=[];Ir.symbolFuncs=[];Ir.symbolBackOffs=[];Ir.symbolNeedLines={};Ir.symbolNoDot={};Ir.symbolNoFill={};Ir.symbolList=[];Object.keys(rM).forEach(function(e){var r=rM[e],t=r.n;Ir.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),Ir.symbolNames[t]=e,Ir.symbolFuncs[t]=r.f,Ir.symbolBackOffs[t]=r.backoff||0,r.needLine&&(Ir.symbolNeedLines[t]=!0),r.noDot?Ir.symbolNoDot[t]=!0:Ir.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(Ir.symbolNoFill[t]=!0)});var hG=Ir.symbolNames.length,dG="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Ir.symbolNumber=function(e){if(vc(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=Ir.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=hG||e>=400?0:Math.floor(Math.max(e,0))};function vM(e,r,t,n){var a=e%100;return Ir.symbolFuncs[a](r,t,n)+(e>=200?dG:"")}var tM=tG("~f"),hM={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Ir.gradient=function(e,r,t,n,a,i){var o=hM[n];return dM(e,r,t,o.type,a,i,o.start,o.stop,!1,o.reversed)};function dM(e,r,t,n,a,i,o,l,s,u){var f=a.length,v;n==="linear"?v={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:n==="radial"&&(v={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=n.ms2mrc(e.ms),e.mrc=s,n.selectedSizeFn&&(s=e.mrc=n.selectedSizeFn(e));var u=Ir.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=t3(e,t),v=r3(e,t);r.attr("d",vM(u,s,f,v))}var h=!1,d,m,p;if(e.so)p=l.outlierwidth,m=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;p=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=n.lineScale(e.mlc):un.isArrayOrTypedArray(l.color)?m=Ra.defaultLine:m=l.color,un.isArrayOrTypedArray(o.color)&&(d=Ra.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}if(e.om)r.call(Ra.stroke,d).style({"stroke-width":(p||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:p)+"px");var b=o.gradient,C=e.mgt;C?h=!0:C=b&&b.type,un.isArrayOrTypedArray(C)&&(C=C[0],hM[C]||(C=0));var x=o.pattern,_=Ir.getPatternAttr,A=x&&(_(x.shape,e.i,"")||_(x.path,e.i,""));if(C&&C!=="none"){var k=e.mgc;k?h=!0:k=b.color;var M=t.uid;h&&(M+="-"+e.i),Ir.gradient(r,a,M,C,[[0,k],[1,d]],"fill")}else if(A){var D=!1,z=x.fgcolor;!z&&i&&i.color&&(z=i.color,D=!0);var F=_(z,e.i,i&&i.color||null),I=_(x.bgcolor,e.i,null),W=x.fgopacity,B=_(x.size,e.i,8),X=_(x.solidity,e.i,.3);D=D||e.mcc||un.isArrayOrTypedArray(x.shape)||un.isArrayOrTypedArray(x.path)||un.isArrayOrTypedArray(x.bgcolor)||un.isArrayOrTypedArray(x.fgcolor)||un.isArrayOrTypedArray(x.size)||un.isArrayOrTypedArray(x.solidity);var G=t.uid;D&&(G+="-"+e.i),Ir.pattern(r,"point",a,G,A,B,X,e.mcc,x.fillmode,I,F,W)}else un.isArrayOrTypedArray(d)?Ra.fill(r,d[e.i]):Ra.fill(r,d);p&&Ra.stroke(r,m)}};Ir.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=Ir.tryColorscale(t,""),r.lineScale=Ir.tryColorscale(t,"line"),ap.traceIs(e,"symbols")&&(r.ms2mrc=lG.isBubble(e)?sG(e):function(){return(t.size||6)/2}),e.selectedpoints&&un.extendFlat(r,Ir.makeSelectedPointStyleFns(e)),r};Ir.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},i=t.marker||{},o=n.marker||{},l=a.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,v=u!==void 0;(un.isArrayOrTypedArray(l)||f||v)&&(r.selectedOpacityFn=function(_){var A=_.mo===void 0?a.opacity:_.mo;return _.selected?f?s:A:v?u:fM*A});var h=a.color,d=i.color,m=o.color;(d||m)&&(r.selectedColorFn=function(_){var A=_.mcc||h;return _.selected?d||A:m||A});var p=a.size,y=i.size,b=o.size,C=y!==void 0,x=b!==void 0;return ap.traceIs(e,"symbols")&&(C||x)&&(r.selectedSizeFn=function(_){var A=_.mrc||p/2;return _.selected?C?y/2:A:x?b/2:A}),r};Ir.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},i=t.textfont||{},o=n.textfont||{},l=a.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var v=f.tc||l;return f.selected?s||v:u||(s?v:Ra.addOpacity(v,fM))},r};Ir.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Ir.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&a.push(function(i,o){Ra.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&a.push(function(i,o){var l=o.mx||n.symbol||0,s=t.selectedSizeFn(o);i.attr("d",vM(Ir.symbolNumber(l),s,t3(o,r),r3(o,r))),o.mrc2=s}),a.length&&e.each(function(i){for(var o=ba.select(this),l=0;l0?t:0}Ir.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=Ir.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=ba.select(this),u=i?un.extractOption(l,r,"txt","texttemplate"):un.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,v=f?f(l,r,o):{},h={};uG(h,r,l.i);var d=r._meta||{};u=un.texttemplateString(u,v,o._d3locale,h,l,d)}var m=l.tp||r.textposition,p=gM(l,r),y=n?n(l):l.tc||r.textfont.color;s.call(Ir.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:p,color:y}).text(u).call(ip.convertToTspans,t).call(pM,m,p,l.mrc)})}};Ir.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Ir.makeSelectedTextStyleFns(r);e.each(function(n){var a=ba.select(this),i=t.selectedTextColorFn(n),o=n.tp||r.textposition,l=gM(n,r);Ra.fill(a,i);var s=ap.traceIs(r,"bar-like");pM(a,o,l,n.mrc2||n.mrc,s)})}};var nM=.5;Ir.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a=s||_>=f&&_<=s)&&(A<=v&&A>=u||A>=v&&A<=u)&&(e=[_,A])}return e}Ir.applyBackoff=bM;Ir.makeTester=function(){var e=un.ensureSingleById(ba.select("body"),"svg","js-plotly-tester",function(t){t.attr(aG.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=un.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Ir.tester=e,Ir.testref=r};Ir.savedBBoxes={};var J2=0,mG=1e4;Ir.bBox=function(e,r,t){t||(t=aM(e));var n;if(t){if(n=Ir.savedBBoxes[t],n)return un.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=aM(a),t){var i=+a.getAttribute("x")||0,o=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var s=Ir.bBox(a,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,n=Ir.savedBBoxes[t],n)return un.extendFlat({},n)}}var u,f;r?u=e:(f=Ir.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ba.select(u).attr("transform",null).call(ip.positionText,0,0);var v=u.getBoundingClientRect(),h=Ir.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:v.height,width:v.width,left:v.left-h.left,top:v.top-h.top,right:v.right-h.left,bottom:v.bottom-h.top};return J2>=mG&&(Ir.savedBBoxes={},J2=0),t&&(Ir.savedBBoxes[t]=d),J2++,un.extendFlat({},d)};function aM(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Ir.setClipUrl=function(e,r,t){e.attr("clip-path",e3(r,t))};function e3(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Ir.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};Ir.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return r=r||0,t=t||0,o=o.replace(n,"").trim(),o+=M1(r,t),o=o.trim(),e[i]("transform",o),o};Ir.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};Ir.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return r=r||1,t=t||1,o=o.replace(n,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var yG=/\s*sc.*/;Ir.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(yG,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var bG=/translate\([^)]*\)\s*$/;Ir.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=ba.select(this),i=a.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(a.attr("transform")||"").match(bG);r===1&&t===1?n=[]:n=[M1(o,l),"scale("+r+","+t+")",M1(-o,-l)],s&&n.push(s),a.attr("transform",n.join(""))}})};function r3(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}Ir.getMarkerStandoff=r3;var w1=Math.atan2,uc=Math.cos,Y0=Math.sin;function iM(e,r){var t=r[0],n=r[1];return[t*uc(e)-n*Y0(e),t*Y0(e)+n*uc(e)]}var oM,lM,sM,uM,$2,K2;function t3(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||un.isArrayOrTypedArray(t))&&(t=0));var n,a,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);n=o[0],a=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)n=l.c2p(e.x),a=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=w1(h[1]-a,h[0]-n),m=w1(v[1]-a,v[0]-n),p;if(i==="north")p=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,b=f/180*Math.PI,C=oM/180*Math.PI,x=lM/180*Math.PI,_=C-y,A=uc(x)*Y0(_),k=Y0(x)*uc(b)-uc(x)*Y0(b)*uc(_);p=-w1(A,k)-Math.PI,oM=u,lM=f}var M=iM(d,[uc(p),0]),D=iM(m,[Y0(p),0]);t=w1(M[1]+D[1],M[0]+D[0])/Math.PI*180,i==="previous"&&!(K2===r.uid&&e.i===$2+1)&&(t=null)}if(i==="previous"&&!r._geo)if(K2===r.uid&&e.i===$2+1&&vc(n)&&vc(a)){var z=n-sM,F=a-uM,I=r.line&&r.line.shape||"",W=I.slice(I.length-1);W==="h"&&(F=0),W==="v"&&(z=0),t+=w1(F,z)/Math.PI*180+90}else t=null}return sM=n,uM=a,$2=e.i,K2=r.uid,t}Ir.getMarkerAngle=t3});var A1=te((xue,AM)=>{"use strict";var G0=kt(),_G=Ut(),xG=fa(),n3=dt(),hc=gr(),xM=hc.strTranslate,op=fn(),lp=Pt(),V0=ci(),wM=dd(),wG=Ka().OPPOSITE_SIDE,MM=/ [XY][0-9]* /,a3=1.6,i3=1.6;function MG(e,r,t){var n=e._fullLayout,a=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,v=t.containerGroup,h=1,d=a.title,m=(d&&d.text?d.text:"").trim(),p=!1,y=d&&d.font?d.font:{},b=y.family,C=y.size,x=y.color,_=y.weight,A=y.style,k=y.variant,M=y.textcase,D=y.lineposition,z=y.shadow,F=t.subtitlePropName,I=!!F,W=t.subtitlePlaceholder,B=(a.title||{}).subtitle||{text:"",font:{}},X=B.text.trim(),G=!1,re=1,ne=B.font,K=ne.family,ee=ne.size,fe=ne.color,he=ne.weight,De=ne.style,Ne=ne.variant,Fe=ne.textcase,Xe=ne.lineposition,Le=ne.shadow,rr;i==="title.text"?rr="titleText":i.indexOf("axis")!==-1?rr="axisTitleText":i.indexOf("colorbar")!==-1&&(rr="colorbarTitleText");var se=e._context.edits[rr];function ye(ur,cr){return ur===void 0||cr===void 0?!1:ur.replace(MM," % ")===cr.replace(MM," % ")}m===""?h=0:ye(m,o)&&(se||(m=""),h=.2,p=!0),I&&(X===""?re=0:ye(X,W)&&(se||(X=""),re=.2,G=!0)),t._meta?m=hc.templateString(m,t._meta):n._meta&&(m=hc.templateString(m,n._meta));var we=m||X||se,pe;v||(v=hc.ensureSingle(n._infolayer,"g","g-"+r),pe=n._hColorbarMoveTitle);var U=v.selectAll("text."+r).data(we?[0]:[]);U.enter().append("text"),U.text(m).attr("class",r),U.exit().remove();var Q=null,$=r+"-subtitle",ke=X||se;if(I&&ke&&(Q=v.selectAll("text."+$).data(ke?[0]:[]),Q.enter().append("text"),Q.text(X).attr("class",$),Q.exit().remove()),!we)return v;function Oe(ur,cr){hc.syncOrAsync([Ie,ir],{title:ur,subtitle:cr})}function Ie(ur){var cr=ur.title,Qe=ur.subtitle,pr;!f&&pe&&(f={}),f?(pr="",f.rotate&&(pr+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||pe)&&(pr+=xM(0,(f.offset||0)-(pe||0)))):pr=null,cr.attr("transform",pr);function dr(Ae){if(Ae){var je=G0.select(Ae.node().parentNode).select("."+$);if(!je.empty()){var hr=Ae.node().getBBox();if(hr.height){var wr=hr.y+hr.height+a3*ee;je.attr("y",wr)}}}}if(cr.style("opacity",h*lp.opacity(x)).call(op.font,{color:lp.rgb(x),size:G0.round(C,2),family:b,weight:_,style:A,variant:k,textcase:M,shadow:z,lineposition:D}).attr(u).call(V0.convertToTspans,e,dr),Qe){var Te=v.select("."+r+"-math-group"),Ye=cr.node().getBBox(),Ar=Te.node()?Te.node().getBBox():void 0,Nr=Ar?Ar.y+Ar.height+a3*ee:Ye.y+Ye.height+i3*ee,Er=hc.extendFlat({},u,{y:Nr});Qe.attr("transform",pr),Qe.style("opacity",re*lp.opacity(fe)).call(op.font,{color:lp.rgb(fe),size:G0.round(ee,2),family:K,weight:he,style:De,variant:Ne,textcase:Fe,shadow:Le,lineposition:Xe}).attr(Er).call(V0.convertToTspans,e)}return xG.previousPromises(e)}function ir(ur){var cr=ur.title,Qe=G0.select(cr.node().parentNode);if(s&&s.selection&&s.side&&m){Qe.attr("transform",null);var pr=wG[s.side],dr=s.side==="left"||s.side==="top"?-1:1,Te=_G(s.pad)?s.pad:2,Ye=op.bBox(Qe.node()),Ar={t:0,b:0,l:0,r:0},Nr=e._fullLayout._reservedMargin;for(var Er in Nr)for(var Ae in Nr[Er]){var je=Nr[Er][Ae];Ar[Ae]=Math.max(Ar[Ae],je)}var hr={left:Ar.l,top:Ar.t,right:n.width-Ar.r,bottom:n.height-Ar.b},wr=s.maxShift||dr*(hr[s.side]-Ye[s.side]),mr=0;if(wr<0)mr=wr;else{var Tr=s.offsetLeft||0,Dr=s.offsetTop||0;Ye.left-=Tr,Ye.right-=Tr,Ye.top-=Dr,Ye.bottom-=Dr,s.selection.each(function(){var Cr=op.bBox(this);hc.bBoxIntersect(Ye,Cr,Te)&&(mr=Math.max(mr,dr*(Cr[s.side]-Ye[pr])+Te))}),mr=Math.min(wr,mr),a._titleScoot=Math.abs(mr)}if(mr>0||wr<0){var Or={left:[-mr,0],right:[mr,0],top:[0,-mr],bottom:[0,mr]}[s.side];Qe.attr("transform",xM(Or[0],Or[1]))}}}U.call(Oe,Q);function or(ur,cr){ur.text(cr).on("mouseover.opacity",function(){G0.select(this).transition().duration(wM.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){G0.select(this).transition().duration(wM.HIDE_PLACEHOLDER).style("opacity",0)})}if(se&&(m?U.on(".opacity",null):(or(U,o),p=!0),U.call(V0.makeEditable,{gd:e}).on("edit",function(ur){l!==void 0?n3.call("_guiRestyle",e,i,ur,l):n3.call("_guiRelayout",e,i,ur)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Oe)}).on("input",function(ur){this.text(ur||" ").call(V0.positionText,u.x,u.y)}),I)){if(I&&!m){var Ue=U.node().getBBox(),tr=Ue.y+Ue.height+i3*ee;Q.attr("y",tr)}X?Q.on(".opacity",null):(or(Q,W),G=!0),Q.call(V0.makeEditable,{gd:e}).on("edit",function(ur){n3.call("_guiRelayout",e,"title.subtitle.text",ur)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Oe)}).on("input",function(ur){this.text(ur||" ").call(V0.positionText,Q.attr("x"),Q.attr("y"))})}return U.classed("js-placeholder",p),Q&&Q.classed("js-placeholder",G),v}AM.exports={draw:MG,SUBTITLE_PADDING_EM:i3,SUBTITLE_PADDING_MATHJAX_EM:a3}});var pp=te((wue,LM)=>{"use strict";var AG=kt(),TG=m0().utcFormat,yn=gr(),kG=yn.numberFormat,ts=Ut(),Zu=yn.cleanNumber,SG=yn.ms2DateTime,TM=yn.dateTime2ms,ns=yn.ensureNumber,kM=yn.isArrayOrTypedArray,Xu=Rn(),sp=Xu.FP_SAFE,ml=Xu.BADNUM,CG=Xu.LOG_CLIP,LG=Xu.ONEWEEK,up=Xu.ONEDAY,fp=Xu.ONEHOUR,SM=Xu.ONEMIN,CM=Xu.ONESEC,cp=ua(),dp=Pa(),vp=dp.HOUR_PATTERN,hp=dp.WEEKDAY_PATTERN;function T1(e){return Math.pow(10,e)}function o3(e){return e!=null}LM.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function i(_,A){if(_>0)return Math.log(_)/Math.LN10;if(_<=0&&A&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*CG*Math.abs(k-M))}else return ml}function o(_,A,k,M){if((M||{}).msUTC&&ts(_))return+_;var D=TM(_,k||r.calendar);if(D===ml)if(ts(_)){_=+_;var z=Math.floor(yn.mod(_+.05,1)*10),F=Math.round(_-z/10);D=TM(new Date(F))+z/10}else return ml;return D}function l(_,A,k){return SG(_,A,k||r.calendar)}function s(_){return r._categories[Math.round(_)]}function u(_){if(o3(_)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[_]!==void 0)return r._categoriesMap[_];r._categories.push(typeof _=="number"?String(_):_);var A=r._categories.length-1;return r._categoriesMap[_]=A,A}return ml}function f(_,A){for(var k=new Array(A),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,D=M*_,z=0,F=0;FW)z=F+1;else{z=D<(I+W)/2?F:F+1;break}}var B=r._B[z]||0;return isFinite(B)?m(_,r._m2,B):0},b=function(_){var A=r._rangebreaks.length;if(!A)return p(_,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return p(_,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:ns,r.l2c=r.type==="log"?T1:ns,r.l2p=y,r.p2l=b,r.c2p=r.type==="log"?function(_,A){return y(i(_,A))}:y,r.p2c=r.type==="log"?function(_){return T1(b(_))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Zu,r.c2d=r.c2r=r.l2d=r.l2r=ns,r.d2p=r.r2p=function(_){return r.l2p(Zu(_))},r.p2d=r.p2r=b,r.cleanPos=ns):r.type==="log"?(r.d2r=r.d2l=function(_,A){return i(Zu(_),A)},r.r2d=r.r2c=function(_){return T1(Zu(_))},r.d2c=r.r2l=Zu,r.c2d=r.l2r=ns,r.c2r=i,r.l2d=T1,r.d2p=function(_,A){return r.l2p(r.d2r(_,A))},r.p2d=function(_){return T1(b(_))},r.r2p=function(_){return r.l2p(Zu(_))},r.p2r=b,r.cleanPos=ns):r.type==="date"?(r.d2r=r.r2d=yn.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(_,A,k){return r.l2p(o(_,0,k))},r.p2d=r.p2r=function(_,A,k){return l(b(_),A,k)},r.cleanPos=function(_){return yn.cleanDate(_,ml,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var A=d(_);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=ns,r.r2l=d,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return typeof _=="string"&&_!==""?_:ns(_)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var A=h(_);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=ns,r.r2l=h,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return Array.isArray(_)||typeof _=="string"&&_!==""?_:ns(_)},r.setupMultiCategory=function(_){var A=r._traceIndices,k,M,D=r._matchGroup;if(D&&r._categories.length===0){for(var z in D)if(z!==n){var F=t[cp.id2name(z)];A=A.concat(F._traceIndices)}}var I=[[0,{}],[0,{}]],W=[];for(k=0;kF[1]&&(M[z?0:1]=k),M[0]===M[1]){var I=r.l2r(A),W=r.l2r(k);if(A!==void 0){var B=I+1;k!==void 0&&(B=Math.min(B,W)),M[z?1:0]=B}if(k!==void 0){var X=W+1;A!==void 0&&(X=Math.max(X,I)),M[z?0:1]=X}}}},r.cleanRange=function(_,A){r._cleanRange(_,A),r.limitRange(_)},r._cleanRange=function(_,A){A||(A={}),_||(_="range");var k=yn.nestedProperty(r,_).get(),M,D;if(r.type==="date"?D=yn.dfltRange(r.calendar):a==="y"?D=dp.DFLTRANGEY:r._name==="realaxis"?D=[0,1]:D=A.dfltRange||dp.DFLTRANGEX,D=D.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(D[0]=0),!k||k.length!==2){yn.nestedProperty(r,_).set(D);return}var z=k[0]===null,F=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=yn.cleanDate(k[0],ml,r.calendar),k[1]=yn.cleanDate(k[1],ml,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!yn.isDateTime(k[M],r.calendar)){r[_]=D;break}if(r.r2l(k[0])===r.r2l(k[1])){var I=yn.constrain(r.r2l(k[0]),yn.MIN_MS+1e3,yn.MAX_MS-1e3);k[0]=r.l2r(I-1e3),k[1]=r.l2r(I+1e3);break}}else{if(!ts(k[M]))if(!(z||F)&&ts(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[_]=D;break}if(k[M]<-sp?k[M]=-sp:k[M]>sp&&(k[M]=sp),k[0]===k[1]){var W=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=W,k[1]+=W}}},r.setScale=function(_){var A=t._size;if(r.overlaying){var k=cp.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=_&&r._r?"_r":"range",D=r.calendar;r.cleanRange(M);var z=r.r2l(r[M][0],D),F=r.r2l(r[M][1],D),I=a==="y";if(I?(r._offset=A.t+(1-r.domain[1])*A.h,r._length=A.h*(r.domain[1]-r.domain[0]),r._m=r._length/(z-F),r._b=-r._m*F):(r._offset=A.l+r.domain[0]*A.w,r._length=A.w*(r.domain[1]-r.domain[0]),r._m=r._length/(F-z),r._b=-r._m*z),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var W,B;if(r._rangebreaks=r.locateBreaks(Math.min(z,F),Math.max(z,F)),r._rangebreaks.length){for(W=0;WF&&(X=!X),X&&r._rangebreaks.reverse();var G=X?-1:1;for(r._m2=G*r._length/(Math.abs(F-z)-r._lBreaks),r._B.push(-r._m2*(I?F:z)),W=0;WD&&(D+=7,zD&&(D+=24,z=M&&z=M&&_=Le.min&&(DeLe.max&&(Le.max=Ne),Fe=!1)}Fe&&F.push({min:De,max:Ne})}};for(k=0;k{"use strict";var qM=Ut(),l3=gr(),qG=Rn().BADNUM,gp=l3.isArrayOrTypedArray,DG=l3.isDateTime,EG=l3.cleanNumber,DM=Math.round;PM.exports=function(r,t,n){var a=r,i=n.noMultiCategory;if(gp(a)&&!a.length)return"-";if(!i&&FG(a))return"multicategory";if(i&&Array.isArray(a[0])){for(var o=[],l=0;li*2}function EM(e){return Math.max(1,(e-1)/1e3)}function NG(e,r){for(var t=e.length,n=EM(t),a=0,i=0,o={},l=0;la*2}function FG(e){return gp(e[0])&&gp(e[1])}});var Ju=te((Aue,OM)=>{"use strict";var IG=kt(),FM=Ut(),ju=gr(),mp=Rn().FP_SAFE,HG=dt(),BG=fn(),IM=ua(),OG=IM.getFromId,UG=IM.isLinked;OM.exports={applyAutorangeOptions:BM,getAutoRange:u3,makePadFn:f3,doAutoRange:GG,findExtremes:VG,concatExtremes:h3};function u3(e,r){var t,n,a=[],i=e._fullLayout,o=f3(i,r,0),l=f3(i,r,1),s=h3(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return ju.simpleMap(r.range,r.r2l);var v=u[0].val,h=f[0].val;for(t=1;t0&&(F=x-o(k)-l(M),F>_?I/F>A&&(D=k,z=M,A=I/F):I/x>A&&(D={val:k.val,nopad:1},z={val:M.val,nopad:1},A=I/x));function W(ne,K){return Math.max(ne,l(K))}if(v===h){var B=v-1,X=v+1;if(b)if(v===0)a=[0,1];else{var G=(v>0?f:u).reduce(W,0),re=v/(1-Math.min(.5,G/x));a=v>0?[0,re]:[re,0]}else C?a=[Math.max(0,B),Math.max(1,X)]:a=[B,X]}else b?(D.val>=0&&(D={val:0,nopad:1}),z.val<=0&&(z={val:0,nopad:1})):C&&(D.val-A*o(D)<0&&(D={val:0,nopad:1}),z.val<=0&&(z={val:1,nopad:1})),A=(z.val-D.val-RM(r,k.val,M.val))/(x-o(D)-l(z)),a=[D.val-A*o(D),z.val+A*l(z)];return a=BM(a,r),r.limitRange&&r.limitRange(),m&&a.reverse(),ju.simpleMap(a,r.l2r||Number)}function RM(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=_((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=_(t.vpadplus||t.vpad),D=_(t.vpadminus||t.vpad);if(!u){if(C=1/0,x=-1/0,s)for(v=0;v0&&(C=h),h>x&&h-mp&&(C=h),h>x&&h=I;v--)F(v);return{min:n,max:a,opts:t}}function c3(e,r,t,n){HM(e,r,t,n,WG)}function v3(e,r,t,n){HM(e,r,t,n,ZG)}function HM(e,r,t,n,a){for(var i=n.tozero,o=n.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else a(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function NM(e){return FM(e)&&Math.abs(e)=r}function XG(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&yp(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&yp(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function jG(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&yp(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&yp(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function yp(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,n=s)}}return t=XG(t,r),n=jG(n,r),[t,n]}});var Dn=te((Tue,uA)=>{"use strict";var Ao=kt(),ea=Ut(),W0=fa(),S1=dt(),ut=gr(),Z0=ut.strTranslate,dc=ci(),JG=A1(),C1=Pt(),$i=fn(),$G=pl(),UM=D2(),za=Rn(),KG=za.ONEMAXYEAR,xp=za.ONEAVGYEAR,wp=za.ONEMINYEAR,QG=za.ONEMAXQUARTER,m3=za.ONEAVGQUARTER,Mp=za.ONEMINQUARTER,eV=za.ONEMAXMONTH,X0=za.ONEAVGMONTH,Ap=za.ONEMINMONTH,Ki=za.ONEWEEK,ei=za.ONEDAY,$u=ei/2,is=za.ONEHOUR,L1=za.ONEMIN,Tp=za.ONESEC,rV=za.ONEMILLI,tV=za.ONEMICROSEC,pc=za.MINUS_SIGN,Cp=za.BADNUM,y3={K:"zeroline"},b3={K:"gridline",L:"path"},_3={K:"minor-gridline",L:"path"},QM={K:"tick",L:"path"},YM={K:"tick",L:"text"},GM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Lp=Ka(),k1=Lp.MID_SHIFT,gc=Lp.CAP_SHIFT,q1=Lp.LINE_SPACING,nV=Lp.OPPOSITE_SIDE,kp=3,_r=uA.exports={};_r.setConvert=pp();var aV=s3(),Qs=ua(),iV=Qs.idSort,oV=Qs.isLinked;_r.id2name=Qs.id2name;_r.name2id=Qs.name2id;_r.cleanId=Qs.cleanId;_r.list=Qs.list;_r.listIds=Qs.listIds;_r.getFromId=Qs.getFromId;_r.getFromTrace=Qs.getFromTrace;var eA=Ju();_r.getAutoRange=eA.getAutoRange;_r.findExtremes=eA.findExtremes;var lV=1e-4;function A3(e){var r=(e[1]-e[0])*lV;return[e[0]-r,e[1]+r]}_r.coerceRef=function(e,r,t,n,a,i){var o=n.charAt(n.length-1),l=t._fullLayout._subplots[o+"axis"],s=n+"ref",u={};return a||(a=l[0]||(typeof i=="string"?i:i[0])),i||(i=a),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:a},ut.coerce(e,r,u,s)};_r.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};_r.coercePosition=function(e,r,t,n,a,i){var o,l,s=_r.getRefType(n);if(s!=="range")o=ut.ensureNumber,l=t(a,i);else{var u=_r.getFromId(r,n);i=u.fraction2r(i),l=t(a,i),o=u.cleanPos}e[a]=o(l)};_r.cleanPosition=function(e,r,t){var n=t==="paper"||t==="pixel"?ut.ensureNumber:_r.getFromId(r,t).cleanPos;return n(e)};_r.redrawComponents=function(e,r){r=r||_r.listIds(e);var t=e._fullLayout;function n(a,i,o,l){for(var s=S1.getComponentMethod(a,i),u={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};_r.saveRangeInitial=function(e,r){for(var t=_r.list(e,"",!0),n=!1,a=0;av*.3||u(n)||u(a))){var h=t.dtick/2;e+=e+ho){var l=Number(t.substr(1));i.exactYears>o&&l%12===0?e=_r.tickIncrement(e,"M6","reverse")+ei*1.5:i.exactMonths>o?e=_r.tickIncrement(e,"M1","reverse")+ei*15.5:e-=$u;var s=_r.tickIncrement(e,t);if(s<=n)return s}return e}_r.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var n=r.dtick&&ea(r._tmin),a;if(n){var i=_r.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,i*.99+r._tmin*.01]}else{var o=ut.simpleMap(r.range,r.r2l);a=[o[0],.8*o[0]+.2*o[1]]}if(e.range=ut.simpleMap(a,r.l2r),e._isMinor=!0,_r.prepTicks(e,t),n){var l=ea(r.dtick),s=ea(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?d3(u,f)?u===2*Ki&&f===2*ei&&(e.dtick=Ki):u===2*Ki&&f===3*ei?e.dtick=Ki:u===Ki&&!(r._input.minor||{}).nticks?e.dtick=ei:ZM(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":d3(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?d3(u,f)||(e.dtick=ZM(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function d3(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function ZM(e,r){return Math.abs(e/r-1)<.001}_r.prepTicks=function(e,r){var t=ut.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?ut.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=ut.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,_r.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=n-1,o=n):(i=n,o=n);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,v=0;f>=wp?u>=wp&&u<=KG?v=u:v=xp:t===m3&&f>=Mp?u>=Mp&&u<=QG?v=u:v=m3:f>=Ap?u>=Ap&&u<=eV?v=u:v=X0:t===Ki&&f>=Ki?v=Ki:f>=ei?v=ei:t===$u&&f>=$u?v=$u:t===is&&f>=is&&(v=is);var h;v>=u&&(v=u,h=!0);var d=a+v;if(r.rangebreaks&&v>0){for(var m=84,p=0,y=0;yKi&&(v=u)}(v>0||n===0)&&(e[n].periodX=a+v/2)}}_r.calcTicks=function(r,t){for(var n=r.type,a=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||ut.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=ut.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(x?0:1);_--){var A=!_;_?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=_?r:ut.extendFlat({},r,r.minor);if(A?_r.prepMinorTicks(k,r,t):_r.prepTicks(k,t),k.tickmode==="array"){_?(y=[],m=XM(r,!A)):(b=[],p=XM(r,!A));continue}if(k.tickmode==="sync"){y=[],m=hV(r);continue}var M=A3(u),D=M[0],z=M[1],F=ea(k.dtick),I=n==="log"&&!(F||k.dtick.charAt(0)==="L"),W=_r.tickFirst(k,t);if(_){if(r._tmin=W,W=z:X<=z;X=_r.tickIncrement(X,ne,f,a)){if(_&&G++,k.rangebreaks&&!f){if(X=h)break}if(y.length>d||X===B)break;B=X;var K={value:X};_?(I&&X!==(X|0)&&(K.simpleLabel=!0),i>1&&G%i&&(K.skipLabel=!0),y.push(K)):(K.minor=!0,b.push(K))}}if(!b||b.length<2)s=!1;else{var ee=(b[1].value-b[0].value)*(l?-1:1);FV(ee,r.tickformat)||(s=!1)}if(!s)C=y;else{var fe=y.concat(b);o&&y.length&&(fe=fe.slice(1)),fe=fe.sort(function(tr,ur){return tr.value-ur.value}).filter(function(tr,ur,cr){return ur===0||tr.value!==cr[ur-1].value});var he=fe.map(function(tr,ur){return tr.minor===void 0&&!tr.skipLabel?ur:null}).filter(function(tr){return tr!==null});he.forEach(function(tr){s.map(function(ur){var cr=tr+ur;cr>=0&&cr-1;we--){if(y[we].drop){y.splice(we,1);continue}y[we].value=g3(y[we].value,r);var $=r.c2p(y[we].value);(pe?Q>$-U:Q<$+U)?y.splice(f?we+1:we,1):Q=$}}S3(r)&&Math.abs(u[1]-u[0])===360&&y.pop(),r._tmax=(y[y.length-1]||{}).value,r._prevDateHead="",r._inCalcTicks=!0;var ke,Oe=function(tr){tr.text="",r._prevDateHead=ke};y=y.concat(b);function Ie(tr,ur){var cr=_r.tickText(tr,ur.value,!1,ur.simpleLabel),Qe=ur.periodX;return Qe!==void 0&&(cr.periodX=Qe,(Qe>h||Qeh&&(cr.periodX=h),Qea&&hxp)r/=xp,n=a(10),e.dtick="M"+12*as(r,n,bp);else if(i>X0)r/=X0,e.dtick="M"+as(r,1,jM);else if(i>ei){if(e.dtick=as(r,ei,e._hasDayOfWeekBreaks?[1,2,7,14]:dV),!t){var o=_r.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=ut.dateTick0(e.calendar,2):e.tick0=ut.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>is?e.dtick=as(r,is,jM):i>L1?e.dtick=as(r,L1,JM):i>Tp?e.dtick=as(r,Tp,JM):(n=a(10),e.dtick=as(r,n,bp))}else if(e.type==="log"){e.tick0=0;var s=ut.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,n=a(10),e.dtick="L"+as(r,n,bp)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):S3(e)?(e.tick0=0,n=1,e.dtick=as(r,n,pV)):(e.tick0=0,n=a(10),e.dtick=as(r,n,bp));if(e.dtick===0&&(e.dtick=1),!ea(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function aA(e){var r=e.dtick;if(e._tickexponent=0,!ea(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=ei&&a<=10||r>=ei*15)e._tickround="d";else if(r>=L1&&a<=16||r>=is)e._tickround="M";else if(r>=Tp&&a<=19||r>=L1)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,i)-20,e._tickround<0&&(e._tickround=4)}}else if(ea(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ea(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Sp(e.exponentformat)&&!T3(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}_r.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(ea(r))return ut.increment(e,a*r);var i=r.charAt(0),o=a*Number(r.substr(1));if(i==="M")return ut.incrementMonth(e,o,n);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?nA:tA,s=e+a*.01,u=ut.roundUp(ut.mod(s,1),l,t);return Math.floor(s)+Math.log(Ao.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};_r.tickFirst=function(e,r){var t=e.r2l||Number,n=ut.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&b<=e._length?y:null};if(i&&ut.isArrayOrTypedArray(e.ticktext)){var v=ut.simpleMap(e.range,e.r2l),h=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(u=0;u"+l;else{var u=E1(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function mV(e,r,t,n,a){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(a==="never"&&(a=""),n&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=D1(Math.pow(10,o),e,a,n);else if(ea(i)||s==="D"&&(e.minorloglabels==="complete"||ut.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(ut.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),v=f.split("e"),h=+v[1],d=Math.abs(h),m=e.exponentformat;m==="power"||Sp(m)&&T3(h)?(r.text=v[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":pc)+d+""),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=v[0]+m+(h>0?"+":pc)+d:(r.text=D1(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,ut.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var p=String(r.text).charAt(0);(p==="0"||p==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function yV(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function bV(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],i=a[1]===void 0?"":String(a[1]),o=a[0]===void 0?"":String(a[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function _V(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=D1(r.x,e,a,n)}function xV(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=wV(i);if(o[1]>=100)r.text=D1(ut.deg2rad(r.x),e,a,n);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=pc+r.text)}}}else r.text=D1(r.x,e,a,n)}function wV(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function n(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var a=n(e),i=e*a,o=Math.abs(t(i,a));return[Math.round(i/o),Math.round(a/o)]}var MV=["f","p","n","\u03BC","m","","k","M","G","T"];function Sp(e){return e==="SI"||e==="B"}function T3(e){return e>14||e<-15}function D1(e,r,t,n){var a=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=_r.getTickFormat(r),u=r.separatethousands;if(n){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ea(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};aA(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,pc);var v=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+m+"":o==="B"&&l===9?e+="B":Sp(o)&&(e+=MV[l/3+5])}return a?pc+e:e}_r.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*X0}function n(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var v=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return v===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):v-h}else return typeof s=="number"?1:-1}function a(s,u,f){var v=f||function(m){return m},h=u[0],d=u[1];return(!h&&typeof h!="number"||v(h)<=v(s))&&(!d&&typeof d!="number"||v(d)>=v(s))}function i(s,u){var f=u[0]===null,v=u[1]===null,h=n(s,u[0])>=0,d=n(s,u[1])<=0;return(f||h)&&(v||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return ut.syncOrAsync(a.map(function(s){return function(){if(s){var u=_r.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=_r.drawOne(e,u,t);return u._shiftPusher&&M3(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=ut.simpleMap(u._r,u.r2l),f}}}))};_r.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),v=_r.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),M3(r,m,n,!0),M3(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=NV(r,n));var p=h[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,C=r._mainMirrorPosition,x=r._vals=_r.calcTicks(r),_=[r.mirror,b,C].join("_");for(i=0;i0?Qe.bottom-ur:0,cr))));var Ye=0,Ar=0;if(r._shiftPusher&&(Ye=Math.max(cr,Qe.height>0?Ue==="l"?ur-Qe.left:Qe.right-ur:0),r.title.text!==s._dfltTitle[f]&&(Ar=(r._titleStandoff||0)+(r._titleScoot||0),Ue==="l"&&(Ar+=KM(r))),r._fullDepth=Math.max(Ye,Ar)),r.automargin){pr={x:0,y:0,r:0,l:0,t:0,b:0};var Nr=[0,1],Er=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ue==="b"?pr[Ue]=r._depth:(pr[Ue]=r._depth=Math.max(Qe.width>0?ur-Qe.top:0,cr),Nr.reverse()),Qe.width>0){var Ae=Qe.right-(r._offset+r._length);Ae>0&&(pr.xr=1,pr.r=Ae);var je=r._offset-Qe.left;je>0&&(pr.xl=0,pr.l=je)}}else if(Ue==="l"?(r._depth=Math.max(Qe.height>0?ur-Qe.left:0,cr),pr[Ue]=r._depth-Er):(r._depth=Math.max(Qe.height>0?Qe.right-ur:0,cr),pr[Ue]=r._depth+Er,Nr.reverse()),Qe.height>0){var hr=Qe.bottom-(r._offset+r._length);hr>0&&(pr.yb=0,pr.b=hr);var wr=r._offset-Qe.top;wr>0&&(pr.yt=1,pr.t=wr)}pr[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[Nr[0]],r.title.text!==s._dfltTitle[f]&&(pr[Ue]+=KM(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(dr={x:0,y:0,r:0,l:0,t:0,b:0},dr[tr]=r.linewidth,r.mirror&&r.mirror!==!0&&(dr[tr]+=cr),r.mirror===!0||r.mirror==="ticks"?dr[v]=r._anchorAxis.domain[Nr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(dr[v]=[r._counterDomainMin,r._counterDomainMax][Nr[1]]))}or&&(Te=S1.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&($M(pr,r.automargin),$M(dr,r.automargin)),W0.autoMargin(e,k3(r),pr),W0.autoMargin(e,lA(r),dr),W0.autoMargin(e,sA(r),Te)}),ut.syncOrAsync(Ie)}};function $M(e,r){if(e){var t=Object.keys(GM).reduce(function(n,a){return r.indexOf(a)!==-1&&GM[a].forEach(function(i){n[i]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function AV(e,r){var t=[],n,a=function(i,o){var l=i.xbnd[o];l!==null&&t.push(ut.extendFlat({},i,{x:l}))};if(r.length){for(n=0;ne.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(n){var f=e.side,v=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;n=n*v}return e._id.charAt(0)==="x"?function(h){return Z0(a+e._offset+e.l2p(x3(h))+t,i+n)}:function(h){return Z0(i+n,a+e._offset+e.l2p(x3(h))+t)}};function x3(e){return e.periodX!==void 0?e.periodX:e.x}function CV(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(m){return r.indexOf(m)!==-1},a=n("top"),i=n("left"),o=n("right"),l=n("bottom"),s=n("inside"),u=t!=="boundaries"&&(l||i||a||o);if(!u&&!s)return[0,0];var f=e.side,v=u?(e.tickwidth||0)/2:0,h=kp,d=e.tickfont?e.tickfont.size:12;return(l||a)&&(v+=d*gc,h+=(e.linewidth||0)/2),(i||o)&&(v+=(e.linewidth||0)/2,h+=kp),s&&f==="top"&&(h-=d*(1-gc)),(i||a)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h:0]}_r.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var i=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};_r.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",i=function(B){return n.indexOf(B)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=a!=="boundaries"&&(u||l||o||s),v=i("inside"),h=n==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&a!=="boundaries",d=0,m=0,p=h?e.ticklen:0;if(v?p*=-1:f&&(p=0),h&&(d+=p,t)){var y=ut.deg2rad(t);d=p*Math.cos(y)+1,m=p*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(v?-1:1);var b={labelStandoff:d,labelShift:m},C,x,_,A,k=0,M=e.side,D=e._id.charAt(0),z=e.tickangle,F;if(D==="x")F=!v&&M==="bottom"||v&&M==="top",A=F?1:-1,v&&(A*=-1),C=m*A,x=r+d*A,_=F?1:-.2,Math.abs(z)===90&&(v?_+=k1:z===-90&&M==="bottom"?_=gc:z===90&&M==="top"?_=k1:_=.5,k=k1/2*(z/90)),b.xFn=function(B){return B.dx+C+k*B.fontSize},b.yFn=function(B){return B.dy+x+B.fontSize*_},b.anchorFn=function(B,X){if(f){if(l)return"end";if(s)return"start"}return!ea(X)||X===0||X===180?"middle":X*A<0!==v?"end":"start"},b.heightFn=function(B,X,G){return X<-60||X>60?-.5*G:e.side==="top"!==v?-G:0};else if(D==="y"){if(F=!v&&M==="left"||v&&M==="right",A=F?1:-1,v&&(A*=-1),C=d,x=m*A,_=0,!v&&Math.abs(z)===90&&(z===-90&&M==="left"||z===90&&M==="right"?_=gc:_=.5),v){var I=ea(z)?+z:0;if(I!==0){var W=ut.deg2rad(I);k=Math.abs(Math.sin(W))*gc*A,_=0}}b.xFn=function(B){return B.dx+r-(C+B.fontSize*_)*A+k*B.fontSize},b.yFn=function(B){return B.dy+x+B.fontSize*k1},b.anchorFn=function(B,X){return ea(X)&&Math.abs(X)===90?"middle":F?"end":"start"},b.heightFn=function(B,X,G){return e.side==="right"&&(X*=-1),X<-30?-G:X<30?-.5*G:0}}return b};function qp(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}_r.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+n).data(a,qp);i.exit().remove(),i.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return C1.stroke(Ao.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return $i.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Dp(r,[QM]),i.attr("transform",t.transFn)};_r.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,i=a?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&_r.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;m--){var p=m?h:d;if(p){var y=p.selectAll("path."+n).data(m?o:i,qp);y.exit().remove(),y.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(b){return C1.stroke(Ao.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return $i.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}Dp(r,[b3,_3])}};_r.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=_r.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return iV(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(C1.stroke,r.zerolinecolor||C1.defaultLine).style("stroke-width",$i.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Dp(r,[y3])};_r.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,i=r.zerolinelayer==="above traces",o=t.cls||a+"tick",l=t.vals.filter(function(ee){return ee.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],v=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],qp),h=[];v.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(ee){var fe=Ao.select(this),he=e._promises.length;fe.call(dc.positionText,s.xFn(ee),s.yFn(ee)).call($i.font,{family:ee.font,size:ee.fontSize,color:ee.fontColor,weight:ee.fontWeight,style:ee.fontStyle,variant:ee.fontVariant,textcase:ee.fontTextcase,lineposition:ee.fontLineposition,shadow:ee.fontShadow}).text(ee.text).call(dc.convertToTspans,e),e._promises[he]?h.push(e._promises.pop().then(function(){d(fe,u)})):d(fe,u)}),Dp(r,[YM]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(ee){Ao.select(this).select("text").call(dc.positionText,s.xFn(ee),s.yFn(ee))});function d(ee,fe){ee.each(function(he){var De=Ao.select(this),Ne=De.select(".text-math-group"),Fe=s.anchorFn(he,fe),Xe=t.transFn.call(De.node(),he)+(ea(fe)&&+fe!=0?" rotate("+fe+","+s.xFn(he)+","+(s.yFn(he)-he.fontSize/2)+")":""),Le=dc.lineCount(De),rr=q1*he.fontSize,se=s.heightFn(he,ea(fe)?+fe:0,(Le-1)*rr);if(se&&(Xe+=Z0(0,se)),Ne.empty()){var ye=De.select("text");ye.attr({transform:Xe,"text-anchor":Fe}),ye.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var we=$i.bBox(Ne.node()).width,pe=we*{end:-.5,start:.5}[Fe];Ne.attr("transform",Xe+Z0(pe,0))}})}r._adjustTickLabelsOverflow=function(){var ee=r.ticklabeloverflow;if(!(!ee||ee==="allow")){var fe=ee.indexOf("hide")!==-1,he=r._id.charAt(0)==="x",De=0,Ne=he?e._fullLayout.width:e._fullLayout.height;if(ee.indexOf("domain")!==-1){var Fe=ut.simpleMap(r.range,r.r2l);De=r.l2p(Fe[0])+r._offset,Ne=r.l2p(Fe[1])+r._offset}var Xe=Math.min(De,Ne),Le=Math.max(De,Ne),rr=r.side,se=1/0,ye=-1/0;v.each(function(Q){var $=Ao.select(this),ke=$.select(".text-math-group");if(ke.empty()){var Oe=$i.bBox($.node()),Ie=0;he?(Oe.right>Le||Oe.leftLe||Oe.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+Fe._id]?$.style("display","none"):Le.K==="tick"&&!Xe&&$.node().style.display!=="none"&&$.style("display",null)})})})})},d(v,f+1?f:u);function m(){return h.length&&Promise.all(h)}var p=null;function y(){if(d(v,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){p=r.autotickangles[0];var ee=0,fe=[],he,De=1;v.each(function(pr){ee=Math.max(ee,pr.fontSize);var dr=r.l2p(pr.x),Te=w3(this),Ye=$i.bBox(Te.node());De=Math.max(De,dc.lineCount(Te)),fe.push({top:0,bottom:10,height:10,left:dr-Ye.width/2,right:dr+Ye.width/2+2,width:Ye.width+2})});var Ne=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Fe=l.length,Xe=Math.abs((l[Fe-1].x-l[0].x)*r._m)/(Fe-1),Le=Ne?Xe/2:Xe,rr=Ne?r.ticklen:ee*1.25*De,se=Math.sqrt(Math.pow(Le,2)+Math.pow(rr,2)),ye=Le/se,we=r.autotickangles.map(function(pr){return pr*Math.PI/180}),pe=we.find(function(pr){return Math.abs(Math.cos(pr))<=ye});pe===void 0&&(pe=we.reduce(function(pr,dr){return Math.abs(Math.cos(pr))re*G&&(W=G,z[D]=F[D]=B[D])}var ne=Math.abs(W-I);ne-A>0?(ne-=A,A*=1+A/ne):A=0,r._id.charAt(0)!=="y"&&(A=-A),z[M]=x.p2r(x.r2p(F[M])+k*A),x.autorange==="min"||x.autorange==="max reversed"?(z[0]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0):(x.autorange==="max"||x.autorange==="min reversed")&&(z[1]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[x._name+".range"]=z}var K=ut.syncOrAsync(b);return K&&K.then&&e._promises.push(K),K};function LV(e,r,t){var n=r._id+"divider",a=t.vals,i=t.layer.selectAll("path."+n).data(a,qp);i.exit().remove(),i.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(C1.stroke,r.dividercolor).style("stroke-width",$i.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}_r.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:n==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return i._offset;if(a==="bottom"||a==="right")return i._offset+i._length};function KM(e){var r=e.title.font.size,t=(e.title.text.match(dc.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(gc+t*q1):t?r*(t+1)*q1:r}function qV(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(dc.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*gc:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(k1+l*q1));else{var s=E1(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(a==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=_r.getPxPosition(e,r),v,h,d;a==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,h=r.side==="right"?f+o:f-o,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var p=r._selections[r._id+"tick"];if(m={selection:p,side:r.side},p&&p.node()&&p.node().parentNode){var y=$i.getTranslate(p.node().parentNode);m.offsetLeft=y.x,m.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=o,JG.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:m,transform:v,attributes:{x:h,y:d,"text-anchor":"middle"}})}_r.shouldShowZeroLine=function(e,r,t){var n=ut.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Cp)&&(oA(r,0)||!DV(e,r,t,n)||EV(e,r))};_r.clipEnds=function(e,r){return r.filter(function(t){return oA(e,t.x)})};function oA(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=tV:/%L/.test(r)?e>=rV:/%[SX]/.test(r)?e>=Tp:/%M/.test(r)?e>=L1:/%[HI]/.test(r)?e>=is:/%p/.test(r)?e>=$u:/%[Aadejuwx]/.test(r)?e>=ei:/%[UVW]/.test(r)?e>=Ki:/%[Bbm]/.test(r)?e>=Ap:/%[q]/.test(r)?e>=Mp:/%[Yy]/.test(r)?e>=wp:!0}});var cA=te((kue,fA)=>{"use strict";fA.exports=function(r,t,n){var a,i;if(n){var o=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[o?1:0],i=n[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?a:void 0),s=r("autorangeoptions.maxallowed",a===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var C3=te((Sue,vA)=>{"use strict";var IV=cA();vA.exports=function(r,t,n,a){var i=t._template||{},o=t.type||i.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var s;!a.noInsiderange&&o!=="log"&&(s=n("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=n("range",s)))}var u=t.getAutorangeDflt(l,a),f=n("autorange",u),v;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,v=!0),v||(u=t.getAutorangeDflt(l,a),f=n("autorange",u)),f&&(IV(n,f,l),(o==="linear"||o==="-")&&n("rangemode")),t.cleanRange()}});var dA=te((Cue,hA)=>{var HV={left:0,top:0};hA.exports=BV;function BV(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,i=OV(r);return t[0]=n-i.left,t[1]=a-i.top,t}function OV(e){return e===window||e===document||e===document.body?HV:e.getBoundingClientRect()}});var L3=te((Lue,pA)=>{"use strict";var UV=i2();function YV(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}pA.exports=UV&&YV()});var mA=te((que,gA)=>{"use strict";gA.exports=function(r,t,n,a,i){var o=(r-n)/(a-n),l=o+t/(a-n),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var _A=te((Due,bA)=>{"use strict";var yA=gr(),GV=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];bA.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=yA.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=yA.constrain(Math.floor(t*3),0,2),GV[t][r]}});var wA=te((Eue,xA)=>{"use strict";var VV=p1(),WV=Dd(),ZV=o1().getGraphDiv,XV=t1(),q3=xA.exports={};q3.wrapped=function(e,r,t){e=ZV(e),e._fullLayout&&WV.clear(e._fullLayout._uid+XV.HOVERID),q3.raw(e,r,t)};q3.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&VV.triggerHandler(r,"plotly_beforehover",t)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}))}});var To=te((Pue,kA)=>{"use strict";var jV=dA(),D3=l2(),JV=L3(),$V=gr().removeElement,KV=Pa(),mc=kA.exports={};mc.align=mA();mc.getCursor=_A();var AA=wA();mc.unhover=AA.wrapped;mc.unhoverRaw=AA.raw;mc.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,v,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,JV?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function m(x,_,A){return Math.abs(x)a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var _;v.target===h?_=v:(_={target:h,srcElement:h,toElement:h},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(A=>{var k=v[A];!_[A]&&typeof k!="function"&&(_[A]=k)})),r.clickFn&&r.clickFn(n,_),d||h.dispatchEvent(new MouseEvent("click",x))}t._dragging=!1,t._dragged=!1}};function TA(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}mc.coverSlip=TA;function MA(e){return jV(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ku=te((Rue,SA)=>{"use strict";SA.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var qA=te((zue,LA)=>{"use strict";var E3=Ku(),P1="data-savedcursor",CA="!!";LA.exports=function(r,t){var n=r.attr(P1);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),i=0;i{"use strict";var P3=$a(),QV=cl();DA.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:QV.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:P3({editType:"legend"}),grouptitlefont:P3({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:P3({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Pp=te(Ep=>{"use strict";Ep.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Ep.isVertical=function(r){return r.orientation!=="h"};Ep.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var F3=te((Iue,EA)=>{"use strict";var z3=dt(),Qi=gr(),eW=bn(),rW=bo(),tW=R3(),nW=A0(),N3=Pp();function aW(e,r,t,n){var a=r[e]||{},i=eW.newContainer(t,e);function o(ne,K){return Qi.coerce(a,i,tW,ne,K)}var l=Qi.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var s=o("visible");if(s){for(var u,f=function(ne,K){var ee=u._input,fe=u;return Qi.coerce(ee,fe,rW,ne,K)},v=t.font||{},h=Qi.coerceFont(o,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),d=0,m=!1,p="normal",y=(t.shapes||[]).filter(function(ne){return ne.showlegend}),b=n.concat(y).filter(function(ne){return e===(ne.legend||"legend")}),C=0;C(e==="legend"?1:0));if(_===!1&&(t[e]=void 0),!(_===!1&&!a.uirevision)&&(o("uirevision",t.uirevision),_!==!1)){o("borderwidth");var A=o("orientation"),k=o("yref"),M=o("xref"),D=A==="h",z=k==="paper",F=M==="paper",I,W,B,X="left";D?(I=0,z3.getComponentMethod("rangeslider","isVisible")(r.xaxis)?z?(W=1.1,B="bottom"):(W=1,B="top"):z?(W=-.1,B="top"):(W=0,B="bottom")):(W=1,B="auto",F?I=1.02:(I=1,X="right")),Qi.coerce(a,i,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:I}},"x"),Qi.coerce(a,i,{y:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:W}},"y"),o("traceorder",p),N3.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",X),o("yanchor",B),o("maxheight"),o("valign"),Qi.noneOrAll(a,i,["x","y"]);var G=o("title.text");if(G){o("title.side",D?"left":"top");var re=Qi.extendFlat({},l,{size:Qi.bigFont(l.size)});Qi.coerceFont(o,"title.font",re)}}}}EA.exports=function(r,t,n){var a,i=n.slice(),o=t.shapes;if(o)for(a=0;a{"use strict";var j0=dt(),H3=gr(),iW=H3.pushUnique,I3=!0;PA.exports=function(r,t,n){var a=t._fullLayout;if(t._dragged||t._editing)return;var i=a.legend.itemclick,o=a.legend.itemdoubleclick,l=a.legend.groupclick;n===1&&i==="toggle"&&o==="toggleothers"&&I3&&t.data&&t._context.showTips&&H3.notifier(H3._(t,"Double-click on legend to isolate one trace"),"long"),I3=!1;var s;if(n===1?s=i:n===2&&(s=o),!s)return;var u=l==="togglegroup",f=a.hiddenlabels?a.hiddenlabels.slice():[],v=r.data()[0][0];if(v.groupTitle&&v.noClick)return;var h=t._fullData,d=(a.shapes||[]).filter(function(tr){return tr.showlegend}),m=h.concat(d),p=v.trace;p._isShape&&(p=p._fullInput);var y=p.legendgroup,b,C,x,_,A,k,M={},D=[],z=[],F=[];function I(tr,ur){var cr=D.indexOf(tr),Qe=M.visible;return Qe||(Qe=M.visible=[]),D.indexOf(tr)===-1&&(D.push(tr),cr=D.length-1),Qe[cr]=ur,cr}var W=(a.shapes||[]).map(function(tr){return tr._input}),B=!1;function X(tr,ur){W[tr].visible=ur,B=!0}function G(tr,ur){if(!(v.groupTitle&&!u)){var cr=tr._fullInput||tr,Qe=cr._isShape,pr=cr.index;pr===void 0&&(pr=cr._index);var dr=cr.visible===!1?!1:ur;Qe?X(pr,dr):I(pr,dr)}}var re=p.legend,ne=p._fullInput,K=ne&&ne._isShape;if(!K&&j0.traceIs(p,"pie-like")){var ee=v.label,fe=f.indexOf(ee);if(s==="toggle")fe===-1?f.push(ee):f.splice(fe,1);else if(s==="toggleothers"){var he=fe!==-1,De=[];for(b=0;b{"use strict";zA.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var IA=te((Oue,FA)=>{"use strict";var NA=dt(),O3=Pp();FA.exports=function(r,t,n){var a=t._inHover,i=O3.isGrouped(t),o=O3.isReversed(t),l={},s=[],u=!1,f={},v=0,h=0,d,m;function p(ne,K,ee){if(t.visible!==!1&&!(n&&ne!==t._id))if(K===""||!O3.isGrouped(t)){var fe="~~i"+v;s.push(fe),l[fe]=[ee],v++}else s.indexOf(K)===-1?(s.push(K),u=!0,l[K]=[ee]):l[K].push(ee)}for(d=0;dF&&(z=F)}M[d][0]._groupMinRank=z,M[d][0]._preGroupSort=d}var I=function(ne,K){return ne[0]._groupMinRank-K[0]._groupMinRank||ne[0]._preGroupSort-K[0]._preGroupSort},W=function(ne,K){return ne.trace.legendrank-K.trace.legendrank||ne._preSort-K._preSort};for(M.forEach(function(ne,K){ne[0]._preGroupSort=K}),M.sort(I),d=0;d{"use strict";var Rp=gr();function HA(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}yc.formatPiePercent=function(r,t){var n=HA((r*100).toPrecision(3));return Rp.numSeparate(n,t)+"%"};yc.formatPieValue=function(r,t){var n=HA(r.toPrecision(10));return Rp.numSeparate(n,t)};yc.getFirstFilled=function(r,t){if(Rp.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var oW=fn(),lW=Pt();BA.exports=function(r,t,n,a){var i=n.marker.pattern;i&&i.shape?oW.pointStyle(r,n,a,t):lW.fill(r,t.color)}});var VA=te((Gue,GA)=>{"use strict";var UA=Pt(),YA=U3().castOption,sW=OA();GA.exports=function(r,t,n,a){var i=n.marker.line,o=YA(i.color,t.pts)||UA.defaultLine,l=YA(i.width,t.pts)||0;r.call(sW,t,n,a).style("stroke-width",l).call(UA.stroke,o)}});var W3=te((Vue,$A)=>{"use strict";var ri=kt(),Y3=dt(),Oa=gr(),WA=Oa.strTranslate,eo=fn(),ko=Pt(),G3=es().extractOpts,zp=Qa(),uW=VA(),fW=U3().castOption,cW=B3(),ZA=12,XA=5,bc=2,vW=10,J0=5;$A.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var i=n.itemsizing==="constant",o=n.itemwidth,l=(o+cW.itemGap*2)/2,s=WA(l,0),u=function(M,D,z,F){var I;if(M+1)I=M;else if(D&&D.width>0)I=D.width;else return 0;return i?F:Math.min(I,z)};r.each(function(M){var D=ri.select(this),z=Oa.ensureSingle(D,"g","layers");z.style("opacity",M[0].trace.opacity);var F=n.indentation,I=n.valign,W=M[0].lineHeight,B=M[0].height;if(I==="middle"&&F===0||!W||!B)z.attr("transform",null);else{var X={top:1,bottom:-1}[I],G=X*(.5*(W-B+3))||0,re=n.indentation;z.attr("transform",WA(re,G))}var ne=z.selectAll("g.legendfill").data([M]);ne.enter().append("g").classed("legendfill",!0);var K=z.selectAll("g.legendlines").data([M]);K.enter().append("g").classed("legendlines",!0);var ee=z.selectAll("g.legendsymbols").data([M]);ee.enter().append("g").classed("legendsymbols",!0),ee.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(h).each(m).each(d).each(y).each(_).each(x).each(f).each(v).each(b).each(C);function f(M){var D=jA(M),z=D.showFill,F=D.showLine,I=D.showGradientLine,W=D.showGradientFill,B=D.anyFill,X=D.anyLine,G=M[0],re=G.trace,ne,K,ee=G3(re),fe=ee.colorscale,he=ee.reversescale,De=function(ye){if(ye.size())if(z)eo.fillGroupStyle(ye,t,!0);else{var we="legendfill-"+re.uid;eo.gradient(ye,t,we,V3(he),fe,"fill")}},Ne=function(ye){if(ye.size()){var we="legendline-"+re.uid;eo.lineGroupStyle(ye),eo.gradient(ye,t,we,V3(he),fe,"stroke")}},Fe=zp.hasMarkers(re)||!B?"M5,0":X?"M5,-2":"M5,-3",Xe=ri.select(this),Le=Xe.select(".legendfill").selectAll("path").data(z||W?[M]:[]);if(Le.enter().append("path").classed("js-fill",!0),Le.exit().remove(),Le.attr("d",Fe+"h"+o+"v6h-"+o+"z").call(De),F||I){var rr=u(void 0,re.line,vW,XA);K=Oa.minExtend(re,{line:{width:rr}}),ne=[Oa.minExtend(G,{trace:K})]}var se=Xe.select(".legendlines").selectAll("path").data(F||I?[ne]:[]);se.enter().append("path").classed("js-line",!0),se.exit().remove(),se.attr("d",Fe+(I?"l"+o+",0.0001":"h"+o)).call(F?eo.lineGroupStyle:Ne)}function v(M){var D=jA(M),z=D.anyFill,F=D.anyLine,I=D.showLine,W=D.showMarker,B=M[0],X=B.trace,G=!W&&!F&&!z&&zp.hasText(X),re,ne;function K(Le,rr,se,ye){var we=Oa.nestedProperty(X,Le).get(),pe=Oa.isArrayOrTypedArray(we)&&rr?rr(we):we;if(i&&pe&&ye!==void 0&&(pe=ye),se){if(pese[1])return se[1]}return pe}function ee(Le){return B._distinct&&B.index&&Le[B.index]?Le[B.index]:Le[0]}if(W||G||I){var fe={},he={};if(W){fe.mc=K("marker.color",ee),fe.mx=K("marker.symbol",ee),fe.mo=K("marker.opacity",Oa.mean,[.2,1]),fe.mlc=K("marker.line.color",ee),fe.mlw=K("marker.line.width",Oa.mean,[0,5],bc),he.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var De=K("marker.size",Oa.mean,[2,16],ZA);fe.ms=De,he.marker.size=De}I&&(he.line={width:K("line.width",ee,[0,10],XA)}),G&&(fe.tx="Aa",fe.tp=K("textposition",ee),fe.ts=10,fe.tc=K("textfont.color",ee),fe.tf=K("textfont.family",ee),fe.tw=K("textfont.weight",ee),fe.ty=K("textfont.style",ee),fe.tv=K("textfont.variant",ee),fe.tC=K("textfont.textcase",ee),fe.tE=K("textfont.lineposition",ee),fe.tS=K("textfont.shadow",ee)),re=[Oa.minExtend(B,fe)],ne=Oa.minExtend(X,he),ne.selectedpoints=null,ne.texttemplate=null}var Ne=ri.select(this).select("g.legendpoints"),Fe=Ne.selectAll("path.scatterpts").data(W?re:[]);Fe.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),Fe.exit().remove(),Fe.call(eo.pointStyle,ne,t),W&&(re[0].mrc=3);var Xe=Ne.selectAll("g.pointtext").data(G?re:[]);Xe.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Xe.exit().remove(),Xe.selectAll("text").call(eo.textPointStyle,ne,t)}function h(M){var D=M[0].trace,z=D.type==="waterfall";if(M[0]._distinct&&z){var F=M[0].trace[M[0].dir].marker;return M[0].mc=F.color,M[0].mlw=F.line.width,M[0].mlc=F.line.color,p(M,this,"waterfall")}var I=[];D.visible&&z&&(I=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var W=ri.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(I);W.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),W.exit().remove(),W.each(function(B){var X=ri.select(this),G=D[B[0]].marker,re=u(void 0,G.line,J0,bc);X.attr("d",B[1]).style("stroke-width",re+"px").call(ko.fill,G.color),re&&X.call(ko.stroke,G.line.color)})}function d(M){p(M,this)}function m(M){p(M,this,"funnel")}function p(M,D,z){var F=M[0].trace,I=F.marker||{},W=I.line||{},B=I.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",X=z?F.visible&&F.type===z:Y3.traceIs(F,"bar"),G=ri.select(D).select("g.legendpoints").selectAll("path.legend"+z).data(X?[M]:[]);G.enter().append("path").classed("legend"+z,!0).attr("d",B).attr("transform",s),G.exit().remove(),G.each(function(re){var ne=ri.select(this),K=re[0],ee=u(K.mlw,I.line,J0,bc);ne.style("stroke-width",ee+"px");var fe=K.mcc;if(!n._inHover&&"mc"in K){var he=G3(I),De=he.mid;De===void 0&&(De=(he.max+he.min)/2),fe=eo.tryColorscale(I,"")(De)}var Ne=fe||K.mc||I.color,Fe=I.pattern,Xe=eo.getPatternAttr,Le=Fe&&(Xe(Fe.shape,0,"")||Xe(Fe.path,0,""));if(Le){var rr=Xe(Fe.bgcolor,0,null),se=Xe(Fe.fgcolor,0,null),ye=Fe.fgopacity,we=JA(Fe.size,8,10),pe=JA(Fe.solidity,.5,1),U="legend-"+F.uid;ne.call(eo.pattern,"legend",t,U,Le,we,pe,fe,Fe.fillmode,rr,se,ye)}else ne.call(ko.fill,Ne);ee&&ko.stroke(ne,K.mlc||W.color)})}function y(M){var D=M[0].trace,z=ri.select(this).select("g.legendpoints").selectAll("path.legendbox").data(D.visible&&Y3.traceIs(D,"box-violin")?[M]:[]);z.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),z.exit().remove(),z.each(function(){var F=ri.select(this);if((D.boxpoints==="all"||D.points==="all")&&ko.opacity(D.fillcolor)===0&&ko.opacity((D.line||{}).color)===0){var I=Oa.minExtend(D,{marker:{size:i?ZA:Oa.constrain(D.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});z.call(eo.pointStyle,I,t)}else{var W=u(void 0,D.line,J0,bc);F.style("stroke-width",W+"px").call(ko.fill,D.fillcolor),W&&ko.stroke(F,D.line.color)}})}function b(M){var D=M[0].trace,z=ri.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(D.visible&&D.type==="candlestick"?[M,M]:[]);z.enter().append("path").classed("legendcandle",!0).attr("d",function(F,I){return I?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(F,I){var W=ri.select(this),B=D[I?"increasing":"decreasing"],X=u(void 0,B.line,J0,bc);W.style("stroke-width",X+"px").call(ko.fill,B.fillcolor),X&&ko.stroke(W,B.line.color)})}function C(M){var D=M[0].trace,z=ri.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(D.visible&&D.type==="ohlc"?[M,M]:[]);z.enter().append("path").classed("legendohlc",!0).attr("d",function(F,I){return I?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(F,I){var W=ri.select(this),B=D[I?"increasing":"decreasing"],X=u(void 0,B.line,J0,bc);W.style("fill","none").call(eo.dashLine,B.line.dash,X),X&&ko.stroke(W,B.line.color)})}function x(M){A(M,this,"pie")}function _(M){A(M,this,"funnelarea")}function A(M,D,z){var F=M[0],I=F.trace,W=z?I.visible&&I.type===z:Y3.traceIs(I,z),B=ri.select(D).select("g.legendpoints").selectAll("path.legend"+z).data(W?[M]:[]);if(B.enter().append("path").classed("legend"+z,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),B.exit().remove(),B.size()){var X=I.marker||{},G=u(fW(X.line.width,F.pts),X.line,J0,bc),re="pieLike",ne=Oa.minExtend(I,{marker:{line:{width:G}}},re),K=Oa.minExtend(F,{trace:ne},re);uW(B,K,ne,t)}}function k(M){var D=M[0].trace,z,F=[];if(D.visible)switch(D.type){case"histogram2d":case"heatmap":F=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":F=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":case"densitymap":F=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":F=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],z=!1;break;case"streamtube":F=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],z=!1;break;case"surface":F=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],z=!0;break;case"mesh3d":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1;break}var I=ri.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(F);I.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),I.exit().remove(),I.each(function(W,B){var X=ri.select(this),G=G3(D),re=G.colorscale,ne=G.reversescale,K=function(De){if(De.size()){var Ne="legendfill-"+D.uid;eo.gradient(De,t,Ne,V3(ne,z==="radial"),re,"fill")}},ee;if(re){if(!z){var he=re.length;ee=B===0?re[ne?he-1:0][1]:B===1?re[ne?0:he-1][1]:re[Math.floor((he-1)/2)][1]}}else{var fe=D.vertexcolor||D.facecolor||D.color;ee=Oa.isArrayOrTypedArray(fe)?fe[B]||fe[0]:fe}X.attr("d",W[0]),ee?X.call(ko.fill,ee):X.call(K)})}};function V3(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function jA(e){var r=e[0].trace,t=r.contours,n=zp.hasLines(r),a=zp.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:n=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:n||o,anyFill:i||l}}function JA(e,r,t){return e&&Oa.isArrayOrTypedArray(e)?r:e>t?t:e}});var J3=te((Wue,lT)=>{"use strict";var Pi=kt(),ra=gr(),X3=fa(),Q0=dt(),KA=p1(),Z3=To(),ta=fn(),Fp=Pt(),_c=ci(),QA=RA(),ca=B3(),j3=Ka(),iT=j3.LINE_SPACING,K0=j3.FROM_TL,eT=j3.FROM_BR,rT=IA(),hW=W3(),tT=Pp(),$0=1,dW=/^legend[0-9]*$/;lT.exports=function(r,t){if(t)nT(r,t);else{var n=r._fullLayout,a=n._legends,i=n._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Pi.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(dW)&&a.indexOf(v)===-1&&u.remove()});for(var o=0;o1)}var m=n.hiddenlabels||[];if(!l&&(!n.showlegend||!s.length))return o.selectAll("."+a).remove(),n._topdefs.select("#"+i).remove(),X3.autoMargin(e,a);var p=ra.ensureSingle(o,"g",a,function(D){l||D.attr("pointer-events","all")}),y=ra.ensureSingleById(n._topdefs,"clipPath",i,function(D){D.append("rect")}),b=ra.ensureSingle(p,"rect","bg",function(D){D.attr("shape-rendering","crispEdges")});b.call(Fp.stroke,t.bordercolor).call(Fp.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=ra.ensureSingle(p,"g","scrollbox"),x=t.title;t._titleWidth=0,t._titleHeight=0;var _;x.text?(_=ra.ensureSingle(C,"text",a+"titletext"),_.attr("text-anchor","start").call(ta.font,x.font).text(x.text),Ip(_,C,e,t,$0)):C.selectAll("."+a+"titletext").remove();var A=ra.ensureSingle(p,"rect","scrollbar",function(D){D.attr(ca.scrollBarEnterAttrs).call(Fp.fill,ca.scrollBarColor)}),k=C.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(ra.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(D){var z=D[0].trace;return Q0.traceIs(z,"pie-like")?m.indexOf(D[0].label)!==-1?.5:1:z.visible==="legendonly"?.5:1}).each(function(){Pi.select(this).call(gW,e,t)}).call(hW,e,t).each(function(){l||Pi.select(this).call(mW,e,a)}),ra.syncOrAsync([X3.previousPromises,function(){return _W(e,k,M,t)},function(){var D=n._size,z=t.borderwidth,F=t.xref==="paper",I=t.yref==="paper";if(x.text&&pW(_,t,z),!l){var W,B;F?W=D.l+D.w*t.x-K0[Hp(t)]*t._width:W=n.width*t.x-K0[Hp(t)]*t._width,I?B=D.t+D.h*(1-t.y)-K0[Bp(t)]*t._effHeight:B=n.height*(1-t.y)-K0[Bp(t)]*t._effHeight;var X=xW(e,a,W,B);if(X)return;if(n.margin.autoexpand){var G=W,re=B;W=F?ra.constrain(W,0,n.width-t._width):G,B=I?ra.constrain(B,0,n.height-t._effHeight):re,W!==G&&ra.log("Constrain "+a+".x to make legend fit inside graph"),B!==re&&ra.log("Constrain "+a+".y to make legend fit inside graph")}ta.setTranslate(p,W,B)}if(A.on(".drag",null),p.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var ne=t._effHeight;l&&(ne=t._height),b.attr({width:t._width-z,height:ne-z,x:z/2,y:z/2}),ta.setTranslate(C,0,0),y.select("rect").attr({width:t._width-2*z,height:ne-2*z,x:z,y:z}),ta.setClipUrl(C,i,e),ta.setRect(A,0,0,0,0),delete t._scrollY}else{var K=Math.max(ca.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),ee=t._effHeight-K-2*ca.scrollBarMargin,fe=t._height-t._effHeight,he=ee/fe,De=Math.min(t._scrollY||0,fe);b.attr({width:t._width-2*z+ca.scrollBarWidth+ca.scrollBarMargin,height:t._effHeight-z,x:z/2,y:z/2}),y.select("rect").attr({width:t._width-2*z+ca.scrollBarWidth+ca.scrollBarMargin,height:t._effHeight-2*z,x:z,y:z+De}),ta.setClipUrl(C,i,e),we(De,K,he),p.on("wheel",function(){De=ra.constrain(t._scrollY+Pi.event.deltaY/ee*fe,0,fe),we(De,K,he),De!==0&&De!==fe&&Pi.event.preventDefault()});var Ne,Fe,Xe,Le=function(ke,Oe,Ie){var ir=(Ie-Oe)/he+ke;return ra.constrain(ir,0,fe)},rr=function(ke,Oe,Ie){var ir=(Oe-Ie)/he+ke;return ra.constrain(ir,0,fe)},se=Pi.behavior.drag().on("dragstart",function(){var ke=Pi.event.sourceEvent;ke.type==="touchstart"?Ne=ke.changedTouches[0].clientY:Ne=ke.clientY,Xe=De}).on("drag",function(){var ke=Pi.event.sourceEvent;ke.buttons===2||ke.ctrlKey||(ke.type==="touchmove"?Fe=ke.changedTouches[0].clientY:Fe=ke.clientY,De=Le(Xe,Ne,Fe),we(De,K,he))});A.call(se);var ye=Pi.behavior.drag().on("dragstart",function(){var ke=Pi.event.sourceEvent;ke.type==="touchstart"&&(Ne=ke.changedTouches[0].clientY,Xe=De)}).on("drag",function(){var ke=Pi.event.sourceEvent;ke.type==="touchmove"&&(Fe=ke.changedTouches[0].clientY,De=rr(Xe,Ne,Fe),we(De,K,he))});C.call(ye)}function we(ke,Oe,Ie){t._scrollY=e._fullLayout[a]._scrollY=ke,ta.setTranslate(C,0,-ke),ta.setRect(A,t._width,ca.scrollBarMargin+ke*Ie,ca.scrollBarWidth,Oe),y.select("rect").attr("y",z+ke)}if(e._context.edits.legendPosition){var pe,U,Q,$;p.classed("cursor-move",!0),Z3.init({element:p.node(),gd:e,prepFn:function(ke){if(ke.target!==A.node()){var Oe=ta.getTranslate(p);Q=Oe.x,$=Oe.y}},moveFn:function(ke,Oe){if(Q!==void 0&&$!==void 0){var Ie=Q+ke,ir=$+Oe;ta.setTranslate(p,Ie,ir),pe=Z3.align(Ie,t._width,D.l,D.l+D.w,t.xanchor),U=Z3.align(ir+t._height,-t._height,D.t+D.h,D.t,t.yanchor)}},doneFn:function(){if(pe!==void 0&&U!==void 0){var ke={};ke[a+".x"]=pe,ke[a+".y"]=U,Q0.call("_guiRelayout",e,ke)}},clickFn:function(ke,Oe){var Ie=o.selectAll("g.traces").filter(function(){var ir=this.getBoundingClientRect();return Oe.clientX>=ir.left&&Oe.clientX<=ir.right&&Oe.clientY>=ir.top&&Oe.clientY<=ir.bottom});Ie.size()>0&&oT(e,p,Ie,ke,Oe)}})}}],e)}}function Np(e,r,t){var n=e[0],a=n.width,i=r.entrywidthmode,o=n.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||a)}function oT(e,r,t,n,a){var i=t.data()[0][0].trace,o={event:a,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(o.group=i._group),Q0.traceIs(i,"pie-like")&&(o.label=t.datum()[0].label);var l=KA.triggerHandler(e,"plotly_legendclick",o);if(n===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&QA(t,e,n)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=KA.triggerHandler(e,"plotly_legenddoubleclick",o);s!==!1&&l!==!1&&QA(t,e,n)}}function gW(e,r,t){var n=Op(t),a=e.data()[0][0],i=a.trace,o=Q0.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;a.groupTitle?(u=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?u=a.text:(u=o?a.label:i.name,i._meta&&(u=ra.templateString(u,i._meta))));var v=ra.ensureSingle(e,"text",n+"text");v.attr("text-anchor","start").call(ta.font,f).text(l?aT(u,s):u);var h=t.indentation+t.itemwidth+ca.itemGap*2;_c.positionText(v,h,0),l?v.call(_c.makeEditable,{gd:r,text:u}).call(Ip,e,r,t).on("edit",function(d){this.text(aT(d,s)).call(Ip,e,r,t);var m=a.trace._fullInput||{},p={};return p.name=d,m._isShape?Q0.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):Q0.call("_guiRestyle",r,p,i.index)}):Ip(v,e,r,t)}function aT(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function mW(e,r,t){var n=r._context.doubleClickDelay,a,i=1,o=ra.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Fp.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTimen&&(i=Math.max(i-1,1)),oT(r,l,e,i,Pi.event)}}))}function Ip(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),_c.convertToTspans(e,t,function(){yW(r,t,n,a)})}function yW(e,r,t,n){var a=e.data()[0][0];if(!t._inHover&&a&&!a.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),o=i.node(),l=Op(t);t||(t=r._fullLayout[l]);var s=t.borderwidth,u;n===$0?u=t.title.font:a.groupTitle?u=a.groupTitle.font:u=t.font;var f=u.size*iT,v,h;if(o){var d=ta.bBox(o);v=d.height,h=d.width,n===$0?ta.setTranslate(i,s,s+v*.75):ta.setTranslate(i,0,v*.25)}else{var m="."+l+(n===$0?"title":"")+"text",p=e.select(m),y=_c.lineCount(p),b=p.node();if(v=f*y,h=b?ta.bBox(b).width:0,n===$0)t.title.side==="left"&&(h+=ca.itemGap*2),_c.positionText(p,s+ca.titlePad,s+f);else{var C=ca.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(C=ca.itemGap,h-=t.indentation+t.itemwidth),_c.positionText(p,C,-f*((y-1)/2-.3))}}n===$0?(t._titleWidth=h,t._titleHeight=v):(a.lineHeight=f,a.height=Math.max(v,16)+3,a.width=h)}function bW(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function _W(e,r,t,n){var a=e._fullLayout,i=Op(n);n||(n=a[i]);var o=a._size,l=tT.isVertical(n),s=tT.isGrouped(n),u=n.entrywidthmode==="fraction",f=n.borderwidth,v=2*f,h=ca.itemGap,d=n.indentation+n.itemwidth+h*2,m=2*(f+h),p=Bp(n),y=n.y<0||n.y===0&&p==="top",b=n.y>1||n.y===1&&p==="bottom",C=n.tracegroupgap,x={};let{orientation:_,yref:A}=n,{maxheight:k}=n,M=y||b||_!=="v"||A!=="paper";k||(k=M?.5:1);let D=M?a.height:o.h;n._maxHeight=Math.max(k>1?k:k*D,30);var z=0;n._width=0,n._height=0;var F=bW(n);if(l)t.each(function(we){var pe=we[0].height;ta.setTranslate(this,f+F[0],f+F[1]+n._height+pe/2+h),n._height+=pe,n._width=Math.max(n._width,we[0].width)}),z=d+n._width,n._width+=h+d+v,n._height+=m,s&&(r.each(function(we,pe){ta.setTranslate(this,0,pe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var I=Hp(n),W=n.x<0||n.x===0&&I==="right",B=n.x>1||n.x===1&&I==="left",X=b||y,G=a.width/2;n._maxWidth=Math.max(W?X&&I==="left"?o.l+o.w:G:B?X&&I==="right"?o.r+o.w:G:o.w,2*d);var re=0,ne=0;t.each(function(we){var pe=Np(we,n,d);re=Math.max(re,pe),ne+=pe}),z=null;var K=0;if(s){var ee=0,fe=0,he=0;r.each(function(){var we=0,pe=0;Pi.select(this).selectAll("g.traces").each(function(Q){var $=Np(Q,n,d),ke=Q[0].height;ta.setTranslate(this,F[0],F[1]+f+h+ke/2+pe),pe+=ke,we=Math.max(we,$),x[Q[0].trace.legendgroup]=we});var U=we+h;fe>0&&U+f+fe>n._maxWidth?(K=Math.max(K,fe),fe=0,he+=ee+C,ee=pe):ee=Math.max(ee,pe),ta.setTranslate(this,fe,he),fe+=U}),n._width=Math.max(K,fe)+f,n._height=he+ee+m}else{var De=t.size(),Ne=ne+v+(De-1)*h=n._maxWidth&&(K=Math.max(K,rr),Xe=0,Le+=Fe,n._height+=Fe,Fe=0),ta.setTranslate(this,F[0]+f+Xe,F[1]+f+Le+pe/2+h),rr=Xe+U+h,Xe+=Q,Fe=Math.max(Fe,pe)}),Ne?(n._width=Xe+v,n._height=Fe+m):(n._width=Math.max(K,rr)+v,n._height+=Fe+m)}}n._width=Math.ceil(Math.max(n._width+F[0],n._titleWidth+2*(f+ca.titlePad))),n._height=Math.ceil(Math.max(n._height+F[1],n._titleHeight+2*(f+ca.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var se=e._context.edits,ye=se.legendText||se.legendPosition;t.each(function(we){var pe=Pi.select(this).select("."+i+"toggle"),U=we[0].height,Q=we[0].trace.legendgroup,$=Np(we,n,d);s&&Q!==""&&($=x[Q]);var ke=ye?d:z||$;!l&&!u&&(ke+=h/2),ta.setRect(pe,0,-U/2,ke,U)})}function xW(e,r,t,n){var a=e._fullLayout,i=a[r],o=Hp(i),l=Bp(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",v=i.x<.5?"l":"r",h={r:a.width-t,l:t+i._width,b:a.height-n,t:n+i._effHeight};if(s&&u)return X3.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*K0[o],r:i._width*eT[o],b:i._effHeight*eT[l],t:i._effHeight*K0[l]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][v]=h[v]:e._fullLayout._reservedMargin[r][f]=h[f]}function Hp(e){return ra.isRightAnchor(e)?"right":ra.isCenterAnchor(e)?"center":"left"}function Bp(e){return ra.isBottomAnchor(e)?"bottom":ra.isMiddleAnchor(e)?"middle":"top"}function Op(e){return e._id||"legend"}});var e5=te(Q3=>{"use strict";var xc=kt(),eu=Ut(),sT=Jl(),Hn=gr(),wW=Hn.pushUnique,$3=Hn.strTranslate,MW=Hn.strRotate,AW=p1(),So=ci(),TW=qA(),os=fn(),_a=Pt(),Up=To(),ls=Dn(),kW=Pa().zindexSeparator,rv=dt(),yl=Vu(),wc=t1(),SW=F3(),CW=J3(),gT=wc.YANGLE,K3=Math.PI*gT/180,LW=1/Math.sin(K3),qW=Math.cos(K3),DW=Math.sin(K3),Cn=wc.HOVERARROWSIZE,Rt=wc.HOVERTEXTPAD,uT={box:!0,ohlc:!0,violin:!0,candlestick:!0},EW={scatter:!0,scattergl:!0,splom:!0};function fT(e,r){return e.distance-r.distance}Q3.hover=function(r,t,n,a){r=Hn.getGraphDiv(r);var i=t.target;Hn.throttle(r._fullLayout._uid+wc.HOVERID,wc.HOVERMINTIME,function(){PW(r,t,n,a,i)})};Q3.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,i=xT(a),o=wT(a),l=r.map(function(y){var b=y._x0||y.x0||y.x||0,C=y._x1||y.x1||y.x||0,x=y._y0||y.y0||y.y||0,_=y._y1||y.y1||y.y||0,A=y.eventData;if(A){var k=Math.min(b,C),M=Math.max(b,C),D=Math.min(x,_),z=Math.max(x,_),F=y.trace;if(rv.traceIs(F,"gl3d")){var I=a._fullLayout[F.scene]._scene.container,W=I.offsetLeft,B=I.offsetTop;k+=W,M+=W,D+=B,z+=B}A.bbox={x0:k+o,x1:M+o,y0:D+i,y1:z+i},t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||_a.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:A}}),s=!1,u=yT(l,{gd:a,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||_a.background,container:xc.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,v=5,h=0,d=0;f.sort(function(y,b){return y.y0-b.y0}).each(function(y,b){var C=y.y0-y.by/2;C-vM[0]._length||$<0||$>D[0]._length)return Up.unhoverRaw(e,r)}if(r.pointerX=Q+M[0]._offset,r.pointerY=$+D[0]._offset,"xval"in r?re=yl.flat(i,r.xval):re=yl.p2c(M,Q),"yval"in r?ne=yl.flat(i,r.yval):ne=yl.p2c(D,$),!eu(re[0])||!eu(ne[0]))return Hn.warn("Fx.hover failed",r,e),Up.unhoverRaw(e,r)}var Ie=1/0;function ir(rt,rn){for(ee=0;eese&&(X.splice(0,se),Ie=X[0].distance),v&&B!==0&&X.length===0){rr.distance=B,rr.index=!1;var vn=he._module.hoverPoints(rr,Xe,Le,"closest",{hoverLayer:l._hoverlayer});if(vn&&(vn=vn.filter(function(Bt){return Bt.spikeDistance<=B})),vn&&vn.length){var da,qn=vn.filter(function(Bt){return Bt.xa.showspikes&&Bt.xa.spikesnap!=="hovered data"});if(qn.length){var Na=qn[0];eu(Na.x0)&&eu(Na.y0)&&(da=Ue(Na),(!ye.vLinePoint||ye.vLinePoint.spikeDistance>da.spikeDistance)&&(ye.vLinePoint=da))}var pa=vn.filter(function(Bt){return Bt.ya.showspikes&&Bt.ya.spikesnap!=="hovered data"});if(pa.length){var wn=pa[0];eu(wn.x0)&&eu(wn.y0)&&(da=Ue(wn),(!ye.hLinePoint||ye.hLinePoint.spikeDistance>da.spikeDistance)&&(ye.hLinePoint=da))}}}}}ir();function or(rt,rn,St){for(var dn=null,pn=1/0,an,vn=0;vn0&&Math.abs(rt.distance)je-1;Cr--)Or(X[Cr]);X=mr,Qe()}var ar=e._hoverdata,be=[],Se=xT(e),$e=wT(e);for(K=0;K1||X.length>1)||h==="closest"&&we&&X.length>1,jt=_a.combine(l.plot_bgcolor||_a.background,l.paper_bgcolor),en=yT(X,{gd:e,hovermode:h,rotateLabels:Ft,bgColor:jt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Jt=en.hoverLabels;if(yl.isUnifiedHover(h)||(zW(Jt,Ft,l,en.commonLabelBoundingBox),_T(Jt,Ft,l._invScaleX,l._invScaleY)),a&&a.tagName){var aa=rv.getComponentMethod("annotations","hasClickToShow")(e,be);TW(xc.select(a),aa?"pointer":"")}!a||n||!IW(e,r,ar)||(ar&&e.emit("plotly_unhover",{event:r,points:ar}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:D,xvals:re,yvals:ne}))}function mT(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var RW=/([\s\S]*)<\/extra>/;function yT(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||wc.HOVERFONT,v=r.fontSize||wc.HOVERFONTSIZE,h=r.fontWeight||n.font.weight,d=r.fontStyle||n.font.style,m=r.fontVariant||n.font.variant,p=r.fontTextcase||n.font.textcase,y=r.fontLineposition||n.font.lineposition,b=r.fontShadow||n.font.shadow,C=e[0],x=C.xa,_=C.ya,A=a.charAt(0),k=A+"Label",M=C[k];if(M===void 0&&x.type==="multicategory")for(var D=0;Dn.width-$e&&(Ze=n.width-$e),je.attr("d","M"+(ar-Ze)+",0L"+(ar-Ze+Cn)+","+Se+Cn+"H"+$e+"v"+Se+(Rt*2+Cr.height)+"H"+-$e+"V"+Se+Cn+"H"+(ar-Ze-Cn)+"Z"),ar=Ze,ee.minX=ar-$e,ee.maxX=ar+$e,x.side==="top"?(ee.minY=be-(Rt*2+Cr.height),ee.maxY=be-Rt):(ee.minY=be+Rt,ee.maxY=be+(Rt*2+Cr.height))}else{var qr,Hr,Pr;_.side==="right"?(qr="start",Hr=1,Pr="",ar=x._offset+x._length):(qr="end",Hr=-1,Pr="-",ar=x._offset),be=_._offset+(C.y0+C.y1)/2,hr.attr("text-anchor",qr),je.attr("d","M0,0L"+Pr+Cn+","+Cn+"V"+(Rt+Cr.height/2)+"h"+Pr+(Rt*2+Cr.width)+"V-"+(Rt+Cr.height/2)+"H"+Pr+Cn+"V-"+Cn+"Z"),ee.minY=be-(Rt+Cr.height/2),ee.maxY=be+(Rt+Cr.height/2),_.side==="right"?(ee.minX=ar+Cn,ee.maxX=ar+Cn+(Rt*2+Cr.width)):(ee.minX=ar-Cn-(Rt*2+Cr.width),ee.maxX=ar-Cn);var lt=Cr.height/2,xt=F-Cr.top-lt,Nt="clip"+n._uid+"commonlabel"+_._id,Ht;if(ar=0?Ar=pr:dr+Ie=0?Ar=dr:Te+Ie=0?Nr=cr:Qe+ir=0?Nr=Qe:Ye+ir=0,(Ae.idealAlign==="top"||!cn)&&Ft?(Pr-=xt/2,Ae.anchor="end"):cn?(Pr+=xt/2,Ae.anchor="start"):Ae.anchor="middle",Ae.crossPos=Pr;else{if(Ae.pos=Pr,cn=Hr+lt/2+Tn<=I,Ft=Hr-lt/2-Tn>=0,(Ae.idealAlign==="left"||!cn)&&Ft)Hr-=lt/2,Ae.anchor="end";else if(cn)Hr+=lt/2,Ae.anchor="start";else{Ae.anchor="middle";var jt=Tn/2,en=Hr+jt-I,Jt=Hr-jt;en>0&&(Hr-=en),Jt<0&&(Hr+=-Jt)}Ae.crossPos=Hr}be.attr("text-anchor",Ae.anchor),$e&&Se.attr("text-anchor",Ae.anchor),je.attr("transform",$3(Hr,Pr)+(i?MW(gT):""))}),{hoverLabels:Er,commonLabelBoundingBox:ee}}function cT(e,r,t,n,a,i){var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Hn.templateString(e.name,e.trace._meta)),o=dT(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===a?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o);var f=e.hovertemplate||!1;if(f){var v=e.hovertemplateLabels||e;e[s+"Label"]!==a&&(v[s+"other"]=v[s+"Val"],v[s+"otherLabel"]=v[s+"Label"]),l=Hn.hovertemplateString(f,v,n._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(RW,function(h,d){return o=dT(d,e.nameLength),""})}return[l,o]}function zW(e,r,t,n){var a=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,v=n.minX,h=n.maxX,d=n.minY,m=n.maxY,p=function(re){return re*t._invScaleX},y=function(re){return re*t._invScaleY};e.each(function(re){var ne=re[a],K=re[i],ee=ne._id.charAt(0)==="x",fe=ne.range;f===0&&fe&&fe[0]>fe[1]!==ee&&(l=-1);var he=0,De=ee?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Ne=bT(re,r),Fe=re.anchor,Xe=Fe==="end"?-1:1,Le,rr;if(Fe==="middle")Le=re.crossPos+(ee?y(Ne.y-re.by/2):p(re.bx/2+re.tx2width/2)),rr=Le+(ee?y(re.by):p(re.bx));else if(ee)Le=re.crossPos+y(Cn+Ne.y)-y(re.by/2-Cn),rr=Le+y(re.by);else{var se=p(Xe*Cn+Ne.x),ye=se+p(Xe*re.bx);Le=re.crossPos+Math.min(se,ye),rr=re.crossPos+Math.max(se,ye)}ee?d!==void 0&&m!==void 0&&Math.min(rr,m)-Math.max(Le,d)>1&&(K.side==="left"?(he=K._mainLinePosition,De=t.width):De=K._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(rr,h)-Math.max(Le,v)>1&&(K.side==="top"?(he=K._mainLinePosition,De=t.height):De=K._mainLinePosition)}u[f++]=[{datum:re,traceIndex:re.trace.index,dp:0,pos:re.pos,posref:re.posref,size:re.by*(ee?LW:1)/2,pmin:he,pmax:De}]}),u.sort(function(re,ne){return re[0].posref-ne[0].posref||l*(ne[0].traceIndex-re[0].traceIndex)});var b,C,x,_,A,k,M;function D(re){var ne=re[0],K=re[re.length-1];if(C=ne.pmin-ne.pos-ne.dp+ne.size,x=K.pos+K.dp+K.size-ne.pmax,C>.01){for(A=re.length-1;A>=0;A--)re[A].dp+=C;b=!1}if(!(x<.01)){if(C<-.01){for(A=re.length-1;A>=0;A--)re[A].dp-=x;b=!1}if(b){var ee=0;for(_=0;_ne.pmax&&ee++;for(_=re.length-1;_>=0&&!(ee<=0);_--)k=re[_],k.pos>ne.pmax-1&&(k.del=!0,ee--);for(_=0;_=0;A--)re[A].dp-=x;for(_=re.length-1;_>=0&&!(ee<=0);_--)k=re[_],k.pos+k.dp+k.size>ne.pmax&&(k.del=!0,ee--)}}}for(;!b&&o<=s;){for(o++,b=!0,_=0;_.01){for(A=F.length-1;A>=0;A--)F[A].dp+=C;for(z.push.apply(z,F),u.splice(_+1,1),M=0,A=z.length-1;A>=0;A--)M+=z[A].dp;for(x=M/z.length,A=z.length-1;A>=0;A--)z[A].dp-=x;b=!1}else _++}u.forEach(D)}for(_=u.length-1;_>=0;_--){var B=u[_];for(A=B.length-1;A>=0;A--){var X=B[A],G=X.datum;G.offset=X.dp,G.del=X.del}}}function bT(e,r){var t=0,n=e.offset;return r&&(n*=-DW,t=e.offset*qW),{x:t,y:n}}function NW(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Cn+Rt),n=t+r*(e.txwidth+Rt),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+Rt),{alignShift:r,textShiftX:t,text2ShiftX:n}}function _T(e,r,t,n){var a=function(o){return o*t},i=function(o){return o*n};e.each(function(o){var l=xc.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,v=NW(o),h=bT(o,r),d=h.x,m=h.y,p=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;p?b="M-"+a(o.bx/2+o.tx2width/2)+","+i(m-o.by/2)+"h"+a(o.bx)+"v"+i(o.by)+"h-"+a(o.bx)+"Z":y?b="M0,0L"+a(f*Cn+d)+","+i(Cn+m)+"v"+i(o.by/2-Cn)+"h"+a(f*o.bx)+"v-"+i(o.by)+"H"+a(f*Cn+d)+"V"+i(m-Cn)+"Z":b="M"+a(f*Cn+d)+","+i(m-o.by/2)+"h"+a(f*o.bx)+"v"+i(o.by)+"h"+a(-f*o.bx)+"Z",l.select("path").attr("d",b);var C=d+v.textShiftX,x=m+o.ty0-o.by/2+Rt,_=o.textAlign||"auto";_!=="auto"&&(_==="left"&&u!=="start"?(s.attr("text-anchor","start"),C=p?-o.bx/2-o.tx2width/2+Rt:-o.bx-Rt):_==="right"&&u!=="end"&&(s.attr("text-anchor","end"),C=p?o.bx/2-o.tx2width/2-Rt:o.bx+Rt)),s.call(So.positionText,a(C),i(x)),o.tx2width&&(l.select("text.name").call(So.positionText,a(v.text2ShiftX+v.alignShift*Rt+d),i(m+o.ty0-o.by/2+Rt)),l.select("rect").call(os.setRect,a(v.text2ShiftX+(v.alignShift-1)*o.tx2width/2+d),i(m-o.by/2-1),a(o.tx2width),i(o.by+2)))})}function FW(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],i=e.cd[t]||{};function o(h){return h||eu(h)&&h===0}var l=Array.isArray(t)?function(h,d){var m=Hn.castOption(a,t,h);return o(m)?m:Hn.extractOption({},n,"",d)}:function(h,d){return Hn.extractOption(i,n,h,d)};function s(h,d,m){var p=l(d,m);o(p)&&(e[h]=p)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Hn.constrain(e.x0,0,e.xa._length),e.x1=Hn.constrain(e.x1,0,e.xa._length),e.y0=Hn.constrain(e.y0,0,e.ya._length),e.y1=Hn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:ls.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:ls.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=ls.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+ls.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=ls.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+ls.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function vT(e,r,t){var n=t.container,a=t.fullLayout,i=a._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(n.selectAll(".spikeline").remove(),!!(s||l)){var v=_a.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var h=r.hLinePoint,d,m;u=h&&h.xa,f=h&&h.ya;var p=f.spikesnap;p==="cursor"?(d=o.pointerX,m=o.pointerY):(d=u._offset+h.x,m=f._offset+h.y);var y=sT.readability(h.color,v)<1.5?_a.contrast(v):h.color,b=f.spikemode,C=f.spikethickness,x=f.spikecolor||y,_=ls.getPxPosition(e,f),A,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(A=_,k=d),b.indexOf("across")!==-1){var M=f._counterDomainMin,D=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),D=Math.max(D,f.position)),A=i.l+M*i.w,k=i.l+D*i.w}n.insert("line",":first-child").attr({x1:A,x2:k,y1:m,y2:m,"stroke-width":C,stroke:x,"stroke-dasharray":os.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:k,y1:m,y2:m,"stroke-width":C+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:_+(f.side!=="right"?C:-C),cy:m,r:C,fill:x}).classed("spikeline",!0)}if(s){var z=r.vLinePoint,F,I;u=z&&z.xa,f=z&&z.ya;var W=u.spikesnap;W==="cursor"?(F=o.pointerX,I=o.pointerY):(F=u._offset+z.x,I=f._offset+z.y);var B=sT.readability(z.color,v)<1.5?_a.contrast(v):z.color,X=u.spikemode,G=u.spikethickness,re=u.spikecolor||B,ne=ls.getPxPosition(e,u),K,ee;if(X.indexOf("toaxis")!==-1||X.indexOf("across")!==-1){if(X.indexOf("toaxis")!==-1&&(K=ne,ee=I),X.indexOf("across")!==-1){var fe=u._counterDomainMin,he=u._counterDomainMax;u.anchor==="free"&&(fe=Math.min(fe,u.position),he=Math.max(he,u.position)),K=i.t+(1-he)*i.h,ee=i.t+(1-fe)*i.h}n.insert("line",":first-child").attr({x1:F,x2:F,y1:K,y2:ee,"stroke-width":G,stroke:re,"stroke-dasharray":os.dashStyle(u.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:F,x2:F,y1:K,y2:ee,"stroke-width":G+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}X.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:F,cy:ne-(u.side!=="top"?G:-G),r:G,fill:re}).classed("spikeline",!0)}}}function IW(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],i=e._hoverdata[n];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers)||a.binNumber!==i.binNumber)return!0}return!1}function hT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function dT(e,r){return So.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function HW(e,r){for(var t=r.charAt(0),n=[],a=[],i=[],o=0;o{"use strict";var BW=gr(),OW=Pt(),UW=Vu().isUnifiedHover;MT.exports=function(r,t,n,a){a=a||{};var i=t.legend;function o(l){a.font[l]||(a.font[l]=i?t.legend.font[l]:t.font[l])}t&&UW(t.hovermode)&&(a.font||(a.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(a.bgcolor||(a.bgcolor=OW.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),n("hoverlabel.showarrow",a.showarrow),BW.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var TT=te((jue,AT)=>{"use strict";var YW=gr(),GW=Yp(),VW=_0();AT.exports=function(r,t){function n(a,i){return YW.coerce(r,t,VW,a,i)}GW(r,t,n)}});var CT=te((Jue,ST)=>{"use strict";var kT=gr(),WW=cd(),ZW=Yp();ST.exports=function(r,t,n,a){function i(l,s){return kT.coerce(r,t,WW,l,s)}var o=kT.extendFlat({},a.hoverlabel);t.hovertemplate&&(o.namelength=-1),ZW(r,t,i,o)}});var r5=te(($ue,LT)=>{"use strict";var XW=gr(),jW=_0();LT.exports=function(r,t){function n(a,i){return t[a]!==void 0?t[a]:XW.coerce(r,t,jW,a,i)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var ET=te((Kue,DT)=>{"use strict";var qT=gr(),JW=_0(),$W=r5(),KW=Yp();DT.exports=function(r,t){function n(f,v){return qT.coerce(r,t,JW,f,v)}var a=$W(r,t);a&&(n("hoverdistance"),n("spikedistance"));var i=n("dragmode");i==="select"&&n("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&u===1||(o||l)&&s&&u===2)&&(t.dragmode="pan"),KW(r,t,n),qT.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var zT=te((Que,RT)=>{"use strict";var t5=gr(),PT=dt();RT.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(u){return function(f){return t5.coerceHoverinfo({hoverinfo:f},{_module:u._module},n)}}for(var i=0;i{"use strict";var eZ=dt(),rZ=e5().hover;NT.exports=function(r,t,n){var a=eZ.getComponentMethod("annotations","onClick")(r,r._hoverdata);n!==void 0&&rZ(r,t,n,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(a&&a.then?a.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var ss=te((rfe,BT)=>{"use strict";var tZ=kt(),Gp=gr(),nZ=To(),R1=Vu(),IT=_0(),HT=e5();BT.exports={moduleType:"component",name:"fx",constants:t1(),schema:{layout:IT},attributes:cd(),layoutAttributes:IT,supplyLayoutGlobalDefaults:TT(),supplyDefaults:CT(),supplyLayoutDefaults:ET(),calc:zT(),getDistanceFunction:R1.getDistanceFunction,getClosest:R1.getClosest,inbox:R1.inbox,quadrature:R1.quadrature,appendArrayPointValue:R1.appendArrayPointValue,castHoverOption:iZ,castHoverinfo:oZ,hover:HT.hover,unhover:nZ.unhover,loneHover:HT.loneHover,loneUnhover:aZ,click:FT()};function aZ(e){var r=Gp.isD3Selection(e)?e:tZ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function iZ(e,r,t){return Gp.castOption(e,r,"hoverlabel."+t)}function oZ(e,r,t){function n(a){return Gp.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return Gp.castOption(e,t,"hoverinfo",n)}});var tv=te(ru=>{"use strict";ru.selectMode=function(e){return e==="lasso"||e==="select"};ru.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ru.openMode=function(e){return e==="drawline"||e==="drawopenpath"};ru.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ru.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};ru.selectingOrDrawing=function(e){return ru.freeMode(e)||ru.rectMode(e)}});var Vp=te((nfe,OT)=>{"use strict";OT.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var Wp=te((afe,UT)=>{"use strict";UT.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var Xp=te((ife,YT)=>{"use strict";var Zp=32;YT.exports={CIRCLE_SIDES:Zp,i000:0,i090:Zp/4,i180:Zp/2,i270:Zp/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var jp=te((ofe,VT)=>{"use strict";var lZ=gr().strTranslate;function GT(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function sZ(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function uZ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return GT(e,t[r])}}function fZ(e){return lZ(e.xaxis._offset,e.yaxis._offset)}VT.exports={p2r:GT,r2p:sZ,axValue:uZ,getTransform:fZ}});var Qu=te(tu=>{"use strict";var cZ=G2(),XT=Xp(),nv=XT.CIRCLE_SIDES,n5=XT.SQRT2,jT=jp(),WT=jT.p2r,ZT=jT.r2p,vZ=[0,3,4,5,6,1,2],hZ=[0,3,4,1,2];tu.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&s{"use strict";var JT=ua(),rk=tv(),dZ=rk.drawMode,pZ=rk.openMode,av=Xp(),$T=av.i000,KT=av.i090,QT=av.i180,ek=av.i270,gZ=av.cos45,mZ=av.sin45,tk=jp(),$p=tk.p2r,ef=tk.r2p,yZ=Yu(),bZ=yZ.clearOutline,Kp=Qu(),_Z=Kp.readPaths,xZ=Kp.writePaths,wZ=Kp.ellipseOver,MZ=Kp.fixDatesForPaths;function AZ(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,i=r.dragmode,o=(n.layout||{}).shapes||[];if(!dZ(i)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var TZ=tv(),kZ=TZ.selectMode,SZ=Yu(),CZ=SZ.clearOutline,a5=Qu(),LZ=a5.readPaths,qZ=a5.writePaths,DZ=a5.fixDatesForPaths;ik.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,v=t.dragmode,h=(i.layout||{}).selections||[];if(!kZ(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";ok.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var rf=te(ka=>{"use strict";var Mc=N1(),lk=gr(),eg=Dn();ka.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};ka.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};ka.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};ka.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};ka.extractPathCoords=function(e,r,t){var n=[],a=e.match(Mc.segmentRE);return a.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.substr(1).match(Mc.paramRE);if(!(!l||l.lengthd&&(p="X"),p});return u>d&&(m=m.replace(/[\s,]*X.*/,""),lk.log("Ignoring extra params in segment "+s)),f+m})}function F1(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var l5=te((vfe,ck)=>{"use strict";var PZ=gr(),iv=Dn(),sk=ci(),uk=fn(),RZ=Qu().readPaths,o5=rf(),zZ=o5.getPathString,fk=_d(),NZ=Ka().FROM_TL;ck.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var i;if(n.label.texttemplate){var o={};if(n.type!=="path"){var l=iv.getFromId(r,n.xref),s=iv.getFromId(r,n.yref);for(var u in fk){var f=fk[u](n,l,s);f!==void 0&&(o[u]=f)}}i=PZ.texttemplateStringForShapes(n.label.texttemplate,{},r._fullLayout._d3locale,o)}else i=n.label.text;var v={"data-index":t},h=n.label.font,d={"data-notex":1},m=a.append("g").attr(v).classed("shape-label",!0),p=m.append("text").attr(d).classed("shape-label-text",!0).text(i),y,b,C,x;if(n.path){var _=zZ(r,n),A=RZ(_,r);y=1/0,C=1/0,b=-1/0,x=-1/0;for(var k=0;k=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,i)}function IZ(e,r,t,n,a,i,o){var l=a.label.textposition,s=a.label.textangle,u=a.label.padding,f=a.type,v=Math.PI/180*i,h=Math.sin(v),d=Math.cos(v),m=a.label.xanchor,p=a.label.yanchor,y,b,C,x;if(f==="line"){l==="start"?(y=e,b=r):l==="end"?(y=t,b=n):(y=(e+t)/2,b=(r+n)/2),m==="auto"&&(l==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var HZ=gr(),BZ=HZ.strTranslate,vk=To(),pk=tv(),OZ=pk.drawMode,gk=pk.selectMode,mk=dt(),hk=Pt(),tg=Xp(),UZ=tg.i000,YZ=tg.i090,GZ=tg.i180,VZ=tg.i270,WZ=Yu(),yk=WZ.clearOutlineControllers,u5=Qu(),rg=u5.pointsOnRectangle,s5=u5.pointsOnEllipse,ZZ=u5.writePaths,XZ=Qp().newShapes,jZ=Qp().createShapeObj,JZ=i5(),$Z=l5();bk.exports=function e(r,t,n,a){a||(a=0);var i=n.gd;function o(){e(r,t,n,a++),(s5(r[0])||n.hasText)&&l({redrawing:!0})}function l(ne){var K={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,K=XZ(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,K=JZ(t,n),i._fullLayout._reselect=!0),Object.keys(K).length&&mk.call((ne||{}).redrawing?"relayout":"_guiRelayout",i,K)}var s=i._fullLayout,u=s._zoomlayer,f=n.dragmode,v=OZ(f),h=gk(f);(v||h)&&(i._fullLayout._outlining=!0),yk(i),t.attr("d",ZZ(r));var d,m,p,y,b;if(!a&&(n.isActiveShape||n.isActiveSelection)){b=KZ([],r);var C=u.append("g").attr("class","outline-controllers");F(C),re()}if(v&&n.hasText){var x=u.select(".label-temp"),_=jZ(t,n,n.dragmode);$Z(i,"label-temp",_,x)}function A(ne){p=+ne.srcElement.getAttribute("data-i"),y=+ne.srcElement.getAttribute("data-j"),d[p][y].moveFn=k}function k(ne,K){if(r.length){var ee=b[p][y][1],fe=b[p][y][2],he=r[p],De=he.length;if(rg(he)){var Ne=ne,Fe=K;if(n.isActiveSelection){var Xe=dk(he,y);Xe[1]===he[y][1]?Fe=0:Ne=0}for(var Le=0;Le1&&!(ne.length===2&&ne[1][0]==="Z")&&(y===0&&(ne[0][0]="M"),r[p]=ne,o(),l())}}function z(ne,K){if(ne===2){p=+K.srcElement.getAttribute("data-i"),y=+K.srcElement.getAttribute("data-j");var ee=r[p];!rg(ee)&&!s5(ee)&&D()}}function F(ne){d=[];for(var K=0;K{"use strict";var eX=kt(),Tk=dt(),_k=gr(),ov=Dn(),rX=Qu().readPaths,tX=ng(),ig=l5(),kk=Yu().clearOutlineControllers,f5=Pt(),v5=fn(),nX=bn().arrayEditor,xk=To(),wk=Ku(),Ac=N1(),Ri=rf(),c5=Ri.getPathString;Lk.exports={draw:h5,drawOne:Sk,eraseActiveShape:oX,drawLabel:ig};function h5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;ao&&ur>l&&!or.shiftKey?xk.getCursor(cr/tr,1-Qe/ur):"move";wk(r,pr),rr=pr.split("-")[0]}}function pe(or){ag(e)||(s&&(b=he(t.xanchor)),u&&(C=De(t.yanchor)),t.type==="path"?I=t.path:(d=s?t.x0:he(t.x0),m=u?t.y0:De(t.y0),p=s?t.x1:he(t.x1),y=u?t.y1:De(t.y1)),dy?(x=m,M="y0",_=y,D="y1"):(x=y,M="y1",_=m,D="y0"),we(or),Oe(a,t),ir(r,t,e),Le.moveFn=rr==="move"?$:ke,Le.altKey=or.altKey)}function U(){ag(e)||(wk(r),Ie(a),Ck(r,e,t),Tk.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){ag(e)||Ie(a)}function $(or,Ue){if(t.type==="path"){var tr=function(Qe){return Qe},ur=tr,cr=tr;s?h("xanchor",t.xanchor=Ne(b+or)):(ur=function(pr){return Ne(he(pr)+or)},B&&B.type==="date"&&(ur=Ri.encodeDate(ur))),u?h("yanchor",t.yanchor=Fe(C+Ue)):(cr=function(pr){return Fe(De(pr)+Ue)},G&&G.type==="date"&&(cr=Ri.encodeDate(cr))),h("path",t.path=Mk(I,ur,cr))}else s?h("xanchor",t.xanchor=Ne(b+or)):(h("x0",t.x0=Ne(d+or)),h("x1",t.x1=Ne(p+or))),u?h("yanchor",t.yanchor=Fe(C+Ue)):(h("y0",t.y0=Fe(m+Ue)),h("y1",t.y1=Fe(y+Ue)));r.attr("d",c5(e,t)),Oe(a,t),ig(e,n,t,W)}function ke(or,Ue){if(v){var tr=function(Tr){return Tr},ur=tr,cr=tr;s?h("xanchor",t.xanchor=Ne(b+or)):(ur=function(Dr){return Ne(he(Dr)+or)},B&&B.type==="date"&&(ur=Ri.encodeDate(ur))),u?h("yanchor",t.yanchor=Fe(C+Ue)):(cr=function(Dr){return Fe(De(Dr)+Ue)},G&&G.type==="date"&&(cr=Ri.encodeDate(cr))),h("path",t.path=Mk(I,ur,cr))}else if(f){if(rr==="resize-over-start-point"){var Qe=d+or,pr=u?m-Ue:m+Ue;h("x0",t.x0=s?Qe:Ne(Qe)),h("y0",t.y0=u?pr:Fe(pr))}else if(rr==="resize-over-end-point"){var dr=p+or,Te=u?y-Ue:y+Ue;h("x1",t.x1=s?dr:Ne(dr)),h("y1",t.y1=u?Te:Fe(Te))}}else{var Ye=function(Tr){return rr.indexOf(Tr)!==-1},Ar=Ye("n"),Nr=Ye("s"),Er=Ye("w"),Ae=Ye("e"),je=Ar?x+Ue:x,hr=Nr?_+Ue:_,wr=Er?A+or:A,mr=Ae?k+or:k;u&&(Ar&&(je=x-Ue),Nr&&(hr=_-Ue)),(!u&&hr-je>l||u&&je-hr>l)&&(h(M,t[M]=u?je:Fe(je)),h(D,t[D]=u?hr:Fe(hr))),mr-wr>o&&(h(z,t[z]=s?wr:Ne(wr)),h(F,t[F]=s?mr:Ne(mr)))}r.attr("d",c5(e,t)),Oe(a,t),ig(e,n,t,W)}function Oe(or,Ue){(s||u)&&tr();function tr(){var ur=Ue.type!=="path",cr=or.selectAll(".visual-cue").data([0]),Qe=1;cr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Qe}).classed("visual-cue",!0);var pr=he(s?Ue.xanchor:_k.midRange(ur?[Ue.x0,Ue.x1]:Ri.extractPathCoords(Ue.path,Ac.paramIsX))),dr=De(u?Ue.yanchor:_k.midRange(ur?[Ue.y0,Ue.y1]:Ri.extractPathCoords(Ue.path,Ac.paramIsY)));if(pr=Ri.roundPositionForSharpStrokeRendering(pr,Qe),dr=Ri.roundPositionForSharpStrokeRendering(dr,Qe),s&&u){var Te="M"+(pr-1-Qe)+","+(dr-1-Qe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";cr.attr("d",Te)}else if(s){var Ye="M"+(pr-1-Qe)+","+(dr-9-Qe)+"v18 h2 v-18 Z";cr.attr("d",Ye)}else{var Ar="M"+(pr-9-Qe)+","+(dr-1-Qe)+"h18 v2 h-18 Z";cr.attr("d",Ar)}}}function Ie(or){or.selectAll(".visual-cue").remove()}function ir(or,Ue,tr){var ur=Ue.xref,cr=Ue.yref,Qe=ov.getFromId(tr,ur),pr=ov.getFromId(tr,cr),dr="";ur!=="paper"&&!Qe.autorange&&(dr+=ur),cr!=="paper"&&!pr.autorange&&(dr+=cr),v5.setClipUrl(or,dr?"clip"+tr._fullLayout._uid+dr:null,tr)}}function Mk(e,r,t){return e.replace(Ac.segmentRE,function(n){var a=0,i=n.charAt(0),o=Ac.paramIsX[i],l=Ac.paramIsY[i],s=Ac.numParams[i],u=n.substr(1).replace(Ac.paramRE,function(f){return a>=s||(o[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return i+u})}function iX(e,r){if(og(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Ak(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Ak,h5(e)}}}function Ak(e){if(og(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(kk(e),delete e._fullLayout._activeShapeIndex,h5(e))}}function oX(e){if(og(e)){kk(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Co=dt(),qk=fa(),Dk=ua(),Yt=Wp(),lX=lg().eraseActiveShape,sg=gr(),Dt=sg._,Gt=Ik.exports={};Gt.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Dt(e,"Download plot as a PNG"):Dt(e,"Download plot")},icon:Yt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};sg.notifier(Dt(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Co.call("downloadImage",e,t).then(function(n){sg.notifier(Dt(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){sg.notifier(Dt(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Gt.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Dt(e,"Edit in Chart Studio")},icon:Yt.disk,click:function(e){qk.sendDataToCloud(e)}};Gt.editInChartStudio={name:"editInChartStudio",title:function(e){return Dt(e,"Edit in Chart Studio")},icon:Yt.pencil,click:function(e){qk.sendDataToCloud(e)}};Gt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Dt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Yt.zoombox,click:ti};Gt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Dt(e,"Pan")},attr:"dragmode",val:"pan",icon:Yt.pan,click:ti};Gt.select2d={name:"select2d",_cat:"select",title:function(e){return Dt(e,"Box Select")},attr:"dragmode",val:"select",icon:Yt.selectbox,click:ti};Gt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Dt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Yt.lasso,click:ti};Gt.drawclosedpath={name:"drawclosedpath",title:function(e){return Dt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Yt.drawclosedpath,click:ti};Gt.drawopenpath={name:"drawopenpath",title:function(e){return Dt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Yt.drawopenpath,click:ti};Gt.drawline={name:"drawline",title:function(e){return Dt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Yt.drawline,click:ti};Gt.drawrect={name:"drawrect",title:function(e){return Dt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Yt.drawrect,click:ti};Gt.drawcircle={name:"drawcircle",title:function(e){return Dt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Yt.drawcircle,click:ti};Gt.eraseshape={name:"eraseshape",title:function(e){return Dt(e,"Erase active shape")},icon:Yt.eraseshape,click:lX};Gt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Dt(e,"Zoom in")},attr:"zoom",val:"in",icon:Yt.zoom_plus,click:ti};Gt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Dt(e,"Zoom out")},attr:"zoom",val:"out",icon:Yt.zoom_minus,click:ti};Gt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Dt(e,"Autoscale")},attr:"zoom",val:"auto",icon:Yt.autoscale,click:ti};Gt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Dt(e,"Reset axes")},attr:"zoom",val:"reset",icon:Yt.home,click:ti};Gt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Dt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Yt.tooltip_basic,gravity:"ne",click:ti};Gt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Dt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Yt.tooltip_compare,gravity:"ne",click:ti};function ti(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=Dk.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(n==="zoom"){var v=a==="in"?.5:2,h=(1+v)/2,d=(1-v)/2,m,p;for(f=0;f{"use strict";var Hk=g5(),fX=Object.keys(Hk),Bk=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Ok=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Bk),sv=[],cX=function(e){if(Ok.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();sv.indexOf(r)===-1&&sv.push(r),sv.indexOf(t)===-1&&sv.push(t)}};fX.forEach(function(e){cX(Hk[e])});sv.sort();Uk.exports={DRAW_MODES:Bk,backButtons:Ok,foreButtons:sv}});var y5=te((yfe,Yk)=>{"use strict";var mfe=m5();Yk.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var Vk=te((bfe,Gk)=>{"use strict";var vX=gr(),I1=Pt(),hX=bn(),dX=y5();Gk.exports=function(r,t){var n=r.modebar||{},a=hX.newContainer(t,"modebar");function i(l,s){return vX.coerce(n,a,dX,l,s)}i("orientation"),i("bgcolor",I1.addOpacity(t.paper_bgcolor,.5));var o=I1.contrast(I1.rgb(t.modebar.bgcolor));i("color",I1.addOpacity(o,.3)),i("activecolor",I1.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var jk=te((_fe,Xk)=>{"use strict";var b5=kt(),pX=Ut(),fg=gr(),Wk=Wp(),gX=ed().version,mX=new DOMParser;function Zk(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var us=Zk.prototype;us.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=n.modebar,o="#"+a+" .modebar-group";document.querySelectorAll(o).forEach(function(v){v.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),fg.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};us.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var i=a.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(a);r.buttonElements.push(o),n.appendChild(o)}),r.element.appendChild(n)})};us.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};us.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(t.setAttribute("data-title",n),t.setAttribute("aria-label",n)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&b5.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||Wk.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};us.createIcon=function(e){var r=pX(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var i=mX.parseFromString(e.svg,"application/xml");n=i.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};us.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,i=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",l=b5.select(n),s=function(v,h){var d=r.modebar,m=v.querySelector(".icon path");m&&(h||v.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(n,u)}}else{var f=i===null?i:fg.nestedProperty(r,i).get();l.classed("active",f===a),s(n,f===a)}})};us.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var _X=ua(),Jk=Qa(),_5=dt(),xX=Vu().isUnifiedHover,wX=jk(),cg=g5(),MX=m5().DRAW_MODES,AX=gr().extendDeep;$k.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=n.modeBarButtons,o;Array.isArray(i)&&i.length?o=qX(i):!n.displayModeBar&&n.watermark?o=[]:o=TX(r),a?a.update(r,o):t._modeBar=wX(r,o)};function TX(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(K,ee){if(typeof ee=="string"){if(ee.toLowerCase()===K.toLowerCase())return!0}else{var fe=ee.name,he=ee._cat||ee.name;if(fe===K||he===K.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=n.modeBarButtonsToAdd.concat(i.filter(function(K){for(var ee=0;ee1?(F=["toggleHover"],I=["resetViews"]):v?(z=["zoomInGeo","zoomOutGeo"],F=["hoverClosestGeo"],I=["resetGeo"]):f?(F=["hoverClosest3d"],I=["resetCameraDefault3d","resetCameraLastSave3d"]):p?(z=["zoomInMapbox","zoomOutMapbox"],F=["toggleHover"],I=["resetViewMapbox"]):y?(z=["zoomInMap","zoomOutMap"],F=["toggleHover"],I=["resetViewMap"]):h?F=["hoverClosestPie"]:x?(F=["hoverClosestCartesian","hoverCompareCartesian"],I=["resetViewSankey"]):F=["toggleHover"],u&&F.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(CX(t)||A)&&(F=[]),u&&!_&&(z=["zoomIn2d","zoomOut2d","autoScale2d"],I[0]!=="resetViews"&&(I=["resetScale2d"])),f?W=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!_||m?W=["zoom2d","pan2d"]:p||y||v?W=["pan2d"]:b&&(W=["zoom2d"]),SX(t)&&W.push("select2d","lasso2d");var B=[],X=function(K){B.indexOf(K)===-1&&F.indexOf(K)!==-1&&B.push(K)};if(Array.isArray(l)){for(var G=[],re=0;re{"use strict";Qk.exports={moduleType:"component",name:"modebar",layoutAttributes:y5(),supplyLayoutDefaults:Vk(),manage:Kk()}});var w5=te((Mfe,eS)=>{"use strict";var DX=Ka().FROM_BL;eS.exports=function(r,t,n){n===void 0&&(n=DX[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(i+(a[0]-i)*t),r.l2r(i+(a[1]-i)*t)],r.setScale()}});var B1=te(H1=>{"use strict";var Tc=gr(),M5=Ju(),bl=ua().id2name,EX=pl(),rS=w5(),PX=pp(),RX=Rn().ALMOST_EQUAL,zX=Ka().FROM_BL;H1.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,v,h,d,m;for(l=0;li?t.substr(i):n.substr(a))+o}function FX(e,r){for(var t=r._size,n=t.h/t.w,a={},i=Object.keys(e),o=0;oRX*m&&!C)){for(i=0;iW&&feF&&(F=fe);var De=(F-z)/(2*I);v/=De,z=s.l2r(z),F=s.l2r(F),s.range=s._input.range=k{"use strict";var hg=kt(),ni=dt(),ro=fa(),Lo=gr(),k5=ci(),S5=Vp(),O1=Pt(),uv=fn(),iS=A1(),fS=x5(),U1=Dn(),nu=Ka(),cS=B1(),IX=cS.enforce,HX=cS.clean,oS=Ju().doAutoRange,vS="start",BX="middle",hS="end",OX=Pa().zindexSeparator;xa.layoutStyles=function(e){return Lo.syncOrAsync([ro.doAutoMargin,YX],e)};function UX(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&i[0]r[0])return!0}return!1}function YX(e){var r=e._fullLayout,t=r._size,n=t.p,a=U1.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(uv.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),xa.drawMainTitle(e),fS.manage(e),!r._has("cartesian"))return ro.previousPromises(e);function v(pe,U,Q){var $=pe._lw/2;if(pe._id.charAt(0)==="x"){if(U){if(Q==="top")return U._offset-n-$}else return t.t+t.h*(1-(pe.position||0))+$%1;return U._offset+U._length+n+$}if(U){if(Q==="right")return U._offset+U._length+n+$}else return t.l+t.w*(pe.position||0)+$%1;return U._offset-n-$}for(i=0;i0){ZX(e,i,u,s),l.attr({x:o,y:i,"text-anchor":n,dy:uS(r.yanchor)}).call(k5.positionText,o,i);var f=(r.text.match(k5.BR_TAG_ALL)||[]).length;if(f){var v=nu.LINE_SPACING*f+nu.MID_SHIFT;r.y===0&&(v=-v),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",y)})}var h=hg.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=l.node().getBBox(),m=d.y+d.height,p=m+iS.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:o,y:p,"text-anchor":n,dy:uS(r.yanchor)}).call(k5.positionText,o,p)}}}};function GX(e,r,t,n,a){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Lo.isTopAnchor(r)?n:n-a,l=t==="b"?i-o:o;return Lo.isTopAnchor(r)&&t==="t"||Lo.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=VX(i,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function ZX(e,r,t,n){var a="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&GX(e,i,o,r,n)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[a]=s),ro.allowAutoMargin(e,a),ro.autoMargin(e,a,l)}function XX(e,r){var t=e.title,n=e._size,a=0;switch(r===vS?a=t.pad.l:r===hS&&(a=-t.pad.r),t.xref){case"paper":return n.l+n.w*t.x+a;case"container":default:return e.width*t.x+a}}function jX(e,r){var t=e.title,n=e._size,a=0;if(r==="0em"||!r?a=-t.pad.b:r===nu.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto")return n.t/2;switch(t.yref){case"paper":return n.t+n.h-n.h*t.y+a;case"container":default:return e.height-e.height*t.y+a}}function uS(e){return e==="top"?nu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":nu.MID_SHIFT+"em"}function JX(e){var r=e.title,t=BX;return Lo.isRightAnchor(r)?t=hS:Lo.isLeftAnchor(r)&&(t=vS),t}function $X(e){var r=e.title,t="0em";return Lo.isTopAnchor(r)?t=nu.CAP_SHIFT+"em":Lo.isMiddleAnchor(r)&&(t=nu.MID_SHIFT+"em"),t}xa.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var KX=Qu().readPaths,QX=ng(),dS=Yu().clearOutlineControllers,C5=Pt(),pS=fn(),ej=bn().arrayEditor,gS=rf(),rj=gS.getPathString;yS.exports={draw:pg,drawOne:mS,activateLastSelection:aj};function pg(e){var r=e._fullLayout;dS(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a=0;y--){var b=o.append("path").attr(s).style("opacity",y?.1:u).call(C5.stroke,v).call(C5.fill,f).call(pS.dashLine,y?"solid":d,y?4+h:h);if(tj(b,e,n),m){var C=ej(e.layout,"selections",n);b.style({cursor:"move"});var x={element:b.node(),plotinfo:a,gd:e,editHelpers:C,isActiveSelection:!0},_=KX(l,e);QX(_,b,x)}else b.style("pointer-events",y?"all":"none");p[y]=b}var A=p[0],k=p[1];k.node().addEventListener("click",function(){return nj(e,A)})}}function tj(e,r,t){var n=t.xref+t.yref;pS.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function nj(e,r){if(gg(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){L5(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=L5,pg(e)}}}function aj(e){if(gg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=L5,pg(e)}}function L5(e){if(gg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(dS(e),delete e._fullLayout._activeSelectionIndex,pg(e))}}});var _S=te((Sfe,bS)=>{function ij(){var e,r=0,t=!1;function n(a,i){return e.list.push({type:a,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,i){return n("check",{seg1:a,seg2:i})},segmentChop:function(a,i){return n("div_seg",{seg:a,pt:i}),n("chop",{seg:a,pt:i})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,i){return n("new_seg",{seg:a,primary:i})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,i,o){return n("temp_status",{seg:a,above:i,below:o})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,i,o){return n("status",{seg:a,above:i,below:o})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,i){return n("chain_rem_head",{index:a,pt:i})},chainRemoveTail:function(a,i){return n("chain_rem_tail",{index:a,pt:i})},chainNew:function(a,i){return n("chain_new",{pt1:a,pt2:i})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,i){return n("chain_add_head",{index:a,pt:i})},chainAddTail:function(a,i){return n("chain_add_tail",{index:a,pt:i})},chainConnect:function(a,i){return n("chain_con",{index1:a,index2:i})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,i){return n("chain_join",{index1:a,index2:i})},done:function(){return n("done")}},e}bS.exports=ij});var wS=te((Cfe,xS)=>{function oj(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var i=n[0],o=n[1],l=a[0],s=a[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,n,a){var i=t[1]-n[1],o=a[0]-n[0],l=t[0]-n[0],s=a[1]-n[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])e!=l-i>e&&(o-f)*(i-v)/(l-v)+f-a>e&&(s=!s),o=f,l=v}return s}};return r}xS.exports=oj});var AS=te((Lfe,MS)=>{var lj={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};MS.exports=lj});var kS=te((qfe,TS)=>{var Y1=AS();function sj(e,r,t){function n(m,p){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:null,below:null},otherFill:null}}function a(m,p,y){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=Y1.create();function o(m,p,y,b,C,x){var _=r.pointsCompare(p,C);return _!==0?_:r.pointsSame(y,x)?0:m!==b?m?1:-1:r.pointAboveOrOnLine(y,b?C:x,b?x:C)?1:-1}function l(m,p){i.insertBefore(m,function(y){var b=o(m.isStart,m.pt,p,y.isStart,y.pt,y.other.pt);return b<0})}function s(m,p){var y=Y1.node({isStart:!0,pt:m.start,seg:m,primary:p,other:null,status:null});return l(y,m.end),y}function u(m,p,y){var b=Y1.node({isStart:!1,pt:p.end,seg:p,primary:y,other:m,status:null});m.other=b,l(b,m.pt)}function f(m,p){var y=s(m,p);return u(y,m,p),y}function v(m,p){t&&t.segmentChop(m.seg,p),m.other.remove(),m.seg.end=p,m.other.pt=p,l(m.other,m.pt)}function h(m,p){var y=a(p,m.seg.end,m.seg);return v(m,p),f(y,m.primary)}function d(m,p){var y=Y1.create();function b(G,re){var ne=G.seg.start,K=G.seg.end,ee=re.seg.start,fe=re.seg.end;return r.pointsCollinear(ne,ee,fe)?r.pointsCollinear(K,ee,fe)||r.pointAboveOrOnLine(K,ee,fe)?1:-1:r.pointAboveOrOnLine(ne,ee,fe)?1:-1}function C(G){return y.findTransition(function(re){var ne=b(G,re.ev);return ne>0})}function x(G,re){var ne=G.seg,K=re.seg,ee=ne.start,fe=ne.end,he=K.start,De=K.end;t&&t.checkIntersection(ne,K);var Ne=r.linesIntersect(ee,fe,he,De);if(Ne===!1){if(!r.pointsCollinear(ee,fe,he)||r.pointsSame(ee,De)||r.pointsSame(fe,he))return!1;var Fe=r.pointsSame(ee,he),Xe=r.pointsSame(fe,De);if(Fe&&Xe)return re;var Le=!Fe&&r.pointBetween(ee,he,De),rr=!Xe&&r.pointBetween(fe,he,De);if(Fe)return rr?h(re,fe):h(G,De),re;Le&&(Xe||(rr?h(re,fe):h(G,De)),h(re,ee))}else Ne.alongA===0&&(Ne.alongB===-1?h(G,he):Ne.alongB===0?h(G,Ne.pt):Ne.alongB===1&&h(G,De)),Ne.alongB===0&&(Ne.alongA===-1?h(re,ee):Ne.alongA===0?h(re,Ne.pt):Ne.alongA===1&&h(re,fe));return!1}for(var _=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let G=function(){if(M){var re=x(A,M);if(re)return re}return D?x(A,D):!1};var X=G;t&&t.segmentNew(A.seg,A.primary);var k=C(A),M=k.before?k.before.ev:null,D=k.after?k.after.ev:null;t&&t.tempStatus(A.seg,M?M.seg:!1,D?D.seg:!1);var z=G();if(z){if(e){var F;A.seg.myFill.below===null?F=!0:F=A.seg.myFill.above!==A.seg.myFill.below,F&&(z.seg.myFill.above=!z.seg.myFill.above)}else z.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(z.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var F;A.seg.myFill.below===null?F=!0:F=A.seg.myFill.above!==A.seg.myFill.below,D?A.seg.myFill.below=D.seg.myFill.above:A.seg.myFill.below=m,F?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var I;D?A.primary===D.primary?I=D.seg.otherFill.above:I=D.seg.myFill.above:I=A.primary?p:m,A.seg.otherFill={above:I,below:I}}t&&t.status(A.seg,M?M.seg:!1,D?D.seg:!1),A.other.status=k.insert(Y1.node({ev:A}))}else{var W=A.status;if(W===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(W.prev)&&y.exists(W.next)&&x(W.prev.ev,W.next.ev),t&&t.statusRemove(W.ev.seg),W.remove(),!A.primary){var B=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=B}_.push(A.seg)}i.getHead().remove()}return t&&t.done(),_}return e?{addRegion:function(m){for(var p,y=m[m.length-1],b=0;b{function uj(e,r,t){var n=[],a=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function v(X,G,re){return f.index=X,f.matches_head=G,f.matches_pt1=re,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function G1(e,r,t){var n=[];return e.forEach(function(a){var i=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[i]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(n),n}var fj={union:function(e,r){return G1(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return G1(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return G1(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return G1(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return G1(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};LS.exports=fj});var ES=te((Pfe,DS)=>{var cj={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var vj=_S(),hj=wS(),PS=kS(),dj=CS(),V1=qS(),RS=ES(),qo=!1,W1=hj(),zi;zi={buildLog:function(e){return e===!0?qo=vj():e===!1&&(qo=!1),qo===!1?!1:qo.list},epsilon:function(e){return W1.epsilon(e)},segments:function(e){var r=PS(!0,W1,qo);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=PS(!1,W1,qo);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:V1.union(e.combined,qo),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:V1.intersect(e.combined,qo),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:V1.difference(e.combined,qo),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:V1.differenceRev(e.combined,qo),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:V1.xor(e.combined,qo),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:dj(e.segments,W1,qo),inverted:e.inverted}},polygonFromGeoJSON:function(e){return RS.toPolygon(zi,e)},polygonToGeoJSON:function(e){return RS.fromPolygon(zi,W1,e)},union:function(e,r){return Z1(e,r,zi.selectUnion)},intersect:function(e,r){return Z1(e,r,zi.selectIntersect)},difference:function(e,r){return Z1(e,r,zi.selectDifference)},differenceRev:function(e,r){return Z1(e,r,zi.selectDifferenceRev)},xor:function(e,r){return Z1(e,r,zi.selectXor)}};function Z1(e,r,t){var n=zi.segments(e),a=zi.segments(r),i=zi.combine(n,a),o=t(i);return zi.polygon(o)}typeof window=="object"&&(window.PolyBool=zi);zS.exports=zi});var IS=te((zfe,FS)=>{FS.exports=function(r,t,n,a){var i=r[0],o=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var s=a-n,u=0,f=s-1;uo!=m>o&&i<(d-v)*(o-h)/(m-h)+v;p&&(l=!l)}return l}});var bg=te((Nfe,HS)=>{"use strict";var D5=md().dot,mg=Rn().BADNUM,yg=HS.exports={};yg.tester=function(r){var t=r.slice(),n=t[0][0],a=n,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;la||b===mg||bo||p&&u(m))}function v(m,p){var y=m[0],b=m[1];if(y===mg||ya||b===mg||bo)return!1;var C=t.length,x=t[0][0],_=t[0][1],A=0,k,M,D,z,F;for(k=1;kMath.max(M,x)||b>Math.max(D,_)))if(bl||Math.abs(D5(v,u))>a)return!0;return!1};yg.filter=function(r,t){var n=[r[0]],a=0,i=0;function o(s){r.push(s);var u=n.length,f=a;n.splice(i+1);for(var v=f+1;v1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:n}}});var OS=te((Ffe,BS)=>{"use strict";BS.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var uC=te((Ife,sC)=>{"use strict";var US=NS(),pj=IS(),J1=dt(),gj=fn().dashStyle,X1=Pt(),mj=ss(),yj=Vu().makeEventData,rh=tv(),bj=rh.freeMode,_j=rh.rectMode,$1=rh.drawMode,z5=rh.openMode,N5=rh.selectMode,YS=rf(),GS=N1(),jS=ng(),JS=Yu().clearOutline,$S=Qu(),E5=$S.handleEllipse,xj=$S.readPaths,wj=Qp().newShapes,Mj=i5(),Aj=q5().activateLastSelection,xg=gr(),Tj=xg.sorterAsc,KS=bg(),j1=Dd(),Do=ua().getFromId,kj=Vp(),Sj=dg().redrawReglTraces,wg=OS(),fs=wg.MINSELECT,Cj=KS.filter,F5=KS.tester,I5=jp(),VS=I5.p2r,Lj=I5.axValue,qj=I5.getTransform;function H5(e){return e.subplot!==void 0}function Dj(e,r,t,n,a){var i=!H5(n),o=bj(a),l=_j(a),s=z5(a),u=$1(a),f=N5(a),v=a==="drawline",h=a==="drawcircle",d=v||h,m=n.gd,p=m._fullLayout,y=f&&p.newselection.mode==="immediate"&&i,b=p._zoomlayer,C=n.element.getBoundingClientRect(),x=n.plotinfo,_=qj(x),A=r-C.left,k=t-C.top;p._calcInverseTransform(m);var M=xg.apply3DTransform(p._invTransform)(A,k);A=M[0],k=M[1];var D=p._invScaleX,z=p._invScaleY,F=A,I=k,W="M"+A+","+k,B=n.xaxes[0],X=n.yaxes[0],G=B._length,re=X._length,ne=e.altKey&&!($1(a)&&s),K,ee,fe,he,De,Ne,Fe;eC(e,m,n),o&&(K=Cj([[A,k]],wg.BENDPX));var Xe=b.selectAll("path.select-outline-"+x.id).data([1]),Le=u?p.newshape:p.newselection;u&&(n.hasText=Le.label.text||Le.label.texttemplate);var rr=u&&!s?Le.fillcolor:"rgba(0,0,0,0)",se=Le.line.color||(i?X1.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Xe.enter().append("path").attr("class","select-outline select-outline-"+x.id).style({opacity:u?Le.opacity/2:1,"stroke-dasharray":gj(Le.line.dash,Le.line.width),"stroke-width":Le.line.width+"px","shape-rendering":"crispEdges"}).call(X1.stroke,se).call(X1.fill,rr).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",_).attr("d",W+"Z");var ye=b.append("path").attr("class","zoombox-corners").style({fill:X1.background,stroke:X1.defaultLine,"stroke-width":1}).attr("transform",_).attr("d","M0,0Z");if(u&&n.hasText){var we=b.select(".label-temp");we.empty()&&(we=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var pe=p._uid+wg.SELECTID,U=[],Q=Mg(m,n.xaxes,n.yaxes,n.subplot);y&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(i){var ke=B._id,Oe=X._id;iC(m,ke,Oe,Q);for(var Ie=(m.layout||{}).selections||[],ir=[],or=!1,Ue=0;Ue=0){m._fullLayout._deactivateShape(m);return}if(!u){var Ie=p.clickmode;j1.done(pe).then(function(){if(j1.clear(pe),ke===2){for(Xe.remove(),De=0;De-1&&QS(Oe,m,n.xaxes,n.yaxes,n.subplot,n,Xe),Ie==="event"&&eh(m,void 0);mj.click(m,Oe,x.id)}).catch(xg.error)}},n.doneFn=function(){ye.remove(),j1.done(pe).then(function(){j1.clear(pe),!y&&he&&n.selectionDefs&&(he.subtract=ne,n.selectionDefs.push(he),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,fe)),(y||u)&&K1(n,y),n.doneFnCompleted&&n.doneFnCompleted(U),f&&eh(m,Fe)}).catch(xg.error)}}function QS(e,r,t,n,a,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,v=[],h,d,m,p,y,b,C,x,_,A;if(Nj(l)){eC(e,r,i),h=Mg(r,t,n,a);var k=Fj(l,h),M=k.pointNumbers.length>0;if(M?Ij(h,k):Hj(h)&&(C=ZS(k))){for(o&&o.remove(),A=0;A=0}function zj(e){return e._fullLayout._activeSelectionIndex>=0}function K1(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;Rj(a)&&a._fullLayout._deactivateShape(a),zj(a)&&a._fullLayout._deactivateSelection(a);var i=a._fullLayout,o=i._zoomlayer,l=$1(t),s=N5(t);if(l||s){var u=o.selectAll(".select-outline-"+n.id);if(u&&a._fullLayout._outlining){var f;l&&(f=wj(u,e)),f&&J1.call("_guiRelayout",a,{shapes:f});var v;s&&!H5(e)&&(v=Mj(u,e)),v&&(a._fullLayout._noEmitSelectedAtStart=!0,J1.call("_guiRelayout",a,{selections:v}).then(function(){r&&Aj(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function WS(e){return e._id}function Mg(e,r,t,n){if(!e.calcdata)return[];var a=[],i=r.map(WS),o=t.map(WS),l,s,u;for(u=0;u0,i=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Ij(e,r){var t=[],n,a,i,o;for(o=0;o0&&t.push(n);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function Q1(e,r,t){var n;for(n=0;n-1&&r;if(!o&&r){var ke=XS(e,!0);if(ke.length){var Oe=ke[0].xref,Ie=ke[0].yref;if(Oe&&Ie){var ir=oC(ke),or=lC([Do(e,Oe,"x"),Do(e,Ie,"y")]);or(U,ir)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:$&&eh(e,U),h._reselect=!1}if(!o&&h._deselect){var Ue=h._deselect;l=Ue.xref,s=Ue.yref,Uj(l,s,f)||iC(e,l,s,n),$&&(U.points.length?eh(e,U):U5(e)),h._deselect=!1}return{eventData:U,selectionTesters:t}}function Oj(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";fC.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var th=te((Bfe,cC)=>{"use strict";cC.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var fv=te((Ufe,dC)=>{"use strict";var vC=Y5(),hC=$a(),Ag=Pa(),Zj=bn().templatedArray,Ofe=th();dC.exports=Zj("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:hC({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:vC.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:vC.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Ag.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Ag.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Ag.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Ag.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:hC({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Tg=te((Yfe,pC)=>{"use strict";pC.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var G5=te((Gfe,gC)=>{"use strict";gC.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var kc=te((Vfe,wC)=>{"use strict";var mC=M2().axisHoverFormat,Xj=Vs().texttemplateAttrs,jj=Vs().hovertemplateAttrs,yC=H0(),Jj=$a(),$j=Kl().dash,Kj=Kl().pattern,Qj=fn(),eJ=Tg(),kg=la().extendFlat,rJ=G5();function bC(e){return{valType:"any",dflt:0,editType:"calc"}}function _C(e){return{valType:"any",editType:"calc"}}function xC(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}wC.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:bC("x"),yperiod:bC("y"),xperiod0:_C("x0"),yperiod0:_C("y0"),xperiodalignment:xC("x"),yperiodalignment:xC("y"),xhoverformat:mC("x"),yhoverformat:mC("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Xj({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:jj({},{keys:eJ.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:kg({},$j,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:rJ(!0),fillgradient:kg({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Kj,marker:kg({symbol:{valType:"enumerated",values:Qj.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:kg({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},yC("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},yC("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Jj({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var V5=te((Zfe,TC)=>{"use strict";var MC=fv(),AC=kc().line,tJ=Kl().dash,Sg=la().extendFlat,nJ=_o().overrideAll,aJ=bn().templatedArray,Wfe=th();TC.exports=nJ(aJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Sg({},MC.xref,{}),yref:Sg({},MC.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:AC.color,width:Sg({},AC.width,{min:1,dflt:1}),dash:Sg({},tJ,{dflt:"dot"})}}),"arraydraw","from-root")});var LC=te((Xfe,CC)=>{"use strict";var kC=gr(),Cg=Dn(),iJ=gl(),oJ=V5(),SC=rf();CC.exports=function(r,t){iJ(r,t,{name:"selections",handleItemDefaults:lJ});for(var n=t.selections,a=0;a{"use strict";qC.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var nh=te((Jfe,RC)=>{"use strict";var sJ=dt(),EC=gr(),PC=ua();RC.exports=function(r){return function(n,a){var i=n[r];if(Array.isArray(i))for(var o=sJ.subplotsRegistry.cartesian,l=o.idRegex,s=a._subplots,u=s.xaxis,f=s.yaxis,v=s.cartesian,h=a._has("cartesian"),d=0;d{"use strict";var zC=q5(),ah=uC();NC.exports={moduleType:"component",name:"selections",layoutAttributes:V5(),supplyLayoutDefaults:LC(),supplyDrawNewSelectionDefaults:DC(),includeBasePlot:nh()("selections"),draw:zC.draw,drawOne:zC.drawOne,reselect:ah.reselect,prepSelect:ah.prepSelect,clearOutline:ah.clearOutline,clearSelectionsCache:ah.clearSelectionsCache,selectOnClick:ah.selectOnClick}});var nL=te((Kfe,tL)=>{"use strict";var J5=kt(),Eo=gr(),FC=Eo.numberFormat,uJ=Jl(),fJ=L3(),Lg=dt(),WC=Eo.strTranslate,cJ=ci(),IC=Pt(),nf=fn(),vJ=ss(),HC=Dn(),hJ=Ku(),dJ=To(),ZC=tv(),qg=ZC.selectingOrDrawing,pJ=ZC.freeMode,gJ=Ka().FROM_TL,mJ=Vp(),yJ=dg().redrawReglTraces,bJ=fa(),Z5=ua().getFromId,_J=au().prepSelect,xJ=au().clearOutline,wJ=au().selectOnClick,W5=w5(),$5=Pa(),BC=$5.MINDRAG,vi=$5.MINZOOM,OC=!0;function MJ(e,r,t,n,a,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,v,h,d,m,p,y,b,C,x,_,A,k,M,D,z,F,I,W,B,X,G,re,ne;t+=r.yaxis._shift;function K(){if(v=r.xaxis,h=r.yaxis,x=v._length,_=h._length,b=v._offset,C=h._offset,d={},d[v._id]=v,m={},m[h._id]=h,o&&l)for(var Ae=r.overlays,je=0;je=0){hr._fullLayout._deactivateShape(hr);return}var wr=hr._fullLayout.clickmode;if(j5(hr),Ae===2&&!f&&dr(),u)wr.indexOf("select")>-1&&wJ(je,hr,p,y,r.id,he),wr.indexOf("event")>-1&&vJ.click(hr,je,r.id);else if(Ae===1&&f){var mr=o?h:v,Tr=o==="s"||l==="w"?0:1,Dr=mr._name+".range["+Tr+"]",Or=AJ(mr,Tr),Cr="left",ar="middle";if(mr.fixedrange)return;o?(ar=o==="n"?"top":"bottom",mr.side==="right"&&(Cr="right")):l==="e"&&(Cr="right"),hr._context.showAxisRangeEntryBoxes&&J5.select(fe).call(cJ.makeEditable,{gd:hr,immediate:!0,background:hr._fullLayout.paper_bgcolor,text:String(Or),fill:mr.tickfont?mr.tickfont.color:"#444",horizontalAlign:Cr,verticalAlign:ar}).on("edit",function(be){var Se=mr.d2r(be);Se!==void 0&&Lg.call("_guiRelayout",hr,Dr,Se)})}}dJ.init(he);var Fe,Xe,Le,rr,se,ye,we,pe,U,Q;function $(Ae,je,hr){var wr=fe.getBoundingClientRect();Fe=je-wr.left,Xe=hr-wr.top,e._fullLayout._calcInverseTransform(e);var mr=Eo.apply3DTransform(e._fullLayout._invTransform)(Fe,Xe);Fe=mr[0],Xe=mr[1],Le={l:Fe,r:Fe,w:0,t:Xe,b:Xe,h:0},rr=e._hmpixcount?e._hmlumcount/e._hmpixcount:uJ(e._fullLayout.plot_bgcolor).getLuminance(),se="M0,0H"+x+"V"+_+"H0V0",ye=!1,we="xy",Q=!1,pe=JC(s,rr,b,C,se),U=$C(s,b,C)}function ke(Ae,je){if(e._transitioningWithDuration)return!1;var hr=Math.max(0,Math.min(x,re*Ae+Fe)),wr=Math.max(0,Math.min(_,ne*je+Xe)),mr=Math.abs(hr-Fe),Tr=Math.abs(wr-Xe);Le.l=Math.min(Fe,hr),Le.r=Math.max(Fe,hr),Le.t=Math.min(Xe,wr),Le.b=Math.max(Xe,wr);function Dr(){we="",Le.r=Le.l,Le.t=Le.b,U.attr("d","M0,0Z")}if(A.isSubplotConstrained)mr>vi||Tr>vi?(we="xy",mr/x>Tr/_?(Tr=mr*_/x,Xe>wr?Le.t=Xe-Tr:Le.b=Xe+Tr):(mr=Tr*x/_,Fe>hr?Le.l=Fe-mr:Le.r=Fe+mr),U.attr("d",Dg(Le))):Dr();else if(k.isSubplotConstrained)if(mr>vi||Tr>vi){we="xy";var Or=Math.min(Le.l/x,(_-Le.b)/_),Cr=Math.max(Le.r/x,(_-Le.t)/_);Le.l=Or*x,Le.r=Cr*x,Le.b=(1-Or)*_,Le.t=(1-Cr)*_,U.attr("d",Dg(Le))}else Dr();else!D||Tr0){var be;if(k.isSubplotConstrained||!M&&D.length===1){for(be=0;be1&&(Dr.maxallowed!==void 0&&F===(Dr.range[0]1&&(Or.maxallowed!==void 0&&I===(Or.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function kJ(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function JC(e,r,t,n,a){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",WC(t,n)).attr("d",a+"Z")}function $C(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:IC.background,stroke:IC.defaultLine,"stroke-width":1,opacity:0}).attr("transform",WC(r,t)).attr("d","M0,0Z")}function KC(e,r,t,n,a,i){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),QC(e,r,a,i)}function QC(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function j5(e){J5.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function eL(e){OC&&e.data&&e._context.showTips&&(Eo.notifier(Eo._(e,"Double-click to zoom back out"),"long"),OC=!1)}function SJ(e,r){return"M"+(e.l-.5)+","+(r-vi-.5)+"h-3v"+(2*vi+1)+"h3ZM"+(e.r+.5)+","+(r-vi-.5)+"h3v"+(2*vi+1)+"h-3Z"}function CJ(e,r){return"M"+(r-vi-.5)+","+(e.t-.5)+"v-3h"+(2*vi+1)+"v3ZM"+(r-vi-.5)+","+(e.b+.5)+"v3h"+(2*vi+1)+"v-3Z"}function Dg(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,vi)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function GC(e,r,t,n,a){for(var i=!1,o={},l={},s,u,f,v,h=(a||{}).xaHash,d=(a||{}).yaHash,m=0;m{"use strict";var LJ=kt(),Eg=ss(),qJ=To(),DJ=Ku(),_l=nL().makeDragBox,wa=Pa().DRAGGERSIZE;Pg.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){LJ.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});n.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=_l(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Eg.hover(r,h,i)},Eg.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,qJ.unhover(r,h))},r._context.showAxisDragHandles&&(_l(r,o,l._offset-wa,s._offset-wa,wa,wa,"n","w"),_l(r,o,l._offset+l._length,s._offset-wa,wa,wa,"n","e"),_l(r,o,l._offset-wa,s._offset+s._length,wa,wa,"s","w"),_l(r,o,l._offset+l._length,s._offset+s._length,wa,wa,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=wa),_l(r,o,l._offset+l._length*.1,f,l._length*.8,wa,"","ew"),_l(r,o,l._offset,f,l._length*.1,wa,"","w"),_l(r,o,l._offset+l._length*.9,f,l._length*.1,wa,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=wa),_l(r,o,v,s._offset+s._length*.1,wa,s._length*.8,"ns",""),_l(r,o,v,s._offset+s._length*.9,wa,s._length*.1,"s",""),_l(r,o,v,s._offset,wa,s._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(i){i.target=r._fullLayout._lasthover,Eg.hover(r,i,t._hoversubplot)},a.onclick=function(i){i.target=r._fullLayout._lasthover,Eg.click(r,i)},a.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Pg.updateFx(r)}};Pg.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";DJ(r._draggers,t)}});var oL=te((ece,iL)=>{"use strict";var aL=dt();iL.exports=function(r){for(var t=aL.layoutArrayContainers,n=aL.layoutArrayRegexes,a=r.split("[")[0],i,o,l=0;l{"use strict";var EJ=Gs(),Q5=gd(),ih=Ru(),PJ=Xy().sorterAsc,eb=dt();oh.containerArrayMatch=oL();var RJ=oh.isAddVal=function(r){return r==="add"||EJ(r)},lL=oh.isRemoveVal=function(r){return r===null||r==="remove"};oh.applyContainerArrayChanges=function(r,t,n,a,i){var o=t.astr,l=eb.getComponentMethod(o,"supplyLayoutDefaults"),s=eb.getComponentMethod(o,"draw"),u=eb.getComponentMethod(o,"drawOne"),f=a.replot||a.recalc||l===Q5||s===Q5,v=r.layout,h=r._fullLayout;if(n[""]){Object.keys(n).length>1&&ih.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(lL(d))t.set(null);else if(Array.isArray(d))t.set(d);else return ih.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(v,h),s(r),!0)}var m=Object.keys(n).map(Number).sort(PJ),p=t.get(),y=p||[],b=i(h,o).get(),C=[],x=-1,_=y.length,A,k,M,D,z,F,I,W;for(A=0;Ay.length-(I?0:1)){ih.warn("index out of range",o,M);continue}if(F!==void 0)z.length>1&&ih.warn("Insertion & removal are incompatible with edits to the same index.",o,M),lL(F)?C.push(M):I?(F==="add"&&(F={}),y.splice(M,0,F),b&&b.splice(M,0,{})):ih.warn("Unrecognized full object edit value",o,M,F),x===-1&&(x=M);else for(k=0;k=0;A--)y.splice(C[A],1),b&&b.splice(C[A],1);if(y.length?p||t.set(y):t.set(null),f)return!1;if(l(v,h),u!==Q5){var B;if(x===-1)B=m;else{for(_=Math.max(y.length,_),B=[],A=0;A=x));A++)B.push(M);for(A=x;A<_;A++)B.push(A)}for(A=0;A{"use strict";var vL=Ut(),tce=Hy(),hL=dt(),Ni=gr(),lh=fa(),dL=ua(),pL=Pt(),sh=dL.cleanId,zJ=dL.getFromTrace,rb=hL.traceIs;xl.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ni.log("Clearing previous rejected promises from queue."),e._promises=[]};xl.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(lh.subplotsRegistry.cartesian||{}).attrRegex,a=(lh.subplotsRegistry.polar||{}).attrRegex,i=(lh.subplotsRegistry.ternary||{}).attrRegex,o=(lh.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),pL.clean(e),e.template&&e.template.layout&&xl.cleanLayout(e.template.layout),e};function cv(e,r){var t=e[r],n=r.charAt(0);t&&t!=="paper"&&(e[r]=sh(t,n,!0))}xl.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}xl.hasParent=function(e,r){for(var t=cL(r);t;){if(t in e)return!0;t=cL(t)}return!1};var IJ=["x","y","z"];xl.clearAxisTypes=function(e,r,t){for(var n=0;n{"use strict";var Fg=kt(),HJ=Ut(),BJ=l2(),Rr=gr(),_n=Rr.nestedProperty,ab=p1(),hi=Xw(),Po=dt(),Gg=z0(),ft=fa(),ai=Dn(),OJ=C3(),UJ=pl(),tb=fn(),YJ=Pt(),GJ=K5().initInteractions,VJ=lc(),WJ=au().clearOutline,xL=Kf().dfltConfig,zg=sL(),na=gL(),nn=dg(),af=_o(),ZJ=Pa().AX_NAME_PATTERN,nb=0,mL=5;function XJ(e,r,t,n){var a;if(e=Rr.getGraphDiv(e),ab.init(e),Rr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,n=i.config,a=i.frames}var o=ab.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(o===!1)return Promise.reject();!r&&!t&&!Rr.isPlotDiv(e)&&Rr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return It.addFrames(e,a)}ML(e,n),t||(t={}),Fg.select(e).classed("js-plotly-plot",!0),tb.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(na.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=na.cleanLayout(t)),ft.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(m$(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),tb.initGradients(e),tb.initPatterns(e),s&&ai.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&ft.doCalcdata(e);for(var h=0;h=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function AL(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Hg(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Hg(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function QJ(e,r,t){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),n=0;n=0&&f=0&&f0&&typeof D.parts[I]!="string";)I--;var W=D.parts[I],B=D.parts[I-1]+"."+W,X=D.parts.slice(0,I).join("."),G=_n(e.layout,X).get(),re=_n(n,X).get(),ne=D.get();if(z!==void 0){b[M]=z,C[M]=W==="reverse"?z:iu(ne);var K=Gg.getLayoutValObject(n,D.parts);if(K&&K.impliedEdits&&z!==null)for(var ee in K.impliedEdits)x(Rr.relativeAttr(M,ee),K.impliedEdits[ee]);if(["width","height"].indexOf(M)!==-1)if(z){x("autosize",null);var fe=M==="height"?"width":"height";x(fe,n[fe])}else n[M]=e._initialAutoSize[M];else if(M==="autosize")x("width",z?null:n.width),x("height",z?null:n.height);else if(B.match(PL))k(B),_n(n,X+"._inputRange").set(null);else if(B.match(RL)){k(B),_n(n,X+"._inputRange").set(null);var he=_n(n,X).get();he._inputDomain&&(he._input.domain=he._inputDomain.slice())}else B.match(n$)&&_n(n,X+"._inputDomain").set(null);if(W==="type"){A=G;var De=re.type==="linear"&&z==="log",Ne=re.type==="log"&&z==="linear";if(De||Ne){if(!A||!A.range)x(X+".autorange",!0);else if(re.autorange)De&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var Fe=A.range[0],Xe=A.range[1];De?(Fe<=0&&Xe<=0&&x(X+".autorange",!0),Fe<=0?Fe=Xe/1e6:Xe<=0&&(Xe=Fe/1e6),x(X+".range[0]",Math.log(Fe)/Math.LN10),x(X+".range[1]",Math.log(Xe)/Math.LN10)):(x(X+".range[0]",Math.pow(10,Fe)),x(X+".range[1]",Math.pow(10,Xe)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[D.parts[0]]&&D.parts[1]==="radialaxis"&&delete n[D.parts[0]]._subplot.viewInitial["radialaxis.range"],Po.getComponentMethod("annotations","convertCoords")(e,re,z,x),Po.getComponentMethod("images","convertCoords")(e,re,z,x)}else x(X+".autorange",!0),x(X+".range",null);_n(n,X+"._inputRange").set(null)}else if(W.match(ZJ)){var Le=_n(n,M).get(),rr=(z||{}).type;(!rr||rr==="-")&&(rr="linear"),Po.getComponentMethod("annotations","convertCoords")(e,Le,rr,x),Po.getComponentMethod("images","convertCoords")(e,Le,rr,x)}var se=zg.containerArrayMatch(M);if(se){f=se.array,v=se.index;var ye=se.property,we=K||{editType:"calc"};v!==""&&ye===""&&(zg.isAddVal(z)?C[M]=null:zg.isRemoveVal(z)?C[M]=(_n(t,f).get()||[])[v]:Rr.warn("unrecognized full object value",r)),af.update(y,we),u[f]||(u[f]={});var pe=u[f][v];pe||(pe=u[f][v]={}),pe[ye]=z,delete r[M]}else W==="reverse"?(G.range?G.range.reverse():(x(X+".autorange",!0),G.range=[1,0]),re.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(z===!1&&ne!==!1||z!==!1&&ne===!1)||n._has("scatter-like")&&n._has("regl")&&M==="dragmode"&&(z==="lasso"||z==="select")&&!(ne==="lasso"||ne==="select")?y.plot=!0:K?af.update(y,K):y.calc=!0,D.set(z))}}for(f in u){var U=zg.applyContainerArrayChanges(e,i(t,f),u[f],y,i);U||(y.plot=!0)}for(var Q in _){A=ai.getFromId(e,Q);var $=A&&A._constraintGroup;if($){y.calc=!0;for(var ke in $)_[ke]||(ai.getFromId(e,ke)._constraintShrinkable=!0)}}(NL(e)||r.height||r.width)&&(y.plot=!0);var Oe=n.shapes;for(v=0;v1;)if(n.pop(),t=_n(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function o$(e,r){for(var t=0;t[G,e._ev.listeners(G)]);i=It.newPlot(e,r,t,n).then(()=>{for(let[G,re]of X)re.forEach(ne=>e.on(G,ne));return It.react(e,r,t,n)})}else{e.data=r||[],na.cleanData(e.data),e.layout=t||{},na.cleanLayout(e.layout),s$(e.data,e.layout,l,s),ft.supplyDefaults(e,{skipUpdateCalc:!0});var h=e._fullData,d=e._fullLayout,m=d.datarevision===void 0,p=d.transition,y=c$(e,s,d,m,p),b=y.newDataRevision,C=f$(e,l,h,m,p,b);if(NL(e)&&(y.layoutReplot=!0),C.calc||y.calc){e.calcdata=void 0;for(var x=Object.getOwnPropertyNames(d),_=0;_(f||e.emit("plotly_react",{config:n,data:r,layout:t}),e))}function f$(e,r,t,n,a,i){var o=r.length===t.length;if(!a&&!o)return{fullReplot:!0,calc:!0};var l=af.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var m=Gg.getTraceValObject(u,d);return!u._module.animatable&&m.anim&&(m.anim=!1),m}var v={getValObject:f,flags:l,immutable:n,transition:a,newDataRevision:i,gd:e},h={};for(s=0;s=a.length?a[0]:a[u]:a}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var v=0;return function(){if(u&&++v===f)return u()}}return new Promise(function(u,f){function v(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var W=n._frameQueue.pop();W.onInterrupt&&W.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(W){if(W.length!==0){for(var B=0;Bn._timeToNext&&m()};W()}var y=0;function b(W){return Array.isArray(a)?y>=a.length?W.transitionOpts=a[y]:W.transitionOpts=a[0]:W.transitionOpts=a,y++,W}var C,x,_=[],A=r==null,k=Array.isArray(r),M=!A&&!k&&Rr.isPlainObject(r);if(M)_.push({type:"object",data:b(Rr.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(C=0;C0&&F<_.length-1){var I=[];for(C=0;C<_.length;C++)x=_[C],(_[C].type!=="byname"||C>F)&&I.push(x);_=I}}_.length>0?h(_):(e.emit("plotly_animated"),u())})}function h$(e,r,t){if(e=Rr.getGraphDiv(e),r==null)return Promise.resolve();if(!Rr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],v={};for(n=r.length-1;n>=0;n--)if(Rr.isPlainObject(r[n])){var h=r[n].name,d=(s[h]||v[h]||{}).name,m=r[n].name,p=s[d]||v[d];d&&m&&typeof m=="number"&&p&&nbD.index?-1:M.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&Rr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;s[a.name="frame "+e._transitionData._counter++];);if(s[a.name]){for(i=0;i=0;t--)n=r[t],i.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:a[n]});var l=ft.modifyFrames,s=ft.modifyFrames,u=[e,o],f=[e,i];return hi&&hi.add(e,l,u,s,f),ft.modifyFrames(e,i)}function p$(e){e=Rr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return ft.cleanPlot([],{},t,r),ft.purge(e),ab.purge(e),r._container&&r._container.remove(),delete e._context,e}function g$(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Rr.equalDomRects(t,r._lastBBox)){var n=r._invTransform=Rr.inverseTransformMatrix(Rr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function m$(e){var r=Fg.select(e),t=e._fullLayout;if(t._calcInverseTransform=g$,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var n={};Fg.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=Rr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(VJ.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}It.animate=v$;It.addFrames=h$;It.deleteFrames=d$;It.addTraces=LL;It.deleteTraces=qL;It.extendTraces=SL;It.moveTraces=ib;It.prependTraces=CL;It.newPlot=KJ;It._doPlot=XJ;It.purge=p$;It.react=u$;It.redraw=$J;It.relayout=uh;It.restyle=Bg;It.setPlotConfig=jJ;It.update=Ug;It._guiRelayout=lb(uh);It._guiRestyle=lb(Bg);It._guiUpdate=lb(Ug);It._storeDirectGUIEdit=t$});var Sc=te(cs=>{"use strict";var y$=dt();cs.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};cs.getRedrawFunc=function(e){return function(){y$.getComponentMethod("colorbar","draw")(e)}};cs.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};cs.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var FL=window.URL||window.webkitURL;cs.createObjectURL=function(e){return FL.createObjectURL(e)};cs.revokeObjectURL=function(e){return FL.revokeObjectURL(e)};cs.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=b$(window.atob(e));return new window.Blob([t],{type:"image/"+r})};cs.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function b$(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var fb=kt(),oce=gr(),_$=fn(),x$=Pt(),lce=lc(),ub=/"/g,ch="TOBESTRIPPED",w$=new RegExp('("'+ch+")|("+ch+'")',"g");function M$(e){var r=fb.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":r.html(n).text()});return r.remove(),t}function A$(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}IL.exports=function(r,t,n){var a=r._fullLayout,i=a._paper,o=a._toppaper,l=a.width,s=a.height,u;i.insert("rect",":first-child").call(_$.setRect,0,0,l,s).call(x$.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(u=0;u{"use strict";var T$=gr(),k$=Id().EventEmitter,vh=Sc();function S$(e){var r=e.emitter||new k$,t=new Promise(function(n,a){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,v=e.height||150,h=u*f,d=u*v,m=s.getContext("2d",{willReadFrequently:!0}),p=new i,y,b;l==="svg"||T$.isSafari()?b=vh.encodeSVG(o):(y=vh.createBlob(o,"svg"),b=vh.createObjectURL(y)),s.width=h,s.height=d,p.onload=function(){var C;switch(y=null,vh.revokeObjectURL(b),l!=="svg"&&m.drawImage(p,0,0,h,d),l){case"jpeg":C=s.toDataURL("image/jpeg");break;case"png":C=s.toDataURL("image/png");break;case"webp":C=s.toDataURL("image/webp");break;case"svg":C=b;break;default:var x="Image format is not jpeg, png, svg or webp.";if(a(new Error(x)),!e.promise)return r.emit("error",x)}n(C),e.promise||r.emit("success",C)},p.onerror=function(C){if(y=null,vh.revokeObjectURL(b),a(C),!e.promise)return r.emit("error",C)},p.src=b});return e.promise?t:r}HL.exports=S$});var vb=te((fce,UL)=>{"use strict";var BL=Ut(),OL=sb(),C$=fa(),vs=gr(),hh=Sc(),L$=Wg(),q$=Zg(),D$=ed().version,cb={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function E$(e,r){r=r||{};var t,n,a,i;vs.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},i={}):(e=vs.getGraphDiv(e),t=vs.extendDeep([],e.data),n=vs.extendDeep({},e.layout),a=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||vs.validate(r[k],cb[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+vs.join2(cb.format.values,", "," or ")+".");var l={};function s(k,M){return vs.coerce(r,l,cb,k,M)}var u=s("format"),f=s("width"),v=s("height"),h=s("scale"),d=s("setBackground"),m=s("imageDataOnly"),p=document.createElement("div");p.style.position="absolute",p.style.left="-5000px",document.body.appendChild(p);var y=vs.extendFlat({},n);f?y.width=f:r.width===null&&BL(i.width)&&(y.width=i.width),v?y.height=v:r.height===null&&BL(i.height)&&(y.height=i.height);var b=vs.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=hh.getRedrawFunc(p);function x(){return new Promise(function(k){setTimeout(k,hh.getDelay(p._fullLayout))})}function _(){return new Promise(function(k,M){var D=L$(p,u,h),z=p._fullLayout.width,F=p._fullLayout.height;function I(){OL.purge(p),document.body.removeChild(p)}if(u==="full-json"){var W=C$.graphJson(p,!1,"keepdata","object",!0,!0);return W.version=D$,W=JSON.stringify(W),I(),k(m?W:hh.encodeJSON(W))}if(I(),u==="svg")return k(m?D:hh.encodeSVG(D));var B=document.createElement("canvas");B.id=vs.randstr(),q$({format:u,width:z,height:F,scale:h,canvas:B,svg:D,promise:!0}).then(k).catch(M)})}function A(k){return m?k.replace(hh.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){OL.newPlot(p,t,y,b).then(C).then(x).then(_).then(function(D){k(A(D))}).catch(function(D){M(D)})})}UL.exports=E$});var VL=te((cce,GL)=>{"use strict";var Ro=gr(),P$=fa(),R$=z0(),z$=Kf().dfltConfig,wl=Ro.isPlainObject,Lc=Array.isArray,hb=Ro.isArrayOrTypedArray;GL.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=R$.get(),a=[],i={_context:Ro.extendFlat({},z$)},o,l;Lc(r)?(i.data=Ro.extendDeep([],r),o=r):(i.data=[],o=[],a.push(Ma("array","data"))),wl(t)?(i.layout=Ro.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&a.push(Ma("object","layout"))),P$.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fv.length&&n.push(Ma("unused",a,u.concat(v.length)));var b=v.length,C=Array.isArray(y);C&&(b=Math.min(b,y.length));var x,_,A,k,M;if(h.dimensions===2)for(_=0;_v[_].length&&n.push(Ma("unused",a,u.concat(_,v[_].length)));var D=v[_].length;for(x=0;x<(C?Math.min(D,y[_].length):D);x++)A=C?y[_][x]:y,k=f[_][x],M=v[_][x],Ro.validate(k,A)?M!==k&&M!==+k&&n.push(Ma("dynamic",a,u.concat(_,x),k,M)):n.push(Ma("value",a,u.concat(_,x),k))}else n.push(Ma("array",a,u.concat(_),f[_]));else for(_=0;_{"use strict";var U$=gr(),jg=Sc();function Y$(e,r,t){var n=document.createElement("a"),a="download"in n,i=new Promise(function(o,l){var s,u;if(a)return s=jg.createBlob(e,t),u=jg.createObjectURL(s),n.href=u,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),jg.revokeObjectURL(u),s=null,o(r);if(U$.isSafari()){var f=t==="svg"?",":";base64,";return jg.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}WL.exports=Y$});var db=te((dce,jL)=>{"use strict";var XL=gr(),G$=vb(),V$=ZL(),hce=Sc();function W$(e,r){var t;return XL.isPlainObject(e)||(t=XL.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(n,a){t&&t._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=G$(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),V$(l,o,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}jL.exports=W$});var eq=te(pb=>{"use strict";var Fi=gr(),Ii=Fi.isPlainObject,JL=z0(),$L=fa(),Z$=bo(),KL=bn(),QL=Kf().dfltConfig;pb.makeTemplate=function(e){e=Fi.isPlainObject(e)?e:Fi.getGraphDiv(e),e=Fi.extendDeep({_context:QL},{data:e.data,layout:e.layout}),$L.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(d){var m={};dh(d,m,j$.bind(null,d));var p=Fi.coerce(d,{},Z$,"type"),y=n.data[p];y||(y=n.data[p]=[]),y.push(m)}),dh(t,n.layout,X$.bind(null,t)),delete n.layout.template;var a=t.template;if(Ii(a)){var i=a.layout,o,l,s,u,f,v;Ii(i)&&Jg(i,n.layout);var h=a.data;if(Ii(h)){for(l in n.data)if(s=h[l],Array.isArray(s)){for(f=n.data[l],v=f.length,u=s.length,o=0;ob?o.push({code:"unused",traceType:d,templateCount:y,dataCount:b}):b>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:b})}}function C(x,_){for(var A in x)if(A.charAt(0)!=="_"){var k=x[A],M=zo(x,A,_);Ii(k)?(Array.isArray(x)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),C(k,M)):Array.isArray(k)&&J$(k)&&C(k,M)}}if(C({data:s,layout:l},""),o.length)return o.map($$)};function J$(e){for(var r=0;r{"use strict";var va=sb();Ln._doPlot=va._doPlot;Ln.newPlot=va.newPlot;Ln.restyle=va.restyle;Ln.relayout=va.relayout;Ln.redraw=va.redraw;Ln.update=va.update;Ln._guiRestyle=va._guiRestyle;Ln._guiRelayout=va._guiRelayout;Ln._guiUpdate=va._guiUpdate;Ln._storeDirectGUIEdit=va._storeDirectGUIEdit;Ln.react=va.react;Ln.extendTraces=va.extendTraces;Ln.prependTraces=va.prependTraces;Ln.addTraces=va.addTraces;Ln.deleteTraces=va.deleteTraces;Ln.moveTraces=va.moveTraces;Ln.purge=va.purge;Ln.addFrames=va.addFrames;Ln.deleteFrames=va.deleteFrames;Ln.animate=va.animate;Ln.setPlotConfig=va.setPlotConfig;var K$=o1().getGraphDiv,Q$=lg().eraseActiveShape;Ln.deleteActiveShape=function(e){return Q$(K$(e))};Ln.toImage=vb();Ln.validate=VL();Ln.downloadImage=db();var rq=eq();Ln.makeTemplate=rq.makeTemplate;Ln.validateTemplate=rq.validateTemplate});var aq=te((mce,nq)=>{"use strict";var gb=gr(),eK=dt();nq.exports=function(r,t,n,a){var i=a("x"),o=a("y"),l,s=eK.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],n),i){var u=gb.minRowLength(i);o?l=Math.min(u,gb.minRowLength(o)):(l=u,a("y0"),a("dy"))}else{if(!o)return 0;l=gb.minRowLength(o),a("x0"),a("dx")}return t._length=l,l}});var sq=te((yce,lq)=>{"use strict";var iq=gr().dateTick0,rK=Rn(),tK=rK.ONEWEEK;function oq(e,r){return e%tK===0?iq(r,1):iq(r,0)}lq.exports=function(r,t,n,a,i){if(i||(i={x:!0,y:!0}),i.x){var o=a("xperiod");o&&(a("xperiod0",oq(o,t.xcalendar)),a("xperiodalignment"))}if(i.y){var l=a("yperiod");l&&(a("yperiod0",oq(l,t.ycalendar)),a("yperiodalignment"))}}});var cq=te((bce,fq)=>{"use strict";var uq=["orientation","groupnorm","stackgaps"];fq.exports=function(r,t,n,a){var i=n._scatterStackOpts,o=a("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var vq=Pt(),hq=es().hasColorscale,dq=B0(),nK=Qa();pq.exports=function(r,t,n,a,i,o){var l=nK.isBubble(r),s=(r.line||{}).color,u;if(o=o||{},s&&(n=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",n),hq(r,"marker")&&dq(r,t,a,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=vq.background:u=vq.defaultLine,i("marker.line.color",u),hq(r,"marker.line")&&dq(r,t,a,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0)),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var yb=te((xce,gq)=>{"use strict";var aK=gr().isArrayOrTypedArray,iK=es().hasColorscale,oK=B0();gq.exports=function(r,t,n,a,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",n),iK(r,"line"))oK(r,t,a,i,{prefix:"line.",cLetter:"c"});else{var s=(aK(l)?!1:l)||n;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var yq=te((wce,mq)=>{"use strict";mq.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var bb=te((Mce,bq)=>{"use strict";var lK=gr();bq.exports=function(e,r,t,n,a){a=a||{},n("textposition"),lK.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var _b=te((Ace,xq)=>{"use strict";var Kg=Pt(),_q=gr().isArrayOrTypedArray;function sK(e){for(var r=Kg.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var wq=gr(),uK=dt(),fK=kc(),cK=Tg(),vv=Qa(),vK=aq(),hK=sq(),dK=cq(),pK=mb(),gK=yb(),Mq=yq(),mK=bb(),yK=_b(),bK=gr().coercePattern;Aq.exports=function(r,t,n,a){function i(d,m){return wq.coerce(r,t,fK,d,m)}var o=vK(r,t,a,i);if(o||(t.visible=!1),!!t.visible){hK(r,t,a,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=dK(r,t,a,i);a.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var _K=B1().getAxisGroup;kq.exports=function(r,t,n,a,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=_K(n,l)+o,u=n._alignmentOpts||{},f=a("alignmentgroup"),v=u[s];v||(v=u[s]={});var h=v[f];h?h.traces.push(t):h=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var d=a("offsetgroup")||"",m=h.offsetGroups,p=m[d];t._offsetIndex=0,(i!=="group"||d)&&(p||(p=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=p.offsetIndex)}});var Lq=te((Sce,Cq)=>{"use strict";var xK=gr(),wK=Sq(),MK=kc();Cq.exports=function(r,t){var n,a,i,o=t.scattermode;function l(h){return xK.coerce(a._input,a,MK,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===s.xaxis&&v.yaxis===s.yaxis){v.opacity=void 0;break}}}}}});var Dq=te((Cce,qq)=>{"use strict";var AK=gr(),TK=Yd();qq.exports=function(e,r){function t(a,i){return AK.coerce(e,r,TK,a,i)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var Rq=te((Lce,Pq)=>{"use strict";var kK=Ut(),Eq=gr(),SK=Eq.dateTime2ms,Qg=Eq.incrementMonth,CK=Rn(),LK=CK.ONEAVGMONTH;Pq.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var i=r[n+"periodalignment"];if(!i)return{vals:a};var o=r[n+"period"],l;if(kK(o)){if(o=+o,o<=0)return{vals:a}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:a}}for(var u=t.calendar,f=i==="start",v=i==="end",h=r[n+"period0"],d=SK(h,u)||0,m=[],p=[],y=[],b=a.length,C=0;Cx;)k=Qg(k,-l,u);for(;k<=x;)k=Qg(k,l,u);A=Qg(k,-l,u)}else{for(_=Math.round((x-d)/o),k=d+_*o;k>x;)k-=o;for(;k<=x;)k+=o;A=k-o}m[C]=f?A:v?k:(A+k)/2,p[C]=A,y[C]=k}return{vals:m,starts:p,ends:y}}});var Mb=te((qce,Nq)=>{"use strict";var xb=es().hasColorscale,wb=ep(),zq=Qa();Nq.exports=function(r,t){zq.hasLines(t)&&xb(t,"line")&&wb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),zq.hasMarkers(t)&&(xb(t,"marker")&&wb(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),xb(t,"marker.line")&&wb(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var ph=te((Dce,Fq)=>{"use strict";var Yn=gr();Fq.exports=function(r,t){for(var n=0;n{"use strict";var Iq=gr();Hq.exports=function(r,t){Iq.isArrayOrTypedArray(t.selectedpoints)&&Iq.tagSelected(r,t)}});var rm=te((Pce,Wq)=>{"use strict";var Bq=Ut(),Tb=gr(),gh=Dn(),Oq=Rq(),Ab=Rn().BADNUM,kb=Qa(),qK=Mb(),DK=ph(),EK=em();function PK(e,r){var t=e._fullLayout,n=r._xA=gh.getFromId(e,r.xaxis||"x","x"),a=r._yA=gh.getFromId(e,r.yaxis||"y","y"),i=n.makeCalcdata(r,"x"),o=a.makeCalcdata(r,"y"),l=Oq(r,n,"x",i),s=Oq(r,a,"y",o),u=l.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=Sb(r,t,n,a),p=!1,y,b,C,x,_,A;Gq(t,r);var k="x",M="y",D;if(m)Tb.pushUnique(m.traceIndices,r.index),y=m.orientation==="v",y?(M="s",D="x"):(k="s",D="y"),_=m.stackgaps==="interpolate";else{var z=Yq(r,v);Uq(e,r,n,a,u,f,z)}var F=!!r.xperiodalignment,I=!!r.yperiodalignment;for(b=0;bb&&h[x].gap;)x--;for(A=h[x].s,C=h.length-1;C>x;C--)h[C].s=A;for(;b{"use strict";Zq.exports=tm;var RK=gr().distinctVals;function tm(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],i=0;i{"use strict";var No=Ut(),of=gr().isArrayOrTypedArray,hv=Rn().BADNUM,zK=dt(),mh=Dn(),NK=B1().getAxisGroup,nm=Xq();function FK(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!No(l))}for(var f=0;f{"use strict";var eD=rm(),rD=Qq().setGroupPositions;function jK(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uz[f]&&f{"use strict";var $K=fn(),lD=Rn(),yh=lD.BADNUM,sD=lD.LOG_CLIP,aD=sD+.5,iD=sD-.5,am=gr(),KK=am.segmentsIntersect,oD=am.constrain,Pb=Tg();uD.exports=function(r,t){var n=t.trace||{},a=t.xaxis,i=t.yaxis,o=a.type==="log",l=i.type==="log",s=a._length,u=i._length,f=t.backoff,v=n.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,p=m==="linear",y=n.fill&&n.fill!=="none",b=[],C=Pb.minTolerance,x=r.length,_=new Array(x),A=0,k,M,D,z,F,I,W,B,X,G,re,ne,K,ee,fe,he;function De(ar){var be=r[ar];if(!be)return!1;var Se=t.linearized?a.l2p(be.x):a.c2p(be.x),$e=t.linearized?i.l2p(be.y):i.c2p(be.y);if(Se===yh){if(o&&(Se=a.c2p(be.x,!0)),Se===yh)return!1;l&&$e===yh&&(Se*=Math.abs(a._m*u*(a._m>0?aD:iD)/(i._m*s*(i._m>0?aD:iD)))),Se*=1e3}if($e===yh){if(l&&($e=i.c2p(be.y,!0)),$e===yh)return!1;$e*=1e3}return[Se,$e]}function Ne(ar,be,Se,$e){var Ze=Se-ar,qr=$e-be,Hr=.5-ar,Pr=.5-be,lt=Ze*Ze+qr*qr,xt=Ze*Hr+qr*Pr;if(xt>0&&xt1||Math.abs(Hr.y-Se[0][1])>1)&&(Hr=[Hr.x,Hr.y],$e&&rr(Hr,ar)we||ar[1]U)return[oD(ar[0],ye,we),oD(ar[1],pe,U)]}function ur(ar,be){if(ar[0]===be[0]&&(ar[0]===ye||ar[0]===we)||ar[1]===be[1]&&(ar[1]===pe||ar[1]===U))return!0}function cr(ar,be){var Se=[],$e=tr(ar),Ze=tr(be);return $e&&Ze&&ur($e,Ze)||($e&&Se.push($e),Ze&&Se.push(Ze)),Se}function Qe(ar,be,Se){return function($e,Ze){var qr=tr($e),Hr=tr(Ze),Pr=[];if(qr&&Hr&&ur(qr,Hr))return Pr;qr&&Pr.push(qr),Hr&&Pr.push(Hr);var lt=2*am.constrain(($e[ar]+Ze[ar])/2,be,Se)-((qr||$e)[ar]+(Hr||Ze)[ar]);if(lt){var xt;qr&&Hr?xt=lt>0==qr[ar]>Hr[ar]?qr:Hr:xt=qr||Hr,xt[ar]+=lt}return Pr}}var pr;m==="linear"||m==="spline"?pr=Ue:m==="hv"||m==="vh"?pr=cr:m==="hvh"?pr=Qe(0,ye,we):m==="vhv"&&(pr=Qe(1,pe,U));function dr(ar,be){var Se=be[0]-ar[0],$e=(be[1]-ar[1])/Se,Ze=(ar[1]*be[0]-be[1]*ar[0])/Se;return Ze>0?[$e>0?ye:we,U]:[$e>0?we:ye,pe]}function Te(ar){var be=ar[0],Se=ar[1],$e=be===_[A-1][0],Ze=Se===_[A-1][1];if(!($e&&Ze))if(A>1){var qr=be===_[A-2][0],Hr=Se===_[A-2][1];$e&&(be===ye||be===we)&&qr?Hr?A--:_[A-1]=ar:Ze&&(Se===pe||Se===U)&&Hr?qr?A--:_[A-1]=ar:_[A++]=ar}else _[A++]=ar}function Ye(ar){_[A-1][0]!==ar[0]&&_[A-1][1]!==ar[1]&&Te([Oe,Ie]),Te(ar),ir=null,Oe=Ie=0}var Ar=am.isArrayOrTypedArray(v);function Nr(ar){if(ar&&f&&(ar.i=k,ar.d=r,ar.trace=n,ar.marker=Ar?v[ar.i]:v,ar.backoff=f),Fe=ar[0]/s,Xe=ar[1]/u,$=ar[0]we?we:0,ke=ar[1]U?U:0,$||ke){if(!A)_[A++]=[$||ar[0],ke||ar[1]];else if(ir){var be=pr(ir,ar);be.length>1&&(Ye(be[0]),_[A++]=be[1])}else or=pr(_[A-1],ar)[0],_[A++]=or;var Se=_[A-1];$&&ke&&(Se[0]!==$||Se[1]!==ke)?(ir&&(Oe!==$&&Ie!==ke?Te(Oe&&Ie?dr(ir,ar):[Oe||$,Ie||ke]):Oe&&Ie&&Te([Oe,Ie])),Te([$,ke])):Oe-$&&Ie-ke&&Te([$||Oe,ke||Ie]),ir=ar,Oe=$,Ie=ke}else ir&&Ye(pr(ir,ar)[0]),_[A++]=ar}for(k=0;kLe(I,Er))break;D=I,K=X[0]*B[0]+X[1]*B[1],K>re?(re=K,z=I,W=!1):K=r.length||!I)break;Nr(I),M=I}}ir&&Te([Oe||ir[0],Ie||ir[1]]),b.push(_.slice(0,A))}var Ae=m.slice(m.length-1);if(f&&Ae!=="h"&&Ae!=="v"){for(var je=!1,hr=-1,wr=[],mr=0;mr{"use strict";var cD={tonextx:1,tonexty:1,tonext:1};vD.exports=function(r,t,n){var a,i,o,l,s,u={},f=!1,v=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var Ml=kt(),QK=dt(),bh=gr(),pv=bh.ensureSingle,pD=bh.identity,Gn=fn(),gv=Qa(),eQ=fD(),rQ=hD(),im=bg().tester;gD.exports=function(r,t,n,a,i,o){var l,s,u=!i,f=!!i&&i.duration>0,v=rQ(r,t,n);if(l=a.selectAll("g.trace").data(v,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),tQ(r,l,t),f){o&&(s=o());var h=Ml.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){a.selectAll("g.trace").each(function(d,m){dD(r,m,t,d,v,this,i)})})}else l.each(function(d,m){dD(r,m,t,d,v,this,i)});u&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function tQ(e,r,t){r.each(function(n){var a=pv(Ml.select(this),"g","fills");Gn.setClipUrl(a,t.layerClipId,e);var i=n[0].trace,o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=a.selectAll("g").data(o,pD);l.enter().append("g"),l.exit().each(function(s){i[s]=null}).remove(),l.order().each(function(s){i[s]=pv(Ml.select(this),"path","js-fill")})})}function dD(e,r,t,n,a,i,o){var l=e._context.staticPlot,s;nQ(e,r,t,n,a);var u=!!o&&o.duration>0;function f(Qe){return u?Qe.transition():Qe}var v=t.xaxis,h=t.yaxis,d=n[0].trace,m=d.line,p=Ml.select(i),y=pv(p,"g","errorbars"),b=pv(p,"g","lines"),C=pv(p,"g","points"),x=pv(p,"g","text");if(QK.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(p).style("opacity",d.opacity);var _,A,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,D;k==="y"?(M=1,D=h.c2p(0,!0)):k==="x"&&(M=0,D=v.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=p;var z="",F=[],I=d._prevtrace,W=null,B=null;I&&(z=I._prevRevpath||"",A=I._nextFill,F=I._ownPolygons,W=I._fillsegments,B=I._fillElement);var X,G,re="",ne="",K,ee,fe,he,De,Ne,Fe=[];d._polygons=[];var Xe=[],Le=[],rr=bh.noop;if(_=d._ownFill,gv.hasLines(d)||d.fill!=="none"){A&&A.datum(n),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(K=Gn.steps(m.shape),ee=Gn.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?K=ee=function(Qe){var pr=Qe[Qe.length-1];return Qe.length>1&&Qe[0][0]===pr[0]&&Qe[0][1]===pr[1]?Gn.smoothclosed(Qe.slice(1),m.smoothing):Gn.smoothopen(Qe,m.smoothing)}:K=ee=function(Qe){return"M"+Qe.join("L")},fe=function(Qe){return ee(Qe.reverse())},Le=eQ(n,{xaxis:v,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Xe=new Array(Le.length);var se=0;for(s=0;s=l[0]&&p.x<=l[1]&&p.y>=s[0]&&p.y<=s[1]}),h=Math.ceil(v.length/f),d=0;a.forEach(function(p,y){var b=p[0].trace;gv.hasMarkers(b)&&b.marker.maxdisplayed>0&&y{"use strict";yD.exports={container:"marker",min:"cmin",max:"cmax"}});var _D=te((Oce,bD)=>{"use strict";var om=Dn();bD.exports=function(r,t,n){var a={},i={_fullLayout:n},o=om.getFromTrace(i,t,"x"),l=om.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),a.xLabel=om.tickText(o,o.c2l(s),!0).text,a.yLabel=om.tickText(l,l.c2l(u),!0).text,a}});var _h=te((Uce,xD)=>{"use strict";var zb=kt(),mv=fn(),aQ=dt();function iQ(e){var r=zb.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=zb.select(this),a=t.trace||t[0].trace;Nb(n,a,e)}),r.selectAll("g.text").each(function(t){var n=zb.select(this),a=t.trace||t[0].trace;Fb(n,a,e)}),r.selectAll("g.trace path.js-line").call(mv.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(mv.fillGroupStyle,e,!1),aQ.getComponentMethod("errorbars","style")(r)}function Nb(e,r,t){mv.pointStyle(e.selectAll("path.point"),r,t)}function Fb(e,r,t){mv.textPointStyle(e.selectAll("text"),r,t)}function oQ(e,r,t){var n=r[0].trace;n.selectedpoints?(mv.selectedPointStyle(t.selectAll("path.point"),n),mv.selectedTextStyle(t.selectAll("text"),n)):(Nb(t,n,e),Fb(t,n,e))}xD.exports={style:iQ,stylePoints:Nb,styleText:Fb,styleOnSelect:oQ}});var Ib=te((Yce,wD)=>{"use strict";var yv=Pt(),lQ=Qa();wD.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&yv.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return a=i&&yv.opacity(i)?i:o&&yv.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",a?yv.opacity(a)<.3?yv.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&yv.opacity(n)&&lQ.hasLines(r)&&r.line.width?n:r.fillcolor)}});var TD=te((Gce,AD)=>{"use strict";var lm=gr(),MD=ss(),sQ=dt(),uQ=Ib(),Hb=Pt(),fQ=lm.fillText;AD.exports=function(r,t,n,a){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(n),v=[u,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,m=!!o.xperiodalignment,p=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(ne){if(m){var K=l.c2p(ne.xStart),ee=l.c2p(ne.xEnd);return u>=Math.min(K,ee)&&u<=Math.max(K,ee)?0:1/0}var fe=Math.max(3,ne.mrc||0),he=1-1/fe,De=Math.abs(l.c2p(ne.x)-u);return De=Math.min(K,ee)&&f<=Math.max(K,ee)?0:1/0}var fe=Math.max(3,ne.mrc||0),he=1-1/fe,De=Math.abs(s.c2p(ne.y)-f);return DeFe!=U>=Fe&&(ye=rr[Le-1][0],we=rr[Le][0],U-pe&&(se=ye+(we-ye)*(Fe-pe)/(U-pe),fe=Math.min(fe,se),he=Math.max(he,se)));return fe=Math.max(fe,0),he=Math.min(he,l._length),{x0:fe,x1:he,y0:Fe,y1:Fe}}if(h.indexOf("fills")!==-1&&o._fillElement){var X=W(o._fillElement)&&!W(o._fillExclusionElement);if(X){var G=B(o._polygons);G===null&&(G={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var re=Hb.defaultLine;return Hb.opacity(o.fillcolor)?re=o.fillcolor:Hb.opacity((o.line||{}).color)&&(re=o.line.color),lm.extendFlat(r,{distance:r.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:re,hovertemplate:!1}),delete r.index,o.text&&!lm.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var CD=te((Vce,SD)=>{"use strict";var kD=Qa();SD.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l=n[0].trace,s,u,f,v,h=!kD.hasMarkers(l)&&!kD.hasText(l);if(h)return[];if(t===!1)for(s=0;s{"use strict";LD.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var RD=te((Zce,PD)=>{"use strict";var xh=dt().traceIs,Bb=s3();PD.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var i=n("type",(a.splomStash||{}).type);i==="-"&&(cQ(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function cQ(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var i=vQ(r,t,n);if(i){if(i.type==="histogram"&&n==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=n+"calendar",l=i[o],s={noMultiCategory:!xh(i,"cartesian")||xh(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&n==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,ED(i,n)){var u=DD(i),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(ED(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function DD(e){return{v:"x",h:"y"}[e.orientation||"v"]}function ED(e,r){var t=DD(e),n=xh(e,"box-violin"),a=xh(e._fullInput||{},"candlestick");return n&&!a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var ND=te((Xce,zD)=>{"use strict";var hQ=ji().isTypedArraySpec;function dQ(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,i,o;if(r.axData)a=r.axData;else for(a=[],i=0;i0||hQ(i),l;o&&(l="array");var s=n("categoryorder",l),u;s==="array"&&(u=n("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=dQ(t,a).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var HD=te((jce,ID)=>{"use strict";var FD=Jl().mix,pQ=cl(),gQ=gr();ID.exports=function(r,t,n,a){a=a||{};var i=a.dfltColor;function o(D,z){return gQ.coerce2(r,t,a.attributes,D,z)}var l=o("linecolor",i),s=o("linewidth"),u=n("showline",a.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=FD(i,a.bgColor,a.blend||pQ.lightFraction).toRgbString(),v=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),m=n("showgrid",a.showGrid||!!v||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var p=FD(t.gridcolor,a.bgColor,67).toRgbString(),y=o("minor.gridcolor",p),b=o("minor.gridwidth",t.gridwidth||1),C=o("minor.griddash",t.griddash||"solid"),x=n("minor.showgrid",!!y||!!b||!!C);x||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var _=o("zerolinelayer"),A=o("zerolinecolor",i),k=o("zerolinewidth"),M=n("zeroline",a.showGrid||!!A||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var Ub=te((Jce,VD)=>{"use strict";var BD=Ut(),mQ=dt(),wh=gr(),yQ=bn(),bQ=gl(),Ob=pl(),OD=E2(),UD=R2(),_Q=F2(),xQ=I2(),wQ=ND(),MQ=HD(),AQ=C3(),YD=pp(),sm=Pa().WEEKDAY_PATTERN,TQ=Pa().HOUR_PATTERN;VD.exports=function(r,t,n,a,i){var o=a.letter,l=a.font||{},s=a.splomStash||{},u=n("visible",!a.visibleDflt),f=t._template||{},v=t.type||f.type||"-",h;if(v==="date"){var d=mQ.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",a.calendar),a.noTicklabelmode||(h=n("ticklabelmode"))}!a.noTicklabelindex&&(v==="date"||v==="linear")&&n("ticklabelindex");var m="";(!a.noTicklabelposition||v==="multicategory")&&(m=wh.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),YD(t,i),AQ(r,t,n,a),wQ(r,t,n,a),a.noHover||(v!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var p=n("color"),y=p!==Ob.color.dflt?p:l.color,b=s.label||i._dfltTitle[o];if(xQ(r,t,n,v,a),!u)return t;n("title.text",b),wh.coerceFont(n,"title.font",l,{overrideDflt:{size:wh.bigFont(l.size),color:y}}),OD(r,t,n,v);var C=a.hasMinor;if(C&&(yQ.newContainer(t,"minor"),OD(r,t,n,v,{isMinor:!0})),_Q(r,t,n,v,a),UD(r,t,n,a),C){var x=a.isMinor;a.isMinor=!0,UD(r,t,n,a),a.isMinor=x}MQ(r,t,n,{dfltColor:p,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:C,attributes:Ob}),C&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var _=v==="multicategory";if(!a.noTickson&&(v==="category"||_)&&(t.ticks||t.showgrid)&&(_?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),_){var A=n("showdividers");A&&(n("dividercolor"),n("dividerwidth"))}if(v==="date")if(bQ(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:kQ}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=GD(i[l]),s){o=sm;break}}var u=n("pattern",o);if(u===sm)for(l=0;l<2;l++)s=GD(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case sm:if(!BD(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case TQ:if(!BD(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var CQ=Ut(),um=gr();WD.exports=function(r,t,n,a){var i=a.counterAxes||[],o=a.overlayableAxes||[],l=a.letter,s=a.grid,u=a.overlayingDomain,f,v,h,d,m,p;s&&(v=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],v&&(h=s[l+"side"].split(" ")[0],d=s.domain[l][h==="right"||h==="top"?1:0])),v=v||[0,1],f=f||(CQ(r.position)?"free":i[0]||"free"),h=h||(l==="x"?"bottom":"left"),d=d||0,m=0,p=!1;var y=um.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=um.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(l==="y"){var C=n("autoshift");C&&(d=b==="left"?u[0]:u[1],p=t.automargin?t.automargin:!0,m=b==="left"?-3:3),n("shift",m)}n("position",d)}n("automargin",p);var x=!1;if(o.length&&(x=um.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!x){var _=n("domain",v);_[0]>_[1]-1/4096&&(t.domain=v),um.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var rE=te((Kce,eE)=>{"use strict";var qc=gr(),ZD=Pt(),LQ=Vu().isUnifiedHover,qQ=r5(),XD=bn(),DQ=A0(),jD=pl(),EQ=RD(),JD=Ub(),PQ=B1(),$D=Yb(),Vb=ua(),hs=Vb.id2name,KD=Vb.name2id,RQ=Pa().AX_ID_PATTERN,QD=dt(),fm=QD.traceIs,Gb=QD.getComponentMethod;function cm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}eE.exports=function(r,t,n){var a=t.autotypenumbers,i={},o={},l={},s={},u={},f={},v={},h={},d={},m={},p,y;for(p=0;p{"use strict";var zQ=kt(),tE=dt(),vm=gr(),to=fn(),hm=Dn();nE.exports=function(r,t,n,a){var i=r._fullLayout;if(t.length===0){hm.redrawComponents(r);return}function o(y){var b=y.xaxis,C=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(to.setTranslate,0,0).call(to.setScale,1,1),y.plot.call(to.setTranslate,b._offset,C._offset).call(to.setScale,1,1);var x=y.plot.selectAll(".scatterlayer .trace");x.selectAll(".point").call(to.setPointGroupScale,1,1),x.selectAll(".textpoint").call(to.setTextPointsScale,1,1),x.call(to.hideOutsideRangePoints,y)}function l(y,b){var C=y.plotinfo,x=C.xaxis,_=C.yaxis,A=x._length,k=_._length,M=!!y.xr1,D=!!y.yr1,z=[];if(M){var F=vm.simpleMap(y.xr0,x.r2l),I=vm.simpleMap(y.xr1,x.r2l),W=F[1]-F[0],B=I[1]-I[0];z[0]=(F[0]*(1-b)+b*I[0]-F[0])/(F[1]-F[0])*A,z[2]=A*(1-b+b*B/W),x.range[0]=x.l2r(F[0]*(1-b)+b*I[0]),x.range[1]=x.l2r(F[1]*(1-b)+b*I[1])}else z[0]=0,z[2]=A;if(D){var X=vm.simpleMap(y.yr0,_.r2l),G=vm.simpleMap(y.yr1,_.r2l),re=X[1]-X[0],ne=G[1]-G[0];z[1]=(X[1]*(1-b)+b*G[1]-X[1])/(X[0]-X[1])*k,z[3]=k*(1-b+b*ne/re),_.range[0]=x.l2r(X[0]*(1-b)+b*G[0]),_.range[1]=_.l2r(X[1]*(1-b)+b*G[1])}else z[1]=0,z[3]=k;hm.drawOne(r,x,{skipTitle:!0}),hm.drawOne(r,_,{skipTitle:!0}),hm.redrawComponents(r,[x._id,_._id]);var K=M?A/z[2]:1,ee=D?k/z[3]:1,fe=M?z[0]:0,he=D?z[1]:0,De=M?z[0]/z[2]*A:0,Ne=D?z[1]/z[3]*k:0,Fe=x._offset-De,Xe=_._offset-Ne;C.clipRect.call(to.setTranslate,fe,he).call(to.setScale,1/K,1/ee),C.plot.call(to.setTranslate,Fe,Xe).call(to.setScale,K,ee),to.setPointGroupScale(C.zoomScalePts,1/K,1/ee),to.setTextPointsScale(C.zoomScaleTxt,1/K,1/ee)}var s;a&&(s=a());function u(){for(var y={},b=0;bn.duration?(u(),d=window.cancelAnimationFrame(p)):d=window.requestAnimationFrame(p)}return v=Date.now(),d=window.requestAnimationFrame(p),Promise.resolve()}});var Wb=te(Ua=>{"use strict";var pm=kt(),iE=dt(),Dc=gr(),NQ=fa(),FQ=fn(),oE=y1().getModuleCalcData,lf=ua(),Al=Pa(),IQ=lc(),$t=Dc.ensureSingle;function dm(e,r,t){return Dc.ensureSingle(e,r,t,function(n){n.datum(t)})}var Ec=Al.zindexSeparator;Ua.name="cartesian";Ua.attr=["xaxis","yaxis"];Ua.idRoot=["x","y"];Ua.idRegex=Al.idRegex;Ua.attrRegex=Al.attrRegex;Ua.attributes=qD();Ua.layoutAttributes=pl();Ua.supplyLayoutDefaults=rE();Ua.transitionAxes=aE();Ua.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,v;for(u=0;u0){var d=h.id;if(d.indexOf(Ec)!==-1)continue;d+=Ec+(u+1),h=Dc.extendFlat({},h,{id:d,plot:a._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],p,y=0;y1&&(A+=Ec+_),x.push(l+A),o=0;o1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=$t(n,"path","xlines-above"),r.ylines=$t(n,"path","ylines-above"),r.xaxislayer=$t(n,"g","xaxislayer-above"),r.yaxislayer=$t(n,"g","yaxislayer-above");else{if(!o){var h=$t(n,"g","layer-subplot");r.shapelayer=$t(h,"g","shapelayer"),r.imagelayer=$t(h,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=$t(n,"g","minor-gridlayer"),r.gridlayer=$t(n,"g","gridlayer"),r.zerolinelayer=$t(n,"g","zerolinelayer"));var d=$t(n,"g","layer-between");r.shapelayerBetween=$t(d,"g","shapelayer"),r.imagelayerBetween=$t(d,"g","imagelayer"),$t(n,"path","xlines-below"),$t(n,"path","ylines-below"),r.overlinesBelow=$t(n,"g","overlines-below"),$t(n,"g","xaxislayer-below"),$t(n,"g","yaxislayer-below"),r.overaxesBelow=$t(n,"g","overaxes-below")}r.overplot=$t(n,"g","overplot"),r.plot=$t(r.overplot,"g",a),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=$t(n,"g","zerolinelayer-above"),o||(r.xlines=$t(n,"path","xlines-above"),r.ylines=$t(n,"path","ylines-above"),r.overlinesAbove=$t(n,"g","overlines-above"),$t(n,"g","xaxislayer-above"),$t(n,"g","yaxislayer-above"),r.overaxesAbove=$t(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+s),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+s))}else{var m=v.plotgroup,p=a+"-x",y=a+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,$t(v.overlinesBelow,"path",p),$t(v.overlinesBelow,"path",y),$t(v.overaxesBelow,"g",p),$t(v.overaxesBelow,"g",y),r.plot=$t(v.overplot,"g",a),$t(v.overlinesAbove,"path",p),$t(v.overlinesAbove,"path",y),$t(v.overaxesAbove,"g",p),$t(v.overaxesAbove,"g",y),r.xlines=m.select(".overlines-"+l).select("."+p),r.ylines=m.select(".overlines-"+s).select("."+y),r.xaxislayer=m.select(".overaxes-"+l).select("."+p),r.yaxislayer=m.select(".overaxes-"+s).select("."+y)}o||(u||(dm(r.minorGridlayer,"g",r.xaxis._id),dm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(lf.idSort),dm(r.gridlayer,"g",r.xaxis._id),dm(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(lf.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function uE(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=pm.select(this);f.remove(),fE(u,r),t[u]=!0});for(var n in r._plots)for(var a=r._plots[n],i=a.overlays||[],o=0;o{"use strict";var gm=Qa();cE.exports={hasLines:gm.hasLines,hasMarkers:gm.hasMarkers,hasText:gm.hasText,isBubble:gm.isBubble,attributes:kc(),layoutAttributes:Yd(),supplyDefaults:Tq(),crossTraceDefaults:Lq(),supplyLayoutDefaults:Dq(),calc:rm().calc,crossTraceCalc:nD(),arraysToCalcdata:ph(),plot:mD(),colorbar:Rb(),formatLabels:_D(),style:_h().style,styleOnSelect:_h().styleOnSelect,hoverPoints:TD(),selectPoints:CD(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Wb(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var pE=te((t0e,dE)=>{"use strict";var BQ=kt(),OQ=Pt(),hE=Y5(),Zb=gr(),UQ=Zb.strScale,YQ=Zb.strRotate,GQ=Zb.strTranslate;dE.exports=function(r,t,n){var a=r.node(),i=hE[n.arrowhead||0],o=hE[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),s=(n.arrowwidth||1)*(n.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=i.backoff*l+n.standoff,h=o.backoff*s+n.startstandoff,d,m,p,y;if(a.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-m.x,C=d.y-m.y;if(p=Math.atan2(C,b),y=p+Math.PI,v&&h&&v+h>Math.sqrt(b*b+C*C)){X();return}if(v){if(v*v>b*b+C*C){X();return}var x=v*Math.cos(p),_=v*Math.sin(p);m.x+=x,m.y+=_,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>b*b+C*C){X();return}var A=h*Math.cos(p),k=h*Math.sin(p);d.x-=A,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(a.nodeName==="path"){var M=a.getTotalLength(),D="";if(M{"use strict";var gE=kt(),Xb=dt(),VQ=fa(),uf=gr(),jb=uf.strTranslate,Ah=Dn(),Pc=Pt(),ou=fn(),mE=ss(),Jb=ci(),$b=Ku(),Mh=To(),WQ=bn().arrayEditor,ZQ=pE();_E.exports={draw:XQ,drawOne:yE,drawRaw:bE};function XQ(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ze="right":Ze="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ze]}for(var pe=!1,U=["x","y"],Q=0;Q1)&&(Oe===ke?(Er=Ie.r2fraction(r["a"+$]),(Er<0||Er>1)&&(pe=!0)):pe=!0),pr=Ie._offset+Ie.r2p(r[$]),Ye=.5}else{var Ae=Nr==="domain";$==="x"?(Te=r[$],pr=Ae?Ie._offset+Ie._length*Te:pr=l.l+l.w*Te):(Te=1-r[$],pr=Ae?Ie._offset+Ie._length*Te:pr=l.t+l.h*Te),Ye=r.showarrow?.5:Te}if(r.showarrow){Qe.head=pr;var je=r["a"+$];if(Ar=or*we(.5,r.xanchor)-Ue*we(.5,r.yanchor),Oe===ke){var hr=Ah.getRefType(Oe);hr==="domain"?($==="y"&&(je=1-je),Qe.tail=Ie._offset+Ie._length*je):hr==="paper"?$==="y"?(je=1-je,Qe.tail=l.t+l.h*je):Qe.tail=l.l+l.w*je:Qe.tail=Ie._offset+Ie.r2p(je),dr=Ar}else Qe.tail=pr+je,dr=Ar+je;Qe.text=Qe.tail+Ar;var wr=o[$==="x"?"width":"height"];if(ke==="paper"&&(Qe.head=uf.constrain(Qe.head,1,wr-1)),Oe==="pixel"){var mr=-Math.max(Qe.tail-3,Qe.text),Tr=Math.min(Qe.tail+3,Qe.text)-wr;mr>0?(Qe.tail+=mr,Qe.text+=mr):Tr>0&&(Qe.tail-=Tr,Qe.text-=Tr)}Qe.tail+=cr,Qe.head+=cr}else Ar=tr*we(Ye,ur),dr=Ar,Qe.text=pr+Ar;Qe.text+=cr,Ar+=cr,dr+=cr,r["_"+$+"padplus"]=tr/2+dr,r["_"+$+"padminus"]=tr/2-dr,r["_"+$+"size"]=tr,r["_"+$+"shift"]=Ar}if(pe){M.remove();return}var Dr=0,Or=0;if(r.align!=="left"&&(Dr=(Le-Fe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Or=(rr-Xe)*(r.valign==="middle"?.5:1)),De)he.select("svg").attr({x:F+Dr-1,y:F+Or}).call(ou.setClipUrl,W?p:null,e);else{var Cr=F+Or-Ne.top,ar=F+Dr-Ne.left;re.call(Jb.positionText,ar,Cr).call(ou.setClipUrl,W?p:null,e)}B.select("rect").call(ou.setRect,F,F,Le,rr),I.call(ou.setRect,D/2,D/2,se-D,ye-D),M.call(ou.setTranslate,Math.round(y.x.text-se/2),Math.round(y.y.text-ye/2)),x.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var be=function($e,Ze){C.selectAll(".annotation-arrow-g").remove();var qr=y.x.head,Hr=y.y.head,Pr=y.x.tail+$e,lt=y.y.tail+Ze,xt=y.x.text+$e,Nt=y.y.text+Ze,Ht=uf.rotationXYMatrix(b,xt,Nt),An=uf.apply2DTransform(Ht),Tn=uf.apply2DTransform2(Ht),cn=+I.attr("width"),Ft=+I.attr("height"),jt=xt-.5*cn,en=jt+cn,Jt=Nt-.5*Ft,aa=Jt+Ft,rt=[[jt,Jt,jt,aa],[jt,aa,en,aa],[en,aa,en,Jt],[en,Jt,jt,Jt]].map(Tn);if(!rt.reduce(function(Bt,Bn){return Bt^!!uf.segmentsIntersect(qr,Hr,qr+1e6,Hr+1e6,Bn[0],Bn[1],Bn[2],Bn[3])},!1)){rt.forEach(function(Bt){var Bn=uf.segmentsIntersect(Pr,lt,qr,Hr,Bt[0],Bt[1],Bt[2],Bt[3]);Bn&&(Pr=Bn.x,lt=Bn.y)});var rn=r.arrowwidth,St=r.arrowcolor,dn=r.arrowside,pn=C.append("g").style({opacity:Pc.opacity(St)}).classed("annotation-arrow-g",!0),an=pn.append("path").attr("d","M"+Pr+","+lt+"L"+qr+","+Hr).style("stroke-width",rn+"px").call(Pc.stroke,Pc.rgb(St));if(ZQ(an,dn,r),s.annotationPosition&&an.node().parentNode&&!n){var vn=qr,da=Hr;if(r.standoff){var qn=Math.sqrt(Math.pow(qr-Pr,2)+Math.pow(Hr-lt,2));vn+=r.standoff*(Pr-qr)/qn,da+=r.standoff*(lt-Hr)/qn}var Na=pn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Pr-vn)+","+(lt-da),transform:jb(vn,da)}).style("stroke-width",rn+6+"px").call(Pc.stroke,"rgba(0,0,0,0)").call(Pc.fill,"rgba(0,0,0,0)"),pa,wn;Mh.init({element:Na.node(),gd:e,prepFn:function(){var Bt=ou.getTranslate(M);pa=Bt.x,wn=Bt.y,a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(Bt,Bn){var pi=An(pa,wn),io=pi[0]+Bt,gi=pi[1]+Bn;M.call(ou.setTranslate,io,gi),d("x",sf(a,Bt,"x",l,r)),d("y",sf(i,Bn,"y",l,r)),r.axref===r.xref&&d("ax",sf(a,Bt,"ax",l,r)),r.ayref===r.yref&&d("ay",sf(i,Bn,"ay",l,r)),pn.attr("transform",jb(Bt,Bn)),x.attr({transform:"rotate("+b+","+io+","+gi+")"})},doneFn:function(){Xb.call("_guiRelayout",e,m());var Bt=document.querySelector(".js-notes-box-panel");Bt&&Bt.redraw(Bt.selectedObj)}})}}};if(r.showarrow&&be(0,0),_){var Se;Mh.init({element:M.node(),gd:e,prepFn:function(){Se=x.attr("transform")},moveFn:function($e,Ze){var qr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",sf(a,$e,"ax",l,r)):d("ax",r.ax+$e),r.ayref===r.yref?d("ay",sf(i,Ze,"ay",l.w,r)):d("ay",r.ay+Ze),be($e,Ze);else{if(n)return;var Hr,Pr;if(a)Hr=sf(a,$e,"x",l,r);else{var lt=r._xsize/l.w,xt=r.x+(r._xshift-r.xshift)/l.w-lt/2;Hr=Mh.align(xt+$e/l.w,lt,0,1,r.xanchor)}if(i)Pr=sf(i,Ze,"y",l,r);else{var Nt=r._ysize/l.h,Ht=r.y-(r._yshift+r.yshift)/l.h-Nt/2;Pr=Mh.align(Ht-Ze/l.h,Nt,0,1,r.yanchor)}d("x",Hr),d("y",Pr),(!a||!i)&&(qr=Mh.getCursor(a?.5:Hr,i?.5:Pr,r.xanchor,r.yanchor))}x.attr({transform:jb($e,Ze)+Se}),$b(M,qr)},clickFn:function($e,Ze){r.captureevents&&e.emit("plotly_clickannotation",k(Ze))},doneFn:function(){$b(M),Xb.call("_guiRelayout",e,m());var $e=document.querySelector(".js-notes-box-panel");$e&&$e.redraw($e.selectedObj)}})}}s.annotationText?re.call(Jb.makeEditable,{delegate:M,gd:e}).call(ne).on("edit",function(ee){r.text=ee,this.call(ne),d("text",ee),a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),Xb.call("_guiRelayout",e,m())}):re.call(ne)}});var kE=te((a0e,TE)=>{"use strict";var xE=gr(),jQ=dt(),wE=bn().arrayEditor;TE.exports={hasClickToShow:JQ,onClick:$Q};function JQ(e,r){var t=AE(e,r);return t.on.length>0||t.explicitOff.length>0}function $Q(e,r){var t=AE(e,r),n=t.on,a=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(n.length||a.length){for(l=0;l{"use strict";var Kb=gr(),bv=Pt();SE.exports=function(r,t,n,a){a("opacity");var i=a("bgcolor"),o=a("bordercolor"),l=bv.opacity(o);a("borderpad");var s=a("borderwidth"),u=a("showarrow");a("text",u?" ":n._dfltTitle.annotation),a("textangle"),Kb.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),u){var v=a("arrowside"),h,d;v.indexOf("end")!==-1&&(h=a("arrowhead"),d=a("arrowsize")),v.indexOf("start")!==-1&&(a("startarrowhead",h),a("startarrowsize",d)),a("arrowcolor",l?t.bordercolor:bv.defaultLine),a("arrowwidth",(l&&s||1)*2),a("standoff"),a("startstandoff")}var m=a("hovertext"),p=n.hoverlabel||{};if(m){var y=a("hoverlabel.bgcolor",p.bgcolor||(bv.opacity(i)?bv.rgb(i):bv.defaultLine)),b=a("hoverlabel.bordercolor",p.bordercolor||bv.contrast(y)),C=Kb.extendFlat({},p.font);C.color||(C.color=b),Kb.coerceFont(a,"hoverlabel.font",C)}a("captureevents",!!m)}});var LE=te((o0e,CE)=>{"use strict";var e4=gr(),Rc=Dn(),KQ=gl(),QQ=Qb(),eee=fv();CE.exports=function(r,t){KQ(r,t,{name:"annotations",handleItemDefaults:ree})};function ree(e,r,t){function n(x,_){return e4.coerce(e,r,eee,x,_)}var a=n("visible"),i=n("clicktoshow");if(a||i){QQ(e,r,t,n);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var v=l[f],h=Rc.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Rc.getFromId(u,h);d._annIndices.push(r._index)}if(Rc.coercePosition(r,u,n,h,v,.5),o){var m="a"+v,p=Rc.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);p!=="pixel"&&p!==h&&(p=r[m]="pixel");var y=p==="pixel"?s[f]:.4;Rc.coercePosition(r,u,n,p,m,y)}n(v+"anchor"),n(v+"shift")}if(e4.noneOrAll(e,r,["x","y"]),o&&e4.noneOrAll(e,r,["ax","ay"]),i){var b=n("xclick"),C=n("yclick");r._xclick=b===void 0?r.x:Rc.cleanPosition(b,u,r.xref),r._yclick=C===void 0?r.y:Rc.cleanPosition(C,u,r.yref)}}}});var EE=te((l0e,DE)=>{"use strict";var r4=gr(),zc=Dn(),tee=mm().draw;DE.exports=function(r){var t=r._fullLayout,n=r4.filterVisible(t.annotations);if(n.length&&r._fullData.length)return r4.syncOrAsync([tee,nee],r)};function nee(e){var r=e._fullLayout;r4.filterVisible(r.annotations).forEach(function(t){var n=zc.getFromId(e,t.xref),a=zc.getFromId(e,t.yref),i=zc.getRefType(t.xref),o=zc.getRefType(t.yref);t._extremes={},i==="range"&&qE(t,n),o==="range"&&qE(t,a)})}function qE(e,r){var t=r._id,n=t.charAt(0),a=e[n],i=e["a"+n],o=e[n+"ref"],l=e["a"+n+"ref"],s=e["_"+n+"padplus"],u=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],v=3*e.arrowsize*e.arrowwidth||0,h=v+f,d=v-f,m=3*e.startarrowsize*e.arrowwidth||0,p=m+f,y=m-f,b;if(l===o){var C=zc.findExtremes(r,[r.r2c(a)],{ppadplus:h,ppadminus:d}),x=zc.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,p),ppadminus:Math.max(u,y)});b={min:[C.min[0],x.min[0]],max:[C.max[0],x.max[0]]}}else p=i?p+i:p,y=i?y-i:y,b=zc.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(s,h,p),ppadminus:Math.max(u,d,y)});e._extremes[t]=b}});var RE=te((s0e,PE)=>{"use strict";var aee=Ut(),iee=ud();PE.exports=function(r,t,n,a){t=t||{};var i=n==="log"&&t.type==="linear",o=n==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function v(d){var m=u[d],p=null;i?p=iee(m,t.range):p=Math.pow(10,m),aee(p)||(p=null),a(f+d,p)}for(var h=0;h{"use strict";var t4=mm(),zE=kE();NE.exports={moduleType:"component",name:"annotations",layoutAttributes:fv(),supplyLayoutDefaults:LE(),includeBasePlot:nh()("annotations"),calcAutorange:EE(),draw:t4.draw,drawOne:t4.drawOne,drawRaw:t4.drawRaw,hasClickToShow:zE.hasClickToShow,onClick:zE.onClick,convertCoords:RE()}});var ym=te((f0e,IE)=>{"use strict";var xn=fv(),oee=_o().overrideAll,lee=bn().templatedArray;IE.exports=oee(lee("annotation",{visible:xn.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:xn.xanchor,xshift:xn.xshift,yanchor:xn.yanchor,yshift:xn.yshift,text:xn.text,textangle:xn.textangle,font:xn.font,width:xn.width,height:xn.height,opacity:xn.opacity,align:xn.align,valign:xn.valign,bgcolor:xn.bgcolor,bordercolor:xn.bordercolor,borderpad:xn.borderpad,borderwidth:xn.borderwidth,showarrow:xn.showarrow,arrowcolor:xn.arrowcolor,arrowhead:xn.arrowhead,startarrowhead:xn.startarrowhead,arrowside:xn.arrowside,arrowsize:xn.arrowsize,startarrowsize:xn.startarrowsize,arrowwidth:xn.arrowwidth,standoff:xn.standoff,startstandoff:xn.startstandoff,hovertext:xn.hovertext,hoverlabel:xn.hoverlabel,captureevents:xn.captureevents}),"calc","from-root")});var BE=te((c0e,HE)=>{"use strict";var n4=gr(),see=Dn(),uee=gl(),fee=Qb(),cee=ym();HE.exports=function(r,t,n){uee(r,t,{name:"annotations",handleItemDefaults:vee,fullLayout:n.fullLayout})};function vee(e,r,t,n){function a(l,s){return n4.coerce(e,r,cee,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],see.coercePosition(r,u,a,l,l,.5)}var o=a("visible");o&&(fee(e,r,n.fullLayout,a),i("x"),i("y"),i("z"),n4.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),n4.noneOrAll(e,r,["ax","ay"])))}});var GE=te((v0e,YE)=>{"use strict";var OE=gr(),UE=Dn();YE.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function a4(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function dee(e,r){var t=a4(e.projection,a4(e.view,a4(e.model,[r[0],r[1],r[2],1])));return t}VE.exports=dee});var XE=te((d0e,ZE)=>{"use strict";var pee=mm().drawRaw,gee=WE(),mee=["x","y","z"];ZE.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=gee(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*n[0],t.yaxis.r2l(o.y)*n[1],t.zaxis.r2l(o.z)*n[2]]),pee(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var $E=te((p0e,JE)=>{"use strict";var yee=dt(),jE=gr();JE.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:ym()}}},layoutAttributes:ym(),handleDefaults:BE(),includeBasePlot:bee,convert:GE(),draw:XE()};function bee(e,r){var t=yee.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),i=0;i{"use strict";var KE=fv(),QE=$a(),eP=kc().line,_ee=Kl().dash,Tl=la().extendFlat,xee=bn().templatedArray,g0e=th(),_v=bo(),wee=Vs().shapeTexttemplateAttrs,Mee=_d();rP.exports=xee("shape",{visible:Tl({},_v.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Tl({},_v.legend,{editType:"calc+arraydraw"}),legendgroup:Tl({},_v.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Tl({},_v.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:QE({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Tl({},_v.legendrank,{editType:"calc+arraydraw"}),legendwidth:Tl({},_v.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Tl({},KE.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Tl({},KE.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Tl({},eP.color,{editType:"arraydraw"}),width:Tl({},eP.width,{editType:"calc+arraydraw"}),dash:Tl({},_ee,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:wee({},{keys:Object.keys(Mee)}),font:QE({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var aP=te((y0e,nP)=>{"use strict";var Th=gr(),xv=Dn(),Aee=gl(),Tee=i4(),tP=rf();nP.exports=function(r,t){Aee(r,t,{name:"shapes",handleItemDefaults:See})};function kee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function See(e,r,t){function n(ee,fe){return Th.coerce(e,r,Tee,ee,fe)}r._isShape=!0;var a=n("visible");if(a){var i=n("showlegend");i&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),Th.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),l=o?"path":"rect",s=n("type",l),u=s!=="path";u&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));for(var v=n("xsizemode"),h=n("ysizemode"),d=["x","y"],m=0;m<2;m++){var p=d[m],y=p+"anchor",b=p==="x"?v:h,C={_fullLayout:t},x,_,A,k=xv.coerceRef(e,r,C,p,void 0,"paper"),M=xv.getRefType(k);if(M==="range"?(x=xv.getFromId(C,k),x._shapeIndices.push(r._index),A=tP.rangeToShapePosition(x),_=tP.shapePositionToRange(x),(x.type==="category"||x.type==="multicategory")&&(n(p+"0shift"),n(p+"1shift"))):_=A=Th.identity,u){var D=.25,z=.75,F=p+"0",I=p+"1",W=e[F],B=e[I];e[F]=_(e[F],!0),e[I]=_(e[I],!0),b==="pixel"?(n(F,0),n(I,10)):(xv.coercePosition(r,C,n,k,F,D),xv.coercePosition(r,C,n,k,I,z)),r[F]=A(r[F]),r[I]=A(r[I]),e[F]=W,e[I]=B}if(b==="pixel"){var X=e[y];e[y]=_(e[y],!0),xv.coercePosition(r,C,n,k,y,.25),r[y]=A(r[y]),e[y]=X}}u&&Th.noneOrAll(e,r,["x0","x1","y0","y1"]);var G=s==="line",re,ne;if(u&&(re=n("label.texttemplate")),re||(ne=n("label.text")),ne||re){n("label.textangle");var K=n("label.textposition",G?"middle":"middle center");n("label.xanchor"),n("label.yanchor",kee(G,K)),n("label.padding"),Th.coerceFont(n,"label.font",t.font)}}}});var lP=te((b0e,oP)=>{"use strict";var Cee=Pt(),iP=gr();function Lee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}oP.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),iP.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var i=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",Cee.contrast(i)),n("newshape.line.dash")}var o=r.dragmode==="drawline",l=n("newshape.label.text"),s=n("newshape.label.texttemplate");if(l||s){n("newshape.label.textangle");var u=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",Lee(o,u)),n("newshape.label.padding"),iP.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var vP=te((_0e,cP)=>{"use strict";var o4=gr(),wv=Dn(),Mv=N1(),uP=rf();cP.exports=function(r){var t=r._fullLayout,n=o4.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a0?u+o:o;return{ppad:o,ppadplus:l?v:h,ppadminus:l?h:v}}else return{ppad:o}}function sP(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(i=r[n+"0"],o=r[n+"1"],a&&(l=r[n+"0shift"],s=r[n+"1shift"])):(i=r[n+"anchor"],o=r[n+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var v=1/0,h=-1/0,d=r.path.match(Mv.segmentRE),m,p,y,b,C;for(e.type==="date"&&(u=uP.decodeDate(u)),m=0;mh&&(h=C)));if(h>=v)return[v,h]}}});var pP=te((x0e,dP)=>{"use strict";var hP=lg();dP.exports={moduleType:"component",name:"shapes",layoutAttributes:i4(),supplyLayoutDefaults:aP(),supplyDrawNewShapeDefaults:lP(),includeBasePlot:nh()("shapes"),calcAutorange:vP(),draw:hP.draw,drawOne:hP.drawOne}});var l4=te((M0e,mP)=>{"use strict";var gP=Pa(),Eee=bn().templatedArray,w0e=th();mP.exports=Eee("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",gP.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",gP.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var bP=te((A0e,yP)=>{"use strict";var Pee=gr(),s4=Dn(),Ree=gl(),zee=l4(),Nee="images";yP.exports=function(r,t){var n={name:Nee,handleItemDefaults:Fee};Ree(r,t,n)};function Fee(e,r,t){function n(h,d){return Pee.coerce(e,r,zee,h,d)}var a=n("source"),i=n("visible",!!a);if(!i)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=s4.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var v=s4.getFromId(o,f);v._imgIndices.push(r._index)}s4.coercePosition(r,o,n,f,u,0)}return r}});var MP=te((T0e,wP)=>{"use strict";var _P=kt(),Iee=fn(),Av=Dn(),xP=ua(),Hee=lc();wP.exports=function(r){var t=r._fullLayout,n=[],a={},i=[],o,l;for(l=0;l{"use strict";var AP=Ut(),Bee=ud();TP.exports=function(r,t,n,a){t=t||{};var i=n==="log"&&t.type==="linear",o=n==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,v=0;v{"use strict";SP.exports={moduleType:"component",name:"images",layoutAttributes:l4(),supplyLayoutDefaults:bP(),includeBasePlot:nh()("images"),draw:MP(),convertCoords:kP()}});var bm=te((C0e,LP)=>{"use strict";LP.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var u4=te((L0e,DP)=>{"use strict";var Oee=$a(),Uee=cl(),Yee=la().extendFlat,Gee=_o().overrideAll,Vee=xd(),qP=bn().templatedArray,Wee=qP("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});DP.exports=Gee(qP("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Wee,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Yee(Vee({editType:"arraydraw"}),{}),font:Oee({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Uee.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var zP=te((q0e,RP)=>{"use strict";var _m=gr(),EP=gl(),PP=u4(),Zee=bm(),Xee=Zee.name,jee=PP.buttons;RP.exports=function(r,t){var n={name:Xee,handleItemDefaults:Jee};EP(r,t,n)};function Jee(e,r,t){function n(o,l){return _m.coerce(e,r,PP,o,l)}var a=EP(e,r,{name:"buttons",handleItemDefaults:$ee}),i=n("visible",a.length>0);i&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),_m.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),_m.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function $ee(e,r){function t(a,i){return _m.coerce(e,r,jee,a,i)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var IP=te((D0e,FP)=>{"use strict";FP.exports=zn;var kl=kt(),NP=Pt(),Tv=fn(),xm=gr();function zn(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}zn.barWidth=2;zn.barLength=20;zn.barRadius=2;zn.barPad=1;zn.barColor="#808BA4";zn.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,i=a.width,o=a.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,v=this.position.direction,h=v==="down",d=v==="left",m=v==="right",p=v==="up",y=s,b=f,C,x,_,A;!h&&!d&&!m&&!p&&(this.position.direction="down",h=!0);var k=h||p;k?(C=l,x=C+y,h?(_=u,A=Math.min(_+b,o),b=A-_):(A=u+b,_=Math.max(A-b,0),b=A-_)):(_=u,A=_+b,d?(x=l+y,C=Math.max(x-y,0),y=x-C):(C=l,x=Math.min(C+y,i),y=x-C)),this._box={l:C,t:_,w:y,h:b};var M=s>y,D=zn.barLength+2*zn.barPad,z=zn.barWidth+2*zn.barPad,F=l,I=u+f;I+z>o&&(I=o-z);var W=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);W.exit().on(".drag",null).remove(),W.enter().append("rect").classed("scrollbar-horizontal",!0).call(NP.fill,zn.barColor),M?(this.hbar=W.attr({rx:zn.barRadius,ry:zn.barRadius,x:F,y:I,width:D,height:z}),this._hbarXMin=F+D/2,this._hbarTranslateMax=y-D):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var B=f>b,X=zn.barWidth+2*zn.barPad,G=zn.barLength+2*zn.barPad,re=l+s,ne=u;re+X>i&&(re=i-X);var K=this.container.selectAll("rect.scrollbar-vertical").data(B?[0]:[]);K.exit().on(".drag",null).remove(),K.enter().append("rect").classed("scrollbar-vertical",!0).call(NP.fill,zn.barColor),B?(this.vbar=K.attr({rx:zn.barRadius,ry:zn.barRadius,x:re,y:ne,width:X,height:G}),this._vbarYMin=ne+G/2,this._vbarTranslateMax=b-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ee=this.id,fe=C-.5,he=B?x+X+.5:x+.5,De=_-.5,Ne=M?A+z+.5:A+.5,Fe=a._topdefs.selectAll("#"+ee).data(M||B?[0]:[]);if(Fe.exit().remove(),Fe.enter().append("clipPath").attr("id",ee).append("rect"),M||B?(this._clipRect=Fe.select("rect").attr({x:Math.floor(fe),y:Math.floor(De),width:Math.ceil(he)-Math.floor(fe),height:Math.ceil(Ne)-Math.floor(De)}),this.container.call(Tv.setClipUrl,ee,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Tv.setClipUrl,null),delete this._clipRect),M||B){var Xe=kl.behavior.drag().on("dragstart",function(){kl.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Xe);var Le=kl.behavior.drag().on("dragstart",function(){kl.event.sourceEvent.preventDefault(),kl.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(Le),B&&this.vbar.on(".drag",null).call(Le)}this.setTranslate(t,n)};zn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Tv.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};zn.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=kl.event.dx),this.vbar&&(t-=kl.event.dy),this.setTranslate(r,t)};zn.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=kl.event.deltaY),this.vbar&&(t+=kl.event.deltaY),this.setTranslate(r,t)};zn.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,i=xm.constrain(kl.event.x,n,a),o=(i-n)/(a-n),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=xm.constrain(kl.event.y,s,u),v=(f-s)/(u-s),h=this.position.h-this._box.h;t=v*h}this.setTranslate(r,t)};zn.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=xm.constrain(r||0,0,n),t=xm.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Tv.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/n;this.hbar.call(Tv.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/a;this.vbar.call(Tv.setTranslate,r,t+o*this._vbarTranslateMax)}}});var XP=te((E0e,ZP)=>{"use strict";var kv=kt(),kh=fa(),Sh=Pt(),Sv=fn(),no=gr(),wm=ci(),Kee=bn().arrayEditor,BP=Ka().LINE_SPACING,ct=bm(),Qee=IP();ZP.exports=function(r){var t=r._fullLayout,n=no.filterVisible(t[ct.name]);function a(h){kh.autoMargin(r,VP(h))}var i=t._menulayer.selectAll("g."+ct.containerClassName).data(n.length>0?[0]:[]);if(i.enter().append("g").classed(ct.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){kv.select(this).selectAll("g."+ct.headerGroupClassName).each(a)}).remove(),n.length!==0){var o=i.selectAll("g."+ct.headerGroupClassName).data(n,ere);o.enter().append("g").classed(ct.headerGroupClassName,!0);for(var l=no.ensureSingle(i,"g",ct.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var lre=bm();jP.exports={moduleType:"component",name:lre.name,layoutAttributes:u4(),supplyLayoutDefaults:zP(),draw:XP()}});var Lh=te((R0e,$P)=>{"use strict";$P.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var h4=te((z0e,eR)=>{"use strict";var KP=$a(),sre=xd(),ure=la().extendDeepAll,fre=_o().overrideAll,cre=l1(),QP=bn().templatedArray,Nc=Lh(),vre=QP("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});eR.exports=fre(QP("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:vre,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:ure(sre({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:cre.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:KP({})},font:KP({}),activebgcolor:{valType:"color",dflt:Nc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Nc.railBgColor},bordercolor:{valType:"color",dflt:Nc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Nc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Nc.tickLength},tickcolor:{valType:"color",dflt:Nc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Nc.minorTickLength}}),"arraydraw","from-root")});var aR=te((N0e,nR)=>{"use strict";var Cv=gr(),rR=gl(),tR=h4(),hre=Lh(),dre=hre.name,pre=tR.steps;nR.exports=function(r,t){rR(r,t,{name:dre,handleItemDefaults:gre})};function gre(e,r,t){function n(v,h){return Cv.coerce(e,r,tR,v,h)}for(var a=rR(e,r,{name:"steps",handleItemDefaults:mre}),i=0,o=0;o{"use strict";var Sl=kt(),Mm=fa(),ff=Pt(),Cl=fn(),ao=gr(),yre=ao.strTranslate,qh=ci(),bre=bn().arrayEditor,Mt=Lh(),g4=Ka(),lR=g4.LINE_SPACING,d4=g4.FROM_TL,p4=g4.FROM_BR;hR.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=_re(n,r),i=n._infolayer.selectAll("g."+Mt.containerClassName).data(a.length>0?[0]:[]);i.enter().append("g").classed(Mt.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Mm.autoMargin(r,sR(f))}if(i.exit().each(function(){Sl.select(this).selectAll("g."+Mt.groupClassName).each(o)}).remove(),a.length!==0){var l=i.selectAll("g."+Mt.groupClassName).data(a,xre);l.enter().append("g").classed(Mt.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",yre(o-Mt.gripWidth*.5,r._dims.currentValueTotalHeight))}}function m4(e,r){var t=e._dims;return t.inputAreaStart+Mt.stepInset+(t.inputAreaLength-2*Mt.stepInset)*Math.min(1,Math.max(0,r))}function oR(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Mt.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Mt.stepInset-2*t.inputAreaStart)))}function Cre(e,r,t){var n=t._dims,a=ao.ensureSingle(e,"rect",Mt.railTouchRectClass,function(i){i.call(cR,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Mt.tickOffset+t.ticklen+n.labelHeight)}).call(ff.fill,t.bgcolor).attr("opacity",0),Cl.setTranslate(a,0,n.currentValueTotalHeight)}function Lre(e,r){var t=r._dims,n=t.inputAreaLength-Mt.railInset*2,a=ao.ensureSingle(e,"rect",Mt.railRectClass);a.attr({width:n,height:Mt.railWidth,rx:Mt.railRadius,ry:Mt.railRadius,"shape-rendering":"crispEdges"}).call(ff.stroke,r.bordercolor).call(ff.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Cl.setTranslate(a,Mt.railInset,(t.inputAreaWidth-Mt.railWidth)*.5+t.currentValueTotalHeight)}});var gR=te((I0e,pR)=>{"use strict";var qre=Lh();pR.exports={moduleType:"component",name:qre.name,layoutAttributes:h4(),supplyLayoutDefaults:aR(),draw:dR()}});var Tm=te((H0e,yR)=>{"use strict";var mR=cl();yR.exports={bgcolor:{valType:"color",dflt:mR.background,editType:"plot"},bordercolor:{valType:"color",dflt:mR.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var y4=te((B0e,bR)=>{"use strict";bR.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var km=te((O0e,_R)=>{"use strict";_R.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var MR=te(Cm=>{"use strict";var Dre=ua(),Ere=ci(),xR=km(),Pre=Ka().LINE_SPACING,Sm=xR.name;function wR(e){var r=e&&e[Sm];return r&&r.visible}Cm.isVisible=wR;Cm.makeData=function(e){for(var r=Dre.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var Lm=gr(),AR=bn(),TR=ua(),Rre=Tm(),zre=y4();kR.exports=function(r,t,n){var a=r[n],i=t[n];if(!(a.rangeslider||t._requestRangeslider[i._id]))return;Lm.isPlainObject(a.rangeslider)||(a.rangeslider={});var o=a.rangeslider,l=AR.newContainer(i,"rangeslider");function s(A,k){return Lm.coerce(o,l,Rre,A,k)}var u,f;function v(A,k){return Lm.coerce(u,f,zre,A,k)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(A){return A.substr(0,A.indexOf("y"))===TR.name2id(n)}).map(function(A){return A.substr(A.indexOf("y"),A.length)}),p=Lm.simpleMap(m,TR.id2name),y=0;y{"use strict";var Nre=ua().list,Fre=Ju().getAutoRange,Ire=km();CR.exports=function(r){for(var t=Nre(r,"x",!0),n=0;n{"use strict";var qm=kt(),Hre=dt(),Bre=fa(),Vn=gr(),Dm=Vn.strTranslate,DR=fn(),cf=Pt(),Ore=A1(),Ure=Wb(),b4=ua(),Yre=To(),Gre=Ku(),Et=km();ER.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=K.max)re=I[ne+1];else if(G=K.pmax)re=I[ne+1];else if(G0?e.touches[0].clientX:0}function Vre(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Et.slideBoxClassName).node(),i=e.select("rect."+Et.grabAreaMinClassName).node(),o=e.select("rect."+Et.grabAreaMaxClassName).node();function l(){var s=qm.event,u=s.target,f=qR(s),v=f-e.node().getBoundingClientRect().left,h=n.d2p(t._rl[0]),d=n.d2p(t._rl[1]),m=Yre.coverSlip();this.addEventListener("touchmove",p),this.addEventListener("touchend",y),m.addEventListener("mousemove",p),m.addEventListener("mouseup",y);function p(b){var C=qR(b),x=+C-f,_,A,k;switch(u){case a:if(k="ew-resize",h+x>t._length||d+x<0)return;_=h+x,A=d+x;break;case i:if(k="col-resize",h+x>t._length)return;_=h+x,A=d;break;case o:if(k="col-resize",d+x<0)return;_=h,A=d+x;break;default:k="ew-resize",_=v,A=v+x;break}if(A<_){var M=A;A=_,_=M}n._pixelMin=_,n._pixelMax=A,Gre(qm.select(m),k),Wre(e,r,t,n)}function y(){m.removeEventListener("mousemove",p),m.removeEventListener("mouseup",y),this.removeEventListener("touchmove",p),this.removeEventListener("touchend",y),Vn.removeElement(m)}}e.on("mousedown",l),e.on("touchstart",l)}function Wre(e,r,t,n){function a(l){return t.l2r(Vn.constrain(l,n._rl[0],n._rl[1]))}var i=a(n.p2d(n._pixelMin)),o=a(n.p2d(n._pixelMax));window.requestAnimationFrame(function(){Hre.call("_guiRelayout",r,t._name+".range",[i,o])})}function Zre(e,r,t,n,a,i){var o=Et.handleWidth/2;function l(b){return Vn.constrain(b,0,n._width)}function s(b){return Vn.constrain(b,0,n._height)}function u(b){return Vn.constrain(b,-o,n._width+o)}var f=l(n.d2p(t._rl[0])),v=l(n.d2p(t._rl[1]));if(e.select("rect."+Et.slideBoxClassName).attr("x",f).attr("width",v-f),e.select("rect."+Et.maskMinClassName).attr("width",f),e.select("rect."+Et.maskMaxClassName).attr("x",v).attr("width",n._width-v),i.rangemode!=="match"){var h=n._height-s(n.d2pOppAxis(a._rl[1])),d=n._height-s(n.d2pOppAxis(a._rl[0]));e.select("rect."+Et.maskMinOppAxisClassName).attr("x",f).attr("height",h).attr("width",v-f),e.select("rect."+Et.maskMaxOppAxisClassName).attr("x",f).attr("y",d).attr("height",n._height-d).attr("width",v-f),e.select("rect."+Et.slideBoxClassName).attr("y",h).attr("height",d-h)}var m=.5,p=Math.round(u(f-o))-m,y=Math.round(u(v-o))+m;e.select("g."+Et.grabberMinClassName).attr("transform",Dm(p,m)),e.select("g."+Et.grabberMaxClassName).attr("transform",Dm(y,m))}function Xre(e,r,t,n){var a=Vn.ensureSingle(e,"rect",Et.bgClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),i=n.borderwidth%2===0?n.borderwidth:n.borderwidth-1,o=-n._offsetShift,l=DR.crispRound(r,n.borderwidth);a.attr({width:n._width+i,height:n._height+i,transform:Dm(o,o),"stroke-width":l}).call(cf.stroke,n.bordercolor).call(cf.fill,n.bgcolor)}function jre(e,r,t,n){var a=r._fullLayout,i=Vn.ensureSingleById(a._topdefs,"clipPath",n._clipId,function(o){o.append("rect").attr({x:0,y:0})});i.select("rect").attr({width:n._width,height:n._height})}function Jre(e,r,t,n){var a=r.calcdata,i=e.selectAll("g."+Et.rangePlotClassName).data(t._subplotsWith,Vn.identity);i.enter().append("g").attr("class",function(l){return Et.rangePlotClassName+" "+l}).call(DR.setClipUrl,n._clipId,r),i.order(),i.exit().remove();var o;i.each(function(l,s){var u=qm.select(this),f=s===0,v=b4.getFromId(r,l,"y"),h=v._name,d=n[h],m={data:[],layout:{xaxis:{type:t.type,domain:[0,1],range:n.range.slice(),calendar:t.calendar},width:n._width,height:n._height,margin:{t:0,b:0,l:0,r:0}},_context:r._context};t.rangebreaks&&(m.layout.xaxis.rangebreaks=t.rangebreaks),m.layout[h]={type:v.type,domain:[0,1],range:d.rangemode!=="match"?d.range.slice():v.range.slice(),calendar:v.calendar},v.rangebreaks&&(m.layout[h].rangebreaks=v.rangebreaks),Bre.supplyDefaults(m);var p=m._fullLayout.xaxis,y=m._fullLayout[h];p.clearCalc(),p.setScale(),y.clearCalc(),y.setScale();var b={id:l,plotgroup:u,xaxis:p,yaxis:y,isRangePlot:!0};f?o=b:(b.mainplot="xy",b.mainplotinfo=o),Ure.rangePlot(r,b,$re(a,l))})}function $re(e,r){for(var t=[],n=0;n{"use strict";var rte=gr(),tte=Tm(),nte=y4(),_4=MR();RR.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:rte.extendFlat({},tte,{yaxis:nte})}}},layoutAttributes:Tm(),handleDefaults:SR(),calcAutorange:LR(),draw:PR(),isVisible:_4.isVisible,makeData:_4.makeData,autoMarginOpts:_4.autoMarginOpts}});var Em=te((Z0e,FR)=>{"use strict";var ate=$a(),NR=cl(),ite=bn().templatedArray,ote=ite("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});FR.exports={visible:{valType:"boolean",editType:"plot"},buttons:ote,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:ate({editType:"plot"}),bgcolor:{valType:"color",dflt:NR.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:NR.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var x4=te((X0e,IR)=>{"use strict";IR.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var OR=te((j0e,BR)=>{"use strict";var Pm=gr(),lte=Pt(),ste=bn(),ute=gl(),HR=Em(),w4=x4();BR.exports=function(r,t,n,a,i){var o=r.rangeselector||{},l=ste.newContainer(t,"rangeselector");function s(d,m){return Pm.coerce(o,l,HR,d,m)}var u=ute(o,l,{name:"buttons",handleItemDefaults:fte,calendar:i}),f=s("visible",u.length>0);if(f){var v=cte(t,n,a);s("x",v[0]),s("y",v[1]),Pm.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Pm.coerceFont(s,"font",n.font);var h=s("bgcolor");s("activecolor",lte.contrast(h,w4.lightAmount,w4.darkAmount)),s("bordercolor"),s("borderwidth")}};function fte(e,r,t,n){var a=n.calendar;function i(s,u){return Pm.coerce(e,r,HR.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function cte(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,i=0;i{"use strict";var vte=wy(),hte=gr().titleCase;UR.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var i=dte(r,t);a[n+".range[0]"]=i[0],a[n+".range[1]"]=i[1]}return a};function dte(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,i=vte["utc"+hte(a)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(n,-o));break;case"todate":var s=i.offset(n,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var $R=te(($0e,JR)=>{"use strict";var zm=kt(),pte=dt(),gte=fa(),GR=Pt(),jR=fn(),lu=gr(),VR=lu.strTranslate,Rm=ci(),mte=ua(),T4=Ka(),WR=T4.LINE_SPACING,ZR=T4.FROM_TL,XR=T4.FROM_BR,A4=x4(),yte=YR();JR.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(bte(r),_te);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var i=zm.select(this),o=a,l=o.rangeselector,s=i.selectAll("g.button").data(lu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=zm.select(this),v=yte(o,u);u._isActive=xte(o,u,v),f.call(M4,l,u),f.call(Mte,l,u,r),f.on("click",function(){r._dragged||pte.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(M4,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(M4,l,u)})}),Tte(r,s,l,o._name,i)})};function bte(e){for(var r=mte.list(e,"x",!0),t=[],n=0;n{"use strict";KR.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Em()}}},layoutAttributes:Em(),handleDefaults:OR(),draw:$R()}});var Nm=te(k4=>{"use strict";var ez=la().extendFlat;k4.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:ez({},t,{}),y:ez({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};k4.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],i=n&&n.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var kte=gr(),Ste=x0().counter,Cte=Nm().attributes,rz=Pa().idRegex,Lte=bn(),S4={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Ste("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[rz.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[rz.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Cte({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Fm(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function qte(e,r){var t=e.grid||{},n=Fm(r,t,"x"),a=Fm(r,t,"y");if(!e.grid&&!n&&!a)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(n),l=Array.isArray(a),s=o&&n!==t.xaxes&&l&&a!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=a.length),o&&(f=n.length));var v=Lte.newContainer(r,"grid");function h(k,M){return kte.coerce(t,v,S4,k,M)}var d=h("rows",u),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!o&&!l){var p=h("pattern")==="independent";p&&(i=!0)}v._hasSubplotGrid=i;var y=h("roworder"),b=y==="top to bottom",C=i?.2:.1,x=i?.3:.1,_,A;s&&r._splomGridDflt&&(_=r._splomGridDflt.xside,A=r._splomGridDflt.yside),v._domains={x:tz("x",h,C,_,m),y:tz("y",h,x,A,d,b)}}function tz(e,r,t,n,a,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var s=new Array(a),u=l[0],f=(l[1]-u)/(a-o),v=f*(1-o),h=0;h{"use strict";oz.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var uz=te((tve,sz)=>{"use strict";var lz=Ut(),Ete=dt(),Pte=gr(),Rte=bn(),zte=C4();sz.exports=function(e,r,t,n){var a="error_"+n.axis,i=Rte.newContainer(r,a),o=e[a]||{};function l(m,p){return Pte.coerce(o,i,zte,m,p)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),v=!0;f!=="sqrt"&&(v=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),v||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),v||l("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=r["error_"+n.inherit];(d||{}).visible&&l(h,!(o.color||lz(o.thickness)||lz(o.width)))}(!n.inherit||!i[h])&&(l("color",t),l("thickness"),l("width",Ete.traceIs(r,"gl3d")?0:4))}}});var L4=te((nve,cz)=>{"use strict";cz.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(u,f){var v=+a[f];return[v,v]};var i=r.arrayminus||[];return function(u,f){var v=+a[f],h=+i[f];return!isNaN(v)||!isNaN(h)?[h||0,v||0]:[NaN,NaN]}}else{var o=fz(t,r.value),l=fz(t,r.valueminus);return n||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function fz(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var dz=te((ave,hz)=>{"use strict";var q4=Ut(),Nte=dt(),D4=Dn(),Fte=gr(),Ite=L4();hz.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var pz=kt(),vf=Ut(),Hte=fn(),Bte=Qa();gz.exports=function(r,t,n,a){var i,o=n.xaxis,l=n.yaxis,s=a&&a.duration>0,u=r._context.staticPlot;t.each(function(f){var v=f[0].trace,h=v.error_x||{},d=v.error_y||{},m;v.ids&&(m=function(C){return C.id});var p=Bte.hasMarkers(v)&&v.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=pz.select(this).selectAll("g.errorbar").data(f,m);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(a.duration).style("opacity",1),Hte.setClipUrl(y,n.layerClipId,r),y.each(function(C){var x=pz.select(this),_=Ote(C,o,l);if(!(p&&!C.vis)){var A,k=x.select("path.yerror");if(d.visible&&vf(_.x)&&vf(_.yh)&&vf(_.ys)){var M=d.width;A="M"+(_.x-M)+","+_.yh+"h"+2*M+"m-"+M+",0V"+_.ys,_.noYS||(A+="m-"+M+",0h"+2*M),i=!k.size(),i?k=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(a.duration).ease(a.easing)),k.attr("d",A)}else k.remove();var D=x.select("path.xerror");if(h.visible&&vf(_.y)&&vf(_.xh)&&vf(_.xs)){var z=(h.copy_ystyle?d:h).width;A="M"+_.xh+","+(_.y-z)+"v"+2*z+"m0,-"+z+"H"+_.xs,_.noXS||(A+="m0,-"+z+"v"+2*z),i=!D.size(),i?D=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(D=D.transition().duration(a.duration).ease(a.easing)),D.attr("d",A)}else D.remove()}})}})};function Ote(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),vf(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),vf(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var _z=te((ove,bz)=>{"use strict";var Ute=kt(),yz=Pt();bz.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},i=n.error_x||{},o=Ute.select(this);o.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(yz.stroke,a.color),i.copy_ystyle&&(i=a),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(yz.stroke,i.color)})}});var Mz=te((lve,wz)=>{"use strict";var Dh=gr(),xz=_o().overrideAll,Eh=C4(),Fc={error_x:Dh.extendFlat({},Eh),error_y:Dh.extendFlat({},Eh)};delete Fc.error_x.copy_zstyle;delete Fc.error_y.copy_zstyle;delete Fc.error_y.copy_ystyle;var Ph={error_x:Dh.extendFlat({},Eh),error_y:Dh.extendFlat({},Eh),error_z:Dh.extendFlat({},Eh)};delete Ph.error_x.copy_ystyle;delete Ph.error_y.copy_ystyle;delete Ph.error_z.copy_ystyle;delete Ph.error_z.copy_zstyle;wz.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Fc,bar:Fc,histogram:Fc,scatter3d:xz(Ph,"calc","nested"),scattergl:xz(Fc,"calc","nested")}},supplyDefaults:uz(),calc:dz(),makeComputeError:L4(),plot:mz(),style:_z(),hoverInfo:Yte};function Yte(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var Tz=te((sve,Az)=>{"use strict";Az.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Ez=te((uve,Dz)=>{"use strict";var hf=kt(),E4=Jl(),Hm=fa(),kz=dt(),su=Dn(),Im=To(),Fo=gr(),ql=Fo.strTranslate,qz=la().extendFlat,P4=Ku(),Ll=fn(),R4=Pt(),Gte=A1(),Vte=ci(),Wte=es().flipScale,Zte=Ub(),Xte=Yb(),jte=pl(),z4=Ka(),Sz=z4.LINE_SPACING,Cz=z4.FROM_TL,Lz=z4.FROM_BR,En=Tz().cn;function Jte(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+En.colorbar).data($te(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(En.colorbar,!0),t.each(function(n){var a=hf.select(this);Fo.ensureSingle(a,"rect",En.cbbg),Fo.ensureSingle(a,"g",En.cbfills),Fo.ensureSingle(a,"g",En.cblines),Fo.ensureSingle(a,"g",En.cbaxis,function(o){o.classed(En.crisp,!0)}),Fo.ensureSingle(a,"g",En.cbtitleunshift,function(o){o.append("g").classed(En.cbtitle,!0)}),Fo.ensureSingle(a,"rect",En.cboutline);var i=Kte(a,n,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Qte(a,n,e)}),t.exit().each(function(n){Hm.autoMargin(e,n._id)}).remove(),t.order()}function $te(e){var r=e._fullLayout,t=e.calcdata,n=[],a,i,o,l;function s(x){return qz(x,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,a):(a._fillgradient=i.reversescale?Wte(i.colorscale):i.colorscale,a._zrange=[i[l.min],i[l.max]])}for(var f=0;f1){var Q=Math.pow(10,Math.floor(Math.log(U)/Math.LN10));we*=Q*Fo.roundUp(U/Q,[2,5,10]),(Math.abs(W.start)/W.size+1e-6)%1<2e-6&&(se.tick0=0)}se.dtick=we}se.domain=n?[Le+m/_.h,Le+ee-m/_.h]:[Le+d/_.w,Le+ee-d/_.w],se.setScale(),e.attr("transform",ql(Math.round(_.l),Math.round(_.t)));var $=e.select("."+En.cbtitleunshift).attr("transform",ql(-Math.round(_.l),-Math.round(_.t))),ke=se.ticklabelposition,Oe=se.title.font.size,Ie=e.select("."+En.cbaxis),ir,or=0,Ue=0;function tr(dr,Te){var Ye={propContainer:se,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+En.cbtitle)},Ar=dr.charAt(0)==="h"?dr.substr(1):"h"+dr;e.selectAll("."+Ar+",."+Ar+"-math-group").remove(),Gte.draw(t,dr,qz(Ye,Te||{}))}function ur(){if(n&&ye||!n&&!ye){var dr,Te;D==="top"&&(dr=d+_.l+fe*p,Te=m+_.t+he*(1-Le-ee)+3+Oe*.75),D==="bottom"&&(dr=d+_.l+fe*p,Te=m+_.t+he*(1-Le)-3-Oe*.25),D==="right"&&(Te=m+_.t+he*y+3+Oe*.75,dr=d+_.l+fe*Le),tr(se._id+"title",{attributes:{x:dr,y:Te,"text-anchor":n?"start":"middle"}})}}function cr(){if(n&&!ye||!n&&ye){var dr=se.position||0,Te=se._offset+se._length/2,Ye,Ar;if(D==="right")Ar=Te,Ye=_.l+fe*dr+10+Oe*(se.showticklabels?1:.5);else if(Ye=Te,D==="bottom"&&(Ar=_.t+he*dr+10+(ke.indexOf("inside")===-1?se.tickfont.size:0)+(se.ticks!=="inside"&&r.ticklen||0)),D==="top"){var Nr=M.text.split("
").length;Ar=_.t+he*dr+10-re-Sz*Oe*Nr}tr((n?"h":"v")+se._id+"title",{avoid:{selection:hf.select(t).selectAll("g."+se._id+"tick"),side:D,offsetTop:n?0:_.t,offsetLeft:n?_.l:0,maxShift:n?x.width:x.height},attributes:{x:Ye,y:Ar,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Qe(){if(!n&&!ye||n&&ye){var dr=e.select("."+En.cbtitle),Te=dr.select("text"),Ye=[-s/2,s/2],Ar=dr.select(".h"+se._id+"title-math-group").node(),Nr=15.6;Te.node()&&(Nr=parseInt(Te.node().style.fontSize,10)*Sz);var Er;if(Ar?(Er=Ll.bBox(Ar),Ue=Er.width,or=Er.height,or>Nr&&(Ye[1]-=(or-Nr)/2)):Te.node()&&!Te.classed(En.jsPlaceholder)&&(Er=Ll.bBox(Te.node()),Ue=Er.width,or=Er.height),n){if(or){if(or+=5,D==="top")se.domain[1]-=or/_.h,Ye[1]*=-1;else{se.domain[0]+=or/_.h;var Ae=Vte.lineCount(Te);Ye[1]+=(1-Ae)*Nr}dr.attr("transform",ql(Ye[0],Ye[1])),se.setScale()}}else Ue&&(D==="right"&&(se.domain[0]+=(Ue+Oe/2)/_.w),dr.attr("transform",ql(Ye[0],Ye[1])),se.setScale())}e.selectAll("."+En.cbfills+",."+En.cblines).attr("transform",n?ql(0,Math.round(_.h*(1-se.domain[1]))):ql(Math.round(_.w*se.domain[0]),0)),Ie.attr("transform",n?ql(0,Math.round(-_.t)):ql(Math.round(-_.l),0));var je=e.select("."+En.cbfills).selectAll("rect."+En.cbfill).attr("style","").data(X);je.enter().append("rect").classed(En.cbfill,!0).attr("style",""),je.exit().remove();var hr=z.map(se.c2p).map(Math.round).sort(function(Or,Cr){return Or-Cr});je.each(function(Or,Cr){var ar=[Cr===0?z[0]:(X[Cr]+X[Cr-1])/2,Cr===X.length-1?z[1]:(X[Cr]+X[Cr+1])/2].map(se.c2p).map(Math.round);n&&(ar[1]=Fo.constrain(ar[1]+(ar[1]>ar[0])?1:-1,hr[0],hr[1]));var be=hf.select(this).attr(n?"x":"y",De).attr(n?"y":"x",hf.min(ar)).attr(n?"width":"height",Math.max(re,2)).attr(n?"height":"width",Math.max(hf.max(ar)-hf.min(ar),2));if(r._fillgradient)Ll.gradient(be,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Se=I(Or).replace("e-","");be.attr("fill",E4(Se).toHexString())}});var wr=e.select("."+En.cblines).selectAll("path."+En.cbline).data(k.color&&k.width?G:[]);wr.enter().append("path").classed(En.cbline,!0),wr.exit().remove(),wr.each(function(Or){var Cr=De,ar=Math.round(se.c2p(Or))+k.width/2%1;hf.select(this).attr("d","M"+(n?Cr+","+ar:ar+","+Cr)+(n?"h":"v")+re).call(Ll.lineGroupStyle,k.width,F(Or),k.dash)}),Ie.selectAll("g."+se._id+"tick,path").remove();var mr=De+re+(s||0)/2-(r.ticks==="outside"?1:0),Tr=su.calcTicks(se),Dr=su.getTickSigns(se)[2];return su.drawTicks(t,se,{vals:se.ticks==="inside"?su.clipEnds(se,Tr):Tr,layer:Ie,path:su.makeTickPath(se,mr,Dr),transFn:su.makeTransTickFn(se)}),su.drawLabels(t,se,{vals:Tr,layer:Ie,transFn:su.makeTransTickLabelFn(se),labelFns:su.makeLabelFns(se,mr)})}function pr(){var dr,Te=re+s/2;ke.indexOf("inside")===-1&&(dr=Ll.bBox(Ie.node()),Te+=n?dr.width:dr.height),ir=$.select("text");var Ye=0,Ar=n&&D==="top",Nr=!n&&D==="right",Er=0;if(ir.node()&&!ir.classed(En.jsPlaceholder)){var Ae,je=$.select(".h"+se._id+"title-math-group").node();je&&(n&&ye||!n&&!ye)?(dr=Ll.bBox(je),Ye=dr.width,Ae=dr.height):(dr=Ll.bBox($.node()),Ye=dr.right-_.l-(n?De:rr),Ae=dr.bottom-_.t-(n?rr:De),!n&&D==="top"&&(Te+=dr.height,Er=dr.height)),Nr&&(ir.attr("transform",ql(Ye/2+Oe/2,0)),Ye*=2),Te=Math.max(Te,n?Ye:Ae)}var hr=(n?d:m)*2+Te+u+s/2,wr=0;!n&&M.text&&h==="bottom"&&y<=0&&(wr=hr/2,hr+=wr,Er+=wr),x._hColorbarMoveTitle=wr,x._hColorbarMoveCBTitle=Er;var mr=u+s,Tr=(n?De:rr)-mr/2-(n?d:0),Dr=(n?rr:De)-(n?K:m+Er-wr);e.select("."+En.cbbg).attr("x",Tr).attr("y",Dr).attr(n?"width":"height",Math.max(hr-wr,2)).attr(n?"height":"width",Math.max(K+mr,2)).call(R4.fill,f).call(R4.stroke,r.bordercolor).style("stroke-width",u);var Or=Nr?Math.max(Ye-10,0):0;e.selectAll("."+En.cboutline).attr("x",(n?De:rr+d)+Or).attr("y",(n?rr+m-K:De)+(Ar?or:0)).attr(n?"width":"height",Math.max(re,2)).attr(n?"height":"width",Math.max(K-(n?2*m+or:2*d+Or),2)).call(R4.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Cr=n?Ne*hr:0,ar=n?0:(1-Fe)*hr-Er;if(Cr=C?_.l-Cr:-Cr,ar=b?_.t-ar:-ar,e.attr("transform",ql(Cr,ar)),!n&&(u||E4(f).getAlpha()&&!E4.equals(x.paper_bgcolor,f))){var be=Ie.selectAll("text"),Se=be[0].length,$e=e.select("."+En.cbbg).node(),Ze=Ll.bBox($e),qr=Ll.getTranslate(e),Hr=2;be.each(function(jt,en){var Jt=0,aa=Se-1;if(en===Jt||en===aa){var rt=Ll.bBox(this),rn=Ll.getTranslate(this),St;if(en===aa){var dn=rt.right+rn.x,pn=Ze.right+qr.x+rr-u-Hr+p;St=pn-dn,St>0&&(St=0)}else if(en===Jt){var an=rt.left+rn.x,vn=Ze.left+qr.x+rr+u+Hr;St=vn-an,St<0&&(St=0)}St&&(Se<3?this.setAttribute("transform","translate("+St+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Pr={},lt=Cz[v],xt=Lz[v],Nt=Cz[h],Ht=Lz[h],An=hr-re;n?(i==="pixels"?(Pr.y=y,Pr.t=K*Nt,Pr.b=K*Ht):(Pr.t=Pr.b=0,Pr.yt=y+a*Nt,Pr.yb=y-a*Ht),l==="pixels"?(Pr.x=p,Pr.l=hr*lt,Pr.r=hr*xt):(Pr.l=An*lt,Pr.r=An*xt,Pr.xl=p-o*lt,Pr.xr=p+o*xt)):(i==="pixels"?(Pr.x=p,Pr.l=K*lt,Pr.r=K*xt):(Pr.l=Pr.r=0,Pr.xl=p+a*lt,Pr.xr=p-a*xt),l==="pixels"?(Pr.y=1-y,Pr.t=hr*Nt,Pr.b=hr*Ht):(Pr.t=An*Nt,Pr.b=An*Ht,Pr.yt=y-o*Nt,Pr.yb=y+o*Ht));var Tn=r.y<.5?"b":"t",cn=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Ft={r:x.width-Tr-Cr,l:Tr+Pr.r,b:x.height-Dr-ar,t:Dr+Pr.b};C&&b?Hm.autoMargin(t,r._id,Pr):C?t._fullLayout._reservedMargin[r._id][Tn]=Ft[Tn]:b||n?t._fullLayout._reservedMargin[r._id][cn]=Ft[cn]:t._fullLayout._reservedMargin[r._id][Tn]=Ft[Tn]}return Fo.syncOrAsync([Hm.previousPromises,ur,Qe,cr,Hm.previousPromises,pr],t)}function Qte(e,r,t){var n=r.orientation==="v",a=t._fullLayout,i=a._size,o,l,s;Im.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),P4(e)},moveFn:function(u,f){e.attr("transform",o+ql(u,f)),l=Im.align((n?r._uFrac:r._vFrac)+u/i.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Im.align((n?r._vFrac:1-r._uFrac)-f/i.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Im.getCursor(l,s,r.xanchor,r.yanchor);P4(e,v)},doneFn:function(){if(P4(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?kz.call("_guiRestyle",t,u,r._traceIndex):kz.call("_guiRelayout",t,u)}}})}function ene(e,r,t){var n=r._levels,a=[],i=[],o,l,s=n.end+n.size/100,u=n.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=n.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";Pz.exports={moduleType:"component",name:"colorbar",attributes:$d(),supplyDefaults:H2(),draw:Ez().draw,hasColorbar:C2()}});var Nz=te((cve,zz)=>{"use strict";zz.exports={moduleType:"component",name:"legend",layoutAttributes:R3(),supplyLayoutDefaults:F3(),draw:J3(),style:W3()}});var Iz=te((vve,Fz)=>{"use strict";Fz.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var Bz=te((hve,Hz)=>{"use strict";Hz.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var F4=te((dve,Gz)=>{"use strict";var tne=dt(),Yz=gr(),N4=Yz.extendFlat,Oz=Yz.extendDeep;function Uz(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function nne(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}Gz.exports=function(r,t){var n,a=r.data,i=r.layout,o=Oz([],a),l=Oz({},i,Uz(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var u=Object.keys(l);for(n=0;n{"use strict";var ane=Id().EventEmitter,ine=dt(),one=gr(),Vz=Sc(),lne=F4(),sne=Wg(),une=Zg();function fne(e,r){var t=new ane,n=lne(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function i(){var l=Vz.getDelay(a._fullLayout);setTimeout(function(){var s=sne(a),u=document.createElement("canvas");u.id=one.randstr(),t=une({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var o=Vz.getRedrawFunc(a);return ine.call("_doPlot",a,n.data,n.layout,n.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}Wz.exports=fne});var Jz=te((gve,jz)=>{"use strict";var Xz=Sc(),cne={getDelay:Xz.getDelay,getRedrawFunc:Xz.getRedrawFunc,clone:F4(),toSVG:Wg(),svgToImg:Zg(),toImage:Zz(),downloadImage:db()};jz.exports=cne});var Kz=te(uu=>{"use strict";uu.version=ed().version;Y_();Ew();var vne=dt(),Rh=uu.register=vne.register,H4=tq(),$z=Object.keys(H4);for(Bm=0;Bm<$z.length;Bm++)Lv=$z[Bm],Lv.charAt(0)!=="_"&&(uu[Lv]=H4[Lv]),Rh({moduleType:"apiMethod",name:Lv,fn:H4[Lv]});var Lv,Bm;Rh(vE());Rh([FE(),$E(),au(),pP(),CP(),JP(),gR(),zR(),QR(),iz(),Mz(),tp(),Rz(),Nz(),ss(),x5()]);Rh([Iz(),Bz()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(Rh(window.PlotlyLocales),delete window.PlotlyLocales);uu.Icons=Wp();var Om=ss(),I4=fa();uu.Plots={resize:I4.resize,graphJson:I4.graphJson,sendDataToCloud:I4.sendDataToCloud};uu.Fx={hover:Om.hover,unhover:Om.unhover,loneHover:Om.loneHover,loneUnhover:Om.loneUnhover};uu.Snapshot=Jz();uu.PlotSchema=z0()});var eN=te((yve,Qz)=>{"use strict";Qz.exports=Kz()});var zh=te((_ve,nN)=>{"use strict";var hne=Vs().hovertemplateAttrs,dne=Vs().texttemplateAttrs,pne=G5(),ds=kc(),gne=bo(),rN=H0(),mne=Kl().dash,Ic=la().extendFlat,yne=_o().overrideAll,Io=ds.marker,tN=ds.line,bne=Io.line,bve=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");nN.exports=yne({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:Ic({},ds.mode,{dflt:"markers"}),text:Ic({},ds.text,{}),texttemplate:dne({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:Ic({},ds.hovertext,{}),textfont:ds.textfont,textposition:ds.textposition,line:{color:tN.color,width:tN.width,dash:mne},connectgaps:ds.connectgaps,marker:Ic({symbol:Io.symbol,opacity:Io.opacity,angle:Io.angle,angleref:Ic({},Io.angleref,{values:["previous","up","north"]}),standoff:Io.standoff,size:Io.size,sizeref:Io.sizeref,sizemin:Io.sizemin,sizemode:Io.sizemode,colorbar:Io.colorbar,line:Ic({width:bne.width},rN("marker.line")),gradient:Io.gradient},rN("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:pne(),selected:ds.selected,unselected:ds.unselected,hoverinfo:Ic({},gne.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:hne()},"calc","nested")});var iN=te((xve,aN)=>{"use strict";var Um=gr(),B4=Qa(),_ne=mb(),xne=yb(),wne=bb(),Mne=_b(),Ane=zh(),Tne=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");aN.exports=function(r,t,n,a){function i(d,m){return Um.coerce(r,t,Ane,d,m)}var o=i("locations"),l;if(o&&o.length){var s=i("geojson"),u;(typeof s=="string"&&s!==""||Um.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="country names"&&Um.warn(Tne),f==="geojson-id"&&i("featureidkey"),l=o.length}else{var v=i("lon")||[],h=i("lat")||[];l=Math.min(v.length,h.length)}if(!l){t.visible=!1;return}t._length=l,i("text"),i("hovertext"),i("hovertemplate"),i("mode"),B4.hasMarkers(t)&&_ne(r,t,n,a,i,{gradient:!0}),B4.hasLines(t)&&(xne(r,t,n,a,i),i("connectgaps")),B4.hasText(t)&&(i("texttemplate"),wne(r,t,a,i)),i("fill"),t.fill!=="none"&&Mne(r,t,n,i),Um.coerceSelectionMarkerOpacity(t,i)}});var sN=te((wve,lN)=>{"use strict";var oN=Dn();lN.exports=function(r,t,n){var a={},i=n[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return a.lonLabel=oN.tickText(o,o.c2l(l[0]),!0).text,a.latLabel=oN.tickText(o,o.c2l(l[1]),!0).text,a}});var hN=te((Mve,vN)=>{"use strict";var O4=Ut(),uN=Rn().BADNUM,kne=Mb(),Sne=ph(),Cne=em(),Lne=gr().isArrayOrTypedArray,fN=gr()._;function cN(e){return e&&typeof e=="string"}vN.exports=function(r,t){var n=Lne(t.locations),a=n?t.locations.length:t._length,i=new Array(a),o;t.geojson?o=function(h){return cN(h)||O4(h)}:o=cN;for(var l=0;l{"use strict";Ya.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Ya.axesNames=["lonaxis","lataxis"];Ya.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Ya.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Ya.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Ya.clipPad=.001;Ya.precision=.1;Ya.landColor="#F0DC82";Ya.waterColor="#3399FF";Ya.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Ya.sphereSVG={type:"Sphere"};Ya.fillLayers={ocean:1,land:1,lakes:1};Ya.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Ya.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Ya.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Ya.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var U4=te((Ym,dN)=>{(function(e,r){typeof Ym=="object"&&typeof dN!="undefined"?r(Ym):(e=e||self,r(e.topojson=e.topojson||{}))})(Ym,function(e){"use strict";function r(x){return x}function t(x){if(x==null)return r;var _,A,k=x.scale[0],M=x.scale[1],D=x.translate[0],z=x.translate[1];return function(F,I){I||(_=A=0);var W=2,B=F.length,X=new Array(B);for(X[0]=(_+=F[0])*k+D,X[1]=(A+=F[1])*M+z;WD&&(D=W[0]),W[1]z&&(z=W[1])}function I(W){switch(W.type){case"GeometryCollection":W.geometries.forEach(I);break;case"Point":F(W.coordinates);break;case"MultiPoint":W.coordinates.forEach(F);break}}x.arcs.forEach(function(W){for(var B=-1,X=W.length,G;++BD&&(D=G[0]),G[1]z&&(z=G[1])});for(A in x.objects)I(x.objects[A]);return[k,M,D,z]}function a(x,_){for(var A,k=x.length,M=k-_;M<--k;)A=x[M],x[M++]=x[k],x[k]=A}function i(x,_){return typeof _=="string"&&(_=x.objects[_]),_.type==="GeometryCollection"?{type:"FeatureCollection",features:_.geometries.map(function(A){return o(x,A)})}:o(x,_)}function o(x,_){var A=_.id,k=_.bbox,M=_.properties==null?{}:_.properties,D=l(x,_);return A==null&&k==null?{type:"Feature",properties:M,geometry:D}:k==null?{type:"Feature",id:A,properties:M,geometry:D}:{type:"Feature",id:A,bbox:k,properties:M,geometry:D}}function l(x,_){var A=t(x.transform),k=x.arcs;function M(B,X){X.length&&X.pop();for(var G=k[B<0?~B:B],re=0,ne=G.length;re1)k=v(x,_,A);else for(M=0,k=new Array(D=x.arcs.length);M1)for(var X=1,G=F(W[0]),re,ne;XG&&(ne=W[0],W[0]=W[X],W[X]=ne,G=re);return W}).filter(function(I){return I.length>0})}}function p(x,_){for(var A=0,k=x.length;A>>1;x[M]<_?A=M+1:k=M}return A}function y(x){var _={},A=x.map(function(){return[]});function k(K,ee){K.forEach(function(fe){fe<0&&(fe=~fe);var he=_[fe];he?he.push(ee):_[fe]=[ee]})}function M(K,ee){K.forEach(function(fe){k(fe,ee)})}function D(K,ee){K.type==="GeometryCollection"?K.geometries.forEach(function(fe){D(fe,ee)}):K.type in z&&z[K.type](K.arcs,ee)}var z={LineString:k,MultiLineString:M,Polygon:M,MultiPolygon:function(K,ee){K.forEach(function(fe){M(fe,ee)})}};x.forEach(D);for(var F in _)for(var I=_[F],W=I.length,B=0;B=2))throw new Error("n must be \u22652");I=x.bbox||n(x);var A=I[0],k=I[1],M=I[2],D=I[3],z;_={scale:[M-A?(M-A)/(z-1):1,D-k?(D-k)/(z-1):1],translate:[A,k]}}else I=x.bbox;var F=b(_),I,W,B=x.objects,X={};function G(K){return F(K)}function re(K){var ee;switch(K.type){case"GeometryCollection":ee={type:"GeometryCollection",geometries:K.geometries.map(re)};break;case"Point":ee={type:"Point",coordinates:G(K.coordinates)};break;case"MultiPoint":ee={type:"MultiPoint",coordinates:K.coordinates.map(G)};break;default:return K}return K.id!=null&&(ee.id=K.id),K.bbox!=null&&(ee.bbox=K.bbox),K.properties!=null&&(ee.properties=K.properties),ee}function ne(K){var ee=0,fe=1,he=K.length,De,Ne=new Array(he);for(Ne[0]=F(K[0],0);++ee{"use strict";var Y4=pN.exports={},qne=Nh().locationmodeToLayer,Dne=U4().feature;Y4.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};Y4.getTopojsonPath=function(e,r){return e+=e.endsWith("/")?"":"/",`${e}${r}.json`};Y4.getTopojsonFeatures=function(e,r){var t=qne[e.locationmode],n=r.objects[t];return Dne(r,n).features}});var gN=te(Fh=>{"use strict";var Ene=Rn().BADNUM;Fh.calcTraceToLineCoords=function(e){for(var r=e[0].trace,t=r.connectgaps,n=[],a=[],i=0;i0&&(n.push(a),a=[])}return a.length>0&&n.push(a),n};Fh.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};Fh.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var r=new Array(e.length),t=0;t{mN.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var Zm=te(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});var Hi=63710088e-1,V4={centimeters:Hi*100,centimetres:Hi*100,degrees:360/(2*Math.PI),feet:Hi*3.28084,inches:Hi*39.37,kilometers:Hi/1e3,kilometres:Hi/1e3,meters:Hi,metres:Hi,miles:Hi/1609.344,millimeters:Hi*1e3,millimetres:Hi*1e3,nauticalmiles:Hi/1852,radians:1,yards:Hi*1.0936},G4={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function df(e,r,t={}){let n={type:"Feature"};return(t.id===0||t.id)&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=r||{},n.geometry=e,n}function Pne(e,r,t={}){switch(e){case"Point":return W4(r).geometry;case"LineString":return X4(r).geometry;case"Polygon":return Z4(r).geometry;case"MultiPoint":return _N(r).geometry;case"MultiLineString":return bN(r).geometry;case"MultiPolygon":return xN(r).geometry;default:throw new Error(e+" is invalid")}}function W4(e,r,t={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Vm(e[0])||!Vm(e[1]))throw new Error("coordinates must contain numbers");return df({type:"Point",coordinates:e},r,t)}function Rne(e,r,t={}){return Wm(e.map(n=>W4(n,r)),t)}function Z4(e,r,t={}){for(let a of e){if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(a[a.length-1].length!==a[0].length)throw new Error("First and last Position are not equivalent.");for(let i=0;iZ4(n,r)),t)}function X4(e,r,t={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return df({type:"LineString",coordinates:e},r,t)}function Nne(e,r,t={}){return Wm(e.map(n=>X4(n,r)),t)}function Wm(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}function bN(e,r,t={}){return df({type:"MultiLineString",coordinates:e},r,t)}function _N(e,r,t={}){return df({type:"MultiPoint",coordinates:e},r,t)}function xN(e,r,t={}){return df({type:"MultiPolygon",coordinates:e},r,t)}function Fne(e,r,t={}){return df({type:"GeometryCollection",geometries:e},r,t)}function Ine(e,r=0){if(r&&!(r>=0))throw new Error("precision must be a positive number");let t=Math.pow(10,r||0);return Math.round(e*t)/t}function wN(e,r="kilometers"){let t=V4[r];if(!t)throw new Error(r+" units is invalid");return e*t}function j4(e,r="kilometers"){let t=V4[r];if(!t)throw new Error(r+" units is invalid");return e/t}function Hne(e,r){return MN(j4(e,r))}function Bne(e){let r=e%360;return r<0&&(r+=360),r}function One(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function MN(e){return e%(2*Math.PI)*180/Math.PI}function Une(e){return e%360*Math.PI/180}function Yne(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return wN(j4(e,r),t)}function Gne(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=G4[r];if(!n)throw new Error("invalid original units");let a=G4[t];if(!a)throw new Error("invalid final units");return e/n*a}function Vm(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Vne(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Wne(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(r=>{if(!Vm(r))throw new Error("bbox must only contain numbers")})}function Zne(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}hn.areaFactors=G4;hn.azimuthToBearing=One;hn.bearingToAzimuth=Bne;hn.convertArea=Gne;hn.convertLength=Yne;hn.degreesToRadians=Une;hn.earthRadius=Hi;hn.factors=V4;hn.feature=df;hn.featureCollection=Wm;hn.geometry=Pne;hn.geometryCollection=Fne;hn.isNumber=Vm;hn.isObject=Vne;hn.lengthToDegrees=Hne;hn.lengthToRadians=j4;hn.lineString=X4;hn.lineStrings=Nne;hn.multiLineString=bN;hn.multiPoint=_N;hn.multiPolygon=xN;hn.point=W4;hn.points=Rne;hn.polygon=Z4;hn.polygons=zne;hn.radiansToDegrees=MN;hn.radiansToLength=wN;hn.round=Ine;hn.validateBBox=Wne;hn.validateId=Zne});var jm=te(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var ii=Zm();function Ih(e,r,t){if(e!==null)for(var n,a,i,o,l,s,u,f=0,v=0,h,d=e.type,m=d==="FeatureCollection",p=d==="Feature",y=m?e.features.length:1,b=0;bs||m>u||p>f){l=v,s=n,u=m,f=p,i=0;return}var y=ii.lineString.call(void 0,[l,v],t.properties);if(r(y,n,a,p,i)===!1)return!1;i++,l=v})===!1)return!1}}})}function eae(e,r,t){var n=t,a=!1;return kN(e,function(i,o,l,s,u){a===!1&&t===void 0?n=i:n=r(n,i,o,l,s,u),a=!0}),n}function SN(e,r){if(!e)throw new Error("geojson is required");Xm(e,function(t,n,a){if(t.geometry!==null){var i=t.geometry.type,o=t.geometry.coordinates;switch(i){case"LineString":if(r(t,n,a,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var CN=Zm(),aae=jm();function DN(e){return aae.geomReduce.call(void 0,e,(r,t)=>r+iae(t),0)}function iae(e){let r=0,t;switch(e.type){case"Polygon":return LN(e.coordinates);case"MultiPolygon":for(t=0;t0){r+=Math.abs(qN(e[0]));for(let t=1;t=r?(n+2)%r:n+2],l=a[0]*$4,s=i[1]*$4,u=o[0]*$4;t+=(u-l)*Math.sin(s),n++}return t*oae}var lae=DN;Jm.area=DN;Jm.default=lae});var RN=te($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});var sae=Zm(),uae=jm();function PN(e,r={}){let t=0,n=0,a=0;return uae.coordEach.call(void 0,e,function(i){t+=i[0],n+=i[1],a++},!0),sae.point.call(void 0,[t/a,n/a],r.properties)}var fae=PN;$m.centroid=PN;$m.default=fae});var NN=te(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});var cae=jm();function zN(e,r={}){if(e.bbox!=null&&r.recompute!==!0)return e.bbox;let t=[1/0,1/0,-1/0,-1/0];return cae.coordEach.call(void 0,e,n=>{t[0]>n[0]&&(t[0]=n[0]),t[1]>n[1]&&(t[1]=n[1]),t[2]{"use strict";var hae=kt(),HN=yN(),{area:dae}=EN(),{centroid:pae}=RN(),{bbox:gae}=NN(),FN=Sd(),qv=Ru(),mae=Gs(),yae=$v(),Qm=bg(),IN=Object.keys(HN),bae={"ISO-3":FN,"USA-states":FN,"country names":_ae};function _ae(e){for(var r=0;r0&&f[v+1][0]<0)return v;return null}switch(n==="RUS"||n==="FJI"?i=function(f){var v;if(u(f)===null)v=f;else for(v=new Array(f.length),s=0;sv?h[d++]=[f[s][0]+360,f[s][1]]:s===v?(h[d++]=f[s],h[d++]=[f[s][0],-90]):h[d++]=f[s];var m=Qm.tester(h);m.pts.pop(),a.push(m)}:i=function(f){a.push(Qm.tester(f))},r.type){case"MultiPolygon":for(o=0;o0?m.properties.ct=Aae(m):m.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=m,a.push(m)}else qv.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[v]}switch(t.type){case"FeatureCollection":var s=t.features;for(i=0;ia&&(a=l,t=o)}else t=r;return pae(t).geometry.coordinates}function Tae(e){var r=window.PlotlyGeoAssets||{},t=[];function n(s){return new Promise(function(u,f){hae.json(s,function(v,h){if(v){delete r[s];var d=v.status===404?'GeoJSON at URL "'+s+'" does not exist.':"Unexpected error while fetching from "+s;return f(new Error(d))}return r[s]=h,u(h)})})}function a(s){return new Promise(function(u,f){var v=0,h=setInterval(function(){if(r[s]&&r[s]!=="pending")return clearInterval(h),u(r[s]);if(v>100)return clearInterval(h),f("Unexpected error while fetching from "+s);v++},50)})}for(var i=0;i{"use strict";var Sae=kt(),Cae=fn(),UN=Pt(),YN=_h(),Lae=YN.stylePoints,qae=YN.styleText;GN.exports=function(r,t){t&&Dae(r,t)};function Dae(e,r){var t=r[0].trace,n=r[0].node3;n.style("opacity",r[0].trace.opacity),Lae(n,t,e),qae(n,t,e),n.selectAll("path.js-line").style("fill","none").each(function(a){var i=Sae.select(this),o=a.trace,l=o.line||{};i.call(UN.stroke,l.color).call(Cae.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(UN.fill,o.fillcolor)})}});var t_=te((zve,ZN)=>{"use strict";var VN=kt(),ty=gr(),Eae=Gm().getTopojsonFeatures,Q4=gN(),ry=ey(),WN=Ju().findExtremes,r_=Rn().BADNUM,Pae=rm().calcMarkerSize,e_=Qa(),Rae=K4();function zae(e,r,t){var n=r.layers.frontplot.select(".scatterlayer"),a=ty.makeTraceGroups(n,t,"trace scattergeo");function i(o,l){o.lonlat[0]===r_&&VN.select(l).remove()}a.selectAll("*").remove(),a.each(function(o){var l=VN.select(this),s=o[0].trace;if(e_.hasLines(s)||s.fill!=="none"){var u=Q4.calcTraceToLineCoords(o),f=s.fill!=="none"?Q4.makePolygon(u):Q4.makeLine(u);l.selectAll("path.js-line").data([{geojson:f,trace:s}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}e_.hasMarkers(s)&&l.selectAll("path.point").data(ty.identity).enter().append("path").classed("point",!0).each(function(v){i(v,this)}),e_.hasText(s)&&l.selectAll("g").data(ty.identity).enter().append("g").append("text").each(function(v){i(v,this)}),Rae(e,o)})}function Nae(e,r){var t=e[0].trace,n=r[t.geo],a=n._subplot,i=t._length,o,l;if(ty.isArrayOrTypedArray(t.locations)){var s=t.locationmode,u=s==="geojson-id"?ry.extractTraceFeature(e):Eae(t,a.topojson);for(o=0;o{"use strict";var Fae=ss(),Iae=Rn().BADNUM,Hae=Ib(),Bae=gr().fillText,Oae=zh();XN.exports=function(r,t,n){var a=r.cd,i=a[0].trace,o=r.xa,l=r.ya,s=r.subplot,u=s.projection.isLonLatOverEdges,f=s.project;function v(C){var x=C.lonlat;if(x[0]===Iae||u(x))return 1/0;var _=f(x),A=f([t,n]),k=Math.abs(_[0]-A[0]),M=Math.abs(_[1]-A[1]),D=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(k*k+M*M)-D,1-3/D)}if(Fae.getClosest(a,v,r),r.index!==!1){var h=a[r.index],d=h.lonlat,m=[o.c2p(d),l.c2p(d)],p=h.mrc||1;r.x0=m[0]-p,r.x1=m[0]+p,r.y0=m[1]-p,r.y1=m[1]+p,r.loc=h.loc,r.lon=d[0],r.lat=d[1];var y={};y[i.geo]={_subplot:s};var b=i._module.formatLabels(h,i,y);return r.lonLabel=b.lonLabel,r.latLabel=b.latLabel,r.color=Hae(i,h),r.extraText=Uae(i,h,r,a[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function Uae(e,r,t,n){if(e.hovertemplate)return;var a=r.hi||e.hoverinfo,i=a==="all"?Oae.hoverinfo.flags:a.split("+"),o=i.indexOf("location")!==-1&&Array.isArray(e.locations),l=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=i.indexOf("text")!==-1,f=[];function v(h){return h+"\xB0"}return o?f.push(r.loc):l&&s?f.push("("+v(t.latLabel)+", "+v(t.lonLabel)+")"):l?f.push(n.lon+v(t.lonLabel)):s&&f.push(n.lat+v(t.latLabel)),u&&Bae(r,e,f),f.join("
")}});var $N=te((Fve,JN)=>{"use strict";JN.exports=function(r,t,n,a,i){r.lon=t.lon,r.lat=t.lat,r.location=t.loc?t.loc:null;var o=a[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r}});var eF=te((Ive,QN)=>{"use strict";var KN=Qa(),Yae=Rn().BADNUM;QN.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l=n[0].trace,s,u,f,v,h,d=!KN.hasMarkers(l)&&!KN.hasText(l);if(d)return[];if(t===!1)for(h=0;h{(function(e,r){r(typeof ny=="object"&&typeof rF!="undefined"?ny:e.d3=e.d3||{})})(ny,function(e){"use strict";function r(se,ye){return seye?1:se>=ye?0:NaN}function t(se){return se.length===1&&(se=n(se)),{left:function(ye,we,pe,U){for(pe==null&&(pe=0),U==null&&(U=ye.length);pe>>1;se(ye[Q],we)<0?pe=Q+1:U=Q}return pe},right:function(ye,we,pe,U){for(pe==null&&(pe=0),U==null&&(U=ye.length);pe>>1;se(ye[Q],we)>0?U=Q:pe=Q+1}return pe}}}function n(se){return function(ye,we){return r(se(ye),we)}}var a=t(r),i=a.right,o=a.left;function l(se,ye){ye==null&&(ye=s);for(var we=0,pe=se.length-1,U=se[0],Q=new Array(pe<0?0:pe);wese?1:ye>=se?0:NaN}function v(se){return se===null?NaN:+se}function h(se,ye){var we=se.length,pe=0,U=-1,Q=0,$,ke,Oe=0;if(ye==null)for(;++U1)return Oe/(pe-1)}function d(se,ye){var we=h(se,ye);return we&&Math.sqrt(we)}function m(se,ye){var we=se.length,pe=-1,U,Q,$;if(ye==null){for(;++pe=U)for(Q=$=U;++peU&&(Q=U),$=U)for(Q=$=U;++peU&&(Q=U),$0)return[se];if((pe=ye0)for(se=Math.ceil(se/ke),ye=Math.floor(ye/ke),$=new Array(Q=Math.ceil(ye-se+1));++U=0?(Q>=A?10:Q>=k?5:Q>=M?2:1)*Math.pow(10,U):-Math.pow(10,-U)/(Q>=A?10:Q>=k?5:Q>=M?2:1)}function F(se,ye,we){var pe=Math.abs(ye-se)/Math.max(0,we),U=Math.pow(10,Math.floor(Math.log(pe)/Math.LN10)),Q=pe/U;return Q>=A?U*=10:Q>=k?U*=5:Q>=M&&(U*=2),yeor;)Ue.pop(),--tr;var ur=new Array(tr+1),cr;for(Q=0;Q<=tr;++Q)cr=ur[Q]=[],cr.x0=Q>0?Ue[Q-1]:ir,cr.x1=Q=1)return+we(se[pe-1],pe-1,se);var pe,U=(pe-1)*ye,Q=Math.floor(U),$=+we(se[Q],Q,se),ke=+we(se[Q+1],Q+1,se);return $+(ke-$)*(U-Q)}}function X(se,ye,we){return se=b.call(se,v).sort(r),Math.ceil((we-ye)/(2*(B(se,.75)-B(se,.25))*Math.pow(se.length,-1/3)))}function G(se,ye,we){return Math.ceil((we-ye)/(3.5*d(se)*Math.pow(se.length,-1/3)))}function re(se,ye){var we=se.length,pe=-1,U,Q;if(ye==null){for(;++pe=U)for(Q=U;++peQ&&(Q=U)}else for(;++pe=U)for(Q=U;++peQ&&(Q=U);return Q}function ne(se,ye){var we=se.length,pe=we,U=-1,Q,$=0;if(ye==null)for(;++U=0;)for($=se[ye],we=$.length;--we>=0;)Q[--U]=$[we];return Q}function fe(se,ye){var we=se.length,pe=-1,U,Q;if(ye==null){for(;++pe=U)for(Q=U;++peU&&(Q=U)}else for(;++pe=U)for(Q=U;++peU&&(Q=U);return Q}function he(se,ye){for(var we=ye.length,pe=new Array(we);we--;)pe[we]=se[ye[we]];return pe}function De(se,ye){if(we=se.length){var we,pe=0,U=0,Q,$=se[U];for(ye==null&&(ye=r);++pe{(function(e,r){typeof ay=="object"&&typeof tF!="undefined"?r(ay,n_()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(ay,function(e,r){"use strict";function t(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(H){i(a,H,this.t),i(this,a.s,this.s),this.s?this.t+=a.t:this.s=a.t},valueOf:function(){return this.s}};var a=new n;function i(H,J,ce){var oe=H.s=J+ce,Me=oe-J,Be=oe-Me;H.t=J-Be+(ce-Me)}var o=1e-6,l=1e-12,s=Math.PI,u=s/2,f=s/4,v=s*2,h=180/s,d=s/180,m=Math.abs,p=Math.atan,y=Math.atan2,b=Math.cos,C=Math.ceil,x=Math.exp,_=Math.log,A=Math.pow,k=Math.sin,M=Math.sign||function(H){return H>0?1:H<0?-1:0},D=Math.sqrt,z=Math.tan;function F(H){return H>1?0:H<-1?s:Math.acos(H)}function I(H){return H>1?u:H<-1?-u:Math.asin(H)}function W(H){return(H=k(H/2))*H}function B(){}function X(H,J){H&&re.hasOwnProperty(H.type)&&re[H.type](H,J)}var G={Feature:function(H,J){X(H.geometry,J)},FeatureCollection:function(H,J){for(var ce=H.features,oe=-1,Me=ce.length;++oe=0?1:-1,Me=oe*ce,Be=b(J),Je=k(J),nr=Le*Je,lr=Xe*Be+nr*b(Me),yr=nr*oe*k(Me);fe.add(y(yr,lr)),Fe=H,Xe=Be,Le=Je}function U(H){return he.reset(),ee(H,rr),he*2}function Q(H){return[y(H[1],H[0]),I(H[2])]}function $(H){var J=H[0],ce=H[1],oe=b(ce);return[oe*b(J),oe*k(J),k(ce)]}function ke(H,J){return H[0]*J[0]+H[1]*J[1]+H[2]*J[2]}function Oe(H,J){return[H[1]*J[2]-H[2]*J[1],H[2]*J[0]-H[0]*J[2],H[0]*J[1]-H[1]*J[0]]}function Ie(H,J){H[0]+=J[0],H[1]+=J[1],H[2]+=J[2]}function ir(H,J){return[H[0]*J,H[1]*J,H[2]*J]}function or(H){var J=D(H[0]*H[0]+H[1]*H[1]+H[2]*H[2]);H[0]/=J,H[1]/=J,H[2]/=J}var Ue,tr,ur,cr,Qe,pr,dr,Te,Ye=t(),Ar,Nr,Er={point:Ae,lineStart:hr,lineEnd:wr,polygonStart:function(){Er.point=mr,Er.lineStart=Tr,Er.lineEnd=Dr,Ye.reset(),rr.polygonStart()},polygonEnd:function(){rr.polygonEnd(),Er.point=Ae,Er.lineStart=hr,Er.lineEnd=wr,fe<0?(Ue=-(ur=180),tr=-(cr=90)):Ye>o?cr=90:Ye<-o&&(tr=-90),Nr[0]=Ue,Nr[1]=ur},sphere:function(){Ue=-(ur=180),tr=-(cr=90)}};function Ae(H,J){Ar.push(Nr=[Ue=H,ur=H]),Jcr&&(cr=J)}function je(H,J){var ce=$([H*d,J*d]);if(Te){var oe=Oe(Te,ce),Me=[oe[1],-oe[0],0],Be=Oe(Me,oe);or(Be),Be=Q(Be);var Je=H-Qe,nr=Je>0?1:-1,lr=Be[0]*h*nr,yr,Ke=m(Je)>180;Ke^(nr*Qecr&&(cr=yr)):(lr=(lr+360)%360-180,Ke^(nr*Qecr&&(cr=J))),Ke?HOr(Ue,ur)&&(ur=H):Or(H,ur)>Or(Ue,ur)&&(Ue=H):ur>=Ue?(Hur&&(ur=H)):H>Qe?Or(Ue,H)>Or(Ue,ur)&&(ur=H):Or(H,ur)>Or(Ue,ur)&&(Ue=H)}else Ar.push(Nr=[Ue=H,ur=H]);Jcr&&(cr=J),Te=ce,Qe=H}function hr(){Er.point=je}function wr(){Nr[0]=Ue,Nr[1]=ur,Er.point=Ae,Te=null}function mr(H,J){if(Te){var ce=H-Qe;Ye.add(m(ce)>180?ce+(ce>0?360:-360):ce)}else pr=H,dr=J;rr.point(H,J),je(H,J)}function Tr(){rr.lineStart()}function Dr(){mr(pr,dr),rr.lineEnd(),m(Ye)>o&&(Ue=-(ur=180)),Nr[0]=Ue,Nr[1]=ur,Te=null}function Or(H,J){return(J-=H)<0?J+360:J}function Cr(H,J){return H[0]-J[0]}function ar(H,J){return H[0]<=H[1]?H[0]<=J&&J<=H[1]:JOr(oe[0],oe[1])&&(oe[1]=Me[1]),Or(Me[0],oe[1])>Or(oe[0],oe[1])&&(oe[0]=Me[0])):Be.push(oe=Me);for(Je=-1/0,ce=Be.length-1,J=0,oe=Be[ce];J<=ce;oe=Me,++J)Me=Be[J],(nr=Or(oe[1],Me[0]))>Je&&(Je=nr,Ue=Me[0],ur=oe[1])}return Ar=Nr=null,Ue===1/0||tr===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ue,tr],[ur,cr]]}var Se,$e,Ze,qr,Hr,Pr,lt,xt,Nt,Ht,An,Tn,cn,Ft,jt,en,Jt={sphere:B,point:aa,lineStart:rn,lineEnd:pn,polygonStart:function(){Jt.lineStart=an,Jt.lineEnd=vn},polygonEnd:function(){Jt.lineStart=rn,Jt.lineEnd=pn}};function aa(H,J){H*=d,J*=d;var ce=b(J);rt(ce*b(H),ce*k(H),k(J))}function rt(H,J,ce){++Se,Ze+=(H-Ze)/Se,qr+=(J-qr)/Se,Hr+=(ce-Hr)/Se}function rn(){Jt.point=St}function St(H,J){H*=d,J*=d;var ce=b(J);Ft=ce*b(H),jt=ce*k(H),en=k(J),Jt.point=dn,rt(Ft,jt,en)}function dn(H,J){H*=d,J*=d;var ce=b(J),oe=ce*b(H),Me=ce*k(H),Be=k(J),Je=y(D((Je=jt*Be-en*Me)*Je+(Je=en*oe-Ft*Be)*Je+(Je=Ft*Me-jt*oe)*Je),Ft*oe+jt*Me+en*Be);$e+=Je,Pr+=Je*(Ft+(Ft=oe)),lt+=Je*(jt+(jt=Me)),xt+=Je*(en+(en=Be)),rt(Ft,jt,en)}function pn(){Jt.point=aa}function an(){Jt.point=da}function vn(){qn(Tn,cn),Jt.point=aa}function da(H,J){Tn=H,cn=J,H*=d,J*=d,Jt.point=qn;var ce=b(J);Ft=ce*b(H),jt=ce*k(H),en=k(J),rt(Ft,jt,en)}function qn(H,J){H*=d,J*=d;var ce=b(J),oe=ce*b(H),Me=ce*k(H),Be=k(J),Je=jt*Be-en*Me,nr=en*oe-Ft*Be,lr=Ft*Me-jt*oe,yr=D(Je*Je+nr*nr+lr*lr),Ke=I(yr),vr=yr&&-Ke/yr;Nt+=vr*Je,Ht+=vr*nr,An+=vr*lr,$e+=Ke,Pr+=Ke*(Ft+(Ft=oe)),lt+=Ke*(jt+(jt=Me)),xt+=Ke*(en+(en=Be)),rt(Ft,jt,en)}function Na(H){Se=$e=Ze=qr=Hr=Pr=lt=xt=Nt=Ht=An=0,ee(H,Jt);var J=Nt,ce=Ht,oe=An,Me=J*J+ce*ce+oe*oe;return Mes?H+Math.round(-H/v)*v:H,J]}Bt.invert=Bt;function Bn(H,J,ce){return(H%=v)?J||ce?wn(io(H),gi(J,ce)):io(H):J||ce?gi(J,ce):Bt}function pi(H){return function(J,ce){return J+=H,[J>s?J-v:J<-s?J+v:J,ce]}}function io(H){var J=pi(H);return J.invert=pi(-H),J}function gi(H,J){var ce=b(H),oe=k(H),Me=b(J),Be=k(J);function Je(nr,lr){var yr=b(lr),Ke=b(nr)*yr,vr=k(nr)*yr,sr=k(lr),xr=sr*ce+Ke*oe;return[y(vr*Me-xr*Be,Ke*ce-sr*oe),I(xr*Me+vr*Be)]}return Je.invert=function(nr,lr){var yr=b(lr),Ke=b(nr)*yr,vr=k(nr)*yr,sr=k(lr),xr=sr*Me-vr*Be;return[y(vr*Me+sr*Be,Ke*ce+xr*oe),I(xr*ce-Ke*oe)]},Je}function ms(H){H=Bn(H[0]*d,H[1]*d,H.length>2?H[2]*d:0);function J(ce){return ce=H(ce[0]*d,ce[1]*d),ce[0]*=h,ce[1]*=h,ce}return J.invert=function(ce){return ce=H.invert(ce[0]*d,ce[1]*d),ce[0]*=h,ce[1]*=h,ce},J}function El(H,J,ce,oe,Me,Be){if(ce){var Je=b(J),nr=k(J),lr=oe*ce;Me==null?(Me=J+oe*v,Be=J-lr/2):(Me=Bo(Je,Me),Be=Bo(Je,Be),(oe>0?MeBe)&&(Me+=oe*v));for(var yr,Ke=Me;oe>0?Ke>Be:Ke1&&H.push(H.pop().concat(H.shift()))},result:function(){var ce=H;return H=[],J=null,ce}}}function On(H,J){return m(H[0]-J[0])=0;--nr)Me.point((vr=Ke[nr])[0],vr[1]);else oe(sr.x,sr.p.x,-1,Me);sr=sr.p}sr=sr.o,Ke=sr.z,xr=!xr}while(!sr.v);Me.lineEnd()}}}function yi(H){if(J=H.length){for(var J,ce=0,oe=H[0],Me;++ce=0?1:-1,Zt=tn*Vt,gn=Zt>s,Lt=et*it;if(Kr.add(y(Lt*tn*k(Zt),jr*pt+Lt*b(Zt))),Je+=gn?Vt+tn*v:Vt,gn^xr>=ce^Lr>=ce){var ia=Oe($(sr),$(nt));or(ia);var Nn=Oe(Be,ia);or(Nn);var mn=(gn^Vt>=0?-1:1)*I(Nn[2]);(oe>mn||oe===mn&&(ia[0]||ia[1]))&&(nr+=gn^Vt>=0?1:-1)}}return(Je<-o||Je0){for(lr||(Me.polygonStart(),lr=!0),Me.lineStart(),pt=0;pt1&&Br&2&&it.push(it.pop().concat(it.shift())),Ke.push(it.filter(Wn))}}return sr}}function Wn(H){return H.length>1}function on(H,J){return((H=H.x)[0]<0?H[1]-u-o:u-H[1])-((J=J.x)[0]<0?J[1]-u-o:u-J[1])}var Pn=Ur(function(){return!0},At,Yo,[-s,-u]);function At(H){var J=NaN,ce=NaN,oe=NaN,Me;return{lineStart:function(){H.lineStart(),Me=1},point:function(Be,Je){var nr=Be>0?s:-s,lr=m(Be-J);m(lr-s)0?u:-u),H.point(oe,ce),H.lineEnd(),H.lineStart(),H.point(nr,ce),H.point(Be,ce),Me=0):oe!==nr&&lr>=s&&(m(J-oe)o?p((k(J)*(Be=b(oe))*k(ce)-k(oe)*(Me=b(J))*k(H))/(Me*Be*Je)):(J+oe)/2}function Yo(H,J,ce,oe){var Me;if(H==null)Me=ce*u,oe.point(-s,Me),oe.point(0,Me),oe.point(s,Me),oe.point(s,0),oe.point(s,-Me),oe.point(0,-Me),oe.point(-s,-Me),oe.point(-s,0),oe.point(-s,Me);else if(m(H[0]-J[0])>o){var Be=H[0]0,Me=m(J)>o;function Be(Ke,vr,sr,xr){El(xr,H,ce,sr,Ke,vr)}function Je(Ke,vr){return b(Ke)*b(vr)>J}function nr(Ke){var vr,sr,xr,Sr,et;return{lineStart:function(){Sr=xr=!1,et=1},point:function(jr,tt){var nt=[jr,tt],Lr,Br=Je(jr,tt),it=oe?Br?0:yr(jr,tt):Br?yr(jr+(jr<0?s:-s),tt):0;if(!vr&&(Sr=xr=Br)&&Ke.lineStart(),Br!==xr&&(Lr=lr(vr,nt),(!Lr||On(vr,Lr)||On(nt,Lr))&&(nt[2]=1)),Br!==xr)et=0,Br?(Ke.lineStart(),Lr=lr(nt,vr),Ke.point(Lr[0],Lr[1])):(Lr=lr(vr,nt),Ke.point(Lr[0],Lr[1],2),Ke.lineEnd()),vr=Lr;else if(Me&&vr&&oe^Br){var pt;!(it&sr)&&(pt=lr(nt,vr,!0))&&(et=0,oe?(Ke.lineStart(),Ke.point(pt[0][0],pt[0][1]),Ke.point(pt[1][0],pt[1][1]),Ke.lineEnd()):(Ke.point(pt[1][0],pt[1][1]),Ke.lineEnd(),Ke.lineStart(),Ke.point(pt[0][0],pt[0][1],3)))}Br&&(!vr||!On(vr,nt))&&Ke.point(nt[0],nt[1]),vr=nt,xr=Br,sr=it},lineEnd:function(){xr&&Ke.lineEnd(),vr=null},clean:function(){return et|(Sr&&xr)<<1}}}function lr(Ke,vr,sr){var xr=$(Ke),Sr=$(vr),et=[1,0,0],jr=Oe(xr,Sr),tt=ke(jr,jr),nt=jr[0],Lr=tt-nt*nt;if(!Lr)return!sr&&Ke;var Br=J*tt/Lr,it=-J*nt/Lr,pt=Oe(et,jr),Vt=ir(et,Br),tn=ir(jr,it);Ie(Vt,tn);var Zt=pt,gn=ke(Vt,Zt),Lt=ke(Zt,Zt),ia=gn*gn-Lt*(ke(Vt,Vt)-1);if(!(ia<0)){var Nn=D(ia),mn=ir(Zt,(-gn-Nn)/Lt);if(Ie(mn,Vt),mn=Q(mn),!sr)return mn;var Gr=Ke[0],Wt=vr[0],Un=Ke[1],ga=vr[1],Xa;Wt0^mn[1]<(m(mn[0]-Gr)s^(Gr<=mn[0]&&mn[0]<=Wt)){var si=ir(Zt,(-gn+Nn)/Lt);return Ie(si,Vt),[mn,Q(si)]}}}function yr(Ke,vr){var sr=oe?H:s-H,xr=0;return Ke<-sr?xr|=1:Ke>sr&&(xr|=2),vr<-sr?xr|=4:vr>sr&&(xr|=8),xr}return Ur(Je,nr,Be,oe?[0,-H]:[-s,H-s])}function vu(H,J,ce,oe,Me,Be){var Je=H[0],nr=H[1],lr=J[0],yr=J[1],Ke=0,vr=1,sr=lr-Je,xr=yr-nr,Sr;if(Sr=ce-Je,!(!sr&&Sr>0)){if(Sr/=sr,sr<0){if(Sr0){if(Sr>vr)return;Sr>Ke&&(Ke=Sr)}if(Sr=Me-Je,!(!sr&&Sr<0)){if(Sr/=sr,sr<0){if(Sr>vr)return;Sr>Ke&&(Ke=Sr)}else if(sr>0){if(Sr0)){if(Sr/=xr,xr<0){if(Sr0){if(Sr>vr)return;Sr>Ke&&(Ke=Sr)}if(Sr=Be-nr,!(!xr&&Sr<0)){if(Sr/=xr,xr<0){if(Sr>vr)return;Sr>Ke&&(Ke=Sr)}else if(xr>0){if(Sr0&&(H[0]=Je+Ke*sr,H[1]=nr+Ke*xr),vr<1&&(J[0]=Je+vr*sr,J[1]=nr+vr*xr),!0}}}}}var oo=1e9,Go=-oo;function Vo(H,J,ce,oe){function Me(yr,Ke){return H<=yr&&yr<=ce&&J<=Ke&&Ke<=oe}function Be(yr,Ke,vr,sr){var xr=0,Sr=0;if(yr==null||(xr=Je(yr,vr))!==(Sr=Je(Ke,vr))||lr(yr,Ke)<0^vr>0)do sr.point(xr===0||xr===3?H:ce,xr>1?oe:J);while((xr=(xr+vr+4)%4)!==Sr);else sr.point(Ke[0],Ke[1])}function Je(yr,Ke){return m(yr[0]-H)0?0:3:m(yr[0]-ce)0?2:1:m(yr[1]-J)0?1:0:Ke>0?3:2}function nr(yr,Ke){return lr(yr.x,Ke.x)}function lr(yr,Ke){var vr=Je(yr,1),sr=Je(Ke,1);return vr!==sr?vr-sr:vr===0?Ke[1]-yr[1]:vr===1?yr[0]-Ke[0]:vr===2?yr[1]-Ke[1]:Ke[0]-yr[0]}return function(yr){var Ke=yr,vr=Oo(),sr,xr,Sr,et,jr,tt,nt,Lr,Br,it,pt,Vt={point:tn,lineStart:ia,lineEnd:Nn,polygonStart:gn,polygonEnd:Lt};function tn(Gr,Wt){Me(Gr,Wt)&&Ke.point(Gr,Wt)}function Zt(){for(var Gr=0,Wt=0,Un=xr.length;Wtoe&&(al-nl)*(oe-si)>(Zl-si)*(H-nl)&&++Gr:Zl<=oe&&(al-nl)*(oe-si)<(Zl-si)*(H-nl)&&--Gr;return Gr}function gn(){Ke=vr,sr=[],xr=[],pt=!0}function Lt(){var Gr=Zt(),Wt=pt&&Gr,Un=(sr=r.merge(sr)).length;(Wt||Un)&&(yr.polygonStart(),Wt&&(yr.lineStart(),Be(null,null,1,yr),yr.lineEnd()),Un&&Uo(sr,nr,Gr,Be,yr),yr.polygonEnd()),Ke=yr,sr=xr=Sr=null}function ia(){Vt.point=mn,xr&&xr.push(Sr=[]),it=!0,Br=!1,nt=Lr=NaN}function Nn(){sr&&(mn(et,jr),tt&&Br&&vr.rejoin(),sr.push(vr.result())),Vt.point=tn,Br&&Ke.lineEnd()}function mn(Gr,Wt){var Un=Me(Gr,Wt);if(xr&&Sr.push([Gr,Wt]),it)et=Gr,jr=Wt,tt=Un,it=!1,Un&&(Ke.lineStart(),Ke.point(Gr,Wt));else if(Un&&Br)Ke.point(Gr,Wt);else{var ga=[nt=Math.max(Go,Math.min(oo,nt)),Lr=Math.max(Go,Math.min(oo,Lr))],Xa=[Gr=Math.max(Go,Math.min(oo,Gr)),Wt=Math.max(Go,Math.min(oo,Wt))];vu(ga,Xa,H,J,ce,oe)?(Br||(Ke.lineStart(),Ke.point(ga[0],ga[1])),Ke.point(Xa[0],Xa[1]),Un||Ke.lineEnd(),pt=!1):Un&&(Ke.lineStart(),Ke.point(Gr,Wt),pt=!1)}nt=Gr,Lr=Wt,Br=Un}return Vt}}function hu(){var H=0,J=0,ce=960,oe=500,Me,Be,Je;return Je={stream:function(nr){return Me&&Be===nr?Me:Me=Vo(H,J,ce,oe)(Be=nr)},extent:function(nr){return arguments.length?(H=+nr[0][0],J=+nr[0][1],ce=+nr[1][0],oe=+nr[1][1],Me=Be=null,Je):[[H,J],[ce,oe]]}}}var Pl=t(),Rl,bi,lo,Wo={sphere:B,point:B,lineStart:zl,lineEnd:B,polygonStart:B,polygonEnd:B};function zl(){Wo.point=Mf,Wo.lineEnd=bs}function bs(){Wo.point=Wo.lineEnd=B}function Mf(H,J){H*=d,J*=d,Rl=H,bi=k(J),lo=b(J),Wo.point=Zc}function Zc(H,J){H*=d,J*=d;var ce=k(J),oe=b(J),Me=m(H-Rl),Be=b(Me),Je=k(Me),nr=oe*Je,lr=lo*ce-bi*oe*Be,yr=bi*ce+lo*oe*Be;Pl.add(y(D(nr*nr+lr*lr),yr)),Rl=H,bi=ce,lo=oe}function _s(H){return Pl.reset(),ee(H,Wo),+Pl}var xs=[null,null],ws={type:"LineString",coordinates:xs};function Zo(H,J){return xs[0]=H,xs[1]=J,_s(ws)}var so={Feature:function(H,J){return Bi(H.geometry,J)},FeatureCollection:function(H,J){for(var ce=H.features,oe=-1,Me=ce.length;++oe0&&(Me=Zo(H[Be],H[Be-1]),Me>0&&ce<=Me&&oe<=Me&&(ce+oe-Me)*(1-Math.pow((ce-oe)/Me,2))o}).map(sr)).concat(r.range(C(Be/yr)*yr,Me,yr).filter(function(Lr){return m(Lr%vr)>o}).map(xr))}return tt.lines=function(){return nt().map(function(Lr){return{type:"LineString",coordinates:Lr}})},tt.outline=function(){return{type:"Polygon",coordinates:[Sr(oe).concat(et(Je).slice(1),Sr(ce).reverse().slice(1),et(nr).reverse().slice(1))]}},tt.extent=function(Lr){return arguments.length?tt.extentMajor(Lr).extentMinor(Lr):tt.extentMinor()},tt.extentMajor=function(Lr){return arguments.length?(oe=+Lr[0][0],ce=+Lr[1][0],nr=+Lr[0][1],Je=+Lr[1][1],oe>ce&&(Lr=oe,oe=ce,ce=Lr),nr>Je&&(Lr=nr,nr=Je,Je=Lr),tt.precision(jr)):[[oe,nr],[ce,Je]]},tt.extentMinor=function(Lr){return arguments.length?(J=+Lr[0][0],H=+Lr[1][0],Be=+Lr[0][1],Me=+Lr[1][1],J>H&&(Lr=J,J=H,H=Lr),Be>Me&&(Lr=Be,Be=Me,Me=Lr),tt.precision(jr)):[[J,Be],[H,Me]]},tt.step=function(Lr){return arguments.length?tt.stepMajor(Lr).stepMinor(Lr):tt.stepMinor()},tt.stepMajor=function(Lr){return arguments.length?(Ke=+Lr[0],vr=+Lr[1],tt):[Ke,vr]},tt.stepMinor=function(Lr){return arguments.length?(lr=+Lr[0],yr=+Lr[1],tt):[lr,yr]},tt.precision=function(Lr){return arguments.length?(jr=+Lr,sr=Oi(Be,Me,90),xr=As(J,H,jr),Sr=Oi(nr,Je,90),et=As(oe,ce,jr),tt):jr},tt.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ts(){return jc()()}function Fv(H,J){var ce=H[0]*d,oe=H[1]*d,Me=J[0]*d,Be=J[1]*d,Je=b(oe),nr=k(oe),lr=b(Be),yr=k(Be),Ke=Je*b(ce),vr=Je*k(ce),sr=lr*b(Me),xr=lr*k(Me),Sr=2*I(D(W(Be-oe)+Je*lr*W(Me-ce))),et=k(Sr),jr=Sr?function(tt){var nt=k(tt*=Sr)/et,Lr=k(Sr-tt)/et,Br=Lr*Ke+nt*sr,it=Lr*vr+nt*xr,pt=Lr*nr+nt*yr;return[y(it,Br)*h,y(pt,D(Br*Br+it*it))*h]}:function(){return[ce*h,oe*h]};return jr.distance=Sr,jr}function Xo(H){return H}var kf=t(),Fl=t(),Jc,fo,co,Sf,_i={point:B,lineStart:B,lineEnd:B,polygonStart:function(){_i.lineStart=Iv,_i.lineEnd=Hv},polygonEnd:function(){_i.lineStart=_i.lineEnd=_i.point=B,kf.add(m(Fl)),Fl.reset()},result:function(){var H=kf/2;return kf.reset(),H}};function Iv(){_i.point=Ui}function Ui(H,J){_i.point=Il,Jc=co=H,fo=Sf=J}function Il(H,J){Fl.add(Sf*H-co*J),co=H,Sf=J}function Hv(){Il(Jc,fo)}var Yi=1/0,jo=Yi,Jo=-Yi,$o=Jo,vo={point:ks,lineStart:B,lineEnd:B,polygonStart:B,polygonEnd:B,result:function(){var H=[[Yi,jo],[Jo,$o]];return Jo=$o=-(jo=Yi=1/0),H}};function ks(H,J){HJo&&(Jo=H),J$o&&($o=J)}var pu=0,Ss=0,Cs=0,Ko=0,Hl=0,Bl=0,gu=0,mu=0,oi=0,yu,bu,Fa,Kn,Aa={point:Gi,lineStart:Ls,lineEnd:Cf,polygonStart:function(){Aa.lineStart=$c,Aa.lineEnd=Bv},polygonEnd:function(){Aa.point=Gi,Aa.lineStart=Ls,Aa.lineEnd=Cf},result:function(){var H=oi?[gu/oi,mu/oi]:Bl?[Ko/Bl,Hl/Bl]:Cs?[pu/Cs,Ss/Cs]:[NaN,NaN];return pu=Ss=Cs=Ko=Hl=Bl=gu=mu=oi=0,H}};function Gi(H,J){pu+=H,Ss+=J,++Cs}function Ls(){Aa.point=Qo}function Qo(H,J){Aa.point=Ol,Gi(Fa=H,Kn=J)}function Ol(H,J){var ce=H-Fa,oe=J-Kn,Me=D(ce*ce+oe*oe);Ko+=Me*(Fa+H)/2,Hl+=Me*(Kn+J)/2,Bl+=Me,Gi(Fa=H,Kn=J)}function Cf(){Aa.point=Gi}function $c(){Aa.point=Ov}function Bv(){Lf(yu,bu)}function Ov(H,J){Aa.point=Lf,Gi(yu=Fa=H,bu=Kn=J)}function Lf(H,J){var ce=H-Fa,oe=J-Kn,Me=D(ce*ce+oe*oe);Ko+=Me*(Fa+H)/2,Hl+=Me*(Kn+J)/2,Bl+=Me,Me=Kn*H-Fa*J,gu+=Me*(Fa+H),mu+=Me*(Kn+J),oi+=Me*3,Gi(Fa=H,Kn=J)}function qf(H){this._context=H}qf.prototype={_radius:4.5,pointRadius:function(H){return this._radius=H,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(H,J){switch(this._point){case 0:{this._context.moveTo(H,J),this._point=1;break}case 1:{this._context.lineTo(H,J);break}default:{this._context.moveTo(H+this._radius,J),this._context.arc(H,J,this._radius,0,v);break}}},result:B};var Df=t(),Ef,Kc,Qc,qs,Ds,xi={point:B,lineStart:function(){xi.point=_u},lineEnd:function(){Ef&&Es(Kc,Qc),xi.point=B},polygonStart:function(){Ef=!0},polygonEnd:function(){Ef=null},result:function(){var H=+Df;return Df.reset(),H}};function _u(H,J){xi.point=Es,Kc=qs=H,Qc=Ds=J}function Es(H,J){qs-=H,Ds-=J,Df.add(D(qs*qs+Ds*Ds)),qs=H,Ds=J}function xu(){this._string=[]}xu.prototype={_radius:4.5,_circle:e0(4.5),pointRadius:function(H){return(H=+H)!==this._radius&&(this._radius=H,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(H,J){switch(this._point){case 0:{this._string.push("M",H,",",J),this._point=1;break}case 1:{this._string.push("L",H,",",J);break}default:{this._circle==null&&(this._circle=e0(this._radius)),this._string.push("M",H,",",J,this._circle);break}}},result:function(){if(this._string.length){var H=this._string.join("");return this._string=[],H}else return null}};function e0(H){return"m0,"+H+"a"+H+","+H+" 0 1,1 0,"+-2*H+"a"+H+","+H+" 0 1,1 0,"+2*H+"z"}function Pf(H,J){var ce=4.5,oe,Me;function Be(Je){return Je&&(typeof ce=="function"&&Me.pointRadius(+ce.apply(this,arguments)),ee(Je,oe(Me))),Me.result()}return Be.area=function(Je){return ee(Je,oe(_i)),_i.result()},Be.measure=function(Je){return ee(Je,oe(xi)),xi.result()},Be.bounds=function(Je){return ee(Je,oe(vo)),vo.result()},Be.centroid=function(Je){return ee(Je,oe(Aa)),Aa.result()},Be.projection=function(Je){return arguments.length?(oe=Je==null?(H=null,Xo):(H=Je).stream,Be):H},Be.context=function(Je){return arguments.length?(Me=Je==null?(J=null,new xu):new qf(J=Je),typeof ce!="function"&&Me.pointRadius(ce),Be):J},Be.pointRadius=function(Je){return arguments.length?(ce=typeof Je=="function"?Je:(Me.pointRadius(+Je),+Je),Be):ce},Be.projection(H).context(J)}function Uv(H){return{stream:ho(H)}}function ho(H){return function(J){var ce=new wu;for(var oe in H)ce[oe]=H[oe];return ce.stream=J,ce}}function wu(){}wu.prototype={constructor:wu,point:function(H,J){this.stream.point(H,J)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Ul(H,J,ce){var oe=H.clipExtent&&H.clipExtent();return H.scale(150).translate([0,0]),oe!=null&&H.clipExtent(null),ee(ce,H.stream(vo)),J(vo.result()),oe!=null&&H.clipExtent(oe),H}function Ps(H,J,ce){return Ul(H,function(oe){var Me=J[1][0]-J[0][0],Be=J[1][1]-J[0][1],Je=Math.min(Me/(oe[1][0]-oe[0][0]),Be/(oe[1][1]-oe[0][1])),nr=+J[0][0]+(Me-Je*(oe[1][0]+oe[0][0]))/2,lr=+J[0][1]+(Be-Je*(oe[1][1]+oe[0][1]))/2;H.scale(150*Je).translate([nr,lr])},ce)}function Rs(H,J,ce){return Ps(H,[[0,0],J],ce)}function Rf(H,J,ce){return Ul(H,function(oe){var Me=+J,Be=Me/(oe[1][0]-oe[0][0]),Je=(Me-Be*(oe[1][0]+oe[0][0]))/2,nr=-Be*oe[0][1];H.scale(150*Be).translate([Je,nr])},ce)}function po(H,J,ce){return Ul(H,function(oe){var Me=+J,Be=Me/(oe[1][1]-oe[0][1]),Je=-Be*oe[0][0],nr=(Me-Be*(oe[1][1]+oe[0][1]))/2;H.scale(150*Be).translate([Je,nr])},ce)}var r0=16,zf=b(30*d);function t0(H,J){return+J?Mu(H,J):Nf(H)}function Nf(H){return ho({point:function(J,ce){J=H(J,ce),this.stream.point(J[0],J[1])}})}function Mu(H,J){function ce(oe,Me,Be,Je,nr,lr,yr,Ke,vr,sr,xr,Sr,et,jr){var tt=yr-oe,nt=Ke-Me,Lr=tt*tt+nt*nt;if(Lr>4*J&&et--){var Br=Je+sr,it=nr+xr,pt=lr+Sr,Vt=D(Br*Br+it*it+pt*pt),tn=I(pt/=Vt),Zt=m(m(pt)-1)J||m((tt*Nn+nt*mn)/Lr-.5)>.3||Je*sr+nr*xr+lr*Sr2?Gr[2]%360*d:0,Nn()):[nr*h,lr*h,yr*h]},Lt.angle=function(Gr){return arguments.length?(vr=Gr%360*d,Nn()):vr*h},Lt.reflectX=function(Gr){return arguments.length?(sr=Gr?-1:1,Nn()):sr<0},Lt.reflectY=function(Gr){return arguments.length?(xr=Gr?-1:1,Nn()):xr<0},Lt.precision=function(Gr){return arguments.length?(pt=t0(Vt,it=Gr*Gr),mn()):D(it)},Lt.fitExtent=function(Gr,Wt){return Ps(Lt,Gr,Wt)},Lt.fitSize=function(Gr,Wt){return Rs(Lt,Gr,Wt)},Lt.fitWidth=function(Gr,Wt){return Rf(Lt,Gr,Wt)},Lt.fitHeight=function(Gr,Wt){return po(Lt,Gr,Wt)};function Nn(){var Gr=Hf(ce,0,0,sr,xr,vr).apply(null,J(Be,Je)),Wt=(vr?Hf:Yv)(ce,oe-Gr[0],Me-Gr[1],sr,xr,vr);return Ke=Bn(nr,lr,yr),Vt=wn(J,Wt),tn=wn(Ke,Vt),pt=t0(Vt,it),mn()}function mn(){return Zt=gn=null,Lt}return function(){return J=H.apply(this,arguments),Lt.invert=J.invert&&ia,Nn()}}function Yl(H){var J=0,ce=s/3,oe=Bf(H),Me=oe(J,ce);return Me.parallels=function(Be){return arguments.length?oe(J=Be[0]*d,ce=Be[1]*d):[J*h,ce*h]},Me}function Of(H){var J=b(H);function ce(oe,Me){return[oe*J,k(Me)/J]}return ce.invert=function(oe,Me){return[oe/J,I(Me*J)]},ce}function n0(H,J){var ce=k(H),oe=(ce+k(J))/2;if(m(oe)=.12&&jr<.234&&et>=-.425&&et<-.214?Me:jr>=.166&&jr<.234&&et>=-.214&&et<-.115?Je:ce).invert(sr)},Ke.stream=function(sr){return H&&J===sr?H:H=Gv([ce.stream(J=sr),Me.stream(sr),Je.stream(sr)])},Ke.precision=function(sr){return arguments.length?(ce.precision(sr),Me.precision(sr),Je.precision(sr),vr()):ce.precision()},Ke.scale=function(sr){return arguments.length?(ce.scale(sr),Me.scale(sr*.35),Je.scale(sr),Ke.translate(ce.translate())):ce.scale()},Ke.translate=function(sr){if(!arguments.length)return ce.translate();var xr=ce.scale(),Sr=+sr[0],et=+sr[1];return oe=ce.translate(sr).clipExtent([[Sr-.455*xr,et-.238*xr],[Sr+.455*xr,et+.238*xr]]).stream(yr),Be=Me.translate([Sr-.307*xr,et+.201*xr]).clipExtent([[Sr-.425*xr+o,et+.12*xr+o],[Sr-.214*xr-o,et+.234*xr-o]]).stream(yr),nr=Je.translate([Sr-.205*xr,et+.212*xr]).clipExtent([[Sr-.214*xr+o,et+.166*xr+o],[Sr-.115*xr-o,et+.234*xr-o]]).stream(yr),vr()},Ke.fitExtent=function(sr,xr){return Ps(Ke,sr,xr)},Ke.fitSize=function(sr,xr){return Rs(Ke,sr,xr)},Ke.fitWidth=function(sr,xr){return Rf(Ke,sr,xr)},Ke.fitHeight=function(sr,xr){return po(Ke,sr,xr)};function vr(){return H=J=null,Ke}return Ke.scale(1070)}function Vi(H){return function(J,ce){var oe=b(J),Me=b(ce),Be=H(oe*Me);return[Be*Me*k(J),Be*k(ce)]}}function Mi(H){return function(J,ce){var oe=D(J*J+ce*ce),Me=H(oe),Be=k(Me),Je=b(Me);return[y(J*Be,oe*Je),I(oe&&ce*Be/oe)]}}var Ia=Vi(function(H){return D(2/(1+H))});Ia.invert=Mi(function(H){return 2*I(H/2)});function Wv(){return wi(Ia).scale(124.75).clipAngle(180-.001)}var Gl=Vi(function(H){return(H=F(H))&&H/k(H)});Gl.invert=Mi(function(H){return H});function i0(){return wi(Gl).scale(79.4188).clipAngle(180-.001)}function Za(H,J){return[H,_(z((u+J)/2))]}Za.invert=function(H,J){return[H,2*p(x(J))-u]};function o0(){return l0(Za).scale(961/v)}function l0(H){var J=wi(H),ce=J.center,oe=J.scale,Me=J.translate,Be=J.clipExtent,Je=null,nr,lr,yr;J.scale=function(vr){return arguments.length?(oe(vr),Ke()):oe()},J.translate=function(vr){return arguments.length?(Me(vr),Ke()):Me()},J.center=function(vr){return arguments.length?(ce(vr),Ke()):ce()},J.clipExtent=function(vr){return arguments.length?(vr==null?Je=nr=lr=yr=null:(Je=+vr[0][0],nr=+vr[0][1],lr=+vr[1][0],yr=+vr[1][1]),Ke()):Je==null?null:[[Je,nr],[lr,yr]]};function Ke(){var vr=s*oe(),sr=J(ms(J.rotate()).invert([0,0]));return Be(Je==null?[[sr[0]-vr,sr[1]-vr],[sr[0]+vr,sr[1]+vr]]:H===Za?[[Math.max(sr[0]-vr,Je),nr],[Math.min(sr[0]+vr,lr),yr]]:[[Je,Math.max(sr[1]-vr,nr)],[lr,Math.min(sr[1]+vr,yr)]])}return Ke()}function zs(H){return z((u+H)/2)}function s0(H,J){var ce=b(H),oe=H===J?k(H):_(ce/b(J))/_(zs(J)/zs(H)),Me=ce*A(zs(H),oe)/oe;if(!oe)return Za;function Be(Je,nr){Me>0?nr<-u+o&&(nr=-u+o):nr>u-o&&(nr=u-o);var lr=Me/A(zs(nr),oe);return[lr*k(oe*Je),Me-lr*b(oe*Je)]}return Be.invert=function(Je,nr){var lr=Me-nr,yr=M(oe)*D(Je*Je+lr*lr),Ke=y(Je,m(lr))*M(lr);return lr*oe<0&&(Ke-=s*M(Je)*M(lr)),[Ke/oe,2*p(A(Me/yr,1/oe))-u]},Be}function Au(){return Yl(s0).scale(109.5).parallels([30,30])}function Ns(H,J){return[H,J]}Ns.invert=Ns;function Tu(){return wi(Ns).scale(152.63)}function Fs(H,J){var ce=b(H),oe=H===J?k(H):(ce-b(J))/(J-H),Me=ce/oe+H;if(m(oe)o&&--oe>0);return[H/(.8707+(Be=ce*ce)*(-.131979+Be*(-.013791+Be*Be*Be*(.003971-.001529*Be)))),ce]};function Cu(){return wi(Uf).scale(175.295)}function Zn(H,J){return[b(J)*k(H),k(J)]}Zn.invert=Mi(I);function li(){return wi(Zn).scale(249.5).clipAngle(90+o)}function Wl(H,J){var ce=b(J),oe=1+b(H)*ce;return[ce*k(H)/oe,k(J)/oe]}Wl.invert=Mi(function(H){return 2*p(H)});function Lu(){return wi(Wl).scale(250).clipAngle(142)}function Os(H,J){return[_(z((u+J)/2)),-H]}Os.invert=function(H,J){return[-J,2*p(x(H))-u]};function Yf(){var H=l0(Os),J=H.center,ce=H.rotate;return H.center=function(oe){return arguments.length?J([-oe[1],oe[0]]):(oe=J(),[oe[1],-oe[0]])},H.rotate=function(oe){return arguments.length?ce([oe[0],oe[1],oe.length>2?oe[2]+90:90]):(oe=ce(),[oe[0],oe[1],oe[2]-90])},ce([0,0,90]).scale(159.155)}e.geoAlbers=a0,e.geoAlbersUsa=Vv,e.geoArea=U,e.geoAzimuthalEqualArea=Wv,e.geoAzimuthalEqualAreaRaw=Ia,e.geoAzimuthalEquidistant=i0,e.geoAzimuthalEquidistantRaw=Gl,e.geoBounds=be,e.geoCentroid=Na,e.geoCircle=ys,e.geoClipAntimeridian=Pn,e.geoClipCircle=wf,e.geoClipExtent=hu,e.geoClipRectangle=Vo,e.geoConicConformal=Au,e.geoConicConformalRaw=s0,e.geoConicEqualArea=el,e.geoConicEqualAreaRaw=n0,e.geoConicEquidistant=Zv,e.geoConicEquidistantRaw=Fs,e.geoContains=Ms,e.geoDistance=Zo,e.geoEqualEarth=u0,e.geoEqualEarthRaw=Bs,e.geoEquirectangular=Tu,e.geoEquirectangularRaw=Ns,e.geoGnomonic=f0,e.geoGnomonicRaw=Su,e.geoGraticule=jc,e.geoGraticule10=Ts,e.geoIdentity=c0,e.geoInterpolate=Fv,e.geoLength=_s,e.geoMercator=o0,e.geoMercatorRaw=Za,e.geoNaturalEarth1=Cu,e.geoNaturalEarth1Raw=Uf,e.geoOrthographic=li,e.geoOrthographicRaw=Zn,e.geoPath=Pf,e.geoProjection=wi,e.geoProjectionMutator=Bf,e.geoRotation=ms,e.geoStereographic=Lu,e.geoStereographicRaw=Wl,e.geoStream=ee,e.geoTransform=Uv,e.geoTransverseMercator=Yf,e.geoTransverseMercatorRaw=Os,Object.defineProperty(e,"__esModule",{value:!0})})});var aF=te((iy,nF)=>{(function(e,r){typeof iy=="object"&&typeof nF!="undefined"?r(iy,a_(),n_()):r(e.d3=e.d3||{},e.d3,e.d3)})(iy,function(e,r,t){"use strict";var n=Math.abs,a=Math.atan,i=Math.atan2,o=Math.cos,l=Math.exp,s=Math.floor,u=Math.log,f=Math.max,v=Math.min,h=Math.pow,d=Math.round,m=Math.sign||function(T){return T>0?1:T<0?-1:0},p=Math.sin,y=Math.tan,b=1e-6,C=1e-12,x=Math.PI,_=x/2,A=x/4,k=Math.SQRT1_2,M=G(2),D=G(x),z=x*2,F=180/x,I=x/180;function W(T){return T?T/Math.sin(T):1}function B(T){return T>1?_:T<-1?-_:Math.asin(T)}function X(T){return T>1?0:T<-1?x:Math.acos(T)}function G(T){return T>0?Math.sqrt(T):0}function re(T){return T=l(2*T),(T-1)/(T+1)}function ne(T){return(l(T)-l(-T))/2}function K(T){return(l(T)+l(-T))/2}function ee(T){return u(T+G(T*T+1))}function fe(T){return u(T+G(T*T-1))}function he(T){var L=y(T/2),P=2*u(o(T/2))/(L*L);function R(Y,O){var Z=o(Y),ue=o(O),ve=p(O),le=ue*Z,de=-((1-le?u((1+le)/2)/(1-le):-.5)+P/(1+le));return[de*ue*p(Y),de*ve]}return R.invert=function(Y,O){var Z=G(Y*Y+O*O),ue=-T/2,ve=50,le;if(!Z)return[0,0];do{var de=ue/2,xe=o(de),qe=p(de),He=qe/xe,er=-u(n(xe));ue-=le=(2/He*er-P*He-Z)/(-er/(qe*qe)+1-P/(2*xe*xe))*(xe<0?.7:1)}while(n(le)>b&&--ve>0);var fr=p(ue);return[i(Y*fr,Z*o(ue)),B(O*fr/Z)]},R}function De(){var T=_,L=r.geoProjectionMutator(he),P=L(T);return P.radius=function(R){return arguments.length?L(T=R*I):T*F},P.scale(179.976).clipAngle(147)}function Ne(T,L){var P=o(L),R=W(X(P*o(T/=2)));return[2*P*p(T)*R,p(L)*R]}Ne.invert=function(T,L){if(!(T*T+4*L*L>x*x+b)){var P=T,R=L,Y=25;do{var O=p(P),Z=p(P/2),ue=o(P/2),ve=p(R),le=o(R),de=p(2*R),xe=ve*ve,qe=le*le,He=Z*Z,er=1-qe*ue*ue,fr=er?X(le*ue)*G(Mr=1/er):Mr=0,Mr,Zr=2*fr*le*Z-T,at=fr*ve-L,ot=Mr*(qe*He+fr*le*ue*xe),st=Mr*(.5*O*de-fr*2*ve*Z),vt=Mr*.25*(de*Z-fr*ve*qe*O),ln=Mr*(xe*ue+fr*He*le),Mn=st*vt-ln*ot;if(!Mn)break;var zt=(at*st-Zr*ln)/Mn,Fn=(Zr*vt-at*ot)/Mn;P-=zt,R-=Fn}while((n(zt)>b||n(Fn)>b)&&--Y>0);return[P,R]}};function Fe(){return r.geoProjection(Ne).scale(152.63)}function Xe(T){var L=p(T),P=o(T),R=T>=0?1:-1,Y=y(R*T),O=(1+L-P)/2;function Z(ue,ve){var le=o(ve),de=o(ue/=2);return[(1+le)*p(ue),(R*ve>-i(de,Y)-.001?0:-R*10)+O+p(ve)*P-(1+le)*L*de]}return Z.invert=function(ue,ve){var le=0,de=0,xe=50;do{var qe=o(le),He=p(le),er=o(de),fr=p(de),Mr=1+er,Zr=Mr*He-ue,at=O+fr*P-Mr*L*qe-ve,ot=Mr*qe/2,st=-He*fr,vt=L*Mr*He/2,ln=P*er+L*qe*fr,Mn=st*vt-ln*ot,zt=(at*st-Zr*ln)/Mn/2,Fn=(Zr*vt-at*ot)/Mn;n(Fn)>2&&(Fn/=2),le-=zt,de-=Fn}while((n(zt)>b||n(Fn)>b)&&--xe>0);return R*de>-i(o(le),Y)-.001?[le*2,de]:null},Z}function Le(){var T=20*I,L=T>=0?1:-1,P=y(L*T),R=r.geoProjectionMutator(Xe),Y=R(T),O=Y.stream;return Y.parallel=function(Z){return arguments.length?(P=y((L=(T=Z*I)>=0?1:-1)*T),R(T)):T*F},Y.stream=function(Z){var ue=Y.rotate(),ve=O(Z),le=(Y.rotate([0,0]),O(Z)),de=Y.precision();return Y.rotate(ue),ve.sphere=function(){le.polygonStart(),le.lineStart();for(var xe=L*-180;L*xe<180;xe+=L*90)le.point(xe,L*90);if(T)for(;L*(xe-=3*L*de)>=-180;)le.point(xe,L*-i(o(xe*I/2),P)*F);le.lineEnd(),le.polygonEnd()},ve},Y.scale(218.695).center([0,28.0974])}function rr(T,L){var P=y(L/2),R=G(1-P*P),Y=1+R*o(T/=2),O=p(T)*R/Y,Z=P/Y,ue=O*O,ve=Z*Z;return[4/3*O*(3+ue-3*ve),4/3*Z*(3+3*ue-ve)]}rr.invert=function(T,L){if(T*=3/8,L*=3/8,!T&&n(L)>1)return null;var P=T*T,R=L*L,Y=1+P+R,O=G((Y-G(Y*Y-4*L*L))/2),Z=B(O)/3,ue=O?fe(n(L/O))/3:ee(n(T))/3,ve=o(Z),le=K(ue),de=le*le-ve*ve;return[m(T)*2*i(ne(ue)*ve,.25-de),m(L)*2*i(le*p(Z),.25+de)]};function se(){return r.geoProjection(rr).scale(66.1603)}var ye=G(8),we=u(1+M);function pe(T,L){var P=n(L);return PC&&--R>0);return[T/(o(P)*(ye-1/p(P))),m(L)*P]};function U(){return r.geoProjection(pe).scale(112.314)}function Q(T){var L=2*x/T;function P(R,Y){var O=r.geoAzimuthalEquidistantRaw(R,Y);if(n(R)>_){var Z=i(O[1],O[0]),ue=G(O[0]*O[0]+O[1]*O[1]),ve=L*d((Z-_)/L)+_,le=i(p(Z-=ve),2-o(Z));Z=ve+B(x/ue*p(le))-le,O[0]=ue*o(Z),O[1]=ue*p(Z)}return O}return P.invert=function(R,Y){var O=G(R*R+Y*Y);if(O>_){var Z=i(Y,R),ue=L*d((Z-_)/L)+_,ve=Z>ue?-1:1,le=O*o(ue-Z),de=1/y(ve*X((le-x)/G(x*(x-2*le)+O*O)));Z=ue+2*a((de+ve*G(de*de-3))/3),R=O*o(Z),Y=O*p(Z)}return r.geoAzimuthalEquidistantRaw.invert(R,Y)},P}function $(){var T=5,L=r.geoProjectionMutator(Q),P=L(T),R=P.stream,Y=.01,O=-o(Y*I),Z=p(Y*I);return P.lobes=function(ue){return arguments.length?L(T=+ue):T},P.stream=function(ue){var ve=P.rotate(),le=R(ue),de=(P.rotate([0,0]),R(ue));return P.rotate(ve),le.sphere=function(){de.polygonStart(),de.lineStart();for(var xe=0,qe=360/T,He=2*x/T,er=90-180/T,fr=_;xe0&&n(Y)>b);return R<0?NaN:P}function or(T,L,P){return L===void 0&&(L=40),P===void 0&&(P=C),function(R,Y,O,Z){var ue,ve,le;O=O===void 0?0:+O,Z=Z===void 0?0:+Z;for(var de=0;deue){O-=ve/=2,Z-=le/=2;continue}ue=er;var fr=(O>0?-1:1)*P,Mr=(Z>0?-1:1)*P,Zr=T(O+fr,Z),at=T(O,Z+Mr),ot=(Zr[0]-xe[0])/fr,st=(Zr[1]-xe[1])/fr,vt=(at[0]-xe[0])/Mr,ln=(at[1]-xe[1])/Mr,Mn=ln*ot-st*vt,zt=(n(Mn)<.5?.5:1)/Mn;if(ve=(He*vt-qe*ln)*zt,le=(qe*st-He*ot)*zt,O+=ve,Z+=le,n(ve)0&&(ue[1]*=1+ve/1.5*ue[0]*ue[0]),ue}return R.invert=or(R),R}function tr(){return r.geoProjection(Ue()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function ur(T,L){var P=T*p(L),R=30,Y;do L-=Y=(L+p(L)-P)/(1+o(L));while(n(Y)>b&&--R>0);return L/2}function cr(T,L,P){function R(Y,O){return[T*Y*o(O=ur(P,O)),L*p(O)]}return R.invert=function(Y,O){return O=B(O/L),[Y/(T*o(O)),B((2*O+p(2*O))/P)]},R}var Qe=cr(M/_,M,x);function pr(){return r.geoProjection(Qe).scale(169.529)}var dr=2.00276,Te=1.11072;function Ye(T,L){var P=ur(x,L);return[dr*T/(1/o(L)+Te/o(P)),(L+M*p(P))/dr]}Ye.invert=function(T,L){var P=dr*L,R=L<0?-A:A,Y=25,O,Z;do Z=P-M*p(R),R-=O=(p(2*R)+2*R-x*p(Z))/(2*o(2*R)+2+x*o(Z)*M*o(R));while(n(O)>b&&--Y>0);return Z=P-M*p(R),[T*(1/o(Z)+Te/o(R))/dr,Z]};function Ar(){return r.geoProjection(Ye).scale(160.857)}function Nr(T){var L=0,P=r.geoProjectionMutator(T),R=P(L);return R.parallel=function(Y){return arguments.length?P(L=Y*I):L*F},R}function Er(T,L){return[T*o(L),L]}Er.invert=function(T,L){return[T/o(L),L]};function Ae(){return r.geoProjection(Er).scale(152.63)}function je(T){if(!T)return Er;var L=1/y(T);function P(R,Y){var O=L+T-Y,Z=O&&R*o(Y)/O;return[O*p(Z),L-O*o(Z)]}return P.invert=function(R,Y){var O=G(R*R+(Y=L-Y)*Y),Z=L+T-O;return[O/o(Z)*i(R,Y),Z]},P}function hr(){return Nr(je).scale(123.082).center([0,26.1441]).parallel(45)}function wr(T){function L(P,R){var Y=_-R,O=Y&&P*T*p(Y)/Y;return[Y*p(O)/T,_-Y*o(O)]}return L.invert=function(P,R){var Y=P*T,O=_-R,Z=G(Y*Y+O*O),ue=i(Y,O);return[(Z?Z/p(Z):1)*ue/T,_-Z]},L}function mr(){var T=.5,L=r.geoProjectionMutator(wr),P=L(T);return P.fraction=function(R){return arguments.length?L(T=+R):T},P.scale(158.837)}var Tr=cr(1,4/x,x);function Dr(){return r.geoProjection(Tr).scale(152.63)}function Or(T,L,P,R,Y,O){var Z=o(O),ue;if(n(T)>1||n(O)>1)ue=X(P*Y+L*R*Z);else{var ve=p(T/2),le=p(O/2);ue=2*B(G(ve*ve+L*R*le*le))}return n(ue)>b?[ue,i(R*p(O),L*Y-P*R*Z)]:[0,0]}function Cr(T,L,P){return X((T*T+L*L-P*P)/(2*T*L))}function ar(T){return T-2*x*s((T+x)/(2*x))}function be(T,L,P){for(var R=[[T[0],T[1],p(T[1]),o(T[1])],[L[0],L[1],p(L[1]),o(L[1])],[P[0],P[1],p(P[1]),o(P[1])]],Y=R[2],O,Z=0;Z<3;++Z,Y=O)O=R[Z],Y.v=Or(O[1]-Y[1],Y[3],Y[2],O[3],O[2],O[0]-Y[0]),Y.point=[0,0];var ue=Cr(R[0].v[0],R[2].v[0],R[1].v[0]),ve=Cr(R[0].v[0],R[1].v[0],R[2].v[0]),le=x-ue;R[2].point[1]=0,R[0].point[0]=-(R[1].point[0]=R[0].v[0]/2);var de=[R[2].point[0]=R[0].point[0]+R[2].v[0]*o(ue),2*(R[0].point[1]=R[1].point[1]=R[2].v[0]*p(ue))];function xe(qe,He){var er=p(He),fr=o(He),Mr=new Array(3),Zr;for(Zr=0;Zr<3;++Zr){var at=R[Zr];if(Mr[Zr]=Or(He-at[1],at[3],at[2],fr,er,qe-at[0]),!Mr[Zr][0])return at.point;Mr[Zr][1]=ar(Mr[Zr][1]-at.v[1])}var ot=de.slice();for(Zr=0;Zr<3;++Zr){var st=Zr==2?0:Zr+1,vt=Cr(R[Zr].v[0],Mr[Zr][0],Mr[st][0]);Mr[Zr][1]<0&&(vt=-vt),Zr?Zr==1?(vt=ve-vt,ot[0]-=Mr[Zr][0]*o(vt),ot[1]-=Mr[Zr][0]*p(vt)):(vt=le-vt,ot[0]+=Mr[Zr][0]*o(vt),ot[1]+=Mr[Zr][0]*p(vt)):(ot[0]+=Mr[Zr][0]*o(vt),ot[1]-=Mr[Zr][0]*p(vt))}return ot[0]/=3,ot[1]/=3,ot}return xe}function Se(T){return T[0]*=I,T[1]*=I,T}function $e(){return Ze([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Ze(T,L,P){var R=r.geoCentroid({type:"MultiPoint",coordinates:[T,L,P]}),Y=[-R[0],-R[1]],O=r.geoRotation(Y),Z=be(Se(O(T)),Se(O(L)),Se(O(P)));Z.invert=or(Z);var ue=r.geoProjection(Z).rotate(Y),ve=ue.center;return delete ue.rotate,ue.center=function(le){return arguments.length?ve(O(le)):O.invert(ve())},ue.clipAngle(90)}function qr(T,L){var P=G(1-p(L));return[2/D*T*P,D*(1-P)]}qr.invert=function(T,L){var P=(P=L/D-1)*P;return[P>0?T*G(x/P)/2:0,B(1-P)]};function Hr(){return r.geoProjection(qr).scale(95.6464).center([0,30])}function Pr(T){var L=y(T);function P(R,Y){return[R,(R?R/p(R):1)*(p(Y)*o(R)-L*o(Y))]}return P.invert=L?function(R,Y){R&&(Y*=p(R)/R);var O=o(R);return[R,2*i(G(O*O+L*L-Y*Y)-O,L-Y)]}:function(R,Y){return[R,B(R?Y*y(R)/R:Y)]},P}function lt(){return Nr(Pr).scale(249.828).clipAngle(90)}var xt=G(3);function Nt(T,L){return[xt*T*(2*o(2*L/3)-1)/D,xt*D*p(L/3)]}Nt.invert=function(T,L){var P=3*B(L/(xt*D));return[D*T/(xt*(2*o(2*P/3)-1)),P]};function Ht(){return r.geoProjection(Nt).scale(156.19)}function An(T){var L=o(T);function P(R,Y){return[R*L,p(Y)/L]}return P.invert=function(R,Y){return[R/L,B(Y*L)]},P}function Tn(){return Nr(An).parallel(38.58).scale(195.044)}function cn(T){var L=o(T);function P(R,Y){return[R*L,(1+L)*y(Y/2)]}return P.invert=function(R,Y){return[R/L,a(Y/(1+L))*2]},P}function Ft(){return Nr(cn).scale(124.75)}function jt(T,L){var P=G(8/(3*x));return[P*T*(1-n(L)/x),P*L]}jt.invert=function(T,L){var P=G(8/(3*x)),R=L/P;return[T/(P*(1-n(R)/x)),R]};function en(){return r.geoProjection(jt).scale(165.664)}function Jt(T,L){var P=G(4-3*p(n(L)));return[2/G(6*x)*T*P,m(L)*G(2*x/3)*(2-P)]}Jt.invert=function(T,L){var P=2-n(L)/G(2*x/3);return[T*G(6*x)/(2*P),m(L)*B((4-P*P)/3)]};function aa(){return r.geoProjection(Jt).scale(165.664)}function rt(T,L){var P=G(x*(4+x));return[2/P*T*(1+G(1-4*L*L/(x*x))),4/P*L]}rt.invert=function(T,L){var P=G(x*(4+x))/2;return[T*P/(1+G(1-L*L*(4+x)/(4*x))),L*P/2]};function rn(){return r.geoProjection(rt).scale(180.739)}function St(T,L){var P=(2+_)*p(L);L/=2;for(var R=0,Y=1/0;R<10&&n(Y)>b;R++){var O=o(L);L-=Y=(L+p(L)*(O+2)-P)/(2*O*(1+O))}return[2/G(x*(4+x))*T*(1+o(L)),2*G(x/(4+x))*p(L)]}St.invert=function(T,L){var P=L*G((4+x)/x)/2,R=B(P),Y=o(R);return[T/(2/G(x*(4+x))*(1+Y)),B((R+P*(Y+2))/(2+_))]};function dn(){return r.geoProjection(St).scale(180.739)}function pn(T,L){return[T*(1+o(L))/G(2+x),2*L/G(2+x)]}pn.invert=function(T,L){var P=G(2+x),R=L*P/2;return[P*T/(1+o(R)),R]};function an(){return r.geoProjection(pn).scale(173.044)}function vn(T,L){for(var P=(1+_)*p(L),R=0,Y=1/0;R<10&&n(Y)>b;R++)L-=Y=(L+p(L)-P)/(1+o(L));return P=G(2+x),[T*(1+o(L))/P,2*L/P]}vn.invert=function(T,L){var P=1+_,R=G(P/2);return[T*2*R/(1+o(L*=R)),B((L+p(L))/P)]};function da(){return r.geoProjection(vn).scale(173.044)}var qn=3+2*M;function Na(T,L){var P=p(T/=2),R=o(T),Y=G(o(L)),O=o(L/=2),Z=p(L)/(O+M*R*Y),ue=G(2/(1+Z*Z)),ve=G((M*O+(R+P)*Y)/(M*O+(R-P)*Y));return[qn*(ue*(ve-1/ve)-2*u(ve)),qn*(ue*Z*(ve+1/ve)-2*a(Z))]}Na.invert=function(T,L){if(!(O=rr.invert(T/1.2,L*1.065)))return null;var P=O[0],R=O[1],Y=20,O;T/=qn,L/=qn;do{var Z=P/2,ue=R/2,ve=p(Z),le=o(Z),de=p(ue),xe=o(ue),qe=o(R),He=G(qe),er=de/(xe+M*le*He),fr=er*er,Mr=G(2/(1+fr)),Zr=M*xe+(le+ve)*He,at=M*xe+(le-ve)*He,ot=Zr/at,st=G(ot),vt=st-1/st,ln=st+1/st,Mn=Mr*vt-2*u(st)-T,zt=Mr*er*ln-2*a(er)-L,Fn=de&&k*He*ve*fr/de,ma=(M*le*xe+He)/(2*(xe+M*le*He)*(xe+M*le*He)*He),ui=-.5*er*Mr*Mr*Mr,il=ui*Fn,Us=ui*ma,La=(La=2*xe+M*He*(le-ve))*La*st,qa=(M*le*xe*He+qe)/La,Xi=-(M*ve*de)/(He*La),ol=vt*il-2*qa/st+Mr*(qa+qa/ot),ll=vt*Us-2*Xi/st+Mr*(Xi+Xi/ot),sl=er*ln*il-2*Fn/(1+fr)+Mr*ln*Fn+Mr*er*(qa-qa/ot),Xl=er*ln*Us-2*ma/(1+fr)+Mr*ln*ma+Mr*er*(Xi-Xi/ot),go=ll*sl-Xl*ol;if(!go)break;var Ys=(zt*ll-Mn*Xl)/go,Wf=(Mn*sl-zt*ol)/go;P-=Ys,R=f(-_,v(_,R-Wf))}while((n(Ys)>b||n(Wf)>b)&&--Y>0);return n(n(R)-_)R){var xe=G(de),qe=i(le,ve),He=P*d(qe/P),er=qe-He,fr=T*o(er),Mr=(T*p(er)-er*p(fr))/(_-fr),Zr=On(er,Mr),at=(x-T)/mi(Zr,fr,x);ve=xe;var ot=50,st;do ve-=st=(T+mi(Zr,fr,ve)*at-xe)/(Zr(ve)*at);while(n(st)>b&&--ot>0);le=er*p(ve),ve<_&&(le-=Mr*(ve-_));var vt=p(He),ln=o(He);ue[0]=ve*ln-le*vt,ue[1]=ve*vt+le*ln}return ue}return Y.invert=function(O,Z){var ue=O*O+Z*Z;if(ue>R){var ve=G(ue),le=i(Z,O),de=P*d(le/P),xe=le-de;O=ve*o(xe),Z=ve*p(xe);for(var qe=O-_,He=p(O),er=Z/He,fr=O<_?1/0:0,Mr=10;;){var Zr=T*p(er),at=T*o(er),ot=p(at),st=_-at,vt=(Zr-er*ot)/st,ln=On(er,vt);if(n(fr)b||n(er)>b)&&--fr>0);return[xe,qe]},ve}var Kr=yi(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ct(){return r.geoProjection(Kr).scale(149.995)}var Ot=yi(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Ur(){return r.geoProjection(Ot).scale(153.93)}var Wn=yi(5/6*x,-.62636,-.0344,0,1.3493,-.05524,0,.045);function on(){return r.geoProjection(Wn).scale(130.945)}function Pn(T,L){var P=T*T,R=L*L;return[T*(1-.162388*R)*(.87-952426e-9*P*P),L*(1+R/12)]}Pn.invert=function(T,L){var P=T,R=L,Y=50,O;do{var Z=R*R;R-=O=(R*(1+Z/12)-L)/(1+Z/4)}while(n(O)>b&&--Y>0);Y=50,T/=1-.162388*Z;do{var ue=(ue=P*P)*ue;P-=O=(P*(.87-952426e-9*ue)-T)/(.87-.00476213*ue)}while(n(O)>b&&--Y>0);return[P,R]};function At(){return r.geoProjection(Pn).scale(131.747)}var Wa=yi(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Yo(){return r.geoProjection(Wa).scale(131.087)}function wf(T){var L=T(_,0)[0]-T(-_,0)[0];function P(R,Y){var O=R>0?-.5:.5,Z=T(R+O*x,Y);return Z[0]-=O*L,Z}return T.invert&&(P.invert=function(R,Y){var O=R>0?-.5:.5,Z=T.invert(R+O*L,Y),ue=Z[0]-O*x;return ue<-x?ue+=2*x:ue>x&&(ue-=2*x),Z[0]=ue,Z}),P}function vu(T,L){var P=m(T),R=m(L),Y=o(L),O=o(T)*Y,Z=p(T)*Y,ue=p(R*L);T=n(i(Z,ue)),L=B(O),n(T-_)>b&&(T%=_);var ve=oo(T>x/4?_-T:T,L);return T>x/4&&(ue=ve[0],ve[0]=-ve[1],ve[1]=-ue),ve[0]*=P,ve[1]*=-R,ve}vu.invert=function(T,L){n(T)>1&&(T=m(T)*2-T),n(L)>1&&(L=m(L)*2-L);var P=m(T),R=m(L),Y=-P*T,O=-R*L,Z=O/Y<1,ue=Go(Z?O:Y,Z?Y:O),ve=ue[0],le=ue[1],de=o(le);return Z&&(ve=-_-ve),[P*(i(p(ve)*de,-p(le))+x),R*B(o(ve)*de)]};function oo(T,L){if(L===_)return[0,0];var P=p(L),R=P*P,Y=R*R,O=1+Y,Z=1+3*Y,ue=1-Y,ve=B(1/G(O)),le=ue+R*O*ve,de=(1-P)/le,xe=G(de),qe=de*O,He=G(qe),er=xe*ue,fr,Mr;if(T===0)return[0,-(er+R*He)];var Zr=o(L),at=1/Zr,ot=2*P*Zr,st=(-3*R+ve*Z)*ot,vt=(-le*Zr-(1-P)*st)/(le*le),ln=.5*vt/xe,Mn=ue*ln-2*R*xe*ot,zt=R*O*vt+de*Z*ot,Fn=-at*ot,ma=-at*zt,ui=-2*at*Mn,il=4*T/x,Us;if(T>.222*x||L.175*x){if(fr=(er+R*G(qe*(1+Y)-er*er))/(1+Y),T>x/4)return[fr,fr];var La=fr,qa=.5*fr;fr=.5*(qa+La),Mr=50;do{var Xi=G(qe-fr*fr),ol=fr*(ui+Fn*Xi)+ma*B(fr/He)-il;if(!ol)break;ol<0?qa=fr:La=fr,fr=.5*(qa+La)}while(n(La-qa)>b&&--Mr>0)}else{fr=b,Mr=25;do{var ll=fr*fr,sl=G(qe-ll),Xl=ui+Fn*sl,go=fr*Xl+ma*B(fr/He)-il,Ys=Xl+(ma-Fn*ll)/sl;fr-=Us=sl?go/Ys:0}while(n(Us)>b&&--Mr>0)}return[fr,-er-R*G(qe-fr*fr)]}function Go(T,L){for(var P=0,R=1,Y=.5,O=50;;){var Z=Y*Y,ue=G(Y),ve=B(1/G(1+Z)),le=1-Z+Y*(1+Z)*ve,de=(1-ue)/le,xe=G(de),qe=de*(1+Z),He=xe*(1-Z),er=qe-T*T,fr=G(er),Mr=L+He+Y*fr;if(n(R-P)0?P=Y:R=Y,Y=.5*(P+R)}if(!O)return null;var Zr=B(ue),at=o(Zr),ot=1/at,st=2*ue*at,vt=(-3*Y+ve*(1+3*Z))*st,ln=(-le*at-(1-ue)*vt)/(le*le),Mn=.5*ln/xe,zt=(1-Z)*Mn-2*Y*xe*st,Fn=-2*ot*zt,ma=-ot*st,ui=-ot*(Y*(1+Z)*ln+de*(1+3*Z)*st);return[x/4*(T*(Fn+ma*fr)+ui*B(T/G(qe))),Zr]}function Vo(){return r.geoProjection(wf(vu)).scale(239.75)}function hu(T,L,P){var R,Y,O;return T?(R=Pl(T,P),L?(Y=Pl(L,1-P),O=Y[1]*Y[1]+P*R[0]*R[0]*Y[0]*Y[0],[[R[0]*Y[2]/O,R[1]*R[2]*Y[0]*Y[1]/O],[R[1]*Y[1]/O,-R[0]*R[2]*Y[0]*Y[2]/O],[R[2]*Y[1]*Y[2]/O,-P*R[0]*R[1]*Y[0]/O]]):[[R[0],0],[R[1],0],[R[2],0]]):(Y=Pl(L,1-P),[[0,Y[0]/Y[1]],[1/Y[1],0],[Y[2]/Y[1],0]])}function Pl(T,L){var P,R,Y,O,Z;if(L=1-b)return P=(1-L)/4,R=K(T),O=re(T),Y=1/R,Z=R*ne(T),[O+P*(Z-T)/(R*R),Y-P*O*Y*(Z-T),Y+P*O*Y*(Z+T),2*a(l(T))-_+P*(Z-T)/R];var ue=[1,0,0,0,0,0,0,0,0],ve=[G(L),0,0,0,0,0,0,0,0],le=0;for(R=G(1-L),Z=1;n(ve[le]/ue[le])>b&&le<8;)P=ue[le++],ve[le]=(P-R)/2,ue[le]=(P+R)/2,R=G(P*R),Z*=2;Y=Z*ue[le]*T;do O=ve[le]*p(R=Y)/ue[le],Y=(B(O)+Y)/2;while(--le);return[p(Y),O=o(Y),O/o(Y-R),Y]}function Rl(T,L,P){var R=n(T),Y=n(L),O=ne(Y);if(R){var Z=1/p(R),ue=1/(y(R)*y(R)),ve=-(ue+P*(O*O*Z*Z)-1+P),le=(P-1)*ue,de=(-ve+G(ve*ve-4*le))/2;return[bi(a(1/G(de)),P)*m(T),bi(a(G((de/ue-1)/P)),1-P)*m(L)]}return[0,bi(a(O),1-P)*m(L)]}function bi(T,L){if(!L)return T;if(L===1)return u(y(T/2+A));for(var P=1,R=G(1-L),Y=G(L),O=0;n(Y)>b;O++){if(T%x){var Z=a(R*y(T)/P);Z<0&&(Z+=x),T+=Z+~~(T/x)*x}else T+=T;Y=(P+R)/2,R=G(P*R),Y=((P=Y)-R)/2}return T/(h(2,O)*P)}function lo(T,L){var P=(M-1)/(M+1),R=G(1-P*P),Y=bi(_,R*R),O=-1,Z=u(y(x/4+n(L)/2)),ue=l(O*Z)/G(P),ve=Wo(ue*o(O*T),ue*p(O*T)),le=Rl(ve[0],ve[1],R*R);return[-le[1],(L>=0?1:-1)*(.5*Y-le[0])]}function Wo(T,L){var P=T*T,R=L+1,Y=1-P-L*L;return[.5*((T>=0?_:-_)-i(Y,2*T)),-.25*u(Y*Y+4*P)+.5*u(R*R+P)]}function zl(T,L){var P=L[0]*L[0]+L[1]*L[1];return[(T[0]*L[0]+T[1]*L[1])/P,(T[1]*L[0]-T[0]*L[1])/P]}lo.invert=function(T,L){var P=(M-1)/(M+1),R=G(1-P*P),Y=bi(_,R*R),O=-1,Z=hu(.5*Y-L,-T,R*R),ue=zl(Z[0],Z[1]),ve=i(ue[1],ue[0])/O;return[ve,2*a(l(.5/O*u(P*ue[0]*ue[0]+P*ue[1]*ue[1])))-_]};function bs(){return r.geoProjection(wf(lo)).scale(151.496)}function Mf(T){var L=p(T),P=o(T),R=Zc(T);R.invert=Zc(-T);function Y(O,Z){var ue=R(O,Z);O=ue[0],Z=ue[1];var ve=p(Z),le=o(Z),de=o(O),xe=X(L*ve+P*le*de),qe=p(xe),He=n(qe)>b?xe/qe:1;return[He*P*p(O),(n(O)>_?He:-He)*(L*le-P*ve*de)]}return Y.invert=function(O,Z){var ue=G(O*O+Z*Z),ve=-p(ue),le=o(ue),de=ue*le,xe=-Z*ve,qe=ue*L,He=G(de*de+xe*xe-qe*qe),er=i(de*qe+xe*He,xe*qe-de*He),fr=(ue>_?-1:1)*i(O*ve,ue*o(er)*le+Z*p(er)*ve);return R.invert(fr,er)},Y}function Zc(T){var L=p(T),P=o(T);return function(R,Y){var O=o(Y),Z=o(R)*O,ue=p(R)*O,ve=p(Y);return[i(ue,Z*P-ve*L),B(ve*P+Z*L)]}}function _s(){var T=0,L=r.geoProjectionMutator(Mf),P=L(T),R=P.rotate,Y=P.stream,O=r.geoCircle();return P.parallel=function(Z){if(!arguments.length)return T*F;var ue=P.rotate();return L(T=Z*I).rotate(ue)},P.rotate=function(Z){return arguments.length?(R.call(P,[Z[0],Z[1]-T*F]),O.center([-Z[0],-Z[1]]),P):(Z=R.call(P),Z[1]+=T*F,Z)},P.stream=function(Z){return Z=Y(Z),Z.sphere=function(){Z.polygonStart();var ue=.01,ve=O.radius(90-ue)().coordinates[0],le=ve.length-1,de=-1,xe;for(Z.lineStart();++de=0;)Z.point((xe=ve[de])[0],xe[1]);Z.lineEnd(),Z.polygonEnd()},Z},P.scale(79.4187).parallel(45).clipAngle(180-.001)}var xs=3,ws=B(1-1/xs)*F,Zo=An(0);function so(T){var L=ws*I,P=qr(x,L)[0]-qr(-x,L)[0],R=Zo(0,L)[1],Y=qr(0,L)[1],O=D-Y,Z=z/T,ue=4/z,ve=R+O*O*4/z;function le(de,xe){var qe,He=n(xe);if(He>L){var er=v(T-1,f(0,s((de+x)/Z)));de+=x*(T-1)/T-er*Z,qe=qr(de,He),qe[0]=qe[0]*z/P-z*(T-1)/(2*T)+er*z/T,qe[1]=R+(qe[1]-Y)*4*O/z,xe<0&&(qe[1]=-qe[1])}else qe=Zo(de,xe);return qe[0]*=ue,qe[1]/=ve,qe}return le.invert=function(de,xe){de/=ue,xe*=ve;var qe=n(xe);if(qe>R){var He=v(T-1,f(0,s((de+x)/Z)));de=(de+x*(T-1)/T-He*Z)*P/z;var er=qr.invert(de,.25*(qe-R)*z/O+Y);return er[0]-=x*(T-1)/T-He*Z,xe<0&&(er[1]=-er[1]),er}return Zo.invert(de,xe)},le}function uo(T,L){return[T,L&1?90-b:ws]}function Bi(T,L){return[T,L&1?-90+b:-ws]}function Af(T){return[T[0]*(1-b),T[1]]}function du(T){var L=[].concat(t.range(-180,180+T/2,T).map(uo),t.range(180,-180-T/2,-T).map(Bi));return{type:"Polygon",coordinates:[T===180?L.map(Af):L]}}function Nl(){var T=4,L=r.geoProjectionMutator(so),P=L(T),R=P.stream;return P.lobes=function(Y){return arguments.length?L(T=+Y):T},P.stream=function(Y){var O=P.rotate(),Z=R(Y),ue=(P.rotate([0,0]),R(Y));return P.rotate(O),Z.sphere=function(){r.geoStream(du(180/T),ue)},Z},P.scale(239.75)}function Tf(T){var L=1+T,P=p(1/L),R=B(P),Y=2*G(x/(O=x+4*R*L)),O,Z=.5*Y*(L+G(T*(2+T))),ue=T*T,ve=L*L;function le(de,xe){var qe=1-p(xe),He,er;if(qe&&qe<2){var fr=_-xe,Mr=25,Zr;do{var at=p(fr),ot=o(fr),st=R+i(at,L-ot),vt=1+ve-2*L*ot;fr-=Zr=(fr-ue*R-L*at+vt*st-.5*qe*O)/(2*L*at*st)}while(n(Zr)>C&&--Mr>0);He=Y*G(vt),er=de*st/x}else He=Y*(T+qe),er=de*R/x;return[He*p(er),Z-He*o(er)]}return le.invert=function(de,xe){var qe=de*de+(xe-=Z)*xe,He=(1+ve-qe/(Y*Y))/(2*L),er=X(He),fr=p(er),Mr=R+i(fr,L-He);return[B(de/G(qe))*x/Mr,B(1-2*(er-ue*R-L*fr+(1+ve-2*L*He)*Mr)/O)]},le}function Xc(){var T=1,L=r.geoProjectionMutator(Tf),P=L(T);return P.ratio=function(R){return arguments.length?L(T=+R):T},P.scale(167.774).center([0,18.67])}var Ms=.7109889596207567,Oi=.0528035274542;function As(T,L){return L>-Ms?(T=Qe(T,L),T[1]+=Oi,T):Er(T,L)}As.invert=function(T,L){return L>-Ms?Qe.invert(T,L-Oi):Er.invert(T,L)};function jc(){return r.geoProjection(As).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ts(T,L){return n(L)>Ms?(T=Qe(T,L),T[1]-=L>0?Oi:-Oi,T):Er(T,L)}Ts.invert=function(T,L){return n(L)>Ms?Qe.invert(T,L+(L>0?Oi:-Oi)):Er.invert(T,L)};function Fv(){return r.geoProjection(Ts).scale(152.63)}function Xo(T,L,P,R){var Y=G(4*x/(2*P+(1+T-L/2)*p(2*P)+(T+L)/2*p(4*P)+L/2*p(6*P))),O=G(R*p(P)*G((1+T*o(2*P)+L*o(4*P))/(1+T+L))),Z=P*ve(1);function ue(xe){return G(1+T*o(2*xe)+L*o(4*xe))}function ve(xe){var qe=xe*P;return(2*qe+(1+T-L/2)*p(2*qe)+(T+L)/2*p(4*qe)+L/2*p(6*qe))/P}function le(xe){return ue(xe)*p(xe)}var de=function(xe,qe){var He=P*ir(ve,Z*p(qe)/P,qe/x);isNaN(He)&&(He=P*m(qe));var er=Y*ue(He);return[er*O*xe/x*o(He),er/O*p(He)]};return de.invert=function(xe,qe){var He=ir(le,qe*O/Y);return[xe*x/(o(He)*Y*O*ue(He)),B(P*ve(He/P)/Z)]},P===0&&(Y=G(R/x),de=function(xe,qe){return[xe*Y,p(qe)/Y]},de.invert=function(xe,qe){return[xe/Y,B(qe*Y)]}),de}function kf(){var T=1,L=0,P=45*I,R=2,Y=r.geoProjectionMutator(Xo),O=Y(T,L,P,R);return O.a=function(Z){return arguments.length?Y(T=+Z,L,P,R):T},O.b=function(Z){return arguments.length?Y(T,L=+Z,P,R):L},O.psiMax=function(Z){return arguments.length?Y(T,L,P=+Z*I,R):P*F},O.ratio=function(Z){return arguments.length?Y(T,L,P,R=+Z):R},O.scale(180.739)}function Fl(T,L,P,R,Y,O,Z,ue,ve,le,de){if(de.nanEncountered)return NaN;var xe,qe,He,er,fr,Mr,Zr,at,ot,st;if(xe=P-L,qe=T(L+xe*.25),He=T(P-xe*.25),isNaN(qe)){de.nanEncountered=!0;return}if(isNaN(He)){de.nanEncountered=!0;return}return er=xe*(R+4*qe+Y)/12,fr=xe*(Y+4*He+O)/12,Mr=er+fr,st=(Mr-Z)/15,le>ve?(de.maxDepthCount++,Mr+st):Math.abs(st)>1;do ve[Mr]>He?fr=Mr:er=Mr,Mr=er+fr>>1;while(Mr>er);var Zr=ve[Mr+1]-ve[Mr];return Zr&&(Zr=(He-ve[Mr+1])/Zr),(Mr+1+Zr)/Z}var xe=2*de(1)/x*O/P,qe=function(He,er){var fr=de(n(p(er))),Mr=R(fr)*He;return fr/=xe,[Mr,er>=0?fr:-fr]};return qe.invert=function(He,er){var fr;return er*=xe,n(er)<1&&(fr=m(er)*B(Y(n(er))*O)),[He/R(n(er)),fr]},qe}function co(){var T=0,L=2.5,P=1.183136,R=r.geoProjectionMutator(fo),Y=R(T,L,P);return Y.alpha=function(O){return arguments.length?R(T=+O,L,P):T},Y.k=function(O){return arguments.length?R(T,L=+O,P):L},Y.gamma=function(O){return arguments.length?R(T,L,P=+O):P},Y.scale(152.63)}function Sf(T,L){return n(T[0]-L[0])=0;--ve)P=T[1][ve],R=P[0][0],Y=P[0][1],O=P[1][1],Z=P[2][0],ue=P[2][1],L.push(_i([[Z-b,ue-b],[Z-b,O+b],[R+b,O+b],[R+b,Y-b]],30));return{type:"Polygon",coordinates:[t.merge(L)]}}function Ui(T,L,P){var R,Y;function O(ve,le){for(var de=le<0?-1:1,xe=L[+(le<0)],qe=0,He=xe.length-1;qexe[qe][2][0];++qe);var er=T(ve-xe[qe][1][0],le);return er[0]+=T(xe[qe][1][0],de*le>de*xe[qe][0][1]?xe[qe][0][1]:le)[0],er}P?O.invert=P(O):T.invert&&(O.invert=function(ve,le){for(var de=Y[+(le<0)],xe=L[+(le<0)],qe=0,He=de.length;qeer&&(fr=He,He=er,er=fr),[[xe,He],[qe,er]]})}),Z):L.map(function(le){return le.map(function(de){return[[de[0][0]*F,de[0][1]*F],[de[1][0]*F,de[1][1]*F],[de[2][0]*F,de[2][1]*F]]})})},L!=null&&Z.lobes(L),Z}var Il=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Hv(){return Ui(Ye,Il).scale(160.857)}var Yi=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function jo(){return Ui(Ts,Yi).scale(152.63)}var Jo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function $o(){return Ui(Qe,Jo).scale(169.529)}var vo=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function ks(){return Ui(Qe,vo).scale(169.529).rotate([20,0])}var pu=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function Ss(){return Ui(As,pu,or).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Cs=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Ko(){return Ui(Er,Cs).scale(152.63).rotate([-20,0])}function Hl(T,L){return[3/z*T*G(x*x/3-L*L),L]}Hl.invert=function(T,L){return[z/3*T/G(x*x/3-L*L),L]};function Bl(){return r.geoProjection(Hl).scale(158.837)}function gu(T){function L(P,R){if(n(n(R)-_)2)return null;P/=2,R/=2;var O=P*P,Z=R*R,ue=2*R/(1+O+Z);return ue=h((1+ue)/(1-ue),1/T),[i(2*P,1-O-Z)/T,B((ue-1)/(ue+1))]},L}function mu(){var T=.5,L=r.geoProjectionMutator(gu),P=L(T);return P.spacing=function(R){return arguments.length?L(T=+R):T},P.scale(124.75)}var oi=x/M;function yu(T,L){return[T*(1+G(o(L)))/2,L/(o(L/2)*o(T/6))]}yu.invert=function(T,L){var P=n(T),R=n(L),Y=b,O=_;Rb||n(Mr)>b)&&--Y>0);return Y&&[P,R]};function Kn(){return r.geoProjection(Fa).scale(139.98)}function Aa(T,L){return[p(T)/o(L),y(L)*o(T)]}Aa.invert=function(T,L){var P=T*T,R=L*L,Y=R+1,O=P+Y,Z=T?k*G((O-G(O*O-4*P))/P):1/G(Y);return[B(T*Z),m(L)*X(Z)]};function Gi(){return r.geoProjection(Aa).scale(144.049).clipAngle(90-.001)}function Ls(T){var L=o(T),P=y(A+T/2);function R(Y,O){var Z=O-T,ue=n(Z)=0;)de=T[le],xe=de[0]+ue*(He=xe)-ve*qe,qe=de[1]+ue*qe+ve*He;return xe=ue*(He=xe)-ve*qe,qe=ue*qe+ve*He,[xe,qe]}return P.invert=function(R,Y){var O=20,Z=R,ue=Y;do{for(var ve=L,le=T[ve],de=le[0],xe=le[1],qe=0,He=0,er;--ve>=0;)le=T[ve],qe=de+Z*(er=qe)-ue*He,He=xe+Z*He+ue*er,de=le[0]+Z*(er=de)-ue*xe,xe=le[1]+Z*xe+ue*er;qe=de+Z*(er=qe)-ue*He,He=xe+Z*He+ue*er,de=Z*(er=de)-ue*xe-R,xe=Z*xe+ue*er-Y;var fr=qe*qe+He*He,Mr,Zr;Z-=Mr=(de*qe+xe*He)/fr,ue-=Zr=(xe*qe-de*He)/fr}while(n(Mr)+n(Zr)>b*b&&--O>0);if(O){var at=G(Z*Z+ue*ue),ot=2*a(at*.5),st=p(ot);return[i(Z*st,at*o(ot)),at?B(ue*st/at):0]}},P}var Bv=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Ov=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Lf=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],qf=[[.9245,0],[0,0],[.01943,0]],Df=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Ef(){return xi(Bv,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Kc(){return xi(Ov,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Qc(){return xi(Lf,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function qs(){return xi(qf,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Ds(){return xi(Df,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function xi(T,L){var P=r.geoProjection($c(T)).rotate(L).clipAngle(90),R=r.geoRotation(L),Y=P.center;return delete P.rotate,P.center=function(O){return arguments.length?Y(R(O)):R.invert(Y())},P}var _u=G(6),Es=G(7);function xu(T,L){var P=B(7*p(L)/(3*_u));return[_u*T*(2*o(2*P/3)-1)/Es,9*p(P/3)/Es]}xu.invert=function(T,L){var P=3*B(L*Es/9);return[T*Es/(_u*(2*o(2*P/3)-1)),B(p(P)*3*_u/7)]};function e0(){return r.geoProjection(xu).scale(164.859)}function Pf(T,L){for(var P=(1+k)*p(L),R=L,Y=0,O;Y<25&&(R-=O=(p(R/2)+p(R)-P)/(.5*o(R/2)+o(R)),!(n(O)C&&--R>0);return O=P*P,Z=O*O,ue=O*Z,[T/(.84719-.13063*O+ue*ue*(-.04515+.05494*O-.02326*Z+.00331*ue)),P]};function Ps(){return r.geoProjection(Ul).scale(175.295)}function Rs(T,L){return[T*(1+o(L))/2,2*(L-y(L/2))]}Rs.invert=function(T,L){for(var P=L/2,R=0,Y=1/0;R<10&&n(Y)>b;++R){var O=o(L/2);L-=Y=(L-y(L/2)-P)/(1-.5/(O*O))}return[2*T/(1+o(L)),L]};function Rf(){return r.geoProjection(Rs).scale(152.63)}var po=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function r0(){return Ui(ke(1/0),po).rotate([20,0]).scale(152.63)}function zf(T,L){var P=p(L),R=o(L),Y=m(T);if(T===0||n(L)===_)return[0,L];if(L===0)return[T,0];if(n(T)===_)return[T*R,_*P];var O=x/(2*T)-2*T/x,Z=2*L/x,ue=(1-Z*Z)/(P-Z),ve=O*O,le=ue*ue,de=1+ve/le,xe=1+le/ve,qe=(O*P/ue-O/2)/de,He=(le*P/ve+ue/2)/xe,er=qe*qe+R*R/de,fr=He*He-(le*P*P/ve+ue*P-1)/xe;return[_*(qe+G(er)*Y),_*(He+G(fr<0?0:fr)*m(-L*O)*Y)]}zf.invert=function(T,L){T/=_,L/=_;var P=T*T,R=L*L,Y=P+R,O=x*x;return[T?(Y-1+G((1-Y)*(1-Y)+4*P))/(2*T)*_:0,ir(function(Z){return Y*(x*p(Z)-2*Z)*x+4*Z*Z*(L-p(Z))+2*x*Z-O*L},0)]};function t0(){return r.geoProjection(zf).scale(127.267)}var Nf=1.0148,Mu=.23185,Ff=-.14499,If=.02406,Yv=Nf,Hf=5*Mu,wi=7*Ff,Bf=9*If,Yl=1.790857183;function Of(T,L){var P=L*L;return[T,L*(Nf+P*P*(Mu+P*(Ff+If*P)))]}Of.invert=function(T,L){L>Yl?L=Yl:L<-Yl&&(L=-Yl);var P=L,R;do{var Y=P*P;P-=R=(P*(Nf+Y*Y*(Mu+Y*(Ff+If*Y)))-L)/(Yv+Y*Y*(Hf+Y*(wi+Bf*Y)))}while(n(R)>b);return[T,P]};function n0(){return r.geoProjection(Of).scale(139.319)}function el(T,L){if(n(L)b&&--Y>0);return Z=y(R),[(n(L)=0;)if(R=L[ue],P[0]===R[0]&&P[1]===R[1]){if(O)return[O,P];O=P}}}function l0(T){for(var L=T.length,P=[],R=T[L-1],Y=0;Y0?[-R[0],0]:[180-R[0],180])};var L=Au.map(function(P){return{face:P,project:T(P)}});return[-1,0,0,1,0,1,4,5].forEach(function(P,R){var Y=L[P];Y&&(Y.children||(Y.children=[])).push(L[R])}),Gl(L[0],function(P,R){return L[P<-x/2?R<0?6:4:P<0?R<0?2:0:PR^He>R&&P<(qe-le)*(R-de)/(He-de)+le&&(Y=!Y)}return Y}function Su(T,L){var P=L.stream,R;if(!P)throw new Error("invalid projection");switch(T&&T.type){case"Feature":R=c0;break;case"FeatureCollection":R=f0;break;default:R=Cu;break}return R(T,P)}function f0(T,L){return{type:"FeatureCollection",features:T.features.map(function(P){return c0(P,L)})}}function c0(T,L){return{type:"Feature",id:T.id,properties:T.properties,geometry:Cu(T.geometry,L)}}function Uf(T,L){return{type:"GeometryCollection",geometries:T.geometries.map(function(P){return Cu(P,L)})}}function Cu(T,L){if(!T)return null;if(T.type==="GeometryCollection")return Uf(T,L);var P;switch(T.type){case"Point":P=Wl;break;case"MultiPoint":P=Wl;break;case"LineString":P=Lu;break;case"MultiLineString":P=Lu;break;case"Polygon":P=Os;break;case"MultiPolygon":P=Os;break;case"Sphere":P=Os;break;default:return null}return r.geoStream(T,L(P)),P.result()}var Zn=[],li=[],Wl={point:function(T,L){Zn.push([T,L])},result:function(){var T=Zn.length?Zn.length<2?{type:"Point",coordinates:Zn[0]}:{type:"MultiPoint",coordinates:Zn}:null;return Zn=[],T}},Lu={lineStart:ku,point:function(T,L){Zn.push([T,L])},lineEnd:function(){Zn.length&&(li.push(Zn),Zn=[])},result:function(){var T=li.length?li.length<2?{type:"LineString",coordinates:li[0]}:{type:"MultiLineString",coordinates:li}:null;return li=[],T}},Os={polygonStart:ku,lineStart:ku,point:function(T,L){Zn.push([T,L])},lineEnd:function(){var T=Zn.length;if(T){do Zn.push(Zn[0].slice());while(++T<4);li.push(Zn),Zn=[]}},polygonEnd:ku,result:function(){if(!li.length)return null;var T=[],L=[];return li.forEach(function(P){Bs(P)?T.push([P]):L.push(P)}),L.forEach(function(P){var R=P[0];T.some(function(Y){if(u0(Y[0],R))return Y.push(P),!0})||T.push([P])}),li=[],T.length?T.length>1?{type:"MultiPolygon",coordinates:T}:{type:"Polygon",coordinates:T[0]}:null}};function Yf(T){var L=T(_,0)[0]-T(-_,0)[0];function P(R,Y){var O=n(R)<_,Z=T(O?R:R>0?R-x:R+x,Y),ue=(Z[0]-Z[1])*k,ve=(Z[0]+Z[1])*k;if(O)return[ue,ve];var le=L*k,de=ue>0^ve>0?-1:1;return[de*ue-m(ve)*le,de*ve-m(ue)*le]}return T.invert&&(P.invert=function(R,Y){var O=(R+Y)*k,Z=(Y-R)*k,ue=n(O)<.5*L&&n(Z)<.5*L;if(!ue){var ve=L*k,le=O>0^Z>0?-1:1,de=-le*R+(Z>0?1:-1)*ve,xe=-le*Y+(O>0?1:-1)*ve;O=(-de-xe)*k,Z=(de-xe)*k}var qe=T.invert(O,Z);return ue||(qe[0]+=O>0?x:-x),qe}),r.geoProjection(P).rotate([-90,-90,45]).clipAngle(180-.001)}function H(){return Yf(vu).scale(176.423)}function J(){return Yf(lo).scale(111.48)}function ce(T,L){if(!(0<=(L=+L)&&L<=20))throw new Error("invalid digits");function P(le){var de=le.length,xe=2,qe=new Array(de);for(qe[0]=+le[0].toFixed(L),qe[1]=+le[1].toFixed(L);xe2||He[0]!=de[0]||He[1]!=de[1])&&(xe.push(He),de=He)}return xe.length===1&&le.length>1&&xe.push(P(le[le.length-1])),xe}function O(le){return le.map(Y)}function Z(le){if(le==null)return le;var de;switch(le.type){case"GeometryCollection":de={type:"GeometryCollection",geometries:le.geometries.map(Z)};break;case"Point":de={type:"Point",coordinates:P(le.coordinates)};break;case"MultiPoint":de={type:le.type,coordinates:R(le.coordinates)};break;case"LineString":de={type:le.type,coordinates:Y(le.coordinates)};break;case"MultiLineString":case"Polygon":de={type:le.type,coordinates:O(le.coordinates)};break;case"MultiPolygon":de={type:"MultiPolygon",coordinates:le.coordinates.map(O)};break;default:return le}return le.bbox!=null&&(de.bbox=le.bbox),de}function ue(le){var de={type:"Feature",properties:le.properties,geometry:Z(le.geometry)};return le.id!=null&&(de.id=le.id),le.bbox!=null&&(de.bbox=le.bbox),de}if(T!=null)switch(T.type){case"Feature":return ue(T);case"FeatureCollection":{var ve={type:"FeatureCollection",features:T.features.map(ue)};return T.bbox!=null&&(ve.bbox=T.bbox),ve}default:return Z(T)}return T}function oe(T){var L=p(T);function P(R,Y){var O=L?y(R*L/2)/L:R/2;if(!Y)return[2*O,-T];var Z=2*a(O*p(Y)),ue=1/y(Y);return[p(Z)*ue,Y+(1-o(Z))*ue-T]}return P.invert=function(R,Y){if(n(Y+=T)b&&--ue>0);var qe=R*(le=y(Z)),He=y(n(Y)0?_:-_)*(ve+Y*(de-Z)/2+Y*Y*(de-2*ve+Z)/2)]}Je.invert=function(T,L){var P=L/_,R=P*90,Y=v(18,n(R/5)),O=f(0,s(Y));do{var Z=Be[O][1],ue=Be[O+1][1],ve=Be[v(19,O+2)][1],le=ve-Z,de=ve-2*ue+Z,xe=2*(n(P)-ue)/le,qe=de/le,He=xe*(1-qe*xe*(1-2*qe*xe));if(He>=0||O===1){R=(L>=0?5:-5)*(He+Y);var er=50,fr;do Y=v(18,n(R)/5),O=s(Y),He=Y-O,Z=Be[O][1],ue=Be[O+1][1],ve=Be[v(19,O+2)][1],R-=(fr=(L>=0?_:-_)*(ue+He*(ve-Z)/2+He*He*(ve-2*ue+Z)/2)-L)*F;while(n(fr)>C&&--er>0);break}}while(--O>=0);var Mr=Be[O][0],Zr=Be[O+1][0],at=Be[v(19,O+2)][0];return[T/(Zr+He*(at-Mr)/2+He*He*(at-2*Zr+Mr)/2),R*I]};function nr(){return r.geoProjection(Je).scale(152.63)}function lr(T){function L(P,R){var Y=o(R),O=(T-1)/(T-Y*o(P));return[O*Y*p(P),O*p(R)]}return L.invert=function(P,R){var Y=P*P+R*R,O=G(Y),Z=(T-G(1-Y*(T+1)/(T-1)))/((T-1)/O+O/(T-1));return[i(P*Z,O*G(1-Z*Z)),O?B(R*Z/O):0]},L}function yr(T,L){var P=lr(T);if(!L)return P;var R=o(L),Y=p(L);function O(Z,ue){var ve=P(Z,ue),le=ve[1],de=le*Y/(T-1)+R;return[ve[0]*R/de,le/de]}return O.invert=function(Z,ue){var ve=(T-1)/(T-1-ue*Y);return P.invert(ve*Z,ve*ue*R)},O}function Ke(){var T=2,L=0,P=r.geoProjectionMutator(yr),R=P(T,L);return R.distance=function(Y){return arguments.length?P(T=+Y,L):T},R.tilt=function(Y){return arguments.length?P(T,L=Y*I):L*F},R.scale(432.147).clipAngle(X(1/T)*F-1e-6)}var vr=1e-4,sr=1e4,xr=-180,Sr=xr+vr,et=180,jr=et-vr,tt=-90,nt=tt+vr,Lr=90,Br=Lr-vr;function it(T){return T.length>0}function pt(T){return Math.floor(T*sr)/sr}function Vt(T){return T===tt||T===Lr?[0,T]:[xr,pt(T)]}function tn(T){var L=T[0],P=T[1],R=!1;return L<=Sr?(L=xr,R=!0):L>=jr&&(L=et,R=!0),P<=nt?(P=tt,R=!0):P>=Br&&(P=Lr,R=!0),R?[L,P]:T}function Zt(T){return T.map(tn)}function gn(T,L,P){for(var R=0,Y=T.length;R=jr||de<=nt||de>=Br){O[Z]=tn(ve);for(var xe=Z+1;xeSr&&Hent&&er=ue)break;P.push({index:-1,polygon:L,ring:O=O.slice(xe-1)}),O[0]=Vt(O[0][1]),Z=-1,ue=O.length}}}}function Lt(T){var L,P=T.length,R={},Y={},O,Z,ue,ve,le;for(L=0;L0?x-ue:ue)*F],le=r.geoProjection(T(Z)).rotate(ve),de=r.geoRotation(ve),xe=le.center;return delete le.rotate,le.center=function(qe){return arguments.length?xe(de(qe)):de.invert(xe())},le.clipAngle(90)}function ga(T){var L=o(T);function P(R,Y){var O=r.geoGnomonicRaw(R,Y);return O[0]*=L,O}return P.invert=function(R,Y){return r.geoGnomonicRaw.invert(R/L,Y)},P}function Xa(){return Wi([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Wi(T,L){return Un(ga,T,L)}function Ai(T){if(!(T*=2))return r.geoAzimuthalEquidistantRaw;var L=-T/2,P=-L,R=T*T,Y=y(P),O=.5/p(P);function Z(ue,ve){var le=X(o(ve)*o(ue-L)),de=X(o(ve)*o(ue-P)),xe=ve<0?-1:1;return le*=le,de*=de,[(le-de)/(2*T),xe*G(4*R*de-(R-le+de)*(R-le+de))/(2*T)]}return Z.invert=function(ue,ve){var le=ve*ve,de=o(G(le+(qe=ue+L)*qe)),xe=o(G(le+(qe=ue+P)*qe)),qe,He;return[i(He=de-xe,qe=(de+xe)*Y),(ve<0?-1:1)*X(G(qe*qe+He*He)*O)]},Z}function nl(){return si([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function si(T,L){return Un(Ai,T,L)}function al(T,L){if(n(L)b&&--ue>0);return[m(T)*(G(Y*Y+4)+Y)*x/4,_*Z]};function Zi(){return r.geoProjection(Gf).scale(127.16)}function Zh(T,L,P,R,Y){function O(Z,ue){var ve=P*p(R*ue),le=G(1-ve*ve),de=G(2/(1+le*o(Z*=Y)));return[T*le*de*p(Z),L*ve*de]}return O.invert=function(Z,ue){var ve=Z/T,le=ue/L,de=G(ve*ve+le*le),xe=2*B(de/2);return[i(Z*y(xe),T*de)/Y,de&&B(ue*p(xe)/(L*P*de))/R]},O}function Xh(T,L,P,R){var Y=x/3;T=f(T,b),L=f(L,b),T=v(T,_),L=v(L,x-b),P=f(P,0),P=v(P,100-b),R=f(R,b);var O=P/100+1,Z=R/100,ue=X(O*o(Y))/Y,ve=p(T)/p(ue*_),le=L/x,de=G(Z*p(T/2)/p(L/2)),xe=de/G(le*ve*ue),qe=1/(de*G(le*ve*ue));return Zh(xe,qe,ve,ue,le)}function d0(){var T=65*I,L=60*I,P=20,R=200,Y=r.geoProjectionMutator(Xh),O=Y(T,L,P,R);return O.poleline=function(Z){return arguments.length?Y(T=+Z*I,L,P,R):T*F},O.parallels=function(Z){return arguments.length?Y(T,L=+Z*I,P,R):L*F},O.inflation=function(Z){return arguments.length?Y(T,L,P=+Z,R):P},O.ratio=function(Z){return arguments.length?Y(T,L,P,R=+Z):R},O.scale(163.775)}function Xv(){return d0().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var jh=4*x+3*G(3),Jh=2*G(2*x*G(3)/jh),$h=cr(Jh*G(3)/x,Jh,jh/6);function p0(){return r.geoProjection($h).scale(176.84)}function Vf(T,L){return[T*G(1-3*L*L/(x*x)),L]}Vf.invert=function(T,L){return[T/G(1-3*L*L/(x*x)),L]};function Kh(){return r.geoProjection(Vf).scale(152.63)}function jv(T,L){var P=o(L),R=o(T)*P,Y=1-R,O=o(T=i(p(T)*P,-p(L))),Z=p(T);return P=G(1-R*R),[Z*P-O*Y,-O*P-Z*Y]}jv.invert=function(T,L){var P=(T*T+L*L)/-2,R=G(-P*(2+P)),Y=L*P+T*R,O=T*P-L*R,Z=G(O*O+Y*Y);return[i(R*Y,Z*(1+P)),Z?-B(R*O/Z):0]};function xy(){return r.geoProjection(jv).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function Jv(T,L){var P=Ne(T,L);return[(P[0]+T/_)/2,(P[1]+L)/2]}Jv.invert=function(T,L){var P=T,R=L,Y=25;do{var O=o(R),Z=p(R),ue=p(2*R),ve=Z*Z,le=O*O,de=p(P),xe=o(P/2),qe=p(P/2),He=qe*qe,er=1-le*xe*xe,fr=er?X(O*xe)*G(Mr=1/er):Mr=0,Mr,Zr=.5*(2*fr*O*qe+P/_)-T,at=.5*(fr*Z+R)-L,ot=.5*Mr*(le*He+fr*O*xe*ve)+.5/_,st=Mr*(de*ue/4-fr*Z*qe),vt=.125*Mr*(ue*qe-fr*Z*le*de),ln=.5*Mr*(ve*xe+fr*He*O)+.5,Mn=st*vt-ln*ot,zt=(at*st-Zr*ln)/Mn,Fn=(Zr*vt-at*ot)/Mn;P-=zt,R-=Fn}while((n(zt)>b||n(Fn)>b)&&--Y>0);return[P,R]};function Ti(){return r.geoProjection(Jv).scale(158.837)}e.geoNaturalEarth=r.geoNaturalEarth1,e.geoNaturalEarthRaw=r.geoNaturalEarth1Raw,e.geoAiry=De,e.geoAiryRaw=he,e.geoAitoff=Fe,e.geoAitoffRaw=Ne,e.geoArmadillo=Le,e.geoArmadilloRaw=Xe,e.geoAugust=se,e.geoAugustRaw=rr,e.geoBaker=U,e.geoBakerRaw=pe,e.geoBerghaus=$,e.geoBerghausRaw=Q,e.geoBertin1953=tr,e.geoBertin1953Raw=Ue,e.geoBoggs=Ar,e.geoBoggsRaw=Ye,e.geoBonne=hr,e.geoBonneRaw=je,e.geoBottomley=mr,e.geoBottomleyRaw=wr,e.geoBromley=Dr,e.geoBromleyRaw=Tr,e.geoChamberlin=Ze,e.geoChamberlinRaw=be,e.geoChamberlinAfrica=$e,e.geoCollignon=Hr,e.geoCollignonRaw=qr,e.geoCraig=lt,e.geoCraigRaw=Pr,e.geoCraster=Ht,e.geoCrasterRaw=Nt,e.geoCylindricalEqualArea=Tn,e.geoCylindricalEqualAreaRaw=An,e.geoCylindricalStereographic=Ft,e.geoCylindricalStereographicRaw=cn,e.geoEckert1=en,e.geoEckert1Raw=jt,e.geoEckert2=aa,e.geoEckert2Raw=Jt,e.geoEckert3=rn,e.geoEckert3Raw=rt,e.geoEckert4=dn,e.geoEckert4Raw=St,e.geoEckert5=an,e.geoEckert5Raw=pn,e.geoEckert6=da,e.geoEckert6Raw=vn,e.geoEisenlohr=pa,e.geoEisenlohrRaw=Na,e.geoFahey=Bn,e.geoFaheyRaw=Bt,e.geoFoucaut=io,e.geoFoucautRaw=pi,e.geoFoucautSinusoidal=ms,e.geoFoucautSinusoidalRaw=gi,e.geoGilbert=ys,e.geoGingery=Uo,e.geoGingeryRaw=Oo,e.geoGinzburg4=Ct,e.geoGinzburg4Raw=Kr,e.geoGinzburg5=Ur,e.geoGinzburg5Raw=Ot,e.geoGinzburg6=on,e.geoGinzburg6Raw=Wn,e.geoGinzburg8=At,e.geoGinzburg8Raw=Pn,e.geoGinzburg9=Yo,e.geoGinzburg9Raw=Wa,e.geoGringorten=Vo,e.geoGringortenRaw=vu,e.geoGuyou=bs,e.geoGuyouRaw=lo,e.geoHammer=Ie,e.geoHammerRaw=ke,e.geoHammerRetroazimuthal=_s,e.geoHammerRetroazimuthalRaw=Mf,e.geoHealpix=Nl,e.geoHealpixRaw=so,e.geoHill=Xc,e.geoHillRaw=Tf,e.geoHomolosine=Fv,e.geoHomolosineRaw=Ts,e.geoHufnagel=kf,e.geoHufnagelRaw=Xo,e.geoHyperelliptical=co,e.geoHyperellipticalRaw=fo,e.geoInterrupt=Ui,e.geoInterruptedBoggs=Hv,e.geoInterruptedHomolosine=jo,e.geoInterruptedMollweide=$o,e.geoInterruptedMollweideHemispheres=ks,e.geoInterruptedSinuMollweide=Ss,e.geoInterruptedSinusoidal=Ko,e.geoKavrayskiy7=Bl,e.geoKavrayskiy7Raw=Hl,e.geoLagrange=mu,e.geoLagrangeRaw=gu,e.geoLarrivee=bu,e.geoLarriveeRaw=yu,e.geoLaskowski=Kn,e.geoLaskowskiRaw=Fa,e.geoLittrow=Gi,e.geoLittrowRaw=Aa,e.geoLoximuthal=Qo,e.geoLoximuthalRaw=Ls,e.geoMiller=Cf,e.geoMillerRaw=Ol,e.geoModifiedStereographic=xi,e.geoModifiedStereographicRaw=$c,e.geoModifiedStereographicAlaska=Ef,e.geoModifiedStereographicGs48=Kc,e.geoModifiedStereographicGs50=Qc,e.geoModifiedStereographicMiller=qs,e.geoModifiedStereographicLee=Ds,e.geoMollweide=pr,e.geoMollweideRaw=Qe,e.geoMtFlatPolarParabolic=e0,e.geoMtFlatPolarParabolicRaw=xu,e.geoMtFlatPolarQuartic=Uv,e.geoMtFlatPolarQuarticRaw=Pf,e.geoMtFlatPolarSinusoidal=wu,e.geoMtFlatPolarSinusoidalRaw=ho,e.geoNaturalEarth2=Ps,e.geoNaturalEarth2Raw=Ul,e.geoNellHammer=Rf,e.geoNellHammerRaw=Rs,e.geoInterruptedQuarticAuthalic=r0,e.geoNicolosi=t0,e.geoNicolosiRaw=zf,e.geoPatterson=n0,e.geoPattersonRaw=Of,e.geoPolyconic=a0,e.geoPolyconicRaw=el,e.geoPolyhedral=Gl,e.geoPolyhedralButterfly=Ns,e.geoPolyhedralCollignon=Zv,e.geoPolyhedralWaterman=Is,e.geoProject=Su,e.geoGringortenQuincuncial=H,e.geoPeirceQuincuncial=J,e.geoPierceQuincuncial=J,e.geoQuantize=ce,e.geoQuincuncial=Yf,e.geoRectangularPolyconic=Me,e.geoRectangularPolyconicRaw=oe,e.geoRobinson=nr,e.geoRobinsonRaw=Je,e.geoSatellite=Ke,e.geoSatelliteRaw=yr,e.geoSinuMollweide=jc,e.geoSinuMollweideRaw=As,e.geoSinusoidal=Ae,e.geoSinusoidalRaw=Er,e.geoStitch=mn,e.geoTimes=Wt,e.geoTimesRaw=Gr,e.geoTwoPointAzimuthal=Wi,e.geoTwoPointAzimuthalRaw=ga,e.geoTwoPointAzimuthalUsa=Xa,e.geoTwoPointEquidistant=si,e.geoTwoPointEquidistantRaw=Ai,e.geoTwoPointEquidistantUsa=nl,e.geoVanDerGrinten=Zl,e.geoVanDerGrintenRaw=al,e.geoVanDerGrinten2=v0,e.geoVanDerGrinten2Raw=qu,e.geoVanDerGrinten3=Wh,e.geoVanDerGrinten3Raw=h0,e.geoVanDerGrinten4=Zi,e.geoVanDerGrinten4Raw=Gf,e.geoWagner=d0,e.geoWagner7=Xv,e.geoWagnerRaw=Xh,e.geoWagner4=p0,e.geoWagner4Raw=$h,e.geoWagner6=Kh,e.geoWagner6Raw=Vf,e.geoWiechel=xy,e.geoWiechelRaw=jv,e.geoWinkel3=Ti,e.geoWinkel3Raw=Jv,Object.defineProperty(e,"__esModule",{value:!0})})});var uF=te((Hve,sF)=>{"use strict";var ha=kt(),i_=gr(),Gae=dt(),Dv=Math.PI/180,Hc=180/Math.PI,l_={cursor:"pointer"},s_={cursor:"auto"};function Vae(e,r){var t=e.projection,n;return r._isScoped?n=Wae:r._isClipped?n=Xae:n=Zae,n(e,t)}sF.exports=Vae;function u_(e,r){return ha.behavior.zoom().translate(r.translate()).scale(r.scale())}function f_(e,r,t){var n=e.id,a=e.graphDiv,i=a.layout,o=i[n],l=a._fullLayout,s=l[n],u={},f={};function v(h,d){u[n+"."+h]=i_.nestedProperty(o,h).get(),Gae.call("_storeDirectGUIEdit",i,l._preGUI,u);var m=i_.nestedProperty(s,h);m.get()!==d&&(m.set(d),i_.nestedProperty(o,h).set(d),f[n+"."+h]=d)}t(v),v("projection.scale",r.scale()/e.fitScale),v("fitbounds",!1),a.emit("plotly_relayout",f)}function Wae(e,r){var t=u_(e,r);function n(){ha.select(this).style(l_)}function a(){r.scale(ha.event.scale).translate(ha.event.translate),e.render(!0);var l=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":l[0],"geo.center.lat":l[1]})}function i(l){var s=r.invert(e.midPt);l("center.lon",s[0]),l("center.lat",s[1])}function o(){ha.select(this).style(s_),f_(e,r,i)}return t.on("zoomstart",n).on("zoom",a).on("zoomend",o),t}function Zae(e,r){var t=u_(e,r),n=2,a,i,o,l,s,u,f,v,h;function d(x){return r.invert(x)}function m(x){var _=d(x);if(!_)return!0;var A=r(_);return Math.abs(A[0]-x[0])>n||Math.abs(A[1]-x[1])>n}function p(){ha.select(this).style(l_),a=ha.mouse(this),i=r.rotate(),o=r.translate(),l=i,s=d(a)}function y(){if(u=ha.mouse(this),m(a)){t.scale(r.scale()),t.translate(r.translate());return}r.scale(ha.event.scale),r.translate([o[0],ha.event.translate[1]]),s?d(u)&&(v=d(u),f=[l[0]+(v[0]-s[0]),i[1],i[2]],r.rotate(f),l=f):(a=u,s=d(a)),h=!0,e.render(!0);var x=r.rotate(),_=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":_[0],"geo.center.lat":_[1],"geo.projection.rotation.lon":-x[0]})}function b(){ha.select(this).style(s_),h&&f_(e,r,C)}function C(x){var _=r.rotate(),A=r.invert(e.midPt);x("projection.rotation.lon",-_[0]),x("center.lon",A[0]),x("center.lat",A[1])}return t.on("zoomstart",p).on("zoom",y).on("zoomend",b),t}function Xae(e,r){var t={r:r.rotate(),k:r.scale()},n=u_(e,r),a=tie(n,"zoomstart","zoom","zoomend"),i=0,o=n.on,l;n.on("zoomstart",function(){ha.select(this).style(l_);var h=ha.mouse(this),d=r.rotate(),m=d,p=r.translate(),y=jae(d);l=oy(r,h),o.call(n,"zoom",function(){var b=ha.mouse(this);if(r.scale(t.k=ha.event.scale),!l)h=b,l=oy(r,h);else if(oy(r,b)){r.rotate(d).translate(p);var C=oy(r,b),x=$ae(l,C),_=Qae(Jae(y,x)),A=t.r=Kae(_,l,m);(!isFinite(A[0])||!isFinite(A[1])||!isFinite(A[2]))&&(A=m),r.rotate(A),m=A}u(a.of(this,arguments))}),s(a.of(this,arguments))}).on("zoomend",function(){ha.select(this).style(s_),o.call(n,"zoom",null),f(a.of(this,arguments)),f_(e,r,v)}).on("zoom.redraw",function(){e.render(!0);var h=r.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function s(h){i++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function f(h){--i||h({type:"zoomend"})}function v(h){var d=r.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return ha.rebind(n,a,"on")}function oy(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&eie(t)}function jae(e){var r=.5*e[0]*Dv,t=.5*e[1]*Dv,n=.5*e[2]*Dv,a=Math.sin(r),i=Math.cos(r),o=Math.sin(t),l=Math.cos(t),s=Math.sin(n),u=Math.cos(n);return[i*l*u+a*o*s,a*l*u-i*o*s,i*o*u+a*l*s,i*l*s-a*o*u]}function Jae(e,r){var t=e[0],n=e[1],a=e[2],i=e[3],o=r[0],l=r[1],s=r[2],u=r[3];return[t*o-n*l-a*s-i*u,t*l+n*o+a*u-i*s,t*s-n*u+a*o+i*l,t*u+n*s-a*l+i*o]}function $ae(e,r){if(!(!e||!r)){var t=rie(e,r),n=Math.sqrt(lF(t,t)),a=.5*Math.acos(Math.max(-1,Math.min(1,lF(e,r)))),i=Math.sin(a)/n;return n&&[Math.cos(a),t[2]*i,-t[1]*i,t[0]*i]}}function Kae(e,r,t){var n=o_(r,2,e[0]);n=o_(n,1,e[1]),n=o_(n,0,e[2]-t[2]);var a=r[0],i=r[1],o=r[2],l=n[0],s=n[1],u=n[2],f=Math.atan2(i,a)*Hc,v=Math.sqrt(a*a+i*i),h,d;Math.abs(s)>v?(d=(s>0?90:-90)-f,h=0):(d=Math.asin(s/v)*Hc-f,h=Math.sqrt(v*v-s*s));var m=180-d-2*f,p=(Math.atan2(u,l)-Math.atan2(o,h))*Hc,y=(Math.atan2(u,l)-Math.atan2(o,-h))*Hc,b=iF(t[0],t[1],d,p),C=iF(t[0],t[1],m,y);return b<=C?[d,p,t[2]]:[m,y,t[2]]}function iF(e,r,t,n){var a=oF(t-e),i=oF(n-r);return Math.sqrt(a*a+i*i)}function oF(e){return(e%360+540)%360-180}function o_(e,r,t){var n=t*Dv,a=e.slice(),i=r===0?1:0,o=r===2?1:2,l=Math.cos(n),s=Math.sin(n);return a[i]=e[i]*l-e[o]*s,a[o]=e[o]*l+e[i]*s,a}function Qae(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*Hc,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*Hc,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*Hc]}function eie(e){var r=e[0]*Dv,t=e[1]*Dv,n=Math.cos(t);return[n*Math.cos(r),n*Math.sin(r),Math.sin(t)]}function lF(e,r){for(var t=0,n=0,a=e.length;n{"use strict";var fu=kt(),h_=a_(),nie=h_.geoPath,aie=h_.geoDistance,iie=aF(),oie=dt(),Bh=gr(),lie=Bh.strTranslate,ly=Pt(),Hh=fn(),fF=ss(),sie=fa(),v_=Dn(),cF=Ju().getAutoRange,c_=To(),uie=au().prepSelect,fie=au().clearOutline,cie=au().selectOnClick,vie=uF(),di=Nh(),hie=ey(),hF=Gm(),die=U4().feature;function dF(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var Dl=dF.prototype;pF.exports=function(r){return new dF(r)};Dl.plot=function(e,r,t,n){var a=this;if(n)return a.update(e,r,!0);a._geoCalcData=e,a._fullLayout=r;var i=r[this.id],o=[],l=!1;for(var s in di.layerNameToAdjective)if(s!=="frame"&&i["show"+s]){l=!0;break}for(var u=!1,f=0;f0&&o._module.calcGeoJSON(i,r)}if(!t){var l=this.updateProjection(e,r);if(l)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(r,n),this.updateDims(r,n),this.updateFx(r,n),sie.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var s=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=s.selectAll(".point"),this.dataPoints.text=s.selectAll("text"),this.dataPaths.line=s.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};Dl.updateProjection=function(e,r){var t=this.graphDiv,n=r[this.id],a=r._size,i=n.domain,o=n.projection,l=n.lonaxis,s=n.lataxis,u=l._ax,f=s._ax,v=this.projection=pie(n),h=[[a.l+a.w*i.x[0],a.t+a.h*(1-i.y[1])],[a.l+a.w*i.x[1],a.t+a.h*(1-i.y[0])]],d=n.center||{},m=o.rotation||{},p=l.range||[],y=s.range||[];if(n.fitbounds){u._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],u.range=cF(t,u),f.range=cF(t,f);var b=(u.range[0]+u.range[1])/2,C=(f.range[0]+f.range[1])/2;if(n._isScoped)d={lon:b,lat:C};else if(n._isClipped){d={lon:b,lat:C},m={lon:b,lat:C,roll:m.roll};var x=o.type,_=di.lonaxisSpan[x]/2||180,A=di.lataxisSpan[x]/2||90;p=[b-_,b+_],y=[C-A,C+A]}else d={lon:b,lat:C},m={lon:b,lat:m.lat,roll:m.roll}}v.center([d.lon-m.lon,d.lat-m.lat]).rotate([-m.lon,-m.lat,m.roll]).parallels(o.parallels);var k=vF(p,y);v.fitExtent(h,k);var M=this.bounds=v.getBounds(k),D=this.fitScale=v.scale(),z=v.translate();if(n.fitbounds){var F=v.getBounds(vF(u.range,f.range)),I=Math.min((M[1][0]-M[0][0])/(F[1][0]-F[0][0]),(M[1][1]-M[0][1])/(F[1][1]-F[0][1]));isFinite(I)?v.scale(I*D):Bh.warn("Something went wrong during"+this.id+"fitbounds computations.")}else v.scale(o.scale*D);var W=this.midPt=[(M[0][0]+M[1][0])/2,(M[0][1]+M[1][1])/2];if(v.translate([z[0]+(W[0]-z[0]),z[1]+(W[1]-z[1])]).clipExtent(M),n._isAlbersUsa){var B=v([d.lon,d.lat]),X=v.translate();v.translate([X[0]-(B[0]-X[0]),X[1]-(B[1]-X[1])])}};Dl.updateBaseLayers=function(e,r){var t=this,n=t.topojson,a=t.layers,i=t.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function l(h){return!!di.lineLayers[h]}function s(h){return!!di.fillLayers[h]}var u=this.hasChoropleth?di.layersForChoropleth:di.layers,f=u.filter(function(h){return l(h)||s(h)?r["show"+h]:o(h)?r[h].showgrid:!0}),v=t.framework.selectAll(".layer").data(f,String);v.exit().each(function(h){delete a[h],delete i[h],fu.select(this).remove()}),v.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=a[h]=fu.select(this);h==="bg"?t.bgRect=d.append("rect").style("pointer-events","all"):o(h)?i[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):l(h)?i[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):s(h)&&(i[h]=d.append("path").style("stroke","none"))}),v.order(),v.each(function(h){var d=i[h],m=di.layerNameToAdjective[h];h==="frame"?d.datum(di.sphereSVG):l(h)||s(h)?d.datum(die(n,n.objects[h])):o(h)&&d.datum(gie(h,r,e)).call(ly.stroke,r[h].gridcolor).call(Hh.dashLine,r[h].griddash,r[h].gridwidth),l(h)?d.call(ly.stroke,r[m+"color"]).call(Hh.dashLine,"",r[m+"width"]):s(h)&&d.call(ly.fill,r[m+"color"])})};Dl.updateDims=function(e,r){var t=this.bounds,n=(r.framewidth||0)/2,a=t[0][0]-n,i=t[0][1]-n,o=t[1][0]-a+n,l=t[1][1]-i+n;Hh.setRect(this.clipRect,a,i,o,l),this.bgRect.call(Hh.setRect,a,i,o,l).call(ly.fill,r.bgcolor),this.xaxis._offset=a,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l};Dl.updateFx=function(e,r){var t=this,n=t.graphDiv,a=t.bgRect,i=e.dragmode,o=e.clickmode;if(t.isStatic)return;function l(){var v=t.viewInitial,h={};for(var d in v)h[t.id+"."+d]=v[d];oie.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function s(v){return t.projection.invert([v[0]+t.xaxis._offset,v[1]+t.yaxis._offset])}var u=function(v,h){if(h.isRect){var d=v.range={};d[t.id]=[s([h.xmin,h.ymin]),s([h.xmax,h.ymax])]}else{var m=v.lassoPoints={};m[t.id]=h.map(s)}},f={element:t.bgRect.node(),gd:n,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:u},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id,clickFn:function(v){v===2&&fie(n)}};i==="pan"?(a.node().onmousedown=null,a.call(vie(t,r)),a.on("dblclick.zoom",l),n._context._scrollZoom.geo||a.on("wheel.zoom",null)):(i==="select"||i==="lasso")&&(a.on(".zoom",null),f.prepFn=function(v,h,d){uie(v,h,d,f,i)},c_.init(f)),a.on("mousemove",function(){var v=t.projection.invert(Bh.getPositionFromD3Event());if(!v)return c_.unhover(n,fu.event);t.xaxis.p2c=function(){return v[0]},t.yaxis.p2c=function(){return v[1]},fF.hover(n,fu.event,t.id)}),a.on("mouseout",function(){n._dragging||c_.unhover(n,fu.event)}),a.on("click",function(){i!=="select"&&i!=="lasso"&&(o.indexOf("select")>-1&&cie(fu.event,n,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&fF.click(n,fu.event))})};Dl.makeFramework=function(){var e=this,r=e.graphDiv,t=r._fullLayout,n="clip"+t._uid+e.id;e.clipDef=t._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=fu.select(e.container).append("g").attr("class","geo "+e.id).call(Hh.setClipUrl,n,r),e.project=function(a){var i=e.projection(a);return i?[i[0]-e.xaxis._offset,i[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(a){return e.project(a)[0]}},e.yaxis={_id:"y",c2p:function(a){return e.project(a)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},v_.setConvert(e.mockAxis,t)};Dl.saveViewInitial=function(e){var r=e.center||{},t=e.projection,n=t.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":t.scale};var a;e._isScoped?a={"center.lon":r.lon,"center.lat":r.lat}:e._isClipped?a={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:a={"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":n.lon},Bh.extendFlat(this.viewInitial,a)};Dl.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};Dl._render=function(){var e=this.projection,r=e.getPath(),t;function n(i){var o=e(i.lonlat);return o?lie(o[0],o[1]):null}function a(i){return e.isLonLatOverEdges(i.lonlat)?"none":null}for(t in this.basePaths)this.basePaths[t].attr("d",r);for(t in this.dataPaths)this.dataPaths[t].attr("d",function(i){return r(i.geojson)});for(t in this.dataPoints)this.dataPoints[t].attr("display",a).attr("transform",n)};function pie(e){var r=e.projection,t=r.type,n=di.projNames[t];n="geo"+Bh.titleCase(n);for(var a=h_[n]||iie[n],i=a(),o=e._isSatellite?Math.acos(1/r.distance)*180/Math.PI:e._isClipped?di.lonaxisSpan[t]/2:null,l=["center","rotate","parallels","clipExtent"],s=function(v){return v?i:[]},u=0;um}else return!1},i.getPath=function(){return nie().projection(i)},i.getBounds=function(v){return i.getPath().bounds(v)},i.precision(di.precision),e._isSatellite&&i.tilt(r.tilt).distance(r.distance),o&&i.clipAngle(o-di.clipPad),i}function gie(e,r,t){var n=1e-6,a=2.5,i=r[e],o=di.scopeDefaults[r.scope],l,s,u;e==="lonaxis"?(l=o.lonaxisRange,s=o.lataxisRange,u=function(C,x){return[C,x]}):e==="lataxis"&&(l=o.lataxisRange,s=o.lonaxisRange,u=function(C,x){return[x,C]});var f={type:"linear",range:[l[0],l[1]-n],tick0:i.tick0,dtick:i.dtick};v_.setConvert(f,t);var v=v_.calcTicks(f);!r.isScoped&&e==="lonaxis"&&v.pop();for(var h=v.length,d=new Array(h),m=0;m0&&a<0&&(a+=360);var l=(a-n)/4;return{type:"Polygon",coordinates:[[[n,i],[n,o],[n+l,o],[n+2*l,o],[n+3*l,o],[a,o],[a,i],[a-l,i],[a-2*l,i],[a-3*l,i],[n,i]]]}}});var d_=te((Ove,bF)=>{"use strict";var Pv=cl(),mie=Nm().attributes,yie=Kl().dash,Ev=Nh(),bie=_o().overrideAll,mF=Cd(),yF={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:Pv.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:yie},_ie=bF.exports=bie({domain:mie({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:mF(Ev.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:mF(Ev.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:Pv.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:Ev.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:Ev.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:Ev.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:Ev.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:Pv.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:Pv.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:Pv.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:Pv.background},lonaxis:yF,lataxis:yF},"plot","from-root");_ie.uirevision={valType:"any",editType:"none"}});var xF=te((Uve,_F)=>{"use strict";var xie=gr(),wie=bn(),Mie=Nm().defaults;_F.exports=function(r,t,n,a){var i=a.type,o=a.attributes,l=a.handleDefaults,s=a.partition||"x",u=t._subplots[i],f=u.length,v=f&&u[0].replace(/\d+$/,""),h,d;function m(C,x){return xie.coerce(h,d,o,C,x)}for(var p=0;p{"use strict";var sy=gr(),Aie=xF(),Tie=y1().getSubplotData,uy=Nh(),kie=d_(),wF=uy.axesNames;MF.exports=function(r,t,n){Aie(r,t,n,{type:"geo",attributes:kie,handleDefaults:Sie,fullData:n,partition:"y"})};function Sie(e,r,t,n){var a=Tie(n.fullData,"geo",n.id),i=a.map(function(he){return he.index}),o=t("resolution"),l=t("scope"),s=uy.scopeDefaults[l],u=t("projection.type",s.projType),f=r._isAlbersUsa=u==="albers usa";f&&(l=r.scope="usa");var v=r._isScoped=l!=="world",h=r._isSatellite=u==="satellite",d=r._isConic=u.indexOf("conic")!==-1||u==="albers",m=r._isClipped=!!uy.lonaxisSpan[u];if(e.visible===!1){var p=sy.extendDeep({},r._template);p.showcoastlines=!1,p.showcountries=!1,p.showframe=!1,p.showlakes=!1,p.showland=!1,p.showocean=!1,p.showrivers=!1,p.showsubunits=!1,p.lonaxis&&(p.lonaxis.showgrid=!1),p.lataxis&&(p.lataxis.showgrid=!1),r._template=p}for(var y=t("visible"),b,C=0;C0&&B<0&&(B+=360);var X=(W+B)/2,G;if(!f){var re=v?s.projRotate:[X,0,0];G=t("projection.rotation.lon",re[0]),t("projection.rotation.lat",re[1]),t("projection.rotation.roll",re[2]),b=t("showcoastlines",!v&&y),b&&(t("coastlinecolor"),t("coastlinewidth")),b=t("showocean",y?void 0:!1),b&&t("oceancolor")}var ne,K;if(f?(ne=-96.6,K=38.7):(ne=v?X:G,K=(I[0]+I[1])/2),t("center.lon",ne),t("center.lat",K),h&&(t("projection.tilt"),t("projection.distance")),d){var ee=s.projParallels||[0,60];t("projection.parallels",ee)}t("projection.scale"),b=t("showland",y?void 0:!1),b&&t("landcolor"),b=t("showlakes",y?void 0:!1),b&&t("lakecolor"),b=t("showrivers",y?void 0:!1),b&&(t("rivercolor"),t("riverwidth")),b=t("showcountries",v&&l!=="usa"&&y),b&&(t("countrycolor"),t("countrywidth")),(l==="usa"||l==="north america"&&o===50)&&(t("showsubunits",y),t("subunitcolor"),t("subunitwidth")),v||(b=t("showframe",y),b&&(t("framecolor"),t("framewidth"))),t("bgcolor");var fe=t("fitbounds");fe&&(delete r.projection.scale,v?(delete r.center.lon,delete r.center.lat):m?(delete r.center.lon,delete r.center.lat,delete r.projection.rotation.lon,delete r.projection.rotation.lat,delete r.lonaxis.range,delete r.lataxis.range):(delete r.center.lon,delete r.center.lat,delete r.projection.rotation.lon))}});var p_=te((Gve,SF)=>{"use strict";var Cie=y1().getSubplotCalcData,Lie=gr().counterRegex,qie=gF(),ps="geo",TF=Lie(ps),kF={};kF[ps]={valType:"subplotid",dflt:ps,editType:"calc"};function Die(e){for(var r=e._fullLayout,t=e.calcdata,n=r._subplots[ps],a=0;a{"use strict";CF.exports={attributes:zh(),supplyDefaults:iN(),colorbar:Rb(),formatLabels:sN(),calc:hN(),calcGeoJSON:t_().calcGeoJSON,plot:t_().plot,style:K4(),styleOnSelect:_h().styleOnSelect,hoverPoints:jN(),eventData:$N(),selectPoints:eF(),moduleType:"trace",name:"scattergeo",basePlotModule:p_(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var DF=te((Wve,qF)=>{"use strict";qF.exports=LF()});var fy=te((Zve,RF)=>{"use strict";var Rie=Vs().hovertemplateAttrs,gf=zh(),zie=H0(),EF=bo(),Nie=cl().defaultLine,pf=la().extendFlat,PF=gf.marker.line;RF.exports=pf({locations:{valType:"data_array",editType:"calc"},locationmode:gf.locationmode,z:{valType:"data_array",editType:"calc"},geojson:pf({},gf.geojson,{}),featureidkey:gf.featureidkey,text:pf({},gf.text,{}),hovertext:pf({},gf.hovertext,{}),marker:{line:{color:pf({},PF.color,{dflt:Nie}),width:pf({},PF.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:gf.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:gf.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:pf({},EF.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Rie(),showlegend:pf({},EF.showlegend,{dflt:!1})},zie("",{cLetter:"z",editTypeOverride:"calc"}))});var NF=te((Xve,zF)=>{"use strict";var Oh=gr(),Fie=B0(),Iie=fy(),Hie=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");zF.exports=function(r,t,n,a){function i(h,d){return Oh.coerce(r,t,Iie,h,d)}var o=i("locations"),l=i("z");if(!(o&&o.length&&Oh.isArrayOrTypedArray(l)&&l.length)){t.visible=!1;return}t._length=Math.min(o.length,l.length);var s=i("geojson"),u;(typeof s=="string"&&s!==""||Oh.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="country names"&&Oh.warn(Hie),f==="geojson-id"&&i("featureidkey"),i("text"),i("hovertext"),i("hovertemplate");var v=i("marker.line.width");v&&i("marker.line.color"),i("marker.opacity"),Fie(r,t,a,i,{prefix:"",cLetter:"z"}),Oh.coerceSelectionMarkerOpacity(t,i)}});var IF=te((jve,FF)=>{"use strict";FF.exports={min:"zmin",max:"zmax"}});var UF=te((Jve,OF)=>{"use strict";var HF=Ut(),Bie=Rn().BADNUM,Oie=ep(),Uie=ph(),Yie=em();function BF(e){return e&&typeof e=="string"}OF.exports=function(r,t){var n=t._length,a=new Array(n),i;t.geojson?i=function(f){return BF(f)||HF(f)}:i=BF;for(var o=0;o{"use strict";var Gie=kt(),Vie=Pt(),g_=fn(),Wie=tp();function Zie(e,r){r&&YF(e,r)}function YF(e,r){var t=r[0].trace,n=r[0].node3,a=n.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=Wie.makeColorScaleFuncFromTrace(t);a.each(function(s){Gie.select(this).attr("fill",l(s.z)).call(Vie.stroke,s.mlc||o.color).call(g_.dashLine,"",s.mlw||o.width||0).style("opacity",i.opacity)}),g_.selectedPointStyle(a,t)}function Xie(e,r){var t=r[0].node3,n=r[0].trace;n.selectedpoints?g_.selectedPointStyle(t.selectAll(".choroplethlocation"),n):YF(e,r)}GF.exports={style:Zie,styleOnSelect:Xie}});var m_=te((Kve,ZF)=>{"use strict";var jie=kt(),VF=gr(),Rv=ey(),Jie=Gm().getTopojsonFeatures,WF=Ju().findExtremes,$ie=cy().style;function Kie(e,r,t){var n=r.layers.backplot.select(".choroplethlayer");VF.makeTraceGroups(n,t,"trace choropleth").each(function(a){var i=jie.select(this),o=i.selectAll("path.choroplethlocation").data(VF.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),$ie(e,a)})}function Qie(e,r){for(var t=e[0].trace,n=r[t.geo],a=n._subplot,i=t.locationmode,o=t._length,l=i==="geojson-id"?Rv.extractTraceFeature(e):Jie(t,a.topojson),s=[],u=[],f=0;f{"use strict";var eoe=Dn(),roe=fy(),toe=gr().fillText;XF.exports=function(r,t,n){var a=r.cd,i=a[0].trace,o=r.subplot,l,s,u,f,v=[t,n],h=[t+360,n];for(s=0;s")}}});var $F=te((e1e,JF)=>{"use strict";JF.exports=function(r,t,n,a,i){r.location=t.location,r.z=t.z;var o=a[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r.ct=o.ct,r}});var QF=te((r1e,KF)=>{"use strict";KF.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l,s,u,f,v;if(t===!1)for(l=0;l{"use strict";eI.exports={attributes:fy(),supplyDefaults:NF(),colorbar:IF(),calc:UF(),calcGeoJSON:m_().calcGeoJSON,plot:m_().plot,style:cy().style,styleOnSelect:cy().styleOnSelect,hoverPoints:jF(),eventData:$F(),selectPoints:QF(),moduleType:"trace",name:"choropleth",basePlotModule:p_(),categories:["geo","noOpacity","showLegend"],meta:{}}});var nI=te((n1e,tI)=>{"use strict";tI.exports=rI()});var Ga=te((a1e,iI)=>{"use strict";var aI=Object.getOwnPropertySymbols,aoe=Object.prototype.hasOwnProperty,ioe=Object.prototype.propertyIsEnumerable;function ooe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function loe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(i){a[i]=i}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}iI.exports=loe()?Object.assign:function(e,r){for(var t,n=ooe(e),a,i=1;i{var hy=Ga();function oI(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}hy(oI.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var n="",a=0;t>0;){var i=t%10;n=(i===0?"":e[i]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function y_(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function vy(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}hy(y_.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Tt.local.differentCalendars||Tt.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+vy(Math.abs(this.year()),4)+"-"+vy(this.month(),2)+"-"+vy(this.day(),2)}});function b_(){this.shortYearCutoff="+10"}hy(b_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new y_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+vy(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Tt.local.invalidMonth||Tt.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Tt.local.invalidMonth||Tt.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;ov-1+f.minMonth;)i++,o-=v,v=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),a];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],i=t<0?-1:1;r=this._add(e,t*a[0]+i*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(n,a))),e.date(n,a,i)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=a-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Tt=lI.exports=new oI;Tt.cdate=y_;Tt.baseCalendar=b_;Tt.calendars.gregorian=__});var sI=te(()=>{var x_=Ga(),Ca=Va();x_(Ca.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Ca.local=Ca.regionalOptions[""];x_(Ca.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});x_(Ca.baseCalendar.prototype,{UNIX_EPOCH:Ca.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Ca.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Ca.local.invalidFormat||Ca.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(_,A){for(var k=1;x+k1},f=function(_,A,k,M){var D=""+A;if(u(_,M))for(;D.length1},C=function(W,B){var X=b(W,B),G=[2,3,X?4:2,X?4:2,10,11,20]["oyYJ@!".indexOf(W)+1],re=new RegExp("^-?\\d{1,"+G+"}"),ne=r.substring(D).match(re);if(!ne)throw(Ca.local.missingNumberAt||Ca.regionalOptions[""].missingNumberAt).replace(/\{0\}/,D);return D+=ne[0].length,parseInt(ne[0],10)},x=this,_=function(){if(typeof l=="function"){b("m");var W=l.call(x,r.substring(D));return D+=W.length,W}return C("m")},A=function(W,B,X,G){for(var re=b(W,G)?X:B,ne=0;ne-1){h=1,d=m;for(var I=this.daysInMonth(v,h);d>I;I=this.daysInMonth(v,h))h++,d-=I}return f>-1?this.fromJD(f):this.newDate(v,h,d)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var i=this,o=function(l){try{return i.parseDate(n,l,a)}catch(v){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var uI=te(()=>{var mf=Va(),soe=Ga(),w_=mf.instance();function dy(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dy.prototype=new mf.baseCalendar;soe(dy.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(foe);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),i=""+this.toChineseMonth(n,a);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(n,a)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(coe);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(t,n)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(voe);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var a=r[r.length-1];n=a==="i"||a==="I"}var i=this.toMonthIndex(e,t,n);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw mf.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return n?!t&&r<=n?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw mf.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var n=this._validateYear(e,mf.local.invalidyear),a=bf[n-bf[0]],i=a>>9&4095,o=a>>5&15,l=a&31,s;s=w_.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=yf[e-yf[0]],n=t>>13,a=n?12:11;if(r>a)throw mf.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,i,t,mf.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=doe(e,i,t,a);return w_.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=w_.fromJD(e),t=hoe(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(uoe),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],i=this.toMonthIndex(t,n,a),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var n=e.year(),a=e.month(),i=this.isIntercalaryMonth(n,a),o=this.toChineseMonth(n,a),l=Object.getPrototypeOf(dy.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),v=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);v!==u&&l.month(v)}return l}});var uoe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,foe=/^\d?\d[iI]?/m,coe=/^闰?十?[一二三四五六七八九]?月/m,voe=/^闰?十?[一二三四五六七八九]?/m;mf.calendars.chinese=dy;var yf=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],bf=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function hoe(e,r,t,n){var a,i;if(typeof e=="object")a=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},i=n||{}}var u=bf[a.year-bf[0]],f=a.year<<9|a.month<<5|a.day;i.year=f>=u?a.year:a.year-1,u=bf[i.year-bf[0]];var v=u>>9&4095,h=u>>5&15,d=u&31,m,p=new Date(v,h-1,d),y=new Date(a.year,a.month-1,a.day);m=Math.round((y-p)/(24*3600*1e3));var b=yf[i.year-yf[0]],C;for(C=0;C<13;C++){var x=b&1<<12-C?30:29;if(m>13;return!_||C<_?(i.isIntercalary=!1,i.month=1+C):C===_?(i.isIntercalary=!0,i.month=C):(i.isIntercalary=!1,i.month=C),i.day=1+m,i}function doe(e,r,t,n,a){var i,o;if(typeof e=="object")o=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,i=n):(f=!!n,i=a||{}),o={year:e,month:r,day:t,isIntercalary:f}}var v;v=o.day-1;var h=yf[o.year-yf[0]],d=h>>13,m;d&&(o.month>d||o.isIntercalary)?m=o.month:m=o.month-1;for(var p=0;p>9&4095,x=b>>5&15,_=b&31,A=new Date(C,x-1,_+v);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var fI=te(()=>{var Bc=Va(),poe=Ga();function M_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M_.prototype=new Bc.baseCalendar;poe(M_.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Bc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bc.local.invalidYear||Bc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Bc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Bc.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});Bc.calendars.coptic=M_});var cI=te(()=>{var cu=Va(),goe=Ga();function A_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A_.prototype=new cu.baseCalendar;goe(A_.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,cu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,cu.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,cu.local.invalidDate);return{century:moe[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,cu.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var moe={20:"Fruitbat",21:"Anchovy"};cu.calendars.discworld=A_});var vI=te(()=>{var Oc=Va(),yoe=Ga();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new Oc.baseCalendar;yoe(T_.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Oc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Oc.local.invalidYear||Oc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Oc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Oc.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});Oc.calendars.ethiopian=T_});var hI=te(()=>{var _f=Va(),boe=Ga();function k_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k_.prototype=new _f.baseCalendar;boe(k_.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_f.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,py(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_f.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_f.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,_f.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&py(this.daysInYear(e),10)===5?30:r===9&&py(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,_f.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,_f.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,i=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function py(e,r){return e-r*Math.floor(e/r)}_f.calendars.hebrew=k_});var dI=te(()=>{var Uh=Va(),_oe=Ga();function S_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S_.prototype=new Uh.baseCalendar;_oe(S_.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Uh.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Uh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Uh.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});Uh.calendars.islamic=S_});var pI=te(()=>{var Yh=Va(),xoe=Ga();function C_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C_.prototype=new Yh.baseCalendar;xoe(C_.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Yh.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Yh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Yh.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),i=Math.floor((t-a)/30.6001),o=i-Math.floor(i<14?1:13),l=n-Math.floor(o>2?4716:4715),s=t-a-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});Yh.calendars.julian=C_});var mI=te(()=>{var Ho=Va(),woe=Ga();function q_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q_.prototype=new Ho.baseCalendar;woe(q_.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Ho.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Ho.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Ho.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Ho.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Ho.local.invalidDate),a=n.toJD(),i=this._toHaab(a),o=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=L_(e+8+17*20,365);return[Math.floor(r/20)+1,L_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[gI(e+20,20),gI(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,Ho.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),n=e%20;return this.newDate(r,t,n)}});function L_(e,r){return e-r*Math.floor(e/r)}function gI(e,r){return L_(e-1,r)+1}Ho.calendars.mayan=q_});var bI=te(()=>{var Uc=Va(),Moe=Ga();function D_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D_.prototype=new Uc.baseCalendar;var yI=Uc.instance("gregorian");Moe(D_.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Uc.local.invalidYear||Uc.regionalOptions[""].invalidYear);return yI.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Uc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Uc.local.invalidMonth),a=n.year();a<0&&a++;for(var i=n.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});Uc.calendars.nanakshahi=D_});var _I=te(()=>{var Yc=Va(),Aoe=Ga();function E_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E_.prototype=new Yc.baseCalendar;Aoe(E_.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yc.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Yc.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var n=this._validate(e,r,t,Yc.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=Yc.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=a.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Yc.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),i=n+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;a>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-a);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var zv=Va(),Toe=Ga();function my(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function gy(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),i=n-Math.floor(n),o=a-Math.floor(a);return i>o}my.prototype=new zv.baseCalendar;Toe(my.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,zv.local.invalidYear);return gy(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,zv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,zv.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var i=1;i0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,gy(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),i=e-this.toJD(t,a,1)+1;return this.newDate(t,a,i)}});zv.calendars.persian=my;zv.calendars.jalali=my});var wI=te(()=>{var Gc=Va(),koe=Ga(),yy=Gc.instance();function P_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}P_.prototype=new Gc.baseCalendar;koe(P_.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Gc.local.invalidYear),t=this._t2gYear(r.year());return yy.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,Gc.local.invalidYear),a=this._t2gYear(n.year());return yy.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Gc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Gc.local.invalidDate),a=this._t2gYear(n.year());return yy.toJD(a,n.month(),n.day())},fromJD:function(e){var r=yy.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Gc.calendars.taiwan=P_});var MI=te(()=>{var Vc=Va(),Soe=Ga(),by=Vc.instance();function R_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R_.prototype=new Vc.baseCalendar;Soe(R_.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Vc.local.invalidYear),t=this._t2gYear(r.year());return by.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,Vc.local.invalidYear),a=this._t2gYear(n.year());return by.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Vc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Vc.local.invalidDate),a=this._t2gYear(n.year());return by.toJD(a,n.month(),n.day())},fromJD:function(e){var r=by.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Vc.calendars.thai=R_});var AI=te(()=>{var Wc=Va(),Coe=Ga();function z_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z_.prototype=new Wc.baseCalendar;Coe(z_.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wc.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Wc.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,i=0;in)return xf[a]-xf[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Wc.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,i=n.day()+xf[a-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;nr);n++)t++;var a=t+15292,i=Math.floor((a-1)/12),o=i+1,l=a-12*i,s=r-xf[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var n=Wc.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=Wc.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});Wc.calendars.ummalqura=z_;var xf=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var kI=te((N1e,TI)=>{"use strict";TI.exports=Va();sI();uI();fI();cI();vI();hI();dI();pI();mI();bI();_I();xI();wI();MI();AI()});var PI=te((F1e,EI)=>{"use strict";var CI=kI(),Gh=gr(),LI=Rn(),Loe=LI.EPOCHJD,qoe=LI.ONEDAY,I_={valType:"enumerated",values:Gh.sortObjectKeys(CI.calendars),editType:"calc",dflt:"gregorian"},qI=function(e,r,t,n){var a={};return a[t]=I_,Gh.coerce(e,r,a,t,n)},Doe=function(e,r,t,n){for(var a=0;a{"use strict";RI.exports=PI()});var Foe=te((H1e,FI)=>{var NI=eN();NI.register([DF(),nI(),zI()]);FI.exports=NI});return Foe();})(); +"use strict";var Plotly=(()=>{var te=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var rd=te(O_=>{"use strict";O_.version="3.1.2"});var Y_=te((U_,td)=>{(function(r,t,n){t[r]=t[r]||n(),typeof td!="undefined"&&td.exports&&(td.exports=t[r])})("Promise",typeof window!="undefined"?window:U_,function(){"use strict";var r,t,n,a=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(C,x,_,A){return Object.defineProperty(C,x,{value:_,writable:!0,configurable:A!==!1})}}catch(b){r=function(x,_,A){return x[_]=A,x}}n=function(){var C,x,_;function A(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,E){_=new A(M,E),x?x.next=_:C=_,x=_,_=void 0},drain:function(){var M=C;for(C=x=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(b,C){n.add(b,C),t||(t=i(n.drain))}function l(b){var C,x=typeof b;return b!=null&&(x=="object"||x=="function")&&(C=b.then),typeof C=="function"?C:!1}function s(){for(var b=0;b0&&o(s,x))}catch(_){v.call(new d(x),_)}}}function v(b){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=b,C.state=2,C.chain.length>0&&o(s,C))}function h(b,C,x,_){for(var A=0;A{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},n=self.document;function a(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(c){t=function(g){for(var w=g.length,S=new Array(w);w--;)S[w]=g[w];return S}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,S){s.call(this,g,w,S+"")},u.setProperty=function(g,w,S){f.call(this,g,w+"",S)}}e.ascending=v;function v(c,g){return cg?1:c>=g?0:NaN}e.descending=function(c,g){return gc?1:g>=c?0:NaN},e.min=function(c,g){var w=-1,S=c.length,q,D;if(arguments.length===1){for(;++w=D){q=D;break}for(;++wD&&(q=D)}else{for(;++w=D){q=D;break}for(;++wD&&(q=D)}return q},e.max=function(c,g){var w=-1,S=c.length,q,D;if(arguments.length===1){for(;++w=D){q=D;break}for(;++wq&&(q=D)}else{for(;++w=D){q=D;break}for(;++wq&&(q=D)}return q},e.extent=function(c,g){var w=-1,S=c.length,q,D,G;if(arguments.length===1){for(;++w=D){q=G=D;break}for(;++wD&&(q=D),G=D){q=G=D;break}for(;++wD&&(q=D),G1)return G/(j-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(g,w,S,q){for(arguments.length<3&&(S=0),arguments.length<4&&(q=g.length);S>>1;c(g[D],w)<0?S=D+1:q=D}return S},right:function(g,w,S,q){for(arguments.length<3&&(S=0),arguments.length<4&&(q=g.length);S>>1;c(g[D],w)>0?q=D:S=D+1}return S}}}var p=m(v);e.bisectLeft=p.left,e.bisect=e.bisectRight=p.right,e.bisector=function(c){return m(c.length===1?function(g,w){return v(c(g),w)}:c)},e.shuffle=function(c,g,w){(S=arguments.length)<3&&(w=c.length,S<2&&(g=0));for(var S=w-g,q,D;S;)D=Math.random()*S--|0,q=c[S+g],c[S+g]=c[D+g],c[D+g]=q;return c},e.permute=function(c,g){for(var w=g.length,S=new Array(w);w--;)S[w]=c[g[w]];return S},e.pairs=function(c){for(var g=0,w=c.length-1,S,q=c[0],D=new Array(w<0?0:w);g=0;)for(G=c[g],w=G.length;--w>=0;)D[--q]=G[w];return D};var b=Math.abs;e.range=function(c,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=c,c=0)),(g-c)/w===1/0)throw new Error("infinite range");var S=[],q=C(b(w)),D=-1,G;if(c*=q,g*=q,w*=q,w<0)for(;(G=c+w*++D)>g;)S.push(G/q);else for(;(G=c+w*++D)=g.length)return q?q.call(c,j):S?j.sort(S):j;for(var ie=-1,ge=j.length,me=g[ne++],ze,Ve,_e,Ce=new _,Ee;++ie=g.length)return N;var ne=[],ie=w[j++];return N.forEach(function(ge,me){ne.push({key:ge,values:G(me,j)})}),ie?ne.sort(function(ge,me){return ie(ge.key,me.key)}):ne}return c.map=function(N,j){return D(j,N,0)},c.entries=function(N){return G(D(e.map,N,0),0)},c.key=function(N){return g.push(N),c},c.sortKeys=function(N){return w[g.length-1]=N,c},c.sortValues=function(N){return S=N,c},c.rollup=function(N){return q=N,c},c},e.set=function(c){var g=new X;if(c)for(var w=0,S=c.length;w=0&&(S=c.slice(w+1),c=c.slice(0,w)),c)return arguments.length<2?this[c].on(S):this[c].on(S,g);if(arguments.length===2){if(g==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(S,null);return this}};function he(c){var g=[],w=new _;function S(){for(var q=g,D=-1,G=q.length,N;++D=0&&(w=c.slice(0,g))!=="xmlns"&&(c=c.slice(g+1)),ke.hasOwnProperty(w)?{space:ke[w],local:c}:c}},pe.attr=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node();return c=e.ns.qualify(c),c.local?w.getAttributeNS(c.space,c.local):w.getAttribute(c)}for(g in c)this.each(Oe(g,c[g]));return this}return this.each(Oe(c,g))};function Oe(c,g){c=e.ns.qualify(c);function w(){this.removeAttribute(c)}function S(){this.removeAttributeNS(c.space,c.local)}function q(){this.setAttribute(c,g)}function D(){this.setAttributeNS(c.space,c.local,g)}function G(){var j=g.apply(this,arguments);j==null?this.removeAttribute(c):this.setAttribute(c,j)}function N(){var j=g.apply(this,arguments);j==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,j)}return g==null?c.local?S:w:typeof g=="function"?c.local?N:G:c.local?D:q}function Ie(c){return c.trim().replace(/\s+/g," ")}pe.classed=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node(),S=(c=or(c)).length,q=-1;if(g=w.classList){for(;++q=0;)(D=w[S])&&(q&&q!==D.nextSibling&&q.parentNode.insertBefore(D,q),q=D);return this},pe.sort=function(c){c=Ye.apply(this,arguments);for(var g=-1,w=this.length;++g=g&&(g=q+1);!(j=G[g])&&++g0&&(c=c.slice(0,q));var G=hr.get(c);G&&(c=G,D=mr);function N(){var ie=this[S];ie&&(this.removeEventListener(c,ie,ie.$),delete this[S])}function j(){var ie=D(g,t(arguments));N.call(this),this.addEventListener(c,this[S]=ie,ie.$=w),ie._=g}function ne(){var ie=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),ge;for(var me in this)if(ge=me.match(ie)){var ze=this[me];this.removeEventListener(ge[1],ze,ze.$),delete this[me]}}return q?g?j:N:g?ee:ne}var hr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&hr.forEach(function(c){"on"+c in n&&hr.remove(c)});function wr(c,g){return function(w){var S=e.event;e.event=w,g[0]=this.__data__;try{c.apply(this,g)}finally{e.event=S}}}function mr(c,g){var w=wr(c,g);return function(S){var q=this,D=S.relatedTarget;(!D||D!==q&&!(D.compareDocumentPosition(q)&8))&&w.call(q,S)}}var Tr,Dr=0;function Or(c){var g=".dragsuppress-"+ ++Dr,w="click"+g,S=e.select(i(c)).on("touchmove"+g,De).on("dragstart"+g,De).on("selectstart"+g,De);if(Tr==null&&(Tr="onselectstart"in c?!1:ae(c.style,"userSelect")),Tr){var q=a(c).style,D=q[Tr];q[Tr]="none"}return function(G){if(S.on(g,null),Tr&&(q[Tr]=D),G){var N=function(){S.on(w,null)};S.on(w,function(){De(),N()},!0),setTimeout(N,0)}}}e.mouse=function(c){return ar(c,Ne())};var Cr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ar(c,g){g.changedTouches&&(g=g.changedTouches[0]);var w=c.ownerSVGElement||c;if(w.createSVGPoint){var S=w.createSVGPoint();if(Cr<0){var q=i(c);if(q.scrollX||q.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=w[0][0].getScreenCTM();Cr=!(D.f||D.e),w.remove()}}return Cr?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(c.getScreenCTM().inverse()),[S.x,S.y]}var G=c.getBoundingClientRect();return[g.clientX-G.left-c.clientLeft,g.clientY-G.top-c.clientTop]}e.touch=function(c,g,w){if(arguments.length<3&&(w=g,g=Ne().changedTouches),g){for(var S=0,q=g.length,D;S0?1:c<0?-1:0}function Ht(c,g,w){return(g[0]-c[0])*(w[1]-c[1])-(g[1]-c[1])*(w[0]-c[0])}function An(c){return c>1?0:c<-1?Ze:Math.acos(c)}function Tn(c){return c>1?Pr:c<-1?-Pr:Math.asin(c)}function cn(c){return((c=Math.exp(c))-1/c)/2}function Ft(c){return((c=Math.exp(c))+1/c)/2}function jt(c){return((c=Math.exp(2*c))-1)/(c+1)}function en(c){return(c=Math.sin(c/2))*c}var Jt=Math.SQRT2,aa=2,rt=4;e.interpolateZoom=function(c,g){var w=c[0],S=c[1],q=c[2],D=g[0],G=g[1],N=g[2],j=D-w,ne=G-S,ie=j*j+ne*ne,ge,me;if(ie<$e)me=Math.log(N/q)/Jt,ge=function(Ge){return[w+Ge*j,S+Ge*ne,q*Math.exp(Jt*Ge*me)]};else{var ze=Math.sqrt(ie),Ve=(N*N-q*q+rt*ie)/(2*q*aa*ze),_e=(N*N-q*q-rt*ie)/(2*N*aa*ze),Ce=Math.log(Math.sqrt(Ve*Ve+1)-Ve),Ee=Math.log(Math.sqrt(_e*_e+1)-_e);me=(Ee-Ce)/Jt,ge=function(Ge){var We=Ge*me,Re=Ft(Ce),br=q/(aa*ze)*(Re*jt(Jt*We+Ce)-cn(Ce));return[w+br*j,S+br*ne,q*Re/Ft(Jt*We+Ce)]}}return ge.duration=me*1e3,ge},e.behavior.zoom=function(){var c={x:0,y:0,k:1},g,w,S,q=[960,500],D=rn,G=250,N=0,j="mousedown.zoom",ne="mousemove.zoom",ie="mouseup.zoom",ge,me="touchstart.zoom",ze,Ve=Fe(We,"zoomstart","zoom","zoomend"),_e,Ce,Ee,Ge;dn||(dn="onwheel"in n?(St=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in n?(St=function(){return e.event.wheelDelta},"mousewheel"):(St=function(){return-e.event.detail},"MozMousePixelScroll"));function We(Nr){Nr.on(j,ht).on(dn+".zoom",Xn).on("dblclick.zoom",sn).on(me,Kt)}We.event=function(Nr){Nr.each(function(){var _t=Ve.of(this,arguments),wt=c;ma?e.select(this).transition().each("start.zoom",function(){c=this.__chart__||{x:0,y:0,k:1},$r(_t)}).tween("zoom:zoom",function(){var Qt=q[0],In=q[1],oa=w?w[0]:Qt/2,Da=w?w[1]:In/2,ja=e.interpolateZoom([(oa-c.x)/c.k,(Da-c.y)/c.k,Qt/c.k],[(oa-wt.x)/wt.k,(Da-wt.y)/wt.k,Qt/wt.k]);return function(ci){var Ja=ja(ci),Si=Qt/Ja[2];this.__chart__=c={x:oa-Ja[0]*Si,y:Da-Ja[1]*Si,k:Si},bt(_t)}}).each("interrupt.zoom",function(){Qr(_t)}).each("end.zoom",function(){Qr(_t)}):(this.__chart__=c,$r(_t),bt(_t),Qr(_t))})},We.translate=function(Nr){return arguments.length?(c={x:+Nr[0],y:+Nr[1],k:c.k},Jr(),We):[c.x,c.y]},We.scale=function(Nr){return arguments.length?(c={x:c.x,y:c.y,k:null},Yr(+Nr),Jr(),We):c.k},We.scaleExtent=function(Nr){return arguments.length?(D=Nr==null?rn:[+Nr[0],+Nr[1]],We):D},We.center=function(Nr){return arguments.length?(S=Nr&&[+Nr[0],+Nr[1]],We):S},We.size=function(Nr){return arguments.length?(q=Nr&&[+Nr[0],+Nr[1]],We):q},We.duration=function(Nr){return arguments.length?(G=+Nr,We):G},We.x=function(Nr){return arguments.length?(Ce=Nr,_e=Nr.copy(),c={x:0,y:0,k:1},We):Ce},We.y=function(Nr){return arguments.length?(Ge=Nr,Ee=Nr.copy(),c={x:0,y:0,k:1},We):Ge};function Re(Nr){return[(Nr[0]-c.x)/c.k,(Nr[1]-c.y)/c.k]}function br(Nr){return[Nr[0]*c.k+c.x,Nr[1]*c.k+c.y]}function Yr(Nr){c.k=Math.max(D[0],Math.min(D[1],Nr))}function Wr(Nr,_t){_t=br(_t),c.x+=Nr[0]-_t[0],c.y+=Nr[1]-_t[1]}function Vr(Nr,_t,wt,Qt){Nr.__chart__={x:c.x,y:c.y,k:c.k},Yr(Math.pow(2,Qt)),Wr(w=_t,wt),Nr=e.select(Nr),G>0&&(Nr=Nr.transition().duration(G)),Nr.call(We.event)}function Jr(){Ce&&Ce.domain(_e.range().map(function(Nr){return(Nr-c.x)/c.k}).map(_e.invert)),Ge&&Ge.domain(Ee.range().map(function(Nr){return(Nr-c.y)/c.k}).map(Ee.invert))}function $r(Nr){N++||Nr({type:"zoomstart"})}function bt(Nr){Jr(),Nr({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function Qr(Nr){--N||(Nr({type:"zoomend"}),w=null)}function ht(){var Nr=this,_t=Ve.of(Nr,arguments),wt=0,Qt=e.select(i(Nr)).on(ne,Da).on(ie,ja),In=Re(e.mouse(Nr)),oa=Or(Nr);vt.call(Nr),$r(_t);function Da(){wt=1,Wr(e.mouse(Nr),In),bt(_t)}function ja(){Qt.on(ne,null).on(ie,null),oa(wt),Qr(_t)}}function Kt(){var Nr=this,_t=Ve.of(Nr,arguments),wt={},Qt=0,In,oa=".zoom-"+e.event.changedTouches[0].identifier,Da="touchmove"+oa,ja="touchend"+oa,ci=[],Ja=e.select(Nr),Si=Or(Nr);Ci(),$r(_t),Ja.on(j,null).on(me,Ci);function Ha(){var fl=e.touches(Nr);return In=c.k,fl.forEach(function(Ea){Ea.identifier in wt&&(wt[Ea.identifier]=Re(Ea))}),fl}function Ci(){var fl=e.event.target;e.select(fl).on(Da,Zf).on(ja,BI),ci.push(fl);for(var Ea=e.event.changedTouches,mo=0,jl=Ea.length;mo1){var Xf=yo[0],Du=yo[1],ed=Xf[0]-Du[0],B_=Xf[1]-Du[1];Qt=ed*ed+B_*B_}}function Zf(){var fl=e.touches(Nr),Ea,mo,jl,yo;vt.call(Nr);for(var g0=0,Xf=fl.length;g01?1:g,w=w<0?0:w>1?1:w,q=w<=.5?w*(1+g):w+g-w*g,S=2*w-q;function D(N){return N>360?N-=360:N<0&&(N+=360),N<60?S+(q-S)*N/60:N<180?q:N<240?S+(q-S)*(240-N)/60:S}function G(N){return Math.round(D(N)*255)}return new On(G(c+120),G(c),G(c-120))}e.hcl=qn;function qn(c,g,w){return this instanceof qn?(this.h=+c,this.c=+g,void(this.l=+w)):arguments.length<2?c instanceof qn?new qn(c.h,c.c,c.l):c instanceof wn?El(c.l,c.a,c.b):El((c=Ur((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new qn(c,g,w)}var Na=qn.prototype=new pn;Na.brighter=function(c){return new qn(this.h,this.c,Math.min(100,this.l+Bt*(arguments.length?c:1)))},Na.darker=function(c){return new qn(this.h,this.c,Math.max(0,this.l-Bt*(arguments.length?c:1)))},Na.rgb=function(){return pa(this.h,this.c,this.l).rgb()};function pa(c,g,w){return isNaN(c)&&(c=0),isNaN(g)&&(g=0),new wn(w,Math.cos(c*=lt)*g,Math.sin(c)*g)}e.lab=wn;function wn(c,g,w){return this instanceof wn?(this.l=+c,this.a=+g,void(this.b=+w)):arguments.length<2?c instanceof wn?new wn(c.l,c.a,c.b):c instanceof qn?pa(c.h,c.c,c.l):Ur((c=On(c)).r,c.g,c.b):new wn(c,g,w)}var Bt=18,Bn=.95047,gi=1,io=1.08883,mi=wn.prototype=new pn;mi.brighter=function(c){return new wn(Math.min(100,this.l+Bt*(arguments.length?c:1)),this.a,this.b)},mi.darker=function(c){return new wn(Math.max(0,this.l-Bt*(arguments.length?c:1)),this.a,this.b)},mi.rgb=function(){return ms(this.l,this.a,this.b)};function ms(c,g,w){var S=(c+16)/116,q=S+g/500,D=S-w/200;return q=Oo(q)*Bn,S=Oo(S)*gi,D=Oo(D)*io,new On(Uo(3.2404542*q-1.5371385*S-.4985314*D),Uo(-.969266*q+1.8760108*S+.041556*D),Uo(.0556434*q-.2040259*S+1.0572252*D))}function El(c,g,w){return c>0?new qn(Math.atan2(w,g)*xt,Math.sqrt(g*g+w*w),c):new qn(NaN,NaN,c)}function Oo(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function ys(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Uo(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=On;function On(c,g,w){return this instanceof On?(this.r=~~c,this.g=~~g,void(this.b=~~w)):arguments.length<2?c instanceof On?new On(c.r,c.g,c.b):Ct(""+c,On,da):new On(c,g,w)}function yi(c){return new On(c>>16,c>>8&255,c&255)}function Yo(c){return yi(c)+""}var bi=On.prototype=new pn;bi.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var g=this.r,w=this.g,S=this.b,q=30;return!g&&!w&&!S?new On(q,q,q):(g&&g>4,S=S>>4|S,q=j&240,q=q>>4|q,D=j&15,D=D<<4|D):c.length===7&&(S=(j&16711680)>>16,q=(j&65280)>>8,D=j&255)),g(S,q,D))}function Ot(c,g,w){var S=Math.min(c/=255,g/=255,w/=255),q=Math.max(c,g,w),D=q-S,G,N,j=(q+S)/2;return D?(N=j<.5?D/(q+S):D/(2-q-S),c==q?G=(g-w)/D+(g0&&j<1?0:G),new an(G,N,j)}function Ur(c,g,w){c=Wn(c),g=Wn(g),w=Wn(w);var S=ys((.4124564*c+.3575761*g+.1804375*w)/Bn),q=ys((.2126729*c+.7151522*g+.072175*w)/gi),D=ys((.0193339*c+.119192*g+.9503041*w)/io);return wn(116*q-16,500*(S-q),200*(q-D))}function Wn(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function on(c){var g=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(g*2.55):g}var Pn=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Pn.forEach(function(c,g){Pn.set(c,yi(g))});function At(c){return typeof c=="function"?c:function(){return c}}e.functor=At,e.xhr=Wa(V);function Wa(c){return function(g,w,S){return arguments.length===2&&typeof w=="function"&&(S=w,w=null),Go(g,w,c,S)}}function Go(c,g,w,S){var q={},D=e.dispatch("beforesend","progress","load","error"),G={},N=new XMLHttpRequest,j=null;self.XDomainRequest&&!("withCredentials"in N)&&/^(http(s)?:)?\/\//.test(c)&&(N=new XDomainRequest),"onload"in N?N.onload=N.onerror=ne:N.onreadystatechange=function(){N.readyState>3&&ne()};function ne(){var ie=N.status,ge;if(!ie&&vu(N)||ie>=200&&ie<300||ie===304){try{ge=w.call(q,N)}catch(me){D.error.call(q,me);return}D.load.call(q,ge)}else D.error.call(q,N)}return N.onprogress=function(ie){var ge=e.event;e.event=ie;try{D.progress.call(q,N)}finally{e.event=ge}},q.header=function(ie,ge){return ie=(ie+"").toLowerCase(),arguments.length<2?G[ie]:(ge==null?delete G[ie]:G[ie]=ge+"",q)},q.mimeType=function(ie){return arguments.length?(g=ie==null?null:ie+"",q):g},q.responseType=function(ie){return arguments.length?(j=ie,q):j},q.response=function(ie){return w=ie,q},["get","post"].forEach(function(ie){q[ie]=function(){return q.send.apply(q,[ie].concat(t(arguments)))}}),q.send=function(ie,ge,me){if(arguments.length===2&&typeof ge=="function"&&(me=ge,ge=null),N.open(ie,c,!0),g!=null&&!("accept"in G)&&(G.accept=g+",*/*"),N.setRequestHeader)for(var ze in G)N.setRequestHeader(ze,G[ze]);return g!=null&&N.overrideMimeType&&N.overrideMimeType(g),j!=null&&(N.responseType=j),me!=null&&q.on("error",me).on("load",function(Ve){me(null,Ve)}),D.beforesend.call(q,N),N.send(ge==null?null:ge),q},q.abort=function(){return N.abort(),q},e.rebind(q,D,"on"),S==null?q:q.get(wf(S))}function wf(c){return c.length===1?function(g,w){c(g==null?w:null)}:c}function vu(c){var g=c.responseType;return g&&g!=="text"?c.response:c.responseText}e.dsv=function(c,g){var w=new RegExp('["'+c+` +]`),S=c.charCodeAt(0);function q(ne,ie,ge){arguments.length<3&&(ge=ie,ie=null);var me=Go(ne,g,ie==null?D:G(ie),ge);return me.row=function(ze){return arguments.length?me.response((ie=ze)==null?D:G(ze)):ie},me}function D(ne){return q.parse(ne.responseText)}function G(ne){return function(ie){return q.parse(ie.responseText,ne)}}q.parse=function(ne,ie){var ge;return q.parseRows(ne,function(me,ze){if(ge)return ge(me,ze-1);var Ve=function(_e){for(var Ce={},Ee=me.length,Ge=0;Ge=Ve)return me;if(Ge)return Ge=!1,ge;var br=_e;if(ne.charCodeAt(br)===34){for(var Yr=br;Yr++24?(isFinite(g)&&(clearTimeout(hu),hu=setTimeout(_i,g)),Wo=0):(Wo=1,Pl(_i))}e.timer.flush=function(){lo(),Zo()};function lo(){for(var c=Date.now(),g=oo;g;)c>=g.t&&g.c(c-g.t)&&(g.c=null),g=g.n;return c}function Zo(){for(var c,g=oo,w=1/0;g;)g.c?(g.t=0;--N)_e.push(q[ne[ge[N]][2]]);for(N=+ze;N1&&Ht(c[w[S-2]],c[w[S-1]],c[q])<=0;)--S;w[S++]=q}return w.slice(0,S)}function Zc(c,g){return c[0]-g[0]||c[1]-g[1]}e.geom.polygon=function(c){return Le(c,_s),c};var _s=e.geom.polygon.prototype=[];_s.area=function(){for(var c=-1,g=this.length,w,S=this[g-1],q=0;++cSe)N=N.L;else if(G=g-Iv(N,w),G>Se){if(!N.R){S=N;break}N=N.R}else{D>-Se?(S=N.P,q=N):G>-Se?(S=N,q=N.N):S=q=N;break}var j=Ms(c);if(Bi.insert(S,j),!(!S&&!q)){if(S===q){co(S),q=Ms(S.site),Bi.insert(j,q),j.edge=q.edge=Il(S.site,j.site),fo(S),fo(q);return}if(!q){j.edge=Il(S.site,j.site);return}co(S),co(q);var ne=S.site,ie=ne.x,ge=ne.y,me=c.x-ie,ze=c.y-ge,Ve=q.site,_e=Ve.x-ie,Ce=Ve.y-ge,Ee=2*(me*Ce-ze*_e),Ge=me*me+ze*ze,We=_e*_e+Ce*Ce,Re={x:(Ce*Ge-ze*We)/Ee+ie,y:(me*We-_e*Ge)/Ee+ge};Yi(q.edge,ne,Ve,Re),j.edge=Il(ne,c,null,Re),q.edge=Il(c,Ve,null,Re),fo(S),fo(q)}}function Ts(c,g){var w=c.site,S=w.x,q=w.y,D=q-g;if(!D)return S;var G=c.P;if(!G)return-1/0;w=G.site;var N=w.x,j=w.y,ne=j-g;if(!ne)return N;var ie=N-S,ge=1/D-1/ne,me=ie/ne;return ge?(-me+Math.sqrt(me*me-2*ge*(ie*ie/(-2*ne)-j+ne/2+q-D/2)))/ge+S:(S+N)/2}function Iv(c,g){var w=c.N;if(w)return Ts(w,g);var S=c.site;return S.y===g?S.x:1/0}function jo(c){this.site=c,this.edges=[]}jo.prototype.prepare=function(){for(var c=this.edges,g=c.length,w;g--;)w=c[g].edge,(!w.b||!w.a)&&c.splice(g,1);return c.sort(Fl),c.length};function kf(c){for(var g=c[0][0],w=c[1][0],S=c[0][1],q=c[1][1],D,G,N,j,ne=uo,ie=ne.length,ge,me,ze,Ve,_e,Ce;ie--;)if(ge=ne[ie],!(!ge||!ge.prepare()))for(ze=ge.edges,Ve=ze.length,me=0;meSe||b(j-G)>Se)&&(ze.splice(me,0,new Jo(Bv(ge.site,Ce,b(N-g)Se?{x:g,y:b(D-g)Se?{x:b(G-q)Se?{x:w,y:b(D-w)Se?{x:b(G-S)=-$e)){var me=j*j+ne*ne,ze=ie*ie+Ce*Ce,Ve=(Ce*me-ne*ze)/ge,_e=(j*ze-ie*me)/ge,Ce=_e+N,Ee=Tf.pop()||new Jc;Ee.arc=c,Ee.site=q,Ee.x=Ve+G,Ee.y=Ce+Math.sqrt(Ve*Ve+_e*_e),Ee.cy=Ce,c.circle=Ee;for(var Ge=null,We=Nl._;We;)if(Ee.y0)){if(_e/=ze,ze<0){if(_e0){if(_e>me)return;_e>ge&&(ge=_e)}if(_e=w-N,!(!ze&&_e<0)){if(_e/=ze,ze<0){if(_e>me)return;_e>ge&&(ge=_e)}else if(ze>0){if(_e0)){if(_e/=Ve,Ve<0){if(_e0){if(_e>me)return;_e>ge&&(ge=_e)}if(_e=S-j,!(!Ve&&_e<0)){if(_e/=Ve,Ve<0){if(_e>me)return;_e>ge&&(ge=_e)}else if(Ve>0){if(_e0&&(q.a={x:N+ge*ze,y:j+ge*Ve}),me<1&&(q.b={x:N+me*ze,y:j+me*Ve}),q}}}}}}function xi(c){for(var g=so,w=Sf(c[0][0],c[0][1],c[1][0],c[1][1]),S=g.length,q;S--;)q=g[S],(!Hv(q,c)||!w(q)||b(q.a.x-q.b.x)=D)return;if(ie>me){if(!S)S={x:Ve,y:G};else if(S.y>=N)return;w={x:Ve,y:N}}else{if(!S)S={x:Ve,y:N};else if(S.y1)if(ie>me){if(!S)S={x:(G-Ee)/Ce,y:G};else if(S.y>=N)return;w={x:(N-Ee)/Ce,y:N}}else{if(!S)S={x:(N-Ee)/Ce,y:N};else if(S.y=D)return;w={x:D,y:Ce*D+Ee}}else{if(!S)S={x:D,y:Ce*D+Ee};else if(S.x=ie&&Ee.x<=me&&Ee.y>=ge&&Ee.y<=ze?[[ie,ze],[me,ze],[me,ge],[ie,ge]]:[];Ge.point=j[_e]}),ne}function N(j){return j.map(function(ne,ie){return{x:Math.round(S(ne,ie)/Se)*Se,y:Math.round(q(ne,ie)/Se)*Se,i:ie}})}return G.links=function(j){return Ss(N(j)).edges.filter(function(ne){return ne.l&&ne.r}).map(function(ne){return{source:j[ne.l.i],target:j[ne.r.i]}})},G.triangles=function(j){var ne=[];return Ss(N(j)).cells.forEach(function(ie,ge){for(var me=ie.site,ze=ie.edges.sort(Fl),Ve=-1,_e=ze.length,Ce,Ee,Ge=ze[_e-1].edge,We=Ge.l===me?Ge.r:Ge.l;++Ve<_e;)Ce=Ge,Ee=We,Ge=ze[Ve].edge,We=Ge.l===me?Ge.r:Ge.l,geWe&&(We=ie.x),ie.y>Re&&(Re=ie.y),ze.push(ie.x),Ve.push(ie.y);else for(_e=0;_eWe&&(We=br),Yr>Re&&(Re=Yr),ze.push(br),Ve.push(Yr)}var Wr=We-Ee,Vr=Re-Ge;Wr>Vr?Re=Ge+Wr:We=Ee+Vr;function Jr(Qr,ht,Kt,Xn,sn,Nr,_t,wt){if(!(isNaN(Kt)||isNaN(Xn)))if(Qr.leaf){var Qt=Qr.x,In=Qr.y;if(Qt!=null)if(b(Qt-Kt)+b(In-Xn)<.01)$r(Qr,ht,Kt,Xn,sn,Nr,_t,wt);else{var oa=Qr.point;Qr.x=Qr.y=Qr.point=null,$r(Qr,oa,Qt,In,sn,Nr,_t,wt),$r(Qr,ht,Kt,Xn,sn,Nr,_t,wt)}else Qr.x=Kt,Qr.y=Xn,Qr.point=ht}else $r(Qr,ht,Kt,Xn,sn,Nr,_t,wt)}function $r(Qr,ht,Kt,Xn,sn,Nr,_t,wt){var Qt=(sn+_t)*.5,In=(Nr+wt)*.5,oa=Kt>=Qt,Da=Xn>=In,ja=Da<<1|oa;Qr.leaf=!1,Qr=Qr.nodes[ja]||(Qr.nodes[ja]=mu()),oa?sn=Qt:_t=Qt,Da?Nr=In:wt=In,Jr(Qr,ht,Kt,Xn,sn,Nr,_t,wt)}var bt=mu();if(bt.add=function(Qr){Jr(bt,Qr,+ge(Qr,++_e),+me(Qr,_e),Ee,Ge,We,Re)},bt.visit=function(Qr){li(Qr,bt,Ee,Ge,We,Re)},bt.find=function(Qr){return yu(bt,Qr[0],Qr[1],Ee,Ge,We,Re)},_e=-1,g==null){for(;++_eD||me>G||ze=br,Vr=w>=Yr,Jr=Vr<<1|Wr,$r=Jr+4;Jr<$r;++Jr)if(ie=Re[Jr&3])switch(Jr&3){case 0:ne(ie,ge,me,br,Yr);break;case 1:ne(ie,br,me,ze,Yr);break;case 2:ne(ie,ge,Yr,br,Ve);break;case 3:ne(ie,br,Yr,ze,Ve);break}}}(c,S,q,D,G),j}e.interpolateRgb=bu;function bu(c,g){c=e.rgb(c),g=e.rgb(g);var w=c.r,S=c.g,q=c.b,D=g.r-w,G=g.g-S,N=g.b-q;return function(j){return"#"+Kr(Math.round(w+D*j))+Kr(Math.round(S+G*j))+Kr(Math.round(q+N*j))}}e.interpolateObject=Fa;function Fa(c,g){var w={},S={},q;for(q in c)q in g?w[q]=el(c[q],g[q]):S[q]=c[q];for(q in g)q in c||(S[q]=g[q]);return function(D){for(q in w)S[q]=w[q](D);return S}}e.interpolateNumber=Qn;function Qn(c,g){return c=+c,g=+g,function(w){return c*(1-w)+g*w}}e.interpolateString=Aa;function Aa(c,g){var w=Gi.lastIndex=Ls.lastIndex=0,S,q,D,G=-1,N=[],j=[];for(c=c+"",g=g+"";(S=Gi.exec(c))&&(q=Ls.exec(g));)(D=q.index)>w&&(D=g.slice(w,D),N[G]?N[G]+=D:N[++G]=D),(S=S[0])===(q=q[0])?N[G]?N[G]+=q:N[++G]=q:(N[++G]=null,j.push({i:G,x:Qn(S,q)})),w=Ls.lastIndex;return w=0&&!(S=e.interpolators[w](c,g)););return S}e.interpolators=[function(c,g){var w=typeof g;return(w==="string"?Pn.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?bu:Aa:g instanceof pn?bu:Array.isArray(g)?Ol:w==="object"&&isNaN(g)?Fa:Qn)(c,g)}],e.interpolateArray=Ol;function Ol(c,g){var w=[],S=[],q=c.length,D=g.length,G=Math.min(c.length,g.length),N;for(N=0;N=0?c.slice(0,g):c,S=g>=0?c.slice(g+1):"in";return w=$c.get(w)||Cf,S=Ov.get(S)||V,Uv(S(w.apply(null,r.call(arguments,1))))};function Uv(c){return function(g){return g<=0?0:g>=1?1:c(g)}}function Lf(c){return function(g){return 1-c(1-g)}}function qf(c){return function(g){return .5*(g<.5?c(2*g):2-c(2-2*g))}}function Df(c){return c*c}function Ef(c){return c*c*c}function Kc(c){if(c<=0)return 0;if(c>=1)return 1;var g=c*c,w=g*c;return 4*(c<.5?w:3*(c-g)+w-.75)}function Qc(c){return function(g){return Math.pow(g,c)}}function qs(c){return 1-Math.cos(c*Pr)}function Ds(c){return Math.pow(2,10*(c-1))}function wi(c){return 1-Math.sqrt(1-c*c)}function _u(c,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/qr*Math.asin(1/c):(c=1,w=g/4),function(S){return 1+c*Math.pow(2,-10*S)*Math.sin((S-w)*qr/g)}}function Es(c){return c||(c=1.70158),function(g){return g*g*((c+1)*g-c)}}function xu(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375}e.interpolateHcl=e0;function e0(c,g){c=e.hcl(c),g=e.hcl(g);var w=c.h,S=c.c,q=c.l,D=g.h-w,G=g.c-S,N=g.l-q;return isNaN(G)&&(G=0,S=isNaN(S)?g.c:S),isNaN(D)?(D=0,w=isNaN(w)?g.h:w):D>180?D-=360:D<-180&&(D+=360),function(j){return pa(w+D*j,S+G*j,q+N*j)+""}}e.interpolateHsl=Pf;function Pf(c,g){c=e.hsl(c),g=e.hsl(g);var w=c.h,S=c.s,q=c.l,D=g.h-w,G=g.s-S,N=g.l-q;return isNaN(G)&&(G=0,S=isNaN(S)?g.s:S),isNaN(D)?(D=0,w=isNaN(w)?g.h:w):D>180?D-=360:D<-180&&(D+=360),function(j){return da(w+D*j,S+G*j,q+N*j)+""}}e.interpolateLab=Yv;function Yv(c,g){c=e.lab(c),g=e.lab(g);var w=c.l,S=c.a,q=c.b,D=g.l-w,G=g.a-S,N=g.b-q;return function(j){return ms(w+D*j,S+G*j,q+N*j)+""}}e.interpolateRound=ho;function ho(c,g){return g-=c,function(w){return Math.round(c+g*w)}}e.transform=function(c){var g=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var S=g.transform.baseVal.consolidate()}return new wu(S?S.matrix:Rf)})(c)};function wu(c){var g=[c.a,c.b],w=[c.c,c.d],S=Ps(g),q=Ul(g,w),D=Ps(Rs(w,g,-q))||0;g[0]*w[1]180?g+=360:g-c>180&&(c+=360),S.push({i:w.push(po(w)+"rotate(",null,")")-2,x:Qn(c,g)})):g&&w.push(po(w)+"rotate("+g+")")}function t0(c,g,w,S){c!==g?S.push({i:w.push(po(w)+"skewX(",null,")")-2,x:Qn(c,g)}):g&&w.push(po(w)+"skewX("+g+")")}function Nf(c,g,w,S){if(c[0]!==g[0]||c[1]!==g[1]){var q=w.push(po(w)+"scale(",null,",",null,")");S.push({i:q-4,x:Qn(c[0],g[0])},{i:q-2,x:Qn(c[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(po(w)+"scale("+g+")")}function Mu(c,g){var w=[],S=[];return c=e.transform(c),g=e.transform(g),r0(c.translate,g.translate,w,S),zf(c.rotate,g.rotate,w,S),t0(c.skew,g.skew,w,S),Nf(c.scale,g.scale,w,S),c=g=null,function(q){for(var D=-1,G=S.length,N;++D0?D=Re:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:D=0})):Re>0&&(g.start({type:"start",alpha:D=Re}),w=Rl(c.tick)),c):D},c.start=function(){var Re,br=ze.length,Yr=Ve.length,Wr=S[0],Vr=S[1],Jr,$r;for(Re=0;Re=0;)D.push(ie=ne[j]),ie.parent=N,ie.depth=N.depth+1;w&&(N.value=0),N.children=ne}else w&&(N.value=+w.call(S,N,N.depth)||0),delete N.children;return Ia(q,function(ge){var me,ze;c&&(me=ge.children)&&me.sort(c),w&&(ze=ge.parent)&&(ze.value+=ge.value)}),G}return S.sort=function(q){return arguments.length?(c=q,S):c},S.children=function(q){return arguments.length?(g=q,S):g},S.value=function(q){return arguments.length?(w=q,S):w},S.revalue=function(q){return w&&(Ai(q,function(D){D.children&&(D.value=0)}),Ia(q,function(D){var G;D.children||(D.value=+w.call(S,D,D.depth)||0),(G=D.parent)&&(G.value+=D.value)})),q},S};function Vi(c,g){return e.rebind(c,g,"sort","children","value"),c.nodes=c,c.links=Za,c}function Ai(c,g){for(var w=[c];(c=w.pop())!=null;)if(g(c),(q=c.children)&&(S=q.length))for(var S,q;--S>=0;)w.push(q[S])}function Ia(c,g){for(var w=[c],S=[];(c=w.pop())!=null;)if(S.push(c),(G=c.children)&&(D=G.length))for(var q=-1,D,G;++qq&&(q=N),S.push(N)}for(G=0;GS&&(w=g,S=q);return w}function Is(c){return c.reduce(tl,0)}function tl(c,g){return c+g[1]}e.layout.histogram=function(){var c=!0,g=Number,w=Vl,S=Hs;function q(D,me){for(var N=[],j=D.map(g,this),ne=w.call(this,j,me),ie=S.call(this,ne,j,me),ge,me=-1,ze=j.length,Ve=ie.length-1,_e=c?1:1/ze,Ce;++me0)for(me=-1;++me=ne[0]&&Ce<=ne[1]&&(ge=N[e.bisect(ie,Ce,1,Ve)-1],ge.y+=_e,ge.push(D[me]));return N}return q.value=function(D){return arguments.length?(g=D,q):g},q.range=function(D){return arguments.length?(w=At(D),q):w},q.bins=function(D){return arguments.length?(S=typeof D=="number"?function(G){return nl(G,D)}:At(D),q):S},q.frequency=function(D){return arguments.length?(c=!!D,q):c},q};function Hs(c,g){return nl(c,Math.ceil(Math.log(g.length)/Math.LN2+1))}function nl(c,g){for(var w=-1,S=+c[0],q=(c[1]-S)/g,D=[];++w<=g;)D[w]=q*w+S;return D}function Vl(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(ku),g=0,w=[1,1],S;function q(D,G){var N=c.call(this,D,G),j=N[0],ne=w[0],ie=w[1],ge=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(j.x=j.y=0,Ia(j,function(ze){ze.r=+ge(ze.value)}),Ia(j,f0),g){var me=g*(S?1:Math.max(2*j.r/ne,2*j.r/ie))/2;Ia(j,function(ze){ze.r+=me}),Ia(j,f0),Ia(j,function(ze){ze.r-=me})}return Cu(j,ne/2,ie/2,S?1:1/Math.max(2*j.r/ne,2*j.r/ie)),N}return q.size=function(D){return arguments.length?(w=D,q):w},q.radius=function(D){return arguments.length?(S=D==null||typeof D=="function"?D:+D,q):S},q.padding=function(D){return arguments.length?(g=+D,q):g},Vi(q,c)};function ku(c,g){return c.value-g.value}function Bs(c,g){var w=c._pack_next;c._pack_next=g,g._pack_prev=c,g._pack_next=w,w._pack_prev=g}function u0(c,g){c._pack_next=g,g._pack_prev=c}function Su(c,g){var w=g.x-c.x,S=g.y-c.y,q=c.r+g.r;return .999*q*q>w*w+S*S}function f0(c){if(!(g=c.children)||!(me=g.length))return;var g,w=1/0,S=-1/0,q=1/0,D=-1/0,G,N,j,ne,ie,ge,me;function ze(Re){w=Math.min(Re.x-Re.r,w),S=Math.max(Re.x+Re.r,S),q=Math.min(Re.y-Re.r,q),D=Math.max(Re.y+Re.r,D)}if(g.forEach(c0),G=g[0],G.x=-G.r,G.y=0,ze(G),me>1&&(N=g[1],N.x=N.r,N.y=0,ze(N),me>2))for(j=g[2],Zn(G,N,j),ze(j),Bs(G,j),G._pack_prev=j,Bs(j,N),N=G._pack_next,ne=3;neCe.x&&(Ce=br),br.depth>Ee.depth&&(Ee=br)});var Ge=g(_e,Ce)/2-_e.x,We=w[0]/(Ce.x+g(Ce,_e)/2+Ge),Re=w[1]/(Ee.depth||1);Ai(ze,function(br){br.x=(br.x+Ge)*We,br.y=br.depth*Re})}return me}function D(ie){for(var ge={A:null,children:[ie]},me=[ge],ze;(ze=me.pop())!=null;)for(var Ve=ze.children,_e,Ce=0,Ee=Ve.length;Ce0&&(Os(H(_e,ie,me),ie,br),Ee+=br,Ge+=br),We+=_e.m,Ee+=ze.m,Re+=Ce.m,Ge+=Ve.m;_e&&!Lu(Ve)&&(Ve.t=_e,Ve.m+=We-Ge),ze&&!Wl(Ce)&&(Ce.t=ze,Ce.m+=Ee-Re,me=ie)}return me}function ne(ie){ie.x*=w[0],ie.y=ie.depth*w[1]}return q.separation=function(ie){return arguments.length?(g=ie,q):g},q.size=function(ie){return arguments.length?(S=(w=ie)==null?ne:null,q):S?null:w},q.nodeSize=function(ie){return arguments.length?(S=(w=ie)==null?null:ne,q):S?w:null},Vi(q,c)};function si(c,g){return c.parent==g.parent?1:2}function Wl(c){var g=c.children;return g.length?g[0]:c.t}function Lu(c){var g=c.children,w;return(w=g.length)?g[w-1]:c.t}function Os(c,g,w){var S=w/(g.i-c.i);g.c-=S,g.s+=w,c.c+=S,g.z+=w,g.m+=w}function Yf(c){for(var g=0,w=0,S=c.children,q=S.length,D;--q>=0;)D=S[q],D.z+=g,D.m+=g,g+=D.s+(w+=D.c)}function H(c,g,w){return c.a.parent===g.parent?c.a:w}e.layout.cluster=function(){var c=e.layout.hierarchy().sort(null).value(null),g=si,w=[1,1],S=!1;function q(D,G){var N=c.call(this,D,G),j=N[0],ne,ie=0;Ia(j,function(_e){var Ce=_e.children;Ce&&Ce.length?(_e.x=ce(Ce),_e.y=J(Ce)):(_e.x=ne?ie+=g(_e,ne):0,_e.y=0,ne=_e)});var ge=oe(j),me=Me(j),ze=ge.x-g(ge,me)/2,Ve=me.x+g(me,ge)/2;return Ia(j,S?function(_e){_e.x=(_e.x-j.x)*w[0],_e.y=(j.y-_e.y)*w[1]}:function(_e){_e.x=(_e.x-ze)/(Ve-ze)*w[0],_e.y=(1-(j.y?_e.y/j.y:1))*w[1]}),N}return q.separation=function(D){return arguments.length?(g=D,q):g},q.size=function(D){return arguments.length?(S=(w=D)==null,q):S?null:w},q.nodeSize=function(D){return arguments.length?(S=(w=D)!=null,q):S?w:null},Vi(q,c)};function J(c){return 1+e.max(c,function(g){return g.y})}function ce(c){return c.reduce(function(g,w){return g+w.x},0)/c.length}function oe(c){var g=c.children;return g&&g.length?oe(g[0]):c}function Me(c){var g=c.children,w;return g&&(w=g.length)?Me(g[w-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),g=Math.round,w=[1,1],S=null,q=Be,D=!1,G,N="squarify",j=.5*(1+Math.sqrt(5));function ne(_e,Ce){for(var Ee=-1,Ge=_e.length,We,Re;++Ee0;)Ge.push(Re=We[Vr-1]),Ge.area+=Re.area,N!=="squarify"||(Yr=me(Ge,Wr))<=br?(We.pop(),br=Yr):(Ge.area-=Ge.pop().area,ze(Ge,Wr,Ee,!1),Wr=Math.min(Ee.dx,Ee.dy),Ge.length=Ge.area=0,br=1/0);Ge.length&&(ze(Ge,Wr,Ee,!0),Ge.length=Ge.area=0),Ce.forEach(ie)}}function ge(_e){var Ce=_e.children;if(Ce&&Ce.length){var Ee=q(_e),Ge=Ce.slice(),We,Re=[];for(ne(Ge,Ee.dx*Ee.dy/_e.value),Re.area=0;We=Ge.pop();)Re.push(We),Re.area+=We.area,We.z!=null&&(ze(Re,We.z?Ee.dx:Ee.dy,Ee,!Ge.length),Re.length=Re.area=0);Ce.forEach(ge)}}function me(_e,Ce){for(var Ee=_e.area,Ge,We=0,Re=1/0,br=-1,Yr=_e.length;++brWe&&(We=Ge));return Ee*=Ee,Ce*=Ce,Ee?Math.max(Ce*We*j/Ee,Ee/(Ce*Re*j)):1/0}function ze(_e,Ce,Ee,Ge){var We=-1,Re=_e.length,br=Ee.x,Yr=Ee.y,Wr=Ce?g(_e.area/Ce):0,Vr;if(Ce==Ee.dx){for((Ge||Wr>Ee.dy)&&(Wr=Ee.dy);++WeEe.dx)&&(Wr=Ee.dx);++We1);return c+g*S*Math.sqrt(-2*Math.log(D)/D)}},logNormal:function(){var c=e.random.normal.apply(e,arguments);return function(){return Math.exp(c())}},bates:function(c){var g=e.random.irwinHall(c);return function(){return g()/c}},irwinHall:function(c){return function(){for(var g=0,w=0;w2?xr:yr,ne=S?If:Ff;return q=j(c,g,ne,w),D=j(g,c,ne,el),N}function N(j){return q(j)}return N.invert=function(j){return D(j)},N.domain=function(j){return arguments.length?(c=j.map(Number),G()):c},N.range=function(j){return arguments.length?(g=j,G()):g},N.rangeRound=function(j){return N.range(j).interpolate(ho)},N.clamp=function(j){return arguments.length?(S=j,G()):S},N.interpolate=function(j){return arguments.length?(w=j,G()):w},N.ticks=function(j){return nt(c,j)},N.tickFormat=function(j,ne){return d3_scale_linearTickFormat(c,j,ne)},N.nice=function(j){return jr(c,j),G()},N.copy=function(){return Sr(c,g,w,S)},G()}function et(c,g){return e.rebind(c,g,"range","rangeRound","interpolate","clamp")}function jr(c,g){return Qe(c,vr(tt(c,g)[2])),Qe(c,vr(tt(c,g)[2])),c}function tt(c,g){g==null&&(g=10);var w=nr(c),S=w[1]-w[0],q=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),D=g/S*q;return D<=.15?q*=10:D<=.35?q*=5:D<=.75&&(q*=2),w[0]=Math.ceil(w[0]/q)*q,w[1]=Math.floor(w[1]/q)*q+q*.5,w[2]=q,w}function nt(c,g){return e.range.apply(e,tt(c,g))}var Lr={s:1,g:1,p:1,r:1,e:1};function Br(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function it(c,g){var w=Br(g[2]);return c in Lr?Math.abs(w-Br(Math.max(b(g[0]),b(g[1]))))+ +(c!=="e"):w-(c==="%")*2}e.scale.log=function(){return pt(e.scale.linear().domain([0,1]),10,!0,[1,10])};function pt(c,g,w,S){function q(N){return(w?Math.log(N<0?0:N):-Math.log(N>0?0:-N))/Math.log(g)}function D(N){return w?Math.pow(g,N):-Math.pow(g,-N)}function G(N){return c(q(N))}return G.invert=function(N){return D(c.invert(N))},G.domain=function(N){return arguments.length?(w=N[0]>=0,c.domain((S=N.map(Number)).map(q)),G):S},G.base=function(N){return arguments.length?(g=+N,c.domain(S.map(q)),G):g},G.nice=function(){var N=Qe(S.map(q),w?Math:Vt);return c.domain(N),S=N.map(D),G},G.ticks=function(){var N=nr(S),j=[],ne=N[0],ie=N[1],ge=Math.floor(q(ne)),me=Math.ceil(q(ie)),ze=g%1?2:g;if(isFinite(me-ge)){if(w){for(;ge0;Ve--)j.push(D(ge)*Ve);for(ge=0;j[ge]ie;me--);j=j.slice(ge,me)}return j},G.copy=function(){return pt(c.copy(),g,w,S)},et(G,c)}var Vt={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return tn(e.scale.linear(),1,[0,1])};function tn(c,g,w){var S=Zt(g),q=Zt(1/g);function D(G){return c(S(G))}return D.invert=function(G){return q(c.invert(G))},D.domain=function(G){return arguments.length?(c.domain((w=G.map(Number)).map(S)),D):w},D.ticks=function(G){return nt(w,G)},D.tickFormat=function(G,N){return d3_scale_linearTickFormat(w,G,N)},D.nice=function(G){return D.domain(jr(w,G))},D.exponent=function(G){return arguments.length?(S=Zt(g=G),q=Zt(1/g),c.domain(w.map(S)),D):g},D.copy=function(){return tn(c.copy(),g,w)},et(D,c)}function Zt(c){return function(g){return g<0?-Math.pow(-g,c):Math.pow(g,c)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return gn([],{t:"range",a:[[]]})};function gn(c,g){var w,S,q;function D(N){return S[((w.get(N)||(g.t==="range"?w.set(N,c.push(N)):NaN))-1)%S.length]}function G(N,j){return e.range(c.length).map(function(ne){return N+j*ne})}return D.domain=function(N){if(!arguments.length)return c;c=[],w=new _;for(var j=-1,ne=N.length,ie;++j0?w[D-1]:c[0],Dme?0:1;if(ie=Hr)return j(ie,Ve)+(ne?j(ne,1-Ve):"")+"Z";var _e,Ce,Ee,Ge,We=0,Re=0,br,Yr,Wr,Vr,Jr,$r,bt,Qr,ht=[];if((Ge=(+G.apply(this,arguments)||0)/2)&&(Ee=S===Wi?Math.sqrt(ne*ne+ie*ie):+S.apply(this,arguments),Ve||(Re*=-1),ie&&(Re=Tn(Ee/ie*Math.sin(Ge))),ne&&(We=Tn(Ee/ne*Math.sin(Ge)))),ie){br=ie*Math.cos(ge+Re),Yr=ie*Math.sin(ge+Re),Wr=ie*Math.cos(me-Re),Vr=ie*Math.sin(me-Re);var Kt=Math.abs(me-ge-2*Re)<=Ze?0:1;if(Re&&qu(br,Yr,Wr,Vr)===Ve^Kt){var Xn=(ge+me)/2;br=ie*Math.cos(Xn),Yr=ie*Math.sin(Xn),Wr=Vr=null}}else br=Yr=0;if(ne){Jr=ne*Math.cos(me-We),$r=ne*Math.sin(me-We),bt=ne*Math.cos(ge+We),Qr=ne*Math.sin(ge+We);var sn=Math.abs(ge-me+2*We)<=Ze?0:1;if(We&&qu(Jr,$r,bt,Qr)===1-Ve^sn){var Nr=(ge+me)/2;Jr=ne*Math.cos(Nr),$r=ne*Math.sin(Nr),bt=Qr=null}}else Jr=$r=0;if(ze>Se&&(_e=Math.min(Math.abs(ie-ne)/2,+w.apply(this,arguments)))>.001){Ce=ne0?0:1}function v0(c,g,w,S,q){var D=c[0]-g[0],G=c[1]-g[1],N=(q?S:-S)/Math.sqrt(D*D+G*G),j=N*G,ne=-N*D,ie=c[0]+j,ge=c[1]+ne,me=g[0]+j,ze=g[1]+ne,Ve=(ie+me)/2,_e=(ge+ze)/2,Ce=me-ie,Ee=ze-ge,Ge=Ce*Ce+Ee*Ee,We=w-S,Re=ie*ze-me*ge,br=(Ee<0?-1:1)*Math.sqrt(Math.max(0,We*We*Ge-Re*Re)),Yr=(Re*Ee-Ce*br)/Ge,Wr=(-Re*Ce-Ee*br)/Ge,Vr=(Re*Ee+Ce*br)/Ge,Jr=(-Re*Ce+Ee*br)/Ge,$r=Yr-Ve,bt=Wr-_e,Qr=Vr-Ve,ht=Jr-_e;return $r*$r+bt*bt>Qr*Qr+ht*ht&&(Yr=Vr,Wr=Jr),[[Yr-j,Wr-ne],[Yr*w/We,Wr*w/We]]}function h0(){return!0}function Zh(c){var g=zl,w=bs,S=h0,q=Zi,D=q.key,G=.7;function N(j){var ne=[],ie=[],ge=-1,me=j.length,ze,Ve=At(g),_e=At(w);function Ce(){ne.push("M",q(c(ie),G))}for(;++ge1?c.join("L"):c+"Z"}function Xh(c){return c.join("L")+"Z"}function jh(c){for(var g=0,w=c.length,S=c[0],q=[S[0],",",S[1]];++g1&&q.push("H",S[0]),q.join("")}function d0(c){for(var g=0,w=c.length,S=c[0],q=[S[0],",",S[1]];++g1){N=g[1],D=c[j],j++,S+="C"+(q[0]+G[0])+","+(q[1]+G[1])+","+(D[0]-N[0])+","+(D[1]-N[1])+","+D[0]+","+D[1];for(var ne=2;ne9&&(D=w*3/Math.sqrt(D),G[N]=D*S,G[N+1]=D*q));for(N=-1;++N<=j;)D=(c[Math.min(j,N+1)][0]-c[Math.max(0,N-1)][0])/(6*(1+G[N]*G[N])),g.push([D||0,G[N]*D||0]);return g}function ue(c){return c.length<3?Zi(c):c[0]+p0(c,Z(c))}e.svg.line.radial=function(){var c=Zh(ve);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function ve(c){for(var g,w=-1,S=c.length,q,D;++wZe)+",1 "+ge}function ne(ie,ge,me,ze){return"Q 0,0 "+ze}return D.radius=function(ie){return arguments.length?(w=At(ie),D):w},D.source=function(ie){return arguments.length?(c=At(ie),D):c},D.target=function(ie){return arguments.length?(g=At(ie),D):g},D.startAngle=function(ie){return arguments.length?(S=At(ie),D):S},D.endAngle=function(ie){return arguments.length?(q=At(ie),D):q},D};function qe(c){return c.radius}e.svg.diagonal=function(){var c=de,g=xe,w=He;function S(q,D){var G=c.call(this,q,D),N=g.call(this,q,D),j=(G.y+N.y)/2,ne=[G,{x:G.x,y:j},{x:N.x,y:j},N];return ne=ne.map(w),"M"+ne[0]+"C"+ne[1]+" "+ne[2]+" "+ne[3]}return S.source=function(q){return arguments.length?(c=At(q),S):c},S.target=function(q){return arguments.length?(g=At(q),S):g},S.projection=function(q){return arguments.length?(w=q,S):w},S};function He(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),g=He,w=c.projection;return c.projection=function(S){return arguments.length?w(er(g=S)):g},c};function er(c){return function(){var g=c.apply(this,arguments),w=g[0],S=g[1]-Pr;return[w*Math.cos(S),w*Math.sin(S)]}}e.svg.symbol=function(){var c=Mr,g=fr;function w(S,q){return(at.get(c.call(this,S,q))||Zr)(g.call(this,S,q))}return w.type=function(S){return arguments.length?(c=At(S),w):c},w.size=function(S){return arguments.length?(g=At(S),w):g},w};function fr(){return 64}function Mr(){return"circle"}function Zr(c){var g=Math.sqrt(c/Ze);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var at=e.map({circle:Zr,cross:function(c){var g=Math.sqrt(c/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(c){var g=Math.sqrt(c/(2*st)),w=g*st;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(c){var g=Math.sqrt(c)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(c){var g=Math.sqrt(c/ot),w=g*ot/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(c){var g=Math.sqrt(c/ot),w=g*ot/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=at.keys();var ot=Math.sqrt(3),st=Math.tan(30*lt);pe.transition=function(c){for(var g=ma||++Fn,w=La(c),S=[],q,D,G=fi||{time:Date.now(),ease:Kc,delay:0,duration:250},N=-1,j=this.length;++N0;)ge[--Ge].call(c,Ee);if(Ce>=1)return G.event&&G.event.end.call(c,c.__data__,g),--D.count?delete D[S]:delete c[w],1}G||(N=q.time,j=Rl(me,0,N),G=D[S]={tween:new _,time:N,timer:j,delay:q.delay,duration:q.duration,ease:q.ease,index:g},q=null,++D.count)}e.svg.axis=function(){var c=e.scale.linear(),g=Xi,w=6,S=6,q=3,D=[10],G=null,N;function j(ne){ne.each(function(){var ie=e.select(this),ge=this.__chart__||c,me=this.__chart__=c.copy(),ze=G==null?me.ticks?me.ticks.apply(me,D):me.domain():G,Ve=N==null?me.tickFormat?me.tickFormat.apply(me,D):V:N,_e=ie.selectAll(".tick").data(ze,me),Ce=_e.enter().insert("g",".domain").attr("class","tick").style("opacity",Se),Ee=e.transition(_e.exit()).style("opacity",Se).remove(),Ge=e.transition(_e.order()).style("opacity",1),We=Math.max(w,0)+q,Re,br=lr(me),Yr=ie.selectAll(".domain").data([0]),Wr=(Yr.enter().append("path").attr("class","domain"),e.transition(Yr));Ce.append("line"),Ce.append("text");var Vr=Ce.select("line"),Jr=Ge.select("line"),$r=_e.select("text").text(Ve),bt=Ce.select("text"),Qr=Ge.select("text"),ht=g==="top"||g==="left"?-1:1,Kt,Xn,sn,Nr;if(g==="bottom"||g==="top"?(Re=sl,Kt="x",sn="y",Xn="x2",Nr="y2",$r.attr("dy",ht<0?"0em":".71em").style("text-anchor","middle"),Wr.attr("d","M"+br[0]+","+ht*S+"V0H"+br[1]+"V"+ht*S)):(Re=ul,Kt="y",sn="x",Xn="y2",Nr="x2",$r.attr("dy",".32em").style("text-anchor",ht<0?"end":"start"),Wr.attr("d","M"+ht*S+","+br[0]+"H0V"+br[1]+"H"+ht*S)),Vr.attr(Nr,ht*w),bt.attr(sn,ht*We),Jr.attr(Xn,0).attr(Nr,ht*w),Qr.attr(Kt,0).attr(sn,ht*We),me.rangeBand){var _t=me,wt=_t.rangeBand()/2;ge=me=function(Qt){return _t(Qt)+wt}}else ge.rangeBand?ge=me:Ee.call(Re,me,ge);Ce.call(Re,ge,me),Ge.call(Re,me,me)})}return j.scale=function(ne){return arguments.length?(c=ne,j):c},j.orient=function(ne){return arguments.length?(g=ne in ll?ne+"":Xi,j):g},j.ticks=function(){return arguments.length?(D=t(arguments),j):D},j.tickValues=function(ne){return arguments.length?(G=ne,j):G},j.tickFormat=function(ne){return arguments.length?(N=ne,j):N},j.tickSize=function(ne){var ie=arguments.length;return ie?(w=+ne,S=+arguments[ie-1],j):w},j.innerTickSize=function(ne){return arguments.length?(w=+ne,j):w},j.outerTickSize=function(ne){return arguments.length?(S=+ne,j):S},j.tickPadding=function(ne){return arguments.length?(q=+ne,j):q},j.tickSubdivide=function(){return arguments.length&&j},j};var Xi="bottom",ll={top:1,right:1,bottom:1,left:1};function sl(c,g,w){c.attr("transform",function(S){var q=g(S);return"translate("+(isFinite(q)?q:w(S))+",0)"})}function ul(c,g,w){c.attr("transform",function(S){var q=g(S);return"translate(0,"+(isFinite(q)?q:w(S))+")"})}e.svg.brush=function(){var c=Fe(ie,"brushstart","brush","brushend"),g=null,w=null,S=[0,0],q=[0,0],D,G,N=!0,j=!0,ne=go[0];function ie(_e){_e.each(function(){var Ce=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ve).on("touchstart.brush",Ve),Ee=Ce.selectAll(".background").data([0]);Ee.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ce.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ge=Ce.selectAll(".resize").data(ne,V);Ge.exit().remove(),Ge.enter().append("g").attr("class",function(Yr){return"resize "+Yr}).style("cursor",function(Yr){return Xl[Yr]}).append("rect").attr("x",function(Yr){return/[ew]$/.test(Yr)?-3:null}).attr("y",function(Yr){return/^[ns]/.test(Yr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ge.style("display",ie.empty()?"none":null);var We=e.transition(Ce),Re=e.transition(Ee),br;g&&(br=lr(g),Re.attr("x",br[0]).attr("width",br[1]-br[0]),me(We)),w&&(br=lr(w),Re.attr("y",br[0]).attr("height",br[1]-br[0]),ze(We)),ge(We)})}ie.event=function(_e){_e.each(function(){var Ce=c.of(this,arguments),Ee={x:S,y:q,i:D,j:G},Ge=this.__chart__||Ee;this.__chart__=Ee,ma?e.select(this).transition().each("start.brush",function(){D=Ge.i,G=Ge.j,S=Ge.x,q=Ge.y,Ce({type:"brushstart"})}).tween("brush:brush",function(){var We=Ol(S,Ee.x),Re=Ol(q,Ee.y);return D=G=null,function(br){S=Ee.x=We(br),q=Ee.y=Re(br),Ce({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=Ee.i,G=Ee.j,Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"})}):(Ce({type:"brushstart"}),Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"}))})};function ge(_e){_e.selectAll(".resize").attr("transform",function(Ce){return"translate("+S[+/e$/.test(Ce)]+","+q[+/^s/.test(Ce)]+")"})}function me(_e){_e.select(".extent").attr("x",S[0]),_e.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function ze(_e){_e.select(".extent").attr("y",q[0]),_e.selectAll(".extent,.e>rect,.w>rect").attr("height",q[1]-q[0])}function Ve(){var _e=this,Ce=e.select(e.event.target),Ee=c.of(_e,arguments),Ge=e.select(_e),We=Ce.datum(),Re=!/^(n|s)$/.test(We)&&g,br=!/^(e|w)$/.test(We)&&w,Yr=Ce.classed("extent"),Wr=Or(_e),Vr,Jr=e.mouse(_e),$r,bt=e.select(i(_e)).on("keydown.brush",Kt).on("keyup.brush",Xn);if(e.event.changedTouches?bt.on("touchmove.brush",sn).on("touchend.brush",_t):bt.on("mousemove.brush",sn).on("mouseup.brush",_t),Ge.interrupt().selectAll("*").interrupt(),Yr)Jr[0]=S[0]-Jr[0],Jr[1]=q[0]-Jr[1];else if(We){var Qr=+/w$/.test(We),ht=+/^n/.test(We);$r=[S[1-Qr]-Jr[0],q[1-ht]-Jr[1]],Jr[0]=S[Qr],Jr[1]=q[ht]}else e.event.altKey&&(Vr=Jr.slice());Ge.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ce.style("cursor")),Ee({type:"brushstart"}),sn();function Kt(){e.event.keyCode==32&&(Yr||(Vr=null,Jr[0]-=S[1],Jr[1]-=q[1],Yr=2),De())}function Xn(){e.event.keyCode==32&&Yr==2&&(Jr[0]+=S[1],Jr[1]+=q[1],Yr=0,De())}function sn(){var wt=e.mouse(_e),Qt=!1;$r&&(wt[0]+=$r[0],wt[1]+=$r[1]),Yr||(e.event.altKey?(Vr||(Vr=[(S[0]+S[1])/2,(q[0]+q[1])/2]),Jr[0]=S[+(wt[0]{(function(e,r){typeof ad=="object"&&typeof G_!="undefined"?r(ad):(e=e||self,r(e.d3=e.d3||{}))})(ad,function(e){"use strict";var r=new Date,t=new Date;function n(Te,Ye,Ar,zr){function Er(Ae){return Te(Ae=arguments.length===0?new Date:new Date(+Ae)),Ae}return Er.floor=function(Ae){return Te(Ae=new Date(+Ae)),Ae},Er.ceil=function(Ae){return Te(Ae=new Date(Ae-1)),Ye(Ae,1),Te(Ae),Ae},Er.round=function(Ae){var je=Er(Ae),hr=Er.ceil(Ae);return Ae-je0))return wr;do wr.push(mr=new Date(+Ae)),Ye(Ae,hr),Te(Ae);while(mr=je)for(;Te(je),!Ae(je);)je.setTime(je-1)},function(je,hr){if(je>=je)if(hr<0)for(;++hr<=0;)for(;Ye(je,-1),!Ae(je););else for(;--hr>=0;)for(;Ye(je,1),!Ae(je););})},Ar&&(Er.count=function(Ae,je){return r.setTime(+Ae),t.setTime(+je),Te(r),Te(t),Math.floor(Ar(r,t))},Er.every=function(Ae){return Ae=Math.floor(Ae),!isFinite(Ae)||!(Ae>0)?null:Ae>1?Er.filter(zr?function(je){return zr(je)%Ae===0}:function(je){return Er.count(0,je)%Ae===0}):Er}),Er}var a=n(function(){},function(Te,Ye){Te.setTime(+Te+Ye)},function(Te,Ye){return Ye-Te});a.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?n(function(Ye){Ye.setTime(Math.floor(Ye/Te)*Te)},function(Ye,Ar){Ye.setTime(+Ye+Ar*Te)},function(Ye,Ar){return(Ar-Ye)/Te}):a};var i=a.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,v=n(function(Te){Te.setTime(Te-Te.getMilliseconds())},function(Te,Ye){Te.setTime(+Te+Ye*o)},function(Te,Ye){return(Ye-Te)/o},function(Te){return Te.getUTCSeconds()}),h=v.range,d=n(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o)},function(Te,Ye){Te.setTime(+Te+Ye*l)},function(Te,Ye){return(Ye-Te)/l},function(Te){return Te.getMinutes()}),m=d.range,p=n(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o-Te.getMinutes()*l)},function(Te,Ye){Te.setTime(+Te+Ye*s)},function(Te,Ye){return(Ye-Te)/s},function(Te){return Te.getHours()}),y=p.range,b=n(function(Te){Te.setHours(0,0,0,0)},function(Te,Ye){Te.setDate(Te.getDate()+Ye)},function(Te,Ye){return(Ye-Te-(Ye.getTimezoneOffset()-Te.getTimezoneOffset())*l)/u},function(Te){return Te.getDate()-1}),C=b.range;function x(Te){return n(function(Ye){Ye.setDate(Ye.getDate()-(Ye.getDay()+7-Te)%7),Ye.setHours(0,0,0,0)},function(Ye,Ar){Ye.setDate(Ye.getDate()+Ar*7)},function(Ye,Ar){return(Ar-Ye-(Ar.getTimezoneOffset()-Ye.getTimezoneOffset())*l)/f})}var _=x(0),A=x(1),k=x(2),M=x(3),E=x(4),z=x(5),F=x(6),I=_.range,W=A.range,B=k.range,X=M.range,V=E.range,re=z.range,ae=F.range,K=n(function(Te){Te.setDate(1),Te.setHours(0,0,0,0)},function(Te,Ye){Te.setMonth(Te.getMonth()+Ye)},function(Te,Ye){return Ye.getMonth()-Te.getMonth()+(Ye.getFullYear()-Te.getFullYear())*12},function(Te){return Te.getMonth()}),ee=K.range,fe=n(function(Te){Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Ye){Te.setFullYear(Te.getFullYear()+Ye)},function(Te,Ye){return Ye.getFullYear()-Te.getFullYear()},function(Te){return Te.getFullYear()});fe.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:n(function(Ye){Ye.setFullYear(Math.floor(Ye.getFullYear()/Te)*Te),Ye.setMonth(0,1),Ye.setHours(0,0,0,0)},function(Ye,Ar){Ye.setFullYear(Ye.getFullYear()+Ar*Te)})};var he=fe.range,De=n(function(Te){Te.setUTCSeconds(0,0)},function(Te,Ye){Te.setTime(+Te+Ye*l)},function(Te,Ye){return(Ye-Te)/l},function(Te){return Te.getUTCMinutes()}),Ne=De.range,Fe=n(function(Te){Te.setUTCMinutes(0,0,0)},function(Te,Ye){Te.setTime(+Te+Ye*s)},function(Te,Ye){return(Ye-Te)/s},function(Te){return Te.getUTCHours()}),Xe=Fe.range,Le=n(function(Te){Te.setUTCHours(0,0,0,0)},function(Te,Ye){Te.setUTCDate(Te.getUTCDate()+Ye)},function(Te,Ye){return(Ye-Te)/u},function(Te){return Te.getUTCDate()-1}),rr=Le.range;function se(Te){return n(function(Ye){Ye.setUTCDate(Ye.getUTCDate()-(Ye.getUTCDay()+7-Te)%7),Ye.setUTCHours(0,0,0,0)},function(Ye,Ar){Ye.setUTCDate(Ye.getUTCDate()+Ar*7)},function(Ye,Ar){return(Ar-Ye)/f})}var ye=se(0),we=se(1),pe=se(2),U=se(3),Q=se(4),$=se(5),ke=se(6),Oe=ye.range,Ie=we.range,ir=pe.range,or=U.range,Ue=Q.range,tr=$.range,ur=ke.range,cr=n(function(Te){Te.setUTCDate(1),Te.setUTCHours(0,0,0,0)},function(Te,Ye){Te.setUTCMonth(Te.getUTCMonth()+Ye)},function(Te,Ye){return Ye.getUTCMonth()-Te.getUTCMonth()+(Ye.getUTCFullYear()-Te.getUTCFullYear())*12},function(Te){return Te.getUTCMonth()}),Ke=cr.range,pr=n(function(Te){Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Ye){Te.setUTCFullYear(Te.getUTCFullYear()+Ye)},function(Te,Ye){return Ye.getUTCFullYear()-Te.getUTCFullYear()},function(Te){return Te.getUTCFullYear()});pr.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:n(function(Ye){Ye.setUTCFullYear(Math.floor(Ye.getUTCFullYear()/Te)*Te),Ye.setUTCMonth(0,1),Ye.setUTCHours(0,0,0,0)},function(Ye,Ar){Ye.setUTCFullYear(Ye.getUTCFullYear()+Ar*Te)})};var dr=pr.range;e.timeDay=b,e.timeDays=C,e.timeFriday=z,e.timeFridays=re,e.timeHour=p,e.timeHours=y,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=A,e.timeMondays=W,e.timeMonth=K,e.timeMonths=ee,e.timeSaturday=F,e.timeSaturdays=ae,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=_,e.timeSundays=I,e.timeThursday=E,e.timeThursdays=V,e.timeTuesday=k,e.timeTuesdays=B,e.timeWednesday=M,e.timeWednesdays=X,e.timeWeek=_,e.timeWeeks=I,e.timeYear=fe,e.timeYears=he,e.utcDay=Le,e.utcDays=rr,e.utcFriday=$,e.utcFridays=tr,e.utcHour=Fe,e.utcHours=Xe,e.utcMillisecond=a,e.utcMilliseconds=i,e.utcMinute=De,e.utcMinutes=Ne,e.utcMonday=we,e.utcMondays=Ie,e.utcMonth=cr,e.utcMonths=Ke,e.utcSaturday=ke,e.utcSaturdays=ur,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=ye,e.utcSundays=Oe,e.utcThursday=Q,e.utcThursdays=Ue,e.utcTuesday=pe,e.utcTuesdays=ir,e.utcWednesday=U,e.utcWednesdays=or,e.utcWeek=ye,e.utcWeeks=Oe,e.utcYear=pr,e.utcYears=dr,Object.defineProperty(e,"__esModule",{value:!0})})});var m0=te((id,V_)=>{(function(e,r){typeof id=="object"&&typeof V_!="undefined"?r(id,wy()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(id,function(e,r){"use strict";function t(be){if(0<=be.y&&be.y<100){var Se=new Date(-1,be.m,be.d,be.H,be.M,be.S,be.L);return Se.setFullYear(be.y),Se}return new Date(be.y,be.m,be.d,be.H,be.M,be.S,be.L)}function n(be){if(0<=be.y&&be.y<100){var Se=new Date(Date.UTC(-1,be.m,be.d,be.H,be.M,be.S,be.L));return Se.setUTCFullYear(be.y),Se}return new Date(Date.UTC(be.y,be.m,be.d,be.H,be.M,be.S,be.L))}function a(be,Se,$e){return{y:be,m:Se,d:$e,H:0,M:0,S:0,L:0}}function i(be){var Se=be.dateTime,$e=be.date,Ze=be.time,qr=be.periods,Hr=be.days,Pr=be.shortDays,lt=be.months,xt=be.shortMonths,Nt=h(qr),Ht=d(qr),An=h(Hr),Tn=d(Hr),cn=h(Pr),Ft=d(Pr),jt=h(lt),en=d(lt),Jt=h(xt),aa=d(xt),rt={a:gi,A:io,b:mi,B:ms,c:null,d:K,e:K,f:Ne,H:ee,I:fe,j:he,L:De,m:Fe,M:Xe,p:El,q:Oo,Q:je,s:hr,S:Le,u:rr,U:se,V:ye,w:we,W:pe,x:null,X:null,y:U,Y:Q,Z:$,"%":Ae},rn={a:ys,A:Uo,b:On,B:yi,c:null,d:ke,e:ke,f:Ue,H:Oe,I:Ie,j:ir,L:or,m:tr,M:ur,p:Yo,q:bi,Q:je,s:hr,S:cr,u:Ke,U:pr,V:dr,w:Te,W:Ye,x:null,X:null,y:Ar,Y:zr,Z:Er,"%":Ae},St={a:da,A:qn,b:Na,B:pa,c:wn,d:E,e:E,f:X,H:F,I:F,j:z,L:B,m:M,M:I,p:vn,q:k,Q:re,s:ae,S:W,u:p,U:y,V:b,w:m,W:C,x:Bt,X:Bn,y:_,Y:x,Z:A,"%":V};rt.x=dn($e,rt),rt.X=dn(Ze,rt),rt.c=dn(Se,rt),rn.x=dn($e,rn),rn.X=dn(Ze,rn),rn.c=dn(Se,rn);function dn(Kr,Ct){return function(Ot){var Ur=[],Wn=-1,on=0,Pn=Kr.length,At,Wa,Go;for(Ot instanceof Date||(Ot=new Date(+Ot));++Wn53)return null;"w"in Ur||(Ur.w=1),"Z"in Ur?(on=n(a(Ur.y,0,1)),Pn=on.getUTCDay(),on=Pn>4||Pn===0?r.utcMonday.ceil(on):r.utcMonday(on),on=r.utcDay.offset(on,(Ur.V-1)*7),Ur.y=on.getUTCFullYear(),Ur.m=on.getUTCMonth(),Ur.d=on.getUTCDate()+(Ur.w+6)%7):(on=t(a(Ur.y,0,1)),Pn=on.getDay(),on=Pn>4||Pn===0?r.timeMonday.ceil(on):r.timeMonday(on),on=r.timeDay.offset(on,(Ur.V-1)*7),Ur.y=on.getFullYear(),Ur.m=on.getMonth(),Ur.d=on.getDate()+(Ur.w+6)%7)}else("W"in Ur||"U"in Ur)&&("w"in Ur||(Ur.w="u"in Ur?Ur.u%7:"W"in Ur?1:0),Pn="Z"in Ur?n(a(Ur.y,0,1)).getUTCDay():t(a(Ur.y,0,1)).getDay(),Ur.m=0,Ur.d="W"in Ur?(Ur.w+6)%7+Ur.W*7-(Pn+5)%7:Ur.w+Ur.U*7-(Pn+6)%7);return"Z"in Ur?(Ur.H+=Ur.Z/100|0,Ur.M+=Ur.Z%100,n(Ur)):t(Ur)}}function an(Kr,Ct,Ot,Ur){for(var Wn=0,on=Ct.length,Pn=Ot.length,At,Wa;Wn=Pn)return-1;if(At=Ct.charCodeAt(Wn++),At===37){if(At=Ct.charAt(Wn++),Wa=St[At in o?Ct.charAt(Wn++):At],!Wa||(Ur=Wa(Kr,Ot,Ur))<0)return-1}else if(At!=Ot.charCodeAt(Ur++))return-1}return Ur}function vn(Kr,Ct,Ot){var Ur=Nt.exec(Ct.slice(Ot));return Ur?(Kr.p=Ht[Ur[0].toLowerCase()],Ot+Ur[0].length):-1}function da(Kr,Ct,Ot){var Ur=cn.exec(Ct.slice(Ot));return Ur?(Kr.w=Ft[Ur[0].toLowerCase()],Ot+Ur[0].length):-1}function qn(Kr,Ct,Ot){var Ur=An.exec(Ct.slice(Ot));return Ur?(Kr.w=Tn[Ur[0].toLowerCase()],Ot+Ur[0].length):-1}function Na(Kr,Ct,Ot){var Ur=Jt.exec(Ct.slice(Ot));return Ur?(Kr.m=aa[Ur[0].toLowerCase()],Ot+Ur[0].length):-1}function pa(Kr,Ct,Ot){var Ur=jt.exec(Ct.slice(Ot));return Ur?(Kr.m=en[Ur[0].toLowerCase()],Ot+Ur[0].length):-1}function wn(Kr,Ct,Ot){return an(Kr,Se,Ct,Ot)}function Bt(Kr,Ct,Ot){return an(Kr,$e,Ct,Ot)}function Bn(Kr,Ct,Ot){return an(Kr,Ze,Ct,Ot)}function gi(Kr){return Pr[Kr.getDay()]}function io(Kr){return Hr[Kr.getDay()]}function mi(Kr){return xt[Kr.getMonth()]}function ms(Kr){return lt[Kr.getMonth()]}function El(Kr){return qr[+(Kr.getHours()>=12)]}function Oo(Kr){return 1+~~(Kr.getMonth()/3)}function ys(Kr){return Pr[Kr.getUTCDay()]}function Uo(Kr){return Hr[Kr.getUTCDay()]}function On(Kr){return xt[Kr.getUTCMonth()]}function yi(Kr){return lt[Kr.getUTCMonth()]}function Yo(Kr){return qr[+(Kr.getUTCHours()>=12)]}function bi(Kr){return 1+~~(Kr.getUTCMonth()/3)}return{format:function(Kr){var Ct=dn(Kr+="",rt);return Ct.toString=function(){return Kr},Ct},parse:function(Kr){var Ct=pn(Kr+="",!1);return Ct.toString=function(){return Kr},Ct},utcFormat:function(Kr){var Ct=dn(Kr+="",rn);return Ct.toString=function(){return Kr},Ct},utcParse:function(Kr){var Ct=pn(Kr+="",!0);return Ct.toString=function(){return Kr},Ct}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(be,Se,$e){var Ze=be<0?"-":"",qr=(Ze?-be:be)+"",Hr=qr.length;return Ze+(Hr<$e?new Array($e-Hr+1).join(Se)+qr:qr)}function v(be){return be.replace(u,"\\$&")}function h(be){return new RegExp("^(?:"+be.map(v).join("|")+")","i")}function d(be){for(var Se={},$e=-1,Ze=be.length;++$e68?1900:2e3),$e+Ze[0].length):-1}function A(be,Se,$e){var Ze=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Se.slice($e,$e+6));return Ze?(be.Z=Ze[1]?0:-(Ze[2]+(Ze[3]||"00")),$e+Ze[0].length):-1}function k(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+1));return Ze?(be.q=Ze[0]*3-3,$e+Ze[0].length):-1}function M(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+2));return Ze?(be.m=Ze[0]-1,$e+Ze[0].length):-1}function E(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+2));return Ze?(be.d=+Ze[0],$e+Ze[0].length):-1}function z(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+3));return Ze?(be.m=0,be.d=+Ze[0],$e+Ze[0].length):-1}function F(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+2));return Ze?(be.H=+Ze[0],$e+Ze[0].length):-1}function I(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+2));return Ze?(be.M=+Ze[0],$e+Ze[0].length):-1}function W(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+2));return Ze?(be.S=+Ze[0],$e+Ze[0].length):-1}function B(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+3));return Ze?(be.L=+Ze[0],$e+Ze[0].length):-1}function X(be,Se,$e){var Ze=l.exec(Se.slice($e,$e+6));return Ze?(be.L=Math.floor(Ze[0]/1e3),$e+Ze[0].length):-1}function V(be,Se,$e){var Ze=s.exec(Se.slice($e,$e+1));return Ze?$e+Ze[0].length:-1}function re(be,Se,$e){var Ze=l.exec(Se.slice($e));return Ze?(be.Q=+Ze[0],$e+Ze[0].length):-1}function ae(be,Se,$e){var Ze=l.exec(Se.slice($e));return Ze?(be.s=+Ze[0],$e+Ze[0].length):-1}function K(be,Se){return f(be.getDate(),Se,2)}function ee(be,Se){return f(be.getHours(),Se,2)}function fe(be,Se){return f(be.getHours()%12||12,Se,2)}function he(be,Se){return f(1+r.timeDay.count(r.timeYear(be),be),Se,3)}function De(be,Se){return f(be.getMilliseconds(),Se,3)}function Ne(be,Se){return De(be,Se)+"000"}function Fe(be,Se){return f(be.getMonth()+1,Se,2)}function Xe(be,Se){return f(be.getMinutes(),Se,2)}function Le(be,Se){return f(be.getSeconds(),Se,2)}function rr(be){var Se=be.getDay();return Se===0?7:Se}function se(be,Se){return f(r.timeSunday.count(r.timeYear(be)-1,be),Se,2)}function ye(be,Se){var $e=be.getDay();return be=$e>=4||$e===0?r.timeThursday(be):r.timeThursday.ceil(be),f(r.timeThursday.count(r.timeYear(be),be)+(r.timeYear(be).getDay()===4),Se,2)}function we(be){return be.getDay()}function pe(be,Se){return f(r.timeMonday.count(r.timeYear(be)-1,be),Se,2)}function U(be,Se){return f(be.getFullYear()%100,Se,2)}function Q(be,Se){return f(be.getFullYear()%1e4,Se,4)}function $(be){var Se=be.getTimezoneOffset();return(Se>0?"-":(Se*=-1,"+"))+f(Se/60|0,"0",2)+f(Se%60,"0",2)}function ke(be,Se){return f(be.getUTCDate(),Se,2)}function Oe(be,Se){return f(be.getUTCHours(),Se,2)}function Ie(be,Se){return f(be.getUTCHours()%12||12,Se,2)}function ir(be,Se){return f(1+r.utcDay.count(r.utcYear(be),be),Se,3)}function or(be,Se){return f(be.getUTCMilliseconds(),Se,3)}function Ue(be,Se){return or(be,Se)+"000"}function tr(be,Se){return f(be.getUTCMonth()+1,Se,2)}function ur(be,Se){return f(be.getUTCMinutes(),Se,2)}function cr(be,Se){return f(be.getUTCSeconds(),Se,2)}function Ke(be){var Se=be.getUTCDay();return Se===0?7:Se}function pr(be,Se){return f(r.utcSunday.count(r.utcYear(be)-1,be),Se,2)}function dr(be,Se){var $e=be.getUTCDay();return be=$e>=4||$e===0?r.utcThursday(be):r.utcThursday.ceil(be),f(r.utcThursday.count(r.utcYear(be),be)+(r.utcYear(be).getUTCDay()===4),Se,2)}function Te(be){return be.getUTCDay()}function Ye(be,Se){return f(r.utcMonday.count(r.utcYear(be)-1,be),Se,2)}function Ar(be,Se){return f(be.getUTCFullYear()%100,Se,2)}function zr(be,Se){return f(be.getUTCFullYear()%1e4,Se,4)}function Er(){return"+0000"}function Ae(){return"%"}function je(be){return+be}function hr(be){return Math.floor(+be/1e3)}var wr;mr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function mr(be){return wr=i(be),e.timeFormat=wr.format,e.timeParse=wr.parse,e.utcFormat=wr.utcFormat,e.utcParse=wr.utcParse,wr}var Tr="%Y-%m-%dT%H:%M:%S.%LZ";function Dr(be){return be.toISOString()}var Or=Date.prototype.toISOString?Dr:e.utcFormat(Tr);function Cr(be){var Se=new Date(be);return isNaN(Se)?null:Se}var ar=+new Date("2000-01-01T00:00:00.000Z")?Cr:e.utcParse(Tr);e.isoFormat=Or,e.isoParse=ar,e.timeFormatDefaultLocale=mr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var My=te((od,W_)=>{(function(e,r){typeof od=="object"&&typeof W_!="undefined"?r(od):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(od,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,E){if((z=(M=E?M.toExponential(E-1):M.toExponential()).indexOf("e"))<0)return null;var z,F=M.slice(0,z);return[F.length>1?F[0]+F.slice(2):F,+M.slice(z+1)]}function n(M){return M=t(Math.abs(M)),M?M[1]:NaN}function a(M,E){return function(z,F){for(var I=z.length,W=[],B=0,X=M[0],V=0;I>0&&X>0&&(V+X+1>F&&(X=Math.max(1,F-V)),W.push(z.substring(I-=X,I+X)),!((V+=X+1)>F));)X=M[B=(B+1)%M.length];return W.reverse().join(E)}}function i(M){return function(E){return E.replace(/[0-9]/g,function(z){return M[+z]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(E=o.exec(M)))throw new Error("invalid format: "+M);var E;return new s({fill:E[1],align:E[2],sign:E[3],symbol:E[4],zero:E[5],width:E[6],comma:E[7],precision:E[8]&&E[8].slice(1),trim:E[9],type:E[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var E=M.length,z=1,F=-1,I;z0&&(F=0);break}return F>0?M.slice(0,F)+M.slice(I+1):M}var f;function v(M,E){var z=t(M,E);if(!z)return M+"";var F=z[0],I=z[1],W=I-(f=Math.max(-8,Math.min(8,Math.floor(I/3)))*3)+1,B=F.length;return W===B?F:W>B?F+new Array(W-B+1).join("0"):W>0?F.slice(0,W)+"."+F.slice(W):"0."+new Array(1-W).join("0")+t(M,Math.max(0,E+W-1))[0]}function h(M,E){var z=t(M,E);if(!z)return M+"";var F=z[0],I=z[1];return I<0?"0."+new Array(-I).join("0")+F:F.length>I+1?F.slice(0,I+1)+"."+F.slice(I+1):F+new Array(I-F.length+2).join("0")}var d={"%":function(M,E){return(M*100).toFixed(E)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,E){return M.toExponential(E)},f:function(M,E){return M.toFixed(E)},g:function(M,E){return M.toPrecision(E)},o:function(M){return Math.round(M).toString(8)},p:function(M,E){return h(M*100,E)},r:h,s:v,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function m(M){return M}var p=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var E=M.grouping===void 0||M.thousands===void 0?m:a(p.call(M.grouping,Number),M.thousands+""),z=M.currency===void 0?"":M.currency[0]+"",F=M.currency===void 0?"":M.currency[1]+"",I=M.decimal===void 0?".":M.decimal+"",W=M.numerals===void 0?m:i(p.call(M.numerals,String)),B=M.percent===void 0?"%":M.percent+"",X=M.minus===void 0?"-":M.minus+"",V=M.nan===void 0?"NaN":M.nan+"";function re(K){K=l(K);var ee=K.fill,fe=K.align,he=K.sign,De=K.symbol,Ne=K.zero,Fe=K.width,Xe=K.comma,Le=K.precision,rr=K.trim,se=K.type;se==="n"?(Xe=!0,se="g"):d[se]||(Le===void 0&&(Le=12),rr=!0,se="g"),(Ne||ee==="0"&&fe==="=")&&(Ne=!0,ee="0",fe="=");var ye=De==="$"?z:De==="#"&&/[boxX]/.test(se)?"0"+se.toLowerCase():"",we=De==="$"?F:/[%p]/.test(se)?B:"",pe=d[se],U=/[defgprs%]/.test(se);Le=Le===void 0?6:/[gprs]/.test(se)?Math.max(1,Math.min(21,Le)):Math.max(0,Math.min(20,Le));function Q($){var ke=ye,Oe=we,Ie,ir,or;if(se==="c")Oe=pe($)+Oe,$="";else{$=+$;var Ue=$<0||1/$<0;if($=isNaN($)?V:pe(Math.abs($),Le),rr&&($=u($)),Ue&&+$==0&&he!=="+"&&(Ue=!1),ke=(Ue?he==="("?he:X:he==="-"||he==="("?"":he)+ke,Oe=(se==="s"?y[8+f/3]:"")+Oe+(Ue&&he==="("?")":""),U){for(Ie=-1,ir=$.length;++Ieor||or>57){Oe=(or===46?I+$.slice(Ie+1):$.slice(Ie))+Oe,$=$.slice(0,Ie);break}}}Xe&&!Ne&&($=E($,1/0));var tr=ke.length+$.length+Oe.length,ur=tr>1)+ke+$+Oe+ur.slice(tr);break;default:$=ur+ke+$+Oe;break}return W($)}return Q.toString=function(){return K+""},Q}function ae(K,ee){var fe=re((K=l(K),K.type="f",K)),he=Math.max(-8,Math.min(8,Math.floor(n(ee)/3)))*3,De=Math.pow(10,-he),Ne=y[8+he/3];return function(Fe){return fe(De*Fe)+Ne}}return{format:re,formatPrefix:ae}}var C;x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function x(M){return C=b(M),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function _(M){return Math.max(0,-n(Math.abs(M)))}function A(M,E){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(E)/3)))*3-n(Math.abs(M)))}function k(M,E){return M=Math.abs(M),E=Math.abs(E)-M,Math.max(0,n(E)-n(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=x,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=_,e.precisionPrefix=A,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var X_=te((Goe,Z_)=>{"use strict";Z_.exports=function(e){for(var r=e.length,t,n=0;n13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Ut=te((Voe,j_)=>{"use strict";var OI=X_();j_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&OI(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Rn=te((Woe,J_)=>{"use strict";J_.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var Ay=te((ld,$_)=>{(function(e,r){typeof ld=="object"&&typeof $_!="undefined"?r(ld):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(ld,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,v,h,d,m;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var p=new ArrayBuffer(l),y=new Uint8Array(p);for(u=0;u>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|m&63;return p};e.decode=i,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var Gs=te((Zoe,K_)=>{"use strict";K_.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var ji=te(cl=>{"use strict";var UI=Ay().decode,YI=Gs(),Ty=Array.isArray,GI=ArrayBuffer,VI=DataView;function Q_(e){return GI.isView(e)&&!(e instanceof VI)}cl.isTypedArray=Q_;function sd(e){return Ty(e)||Q_(e)}cl.isArrayOrTypedArray=sd;function WI(e){return!sd(e[0])}cl.isArray1D=WI;cl.ensureArray=function(e,r){return Ty(e)||(e=[]),e.length=r,e};var Ta={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ta.uint8c=Ta.u1c;Ta.uint8=Ta.u1;Ta.int8=Ta.i1;Ta.uint16=Ta.u2;Ta.int16=Ta.i2;Ta.uint32=Ta.u4;Ta.int32=Ta.i4;Ta.float32=Ta.f4;Ta.float64=Ta.f8;function ky(e){return e.constructor===ArrayBuffer}cl.isArrayBuffer=ky;cl.decodeTypedArraySpec=function(e){var r=[],t=ZI(e),n=t.dtype,a=Ta[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var i=a.BYTES_PER_ELEMENT,o=t.bdata;ky(o)||(o=UI(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,v=+l[0],h=i*v,d=0;if(s===1)r=new a(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var r6=Ut(),Cy=ji().isArrayOrTypedArray;i6.exports=function(r,t){if(r6(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var n=t.split("."),a,i,o,l;for(l=0;l{"use strict";var y0=Kv(),KI=/^\w*$/,QI=0,o6=1,ud=2,l6=3,jf=4;s6.exports=function(r,t,n,a){n=n||"name",a=a||"value";var i,o,l,s={};t&&t.length?(l=y0(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|ud,v.set(h,null);if(f){for(i=d;i{"use strict";var eH=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,rH=/^[^\.\[\]]+$/;f6.exports=function(e,r){for(;r;){var t=e.match(eH);if(t)e=t[1];else if(e.match(rH))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var fd=te((Koe,v6)=>{"use strict";var tH=Ut();v6.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return tH(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var p6=te((Qoe,d6)=>{"use strict";var h6=ji().isArrayOrTypedArray,Qv=Gs();d6.exports=function e(r,t){for(var n in t){var a=t[n],i=r[n];if(i!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if(h6(a)&&h6(i)&&Qv(a[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(a.length,i.length),l=0;l{"use strict";function nH(e,r){var t=e%r;return t<0?t+r:t}function aH(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}g6.exports={mod:nH,modHalf:aH}});var Jl=te((rle,cd)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,i=e.min,o=e.max,l=e.random;function s(U,Q){if(U=U||"",Q=Q||{},U instanceof s)return U;if(!(this instanceof s))return new s(U,Q);var $=u(U);this._originalInput=U,this._r=$.r,this._g=$.g,this._b=$.b,this._a=$.a,this._roundA=a(100*this._a)/100,this._format=Q.format||$.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=$.ok,this._tc_id=n++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var U=this.toRgb();return(U.r*299+U.g*587+U.b*114)/1e3},getLuminance:function(){var U=this.toRgb(),Q,$,ke,Oe,Ie,ir;return Q=U.r/255,$=U.g/255,ke=U.b/255,Q<=.03928?Oe=Q/12.92:Oe=e.pow((Q+.055)/1.055,2.4),$<=.03928?Ie=$/12.92:Ie=e.pow(($+.055)/1.055,2.4),ke<=.03928?ir=ke/12.92:ir=e.pow((ke+.055)/1.055,2.4),.2126*Oe+.7152*Ie+.0722*ir},setAlpha:function(U){return this._a=K(U),this._roundA=a(100*this._a)/100,this},toHsv:function(){var U=d(this._r,this._g,this._b);return{h:U.h*360,s:U.s,v:U.v,a:this._a}},toHsvString:function(){var U=d(this._r,this._g,this._b),Q=a(U.h*360),$=a(U.s*100),ke=a(U.v*100);return this._a==1?"hsv("+Q+", "+$+"%, "+ke+"%)":"hsva("+Q+", "+$+"%, "+ke+"%, "+this._roundA+")"},toHsl:function(){var U=v(this._r,this._g,this._b);return{h:U.h*360,s:U.s,l:U.l,a:this._a}},toHslString:function(){var U=v(this._r,this._g,this._b),Q=a(U.h*360),$=a(U.s*100),ke=a(U.l*100);return this._a==1?"hsl("+Q+", "+$+"%, "+ke+"%)":"hsla("+Q+", "+$+"%, "+ke+"%, "+this._roundA+")"},toHex:function(U){return p(this._r,this._g,this._b,U)},toHexString:function(U){return"#"+this.toHex(U)},toHex8:function(U){return y(this._r,this._g,this._b,this._a,U)},toHex8String:function(U){return"#"+this.toHex8(U)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(ee(this._r,255)*100)+"%",g:a(ee(this._g,255)*100)+"%",b:a(ee(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(ee(this._r,255)*100)+"%, "+a(ee(this._g,255)*100)+"%, "+a(ee(this._b,255)*100)+"%)":"rgba("+a(ee(this._r,255)*100)+"%, "+a(ee(this._g,255)*100)+"%, "+a(ee(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:re[p(this._r,this._g,this._b,!0)]||!1},toFilter:function(U){var Q="#"+b(this._r,this._g,this._b,this._a),$=Q,ke=this._gradientType?"GradientType = 1, ":"";if(U){var Oe=s(U);$="#"+b(Oe._r,Oe._g,Oe._b,Oe._a)}return"progid:DXImageTransform.Microsoft.gradient("+ke+"startColorstr="+Q+",endColorstr="+$+")"},toString:function(U){var Q=!!U;U=U||this._format;var $=!1,ke=this._a<1&&this._a>=0,Oe=!Q&&ke&&(U==="hex"||U==="hex6"||U==="hex3"||U==="hex4"||U==="hex8"||U==="name");return Oe?U==="name"&&this._a===0?this.toName():this.toRgbString():(U==="rgb"&&($=this.toRgbString()),U==="prgb"&&($=this.toPercentageRgbString()),(U==="hex"||U==="hex6")&&($=this.toHexString()),U==="hex3"&&($=this.toHexString(!0)),U==="hex4"&&($=this.toHex8String(!0)),U==="hex8"&&($=this.toHex8String()),U==="name"&&($=this.toName()),U==="hsl"&&($=this.toHslString()),U==="hsv"&&($=this.toHsvString()),$||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(U,Q){var $=U.apply(null,[this].concat([].slice.call(Q)));return this._r=$._r,this._g=$._g,this._b=$._b,this.setAlpha($._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(E,arguments)},_applyCombination:function(U,Q){return U.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(z,arguments)},monochromatic:function(){return this._applyCombination(X,arguments)},splitcomplement:function(){return this._applyCombination(W,arguments)},triad:function(){return this._applyCombination(F,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},s.fromRatio=function(U,Q){if(typeof U=="object"){var $={};for(var ke in U)U.hasOwnProperty(ke)&&(ke==="a"?$[ke]=U[ke]:$[ke]=Xe(U[ke]));U=$}return s(U,Q)};function u(U){var Q={r:0,g:0,b:0},$=1,ke=null,Oe=null,Ie=null,ir=!1,or=!1;return typeof U=="string"&&(U=we(U)),typeof U=="object"&&(ye(U.r)&&ye(U.g)&&ye(U.b)?(Q=f(U.r,U.g,U.b),ir=!0,or=String(U.r).substr(-1)==="%"?"prgb":"rgb"):ye(U.h)&&ye(U.s)&&ye(U.v)?(ke=Xe(U.s),Oe=Xe(U.v),Q=m(U.h,ke,Oe),ir=!0,or="hsv"):ye(U.h)&&ye(U.s)&&ye(U.l)&&(ke=Xe(U.s),Ie=Xe(U.l),Q=h(U.h,ke,Ie),ir=!0,or="hsl"),U.hasOwnProperty("a")&&($=U.a)),$=K($),{ok:ir,format:U.format||or,r:i(255,o(Q.r,0)),g:i(255,o(Q.g,0)),b:i(255,o(Q.b,0)),a:$}}function f(U,Q,$){return{r:ee(U,255)*255,g:ee(Q,255)*255,b:ee($,255)*255}}function v(U,Q,$){U=ee(U,255),Q=ee(Q,255),$=ee($,255);var ke=o(U,Q,$),Oe=i(U,Q,$),Ie,ir,or=(ke+Oe)/2;if(ke==Oe)Ie=ir=0;else{var Ue=ke-Oe;switch(ir=or>.5?Ue/(2-ke-Oe):Ue/(ke+Oe),ke){case U:Ie=(Q-$)/Ue+(Q<$?6:0);break;case Q:Ie=($-U)/Ue+2;break;case $:Ie=(U-Q)/Ue+4;break}Ie/=6}return{h:Ie,s:ir,l:or}}function h(U,Q,$){var ke,Oe,Ie;U=ee(U,360),Q=ee(Q,100),$=ee($,100);function ir(tr,ur,cr){return cr<0&&(cr+=1),cr>1&&(cr-=1),cr<1/6?tr+(ur-tr)*6*cr:cr<1/2?ur:cr<2/3?tr+(ur-tr)*(2/3-cr)*6:tr}if(Q===0)ke=Oe=Ie=$;else{var or=$<.5?$*(1+Q):$+Q-$*Q,Ue=2*$-or;ke=ir(Ue,or,U+1/3),Oe=ir(Ue,or,U),Ie=ir(Ue,or,U-1/3)}return{r:ke*255,g:Oe*255,b:Ie*255}}function d(U,Q,$){U=ee(U,255),Q=ee(Q,255),$=ee($,255);var ke=o(U,Q,$),Oe=i(U,Q,$),Ie,ir,or=ke,Ue=ke-Oe;if(ir=ke===0?0:Ue/ke,ke==Oe)Ie=0;else{switch(ke){case U:Ie=(Q-$)/Ue+(Q<$?6:0);break;case Q:Ie=($-U)/Ue+2;break;case $:Ie=(U-Q)/Ue+4;break}Ie/=6}return{h:Ie,s:ir,v:or}}function m(U,Q,$){U=ee(U,360)*6,Q=ee(Q,100),$=ee($,100);var ke=e.floor(U),Oe=U-ke,Ie=$*(1-Q),ir=$*(1-Oe*Q),or=$*(1-(1-Oe)*Q),Ue=ke%6,tr=[$,ir,Ie,Ie,or,$][Ue],ur=[or,$,$,ir,Ie,Ie][Ue],cr=[Ie,Ie,or,$,$,ir][Ue];return{r:tr*255,g:ur*255,b:cr*255}}function p(U,Q,$,ke){var Oe=[Fe(a(U).toString(16)),Fe(a(Q).toString(16)),Fe(a($).toString(16))];return ke&&Oe[0].charAt(0)==Oe[0].charAt(1)&&Oe[1].charAt(0)==Oe[1].charAt(1)&&Oe[2].charAt(0)==Oe[2].charAt(1)?Oe[0].charAt(0)+Oe[1].charAt(0)+Oe[2].charAt(0):Oe.join("")}function y(U,Q,$,ke,Oe){var Ie=[Fe(a(U).toString(16)),Fe(a(Q).toString(16)),Fe(a($).toString(16)),Fe(Le(ke))];return Oe&&Ie[0].charAt(0)==Ie[0].charAt(1)&&Ie[1].charAt(0)==Ie[1].charAt(1)&&Ie[2].charAt(0)==Ie[2].charAt(1)&&Ie[3].charAt(0)==Ie[3].charAt(1)?Ie[0].charAt(0)+Ie[1].charAt(0)+Ie[2].charAt(0)+Ie[3].charAt(0):Ie.join("")}function b(U,Q,$,ke){var Oe=[Fe(Le(ke)),Fe(a(U).toString(16)),Fe(a(Q).toString(16)),Fe(a($).toString(16))];return Oe.join("")}s.equals=function(U,Q){return!U||!Q?!1:s(U).toRgbString()==s(Q).toRgbString()},s.random=function(){return s.fromRatio({r:l(),g:l(),b:l()})};function C(U,Q){Q=Q===0?0:Q||10;var $=s(U).toHsl();return $.s-=Q/100,$.s=fe($.s),s($)}function x(U,Q){Q=Q===0?0:Q||10;var $=s(U).toHsl();return $.s+=Q/100,$.s=fe($.s),s($)}function _(U){return s(U).desaturate(100)}function A(U,Q){Q=Q===0?0:Q||10;var $=s(U).toHsl();return $.l+=Q/100,$.l=fe($.l),s($)}function k(U,Q){Q=Q===0?0:Q||10;var $=s(U).toRgb();return $.r=o(0,i(255,$.r-a(255*-(Q/100)))),$.g=o(0,i(255,$.g-a(255*-(Q/100)))),$.b=o(0,i(255,$.b-a(255*-(Q/100)))),s($)}function M(U,Q){Q=Q===0?0:Q||10;var $=s(U).toHsl();return $.l-=Q/100,$.l=fe($.l),s($)}function E(U,Q){var $=s(U).toHsl(),ke=($.h+Q)%360;return $.h=ke<0?360+ke:ke,s($)}function z(U){var Q=s(U).toHsl();return Q.h=(Q.h+180)%360,s(Q)}function F(U){var Q=s(U).toHsl(),$=Q.h;return[s(U),s({h:($+120)%360,s:Q.s,l:Q.l}),s({h:($+240)%360,s:Q.s,l:Q.l})]}function I(U){var Q=s(U).toHsl(),$=Q.h;return[s(U),s({h:($+90)%360,s:Q.s,l:Q.l}),s({h:($+180)%360,s:Q.s,l:Q.l}),s({h:($+270)%360,s:Q.s,l:Q.l})]}function W(U){var Q=s(U).toHsl(),$=Q.h;return[s(U),s({h:($+72)%360,s:Q.s,l:Q.l}),s({h:($+216)%360,s:Q.s,l:Q.l})]}function B(U,Q,$){Q=Q||6,$=$||30;var ke=s(U).toHsl(),Oe=360/$,Ie=[s(U)];for(ke.h=(ke.h-(Oe*Q>>1)+720)%360;--Q;)ke.h=(ke.h+Oe)%360,Ie.push(s(ke));return Ie}function X(U,Q){Q=Q||6;for(var $=s(U).toHsv(),ke=$.h,Oe=$.s,Ie=$.v,ir=[],or=1/Q;Q--;)ir.push(s({h:ke,s:Oe,v:Ie})),Ie=(Ie+or)%1;return ir}s.mix=function(U,Q,$){$=$===0?0:$||50;var ke=s(U).toRgb(),Oe=s(Q).toRgb(),Ie=$/100,ir={r:(Oe.r-ke.r)*Ie+ke.r,g:(Oe.g-ke.g)*Ie+ke.g,b:(Oe.b-ke.b)*Ie+ke.b,a:(Oe.a-ke.a)*Ie+ke.a};return s(ir)},s.readability=function(U,Q){var $=s(U),ke=s(Q);return(e.max($.getLuminance(),ke.getLuminance())+.05)/(e.min($.getLuminance(),ke.getLuminance())+.05)},s.isReadable=function(U,Q,$){var ke=s.readability(U,Q),Oe,Ie;switch(Ie=!1,Oe=pe($),Oe.level+Oe.size){case"AAsmall":case"AAAlarge":Ie=ke>=4.5;break;case"AAlarge":Ie=ke>=3;break;case"AAAsmall":Ie=ke>=7;break}return Ie},s.mostReadable=function(U,Q,$){var ke=null,Oe=0,Ie,ir,or,Ue;$=$||{},ir=$.includeFallbackColors,or=$.level,Ue=$.size;for(var tr=0;trOe&&(Oe=Ie,ke=s(Q[tr]));return s.isReadable(U,ke,{level:or,size:Ue})||!ir?ke:($.includeFallbackColors=!1,s.mostReadable(U,["#fff","#000"],$))};var V=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},re=s.hexNames=ae(V);function ae(U){var Q={};for(var $ in U)U.hasOwnProperty($)&&(Q[U[$]]=$);return Q}function K(U){return U=parseFloat(U),(isNaN(U)||U<0||U>1)&&(U=1),U}function ee(U,Q){De(U)&&(U="100%");var $=Ne(U);return U=i(Q,o(0,parseFloat(U))),$&&(U=parseInt(U*Q,10)/100),e.abs(U-Q)<1e-6?1:U%Q/parseFloat(Q)}function fe(U){return i(1,o(0,U))}function he(U){return parseInt(U,16)}function De(U){return typeof U=="string"&&U.indexOf(".")!=-1&&parseFloat(U)===1}function Ne(U){return typeof U=="string"&&U.indexOf("%")!=-1}function Fe(U){return U.length==1?"0"+U:""+U}function Xe(U){return U<=1&&(U=U*100+"%"),U}function Le(U){return e.round(parseFloat(U)*255).toString(16)}function rr(U){return he(U)/255}var se=function(){var U="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",$="(?:"+Q+")|(?:"+U+")",ke="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",Oe="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?";return{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+ke),rgba:new RegExp("rgba"+Oe),hsl:new RegExp("hsl"+ke),hsla:new RegExp("hsla"+Oe),hsv:new RegExp("hsv"+ke),hsva:new RegExp("hsva"+Oe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ye(U){return!!se.CSS_UNIT.exec(U)}function we(U){U=U.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(V[U])U=V[U],Q=!0;else if(U=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $;return($=se.rgb.exec(U))?{r:$[1],g:$[2],b:$[3]}:($=se.rgba.exec(U))?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=se.hsl.exec(U))?{h:$[1],s:$[2],l:$[3]}:($=se.hsla.exec(U))?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=se.hsv.exec(U))?{h:$[1],s:$[2],v:$[3]}:($=se.hsva.exec(U))?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=se.hex8.exec(U))?{r:he($[1]),g:he($[2]),b:he($[3]),a:rr($[4]),format:Q?"name":"hex8"}:($=se.hex6.exec(U))?{r:he($[1]),g:he($[2]),b:he($[3]),format:Q?"name":"hex"}:($=se.hex4.exec(U))?{r:he($[1]+""+$[1]),g:he($[2]+""+$[2]),b:he($[3]+""+$[3]),a:rr($[4]+""+$[4]),format:Q?"name":"hex8"}:($=se.hex3.exec(U))?{r:he($[1]+""+$[1]),g:he($[2]+""+$[2]),b:he($[3]+""+$[3]),format:Q?"name":"hex"}:!1}function pe(U){var Q,$;return U=U||{level:"AA",size:"small"},Q=(U.level||"AA").toUpperCase(),$=(U.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),$!=="small"&&$!=="large"&&($="small"),{level:Q,size:$}}typeof cd!="undefined"&&cd.exports?cd.exports=s:window.tinycolor=s})(Math)});var la=te(t1=>{"use strict";var m6=Gs(),e1=Array.isArray;function iH(e,r){var t,n;for(t=0;t{"use strict";y6.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var n1=te((ale,b6)=>{"use strict";b6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var _0=te((ile,w6)=>{"use strict";var _6=n1(),x6=$a(),Ly=x6({editType:"none"});Ly.family.dflt=_6.HOVERFONT;Ly.size.dflt=_6.HOVERFONTSIZE;w6.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Ly,grouptitlefont:x6({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var vd=te((ole,M6)=>{"use strict";var oH=$a(),a1=_0().hoverlabel,i1=la().extendFlat;M6.exports={hoverlabel:{bgcolor:i1({},a1.bgcolor,{arrayOk:!0}),bordercolor:i1({},a1.bordercolor,{arrayOk:!0}),font:oH({arrayOk:!0,editType:"none"}),align:i1({},a1.align,{arrayOk:!0}),namelength:i1({},a1.namelength,{arrayOk:!0}),showarrow:i1({},a1.showarrow),editType:"none"}}});var bo=te((lle,A6)=>{"use strict";var lH=$a(),sH=vd();A6.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:lH({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:sH.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Jf=te((sle,S6)=>{"use strict";var uH=Jl(),hd={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},T6=hd.RdBu;function fH(e,r){if(r||(r=T6),!e)return r;function t(){try{e=hd[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),k6(e)?e:r}function k6(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";$f.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];$f.defaultLine="#444";$f.lightLine="#eee";$f.background="#fff";$f.borderLine="#BEC8D9";$f.lightFraction=100*10/11});var Pt=te((fle,C6)=>{"use strict";var Li=Jl(),vH=Ut(),hH=ji().isTypedArray,ya=C6.exports={},dd=vl();ya.defaults=dd.defaults;var dH=ya.defaultLine=dd.defaultLine;ya.lightLine=dd.lightLine;var Dy=ya.background=dd.background;ya.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};ya.rgb=function(e){return ya.tinyRGB(Li(e))};ya.opacity=function(e){return e?Li(e).getAlpha():0};ya.addOpacity=function(e,r){var t=Li(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};ya.combine=function(e,r){var t=Li(e).toRgb();if(t.a===1)return Li(e).toRgbString();var n=Li(r||Dy).toRgb(),a=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},i={r:a.r*(1-t.a)+t.r*t.a,g:a.g*(1-t.a)+t.g*t.a,b:a.b*(1-t.a)+t.b*t.a};return Li(i).toRgbString()};ya.interpolate=function(e,r,t){var n=Li(e).toRgb(),a=Li(r).toRgb(),i={r:t*n.r+(1-t)*a.r,g:t*n.g+(1-t)*a.g,b:t*n.b+(1-t)*a.b};return Li(i).toRgbString()};ya.contrast=function(e,r,t){var n=Li(e);n.getAlpha()!==1&&(n=Li(ya.combine(e,Dy)));var a=n.isDark()?r?n.lighten(r):Dy:t?n.darken(t):dH;return a.toString()};ya.stroke=function(e,r){var t=Li(r);e.style({stroke:ya.tinyRGB(t),"stroke-opacity":t.getAlpha()})};ya.fill=function(e,r){var t=Li(r);e.style({fill:ya.tinyRGB(t),"fill-opacity":t.getAlpha()})};ya.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,n,a,i;for(t=0;t=0)))return e;if(i===3)n[i]>1&&(n[i]=1);else if(n[i]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return a?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var pd=te((cle,L6)=>{"use strict";L6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var x0=te(q6=>{"use strict";q6.counter=function(e,r,t,n){var a=(r||"")+(t?"":"$"),i=n===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+a)}});var R6=te(qi=>{"use strict";var Ey=Ut(),D6=Jl(),E6=la().extendFlat,pH=bo(),gH=Jf(),mH=Pt(),yH=pd().DESELECTDIM,w0=Kv(),P6=x0().counter,bH=b0().modHalf,$l=ji().isArrayOrTypedArray,Eu=ji().isTypedArraySpec,Pu=ji().decodeTypedArraySpec;qi.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set($l(e)?e:Eu(e)?Pu(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;nn.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}Eu(e)&&(e=Pu(e)),e%1||!Ey(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Eu(e)&&(e=Pu(e)),D6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return D6(a).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(n)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(gH.get(e,t))}},angle:{coerceFunction:function(e,r,t){Eu(e)&&(e=Pu(e)),e==="auto"?r.set("auto"):Ey(e)?r.set(bH(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||P6(t);if(typeof e=="string"&&a.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!P6(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),i=0;i{"use strict";var z6={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},N6={};function F6(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),F6(n,r[t]))}}F6(z6,N6);I6.exports={configAttributes:z6,dfltConfig:N6}});var Ry=te((ple,H6)=>{"use strict";var Py=kt(),_H=Ut(),o1=[];H6.exports=function(e,r){if(o1.indexOf(e)!==-1)return;o1.push(e);var t=1e3;_H(r)?t=r:r==="long"&&(t=3e3);var n=Py.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(o1);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=o1.indexOf(l);s!==-1&&o1.splice(s,1),Py.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=Py.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),u=o.split(//g),f=0;f{"use strict";var M0=Kf().dfltConfig,zy=Ry(),Ny=B6.exports={};Ny.log=function(){var e;if(M0.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Ny.warn=function(){var e;if(M0.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Ny.error=function(){var e;if(M0.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var md=te((mle,O6)=>{"use strict";O6.exports=function(){}});var Fy=te((yle,U6)=>{"use strict";U6.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{Y6.exports=xH;function xH(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var W6=te((_le,V6)=>{V6.exports=wH;function wH(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var X6=te((xle,Z6)=>{Z6.exports=MH;function MH(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Iy=te((wle,j6)=>{j6.exports=AH;function AH(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var $6=te((Mle,J6)=>{J6.exports=TH;function TH(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=i,e[11]=r[14],e[12]=a,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var Q6=te((Ale,K6)=>{K6.exports=kH;function kH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],b=r[15],C=t*l-n*o,x=t*s-a*o,_=t*u-i*o,A=n*s-a*l,k=n*u-i*l,M=a*u-i*s,E=f*p-v*m,z=f*y-h*m,F=f*b-d*m,I=v*y-h*p,W=v*b-d*p,B=h*b-d*y,X=C*B-x*W+_*I+A*F-k*z+M*E;return X?(X=1/X,e[0]=(l*B-s*W+u*I)*X,e[1]=(a*W-n*B-i*I)*X,e[2]=(p*M-y*k+b*A)*X,e[3]=(h*k-v*M-d*A)*X,e[4]=(s*F-o*B-u*z)*X,e[5]=(t*B-a*F+i*z)*X,e[6]=(y*_-m*M-b*x)*X,e[7]=(f*M-h*_+d*x)*X,e[8]=(o*W-l*F+u*E)*X,e[9]=(n*F-t*W-i*E)*X,e[10]=(m*k-p*_+b*C)*X,e[11]=(v*_-f*k-d*C)*X,e[12]=(l*z-o*I-s*E)*X,e[13]=(t*I-n*z+a*E)*X,e[14]=(p*x-m*A-y*C)*X,e[15]=(f*A-v*x+h*C)*X,e):null}});var rx=te((Tle,ex)=>{ex.exports=SH;function SH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],b=r[15];return e[0]=l*(h*b-d*y)-v*(s*b-u*y)+p*(s*d-u*h),e[1]=-(n*(h*b-d*y)-v*(a*b-i*y)+p*(a*d-i*h)),e[2]=n*(s*b-u*y)-l*(a*b-i*y)+p*(a*u-i*s),e[3]=-(n*(s*d-u*h)-l*(a*d-i*h)+v*(a*u-i*s)),e[4]=-(o*(h*b-d*y)-f*(s*b-u*y)+m*(s*d-u*h)),e[5]=t*(h*b-d*y)-f*(a*b-i*y)+m*(a*d-i*h),e[6]=-(t*(s*b-u*y)-o*(a*b-i*y)+m*(a*u-i*s)),e[7]=t*(s*d-u*h)-o*(a*d-i*h)+f*(a*u-i*s),e[8]=o*(v*b-d*p)-f*(l*b-u*p)+m*(l*d-u*v),e[9]=-(t*(v*b-d*p)-f*(n*b-i*p)+m*(n*d-i*v)),e[10]=t*(l*b-u*p)-o*(n*b-i*p)+m*(n*u-i*l),e[11]=-(t*(l*d-u*v)-o*(n*d-i*v)+f*(n*u-i*l)),e[12]=-(o*(v*y-h*p)-f*(l*y-s*p)+m*(l*h-s*v)),e[13]=t*(v*y-h*p)-f*(n*y-a*p)+m*(n*h-a*v),e[14]=-(t*(l*y-s*p)-o*(n*y-a*p)+m*(n*s-a*l)),e[15]=t*(l*h-s*v)-o*(n*h-a*v)+f*(n*s-a*l),e}});var nx=te((kle,tx)=>{tx.exports=CH;function CH(e){var r=e[0],t=e[1],n=e[2],a=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],v=e[10],h=e[11],d=e[12],m=e[13],p=e[14],y=e[15],b=r*o-t*i,C=r*l-n*i,x=r*s-a*i,_=t*l-n*o,A=t*s-a*o,k=n*s-a*l,M=u*m-f*d,E=u*p-v*d,z=u*y-h*d,F=f*p-v*m,I=f*y-h*m,W=v*y-h*p;return b*W-C*I+x*F+_*z-A*E+k*M}});var ix=te((Sle,ax)=>{ax.exports=LH;function LH(e,r,t){var n=r[0],a=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],v=r[8],h=r[9],d=r[10],m=r[11],p=r[12],y=r[13],b=r[14],C=r[15],x=t[0],_=t[1],A=t[2],k=t[3];return e[0]=x*n+_*l+A*v+k*p,e[1]=x*a+_*s+A*h+k*y,e[2]=x*i+_*u+A*d+k*b,e[3]=x*o+_*f+A*m+k*C,x=t[4],_=t[5],A=t[6],k=t[7],e[4]=x*n+_*l+A*v+k*p,e[5]=x*a+_*s+A*h+k*y,e[6]=x*i+_*u+A*d+k*b,e[7]=x*o+_*f+A*m+k*C,x=t[8],_=t[9],A=t[10],k=t[11],e[8]=x*n+_*l+A*v+k*p,e[9]=x*a+_*s+A*h+k*y,e[10]=x*i+_*u+A*d+k*b,e[11]=x*o+_*f+A*m+k*C,x=t[12],_=t[13],A=t[14],k=t[15],e[12]=x*n+_*l+A*v+k*p,e[13]=x*a+_*s+A*h+k*y,e[14]=x*i+_*u+A*d+k*b,e[15]=x*o+_*f+A*m+k*C,e}});var lx=te((Cle,ox)=>{ox.exports=qH;function qH(e,r,t){var n=t[0],a=t[1],i=t[2],o,l,s,u,f,v,h,d,m,p,y,b;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*i+r[12],e[13]=r[1]*n+r[5]*a+r[9]*i+r[13],e[14]=r[2]*n+r[6]*a+r[10]*i+r[14],e[15]=r[3]*n+r[7]*a+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],v=r[5],h=r[6],d=r[7],m=r[8],p=r[9],y=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=v,e[6]=h,e[7]=d,e[8]=m,e[9]=p,e[10]=y,e[11]=b,e[12]=o*n+f*a+m*i+r[12],e[13]=l*n+v*a+p*i+r[13],e[14]=s*n+h*a+y*i+r[14],e[15]=u*n+d*a+b*i+r[15]),e}});var ux=te((Lle,sx)=>{sx.exports=DH;function DH(e,r,t){var n=t[0],a=t[1],i=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var cx=te((qle,fx)=>{fx.exports=EH;function EH(e,r,t,n){var a=n[0],i=n[1],o=n[2],l=Math.sqrt(a*a+i*i+o*o),s,u,f,v,h,d,m,p,y,b,C,x,_,A,k,M,E,z,F,I,W,B,X,V;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,v=r[0],h=r[1],d=r[2],m=r[3],p=r[4],y=r[5],b=r[6],C=r[7],x=r[8],_=r[9],A=r[10],k=r[11],M=a*a*f+u,E=i*a*f+o*s,z=o*a*f-i*s,F=a*i*f-o*s,I=i*i*f+u,W=o*i*f+a*s,B=a*o*f+i*s,X=i*o*f-a*s,V=o*o*f+u,e[0]=v*M+p*E+x*z,e[1]=h*M+y*E+_*z,e[2]=d*M+b*E+A*z,e[3]=m*M+C*E+k*z,e[4]=v*F+p*I+x*W,e[5]=h*F+y*I+_*W,e[6]=d*F+b*I+A*W,e[7]=m*F+C*I+k*W,e[8]=v*B+p*X+x*V,e[9]=h*B+y*X+_*V,e[10]=d*B+b*X+A*V,e[11]=m*B+C*X+k*V,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var hx=te((Dle,vx)=>{vx.exports=PH;function PH(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*a+u*n,e[5]=o*a+f*n,e[6]=l*a+v*n,e[7]=s*a+h*n,e[8]=u*a-i*n,e[9]=f*a-o*n,e[10]=v*a-l*n,e[11]=h*a-s*n,e}});var px=te((Ele,dx)=>{dx.exports=RH;function RH(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*a-u*n,e[1]=o*a-f*n,e[2]=l*a-v*n,e[3]=s*a-h*n,e[8]=i*n+u*a,e[9]=o*n+f*a,e[10]=l*n+v*a,e[11]=s*n+h*a,e}});var mx=te((Ple,gx)=>{gx.exports=zH;function zH(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],v=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*a+u*n,e[1]=o*a+f*n,e[2]=l*a+v*n,e[3]=s*a+h*n,e[4]=u*a-i*n,e[5]=f*a-o*n,e[6]=v*a-l*n,e[7]=h*a-s*n,e}});var bx=te((Rle,yx)=>{yx.exports=NH;function NH(e,r,t){var n,a,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,n=Math.sin(r),a=Math.cos(r),i=1-a,e[0]=o*o*i+a,e[1]=l*o*i+s*n,e[2]=s*o*i-l*n,e[3]=0,e[4]=o*l*i-s*n,e[5]=l*l*i+a,e[6]=s*l*i+o*n,e[7]=0,e[8]=o*s*i+l*n,e[9]=l*s*i-o*n,e[10]=s*s*i+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var xx=te((zle,_x)=>{_x.exports=FH;function FH(e,r,t){var n=r[0],a=r[1],i=r[2],o=r[3],l=n+n,s=a+a,u=i+i,f=n*l,v=n*s,h=n*u,d=a*s,m=a*u,p=i*u,y=o*l,b=o*s,C=o*u;return e[0]=1-(d+p),e[1]=v+C,e[2]=h-b,e[3]=0,e[4]=v-C,e[5]=1-(f+p),e[6]=m+y,e[7]=0,e[8]=h+b,e[9]=m-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var Mx=te((Nle,wx)=>{wx.exports=IH;function IH(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Tx=te((Fle,Ax)=>{Ax.exports=HH;function HH(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Sx=te((Ile,kx)=>{kx.exports=BH;function BH(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Lx=te((Hle,Cx)=>{Cx.exports=OH;function OH(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Dx=te((Ble,qx)=>{qx.exports=UH;function UH(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Px=te((Ole,Ex)=>{Ex.exports=YH;function YH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=t+t,l=n+n,s=a+a,u=t*o,f=n*o,v=n*l,h=a*o,d=a*l,m=a*s,p=i*o,y=i*l,b=i*s;return e[0]=1-v-m,e[1]=f+b,e[2]=h-y,e[3]=0,e[4]=f-b,e[5]=1-u-m,e[6]=d+p,e[7]=0,e[8]=h+y,e[9]=d-p,e[10]=1-u-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var zx=te((Ule,Rx)=>{Rx.exports=GH;function GH(e,r,t,n,a,i,o){var l=1/(t-r),s=1/(a-n),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var Fx=te((Yle,Nx)=>{Nx.exports=VH;function VH(e,r,t,n,a){var i=1/Math.tan(r/2),o=1/(n-a);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*o,e[15]=0,e}});var Hx=te((Gle,Ix)=>{Ix.exports=WH;function WH(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(a+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(a-i)*u*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var Ox=te((Vle,Bx)=>{Bx.exports=ZH;function ZH(e,r,t,n,a,i,o){var l=1/(r-t),s=1/(n-a),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*s,e[14]=(o+i)*u,e[15]=1,e}});var Yx=te((Wle,Ux)=>{var XH=Iy();Ux.exports=jH;function jH(e,r,t,n){var a,i,o,l,s,u,f,v,h,d,m=r[0],p=r[1],y=r[2],b=n[0],C=n[1],x=n[2],_=t[0],A=t[1],k=t[2];return Math.abs(m-_)<1e-6&&Math.abs(p-A)<1e-6&&Math.abs(y-k)<1e-6?XH(e):(f=m-_,v=p-A,h=y-k,d=1/Math.sqrt(f*f+v*v+h*h),f*=d,v*=d,h*=d,a=C*h-x*v,i=x*f-b*h,o=b*v-C*f,d=Math.sqrt(a*a+i*i+o*o),d?(d=1/d,a*=d,i*=d,o*=d):(a=0,i=0,o=0),l=v*o-h*i,s=h*a-f*o,u=f*i-v*a,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=v,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(a*m+i*p+o*y),e[13]=-(l*m+s*p+u*y),e[14]=-(f*m+v*p+h*y),e[15]=1,e)}});var Vx=te((Zle,Gx)=>{Gx.exports=JH;function JH(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Hy=te((Xle,Wx)=>{Wx.exports={create:G6(),clone:W6(),copy:X6(),identity:Iy(),transpose:$6(),invert:Q6(),adjoint:rx(),determinant:nx(),multiply:ix(),translate:lx(),scale:ux(),rotate:cx(),rotateX:hx(),rotateY:px(),rotateZ:mx(),fromRotation:bx(),fromRotationTranslation:xx(),fromScaling:Mx(),fromTranslation:Tx(),fromXRotation:Sx(),fromYRotation:Lx(),fromZRotation:Dx(),fromQuat:Px(),frustum:zx(),perspective:Fx(),perspectiveFromFieldOfView:Hx(),ortho:Ox(),lookAt:Yx(),str:Vx()}});var yd=te(jn=>{"use strict";var $H=Hy();jn.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var KH=kt(),Zx=Ru(),QH=yd(),eB=Hy();function rB(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function tB(e){var r=KH.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function Xx(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function nB(e,r){jx("global",e,r)}function jx(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var i=a.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):Zx.warn("addStyleRule failed"):Zx.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function aB(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&Xx(t)}function iB(e,r,t,n,a,i){var o=n.split(":"),l=a.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),u.setAttribute(s,!0))})}function oB(e){var r=$x(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=Jx(n);if(a){var i=QH.convertCssMatrix(a);t=eB.multiply(t,t,i)}}),t}function Jx(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function $x(e){for(var r=[];lB(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function lB(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function sB(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}Kx.exports={getGraphDiv:rB,isPlotDiv:tB,removeElement:Xx,addStyleRule:nB,addRelatedStyleRule:jx,deleteRelatedStyleRule:aB,setStyleOnHover:iB,getFullTransformMatrix:oB,getElementTransformMatrix:Jx,getElementAndAncestors:$x,equalDomRects:sB}});var s1=te(($le,Qx)=>{"use strict";Qx.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var _o=te((Kle,o7)=>{"use strict";var r7=la().extendFlat,uB=Gs(),t7={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},n7={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},fB=t7.flags.slice().concat(["fullReplot"]),cB=n7.flags.slice().concat("layoutReplot");o7.exports={traces:t7,layout:n7,traceFlags:function(){return e7(fB)},layoutFlags:function(){return e7(cB)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";By.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};By.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Oy=te((ese,l7)=>{"use strict";l7.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Vs=te(u1=>{"use strict";var s7=Oy(),vB=s7.FORMAT_LINK,hB=s7.DATE_FORMAT_LINK;function dB(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,vB,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,hB,"for details on the date formatting syntax."].join(" ")}u1.templateFormatStringDescription=dB;function Uy(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var n=[],a=0;a{"use strict";function zu(e,r){return r?r.d2l(e):e}function u7(e,r){return r?r.l2d(e):e}function pB(e){return e.x0}function gB(e){return e.x1}function mB(e){return e.y0}function yB(e){return e.y1}function f7(e){return e.x0shift||0}function c7(e){return e.x1shift||0}function v7(e){return e.y0shift||0}function h7(e){return e.y1shift||0}function bd(e,r){return zu(e.x1,r)+c7(e)-zu(e.x0,r)-f7(e)}function _d(e,r,t){return zu(e.y1,t)+h7(e)-zu(e.y0,t)-v7(e)}function bB(e,r){return Math.abs(bd(e,r))}function _B(e,r,t){return Math.abs(_d(e,r,t))}function xB(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(bd(e,r),2)+Math.pow(_d(e,r,t),2))}function wB(e,r){return u7((zu(e.x1,r)+c7(e)+zu(e.x0,r)+f7(e))/2,r)}function MB(e,r,t){return u7((zu(e.y1,t)+h7(e)+zu(e.y0,t)+v7(e))/2,t)}function AB(e,r,t){return e.type!=="line"?void 0:_d(e,r,t)/bd(e,r)}d7.exports={x0:pB,x1:gB,y0:mB,y1:yB,slope:AB,dx:bd,dy:_d,width:bB,height:_B,length:xB,xcenter:wB,ycenter:MB}});var m7=te((nse,g7)=>{"use strict";var TB=_o().overrideAll,Qf=bo(),p7=$a(),kB=Kl().dash,Nu=la().extendFlat,SB=Vs().shapeTexttemplateAttrs,CB=xd();g7.exports=TB({newshape:{visible:Nu({},Qf.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Nu({},Qf.legend,{}),legendgroup:Nu({},Qf.legendgroup,{}),legendgrouptitle:{text:Nu({},Qf.legendgrouptitle.text,{}),font:p7({})},legendrank:Nu({},Qf.legendrank,{}),legendwidth:Nu({},Qf.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Nu({},kB,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Nu({},Qf.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:SB({newshape:!0},{keys:Object.keys(CB)}),font:p7({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var b7=te((ase,y7)=>{"use strict";var LB=Kl().dash,qB=la().extendFlat;y7.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:qB({},LB,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var wd=te((ise,_7)=>{"use strict";_7.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var A0=te((ose,A7)=>{"use strict";var Yy=$a(),DB=s1(),Md=vl(),x7=m7(),w7=b7(),EB=wd(),M7=la().extendFlat,Ad=Yy({editType:"calc"});Ad.family.dflt='"Open Sans", verdana, arial, sans-serif';Ad.size.dflt=12;Ad.color.dflt=Md.defaultLine;A7.exports={font:Ad,title:{text:{valType:"string",editType:"layoutstyle"},font:Yy({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Yy({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:M7(EB({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Md.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Md.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Md.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:x7.newshape,activeshape:x7.activeshape,newselection:w7.newselection,activeselection:w7.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:M7({},DB.transition,{editType:"none"})}});var T7=te(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var dt=te(qt=>{"use strict";var T0=Ru(),k7=md(),S7=Fy(),PB=Gs(),RB=l1().addStyleRule,C7=la(),zB=bo(),NB=A0(),FB=C7.extendFlat,Gy=C7.extendDeepAll;qt.modules={};qt.allCategories={};qt.allTypes=[];qt.subplotsRegistry={};qt.componentsRegistry={};qt.layoutArrayContainers=[];qt.layoutArrayRegexes=[];qt.traceLayoutAttributes={};qt.localeRegistry={};qt.apiMethodRegistry={};qt.collectableSubplotTypes=null;qt.register=function(r){if(qt.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var YB=m0().timeFormat,H7=Ut(),Vy=Ru(),Iu=b0().mod,C0=Rn(),xo=C0.BADNUM,Di=C0.ONEDAY,f1=C0.ONEHOUR,Fu=C0.ONEMIN,S0=C0.ONESEC,c1=C0.EPOCHJD,Ws=dt(),P7=m0().utcFormat,GB=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,VB=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,R7=new Date().getFullYear()-70;function Zs(e){return e&&Ws.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Jn.dateTick0=function(e,r){var t=WB(e,!!r);if(r<2)return t;var n=Jn.dateTime2ms(t,e);return n+=Di*(r-1),Jn.ms2DateTime(n,0,e)};function WB(e,r){return Zs(e)?r?Ws.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ws.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Jn.dfltRange=function(e){return Zs(e)?Ws.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Jn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var kd,Sd;Jn.dateTime2ms=function(e,r){if(Jn.isJSDate(e)){var t=e.getTimezoneOffset()*Fu,n=(e.getUTCMinutes()-e.getMinutes())*Fu+(e.getUTCSeconds()-e.getSeconds())*S0+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*Fu;t=t-a/2+Iu(n-t+a/2,a)}return e=Number(e)-t,e>=kd&&e<=Sd?e:xo}if(typeof e!="string"&&typeof e!="number")return xo;e=String(e);var i=Zs(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.substr(1),r="");var l=i&&r.substr(0,7)==="chinese",s=e.match(l?VB:GB);if(!s)return xo;var u=s[1],f=s[3]||"1",v=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return xo;u=Number(u);var p;try{var y=Ws.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),p=y.newDate(u,y.toMonthIndex(u,f,b),v)}else p=y.newDate(u,Number(f),v)}catch(x){return xo}return p?(p.toJD()-c1)*Di+h*f1+d*Fu+m*S0:xo}u.length===2?u=(Number(u)+2e3-R7)%100+R7:u=Number(u),f-=1;var C=new Date(Date.UTC(2e3,f,v,h,d));return C.setUTCFullYear(u),C.getUTCMonth()!==f||C.getUTCDate()!==v?xo:C.getTime()+m*S0};kd=Jn.MIN_MS=Jn.dateTime2ms("-9999");Sd=Jn.MAX_MS=Jn.dateTime2ms("9999-12-31 23:59:59.9999");Jn.isDateTime=function(e,r){return Jn.dateTime2ms(e,r)!==xo};function k0(e,r){return String(e+Math.pow(10,r)).substr(1)}var Td=90*Di,z7=3*f1,N7=5*Fu;Jn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=kd&&e<=Sd))return xo;r||(r=0);var n=Math.floor(Iu(e+.05,1)*10),a=Math.round(e-n/10),i,o,l,s,u,f;if(Zs(t)){var v=Math.floor(a/Di)+c1,h=Math.floor(Iu(e,Di));try{i=Ws.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=P7("G%Y-%m-%d")(new Date(a))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=r=kd+Di&&e<=Sd-Di))return xo;var r=Math.floor(Iu(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=YB("%Y-%m-%d")(t),a=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return B7(n,a,i,o,l)};function B7(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+k0(r,2)+":"+k0(t,2),(n||a)&&(e+=":"+k0(n,2),a))){for(var i=4;a%10===0;)i-=1,a/=10;e+="."+k0(a,i)}return e}Jn.cleanDate=function(e,r,t){if(e===xo)return r;if(Jn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Zs(t))return Vy.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Jn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Jn.isDateTime(e,t))return Vy.error("unrecognized date",e),r;return e};var ZB=/%\d?f/g,XB=/%h/g,jB={1:"1",2:"1",3:"2",4:"2"};function F7(e,r,t,n){e=e.replace(ZB,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(XB,function(){return jB[t("%q")(a)]}),Zs(n))try{e=Ws.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(i){return"Invalid"}return t(e)(a)}var JB=[59,59.9,59.99,59.999,59.9999];function $B(e,r){var t=Iu(e+.05,Di),n=k0(Math.floor(t/f1),2)+":"+k0(Iu(Math.floor(t/Fu),60),2);if(r!=="M"){H7(r)||(r=0);var a=Math.min(Iu(e/S0,60),JB[r]),i=(100+a).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+i}return n}Jn.formatDate=function(e,r,t,n,a,i){if(a=Zs(a)&&a,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return $B(e,t)+` +`+F7(i.dayMonthYear,e,n,a);return F7(r,e,n,a)};var I7=3*Di;Jn.incrementMonth=function(e,r,t){t=Zs(t)&&t;var n=Iu(e,Di);if(e=Math.round(e-n),t)try{var a=Math.round(e/Di)+c1,i=Ws.getComponentMethod("calendars","getCal")(t),o=i.fromJD(a);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-c1)*Di+n}catch(s){Vy.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+I7);return l.setUTCMonth(l.getUTCMonth()+r)+n-I7};Jn.findExactDates=function(e,r){for(var t=0,n=0,a=0,i=0,o,l,s=Zs(r)&&Ws.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";U7.exports=function(r){return r}});var Zy=te(Xs=>{"use strict";var KB=Ut(),QB=Ru(),eO=Cd(),rO=Rn().BADNUM,Wy=1e-9;Xs.findBin=function(e,r,t){if(KB(r.start))return t?Math.ceil((e-r.start)/r.size-Wy)-1:Math.floor((e-r.start)/r.size+Wy);var n=0,a=r.length,i=0,o=a>1?(r[a-1]-r[0])/(a-1):1,l,s;for(o>=0?s=t?tO:nO:s=t?iO:aO,e+=o*Wy*(t?-1:1)*(o>=0?1:-1);n90&&QB.log("Long binary search..."),n-1};function tO(e,r){return er}function iO(e,r){return e>=r}Xs.sorterAsc=function(e,r){return e-r};Xs.sorterDes=function(e,r){return r-e};Xs.distinctVals=function(e){var r=e.slice();r.sort(Xs.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===rO;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>a&&(n=Math.min(n,u),i.push(s),o=s)}return{vals:i,minDiff:n}};Xs.roundUp=function(e,r,t){for(var n=0,a=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;n0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};Xs.findIndexOfMin=function(e,r){r=r||eO;for(var t=1/0,n,a=0;a{"use strict";Y7.exports=function(r){return Object.keys(r).sort()}});var G7=te($n=>{"use strict";var v1=Ut(),oO=ji().isArrayOrTypedArray;$n.aggNums=function(e,r,t,n){var a,i;if((!n||n>t.length)&&(n=t.length),v1(r)||(r=!1),oO(t[0])){for(i=new Array(n),a=0;ae.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var j7=te((pse,X7)=>{"use strict";var V7=b0(),Xy=V7.mod,lO=V7.modHalf,h1=Math.PI,Hu=2*h1;function sO(e){return e/180*h1}function uO(e){return e/h1*180}function jy(e){return Math.abs(e[1]-e[0])>Hu-1e-14}function W7(e,r){return lO(r-e,Hu)}function fO(e,r){return Math.abs(W7(e,r))}function Z7(e,r){if(jy(r))return!0;var t,n;r[0]n&&(n+=Hu);var a=Xy(e,Hu),i=a+Hu;return a>=t&&a<=n||i>=t&&i<=n}function cO(e,r,t,n){if(!Z7(r,n))return!1;var a,i;return t[0]=a&&e<=i}function Jy(e,r,t,n,a,i,o){a=a||0,i=i||0;var l=jy([t,n]),s,u,f,v,h;l?(s=0,u=h1,f=Hu):t{"use strict";ec.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};ec.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};ec.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};ec.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};ec.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};ec.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var Q7=te(rc=>{"use strict";var $y=b0().mod;rc.segmentsIntersect=K7;function K7(e,r,t,n,a,i,o,l){var s=t-e,u=a-e,f=o-a,v=n-r,h=i-r,d=l-i,m=s*d-f*v;if(m===0)return null;var p=(u*d-f*h)/m,y=(u*v-s*h)/m;return y<0||y>1||p<0||p>1?null:{x:e+s*p,y:r+v*p}}rc.segmentDistance=function(r,t,n,a,i,o,l,s){if(K7(r,t,n,a,i,o,l,s))return 0;var u=n-r,f=a-t,v=l-i,h=s-o,d=u*u+f*f,m=v*v+h*h,p=Math.min(qd(u,f,d,i-r,o-t),qd(u,f,d,l-r,s-t),qd(v,h,m,r-i,t-o),qd(v,h,m,n-i,a-o));return Math.sqrt(p)};function qd(e,r,t,n,a){var i=n*e+a*r;if(i<0)return n*n+a*a;if(i>t){var o=n-e,l=a-r;return o*o+l*l}else{var s=n*r-a*e;return s*s/t}}var Dd,Ky,$7;rc.getTextLocation=function(r,t,n,a){if((r!==Ky||a!==$7)&&(Dd={},Ky=r,$7=a),Dd[n])return Dd[n];var i=r.getPointAtLength($y(n-a/2,t)),o=r.getPointAtLength($y(n+a/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength($y(n,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,v={x:u,y:f,theta:l};return Dd[n]=v,v};rc.clearLocationCache=function(){Ky=null};rc.getVisibleSegment=function(r,t,n){var a=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,v,h;function d(p){var y=r.getPointAtLength(p);p===0?v=y:p===u&&(h=y);var b=y.xi?y.x-i:0,C=y.yl?y.y-l:0;return Math.sqrt(b*b+C*C)}for(var m=d(s);m;){if(s+=m+n,s>f)return;m=d(s)}for(m=d(f);m;){if(f-=m+n,s>f)return;m=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(v.x-h.x)<.1&&Math.abs(v.y-h.y)<.1}};rc.findPointOnPath=function(r,t,n,a){a=a||{};for(var i=a.pathLength||r.getTotalLength(),o=a.tolerance||.001,l=a.iterationLimit||30,s=r.getPointAtLength(0)[n]>r.getPointAtLength(i)[n]?-1:1,u=0,f=0,v=i,h,d,m;u0?v=h:f=h,u++}return d}});var Ed=te(d1=>{"use strict";var js={};d1.throttle=function(r,t,n){var a=js[r],i=Date.now();if(!a){for(var o in js)js[o].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};d1.done=function(e){var r=js[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};d1.clear=function(e){if(e)ew(js[e]),delete js[e];else for(var r in js)d1.clear(r)};function ew(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var tw=te((bse,rw)=>{"use strict";rw.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var nw=te((_se,Pd)=>{"use strict";Pd.exports=Qy;Pd.exports.isMobile=Qy;Pd.exports.default=Qy;var pO=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,gO=/CrOS/,mO=/android|ipad|playbook|silk/i;function Qy(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=pO.test(r)&&!gO.test(r)||!!e.tablet&&mO.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var iw=te((xse,aw)=>{"use strict";var yO=Ut(),bO=nw();aw.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=_O(),typeof t!="string")return!0;var n=bO({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),i=1;i-1;l--){var s=a[l];if(s.substr(0,8)==="Version/"){var u=s.substr(8).split(".")[0];if(yO(u)&&(u=+u),u>=13)return!0}}}return n};function _O(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var lw=te((wse,ow)=>{"use strict";var xO=kt();ow.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(o){o[0][i]=xO.select(this)}),a}});var uw=te((Mse,sw)=>{"use strict";var wO=dt();sw.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[n]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=wO.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return t}});var cw=te((Ase,fw)=>{"use strict";fw.exports=function(r){for(var t={},n=[],a=0,i=0;i{"use strict";vw.exports=function(r){for(var t=TO(r)?AO:MO,n=[],a=0;a{"use strict";dw.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,i=String(a).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(a).toPrecision(12);s.indexOf("e+")===-1&&(a=+s)}}return a}});var mw=te((Sse,gw)=>{"use strict";var kO=Ut(),SO=Rn().BADNUM,CO=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;gw.exports=function(r){return typeof r=="string"&&(r=r.replace(CO,"")),kO(r)?Number(r):SO}});var gr=te((Cse,qw)=>{"use strict";var p1=kt(),LO=m0().utcFormat,qO=My().format,Mw=Ut(),Aw=Rn(),Tw=Aw.FP_SAFE,DO=-Tw,yw=Aw.BADNUM,Pe=qw.exports={};Pe.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var bw={};Pe.warnBadFormat=function(e){var r=String(e);bw[r]||(bw[r]=1,Pe.warn('encountered bad format: "'+r+'"'))};Pe.noFormat=function(e){return String(e)};Pe.numberFormat=function(e){var r;try{r=qO(Pe.adjustFormat(e))}catch(t){return Pe.warnBadFormat(e),Pe.noFormat}return r};Pe.nestedProperty=Kv();Pe.keyedContainer=u6();Pe.relativeAttr=c6();Pe.isPlainObject=Gs();Pe.toLogRange=fd();Pe.relinkPrivateKeys=p6();var Bu=ji();Pe.isArrayBuffer=Bu.isArrayBuffer;Pe.isTypedArray=Bu.isTypedArray;Pe.isArrayOrTypedArray=Bu.isArrayOrTypedArray;Pe.isArray1D=Bu.isArray1D;Pe.ensureArray=Bu.ensureArray;Pe.concat=Bu.concat;Pe.maxRowLength=Bu.maxRowLength;Pe.minRowLength=Bu.minRowLength;var kw=b0();Pe.mod=kw.mod;Pe.modHalf=kw.modHalf;var Ou=R6();Pe.valObjectMeta=Ou.valObjectMeta;Pe.coerce=Ou.coerce;Pe.coerce2=Ou.coerce2;Pe.coerceFont=Ou.coerceFont;Pe.coercePattern=Ou.coercePattern;Pe.coerceHoverinfo=Ou.coerceHoverinfo;Pe.coerceSelectionMarkerOpacity=Ou.coerceSelectionMarkerOpacity;Pe.validate=Ou.validate;var Ji=O7();Pe.dateTime2ms=Ji.dateTime2ms;Pe.isDateTime=Ji.isDateTime;Pe.ms2DateTime=Ji.ms2DateTime;Pe.ms2DateTimeLocal=Ji.ms2DateTimeLocal;Pe.cleanDate=Ji.cleanDate;Pe.isJSDate=Ji.isJSDate;Pe.formatDate=Ji.formatDate;Pe.incrementMonth=Ji.incrementMonth;Pe.dateTick0=Ji.dateTick0;Pe.dfltRange=Ji.dfltRange;Pe.findExactDates=Ji.findExactDates;Pe.MIN_MS=Ji.MIN_MS;Pe.MAX_MS=Ji.MAX_MS;var tc=Zy();Pe.findBin=tc.findBin;Pe.sorterAsc=tc.sorterAsc;Pe.sorterDes=tc.sorterDes;Pe.distinctVals=tc.distinctVals;Pe.roundUp=tc.roundUp;Pe.sort=tc.sort;Pe.findIndexOfMin=tc.findIndexOfMin;Pe.sortObjectKeys=Ld();var Js=G7();Pe.aggNums=Js.aggNums;Pe.len=Js.len;Pe.mean=Js.mean;Pe.geometricMean=Js.geometricMean;Pe.median=Js.median;Pe.midRange=Js.midRange;Pe.variance=Js.variance;Pe.stdev=Js.stdev;Pe.interp=Js.interp;var hl=yd();Pe.init2dArray=hl.init2dArray;Pe.transposeRagged=hl.transposeRagged;Pe.dot=hl.dot;Pe.translationMatrix=hl.translationMatrix;Pe.rotationMatrix=hl.rotationMatrix;Pe.rotationXYMatrix=hl.rotationXYMatrix;Pe.apply3DTransform=hl.apply3DTransform;Pe.apply2DTransform=hl.apply2DTransform;Pe.apply2DTransform2=hl.apply2DTransform2;Pe.convertCssMatrix=hl.convertCssMatrix;Pe.inverseTransformMatrix=hl.inverseTransformMatrix;var Ql=j7();Pe.deg2rad=Ql.deg2rad;Pe.rad2deg=Ql.rad2deg;Pe.angleDelta=Ql.angleDelta;Pe.angleDist=Ql.angleDist;Pe.isFullCircle=Ql.isFullCircle;Pe.isAngleInsideSector=Ql.isAngleInsideSector;Pe.isPtInsideSector=Ql.isPtInsideSector;Pe.pathArc=Ql.pathArc;Pe.pathSector=Ql.pathSector;Pe.pathAnnulus=Ql.pathAnnulus;var q0=J7();Pe.isLeftAnchor=q0.isLeftAnchor;Pe.isCenterAnchor=q0.isCenterAnchor;Pe.isRightAnchor=q0.isRightAnchor;Pe.isTopAnchor=q0.isTopAnchor;Pe.isMiddleAnchor=q0.isMiddleAnchor;Pe.isBottomAnchor=q0.isBottomAnchor;var D0=Q7();Pe.segmentsIntersect=D0.segmentsIntersect;Pe.segmentDistance=D0.segmentDistance;Pe.getTextLocation=D0.getTextLocation;Pe.clearLocationCache=D0.clearLocationCache;Pe.getVisibleSegment=D0.getVisibleSegment;Pe.findPointOnPath=D0.findPointOnPath;var Nd=la();Pe.extendFlat=Nd.extendFlat;Pe.extendDeep=Nd.extendDeep;Pe.extendDeepAll=Nd.extendDeepAll;Pe.extendDeepNoArrays=Nd.extendDeepNoArrays;var e2=Ru();Pe.log=e2.log;Pe.warn=e2.warn;Pe.error=e2.error;var EO=x0();Pe.counterRegex=EO.counter;var r2=Ed();Pe.throttle=r2.throttle;Pe.throttleDone=r2.done;Pe.clearThrottle=r2.clear;var dl=l1();Pe.getGraphDiv=dl.getGraphDiv;Pe.isPlotDiv=dl.isPlotDiv;Pe.removeElement=dl.removeElement;Pe.addStyleRule=dl.addStyleRule;Pe.addRelatedStyleRule=dl.addRelatedStyleRule;Pe.deleteRelatedStyleRule=dl.deleteRelatedStyleRule;Pe.setStyleOnHover=dl.setStyleOnHover;Pe.getFullTransformMatrix=dl.getFullTransformMatrix;Pe.getElementTransformMatrix=dl.getElementTransformMatrix;Pe.getElementAndAncestors=dl.getElementAndAncestors;Pe.equalDomRects=dl.equalDomRects;Pe.clearResponsive=tw();Pe.preserveDrawingBuffer=iw();Pe.makeTraceGroups=lw();Pe._=uw();Pe.notifier=Ry();Pe.filterUnique=cw();Pe.filterVisible=hw();Pe.pushUnique=Fy();Pe.increment=pw();Pe.cleanNumber=mw();Pe.ensureNumber=function(r){return Mw(r)?(r=Number(r),r>Tw||r=r?!1:Mw(e)&&e>=0&&e%1===0};Pe.noop=md();Pe.identity=Cd();Pe.repeat=function(e,r){for(var t=new Array(r),n=0;nt?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Pe.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};Pe.simpleMap=function(e,r,t,n,a){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?a>10?(Pe.warn("randstr failed uniqueness"),o):e(r,t,n,(a||0)+1):o};Pe.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};Pe.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,i=new Array(a),o=new Array(t),l,s,u,f;for(l=0;l=n&&(u-=n*Math.floor(u/n)),u<0?u=-1-u:u>=t&&(u=n-1-u),f+=e[u]*i[s];o[l]=f}return o};Pe.syncOrAsync=function(e,r,t){var n,a;function i(){return Pe.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(i);return t&&t(r)};Pe.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};Pe.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,i,o;for(i=0;i0?a:0})};Pe.fillArray=function(e,r,t,n){if(n=n||Pe.identity,Pe.isArrayOrTypedArray(e))for(var a=0;azO.test(window.navigator.userAgent);var NO=/Firefox\/(\d+)\.\d+/;Pe.getFirefoxVersion=function(){var e=NO.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Pe.isD3Selection=function(e){return e instanceof p1.selection};Pe.ensureSingle=function(e,r,t,n){var a=e.select(r+(t?"."+t:""));if(a.size())return a;var i=e.append(r);return t&&i.classed(t,!0),n&&i.call(n),i};Pe.ensureSingleById=function(e,r,t,n){var a=e.select(r+"#"+t);if(a.size())return a;var i=e.append(r).attr("id",t);return n&&i.call(n),i};Pe.objectFromPath=function(e,r){for(var t=e.split("."),n,a=n={},i=0;i1?a+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+i+"$2");return l+s};Pe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Lw=/^\w*$/;Pe.templateString=function(e,r){var t={};return e.replace(Pe.TEMPLATE_STRING_REGEX,function(n,a){var i;return Lw.test(a)?i=r[a]:(t[a]=t[a]||Pe.nestedProperty(r,a).get,i=t[a](!0)),i!==void 0?i:""})};var HO={max:10,count:0,name:"hovertemplate"};Pe.hovertemplateString=function(){return t2.apply(HO,arguments)};var BO={max:10,count:0,name:"texttemplate"};Pe.texttemplateString=function(){return t2.apply(BO,arguments)};var OO=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function UO(e){var r=e.match(OO);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var YO={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Pe.texttemplateStringForShapes=function(){return t2.apply(YO,arguments)};var _w=/^[:|\|]/;function t2(e,r,t){var n=this,a=arguments;return r||(r={}),e.replace(Pe.TEMPLATE_STRING_REGEX,function(i,o,l){var s=o==="xother"||o==="yother",u=o==="_xother"||o==="_yother",f=o==="_xother_"||o==="_yother_",v=o==="xother_"||o==="yother_",h=s||u||v||f,d=o;(u||f)&&(d=d.substring(1)),(v||f)&&(d=d.substring(0,d.length-1));var m=null,p=null;if(n.parseMultDiv){var y=UO(d);d=y.key,m=y.op,p=y.number}var b;if(h){if(b=r[d],b===void 0)return""}else{var C,x;for(x=3;x=zd&&o<=xw,u=l>=zd&&l<=xw;if(s&&(n=10*n+o-zd),u&&(a=10*a+l-zd),!s||!u){if(n!==a)return n-a;if(o!==l)return o-l}}return a-n};var L0=2e9;Pe.seedPseudoRandom=function(){L0=2e9};Pe.pseudoRandom=function(){var e=L0;return L0=(69069*L0+1)%4294967296,Math.abs(L0-e)<429496729?Pe.pseudoRandom():L0/4294967296};Pe.fillText=function(e,r,t){var n=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},a=Pe.extractOption(e,r,"htx","hovertext");if(Pe.isValidTextValue(a))return n(a);var i=Pe.extractOption(e,r,"tx","text");if(Pe.isValidTextValue(i))return n(i)};Pe.isValidTextValue=function(e){return e||e===0};Pe.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n1&&(u=1):u=0,Pe.strTranslate(a-u*(t+o),i-u*(n+l))+Pe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+n)+")":"")};Pe.setTransormAndDisplay=function(e,r){e.attr("transform",Pe.getTextTransform(r)),e.style("display",r.scale?null:"none")};Pe.ensureUniformFontSize=function(e,r){var t=Pe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Pe.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};Pe.bigFont=function(e){return Math.round(1.2*e)};var ww=Pe.getFirefoxVersion(),GO=ww!==null&&ww<86;Pe.getPositionFromD3Event=function(){return GO?[p1.event.layerX,p1.event.layerY]:[p1.event.offsetX,p1.event.offsetY]}});var Pw=te(()=>{"use strict";var VO=gr(),Dw={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(n2 in Dw)Ew=n2.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),VO.addStyleRule(Ew,Dw[n2]);var Ew,n2});var a2=te((Dse,Rw)=>{Rw.exports=!0});var o2=te((Ese,zw)=>{"use strict";var WO=a2(),i2;typeof window.matchMedia=="function"?i2=!window.matchMedia("(hover: none)").matches:i2=WO;zw.exports=i2});var Hd=te((Pse,l2)=>{"use strict";var E0=typeof Reflect=="object"?Reflect:null,Nw=E0&&typeof E0.apply=="function"?E0.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},Fd;E0&&typeof E0.ownKeys=="function"?Fd=E0.ownKeys:Object.getOwnPropertySymbols?Fd=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Fd=function(r){return Object.getOwnPropertyNames(r)};function ZO(e){console&&console.warn&&console.warn(e)}var Iw=Number.isNaN||function(r){return r!==r};function kn(){kn.init.call(this)}l2.exports=kn;l2.exports.once=$O;kn.EventEmitter=kn;kn.prototype._events=void 0;kn.prototype._eventsCount=0;kn.prototype._maxListeners=void 0;var Fw=10;function Id(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(kn,"defaultMaxListeners",{enumerable:!0,get:function(){return Fw},set:function(e){if(typeof e!="number"||e<0||Iw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Fw=e}});kn.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};kn.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||Iw(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function Hw(e){return e._maxListeners===void 0?kn.defaultMaxListeners:e._maxListeners}kn.prototype.getMaxListeners=function(){return Hw(this)};kn.prototype.emit=function(r){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")Nw(s,this,t);else for(var u=s.length,f=Gw(s,u),n=0;n0&&o.length>a&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,ZO(l)}return e}kn.prototype.addListener=function(r,t){return Bw(this,r,t,!1)};kn.prototype.on=kn.prototype.addListener;kn.prototype.prependListener=function(r,t){return Bw(this,r,t,!0)};function XO(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Ow(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=XO.bind(n);return a.listener=t,n.wrapFn=a,a}kn.prototype.once=function(r,t){return Id(t),this.on(r,Ow(this,r,t)),this};kn.prototype.prependOnceListener=function(r,t){return Id(t),this.prependListener(r,Ow(this,r,t)),this};kn.prototype.removeListener=function(r,t){var n,a,i,o,l;if(Id(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){l=n[o].listener,i=o;break}if(i<0)return this;i===0?n.shift():jO(n,i),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};kn.prototype.off=kn.prototype.removeListener;kn.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var i=Object.keys(n),o;for(a=0;a=0;a--)this.removeListener(r,t[a]);return this};function Uw(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?JO(a):Gw(a,a.length)}kn.prototype.listeners=function(r){return Uw(this,r,!0)};kn.prototype.rawListeners=function(r){return Uw(this,r,!1)};kn.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):Yw.call(e,r)};kn.prototype.listenerCount=Yw;function Yw(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}kn.prototype.eventNames=function(){return this._eventsCount>0?Fd(this._events):[]};function Gw(e,r){for(var t=new Array(r),n=0;n{"use strict";var s2=Hd().EventEmitter,QO={init:function(e){if(e._ev instanceof s2)return e;var r=new s2,t=new s2;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(n,a){r.emit(n,a),t.emit(n,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var i=a._events[r];if(!i)return;function o(s){if(s.listener){if(a.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(a,[t])}else return s.apply(a,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var Zw=gr(),eU=Kf().dfltConfig;function rU(e,r){for(var t=[],n,a=0;aeU.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};$s.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};$s.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};$s.undo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n{"use strict";Jw.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var z0=te(sa=>{"use strict";var wo=dt(),m1=gr(),Od=bo(),f2=A0(),tU=u2(),nU=s1(),aU=Kf().configAttributes,$w=_o(),pl=m1.extendDeepAll,P0=m1.isPlainObject,iU=m1.isArrayOrTypedArray,Ud=m1.nestedProperty,oU=m1.valObjectMeta,c2="_isSubplotObj",Yd="_isLinkedToArray",lU="_arrayAttrRegexps",Qw="_deprecated",v2=[c2,Yd,lU,Qw];sa.IS_SUBPLOT_OBJ=c2;sa.IS_LINKED_TO_ARRAY=Yd;sa.DEPRECATED=Qw;sa.UNDERSCORE_ATTRS=v2;sa.get=function(){var e={};return wo.allTypes.forEach(function(r){e[r]=uU(r)}),{defs:{valObjects:oU,metaKeys:v2.concat(["description","role","editType","impliedEdits"]),editType:{traces:$w.traces,layout:$w.layout},impliedEdits:{}},traces:e,layout:fU(),frames:cU(),animation:R0(nU),config:R0(aU)}};sa.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(i){var o=e[i];if(v2.indexOf(i)===-1){var l=(n?n+".":"")+i;r(o,i,e,a,l),!sa.isValObject(o)&&P0(o)&&i!=="impliedEdits"&&sa.crawl(o,r,a+1,l)}})};sa.isValObject=function(e){return e&&e.valType!==void 0};sa.findArrayAttributes=function(e){var r=[],t=[],n=[],a,i;function o(s,u,f,v){t=t.slice(0,v).concat([u]),n=n.slice(0,v).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&l(a,0,"")}function l(s,u,f){var v=s[t[u]],h=f+t[u];if(u===t.length-1)iU(v)&&r.push(i+h);else if(n[u]){if(Array.isArray(v))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Bd(o))return!1;e=i[a][o]}else e=i[a]}else e=i}}return e}function Bd(e){return e===Math.round(e)&&e>=0}function uU(e){var r,t;r=wo.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=pl({},Od),i=pl({},r.attributes);sa.crawl(i,function(s,u,f,v,h){Ud(a,h).set(void 0),s===void 0&&Ud(i,h).set(void 0)}),pl(n,a),wo.traceIs(e,"noOpacity")&&delete n.opacity,wo.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),wo.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,pl(n,i),t.attributes&&pl(n,t.attributes),n.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:R0(n)};if(r.layoutAttributes){var l={};pl(l,r.layoutAttributes),o.layoutAttributes=R0(l)}return r.animatable||sa.crawl(o,function(s){sa.isValObject(s)&&"anim"in s&&delete s.anim}),o}function fU(){var e={},r,t;pl(e,f2);for(r in wo.subplotsRegistry)if(t=wo.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n{"use strict";var N0=gr(),gU=bo(),Uu="templateitemname",h2={name:{valType:"string",editType:"none"}};h2[Uu]={valType:"string",editType:"calc"};nc.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=h2.name,r[Uu]=h2[Uu],r};nc.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(i){t=N0.coerce(i,{},gU,"type");var o={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,o._template=n[l]}return o}return{newTrace:a}};nc.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);N0.isPlainObject(a)||(a=null);var i=e[r]={_template:a};return i};nc.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[t9(r)],i=n&&n[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},v=f[Uu]=u[Uu];if(!r9(v))return f._template=a,f;for(var h=0;h=n&&(t._input||{})._templateitemname;i&&(a=n);var o=r+"["+a+"]",l;function s(){l={},i&&(l[o]={},l[o][Uu]=i)}s();function u(d,m){l[d]=m}function f(d,m){i?N0.nestedProperty(l[o],d).set(m):l[o+"."+d]=m}function v(){var d=l;return s(),d}function h(d,m){d&&f(d,m);var p=v();for(var y in p)N0.nestedProperty(e,y).set(p[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:h}}});var Pa=te((Hse,n9)=>{"use strict";var y1=x0().counter;n9.exports={idRegex:{x:y1("x","( domain)?"),y:y1("y","( domain)?")},attrRegex:y1("[xy]axis"),xAxisMatch:y1("xaxis"),yAxisMatch:y1("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var ua=te(Ei=>{"use strict";var mU=dt(),d2=Pa();Ei.id2name=function(r){if(!(typeof r!="string"||!r.match(d2.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Ei.name2id=function(r){if(r.match(d2.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};Ei.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(d2.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(a&&n?" domain":"")}};Ei.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=Ei.listIds(e,r),i=new Array(a.length),o;for(o=0;on?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};Ei.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function a9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function yU(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function bU(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}i9.exports={clearOutlineControllers:yU,clearOutline:bU}});var Gd=te((Use,o9)=>{"use strict";o9.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var b1=te(Wd=>{"use strict";var Vd=dt(),Yse=Pa().SUBPLOT_PATTERN;Wd.getSubplotCalcData=function(e,r,t){var n=Vd.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,i=[],o=0;o{"use strict";var _U=dt(),F0=gr();ac.manageCommandObserver=function(e,r,t,n){var a={},i=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var o=ac.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(o)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(o){l9(e,o,a.cache),a.check=function(){if(i){var f=l9(e,o,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+a;F0.isPlainObject(i)?p2(i,r,o,n+1):r(o,a,i)}})}});var fa=te((Wse,A9)=>{"use strict";var m9=kt(),wU=m0().timeFormatLocale,MU=My().formatLocale,_1=Ut(),AU=Ay(),Xt=dt(),y9=z0(),TU=bn(),Xr=gr(),b9=Pt(),c9=Rn().BADNUM,Pi=ua(),kU=Yu().clearOutline,SU=Gd(),g2=s1(),CU=u2(),LU=b1().getModuleCalcData,v9=Xr.relinkPrivateKeys,ic=Xr._,Rr=A9.exports={};Xr.extendFlat(Rr,Xt);Rr.attributes=bo();Rr.attributes.type.values=Rr.allTypes;Rr.fontAttrs=$a();Rr.layoutAttributes=A0();var Xd=f9();Rr.executeAPICommand=Xd.executeAPICommand;Rr.computeAPICommandBindings=Xd.computeAPICommandBindings;Rr.manageCommandObserver=Xd.manageCommandObserver;Rr.hasSimpleAPICommandBindings=Xd.hasSimpleAPICommandBindings;Rr.redrawText=function(e){return e=Xr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Xt.getComponentMethod("annotations","draw")(e),Xt.getComponentMethod("legend","draw")(e),Xt.getComponentMethod("colorbar","draw")(e),r(Rr.previousPromises(e)))},300)})};Rr.resize=function(e){e=Xr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||Xr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Xr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Xt.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};Rr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Rr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=Xr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:b9.defaultLine,"pointer-events":"all"}).each(function(){var u=m9.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),n=t.node(),a={y:r._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=r.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=r._paper.attr("width")-7),t.attr(a);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&qU(e,i),o.text(i.text()&&l.text()?" - ":"")}};function qU(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){Rr.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),a=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}Rr.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=m9.select(e).append("div").attr("id","hiddenform").style("display","none"),n=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),a=n.append("input").attr({type:"text",name:"data"});return a.node().value=Rr.graphJson(e,!1,"keepdata"),n.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var DU=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],EU=["year","month","dayMonth","dayMonthYear"];Rr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},v;e._transitionData||Rr.createTransitionData(e),a._dfltTitle={plot:ic(e,"Click to enter Plot title"),subtitle:ic(e,"Click to enter Plot subtitle"),x:ic(e,"Click to enter X axis title"),y:ic(e,"Click to enter Y axis title"),colorbar:ic(e,"Click to enter Colorscale title"),annotation:ic(e,"new text")},a._traceWord=ic(e,"trace");var h=h9(e,DU);if(a._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,m=n.height;Rr.supplyLayoutGlobalDefaults(i,a,h),i.width||(a.width=d),i.height||(a.height=m),Rr.sanitizeMargins(a)}else{Rr.supplyLayoutGlobalDefaults(i,a,h);var p=!i.width||!i.height,y=a.autosize,b=f.autosizable,C=p&&(y||b);C?Rr.plotAutoSize(e,i,a):p&&Rr.sanitizeMargins(a),!y&&p&&(i.width=a.width,i.height=a.height)}a._d3locale=zU(h,a.separators),a._extraFormat=h9(e,EU),a._initialAutoSizeIsDone=!0,a._dataLength=s.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var x=a._subplots=RU(),_=a._splomAxes={x:{},y:{}},A=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=PU(o,s),Rr.supplyDataDefaults(s,l,i,a);var k=Object.keys(_.x),M=Object.keys(_.y);if(k.length>1&&M.length>1){for(Xt.getComponentMethod("grid","sizeDefaults")(i,a),v=0;v15&&M.length>15&&a.shapes.length===0&&a.images.length===0,Rr.linkSubplots(l,a,o,n),Rr.cleanPlot(l,a,o,n);var W=!!(n._has&&n._has("cartesian")),B=!!(a._has&&a._has("cartesian")),X=W,V=B;X&&!V?n._bgLayer.remove():V&&!X&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&kU({_fullLayout:n}),NU(l,a),v9(a,n),Xt.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var re=a._tracePreGUI,ae={},K;for(K in re)ae[K]="old";for(v=0;v0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var v=Rr.layoutAttributes.width.min,h=Rr.layoutAttributes.height.min;o1,m=!t.height&&Math.abs(n.height-l)>1;(m||d)&&(d&&(n.width=o),m&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),Rr.sanitizeMargins(n)};Rr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=Xt.componentsRegistry,i=r._basePlotModules,o,l,s,u=Xt.subplotsRegistry.cartesian;for(o in a)s=a[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Xt.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(Xr.subplotSort);for(l=0;l1&&(t.l/=y,t.r/=y)}if(h){var b=(t.t+t.b)/h;b>1&&(t.t/=b,t.b/=b)}var C=t.xl!==void 0?t.xl:t.x,x=t.xr!==void 0?t.xr:t.x,_=t.yt!==void 0?t.yt:t.y,A=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:C,size:t.l+p},r:{val:x,size:t.r+p},b:{val:A,size:t.b+p},t:{val:_,size:t.t+p}},m[r]=1}if(!n._replotting)return Rr.doAutoMargin(e)}};function IU(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Pi.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Rr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),_9(r);var a=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Xr.extendFlat({},a),s=i.l,u=i.r,f=i.t,v=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,p=r.minreducedheight;if(i.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var b=e._fullLayout._reservedMargin;for(var C in b)for(var x in b[C]){var _=b[C][x];o[x]=Math.max(o[x],_)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:v}};for(var A in o){var k=0;for(var M in h)M!=="base"&&_1(h[M][A].size)&&(k=h[M][A].size>k?h[M][A].size:k);var E=Math.max(0,i[A]-k);o[A]=Math.max(0,o[A]-E)}for(var z in h){var F=h[z].l||{},I=h[z].b||{},W=F.val,B=F.size,X=I.val,V=I.size,re=t-o.r-o.l,ae=n-o.t-o.b;for(var K in h){if(_1(B)&&h[K].r){var ee=h[K].r.val,fe=h[K].r.size;if(ee>W){var he=(B*ee+(fe-re)*W)/(ee-W),De=(fe*(1-W)+(B-re)*(1-ee))/(ee-W);he+De>s+u&&(s=he,u=De)}}if(_1(V)&&h[K].t){var Ne=h[K].t.val,Fe=h[K].t.size;if(Ne>X){var Xe=(V*Ne+(Fe-ae)*X)/(Ne-X),Le=(Fe*(1-X)+(V-ae)*(1-Ne))/(Ne-X);Xe+Le>v+f&&(v=Xe,f=Le)}}}}}var rr=Xr.constrain(t-i.l-i.r,x9,m),se=Xr.constrain(n-i.t-i.b,w9,p),ye=Math.max(0,t-rr),we=Math.max(0,n-se);if(ye){var pe=(s+u)/ye;pe>1&&(s/=pe,u/=pe)}if(we){var U=(v+f)/we;U>1&&(v/=U,f/=U)}if(a.l=Math.round(s)+o.l,a.r=Math.round(u)+o.r,a.t=Math.round(f)+o.t,a.b=Math.round(v)+o.b,a.p=Math.round(i.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(Rr.didMarginChange(l,a)||IU(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Rr.graphJson=function(e,r,t,n,a,i){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Rr.supplyDefaults(e);var o=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(Xr.isPlainObject(h)){var m={},p;return Object.keys(h).sort().forEach(function(x){if(["_","["].indexOf(x.charAt(0))===-1){if(typeof h[x]=="function"){d&&(m[x]="_function");return}if(t==="keepdata"){if(x.substr(x.length-3)==="src")return}else if(t==="keepstream"){if(p=h[x+"src"],typeof p=="string"&&p.indexOf(":")>0&&!Xr.isPlainObject(h.stream))return}else if(t!=="keepall"&&(p=h[x+"src"],typeof p=="string"&&p.indexOf(":")>0))return;m[x]=u(h[x],d)}}),m}var y=Array.isArray(h),b=Xr.isTypedArray(h);if((y||b)&&h.dtype&&h.shape){var C=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:Xr.isArrayBuffer(C)?AU.encode(C):C},d)}return y?h.map(function(x){return u(x,d)}):b?Xr.simpleMap(h,Xr.identity):Xr.isJSDate(h)?Xr.ms2DateTimeLocal(+h):h}var f={data:(o||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(l),a)){var v=l._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),n==="object"?f:JSON.stringify(f)};Rr.modifyFrames=function(e,r){var t,n,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Xt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!n&&d===h&&l(v)}}t.runFn(m),setTimeout(m())})}function l(v){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Xt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function s(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var u=[Rr.previousPromises,s,t.prepareFn,Rr.rehover,Rr.reselect,o],f=Xr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Rr.doCalcdata=function(e,r){var t=Pi.list(e),n=e._fullData,a=e._fullLayout,i,o,l,s,u=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l=0;s--)if(A[s].enabled){i._indexToPoints=A[s]._indexToPoints;break}o&&o.calc&&(_=o.calc(e,i))}(!Array.isArray(_)||!_[0])&&(_=[{x:c9,y:c9}]),_[0].t||(_[0].t={}),_[0].trace=i,u[C]=_}}for(p9(t,n,a),l=0;l{"use strict";oc.xmlns="http://www.w3.org/2000/xmlns/";oc.svg="http://www.w3.org/2000/svg";oc.xlink="http://www.w3.org/1999/xlink";oc.svgAttrs={xmlns:oc.svg,"xmlns:xlink":oc.xlink}});var Ka=te((Xse,T9)=>{"use strict";T9.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var vi=te(Mo=>{"use strict";var ea=kt(),Ks=gr(),UU=Ks.strTranslate,m2=lc(),YU=Ka().LINE_SPACING,GU=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Mo.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match(GU),i=ea.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=nY(e.node(),n);s&&e.style("pointer-events","all"),Mo.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};XU(a[2],f,function(v,h,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){l(),s();return}var p=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});p.node().appendChild(m.node()),h&&h.node()&&m.node().insertBefore(h.node().cloneNode(!0),m.node().firstChild);var y=d.width,b=d.height;m.attr({class:o,height:b,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var C=e.node().style.fill||"black",x=m.select("g");x.attr({fill:C,stroke:C});var _=x.node().getBoundingClientRect(),A=_.width,k=_.height;(A>y||k>b)&&(m.style("overflow","hidden"),_=m.node().getBoundingClientRect(),A=_.width,k=_.height);var M=+e.attr("x"),E=+e.attr("y"),z=u||e.node().getBoundingClientRect().height,F=-z/4;if(o[0]==="y")p.attr({transform:"rotate("+[-90,M,E]+")"+UU(-A/2,F-k/2)});else if(o[0]==="l")E=F-k/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,E=F;else{var I=e.attr("text-anchor");M=M-A*(I==="middle"?.5:I==="end"?1:0),E=E+F-k/2}m.attr({x:M,y:E}),t&&t.call(e,p),s(p)})})):l(),e};var VU=/(<|<|<)/g,WU=/(>|>|>)/g;function ZU(e){return e.replace(VU,"\\lt ").replace(WU,"\\gt ")}var k9=[["$","$"],["\\(","\\)"]];function XU(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Ks.warn("No MathJax version:",MathJax.version);return}var a,i,o,l,s=function(){return i=Ks.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:k9},displayAlign:"left"})},u=function(){i=Ks.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=k9},f=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},v=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var C="math-output-"+Ks.randstr({},64);l=ea.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(ZU(e));var x=l.node();return n===2?MathJax.Hub.Typeset(x):MathJax.typeset([x])},d=function(){var C=l.select(n===2?".MathJax_SVG":".MathJax"),x=!C.empty()&&l.select("svg").node();if(!x)Ks.log("There was an error in the tex syntax.",e),t();else{var _=x.getBoundingClientRect(),A;n===2?A=ea.select("body").select("#MathJax_SVG_glyphs"):A=C.select("defs"),t(C,A,_)}l.remove()},m=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},p=function(){a!=="svg"&&(MathJax.config.startup.output=a)},y=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},b=function(){MathJax.config=i};n===2?MathJax.Hub.Queue(s,f,h,d,m,y):n===3&&(u(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),p(),b()}))}var q9={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},jU={sub:"0.3em",sup:"-0.6em"},JU={sub:"-0.21em",sup:"0.42em"},S9="\u200B",C9=["http:","https:","mailto:","",void 0,":"],D9=Mo.NEWLINES=/(\r\n?|\n)/g,b2=/(<[^<>]*>)/,_2=/<(\/?)([^ >]*)(\s+(.*))?>/i,$U=//i;Mo.BR_TAG_ALL=//gi;var E9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,P9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,R9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,KU=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function sc(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&jd(n)}var QU=/(^|;)\s*color:/;Mo.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",i=a.length,o=e.split(b2),l=[],s="",u=0,f=0;fi?l.push(v.substr(0,p-i)+a):l.push(v.substr(0,p));break}s=""}}return l.join("")};var eY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},rY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function jd(e){return e.replace(rY,function(r,t){var n;return t.charAt(0)==="#"?n=tY(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):n=eY[t],n||r})}Mo.convertEntities=jd;function tY(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function nY(e,r){r=r.replace(D9," ");var t=!1,n=[],a,i=-1;function o(){i++;var k=document.createElementNS(m2.svg,"tspan");ea.select(k).attr({class:"line",dy:i*YU+"em"}),e.appendChild(k),a=k;var M=n;if(n=[{node:k}],M.length>1)for(var E=1;E.",r);return}var M=n.pop();k!==M.type&&Ks.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),a=n[n.length-1].node}var f=$U.test(r);f?o():(a=e,n=[{node:e}]);for(var v=r.split(b2),h=0;h{"use strict";var aY=kt(),$d=Jl(),w1=Ut(),Jd=gr(),N9=Pt(),iY=Jf().isValid;function oY(e,r,t){var n=r?Jd.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var i=!1;if(Jd.isArrayOrTypedArray(a)){for(var o=0;o=0;n--,a++){var i=e[n];t[a]=[1-i[0],i[1]]}return t}function U9(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,i=new Array(a),o=0;o{"use strict";var G9=Oy(),sY=G9.FORMAT_LINK,uY=G9.DATE_FORMAT_LINK;function fY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?x2:V9)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function x2(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+sY+"."].join(" ")}function V9(e,r){return x2(e,r)+[" And for dates see: "+uY+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}W9.exports={axisHoverFormat:fY,descriptionOnlyNumbers:x2,descriptionWithDates:V9}});var gl=te((Qse,u8)=>{"use strict";var Z9=$a(),I0=vl(),s8=Kl().dash,A2=la().extendFlat,X9=bn().templatedArray,Kse=Vs().templateFormatStringDescription,j9=w2().descriptionWithDates,cY=Rn().ONEDAY,rs=Pa(),vY=rs.HOUR_PATTERN,hY=rs.WEEKDAY_PATTERN,M2={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},dY=A2({},M2,{values:M2.values.slice().concat(["sync"])});function J9(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var $9={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},K9={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Q9={valType:"data_array",editType:"ticks"},e8={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function r8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function t8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var n8={valType:"color",dflt:I0.defaultLine,editType:"ticks"},a8={valType:"color",dflt:I0.lightLine,editType:"ticks"};function i8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var o8=A2({},s8,{editType:"ticks"}),l8={valType:"boolean",editType:"ticks"};u8.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Z9({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[rs.idRegex.x.toString(),rs.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[rs.idRegex.x.toString(),rs.idRegex.y.toString()],editType:"calc"},rangebreaks:X9("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[hY,vY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:cY},editType:"calc"}),tickmode:dY,nticks:J9(),tick0:$9,dtick:K9,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Q9,ticktext:{valType:"data_array",editType:"ticks"},ticks:e8,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:r8(),tickwidth:t8(),tickcolor:n8,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:A2({},s8,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:Z9({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:j9("tick label")},tickformatstops:X9("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:j9("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:I0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:l8,gridcolor:a8,gridwidth:i8(),griddash:o8,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",rs.idRegex.x.toString(),rs.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",rs.idRegex.x.toString(),rs.idRegex.y.toString()],editType:"plot"},minor:{tickmode:M2,nticks:J9("minor"),tick0:$9,dtick:K9,tickvals:Q9,ticks:e8,ticklen:r8("minor"),tickwidth:t8("minor"),tickcolor:n8,gridcolor:a8,gridwidth:i8("minor"),griddash:o8,showgrid:l8,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Kd=te((eue,v8)=>{"use strict";var Sn=gl(),f8=$a(),c8=la().extendFlat,pY=_o().overrideAll;v8.exports=pY({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Sn.linecolor,outlinewidth:Sn.linewidth,bordercolor:Sn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Sn.minor.tickmode,nticks:Sn.nticks,tick0:Sn.tick0,dtick:Sn.dtick,tickvals:Sn.tickvals,ticktext:Sn.ticktext,ticks:c8({},Sn.ticks,{dflt:""}),ticklabeloverflow:c8({},Sn.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Sn.ticklen,tickwidth:Sn.tickwidth,tickcolor:Sn.tickcolor,ticklabelstep:Sn.ticklabelstep,showticklabels:Sn.showticklabels,labelalias:Sn.labelalias,tickfont:f8({}),tickangle:Sn.tickangle,tickformat:Sn.tickformat,tickformatstops:Sn.tickformatstops,tickprefix:Sn.tickprefix,showtickprefix:Sn.showtickprefix,ticksuffix:Sn.ticksuffix,showticksuffix:Sn.showticksuffix,separatethousands:Sn.separatethousands,exponentformat:Sn.exponentformat,minexponent:Sn.minexponent,showexponent:Sn.showexponent,title:{text:{valType:"string"},font:f8({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var H0=te((tue,d8)=>{"use strict";var gY=Kd(),mY=x0().counter,yY=Ld(),h8=Jf().scales,rue=yY(h8);function Qd(e){return"`"+e+"`"}d8.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?h8[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[n],v="in "+Qd(u+f));var h=a?" Has an effect only if "+v+" is set to a numerical array.":"",d=n+"auto",m=n+"min",p=n+"max",y=n+"mid",b=Qd(u+d),C=Qd(u+m),x=Qd(u+p),_=C+" and "+x,A={};A[m]=A[p]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=gY),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:mY("coloraxis"),dflt:null,editType:"calc"}),M}});var k2=te((nue,p8)=>{"use strict";var bY=la().extendFlat,_Y=H0(),T2=Jf().scales;p8.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:T2.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:T2.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:T2.RdBu,editType:"calc"}},coloraxis:bY({_isSubplotObj:!0,editType:"calc"},_Y("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var S2=te((aue,g8)=>{"use strict";var xY=gr();g8.exports=function(r){return xY.isPlainObject(r.colorbar)}});var q2=te(L2=>{"use strict";var C2=Ut(),m8=gr(),y8=Rn(),wY=y8.ONEDAY,MY=y8.ONEWEEK;L2.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",i=n?wY:1;if(!e)return i;if(C2(e))return e=Number(e),e<=0?i:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return i;var o=e.charAt(0),l=e.substr(1);return l=C2(l)?Number(l):0,l<=0||!(n&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};L2.tick0=function(e,r,t,n){if(r==="date")return m8.cleanDate(e,m8.dateTick0(t,n%MY===0?1:0));if(!(n==="D1"||n==="D2"))return C2(e)?Number(e):0}});var D2=te((oue,_8)=>{"use strict";var b8=q2(),AY=gr().isArrayOrTypedArray,TY=ji().isTypedArraySpec,kY=ji().decodeTypedArraySpec;_8.exports=function(r,t,n,a,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(C){var x=l[C];return TY(x)&&(x=kY(x)),x!==void 0?x:(s._template||{})[C]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=AY(d)?"array":h?"linear":"auto",p=n(u+"tickmode",m);if(p==="auto"||p==="sync")n(u+"nticks");else if(p==="linear"){var y=s.dtick=b8.dtick(h,a);s.tick0=b8.tick0(v,a,t.calendar,y)}else if(a!=="multicategory"){var b=n(u+"tickvals");b===void 0?s.tickmode="auto":o||n("ticktext")}}});var P2=te((lue,w8)=>{"use strict";var E2=gr(),x8=gl();w8.exports=function(r,t,n,a){var i=a.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?x8.minor:x8,u=i?"minor.":"",f=E2.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=E2.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),h=E2.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=n(u+"ticks",!i&&a.outerTicks||f||v||h?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var R2=te((sue,M8)=>{"use strict";M8.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(i){return r[i]!==void 0}),a=function(i){return r[i]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var ml=te((uue,A8)=>{"use strict";var ep=gr(),SY=bn();A8.exports=function(r,t,n){var a=n.name,i=n.inclusionAttr||"visible",o=t[a],l=ep.isArrayOrTypedArray(r[a])?r[a]:[],s=t[a]=[],u=SY.arrayTemplater(t,a,i),f,v;for(f=0;f{"use strict";var z2=gr(),CY=Pt().contrast,T8=gl(),LY=R2(),qY=ml();k8.exports=function(r,t,n,a,i){i||(i={});var o=n("labelalias");z2.isPlainObject(o)||delete t.labelalias;var l=LY(r),s=n("showticklabels");if(s){i.noTicklabelshift||n("ticklabelshift"),i.noTicklabelstandoff||n("ticklabelstandoff");var u=i.font||{},f=t.color,v=t.ticklabelposition||"",h=v.indexOf("inside")!==-1?CY(i.bgColor):f&&f!==T8.color.dflt?f:u.color;if(z2.coerceFont(n,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!i.noAng){var d=n("tickangle");!i.noAutotickangles&&d==="auto"&&n("autotickangles")}if(a!=="category"){var m=n("tickformat");qY(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:DY}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!i.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function DY(e,r){function t(a,i){return z2.coerce(e,r,T8.tickformatstops,a,i)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var F2=te((cue,S8)=>{"use strict";var EY=R2();S8.exports=function(r,t,n,a,i){i||(i={});var o=i.tickSuffixDflt,l=EY(r),s=n("tickprefix");s&&n("showtickprefix",l);var u=n("ticksuffix",o);u&&n("showticksuffix",l)}});var I2=te((vue,C8)=>{"use strict";var Gu=gr(),PY=bn(),RY=D2(),zY=P2(),NY=N2(),FY=F2(),IY=Kd();C8.exports=function(r,t,n){var a=PY.newContainer(t,"colorbar"),i=r.colorbar||{};function o(I,W){return Gu.coerce(i,a,IY,I,W)}var l=n.margin||{t:0,b:0,l:0,r:0},s=n.width-l.l-l.r,u=n.height-l.t-l.b,f=o("orientation"),v=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(v?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:v?u:s);var m=o("yref"),p=o("xref"),y=m==="paper",b=p==="paper",C,x,_,A="left";v?(_="middle",A=b?"left":"right",C=b?1.02:1,x=.5):(_=y?"bottom":"top",A="center",C=.5,x=y?1.02:1),Gu.coerce(i,a,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:C}},"x"),Gu.coerce(i,a,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:x}},"y"),o("xanchor",A),o("xpad"),o("yanchor",_),o("ypad"),Gu.noneOrAll(i,a,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=Gu.coerce(i,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),RY(i,a,o,"linear");var M=n.font,E={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(E.bgColor="black"),FY(i,a,o,"linear",E),NY(i,a,o,"linear",E),zY(i,a,o,"linear",E),o("title.text",n._dfltTitle.colorbar);var z=a.showticklabels?a.tickfont:M,F=Gu.extendFlat({},M,{family:z.family,size:Gu.bigFont(z.size)});Gu.coerceFont(o,"title.font",F),o("title.side",v?"top":"right")}});var B0=te((hue,D8)=>{"use strict";var L8=Ut(),B2=gr(),HY=S2(),BY=I2(),q8=Jf().isValid,OY=dt().traceIs;function H2(e,r){var t=r.slice(0,r.length-1);return r?B2.nestedProperty(e,t).get()||{}:e}D8.exports=function e(r,t,n,a,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=H2(r,o),f=H2(t,o),v=H2(t._template||{},o)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,i)};if(s){var d=n._colorAxes||{},m=a(o+"coloraxis");if(m){var p=OY(t,"contour")&&B2.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[m];y?(y[2].push(h),y[0]!==p&&(y[0]=!1,B2.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[p,t,[h]];return}}var b=u[l+"min"],C=u[l+"max"],x=L8(b)&&L8(C)&&b{"use strict";var E8=gr(),UY=bn(),P8=k2(),YY=B0();R8.exports=function(r,t){function n(v,h){return E8.coerce(r,t,P8,v,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,i,o;function l(v,h){return E8.coerce(i,o,P8.coloraxis,v,h)}for(var s in a){var u=a[s];if(u[0])i=r[s]||{},o=UY.newContainer(t,s,"coloraxis"),o._name=s,YY(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var GY=gr(),VY=es().hasColorscale,WY=es().extractOpts;N8.exports=function(r,t){function n(f,v){var h=f["_"+v];h!==void 0&&(f[v]=h)}function a(f,v){var h=v.container?GY.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=WY(h),m=d.auto;(m||d.min===void 0)&&n(h,v.min),(m||d.max===void 0)&&n(h,v.max),d.autocolorscale&&n(h,"colorscale")}}for(var i=0;i{"use strict";var I8=Ut(),O2=gr(),ZY=es().extractOpts;H8.exports=function(r,t,n){var a=r._fullLayout,i=n.vals,o=n.containerStr,l=o?O2.nestedProperty(t,o).get():t,s=ZY(l),u=s.auto!==!1,f=s.min,v=s.max,h=s.mid,d=function(){return O2.aggNums(Math.min,null,i)},m=function(){return O2.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&I8(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(l._colorAx&&I8(v)?v=Math.max(v,m()):v=m()),u&&h!==void 0&&(v-h>h-f?f=h-(v-h):v-h=0?p=a.colorscale.sequential:p=a.colorscale.sequentialminus,s._sync("colorscale",p)}}});var np=te((mue,B8)=>{"use strict";var tp=Jf(),O0=es();B8.exports={moduleType:"component",name:"colorscale",attributes:H0(),layoutAttributes:k2(),supplyLayoutDefaults:z8(),handleDefaults:B0(),crossTraceDefaults:F8(),calc:rp(),scales:tp.scales,defaultScale:tp.defaultScale,getScale:tp.get,isValidScale:tp.isValid,hasColorscale:O0.hasColorscale,extractOpts:O0.extractOpts,extractScale:O0.extractScale,flipScale:O0.flipScale,makeColorScaleFunc:O0.makeColorScaleFunc,makeColorScaleFuncFromTrace:O0.makeColorScaleFuncFromTrace}});var Qa=te((yue,U8)=>{"use strict";var O8=gr(),XY=ji().isTypedArraySpec;U8.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return O8.isPlainObject(r)&&(O8.isArrayOrTypedArray(r.size)||XY(r.size))}}});var G8=te((bue,Y8)=>{"use strict";var jY=Ut();Y8.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,i=n.sizemin||0,o=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var s=o(l/t);return jY(s)&&s>0?Math.max(s,i):0}}});var Vu=te(Ba=>{"use strict";var V8=gr();Ba.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ba.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{X8.exports=eG;var U2={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},QY=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function eG(e){var r=[];return e.replace(QY,function(t,n,a){var i=n.toLowerCase();for(a=tG(a),i=="m"&&a.length>2&&(r.push([n].concat(a.splice(0,2))),i="l",n=n=="m"?"l":"L");;){if(a.length==U2[i])return a.unshift(n),r.push(a);if(a.length{"use strict";var nG=Y2(),kr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},gt="M0,0Z",j8=Math.sqrt(2),Wu=Math.sqrt(3),G2=Math.PI,V2=Math.cos,W2=Math.sin;eM.exports={circle:{n:0,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?yt(r,t,a):a}},square:{n:1,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.3,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.4,2),a=kr(e*1.2,2);return yt(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.8/j8,2),a="l"+n+","+n,i="l"+n+",-"+n,o="l-"+n+",-"+n,l="l-"+n+","+n;return yt(r,t,"M0,"+n+a+i+o+i+o+l+o+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2/Wu,2),a=kr(e/2,2),i=kr(e,2);return yt(r,t,"M-"+n+","+a+"H"+n+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2/Wu,2),a=kr(e/2,2),i=kr(e,2);return yt(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2/Wu,2),a=kr(e/2,2),i=kr(e,2);return yt(r,t,"M"+a+",-"+n+"V"+n+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2/Wu,2),a=kr(e/2,2),i=kr(e,2);return yt(r,t,"M-"+a+",-"+n+"V"+n+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.6,2),a=kr(e*1.2,2);return yt(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.6,2),a=kr(e*1.2,2);return yt(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.6,2),a=kr(e*1.2,2);return yt(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.6,2),a=kr(e*1.2,2);return yt(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.951,2),a=kr(e*.588,2),i=kr(-e,2),o=kr(e*-.309,2),l=kr(e*.809,2);return yt(r,t,"M"+n+","+o+"L"+a+","+l+"H-"+a+"L-"+n+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e/2,2),i=kr(e*Wu/2,2);return yt(r,t,"M"+i+",-"+a+"V"+a+"L0,"+n+"L-"+i+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e/2,2),i=kr(e*Wu/2,2);return yt(r,t,"M-"+a+","+i+"H"+a+"L"+n+",0L"+a+",-"+i+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.924,2),a=kr(e*.383,2);return yt(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(mt(r))return gt;var n=e*1.4,a=kr(n*.225,2),i=kr(n*.951,2),o=kr(n*.363,2),l=kr(n*.588,2),s=kr(-n,2),u=kr(n*-.309,2),f=kr(n*.118,2),v=kr(n*.809,2),h=kr(n*.382,2);return yt(r,t,"M"+a+","+u+"H"+i+"L"+o+","+f+"L"+l+","+v+"L0,"+h+"L-"+l+","+v+"L-"+o+","+f+"L-"+i+","+u+"H-"+a+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.66,2),a=kr(e*.38,2),i=kr(e*.76,2);return yt(r,t,"M-"+i+",0l-"+a+",-"+n+"h"+i+"l"+a+",-"+n+"l"+a+","+n+"h"+i+"l-"+a+","+n+"l"+a+","+n+"h-"+i+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*Wu*.8,2),a=kr(e*.8,2),i=kr(e*1.6,2),o=kr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return yt(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+i+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*Wu*.8,2),a=kr(e*.8,2),i=kr(e*1.6,2),o=kr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return yt(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+i+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.1,2),a=kr(e*2,2),i="A "+a+","+a+" 0 0 1 ";return yt(r,t,"M-"+n+",-"+n+i+"-"+n+","+n+i+n+","+n+i+n+",-"+n+i+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.4,2),a=kr(e*1.9,2),i="A "+a+","+a+" 0 0 1 ";return yt(r,t,"M-"+n+",0"+i+"0,"+n+i+n+",0"+i+"0,-"+n+i+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.7,2),a=kr(e*1.4,2);return yt(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.4,2),a=kr(e*.7,2);return yt(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e/j8,2);return yt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.3,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.3,2),a=kr(e*.65,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.4,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.2,2),a=kr(e*.85,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(mt(r))return gt;var n=kr(e/2,2),a=kr(e,2);return yt(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.2,2),a=kr(e*1.6,2),i=kr(e*.8,2);return yt(r,t,"M-"+n+","+i+"L0,0M"+n+","+i+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.2,2),a=kr(e*1.6,2),i=kr(e*.8,2);return yt(r,t,"M-"+n+",-"+i+"L0,0M"+n+",-"+i+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.2,2),a=kr(e*1.6,2),i=kr(e*.8,2);return yt(r,t,"M"+i+","+n+"L0,0M"+i+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.2,2),a=kr(e*1.6,2),i=kr(e*.8,2);return yt(r,t,"M-"+i+","+n+"L0,0M-"+i+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.4,2);return yt(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.4,2);return yt(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e*2,2);return yt(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e*2,2);return yt(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2,2),a=kr(e,2);return yt(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2,2),a=kr(e,2);return yt(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e*2,2);return yt(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e*2,2);return yt(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2,2),a=kr(e,2);return yt(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2,2),a=kr(e,2);return yt(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(mt(r))return gt;var n=G2/2.5,a=2*e*V2(n),i=2*e*W2(n);return yt(r,t,"M0,0L"+-a+","+i+"L"+a+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(mt(r))return gt;var n=G2/4,a=2*e*V2(n),i=2*e*W2(n);return yt(r,t,"M0,0L"+-a+","+i+"A "+2*e+","+2*e+" 0 0 1 "+a+","+i+"Z")},backoff:.4,noDot:!0}};function mt(e){return e===null}var J8,$8,K8,Q8;function yt(e,r,t){if((!e||e%360===0)&&!r)return t;if(K8===e&&Q8===r&&J8===t)return $8;K8=e,Q8=r,J8=t;function n(y,b){var C=V2(y),x=W2(y),_=b[0],A=b[1]+(r||0);return[_*C-A*x,_*x+A*C]}for(var a=e/180*G2,i=0,o=0,l=nG(t),s="",u=0;u{"use strict";var ba=kt(),un=gr(),aG=un.numberFormat,vc=Ut(),K2=Jl(),ip=dt(),Ra=Pt(),iG=np(),A1=un.strTranslate,op=vi(),oG=lc(),lG=Ka(),sG=lG.LINE_SPACING,cM=pd().DESELECTDIM,uG=Qa(),fG=G8(),cG=Vu().appendArrayPointValue,Fr=xM.exports={};Fr.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Ra.fill,i),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",Z2(hG(f))),s&&e.style("text-shadow",s==="auto"?op.makeTextShadow(Ra.contrast(i)):Z2(s)),u&&e.style("text-decoration-line",Z2(dG(u)))};function Z2(e){return e==="none"?void 0:e}var vG={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function hG(e){return vG[e]}function dG(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Fr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};Fr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};Fr.setRect=function(e,r,t,n,a){e.call(Fr.setPosition,r,t).call(Fr.setSize,n,a)};Fr.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),i=n.c2p(e.y);if(vc(a)&&vc(i)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",i):r.attr("transform",A1(a,i));else return!1;return!0};Fr.translatePoints=function(e,r,t){e.each(function(n){var a=ba.select(this);Fr.translatePoint(n,a,r,t)})};Fr.hideOutsideRangePoint=function(e,r,t,n,a,i){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,i)?null:"none")};Fr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var i=a[0].trace,o=i.xcalendar,l=i.ycalendar,s=ip.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){Fr.hideOutsideRangePoint(u,ba.select(this),t,n,o,l)})})}};Fr.crispRound=function(e,r,t){return!r||!vc(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};Fr.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=a||i.dash||"";Ra.stroke(r,n||i.color),Fr.dashLine(r,l,o)};Fr.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var i=(((a||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=n||i.dash||"";ba.select(this).call(Ra.stroke,t||i.color).call(Fr.dashLine,l,o)})};Fr.dashLine=function(e,r,t){t=+t||0,r=Fr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};Fr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function vM(e,r,t,n){var a=r.fillpattern,i=r.fillgradient,o=Fr.getPatternAttr,l=a&&(o(a.shape,0,"")||o(a.path,0,""));if(l){var s=o(a.bgcolor,0,null),u=o(a.fgcolor,0,null),f=a.fgopacity,v=o(a.size,0,8),h=o(a.solidity,0,.3),d=r.uid;Fr.pattern(e,"point",t,d,l,v,h,void 0,a.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,p="scatterfill-"+r.uid;if(n&&(p="legendfill-"+r.uid),!n&&(i.start!==void 0||i.stop!==void 0)){var y,b;m==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):m==="vertical"&&(y={x:0,y:i.start},b={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(pM,t,p,"linear",i.colorscale,"fill",y,b,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(Fr.gradient,t,p,m,i.colorscale,"fill")}else r.fillcolor&&e.call(Ra.fill,r.fillcolor)}Fr.singleFillStyle=function(e,r){var t=ba.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};vM(e,a,r,!1)};Fr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=ba.select(this);n[0].trace&&vM(a,n[0].trace,r,t)})};var tM=rM();Fr.symbolNames=[];Fr.symbolFuncs=[];Fr.symbolBackOffs=[];Fr.symbolNeedLines={};Fr.symbolNoDot={};Fr.symbolNoFill={};Fr.symbolList=[];Object.keys(tM).forEach(function(e){var r=tM[e],t=r.n;Fr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),Fr.symbolNames[t]=e,Fr.symbolFuncs[t]=r.f,Fr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(Fr.symbolNeedLines[t]=!0),r.noDot?Fr.symbolNoDot[t]=!0:Fr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(Fr.symbolNoFill[t]=!0)});var pG=Fr.symbolNames.length,gG="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Fr.symbolNumber=function(e){if(vc(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=Fr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=pG||e>=400?0:Math.floor(Math.max(e,0))};function hM(e,r,t,n){var a=e%100;return Fr.symbolFuncs[a](r,t,n)+(e>=200?gG:"")}var nM=aG("~f"),dM={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Fr.gradient=function(e,r,t,n,a,i){var o=dM[n];return pM(e,r,t,o.type,a,i,o.start,o.stop,!1,o.reversed)};function pM(e,r,t,n,a,i,o,l,s,u){var f=a.length,v;n==="linear"?v={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:n==="radial"&&(v={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=n.ms2mrc(e.ms),e.mrc=s,n.selectedSizeFn&&(s=e.mrc=n.selectedSizeFn(e));var u=Fr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=r3(e,t),v=e3(e,t);r.attr("d",hM(u,s,f,v))}var h=!1,d,m,p;if(e.so)p=l.outlierwidth,m=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;p=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=n.lineScale(e.mlc):un.isArrayOrTypedArray(l.color)?m=Ra.defaultLine:m=l.color,un.isArrayOrTypedArray(o.color)&&(d=Ra.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}if(e.om)r.call(Ra.stroke,d).style({"stroke-width":(p||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:p)+"px");var b=o.gradient,C=e.mgt;C?h=!0:C=b&&b.type,un.isArrayOrTypedArray(C)&&(C=C[0],dM[C]||(C=0));var x=o.pattern,_=Fr.getPatternAttr,A=x&&(_(x.shape,e.i,"")||_(x.path,e.i,""));if(C&&C!=="none"){var k=e.mgc;k?h=!0:k=b.color;var M=t.uid;h&&(M+="-"+e.i),Fr.gradient(r,a,M,C,[[0,k],[1,d]],"fill")}else if(A){var E=!1,z=x.fgcolor;!z&&i&&i.color&&(z=i.color,E=!0);var F=_(z,e.i,i&&i.color||null),I=_(x.bgcolor,e.i,null),W=x.fgopacity,B=_(x.size,e.i,8),X=_(x.solidity,e.i,.3);E=E||e.mcc||un.isArrayOrTypedArray(x.shape)||un.isArrayOrTypedArray(x.path)||un.isArrayOrTypedArray(x.bgcolor)||un.isArrayOrTypedArray(x.fgcolor)||un.isArrayOrTypedArray(x.size)||un.isArrayOrTypedArray(x.solidity);var V=t.uid;E&&(V+="-"+e.i),Fr.pattern(r,"point",a,V,A,B,X,e.mcc,x.fillmode,I,F,W)}else un.isArrayOrTypedArray(d)?Ra.fill(r,d[e.i]):Ra.fill(r,d);p&&Ra.stroke(r,m)}};Fr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=Fr.tryColorscale(t,""),r.lineScale=Fr.tryColorscale(t,"line"),ip.traceIs(e,"symbols")&&(r.ms2mrc=uG.isBubble(e)?fG(e):function(){return(t.size||6)/2}),e.selectedpoints&&un.extendFlat(r,Fr.makeSelectedPointStyleFns(e)),r};Fr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},i=t.marker||{},o=n.marker||{},l=a.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,v=u!==void 0;(un.isArrayOrTypedArray(l)||f||v)&&(r.selectedOpacityFn=function(_){var A=_.mo===void 0?a.opacity:_.mo;return _.selected?f?s:A:v?u:cM*A});var h=a.color,d=i.color,m=o.color;(d||m)&&(r.selectedColorFn=function(_){var A=_.mcc||h;return _.selected?d||A:m||A});var p=a.size,y=i.size,b=o.size,C=y!==void 0,x=b!==void 0;return ip.traceIs(e,"symbols")&&(C||x)&&(r.selectedSizeFn=function(_){var A=_.mrc||p/2;return _.selected?C?y/2:A:x?b/2:A}),r};Fr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},i=t.textfont||{},o=n.textfont||{},l=a.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var v=f.tc||l;return f.selected?s||v:u||(s?v:Ra.addOpacity(v,cM))},r};Fr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Fr.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&a.push(function(i,o){Ra.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&a.push(function(i,o){var l=o.mx||n.symbol||0,s=t.selectedSizeFn(o);i.attr("d",hM(Fr.symbolNumber(l),s,r3(o,r),e3(o,r))),o.mrc2=s}),a.length&&e.each(function(i){for(var o=ba.select(this),l=0;l0?t:0}Fr.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=Fr.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=ba.select(this),u=i?un.extractOption(l,r,"txt","texttemplate"):un.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,v=f?f(l,r,o):{},h={};cG(h,r,l.i);var d=r._meta||{};u=un.texttemplateString(u,v,o._d3locale,h,l,d)}var m=l.tp||r.textposition,p=mM(l,r),y=n?n(l):l.tc||r.textfont.color;s.call(Fr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:p,color:y}).text(u).call(op.convertToTspans,t).call(gM,m,p,l.mrc)})}};Fr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Fr.makeSelectedTextStyleFns(r);e.each(function(n){var a=ba.select(this),i=t.selectedTextColorFn(n),o=n.tp||r.textposition,l=mM(n,r);Ra.fill(a,i);var s=ip.traceIs(r,"bar-like");gM(a,o,l,n.mrc2||n.mrc,s)})}};var aM=.5;Fr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a=s||_>=f&&_<=s)&&(A<=v&&A>=u||A>=v&&A<=u)&&(e=[_,A])}return e}Fr.applyBackoff=_M;Fr.makeTester=function(){var e=un.ensureSingleById(ba.select("body"),"svg","js-plotly-tester",function(t){t.attr(oG.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=un.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Fr.tester=e,Fr.testref=r};Fr.savedBBoxes={};var j2=0,bG=1e4;Fr.bBox=function(e,r,t){t||(t=iM(e));var n;if(t){if(n=Fr.savedBBoxes[t],n)return un.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=iM(a),t){var i=+a.getAttribute("x")||0,o=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var s=Fr.bBox(a,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,n=Fr.savedBBoxes[t],n)return un.extendFlat({},n)}}var u,f;r?u=e:(f=Fr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ba.select(u).attr("transform",null).call(op.positionText,0,0);var v=u.getBoundingClientRect(),h=Fr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:v.height,width:v.width,left:v.left-h.left,top:v.top-h.top,right:v.right-h.left,bottom:v.bottom-h.top};return j2>=bG&&(Fr.savedBBoxes={},j2=0),t&&(Fr.savedBBoxes[t]=d),j2++,un.extendFlat({},d)};function iM(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Fr.setClipUrl=function(e,r,t){e.attr("clip-path",Q2(r,t))};function Q2(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Fr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};Fr.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return r=r||0,t=t||0,o=o.replace(n,"").trim(),o+=A1(r,t),o=o.trim(),e[i]("transform",o),o};Fr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};Fr.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return r=r||1,t=t||1,o=o.replace(n,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var _G=/\s*sc.*/;Fr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(_G,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var xG=/translate\([^)]*\)\s*$/;Fr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=ba.select(this),i=a.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(a.attr("transform")||"").match(xG);r===1&&t===1?n=[]:n=[A1(o,l),"scale("+r+","+t+")",A1(-o,-l)],s&&n.push(s),a.attr("transform",n.join(""))}})};function e3(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}Fr.getMarkerStandoff=e3;var M1=Math.atan2,uc=Math.cos,Y0=Math.sin;function oM(e,r){var t=r[0],n=r[1];return[t*uc(e)-n*Y0(e),t*Y0(e)+n*uc(e)]}var lM,sM,uM,fM,J2,$2;function r3(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||un.isArrayOrTypedArray(t))&&(t=0));var n,a,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);n=o[0],a=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)n=l.c2p(e.x),a=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=M1(h[1]-a,h[0]-n),m=M1(v[1]-a,v[0]-n),p;if(i==="north")p=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,b=f/180*Math.PI,C=lM/180*Math.PI,x=sM/180*Math.PI,_=C-y,A=uc(x)*Y0(_),k=Y0(x)*uc(b)-uc(x)*Y0(b)*uc(_);p=-M1(A,k)-Math.PI,lM=u,sM=f}var M=oM(d,[uc(p),0]),E=oM(m,[Y0(p),0]);t=M1(M[1]+E[1],M[0]+E[0])/Math.PI*180,i==="previous"&&!($2===r.uid&&e.i===J2+1)&&(t=null)}if(i==="previous"&&!r._geo)if($2===r.uid&&e.i===J2+1&&vc(n)&&vc(a)){var z=n-uM,F=a-fM,I=r.line&&r.line.shape||"",W=I.slice(I.length-1);W==="h"&&(F=0),W==="v"&&(z=0),t+=M1(F,z)/Math.PI*180+90}else t=null}return uM=n,fM=a,J2=e.i,$2=r.uid,t}Fr.getMarkerAngle=r3});var T1=te((Aue,TM)=>{"use strict";var G0=kt(),wG=Ut(),MG=fa(),t3=dt(),hc=gr(),wM=hc.strTranslate,lp=fn(),sp=Pt(),V0=vi(),MM=pd(),AG=Ka().OPPOSITE_SIDE,AM=/ [XY][0-9]* /,n3=1.6,a3=1.6;function TG(e,r,t){var n=e._fullLayout,a=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,v=t.containerGroup,h=1,d=a.title,m=(d&&d.text?d.text:"").trim(),p=!1,y=d&&d.font?d.font:{},b=y.family,C=y.size,x=y.color,_=y.weight,A=y.style,k=y.variant,M=y.textcase,E=y.lineposition,z=y.shadow,F=t.subtitlePropName,I=!!F,W=t.subtitlePlaceholder,B=(a.title||{}).subtitle||{text:"",font:{}},X=(B.text||"").trim(),V=!1,re=1,ae=B.font,K=ae.family,ee=ae.size,fe=ae.color,he=ae.weight,De=ae.style,Ne=ae.variant,Fe=ae.textcase,Xe=ae.lineposition,Le=ae.shadow,rr;i==="title.text"?rr="titleText":i.indexOf("axis")!==-1?rr="axisTitleText":i.indexOf("colorbar")!==-1&&(rr="colorbarTitleText");var se=e._context.edits[rr];function ye(ur,cr){return ur===void 0||cr===void 0?!1:ur.replace(AM," % ")===cr.replace(AM," % ")}m===""?h=0:ye(m,o)&&(se||(m=""),h=.2,p=!0),I&&(X===""?re=0:ye(X,W)&&(se||(X=""),re=.2,V=!0)),t._meta?m=hc.templateString(m,t._meta):n._meta&&(m=hc.templateString(m,n._meta));var we=m||X||se,pe;v||(v=hc.ensureSingle(n._infolayer,"g","g-"+r),pe=n._hColorbarMoveTitle);var U=v.selectAll("text."+r).data(we?[0]:[]);U.enter().append("text"),U.text(m).attr("class",r),U.exit().remove();var Q=null,$=r+"-subtitle",ke=X||se;if(I&&(Q=v.selectAll("text."+$).data(ke?[0]:[]),Q.enter().append("text"),Q.text(X).attr("class",$),Q.exit().remove()),!we)return v;function Oe(ur,cr){hc.syncOrAsync([Ie,ir],{title:ur,subtitle:cr})}function Ie(ur){var cr=ur.title,Ke=ur.subtitle,pr;!f&&pe&&(f={}),f?(pr="",f.rotate&&(pr+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||pe)&&(pr+=wM(0,(f.offset||0)-(pe||0)))):pr=null,cr.attr("transform",pr);function dr(Ae){if(Ae){var je=G0.select(Ae.node().parentNode).select("."+$);if(!je.empty()){var hr=Ae.node().getBBox();if(hr.height){var wr=hr.y+hr.height+n3*ee;je.attr("y",wr)}}}}if(cr.style("opacity",h*sp.opacity(x)).call(lp.font,{color:sp.rgb(x),size:G0.round(C,2),family:b,weight:_,style:A,variant:k,textcase:M,shadow:z,lineposition:E}).attr(u).call(V0.convertToTspans,e,dr),Ke&&!Ke.empty()){var Te=v.select("."+r+"-math-group"),Ye=cr.node().getBBox(),Ar=Te.node()?Te.node().getBBox():void 0,zr=Ar?Ar.y+Ar.height+n3*ee:Ye.y+Ye.height+a3*ee,Er=hc.extendFlat({},u,{y:zr});Ke.attr("transform",pr),Ke.style("opacity",re*sp.opacity(fe)).call(lp.font,{color:sp.rgb(fe),size:G0.round(ee,2),family:K,weight:he,style:De,variant:Ne,textcase:Fe,shadow:Le,lineposition:Xe}).attr(Er).call(V0.convertToTspans,e)}return MG.previousPromises(e)}function ir(ur){var cr=ur.title,Ke=G0.select(cr.node().parentNode);if(s&&s.selection&&s.side&&m){Ke.attr("transform",null);var pr=AG[s.side],dr=s.side==="left"||s.side==="top"?-1:1,Te=wG(s.pad)?s.pad:2,Ye=lp.bBox(Ke.node()),Ar={t:0,b:0,l:0,r:0},zr=e._fullLayout._reservedMargin;for(var Er in zr)for(var Ae in zr[Er]){var je=zr[Er][Ae];Ar[Ae]=Math.max(Ar[Ae],je)}var hr={left:Ar.l,top:Ar.t,right:n.width-Ar.r,bottom:n.height-Ar.b},wr=s.maxShift||dr*(hr[s.side]-Ye[s.side]),mr=0;if(wr<0)mr=wr;else{var Tr=s.offsetLeft||0,Dr=s.offsetTop||0;Ye.left-=Tr,Ye.right-=Tr,Ye.top-=Dr,Ye.bottom-=Dr,s.selection.each(function(){var Cr=lp.bBox(this);hc.bBoxIntersect(Ye,Cr,Te)&&(mr=Math.max(mr,dr*(Cr[s.side]-Ye[pr])+Te))}),mr=Math.min(wr,mr),a._titleScoot=Math.abs(mr)}if(mr>0||wr<0){var Or={left:[-mr,0],right:[mr,0],top:[0,-mr],bottom:[0,mr]}[s.side];Ke.attr("transform",wM(Or[0],Or[1]))}}}U.call(Oe,Q);function or(ur,cr){ur.text(cr).on("mouseover.opacity",function(){G0.select(this).transition().duration(MM.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){G0.select(this).transition().duration(MM.HIDE_PLACEHOLDER).style("opacity",0)})}if(se&&(m?U.on(".opacity",null):(or(U,o),p=!0),U.call(V0.makeEditable,{gd:e}).on("edit",function(ur){l!==void 0?t3.call("_guiRestyle",e,i,ur,l):t3.call("_guiRelayout",e,i,ur)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Oe)}).on("input",function(ur){this.text(ur||" ").call(V0.positionText,u.x,u.y)}),I)){if(I&&!m){var Ue=U.node().getBBox(),tr=Ue.y+Ue.height+a3*ee;Q.attr("y",tr)}X?Q.on(".opacity",null):(or(Q,W),V=!0),Q.call(V0.makeEditable,{gd:e}).on("edit",function(ur){t3.call("_guiRelayout",e,"title.subtitle.text",ur)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Oe)}).on("input",function(ur){this.text(ur||" ").call(V0.positionText,Q.attr("x"),Q.attr("y"))})}return U.classed("js-placeholder",p),Q&&!Q.empty()&&Q.classed("js-placeholder",V),v}TM.exports={draw:TG,SUBTITLE_PADDING_EM:a3,SUBTITLE_PADDING_MATHJAX_EM:n3}});var gp=te((Tue,qM)=>{"use strict";var kG=kt(),SG=m0().utcFormat,yn=gr(),CG=yn.numberFormat,ts=Ut(),Zu=yn.cleanNumber,LG=yn.ms2DateTime,kM=yn.dateTime2ms,ns=yn.ensureNumber,SM=yn.isArrayOrTypedArray,Xu=Rn(),up=Xu.FP_SAFE,yl=Xu.BADNUM,qG=Xu.LOG_CLIP,DG=Xu.ONEWEEK,fp=Xu.ONEDAY,cp=Xu.ONEHOUR,CM=Xu.ONEMIN,LM=Xu.ONESEC,vp=ua(),pp=Pa(),hp=pp.HOUR_PATTERN,dp=pp.WEEKDAY_PATTERN;function k1(e){return Math.pow(10,e)}function i3(e){return e!=null}qM.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function i(_,A){if(_>0)return Math.log(_)/Math.LN10;if(_<=0&&A&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*qG*Math.abs(k-M))}else return yl}function o(_,A,k,M){if((M||{}).msUTC&&ts(_))return+_;var E=kM(_,k||r.calendar);if(E===yl)if(ts(_)){_=+_;var z=Math.floor(yn.mod(_+.05,1)*10),F=Math.round(_-z/10);E=kM(new Date(F))+z/10}else return yl;return E}function l(_,A,k){return LG(_,A,k||r.calendar)}function s(_){return r._categories[Math.round(_)]}function u(_){if(i3(_)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[_]!==void 0)return r._categoriesMap[_];r._categories.push(typeof _=="number"?String(_):_);var A=r._categories.length-1;return r._categoriesMap[_]=A,A}return yl}function f(_,A){for(var k=new Array(A),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,E=M*_,z=0,F=0;FW)z=F+1;else{z=E<(I+W)/2?F:F+1;break}}var B=r._B[z]||0;return isFinite(B)?m(_,r._m2,B):0},b=function(_){var A=r._rangebreaks.length;if(!A)return p(_,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return p(_,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:ns,r.l2c=r.type==="log"?k1:ns,r.l2p=y,r.p2l=b,r.c2p=r.type==="log"?function(_,A){return y(i(_,A))}:y,r.p2c=r.type==="log"?function(_){return k1(b(_))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Zu,r.c2d=r.c2r=r.l2d=r.l2r=ns,r.d2p=r.r2p=function(_){return r.l2p(Zu(_))},r.p2d=r.p2r=b,r.cleanPos=ns):r.type==="log"?(r.d2r=r.d2l=function(_,A){return i(Zu(_),A)},r.r2d=r.r2c=function(_){return k1(Zu(_))},r.d2c=r.r2l=Zu,r.c2d=r.l2r=ns,r.c2r=i,r.l2d=k1,r.d2p=function(_,A){return r.l2p(r.d2r(_,A))},r.p2d=function(_){return k1(b(_))},r.r2p=function(_){return r.l2p(Zu(_))},r.p2r=b,r.cleanPos=ns):r.type==="date"?(r.d2r=r.r2d=yn.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(_,A,k){return r.l2p(o(_,0,k))},r.p2d=r.p2r=function(_,A,k){return l(b(_),A,k)},r.cleanPos=function(_){return yn.cleanDate(_,yl,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var A=d(_);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=ns,r.r2l=d,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return typeof _=="string"&&_!==""?_:ns(_)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var A=h(_);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=ns,r.r2l=h,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return Array.isArray(_)||typeof _=="string"&&_!==""?_:ns(_)},r.setupMultiCategory=function(_){var A=r._traceIndices,k,M,E=r._matchGroup;if(E&&r._categories.length===0){for(var z in E)if(z!==n){var F=t[vp.id2name(z)];A=A.concat(F._traceIndices)}}var I=[[0,{}],[0,{}]],W=[];for(k=0;kF[1]&&(M[z?0:1]=k),M[0]===M[1]){var I=r.l2r(A),W=r.l2r(k);if(A!==void 0){var B=I+1;k!==void 0&&(B=Math.min(B,W)),M[z?1:0]=B}if(k!==void 0){var X=W+1;A!==void 0&&(X=Math.max(X,I)),M[z?0:1]=X}}}},r.cleanRange=function(_,A){r._cleanRange(_,A),r.limitRange(_)},r._cleanRange=function(_,A){A||(A={}),_||(_="range");var k=yn.nestedProperty(r,_).get(),M,E;if(r.type==="date"?E=yn.dfltRange(r.calendar):a==="y"?E=pp.DFLTRANGEY:r._name==="realaxis"?E=[0,1]:E=A.dfltRange||pp.DFLTRANGEX,E=E.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(E[0]=0),!k||k.length!==2){yn.nestedProperty(r,_).set(E);return}var z=k[0]===null,F=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=yn.cleanDate(k[0],yl,r.calendar),k[1]=yn.cleanDate(k[1],yl,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!yn.isDateTime(k[M],r.calendar)){r[_]=E;break}if(r.r2l(k[0])===r.r2l(k[1])){var I=yn.constrain(r.r2l(k[0]),yn.MIN_MS+1e3,yn.MAX_MS-1e3);k[0]=r.l2r(I-1e3),k[1]=r.l2r(I+1e3);break}}else{if(!ts(k[M]))if(!(z||F)&&ts(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[_]=E;break}if(k[M]<-up?k[M]=-up:k[M]>up&&(k[M]=up),k[0]===k[1]){var W=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=W,k[1]+=W}}},r.setScale=function(_){var A=t._size;if(r.overlaying){var k=vp.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=_&&r._r?"_r":"range",E=r.calendar;r.cleanRange(M);var z=r.r2l(r[M][0],E),F=r.r2l(r[M][1],E),I=a==="y";if(I?(r._offset=A.t+(1-r.domain[1])*A.h,r._length=A.h*(r.domain[1]-r.domain[0]),r._m=r._length/(z-F),r._b=-r._m*F):(r._offset=A.l+r.domain[0]*A.w,r._length=A.w*(r.domain[1]-r.domain[0]),r._m=r._length/(F-z),r._b=-r._m*z),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var W,B;if(r._rangebreaks=r.locateBreaks(Math.min(z,F),Math.max(z,F)),r._rangebreaks.length){for(W=0;WF&&(X=!X),X&&r._rangebreaks.reverse();var V=X?-1:1;for(r._m2=V*r._length/(Math.abs(F-z)-r._lBreaks),r._B.push(-r._m2*(I?F:z)),W=0;WE&&(E+=7,zE&&(E+=24,z=M&&z=M&&_=Le.min&&(DeLe.max&&(Le.max=Ne),Fe=!1)}Fe&&F.push({min:De,max:Ne})}};for(k=0;k{"use strict";var DM=Ut(),o3=gr(),EG=Rn().BADNUM,mp=o3.isArrayOrTypedArray,PG=o3.isDateTime,RG=o3.cleanNumber,EM=Math.round;RM.exports=function(r,t,n){var a=r,i=n.noMultiCategory;if(mp(a)&&!a.length)return"-";if(!i&&HG(a))return"multicategory";if(i&&Array.isArray(a[0])){for(var o=[],l=0;li*2}function PM(e){return Math.max(1,(e-1)/1e3)}function IG(e,r){for(var t=e.length,n=PM(t),a=0,i=0,o={},l=0;la*2}function HG(e){return mp(e[0])&&mp(e[1])}});var Ju=te((Sue,UM)=>{"use strict";var BG=kt(),IM=Ut(),ju=gr(),yp=Rn().FP_SAFE,OG=dt(),UG=fn(),HM=ua(),YG=HM.getFromId,GG=HM.isLinked;UM.exports={applyAutorangeOptions:OM,getAutoRange:s3,makePadFn:u3,doAutoRange:WG,findExtremes:ZG,concatExtremes:v3};function s3(e,r){var t,n,a=[],i=e._fullLayout,o=u3(i,r,0),l=u3(i,r,1),s=v3(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return ju.simpleMap(r.range,r.r2l);var v=u[0].val,h=f[0].val;for(t=1;t0&&(F=x-o(k)-l(M),F>_?I/F>A&&(E=k,z=M,A=I/F):I/x>A&&(E={val:k.val,nopad:1},z={val:M.val,nopad:1},A=I/x));function W(ae,K){return Math.max(ae,l(K))}if(v===h){var B=v-1,X=v+1;if(b)if(v===0)a=[0,1];else{var V=(v>0?f:u).reduce(W,0),re=v/(1-Math.min(.5,V/x));a=v>0?[0,re]:[re,0]}else C?a=[Math.max(0,B),Math.max(1,X)]:a=[B,X]}else b?(E.val>=0&&(E={val:0,nopad:1}),z.val<=0&&(z={val:0,nopad:1})):C&&(E.val-A*o(E)<0&&(E={val:0,nopad:1}),z.val<=0&&(z={val:1,nopad:1})),A=(z.val-E.val-zM(r,k.val,M.val))/(x-o(E)-l(z)),a=[E.val-A*o(E),z.val+A*l(z)];return a=OM(a,r),r.limitRange&&r.limitRange(),m&&a.reverse(),ju.simpleMap(a,r.l2r||Number)}function zM(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=_((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=_(t.vpadplus||t.vpad),E=_(t.vpadminus||t.vpad);if(!u){if(C=1/0,x=-1/0,s)for(v=0;v0&&(C=h),h>x&&h-yp&&(C=h),h>x&&h=I;v--)F(v);return{min:n,max:a,opts:t}}function f3(e,r,t,n){BM(e,r,t,n,XG)}function c3(e,r,t,n){BM(e,r,t,n,jG)}function BM(e,r,t,n,a){for(var i=n.tozero,o=n.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else a(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function FM(e){return IM(e)&&Math.abs(e)=r}function JG(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&bp(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&bp(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function $G(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&bp(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&bp(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function bp(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,n=s)}}return t=JG(t,r),n=$G(n,r),[t,n]}});var Dn=te((Cue,cA)=>{"use strict";var Ao=kt(),ra=Ut(),W0=fa(),C1=dt(),ut=gr(),Z0=ut.strTranslate,dc=vi(),KG=T1(),L1=Pt(),$i=fn(),QG=gl(),YM=q2(),za=Rn(),eV=za.ONEMAXYEAR,wp=za.ONEAVGYEAR,Mp=za.ONEMINYEAR,rV=za.ONEMAXQUARTER,g3=za.ONEAVGQUARTER,Ap=za.ONEMINQUARTER,tV=za.ONEMAXMONTH,X0=za.ONEAVGMONTH,Tp=za.ONEMINMONTH,Ki=za.ONEWEEK,ei=za.ONEDAY,$u=ei/2,is=za.ONEHOUR,q1=za.ONEMIN,kp=za.ONESEC,nV=za.ONEMILLI,aV=za.ONEMICROSEC,pc=za.MINUS_SIGN,Cp=za.BADNUM,m3={K:"zeroline"},y3={K:"gridline",L:"path"},b3={K:"minor-gridline",L:"path"},eA={K:"tick",L:"path"},GM={K:"tick",L:"text"},VM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Lp=Ka(),S1=Lp.MID_SHIFT,gc=Lp.CAP_SHIFT,D1=Lp.LINE_SPACING,iV=Lp.OPPOSITE_SIDE,Sp=3,_r=cA.exports={};_r.setConvert=gp();var oV=l3(),Qs=ua(),lV=Qs.idSort,sV=Qs.isLinked;_r.id2name=Qs.id2name;_r.name2id=Qs.name2id;_r.cleanId=Qs.cleanId;_r.list=Qs.list;_r.listIds=Qs.listIds;_r.getFromId=Qs.getFromId;_r.getFromTrace=Qs.getFromTrace;var rA=Ju();_r.getAutoRange=rA.getAutoRange;_r.findExtremes=rA.findExtremes;var uV=1e-4;function M3(e){var r=(e[1]-e[0])*uV;return[e[0]-r,e[1]+r]}_r.coerceRef=function(e,r,t,n,a,i){var o=n.charAt(n.length-1),l=t._fullLayout._subplots[o+"axis"],s=n+"ref",u={};return a||(a=l[0]||(typeof i=="string"?i:i[0])),i||(i=a),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:a},ut.coerce(e,r,u,s)};_r.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};_r.coercePosition=function(e,r,t,n,a,i){var o,l,s=_r.getRefType(n);if(s!=="range")o=ut.ensureNumber,l=t(a,i);else{var u=_r.getFromId(r,n);i=u.fraction2r(i),l=t(a,i),o=u.cleanPos}e[a]=o(l)};_r.cleanPosition=function(e,r,t){var n=t==="paper"||t==="pixel"?ut.ensureNumber:_r.getFromId(r,t).cleanPos;return n(e)};_r.redrawComponents=function(e,r){r=r||_r.listIds(e);var t=e._fullLayout;function n(a,i,o,l){for(var s=C1.getComponentMethod(a,i),u={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};_r.saveRangeInitial=function(e,r){for(var t=_r.list(e,"",!0),n=!1,a=0;av*.3||u(n)||u(a))){var h=t.dtick/2;e+=e+ho){var l=Number(t.substr(1));i.exactYears>o&&l%12===0?e=_r.tickIncrement(e,"M6","reverse")+ei*1.5:i.exactMonths>o?e=_r.tickIncrement(e,"M1","reverse")+ei*15.5:e-=$u;var s=_r.tickIncrement(e,t);if(s<=n)return s}return e}_r.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var n=r.dtick&&ra(r._tmin),a;if(n){var i=_r.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,i*.99+r._tmin*.01]}else{var o=ut.simpleMap(r.range,r.r2l);a=[o[0],.8*o[0]+.2*o[1]]}if(e.range=ut.simpleMap(a,r.l2r),e._isMinor=!0,_r.prepTicks(e,t),n){var l=ra(r.dtick),s=ra(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?h3(u,f)?u===2*Ki&&f===2*ei&&(e.dtick=Ki):u===2*Ki&&f===3*ei?e.dtick=Ki:u===Ki&&!(r._input.minor||{}).nticks?e.dtick=ei:XM(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":h3(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?h3(u,f)||(e.dtick=XM(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function h3(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function XM(e,r){return Math.abs(e/r-1)<.001}_r.prepTicks=function(e,r){var t=ut.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?ut.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=ut.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,_r.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=n-1,o=n):(i=n,o=n);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,v=0;f>=Mp?u>=Mp&&u<=eV?v=u:v=wp:t===g3&&f>=Ap?u>=Ap&&u<=rV?v=u:v=g3:f>=Tp?u>=Tp&&u<=tV?v=u:v=X0:t===Ki&&f>=Ki?v=Ki:f>=ei?v=ei:t===$u&&f>=$u?v=$u:t===is&&f>=is&&(v=is);var h;v>=u&&(v=u,h=!0);var d=a+v;if(r.rangebreaks&&v>0){for(var m=84,p=0,y=0;yKi&&(v=u)}(v>0||n===0)&&(e[n].periodX=a+v/2)}}_r.calcTicks=function(r,t){for(var n=r.type,a=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||ut.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=ut.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(x?0:1);_--){var A=!_;_?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=_?r:ut.extendFlat({},r,r.minor);if(A?_r.prepMinorTicks(k,r,t):_r.prepTicks(k,t),k.tickmode==="array"){_?(y=[],m=jM(r,!A)):(b=[],p=jM(r,!A));continue}if(k.tickmode==="sync"){y=[],m=pV(r);continue}var M=M3(u),E=M[0],z=M[1],F=ra(k.dtick),I=n==="log"&&!(F||k.dtick.charAt(0)==="L"),W=_r.tickFirst(k,t);if(_){if(r._tmin=W,W=z:X<=z;X=_r.tickIncrement(X,ae,f,a)){if(_&&V++,k.rangebreaks&&!f){if(X=h)break}if(y.length>d||X===B)break;B=X;var K={value:X};_?(I&&X!==(X|0)&&(K.simpleLabel=!0),i>1&&V%i&&(K.skipLabel=!0),y.push(K)):(K.minor=!0,b.push(K))}}if(!b||b.length<2)s=!1;else{var ee=(b[1].value-b[0].value)*(l?-1:1);BV(ee,r.tickformat)||(s=!1)}if(!s)C=y;else{var fe=y.concat(b);o&&y.length&&(fe=fe.slice(1)),fe=fe.sort(function(tr,ur){return tr.value-ur.value}).filter(function(tr,ur,cr){return ur===0||tr.value!==cr[ur-1].value});var he=fe.map(function(tr,ur){return tr.minor===void 0&&!tr.skipLabel?ur:null}).filter(function(tr){return tr!==null});he.forEach(function(tr){s.map(function(ur){var cr=tr+ur;cr>=0&&cr-1;we--){if(y[we].drop){y.splice(we,1);continue}y[we].value=p3(y[we].value,r);var $=r.c2p(y[we].value);(pe?Q>$-U:Q<$+U)?y.splice(f?we+1:we,1):Q=$}}S3(r)&&Math.abs(u[1]-u[0])===360&&y.pop(),r._tmax=(y[y.length-1]||{}).value,r._prevDateHead="",r._inCalcTicks=!0;var ke,Oe=function(tr){tr.text="",r._prevDateHead=ke};y=y.concat(b);function Ie(tr,ur){var cr=_r.tickText(tr,ur.value,!1,ur.simpleLabel),Ke=ur.periodX;return Ke!==void 0&&(cr.periodX=Ke,(Ke>h||Keh&&(cr.periodX=h),Kea&&hwp)r/=wp,n=a(10),e.dtick="M"+12*as(r,n,_p);else if(i>X0)r/=X0,e.dtick="M"+as(r,1,JM);else if(i>ei){if(e.dtick=as(r,ei,e._hasDayOfWeekBreaks?[1,2,7,14]:gV),!t){var o=_r.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=ut.dateTick0(e.calendar,2):e.tick0=ut.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>is?e.dtick=as(r,is,JM):i>q1?e.dtick=as(r,q1,$M):i>kp?e.dtick=as(r,kp,$M):(n=a(10),e.dtick=as(r,n,_p))}else if(e.type==="log"){e.tick0=0;var s=ut.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,n=a(10),e.dtick="L"+as(r,n,_p)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):S3(e)?(e.tick0=0,n=1,e.dtick=as(r,n,mV)):(e.tick0=0,n=a(10),e.dtick=as(r,n,_p));if(e.dtick===0&&(e.dtick=1),!ra(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function iA(e){var r=e.dtick;if(e._tickexponent=0,!ra(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=ei&&a<=10||r>=ei*15)e._tickround="d";else if(r>=q1&&a<=16||r>=is)e._tickround="M";else if(r>=kp&&a<=19||r>=q1)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,i)-20,e._tickround<0&&(e._tickround=4)}}else if(ra(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ra(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(j0(e.exponentformat)&&e.exponentformat!=="SI extended"&&!A3(s)||j0(e.exponentformat)&&e.exponentformat==="SI extended"&&!T3(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}_r.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(ra(r))return ut.increment(e,a*r);var i=r.charAt(0),o=a*Number(r.substr(1));if(i==="M")return ut.incrementMonth(e,o,n);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?aA:nA,s=e+a*.01,u=ut.roundUp(ut.mod(s,1),l,t);return Math.floor(s)+Math.log(Ao.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};_r.tickFirst=function(e,r){var t=e.r2l||Number,n=ut.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&b<=e._length?y:null};if(i&&ut.isArrayOrTypedArray(e.ticktext)){var v=ut.simpleMap(e.range,e.r2l),h=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(u=0;u"+l;else{var u=P1(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function bV(e,r,t,n,a){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(a==="never"&&(a=""),n&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=E1(Math.pow(10,o),e,a,n);else if(ra(i)||s==="D"&&(e.minorloglabels==="complete"||ut.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(ut.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),v=f.split("e"),h=+v[1],d=Math.abs(h),m=e.exponentformat;m==="power"||j0(m)&&m!=="SI extended"&&A3(h)||j0(m)&&m==="SI extended"&&T3(h)?(r.text=v[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":pc)+d+""),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=v[0]+m+(h>0?"+":pc)+d:(r.text=E1(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,ut.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var p=String(r.text).charAt(0);(p==="0"||p==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function _V(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function xV(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],i=a[1]===void 0?"":String(a[1]),o=a[0]===void 0?"":String(a[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function wV(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=E1(r.x,e,a,n)}function MV(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=AV(i);if(o[1]>=100)r.text=E1(ut.deg2rad(r.x),e,a,n);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=pc+r.text)}}}else r.text=E1(r.x,e,a,n)}function AV(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function n(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var a=n(e),i=e*a,o=Math.abs(t(i,a));return[Math.round(i/o),Math.round(a/o)]}var lA=["f","p","n","\u03BC","m","","k","M","G","T"],TV=["q","r","y","z","a",...lA,"P","E","Z","Y","R","Q"],j0=e=>["SI","SI extended","B"].includes(e);function A3(e){return e>14||e<-15}function T3(e){return e>32||e<-30}function kV(e,r){return j0(r)?!!(r==="SI extended"&&T3(e)||r!=="SI extended"&&A3(e)):!1}function E1(e,r,t,n){var a=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=_r.getTickFormat(r),u=r.separatethousands;if(n){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ra(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};iA(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,pc);var v=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+m+"":o==="B"&&l===9?e+="B":j0(o)&&(e+=o==="SI extended"?TV[l/3+10]:lA[l/3+5])}return a?pc+e:e}_r.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*X0}function n(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var v=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return v===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):v-h}else return typeof s=="number"?1:-1}function a(s,u,f){var v=f||function(m){return m},h=u[0],d=u[1];return(!h&&typeof h!="number"||v(h)<=v(s))&&(!d&&typeof d!="number"||v(d)>=v(s))}function i(s,u){var f=u[0]===null,v=u[1]===null,h=n(s,u[0])>=0,d=n(s,u[1])<=0;return(f||h)&&(v||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return ut.syncOrAsync(a.map(function(s){return function(){if(s){var u=_r.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=_r.drawOne(e,u,t);return u._shiftPusher&&w3(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=ut.simpleMap(u._r,u.r2l),f}}}))};_r.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),v=_r.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),w3(r,m,n,!0),w3(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=HV(r,n));var p=h[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,C=r._mainMirrorPosition,x=r._vals=_r.calcTicks(r),_=[r.mirror,b,C].join("_");for(i=0;i0?Ke.bottom-ur:0,cr))));var Ye=0,Ar=0;if(r._shiftPusher&&(Ye=Math.max(cr,Ke.height>0?Ue==="l"?ur-Ke.left:Ke.right-ur:0),r.title.text!==s._dfltTitle[f]&&(Ar=(r._titleStandoff||0)+(r._titleScoot||0),Ue==="l"&&(Ar+=QM(r))),r._fullDepth=Math.max(Ye,Ar)),r.automargin){pr={x:0,y:0,r:0,l:0,t:0,b:0};var zr=[0,1],Er=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ue==="b"?pr[Ue]=r._depth:(pr[Ue]=r._depth=Math.max(Ke.width>0?ur-Ke.top:0,cr),zr.reverse()),Ke.width>0){var Ae=Ke.right-(r._offset+r._length);Ae>0&&(pr.xr=1,pr.r=Ae);var je=r._offset-Ke.left;je>0&&(pr.xl=0,pr.l=je)}}else if(Ue==="l"?(r._depth=Math.max(Ke.height>0?ur-Ke.left:0,cr),pr[Ue]=r._depth-Er):(r._depth=Math.max(Ke.height>0?Ke.right-ur:0,cr),pr[Ue]=r._depth+Er,zr.reverse()),Ke.height>0){var hr=Ke.bottom-(r._offset+r._length);hr>0&&(pr.yb=0,pr.b=hr);var wr=r._offset-Ke.top;wr>0&&(pr.yt=1,pr.t=wr)}pr[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[zr[0]],r.title.text!==s._dfltTitle[f]&&(pr[Ue]+=QM(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(dr={x:0,y:0,r:0,l:0,t:0,b:0},dr[tr]=r.linewidth,r.mirror&&r.mirror!==!0&&(dr[tr]+=cr),r.mirror===!0||r.mirror==="ticks"?dr[v]=r._anchorAxis.domain[zr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(dr[v]=[r._counterDomainMin,r._counterDomainMax][zr[1]]))}or&&(Te=C1.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(KM(pr,r.automargin),KM(dr,r.automargin)),W0.autoMargin(e,k3(r),pr),W0.autoMargin(e,uA(r),dr),W0.autoMargin(e,fA(r),Te)}),ut.syncOrAsync(Ie)}};function KM(e,r){if(e){var t=Object.keys(VM).reduce(function(n,a){return r.indexOf(a)!==-1&&VM[a].forEach(function(i){n[i]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function SV(e,r){var t=[],n,a=function(i,o){var l=i.xbnd[o];l!==null&&t.push(ut.extendFlat({},i,{x:l}))};if(r.length){for(n=0;ne.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(n){var f=e.side,v=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;n=n*v}return e._id.charAt(0)==="x"?function(h){return Z0(a+e._offset+e.l2p(_3(h))+t,i+n)}:function(h){return Z0(i+n,a+e._offset+e.l2p(_3(h))+t)}};function _3(e){return e.periodX!==void 0?e.periodX:e.x}function DV(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(m){return r.indexOf(m)!==-1},a=n("top"),i=n("left"),o=n("right"),l=n("bottom"),s=n("inside"),u=t!=="boundaries"&&(l||i||a||o);if(!u&&!s)return[0,0];var f=e.side,v=u?(e.tickwidth||0)/2:0,h=Sp,d=e.tickfont?e.tickfont.size:12;return(l||a)&&(v+=d*gc,h+=(e.linewidth||0)/2),(i||o)&&(v+=(e.linewidth||0)/2,h+=Sp),s&&f==="top"&&(h-=d*(1-gc)),(i||a)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h:0]}_r.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var i=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};_r.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",i=function(B){return n.indexOf(B)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=a!=="boundaries"&&(u||l||o||s),v=i("inside"),h=n==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&a!=="boundaries",d=0,m=0,p=h?e.ticklen:0;if(v?p*=-1:f&&(p=0),h&&(d+=p,t)){var y=ut.deg2rad(t);d=p*Math.cos(y)+1,m=p*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(v?-1:1);var b={labelStandoff:d,labelShift:m},C,x,_,A,k=0,M=e.side,E=e._id.charAt(0),z=e.tickangle,F;if(E==="x")F=!v&&M==="bottom"||v&&M==="top",A=F?1:-1,v&&(A*=-1),C=m*A,x=r+d*A,_=F?1:-.2,Math.abs(z)===90&&(v?_+=S1:z===-90&&M==="bottom"?_=gc:z===90&&M==="top"?_=S1:_=.5,k=S1/2*(z/90)),b.xFn=function(B){return B.dx+C+k*B.fontSize},b.yFn=function(B){return B.dy+x+B.fontSize*_},b.anchorFn=function(B,X){if(f){if(l)return"end";if(s)return"start"}return!ra(X)||X===0||X===180?"middle":X*A<0!==v?"end":"start"},b.heightFn=function(B,X,V){return X<-60||X>60?-.5*V:e.side==="top"!==v?-V:0};else if(E==="y"){if(F=!v&&M==="left"||v&&M==="right",A=F?1:-1,v&&(A*=-1),C=d,x=m*A,_=0,!v&&Math.abs(z)===90&&(z===-90&&M==="left"||z===90&&M==="right"?_=gc:_=.5),v){var I=ra(z)?+z:0;if(I!==0){var W=ut.deg2rad(I);k=Math.abs(Math.sin(W))*gc*A,_=0}}b.xFn=function(B){return B.dx+r-(C+B.fontSize*_)*A+k*B.fontSize},b.yFn=function(B){return B.dy+x+B.fontSize*S1},b.anchorFn=function(B,X){return ra(X)&&Math.abs(X)===90?"middle":F?"end":"start"},b.heightFn=function(B,X,V){return e.side==="right"&&(X*=-1),X<-30?-V:X<30?-.5*V:0}}return b};function qp(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}_r.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+n).data(a,qp);i.exit().remove(),i.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return L1.stroke(Ao.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return $i.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Dp(r,[eA]),i.attr("transform",t.transFn)};_r.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,i=a?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&_r.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;m--){var p=m?h:d;if(p){var y=p.selectAll("path."+n).data(m?o:i,qp);y.exit().remove(),y.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(b){return L1.stroke(Ao.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return $i.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}Dp(r,[y3,b3])}};_r.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=_r.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return lV(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(L1.stroke,r.zerolinecolor||L1.defaultLine).style("stroke-width",$i.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Dp(r,[m3])};_r.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,i=r.zerolinelayer==="above traces",o=t.cls||a+"tick",l=t.vals.filter(function(ee){return ee.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],v=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],qp),h=[];v.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(ee){var fe=Ao.select(this),he=e._promises.length;fe.call(dc.positionText,s.xFn(ee),s.yFn(ee)).call($i.font,{family:ee.font,size:ee.fontSize,color:ee.fontColor,weight:ee.fontWeight,style:ee.fontStyle,variant:ee.fontVariant,textcase:ee.fontTextcase,lineposition:ee.fontLineposition,shadow:ee.fontShadow}).text(ee.text).call(dc.convertToTspans,e),e._promises[he]?h.push(e._promises.pop().then(function(){d(fe,u)})):d(fe,u)}),Dp(r,[GM]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(ee){Ao.select(this).select("text").call(dc.positionText,s.xFn(ee),s.yFn(ee))});function d(ee,fe){ee.each(function(he){var De=Ao.select(this),Ne=De.select(".text-math-group"),Fe=s.anchorFn(he,fe),Xe=t.transFn.call(De.node(),he)+(ra(fe)&&+fe!=0?" rotate("+fe+","+s.xFn(he)+","+(s.yFn(he)-he.fontSize/2)+")":""),Le=dc.lineCount(De),rr=D1*he.fontSize,se=s.heightFn(he,ra(fe)?+fe:0,(Le-1)*rr);if(se&&(Xe+=Z0(0,se)),Ne.empty()){var ye=De.select("text");ye.attr({transform:Xe,"text-anchor":Fe}),ye.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var we=$i.bBox(Ne.node()).width,pe=we*{end:-.5,start:.5}[Fe];Ne.attr("transform",Xe+Z0(pe,0))}})}r._adjustTickLabelsOverflow=function(){var ee=r.ticklabeloverflow;if(!(!ee||ee==="allow")){var fe=ee.indexOf("hide")!==-1,he=r._id.charAt(0)==="x",De=0,Ne=he?e._fullLayout.width:e._fullLayout.height;if(ee.indexOf("domain")!==-1){var Fe=ut.simpleMap(r.range,r.r2l);De=r.l2p(Fe[0])+r._offset,Ne=r.l2p(Fe[1])+r._offset}var Xe=Math.min(De,Ne),Le=Math.max(De,Ne),rr=r.side,se=1/0,ye=-1/0;v.each(function(Q){var $=Ao.select(this),ke=$.select(".text-math-group");if(ke.empty()){var Oe=$i.bBox($.node()),Ie=0;he?(Oe.right>Le||Oe.leftLe||Oe.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+Fe._id]?$.style("display","none"):Le.K==="tick"&&!Xe&&$.node().style.display!=="none"&&$.style("display",null)})})})})},d(v,f+1?f:u);function m(){return h.length&&Promise.all(h)}var p=null;function y(){if(d(v,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){p=r.autotickangles[0];var ee=0,fe=[],he,De=1;v.each(function(pr){ee=Math.max(ee,pr.fontSize);var dr=r.l2p(pr.x),Te=x3(this),Ye=$i.bBox(Te.node());De=Math.max(De,dc.lineCount(Te)),fe.push({top:0,bottom:10,height:10,left:dr-Ye.width/2,right:dr+Ye.width/2+2,width:Ye.width+2})});var Ne=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Fe=l.length,Xe=Math.abs((l[Fe-1].x-l[0].x)*r._m)/(Fe-1),Le=Ne?Xe/2:Xe,rr=Ne?r.ticklen:ee*1.25*De,se=Math.sqrt(Math.pow(Le,2)+Math.pow(rr,2)),ye=Le/se,we=r.autotickangles.map(function(pr){return pr*Math.PI/180}),pe=we.find(function(pr){return Math.abs(Math.cos(pr))<=ye});pe===void 0&&(pe=we.reduce(function(pr,dr){return Math.abs(Math.cos(pr))re*V&&(W=V,z[E]=F[E]=B[E])}var ae=Math.abs(W-I);ae-A>0?(ae-=A,A*=1+A/ae):A=0,r._id.charAt(0)!=="y"&&(A=-A),z[M]=x.p2r(x.r2p(F[M])+k*A),x.autorange==="min"||x.autorange==="max reversed"?(z[0]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0):(x.autorange==="max"||x.autorange==="min reversed")&&(z[1]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[x._name+".range"]=z}var K=ut.syncOrAsync(b);return K&&K.then&&e._promises.push(K),K};function EV(e,r,t){var n=r._id+"divider",a=t.vals,i=t.layer.selectAll("path."+n).data(a,qp);i.exit().remove(),i.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(L1.stroke,r.dividercolor).style("stroke-width",$i.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}_r.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:n==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return i._offset;if(a==="bottom"||a==="right")return i._offset+i._length};function QM(e){var r=e.title.font.size,t=(e.title.text.match(dc.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(gc+t*D1):t?r*(t+1)*D1:r}function PV(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(dc.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*gc:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(S1+l*D1));else{var s=P1(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(a==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=_r.getPxPosition(e,r),v,h,d;a==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,h=r.side==="right"?f+o:f-o,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var p=r._selections[r._id+"tick"];if(m={selection:p,side:r.side},p&&p.node()&&p.node().parentNode){var y=$i.getTranslate(p.node().parentNode);m.offsetLeft=y.x,m.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=o,KG.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:m,transform:v,attributes:{x:h,y:d,"text-anchor":"middle"}})}_r.shouldShowZeroLine=function(e,r,t){var n=ut.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Cp)&&(sA(r,0)||!RV(e,r,t,n)||zV(e,r))};_r.clipEnds=function(e,r){return r.filter(function(t){return sA(e,t.x)})};function sA(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=aV:/%L/.test(r)?e>=nV:/%[SX]/.test(r)?e>=kp:/%M/.test(r)?e>=q1:/%[HI]/.test(r)?e>=is:/%p/.test(r)?e>=$u:/%[Aadejuwx]/.test(r)?e>=ei:/%[UVW]/.test(r)?e>=Ki:/%[Bbm]/.test(r)?e>=Tp:/%[q]/.test(r)?e>=Ap:/%[Yy]/.test(r)?e>=Mp:!0}});var hA=te((Lue,vA)=>{"use strict";vA.exports=function(r,t,n){var a,i;if(n){var o=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[o?1:0],i=n[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?a:void 0),s=r("autorangeoptions.maxallowed",a===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var C3=te((que,dA)=>{"use strict";var OV=hA();dA.exports=function(r,t,n,a){var i=t._template||{},o=t.type||i.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var s;!a.noInsiderange&&o!=="log"&&(s=n("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=n("range",s)))}var u=t.getAutorangeDflt(l,a),f=n("autorange",u),v;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,v=!0),v||(u=t.getAutorangeDflt(l,a),f=n("autorange",u)),f&&(OV(n,f,l),(o==="linear"||o==="-")&&n("rangemode")),t.cleanRange()}});var gA=te((Due,pA)=>{var UV={left:0,top:0};pA.exports=YV;function YV(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,i=GV(r);return t[0]=n-i.left,t[1]=a-i.top,t}function GV(e){return e===window||e===document||e===document.body?UV:e.getBoundingClientRect()}});var L3=te((Eue,mA)=>{"use strict";var VV=a2();function WV(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}mA.exports=VV&&WV()});var bA=te((Pue,yA)=>{"use strict";yA.exports=function(r,t,n,a,i){var o=(r-n)/(a-n),l=o+t/(a-n),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var wA=te((Rue,xA)=>{"use strict";var _A=gr(),ZV=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];xA.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=_A.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=_A.constrain(Math.floor(t*3),0,2),ZV[t][r]}});var AA=te((zue,MA)=>{"use strict";var XV=g1(),jV=Ed(),JV=l1().getGraphDiv,$V=n1(),q3=MA.exports={};q3.wrapped=function(e,r,t){e=JV(e),e._fullLayout&&jV.clear(e._fullLayout._uid+$V.HOVERID),q3.raw(e,r,t)};q3.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&XV.triggerHandler(r,"plotly_beforehover",t)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}))}});var To=te((Nue,CA)=>{"use strict";var KV=gA(),D3=o2(),QV=L3(),eW=gr().removeElement,rW=Pa(),mc=CA.exports={};mc.align=bA();mc.getCursor=wA();var kA=AA();mc.unhover=kA.wrapped;mc.unhoverRaw=kA.raw;mc.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,v,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,QV?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function m(x,_,A){return Math.abs(x)a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var _;v.target===h?_=v:(_={target:h,srcElement:h,toElement:h},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(A=>{var k=v[A];!_[A]&&typeof k!="function"&&(_[A]=k)})),r.clickFn&&r.clickFn(n,_),d||h.dispatchEvent(new MouseEvent("click",x))}t._dragging=!1,t._dragged=!1}};function SA(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}mc.coverSlip=SA;function TA(e){return KV(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ku=te((Fue,LA)=>{"use strict";LA.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var EA=te((Iue,DA)=>{"use strict";var E3=Ku(),R1="data-savedcursor",qA="!!";DA.exports=function(r,t){var n=r.attr(R1);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),i=0;i{"use strict";var P3=$a(),tW=vl();PA.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:tW.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:P3({editType:"legend"}),grouptitlefont:P3({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:P3({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Pp=te(Ep=>{"use strict";Ep.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Ep.isVertical=function(r){return r.orientation!=="h"};Ep.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var F3=te((Oue,RA)=>{"use strict";var z3=dt(),Qi=gr(),nW=bn(),aW=bo(),iW=R3(),oW=A0(),N3=Pp();function lW(e,r,t,n){var a=r[e]||{},i=nW.newContainer(t,e);function o(ae,K){return Qi.coerce(a,i,iW,ae,K)}var l=Qi.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var s=o("visible");if(s){for(var u,f=function(ae,K){var ee=u._input,fe=u;return Qi.coerce(ee,fe,aW,ae,K)},v=t.font||{},h=Qi.coerceFont(o,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),d=0,m=!1,p="normal",y=(t.shapes||[]).filter(function(ae){return ae.showlegend}),b=n.concat(y).filter(function(ae){return e===(ae.legend||"legend")}),C=0;C(e==="legend"?1:0));if(_===!1&&(t[e]=void 0),!(_===!1&&!a.uirevision)&&(o("uirevision",t.uirevision),_!==!1)){o("borderwidth");var A=o("orientation"),k=o("yref"),M=o("xref"),E=A==="h",z=k==="paper",F=M==="paper",I,W,B,X="left";E?(I=0,z3.getComponentMethod("rangeslider","isVisible")(r.xaxis)?z?(W=1.1,B="bottom"):(W=1,B="top"):z?(W=-.1,B="top"):(W=0,B="bottom")):(W=1,B="auto",F?I=1.02:(I=1,X="right")),Qi.coerce(a,i,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:I}},"x"),Qi.coerce(a,i,{y:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:W}},"y"),o("traceorder",p),N3.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",X),o("yanchor",B),o("maxheight"),o("valign"),Qi.noneOrAll(a,i,["x","y"]);var V=o("title.text");if(V){o("title.side",E?"left":"top");var re=Qi.extendFlat({},l,{size:Qi.bigFont(l.size)});Qi.coerceFont(o,"title.font",re)}}}}RA.exports=function(r,t,n){var a,i=n.slice(),o=t.shapes;if(o)for(a=0;a{"use strict";var J0=dt(),H3=gr(),sW=H3.pushUnique,I3=!0;zA.exports=function(r,t,n){var a=t._fullLayout;if(t._dragged||t._editing)return;var i=a.legend.itemclick,o=a.legend.itemdoubleclick,l=a.legend.groupclick;n===1&&i==="toggle"&&o==="toggleothers"&&I3&&t.data&&t._context.showTips&&H3.notifier(H3._(t,"Double-click on legend to isolate one trace"),"long"),I3=!1;var s;if(n===1?s=i:n===2&&(s=o),!s)return;var u=l==="togglegroup",f=a.hiddenlabels?a.hiddenlabels.slice():[],v=r.data()[0][0];if(v.groupTitle&&v.noClick)return;var h=t._fullData,d=(a.shapes||[]).filter(function(tr){return tr.showlegend}),m=h.concat(d),p=v.trace;p._isShape&&(p=p._fullInput);var y=p.legendgroup,b,C,x,_,A,k,M={},E=[],z=[],F=[];function I(tr,ur){var cr=E.indexOf(tr),Ke=M.visible;return Ke||(Ke=M.visible=[]),E.indexOf(tr)===-1&&(E.push(tr),cr=E.length-1),Ke[cr]=ur,cr}var W=(a.shapes||[]).map(function(tr){return tr._input}),B=!1;function X(tr,ur){W[tr].visible=ur,B=!0}function V(tr,ur){if(!(v.groupTitle&&!u)){var cr=tr._fullInput||tr,Ke=cr._isShape,pr=cr.index;pr===void 0&&(pr=cr._index);var dr=cr.visible===!1?!1:ur;Ke?X(pr,dr):I(pr,dr)}}var re=p.legend,ae=p._fullInput,K=ae&&ae._isShape;if(!K&&J0.traceIs(p,"pie-like")){var ee=v.label,fe=f.indexOf(ee);if(s==="toggle")fe===-1?f.push(ee):f.splice(fe,1);else if(s==="toggleothers"){var he=fe!==-1,De=[];for(b=0;b{"use strict";FA.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var BA=te((Gue,HA)=>{"use strict";var IA=dt(),O3=Pp();HA.exports=function(r,t,n){var a=t._inHover,i=O3.isGrouped(t),o=O3.isReversed(t),l={},s=[],u=!1,f={},v=0,h=0,d,m;function p(ae,K,ee){if(t.visible!==!1&&!(n&&ae!==t._id))if(K===""||!O3.isGrouped(t)){var fe="~~i"+v;s.push(fe),l[fe]=[ee],v++}else s.indexOf(K)===-1?(s.push(K),u=!0,l[K]=[ee]):l[K].push(ee)}for(d=0;dF&&(z=F)}M[d][0]._groupMinRank=z,M[d][0]._preGroupSort=d}var I=function(ae,K){return ae[0]._groupMinRank-K[0]._groupMinRank||ae[0]._preGroupSort-K[0]._preGroupSort},W=function(ae,K){return ae.trace.legendrank-K.trace.legendrank||ae._preSort-K._preSort};for(M.forEach(function(ae,K){ae[0]._preGroupSort=K}),M.sort(I),d=0;d{"use strict";var Rp=gr();function OA(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}yc.formatPiePercent=function(r,t){var n=OA((r*100).toPrecision(3));return Rp.numSeparate(n,t)+"%"};yc.formatPieValue=function(r,t){var n=OA(r.toPrecision(10));return Rp.numSeparate(n,t)};yc.getFirstFilled=function(r,t){if(Rp.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var uW=fn(),fW=Pt();UA.exports=function(r,t,n,a){var i=n.marker.pattern;i&&i.shape?uW.pointStyle(r,n,a,t):fW.fill(r,t.color)}});var ZA=te((Zue,WA)=>{"use strict";var GA=Pt(),VA=U3().castOption,cW=YA();WA.exports=function(r,t,n,a){var i=n.marker.line,o=VA(i.color,t.pts)||GA.defaultLine,l=VA(i.width,t.pts)||0;r.call(cW,t,n,a).style("stroke-width",l).call(GA.stroke,o)}});var W3=te((Xue,QA)=>{"use strict";var ri=kt(),Y3=dt(),Oa=gr(),XA=Oa.strTranslate,eo=fn(),ko=Pt(),G3=es().extractOpts,zp=Qa(),vW=ZA(),hW=U3().castOption,dW=B3(),jA=12,JA=5,bc=2,pW=10,$0=5;QA.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var i=n.itemsizing==="constant",o=n.itemwidth,l=(o+dW.itemGap*2)/2,s=XA(l,0),u=function(M,E,z,F){var I;if(M+1)I=M;else if(E&&E.width>0)I=E.width;else return 0;return i?F:Math.min(I,z)};r.each(function(M){var E=ri.select(this),z=Oa.ensureSingle(E,"g","layers");z.style("opacity",M[0].trace.opacity);var F=n.indentation,I=n.valign,W=M[0].lineHeight,B=M[0].height;if(I==="middle"&&F===0||!W||!B)z.attr("transform",null);else{var X={top:1,bottom:-1}[I],V=X*(.5*(W-B+3))||0,re=n.indentation;z.attr("transform",XA(re,V))}var ae=z.selectAll("g.legendfill").data([M]);ae.enter().append("g").classed("legendfill",!0);var K=z.selectAll("g.legendlines").data([M]);K.enter().append("g").classed("legendlines",!0);var ee=z.selectAll("g.legendsymbols").data([M]);ee.enter().append("g").classed("legendsymbols",!0),ee.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(h).each(m).each(d).each(y).each(_).each(x).each(f).each(v).each(b).each(C);function f(M){var E=$A(M),z=E.showFill,F=E.showLine,I=E.showGradientLine,W=E.showGradientFill,B=E.anyFill,X=E.anyLine,V=M[0],re=V.trace,ae,K,ee=G3(re),fe=ee.colorscale,he=ee.reversescale,De=function(ye){if(ye.size())if(z)eo.fillGroupStyle(ye,t,!0);else{var we="legendfill-"+re.uid;eo.gradient(ye,t,we,V3(he),fe,"fill")}},Ne=function(ye){if(ye.size()){var we="legendline-"+re.uid;eo.lineGroupStyle(ye),eo.gradient(ye,t,we,V3(he),fe,"stroke")}},Fe=zp.hasMarkers(re)||!B?"M5,0":X?"M5,-2":"M5,-3",Xe=ri.select(this),Le=Xe.select(".legendfill").selectAll("path").data(z||W?[M]:[]);if(Le.enter().append("path").classed("js-fill",!0),Le.exit().remove(),Le.attr("d",Fe+"h"+o+"v6h-"+o+"z").call(De),F||I){var rr=u(void 0,re.line,pW,JA);K=Oa.minExtend(re,{line:{width:rr}}),ae=[Oa.minExtend(V,{trace:K})]}var se=Xe.select(".legendlines").selectAll("path").data(F||I?[ae]:[]);se.enter().append("path").classed("js-line",!0),se.exit().remove(),se.attr("d",Fe+(I?"l"+o+",0.0001":"h"+o)).call(F?eo.lineGroupStyle:Ne)}function v(M){var E=$A(M),z=E.anyFill,F=E.anyLine,I=E.showLine,W=E.showMarker,B=M[0],X=B.trace,V=!W&&!F&&!z&&zp.hasText(X),re,ae;function K(Le,rr,se,ye){var we=Oa.nestedProperty(X,Le).get(),pe=Oa.isArrayOrTypedArray(we)&&rr?rr(we):we;if(i&&pe&&ye!==void 0&&(pe=ye),se){if(pese[1])return se[1]}return pe}function ee(Le){return B._distinct&&B.index&&Le[B.index]?Le[B.index]:Le[0]}if(W||V||I){var fe={},he={};if(W){fe.mc=K("marker.color",ee),fe.mx=K("marker.symbol",ee),fe.mo=K("marker.opacity",Oa.mean,[.2,1]),fe.mlc=K("marker.line.color",ee),fe.mlw=K("marker.line.width",Oa.mean,[0,5],bc),he.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var De=K("marker.size",Oa.mean,[2,16],jA);fe.ms=De,he.marker.size=De}I&&(he.line={width:K("line.width",ee,[0,10],JA)}),V&&(fe.tx="Aa",fe.tp=K("textposition",ee),fe.ts=10,fe.tc=K("textfont.color",ee),fe.tf=K("textfont.family",ee),fe.tw=K("textfont.weight",ee),fe.ty=K("textfont.style",ee),fe.tv=K("textfont.variant",ee),fe.tC=K("textfont.textcase",ee),fe.tE=K("textfont.lineposition",ee),fe.tS=K("textfont.shadow",ee)),re=[Oa.minExtend(B,fe)],ae=Oa.minExtend(X,he),ae.selectedpoints=null,ae.texttemplate=null}var Ne=ri.select(this).select("g.legendpoints"),Fe=Ne.selectAll("path.scatterpts").data(W?re:[]);Fe.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),Fe.exit().remove(),Fe.call(eo.pointStyle,ae,t),W&&(re[0].mrc=3);var Xe=Ne.selectAll("g.pointtext").data(V?re:[]);Xe.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Xe.exit().remove(),Xe.selectAll("text").call(eo.textPointStyle,ae,t)}function h(M){var E=M[0].trace,z=E.type==="waterfall";if(M[0]._distinct&&z){var F=M[0].trace[M[0].dir].marker;return M[0].mc=F.color,M[0].mlw=F.line.width,M[0].mlc=F.line.color,p(M,this,"waterfall")}var I=[];E.visible&&z&&(I=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var W=ri.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(I);W.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),W.exit().remove(),W.each(function(B){var X=ri.select(this),V=E[B[0]].marker,re=u(void 0,V.line,$0,bc);X.attr("d",B[1]).style("stroke-width",re+"px").call(ko.fill,V.color),re&&X.call(ko.stroke,V.line.color)})}function d(M){p(M,this)}function m(M){p(M,this,"funnel")}function p(M,E,z){var F=M[0].trace,I=F.marker||{},W=I.line||{},B=I.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",X=z?F.visible&&F.type===z:Y3.traceIs(F,"bar"),V=ri.select(E).select("g.legendpoints").selectAll("path.legend"+z).data(X?[M]:[]);V.enter().append("path").classed("legend"+z,!0).attr("d",B).attr("transform",s),V.exit().remove(),V.each(function(re){var ae=ri.select(this),K=re[0],ee=u(K.mlw,I.line,$0,bc);ae.style("stroke-width",ee+"px");var fe=K.mcc;if(!n._inHover&&"mc"in K){var he=G3(I),De=he.mid;De===void 0&&(De=(he.max+he.min)/2),fe=eo.tryColorscale(I,"")(De)}var Ne=fe||K.mc||I.color,Fe=I.pattern,Xe=eo.getPatternAttr,Le=Fe&&(Xe(Fe.shape,0,"")||Xe(Fe.path,0,""));if(Le){var rr=Xe(Fe.bgcolor,0,null),se=Xe(Fe.fgcolor,0,null),ye=Fe.fgopacity,we=KA(Fe.size,8,10),pe=KA(Fe.solidity,.5,1),U="legend-"+F.uid;ae.call(eo.pattern,"legend",t,U,Le,we,pe,fe,Fe.fillmode,rr,se,ye)}else ae.call(ko.fill,Ne);ee&&ko.stroke(ae,K.mlc||W.color)})}function y(M){var E=M[0].trace,z=ri.select(this).select("g.legendpoints").selectAll("path.legendbox").data(E.visible&&Y3.traceIs(E,"box-violin")?[M]:[]);z.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),z.exit().remove(),z.each(function(){var F=ri.select(this);if((E.boxpoints==="all"||E.points==="all")&&ko.opacity(E.fillcolor)===0&&ko.opacity((E.line||{}).color)===0){var I=Oa.minExtend(E,{marker:{size:i?jA:Oa.constrain(E.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});z.call(eo.pointStyle,I,t)}else{var W=u(void 0,E.line,$0,bc);F.style("stroke-width",W+"px").call(ko.fill,E.fillcolor),W&&ko.stroke(F,E.line.color)}})}function b(M){var E=M[0].trace,z=ri.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(E.visible&&E.type==="candlestick"?[M,M]:[]);z.enter().append("path").classed("legendcandle",!0).attr("d",function(F,I){return I?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(F,I){var W=ri.select(this),B=E[I?"increasing":"decreasing"],X=u(void 0,B.line,$0,bc);W.style("stroke-width",X+"px").call(ko.fill,B.fillcolor),X&&ko.stroke(W,B.line.color)})}function C(M){var E=M[0].trace,z=ri.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(E.visible&&E.type==="ohlc"?[M,M]:[]);z.enter().append("path").classed("legendohlc",!0).attr("d",function(F,I){return I?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(F,I){var W=ri.select(this),B=E[I?"increasing":"decreasing"],X=u(void 0,B.line,$0,bc);W.style("fill","none").call(eo.dashLine,B.line.dash,X),X&&ko.stroke(W,B.line.color)})}function x(M){A(M,this,"pie")}function _(M){A(M,this,"funnelarea")}function A(M,E,z){var F=M[0],I=F.trace,W=z?I.visible&&I.type===z:Y3.traceIs(I,z),B=ri.select(E).select("g.legendpoints").selectAll("path.legend"+z).data(W?[M]:[]);if(B.enter().append("path").classed("legend"+z,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),B.exit().remove(),B.size()){var X=I.marker||{},V=u(hW(X.line.width,F.pts),X.line,$0,bc),re="pieLike",ae=Oa.minExtend(I,{marker:{line:{width:V}}},re),K=Oa.minExtend(F,{trace:ae},re);vW(B,K,ae,t)}}function k(M){var E=M[0].trace,z,F=[];if(E.visible)switch(E.type){case"histogram2d":case"heatmap":F=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":F=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":case"densitymap":F=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":F=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],z=!1;break;case"streamtube":F=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],z=!1;break;case"surface":F=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],z=!0;break;case"mesh3d":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1;break}var I=ri.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(F);I.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),I.exit().remove(),I.each(function(W,B){var X=ri.select(this),V=G3(E),re=V.colorscale,ae=V.reversescale,K=function(De){if(De.size()){var Ne="legendfill-"+E.uid;eo.gradient(De,t,Ne,V3(ae,z==="radial"),re,"fill")}},ee;if(re){if(!z){var he=re.length;ee=B===0?re[ae?he-1:0][1]:B===1?re[ae?0:he-1][1]:re[Math.floor((he-1)/2)][1]}}else{var fe=E.vertexcolor||E.facecolor||E.color;ee=Oa.isArrayOrTypedArray(fe)?fe[B]||fe[0]:fe}X.attr("d",W[0]),ee?X.call(ko.fill,ee):X.call(K)})}};function V3(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function $A(e){var r=e[0].trace,t=r.contours,n=zp.hasLines(r),a=zp.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:n=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:n||o,anyFill:i||l}}function KA(e,r,t){return e&&Oa.isArrayOrTypedArray(e)?r:e>t?t:e}});var J3=te((jue,uT)=>{"use strict";var Ri=kt(),ta=gr(),X3=fa(),ev=dt(),eT=g1(),Z3=To(),na=fn(),Fp=Pt(),_c=vi(),rT=NA(),ca=B3(),j3=Ka(),lT=j3.LINE_SPACING,Q0=j3.FROM_TL,tT=j3.FROM_BR,nT=BA(),gW=W3(),aT=Pp(),K0=1,mW=/^legend[0-9]*$/;uT.exports=function(r,t){if(t)iT(r,t);else{var n=r._fullLayout,a=n._legends,i=n._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Ri.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(mW)&&a.indexOf(v)===-1&&u.remove()});for(var o=0;o1)}var m=n.hiddenlabels||[];if(!l&&(!n.showlegend||!s.length))return o.selectAll("."+a).remove(),n._topdefs.select("#"+i).remove(),X3.autoMargin(e,a);var p=ta.ensureSingle(o,"g",a,function(E){l||E.attr("pointer-events","all")}),y=ta.ensureSingleById(n._topdefs,"clipPath",i,function(E){E.append("rect")}),b=ta.ensureSingle(p,"rect","bg",function(E){E.attr("shape-rendering","crispEdges")});b.call(Fp.stroke,t.bordercolor).call(Fp.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=ta.ensureSingle(p,"g","scrollbox"),x=t.title;t._titleWidth=0,t._titleHeight=0;var _;x.text?(_=ta.ensureSingle(C,"text",a+"titletext"),_.attr("text-anchor","start").call(na.font,x.font).text(x.text),Ip(_,C,e,t,K0)):C.selectAll("."+a+"titletext").remove();var A=ta.ensureSingle(p,"rect","scrollbar",function(E){E.attr(ca.scrollBarEnterAttrs).call(Fp.fill,ca.scrollBarColor)}),k=C.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(ta.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(E){var z=E[0].trace;return ev.traceIs(z,"pie-like")?m.indexOf(E[0].label)!==-1?.5:1:z.visible==="legendonly"?.5:1}).each(function(){Ri.select(this).call(bW,e,t)}).call(gW,e,t).each(function(){l||Ri.select(this).call(_W,e,a)}),ta.syncOrAsync([X3.previousPromises,function(){return MW(e,k,M,t)},function(){var E=n._size,z=t.borderwidth,F=t.xref==="paper",I=t.yref==="paper";if(x.text&&yW(_,t,z),!l){var W,B;F?W=E.l+E.w*t.x-Q0[Hp(t)]*t._width:W=n.width*t.x-Q0[Hp(t)]*t._width,I?B=E.t+E.h*(1-t.y)-Q0[Bp(t)]*t._effHeight:B=n.height*(1-t.y)-Q0[Bp(t)]*t._effHeight;var X=AW(e,a,W,B);if(X)return;if(n.margin.autoexpand){var V=W,re=B;W=F?ta.constrain(W,0,n.width-t._width):V,B=I?ta.constrain(B,0,n.height-t._effHeight):re,W!==V&&ta.log("Constrain "+a+".x to make legend fit inside graph"),B!==re&&ta.log("Constrain "+a+".y to make legend fit inside graph")}na.setTranslate(p,W,B)}if(A.on(".drag",null),p.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var ae=t._effHeight;l&&(ae=t._height),b.attr({width:t._width-z,height:ae-z,x:z/2,y:z/2}),na.setTranslate(C,0,0),y.select("rect").attr({width:t._width-2*z,height:ae-2*z,x:z,y:z}),na.setClipUrl(C,i,e),na.setRect(A,0,0,0,0),delete t._scrollY}else{var K=Math.max(ca.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),ee=t._effHeight-K-2*ca.scrollBarMargin,fe=t._height-t._effHeight,he=ee/fe,De=Math.min(t._scrollY||0,fe);b.attr({width:t._width-2*z+ca.scrollBarWidth+ca.scrollBarMargin,height:t._effHeight-z,x:z/2,y:z/2}),y.select("rect").attr({width:t._width-2*z+ca.scrollBarWidth+ca.scrollBarMargin,height:t._effHeight-2*z,x:z,y:z+De}),na.setClipUrl(C,i,e),we(De,K,he),p.on("wheel",function(){De=ta.constrain(t._scrollY+Ri.event.deltaY/ee*fe,0,fe),we(De,K,he),De!==0&&De!==fe&&Ri.event.preventDefault()});var Ne,Fe,Xe,Le=function(ke,Oe,Ie){var ir=(Ie-Oe)/he+ke;return ta.constrain(ir,0,fe)},rr=function(ke,Oe,Ie){var ir=(Oe-Ie)/he+ke;return ta.constrain(ir,0,fe)},se=Ri.behavior.drag().on("dragstart",function(){var ke=Ri.event.sourceEvent;ke.type==="touchstart"?Ne=ke.changedTouches[0].clientY:Ne=ke.clientY,Xe=De}).on("drag",function(){var ke=Ri.event.sourceEvent;ke.buttons===2||ke.ctrlKey||(ke.type==="touchmove"?Fe=ke.changedTouches[0].clientY:Fe=ke.clientY,De=Le(Xe,Ne,Fe),we(De,K,he))});A.call(se);var ye=Ri.behavior.drag().on("dragstart",function(){var ke=Ri.event.sourceEvent;ke.type==="touchstart"&&(Ne=ke.changedTouches[0].clientY,Xe=De)}).on("drag",function(){var ke=Ri.event.sourceEvent;ke.type==="touchmove"&&(Fe=ke.changedTouches[0].clientY,De=rr(Xe,Ne,Fe),we(De,K,he))});C.call(ye)}function we(ke,Oe,Ie){t._scrollY=e._fullLayout[a]._scrollY=ke,na.setTranslate(C,0,-ke),na.setRect(A,t._width,ca.scrollBarMargin+ke*Ie,ca.scrollBarWidth,Oe),y.select("rect").attr("y",z+ke)}if(e._context.edits.legendPosition){var pe,U,Q,$;p.classed("cursor-move",!0),Z3.init({element:p.node(),gd:e,prepFn:function(ke){if(ke.target!==A.node()){var Oe=na.getTranslate(p);Q=Oe.x,$=Oe.y}},moveFn:function(ke,Oe){if(Q!==void 0&&$!==void 0){var Ie=Q+ke,ir=$+Oe;na.setTranslate(p,Ie,ir),pe=Z3.align(Ie,t._width,E.l,E.l+E.w,t.xanchor),U=Z3.align(ir+t._height,-t._height,E.t+E.h,E.t,t.yanchor)}},doneFn:function(){if(pe!==void 0&&U!==void 0){var ke={};ke[a+".x"]=pe,ke[a+".y"]=U,ev.call("_guiRelayout",e,ke)}},clickFn:function(ke,Oe){var Ie=o.selectAll("g.traces").filter(function(){var ir=this.getBoundingClientRect();return Oe.clientX>=ir.left&&Oe.clientX<=ir.right&&Oe.clientY>=ir.top&&Oe.clientY<=ir.bottom});Ie.size()>0&&sT(e,p,Ie,ke,Oe)}})}}],e)}}function Np(e,r,t){var n=e[0],a=n.width,i=r.entrywidthmode,o=n.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||a)}function sT(e,r,t,n,a){var i=t.data()[0][0].trace,o={event:a,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(o.group=i._group),ev.traceIs(i,"pie-like")&&(o.label=t.datum()[0].label);var l=eT.triggerHandler(e,"plotly_legendclick",o);if(n===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&rT(t,e,n)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=eT.triggerHandler(e,"plotly_legenddoubleclick",o);s!==!1&&l!==!1&&rT(t,e,n)}}function bW(e,r,t){var n=Op(t),a=e.data()[0][0],i=a.trace,o=ev.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;a.groupTitle?(u=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?u=a.text:(u=o?a.label:i.name,i._meta&&(u=ta.templateString(u,i._meta))));var v=ta.ensureSingle(e,"text",n+"text");v.attr("text-anchor","start").call(na.font,f).text(l?oT(u,s):u);var h=t.indentation+t.itemwidth+ca.itemGap*2;_c.positionText(v,h,0),l?v.call(_c.makeEditable,{gd:r,text:u}).call(Ip,e,r,t).on("edit",function(d){this.text(oT(d,s)).call(Ip,e,r,t);var m=a.trace._fullInput||{},p={};return p.name=d,m._isShape?ev.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):ev.call("_guiRestyle",r,p,i.index)}):Ip(v,e,r,t)}function oT(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function _W(e,r,t){var n=r._context.doubleClickDelay,a,i=1,o=ta.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Fp.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTimen&&(i=Math.max(i-1,1)),sT(r,l,e,i,Ri.event)}}))}function Ip(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),_c.convertToTspans(e,t,function(){xW(r,t,n,a)})}function xW(e,r,t,n){var a=e.data()[0][0];if(!t._inHover&&a&&!a.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),o=i.node(),l=Op(t);t||(t=r._fullLayout[l]);var s=t.borderwidth,u;n===K0?u=t.title.font:a.groupTitle?u=a.groupTitle.font:u=t.font;var f=u.size*lT,v,h;if(o){var d=na.bBox(o);v=d.height,h=d.width,n===K0?na.setTranslate(i,s,s+v*.75):na.setTranslate(i,0,v*.25)}else{var m="."+l+(n===K0?"title":"")+"text",p=e.select(m),y=_c.lineCount(p),b=p.node();if(v=f*y,h=b?na.bBox(b).width:0,n===K0)t.title.side==="left"&&(h+=ca.itemGap*2),_c.positionText(p,s+ca.titlePad,s+f);else{var C=ca.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(C=ca.itemGap,h-=t.indentation+t.itemwidth),_c.positionText(p,C,-f*((y-1)/2-.3))}}n===K0?(t._titleWidth=h,t._titleHeight=v):(a.lineHeight=f,a.height=Math.max(v,16)+3,a.width=h)}function wW(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function MW(e,r,t,n){var a=e._fullLayout,i=Op(n);n||(n=a[i]);var o=a._size,l=aT.isVertical(n),s=aT.isGrouped(n),u=n.entrywidthmode==="fraction",f=n.borderwidth,v=2*f,h=ca.itemGap,d=n.indentation+n.itemwidth+h*2,m=2*(f+h),p=Bp(n),y=n.y<0||n.y===0&&p==="top",b=n.y>1||n.y===1&&p==="bottom",C=n.tracegroupgap,x={};let{orientation:_,yref:A}=n,{maxheight:k}=n,M=y||b||_!=="v"||A!=="paper";k||(k=M?.5:1);let E=M?a.height:o.h;n._maxHeight=Math.max(k>1?k:k*E,30);var z=0;n._width=0,n._height=0;var F=wW(n);if(l)t.each(function(we){var pe=we[0].height;na.setTranslate(this,f+F[0],f+F[1]+n._height+pe/2+h),n._height+=pe,n._width=Math.max(n._width,we[0].width)}),z=d+n._width,n._width+=h+d+v,n._height+=m,s&&(r.each(function(we,pe){na.setTranslate(this,0,pe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var I=Hp(n),W=n.x<0||n.x===0&&I==="right",B=n.x>1||n.x===1&&I==="left",X=b||y,V=a.width/2;n._maxWidth=Math.max(W?X&&I==="left"?o.l+o.w:V:B?X&&I==="right"?o.r+o.w:V:o.w,2*d);var re=0,ae=0;t.each(function(we){var pe=Np(we,n,d);re=Math.max(re,pe),ae+=pe}),z=null;var K=0;if(s){var ee=0,fe=0,he=0;r.each(function(){var we=0,pe=0;Ri.select(this).selectAll("g.traces").each(function(Q){var $=Np(Q,n,d),ke=Q[0].height;na.setTranslate(this,F[0],F[1]+f+h+ke/2+pe),pe+=ke,we=Math.max(we,$),x[Q[0].trace.legendgroup]=we});var U=we+h;fe>0&&U+f+fe>n._maxWidth?(K=Math.max(K,fe),fe=0,he+=ee+C,ee=pe):ee=Math.max(ee,pe),na.setTranslate(this,fe,he),fe+=U}),n._width=Math.max(K,fe)+f,n._height=he+ee+m}else{var De=t.size(),Ne=ae+v+(De-1)*h=n._maxWidth&&(K=Math.max(K,rr),Xe=0,Le+=Fe,n._height+=Fe,Fe=0),na.setTranslate(this,F[0]+f+Xe,F[1]+f+Le+pe/2+h),rr=Xe+U+h,Xe+=Q,Fe=Math.max(Fe,pe)}),Ne?(n._width=Xe+v,n._height=Fe+m):(n._width=Math.max(K,rr)+v,n._height+=Fe+m)}}n._width=Math.ceil(Math.max(n._width+F[0],n._titleWidth+2*(f+ca.titlePad))),n._height=Math.ceil(Math.max(n._height+F[1],n._titleHeight+2*(f+ca.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var se=e._context.edits,ye=se.legendText||se.legendPosition;t.each(function(we){var pe=Ri.select(this).select("."+i+"toggle"),U=we[0].height,Q=we[0].trace.legendgroup,$=Np(we,n,d);s&&Q!==""&&($=x[Q]);var ke=ye?d:z||$;!l&&!u&&(ke+=h/2),na.setRect(pe,0,-U/2,ke,U)})}function AW(e,r,t,n){var a=e._fullLayout,i=a[r],o=Hp(i),l=Bp(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",v=i.x<.5?"l":"r",h={r:a.width-t,l:t+i._width,b:a.height-n,t:n+i._effHeight};if(s&&u)return X3.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Q0[o],r:i._width*tT[o],b:i._effHeight*tT[l],t:i._effHeight*Q0[l]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][v]=h[v]:e._fullLayout._reservedMargin[r][f]=h[f]}function Hp(e){return ta.isRightAnchor(e)?"right":ta.isCenterAnchor(e)?"center":"left"}function Bp(e){return ta.isBottomAnchor(e)?"bottom":ta.isMiddleAnchor(e)?"middle":"top"}function Op(e){return e._id||"legend"}});var e5=te(Q3=>{"use strict";var xc=kt(),eu=Ut(),fT=Jl(),Hn=gr(),TW=Hn.pushUnique,$3=Hn.strTranslate,kW=Hn.strRotate,SW=g1(),So=vi(),CW=EA(),os=fn(),_a=Pt(),Up=To(),ls=Dn(),LW=Pa().zindexSeparator,tv=dt(),bl=Vu(),wc=n1(),qW=F3(),DW=J3(),yT=wc.YANGLE,K3=Math.PI*yT/180,EW=1/Math.sin(K3),PW=Math.cos(K3),RW=Math.sin(K3),Cn=wc.HOVERARROWSIZE,Rt=wc.HOVERTEXTPAD,cT={box:!0,ohlc:!0,violin:!0,candlestick:!0},zW={scatter:!0,scattergl:!0,splom:!0};function vT(e,r){return e.distance-r.distance}Q3.hover=function(r,t,n,a){r=Hn.getGraphDiv(r);var i=t.target;Hn.throttle(r._fullLayout._uid+wc.HOVERID,wc.HOVERMINTIME,function(){NW(r,t,n,a,i)})};Q3.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,i=MT(a),o=AT(a),l=r.map(function(y){var b=y._x0||y.x0||y.x||0,C=y._x1||y.x1||y.x||0,x=y._y0||y.y0||y.y||0,_=y._y1||y.y1||y.y||0,A=y.eventData;if(A){var k=Math.min(b,C),M=Math.max(b,C),E=Math.min(x,_),z=Math.max(x,_),F=y.trace;if(tv.traceIs(F,"gl3d")){var I=a._fullLayout[F.scene]._scene.container,W=I.offsetLeft,B=I.offsetTop;k+=W,M+=W,E+=B,z+=B}A.bbox={x0:k+o,x1:M+o,y0:E+i,y1:z+i},t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||_a.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:A}}),s=!1,u=_T(l,{gd:a,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||_a.background,container:xc.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,v=5,h=0,d=0;f.sort(function(y,b){return y.y0-b.y0}).each(function(y,b){var C=y.y0-y.by/2;C-vM[0]._length||$<0||$>E[0]._length)return Up.unhoverRaw(e,r)}if(r.pointerX=Q+M[0]._offset,r.pointerY=$+E[0]._offset,"xval"in r?re=bl.flat(i,r.xval):re=bl.p2c(M,Q),"yval"in r?ae=bl.flat(i,r.yval):ae=bl.p2c(E,$),!eu(re[0])||!eu(ae[0]))return Hn.warn("Fx.hover failed",r,e),Up.unhoverRaw(e,r)}var Ie=1/0;function ir(rt,rn){for(ee=0;eese&&(X.splice(0,se),Ie=X[0].distance),v&&B!==0&&X.length===0){rr.distance=B,rr.index=!1;var vn=he._module.hoverPoints(rr,Xe,Le,"closest",{hoverLayer:l._hoverlayer});if(vn&&(vn=vn.filter(function(Bt){return Bt.spikeDistance<=B})),vn&&vn.length){var da,qn=vn.filter(function(Bt){return Bt.xa.showspikes&&Bt.xa.spikesnap!=="hovered data"});if(qn.length){var Na=qn[0];eu(Na.x0)&&eu(Na.y0)&&(da=Ue(Na),(!ye.vLinePoint||ye.vLinePoint.spikeDistance>da.spikeDistance)&&(ye.vLinePoint=da))}var pa=vn.filter(function(Bt){return Bt.ya.showspikes&&Bt.ya.spikesnap!=="hovered data"});if(pa.length){var wn=pa[0];eu(wn.x0)&&eu(wn.y0)&&(da=Ue(wn),(!ye.hLinePoint||ye.hLinePoint.spikeDistance>da.spikeDistance)&&(ye.hLinePoint=da))}}}}}ir();function or(rt,rn,St){for(var dn=null,pn=1/0,an,vn=0;vn0&&Math.abs(rt.distance)je-1;Cr--)Or(X[Cr]);X=mr,Ke()}var ar=e._hoverdata,be=[],Se=MT(e),$e=AT(e);for(K=0;K1||X.length>1)||h==="closest"&&we&&X.length>1,jt=_a.combine(l.plot_bgcolor||_a.background,l.paper_bgcolor),en=_T(X,{gd:e,hovermode:h,rotateLabels:Ft,bgColor:jt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Jt=en.hoverLabels;if(bl.isUnifiedHover(h)||(IW(Jt,Ft,l,en.commonLabelBoundingBox),wT(Jt,Ft,l._invScaleX,l._invScaleY)),a&&a.tagName){var aa=tv.getComponentMethod("annotations","hasClickToShow")(e,be);CW(xc.select(a),aa?"pointer":"")}!a||n||!OW(e,r,ar)||(ar&&e.emit("plotly_unhover",{event:r,points:ar}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:E,xvals:re,yvals:ae}))}function bT(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var FW=/([\s\S]*)<\/extra>/;function _T(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||wc.HOVERFONT,v=r.fontSize||wc.HOVERFONTSIZE,h=r.fontWeight||n.font.weight,d=r.fontStyle||n.font.style,m=r.fontVariant||n.font.variant,p=r.fontTextcase||n.font.textcase,y=r.fontLineposition||n.font.lineposition,b=r.fontShadow||n.font.shadow,C=e[0],x=C.xa,_=C.ya,A=a.charAt(0),k=A+"Label",M=C[k];if(M===void 0&&x.type==="multicategory")for(var E=0;En.width-$e&&(Ze=n.width-$e),je.attr("d","M"+(ar-Ze)+",0L"+(ar-Ze+Cn)+","+Se+Cn+"H"+$e+"v"+Se+(Rt*2+Cr.height)+"H"+-$e+"V"+Se+Cn+"H"+(ar-Ze-Cn)+"Z"),ar=Ze,ee.minX=ar-$e,ee.maxX=ar+$e,x.side==="top"?(ee.minY=be-(Rt*2+Cr.height),ee.maxY=be-Rt):(ee.minY=be+Rt,ee.maxY=be+(Rt*2+Cr.height))}else{var qr,Hr,Pr;_.side==="right"?(qr="start",Hr=1,Pr="",ar=x._offset+x._length):(qr="end",Hr=-1,Pr="-",ar=x._offset),be=_._offset+(C.y0+C.y1)/2,hr.attr("text-anchor",qr),je.attr("d","M0,0L"+Pr+Cn+","+Cn+"V"+(Rt+Cr.height/2)+"h"+Pr+(Rt*2+Cr.width)+"V-"+(Rt+Cr.height/2)+"H"+Pr+Cn+"V-"+Cn+"Z"),ee.minY=be-(Rt+Cr.height/2),ee.maxY=be+(Rt+Cr.height/2),_.side==="right"?(ee.minX=ar+Cn,ee.maxX=ar+Cn+(Rt*2+Cr.width)):(ee.minX=ar-Cn-(Rt*2+Cr.width),ee.maxX=ar-Cn);var lt=Cr.height/2,xt=F-Cr.top-lt,Nt="clip"+n._uid+"commonlabel"+_._id,Ht;if(ar=0?Ar=pr:dr+Ie=0?Ar=dr:Te+Ie=0?zr=cr:Ke+ir=0?zr=Ke:Ye+ir=0,(Ae.idealAlign==="top"||!cn)&&Ft?(Pr-=xt/2,Ae.anchor="end"):cn?(Pr+=xt/2,Ae.anchor="start"):Ae.anchor="middle",Ae.crossPos=Pr;else{if(Ae.pos=Pr,cn=Hr+lt/2+Tn<=I,Ft=Hr-lt/2-Tn>=0,(Ae.idealAlign==="left"||!cn)&&Ft)Hr-=lt/2,Ae.anchor="end";else if(cn)Hr+=lt/2,Ae.anchor="start";else{Ae.anchor="middle";var jt=Tn/2,en=Hr+jt-I,Jt=Hr-jt;en>0&&(Hr-=en),Jt<0&&(Hr+=-Jt)}Ae.crossPos=Hr}be.attr("text-anchor",Ae.anchor),$e&&Se.attr("text-anchor",Ae.anchor),je.attr("transform",$3(Hr,Pr)+(i?kW(yT):""))}),{hoverLabels:Er,commonLabelBoundingBox:ee}}function hT(e,r,t,n,a,i){var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Hn.templateString(e.name,e.trace._meta)),o=gT(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===a?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o);var f=e.hovertemplate||!1;if(f){var v=e.hovertemplateLabels||e;e[s+"Label"]!==a&&(v[s+"other"]=v[s+"Val"],v[s+"otherLabel"]=v[s+"Label"]),l=Hn.hovertemplateString(f,v,n._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(FW,function(h,d){return o=gT(d,e.nameLength),""})}return[l,o]}function IW(e,r,t,n){var a=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,v=n.minX,h=n.maxX,d=n.minY,m=n.maxY,p=function(re){return re*t._invScaleX},y=function(re){return re*t._invScaleY};e.each(function(re){var ae=re[a],K=re[i],ee=ae._id.charAt(0)==="x",fe=ae.range;f===0&&fe&&fe[0]>fe[1]!==ee&&(l=-1);var he=0,De=ee?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Ne=xT(re,r),Fe=re.anchor,Xe=Fe==="end"?-1:1,Le,rr;if(Fe==="middle")Le=re.crossPos+(ee?y(Ne.y-re.by/2):p(re.bx/2+re.tx2width/2)),rr=Le+(ee?y(re.by):p(re.bx));else if(ee)Le=re.crossPos+y(Cn+Ne.y)-y(re.by/2-Cn),rr=Le+y(re.by);else{var se=p(Xe*Cn+Ne.x),ye=se+p(Xe*re.bx);Le=re.crossPos+Math.min(se,ye),rr=re.crossPos+Math.max(se,ye)}ee?d!==void 0&&m!==void 0&&Math.min(rr,m)-Math.max(Le,d)>1&&(K.side==="left"?(he=K._mainLinePosition,De=t.width):De=K._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(rr,h)-Math.max(Le,v)>1&&(K.side==="top"?(he=K._mainLinePosition,De=t.height):De=K._mainLinePosition)}u[f++]=[{datum:re,traceIndex:re.trace.index,dp:0,pos:re.pos,posref:re.posref,size:re.by*(ee?EW:1)/2,pmin:he,pmax:De}]}),u.sort(function(re,ae){return re[0].posref-ae[0].posref||l*(ae[0].traceIndex-re[0].traceIndex)});var b,C,x,_,A,k,M;function E(re){var ae=re[0],K=re[re.length-1];if(C=ae.pmin-ae.pos-ae.dp+ae.size,x=K.pos+K.dp+K.size-ae.pmax,C>.01){for(A=re.length-1;A>=0;A--)re[A].dp+=C;b=!1}if(!(x<.01)){if(C<-.01){for(A=re.length-1;A>=0;A--)re[A].dp-=x;b=!1}if(b){var ee=0;for(_=0;_ae.pmax&&ee++;for(_=re.length-1;_>=0&&!(ee<=0);_--)k=re[_],k.pos>ae.pmax-1&&(k.del=!0,ee--);for(_=0;_=0;A--)re[A].dp-=x;for(_=re.length-1;_>=0&&!(ee<=0);_--)k=re[_],k.pos+k.dp+k.size>ae.pmax&&(k.del=!0,ee--)}}}for(;!b&&o<=s;){for(o++,b=!0,_=0;_.01){for(A=F.length-1;A>=0;A--)F[A].dp+=C;for(z.push.apply(z,F),u.splice(_+1,1),M=0,A=z.length-1;A>=0;A--)M+=z[A].dp;for(x=M/z.length,A=z.length-1;A>=0;A--)z[A].dp-=x;b=!1}else _++}u.forEach(E)}for(_=u.length-1;_>=0;_--){var B=u[_];for(A=B.length-1;A>=0;A--){var X=B[A],V=X.datum;V.offset=X.dp,V.del=X.del}}}function xT(e,r){var t=0,n=e.offset;return r&&(n*=-RW,t=e.offset*PW),{x:t,y:n}}function HW(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Cn+Rt),n=t+r*(e.txwidth+Rt),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+Rt),{alignShift:r,textShiftX:t,text2ShiftX:n}}function wT(e,r,t,n){var a=function(o){return o*t},i=function(o){return o*n};e.each(function(o){var l=xc.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,v=HW(o),h=xT(o,r),d=h.x,m=h.y,p=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;p?b="M-"+a(o.bx/2+o.tx2width/2)+","+i(m-o.by/2)+"h"+a(o.bx)+"v"+i(o.by)+"h-"+a(o.bx)+"Z":y?b="M0,0L"+a(f*Cn+d)+","+i(Cn+m)+"v"+i(o.by/2-Cn)+"h"+a(f*o.bx)+"v-"+i(o.by)+"H"+a(f*Cn+d)+"V"+i(m-Cn)+"Z":b="M"+a(f*Cn+d)+","+i(m-o.by/2)+"h"+a(f*o.bx)+"v"+i(o.by)+"h"+a(-f*o.bx)+"Z",l.select("path").attr("d",b);var C=d+v.textShiftX,x=m+o.ty0-o.by/2+Rt,_=o.textAlign||"auto";_!=="auto"&&(_==="left"&&u!=="start"?(s.attr("text-anchor","start"),C=p?-o.bx/2-o.tx2width/2+Rt:-o.bx-Rt):_==="right"&&u!=="end"&&(s.attr("text-anchor","end"),C=p?o.bx/2-o.tx2width/2-Rt:o.bx+Rt)),s.call(So.positionText,a(C),i(x)),o.tx2width&&(l.select("text.name").call(So.positionText,a(v.text2ShiftX+v.alignShift*Rt+d),i(m+o.ty0-o.by/2+Rt)),l.select("rect").call(os.setRect,a(v.text2ShiftX+(v.alignShift-1)*o.tx2width/2+d),i(m-o.by/2-1),a(o.tx2width),i(o.by+2)))})}function BW(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],i=e.cd[t]||{};function o(h){return h||eu(h)&&h===0}var l=Array.isArray(t)?function(h,d){var m=Hn.castOption(a,t,h);return o(m)?m:Hn.extractOption({},n,"",d)}:function(h,d){return Hn.extractOption(i,n,h,d)};function s(h,d,m){var p=l(d,m);o(p)&&(e[h]=p)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Hn.constrain(e.x0,0,e.xa._length),e.x1=Hn.constrain(e.x1,0,e.xa._length),e.y0=Hn.constrain(e.y0,0,e.ya._length),e.y1=Hn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:ls.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:ls.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=ls.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+ls.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=ls.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+ls.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function dT(e,r,t){var n=t.container,a=t.fullLayout,i=a._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(n.selectAll(".spikeline").remove(),!!(s||l)){var v=_a.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var h=r.hLinePoint,d,m;u=h&&h.xa,f=h&&h.ya;var p=f.spikesnap;p==="cursor"?(d=o.pointerX,m=o.pointerY):(d=u._offset+h.x,m=f._offset+h.y);var y=fT.readability(h.color,v)<1.5?_a.contrast(v):h.color,b=f.spikemode,C=f.spikethickness,x=f.spikecolor||y,_=ls.getPxPosition(e,f),A,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(A=_,k=d),b.indexOf("across")!==-1){var M=f._counterDomainMin,E=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),E=Math.max(E,f.position)),A=i.l+M*i.w,k=i.l+E*i.w}n.insert("line",":first-child").attr({x1:A,x2:k,y1:m,y2:m,"stroke-width":C,stroke:x,"stroke-dasharray":os.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:k,y1:m,y2:m,"stroke-width":C+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:_+(f.side!=="right"?C:-C),cy:m,r:C,fill:x}).classed("spikeline",!0)}if(s){var z=r.vLinePoint,F,I;u=z&&z.xa,f=z&&z.ya;var W=u.spikesnap;W==="cursor"?(F=o.pointerX,I=o.pointerY):(F=u._offset+z.x,I=f._offset+z.y);var B=fT.readability(z.color,v)<1.5?_a.contrast(v):z.color,X=u.spikemode,V=u.spikethickness,re=u.spikecolor||B,ae=ls.getPxPosition(e,u),K,ee;if(X.indexOf("toaxis")!==-1||X.indexOf("across")!==-1){if(X.indexOf("toaxis")!==-1&&(K=ae,ee=I),X.indexOf("across")!==-1){var fe=u._counterDomainMin,he=u._counterDomainMax;u.anchor==="free"&&(fe=Math.min(fe,u.position),he=Math.max(he,u.position)),K=i.t+(1-he)*i.h,ee=i.t+(1-fe)*i.h}n.insert("line",":first-child").attr({x1:F,x2:F,y1:K,y2:ee,"stroke-width":V,stroke:re,"stroke-dasharray":os.dashStyle(u.spikedash,V)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:F,x2:F,y1:K,y2:ee,"stroke-width":V+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}X.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:F,cy:ae-(u.side!=="top"?V:-V),r:V,fill:re}).classed("spikeline",!0)}}}function OW(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],i=e._hoverdata[n];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers)||a.binNumber!==i.binNumber)return!0}return!1}function pT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function gT(e,r){return So.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function UW(e,r){for(var t=r.charAt(0),n=[],a=[],i=[],o=0;o{"use strict";var YW=gr(),GW=Pt(),VW=Vu().isUnifiedHover;TT.exports=function(r,t,n,a){a=a||{};var i=t.legend;function o(l){a.font[l]||(a.font[l]=i?t.legend.font[l]:t.font[l])}t&&VW(t.hovermode)&&(a.font||(a.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(a.bgcolor||(a.bgcolor=GW.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),n("hoverlabel.showarrow",a.showarrow),YW.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var ST=te((Kue,kT)=>{"use strict";var WW=gr(),ZW=Yp(),XW=_0();kT.exports=function(r,t){function n(a,i){return WW.coerce(r,t,XW,a,i)}ZW(r,t,n)}});var qT=te((Que,LT)=>{"use strict";var CT=gr(),jW=vd(),JW=Yp();LT.exports=function(r,t,n,a){function i(l,s){return CT.coerce(r,t,jW,l,s)}var o=CT.extendFlat({},a.hoverlabel);t.hovertemplate&&(o.namelength=-1),JW(r,t,i,o)}});var r5=te((efe,DT)=>{"use strict";var $W=gr(),KW=_0();DT.exports=function(r,t){function n(a,i){return t[a]!==void 0?t[a]:$W.coerce(r,t,KW,a,i)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var RT=te((rfe,PT)=>{"use strict";var ET=gr(),QW=_0(),eZ=r5(),rZ=Yp();PT.exports=function(r,t){function n(f,v){return ET.coerce(r,t,QW,f,v)}var a=eZ(r,t);a&&(n("hoverdistance"),n("spikedistance"));var i=n("dragmode");i==="select"&&n("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&u===1||(o||l)&&s&&u===2)&&(t.dragmode="pan"),rZ(r,t,n),ET.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var FT=te((tfe,NT)=>{"use strict";var t5=gr(),zT=dt();NT.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(u){return function(f){return t5.coerceHoverinfo({hoverinfo:f},{_module:u._module},n)}}for(var i=0;i{"use strict";var nZ=dt(),aZ=e5().hover;IT.exports=function(r,t,n){var a=nZ.getComponentMethod("annotations","onClick")(r,r._hoverdata);n!==void 0&&aZ(r,t,n,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(a&&a.then?a.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var ss=te((afe,UT)=>{"use strict";var iZ=kt(),Gp=gr(),oZ=To(),z1=Vu(),BT=_0(),OT=e5();UT.exports={moduleType:"component",name:"fx",constants:n1(),schema:{layout:BT},attributes:vd(),layoutAttributes:BT,supplyLayoutGlobalDefaults:ST(),supplyDefaults:qT(),supplyLayoutDefaults:RT(),calc:FT(),getDistanceFunction:z1.getDistanceFunction,getClosest:z1.getClosest,inbox:z1.inbox,quadrature:z1.quadrature,appendArrayPointValue:z1.appendArrayPointValue,castHoverOption:sZ,castHoverinfo:uZ,hover:OT.hover,unhover:oZ.unhover,loneHover:OT.loneHover,loneUnhover:lZ,click:HT()};function lZ(e){var r=Gp.isD3Selection(e)?e:iZ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function sZ(e,r,t){return Gp.castOption(e,r,"hoverlabel."+t)}function uZ(e,r,t){function n(a){return Gp.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return Gp.castOption(e,t,"hoverinfo",n)}});var nv=te(ru=>{"use strict";ru.selectMode=function(e){return e==="lasso"||e==="select"};ru.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ru.openMode=function(e){return e==="drawline"||e==="drawopenpath"};ru.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ru.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};ru.selectingOrDrawing=function(e){return ru.freeMode(e)||ru.rectMode(e)}});var Vp=te((ofe,YT)=>{"use strict";YT.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var Wp=te((lfe,GT)=>{"use strict";GT.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var Xp=te((sfe,VT)=>{"use strict";var Zp=32;VT.exports={CIRCLE_SIDES:Zp,i000:0,i090:Zp/4,i180:Zp/2,i270:Zp/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var jp=te((ufe,ZT)=>{"use strict";var fZ=gr().strTranslate;function WT(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function cZ(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function vZ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return WT(e,t[r])}}function hZ(e){return fZ(e.xaxis._offset,e.yaxis._offset)}ZT.exports={p2r:WT,r2p:cZ,axValue:vZ,getTransform:hZ}});var Qu=te(tu=>{"use strict";var dZ=Y2(),JT=Xp(),av=JT.CIRCLE_SIDES,n5=JT.SQRT2,$T=jp(),XT=$T.p2r,jT=$T.r2p,pZ=[0,3,4,5,6,1,2],gZ=[0,3,4,1,2];tu.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&s{"use strict";var KT=ua(),nk=nv(),mZ=nk.drawMode,yZ=nk.openMode,iv=Xp(),QT=iv.i000,ek=iv.i090,rk=iv.i180,tk=iv.i270,bZ=iv.cos45,_Z=iv.sin45,ak=jp(),$p=ak.p2r,ef=ak.r2p,xZ=Yu(),wZ=xZ.clearOutline,Kp=Qu(),MZ=Kp.readPaths,AZ=Kp.writePaths,TZ=Kp.ellipseOver,kZ=Kp.fixDatesForPaths;function SZ(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,i=r.dragmode,o=(n.layout||{}).shapes||[];if(!mZ(i)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var CZ=nv(),LZ=CZ.selectMode,qZ=Yu(),DZ=qZ.clearOutline,a5=Qu(),EZ=a5.readPaths,PZ=a5.writePaths,RZ=a5.fixDatesForPaths;lk.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,v=t.dragmode,h=(i.layout||{}).selections||[];if(!LZ(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";sk.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var rf=te(ka=>{"use strict";var Mc=F1(),uk=gr(),eg=Dn();ka.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};ka.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};ka.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};ka.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};ka.extractPathCoords=function(e,r,t){var n=[],a=e.match(Mc.segmentRE);return a.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.substr(1).match(Mc.paramRE);if(!(!l||l.lengthd&&(p="X"),p});return u>d&&(m=m.replace(/[\s,]*X.*/,""),uk.log("Ignoring extra params in segment "+s)),f+m})}function I1(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var l5=te((pfe,hk)=>{"use strict";var NZ=gr(),ov=Dn(),fk=vi(),ck=fn(),FZ=Qu().readPaths,o5=rf(),IZ=o5.getPathString,vk=xd(),HZ=Ka().FROM_TL;hk.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var i;if(n.label.texttemplate){var o={};if(n.type!=="path"){var l=ov.getFromId(r,n.xref),s=ov.getFromId(r,n.yref);for(var u in vk){var f=vk[u](n,l,s);f!==void 0&&(o[u]=f)}}i=NZ.texttemplateStringForShapes(n.label.texttemplate,{},r._fullLayout._d3locale,o)}else i=n.label.text;var v={"data-index":t},h=n.label.font,d={"data-notex":1},m=a.append("g").attr(v).classed("shape-label",!0),p=m.append("text").attr(d).classed("shape-label-text",!0).text(i),y,b,C,x;if(n.path){var _=IZ(r,n),A=FZ(_,r);y=1/0,C=1/0,b=-1/0,x=-1/0;for(var k=0;k=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,i)}function OZ(e,r,t,n,a,i,o){var l=a.label.textposition,s=a.label.textangle,u=a.label.padding,f=a.type,v=Math.PI/180*i,h=Math.sin(v),d=Math.cos(v),m=a.label.xanchor,p=a.label.yanchor,y,b,C,x;if(f==="line"){l==="start"?(y=e,b=r):l==="end"?(y=t,b=n):(y=(e+t)/2,b=(r+n)/2),m==="auto"&&(l==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var UZ=gr(),YZ=UZ.strTranslate,dk=To(),mk=nv(),GZ=mk.drawMode,yk=mk.selectMode,bk=dt(),pk=Pt(),tg=Xp(),VZ=tg.i000,WZ=tg.i090,ZZ=tg.i180,XZ=tg.i270,jZ=Yu(),_k=jZ.clearOutlineControllers,u5=Qu(),rg=u5.pointsOnRectangle,s5=u5.pointsOnEllipse,JZ=u5.writePaths,$Z=Qp().newShapes,KZ=Qp().createShapeObj,QZ=i5(),eX=l5();xk.exports=function e(r,t,n,a){a||(a=0);var i=n.gd;function o(){e(r,t,n,a++),(s5(r[0])||n.hasText)&&l({redrawing:!0})}function l(ae){var K={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,K=$Z(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,K=QZ(t,n),i._fullLayout._reselect=!0),Object.keys(K).length&&bk.call((ae||{}).redrawing?"relayout":"_guiRelayout",i,K)}var s=i._fullLayout,u=s._zoomlayer,f=n.dragmode,v=GZ(f),h=yk(f);(v||h)&&(i._fullLayout._outlining=!0),_k(i),t.attr("d",JZ(r));var d,m,p,y,b;if(!a&&(n.isActiveShape||n.isActiveSelection)){b=rX([],r);var C=u.append("g").attr("class","outline-controllers");F(C),re()}if(v&&n.hasText){var x=u.select(".label-temp"),_=KZ(t,n,n.dragmode);eX(i,"label-temp",_,x)}function A(ae){p=+ae.srcElement.getAttribute("data-i"),y=+ae.srcElement.getAttribute("data-j"),d[p][y].moveFn=k}function k(ae,K){if(r.length){var ee=b[p][y][1],fe=b[p][y][2],he=r[p],De=he.length;if(rg(he)){var Ne=ae,Fe=K;if(n.isActiveSelection){var Xe=gk(he,y);Xe[1]===he[y][1]?Fe=0:Ne=0}for(var Le=0;Le1&&!(ae.length===2&&ae[1][0]==="Z")&&(y===0&&(ae[0][0]="M"),r[p]=ae,o(),l())}}function z(ae,K){if(ae===2){p=+K.srcElement.getAttribute("data-i"),y=+K.srcElement.getAttribute("data-j");var ee=r[p];!rg(ee)&&!s5(ee)&&E()}}function F(ae){d=[];for(var K=0;K{"use strict";var nX=kt(),Sk=dt(),wk=gr(),lv=Dn(),aX=Qu().readPaths,iX=ng(),ig=l5(),Ck=Yu().clearOutlineControllers,f5=Pt(),v5=fn(),oX=bn().arrayEditor,Mk=To(),Ak=Ku(),Ac=F1(),zi=rf(),c5=zi.getPathString;Dk.exports={draw:h5,drawOne:Lk,eraseActiveShape:uX,drawLabel:ig};function h5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;ao&&ur>l&&!or.shiftKey?Mk.getCursor(cr/tr,1-Ke/ur):"move";Ak(r,pr),rr=pr.split("-")[0]}}function pe(or){ag(e)||(s&&(b=he(t.xanchor)),u&&(C=De(t.yanchor)),t.type==="path"?I=t.path:(d=s?t.x0:he(t.x0),m=u?t.y0:De(t.y0),p=s?t.x1:he(t.x1),y=u?t.y1:De(t.y1)),dy?(x=m,M="y0",_=y,E="y1"):(x=y,M="y1",_=m,E="y0"),we(or),Oe(a,t),ir(r,t,e),Le.moveFn=rr==="move"?$:ke,Le.altKey=or.altKey)}function U(){ag(e)||(Ak(r),Ie(a),qk(r,e,t),Sk.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){ag(e)||Ie(a)}function $(or,Ue){if(t.type==="path"){var tr=function(Ke){return Ke},ur=tr,cr=tr;s?h("xanchor",t.xanchor=Ne(b+or)):(ur=function(pr){return Ne(he(pr)+or)},B&&B.type==="date"&&(ur=zi.encodeDate(ur))),u?h("yanchor",t.yanchor=Fe(C+Ue)):(cr=function(pr){return Fe(De(pr)+Ue)},V&&V.type==="date"&&(cr=zi.encodeDate(cr))),h("path",t.path=Tk(I,ur,cr))}else s?h("xanchor",t.xanchor=Ne(b+or)):(h("x0",t.x0=Ne(d+or)),h("x1",t.x1=Ne(p+or))),u?h("yanchor",t.yanchor=Fe(C+Ue)):(h("y0",t.y0=Fe(m+Ue)),h("y1",t.y1=Fe(y+Ue)));r.attr("d",c5(e,t)),Oe(a,t),ig(e,n,t,W)}function ke(or,Ue){if(v){var tr=function(Tr){return Tr},ur=tr,cr=tr;s?h("xanchor",t.xanchor=Ne(b+or)):(ur=function(Dr){return Ne(he(Dr)+or)},B&&B.type==="date"&&(ur=zi.encodeDate(ur))),u?h("yanchor",t.yanchor=Fe(C+Ue)):(cr=function(Dr){return Fe(De(Dr)+Ue)},V&&V.type==="date"&&(cr=zi.encodeDate(cr))),h("path",t.path=Tk(I,ur,cr))}else if(f){if(rr==="resize-over-start-point"){var Ke=d+or,pr=u?m-Ue:m+Ue;h("x0",t.x0=s?Ke:Ne(Ke)),h("y0",t.y0=u?pr:Fe(pr))}else if(rr==="resize-over-end-point"){var dr=p+or,Te=u?y-Ue:y+Ue;h("x1",t.x1=s?dr:Ne(dr)),h("y1",t.y1=u?Te:Fe(Te))}}else{var Ye=function(Tr){return rr.indexOf(Tr)!==-1},Ar=Ye("n"),zr=Ye("s"),Er=Ye("w"),Ae=Ye("e"),je=Ar?x+Ue:x,hr=zr?_+Ue:_,wr=Er?A+or:A,mr=Ae?k+or:k;u&&(Ar&&(je=x-Ue),zr&&(hr=_-Ue)),(!u&&hr-je>l||u&&je-hr>l)&&(h(M,t[M]=u?je:Fe(je)),h(E,t[E]=u?hr:Fe(hr))),mr-wr>o&&(h(z,t[z]=s?wr:Ne(wr)),h(F,t[F]=s?mr:Ne(mr)))}r.attr("d",c5(e,t)),Oe(a,t),ig(e,n,t,W)}function Oe(or,Ue){(s||u)&&tr();function tr(){var ur=Ue.type!=="path",cr=or.selectAll(".visual-cue").data([0]),Ke=1;cr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ke}).classed("visual-cue",!0);var pr=he(s?Ue.xanchor:wk.midRange(ur?[Ue.x0,Ue.x1]:zi.extractPathCoords(Ue.path,Ac.paramIsX))),dr=De(u?Ue.yanchor:wk.midRange(ur?[Ue.y0,Ue.y1]:zi.extractPathCoords(Ue.path,Ac.paramIsY)));if(pr=zi.roundPositionForSharpStrokeRendering(pr,Ke),dr=zi.roundPositionForSharpStrokeRendering(dr,Ke),s&&u){var Te="M"+(pr-1-Ke)+","+(dr-1-Ke)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";cr.attr("d",Te)}else if(s){var Ye="M"+(pr-1-Ke)+","+(dr-9-Ke)+"v18 h2 v-18 Z";cr.attr("d",Ye)}else{var Ar="M"+(pr-9-Ke)+","+(dr-1-Ke)+"h18 v2 h-18 Z";cr.attr("d",Ar)}}}function Ie(or){or.selectAll(".visual-cue").remove()}function ir(or,Ue,tr){var ur=Ue.xref,cr=Ue.yref,Ke=lv.getFromId(tr,ur),pr=lv.getFromId(tr,cr),dr="";ur!=="paper"&&!Ke.autorange&&(dr+=ur),cr!=="paper"&&!pr.autorange&&(dr+=cr),v5.setClipUrl(or,dr?"clip"+tr._fullLayout._uid+dr:null,tr)}}function Tk(e,r,t){return e.replace(Ac.segmentRE,function(n){var a=0,i=n.charAt(0),o=Ac.paramIsX[i],l=Ac.paramIsY[i],s=Ac.numParams[i],u=n.substr(1).replace(Ac.paramRE,function(f){return a>=s||(o[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return i+u})}function sX(e,r){if(og(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){kk(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=kk,h5(e)}}}function kk(e){if(og(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(Ck(e),delete e._fullLayout._activeShapeIndex,h5(e))}}function uX(e){if(og(e)){Ck(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Co=dt(),Ek=fa(),Pk=ua(),Yt=Wp(),fX=lg().eraseActiveShape,sg=gr(),Dt=sg._,Gt=Bk.exports={};Gt.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Dt(e,"Download plot as a PNG"):Dt(e,"Download plot")},icon:Yt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};sg.notifier(Dt(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Co.call("downloadImage",e,t).then(function(n){sg.notifier(Dt(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){sg.notifier(Dt(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Gt.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Dt(e,"Edit in Chart Studio")},icon:Yt.disk,click:function(e){Ek.sendDataToCloud(e)}};Gt.editInChartStudio={name:"editInChartStudio",title:function(e){return Dt(e,"Edit in Chart Studio")},icon:Yt.pencil,click:function(e){Ek.sendDataToCloud(e)}};Gt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Dt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Yt.zoombox,click:ti};Gt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Dt(e,"Pan")},attr:"dragmode",val:"pan",icon:Yt.pan,click:ti};Gt.select2d={name:"select2d",_cat:"select",title:function(e){return Dt(e,"Box Select")},attr:"dragmode",val:"select",icon:Yt.selectbox,click:ti};Gt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Dt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Yt.lasso,click:ti};Gt.drawclosedpath={name:"drawclosedpath",title:function(e){return Dt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Yt.drawclosedpath,click:ti};Gt.drawopenpath={name:"drawopenpath",title:function(e){return Dt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Yt.drawopenpath,click:ti};Gt.drawline={name:"drawline",title:function(e){return Dt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Yt.drawline,click:ti};Gt.drawrect={name:"drawrect",title:function(e){return Dt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Yt.drawrect,click:ti};Gt.drawcircle={name:"drawcircle",title:function(e){return Dt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Yt.drawcircle,click:ti};Gt.eraseshape={name:"eraseshape",title:function(e){return Dt(e,"Erase active shape")},icon:Yt.eraseshape,click:fX};Gt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Dt(e,"Zoom in")},attr:"zoom",val:"in",icon:Yt.zoom_plus,click:ti};Gt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Dt(e,"Zoom out")},attr:"zoom",val:"out",icon:Yt.zoom_minus,click:ti};Gt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Dt(e,"Autoscale")},attr:"zoom",val:"auto",icon:Yt.autoscale,click:ti};Gt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Dt(e,"Reset axes")},attr:"zoom",val:"reset",icon:Yt.home,click:ti};Gt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Dt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Yt.tooltip_basic,gravity:"ne",click:ti};Gt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Dt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Yt.tooltip_compare,gravity:"ne",click:ti};function ti(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=Pk.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(n==="zoom"){var v=a==="in"?.5:2,h=(1+v)/2,d=(1-v)/2,m,p;for(f=0;f{"use strict";var Ok=g5(),hX=Object.keys(Ok),Uk=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Yk=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Uk),uv=[],dX=function(e){if(Yk.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();uv.indexOf(r)===-1&&uv.push(r),uv.indexOf(t)===-1&&uv.push(t)}};hX.forEach(function(e){dX(Ok[e])});uv.sort();Gk.exports={DRAW_MODES:Uk,backButtons:Yk,foreButtons:uv}});var y5=te((xfe,Vk)=>{"use strict";var _fe=m5();Vk.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var Zk=te((wfe,Wk)=>{"use strict";var pX=gr(),H1=Pt(),gX=bn(),mX=y5();Wk.exports=function(r,t){var n=r.modebar||{},a=gX.newContainer(t,"modebar");function i(l,s){return pX.coerce(n,a,mX,l,s)}i("orientation"),i("bgcolor",H1.addOpacity(t.paper_bgcolor,.5));var o=H1.contrast(H1.rgb(t.modebar.bgcolor));i("color",H1.addOpacity(o,.3)),i("activecolor",H1.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var $k=te((Mfe,Jk)=>{"use strict";var b5=kt(),yX=Ut(),fg=gr(),Xk=Wp(),bX=rd().version,_X=new DOMParser;function jk(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var us=jk.prototype;us.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=n.modebar,o="#"+a+" .modebar-group";document.querySelectorAll(o).forEach(function(v){v.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),fg.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};us.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var i=a.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(a);r.buttonElements.push(o),n.appendChild(o)}),r.element.appendChild(n)})};us.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};us.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(t.setAttribute("data-title",n),t.setAttribute("aria-label",n)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&b5.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||Xk.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};us.createIcon=function(e){var r=yX(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var i=_X.parseFromString(e.svg,"application/xml");n=i.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};us.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,i=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",l=b5.select(n),s=function(v,h){var d=r.modebar,m=v.querySelector(".icon path");m&&(h||v.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(n,u)}}else{var f=i===null?i:fg.nestedProperty(r,i).get();l.classed("active",f===a),s(n,f===a)}})};us.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var MX=ua(),Kk=Qa(),_5=dt(),AX=Vu().isUnifiedHover,TX=$k(),cg=g5(),kX=m5().DRAW_MODES,SX=gr().extendDeep;Qk.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=n.modeBarButtons,o;Array.isArray(i)&&i.length?o=PX(i):!n.displayModeBar&&n.watermark?o=[]:o=CX(r),a?a.update(r,o):t._modeBar=TX(r,o)};function CX(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(K,ee){if(typeof ee=="string"){if(ee.toLowerCase()===K.toLowerCase())return!0}else{var fe=ee.name,he=ee._cat||ee.name;if(fe===K||he===K.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=n.modeBarButtonsToAdd.concat(i.filter(function(K){for(var ee=0;ee1?(F=["toggleHover"],I=["resetViews"]):v?(z=["zoomInGeo","zoomOutGeo"],F=["hoverClosestGeo"],I=["resetGeo"]):f?(F=["hoverClosest3d"],I=["resetCameraDefault3d","resetCameraLastSave3d"]):p?(z=["zoomInMapbox","zoomOutMapbox"],F=["toggleHover"],I=["resetViewMapbox"]):y?(z=["zoomInMap","zoomOutMap"],F=["toggleHover"],I=["resetViewMap"]):h?F=["hoverClosestPie"]:x?(F=["hoverClosestCartesian","hoverCompareCartesian"],I=["resetViewSankey"]):F=["toggleHover"],u&&F.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(DX(t)||A)&&(F=[]),u&&!_&&(z=["zoomIn2d","zoomOut2d","autoScale2d"],I[0]!=="resetViews"&&(I=["resetScale2d"])),f?W=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!_||m?W=["zoom2d","pan2d"]:p||y||v?W=["pan2d"]:b&&(W=["zoom2d"]),qX(t)&&W.push("select2d","lasso2d");var B=[],X=function(K){B.indexOf(K)===-1&&F.indexOf(K)!==-1&&B.push(K)};if(Array.isArray(l)){for(var V=[],re=0;re{"use strict";rS.exports={moduleType:"component",name:"modebar",layoutAttributes:y5(),supplyLayoutDefaults:Zk(),manage:eS()}});var w5=te((kfe,tS)=>{"use strict";var RX=Ka().FROM_BL;tS.exports=function(r,t,n){n===void 0&&(n=RX[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(i+(a[0]-i)*t),r.l2r(i+(a[1]-i)*t)],r.setScale()}});var O1=te(B1=>{"use strict";var Tc=gr(),M5=Ju(),_l=ua().id2name,zX=gl(),nS=w5(),NX=gp(),FX=Rn().ALMOST_EQUAL,IX=Ka().FROM_BL;B1.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,v,h,d,m;for(l=0;li?t.substr(i):n.substr(a))+o}function BX(e,r){for(var t=r._size,n=t.h/t.w,a={},i=Object.keys(e),o=0;oFX*m&&!C)){for(i=0;iW&&feF&&(F=fe);var De=(F-z)/(2*I);v/=De,z=s.l2r(z),F=s.l2r(F),s.range=s._input.range=k{"use strict";var hg=kt(),ni=dt(),ro=fa(),Lo=gr(),k5=vi(),S5=Vp(),U1=Pt(),fv=fn(),lS=T1(),vS=x5(),Y1=Dn(),nu=Ka(),hS=O1(),OX=hS.enforce,UX=hS.clean,sS=Ju().doAutoRange,dS="start",YX="middle",pS="end",GX=Pa().zindexSeparator;xa.layoutStyles=function(e){return Lo.syncOrAsync([ro.doAutoMargin,WX],e)};function VX(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&i[0]r[0])return!0}return!1}function WX(e){var r=e._fullLayout,t=r._size,n=t.p,a=Y1.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(fv.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),xa.drawMainTitle(e),vS.manage(e),!r._has("cartesian"))return ro.previousPromises(e);function v(pe,U,Q){var $=pe._lw/2;if(pe._id.charAt(0)==="x"){if(U){if(Q==="top")return U._offset-n-$}else return t.t+t.h*(1-(pe.position||0))+$%1;return U._offset+U._length+n+$}if(U){if(Q==="right")return U._offset+U._length+n+$}else return t.l+t.w*(pe.position||0)+$%1;return U._offset-n-$}for(i=0;i0){JX(e,i,u,s),l.attr({x:o,y:i,"text-anchor":n,dy:cS(r.yanchor)}).call(k5.positionText,o,i);var f=(r.text.match(k5.BR_TAG_ALL)||[]).length;if(f){var v=nu.LINE_SPACING*f+nu.MID_SHIFT;r.y===0&&(v=-v),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",y)})}var h=hg.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=l.node().getBBox(),m=d.y+d.height,p=m+lS.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:o,y:p,"text-anchor":n,dy:cS(r.yanchor)}).call(k5.positionText,o,p)}}}};function ZX(e,r,t,n,a){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Lo.isTopAnchor(r)?n:n-a,l=t==="b"?i-o:o;return Lo.isTopAnchor(r)&&t==="t"||Lo.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=XX(i,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function JX(e,r,t,n){var a="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&ZX(e,i,o,r,n)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[a]=s),ro.allowAutoMargin(e,a),ro.autoMargin(e,a,l)}function $X(e,r){var t=e.title,n=e._size,a=0;switch(r===dS?a=t.pad.l:r===pS&&(a=-t.pad.r),t.xref){case"paper":return n.l+n.w*t.x+a;case"container":default:return e.width*t.x+a}}function KX(e,r){var t=e.title,n=e._size,a=0;if(r==="0em"||!r?a=-t.pad.b:r===nu.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto")return n.t/2;switch(t.yref){case"paper":return n.t+n.h-n.h*t.y+a;case"container":default:return e.height-e.height*t.y+a}}function cS(e){return e==="top"?nu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":nu.MID_SHIFT+"em"}function QX(e){var r=e.title,t=YX;return Lo.isRightAnchor(r)?t=pS:Lo.isLeftAnchor(r)&&(t=dS),t}function ej(e){var r=e.title,t="0em";return Lo.isTopAnchor(r)?t=nu.CAP_SHIFT+"em":Lo.isMiddleAnchor(r)&&(t=nu.MID_SHIFT+"em"),t}xa.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var rj=Qu().readPaths,tj=ng(),gS=Yu().clearOutlineControllers,C5=Pt(),mS=fn(),nj=bn().arrayEditor,yS=rf(),aj=yS.getPathString;_S.exports={draw:pg,drawOne:bS,activateLastSelection:lj};function pg(e){var r=e._fullLayout;gS(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a=0;y--){var b=o.append("path").attr(s).style("opacity",y?.1:u).call(C5.stroke,v).call(C5.fill,f).call(mS.dashLine,y?"solid":d,y?4+h:h);if(ij(b,e,n),m){var C=nj(e.layout,"selections",n);b.style({cursor:"move"});var x={element:b.node(),plotinfo:a,gd:e,editHelpers:C,isActiveSelection:!0},_=rj(l,e);tj(_,b,x)}else b.style("pointer-events",y?"all":"none");p[y]=b}var A=p[0],k=p[1];k.node().addEventListener("click",function(){return oj(e,A)})}}function ij(e,r,t){var n=t.xref+t.yref;mS.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function oj(e,r){if(gg(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){L5(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=L5,pg(e)}}}function lj(e){if(gg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=L5,pg(e)}}function L5(e){if(gg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(gS(e),delete e._fullLayout._activeSelectionIndex,pg(e))}}});var wS=te((qfe,xS)=>{function sj(){var e,r=0,t=!1;function n(a,i){return e.list.push({type:a,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,i){return n("check",{seg1:a,seg2:i})},segmentChop:function(a,i){return n("div_seg",{seg:a,pt:i}),n("chop",{seg:a,pt:i})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,i){return n("new_seg",{seg:a,primary:i})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,i,o){return n("temp_status",{seg:a,above:i,below:o})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,i,o){return n("status",{seg:a,above:i,below:o})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,i){return n("chain_rem_head",{index:a,pt:i})},chainRemoveTail:function(a,i){return n("chain_rem_tail",{index:a,pt:i})},chainNew:function(a,i){return n("chain_new",{pt1:a,pt2:i})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,i){return n("chain_add_head",{index:a,pt:i})},chainAddTail:function(a,i){return n("chain_add_tail",{index:a,pt:i})},chainConnect:function(a,i){return n("chain_con",{index1:a,index2:i})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,i){return n("chain_join",{index1:a,index2:i})},done:function(){return n("done")}},e}xS.exports=sj});var AS=te((Dfe,MS)=>{function uj(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var i=n[0],o=n[1],l=a[0],s=a[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,n,a){var i=t[1]-n[1],o=a[0]-n[0],l=t[0]-n[0],s=a[1]-n[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])e!=l-i>e&&(o-f)*(i-v)/(l-v)+f-a>e&&(s=!s),o=f,l=v}return s}};return r}MS.exports=uj});var kS=te((Efe,TS)=>{var fj={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};TS.exports=fj});var CS=te((Pfe,SS)=>{var G1=kS();function cj(e,r,t){function n(m,p){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:null,below:null},otherFill:null}}function a(m,p,y){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=G1.create();function o(m,p,y,b,C,x){var _=r.pointsCompare(p,C);return _!==0?_:r.pointsSame(y,x)?0:m!==b?m?1:-1:r.pointAboveOrOnLine(y,b?C:x,b?x:C)?1:-1}function l(m,p){i.insertBefore(m,function(y){var b=o(m.isStart,m.pt,p,y.isStart,y.pt,y.other.pt);return b<0})}function s(m,p){var y=G1.node({isStart:!0,pt:m.start,seg:m,primary:p,other:null,status:null});return l(y,m.end),y}function u(m,p,y){var b=G1.node({isStart:!1,pt:p.end,seg:p,primary:y,other:m,status:null});m.other=b,l(b,m.pt)}function f(m,p){var y=s(m,p);return u(y,m,p),y}function v(m,p){t&&t.segmentChop(m.seg,p),m.other.remove(),m.seg.end=p,m.other.pt=p,l(m.other,m.pt)}function h(m,p){var y=a(p,m.seg.end,m.seg);return v(m,p),f(y,m.primary)}function d(m,p){var y=G1.create();function b(V,re){var ae=V.seg.start,K=V.seg.end,ee=re.seg.start,fe=re.seg.end;return r.pointsCollinear(ae,ee,fe)?r.pointsCollinear(K,ee,fe)||r.pointAboveOrOnLine(K,ee,fe)?1:-1:r.pointAboveOrOnLine(ae,ee,fe)?1:-1}function C(V){return y.findTransition(function(re){var ae=b(V,re.ev);return ae>0})}function x(V,re){var ae=V.seg,K=re.seg,ee=ae.start,fe=ae.end,he=K.start,De=K.end;t&&t.checkIntersection(ae,K);var Ne=r.linesIntersect(ee,fe,he,De);if(Ne===!1){if(!r.pointsCollinear(ee,fe,he)||r.pointsSame(ee,De)||r.pointsSame(fe,he))return!1;var Fe=r.pointsSame(ee,he),Xe=r.pointsSame(fe,De);if(Fe&&Xe)return re;var Le=!Fe&&r.pointBetween(ee,he,De),rr=!Xe&&r.pointBetween(fe,he,De);if(Fe)return rr?h(re,fe):h(V,De),re;Le&&(Xe||(rr?h(re,fe):h(V,De)),h(re,ee))}else Ne.alongA===0&&(Ne.alongB===-1?h(V,he):Ne.alongB===0?h(V,Ne.pt):Ne.alongB===1&&h(V,De)),Ne.alongB===0&&(Ne.alongA===-1?h(re,ee):Ne.alongA===0?h(re,Ne.pt):Ne.alongA===1&&h(re,fe));return!1}for(var _=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let V=function(){if(M){var re=x(A,M);if(re)return re}return E?x(A,E):!1};var X=V;t&&t.segmentNew(A.seg,A.primary);var k=C(A),M=k.before?k.before.ev:null,E=k.after?k.after.ev:null;t&&t.tempStatus(A.seg,M?M.seg:!1,E?E.seg:!1);var z=V();if(z){if(e){var F;A.seg.myFill.below===null?F=!0:F=A.seg.myFill.above!==A.seg.myFill.below,F&&(z.seg.myFill.above=!z.seg.myFill.above)}else z.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(z.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var F;A.seg.myFill.below===null?F=!0:F=A.seg.myFill.above!==A.seg.myFill.below,E?A.seg.myFill.below=E.seg.myFill.above:A.seg.myFill.below=m,F?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var I;E?A.primary===E.primary?I=E.seg.otherFill.above:I=E.seg.myFill.above:I=A.primary?p:m,A.seg.otherFill={above:I,below:I}}t&&t.status(A.seg,M?M.seg:!1,E?E.seg:!1),A.other.status=k.insert(G1.node({ev:A}))}else{var W=A.status;if(W===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(W.prev)&&y.exists(W.next)&&x(W.prev.ev,W.next.ev),t&&t.statusRemove(W.ev.seg),W.remove(),!A.primary){var B=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=B}_.push(A.seg)}i.getHead().remove()}return t&&t.done(),_}return e?{addRegion:function(m){for(var p,y=m[m.length-1],b=0;b{function vj(e,r,t){var n=[],a=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function v(X,V,re){return f.index=X,f.matches_head=V,f.matches_pt1=re,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function V1(e,r,t){var n=[];return e.forEach(function(a){var i=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[i]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(n),n}var hj={union:function(e,r){return V1(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return V1(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return V1(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return V1(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return V1(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};DS.exports=hj});var RS=te((Nfe,PS)=>{var dj={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var pj=wS(),gj=AS(),zS=CS(),mj=qS(),W1=ES(),NS=RS(),qo=!1,Z1=gj(),Ni;Ni={buildLog:function(e){return e===!0?qo=pj():e===!1&&(qo=!1),qo===!1?!1:qo.list},epsilon:function(e){return Z1.epsilon(e)},segments:function(e){var r=zS(!0,Z1,qo);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=zS(!1,Z1,qo);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:W1.union(e.combined,qo),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:W1.intersect(e.combined,qo),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:W1.difference(e.combined,qo),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:W1.differenceRev(e.combined,qo),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:W1.xor(e.combined,qo),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:mj(e.segments,Z1,qo),inverted:e.inverted}},polygonFromGeoJSON:function(e){return NS.toPolygon(Ni,e)},polygonToGeoJSON:function(e){return NS.fromPolygon(Ni,Z1,e)},union:function(e,r){return X1(e,r,Ni.selectUnion)},intersect:function(e,r){return X1(e,r,Ni.selectIntersect)},difference:function(e,r){return X1(e,r,Ni.selectDifference)},differenceRev:function(e,r){return X1(e,r,Ni.selectDifferenceRev)},xor:function(e,r){return X1(e,r,Ni.selectXor)}};function X1(e,r,t){var n=Ni.segments(e),a=Ni.segments(r),i=Ni.combine(n,a),o=t(i);return Ni.polygon(o)}typeof window=="object"&&(window.PolyBool=Ni);FS.exports=Ni});var BS=te((Ife,HS)=>{HS.exports=function(r,t,n,a){var i=r[0],o=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var s=a-n,u=0,f=s-1;uo!=m>o&&i<(d-v)*(o-h)/(m-h)+v;p&&(l=!l)}return l}});var bg=te((Hfe,OS)=>{"use strict";var D5=yd().dot,mg=Rn().BADNUM,yg=OS.exports={};yg.tester=function(r){var t=r.slice(),n=t[0][0],a=n,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;la||b===mg||bo||p&&u(m))}function v(m,p){var y=m[0],b=m[1];if(y===mg||ya||b===mg||bo)return!1;var C=t.length,x=t[0][0],_=t[0][1],A=0,k,M,E,z,F;for(k=1;kMath.max(M,x)||b>Math.max(E,_)))if(bl||Math.abs(D5(v,u))>a)return!0;return!1};yg.filter=function(r,t){var n=[r[0]],a=0,i=0;function o(s){r.push(s);var u=n.length,f=a;n.splice(i+1);for(var v=f+1;v1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:n}}});var YS=te((Bfe,US)=>{"use strict";US.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var cC=te((Ofe,fC)=>{"use strict";var GS=IS(),yj=BS(),$1=dt(),bj=fn().dashStyle,j1=Pt(),_j=ss(),xj=Vu().makeEventData,th=nv(),wj=th.freeMode,Mj=th.rectMode,K1=th.drawMode,z5=th.openMode,N5=th.selectMode,VS=rf(),WS=F1(),$S=ng(),KS=Yu().clearOutline,QS=Qu(),E5=QS.handleEllipse,Aj=QS.readPaths,Tj=Qp().newShapes,kj=i5(),Sj=q5().activateLastSelection,xg=gr(),Cj=xg.sorterAsc,eC=bg(),J1=Ed(),Do=ua().getFromId,Lj=Vp(),qj=dg().redrawReglTraces,wg=YS(),fs=wg.MINSELECT,Dj=eC.filter,F5=eC.tester,I5=jp(),ZS=I5.p2r,Ej=I5.axValue,Pj=I5.getTransform;function H5(e){return e.subplot!==void 0}function Rj(e,r,t,n,a){var i=!H5(n),o=wj(a),l=Mj(a),s=z5(a),u=K1(a),f=N5(a),v=a==="drawline",h=a==="drawcircle",d=v||h,m=n.gd,p=m._fullLayout,y=f&&p.newselection.mode==="immediate"&&i,b=p._zoomlayer,C=n.element.getBoundingClientRect(),x=n.plotinfo,_=Pj(x),A=r-C.left,k=t-C.top;p._calcInverseTransform(m);var M=xg.apply3DTransform(p._invTransform)(A,k);A=M[0],k=M[1];var E=p._invScaleX,z=p._invScaleY,F=A,I=k,W="M"+A+","+k,B=n.xaxes[0],X=n.yaxes[0],V=B._length,re=X._length,ae=e.altKey&&!(K1(a)&&s),K,ee,fe,he,De,Ne,Fe;tC(e,m,n),o&&(K=Dj([[A,k]],wg.BENDPX));var Xe=b.selectAll("path.select-outline-"+x.id).data([1]),Le=u?p.newshape:p.newselection;u&&(n.hasText=Le.label.text||Le.label.texttemplate);var rr=u&&!s?Le.fillcolor:"rgba(0,0,0,0)",se=Le.line.color||(i?j1.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Xe.enter().append("path").attr("class","select-outline select-outline-"+x.id).style({opacity:u?Le.opacity/2:1,"stroke-dasharray":bj(Le.line.dash,Le.line.width),"stroke-width":Le.line.width+"px","shape-rendering":"crispEdges"}).call(j1.stroke,se).call(j1.fill,rr).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",_).attr("d",W+"Z");var ye=b.append("path").attr("class","zoombox-corners").style({fill:j1.background,stroke:j1.defaultLine,"stroke-width":1}).attr("transform",_).attr("d","M0,0Z");if(u&&n.hasText){var we=b.select(".label-temp");we.empty()&&(we=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var pe=p._uid+wg.SELECTID,U=[],Q=Mg(m,n.xaxes,n.yaxes,n.subplot);y&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(i){var ke=B._id,Oe=X._id;lC(m,ke,Oe,Q);for(var Ie=(m.layout||{}).selections||[],ir=[],or=!1,Ue=0;Ue=0){m._fullLayout._deactivateShape(m);return}if(!u){var Ie=p.clickmode;J1.done(pe).then(function(){if(J1.clear(pe),ke===2){for(Xe.remove(),De=0;De-1&&rC(Oe,m,n.xaxes,n.yaxes,n.subplot,n,Xe),Ie==="event"&&rh(m,void 0);_j.click(m,Oe,x.id)}).catch(xg.error)}},n.doneFn=function(){ye.remove(),J1.done(pe).then(function(){J1.clear(pe),!y&&he&&n.selectionDefs&&(he.subtract=ae,n.selectionDefs.push(he),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,fe)),(y||u)&&Q1(n,y),n.doneFnCompleted&&n.doneFnCompleted(U),f&&rh(m,Fe)}).catch(xg.error)}}function rC(e,r,t,n,a,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,v=[],h,d,m,p,y,b,C,x,_,A;if(Hj(l)){tC(e,r,i),h=Mg(r,t,n,a);var k=Bj(l,h),M=k.pointNumbers.length>0;if(M?Oj(h,k):Uj(h)&&(C=jS(k))){for(o&&o.remove(),A=0;A=0}function Ij(e){return e._fullLayout._activeSelectionIndex>=0}function Q1(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;Fj(a)&&a._fullLayout._deactivateShape(a),Ij(a)&&a._fullLayout._deactivateSelection(a);var i=a._fullLayout,o=i._zoomlayer,l=K1(t),s=N5(t);if(l||s){var u=o.selectAll(".select-outline-"+n.id);if(u&&a._fullLayout._outlining){var f;l&&(f=Tj(u,e)),f&&$1.call("_guiRelayout",a,{shapes:f});var v;s&&!H5(e)&&(v=kj(u,e)),v&&(a._fullLayout._noEmitSelectedAtStart=!0,$1.call("_guiRelayout",a,{selections:v}).then(function(){r&&Sj(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function XS(e){return e._id}function Mg(e,r,t,n){if(!e.calcdata)return[];var a=[],i=r.map(XS),o=t.map(XS),l,s,u;for(u=0;u0,i=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Oj(e,r){var t=[],n,a,i,o;for(o=0;o0&&t.push(n);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function eh(e,r,t){var n;for(n=0;n-1&&r;if(!o&&r){var ke=JS(e,!0);if(ke.length){var Oe=ke[0].xref,Ie=ke[0].yref;if(Oe&&Ie){var ir=sC(ke),or=uC([Do(e,Oe,"x"),Do(e,Ie,"y")]);or(U,ir)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:$&&rh(e,U),h._reselect=!1}if(!o&&h._deselect){var Ue=h._deselect;l=Ue.xref,s=Ue.yref,Vj(l,s,f)||lC(e,l,s,n),$&&(U.points.length?rh(e,U):U5(e)),h._deselect=!1}return{eventData:U,selectionTesters:t}}function Gj(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";vC.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var nh=te((Yfe,hC)=>{"use strict";hC.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var cv=te((Vfe,gC)=>{"use strict";var dC=Y5(),pC=$a(),Ag=Pa(),Jj=bn().templatedArray,Gfe=nh();gC.exports=Jj("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:pC({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:dC.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:dC.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Ag.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Ag.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Ag.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Ag.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:pC({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Tg=te((Wfe,mC)=>{"use strict";mC.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var G5=te((Zfe,yC)=>{"use strict";yC.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var kc=te((Xfe,AC)=>{"use strict";var bC=w2().axisHoverFormat,$j=Vs().texttemplateAttrs,Kj=Vs().hovertemplateAttrs,_C=H0(),Qj=$a(),eJ=Kl().dash,rJ=Kl().pattern,tJ=fn(),nJ=Tg(),kg=la().extendFlat,aJ=G5();function xC(e){return{valType:"any",dflt:0,editType:"calc"}}function wC(e){return{valType:"any",editType:"calc"}}function MC(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}AC.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:xC("x"),yperiod:xC("y"),xperiod0:wC("x0"),yperiod0:wC("y0"),xperiodalignment:MC("x"),yperiodalignment:MC("y"),xhoverformat:bC("x"),yhoverformat:bC("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:$j({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Kj({},{keys:nJ.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:kg({},eJ,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:aJ(!0),fillgradient:kg({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:rJ,marker:kg({symbol:{valType:"enumerated",values:tJ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:kg({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},_C("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},_C("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Qj({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var V5=te((Jfe,SC)=>{"use strict";var TC=cv(),kC=kc().line,iJ=Kl().dash,Sg=la().extendFlat,oJ=_o().overrideAll,lJ=bn().templatedArray,jfe=nh();SC.exports=oJ(lJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Sg({},TC.xref,{}),yref:Sg({},TC.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:kC.color,width:Sg({},kC.width,{min:1,dflt:1}),dash:Sg({},iJ,{dflt:"dot"})}}),"arraydraw","from-root")});var DC=te(($fe,qC)=>{"use strict";var CC=gr(),Cg=Dn(),sJ=ml(),uJ=V5(),LC=rf();qC.exports=function(r,t){sJ(r,t,{name:"selections",handleItemDefaults:fJ});for(var n=t.selections,a=0;a{"use strict";EC.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var ah=te((Qfe,NC)=>{"use strict";var cJ=dt(),RC=gr(),zC=ua();NC.exports=function(r){return function(n,a){var i=n[r];if(Array.isArray(i))for(var o=cJ.subplotsRegistry.cartesian,l=o.idRegex,s=a._subplots,u=s.xaxis,f=s.yaxis,v=s.cartesian,h=a._has("cartesian"),d=0;d{"use strict";var FC=q5(),ih=cC();IC.exports={moduleType:"component",name:"selections",layoutAttributes:V5(),supplyLayoutDefaults:DC(),supplyDrawNewSelectionDefaults:PC(),includeBasePlot:ah()("selections"),draw:FC.draw,drawOne:FC.drawOne,reselect:ih.reselect,prepSelect:ih.prepSelect,clearOutline:ih.clearOutline,clearSelectionsCache:ih.clearSelectionsCache,selectOnClick:ih.selectOnClick}});var iL=te((rce,aL)=>{"use strict";var J5=kt(),Eo=gr(),HC=Eo.numberFormat,vJ=Jl(),hJ=L3(),Lg=dt(),XC=Eo.strTranslate,dJ=vi(),BC=Pt(),nf=fn(),pJ=ss(),OC=Dn(),gJ=Ku(),mJ=To(),jC=nv(),qg=jC.selectingOrDrawing,yJ=jC.freeMode,bJ=Ka().FROM_TL,_J=Vp(),xJ=dg().redrawReglTraces,wJ=fa(),Z5=ua().getFromId,MJ=au().prepSelect,AJ=au().clearOutline,TJ=au().selectOnClick,W5=w5(),$5=Pa(),UC=$5.MINDRAG,hi=$5.MINZOOM,YC=!0;function kJ(e,r,t,n,a,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,v,h,d,m,p,y,b,C,x,_,A,k,M,E,z,F,I,W,B,X,V,re,ae;t+=r.yaxis._shift;function K(){if(v=r.xaxis,h=r.yaxis,x=v._length,_=h._length,b=v._offset,C=h._offset,d={},d[v._id]=v,m={},m[h._id]=h,o&&l)for(var Ae=r.overlays,je=0;je=0){hr._fullLayout._deactivateShape(hr);return}var wr=hr._fullLayout.clickmode;if(j5(hr),Ae===2&&!f&&dr(),u)wr.indexOf("select")>-1&&TJ(je,hr,p,y,r.id,he),wr.indexOf("event")>-1&&pJ.click(hr,je,r.id);else if(Ae===1&&f){var mr=o?h:v,Tr=o==="s"||l==="w"?0:1,Dr=mr._name+".range["+Tr+"]",Or=SJ(mr,Tr),Cr="left",ar="middle";if(mr.fixedrange)return;o?(ar=o==="n"?"top":"bottom",mr.side==="right"&&(Cr="right")):l==="e"&&(Cr="right"),hr._context.showAxisRangeEntryBoxes&&J5.select(fe).call(dJ.makeEditable,{gd:hr,immediate:!0,background:hr._fullLayout.paper_bgcolor,text:String(Or),fill:mr.tickfont?mr.tickfont.color:"#444",horizontalAlign:Cr,verticalAlign:ar}).on("edit",function(be){var Se=mr.d2r(be);Se!==void 0&&Lg.call("_guiRelayout",hr,Dr,Se)})}}mJ.init(he);var Fe,Xe,Le,rr,se,ye,we,pe,U,Q;function $(Ae,je,hr){var wr=fe.getBoundingClientRect();Fe=je-wr.left,Xe=hr-wr.top,e._fullLayout._calcInverseTransform(e);var mr=Eo.apply3DTransform(e._fullLayout._invTransform)(Fe,Xe);Fe=mr[0],Xe=mr[1],Le={l:Fe,r:Fe,w:0,t:Xe,b:Xe,h:0},rr=e._hmpixcount?e._hmlumcount/e._hmpixcount:vJ(e._fullLayout.plot_bgcolor).getLuminance(),se="M0,0H"+x+"V"+_+"H0V0",ye=!1,we="xy",Q=!1,pe=KC(s,rr,b,C,se),U=QC(s,b,C)}function ke(Ae,je){if(e._transitioningWithDuration)return!1;var hr=Math.max(0,Math.min(x,re*Ae+Fe)),wr=Math.max(0,Math.min(_,ae*je+Xe)),mr=Math.abs(hr-Fe),Tr=Math.abs(wr-Xe);Le.l=Math.min(Fe,hr),Le.r=Math.max(Fe,hr),Le.t=Math.min(Xe,wr),Le.b=Math.max(Xe,wr);function Dr(){we="",Le.r=Le.l,Le.t=Le.b,U.attr("d","M0,0Z")}if(A.isSubplotConstrained)mr>hi||Tr>hi?(we="xy",mr/x>Tr/_?(Tr=mr*_/x,Xe>wr?Le.t=Xe-Tr:Le.b=Xe+Tr):(mr=Tr*x/_,Fe>hr?Le.l=Fe-mr:Le.r=Fe+mr),U.attr("d",Dg(Le))):Dr();else if(k.isSubplotConstrained)if(mr>hi||Tr>hi){we="xy";var Or=Math.min(Le.l/x,(_-Le.b)/_),Cr=Math.max(Le.r/x,(_-Le.t)/_);Le.l=Or*x,Le.r=Cr*x,Le.b=(1-Or)*_,Le.t=(1-Cr)*_,U.attr("d",Dg(Le))}else Dr();else!E||Tr0){var be;if(k.isSubplotConstrained||!M&&E.length===1){for(be=0;be1&&(Dr.maxallowed!==void 0&&F===(Dr.range[0]1&&(Or.maxallowed!==void 0&&I===(Or.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function LJ(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function KC(e,r,t,n,a){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",XC(t,n)).attr("d",a+"Z")}function QC(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:BC.background,stroke:BC.defaultLine,"stroke-width":1,opacity:0}).attr("transform",XC(r,t)).attr("d","M0,0Z")}function eL(e,r,t,n,a,i){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),rL(e,r,a,i)}function rL(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function j5(e){J5.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function tL(e){YC&&e.data&&e._context.showTips&&(Eo.notifier(Eo._(e,"Double-click to zoom back out"),"long"),YC=!1)}function qJ(e,r){return"M"+(e.l-.5)+","+(r-hi-.5)+"h-3v"+(2*hi+1)+"h3ZM"+(e.r+.5)+","+(r-hi-.5)+"h3v"+(2*hi+1)+"h-3Z"}function DJ(e,r){return"M"+(r-hi-.5)+","+(e.t-.5)+"v-3h"+(2*hi+1)+"v3ZM"+(r-hi-.5)+","+(e.b+.5)+"v3h"+(2*hi+1)+"v-3Z"}function Dg(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,hi)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function WC(e,r,t,n,a){for(var i=!1,o={},l={},s,u,f,v,h=(a||{}).xaHash,d=(a||{}).yaHash,m=0;m{"use strict";var EJ=kt(),Eg=ss(),PJ=To(),RJ=Ku(),xl=iL().makeDragBox,wa=Pa().DRAGGERSIZE;Pg.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){EJ.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});n.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=xl(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Eg.hover(r,h,i)},Eg.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,PJ.unhover(r,h))},r._context.showAxisDragHandles&&(xl(r,o,l._offset-wa,s._offset-wa,wa,wa,"n","w"),xl(r,o,l._offset+l._length,s._offset-wa,wa,wa,"n","e"),xl(r,o,l._offset-wa,s._offset+s._length,wa,wa,"s","w"),xl(r,o,l._offset+l._length,s._offset+s._length,wa,wa,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=wa),xl(r,o,l._offset+l._length*.1,f,l._length*.8,wa,"","ew"),xl(r,o,l._offset,f,l._length*.1,wa,"","w"),xl(r,o,l._offset+l._length*.9,f,l._length*.1,wa,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=wa),xl(r,o,v,s._offset+s._length*.1,wa,s._length*.8,"ns",""),xl(r,o,v,s._offset+s._length*.9,wa,s._length*.1,"s",""),xl(r,o,v,s._offset,wa,s._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(i){i.target=r._fullLayout._lasthover,Eg.hover(r,i,t._hoversubplot)},a.onclick=function(i){i.target=r._fullLayout._lasthover,Eg.click(r,i)},a.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Pg.updateFx(r)}};Pg.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";RJ(r._draggers,t)}});var sL=te((nce,lL)=>{"use strict";var oL=dt();lL.exports=function(r){for(var t=oL.layoutArrayContainers,n=oL.layoutArrayRegexes,a=r.split("[")[0],i,o,l=0;l{"use strict";var zJ=Gs(),Q5=md(),oh=Ru(),NJ=Zy().sorterAsc,eb=dt();lh.containerArrayMatch=sL();var FJ=lh.isAddVal=function(r){return r==="add"||zJ(r)},uL=lh.isRemoveVal=function(r){return r===null||r==="remove"};lh.applyContainerArrayChanges=function(r,t,n,a,i){var o=t.astr,l=eb.getComponentMethod(o,"supplyLayoutDefaults"),s=eb.getComponentMethod(o,"draw"),u=eb.getComponentMethod(o,"drawOne"),f=a.replot||a.recalc||l===Q5||s===Q5,v=r.layout,h=r._fullLayout;if(n[""]){Object.keys(n).length>1&&oh.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(uL(d))t.set(null);else if(Array.isArray(d))t.set(d);else return oh.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(v,h),s(r),!0)}var m=Object.keys(n).map(Number).sort(NJ),p=t.get(),y=p||[],b=i(h,o).get(),C=[],x=-1,_=y.length,A,k,M,E,z,F,I,W;for(A=0;Ay.length-(I?0:1)){oh.warn("index out of range",o,M);continue}if(F!==void 0)z.length>1&&oh.warn("Insertion & removal are incompatible with edits to the same index.",o,M),uL(F)?C.push(M):I?(F==="add"&&(F={}),y.splice(M,0,F),b&&b.splice(M,0,{})):oh.warn("Unrecognized full object edit value",o,M,F),x===-1&&(x=M);else for(k=0;k=0;A--)y.splice(C[A],1),b&&b.splice(C[A],1);if(y.length?p||t.set(y):t.set(null),f)return!1;if(l(v,h),u!==Q5){var B;if(x===-1)B=m;else{for(_=Math.max(y.length,_),B=[],A=0;A=x));A++)B.push(M);for(A=x;A<_;A++)B.push(A)}for(A=0;A{"use strict";var dL=Ut(),pL=dt(),ai=gr(),sh=fa(),gL=ua(),mL=Pt(),uh=gL.cleanId,IJ=gL.getFromTrace,rb=pL.traceIs,HJ=["x","y","z"];Po.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ai.log("Clearing previous rejected promises from queue."),e._promises=[]};Po.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(sh.subplotsRegistry.cartesian||{}).attrRegex,a=(sh.subplotsRegistry.polar||{}).attrRegex,i=(sh.subplotsRegistry.ternary||{}).attrRegex,o=(sh.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),mL.clean(e),e.template&&e.template.layout&&Po.cleanLayout(e.template.layout),e};function vv(e,r){var t=e[r],n=r.charAt(0);t&&t!=="paper"&&(e[r]=uh(t,n,!0))}Po.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}Po.hasParent=function(e,r){for(var t=hL(r);t;){if(t in e)return!0;t=hL(t)}return!1};Po.clearAxisTypes=function(e,r,t){for(var n=0;n{let t=(...n)=>n.every(a=>ai.isPlainObject(a))||n.every(a=>Array.isArray(a));if([e,r].every(n=>Array.isArray(n))){if(e.length!==r.length)return!1;for(let n=0;nai.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let a=e[n],i=r[n];if(a!==i&&!(t(a,i)?tb(a,i):!1))return!1}return!0}return!1};Po.collectionsAreEqual=tb});var sb=te(It=>{"use strict";var Fg=kt(),UJ=Ut(),YJ=o2(),Ir=gr(),_n=Ir.nestedProperty,ib=g1(),di=jw(),Ro=dt(),Gg=z0(),ft=fa(),ii=Dn(),GJ=C3(),VJ=gl(),nb=fn(),WJ=Pt(),ZJ=K5().initInteractions,XJ=lc(),jJ=au().clearOutline,ML=Kf().dfltConfig,zg=fL(),Kn=yL(),nn=dg(),af=_o(),JJ=Pa().AX_NAME_PATTERN,ab=0,bL=5;function $J(e,r,t,n){var a;if(e=Ir.getGraphDiv(e),ib.init(e),Ir.isPlainObject(r)){var i=r;r=i.data,t=i.layout,n=i.config,a=i.frames}var o=ib.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(o===!1)return Promise.reject();!r&&!t&&!Ir.isPlotDiv(e)&&Ir.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return It.addFrames(e,a)}TL(e,n),t||(t={}),Fg.select(e).classed("js-plotly-plot",!0),nb.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Kn.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Kn.cleanLayout(t)),ft.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(_$(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),nb.initGradients(e),nb.initPatterns(e),s&&ii.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&ft.doCalcdata(e);for(var h=0;h=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function kL(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Hg(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Hg(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function t$(e,r,t){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),n=0;n=0&&f=0&&f0&&typeof E.parts[I]!="string";)I--;var W=E.parts[I],B=E.parts[I-1]+"."+W,X=E.parts.slice(0,I).join("."),V=_n(e.layout,X).get(),re=_n(n,X).get(),ae=E.get();if(z!==void 0){b[M]=z,C[M]=W==="reverse"?z:iu(ae);var K=Gg.getLayoutValObject(n,E.parts);if(K&&K.impliedEdits&&z!==null)for(var ee in K.impliedEdits)x(Ir.relativeAttr(M,ee),K.impliedEdits[ee]);if(["width","height"].indexOf(M)!==-1)if(z){x("autosize",null);var fe=M==="height"?"width":"height";x(fe,n[fe])}else n[M]=e._initialAutoSize[M];else if(M==="autosize")x("width",z?null:n.width),x("height",z?null:n.height);else if(B.match(zL))k(B),_n(n,X+"._inputRange").set(null);else if(B.match(NL)){k(B),_n(n,X+"._inputRange").set(null);var he=_n(n,X).get();he._inputDomain&&(he._input.domain=he._inputDomain.slice())}else B.match(o$)&&_n(n,X+"._inputDomain").set(null);if(W==="type"){A=V;var De=re.type==="linear"&&z==="log",Ne=re.type==="log"&&z==="linear";if(De||Ne){if(!A||!A.range)x(X+".autorange",!0);else if(re.autorange)De&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var Fe=A.range[0],Xe=A.range[1];De?(Fe<=0&&Xe<=0&&x(X+".autorange",!0),Fe<=0?Fe=Xe/1e6:Xe<=0&&(Xe=Fe/1e6),x(X+".range[0]",Math.log(Fe)/Math.LN10),x(X+".range[1]",Math.log(Xe)/Math.LN10)):(x(X+".range[0]",Math.pow(10,Fe)),x(X+".range[1]",Math.pow(10,Xe)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[E.parts[0]]&&E.parts[1]==="radialaxis"&&delete n[E.parts[0]]._subplot.viewInitial["radialaxis.range"],Ro.getComponentMethod("annotations","convertCoords")(e,re,z,x),Ro.getComponentMethod("images","convertCoords")(e,re,z,x)}else x(X+".autorange",!0),x(X+".range",null);_n(n,X+"._inputRange").set(null)}else if(W.match(JJ)){var Le=_n(n,M).get(),rr=(z||{}).type;(!rr||rr==="-")&&(rr="linear"),Ro.getComponentMethod("annotations","convertCoords")(e,Le,rr,x),Ro.getComponentMethod("images","convertCoords")(e,Le,rr,x)}var se=zg.containerArrayMatch(M);if(se){f=se.array,v=se.index;var ye=se.property,we=K||{editType:"calc"};v!==""&&ye===""&&(zg.isAddVal(z)?C[M]=null:zg.isRemoveVal(z)?C[M]=(_n(t,f).get()||[])[v]:Ir.warn("unrecognized full object value",r)),af.update(y,we),u[f]||(u[f]={});var pe=u[f][v];pe||(pe=u[f][v]={}),pe[ye]=z,delete r[M]}else W==="reverse"?(V.range?V.range.reverse():(x(X+".autorange",!0),V.range=[1,0]),re.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(z===!1&&ae!==!1||z!==!1&&ae===!1)||n._has("scatter-like")&&n._has("regl")&&M==="dragmode"&&(z==="lasso"||z==="select")&&!(ae==="lasso"||ae==="select")?y.plot=!0:K?af.update(y,K):y.calc=!0,E.set(z))}}for(f in u){var U=zg.applyContainerArrayChanges(e,i(t,f),u[f],y,i);U||(y.plot=!0)}for(var Q in _){A=ii.getFromId(e,Q);var $=A&&A._constraintGroup;if($){y.calc=!0;for(var ke in $)_[ke]||(ii.getFromId(e,ke)._constraintShrinkable=!0)}}(IL(e)||r.height||r.width)&&(y.plot=!0);var Oe=n.shapes;for(v=0;v1;)if(n.pop(),t=_n(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function u$(e,r){for(var t=0;t[X,e._ev.listeners(X)]);i=It.newPlot(e,r,t,n).then(()=>{for(let[X,V]of B)V.forEach(re=>e.on(X,re));return It.react(e,r,t,n)})}else{e.data=r||[],Kn.cleanData(e.data),e.layout=t||{},Kn.cleanLayout(e.layout),c$(e.data,e.layout,l,s),ft.supplyDefaults(e,{skipUpdateCalc:!0});var v=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,m=h.transition,p=d$(e,s,h,d,m),y=p.newDataRevision,b=h$(e,l,v,d,m,y);if(IL(e)&&(p.layoutReplot=!0),b.calc||p.calc){e.calcdata=void 0;for(var C=Object.getOwnPropertyNames(h),x=0;x(f||e.emit("plotly_react",{config:n,data:r,layout:t}),e))}function h$(e,r,t,n,a,i){var o=r.length===t.length;if(!a&&!o)return{fullReplot:!0,calc:!0};var l=af.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var m=Gg.getTraceValObject(u,d);return!u._module.animatable&&m.anim&&(m.anim=!1),m}var v={getValObject:f,flags:l,immutable:n,transition:a,newDataRevision:i,gd:e},h={};for(s=0;s=a.length?a[0]:a[u]:a}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var v=0;return function(){if(u&&++v===f)return u()}}return new Promise(function(u,f){function v(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var W=n._frameQueue.pop();W.onInterrupt&&W.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(W){if(W.length!==0){for(var B=0;Bn._timeToNext&&m()};W()}var y=0;function b(W){return Array.isArray(a)?y>=a.length?W.transitionOpts=a[y]:W.transitionOpts=a[0]:W.transitionOpts=a,y++,W}var C,x,_=[],A=r==null,k=Array.isArray(r),M=!A&&!k&&Ir.isPlainObject(r);if(M)_.push({type:"object",data:b(Ir.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(C=0;C0&&F<_.length-1){var I=[];for(C=0;C<_.length;C++)x=_[C],(_[C].type!=="byname"||C>F)&&I.push(x);_=I}}_.length>0?h(_):(e.emit("plotly_animated"),u())})}function g$(e,r,t){if(e=Ir.getGraphDiv(e),r==null)return Promise.resolve();if(!Ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],v={};for(n=r.length-1;n>=0;n--)if(Ir.isPlainObject(r[n])){var h=r[n].name,d=(s[h]||v[h]||{}).name,m=r[n].name,p=s[d]||v[d];d&&m&&typeof m=="number"&&p&&abE.index?-1:M.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&Ir.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;s[a.name="frame "+e._transitionData._counter++];);if(s[a.name]){for(i=0;i=0;t--)n=r[t],i.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:a[n]});var l=ft.modifyFrames,s=ft.modifyFrames,u=[e,o],f=[e,i];return di&&di.add(e,l,u,s,f),ft.modifyFrames(e,i)}function y$(e){e=Ir.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return ft.cleanPlot([],{},t,r),ft.purge(e),ib.purge(e),r._container&&r._container.remove(),delete e._context,e}function b$(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Ir.equalDomRects(t,r._lastBBox)){var n=r._invTransform=Ir.inverseTransformMatrix(Ir.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function _$(e){var r=Fg.select(e),t=e._fullLayout;if(t._calcInverseTransform=b$,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var n={};Fg.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=Ir.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(XJ.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}It.animate=p$;It.addFrames=g$;It.deleteFrames=m$;It.addTraces=DL;It.deleteTraces=EL;It.extendTraces=LL;It.moveTraces=ob;It.prependTraces=qL;It.newPlot=r$;It._doPlot=$J;It.purge=y$;It.react=v$;It.redraw=e$;It.relayout=fh;It.restyle=Bg;It.setPlotConfig=KJ;It.update=Ug;It._guiRelayout=lb(fh);It._guiRestyle=lb(Bg);It._guiUpdate=lb(Ug);It._storeDirectGUIEdit=i$});var Sc=te(cs=>{"use strict";var x$=dt();cs.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};cs.getRedrawFunc=function(e){return function(){x$.getComponentMethod("colorbar","draw")(e)}};cs.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};cs.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var HL=window.URL||window.webkitURL;cs.createObjectURL=function(e){return HL.createObjectURL(e)};cs.revokeObjectURL=function(e){return HL.revokeObjectURL(e)};cs.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=w$(window.atob(e));return new window.Blob([t],{type:"image/"+r})};cs.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function w$(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var fb=kt(),sce=gr(),M$=fn(),A$=Pt(),uce=lc(),ub=/"/g,vh="TOBESTRIPPED",T$=new RegExp('("'+vh+")|("+vh+'")',"g");function k$(e){var r=fb.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":r.html(n).text()});return r.remove(),t}function S$(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}BL.exports=function(r,t,n){var a=r._fullLayout,i=a._paper,o=a._toppaper,l=a.width,s=a.height,u;i.insert("rect",":first-child").call(M$.setRect,0,0,l,s).call(A$.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(u=0;u{"use strict";var C$=gr(),L$=Hd().EventEmitter,hh=Sc();function q$(e){var r=e.emitter||new L$,t=new Promise(function(n,a){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,v=e.height||150,h=u*f,d=u*v,m=s.getContext("2d",{willReadFrequently:!0}),p=new i,y,b;l==="svg"||C$.isSafari()?b=hh.encodeSVG(o):(y=hh.createBlob(o,"svg"),b=hh.createObjectURL(y)),s.width=h,s.height=d,p.onload=function(){var C;switch(y=null,hh.revokeObjectURL(b),l!=="svg"&&m.drawImage(p,0,0,h,d),l){case"jpeg":C=s.toDataURL("image/jpeg");break;case"png":C=s.toDataURL("image/png");break;case"webp":C=s.toDataURL("image/webp");break;case"svg":C=b;break;default:var x="Image format is not jpeg, png, svg or webp.";if(a(new Error(x)),!e.promise)return r.emit("error",x)}n(C),e.promise||r.emit("success",C)},p.onerror=function(C){if(y=null,hh.revokeObjectURL(b),a(C),!e.promise)return r.emit("error",C)},p.src=b});return e.promise?t:r}OL.exports=q$});var vb=te((vce,GL)=>{"use strict";var UL=Ut(),YL=sb(),D$=fa(),vs=gr(),dh=Sc(),E$=Wg(),P$=Zg(),R$=rd().version,cb={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function z$(e,r){r=r||{};var t,n,a,i;vs.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},i={}):(e=vs.getGraphDiv(e),t=vs.extendDeep([],e.data),n=vs.extendDeep({},e.layout),a=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||vs.validate(r[k],cb[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+vs.join2(cb.format.values,", "," or ")+".");var l={};function s(k,M){return vs.coerce(r,l,cb,k,M)}var u=s("format"),f=s("width"),v=s("height"),h=s("scale"),d=s("setBackground"),m=s("imageDataOnly"),p=document.createElement("div");p.style.position="absolute",p.style.left="-5000px",document.body.appendChild(p);var y=vs.extendFlat({},n);f?y.width=f:r.width===null&&UL(i.width)&&(y.width=i.width),v?y.height=v:r.height===null&&UL(i.height)&&(y.height=i.height);var b=vs.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=dh.getRedrawFunc(p);function x(){return new Promise(function(k){setTimeout(k,dh.getDelay(p._fullLayout))})}function _(){return new Promise(function(k,M){var E=E$(p,u,h),z=p._fullLayout.width,F=p._fullLayout.height;function I(){YL.purge(p),document.body.removeChild(p)}if(u==="full-json"){var W=D$.graphJson(p,!1,"keepdata","object",!0,!0);return W.version=R$,W=JSON.stringify(W),I(),k(m?W:dh.encodeJSON(W))}if(I(),u==="svg")return k(m?E:dh.encodeSVG(E));var B=document.createElement("canvas");B.id=vs.randstr(),P$({format:u,width:z,height:F,scale:h,canvas:B,svg:E,promise:!0}).then(k).catch(M)})}function A(k){return m?k.replace(dh.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){YL.newPlot(p,t,y,b).then(C).then(x).then(_).then(function(E){k(A(E))}).catch(function(E){M(E)})})}GL.exports=z$});var ZL=te((hce,WL)=>{"use strict";var zo=gr(),N$=fa(),F$=z0(),I$=Kf().dfltConfig,wl=zo.isPlainObject,Lc=Array.isArray,hb=zo.isArrayOrTypedArray;WL.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=F$.get(),a=[],i={_context:zo.extendFlat({},I$)},o,l;Lc(r)?(i.data=zo.extendDeep([],r),o=r):(i.data=[],o=[],a.push(Ma("array","data"))),wl(t)?(i.layout=zo.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&a.push(Ma("object","layout"))),N$.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fv.length&&n.push(Ma("unused",a,u.concat(v.length)));var b=v.length,C=Array.isArray(y);C&&(b=Math.min(b,y.length));var x,_,A,k,M;if(h.dimensions===2)for(_=0;_v[_].length&&n.push(Ma("unused",a,u.concat(_,v[_].length)));var E=v[_].length;for(x=0;x<(C?Math.min(E,y[_].length):E);x++)A=C?y[_][x]:y,k=f[_][x],M=v[_][x],zo.validate(k,A)?M!==k&&M!==+k&&n.push(Ma("dynamic",a,u.concat(_,x),k,M)):n.push(Ma("value",a,u.concat(_,x),k))}else n.push(Ma("array",a,u.concat(_),f[_]));else for(_=0;_{"use strict";var V$=gr(),jg=Sc();function W$(e,r,t){var n=document.createElement("a"),a="download"in n,i=new Promise(function(o,l){var s,u;if(a)return s=jg.createBlob(e,t),u=jg.createObjectURL(s),n.href=u,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),jg.revokeObjectURL(u),s=null,o(r);if(V$.isSafari()){var f=t==="svg"?",":";base64,";return jg.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}XL.exports=W$});var db=te((gce,$L)=>{"use strict";var JL=gr(),Z$=vb(),X$=jL(),pce=Sc();function j$(e,r){var t;return JL.isPlainObject(e)||(t=JL.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(n,a){t&&t._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=Z$(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),X$(l,o,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}$L.exports=j$});var tq=te(pb=>{"use strict";var Fi=gr(),Ii=Fi.isPlainObject,KL=z0(),QL=fa(),J$=bo(),eq=bn(),rq=Kf().dfltConfig;pb.makeTemplate=function(e){e=Fi.isPlainObject(e)?e:Fi.getGraphDiv(e),e=Fi.extendDeep({_context:rq},{data:e.data,layout:e.layout}),QL.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(d){var m={};ph(d,m,K$.bind(null,d));var p=Fi.coerce(d,{},J$,"type"),y=n.data[p];y||(y=n.data[p]=[]),y.push(m)}),ph(t,n.layout,$$.bind(null,t)),delete n.layout.template;var a=t.template;if(Ii(a)){var i=a.layout,o,l,s,u,f,v;Ii(i)&&Jg(i,n.layout);var h=a.data;if(Ii(h)){for(l in n.data)if(s=h[l],Array.isArray(s)){for(f=n.data[l],v=f.length,u=s.length,o=0;ob?o.push({code:"unused",traceType:d,templateCount:y,dataCount:b}):b>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:b})}}function C(x,_){for(var A in x)if(A.charAt(0)!=="_"){var k=x[A],M=No(x,A,_);Ii(k)?(Array.isArray(x)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),C(k,M)):Array.isArray(k)&&Q$(k)&&C(k,M)}}if(C({data:s,layout:l},""),o.length)return o.map(eK)};function Q$(e){for(var r=0;r{"use strict";var va=sb();Ln._doPlot=va._doPlot;Ln.newPlot=va.newPlot;Ln.restyle=va.restyle;Ln.relayout=va.relayout;Ln.redraw=va.redraw;Ln.update=va.update;Ln._guiRestyle=va._guiRestyle;Ln._guiRelayout=va._guiRelayout;Ln._guiUpdate=va._guiUpdate;Ln._storeDirectGUIEdit=va._storeDirectGUIEdit;Ln.react=va.react;Ln.extendTraces=va.extendTraces;Ln.prependTraces=va.prependTraces;Ln.addTraces=va.addTraces;Ln.deleteTraces=va.deleteTraces;Ln.moveTraces=va.moveTraces;Ln.purge=va.purge;Ln.addFrames=va.addFrames;Ln.deleteFrames=va.deleteFrames;Ln.animate=va.animate;Ln.setPlotConfig=va.setPlotConfig;var rK=l1().getGraphDiv,tK=lg().eraseActiveShape;Ln.deleteActiveShape=function(e){return tK(rK(e))};Ln.toImage=vb();Ln.validate=ZL();Ln.downloadImage=db();var nq=tq();Ln.makeTemplate=nq.makeTemplate;Ln.validateTemplate=nq.validateTemplate});var oq=te((bce,iq)=>{"use strict";var gb=gr(),nK=dt();iq.exports=function(r,t,n,a){var i=a("x"),o=a("y"),l,s=nK.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],n),i){var u=gb.minRowLength(i);o?l=Math.min(u,gb.minRowLength(o)):(l=u,a("y0"),a("dy"))}else{if(!o)return 0;l=gb.minRowLength(o),a("x0"),a("dx")}return t._length=l,l}});var fq=te((_ce,uq)=>{"use strict";var lq=gr().dateTick0,aK=Rn(),iK=aK.ONEWEEK;function sq(e,r){return e%iK===0?lq(r,1):lq(r,0)}uq.exports=function(r,t,n,a,i){if(i||(i={x:!0,y:!0}),i.x){var o=a("xperiod");o&&(a("xperiod0",sq(o,t.xcalendar)),a("xperiodalignment"))}if(i.y){var l=a("yperiod");l&&(a("yperiod0",sq(l,t.ycalendar)),a("yperiodalignment"))}}});var hq=te((xce,vq)=>{"use strict";var cq=["orientation","groupnorm","stackgaps"];vq.exports=function(r,t,n,a){var i=n._scatterStackOpts,o=a("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var dq=Pt(),pq=es().hasColorscale,gq=B0(),oK=Qa();mq.exports=function(r,t,n,a,i,o){var l=oK.isBubble(r),s=(r.line||{}).color,u;if(o=o||{},s&&(n=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",n),pq(r,"marker")&&gq(r,t,a,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=dq.background:u=dq.defaultLine,i("marker.line.color",u),pq(r,"marker.line")&&gq(r,t,a,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0)),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var yb=te((Mce,yq)=>{"use strict";var lK=gr().isArrayOrTypedArray,sK=es().hasColorscale,uK=B0();yq.exports=function(r,t,n,a,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",n),sK(r,"line"))uK(r,t,a,i,{prefix:"line.",cLetter:"c"});else{var s=(lK(l)?!1:l)||n;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var _q=te((Ace,bq)=>{"use strict";bq.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var bb=te((Tce,xq)=>{"use strict";var fK=gr();xq.exports=function(e,r,t,n,a){a=a||{},n("textposition"),fK.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var _b=te((kce,Mq)=>{"use strict";var Kg=Pt(),wq=gr().isArrayOrTypedArray;function cK(e){for(var r=Kg.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var Aq=gr(),vK=dt(),hK=kc(),dK=Tg(),hv=Qa(),pK=oq(),gK=fq(),mK=hq(),yK=mb(),bK=yb(),Tq=_q(),_K=bb(),xK=_b(),wK=gr().coercePattern;kq.exports=function(r,t,n,a){function i(d,m){return Aq.coerce(r,t,hK,d,m)}var o=pK(r,t,a,i);if(o||(t.visible=!1),!!t.visible){gK(r,t,a,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=mK(r,t,a,i);a.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var MK=O1().getAxisGroup;Cq.exports=function(r,t,n,a,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=MK(n,l)+o,u=n._alignmentOpts||{},f=a("alignmentgroup"),v=u[s];v||(v=u[s]={});var h=v[f];h?h.traces.push(t):h=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var d=a("offsetgroup")||"",m=h.offsetGroups,p=m[d];t._offsetIndex=0,(i!=="group"||d)&&(p||(p=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=p.offsetIndex)}});var Dq=te((Lce,qq)=>{"use strict";var AK=gr(),TK=Lq(),kK=kc();qq.exports=function(r,t){var n,a,i,o=t.scattermode;function l(h){return AK.coerce(a._input,a,kK,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===s.xaxis&&v.yaxis===s.yaxis){v.opacity=void 0;break}}}}}});var Pq=te((qce,Eq)=>{"use strict";var SK=gr(),CK=Gd();Eq.exports=function(e,r){function t(a,i){return SK.coerce(e,r,CK,a,i)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var Nq=te((Dce,zq)=>{"use strict";var LK=Ut(),Rq=gr(),qK=Rq.dateTime2ms,Qg=Rq.incrementMonth,DK=Rn(),EK=DK.ONEAVGMONTH;zq.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var i=r[n+"periodalignment"];if(!i)return{vals:a};var o=r[n+"period"],l;if(LK(o)){if(o=+o,o<=0)return{vals:a}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:a}}for(var u=t.calendar,f=i==="start",v=i==="end",h=r[n+"period0"],d=qK(h,u)||0,m=[],p=[],y=[],b=a.length,C=0;Cx;)k=Qg(k,-l,u);for(;k<=x;)k=Qg(k,l,u);A=Qg(k,-l,u)}else{for(_=Math.round((x-d)/o),k=d+_*o;k>x;)k-=o;for(;k<=x;)k+=o;A=k-o}m[C]=f?A:v?k:(A+k)/2,p[C]=A,y[C]=k}return{vals:m,starts:p,ends:y}}});var Mb=te((Ece,Iq)=>{"use strict";var xb=es().hasColorscale,wb=rp(),Fq=Qa();Iq.exports=function(r,t){Fq.hasLines(t)&&xb(t,"line")&&wb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),Fq.hasMarkers(t)&&(xb(t,"marker")&&wb(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),xb(t,"marker.line")&&wb(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var gh=te((Pce,Hq)=>{"use strict";var Yn=gr();Hq.exports=function(r,t){for(var n=0;n{"use strict";var Bq=gr();Oq.exports=function(r,t){Bq.isArrayOrTypedArray(t.selectedpoints)&&Bq.tagSelected(r,t)}});var rm=te((zce,Xq)=>{"use strict";var Uq=Ut(),Tb=gr(),mh=Dn(),Yq=Nq(),Ab=Rn().BADNUM,kb=Qa(),PK=Mb(),RK=gh(),zK=em();function NK(e,r){var t=e._fullLayout,n=r._xA=mh.getFromId(e,r.xaxis||"x","x"),a=r._yA=mh.getFromId(e,r.yaxis||"y","y"),i=n.makeCalcdata(r,"x"),o=a.makeCalcdata(r,"y"),l=Yq(r,n,"x",i),s=Yq(r,a,"y",o),u=l.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=Sb(r,t,n,a),p=!1,y,b,C,x,_,A;Wq(t,r);var k="x",M="y",E;if(m)Tb.pushUnique(m.traceIndices,r.index),y=m.orientation==="v",y?(M="s",E="x"):(k="s",E="y"),_=m.stackgaps==="interpolate";else{var z=Vq(r,v);Gq(e,r,n,a,u,f,z)}var F=!!r.xperiodalignment,I=!!r.yperiodalignment;for(b=0;bb&&h[x].gap;)x--;for(A=h[x].s,C=h.length-1;C>x;C--)h[C].s=A;for(;b{"use strict";jq.exports=tm;var FK=gr().distinctVals;function tm(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],i=0;i{"use strict";var Fo=Ut(),of=gr().isArrayOrTypedArray,dv=Rn().BADNUM,IK=dt(),yh=Dn(),HK=O1().getAxisGroup,nm=Jq();function BK(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!Fo(l))}for(var f=0;f{"use strict";var tD=rm(),nD=rD().setGroupPositions;function KK(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uz[f]&&f{"use strict";var eQ=fn(),uD=Rn(),bh=uD.BADNUM,fD=uD.LOG_CLIP,oD=fD+.5,lD=fD-.5,am=gr(),rQ=am.segmentsIntersect,sD=am.constrain,Pb=Tg();cD.exports=function(r,t){var n=t.trace||{},a=t.xaxis,i=t.yaxis,o=a.type==="log",l=i.type==="log",s=a._length,u=i._length,f=t.backoff,v=n.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,p=m==="linear",y=n.fill&&n.fill!=="none",b=[],C=Pb.minTolerance,x=r.length,_=new Array(x),A=0,k,M,E,z,F,I,W,B,X,V,re,ae,K,ee,fe,he;function De(ar){var be=r[ar];if(!be)return!1;var Se=t.linearized?a.l2p(be.x):a.c2p(be.x),$e=t.linearized?i.l2p(be.y):i.c2p(be.y);if(Se===bh){if(o&&(Se=a.c2p(be.x,!0)),Se===bh)return!1;l&&$e===bh&&(Se*=Math.abs(a._m*u*(a._m>0?oD:lD)/(i._m*s*(i._m>0?oD:lD)))),Se*=1e3}if($e===bh){if(l&&($e=i.c2p(be.y,!0)),$e===bh)return!1;$e*=1e3}return[Se,$e]}function Ne(ar,be,Se,$e){var Ze=Se-ar,qr=$e-be,Hr=.5-ar,Pr=.5-be,lt=Ze*Ze+qr*qr,xt=Ze*Hr+qr*Pr;if(xt>0&&xt1||Math.abs(Hr.y-Se[0][1])>1)&&(Hr=[Hr.x,Hr.y],$e&&rr(Hr,ar)we||ar[1]U)return[sD(ar[0],ye,we),sD(ar[1],pe,U)]}function ur(ar,be){if(ar[0]===be[0]&&(ar[0]===ye||ar[0]===we)||ar[1]===be[1]&&(ar[1]===pe||ar[1]===U))return!0}function cr(ar,be){var Se=[],$e=tr(ar),Ze=tr(be);return $e&&Ze&&ur($e,Ze)||($e&&Se.push($e),Ze&&Se.push(Ze)),Se}function Ke(ar,be,Se){return function($e,Ze){var qr=tr($e),Hr=tr(Ze),Pr=[];if(qr&&Hr&&ur(qr,Hr))return Pr;qr&&Pr.push(qr),Hr&&Pr.push(Hr);var lt=2*am.constrain(($e[ar]+Ze[ar])/2,be,Se)-((qr||$e)[ar]+(Hr||Ze)[ar]);if(lt){var xt;qr&&Hr?xt=lt>0==qr[ar]>Hr[ar]?qr:Hr:xt=qr||Hr,xt[ar]+=lt}return Pr}}var pr;m==="linear"||m==="spline"?pr=Ue:m==="hv"||m==="vh"?pr=cr:m==="hvh"?pr=Ke(0,ye,we):m==="vhv"&&(pr=Ke(1,pe,U));function dr(ar,be){var Se=be[0]-ar[0],$e=(be[1]-ar[1])/Se,Ze=(ar[1]*be[0]-be[1]*ar[0])/Se;return Ze>0?[$e>0?ye:we,U]:[$e>0?we:ye,pe]}function Te(ar){var be=ar[0],Se=ar[1],$e=be===_[A-1][0],Ze=Se===_[A-1][1];if(!($e&&Ze))if(A>1){var qr=be===_[A-2][0],Hr=Se===_[A-2][1];$e&&(be===ye||be===we)&&qr?Hr?A--:_[A-1]=ar:Ze&&(Se===pe||Se===U)&&Hr?qr?A--:_[A-1]=ar:_[A++]=ar}else _[A++]=ar}function Ye(ar){_[A-1][0]!==ar[0]&&_[A-1][1]!==ar[1]&&Te([Oe,Ie]),Te(ar),ir=null,Oe=Ie=0}var Ar=am.isArrayOrTypedArray(v);function zr(ar){if(ar&&f&&(ar.i=k,ar.d=r,ar.trace=n,ar.marker=Ar?v[ar.i]:v,ar.backoff=f),Fe=ar[0]/s,Xe=ar[1]/u,$=ar[0]we?we:0,ke=ar[1]U?U:0,$||ke){if(!A)_[A++]=[$||ar[0],ke||ar[1]];else if(ir){var be=pr(ir,ar);be.length>1&&(Ye(be[0]),_[A++]=be[1])}else or=pr(_[A-1],ar)[0],_[A++]=or;var Se=_[A-1];$&&ke&&(Se[0]!==$||Se[1]!==ke)?(ir&&(Oe!==$&&Ie!==ke?Te(Oe&&Ie?dr(ir,ar):[Oe||$,Ie||ke]):Oe&&Ie&&Te([Oe,Ie])),Te([$,ke])):Oe-$&&Ie-ke&&Te([$||Oe,ke||Ie]),ir=ar,Oe=$,Ie=ke}else ir&&Ye(pr(ir,ar)[0]),_[A++]=ar}for(k=0;kLe(I,Er))break;E=I,K=X[0]*B[0]+X[1]*B[1],K>re?(re=K,z=I,W=!1):K=r.length||!I)break;zr(I),M=I}}ir&&Te([Oe||ir[0],Ie||ir[1]]),b.push(_.slice(0,A))}var Ae=m.slice(m.length-1);if(f&&Ae!=="h"&&Ae!=="v"){for(var je=!1,hr=-1,wr=[],mr=0;mr{"use strict";var hD={tonextx:1,tonexty:1,tonext:1};dD.exports=function(r,t,n){var a,i,o,l,s,u={},f=!1,v=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var Ml=kt(),tQ=dt(),_h=gr(),gv=_h.ensureSingle,mD=_h.identity,Gn=fn(),mv=Qa(),nQ=vD(),aQ=pD(),im=bg().tester;yD.exports=function(r,t,n,a,i,o){var l,s,u=!i,f=!!i&&i.duration>0,v=aQ(r,t,n);if(l=a.selectAll("g.trace").data(v,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),iQ(r,l,t),f){o&&(s=o());var h=Ml.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){a.selectAll("g.trace").each(function(d,m){gD(r,m,t,d,v,this,i)})})}else l.each(function(d,m){gD(r,m,t,d,v,this,i)});u&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function iQ(e,r,t){r.each(function(n){var a=gv(Ml.select(this),"g","fills");Gn.setClipUrl(a,t.layerClipId,e);var i=n[0].trace,o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=a.selectAll("g").data(o,mD);l.enter().append("g"),l.exit().each(function(s){i[s]=null}).remove(),l.order().each(function(s){i[s]=gv(Ml.select(this),"path","js-fill")})})}function gD(e,r,t,n,a,i,o){var l=e._context.staticPlot,s;oQ(e,r,t,n,a);var u=!!o&&o.duration>0;function f(Ke){return u?Ke.transition():Ke}var v=t.xaxis,h=t.yaxis,d=n[0].trace,m=d.line,p=Ml.select(i),y=gv(p,"g","errorbars"),b=gv(p,"g","lines"),C=gv(p,"g","points"),x=gv(p,"g","text");if(tQ.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(p).style("opacity",d.opacity);var _,A,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,E;k==="y"?(M=1,E=h.c2p(0,!0)):k==="x"&&(M=0,E=v.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=p;var z="",F=[],I=d._prevtrace,W=null,B=null;I&&(z=I._prevRevpath||"",A=I._nextFill,F=I._ownPolygons,W=I._fillsegments,B=I._fillElement);var X,V,re="",ae="",K,ee,fe,he,De,Ne,Fe=[];d._polygons=[];var Xe=[],Le=[],rr=_h.noop;if(_=d._ownFill,mv.hasLines(d)||d.fill!=="none"){A&&A.datum(n),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(K=Gn.steps(m.shape),ee=Gn.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?K=ee=function(Ke){var pr=Ke[Ke.length-1];return Ke.length>1&&Ke[0][0]===pr[0]&&Ke[0][1]===pr[1]?Gn.smoothclosed(Ke.slice(1),m.smoothing):Gn.smoothopen(Ke,m.smoothing)}:K=ee=function(Ke){return"M"+Ke.join("L")},fe=function(Ke){return ee(Ke.reverse())},Le=nQ(n,{xaxis:v,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Xe=new Array(Le.length);var se=0;for(s=0;s=l[0]&&p.x<=l[1]&&p.y>=s[0]&&p.y<=s[1]}),h=Math.ceil(v.length/f),d=0;a.forEach(function(p,y){var b=p[0].trace;mv.hasMarkers(b)&&b.marker.maxdisplayed>0&&y{"use strict";_D.exports={container:"marker",min:"cmin",max:"cmax"}});var wD=te((Yce,xD)=>{"use strict";var om=Dn();xD.exports=function(r,t,n){var a={},i={_fullLayout:n},o=om.getFromTrace(i,t,"x"),l=om.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),a.xLabel=om.tickText(o,o.c2l(s),!0).text,a.yLabel=om.tickText(l,l.c2l(u),!0).text,a}});var xh=te((Gce,MD)=>{"use strict";var zb=kt(),yv=fn(),lQ=dt();function sQ(e){var r=zb.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=zb.select(this),a=t.trace||t[0].trace;Nb(n,a,e)}),r.selectAll("g.text").each(function(t){var n=zb.select(this),a=t.trace||t[0].trace;Fb(n,a,e)}),r.selectAll("g.trace path.js-line").call(yv.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(yv.fillGroupStyle,e,!1),lQ.getComponentMethod("errorbars","style")(r)}function Nb(e,r,t){yv.pointStyle(e.selectAll("path.point"),r,t)}function Fb(e,r,t){yv.textPointStyle(e.selectAll("text"),r,t)}function uQ(e,r,t){var n=r[0].trace;n.selectedpoints?(yv.selectedPointStyle(t.selectAll("path.point"),n),yv.selectedTextStyle(t.selectAll("text"),n)):(Nb(t,n,e),Fb(t,n,e))}MD.exports={style:sQ,stylePoints:Nb,styleText:Fb,styleOnSelect:uQ}});var Ib=te((Vce,AD)=>{"use strict";var bv=Pt(),fQ=Qa();AD.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&bv.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return a=i&&bv.opacity(i)?i:o&&bv.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",a?bv.opacity(a)<.3?bv.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&bv.opacity(n)&&fQ.hasLines(r)&&r.line.width?n:r.fillcolor)}});var SD=te((Wce,kD)=>{"use strict";var lm=gr(),TD=ss(),cQ=dt(),vQ=Ib(),Hb=Pt(),hQ=lm.fillText;kD.exports=function(r,t,n,a){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(n),v=[u,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,m=!!o.xperiodalignment,p=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(ae){if(m){var K=l.c2p(ae.xStart),ee=l.c2p(ae.xEnd);return u>=Math.min(K,ee)&&u<=Math.max(K,ee)?0:1/0}var fe=Math.max(3,ae.mrc||0),he=1-1/fe,De=Math.abs(l.c2p(ae.x)-u);return De=Math.min(K,ee)&&f<=Math.max(K,ee)?0:1/0}var fe=Math.max(3,ae.mrc||0),he=1-1/fe,De=Math.abs(s.c2p(ae.y)-f);return DeFe!=U>=Fe&&(ye=rr[Le-1][0],we=rr[Le][0],U-pe&&(se=ye+(we-ye)*(Fe-pe)/(U-pe),fe=Math.min(fe,se),he=Math.max(he,se)));return fe=Math.max(fe,0),he=Math.min(he,l._length),{x0:fe,x1:he,y0:Fe,y1:Fe}}if(h.indexOf("fills")!==-1&&o._fillElement){var X=W(o._fillElement)&&!W(o._fillExclusionElement);if(X){var V=B(o._polygons);V===null&&(V={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var re=Hb.defaultLine;return Hb.opacity(o.fillcolor)?re=o.fillcolor:Hb.opacity((o.line||{}).color)&&(re=o.line.color),lm.extendFlat(r,{distance:r.maxHoverDistance,x0:V.x0,x1:V.x1,y0:V.y0,y1:V.y1,color:re,hovertemplate:!1}),delete r.index,o.text&&!lm.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var qD=te((Zce,LD)=>{"use strict";var CD=Qa();LD.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l=n[0].trace,s,u,f,v,h=!CD.hasMarkers(l)&&!CD.hasText(l);if(h)return[];if(t===!1)for(s=0;s{"use strict";DD.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var ND=te((jce,zD)=>{"use strict";var wh=dt().traceIs,Bb=l3();zD.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var i=n("type",(a.splomStash||{}).type);i==="-"&&(dQ(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function dQ(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var i=pQ(r,t,n);if(i){if(i.type==="histogram"&&n==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=n+"calendar",l=i[o],s={noMultiCategory:!wh(i,"cartesian")||wh(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&n==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,RD(i,n)){var u=PD(i),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(RD(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function PD(e){return{v:"x",h:"y"}[e.orientation||"v"]}function RD(e,r){var t=PD(e),n=wh(e,"box-violin"),a=wh(e._fullInput||{},"candlestick");return n&&!a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var ID=te((Jce,FD)=>{"use strict";var gQ=ji().isTypedArraySpec;function mQ(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,i,o;if(r.axData)a=r.axData;else for(a=[],i=0;i0||gQ(i),l;o&&(l="array");var s=n("categoryorder",l),u;s==="array"&&(u=n("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=mQ(t,a).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var OD=te(($ce,BD)=>{"use strict";var HD=Jl().mix,yQ=vl(),bQ=gr();BD.exports=function(r,t,n,a){a=a||{};var i=a.dfltColor;function o(E,z){return bQ.coerce2(r,t,a.attributes,E,z)}var l=o("linecolor",i),s=o("linewidth"),u=n("showline",a.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=HD(i,a.bgColor,a.blend||yQ.lightFraction).toRgbString(),v=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),m=n("showgrid",a.showGrid||!!v||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var p=HD(t.gridcolor,a.bgColor,67).toRgbString(),y=o("minor.gridcolor",p),b=o("minor.gridwidth",t.gridwidth||1),C=o("minor.griddash",t.griddash||"solid"),x=n("minor.showgrid",!!y||!!b||!!C);x||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var _=o("zerolinelayer"),A=o("zerolinecolor",i),k=o("zerolinewidth"),M=n("zeroline",a.showGrid||!!A||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var Ub=te((Kce,ZD)=>{"use strict";var UD=Ut(),_Q=dt(),Mh=gr(),xQ=bn(),wQ=ml(),Ob=gl(),YD=D2(),GD=P2(),MQ=N2(),AQ=F2(),TQ=ID(),kQ=OD(),SQ=C3(),VD=gp(),sm=Pa().WEEKDAY_PATTERN,CQ=Pa().HOUR_PATTERN;ZD.exports=function(r,t,n,a,i){var o=a.letter,l=a.font||{},s=a.splomStash||{},u=n("visible",!a.visibleDflt),f=t._template||{},v=t.type||f.type||"-",h;if(v==="date"){var d=_Q.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",a.calendar),a.noTicklabelmode||(h=n("ticklabelmode"))}!a.noTicklabelindex&&(v==="date"||v==="linear")&&n("ticklabelindex");var m="";(!a.noTicklabelposition||v==="multicategory")&&(m=Mh.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),VD(t,i),SQ(r,t,n,a),TQ(r,t,n,a),a.noHover||(v!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var p=n("color"),y=p!==Ob.color.dflt?p:l.color,b=s.label||i._dfltTitle[o];if(AQ(r,t,n,v,a),!u)return t;n("title.text",b),Mh.coerceFont(n,"title.font",l,{overrideDflt:{size:Mh.bigFont(l.size),color:y}}),YD(r,t,n,v);var C=a.hasMinor;if(C&&(xQ.newContainer(t,"minor"),YD(r,t,n,v,{isMinor:!0})),MQ(r,t,n,v,a),GD(r,t,n,a),C){var x=a.isMinor;a.isMinor=!0,GD(r,t,n,a),a.isMinor=x}kQ(r,t,n,{dfltColor:p,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:C,attributes:Ob}),C&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var _=v==="multicategory";if(!a.noTickson&&(v==="category"||_)&&(t.ticks||t.showgrid)&&(_?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),_){var A=n("showdividers");A&&(n("dividercolor"),n("dividerwidth"))}if(v==="date")if(wQ(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:LQ}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=WD(i[l]),s){o=sm;break}}var u=n("pattern",o);if(u===sm)for(l=0;l<2;l++)s=WD(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case sm:if(!UD(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case CQ:if(!UD(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var DQ=Ut(),um=gr();XD.exports=function(r,t,n,a){var i=a.counterAxes||[],o=a.overlayableAxes||[],l=a.letter,s=a.grid,u=a.overlayingDomain,f,v,h,d,m,p;s&&(v=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],v&&(h=s[l+"side"].split(" ")[0],d=s.domain[l][h==="right"||h==="top"?1:0])),v=v||[0,1],f=f||(DQ(r.position)?"free":i[0]||"free"),h=h||(l==="x"?"bottom":"left"),d=d||0,m=0,p=!1;var y=um.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=um.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(l==="y"){var C=n("autoshift");C&&(d=b==="left"?u[0]:u[1],p=t.automargin?t.automargin:!0,m=b==="left"?-3:3),n("shift",m)}n("position",d)}n("automargin",p);var x=!1;if(o.length&&(x=um.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!x){var _=n("domain",v);_[0]>_[1]-1/4096&&(t.domain=v),um.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var nE=te((e0e,tE)=>{"use strict";var qc=gr(),jD=Pt(),EQ=Vu().isUnifiedHover,PQ=r5(),JD=bn(),RQ=A0(),$D=gl(),zQ=ND(),KD=Ub(),NQ=O1(),QD=Yb(),Vb=ua(),hs=Vb.id2name,eE=Vb.name2id,FQ=Pa().AX_ID_PATTERN,rE=dt(),fm=rE.traceIs,Gb=rE.getComponentMethod;function cm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}tE.exports=function(r,t,n){var a=t.autotypenumbers,i={},o={},l={},s={},u={},f={},v={},h={},d={},m={},p,y;for(p=0;p{"use strict";var IQ=kt(),aE=dt(),vm=gr(),to=fn(),hm=Dn();iE.exports=function(r,t,n,a){var i=r._fullLayout;if(t.length===0){hm.redrawComponents(r);return}function o(y){var b=y.xaxis,C=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(to.setTranslate,0,0).call(to.setScale,1,1),y.plot.call(to.setTranslate,b._offset,C._offset).call(to.setScale,1,1);var x=y.plot.selectAll(".scatterlayer .trace");x.selectAll(".point").call(to.setPointGroupScale,1,1),x.selectAll(".textpoint").call(to.setTextPointsScale,1,1),x.call(to.hideOutsideRangePoints,y)}function l(y,b){var C=y.plotinfo,x=C.xaxis,_=C.yaxis,A=x._length,k=_._length,M=!!y.xr1,E=!!y.yr1,z=[];if(M){var F=vm.simpleMap(y.xr0,x.r2l),I=vm.simpleMap(y.xr1,x.r2l),W=F[1]-F[0],B=I[1]-I[0];z[0]=(F[0]*(1-b)+b*I[0]-F[0])/(F[1]-F[0])*A,z[2]=A*(1-b+b*B/W),x.range[0]=x.l2r(F[0]*(1-b)+b*I[0]),x.range[1]=x.l2r(F[1]*(1-b)+b*I[1])}else z[0]=0,z[2]=A;if(E){var X=vm.simpleMap(y.yr0,_.r2l),V=vm.simpleMap(y.yr1,_.r2l),re=X[1]-X[0],ae=V[1]-V[0];z[1]=(X[1]*(1-b)+b*V[1]-X[1])/(X[0]-X[1])*k,z[3]=k*(1-b+b*ae/re),_.range[0]=x.l2r(X[0]*(1-b)+b*V[0]),_.range[1]=_.l2r(X[1]*(1-b)+b*V[1])}else z[1]=0,z[3]=k;hm.drawOne(r,x,{skipTitle:!0}),hm.drawOne(r,_,{skipTitle:!0}),hm.redrawComponents(r,[x._id,_._id]);var K=M?A/z[2]:1,ee=E?k/z[3]:1,fe=M?z[0]:0,he=E?z[1]:0,De=M?z[0]/z[2]*A:0,Ne=E?z[1]/z[3]*k:0,Fe=x._offset-De,Xe=_._offset-Ne;C.clipRect.call(to.setTranslate,fe,he).call(to.setScale,1/K,1/ee),C.plot.call(to.setTranslate,Fe,Xe).call(to.setScale,K,ee),to.setPointGroupScale(C.zoomScalePts,1/K,1/ee),to.setTextPointsScale(C.zoomScaleTxt,1/K,1/ee)}var s;a&&(s=a());function u(){for(var y={},b=0;bn.duration?(u(),d=window.cancelAnimationFrame(p)):d=window.requestAnimationFrame(p)}return v=Date.now(),d=window.requestAnimationFrame(p),Promise.resolve()}});var Wb=te(Ua=>{"use strict";var pm=kt(),lE=dt(),Dc=gr(),HQ=fa(),BQ=fn(),sE=b1().getModuleCalcData,lf=ua(),Al=Pa(),OQ=lc(),$t=Dc.ensureSingle;function dm(e,r,t){return Dc.ensureSingle(e,r,t,function(n){n.datum(t)})}var Ec=Al.zindexSeparator;Ua.name="cartesian";Ua.attr=["xaxis","yaxis"];Ua.idRoot=["x","y"];Ua.idRegex=Al.idRegex;Ua.attrRegex=Al.attrRegex;Ua.attributes=ED();Ua.layoutAttributes=gl();Ua.supplyLayoutDefaults=nE();Ua.transitionAxes=oE();Ua.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,v;for(u=0;u0){var d=h.id;if(d.indexOf(Ec)!==-1)continue;d+=Ec+(u+1),h=Dc.extendFlat({},h,{id:d,plot:a._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],p,y=0;y1&&(A+=Ec+_),x.push(l+A),o=0;o1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=$t(n,"path","xlines-above"),r.ylines=$t(n,"path","ylines-above"),r.xaxislayer=$t(n,"g","xaxislayer-above"),r.yaxislayer=$t(n,"g","yaxislayer-above");else{if(!o){var h=$t(n,"g","layer-subplot");r.shapelayer=$t(h,"g","shapelayer"),r.imagelayer=$t(h,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=$t(n,"g","minor-gridlayer"),r.gridlayer=$t(n,"g","gridlayer"),r.zerolinelayer=$t(n,"g","zerolinelayer"));var d=$t(n,"g","layer-between");r.shapelayerBetween=$t(d,"g","shapelayer"),r.imagelayerBetween=$t(d,"g","imagelayer"),$t(n,"path","xlines-below"),$t(n,"path","ylines-below"),r.overlinesBelow=$t(n,"g","overlines-below"),$t(n,"g","xaxislayer-below"),$t(n,"g","yaxislayer-below"),r.overaxesBelow=$t(n,"g","overaxes-below")}r.overplot=$t(n,"g","overplot"),r.plot=$t(r.overplot,"g",a),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=$t(n,"g","zerolinelayer-above"),o||(r.xlines=$t(n,"path","xlines-above"),r.ylines=$t(n,"path","ylines-above"),r.overlinesAbove=$t(n,"g","overlines-above"),$t(n,"g","xaxislayer-above"),$t(n,"g","yaxislayer-above"),r.overaxesAbove=$t(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+s),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+s))}else{var m=v.plotgroup,p=a+"-x",y=a+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,$t(v.overlinesBelow,"path",p),$t(v.overlinesBelow,"path",y),$t(v.overaxesBelow,"g",p),$t(v.overaxesBelow,"g",y),r.plot=$t(v.overplot,"g",a),$t(v.overlinesAbove,"path",p),$t(v.overlinesAbove,"path",y),$t(v.overaxesAbove,"g",p),$t(v.overaxesAbove,"g",y),r.xlines=m.select(".overlines-"+l).select("."+p),r.ylines=m.select(".overlines-"+s).select("."+y),r.xaxislayer=m.select(".overaxes-"+l).select("."+p),r.yaxislayer=m.select(".overaxes-"+s).select("."+y)}o||(u||(dm(r.minorGridlayer,"g",r.xaxis._id),dm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(lf.idSort),dm(r.gridlayer,"g",r.xaxis._id),dm(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(lf.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function cE(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=pm.select(this);f.remove(),vE(u,r),t[u]=!0});for(var n in r._plots)for(var a=r._plots[n],i=a.overlays||[],o=0;o{"use strict";var gm=Qa();hE.exports={hasLines:gm.hasLines,hasMarkers:gm.hasMarkers,hasText:gm.hasText,isBubble:gm.isBubble,attributes:kc(),layoutAttributes:Gd(),supplyDefaults:Sq(),crossTraceDefaults:Dq(),supplyLayoutDefaults:Pq(),calc:rm().calc,crossTraceCalc:iD(),arraysToCalcdata:gh(),plot:bD(),colorbar:Rb(),formatLabels:wD(),style:xh().style,styleOnSelect:xh().styleOnSelect,hoverPoints:SD(),selectPoints:qD(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Wb(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var mE=te((a0e,gE)=>{"use strict";var YQ=kt(),GQ=Pt(),pE=Y5(),Zb=gr(),VQ=Zb.strScale,WQ=Zb.strRotate,ZQ=Zb.strTranslate;gE.exports=function(r,t,n){var a=r.node(),i=pE[n.arrowhead||0],o=pE[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),s=(n.arrowwidth||1)*(n.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=i.backoff*l+n.standoff,h=o.backoff*s+n.startstandoff,d,m,p,y;if(a.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-m.x,C=d.y-m.y;if(p=Math.atan2(C,b),y=p+Math.PI,v&&h&&v+h>Math.sqrt(b*b+C*C)){X();return}if(v){if(v*v>b*b+C*C){X();return}var x=v*Math.cos(p),_=v*Math.sin(p);m.x+=x,m.y+=_,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>b*b+C*C){X();return}var A=h*Math.cos(p),k=h*Math.sin(p);d.x-=A,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(a.nodeName==="path"){var M=a.getTotalLength(),E="";if(M{"use strict";var yE=kt(),Xb=dt(),XQ=fa(),uf=gr(),jb=uf.strTranslate,Th=Dn(),Pc=Pt(),ou=fn(),bE=ss(),Jb=vi(),$b=Ku(),Ah=To(),jQ=bn().arrayEditor,JQ=mE();wE.exports={draw:$Q,drawOne:_E,drawRaw:xE};function $Q(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ze="right":Ze="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ze]}for(var pe=!1,U=["x","y"],Q=0;Q1)&&(Oe===ke?(Er=Ie.r2fraction(r["a"+$]),(Er<0||Er>1)&&(pe=!0)):pe=!0),pr=Ie._offset+Ie.r2p(r[$]),Ye=.5}else{var Ae=zr==="domain";$==="x"?(Te=r[$],pr=Ae?Ie._offset+Ie._length*Te:pr=l.l+l.w*Te):(Te=1-r[$],pr=Ae?Ie._offset+Ie._length*Te:pr=l.t+l.h*Te),Ye=r.showarrow?.5:Te}if(r.showarrow){Ke.head=pr;var je=r["a"+$];if(Ar=or*we(.5,r.xanchor)-Ue*we(.5,r.yanchor),Oe===ke){var hr=Th.getRefType(Oe);hr==="domain"?($==="y"&&(je=1-je),Ke.tail=Ie._offset+Ie._length*je):hr==="paper"?$==="y"?(je=1-je,Ke.tail=l.t+l.h*je):Ke.tail=l.l+l.w*je:Ke.tail=Ie._offset+Ie.r2p(je),dr=Ar}else Ke.tail=pr+je,dr=Ar+je;Ke.text=Ke.tail+Ar;var wr=o[$==="x"?"width":"height"];if(ke==="paper"&&(Ke.head=uf.constrain(Ke.head,1,wr-1)),Oe==="pixel"){var mr=-Math.max(Ke.tail-3,Ke.text),Tr=Math.min(Ke.tail+3,Ke.text)-wr;mr>0?(Ke.tail+=mr,Ke.text+=mr):Tr>0&&(Ke.tail-=Tr,Ke.text-=Tr)}Ke.tail+=cr,Ke.head+=cr}else Ar=tr*we(Ye,ur),dr=Ar,Ke.text=pr+Ar;Ke.text+=cr,Ar+=cr,dr+=cr,r["_"+$+"padplus"]=tr/2+dr,r["_"+$+"padminus"]=tr/2-dr,r["_"+$+"size"]=tr,r["_"+$+"shift"]=Ar}if(pe){M.remove();return}var Dr=0,Or=0;if(r.align!=="left"&&(Dr=(Le-Fe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Or=(rr-Xe)*(r.valign==="middle"?.5:1)),De)he.select("svg").attr({x:F+Dr-1,y:F+Or}).call(ou.setClipUrl,W?p:null,e);else{var Cr=F+Or-Ne.top,ar=F+Dr-Ne.left;re.call(Jb.positionText,ar,Cr).call(ou.setClipUrl,W?p:null,e)}B.select("rect").call(ou.setRect,F,F,Le,rr),I.call(ou.setRect,E/2,E/2,se-E,ye-E),M.call(ou.setTranslate,Math.round(y.x.text-se/2),Math.round(y.y.text-ye/2)),x.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var be=function($e,Ze){C.selectAll(".annotation-arrow-g").remove();var qr=y.x.head,Hr=y.y.head,Pr=y.x.tail+$e,lt=y.y.tail+Ze,xt=y.x.text+$e,Nt=y.y.text+Ze,Ht=uf.rotationXYMatrix(b,xt,Nt),An=uf.apply2DTransform(Ht),Tn=uf.apply2DTransform2(Ht),cn=+I.attr("width"),Ft=+I.attr("height"),jt=xt-.5*cn,en=jt+cn,Jt=Nt-.5*Ft,aa=Jt+Ft,rt=[[jt,Jt,jt,aa],[jt,aa,en,aa],[en,aa,en,Jt],[en,Jt,jt,Jt]].map(Tn);if(!rt.reduce(function(Bt,Bn){return Bt^!!uf.segmentsIntersect(qr,Hr,qr+1e6,Hr+1e6,Bn[0],Bn[1],Bn[2],Bn[3])},!1)){rt.forEach(function(Bt){var Bn=uf.segmentsIntersect(Pr,lt,qr,Hr,Bt[0],Bt[1],Bt[2],Bt[3]);Bn&&(Pr=Bn.x,lt=Bn.y)});var rn=r.arrowwidth,St=r.arrowcolor,dn=r.arrowside,pn=C.append("g").style({opacity:Pc.opacity(St)}).classed("annotation-arrow-g",!0),an=pn.append("path").attr("d","M"+Pr+","+lt+"L"+qr+","+Hr).style("stroke-width",rn+"px").call(Pc.stroke,Pc.rgb(St));if(JQ(an,dn,r),s.annotationPosition&&an.node().parentNode&&!n){var vn=qr,da=Hr;if(r.standoff){var qn=Math.sqrt(Math.pow(qr-Pr,2)+Math.pow(Hr-lt,2));vn+=r.standoff*(Pr-qr)/qn,da+=r.standoff*(lt-Hr)/qn}var Na=pn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Pr-vn)+","+(lt-da),transform:jb(vn,da)}).style("stroke-width",rn+6+"px").call(Pc.stroke,"rgba(0,0,0,0)").call(Pc.fill,"rgba(0,0,0,0)"),pa,wn;Ah.init({element:Na.node(),gd:e,prepFn:function(){var Bt=ou.getTranslate(M);pa=Bt.x,wn=Bt.y,a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(Bt,Bn){var gi=An(pa,wn),io=gi[0]+Bt,mi=gi[1]+Bn;M.call(ou.setTranslate,io,mi),d("x",sf(a,Bt,"x",l,r)),d("y",sf(i,Bn,"y",l,r)),r.axref===r.xref&&d("ax",sf(a,Bt,"ax",l,r)),r.ayref===r.yref&&d("ay",sf(i,Bn,"ay",l,r)),pn.attr("transform",jb(Bt,Bn)),x.attr({transform:"rotate("+b+","+io+","+mi+")"})},doneFn:function(){Xb.call("_guiRelayout",e,m());var Bt=document.querySelector(".js-notes-box-panel");Bt&&Bt.redraw(Bt.selectedObj)}})}}};if(r.showarrow&&be(0,0),_){var Se;Ah.init({element:M.node(),gd:e,prepFn:function(){Se=x.attr("transform")},moveFn:function($e,Ze){var qr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",sf(a,$e,"ax",l,r)):d("ax",r.ax+$e),r.ayref===r.yref?d("ay",sf(i,Ze,"ay",l.w,r)):d("ay",r.ay+Ze),be($e,Ze);else{if(n)return;var Hr,Pr;if(a)Hr=sf(a,$e,"x",l,r);else{var lt=r._xsize/l.w,xt=r.x+(r._xshift-r.xshift)/l.w-lt/2;Hr=Ah.align(xt+$e/l.w,lt,0,1,r.xanchor)}if(i)Pr=sf(i,Ze,"y",l,r);else{var Nt=r._ysize/l.h,Ht=r.y-(r._yshift+r.yshift)/l.h-Nt/2;Pr=Ah.align(Ht-Ze/l.h,Nt,0,1,r.yanchor)}d("x",Hr),d("y",Pr),(!a||!i)&&(qr=Ah.getCursor(a?.5:Hr,i?.5:Pr,r.xanchor,r.yanchor))}x.attr({transform:jb($e,Ze)+Se}),$b(M,qr)},clickFn:function($e,Ze){r.captureevents&&e.emit("plotly_clickannotation",k(Ze))},doneFn:function(){$b(M),Xb.call("_guiRelayout",e,m());var $e=document.querySelector(".js-notes-box-panel");$e&&$e.redraw($e.selectedObj)}})}}s.annotationText?re.call(Jb.makeEditable,{delegate:M,gd:e}).call(ae).on("edit",function(ee){r.text=ee,this.call(ae),d("text",ee),a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),Xb.call("_guiRelayout",e,m())}):re.call(ae)}});var CE=te((o0e,SE)=>{"use strict";var ME=gr(),KQ=dt(),AE=bn().arrayEditor;SE.exports={hasClickToShow:QQ,onClick:eee};function QQ(e,r){var t=kE(e,r);return t.on.length>0||t.explicitOff.length>0}function eee(e,r){var t=kE(e,r),n=t.on,a=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(n.length||a.length){for(l=0;l{"use strict";var Kb=gr(),_v=Pt();LE.exports=function(r,t,n,a){a("opacity");var i=a("bgcolor"),o=a("bordercolor"),l=_v.opacity(o);a("borderpad");var s=a("borderwidth"),u=a("showarrow");a("text",u?" ":n._dfltTitle.annotation),a("textangle"),Kb.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),u){var v=a("arrowside"),h,d;v.indexOf("end")!==-1&&(h=a("arrowhead"),d=a("arrowsize")),v.indexOf("start")!==-1&&(a("startarrowhead",h),a("startarrowsize",d)),a("arrowcolor",l?t.bordercolor:_v.defaultLine),a("arrowwidth",(l&&s||1)*2),a("standoff"),a("startstandoff")}var m=a("hovertext"),p=n.hoverlabel||{};if(m){var y=a("hoverlabel.bgcolor",p.bgcolor||(_v.opacity(i)?_v.rgb(i):_v.defaultLine)),b=a("hoverlabel.bordercolor",p.bordercolor||_v.contrast(y)),C=Kb.extendFlat({},p.font);C.color||(C.color=b),Kb.coerceFont(a,"hoverlabel.font",C)}a("captureevents",!!m)}});var DE=te((s0e,qE)=>{"use strict";var e4=gr(),Rc=Dn(),ree=ml(),tee=Qb(),nee=cv();qE.exports=function(r,t){ree(r,t,{name:"annotations",handleItemDefaults:aee})};function aee(e,r,t){function n(x,_){return e4.coerce(e,r,nee,x,_)}var a=n("visible"),i=n("clicktoshow");if(a||i){tee(e,r,t,n);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var v=l[f],h=Rc.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Rc.getFromId(u,h);d._annIndices.push(r._index)}if(Rc.coercePosition(r,u,n,h,v,.5),o){var m="a"+v,p=Rc.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);p!=="pixel"&&p!==h&&(p=r[m]="pixel");var y=p==="pixel"?s[f]:.4;Rc.coercePosition(r,u,n,p,m,y)}n(v+"anchor"),n(v+"shift")}if(e4.noneOrAll(e,r,["x","y"]),o&&e4.noneOrAll(e,r,["ax","ay"]),i){var b=n("xclick"),C=n("yclick");r._xclick=b===void 0?r.x:Rc.cleanPosition(b,u,r.xref),r._yclick=C===void 0?r.y:Rc.cleanPosition(C,u,r.yref)}}}});var RE=te((u0e,PE)=>{"use strict";var r4=gr(),zc=Dn(),iee=mm().draw;PE.exports=function(r){var t=r._fullLayout,n=r4.filterVisible(t.annotations);if(n.length&&r._fullData.length)return r4.syncOrAsync([iee,oee],r)};function oee(e){var r=e._fullLayout;r4.filterVisible(r.annotations).forEach(function(t){var n=zc.getFromId(e,t.xref),a=zc.getFromId(e,t.yref),i=zc.getRefType(t.xref),o=zc.getRefType(t.yref);t._extremes={},i==="range"&&EE(t,n),o==="range"&&EE(t,a)})}function EE(e,r){var t=r._id,n=t.charAt(0),a=e[n],i=e["a"+n],o=e[n+"ref"],l=e["a"+n+"ref"],s=e["_"+n+"padplus"],u=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],v=3*e.arrowsize*e.arrowwidth||0,h=v+f,d=v-f,m=3*e.startarrowsize*e.arrowwidth||0,p=m+f,y=m-f,b;if(l===o){var C=zc.findExtremes(r,[r.r2c(a)],{ppadplus:h,ppadminus:d}),x=zc.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,p),ppadminus:Math.max(u,y)});b={min:[C.min[0],x.min[0]],max:[C.max[0],x.max[0]]}}else p=i?p+i:p,y=i?y-i:y,b=zc.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(s,h,p),ppadminus:Math.max(u,d,y)});e._extremes[t]=b}});var NE=te((f0e,zE)=>{"use strict";var lee=Ut(),see=fd();zE.exports=function(r,t,n,a){t=t||{};var i=n==="log"&&t.type==="linear",o=n==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function v(d){var m=u[d],p=null;i?p=see(m,t.range):p=Math.pow(10,m),lee(p)||(p=null),a(f+d,p)}for(var h=0;h{"use strict";var t4=mm(),FE=CE();IE.exports={moduleType:"component",name:"annotations",layoutAttributes:cv(),supplyLayoutDefaults:DE(),includeBasePlot:ah()("annotations"),calcAutorange:RE(),draw:t4.draw,drawOne:t4.drawOne,drawRaw:t4.drawRaw,hasClickToShow:FE.hasClickToShow,onClick:FE.onClick,convertCoords:NE()}});var ym=te((v0e,BE)=>{"use strict";var xn=cv(),uee=_o().overrideAll,fee=bn().templatedArray;BE.exports=uee(fee("annotation",{visible:xn.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:xn.xanchor,xshift:xn.xshift,yanchor:xn.yanchor,yshift:xn.yshift,text:xn.text,textangle:xn.textangle,font:xn.font,width:xn.width,height:xn.height,opacity:xn.opacity,align:xn.align,valign:xn.valign,bgcolor:xn.bgcolor,bordercolor:xn.bordercolor,borderpad:xn.borderpad,borderwidth:xn.borderwidth,showarrow:xn.showarrow,arrowcolor:xn.arrowcolor,arrowhead:xn.arrowhead,startarrowhead:xn.startarrowhead,arrowside:xn.arrowside,arrowsize:xn.arrowsize,startarrowsize:xn.startarrowsize,arrowwidth:xn.arrowwidth,standoff:xn.standoff,startstandoff:xn.startstandoff,hovertext:xn.hovertext,hoverlabel:xn.hoverlabel,captureevents:xn.captureevents}),"calc","from-root")});var UE=te((h0e,OE)=>{"use strict";var n4=gr(),cee=Dn(),vee=ml(),hee=Qb(),dee=ym();OE.exports=function(r,t,n){vee(r,t,{name:"annotations",handleItemDefaults:pee,fullLayout:n.fullLayout})};function pee(e,r,t,n){function a(l,s){return n4.coerce(e,r,dee,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],cee.coercePosition(r,u,a,l,l,.5)}var o=a("visible");o&&(hee(e,r,n.fullLayout,a),i("x"),i("y"),i("z"),n4.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),n4.noneOrAll(e,r,["ax","ay"])))}});var WE=te((d0e,VE)=>{"use strict";var YE=gr(),GE=Dn();VE.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function a4(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function mee(e,r){var t=a4(e.projection,a4(e.view,a4(e.model,[r[0],r[1],r[2],1])));return t}ZE.exports=mee});var JE=te((g0e,jE)=>{"use strict";var yee=mm().drawRaw,bee=XE(),_ee=["x","y","z"];jE.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=bee(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*n[0],t.yaxis.r2l(o.y)*n[1],t.zaxis.r2l(o.z)*n[2]]),yee(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var QE=te((m0e,KE)=>{"use strict";var xee=dt(),$E=gr();KE.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:ym()}}},layoutAttributes:ym(),handleDefaults:UE(),includeBasePlot:wee,convert:WE(),draw:JE()};function wee(e,r){var t=xee.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),i=0;i{"use strict";var eP=cv(),rP=$a(),tP=kc().line,Mee=Kl().dash,Tl=la().extendFlat,Aee=bn().templatedArray,y0e=nh(),xv=bo(),Tee=Vs().shapeTexttemplateAttrs,kee=xd();nP.exports=Aee("shape",{visible:Tl({},xv.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Tl({},xv.legend,{editType:"calc+arraydraw"}),legendgroup:Tl({},xv.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Tl({},xv.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:rP({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Tl({},xv.legendrank,{editType:"calc+arraydraw"}),legendwidth:Tl({},xv.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Tl({},eP.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Tl({},eP.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Tl({},tP.color,{editType:"arraydraw"}),width:Tl({},tP.width,{editType:"calc+arraydraw"}),dash:Tl({},Mee,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Tee({},{keys:Object.keys(kee)}),font:rP({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var oP=te((_0e,iP)=>{"use strict";var kh=gr(),wv=Dn(),See=ml(),Cee=i4(),aP=rf();iP.exports=function(r,t){See(r,t,{name:"shapes",handleItemDefaults:qee})};function Lee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function qee(e,r,t){function n(ee,fe){return kh.coerce(e,r,Cee,ee,fe)}r._isShape=!0;var a=n("visible");if(a){var i=n("showlegend");i&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),kh.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),l=o?"path":"rect",s=n("type",l),u=s!=="path";u&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));for(var v=n("xsizemode"),h=n("ysizemode"),d=["x","y"],m=0;m<2;m++){var p=d[m],y=p+"anchor",b=p==="x"?v:h,C={_fullLayout:t},x,_,A,k=wv.coerceRef(e,r,C,p,void 0,"paper"),M=wv.getRefType(k);if(M==="range"?(x=wv.getFromId(C,k),x._shapeIndices.push(r._index),A=aP.rangeToShapePosition(x),_=aP.shapePositionToRange(x),(x.type==="category"||x.type==="multicategory")&&(n(p+"0shift"),n(p+"1shift"))):_=A=kh.identity,u){var E=.25,z=.75,F=p+"0",I=p+"1",W=e[F],B=e[I];e[F]=_(e[F],!0),e[I]=_(e[I],!0),b==="pixel"?(n(F,0),n(I,10)):(wv.coercePosition(r,C,n,k,F,E),wv.coercePosition(r,C,n,k,I,z)),r[F]=A(r[F]),r[I]=A(r[I]),e[F]=W,e[I]=B}if(b==="pixel"){var X=e[y];e[y]=_(e[y],!0),wv.coercePosition(r,C,n,k,y,.25),r[y]=A(r[y]),e[y]=X}}u&&kh.noneOrAll(e,r,["x0","x1","y0","y1"]);var V=s==="line",re,ae;if(u&&(re=n("label.texttemplate")),re||(ae=n("label.text")),ae||re){n("label.textangle");var K=n("label.textposition",V?"middle":"middle center");n("label.xanchor"),n("label.yanchor",Lee(V,K)),n("label.padding"),kh.coerceFont(n,"label.font",t.font)}}}});var uP=te((x0e,sP)=>{"use strict";var Dee=Pt(),lP=gr();function Eee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}sP.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),lP.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var i=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",Dee.contrast(i)),n("newshape.line.dash")}var o=r.dragmode==="drawline",l=n("newshape.label.text"),s=n("newshape.label.texttemplate");if(l||s){n("newshape.label.textangle");var u=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",Eee(o,u)),n("newshape.label.padding"),lP.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var dP=te((w0e,hP)=>{"use strict";var o4=gr(),Mv=Dn(),Av=F1(),cP=rf();hP.exports=function(r){var t=r._fullLayout,n=o4.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a0?u+o:o;return{ppad:o,ppadplus:l?v:h,ppadminus:l?h:v}}else return{ppad:o}}function fP(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(i=r[n+"0"],o=r[n+"1"],a&&(l=r[n+"0shift"],s=r[n+"1shift"])):(i=r[n+"anchor"],o=r[n+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var v=1/0,h=-1/0,d=r.path.match(Av.segmentRE),m,p,y,b,C;for(e.type==="date"&&(u=cP.decodeDate(u)),m=0;mh&&(h=C)));if(h>=v)return[v,h]}}});var mP=te((M0e,gP)=>{"use strict";var pP=lg();gP.exports={moduleType:"component",name:"shapes",layoutAttributes:i4(),supplyLayoutDefaults:oP(),supplyDrawNewShapeDefaults:uP(),includeBasePlot:ah()("shapes"),calcAutorange:dP(),draw:pP.draw,drawOne:pP.drawOne}});var l4=te((T0e,bP)=>{"use strict";var yP=Pa(),zee=bn().templatedArray,A0e=nh();bP.exports=zee("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",yP.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",yP.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var xP=te((k0e,_P)=>{"use strict";var Nee=gr(),s4=Dn(),Fee=ml(),Iee=l4(),Hee="images";_P.exports=function(r,t){var n={name:Hee,handleItemDefaults:Bee};Fee(r,t,n)};function Bee(e,r,t){function n(h,d){return Nee.coerce(e,r,Iee,h,d)}var a=n("source"),i=n("visible",!!a);if(!i)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=s4.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var v=s4.getFromId(o,f);v._imgIndices.push(r._index)}s4.coercePosition(r,o,n,f,u,0)}return r}});var TP=te((S0e,AP)=>{"use strict";var wP=kt(),Oee=fn(),Tv=Dn(),MP=ua(),Uee=lc();AP.exports=function(r){var t=r._fullLayout,n=[],a={},i=[],o,l;for(l=0;l{"use strict";var kP=Ut(),Yee=fd();SP.exports=function(r,t,n,a){t=t||{};var i=n==="log"&&t.type==="linear",o=n==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,v=0;v{"use strict";LP.exports={moduleType:"component",name:"images",layoutAttributes:l4(),supplyLayoutDefaults:xP(),includeBasePlot:ah()("images"),draw:TP(),convertCoords:CP()}});var bm=te((q0e,DP)=>{"use strict";DP.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var u4=te((D0e,PP)=>{"use strict";var Gee=$a(),Vee=vl(),Wee=la().extendFlat,Zee=_o().overrideAll,Xee=wd(),EP=bn().templatedArray,jee=EP("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});PP.exports=Zee(EP("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:jee,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Wee(Xee({editType:"arraydraw"}),{}),font:Gee({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Vee.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var FP=te((E0e,NP)=>{"use strict";var _m=gr(),RP=ml(),zP=u4(),Jee=bm(),$ee=Jee.name,Kee=zP.buttons;NP.exports=function(r,t){var n={name:$ee,handleItemDefaults:Qee};RP(r,t,n)};function Qee(e,r,t){function n(o,l){return _m.coerce(e,r,zP,o,l)}var a=RP(e,r,{name:"buttons",handleItemDefaults:ere}),i=n("visible",a.length>0);i&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),_m.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),_m.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function ere(e,r){function t(a,i){return _m.coerce(e,r,Kee,a,i)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var BP=te((P0e,HP)=>{"use strict";HP.exports=zn;var kl=kt(),IP=Pt(),kv=fn(),xm=gr();function zn(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}zn.barWidth=2;zn.barLength=20;zn.barRadius=2;zn.barPad=1;zn.barColor="#808BA4";zn.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,i=a.width,o=a.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,v=this.position.direction,h=v==="down",d=v==="left",m=v==="right",p=v==="up",y=s,b=f,C,x,_,A;!h&&!d&&!m&&!p&&(this.position.direction="down",h=!0);var k=h||p;k?(C=l,x=C+y,h?(_=u,A=Math.min(_+b,o),b=A-_):(A=u+b,_=Math.max(A-b,0),b=A-_)):(_=u,A=_+b,d?(x=l+y,C=Math.max(x-y,0),y=x-C):(C=l,x=Math.min(C+y,i),y=x-C)),this._box={l:C,t:_,w:y,h:b};var M=s>y,E=zn.barLength+2*zn.barPad,z=zn.barWidth+2*zn.barPad,F=l,I=u+f;I+z>o&&(I=o-z);var W=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);W.exit().on(".drag",null).remove(),W.enter().append("rect").classed("scrollbar-horizontal",!0).call(IP.fill,zn.barColor),M?(this.hbar=W.attr({rx:zn.barRadius,ry:zn.barRadius,x:F,y:I,width:E,height:z}),this._hbarXMin=F+E/2,this._hbarTranslateMax=y-E):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var B=f>b,X=zn.barWidth+2*zn.barPad,V=zn.barLength+2*zn.barPad,re=l+s,ae=u;re+X>i&&(re=i-X);var K=this.container.selectAll("rect.scrollbar-vertical").data(B?[0]:[]);K.exit().on(".drag",null).remove(),K.enter().append("rect").classed("scrollbar-vertical",!0).call(IP.fill,zn.barColor),B?(this.vbar=K.attr({rx:zn.barRadius,ry:zn.barRadius,x:re,y:ae,width:X,height:V}),this._vbarYMin=ae+V/2,this._vbarTranslateMax=b-V):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ee=this.id,fe=C-.5,he=B?x+X+.5:x+.5,De=_-.5,Ne=M?A+z+.5:A+.5,Fe=a._topdefs.selectAll("#"+ee).data(M||B?[0]:[]);if(Fe.exit().remove(),Fe.enter().append("clipPath").attr("id",ee).append("rect"),M||B?(this._clipRect=Fe.select("rect").attr({x:Math.floor(fe),y:Math.floor(De),width:Math.ceil(he)-Math.floor(fe),height:Math.ceil(Ne)-Math.floor(De)}),this.container.call(kv.setClipUrl,ee,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(kv.setClipUrl,null),delete this._clipRect),M||B){var Xe=kl.behavior.drag().on("dragstart",function(){kl.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Xe);var Le=kl.behavior.drag().on("dragstart",function(){kl.event.sourceEvent.preventDefault(),kl.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(Le),B&&this.vbar.on(".drag",null).call(Le)}this.setTranslate(t,n)};zn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(kv.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};zn.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=kl.event.dx),this.vbar&&(t-=kl.event.dy),this.setTranslate(r,t)};zn.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=kl.event.deltaY),this.vbar&&(t+=kl.event.deltaY),this.setTranslate(r,t)};zn.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,i=xm.constrain(kl.event.x,n,a),o=(i-n)/(a-n),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=xm.constrain(kl.event.y,s,u),v=(f-s)/(u-s),h=this.position.h-this._box.h;t=v*h}this.setTranslate(r,t)};zn.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=xm.constrain(r||0,0,n),t=xm.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(kv.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/n;this.hbar.call(kv.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/a;this.vbar.call(kv.setTranslate,r,t+o*this._vbarTranslateMax)}}});var JP=te((R0e,jP)=>{"use strict";var Sv=kt(),Sh=fa(),Ch=Pt(),Cv=fn(),no=gr(),wm=vi(),rre=bn().arrayEditor,UP=Ka().LINE_SPACING,ct=bm(),tre=BP();jP.exports=function(r){var t=r._fullLayout,n=no.filterVisible(t[ct.name]);function a(h){Sh.autoMargin(r,ZP(h))}var i=t._menulayer.selectAll("g."+ct.containerClassName).data(n.length>0?[0]:[]);if(i.enter().append("g").classed(ct.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Sv.select(this).selectAll("g."+ct.headerGroupClassName).each(a)}).remove(),n.length!==0){var o=i.selectAll("g."+ct.headerGroupClassName).data(n,nre);o.enter().append("g").classed(ct.headerGroupClassName,!0);for(var l=no.ensureSingle(i,"g",ct.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var fre=bm();$P.exports={moduleType:"component",name:fre.name,layoutAttributes:u4(),supplyLayoutDefaults:FP(),draw:JP()}});var qh=te((N0e,QP)=>{"use strict";QP.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var h4=te((F0e,tR)=>{"use strict";var eR=$a(),cre=wd(),vre=la().extendDeepAll,hre=_o().overrideAll,dre=s1(),rR=bn().templatedArray,Nc=qh(),pre=rR("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});tR.exports=hre(rR("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:pre,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:vre(cre({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:dre.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:eR({})},font:eR({}),activebgcolor:{valType:"color",dflt:Nc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Nc.railBgColor},bordercolor:{valType:"color",dflt:Nc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Nc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Nc.tickLength},tickcolor:{valType:"color",dflt:Nc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Nc.minorTickLength}}),"arraydraw","from-root")});var oR=te((I0e,iR)=>{"use strict";var Lv=gr(),nR=ml(),aR=h4(),gre=qh(),mre=gre.name,yre=aR.steps;iR.exports=function(r,t){nR(r,t,{name:mre,handleItemDefaults:bre})};function bre(e,r,t){function n(v,h){return Lv.coerce(e,r,aR,v,h)}for(var a=nR(e,r,{name:"steps",handleItemDefaults:_re}),i=0,o=0;o{"use strict";var Sl=kt(),Mm=fa(),ff=Pt(),Cl=fn(),ao=gr(),xre=ao.strTranslate,Dh=vi(),wre=bn().arrayEditor,Mt=qh(),g4=Ka(),uR=g4.LINE_SPACING,d4=g4.FROM_TL,p4=g4.FROM_BR;pR.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Mre(n,r),i=n._infolayer.selectAll("g."+Mt.containerClassName).data(a.length>0?[0]:[]);i.enter().append("g").classed(Mt.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Mm.autoMargin(r,fR(f))}if(i.exit().each(function(){Sl.select(this).selectAll("g."+Mt.groupClassName).each(o)}).remove(),a.length!==0){var l=i.selectAll("g."+Mt.groupClassName).data(a,Are);l.enter().append("g").classed(Mt.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",xre(o-Mt.gripWidth*.5,r._dims.currentValueTotalHeight))}}function m4(e,r){var t=e._dims;return t.inputAreaStart+Mt.stepInset+(t.inputAreaLength-2*Mt.stepInset)*Math.min(1,Math.max(0,r))}function sR(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Mt.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Mt.stepInset-2*t.inputAreaStart)))}function Dre(e,r,t){var n=t._dims,a=ao.ensureSingle(e,"rect",Mt.railTouchRectClass,function(i){i.call(hR,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Mt.tickOffset+t.ticklen+n.labelHeight)}).call(ff.fill,t.bgcolor).attr("opacity",0),Cl.setTranslate(a,0,n.currentValueTotalHeight)}function Ere(e,r){var t=r._dims,n=t.inputAreaLength-Mt.railInset*2,a=ao.ensureSingle(e,"rect",Mt.railRectClass);a.attr({width:n,height:Mt.railWidth,rx:Mt.railRadius,ry:Mt.railRadius,"shape-rendering":"crispEdges"}).call(ff.stroke,r.bordercolor).call(ff.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Cl.setTranslate(a,Mt.railInset,(t.inputAreaWidth-Mt.railWidth)*.5+t.currentValueTotalHeight)}});var yR=te((B0e,mR)=>{"use strict";var Pre=qh();mR.exports={moduleType:"component",name:Pre.name,layoutAttributes:h4(),supplyLayoutDefaults:oR(),draw:gR()}});var Tm=te((O0e,_R)=>{"use strict";var bR=vl();_R.exports={bgcolor:{valType:"color",dflt:bR.background,editType:"plot"},bordercolor:{valType:"color",dflt:bR.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var y4=te((U0e,xR)=>{"use strict";xR.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var km=te((Y0e,wR)=>{"use strict";wR.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var TR=te(Cm=>{"use strict";var Rre=ua(),zre=vi(),MR=km(),Nre=Ka().LINE_SPACING,Sm=MR.name;function AR(e){var r=e&&e[Sm];return r&&r.visible}Cm.isVisible=AR;Cm.makeData=function(e){for(var r=Rre.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var Lm=gr(),kR=bn(),SR=ua(),Fre=Tm(),Ire=y4();CR.exports=function(r,t,n){var a=r[n],i=t[n];if(!(a.rangeslider||t._requestRangeslider[i._id]))return;Lm.isPlainObject(a.rangeslider)||(a.rangeslider={});var o=a.rangeslider,l=kR.newContainer(i,"rangeslider");function s(A,k){return Lm.coerce(o,l,Fre,A,k)}var u,f;function v(A,k){return Lm.coerce(u,f,Ire,A,k)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(A){return A.substr(0,A.indexOf("y"))===SR.name2id(n)}).map(function(A){return A.substr(A.indexOf("y"),A.length)}),p=Lm.simpleMap(m,SR.id2name),y=0;y{"use strict";var Hre=ua().list,Bre=Ju().getAutoRange,Ore=km();qR.exports=function(r){for(var t=Hre(r,"x",!0),n=0;n{"use strict";var qm=kt(),Ure=dt(),Yre=fa(),Vn=gr(),Dm=Vn.strTranslate,PR=fn(),cf=Pt(),Gre=T1(),Vre=Wb(),b4=ua(),Wre=To(),Zre=Ku(),Et=km();RR.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=K.max)re=I[ae+1];else if(V=K.pmax)re=I[ae+1];else if(V0?e.touches[0].clientX:0}function Xre(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Et.slideBoxClassName).node(),i=e.select("rect."+Et.grabAreaMinClassName).node(),o=e.select("rect."+Et.grabAreaMaxClassName).node();function l(){var s=qm.event,u=s.target,f=ER(s),v=f-e.node().getBoundingClientRect().left,h=n.d2p(t._rl[0]),d=n.d2p(t._rl[1]),m=Wre.coverSlip();this.addEventListener("touchmove",p),this.addEventListener("touchend",y),m.addEventListener("mousemove",p),m.addEventListener("mouseup",y);function p(b){var C=ER(b),x=+C-f,_,A,k;switch(u){case a:if(k="ew-resize",h+x>t._length||d+x<0)return;_=h+x,A=d+x;break;case i:if(k="col-resize",h+x>t._length)return;_=h+x,A=d;break;case o:if(k="col-resize",d+x<0)return;_=h,A=d+x;break;default:k="ew-resize",_=v,A=v+x;break}if(A<_){var M=A;A=_,_=M}n._pixelMin=_,n._pixelMax=A,Zre(qm.select(m),k),jre(e,r,t,n)}function y(){m.removeEventListener("mousemove",p),m.removeEventListener("mouseup",y),this.removeEventListener("touchmove",p),this.removeEventListener("touchend",y),Vn.removeElement(m)}}e.on("mousedown",l),e.on("touchstart",l)}function jre(e,r,t,n){function a(l){return t.l2r(Vn.constrain(l,n._rl[0],n._rl[1]))}var i=a(n.p2d(n._pixelMin)),o=a(n.p2d(n._pixelMax));window.requestAnimationFrame(function(){Ure.call("_guiRelayout",r,t._name+".range",[i,o])})}function Jre(e,r,t,n,a,i){var o=Et.handleWidth/2;function l(b){return Vn.constrain(b,0,n._width)}function s(b){return Vn.constrain(b,0,n._height)}function u(b){return Vn.constrain(b,-o,n._width+o)}var f=l(n.d2p(t._rl[0])),v=l(n.d2p(t._rl[1]));if(e.select("rect."+Et.slideBoxClassName).attr("x",f).attr("width",v-f),e.select("rect."+Et.maskMinClassName).attr("width",f),e.select("rect."+Et.maskMaxClassName).attr("x",v).attr("width",n._width-v),i.rangemode!=="match"){var h=n._height-s(n.d2pOppAxis(a._rl[1])),d=n._height-s(n.d2pOppAxis(a._rl[0]));e.select("rect."+Et.maskMinOppAxisClassName).attr("x",f).attr("height",h).attr("width",v-f),e.select("rect."+Et.maskMaxOppAxisClassName).attr("x",f).attr("y",d).attr("height",n._height-d).attr("width",v-f),e.select("rect."+Et.slideBoxClassName).attr("y",h).attr("height",d-h)}var m=.5,p=Math.round(u(f-o))-m,y=Math.round(u(v-o))+m;e.select("g."+Et.grabberMinClassName).attr("transform",Dm(p,m)),e.select("g."+Et.grabberMaxClassName).attr("transform",Dm(y,m))}function $re(e,r,t,n){var a=Vn.ensureSingle(e,"rect",Et.bgClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),i=n.borderwidth%2===0?n.borderwidth:n.borderwidth-1,o=-n._offsetShift,l=PR.crispRound(r,n.borderwidth);a.attr({width:n._width+i,height:n._height+i,transform:Dm(o,o),"stroke-width":l}).call(cf.stroke,n.bordercolor).call(cf.fill,n.bgcolor)}function Kre(e,r,t,n){var a=r._fullLayout,i=Vn.ensureSingleById(a._topdefs,"clipPath",n._clipId,function(o){o.append("rect").attr({x:0,y:0})});i.select("rect").attr({width:n._width,height:n._height})}function Qre(e,r,t,n){var a=r.calcdata,i=e.selectAll("g."+Et.rangePlotClassName).data(t._subplotsWith,Vn.identity);i.enter().append("g").attr("class",function(l){return Et.rangePlotClassName+" "+l}).call(PR.setClipUrl,n._clipId,r),i.order(),i.exit().remove();var o;i.each(function(l,s){var u=qm.select(this),f=s===0,v=b4.getFromId(r,l,"y"),h=v._name,d=n[h],m={data:[],layout:{xaxis:{type:t.type,domain:[0,1],range:n.range.slice(),calendar:t.calendar},width:n._width,height:n._height,margin:{t:0,b:0,l:0,r:0}},_context:r._context};t.rangebreaks&&(m.layout.xaxis.rangebreaks=t.rangebreaks),m.layout[h]={type:v.type,domain:[0,1],range:d.rangemode!=="match"?d.range.slice():v.range.slice(),calendar:v.calendar},v.rangebreaks&&(m.layout[h].rangebreaks=v.rangebreaks),Yre.supplyDefaults(m);var p=m._fullLayout.xaxis,y=m._fullLayout[h];p.clearCalc(),p.setScale(),y.clearCalc(),y.setScale();var b={id:l,plotgroup:u,xaxis:p,yaxis:y,isRangePlot:!0};f?o=b:(b.mainplot="xy",b.mainplotinfo=o),Vre.rangePlot(r,b,ete(a,l))})}function ete(e,r){for(var t=[],n=0;n{"use strict";var ate=gr(),ite=Tm(),ote=y4(),_4=TR();NR.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:ate.extendFlat({},ite,{yaxis:ote})}}},layoutAttributes:Tm(),handleDefaults:LR(),calcAutorange:DR(),draw:zR(),isVisible:_4.isVisible,makeData:_4.makeData,autoMarginOpts:_4.autoMarginOpts}});var Em=te((j0e,HR)=>{"use strict";var lte=$a(),IR=vl(),ste=bn().templatedArray,ute=ste("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});HR.exports={visible:{valType:"boolean",editType:"plot"},buttons:ute,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:lte({editType:"plot"}),bgcolor:{valType:"color",dflt:IR.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:IR.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var x4=te((J0e,BR)=>{"use strict";BR.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var YR=te(($0e,UR)=>{"use strict";var Pm=gr(),fte=Pt(),cte=bn(),vte=ml(),OR=Em(),w4=x4();UR.exports=function(r,t,n,a,i){var o=r.rangeselector||{},l=cte.newContainer(t,"rangeselector");function s(d,m){return Pm.coerce(o,l,OR,d,m)}var u=vte(o,l,{name:"buttons",handleItemDefaults:hte,calendar:i}),f=s("visible",u.length>0);if(f){var v=dte(t,n,a);s("x",v[0]),s("y",v[1]),Pm.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Pm.coerceFont(s,"font",n.font);var h=s("bgcolor");s("activecolor",fte.contrast(h,w4.lightAmount,w4.darkAmount)),s("bordercolor"),s("borderwidth")}};function hte(e,r,t,n){var a=n.calendar;function i(s,u){return Pm.coerce(e,r,OR.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function dte(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,i=0;i{"use strict";var pte=wy(),gte=gr().titleCase;GR.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var i=mte(r,t);a[n+".range[0]"]=i[0],a[n+".range[1]"]=i[1]}return a};function mte(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,i=pte["utc"+gte(a)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(n,-o));break;case"todate":var s=i.offset(n,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var QR=te((Q0e,KR)=>{"use strict";var zm=kt(),yte=dt(),bte=fa(),WR=Pt(),$R=fn(),lu=gr(),ZR=lu.strTranslate,Rm=vi(),_te=ua(),T4=Ka(),XR=T4.LINE_SPACING,jR=T4.FROM_TL,JR=T4.FROM_BR,A4=x4(),xte=VR();KR.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(wte(r),Mte);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var i=zm.select(this),o=a,l=o.rangeselector,s=i.selectAll("g.button").data(lu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=zm.select(this),v=xte(o,u);u._isActive=Ate(o,u,v),f.call(M4,l,u),f.call(kte,l,u,r),f.on("click",function(){r._dragged||yte.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(M4,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(M4,l,u)})}),Cte(r,s,l,o._name,i)})};function wte(e){for(var r=_te.list(e,"x",!0),t=[],n=0;n{"use strict";ez.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Em()}}},layoutAttributes:Em(),handleDefaults:YR(),draw:QR()}});var Nm=te(k4=>{"use strict";var tz=la().extendFlat;k4.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:tz({},t,{}),y:tz({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};k4.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],i=n&&n.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var Lte=gr(),qte=x0().counter,Dte=Nm().attributes,nz=Pa().idRegex,Ete=bn(),S4={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[qte("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nz.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nz.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Dte({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Fm(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function Pte(e,r){var t=e.grid||{},n=Fm(r,t,"x"),a=Fm(r,t,"y");if(!e.grid&&!n&&!a)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(n),l=Array.isArray(a),s=o&&n!==t.xaxes&&l&&a!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=a.length),o&&(f=n.length));var v=Ete.newContainer(r,"grid");function h(k,M){return Lte.coerce(t,v,S4,k,M)}var d=h("rows",u),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!o&&!l){var p=h("pattern")==="independent";p&&(i=!0)}v._hasSubplotGrid=i;var y=h("roworder"),b=y==="top to bottom",C=i?.2:.1,x=i?.3:.1,_,A;s&&r._splomGridDflt&&(_=r._splomGridDflt.xside,A=r._splomGridDflt.yside),v._domains={x:az("x",h,C,_,m),y:az("y",h,x,A,d,b)}}function az(e,r,t,n,a,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var s=new Array(a),u=l[0],f=(l[1]-u)/(a-o),v=f*(1-o),h=0;h{"use strict";sz.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var cz=te((ave,fz)=>{"use strict";var uz=Ut(),zte=dt(),Nte=gr(),Fte=bn(),Ite=C4();fz.exports=function(e,r,t,n){var a="error_"+n.axis,i=Fte.newContainer(r,a),o=e[a]||{};function l(m,p){return Nte.coerce(o,i,Ite,m,p)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),v=!0;f!=="sqrt"&&(v=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),v||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),v||l("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=r["error_"+n.inherit];(d||{}).visible&&l(h,!(o.color||uz(o.thickness)||uz(o.width)))}(!n.inherit||!i[h])&&(l("color",t),l("thickness"),l("width",zte.traceIs(r,"gl3d")?0:4))}}});var L4=te((ive,hz)=>{"use strict";hz.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(u,f){var v=+a[f];return[v,v]};var i=r.arrayminus||[];return function(u,f){var v=+a[f],h=+i[f];return!isNaN(v)||!isNaN(h)?[h||0,v||0]:[NaN,NaN]}}else{var o=vz(t,r.value),l=vz(t,r.valueminus);return n||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function vz(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var gz=te((ove,pz)=>{"use strict";var q4=Ut(),Hte=dt(),D4=Dn(),Bte=gr(),Ote=L4();pz.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var mz=kt(),vf=Ut(),Ute=fn(),Yte=Qa();yz.exports=function(r,t,n,a){var i,o=n.xaxis,l=n.yaxis,s=a&&a.duration>0,u=r._context.staticPlot;t.each(function(f){var v=f[0].trace,h=v.error_x||{},d=v.error_y||{},m;v.ids&&(m=function(C){return C.id});var p=Yte.hasMarkers(v)&&v.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=mz.select(this).selectAll("g.errorbar").data(f,m);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(a.duration).style("opacity",1),Ute.setClipUrl(y,n.layerClipId,r),y.each(function(C){var x=mz.select(this),_=Gte(C,o,l);if(!(p&&!C.vis)){var A,k=x.select("path.yerror");if(d.visible&&vf(_.x)&&vf(_.yh)&&vf(_.ys)){var M=d.width;A="M"+(_.x-M)+","+_.yh+"h"+2*M+"m-"+M+",0V"+_.ys,_.noYS||(A+="m-"+M+",0h"+2*M),i=!k.size(),i?k=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(a.duration).ease(a.easing)),k.attr("d",A)}else k.remove();var E=x.select("path.xerror");if(h.visible&&vf(_.y)&&vf(_.xh)&&vf(_.xs)){var z=(h.copy_ystyle?d:h).width;A="M"+_.xh+","+(_.y-z)+"v"+2*z+"m0,-"+z+"H"+_.xs,_.noXS||(A+="m0,-"+z+"v"+2*z),i=!E.size(),i?E=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(E=E.transition().duration(a.duration).ease(a.easing)),E.attr("d",A)}else E.remove()}})}})};function Gte(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),vf(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),vf(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var wz=te((sve,xz)=>{"use strict";var Vte=kt(),_z=Pt();xz.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},i=n.error_x||{},o=Vte.select(this);o.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(_z.stroke,a.color),i.copy_ystyle&&(i=a),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(_z.stroke,i.color)})}});var Tz=te((uve,Az)=>{"use strict";var Eh=gr(),Mz=_o().overrideAll,Ph=C4(),Fc={error_x:Eh.extendFlat({},Ph),error_y:Eh.extendFlat({},Ph)};delete Fc.error_x.copy_zstyle;delete Fc.error_y.copy_zstyle;delete Fc.error_y.copy_ystyle;var Rh={error_x:Eh.extendFlat({},Ph),error_y:Eh.extendFlat({},Ph),error_z:Eh.extendFlat({},Ph)};delete Rh.error_x.copy_ystyle;delete Rh.error_y.copy_ystyle;delete Rh.error_z.copy_ystyle;delete Rh.error_z.copy_zstyle;Az.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Fc,bar:Fc,histogram:Fc,scatter3d:Mz(Rh,"calc","nested"),scattergl:Mz(Fc,"calc","nested")}},supplyDefaults:cz(),calc:gz(),makeComputeError:L4(),plot:bz(),style:wz(),hoverInfo:Wte};function Wte(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var Sz=te((fve,kz)=>{"use strict";kz.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Rz=te((cve,Pz)=>{"use strict";var hf=kt(),E4=Jl(),Hm=fa(),Cz=dt(),su=Dn(),Im=To(),Io=gr(),ql=Io.strTranslate,Ez=la().extendFlat,P4=Ku(),Ll=fn(),R4=Pt(),Zte=T1(),Xte=vi(),jte=es().flipScale,Jte=Ub(),$te=Yb(),Kte=gl(),z4=Ka(),Lz=z4.LINE_SPACING,qz=z4.FROM_TL,Dz=z4.FROM_BR,En=Sz().cn;function Qte(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+En.colorbar).data(ene(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(En.colorbar,!0),t.each(function(n){var a=hf.select(this);Io.ensureSingle(a,"rect",En.cbbg),Io.ensureSingle(a,"g",En.cbfills),Io.ensureSingle(a,"g",En.cblines),Io.ensureSingle(a,"g",En.cbaxis,function(o){o.classed(En.crisp,!0)}),Io.ensureSingle(a,"g",En.cbtitleunshift,function(o){o.append("g").classed(En.cbtitle,!0)}),Io.ensureSingle(a,"rect",En.cboutline);var i=rne(a,n,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&tne(a,n,e)}),t.exit().each(function(n){Hm.autoMargin(e,n._id)}).remove(),t.order()}function ene(e){var r=e._fullLayout,t=e.calcdata,n=[],a,i,o,l;function s(x){return Ez(x,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,a):(a._fillgradient=i.reversescale?jte(i.colorscale):i.colorscale,a._zrange=[i[l.min],i[l.max]])}for(var f=0;f1){var Q=Math.pow(10,Math.floor(Math.log(U)/Math.LN10));we*=Q*Io.roundUp(U/Q,[2,5,10]),(Math.abs(W.start)/W.size+1e-6)%1<2e-6&&(se.tick0=0)}se.dtick=we}se.domain=n?[Le+m/_.h,Le+ee-m/_.h]:[Le+d/_.w,Le+ee-d/_.w],se.setScale(),e.attr("transform",ql(Math.round(_.l),Math.round(_.t)));var $=e.select("."+En.cbtitleunshift).attr("transform",ql(-Math.round(_.l),-Math.round(_.t))),ke=se.ticklabelposition,Oe=se.title.font.size,Ie=e.select("."+En.cbaxis),ir,or=0,Ue=0;function tr(dr,Te){var Ye={propContainer:se,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+En.cbtitle)},Ar=dr.charAt(0)==="h"?dr.substr(1):"h"+dr;e.selectAll("."+Ar+",."+Ar+"-math-group").remove(),Zte.draw(t,dr,Ez(Ye,Te||{}))}function ur(){if(n&&ye||!n&&!ye){var dr,Te;E==="top"&&(dr=d+_.l+fe*p,Te=m+_.t+he*(1-Le-ee)+3+Oe*.75),E==="bottom"&&(dr=d+_.l+fe*p,Te=m+_.t+he*(1-Le)-3-Oe*.25),E==="right"&&(Te=m+_.t+he*y+3+Oe*.75,dr=d+_.l+fe*Le),tr(se._id+"title",{attributes:{x:dr,y:Te,"text-anchor":n?"start":"middle"}})}}function cr(){if(n&&!ye||!n&&ye){var dr=se.position||0,Te=se._offset+se._length/2,Ye,Ar;if(E==="right")Ar=Te,Ye=_.l+fe*dr+10+Oe*(se.showticklabels?1:.5);else if(Ye=Te,E==="bottom"&&(Ar=_.t+he*dr+10+(ke.indexOf("inside")===-1?se.tickfont.size:0)+(se.ticks!=="inside"&&r.ticklen||0)),E==="top"){var zr=M.text.split("
").length;Ar=_.t+he*dr+10-re-Lz*Oe*zr}tr((n?"h":"v")+se._id+"title",{avoid:{selection:hf.select(t).selectAll("g."+se._id+"tick"),side:E,offsetTop:n?0:_.t,offsetLeft:n?_.l:0,maxShift:n?x.width:x.height},attributes:{x:Ye,y:Ar,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Ke(){if(!n&&!ye||n&&ye){var dr=e.select("."+En.cbtitle),Te=dr.select("text"),Ye=[-s/2,s/2],Ar=dr.select(".h"+se._id+"title-math-group").node(),zr=15.6;Te.node()&&(zr=parseInt(Te.node().style.fontSize,10)*Lz);var Er;if(Ar?(Er=Ll.bBox(Ar),Ue=Er.width,or=Er.height,or>zr&&(Ye[1]-=(or-zr)/2)):Te.node()&&!Te.classed(En.jsPlaceholder)&&(Er=Ll.bBox(Te.node()),Ue=Er.width,or=Er.height),n){if(or){if(or+=5,E==="top")se.domain[1]-=or/_.h,Ye[1]*=-1;else{se.domain[0]+=or/_.h;var Ae=Xte.lineCount(Te);Ye[1]+=(1-Ae)*zr}dr.attr("transform",ql(Ye[0],Ye[1])),se.setScale()}}else Ue&&(E==="right"&&(se.domain[0]+=(Ue+Oe/2)/_.w),dr.attr("transform",ql(Ye[0],Ye[1])),se.setScale())}e.selectAll("."+En.cbfills+",."+En.cblines).attr("transform",n?ql(0,Math.round(_.h*(1-se.domain[1]))):ql(Math.round(_.w*se.domain[0]),0)),Ie.attr("transform",n?ql(0,Math.round(-_.t)):ql(Math.round(-_.l),0));var je=e.select("."+En.cbfills).selectAll("rect."+En.cbfill).attr("style","").data(X);je.enter().append("rect").classed(En.cbfill,!0).attr("style",""),je.exit().remove();var hr=z.map(se.c2p).map(Math.round).sort(function(Or,Cr){return Or-Cr});je.each(function(Or,Cr){var ar=[Cr===0?z[0]:(X[Cr]+X[Cr-1])/2,Cr===X.length-1?z[1]:(X[Cr]+X[Cr+1])/2].map(se.c2p).map(Math.round);n&&(ar[1]=Io.constrain(ar[1]+(ar[1]>ar[0])?1:-1,hr[0],hr[1]));var be=hf.select(this).attr(n?"x":"y",De).attr(n?"y":"x",hf.min(ar)).attr(n?"width":"height",Math.max(re,2)).attr(n?"height":"width",Math.max(hf.max(ar)-hf.min(ar),2));if(r._fillgradient)Ll.gradient(be,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Se=I(Or).replace("e-","");be.attr("fill",E4(Se).toHexString())}});var wr=e.select("."+En.cblines).selectAll("path."+En.cbline).data(k.color&&k.width?V:[]);wr.enter().append("path").classed(En.cbline,!0),wr.exit().remove(),wr.each(function(Or){var Cr=De,ar=Math.round(se.c2p(Or))+k.width/2%1;hf.select(this).attr("d","M"+(n?Cr+","+ar:ar+","+Cr)+(n?"h":"v")+re).call(Ll.lineGroupStyle,k.width,F(Or),k.dash)}),Ie.selectAll("g."+se._id+"tick,path").remove();var mr=De+re+(s||0)/2-(r.ticks==="outside"?1:0),Tr=su.calcTicks(se),Dr=su.getTickSigns(se)[2];return su.drawTicks(t,se,{vals:se.ticks==="inside"?su.clipEnds(se,Tr):Tr,layer:Ie,path:su.makeTickPath(se,mr,Dr),transFn:su.makeTransTickFn(se)}),su.drawLabels(t,se,{vals:Tr,layer:Ie,transFn:su.makeTransTickLabelFn(se),labelFns:su.makeLabelFns(se,mr)})}function pr(){var dr,Te=re+s/2;ke.indexOf("inside")===-1&&(dr=Ll.bBox(Ie.node()),Te+=n?dr.width:dr.height),ir=$.select("text");var Ye=0,Ar=n&&E==="top",zr=!n&&E==="right",Er=0;if(ir.node()&&!ir.classed(En.jsPlaceholder)){var Ae,je=$.select(".h"+se._id+"title-math-group").node();je&&(n&&ye||!n&&!ye)?(dr=Ll.bBox(je),Ye=dr.width,Ae=dr.height):(dr=Ll.bBox($.node()),Ye=dr.right-_.l-(n?De:rr),Ae=dr.bottom-_.t-(n?rr:De),!n&&E==="top"&&(Te+=dr.height,Er=dr.height)),zr&&(ir.attr("transform",ql(Ye/2+Oe/2,0)),Ye*=2),Te=Math.max(Te,n?Ye:Ae)}var hr=(n?d:m)*2+Te+u+s/2,wr=0;!n&&M.text&&h==="bottom"&&y<=0&&(wr=hr/2,hr+=wr,Er+=wr),x._hColorbarMoveTitle=wr,x._hColorbarMoveCBTitle=Er;var mr=u+s,Tr=(n?De:rr)-mr/2-(n?d:0),Dr=(n?rr:De)-(n?K:m+Er-wr);e.select("."+En.cbbg).attr("x",Tr).attr("y",Dr).attr(n?"width":"height",Math.max(hr-wr,2)).attr(n?"height":"width",Math.max(K+mr,2)).call(R4.fill,f).call(R4.stroke,r.bordercolor).style("stroke-width",u);var Or=zr?Math.max(Ye-10,0):0;e.selectAll("."+En.cboutline).attr("x",(n?De:rr+d)+Or).attr("y",(n?rr+m-K:De)+(Ar?or:0)).attr(n?"width":"height",Math.max(re,2)).attr(n?"height":"width",Math.max(K-(n?2*m+or:2*d+Or),2)).call(R4.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Cr=n?Ne*hr:0,ar=n?0:(1-Fe)*hr-Er;if(Cr=C?_.l-Cr:-Cr,ar=b?_.t-ar:-ar,e.attr("transform",ql(Cr,ar)),!n&&(u||E4(f).getAlpha()&&!E4.equals(x.paper_bgcolor,f))){var be=Ie.selectAll("text"),Se=be[0].length,$e=e.select("."+En.cbbg).node(),Ze=Ll.bBox($e),qr=Ll.getTranslate(e),Hr=2;be.each(function(jt,en){var Jt=0,aa=Se-1;if(en===Jt||en===aa){var rt=Ll.bBox(this),rn=Ll.getTranslate(this),St;if(en===aa){var dn=rt.right+rn.x,pn=Ze.right+qr.x+rr-u-Hr+p;St=pn-dn,St>0&&(St=0)}else if(en===Jt){var an=rt.left+rn.x,vn=Ze.left+qr.x+rr+u+Hr;St=vn-an,St<0&&(St=0)}St&&(Se<3?this.setAttribute("transform","translate("+St+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Pr={},lt=qz[v],xt=Dz[v],Nt=qz[h],Ht=Dz[h],An=hr-re;n?(i==="pixels"?(Pr.y=y,Pr.t=K*Nt,Pr.b=K*Ht):(Pr.t=Pr.b=0,Pr.yt=y+a*Nt,Pr.yb=y-a*Ht),l==="pixels"?(Pr.x=p,Pr.l=hr*lt,Pr.r=hr*xt):(Pr.l=An*lt,Pr.r=An*xt,Pr.xl=p-o*lt,Pr.xr=p+o*xt)):(i==="pixels"?(Pr.x=p,Pr.l=K*lt,Pr.r=K*xt):(Pr.l=Pr.r=0,Pr.xl=p+a*lt,Pr.xr=p-a*xt),l==="pixels"?(Pr.y=1-y,Pr.t=hr*Nt,Pr.b=hr*Ht):(Pr.t=An*Nt,Pr.b=An*Ht,Pr.yt=y-o*Nt,Pr.yb=y+o*Ht));var Tn=r.y<.5?"b":"t",cn=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Ft={r:x.width-Tr-Cr,l:Tr+Pr.r,b:x.height-Dr-ar,t:Dr+Pr.b};C&&b?Hm.autoMargin(t,r._id,Pr):C?t._fullLayout._reservedMargin[r._id][Tn]=Ft[Tn]:b||n?t._fullLayout._reservedMargin[r._id][cn]=Ft[cn]:t._fullLayout._reservedMargin[r._id][Tn]=Ft[Tn]}return Io.syncOrAsync([Hm.previousPromises,ur,Ke,cr,Hm.previousPromises,pr],t)}function tne(e,r,t){var n=r.orientation==="v",a=t._fullLayout,i=a._size,o,l,s;Im.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),P4(e)},moveFn:function(u,f){e.attr("transform",o+ql(u,f)),l=Im.align((n?r._uFrac:r._vFrac)+u/i.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Im.align((n?r._vFrac:1-r._uFrac)-f/i.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Im.getCursor(l,s,r.xanchor,r.yanchor);P4(e,v)},doneFn:function(){if(P4(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?Cz.call("_guiRestyle",t,u,r._traceIndex):Cz.call("_guiRelayout",t,u)}}})}function nne(e,r,t){var n=r._levels,a=[],i=[],o,l,s=n.end+n.size/100,u=n.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=n.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";zz.exports={moduleType:"component",name:"colorbar",attributes:Kd(),supplyDefaults:I2(),draw:Rz().draw,hasColorbar:S2()}});var Iz=te((hve,Fz)=>{"use strict";Fz.exports={moduleType:"component",name:"legend",layoutAttributes:R3(),supplyLayoutDefaults:F3(),draw:J3(),style:W3()}});var Bz=te((dve,Hz)=>{"use strict";Hz.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var Uz=te((pve,Oz)=>{"use strict";Oz.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var F4=te((gve,Wz)=>{"use strict";var ine=dt(),Vz=gr(),N4=Vz.extendFlat,Yz=Vz.extendDeep;function Gz(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function one(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}Wz.exports=function(r,t){var n,a=r.data,i=r.layout,o=Yz([],a),l=Yz({},i,Gz(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var u=Object.keys(l);for(n=0;n{"use strict";var lne=Hd().EventEmitter,sne=dt(),une=gr(),Zz=Sc(),fne=F4(),cne=Wg(),vne=Zg();function hne(e,r){var t=new lne,n=fne(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function i(){var l=Zz.getDelay(a._fullLayout);setTimeout(function(){var s=cne(a),u=document.createElement("canvas");u.id=une.randstr(),t=vne({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var o=Zz.getRedrawFunc(a);return sne.call("_doPlot",a,n.data,n.layout,n.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}Xz.exports=hne});var Kz=te((yve,$z)=>{"use strict";var Jz=Sc(),dne={getDelay:Jz.getDelay,getRedrawFunc:Jz.getRedrawFunc,clone:F4(),toSVG:Wg(),svgToImg:Zg(),toImage:jz(),downloadImage:db()};$z.exports=dne});var eN=te(uu=>{"use strict";uu.version=rd().version;Y_();Pw();var pne=dt(),zh=uu.register=pne.register,H4=aq(),Qz=Object.keys(H4);for(Bm=0;Bm{"use strict";rN.exports=eN()});var Nh=te((wve,iN)=>{"use strict";var gne=Vs().hovertemplateAttrs,mne=Vs().texttemplateAttrs,yne=G5(),ds=kc(),bne=bo(),nN=H0(),_ne=Kl().dash,Ic=la().extendFlat,xne=_o().overrideAll,Ho=ds.marker,aN=ds.line,wne=Ho.line,xve=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");iN.exports=xne({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:Ic({},ds.mode,{dflt:"markers"}),text:Ic({},ds.text,{}),texttemplate:mne({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:Ic({},ds.hovertext,{}),textfont:ds.textfont,textposition:ds.textposition,line:{color:aN.color,width:aN.width,dash:_ne},connectgaps:ds.connectgaps,marker:Ic({symbol:Ho.symbol,opacity:Ho.opacity,angle:Ho.angle,angleref:Ic({},Ho.angleref,{values:["previous","up","north"]}),standoff:Ho.standoff,size:Ho.size,sizeref:Ho.sizeref,sizemin:Ho.sizemin,sizemode:Ho.sizemode,colorbar:Ho.colorbar,line:Ic({width:wne.width},nN("marker.line")),gradient:Ho.gradient},nN("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:yne(),selected:ds.selected,unselected:ds.unselected,hoverinfo:Ic({},bne.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:gne()},"calc","nested")});var lN=te((Mve,oN)=>{"use strict";var Um=gr(),B4=Qa(),Mne=mb(),Ane=yb(),Tne=bb(),kne=_b(),Sne=Nh(),Cne=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");oN.exports=function(r,t,n,a){function i(d,m){return Um.coerce(r,t,Sne,d,m)}var o=i("locations"),l;if(o&&o.length){var s=i("geojson"),u;(typeof s=="string"&&s!==""||Um.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="country names"&&Um.warn(Cne),f==="geojson-id"&&i("featureidkey"),l=o.length}else{var v=i("lon")||[],h=i("lat")||[];l=Math.min(v.length,h.length)}if(!l){t.visible=!1;return}t._length=l,i("text"),i("hovertext"),i("hovertemplate"),i("mode"),B4.hasMarkers(t)&&Mne(r,t,n,a,i,{gradient:!0}),B4.hasLines(t)&&(Ane(r,t,n,a,i),i("connectgaps")),B4.hasText(t)&&(i("texttemplate"),Tne(r,t,a,i)),i("fill"),t.fill!=="none"&&kne(r,t,n,i),Um.coerceSelectionMarkerOpacity(t,i)}});var fN=te((Ave,uN)=>{"use strict";var sN=Dn();uN.exports=function(r,t,n){var a={},i=n[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return a.lonLabel=sN.tickText(o,o.c2l(l[0]),!0).text,a.latLabel=sN.tickText(o,o.c2l(l[1]),!0).text,a}});var pN=te((Tve,dN)=>{"use strict";var O4=Ut(),cN=Rn().BADNUM,Lne=Mb(),qne=gh(),Dne=em(),Ene=gr().isArrayOrTypedArray,vN=gr()._;function hN(e){return e&&typeof e=="string"}dN.exports=function(r,t){var n=Ene(t.locations),a=n?t.locations.length:t._length,i=new Array(a),o;t.geojson?o=function(h){return hN(h)||O4(h)}:o=hN;for(var l=0;l{"use strict";Ya.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Ya.axesNames=["lonaxis","lataxis"];Ya.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Ya.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Ya.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Ya.clipPad=.001;Ya.precision=.1;Ya.landColor="#F0DC82";Ya.waterColor="#3399FF";Ya.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Ya.sphereSVG={type:"Sphere"};Ya.fillLayers={ocean:1,land:1,lakes:1};Ya.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Ya.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Ya.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Ya.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var U4=te((Ym,gN)=>{(function(e,r){typeof Ym=="object"&&typeof gN!="undefined"?r(Ym):(e=e||self,r(e.topojson=e.topojson||{}))})(Ym,function(e){"use strict";function r(x){return x}function t(x){if(x==null)return r;var _,A,k=x.scale[0],M=x.scale[1],E=x.translate[0],z=x.translate[1];return function(F,I){I||(_=A=0);var W=2,B=F.length,X=new Array(B);for(X[0]=(_+=F[0])*k+E,X[1]=(A+=F[1])*M+z;WE&&(E=W[0]),W[1]z&&(z=W[1])}function I(W){switch(W.type){case"GeometryCollection":W.geometries.forEach(I);break;case"Point":F(W.coordinates);break;case"MultiPoint":W.coordinates.forEach(F);break}}x.arcs.forEach(function(W){for(var B=-1,X=W.length,V;++BE&&(E=V[0]),V[1]z&&(z=V[1])});for(A in x.objects)I(x.objects[A]);return[k,M,E,z]}function a(x,_){for(var A,k=x.length,M=k-_;M<--k;)A=x[M],x[M++]=x[k],x[k]=A}function i(x,_){return typeof _=="string"&&(_=x.objects[_]),_.type==="GeometryCollection"?{type:"FeatureCollection",features:_.geometries.map(function(A){return o(x,A)})}:o(x,_)}function o(x,_){var A=_.id,k=_.bbox,M=_.properties==null?{}:_.properties,E=l(x,_);return A==null&&k==null?{type:"Feature",properties:M,geometry:E}:k==null?{type:"Feature",id:A,properties:M,geometry:E}:{type:"Feature",id:A,bbox:k,properties:M,geometry:E}}function l(x,_){var A=t(x.transform),k=x.arcs;function M(B,X){X.length&&X.pop();for(var V=k[B<0?~B:B],re=0,ae=V.length;re1)k=v(x,_,A);else for(M=0,k=new Array(E=x.arcs.length);M1)for(var X=1,V=F(W[0]),re,ae;XV&&(ae=W[0],W[0]=W[X],W[X]=ae,V=re);return W}).filter(function(I){return I.length>0})}}function p(x,_){for(var A=0,k=x.length;A>>1;x[M]<_?A=M+1:k=M}return A}function y(x){var _={},A=x.map(function(){return[]});function k(K,ee){K.forEach(function(fe){fe<0&&(fe=~fe);var he=_[fe];he?he.push(ee):_[fe]=[ee]})}function M(K,ee){K.forEach(function(fe){k(fe,ee)})}function E(K,ee){K.type==="GeometryCollection"?K.geometries.forEach(function(fe){E(fe,ee)}):K.type in z&&z[K.type](K.arcs,ee)}var z={LineString:k,MultiLineString:M,Polygon:M,MultiPolygon:function(K,ee){K.forEach(function(fe){M(fe,ee)})}};x.forEach(E);for(var F in _)for(var I=_[F],W=I.length,B=0;B=2))throw new Error("n must be \u22652");I=x.bbox||n(x);var A=I[0],k=I[1],M=I[2],E=I[3],z;_={scale:[M-A?(M-A)/(z-1):1,E-k?(E-k)/(z-1):1],translate:[A,k]}}else I=x.bbox;var F=b(_),I,W,B=x.objects,X={};function V(K){return F(K)}function re(K){var ee;switch(K.type){case"GeometryCollection":ee={type:"GeometryCollection",geometries:K.geometries.map(re)};break;case"Point":ee={type:"Point",coordinates:V(K.coordinates)};break;case"MultiPoint":ee={type:"MultiPoint",coordinates:K.coordinates.map(V)};break;default:return K}return K.id!=null&&(ee.id=K.id),K.bbox!=null&&(ee.bbox=K.bbox),K.properties!=null&&(ee.properties=K.properties),ee}function ae(K){var ee=0,fe=1,he=K.length,De,Ne=new Array(he);for(Ne[0]=F(K[0],0);++ee{"use strict";var Y4=mN.exports={},Pne=Fh().locationmodeToLayer,Rne=U4().feature;Y4.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};Y4.getTopojsonPath=function(e,r){return e+=e.endsWith("/")?"":"/",`${e}${r}.json`};Y4.getTopojsonFeatures=function(e,r){var t=Pne[e.locationmode],n=r.objects[t];return Rne(r,n).features}});var yN=te(Ih=>{"use strict";var zne=Rn().BADNUM;Ih.calcTraceToLineCoords=function(e){for(var r=e[0].trace,t=r.connectgaps,n=[],a=[],i=0;i0&&(n.push(a),a=[])}return a.length>0&&n.push(a),n};Ih.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};Ih.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var r=new Array(e.length),t=0;t{bN.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var Zm=te(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});var Hi=63710088e-1,V4={centimeters:Hi*100,centimetres:Hi*100,degrees:360/(2*Math.PI),feet:Hi*3.28084,inches:Hi*39.37,kilometers:Hi/1e3,kilometres:Hi/1e3,meters:Hi,metres:Hi,miles:Hi/1609.344,millimeters:Hi*1e3,millimetres:Hi*1e3,nauticalmiles:Hi/1852,radians:1,yards:Hi*1.0936},G4={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function df(e,r,t={}){let n={type:"Feature"};return(t.id===0||t.id)&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=r||{},n.geometry=e,n}function Nne(e,r,t={}){switch(e){case"Point":return W4(r).geometry;case"LineString":return X4(r).geometry;case"Polygon":return Z4(r).geometry;case"MultiPoint":return wN(r).geometry;case"MultiLineString":return xN(r).geometry;case"MultiPolygon":return MN(r).geometry;default:throw new Error(e+" is invalid")}}function W4(e,r,t={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Vm(e[0])||!Vm(e[1]))throw new Error("coordinates must contain numbers");return df({type:"Point",coordinates:e},r,t)}function Fne(e,r,t={}){return Wm(e.map(n=>W4(n,r)),t)}function Z4(e,r,t={}){for(let a of e){if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(a[a.length-1].length!==a[0].length)throw new Error("First and last Position are not equivalent.");for(let i=0;iZ4(n,r)),t)}function X4(e,r,t={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return df({type:"LineString",coordinates:e},r,t)}function Hne(e,r,t={}){return Wm(e.map(n=>X4(n,r)),t)}function Wm(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}function xN(e,r,t={}){return df({type:"MultiLineString",coordinates:e},r,t)}function wN(e,r,t={}){return df({type:"MultiPoint",coordinates:e},r,t)}function MN(e,r,t={}){return df({type:"MultiPolygon",coordinates:e},r,t)}function Bne(e,r,t={}){return df({type:"GeometryCollection",geometries:e},r,t)}function One(e,r=0){if(r&&!(r>=0))throw new Error("precision must be a positive number");let t=Math.pow(10,r||0);return Math.round(e*t)/t}function AN(e,r="kilometers"){let t=V4[r];if(!t)throw new Error(r+" units is invalid");return e*t}function j4(e,r="kilometers"){let t=V4[r];if(!t)throw new Error(r+" units is invalid");return e/t}function Une(e,r){return TN(j4(e,r))}function Yne(e){let r=e%360;return r<0&&(r+=360),r}function Gne(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function TN(e){return e%(2*Math.PI)*180/Math.PI}function Vne(e){return e%360*Math.PI/180}function Wne(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return AN(j4(e,r),t)}function Zne(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=G4[r];if(!n)throw new Error("invalid original units");let a=G4[t];if(!a)throw new Error("invalid final units");return e/n*a}function Vm(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Xne(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function jne(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(r=>{if(!Vm(r))throw new Error("bbox must only contain numbers")})}function Jne(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}hn.areaFactors=G4;hn.azimuthToBearing=Gne;hn.bearingToAzimuth=Yne;hn.convertArea=Zne;hn.convertLength=Wne;hn.degreesToRadians=Vne;hn.earthRadius=Hi;hn.factors=V4;hn.feature=df;hn.featureCollection=Wm;hn.geometry=Nne;hn.geometryCollection=Bne;hn.isNumber=Vm;hn.isObject=Xne;hn.lengthToDegrees=Une;hn.lengthToRadians=j4;hn.lineString=X4;hn.lineStrings=Hne;hn.multiLineString=xN;hn.multiPoint=wN;hn.multiPolygon=MN;hn.point=W4;hn.points=Fne;hn.polygon=Z4;hn.polygons=Ine;hn.radiansToDegrees=TN;hn.radiansToLength=AN;hn.round=One;hn.validateBBox=jne;hn.validateId=Jne});var jm=te(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var oi=Zm();function Hh(e,r,t){if(e!==null)for(var n,a,i,o,l,s,u,f=0,v=0,h,d=e.type,m=d==="FeatureCollection",p=d==="Feature",y=m?e.features.length:1,b=0;bs||m>u||p>f){l=v,s=n,u=m,f=p,i=0;return}var y=oi.lineString.call(void 0,[l,v],t.properties);if(r(y,n,a,p,i)===!1)return!1;i++,l=v})===!1)return!1}}})}function nae(e,r,t){var n=t,a=!1;return CN(e,function(i,o,l,s,u){a===!1&&t===void 0?n=i:n=r(n,i,o,l,s,u),a=!0}),n}function LN(e,r){if(!e)throw new Error("geojson is required");Xm(e,function(t,n,a){if(t.geometry!==null){var i=t.geometry.type,o=t.geometry.coordinates;switch(i){case"LineString":if(r(t,n,a,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var qN=Zm(),lae=jm();function PN(e){return lae.geomReduce.call(void 0,e,(r,t)=>r+sae(t),0)}function sae(e){let r=0,t;switch(e.type){case"Polygon":return DN(e.coordinates);case"MultiPolygon":for(t=0;t0){r+=Math.abs(EN(e[0]));for(let t=1;t=r?(n+2)%r:n+2],l=a[0]*$4,s=i[1]*$4,u=o[0]*$4;t+=(u-l)*Math.sin(s),n++}return t*uae}var fae=PN;Jm.area=PN;Jm.default=fae});var NN=te($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});var cae=Zm(),vae=jm();function zN(e,r={}){let t=0,n=0,a=0;return vae.coordEach.call(void 0,e,function(i){t+=i[0],n+=i[1],a++},!0),cae.point.call(void 0,[t/a,n/a],r.properties)}var hae=zN;$m.centroid=zN;$m.default=hae});var IN=te(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});var dae=jm();function FN(e,r={}){if(e.bbox!=null&&r.recompute!==!0)return e.bbox;let t=[1/0,1/0,-1/0,-1/0];return dae.coordEach.call(void 0,e,n=>{t[0]>n[0]&&(t[0]=n[0]),t[1]>n[1]&&(t[1]=n[1]),t[2]{"use strict";var gae=kt(),ON=_N(),{area:mae}=RN(),{centroid:yae}=NN(),{bbox:bae}=IN(),HN=Cd(),Dv=Ru(),_ae=Gs(),xae=Kv(),Qm=bg(),BN=Object.keys(ON),wae={"ISO-3":HN,"USA-states":HN,"country names":Mae};function Mae(e){for(var r=0;r0&&f[v+1][0]<0)return v;return null}switch(n==="RUS"||n==="FJI"?i=function(f){var v;if(u(f)===null)v=f;else for(v=new Array(f.length),s=0;sv?h[d++]=[f[s][0]+360,f[s][1]]:s===v?(h[d++]=f[s],h[d++]=[f[s][0],-90]):h[d++]=f[s];var m=Qm.tester(h);m.pts.pop(),a.push(m)}:i=function(f){a.push(Qm.tester(f))},r.type){case"MultiPolygon":for(o=0;o0?m.properties.ct=Sae(m):m.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=m,a.push(m)}else Dv.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[v]}switch(t.type){case"FeatureCollection":var s=t.features;for(i=0;ia&&(a=l,t=o)}else t=r;return yae(t).geometry.coordinates}function Cae(e){var r=window.PlotlyGeoAssets||{},t=[];function n(s){return new Promise(function(u,f){gae.json(s,function(v,h){if(v){delete r[s];var d=v.status===404?'GeoJSON at URL "'+s+'" does not exist.':"Unexpected error while fetching from "+s;return f(new Error(d))}return r[s]=h,u(h)})})}function a(s){return new Promise(function(u,f){var v=0,h=setInterval(function(){if(r[s]&&r[s]!=="pending")return clearInterval(h),u(r[s]);if(v>100)return clearInterval(h),f("Unexpected error while fetching from "+s);v++},50)})}for(var i=0;i{"use strict";var qae=kt(),Dae=fn(),GN=Pt(),VN=xh(),Eae=VN.stylePoints,Pae=VN.styleText;WN.exports=function(r,t){t&&Rae(r,t)};function Rae(e,r){var t=r[0].trace,n=r[0].node3;n.style("opacity",r[0].trace.opacity),Eae(n,t,e),Pae(n,t,e),n.selectAll("path.js-line").style("fill","none").each(function(a){var i=qae.select(this),o=a.trace,l=o.line||{};i.call(GN.stroke,l.color).call(Dae.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(GN.fill,o.fillcolor)})}});var t_=te((Fve,jN)=>{"use strict";var ZN=kt(),ty=gr(),zae=Gm().getTopojsonFeatures,Q4=yN(),ry=ey(),XN=Ju().findExtremes,r_=Rn().BADNUM,Nae=rm().calcMarkerSize,e_=Qa(),Fae=K4();function Iae(e,r,t){var n=r.layers.frontplot.select(".scatterlayer"),a=ty.makeTraceGroups(n,t,"trace scattergeo");function i(o,l){o.lonlat[0]===r_&&ZN.select(l).remove()}a.selectAll("*").remove(),a.each(function(o){var l=ZN.select(this),s=o[0].trace;if(e_.hasLines(s)||s.fill!=="none"){var u=Q4.calcTraceToLineCoords(o),f=s.fill!=="none"?Q4.makePolygon(u):Q4.makeLine(u);l.selectAll("path.js-line").data([{geojson:f,trace:s}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}e_.hasMarkers(s)&&l.selectAll("path.point").data(ty.identity).enter().append("path").classed("point",!0).each(function(v){i(v,this)}),e_.hasText(s)&&l.selectAll("g").data(ty.identity).enter().append("g").append("text").each(function(v){i(v,this)}),Fae(e,o)})}function Hae(e,r){var t=e[0].trace,n=r[t.geo],a=n._subplot,i=t._length,o,l;if(ty.isArrayOrTypedArray(t.locations)){var s=t.locationmode,u=s==="geojson-id"?ry.extractTraceFeature(e):zae(t,a.topojson);for(o=0;o{"use strict";var Bae=ss(),Oae=Rn().BADNUM,Uae=Ib(),Yae=gr().fillText,Gae=Nh();JN.exports=function(r,t,n){var a=r.cd,i=a[0].trace,o=r.xa,l=r.ya,s=r.subplot,u=s.projection.isLonLatOverEdges,f=s.project;function v(C){var x=C.lonlat;if(x[0]===Oae||u(x))return 1/0;var _=f(x),A=f([t,n]),k=Math.abs(_[0]-A[0]),M=Math.abs(_[1]-A[1]),E=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(k*k+M*M)-E,1-3/E)}if(Bae.getClosest(a,v,r),r.index!==!1){var h=a[r.index],d=h.lonlat,m=[o.c2p(d),l.c2p(d)],p=h.mrc||1;r.x0=m[0]-p,r.x1=m[0]+p,r.y0=m[1]-p,r.y1=m[1]+p,r.loc=h.loc,r.lon=d[0],r.lat=d[1];var y={};y[i.geo]={_subplot:s};var b=i._module.formatLabels(h,i,y);return r.lonLabel=b.lonLabel,r.latLabel=b.latLabel,r.color=Uae(i,h),r.extraText=Vae(i,h,r,a[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function Vae(e,r,t,n){if(e.hovertemplate)return;var a=r.hi||e.hoverinfo,i=a==="all"?Gae.hoverinfo.flags:a.split("+"),o=i.indexOf("location")!==-1&&Array.isArray(e.locations),l=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=i.indexOf("text")!==-1,f=[];function v(h){return h+"\xB0"}return o?f.push(r.loc):l&&s?f.push("("+v(t.latLabel)+", "+v(t.lonLabel)+")"):l?f.push(n.lon+v(t.lonLabel)):s&&f.push(n.lat+v(t.latLabel)),u&&Yae(r,e,f),f.join("
")}});var QN=te((Hve,KN)=>{"use strict";KN.exports=function(r,t,n,a,i){r.lon=t.lon,r.lat=t.lat,r.location=t.loc?t.loc:null;var o=a[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r}});var tF=te((Bve,rF)=>{"use strict";var eF=Qa(),Wae=Rn().BADNUM;rF.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l=n[0].trace,s,u,f,v,h,d=!eF.hasMarkers(l)&&!eF.hasText(l);if(d)return[];if(t===!1)for(h=0;h{(function(e,r){r(typeof ny=="object"&&typeof nF!="undefined"?ny:e.d3=e.d3||{})})(ny,function(e){"use strict";function r(se,ye){return seye?1:se>=ye?0:NaN}function t(se){return se.length===1&&(se=n(se)),{left:function(ye,we,pe,U){for(pe==null&&(pe=0),U==null&&(U=ye.length);pe>>1;se(ye[Q],we)<0?pe=Q+1:U=Q}return pe},right:function(ye,we,pe,U){for(pe==null&&(pe=0),U==null&&(U=ye.length);pe>>1;se(ye[Q],we)>0?U=Q:pe=Q+1}return pe}}}function n(se){return function(ye,we){return r(se(ye),we)}}var a=t(r),i=a.right,o=a.left;function l(se,ye){ye==null&&(ye=s);for(var we=0,pe=se.length-1,U=se[0],Q=new Array(pe<0?0:pe);wese?1:ye>=se?0:NaN}function v(se){return se===null?NaN:+se}function h(se,ye){var we=se.length,pe=0,U=-1,Q=0,$,ke,Oe=0;if(ye==null)for(;++U1)return Oe/(pe-1)}function d(se,ye){var we=h(se,ye);return we&&Math.sqrt(we)}function m(se,ye){var we=se.length,pe=-1,U,Q,$;if(ye==null){for(;++pe=U)for(Q=$=U;++peU&&(Q=U),$=U)for(Q=$=U;++peU&&(Q=U),$0)return[se];if((pe=ye0)for(se=Math.ceil(se/ke),ye=Math.floor(ye/ke),$=new Array(Q=Math.ceil(ye-se+1));++U=0?(Q>=A?10:Q>=k?5:Q>=M?2:1)*Math.pow(10,U):-Math.pow(10,-U)/(Q>=A?10:Q>=k?5:Q>=M?2:1)}function F(se,ye,we){var pe=Math.abs(ye-se)/Math.max(0,we),U=Math.pow(10,Math.floor(Math.log(pe)/Math.LN10)),Q=pe/U;return Q>=A?U*=10:Q>=k?U*=5:Q>=M&&(U*=2),yeor;)Ue.pop(),--tr;var ur=new Array(tr+1),cr;for(Q=0;Q<=tr;++Q)cr=ur[Q]=[],cr.x0=Q>0?Ue[Q-1]:ir,cr.x1=Q=1)return+we(se[pe-1],pe-1,se);var pe,U=(pe-1)*ye,Q=Math.floor(U),$=+we(se[Q],Q,se),ke=+we(se[Q+1],Q+1,se);return $+(ke-$)*(U-Q)}}function X(se,ye,we){return se=b.call(se,v).sort(r),Math.ceil((we-ye)/(2*(B(se,.75)-B(se,.25))*Math.pow(se.length,-1/3)))}function V(se,ye,we){return Math.ceil((we-ye)/(3.5*d(se)*Math.pow(se.length,-1/3)))}function re(se,ye){var we=se.length,pe=-1,U,Q;if(ye==null){for(;++pe=U)for(Q=U;++peQ&&(Q=U)}else for(;++pe=U)for(Q=U;++peQ&&(Q=U);return Q}function ae(se,ye){var we=se.length,pe=we,U=-1,Q,$=0;if(ye==null)for(;++U=0;)for($=se[ye],we=$.length;--we>=0;)Q[--U]=$[we];return Q}function fe(se,ye){var we=se.length,pe=-1,U,Q;if(ye==null){for(;++pe=U)for(Q=U;++peU&&(Q=U)}else for(;++pe=U)for(Q=U;++peU&&(Q=U);return Q}function he(se,ye){for(var we=ye.length,pe=new Array(we);we--;)pe[we]=se[ye[we]];return pe}function De(se,ye){if(we=se.length){var we,pe=0,U=0,Q,$=se[U];for(ye==null&&(ye=r);++pe{(function(e,r){typeof ay=="object"&&typeof aF!="undefined"?r(ay,n_()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(ay,function(e,r){"use strict";function t(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(H){i(a,H,this.t),i(this,a.s,this.s),this.s?this.t+=a.t:this.s=a.t},valueOf:function(){return this.s}};var a=new n;function i(H,J,ce){var oe=H.s=J+ce,Me=oe-J,Be=oe-Me;H.t=J-Be+(ce-Me)}var o=1e-6,l=1e-12,s=Math.PI,u=s/2,f=s/4,v=s*2,h=180/s,d=s/180,m=Math.abs,p=Math.atan,y=Math.atan2,b=Math.cos,C=Math.ceil,x=Math.exp,_=Math.log,A=Math.pow,k=Math.sin,M=Math.sign||function(H){return H>0?1:H<0?-1:0},E=Math.sqrt,z=Math.tan;function F(H){return H>1?0:H<-1?s:Math.acos(H)}function I(H){return H>1?u:H<-1?-u:Math.asin(H)}function W(H){return(H=k(H/2))*H}function B(){}function X(H,J){H&&re.hasOwnProperty(H.type)&&re[H.type](H,J)}var V={Feature:function(H,J){X(H.geometry,J)},FeatureCollection:function(H,J){for(var ce=H.features,oe=-1,Me=ce.length;++oe=0?1:-1,Me=oe*ce,Be=b(J),Je=k(J),nr=Le*Je,lr=Xe*Be+nr*b(Me),yr=nr*oe*k(Me);fe.add(y(yr,lr)),Fe=H,Xe=Be,Le=Je}function U(H){return he.reset(),ee(H,rr),he*2}function Q(H){return[y(H[1],H[0]),I(H[2])]}function $(H){var J=H[0],ce=H[1],oe=b(ce);return[oe*b(J),oe*k(J),k(ce)]}function ke(H,J){return H[0]*J[0]+H[1]*J[1]+H[2]*J[2]}function Oe(H,J){return[H[1]*J[2]-H[2]*J[1],H[2]*J[0]-H[0]*J[2],H[0]*J[1]-H[1]*J[0]]}function Ie(H,J){H[0]+=J[0],H[1]+=J[1],H[2]+=J[2]}function ir(H,J){return[H[0]*J,H[1]*J,H[2]*J]}function or(H){var J=E(H[0]*H[0]+H[1]*H[1]+H[2]*H[2]);H[0]/=J,H[1]/=J,H[2]/=J}var Ue,tr,ur,cr,Ke,pr,dr,Te,Ye=t(),Ar,zr,Er={point:Ae,lineStart:hr,lineEnd:wr,polygonStart:function(){Er.point=mr,Er.lineStart=Tr,Er.lineEnd=Dr,Ye.reset(),rr.polygonStart()},polygonEnd:function(){rr.polygonEnd(),Er.point=Ae,Er.lineStart=hr,Er.lineEnd=wr,fe<0?(Ue=-(ur=180),tr=-(cr=90)):Ye>o?cr=90:Ye<-o&&(tr=-90),zr[0]=Ue,zr[1]=ur},sphere:function(){Ue=-(ur=180),tr=-(cr=90)}};function Ae(H,J){Ar.push(zr=[Ue=H,ur=H]),Jcr&&(cr=J)}function je(H,J){var ce=$([H*d,J*d]);if(Te){var oe=Oe(Te,ce),Me=[oe[1],-oe[0],0],Be=Oe(Me,oe);or(Be),Be=Q(Be);var Je=H-Ke,nr=Je>0?1:-1,lr=Be[0]*h*nr,yr,Qe=m(Je)>180;Qe^(nr*Kecr&&(cr=yr)):(lr=(lr+360)%360-180,Qe^(nr*Kecr&&(cr=J))),Qe?HOr(Ue,ur)&&(ur=H):Or(H,ur)>Or(Ue,ur)&&(Ue=H):ur>=Ue?(Hur&&(ur=H)):H>Ke?Or(Ue,H)>Or(Ue,ur)&&(ur=H):Or(H,ur)>Or(Ue,ur)&&(Ue=H)}else Ar.push(zr=[Ue=H,ur=H]);Jcr&&(cr=J),Te=ce,Ke=H}function hr(){Er.point=je}function wr(){zr[0]=Ue,zr[1]=ur,Er.point=Ae,Te=null}function mr(H,J){if(Te){var ce=H-Ke;Ye.add(m(ce)>180?ce+(ce>0?360:-360):ce)}else pr=H,dr=J;rr.point(H,J),je(H,J)}function Tr(){rr.lineStart()}function Dr(){mr(pr,dr),rr.lineEnd(),m(Ye)>o&&(Ue=-(ur=180)),zr[0]=Ue,zr[1]=ur,Te=null}function Or(H,J){return(J-=H)<0?J+360:J}function Cr(H,J){return H[0]-J[0]}function ar(H,J){return H[0]<=H[1]?H[0]<=J&&J<=H[1]:JOr(oe[0],oe[1])&&(oe[1]=Me[1]),Or(Me[0],oe[1])>Or(oe[0],oe[1])&&(oe[0]=Me[0])):Be.push(oe=Me);for(Je=-1/0,ce=Be.length-1,J=0,oe=Be[ce];J<=ce;oe=Me,++J)Me=Be[J],(nr=Or(oe[1],Me[0]))>Je&&(Je=nr,Ue=Me[0],ur=oe[1])}return Ar=zr=null,Ue===1/0||tr===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ue,tr],[ur,cr]]}var Se,$e,Ze,qr,Hr,Pr,lt,xt,Nt,Ht,An,Tn,cn,Ft,jt,en,Jt={sphere:B,point:aa,lineStart:rn,lineEnd:pn,polygonStart:function(){Jt.lineStart=an,Jt.lineEnd=vn},polygonEnd:function(){Jt.lineStart=rn,Jt.lineEnd=pn}};function aa(H,J){H*=d,J*=d;var ce=b(J);rt(ce*b(H),ce*k(H),k(J))}function rt(H,J,ce){++Se,Ze+=(H-Ze)/Se,qr+=(J-qr)/Se,Hr+=(ce-Hr)/Se}function rn(){Jt.point=St}function St(H,J){H*=d,J*=d;var ce=b(J);Ft=ce*b(H),jt=ce*k(H),en=k(J),Jt.point=dn,rt(Ft,jt,en)}function dn(H,J){H*=d,J*=d;var ce=b(J),oe=ce*b(H),Me=ce*k(H),Be=k(J),Je=y(E((Je=jt*Be-en*Me)*Je+(Je=en*oe-Ft*Be)*Je+(Je=Ft*Me-jt*oe)*Je),Ft*oe+jt*Me+en*Be);$e+=Je,Pr+=Je*(Ft+(Ft=oe)),lt+=Je*(jt+(jt=Me)),xt+=Je*(en+(en=Be)),rt(Ft,jt,en)}function pn(){Jt.point=aa}function an(){Jt.point=da}function vn(){qn(Tn,cn),Jt.point=aa}function da(H,J){Tn=H,cn=J,H*=d,J*=d,Jt.point=qn;var ce=b(J);Ft=ce*b(H),jt=ce*k(H),en=k(J),rt(Ft,jt,en)}function qn(H,J){H*=d,J*=d;var ce=b(J),oe=ce*b(H),Me=ce*k(H),Be=k(J),Je=jt*Be-en*Me,nr=en*oe-Ft*Be,lr=Ft*Me-jt*oe,yr=E(Je*Je+nr*nr+lr*lr),Qe=I(yr),vr=yr&&-Qe/yr;Nt+=vr*Je,Ht+=vr*nr,An+=vr*lr,$e+=Qe,Pr+=Qe*(Ft+(Ft=oe)),lt+=Qe*(jt+(jt=Me)),xt+=Qe*(en+(en=Be)),rt(Ft,jt,en)}function Na(H){Se=$e=Ze=qr=Hr=Pr=lt=xt=Nt=Ht=An=0,ee(H,Jt);var J=Nt,ce=Ht,oe=An,Me=J*J+ce*ce+oe*oe;return Mes?H+Math.round(-H/v)*v:H,J]}Bt.invert=Bt;function Bn(H,J,ce){return(H%=v)?J||ce?wn(io(H),mi(J,ce)):io(H):J||ce?mi(J,ce):Bt}function gi(H){return function(J,ce){return J+=H,[J>s?J-v:J<-s?J+v:J,ce]}}function io(H){var J=gi(H);return J.invert=gi(-H),J}function mi(H,J){var ce=b(H),oe=k(H),Me=b(J),Be=k(J);function Je(nr,lr){var yr=b(lr),Qe=b(nr)*yr,vr=k(nr)*yr,sr=k(lr),xr=sr*ce+Qe*oe;return[y(vr*Me-xr*Be,Qe*ce-sr*oe),I(xr*Me+vr*Be)]}return Je.invert=function(nr,lr){var yr=b(lr),Qe=b(nr)*yr,vr=k(nr)*yr,sr=k(lr),xr=sr*Me-vr*Be;return[y(vr*Me+sr*Be,Qe*ce+xr*oe),I(xr*ce-Qe*oe)]},Je}function ms(H){H=Bn(H[0]*d,H[1]*d,H.length>2?H[2]*d:0);function J(ce){return ce=H(ce[0]*d,ce[1]*d),ce[0]*=h,ce[1]*=h,ce}return J.invert=function(ce){return ce=H.invert(ce[0]*d,ce[1]*d),ce[0]*=h,ce[1]*=h,ce},J}function El(H,J,ce,oe,Me,Be){if(ce){var Je=b(J),nr=k(J),lr=oe*ce;Me==null?(Me=J+oe*v,Be=J-lr/2):(Me=Oo(Je,Me),Be=Oo(Je,Be),(oe>0?MeBe)&&(Me+=oe*v));for(var yr,Qe=Me;oe>0?Qe>Be:Qe1&&H.push(H.pop().concat(H.shift()))},result:function(){var ce=H;return H=[],J=null,ce}}}function On(H,J){return m(H[0]-J[0])=0;--nr)Me.point((vr=Qe[nr])[0],vr[1]);else oe(sr.x,sr.p.x,-1,Me);sr=sr.p}sr=sr.o,Qe=sr.z,xr=!xr}while(!sr.v);Me.lineEnd()}}}function bi(H){if(J=H.length){for(var J,ce=0,oe=H[0],Me;++ce=0?1:-1,Zt=tn*Vt,gn=Zt>s,Lt=et*it;if(Kr.add(y(Lt*tn*k(Zt),jr*pt+Lt*b(Zt))),Je+=gn?Vt+tn*v:Vt,gn^xr>=ce^Lr>=ce){var ia=Oe($(sr),$(nt));or(ia);var Nn=Oe(Be,ia);or(Nn);var mn=(gn^Vt>=0?-1:1)*I(Nn[2]);(oe>mn||oe===mn&&(ia[0]||ia[1]))&&(nr+=gn^Vt>=0?1:-1)}}return(Je<-o||Je0){for(lr||(Me.polygonStart(),lr=!0),Me.lineStart(),pt=0;pt1&&Br&2&&it.push(it.pop().concat(it.shift())),Qe.push(it.filter(Wn))}}return sr}}function Wn(H){return H.length>1}function on(H,J){return((H=H.x)[0]<0?H[1]-u-o:u-H[1])-((J=J.x)[0]<0?J[1]-u-o:u-J[1])}var Pn=Ur(function(){return!0},At,Go,[-s,-u]);function At(H){var J=NaN,ce=NaN,oe=NaN,Me;return{lineStart:function(){H.lineStart(),Me=1},point:function(Be,Je){var nr=Be>0?s:-s,lr=m(Be-J);m(lr-s)0?u:-u),H.point(oe,ce),H.lineEnd(),H.lineStart(),H.point(nr,ce),H.point(Be,ce),Me=0):oe!==nr&&lr>=s&&(m(J-oe)o?p((k(J)*(Be=b(oe))*k(ce)-k(oe)*(Me=b(J))*k(H))/(Me*Be*Je)):(J+oe)/2}function Go(H,J,ce,oe){var Me;if(H==null)Me=ce*u,oe.point(-s,Me),oe.point(0,Me),oe.point(s,Me),oe.point(s,0),oe.point(s,-Me),oe.point(0,-Me),oe.point(-s,-Me),oe.point(-s,0),oe.point(-s,Me);else if(m(H[0]-J[0])>o){var Be=H[0]0,Me=m(J)>o;function Be(Qe,vr,sr,xr){El(xr,H,ce,sr,Qe,vr)}function Je(Qe,vr){return b(Qe)*b(vr)>J}function nr(Qe){var vr,sr,xr,Sr,et;return{lineStart:function(){Sr=xr=!1,et=1},point:function(jr,tt){var nt=[jr,tt],Lr,Br=Je(jr,tt),it=oe?Br?0:yr(jr,tt):Br?yr(jr+(jr<0?s:-s),tt):0;if(!vr&&(Sr=xr=Br)&&Qe.lineStart(),Br!==xr&&(Lr=lr(vr,nt),(!Lr||On(vr,Lr)||On(nt,Lr))&&(nt[2]=1)),Br!==xr)et=0,Br?(Qe.lineStart(),Lr=lr(nt,vr),Qe.point(Lr[0],Lr[1])):(Lr=lr(vr,nt),Qe.point(Lr[0],Lr[1],2),Qe.lineEnd()),vr=Lr;else if(Me&&vr&&oe^Br){var pt;!(it&sr)&&(pt=lr(nt,vr,!0))&&(et=0,oe?(Qe.lineStart(),Qe.point(pt[0][0],pt[0][1]),Qe.point(pt[1][0],pt[1][1]),Qe.lineEnd()):(Qe.point(pt[1][0],pt[1][1]),Qe.lineEnd(),Qe.lineStart(),Qe.point(pt[0][0],pt[0][1],3)))}Br&&(!vr||!On(vr,nt))&&Qe.point(nt[0],nt[1]),vr=nt,xr=Br,sr=it},lineEnd:function(){xr&&Qe.lineEnd(),vr=null},clean:function(){return et|(Sr&&xr)<<1}}}function lr(Qe,vr,sr){var xr=$(Qe),Sr=$(vr),et=[1,0,0],jr=Oe(xr,Sr),tt=ke(jr,jr),nt=jr[0],Lr=tt-nt*nt;if(!Lr)return!sr&&Qe;var Br=J*tt/Lr,it=-J*nt/Lr,pt=Oe(et,jr),Vt=ir(et,Br),tn=ir(jr,it);Ie(Vt,tn);var Zt=pt,gn=ke(Vt,Zt),Lt=ke(Zt,Zt),ia=gn*gn-Lt*(ke(Vt,Vt)-1);if(!(ia<0)){var Nn=E(ia),mn=ir(Zt,(-gn-Nn)/Lt);if(Ie(mn,Vt),mn=Q(mn),!sr)return mn;var Gr=Qe[0],Wt=vr[0],Un=Qe[1],ga=vr[1],Xa;Wt0^mn[1]<(m(mn[0]-Gr)s^(Gr<=mn[0]&&mn[0]<=Wt)){var ui=ir(Zt,(-gn+Nn)/Lt);return Ie(ui,Vt),[mn,Q(ui)]}}}function yr(Qe,vr){var sr=oe?H:s-H,xr=0;return Qe<-sr?xr|=1:Qe>sr&&(xr|=2),vr<-sr?xr|=4:vr>sr&&(xr|=8),xr}return Ur(Je,nr,Be,oe?[0,-H]:[-s,H-s])}function vu(H,J,ce,oe,Me,Be){var Je=H[0],nr=H[1],lr=J[0],yr=J[1],Qe=0,vr=1,sr=lr-Je,xr=yr-nr,Sr;if(Sr=ce-Je,!(!sr&&Sr>0)){if(Sr/=sr,sr<0){if(Sr0){if(Sr>vr)return;Sr>Qe&&(Qe=Sr)}if(Sr=Me-Je,!(!sr&&Sr<0)){if(Sr/=sr,sr<0){if(Sr>vr)return;Sr>Qe&&(Qe=Sr)}else if(sr>0){if(Sr0)){if(Sr/=xr,xr<0){if(Sr0){if(Sr>vr)return;Sr>Qe&&(Qe=Sr)}if(Sr=Be-nr,!(!xr&&Sr<0)){if(Sr/=xr,xr<0){if(Sr>vr)return;Sr>Qe&&(Qe=Sr)}else if(xr>0){if(Sr0&&(H[0]=Je+Qe*sr,H[1]=nr+Qe*xr),vr<1&&(J[0]=Je+vr*sr,J[1]=nr+vr*xr),!0}}}}}var oo=1e9,Vo=-oo;function Wo(H,J,ce,oe){function Me(yr,Qe){return H<=yr&&yr<=ce&&J<=Qe&&Qe<=oe}function Be(yr,Qe,vr,sr){var xr=0,Sr=0;if(yr==null||(xr=Je(yr,vr))!==(Sr=Je(Qe,vr))||lr(yr,Qe)<0^vr>0)do sr.point(xr===0||xr===3?H:ce,xr>1?oe:J);while((xr=(xr+vr+4)%4)!==Sr);else sr.point(Qe[0],Qe[1])}function Je(yr,Qe){return m(yr[0]-H)0?0:3:m(yr[0]-ce)0?2:1:m(yr[1]-J)0?1:0:Qe>0?3:2}function nr(yr,Qe){return lr(yr.x,Qe.x)}function lr(yr,Qe){var vr=Je(yr,1),sr=Je(Qe,1);return vr!==sr?vr-sr:vr===0?Qe[1]-yr[1]:vr===1?yr[0]-Qe[0]:vr===2?yr[1]-Qe[1]:Qe[0]-yr[0]}return function(yr){var Qe=yr,vr=Uo(),sr,xr,Sr,et,jr,tt,nt,Lr,Br,it,pt,Vt={point:tn,lineStart:ia,lineEnd:Nn,polygonStart:gn,polygonEnd:Lt};function tn(Gr,Wt){Me(Gr,Wt)&&Qe.point(Gr,Wt)}function Zt(){for(var Gr=0,Wt=0,Un=xr.length;Wtoe&&(il-al)*(oe-ui)>(Zl-ui)*(H-al)&&++Gr:Zl<=oe&&(il-al)*(oe-ui)<(Zl-ui)*(H-al)&&--Gr;return Gr}function gn(){Qe=vr,sr=[],xr=[],pt=!0}function Lt(){var Gr=Zt(),Wt=pt&&Gr,Un=(sr=r.merge(sr)).length;(Wt||Un)&&(yr.polygonStart(),Wt&&(yr.lineStart(),Be(null,null,1,yr),yr.lineEnd()),Un&&Yo(sr,nr,Gr,Be,yr),yr.polygonEnd()),Qe=yr,sr=xr=Sr=null}function ia(){Vt.point=mn,xr&&xr.push(Sr=[]),it=!0,Br=!1,nt=Lr=NaN}function Nn(){sr&&(mn(et,jr),tt&&Br&&vr.rejoin(),sr.push(vr.result())),Vt.point=tn,Br&&Qe.lineEnd()}function mn(Gr,Wt){var Un=Me(Gr,Wt);if(xr&&Sr.push([Gr,Wt]),it)et=Gr,jr=Wt,tt=Un,it=!1,Un&&(Qe.lineStart(),Qe.point(Gr,Wt));else if(Un&&Br)Qe.point(Gr,Wt);else{var ga=[nt=Math.max(Vo,Math.min(oo,nt)),Lr=Math.max(Vo,Math.min(oo,Lr))],Xa=[Gr=Math.max(Vo,Math.min(oo,Gr)),Wt=Math.max(Vo,Math.min(oo,Wt))];vu(ga,Xa,H,J,ce,oe)?(Br||(Qe.lineStart(),Qe.point(ga[0],ga[1])),Qe.point(Xa[0],Xa[1]),Un||Qe.lineEnd(),pt=!1):Un&&(Qe.lineStart(),Qe.point(Gr,Wt),pt=!1)}nt=Gr,Lr=Wt,Br=Un}return Vt}}function hu(){var H=0,J=0,ce=960,oe=500,Me,Be,Je;return Je={stream:function(nr){return Me&&Be===nr?Me:Me=Wo(H,J,ce,oe)(Be=nr)},extent:function(nr){return arguments.length?(H=+nr[0][0],J=+nr[0][1],ce=+nr[1][0],oe=+nr[1][1],Me=Be=null,Je):[[H,J],[ce,oe]]}}}var Pl=t(),Rl,_i,lo,Zo={sphere:B,point:B,lineStart:zl,lineEnd:B,polygonStart:B,polygonEnd:B};function zl(){Zo.point=Mf,Zo.lineEnd=bs}function bs(){Zo.point=Zo.lineEnd=B}function Mf(H,J){H*=d,J*=d,Rl=H,_i=k(J),lo=b(J),Zo.point=Zc}function Zc(H,J){H*=d,J*=d;var ce=k(J),oe=b(J),Me=m(H-Rl),Be=b(Me),Je=k(Me),nr=oe*Je,lr=lo*ce-_i*oe*Be,yr=_i*ce+lo*oe*Be;Pl.add(y(E(nr*nr+lr*lr),yr)),Rl=H,_i=ce,lo=oe}function _s(H){return Pl.reset(),ee(H,Zo),+Pl}var xs=[null,null],ws={type:"LineString",coordinates:xs};function Xo(H,J){return xs[0]=H,xs[1]=J,_s(ws)}var so={Feature:function(H,J){return Bi(H.geometry,J)},FeatureCollection:function(H,J){for(var ce=H.features,oe=-1,Me=ce.length;++oe0&&(Me=Xo(H[Be],H[Be-1]),Me>0&&ce<=Me&&oe<=Me&&(ce+oe-Me)*(1-Math.pow((ce-oe)/Me,2))o}).map(sr)).concat(r.range(C(Be/yr)*yr,Me,yr).filter(function(Lr){return m(Lr%vr)>o}).map(xr))}return tt.lines=function(){return nt().map(function(Lr){return{type:"LineString",coordinates:Lr}})},tt.outline=function(){return{type:"Polygon",coordinates:[Sr(oe).concat(et(Je).slice(1),Sr(ce).reverse().slice(1),et(nr).reverse().slice(1))]}},tt.extent=function(Lr){return arguments.length?tt.extentMajor(Lr).extentMinor(Lr):tt.extentMinor()},tt.extentMajor=function(Lr){return arguments.length?(oe=+Lr[0][0],ce=+Lr[1][0],nr=+Lr[0][1],Je=+Lr[1][1],oe>ce&&(Lr=oe,oe=ce,ce=Lr),nr>Je&&(Lr=nr,nr=Je,Je=Lr),tt.precision(jr)):[[oe,nr],[ce,Je]]},tt.extentMinor=function(Lr){return arguments.length?(J=+Lr[0][0],H=+Lr[1][0],Be=+Lr[0][1],Me=+Lr[1][1],J>H&&(Lr=J,J=H,H=Lr),Be>Me&&(Lr=Be,Be=Me,Me=Lr),tt.precision(jr)):[[J,Be],[H,Me]]},tt.step=function(Lr){return arguments.length?tt.stepMajor(Lr).stepMinor(Lr):tt.stepMinor()},tt.stepMajor=function(Lr){return arguments.length?(Qe=+Lr[0],vr=+Lr[1],tt):[Qe,vr]},tt.stepMinor=function(Lr){return arguments.length?(lr=+Lr[0],yr=+Lr[1],tt):[lr,yr]},tt.precision=function(Lr){return arguments.length?(jr=+Lr,sr=Oi(Be,Me,90),xr=As(J,H,jr),Sr=Oi(nr,Je,90),et=As(oe,ce,jr),tt):jr},tt.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ts(){return jc()()}function Iv(H,J){var ce=H[0]*d,oe=H[1]*d,Me=J[0]*d,Be=J[1]*d,Je=b(oe),nr=k(oe),lr=b(Be),yr=k(Be),Qe=Je*b(ce),vr=Je*k(ce),sr=lr*b(Me),xr=lr*k(Me),Sr=2*I(E(W(Be-oe)+Je*lr*W(Me-ce))),et=k(Sr),jr=Sr?function(tt){var nt=k(tt*=Sr)/et,Lr=k(Sr-tt)/et,Br=Lr*Qe+nt*sr,it=Lr*vr+nt*xr,pt=Lr*nr+nt*yr;return[y(it,Br)*h,y(pt,E(Br*Br+it*it))*h]}:function(){return[ce*h,oe*h]};return jr.distance=Sr,jr}function jo(H){return H}var kf=t(),Fl=t(),Jc,fo,co,Sf,xi={point:B,lineStart:B,lineEnd:B,polygonStart:function(){xi.lineStart=Hv,xi.lineEnd=Bv},polygonEnd:function(){xi.lineStart=xi.lineEnd=xi.point=B,kf.add(m(Fl)),Fl.reset()},result:function(){var H=kf/2;return kf.reset(),H}};function Hv(){xi.point=Ui}function Ui(H,J){xi.point=Il,Jc=co=H,fo=Sf=J}function Il(H,J){Fl.add(Sf*H-co*J),co=H,Sf=J}function Bv(){Il(Jc,fo)}var Yi=1/0,Jo=Yi,$o=-Yi,Ko=$o,vo={point:ks,lineStart:B,lineEnd:B,polygonStart:B,polygonEnd:B,result:function(){var H=[[Yi,Jo],[$o,Ko]];return $o=Ko=-(Jo=Yi=1/0),H}};function ks(H,J){H$o&&($o=H),JKo&&(Ko=J)}var pu=0,Ss=0,Cs=0,Qo=0,Hl=0,Bl=0,gu=0,mu=0,li=0,yu,bu,Fa,Qn,Aa={point:Gi,lineStart:Ls,lineEnd:Cf,polygonStart:function(){Aa.lineStart=$c,Aa.lineEnd=Ov},polygonEnd:function(){Aa.point=Gi,Aa.lineStart=Ls,Aa.lineEnd=Cf},result:function(){var H=li?[gu/li,mu/li]:Bl?[Qo/Bl,Hl/Bl]:Cs?[pu/Cs,Ss/Cs]:[NaN,NaN];return pu=Ss=Cs=Qo=Hl=Bl=gu=mu=li=0,H}};function Gi(H,J){pu+=H,Ss+=J,++Cs}function Ls(){Aa.point=el}function el(H,J){Aa.point=Ol,Gi(Fa=H,Qn=J)}function Ol(H,J){var ce=H-Fa,oe=J-Qn,Me=E(ce*ce+oe*oe);Qo+=Me*(Fa+H)/2,Hl+=Me*(Qn+J)/2,Bl+=Me,Gi(Fa=H,Qn=J)}function Cf(){Aa.point=Gi}function $c(){Aa.point=Uv}function Ov(){Lf(yu,bu)}function Uv(H,J){Aa.point=Lf,Gi(yu=Fa=H,bu=Qn=J)}function Lf(H,J){var ce=H-Fa,oe=J-Qn,Me=E(ce*ce+oe*oe);Qo+=Me*(Fa+H)/2,Hl+=Me*(Qn+J)/2,Bl+=Me,Me=Qn*H-Fa*J,gu+=Me*(Fa+H),mu+=Me*(Qn+J),li+=Me*3,Gi(Fa=H,Qn=J)}function qf(H){this._context=H}qf.prototype={_radius:4.5,pointRadius:function(H){return this._radius=H,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(H,J){switch(this._point){case 0:{this._context.moveTo(H,J),this._point=1;break}case 1:{this._context.lineTo(H,J);break}default:{this._context.moveTo(H+this._radius,J),this._context.arc(H,J,this._radius,0,v);break}}},result:B};var Df=t(),Ef,Kc,Qc,qs,Ds,wi={point:B,lineStart:function(){wi.point=_u},lineEnd:function(){Ef&&Es(Kc,Qc),wi.point=B},polygonStart:function(){Ef=!0},polygonEnd:function(){Ef=null},result:function(){var H=+Df;return Df.reset(),H}};function _u(H,J){wi.point=Es,Kc=qs=H,Qc=Ds=J}function Es(H,J){qs-=H,Ds-=J,Df.add(E(qs*qs+Ds*Ds)),qs=H,Ds=J}function xu(){this._string=[]}xu.prototype={_radius:4.5,_circle:e0(4.5),pointRadius:function(H){return(H=+H)!==this._radius&&(this._radius=H,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(H,J){switch(this._point){case 0:{this._string.push("M",H,",",J),this._point=1;break}case 1:{this._string.push("L",H,",",J);break}default:{this._circle==null&&(this._circle=e0(this._radius)),this._string.push("M",H,",",J,this._circle);break}}},result:function(){if(this._string.length){var H=this._string.join("");return this._string=[],H}else return null}};function e0(H){return"m0,"+H+"a"+H+","+H+" 0 1,1 0,"+-2*H+"a"+H+","+H+" 0 1,1 0,"+2*H+"z"}function Pf(H,J){var ce=4.5,oe,Me;function Be(Je){return Je&&(typeof ce=="function"&&Me.pointRadius(+ce.apply(this,arguments)),ee(Je,oe(Me))),Me.result()}return Be.area=function(Je){return ee(Je,oe(xi)),xi.result()},Be.measure=function(Je){return ee(Je,oe(wi)),wi.result()},Be.bounds=function(Je){return ee(Je,oe(vo)),vo.result()},Be.centroid=function(Je){return ee(Je,oe(Aa)),Aa.result()},Be.projection=function(Je){return arguments.length?(oe=Je==null?(H=null,jo):(H=Je).stream,Be):H},Be.context=function(Je){return arguments.length?(Me=Je==null?(J=null,new xu):new qf(J=Je),typeof ce!="function"&&Me.pointRadius(ce),Be):J},Be.pointRadius=function(Je){return arguments.length?(ce=typeof Je=="function"?Je:(Me.pointRadius(+Je),+Je),Be):ce},Be.projection(H).context(J)}function Yv(H){return{stream:ho(H)}}function ho(H){return function(J){var ce=new wu;for(var oe in H)ce[oe]=H[oe];return ce.stream=J,ce}}function wu(){}wu.prototype={constructor:wu,point:function(H,J){this.stream.point(H,J)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Ul(H,J,ce){var oe=H.clipExtent&&H.clipExtent();return H.scale(150).translate([0,0]),oe!=null&&H.clipExtent(null),ee(ce,H.stream(vo)),J(vo.result()),oe!=null&&H.clipExtent(oe),H}function Ps(H,J,ce){return Ul(H,function(oe){var Me=J[1][0]-J[0][0],Be=J[1][1]-J[0][1],Je=Math.min(Me/(oe[1][0]-oe[0][0]),Be/(oe[1][1]-oe[0][1])),nr=+J[0][0]+(Me-Je*(oe[1][0]+oe[0][0]))/2,lr=+J[0][1]+(Be-Je*(oe[1][1]+oe[0][1]))/2;H.scale(150*Je).translate([nr,lr])},ce)}function Rs(H,J,ce){return Ps(H,[[0,0],J],ce)}function Rf(H,J,ce){return Ul(H,function(oe){var Me=+J,Be=Me/(oe[1][0]-oe[0][0]),Je=(Me-Be*(oe[1][0]+oe[0][0]))/2,nr=-Be*oe[0][1];H.scale(150*Be).translate([Je,nr])},ce)}function po(H,J,ce){return Ul(H,function(oe){var Me=+J,Be=Me/(oe[1][1]-oe[0][1]),Je=-Be*oe[0][0],nr=(Me-Be*(oe[1][1]+oe[0][1]))/2;H.scale(150*Be).translate([Je,nr])},ce)}var r0=16,zf=b(30*d);function t0(H,J){return+J?Mu(H,J):Nf(H)}function Nf(H){return ho({point:function(J,ce){J=H(J,ce),this.stream.point(J[0],J[1])}})}function Mu(H,J){function ce(oe,Me,Be,Je,nr,lr,yr,Qe,vr,sr,xr,Sr,et,jr){var tt=yr-oe,nt=Qe-Me,Lr=tt*tt+nt*nt;if(Lr>4*J&&et--){var Br=Je+sr,it=nr+xr,pt=lr+Sr,Vt=E(Br*Br+it*it+pt*pt),tn=I(pt/=Vt),Zt=m(m(pt)-1)J||m((tt*Nn+nt*mn)/Lr-.5)>.3||Je*sr+nr*xr+lr*Sr2?Gr[2]%360*d:0,Nn()):[nr*h,lr*h,yr*h]},Lt.angle=function(Gr){return arguments.length?(vr=Gr%360*d,Nn()):vr*h},Lt.reflectX=function(Gr){return arguments.length?(sr=Gr?-1:1,Nn()):sr<0},Lt.reflectY=function(Gr){return arguments.length?(xr=Gr?-1:1,Nn()):xr<0},Lt.precision=function(Gr){return arguments.length?(pt=t0(Vt,it=Gr*Gr),mn()):E(it)},Lt.fitExtent=function(Gr,Wt){return Ps(Lt,Gr,Wt)},Lt.fitSize=function(Gr,Wt){return Rs(Lt,Gr,Wt)},Lt.fitWidth=function(Gr,Wt){return Rf(Lt,Gr,Wt)},Lt.fitHeight=function(Gr,Wt){return po(Lt,Gr,Wt)};function Nn(){var Gr=Hf(ce,0,0,sr,xr,vr).apply(null,J(Be,Je)),Wt=(vr?Hf:Gv)(ce,oe-Gr[0],Me-Gr[1],sr,xr,vr);return Qe=Bn(nr,lr,yr),Vt=wn(J,Wt),tn=wn(Qe,Vt),pt=t0(Vt,it),mn()}function mn(){return Zt=gn=null,Lt}return function(){return J=H.apply(this,arguments),Lt.invert=J.invert&&ia,Nn()}}function Yl(H){var J=0,ce=s/3,oe=Bf(H),Me=oe(J,ce);return Me.parallels=function(Be){return arguments.length?oe(J=Be[0]*d,ce=Be[1]*d):[J*h,ce*h]},Me}function Of(H){var J=b(H);function ce(oe,Me){return[oe*J,k(Me)/J]}return ce.invert=function(oe,Me){return[oe/J,I(Me*J)]},ce}function n0(H,J){var ce=k(H),oe=(ce+k(J))/2;if(m(oe)=.12&&jr<.234&&et>=-.425&&et<-.214?Me:jr>=.166&&jr<.234&&et>=-.214&&et<-.115?Je:ce).invert(sr)},Qe.stream=function(sr){return H&&J===sr?H:H=Vv([ce.stream(J=sr),Me.stream(sr),Je.stream(sr)])},Qe.precision=function(sr){return arguments.length?(ce.precision(sr),Me.precision(sr),Je.precision(sr),vr()):ce.precision()},Qe.scale=function(sr){return arguments.length?(ce.scale(sr),Me.scale(sr*.35),Je.scale(sr),Qe.translate(ce.translate())):ce.scale()},Qe.translate=function(sr){if(!arguments.length)return ce.translate();var xr=ce.scale(),Sr=+sr[0],et=+sr[1];return oe=ce.translate(sr).clipExtent([[Sr-.455*xr,et-.238*xr],[Sr+.455*xr,et+.238*xr]]).stream(yr),Be=Me.translate([Sr-.307*xr,et+.201*xr]).clipExtent([[Sr-.425*xr+o,et+.12*xr+o],[Sr-.214*xr-o,et+.234*xr-o]]).stream(yr),nr=Je.translate([Sr-.205*xr,et+.212*xr]).clipExtent([[Sr-.214*xr+o,et+.166*xr+o],[Sr-.115*xr-o,et+.234*xr-o]]).stream(yr),vr()},Qe.fitExtent=function(sr,xr){return Ps(Qe,sr,xr)},Qe.fitSize=function(sr,xr){return Rs(Qe,sr,xr)},Qe.fitWidth=function(sr,xr){return Rf(Qe,sr,xr)},Qe.fitHeight=function(sr,xr){return po(Qe,sr,xr)};function vr(){return H=J=null,Qe}return Qe.scale(1070)}function Vi(H){return function(J,ce){var oe=b(J),Me=b(ce),Be=H(oe*Me);return[Be*Me*k(J),Be*k(ce)]}}function Ai(H){return function(J,ce){var oe=E(J*J+ce*ce),Me=H(oe),Be=k(Me),Je=b(Me);return[y(J*Be,oe*Je),I(oe&&ce*Be/oe)]}}var Ia=Vi(function(H){return E(2/(1+H))});Ia.invert=Ai(function(H){return 2*I(H/2)});function Zv(){return Mi(Ia).scale(124.75).clipAngle(180-.001)}var Gl=Vi(function(H){return(H=F(H))&&H/k(H)});Gl.invert=Ai(function(H){return H});function i0(){return Mi(Gl).scale(79.4188).clipAngle(180-.001)}function Za(H,J){return[H,_(z((u+J)/2))]}Za.invert=function(H,J){return[H,2*p(x(J))-u]};function o0(){return l0(Za).scale(961/v)}function l0(H){var J=Mi(H),ce=J.center,oe=J.scale,Me=J.translate,Be=J.clipExtent,Je=null,nr,lr,yr;J.scale=function(vr){return arguments.length?(oe(vr),Qe()):oe()},J.translate=function(vr){return arguments.length?(Me(vr),Qe()):Me()},J.center=function(vr){return arguments.length?(ce(vr),Qe()):ce()},J.clipExtent=function(vr){return arguments.length?(vr==null?Je=nr=lr=yr=null:(Je=+vr[0][0],nr=+vr[0][1],lr=+vr[1][0],yr=+vr[1][1]),Qe()):Je==null?null:[[Je,nr],[lr,yr]]};function Qe(){var vr=s*oe(),sr=J(ms(J.rotate()).invert([0,0]));return Be(Je==null?[[sr[0]-vr,sr[1]-vr],[sr[0]+vr,sr[1]+vr]]:H===Za?[[Math.max(sr[0]-vr,Je),nr],[Math.min(sr[0]+vr,lr),yr]]:[[Je,Math.max(sr[1]-vr,nr)],[lr,Math.min(sr[1]+vr,yr)]])}return Qe()}function zs(H){return z((u+H)/2)}function s0(H,J){var ce=b(H),oe=H===J?k(H):_(ce/b(J))/_(zs(J)/zs(H)),Me=ce*A(zs(H),oe)/oe;if(!oe)return Za;function Be(Je,nr){Me>0?nr<-u+o&&(nr=-u+o):nr>u-o&&(nr=u-o);var lr=Me/A(zs(nr),oe);return[lr*k(oe*Je),Me-lr*b(oe*Je)]}return Be.invert=function(Je,nr){var lr=Me-nr,yr=M(oe)*E(Je*Je+lr*lr),Qe=y(Je,m(lr))*M(lr);return lr*oe<0&&(Qe-=s*M(Je)*M(lr)),[Qe/oe,2*p(A(Me/yr,1/oe))-u]},Be}function Au(){return Yl(s0).scale(109.5).parallels([30,30])}function Ns(H,J){return[H,J]}Ns.invert=Ns;function Tu(){return Mi(Ns).scale(152.63)}function Fs(H,J){var ce=b(H),oe=H===J?k(H):(ce-b(J))/(J-H),Me=ce/oe+H;if(m(oe)o&&--oe>0);return[H/(.8707+(Be=ce*ce)*(-.131979+Be*(-.013791+Be*Be*Be*(.003971-.001529*Be)))),ce]};function Cu(){return Mi(Uf).scale(175.295)}function Zn(H,J){return[b(J)*k(H),k(J)]}Zn.invert=Ai(I);function si(){return Mi(Zn).scale(249.5).clipAngle(90+o)}function Wl(H,J){var ce=b(J),oe=1+b(H)*ce;return[ce*k(H)/oe,k(J)/oe]}Wl.invert=Ai(function(H){return 2*p(H)});function Lu(){return Mi(Wl).scale(250).clipAngle(142)}function Os(H,J){return[_(z((u+J)/2)),-H]}Os.invert=function(H,J){return[-J,2*p(x(H))-u]};function Yf(){var H=l0(Os),J=H.center,ce=H.rotate;return H.center=function(oe){return arguments.length?J([-oe[1],oe[0]]):(oe=J(),[oe[1],-oe[0]])},H.rotate=function(oe){return arguments.length?ce([oe[0],oe[1],oe.length>2?oe[2]+90:90]):(oe=ce(),[oe[0],oe[1],oe[2]-90])},ce([0,0,90]).scale(159.155)}e.geoAlbers=a0,e.geoAlbersUsa=Wv,e.geoArea=U,e.geoAzimuthalEqualArea=Zv,e.geoAzimuthalEqualAreaRaw=Ia,e.geoAzimuthalEquidistant=i0,e.geoAzimuthalEquidistantRaw=Gl,e.geoBounds=be,e.geoCentroid=Na,e.geoCircle=ys,e.geoClipAntimeridian=Pn,e.geoClipCircle=wf,e.geoClipExtent=hu,e.geoClipRectangle=Wo,e.geoConicConformal=Au,e.geoConicConformalRaw=s0,e.geoConicEqualArea=rl,e.geoConicEqualAreaRaw=n0,e.geoConicEquidistant=Xv,e.geoConicEquidistantRaw=Fs,e.geoContains=Ms,e.geoDistance=Xo,e.geoEqualEarth=u0,e.geoEqualEarthRaw=Bs,e.geoEquirectangular=Tu,e.geoEquirectangularRaw=Ns,e.geoGnomonic=f0,e.geoGnomonicRaw=Su,e.geoGraticule=jc,e.geoGraticule10=Ts,e.geoIdentity=c0,e.geoInterpolate=Iv,e.geoLength=_s,e.geoMercator=o0,e.geoMercatorRaw=Za,e.geoNaturalEarth1=Cu,e.geoNaturalEarth1Raw=Uf,e.geoOrthographic=si,e.geoOrthographicRaw=Zn,e.geoPath=Pf,e.geoProjection=Mi,e.geoProjectionMutator=Bf,e.geoRotation=ms,e.geoStereographic=Lu,e.geoStereographicRaw=Wl,e.geoStream=ee,e.geoTransform=Yv,e.geoTransverseMercator=Yf,e.geoTransverseMercatorRaw=Os,Object.defineProperty(e,"__esModule",{value:!0})})});var oF=te((iy,iF)=>{(function(e,r){typeof iy=="object"&&typeof iF!="undefined"?r(iy,a_(),n_()):r(e.d3=e.d3||{},e.d3,e.d3)})(iy,function(e,r,t){"use strict";var n=Math.abs,a=Math.atan,i=Math.atan2,o=Math.cos,l=Math.exp,s=Math.floor,u=Math.log,f=Math.max,v=Math.min,h=Math.pow,d=Math.round,m=Math.sign||function(T){return T>0?1:T<0?-1:0},p=Math.sin,y=Math.tan,b=1e-6,C=1e-12,x=Math.PI,_=x/2,A=x/4,k=Math.SQRT1_2,M=V(2),E=V(x),z=x*2,F=180/x,I=x/180;function W(T){return T?T/Math.sin(T):1}function B(T){return T>1?_:T<-1?-_:Math.asin(T)}function X(T){return T>1?0:T<-1?x:Math.acos(T)}function V(T){return T>0?Math.sqrt(T):0}function re(T){return T=l(2*T),(T-1)/(T+1)}function ae(T){return(l(T)-l(-T))/2}function K(T){return(l(T)+l(-T))/2}function ee(T){return u(T+V(T*T+1))}function fe(T){return u(T+V(T*T-1))}function he(T){var L=y(T/2),P=2*u(o(T/2))/(L*L);function R(Y,O){var Z=o(Y),ue=o(O),ve=p(O),le=ue*Z,de=-((1-le?u((1+le)/2)/(1-le):-.5)+P/(1+le));return[de*ue*p(Y),de*ve]}return R.invert=function(Y,O){var Z=V(Y*Y+O*O),ue=-T/2,ve=50,le;if(!Z)return[0,0];do{var de=ue/2,xe=o(de),qe=p(de),He=qe/xe,er=-u(n(xe));ue-=le=(2/He*er-P*He-Z)/(-er/(qe*qe)+1-P/(2*xe*xe))*(xe<0?.7:1)}while(n(le)>b&&--ve>0);var fr=p(ue);return[i(Y*fr,Z*o(ue)),B(O*fr/Z)]},R}function De(){var T=_,L=r.geoProjectionMutator(he),P=L(T);return P.radius=function(R){return arguments.length?L(T=R*I):T*F},P.scale(179.976).clipAngle(147)}function Ne(T,L){var P=o(L),R=W(X(P*o(T/=2)));return[2*P*p(T)*R,p(L)*R]}Ne.invert=function(T,L){if(!(T*T+4*L*L>x*x+b)){var P=T,R=L,Y=25;do{var O=p(P),Z=p(P/2),ue=o(P/2),ve=p(R),le=o(R),de=p(2*R),xe=ve*ve,qe=le*le,He=Z*Z,er=1-qe*ue*ue,fr=er?X(le*ue)*V(Mr=1/er):Mr=0,Mr,Zr=2*fr*le*Z-T,at=fr*ve-L,ot=Mr*(qe*He+fr*le*ue*xe),st=Mr*(.5*O*de-fr*2*ve*Z),vt=Mr*.25*(de*Z-fr*ve*qe*O),ln=Mr*(xe*ue+fr*He*le),Mn=st*vt-ln*ot;if(!Mn)break;var zt=(at*st-Zr*ln)/Mn,Fn=(Zr*vt-at*ot)/Mn;P-=zt,R-=Fn}while((n(zt)>b||n(Fn)>b)&&--Y>0);return[P,R]}};function Fe(){return r.geoProjection(Ne).scale(152.63)}function Xe(T){var L=p(T),P=o(T),R=T>=0?1:-1,Y=y(R*T),O=(1+L-P)/2;function Z(ue,ve){var le=o(ve),de=o(ue/=2);return[(1+le)*p(ue),(R*ve>-i(de,Y)-.001?0:-R*10)+O+p(ve)*P-(1+le)*L*de]}return Z.invert=function(ue,ve){var le=0,de=0,xe=50;do{var qe=o(le),He=p(le),er=o(de),fr=p(de),Mr=1+er,Zr=Mr*He-ue,at=O+fr*P-Mr*L*qe-ve,ot=Mr*qe/2,st=-He*fr,vt=L*Mr*He/2,ln=P*er+L*qe*fr,Mn=st*vt-ln*ot,zt=(at*st-Zr*ln)/Mn/2,Fn=(Zr*vt-at*ot)/Mn;n(Fn)>2&&(Fn/=2),le-=zt,de-=Fn}while((n(zt)>b||n(Fn)>b)&&--xe>0);return R*de>-i(o(le),Y)-.001?[le*2,de]:null},Z}function Le(){var T=20*I,L=T>=0?1:-1,P=y(L*T),R=r.geoProjectionMutator(Xe),Y=R(T),O=Y.stream;return Y.parallel=function(Z){return arguments.length?(P=y((L=(T=Z*I)>=0?1:-1)*T),R(T)):T*F},Y.stream=function(Z){var ue=Y.rotate(),ve=O(Z),le=(Y.rotate([0,0]),O(Z)),de=Y.precision();return Y.rotate(ue),ve.sphere=function(){le.polygonStart(),le.lineStart();for(var xe=L*-180;L*xe<180;xe+=L*90)le.point(xe,L*90);if(T)for(;L*(xe-=3*L*de)>=-180;)le.point(xe,L*-i(o(xe*I/2),P)*F);le.lineEnd(),le.polygonEnd()},ve},Y.scale(218.695).center([0,28.0974])}function rr(T,L){var P=y(L/2),R=V(1-P*P),Y=1+R*o(T/=2),O=p(T)*R/Y,Z=P/Y,ue=O*O,ve=Z*Z;return[4/3*O*(3+ue-3*ve),4/3*Z*(3+3*ue-ve)]}rr.invert=function(T,L){if(T*=3/8,L*=3/8,!T&&n(L)>1)return null;var P=T*T,R=L*L,Y=1+P+R,O=V((Y-V(Y*Y-4*L*L))/2),Z=B(O)/3,ue=O?fe(n(L/O))/3:ee(n(T))/3,ve=o(Z),le=K(ue),de=le*le-ve*ve;return[m(T)*2*i(ae(ue)*ve,.25-de),m(L)*2*i(le*p(Z),.25+de)]};function se(){return r.geoProjection(rr).scale(66.1603)}var ye=V(8),we=u(1+M);function pe(T,L){var P=n(L);return PC&&--R>0);return[T/(o(P)*(ye-1/p(P))),m(L)*P]};function U(){return r.geoProjection(pe).scale(112.314)}function Q(T){var L=2*x/T;function P(R,Y){var O=r.geoAzimuthalEquidistantRaw(R,Y);if(n(R)>_){var Z=i(O[1],O[0]),ue=V(O[0]*O[0]+O[1]*O[1]),ve=L*d((Z-_)/L)+_,le=i(p(Z-=ve),2-o(Z));Z=ve+B(x/ue*p(le))-le,O[0]=ue*o(Z),O[1]=ue*p(Z)}return O}return P.invert=function(R,Y){var O=V(R*R+Y*Y);if(O>_){var Z=i(Y,R),ue=L*d((Z-_)/L)+_,ve=Z>ue?-1:1,le=O*o(ue-Z),de=1/y(ve*X((le-x)/V(x*(x-2*le)+O*O)));Z=ue+2*a((de+ve*V(de*de-3))/3),R=O*o(Z),Y=O*p(Z)}return r.geoAzimuthalEquidistantRaw.invert(R,Y)},P}function $(){var T=5,L=r.geoProjectionMutator(Q),P=L(T),R=P.stream,Y=.01,O=-o(Y*I),Z=p(Y*I);return P.lobes=function(ue){return arguments.length?L(T=+ue):T},P.stream=function(ue){var ve=P.rotate(),le=R(ue),de=(P.rotate([0,0]),R(ue));return P.rotate(ve),le.sphere=function(){de.polygonStart(),de.lineStart();for(var xe=0,qe=360/T,He=2*x/T,er=90-180/T,fr=_;xe0&&n(Y)>b);return R<0?NaN:P}function or(T,L,P){return L===void 0&&(L=40),P===void 0&&(P=C),function(R,Y,O,Z){var ue,ve,le;O=O===void 0?0:+O,Z=Z===void 0?0:+Z;for(var de=0;deue){O-=ve/=2,Z-=le/=2;continue}ue=er;var fr=(O>0?-1:1)*P,Mr=(Z>0?-1:1)*P,Zr=T(O+fr,Z),at=T(O,Z+Mr),ot=(Zr[0]-xe[0])/fr,st=(Zr[1]-xe[1])/fr,vt=(at[0]-xe[0])/Mr,ln=(at[1]-xe[1])/Mr,Mn=ln*ot-st*vt,zt=(n(Mn)<.5?.5:1)/Mn;if(ve=(He*vt-qe*ln)*zt,le=(qe*st-He*ot)*zt,O+=ve,Z+=le,n(ve)0&&(ue[1]*=1+ve/1.5*ue[0]*ue[0]),ue}return R.invert=or(R),R}function tr(){return r.geoProjection(Ue()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function ur(T,L){var P=T*p(L),R=30,Y;do L-=Y=(L+p(L)-P)/(1+o(L));while(n(Y)>b&&--R>0);return L/2}function cr(T,L,P){function R(Y,O){return[T*Y*o(O=ur(P,O)),L*p(O)]}return R.invert=function(Y,O){return O=B(O/L),[Y/(T*o(O)),B((2*O+p(2*O))/P)]},R}var Ke=cr(M/_,M,x);function pr(){return r.geoProjection(Ke).scale(169.529)}var dr=2.00276,Te=1.11072;function Ye(T,L){var P=ur(x,L);return[dr*T/(1/o(L)+Te/o(P)),(L+M*p(P))/dr]}Ye.invert=function(T,L){var P=dr*L,R=L<0?-A:A,Y=25,O,Z;do Z=P-M*p(R),R-=O=(p(2*R)+2*R-x*p(Z))/(2*o(2*R)+2+x*o(Z)*M*o(R));while(n(O)>b&&--Y>0);return Z=P-M*p(R),[T*(1/o(Z)+Te/o(R))/dr,Z]};function Ar(){return r.geoProjection(Ye).scale(160.857)}function zr(T){var L=0,P=r.geoProjectionMutator(T),R=P(L);return R.parallel=function(Y){return arguments.length?P(L=Y*I):L*F},R}function Er(T,L){return[T*o(L),L]}Er.invert=function(T,L){return[T/o(L),L]};function Ae(){return r.geoProjection(Er).scale(152.63)}function je(T){if(!T)return Er;var L=1/y(T);function P(R,Y){var O=L+T-Y,Z=O&&R*o(Y)/O;return[O*p(Z),L-O*o(Z)]}return P.invert=function(R,Y){var O=V(R*R+(Y=L-Y)*Y),Z=L+T-O;return[O/o(Z)*i(R,Y),Z]},P}function hr(){return zr(je).scale(123.082).center([0,26.1441]).parallel(45)}function wr(T){function L(P,R){var Y=_-R,O=Y&&P*T*p(Y)/Y;return[Y*p(O)/T,_-Y*o(O)]}return L.invert=function(P,R){var Y=P*T,O=_-R,Z=V(Y*Y+O*O),ue=i(Y,O);return[(Z?Z/p(Z):1)*ue/T,_-Z]},L}function mr(){var T=.5,L=r.geoProjectionMutator(wr),P=L(T);return P.fraction=function(R){return arguments.length?L(T=+R):T},P.scale(158.837)}var Tr=cr(1,4/x,x);function Dr(){return r.geoProjection(Tr).scale(152.63)}function Or(T,L,P,R,Y,O){var Z=o(O),ue;if(n(T)>1||n(O)>1)ue=X(P*Y+L*R*Z);else{var ve=p(T/2),le=p(O/2);ue=2*B(V(ve*ve+L*R*le*le))}return n(ue)>b?[ue,i(R*p(O),L*Y-P*R*Z)]:[0,0]}function Cr(T,L,P){return X((T*T+L*L-P*P)/(2*T*L))}function ar(T){return T-2*x*s((T+x)/(2*x))}function be(T,L,P){for(var R=[[T[0],T[1],p(T[1]),o(T[1])],[L[0],L[1],p(L[1]),o(L[1])],[P[0],P[1],p(P[1]),o(P[1])]],Y=R[2],O,Z=0;Z<3;++Z,Y=O)O=R[Z],Y.v=Or(O[1]-Y[1],Y[3],Y[2],O[3],O[2],O[0]-Y[0]),Y.point=[0,0];var ue=Cr(R[0].v[0],R[2].v[0],R[1].v[0]),ve=Cr(R[0].v[0],R[1].v[0],R[2].v[0]),le=x-ue;R[2].point[1]=0,R[0].point[0]=-(R[1].point[0]=R[0].v[0]/2);var de=[R[2].point[0]=R[0].point[0]+R[2].v[0]*o(ue),2*(R[0].point[1]=R[1].point[1]=R[2].v[0]*p(ue))];function xe(qe,He){var er=p(He),fr=o(He),Mr=new Array(3),Zr;for(Zr=0;Zr<3;++Zr){var at=R[Zr];if(Mr[Zr]=Or(He-at[1],at[3],at[2],fr,er,qe-at[0]),!Mr[Zr][0])return at.point;Mr[Zr][1]=ar(Mr[Zr][1]-at.v[1])}var ot=de.slice();for(Zr=0;Zr<3;++Zr){var st=Zr==2?0:Zr+1,vt=Cr(R[Zr].v[0],Mr[Zr][0],Mr[st][0]);Mr[Zr][1]<0&&(vt=-vt),Zr?Zr==1?(vt=ve-vt,ot[0]-=Mr[Zr][0]*o(vt),ot[1]-=Mr[Zr][0]*p(vt)):(vt=le-vt,ot[0]+=Mr[Zr][0]*o(vt),ot[1]+=Mr[Zr][0]*p(vt)):(ot[0]+=Mr[Zr][0]*o(vt),ot[1]-=Mr[Zr][0]*p(vt))}return ot[0]/=3,ot[1]/=3,ot}return xe}function Se(T){return T[0]*=I,T[1]*=I,T}function $e(){return Ze([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Ze(T,L,P){var R=r.geoCentroid({type:"MultiPoint",coordinates:[T,L,P]}),Y=[-R[0],-R[1]],O=r.geoRotation(Y),Z=be(Se(O(T)),Se(O(L)),Se(O(P)));Z.invert=or(Z);var ue=r.geoProjection(Z).rotate(Y),ve=ue.center;return delete ue.rotate,ue.center=function(le){return arguments.length?ve(O(le)):O.invert(ve())},ue.clipAngle(90)}function qr(T,L){var P=V(1-p(L));return[2/E*T*P,E*(1-P)]}qr.invert=function(T,L){var P=(P=L/E-1)*P;return[P>0?T*V(x/P)/2:0,B(1-P)]};function Hr(){return r.geoProjection(qr).scale(95.6464).center([0,30])}function Pr(T){var L=y(T);function P(R,Y){return[R,(R?R/p(R):1)*(p(Y)*o(R)-L*o(Y))]}return P.invert=L?function(R,Y){R&&(Y*=p(R)/R);var O=o(R);return[R,2*i(V(O*O+L*L-Y*Y)-O,L-Y)]}:function(R,Y){return[R,B(R?Y*y(R)/R:Y)]},P}function lt(){return zr(Pr).scale(249.828).clipAngle(90)}var xt=V(3);function Nt(T,L){return[xt*T*(2*o(2*L/3)-1)/E,xt*E*p(L/3)]}Nt.invert=function(T,L){var P=3*B(L/(xt*E));return[E*T/(xt*(2*o(2*P/3)-1)),P]};function Ht(){return r.geoProjection(Nt).scale(156.19)}function An(T){var L=o(T);function P(R,Y){return[R*L,p(Y)/L]}return P.invert=function(R,Y){return[R/L,B(Y*L)]},P}function Tn(){return zr(An).parallel(38.58).scale(195.044)}function cn(T){var L=o(T);function P(R,Y){return[R*L,(1+L)*y(Y/2)]}return P.invert=function(R,Y){return[R/L,a(Y/(1+L))*2]},P}function Ft(){return zr(cn).scale(124.75)}function jt(T,L){var P=V(8/(3*x));return[P*T*(1-n(L)/x),P*L]}jt.invert=function(T,L){var P=V(8/(3*x)),R=L/P;return[T/(P*(1-n(R)/x)),R]};function en(){return r.geoProjection(jt).scale(165.664)}function Jt(T,L){var P=V(4-3*p(n(L)));return[2/V(6*x)*T*P,m(L)*V(2*x/3)*(2-P)]}Jt.invert=function(T,L){var P=2-n(L)/V(2*x/3);return[T*V(6*x)/(2*P),m(L)*B((4-P*P)/3)]};function aa(){return r.geoProjection(Jt).scale(165.664)}function rt(T,L){var P=V(x*(4+x));return[2/P*T*(1+V(1-4*L*L/(x*x))),4/P*L]}rt.invert=function(T,L){var P=V(x*(4+x))/2;return[T*P/(1+V(1-L*L*(4+x)/(4*x))),L*P/2]};function rn(){return r.geoProjection(rt).scale(180.739)}function St(T,L){var P=(2+_)*p(L);L/=2;for(var R=0,Y=1/0;R<10&&n(Y)>b;R++){var O=o(L);L-=Y=(L+p(L)*(O+2)-P)/(2*O*(1+O))}return[2/V(x*(4+x))*T*(1+o(L)),2*V(x/(4+x))*p(L)]}St.invert=function(T,L){var P=L*V((4+x)/x)/2,R=B(P),Y=o(R);return[T/(2/V(x*(4+x))*(1+Y)),B((R+P*(Y+2))/(2+_))]};function dn(){return r.geoProjection(St).scale(180.739)}function pn(T,L){return[T*(1+o(L))/V(2+x),2*L/V(2+x)]}pn.invert=function(T,L){var P=V(2+x),R=L*P/2;return[P*T/(1+o(R)),R]};function an(){return r.geoProjection(pn).scale(173.044)}function vn(T,L){for(var P=(1+_)*p(L),R=0,Y=1/0;R<10&&n(Y)>b;R++)L-=Y=(L+p(L)-P)/(1+o(L));return P=V(2+x),[T*(1+o(L))/P,2*L/P]}vn.invert=function(T,L){var P=1+_,R=V(P/2);return[T*2*R/(1+o(L*=R)),B((L+p(L))/P)]};function da(){return r.geoProjection(vn).scale(173.044)}var qn=3+2*M;function Na(T,L){var P=p(T/=2),R=o(T),Y=V(o(L)),O=o(L/=2),Z=p(L)/(O+M*R*Y),ue=V(2/(1+Z*Z)),ve=V((M*O+(R+P)*Y)/(M*O+(R-P)*Y));return[qn*(ue*(ve-1/ve)-2*u(ve)),qn*(ue*Z*(ve+1/ve)-2*a(Z))]}Na.invert=function(T,L){if(!(O=rr.invert(T/1.2,L*1.065)))return null;var P=O[0],R=O[1],Y=20,O;T/=qn,L/=qn;do{var Z=P/2,ue=R/2,ve=p(Z),le=o(Z),de=p(ue),xe=o(ue),qe=o(R),He=V(qe),er=de/(xe+M*le*He),fr=er*er,Mr=V(2/(1+fr)),Zr=M*xe+(le+ve)*He,at=M*xe+(le-ve)*He,ot=Zr/at,st=V(ot),vt=st-1/st,ln=st+1/st,Mn=Mr*vt-2*u(st)-T,zt=Mr*er*ln-2*a(er)-L,Fn=de&&k*He*ve*fr/de,ma=(M*le*xe+He)/(2*(xe+M*le*He)*(xe+M*le*He)*He),fi=-.5*er*Mr*Mr*Mr,ol=fi*Fn,Us=fi*ma,La=(La=2*xe+M*He*(le-ve))*La*st,qa=(M*le*xe*He+qe)/La,Xi=-(M*ve*de)/(He*La),ll=vt*ol-2*qa/st+Mr*(qa+qa/ot),sl=vt*Us-2*Xi/st+Mr*(Xi+Xi/ot),ul=er*ln*ol-2*Fn/(1+fr)+Mr*ln*Fn+Mr*er*(qa-qa/ot),Xl=er*ln*Us-2*ma/(1+fr)+Mr*ln*ma+Mr*er*(Xi-Xi/ot),go=sl*ul-Xl*ll;if(!go)break;var Ys=(zt*sl-Mn*Xl)/go,Wf=(Mn*ul-zt*ll)/go;P-=Ys,R=f(-_,v(_,R-Wf))}while((n(Ys)>b||n(Wf)>b)&&--Y>0);return n(n(R)-_)R){var xe=V(de),qe=i(le,ve),He=P*d(qe/P),er=qe-He,fr=T*o(er),Mr=(T*p(er)-er*p(fr))/(_-fr),Zr=On(er,Mr),at=(x-T)/yi(Zr,fr,x);ve=xe;var ot=50,st;do ve-=st=(T+yi(Zr,fr,ve)*at-xe)/(Zr(ve)*at);while(n(st)>b&&--ot>0);le=er*p(ve),ve<_&&(le-=Mr*(ve-_));var vt=p(He),ln=o(He);ue[0]=ve*ln-le*vt,ue[1]=ve*vt+le*ln}return ue}return Y.invert=function(O,Z){var ue=O*O+Z*Z;if(ue>R){var ve=V(ue),le=i(Z,O),de=P*d(le/P),xe=le-de;O=ve*o(xe),Z=ve*p(xe);for(var qe=O-_,He=p(O),er=Z/He,fr=O<_?1/0:0,Mr=10;;){var Zr=T*p(er),at=T*o(er),ot=p(at),st=_-at,vt=(Zr-er*ot)/st,ln=On(er,vt);if(n(fr)b||n(er)>b)&&--fr>0);return[xe,qe]},ve}var Kr=bi(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ct(){return r.geoProjection(Kr).scale(149.995)}var Ot=bi(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Ur(){return r.geoProjection(Ot).scale(153.93)}var Wn=bi(5/6*x,-.62636,-.0344,0,1.3493,-.05524,0,.045);function on(){return r.geoProjection(Wn).scale(130.945)}function Pn(T,L){var P=T*T,R=L*L;return[T*(1-.162388*R)*(.87-952426e-9*P*P),L*(1+R/12)]}Pn.invert=function(T,L){var P=T,R=L,Y=50,O;do{var Z=R*R;R-=O=(R*(1+Z/12)-L)/(1+Z/4)}while(n(O)>b&&--Y>0);Y=50,T/=1-.162388*Z;do{var ue=(ue=P*P)*ue;P-=O=(P*(.87-952426e-9*ue)-T)/(.87-.00476213*ue)}while(n(O)>b&&--Y>0);return[P,R]};function At(){return r.geoProjection(Pn).scale(131.747)}var Wa=bi(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Go(){return r.geoProjection(Wa).scale(131.087)}function wf(T){var L=T(_,0)[0]-T(-_,0)[0];function P(R,Y){var O=R>0?-.5:.5,Z=T(R+O*x,Y);return Z[0]-=O*L,Z}return T.invert&&(P.invert=function(R,Y){var O=R>0?-.5:.5,Z=T.invert(R+O*L,Y),ue=Z[0]-O*x;return ue<-x?ue+=2*x:ue>x&&(ue-=2*x),Z[0]=ue,Z}),P}function vu(T,L){var P=m(T),R=m(L),Y=o(L),O=o(T)*Y,Z=p(T)*Y,ue=p(R*L);T=n(i(Z,ue)),L=B(O),n(T-_)>b&&(T%=_);var ve=oo(T>x/4?_-T:T,L);return T>x/4&&(ue=ve[0],ve[0]=-ve[1],ve[1]=-ue),ve[0]*=P,ve[1]*=-R,ve}vu.invert=function(T,L){n(T)>1&&(T=m(T)*2-T),n(L)>1&&(L=m(L)*2-L);var P=m(T),R=m(L),Y=-P*T,O=-R*L,Z=O/Y<1,ue=Vo(Z?O:Y,Z?Y:O),ve=ue[0],le=ue[1],de=o(le);return Z&&(ve=-_-ve),[P*(i(p(ve)*de,-p(le))+x),R*B(o(ve)*de)]};function oo(T,L){if(L===_)return[0,0];var P=p(L),R=P*P,Y=R*R,O=1+Y,Z=1+3*Y,ue=1-Y,ve=B(1/V(O)),le=ue+R*O*ve,de=(1-P)/le,xe=V(de),qe=de*O,He=V(qe),er=xe*ue,fr,Mr;if(T===0)return[0,-(er+R*He)];var Zr=o(L),at=1/Zr,ot=2*P*Zr,st=(-3*R+ve*Z)*ot,vt=(-le*Zr-(1-P)*st)/(le*le),ln=.5*vt/xe,Mn=ue*ln-2*R*xe*ot,zt=R*O*vt+de*Z*ot,Fn=-at*ot,ma=-at*zt,fi=-2*at*Mn,ol=4*T/x,Us;if(T>.222*x||L.175*x){if(fr=(er+R*V(qe*(1+Y)-er*er))/(1+Y),T>x/4)return[fr,fr];var La=fr,qa=.5*fr;fr=.5*(qa+La),Mr=50;do{var Xi=V(qe-fr*fr),ll=fr*(fi+Fn*Xi)+ma*B(fr/He)-ol;if(!ll)break;ll<0?qa=fr:La=fr,fr=.5*(qa+La)}while(n(La-qa)>b&&--Mr>0)}else{fr=b,Mr=25;do{var sl=fr*fr,ul=V(qe-sl),Xl=fi+Fn*ul,go=fr*Xl+ma*B(fr/He)-ol,Ys=Xl+(ma-Fn*sl)/ul;fr-=Us=ul?go/Ys:0}while(n(Us)>b&&--Mr>0)}return[fr,-er-R*V(qe-fr*fr)]}function Vo(T,L){for(var P=0,R=1,Y=.5,O=50;;){var Z=Y*Y,ue=V(Y),ve=B(1/V(1+Z)),le=1-Z+Y*(1+Z)*ve,de=(1-ue)/le,xe=V(de),qe=de*(1+Z),He=xe*(1-Z),er=qe-T*T,fr=V(er),Mr=L+He+Y*fr;if(n(R-P)0?P=Y:R=Y,Y=.5*(P+R)}if(!O)return null;var Zr=B(ue),at=o(Zr),ot=1/at,st=2*ue*at,vt=(-3*Y+ve*(1+3*Z))*st,ln=(-le*at-(1-ue)*vt)/(le*le),Mn=.5*ln/xe,zt=(1-Z)*Mn-2*Y*xe*st,Fn=-2*ot*zt,ma=-ot*st,fi=-ot*(Y*(1+Z)*ln+de*(1+3*Z)*st);return[x/4*(T*(Fn+ma*fr)+fi*B(T/V(qe))),Zr]}function Wo(){return r.geoProjection(wf(vu)).scale(239.75)}function hu(T,L,P){var R,Y,O;return T?(R=Pl(T,P),L?(Y=Pl(L,1-P),O=Y[1]*Y[1]+P*R[0]*R[0]*Y[0]*Y[0],[[R[0]*Y[2]/O,R[1]*R[2]*Y[0]*Y[1]/O],[R[1]*Y[1]/O,-R[0]*R[2]*Y[0]*Y[2]/O],[R[2]*Y[1]*Y[2]/O,-P*R[0]*R[1]*Y[0]/O]]):[[R[0],0],[R[1],0],[R[2],0]]):(Y=Pl(L,1-P),[[0,Y[0]/Y[1]],[1/Y[1],0],[Y[2]/Y[1],0]])}function Pl(T,L){var P,R,Y,O,Z;if(L=1-b)return P=(1-L)/4,R=K(T),O=re(T),Y=1/R,Z=R*ae(T),[O+P*(Z-T)/(R*R),Y-P*O*Y*(Z-T),Y+P*O*Y*(Z+T),2*a(l(T))-_+P*(Z-T)/R];var ue=[1,0,0,0,0,0,0,0,0],ve=[V(L),0,0,0,0,0,0,0,0],le=0;for(R=V(1-L),Z=1;n(ve[le]/ue[le])>b&&le<8;)P=ue[le++],ve[le]=(P-R)/2,ue[le]=(P+R)/2,R=V(P*R),Z*=2;Y=Z*ue[le]*T;do O=ve[le]*p(R=Y)/ue[le],Y=(B(O)+Y)/2;while(--le);return[p(Y),O=o(Y),O/o(Y-R),Y]}function Rl(T,L,P){var R=n(T),Y=n(L),O=ae(Y);if(R){var Z=1/p(R),ue=1/(y(R)*y(R)),ve=-(ue+P*(O*O*Z*Z)-1+P),le=(P-1)*ue,de=(-ve+V(ve*ve-4*le))/2;return[_i(a(1/V(de)),P)*m(T),_i(a(V((de/ue-1)/P)),1-P)*m(L)]}return[0,_i(a(O),1-P)*m(L)]}function _i(T,L){if(!L)return T;if(L===1)return u(y(T/2+A));for(var P=1,R=V(1-L),Y=V(L),O=0;n(Y)>b;O++){if(T%x){var Z=a(R*y(T)/P);Z<0&&(Z+=x),T+=Z+~~(T/x)*x}else T+=T;Y=(P+R)/2,R=V(P*R),Y=((P=Y)-R)/2}return T/(h(2,O)*P)}function lo(T,L){var P=(M-1)/(M+1),R=V(1-P*P),Y=_i(_,R*R),O=-1,Z=u(y(x/4+n(L)/2)),ue=l(O*Z)/V(P),ve=Zo(ue*o(O*T),ue*p(O*T)),le=Rl(ve[0],ve[1],R*R);return[-le[1],(L>=0?1:-1)*(.5*Y-le[0])]}function Zo(T,L){var P=T*T,R=L+1,Y=1-P-L*L;return[.5*((T>=0?_:-_)-i(Y,2*T)),-.25*u(Y*Y+4*P)+.5*u(R*R+P)]}function zl(T,L){var P=L[0]*L[0]+L[1]*L[1];return[(T[0]*L[0]+T[1]*L[1])/P,(T[1]*L[0]-T[0]*L[1])/P]}lo.invert=function(T,L){var P=(M-1)/(M+1),R=V(1-P*P),Y=_i(_,R*R),O=-1,Z=hu(.5*Y-L,-T,R*R),ue=zl(Z[0],Z[1]),ve=i(ue[1],ue[0])/O;return[ve,2*a(l(.5/O*u(P*ue[0]*ue[0]+P*ue[1]*ue[1])))-_]};function bs(){return r.geoProjection(wf(lo)).scale(151.496)}function Mf(T){var L=p(T),P=o(T),R=Zc(T);R.invert=Zc(-T);function Y(O,Z){var ue=R(O,Z);O=ue[0],Z=ue[1];var ve=p(Z),le=o(Z),de=o(O),xe=X(L*ve+P*le*de),qe=p(xe),He=n(qe)>b?xe/qe:1;return[He*P*p(O),(n(O)>_?He:-He)*(L*le-P*ve*de)]}return Y.invert=function(O,Z){var ue=V(O*O+Z*Z),ve=-p(ue),le=o(ue),de=ue*le,xe=-Z*ve,qe=ue*L,He=V(de*de+xe*xe-qe*qe),er=i(de*qe+xe*He,xe*qe-de*He),fr=(ue>_?-1:1)*i(O*ve,ue*o(er)*le+Z*p(er)*ve);return R.invert(fr,er)},Y}function Zc(T){var L=p(T),P=o(T);return function(R,Y){var O=o(Y),Z=o(R)*O,ue=p(R)*O,ve=p(Y);return[i(ue,Z*P-ve*L),B(ve*P+Z*L)]}}function _s(){var T=0,L=r.geoProjectionMutator(Mf),P=L(T),R=P.rotate,Y=P.stream,O=r.geoCircle();return P.parallel=function(Z){if(!arguments.length)return T*F;var ue=P.rotate();return L(T=Z*I).rotate(ue)},P.rotate=function(Z){return arguments.length?(R.call(P,[Z[0],Z[1]-T*F]),O.center([-Z[0],-Z[1]]),P):(Z=R.call(P),Z[1]+=T*F,Z)},P.stream=function(Z){return Z=Y(Z),Z.sphere=function(){Z.polygonStart();var ue=.01,ve=O.radius(90-ue)().coordinates[0],le=ve.length-1,de=-1,xe;for(Z.lineStart();++de=0;)Z.point((xe=ve[de])[0],xe[1]);Z.lineEnd(),Z.polygonEnd()},Z},P.scale(79.4187).parallel(45).clipAngle(180-.001)}var xs=3,ws=B(1-1/xs)*F,Xo=An(0);function so(T){var L=ws*I,P=qr(x,L)[0]-qr(-x,L)[0],R=Xo(0,L)[1],Y=qr(0,L)[1],O=E-Y,Z=z/T,ue=4/z,ve=R+O*O*4/z;function le(de,xe){var qe,He=n(xe);if(He>L){var er=v(T-1,f(0,s((de+x)/Z)));de+=x*(T-1)/T-er*Z,qe=qr(de,He),qe[0]=qe[0]*z/P-z*(T-1)/(2*T)+er*z/T,qe[1]=R+(qe[1]-Y)*4*O/z,xe<0&&(qe[1]=-qe[1])}else qe=Xo(de,xe);return qe[0]*=ue,qe[1]/=ve,qe}return le.invert=function(de,xe){de/=ue,xe*=ve;var qe=n(xe);if(qe>R){var He=v(T-1,f(0,s((de+x)/Z)));de=(de+x*(T-1)/T-He*Z)*P/z;var er=qr.invert(de,.25*(qe-R)*z/O+Y);return er[0]-=x*(T-1)/T-He*Z,xe<0&&(er[1]=-er[1]),er}return Xo.invert(de,xe)},le}function uo(T,L){return[T,L&1?90-b:ws]}function Bi(T,L){return[T,L&1?-90+b:-ws]}function Af(T){return[T[0]*(1-b),T[1]]}function du(T){var L=[].concat(t.range(-180,180+T/2,T).map(uo),t.range(180,-180-T/2,-T).map(Bi));return{type:"Polygon",coordinates:[T===180?L.map(Af):L]}}function Nl(){var T=4,L=r.geoProjectionMutator(so),P=L(T),R=P.stream;return P.lobes=function(Y){return arguments.length?L(T=+Y):T},P.stream=function(Y){var O=P.rotate(),Z=R(Y),ue=(P.rotate([0,0]),R(Y));return P.rotate(O),Z.sphere=function(){r.geoStream(du(180/T),ue)},Z},P.scale(239.75)}function Tf(T){var L=1+T,P=p(1/L),R=B(P),Y=2*V(x/(O=x+4*R*L)),O,Z=.5*Y*(L+V(T*(2+T))),ue=T*T,ve=L*L;function le(de,xe){var qe=1-p(xe),He,er;if(qe&&qe<2){var fr=_-xe,Mr=25,Zr;do{var at=p(fr),ot=o(fr),st=R+i(at,L-ot),vt=1+ve-2*L*ot;fr-=Zr=(fr-ue*R-L*at+vt*st-.5*qe*O)/(2*L*at*st)}while(n(Zr)>C&&--Mr>0);He=Y*V(vt),er=de*st/x}else He=Y*(T+qe),er=de*R/x;return[He*p(er),Z-He*o(er)]}return le.invert=function(de,xe){var qe=de*de+(xe-=Z)*xe,He=(1+ve-qe/(Y*Y))/(2*L),er=X(He),fr=p(er),Mr=R+i(fr,L-He);return[B(de/V(qe))*x/Mr,B(1-2*(er-ue*R-L*fr+(1+ve-2*L*He)*Mr)/O)]},le}function Xc(){var T=1,L=r.geoProjectionMutator(Tf),P=L(T);return P.ratio=function(R){return arguments.length?L(T=+R):T},P.scale(167.774).center([0,18.67])}var Ms=.7109889596207567,Oi=.0528035274542;function As(T,L){return L>-Ms?(T=Ke(T,L),T[1]+=Oi,T):Er(T,L)}As.invert=function(T,L){return L>-Ms?Ke.invert(T,L-Oi):Er.invert(T,L)};function jc(){return r.geoProjection(As).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ts(T,L){return n(L)>Ms?(T=Ke(T,L),T[1]-=L>0?Oi:-Oi,T):Er(T,L)}Ts.invert=function(T,L){return n(L)>Ms?Ke.invert(T,L+(L>0?Oi:-Oi)):Er.invert(T,L)};function Iv(){return r.geoProjection(Ts).scale(152.63)}function jo(T,L,P,R){var Y=V(4*x/(2*P+(1+T-L/2)*p(2*P)+(T+L)/2*p(4*P)+L/2*p(6*P))),O=V(R*p(P)*V((1+T*o(2*P)+L*o(4*P))/(1+T+L))),Z=P*ve(1);function ue(xe){return V(1+T*o(2*xe)+L*o(4*xe))}function ve(xe){var qe=xe*P;return(2*qe+(1+T-L/2)*p(2*qe)+(T+L)/2*p(4*qe)+L/2*p(6*qe))/P}function le(xe){return ue(xe)*p(xe)}var de=function(xe,qe){var He=P*ir(ve,Z*p(qe)/P,qe/x);isNaN(He)&&(He=P*m(qe));var er=Y*ue(He);return[er*O*xe/x*o(He),er/O*p(He)]};return de.invert=function(xe,qe){var He=ir(le,qe*O/Y);return[xe*x/(o(He)*Y*O*ue(He)),B(P*ve(He/P)/Z)]},P===0&&(Y=V(R/x),de=function(xe,qe){return[xe*Y,p(qe)/Y]},de.invert=function(xe,qe){return[xe/Y,B(qe*Y)]}),de}function kf(){var T=1,L=0,P=45*I,R=2,Y=r.geoProjectionMutator(jo),O=Y(T,L,P,R);return O.a=function(Z){return arguments.length?Y(T=+Z,L,P,R):T},O.b=function(Z){return arguments.length?Y(T,L=+Z,P,R):L},O.psiMax=function(Z){return arguments.length?Y(T,L,P=+Z*I,R):P*F},O.ratio=function(Z){return arguments.length?Y(T,L,P,R=+Z):R},O.scale(180.739)}function Fl(T,L,P,R,Y,O,Z,ue,ve,le,de){if(de.nanEncountered)return NaN;var xe,qe,He,er,fr,Mr,Zr,at,ot,st;if(xe=P-L,qe=T(L+xe*.25),He=T(P-xe*.25),isNaN(qe)){de.nanEncountered=!0;return}if(isNaN(He)){de.nanEncountered=!0;return}return er=xe*(R+4*qe+Y)/12,fr=xe*(Y+4*He+O)/12,Mr=er+fr,st=(Mr-Z)/15,le>ve?(de.maxDepthCount++,Mr+st):Math.abs(st)>1;do ve[Mr]>He?fr=Mr:er=Mr,Mr=er+fr>>1;while(Mr>er);var Zr=ve[Mr+1]-ve[Mr];return Zr&&(Zr=(He-ve[Mr+1])/Zr),(Mr+1+Zr)/Z}var xe=2*de(1)/x*O/P,qe=function(He,er){var fr=de(n(p(er))),Mr=R(fr)*He;return fr/=xe,[Mr,er>=0?fr:-fr]};return qe.invert=function(He,er){var fr;return er*=xe,n(er)<1&&(fr=m(er)*B(Y(n(er))*O)),[He/R(n(er)),fr]},qe}function co(){var T=0,L=2.5,P=1.183136,R=r.geoProjectionMutator(fo),Y=R(T,L,P);return Y.alpha=function(O){return arguments.length?R(T=+O,L,P):T},Y.k=function(O){return arguments.length?R(T,L=+O,P):L},Y.gamma=function(O){return arguments.length?R(T,L,P=+O):P},Y.scale(152.63)}function Sf(T,L){return n(T[0]-L[0])=0;--ve)P=T[1][ve],R=P[0][0],Y=P[0][1],O=P[1][1],Z=P[2][0],ue=P[2][1],L.push(xi([[Z-b,ue-b],[Z-b,O+b],[R+b,O+b],[R+b,Y-b]],30));return{type:"Polygon",coordinates:[t.merge(L)]}}function Ui(T,L,P){var R,Y;function O(ve,le){for(var de=le<0?-1:1,xe=L[+(le<0)],qe=0,He=xe.length-1;qexe[qe][2][0];++qe);var er=T(ve-xe[qe][1][0],le);return er[0]+=T(xe[qe][1][0],de*le>de*xe[qe][0][1]?xe[qe][0][1]:le)[0],er}P?O.invert=P(O):T.invert&&(O.invert=function(ve,le){for(var de=Y[+(le<0)],xe=L[+(le<0)],qe=0,He=de.length;qeer&&(fr=He,He=er,er=fr),[[xe,He],[qe,er]]})}),Z):L.map(function(le){return le.map(function(de){return[[de[0][0]*F,de[0][1]*F],[de[1][0]*F,de[1][1]*F],[de[2][0]*F,de[2][1]*F]]})})},L!=null&&Z.lobes(L),Z}var Il=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Bv(){return Ui(Ye,Il).scale(160.857)}var Yi=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Jo(){return Ui(Ts,Yi).scale(152.63)}var $o=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Ko(){return Ui(Ke,$o).scale(169.529)}var vo=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function ks(){return Ui(Ke,vo).scale(169.529).rotate([20,0])}var pu=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function Ss(){return Ui(As,pu,or).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Cs=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Qo(){return Ui(Er,Cs).scale(152.63).rotate([-20,0])}function Hl(T,L){return[3/z*T*V(x*x/3-L*L),L]}Hl.invert=function(T,L){return[z/3*T/V(x*x/3-L*L),L]};function Bl(){return r.geoProjection(Hl).scale(158.837)}function gu(T){function L(P,R){if(n(n(R)-_)2)return null;P/=2,R/=2;var O=P*P,Z=R*R,ue=2*R/(1+O+Z);return ue=h((1+ue)/(1-ue),1/T),[i(2*P,1-O-Z)/T,B((ue-1)/(ue+1))]},L}function mu(){var T=.5,L=r.geoProjectionMutator(gu),P=L(T);return P.spacing=function(R){return arguments.length?L(T=+R):T},P.scale(124.75)}var li=x/M;function yu(T,L){return[T*(1+V(o(L)))/2,L/(o(L/2)*o(T/6))]}yu.invert=function(T,L){var P=n(T),R=n(L),Y=b,O=_;Rb||n(Mr)>b)&&--Y>0);return Y&&[P,R]};function Qn(){return r.geoProjection(Fa).scale(139.98)}function Aa(T,L){return[p(T)/o(L),y(L)*o(T)]}Aa.invert=function(T,L){var P=T*T,R=L*L,Y=R+1,O=P+Y,Z=T?k*V((O-V(O*O-4*P))/P):1/V(Y);return[B(T*Z),m(L)*X(Z)]};function Gi(){return r.geoProjection(Aa).scale(144.049).clipAngle(90-.001)}function Ls(T){var L=o(T),P=y(A+T/2);function R(Y,O){var Z=O-T,ue=n(Z)=0;)de=T[le],xe=de[0]+ue*(He=xe)-ve*qe,qe=de[1]+ue*qe+ve*He;return xe=ue*(He=xe)-ve*qe,qe=ue*qe+ve*He,[xe,qe]}return P.invert=function(R,Y){var O=20,Z=R,ue=Y;do{for(var ve=L,le=T[ve],de=le[0],xe=le[1],qe=0,He=0,er;--ve>=0;)le=T[ve],qe=de+Z*(er=qe)-ue*He,He=xe+Z*He+ue*er,de=le[0]+Z*(er=de)-ue*xe,xe=le[1]+Z*xe+ue*er;qe=de+Z*(er=qe)-ue*He,He=xe+Z*He+ue*er,de=Z*(er=de)-ue*xe-R,xe=Z*xe+ue*er-Y;var fr=qe*qe+He*He,Mr,Zr;Z-=Mr=(de*qe+xe*He)/fr,ue-=Zr=(xe*qe-de*He)/fr}while(n(Mr)+n(Zr)>b*b&&--O>0);if(O){var at=V(Z*Z+ue*ue),ot=2*a(at*.5),st=p(ot);return[i(Z*st,at*o(ot)),at?B(ue*st/at):0]}},P}var Ov=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Uv=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Lf=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],qf=[[.9245,0],[0,0],[.01943,0]],Df=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Ef(){return wi(Ov,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Kc(){return wi(Uv,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Qc(){return wi(Lf,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function qs(){return wi(qf,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Ds(){return wi(Df,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function wi(T,L){var P=r.geoProjection($c(T)).rotate(L).clipAngle(90),R=r.geoRotation(L),Y=P.center;return delete P.rotate,P.center=function(O){return arguments.length?Y(R(O)):R.invert(Y())},P}var _u=V(6),Es=V(7);function xu(T,L){var P=B(7*p(L)/(3*_u));return[_u*T*(2*o(2*P/3)-1)/Es,9*p(P/3)/Es]}xu.invert=function(T,L){var P=3*B(L*Es/9);return[T*Es/(_u*(2*o(2*P/3)-1)),B(p(P)*3*_u/7)]};function e0(){return r.geoProjection(xu).scale(164.859)}function Pf(T,L){for(var P=(1+k)*p(L),R=L,Y=0,O;Y<25&&(R-=O=(p(R/2)+p(R)-P)/(.5*o(R/2)+o(R)),!(n(O)C&&--R>0);return O=P*P,Z=O*O,ue=O*Z,[T/(.84719-.13063*O+ue*ue*(-.04515+.05494*O-.02326*Z+.00331*ue)),P]};function Ps(){return r.geoProjection(Ul).scale(175.295)}function Rs(T,L){return[T*(1+o(L))/2,2*(L-y(L/2))]}Rs.invert=function(T,L){for(var P=L/2,R=0,Y=1/0;R<10&&n(Y)>b;++R){var O=o(L/2);L-=Y=(L-y(L/2)-P)/(1-.5/(O*O))}return[2*T/(1+o(L)),L]};function Rf(){return r.geoProjection(Rs).scale(152.63)}var po=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function r0(){return Ui(ke(1/0),po).rotate([20,0]).scale(152.63)}function zf(T,L){var P=p(L),R=o(L),Y=m(T);if(T===0||n(L)===_)return[0,L];if(L===0)return[T,0];if(n(T)===_)return[T*R,_*P];var O=x/(2*T)-2*T/x,Z=2*L/x,ue=(1-Z*Z)/(P-Z),ve=O*O,le=ue*ue,de=1+ve/le,xe=1+le/ve,qe=(O*P/ue-O/2)/de,He=(le*P/ve+ue/2)/xe,er=qe*qe+R*R/de,fr=He*He-(le*P*P/ve+ue*P-1)/xe;return[_*(qe+V(er)*Y),_*(He+V(fr<0?0:fr)*m(-L*O)*Y)]}zf.invert=function(T,L){T/=_,L/=_;var P=T*T,R=L*L,Y=P+R,O=x*x;return[T?(Y-1+V((1-Y)*(1-Y)+4*P))/(2*T)*_:0,ir(function(Z){return Y*(x*p(Z)-2*Z)*x+4*Z*Z*(L-p(Z))+2*x*Z-O*L},0)]};function t0(){return r.geoProjection(zf).scale(127.267)}var Nf=1.0148,Mu=.23185,Ff=-.14499,If=.02406,Gv=Nf,Hf=5*Mu,Mi=7*Ff,Bf=9*If,Yl=1.790857183;function Of(T,L){var P=L*L;return[T,L*(Nf+P*P*(Mu+P*(Ff+If*P)))]}Of.invert=function(T,L){L>Yl?L=Yl:L<-Yl&&(L=-Yl);var P=L,R;do{var Y=P*P;P-=R=(P*(Nf+Y*Y*(Mu+Y*(Ff+If*Y)))-L)/(Gv+Y*Y*(Hf+Y*(Mi+Bf*Y)))}while(n(R)>b);return[T,P]};function n0(){return r.geoProjection(Of).scale(139.319)}function rl(T,L){if(n(L)b&&--Y>0);return Z=y(R),[(n(L)=0;)if(R=L[ue],P[0]===R[0]&&P[1]===R[1]){if(O)return[O,P];O=P}}}function l0(T){for(var L=T.length,P=[],R=T[L-1],Y=0;Y0?[-R[0],0]:[180-R[0],180])};var L=Au.map(function(P){return{face:P,project:T(P)}});return[-1,0,0,1,0,1,4,5].forEach(function(P,R){var Y=L[P];Y&&(Y.children||(Y.children=[])).push(L[R])}),Gl(L[0],function(P,R){return L[P<-x/2?R<0?6:4:P<0?R<0?2:0:PR^He>R&&P<(qe-le)*(R-de)/(He-de)+le&&(Y=!Y)}return Y}function Su(T,L){var P=L.stream,R;if(!P)throw new Error("invalid projection");switch(T&&T.type){case"Feature":R=c0;break;case"FeatureCollection":R=f0;break;default:R=Cu;break}return R(T,P)}function f0(T,L){return{type:"FeatureCollection",features:T.features.map(function(P){return c0(P,L)})}}function c0(T,L){return{type:"Feature",id:T.id,properties:T.properties,geometry:Cu(T.geometry,L)}}function Uf(T,L){return{type:"GeometryCollection",geometries:T.geometries.map(function(P){return Cu(P,L)})}}function Cu(T,L){if(!T)return null;if(T.type==="GeometryCollection")return Uf(T,L);var P;switch(T.type){case"Point":P=Wl;break;case"MultiPoint":P=Wl;break;case"LineString":P=Lu;break;case"MultiLineString":P=Lu;break;case"Polygon":P=Os;break;case"MultiPolygon":P=Os;break;case"Sphere":P=Os;break;default:return null}return r.geoStream(T,L(P)),P.result()}var Zn=[],si=[],Wl={point:function(T,L){Zn.push([T,L])},result:function(){var T=Zn.length?Zn.length<2?{type:"Point",coordinates:Zn[0]}:{type:"MultiPoint",coordinates:Zn}:null;return Zn=[],T}},Lu={lineStart:ku,point:function(T,L){Zn.push([T,L])},lineEnd:function(){Zn.length&&(si.push(Zn),Zn=[])},result:function(){var T=si.length?si.length<2?{type:"LineString",coordinates:si[0]}:{type:"MultiLineString",coordinates:si}:null;return si=[],T}},Os={polygonStart:ku,lineStart:ku,point:function(T,L){Zn.push([T,L])},lineEnd:function(){var T=Zn.length;if(T){do Zn.push(Zn[0].slice());while(++T<4);si.push(Zn),Zn=[]}},polygonEnd:ku,result:function(){if(!si.length)return null;var T=[],L=[];return si.forEach(function(P){Bs(P)?T.push([P]):L.push(P)}),L.forEach(function(P){var R=P[0];T.some(function(Y){if(u0(Y[0],R))return Y.push(P),!0})||T.push([P])}),si=[],T.length?T.length>1?{type:"MultiPolygon",coordinates:T}:{type:"Polygon",coordinates:T[0]}:null}};function Yf(T){var L=T(_,0)[0]-T(-_,0)[0];function P(R,Y){var O=n(R)<_,Z=T(O?R:R>0?R-x:R+x,Y),ue=(Z[0]-Z[1])*k,ve=(Z[0]+Z[1])*k;if(O)return[ue,ve];var le=L*k,de=ue>0^ve>0?-1:1;return[de*ue-m(ve)*le,de*ve-m(ue)*le]}return T.invert&&(P.invert=function(R,Y){var O=(R+Y)*k,Z=(Y-R)*k,ue=n(O)<.5*L&&n(Z)<.5*L;if(!ue){var ve=L*k,le=O>0^Z>0?-1:1,de=-le*R+(Z>0?1:-1)*ve,xe=-le*Y+(O>0?1:-1)*ve;O=(-de-xe)*k,Z=(de-xe)*k}var qe=T.invert(O,Z);return ue||(qe[0]+=O>0?x:-x),qe}),r.geoProjection(P).rotate([-90,-90,45]).clipAngle(180-.001)}function H(){return Yf(vu).scale(176.423)}function J(){return Yf(lo).scale(111.48)}function ce(T,L){if(!(0<=(L=+L)&&L<=20))throw new Error("invalid digits");function P(le){var de=le.length,xe=2,qe=new Array(de);for(qe[0]=+le[0].toFixed(L),qe[1]=+le[1].toFixed(L);xe2||He[0]!=de[0]||He[1]!=de[1])&&(xe.push(He),de=He)}return xe.length===1&&le.length>1&&xe.push(P(le[le.length-1])),xe}function O(le){return le.map(Y)}function Z(le){if(le==null)return le;var de;switch(le.type){case"GeometryCollection":de={type:"GeometryCollection",geometries:le.geometries.map(Z)};break;case"Point":de={type:"Point",coordinates:P(le.coordinates)};break;case"MultiPoint":de={type:le.type,coordinates:R(le.coordinates)};break;case"LineString":de={type:le.type,coordinates:Y(le.coordinates)};break;case"MultiLineString":case"Polygon":de={type:le.type,coordinates:O(le.coordinates)};break;case"MultiPolygon":de={type:"MultiPolygon",coordinates:le.coordinates.map(O)};break;default:return le}return le.bbox!=null&&(de.bbox=le.bbox),de}function ue(le){var de={type:"Feature",properties:le.properties,geometry:Z(le.geometry)};return le.id!=null&&(de.id=le.id),le.bbox!=null&&(de.bbox=le.bbox),de}if(T!=null)switch(T.type){case"Feature":return ue(T);case"FeatureCollection":{var ve={type:"FeatureCollection",features:T.features.map(ue)};return T.bbox!=null&&(ve.bbox=T.bbox),ve}default:return Z(T)}return T}function oe(T){var L=p(T);function P(R,Y){var O=L?y(R*L/2)/L:R/2;if(!Y)return[2*O,-T];var Z=2*a(O*p(Y)),ue=1/y(Y);return[p(Z)*ue,Y+(1-o(Z))*ue-T]}return P.invert=function(R,Y){if(n(Y+=T)b&&--ue>0);var qe=R*(le=y(Z)),He=y(n(Y)0?_:-_)*(ve+Y*(de-Z)/2+Y*Y*(de-2*ve+Z)/2)]}Je.invert=function(T,L){var P=L/_,R=P*90,Y=v(18,n(R/5)),O=f(0,s(Y));do{var Z=Be[O][1],ue=Be[O+1][1],ve=Be[v(19,O+2)][1],le=ve-Z,de=ve-2*ue+Z,xe=2*(n(P)-ue)/le,qe=de/le,He=xe*(1-qe*xe*(1-2*qe*xe));if(He>=0||O===1){R=(L>=0?5:-5)*(He+Y);var er=50,fr;do Y=v(18,n(R)/5),O=s(Y),He=Y-O,Z=Be[O][1],ue=Be[O+1][1],ve=Be[v(19,O+2)][1],R-=(fr=(L>=0?_:-_)*(ue+He*(ve-Z)/2+He*He*(ve-2*ue+Z)/2)-L)*F;while(n(fr)>C&&--er>0);break}}while(--O>=0);var Mr=Be[O][0],Zr=Be[O+1][0],at=Be[v(19,O+2)][0];return[T/(Zr+He*(at-Mr)/2+He*He*(at-2*Zr+Mr)/2),R*I]};function nr(){return r.geoProjection(Je).scale(152.63)}function lr(T){function L(P,R){var Y=o(R),O=(T-1)/(T-Y*o(P));return[O*Y*p(P),O*p(R)]}return L.invert=function(P,R){var Y=P*P+R*R,O=V(Y),Z=(T-V(1-Y*(T+1)/(T-1)))/((T-1)/O+O/(T-1));return[i(P*Z,O*V(1-Z*Z)),O?B(R*Z/O):0]},L}function yr(T,L){var P=lr(T);if(!L)return P;var R=o(L),Y=p(L);function O(Z,ue){var ve=P(Z,ue),le=ve[1],de=le*Y/(T-1)+R;return[ve[0]*R/de,le/de]}return O.invert=function(Z,ue){var ve=(T-1)/(T-1-ue*Y);return P.invert(ve*Z,ve*ue*R)},O}function Qe(){var T=2,L=0,P=r.geoProjectionMutator(yr),R=P(T,L);return R.distance=function(Y){return arguments.length?P(T=+Y,L):T},R.tilt=function(Y){return arguments.length?P(T,L=Y*I):L*F},R.scale(432.147).clipAngle(X(1/T)*F-1e-6)}var vr=1e-4,sr=1e4,xr=-180,Sr=xr+vr,et=180,jr=et-vr,tt=-90,nt=tt+vr,Lr=90,Br=Lr-vr;function it(T){return T.length>0}function pt(T){return Math.floor(T*sr)/sr}function Vt(T){return T===tt||T===Lr?[0,T]:[xr,pt(T)]}function tn(T){var L=T[0],P=T[1],R=!1;return L<=Sr?(L=xr,R=!0):L>=jr&&(L=et,R=!0),P<=nt?(P=tt,R=!0):P>=Br&&(P=Lr,R=!0),R?[L,P]:T}function Zt(T){return T.map(tn)}function gn(T,L,P){for(var R=0,Y=T.length;R=jr||de<=nt||de>=Br){O[Z]=tn(ve);for(var xe=Z+1;xeSr&&Hent&&er=ue)break;P.push({index:-1,polygon:L,ring:O=O.slice(xe-1)}),O[0]=Vt(O[0][1]),Z=-1,ue=O.length}}}}function Lt(T){var L,P=T.length,R={},Y={},O,Z,ue,ve,le;for(L=0;L0?x-ue:ue)*F],le=r.geoProjection(T(Z)).rotate(ve),de=r.geoRotation(ve),xe=le.center;return delete le.rotate,le.center=function(qe){return arguments.length?xe(de(qe)):de.invert(xe())},le.clipAngle(90)}function ga(T){var L=o(T);function P(R,Y){var O=r.geoGnomonicRaw(R,Y);return O[0]*=L,O}return P.invert=function(R,Y){return r.geoGnomonicRaw.invert(R/L,Y)},P}function Xa(){return Wi([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Wi(T,L){return Un(ga,T,L)}function Ti(T){if(!(T*=2))return r.geoAzimuthalEquidistantRaw;var L=-T/2,P=-L,R=T*T,Y=y(P),O=.5/p(P);function Z(ue,ve){var le=X(o(ve)*o(ue-L)),de=X(o(ve)*o(ue-P)),xe=ve<0?-1:1;return le*=le,de*=de,[(le-de)/(2*T),xe*V(4*R*de-(R-le+de)*(R-le+de))/(2*T)]}return Z.invert=function(ue,ve){var le=ve*ve,de=o(V(le+(qe=ue+L)*qe)),xe=o(V(le+(qe=ue+P)*qe)),qe,He;return[i(He=de-xe,qe=(de+xe)*Y),(ve<0?-1:1)*X(V(qe*qe+He*He)*O)]},Z}function al(){return ui([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function ui(T,L){return Un(Ti,T,L)}function il(T,L){if(n(L)b&&--ue>0);return[m(T)*(V(Y*Y+4)+Y)*x/4,_*Z]};function Zi(){return r.geoProjection(Gf).scale(127.16)}function Xh(T,L,P,R,Y){function O(Z,ue){var ve=P*p(R*ue),le=V(1-ve*ve),de=V(2/(1+le*o(Z*=Y)));return[T*le*de*p(Z),L*ve*de]}return O.invert=function(Z,ue){var ve=Z/T,le=ue/L,de=V(ve*ve+le*le),xe=2*B(de/2);return[i(Z*y(xe),T*de)/Y,de&&B(ue*p(xe)/(L*P*de))/R]},O}function jh(T,L,P,R){var Y=x/3;T=f(T,b),L=f(L,b),T=v(T,_),L=v(L,x-b),P=f(P,0),P=v(P,100-b),R=f(R,b);var O=P/100+1,Z=R/100,ue=X(O*o(Y))/Y,ve=p(T)/p(ue*_),le=L/x,de=V(Z*p(T/2)/p(L/2)),xe=de/V(le*ve*ue),qe=1/(de*V(le*ve*ue));return Xh(xe,qe,ve,ue,le)}function d0(){var T=65*I,L=60*I,P=20,R=200,Y=r.geoProjectionMutator(jh),O=Y(T,L,P,R);return O.poleline=function(Z){return arguments.length?Y(T=+Z*I,L,P,R):T*F},O.parallels=function(Z){return arguments.length?Y(T,L=+Z*I,P,R):L*F},O.inflation=function(Z){return arguments.length?Y(T,L,P=+Z,R):P},O.ratio=function(Z){return arguments.length?Y(T,L,P,R=+Z):R},O.scale(163.775)}function jv(){return d0().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var Jh=4*x+3*V(3),$h=2*V(2*x*V(3)/Jh),Kh=cr($h*V(3)/x,$h,Jh/6);function p0(){return r.geoProjection(Kh).scale(176.84)}function Vf(T,L){return[T*V(1-3*L*L/(x*x)),L]}Vf.invert=function(T,L){return[T/V(1-3*L*L/(x*x)),L]};function Qh(){return r.geoProjection(Vf).scale(152.63)}function Jv(T,L){var P=o(L),R=o(T)*P,Y=1-R,O=o(T=i(p(T)*P,-p(L))),Z=p(T);return P=V(1-R*R),[Z*P-O*Y,-O*P-Z*Y]}Jv.invert=function(T,L){var P=(T*T+L*L)/-2,R=V(-P*(2+P)),Y=L*P+T*R,O=T*P-L*R,Z=V(O*O+Y*Y);return[i(R*Y,Z*(1+P)),Z?-B(R*O/Z):0]};function xy(){return r.geoProjection(Jv).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function $v(T,L){var P=Ne(T,L);return[(P[0]+T/_)/2,(P[1]+L)/2]}$v.invert=function(T,L){var P=T,R=L,Y=25;do{var O=o(R),Z=p(R),ue=p(2*R),ve=Z*Z,le=O*O,de=p(P),xe=o(P/2),qe=p(P/2),He=qe*qe,er=1-le*xe*xe,fr=er?X(O*xe)*V(Mr=1/er):Mr=0,Mr,Zr=.5*(2*fr*O*qe+P/_)-T,at=.5*(fr*Z+R)-L,ot=.5*Mr*(le*He+fr*O*xe*ve)+.5/_,st=Mr*(de*ue/4-fr*Z*qe),vt=.125*Mr*(ue*qe-fr*Z*le*de),ln=.5*Mr*(ve*xe+fr*He*O)+.5,Mn=st*vt-ln*ot,zt=(at*st-Zr*ln)/Mn,Fn=(Zr*vt-at*ot)/Mn;P-=zt,R-=Fn}while((n(zt)>b||n(Fn)>b)&&--Y>0);return[P,R]};function ki(){return r.geoProjection($v).scale(158.837)}e.geoNaturalEarth=r.geoNaturalEarth1,e.geoNaturalEarthRaw=r.geoNaturalEarth1Raw,e.geoAiry=De,e.geoAiryRaw=he,e.geoAitoff=Fe,e.geoAitoffRaw=Ne,e.geoArmadillo=Le,e.geoArmadilloRaw=Xe,e.geoAugust=se,e.geoAugustRaw=rr,e.geoBaker=U,e.geoBakerRaw=pe,e.geoBerghaus=$,e.geoBerghausRaw=Q,e.geoBertin1953=tr,e.geoBertin1953Raw=Ue,e.geoBoggs=Ar,e.geoBoggsRaw=Ye,e.geoBonne=hr,e.geoBonneRaw=je,e.geoBottomley=mr,e.geoBottomleyRaw=wr,e.geoBromley=Dr,e.geoBromleyRaw=Tr,e.geoChamberlin=Ze,e.geoChamberlinRaw=be,e.geoChamberlinAfrica=$e,e.geoCollignon=Hr,e.geoCollignonRaw=qr,e.geoCraig=lt,e.geoCraigRaw=Pr,e.geoCraster=Ht,e.geoCrasterRaw=Nt,e.geoCylindricalEqualArea=Tn,e.geoCylindricalEqualAreaRaw=An,e.geoCylindricalStereographic=Ft,e.geoCylindricalStereographicRaw=cn,e.geoEckert1=en,e.geoEckert1Raw=jt,e.geoEckert2=aa,e.geoEckert2Raw=Jt,e.geoEckert3=rn,e.geoEckert3Raw=rt,e.geoEckert4=dn,e.geoEckert4Raw=St,e.geoEckert5=an,e.geoEckert5Raw=pn,e.geoEckert6=da,e.geoEckert6Raw=vn,e.geoEisenlohr=pa,e.geoEisenlohrRaw=Na,e.geoFahey=Bn,e.geoFaheyRaw=Bt,e.geoFoucaut=io,e.geoFoucautRaw=gi,e.geoFoucautSinusoidal=ms,e.geoFoucautSinusoidalRaw=mi,e.geoGilbert=ys,e.geoGingery=Yo,e.geoGingeryRaw=Uo,e.geoGinzburg4=Ct,e.geoGinzburg4Raw=Kr,e.geoGinzburg5=Ur,e.geoGinzburg5Raw=Ot,e.geoGinzburg6=on,e.geoGinzburg6Raw=Wn,e.geoGinzburg8=At,e.geoGinzburg8Raw=Pn,e.geoGinzburg9=Go,e.geoGinzburg9Raw=Wa,e.geoGringorten=Wo,e.geoGringortenRaw=vu,e.geoGuyou=bs,e.geoGuyouRaw=lo,e.geoHammer=Ie,e.geoHammerRaw=ke,e.geoHammerRetroazimuthal=_s,e.geoHammerRetroazimuthalRaw=Mf,e.geoHealpix=Nl,e.geoHealpixRaw=so,e.geoHill=Xc,e.geoHillRaw=Tf,e.geoHomolosine=Iv,e.geoHomolosineRaw=Ts,e.geoHufnagel=kf,e.geoHufnagelRaw=jo,e.geoHyperelliptical=co,e.geoHyperellipticalRaw=fo,e.geoInterrupt=Ui,e.geoInterruptedBoggs=Bv,e.geoInterruptedHomolosine=Jo,e.geoInterruptedMollweide=Ko,e.geoInterruptedMollweideHemispheres=ks,e.geoInterruptedSinuMollweide=Ss,e.geoInterruptedSinusoidal=Qo,e.geoKavrayskiy7=Bl,e.geoKavrayskiy7Raw=Hl,e.geoLagrange=mu,e.geoLagrangeRaw=gu,e.geoLarrivee=bu,e.geoLarriveeRaw=yu,e.geoLaskowski=Qn,e.geoLaskowskiRaw=Fa,e.geoLittrow=Gi,e.geoLittrowRaw=Aa,e.geoLoximuthal=el,e.geoLoximuthalRaw=Ls,e.geoMiller=Cf,e.geoMillerRaw=Ol,e.geoModifiedStereographic=wi,e.geoModifiedStereographicRaw=$c,e.geoModifiedStereographicAlaska=Ef,e.geoModifiedStereographicGs48=Kc,e.geoModifiedStereographicGs50=Qc,e.geoModifiedStereographicMiller=qs,e.geoModifiedStereographicLee=Ds,e.geoMollweide=pr,e.geoMollweideRaw=Ke,e.geoMtFlatPolarParabolic=e0,e.geoMtFlatPolarParabolicRaw=xu,e.geoMtFlatPolarQuartic=Yv,e.geoMtFlatPolarQuarticRaw=Pf,e.geoMtFlatPolarSinusoidal=wu,e.geoMtFlatPolarSinusoidalRaw=ho,e.geoNaturalEarth2=Ps,e.geoNaturalEarth2Raw=Ul,e.geoNellHammer=Rf,e.geoNellHammerRaw=Rs,e.geoInterruptedQuarticAuthalic=r0,e.geoNicolosi=t0,e.geoNicolosiRaw=zf,e.geoPatterson=n0,e.geoPattersonRaw=Of,e.geoPolyconic=a0,e.geoPolyconicRaw=rl,e.geoPolyhedral=Gl,e.geoPolyhedralButterfly=Ns,e.geoPolyhedralCollignon=Xv,e.geoPolyhedralWaterman=Is,e.geoProject=Su,e.geoGringortenQuincuncial=H,e.geoPeirceQuincuncial=J,e.geoPierceQuincuncial=J,e.geoQuantize=ce,e.geoQuincuncial=Yf,e.geoRectangularPolyconic=Me,e.geoRectangularPolyconicRaw=oe,e.geoRobinson=nr,e.geoRobinsonRaw=Je,e.geoSatellite=Qe,e.geoSatelliteRaw=yr,e.geoSinuMollweide=jc,e.geoSinuMollweideRaw=As,e.geoSinusoidal=Ae,e.geoSinusoidalRaw=Er,e.geoStitch=mn,e.geoTimes=Wt,e.geoTimesRaw=Gr,e.geoTwoPointAzimuthal=Wi,e.geoTwoPointAzimuthalRaw=ga,e.geoTwoPointAzimuthalUsa=Xa,e.geoTwoPointEquidistant=ui,e.geoTwoPointEquidistantRaw=Ti,e.geoTwoPointEquidistantUsa=al,e.geoVanDerGrinten=Zl,e.geoVanDerGrintenRaw=il,e.geoVanDerGrinten2=v0,e.geoVanDerGrinten2Raw=qu,e.geoVanDerGrinten3=Zh,e.geoVanDerGrinten3Raw=h0,e.geoVanDerGrinten4=Zi,e.geoVanDerGrinten4Raw=Gf,e.geoWagner=d0,e.geoWagner7=jv,e.geoWagnerRaw=jh,e.geoWagner4=p0,e.geoWagner4Raw=Kh,e.geoWagner6=Qh,e.geoWagner6Raw=Vf,e.geoWiechel=xy,e.geoWiechelRaw=Jv,e.geoWinkel3=ki,e.geoWinkel3Raw=$v,Object.defineProperty(e,"__esModule",{value:!0})})});var cF=te((Ove,fF)=>{"use strict";var ha=kt(),i_=gr(),Zae=dt(),Ev=Math.PI/180,Hc=180/Math.PI,l_={cursor:"pointer"},s_={cursor:"auto"};function Xae(e,r){var t=e.projection,n;return r._isScoped?n=jae:r._isClipped?n=$ae:n=Jae,n(e,t)}fF.exports=Xae;function u_(e,r){return ha.behavior.zoom().translate(r.translate()).scale(r.scale())}function f_(e,r,t){var n=e.id,a=e.graphDiv,i=a.layout,o=i[n],l=a._fullLayout,s=l[n],u={},f={};function v(h,d){u[n+"."+h]=i_.nestedProperty(o,h).get(),Zae.call("_storeDirectGUIEdit",i,l._preGUI,u);var m=i_.nestedProperty(s,h);m.get()!==d&&(m.set(d),i_.nestedProperty(o,h).set(d),f[n+"."+h]=d)}t(v),v("projection.scale",r.scale()/e.fitScale),v("fitbounds",!1),a.emit("plotly_relayout",f)}function jae(e,r){var t=u_(e,r);function n(){ha.select(this).style(l_)}function a(){r.scale(ha.event.scale).translate(ha.event.translate),e.render(!0);var l=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":l[0],"geo.center.lat":l[1]})}function i(l){var s=r.invert(e.midPt);l("center.lon",s[0]),l("center.lat",s[1])}function o(){ha.select(this).style(s_),f_(e,r,i)}return t.on("zoomstart",n).on("zoom",a).on("zoomend",o),t}function Jae(e,r){var t=u_(e,r),n=2,a,i,o,l,s,u,f,v,h;function d(x){return r.invert(x)}function m(x){var _=d(x);if(!_)return!0;var A=r(_);return Math.abs(A[0]-x[0])>n||Math.abs(A[1]-x[1])>n}function p(){ha.select(this).style(l_),a=ha.mouse(this),i=r.rotate(),o=r.translate(),l=i,s=d(a)}function y(){if(u=ha.mouse(this),m(a)){t.scale(r.scale()),t.translate(r.translate());return}r.scale(ha.event.scale),r.translate([o[0],ha.event.translate[1]]),s?d(u)&&(v=d(u),f=[l[0]+(v[0]-s[0]),i[1],i[2]],r.rotate(f),l=f):(a=u,s=d(a)),h=!0,e.render(!0);var x=r.rotate(),_=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":_[0],"geo.center.lat":_[1],"geo.projection.rotation.lon":-x[0]})}function b(){ha.select(this).style(s_),h&&f_(e,r,C)}function C(x){var _=r.rotate(),A=r.invert(e.midPt);x("projection.rotation.lon",-_[0]),x("center.lon",A[0]),x("center.lat",A[1])}return t.on("zoomstart",p).on("zoom",y).on("zoomend",b),t}function $ae(e,r){var t={r:r.rotate(),k:r.scale()},n=u_(e,r),a=iie(n,"zoomstart","zoom","zoomend"),i=0,o=n.on,l;n.on("zoomstart",function(){ha.select(this).style(l_);var h=ha.mouse(this),d=r.rotate(),m=d,p=r.translate(),y=Kae(d);l=oy(r,h),o.call(n,"zoom",function(){var b=ha.mouse(this);if(r.scale(t.k=ha.event.scale),!l)h=b,l=oy(r,h);else if(oy(r,b)){r.rotate(d).translate(p);var C=oy(r,b),x=eie(l,C),_=tie(Qae(y,x)),A=t.r=rie(_,l,m);(!isFinite(A[0])||!isFinite(A[1])||!isFinite(A[2]))&&(A=m),r.rotate(A),m=A}u(a.of(this,arguments))}),s(a.of(this,arguments))}).on("zoomend",function(){ha.select(this).style(s_),o.call(n,"zoom",null),f(a.of(this,arguments)),f_(e,r,v)}).on("zoom.redraw",function(){e.render(!0);var h=r.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function s(h){i++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function f(h){--i||h({type:"zoomend"})}function v(h){var d=r.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return ha.rebind(n,a,"on")}function oy(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&nie(t)}function Kae(e){var r=.5*e[0]*Ev,t=.5*e[1]*Ev,n=.5*e[2]*Ev,a=Math.sin(r),i=Math.cos(r),o=Math.sin(t),l=Math.cos(t),s=Math.sin(n),u=Math.cos(n);return[i*l*u+a*o*s,a*l*u-i*o*s,i*o*u+a*l*s,i*l*s-a*o*u]}function Qae(e,r){var t=e[0],n=e[1],a=e[2],i=e[3],o=r[0],l=r[1],s=r[2],u=r[3];return[t*o-n*l-a*s-i*u,t*l+n*o+a*u-i*s,t*s-n*u+a*o+i*l,t*u+n*s-a*l+i*o]}function eie(e,r){if(!(!e||!r)){var t=aie(e,r),n=Math.sqrt(uF(t,t)),a=.5*Math.acos(Math.max(-1,Math.min(1,uF(e,r)))),i=Math.sin(a)/n;return n&&[Math.cos(a),t[2]*i,-t[1]*i,t[0]*i]}}function rie(e,r,t){var n=o_(r,2,e[0]);n=o_(n,1,e[1]),n=o_(n,0,e[2]-t[2]);var a=r[0],i=r[1],o=r[2],l=n[0],s=n[1],u=n[2],f=Math.atan2(i,a)*Hc,v=Math.sqrt(a*a+i*i),h,d;Math.abs(s)>v?(d=(s>0?90:-90)-f,h=0):(d=Math.asin(s/v)*Hc-f,h=Math.sqrt(v*v-s*s));var m=180-d-2*f,p=(Math.atan2(u,l)-Math.atan2(o,h))*Hc,y=(Math.atan2(u,l)-Math.atan2(o,-h))*Hc,b=lF(t[0],t[1],d,p),C=lF(t[0],t[1],m,y);return b<=C?[d,p,t[2]]:[m,y,t[2]]}function lF(e,r,t,n){var a=sF(t-e),i=sF(n-r);return Math.sqrt(a*a+i*i)}function sF(e){return(e%360+540)%360-180}function o_(e,r,t){var n=t*Ev,a=e.slice(),i=r===0?1:0,o=r===2?1:2,l=Math.cos(n),s=Math.sin(n);return a[i]=e[i]*l-e[o]*s,a[o]=e[o]*l+e[i]*s,a}function tie(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*Hc,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*Hc,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*Hc]}function nie(e){var r=e[0]*Ev,t=e[1]*Ev,n=Math.cos(t);return[n*Math.cos(r),n*Math.sin(r),Math.sin(t)]}function uF(e,r){for(var t=0,n=0,a=e.length;n{"use strict";var fu=kt(),h_=a_(),oie=h_.geoPath,lie=h_.geoDistance,sie=oF(),uie=dt(),Oh=gr(),fie=Oh.strTranslate,ly=Pt(),Bh=fn(),vF=ss(),cie=fa(),v_=Dn(),hF=Ju().getAutoRange,c_=To(),vie=au().prepSelect,hie=au().clearOutline,die=au().selectOnClick,pie=cF(),pi=Fh(),gie=ey(),pF=Gm(),mie=U4().feature;function gF(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var Dl=gF.prototype;mF.exports=function(r){return new gF(r)};Dl.plot=function(e,r,t,n){var a=this;if(n)return a.update(e,r,!0);a._geoCalcData=e,a._fullLayout=r;var i=r[this.id],o=[],l=!1;for(var s in pi.layerNameToAdjective)if(s!=="frame"&&i["show"+s]){l=!0;break}for(var u=!1,f=0;f0&&o._module.calcGeoJSON(i,r)}if(!t){var l=this.updateProjection(e,r);if(l)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(r,n),this.updateDims(r,n),this.updateFx(r,n),cie.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var s=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=s.selectAll(".point"),this.dataPoints.text=s.selectAll("text"),this.dataPaths.line=s.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};Dl.updateProjection=function(e,r){var t=this.graphDiv,n=r[this.id],a=r._size,i=n.domain,o=n.projection,l=n.lonaxis,s=n.lataxis,u=l._ax,f=s._ax,v=this.projection=yie(n),h=[[a.l+a.w*i.x[0],a.t+a.h*(1-i.y[1])],[a.l+a.w*i.x[1],a.t+a.h*(1-i.y[0])]],d=n.center||{},m=o.rotation||{},p=l.range||[],y=s.range||[];if(n.fitbounds){u._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],u.range=hF(t,u),f.range=hF(t,f);var b=(u.range[0]+u.range[1])/2,C=(f.range[0]+f.range[1])/2;if(n._isScoped)d={lon:b,lat:C};else if(n._isClipped){d={lon:b,lat:C},m={lon:b,lat:C,roll:m.roll};var x=o.type,_=pi.lonaxisSpan[x]/2||180,A=pi.lataxisSpan[x]/2||90;p=[b-_,b+_],y=[C-A,C+A]}else d={lon:b,lat:C},m={lon:b,lat:m.lat,roll:m.roll}}v.center([d.lon-m.lon,d.lat-m.lat]).rotate([-m.lon,-m.lat,m.roll]).parallels(o.parallels);var k=dF(p,y);v.fitExtent(h,k);var M=this.bounds=v.getBounds(k),E=this.fitScale=v.scale(),z=v.translate();if(n.fitbounds){var F=v.getBounds(dF(u.range,f.range)),I=Math.min((M[1][0]-M[0][0])/(F[1][0]-F[0][0]),(M[1][1]-M[0][1])/(F[1][1]-F[0][1]));isFinite(I)?v.scale(I*E):Oh.warn("Something went wrong during"+this.id+"fitbounds computations.")}else v.scale(o.scale*E);var W=this.midPt=[(M[0][0]+M[1][0])/2,(M[0][1]+M[1][1])/2];if(v.translate([z[0]+(W[0]-z[0]),z[1]+(W[1]-z[1])]).clipExtent(M),n._isAlbersUsa){var B=v([d.lon,d.lat]),X=v.translate();v.translate([X[0]-(B[0]-X[0]),X[1]-(B[1]-X[1])])}};Dl.updateBaseLayers=function(e,r){var t=this,n=t.topojson,a=t.layers,i=t.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function l(h){return!!pi.lineLayers[h]}function s(h){return!!pi.fillLayers[h]}var u=this.hasChoropleth?pi.layersForChoropleth:pi.layers,f=u.filter(function(h){return l(h)||s(h)?r["show"+h]:o(h)?r[h].showgrid:!0}),v=t.framework.selectAll(".layer").data(f,String);v.exit().each(function(h){delete a[h],delete i[h],fu.select(this).remove()}),v.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=a[h]=fu.select(this);h==="bg"?t.bgRect=d.append("rect").style("pointer-events","all"):o(h)?i[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):l(h)?i[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):s(h)&&(i[h]=d.append("path").style("stroke","none"))}),v.order(),v.each(function(h){var d=i[h],m=pi.layerNameToAdjective[h];h==="frame"?d.datum(pi.sphereSVG):l(h)||s(h)?d.datum(mie(n,n.objects[h])):o(h)&&d.datum(bie(h,r,e)).call(ly.stroke,r[h].gridcolor).call(Bh.dashLine,r[h].griddash,r[h].gridwidth),l(h)?d.call(ly.stroke,r[m+"color"]).call(Bh.dashLine,"",r[m+"width"]):s(h)&&d.call(ly.fill,r[m+"color"])})};Dl.updateDims=function(e,r){var t=this.bounds,n=(r.framewidth||0)/2,a=t[0][0]-n,i=t[0][1]-n,o=t[1][0]-a+n,l=t[1][1]-i+n;Bh.setRect(this.clipRect,a,i,o,l),this.bgRect.call(Bh.setRect,a,i,o,l).call(ly.fill,r.bgcolor),this.xaxis._offset=a,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l};Dl.updateFx=function(e,r){var t=this,n=t.graphDiv,a=t.bgRect,i=e.dragmode,o=e.clickmode;if(t.isStatic)return;function l(){var v=t.viewInitial,h={};for(var d in v)h[t.id+"."+d]=v[d];uie.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function s(v){return t.projection.invert([v[0]+t.xaxis._offset,v[1]+t.yaxis._offset])}var u=function(v,h){if(h.isRect){var d=v.range={};d[t.id]=[s([h.xmin,h.ymin]),s([h.xmax,h.ymax])]}else{var m=v.lassoPoints={};m[t.id]=h.map(s)}},f={element:t.bgRect.node(),gd:n,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:u},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id,clickFn:function(v){v===2&&hie(n)}};i==="pan"?(a.node().onmousedown=null,a.call(pie(t,r)),a.on("dblclick.zoom",l),n._context._scrollZoom.geo||a.on("wheel.zoom",null)):(i==="select"||i==="lasso")&&(a.on(".zoom",null),f.prepFn=function(v,h,d){vie(v,h,d,f,i)},c_.init(f)),a.on("mousemove",function(){var v=t.projection.invert(Oh.getPositionFromD3Event());if(!v)return c_.unhover(n,fu.event);t.xaxis.p2c=function(){return v[0]},t.yaxis.p2c=function(){return v[1]},vF.hover(n,fu.event,t.id)}),a.on("mouseout",function(){n._dragging||c_.unhover(n,fu.event)}),a.on("click",function(){i!=="select"&&i!=="lasso"&&(o.indexOf("select")>-1&&die(fu.event,n,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&vF.click(n,fu.event))})};Dl.makeFramework=function(){var e=this,r=e.graphDiv,t=r._fullLayout,n="clip"+t._uid+e.id;e.clipDef=t._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=fu.select(e.container).append("g").attr("class","geo "+e.id).call(Bh.setClipUrl,n,r),e.project=function(a){var i=e.projection(a);return i?[i[0]-e.xaxis._offset,i[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(a){return e.project(a)[0]}},e.yaxis={_id:"y",c2p:function(a){return e.project(a)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},v_.setConvert(e.mockAxis,t)};Dl.saveViewInitial=function(e){var r=e.center||{},t=e.projection,n=t.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":t.scale};var a;e._isScoped?a={"center.lon":r.lon,"center.lat":r.lat}:e._isClipped?a={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:a={"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":n.lon},Oh.extendFlat(this.viewInitial,a)};Dl.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};Dl._render=function(){var e=this.projection,r=e.getPath(),t;function n(i){var o=e(i.lonlat);return o?fie(o[0],o[1]):null}function a(i){return e.isLonLatOverEdges(i.lonlat)?"none":null}for(t in this.basePaths)this.basePaths[t].attr("d",r);for(t in this.dataPaths)this.dataPaths[t].attr("d",function(i){return r(i.geojson)});for(t in this.dataPoints)this.dataPoints[t].attr("display",a).attr("transform",n)};function yie(e){var r=e.projection,t=r.type,n=pi.projNames[t];n="geo"+Oh.titleCase(n);for(var a=h_[n]||sie[n],i=a(),o=e._isSatellite?Math.acos(1/r.distance)*180/Math.PI:e._isClipped?pi.lonaxisSpan[t]/2:null,l=["center","rotate","parallels","clipExtent"],s=function(v){return v?i:[]},u=0;um}else return!1},i.getPath=function(){return oie().projection(i)},i.getBounds=function(v){return i.getPath().bounds(v)},i.precision(pi.precision),e._isSatellite&&i.tilt(r.tilt).distance(r.distance),o&&i.clipAngle(o-pi.clipPad),i}function bie(e,r,t){var n=1e-6,a=2.5,i=r[e],o=pi.scopeDefaults[r.scope],l,s,u;e==="lonaxis"?(l=o.lonaxisRange,s=o.lataxisRange,u=function(C,x){return[C,x]}):e==="lataxis"&&(l=o.lataxisRange,s=o.lonaxisRange,u=function(C,x){return[x,C]});var f={type:"linear",range:[l[0],l[1]-n],tick0:i.tick0,dtick:i.dtick};v_.setConvert(f,t);var v=v_.calcTicks(f);!r.isScoped&&e==="lonaxis"&&v.pop();for(var h=v.length,d=new Array(h),m=0;m0&&a<0&&(a+=360);var l=(a-n)/4;return{type:"Polygon",coordinates:[[[n,i],[n,o],[n+l,o],[n+2*l,o],[n+3*l,o],[a,o],[a,i],[a-l,i],[a-2*l,i],[a-3*l,i],[n,i]]]}}});var d_=te((Yve,xF)=>{"use strict";var Rv=vl(),_ie=Nm().attributes,xie=Kl().dash,Pv=Fh(),wie=_o().overrideAll,bF=Ld(),_F={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:Rv.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:xie},Mie=xF.exports=wie({domain:_ie({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:bF(Pv.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:bF(Pv.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:Rv.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:Pv.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:Pv.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:Pv.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:Pv.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:Rv.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:Rv.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:Rv.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:Rv.background},lonaxis:_F,lataxis:_F},"plot","from-root");Mie.uirevision={valType:"any",editType:"none"}});var MF=te((Gve,wF)=>{"use strict";var Aie=gr(),Tie=bn(),kie=Nm().defaults;wF.exports=function(r,t,n,a){var i=a.type,o=a.attributes,l=a.handleDefaults,s=a.partition||"x",u=t._subplots[i],f=u.length,v=f&&u[0].replace(/\d+$/,""),h,d;function m(C,x){return Aie.coerce(h,d,o,C,x)}for(var p=0;p{"use strict";var sy=gr(),Sie=MF(),Cie=b1().getSubplotData,uy=Fh(),Lie=d_(),AF=uy.axesNames;TF.exports=function(r,t,n){Sie(r,t,n,{type:"geo",attributes:Lie,handleDefaults:qie,fullData:n,partition:"y"})};function qie(e,r,t,n){var a=Cie(n.fullData,"geo",n.id),i=a.map(function(he){return he.index}),o=t("resolution"),l=t("scope"),s=uy.scopeDefaults[l],u=t("projection.type",s.projType),f=r._isAlbersUsa=u==="albers usa";f&&(l=r.scope="usa");var v=r._isScoped=l!=="world",h=r._isSatellite=u==="satellite",d=r._isConic=u.indexOf("conic")!==-1||u==="albers",m=r._isClipped=!!uy.lonaxisSpan[u];if(e.visible===!1){var p=sy.extendDeep({},r._template);p.showcoastlines=!1,p.showcountries=!1,p.showframe=!1,p.showlakes=!1,p.showland=!1,p.showocean=!1,p.showrivers=!1,p.showsubunits=!1,p.lonaxis&&(p.lonaxis.showgrid=!1),p.lataxis&&(p.lataxis.showgrid=!1),r._template=p}for(var y=t("visible"),b,C=0;C0&&B<0&&(B+=360);var X=(W+B)/2,V;if(!f){var re=v?s.projRotate:[X,0,0];V=t("projection.rotation.lon",re[0]),t("projection.rotation.lat",re[1]),t("projection.rotation.roll",re[2]),b=t("showcoastlines",!v&&y),b&&(t("coastlinecolor"),t("coastlinewidth")),b=t("showocean",y?void 0:!1),b&&t("oceancolor")}var ae,K;if(f?(ae=-96.6,K=38.7):(ae=v?X:V,K=(I[0]+I[1])/2),t("center.lon",ae),t("center.lat",K),h&&(t("projection.tilt"),t("projection.distance")),d){var ee=s.projParallels||[0,60];t("projection.parallels",ee)}t("projection.scale"),b=t("showland",y?void 0:!1),b&&t("landcolor"),b=t("showlakes",y?void 0:!1),b&&t("lakecolor"),b=t("showrivers",y?void 0:!1),b&&(t("rivercolor"),t("riverwidth")),b=t("showcountries",v&&l!=="usa"&&y),b&&(t("countrycolor"),t("countrywidth")),(l==="usa"||l==="north america"&&o===50)&&(t("showsubunits",y),t("subunitcolor"),t("subunitwidth")),v||(b=t("showframe",y),b&&(t("framecolor"),t("framewidth"))),t("bgcolor");var fe=t("fitbounds");fe&&(delete r.projection.scale,v?(delete r.center.lon,delete r.center.lat):m?(delete r.center.lon,delete r.center.lat,delete r.projection.rotation.lon,delete r.projection.rotation.lat,delete r.lonaxis.range,delete r.lataxis.range):(delete r.center.lon,delete r.center.lat,delete r.projection.rotation.lon))}});var p_=te((Wve,LF)=>{"use strict";var Die=b1().getSubplotCalcData,Eie=gr().counterRegex,Pie=yF(),ps="geo",SF=Eie(ps),CF={};CF[ps]={valType:"subplotid",dflt:ps,editType:"calc"};function Rie(e){for(var r=e._fullLayout,t=e.calcdata,n=r._subplots[ps],a=0;a{"use strict";qF.exports={attributes:Nh(),supplyDefaults:lN(),colorbar:Rb(),formatLabels:fN(),calc:pN(),calcGeoJSON:t_().calcGeoJSON,plot:t_().plot,style:K4(),styleOnSelect:xh().styleOnSelect,hoverPoints:$N(),eventData:QN(),selectPoints:tF(),moduleType:"trace",name:"scattergeo",basePlotModule:p_(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var PF=te((Xve,EF)=>{"use strict";EF.exports=DF()});var fy=te((jve,NF)=>{"use strict";var Fie=Vs().hovertemplateAttrs,gf=Nh(),Iie=H0(),RF=bo(),Hie=vl().defaultLine,pf=la().extendFlat,zF=gf.marker.line;NF.exports=pf({locations:{valType:"data_array",editType:"calc"},locationmode:gf.locationmode,z:{valType:"data_array",editType:"calc"},geojson:pf({},gf.geojson,{}),featureidkey:gf.featureidkey,text:pf({},gf.text,{}),hovertext:pf({},gf.hovertext,{}),marker:{line:{color:pf({},zF.color,{dflt:Hie}),width:pf({},zF.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:gf.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:gf.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:pf({},RF.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Fie(),showlegend:pf({},RF.showlegend,{dflt:!1})},Iie("",{cLetter:"z",editTypeOverride:"calc"}))});var IF=te((Jve,FF)=>{"use strict";var Uh=gr(),Bie=B0(),Oie=fy(),Uie=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");FF.exports=function(r,t,n,a){function i(h,d){return Uh.coerce(r,t,Oie,h,d)}var o=i("locations"),l=i("z");if(!(o&&o.length&&Uh.isArrayOrTypedArray(l)&&l.length)){t.visible=!1;return}t._length=Math.min(o.length,l.length);var s=i("geojson"),u;(typeof s=="string"&&s!==""||Uh.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="country names"&&Uh.warn(Uie),f==="geojson-id"&&i("featureidkey"),i("text"),i("hovertext"),i("hovertemplate");var v=i("marker.line.width");v&&i("marker.line.color"),i("marker.opacity"),Bie(r,t,a,i,{prefix:"",cLetter:"z"}),Uh.coerceSelectionMarkerOpacity(t,i)}});var BF=te(($ve,HF)=>{"use strict";HF.exports={min:"zmin",max:"zmax"}});var GF=te((Kve,YF)=>{"use strict";var OF=Ut(),Yie=Rn().BADNUM,Gie=rp(),Vie=gh(),Wie=em();function UF(e){return e&&typeof e=="string"}YF.exports=function(r,t){var n=t._length,a=new Array(n),i;t.geojson?i=function(f){return UF(f)||OF(f)}:i=UF;for(var o=0;o{"use strict";var Zie=kt(),Xie=Pt(),g_=fn(),jie=np();function Jie(e,r){r&&VF(e,r)}function VF(e,r){var t=r[0].trace,n=r[0].node3,a=n.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=jie.makeColorScaleFuncFromTrace(t);a.each(function(s){Zie.select(this).attr("fill",l(s.z)).call(Xie.stroke,s.mlc||o.color).call(g_.dashLine,"",s.mlw||o.width||0).style("opacity",i.opacity)}),g_.selectedPointStyle(a,t)}function $ie(e,r){var t=r[0].node3,n=r[0].trace;n.selectedpoints?g_.selectedPointStyle(t.selectAll(".choroplethlocation"),n):VF(e,r)}WF.exports={style:Jie,styleOnSelect:$ie}});var m_=te((e1e,jF)=>{"use strict";var Kie=kt(),ZF=gr(),zv=ey(),Qie=Gm().getTopojsonFeatures,XF=Ju().findExtremes,eoe=cy().style;function roe(e,r,t){var n=r.layers.backplot.select(".choroplethlayer");ZF.makeTraceGroups(n,t,"trace choropleth").each(function(a){var i=Kie.select(this),o=i.selectAll("path.choroplethlocation").data(ZF.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),eoe(e,a)})}function toe(e,r){for(var t=e[0].trace,n=r[t.geo],a=n._subplot,i=t.locationmode,o=t._length,l=i==="geojson-id"?zv.extractTraceFeature(e):Qie(t,a.topojson),s=[],u=[],f=0;f{"use strict";var noe=Dn(),aoe=fy(),ioe=gr().fillText;JF.exports=function(r,t,n){var a=r.cd,i=a[0].trace,o=r.subplot,l,s,u,f,v=[t,n],h=[t+360,n];for(s=0;s")}}});var QF=te((t1e,KF)=>{"use strict";KF.exports=function(r,t,n,a,i){r.location=t.location,r.z=t.z;var o=a[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r.ct=o.ct,r}});var rI=te((n1e,eI)=>{"use strict";eI.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l,s,u,f,v;if(t===!1)for(l=0;l{"use strict";tI.exports={attributes:fy(),supplyDefaults:IF(),colorbar:BF(),calc:GF(),calcGeoJSON:m_().calcGeoJSON,plot:m_().plot,style:cy().style,styleOnSelect:cy().styleOnSelect,hoverPoints:$F(),eventData:QF(),selectPoints:rI(),moduleType:"trace",name:"choropleth",basePlotModule:p_(),categories:["geo","noOpacity","showLegend"],meta:{}}});var iI=te((i1e,aI)=>{"use strict";aI.exports=nI()});var Ga=te((o1e,lI)=>{"use strict";var oI=Object.getOwnPropertySymbols,loe=Object.prototype.hasOwnProperty,soe=Object.prototype.propertyIsEnumerable;function uoe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function foe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(i){a[i]=i}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}lI.exports=foe()?Object.assign:function(e,r){for(var t,n=uoe(e),a,i=1;i{var hy=Ga();function sI(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}hy(sI.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var n="",a=0;t>0;){var i=t%10;n=(i===0?"":e[i]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function y_(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function vy(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}hy(y_.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Tt.local.differentCalendars||Tt.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+vy(Math.abs(this.year()),4)+"-"+vy(this.month(),2)+"-"+vy(this.day(),2)}});function b_(){this.shortYearCutoff="+10"}hy(b_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new y_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+vy(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Tt.local.invalidMonth||Tt.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Tt.local.invalidMonth||Tt.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;ov-1+f.minMonth;)i++,o-=v,v=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),a];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],i=t<0?-1:1;r=this._add(e,t*a[0]+i*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(n,a))),e.date(n,a,i)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=a-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Tt=uI.exports=new sI;Tt.cdate=y_;Tt.baseCalendar=b_;Tt.calendars.gregorian=__});var fI=te(()=>{var x_=Ga(),Ca=Va();x_(Ca.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Ca.local=Ca.regionalOptions[""];x_(Ca.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});x_(Ca.baseCalendar.prototype,{UNIX_EPOCH:Ca.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Ca.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Ca.local.invalidFormat||Ca.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(_,A){for(var k=1;x+k1},f=function(_,A,k,M){var E=""+A;if(u(_,M))for(;E.length1},C=function(W,B){var X=b(W,B),V=[2,3,X?4:2,X?4:2,10,11,20]["oyYJ@!".indexOf(W)+1],re=new RegExp("^-?\\d{1,"+V+"}"),ae=r.substring(E).match(re);if(!ae)throw(Ca.local.missingNumberAt||Ca.regionalOptions[""].missingNumberAt).replace(/\{0\}/,E);return E+=ae[0].length,parseInt(ae[0],10)},x=this,_=function(){if(typeof l=="function"){b("m");var W=l.call(x,r.substring(E));return E+=W.length,W}return C("m")},A=function(W,B,X,V){for(var re=b(W,V)?X:B,ae=0;ae-1){h=1,d=m;for(var I=this.daysInMonth(v,h);d>I;I=this.daysInMonth(v,h))h++,d-=I}return f>-1?this.fromJD(f):this.newDate(v,h,d)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var i=this,o=function(l){try{return i.parseDate(n,l,a)}catch(v){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var cI=te(()=>{var mf=Va(),coe=Ga(),w_=mf.instance();function dy(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dy.prototype=new mf.baseCalendar;coe(dy.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(hoe);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),i=""+this.toChineseMonth(n,a);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(n,a)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(doe);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(t,n)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(poe);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var a=r[r.length-1];n=a==="i"||a==="I"}var i=this.toMonthIndex(e,t,n);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw mf.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return n?!t&&r<=n?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw mf.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var n=this._validateYear(e,mf.local.invalidyear),a=bf[n-bf[0]],i=a>>9&4095,o=a>>5&15,l=a&31,s;s=w_.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=yf[e-yf[0]],n=t>>13,a=n?12:11;if(r>a)throw mf.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,i,t,mf.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=moe(e,i,t,a);return w_.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=w_.fromJD(e),t=goe(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(voe),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],i=this.toMonthIndex(t,n,a),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var n=e.year(),a=e.month(),i=this.isIntercalaryMonth(n,a),o=this.toChineseMonth(n,a),l=Object.getPrototypeOf(dy.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),v=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);v!==u&&l.month(v)}return l}});var voe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,hoe=/^\d?\d[iI]?/m,doe=/^闰?十?[一二三四五六七八九]?月/m,poe=/^闰?十?[一二三四五六七八九]?/m;mf.calendars.chinese=dy;var yf=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],bf=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function goe(e,r,t,n){var a,i;if(typeof e=="object")a=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},i=n||{}}var u=bf[a.year-bf[0]],f=a.year<<9|a.month<<5|a.day;i.year=f>=u?a.year:a.year-1,u=bf[i.year-bf[0]];var v=u>>9&4095,h=u>>5&15,d=u&31,m,p=new Date(v,h-1,d),y=new Date(a.year,a.month-1,a.day);m=Math.round((y-p)/(24*3600*1e3));var b=yf[i.year-yf[0]],C;for(C=0;C<13;C++){var x=b&1<<12-C?30:29;if(m>13;return!_||C<_?(i.isIntercalary=!1,i.month=1+C):C===_?(i.isIntercalary=!0,i.month=C):(i.isIntercalary=!1,i.month=C),i.day=1+m,i}function moe(e,r,t,n,a){var i,o;if(typeof e=="object")o=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,i=n):(f=!!n,i=a||{}),o={year:e,month:r,day:t,isIntercalary:f}}var v;v=o.day-1;var h=yf[o.year-yf[0]],d=h>>13,m;d&&(o.month>d||o.isIntercalary)?m=o.month:m=o.month-1;for(var p=0;p>9&4095,x=b>>5&15,_=b&31,A=new Date(C,x-1,_+v);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var vI=te(()=>{var Bc=Va(),yoe=Ga();function M_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M_.prototype=new Bc.baseCalendar;yoe(M_.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Bc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bc.local.invalidYear||Bc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Bc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Bc.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});Bc.calendars.coptic=M_});var hI=te(()=>{var cu=Va(),boe=Ga();function A_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A_.prototype=new cu.baseCalendar;boe(A_.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,cu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,cu.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,cu.local.invalidDate);return{century:_oe[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,cu.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var _oe={20:"Fruitbat",21:"Anchovy"};cu.calendars.discworld=A_});var dI=te(()=>{var Oc=Va(),xoe=Ga();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new Oc.baseCalendar;xoe(T_.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Oc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Oc.local.invalidYear||Oc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Oc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Oc.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});Oc.calendars.ethiopian=T_});var pI=te(()=>{var _f=Va(),woe=Ga();function k_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k_.prototype=new _f.baseCalendar;woe(k_.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_f.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,py(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_f.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_f.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,_f.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&py(this.daysInYear(e),10)===5?30:r===9&&py(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,_f.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,_f.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,i=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function py(e,r){return e-r*Math.floor(e/r)}_f.calendars.hebrew=k_});var gI=te(()=>{var Yh=Va(),Moe=Ga();function S_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S_.prototype=new Yh.baseCalendar;Moe(S_.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yh.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Yh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Yh.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});Yh.calendars.islamic=S_});var mI=te(()=>{var Gh=Va(),Aoe=Ga();function C_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C_.prototype=new Gh.baseCalendar;Aoe(C_.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Gh.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Gh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Gh.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),i=Math.floor((t-a)/30.6001),o=i-Math.floor(i<14?1:13),l=n-Math.floor(o>2?4716:4715),s=t-a-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});Gh.calendars.julian=C_});var bI=te(()=>{var Bo=Va(),Toe=Ga();function q_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q_.prototype=new Bo.baseCalendar;Toe(q_.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bo.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bo.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bo.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Bo.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bo.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Bo.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Bo.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Bo.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Bo.local.invalidDate),a=n.toJD(),i=this._toHaab(a),o=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=L_(e+8+17*20,365);return[Math.floor(r/20)+1,L_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[yI(e+20,20),yI(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,Bo.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),n=e%20;return this.newDate(r,t,n)}});function L_(e,r){return e-r*Math.floor(e/r)}function yI(e,r){return L_(e-1,r)+1}Bo.calendars.mayan=q_});var xI=te(()=>{var Uc=Va(),koe=Ga();function D_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D_.prototype=new Uc.baseCalendar;var _I=Uc.instance("gregorian");koe(D_.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Uc.local.invalidYear||Uc.regionalOptions[""].invalidYear);return _I.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Uc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Uc.local.invalidMonth),a=n.year();a<0&&a++;for(var i=n.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});Uc.calendars.nanakshahi=D_});var wI=te(()=>{var Yc=Va(),Soe=Ga();function E_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E_.prototype=new Yc.baseCalendar;Soe(E_.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yc.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Yc.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var n=this._validate(e,r,t,Yc.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=Yc.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=a.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Yc.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),i=n+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;a>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-a);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Nv=Va(),Coe=Ga();function my(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function gy(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),i=n-Math.floor(n),o=a-Math.floor(a);return i>o}my.prototype=new Nv.baseCalendar;Coe(my.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Nv.local.invalidYear);return gy(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Nv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Nv.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var i=1;i0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,gy(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),i=e-this.toJD(t,a,1)+1;return this.newDate(t,a,i)}});Nv.calendars.persian=my;Nv.calendars.jalali=my});var AI=te(()=>{var Gc=Va(),Loe=Ga(),yy=Gc.instance();function P_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}P_.prototype=new Gc.baseCalendar;Loe(P_.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Gc.local.invalidYear),t=this._t2gYear(r.year());return yy.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,Gc.local.invalidYear),a=this._t2gYear(n.year());return yy.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Gc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Gc.local.invalidDate),a=this._t2gYear(n.year());return yy.toJD(a,n.month(),n.day())},fromJD:function(e){var r=yy.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Gc.calendars.taiwan=P_});var TI=te(()=>{var Vc=Va(),qoe=Ga(),by=Vc.instance();function R_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R_.prototype=new Vc.baseCalendar;qoe(R_.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Vc.local.invalidYear),t=this._t2gYear(r.year());return by.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,Vc.local.invalidYear),a=this._t2gYear(n.year());return by.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Vc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Vc.local.invalidDate),a=this._t2gYear(n.year());return by.toJD(a,n.month(),n.day())},fromJD:function(e){var r=by.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Vc.calendars.thai=R_});var kI=te(()=>{var Wc=Va(),Doe=Ga();function z_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z_.prototype=new Wc.baseCalendar;Doe(z_.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wc.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Wc.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,i=0;in)return xf[a]-xf[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Wc.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,i=n.day()+xf[a-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;nr);n++)t++;var a=t+15292,i=Math.floor((a-1)/12),o=i+1,l=a-12*i,s=r-xf[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var n=Wc.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=Wc.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});Wc.calendars.ummalqura=z_;var xf=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var CI=te((I1e,SI)=>{"use strict";SI.exports=Va();fI();cI();vI();hI();dI();pI();gI();mI();bI();xI();wI();MI();AI();TI();kI()});var zI=te((H1e,RI)=>{"use strict";var qI=CI(),Vh=gr(),DI=Rn(),Eoe=DI.EPOCHJD,Poe=DI.ONEDAY,I_={valType:"enumerated",values:Vh.sortObjectKeys(qI.calendars),editType:"calc",dflt:"gregorian"},EI=function(e,r,t,n){var a={};return a[t]=I_,Vh.coerce(e,r,a,t,n)},Roe=function(e,r,t,n){for(var a=0;a{"use strict";NI.exports=zI()});var Boe=te((O1e,HI)=>{var II=tN();II.register([PF(),iI(),FI()]);HI.exports=II});return Boe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-gl2d.js b/dist/plotly-gl2d.js index 0e9234317aa..4ad695e7fcf 100644 --- a/dist/plotly-gl2d.js +++ b/dist/plotly-gl2d.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl2d) v3.1.1 +* plotly.js (gl2d) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -52,7 +52,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.1"; + exports.version = "3.1.2"; } }); @@ -13781,9 +13781,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -21456,7 +21456,7 @@ var Plotly = (() => { }, exponentformat: { valType: "enumerated", - values: ["none", "e", "E", "power", "SI", "B"], + values: ["none", "e", "E", "power", "SI", "B", "SI extended"], dflt: "B", editType: "ticks" }, @@ -25042,7 +25042,7 @@ var Plotly = (() => { var subtitleEnabled = !!subtitleProp; var subtitlePlaceholder = options.subtitlePlaceholder; var subtitle = (cont.title || {}).subtitle || { text: "", font: {} }; - var subtitleTxt = subtitle.text.trim(); + var subtitleTxt = (subtitle.text || "").trim(); var subtitleIsPlaceholder = false; var subtitleOpacity = 1; var subtitleFont = subtitle.font; @@ -25096,7 +25096,7 @@ var Plotly = (() => { var subtitleEl = null; var subtitleClass = titleClass + "-subtitle"; var subtitleElShouldExist = subtitleTxt || editable; - if (subtitleEnabled && subtitleElShouldExist) { + if (subtitleEnabled) { subtitleEl = group.selectAll("text." + subtitleClass).data(subtitleElShouldExist ? [0] : []); subtitleEl.enter().append("text"); subtitleEl.text(subtitleTxt).attr("class", subtitleClass); @@ -25147,7 +25147,7 @@ var Plotly = (() => { shadow: fontShadow, lineposition: fontLineposition }).attr(attributes).call(svgTextUtils.convertToTspans, gd, adjustSubtitlePosition); - if (subtitleEl2) { + if (subtitleEl2 && !subtitleEl2.empty()) { var titleElMathGroup = group.select("." + titleClass + "-math-group"); var titleElBbox2 = titleEl.node().getBBox(); var titleElMathBbox = titleElMathGroup.node() ? titleElMathGroup.node().getBBox() : void 0; @@ -25268,7 +25268,7 @@ var Plotly = (() => { } } el.classed("js-placeholder", titleIsPlaceholder); - if (subtitleEl) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); + if (subtitleEl && !subtitleEl.empty()) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); return group; } module.exports = { @@ -27587,7 +27587,7 @@ var Plotly = (() => { var rangeexp = Math.floor(Math.log(maxend) / Math.LN10 + 0.01); var minexponent = ax.minexponent === void 0 ? 3 : ax.minexponent; if (Math.abs(rangeexp) > minexponent) { - if (isSIFormat(ax.exponentformat) && !beyondSI(rangeexp)) { + if (isSIFormat(ax.exponentformat) && ax.exponentformat !== "SI extended" && !beyondSI(rangeexp) || isSIFormat(ax.exponentformat) && ax.exponentformat === "SI extended" && !beyondSIExtended(rangeexp)) { ax._tickexponent = 3 * Math.round((rangeexp - 1) / 3); } else ax._tickexponent = rangeexp; } @@ -27811,7 +27811,7 @@ var Plotly = (() => { var p = +parts[1]; var absP = Math.abs(p); var exponentFormat = ax.exponentformat; - if (exponentFormat === "power" || isSIFormat(exponentFormat) && beyondSI(p)) { + if (exponentFormat === "power" || isSIFormat(exponentFormat) && exponentFormat !== "SI extended" && beyondSI(p) || isSIFormat(exponentFormat) && exponentFormat === "SI extended" && beyondSIExtended(p)) { out.text = parts[0]; if (absP > 0) out.text += "x10"; if (out.text === "1x10") out.text = "10"; @@ -27927,12 +27927,20 @@ var Plotly = (() => { ]; } var SIPREFIXES = ["f", "p", "n", "\u03BC", "m", "", "k", "M", "G", "T"]; - function isSIFormat(exponentFormat) { - return exponentFormat === "SI" || exponentFormat === "B"; - } + var SIPREFIXES_EXTENDED = ["q", "r", "y", "z", "a", ...SIPREFIXES, "P", "E", "Z", "Y", "R", "Q"]; + var isSIFormat = (exponentFormat) => ["SI", "SI extended", "B"].includes(exponentFormat); function beyondSI(exponent) { return exponent > 14 || exponent < -15; } + function beyondSIExtended(exponent) { + return exponent > 32 || exponent < -30; + } + function shouldSwitchSIToPowerFormat(exponent, exponentFormat) { + if (!isSIFormat(exponentFormat)) return false; + if (exponentFormat === "SI extended" && beyondSIExtended(exponent)) return true; + if (exponentFormat !== "SI extended" && beyondSI(exponent)) return true; + return false; + } function numFormat(v, ax, fmtoverride, hover) { var isNeg = v < 0; var tickRound = ax._tickround; @@ -27980,7 +27988,7 @@ var Plotly = (() => { v = Lib.numSeparate(v, ax._separators, separatethousands); } if (exponent && exponentFormat !== "hide") { - if (isSIFormat(exponentFormat) && beyondSI(exponent)) exponentFormat = "power"; + if (shouldSwitchSIToPowerFormat(exponent, exponentFormat)) exponentFormat = "power"; var signedExponent; if (exponent < 0) signedExponent = MINUS_SIGN + -exponent; else if (exponentFormat !== "power") signedExponent = "+" + exponent; @@ -27992,7 +28000,7 @@ var Plotly = (() => { } else if (exponentFormat === "B" && exponent === 9) { v += "B"; } else if (isSIFormat(exponentFormat)) { - v += SIPREFIXES[exponent / 3 + 5]; + v += exponentFormat === "SI extended" ? SIPREFIXES_EXTENDED[exponent / 3 + 10] : SIPREFIXES[exponent / 3 + 5]; } } if (isNeg) return MINUS_SIGN + v; @@ -30277,9 +30285,11 @@ var Plotly = (() => { return Lib.coerce(traceIn, traceOut, plotsAttrs, attr, dflt); }; var globalFont = layoutOut.font || {}; - var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { overrideDflt: { - size: Math.round(globalFont.size * 1.1) - } }); + var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { + overrideDflt: { + size: Math.round(globalFont.size * 1.1) + } + }); var legendTraceCount = 0; var legendReallyHasATrace = false; var defaultOrder = "normal"; @@ -30426,7 +30436,7 @@ var Plotly = (() => { for (i = 0; i < legends.length; i++) { var legendId = legends[i]; groupDefaults(legendId, layoutIn, layoutOut, allLegendsData); - if (layoutOut[legendId] && layoutOut[legendId].visible) { + if (layoutOut[legendId]) { layoutOut[legendId]._id = legendId; } layoutOut._legends.push(legendId); @@ -36044,7 +36054,7 @@ var Plotly = (() => { } } function setClipPath(shapePath, gd, shapeOptions) { - var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][1-9]* *domain/g, ""); + var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][0-9]* *domain/g, ""); Drawing.setClipUrl( shapePath, clipAxes ? "clip" + gd._fullLayout._uid + clipAxes : null, @@ -43889,7 +43899,6 @@ var Plotly = (() => { "src/plot_api/helpers.js"(exports) { "use strict"; var isNumeric = require_fast_isnumeric(); - var m4FromQuat = require_fromQuat(); var Registry = require_registry(); var Lib = require_lib(); var Plots = require_plots(); @@ -43898,6 +43907,7 @@ var Plotly = (() => { var cleanId = AxisIds.cleanId; var getFromTrace = AxisIds.getFromTrace; var traceIs = Registry.traceIs; + var AX_LETTERS = ["x", "y", "z"]; exports.clearPromiseQueue = function(gd) { if (Array.isArray(gd._promises) && gd._promises.length > 0) { Lib.log("Clearing previous rejected promises from queue."); @@ -44064,12 +44074,7 @@ var Plotly = (() => { var increasingName = cleanFinanceDir(trace.increasing); var decreasingName = cleanFinanceDir(trace.decreasing); if (increasingName !== false && decreasingName !== false) { - var newName = commonPrefix( - increasingName, - decreasingName, - increasingShowlegend, - decreasingShowlegend - ); + var newName = commonPrefix(increasingName, decreasingName, increasingShowlegend, decreasingShowlegend); if (newName) trace.name = newName; } else if ((increasingName || decreasingName) && !trace.name) { trace.name = increasingName || decreasingName; @@ -44199,12 +44204,11 @@ var Plotly = (() => { } return false; }; - var axLetters = ["x", "y", "z"]; exports.clearAxisTypes = function(gd, traces, layoutUpdate) { for (var i = 0; i < traces.length; i++) { var trace = gd._fullData[i]; for (var j = 0; j < 3; j++) { - var ax = getFromTrace(gd, trace, axLetters[j]); + var ax = getFromTrace(gd, trace, AX_LETTERS[j]); if (ax && ax.type !== "log") { var axAttr = ax._name; var sceneName = ax._id.substr(1); @@ -44220,6 +44224,35 @@ var Plotly = (() => { } } }; + var collectionsAreEqual = (collection1, collection2) => { + const isArrayOrObject = (...vals) => vals.every((v) => Lib.isPlainObject(v)) || vals.every((v) => Array.isArray(v)); + if ([collection1, collection2].every((a) => Array.isArray(a))) { + if (collection1.length !== collection2.length) return false; + for (let i = 0; i < collection1.length; i++) { + const oldVal = collection1[i]; + const newVal = collection2[i]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } else if ([collection1, collection2].every((a) => Lib.isPlainObject(a))) { + if (Object.keys(collection1).length !== Object.keys(collection2).length) return false; + for (const k in collection1) { + if (k.startsWith("_")) continue; + const oldVal = collection1[k]; + const newVal = collection2[k]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } + return false; + }; + exports.collectionsAreEqual = collectionsAreEqual; } }); @@ -44327,21 +44360,28 @@ var Plotly = (() => { } } if (!fullLayout._glcanvas && fullLayout._has("gl")) { - fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data([{ - key: "contextLayer", - context: true, - pick: false - }, { - key: "focusLayer", - context: false, - pick: false - }, { - key: "pickLayer", - context: false, - pick: true - }], function(d) { - return d.key; - }); + fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data( + [ + { + key: "contextLayer", + context: true, + pick: false + }, + { + key: "focusLayer", + context: false, + pick: false + }, + { + key: "pickLayer", + context: false, + pick: true + } + ], + function(d) { + return d.key; + } + ); fullLayout._glcanvas.enter().append("canvas").attr("class", function(d) { return "gl-canvas gl-canvas-" + d.key.replace("Layer", ""); }).style({ @@ -44399,21 +44439,21 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([ - marginPushers, - subroutines.layoutStyles - ], gd); + return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); } function positionAndAutorange() { if (!recalc) { doAutoRangeAndConstraints(); return; } - return Lib.syncOrAsync([ - Registry.getComponentMethod("shapes", "calcAutorange"), - Registry.getComponentMethod("annotations", "calcAutorange"), - doAutoRangeAndConstraints - ], gd); + return Lib.syncOrAsync( + [ + Registry.getComponentMethod("shapes", "calcAutorange"), + Registry.getComponentMethod("annotations", "calcAutorange"), + doAutoRangeAndConstraints + ], + gd + ); } function doAutoRangeAndConstraints() { if (gd._transitioning) return; @@ -44424,28 +44464,19 @@ var Plotly = (() => { function drawAxes() { return Axes.draw(gd, graphWasEmpty ? "" : "redraw"); } - var seq = [ - Plots.previousPromises, - addFrames2, - drawFramework, - marginPushers, - marginPushersAgain - ]; + var seq = [Plots.previousPromises, addFrames2, drawFramework, marginPushers, marginPushersAgain]; if (hasCartesian) seq.push(positionAndAutorange); seq.push(subroutines.layoutStyles); if (hasCartesian) { - seq.push( - drawAxes, - function insideTickLabelsAutorange(gd2) { - var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; - if (insideTickLabelsUpdaterange) { - gd2._fullLayout._insideTickLabelsUpdaterange = void 0; - return relayout(gd2, insideTickLabelsUpdaterange).then(function() { - Axes.saveRangeInitial(gd2, true); - }); - } + seq.push(drawAxes, function insideTickLabelsAutorange(gd2) { + var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; + if (insideTickLabelsUpdaterange) { + gd2._fullLayout._insideTickLabelsUpdaterange = void 0; + return relayout(gd2, insideTickLabelsUpdaterange).then(function() { + Axes.saveRangeInitial(gd2, true); + }); } - ); + }); } seq.push( subroutines.drawData, @@ -44651,7 +44682,7 @@ var Plotly = (() => { } for (i = 0; i < traces.length; i++) { value = traces[i]; - if (typeof value !== "object" || (Array.isArray(value) || value === null)) { + if (typeof value !== "object" || Array.isArray(value) || value === null) { throw new Error("all values in traces array must be non-array objects"); } } @@ -44659,9 +44690,7 @@ var Plotly = (() => { newIndices = [newIndices]; } if (typeof newIndices !== "undefined" && newIndices.length !== traces.length) { - throw new Error( - "if indices is specified, traces.length must equal indices.length" - ); + throw new Error("if indices is specified, traces.length must equal indices.length"); } } function assertExtendTracesArgs(gd, update2, indices, maxPoints) { @@ -44681,7 +44710,9 @@ var Plotly = (() => { throw new Error("attribute " + key + " must be an array of length equal to indices array length"); } if (maxPointsIsObject && (!(key in maxPoints) || !Array.isArray(maxPoints[key]) || maxPoints[key].length !== update2[key].length)) { - throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object"); + throw new Error( + "when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object" + ); } } } @@ -44971,18 +45002,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - restyle, - [gd, specs.undoit, specs.traces], - restyle, - [gd, specs.redoit, specs.traces] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, restyle, [gd, specs.undoit, specs.traces], restyle, [gd, specs.redoit, specs.traces]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(); return plotDone.then(function() { @@ -45149,7 +45170,11 @@ var Plotly = (() => { var topOrBottom = orient === "top" || orient === "bottom"; if (finalPart === "thicknessmode") { var thicknorm = topOrBottom ? gs.h : gs.w; - doextra(prefixDot + "thickness", innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), i); + doextra( + prefixDot + "thickness", + innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), + i + ); } else { var lennorm = topOrBottom ? gs.w : gs.h; doextra(prefixDot + "len", innerContFull.len * (newVal === "fraction" ? 1 / lennorm : lennorm), i); @@ -45172,12 +45197,7 @@ var Plotly = (() => { } } undoit[ai][i] = undefinedToNull(oldVal); - var swapAttrs = [ - "swapxy", - "swapxyaxes", - "orientation", - "orientationaxes" - ]; + var swapAttrs = ["swapxy", "swapxyaxes", "orientation", "orientationaxes"]; if (swapAttrs.indexOf(ai) !== -1) { if (ai === "orientation") { param.set(newVal); @@ -45274,18 +45294,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - relayout, - [gd, specs.undoit], - relayout, - [gd, specs.redoit] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, relayout, [gd, specs.undoit], relayout, [gd, specs.redoit]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45525,7 +45535,7 @@ var Plotly = (() => { } else { if (ai === "dragmode" && (vi === false && vOld !== false || vi !== false && vOld === false)) { flags.plot = true; - } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && (ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select"))) { + } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select")) { flags.plot = true; } else if (valObject) editTypes.update(flags, valObject); else flags.calc = true; @@ -45612,18 +45622,13 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, update, [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], update, [ gd, - update, - [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], - update, - [gd, restyleSpecs.redoit, relayoutSpecs.redoit, restyleSpecs.traces] - ); + restyleSpecs.redoit, + relayoutSpecs.redoit, + restyleSpecs.traces + ]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45845,10 +45850,10 @@ var Plotly = (() => { } var configChanged = false; if (config) { - var oldConfig = Lib.extendDeep({}, gd._context); + const oldConfig = Lib.extendDeepAll({}, gd._context); gd._context = void 0; setPlotContext(gd, config); - configChanged = diffConfig(oldConfig, gd._context); + configChanged = !helpers.collectionsAreEqual(oldConfig, gd._context); } if (configChanged) { const eventListeners = gd._ev.eventNames().map((name2) => [name2, gd._ev.listeners(name2)]); @@ -45932,11 +45937,7 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); } @@ -46153,38 +46154,6 @@ var Plotly = (() => { } } } - function diffConfig(oldConfig, newConfig) { - var key; - for (key in oldConfig) { - if (key.charAt(0) === "_") continue; - var oldVal = oldConfig[key]; - var newVal = newConfig[key]; - if (oldVal !== newVal) { - if (Lib.isPlainObject(oldVal) && Lib.isPlainObject(newVal)) { - if (diffConfig(oldVal, newVal)) { - return true; - } - } else if (Array.isArray(oldVal) && Array.isArray(newVal)) { - if (oldVal.length !== newVal.length) { - return true; - } - for (var i = 0; i < oldVal.length; i++) { - if (oldVal[i] !== newVal[i]) { - if (Lib.isPlainObject(oldVal[i]) && Lib.isPlainObject(newVal[i])) { - if (diffConfig(oldVal[i], newVal[i])) { - return true; - } - } else { - return true; - } - } - } - } else { - return true; - } - } - } - } function animate(gd, frameOrGroupNameOrFrameList, animationOpts) { gd = Lib.getGraphDiv(gd); if (!Lib.isPlotDiv(gd)) { @@ -46453,9 +46422,13 @@ var Plotly = (() => { var collisionPresent = _frameHash[name] || _frameHashLocal[name]; if (name && newName && typeof newName === "number" && collisionPresent && numericNameWarningCount < numericNameWarningCountLimit) { numericNameWarningCount++; - Lib.warn('addFrames: overwriting frame "' + (_frameHash[name] || _frameHashLocal[name]).name + '" with a frame whose name of type "number" also equates to "' + name + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'); + Lib.warn( + 'addFrames: overwriting frame "' + (_frameHash[name] || _frameHashLocal[name]).name + '" with a frame whose name of type "number" also equates to "' + name + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.' + ); if (numericNameWarningCount === numericNameWarningCountLimit) { - Lib.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed."); + Lib.warn( + "addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed." + ); } } _frameHashLocal[lookupName] = { name: lookupName }; @@ -46475,7 +46448,9 @@ var Plotly = (() => { for (i = insertions.length - 1; i >= 0; i--) { frame = insertions[i].frame; if (typeof frame.name === "number") { - Lib.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"); + Lib.warn( + "Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings" + ); } if (!frame.name) { while (_frameHash[frame.name = "frame " + gd._transitionData._counter++]) ; @@ -56514,7 +56489,7 @@ var Plotly = (() => { if (axisOpts.side === "bottom") { Titles.draw(gd, axisOpts._id + "title", { propContainer: axisOpts, - propName: axisOpts._name + ".title", + propName: axisOpts._name + ".title.text", placeholder: fullLayout._dfltTitle.x, attributes: { x: axisOpts._offset + axisOpts._length / 2, @@ -58337,7 +58312,7 @@ var Plotly = (() => { function drawTitle(titleClass, titleOpts) { var dfltTitleOpts = { propContainer: ax, - propName: opts._propPrefix + "title", + propName: opts._propPrefix + "title.text", traceIndex: opts._traceIndex, _meta: opts._meta, placeholder: fullLayout._dfltTitle.colorbar, diff --git a/dist/plotly-gl2d.min.js b/dist/plotly-gl2d.min.js index 8250492c857..cd1bf28dc3b 100644 --- a/dist/plotly-gl2d.min.js +++ b/dist/plotly-gl2d.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl2d - minified) v3.1.1 +* plotly.js (gl2d - minified) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,29 +12,29 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var qne=Object.create;var wg=Object.defineProperty;var Pne=Object.getOwnPropertyDescriptor;var Nne=Object.getOwnPropertyNames;var One=Object.getPrototypeOf,Ine=Object.prototype.hasOwnProperty;var Ag=(e,r)=>()=>(e&&(r=e(e=0)),r);var P=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Bne=(e,r)=>{for(var t in r)wg(e,t,{get:r[t],enumerable:!0})},pM=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Nne(r))!Ine.call(e,n)&&n!==t&&wg(e,n,{get:()=>r[n],enumerable:!(a=Pne(r,n))||a.enumerable});return e};var zne=(e,r,t)=>(t=e!=null?qne(One(e)):{},pM(r||!e||!e.__esModule?wg(t,"default",{value:e,enumerable:!0}):t,e)),Gne=e=>pM(wg({},"__esModule",{value:!0}),e);var Tg=P(mM=>{"use strict";mM.version="3.1.1"});var gM=P((yM,Mg)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Mg!="undefined"&&Mg.exports&&(Mg.exports=t[r])})("Promise",typeof window!="undefined"?window:yM,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(A){return setImmediate(A)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(A,_,x,T){return Object.defineProperty(A,_,{value:x,writable:!0,configurable:T!==!1})}}catch(b){r=function(_,x,T){return _[x]=T,_}}a=function(){var A,_,x;function T(E,M){this.fn=E,this.self=M,this.next=void 0}return{add:function(M,k){x=new T(M,k),_?_.next=x:A=x,_=x,x=void 0},drain:function(){var M=A;for(A=_=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(b,A){a.add(b,A),t||(t=i(a.drain))}function l(b){var A,_=typeof b;return b!=null&&(_=="object"||_=="function")&&(A=b.then),typeof A=="function"?A:!1}function s(){for(var b=0;b0&&o(s,_))}catch(x){c.call(new d(_),x)}}}function c(b){var A=this;A.triggered||(A.triggered=!0,A.def&&(A=A.def),A.msg=b,A.state=2,A.chain.length>0&&o(s,A))}function v(b,A,_,x){for(var T=0;T{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(y){for(var w=y.length,C=new Array(w);w--;)C[w]=y[w];return C}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,f=this.CSSStyleDeclaration.prototype,u=f.setProperty;o.setAttribute=function(y,w){l.call(this,y,w+"")},o.setAttributeNS=function(y,w,C){s.call(this,y,w,C+"")},f.setProperty=function(y,w,C){u.call(this,y,w+"",C)}}e.ascending=c;function c(h,y){return hy?1:h>=y?0:NaN}e.descending=function(h,y){return yh?1:y>=h?0:NaN},e.min=function(h,y){var w=-1,C=h.length,L,D;if(arguments.length===1){for(;++w=D){L=D;break}for(;++wD&&(L=D)}else{for(;++w=D){L=D;break}for(;++wD&&(L=D)}return L},e.max=function(h,y){var w=-1,C=h.length,L,D;if(arguments.length===1){for(;++w=D){L=D;break}for(;++wL&&(L=D)}else{for(;++w=D){L=D;break}for(;++wL&&(L=D)}return L},e.extent=function(h,y){var w=-1,C=h.length,L,D,G;if(arguments.length===1){for(;++w=D){L=G=D;break}for(;++wD&&(L=D),G=D){L=G=D;break}for(;++wD&&(L=D),G1)return G/(j-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(y,w,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=y.length);C>>1;h(y[D],w)<0?C=D+1:L=D}return C},right:function(y,w,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=y.length);C>>1;h(y[D],w)>0?L=D:C=D+1}return C}}}var g=p(c);e.bisectLeft=g.left,e.bisect=e.bisectRight=g.right,e.bisector=function(h){return p(h.length===1?function(y,w){return c(h(y),w)}:h)},e.shuffle=function(h,y,w){(C=arguments.length)<3&&(w=h.length,C<2&&(y=0));for(var C=w-y,L,D;C;)D=Math.random()*C--|0,L=h[C+y],h[C+y]=h[D+y],h[D+y]=L;return h},e.permute=function(h,y){for(var w=y.length,C=new Array(w);w--;)C[w]=h[y[w]];return C},e.pairs=function(h){for(var y=0,w=h.length-1,C,L=h[0],D=new Array(w<0?0:w);y=0;)for(G=h[y],w=G.length;--w>=0;)D[--L]=G[w];return D};var b=Math.abs;e.range=function(h,y,w){if(arguments.length<3&&(w=1,arguments.length<2&&(y=h,h=0)),(y-h)/w===1/0)throw new Error("infinite range");var C=[],L=A(b(w)),D=-1,G;if(h*=L,y*=L,w*=L,w<0)for(;(G=h+w*++D)>y;)C.push(G/L);else for(;(G=h+w*++D)=y.length)return L?L.call(h,j):C?j.sort(C):j;for(var oe=-1,me=j.length,ye=y[ne++],Xe,Ke,Me,Re=new x,Ue;++oe=y.length)return q;var ne=[],oe=w[j++];return q.forEach(function(me,ye){ne.push({key:me,values:G(ye,j)})}),oe?ne.sort(function(me,ye){return oe(me.key,ye.key)}):ne}return h.map=function(q,j){return D(j,q,0)},h.entries=function(q){return G(D(e.map,q,0),0)},h.key=function(q){return y.push(q),h},h.sortKeys=function(q){return w[y.length-1]=q,h},h.sortValues=function(q){return C=q,h},h.rollup=function(q){return L=q,h},h},e.set=function(h){var y=new X;if(h)for(var w=0,C=h.length;w=0&&(C=h.slice(w+1),h=h.slice(0,w)),h)return arguments.length<2?this[h].on(C):this[h].on(C,y);if(arguments.length===2){if(y==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(C,null);return this}};function ue(h){var y=[],w=new x;function C(){for(var L=y,D=-1,G=L.length,q;++D=0&&(w=h.slice(0,y))!=="xmlns"&&(h=h.slice(y+1)),Ye.hasOwnProperty(w)?{space:Ye[w],local:h}:h}},Ve.attr=function(h,y){if(arguments.length<2){if(typeof h=="string"){var w=this.node();return h=e.ns.qualify(h),h.local?w.getAttributeNS(h.space,h.local):w.getAttribute(h)}for(y in h)this.each(vr(y,h[y]));return this}return this.each(vr(h,y))};function vr(h,y){h=e.ns.qualify(h);function w(){this.removeAttribute(h)}function C(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,y)}function D(){this.setAttributeNS(h.space,h.local,y)}function G(){var j=y.apply(this,arguments);j==null?this.removeAttribute(h):this.setAttribute(h,j)}function q(){var j=y.apply(this,arguments);j==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,j)}return y==null?h.local?C:w:typeof y=="function"?h.local?q:G:h.local?D:L}function rr(h){return h.trim().replace(/\s+/g," ")}Ve.classed=function(h,y){if(arguments.length<2){if(typeof h=="string"){var w=this.node(),C=(h=Lr(h)).length,L=-1;if(y=w.classList){for(;++L=0;)(D=w[C])&&(L&&L!==D.nextSibling&&L.parentNode.insertBefore(D,L),L=D);return this},Ve.sort=function(h){h=sr.apply(this,arguments);for(var y=-1,w=this.length;++y=y&&(y=L+1);!(j=G[y])&&++y0&&(h=h.slice(0,L));var G=Or.get(h);G&&(h=G,D=Yr);function q(){var oe=this[C];oe&&(this.removeEventListener(h,oe,oe.$),delete this[C])}function j(){var oe=D(y,t(arguments));q.call(this),this.addEventListener(h,this[C]=oe,oe.$=w),oe._=y}function ne(){var oe=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),me;for(var ye in this)if(me=ye.match(oe)){var Xe=this[ye];this.removeEventListener(me[1],Xe,Xe.$),delete this[ye]}}return L?y?j:q:y?J:ne}var Or=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Or.forEach(function(h){"on"+h in a&&Or.remove(h)});function at(h,y){return function(w){var C=e.event;e.event=w,y[0]=this.__data__;try{h.apply(this,y)}finally{e.event=C}}}function Yr(h,y){var w=at(h,y);return function(C){var L=this,D=C.relatedTarget;(!D||D!==L&&!(D.compareDocumentPosition(L)&8))&&w.call(L,C)}}var nt,vt=0;function ot(h){var y=".dragsuppress-"+ ++vt,w="click"+y,C=e.select(i(h)).on("touchmove"+y,De).on("dragstart"+y,De).on("selectstart"+y,De);if(nt==null&&(nt="onselectstart"in h?!1:$(h.style,"userSelect")),nt){var L=n(h).style,D=L[nt];L[nt]="none"}return function(G){if(C.on(y,null),nt&&(L[nt]=D),G){var q=function(){C.on(w,null)};C.on(w,function(){De(),q()},!0),setTimeout(q,0)}}}e.mouse=function(h){return pr(h,Oe())};var et=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function pr(h,y){y.changedTouches&&(y=y.changedTouches[0]);var w=h.ownerSVGElement||h;if(w.createSVGPoint){var C=w.createSVGPoint();if(et<0){var L=i(h);if(L.scrollX||L.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=w[0][0].getScreenCTM();et=!(D.f||D.e),w.remove()}}return et?(C.x=y.pageX,C.y=y.pageY):(C.x=y.clientX,C.y=y.clientY),C=C.matrixTransform(h.getScreenCTM().inverse()),[C.x,C.y]}var G=h.getBoundingClientRect();return[y.clientX-G.left-h.clientLeft,y.clientY-G.top-h.clientTop]}e.touch=function(h,y,w){if(arguments.length<3&&(w=y,y=Oe().changedTouches),y){for(var C=0,L=y.length,D;C0?1:h<0?-1:0}function Ta(h,y,w){return(y[0]-h[0])*(w[1]-h[1])-(y[1]-h[1])*(w[0]-h[0])}function Rn(h){return h>1?0:h<-1?cr:Math.acos(h)}function bn(h){return h>1?gt:h<-1?-gt:Math.asin(h)}function ja(h){return((h=Math.exp(h))-1/h)/2}function cn(h){return((h=Math.exp(h))+1/h)/2}function jn(h){return((h=Math.exp(2*h))-1)/(h+1)}function vn(h){return(h=Math.sin(h/2))*h}var wn=Math.SQRT2,Mi=2,Pt=4;e.interpolateZoom=function(h,y){var w=h[0],C=h[1],L=h[2],D=y[0],G=y[1],q=y[2],j=D-w,ne=G-C,oe=j*j+ne*ne,me,ye;if(oe0&&(ht=ht.transition().duration(G)),ht.call(tr.event)}function kt(){Re&&Re.domain(Me.range().map(function(ht){return(ht-h.x)/h.k}).map(Me.invert)),er&&er.domain(Ue.range().map(function(ht){return(ht-h.y)/h.k}).map(Ue.invert))}function Ct(ht){q++||ht({type:"zoomstart"})}function Vt(ht){kt(),ht({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function Ft(ht){--q||(ht({type:"zoomend"}),w=null)}function Ot(){var ht=this,Yt=Ke.of(ht,arguments),jt=0,ca=e.select(i(ht)).on(ne,Jn).on(oe,$n),Xa=Le(e.mouse(ht)),Cn=ot(ht);Ac.call(ht),Ct(Yt);function Jn(){jt=1,tt(e.mouse(ht),Xa),Vt(Yt)}function $n(){ca.on(ne,null).on(oe,null),Cn(jt),Ft(Yt)}}function pa(){var ht=this,Yt=Ke.of(ht,arguments),jt={},ca=0,Xa,Cn=".zoom-"+e.event.changedTouches[0].identifier,Jn="touchmove"+Cn,$n="touchend"+Cn,Li=[],S=e.select(ht),B=ot(ht);he(),Ct(Yt),S.on(j,null).on(ye,he);function V(){var _e=e.touches(ht);return Xa=h.k,_e.forEach(function(We){We.identifier in jt&&(jt[We.identifier]=Le(We))}),_e}function he(){var _e=e.event.target;e.select(_e).on(Jn,xe).on($n,we),Li.push(_e);for(var We=e.event.changedTouches,or=0,nr=We.length;or1){var Fr=lr[0],br=lr[1],Ne=Fr[0]-br[0],fe=Fr[1]-br[1];ca=Ne*Ne+fe*fe}}function xe(){var _e=e.touches(ht),We,or,nr,lr;Ac.call(ht);for(var Zr=0,Fr=_e.length;Zr1?1:y,w=w<0?0:w>1?1:w,L=w<=.5?w*(1+y):w+y-w*y,C=2*w-L;function D(q){return q>360?q-=360:q<0&&(q+=360),q<60?C+(L-C)*q/60:q<180?L:q<240?C+(L-C)*(240-q)/60:C}function G(q){return Math.round(D(q)*255)}return new hi(G(h+120),G(h),G(h-120))}e.hcl=tn;function tn(h,y,w){return this instanceof tn?(this.h=+h,this.c=+y,void(this.l=+w)):arguments.length<2?h instanceof tn?new tn(h.h,h.c,h.l):h instanceof qn?Oo(h.l,h.a,h.b):Oo((h=_t((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new tn(h,y,w)}var Wi=tn.prototype=new hn;Wi.brighter=function(h){return new tn(this.h,this.c,Math.min(100,this.l+Ra*(arguments.length?h:1)))},Wi.darker=function(h){return new tn(this.h,this.c,Math.max(0,this.l-Ra*(arguments.length?h:1)))},Wi.rgb=function(){return ji(this.h,this.c,this.l).rgb()};function ji(h,y,w){return isNaN(h)&&(h=0),isNaN(y)&&(y=0),new qn(w,Math.cos(h*=Nt)*y,Math.sin(h)*y)}e.lab=qn;function qn(h,y,w){return this instanceof qn?(this.l=+h,this.a=+y,void(this.b=+w)):arguments.length<2?h instanceof qn?new qn(h.l,h.a,h.b):h instanceof tn?ji(h.h,h.c,h.l):_t((h=hi(h)).r,h.g,h.b):new qn(h,y,w)}var Ra=18,Xn=.95047,ss=1,fs=1.08883,kl=qn.prototype=new hn;kl.brighter=function(h){return new qn(Math.min(100,this.l+Ra*(arguments.length?h:1)),this.a,this.b)},kl.darker=function(h){return new qn(Math.max(0,this.l-Ra*(arguments.length?h:1)),this.a,this.b)},kl.rgb=function(){return Zu(this.l,this.a,this.b)};function Zu(h,y,w){var C=(h+16)/116,L=C+y/500,D=C-w/200;return L=Yf(L)*Xn,C=Yf(C)*ss,D=Yf(D)*fs,new hi(Xi(3.2404542*L-1.5371385*C-.4985314*D),Xi(-.969266*L+1.8760108*C+.041556*D),Xi(.0556434*L-.2040259*C+1.0572252*D))}function Oo(h,y,w){return h>0?new tn(Math.atan2(w,y)*ta,Math.sqrt(y*y+w*w),h):new tn(NaN,NaN,h)}function Yf(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function Wf(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function Xi(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=hi;function hi(h,y,w){return this instanceof hi?(this.r=~~h,this.g=~~y,void(this.b=~~w)):arguments.length<2?h instanceof hi?new hi(h.r,h.g,h.b):$t(""+h,hi,Ga):new hi(h,y,w)}function Ii(h){return new hi(h>>16,h>>8&255,h&255)}function Cl(h){return Ii(h)+""}var di=hi.prototype=new hn;di.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var y=this.r,w=this.g,C=this.b,L=30;return!y&&!w&&!C?new hi(L,L,L):(y&&y>4,C=C>>4|C,L=j&240,L=L>>4|L,D=j&15,D=D<<4|D):h.length===7&&(C=(j&16711680)>>16,L=(j&65280)>>8,D=j&255)),y(C,L,D))}function ua(h,y,w){var C=Math.min(h/=255,y/=255,w/=255),L=Math.max(h,y,w),D=L-C,G,q,j=(L+C)/2;return D?(q=j<.5?D/(L+C):D/(2-L-C),h==L?G=(y-w)/D+(y0&&j<1?0:G),new La(G,q,j)}function _t(h,y,w){h=Zn(h),y=Zn(y),w=Zn(w);var C=Wf((.4124564*h+.3575761*y+.1804375*w)/Xn),L=Wf((.2126729*h+.7151522*y+.072175*w)/ss),D=Wf((.0193339*h+.119192*y+.9503041*w)/fs);return qn(116*L-16,500*(C-L),200*(L-D))}function Zn(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Ua(h){var y=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(y*2.55):y}var Pn=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Pn.forEach(function(h,y){Pn.set(h,Ii(y))});function ra(h){return typeof h=="function"?h:function(){return h}}e.functor=ra,e.xhr=wo(le);function wo(h){return function(y,w,C){return arguments.length===2&&typeof w=="function"&&(C=w,w=null),ol(y,w,h,C)}}function ol(h,y,w,C){var L={},D=e.dispatch("beforesend","progress","load","error"),G={},q=new XMLHttpRequest,j=null;self.XDomainRequest&&!("withCredentials"in q)&&/^(http(s)?:)?\/\//.test(h)&&(q=new XDomainRequest),"onload"in q?q.onload=q.onerror=ne:q.onreadystatechange=function(){q.readyState>3&&ne()};function ne(){var oe=q.status,me;if(!oe&&Z1(q)||oe>=200&&oe<300||oe===304){try{me=w.call(L,q)}catch(ye){D.error.call(L,ye);return}D.load.call(L,me)}else D.error.call(L,q)}return q.onprogress=function(oe){var me=e.event;e.event=oe;try{D.progress.call(L,q)}finally{e.event=me}},L.header=function(oe,me){return oe=(oe+"").toLowerCase(),arguments.length<2?G[oe]:(me==null?delete G[oe]:G[oe]=me+"",L)},L.mimeType=function(oe){return arguments.length?(y=oe==null?null:oe+"",L):y},L.responseType=function(oe){return arguments.length?(j=oe,L):j},L.response=function(oe){return w=oe,L},["get","post"].forEach(function(oe){L[oe]=function(){return L.send.apply(L,[oe].concat(t(arguments)))}}),L.send=function(oe,me,ye){if(arguments.length===2&&typeof me=="function"&&(ye=me,me=null),q.open(oe,h,!0),y!=null&&!("accept"in G)&&(G.accept=y+",*/*"),q.setRequestHeader)for(var Xe in G)q.setRequestHeader(Xe,G[Xe]);return y!=null&&q.overrideMimeType&&q.overrideMimeType(y),j!=null&&(q.responseType=j),ye!=null&&L.on("error",ye).on("load",function(Ke){ye(null,Ke)}),D.beforesend.call(L,q),q.send(me==null?null:me),L},L.abort=function(){return q.abort(),L},e.rebind(L,D,"on"),C==null?L:L.get(Si(C))}function Si(h){return h.length===1?function(y,w){h(y==null?w:null)}:h}function Z1(h){var y=h.responseType;return y&&y!=="text"?h.response:h.responseText}e.dsv=function(h,y){var w=new RegExp('["'+h+` -]`),C=h.charCodeAt(0);function L(ne,oe,me){arguments.length<3&&(me=oe,oe=null);var ye=ol(ne,y,oe==null?D:G(oe),me);return ye.row=function(Xe){return arguments.length?ye.response((oe=Xe)==null?D:G(Xe)):oe},ye}function D(ne){return L.parse(ne.responseText)}function G(ne){return function(oe){return L.parse(oe.responseText,ne)}}L.parse=function(ne,oe){var me;return L.parseRows(ne,function(ye,Xe){if(me)return me(ye,Xe-1);var Ke=function(Me){for(var Re={},Ue=ye.length,er=0;er=Ke)return ye;if(er)return er=!1,me;var Dr=Me;if(ne.charCodeAt(Dr)===34){for(var zr=Dr;zr++24?(isFinite(y)&&(clearTimeout(pi),pi=setTimeout(Ao,y)),Io=0):(Io=1,rf(Ao))}e.timer.flush=function(){Dl(),Ju()};function Dl(){for(var h=Date.now(),y=An;y;)h>=y.t&&y.c(h-y.t)&&(y.c=null),y=y.n;return h}function Ju(){for(var h,y=An,w=1/0;y;)y.c?(y.t=0;--q)Me.push(L[ne[me[q]][2]]);for(q=+Xe;q1&&Ta(h[w[C-2]],h[w[C-1]],h[L])<=0;)--C;w[C++]=L}return w.slice(0,C)}function J1(h,y){return h[0]-y[0]||h[1]-y[1]}e.geom.polygon=function(h){return Ae(h,$u),h};var $u=e.geom.polygon.prototype=[];$u.area=function(){for(var h=-1,y=this.length,w,C=this[y-1],L=0;++hIe)q=q.L;else if(G=y-qv(q,w),G>Ie){if(!q.R){C=q;break}q=q.R}else{D>-Ie?(C=q.P,L=q):G>-Ie?(C=q,L=q.N):C=L=q;break}var j=Qu(h);if(mi.insert(C,j),!(!C&&!L)){if(C===L){of(C),L=Qu(C.site),mi.insert(j,L),j.edge=L.edge=Jf(C.site,j.site),Bi(C),Bi(L);return}if(!L){j.edge=Jf(C.site,j.site);return}of(C),of(L);var ne=C.site,oe=ne.x,me=ne.y,ye=h.x-oe,Xe=h.y-me,Ke=L.site,Me=Ke.x-oe,Re=Ke.y-me,Ue=2*(ye*Re-Xe*Me),er=ye*ye+Xe*Xe,tr=Me*Me+Re*Re,Le={x:(Re*er-Xe*tr)/Ue+oe,y:(ye*tr-Me*er)/Ue+me};Rl(L.edge,ne,Ke,Le),j.edge=Jf(ne,h,null,Le),L.edge=Jf(h,Ke,null,Le),Bi(C),Bi(L)}}function Ku(h,y){var w=h.site,C=w.x,L=w.y,D=L-y;if(!D)return C;var G=h.P;if(!G)return-1/0;w=G.site;var q=w.x,j=w.y,ne=j-y;if(!ne)return q;var oe=q-C,me=1/D-1/ne,ye=oe/ne;return me?(-ye+Math.sqrt(ye*ye-2*me*(oe*oe/(-2*ne)-j+ne/2+L-D/2)))/me+C:(C+q)/2}function qv(h,y){var w=h.N;if(w)return Ku(w,y);var C=h.site;return C.y===y?C.x:1/0}function ec(h){this.site=h,this.edges=[]}ec.prototype.prepare=function(){for(var h=this.edges,y=h.length,w;y--;)w=h[y].edge,(!w.b||!w.a)&&h.splice(y,1);return h.sort(nf),h.length};function Mo(h){for(var y=h[0][0],w=h[1][0],C=h[0][1],L=h[1][1],D,G,q,j,ne=To,oe=ne.length,me,ye,Xe,Ke,Me,Re;oe--;)if(me=ne[oe],!(!me||!me.prepare()))for(Xe=me.edges,Ke=Xe.length,ye=0;yeIe||b(j-G)>Ie)&&(Xe.splice(ye,0,new rc(K1(me.site,Re,b(q-y)Ie?{x:y,y:b(D-y)Ie?{x:b(G-L)Ie?{x:w,y:b(D-w)Ie?{x:b(G-C)=-yr)){var ye=j*j+ne*ne,Xe=oe*oe+Re*Re,Ke=(Re*ye-ne*Xe)/me,Me=(j*Xe-oe*ye)/me,Re=Me+q,Ue=af.pop()||new Xf;Ue.arc=h,Ue.site=L,Ue.x=Ke+G,Ue.y=Re+Math.sqrt(Ke*Ke+Me*Me),Ue.cy=Re,h.circle=Ue;for(var er=null,tr=ll._;tr;)if(Ue.y0)){if(Me/=Xe,Xe<0){if(Me0){if(Me>ye)return;Me>me&&(me=Me)}if(Me=w-q,!(!Xe&&Me<0)){if(Me/=Xe,Xe<0){if(Me>ye)return;Me>me&&(me=Me)}else if(Xe>0){if(Me0)){if(Me/=Ke,Ke<0){if(Me0){if(Me>ye)return;Me>me&&(me=Me)}if(Me=C-j,!(!Ke&&Me<0)){if(Me/=Ke,Ke<0){if(Me>ye)return;Me>me&&(me=Me)}else if(Ke>0){if(Me0&&(L.a={x:q+me*Xe,y:j+me*Ke}),ye<1&&(L.b={x:q+ye*Xe,y:j+ye*Ke}),L}}}}}}function Q1(h){for(var y=Go,w=$1(h[0][0],h[0][1],h[1][0],h[1][1]),C=y.length,L;C--;)L=y[C],(!Zf(L,h)||!w(L)||b(L.a.x-L.b.x)=D)return;if(oe>ye){if(!C)C={x:Ke,y:G};else if(C.y>=q)return;w={x:Ke,y:q}}else{if(!C)C={x:Ke,y:q};else if(C.y1)if(oe>ye){if(!C)C={x:(G-Ue)/Re,y:G};else if(C.y>=q)return;w={x:(q-Ue)/Re,y:q}}else{if(!C)C={x:(q-Ue)/Re,y:q};else if(C.y=D)return;w={x:D,y:Re*D+Ue}}else{if(!C)C={x:D,y:Re*D+Ue};else if(C.x=oe&&Ue.x<=ye&&Ue.y>=me&&Ue.y<=Xe?[[oe,Xe],[ye,Xe],[ye,me],[oe,me]]:[];er.point=j[Me]}),ne}function q(j){return j.map(function(ne,oe){return{x:Math.round(C(ne,oe)/Ie)*Ie,y:Math.round(L(ne,oe)/Ie)*Ie,i:oe}})}return G.links=function(j){return fl(q(j)).edges.filter(function(ne){return ne.l&&ne.r}).map(function(ne){return{source:j[ne.l.i],target:j[ne.r.i]}})},G.triangles=function(j){var ne=[];return fl(q(j)).cells.forEach(function(oe,me){for(var ye=oe.site,Xe=oe.edges.sort(nf),Ke=-1,Me=Xe.length,Re,Ue,er=Xe[Me-1].edge,tr=er.l===ye?er.r:er.l;++Ketr&&(tr=oe.x),oe.y>Le&&(Le=oe.y),Xe.push(oe.x),Ke.push(oe.y);else for(Me=0;Metr&&(tr=Dr),zr>Le&&(Le=zr),Xe.push(Dr),Ke.push(zr)}var tt=tr-Ue,yt=Le-er;tt>yt?Le=er+tt:tr=Ue+yt;function kt(Ft,Ot,pa,xn,Da,ht,Yt,jt){if(!(isNaN(pa)||isNaN(xn)))if(Ft.leaf){var ca=Ft.x,Xa=Ft.y;if(ca!=null)if(b(ca-pa)+b(Xa-xn)<.01)Ct(Ft,Ot,pa,xn,Da,ht,Yt,jt);else{var Cn=Ft.point;Ft.x=Ft.y=Ft.point=null,Ct(Ft,Cn,ca,Xa,Da,ht,Yt,jt),Ct(Ft,Ot,pa,xn,Da,ht,Yt,jt)}else Ft.x=pa,Ft.y=xn,Ft.point=Ot}else Ct(Ft,Ot,pa,xn,Da,ht,Yt,jt)}function Ct(Ft,Ot,pa,xn,Da,ht,Yt,jt){var ca=(Da+Yt)*.5,Xa=(ht+jt)*.5,Cn=pa>=ca,Jn=xn>=Xa,$n=Jn<<1|Cn;Ft.leaf=!1,Ft=Ft.nodes[$n]||(Ft.nodes[$n]=kh()),Cn?Da=ca:Yt=ca,Jn?ht=Xa:jt=Xa,kt(Ft,Ot,pa,xn,Da,ht,Yt,jt)}var Vt=kh();if(Vt.add=function(Ft){kt(Vt,Ft,+me(Ft,++Me),+ye(Ft,Me),Ue,er,tr,Le)},Vt.visit=function(Ft){$f(Ft,Vt,Ue,er,tr,Le)},Vt.find=function(Ft){return Pv(Vt,Ft[0],Ft[1],Ue,er,tr,Le)},Me=-1,y==null){for(;++MeD||ye>G||Xe=Dr,yt=w>=zr,kt=yt<<1|tt,Ct=kt+4;ktw&&(D=y.slice(w,D),q[G]?q[G]+=D:q[++G]=D),(C=C[0])===(L=L[0])?q[G]?q[G]+=L:q[++G]=L:(q[++G]=null,j.push({i:G,x:Ei(C,L)})),w=Qf.lastIndex;return w=0&&!(C=e.interpolators[w](h,y)););return C}e.interpolators=[function(h,y){var w=typeof y;return(w==="string"?Pn.has(y.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(y)?So:Tn:y instanceof hn?So:Array.isArray(y)?sf:w==="object"&&isNaN(y)?Ch:Ei)(h,y)}],e.interpolateArray=sf;function sf(h,y){var w=[],C=[],L=h.length,D=y.length,G=Math.min(h.length,y.length),q;for(q=0;q=0?h.slice(0,y):h,C=y>=0?h.slice(y+1):"in";return w=Nv.get(w)||ac,C=Ov.get(C)||le,np(C(w.apply(null,r.call(arguments,1))))};function np(h){return function(y){return y<=0?0:y>=1?1:h(y)}}function so(h){return function(y){return 1-h(1-y)}}function wa(h){return function(y){return .5*(y<.5?h(2*y):2-h(2-2*y))}}function Iv(h){return h*h}function Bv(h){return h*h*h}function Ji(h){if(h<=0)return 0;if(h>=1)return 1;var y=h*h,w=y*h;return 4*(h<.5?w:3*(h-y)+w-.75)}function zv(h){return function(y){return Math.pow(y,h)}}function Gv(h){return 1-Math.cos(h*gt)}function ip(h){return Math.pow(2,10*(h-1))}function op(h){return 1-Math.sqrt(1-h*h)}function lp(h,y){var w;return arguments.length<2&&(y=.45),arguments.length?w=y/xt*Math.asin(1/h):(h=1,w=y/4),function(C){return 1+h*Math.pow(2,-10*C)*Math.sin((C-w)*xt/y)}}function sp(h){return h||(h=1.70158),function(y){return y*y*((h+1)*y-h)}}function Kf(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=Uv;function Uv(h,y){h=e.hcl(h),y=e.hcl(y);var w=h.h,C=h.c,L=h.l,D=y.h-w,G=y.c-C,q=y.l-L;return isNaN(G)&&(G=0,C=isNaN(C)?y.c:C),isNaN(D)?(D=0,w=isNaN(w)?y.h:w):D>180?D-=360:D<-180&&(D+=360),function(j){return ji(w+D*j,C+G*j,L+q*j)+""}}e.interpolateHsl=fp;function fp(h,y){h=e.hsl(h),y=e.hsl(y);var w=h.h,C=h.s,L=h.l,D=y.h-w,G=y.s-C,q=y.l-L;return isNaN(G)&&(G=0,C=isNaN(C)?y.s:C),isNaN(D)?(D=0,w=isNaN(w)?y.h:w):D>180?D-=360:D<-180&&(D+=360),function(j){return Ga(w+D*j,C+G*j,L+q*j)+""}}e.interpolateLab=Hv;function Hv(h,y){h=e.lab(h),y=e.lab(y);var w=h.l,C=h.a,L=h.b,D=y.l-w,G=y.a-C,q=y.b-L;return function(j){return Zu(w+D*j,C+G*j,L+q*j)+""}}e.interpolateRound=nc;function nc(h,y){return y-=h,function(w){return Math.round(h+y*w)}}e.transform=function(h){var y=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){y.setAttribute("transform",w);var C=y.transform.baseVal.consolidate()}return new Lh(C?C.matrix:ps)})(h)};function Lh(h){var y=[h.a,h.b],w=[h.c,h.d],C=Dh(y),L=ql(y,w),D=Dh(ki(w,y,-L))||0;y[0]*w[1]180?y+=360:y-h>180&&(h+=360),C.push({i:w.push(Pl(w)+"rotate(",null,")")-2,x:Ei(h,y)})):y&&w.push(Pl(w)+"rotate("+y+")")}function Wv(h,y,w,C){h!==y?C.push({i:w.push(Pl(w)+"skewX(",null,")")-2,x:Ei(h,y)}):y&&w.push(Pl(w)+"skewX("+y+")")}function jv(h,y,w,C){if(h[0]!==y[0]||h[1]!==y[1]){var L=w.push(Pl(w)+"scale(",null,",",null,")");C.push({i:L-4,x:Ei(h[0],y[0])},{i:L-2,x:Ei(h[1],y[1])})}else(y[0]!==1||y[1]!==1)&&w.push(Pl(w)+"scale("+y+")")}function ic(h,y){var w=[],C=[];return h=e.transform(h),y=e.transform(y),Vv(h.translate,y.translate,w,C),Yv(h.rotate,y.rotate,w,C),Wv(h.skew,y.skew,w,C),jv(h.scale,y.scale,w,C),h=y=null,function(L){for(var D=-1,G=C.length,q;++D0?D=Le:(w.c=null,w.t=NaN,w=null,y.end({type:"end",alpha:D=0})):Le>0&&(y.start({type:"start",alpha:D=Le}),w=Bo(h.tick)),h):D},h.start=function(){var Le,Dr=Xe.length,zr=Ke.length,tt=C[0],yt=C[1],kt,Ct;for(Le=0;Le=0;)D.push(oe=ne[j]),oe.parent=q,oe.depth=q.depth+1;w&&(q.value=0),q.children=ne}else w&&(q.value=+w.call(C,q,q.depth)||0),delete q.children;return Uo(L,function(me){var ye,Xe;h&&(ye=me.children)&&ye.sort(h),w&&(Xe=me.parent)&&(Xe.value+=me.value)}),G}return C.sort=function(L){return arguments.length?(h=L,C):h},C.children=function(L){return arguments.length?(y=L,C):y},C.value=function(L){return arguments.length?(w=L,C):w},C.revalue=function(L){return w&&(ru(L,function(D){D.children&&(D.value=0)}),Uo(L,function(D){var G;D.children||(D.value=+w.call(C,D,D.depth)||0),(G=D.parent)&&(G.value+=D.value)})),L},C};function ms(h,y){return e.rebind(h,y,"sort","children","value"),h.nodes=h,h.links=dp,h}function ru(h,y){for(var w=[h];(h=w.pop())!=null;)if(y(h),(L=h.children)&&(C=L.length))for(var C,L;--C>=0;)w.push(L[C])}function Uo(h,y){for(var w=[h],C=[];(h=w.pop())!=null;)if(C.push(h),(G=h.children)&&(D=G.length))for(var L=-1,D,G;++LL&&(L=q),C.push(q)}for(G=0;GC&&(w=y,C=L);return w}function yp(h){return h.reduce(gp,0)}function gp(h,y){return h+y[1]}e.layout.histogram=function(){var h=!0,y=Number,w=xp,C=bp;function L(D,ye){for(var q=[],j=D.map(y,this),ne=w.call(this,j,ye),oe=C.call(this,ne,j,ye),me,ye=-1,Xe=j.length,Ke=oe.length-1,Me=h?1:1/Xe,Re;++ye0)for(ye=-1;++ye=ne[0]&&Re<=ne[1]&&(me=q[e.bisect(oe,Re,1,Ke)-1],me.y+=Me,me.push(D[ye]));return q}return L.value=function(D){return arguments.length?(y=D,L):y},L.range=function(D){return arguments.length?(w=ra(D),L):w},L.bins=function(D){return arguments.length?(C=typeof D=="number"?function(G){return Fh(G,D)}:ra(D),L):C},L.frequency=function(D){return arguments.length?(h=!!D,L):h},L};function bp(h,y){return Fh(h,Math.ceil(Math.log(y.length)/Math.LN2+1))}function Fh(h,y){for(var w=-1,C=+h[0],L=(h[1]-C)/y,D=[];++w<=y;)D[w]=L*w+C;return D}function xp(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(tu),y=0,w=[1,1],C;function L(D,G){var q=h.call(this,D,G),j=q[0],ne=w[0],oe=w[1],me=C==null?Math.sqrt:typeof C=="function"?C:function(){return C};if(j.x=j.y=0,Uo(j,function(Xe){Xe.r=+me(Xe.value)}),Uo(j,qh),y){var ye=y*(C?1:Math.max(2*j.r/ne,2*j.r/oe))/2;Uo(j,function(Xe){Xe.r+=ye}),Uo(j,qh),Uo(j,function(Xe){Xe.r-=ye})}return Ph(j,ne/2,oe/2,C?1:1/Math.max(2*j.r/ne,2*j.r/oe)),q}return L.size=function(D){return arguments.length?(w=D,L):w},L.radius=function(D){return arguments.length?(C=D==null||typeof D=="function"?D:+D,L):C},L.padding=function(D){return arguments.length?(y=+D,L):y},ms(L,h)};function tu(h,y){return h.value-y.value}function n0(h,y){var w=h._pack_next;h._pack_next=y,y._pack_prev=h,y._pack_next=w,w._pack_prev=y}function lc(h,y){h._pack_next=y,y._pack_prev=h}function Rh(h,y){var w=y.x-h.x,C=y.y-h.y,L=h.r+y.r;return .999*L*L>w*w+C*C}function qh(h){if(!(y=h.children)||!(ye=y.length))return;var y,w=1/0,C=-1/0,L=1/0,D=-1/0,G,q,j,ne,oe,me,ye;function Xe(Le){w=Math.min(Le.x-Le.r,w),C=Math.max(Le.x+Le.r,C),L=Math.min(Le.y-Le.r,L),D=Math.max(Le.y+Le.r,D)}if(y.forEach(_p),G=y[0],G.x=-G.r,G.y=0,Xe(G),ye>1&&(q=y[1],q.x=q.r,q.y=0,Xe(q),ye>2))for(j=y[2],_g(G,q,j),Xe(j),n0(G,j),G._pack_prev=j,n0(j,q),q=G._pack_next,ne=3;neRe.x&&(Re=Dr),Dr.depth>Ue.depth&&(Ue=Dr)});var er=y(Me,Re)/2-Me.x,tr=w[0]/(Re.x+y(Re,Me)/2+er),Le=w[1]/(Ue.depth||1);ru(Xe,function(Dr){Dr.x=(Dr.x+er)*tr,Dr.y=Dr.depth*Le})}return ye}function D(oe){for(var me={A:null,children:[oe]},ye=[me],Xe;(Xe=ye.pop())!=null;)for(var Ke=Xe.children,Me,Re=0,Ue=Ke.length;Re0&&(Mp(i0(Me,oe,ye),oe,Dr),Ue+=Dr,er+=Dr),tr+=Me.m,Ue+=Xe.m,Le+=Re.m,er+=Ke.m;Me&&!Tp(Ke)&&(Ke.t=Me,Ke.m+=tr-er),Xe&&!Ap(Re)&&(Re.t=Xe,Re.m+=Ue-Le,ye=oe)}return ye}function ne(oe){oe.x*=w[0],oe.y=oe.depth*w[1]}return L.separation=function(oe){return arguments.length?(y=oe,L):y},L.size=function(oe){return arguments.length?(C=(w=oe)==null?ne:null,L):C?null:w},L.nodeSize=function(oe){return arguments.length?(C=(w=oe)==null?null:ne,L):C?w:null},ms(L,h)};function Nh(h,y){return h.parent==y.parent?1:2}function Ap(h){var y=h.children;return y.length?y[0]:h.t}function Tp(h){var y=h.children,w;return(w=y.length)?y[w-1]:h.t}function Mp(h,y,w){var C=w/(y.i-h.i);y.c-=C,y.s+=w,h.c+=C,y.z+=w,y.m+=w}function au(h){for(var y=0,w=0,C=h.children,L=C.length,D;--L>=0;)D=C[L],D.z+=y,D.m+=y,y+=D.s+(w+=D.c)}function i0(h,y,w){return h.a.parent===y.parent?h.a:w}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),y=Nh,w=[1,1],C=!1;function L(D,G){var q=h.call(this,D,G),j=q[0],ne,oe=0;Uo(j,function(Me){var Re=Me.children;Re&&Re.length?(Me.x=o0(Re),Me.y=Bn(Re)):(Me.x=ne?oe+=y(Me,ne):0,Me.y=0,ne=Me)});var me=Oh(j),ye=Ih(j),Xe=me.x-y(me,ye)/2,Ke=ye.x+y(ye,me)/2;return Uo(j,C?function(Me){Me.x=(Me.x-j.x)*w[0],Me.y=(j.y-Me.y)*w[1]}:function(Me){Me.x=(Me.x-Xe)/(Ke-Xe)*w[0],Me.y=(1-(j.y?Me.y/j.y:1))*w[1]}),q}return L.separation=function(D){return arguments.length?(y=D,L):y},L.size=function(D){return arguments.length?(C=(w=D)==null,L):C?null:w},L.nodeSize=function(D){return arguments.length?(C=(w=D)!=null,L):C?w:null},ms(L,h)};function Bn(h){return 1+e.max(h,function(y){return y.y})}function o0(h){return h.reduce(function(y,w){return y+w.x},0)/h.length}function Oh(h){var y=h.children;return y&&y.length?Oh(y[0]):h}function Ih(h){var y=h.children,w;return y&&(w=y.length)?Ih(y[w-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),y=Math.round,w=[1,1],C=null,L=l0,D=!1,G,q="squarify",j=.5*(1+Math.sqrt(5));function ne(Me,Re){for(var Ue=-1,er=Me.length,tr,Le;++Ue0;)er.push(Le=tr[yt-1]),er.area+=Le.area,q!=="squarify"||(zr=ye(er,tt))<=Dr?(tr.pop(),Dr=zr):(er.area-=er.pop().area,Xe(er,tt,Ue,!1),tt=Math.min(Ue.dx,Ue.dy),er.length=er.area=0,Dr=1/0);er.length&&(Xe(er,tt,Ue,!0),er.length=er.area=0),Re.forEach(oe)}}function me(Me){var Re=Me.children;if(Re&&Re.length){var Ue=L(Me),er=Re.slice(),tr,Le=[];for(ne(er,Ue.dx*Ue.dy/Me.value),Le.area=0;tr=er.pop();)Le.push(tr),Le.area+=tr.area,tr.z!=null&&(Xe(Le,tr.z?Ue.dx:Ue.dy,Ue,!er.length),Le.length=Le.area=0);Re.forEach(me)}}function ye(Me,Re){for(var Ue=Me.area,er,tr=0,Le=1/0,Dr=-1,zr=Me.length;++Drtr&&(tr=er));return Ue*=Ue,Re*=Re,Ue?Math.max(Re*tr*j/Ue,Ue/(Re*Le*j)):1/0}function Xe(Me,Re,Ue,er){var tr=-1,Le=Me.length,Dr=Ue.x,zr=Ue.y,tt=Re?y(Me.area/Re):0,yt;if(Re==Ue.dx){for((er||tt>Ue.dy)&&(tt=Ue.dy);++trUe.dx)&&(tt=Ue.dx);++tr1);return h+y*C*Math.sqrt(-2*Math.log(D)/D)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var y=e.random.irwinHall(h);return function(){return y()/h}},irwinHall:function(h){return function(){for(var y=0,w=0;w2?Co:Sp,ne=C?Zv:Xv;return L=j(h,y,ne,w),D=j(y,h,ne,ul),q}function q(j){return L(j)}return q.invert=function(j){return D(j)},q.domain=function(j){return arguments.length?(h=j.map(Number),G()):h},q.range=function(j){return arguments.length?(y=j,G()):y},q.rangeRound=function(j){return q.range(j).interpolate(nc)},q.clamp=function(j){return arguments.length?(C=j,G()):C},q.interpolate=function(j){return arguments.length?(w=j,G()):w},q.ticks=function(j){return xs(h,j)},q.tickFormat=function(j,ne){return d3_scale_linearTickFormat(h,j,ne)},q.nice=function(j){return uc(h,j),G()},q.copy=function(){return zh(h,y,w,C)},G()}function fo(h,y){return e.rebind(h,y,"range","rangeRound","interpolate","clamp")}function uc(h,y){return cl(h,Aa($i(h,y)[2])),cl(h,Aa($i(h,y)[2])),h}function $i(h,y){y==null&&(y=10);var w=sc(h),C=w[1]-w[0],L=Math.pow(10,Math.floor(Math.log(C/y)/Math.LN10)),D=y/C*L;return D<=.15?L*=10:D<=.35?L*=5:D<=.75&&(L*=2),w[0]=Math.ceil(w[0]/L)*L,w[1]=Math.floor(w[1]/L)*L+L*.5,w[2]=L,w}function xs(h,y){return e.range.apply(e,$i(h,y))}var nu={s:1,g:1,p:1,r:1,e:1};function uf(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function cc(h,y){var w=uf(y[2]);return h in nu?Math.abs(w-uf(Math.max(b(y[0]),b(y[1]))))+ +(h!=="e"):w-(h==="%")*2}e.scale.log=function(){return cf(e.scale.linear().domain([0,1]),10,!0,[1,10])};function cf(h,y,w,C){function L(q){return(w?Math.log(q<0?0:q):-Math.log(q>0?0:-q))/Math.log(y)}function D(q){return w?Math.pow(y,q):-Math.pow(y,-q)}function G(q){return h(L(q))}return G.invert=function(q){return D(h.invert(q))},G.domain=function(q){return arguments.length?(w=q[0]>=0,h.domain((C=q.map(Number)).map(L)),G):C},G.base=function(q){return arguments.length?(y=+q,h.domain(C.map(L)),G):y},G.nice=function(){var q=cl(C.map(L),w?Math:_s);return h.domain(q),C=q.map(D),G},G.ticks=function(){var q=sc(C),j=[],ne=q[0],oe=q[1],me=Math.floor(L(ne)),ye=Math.ceil(L(oe)),Xe=y%1?2:y;if(isFinite(ye-me)){if(w){for(;me0;Ke--)j.push(D(me)*Ke);for(me=0;j[me]oe;ye--);j=j.slice(me,ye)}return j},G.copy=function(){return cf(h.copy(),y,w,C)},fo(G,h)}var _s={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return vc(e.scale.linear(),1,[0,1])};function vc(h,y,w){var C=vf(y),L=vf(1/y);function D(G){return h(C(G))}return D.invert=function(G){return L(h.invert(G))},D.domain=function(G){return arguments.length?(h.domain((w=G.map(Number)).map(C)),D):w},D.ticks=function(G){return xs(w,G)},D.tickFormat=function(G,q){return d3_scale_linearTickFormat(w,G,q)},D.nice=function(G){return D.domain(uc(w,G))},D.exponent=function(G){return arguments.length?(C=vf(y=G),L=vf(1/y),h.domain(w.map(C)),D):y},D.copy=function(){return vc(h.copy(),y,w)},fo(D,h)}function vf(h){return function(y){return y<0?-Math.pow(-y,h):Math.pow(y,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return hc([],{t:"range",a:[[]]})};function hc(h,y){var w,C,L;function D(q){return C[((w.get(q)||(y.t==="range"?w.set(q,h.push(q)):NaN))-1)%C.length]}function G(q,j){return e.range(h.length).map(function(ne){return q+j*ne})}return D.domain=function(q){if(!arguments.length)return h;h=[],w=new x;for(var j=-1,ne=q.length,oe;++j0?w[D-1]:h[0],Dye?0:1;if(oe=At)return j(oe,Ke)+(ne?j(ne,1-Ke):"")+"Z";var Me,Re,Ue,er,tr=0,Le=0,Dr,zr,tt,yt,kt,Ct,Vt,Ft,Ot=[];if((er=(+G.apply(this,arguments)||0)/2)&&(Ue=C===hf?Math.sqrt(ne*ne+oe*oe):+C.apply(this,arguments),Ke||(Le*=-1),oe&&(Le=bn(Ue/oe*Math.sin(er))),ne&&(tr=bn(Ue/ne*Math.sin(er)))),oe){Dr=oe*Math.cos(me+Le),zr=oe*Math.sin(me+Le),tt=oe*Math.cos(ye-Le),yt=oe*Math.sin(ye-Le);var pa=Math.abs(ye-me-2*Le)<=cr?0:1;if(Le&&pf(Dr,zr,tt,yt)===Ke^pa){var xn=(me+ye)/2;Dr=oe*Math.cos(xn),zr=oe*Math.sin(xn),tt=yt=null}}else Dr=zr=0;if(ne){kt=ne*Math.cos(ye-tr),Ct=ne*Math.sin(ye-tr),Vt=ne*Math.cos(me+tr),Ft=ne*Math.sin(me+tr);var Da=Math.abs(me-ye+2*tr)<=cr?0:1;if(tr&&pf(kt,Ct,Vt,Ft)===1-Ke^Da){var ht=(me+ye)/2;kt=ne*Math.cos(ht),Ct=ne*Math.sin(ht),Vt=Ft=null}}else kt=Ct=0;if(Xe>Ie&&(Me=Math.min(Math.abs(oe-ne)/2,+w.apply(this,arguments)))>.001){Re=ne0?0:1}function mf(h,y,w,C,L){var D=h[0]-y[0],G=h[1]-y[1],q=(L?C:-C)/Math.sqrt(D*D+G*G),j=q*G,ne=-q*D,oe=h[0]+j,me=h[1]+ne,ye=y[0]+j,Xe=y[1]+ne,Ke=(oe+ye)/2,Me=(me+Xe)/2,Re=ye-oe,Ue=Xe-me,er=Re*Re+Ue*Ue,tr=w-C,Le=oe*Xe-ye*me,Dr=(Ue<0?-1:1)*Math.sqrt(Math.max(0,tr*tr*er-Le*Le)),zr=(Le*Ue-Re*Dr)/er,tt=(-Le*Re-Ue*Dr)/er,yt=(Le*Ue+Re*Dr)/er,kt=(-Le*Re+Ue*Dr)/er,Ct=zr-Ke,Vt=tt-Me,Ft=yt-Ke,Ot=kt-Me;return Ct*Ct+Vt*Vt>Ft*Ft+Ot*Ot&&(zr=yt,tt=kt),[[zr-j,tt-ne],[zr*w/tr,tt*w/tr]]}function yf(){return!0}function bc(h){var y=zo,w=us,C=yf,L=Ci,D=L.key,G=.7;function q(j){var ne=[],oe=[],me=-1,ye=j.length,Xe,Ke=ra(y),Me=ra(w);function Re(){ne.push("M",L(h(oe),G))}for(;++me1?h.join("L"):h+"Z"}function gf(h){return h.join("L")+"Z"}function vl(h){for(var y=0,w=h.length,C=h[0],L=[C[0],",",C[1]];++y1&&L.push("H",C[0]),L.join("")}function cu(h){for(var y=0,w=h.length,C=h[0],L=[C[0],",",C[1]];++y1){q=y[1],D=h[j],j++,C+="C"+(L[0]+G[0])+","+(L[1]+G[1])+","+(D[0]-q[0])+","+(D[1]-q[1])+","+D[0]+","+D[1];for(var ne=2;ne9&&(D=w*3/Math.sqrt(D),G[q]=D*C,G[q+1]=D*L));for(q=-1;++q<=j;)D=(h[Math.min(j,q+1)][0]-h[Math.max(0,q-1)][0])/(6*(1+G[q]*G[q])),y.push([D||0,G[q]*D||0]);return y}function c0(h){return h.length<3?Ci(h):h[0]+Ho(h,kp(h))}e.svg.line.radial=function(){var h=bc(xc);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function xc(h){for(var y,w=-1,C=h.length,L,D;++wcr)+",1 "+me}function ne(oe,me,ye,Xe){return"Q 0,0 "+Xe}return D.radius=function(oe){return arguments.length?(w=ra(oe),D):w},D.source=function(oe){return arguments.length?(h=ra(oe),D):h},D.target=function(oe){return arguments.length?(y=ra(oe),D):y},D.startAngle=function(oe){return arguments.length?(C=ra(oe),D):C},D.endAngle=function(oe){return arguments.length?(L=ra(oe),D):L},D};function hu(h){return h.radius}e.svg.diagonal=function(){var h=Gh,y=vo,w=Uh;function C(L,D){var G=h.call(this,L,D),q=y.call(this,L,D),j=(G.y+q.y)/2,ne=[G,{x:G.x,y:j},{x:q.x,y:j},q];return ne=ne.map(w),"M"+ne[0]+"C"+ne[1]+" "+ne[2]+" "+ne[3]}return C.source=function(L){return arguments.length?(h=ra(L),C):h},C.target=function(L){return arguments.length?(y=ra(L),C):y},C.projection=function(L){return arguments.length?(w=L,C):w},C};function Uh(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),y=Uh,w=h.projection;return h.projection=function(C){return arguments.length?w(Cp(y=C)):y},h};function Cp(h){return function(){var y=h.apply(this,arguments),w=y[0],C=y[1]-gt;return[w*Math.cos(C),w*Math.sin(C)]}}e.svg.symbol=function(){var h=Dp,y=Lp;function w(C,L){return(Vh.get(h.call(this,C,L))||Hh)(y.call(this,C,L))}return w.type=function(C){return arguments.length?(h=ra(C),w):h},w.size=function(C){return arguments.length?(y=ra(C),w):y},w};function Lp(){return 64}function Dp(){return"circle"}function Hh(h){var y=Math.sqrt(h/cr);return"M0,"+y+"A"+y+","+y+" 0 1,1 0,"+-y+"A"+y+","+y+" 0 1,1 0,"+y+"Z"}var Vh=e.map({circle:Hh,cross:function(h){var y=Math.sqrt(h/5)/2;return"M"+-3*y+","+-y+"H"+-y+"V"+-3*y+"H"+y+"V"+-y+"H"+3*y+"V"+y+"H"+y+"V"+3*y+"H"+-y+"V"+y+"H"+-3*y+"Z"},diamond:function(h){var y=Math.sqrt(h/(2*Yh)),w=y*Yh;return"M0,"+-y+"L"+w+",0 0,"+y+" "+-w+",0Z"},square:function(h){var y=Math.sqrt(h)/2;return"M"+-y+","+-y+"L"+y+","+-y+" "+y+","+y+" "+-y+","+y+"Z"},"triangle-down":function(h){var y=Math.sqrt(h/wc),w=y*wc/2;return"M0,"+w+"L"+y+","+-w+" "+-y+","+-w+"Z"},"triangle-up":function(h){var y=Math.sqrt(h/wc),w=y*wc/2;return"M0,"+-w+"L"+y+","+w+" "+-y+","+w+"Z"}});e.svg.symbolTypes=Vh.keys();var wc=Math.sqrt(3),Yh=Math.tan(30*Nt);Ve.transition=function(h){for(var y=ml||++xf,w=pu(h),C=[],L,D,G=Ol||{time:Date.now(),ease:Ji,delay:0,duration:250},q=-1,j=this.length;++q0;)me[--er].call(h,Ue);if(Re>=1)return G.event&&G.event.end.call(h,h.__data__,y),--D.count?delete D[C]:delete h[w],1}G||(q=L.time,j=Bo(ye,0,q),G=D[C]={tween:new x,time:q,timer:j,delay:L.delay,duration:L.duration,ease:L.ease,index:y},L=null,++D.count)}e.svg.axis=function(){var h=e.scale.linear(),y=_f,w=6,C=6,L=3,D=[10],G=null,q;function j(ne){ne.each(function(){var oe=e.select(this),me=this.__chart__||h,ye=this.__chart__=h.copy(),Xe=G==null?ye.ticks?ye.ticks.apply(ye,D):ye.domain():G,Ke=q==null?ye.tickFormat?ye.tickFormat.apply(ye,D):le:q,Me=oe.selectAll(".tick").data(Xe,ye),Re=Me.enter().insert("g",".domain").attr("class","tick").style("opacity",Ie),Ue=e.transition(Me.exit()).style("opacity",Ie).remove(),er=e.transition(Me.order()).style("opacity",1),tr=Math.max(w,0)+L,Le,Dr=fc(ye),zr=oe.selectAll(".domain").data([0]),tt=(zr.enter().append("path").attr("class","domain"),e.transition(zr));Re.append("line"),Re.append("text");var yt=Re.select("line"),kt=er.select("line"),Ct=Me.select("text").text(Ke),Vt=Re.select("text"),Ft=er.select("text"),Ot=y==="top"||y==="left"?-1:1,pa,xn,Da,ht;if(y==="bottom"||y==="top"?(Le=yu,pa="x",Da="y",xn="x2",ht="y2",Ct.attr("dy",Ot<0?"0em":".71em").style("text-anchor","middle"),tt.attr("d","M"+Dr[0]+","+Ot*C+"V0H"+Dr[1]+"V"+Ot*C)):(Le=gu,pa="y",Da="x",xn="y2",ht="x2",Ct.attr("dy",".32em").style("text-anchor",Ot<0?"end":"start"),tt.attr("d","M"+Ot*C+","+Dr[0]+"H0V"+Dr[1]+"H"+Ot*C)),yt.attr(ht,Ot*w),Vt.attr(Da,Ot*tr),kt.attr(xn,0).attr(ht,Ot*w),Ft.attr(pa,0).attr(Da,Ot*tr),ye.rangeBand){var Yt=ye,jt=Yt.rangeBand()/2;me=ye=function(ca){return Yt(ca)+jt}}else me.rangeBand?me=ye:Ue.call(Le,ye,me);Re.call(Le,me,ye),er.call(Le,ye,ye)})}return j.scale=function(ne){return arguments.length?(h=ne,j):h},j.orient=function(ne){return arguments.length?(y=ne in mu?ne+"":_f,j):y},j.ticks=function(){return arguments.length?(D=t(arguments),j):D},j.tickValues=function(ne){return arguments.length?(G=ne,j):G},j.tickFormat=function(ne){return arguments.length?(q=ne,j):q},j.tickSize=function(ne){var oe=arguments.length;return oe?(w=+ne,C=+arguments[oe-1],j):w},j.innerTickSize=function(ne){return arguments.length?(w=+ne,j):w},j.outerTickSize=function(ne){return arguments.length?(C=+ne,j):C},j.tickPadding=function(ne){return arguments.length?(L=+ne,j):L},j.tickSubdivide=function(){return arguments.length&&j},j};var _f="bottom",mu={top:1,right:1,bottom:1,left:1};function yu(h,y,w){h.attr("transform",function(C){var L=y(C);return"translate("+(isFinite(L)?L:w(C))+",0)"})}function gu(h,y,w){h.attr("transform",function(C){var L=y(C);return"translate(0,"+(isFinite(L)?L:w(C))+")"})}e.svg.brush=function(){var h=Ee(oe,"brushstart","brush","brushend"),y=null,w=null,C=[0,0],L=[0,0],D,G,q=!0,j=!0,ne=Ts[0];function oe(Me){Me.each(function(){var Re=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ke).on("touchstart.brush",Ke),Ue=Re.selectAll(".background").data([0]);Ue.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Re.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var er=Re.selectAll(".resize").data(ne,le);er.exit().remove(),er.enter().append("g").attr("class",function(zr){return"resize "+zr}).style("cursor",function(zr){return bu[zr]}).append("rect").attr("x",function(zr){return/[ew]$/.test(zr)?-3:null}).attr("y",function(zr){return/^[ns]/.test(zr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),er.style("display",oe.empty()?"none":null);var tr=e.transition(Re),Le=e.transition(Ue),Dr;y&&(Dr=fc(y),Le.attr("x",Dr[0]).attr("width",Dr[1]-Dr[0]),ye(tr)),w&&(Dr=fc(w),Le.attr("y",Dr[0]).attr("height",Dr[1]-Dr[0]),Xe(tr)),me(tr)})}oe.event=function(Me){Me.each(function(){var Re=h.of(this,arguments),Ue={x:C,y:L,i:D,j:G},er=this.__chart__||Ue;this.__chart__=Ue,ml?e.select(this).transition().each("start.brush",function(){D=er.i,G=er.j,C=er.x,L=er.y,Re({type:"brushstart"})}).tween("brush:brush",function(){var tr=sf(C,Ue.x),Le=sf(L,Ue.y);return D=G=null,function(Dr){C=Ue.x=tr(Dr),L=Ue.y=Le(Dr),Re({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=Ue.i,G=Ue.j,Re({type:"brush",mode:"resize"}),Re({type:"brushend"})}):(Re({type:"brushstart"}),Re({type:"brush",mode:"resize"}),Re({type:"brushend"}))})};function me(Me){Me.selectAll(".resize").attr("transform",function(Re){return"translate("+C[+/e$/.test(Re)]+","+L[+/^s/.test(Re)]+")"})}function ye(Me){Me.select(".extent").attr("x",C[0]),Me.selectAll(".extent,.n>rect,.s>rect").attr("width",C[1]-C[0])}function Xe(Me){Me.select(".extent").attr("y",L[0]),Me.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function Ke(){var Me=this,Re=e.select(e.event.target),Ue=h.of(Me,arguments),er=e.select(Me),tr=Re.datum(),Le=!/^(n|s)$/.test(tr)&&y,Dr=!/^(e|w)$/.test(tr)&&w,zr=Re.classed("extent"),tt=ot(Me),yt,kt=e.mouse(Me),Ct,Vt=e.select(i(Me)).on("keydown.brush",pa).on("keyup.brush",xn);if(e.event.changedTouches?Vt.on("touchmove.brush",Da).on("touchend.brush",Yt):Vt.on("mousemove.brush",Da).on("mouseup.brush",Yt),er.interrupt().selectAll("*").interrupt(),zr)kt[0]=C[0]-kt[0],kt[1]=L[0]-kt[1];else if(tr){var Ft=+/w$/.test(tr),Ot=+/^n/.test(tr);Ct=[C[1-Ft]-kt[0],L[1-Ot]-kt[1]],kt[0]=C[Ft],kt[1]=L[Ot]}else e.event.altKey&&(yt=kt.slice());er.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Re.style("cursor")),Ue({type:"brushstart"}),Da();function pa(){e.event.keyCode==32&&(zr||(yt=null,kt[0]-=C[1],kt[1]-=L[1],zr=2),De())}function xn(){e.event.keyCode==32&&zr==2&&(kt[0]+=C[1],kt[1]+=L[1],zr=0,De())}function Da(){var jt=e.mouse(Me),ca=!1;Ct&&(jt[0]+=Ct[0],jt[1]+=Ct[1]),zr||(e.event.altKey?(yt||(yt=[(C[0]+C[1])/2,(L[0]+L[1])/2]),kt[0]=C[+(jt[0]{(function(e,r){typeof Eg=="object"&&typeof bM!="undefined"?r(Eg):(e=e||self,r(e.d3=e.d3||{}))})(Eg,function(e){"use strict";var r=new Date,t=new Date;function a(Pe,sr,lt,Et){function wt(Fe){return Pe(Fe=arguments.length===0?new Date:new Date(+Fe)),Fe}return wt.floor=function(Fe){return Pe(Fe=new Date(+Fe)),Fe},wt.ceil=function(Fe){return Pe(Fe=new Date(Fe-1)),sr(Fe,1),Pe(Fe),Fe},wt.round=function(Fe){var hr=wt(Fe),Or=wt.ceil(Fe);return Fe-hr0))return at;do at.push(Yr=new Date(+Fe)),sr(Fe,Or),Pe(Fe);while(Yr=hr)for(;Pe(hr),!Fe(hr);)hr.setTime(hr-1)},function(hr,Or){if(hr>=hr)if(Or<0)for(;++Or<=0;)for(;sr(hr,-1),!Fe(hr););else for(;--Or>=0;)for(;sr(hr,1),!Fe(hr););})},lt&&(wt.count=function(Fe,hr){return r.setTime(+Fe),t.setTime(+hr),Pe(r),Pe(t),Math.floor(lt(r,t))},wt.every=function(Fe){return Fe=Math.floor(Fe),!isFinite(Fe)||!(Fe>0)?null:Fe>1?wt.filter(Et?function(hr){return Et(hr)%Fe===0}:function(hr){return wt.count(0,hr)%Fe===0}):wt}),wt}var n=a(function(){},function(Pe,sr){Pe.setTime(+Pe+sr)},function(Pe,sr){return sr-Pe});n.every=function(Pe){return Pe=Math.floor(Pe),!isFinite(Pe)||!(Pe>0)?null:Pe>1?a(function(sr){sr.setTime(Math.floor(sr/Pe)*Pe)},function(sr,lt){sr.setTime(+sr+lt*Pe)},function(sr,lt){return(lt-sr)/Pe}):n};var i=n.range,o=1e3,l=6e4,s=36e5,f=864e5,u=6048e5,c=a(function(Pe){Pe.setTime(Pe-Pe.getMilliseconds())},function(Pe,sr){Pe.setTime(+Pe+sr*o)},function(Pe,sr){return(sr-Pe)/o},function(Pe){return Pe.getUTCSeconds()}),v=c.range,d=a(function(Pe){Pe.setTime(Pe-Pe.getMilliseconds()-Pe.getSeconds()*o)},function(Pe,sr){Pe.setTime(+Pe+sr*l)},function(Pe,sr){return(sr-Pe)/l},function(Pe){return Pe.getMinutes()}),p=d.range,g=a(function(Pe){Pe.setTime(Pe-Pe.getMilliseconds()-Pe.getSeconds()*o-Pe.getMinutes()*l)},function(Pe,sr){Pe.setTime(+Pe+sr*s)},function(Pe,sr){return(sr-Pe)/s},function(Pe){return Pe.getHours()}),m=g.range,b=a(function(Pe){Pe.setHours(0,0,0,0)},function(Pe,sr){Pe.setDate(Pe.getDate()+sr)},function(Pe,sr){return(sr-Pe-(sr.getTimezoneOffset()-Pe.getTimezoneOffset())*l)/f},function(Pe){return Pe.getDate()-1}),A=b.range;function _(Pe){return a(function(sr){sr.setDate(sr.getDate()-(sr.getDay()+7-Pe)%7),sr.setHours(0,0,0,0)},function(sr,lt){sr.setDate(sr.getDate()+lt*7)},function(sr,lt){return(lt-sr-(lt.getTimezoneOffset()-sr.getTimezoneOffset())*l)/u})}var x=_(0),T=_(1),E=_(2),M=_(3),k=_(4),F=_(5),O=_(6),I=x.range,R=T.range,H=E.range,X=M.range,le=k.range,ae=F.range,$=O.range,Z=a(function(Pe){Pe.setDate(1),Pe.setHours(0,0,0,0)},function(Pe,sr){Pe.setMonth(Pe.getMonth()+sr)},function(Pe,sr){return sr.getMonth()-Pe.getMonth()+(sr.getFullYear()-Pe.getFullYear())*12},function(Pe){return Pe.getMonth()}),J=Z.range,ie=a(function(Pe){Pe.setMonth(0,1),Pe.setHours(0,0,0,0)},function(Pe,sr){Pe.setFullYear(Pe.getFullYear()+sr)},function(Pe,sr){return sr.getFullYear()-Pe.getFullYear()},function(Pe){return Pe.getFullYear()});ie.every=function(Pe){return!isFinite(Pe=Math.floor(Pe))||!(Pe>0)?null:a(function(sr){sr.setFullYear(Math.floor(sr.getFullYear()/Pe)*Pe),sr.setMonth(0,1),sr.setHours(0,0,0,0)},function(sr,lt){sr.setFullYear(sr.getFullYear()+lt*Pe)})};var ue=ie.range,De=a(function(Pe){Pe.setUTCSeconds(0,0)},function(Pe,sr){Pe.setTime(+Pe+sr*l)},function(Pe,sr){return(sr-Pe)/l},function(Pe){return Pe.getUTCMinutes()}),Oe=De.range,Ee=a(function(Pe){Pe.setUTCMinutes(0,0,0)},function(Pe,sr){Pe.setTime(+Pe+sr*s)},function(Pe,sr){return(sr-Pe)/s},function(Pe){return Pe.getUTCHours()}),Ze=Ee.range,Ae=a(function(Pe){Pe.setUTCHours(0,0,0,0)},function(Pe,sr){Pe.setUTCDate(Pe.getUTCDate()+sr)},function(Pe,sr){return(sr-Pe)/f},function(Pe){return Pe.getUTCDate()-1}),ir=Ae.range;function Ge(Pe){return a(function(sr){sr.setUTCDate(sr.getUTCDate()-(sr.getUTCDay()+7-Pe)%7),sr.setUTCHours(0,0,0,0)},function(sr,lt){sr.setUTCDate(sr.getUTCDate()+lt*7)},function(sr,lt){return(lt-sr)/u})}var Qe=Ge(0),He=Ge(1),Ve=Ge(2),ee=Ge(3),ge=Ge(4),re=Ge(5),Ye=Ge(6),vr=Qe.range,rr=He.range,Cr=Ve.range,Lr=ee.range,_r=ge.range,Pr=re.range,rt=Ye.range,Jr=a(function(Pe){Pe.setUTCDate(1),Pe.setUTCHours(0,0,0,0)},function(Pe,sr){Pe.setUTCMonth(Pe.getUTCMonth()+sr)},function(Pe,sr){return sr.getUTCMonth()-Pe.getUTCMonth()+(sr.getUTCFullYear()-Pe.getUTCFullYear())*12},function(Pe){return Pe.getUTCMonth()}),wr=Jr.range,Hr=a(function(Pe){Pe.setUTCMonth(0,1),Pe.setUTCHours(0,0,0,0)},function(Pe,sr){Pe.setUTCFullYear(Pe.getUTCFullYear()+sr)},function(Pe,sr){return sr.getUTCFullYear()-Pe.getUTCFullYear()},function(Pe){return Pe.getUTCFullYear()});Hr.every=function(Pe){return!isFinite(Pe=Math.floor(Pe))||!(Pe>0)?null:a(function(sr){sr.setUTCFullYear(Math.floor(sr.getUTCFullYear()/Pe)*Pe),sr.setUTCMonth(0,1),sr.setUTCHours(0,0,0,0)},function(sr,lt){sr.setUTCFullYear(sr.getUTCFullYear()+lt*Pe)})};var Vr=Hr.range;e.timeDay=b,e.timeDays=A,e.timeFriday=F,e.timeFridays=ae,e.timeHour=g,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=T,e.timeMondays=R,e.timeMonth=Z,e.timeMonths=J,e.timeSaturday=O,e.timeSaturdays=$,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=I,e.timeThursday=k,e.timeThursdays=le,e.timeTuesday=E,e.timeTuesdays=H,e.timeWednesday=M,e.timeWednesdays=X,e.timeWeek=x,e.timeWeeks=I,e.timeYear=ie,e.timeYears=ue,e.utcDay=Ae,e.utcDays=ir,e.utcFriday=re,e.utcFridays=Pr,e.utcHour=Ee,e.utcHours=Ze,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=De,e.utcMinutes=Oe,e.utcMonday=He,e.utcMondays=rr,e.utcMonth=Jr,e.utcMonths=wr,e.utcSaturday=Ye,e.utcSaturdays=rt,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=Qe,e.utcSundays=vr,e.utcThursday=ge,e.utcThursdays=_r,e.utcTuesday=Ve,e.utcTuesdays=Cr,e.utcWednesday=ee,e.utcWednesdays=Lr,e.utcWeek=Qe,e.utcWeeks=vr,e.utcYear=Hr,e.utcYears=Vr,Object.defineProperty(e,"__esModule",{value:!0})})});var Wh=P((kg,xM)=>{(function(e,r){typeof kg=="object"&&typeof xM!="undefined"?r(kg,y5()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(kg,function(e,r){"use strict";function t(Se){if(0<=Se.y&&Se.y<100){var Ie=new Date(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L);return Ie.setFullYear(Se.y),Ie}return new Date(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L)}function a(Se){if(0<=Se.y&&Se.y<100){var Ie=new Date(Date.UTC(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L));return Ie.setUTCFullYear(Se.y),Ie}return new Date(Date.UTC(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L))}function n(Se,Ie,yr){return{y:Se,m:Ie,d:yr,H:0,M:0,S:0,L:0}}function i(Se){var Ie=Se.dateTime,yr=Se.date,cr=Se.time,xt=Se.periods,At=Se.days,gt=Se.shortDays,Nt=Se.months,ta=Se.shortMonths,ka=v(xt),Ta=d(xt),Rn=v(At),bn=d(At),ja=v(gt),cn=d(gt),jn=v(Nt),vn=d(Nt),wn=v(ta),Mi=d(ta),Pt={a:ss,A:fs,b:kl,B:Zu,c:null,d:Z,e:Z,f:Oe,H:J,I:ie,j:ue,L:De,m:Ee,M:Ze,p:Oo,q:Yf,Q:hr,s:Or,S:Ae,u:ir,U:Ge,V:Qe,w:He,W:Ve,x:null,X:null,y:ee,Y:ge,Z:re,"%":Fe},Ca={a:Wf,A:Xi,b:hi,B:Ii,c:null,d:Ye,e:Ye,f:_r,H:vr,I:rr,j:Cr,L:Lr,m:Pr,M:rt,p:Cl,q:di,Q:hr,s:Or,S:Jr,u:wr,U:Hr,V:Vr,w:Pe,W:sr,x:null,X:null,y:lt,Y:Et,Z:wt,"%":Fe},ia={a:Ga,A:tn,b:Wi,B:ji,c:qn,d:k,e:k,f:X,H:O,I:O,j:F,L:H,m:M,M:I,p:Ba,q:E,Q:ae,s:$,S:R,u:g,U:m,V:b,w:p,W:A,x:Ra,X:Xn,y:x,Y:_,Z:T,"%":le};Pt.x=Va(yr,Pt),Pt.X=Va(cr,Pt),Pt.c=Va(Ie,Pt),Ca.x=Va(yr,Ca),Ca.X=Va(cr,Ca),Ca.c=Va(Ie,Ca);function Va(qt,$t){return function(ua){var _t=[],Zn=-1,Ua=0,Pn=qt.length,ra,wo,ol;for(ua instanceof Date||(ua=new Date(+ua));++Zn53)return null;"w"in _t||(_t.w=1),"Z"in _t?(Ua=a(n(_t.y,0,1)),Pn=Ua.getUTCDay(),Ua=Pn>4||Pn===0?r.utcMonday.ceil(Ua):r.utcMonday(Ua),Ua=r.utcDay.offset(Ua,(_t.V-1)*7),_t.y=Ua.getUTCFullYear(),_t.m=Ua.getUTCMonth(),_t.d=Ua.getUTCDate()+(_t.w+6)%7):(Ua=t(n(_t.y,0,1)),Pn=Ua.getDay(),Ua=Pn>4||Pn===0?r.timeMonday.ceil(Ua):r.timeMonday(Ua),Ua=r.timeDay.offset(Ua,(_t.V-1)*7),_t.y=Ua.getFullYear(),_t.m=Ua.getMonth(),_t.d=Ua.getDate()+(_t.w+6)%7)}else("W"in _t||"U"in _t)&&("w"in _t||(_t.w="u"in _t?_t.u%7:"W"in _t?1:0),Pn="Z"in _t?a(n(_t.y,0,1)).getUTCDay():t(n(_t.y,0,1)).getDay(),_t.m=0,_t.d="W"in _t?(_t.w+6)%7+_t.W*7-(Pn+5)%7:_t.w+_t.U*7-(Pn+6)%7);return"Z"in _t?(_t.H+=_t.Z/100|0,_t.M+=_t.Z%100,a(_t)):t(_t)}}function La(qt,$t,ua,_t){for(var Zn=0,Ua=$t.length,Pn=ua.length,ra,wo;Zn=Pn)return-1;if(ra=$t.charCodeAt(Zn++),ra===37){if(ra=$t.charAt(Zn++),wo=ia[ra in o?$t.charAt(Zn++):ra],!wo||(_t=wo(qt,ua,_t))<0)return-1}else if(ra!=ua.charCodeAt(_t++))return-1}return _t}function Ba(qt,$t,ua){var _t=ka.exec($t.slice(ua));return _t?(qt.p=Ta[_t[0].toLowerCase()],ua+_t[0].length):-1}function Ga(qt,$t,ua){var _t=ja.exec($t.slice(ua));return _t?(qt.w=cn[_t[0].toLowerCase()],ua+_t[0].length):-1}function tn(qt,$t,ua){var _t=Rn.exec($t.slice(ua));return _t?(qt.w=bn[_t[0].toLowerCase()],ua+_t[0].length):-1}function Wi(qt,$t,ua){var _t=wn.exec($t.slice(ua));return _t?(qt.m=Mi[_t[0].toLowerCase()],ua+_t[0].length):-1}function ji(qt,$t,ua){var _t=jn.exec($t.slice(ua));return _t?(qt.m=vn[_t[0].toLowerCase()],ua+_t[0].length):-1}function qn(qt,$t,ua){return La(qt,Ie,$t,ua)}function Ra(qt,$t,ua){return La(qt,yr,$t,ua)}function Xn(qt,$t,ua){return La(qt,cr,$t,ua)}function ss(qt){return gt[qt.getDay()]}function fs(qt){return At[qt.getDay()]}function kl(qt){return ta[qt.getMonth()]}function Zu(qt){return Nt[qt.getMonth()]}function Oo(qt){return xt[+(qt.getHours()>=12)]}function Yf(qt){return 1+~~(qt.getMonth()/3)}function Wf(qt){return gt[qt.getUTCDay()]}function Xi(qt){return At[qt.getUTCDay()]}function hi(qt){return ta[qt.getUTCMonth()]}function Ii(qt){return Nt[qt.getUTCMonth()]}function Cl(qt){return xt[+(qt.getUTCHours()>=12)]}function di(qt){return 1+~~(qt.getUTCMonth()/3)}return{format:function(qt){var $t=Va(qt+="",Pt);return $t.toString=function(){return qt},$t},parse:function(qt){var $t=hn(qt+="",!1);return $t.toString=function(){return qt},$t},utcFormat:function(qt){var $t=Va(qt+="",Ca);return $t.toString=function(){return qt},$t},utcParse:function(qt){var $t=hn(qt+="",!0);return $t.toString=function(){return qt},$t}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,f=/[\\^$*+?|[\]().{}]/g;function u(Se,Ie,yr){var cr=Se<0?"-":"",xt=(cr?-Se:Se)+"",At=xt.length;return cr+(At68?1900:2e3),yr+cr[0].length):-1}function T(Se,Ie,yr){var cr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ie.slice(yr,yr+6));return cr?(Se.Z=cr[1]?0:-(cr[2]+(cr[3]||"00")),yr+cr[0].length):-1}function E(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+1));return cr?(Se.q=cr[0]*3-3,yr+cr[0].length):-1}function M(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+2));return cr?(Se.m=cr[0]-1,yr+cr[0].length):-1}function k(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+2));return cr?(Se.d=+cr[0],yr+cr[0].length):-1}function F(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+3));return cr?(Se.m=0,Se.d=+cr[0],yr+cr[0].length):-1}function O(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+2));return cr?(Se.H=+cr[0],yr+cr[0].length):-1}function I(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+2));return cr?(Se.M=+cr[0],yr+cr[0].length):-1}function R(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+2));return cr?(Se.S=+cr[0],yr+cr[0].length):-1}function H(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+3));return cr?(Se.L=+cr[0],yr+cr[0].length):-1}function X(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+6));return cr?(Se.L=Math.floor(cr[0]/1e3),yr+cr[0].length):-1}function le(Se,Ie,yr){var cr=s.exec(Ie.slice(yr,yr+1));return cr?yr+cr[0].length:-1}function ae(Se,Ie,yr){var cr=l.exec(Ie.slice(yr));return cr?(Se.Q=+cr[0],yr+cr[0].length):-1}function $(Se,Ie,yr){var cr=l.exec(Ie.slice(yr));return cr?(Se.s=+cr[0],yr+cr[0].length):-1}function Z(Se,Ie){return u(Se.getDate(),Ie,2)}function J(Se,Ie){return u(Se.getHours(),Ie,2)}function ie(Se,Ie){return u(Se.getHours()%12||12,Ie,2)}function ue(Se,Ie){return u(1+r.timeDay.count(r.timeYear(Se),Se),Ie,3)}function De(Se,Ie){return u(Se.getMilliseconds(),Ie,3)}function Oe(Se,Ie){return De(Se,Ie)+"000"}function Ee(Se,Ie){return u(Se.getMonth()+1,Ie,2)}function Ze(Se,Ie){return u(Se.getMinutes(),Ie,2)}function Ae(Se,Ie){return u(Se.getSeconds(),Ie,2)}function ir(Se){var Ie=Se.getDay();return Ie===0?7:Ie}function Ge(Se,Ie){return u(r.timeSunday.count(r.timeYear(Se)-1,Se),Ie,2)}function Qe(Se,Ie){var yr=Se.getDay();return Se=yr>=4||yr===0?r.timeThursday(Se):r.timeThursday.ceil(Se),u(r.timeThursday.count(r.timeYear(Se),Se)+(r.timeYear(Se).getDay()===4),Ie,2)}function He(Se){return Se.getDay()}function Ve(Se,Ie){return u(r.timeMonday.count(r.timeYear(Se)-1,Se),Ie,2)}function ee(Se,Ie){return u(Se.getFullYear()%100,Ie,2)}function ge(Se,Ie){return u(Se.getFullYear()%1e4,Ie,4)}function re(Se){var Ie=Se.getTimezoneOffset();return(Ie>0?"-":(Ie*=-1,"+"))+u(Ie/60|0,"0",2)+u(Ie%60,"0",2)}function Ye(Se,Ie){return u(Se.getUTCDate(),Ie,2)}function vr(Se,Ie){return u(Se.getUTCHours(),Ie,2)}function rr(Se,Ie){return u(Se.getUTCHours()%12||12,Ie,2)}function Cr(Se,Ie){return u(1+r.utcDay.count(r.utcYear(Se),Se),Ie,3)}function Lr(Se,Ie){return u(Se.getUTCMilliseconds(),Ie,3)}function _r(Se,Ie){return Lr(Se,Ie)+"000"}function Pr(Se,Ie){return u(Se.getUTCMonth()+1,Ie,2)}function rt(Se,Ie){return u(Se.getUTCMinutes(),Ie,2)}function Jr(Se,Ie){return u(Se.getUTCSeconds(),Ie,2)}function wr(Se){var Ie=Se.getUTCDay();return Ie===0?7:Ie}function Hr(Se,Ie){return u(r.utcSunday.count(r.utcYear(Se)-1,Se),Ie,2)}function Vr(Se,Ie){var yr=Se.getUTCDay();return Se=yr>=4||yr===0?r.utcThursday(Se):r.utcThursday.ceil(Se),u(r.utcThursday.count(r.utcYear(Se),Se)+(r.utcYear(Se).getUTCDay()===4),Ie,2)}function Pe(Se){return Se.getUTCDay()}function sr(Se,Ie){return u(r.utcMonday.count(r.utcYear(Se)-1,Se),Ie,2)}function lt(Se,Ie){return u(Se.getUTCFullYear()%100,Ie,2)}function Et(Se,Ie){return u(Se.getUTCFullYear()%1e4,Ie,4)}function wt(){return"+0000"}function Fe(){return"%"}function hr(Se){return+Se}function Or(Se){return Math.floor(+Se/1e3)}var at;Yr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Yr(Se){return at=i(Se),e.timeFormat=at.format,e.timeParse=at.parse,e.utcFormat=at.utcFormat,e.utcParse=at.utcParse,at}var nt="%Y-%m-%dT%H:%M:%S.%LZ";function vt(Se){return Se.toISOString()}var ot=Date.prototype.toISOString?vt:e.utcFormat(nt);function et(Se){var Ie=new Date(Se);return isNaN(Ie)?null:Ie}var pr=+new Date("2000-01-01T00:00:00.000Z")?et:e.utcParse(nt);e.isoFormat=ot,e.isoParse=pr,e.timeFormatDefaultLocale=Yr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var g5=P((Cg,_M)=>{(function(e,r){typeof Cg=="object"&&typeof _M!="undefined"?r(Cg):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Cg,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,k){if((F=(M=k?M.toExponential(k-1):M.toExponential()).indexOf("e"))<0)return null;var F,O=M.slice(0,F);return[O.length>1?O[0]+O.slice(2):O,+M.slice(F+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,k){return function(F,O){for(var I=F.length,R=[],H=0,X=M[0],le=0;I>0&&X>0&&(le+X+1>O&&(X=Math.max(1,O-le)),R.push(F.substring(I-=X,I+X)),!((le+=X+1)>O));)X=M[H=(H+1)%M.length];return R.reverse().join(k)}}function i(M){return function(k){return k.replace(/[0-9]/g,function(F){return M[+F]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(k=o.exec(M)))throw new Error("invalid format: "+M);var k;return new s({fill:k[1],align:k[2],sign:k[3],symbol:k[4],zero:k[5],width:k[6],comma:k[7],precision:k[8]&&k[8].slice(1),trim:k[9],type:k[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function f(M){e:for(var k=M.length,F=1,O=-1,I;F0&&(O=0);break}return O>0?M.slice(0,O)+M.slice(I+1):M}var u;function c(M,k){var F=t(M,k);if(!F)return M+"";var O=F[0],I=F[1],R=I-(u=Math.max(-8,Math.min(8,Math.floor(I/3)))*3)+1,H=O.length;return R===H?O:R>H?O+new Array(R-H+1).join("0"):R>0?O.slice(0,R)+"."+O.slice(R):"0."+new Array(1-R).join("0")+t(M,Math.max(0,k+R-1))[0]}function v(M,k){var F=t(M,k);if(!F)return M+"";var O=F[0],I=F[1];return I<0?"0."+new Array(-I).join("0")+O:O.length>I+1?O.slice(0,I+1)+"."+O.slice(I+1):O+new Array(I-O.length+2).join("0")}var d={"%":function(M,k){return(M*100).toFixed(k)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,k){return M.toExponential(k)},f:function(M,k){return M.toFixed(k)},g:function(M,k){return M.toPrecision(k)},o:function(M){return Math.round(M).toString(8)},p:function(M,k){return v(M*100,k)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var g=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var k=M.grouping===void 0||M.thousands===void 0?p:n(g.call(M.grouping,Number),M.thousands+""),F=M.currency===void 0?"":M.currency[0]+"",O=M.currency===void 0?"":M.currency[1]+"",I=M.decimal===void 0?".":M.decimal+"",R=M.numerals===void 0?p:i(g.call(M.numerals,String)),H=M.percent===void 0?"%":M.percent+"",X=M.minus===void 0?"-":M.minus+"",le=M.nan===void 0?"NaN":M.nan+"";function ae(Z){Z=l(Z);var J=Z.fill,ie=Z.align,ue=Z.sign,De=Z.symbol,Oe=Z.zero,Ee=Z.width,Ze=Z.comma,Ae=Z.precision,ir=Z.trim,Ge=Z.type;Ge==="n"?(Ze=!0,Ge="g"):d[Ge]||(Ae===void 0&&(Ae=12),ir=!0,Ge="g"),(Oe||J==="0"&&ie==="=")&&(Oe=!0,J="0",ie="=");var Qe=De==="$"?F:De==="#"&&/[boxX]/.test(Ge)?"0"+Ge.toLowerCase():"",He=De==="$"?O:/[%p]/.test(Ge)?H:"",Ve=d[Ge],ee=/[defgprs%]/.test(Ge);Ae=Ae===void 0?6:/[gprs]/.test(Ge)?Math.max(1,Math.min(21,Ae)):Math.max(0,Math.min(20,Ae));function ge(re){var Ye=Qe,vr=He,rr,Cr,Lr;if(Ge==="c")vr=Ve(re)+vr,re="";else{re=+re;var _r=re<0||1/re<0;if(re=isNaN(re)?le:Ve(Math.abs(re),Ae),ir&&(re=f(re)),_r&&+re==0&&ue!=="+"&&(_r=!1),Ye=(_r?ue==="("?ue:X:ue==="-"||ue==="("?"":ue)+Ye,vr=(Ge==="s"?m[8+u/3]:"")+vr+(_r&&ue==="("?")":""),ee){for(rr=-1,Cr=re.length;++rrLr||Lr>57){vr=(Lr===46?I+re.slice(rr+1):re.slice(rr))+vr,re=re.slice(0,rr);break}}}Ze&&!Oe&&(re=k(re,1/0));var Pr=Ye.length+re.length+vr.length,rt=Pr>1)+Ye+re+vr+rt.slice(Pr);break;default:re=rt+Ye+re+vr;break}return R(re)}return ge.toString=function(){return Z+""},ge}function $(Z,J){var ie=ae((Z=l(Z),Z.type="f",Z)),ue=Math.max(-8,Math.min(8,Math.floor(a(J)/3)))*3,De=Math.pow(10,-ue),Oe=m[8+ue/3];return function(Ee){return ie(De*Ee)+Oe}}return{format:ae,formatPrefix:$}}var A;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(M){return A=b(M),e.format=A.format,e.formatPrefix=A.formatPrefix,A}function x(M){return Math.max(0,-a(Math.abs(M)))}function T(M,k){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(k)/3)))*3-a(Math.abs(M)))}function E(M,k){return M=Math.abs(M),k=Math.abs(k)-M,Math.max(0,a(k)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=_,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=T,e.precisionRound=E,Object.defineProperty(e,"__esModule",{value:!0})})});var AM=P((oEe,wM)=>{"use strict";wM.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var ga=P((lEe,TM)=>{"use strict";var Une=AM();TM.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Une(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Qn=P((sEe,MM)=>{"use strict";MM.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var b5=P((Lg,SM)=>{(function(e,r){typeof Lg=="object"&&typeof SM!="undefined"?r(Lg):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Lg,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],u+=r[(l[s]&3)<<4|l[s+1]>>4],u+=r[(l[s+1]&15)<<2|l[s+2]>>6],u+=r[l[s+2]&63];return f%3===2?u=u.substring(0,u.length-1)+"=":f%3===1&&(u=u.substring(0,u.length-2)+"=="),u},i=function(o){var l=o.length*.75,s=o.length,f,u=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var g=new ArrayBuffer(l),m=new Uint8Array(g);for(f=0;f>4,m[u++]=(v&15)<<4|d>>2,m[u++]=(d&3)<<6|p&63;return g};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var Mc=P((fEe,EM)=>{"use strict";EM.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Vo=P(Ss=>{"use strict";var Hne=b5().decode,Vne=Mc(),x5=Array.isArray,Yne=ArrayBuffer,Wne=DataView;function kM(e){return Yne.isView(e)&&!(e instanceof Wne)}Ss.isTypedArray=kM;function Dg(e){return x5(e)||kM(e)}Ss.isArrayOrTypedArray=Dg;function jne(e){return!Dg(e[0])}Ss.isArray1D=jne;Ss.ensureArray=function(e,r){return x5(e)||(e=[]),e.length=r,e};var Fi={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Fi.uint8c=Fi.u1c;Fi.uint8=Fi.u1;Fi.int8=Fi.i1;Fi.uint16=Fi.u2;Fi.int16=Fi.i2;Fi.uint32=Fi.u4;Fi.int32=Fi.i4;Fi.float32=Fi.f4;Fi.float64=Fi.f8;function _5(e){return e.constructor===ArrayBuffer}Ss.isArrayBuffer=_5;Ss.decodeTypedArraySpec=function(e){var r=[],t=Xne(e),a=t.dtype,n=Fi[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;_5(o)||(o=Hne(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,f,u,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(f=+l[1],u=0;u{"use strict";var LM=ga(),A5=Vo().isArrayOrTypedArray;qM.exports=function(r,t){if(LM(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var jh=Fg(),Kne=/^\w*$/,eie=0,PM=1,Rg=2,NM=3,v0=4;OM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=jh(r,t),o=l.get()):o=r,t=t||"";var f={};if(o)for(i=0;i2)return s[d]=s[d]|Rg,c.set(v,null);if(u){for(i=d;i{"use strict";var rie=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,tie=/^[^\.\[\]]+$/;BM.exports=function(e,r){for(;r;){var t=e.match(rie);if(t)e=t[1];else if(e.match(tie))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var qg=P((dEe,GM)=>{"use strict";var aie=ga();GM.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return aie(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var VM=P((pEe,HM)=>{"use strict";var UM=Vo().isArrayOrTypedArray,Fp=Mc();HM.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(UM(n)&&UM(i)&&Fp(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function nie(e,r){var t=e%r;return t<0?t+r:t}function iie(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}YM.exports={mod:nie,modHalf:iie}});var Es=P((yEe,Pg)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(ee,ge){if(ee=ee||"",ge=ge||{},ee instanceof s)return ee;if(!(this instanceof s))return new s(ee,ge);var re=f(ee);this._originalInput=ee,this._r=re.r,this._g=re.g,this._b=re.b,this._a=re.a,this._roundA=n(100*this._a)/100,this._format=ge.format||re.format,this._gradientType=ge.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=re.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ee=this.toRgb();return(ee.r*299+ee.g*587+ee.b*114)/1e3},getLuminance:function(){var ee=this.toRgb(),ge,re,Ye,vr,rr,Cr;return ge=ee.r/255,re=ee.g/255,Ye=ee.b/255,ge<=.03928?vr=ge/12.92:vr=e.pow((ge+.055)/1.055,2.4),re<=.03928?rr=re/12.92:rr=e.pow((re+.055)/1.055,2.4),Ye<=.03928?Cr=Ye/12.92:Cr=e.pow((Ye+.055)/1.055,2.4),.2126*vr+.7152*rr+.0722*Cr},setAlpha:function(ee){return this._a=Z(ee),this._roundA=n(100*this._a)/100,this},toHsv:function(){var ee=d(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,v:ee.v,a:this._a}},toHsvString:function(){var ee=d(this._r,this._g,this._b),ge=n(ee.h*360),re=n(ee.s*100),Ye=n(ee.v*100);return this._a==1?"hsv("+ge+", "+re+"%, "+Ye+"%)":"hsva("+ge+", "+re+"%, "+Ye+"%, "+this._roundA+")"},toHsl:function(){var ee=c(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,l:ee.l,a:this._a}},toHslString:function(){var ee=c(this._r,this._g,this._b),ge=n(ee.h*360),re=n(ee.s*100),Ye=n(ee.l*100);return this._a==1?"hsl("+ge+", "+re+"%, "+Ye+"%)":"hsla("+ge+", "+re+"%, "+Ye+"%, "+this._roundA+")"},toHex:function(ee){return g(this._r,this._g,this._b,ee)},toHexString:function(ee){return"#"+this.toHex(ee)},toHex8:function(ee){return m(this._r,this._g,this._b,this._a,ee)},toHex8String:function(ee){return"#"+this.toHex8(ee)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(J(this._r,255)*100)+"%",g:n(J(this._g,255)*100)+"%",b:n(J(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(J(this._r,255)*100)+"%, "+n(J(this._g,255)*100)+"%, "+n(J(this._b,255)*100)+"%)":"rgba("+n(J(this._r,255)*100)+"%, "+n(J(this._g,255)*100)+"%, "+n(J(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ae[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(ee){var ge="#"+b(this._r,this._g,this._b,this._a),re=ge,Ye=this._gradientType?"GradientType = 1, ":"";if(ee){var vr=s(ee);re="#"+b(vr._r,vr._g,vr._b,vr._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ye+"startColorstr="+ge+",endColorstr="+re+")"},toString:function(ee){var ge=!!ee;ee=ee||this._format;var re=!1,Ye=this._a<1&&this._a>=0,vr=!ge&&Ye&&(ee==="hex"||ee==="hex6"||ee==="hex3"||ee==="hex4"||ee==="hex8"||ee==="name");return vr?ee==="name"&&this._a===0?this.toName():this.toRgbString():(ee==="rgb"&&(re=this.toRgbString()),ee==="prgb"&&(re=this.toPercentageRgbString()),(ee==="hex"||ee==="hex6")&&(re=this.toHexString()),ee==="hex3"&&(re=this.toHexString(!0)),ee==="hex4"&&(re=this.toHex8String(!0)),ee==="hex8"&&(re=this.toHex8String()),ee==="name"&&(re=this.toName()),ee==="hsl"&&(re=this.toHslString()),ee==="hsv"&&(re=this.toHsvString()),re||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(ee,ge){var re=ee.apply(null,[this].concat([].slice.call(ge)));return this._r=re._r,this._g=re._g,this._b=re._b,this.setAlpha(re._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(E,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(ee,ge){return ee.apply(null,[this].concat([].slice.call(ge)))},analogous:function(){return this._applyCombination(H,arguments)},complement:function(){return this._applyCombination(F,arguments)},monochromatic:function(){return this._applyCombination(X,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},s.fromRatio=function(ee,ge){if(typeof ee=="object"){var re={};for(var Ye in ee)ee.hasOwnProperty(Ye)&&(Ye==="a"?re[Ye]=ee[Ye]:re[Ye]=Ze(ee[Ye]));ee=re}return s(ee,ge)};function f(ee){var ge={r:0,g:0,b:0},re=1,Ye=null,vr=null,rr=null,Cr=!1,Lr=!1;return typeof ee=="string"&&(ee=He(ee)),typeof ee=="object"&&(Qe(ee.r)&&Qe(ee.g)&&Qe(ee.b)?(ge=u(ee.r,ee.g,ee.b),Cr=!0,Lr=String(ee.r).substr(-1)==="%"?"prgb":"rgb"):Qe(ee.h)&&Qe(ee.s)&&Qe(ee.v)?(Ye=Ze(ee.s),vr=Ze(ee.v),ge=p(ee.h,Ye,vr),Cr=!0,Lr="hsv"):Qe(ee.h)&&Qe(ee.s)&&Qe(ee.l)&&(Ye=Ze(ee.s),rr=Ze(ee.l),ge=v(ee.h,Ye,rr),Cr=!0,Lr="hsl"),ee.hasOwnProperty("a")&&(re=ee.a)),re=Z(re),{ok:Cr,format:ee.format||Lr,r:i(255,o(ge.r,0)),g:i(255,o(ge.g,0)),b:i(255,o(ge.b,0)),a:re}}function u(ee,ge,re){return{r:J(ee,255)*255,g:J(ge,255)*255,b:J(re,255)*255}}function c(ee,ge,re){ee=J(ee,255),ge=J(ge,255),re=J(re,255);var Ye=o(ee,ge,re),vr=i(ee,ge,re),rr,Cr,Lr=(Ye+vr)/2;if(Ye==vr)rr=Cr=0;else{var _r=Ye-vr;switch(Cr=Lr>.5?_r/(2-Ye-vr):_r/(Ye+vr),Ye){case ee:rr=(ge-re)/_r+(ge1&&(Jr-=1),Jr<1/6?Pr+(rt-Pr)*6*Jr:Jr<1/2?rt:Jr<2/3?Pr+(rt-Pr)*(2/3-Jr)*6:Pr}if(ge===0)Ye=vr=rr=re;else{var Lr=re<.5?re*(1+ge):re+ge-re*ge,_r=2*re-Lr;Ye=Cr(_r,Lr,ee+1/3),vr=Cr(_r,Lr,ee),rr=Cr(_r,Lr,ee-1/3)}return{r:Ye*255,g:vr*255,b:rr*255}}function d(ee,ge,re){ee=J(ee,255),ge=J(ge,255),re=J(re,255);var Ye=o(ee,ge,re),vr=i(ee,ge,re),rr,Cr,Lr=Ye,_r=Ye-vr;if(Cr=Ye===0?0:_r/Ye,Ye==vr)rr=0;else{switch(Ye){case ee:rr=(ge-re)/_r+(ge>1)+720)%360;--ge;)Ye.h=(Ye.h+vr)%360,rr.push(s(Ye));return rr}function X(ee,ge){ge=ge||6;for(var re=s(ee).toHsv(),Ye=re.h,vr=re.s,rr=re.v,Cr=[],Lr=1/ge;ge--;)Cr.push(s({h:Ye,s:vr,v:rr})),rr=(rr+Lr)%1;return Cr}s.mix=function(ee,ge,re){re=re===0?0:re||50;var Ye=s(ee).toRgb(),vr=s(ge).toRgb(),rr=re/100,Cr={r:(vr.r-Ye.r)*rr+Ye.r,g:(vr.g-Ye.g)*rr+Ye.g,b:(vr.b-Ye.b)*rr+Ye.b,a:(vr.a-Ye.a)*rr+Ye.a};return s(Cr)},s.readability=function(ee,ge){var re=s(ee),Ye=s(ge);return(e.max(re.getLuminance(),Ye.getLuminance())+.05)/(e.min(re.getLuminance(),Ye.getLuminance())+.05)},s.isReadable=function(ee,ge,re){var Ye=s.readability(ee,ge),vr,rr;switch(rr=!1,vr=Ve(re),vr.level+vr.size){case"AAsmall":case"AAAlarge":rr=Ye>=4.5;break;case"AAlarge":rr=Ye>=3;break;case"AAAsmall":rr=Ye>=7;break}return rr},s.mostReadable=function(ee,ge,re){var Ye=null,vr=0,rr,Cr,Lr,_r;re=re||{},Cr=re.includeFallbackColors,Lr=re.level,_r=re.size;for(var Pr=0;Prvr&&(vr=rr,Ye=s(ge[Pr]));return s.isReadable(ee,Ye,{level:Lr,size:_r})||!Cr?Ye:(re.includeFallbackColors=!1,s.mostReadable(ee,["#fff","#000"],re))};var le=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ae=s.hexNames=$(le);function $(ee){var ge={};for(var re in ee)ee.hasOwnProperty(re)&&(ge[ee[re]]=re);return ge}function Z(ee){return ee=parseFloat(ee),(isNaN(ee)||ee<0||ee>1)&&(ee=1),ee}function J(ee,ge){De(ee)&&(ee="100%");var re=Oe(ee);return ee=i(ge,o(0,parseFloat(ee))),re&&(ee=parseInt(ee*ge,10)/100),e.abs(ee-ge)<1e-6?1:ee%ge/parseFloat(ge)}function ie(ee){return i(1,o(0,ee))}function ue(ee){return parseInt(ee,16)}function De(ee){return typeof ee=="string"&&ee.indexOf(".")!=-1&&parseFloat(ee)===1}function Oe(ee){return typeof ee=="string"&&ee.indexOf("%")!=-1}function Ee(ee){return ee.length==1?"0"+ee:""+ee}function Ze(ee){return ee<=1&&(ee=ee*100+"%"),ee}function Ae(ee){return e.round(parseFloat(ee)*255).toString(16)}function ir(ee){return ue(ee)/255}var Ge=function(){var ee="[-\\+]?\\d+%?",ge="[-\\+]?\\d*\\.\\d+%?",re="(?:"+ge+")|(?:"+ee+")",Ye="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",vr="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+Ye),rgba:new RegExp("rgba"+vr),hsl:new RegExp("hsl"+Ye),hsla:new RegExp("hsla"+vr),hsv:new RegExp("hsv"+Ye),hsva:new RegExp("hsva"+vr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Qe(ee){return!!Ge.CSS_UNIT.exec(ee)}function He(ee){ee=ee.replace(r,"").replace(t,"").toLowerCase();var ge=!1;if(le[ee])ee=le[ee],ge=!0;else if(ee=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=Ge.rgb.exec(ee))?{r:re[1],g:re[2],b:re[3]}:(re=Ge.rgba.exec(ee))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=Ge.hsl.exec(ee))?{h:re[1],s:re[2],l:re[3]}:(re=Ge.hsla.exec(ee))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=Ge.hsv.exec(ee))?{h:re[1],s:re[2],v:re[3]}:(re=Ge.hsva.exec(ee))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=Ge.hex8.exec(ee))?{r:ue(re[1]),g:ue(re[2]),b:ue(re[3]),a:ir(re[4]),format:ge?"name":"hex8"}:(re=Ge.hex6.exec(ee))?{r:ue(re[1]),g:ue(re[2]),b:ue(re[3]),format:ge?"name":"hex"}:(re=Ge.hex4.exec(ee))?{r:ue(re[1]+""+re[1]),g:ue(re[2]+""+re[2]),b:ue(re[3]+""+re[3]),a:ir(re[4]+""+re[4]),format:ge?"name":"hex8"}:(re=Ge.hex3.exec(ee))?{r:ue(re[1]+""+re[1]),g:ue(re[2]+""+re[2]),b:ue(re[3]+""+re[3]),format:ge?"name":"hex"}:!1}function Ve(ee){var ge,re;return ee=ee||{level:"AA",size:"small"},ge=(ee.level||"AA").toUpperCase(),re=(ee.size||"small").toLowerCase(),ge!=="AA"&&ge!=="AAA"&&(ge="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:ge,size:re}}typeof Pg!="undefined"&&Pg.exports?Pg.exports=s:window.tinycolor=s})(Math)});var zn=P(Pp=>{"use strict";var WM=Mc(),Rp=Array.isArray;function oie(e,r){var t,a;for(t=0;t{"use strict";jM.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var Np=P((xEe,XM)=>{"use strict";XM.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Zh=P((_Ee,$M)=>{"use strict";var ZM=Np(),JM=zi(),T5=JM({editType:"none"});T5.family.dflt=ZM.HOVERFONT;T5.size.dflt=ZM.HOVERFONTSIZE;$M.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:T5,grouptitlefont:JM({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Ng=P((wEe,QM)=>{"use strict";var lie=zi(),Op=Zh().hoverlabel,Ip=zn().extendFlat;QM.exports={hoverlabel:{bgcolor:Ip({},Op.bgcolor,{arrayOk:!0}),bordercolor:Ip({},Op.bordercolor,{arrayOk:!0}),font:lie({arrayOk:!0,editType:"none"}),align:Ip({},Op.align,{arrayOk:!0}),namelength:Ip({},Op.namelength,{arrayOk:!0}),showarrow:Ip({},Op.showarrow),editType:"none"}}});var ks=P((AEe,KM)=>{"use strict";var sie=zi(),fie=Ng();KM.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:sie({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:fie.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var h0=P((TEe,tS)=>{"use strict";var uie=Es(),Og={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},eS=Og.RdBu;function cie(e,r){if(r||(r=eS),!e)return r;function t(){try{e=Og[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),rS(e)?e:r}function rS(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";d0.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];d0.defaultLine="#444";d0.lightLine="#eee";d0.background="#fff";d0.borderLine="#BEC8D9";d0.lightFraction=100*10/11});var va=P((SEe,aS)=>{"use strict";var Yo=Es(),hie=ga(),die=Vo().isTypedArray,gi=aS.exports={},Ig=wf();gi.defaults=Ig.defaults;var pie=gi.defaultLine=Ig.defaultLine;gi.lightLine=Ig.lightLine;var S5=gi.background=Ig.background;gi.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};gi.rgb=function(e){return gi.tinyRGB(Yo(e))};gi.opacity=function(e){return e?Yo(e).getAlpha():0};gi.addOpacity=function(e,r){var t=Yo(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};gi.combine=function(e,r){var t=Yo(e).toRgb();if(t.a===1)return Yo(e).toRgbString();var a=Yo(r||S5).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Yo(i).toRgbString()};gi.interpolate=function(e,r,t){var a=Yo(e).toRgb(),n=Yo(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Yo(i).toRgbString()};gi.contrast=function(e,r,t){var a=Yo(e);a.getAlpha()!==1&&(a=Yo(gi.combine(e,S5)));var n=a.isDark()?r?a.lighten(r):S5:t?a.darken(t):pie;return n.toString()};gi.stroke=function(e,r){var t=Yo(r);e.style({stroke:gi.tinyRGB(t),"stroke-opacity":t.getAlpha()})};gi.fill=function(e,r){var t=Yo(r);e.style({fill:gi.tinyRGB(t),"fill-opacity":t.getAlpha()})};gi.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var o=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+o+", "+a[3]+")":"rgb("+o+")"}});var Jh=P((EEe,nS)=>{"use strict";nS.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var $h=P(iS=>{"use strict";iS.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var fS=P(Wo=>{"use strict";var E5=ga(),oS=Es(),lS=zn().extendFlat,mie=ks(),yie=h0(),gie=va(),bie=Jh().DESELECTDIM,Qh=Fg(),sS=$h().counter,xie=Xh().modHalf,Af=Vo().isArrayOrTypedArray,Sc=Vo().isTypedArraySpec,Ec=Vo().decodeTypedArraySpec;Wo.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Af(e)?e:Sc(e)?Ec(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;aa.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Sc(e)&&(e=Ec(e)),e%1||!E5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Sc(e)&&(e=Ec(e)),oS(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return oS(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(yie.get(e,t))}},angle:{coerceFunction:function(e,r,t){Sc(e)&&(e=Ec(e)),e==="auto"?r.set("auto"):E5(e)?r.set(xie(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||sS(t);if(typeof e=="string"&&n.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!sS(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var uS={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},cS={};function vS(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),vS(a,r[t]))}}vS(uS,cS);hS.exports={configAttributes:uS,dfltConfig:cS}});var C5=P((DEe,dS)=>{"use strict";var k5=ha(),_ie=ga(),Bp=[];dS.exports=function(e,r){if(Bp.indexOf(e)!==-1)return;Bp.push(e);var t=1e3;_ie(r)?t=r:r==="long"&&(t=3e3);var a=k5.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Bp);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=Bp.indexOf(l);s!==-1&&Bp.splice(s,1),k5.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=k5.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),f=o.split(//g),u=0;u{"use strict";var Kh=p0().dfltConfig,L5=C5(),D5=pS.exports={};D5.log=function(){var e;if(Kh.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};D5.warn=function(){var e;if(Kh.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};D5.error=function(){var e;if(Kh.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var zg=P((REe,mS)=>{"use strict";mS.exports=function(){}});var F5=P((qEe,yS)=>{"use strict";yS.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{gS.exports=wie;function wie(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var _S=P((NEe,xS)=>{xS.exports=Aie;function Aie(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var AS=P((OEe,wS)=>{wS.exports=Tie;function Tie(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var R5=P((IEe,TS)=>{TS.exports=Mie;function Mie(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var SS=P((BEe,MS)=>{MS.exports=Sie;function Sie(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var kS=P((zEe,ES)=>{ES.exports=Eie;function Eie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],f=r[7],u=r[8],c=r[9],v=r[10],d=r[11],p=r[12],g=r[13],m=r[14],b=r[15],A=t*l-a*o,_=t*s-n*o,x=t*f-i*o,T=a*s-n*l,E=a*f-i*l,M=n*f-i*s,k=u*g-c*p,F=u*m-v*p,O=u*b-d*p,I=c*m-v*g,R=c*b-d*g,H=v*b-d*m,X=A*H-_*R+x*I+T*O-E*F+M*k;return X?(X=1/X,e[0]=(l*H-s*R+f*I)*X,e[1]=(n*R-a*H-i*I)*X,e[2]=(g*M-m*E+b*T)*X,e[3]=(v*E-c*M-d*T)*X,e[4]=(s*O-o*H-f*F)*X,e[5]=(t*H-n*O+i*F)*X,e[6]=(m*x-p*M-b*_)*X,e[7]=(u*M-v*x+d*_)*X,e[8]=(o*R-l*O+f*k)*X,e[9]=(a*O-t*R-i*k)*X,e[10]=(p*E-g*x+b*A)*X,e[11]=(c*x-u*E-d*A)*X,e[12]=(l*F-o*I-s*k)*X,e[13]=(t*I-a*F+n*k)*X,e[14]=(g*_-p*T-m*A)*X,e[15]=(u*T-c*_+v*A)*X,e):null}});var LS=P((GEe,CS)=>{CS.exports=kie;function kie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],f=r[7],u=r[8],c=r[9],v=r[10],d=r[11],p=r[12],g=r[13],m=r[14],b=r[15];return e[0]=l*(v*b-d*m)-c*(s*b-f*m)+g*(s*d-f*v),e[1]=-(a*(v*b-d*m)-c*(n*b-i*m)+g*(n*d-i*v)),e[2]=a*(s*b-f*m)-l*(n*b-i*m)+g*(n*f-i*s),e[3]=-(a*(s*d-f*v)-l*(n*d-i*v)+c*(n*f-i*s)),e[4]=-(o*(v*b-d*m)-u*(s*b-f*m)+p*(s*d-f*v)),e[5]=t*(v*b-d*m)-u*(n*b-i*m)+p*(n*d-i*v),e[6]=-(t*(s*b-f*m)-o*(n*b-i*m)+p*(n*f-i*s)),e[7]=t*(s*d-f*v)-o*(n*d-i*v)+u*(n*f-i*s),e[8]=o*(c*b-d*g)-u*(l*b-f*g)+p*(l*d-f*c),e[9]=-(t*(c*b-d*g)-u*(a*b-i*g)+p*(a*d-i*c)),e[10]=t*(l*b-f*g)-o*(a*b-i*g)+p*(a*f-i*l),e[11]=-(t*(l*d-f*c)-o*(a*d-i*c)+u*(a*f-i*l)),e[12]=-(o*(c*m-v*g)-u*(l*m-s*g)+p*(l*v-s*c)),e[13]=t*(c*m-v*g)-u*(a*m-n*g)+p*(a*v-n*c),e[14]=-(t*(l*m-s*g)-o*(a*m-n*g)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+u*(a*s-n*l),e}});var FS=P((UEe,DS)=>{DS.exports=Cie;function Cie(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],f=e[8],u=e[9],c=e[10],v=e[11],d=e[12],p=e[13],g=e[14],m=e[15],b=r*o-t*i,A=r*l-a*i,_=r*s-n*i,x=t*l-a*o,T=t*s-n*o,E=a*s-n*l,M=f*p-u*d,k=f*g-c*d,F=f*m-v*d,O=u*g-c*p,I=u*m-v*p,R=c*m-v*g;return b*R-A*I+_*O+x*F-T*k+E*M}});var qS=P((HEe,RS)=>{RS.exports=Lie;function Lie(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],f=r[6],u=r[7],c=r[8],v=r[9],d=r[10],p=r[11],g=r[12],m=r[13],b=r[14],A=r[15],_=t[0],x=t[1],T=t[2],E=t[3];return e[0]=_*a+x*l+T*c+E*g,e[1]=_*n+x*s+T*v+E*m,e[2]=_*i+x*f+T*d+E*b,e[3]=_*o+x*u+T*p+E*A,_=t[4],x=t[5],T=t[6],E=t[7],e[4]=_*a+x*l+T*c+E*g,e[5]=_*n+x*s+T*v+E*m,e[6]=_*i+x*f+T*d+E*b,e[7]=_*o+x*u+T*p+E*A,_=t[8],x=t[9],T=t[10],E=t[11],e[8]=_*a+x*l+T*c+E*g,e[9]=_*n+x*s+T*v+E*m,e[10]=_*i+x*f+T*d+E*b,e[11]=_*o+x*u+T*p+E*A,_=t[12],x=t[13],T=t[14],E=t[15],e[12]=_*a+x*l+T*c+E*g,e[13]=_*n+x*s+T*v+E*m,e[14]=_*i+x*f+T*d+E*b,e[15]=_*o+x*u+T*p+E*A,e}});var NS=P((VEe,PS)=>{PS.exports=Die;function Die(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,f,u,c,v,d,p,g,m,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],f=r[3],u=r[4],c=r[5],v=r[6],d=r[7],p=r[8],g=r[9],m=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=f,e[4]=u,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=g,e[10]=m,e[11]=b,e[12]=o*a+u*n+p*i+r[12],e[13]=l*a+c*n+g*i+r[13],e[14]=s*a+v*n+m*i+r[14],e[15]=f*a+d*n+b*i+r[15]),e}});var IS=P((YEe,OS)=>{OS.exports=Fie;function Fie(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var zS=P((WEe,BS)=>{BS.exports=Rie;function Rie(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,f,u,c,v,d,p,g,m,b,A,_,x,T,E,M,k,F,O,I,R,H,X,le;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),f=Math.cos(t),u=1-f,c=r[0],v=r[1],d=r[2],p=r[3],g=r[4],m=r[5],b=r[6],A=r[7],_=r[8],x=r[9],T=r[10],E=r[11],M=n*n*u+f,k=i*n*u+o*s,F=o*n*u-i*s,O=n*i*u-o*s,I=i*i*u+f,R=o*i*u+n*s,H=n*o*u+i*s,X=i*o*u-n*s,le=o*o*u+f,e[0]=c*M+g*k+_*F,e[1]=v*M+m*k+x*F,e[2]=d*M+b*k+T*F,e[3]=p*M+A*k+E*F,e[4]=c*O+g*I+_*R,e[5]=v*O+m*I+x*R,e[6]=d*O+b*I+T*R,e[7]=p*O+A*I+E*R,e[8]=c*H+g*X+_*le,e[9]=v*H+m*X+x*le,e[10]=d*H+b*X+T*le,e[11]=p*H+A*X+E*le,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var US=P((jEe,GS)=>{GS.exports=qie;function qie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],f=r[8],u=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+f*a,e[5]=o*n+u*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=f*n-i*a,e[9]=u*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var VS=P((XEe,HS)=>{HS.exports=Pie;function Pie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],f=r[8],u=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-f*a,e[1]=o*n-u*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+f*n,e[9]=o*a+u*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var WS=P((ZEe,YS)=>{YS.exports=Nie;function Nie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],f=r[4],u=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+f*a,e[1]=o*n+u*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=f*n-i*a,e[5]=u*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var XS=P((JEe,jS)=>{jS.exports=Oie;function Oie(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],f=Math.sqrt(o*o+l*l+s*s);return Math.abs(f)<1e-6?null:(f=1/f,o*=f,l*=f,s*=f,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var JS=P(($Ee,ZS)=>{ZS.exports=Iie;function Iie(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,f=i+i,u=a*l,c=a*s,v=a*f,d=n*s,p=n*f,g=i*f,m=o*l,b=o*s,A=o*f;return e[0]=1-(d+g),e[1]=c+A,e[2]=v-b,e[3]=0,e[4]=c-A,e[5]=1-(u+g),e[6]=p+m,e[7]=0,e[8]=v+b,e[9]=p-m,e[10]=1-(u+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var QS=P((QEe,$S)=>{$S.exports=Bie;function Bie(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var eE=P((KEe,KS)=>{KS.exports=zie;function zie(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var tE=P((eke,rE)=>{rE.exports=Gie;function Gie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var nE=P((rke,aE)=>{aE.exports=Uie;function Uie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var oE=P((tke,iE)=>{iE.exports=Hie;function Hie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var q5=P((ake,lE)=>{lE.exports=Vie;function Vie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,f=t*o,u=a*o,c=a*l,v=n*o,d=n*l,p=n*s,g=i*o,m=i*l,b=i*s;return e[0]=1-c-p,e[1]=u+b,e[2]=v-m,e[3]=0,e[4]=u-b,e[5]=1-f-p,e[6]=d+g,e[7]=0,e[8]=v+m,e[9]=d-g,e[10]=1-f-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var fE=P((nke,sE)=>{sE.exports=Yie;function Yie(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),f=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*f,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*f,e[15]=0,e}});var cE=P((ike,uE)=>{uE.exports=Wie;function Wie(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var hE=P((oke,vE)=>{vE.exports=jie;function jie(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),f=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=f,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*f*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var pE=P((lke,dE)=>{dE.exports=Xie;function Xie(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),f=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*f,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*f,e[15]=1,e}});var yE=P((ske,mE)=>{var Zie=R5();mE.exports=Jie;function Jie(e,r,t,a){var n,i,o,l,s,f,u,c,v,d,p=r[0],g=r[1],m=r[2],b=a[0],A=a[1],_=a[2],x=t[0],T=t[1],E=t[2];return Math.abs(p-x)<1e-6&&Math.abs(g-T)<1e-6&&Math.abs(m-E)<1e-6?Zie(e):(u=p-x,c=g-T,v=m-E,d=1/Math.sqrt(u*u+c*c+v*v),u*=d,c*=d,v*=d,n=A*v-_*c,i=_*u-b*v,o=b*c-A*u,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-u*o,f=u*i-c*n,d=Math.sqrt(l*l+s*s+f*f),d?(d=1/d,l*=d,s*=d,f*=d):(l=0,s=0,f=0),e[0]=n,e[1]=l,e[2]=u,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=f,e[10]=v,e[11]=0,e[12]=-(n*p+i*g+o*m),e[13]=-(l*p+s*g+f*m),e[14]=-(u*p+c*g+v*m),e[15]=1,e)}});var bE=P((fke,gE)=>{gE.exports=$ie;function $ie(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var P5=P((uke,xE)=>{xE.exports={create:bS(),clone:_S(),copy:AS(),identity:R5(),transpose:SS(),invert:kS(),adjoint:LS(),determinant:FS(),multiply:qS(),translate:NS(),scale:IS(),rotate:zS(),rotateX:US(),rotateY:VS(),rotateZ:WS(),fromRotation:XS(),fromRotationTranslation:JS(),fromScaling:QS(),fromTranslation:eE(),fromXRotation:tE(),fromYRotation:nE(),fromZRotation:oE(),fromQuat:q5(),frustum:fE(),perspective:cE(),perspectiveFromFieldOfView:hE(),ortho:pE(),lookAt:yE(),str:bE()}});var Gg=P(Gn=>{"use strict";var Qie=P5();Gn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var Kie=ha(),_E=m0(),eoe=Gg(),roe=P5();function toe(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function aoe(e){var r=Kie.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function wE(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function noe(e,r){AE("global",e,r)}function AE(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):_E.warn("addStyleRule failed"):_E.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function ioe(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&wE(t)}function ooe(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(f){f.getAttribute(s)||(f.addEventListener("mouseenter",function(){var u=this.querySelector(t);u&&(u.style[o[0]]=o[1])}),f.addEventListener("mouseleave",function(){var u=this.querySelector(t);u&&(r&&this.matches(r)?u.style[o[0]]=o[1]:u.style[l[0]]=l[1])}),f.setAttribute(s,!0))})}function loe(e){var r=ME(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=TE(a);if(n){var i=eoe.convertCssMatrix(n);t=roe.multiply(t,t,i)}}),t}function TE(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function ME(e){for(var r=[];soe(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function soe(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function foe(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}SE.exports={getGraphDiv:toe,isPlotDiv:aoe,removeElement:wE,addStyleRule:noe,addRelatedStyleRule:AE,deleteRelatedStyleRule:ioe,setStyleOnHover:ooe,getFullTransformMatrix:loe,getElementTransformMatrix:TE,getElementAndAncestors:ME,equalDomRects:foe}});var Gp=P((hke,EE)=>{"use strict";EE.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Cs=P((dke,qE)=>{"use strict";var CE=zn().extendFlat,uoe=Mc(),LE={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},DE={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},coe=LE.flags.slice().concat(["fullReplot"]),voe=DE.flags.slice().concat("layoutReplot");qE.exports={traces:LE,layout:DE,traceFlags:function(){return kE(coe)},layoutFlags:function(){return kE(voe)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";N5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};N5.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var O5=P((mke,PE)=>{"use strict";PE.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var y0=P(Up=>{"use strict";var NE=O5(),hoe=NE.FORMAT_LINK,doe=NE.DATE_FORMAT_LINK;function poe(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,hoe,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,doe,"for details on the date formatting syntax."].join(" ")}Up.templateFormatStringDescription=poe;function I5(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n{"use strict";function Cc(e,r){return r?r.d2l(e):e}function OE(e,r){return r?r.l2d(e):e}function moe(e){return e.x0}function yoe(e){return e.x1}function goe(e){return e.y0}function boe(e){return e.y1}function IE(e){return e.x0shift||0}function BE(e){return e.x1shift||0}function zE(e){return e.y0shift||0}function GE(e){return e.y1shift||0}function Ug(e,r){return Cc(e.x1,r)+BE(e)-Cc(e.x0,r)-IE(e)}function Hg(e,r,t){return Cc(e.y1,t)+GE(e)-Cc(e.y0,t)-zE(e)}function xoe(e,r){return Math.abs(Ug(e,r))}function _oe(e,r,t){return Math.abs(Hg(e,r,t))}function woe(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Ug(e,r),2)+Math.pow(Hg(e,r,t),2))}function Aoe(e,r){return OE((Cc(e.x1,r)+BE(e)+Cc(e.x0,r)+IE(e))/2,r)}function Toe(e,r,t){return OE((Cc(e.y1,t)+GE(e)+Cc(e.y0,t)+zE(e))/2,t)}function Moe(e,r,t){return e.type!=="line"?void 0:Hg(e,r,t)/Ug(e,r)}UE.exports={x0:moe,x1:yoe,y0:goe,y1:boe,slope:Moe,dx:Ug,dy:Hg,width:xoe,height:_oe,length:woe,xcenter:Aoe,ycenter:Toe}});var YE=P((bke,VE)=>{"use strict";var Soe=Cs().overrideAll,g0=ks(),HE=zi(),Eoe=kc().dash,Lc=zn().extendFlat,koe=y0().shapeTexttemplateAttrs,Coe=Vg();VE.exports=Soe({newshape:{visible:Lc({},g0.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Lc({},g0.legend,{}),legendgroup:Lc({},g0.legendgroup,{}),legendgrouptitle:{text:Lc({},g0.legendgrouptitle.text,{}),font:HE({})},legendrank:Lc({},g0.legendrank,{}),legendwidth:Lc({},g0.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Lc({},Eoe,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Lc({},g0.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:koe({newshape:!0},{keys:Object.keys(Coe)}),font:HE({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var jE=P((xke,WE)=>{"use strict";var Loe=kc().dash,Doe=zn().extendFlat;WE.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:Doe({},Loe,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Yg=P((_ke,XE)=>{"use strict";XE.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var ed=P((wke,QE)=>{"use strict";var B5=zi(),Foe=Gp(),Wg=wf(),ZE=YE(),JE=jE(),Roe=Yg(),$E=zn().extendFlat,jg=B5({editType:"calc"});jg.family.dflt='"Open Sans", verdana, arial, sans-serif';jg.size.dflt=12;jg.color.dflt=Wg.defaultLine;QE.exports={font:jg,title:{text:{valType:"string",editType:"layoutstyle"},font:B5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:B5({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:$E(Roe({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Wg.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Wg.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Wg.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:ZE.newshape,activeshape:ZE.activeshape,newselection:JE.newselection,activeselection:JE.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:$E({},Foe.transition,{editType:"none"})}});var KE=P(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var Bt=P(oa=>{"use strict";var rd=m0(),ek=zg(),rk=F5(),qoe=Mc(),Poe=zp().addStyleRule,tk=zn(),Noe=ks(),Ooe=ed(),Ioe=tk.extendFlat,z5=tk.extendDeepAll;oa.modules={};oa.allCategories={};oa.allTypes=[];oa.subplotsRegistry={};oa.componentsRegistry={};oa.layoutArrayContainers=[];oa.layoutArrayRegexes=[];oa.traceLayoutAttributes={};oa.localeRegistry={};oa.apiMethodRegistry={};oa.collectableSubplotTypes=null;oa.register=function(r){if(oa.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var Voe=Wh().timeFormat,hk=ga(),G5=m0(),Fc=Xh().mod,nd=Qn(),Bl=nd.BADNUM,jo=nd.ONEDAY,Hp=nd.ONEHOUR,Dc=nd.ONEMIN,ad=nd.ONESEC,Vp=nd.EPOCHJD,wu=Bt(),lk=Wh().utcFormat,Yoe=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Woe=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,sk=new Date().getFullYear()-70;function Au(e){return e&&wu.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Un.dateTick0=function(e,r){var t=joe(e,!!r);if(r<2)return t;var a=Un.dateTime2ms(t,e);return a+=jo*(r-1),Un.ms2DateTime(a,0,e)};function joe(e,r){return Au(e)?r?wu.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:wu.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Un.dfltRange=function(e){return Au(e)?wu.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Un.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Zg,Jg;Un.dateTime2ms=function(e,r){if(Un.isJSDate(e)){var t=e.getTimezoneOffset()*Dc,a=(e.getUTCMinutes()-e.getMinutes())*Dc+(e.getUTCSeconds()-e.getSeconds())*ad+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Dc;t=t-n/2+Fc(a-t+n/2,n)}return e=Number(e)-t,e>=Zg&&e<=Jg?e:Bl}if(typeof e!="string"&&typeof e!="number")return Bl;e=String(e);var i=Au(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.substr(1),r="");var l=i&&r.substr(0,7)==="chinese",s=e.match(l?Woe:Yoe);if(!s)return Bl;var f=s[1],u=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(f.length===2)return Bl;f=Number(f);var g;try{var m=wu.getComponentMethod("calendars","getCal")(r);if(l){var b=u.charAt(u.length-1)==="i";u=parseInt(u,10),g=m.newDate(f,m.toMonthIndex(f,u,b),c)}else g=m.newDate(f,Number(u),c)}catch(_){return Bl}return g?(g.toJD()-Vp)*jo+v*Hp+d*Dc+p*ad:Bl}f.length===2?f=(Number(f)+2e3-sk)%100+sk:f=Number(f),u-=1;var A=new Date(Date.UTC(2e3,u,c,v,d));return A.setUTCFullYear(f),A.getUTCMonth()!==u||A.getUTCDate()!==c?Bl:A.getTime()+p*ad};Zg=Un.MIN_MS=Un.dateTime2ms("-9999");Jg=Un.MAX_MS=Un.dateTime2ms("9999-12-31 23:59:59.9999");Un.isDateTime=function(e,r){return Un.dateTime2ms(e,r)!==Bl};function td(e,r){return String(e+Math.pow(10,r)).substr(1)}var Xg=90*jo,fk=3*Hp,uk=5*Dc;Un.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Zg&&e<=Jg))return Bl;r||(r=0);var a=Math.floor(Fc(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,f,u;if(Au(t)){var c=Math.floor(n/jo)+Vp,v=Math.floor(Fc(e,jo));try{i=wu.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=lk("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=r=Zg+jo&&e<=Jg-jo))return Bl;var r=Math.floor(Fc(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Voe("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return dk(a,n,i,o,l)};function dk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+td(r,2)+":"+td(t,2),(a||n)&&(e+=":"+td(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+td(n,i)}return e}Un.cleanDate=function(e,r,t){if(e===Bl)return r;if(Un.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Au(t))return G5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Un.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Un.isDateTime(e,t))return G5.error("unrecognized date",e),r;return e};var Xoe=/%\d?f/g,Zoe=/%h/g,Joe={1:"1",2:"1",3:"2",4:"2"};function ck(e,r,t,a){e=e.replace(Xoe,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(Zoe,function(){return Joe[t("%q")(n)]}),Au(a))try{e=wu.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var $oe=[59,59.9,59.99,59.999,59.9999];function Qoe(e,r){var t=Fc(e+.05,jo),a=td(Math.floor(t/Hp),2)+":"+td(Fc(Math.floor(t/Dc),60),2);if(r!=="M"){hk(r)||(r=0);var n=Math.min(Fc(e/ad,60),$oe[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Un.formatDate=function(e,r,t,a,n,i){if(n=Au(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return Qoe(e,t)+` -`+ck(i.dayMonthYear,e,a,n);return ck(r,e,a,n)};var vk=3*jo;Un.incrementMonth=function(e,r,t){t=Au(t)&&t;var a=Fc(e,jo);if(e=Math.round(e-a),t)try{var n=Math.round(e/jo)+Vp,i=wu.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Vp)*jo+a}catch(s){G5.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+vk);return l.setUTCMonth(l.getUTCMonth()+r)+a-vk};Un.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Au(r)&&wu.getComponentMethod("calendars","getCal")(r),f=0;f{"use strict";mk.exports=function(r){return r}});var H5=P(Tu=>{"use strict";var Koe=ga(),ele=m0(),rle=$g(),tle=Qn().BADNUM,U5=1e-9;Tu.findBin=function(e,r,t){if(Koe(r.start))return t?Math.ceil((e-r.start)/r.size-U5)-1:Math.floor((e-r.start)/r.size+U5);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?ale:nle:s=t?ole:ile,e+=o*U5*(t?-1:1)*(o>=0?1:-1);a90&&ele.log("Long binary search..."),a-1};function ale(e,r){return er}function ole(e,r){return e>=r}Tu.sorterAsc=function(e,r){return e-r};Tu.sorterDes=function(e,r){return r-e};Tu.distinctVals=function(e){var r=e.slice();r.sort(Tu.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===tle;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],f=s-o;o===void 0?(i.push(s),o=s):f>n&&(a=Math.min(a,f),i.push(s),o=s)}return{vals:i,minDiff:a}};Tu.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,f=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Tu.findIndexOfMin=function(e,r){r=r||rle;for(var t=1/0,a,n=0;n{"use strict";yk.exports=function(r){return Object.keys(r).sort()}});var gk=P(Hn=>{"use strict";var Yp=ga(),lle=Vo().isArrayOrTypedArray;Hn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Yp(r)||(r=!1),lle(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var Ak=P((Dke,wk)=>{"use strict";var bk=Xh(),V5=bk.mod,sle=bk.modHalf,Wp=Math.PI,Rc=2*Wp;function fle(e){return e/180*Wp}function ule(e){return e/Wp*180}function Y5(e){return Math.abs(e[1]-e[0])>Rc-1e-14}function xk(e,r){return sle(r-e,Rc)}function cle(e,r){return Math.abs(xk(e,r))}function _k(e,r){if(Y5(r))return!0;var t,a;r[0]a&&(a+=Rc);var n=V5(e,Rc),i=n+Rc;return n>=t&&n<=a||i>=t&&i<=a}function vle(e,r,t,a){if(!_k(r,a))return!1;var n,i;return t[0]=n&&e<=i}function W5(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=Y5([t,a]),s,f,u,c,v;l?(s=0,f=Wp,u=Rc):t{"use strict";b0.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};b0.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};b0.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};b0.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};b0.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};b0.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var Ek=P(x0=>{"use strict";var j5=Xh().mod;x0.segmentsIntersect=Sk;function Sk(e,r,t,a,n,i,o,l){var s=t-e,f=n-e,u=o-n,c=a-r,v=i-r,d=l-i,p=s*d-u*c;if(p===0)return null;var g=(f*d-u*v)/p,m=(f*c-s*v)/p;return m<0||m>1||g<0||g>1?null:{x:e+s*g,y:r+c*g}}x0.segmentDistance=function(r,t,a,n,i,o,l,s){if(Sk(r,t,a,n,i,o,l,s))return 0;var f=a-r,u=n-t,c=l-i,v=s-o,d=f*f+u*u,p=c*c+v*v,g=Math.min(Kg(f,u,d,i-r,o-t),Kg(f,u,d,l-r,s-t),Kg(c,v,p,r-i,t-o),Kg(c,v,p,a-i,n-o));return Math.sqrt(g)};function Kg(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var e2,X5,Mk;x0.getTextLocation=function(r,t,a,n){if((r!==X5||n!==Mk)&&(e2={},X5=r,Mk=n),e2[a])return e2[a];var i=r.getPointAtLength(j5(a-n/2,t)),o=r.getPointAtLength(j5(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(j5(a,t)),f=(s.x*4+i.x+o.x)/6,u=(s.y*4+i.y+o.y)/6,c={x:f,y:u,theta:l};return e2[a]=c,c};x0.clearLocationCache=function(){X5=null};x0.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,f=r.getTotalLength(),u=f,c,v;function d(g){var m=r.getPointAtLength(g);g===0?c=m:g===f&&(v=m);var b=m.xi?m.x-i:0,A=m.yl?m.y-l:0;return Math.sqrt(b*b+A*A)}for(var p=d(s);p;){if(s+=p+a,s>u)return;p=d(s)}for(p=d(u);p;){if(u-=p+a,s>u)return;p=d(u)}return{min:s,max:u,len:u-s,total:f,isClosed:s===0&&u===f&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};x0.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,f=0,u=0,c=i,v,d,p;f0?c=v:u=v,f++}return d}});var r2=P(jp=>{"use strict";var Mu={};jp.throttle=function(r,t,a){var n=Mu[r],i=Date.now();if(!n){for(var o in Mu)Mu[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};jp.done=function(e){var r=Mu[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};jp.clear=function(e){if(e)kk(Mu[e]),delete Mu[e];else for(var r in Mu)jp.clear(r)};function kk(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Lk=P((Pke,Ck)=>{"use strict";Ck.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var Dk=P((Nke,t2)=>{"use strict";t2.exports=Z5;t2.exports.isMobile=Z5;t2.exports.default=Z5;var mle=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,yle=/CrOS/,gle=/android|ipad|playbook|silk/i;function Z5(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=mle.test(r)&&!yle.test(r)||!!e.tablet&&gle.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var Rk=P((Oke,Fk)=>{"use strict";var ble=ga(),xle=Dk();Fk.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=_le(),typeof t!="string")return!0;var a=xle({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.substr(0,8)==="Version/"){var f=s.substr(8).split(".")[0];if(ble(f)&&(f=+f),f>=13)return!0}}}return a};function _le(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Pk=P((Ike,qk)=>{"use strict";var wle=ha();qk.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=wle.select(this)}),n}});var Ok=P((Bke,Nk)=>{"use strict";var Ale=Bt();Nk.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=Ale.localeRegistry}var f=a.split("-")[0];if(f===a)break;a=f}return t}});var Bk=P((zke,Ik)=>{"use strict";Ik.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";zk.exports=function(r){for(var t=Sle(r)?Mle:Tle,a=[],n=0;n{"use strict";Uk.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var Yk=P((Hke,Vk)=>{"use strict";var Ele=ga(),kle=Qn().BADNUM,Cle=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Vk.exports=function(r){return typeof r=="string"&&(r=r.replace(Cle,"")),Ele(r)?Number(r):kle}});var Ur=P((Vke,nC)=>{"use strict";var Xp=ha(),Lle=Wh().utcFormat,Dle=g5().format,$k=ga(),Qk=Qn(),Kk=Qk.FP_SAFE,Fle=-Kk,Wk=Qk.BADNUM,je=nC.exports={};je.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var jk={};je.warnBadFormat=function(e){var r=String(e);jk[r]||(jk[r]=1,je.warn('encountered bad format: "'+r+'"'))};je.noFormat=function(e){return String(e)};je.numberFormat=function(e){var r;try{r=Dle(je.adjustFormat(e))}catch(t){return je.warnBadFormat(e),je.noFormat}return r};je.nestedProperty=Fg();je.keyedContainer=IM();je.relativeAttr=zM();je.isPlainObject=Mc();je.toLogRange=qg();je.relinkPrivateKeys=VM();var qc=Vo();je.isArrayBuffer=qc.isArrayBuffer;je.isTypedArray=qc.isTypedArray;je.isArrayOrTypedArray=qc.isArrayOrTypedArray;je.isArray1D=qc.isArray1D;je.ensureArray=qc.ensureArray;je.concat=qc.concat;je.maxRowLength=qc.maxRowLength;je.minRowLength=qc.minRowLength;var eC=Xh();je.mod=eC.mod;je.modHalf=eC.modHalf;var Pc=fS();je.valObjectMeta=Pc.valObjectMeta;je.coerce=Pc.coerce;je.coerce2=Pc.coerce2;je.coerceFont=Pc.coerceFont;je.coercePattern=Pc.coercePattern;je.coerceHoverinfo=Pc.coerceHoverinfo;je.coerceSelectionMarkerOpacity=Pc.coerceSelectionMarkerOpacity;je.validate=Pc.validate;var yl=pk();je.dateTime2ms=yl.dateTime2ms;je.isDateTime=yl.isDateTime;je.ms2DateTime=yl.ms2DateTime;je.ms2DateTimeLocal=yl.ms2DateTimeLocal;je.cleanDate=yl.cleanDate;je.isJSDate=yl.isJSDate;je.formatDate=yl.formatDate;je.incrementMonth=yl.incrementMonth;je.dateTick0=yl.dateTick0;je.dfltRange=yl.dfltRange;je.findExactDates=yl.findExactDates;je.MIN_MS=yl.MIN_MS;je.MAX_MS=yl.MAX_MS;var _0=H5();je.findBin=_0.findBin;je.sorterAsc=_0.sorterAsc;je.sorterDes=_0.sorterDes;je.distinctVals=_0.distinctVals;je.roundUp=_0.roundUp;je.sort=_0.sort;je.findIndexOfMin=_0.findIndexOfMin;je.sortObjectKeys=Qg();var Su=gk();je.aggNums=Su.aggNums;je.len=Su.len;je.mean=Su.mean;je.geometricMean=Su.geometricMean;je.median=Su.median;je.midRange=Su.midRange;je.variance=Su.variance;je.stdev=Su.stdev;je.interp=Su.interp;var Ls=Gg();je.init2dArray=Ls.init2dArray;je.transposeRagged=Ls.transposeRagged;je.dot=Ls.dot;je.translationMatrix=Ls.translationMatrix;je.rotationMatrix=Ls.rotationMatrix;je.rotationXYMatrix=Ls.rotationXYMatrix;je.apply3DTransform=Ls.apply3DTransform;je.apply2DTransform=Ls.apply2DTransform;je.apply2DTransform2=Ls.apply2DTransform2;je.convertCssMatrix=Ls.convertCssMatrix;je.inverseTransformMatrix=Ls.inverseTransformMatrix;var Tf=Ak();je.deg2rad=Tf.deg2rad;je.rad2deg=Tf.rad2deg;je.angleDelta=Tf.angleDelta;je.angleDist=Tf.angleDist;je.isFullCircle=Tf.isFullCircle;je.isAngleInsideSector=Tf.isAngleInsideSector;je.isPtInsideSector=Tf.isPtInsideSector;je.pathArc=Tf.pathArc;je.pathSector=Tf.pathSector;je.pathAnnulus=Tf.pathAnnulus;var od=Tk();je.isLeftAnchor=od.isLeftAnchor;je.isCenterAnchor=od.isCenterAnchor;je.isRightAnchor=od.isRightAnchor;je.isTopAnchor=od.isTopAnchor;je.isMiddleAnchor=od.isMiddleAnchor;je.isBottomAnchor=od.isBottomAnchor;var ld=Ek();je.segmentsIntersect=ld.segmentsIntersect;je.segmentDistance=ld.segmentDistance;je.getTextLocation=ld.getTextLocation;je.clearLocationCache=ld.clearLocationCache;je.getVisibleSegment=ld.getVisibleSegment;je.findPointOnPath=ld.findPointOnPath;var i2=zn();je.extendFlat=i2.extendFlat;je.extendDeep=i2.extendDeep;je.extendDeepAll=i2.extendDeepAll;je.extendDeepNoArrays=i2.extendDeepNoArrays;var J5=m0();je.log=J5.log;je.warn=J5.warn;je.error=J5.error;var Rle=$h();je.counterRegex=Rle.counter;var $5=r2();je.throttle=$5.throttle;je.throttleDone=$5.done;je.clearThrottle=$5.clear;var Ds=zp();je.getGraphDiv=Ds.getGraphDiv;je.isPlotDiv=Ds.isPlotDiv;je.removeElement=Ds.removeElement;je.addStyleRule=Ds.addStyleRule;je.addRelatedStyleRule=Ds.addRelatedStyleRule;je.deleteRelatedStyleRule=Ds.deleteRelatedStyleRule;je.setStyleOnHover=Ds.setStyleOnHover;je.getFullTransformMatrix=Ds.getFullTransformMatrix;je.getElementTransformMatrix=Ds.getElementTransformMatrix;je.getElementAndAncestors=Ds.getElementAndAncestors;je.equalDomRects=Ds.equalDomRects;je.clearResponsive=Lk();je.preserveDrawingBuffer=Rk();je.makeTraceGroups=Pk();je._=Ok();je.notifier=C5();je.filterUnique=Bk();je.filterVisible=Gk();je.pushUnique=F5();je.increment=Hk();je.cleanNumber=Yk();je.ensureNumber=function(r){return $k(r)?(r=Number(r),r>Kk||r=r?!1:$k(e)&&e>=0&&e%1===0};je.noop=zg();je.identity=$g();je.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};je.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};je.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(je.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};je.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};je.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,f,u;for(l=0;l=a&&(f-=a*Math.floor(f/a)),f<0?f=-1-f:f>=t&&(f=a-1-f),u+=e[f]*i[s];o[l]=u}return o};je.syncOrAsync=function(e,r,t){var a,n;function i(){return je.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};je.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};je.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};je.fillArray=function(e,r,t,a){if(a=a||je.identity,je.isArrayOrTypedArray(e))for(var n=0;nNle.test(window.navigator.userAgent);var Ole=/Firefox\/(\d+)\.\d+/;je.getFirefoxVersion=function(){var e=Ole.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};je.isD3Selection=function(e){return e instanceof Xp.selection};je.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};je.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};je.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};je.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var aC=/^\w*$/;je.templateString=function(e,r){var t={};return e.replace(je.TEMPLATE_STRING_REGEX,function(a,n){var i;return aC.test(n)?i=r[n]:(t[n]=t[n]||je.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var zle={max:10,count:0,name:"hovertemplate"};je.hovertemplateString=function(){return Q5.apply(zle,arguments)};var Gle={max:10,count:0,name:"texttemplate"};je.texttemplateString=function(){return Q5.apply(Gle,arguments)};var Ule=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Hle(e){var r=e.match(Ule);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Vle={max:10,count:0,name:"texttemplate",parseMultDiv:!0};je.texttemplateStringForShapes=function(){return Q5.apply(Vle,arguments)};var Xk=/^[:|\|]/;function Q5(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(je.TEMPLATE_STRING_REGEX,function(i,o,l){var s=o==="xother"||o==="yother",f=o==="_xother"||o==="_yother",u=o==="_xother_"||o==="_yother_",c=o==="xother_"||o==="yother_",v=s||f||c||u,d=o;(f||u)&&(d=d.substring(1)),(c||u)&&(d=d.substring(0,d.length-1));var p=null,g=null;if(a.parseMultDiv){var m=Hle(d);d=m.key,p=m.op,g=m.number}var b;if(v){if(b=r[d],b===void 0)return""}else{var A,_;for(_=3;_=n2&&o<=Zk,f=l>=n2&&l<=Zk;if(s&&(a=10*a+o-n2),f&&(n=10*n+l-n2),!s||!f){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var id=2e9;je.seedPseudoRandom=function(){id=2e9};je.pseudoRandom=function(){var e=id;return id=(69069*id+1)%4294967296,Math.abs(id-e)<429496729?je.pseudoRandom():id/4294967296};je.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=je.extractOption(e,r,"htx","hovertext");if(je.isValidTextValue(n))return a(n);var i=je.extractOption(e,r,"tx","text");if(je.isValidTextValue(i))return a(i)};je.isValidTextValue=function(e){return e||e===0};je.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(f=1):f=0,je.strTranslate(n-f*(t+o),i-f*(a+l))+je.strScale(f)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};je.setTransormAndDisplay=function(e,r){e.attr("transform",je.getTextTransform(r)),e.style("display",r.scale?null:"none")};je.ensureUniformFontSize=function(e,r){var t=je.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};je.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};je.bigFont=function(e){return Math.round(1.2*e)};var Jk=je.getFirefoxVersion(),Yle=Jk!==null&&Jk<86;je.getPositionFromD3Event=function(){return Yle?[Xp.event.layerX,Xp.event.layerY]:[Xp.event.offsetX,Xp.event.offsetY]}});var lC=P(()=>{"use strict";var Wle=Ur(),iC={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(K5 in iC)oC=K5.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Wle.addStyleRule(oC,iC[K5]);var oC,K5});var e4=P((jke,sC)=>{sC.exports=!0});var t4=P((Xke,fC)=>{"use strict";var jle=e4(),r4;typeof window.matchMedia=="function"?r4=!window.matchMedia("(hover: none)").matches:r4=jle;fC.exports=r4});var s2=P((Zke,a4)=>{"use strict";var sd=typeof Reflect=="object"?Reflect:null,uC=sd&&typeof sd.apply=="function"?sd.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},o2;sd&&typeof sd.ownKeys=="function"?o2=sd.ownKeys:Object.getOwnPropertySymbols?o2=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:o2=function(r){return Object.getOwnPropertyNames(r)};function Xle(e){console&&console.warn&&console.warn(e)}var vC=Number.isNaN||function(r){return r!==r};function dn(){dn.init.call(this)}a4.exports=dn;a4.exports.once=Qle;dn.EventEmitter=dn;dn.prototype._events=void 0;dn.prototype._eventsCount=0;dn.prototype._maxListeners=void 0;var cC=10;function l2(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(dn,"defaultMaxListeners",{enumerable:!0,get:function(){return cC},set:function(e){if(typeof e!="number"||e<0||vC(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");cC=e}});dn.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};dn.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||vC(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function hC(e){return e._maxListeners===void 0?dn.defaultMaxListeners:e._maxListeners}dn.prototype.getMaxListeners=function(){return hC(this)};dn.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")uC(s,this,t);else for(var f=s.length,u=gC(s,f),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,Xle(l)}return e}dn.prototype.addListener=function(r,t){return dC(this,r,t,!1)};dn.prototype.on=dn.prototype.addListener;dn.prototype.prependListener=function(r,t){return dC(this,r,t,!0)};function Zle(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function pC(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=Zle.bind(a);return n.listener=t,a.wrapFn=n,n}dn.prototype.once=function(r,t){return l2(t),this.on(r,pC(this,r,t)),this};dn.prototype.prependOnceListener=function(r,t){return l2(t),this.prependListener(r,pC(this,r,t)),this};dn.prototype.removeListener=function(r,t){var a,n,i,o,l;if(l2(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():Jle(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};dn.prototype.off=dn.prototype.removeListener;dn.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function mC(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?$le(n):gC(n,n.length)}dn.prototype.listeners=function(r){return mC(this,r,!0)};dn.prototype.rawListeners=function(r){return mC(this,r,!1)};dn.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):yC.call(e,r)};dn.prototype.listenerCount=yC;function yC(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}dn.prototype.eventNames=function(){return this._eventsCount>0?o2(this._events):[]};function gC(e,r){for(var t=new Array(r),a=0;a{"use strict";var n4=s2().EventEmitter,ese={init:function(e){if(e._ev instanceof n4)return e;var r=new n4,t=new n4;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var _C=Ur(),rse=p0().dfltConfig;function tse(e,r){for(var t=[],a,n=0;nrse.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Eu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Eu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Eu.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";TC.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var cd=P(fi=>{"use strict";var zl=Bt(),Jp=Ur(),u2=ks(),o4=ed(),ase=i4(),nse=Gp(),ise=p0().configAttributes,MC=Cs(),Fs=Jp.extendDeepAll,fd=Jp.isPlainObject,ose=Jp.isArrayOrTypedArray,c2=Jp.nestedProperty,lse=Jp.valObjectMeta,l4="_isSubplotObj",v2="_isLinkedToArray",sse="_arrayAttrRegexps",EC="_deprecated",s4=[l4,v2,sse,EC];fi.IS_SUBPLOT_OBJ=l4;fi.IS_LINKED_TO_ARRAY=v2;fi.DEPRECATED=EC;fi.UNDERSCORE_ATTRS=s4;fi.get=function(){var e={};return zl.allTypes.forEach(function(r){e[r]=use(r)}),{defs:{valObjects:lse,metaKeys:s4.concat(["description","role","editType","impliedEdits"]),editType:{traces:MC.traces,layout:MC.layout},impliedEdits:{}},traces:e,layout:cse(),frames:vse(),animation:ud(nse),config:ud(ise)}};fi.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(s4.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!fi.isValObject(o)&&fd(o)&&i!=="impliedEdits"&&fi.crawl(o,r,n+1,l)}})};fi.isValObject=function(e){return e&&e.valType!==void 0};fi.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,f,u,c){t=t.slice(0,c).concat([f]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(f==="ticktext"||f==="tickvals"));v&&l(n,0,"")}function l(s,f,u){var c=s[t[f]],v=u+t[f];if(f===t.length-1)ose(c)&&r.push(i+v);else if(a[f]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!f2(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function f2(e){return e===Math.round(e)&&e>=0}function use(e){var r,t;r=zl.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Fs({},u2),i=Fs({},r.attributes);fi.crawl(i,function(s,f,u,c,v){c2(n,v).set(void 0),s===void 0&&c2(i,v).set(void 0)}),Fs(a,n),zl.traceIs(e,"noOpacity")&&delete a.opacity,zl.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),zl.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Fs(a,i),t.attributes&&Fs(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:ud(a)};if(r.layoutAttributes){var l={};Fs(l,r.layoutAttributes),o.layoutAttributes=ud(l)}return r.animatable||fi.crawl(o,function(s){fi.isValObject(s)&&"anim"in s&&delete s.anim}),o}function cse(){var e={},r,t;Fs(e,o4);for(r in zl.subplotsRegistry)if(t=zl.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var vd=Ur(),yse=ks(),Nc="templateitemname",f4={name:{valType:"string",editType:"none"}};f4[Nc]={valType:"string",editType:"calc"};w0.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=f4.name,r[Nc]=f4[Nc],r};w0.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=vd.coerce(i,{},yse,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};w0.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);vd.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};w0.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[LC(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(f){var u={name:f.name,_input:f},c=u[Nc]=f[Nc];if(!CC(c))return u._template=n,u;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][Nc]=i)}s();function f(d,p){l[d]=p}function u(d,p){i?vd.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&u(d,p);var g=c();for(var m in g)vd.nestedProperty(e,m).set(g[m])}return{modifyBase:f,modifyItem:u,getUpdateObj:c,applyUpdate:v}}});var Ri=P((rCe,DC)=>{"use strict";var $p=$h().counter;DC.exports={idRegex:{x:$p("x","( domain)?"),y:$p("y","( domain)?")},attrRegex:$p("[xy]axis"),xAxisMatch:$p("xaxis"),yAxisMatch:$p("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Sn=P(Xo=>{"use strict";var gse=Bt(),u4=Ri();Xo.id2name=function(r){if(!(typeof r!="string"||!r.match(u4.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Xo.name2id=function(r){if(r.match(u4.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};Xo.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(u4.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Xo.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Xo.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};Xo.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function FC(e,r){if(r&&r.length){for(var t=0;t{"use strict";function bse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function xse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}RC.exports={clearOutlineControllers:bse,clearOutline:xse}});var h2=P((nCe,qC)=>{"use strict";qC.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Qp=P(p2=>{"use strict";var d2=Bt(),iCe=Ri().SUBPLOT_PATTERN;p2.getSubplotCalcData=function(e,r,t){var a=d2.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var _se=Bt(),hd=Ur();A0.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=A0.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){PC(e,o,n.cache),n.check=function(){if(i){var u=PC(e,o,n.cache);return u.changed&&a&&n.lookupTable[u.value]!==void 0&&(n.disable(),Promise.resolve(a({value:u.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[u.value]})).then(n.enable,n.enable)),u.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;hd.isPlainObject(i)?c4(i,r,o,a+1):r(o,n,i)}})}});var bi=P((sCe,QC)=>{"use strict";var YC=ha(),Ase=Wh().timeFormatLocale,Tse=g5().formatLocale,Kp=ga(),Mse=b5(),Ea=Bt(),WC=cd(),Sse=$a(),Mt=Ur(),jC=va(),BC=Qn().BADNUM,Zo=Sn(),Ese=Oc().clearOutline,kse=h2(),v4=Gp(),Cse=i4(),Lse=Qp().getModuleCalcData,zC=Mt.relinkPrivateKeys,T0=Mt._,mt=QC.exports={};Mt.extendFlat(mt,Ea);mt.attributes=ks();mt.attributes.type.values=mt.allTypes;mt.fontAttrs=zi();mt.layoutAttributes=ed();var y2=IC();mt.executeAPICommand=y2.executeAPICommand;mt.computeAPICommandBindings=y2.computeAPICommandBindings;mt.manageCommandObserver=y2.manageCommandObserver;mt.hasSimpleAPICommandBindings=y2.hasSimpleAPICommandBindings;mt.redrawText=function(e){return e=Mt.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Ea.getComponentMethod("annotations","draw")(e),Ea.getComponentMethod("legend","draw")(e),Ea.getComponentMethod("colorbar","draw")(e),r(mt.previousPromises(e)))},300)})};mt.resize=function(e){e=Mt.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||Mt.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Mt.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Ea.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};mt.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};mt.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=Mt.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:jC.defaultLine,"pointer-events":"all"}).each(function(){var f=YC.select(this);f.append("tspan").classed("js-link-to-tool",!0),f.append("tspan").classed("js-link-spacer",!0),f.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Dse(e,i),o.text(i.text()&&l.text()?" - ":"")}};function Dse(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){mt.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}mt.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=YC.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=mt.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var Fse=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Rse=["year","month","dayMonth","dayMonthYear"];mt.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],f=e.calcdata||[],u=e._context||{},c;e._transitionData||mt.createTransitionData(e),n._dfltTitle={plot:T0(e,"Click to enter Plot title"),subtitle:T0(e,"Click to enter Plot subtitle"),x:T0(e,"Click to enter X axis title"),y:T0(e,"Click to enter Y axis title"),colorbar:T0(e,"Click to enter Colorscale title"),annotation:T0(e,"new text")},n._traceWord=T0(e,"trace");var v=GC(e,Fse);if(n._mapboxAccessToken=u.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;mt.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),mt.sanitizeMargins(n)}else{mt.supplyLayoutGlobalDefaults(i,n,v);var g=!i.width||!i.height,m=n.autosize,b=u.autosizable,A=g&&(m||b);A?mt.plotAutoSize(e,i,n):g&&mt.sanitizeMargins(n),!m&&g&&(i.width=n.width,i.height=n.height)}n._d3locale=Nse(v,n.separators),n._extraFormat=GC(e,Rse),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=Pse(),x=n._splomAxes={x:{},y:{}},T=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=qse(o,s),mt.supplyDataDefaults(s,l,i,n);var E=Object.keys(x.x),M=Object.keys(x.y);if(E.length>1&&M.length>1){for(Ea.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,mt.linkSubplots(l,n,o,a),mt.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),X=R,le=H;X&&!le?a._bgLayer.remove():le&&!X&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Ese({_fullLayout:a}),Ose(l,n),zC(n,a),Ea.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var ae=n._tracePreGUI,$={},Z;for(Z in ae)$[Z]="old";for(c=0;c0){var u=1-2*i;o=Math.round(u*o),l=Math.round(u*l)}}var c=mt.layoutAttributes.width.min,v=mt.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),mt.sanitizeMargins(a)};mt.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Ea.componentsRegistry,i=r._basePlotModules,o,l,s,f=Ea.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(f),r._has("cartesian")&&(Ea.getComponentMethod("grid","contentDefaults")(e,r),f.finalizeSubplots(e,r));for(var u in r._subplots)r._subplots[u].sort(Mt.subplotSort);for(l=0;l1&&(t.l/=m,t.r/=m)}if(v){var b=(t.t+t.b)/v;b>1&&(t.t/=b,t.b/=b)}var A=t.xl!==void 0?t.xl:t.x,_=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,T=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:A,size:t.l+g},r:{val:_,size:t.r+g},b:{val:T,size:t.b+g},t:{val:x,size:t.t+g}},p[r]=1}if(!a._replotting)return mt.doAutoMargin(e)}};function Bse(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Zo.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}mt.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),XC(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Mt.extendFlat({},n),s=i.l,f=i.r,u=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,g=r.minreducedheight;if(i.autoexpand!==!1){for(var m in v)d[m]||delete v[m];var b=e._fullLayout._reservedMargin;for(var A in b)for(var _ in b[A]){var x=b[A][_];o[_]=Math.max(o[_],x)}v.base={l:{val:0,size:s},r:{val:1,size:f},t:{val:1,size:u},b:{val:0,size:c}};for(var T in o){var E=0;for(var M in v)M!=="base"&&Kp(v[M][T].size)&&(E=v[M][T].size>E?v[M][T].size:E);var k=Math.max(0,i[T]-E);o[T]=Math.max(0,o[T]-k)}for(var F in v){var O=v[F].l||{},I=v[F].b||{},R=O.val,H=O.size,X=I.val,le=I.size,ae=t-o.r-o.l,$=a-o.t-o.b;for(var Z in v){if(Kp(H)&&v[Z].r){var J=v[Z].r.val,ie=v[Z].r.size;if(J>R){var ue=(H*J+(ie-ae)*R)/(J-R),De=(ie*(1-R)+(H-ae)*(1-J))/(J-R);ue+De>s+f&&(s=ue,f=De)}}if(Kp(le)&&v[Z].t){var Oe=v[Z].t.val,Ee=v[Z].t.size;if(Oe>X){var Ze=(le*Oe+(Ee-$)*X)/(Oe-X),Ae=(Ee*(1-X)+(le-$)*(1-Oe))/(Oe-X);Ze+Ae>c+u&&(c=Ze,u=Ae)}}}}}var ir=Mt.constrain(t-i.l-i.r,ZC,p),Ge=Mt.constrain(a-i.t-i.b,JC,g),Qe=Math.max(0,t-ir),He=Math.max(0,a-Ge);if(Qe){var Ve=(s+f)/Qe;Ve>1&&(s/=Ve,f/=Ve)}if(He){var ee=(c+u)/He;ee>1&&(c/=ee,u/=ee)}if(n.l=Math.round(s)+o.l,n.r=Math.round(f)+o.r,n.t=Math.round(u)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(mt.didMarginChange(l,n)||Bse(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ge=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};mt.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&mt.supplyDefaults(e);var o=n?e._fullData:e.data,l=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function f(v,d){if(typeof v=="function")return d?"_function_":null;if(Mt.isPlainObject(v)){var p={},g;return Object.keys(v).sort().forEach(function(_){if(["_","["].indexOf(_.charAt(0))===-1){if(typeof v[_]=="function"){d&&(p[_]="_function");return}if(t==="keepdata"){if(_.substr(_.length-3)==="src")return}else if(t==="keepstream"){if(g=v[_+"src"],typeof g=="string"&&g.indexOf(":")>0&&!Mt.isPlainObject(v.stream))return}else if(t!=="keepall"&&(g=v[_+"src"],typeof g=="string"&&g.indexOf(":")>0))return;p[_]=f(v[_],d)}}),p}var m=Array.isArray(v),b=Mt.isTypedArray(v);if((m||b)&&v.dtype&&v.shape){var A=v.bdata;return f({dtype:v.dtype,shape:v.shape,bdata:Mt.isArrayBuffer(A)?Mse.encode(A):A},d)}return m?v.map(function(_){return f(_,d)}):b?Mt.simpleMap(v,Mt.identity):Mt.isJSDate(v)?Mt.ms2DateTimeLocal(+v):v}var u={data:(o||[]).map(function(v){var d=f(v);return r&&delete d.fit,d})};if(!r&&(u.layout=f(l),n)){var c=l._size;u.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(u.frames=f(s)),i&&(u.config=f(e._context,!0)),a==="object"?u:JSON.stringify(u)};mt.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Ea.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Ea.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var f=[mt.previousPromises,s,t.prepareFn,mt.rehover,mt.reselect,o],u=Mt.syncOrAsync(f,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e})}mt.doCalcdata=function(e,r){var t=Zo.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s,f=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=f,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l=0;s--)if(T[s].enabled){i._indexToPoints=T[s]._indexToPoints;break}o&&o.calc&&(x=o.calc(e,i))}(!Array.isArray(x)||!x[0])&&(x=[{x:BC,y:BC}]),x[0].t||(x[0].t={}),x[0].trace=i,f[A]=x}}for(HC(t,a,n),l=0;l{"use strict";M0.xmlns="http://www.w3.org/2000/xmlns/";M0.svg="http://www.w3.org/2000/svg";M0.xlink="http://www.w3.org/1999/xlink";M0.svgAttrs={xmlns:M0.svg,"xmlns:xlink":M0.xlink}});var ho=P((uCe,KC)=>{"use strict";KC.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var po=P(Gl=>{"use strict";var Kn=ha(),ku=Ur(),Hse=ku.strTranslate,h4=Ic(),Vse=ho().LINE_SPACING,Yse=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Gl.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(Yse),i=Kn.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=nfe(e.node(),a);s&&e.style("pointer-events","all"),Gl.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var f=parseInt(e.node().style.fontSize,10),u={fontSize:f};Zse(n[2],u,function(c,v,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){l(),s();return}var g=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});g.node().appendChild(p.node()),v&&v.node()&&p.node().insertBefore(v.node().cloneNode(!0),p.node().firstChild);var m=d.width,b=d.height;p.attr({class:o,height:b,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var A=e.node().style.fill||"black",_=p.select("g");_.attr({fill:A,stroke:A});var x=_.node().getBoundingClientRect(),T=x.width,E=x.height;(T>m||E>b)&&(p.style("overflow","hidden"),x=p.node().getBoundingClientRect(),T=x.width,E=x.height);var M=+e.attr("x"),k=+e.attr("y"),F=f||e.node().getBoundingClientRect().height,O=-F/4;if(o[0]==="y")g.attr({transform:"rotate("+[-90,M,k]+")"+Hse(-T/2,O-E/2)});else if(o[0]==="l")k=O-E/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,k=O;else{var I=e.attr("text-anchor");M=M-T*(I==="middle"?.5:I==="end"?1:0),k=k+O-E/2}p.attr({x:M,y:k}),t&&t.call(e,g),s(g)})})):l(),e};var Wse=/(<|<|<)/g,jse=/(>|>|>)/g;function Xse(e){return e.replace(Wse,"\\lt ").replace(jse,"\\gt ")}var eL=[["$","$"],["\\(","\\)"]];function Zse(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){ku.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=ku.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:eL},displayAlign:"left"})},f=function(){i=ku.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=eL},u=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},v=function(){var A="math-output-"+ku.randstr({},64);l=Kn.select("body").append("div").attr({id:A}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(Xse(e));var _=l.node();return a===2?MathJax.Hub.Typeset(_):MathJax.typeset([_])},d=function(){var A=l.select(a===2?".MathJax_SVG":".MathJax"),_=!A.empty()&&l.select("svg").node();if(!_)ku.log("There was an error in the tex syntax.",e),t();else{var x=_.getBoundingClientRect(),T;a===2?T=Kn.select("body").select("#MathJax_SVG_glyphs"):T=A.select("defs"),t(A,T,x)}l.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},g=function(){n!=="svg"&&(MathJax.config.startup.output=n)},m=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},b=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,u,v,d,p,m):a===3&&(f(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){v(),d(),g(),b()}))}var nL={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Jse={sub:"0.3em",sup:"-0.6em"},$se={sub:"-0.21em",sup:"0.42em"},rL="\u200B",tL=["http:","https:","mailto:","",void 0,":"],iL=Gl.NEWLINES=/(\r\n?|\n)/g,p4=/(<[^<>]*>)/,m4=/<(\/?)([^ >]*)(\s+(.*))?>/i,Qse=//i;Gl.BR_TAG_ALL=//gi;var oL=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,lL=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,sL=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Kse=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function S0(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&g2(a)}var efe=/(^|;)\s*color:/;Gl.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(p4),l=[],s="",f=0,u=0;ui?l.push(c.substr(0,g-i)+n):l.push(c.substr(0,g));break}s=""}}return l.join("")};var rfe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},tfe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function g2(e){return e.replace(tfe,function(r,t){var a;return t.charAt(0)==="#"?a=afe(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=rfe[t],a||r})}Gl.convertEntities=g2;function afe(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function nfe(e,r){r=r.replace(iL," ");var t=!1,a=[],n,i=-1;function o(){i++;var E=document.createElementNS(h4.svg,"tspan");Kn.select(E).attr({class:"line",dy:i*Vse+"em"}),e.appendChild(E),n=E;var M=a;if(a=[{node:E}],M.length>1)for(var k=1;k.",r);return}var M=a.pop();E!==M.type&&ku.log("Start tag <"+M.type+"> doesnt match end tag <"+E+">. Pretending it did match.",r),n=a[a.length-1].node}var u=Qse.test(r);u?o():(n=e,a=[{node:e}]);for(var c=r.split(p4),v=0;v{"use strict";var ife=ha(),x2=Es(),rm=ga(),b2=Ur(),uL=va(),ofe=h0().isValid;function lfe(e,r,t){var a=r?b2.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(b2.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function mL(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var gL=O5(),ffe=gL.FORMAT_LINK,ufe=gL.DATE_FORMAT_LINK;function cfe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?y4:bL)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function y4(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+ffe+"."].join(" ")}function bL(e,r){return y4(e,r)+[" And for dates see: "+ufe+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}xL.exports={axisHoverFormat:cfe,descriptionOnlyNumbers:y4,descriptionWithDates:bL}});var Ul=P((pCe,OL)=>{"use strict";var _L=zi(),dd=wf(),NL=kc().dash,b4=zn().extendFlat,wL=$a().templatedArray,dCe=y0().templateFormatStringDescription,AL=tm().descriptionWithDates,vfe=Qn().ONEDAY,Mf=Ri(),hfe=Mf.HOUR_PATTERN,dfe=Mf.WEEKDAY_PATTERN,g4={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},pfe=b4({},g4,{values:g4.values.slice().concat(["sync"])});function TL(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var ML={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},SL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},EL={valType:"data_array",editType:"ticks"},kL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function CL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function LL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var DL={valType:"color",dflt:dd.defaultLine,editType:"ticks"},FL={valType:"color",dflt:dd.lightLine,editType:"ticks"};function RL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var qL=b4({},NL,{editType:"ticks"}),PL={valType:"boolean",editType:"ticks"};OL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:dd.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:_L({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Mf.idRegex.x.toString(),Mf.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Mf.idRegex.x.toString(),Mf.idRegex.y.toString()],editType:"calc"},rangebreaks:wL("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[dfe,hfe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:vfe},editType:"calc"}),tickmode:pfe,nticks:TL(),tick0:ML,dtick:SL,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:EL,ticktext:{valType:"data_array",editType:"ticks"},ticks:kL,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:CL(),tickwidth:LL(),tickcolor:DL,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:b4({},NL,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:_L({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:AL("tick label")},tickformatstops:wL("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:AL("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:dd.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:PL,gridcolor:FL,gridwidth:RL(),griddash:qL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:dd.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:dd.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Mf.idRegex.x.toString(),Mf.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Mf.idRegex.x.toString(),Mf.idRegex.y.toString()],editType:"plot"},minor:{tickmode:g4,nticks:TL("minor"),tick0:ML,dtick:SL,tickvals:EL,ticks:kL,ticklen:CL("minor"),tickwidth:LL("minor"),tickcolor:DL,gridcolor:FL,gridwidth:RL("minor"),griddash:qL,showgrid:PL,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var _2=P((mCe,zL)=>{"use strict";var pn=Ul(),IL=zi(),BL=zn().extendFlat,mfe=Cs().overrideAll;zL.exports=mfe({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:pn.linecolor,outlinewidth:pn.linewidth,bordercolor:pn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:pn.minor.tickmode,nticks:pn.nticks,tick0:pn.tick0,dtick:pn.dtick,tickvals:pn.tickvals,ticktext:pn.ticktext,ticks:BL({},pn.ticks,{dflt:""}),ticklabeloverflow:BL({},pn.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:pn.ticklen,tickwidth:pn.tickwidth,tickcolor:pn.tickcolor,ticklabelstep:pn.ticklabelstep,showticklabels:pn.showticklabels,labelalias:pn.labelalias,tickfont:IL({}),tickangle:pn.tickangle,tickformat:pn.tickformat,tickformatstops:pn.tickformatstops,tickprefix:pn.tickprefix,showtickprefix:pn.showtickprefix,ticksuffix:pn.ticksuffix,showticksuffix:pn.showticksuffix,separatethousands:pn.separatethousands,exponentformat:pn.exponentformat,minexponent:pn.minexponent,showexponent:pn.showexponent,title:{text:{valType:"string"},font:IL({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var E0=P((gCe,UL)=>{"use strict";var yfe=_2(),gfe=$h().counter,bfe=Qg(),GL=h0().scales,yCe=bfe(GL);function w2(e){return"`"+e+"`"}UL.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?GL[t.colorscaleDflt]:null,s=t.editTypeOverride||"",f=r?r+".":"",u,c;"colorAttr"in t?(u=t.colorAttr,c=t.colorAttr):(u={z:"z",c:"color"}[a],c="in "+w2(f+u));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",g=a+"max",m=a+"mid",b=w2(f+d),A=w2(f+p),_=w2(f+g),x=A+" and "+_,T={};T[p]=T[g]=void 0;var E={};E[d]=!1;var M={};return u==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:E},M[g]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:E},M[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=yfe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:gfe("coloraxis"),dflt:null,editType:"calc"}),M}});var _4=P((bCe,HL)=>{"use strict";var xfe=zn().extendFlat,_fe=E0(),x4=h0().scales;HL.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:x4.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:x4.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:x4.RdBu,editType:"calc"}},coloraxis:xfe({_isSubplotObj:!0,editType:"calc"},_fe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var w4=P((xCe,VL)=>{"use strict";var wfe=Ur();VL.exports=function(r){return wfe.isPlainObject(r.colorbar)}});var M4=P(T4=>{"use strict";var A4=ga(),YL=Ur(),WL=Qn(),Afe=WL.ONEDAY,Tfe=WL.ONEWEEK;T4.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Afe:1;if(!e)return i;if(A4(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.substr(1);return l=A4(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};T4.tick0=function(e,r,t,a){if(r==="date")return YL.cleanDate(e,YL.dateTick0(t,a%Tfe===0?1:0));if(!(a==="D1"||a==="D2"))return A4(e)?Number(e):0}});var S4=P((wCe,XL)=>{"use strict";var jL=M4(),Mfe=Ur().isArrayOrTypedArray,Sfe=Vo().isTypedArraySpec,Efe=Vo().decodeTypedArraySpec;XL.exports=function(r,t,a,n,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,f=o?"minor.":"";function u(A){var _=l[A];return Sfe(_)&&(_=Efe(_)),_!==void 0?_:(s._template||{})[A]}var c=u("tick0"),v=u("dtick"),d=u("tickvals"),p=Mfe(d)?"array":v?"linear":"auto",g=a(f+"tickmode",p);if(g==="auto"||g==="sync")a(f+"nticks");else if(g==="linear"){var m=s.dtick=jL.dtick(v,n);s.tick0=jL.tick0(c,n,t.calendar,m)}else if(n!=="multicategory"){var b=a(f+"tickvals");b===void 0?s.tickmode="auto":o||a("ticktext")}}});var k4=P((ACe,JL)=>{"use strict";var E4=Ur(),ZL=Ul();JL.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?ZL.minor:ZL,f=i?"minor.":"",u=E4.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=E4.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=E4.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(f+"ticks",!i&&n.outerTicks||u||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var C4=P((TCe,$L)=>{"use strict";$L.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var gl=P((MCe,QL)=>{"use strict";var A2=Ur(),kfe=$a();QL.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=A2.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],f=kfe.arrayTemplater(t,n,i),u,c;for(u=0;u{"use strict";var L4=Ur(),Cfe=va().contrast,KL=Ul(),Lfe=C4(),Dfe=gl();eD.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");L4.isPlainObject(o)||delete t.labelalias;var l=Lfe(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var f=i.font||{},u=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?Cfe(i.bgColor):u&&u!==KL.color.dflt?u:f.color;if(L4.coerceFont(a,"tickfont",f,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");Dfe(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Ffe}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function Ffe(e,r){function t(n,i){return L4.coerce(e,r,KL.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var F4=P((ECe,rD)=>{"use strict";var Rfe=C4();rD.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Rfe(r),s=a("tickprefix");s&&a("showtickprefix",l);var f=a("ticksuffix",o);f&&a("showticksuffix",l)}});var R4=P((kCe,tD)=>{"use strict";var Bc=Ur(),qfe=$a(),Pfe=S4(),Nfe=k4(),Ofe=D4(),Ife=F4(),Bfe=_2();tD.exports=function(r,t,a){var n=qfe.newContainer(t,"colorbar"),i=r.colorbar||{};function o(I,R){return Bc.coerce(i,n,Bfe,I,R)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,f=a.height-l.t-l.b,u=o("orientation"),c=u==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:f):30);var d=o("lenmode");o("len",d==="fraction"?1:c?f:s);var p=o("yref"),g=o("xref"),m=p==="paper",b=g==="paper",A,_,x,T="left";c?(x="middle",T=b?"left":"right",A=b?1.02:1,_=.5):(x=m?"bottom":"top",T="center",A=.5,_=m?1.02:1),Bc.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:A}},"x"),Bc.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:_}},"y"),o("xanchor",T),o("xpad"),o("yanchor",x),o("ypad"),Bc.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var E=Bc.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",E.indexOf("inside")!==-1?"hide past domain":"hide past div"),Pfe(i,n,o,"linear");var M=a.font,k={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};E.indexOf("inside")!==-1&&(k.bgColor="black"),Ife(i,n,o,"linear",k),Ofe(i,n,o,"linear",k),Nfe(i,n,o,"linear",k),o("title.text",a._dfltTitle.colorbar);var F=n.showticklabels?n.tickfont:M,O=Bc.extendFlat({},M,{family:F.family,size:Bc.bigFont(F.size)});Bc.coerceFont(o,"title.font",O),o("title.side",c?"top":"right")}});var pd=P((CCe,iD)=>{"use strict";var aD=ga(),P4=Ur(),zfe=w4(),Gfe=R4(),nD=h0().isValid,Ufe=Bt().traceIs;function q4(e,r){var t=r.slice(0,r.length-1);return r?P4.nestedProperty(e,t).get()||{}:e}iD.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,f=q4(r,o),u=q4(t,o),c=q4(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var g=Ufe(t,"contour")&&P4.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==g&&(m[0]=!1,P4.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[g,t,[v]];return}}var b=f[l+"min"],A=f[l+"max"],_=aD(b)&&aD(A)&&b{"use strict";var oD=Ur(),Hfe=$a(),lD=_4(),Vfe=pd();sD.exports=function(r,t){function a(c,v){return oD.coerce(r,t,lD,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return oD.coerce(i,o,lD.coloraxis,c,v)}for(var s in n){var f=n[s];if(f[0])i=r[s]||{},o=Hfe.newContainer(t,s,"coloraxis"),o._name=s,Vfe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var u=0;u{"use strict";var Yfe=Ur(),Wfe=Rs().hasColorscale,jfe=Rs().extractOpts;uD.exports=function(r,t){function a(u,c){var v=u["_"+c];v!==void 0&&(u[c]=v)}function n(u,c){var v=c.container?Yfe.nestedProperty(u,c.container).get():u;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=jfe(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var vD=ga(),N4=Ur(),Xfe=Rs().extractOpts;hD.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?N4.nestedProperty(t,o).get():t,s=Xfe(l),f=s.auto!==!1,u=s.min,c=s.max,v=s.mid,d=function(){return N4.aggNums(Math.min,null,i)},p=function(){return N4.aggNums(Math.max,null,i)};if(u===void 0?u=d():f&&(l._colorAx&&vD(u)?u=Math.min(u,d()):u=d()),c===void 0?c=p():f&&(l._colorAx&&vD(c)?c=Math.max(c,p()):c=p()),f&&v!==void 0&&(c-v>v-u?u=v-(c-v):c-v=0?g=n.colorscale.sequential:g=n.colorscale.sequentialminus,s._sync("colorscale",g)}}});var yd=P((RCe,dD)=>{"use strict";var T2=h0(),md=Rs();dD.exports={moduleType:"component",name:"colorscale",attributes:E0(),layoutAttributes:_4(),supplyLayoutDefaults:fD(),handleDefaults:pd(),crossTraceDefaults:cD(),calc:O4(),scales:T2.scales,defaultScale:T2.defaultScale,getScale:T2.get,isValidScale:T2.isValid,hasColorscale:md.hasColorscale,extractOpts:md.extractOpts,extractScale:md.extractScale,flipScale:md.flipScale,makeColorScaleFunc:md.makeColorScaleFunc,makeColorScaleFuncFromTrace:md.makeColorScaleFuncFromTrace}});var qi=P((qCe,mD)=>{"use strict";var pD=Ur(),Zfe=Vo().isTypedArraySpec;mD.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return pD.isPlainObject(r)&&(pD.isArrayOrTypedArray(r.size)||Zfe(r.size))}}});var I4=P((PCe,yD)=>{"use strict";var Jfe=ga();yD.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return Jfe(s)&&s>0?Math.max(s,i):0}}});var Cu=P(to=>{"use strict";var gD=Ur();to.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};to.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{_D.exports=rue;var B4={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},eue=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function rue(e){var r=[];return e.replace(eue,function(t,a,n){var i=a.toLowerCase();for(n=aue(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==B4[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var nue=am(),it=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Xt="M0,0Z",wD=Math.sqrt(2),zc=Math.sqrt(3),z4=Math.PI,G4=Math.cos,U4=Math.sin;ED.exports={circle:{n:0,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Jt(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.3,2);return Jt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.4,2),n=it(e*1.2,2);return Jt(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.8/wD,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Jt(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2/zc,2),n=it(e/2,2),i=it(e,2);return Jt(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2/zc,2),n=it(e/2,2),i=it(e,2);return Jt(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2/zc,2),n=it(e/2,2),i=it(e,2);return Jt(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2/zc,2),n=it(e/2,2),i=it(e,2);return Jt(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.6,2),n=it(e*1.2,2);return Jt(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.6,2),n=it(e*1.2,2);return Jt(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.6,2),n=it(e*1.2,2);return Jt(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.6,2),n=it(e*1.2,2);return Jt(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.951,2),n=it(e*.588,2),i=it(-e,2),o=it(e*-.309,2),l=it(e*.809,2);return Jt(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e/2,2),i=it(e*zc/2,2);return Jt(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e/2,2),i=it(e*zc/2,2);return Jt(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.924,2),n=it(e*.383,2);return Jt(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Zt(r))return Xt;var a=e*1.4,n=it(a*.225,2),i=it(a*.951,2),o=it(a*.363,2),l=it(a*.588,2),s=it(-a,2),f=it(a*-.309,2),u=it(a*.118,2),c=it(a*.809,2),v=it(a*.382,2);return Jt(r,t,"M"+n+","+f+"H"+i+"L"+o+","+u+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+u+"L-"+i+","+f+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.66,2),n=it(e*.38,2),i=it(e*.76,2);return Jt(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*zc*.8,2),n=it(e*.8,2),i=it(e*1.6,2),o=it(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Jt(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*zc*.8,2),n=it(e*.8,2),i=it(e*1.6,2),o=it(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Jt(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.1,2),n=it(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Jt(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.4,2),n=it(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Jt(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.7,2),n=it(e*1.4,2);return Jt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.4,2),n=it(e*.7,2);return Jt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e/wD,2);return Jt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.3,2);return Jt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.3,2),n=it(e*.65,2);return Jt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.4,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.2,2),n=it(e*.85,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e/2,2),n=it(e,2);return Jt(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.2,2),n=it(e*1.6,2),i=it(e*.8,2);return Jt(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.2,2),n=it(e*1.6,2),i=it(e*.8,2);return Jt(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.2,2),n=it(e*1.6,2),i=it(e*.8,2);return Jt(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.2,2),n=it(e*1.6,2),i=it(e*.8,2);return Jt(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.4,2);return Jt(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.4,2);return Jt(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e*2,2);return Jt(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e*2,2);return Jt(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2,2),n=it(e,2);return Jt(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2,2),n=it(e,2);return Jt(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e*2,2);return Jt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e*2,2);return Jt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2,2),n=it(e,2);return Jt(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2,2),n=it(e,2);return Jt(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Zt(r))return Xt;var a=z4/2.5,n=2*e*G4(a),i=2*e*U4(a);return Jt(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Zt(r))return Xt;var a=z4/4,n=2*e*G4(a),i=2*e*U4(a);return Jt(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Zt(e){return e===null}var AD,TD,MD,SD;function Jt(e,r,t){if((!e||e%360===0)&&!r)return t;if(MD===e&&SD===r&&AD===t)return TD;MD=e,SD=r,AD=t;function a(m,b){var A=G4(m),_=U4(m),x=b[0],T=b[1]+(r||0);return[x*A-T*_,x*_+T*A]}for(var n=e/180*z4,i=0,o=0,l=nue(t),s="",f=0;f{"use strict";var xi=ha(),Ha=Ur(),iue=Ha.numberFormat,D0=ga(),X4=Es(),S2=Bt(),Gi=va(),oue=yd(),im=Ha.strTranslate,E2=po(),lue=Ic(),sue=ho(),fue=sue.LINE_SPACING,ID=Jh().DESELECTDIM,uue=qi(),cue=I4(),vue=Cu().appendArrayPointValue,bt=XD.exports={};bt.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,f=r.lineposition,u=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Gi.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),u&&e.style("text-transform",H4(due(u))),s&&e.style("text-shadow",s==="auto"?E2.makeTextShadow(Gi.contrast(i)):H4(s)),f&&e.style("text-decoration-line",H4(pue(f)))};function H4(e){return e==="none"?void 0:e}var hue={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function due(e){return hue[e]}function pue(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}bt.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};bt.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};bt.setRect=function(e,r,t,a,n){e.call(bt.setPosition,r,t).call(bt.setSize,a,n)};bt.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(D0(n)&&D0(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",im(n,i));else return!1;return!0};bt.translatePoints=function(e,r,t){e.each(function(a){var n=xi.select(this);bt.translatePoint(a,n,r,t)})};bt.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};bt.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=S2.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(f){bt.hideOutsideRangePoint(f,xi.select(this),t,a,o,l)})})}};bt.crispRound=function(e,r,t){return!r||!D0(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};bt.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Gi.stroke(r,a||i.color),bt.dashLine(r,l,o)};bt.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";xi.select(this).call(Gi.stroke,t||i.color).call(bt.dashLine,l,o)})};bt.dashLine=function(e,r,t){t=+t||0,r=bt.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};bt.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function BD(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=bt.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),f=o(n.fgcolor,0,null),u=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;bt.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,f,u)}else if(i&&i.type!=="none"){var p=i.type,g="scatterfill-"+r.uid;if(a&&(g="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,b;p==="horizontal"?(m={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},b={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(UD,t,g,"linear",i.colorscale,"fill",m,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(bt.gradient,t,g,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Gi.fill,r.fillcolor)}bt.singleFillStyle=function(e,r){var t=xi.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};BD(e,n,r,!1)};bt.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=xi.select(this);a[0].trace&&BD(n,a[0].trace,r,t)})};var CD=kD();bt.symbolNames=[];bt.symbolFuncs=[];bt.symbolBackOffs=[];bt.symbolNeedLines={};bt.symbolNoDot={};bt.symbolNoFill={};bt.symbolList=[];Object.keys(CD).forEach(function(e){var r=CD[e],t=r.n;bt.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),bt.symbolNames[t]=e,bt.symbolFuncs[t]=r.f,bt.symbolBackOffs[t]=r.backoff||0,r.needLine&&(bt.symbolNeedLines[t]=!0),r.noDot?bt.symbolNoDot[t]=!0:bt.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(bt.symbolNoFill[t]=!0)});var mue=bt.symbolNames.length,yue="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";bt.symbolNumber=function(e){if(D0(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=bt.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=mue||e>=400?0:Math.floor(Math.max(e,0))};function zD(e,r,t,a){var n=e%100;return bt.symbolFuncs[n](r,t,a)+(e>=200?yue:"")}var LD=iue("~f"),GD={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};bt.gradient=function(e,r,t,a,n,i){var o=GD[a];return UD(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function UD(e,r,t,a,n,i,o,l,s,f){var u=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:f}:a==="radial"&&(c={node:"radialGradient",reversed:f});for(var v=new Array(u),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var f=bt.symbolNumber(e.mx||o.symbol)||0;e.om=f%200>=100;var u=$4(e,t),c=J4(e,t);r.attr("d",zD(f,s,u,c))}var v=!1,d,p,g;if(e.so)g=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var m=(l||{}).width;g=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):Ha.isArrayOrTypedArray(l.color)?p=Gi.defaultLine:p=l.color,Ha.isArrayOrTypedArray(o.color)&&(d=Gi.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}if(e.om)r.call(Gi.stroke,d).style({"stroke-width":(g||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:g)+"px");var b=o.gradient,A=e.mgt;A?v=!0:A=b&&b.type,Ha.isArrayOrTypedArray(A)&&(A=A[0],GD[A]||(A=0));var _=o.pattern,x=bt.getPatternAttr,T=_&&(x(_.shape,e.i,"")||x(_.path,e.i,""));if(A&&A!=="none"){var E=e.mgc;E?v=!0:E=b.color;var M=t.uid;v&&(M+="-"+e.i),bt.gradient(r,n,M,A,[[0,E],[1,d]],"fill")}else if(T){var k=!1,F=_.fgcolor;!F&&i&&i.color&&(F=i.color,k=!0);var O=x(F,e.i,i&&i.color||null),I=x(_.bgcolor,e.i,null),R=_.fgopacity,H=x(_.size,e.i,8),X=x(_.solidity,e.i,.3);k=k||e.mcc||Ha.isArrayOrTypedArray(_.shape)||Ha.isArrayOrTypedArray(_.path)||Ha.isArrayOrTypedArray(_.bgcolor)||Ha.isArrayOrTypedArray(_.fgcolor)||Ha.isArrayOrTypedArray(_.size)||Ha.isArrayOrTypedArray(_.solidity);var le=t.uid;k&&(le+="-"+e.i),bt.pattern(r,"point",n,le,T,H,X,e.mcc,_.fillmode,I,O,R)}else Ha.isArrayOrTypedArray(d)?Gi.fill(r,d[e.i]):Gi.fill(r,d);g&&Gi.stroke(r,p)}};bt.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=bt.tryColorscale(t,""),r.lineScale=bt.tryColorscale(t,"line"),S2.traceIs(e,"symbols")&&(r.ms2mrc=uue.isBubble(e)?cue(e):function(){return(t.size||6)/2}),e.selectedpoints&&Ha.extendFlat(r,bt.makeSelectedPointStyleFns(e)),r};bt.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,f=o.opacity,u=s!==void 0,c=f!==void 0;(Ha.isArrayOrTypedArray(l)||u||c)&&(r.selectedOpacityFn=function(x){var T=x.mo===void 0?n.opacity:x.mo;return x.selected?u?s:T:c?f:ID*T});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(x){var T=x.mcc||v;return x.selected?d||T:p||T});var g=n.size,m=i.size,b=o.size,A=m!==void 0,_=b!==void 0;return S2.traceIs(e,"symbols")&&(A||_)&&(r.selectedSizeFn=function(x){var T=x.mrc||g/2;return x.selected?A?m/2:T:_?b/2:T}),r};bt.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,f=o.color;return r.selectedTextColorFn=function(u){var c=u.tc||l;return u.selected?s||c:f||(s?c:Gi.addOpacity(c,ID))},r};bt.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=bt.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Gi.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",zD(bt.symbolNumber(l),s,$4(o,r),J4(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=xi.select(this),l=0;l0?t:0}bt.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=bt.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=xi.select(this),f=i?Ha.extractOption(l,r,"txt","texttemplate"):Ha.extractOption(l,r,"tx","text");if(!f&&f!==0){s.remove();return}if(i){var u=r._module.formatLabels,c=u?u(l,r,o):{},v={};vue(v,r,l.i);var d=r._meta||{};f=Ha.texttemplateString(f,c,o._d3locale,v,l,d)}var p=l.tp||r.textposition,g=VD(l,r),m=a?a(l):l.tc||r.textfont.color;s.call(bt.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:g,color:m}).text(f).call(E2.convertToTspans,t).call(HD,p,g,l.mrc)})}};bt.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=bt.makeSelectedTextStyleFns(r);e.each(function(a){var n=xi.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=VD(a,r);Gi.fill(n,i);var s=S2.traceIs(r,"bar-like");HD(n,o,l,a.mrc2||a.mrc,s)})}};var DD=.5;bt.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=u&&x<=s)&&(T<=c&&T>=f||T>=c&&T<=f)&&(e=[x,T])}return e}bt.applyBackoff=jD;bt.makeTester=function(){var e=Ha.ensureSingleById(xi.select("body"),"svg","js-plotly-tester",function(t){t.attr(lue.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=Ha.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});bt.tester=e,bt.testref=r};bt.savedBBoxes={};var Y4=0,xue=1e4;bt.bBox=function(e,r,t){t||(t=FD(e));var a;if(t){if(a=bt.savedBBoxes[t],a)return Ha.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=FD(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=bt.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=bt.savedBBoxes[t],a)return Ha.extendFlat({},a)}}var f,u;r?f=e:(u=bt.tester.node(),f=e.cloneNode(!0),u.appendChild(f)),xi.select(f).attr("transform",null).call(E2.positionText,0,0);var c=f.getBoundingClientRect(),v=bt.testref.node().getBoundingClientRect();r||u.removeChild(f);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return Y4>=xue&&(bt.savedBBoxes={},Y4=0),t&&(bt.savedBBoxes[t]=d),Y4++,Ha.extendFlat({},d)};function FD(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}bt.setClipUrl=function(e,r,t){e.attr("clip-path",Z4(r,t))};function Z4(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}bt.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};bt.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=im(r,t),o=o.trim(),e[i]("transform",o),o};bt.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};bt.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var _ue=/\s*sc.*/;bt.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(_ue,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var wue=/translate\([^)]*\)\s*$/;bt.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=xi.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(wue);r===1&&t===1?a=[]:a=[im(o,l),"scale("+r+","+t+")",im(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function J4(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}bt.getMarkerStandoff=J4;var nm=Math.atan2,k0=Math.cos,bd=Math.sin;function RD(e,r){var t=r[0],a=r[1];return[t*k0(e)-a*bd(e),t*bd(e)+a*k0(e)]}var qD,PD,ND,OD,W4,j4;function $4(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||Ha.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var f=e.lonlat[0],u=e.lonlat[1],c=r._geo.project([f,u+1e-5]),v=r._geo.project([f+1e-5,u]),d=nm(v[1]-n,v[0]-a),p=nm(c[1]-n,c[0]-a),g;if(i==="north")g=t/180*Math.PI;else if(i==="previous"){var m=f/180*Math.PI,b=u/180*Math.PI,A=qD/180*Math.PI,_=PD/180*Math.PI,x=A-m,T=k0(_)*bd(x),E=bd(_)*k0(b)-k0(_)*bd(b)*k0(x);g=-nm(T,E)-Math.PI,qD=f,PD=u}var M=RD(d,[k0(g),0]),k=RD(p,[bd(g),0]);t=nm(M[1]+k[1],M[0]+k[0])/Math.PI*180,i==="previous"&&!(j4===r.uid&&e.i===W4+1)&&(t=null)}if(i==="previous"&&!r._geo)if(j4===r.uid&&e.i===W4+1&&D0(a)&&D0(n)){var F=a-ND,O=n-OD,I=r.line&&r.line.shape||"",R=I.slice(I.length-1);R==="h"&&(O=0),R==="v"&&(F=0),t+=nm(O,F)/Math.PI*180+90}else t=null}return ND=a,OD=n,W4=e.i,j4=r.uid,t}bt.getMarkerAngle=$4});var om=P((zCe,QD)=>{"use strict";var xd=ha(),Aue=ga(),Tue=bi(),Q4=Bt(),F0=Ur(),ZD=F0.strTranslate,k2=Wa(),C2=va(),_d=po(),JD=Jh(),Mue=ho().OPPOSITE_SIDE,$D=/ [XY][0-9]* /,K4=1.6,ew=1.6;function Sue(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},f=t.attributes,u=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),g=!1,m=d&&d.font?d.font:{},b=m.family,A=m.size,_=m.color,x=m.weight,T=m.style,E=m.variant,M=m.textcase,k=m.lineposition,F=m.shadow,O=t.subtitlePropName,I=!!O,R=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},X=H.text.trim(),le=!1,ae=1,$=H.font,Z=$.family,J=$.size,ie=$.color,ue=$.weight,De=$.style,Oe=$.variant,Ee=$.textcase,Ze=$.lineposition,Ae=$.shadow,ir;i==="title.text"?ir="titleText":i.indexOf("axis")!==-1?ir="axisTitleText":i.indexOf("colorbar")!==-1&&(ir="colorbarTitleText");var Ge=e._context.edits[ir];function Qe(rt,Jr){return rt===void 0||Jr===void 0?!1:rt.replace($D," % ")===Jr.replace($D," % ")}p===""?v=0:Qe(p,o)&&(Ge||(p=""),v=.2,g=!0),I&&(X===""?ae=0:Qe(X,R)&&(Ge||(X=""),ae=.2,le=!0)),t._meta?p=F0.templateString(p,t._meta):a._meta&&(p=F0.templateString(p,a._meta));var He=p||X||Ge,Ve;c||(c=F0.ensureSingle(a._infolayer,"g","g-"+r),Ve=a._hColorbarMoveTitle);var ee=c.selectAll("text."+r).data(He?[0]:[]);ee.enter().append("text"),ee.text(p).attr("class",r),ee.exit().remove();var ge=null,re=r+"-subtitle",Ye=X||Ge;if(I&&Ye&&(ge=c.selectAll("text."+re).data(Ye?[0]:[]),ge.enter().append("text"),ge.text(X).attr("class",re),ge.exit().remove()),!He)return c;function vr(rt,Jr){F0.syncOrAsync([rr,Cr],{title:rt,subtitle:Jr})}function rr(rt){var Jr=rt.title,wr=rt.subtitle,Hr;!u&&Ve&&(u={}),u?(Hr="",u.rotate&&(Hr+="rotate("+[u.rotate,f.x,f.y]+")"),(u.offset||Ve)&&(Hr+=ZD(0,(u.offset||0)-(Ve||0)))):Hr=null,Jr.attr("transform",Hr);function Vr(Fe){if(Fe){var hr=xd.select(Fe.node().parentNode).select("."+re);if(!hr.empty()){var Or=Fe.node().getBBox();if(Or.height){var at=Or.y+Or.height+K4*J;hr.attr("y",at)}}}}if(Jr.style("opacity",v*C2.opacity(_)).call(k2.font,{color:C2.rgb(_),size:xd.round(A,2),family:b,weight:x,style:T,variant:E,textcase:M,shadow:F,lineposition:k}).attr(f).call(_d.convertToTspans,e,Vr),wr){var Pe=c.select("."+r+"-math-group"),sr=Jr.node().getBBox(),lt=Pe.node()?Pe.node().getBBox():void 0,Et=lt?lt.y+lt.height+K4*J:sr.y+sr.height+ew*J,wt=F0.extendFlat({},f,{y:Et});wr.attr("transform",Hr),wr.style("opacity",ae*C2.opacity(ie)).call(k2.font,{color:C2.rgb(ie),size:xd.round(J,2),family:Z,weight:ue,style:De,variant:Oe,textcase:Ee,shadow:Ae,lineposition:Ze}).attr(wt).call(_d.convertToTspans,e)}return Tue.previousPromises(e)}function Cr(rt){var Jr=rt.title,wr=xd.select(Jr.node().parentNode);if(s&&s.selection&&s.side&&p){wr.attr("transform",null);var Hr=Mue[s.side],Vr=s.side==="left"||s.side==="top"?-1:1,Pe=Aue(s.pad)?s.pad:2,sr=k2.bBox(wr.node()),lt={t:0,b:0,l:0,r:0},Et=e._fullLayout._reservedMargin;for(var wt in Et)for(var Fe in Et[wt]){var hr=Et[wt][Fe];lt[Fe]=Math.max(lt[Fe],hr)}var Or={left:lt.l,top:lt.t,right:a.width-lt.r,bottom:a.height-lt.b},at=s.maxShift||Vr*(Or[s.side]-sr[s.side]),Yr=0;if(at<0)Yr=at;else{var nt=s.offsetLeft||0,vt=s.offsetTop||0;sr.left-=nt,sr.right-=nt,sr.top-=vt,sr.bottom-=vt,s.selection.each(function(){var et=k2.bBox(this);F0.bBoxIntersect(sr,et,Pe)&&(Yr=Math.max(Yr,Vr*(et[s.side]-sr[Hr])+Pe))}),Yr=Math.min(at,Yr),n._titleScoot=Math.abs(Yr)}if(Yr>0||at<0){var ot={left:[-Yr,0],right:[Yr,0],top:[0,-Yr],bottom:[0,Yr]}[s.side];wr.attr("transform",ZD(ot[0],ot[1]))}}}ee.call(vr,ge);function Lr(rt,Jr){rt.text(Jr).on("mouseover.opacity",function(){xd.select(this).transition().duration(JD.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){xd.select(this).transition().duration(JD.HIDE_PLACEHOLDER).style("opacity",0)})}if(Ge&&(p?ee.on(".opacity",null):(Lr(ee,o),g=!0),ee.call(_d.makeEditable,{gd:e}).on("edit",function(rt){l!==void 0?Q4.call("_guiRestyle",e,i,rt,l):Q4.call("_guiRelayout",e,i,rt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(vr)}).on("input",function(rt){this.text(rt||" ").call(_d.positionText,f.x,f.y)}),I)){if(I&&!p){var _r=ee.node().getBBox(),Pr=_r.y+_r.height+ew*J;ge.attr("y",Pr)}X?ge.on(".opacity",null):(Lr(ge,R),le=!0),ge.call(_d.makeEditable,{gd:e}).on("edit",function(rt){Q4.call("_guiRelayout",e,"title.subtitle.text",rt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(vr)}).on("input",function(rt){this.text(rt||" ").call(_d.positionText,ge.attr("x"),ge.attr("y"))})}return ee.classed("js-placeholder",g),ge&&ge.classed("js-placeholder",le),c}QD.exports={draw:Sue,SUBTITLE_PADDING_EM:ew,SUBTITLE_PADDING_MATHJAX_EM:K4}});var O2=P((GCe,aF)=>{"use strict";var Eue=ha(),kue=Wh().utcFormat,Qa=Ur(),Cue=Qa.numberFormat,Sf=ga(),Gc=Qa.cleanNumber,Lue=Qa.ms2DateTime,KD=Qa.dateTime2ms,Ef=Qa.ensureNumber,eF=Qa.isArrayOrTypedArray,Uc=Qn(),L2=Uc.FP_SAFE,qs=Uc.BADNUM,Due=Uc.LOG_CLIP,Fue=Uc.ONEWEEK,D2=Uc.ONEDAY,F2=Uc.ONEHOUR,rF=Uc.ONEMIN,tF=Uc.ONESEC,R2=Sn(),N2=Ri(),q2=N2.HOUR_PATTERN,P2=N2.WEEKDAY_PATTERN;function lm(e){return Math.pow(10,e)}function rw(e){return e!=null}aF.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,T){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&T&&r.range&&r.range.length===2){var E=r.range[0],M=r.range[1];return .5*(E+M-2*Due*Math.abs(E-M))}else return qs}function o(x,T,E,M){if((M||{}).msUTC&&Sf(x))return+x;var k=KD(x,E||r.calendar);if(k===qs)if(Sf(x)){x=+x;var F=Math.floor(Qa.mod(x+.05,1)*10),O=Math.round(x-F/10);k=KD(new Date(O))+F/10}else return qs;return k}function l(x,T,E){return Lue(x,T,E||r.calendar)}function s(x){return r._categories[Math.round(x)]}function f(x){if(rw(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var T=r._categories.length-1;return r._categoriesMap[x]=T,T}return qs}function u(x,T){for(var E=new Array(T),M=0;Mr.range[1]&&(E=!E);for(var M=E?-1:1,k=M*x,F=0,O=0;OR)F=O+1;else{F=k<(I+R)/2?O:O+1;break}}var H=r._B[F]||0;return isFinite(H)?p(x,r._m2,H):0},b=function(x){var T=r._rangebreaks.length;if(!T)return g(x,r._m,r._b);for(var E=0,M=0;Mr._rangebreaks[M].pmax&&(E=M+1);return g(x,r._m2,r._B[E])}}r.c2l=r.type==="log"?i:Ef,r.l2c=r.type==="log"?lm:Ef,r.l2p=m,r.p2l=b,r.c2p=r.type==="log"?function(x,T){return m(i(x,T))}:m,r.p2c=r.type==="log"?function(x){return lm(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Gc,r.c2d=r.c2r=r.l2d=r.l2r=Ef,r.d2p=r.r2p=function(x){return r.l2p(Gc(x))},r.p2d=r.p2r=b,r.cleanPos=Ef):r.type==="log"?(r.d2r=r.d2l=function(x,T){return i(Gc(x),T)},r.r2d=r.r2c=function(x){return lm(Gc(x))},r.d2c=r.r2l=Gc,r.c2d=r.l2r=Ef,r.c2r=i,r.l2d=lm,r.d2p=function(x,T){return r.l2p(r.d2r(x,T))},r.p2d=function(x){return lm(b(x))},r.r2p=function(x){return r.l2p(Gc(x))},r.p2r=b,r.cleanPos=Ef):r.type==="date"?(r.d2r=r.r2d=Qa.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,T,E){return r.l2p(o(x,0,E))},r.p2d=r.p2r=function(x,T,E){return l(b(x),T,E)},r.cleanPos=function(x){return Qa.cleanDate(x,qs,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=f,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var T=d(x);return T!==void 0?T:r.fraction2r(.5)},r.l2r=r.c2r=Ef,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Ef(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var T=v(x);return T!==void 0?T:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Ef,r.r2l=v,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Ef(x)},r.setupMultiCategory=function(x){var T=r._traceIndices,E,M,k=r._matchGroup;if(k&&r._categories.length===0){for(var F in k)if(F!==a){var O=t[R2.id2name(F)];T=T.concat(O._traceIndices)}}var I=[[0,{}],[0,{}]],R=[];for(E=0;EO[1]&&(M[F?0:1]=E),M[0]===M[1]){var I=r.l2r(T),R=r.l2r(E);if(T!==void 0){var H=I+1;E!==void 0&&(H=Math.min(H,R)),M[F?1:0]=H}if(E!==void 0){var X=R+1;T!==void 0&&(X=Math.max(X,I)),M[F?0:1]=X}}}},r.cleanRange=function(x,T){r._cleanRange(x,T),r.limitRange(x)},r._cleanRange=function(x,T){T||(T={}),x||(x="range");var E=Qa.nestedProperty(r,x).get(),M,k;if(r.type==="date"?k=Qa.dfltRange(r.calendar):n==="y"?k=N2.DFLTRANGEY:r._name==="realaxis"?k=[0,1]:k=T.dfltRange||N2.DFLTRANGEX,k=k.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(k[0]=0),!E||E.length!==2){Qa.nestedProperty(r,x).set(k);return}var F=E[0]===null,O=E[1]===null;for(r.type==="date"&&!r.autorange&&(E[0]=Qa.cleanDate(E[0],qs,r.calendar),E[1]=Qa.cleanDate(E[1],qs,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Qa.isDateTime(E[M],r.calendar)){r[x]=k;break}if(r.r2l(E[0])===r.r2l(E[1])){var I=Qa.constrain(r.r2l(E[0]),Qa.MIN_MS+1e3,Qa.MAX_MS-1e3);E[0]=r.l2r(I-1e3),E[1]=r.l2r(I+1e3);break}}else{if(!Sf(E[M]))if(!(F||O)&&Sf(E[1-M]))E[M]=E[1-M]*(M?10:.1);else{r[x]=k;break}if(E[M]<-L2?E[M]=-L2:E[M]>L2&&(E[M]=L2),E[0]===E[1]){var R=Math.max(1,Math.abs(E[0]*1e-6));E[0]-=R,E[1]+=R}}},r.setScale=function(x){var T=t._size;if(r.overlaying){var E=R2.getFromId({_fullLayout:t},r.overlaying);r.domain=E.domain}var M=x&&r._r?"_r":"range",k=r.calendar;r.cleanRange(M);var F=r.r2l(r[M][0],k),O=r.r2l(r[M][1],k),I=n==="y";if(I?(r._offset=T.t+(1-r.domain[1])*T.h,r._length=T.h*(r.domain[1]-r.domain[0]),r._m=r._length/(F-O),r._b=-r._m*O):(r._offset=T.l+r.domain[0]*T.w,r._length=T.w*(r.domain[1]-r.domain[0]),r._m=r._length/(O-F),r._b=-r._m*F),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,H;if(r._rangebreaks=r.locateBreaks(Math.min(F,O),Math.max(F,O)),r._rangebreaks.length){for(R=0;RO&&(X=!X),X&&r._rangebreaks.reverse();var le=X?-1:1;for(r._m2=le*r._length/(Math.abs(O-F)-r._lBreaks),r._B.push(-r._m2*(I?O:F)),R=0;Rk&&(k+=7,Fk&&(k+=24,F=M&&F=M&&x=Ae.min&&(DeAe.max&&(Ae.max=Oe),Ee=!1)}Ee&&O.push({min:De,max:Oe})}};for(E=0;E{"use strict";var nF=ga(),tw=Ur(),Rue=Qn().BADNUM,I2=tw.isArrayOrTypedArray,que=tw.isDateTime,Pue=tw.cleanNumber,iF=Math.round;lF.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(I2(n)&&!n.length)return"-";if(!i&&zue(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function oF(e){return Math.max(1,(e-1)/1e3)}function Bue(e,r){for(var t=e.length,a=oF(t),n=0,i=0,o={},l=0;ln*2}function zue(e){return I2(e[0])&&I2(e[1])}});var wd=P((HCe,pF)=>{"use strict";var Gue=ha(),cF=ga(),Hc=Ur(),B2=Qn().FP_SAFE,Uue=Bt(),Hue=Wa(),vF=Sn(),Vue=vF.getFromId,Yue=vF.isLinked;pF.exports={applyAutorangeOptions:dF,getAutoRange:nw,makePadFn:iw,doAutoRange:jue,findExtremes:Xue,concatExtremes:sw};function nw(e,r){var t,a,n=[],i=e._fullLayout,o=iw(i,r,0),l=iw(i,r,1),s=sw(e,r),f=s.min,u=s.max;if(f.length===0||u.length===0)return Hc.simpleMap(r.range,r.r2l);var c=f[0].val,v=u[0].val;for(t=1;t0&&(O=_-o(E)-l(M),O>x?I/O>T&&(k=E,F=M,T=I/O):I/_>T&&(k={val:E.val,nopad:1},F={val:M.val,nopad:1},T=I/_));function R($,Z){return Math.max($,l(Z))}if(c===v){var H=c-1,X=c+1;if(b)if(c===0)n=[0,1];else{var le=(c>0?u:f).reduce(R,0),ae=c/(1-Math.min(.5,le/_));n=c>0?[0,ae]:[ae,0]}else A?n=[Math.max(0,H),Math.max(1,X)]:n=[H,X]}else b?(k.val>=0&&(k={val:0,nopad:1}),F.val<=0&&(F={val:0,nopad:1})):A&&(k.val-T*o(k)<0&&(k={val:0,nopad:1}),F.val<=0&&(F={val:1,nopad:1})),T=(F.val-k.val-sF(r,E.val,M.val))/(_-o(k)-l(F)),n=[k.val-T*o(k),F.val+T*l(F)];return n=dF(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Hc.simpleMap(n,r.l2r||Number)}function sF(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),E=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=x(t.vpadplus||t.vpad),k=x(t.vpadminus||t.vpad);if(!f){if(A=1/0,_=-1/0,s)for(c=0;c0&&(A=v),v>_&&v-B2&&(A=v),v>_&&v=I;c--)O(c);return{min:a,max:n,opts:t}}function ow(e,r,t,a){hF(e,r,t,a,Zue)}function lw(e,r,t,a){hF(e,r,t,a,Jue)}function hF(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(f.extrapad||!o)){l=!1;break}else n(r,f.val)&&f.pad<=t&&(o||!f.extrapad)&&(e.splice(s,1),s--)}if(l){var u=i&&r===0;e.push({val:r,pad:u?0:t,extrapad:u?!1:o})}}function uF(e){return cF(e)&&Math.abs(e)=r}function $ue(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&z2(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&z2(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Que(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&z2(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&z2(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function z2(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=$ue(t,r),a=Que(a,r),[t,a]}});var mn=P((VCe,OF)=>{"use strict";var Hl=ha(),ei=ga(),Ad=bi(),fm=Bt(),It=Ur(),Td=It.strTranslate,R0=po(),Kue=om(),um=va(),bl=Wa(),ece=Ul(),mF=M4(),Ui=Qn(),rce=Ui.ONEMAXYEAR,H2=Ui.ONEAVGYEAR,V2=Ui.ONEMINYEAR,tce=Ui.ONEMAXQUARTER,vw=Ui.ONEAVGQUARTER,Y2=Ui.ONEMINQUARTER,ace=Ui.ONEMAXMONTH,Md=Ui.ONEAVGMONTH,W2=Ui.ONEMINMONTH,xl=Ui.ONEWEEK,mo=Ui.ONEDAY,Vc=mo/2,Cf=Ui.ONEHOUR,cm=Ui.ONEMIN,j2=Ui.ONESEC,nce=Ui.ONEMILLI,ice=Ui.ONEMICROSEC,q0=Ui.MINUS_SIGN,J2=Ui.BADNUM,hw={K:"zeroline"},dw={K:"gridline",L:"path"},pw={K:"minor-gridline",L:"path"},EF={K:"tick",L:"path"},yF={K:"tick",L:"text"},gF={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},$2=ho(),sm=$2.MID_SHIFT,P0=$2.CAP_SHIFT,vm=$2.LINE_SPACING,oce=$2.OPPOSITE_SIDE,X2=3,Qr=OF.exports={};Qr.setConvert=O2();var lce=aw(),Lu=Sn(),sce=Lu.idSort,fce=Lu.isLinked;Qr.id2name=Lu.id2name;Qr.name2id=Lu.name2id;Qr.cleanId=Lu.cleanId;Qr.list=Lu.list;Qr.listIds=Lu.listIds;Qr.getFromId=Lu.getFromId;Qr.getFromTrace=Lu.getFromTrace;var kF=wd();Qr.getAutoRange=kF.getAutoRange;Qr.findExtremes=kF.findExtremes;var uce=1e-4;function bw(e){var r=(e[1]-e[0])*uce;return[e[0]-r,e[1]+r]}Qr.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",f={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(u){return u+" domain"})),f[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},It.coerce(e,r,f,s)};Qr.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Qr.coercePosition=function(e,r,t,a,n,i){var o,l,s=Qr.getRefType(a);if(s!=="range")o=It.ensureNumber,l=t(n,i);else{var f=Qr.getFromId(r,a);i=f.fraction2r(i),l=t(n,i),o=f.cleanPos}e[n]=o(l)};Qr.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?It.ensureNumber:Qr.getFromId(r,t).cleanPos;return a(e)};Qr.redrawComponents=function(e,r){r=r||Qr.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var s=fm.getComponentMethod(n,i),f={},u=0;u2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Qr.saveRangeInitial=function(e,r){for(var t=Qr.list(e,"",!0),a=!1,n=0;nc*.3||f(a)||f(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.substr(1));i.exactYears>o&&l%12===0?e=Qr.tickIncrement(e,"M6","reverse")+mo*1.5:i.exactMonths>o?e=Qr.tickIncrement(e,"M1","reverse")+mo*15.5:e-=Vc;var s=Qr.tickIncrement(e,t);if(s<=a)return s}return e}Qr.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&ei(r._tmin),n;if(a){var i=Qr.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=It.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=It.simpleMap(n,r.l2r),e._isMinor=!0,Qr.prepTicks(e,t),a){var l=ei(r.dtick),s=ei(e.dtick),f=l?r.dtick:+r.dtick.substring(1),u=s?e.dtick:+e.dtick.substring(1);l&&s?fw(f,u)?f===2*xl&&u===2*mo&&(e.dtick=xl):f===2*xl&&u===3*mo?e.dtick=xl:f===xl&&!(r._input.minor||{}).nticks?e.dtick=mo:_F(f/u,2.5)?e.dtick=f/2:e.dtick=f:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":fw(f,u)?f>=12&&u===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?fw(f,u)||(e.dtick=_F(f/u,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function fw(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function _F(e,r){return Math.abs(e/r-1)<.001}Qr.prepTicks=function(e,r){var t=It.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?It.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=It.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Qr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,f=Math.abs(s-l),u=t||f,c=0;u>=V2?f>=V2&&f<=rce?c=f:c=H2:t===vw&&u>=Y2?f>=Y2&&f<=tce?c=f:c=vw:u>=W2?f>=W2&&f<=ace?c=f:c=Md:t===xl&&u>=xl?c=xl:u>=mo?c=mo:t===Vc&&u>=Vc?c=Vc:t===Cf&&u>=Cf&&(c=Cf);var v;c>=f&&(c=f,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,g=0,m=0;mxl&&(c=f)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Qr.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||It.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],f=It.simpleMap(r.range,r.r2l,void 0,void 0,t),u=f[1]=(_?0:1);x--){var T=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var E=x?r:It.extendFlat({},r,r.minor);if(T?Qr.prepMinorTicks(E,r,t):Qr.prepTicks(E,t),E.tickmode==="array"){x?(m=[],p=wF(r,!T)):(b=[],g=wF(r,!T));continue}if(E.tickmode==="sync"){m=[],p=mce(r);continue}var M=bw(f),k=M[0],F=M[1],O=ei(E.dtick),I=a==="log"&&!(O||E.dtick.charAt(0)==="L"),R=Qr.tickFirst(E,t);if(x){if(r._tmin=R,R=F:X<=F;X=Qr.tickIncrement(X,$,u,n)){if(x&&le++,E.rangebreaks&&!u){if(X=v)break}if(m.length>d||X===H)break;H=X;var Z={value:X};x?(I&&X!==(X|0)&&(Z.simpleLabel=!0),i>1&&le%i&&(Z.skipLabel=!0),m.push(Z)):(Z.minor=!0,b.push(Z))}}if(!b||b.length<2)s=!1;else{var J=(b[1].value-b[0].value)*(l?-1:1);zce(J,r.tickformat)||(s=!1)}if(!s)A=m;else{var ie=m.concat(b);o&&m.length&&(ie=ie.slice(1)),ie=ie.sort(function(Pr,rt){return Pr.value-rt.value}).filter(function(Pr,rt,Jr){return rt===0||Pr.value!==Jr[rt-1].value});var ue=ie.map(function(Pr,rt){return Pr.minor===void 0&&!Pr.skipLabel?rt:null}).filter(function(Pr){return Pr!==null});ue.forEach(function(Pr){s.map(function(rt){var Jr=Pr+rt;Jr>=0&&Jr-1;He--){if(m[He].drop){m.splice(He,1);continue}m[He].value=cw(m[He].value,r);var re=r.c2p(m[He].value);(Ve?ge>re-ee:gev||wrv&&(Jr.periodX=v),wrn&&vH2)r/=H2,a=n(10),e.dtick="M"+12*kf(r,a,G2);else if(i>Md)r/=Md,e.dtick="M"+kf(r,1,AF);else if(i>mo){if(e.dtick=kf(r,mo,e._hasDayOfWeekBreaks?[1,2,7,14]:yce),!t){var o=Qr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=It.dateTick0(e.calendar,2):e.tick0=It.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Cf?e.dtick=kf(r,Cf,AF):i>cm?e.dtick=kf(r,cm,TF):i>j2?e.dtick=kf(r,j2,TF):(a=n(10),e.dtick=kf(r,a,G2))}else if(e.type==="log"){e.tick0=0;var s=It.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var f=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/f,a=n(10),e.dtick="L"+kf(r,a,G2)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):ww(e)?(e.tick0=0,a=1,e.dtick=kf(r,a,gce)):(e.tick0=0,a=n(10),e.dtick=kf(r,a,G2));if(e.dtick===0&&(e.dtick=1),!ei(e.dtick)&&typeof e.dtick!="string"){var u=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(u)}};function FF(e){var r=e.dtick;if(e._tickexponent=0,!ei(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=mo&&n<=10||r>=mo*15)e._tickround="d";else if(r>=cm&&n<=16||r>=Cf)e._tickround="M";else if(r>=j2&&n<=19||r>=cm)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(ei(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ei(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),f=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>f&&(Z2(e.exponentformat)&&!xw(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Qr.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(ei(r))return It.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.substr(1));if(i==="M")return It.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?DF:LF,s=e+n*.01,f=It.roundUp(It.mod(s,1),l,t);return Math.floor(s)+Math.log(Hl.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Qr.tickFirst=function(e,r){var t=e.r2l||Number,a=It.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?m:null};if(i&&It.isArrayOrTypedArray(e.ticktext)){var c=It.simpleMap(e.range,e.r2l),v=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(f=0;f"+l;else{var f=dm(e),u=e._trueSide||e.side;(!f&&u==="top"||f&&u==="bottom")&&(o+="
")}r.text=o}function xce(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=hm(Math.pow(10,o),e,n,a);else if(ei(i)||s==="D"&&(e.minorloglabels==="complete"||It.mod(o+.01,1)<.1)){var f;e.minorloglabels==="complete"&&!(It.mod(o+.01,1)<.1)&&(f=!0,r.fontSize*=.75);var u=Math.pow(10,o).toExponential(0),c=u.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||Z2(p)&&xw(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":q0)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":q0)+d:(r.text=hm(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,It.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var g=String(r.text).charAt(0);(g==="0"||g==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function _ce(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function wce(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function Ace(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=hm(r.x,e,n,a)}function Tce(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Mce(i);if(o[1]>=100)r.text=hm(It.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=q0+r.text)}}}else r.text=hm(r.x,e,n,a)}function Mce(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var Sce=["f","p","n","\u03BC","m","","k","M","G","T"];function Z2(e){return e==="SI"||e==="B"}function xw(e){return e>14||e<-15}function hm(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=Qr.getTickFormat(r),f=r.separatethousands;if(a){var u={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ei(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};FF(u),i=(Number(u._tickround)||0)+4,l=u._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,q0);var c=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+p+"":o==="B"&&l===9?e+="B":Z2(o)&&(e+=Sce[l/3+5])}return n?q0+e:e}Qr.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Md}function a(s,f){var u=["L","D"];if(typeof s==typeof f){if(typeof s=="number")return s-f;var c=u.indexOf(s.charAt(0)),v=u.indexOf(f.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(f.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,f,u){var c=u||function(p){return p},v=f[0],d=f[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,f){var u=f[0]===null,c=f[1]===null,v=a(s,f[0])>=0,d=a(s,f[1])<=0;return(u||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(u,1).shift())}});var l={false:{left:0,right:0}};return It.syncOrAsync(n.map(function(s){return function(){if(s){var f=Qr.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var u=Qr.drawOne(e,f,t);return f._shiftPusher&&gw(f,f._fullDepth||0,l,!0),f._r=f.range.slice(),f._rl=It.simpleMap(f._r,f.r2l),u}}}))};Qr.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,f=r._id,u=f.charAt(0),c=Qr.counterLetter(f),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),gw(r,p,a,!0),gw(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Bce(r,a));var g=v[u+"axislayer"],m=r._mainLinePosition,b=m+=r._shift,A=r._mainMirrorPosition,_=r._vals=Qr.calcTicks(r),x=[r.mirror,b,A].join("_");for(i=0;i<_.length;i++)_[i].axInfo=x;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var T={};function E(_r){var Pr=f+(_r||"tick");return T[Pr]||(T[Pr]=Lce(r,Pr,b)),T[Pr]}if(r.visible){var M=Qr.makeTransTickFn(r),k=Qr.makeTransTickLabelFn(r),F,O,I=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var H=Ece(r,_);O=Qr.clipEnds(r,H),F=I?O:H}else O=Qr.clipEnds(r,_),F=I&&r.ticklabelmode!=="period"?O:_;var X=r._gridVals=O,le=Cce(r,_);if(!s._hasOnlyLargeSploms){var ae=r._subplotsWith,$={};for(i=0;i0?wr.bottom-rt:0,Jr))));var sr=0,lt=0;if(r._shiftPusher&&(sr=Math.max(Jr,wr.height>0?_r==="l"?rt-wr.left:wr.right-rt:0),r.title.text!==s._dfltTitle[u]&&(lt=(r._titleStandoff||0)+(r._titleScoot||0),_r==="l"&&(lt+=SF(r))),r._fullDepth=Math.max(sr,lt)),r.automargin){Hr={x:0,y:0,r:0,l:0,t:0,b:0};var Et=[0,1],wt=typeof r._shift=="number"?r._shift:0;if(u==="x"){if(_r==="b"?Hr[_r]=r._depth:(Hr[_r]=r._depth=Math.max(wr.width>0?rt-wr.top:0,Jr),Et.reverse()),wr.width>0){var Fe=wr.right-(r._offset+r._length);Fe>0&&(Hr.xr=1,Hr.r=Fe);var hr=r._offset-wr.left;hr>0&&(Hr.xl=0,Hr.l=hr)}}else if(_r==="l"?(r._depth=Math.max(wr.height>0?rt-wr.left:0,Jr),Hr[_r]=r._depth-wt):(r._depth=Math.max(wr.height>0?wr.right-rt:0,Jr),Hr[_r]=r._depth+wt,Et.reverse()),wr.height>0){var Or=wr.bottom-(r._offset+r._length);Or>0&&(Hr.yb=0,Hr.b=Or);var at=r._offset-wr.top;at>0&&(Hr.yt=1,Hr.t=at)}Hr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[Et[0]],r.title.text!==s._dfltTitle[u]&&(Hr[_r]+=SF(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Vr={x:0,y:0,r:0,l:0,t:0,b:0},Vr[Pr]=r.linewidth,r.mirror&&r.mirror!==!0&&(Vr[Pr]+=Jr),r.mirror===!0||r.mirror==="ticks"?Vr[c]=r._anchorAxis.domain[Et[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Vr[c]=[r._counterDomainMin,r._counterDomainMax][Et[1]]))}Lr&&(Pe=fm.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(MF(Hr,r.automargin),MF(Vr,r.automargin)),Ad.autoMargin(e,_w(r),Hr),Ad.autoMargin(e,PF(r),Vr),Ad.autoMargin(e,NF(r),Pe)}),It.syncOrAsync(rr)}};function MF(e,r){if(e){var t=Object.keys(gF).reduce(function(a,n){return r.indexOf(n)!==-1&&gF[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Ece(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(It.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var f=o?-1:1;t=t*f}if(a){var u=e.side,c=l&&(u==="top"||u==="left")||s&&(u==="bottom"||u==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return Td(n+e._offset+e.l2p(mw(v))+t,i+a)}:function(v){return Td(i+a,n+e._offset+e.l2p(mw(v))+t)}};function mw(e){return e.periodX!==void 0?e.periodX:e.x}function Dce(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),f=t!=="boundaries"&&(l||i||n||o);if(!f&&!s)return[0,0];var u=e.side,c=f?(e.tickwidth||0)/2:0,v=X2,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*P0,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=X2),s&&u==="top"&&(v-=d*(1-P0)),(i||n)&&(c=-c),(u==="bottom"||u==="right")&&(v=-v),[f?c:0,s?v:0]}Qr.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};Qr.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(H){return a.indexOf(H)!==-1},o=i("top"),l=i("left"),s=i("right"),f=i("bottom"),u=n!=="boundaries"&&(f||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,g=v?e.ticklen:0;if(c?g*=-1:u&&(g=0),v&&(d+=g,t)){var m=It.deg2rad(t);d=g*Math.cos(m)+1,p=g*Math.sin(m)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},A,_,x,T,E=0,M=e.side,k=e._id.charAt(0),F=e.tickangle,O;if(k==="x")O=!c&&M==="bottom"||c&&M==="top",T=O?1:-1,c&&(T*=-1),A=p*T,_=r+d*T,x=O?1:-.2,Math.abs(F)===90&&(c?x+=sm:F===-90&&M==="bottom"?x=P0:F===90&&M==="top"?x=sm:x=.5,E=sm/2*(F/90)),b.xFn=function(H){return H.dx+A+E*H.fontSize},b.yFn=function(H){return H.dy+_+H.fontSize*x},b.anchorFn=function(H,X){if(u){if(l)return"end";if(s)return"start"}return!ei(X)||X===0||X===180?"middle":X*T<0!==c?"end":"start"},b.heightFn=function(H,X,le){return X<-60||X>60?-.5*le:e.side==="top"!==c?-le:0};else if(k==="y"){if(O=!c&&M==="left"||c&&M==="right",T=O?1:-1,c&&(T*=-1),A=d,_=p*T,x=0,!c&&Math.abs(F)===90&&(F===-90&&M==="left"||F===90&&M==="right"?x=P0:x=.5),c){var I=ei(F)?+F:0;if(I!==0){var R=It.deg2rad(I);E=Math.abs(Math.sin(R))*P0*T,x=0}}b.xFn=function(H){return H.dx+r-(A+H.fontSize*x)*T+E*H.fontSize},b.yFn=function(H){return H.dy+_+H.fontSize*sm},b.anchorFn=function(H,X){return ei(X)&&Math.abs(X)===90?"middle":O?"end":"start"},b.heightFn=function(H,X,le){return e.side==="right"&&(X*=-1),X<-30?-le:X<30?-.5*le:0}}return b};function Q2(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Qr.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,Q2);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return um.stroke(Hl.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return bl.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),K2(r,[EF]),i.attr("transform",t.transFn)};Qr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&Qr.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",f=0;f=0;p--){var g=p?v:d;if(g){var m=g.selectAll("path."+a).data(p?o:i,Q2);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(b){return um.stroke(Hl.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return bl.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&m.attr("d",t.path)}}K2(r,[dw,pw])}};Qr.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Qr.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return sce(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(um.stroke,r.zerolinecolor||um.defaultLine).style("stroke-width",bl.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),K2(r,[hw])};Qr.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(J){return J.text}),s=t.labelFns,f=t.secondary?0:r.tickangle,u=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],Q2),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(J){var ie=Hl.select(this),ue=e._promises.length;ie.call(R0.positionText,s.xFn(J),s.yFn(J)).call(bl.font,{family:J.font,size:J.fontSize,color:J.fontColor,weight:J.fontWeight,style:J.fontStyle,variant:J.fontVariant,textcase:J.fontTextcase,lineposition:J.fontLineposition,shadow:J.fontShadow}).text(J.text).call(R0.convertToTspans,e),e._promises[ue]?v.push(e._promises.pop().then(function(){d(ie,f)})):d(ie,f)}),K2(r,[yF]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(J){Hl.select(this).select("text").call(R0.positionText,s.xFn(J),s.yFn(J))});function d(J,ie){J.each(function(ue){var De=Hl.select(this),Oe=De.select(".text-math-group"),Ee=s.anchorFn(ue,ie),Ze=t.transFn.call(De.node(),ue)+(ei(ie)&&+ie!=0?" rotate("+ie+","+s.xFn(ue)+","+(s.yFn(ue)-ue.fontSize/2)+")":""),Ae=R0.lineCount(De),ir=vm*ue.fontSize,Ge=s.heightFn(ue,ei(ie)?+ie:0,(Ae-1)*ir);if(Ge&&(Ze+=Td(0,Ge)),Oe.empty()){var Qe=De.select("text");Qe.attr({transform:Ze,"text-anchor":Ee}),Qe.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var He=bl.bBox(Oe.node()).width,Ve=He*{end:-.5,start:.5}[Ee];Oe.attr("transform",Ze+Td(Ve,0))}})}r._adjustTickLabelsOverflow=function(){var J=r.ticklabeloverflow;if(!(!J||J==="allow")){var ie=J.indexOf("hide")!==-1,ue=r._id.charAt(0)==="x",De=0,Oe=ue?e._fullLayout.width:e._fullLayout.height;if(J.indexOf("domain")!==-1){var Ee=It.simpleMap(r.range,r.r2l);De=r.l2p(Ee[0])+r._offset,Oe=r.l2p(Ee[1])+r._offset}var Ze=Math.min(De,Oe),Ae=Math.max(De,Oe),ir=r.side,Ge=1/0,Qe=-1/0;c.each(function(ge){var re=Hl.select(this),Ye=re.select(".text-math-group");if(Ye.empty()){var vr=bl.bBox(re.node()),rr=0;ue?(vr.right>Ae||vr.leftAe||vr.top+(r.tickangle?0:ge.fontSize/4)r["_visibleLabelMin_"+Ee._id]?re.style("display","none"):Ae.K==="tick"&&!Ze&&re.node().style.display!=="none"&&re.style("display",null)})})})})},d(c,u+1?u:f);function p(){return v.length&&Promise.all(v)}var g=null;function m(){if(d(c,f),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){g=r.autotickangles[0];var J=0,ie=[],ue,De=1;c.each(function(Hr){J=Math.max(J,Hr.fontSize);var Vr=r.l2p(Hr.x),Pe=yw(this),sr=bl.bBox(Pe.node());De=Math.max(De,R0.lineCount(Pe)),ie.push({top:0,bottom:10,height:10,left:Vr-sr.width/2,right:Vr+sr.width/2+2,width:sr.width+2})});var Oe=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Ee=l.length,Ze=Math.abs((l[Ee-1].x-l[0].x)*r._m)/(Ee-1),Ae=Oe?Ze/2:Ze,ir=Oe?r.ticklen:J*1.25*De,Ge=Math.sqrt(Math.pow(Ae,2)+Math.pow(ir,2)),Qe=Ae/Ge,He=r.autotickangles.map(function(Hr){return Hr*Math.PI/180}),Ve=He.find(function(Hr){return Math.abs(Math.cos(Hr))<=Qe});Ve===void 0&&(Ve=He.reduce(function(Hr,Vr){return Math.abs(Math.cos(Hr))ae*le&&(R=le,F[k]=O[k]=H[k])}var $=Math.abs(R-I);$-T>0?($-=T,T*=1+T/$):T=0,r._id.charAt(0)!=="y"&&(T=-T),F[M]=_.p2r(_.r2p(O[M])+E*T),_.autorange==="min"||_.autorange==="max reversed"?(F[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(F[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=F}var Z=It.syncOrAsync(b);return Z&&Z.then&&e._promises.push(Z),Z};function Fce(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,Q2);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(um.stroke,r.dividercolor).style("stroke-width",bl.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Qr.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function SF(e){var r=e.title.font.size,t=(e.title.text.match(R0.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(P0+t*vm):t?r*(t+1)*vm:r}function Rce(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(R0.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*P0:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(sm+l*vm));else{var s=dm(r);if(r.type==="multicategory")o=r._depth;else{var f=1.5*i;s&&(f=.5*i,r.ticks==="outside"&&(f+=r.ticklen)),o=10+f+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var u=Qr.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?u-o:u+o):(d=r._offset+r._length/2,v=r.side==="right"?u+o:u-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var g=r._selections[r._id+"tick"];if(p={selection:g,side:r.side},g&&g.node()&&g.node().parentNode){var m=bl.getTranslate(g.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,Kue.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}Qr.shouldShowZeroLine=function(e,r,t){var a=It.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===J2)&&(qF(r,0)||!qce(e,r,t,a)||Pce(e,r))};Qr.clipEnds=function(e,r){return r.filter(function(t){return qF(e,t.x)})};function qF(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=ice:/%L/.test(r)?e>=nce:/%[SX]/.test(r)?e>=j2:/%M/.test(r)?e>=cm:/%[HI]/.test(r)?e>=Cf:/%p/.test(r)?e>=Vc:/%[Aadejuwx]/.test(r)?e>=mo:/%[UVW]/.test(r)?e>=xl:/%[Bbm]/.test(r)?e>=W2:/%[q]/.test(r)?e>=Y2:/%[Yy]/.test(r)?e>=V2:!0}});var BF=P((YCe,IF)=>{"use strict";IF.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var Aw=P((WCe,zF)=>{"use strict";var Gce=BF();zF.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var f=t.getAutorangeDflt(l,n),u=a("autorange",f),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(u==="reversed"||u===!0)||l[0]!==null&&(u==="min"||u==="max reversed")||l[1]!==null&&(u==="max"||u==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(f=t.getAutorangeDflt(l,n),u=a("autorange",f)),u&&(Gce(a,u,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var UF=P((jCe,GF)=>{var Uce={left:0,top:0};GF.exports=Hce;function Hce(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=Vce(r);return t[0]=a-i.left,t[1]=n-i.top,t}function Vce(e){return e===window||e===document||e===document.body?Uce:e.getBoundingClientRect()}});var Tw=P((XCe,HF)=>{"use strict";var Yce=e4();function Wce(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}HF.exports=Yce&&Wce()});var YF=P((ZCe,VF)=>{"use strict";VF.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var XF=P((JCe,jF)=>{"use strict";var WF=Ur(),jce=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];jF.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=WF.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=WF.constrain(Math.floor(t*3),0,2),jce[t][r]}});var JF=P(($Ce,ZF)=>{"use strict";var Xce=Zp(),Zce=r2(),Jce=zp().getGraphDiv,$ce=Np(),Mw=ZF.exports={};Mw.wrapped=function(e,r,t){e=Jce(e),e._fullLayout&&Zce.clear(e._fullLayout._uid+$ce.HOVERID),Mw.raw(e,r,t)};Mw.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&Xce.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var Ps=P((QCe,eR)=>{"use strict";var Qce=UF(),Sw=t4(),Kce=Tw(),eve=Ur().removeElement,rve=Ri(),N0=eR.exports={};N0.align=YF();N0.getCursor=XF();var QF=JF();N0.unhover=QF.wrapped;N0.unhoverRaw=QF.raw;N0.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,f,u,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,Kce?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(_,x,T){return Math.abs(_)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===v?x=c:(x={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(T=>{var E=c[T];!x[T]&&typeof E!="function"&&(x[T]=E)})),r.clickFn&&r.clickFn(a,x),d||v.dispatchEvent(new MouseEvent("click",_))}t._dragging=!1,t._dragged=!1}};function KF(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}N0.coverSlip=KF;function $F(e){return Qce(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Yc=P((KCe,rR)=>{"use strict";rR.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var nR=P((eLe,aR)=>{"use strict";var Ew=Yc(),pm="data-savedcursor",tR="!!";aR.exports=function(r,t){var a=r.attr(pm);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var kw=zi(),tve=wf();iR.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:tve.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:kw({editType:"legend"}),grouptitlefont:kw({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:kw({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var r3=P(e3=>{"use strict";e3.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};e3.isVertical=function(r){return r.orientation!=="h"};e3.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var Fw=P((aLe,oR)=>{"use strict";var Lw=Bt(),_l=Ur(),ave=$a(),nve=ks(),ive=Cw(),ove=ed(),Dw=r3();function lve(e,r,t,a){var n=r[e]||{},i=ave.newContainer(t,e);function o($,Z){return _l.coerce(n,i,ive,$,Z)}var l=_l.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var s=o("visible");if(s){for(var f,u=function($,Z){var J=f._input,ie=f;return _l.coerce(J,ie,nve,$,Z)},c=t.font||{},v=_l.coerceFont(o,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,g="normal",m=(t.shapes||[]).filter(function($){return $.showlegend}),b=a.concat(m).filter(function($){return e===($.legend||"legend")}),A=0;A(e==="legend"?1:0));if(x===!1&&(t[e]=void 0),!(x===!1&&!n.uirevision)&&(o("uirevision",t.uirevision),x!==!1)){o("borderwidth");var T=o("orientation"),E=o("yref"),M=o("xref"),k=T==="h",F=E==="paper",O=M==="paper",I,R,H,X="left";k?(I=0,Lw.getComponentMethod("rangeslider","isVisible")(r.xaxis)?F?(R=1.1,H="bottom"):(R=1,H="top"):F?(R=-.1,H="top"):(R=0,H="bottom")):(R=1,H="auto",O?I=1.02:(I=1,X="right")),_l.coerce(n,i,{x:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:I}},"x"),_l.coerce(n,i,{y:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:R}},"y"),o("traceorder",g),Dw.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",X),o("yanchor",H),o("maxheight"),o("valign"),_l.noneOrAll(n,i,["x","y"]);var le=o("title.text");if(le){o("title.side",k?"left":"top");var ae=_l.extendFlat({},l,{size:_l.bigFont(l.size)});_l.coerceFont(o,"title.font",ae)}}}}oR.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var Sd=Bt(),qw=Ur(),sve=qw.pushUnique,Rw=!0;lR.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,o=n.legend.itemdoubleclick,l=n.legend.groupclick;a===1&&i==="toggle"&&o==="toggleothers"&&Rw&&t.data&&t._context.showTips&&qw.notifier(qw._(t,"Double-click on legend to isolate one trace"),"long"),Rw=!1;var s;if(a===1?s=i:a===2&&(s=o),!s)return;var f=l==="togglegroup",u=n.hiddenlabels?n.hiddenlabels.slice():[],c=r.data()[0][0];if(c.groupTitle&&c.noClick)return;var v=t._fullData,d=(n.shapes||[]).filter(function(Pr){return Pr.showlegend}),p=v.concat(d),g=c.trace;g._isShape&&(g=g._fullInput);var m=g.legendgroup,b,A,_,x,T,E,M={},k=[],F=[],O=[];function I(Pr,rt){var Jr=k.indexOf(Pr),wr=M.visible;return wr||(wr=M.visible=[]),k.indexOf(Pr)===-1&&(k.push(Pr),Jr=k.length-1),wr[Jr]=rt,Jr}var R=(n.shapes||[]).map(function(Pr){return Pr._input}),H=!1;function X(Pr,rt){R[Pr].visible=rt,H=!0}function le(Pr,rt){if(!(c.groupTitle&&!f)){var Jr=Pr._fullInput||Pr,wr=Jr._isShape,Hr=Jr.index;Hr===void 0&&(Hr=Jr._index);var Vr=Jr.visible===!1?!1:rt;wr?X(Hr,Vr):I(Hr,Vr)}}var ae=g.legend,$=g._fullInput,Z=$&&$._isShape;if(!Z&&Sd.traceIs(g,"pie-like")){var J=c.label,ie=u.indexOf(J);if(s==="toggle")ie===-1?u.push(J):u.splice(ie,1);else if(s==="toggleothers"){var ue=ie!==-1,De=[];for(b=0;b{"use strict";fR.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var vR=P((oLe,cR)=>{"use strict";var uR=Bt(),Nw=r3();cR.exports=function(r,t,a){var n=t._inHover,i=Nw.isGrouped(t),o=Nw.isReversed(t),l={},s=[],f=!1,u={},c=0,v=0,d,p;function g($,Z,J){if(t.visible!==!1&&!(a&&$!==t._id))if(Z===""||!Nw.isGrouped(t)){var ie="~~i"+c;s.push(ie),l[ie]=[J],c++}else s.indexOf(Z)===-1?(s.push(Z),f=!0,l[Z]=[J]):l[Z].push(J)}for(d=0;dO&&(F=O)}M[d][0]._groupMinRank=F,M[d][0]._preGroupSort=d}var I=function($,Z){return $[0]._groupMinRank-Z[0]._groupMinRank||$[0]._preGroupSort-Z[0]._preGroupSort},R=function($,Z){return $.trace.legendrank-Z.trace.legendrank||$._preSort-Z._preSort};for(M.forEach(function($,Z){$[0]._preGroupSort=Z}),M.sort(I),d=0;d{"use strict";var t3=Ur();function hR(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}O0.formatPiePercent=function(r,t){var a=hR((r*100).toPrecision(3));return t3.numSeparate(a,t)+"%"};O0.formatPieValue=function(r,t){var a=hR(r.toPrecision(10));return t3.numSeparate(a,t)};O0.getFirstFilled=function(r,t){if(t3.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var fve=Wa(),uve=va();dR.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?fve.pointStyle(r,a,n,t):uve.fill(r,t.color)}});var bR=P((fLe,gR)=>{"use strict";var mR=va(),yR=Ow().castOption,cve=pR();gR.exports=function(r,t,a,n){var i=a.marker.line,o=yR(i.color,t.pts)||mR.defaultLine,l=yR(i.width,t.pts)||0;r.call(cve,t,a,n).style("stroke-width",l).call(mR.stroke,o)}});var Gw=P((uLe,MR)=>{"use strict";var yo=ha(),Iw=Bt(),ao=Ur(),xR=ao.strTranslate,wl=Wa(),Vl=va(),Bw=Rs().extractOpts,a3=qi(),vve=bR(),hve=Ow().castOption,dve=Pw(),_R=12,wR=5,I0=2,pve=10,Ed=5;MR.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+dve.itemGap*2)/2,s=xR(l,0),f=function(M,k,F,O){var I;if(M+1)I=M;else if(k&&k.width>0)I=k.width;else return 0;return i?O:Math.min(I,F)};r.each(function(M){var k=yo.select(this),F=ao.ensureSingle(k,"g","layers");F.style("opacity",M[0].trace.opacity);var O=a.indentation,I=a.valign,R=M[0].lineHeight,H=M[0].height;if(I==="middle"&&O===0||!R||!H)F.attr("transform",null);else{var X={top:1,bottom:-1}[I],le=X*(.5*(R-H+3))||0,ae=a.indentation;F.attr("transform",xR(ae,le))}var $=F.selectAll("g.legendfill").data([M]);$.enter().append("g").classed("legendfill",!0);var Z=F.selectAll("g.legendlines").data([M]);Z.enter().append("g").classed("legendlines",!0);var J=F.selectAll("g.legendsymbols").data([M]);J.enter().append("g").classed("legendsymbols",!0),J.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(E).each(v).each(p).each(d).each(m).each(x).each(_).each(u).each(c).each(b).each(A);function u(M){var k=AR(M),F=k.showFill,O=k.showLine,I=k.showGradientLine,R=k.showGradientFill,H=k.anyFill,X=k.anyLine,le=M[0],ae=le.trace,$,Z,J=Bw(ae),ie=J.colorscale,ue=J.reversescale,De=function(Qe){if(Qe.size())if(F)wl.fillGroupStyle(Qe,t,!0);else{var He="legendfill-"+ae.uid;wl.gradient(Qe,t,He,zw(ue),ie,"fill")}},Oe=function(Qe){if(Qe.size()){var He="legendline-"+ae.uid;wl.lineGroupStyle(Qe),wl.gradient(Qe,t,He,zw(ue),ie,"stroke")}},Ee=a3.hasMarkers(ae)||!H?"M5,0":X?"M5,-2":"M5,-3",Ze=yo.select(this),Ae=Ze.select(".legendfill").selectAll("path").data(F||R?[M]:[]);if(Ae.enter().append("path").classed("js-fill",!0),Ae.exit().remove(),Ae.attr("d",Ee+"h"+o+"v6h-"+o+"z").call(De),O||I){var ir=f(void 0,ae.line,pve,wR);Z=ao.minExtend(ae,{line:{width:ir}}),$=[ao.minExtend(le,{trace:Z})]}var Ge=Ze.select(".legendlines").selectAll("path").data(O||I?[$]:[]);Ge.enter().append("path").classed("js-line",!0),Ge.exit().remove(),Ge.attr("d",Ee+(I?"l"+o+",0.0001":"h"+o)).call(O?wl.lineGroupStyle:Oe)}function c(M){var k=AR(M),F=k.anyFill,O=k.anyLine,I=k.showLine,R=k.showMarker,H=M[0],X=H.trace,le=!R&&!O&&!F&&a3.hasText(X),ae,$;function Z(Ae,ir,Ge,Qe){var He=ao.nestedProperty(X,Ae).get(),Ve=ao.isArrayOrTypedArray(He)&&ir?ir(He):He;if(i&&Ve&&Qe!==void 0&&(Ve=Qe),Ge){if(VeGe[1])return Ge[1]}return Ve}function J(Ae){return H._distinct&&H.index&&Ae[H.index]?Ae[H.index]:Ae[0]}if(R||le||I){var ie={},ue={};if(R){ie.mc=Z("marker.color",J),ie.mx=Z("marker.symbol",J),ie.mo=Z("marker.opacity",ao.mean,[.2,1]),ie.mlc=Z("marker.line.color",J),ie.mlw=Z("marker.line.width",ao.mean,[0,5],I0),ue.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var De=Z("marker.size",ao.mean,[2,16],_R);ie.ms=De,ue.marker.size=De}I&&(ue.line={width:Z("line.width",J,[0,10],wR)}),le&&(ie.tx="Aa",ie.tp=Z("textposition",J),ie.ts=10,ie.tc=Z("textfont.color",J),ie.tf=Z("textfont.family",J),ie.tw=Z("textfont.weight",J),ie.ty=Z("textfont.style",J),ie.tv=Z("textfont.variant",J),ie.tC=Z("textfont.textcase",J),ie.tE=Z("textfont.lineposition",J),ie.tS=Z("textfont.shadow",J)),ae=[ao.minExtend(H,ie)],$=ao.minExtend(X,ue),$.selectedpoints=null,$.texttemplate=null}var Oe=yo.select(this).select("g.legendpoints"),Ee=Oe.selectAll("path.scatterpts").data(R?ae:[]);Ee.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),Ee.exit().remove(),Ee.call(wl.pointStyle,$,t),R&&(ae[0].mrc=3);var Ze=Oe.selectAll("g.pointtext").data(le?ae:[]);Ze.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Ze.exit().remove(),Ze.selectAll("text").call(wl.textPointStyle,$,t)}function v(M){var k=M[0].trace,F=k.type==="waterfall";if(M[0]._distinct&&F){var O=M[0].trace[M[0].dir].marker;return M[0].mc=O.color,M[0].mlw=O.line.width,M[0].mlc=O.line.color,g(M,this,"waterfall")}var I=[];k.visible&&F&&(I=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=yo.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(I);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(H){var X=yo.select(this),le=k[H[0]].marker,ae=f(void 0,le.line,Ed,I0);X.attr("d",H[1]).style("stroke-width",ae+"px").call(Vl.fill,le.color),ae&&X.call(Vl.stroke,le.line.color)})}function d(M){g(M,this)}function p(M){g(M,this,"funnel")}function g(M,k,F){var O=M[0].trace,I=O.marker||{},R=I.line||{},H=I.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",X=F?O.visible&&O.type===F:Iw.traceIs(O,"bar"),le=yo.select(k).select("g.legendpoints").selectAll("path.legend"+F).data(X?[M]:[]);le.enter().append("path").classed("legend"+F,!0).attr("d",H).attr("transform",s),le.exit().remove(),le.each(function(ae){var $=yo.select(this),Z=ae[0],J=f(Z.mlw,I.line,Ed,I0);$.style("stroke-width",J+"px");var ie=Z.mcc;if(!a._inHover&&"mc"in Z){var ue=Bw(I),De=ue.mid;De===void 0&&(De=(ue.max+ue.min)/2),ie=wl.tryColorscale(I,"")(De)}var Oe=ie||Z.mc||I.color,Ee=I.pattern,Ze=wl.getPatternAttr,Ae=Ee&&(Ze(Ee.shape,0,"")||Ze(Ee.path,0,""));if(Ae){var ir=Ze(Ee.bgcolor,0,null),Ge=Ze(Ee.fgcolor,0,null),Qe=Ee.fgopacity,He=TR(Ee.size,8,10),Ve=TR(Ee.solidity,.5,1),ee="legend-"+O.uid;$.call(wl.pattern,"legend",t,ee,Ae,He,Ve,ie,Ee.fillmode,ir,Ge,Qe)}else $.call(Vl.fill,Oe);J&&Vl.stroke($,Z.mlc||R.color)})}function m(M){var k=M[0].trace,F=yo.select(this).select("g.legendpoints").selectAll("path.legendbox").data(k.visible&&Iw.traceIs(k,"box-violin")?[M]:[]);F.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),F.exit().remove(),F.each(function(){var O=yo.select(this);if((k.boxpoints==="all"||k.points==="all")&&Vl.opacity(k.fillcolor)===0&&Vl.opacity((k.line||{}).color)===0){var I=ao.minExtend(k,{marker:{size:i?_R:ao.constrain(k.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});F.call(wl.pointStyle,I,t)}else{var R=f(void 0,k.line,Ed,I0);O.style("stroke-width",R+"px").call(Vl.fill,k.fillcolor),R&&Vl.stroke(O,k.line.color)}})}function b(M){var k=M[0].trace,F=yo.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(k.visible&&k.type==="candlestick"?[M,M]:[]);F.enter().append("path").classed("legendcandle",!0).attr("d",function(O,I){return I?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(O,I){var R=yo.select(this),H=k[I?"increasing":"decreasing"],X=f(void 0,H.line,Ed,I0);R.style("stroke-width",X+"px").call(Vl.fill,H.fillcolor),X&&Vl.stroke(R,H.line.color)})}function A(M){var k=M[0].trace,F=yo.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(k.visible&&k.type==="ohlc"?[M,M]:[]);F.enter().append("path").classed("legendohlc",!0).attr("d",function(O,I){return I?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(O,I){var R=yo.select(this),H=k[I?"increasing":"decreasing"],X=f(void 0,H.line,Ed,I0);R.style("fill","none").call(wl.dashLine,H.line.dash,X),X&&Vl.stroke(R,H.line.color)})}function _(M){T(M,this,"pie")}function x(M){T(M,this,"funnelarea")}function T(M,k,F){var O=M[0],I=O.trace,R=F?I.visible&&I.type===F:Iw.traceIs(I,F),H=yo.select(k).select("g.legendpoints").selectAll("path.legend"+F).data(R?[M]:[]);if(H.enter().append("path").classed("legend"+F,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),H.exit().remove(),H.size()){var X=I.marker||{},le=f(hve(X.line.width,O.pts),X.line,Ed,I0),ae="pieLike",$=ao.minExtend(I,{marker:{line:{width:le}}},ae),Z=ao.minExtend(O,{trace:$},ae);vve(H,Z,$,t)}}function E(M){var k=M[0].trace,F,O=[];if(k.visible)switch(k.type){case"histogram2d":case"heatmap":O=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":O=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymapbox":case"densitymap":O=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":O=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],F=!1;break;case"streamtube":O=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],F=!1;break;case"surface":O=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],F=!0;break;case"mesh3d":O=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":O=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":O=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1;break}var I=yo.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(O);I.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),I.exit().remove(),I.each(function(R,H){var X=yo.select(this),le=Bw(k),ae=le.colorscale,$=le.reversescale,Z=function(De){if(De.size()){var Oe="legendfill-"+k.uid;wl.gradient(De,t,Oe,zw($,F==="radial"),ae,"fill")}},J;if(ae){if(!F){var ue=ae.length;J=H===0?ae[$?ue-1:0][1]:H===1?ae[$?0:ue-1][1]:ae[Math.floor((ue-1)/2)][1]}}else{var ie=k.vertexcolor||k.facecolor||k.color;J=ao.isArrayOrTypedArray(ie)?ie[H]||ie[0]:ie}X.attr("d",R[0]),J?X.call(Vl.fill,J):X.call(Z)})}};function zw(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function AR(e){var r=e[0].trace,t=r.contours,a=a3.hasLines(r),n=a3.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function TR(e,r,t){return e&&ao.isArrayOrTypedArray(e)?r:e>t?t:e}});var Yw=P((cLe,PR)=>{"use strict";var Jo=ha(),ri=Ur(),Hw=bi(),Ld=Bt(),SR=Zp(),Uw=Ps(),ti=Wa(),i3=va(),B0=po(),ER=sR(),ui=Pw(),Vw=ho(),RR=Vw.LINE_SPACING,Cd=Vw.FROM_TL,kR=Vw.FROM_BR,CR=vR(),mve=Gw(),LR=r3(),kd=1,yve=/^legend[0-9]*$/;PR.exports=function(r,t){if(t)DR(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var f=Jo.select(this),u=f.attr("class"),c=u.split(" ")[0];c.match(yve)&&n.indexOf(c)===-1&&f.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),Hw.autoMargin(e,n);var g=ri.ensureSingle(o,"g",n,function(k){l||k.attr("pointer-events","all")}),m=ri.ensureSingleById(a._topdefs,"clipPath",i,function(k){k.append("rect")}),b=ri.ensureSingle(g,"rect","bg",function(k){k.attr("shape-rendering","crispEdges")});b.call(i3.stroke,t.bordercolor).call(i3.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var A=ri.ensureSingle(g,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var x;_.text?(x=ri.ensureSingle(A,"text",n+"titletext"),x.attr("text-anchor","start").call(ti.font,_.font).text(_.text),o3(x,A,e,t,kd)):A.selectAll("."+n+"titletext").remove();var T=ri.ensureSingle(g,"rect","scrollbar",function(k){k.attr(ui.scrollBarEnterAttrs).call(i3.fill,ui.scrollBarColor)}),E=A.selectAll("g.groups").data(s);E.enter().append("g").attr("class","groups"),E.exit().remove();var M=E.selectAll("g.traces").data(ri.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(k){var F=k[0].trace;return Ld.traceIs(F,"pie-like")?p.indexOf(k[0].label)!==-1?.5:1:F.visible==="legendonly"?.5:1}).each(function(){Jo.select(this).call(bve,e,t)}).call(mve,e,t).each(function(){l||Jo.select(this).call(xve,e,n)}),ri.syncOrAsync([Hw.previousPromises,function(){return Ave(e,E,M,t)},function(){var k=a._size,F=t.borderwidth,O=t.xref==="paper",I=t.yref==="paper";if(_.text&&gve(x,t,F),!l){var R,H;O?R=k.l+k.w*t.x-Cd[l3(t)]*t._width:R=a.width*t.x-Cd[l3(t)]*t._width,I?H=k.t+k.h*(1-t.y)-Cd[s3(t)]*t._effHeight:H=a.height*(1-t.y)-Cd[s3(t)]*t._effHeight;var X=Tve(e,n,R,H);if(X)return;if(a.margin.autoexpand){var le=R,ae=H;R=O?ri.constrain(R,0,a.width-t._width):le,H=I?ri.constrain(H,0,a.height-t._effHeight):ae,R!==le&&ri.log("Constrain "+n+".x to make legend fit inside graph"),H!==ae&&ri.log("Constrain "+n+".y to make legend fit inside graph")}ti.setTranslate(g,R,H)}if(T.on(".drag",null),g.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var $=t._effHeight;l&&($=t._height),b.attr({width:t._width-F,height:$-F,x:F/2,y:F/2}),ti.setTranslate(A,0,0),m.select("rect").attr({width:t._width-2*F,height:$-2*F,x:F,y:F}),ti.setClipUrl(A,i,e),ti.setRect(T,0,0,0,0),delete t._scrollY}else{var Z=Math.max(ui.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),J=t._effHeight-Z-2*ui.scrollBarMargin,ie=t._height-t._effHeight,ue=J/ie,De=Math.min(t._scrollY||0,ie);b.attr({width:t._width-2*F+ui.scrollBarWidth+ui.scrollBarMargin,height:t._effHeight-F,x:F/2,y:F/2}),m.select("rect").attr({width:t._width-2*F+ui.scrollBarWidth+ui.scrollBarMargin,height:t._effHeight-2*F,x:F,y:F+De}),ti.setClipUrl(A,i,e),He(De,Z,ue),g.on("wheel",function(){De=ri.constrain(t._scrollY+Jo.event.deltaY/J*ie,0,ie),He(De,Z,ue),De!==0&&De!==ie&&Jo.event.preventDefault()});var Oe,Ee,Ze,Ae=function(Ye,vr,rr){var Cr=(rr-vr)/ue+Ye;return ri.constrain(Cr,0,ie)},ir=function(Ye,vr,rr){var Cr=(vr-rr)/ue+Ye;return ri.constrain(Cr,0,ie)},Ge=Jo.behavior.drag().on("dragstart",function(){var Ye=Jo.event.sourceEvent;Ye.type==="touchstart"?Oe=Ye.changedTouches[0].clientY:Oe=Ye.clientY,Ze=De}).on("drag",function(){var Ye=Jo.event.sourceEvent;Ye.buttons===2||Ye.ctrlKey||(Ye.type==="touchmove"?Ee=Ye.changedTouches[0].clientY:Ee=Ye.clientY,De=Ae(Ze,Oe,Ee),He(De,Z,ue))});T.call(Ge);var Qe=Jo.behavior.drag().on("dragstart",function(){var Ye=Jo.event.sourceEvent;Ye.type==="touchstart"&&(Oe=Ye.changedTouches[0].clientY,Ze=De)}).on("drag",function(){var Ye=Jo.event.sourceEvent;Ye.type==="touchmove"&&(Ee=Ye.changedTouches[0].clientY,De=ir(Ze,Oe,Ee),He(De,Z,ue))});A.call(Qe)}function He(Ye,vr,rr){t._scrollY=e._fullLayout[n]._scrollY=Ye,ti.setTranslate(A,0,-Ye),ti.setRect(T,t._width,ui.scrollBarMargin+Ye*rr,ui.scrollBarWidth,vr),m.select("rect").attr("y",F+Ye)}if(e._context.edits.legendPosition){var Ve,ee,ge,re;g.classed("cursor-move",!0),Uw.init({element:g.node(),gd:e,prepFn:function(Ye){if(Ye.target!==T.node()){var vr=ti.getTranslate(g);ge=vr.x,re=vr.y}},moveFn:function(Ye,vr){if(ge!==void 0&&re!==void 0){var rr=ge+Ye,Cr=re+vr;ti.setTranslate(g,rr,Cr),Ve=Uw.align(rr,t._width,k.l,k.l+k.w,t.xanchor),ee=Uw.align(Cr+t._height,-t._height,k.t+k.h,k.t,t.yanchor)}},doneFn:function(){if(Ve!==void 0&&ee!==void 0){var Ye={};Ye[n+".x"]=Ve,Ye[n+".y"]=ee,Ld.call("_guiRelayout",e,Ye)}},clickFn:function(Ye,vr){var rr=o.selectAll("g.traces").filter(function(){var Cr=this.getBoundingClientRect();return vr.clientX>=Cr.left&&vr.clientX<=Cr.right&&vr.clientY>=Cr.top&&vr.clientY<=Cr.bottom});rr.size()>0&&qR(e,g,rr,Ye,vr)}})}}],e)}}function n3(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function qR(e,r,t,a,n){var i=t.data()[0][0].trace,o={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(o.group=i._group),Ld.traceIs(i,"pie-like")&&(o.label=t.datum()[0].label);var l=SR.triggerHandler(e,"plotly_legendclick",o);if(a===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&ER(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=SR.triggerHandler(e,"plotly_legenddoubleclick",o);s!==!1&&l!==!1&&ER(t,e,a)}}function bve(e,r,t){var a=f3(t),n=e.data()[0][0],i=n.trace,o=Ld.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,f,u;n.groupTitle?(f=n.groupTitle.text,u=n.groupTitle.font):(u=t.font,t.entries?f=n.text:(f=o?n.label:i.name,i._meta&&(f=ri.templateString(f,i._meta))));var c=ri.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(ti.font,u).text(l?FR(f,s):f);var v=t.indentation+t.itemwidth+ui.itemGap*2;B0.positionText(c,v,0),l?c.call(B0.makeEditable,{gd:r,text:f}).call(o3,e,r,t).on("edit",function(d){this.text(FR(d,s)).call(o3,e,r,t);var p=n.trace._fullInput||{},g={};return g.name=d,p._isShape?Ld.call("_guiRelayout",r,"shapes["+i.index+"].name",g.name):Ld.call("_guiRestyle",r,g,i.index)}):o3(c,e,r,t)}function FR(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function xve(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=ri.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(i3.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),qR(r,l,e,i,Jo.event)}}))}function o3(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),B0.convertToTspans(e,t,function(){_ve(r,t,a,n)})}function _ve(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),o=i.node(),l=f3(t);t||(t=r._fullLayout[l]);var s=t.borderwidth,f;a===kd?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var u=f.size*RR,c,v;if(o){var d=ti.bBox(o);c=d.height,v=d.width,a===kd?ti.setTranslate(i,s,s+c*.75):ti.setTranslate(i,0,c*.25)}else{var p="."+l+(a===kd?"title":"")+"text",g=e.select(p),m=B0.lineCount(g),b=g.node();if(c=u*m,v=b?ti.bBox(b).width:0,a===kd)t.title.side==="left"&&(v+=ui.itemGap*2),B0.positionText(g,s+ui.titlePad,s+u);else{var A=ui.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(A=ui.itemGap,v-=t.indentation+t.itemwidth),B0.positionText(g,A,-u*((m-1)/2-.3))}}a===kd?(t._titleWidth=v,t._titleHeight=c):(n.lineHeight=u,n.height=Math.max(c,16)+3,n.width=v)}function wve(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function Ave(e,r,t,a){var n=e._fullLayout,i=f3(a);a||(a=n[i]);var o=n._size,l=LR.isVertical(a),s=LR.isGrouped(a),f=a.entrywidthmode==="fraction",u=a.borderwidth,c=2*u,v=ui.itemGap,d=a.indentation+a.itemwidth+v*2,p=2*(u+v),g=s3(a),m=a.y<0||a.y===0&&g==="top",b=a.y>1||a.y===1&&g==="bottom",A=a.tracegroupgap,_={};let{orientation:x,yref:T}=a,{maxheight:E}=a,M=m||b||x!=="v"||T!=="paper";E||(E=M?.5:1);let k=M?n.height:o.h;a._maxHeight=Math.max(E>1?E:E*k,30);var F=0;a._width=0,a._height=0;var O=wve(a);if(l)t.each(function(He){var Ve=He[0].height;ti.setTranslate(this,u+O[0],u+O[1]+a._height+Ve/2+v),a._height+=Ve,a._width=Math.max(a._width,He[0].width)}),F=d+a._width,a._width+=v+d+c,a._height+=p,s&&(r.each(function(He,Ve){ti.setTranslate(this,0,Ve*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var I=l3(a),R=a.x<0||a.x===0&&I==="right",H=a.x>1||a.x===1&&I==="left",X=b||m,le=n.width/2;a._maxWidth=Math.max(R?X&&I==="left"?o.l+o.w:le:H?X&&I==="right"?o.r+o.w:le:o.w,2*d);var ae=0,$=0;t.each(function(He){var Ve=n3(He,a,d);ae=Math.max(ae,Ve),$+=Ve}),F=null;var Z=0;if(s){var J=0,ie=0,ue=0;r.each(function(){var He=0,Ve=0;Jo.select(this).selectAll("g.traces").each(function(ge){var re=n3(ge,a,d),Ye=ge[0].height;ti.setTranslate(this,O[0],O[1]+u+v+Ye/2+Ve),Ve+=Ye,He=Math.max(He,re),_[ge[0].trace.legendgroup]=He});var ee=He+v;ie>0&&ee+u+ie>a._maxWidth?(Z=Math.max(Z,ie),ie=0,ue+=J+A,J=Ve):J=Math.max(J,Ve),ti.setTranslate(this,ie,ue),ie+=ee}),a._width=Math.max(Z,ie)+u,a._height=ue+J+p}else{var De=t.size(),Oe=$+c+(De-1)*v=a._maxWidth&&(Z=Math.max(Z,ir),Ze=0,Ae+=Ee,a._height+=Ee,Ee=0),ti.setTranslate(this,O[0]+u+Ze,O[1]+u+Ae+Ve/2+v),ir=Ze+ee+v,Ze+=ge,Ee=Math.max(Ee,Ve)}),Oe?(a._width=Ze+c,a._height=Ee+p):(a._width=Math.max(Z,ir)+c,a._height+=Ee+p)}}a._width=Math.ceil(Math.max(a._width+O[0],a._titleWidth+2*(u+ui.titlePad))),a._height=Math.ceil(Math.max(a._height+O[1],a._titleHeight+2*(u+ui.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Ge=e._context.edits,Qe=Ge.legendText||Ge.legendPosition;t.each(function(He){var Ve=Jo.select(this).select("."+i+"toggle"),ee=He[0].height,ge=He[0].trace.legendgroup,re=n3(He,a,d);s&&ge!==""&&(re=_[ge]);var Ye=Qe?d:F||re;!l&&!f&&(Ye+=v/2),ti.setRect(Ve,0,-ee/2,Ye,ee)})}function Tve(e,r,t,a){var n=e._fullLayout,i=n[r],o=l3(i),l=s3(i),s=i.xref==="paper",f=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var u=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&f)return Hw.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Cd[o],r:i._width*kR[o],b:i._effHeight*kR[l],t:i._effHeight*Cd[l]});s?e._fullLayout._reservedMargin[r][u]=v[u]:f||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][u]=v[u]}function l3(e){return ri.isRightAnchor(e)?"right":ri.isCenterAnchor(e)?"center":"left"}function s3(e){return ri.isBottomAnchor(e)?"bottom":ri.isMiddleAnchor(e)?"middle":"top"}function f3(e){return e._id||"legend"}});var Zw=P(Xw=>{"use strict";var z0=ha(),Du=ga(),NR=Es(),Dn=Ur(),Mve=Dn.pushUnique,Ww=Dn.strTranslate,Sve=Dn.strRotate,Eve=Zp(),Yl=po(),kve=nR(),Lf=Wa(),_i=va(),u3=Ps(),Df=mn(),Cve=Ri().zindexSeparator,Fd=Bt(),Ns=Cu(),G0=Np(),Lve=Fw(),Dve=Yw(),VR=G0.YANGLE,jw=Math.PI*VR/180,Fve=1/Math.sin(jw),Rve=Math.cos(jw),qve=Math.sin(jw),yn=G0.HOVERARROWSIZE,fa=G0.HOVERTEXTPAD,OR={box:!0,ohlc:!0,violin:!0,candlestick:!0},Pve={scatter:!0,scattergl:!0,splom:!0};function IR(e,r){return e.distance-r.distance}Xw.hover=function(r,t,a,n){r=Dn.getGraphDiv(r);var i=t.target;Dn.throttle(r._fullLayout._uid+G0.HOVERID,G0.HOVERMINTIME,function(){Nve(r,t,a,n,i)})};Xw.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=ZR(n),o=JR(n),l=r.map(function(m){var b=m._x0||m.x0||m.x||0,A=m._x1||m.x1||m.x||0,_=m._y0||m.y0||m.y||0,x=m._y1||m.y1||m.y||0,T=m.eventData;if(T){var E=Math.min(b,A),M=Math.max(b,A),k=Math.min(_,x),F=Math.max(_,x),O=m.trace;if(Fd.traceIs(O,"gl3d")){var I=n._fullLayout[O.scene]._scene.container,R=I.offsetLeft,H=I.offsetTop;E+=R,M+=R,k+=H,F+=H}T.bbox={x0:E+o,x1:M+o,y0:k+i,y1:F+i},t.inOut_bbox&&t.inOut_bbox.push(T.bbox)}else T=!1;return{color:m.color||_i.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:T}}),s=!1,f=WR(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||_i.background,container:z0.select(t.container),outerContainer:t.outerContainer||t.container}),u=f.hoverLabels,c=5,v=0,d=0;u.sort(function(m,b){return m.y0-b.y0}).each(function(m,b){var A=m.y0-m.by/2;A-cM[0]._length||re<0||re>k[0]._length)return u3.unhoverRaw(e,r)}if(r.pointerX=ge+M[0]._offset,r.pointerY=re+k[0]._offset,"xval"in r?ae=Ns.flat(i,r.xval):ae=Ns.p2c(M,ge),"yval"in r?$=Ns.flat(i,r.yval):$=Ns.p2c(k,re),!Du(ae[0])||!Du($[0]))return Dn.warn("Fx.hover failed",r,e),u3.unhoverRaw(e,r)}var rr=1/0;function Cr(Pt,Ca){for(J=0;JGe&&(X.splice(0,Ge),rr=X[0].distance),c&&H!==0&&X.length===0){ir.distance=H,ir.index=!1;var Ba=ue._module.hoverPoints(ir,Ze,Ae,"closest",{hoverLayer:l._hoverlayer});if(Ba&&(Ba=Ba.filter(function(Ra){return Ra.spikeDistance<=H})),Ba&&Ba.length){var Ga,tn=Ba.filter(function(Ra){return Ra.xa.showspikes&&Ra.xa.spikesnap!=="hovered data"});if(tn.length){var Wi=tn[0];Du(Wi.x0)&&Du(Wi.y0)&&(Ga=_r(Wi),(!Qe.vLinePoint||Qe.vLinePoint.spikeDistance>Ga.spikeDistance)&&(Qe.vLinePoint=Ga))}var ji=Ba.filter(function(Ra){return Ra.ya.showspikes&&Ra.ya.spikesnap!=="hovered data"});if(ji.length){var qn=ji[0];Du(qn.x0)&&Du(qn.y0)&&(Ga=_r(qn),(!Qe.hLinePoint||Qe.hLinePoint.spikeDistance>Ga.spikeDistance)&&(Qe.hLinePoint=Ga))}}}}}Cr();function Lr(Pt,Ca,ia){for(var Va=null,hn=1/0,La,Ba=0;Ba0&&Math.abs(Pt.distance)hr-1;et--)ot(X[et]);X=Yr,wr()}var pr=e._hoverdata,Se=[],Ie=ZR(e),yr=JR(e);for(Z=0;Z1||X.length>1)||v==="closest"&&He&&X.length>1,jn=_i.combine(l.plot_bgcolor||_i.background,l.paper_bgcolor),vn=WR(X,{gd:e,hovermode:v,rotateLabels:cn,bgColor:jn,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),wn=vn.hoverLabels;if(Ns.isUnifiedHover(v)||(Ive(wn,cn,l,vn.commonLabelBoundingBox),XR(wn,cn,l._invScaleX,l._invScaleY)),n&&n.tagName){var Mi=Fd.getComponentMethod("annotations","hasClickToShow")(e,Se);kve(z0.select(n),Mi?"pointer":"")}!n||a||!Gve(e,r,pr)||(pr&&e.emit("plotly_unhover",{event:r,points:pr}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:k,xvals:ae,yvals:$}))}function YR(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Ove=/([\s\S]*)<\/extra>/;function WR(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,f=r.commonLabelOpts||{};if(e.length===0)return[[]];var u=r.fontFamily||G0.HOVERFONT,c=r.fontSize||G0.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,g=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,A=e[0],_=A.xa,x=A.ya,T=n.charAt(0),E=T+"Label",M=A[E];if(M===void 0&&_.type==="multicategory")for(var k=0;ka.width-yr&&(cr=a.width-yr),hr.attr("d","M"+(pr-cr)+",0L"+(pr-cr+yn)+","+Ie+yn+"H"+yr+"v"+Ie+(fa*2+et.height)+"H"+-yr+"V"+Ie+yn+"H"+(pr-cr-yn)+"Z"),pr=cr,J.minX=pr-yr,J.maxX=pr+yr,_.side==="top"?(J.minY=Se-(fa*2+et.height),J.maxY=Se-fa):(J.minY=Se+fa,J.maxY=Se+(fa*2+et.height))}else{var xt,At,gt;x.side==="right"?(xt="start",At=1,gt="",pr=_._offset+_._length):(xt="end",At=-1,gt="-",pr=_._offset),Se=x._offset+(A.y0+A.y1)/2,Or.attr("text-anchor",xt),hr.attr("d","M0,0L"+gt+yn+","+yn+"V"+(fa+et.height/2)+"h"+gt+(fa*2+et.width)+"V-"+(fa+et.height/2)+"H"+gt+yn+"V-"+yn+"Z"),J.minY=Se-(fa+et.height/2),J.maxY=Se+(fa+et.height/2),x.side==="right"?(J.minX=pr+yn,J.maxX=pr+yn+(fa*2+et.width)):(J.minX=pr-yn-(fa*2+et.width),J.maxX=pr-yn);var Nt=et.height/2,ta=O-et.top-Nt,ka="clip"+a._uid+"commonlabel"+x._id,Ta;if(pr=0?lt=Hr:Vr+rr=0?lt=Vr:Pe+rr=0?Et=Jr:wr+Cr=0?Et=wr:sr+Cr=0,(Fe.idealAlign==="top"||!ja)&&cn?(gt-=ta/2,Fe.anchor="end"):ja?(gt+=ta/2,Fe.anchor="start"):Fe.anchor="middle",Fe.crossPos=gt;else{if(Fe.pos=gt,ja=At+Nt/2+bn<=I,cn=At-Nt/2-bn>=0,(Fe.idealAlign==="left"||!ja)&&cn)At-=Nt/2,Fe.anchor="end";else if(ja)At+=Nt/2,Fe.anchor="start";else{Fe.anchor="middle";var jn=bn/2,vn=At+jn-I,wn=At-jn;vn>0&&(At-=vn),wn<0&&(At+=-wn)}Fe.crossPos=At}Se.attr("text-anchor",Fe.anchor),yr&&Ie.attr("text-anchor",Fe.anchor),hr.attr("transform",Ww(At,gt)+(i?Sve(VR):""))}),{hoverLabels:wt,commonLabelBoundingBox:J}}function BR(e,r,t,a,n,i){var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Dn.templateString(e.name,e.trace._meta)),o=UR(e.name,e.nameLength));var s=t.charAt(0),f=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[f+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o);var u=e.hovertemplate||!1;if(u){var c=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(c[s+"other"]=c[s+"Val"],c[s+"otherLabel"]=c[s+"Label"]),l=Dn.hovertemplateString(u,c,a._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(Ove,function(v,d){return o=UR(d,e.nameLength),""})}return[l,o]}function Ive(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),f=new Array(s),u=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,g=function(ae){return ae*t._invScaleX},m=function(ae){return ae*t._invScaleY};e.each(function(ae){var $=ae[n],Z=ae[i],J=$._id.charAt(0)==="x",ie=$.range;u===0&&ie&&ie[0]>ie[1]!==J&&(l=-1);var ue=0,De=J?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Oe=jR(ae,r),Ee=ae.anchor,Ze=Ee==="end"?-1:1,Ae,ir;if(Ee==="middle")Ae=ae.crossPos+(J?m(Oe.y-ae.by/2):g(ae.bx/2+ae.tx2width/2)),ir=Ae+(J?m(ae.by):g(ae.bx));else if(J)Ae=ae.crossPos+m(yn+Oe.y)-m(ae.by/2-yn),ir=Ae+m(ae.by);else{var Ge=g(Ze*yn+Oe.x),Qe=Ge+g(Ze*ae.bx);Ae=ae.crossPos+Math.min(Ge,Qe),ir=ae.crossPos+Math.max(Ge,Qe)}J?d!==void 0&&p!==void 0&&Math.min(ir,p)-Math.max(Ae,d)>1&&(Z.side==="left"?(ue=Z._mainLinePosition,De=t.width):De=Z._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(ir,v)-Math.max(Ae,c)>1&&(Z.side==="top"?(ue=Z._mainLinePosition,De=t.height):De=Z._mainLinePosition)}f[u++]=[{datum:ae,traceIndex:ae.trace.index,dp:0,pos:ae.pos,posref:ae.posref,size:ae.by*(J?Fve:1)/2,pmin:ue,pmax:De}]}),f.sort(function(ae,$){return ae[0].posref-$[0].posref||l*($[0].traceIndex-ae[0].traceIndex)});var b,A,_,x,T,E,M;function k(ae){var $=ae[0],Z=ae[ae.length-1];if(A=$.pmin-$.pos-$.dp+$.size,_=Z.pos+Z.dp+Z.size-$.pmax,A>.01){for(T=ae.length-1;T>=0;T--)ae[T].dp+=A;b=!1}if(!(_<.01)){if(A<-.01){for(T=ae.length-1;T>=0;T--)ae[T].dp-=_;b=!1}if(b){var J=0;for(x=0;x$.pmax&&J++;for(x=ae.length-1;x>=0&&!(J<=0);x--)E=ae[x],E.pos>$.pmax-1&&(E.del=!0,J--);for(x=0;x=0;T--)ae[T].dp-=_;for(x=ae.length-1;x>=0&&!(J<=0);x--)E=ae[x],E.pos+E.dp+E.size>$.pmax&&(E.del=!0,J--)}}}for(;!b&&o<=s;){for(o++,b=!0,x=0;x.01){for(T=O.length-1;T>=0;T--)O[T].dp+=A;for(F.push.apply(F,O),f.splice(x+1,1),M=0,T=F.length-1;T>=0;T--)M+=F[T].dp;for(_=M/F.length,T=F.length-1;T>=0;T--)F[T].dp-=_;b=!1}else x++}f.forEach(k)}for(x=f.length-1;x>=0;x--){var H=f[x];for(T=H.length-1;T>=0;T--){var X=H[T],le=X.datum;le.offset=X.dp,le.del=X.del}}}function jR(e,r){var t=0,a=e.offset;return r&&(a*=-qve,t=e.offset*Rve),{x:t,y:a}}function Bve(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(yn+fa),a=t+r*(e.txwidth+fa),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+fa),{alignShift:r,textShiftX:t,text2ShiftX:a}}function XR(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=z0.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),f=o.anchor,u=f==="end"?-1:1,c=Bve(o),v=jR(o,r),d=v.x,p=v.y,g=f==="middle",m="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;g?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":m?b="M0,0L"+n(u*yn+d)+","+i(yn+p)+"v"+i(o.by/2-yn)+"h"+n(u*o.bx)+"v-"+i(o.by)+"H"+n(u*yn+d)+"V"+i(p-yn)+"Z":b="M"+n(u*yn+d)+","+i(p-o.by/2)+"h"+n(u*o.bx)+"v"+i(o.by)+"h"+n(-u*o.bx)+"Z",l.select("path").attr("d",b);var A=d+c.textShiftX,_=p+o.ty0-o.by/2+fa,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&f!=="start"?(s.attr("text-anchor","start"),A=g?-o.bx/2-o.tx2width/2+fa:-o.bx-fa):x==="right"&&f!=="end"&&(s.attr("text-anchor","end"),A=g?o.bx/2-o.tx2width/2-fa:o.bx+fa)),s.call(Yl.positionText,n(A),i(_)),o.tx2width&&(l.select("text.name").call(Yl.positionText,n(c.text2ShiftX+c.alignShift*fa+d),i(p+o.ty0-o.by/2+fa)),l.select("rect").call(Lf.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function zve(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||Du(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=Dn.castOption(n,t,v);return o(p)?p:Dn.extractOption({},a,"",d)}:function(v,d){return Dn.extractOption(i,a,v,d)};function s(v,d,p){var g=l(d,p);o(g)&&(e[v]=g)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Dn.constrain(e.x0,0,e.xa._length),e.x1=Dn.constrain(e.x1,0,e.xa._length),e.y0=Dn.constrain(e.y0,0,e.ya._length),e.y1=Dn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Df.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Df.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var f=Df.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+f+" / -"+Df.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+f,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var u=Df.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+u+" / -"+Df.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+u,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function zR(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,f,u;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=_i.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;f=v&&v.xa,u=v&&v.ya;var g=u.spikesnap;g==="cursor"?(d=o.pointerX,p=o.pointerY):(d=f._offset+v.x,p=u._offset+v.y);var m=NR.readability(v.color,c)<1.5?_i.contrast(c):v.color,b=u.spikemode,A=u.spikethickness,_=u.spikecolor||m,x=Df.getPxPosition(e,u),T,E;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(T=x,E=d),b.indexOf("across")!==-1){var M=u._counterDomainMin,k=u._counterDomainMax;u.anchor==="free"&&(M=Math.min(M,u.position),k=Math.max(k,u.position)),T=i.l+M*i.w,E=i.l+k*i.w}a.insert("line",":first-child").attr({x1:T,x2:E,y1:p,y2:p,"stroke-width":A,stroke:_,"stroke-dasharray":Lf.dashStyle(u.spikedash,A)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:T,x2:E,y1:p,y2:p,"stroke-width":A+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(u.side!=="right"?A:-A),cy:p,r:A,fill:_}).classed("spikeline",!0)}if(s){var F=r.vLinePoint,O,I;f=F&&F.xa,u=F&&F.ya;var R=f.spikesnap;R==="cursor"?(O=o.pointerX,I=o.pointerY):(O=f._offset+F.x,I=u._offset+F.y);var H=NR.readability(F.color,c)<1.5?_i.contrast(c):F.color,X=f.spikemode,le=f.spikethickness,ae=f.spikecolor||H,$=Df.getPxPosition(e,f),Z,J;if(X.indexOf("toaxis")!==-1||X.indexOf("across")!==-1){if(X.indexOf("toaxis")!==-1&&(Z=$,J=I),X.indexOf("across")!==-1){var ie=f._counterDomainMin,ue=f._counterDomainMax;f.anchor==="free"&&(ie=Math.min(ie,f.position),ue=Math.max(ue,f.position)),Z=i.t+(1-ue)*i.h,J=i.t+(1-ie)*i.h}a.insert("line",":first-child").attr({x1:O,x2:O,y1:Z,y2:J,"stroke-width":le,stroke:ae,"stroke-dasharray":Lf.dashStyle(f.spikedash,le)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:O,x2:O,y1:Z,y2:J,"stroke-width":le+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}X.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:O,cy:$-(f.side!=="top"?le:-le),r:le,fill:ae}).classed("spikeline",!0)}}}function Gve(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function GR(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function UR(e,r){return Yl.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Uve(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o{"use strict";var Hve=Ur(),Vve=va(),Yve=Cu().isUnifiedHover;$R.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&Yve(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=Vve.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),Hve.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var KR=P((dLe,QR)=>{"use strict";var Wve=Ur(),jve=c3(),Xve=Zh();QR.exports=function(r,t){function a(n,i){return Wve.coerce(r,t,Xve,n,i)}jve(r,t,a)}});var tq=P((pLe,rq)=>{"use strict";var eq=Ur(),Zve=Ng(),Jve=c3();rq.exports=function(r,t,a,n){function i(l,s){return eq.coerce(r,t,Zve,l,s)}var o=eq.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),Jve(r,t,i,o)}});var Jw=P((mLe,aq)=>{"use strict";var $ve=Ur(),Qve=Zh();aq.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:$ve.coerce(r,t,Qve,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var oq=P((yLe,iq)=>{"use strict";var nq=Ur(),Kve=Zh(),e0e=Jw(),r0e=c3();iq.exports=function(r,t){function a(u,c){return nq.coerce(r,t,Kve,u,c)}var n=e0e(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),f=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&f===1||(o||l)&&s&&f===2)&&(t.dragmode="pan"),r0e(r,t,a),nq.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var fq=P((gLe,sq)=>{"use strict";var $w=Ur(),lq=Bt();sq.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(f){return function(u){return $w.coerceHoverinfo({hoverinfo:u},{_module:f._module},a)}}for(var i=0;i{"use strict";var a0e=Bt(),n0e=Zw().hover;uq.exports=function(r,t,a){var n=a0e.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&n0e(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Wc=P((xLe,dq)=>{"use strict";var i0e=ha(),v3=Ur(),o0e=Ps(),mm=Cu(),vq=Zh(),hq=Zw();dq.exports={moduleType:"component",name:"fx",constants:Np(),schema:{layout:vq},attributes:Ng(),layoutAttributes:vq,supplyLayoutGlobalDefaults:KR(),supplyDefaults:tq(),supplyLayoutDefaults:oq(),calc:fq(),getDistanceFunction:mm.getDistanceFunction,getClosest:mm.getClosest,inbox:mm.inbox,quadrature:mm.quadrature,appendArrayPointValue:mm.appendArrayPointValue,castHoverOption:s0e,castHoverinfo:f0e,hover:hq.hover,unhover:o0e.unhover,loneHover:hq.loneHover,loneUnhover:l0e,click:cq()};function l0e(e){var r=v3.isD3Selection(e)?e:i0e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function s0e(e,r,t){return v3.castOption(e,r,"hoverlabel."+t)}function f0e(e,r,t){function a(n){return v3.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return v3.castOption(e,t,"hoverinfo",a)}});var jc=P(Fu=>{"use strict";Fu.selectMode=function(e){return e==="lasso"||e==="select"};Fu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Fu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Fu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Fu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Fu.selectingOrDrawing=function(e){return Fu.freeMode(e)||Fu.rectMode(e)}});var h3=P((wLe,pq)=>{"use strict";pq.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var d3=P((ALe,mq)=>{"use strict";mq.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var m3=P((TLe,yq)=>{"use strict";var p3=32;yq.exports={CIRCLE_SIDES:p3,i000:0,i090:p3/4,i180:p3/2,i270:p3/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var y3=P((MLe,bq)=>{"use strict";var u0e=Ur().strTranslate;function gq(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function c0e(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function v0e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return gq(e,t[r])}}function h0e(e){return u0e(e.xaxis._offset,e.yaxis._offset)}bq.exports={p2r:gq,r2p:c0e,axValue:v0e,getTransform:h0e}});var Xc=P(Ru=>{"use strict";var d0e=am(),wq=m3(),Rd=wq.CIRCLE_SIDES,Qw=wq.SQRT2,Aq=y3(),xq=Aq.p2r,_q=Aq.r2p,p0e=[0,3,4,5,6,1,2],m0e=[0,3,4,1,2];Ru.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var Tq=Sn(),Cq=jc(),y0e=Cq.drawMode,g0e=Cq.openMode,qd=m3(),Mq=qd.i000,Sq=qd.i090,Eq=qd.i180,kq=qd.i270,b0e=qd.cos45,x0e=qd.sin45,Lq=y3(),b3=Lq.p2r,Zc=Lq.r2p,_0e=Oc(),w0e=_0e.clearOutline,x3=Xc(),A0e=x3.readPaths,T0e=x3.writePaths,M0e=x3.ellipseOver,S0e=x3.fixDatesForPaths;function E0e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!y0e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var k0e=jc(),C0e=k0e.selectMode,L0e=Oc(),D0e=L0e.clearOutline,Kw=Xc(),F0e=Kw.readPaths,R0e=Kw.writePaths,q0e=Kw.fixDatesForPaths;Rq.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,f=l.yaxis,u=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!C0e(c)&&u!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";qq.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Jc=P(Pi=>{"use strict";var U0=gm(),Pq=Ur(),w3=mn();Pi.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Pi.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Pi.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Pi.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Pi.extractPathCoords=function(e,r,t){var a=[],n=e.match(U0.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.substr(1).match(U0.paramRE);if(!(!l||l.lengthd&&(g="X"),g});return f>d&&(p=p.replace(/[\s,]*X.*/,""),Pq.log("Ignoring extra params in segment "+s)),u+p})}function bm(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var tA=P((DLe,Bq)=>{"use strict";var N0e=Ur(),Pd=mn(),Nq=po(),Oq=Wa(),O0e=Xc().readPaths,rA=Jc(),I0e=rA.getPathString,Iq=Vg(),B0e=ho().FROM_TL;Bq.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=Pd.getFromId(r,a.xref),s=Pd.getFromId(r,a.yref);for(var f in Iq){var u=Iq[f](a,l,s);u!==void 0&&(o[f]=u)}}i=N0e.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,o)}else i=a.label.text;var c={"data-index":t},v=a.label.font,d={"data-notex":1},p=n.append("g").attr(c).classed("shape-label",!0),g=p.append("text").attr(d).classed("shape-label-text",!0).text(i),m,b,A,_;if(a.path){var x=I0e(r,a),T=O0e(x,r);m=1/0,A=1/0,b=-1/0,_=-1/0;for(var E=0;E=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function G0e(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,f=n.label.padding,u=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,g=n.label.yanchor,m,b,A,_;if(u==="line"){l==="start"?(m=e,b=r):l==="end"?(m=t,b=a):(m=(e+t)/2,b=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var U0e=Ur(),H0e=U0e.strTranslate,zq=Ps(),Hq=jc(),V0e=Hq.drawMode,Vq=Hq.selectMode,Yq=Bt(),Gq=va(),T3=m3(),Y0e=T3.i000,W0e=T3.i090,j0e=T3.i180,X0e=T3.i270,Z0e=Oc(),Wq=Z0e.clearOutlineControllers,nA=Xc(),A3=nA.pointsOnRectangle,aA=nA.pointsOnEllipse,J0e=nA.writePaths,$0e=_3().newShapes,Q0e=_3().createShapeObj,K0e=eA(),ehe=tA();jq.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(aA(r[0])||a.hasText)&&l({redrawing:!0})}function l($){var Z={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,Z=$0e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,Z=K0e(t,a),i._fullLayout._reselect=!0),Object.keys(Z).length&&Yq.call(($||{}).redrawing?"relayout":"_guiRelayout",i,Z)}var s=i._fullLayout,f=s._zoomlayer,u=a.dragmode,c=V0e(u),v=Vq(u);(c||v)&&(i._fullLayout._outlining=!0),Wq(i),t.attr("d",J0e(r));var d,p,g,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=rhe([],r);var A=f.append("g").attr("class","outline-controllers");O(A),ae()}if(c&&a.hasText){var _=f.select(".label-temp"),x=Q0e(t,a,a.dragmode);ehe(i,"label-temp",x,_)}function T($){g=+$.srcElement.getAttribute("data-i"),m=+$.srcElement.getAttribute("data-j"),d[g][m].moveFn=E}function E($,Z){if(r.length){var J=b[g][m][1],ie=b[g][m][2],ue=r[g],De=ue.length;if(A3(ue)){var Oe=$,Ee=Z;if(a.isActiveSelection){var Ze=Uq(ue,m);Ze[1]===ue[m][1]?Ee=0:Oe=0}for(var Ae=0;Ae1&&!($.length===2&&$[1][0]==="Z")&&(m===0&&($[0][0]="M"),r[g]=$,o(),l())}}function F($,Z){if($===2){g=+Z.srcElement.getAttribute("data-i"),m=+Z.srcElement.getAttribute("data-j");var J=r[g];!A3(J)&&!aA(J)&&k()}}function O($){d=[];for(var Z=0;Z{"use strict";var ahe=ha(),Kq=Bt(),Xq=Ur(),Nd=mn(),nhe=Xc().readPaths,ihe=M3(),E3=tA(),eP=Oc().clearOutlineControllers,iA=va(),lA=Wa(),ohe=$a().arrayEditor,Zq=Ps(),Jq=Yc(),H0=gm(),$o=Jc(),oA=$o.getPathString;aP.exports={draw:sA,drawOne:rP,eraseActiveShape:fhe,drawLabel:E3};function sA(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;no&&rt>l&&!Lr.shiftKey?Zq.getCursor(Jr/Pr,1-wr/rt):"move";Jq(r,Hr),ir=Hr.split("-")[0]}}function Ve(Lr){S3(e)||(s&&(b=ue(t.xanchor)),f&&(A=De(t.yanchor)),t.type==="path"?I=t.path:(d=s?t.x0:ue(t.x0),p=f?t.y0:De(t.y0),g=s?t.x1:ue(t.x1),m=f?t.y1:De(t.y1)),dm?(_=p,M="y0",x=m,k="y1"):(_=m,M="y1",x=p,k="y0"),He(Lr),vr(n,t),Cr(r,t,e),Ae.moveFn=ir==="move"?re:Ye,Ae.altKey=Lr.altKey)}function ee(){S3(e)||(Jq(r),rr(n),tP(r,e,t),Kq.call("_guiRelayout",e,i.getUpdateObj()))}function ge(){S3(e)||rr(n)}function re(Lr,_r){if(t.type==="path"){var Pr=function(wr){return wr},rt=Pr,Jr=Pr;s?v("xanchor",t.xanchor=Oe(b+Lr)):(rt=function(Hr){return Oe(ue(Hr)+Lr)},H&&H.type==="date"&&(rt=$o.encodeDate(rt))),f?v("yanchor",t.yanchor=Ee(A+_r)):(Jr=function(Hr){return Ee(De(Hr)+_r)},le&&le.type==="date"&&(Jr=$o.encodeDate(Jr))),v("path",t.path=$q(I,rt,Jr))}else s?v("xanchor",t.xanchor=Oe(b+Lr)):(v("x0",t.x0=Oe(d+Lr)),v("x1",t.x1=Oe(g+Lr))),f?v("yanchor",t.yanchor=Ee(A+_r)):(v("y0",t.y0=Ee(p+_r)),v("y1",t.y1=Ee(m+_r)));r.attr("d",oA(e,t)),vr(n,t),E3(e,a,t,R)}function Ye(Lr,_r){if(c){var Pr=function(nt){return nt},rt=Pr,Jr=Pr;s?v("xanchor",t.xanchor=Oe(b+Lr)):(rt=function(vt){return Oe(ue(vt)+Lr)},H&&H.type==="date"&&(rt=$o.encodeDate(rt))),f?v("yanchor",t.yanchor=Ee(A+_r)):(Jr=function(vt){return Ee(De(vt)+_r)},le&&le.type==="date"&&(Jr=$o.encodeDate(Jr))),v("path",t.path=$q(I,rt,Jr))}else if(u){if(ir==="resize-over-start-point"){var wr=d+Lr,Hr=f?p-_r:p+_r;v("x0",t.x0=s?wr:Oe(wr)),v("y0",t.y0=f?Hr:Ee(Hr))}else if(ir==="resize-over-end-point"){var Vr=g+Lr,Pe=f?m-_r:m+_r;v("x1",t.x1=s?Vr:Oe(Vr)),v("y1",t.y1=f?Pe:Ee(Pe))}}else{var sr=function(nt){return ir.indexOf(nt)!==-1},lt=sr("n"),Et=sr("s"),wt=sr("w"),Fe=sr("e"),hr=lt?_+_r:_,Or=Et?x+_r:x,at=wt?T+Lr:T,Yr=Fe?E+Lr:E;f&&(lt&&(hr=_-_r),Et&&(Or=x-_r)),(!f&&Or-hr>l||f&&hr-Or>l)&&(v(M,t[M]=f?hr:Ee(hr)),v(k,t[k]=f?Or:Ee(Or))),Yr-at>o&&(v(F,t[F]=s?at:Oe(at)),v(O,t[O]=s?Yr:Oe(Yr)))}r.attr("d",oA(e,t)),vr(n,t),E3(e,a,t,R)}function vr(Lr,_r){(s||f)&&Pr();function Pr(){var rt=_r.type!=="path",Jr=Lr.selectAll(".visual-cue").data([0]),wr=1;Jr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":wr}).classed("visual-cue",!0);var Hr=ue(s?_r.xanchor:Xq.midRange(rt?[_r.x0,_r.x1]:$o.extractPathCoords(_r.path,H0.paramIsX))),Vr=De(f?_r.yanchor:Xq.midRange(rt?[_r.y0,_r.y1]:$o.extractPathCoords(_r.path,H0.paramIsY)));if(Hr=$o.roundPositionForSharpStrokeRendering(Hr,wr),Vr=$o.roundPositionForSharpStrokeRendering(Vr,wr),s&&f){var Pe="M"+(Hr-1-wr)+","+(Vr-1-wr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Jr.attr("d",Pe)}else if(s){var sr="M"+(Hr-1-wr)+","+(Vr-9-wr)+"v18 h2 v-18 Z";Jr.attr("d",sr)}else{var lt="M"+(Hr-9-wr)+","+(Vr-1-wr)+"h18 v2 h-18 Z";Jr.attr("d",lt)}}}function rr(Lr){Lr.selectAll(".visual-cue").remove()}function Cr(Lr,_r,Pr){var rt=_r.xref,Jr=_r.yref,wr=Nd.getFromId(Pr,rt),Hr=Nd.getFromId(Pr,Jr),Vr="";rt!=="paper"&&!wr.autorange&&(Vr+=rt),Jr!=="paper"&&!Hr.autorange&&(Vr+=Jr),lA.setClipUrl(Lr,Vr?"clip"+Pr._fullLayout._uid+Vr:null,Pr)}}function $q(e,r,t){return e.replace(H0.segmentRE,function(a){var n=0,i=a.charAt(0),o=H0.paramIsX[i],l=H0.paramIsY[i],s=H0.numParams[i],f=a.substr(1).replace(H0.paramRE,function(u){return n>=s||(o[n]?u=r(u):l[n]&&(u=t(u)),n++),u});return i+f})}function she(e,r){if(k3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){Qq(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=Qq,sA(e)}}}function Qq(e){if(k3(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(eP(e),delete e._fullLayout._activeShapeIndex,sA(e))}}function fhe(e){if(k3(e)){eP(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Wl=Bt(),nP=bi(),iP=Sn(),ba=d3(),uhe=C3().eraseActiveShape,L3=Ur(),la=L3._,xa=vP.exports={};xa.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?la(e,"Download plot as a PNG"):la(e,"Download plot")},icon:ba.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};L3.notifier(la(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Wl.call("downloadImage",e,t).then(function(a){L3.notifier(la(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){L3.notifier(la(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};xa.sendDataToCloud={name:"sendDataToCloud",title:function(e){return la(e,"Edit in Chart Studio")},icon:ba.disk,click:function(e){nP.sendDataToCloud(e)}};xa.editInChartStudio={name:"editInChartStudio",title:function(e){return la(e,"Edit in Chart Studio")},icon:ba.pencil,click:function(e){nP.sendDataToCloud(e)}};xa.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return la(e,"Zoom")},attr:"dragmode",val:"zoom",icon:ba.zoombox,click:go};xa.pan2d={name:"pan2d",_cat:"pan",title:function(e){return la(e,"Pan")},attr:"dragmode",val:"pan",icon:ba.pan,click:go};xa.select2d={name:"select2d",_cat:"select",title:function(e){return la(e,"Box Select")},attr:"dragmode",val:"select",icon:ba.selectbox,click:go};xa.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return la(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:ba.lasso,click:go};xa.drawclosedpath={name:"drawclosedpath",title:function(e){return la(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:ba.drawclosedpath,click:go};xa.drawopenpath={name:"drawopenpath",title:function(e){return la(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:ba.drawopenpath,click:go};xa.drawline={name:"drawline",title:function(e){return la(e,"Draw line")},attr:"dragmode",val:"drawline",icon:ba.drawline,click:go};xa.drawrect={name:"drawrect",title:function(e){return la(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:ba.drawrect,click:go};xa.drawcircle={name:"drawcircle",title:function(e){return la(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:ba.drawcircle,click:go};xa.eraseshape={name:"eraseshape",title:function(e){return la(e,"Erase active shape")},icon:ba.eraseshape,click:uhe};xa.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return la(e,"Zoom in")},attr:"zoom",val:"in",icon:ba.zoom_plus,click:go};xa.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return la(e,"Zoom out")},attr:"zoom",val:"out",icon:ba.zoom_minus,click:go};xa.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return la(e,"Autoscale")},attr:"zoom",val:"auto",icon:ba.autoscale,click:go};xa.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return la(e,"Reset axes")},attr:"zoom",val:"reset",icon:ba.home,click:go};xa.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return la(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:ba.tooltip_basic,gravity:"ne",click:go};xa.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return la(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:ba.tooltip_compare,gravity:"ne",click:go};function go(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=iP.list(e,null,!0),s=i._cartesianSpikesEnabled,f,u;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,g;for(u=0;u{"use strict";var hP=cA(),hhe=Object.keys(hP),dP=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],pP=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(dP),Id=[],dhe=function(e){if(pP.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();Id.indexOf(r)===-1&&Id.push(r),Id.indexOf(t)===-1&&Id.push(t)}};hhe.forEach(function(e){dhe(hP[e])});Id.sort();mP.exports={DRAW_MODES:dP,backButtons:pP,foreButtons:Id}});var hA=P((OLe,yP)=>{"use strict";var NLe=vA();yP.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var bP=P((ILe,gP)=>{"use strict";var phe=Ur(),xm=va(),mhe=$a(),yhe=hA();gP.exports=function(r,t){var a=r.modebar||{},n=mhe.newContainer(t,"modebar");function i(l,s){return phe.coerce(a,n,yhe,l,s)}i("orientation"),i("bgcolor",xm.addOpacity(t.paper_bgcolor,.5));var o=xm.contrast(xm.rgb(t.modebar.bgcolor));i("color",xm.addOpacity(o,.3)),i("activecolor",xm.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var AP=P((BLe,wP)=>{"use strict";var dA=ha(),ghe=ga(),F3=Ur(),xP=d3(),bhe=Tg().version,xhe=new DOMParser;function _P(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ff=_P.prototype;Ff.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,f=this.locale!==t.locale;if(this.locale=t.locale,(l||s||f)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var u=this.getLogo();t.watermark&&(u.className=u.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(u,this.element.childNodes[0]):this.element.appendChild(u),this.hasLogo=!0}this.updateActiveButton(),F3.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Ff.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Ff.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Ff.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&dA.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||xP.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Ff.createIcon=function(e){var r=ghe(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=xhe.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Ff.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=dA.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var f=!l.classed("active");l.classed("active",f),s(a,f)}}else{var u=i===null?i:F3.nestedProperty(r,i).get();l.classed("active",u===n),s(a,u===n)}})};Ff.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Ahe=Sn(),TP=qi(),pA=Bt(),The=Cu().isUnifiedHover,Mhe=AP(),R3=cA(),She=vA().DRAW_MODES,Ehe=Ur().extendDeep;MP.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=Rhe(i):!a.displayModeBar&&a.watermark?o=[]:o=khe(r),n?n.update(r,o):t._modeBar=Mhe(r,o)};function khe(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(Z,J){if(typeof J=="string"){if(J.toLowerCase()===Z.toLowerCase())return!0}else{var ie=J.name,ue=J._cat||J.name;if(ie===Z||ue===Z.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(Z){for(var J=0;J1?(O=["toggleHover"],I=["resetViews"]):c?(F=["zoomInGeo","zoomOutGeo"],O=["hoverClosestGeo"],I=["resetGeo"]):u?(O=["hoverClosest3d"],I=["resetCameraDefault3d","resetCameraLastSave3d"]):g?(F=["zoomInMapbox","zoomOutMapbox"],O=["toggleHover"],I=["resetViewMapbox"]):m?(F=["zoomInMap","zoomOutMap"],O=["toggleHover"],I=["resetViewMap"]):v?O=["hoverClosestPie"]:_?(O=["hoverClosestCartesian","hoverCompareCartesian"],I=["resetViewSankey"]):O=["toggleHover"],f&&O.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Dhe(t)||T)&&(O=[]),f&&!x&&(F=["zoomIn2d","zoomOut2d","autoScale2d"],I[0]!=="resetViews"&&(I=["resetScale2d"])),u?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:f&&!x||p?R=["zoom2d","pan2d"]:g||m||c?R=["pan2d"]:b&&(R=["zoom2d"]),Lhe(t)&&R.push("select2d","lasso2d");var H=[],X=function(Z){H.indexOf(Z)===-1&&O.indexOf(Z)!==-1&&H.push(Z)};if(Array.isArray(l)){for(var le=[],ae=0;ae{"use strict";EP.exports={moduleType:"component",name:"modebar",layoutAttributes:hA(),supplyLayoutDefaults:bP(),manage:SP()}});var yA=P((ULe,kP)=>{"use strict";var qhe=ho().FROM_BL;kP.exports=function(r,t,a){a===void 0&&(a=qhe[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var wm=P(_m=>{"use strict";var V0=Ur(),gA=wd(),Os=Sn().id2name,Phe=Ul(),CP=yA(),Nhe=O2(),Ohe=Qn().ALMOST_EQUAL,Ihe=ho().FROM_BL;_m.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,f,u,c,v,d,p;for(l=0;li?t.substr(i):a.substr(n))+o}function zhe(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;oOhe*p&&!A)){for(i=0;iR&&ieO&&(O=ie);var De=(O-F)/(2*I);c/=De,F=s.l2r(F),O=s.l2r(O),s.range=s._input.range=E{"use strict";var P3=ha(),bo=Bt(),Al=bi(),jl=Ur(),_A=po(),wA=h3(),Am=va(),Bd=Wa(),RP=om(),IP=mA(),Tm=mn(),qu=ho(),BP=wm(),Ghe=BP.enforce,Uhe=BP.clean,qP=wd().doAutoRange,zP="start",Hhe="middle",GP="end",Vhe=Ri().zindexSeparator;wi.layoutStyles=function(e){return jl.syncOrAsync([Al.doAutoMargin,Whe],e)};function Yhe(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Whe(e){var r=e._fullLayout,t=r._size,a=t.p,n=Tm.list(e,"",!0),i,o,l,s,f,u;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(Bd.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),wi.drawMainTitle(e),IP.manage(e),!r._has("cartesian"))return Al.previousPromises(e);function c(Ve,ee,ge){var re=Ve._lw/2;if(Ve._id.charAt(0)==="x"){if(ee){if(ge==="top")return ee._offset-a-re}else return t.t+t.h*(1-(Ve.position||0))+re%1;return ee._offset+ee._length+a+re}if(ee){if(ge==="right")return ee._offset+ee._length+a+re}else return t.l+t.w*(Ve.position||0)+re%1;return ee._offset-a-re}for(i=0;i0){Jhe(e,i,f,s),l.attr({x:o,y:i,"text-anchor":a,dy:OP(r.yanchor)}).call(_A.positionText,o,i);var u=(r.text.match(_A.BR_TAG_ALL)||[]).length;if(u){var c=qu.LINE_SPACING*u+qu.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var v=P3.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,g=p+RP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y:g,"text-anchor":a,dy:OP(r.yanchor)}).call(_A.positionText,o,g)}}}};function jhe(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=jl.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return jl.isTopAnchor(r)&&t==="t"||jl.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=Xhe(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function Jhe(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&jhe(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Al.allowAutoMargin(e,n),Al.autoMargin(e,n,l)}function $he(e,r){var t=e.title,a=e._size,n=0;switch(r===zP?n=t.pad.l:r===GP&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function Qhe(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===qu.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function OP(e){return e==="top"?qu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":qu.MID_SHIFT+"em"}function Khe(e){var r=e.title,t=Hhe;return jl.isRightAnchor(r)?t=GP:jl.isLeftAnchor(r)&&(t=zP),t}function ede(e){var r=e.title,t="0em";return jl.isTopAnchor(r)?t=qu.CAP_SHIFT+"em":jl.isMiddleAnchor(r)&&(t=qu.MID_SHIFT+"em"),t}wi.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var rde=Xc().readPaths,tde=M3(),UP=Oc().clearOutlineControllers,AA=va(),HP=Wa(),ade=$a().arrayEditor,VP=Jc(),nde=VP.getPathString;WP.exports={draw:O3,drawOne:YP,activateLastSelection:lde};function O3(e){var r=e._fullLayout;UP(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;m--){var b=o.append("path").attr(s).style("opacity",m?.1:f).call(AA.stroke,c).call(AA.fill,u).call(HP.dashLine,m?"solid":d,m?4+v:v);if(ide(b,e,a),p){var A=ade(e.layout,"selections",a);b.style({cursor:"move"});var _={element:b.node(),plotinfo:n,gd:e,editHelpers:A,isActiveSelection:!0},x=rde(l,e);tde(x,b,_)}else b.style("pointer-events",m?"all":"none");g[m]=b}var T=g[0],E=g[1];E.node().addEventListener("click",function(){return ode(e,T)})}}function ide(e,r,t){var a=t.xref+t.yref;HP.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function ode(e,r){if(I3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){TA(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=TA,O3(e)}}}function lde(e){if(I3(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=TA,O3(e)}}function TA(e){if(I3(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(UP(e),delete e._fullLayout._activeSelectionIndex,O3(e))}}});var XP=P((WLe,jP)=>{function sde(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}jP.exports=sde});var JP=P((jLe,ZP)=>{function fde(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],f=t[0],u=t[1];return(l-i)*(u-o)-(s-o)*(f-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],f=l*o+i*s;if(f-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-u)*(i-c)/(l-c)+u-n>e&&(s=!s),o=u,l=c}return s}};return r}ZP.exports=fde});var QP=P((XLe,$P)=>{var ude={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};$P.exports=ude});var eN=P((ZLe,KP)=>{var Mm=QP();function cde(e,r,t){function a(p,g){return{id:t?t.segmentId():-1,start:p,end:g,myFill:{above:null,below:null},otherFill:null}}function n(p,g,m){return{id:t?t.segmentId():-1,start:p,end:g,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=Mm.create();function o(p,g,m,b,A,_){var x=r.pointsCompare(g,A);return x!==0?x:r.pointsSame(m,_)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(m,b?A:_,b?_:A)?1:-1}function l(p,g){i.insertBefore(p,function(m){var b=o(p.isStart,p.pt,g,m.isStart,m.pt,m.other.pt);return b<0})}function s(p,g){var m=Mm.node({isStart:!0,pt:p.start,seg:p,primary:g,other:null,status:null});return l(m,p.end),m}function f(p,g,m){var b=Mm.node({isStart:!1,pt:g.end,seg:g,primary:m,other:p,status:null});p.other=b,l(b,p.pt)}function u(p,g){var m=s(p,g);return f(m,p,g),m}function c(p,g){t&&t.segmentChop(p.seg,g),p.other.remove(),p.seg.end=g,p.other.pt=g,l(p.other,p.pt)}function v(p,g){var m=n(g,p.seg.end,p.seg);return c(p,g),u(m,p.primary)}function d(p,g){var m=Mm.create();function b(le,ae){var $=le.seg.start,Z=le.seg.end,J=ae.seg.start,ie=ae.seg.end;return r.pointsCollinear($,J,ie)?r.pointsCollinear(Z,J,ie)||r.pointAboveOrOnLine(Z,J,ie)?1:-1:r.pointAboveOrOnLine($,J,ie)?1:-1}function A(le){return m.findTransition(function(ae){var $=b(le,ae.ev);return $>0})}function _(le,ae){var $=le.seg,Z=ae.seg,J=$.start,ie=$.end,ue=Z.start,De=Z.end;t&&t.checkIntersection($,Z);var Oe=r.linesIntersect(J,ie,ue,De);if(Oe===!1){if(!r.pointsCollinear(J,ie,ue)||r.pointsSame(J,De)||r.pointsSame(ie,ue))return!1;var Ee=r.pointsSame(J,ue),Ze=r.pointsSame(ie,De);if(Ee&&Ze)return ae;var Ae=!Ee&&r.pointBetween(J,ue,De),ir=!Ze&&r.pointBetween(ie,ue,De);if(Ee)return ir?v(ae,ie):v(le,De),ae;Ae&&(Ze||(ir?v(ae,ie):v(le,De)),v(ae,J))}else Oe.alongA===0&&(Oe.alongB===-1?v(le,ue):Oe.alongB===0?v(le,Oe.pt):Oe.alongB===1&&v(le,De)),Oe.alongB===0&&(Oe.alongA===-1?v(ae,J):Oe.alongA===0?v(ae,Oe.pt):Oe.alongA===1&&v(ae,ie));return!1}for(var x=[];!i.isEmpty();){var T=i.getHead();if(t&&t.vert(T.pt[0]),T.isStart){let le=function(){if(M){var ae=_(T,M);if(ae)return ae}return k?_(T,k):!1};var X=le;t&&t.segmentNew(T.seg,T.primary);var E=A(T),M=E.before?E.before.ev:null,k=E.after?E.after.ev:null;t&&t.tempStatus(T.seg,M?M.seg:!1,k?k.seg:!1);var F=le();if(F){if(e){var O;T.seg.myFill.below===null?O=!0:O=T.seg.myFill.above!==T.seg.myFill.below,O&&(F.seg.myFill.above=!F.seg.myFill.above)}else F.seg.otherFill=T.seg.myFill;t&&t.segmentUpdate(F.seg),T.other.remove(),T.remove()}if(i.getHead()!==T){t&&t.rewind(T.seg);continue}if(e){var O;T.seg.myFill.below===null?O=!0:O=T.seg.myFill.above!==T.seg.myFill.below,k?T.seg.myFill.below=k.seg.myFill.above:T.seg.myFill.below=p,O?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var I;k?T.primary===k.primary?I=k.seg.otherFill.above:I=k.seg.myFill.above:I=T.primary?g:p,T.seg.otherFill={above:I,below:I}}t&&t.status(T.seg,M?M.seg:!1,k?k.seg:!1),T.other.status=E.insert(Mm.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(R.prev)&&m.exists(R.next)&&_(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!T.primary){var H=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=H}x.push(T.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var g,m=p[p.length-1],b=0;b{function vde(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},f={index:0,matches_head:!1,matches_pt1:!1},u=s;function c(X,le,ae){return u.index=X,u.matches_head=le,u.matches_pt1=ae,u===s?(u=f,!1):(u=null,!0)}for(var v=0;v{function Sm(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var hde={union:function(e,r){return Sm(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Sm(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Sm(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Sm(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Sm(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};aN.exports=hde});var oN=P((QLe,iN)=>{var dde={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(f){var u=f.slice(0,f.length-1);return e.segments({inverted:!1,regions:[u]})}for(var l=o(i[0]),s=1;s{var pde=XP(),mde=JP(),lN=eN(),yde=tN(),Em=nN(),sN=oN(),Xl=!1,km=mde(),Qo;Qo={buildLog:function(e){return e===!0?Xl=pde():e===!1&&(Xl=!1),Xl===!1?!1:Xl.list},epsilon:function(e){return km.epsilon(e)},segments:function(e){var r=lN(!0,km,Xl);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=lN(!1,km,Xl);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Em.union(e.combined,Xl),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Em.intersect(e.combined,Xl),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Em.difference(e.combined,Xl),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Em.differenceRev(e.combined,Xl),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Em.xor(e.combined,Xl),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:yde(e.segments,km,Xl),inverted:e.inverted}},polygonFromGeoJSON:function(e){return sN.toPolygon(Qo,e)},polygonToGeoJSON:function(e){return sN.fromPolygon(Qo,km,e)},union:function(e,r){return Cm(e,r,Qo.selectUnion)},intersect:function(e,r){return Cm(e,r,Qo.selectIntersect)},difference:function(e,r){return Cm(e,r,Qo.selectDifference)},differenceRev:function(e,r){return Cm(e,r,Qo.selectDifferenceRev)},xor:function(e,r){return Cm(e,r,Qo.selectXor)}};function Cm(e,r,t){var a=Qo.segments(e),n=Qo.segments(r),i=Qo.combine(a,n),o=t(i);return Qo.polygon(o)}typeof window=="object"&&(window.PolyBool=Qo);fN.exports=Qo});var vN=P((eDe,cN)=>{cN.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,f=0,u=s-1;fo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;g&&(l=!l)}return l}});var EA=P((rDe,hN)=>{"use strict";var SA=Gg().dot,B3=Qn().BADNUM,z3=hN.exports={};z3.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||b===B3||bo||g&&f(p))}function c(p,g){var m=p[0],b=p[1];if(m===B3||mn||b===B3||bo)return!1;var A=t.length,_=t[0][0],x=t[0][1],T=0,E,M,k,F,O;for(E=1;EMath.max(M,_)||b>Math.max(k,x)))if(bl||Math.abs(SA(c,f))>n)return!0;return!1};z3.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var f=a.length,u=n;a.splice(i+1);for(var c=u+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var pN=P((tDe,dN)=>{"use strict";dN.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var ON=P((aDe,NN)=>{"use strict";var mN=uN(),gde=vN(),Fm=Bt(),bde=Wa().dashStyle,Lm=va(),xde=Wc(),_de=Cu().makeEventData,Om=jc(),wde=Om.freeMode,Ade=Om.rectMode,Rm=Om.drawMode,DA=Om.openMode,FA=Om.selectMode,yN=Jc(),gN=gm(),AN=M3(),TN=Oc().clearOutline,MN=Xc(),kA=MN.handleEllipse,Tde=MN.readPaths,Mde=_3().newShapes,Sde=eA(),Ede=MA().activateLastSelection,U3=Ur(),kde=U3.sorterAsc,SN=EA(),Dm=r2(),Zl=Sn().getFromId,Cde=h3(),Lde=N3().redrawReglTraces,H3=pN(),Rf=H3.MINSELECT,Dde=SN.filter,RA=SN.tester,qA=y3(),bN=qA.p2r,Fde=qA.axValue,Rde=qA.getTransform;function PA(e){return e.subplot!==void 0}function qde(e,r,t,a,n){var i=!PA(a),o=wde(n),l=Ade(n),s=DA(n),f=Rm(n),u=FA(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,g=p._fullLayout,m=u&&g.newselection.mode==="immediate"&&i,b=g._zoomlayer,A=a.element.getBoundingClientRect(),_=a.plotinfo,x=Rde(_),T=r-A.left,E=t-A.top;g._calcInverseTransform(p);var M=U3.apply3DTransform(g._invTransform)(T,E);T=M[0],E=M[1];var k=g._invScaleX,F=g._invScaleY,O=T,I=E,R="M"+T+","+E,H=a.xaxes[0],X=a.yaxes[0],le=H._length,ae=X._length,$=e.altKey&&!(Rm(n)&&s),Z,J,ie,ue,De,Oe,Ee;kN(e,p,a),o&&(Z=Dde([[T,E]],H3.BENDPX));var Ze=b.selectAll("path.select-outline-"+_.id).data([1]),Ae=f?g.newshape:g.newselection;f&&(a.hasText=Ae.label.text||Ae.label.texttemplate);var ir=f&&!s?Ae.fillcolor:"rgba(0,0,0,0)",Ge=Ae.line.color||(i?Lm.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");Ze.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:f?Ae.opacity/2:1,"stroke-dasharray":bde(Ae.line.dash,Ae.line.width),"stroke-width":Ae.line.width+"px","shape-rendering":"crispEdges"}).call(Lm.stroke,Ge).call(Lm.fill,ir).attr("fill-rule","evenodd").classed("cursor-move",!!f).attr("transform",x).attr("d",R+"Z");var Qe=b.append("path").attr("class","zoombox-corners").style({fill:Lm.background,stroke:Lm.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(f&&a.hasText){var He=b.select(".label-temp");He.empty()&&(He=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Ve=g._uid+H3.SELECTID,ee=[],ge=V3(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ye=H._id,vr=X._id;RN(p,Ye,vr,ge);for(var rr=(p.layout||{}).selections||[],Cr=[],Lr=!1,_r=0;_r=0){p._fullLayout._deactivateShape(p);return}if(!f){var rr=g.clickmode;Dm.done(Ve).then(function(){if(Dm.clear(Ve),Ye===2){for(Ze.remove(),De=0;De-1&&EN(vr,p,a.xaxes,a.yaxes,a.subplot,a,Ze),rr==="event"&&Nm(p,void 0);xde.click(p,vr,_.id)}).catch(U3.error)}},a.doneFn=function(){Qe.remove(),Dm.done(Ve).then(function(){Dm.clear(Ve),!m&&ue&&a.selectionDefs&&(ue.subtract=$,a.selectionDefs.push(ue),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,ie)),(m||f)&&qm(a,m),a.doneFnCompleted&&a.doneFnCompleted(ee),u&&Nm(p,Ee)}).catch(U3.error)}}function EN(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,f=s.clickmode,u=f.indexOf("event")>-1,c=[],v,d,p,g,m,b,A,_,x,T;if(Bde(l)){kN(e,r,i),v=V3(r,t,a,n);var E=zde(l,v),M=E.pointNumbers.length>0;if(M?Gde(v,E):Ude(v)&&(A=_N(E))){for(o&&o.remove(),T=0;T=0}function Ide(e){return e._fullLayout._activeSelectionIndex>=0}function qm(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Ode(n)&&n._fullLayout._deactivateShape(n),Ide(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=Rm(t),s=FA(t);if(l||s){var f=o.selectAll(".select-outline-"+a.id);if(f&&n._fullLayout._outlining){var u;l&&(u=Mde(f,e)),u&&Fm.call("_guiRelayout",n,{shapes:u});var c;s&&!PA(e)&&(c=Sde(f,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Fm.call("_guiRelayout",n,{selections:c}).then(function(){r&&Ede(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function xN(e){return e._id}function V3(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(xN),o=t.map(xN),l,s,f;for(f=0;f0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Gde(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Pm(e,r,t){var a;for(a=0;a-1&&r;if(!o&&r){var Ye=wN(e,!0);if(Ye.length){var vr=Ye[0].xref,rr=Ye[0].yref;if(vr&&rr){var Cr=qN(Ye),Lr=PN([Zl(e,vr,"x"),Zl(e,rr,"y")]);Lr(ee,Cr)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:re&&Nm(e,ee),v._reselect=!1}if(!o&&v._deselect){var _r=v._deselect;l=_r.xref,s=_r.yref,Yde(l,s,u)||RN(e,l,s,a),re&&(ee.points.length?Nm(e,ee):IA(e)),v._deselect=!1}return{eventData:ee,selectionTesters:t}}function Vde(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";IN.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Im=P((iDe,BN)=>{"use strict";BN.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var zd=P((lDe,UN)=>{"use strict";var zN=BA(),GN=zi(),Y3=Ri(),Jde=$a().templatedArray,oDe=Im();UN.exports=Jde("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:GN({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:zN.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:zN.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Y3.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Y3.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Y3.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Y3.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:GN({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Bm=P((sDe,HN)=>{"use strict";HN.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var zA=P((fDe,VN)=>{"use strict";VN.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Qc=P((uDe,JN)=>{"use strict";var YN=tm().axisHoverFormat,$de=y0().texttemplateAttrs,Qde=y0().hovertemplateAttrs,WN=E0(),Kde=zi(),e1e=kc().dash,r1e=kc().pattern,t1e=Wa(),a1e=Bm(),W3=zn().extendFlat,n1e=zA();function jN(e){return{valType:"any",dflt:0,editType:"calc"}}function XN(e){return{valType:"any",editType:"calc"}}function ZN(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}JN.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:jN("x"),yperiod:jN("y"),xperiod0:XN("x0"),yperiod0:XN("y0"),xperiodalignment:ZN("x"),yperiodalignment:ZN("y"),xhoverformat:YN("x"),yhoverformat:YN("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:$de({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Qde({},{keys:a1e.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:W3({},e1e,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:n1e(!0),fillgradient:W3({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:r1e,marker:W3({symbol:{valType:"enumerated",values:t1e.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:W3({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},WN("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},WN("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Kde({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var GA=P((vDe,KN)=>{"use strict";var $N=zd(),QN=Qc().line,i1e=kc().dash,j3=zn().extendFlat,o1e=Cs().overrideAll,l1e=$a().templatedArray,cDe=Im();KN.exports=o1e(l1e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:j3({},$N.xref,{}),yref:j3({},$N.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:QN.color,width:j3({},QN.width,{min:1,dflt:1}),dash:j3({},i1e,{dflt:"dot"})}}),"arraydraw","from-root")});var aO=P((hDe,tO)=>{"use strict";var eO=Ur(),X3=mn(),s1e=gl(),f1e=GA(),rO=Jc();tO.exports=function(r,t){s1e(r,t,{name:"selections",handleItemDefaults:u1e});for(var a=t.selections,n=0;n{"use strict";nO.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var zm=P((pDe,sO)=>{"use strict";var c1e=Bt(),oO=Ur(),lO=Sn();sO.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=c1e.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,f=s.xaxis,u=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var fO=MA(),Gm=ON();uO.exports={moduleType:"component",name:"selections",layoutAttributes:GA(),supplyLayoutDefaults:aO(),supplyDrawNewSelectionDefaults:iO(),includeBasePlot:zm()("selections"),draw:fO.draw,drawOne:fO.drawOne,reselect:Gm.reselect,prepSelect:Gm.prepSelect,clearOutline:Gm.clearOutline,clearSelectionsCache:Gm.clearSelectionsCache,selectOnClick:Gm.selectOnClick}});var DO=P((yDe,LO)=>{"use strict";var WA=ha(),Jl=Ur(),cO=Jl.numberFormat,v1e=Es(),h1e=Tw(),Z3=Bt(),xO=Jl.strTranslate,d1e=po(),vO=va(),Kc=Wa(),p1e=Wc(),hO=mn(),m1e=Yc(),y1e=Ps(),_O=jc(),J3=_O.selectingOrDrawing,g1e=_O.freeMode,b1e=ho().FROM_TL,x1e=h3(),_1e=N3().redrawReglTraces,w1e=bi(),HA=Sn().getFromId,A1e=Gd().prepSelect,T1e=Gd().clearOutline,M1e=Gd().selectOnClick,UA=yA(),jA=Ri(),dO=jA.MINDRAG,Ro=jA.MINZOOM,pO=!0;function S1e(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,f=o+l==="nsew",u=(o+l).length===1,c,v,d,p,g,m,b,A,_,x,T,E,M,k,F,O,I,R,H,X,le,ae,$;t+=r.yaxis._shift;function Z(){if(c=r.xaxis,v=r.yaxis,_=c._length,x=v._length,b=c._offset,A=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var Fe=r.overlays,hr=0;hr=0){Or._fullLayout._deactivateShape(Or);return}var at=Or._fullLayout.clickmode;if(YA(Or),Fe===2&&!u&&Vr(),f)at.indexOf("select")>-1&&M1e(hr,Or,g,m,r.id,ue),at.indexOf("event")>-1&&p1e.click(Or,hr,r.id);else if(Fe===1&&u){var Yr=o?v:c,nt=o==="s"||l==="w"?0:1,vt=Yr._name+".range["+nt+"]",ot=E1e(Yr,nt),et="left",pr="middle";if(Yr.fixedrange)return;o?(pr=o==="n"?"top":"bottom",Yr.side==="right"&&(et="right")):l==="e"&&(et="right"),Or._context.showAxisRangeEntryBoxes&&WA.select(ie).call(d1e.makeEditable,{gd:Or,immediate:!0,background:Or._fullLayout.paper_bgcolor,text:String(ot),fill:Yr.tickfont?Yr.tickfont.color:"#444",horizontalAlign:et,verticalAlign:pr}).on("edit",function(Se){var Ie=Yr.d2r(Se);Ie!==void 0&&Z3.call("_guiRelayout",Or,vt,Ie)})}}y1e.init(ue);var Ee,Ze,Ae,ir,Ge,Qe,He,Ve,ee,ge;function re(Fe,hr,Or){var at=ie.getBoundingClientRect();Ee=hr-at.left,Ze=Or-at.top,e._fullLayout._calcInverseTransform(e);var Yr=Jl.apply3DTransform(e._fullLayout._invTransform)(Ee,Ze);Ee=Yr[0],Ze=Yr[1],Ae={l:Ee,r:Ee,w:0,t:Ze,b:Ze,h:0},ir=e._hmpixcount?e._hmlumcount/e._hmpixcount:v1e(e._fullLayout.plot_bgcolor).getLuminance(),Ge="M0,0H"+_+"V"+x+"H0V0",Qe=!1,He="xy",ge=!1,Ve=TO(s,ir,b,A,Ge),ee=MO(s,b,A)}function Ye(Fe,hr){if(e._transitioningWithDuration)return!1;var Or=Math.max(0,Math.min(_,ae*Fe+Ee)),at=Math.max(0,Math.min(x,$*hr+Ze)),Yr=Math.abs(Or-Ee),nt=Math.abs(at-Ze);Ae.l=Math.min(Ee,Or),Ae.r=Math.max(Ee,Or),Ae.t=Math.min(Ze,at),Ae.b=Math.max(Ze,at);function vt(){He="",Ae.r=Ae.l,Ae.t=Ae.b,ee.attr("d","M0,0Z")}if(T.isSubplotConstrained)Yr>Ro||nt>Ro?(He="xy",Yr/_>nt/x?(nt=Yr*x/_,Ze>at?Ae.t=Ze-nt:Ae.b=Ze+nt):(Yr=nt*_/x,Ee>Or?Ae.l=Ee-Yr:Ae.r=Ee+Yr),ee.attr("d",$3(Ae))):vt();else if(E.isSubplotConstrained)if(Yr>Ro||nt>Ro){He="xy";var ot=Math.min(Ae.l/_,(x-Ae.b)/x),et=Math.max(Ae.r/_,(x-Ae.t)/x);Ae.l=ot*_,Ae.r=et*_,Ae.b=(1-ot)*x,Ae.t=(1-et)*x,ee.attr("d",$3(Ae))}else vt();else!k||nt0){var Se;if(E.isSubplotConstrained||!M&&k.length===1){for(Se=0;Se1&&(vt.maxallowed!==void 0&&O===(vt.range[0]1&&(ot.maxallowed!==void 0&&I===(ot.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function C1e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function TO(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",xO(t,a)).attr("d",n+"Z")}function MO(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:vO.background,stroke:vO.defaultLine,"stroke-width":1,opacity:0}).attr("transform",xO(r,t)).attr("d","M0,0Z")}function SO(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),EO(e,r,n,i)}function EO(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function YA(e){WA.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function kO(e){pO&&e.data&&e._context.showTips&&(Jl.notifier(Jl._(e,"Double-click to zoom back out"),"long"),pO=!1)}function L1e(e,r){return"M"+(e.l-.5)+","+(r-Ro-.5)+"h-3v"+(2*Ro+1)+"h3ZM"+(e.r+.5)+","+(r-Ro-.5)+"h3v"+(2*Ro+1)+"h-3Z"}function D1e(e,r){return"M"+(r-Ro-.5)+","+(e.t-.5)+"v-3h"+(2*Ro+1)+"v3ZM"+(r-Ro-.5)+","+(e.b+.5)+"v3h"+(2*Ro+1)+"v-3Z"}function $3(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ro)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function gO(e,r,t,a,n){for(var i=!1,o={},l={},s,f,u,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var F1e=ha(),Q3=Wc(),R1e=Ps(),q1e=Yc(),Is=DO().makeDragBox,Ai=Ri().DRAGGERSIZE;K3.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){F1e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var f=Is(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");f.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Q3.hover(r,v,i)},Q3.hover(r,v,i),r._fullLayout._lasthover=f,r._fullLayout._hoversubplot=i},f.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,R1e.unhover(r,v))},r._context.showAxisDragHandles&&(Is(r,o,l._offset-Ai,s._offset-Ai,Ai,Ai,"n","w"),Is(r,o,l._offset+l._length,s._offset-Ai,Ai,Ai,"n","e"),Is(r,o,l._offset-Ai,s._offset+s._length,Ai,Ai,"s","w"),Is(r,o,l._offset+l._length,s._offset+s._length,Ai,Ai,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var u=l._mainLinePosition;l.side==="top"&&(u-=Ai),Is(r,o,l._offset+l._length*.1,u,l._length*.8,Ai,"","ew"),Is(r,o,l._offset,u,l._length*.1,Ai,"","w"),Is(r,o,l._offset+l._length*.9,u,l._length*.1,Ai,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Ai),Is(r,o,c,s._offset+s._length*.1,Ai,s._length*.8,"ns",""),Is(r,o,c,s._offset+s._length*.9,Ai,s._length*.1,"s",""),Is(r,o,c,s._offset,Ai,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Q3.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Q3.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},K3.updateFx(r)}};K3.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";q1e(r._draggers,t)}});var qO=P((bDe,RO)=>{"use strict";var FO=Bt();RO.exports=function(r){for(var t=FO.layoutArrayContainers,a=FO.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var P1e=Mc(),ZA=zg(),Um=m0(),N1e=H5().sorterAsc,JA=Bt();Hm.containerArrayMatch=qO();var O1e=Hm.isAddVal=function(r){return r==="add"||P1e(r)},PO=Hm.isRemoveVal=function(r){return r===null||r==="remove"};Hm.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=JA.getComponentMethod(o,"supplyLayoutDefaults"),s=JA.getComponentMethod(o,"draw"),f=JA.getComponentMethod(o,"drawOne"),u=n.replot||n.recalc||l===ZA||s===ZA,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Um.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(PO(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Um.warn("Unrecognized full array edit value",o,d),!0;return u?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(N1e),g=t.get(),m=g||[],b=i(v,o).get(),A=[],_=-1,x=m.length,T,E,M,k,F,O,I,R;for(T=0;Tm.length-(I?0:1)){Um.warn("index out of range",o,M);continue}if(O!==void 0)F.length>1&&Um.warn("Insertion & removal are incompatible with edits to the same index.",o,M),PO(O)?A.push(M):I?(O==="add"&&(O={}),m.splice(M,0,O),b&&b.splice(M,0,{})):Um.warn("Unrecognized full object edit value",o,M,O),_===-1&&(_=M);else for(E=0;E=0;T--)m.splice(A[T],1),b&&b.splice(A[T],1);if(m.length?g||t.set(m):t.set(null),u)return!1;if(l(c,v),f!==ZA){var H;if(_===-1)H=p;else{for(x=Math.max(m.length,x),H=[],T=0;T=_));T++)H.push(M);for(T=_;T{"use strict";var zO=ga(),_De=q5(),GO=Bt(),Ko=Ur(),Vm=bi(),UO=Sn(),HO=va(),Ym=UO.cleanId,I1e=UO.getFromTrace,$A=GO.traceIs;Bs.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ko.log("Clearing previous rejected promises from queue."),e._promises=[]};Bs.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Vm.subplotsRegistry.cartesian||{}).attrRegex,n=(Vm.subplotsRegistry.polar||{}).attrRegex,i=(Vm.subplotsRegistry.ternary||{}).attrRegex,o=(Vm.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),HO.clean(e),e.template&&e.template.layout&&Bs.cleanLayout(e.template.layout),e};function Ud(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=Ym(t,a,!0))}Bs.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}Bs.hasParent=function(e,r){for(var t=BO(r);t;){if(t in e)return!0;t=BO(t)}return!1};var G1e=["x","y","z"];Bs.clearAxisTypes=function(e,r,t){for(var a=0;a{"use strict";var ab=ha(),U1e=ga(),H1e=t4(),dt=Ur(),en=dt.nestedProperty,e6=Zp(),qo=AC(),$l=Bt(),ub=cd(),zt=bi(),xo=mn(),V1e=Aw(),Y1e=Ul(),QA=Wa(),W1e=va(),j1e=XA().initInteractions,X1e=Ic(),Z1e=Gd().clearOutline,ZO=p0().dfltConfig,rb=NO(),ai=VO(),za=N3(),ev=Cs(),J1e=Ri().AX_NAME_PATTERN,KA=0,YO=5;function $1e(e,r,t,a){var n;if(e=dt.getGraphDiv(e),e6.init(e),dt.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=e6.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!dt.isPlotDiv(e)&&dt.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return da.addFrames(e,n)}$O(e,a),t||(t={}),ab.select(e).classed("js-plotly-plot",!0),QA.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(ai.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=ai.cleanLayout(t)),zt.supplyDefaults(e);var f=e._fullLayout,u=f._has("cartesian");f._replotting=!0,(s||f._shouldCreateBgLayer)&&(xpe(e),f._shouldCreateBgLayer&&delete f._shouldCreateBgLayer),QA.initGradients(e),QA.initPatterns(e),s&&xo.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&zt.doCalcdata(e);for(var v=0;v=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function QO(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),ib(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&ib(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function tpe(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&u=0&&u0&&typeof k.parts[I]!="string";)I--;var R=k.parts[I],H=k.parts[I-1]+"."+R,X=k.parts.slice(0,I).join("."),le=en(e.layout,X).get(),ae=en(a,X).get(),$=k.get();if(F!==void 0){b[M]=F,A[M]=R==="reverse"?F:Pu($);var Z=ub.getLayoutValObject(a,k.parts);if(Z&&Z.impliedEdits&&F!==null)for(var J in Z.impliedEdits)_(dt.relativeAttr(M,J),Z.impliedEdits[J]);if(["width","height"].indexOf(M)!==-1)if(F){_("autosize",null);var ie=M==="height"?"width":"height";_(ie,a[ie])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",F?null:a.width),_("height",F?null:a.height);else if(H.match(lI))E(H),en(a,X+"._inputRange").set(null);else if(H.match(sI)){E(H),en(a,X+"._inputRange").set(null);var ue=en(a,X).get();ue._inputDomain&&(ue._input.domain=ue._inputDomain.slice())}else H.match(ope)&&en(a,X+"._inputDomain").set(null);if(R==="type"){T=le;var De=ae.type==="linear"&&F==="log",Oe=ae.type==="log"&&F==="linear";if(De||Oe){if(!T||!T.range)_(X+".autorange",!0);else if(ae.autorange)De&&(T.range=T.range[1]>T.range[0]?[1,2]:[2,1]);else{var Ee=T.range[0],Ze=T.range[1];De?(Ee<=0&&Ze<=0&&_(X+".autorange",!0),Ee<=0?Ee=Ze/1e6:Ze<=0&&(Ze=Ee/1e6),_(X+".range[0]",Math.log(Ee)/Math.LN10),_(X+".range[1]",Math.log(Ze)/Math.LN10)):(_(X+".range[0]",Math.pow(10,Ee)),_(X+".range[1]",Math.pow(10,Ze)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[k.parts[0]]&&k.parts[1]==="radialaxis"&&delete a[k.parts[0]]._subplot.viewInitial["radialaxis.range"],$l.getComponentMethod("annotations","convertCoords")(e,ae,F,_),$l.getComponentMethod("images","convertCoords")(e,ae,F,_)}else _(X+".autorange",!0),_(X+".range",null);en(a,X+"._inputRange").set(null)}else if(R.match(J1e)){var Ae=en(a,M).get(),ir=(F||{}).type;(!ir||ir==="-")&&(ir="linear"),$l.getComponentMethod("annotations","convertCoords")(e,Ae,ir,_),$l.getComponentMethod("images","convertCoords")(e,Ae,ir,_)}var Ge=rb.containerArrayMatch(M);if(Ge){u=Ge.array,c=Ge.index;var Qe=Ge.property,He=Z||{editType:"calc"};c!==""&&Qe===""&&(rb.isAddVal(F)?A[M]=null:rb.isRemoveVal(F)?A[M]=(en(t,u).get()||[])[c]:dt.warn("unrecognized full object value",r)),ev.update(m,He),f[u]||(f[u]={});var Ve=f[u][c];Ve||(Ve=f[u][c]={}),Ve[Qe]=F,delete r[M]}else R==="reverse"?(le.range?le.range.reverse():(_(X+".autorange",!0),le.range=[1,0]),ae.autorange?m.calc=!0:m.plot=!0):(M==="dragmode"&&(F===!1&&$!==!1||F!==!1&&$===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(F==="lasso"||F==="select")&&!($==="lasso"||$==="select")?m.plot=!0:Z?ev.update(m,Z):m.calc=!0,k.set(F))}}for(u in f){var ee=rb.applyContainerArrayChanges(e,i(t,u),f[u],m,i);ee||(m.plot=!0)}for(var ge in x){T=xo.getFromId(e,ge);var re=T&&T._constraintGroup;if(re){m.calc=!0;for(var Ye in re)x[Ye]||(xo.getFromId(e,Ye)._constraintShrinkable=!0)}}(uI(e)||r.height||r.width)&&(m.plot=!0);var vr=a.shapes;for(c=0;c1;)if(a.pop(),t=en(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function fpe(e,r){for(var t=0;t[le,e._ev.listeners(le)]);i=da.newPlot(e,r,t,a).then(()=>{for(let[le,ae]of X)ae.forEach($=>e.on(le,$));return da.react(e,r,t,a)})}else{e.data=r||[],ai.cleanData(e.data),e.layout=t||{},ai.cleanLayout(e.layout),cpe(e.data,e.layout,l,s),zt.supplyDefaults(e,{skipUpdateCalc:!0});var v=e._fullData,d=e._fullLayout,p=d.datarevision===void 0,g=d.transition,m=dpe(e,s,d,p,g),b=m.newDataRevision,A=hpe(e,l,v,p,g,b);if(uI(e)&&(m.layoutReplot=!0),A.calc||m.calc){e.calcdata=void 0;for(var _=Object.getOwnPropertyNames(d),x=0;x<_.length;x++){var T=_[x],E=T.substring(0,5);if(E==="xaxis"||E==="yaxis"){var M=d[T]._emptyCategories;M&&M()}}}else zt.supplyDefaultsUpdateCalc(e.calcdata,v);var k=[];if(n&&(e._transitionData={},zt.createTransitionData(e),k.push(o)),d.transition&&(A.anim||m.anim))m.ticks&&k.push(za.doTicksRelayout),zt.doCalcdata(e),za.doAutoRangeAndConstraints(e),k.push(function(){return zt.transitionFromReact(e,A,m,s)});else if(A.fullReplot||m.layoutReplot)e._fullLayout._skipDefaults=!0,k.push(da._doPlot);else{for(var F in m.arrays){var O=m.arrays[F];if(O.length){var I=$l.getComponentMethod(F,"drawOne");if(I!==dt.noop)for(var R=0;R(u||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function hpe(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=ev.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,f;function u(d){var p=ub.getTraceValObject(f,d);return!f._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:u,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s=n.length?n[0]:n[f]:n}function l(f){return Array.isArray(i)?f>=i.length?i[0]:i[f]:i}function s(f,u){var c=0;return function(){if(f&&++c===u)return f()}}return new Promise(function(f,u){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var R=a._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(R){if(R.length!==0){for(var H=0;Ha._timeToNext&&p()};R()}var m=0;function b(R){return Array.isArray(n)?m>=n.length?R.transitionOpts=n[m]:R.transitionOpts=n[0]:R.transitionOpts=n,m++,R}var A,_,x=[],T=r==null,E=Array.isArray(r),M=!T&&!E&&dt.isPlainObject(r);if(M)x.push({type:"object",data:b(dt.extendFlat({},r))});else if(T||["string","number"].indexOf(typeof r)!==-1)for(A=0;A0&&OO)&&I.push(_);x=I}}x.length>0?v(x):(e.emit("plotly_animated"),f())})}function mpe(e,r,t){if(e=dt.getGraphDiv(e),r==null)return Promise.resolve();if(!dt.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var f=l.length+r.length*2,u=[],c={};for(a=r.length-1;a>=0;a--)if(dt.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,g=s[d]||c[d];d&&p&&typeof p=="number"&&g&&KAk.index?-1:M.index=0;a--){if(n=u[a].frame,typeof n.name=="number"&&dt.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=zt.modifyFrames,s=zt.modifyFrames,f=[e,o],u=[e,i];return qo&&qo.add(e,l,f,s,u),zt.modifyFrames(e,i)}function gpe(e){e=dt.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return zt.cleanPlot([],{},t,r),zt.purge(e),e6.purge(e),r._container&&r._container.remove(),delete e._context,e}function bpe(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!dt.equalDomRects(t,r._lastBBox)){var a=r._invTransform=dt.inverseTransformMatrix(dt.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function xpe(e){var r=ab.select(e),t=e._fullLayout;if(t._calcInverseTransform=bpe,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};ab.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=dt.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(X1e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}da.animate=ppe;da.addFrames=mpe;da.deleteFrames=ype;da.addTraces=aI;da.deleteTraces=nI;da.extendTraces=rI;da.moveTraces=r6;da.prependTraces=tI;da.newPlot=rpe;da._doPlot=$1e;da.purge=gpe;da.react=vpe;da.redraw=epe;da.relayout=Wm;da.restyle=ob;da.setPlotConfig=Q1e;da.update=sb;da._guiRelayout=a6(Wm);da._guiRestyle=a6(ob);da._guiUpdate=a6(sb);da._storeDirectGUIEdit=ipe});var Y0=P(qf=>{"use strict";var _pe=Bt();qf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};qf.getRedrawFunc=function(e){return function(){_pe.getComponentMethod("colorbar","draw")(e)}};qf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};qf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var cI=window.URL||window.webkitURL;qf.createObjectURL=function(e){return cI.createObjectURL(e)};qf.revokeObjectURL=function(e){return cI.revokeObjectURL(e)};qf.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=wpe(window.atob(e));return new window.Blob([t],{type:"image/"+r})};qf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function wpe(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var o6=ha(),MDe=Ur(),Ape=Wa(),Tpe=va(),SDe=Ic(),i6=/"/g,Xm="TOBESTRIPPED",Mpe=new RegExp('("'+Xm+")|("+Xm+'")',"g");function Spe(e){var r=o6.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function Epe(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}vI.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,f;i.insert("rect",":first-child").call(Ape.setRect,0,0,l,s).call(Tpe.fill,n.paper_bgcolor);var u=n._basePlotModules||[];for(f=0;f{"use strict";var kpe=Ur(),Cpe=s2().EventEmitter,Zm=Y0();function Lpe(e){var r=e.emitter||new Cpe,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,f=e.scale||1,u=e.width||300,c=e.height||150,v=f*u,d=f*c,p=s.getContext("2d",{willReadFrequently:!0}),g=new i,m,b;l==="svg"||kpe.isSafari()?b=Zm.encodeSVG(o):(m=Zm.createBlob(o,"svg"),b=Zm.createObjectURL(m)),s.width=v,s.height=d,g.onload=function(){var A;switch(m=null,Zm.revokeObjectURL(b),l!=="svg"&&p.drawImage(g,0,0,v,d),l){case"jpeg":A=s.toDataURL("image/jpeg");break;case"png":A=s.toDataURL("image/png");break;case"webp":A=s.toDataURL("image/webp");break;case"svg":A=b;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return r.emit("error",_)}a(A),e.promise||r.emit("success",A)},g.onerror=function(A){if(m=null,Zm.revokeObjectURL(b),n(A),!e.promise)return r.emit("error",A)},g.src=b});return e.promise?t:r}hI.exports=Lpe});var s6=P((CDe,mI)=>{"use strict";var dI=ga(),pI=n6(),Dpe=bi(),Pf=Ur(),Jm=Y0(),Fpe=vb(),Rpe=hb(),qpe=Tg().version,l6={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Ppe(e,r){r=r||{};var t,a,n,i;Pf.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Pf.getGraphDiv(e),t=Pf.extendDeep([],e.data),a=Pf.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(E){return!(E in r)||Pf.validate(r[E],l6[E])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Pf.join2(l6.format.values,", "," or ")+".");var l={};function s(E,M){return Pf.coerce(r,l,l6,E,M)}var f=s("format"),u=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),g=document.createElement("div");g.style.position="absolute",g.style.left="-5000px",document.body.appendChild(g);var m=Pf.extendFlat({},a);u?m.width=u:r.width===null&&dI(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&dI(i.height)&&(m.height=i.height);var b=Pf.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),A=Jm.getRedrawFunc(g);function _(){return new Promise(function(E){setTimeout(E,Jm.getDelay(g._fullLayout))})}function x(){return new Promise(function(E,M){var k=Fpe(g,f,v),F=g._fullLayout.width,O=g._fullLayout.height;function I(){pI.purge(g),document.body.removeChild(g)}if(f==="full-json"){var R=Dpe.graphJson(g,!1,"keepdata","object",!0,!0);return R.version=qpe,R=JSON.stringify(R),I(),E(p?R:Jm.encodeJSON(R))}if(I(),f==="svg")return E(p?k:Jm.encodeSVG(k));var H=document.createElement("canvas");H.id=Pf.randstr(),Rpe({format:f,width:F,height:O,scale:v,canvas:H,svg:k,promise:!0}).then(E).catch(M)})}function T(E){return p?E.replace(Jm.IMAGE_URL_PREFIX,""):E}return new Promise(function(E,M){pI.newPlot(g,t,m,b).then(A).then(_).then(x).then(function(k){E(T(k))}).catch(function(k){M(k)})})}mI.exports=Ppe});var bI=P((LDe,gI)=>{"use strict";var Ql=Ur(),Npe=bi(),Ope=cd(),Ipe=p0().dfltConfig,zs=Ql.isPlainObject,j0=Array.isArray,f6=Ql.isArrayOrTypedArray;gI.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=Ope.get(),n=[],i={_context:Ql.extendFlat({},Ipe)},o,l;j0(r)?(i.data=Ql.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Ti("array","data"))),zs(t)?(i.layout=Ql.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Ti("object","layout"))),Npe.supplyDefaults(i);for(var s=i._fullData,f=o.length,u=0;uc.length&&a.push(Ti("unused",n,f.concat(c.length)));var b=c.length,A=Array.isArray(m);A&&(b=Math.min(b,m.length));var _,x,T,E,M;if(v.dimensions===2)for(x=0;xc[x].length&&a.push(Ti("unused",n,f.concat(x,c[x].length)));var k=c[x].length;for(_=0;_<(A?Math.min(k,m[x].length):k);_++)T=A?m[x][_]:m,E=u[x][_],M=c[x][_],Ql.validate(E,T)?M!==E&&M!==+E&&a.push(Ti("dynamic",n,f.concat(x,_),E,M)):a.push(Ti("value",n,f.concat(x,_),E))}else a.push(Ti("array",n,f.concat(x),u[x]));else for(x=0;x{"use strict";var Ype=Ur(),pb=Y0();function Wpe(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,f;if(n)return s=pb.createBlob(e,t),f=pb.createObjectURL(s),a.href=f,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),pb.revokeObjectURL(f),s=null,o(r);if(Ype.isSafari()){var u=t==="svg"?",":";base64,";return pb.octetStream(u+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}xI.exports=Wpe});var u6=P((RDe,AI)=>{"use strict";var wI=Ur(),jpe=s6(),Xpe=_I(),FDe=Y0();function Zpe(e,r){var t;return wI.isPlainObject(e)||(t=wI.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=jpe(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),Xpe(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}AI.exports=Zpe});var kI=P(c6=>{"use strict";var el=Ur(),rl=el.isPlainObject,TI=cd(),MI=bi(),Jpe=ks(),SI=$a(),EI=p0().dfltConfig;c6.makeTemplate=function(e){e=el.isPlainObject(e)?e:el.getGraphDiv(e),e=el.extendDeep({_context:EI},{data:e.data,layout:e.layout}),MI.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};$m(d,p,Qpe.bind(null,d));var g=el.coerce(d,{},Jpe,"type"),m=a.data[g];m||(m=a.data[g]=[]),m.push(p)}),$m(t,a.layout,$pe.bind(null,t)),delete a.layout.template;var n=t.template;if(rl(n)){var i=n.layout,o,l,s,f,u,c;rl(i)&&mb(i,a.layout);var v=n.data;if(rl(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(u=a.data[l],c=u.length,f=s.length,o=0;ob?o.push({code:"unused",traceType:d,templateCount:m,dataCount:b}):b>m&&o.push({code:"reused",traceType:d,templateCount:m,dataCount:b})}}function A(_,x){for(var T in _)if(T.charAt(0)!=="_"){var E=_[T],M=Kl(_,T,x);rl(E)?(Array.isArray(_)&&E._template===!1&&E.templateitemname&&o.push({code:"missing",path:M,templateitemname:E.templateitemname}),A(E,M)):Array.isArray(E)&&Kpe(E)&&A(E,M)}}if(A({data:s,layout:l},""),o.length)return o.map(eme)};function Kpe(e){for(var r=0;r{"use strict";var ci=n6();gn._doPlot=ci._doPlot;gn.newPlot=ci.newPlot;gn.restyle=ci.restyle;gn.relayout=ci.relayout;gn.redraw=ci.redraw;gn.update=ci.update;gn._guiRestyle=ci._guiRestyle;gn._guiRelayout=ci._guiRelayout;gn._guiUpdate=ci._guiUpdate;gn._storeDirectGUIEdit=ci._storeDirectGUIEdit;gn.react=ci.react;gn.extendTraces=ci.extendTraces;gn.prependTraces=ci.prependTraces;gn.addTraces=ci.addTraces;gn.deleteTraces=ci.deleteTraces;gn.moveTraces=ci.moveTraces;gn.purge=ci.purge;gn.addFrames=ci.addFrames;gn.deleteFrames=ci.deleteFrames;gn.animate=ci.animate;gn.setPlotConfig=ci.setPlotConfig;var rme=zp().getGraphDiv,tme=C3().eraseActiveShape;gn.deleteActiveShape=function(e){return tme(rme(e))};gn.toImage=s6();gn.validate=bI();gn.downloadImage=u6();var CI=kI();gn.makeTemplate=CI.makeTemplate;gn.validateTemplate=CI.validateTemplate});var h6=P((NDe,DI)=>{"use strict";var v6=Ur(),ame=Bt();DI.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=ame.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var f=v6.minRowLength(i);o?l=Math.min(f,v6.minRowLength(o)):(l=f,n("y0"),n("dy"))}else{if(!o)return 0;l=v6.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var d6=P((ODe,qI)=>{"use strict";var FI=Ur().dateTick0,nme=Qn(),ime=nme.ONEWEEK;function RI(e,r){return e%ime===0?FI(r,1):FI(r,0)}qI.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",RI(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",RI(l,t.ycalendar)),n("yperiodalignment"))}}});var OI=P((IDe,NI)=>{"use strict";var PI=["orientation","groupnorm","stackgaps"];NI.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var f=s[o],u=!1;f?f.traces.push(t):(f=s[o]={traceIndices:[],traces:[t]},u=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var II=va(),BI=Rs().hasColorscale,zI=pd(),ome=qi();GI.exports=function(r,t,a,n,i,o){var l=ome.isBubble(r),s=(r.line||{}).color,f;if(o=o||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),BI(r,"marker")&&zI(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?f=s:l?f=II.background:f=II.defaultLine,i("marker.line.color",f),BI(r,"marker.line")&&zI(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0)),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var u=i("marker.gradient.type");u!=="none"&&i("marker.gradient.color")}}});var p6=P((zDe,UI)=>{"use strict";var lme=Ur().isArrayOrTypedArray,sme=Rs().hasColorscale,fme=pd();UI.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),sme(r,"line"))fme(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(lme(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var VI=P((GDe,HI)=>{"use strict";HI.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var m6=P((UDe,YI)=>{"use strict";var ume=Ur();YI.exports=function(e,r,t,a,n){n=n||{},a("textposition"),ume.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var y6=P((HDe,jI)=>{"use strict";var bb=va(),WI=Ur().isArrayOrTypedArray;function cme(e){for(var r=bb.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var XI=Ur(),vme=Bt(),hme=Qc(),dme=Bm(),Hd=qi(),pme=h6(),mme=d6(),yme=OI(),gme=gb(),bme=p6(),ZI=VI(),xme=m6(),_me=y6(),wme=Ur().coercePattern;JI.exports=function(r,t,a,n){function i(d,p){return XI.coerce(r,t,hme,d,p)}var o=pme(r,t,n,i);if(o||(t.visible=!1),!!t.visible){mme(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=yme(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var Ame=wm().getAxisGroup;QI.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=Ame(a,l)+o,f=a._alignmentOpts||{},u=n("alignmentgroup"),c=f[s];c||(c=f[s]={});var v=c[u];v?v.traces.push(t):v=c[u]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,g=p[d];t._offsetIndex=0,(i!=="group"||d)&&(g||(g=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=g.offsetIndex)}});var g6=P((WDe,eB)=>{"use strict";var Tme=Ur(),Mme=KI(),Sme=Qc();eB.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return Tme.coerce(n._input,n,Sme,v)}if(t.scattermode==="group")for(i=0;i=0;u--){var c=r[u];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var tB=P((jDe,rB)=>{"use strict";var Eme=Ur(),kme=h2();rB.exports=function(e,r){function t(n,i){return Eme.coerce(e,r,kme,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var b6=P((XDe,nB)=>{"use strict";var Cme=ga(),aB=Ur(),Lme=aB.dateTime2ms,xb=aB.incrementMonth,Dme=Qn(),Fme=Dme.ONEAVGMONTH;nB.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(Cme(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var f=t.calendar,u=i==="start",c=i==="end",v=r[a+"period0"],d=Lme(v,f)||0,p=[],g=[],m=[],b=n.length,A=0;A_;)E=xb(E,-l,f);for(;E<=_;)E=xb(E,l,f);T=xb(E,-l,f)}else{for(x=Math.round((_-d)/o),E=d+x*o;E>_;)E-=o;for(;E<=_;)E+=o;T=E-o}p[A]=u?T:c?E:(T+E)/2,g[A]=T,m[A]=E}return{vals:p,starts:g,ends:m}}});var Qm=P((ZDe,oB)=>{"use strict";var x6=Rs().hasColorscale,_6=O4(),iB=qi();oB.exports=function(r,t){iB.hasLines(t)&&x6(t,"line")&&_6(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),iB.hasMarkers(t)&&(x6(t,"marker")&&_6(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),x6(t,"marker.line")&&_6(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var w6=P((JDe,lB)=>{"use strict";var Nn=Ur();lB.exports=function(r,t){for(var a=0;a{"use strict";var sB=Ur();fB.exports=function(r,t){sB.isArrayOrTypedArray(t.selectedpoints)&&sB.tagSelected(r,t)}});var Vd=P((QDe,yB)=>{"use strict";var cB=ga(),T6=Ur(),Km=mn(),vB=b6(),A6=Qn().BADNUM,M6=qi(),Rme=Qm(),qme=w6(),Pme=uB();function Nme(e,r){var t=e._fullLayout,a=r._xA=Km.getFromId(e,r.xaxis||"x","x"),n=r._yA=Km.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=vB(r,a,"x",i),s=vB(r,n,"y",o),f=l.vals,u=s.vals,c=r._length,v=new Array(c),d=r.ids,p=S6(r,t,a,n),g=!1,m,b,A,_,x,T;pB(t,r);var E="x",M="y",k;if(p)T6.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(M="s",k="x"):(E="s",k="y"),x=p.stackgaps==="interpolate";else{var F=dB(r,c);hB(e,r,a,n,f,u,F)}var O=!!r.xperiodalignment,I=!!r.yperiodalignment;for(b=0;bb&&v[_].gap;)_--;for(T=v[_].s,A=v.length-1;A>_;A--)v[A].s=T;for(;b<_;)if(b++,v[b].gap){for(A=b+1;v[A].gap;)A++;for(var le=v[b-1][k],ae=v[b-1].s,$=(v[A].s-ae)/(v[A][k]-le);b{"use strict";gB.exports=_b;var Ome=Ur().distinctVals;function _b(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var es=ga(),rv=Ur().isArrayOrTypedArray,Yd=Qn().BADNUM,Ime=Bt(),ey=mn(),Bme=wm().getAxisGroup,wb=bB();function zme(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],f=0;fs+o||!es(l))}for(var u=0;u{"use strict";var MB=Vd(),SB=TB().setGroupPositions;function Qme(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],f=0;fF[u]&&u{"use strict";var eye=Wa(),FB=Qn(),ry=FB.BADNUM,RB=FB.LOG_CLIP,CB=RB+.5,LB=RB-.5,Ab=Ur(),rye=Ab.segmentsIntersect,DB=Ab.constrain,F6=Bm();qB.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,f=i._length,u=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,g=p==="linear",m=a.fill&&a.fill!=="none",b=[],A=F6.minTolerance,_=r.length,x=new Array(_),T=0,E,M,k,F,O,I,R,H,X,le,ae,$,Z,J,ie,ue;function De(pr){var Se=r[pr];if(!Se)return!1;var Ie=t.linearized?n.l2p(Se.x):n.c2p(Se.x),yr=t.linearized?i.l2p(Se.y):i.c2p(Se.y);if(Ie===ry){if(o&&(Ie=n.c2p(Se.x,!0)),Ie===ry)return!1;l&&yr===ry&&(Ie*=Math.abs(n._m*f*(n._m>0?CB:LB)/(i._m*s*(i._m>0?CB:LB)))),Ie*=1e3}if(yr===ry){if(l&&(yr=i.c2p(Se.y,!0)),yr===ry)return!1;yr*=1e3}return[Ie,yr]}function Oe(pr,Se,Ie,yr){var cr=Ie-pr,xt=yr-Se,At=.5-pr,gt=.5-Se,Nt=cr*cr+xt*xt,ta=cr*At+xt*gt;if(ta>0&&ta1||Math.abs(At.y-Ie[0][1])>1)&&(At=[At.x,At.y],yr&&ir(At,pr)He||pr[1]ee)return[DB(pr[0],Qe,He),DB(pr[1],Ve,ee)]}function rt(pr,Se){if(pr[0]===Se[0]&&(pr[0]===Qe||pr[0]===He)||pr[1]===Se[1]&&(pr[1]===Ve||pr[1]===ee))return!0}function Jr(pr,Se){var Ie=[],yr=Pr(pr),cr=Pr(Se);return yr&&cr&&rt(yr,cr)||(yr&&Ie.push(yr),cr&&Ie.push(cr)),Ie}function wr(pr,Se,Ie){return function(yr,cr){var xt=Pr(yr),At=Pr(cr),gt=[];if(xt&&At&&rt(xt,At))return gt;xt&>.push(xt),At&>.push(At);var Nt=2*Ab.constrain((yr[pr]+cr[pr])/2,Se,Ie)-((xt||yr)[pr]+(At||cr)[pr]);if(Nt){var ta;xt&&At?ta=Nt>0==xt[pr]>At[pr]?xt:At:ta=xt||At,ta[pr]+=Nt}return gt}}var Hr;p==="linear"||p==="spline"?Hr=_r:p==="hv"||p==="vh"?Hr=Jr:p==="hvh"?Hr=wr(0,Qe,He):p==="vhv"&&(Hr=wr(1,Ve,ee));function Vr(pr,Se){var Ie=Se[0]-pr[0],yr=(Se[1]-pr[1])/Ie,cr=(pr[1]*Se[0]-Se[1]*pr[0])/Ie;return cr>0?[yr>0?Qe:He,ee]:[yr>0?He:Qe,Ve]}function Pe(pr){var Se=pr[0],Ie=pr[1],yr=Se===x[T-1][0],cr=Ie===x[T-1][1];if(!(yr&&cr))if(T>1){var xt=Se===x[T-2][0],At=Ie===x[T-2][1];yr&&(Se===Qe||Se===He)&&xt?At?T--:x[T-1]=pr:cr&&(Ie===Ve||Ie===ee)&&At?xt?T--:x[T-1]=pr:x[T++]=pr}else x[T++]=pr}function sr(pr){x[T-1][0]!==pr[0]&&x[T-1][1]!==pr[1]&&Pe([vr,rr]),Pe(pr),Cr=null,vr=rr=0}var lt=Ab.isArrayOrTypedArray(c);function Et(pr){if(pr&&u&&(pr.i=E,pr.d=r,pr.trace=a,pr.marker=lt?c[pr.i]:c,pr.backoff=u),Ee=pr[0]/s,Ze=pr[1]/f,re=pr[0]He?He:0,Ye=pr[1]ee?ee:0,re||Ye){if(!T)x[T++]=[re||pr[0],Ye||pr[1]];else if(Cr){var Se=Hr(Cr,pr);Se.length>1&&(sr(Se[0]),x[T++]=Se[1])}else Lr=Hr(x[T-1],pr)[0],x[T++]=Lr;var Ie=x[T-1];re&&Ye&&(Ie[0]!==re||Ie[1]!==Ye)?(Cr&&(vr!==re&&rr!==Ye?Pe(vr&&rr?Vr(Cr,pr):[vr||re,rr||Ye]):vr&&rr&&Pe([vr,rr])),Pe([re,Ye])):vr-re&&rr-Ye&&Pe([re||vr,Ye||rr]),Cr=pr,vr=re,rr=Ye}else Cr&&sr(Hr(Cr,pr)[0]),x[T++]=pr}for(E=0;E<_;E++)if(M=De(E),!!M){for(T=0,Cr=null,Et(M),E++;E<_;E++){if(F=De(E),!F){if(v)continue;break}if(!g||!t.simplify){Et(F);continue}var wt=De(E+1);if(le=ir(F,M),!(!(m&&(T===0||T===_-1))&&leAe(I,wt))break;k=I,Z=X[0]*H[0]+X[1]*H[1],Z>ae?(ae=Z,F=I,R=!1):Z<$&&($=Z,O=I,R=!0)}if(R?(Et(F),k!==O&&Et(O)):(O!==M&&Et(O),k!==F&&Et(F)),Et(k),E>=r.length||!I)break;Et(I),M=I}}Cr&&Pe([vr||Cr[0],rr||Cr[1]]),b.push(x.slice(0,T))}var Fe=p.slice(p.length-1);if(u&&Fe!=="h"&&Fe!=="v"){for(var hr=!1,Or=-1,at=[],Yr=0;Yr{"use strict";var NB={tonextx:1,tonexty:1,tonext:1};OB.exports=function(r,t,a){var n,i,o,l,s,f={},u=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var Gs=ha(),tye=Bt(),ty=Ur(),jd=ty.ensureSingle,BB=ty.identity,On=Wa(),Xd=qi(),aye=PB(),nye=R6(),Tb=EA().tester;zB.exports=function(r,t,a,n,i,o){var l,s,f=!i,u=!!i&&i.duration>0,c=nye(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),iye(r,l,t),u){o&&(s=o());var v=Gs.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){IB(r,p,t,d,c,this,i)})})}else l.each(function(d,p){IB(r,p,t,d,c,this,i)});f&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function iye(e,r,t){r.each(function(a){var n=jd(Gs.select(this),"g","fills");On.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,BB);l.enter().append("g"),l.exit().each(function(s){i[s]=null}).remove(),l.order().each(function(s){i[s]=jd(Gs.select(this),"path","js-fill")})})}function IB(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;oye(e,r,t,a,n);var f=!!o&&o.duration>0;function u(wr){return f?wr.transition():wr}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,g=Gs.select(i),m=jd(g,"g","errorbars"),b=jd(g,"g","lines"),A=jd(g,"g","points"),_=jd(g,"g","text");if(tye.getComponentMethod("errorbars","plot")(e,m,t,o),d.visible!==!0)return;u(g).style("opacity",d.opacity);var x,T,E=d.fill.charAt(d.fill.length-1);E!=="x"&&E!=="y"&&(E="");var M,k;E==="y"?(M=1,k=v.c2p(0,!0)):E==="x"&&(M=0,k=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=g;var F="",O=[],I=d._prevtrace,R=null,H=null;I&&(F=I._prevRevpath||"",T=I._nextFill,O=I._ownPolygons,R=I._fillsegments,H=I._fillElement);var X,le,ae="",$="",Z,J,ie,ue,De,Oe,Ee=[];d._polygons=[];var Ze=[],Ae=[],ir=ty.noop;if(x=d._ownFill,Xd.hasLines(d)||d.fill!=="none"){T&&T.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(Z=On.steps(p.shape),J=On.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?Z=J=function(wr){var Hr=wr[wr.length-1];return wr.length>1&&wr[0][0]===Hr[0]&&wr[0][1]===Hr[1]?On.smoothclosed(wr.slice(1),p.smoothing):On.smoothopen(wr,p.smoothing)}:Z=J=function(wr){return"M"+wr.join("L")},ie=function(wr){return J(wr.reverse())},Ae=aye(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),Ze=new Array(Ae.length);var Ge=0;for(s=0;s=l[0]&&g.x<=l[1]&&g.y>=s[0]&&g.y<=s[1]}),v=Math.ceil(c.length/u),d=0;n.forEach(function(g,m){var b=g[0].trace;Xd.hasMarkers(b)&&b.marker.maxdisplayed>0&&m{"use strict";UB.exports={container:"marker",min:"cmin",max:"cmax"}});var q6=P((oFe,HB)=>{"use strict";var Sb=mn();HB.exports=function(r,t,a){var n={},i={_fullLayout:a},o=Sb.getFromTrace(i,t,"x"),l=Sb.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var f=r.orig_y;return f===void 0&&(f=r.y),n.xLabel=Sb.tickText(o,o.c2l(s),!0).text,n.yLabel=Sb.tickText(l,l.c2l(f),!0).text,n}});var I6=P((lFe,VB)=>{"use strict";var P6=ha(),Zd=Wa(),lye=Bt();function sye(e){var r=P6.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=P6.select(this),n=t.trace||t[0].trace;N6(a,n,e)}),r.selectAll("g.text").each(function(t){var a=P6.select(this),n=t.trace||t[0].trace;O6(a,n,e)}),r.selectAll("g.trace path.js-line").call(Zd.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Zd.fillGroupStyle,e,!1),lye.getComponentMethod("errorbars","style")(r)}function N6(e,r,t){Zd.pointStyle(e.selectAll("path.point"),r,t)}function O6(e,r,t){Zd.textPointStyle(e.selectAll("text"),r,t)}function fye(e,r,t){var a=r[0].trace;a.selectedpoints?(Zd.selectedPointStyle(t.selectAll("path.point"),a),Zd.selectedTextStyle(t.selectAll("text"),a)):(N6(t,a,e),O6(t,a,e))}VB.exports={style:sye,stylePoints:N6,styleText:O6,styleOnSelect:fye}});var B6=P((sFe,YB)=>{"use strict";var Jd=va(),uye=qi();YB.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&Jd.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&Jd.opacity(i)?i:o&&Jd.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?Jd.opacity(n)<.3?Jd.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&Jd.opacity(a)&&uye.hasLines(r)&&r.line.width?a:r.fillcolor)}});var XB=P((fFe,jB)=>{"use strict";var Eb=Ur(),WB=Wc(),cye=Bt(),vye=B6(),z6=va(),hye=Eb.fillText;jB.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,f=l.c2p(t),u=s.c2p(a),c=[f,u],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,g=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var m=function($){if(p){var Z=l.c2p($.xStart),J=l.c2p($.xEnd);return f>=Math.min(Z,J)&&f<=Math.max(Z,J)?0:1/0}var ie=Math.max(3,$.mrc||0),ue=1-1/ie,De=Math.abs(l.c2p($.x)-f);return De=Math.min(Z,J)&&u<=Math.max(Z,J)?0:1/0}var ie=Math.max(3,$.mrc||0),ue=1-1/ie,De=Math.abs(s.c2p($.y)-u);return DeEe!=ee>=Ee&&(Qe=ir[Ae-1][0],He=ir[Ae][0],ee-Ve&&(Ge=Qe+(He-Qe)*(Ee-Ve)/(ee-Ve),ie=Math.min(ie,Ge),ue=Math.max(ue,Ge)));return ie=Math.max(ie,0),ue=Math.min(ue,l._length),{x0:ie,x1:ue,y0:Ee,y1:Ee}}if(v.indexOf("fills")!==-1&&o._fillElement){var X=R(o._fillElement)&&!R(o._fillExclusionElement);if(X){var le=H(o._polygons);le===null&&(le={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var ae=z6.defaultLine;return z6.opacity(o.fillcolor)?ae=o.fillcolor:z6.opacity((o.line||{}).color)&&(ae=o.line.color),Eb.extendFlat(r,{distance:r.maxHoverDistance,x0:le.x0,x1:le.x1,y0:le.y0,y1:le.y1,color:ae,hovertemplate:!1}),delete r.index,o.text&&!Eb.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var $B=P((uFe,JB)=>{"use strict";var ZB=qi();JB.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,f,u,c,v=!ZB.hasMarkers(l)&&!ZB.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";QB.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var az=P((vFe,tz)=>{"use strict";var ay=Bt().traceIs,G6=aw();tz.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(dye(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function dye(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=pye(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!ay(i,"cartesian")||ay(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,rz(i,a)){var f=ez(i),u=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(rz(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function ez(e){return{v:"x",h:"y"}[e.orientation||"v"]}function rz(e,r){var t=ez(e),a=ay(e,"box-violin"),n=ay(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var iz=P((hFe,nz)=>{"use strict";var mye=Vo().isTypedArraySpec;function yye(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||mye(i),l;o&&(l="array");var s=a("categoryorder",l),f;s==="array"&&(f=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=f.slice():(f=yye(t,n).sort(),s==="category ascending"?t._initialCategories=f:s==="category descending"&&(t._initialCategories=f.reverse()))}}});var sz=P((dFe,lz)=>{"use strict";var oz=Es().mix,gye=wf(),bye=Ur();lz.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(k,F){return bye.coerce2(r,t,n.attributes,k,F)}var l=o("linecolor",i),s=o("linewidth"),f=a("showline",n.showLine||!!l||!!s);f||(delete t.linecolor,delete t.linewidth);var u=oz(i,n.bgColor,n.blend||gye.lightFraction).toRgbString(),c=o("gridcolor",u),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var g=oz(t.gridcolor,n.bgColor,67).toRgbString(),m=o("minor.gridcolor",g),b=o("minor.gridwidth",t.gridwidth||1),A=o("minor.griddash",t.griddash||"solid"),_=a("minor.showgrid",!!m||!!b||!!A);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=o("zerolinelayer"),T=o("zerolinecolor",i),E=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!T||!!E);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var H6=P((pFe,dz)=>{"use strict";var fz=ga(),xye=Bt(),ny=Ur(),_ye=$a(),wye=gl(),U6=Ul(),uz=S4(),cz=k4(),Aye=D4(),Tye=F4(),Mye=iz(),Sye=sz(),Eye=Aw(),vz=O2(),kb=Ri().WEEKDAY_PATTERN,kye=Ri().HOUR_PATTERN;dz.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},f=a("visible",!n.visibleDflt),u=t._template||{},c=t.type||u.type||"-",v;if(c==="date"){var d=xye.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=ny.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),vz(t,i),Eye(r,t,a,n),Mye(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var g=a("color"),m=g!==U6.color.dflt?g:l.color,b=s.label||i._dfltTitle[o];if(Tye(r,t,a,c,n),!f)return t;a("title.text",b),ny.coerceFont(a,"title.font",l,{overrideDflt:{size:ny.bigFont(l.size),color:m}}),uz(r,t,a,c);var A=n.hasMinor;if(A&&(_ye.newContainer(t,"minor"),uz(r,t,a,c,{isMinor:!0})),Aye(r,t,a,c,n),cz(r,t,a,n),A){var _=n.isMinor;n.isMinor=!0,cz(r,t,a,n),n.isMinor=_}Sye(r,t,a,{dfltColor:g,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:A,attributes:U6}),A&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var T=a("showdividers");T&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(wye(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Cye}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var E=0;E=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=hz(i[l]),s){o=kb;break}}var f=a("pattern",o);if(f===kb)for(l=0;l<2;l++)s=hz(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(f)for(l=0;l<2;l++)switch(s=i[l],f){case kb:if(!fz(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case kye:if(!fz(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var u=t.range;if(u[0]u[1]){r.enabled=!1;return}}else if(i[0]>u[0]&&i[1]{"use strict";var Dye=ga(),Cb=Ur();pz.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,f=n.overlayingDomain,u,c,v,d,p,g;s&&(c=s._domains[l][s._axisMap[t._id]],u=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],u=u||(Dye(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,g=!1;var m=Cb.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:u}},"anchor"),b=Cb.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(m==="free"){if(l==="y"){var A=a("autoshift");A&&(d=b==="left"?f[0]:f[1],g=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",g);var _=!1;if(o.length&&(_=Cb.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),Cb.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var Tz=P((yFe,Az)=>{"use strict";var X0=Ur(),mz=va(),Fye=Cu().isUnifiedHover,Rye=Jw(),yz=$a(),qye=ed(),gz=Ul(),Pye=az(),bz=H6(),Nye=wm(),xz=V6(),W6=Sn(),Nf=W6.id2name,_z=W6.name2id,Oye=Ri().AX_ID_PATTERN,wz=Bt(),Lb=wz.traceIs,Y6=wz.getComponentMethod;function Db(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}Az.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},f={},u={},c={},v={},d={},p={},g,m;for(g=0;g{"use strict";var Iye=ha(),Mz=Bt(),Fb=Ur(),Tl=Wa(),Rb=mn();Sz.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Rb.redrawComponents(r);return}function o(m){var b=m.xaxis,A=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(Tl.setTranslate,0,0).call(Tl.setScale,1,1),m.plot.call(Tl.setTranslate,b._offset,A._offset).call(Tl.setScale,1,1);var _=m.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Tl.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Tl.setTextPointsScale,1,1),_.call(Tl.hideOutsideRangePoints,m)}function l(m,b){var A=m.plotinfo,_=A.xaxis,x=A.yaxis,T=_._length,E=x._length,M=!!m.xr1,k=!!m.yr1,F=[];if(M){var O=Fb.simpleMap(m.xr0,_.r2l),I=Fb.simpleMap(m.xr1,_.r2l),R=O[1]-O[0],H=I[1]-I[0];F[0]=(O[0]*(1-b)+b*I[0]-O[0])/(O[1]-O[0])*T,F[2]=T*(1-b+b*H/R),_.range[0]=_.l2r(O[0]*(1-b)+b*I[0]),_.range[1]=_.l2r(O[1]*(1-b)+b*I[1])}else F[0]=0,F[2]=T;if(k){var X=Fb.simpleMap(m.yr0,x.r2l),le=Fb.simpleMap(m.yr1,x.r2l),ae=X[1]-X[0],$=le[1]-le[0];F[1]=(X[1]*(1-b)+b*le[1]-X[1])/(X[0]-X[1])*E,F[3]=E*(1-b+b*$/ae),x.range[0]=_.l2r(X[0]*(1-b)+b*le[0]),x.range[1]=x.l2r(X[1]*(1-b)+b*le[1])}else F[1]=0,F[3]=E;Rb.drawOne(r,_,{skipTitle:!0}),Rb.drawOne(r,x,{skipTitle:!0}),Rb.redrawComponents(r,[_._id,x._id]);var Z=M?T/F[2]:1,J=k?E/F[3]:1,ie=M?F[0]:0,ue=k?F[1]:0,De=M?F[0]/F[2]*T:0,Oe=k?F[1]/F[3]*E:0,Ee=_._offset-De,Ze=x._offset-Oe;A.clipRect.call(Tl.setTranslate,ie,ue).call(Tl.setScale,1/Z,1/J),A.plot.call(Tl.setTranslate,Ee,Ze).call(Tl.setScale,Z,J),Tl.setPointGroupScale(A.zoomScalePts,1/Z,1/J),Tl.setTextPointsScale(A.zoomScaleTxt,1/Z,1/J)}var s;n&&(s=n());function f(){for(var m={},b=0;ba.duration?(f(),d=window.cancelAnimationFrame(g)):d=window.requestAnimationFrame(g)}return c=Date.now(),d=window.requestAnimationFrame(g),Promise.resolve()}});var iy=P(no=>{"use strict";var Pb=ha(),kz=Bt(),Z0=Ur(),Bye=bi(),zye=Wa(),Cz=Qp().getModuleCalcData,tv=Sn(),Us=Ri(),Gye=Ic(),Fa=Z0.ensureSingle;function qb(e,r,t){return Z0.ensureSingle(e,r,t,function(a){a.datum(t)})}var J0=Us.zindexSeparator;no.name="cartesian";no.attr=["xaxis","yaxis"];no.idRoot=["x","y"];no.idRegex=Us.idRegex;no.attrRegex=Us.attrRegex;no.attributes=KB();no.layoutAttributes=Ul();no.supplyLayoutDefaults=Tz();no.transitionAxes=Ez();no.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},f,u,c;for(f=0;f0){var d=v.id;if(d.indexOf(J0)!==-1)continue;d+=J0+(f+1),v=Z0.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],g,m=0;m1&&(T+=J0+x),_.push(l+T),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||u)if(f)r.xlines=Fa(a,"path","xlines-above"),r.ylines=Fa(a,"path","ylines-above"),r.xaxislayer=Fa(a,"g","xaxislayer-above"),r.yaxislayer=Fa(a,"g","yaxislayer-above");else{if(!o){var v=Fa(a,"g","layer-subplot");r.shapelayer=Fa(v,"g","shapelayer"),r.imagelayer=Fa(v,"g","imagelayer"),c&&u?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=Fa(a,"g","minor-gridlayer"),r.gridlayer=Fa(a,"g","gridlayer"),r.zerolinelayer=Fa(a,"g","zerolinelayer"));var d=Fa(a,"g","layer-between");r.shapelayerBetween=Fa(d,"g","shapelayer"),r.imagelayerBetween=Fa(d,"g","imagelayer"),Fa(a,"path","xlines-below"),Fa(a,"path","ylines-below"),r.overlinesBelow=Fa(a,"g","overlines-below"),Fa(a,"g","xaxislayer-below"),Fa(a,"g","yaxislayer-below"),r.overaxesBelow=Fa(a,"g","overaxes-below")}r.overplot=Fa(a,"g","overplot"),r.plot=Fa(r.overplot,"g",n),c&&u?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=Fa(a,"g","zerolinelayer-above"),o||(r.xlines=Fa(a,"path","xlines-above"),r.ylines=Fa(a,"path","ylines-above"),r.overlinesAbove=Fa(a,"g","overlines-above"),Fa(a,"g","xaxislayer-above"),Fa(a,"g","yaxislayer-above"),r.overaxesAbove=Fa(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,g=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,Fa(c.overlinesBelow,"path",g),Fa(c.overlinesBelow,"path",m),Fa(c.overaxesBelow,"g",g),Fa(c.overaxesBelow,"g",m),r.plot=Fa(c.overplot,"g",n),Fa(c.overlinesAbove,"path",g),Fa(c.overlinesAbove,"path",m),Fa(c.overaxesAbove,"g",g),Fa(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+l).select("."+g),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+l).select("."+g),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}o||(f||(qb(r.minorGridlayer,"g",r.xaxis._id),qb(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(tv.idSort),qb(r.gridlayer,"g",r.xaxis._id),qb(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(tv.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function Fz(e,r){if(e){var t={};e.each(function(s){var f=s[0],u=Pb.select(this);u.remove(),Rz(f,r),t[f]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Nb=qi();qz.exports={hasLines:Nb.hasLines,hasMarkers:Nb.hasMarkers,hasText:Nb.hasText,isBubble:Nb.isBubble,attributes:Qc(),layoutAttributes:h2(),supplyDefaults:$I(),crossTraceDefaults:g6(),supplyLayoutDefaults:tB(),calc:Vd().calc,crossTraceCalc:kB(),arraysToCalcdata:w6(),plot:GB(),colorbar:Mb(),formatLabels:q6(),style:I6().style,styleOnSelect:I6().styleOnSelect,hoverPoints:XB(),selectPoints:$B(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:iy(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Iz=P((_Fe,Oz)=>{"use strict";var Hye=ha(),Vye=va(),Nz=BA(),j6=Ur(),Yye=j6.strScale,Wye=j6.strRotate,jye=j6.strTranslate;Oz.exports=function(r,t,a){var n=r.node(),i=Nz[a.arrowhead||0],o=Nz[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),f=t.indexOf("start")>=0,u=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,g,m;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,A=d.y-p.y;if(g=Math.atan2(A,b),m=g+Math.PI,c&&v&&c+v>Math.sqrt(b*b+A*A)){X();return}if(c){if(c*c>b*b+A*A){X();return}var _=c*Math.cos(g),x=c*Math.sin(g);p.x+=_,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>b*b+A*A){X();return}var T=v*Math.cos(g),E=v*Math.sin(g);d.x-=T,d.y-=E,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),k="";if(M{"use strict";var Bz=ha(),X6=Bt(),Xye=bi(),nv=Ur(),Z6=nv.strTranslate,ly=mn(),$0=va(),Nu=Wa(),zz=Wc(),J6=po(),$6=Yc(),oy=Ps(),Zye=$a().arrayEditor,Jye=Iz();Hz.exports={draw:$ye,drawOne:Gz,drawRaw:Uz};function $ye(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?cr="right":cr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[cr]}for(var Ve=!1,ee=["x","y"],ge=0;ge1)&&(vr===Ye?(wt=rr.r2fraction(r["a"+re]),(wt<0||wt>1)&&(Ve=!0)):Ve=!0),Hr=rr._offset+rr.r2p(r[re]),sr=.5}else{var Fe=Et==="domain";re==="x"?(Pe=r[re],Hr=Fe?rr._offset+rr._length*Pe:Hr=l.l+l.w*Pe):(Pe=1-r[re],Hr=Fe?rr._offset+rr._length*Pe:Hr=l.t+l.h*Pe),sr=r.showarrow?.5:Pe}if(r.showarrow){wr.head=Hr;var hr=r["a"+re];if(lt=Lr*He(.5,r.xanchor)-_r*He(.5,r.yanchor),vr===Ye){var Or=ly.getRefType(vr);Or==="domain"?(re==="y"&&(hr=1-hr),wr.tail=rr._offset+rr._length*hr):Or==="paper"?re==="y"?(hr=1-hr,wr.tail=l.t+l.h*hr):wr.tail=l.l+l.w*hr:wr.tail=rr._offset+rr.r2p(hr),Vr=lt}else wr.tail=Hr+hr,Vr=lt+hr;wr.text=wr.tail+lt;var at=o[re==="x"?"width":"height"];if(Ye==="paper"&&(wr.head=nv.constrain(wr.head,1,at-1)),vr==="pixel"){var Yr=-Math.max(wr.tail-3,wr.text),nt=Math.min(wr.tail+3,wr.text)-at;Yr>0?(wr.tail+=Yr,wr.text+=Yr):nt>0&&(wr.tail-=nt,wr.text-=nt)}wr.tail+=Jr,wr.head+=Jr}else lt=Pr*He(sr,rt),Vr=lt,wr.text=Hr+lt;wr.text+=Jr,lt+=Jr,Vr+=Jr,r["_"+re+"padplus"]=Pr/2+Vr,r["_"+re+"padminus"]=Pr/2-Vr,r["_"+re+"size"]=Pr,r["_"+re+"shift"]=lt}if(Ve){M.remove();return}var vt=0,ot=0;if(r.align!=="left"&&(vt=(Ae-Ee)*(r.align==="center"?.5:1)),r.valign!=="top"&&(ot=(ir-Ze)*(r.valign==="middle"?.5:1)),De)ue.select("svg").attr({x:O+vt-1,y:O+ot}).call(Nu.setClipUrl,R?g:null,e);else{var et=O+ot-Oe.top,pr=O+vt-Oe.left;ae.call(J6.positionText,pr,et).call(Nu.setClipUrl,R?g:null,e)}H.select("rect").call(Nu.setRect,O,O,Ae,ir),I.call(Nu.setRect,k/2,k/2,Ge-k,Qe-k),M.call(Nu.setTranslate,Math.round(m.x.text-Ge/2),Math.round(m.y.text-Qe/2)),_.attr({transform:"rotate("+b+","+m.x.text+","+m.y.text+")"});var Se=function(yr,cr){A.selectAll(".annotation-arrow-g").remove();var xt=m.x.head,At=m.y.head,gt=m.x.tail+yr,Nt=m.y.tail+cr,ta=m.x.text+yr,ka=m.y.text+cr,Ta=nv.rotationXYMatrix(b,ta,ka),Rn=nv.apply2DTransform(Ta),bn=nv.apply2DTransform2(Ta),ja=+I.attr("width"),cn=+I.attr("height"),jn=ta-.5*ja,vn=jn+ja,wn=ka-.5*cn,Mi=wn+cn,Pt=[[jn,wn,jn,Mi],[jn,Mi,vn,Mi],[vn,Mi,vn,wn],[vn,wn,jn,wn]].map(bn);if(!Pt.reduce(function(Ra,Xn){return Ra^!!nv.segmentsIntersect(xt,At,xt+1e6,At+1e6,Xn[0],Xn[1],Xn[2],Xn[3])},!1)){Pt.forEach(function(Ra){var Xn=nv.segmentsIntersect(gt,Nt,xt,At,Ra[0],Ra[1],Ra[2],Ra[3]);Xn&&(gt=Xn.x,Nt=Xn.y)});var Ca=r.arrowwidth,ia=r.arrowcolor,Va=r.arrowside,hn=A.append("g").style({opacity:$0.opacity(ia)}).classed("annotation-arrow-g",!0),La=hn.append("path").attr("d","M"+gt+","+Nt+"L"+xt+","+At).style("stroke-width",Ca+"px").call($0.stroke,$0.rgb(ia));if(Jye(La,Va,r),s.annotationPosition&&La.node().parentNode&&!a){var Ba=xt,Ga=At;if(r.standoff){var tn=Math.sqrt(Math.pow(xt-gt,2)+Math.pow(At-Nt,2));Ba+=r.standoff*(gt-xt)/tn,Ga+=r.standoff*(Nt-At)/tn}var Wi=hn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(gt-Ba)+","+(Nt-Ga),transform:Z6(Ba,Ga)}).style("stroke-width",Ca+6+"px").call($0.stroke,"rgba(0,0,0,0)").call($0.fill,"rgba(0,0,0,0)"),ji,qn;oy.init({element:Wi.node(),gd:e,prepFn:function(){var Ra=Nu.getTranslate(M);ji=Ra.x,qn=Ra.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(Ra,Xn){var ss=Rn(ji,qn),fs=ss[0]+Ra,kl=ss[1]+Xn;M.call(Nu.setTranslate,fs,kl),d("x",av(n,Ra,"x",l,r)),d("y",av(i,Xn,"y",l,r)),r.axref===r.xref&&d("ax",av(n,Ra,"ax",l,r)),r.ayref===r.yref&&d("ay",av(i,Xn,"ay",l,r)),hn.attr("transform",Z6(Ra,Xn)),_.attr({transform:"rotate("+b+","+fs+","+kl+")"})},doneFn:function(){X6.call("_guiRelayout",e,p());var Ra=document.querySelector(".js-notes-box-panel");Ra&&Ra.redraw(Ra.selectedObj)}})}}};if(r.showarrow&&Se(0,0),x){var Ie;oy.init({element:M.node(),gd:e,prepFn:function(){Ie=_.attr("transform")},moveFn:function(yr,cr){var xt="pointer";if(r.showarrow)r.axref===r.xref?d("ax",av(n,yr,"ax",l,r)):d("ax",r.ax+yr),r.ayref===r.yref?d("ay",av(i,cr,"ay",l.w,r)):d("ay",r.ay+cr),Se(yr,cr);else{if(a)return;var At,gt;if(n)At=av(n,yr,"x",l,r);else{var Nt=r._xsize/l.w,ta=r.x+(r._xshift-r.xshift)/l.w-Nt/2;At=oy.align(ta+yr/l.w,Nt,0,1,r.xanchor)}if(i)gt=av(i,cr,"y",l,r);else{var ka=r._ysize/l.h,Ta=r.y-(r._yshift+r.yshift)/l.h-ka/2;gt=oy.align(Ta-cr/l.h,ka,0,1,r.yanchor)}d("x",At),d("y",gt),(!n||!i)&&(xt=oy.getCursor(n?.5:At,i?.5:gt,r.xanchor,r.yanchor))}_.attr({transform:Z6(yr,cr)+Ie}),$6(M,xt)},clickFn:function(yr,cr){r.captureevents&&e.emit("plotly_clickannotation",E(cr))},doneFn:function(){$6(M),X6.call("_guiRelayout",e,p());var yr=document.querySelector(".js-notes-box-panel");yr&&yr.redraw(yr.selectedObj)}})}}s.annotationText?ae.call(J6.makeEditable,{delegate:M,gd:e}).call($).on("edit",function(J){r.text=J,this.call($),d("text",J),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),X6.call("_guiRelayout",e,p())}):ae.call($)}});var Zz=P((AFe,Xz)=>{"use strict";var Vz=Ur(),Qye=Bt(),Yz=$a().arrayEditor;Xz.exports={hasClickToShow:Kye,onClick:ege};function Kye(e,r){var t=jz(e,r);return t.on.length>0||t.explicitOff.length>0}function ege(e,r){var t=jz(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var Q6=Ur(),$d=va();Jz.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=$d.opacity(o);n("borderpad");var s=n("borderwidth"),f=n("showarrow");n("text",f?" ":a._dfltTitle.annotation),n("textangle"),Q6.coerceFont(n,"font",a.font),n("width"),n("align");var u=n("height");if(u&&n("valign"),f){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:$d.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),g=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",g.bgcolor||($d.opacity(i)?$d.rgb(i):$d.defaultLine)),b=n("hoverlabel.bordercolor",g.bordercolor||$d.contrast(m)),A=Q6.extendFlat({},g.font);A.color||(A.color=b),Q6.coerceFont(n,"hoverlabel.font",A)}n("captureevents",!!p)}});var Qz=P((MFe,$z)=>{"use strict";var eT=Ur(),Q0=mn(),rge=gl(),tge=K6(),age=zd();$z.exports=function(r,t){rge(r,t,{name:"annotations",handleItemDefaults:nge})};function nge(e,r,t){function a(_,x){return eT.coerce(e,r,age,_,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){tge(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],f={_fullLayout:t},u=0;u<2;u++){var c=l[u],v=Q0.coerceRef(e,r,f,c,"","paper");if(v!=="paper"){var d=Q0.getFromId(f,v);d._annIndices.push(r._index)}if(Q0.coercePosition(r,f,a,v,c,.5),o){var p="a"+c,g=Q0.coerceRef(e,r,f,p,"pixel",["pixel","paper"]);g!=="pixel"&&g!==v&&(g=r[p]="pixel");var m=g==="pixel"?s[u]:.4;Q0.coercePosition(r,f,a,g,p,m)}a(c+"anchor"),a(c+"shift")}if(eT.noneOrAll(e,r,["x","y"]),o&&eT.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),A=a("yclick");r._xclick=b===void 0?r.x:Q0.cleanPosition(b,f,r.xref),r._yclick=A===void 0?r.y:Q0.cleanPosition(A,f,r.yref)}}}});var rG=P((SFe,eG)=>{"use strict";var rT=Ur(),K0=mn(),ige=Ob().draw;eG.exports=function(r){var t=r._fullLayout,a=rT.filterVisible(t.annotations);if(a.length&&r._fullData.length)return rT.syncOrAsync([ige,oge],r)};function oge(e){var r=e._fullLayout;rT.filterVisible(r.annotations).forEach(function(t){var a=K0.getFromId(e,t.xref),n=K0.getFromId(e,t.yref),i=K0.getRefType(t.xref),o=K0.getRefType(t.yref);t._extremes={},i==="range"&&Kz(t,a),o==="range"&&Kz(t,n)})}function Kz(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],f=e["_"+a+"padminus"],u={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+u,d=c-u,p=3*e.startarrowsize*e.arrowwidth||0,g=p+u,m=p-u,b;if(l===o){var A=K0.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=K0.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,g),ppadminus:Math.max(f,m)});b={min:[A.min[0],_.min[0]],max:[A.max[0],_.max[0]]}}else g=i?g+i:g,m=i?m-i:m,b=K0.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,g),ppadminus:Math.max(f,d,m)});e._extremes[t]=b}});var aG=P((EFe,tG)=>{"use strict";var lge=ga(),sge=qg();tG.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),f,u;function c(d){var p=f[d],g=null;i?g=sge(p,t.range):g=Math.pow(10,p),lge(g)||(g=null),n(u+d,g)}for(var v=0;v{"use strict";var tT=Ob(),nG=Zz();iG.exports={moduleType:"component",name:"annotations",layoutAttributes:zd(),supplyLayoutDefaults:Qz(),includeBasePlot:zm()("annotations"),calcAutorange:rG(),draw:tT.draw,drawOne:tT.drawOne,drawRaw:tT.drawRaw,hasClickToShow:nG.hasClickToShow,onClick:nG.onClick,convertCoords:aG()}});var Ib=P((CFe,lG)=>{"use strict";var rn=zd(),fge=Cs().overrideAll,uge=$a().templatedArray;lG.exports=fge(uge("annotation",{visible:rn.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:rn.xanchor,xshift:rn.xshift,yanchor:rn.yanchor,yshift:rn.yshift,text:rn.text,textangle:rn.textangle,font:rn.font,width:rn.width,height:rn.height,opacity:rn.opacity,align:rn.align,valign:rn.valign,bgcolor:rn.bgcolor,bordercolor:rn.bordercolor,borderpad:rn.borderpad,borderwidth:rn.borderwidth,showarrow:rn.showarrow,arrowcolor:rn.arrowcolor,arrowhead:rn.arrowhead,startarrowhead:rn.startarrowhead,arrowside:rn.arrowside,arrowsize:rn.arrowsize,startarrowsize:rn.startarrowsize,arrowwidth:rn.arrowwidth,standoff:rn.standoff,startstandoff:rn.startstandoff,hovertext:rn.hovertext,hoverlabel:rn.hoverlabel,captureevents:rn.captureevents}),"calc","from-root")});var fG=P((LFe,sG)=>{"use strict";var aT=Ur(),cge=mn(),vge=gl(),hge=K6(),dge=Ib();sG.exports=function(r,t,a){vge(r,t,{name:"annotations",handleItemDefaults:pge,fullLayout:a.fullLayout})};function pge(e,r,t,a){function n(l,s){return aT.coerce(e,r,dge,l,s)}function i(l){var s=l+"axis",f={_fullLayout:{}};return f._fullLayout[s]=t[s],cge.coercePosition(r,f,n,l,l,.5)}var o=n("visible");o&&(hge(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),aT.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),aT.noneOrAll(e,r,["ax","ay"])))}});var hG=P((DFe,vG)=>{"use strict";var uG=Ur(),cG=mn();vG.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function nT(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function yge(e,r){var t=nT(e.projection,nT(e.view,nT(e.model,[r[0],r[1],r[2],1])));return t}dG.exports=yge});var yG=P((RFe,mG)=>{"use strict";var gge=Ob().drawRaw,bge=pG(),xge=["x","y","z"];mG.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=bge(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),gge(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var xG=P((qFe,bG)=>{"use strict";var _ge=Bt(),gG=Ur();bG.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Ib()}}},layoutAttributes:Ib(),handleDefaults:fG(),includeBasePlot:wge,convert:hG(),draw:yG()};function wge(e,r){var t=_ge.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var _G=zd(),wG=zi(),AG=Qc().line,Age=kc().dash,Hs=zn().extendFlat,Tge=$a().templatedArray,PFe=Im(),Qd=ks(),Mge=y0().shapeTexttemplateAttrs,Sge=Vg();TG.exports=Tge("shape",{visible:Hs({},Qd.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Hs({},Qd.legend,{editType:"calc+arraydraw"}),legendgroup:Hs({},Qd.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Hs({},Qd.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:wG({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Hs({},Qd.legendrank,{editType:"calc+arraydraw"}),legendwidth:Hs({},Qd.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Hs({},_G.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Hs({},_G.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Hs({},AG.color,{editType:"arraydraw"}),width:Hs({},AG.width,{editType:"calc+arraydraw"}),dash:Hs({},Age,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Mge({},{keys:Object.keys(Sge)}),font:wG({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var EG=P((OFe,SG)=>{"use strict";var sy=Ur(),Kd=mn(),Ege=gl(),kge=iT(),MG=Jc();SG.exports=function(r,t){Ege(r,t,{name:"shapes",handleItemDefaults:Lge})};function Cge(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Lge(e,r,t){function a(J,ie){return sy.coerce(e,r,kge,J,ie)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),sy.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),f=s!=="path";f&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var u=a("line.width");u&&(a("line.color"),a("line.dash"));for(var c=a("xsizemode"),v=a("ysizemode"),d=["x","y"],p=0;p<2;p++){var g=d[p],m=g+"anchor",b=g==="x"?c:v,A={_fullLayout:t},_,x,T,E=Kd.coerceRef(e,r,A,g,void 0,"paper"),M=Kd.getRefType(E);if(M==="range"?(_=Kd.getFromId(A,E),_._shapeIndices.push(r._index),T=MG.rangeToShapePosition(_),x=MG.shapePositionToRange(_),(_.type==="category"||_.type==="multicategory")&&(a(g+"0shift"),a(g+"1shift"))):x=T=sy.identity,f){var k=.25,F=.75,O=g+"0",I=g+"1",R=e[O],H=e[I];e[O]=x(e[O],!0),e[I]=x(e[I],!0),b==="pixel"?(a(O,0),a(I,10)):(Kd.coercePosition(r,A,a,E,O,k),Kd.coercePosition(r,A,a,E,I,F)),r[O]=T(r[O]),r[I]=T(r[I]),e[O]=R,e[I]=H}if(b==="pixel"){var X=e[m];e[m]=x(e[m],!0),Kd.coercePosition(r,A,a,E,m,.25),r[m]=T(r[m]),e[m]=X}}f&&sy.noneOrAll(e,r,["x0","x1","y0","y1"]);var le=s==="line",ae,$;if(f&&(ae=a("label.texttemplate")),ae||($=a("label.text")),$||ae){a("label.textangle");var Z=a("label.textposition",le?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Cge(le,Z)),a("label.padding"),sy.coerceFont(a,"label.font",t.font)}}}});var LG=P((IFe,CG)=>{"use strict";var Dge=va(),kG=Ur();function Fge(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}CG.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),kG.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Dge.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(l||s){a("newshape.label.textangle");var f=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Fge(o,f)),a("newshape.label.padding"),kG.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var PG=P((BFe,qG)=>{"use strict";var oT=Ur(),e1=mn(),r1=gm(),FG=Jc();qG.exports=function(r){var t=r._fullLayout,a=oT.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?f+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function DG(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,f=n?e.r2c:e.d2c,u=r[a+"sizemode"]==="scaled";if(u?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[f(i)+l,f(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(r1.segmentRE),p,g,m,b,A;for(e.type==="date"&&(f=FG.decodeDate(f)),p=0;pv&&(v=A)));if(v>=c)return[c,v]}}});var IG=P((zFe,OG)=>{"use strict";var NG=C3();OG.exports={moduleType:"component",name:"shapes",layoutAttributes:iT(),supplyLayoutDefaults:EG(),supplyDrawNewShapeDefaults:LG(),includeBasePlot:zm()("shapes"),calcAutorange:PG(),draw:NG.draw,drawOne:NG.drawOne}});var lT=P((UFe,zG)=>{"use strict";var BG=Ri(),Pge=$a().templatedArray,GFe=Im();zG.exports=Pge("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",BG.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",BG.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var UG=P((HFe,GG)=>{"use strict";var Nge=Ur(),sT=mn(),Oge=gl(),Ige=lT(),Bge="images";GG.exports=function(r,t){var a={name:Bge,handleItemDefaults:zge};Oge(r,t,a)};function zge(e,r,t){function a(v,d){return Nge.coerce(e,r,Ige,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var f=l[s],u=sT.coerceRef(e,r,o,f,"paper",void 0);if(u!=="paper"){var c=sT.getFromId(o,u);c._imgIndices.push(r._index)}sT.coercePosition(r,o,a,u,f,0)}return r}});var WG=P((VFe,YG)=>{"use strict";var HG=ha(),Gge=Wa(),t1=mn(),VG=Sn(),Uge=Ic();YG.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var jG=ga(),Hge=qg();XG.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),f,u,c=0;c{"use strict";JG.exports={moduleType:"component",name:"images",layoutAttributes:lT(),supplyLayoutDefaults:UG(),includeBasePlot:zm()("images"),draw:WG(),convertCoords:ZG()}});var Bb=P((jFe,QG)=>{"use strict";QG.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var fT=P((XFe,eU)=>{"use strict";var Vge=zi(),Yge=wf(),Wge=zn().extendFlat,jge=Cs().overrideAll,Xge=Yg(),KG=$a().templatedArray,Zge=KG("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});eU.exports=jge(KG("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Zge,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Wge(Xge({editType:"arraydraw"}),{}),font:Vge({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Yge.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var nU=P((ZFe,aU)=>{"use strict";var zb=Ur(),rU=gl(),tU=fT(),Jge=Bb(),$ge=Jge.name,Qge=tU.buttons;aU.exports=function(r,t){var a={name:$ge,handleItemDefaults:Kge};rU(r,t,a)};function Kge(e,r,t){function a(o,l){return zb.coerce(e,r,tU,o,l)}var n=rU(e,r,{name:"buttons",handleItemDefaults:e2e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),zb.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),zb.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function e2e(e,r){function t(n,i){return zb.coerce(e,r,Qge,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var lU=P((JFe,oU)=>{"use strict";oU.exports=En;var Vs=ha(),iU=va(),a1=Wa(),Gb=Ur();function En(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}En.barWidth=2;En.barLength=20;En.barRadius=2;En.barPad=1;En.barColor="#808BA4";En.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,f=this.position.t,u=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",g=c==="up",m=s,b=u,A,_,x,T;!v&&!d&&!p&&!g&&(this.position.direction="down",v=!0);var E=v||g;E?(A=l,_=A+m,v?(x=f,T=Math.min(x+b,o),b=T-x):(T=f+b,x=Math.max(T-b,0),b=T-x)):(x=f,T=x+b,d?(_=l+m,A=Math.max(_-m,0),m=_-A):(A=l,_=Math.min(A+m,i),m=_-A)),this._box={l:A,t:x,w:m,h:b};var M=s>m,k=En.barLength+2*En.barPad,F=En.barWidth+2*En.barPad,O=l,I=f+u;I+F>o&&(I=o-F);var R=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(iU.fill,En.barColor),M?(this.hbar=R.attr({rx:En.barRadius,ry:En.barRadius,x:O,y:I,width:k,height:F}),this._hbarXMin=O+k/2,this._hbarTranslateMax=m-k):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var H=u>b,X=En.barWidth+2*En.barPad,le=En.barLength+2*En.barPad,ae=l+s,$=f;ae+X>i&&(ae=i-X);var Z=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);Z.exit().on(".drag",null).remove(),Z.enter().append("rect").classed("scrollbar-vertical",!0).call(iU.fill,En.barColor),H?(this.vbar=Z.attr({rx:En.barRadius,ry:En.barRadius,x:ae,y:$,width:X,height:le}),this._vbarYMin=$+le/2,this._vbarTranslateMax=b-le):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var J=this.id,ie=A-.5,ue=H?_+X+.5:_+.5,De=x-.5,Oe=M?T+F+.5:T+.5,Ee=n._topdefs.selectAll("#"+J).data(M||H?[0]:[]);if(Ee.exit().remove(),Ee.enter().append("clipPath").attr("id",J).append("rect"),M||H?(this._clipRect=Ee.select("rect").attr({x:Math.floor(ie),y:Math.floor(De),width:Math.ceil(ue)-Math.floor(ie),height:Math.ceil(Oe)-Math.floor(De)}),this.container.call(a1.setClipUrl,J,this.gd),this.bg.attr({x:l,y:f,width:s,height:u})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a1.setClipUrl,null),delete this._clipRect),M||H){var Ze=Vs.behavior.drag().on("dragstart",function(){Vs.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ze);var Ae=Vs.behavior.drag().on("dragstart",function(){Vs.event.sourceEvent.preventDefault(),Vs.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(Ae),H&&this.vbar.on(".drag",null).call(Ae)}this.setTranslate(t,a)};En.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a1.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};En.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Vs.event.dx),this.vbar&&(t-=Vs.event.dy),this.setTranslate(r,t)};En.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Vs.event.deltaY),this.vbar&&(t+=Vs.event.deltaY),this.setTranslate(r,t)};En.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Gb.constrain(Vs.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,f=s+this._vbarTranslateMax,u=Gb.constrain(Vs.event.y,s,f),c=(u-s)/(f-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};En.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Gb.constrain(r||0,0,a),t=Gb.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(a1.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(a1.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(a1.setTranslate,r,t+o*this._vbarTranslateMax)}}});var yU=P(($Fe,mU)=>{"use strict";var n1=ha(),fy=bi(),uy=va(),i1=Wa(),Ml=Ur(),Ub=po(),r2e=$a().arrayEditor,fU=ho().LINE_SPACING,Gt=Bb(),t2e=lU();mU.exports=function(r){var t=r._fullLayout,a=Ml.filterVisible(t[Gt.name]);function n(v){fy.autoMargin(r,dU(v))}var i=t._menulayer.selectAll("g."+Gt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Gt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){n1.select(this).selectAll("g."+Gt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+Gt.headerGroupClassName).data(a,a2e);o.enter().append("g").classed(Gt.headerGroupClassName,!0);for(var l=Ml.ensureSingle(i,"g",Gt.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var u2e=Bb();gU.exports={moduleType:"component",name:u2e.name,layoutAttributes:fT(),supplyLayoutDefaults:nU(),draw:yU()}});var vy=P((KFe,xU)=>{"use strict";xU.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var hT=P((eRe,AU)=>{"use strict";var _U=zi(),c2e=Yg(),v2e=zn().extendDeepAll,h2e=Cs().overrideAll,d2e=Gp(),wU=$a().templatedArray,eh=vy(),p2e=wU("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});AU.exports=h2e(wU("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:p2e,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:v2e(c2e({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:d2e.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:_U({})},font:_U({}),activebgcolor:{valType:"color",dflt:eh.gripBgActiveColor},bgcolor:{valType:"color",dflt:eh.railBgColor},bordercolor:{valType:"color",dflt:eh.railBorderColor},borderwidth:{valType:"number",min:0,dflt:eh.railBorderWidth},ticklen:{valType:"number",min:0,dflt:eh.tickLength},tickcolor:{valType:"color",dflt:eh.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:eh.minorTickLength}}),"arraydraw","from-root")});var EU=P((rRe,SU)=>{"use strict";var o1=Ur(),TU=gl(),MU=hT(),m2e=vy(),y2e=m2e.name,g2e=MU.steps;SU.exports=function(r,t){TU(r,t,{name:y2e,handleItemDefaults:b2e})};function b2e(e,r,t){function a(c,v){return o1.coerce(e,r,MU,c,v)}for(var n=TU(e,r,{name:"steps",handleItemDefaults:x2e}),i=0,o=0;o{"use strict";var Ys=ha(),Hb=bi(),iv=va(),Ws=Wa(),Sl=Ur(),_2e=Sl.strTranslate,hy=po(),w2e=$a().arrayEditor,ea=vy(),mT=ho(),LU=mT.LINE_SPACING,dT=mT.FROM_TL,pT=mT.FROM_BR;NU.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=A2e(a,r),i=a._infolayer.selectAll("g."+ea.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(ea.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(u){u._commandObserver&&(u._commandObserver.remove(),delete u._commandObserver),Hb.autoMargin(r,DU(u))}if(i.exit().each(function(){Ys.select(this).selectAll("g."+ea.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+ea.groupClassName).data(n,T2e);l.enter().append("g").classed(ea.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",_2e(o-ea.gripWidth*.5,r._dims.currentValueTotalHeight))}}function yT(e,r){var t=e._dims;return t.inputAreaStart+ea.stepInset+(t.inputAreaLength-2*ea.stepInset)*Math.min(1,Math.max(0,r))}function CU(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-ea.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*ea.stepInset-2*t.inputAreaStart)))}function D2e(e,r,t){var a=t._dims,n=Sl.ensureSingle(e,"rect",ea.railTouchRectClass,function(i){i.call(qU,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,ea.tickOffset+t.ticklen+a.labelHeight)}).call(iv.fill,t.bgcolor).attr("opacity",0),Ws.setTranslate(n,0,a.currentValueTotalHeight)}function F2e(e,r){var t=r._dims,a=t.inputAreaLength-ea.railInset*2,n=Sl.ensureSingle(e,"rect",ea.railRectClass);n.attr({width:a,height:ea.railWidth,rx:ea.railRadius,ry:ea.railRadius,"shape-rendering":"crispEdges"}).call(iv.stroke,r.bordercolor).call(iv.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Ws.setTranslate(n,ea.railInset,(t.inputAreaWidth-ea.railWidth)*.5+t.currentValueTotalHeight)}});var BU=P((aRe,IU)=>{"use strict";var R2e=vy();IU.exports={moduleType:"component",name:R2e.name,layoutAttributes:hT(),supplyLayoutDefaults:EU(),draw:OU()}});var Yb=P((nRe,GU)=>{"use strict";var zU=wf();GU.exports={bgcolor:{valType:"color",dflt:zU.background,editType:"plot"},bordercolor:{valType:"color",dflt:zU.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var gT=P((iRe,UU)=>{"use strict";UU.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Wb=P((oRe,HU)=>{"use strict";HU.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var WU=P(Xb=>{"use strict";var q2e=Sn(),P2e=po(),VU=Wb(),N2e=ho().LINE_SPACING,jb=VU.name;function YU(e){var r=e&&e[jb];return r&&r.visible}Xb.isVisible=YU;Xb.makeData=function(e){for(var r=q2e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Zb=Ur(),jU=$a(),XU=Sn(),O2e=Yb(),I2e=gT();ZU.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Zb.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=jU.newContainer(i,"rangeslider");function s(T,E){return Zb.coerce(o,l,O2e,T,E)}var f,u;function c(T,E){return Zb.coerce(f,u,I2e,T,E)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(T){return T.substr(0,T.indexOf("y"))===XU.name2id(a)}).map(function(T){return T.substr(T.indexOf("y"),T.length)}),g=Zb.simpleMap(p,XU.id2name),m=0;m{"use strict";var B2e=Sn().list,z2e=wd().getAutoRange,G2e=Wb();$U.exports=function(r){for(var t=B2e(r,"x",!0),a=0;a{"use strict";var Jb=ha(),U2e=Bt(),H2e=bi(),In=Ur(),$b=In.strTranslate,eH=Wa(),ov=va(),V2e=om(),Y2e=iy(),bT=Sn(),W2e=Ps(),j2e=Yc(),sa=Wb();rH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=Z.max)ae=I[$+1];else if(le=Z.pmax)ae=I[$+1];else if(le0?e.touches[0].clientX:0}function X2e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+sa.slideBoxClassName).node(),i=e.select("rect."+sa.grabAreaMinClassName).node(),o=e.select("rect."+sa.grabAreaMaxClassName).node();function l(){var s=Jb.event,f=s.target,u=KU(s),c=u-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=W2e.coverSlip();this.addEventListener("touchmove",g),this.addEventListener("touchend",m),p.addEventListener("mousemove",g),p.addEventListener("mouseup",m);function g(b){var A=KU(b),_=+A-u,x,T,E;switch(f){case n:if(E="ew-resize",v+_>t._length||d+_<0)return;x=v+_,T=d+_;break;case i:if(E="col-resize",v+_>t._length)return;x=v+_,T=d;break;case o:if(E="col-resize",d+_<0)return;x=v,T=d+_;break;default:E="ew-resize",x=c,T=c+_;break}if(T{"use strict";var n3e=Ur(),i3e=Yb(),o3e=gT(),xT=WU();aH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:n3e.extendFlat({},i3e,{yaxis:o3e})}}},layoutAttributes:Yb(),handleDefaults:JU(),calcAutorange:QU(),draw:tH(),isVisible:xT.isVisible,makeData:xT.makeData,autoMarginOpts:xT.autoMarginOpts}});var Qb=P((vRe,oH)=>{"use strict";var l3e=zi(),iH=wf(),s3e=$a().templatedArray,f3e=s3e("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});oH.exports={visible:{valType:"boolean",editType:"plot"},buttons:f3e,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:l3e({editType:"plot"}),bgcolor:{valType:"color",dflt:iH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:iH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var _T=P((hRe,lH)=>{"use strict";lH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var uH=P((dRe,fH)=>{"use strict";var Kb=Ur(),u3e=va(),c3e=$a(),v3e=gl(),sH=Qb(),wT=_T();fH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=c3e.newContainer(t,"rangeselector");function s(d,p){return Kb.coerce(o,l,sH,d,p)}var f=v3e(o,l,{name:"buttons",handleItemDefaults:h3e,calendar:i}),u=s("visible",f.length>0);if(u){var c=d3e(t,a,n);s("x",c[0]),s("y",c[1]),Kb.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Kb.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",u3e.contrast(v,wT.lightAmount,wT.darkAmount)),s("bordercolor"),s("borderwidth")}};function h3e(e,r,t,a){var n=a.calendar;function i(s,f){return Kb.coerce(e,r,sH.buttons,s,f)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function d3e(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var p3e=y5(),m3e=Ur().titleCase;cH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=y3e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function y3e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=p3e["utc"+m3e(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var f=t[1];return[l,f]}});var xH=P((mRe,bH)=>{"use strict";var rx=ha(),g3e=Bt(),b3e=bi(),hH=va(),gH=Wa(),Ou=Ur(),dH=Ou.strTranslate,ex=po(),x3e=Sn(),MT=ho(),pH=MT.LINE_SPACING,mH=MT.FROM_TL,yH=MT.FROM_BR,TT=_T(),_3e=vH();bH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(w3e(r),A3e);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=rx.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Ou.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(f){var u=rx.select(this),c=_3e(o,f);f._isActive=T3e(o,f,c),u.call(AT,l,f),u.call(S3e,l,f,r),u.on("click",function(){r._dragged||g3e.call("_guiRelayout",r,c)}),u.on("mouseover",function(){f._isHovered=!0,u.call(AT,l,f)}),u.on("mouseout",function(){f._isHovered=!1,u.call(AT,l,f)})}),k3e(r,s,l,o._name,i)})};function w3e(e){for(var r=x3e.list(e,"x",!0),t=[],a=0;a{"use strict";_H.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Qb()}}},layoutAttributes:Qb(),handleDefaults:uH(),draw:xH()}});var tx=P(ST=>{"use strict";var AH=zn().extendFlat;ST.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:AH({},t,{}),y:AH({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};ST.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var C3e=Ur(),L3e=$h().counter,D3e=tx().attributes,TH=Ri().idRegex,F3e=$a(),ET={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[L3e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[TH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[TH.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:D3e({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function ax(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function R3e(e,r){var t=e.grid||{},a=ax(r,t,"x"),n=ax(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,f,u;i?(f=t.subplots.length,u=t.subplots[0].length):(l&&(f=n.length),o&&(u=a.length));var c=F3e.newContainer(r,"grid");function v(E,M){return C3e.coerce(t,c,ET,E,M)}var d=v("rows",f),p=v("columns",u);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var g=v("pattern")==="independent";g&&(i=!0)}c._hasSubplotGrid=i;var m=v("roworder"),b=m==="top to bottom",A=i?.2:.1,_=i?.3:.1,x,T;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,T=r._splomGridDflt.yside),c._domains={x:MH("x",v,A,x,p),y:MH("y",v,_,T,d,b)}}function MH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),f=l[0],u=(l[1]-f)/(n-o),c=u*(1-o),v=0;v{"use strict";kH.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var DH=P((_Re,LH)=>{"use strict";var CH=ga(),P3e=Bt(),N3e=Ur(),O3e=$a(),I3e=CT();LH.exports=function(e,r,t,a){var n="error_"+a.axis,i=O3e.newContainer(r,n),o=e[n]||{};function l(p,g){return N3e.coerce(o,i,I3e,p,g)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",f=l("visible",s);if(f!==!1){var u=l("type","array"in o?"data":"percent"),c=!0;u!=="sqrt"&&(c=l("symmetric",!((u==="data"?"arrayminus":"valueminus")in o))),u==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(u==="percent"||u==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||CH(o.thickness)||CH(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",P3e.traceIs(r,"gl3d")?0:4))}}});var LT=P((wRe,RH)=>{"use strict";RH.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(f,u){var c=+n[u];return[c,c]};var i=r.arrayminus||[];return function(f,u){var c=+n[u],v=+i[u];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=FH(t,r.value),l=FH(t,r.valueminus);return a||r.valueminus===void 0?function(f){var u=o(f);return[u,u]}:function(f){return[l(f),o(f)]}}};function FH(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var NH=P((ARe,PH)=>{"use strict";var DT=ga(),B3e=Bt(),FT=mn(),z3e=Ur(),G3e=LT();PH.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var OH=ha(),lv=ga(),U3e=Wa(),H3e=qi();IH.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,f=r._context.staticPlot;t.each(function(u){var c=u[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(A){return A.id});var g=H3e.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(u=[]);var m=OH.select(this).selectAll("g.errorbar").data(u,p);if(m.exit().remove(),!!u.length){v.visible||m.selectAll("path.xerror").remove(),d.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var b=m.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),U3e.setClipUrl(m,a.layerClipId,r),m.each(function(A){var _=OH.select(this),x=V3e(A,o,l);if(!(g&&!A.vis)){var T,E=_.select("path.yerror");if(d.visible&&lv(x.x)&&lv(x.yh)&&lv(x.ys)){var M=d.width;T="M"+(x.x-M)+","+x.yh+"h"+2*M+"m-"+M+",0V"+x.ys,x.noYS||(T+="m-"+M+",0h"+2*M),i=!E.size(),i?E=_.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("yerror",!0):s&&(E=E.transition().duration(n.duration).ease(n.easing)),E.attr("d",T)}else E.remove();var k=_.select("path.xerror");if(v.visible&&lv(x.y)&&lv(x.xh)&&lv(x.xs)){var F=(v.copy_ystyle?d:v).width;T="M"+x.xh+","+(x.y-F)+"v"+2*F+"m0,-"+F+"H"+x.xs,x.noXS||(T+="m0,-"+F+"v"+2*F),i=!k.size(),i?k=_.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("xerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",T)}else k.remove()}})}})};function V3e(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),lv(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),lv(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var UH=P((MRe,GH)=>{"use strict";var Y3e=ha(),zH=va();GH.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=Y3e.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(zH.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(zH.stroke,i.color)})}});var YH=P((SRe,VH)=>{"use strict";var dy=Ur(),HH=Cs().overrideAll,py=CT(),rh={error_x:dy.extendFlat({},py),error_y:dy.extendFlat({},py)};delete rh.error_x.copy_zstyle;delete rh.error_y.copy_zstyle;delete rh.error_y.copy_ystyle;var my={error_x:dy.extendFlat({},py),error_y:dy.extendFlat({},py),error_z:dy.extendFlat({},py)};delete my.error_x.copy_ystyle;delete my.error_y.copy_ystyle;delete my.error_z.copy_ystyle;delete my.error_z.copy_zstyle;VH.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:rh,bar:rh,histogram:rh,scatter3d:HH(my,"calc","nested"),scattergl:HH(rh,"calc","nested")}},supplyDefaults:DH(),calc:NH(),makeComputeError:LT(),plot:BH(),style:UH(),hoverInfo:W3e};function W3e(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var jH=P((ERe,WH)=>{"use strict";WH.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var eV=P((kRe,KH)=>{"use strict";var sv=ha(),RT=Es(),ix=bi(),XH=Bt(),Iu=mn(),nx=Ps(),rs=Ur(),Xs=rs.strTranslate,QH=zn().extendFlat,qT=Yc(),js=Wa(),PT=va(),j3e=om(),X3e=po(),Z3e=Rs().flipScale,J3e=H6(),$3e=V6(),Q3e=Ul(),NT=ho(),ZH=NT.LINE_SPACING,JH=NT.FROM_TL,$H=NT.FROM_BR,_n=jH().cn;function K3e(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+_n.colorbar).data(ebe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(_n.colorbar,!0),t.each(function(a){var n=sv.select(this);rs.ensureSingle(n,"rect",_n.cbbg),rs.ensureSingle(n,"g",_n.cbfills),rs.ensureSingle(n,"g",_n.cblines),rs.ensureSingle(n,"g",_n.cbaxis,function(o){o.classed(_n.crisp,!0)}),rs.ensureSingle(n,"g",_n.cbtitleunshift,function(o){o.append("g").classed(_n.cbtitle,!0)}),rs.ensureSingle(n,"rect",_n.cboutline);var i=rbe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&tbe(n,a,e)}),t.exit().each(function(a){ix.autoMargin(e,a._id)}).remove(),t.order()}function ebe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return QH(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function f(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?Z3e(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var u=0;u1){var ge=Math.pow(10,Math.floor(Math.log(ee)/Math.LN10));He*=ge*rs.roundUp(ee/ge,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(Ge.tick0=0)}Ge.dtick=He}Ge.domain=a?[Ae+p/x.h,Ae+J-p/x.h]:[Ae+d/x.w,Ae+J-d/x.w],Ge.setScale(),e.attr("transform",Xs(Math.round(x.l),Math.round(x.t)));var re=e.select("."+_n.cbtitleunshift).attr("transform",Xs(-Math.round(x.l),-Math.round(x.t))),Ye=Ge.ticklabelposition,vr=Ge.title.font.size,rr=e.select("."+_n.cbaxis),Cr,Lr=0,_r=0;function Pr(Vr,Pe){var sr={propContainer:Ge,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+_n.cbtitle)},lt=Vr.charAt(0)==="h"?Vr.substr(1):"h"+Vr;e.selectAll("."+lt+",."+lt+"-math-group").remove(),j3e.draw(t,Vr,QH(sr,Pe||{}))}function rt(){if(a&&Qe||!a&&!Qe){var Vr,Pe;k==="top"&&(Vr=d+x.l+ie*g,Pe=p+x.t+ue*(1-Ae-J)+3+vr*.75),k==="bottom"&&(Vr=d+x.l+ie*g,Pe=p+x.t+ue*(1-Ae)-3-vr*.25),k==="right"&&(Pe=p+x.t+ue*m+3+vr*.75,Vr=d+x.l+ie*Ae),Pr(Ge._id+"title",{attributes:{x:Vr,y:Pe,"text-anchor":a?"start":"middle"}})}}function Jr(){if(a&&!Qe||!a&&Qe){var Vr=Ge.position||0,Pe=Ge._offset+Ge._length/2,sr,lt;if(k==="right")lt=Pe,sr=x.l+ie*Vr+10+vr*(Ge.showticklabels?1:.5);else if(sr=Pe,k==="bottom"&&(lt=x.t+ue*Vr+10+(Ye.indexOf("inside")===-1?Ge.tickfont.size:0)+(Ge.ticks!=="inside"&&r.ticklen||0)),k==="top"){var Et=M.text.split("
").length;lt=x.t+ue*Vr+10-ae-ZH*vr*Et}Pr((a?"h":"v")+Ge._id+"title",{avoid:{selection:sv.select(t).selectAll("g."+Ge._id+"tick"),side:k,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?_.width:_.height},attributes:{x:sr,y:lt,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function wr(){if(!a&&!Qe||a&&Qe){var Vr=e.select("."+_n.cbtitle),Pe=Vr.select("text"),sr=[-s/2,s/2],lt=Vr.select(".h"+Ge._id+"title-math-group").node(),Et=15.6;Pe.node()&&(Et=parseInt(Pe.node().style.fontSize,10)*ZH);var wt;if(lt?(wt=js.bBox(lt),_r=wt.width,Lr=wt.height,Lr>Et&&(sr[1]-=(Lr-Et)/2)):Pe.node()&&!Pe.classed(_n.jsPlaceholder)&&(wt=js.bBox(Pe.node()),_r=wt.width,Lr=wt.height),a){if(Lr){if(Lr+=5,k==="top")Ge.domain[1]-=Lr/x.h,sr[1]*=-1;else{Ge.domain[0]+=Lr/x.h;var Fe=X3e.lineCount(Pe);sr[1]+=(1-Fe)*Et}Vr.attr("transform",Xs(sr[0],sr[1])),Ge.setScale()}}else _r&&(k==="right"&&(Ge.domain[0]+=(_r+vr/2)/x.w),Vr.attr("transform",Xs(sr[0],sr[1])),Ge.setScale())}e.selectAll("."+_n.cbfills+",."+_n.cblines).attr("transform",a?Xs(0,Math.round(x.h*(1-Ge.domain[1]))):Xs(Math.round(x.w*Ge.domain[0]),0)),rr.attr("transform",a?Xs(0,Math.round(-x.t)):Xs(Math.round(-x.l),0));var hr=e.select("."+_n.cbfills).selectAll("rect."+_n.cbfill).attr("style","").data(X);hr.enter().append("rect").classed(_n.cbfill,!0).attr("style",""),hr.exit().remove();var Or=F.map(Ge.c2p).map(Math.round).sort(function(ot,et){return ot-et});hr.each(function(ot,et){var pr=[et===0?F[0]:(X[et]+X[et-1])/2,et===X.length-1?F[1]:(X[et]+X[et+1])/2].map(Ge.c2p).map(Math.round);a&&(pr[1]=rs.constrain(pr[1]+(pr[1]>pr[0])?1:-1,Or[0],Or[1]));var Se=sv.select(this).attr(a?"x":"y",De).attr(a?"y":"x",sv.min(pr)).attr(a?"width":"height",Math.max(ae,2)).attr(a?"height":"width",Math.max(sv.max(pr)-sv.min(pr),2));if(r._fillgradient)js.gradient(Se,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Ie=I(ot).replace("e-","");Se.attr("fill",RT(Ie).toHexString())}});var at=e.select("."+_n.cblines).selectAll("path."+_n.cbline).data(E.color&&E.width?le:[]);at.enter().append("path").classed(_n.cbline,!0),at.exit().remove(),at.each(function(ot){var et=De,pr=Math.round(Ge.c2p(ot))+E.width/2%1;sv.select(this).attr("d","M"+(a?et+","+pr:pr+","+et)+(a?"h":"v")+ae).call(js.lineGroupStyle,E.width,O(ot),E.dash)}),rr.selectAll("g."+Ge._id+"tick,path").remove();var Yr=De+ae+(s||0)/2-(r.ticks==="outside"?1:0),nt=Iu.calcTicks(Ge),vt=Iu.getTickSigns(Ge)[2];return Iu.drawTicks(t,Ge,{vals:Ge.ticks==="inside"?Iu.clipEnds(Ge,nt):nt,layer:rr,path:Iu.makeTickPath(Ge,Yr,vt),transFn:Iu.makeTransTickFn(Ge)}),Iu.drawLabels(t,Ge,{vals:nt,layer:rr,transFn:Iu.makeTransTickLabelFn(Ge),labelFns:Iu.makeLabelFns(Ge,Yr)})}function Hr(){var Vr,Pe=ae+s/2;Ye.indexOf("inside")===-1&&(Vr=js.bBox(rr.node()),Pe+=a?Vr.width:Vr.height),Cr=re.select("text");var sr=0,lt=a&&k==="top",Et=!a&&k==="right",wt=0;if(Cr.node()&&!Cr.classed(_n.jsPlaceholder)){var Fe,hr=re.select(".h"+Ge._id+"title-math-group").node();hr&&(a&&Qe||!a&&!Qe)?(Vr=js.bBox(hr),sr=Vr.width,Fe=Vr.height):(Vr=js.bBox(re.node()),sr=Vr.right-x.l-(a?De:ir),Fe=Vr.bottom-x.t-(a?ir:De),!a&&k==="top"&&(Pe+=Vr.height,wt=Vr.height)),Et&&(Cr.attr("transform",Xs(sr/2+vr/2,0)),sr*=2),Pe=Math.max(Pe,a?sr:Fe)}var Or=(a?d:p)*2+Pe+f+s/2,at=0;!a&&M.text&&v==="bottom"&&m<=0&&(at=Or/2,Or+=at,wt+=at),_._hColorbarMoveTitle=at,_._hColorbarMoveCBTitle=wt;var Yr=f+s,nt=(a?De:ir)-Yr/2-(a?d:0),vt=(a?ir:De)-(a?Z:p+wt-at);e.select("."+_n.cbbg).attr("x",nt).attr("y",vt).attr(a?"width":"height",Math.max(Or-at,2)).attr(a?"height":"width",Math.max(Z+Yr,2)).call(PT.fill,u).call(PT.stroke,r.bordercolor).style("stroke-width",f);var ot=Et?Math.max(sr-10,0):0;e.selectAll("."+_n.cboutline).attr("x",(a?De:ir+d)+ot).attr("y",(a?ir+p-Z:De)+(lt?Lr:0)).attr(a?"width":"height",Math.max(ae,2)).attr(a?"height":"width",Math.max(Z-(a?2*p+Lr:2*d+ot),2)).call(PT.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var et=a?Oe*Or:0,pr=a?0:(1-Ee)*Or-wt;if(et=A?x.l-et:-et,pr=b?x.t-pr:-pr,e.attr("transform",Xs(et,pr)),!a&&(f||RT(u).getAlpha()&&!RT.equals(_.paper_bgcolor,u))){var Se=rr.selectAll("text"),Ie=Se[0].length,yr=e.select("."+_n.cbbg).node(),cr=js.bBox(yr),xt=js.getTranslate(e),At=2;Se.each(function(jn,vn){var wn=0,Mi=Ie-1;if(vn===wn||vn===Mi){var Pt=js.bBox(this),Ca=js.getTranslate(this),ia;if(vn===Mi){var Va=Pt.right+Ca.x,hn=cr.right+xt.x+ir-f-At+g;ia=hn-Va,ia>0&&(ia=0)}else if(vn===wn){var La=Pt.left+Ca.x,Ba=cr.left+xt.x+ir+f+At;ia=Ba-La,ia<0&&(ia=0)}ia&&(Ie<3?this.setAttribute("transform","translate("+ia+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var gt={},Nt=JH[c],ta=$H[c],ka=JH[v],Ta=$H[v],Rn=Or-ae;a?(i==="pixels"?(gt.y=m,gt.t=Z*ka,gt.b=Z*Ta):(gt.t=gt.b=0,gt.yt=m+n*ka,gt.yb=m-n*Ta),l==="pixels"?(gt.x=g,gt.l=Or*Nt,gt.r=Or*ta):(gt.l=Rn*Nt,gt.r=Rn*ta,gt.xl=g-o*Nt,gt.xr=g+o*ta)):(i==="pixels"?(gt.x=g,gt.l=Z*Nt,gt.r=Z*ta):(gt.l=gt.r=0,gt.xl=g+n*Nt,gt.xr=g-n*ta),l==="pixels"?(gt.y=1-m,gt.t=Or*ka,gt.b=Or*Ta):(gt.t=Rn*ka,gt.b=Rn*Ta,gt.yt=m-o*ka,gt.yb=m+o*Ta));var bn=r.y<.5?"b":"t",ja=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var cn={r:_.width-nt-et,l:nt+gt.r,b:_.height-vt-pr,t:vt+gt.b};A&&b?ix.autoMargin(t,r._id,gt):A?t._fullLayout._reservedMargin[r._id][bn]=cn[bn]:b||a?t._fullLayout._reservedMargin[r._id][ja]=cn[ja]:t._fullLayout._reservedMargin[r._id][bn]=cn[bn]}return rs.syncOrAsync([ix.previousPromises,rt,wr,Jr,ix.previousPromises,Hr],t)}function tbe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;nx.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),qT(e)},moveFn:function(f,u){e.attr("transform",o+Xs(f,u)),l=nx.align((a?r._uFrac:r._vFrac)+f/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=nx.align((a?r._vFrac:1-r._uFrac)-u/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=nx.getCursor(l,s,r.xanchor,r.yanchor);qT(e,c)},doneFn:function(){if(qT(e),l!==void 0&&s!==void 0){var f={};f[r._propPrefix+"x"]=l,f[r._propPrefix+"y"]=s,r._traceIndex!==void 0?XH.call("_guiRestyle",t,f,r._traceIndex):XH.call("_guiRelayout",t,f)}}})}function abe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,f=a.size,u=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*f,!(f>0?o>=s:o<=s));l++)o>u&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";rV.exports={moduleType:"component",name:"colorbar",attributes:_2(),supplyDefaults:R4(),draw:eV().draw,hasColorbar:w4()}});var nV=P((LRe,aV)=>{"use strict";aV.exports={moduleType:"component",name:"legend",layoutAttributes:Cw(),supplyLayoutDefaults:Fw(),draw:Yw(),style:Gw()}});var oV=P((DRe,iV)=>{"use strict";iV.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var sV=P((FRe,lV)=>{"use strict";lV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var IT=P((RRe,vV)=>{"use strict";var ibe=Bt(),cV=Ur(),OT=cV.extendFlat,fV=cV.extendDeep;function uV(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function obe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}vV.exports=function(r,t){var a,n=r.data,i=r.layout,o=fV([],n),l=fV({},i,uV(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var f=Object.keys(l);for(a=0;a{"use strict";var lbe=s2().EventEmitter,sbe=Bt(),fbe=Ur(),hV=Y0(),ube=IT(),cbe=vb(),vbe=hb();function hbe(e,r){var t=new lbe,a=ube(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=hV.getDelay(n._fullLayout);setTimeout(function(){var s=cbe(n),f=document.createElement("canvas");f.id=fbe.randstr(),t=vbe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:f,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=hV.getRedrawFunc(n);return sbe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}dV.exports=hbe});var gV=P((PRe,yV)=>{"use strict";var mV=Y0(),dbe={getDelay:mV.getDelay,getRedrawFunc:mV.getRedrawFunc,clone:IT(),toSVG:vb(),svgToImg:hb(),toImage:pV(),downloadImage:u6()};yV.exports=dbe});var xV=P(Bu=>{"use strict";Bu.version=Tg().version;gM();lC();var pbe=Bt(),yy=Bu.register=pbe.register,zT=LI(),bV=Object.keys(zT);for(ox=0;ox{"use strict";_V.exports=xV()});var GT=P((IRe,TV)=>{"use strict";var mbe=Bt(),El=Ur(),ybe=B6();function gbe(e,r,t,a){var n=e.cd,i=n[0].t,o=n[0].trace,l=e.xa,s=e.ya,f=i.x,u=i.y,c=l.c2p(r),v=s.c2p(t),d=e.distance,p;if(i.tree){var g=l.p2c(c-d),m=l.p2c(c+d),b=s.p2c(v-d),A=s.p2c(v+d);a==="x"?p=i.tree.range(Math.min(g,m),Math.min(s._rl[0],s._rl[1]),Math.max(g,m),Math.max(s._rl[0],s._rl[1])):p=i.tree.range(Math.min(g,m),Math.min(b,A),Math.max(g,m),Math.max(b,A))}else p=i.ids;var _,x,T,E,M,k,F,O,I,R=d;if(a==="x"){var H=!!o.xperiodalignment,X=!!o.yperiodalignment;for(M=0;M=Math.min(le,ae)&&c<=Math.max(le,ae)?0:1/0}if(k=Math.min($,Z)&&v<=Math.max($,Z)?0:1/0}I=Math.sqrt(k*k+F*F),x=p[M]}}}else for(M=p.length-1;M>-1;M--)_=p[M],T=f[_],E=u[_],k=l.c2p(T)-c,F=s.c2p(E)-v,O=Math.sqrt(k*k+F*F),O{"use strict";var MV=20;SV.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:MV,SYMBOL_STROKE:MV/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var sx=P((zRe,LV)=>{"use strict";var bbe=ks(),xbe=zi(),_be=zA(),Fn=Qc(),EV=tm().axisHoverFormat,kV=E0(),wbe=Qg(),UT=zn().extendFlat,Abe=Cs().overrideAll,Tbe=s1().DASHES,CV=Fn.line,zu=Fn.marker,Mbe=zu.line,f1=LV.exports=Abe({x:Fn.x,x0:Fn.x0,dx:Fn.dx,y:Fn.y,y0:Fn.y0,dy:Fn.dy,xperiod:Fn.xperiod,yperiod:Fn.yperiod,xperiod0:Fn.xperiod0,yperiod0:Fn.yperiod0,xperiodalignment:Fn.xperiodalignment,yperiodalignment:Fn.yperiodalignment,xhoverformat:EV("x"),yhoverformat:EV("y"),text:Fn.text,hovertext:Fn.hovertext,textposition:Fn.textposition,textfont:xbe({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:CV.color,width:CV.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:wbe(Tbe),dflt:"solid"}},marker:UT({},kV("marker"),{symbol:zu.symbol,angle:zu.angle,size:zu.size,sizeref:zu.sizeref,sizemin:zu.sizemin,sizemode:zu.sizemode,opacity:zu.opacity,colorbar:zu.colorbar,line:UT({},kV("marker.line"),{width:Mbe.width})}),connectgaps:Fn.connectgaps,fill:UT({},Fn.fill,{dflt:"none"}),fillcolor:_be(),selected:{marker:Fn.selected.marker,textfont:Fn.selected.textfont},unselected:{marker:Fn.unselected.marker,textfont:Fn.unselected.textfont},opacity:bbe.opacity},"calc","nested");f1.x.editType=f1.y.editType=f1.x0.editType=f1.y0.editType="calc+clearAxisTypes";f1.hovertemplate=Fn.hovertemplate;f1.texttemplate=Fn.texttemplate});var fx=P(HT=>{"use strict";var DV=s1();HT.isOpenSymbol=function(e){return typeof e=="string"?DV.OPEN_RE.test(e):e%200>100};HT.isDotSymbol=function(e){return typeof e=="string"?DV.DOT_RE.test(e):e>200}});var qV=P((URe,RV)=>{"use strict";var FV=Ur(),Sbe=Bt(),Ebe=fx(),kbe=sx(),Cbe=Bm(),ux=qi(),Lbe=h6(),Dbe=d6(),Fbe=gb(),Rbe=p6(),qbe=y6(),Pbe=m6();RV.exports=function(r,t,a,n){function i(d,p){return FV.coerce(r,t,kbe,d,p)}var o=r.marker?Ebe.isOpenSymbol(r.marker.symbol):!1,l=ux.isBubble(r),s=Lbe(r,t,n,i);if(!s){t.visible=!1;return}Dbe(r,t,n,i),i("xhoverformat"),i("yhoverformat");var f=s{"use strict";var Nbe=q6();PV.exports=function(r,t,a){var n=r.i;return"x"in r||(r.x=t._x[n]),"y"in r||(r.y=t._y[n]),Nbe(r,t,a)}});var IV=P((VRe,OV)=>{"use strict";function Obe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>=0?(i=o,n=o-1):a=o+1}return i}function Ibe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>0?(i=o,n=o-1):a=o+1}return i}function Bbe(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<0?(i=o,a=o+1):n=o-1}return i}function zbe(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<=0?(i=o,a=o+1):n=o-1}return i}function Gbe(e,r,t,a,n){for(;a<=n;){var i=a+n>>>1,o=e[i],l=t!==void 0?t(o,r):o-r;if(l===0)return i;l<=0?a=i+1:n=i-1}return-1}function gy(e,r,t,a,n,i){return typeof t=="function"?i(e,r,t,a===void 0?0:a|0,n===void 0?e.length-1:n|0):i(e,r,void 0,t===void 0?0:t|0,a===void 0?e.length-1:a|0)}OV.exports={ge:function(e,r,t,a,n){return gy(e,r,t,a,n,Obe)},gt:function(e,r,t,a,n){return gy(e,r,t,a,n,Ibe)},lt:function(e,r,t,a,n){return gy(e,r,t,a,n,Bbe)},le:function(e,r,t,a,n){return gy(e,r,t,a,n,zbe)},eq:function(e,r,t,a,n){return gy(e,r,t,a,n,Gbe)}}});var by=P((YRe,BV)=>{BV.exports=Ube;function Ube(e,r,t){return rt?t:e:er?r:e}});var Of=P((WRe,GV)=>{"use strict";GV.exports=function(r,t,a){var n={},i,o;if(typeof t=="string"&&(t=zV(t)),Array.isArray(t)){var l={};for(o=0;o{"use strict";var Hbe=Of();UV.exports=Vbe;function Vbe(e){var r;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?r={width:e[0],height:e[0],x:0,y:0}:e.length===2?r={width:e[0],height:e[1],x:0,y:0}:r={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=Hbe(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),r={x:e.left||0,y:e.top||0},e.width==null?e.right?r.width=e.right-r.x:r.width=0:r.width=e.width,e.height==null?e.bottom?r.height=e.bottom-r.y:r.height=0:r.height=e.height),r}});var th=P((XRe,HV)=>{"use strict";HV.exports=Ybe;function Ybe(e,r){if(!e||e.length==null)throw Error("Argument should be an array");r==null?r=1:r=Math.floor(r);for(var t=Array(r*2),a=0;an&&(n=e[o]),e[o]{VV.exports=function(){for(var e=0;e{WV.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var ah=P(($Re,XV)=>{var jV=cx();XV.exports=Wbe;function Wbe(e,r,t){if(!e)throw new TypeError("must specify data as first parameter");if(t=+(t||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var a=e[0].length,n=e.length*a,i,o,l,s;(!r||typeof r=="string")&&(r=new(jV(r||"float32"))(n+t));var f=r.length-t;if(n!==f)throw new Error("source length "+n+" ("+a+"x"+e.length+") does not match destination length "+f);for(i=0,l=t;i{"use strict";ZV.exports=function(e){var r=typeof e;return e!==null&&(r==="object"||r==="function")}});var QV=P((KRe,$V)=>{"use strict";$V.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var iY=P((eqe,nY)=>{"use strict";var KV=IV(),eY=by(),jbe=u1(),Xbe=th(),rY=Of(),YT=YV(),Zbe=ah(),Jbe=JV(),$be=cx(),tY=QV(),Qbe=1073741824;nY.exports=function(r,t){t||(t={}),r=Zbe(r,"float64"),t=rY(t,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let a=YT(t.maxDepth,255),n=YT(t.bounds,Xbe(r,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let i=aY(r,n),o=r.length>>>1,l;t.dtype||(t.dtype="array"),typeof t.dtype=="string"?l=new($be(t.dtype))(o):t.dtype&&(l=t.dtype,Array.isArray(l)&&(l.length=o));for(let b=0;ba||E>Qbe){for(let Z=0;ZDe||F>Oe||O=R||ie===ue)return;let Ee=s[J];ue===void 0&&(ue=Ee.length);for(let ge=ie;ge=x&&Ye<=E&&vr>=T&&vr<=M&&H.push(re)}let Ze=f[J],Ae=Ze[ie*4+0],ir=Ze[ie*4+1],Ge=Ze[ie*4+2],Qe=Ze[ie*4+3],He=le(Ze,ie+1),Ve=Z*.5,ee=J+1;X(ae,$,Ve,ee,Ae,ir||Ge||Qe||He),X(ae,$+Ve,Ve,ee,ir,Ge||Qe||He),X(ae+Ve,$,Ve,ee,Ge,Qe||He),X(ae+Ve,$+Ve,Ve,ee,Qe,He)}function le(ae,$){let Z=null,J=0;for(;Z===null;)if(Z=ae[$*4+J],J++,J>ae.length)return null;return Z}return H}function g(b,A,_,x,T){let E=[];for(let M=0;M{"use strict";oY.exports=iY()});var jT=P((tqe,lY)=>{lY.exports=Kbe;function Kbe(e){var r=0,t=0,a=0,n=0;return e.map(function(i){i=i.slice();var o=i[0],l=o.toUpperCase();if(o!=l)switch(i[0]=l,o){case"a":i[6]+=a,i[7]+=n;break;case"v":i[1]+=n;break;case"h":i[1]+=a;break;default:for(var s=1;s{"use strict";Object.defineProperty(vx,"__esModule",{value:!0});var exe=function(){function e(r,t){var a=[],n=!0,i=!1,o=void 0;try{for(var l=r[Symbol.iterator](),s;!(n=(s=l.next()).done)&&(a.push(s.value),!(t&&a.length===t));n=!0);}catch(f){i=!0,o=f}finally{try{!n&&l.return&&l.return()}finally{if(i)throw o}}return a}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),xy=Math.PI*2,XT=function(r,t,a,n,i,o,l){var s=r.x,f=r.y;s*=t,f*=a;var u=n*s-i*f,c=i*s+n*f;return{x:u+o,y:c+l}},rxe=function(r,t){var a=t===1.5707963267948966?.551915024494:t===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(t/4),n=Math.cos(r),i=Math.sin(r),o=Math.cos(r+t),l=Math.sin(r+t);return[{x:n-i*a,y:i+n*a},{x:o+l*a,y:l-o*a},{x:o,y:l}]},sY=function(r,t,a,n){var i=r*n-t*a<0?-1:1,o=r*a+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)},txe=function(r,t,a,n,i,o,l,s,f,u,c,v){var d=Math.pow(i,2),p=Math.pow(o,2),g=Math.pow(c,2),m=Math.pow(v,2),b=d*p-d*m-p*g;b<0&&(b=0),b/=d*m+p*g,b=Math.sqrt(b)*(l===s?-1:1);var A=b*i/o*v,_=b*-o/i*c,x=u*A-f*_+(r+a)/2,T=f*A+u*_+(t+n)/2,E=(c-A)/i,M=(v-_)/o,k=(-c-A)/i,F=(-v-_)/o,O=sY(1,0,E,M),I=sY(E,M,k,F);return s===0&&I>0&&(I-=xy),s===1&&I<0&&(I+=xy),[x,T,O,I]},axe=function(r){var t=r.px,a=r.py,n=r.cx,i=r.cy,o=r.rx,l=r.ry,s=r.xAxisRotation,f=s===void 0?0:s,u=r.largeArcFlag,c=u===void 0?0:u,v=r.sweepFlag,d=v===void 0?0:v,p=[];if(o===0||l===0)return[];var g=Math.sin(f*xy/360),m=Math.cos(f*xy/360),b=m*(t-n)/2+g*(a-i)/2,A=-g*(t-n)/2+m*(a-i)/2;if(b===0&&A===0)return[];o=Math.abs(o),l=Math.abs(l);var _=Math.pow(b,2)/Math.pow(o,2)+Math.pow(A,2)/Math.pow(l,2);_>1&&(o*=Math.sqrt(_),l*=Math.sqrt(_));var x=txe(t,a,n,i,o,l,c,d,g,m,b,A),T=exe(x,4),E=T[0],M=T[1],k=T[2],F=T[3],O=Math.abs(F)/(xy/4);Math.abs(1-O)<1e-7&&(O=1);var I=Math.max(Math.ceil(O),1);F/=I;for(var R=0;R{"use strict";vY.exports=ixe;var nxe=uY();function ixe(e){for(var r,t=[],a=0,n=0,i=0,o=0,l=null,s=null,f=0,u=0,c=0,v=e.length;c4?(a=d[d.length-4],n=d[d.length-3]):(a=f,n=u),t.push(d)}return t}function hx(e,r,t,a){return["C",e,r,t,a,t,a]}function cY(e,r,t,a,n,i){return["C",e/3+2/3*t,r/3+2/3*a,n/3+2/3*t,i/3+2/3*a,n,i]}});var ZT=P((nqe,dY)=>{"use strict";dY.exports=function(r){return typeof r!="string"?!1:(r=r.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(r)&&/[\dz]$/i.test(r)&&r.length>4))}});var dx=P((iqe,pY)=>{"use strict";pY.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var _y=P((oqe,mY)=>{"use strict";var oxe=dx();mY.exports=function(){return oxe()&&!!Symbol.toStringTag}});var JT=P((lqe,yY)=>{"use strict";yY.exports=Object});var bY=P((sqe,gY)=>{"use strict";gY.exports=Error});var _Y=P((fqe,xY)=>{"use strict";xY.exports=EvalError});var AY=P((uqe,wY)=>{"use strict";wY.exports=RangeError});var MY=P((cqe,TY)=>{"use strict";TY.exports=ReferenceError});var $T=P((vqe,SY)=>{"use strict";SY.exports=SyntaxError});var c1=P((hqe,EY)=>{"use strict";EY.exports=TypeError});var CY=P((dqe,kY)=>{"use strict";kY.exports=URIError});var DY=P((pqe,LY)=>{"use strict";LY.exports=Math.abs});var RY=P((mqe,FY)=>{"use strict";FY.exports=Math.floor});var PY=P((yqe,qY)=>{"use strict";qY.exports=Math.max});var OY=P((gqe,NY)=>{"use strict";NY.exports=Math.min});var BY=P((bqe,IY)=>{"use strict";IY.exports=Math.pow});var GY=P((xqe,zY)=>{"use strict";zY.exports=Math.round});var HY=P((_qe,UY)=>{"use strict";UY.exports=Number.isNaN||function(r){return r!==r}});var YY=P((wqe,VY)=>{"use strict";var lxe=HY();VY.exports=function(r){return lxe(r)||r===0?r:r<0?-1:1}});var jY=P((Aqe,WY)=>{"use strict";WY.exports=Object.getOwnPropertyDescriptor});var nh=P((Tqe,XY)=>{"use strict";var px=jY();if(px)try{px([],"length")}catch(e){px=null}XY.exports=px});var wy=P((Mqe,ZY)=>{"use strict";var mx=Object.defineProperty||!1;if(mx)try{mx({},"a",{value:1})}catch(e){mx=!1}ZY.exports=mx});var QY=P((Sqe,$Y)=>{"use strict";var JY=typeof Symbol!="undefined"&&Symbol,sxe=dx();$Y.exports=function(){return typeof JY!="function"||typeof Symbol!="function"||typeof JY("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:sxe()}});var QT=P((Eqe,KY)=>{"use strict";KY.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var KT=P((kqe,eW)=>{"use strict";var fxe=JT();eW.exports=fxe.getPrototypeOf||null});var aW=P((Cqe,tW)=>{"use strict";var uxe="Function.prototype.bind called on incompatible ",cxe=Object.prototype.toString,vxe=Math.max,hxe="[object Function]",rW=function(r,t){for(var a=[],n=0;n{"use strict";var mxe=aW();nW.exports=Function.prototype.bind||mxe});var yx=P((Dqe,iW)=>{"use strict";iW.exports=Function.prototype.call});var e8=P((Fqe,oW)=>{"use strict";oW.exports=Function.prototype.apply});var sW=P((Rqe,lW)=>{"use strict";lW.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var uW=P((qqe,fW)=>{"use strict";var yxe=v1(),gxe=e8(),bxe=yx(),xxe=sW();fW.exports=xxe||yxe.call(bxe,gxe)});var vW=P((Pqe,cW)=>{"use strict";var _xe=v1(),wxe=c1(),Axe=yx(),Txe=uW();cW.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new wxe("a function is required");return Txe(_xe,Axe,r)}});var gW=P((Nqe,yW)=>{"use strict";var Mxe=vW(),hW=nh(),pW;try{pW=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var r8=!!pW&&hW&&hW(Object.prototype,"__proto__"),mW=Object,dW=mW.getPrototypeOf;yW.exports=r8&&typeof r8.get=="function"?Mxe([r8.get]):typeof dW=="function"?function(r){return dW(r==null?r:mW(r))}:!1});var AW=P((Oqe,wW)=>{"use strict";var bW=QT(),xW=KT(),_W=gW();wW.exports=bW?function(r){return bW(r)}:xW?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return xW(r)}:_W?function(r){return _W(r)}:null});var MW=P((Iqe,TW)=>{"use strict";var Sxe=Function.prototype.call,Exe=Object.prototype.hasOwnProperty,kxe=v1();TW.exports=kxe.call(Sxe,Exe)});var xx=P((Bqe,DW)=>{"use strict";var Pa,Cxe=JT(),Lxe=bY(),Dxe=_Y(),Fxe=AY(),Rxe=MY(),m1=$T(),p1=c1(),qxe=CY(),Pxe=DY(),Nxe=RY(),Oxe=PY(),Ixe=OY(),Bxe=BY(),zxe=GY(),Gxe=YY(),CW=Function,t8=function(e){try{return CW('"use strict"; return ('+e+").constructor;")()}catch(r){}},Ay=nh(),Uxe=wy(),a8=function(){throw new p1},Hxe=Ay?function(){try{return arguments.callee,a8}catch(e){try{return Ay(arguments,"callee").get}catch(r){return a8}}}():a8,h1=QY()(),Hi=AW(),Vxe=KT(),Yxe=QT(),LW=e8(),Ty=yx(),d1={},Wxe=typeof Uint8Array=="undefined"||!Hi?Pa:Hi(Uint8Array),ih={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Pa:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Pa:ArrayBuffer,"%ArrayIteratorPrototype%":h1&&Hi?Hi([][Symbol.iterator]()):Pa,"%AsyncFromSyncIteratorPrototype%":Pa,"%AsyncFunction%":d1,"%AsyncGenerator%":d1,"%AsyncGeneratorFunction%":d1,"%AsyncIteratorPrototype%":d1,"%Atomics%":typeof Atomics=="undefined"?Pa:Atomics,"%BigInt%":typeof BigInt=="undefined"?Pa:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Pa:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Pa:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Pa:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Lxe,"%eval%":eval,"%EvalError%":Dxe,"%Float16Array%":typeof Float16Array=="undefined"?Pa:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Pa:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Pa:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Pa:FinalizationRegistry,"%Function%":CW,"%GeneratorFunction%":d1,"%Int8Array%":typeof Int8Array=="undefined"?Pa:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Pa:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Pa:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h1&&Hi?Hi(Hi([][Symbol.iterator]())):Pa,"%JSON%":typeof JSON=="object"?JSON:Pa,"%Map%":typeof Map=="undefined"?Pa:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!h1||!Hi?Pa:Hi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Cxe,"%Object.getOwnPropertyDescriptor%":Ay,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Pa:Promise,"%Proxy%":typeof Proxy=="undefined"?Pa:Proxy,"%RangeError%":Fxe,"%ReferenceError%":Rxe,"%Reflect%":typeof Reflect=="undefined"?Pa:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Pa:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!h1||!Hi?Pa:Hi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Pa:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h1&&Hi?Hi(""[Symbol.iterator]()):Pa,"%Symbol%":h1?Symbol:Pa,"%SyntaxError%":m1,"%ThrowTypeError%":Hxe,"%TypedArray%":Wxe,"%TypeError%":p1,"%Uint8Array%":typeof Uint8Array=="undefined"?Pa:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Pa:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Pa:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Pa:Uint32Array,"%URIError%":qxe,"%WeakMap%":typeof WeakMap=="undefined"?Pa:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Pa:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Pa:WeakSet,"%Function.prototype.call%":Ty,"%Function.prototype.apply%":LW,"%Object.defineProperty%":Uxe,"%Object.getPrototypeOf%":Vxe,"%Math.abs%":Pxe,"%Math.floor%":Nxe,"%Math.max%":Oxe,"%Math.min%":Ixe,"%Math.pow%":Bxe,"%Math.round%":zxe,"%Math.sign%":Gxe,"%Reflect.getPrototypeOf%":Yxe};if(Hi)try{null.error}catch(e){SW=Hi(Hi(e)),ih["%Error.prototype%"]=SW}var SW,jxe=function e(r){var t;if(r==="%AsyncFunction%")t=t8("async function () {}");else if(r==="%GeneratorFunction%")t=t8("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=t8("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Hi&&(t=Hi(n.prototype))}return ih[r]=t,t},EW={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},My=v1(),gx=MW(),Xxe=My.call(Ty,Array.prototype.concat),Zxe=My.call(LW,Array.prototype.splice),kW=My.call(Ty,String.prototype.replace),bx=My.call(Ty,String.prototype.slice),Jxe=My.call(Ty,RegExp.prototype.exec),$xe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Qxe=/\\(\\)?/g,Kxe=function(r){var t=bx(r,0,1),a=bx(r,-1);if(t==="%"&&a!=="%")throw new m1("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new m1("invalid intrinsic syntax, expected opening `%`");var n=[];return kW(r,$xe,function(i,o,l,s){n[n.length]=l?kW(s,Qxe,"$1"):o||i}),n},e_e=function(r,t){var a=r,n;if(gx(EW,a)&&(n=EW[a],a="%"+n[0]+"%"),gx(ih,a)){var i=ih[a];if(i===d1&&(i=jxe(a)),typeof i=="undefined"&&!t)throw new p1("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new m1("intrinsic "+r+" does not exist!")};DW.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new p1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new p1('"allowMissing" argument must be a boolean');if(Jxe(/^%?[^%]*%?$/,r)===null)throw new m1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Kxe(r),n=a.length>0?a[0]:"",i=e_e("%"+n+"%",t),o=i.name,l=i.value,s=!1,f=i.alias;f&&(n=f[0],Zxe(a,Xxe([0,1],f)));for(var u=1,c=!0;u=a.length){var g=Ay(l,v);c=!!g,c&&"get"in g&&!("originalValue"in g.get)?l=g.get:l=l[v]}else c=gx(l,v),l=l[v];c&&!s&&(ih[o]=l)}}return l}});var PW=P((zqe,qW)=>{"use strict";var FW=wy(),r_e=$T(),y1=c1(),RW=nh();qW.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new y1("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new y1("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new y1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new y1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new y1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new y1("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!RW&&RW(r,t);if(FW)FW(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new r_e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var i8=P((Gqe,OW)=>{"use strict";var n8=wy(),NW=function(){return!!n8};NW.hasArrayLengthDefineBug=function(){if(!n8)return null;try{return n8([],"length",{value:1}).length!==1}catch(r){return!0}};OW.exports=NW});var UW=P((Uqe,GW)=>{"use strict";var t_e=xx(),IW=PW(),a_e=i8()(),BW=nh(),zW=c1(),n_e=t_e("%Math.floor%");GW.exports=function(r,t){if(typeof r!="function")throw new zW("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||n_e(t)!==t)throw new zW("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&BW){var o=BW(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(a_e?IW(r,"length",t,!0,!0):IW(r,"length",t)),r}});var Sy=P((Hqe,_x)=>{"use strict";var o8=v1(),wx=xx(),i_e=UW(),o_e=c1(),YW=wx("%Function.prototype.apply%"),WW=wx("%Function.prototype.call%"),jW=wx("%Reflect.apply%",!0)||o8.call(WW,YW),HW=wy(),l_e=wx("%Math.max%");_x.exports=function(r){if(typeof r!="function")throw new o_e("a function is required");var t=jW(o8,WW,arguments);return i_e(t,1+l_e(0,r.length-(arguments.length-1)),!0)};var VW=function(){return jW(o8,YW,arguments)};HW?HW(_x.exports,"apply",{value:VW}):_x.exports.apply=VW});var g1=P((Vqe,JW)=>{"use strict";var XW=xx(),ZW=Sy(),s_e=ZW(XW("String.prototype.indexOf"));JW.exports=function(r,t){var a=XW(r,!!t);return typeof a=="function"&&s_e(r,".prototype.")>-1?ZW(a):a}});var KW=P((Yqe,QW)=>{"use strict";var f_e=_y()(),u_e=g1(),l8=u_e("Object.prototype.toString"),Ax=function(r){return f_e&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:l8(r)==="[object Arguments]"},$W=function(r){return Ax(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&l8(r)!=="[object Array]"&&l8(r.callee)==="[object Function]"},c_e=function(){return Ax(arguments)}();Ax.isLegacyArguments=$W;QW.exports=c_e?Ax:$W});var tj=P((Wqe,rj)=>{"use strict";var v_e=Object.prototype.toString,h_e=Function.prototype.toString,d_e=/^\s*(?:function)?\*/,ej=_y()(),s8=Object.getPrototypeOf,p_e=function(){if(!ej)return!1;try{return Function("return function*() {}")()}catch(e){}},f8;rj.exports=function(r){if(typeof r!="function")return!1;if(d_e.test(h_e.call(r)))return!0;if(!ej){var t=v_e.call(r);return t==="[object GeneratorFunction]"}if(!s8)return!1;if(typeof f8=="undefined"){var a=p_e();f8=a?s8(a):!1}return s8(r)===f8}});var oj=P((jqe,ij)=>{"use strict";var nj=Function.prototype.toString,b1=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,c8,Tx;if(typeof b1=="function"&&typeof Object.defineProperty=="function")try{c8=Object.defineProperty({},"length",{get:function(){throw Tx}}),Tx={},b1(function(){throw 42},null,c8)}catch(e){e!==Tx&&(b1=null)}else b1=null;var m_e=/^\s*class\b/,v8=function(r){try{var t=nj.call(r);return m_e.test(t)}catch(a){return!1}},u8=function(r){try{return v8(r)?!1:(nj.call(r),!0)}catch(t){return!1}},Mx=Object.prototype.toString,y_e="[object Object]",g_e="[object Function]",b_e="[object GeneratorFunction]",x_e="[object HTMLAllCollection]",__e="[object HTML document.all class]",w_e="[object HTMLCollection]",A_e=typeof Symbol=="function"&&!!Symbol.toStringTag,T_e=!(0 in[,]),h8=function(){return!1};typeof document=="object"&&(aj=document.all,Mx.call(aj)===Mx.call(document.all)&&(h8=function(r){if((T_e||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=Mx.call(r);return(t===x_e||t===__e||t===w_e||t===y_e)&&r("")==null}catch(a){}return!1}));var aj;ij.exports=b1?function(r){if(h8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{b1(r,null,c8)}catch(t){if(t!==Tx)return!1}return!v8(r)&&u8(r)}:function(r){if(h8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(A_e)return u8(r);if(v8(r))return!1;var t=Mx.call(r);return t!==g_e&&t!==b_e&&!/^\[object HTML/.test(t)?!1:u8(r)}});var d8=P((Xqe,sj)=>{"use strict";var M_e=oj(),S_e=Object.prototype.toString,lj=Object.prototype.hasOwnProperty,E_e=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),S_e.call(r)==="[object Array]"?E_e(r,t,n):typeof r=="string"?k_e(r,t,n):C_e(r,t,n)};sj.exports=L_e});var m8=P((Zqe,fj)=>{"use strict";var p8=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],D_e=typeof globalThis=="undefined"?window:globalThis;fj.exports=function(){for(var r=[],t=0;t{"use strict";var Ex=d8(),F_e=m8(),uj=Sy(),b8=g1(),Sx=nh(),R_e=b8("Object.prototype.toString"),vj=_y()(),cj=typeof globalThis=="undefined"?window:globalThis,g8=F_e(),x8=b8("String.prototype.slice"),y8=Object.getPrototypeOf,q_e=b8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:N_e(r)}return Sx?P_e(r):null}});var xj=P(($qe,bj)=>{"use strict";var pj=d8(),O_e=m8(),w8=g1(),I_e=w8("Object.prototype.toString"),mj=_y()(),Cx=nh(),B_e=typeof globalThis=="undefined"?window:globalThis,yj=O_e(),z_e=w8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return Cx?U_e(r):!1}});var qj=P(Na=>{"use strict";var H_e=KW(),V_e=tj(),Zs=dj(),_j=xj();function x1(e){return e.call.bind(e)}var wj=typeof BigInt!="undefined",Aj=typeof Symbol!="undefined",ts=x1(Object.prototype.toString),Y_e=x1(Number.prototype.valueOf),W_e=x1(String.prototype.valueOf),j_e=x1(Boolean.prototype.valueOf);wj&&(Tj=x1(BigInt.prototype.valueOf));var Tj;Aj&&(Mj=x1(Symbol.prototype.valueOf));var Mj;function ky(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}Na.isArgumentsObject=H_e;Na.isGeneratorFunction=V_e;Na.isTypedArray=_j;function X_e(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Na.isPromise=X_e;function Z_e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):_j(e)||Ej(e)}Na.isArrayBufferView=Z_e;function J_e(e){return Zs(e)==="Uint8Array"}Na.isUint8Array=J_e;function $_e(e){return Zs(e)==="Uint8ClampedArray"}Na.isUint8ClampedArray=$_e;function Q_e(e){return Zs(e)==="Uint16Array"}Na.isUint16Array=Q_e;function K_e(e){return Zs(e)==="Uint32Array"}Na.isUint32Array=K_e;function e5e(e){return Zs(e)==="Int8Array"}Na.isInt8Array=e5e;function r5e(e){return Zs(e)==="Int16Array"}Na.isInt16Array=r5e;function t5e(e){return Zs(e)==="Int32Array"}Na.isInt32Array=t5e;function a5e(e){return Zs(e)==="Float32Array"}Na.isFloat32Array=a5e;function n5e(e){return Zs(e)==="Float64Array"}Na.isFloat64Array=n5e;function i5e(e){return Zs(e)==="BigInt64Array"}Na.isBigInt64Array=i5e;function o5e(e){return Zs(e)==="BigUint64Array"}Na.isBigUint64Array=o5e;function Lx(e){return ts(e)==="[object Map]"}Lx.working=typeof Map!="undefined"&&Lx(new Map);function l5e(e){return typeof Map=="undefined"?!1:Lx.working?Lx(e):e instanceof Map}Na.isMap=l5e;function Dx(e){return ts(e)==="[object Set]"}Dx.working=typeof Set!="undefined"&&Dx(new Set);function s5e(e){return typeof Set=="undefined"?!1:Dx.working?Dx(e):e instanceof Set}Na.isSet=s5e;function Fx(e){return ts(e)==="[object WeakMap]"}Fx.working=typeof WeakMap!="undefined"&&Fx(new WeakMap);function f5e(e){return typeof WeakMap=="undefined"?!1:Fx.working?Fx(e):e instanceof WeakMap}Na.isWeakMap=f5e;function T8(e){return ts(e)==="[object WeakSet]"}T8.working=typeof WeakSet!="undefined"&&T8(new WeakSet);function u5e(e){return T8(e)}Na.isWeakSet=u5e;function Rx(e){return ts(e)==="[object ArrayBuffer]"}Rx.working=typeof ArrayBuffer!="undefined"&&Rx(new ArrayBuffer);function Sj(e){return typeof ArrayBuffer=="undefined"?!1:Rx.working?Rx(e):e instanceof ArrayBuffer}Na.isArrayBuffer=Sj;function qx(e){return ts(e)==="[object DataView]"}qx.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&qx(new DataView(new ArrayBuffer(1),0,1));function Ej(e){return typeof DataView=="undefined"?!1:qx.working?qx(e):e instanceof DataView}Na.isDataView=Ej;var A8=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Ey(e){return ts(e)==="[object SharedArrayBuffer]"}function kj(e){return typeof A8=="undefined"?!1:(typeof Ey.working=="undefined"&&(Ey.working=Ey(new A8)),Ey.working?Ey(e):e instanceof A8)}Na.isSharedArrayBuffer=kj;function c5e(e){return ts(e)==="[object AsyncFunction]"}Na.isAsyncFunction=c5e;function v5e(e){return ts(e)==="[object Map Iterator]"}Na.isMapIterator=v5e;function h5e(e){return ts(e)==="[object Set Iterator]"}Na.isSetIterator=h5e;function d5e(e){return ts(e)==="[object Generator]"}Na.isGeneratorObject=d5e;function p5e(e){return ts(e)==="[object WebAssembly.Module]"}Na.isWebAssemblyCompiledModule=p5e;function Cj(e){return ky(e,Y_e)}Na.isNumberObject=Cj;function Lj(e){return ky(e,W_e)}Na.isStringObject=Lj;function Dj(e){return ky(e,j_e)}Na.isBooleanObject=Dj;function Fj(e){return wj&&ky(e,Tj)}Na.isBigIntObject=Fj;function Rj(e){return Aj&&ky(e,Mj)}Na.isSymbolObject=Rj;function m5e(e){return Cj(e)||Lj(e)||Dj(e)||Fj(e)||Rj(e)}Na.isBoxedPrimitive=m5e;function y5e(e){return typeof Uint8Array!="undefined"&&(Sj(e)||kj(e))}Na.isAnyArrayBuffer=y5e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Na,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var Nj=P((Kqe,Pj)=>{Pj.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var Oj=P((ePe,M8)=>{typeof Object.create=="function"?M8.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:M8.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var w1=P(Oa=>{var Ij=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),C8(r)?t.showHidden=r:r&&Oa._extend(t,r),lh(t.showHidden)&&(t.showHidden=!1),lh(t.depth)&&(t.depth=2),lh(t.colors)&&(t.colors=!1),lh(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=b5e),Ix(t,e,t.depth)}Oa.inspect=fv;fv.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};fv.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function b5e(e,r){var t=fv.styles[r];return t?"\x1B["+fv.colors[t][0]+"m"+e+"\x1B["+fv.colors[t][1]+"m":e}function x5e(e,r){return e}function _5e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function Ix(e,r,t){if(e.customInspect&&r&&Ox(r.inspect)&&r.inspect!==Oa.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Gx(a)||(a=Ix(e,a,t)),a}var n=w5e(e,r);if(n)return n;var i=Object.keys(r),o=_5e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),Ly(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return S8(r);if(i.length===0){if(Ox(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(Cy(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Bx(r))return e.stylize(Date.prototype.toString.call(r),"date");if(Ly(r))return S8(r)}var s="",f=!1,u=["{","}"];if(zj(r)&&(f=!0,u=["[","]"]),Ox(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(Cy(r)&&(s=" "+RegExp.prototype.toString.call(r)),Bx(r)&&(s=" "+Date.prototype.toUTCString.call(r)),Ly(r)&&(s=" "+S8(r)),i.length===0&&(!f||r.length==0))return u[0]+s+u[1];if(t<0)return Cy(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return f?v=A5e(e,r,t,o,i):v=i.map(function(d){return k8(e,r,t,o,d,f)}),e.seen.pop(),T5e(v,s,u)}function w5e(e,r){if(lh(r))return e.stylize("undefined","undefined");if(Gx(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(Gj(r))return e.stylize(""+r,"number");if(C8(r))return e.stylize(""+r,"boolean");if(zx(r))return e.stylize("null","null")}function S8(e){return"["+Error.prototype.toString.call(e)+"]"}function A5e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o{var Nne=Object.create;var Ag=Object.defineProperty;var Ine=Object.getOwnPropertyDescriptor;var One=Object.getOwnPropertyNames;var Bne=Object.getPrototypeOf,zne=Object.prototype.hasOwnProperty;var Tg=(e,r)=>()=>(e&&(r=e(e=0)),r);var P=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Gne=(e,r)=>{for(var t in r)Ag(e,t,{get:r[t],enumerable:!0})},pM=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of One(r))!zne.call(e,n)&&n!==t&&Ag(e,n,{get:()=>r[n],enumerable:!(a=Ine(r,n))||a.enumerable});return e};var Une=(e,r,t)=>(t=e!=null?Nne(Bne(e)):{},pM(r||!e||!e.__esModule?Ag(t,"default",{value:e,enumerable:!0}):t,e)),Hne=e=>pM(Ag({},"__esModule",{value:!0}),e);var Mg=P(mM=>{"use strict";mM.version="3.1.2"});var gM=P((yM,Sg)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Sg!="undefined"&&Sg.exports&&(Sg.exports=t[r])})("Promise",typeof window!="undefined"?window:yM,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(A){return setImmediate(A)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(A,_,x,T){return Object.defineProperty(A,_,{value:x,writable:!0,configurable:T!==!1})}}catch(b){r=function(_,x,T){return _[x]=T,_}}a=function(){var A,_,x;function T(E,M){this.fn=E,this.self=M,this.next=void 0}return{add:function(M,C){x=new T(M,C),_?_.next=x:A=x,_=x,x=void 0},drain:function(){var M=A;for(A=_=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(b,A){a.add(b,A),t||(t=i(a.drain))}function l(b){var A,_=typeof b;return b!=null&&(_=="object"||_=="function")&&(A=b.then),typeof A=="function"?A:!1}function s(){for(var b=0;b0&&o(s,_))}catch(x){c.call(new d(_),x)}}}function c(b){var A=this;A.triggered||(A.triggered=!0,A.def&&(A=A.def),A.msg=b,A.state=2,A.chain.length>0&&o(s,A))}function v(b,A,_,x){for(var T=0;T{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var w=g.length,k=new Array(w);w--;)k[w]=g[w];return k}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,f=this.CSSStyleDeclaration.prototype,u=f.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,k){s.call(this,g,w,k+"")},f.setProperty=function(g,w,k){u.call(this,g,w+"",k)}}e.ascending=c;function c(h,g){return hg?1:h>=g?0:NaN}e.descending=function(h,g){return gh?1:g>=h?0:NaN},e.min=function(h,g){var w=-1,k=h.length,L,D;if(arguments.length===1){for(;++w=D){L=D;break}for(;++wD&&(L=D)}else{for(;++w=D){L=D;break}for(;++wD&&(L=D)}return L},e.max=function(h,g){var w=-1,k=h.length,L,D;if(arguments.length===1){for(;++w=D){L=D;break}for(;++wL&&(L=D)}else{for(;++w=D){L=D;break}for(;++wL&&(L=D)}return L},e.extent=function(h,g){var w=-1,k=h.length,L,D,G;if(arguments.length===1){for(;++w=D){L=G=D;break}for(;++wD&&(L=D),G=D){L=G=D;break}for(;++wD&&(L=D),G1)return G/(j-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,w,k,L){for(arguments.length<3&&(k=0),arguments.length<4&&(L=g.length);k>>1;h(g[D],w)<0?k=D+1:L=D}return k},right:function(g,w,k,L){for(arguments.length<3&&(k=0),arguments.length<4&&(L=g.length);k>>1;h(g[D],w)>0?L=D:k=D+1}return k}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(h){return p(h.length===1?function(g,w){return c(h(g),w)}:h)},e.shuffle=function(h,g,w){(k=arguments.length)<3&&(w=h.length,k<2&&(g=0));for(var k=w-g,L,D;k;)D=Math.random()*k--|0,L=h[k+g],h[k+g]=h[D+g],h[D+g]=L;return h},e.permute=function(h,g){for(var w=g.length,k=new Array(w);w--;)k[w]=h[g[w]];return k},e.pairs=function(h){for(var g=0,w=h.length-1,k,L=h[0],D=new Array(w<0?0:w);g=0;)for(G=h[g],w=G.length;--w>=0;)D[--L]=G[w];return D};var b=Math.abs;e.range=function(h,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=h,h=0)),(g-h)/w===1/0)throw new Error("infinite range");var k=[],L=A(b(w)),D=-1,G;if(h*=L,g*=L,w*=L,w<0)for(;(G=h+w*++D)>g;)k.push(G/L);else for(;(G=h+w*++D)=g.length)return L?L.call(h,j):k?j.sort(k):j;for(var oe=-1,ye=j.length,ge=g[ne++],Xe,Ke,Me,qe=new x,Ue;++oe=g.length)return R;var ne=[],oe=w[j++];return R.forEach(function(ye,ge){ne.push({key:ye,values:G(ge,j)})}),oe?ne.sort(function(ye,ge){return oe(ye.key,ge.key)}):ne}return h.map=function(R,j){return D(j,R,0)},h.entries=function(R){return G(D(e.map,R,0),0)},h.key=function(R){return g.push(R),h},h.sortKeys=function(R){return w[g.length-1]=R,h},h.sortValues=function(R){return k=R,h},h.rollup=function(R){return L=R,h},h},e.set=function(h){var g=new X;if(h)for(var w=0,k=h.length;w=0&&(k=h.slice(w+1),h=h.slice(0,w)),h)return arguments.length<2?this[h].on(k):this[h].on(k,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(k,null);return this}};function ue(h){var g=[],w=new x;function k(){for(var L=g,D=-1,G=L.length,R;++D=0&&(w=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),je.hasOwnProperty(w)?{space:je[w],local:h}:h}},Ve.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var w=this.node();return h=e.ns.qualify(h),h.local?w.getAttributeNS(h.space,h.local):w.getAttribute(h)}for(g in h)this.each(vr(g,h[g]));return this}return this.each(vr(h,g))};function vr(h,g){h=e.ns.qualify(h);function w(){this.removeAttribute(h)}function k(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function D(){this.setAttributeNS(h.space,h.local,g)}function G(){var j=g.apply(this,arguments);j==null?this.removeAttribute(h):this.setAttribute(h,j)}function R(){var j=g.apply(this,arguments);j==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,j)}return g==null?h.local?k:w:typeof g=="function"?h.local?R:G:h.local?D:L}function rr(h){return h.trim().replace(/\s+/g," ")}Ve.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var w=this.node(),k=(h=Lr(h)).length,L=-1;if(g=w.classList){for(;++L=0;)(D=w[k])&&(L&&L!==D.nextSibling&&L.parentNode.insertBefore(D,L),L=D);return this},Ve.sort=function(h){h=sr.apply(this,arguments);for(var g=-1,w=this.length;++g=g&&(g=L+1);!(j=G[g])&&++g0&&(h=h.slice(0,L));var G=Ir.get(h);G&&(h=G,D=Yr);function R(){var oe=this[k];oe&&(this.removeEventListener(h,oe,oe.$),delete this[k])}function j(){var oe=D(g,t(arguments));R.call(this),this.addEventListener(h,this[k]=oe,oe.$=w),oe._=g}function ne(){var oe=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),ye;for(var ge in this)if(ye=ge.match(oe)){var Xe=this[ge];this.removeEventListener(ye[1],Xe,Xe.$),delete this[ge]}}return L?g?j:R:g?J:ne}var Ir=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ir.forEach(function(h){"on"+h in a&&Ir.remove(h)});function at(h,g){return function(w){var k=e.event;e.event=w,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=k}}}function Yr(h,g){var w=at(h,g);return function(k){var L=this,D=k.relatedTarget;(!D||D!==L&&!(D.compareDocumentPosition(L)&8))&&w.call(L,k)}}var nt,vt=0;function ot(h){var g=".dragsuppress-"+ ++vt,w="click"+g,k=e.select(i(h)).on("touchmove"+g,De).on("dragstart"+g,De).on("selectstart"+g,De);if(nt==null&&(nt="onselectstart"in h?!1:Q(h.style,"userSelect")),nt){var L=n(h).style,D=L[nt];L[nt]="none"}return function(G){if(k.on(g,null),nt&&(L[nt]=D),G){var R=function(){k.on(w,null)};k.on(w,function(){De(),R()},!0),setTimeout(R,0)}}}e.mouse=function(h){return pr(h,Ie())};var et=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function pr(h,g){g.changedTouches&&(g=g.changedTouches[0]);var w=h.ownerSVGElement||h;if(w.createSVGPoint){var k=w.createSVGPoint();if(et<0){var L=i(h);if(L.scrollX||L.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=w[0][0].getScreenCTM();et=!(D.f||D.e),w.remove()}}return et?(k.x=g.pageX,k.y=g.pageY):(k.x=g.clientX,k.y=g.clientY),k=k.matrixTransform(h.getScreenCTM().inverse()),[k.x,k.y]}var G=h.getBoundingClientRect();return[g.clientX-G.left-h.clientLeft,g.clientY-G.top-h.clientTop]}e.touch=function(h,g,w){if(arguments.length<3&&(w=g,g=Ie().changedTouches),g){for(var k=0,L=g.length,D;k0?1:h<0?-1:0}function Ta(h,g,w){return(g[0]-h[0])*(w[1]-h[1])-(g[1]-h[1])*(w[0]-h[0])}function qn(h){return h>1?0:h<-1?cr:Math.acos(h)}function bn(h){return h>1?yt:h<-1?-yt:Math.asin(h)}function ja(h){return((h=Math.exp(h))-1/h)/2}function cn(h){return((h=Math.exp(h))+1/h)/2}function Xn(h){return((h=Math.exp(2*h))-1)/(h+1)}function vn(h){return(h=Math.sin(h/2))*h}var wn=Math.SQRT2,Mi=2,Pt=4;e.interpolateZoom=function(h,g){var w=h[0],k=h[1],L=h[2],D=g[0],G=g[1],R=g[2],j=D-w,ne=G-k,oe=j*j+ne*ne,ye,ge;if(oe0&&(ht=ht.transition().duration(G)),ht.call(tr.event)}function kt(){qe&&qe.domain(Me.range().map(function(ht){return(ht-h.x)/h.k}).map(Me.invert)),er&&er.domain(Ue.range().map(function(ht){return(ht-h.y)/h.k}).map(Ue.invert))}function Ct(ht){R++||ht({type:"zoomstart"})}function Vt(ht){kt(),ht({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function Ft(ht){--R||(ht({type:"zoomend"}),w=null)}function It(){var ht=this,Yt=Ke.of(ht,arguments),jt=0,ca=e.select(i(ht)).on(ne,$n).on(oe,Qn),Xa=Le(e.mouse(ht)),Cn=ot(ht);Ac.call(ht),Ct(Yt);function $n(){jt=1,tt(e.mouse(ht),Xa),Vt(Yt)}function Qn(){ca.on(ne,null).on(oe,null),Cn(jt),Ft(Yt)}}function pa(){var ht=this,Yt=Ke.of(ht,arguments),jt={},ca=0,Xa,Cn=".zoom-"+e.event.changedTouches[0].identifier,$n="touchmove"+Cn,Qn="touchend"+Cn,Li=[],S=e.select(ht),B=ot(ht);he(),Ct(Yt),S.on(j,null).on(ge,he);function V(){var _e=e.touches(ht);return Xa=h.k,_e.forEach(function(Ye){Ye.identifier in jt&&(jt[Ye.identifier]=Le(Ye))}),_e}function he(){var _e=e.event.target;e.select(_e).on($n,xe).on(Qn,we),Li.push(_e);for(var Ye=e.event.changedTouches,or=0,nr=Ye.length;or1){var Fr=lr[0],br=lr[1],Ne=Fr[0]-br[0],fe=Fr[1]-br[1];ca=Ne*Ne+fe*fe}}function xe(){var _e=e.touches(ht),Ye,or,nr,lr;Ac.call(ht);for(var Zr=0,Fr=_e.length;Zr1?1:g,w=w<0?0:w>1?1:w,L=w<=.5?w*(1+g):w+g-w*g,k=2*w-L;function D(R){return R>360?R-=360:R<0&&(R+=360),R<60?k+(L-k)*R/60:R<180?L:R<240?k+(L-k)*(240-R)/60:k}function G(R){return Math.round(D(R)*255)}return new hi(G(h+120),G(h),G(h-120))}e.hcl=tn;function tn(h,g,w){return this instanceof tn?(this.h=+h,this.c=+g,void(this.l=+w)):arguments.length<2?h instanceof tn?new tn(h.h,h.c,h.l):h instanceof Rn?Oo(h.l,h.a,h.b):Oo((h=_t((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new tn(h,g,w)}var Wi=tn.prototype=new hn;Wi.brighter=function(h){return new tn(this.h,this.c,Math.min(100,this.l+qa*(arguments.length?h:1)))},Wi.darker=function(h){return new tn(this.h,this.c,Math.max(0,this.l-qa*(arguments.length?h:1)))},Wi.rgb=function(){return ji(this.h,this.c,this.l).rgb()};function ji(h,g,w){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Rn(w,Math.cos(h*=Nt)*g,Math.sin(h)*g)}e.lab=Rn;function Rn(h,g,w){return this instanceof Rn?(this.l=+h,this.a=+g,void(this.b=+w)):arguments.length<2?h instanceof Rn?new Rn(h.l,h.a,h.b):h instanceof tn?ji(h.h,h.c,h.l):_t((h=hi(h)).r,h.g,h.b):new Rn(h,g,w)}var qa=18,Zn=.95047,fs=1,us=1.08883,kl=Rn.prototype=new hn;kl.brighter=function(h){return new Rn(Math.min(100,this.l+qa*(arguments.length?h:1)),this.a,this.b)},kl.darker=function(h){return new Rn(Math.max(0,this.l-qa*(arguments.length?h:1)),this.a,this.b)},kl.rgb=function(){return Zu(this.l,this.a,this.b)};function Zu(h,g,w){var k=(h+16)/116,L=k+g/500,D=k-w/200;return L=Yf(L)*Zn,k=Yf(k)*fs,D=Yf(D)*us,new hi(Xi(3.2404542*L-1.5371385*k-.4985314*D),Xi(-.969266*L+1.8760108*k+.041556*D),Xi(.0556434*L-.2040259*k+1.0572252*D))}function Oo(h,g,w){return h>0?new tn(Math.atan2(w,g)*ta,Math.sqrt(g*g+w*w),h):new tn(NaN,NaN,h)}function Yf(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function Wf(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function Xi(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=hi;function hi(h,g,w){return this instanceof hi?(this.r=~~h,this.g=~~g,void(this.b=~~w)):arguments.length<2?h instanceof hi?new hi(h.r,h.g,h.b):$t(""+h,hi,Ga):new hi(h,g,w)}function Oi(h){return new hi(h>>16,h>>8&255,h&255)}function Cl(h){return Oi(h)+""}var di=hi.prototype=new hn;di.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,w=this.g,k=this.b,L=30;return!g&&!w&&!k?new hi(L,L,L):(g&&g>4,k=k>>4|k,L=j&240,L=L>>4|L,D=j&15,D=D<<4|D):h.length===7&&(k=(j&16711680)>>16,L=(j&65280)>>8,D=j&255)),g(k,L,D))}function ua(h,g,w){var k=Math.min(h/=255,g/=255,w/=255),L=Math.max(h,g,w),D=L-k,G,R,j=(L+k)/2;return D?(R=j<.5?D/(L+k):D/(2-L-k),h==L?G=(g-w)/D+(g0&&j<1?0:G),new La(G,R,j)}function _t(h,g,w){h=Jn(h),g=Jn(g),w=Jn(w);var k=Wf((.4124564*h+.3575761*g+.1804375*w)/Zn),L=Wf((.2126729*h+.7151522*g+.072175*w)/fs),D=Wf((.0193339*h+.119192*g+.9503041*w)/us);return Rn(116*L-16,500*(k-L),200*(L-D))}function Jn(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Ua(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var Pn=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Pn.forEach(function(h,g){Pn.set(h,Oi(g))});function ra(h){return typeof h=="function"?h:function(){return h}}e.functor=ra,e.xhr=Ao(le);function Ao(h){return function(g,w,k){return arguments.length===2&&typeof w=="function"&&(k=w,w=null),ol(g,w,h,k)}}function ol(h,g,w,k){var L={},D=e.dispatch("beforesend","progress","load","error"),G={},R=new XMLHttpRequest,j=null;self.XDomainRequest&&!("withCredentials"in R)&&/^(http(s)?:)?\/\//.test(h)&&(R=new XDomainRequest),"onload"in R?R.onload=R.onerror=ne:R.onreadystatechange=function(){R.readyState>3&&ne()};function ne(){var oe=R.status,ye;if(!oe&&Jp(R)||oe>=200&&oe<300||oe===304){try{ye=w.call(L,R)}catch(ge){D.error.call(L,ge);return}D.load.call(L,ye)}else D.error.call(L,R)}return R.onprogress=function(oe){var ye=e.event;e.event=oe;try{D.progress.call(L,R)}finally{e.event=ye}},L.header=function(oe,ye){return oe=(oe+"").toLowerCase(),arguments.length<2?G[oe]:(ye==null?delete G[oe]:G[oe]=ye+"",L)},L.mimeType=function(oe){return arguments.length?(g=oe==null?null:oe+"",L):g},L.responseType=function(oe){return arguments.length?(j=oe,L):j},L.response=function(oe){return w=oe,L},["get","post"].forEach(function(oe){L[oe]=function(){return L.send.apply(L,[oe].concat(t(arguments)))}}),L.send=function(oe,ye,ge){if(arguments.length===2&&typeof ye=="function"&&(ge=ye,ye=null),R.open(oe,h,!0),g!=null&&!("accept"in G)&&(G.accept=g+",*/*"),R.setRequestHeader)for(var Xe in G)R.setRequestHeader(Xe,G[Xe]);return g!=null&&R.overrideMimeType&&R.overrideMimeType(g),j!=null&&(R.responseType=j),ge!=null&&L.on("error",ge).on("load",function(Ke){ge(null,Ke)}),D.beforesend.call(L,R),R.send(ye==null?null:ye),L},L.abort=function(){return R.abort(),L},e.rebind(L,D,"on"),k==null?L:L.get(Si(k))}function Si(h){return h.length===1?function(g,w){h(g==null?w:null)}:h}function Jp(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var w=new RegExp('["'+h+` +]`),k=h.charCodeAt(0);function L(ne,oe,ye){arguments.length<3&&(ye=oe,oe=null);var ge=ol(ne,g,oe==null?D:G(oe),ye);return ge.row=function(Xe){return arguments.length?ge.response((oe=Xe)==null?D:G(Xe)):oe},ge}function D(ne){return L.parse(ne.responseText)}function G(ne){return function(oe){return L.parse(oe.responseText,ne)}}L.parse=function(ne,oe){var ye;return L.parseRows(ne,function(ge,Xe){if(ye)return ye(ge,Xe-1);var Ke=function(Me){for(var qe={},Ue=ge.length,er=0;er=Ke)return ge;if(er)return er=!1,ye;var Dr=Me;if(ne.charCodeAt(Dr)===34){for(var zr=Dr;zr++24?(isFinite(g)&&(clearTimeout(pi),pi=setTimeout(To,g)),Bo=0):(Bo=1,rf(To))}e.timer.flush=function(){Dl(),Ju()};function Dl(){for(var h=Date.now(),g=An;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function Ju(){for(var h,g=An,w=1/0;g;)g.c?(g.t=0;--R)Me.push(L[ne[ye[R]][2]]);for(R=+Xe;R1&&Ta(h[w[k-2]],h[w[k-1]],h[L])<=0;)--k;w[k++]=L}return w.slice(0,k)}function $p(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return Ae(h,$u),h};var $u=e.geom.polygon.prototype=[];$u.area=function(){for(var h=-1,g=this.length,w,k=this[g-1],L=0;++hOe)R=R.L;else if(G=g-Rv(R,w),G>Oe){if(!R.R){k=R;break}R=R.R}else{D>-Oe?(k=R.P,L=R):G>-Oe?(k=R,L=R.N):k=L=R;break}var j=Qu(h);if(mi.insert(k,j),!(!k&&!L)){if(k===L){of(k),L=Qu(k.site),mi.insert(j,L),j.edge=L.edge=Jf(k.site,j.site),Bi(k),Bi(L);return}if(!L){j.edge=Jf(k.site,j.site);return}of(k),of(L);var ne=k.site,oe=ne.x,ye=ne.y,ge=h.x-oe,Xe=h.y-ye,Ke=L.site,Me=Ke.x-oe,qe=Ke.y-ye,Ue=2*(ge*qe-Xe*Me),er=ge*ge+Xe*Xe,tr=Me*Me+qe*qe,Le={x:(qe*er-Xe*tr)/Ue+oe,y:(ge*tr-Me*er)/Ue+ye};ql(L.edge,ne,Ke,Le),j.edge=Jf(ne,h,null,Le),L.edge=Jf(h,Ke,null,Le),Bi(k),Bi(L)}}function Ku(h,g){var w=h.site,k=w.x,L=w.y,D=L-g;if(!D)return k;var G=h.P;if(!G)return-1/0;w=G.site;var R=w.x,j=w.y,ne=j-g;if(!ne)return R;var oe=R-k,ye=1/D-1/ne,ge=oe/ne;return ye?(-ge+Math.sqrt(ge*ge-2*ye*(oe*oe/(-2*ne)-j+ne/2+L-D/2)))/ye+k:(k+R)/2}function Rv(h,g){var w=h.N;if(w)return Ku(w,g);var k=h.site;return k.y===g?k.x:1/0}function ec(h){this.site=h,this.edges=[]}ec.prototype.prepare=function(){for(var h=this.edges,g=h.length,w;g--;)w=h[g].edge,(!w.b||!w.a)&&h.splice(g,1);return h.sort(nf),h.length};function So(h){for(var g=h[0][0],w=h[1][0],k=h[0][1],L=h[1][1],D,G,R,j,ne=Mo,oe=ne.length,ye,ge,Xe,Ke,Me,qe;oe--;)if(ye=ne[oe],!(!ye||!ye.prepare()))for(Xe=ye.edges,Ke=Xe.length,ge=0;geOe||b(j-G)>Oe)&&(Xe.splice(ge,0,new rc(e1(ye.site,qe,b(R-g)Oe?{x:g,y:b(D-g)Oe?{x:b(G-L)Oe?{x:w,y:b(D-w)Oe?{x:b(G-k)=-yr)){var ge=j*j+ne*ne,Xe=oe*oe+qe*qe,Ke=(qe*ge-ne*Xe)/ye,Me=(j*Xe-oe*ge)/ye,qe=Me+R,Ue=af.pop()||new Xf;Ue.arc=h,Ue.site=L,Ue.x=Ke+G,Ue.y=qe+Math.sqrt(Ke*Ke+Me*Me),Ue.cy=qe,h.circle=Ue;for(var er=null,tr=ll._;tr;)if(Ue.y0)){if(Me/=Xe,Xe<0){if(Me0){if(Me>ge)return;Me>ye&&(ye=Me)}if(Me=w-R,!(!Xe&&Me<0)){if(Me/=Xe,Xe<0){if(Me>ge)return;Me>ye&&(ye=Me)}else if(Xe>0){if(Me0)){if(Me/=Ke,Ke<0){if(Me0){if(Me>ge)return;Me>ye&&(ye=Me)}if(Me=k-j,!(!Ke&&Me<0)){if(Me/=Ke,Ke<0){if(Me>ge)return;Me>ye&&(ye=Me)}else if(Ke>0){if(Me0&&(L.a={x:R+ye*Xe,y:j+ye*Ke}),ge<1&&(L.b={x:R+ge*Xe,y:j+ge*Ke}),L}}}}}}function Kp(h){for(var g=Uo,w=Qp(h[0][0],h[0][1],h[1][0],h[1][1]),k=g.length,L;k--;)L=g[k],(!Zf(L,h)||!w(L)||b(L.a.x-L.b.x)=D)return;if(oe>ge){if(!k)k={x:Ke,y:G};else if(k.y>=R)return;w={x:Ke,y:R}}else{if(!k)k={x:Ke,y:R};else if(k.y1)if(oe>ge){if(!k)k={x:(G-Ue)/qe,y:G};else if(k.y>=R)return;w={x:(R-Ue)/qe,y:R}}else{if(!k)k={x:(R-Ue)/qe,y:R};else if(k.y=D)return;w={x:D,y:qe*D+Ue}}else{if(!k)k={x:D,y:qe*D+Ue};else if(k.x=oe&&Ue.x<=ge&&Ue.y>=ye&&Ue.y<=Xe?[[oe,Xe],[ge,Xe],[ge,ye],[oe,ye]]:[];er.point=j[Me]}),ne}function R(j){return j.map(function(ne,oe){return{x:Math.round(k(ne,oe)/Oe)*Oe,y:Math.round(L(ne,oe)/Oe)*Oe,i:oe}})}return G.links=function(j){return fl(R(j)).edges.filter(function(ne){return ne.l&&ne.r}).map(function(ne){return{source:j[ne.l.i],target:j[ne.r.i]}})},G.triangles=function(j){var ne=[];return fl(R(j)).cells.forEach(function(oe,ye){for(var ge=oe.site,Xe=oe.edges.sort(nf),Ke=-1,Me=Xe.length,qe,Ue,er=Xe[Me-1].edge,tr=er.l===ge?er.r:er.l;++Ketr&&(tr=oe.x),oe.y>Le&&(Le=oe.y),Xe.push(oe.x),Ke.push(oe.y);else for(Me=0;Metr&&(tr=Dr),zr>Le&&(Le=zr),Xe.push(Dr),Ke.push(zr)}var tt=tr-Ue,mt=Le-er;tt>mt?Le=er+tt:tr=Ue+mt;function kt(Ft,It,pa,xn,Da,ht,Yt,jt){if(!(isNaN(pa)||isNaN(xn)))if(Ft.leaf){var ca=Ft.x,Xa=Ft.y;if(ca!=null)if(b(ca-pa)+b(Xa-xn)<.01)Ct(Ft,It,pa,xn,Da,ht,Yt,jt);else{var Cn=Ft.point;Ft.x=Ft.y=Ft.point=null,Ct(Ft,Cn,ca,Xa,Da,ht,Yt,jt),Ct(Ft,It,pa,xn,Da,ht,Yt,jt)}else Ft.x=pa,Ft.y=xn,Ft.point=It}else Ct(Ft,It,pa,xn,Da,ht,Yt,jt)}function Ct(Ft,It,pa,xn,Da,ht,Yt,jt){var ca=(Da+Yt)*.5,Xa=(ht+jt)*.5,Cn=pa>=ca,$n=xn>=Xa,Qn=$n<<1|Cn;Ft.leaf=!1,Ft=Ft.nodes[Qn]||(Ft.nodes[Qn]=kh()),Cn?Da=ca:Yt=ca,$n?ht=Xa:jt=Xa,kt(Ft,It,pa,xn,Da,ht,Yt,jt)}var Vt=kh();if(Vt.add=function(Ft){kt(Vt,Ft,+ye(Ft,++Me),+ge(Ft,Me),Ue,er,tr,Le)},Vt.visit=function(Ft){$f(Ft,Vt,Ue,er,tr,Le)},Vt.find=function(Ft){return Pv(Vt,Ft[0],Ft[1],Ue,er,tr,Le)},Me=-1,g==null){for(;++MeD||ge>G||Xe=Dr,mt=w>=zr,kt=mt<<1|tt,Ct=kt+4;ktw&&(D=g.slice(w,D),R[G]?R[G]+=D:R[++G]=D),(k=k[0])===(L=L[0])?R[G]?R[G]+=L:R[++G]=L:(R[++G]=null,j.push({i:G,x:Ei(k,L)})),w=Qf.lastIndex;return w=0&&!(k=e.interpolators[w](h,g)););return k}e.interpolators=[function(h,g){var w=typeof g;return(w==="string"?Pn.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?Eo:Tn:g instanceof hn?Eo:Array.isArray(g)?sf:w==="object"&&isNaN(g)?Ch:Ei)(h,g)}],e.interpolateArray=sf;function sf(h,g){var w=[],k=[],L=h.length,D=g.length,G=Math.min(h.length,g.length),R;for(R=0;R=0?h.slice(0,g):h,k=g>=0?h.slice(g+1):"in";return w=Nv.get(w)||ac,k=Iv.get(k)||le,i1(k(w.apply(null,r.call(arguments,1))))};function i1(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function so(h){return function(g){return 1-h(1-g)}}function wa(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function Ov(h){return h*h}function Bv(h){return h*h*h}function Ji(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,w=g*h;return 4*(h<.5?w:3*(h-g)+w-.75)}function zv(h){return function(g){return Math.pow(g,h)}}function Gv(h){return 1-Math.cos(h*yt)}function o1(h){return Math.pow(2,10*(h-1))}function l1(h){return 1-Math.sqrt(1-h*h)}function s1(h,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/xt*Math.asin(1/h):(h=1,w=g/4),function(k){return 1+h*Math.pow(2,-10*k)*Math.sin((k-w)*xt/g)}}function f1(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function Kf(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=Uv;function Uv(h,g){h=e.hcl(h),g=e.hcl(g);var w=h.h,k=h.c,L=h.l,D=g.h-w,G=g.c-k,R=g.l-L;return isNaN(G)&&(G=0,k=isNaN(k)?g.c:k),isNaN(D)?(D=0,w=isNaN(w)?g.h:w):D>180?D-=360:D<-180&&(D+=360),function(j){return ji(w+D*j,k+G*j,L+R*j)+""}}e.interpolateHsl=u1;function u1(h,g){h=e.hsl(h),g=e.hsl(g);var w=h.h,k=h.s,L=h.l,D=g.h-w,G=g.s-k,R=g.l-L;return isNaN(G)&&(G=0,k=isNaN(k)?g.s:k),isNaN(D)?(D=0,w=isNaN(w)?g.h:w):D>180?D-=360:D<-180&&(D+=360),function(j){return Ga(w+D*j,k+G*j,L+R*j)+""}}e.interpolateLab=Hv;function Hv(h,g){h=e.lab(h),g=e.lab(g);var w=h.l,k=h.a,L=h.b,D=g.l-w,G=g.a-k,R=g.b-L;return function(j){return Zu(w+D*j,k+G*j,L+R*j)+""}}e.interpolateRound=nc;function nc(h,g){return g-=h,function(w){return Math.round(h+g*w)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var k=g.transform.baseVal.consolidate()}return new Lh(k?k.matrix:ms)})(h)};function Lh(h){var g=[h.a,h.b],w=[h.c,h.d],k=Dh(g),L=Rl(g,w),D=Dh(ki(w,g,-L))||0;g[0]*w[1]180?g+=360:g-h>180&&(h+=360),k.push({i:w.push(Pl(w)+"rotate(",null,")")-2,x:Ei(h,g)})):g&&w.push(Pl(w)+"rotate("+g+")")}function Wv(h,g,w,k){h!==g?k.push({i:w.push(Pl(w)+"skewX(",null,")")-2,x:Ei(h,g)}):g&&w.push(Pl(w)+"skewX("+g+")")}function jv(h,g,w,k){if(h[0]!==g[0]||h[1]!==g[1]){var L=w.push(Pl(w)+"scale(",null,",",null,")");k.push({i:L-4,x:Ei(h[0],g[0])},{i:L-2,x:Ei(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(Pl(w)+"scale("+g+")")}function ic(h,g){var w=[],k=[];return h=e.transform(h),g=e.transform(g),Vv(h.translate,g.translate,w,k),Yv(h.rotate,g.rotate,w,k),Wv(h.skew,g.skew,w,k),jv(h.scale,g.scale,w,k),h=g=null,function(L){for(var D=-1,G=k.length,R;++D0?D=Le:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:D=0})):Le>0&&(g.start({type:"start",alpha:D=Le}),w=zo(h.tick)),h):D},h.start=function(){var Le,Dr=Xe.length,zr=Ke.length,tt=k[0],mt=k[1],kt,Ct;for(Le=0;Le=0;)D.push(oe=ne[j]),oe.parent=R,oe.depth=R.depth+1;w&&(R.value=0),R.children=ne}else w&&(R.value=+w.call(k,R,R.depth)||0),delete R.children;return Ho(L,function(ye){var ge,Xe;h&&(ge=ye.children)&&ge.sort(h),w&&(Xe=ye.parent)&&(Xe.value+=ye.value)}),G}return k.sort=function(L){return arguments.length?(h=L,k):h},k.children=function(L){return arguments.length?(g=L,k):g},k.value=function(L){return arguments.length?(w=L,k):w},k.revalue=function(L){return w&&(ru(L,function(D){D.children&&(D.value=0)}),Ho(L,function(D){var G;D.children||(D.value=+w.call(k,D,D.depth)||0),(G=D.parent)&&(G.value+=D.value)})),L},k};function ys(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=p1,h}function ru(h,g){for(var w=[h];(h=w.pop())!=null;)if(g(h),(L=h.children)&&(k=L.length))for(var k,L;--k>=0;)w.push(L[k])}function Ho(h,g){for(var w=[h],k=[];(h=w.pop())!=null;)if(k.push(h),(G=h.children)&&(D=G.length))for(var L=-1,D,G;++LL&&(L=R),k.push(R)}for(G=0;Gk&&(w=g,k=L);return w}function g1(h){return h.reduce(b1,0)}function b1(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,w=_1,k=x1;function L(D,ge){for(var R=[],j=D.map(g,this),ne=w.call(this,j,ge),oe=k.call(this,ne,j,ge),ye,ge=-1,Xe=j.length,Ke=oe.length-1,Me=h?1:1/Xe,qe;++ge0)for(ge=-1;++ge=ne[0]&&qe<=ne[1]&&(ye=R[e.bisect(oe,qe,1,Ke)-1],ye.y+=Me,ye.push(D[ge]));return R}return L.value=function(D){return arguments.length?(g=D,L):g},L.range=function(D){return arguments.length?(w=ra(D),L):w},L.bins=function(D){return arguments.length?(k=typeof D=="number"?function(G){return Fh(G,D)}:ra(D),L):k},L.frequency=function(D){return arguments.length?(h=!!D,L):h},L};function x1(h,g){return Fh(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function Fh(h,g){for(var w=-1,k=+h[0],L=(h[1]-k)/g,D=[];++w<=g;)D[w]=L*w+k;return D}function _1(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(tu),g=0,w=[1,1],k;function L(D,G){var R=h.call(this,D,G),j=R[0],ne=w[0],oe=w[1],ye=k==null?Math.sqrt:typeof k=="function"?k:function(){return k};if(j.x=j.y=0,Ho(j,function(Xe){Xe.r=+ye(Xe.value)}),Ho(j,Rh),g){var ge=g*(k?1:Math.max(2*j.r/ne,2*j.r/oe))/2;Ho(j,function(Xe){Xe.r+=ge}),Ho(j,Rh),Ho(j,function(Xe){Xe.r-=ge})}return Ph(j,ne/2,oe/2,k?1:1/Math.max(2*j.r/ne,2*j.r/oe)),R}return L.size=function(D){return arguments.length?(w=D,L):w},L.radius=function(D){return arguments.length?(k=D==null||typeof D=="function"?D:+D,L):k},L.padding=function(D){return arguments.length?(g=+D,L):g},ys(L,h)};function tu(h,g){return h.value-g.value}function n0(h,g){var w=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=w,w._pack_prev=g}function lc(h,g){h._pack_next=g,g._pack_prev=h}function qh(h,g){var w=g.x-h.x,k=g.y-h.y,L=h.r+g.r;return .999*L*L>w*w+k*k}function Rh(h){if(!(g=h.children)||!(ge=g.length))return;var g,w=1/0,k=-1/0,L=1/0,D=-1/0,G,R,j,ne,oe,ye,ge;function Xe(Le){w=Math.min(Le.x-Le.r,w),k=Math.max(Le.x+Le.r,k),L=Math.min(Le.y-Le.r,L),D=Math.max(Le.y+Le.r,D)}if(g.forEach(w1),G=g[0],G.x=-G.r,G.y=0,Xe(G),ge>1&&(R=g[1],R.x=R.r,R.y=0,Xe(R),ge>2))for(j=g[2],wg(G,R,j),Xe(j),n0(G,j),G._pack_prev=j,n0(j,R),R=G._pack_next,ne=3;neqe.x&&(qe=Dr),Dr.depth>Ue.depth&&(Ue=Dr)});var er=g(Me,qe)/2-Me.x,tr=w[0]/(qe.x+g(qe,Me)/2+er),Le=w[1]/(Ue.depth||1);ru(Xe,function(Dr){Dr.x=(Dr.x+er)*tr,Dr.y=Dr.depth*Le})}return ge}function D(oe){for(var ye={A:null,children:[oe]},ge=[ye],Xe;(Xe=ge.pop())!=null;)for(var Ke=Xe.children,Me,qe=0,Ue=Ke.length;qe0&&(S1(i0(Me,oe,ge),oe,Dr),Ue+=Dr,er+=Dr),tr+=Me.m,Ue+=Xe.m,Le+=qe.m,er+=Ke.m;Me&&!M1(Ke)&&(Ke.t=Me,Ke.m+=tr-er),Xe&&!T1(qe)&&(qe.t=Xe,qe.m+=Ue-Le,ge=oe)}return ge}function ne(oe){oe.x*=w[0],oe.y=oe.depth*w[1]}return L.separation=function(oe){return arguments.length?(g=oe,L):g},L.size=function(oe){return arguments.length?(k=(w=oe)==null?ne:null,L):k?null:w},L.nodeSize=function(oe){return arguments.length?(k=(w=oe)==null?null:ne,L):k?w:null},ys(L,h)};function Nh(h,g){return h.parent==g.parent?1:2}function T1(h){var g=h.children;return g.length?g[0]:h.t}function M1(h){var g=h.children,w;return(w=g.length)?g[w-1]:h.t}function S1(h,g,w){var k=w/(g.i-h.i);g.c-=k,g.s+=w,h.c+=k,g.z+=w,g.m+=w}function au(h){for(var g=0,w=0,k=h.children,L=k.length,D;--L>=0;)D=k[L],D.z+=g,D.m+=g,g+=D.s+(w+=D.c)}function i0(h,g,w){return h.a.parent===g.parent?h.a:w}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=Nh,w=[1,1],k=!1;function L(D,G){var R=h.call(this,D,G),j=R[0],ne,oe=0;Ho(j,function(Me){var qe=Me.children;qe&&qe.length?(Me.x=o0(qe),Me.y=Bn(qe)):(Me.x=ne?oe+=g(Me,ne):0,Me.y=0,ne=Me)});var ye=Ih(j),ge=Oh(j),Xe=ye.x-g(ye,ge)/2,Ke=ge.x+g(ge,ye)/2;return Ho(j,k?function(Me){Me.x=(Me.x-j.x)*w[0],Me.y=(j.y-Me.y)*w[1]}:function(Me){Me.x=(Me.x-Xe)/(Ke-Xe)*w[0],Me.y=(1-(j.y?Me.y/j.y:1))*w[1]}),R}return L.separation=function(D){return arguments.length?(g=D,L):g},L.size=function(D){return arguments.length?(k=(w=D)==null,L):k?null:w},L.nodeSize=function(D){return arguments.length?(k=(w=D)!=null,L):k?w:null},ys(L,h)};function Bn(h){return 1+e.max(h,function(g){return g.y})}function o0(h){return h.reduce(function(g,w){return g+w.x},0)/h.length}function Ih(h){var g=h.children;return g&&g.length?Ih(g[0]):h}function Oh(h){var g=h.children,w;return g&&(w=g.length)?Oh(g[w-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,w=[1,1],k=null,L=l0,D=!1,G,R="squarify",j=.5*(1+Math.sqrt(5));function ne(Me,qe){for(var Ue=-1,er=Me.length,tr,Le;++Ue0;)er.push(Le=tr[mt-1]),er.area+=Le.area,R!=="squarify"||(zr=ge(er,tt))<=Dr?(tr.pop(),Dr=zr):(er.area-=er.pop().area,Xe(er,tt,Ue,!1),tt=Math.min(Ue.dx,Ue.dy),er.length=er.area=0,Dr=1/0);er.length&&(Xe(er,tt,Ue,!0),er.length=er.area=0),qe.forEach(oe)}}function ye(Me){var qe=Me.children;if(qe&&qe.length){var Ue=L(Me),er=qe.slice(),tr,Le=[];for(ne(er,Ue.dx*Ue.dy/Me.value),Le.area=0;tr=er.pop();)Le.push(tr),Le.area+=tr.area,tr.z!=null&&(Xe(Le,tr.z?Ue.dx:Ue.dy,Ue,!er.length),Le.length=Le.area=0);qe.forEach(ye)}}function ge(Me,qe){for(var Ue=Me.area,er,tr=0,Le=1/0,Dr=-1,zr=Me.length;++Drtr&&(tr=er));return Ue*=Ue,qe*=qe,Ue?Math.max(qe*tr*j/Ue,Ue/(qe*Le*j)):1/0}function Xe(Me,qe,Ue,er){var tr=-1,Le=Me.length,Dr=Ue.x,zr=Ue.y,tt=qe?g(Me.area/qe):0,mt;if(qe==Ue.dx){for((er||tt>Ue.dy)&&(tt=Ue.dy);++trUe.dx)&&(tt=Ue.dx);++tr1);return h+g*k*Math.sqrt(-2*Math.log(D)/D)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,w=0;w2?Lo:E1,ne=k?Zv:Xv;return L=j(h,g,ne,w),D=j(g,h,ne,ul),R}function R(j){return L(j)}return R.invert=function(j){return D(j)},R.domain=function(j){return arguments.length?(h=j.map(Number),G()):h},R.range=function(j){return arguments.length?(g=j,G()):g},R.rangeRound=function(j){return R.range(j).interpolate(nc)},R.clamp=function(j){return arguments.length?(k=j,G()):k},R.interpolate=function(j){return arguments.length?(w=j,G()):w},R.ticks=function(j){return _s(h,j)},R.tickFormat=function(j,ne){return d3_scale_linearTickFormat(h,j,ne)},R.nice=function(j){return uc(h,j),G()},R.copy=function(){return zh(h,g,w,k)},G()}function fo(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function uc(h,g){return cl(h,Aa($i(h,g)[2])),cl(h,Aa($i(h,g)[2])),h}function $i(h,g){g==null&&(g=10);var w=sc(h),k=w[1]-w[0],L=Math.pow(10,Math.floor(Math.log(k/g)/Math.LN10)),D=g/k*L;return D<=.15?L*=10:D<=.35?L*=5:D<=.75&&(L*=2),w[0]=Math.ceil(w[0]/L)*L,w[1]=Math.floor(w[1]/L)*L+L*.5,w[2]=L,w}function _s(h,g){return e.range.apply(e,$i(h,g))}var nu={s:1,g:1,p:1,r:1,e:1};function uf(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function cc(h,g){var w=uf(g[2]);return h in nu?Math.abs(w-uf(Math.max(b(g[0]),b(g[1]))))+ +(h!=="e"):w-(h==="%")*2}e.scale.log=function(){return cf(e.scale.linear().domain([0,1]),10,!0,[1,10])};function cf(h,g,w,k){function L(R){return(w?Math.log(R<0?0:R):-Math.log(R>0?0:-R))/Math.log(g)}function D(R){return w?Math.pow(g,R):-Math.pow(g,-R)}function G(R){return h(L(R))}return G.invert=function(R){return D(h.invert(R))},G.domain=function(R){return arguments.length?(w=R[0]>=0,h.domain((k=R.map(Number)).map(L)),G):k},G.base=function(R){return arguments.length?(g=+R,h.domain(k.map(L)),G):g},G.nice=function(){var R=cl(k.map(L),w?Math:ws);return h.domain(R),k=R.map(D),G},G.ticks=function(){var R=sc(k),j=[],ne=R[0],oe=R[1],ye=Math.floor(L(ne)),ge=Math.ceil(L(oe)),Xe=g%1?2:g;if(isFinite(ge-ye)){if(w){for(;ye0;Ke--)j.push(D(ye)*Ke);for(ye=0;j[ye]oe;ge--);j=j.slice(ye,ge)}return j},G.copy=function(){return cf(h.copy(),g,w,k)},fo(G,h)}var ws={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return vc(e.scale.linear(),1,[0,1])};function vc(h,g,w){var k=vf(g),L=vf(1/g);function D(G){return h(k(G))}return D.invert=function(G){return L(h.invert(G))},D.domain=function(G){return arguments.length?(h.domain((w=G.map(Number)).map(k)),D):w},D.ticks=function(G){return _s(w,G)},D.tickFormat=function(G,R){return d3_scale_linearTickFormat(w,G,R)},D.nice=function(G){return D.domain(uc(w,G))},D.exponent=function(G){return arguments.length?(k=vf(g=G),L=vf(1/g),h.domain(w.map(k)),D):g},D.copy=function(){return vc(h.copy(),g,w)},fo(D,h)}function vf(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return hc([],{t:"range",a:[[]]})};function hc(h,g){var w,k,L;function D(R){return k[((w.get(R)||(g.t==="range"?w.set(R,h.push(R)):NaN))-1)%k.length]}function G(R,j){return e.range(h.length).map(function(ne){return R+j*ne})}return D.domain=function(R){if(!arguments.length)return h;h=[],w=new x;for(var j=-1,ne=R.length,oe;++j0?w[D-1]:h[0],Dge?0:1;if(oe=At)return j(oe,Ke)+(ne?j(ne,1-Ke):"")+"Z";var Me,qe,Ue,er,tr=0,Le=0,Dr,zr,tt,mt,kt,Ct,Vt,Ft,It=[];if((er=(+G.apply(this,arguments)||0)/2)&&(Ue=k===hf?Math.sqrt(ne*ne+oe*oe):+k.apply(this,arguments),Ke||(Le*=-1),oe&&(Le=bn(Ue/oe*Math.sin(er))),ne&&(tr=bn(Ue/ne*Math.sin(er)))),oe){Dr=oe*Math.cos(ye+Le),zr=oe*Math.sin(ye+Le),tt=oe*Math.cos(ge-Le),mt=oe*Math.sin(ge-Le);var pa=Math.abs(ge-ye-2*Le)<=cr?0:1;if(Le&&pf(Dr,zr,tt,mt)===Ke^pa){var xn=(ye+ge)/2;Dr=oe*Math.cos(xn),zr=oe*Math.sin(xn),tt=mt=null}}else Dr=zr=0;if(ne){kt=ne*Math.cos(ge-tr),Ct=ne*Math.sin(ge-tr),Vt=ne*Math.cos(ye+tr),Ft=ne*Math.sin(ye+tr);var Da=Math.abs(ye-ge+2*tr)<=cr?0:1;if(tr&&pf(kt,Ct,Vt,Ft)===1-Ke^Da){var ht=(ye+ge)/2;kt=ne*Math.cos(ht),Ct=ne*Math.sin(ht),Vt=Ft=null}}else kt=Ct=0;if(Xe>Oe&&(Me=Math.min(Math.abs(oe-ne)/2,+w.apply(this,arguments)))>.001){qe=ne0?0:1}function mf(h,g,w,k,L){var D=h[0]-g[0],G=h[1]-g[1],R=(L?k:-k)/Math.sqrt(D*D+G*G),j=R*G,ne=-R*D,oe=h[0]+j,ye=h[1]+ne,ge=g[0]+j,Xe=g[1]+ne,Ke=(oe+ge)/2,Me=(ye+Xe)/2,qe=ge-oe,Ue=Xe-ye,er=qe*qe+Ue*Ue,tr=w-k,Le=oe*Xe-ge*ye,Dr=(Ue<0?-1:1)*Math.sqrt(Math.max(0,tr*tr*er-Le*Le)),zr=(Le*Ue-qe*Dr)/er,tt=(-Le*qe-Ue*Dr)/er,mt=(Le*Ue+qe*Dr)/er,kt=(-Le*qe+Ue*Dr)/er,Ct=zr-Ke,Vt=tt-Me,Ft=mt-Ke,It=kt-Me;return Ct*Ct+Vt*Vt>Ft*Ft+It*It&&(zr=mt,tt=kt),[[zr-j,tt-ne],[zr*w/tr,tt*w/tr]]}function yf(){return!0}function bc(h){var g=Go,w=cs,k=yf,L=Ci,D=L.key,G=.7;function R(j){var ne=[],oe=[],ye=-1,ge=j.length,Xe,Ke=ra(g),Me=ra(w);function qe(){ne.push("M",L(h(oe),G))}for(;++ye1?h.join("L"):h+"Z"}function gf(h){return h.join("L")+"Z"}function vl(h){for(var g=0,w=h.length,k=h[0],L=[k[0],",",k[1]];++g1&&L.push("H",k[0]),L.join("")}function cu(h){for(var g=0,w=h.length,k=h[0],L=[k[0],",",k[1]];++g1){R=g[1],D=h[j],j++,k+="C"+(L[0]+G[0])+","+(L[1]+G[1])+","+(D[0]-R[0])+","+(D[1]-R[1])+","+D[0]+","+D[1];for(var ne=2;ne9&&(D=w*3/Math.sqrt(D),G[R]=D*k,G[R+1]=D*L));for(R=-1;++R<=j;)D=(h[Math.min(j,R+1)][0]-h[Math.max(0,R-1)][0])/(6*(1+G[R]*G[R])),g.push([D||0,G[R]*D||0]);return g}function c0(h){return h.length<3?Ci(h):h[0]+Vo(h,C1(h))}e.svg.line.radial=function(){var h=bc(xc);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function xc(h){for(var g,w=-1,k=h.length,L,D;++wcr)+",1 "+ye}function ne(oe,ye,ge,Xe){return"Q 0,0 "+Xe}return D.radius=function(oe){return arguments.length?(w=ra(oe),D):w},D.source=function(oe){return arguments.length?(h=ra(oe),D):h},D.target=function(oe){return arguments.length?(g=ra(oe),D):g},D.startAngle=function(oe){return arguments.length?(k=ra(oe),D):k},D.endAngle=function(oe){return arguments.length?(L=ra(oe),D):L},D};function hu(h){return h.radius}e.svg.diagonal=function(){var h=Gh,g=vo,w=Uh;function k(L,D){var G=h.call(this,L,D),R=g.call(this,L,D),j=(G.y+R.y)/2,ne=[G,{x:G.x,y:j},{x:R.x,y:j},R];return ne=ne.map(w),"M"+ne[0]+"C"+ne[1]+" "+ne[2]+" "+ne[3]}return k.source=function(L){return arguments.length?(h=ra(L),k):h},k.target=function(L){return arguments.length?(g=ra(L),k):g},k.projection=function(L){return arguments.length?(w=L,k):w},k};function Uh(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=Uh,w=h.projection;return h.projection=function(k){return arguments.length?w(L1(g=k)):g},h};function L1(h){return function(){var g=h.apply(this,arguments),w=g[0],k=g[1]-yt;return[w*Math.cos(k),w*Math.sin(k)]}}e.svg.symbol=function(){var h=F1,g=D1;function w(k,L){return(Vh.get(h.call(this,k,L))||Hh)(g.call(this,k,L))}return w.type=function(k){return arguments.length?(h=ra(k),w):h},w.size=function(k){return arguments.length?(g=ra(k),w):g},w};function D1(){return 64}function F1(){return"circle"}function Hh(h){var g=Math.sqrt(h/cr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var Vh=e.map({circle:Hh,cross:function(h){var g=Math.sqrt(h/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(h){var g=Math.sqrt(h/(2*Yh)),w=g*Yh;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/wc),w=g*wc/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/wc),w=g*wc/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=Vh.keys();var wc=Math.sqrt(3),Yh=Math.tan(30*Nt);Ve.transition=function(h){for(var g=ml||++xf,w=pu(h),k=[],L,D,G=Il||{time:Date.now(),ease:Ji,delay:0,duration:250},R=-1,j=this.length;++R0;)ye[--er].call(h,Ue);if(qe>=1)return G.event&&G.event.end.call(h,h.__data__,g),--D.count?delete D[k]:delete h[w],1}G||(R=L.time,j=zo(ge,0,R),G=D[k]={tween:new x,time:R,timer:j,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++D.count)}e.svg.axis=function(){var h=e.scale.linear(),g=_f,w=6,k=6,L=3,D=[10],G=null,R;function j(ne){ne.each(function(){var oe=e.select(this),ye=this.__chart__||h,ge=this.__chart__=h.copy(),Xe=G==null?ge.ticks?ge.ticks.apply(ge,D):ge.domain():G,Ke=R==null?ge.tickFormat?ge.tickFormat.apply(ge,D):le:R,Me=oe.selectAll(".tick").data(Xe,ge),qe=Me.enter().insert("g",".domain").attr("class","tick").style("opacity",Oe),Ue=e.transition(Me.exit()).style("opacity",Oe).remove(),er=e.transition(Me.order()).style("opacity",1),tr=Math.max(w,0)+L,Le,Dr=fc(ge),zr=oe.selectAll(".domain").data([0]),tt=(zr.enter().append("path").attr("class","domain"),e.transition(zr));qe.append("line"),qe.append("text");var mt=qe.select("line"),kt=er.select("line"),Ct=Me.select("text").text(Ke),Vt=qe.select("text"),Ft=er.select("text"),It=g==="top"||g==="left"?-1:1,pa,xn,Da,ht;if(g==="bottom"||g==="top"?(Le=yu,pa="x",Da="y",xn="x2",ht="y2",Ct.attr("dy",It<0?"0em":".71em").style("text-anchor","middle"),tt.attr("d","M"+Dr[0]+","+It*k+"V0H"+Dr[1]+"V"+It*k)):(Le=gu,pa="y",Da="x",xn="y2",ht="x2",Ct.attr("dy",".32em").style("text-anchor",It<0?"end":"start"),tt.attr("d","M"+It*k+","+Dr[0]+"H0V"+Dr[1]+"H"+It*k)),mt.attr(ht,It*w),Vt.attr(Da,It*tr),kt.attr(xn,0).attr(ht,It*w),Ft.attr(pa,0).attr(Da,It*tr),ge.rangeBand){var Yt=ge,jt=Yt.rangeBand()/2;ye=ge=function(ca){return Yt(ca)+jt}}else ye.rangeBand?ye=ge:Ue.call(Le,ge,ye);qe.call(Le,ye,ge),er.call(Le,ge,ge)})}return j.scale=function(ne){return arguments.length?(h=ne,j):h},j.orient=function(ne){return arguments.length?(g=ne in mu?ne+"":_f,j):g},j.ticks=function(){return arguments.length?(D=t(arguments),j):D},j.tickValues=function(ne){return arguments.length?(G=ne,j):G},j.tickFormat=function(ne){return arguments.length?(R=ne,j):R},j.tickSize=function(ne){var oe=arguments.length;return oe?(w=+ne,k=+arguments[oe-1],j):w},j.innerTickSize=function(ne){return arguments.length?(w=+ne,j):w},j.outerTickSize=function(ne){return arguments.length?(k=+ne,j):k},j.tickPadding=function(ne){return arguments.length?(L=+ne,j):L},j.tickSubdivide=function(){return arguments.length&&j},j};var _f="bottom",mu={top:1,right:1,bottom:1,left:1};function yu(h,g,w){h.attr("transform",function(k){var L=g(k);return"translate("+(isFinite(L)?L:w(k))+",0)"})}function gu(h,g,w){h.attr("transform",function(k){var L=g(k);return"translate(0,"+(isFinite(L)?L:w(k))+")"})}e.svg.brush=function(){var h=Ee(oe,"brushstart","brush","brushend"),g=null,w=null,k=[0,0],L=[0,0],D,G,R=!0,j=!0,ne=Ms[0];function oe(Me){Me.each(function(){var qe=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ke).on("touchstart.brush",Ke),Ue=qe.selectAll(".background").data([0]);Ue.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),qe.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var er=qe.selectAll(".resize").data(ne,le);er.exit().remove(),er.enter().append("g").attr("class",function(zr){return"resize "+zr}).style("cursor",function(zr){return bu[zr]}).append("rect").attr("x",function(zr){return/[ew]$/.test(zr)?-3:null}).attr("y",function(zr){return/^[ns]/.test(zr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),er.style("display",oe.empty()?"none":null);var tr=e.transition(qe),Le=e.transition(Ue),Dr;g&&(Dr=fc(g),Le.attr("x",Dr[0]).attr("width",Dr[1]-Dr[0]),ge(tr)),w&&(Dr=fc(w),Le.attr("y",Dr[0]).attr("height",Dr[1]-Dr[0]),Xe(tr)),ye(tr)})}oe.event=function(Me){Me.each(function(){var qe=h.of(this,arguments),Ue={x:k,y:L,i:D,j:G},er=this.__chart__||Ue;this.__chart__=Ue,ml?e.select(this).transition().each("start.brush",function(){D=er.i,G=er.j,k=er.x,L=er.y,qe({type:"brushstart"})}).tween("brush:brush",function(){var tr=sf(k,Ue.x),Le=sf(L,Ue.y);return D=G=null,function(Dr){k=Ue.x=tr(Dr),L=Ue.y=Le(Dr),qe({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=Ue.i,G=Ue.j,qe({type:"brush",mode:"resize"}),qe({type:"brushend"})}):(qe({type:"brushstart"}),qe({type:"brush",mode:"resize"}),qe({type:"brushend"}))})};function ye(Me){Me.selectAll(".resize").attr("transform",function(qe){return"translate("+k[+/e$/.test(qe)]+","+L[+/^s/.test(qe)]+")"})}function ge(Me){Me.select(".extent").attr("x",k[0]),Me.selectAll(".extent,.n>rect,.s>rect").attr("width",k[1]-k[0])}function Xe(Me){Me.select(".extent").attr("y",L[0]),Me.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function Ke(){var Me=this,qe=e.select(e.event.target),Ue=h.of(Me,arguments),er=e.select(Me),tr=qe.datum(),Le=!/^(n|s)$/.test(tr)&&g,Dr=!/^(e|w)$/.test(tr)&&w,zr=qe.classed("extent"),tt=ot(Me),mt,kt=e.mouse(Me),Ct,Vt=e.select(i(Me)).on("keydown.brush",pa).on("keyup.brush",xn);if(e.event.changedTouches?Vt.on("touchmove.brush",Da).on("touchend.brush",Yt):Vt.on("mousemove.brush",Da).on("mouseup.brush",Yt),er.interrupt().selectAll("*").interrupt(),zr)kt[0]=k[0]-kt[0],kt[1]=L[0]-kt[1];else if(tr){var Ft=+/w$/.test(tr),It=+/^n/.test(tr);Ct=[k[1-Ft]-kt[0],L[1-It]-kt[1]],kt[0]=k[Ft],kt[1]=L[It]}else e.event.altKey&&(mt=kt.slice());er.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",qe.style("cursor")),Ue({type:"brushstart"}),Da();function pa(){e.event.keyCode==32&&(zr||(mt=null,kt[0]-=k[1],kt[1]-=L[1],zr=2),De())}function xn(){e.event.keyCode==32&&zr==2&&(kt[0]+=k[1],kt[1]+=L[1],zr=0,De())}function Da(){var jt=e.mouse(Me),ca=!1;Ct&&(jt[0]+=Ct[0],jt[1]+=Ct[1]),zr||(e.event.altKey?(mt||(mt=[(k[0]+k[1])/2,(L[0]+L[1])/2]),kt[0]=k[+(jt[0]{(function(e,r){typeof kg=="object"&&typeof bM!="undefined"?r(kg):(e=e||self,r(e.d3=e.d3||{}))})(kg,function(e){"use strict";var r=new Date,t=new Date;function a(Pe,sr,lt,Et){function wt(Fe){return Pe(Fe=arguments.length===0?new Date:new Date(+Fe)),Fe}return wt.floor=function(Fe){return Pe(Fe=new Date(+Fe)),Fe},wt.ceil=function(Fe){return Pe(Fe=new Date(Fe-1)),sr(Fe,1),Pe(Fe),Fe},wt.round=function(Fe){var hr=wt(Fe),Ir=wt.ceil(Fe);return Fe-hr0))return at;do at.push(Yr=new Date(+Fe)),sr(Fe,Ir),Pe(Fe);while(Yr=hr)for(;Pe(hr),!Fe(hr);)hr.setTime(hr-1)},function(hr,Ir){if(hr>=hr)if(Ir<0)for(;++Ir<=0;)for(;sr(hr,-1),!Fe(hr););else for(;--Ir>=0;)for(;sr(hr,1),!Fe(hr););})},lt&&(wt.count=function(Fe,hr){return r.setTime(+Fe),t.setTime(+hr),Pe(r),Pe(t),Math.floor(lt(r,t))},wt.every=function(Fe){return Fe=Math.floor(Fe),!isFinite(Fe)||!(Fe>0)?null:Fe>1?wt.filter(Et?function(hr){return Et(hr)%Fe===0}:function(hr){return wt.count(0,hr)%Fe===0}):wt}),wt}var n=a(function(){},function(Pe,sr){Pe.setTime(+Pe+sr)},function(Pe,sr){return sr-Pe});n.every=function(Pe){return Pe=Math.floor(Pe),!isFinite(Pe)||!(Pe>0)?null:Pe>1?a(function(sr){sr.setTime(Math.floor(sr/Pe)*Pe)},function(sr,lt){sr.setTime(+sr+lt*Pe)},function(sr,lt){return(lt-sr)/Pe}):n};var i=n.range,o=1e3,l=6e4,s=36e5,f=864e5,u=6048e5,c=a(function(Pe){Pe.setTime(Pe-Pe.getMilliseconds())},function(Pe,sr){Pe.setTime(+Pe+sr*o)},function(Pe,sr){return(sr-Pe)/o},function(Pe){return Pe.getUTCSeconds()}),v=c.range,d=a(function(Pe){Pe.setTime(Pe-Pe.getMilliseconds()-Pe.getSeconds()*o)},function(Pe,sr){Pe.setTime(+Pe+sr*l)},function(Pe,sr){return(sr-Pe)/l},function(Pe){return Pe.getMinutes()}),p=d.range,y=a(function(Pe){Pe.setTime(Pe-Pe.getMilliseconds()-Pe.getSeconds()*o-Pe.getMinutes()*l)},function(Pe,sr){Pe.setTime(+Pe+sr*s)},function(Pe,sr){return(sr-Pe)/s},function(Pe){return Pe.getHours()}),m=y.range,b=a(function(Pe){Pe.setHours(0,0,0,0)},function(Pe,sr){Pe.setDate(Pe.getDate()+sr)},function(Pe,sr){return(sr-Pe-(sr.getTimezoneOffset()-Pe.getTimezoneOffset())*l)/f},function(Pe){return Pe.getDate()-1}),A=b.range;function _(Pe){return a(function(sr){sr.setDate(sr.getDate()-(sr.getDay()+7-Pe)%7),sr.setHours(0,0,0,0)},function(sr,lt){sr.setDate(sr.getDate()+lt*7)},function(sr,lt){return(lt-sr-(lt.getTimezoneOffset()-sr.getTimezoneOffset())*l)/u})}var x=_(0),T=_(1),E=_(2),M=_(3),C=_(4),F=_(5),I=_(6),O=x.range,q=T.range,H=E.range,X=M.range,le=C.range,ae=F.range,Q=I.range,Z=a(function(Pe){Pe.setDate(1),Pe.setHours(0,0,0,0)},function(Pe,sr){Pe.setMonth(Pe.getMonth()+sr)},function(Pe,sr){return sr.getMonth()-Pe.getMonth()+(sr.getFullYear()-Pe.getFullYear())*12},function(Pe){return Pe.getMonth()}),J=Z.range,ie=a(function(Pe){Pe.setMonth(0,1),Pe.setHours(0,0,0,0)},function(Pe,sr){Pe.setFullYear(Pe.getFullYear()+sr)},function(Pe,sr){return sr.getFullYear()-Pe.getFullYear()},function(Pe){return Pe.getFullYear()});ie.every=function(Pe){return!isFinite(Pe=Math.floor(Pe))||!(Pe>0)?null:a(function(sr){sr.setFullYear(Math.floor(sr.getFullYear()/Pe)*Pe),sr.setMonth(0,1),sr.setHours(0,0,0,0)},function(sr,lt){sr.setFullYear(sr.getFullYear()+lt*Pe)})};var ue=ie.range,De=a(function(Pe){Pe.setUTCSeconds(0,0)},function(Pe,sr){Pe.setTime(+Pe+sr*l)},function(Pe,sr){return(sr-Pe)/l},function(Pe){return Pe.getUTCMinutes()}),Ie=De.range,Ee=a(function(Pe){Pe.setUTCMinutes(0,0,0)},function(Pe,sr){Pe.setTime(+Pe+sr*s)},function(Pe,sr){return(sr-Pe)/s},function(Pe){return Pe.getUTCHours()}),Ze=Ee.range,Ae=a(function(Pe){Pe.setUTCHours(0,0,0,0)},function(Pe,sr){Pe.setUTCDate(Pe.getUTCDate()+sr)},function(Pe,sr){return(sr-Pe)/f},function(Pe){return Pe.getUTCDate()-1}),ir=Ae.range;function Ge(Pe){return a(function(sr){sr.setUTCDate(sr.getUTCDate()-(sr.getUTCDay()+7-Pe)%7),sr.setUTCHours(0,0,0,0)},function(sr,lt){sr.setUTCDate(sr.getUTCDate()+lt*7)},function(sr,lt){return(lt-sr)/u})}var Qe=Ge(0),He=Ge(1),Ve=Ge(2),ee=Ge(3),me=Ge(4),re=Ge(5),je=Ge(6),vr=Qe.range,rr=He.range,Cr=Ve.range,Lr=ee.range,_r=me.range,Pr=re.range,rt=je.range,Jr=a(function(Pe){Pe.setUTCDate(1),Pe.setUTCHours(0,0,0,0)},function(Pe,sr){Pe.setUTCMonth(Pe.getUTCMonth()+sr)},function(Pe,sr){return sr.getUTCMonth()-Pe.getUTCMonth()+(sr.getUTCFullYear()-Pe.getUTCFullYear())*12},function(Pe){return Pe.getUTCMonth()}),wr=Jr.range,Hr=a(function(Pe){Pe.setUTCMonth(0,1),Pe.setUTCHours(0,0,0,0)},function(Pe,sr){Pe.setUTCFullYear(Pe.getUTCFullYear()+sr)},function(Pe,sr){return sr.getUTCFullYear()-Pe.getUTCFullYear()},function(Pe){return Pe.getUTCFullYear()});Hr.every=function(Pe){return!isFinite(Pe=Math.floor(Pe))||!(Pe>0)?null:a(function(sr){sr.setUTCFullYear(Math.floor(sr.getUTCFullYear()/Pe)*Pe),sr.setUTCMonth(0,1),sr.setUTCHours(0,0,0,0)},function(sr,lt){sr.setUTCFullYear(sr.getUTCFullYear()+lt*Pe)})};var Vr=Hr.range;e.timeDay=b,e.timeDays=A,e.timeFriday=F,e.timeFridays=ae,e.timeHour=y,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=T,e.timeMondays=q,e.timeMonth=Z,e.timeMonths=J,e.timeSaturday=I,e.timeSaturdays=Q,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=O,e.timeThursday=C,e.timeThursdays=le,e.timeTuesday=E,e.timeTuesdays=H,e.timeWednesday=M,e.timeWednesdays=X,e.timeWeek=x,e.timeWeeks=O,e.timeYear=ie,e.timeYears=ue,e.utcDay=Ae,e.utcDays=ir,e.utcFriday=re,e.utcFridays=Pr,e.utcHour=Ee,e.utcHours=Ze,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=De,e.utcMinutes=Ie,e.utcMonday=He,e.utcMondays=rr,e.utcMonth=Jr,e.utcMonths=wr,e.utcSaturday=je,e.utcSaturdays=rt,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=Qe,e.utcSundays=vr,e.utcThursday=me,e.utcThursdays=_r,e.utcTuesday=Ve,e.utcTuesdays=Cr,e.utcWednesday=ee,e.utcWednesdays=Lr,e.utcWeek=Qe,e.utcWeeks=vr,e.utcYear=Hr,e.utcYears=Vr,Object.defineProperty(e,"__esModule",{value:!0})})});var Wh=P((Cg,xM)=>{(function(e,r){typeof Cg=="object"&&typeof xM!="undefined"?r(Cg,y5()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Cg,function(e,r){"use strict";function t(Se){if(0<=Se.y&&Se.y<100){var Oe=new Date(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L);return Oe.setFullYear(Se.y),Oe}return new Date(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L)}function a(Se){if(0<=Se.y&&Se.y<100){var Oe=new Date(Date.UTC(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L));return Oe.setUTCFullYear(Se.y),Oe}return new Date(Date.UTC(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L))}function n(Se,Oe,yr){return{y:Se,m:Oe,d:yr,H:0,M:0,S:0,L:0}}function i(Se){var Oe=Se.dateTime,yr=Se.date,cr=Se.time,xt=Se.periods,At=Se.days,yt=Se.shortDays,Nt=Se.months,ta=Se.shortMonths,ka=v(xt),Ta=d(xt),qn=v(At),bn=d(At),ja=v(yt),cn=d(yt),Xn=v(Nt),vn=d(Nt),wn=v(ta),Mi=d(ta),Pt={a:fs,A:us,b:kl,B:Zu,c:null,d:Z,e:Z,f:Ie,H:J,I:ie,j:ue,L:De,m:Ee,M:Ze,p:Oo,q:Yf,Q:hr,s:Ir,S:Ae,u:ir,U:Ge,V:Qe,w:He,W:Ve,x:null,X:null,y:ee,Y:me,Z:re,"%":Fe},Ca={a:Wf,A:Xi,b:hi,B:Oi,c:null,d:je,e:je,f:_r,H:vr,I:rr,j:Cr,L:Lr,m:Pr,M:rt,p:Cl,q:di,Q:hr,s:Ir,S:Jr,u:wr,U:Hr,V:Vr,w:Pe,W:sr,x:null,X:null,y:lt,Y:Et,Z:wt,"%":Fe},ia={a:Ga,A:tn,b:Wi,B:ji,c:Rn,d:C,e:C,f:X,H:I,I,j:F,L:H,m:M,M:O,p:Ba,q:E,Q:ae,s:Q,S:q,u:y,U:m,V:b,w:p,W:A,x:qa,X:Zn,y:x,Y:_,Z:T,"%":le};Pt.x=Va(yr,Pt),Pt.X=Va(cr,Pt),Pt.c=Va(Oe,Pt),Ca.x=Va(yr,Ca),Ca.X=Va(cr,Ca),Ca.c=Va(Oe,Ca);function Va(Rt,$t){return function(ua){var _t=[],Jn=-1,Ua=0,Pn=Rt.length,ra,Ao,ol;for(ua instanceof Date||(ua=new Date(+ua));++Jn53)return null;"w"in _t||(_t.w=1),"Z"in _t?(Ua=a(n(_t.y,0,1)),Pn=Ua.getUTCDay(),Ua=Pn>4||Pn===0?r.utcMonday.ceil(Ua):r.utcMonday(Ua),Ua=r.utcDay.offset(Ua,(_t.V-1)*7),_t.y=Ua.getUTCFullYear(),_t.m=Ua.getUTCMonth(),_t.d=Ua.getUTCDate()+(_t.w+6)%7):(Ua=t(n(_t.y,0,1)),Pn=Ua.getDay(),Ua=Pn>4||Pn===0?r.timeMonday.ceil(Ua):r.timeMonday(Ua),Ua=r.timeDay.offset(Ua,(_t.V-1)*7),_t.y=Ua.getFullYear(),_t.m=Ua.getMonth(),_t.d=Ua.getDate()+(_t.w+6)%7)}else("W"in _t||"U"in _t)&&("w"in _t||(_t.w="u"in _t?_t.u%7:"W"in _t?1:0),Pn="Z"in _t?a(n(_t.y,0,1)).getUTCDay():t(n(_t.y,0,1)).getDay(),_t.m=0,_t.d="W"in _t?(_t.w+6)%7+_t.W*7-(Pn+5)%7:_t.w+_t.U*7-(Pn+6)%7);return"Z"in _t?(_t.H+=_t.Z/100|0,_t.M+=_t.Z%100,a(_t)):t(_t)}}function La(Rt,$t,ua,_t){for(var Jn=0,Ua=$t.length,Pn=ua.length,ra,Ao;Jn=Pn)return-1;if(ra=$t.charCodeAt(Jn++),ra===37){if(ra=$t.charAt(Jn++),Ao=ia[ra in o?$t.charAt(Jn++):ra],!Ao||(_t=Ao(Rt,ua,_t))<0)return-1}else if(ra!=ua.charCodeAt(_t++))return-1}return _t}function Ba(Rt,$t,ua){var _t=ka.exec($t.slice(ua));return _t?(Rt.p=Ta[_t[0].toLowerCase()],ua+_t[0].length):-1}function Ga(Rt,$t,ua){var _t=ja.exec($t.slice(ua));return _t?(Rt.w=cn[_t[0].toLowerCase()],ua+_t[0].length):-1}function tn(Rt,$t,ua){var _t=qn.exec($t.slice(ua));return _t?(Rt.w=bn[_t[0].toLowerCase()],ua+_t[0].length):-1}function Wi(Rt,$t,ua){var _t=wn.exec($t.slice(ua));return _t?(Rt.m=Mi[_t[0].toLowerCase()],ua+_t[0].length):-1}function ji(Rt,$t,ua){var _t=Xn.exec($t.slice(ua));return _t?(Rt.m=vn[_t[0].toLowerCase()],ua+_t[0].length):-1}function Rn(Rt,$t,ua){return La(Rt,Oe,$t,ua)}function qa(Rt,$t,ua){return La(Rt,yr,$t,ua)}function Zn(Rt,$t,ua){return La(Rt,cr,$t,ua)}function fs(Rt){return yt[Rt.getDay()]}function us(Rt){return At[Rt.getDay()]}function kl(Rt){return ta[Rt.getMonth()]}function Zu(Rt){return Nt[Rt.getMonth()]}function Oo(Rt){return xt[+(Rt.getHours()>=12)]}function Yf(Rt){return 1+~~(Rt.getMonth()/3)}function Wf(Rt){return yt[Rt.getUTCDay()]}function Xi(Rt){return At[Rt.getUTCDay()]}function hi(Rt){return ta[Rt.getUTCMonth()]}function Oi(Rt){return Nt[Rt.getUTCMonth()]}function Cl(Rt){return xt[+(Rt.getUTCHours()>=12)]}function di(Rt){return 1+~~(Rt.getUTCMonth()/3)}return{format:function(Rt){var $t=Va(Rt+="",Pt);return $t.toString=function(){return Rt},$t},parse:function(Rt){var $t=hn(Rt+="",!1);return $t.toString=function(){return Rt},$t},utcFormat:function(Rt){var $t=Va(Rt+="",Ca);return $t.toString=function(){return Rt},$t},utcParse:function(Rt){var $t=hn(Rt+="",!0);return $t.toString=function(){return Rt},$t}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,f=/[\\^$*+?|[\]().{}]/g;function u(Se,Oe,yr){var cr=Se<0?"-":"",xt=(cr?-Se:Se)+"",At=xt.length;return cr+(At68?1900:2e3),yr+cr[0].length):-1}function T(Se,Oe,yr){var cr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Oe.slice(yr,yr+6));return cr?(Se.Z=cr[1]?0:-(cr[2]+(cr[3]||"00")),yr+cr[0].length):-1}function E(Se,Oe,yr){var cr=l.exec(Oe.slice(yr,yr+1));return cr?(Se.q=cr[0]*3-3,yr+cr[0].length):-1}function M(Se,Oe,yr){var cr=l.exec(Oe.slice(yr,yr+2));return cr?(Se.m=cr[0]-1,yr+cr[0].length):-1}function C(Se,Oe,yr){var cr=l.exec(Oe.slice(yr,yr+2));return cr?(Se.d=+cr[0],yr+cr[0].length):-1}function F(Se,Oe,yr){var cr=l.exec(Oe.slice(yr,yr+3));return cr?(Se.m=0,Se.d=+cr[0],yr+cr[0].length):-1}function I(Se,Oe,yr){var cr=l.exec(Oe.slice(yr,yr+2));return cr?(Se.H=+cr[0],yr+cr[0].length):-1}function O(Se,Oe,yr){var cr=l.exec(Oe.slice(yr,yr+2));return cr?(Se.M=+cr[0],yr+cr[0].length):-1}function q(Se,Oe,yr){var cr=l.exec(Oe.slice(yr,yr+2));return cr?(Se.S=+cr[0],yr+cr[0].length):-1}function H(Se,Oe,yr){var cr=l.exec(Oe.slice(yr,yr+3));return cr?(Se.L=+cr[0],yr+cr[0].length):-1}function X(Se,Oe,yr){var cr=l.exec(Oe.slice(yr,yr+6));return cr?(Se.L=Math.floor(cr[0]/1e3),yr+cr[0].length):-1}function le(Se,Oe,yr){var cr=s.exec(Oe.slice(yr,yr+1));return cr?yr+cr[0].length:-1}function ae(Se,Oe,yr){var cr=l.exec(Oe.slice(yr));return cr?(Se.Q=+cr[0],yr+cr[0].length):-1}function Q(Se,Oe,yr){var cr=l.exec(Oe.slice(yr));return cr?(Se.s=+cr[0],yr+cr[0].length):-1}function Z(Se,Oe){return u(Se.getDate(),Oe,2)}function J(Se,Oe){return u(Se.getHours(),Oe,2)}function ie(Se,Oe){return u(Se.getHours()%12||12,Oe,2)}function ue(Se,Oe){return u(1+r.timeDay.count(r.timeYear(Se),Se),Oe,3)}function De(Se,Oe){return u(Se.getMilliseconds(),Oe,3)}function Ie(Se,Oe){return De(Se,Oe)+"000"}function Ee(Se,Oe){return u(Se.getMonth()+1,Oe,2)}function Ze(Se,Oe){return u(Se.getMinutes(),Oe,2)}function Ae(Se,Oe){return u(Se.getSeconds(),Oe,2)}function ir(Se){var Oe=Se.getDay();return Oe===0?7:Oe}function Ge(Se,Oe){return u(r.timeSunday.count(r.timeYear(Se)-1,Se),Oe,2)}function Qe(Se,Oe){var yr=Se.getDay();return Se=yr>=4||yr===0?r.timeThursday(Se):r.timeThursday.ceil(Se),u(r.timeThursday.count(r.timeYear(Se),Se)+(r.timeYear(Se).getDay()===4),Oe,2)}function He(Se){return Se.getDay()}function Ve(Se,Oe){return u(r.timeMonday.count(r.timeYear(Se)-1,Se),Oe,2)}function ee(Se,Oe){return u(Se.getFullYear()%100,Oe,2)}function me(Se,Oe){return u(Se.getFullYear()%1e4,Oe,4)}function re(Se){var Oe=Se.getTimezoneOffset();return(Oe>0?"-":(Oe*=-1,"+"))+u(Oe/60|0,"0",2)+u(Oe%60,"0",2)}function je(Se,Oe){return u(Se.getUTCDate(),Oe,2)}function vr(Se,Oe){return u(Se.getUTCHours(),Oe,2)}function rr(Se,Oe){return u(Se.getUTCHours()%12||12,Oe,2)}function Cr(Se,Oe){return u(1+r.utcDay.count(r.utcYear(Se),Se),Oe,3)}function Lr(Se,Oe){return u(Se.getUTCMilliseconds(),Oe,3)}function _r(Se,Oe){return Lr(Se,Oe)+"000"}function Pr(Se,Oe){return u(Se.getUTCMonth()+1,Oe,2)}function rt(Se,Oe){return u(Se.getUTCMinutes(),Oe,2)}function Jr(Se,Oe){return u(Se.getUTCSeconds(),Oe,2)}function wr(Se){var Oe=Se.getUTCDay();return Oe===0?7:Oe}function Hr(Se,Oe){return u(r.utcSunday.count(r.utcYear(Se)-1,Se),Oe,2)}function Vr(Se,Oe){var yr=Se.getUTCDay();return Se=yr>=4||yr===0?r.utcThursday(Se):r.utcThursday.ceil(Se),u(r.utcThursday.count(r.utcYear(Se),Se)+(r.utcYear(Se).getUTCDay()===4),Oe,2)}function Pe(Se){return Se.getUTCDay()}function sr(Se,Oe){return u(r.utcMonday.count(r.utcYear(Se)-1,Se),Oe,2)}function lt(Se,Oe){return u(Se.getUTCFullYear()%100,Oe,2)}function Et(Se,Oe){return u(Se.getUTCFullYear()%1e4,Oe,4)}function wt(){return"+0000"}function Fe(){return"%"}function hr(Se){return+Se}function Ir(Se){return Math.floor(+Se/1e3)}var at;Yr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Yr(Se){return at=i(Se),e.timeFormat=at.format,e.timeParse=at.parse,e.utcFormat=at.utcFormat,e.utcParse=at.utcParse,at}var nt="%Y-%m-%dT%H:%M:%S.%LZ";function vt(Se){return Se.toISOString()}var ot=Date.prototype.toISOString?vt:e.utcFormat(nt);function et(Se){var Oe=new Date(Se);return isNaN(Oe)?null:Oe}var pr=+new Date("2000-01-01T00:00:00.000Z")?et:e.utcParse(nt);e.isoFormat=ot,e.isoParse=pr,e.timeFormatDefaultLocale=Yr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var g5=P((Lg,_M)=>{(function(e,r){typeof Lg=="object"&&typeof _M!="undefined"?r(Lg):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Lg,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,C){if((F=(M=C?M.toExponential(C-1):M.toExponential()).indexOf("e"))<0)return null;var F,I=M.slice(0,F);return[I.length>1?I[0]+I.slice(2):I,+M.slice(F+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,C){return function(F,I){for(var O=F.length,q=[],H=0,X=M[0],le=0;O>0&&X>0&&(le+X+1>I&&(X=Math.max(1,I-le)),q.push(F.substring(O-=X,O+X)),!((le+=X+1)>I));)X=M[H=(H+1)%M.length];return q.reverse().join(C)}}function i(M){return function(C){return C.replace(/[0-9]/g,function(F){return M[+F]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(C=o.exec(M)))throw new Error("invalid format: "+M);var C;return new s({fill:C[1],align:C[2],sign:C[3],symbol:C[4],zero:C[5],width:C[6],comma:C[7],precision:C[8]&&C[8].slice(1),trim:C[9],type:C[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function f(M){e:for(var C=M.length,F=1,I=-1,O;F0&&(I=0);break}return I>0?M.slice(0,I)+M.slice(O+1):M}var u;function c(M,C){var F=t(M,C);if(!F)return M+"";var I=F[0],O=F[1],q=O-(u=Math.max(-8,Math.min(8,Math.floor(O/3)))*3)+1,H=I.length;return q===H?I:q>H?I+new Array(q-H+1).join("0"):q>0?I.slice(0,q)+"."+I.slice(q):"0."+new Array(1-q).join("0")+t(M,Math.max(0,C+q-1))[0]}function v(M,C){var F=t(M,C);if(!F)return M+"";var I=F[0],O=F[1];return O<0?"0."+new Array(-O).join("0")+I:I.length>O+1?I.slice(0,O+1)+"."+I.slice(O+1):I+new Array(O-I.length+2).join("0")}var d={"%":function(M,C){return(M*100).toFixed(C)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,C){return M.toExponential(C)},f:function(M,C){return M.toFixed(C)},g:function(M,C){return M.toPrecision(C)},o:function(M){return Math.round(M).toString(8)},p:function(M,C){return v(M*100,C)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var y=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var C=M.grouping===void 0||M.thousands===void 0?p:n(y.call(M.grouping,Number),M.thousands+""),F=M.currency===void 0?"":M.currency[0]+"",I=M.currency===void 0?"":M.currency[1]+"",O=M.decimal===void 0?".":M.decimal+"",q=M.numerals===void 0?p:i(y.call(M.numerals,String)),H=M.percent===void 0?"%":M.percent+"",X=M.minus===void 0?"-":M.minus+"",le=M.nan===void 0?"NaN":M.nan+"";function ae(Z){Z=l(Z);var J=Z.fill,ie=Z.align,ue=Z.sign,De=Z.symbol,Ie=Z.zero,Ee=Z.width,Ze=Z.comma,Ae=Z.precision,ir=Z.trim,Ge=Z.type;Ge==="n"?(Ze=!0,Ge="g"):d[Ge]||(Ae===void 0&&(Ae=12),ir=!0,Ge="g"),(Ie||J==="0"&&ie==="=")&&(Ie=!0,J="0",ie="=");var Qe=De==="$"?F:De==="#"&&/[boxX]/.test(Ge)?"0"+Ge.toLowerCase():"",He=De==="$"?I:/[%p]/.test(Ge)?H:"",Ve=d[Ge],ee=/[defgprs%]/.test(Ge);Ae=Ae===void 0?6:/[gprs]/.test(Ge)?Math.max(1,Math.min(21,Ae)):Math.max(0,Math.min(20,Ae));function me(re){var je=Qe,vr=He,rr,Cr,Lr;if(Ge==="c")vr=Ve(re)+vr,re="";else{re=+re;var _r=re<0||1/re<0;if(re=isNaN(re)?le:Ve(Math.abs(re),Ae),ir&&(re=f(re)),_r&&+re==0&&ue!=="+"&&(_r=!1),je=(_r?ue==="("?ue:X:ue==="-"||ue==="("?"":ue)+je,vr=(Ge==="s"?m[8+u/3]:"")+vr+(_r&&ue==="("?")":""),ee){for(rr=-1,Cr=re.length;++rrLr||Lr>57){vr=(Lr===46?O+re.slice(rr+1):re.slice(rr))+vr,re=re.slice(0,rr);break}}}Ze&&!Ie&&(re=C(re,1/0));var Pr=je.length+re.length+vr.length,rt=Pr>1)+je+re+vr+rt.slice(Pr);break;default:re=rt+je+re+vr;break}return q(re)}return me.toString=function(){return Z+""},me}function Q(Z,J){var ie=ae((Z=l(Z),Z.type="f",Z)),ue=Math.max(-8,Math.min(8,Math.floor(a(J)/3)))*3,De=Math.pow(10,-ue),Ie=m[8+ue/3];return function(Ee){return ie(De*Ee)+Ie}}return{format:ae,formatPrefix:Q}}var A;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(M){return A=b(M),e.format=A.format,e.formatPrefix=A.formatPrefix,A}function x(M){return Math.max(0,-a(Math.abs(M)))}function T(M,C){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(C)/3)))*3-a(Math.abs(M)))}function E(M,C){return M=Math.abs(M),C=Math.abs(C)-M,Math.max(0,a(C)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=_,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=T,e.precisionRound=E,Object.defineProperty(e,"__esModule",{value:!0})})});var AM=P((fEe,wM)=>{"use strict";wM.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var ga=P((uEe,TM)=>{"use strict";var Vne=AM();TM.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Vne(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Kn=P((cEe,MM)=>{"use strict";MM.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var b5=P((Dg,SM)=>{(function(e,r){typeof Dg=="object"&&typeof SM!="undefined"?r(Dg):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Dg,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],u+=r[(l[s]&3)<<4|l[s+1]>>4],u+=r[(l[s+1]&15)<<2|l[s+2]>>6],u+=r[l[s+2]&63];return f%3===2?u=u.substring(0,u.length-1)+"=":f%3===1&&(u=u.substring(0,u.length-2)+"=="),u},i=function(o){var l=o.length*.75,s=o.length,f,u=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var y=new ArrayBuffer(l),m=new Uint8Array(y);for(f=0;f>4,m[u++]=(v&15)<<4|d>>2,m[u++]=(d&3)<<6|p&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var Mc=P((vEe,EM)=>{"use strict";EM.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Yo=P(Es=>{"use strict";var Yne=b5().decode,Wne=Mc(),x5=Array.isArray,jne=ArrayBuffer,Xne=DataView;function kM(e){return jne.isView(e)&&!(e instanceof Xne)}Es.isTypedArray=kM;function Fg(e){return x5(e)||kM(e)}Es.isArrayOrTypedArray=Fg;function Zne(e){return!Fg(e[0])}Es.isArray1D=Zne;Es.ensureArray=function(e,r){return x5(e)||(e=[]),e.length=r,e};var Fi={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Fi.uint8c=Fi.u1c;Fi.uint8=Fi.u1;Fi.int8=Fi.i1;Fi.uint16=Fi.u2;Fi.int16=Fi.i2;Fi.uint32=Fi.u4;Fi.int32=Fi.i4;Fi.float32=Fi.f4;Fi.float64=Fi.f8;function _5(e){return e.constructor===ArrayBuffer}Es.isArrayBuffer=_5;Es.decodeTypedArraySpec=function(e){var r=[],t=Jne(e),a=t.dtype,n=Fi[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;_5(o)||(o=Yne(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,f,u,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(f=+l[1],u=0;u{"use strict";var LM=ga(),A5=Yo().isArrayOrTypedArray;RM.exports=function(r,t){if(LM(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var jh=qg(),rie=/^\w*$/,tie=0,PM=1,Rg=2,NM=3,v0=4;IM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=jh(r,t),o=l.get()):o=r,t=t||"";var f={};if(o)for(i=0;i2)return s[d]=s[d]|Rg,c.set(v,null);if(u){for(i=d;i{"use strict";var aie=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,nie=/^[^\.\[\]]+$/;BM.exports=function(e,r){for(;r;){var t=e.match(aie);if(t)e=t[1];else if(e.match(nie))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Pg=P((yEe,GM)=>{"use strict";var iie=ga();GM.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return iie(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var VM=P((gEe,HM)=>{"use strict";var UM=Yo().isArrayOrTypedArray,q1=Mc();HM.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(UM(n)&&UM(i)&&q1(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function oie(e,r){var t=e%r;return t<0?t+r:t}function lie(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}YM.exports={mod:oie,modHalf:lie}});var ks=P((xEe,Ng)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(ee,me){if(ee=ee||"",me=me||{},ee instanceof s)return ee;if(!(this instanceof s))return new s(ee,me);var re=f(ee);this._originalInput=ee,this._r=re.r,this._g=re.g,this._b=re.b,this._a=re.a,this._roundA=n(100*this._a)/100,this._format=me.format||re.format,this._gradientType=me.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=re.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ee=this.toRgb();return(ee.r*299+ee.g*587+ee.b*114)/1e3},getLuminance:function(){var ee=this.toRgb(),me,re,je,vr,rr,Cr;return me=ee.r/255,re=ee.g/255,je=ee.b/255,me<=.03928?vr=me/12.92:vr=e.pow((me+.055)/1.055,2.4),re<=.03928?rr=re/12.92:rr=e.pow((re+.055)/1.055,2.4),je<=.03928?Cr=je/12.92:Cr=e.pow((je+.055)/1.055,2.4),.2126*vr+.7152*rr+.0722*Cr},setAlpha:function(ee){return this._a=Z(ee),this._roundA=n(100*this._a)/100,this},toHsv:function(){var ee=d(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,v:ee.v,a:this._a}},toHsvString:function(){var ee=d(this._r,this._g,this._b),me=n(ee.h*360),re=n(ee.s*100),je=n(ee.v*100);return this._a==1?"hsv("+me+", "+re+"%, "+je+"%)":"hsva("+me+", "+re+"%, "+je+"%, "+this._roundA+")"},toHsl:function(){var ee=c(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,l:ee.l,a:this._a}},toHslString:function(){var ee=c(this._r,this._g,this._b),me=n(ee.h*360),re=n(ee.s*100),je=n(ee.l*100);return this._a==1?"hsl("+me+", "+re+"%, "+je+"%)":"hsla("+me+", "+re+"%, "+je+"%, "+this._roundA+")"},toHex:function(ee){return y(this._r,this._g,this._b,ee)},toHexString:function(ee){return"#"+this.toHex(ee)},toHex8:function(ee){return m(this._r,this._g,this._b,this._a,ee)},toHex8String:function(ee){return"#"+this.toHex8(ee)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(J(this._r,255)*100)+"%",g:n(J(this._g,255)*100)+"%",b:n(J(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(J(this._r,255)*100)+"%, "+n(J(this._g,255)*100)+"%, "+n(J(this._b,255)*100)+"%)":"rgba("+n(J(this._r,255)*100)+"%, "+n(J(this._g,255)*100)+"%, "+n(J(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ae[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(ee){var me="#"+b(this._r,this._g,this._b,this._a),re=me,je=this._gradientType?"GradientType = 1, ":"";if(ee){var vr=s(ee);re="#"+b(vr._r,vr._g,vr._b,vr._a)}return"progid:DXImageTransform.Microsoft.gradient("+je+"startColorstr="+me+",endColorstr="+re+")"},toString:function(ee){var me=!!ee;ee=ee||this._format;var re=!1,je=this._a<1&&this._a>=0,vr=!me&&je&&(ee==="hex"||ee==="hex6"||ee==="hex3"||ee==="hex4"||ee==="hex8"||ee==="name");return vr?ee==="name"&&this._a===0?this.toName():this.toRgbString():(ee==="rgb"&&(re=this.toRgbString()),ee==="prgb"&&(re=this.toPercentageRgbString()),(ee==="hex"||ee==="hex6")&&(re=this.toHexString()),ee==="hex3"&&(re=this.toHexString(!0)),ee==="hex4"&&(re=this.toHex8String(!0)),ee==="hex8"&&(re=this.toHex8String()),ee==="name"&&(re=this.toName()),ee==="hsl"&&(re=this.toHslString()),ee==="hsv"&&(re=this.toHsvString()),re||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(ee,me){var re=ee.apply(null,[this].concat([].slice.call(me)));return this._r=re._r,this._g=re._g,this._b=re._b,this.setAlpha(re._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(E,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(ee,me){return ee.apply(null,[this].concat([].slice.call(me)))},analogous:function(){return this._applyCombination(H,arguments)},complement:function(){return this._applyCombination(F,arguments)},monochromatic:function(){return this._applyCombination(X,arguments)},splitcomplement:function(){return this._applyCombination(q,arguments)},triad:function(){return this._applyCombination(I,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},s.fromRatio=function(ee,me){if(typeof ee=="object"){var re={};for(var je in ee)ee.hasOwnProperty(je)&&(je==="a"?re[je]=ee[je]:re[je]=Ze(ee[je]));ee=re}return s(ee,me)};function f(ee){var me={r:0,g:0,b:0},re=1,je=null,vr=null,rr=null,Cr=!1,Lr=!1;return typeof ee=="string"&&(ee=He(ee)),typeof ee=="object"&&(Qe(ee.r)&&Qe(ee.g)&&Qe(ee.b)?(me=u(ee.r,ee.g,ee.b),Cr=!0,Lr=String(ee.r).substr(-1)==="%"?"prgb":"rgb"):Qe(ee.h)&&Qe(ee.s)&&Qe(ee.v)?(je=Ze(ee.s),vr=Ze(ee.v),me=p(ee.h,je,vr),Cr=!0,Lr="hsv"):Qe(ee.h)&&Qe(ee.s)&&Qe(ee.l)&&(je=Ze(ee.s),rr=Ze(ee.l),me=v(ee.h,je,rr),Cr=!0,Lr="hsl"),ee.hasOwnProperty("a")&&(re=ee.a)),re=Z(re),{ok:Cr,format:ee.format||Lr,r:i(255,o(me.r,0)),g:i(255,o(me.g,0)),b:i(255,o(me.b,0)),a:re}}function u(ee,me,re){return{r:J(ee,255)*255,g:J(me,255)*255,b:J(re,255)*255}}function c(ee,me,re){ee=J(ee,255),me=J(me,255),re=J(re,255);var je=o(ee,me,re),vr=i(ee,me,re),rr,Cr,Lr=(je+vr)/2;if(je==vr)rr=Cr=0;else{var _r=je-vr;switch(Cr=Lr>.5?_r/(2-je-vr):_r/(je+vr),je){case ee:rr=(me-re)/_r+(me1&&(Jr-=1),Jr<1/6?Pr+(rt-Pr)*6*Jr:Jr<1/2?rt:Jr<2/3?Pr+(rt-Pr)*(2/3-Jr)*6:Pr}if(me===0)je=vr=rr=re;else{var Lr=re<.5?re*(1+me):re+me-re*me,_r=2*re-Lr;je=Cr(_r,Lr,ee+1/3),vr=Cr(_r,Lr,ee),rr=Cr(_r,Lr,ee-1/3)}return{r:je*255,g:vr*255,b:rr*255}}function d(ee,me,re){ee=J(ee,255),me=J(me,255),re=J(re,255);var je=o(ee,me,re),vr=i(ee,me,re),rr,Cr,Lr=je,_r=je-vr;if(Cr=je===0?0:_r/je,je==vr)rr=0;else{switch(je){case ee:rr=(me-re)/_r+(me>1)+720)%360;--me;)je.h=(je.h+vr)%360,rr.push(s(je));return rr}function X(ee,me){me=me||6;for(var re=s(ee).toHsv(),je=re.h,vr=re.s,rr=re.v,Cr=[],Lr=1/me;me--;)Cr.push(s({h:je,s:vr,v:rr})),rr=(rr+Lr)%1;return Cr}s.mix=function(ee,me,re){re=re===0?0:re||50;var je=s(ee).toRgb(),vr=s(me).toRgb(),rr=re/100,Cr={r:(vr.r-je.r)*rr+je.r,g:(vr.g-je.g)*rr+je.g,b:(vr.b-je.b)*rr+je.b,a:(vr.a-je.a)*rr+je.a};return s(Cr)},s.readability=function(ee,me){var re=s(ee),je=s(me);return(e.max(re.getLuminance(),je.getLuminance())+.05)/(e.min(re.getLuminance(),je.getLuminance())+.05)},s.isReadable=function(ee,me,re){var je=s.readability(ee,me),vr,rr;switch(rr=!1,vr=Ve(re),vr.level+vr.size){case"AAsmall":case"AAAlarge":rr=je>=4.5;break;case"AAlarge":rr=je>=3;break;case"AAAsmall":rr=je>=7;break}return rr},s.mostReadable=function(ee,me,re){var je=null,vr=0,rr,Cr,Lr,_r;re=re||{},Cr=re.includeFallbackColors,Lr=re.level,_r=re.size;for(var Pr=0;Prvr&&(vr=rr,je=s(me[Pr]));return s.isReadable(ee,je,{level:Lr,size:_r})||!Cr?je:(re.includeFallbackColors=!1,s.mostReadable(ee,["#fff","#000"],re))};var le=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ae=s.hexNames=Q(le);function Q(ee){var me={};for(var re in ee)ee.hasOwnProperty(re)&&(me[ee[re]]=re);return me}function Z(ee){return ee=parseFloat(ee),(isNaN(ee)||ee<0||ee>1)&&(ee=1),ee}function J(ee,me){De(ee)&&(ee="100%");var re=Ie(ee);return ee=i(me,o(0,parseFloat(ee))),re&&(ee=parseInt(ee*me,10)/100),e.abs(ee-me)<1e-6?1:ee%me/parseFloat(me)}function ie(ee){return i(1,o(0,ee))}function ue(ee){return parseInt(ee,16)}function De(ee){return typeof ee=="string"&&ee.indexOf(".")!=-1&&parseFloat(ee)===1}function Ie(ee){return typeof ee=="string"&&ee.indexOf("%")!=-1}function Ee(ee){return ee.length==1?"0"+ee:""+ee}function Ze(ee){return ee<=1&&(ee=ee*100+"%"),ee}function Ae(ee){return e.round(parseFloat(ee)*255).toString(16)}function ir(ee){return ue(ee)/255}var Ge=function(){var ee="[-\\+]?\\d+%?",me="[-\\+]?\\d*\\.\\d+%?",re="(?:"+me+")|(?:"+ee+")",je="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",vr="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+je),rgba:new RegExp("rgba"+vr),hsl:new RegExp("hsl"+je),hsla:new RegExp("hsla"+vr),hsv:new RegExp("hsv"+je),hsva:new RegExp("hsva"+vr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Qe(ee){return!!Ge.CSS_UNIT.exec(ee)}function He(ee){ee=ee.replace(r,"").replace(t,"").toLowerCase();var me=!1;if(le[ee])ee=le[ee],me=!0;else if(ee=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=Ge.rgb.exec(ee))?{r:re[1],g:re[2],b:re[3]}:(re=Ge.rgba.exec(ee))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=Ge.hsl.exec(ee))?{h:re[1],s:re[2],l:re[3]}:(re=Ge.hsla.exec(ee))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=Ge.hsv.exec(ee))?{h:re[1],s:re[2],v:re[3]}:(re=Ge.hsva.exec(ee))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=Ge.hex8.exec(ee))?{r:ue(re[1]),g:ue(re[2]),b:ue(re[3]),a:ir(re[4]),format:me?"name":"hex8"}:(re=Ge.hex6.exec(ee))?{r:ue(re[1]),g:ue(re[2]),b:ue(re[3]),format:me?"name":"hex"}:(re=Ge.hex4.exec(ee))?{r:ue(re[1]+""+re[1]),g:ue(re[2]+""+re[2]),b:ue(re[3]+""+re[3]),a:ir(re[4]+""+re[4]),format:me?"name":"hex8"}:(re=Ge.hex3.exec(ee))?{r:ue(re[1]+""+re[1]),g:ue(re[2]+""+re[2]),b:ue(re[3]+""+re[3]),format:me?"name":"hex"}:!1}function Ve(ee){var me,re;return ee=ee||{level:"AA",size:"small"},me=(ee.level||"AA").toUpperCase(),re=(ee.size||"small").toLowerCase(),me!=="AA"&&me!=="AAA"&&(me="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:me,size:re}}typeof Ng!="undefined"&&Ng.exports?Ng.exports=s:window.tinycolor=s})(Math)});var zn=P(N1=>{"use strict";var WM=Mc(),R1=Array.isArray;function sie(e,r){var t,a;for(t=0;t{"use strict";jM.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var I1=P((AEe,XM)=>{"use strict";XM.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Zh=P((TEe,$M)=>{"use strict";var ZM=I1(),JM=zi(),T5=JM({editType:"none"});T5.family.dflt=ZM.HOVERFONT;T5.size.dflt=ZM.HOVERFONTSIZE;$M.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:T5,grouptitlefont:JM({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Ig=P((MEe,QM)=>{"use strict";var fie=zi(),O1=Zh().hoverlabel,B1=zn().extendFlat;QM.exports={hoverlabel:{bgcolor:B1({},O1.bgcolor,{arrayOk:!0}),bordercolor:B1({},O1.bordercolor,{arrayOk:!0}),font:fie({arrayOk:!0,editType:"none"}),align:B1({},O1.align,{arrayOk:!0}),namelength:B1({},O1.namelength,{arrayOk:!0}),showarrow:B1({},O1.showarrow),editType:"none"}}});var Cs=P((SEe,KM)=>{"use strict";var uie=zi(),cie=Ig();KM.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:uie({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:cie.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var h0=P((EEe,tS)=>{"use strict";var vie=ks(),Og={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},eS=Og.RdBu;function hie(e,r){if(r||(r=eS),!e)return r;function t(){try{e=Og[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),rS(e)?e:r}function rS(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";d0.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];d0.defaultLine="#444";d0.lightLine="#eee";d0.background="#fff";d0.borderLine="#BEC8D9";d0.lightFraction=100*10/11});var va=P((CEe,aS)=>{"use strict";var Wo=ks(),pie=ga(),mie=Yo().isTypedArray,gi=aS.exports={},Bg=wf();gi.defaults=Bg.defaults;var yie=gi.defaultLine=Bg.defaultLine;gi.lightLine=Bg.lightLine;var S5=gi.background=Bg.background;gi.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};gi.rgb=function(e){return gi.tinyRGB(Wo(e))};gi.opacity=function(e){return e?Wo(e).getAlpha():0};gi.addOpacity=function(e,r){var t=Wo(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};gi.combine=function(e,r){var t=Wo(e).toRgb();if(t.a===1)return Wo(e).toRgbString();var a=Wo(r||S5).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Wo(i).toRgbString()};gi.interpolate=function(e,r,t){var a=Wo(e).toRgb(),n=Wo(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Wo(i).toRgbString()};gi.contrast=function(e,r,t){var a=Wo(e);a.getAlpha()!==1&&(a=Wo(gi.combine(e,S5)));var n=a.isDark()?r?a.lighten(r):S5:t?a.darken(t):yie;return n.toString()};gi.stroke=function(e,r){var t=Wo(r);e.style({stroke:gi.tinyRGB(t),"stroke-opacity":t.getAlpha()})};gi.fill=function(e,r){var t=Wo(r);e.style({fill:gi.tinyRGB(t),"fill-opacity":t.getAlpha()})};gi.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var o=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+o+", "+a[3]+")":"rgb("+o+")"}});var Jh=P((LEe,nS)=>{"use strict";nS.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var $h=P(iS=>{"use strict";iS.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var fS=P(jo=>{"use strict";var E5=ga(),oS=ks(),lS=zn().extendFlat,gie=Cs(),bie=h0(),xie=va(),_ie=Jh().DESELECTDIM,Qh=qg(),sS=$h().counter,wie=Xh().modHalf,Af=Yo().isArrayOrTypedArray,Sc=Yo().isTypedArraySpec,Ec=Yo().decodeTypedArraySpec;jo.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Af(e)?e:Sc(e)?Ec(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;aa.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Sc(e)&&(e=Ec(e)),e%1||!E5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Sc(e)&&(e=Ec(e)),oS(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return oS(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(bie.get(e,t))}},angle:{coerceFunction:function(e,r,t){Sc(e)&&(e=Ec(e)),e==="auto"?r.set("auto"):E5(e)?r.set(wie(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||sS(t);if(typeof e=="string"&&n.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!sS(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var uS={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},cS={};function vS(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),vS(a,r[t]))}}vS(uS,cS);hS.exports={configAttributes:uS,dfltConfig:cS}});var C5=P((REe,dS)=>{"use strict";var k5=ha(),Aie=ga(),z1=[];dS.exports=function(e,r){if(z1.indexOf(e)!==-1)return;z1.push(e);var t=1e3;Aie(r)?t=r:r==="long"&&(t=3e3);var a=k5.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(z1);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=z1.indexOf(l);s!==-1&&z1.splice(s,1),k5.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=k5.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),f=o.split(//g),u=0;u{"use strict";var Kh=p0().dfltConfig,L5=C5(),D5=pS.exports={};D5.log=function(){var e;if(Kh.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};D5.warn=function(){var e;if(Kh.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};D5.error=function(){var e;if(Kh.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Gg=P((NEe,mS)=>{"use strict";mS.exports=function(){}});var F5=P((IEe,yS)=>{"use strict";yS.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{gS.exports=Tie;function Tie(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var _S=P((BEe,xS)=>{xS.exports=Mie;function Mie(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var AS=P((zEe,wS)=>{wS.exports=Sie;function Sie(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var q5=P((GEe,TS)=>{TS.exports=Eie;function Eie(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var SS=P((UEe,MS)=>{MS.exports=kie;function kie(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var kS=P((HEe,ES)=>{ES.exports=Cie;function Cie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],f=r[7],u=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15],A=t*l-a*o,_=t*s-n*o,x=t*f-i*o,T=a*s-n*l,E=a*f-i*l,M=n*f-i*s,C=u*y-c*p,F=u*m-v*p,I=u*b-d*p,O=c*m-v*y,q=c*b-d*y,H=v*b-d*m,X=A*H-_*q+x*O+T*I-E*F+M*C;return X?(X=1/X,e[0]=(l*H-s*q+f*O)*X,e[1]=(n*q-a*H-i*O)*X,e[2]=(y*M-m*E+b*T)*X,e[3]=(v*E-c*M-d*T)*X,e[4]=(s*I-o*H-f*F)*X,e[5]=(t*H-n*I+i*F)*X,e[6]=(m*x-p*M-b*_)*X,e[7]=(u*M-v*x+d*_)*X,e[8]=(o*q-l*I+f*C)*X,e[9]=(a*I-t*q-i*C)*X,e[10]=(p*E-y*x+b*A)*X,e[11]=(c*x-u*E-d*A)*X,e[12]=(l*F-o*O-s*C)*X,e[13]=(t*O-a*F+n*C)*X,e[14]=(y*_-p*T-m*A)*X,e[15]=(u*T-c*_+v*A)*X,e):null}});var LS=P((VEe,CS)=>{CS.exports=Lie;function Lie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],f=r[7],u=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15];return e[0]=l*(v*b-d*m)-c*(s*b-f*m)+y*(s*d-f*v),e[1]=-(a*(v*b-d*m)-c*(n*b-i*m)+y*(n*d-i*v)),e[2]=a*(s*b-f*m)-l*(n*b-i*m)+y*(n*f-i*s),e[3]=-(a*(s*d-f*v)-l*(n*d-i*v)+c*(n*f-i*s)),e[4]=-(o*(v*b-d*m)-u*(s*b-f*m)+p*(s*d-f*v)),e[5]=t*(v*b-d*m)-u*(n*b-i*m)+p*(n*d-i*v),e[6]=-(t*(s*b-f*m)-o*(n*b-i*m)+p*(n*f-i*s)),e[7]=t*(s*d-f*v)-o*(n*d-i*v)+u*(n*f-i*s),e[8]=o*(c*b-d*y)-u*(l*b-f*y)+p*(l*d-f*c),e[9]=-(t*(c*b-d*y)-u*(a*b-i*y)+p*(a*d-i*c)),e[10]=t*(l*b-f*y)-o*(a*b-i*y)+p*(a*f-i*l),e[11]=-(t*(l*d-f*c)-o*(a*d-i*c)+u*(a*f-i*l)),e[12]=-(o*(c*m-v*y)-u*(l*m-s*y)+p*(l*v-s*c)),e[13]=t*(c*m-v*y)-u*(a*m-n*y)+p*(a*v-n*c),e[14]=-(t*(l*m-s*y)-o*(a*m-n*y)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+u*(a*s-n*l),e}});var FS=P((YEe,DS)=>{DS.exports=Die;function Die(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],f=e[8],u=e[9],c=e[10],v=e[11],d=e[12],p=e[13],y=e[14],m=e[15],b=r*o-t*i,A=r*l-a*i,_=r*s-n*i,x=t*l-a*o,T=t*s-n*o,E=a*s-n*l,M=f*p-u*d,C=f*y-c*d,F=f*m-v*d,I=u*y-c*p,O=u*m-v*p,q=c*m-v*y;return b*q-A*O+_*I+x*F-T*C+E*M}});var RS=P((WEe,qS)=>{qS.exports=Fie;function Fie(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],f=r[6],u=r[7],c=r[8],v=r[9],d=r[10],p=r[11],y=r[12],m=r[13],b=r[14],A=r[15],_=t[0],x=t[1],T=t[2],E=t[3];return e[0]=_*a+x*l+T*c+E*y,e[1]=_*n+x*s+T*v+E*m,e[2]=_*i+x*f+T*d+E*b,e[3]=_*o+x*u+T*p+E*A,_=t[4],x=t[5],T=t[6],E=t[7],e[4]=_*a+x*l+T*c+E*y,e[5]=_*n+x*s+T*v+E*m,e[6]=_*i+x*f+T*d+E*b,e[7]=_*o+x*u+T*p+E*A,_=t[8],x=t[9],T=t[10],E=t[11],e[8]=_*a+x*l+T*c+E*y,e[9]=_*n+x*s+T*v+E*m,e[10]=_*i+x*f+T*d+E*b,e[11]=_*o+x*u+T*p+E*A,_=t[12],x=t[13],T=t[14],E=t[15],e[12]=_*a+x*l+T*c+E*y,e[13]=_*n+x*s+T*v+E*m,e[14]=_*i+x*f+T*d+E*b,e[15]=_*o+x*u+T*p+E*A,e}});var NS=P((jEe,PS)=>{PS.exports=qie;function qie(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,f,u,c,v,d,p,y,m,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],f=r[3],u=r[4],c=r[5],v=r[6],d=r[7],p=r[8],y=r[9],m=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=f,e[4]=u,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=y,e[10]=m,e[11]=b,e[12]=o*a+u*n+p*i+r[12],e[13]=l*a+c*n+y*i+r[13],e[14]=s*a+v*n+m*i+r[14],e[15]=f*a+d*n+b*i+r[15]),e}});var OS=P((XEe,IS)=>{IS.exports=Rie;function Rie(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var zS=P((ZEe,BS)=>{BS.exports=Pie;function Pie(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,f,u,c,v,d,p,y,m,b,A,_,x,T,E,M,C,F,I,O,q,H,X,le;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),f=Math.cos(t),u=1-f,c=r[0],v=r[1],d=r[2],p=r[3],y=r[4],m=r[5],b=r[6],A=r[7],_=r[8],x=r[9],T=r[10],E=r[11],M=n*n*u+f,C=i*n*u+o*s,F=o*n*u-i*s,I=n*i*u-o*s,O=i*i*u+f,q=o*i*u+n*s,H=n*o*u+i*s,X=i*o*u-n*s,le=o*o*u+f,e[0]=c*M+y*C+_*F,e[1]=v*M+m*C+x*F,e[2]=d*M+b*C+T*F,e[3]=p*M+A*C+E*F,e[4]=c*I+y*O+_*q,e[5]=v*I+m*O+x*q,e[6]=d*I+b*O+T*q,e[7]=p*I+A*O+E*q,e[8]=c*H+y*X+_*le,e[9]=v*H+m*X+x*le,e[10]=d*H+b*X+T*le,e[11]=p*H+A*X+E*le,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var US=P((JEe,GS)=>{GS.exports=Nie;function Nie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],f=r[8],u=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+f*a,e[5]=o*n+u*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=f*n-i*a,e[9]=u*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var VS=P(($Ee,HS)=>{HS.exports=Iie;function Iie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],f=r[8],u=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-f*a,e[1]=o*n-u*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+f*n,e[9]=o*a+u*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var WS=P((QEe,YS)=>{YS.exports=Oie;function Oie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],f=r[4],u=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+f*a,e[1]=o*n+u*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=f*n-i*a,e[5]=u*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var XS=P((KEe,jS)=>{jS.exports=Bie;function Bie(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],f=Math.sqrt(o*o+l*l+s*s);return Math.abs(f)<1e-6?null:(f=1/f,o*=f,l*=f,s*=f,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var JS=P((eke,ZS)=>{ZS.exports=zie;function zie(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,f=i+i,u=a*l,c=a*s,v=a*f,d=n*s,p=n*f,y=i*f,m=o*l,b=o*s,A=o*f;return e[0]=1-(d+y),e[1]=c+A,e[2]=v-b,e[3]=0,e[4]=c-A,e[5]=1-(u+y),e[6]=p+m,e[7]=0,e[8]=v+b,e[9]=p-m,e[10]=1-(u+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var QS=P((rke,$S)=>{$S.exports=Gie;function Gie(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var eE=P((tke,KS)=>{KS.exports=Uie;function Uie(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var tE=P((ake,rE)=>{rE.exports=Hie;function Hie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var nE=P((nke,aE)=>{aE.exports=Vie;function Vie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var oE=P((ike,iE)=>{iE.exports=Yie;function Yie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var sE=P((oke,lE)=>{lE.exports=Wie;function Wie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,f=t*o,u=a*o,c=a*l,v=n*o,d=n*l,p=n*s,y=i*o,m=i*l,b=i*s;return e[0]=1-c-p,e[1]=u+b,e[2]=v-m,e[3]=0,e[4]=u-b,e[5]=1-f-p,e[6]=d+y,e[7]=0,e[8]=v+m,e[9]=d-y,e[10]=1-f-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var uE=P((lke,fE)=>{fE.exports=jie;function jie(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),f=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*f,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*f,e[15]=0,e}});var vE=P((ske,cE)=>{cE.exports=Xie;function Xie(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var dE=P((fke,hE)=>{hE.exports=Zie;function Zie(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),f=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=f,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*f*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var mE=P((uke,pE)=>{pE.exports=Jie;function Jie(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),f=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*f,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*f,e[15]=1,e}});var gE=P((cke,yE)=>{var $ie=q5();yE.exports=Qie;function Qie(e,r,t,a){var n,i,o,l,s,f,u,c,v,d,p=r[0],y=r[1],m=r[2],b=a[0],A=a[1],_=a[2],x=t[0],T=t[1],E=t[2];return Math.abs(p-x)<1e-6&&Math.abs(y-T)<1e-6&&Math.abs(m-E)<1e-6?$ie(e):(u=p-x,c=y-T,v=m-E,d=1/Math.sqrt(u*u+c*c+v*v),u*=d,c*=d,v*=d,n=A*v-_*c,i=_*u-b*v,o=b*c-A*u,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-u*o,f=u*i-c*n,d=Math.sqrt(l*l+s*s+f*f),d?(d=1/d,l*=d,s*=d,f*=d):(l=0,s=0,f=0),e[0]=n,e[1]=l,e[2]=u,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=f,e[10]=v,e[11]=0,e[12]=-(n*p+i*y+o*m),e[13]=-(l*p+s*y+f*m),e[14]=-(u*p+c*y+v*m),e[15]=1,e)}});var xE=P((vke,bE)=>{bE.exports=Kie;function Kie(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var R5=P((hke,_E)=>{_E.exports={create:bS(),clone:_S(),copy:AS(),identity:q5(),transpose:SS(),invert:kS(),adjoint:LS(),determinant:FS(),multiply:RS(),translate:NS(),scale:OS(),rotate:zS(),rotateX:US(),rotateY:VS(),rotateZ:WS(),fromRotation:XS(),fromRotationTranslation:JS(),fromScaling:QS(),fromTranslation:eE(),fromXRotation:tE(),fromYRotation:nE(),fromZRotation:oE(),fromQuat:sE(),frustum:uE(),perspective:vE(),perspectiveFromFieldOfView:dE(),ortho:mE(),lookAt:gE(),str:xE()}});var Ug=P(Gn=>{"use strict";var eoe=R5();Gn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var roe=ha(),wE=m0(),toe=Ug(),aoe=R5();function noe(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function ioe(e){var r=roe.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function AE(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function ooe(e,r){TE("global",e,r)}function TE(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):wE.warn("addStyleRule failed"):wE.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function loe(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&AE(t)}function soe(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(f){f.getAttribute(s)||(f.addEventListener("mouseenter",function(){var u=this.querySelector(t);u&&(u.style[o[0]]=o[1])}),f.addEventListener("mouseleave",function(){var u=this.querySelector(t);u&&(r&&this.matches(r)?u.style[o[0]]=o[1]:u.style[l[0]]=l[1])}),f.setAttribute(s,!0))})}function foe(e){var r=SE(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=ME(a);if(n){var i=toe.convertCssMatrix(n);t=aoe.multiply(t,t,i)}}),t}function ME(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function SE(e){for(var r=[];uoe(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function uoe(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function coe(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}EE.exports={getGraphDiv:noe,isPlotDiv:ioe,removeElement:AE,addStyleRule:ooe,addRelatedStyleRule:TE,deleteRelatedStyleRule:loe,setStyleOnHover:soe,getFullTransformMatrix:foe,getElementTransformMatrix:ME,getElementAndAncestors:SE,equalDomRects:coe}});var U1=P((mke,kE)=>{"use strict";kE.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Ls=P((yke,PE)=>{"use strict";var LE=zn().extendFlat,voe=Mc(),DE={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},FE={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},hoe=DE.flags.slice().concat(["fullReplot"]),doe=FE.flags.slice().concat("layoutReplot");PE.exports={traces:DE,layout:FE,traceFlags:function(){return CE(hoe)},layoutFlags:function(){return CE(doe)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";P5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};P5.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var N5=P((bke,NE)=>{"use strict";NE.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var y0=P(H1=>{"use strict";var IE=N5(),poe=IE.FORMAT_LINK,moe=IE.DATE_FORMAT_LINK;function yoe(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,poe,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,moe,"for details on the date formatting syntax."].join(" ")}H1.templateFormatStringDescription=yoe;function I5(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n{"use strict";function Cc(e,r){return r?r.d2l(e):e}function OE(e,r){return r?r.l2d(e):e}function goe(e){return e.x0}function boe(e){return e.x1}function xoe(e){return e.y0}function _oe(e){return e.y1}function BE(e){return e.x0shift||0}function zE(e){return e.x1shift||0}function GE(e){return e.y0shift||0}function UE(e){return e.y1shift||0}function Hg(e,r){return Cc(e.x1,r)+zE(e)-Cc(e.x0,r)-BE(e)}function Vg(e,r,t){return Cc(e.y1,t)+UE(e)-Cc(e.y0,t)-GE(e)}function woe(e,r){return Math.abs(Hg(e,r))}function Aoe(e,r,t){return Math.abs(Vg(e,r,t))}function Toe(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Hg(e,r),2)+Math.pow(Vg(e,r,t),2))}function Moe(e,r){return OE((Cc(e.x1,r)+zE(e)+Cc(e.x0,r)+BE(e))/2,r)}function Soe(e,r,t){return OE((Cc(e.y1,t)+UE(e)+Cc(e.y0,t)+GE(e))/2,t)}function Eoe(e,r,t){return e.type!=="line"?void 0:Vg(e,r,t)/Hg(e,r)}HE.exports={x0:goe,x1:boe,y0:xoe,y1:_oe,slope:Eoe,dx:Hg,dy:Vg,width:woe,height:Aoe,length:Toe,xcenter:Moe,ycenter:Soe}});var WE=P((wke,YE)=>{"use strict";var koe=Ls().overrideAll,g0=Cs(),VE=zi(),Coe=kc().dash,Lc=zn().extendFlat,Loe=y0().shapeTexttemplateAttrs,Doe=Yg();YE.exports=koe({newshape:{visible:Lc({},g0.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Lc({},g0.legend,{}),legendgroup:Lc({},g0.legendgroup,{}),legendgrouptitle:{text:Lc({},g0.legendgrouptitle.text,{}),font:VE({})},legendrank:Lc({},g0.legendrank,{}),legendwidth:Lc({},g0.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Lc({},Coe,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Lc({},g0.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Loe({newshape:!0},{keys:Object.keys(Doe)}),font:VE({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var XE=P((Ake,jE)=>{"use strict";var Foe=kc().dash,qoe=zn().extendFlat;jE.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:qoe({},Foe,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Wg=P((Tke,ZE)=>{"use strict";ZE.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var ed=P((Mke,KE)=>{"use strict";var O5=zi(),Roe=U1(),jg=wf(),JE=WE(),$E=XE(),Poe=Wg(),QE=zn().extendFlat,Xg=O5({editType:"calc"});Xg.family.dflt='"Open Sans", verdana, arial, sans-serif';Xg.size.dflt=12;Xg.color.dflt=jg.defaultLine;KE.exports={font:Xg,title:{text:{valType:"string",editType:"layoutstyle"},font:O5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:O5({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:QE(Poe({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:jg.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:jg.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:jg.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:JE.newshape,activeshape:JE.activeshape,newselection:$E.newselection,activeselection:$E.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:QE({},Roe.transition,{editType:"none"})}});var ek=P(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var Bt=P(oa=>{"use strict";var rd=m0(),rk=Gg(),tk=F5(),Noe=Mc(),Ioe=G1().addStyleRule,ak=zn(),Ooe=Cs(),Boe=ed(),zoe=ak.extendFlat,B5=ak.extendDeepAll;oa.modules={};oa.allCategories={};oa.allTypes=[];oa.subplotsRegistry={};oa.componentsRegistry={};oa.layoutArrayContainers=[];oa.layoutArrayRegexes=[];oa.traceLayoutAttributes={};oa.localeRegistry={};oa.apiMethodRegistry={};oa.collectableSubplotTypes=null;oa.register=function(r){if(oa.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var Woe=Wh().timeFormat,dk=ga(),z5=m0(),Fc=Xh().mod,nd=Kn(),Bl=nd.BADNUM,Xo=nd.ONEDAY,V1=nd.ONEHOUR,Dc=nd.ONEMIN,ad=nd.ONESEC,Y1=nd.EPOCHJD,wu=Bt(),sk=Wh().utcFormat,joe=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Xoe=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,fk=new Date().getFullYear()-70;function Au(e){return e&&wu.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Un.dateTick0=function(e,r){var t=Zoe(e,!!r);if(r<2)return t;var a=Un.dateTime2ms(t,e);return a+=Xo*(r-1),Un.ms2DateTime(a,0,e)};function Zoe(e,r){return Au(e)?r?wu.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:wu.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Un.dfltRange=function(e){return Au(e)?wu.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Un.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Jg,$g;Un.dateTime2ms=function(e,r){if(Un.isJSDate(e)){var t=e.getTimezoneOffset()*Dc,a=(e.getUTCMinutes()-e.getMinutes())*Dc+(e.getUTCSeconds()-e.getSeconds())*ad+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Dc;t=t-n/2+Fc(a-t+n/2,n)}return e=Number(e)-t,e>=Jg&&e<=$g?e:Bl}if(typeof e!="string"&&typeof e!="number")return Bl;e=String(e);var i=Au(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.substr(1),r="");var l=i&&r.substr(0,7)==="chinese",s=e.match(l?Xoe:joe);if(!s)return Bl;var f=s[1],u=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(f.length===2)return Bl;f=Number(f);var y;try{var m=wu.getComponentMethod("calendars","getCal")(r);if(l){var b=u.charAt(u.length-1)==="i";u=parseInt(u,10),y=m.newDate(f,m.toMonthIndex(f,u,b),c)}else y=m.newDate(f,Number(u),c)}catch(_){return Bl}return y?(y.toJD()-Y1)*Xo+v*V1+d*Dc+p*ad:Bl}f.length===2?f=(Number(f)+2e3-fk)%100+fk:f=Number(f),u-=1;var A=new Date(Date.UTC(2e3,u,c,v,d));return A.setUTCFullYear(f),A.getUTCMonth()!==u||A.getUTCDate()!==c?Bl:A.getTime()+p*ad};Jg=Un.MIN_MS=Un.dateTime2ms("-9999");$g=Un.MAX_MS=Un.dateTime2ms("9999-12-31 23:59:59.9999");Un.isDateTime=function(e,r){return Un.dateTime2ms(e,r)!==Bl};function td(e,r){return String(e+Math.pow(10,r)).substr(1)}var Zg=90*Xo,uk=3*V1,ck=5*Dc;Un.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Jg&&e<=$g))return Bl;r||(r=0);var a=Math.floor(Fc(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,f,u;if(Au(t)){var c=Math.floor(n/Xo)+Y1,v=Math.floor(Fc(e,Xo));try{i=wu.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=sk("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=r=Jg+Xo&&e<=$g-Xo))return Bl;var r=Math.floor(Fc(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Woe("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return pk(a,n,i,o,l)};function pk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+td(r,2)+":"+td(t,2),(a||n)&&(e+=":"+td(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+td(n,i)}return e}Un.cleanDate=function(e,r,t){if(e===Bl)return r;if(Un.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Au(t))return z5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Un.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Un.isDateTime(e,t))return z5.error("unrecognized date",e),r;return e};var Joe=/%\d?f/g,$oe=/%h/g,Qoe={1:"1",2:"1",3:"2",4:"2"};function vk(e,r,t,a){e=e.replace(Joe,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace($oe,function(){return Qoe[t("%q")(n)]}),Au(a))try{e=wu.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Koe=[59,59.9,59.99,59.999,59.9999];function ele(e,r){var t=Fc(e+.05,Xo),a=td(Math.floor(t/V1),2)+":"+td(Fc(Math.floor(t/Dc),60),2);if(r!=="M"){dk(r)||(r=0);var n=Math.min(Fc(e/ad,60),Koe[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Un.formatDate=function(e,r,t,a,n,i){if(n=Au(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return ele(e,t)+` +`+vk(i.dayMonthYear,e,a,n);return vk(r,e,a,n)};var hk=3*Xo;Un.incrementMonth=function(e,r,t){t=Au(t)&&t;var a=Fc(e,Xo);if(e=Math.round(e-a),t)try{var n=Math.round(e/Xo)+Y1,i=wu.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Y1)*Xo+a}catch(s){z5.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+hk);return l.setUTCMonth(l.getUTCMonth()+r)+a-hk};Un.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Au(r)&&wu.getComponentMethod("calendars","getCal")(r),f=0;f{"use strict";yk.exports=function(r){return r}});var U5=P(Tu=>{"use strict";var rle=ga(),tle=m0(),ale=Qg(),nle=Kn().BADNUM,G5=1e-9;Tu.findBin=function(e,r,t){if(rle(r.start))return t?Math.ceil((e-r.start)/r.size-G5)-1:Math.floor((e-r.start)/r.size+G5);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?ile:ole:s=t?sle:lle,e+=o*G5*(t?-1:1)*(o>=0?1:-1);a90&&tle.log("Long binary search..."),a-1};function ile(e,r){return er}function sle(e,r){return e>=r}Tu.sorterAsc=function(e,r){return e-r};Tu.sorterDes=function(e,r){return r-e};Tu.distinctVals=function(e){var r=e.slice();r.sort(Tu.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===nle;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],f=s-o;o===void 0?(i.push(s),o=s):f>n&&(a=Math.min(a,f),i.push(s),o=s)}return{vals:i,minDiff:a}};Tu.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,f=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Tu.findIndexOfMin=function(e,r){r=r||ale;for(var t=1/0,a,n=0;n{"use strict";gk.exports=function(r){return Object.keys(r).sort()}});var bk=P(Hn=>{"use strict";var W1=ga(),fle=Yo().isArrayOrTypedArray;Hn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),W1(r)||(r=!1),fle(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var Tk=P((Rke,Ak)=>{"use strict";var xk=Xh(),H5=xk.mod,ule=xk.modHalf,j1=Math.PI,qc=2*j1;function cle(e){return e/180*j1}function vle(e){return e/j1*180}function V5(e){return Math.abs(e[1]-e[0])>qc-1e-14}function _k(e,r){return ule(r-e,qc)}function hle(e,r){return Math.abs(_k(e,r))}function wk(e,r){if(V5(r))return!0;var t,a;r[0]a&&(a+=qc);var n=H5(e,qc),i=n+qc;return n>=t&&n<=a||i>=t&&i<=a}function dle(e,r,t,a){if(!wk(r,a))return!1;var n,i;return t[0]=n&&e<=i}function Y5(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=V5([t,a]),s,f,u,c,v;l?(s=0,f=j1,u=qc):t{"use strict";b0.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};b0.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};b0.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};b0.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};b0.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};b0.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var kk=P(x0=>{"use strict";var W5=Xh().mod;x0.segmentsIntersect=Ek;function Ek(e,r,t,a,n,i,o,l){var s=t-e,f=n-e,u=o-n,c=a-r,v=i-r,d=l-i,p=s*d-u*c;if(p===0)return null;var y=(f*d-u*v)/p,m=(f*c-s*v)/p;return m<0||m>1||y<0||y>1?null:{x:e+s*y,y:r+c*y}}x0.segmentDistance=function(r,t,a,n,i,o,l,s){if(Ek(r,t,a,n,i,o,l,s))return 0;var f=a-r,u=n-t,c=l-i,v=s-o,d=f*f+u*u,p=c*c+v*v,y=Math.min(e2(f,u,d,i-r,o-t),e2(f,u,d,l-r,s-t),e2(c,v,p,r-i,t-o),e2(c,v,p,a-i,n-o));return Math.sqrt(y)};function e2(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var r2,j5,Sk;x0.getTextLocation=function(r,t,a,n){if((r!==j5||n!==Sk)&&(r2={},j5=r,Sk=n),r2[a])return r2[a];var i=r.getPointAtLength(W5(a-n/2,t)),o=r.getPointAtLength(W5(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(W5(a,t)),f=(s.x*4+i.x+o.x)/6,u=(s.y*4+i.y+o.y)/6,c={x:f,y:u,theta:l};return r2[a]=c,c};x0.clearLocationCache=function(){j5=null};x0.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,f=r.getTotalLength(),u=f,c,v;function d(y){var m=r.getPointAtLength(y);y===0?c=m:y===f&&(v=m);var b=m.xi?m.x-i:0,A=m.yl?m.y-l:0;return Math.sqrt(b*b+A*A)}for(var p=d(s);p;){if(s+=p+a,s>u)return;p=d(s)}for(p=d(u);p;){if(u-=p+a,s>u)return;p=d(u)}return{min:s,max:u,len:u-s,total:f,isClosed:s===0&&u===f&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};x0.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,f=0,u=0,c=i,v,d,p;f0?c=v:u=v,f++}return d}});var t2=P(X1=>{"use strict";var Mu={};X1.throttle=function(r,t,a){var n=Mu[r],i=Date.now();if(!n){for(var o in Mu)Mu[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};X1.done=function(e){var r=Mu[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};X1.clear=function(e){if(e)Ck(Mu[e]),delete Mu[e];else for(var r in Mu)X1.clear(r)};function Ck(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Dk=P((Oke,Lk)=>{"use strict";Lk.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var Fk=P((Bke,a2)=>{"use strict";a2.exports=X5;a2.exports.isMobile=X5;a2.exports.default=X5;var gle=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,ble=/CrOS/,xle=/android|ipad|playbook|silk/i;function X5(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=gle.test(r)&&!ble.test(r)||!!e.tablet&&xle.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var Rk=P((zke,qk)=>{"use strict";var _le=ga(),wle=Fk();qk.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=Ale(),typeof t!="string")return!0;var a=wle({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.substr(0,8)==="Version/"){var f=s.substr(8).split(".")[0];if(_le(f)&&(f=+f),f>=13)return!0}}}return a};function Ale(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Nk=P((Gke,Pk)=>{"use strict";var Tle=ha();Pk.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=Tle.select(this)}),n}});var Ok=P((Uke,Ik)=>{"use strict";var Mle=Bt();Ik.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=Mle.localeRegistry}var f=a.split("-")[0];if(f===a)break;a=f}return t}});var zk=P((Hke,Bk)=>{"use strict";Bk.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";Gk.exports=function(r){for(var t=kle(r)?Ele:Sle,a=[],n=0;n{"use strict";Hk.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var Wk=P((Wke,Yk)=>{"use strict";var Cle=ga(),Lle=Kn().BADNUM,Dle=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Yk.exports=function(r){return typeof r=="string"&&(r=r.replace(Dle,"")),Cle(r)?Number(r):Lle}});var Ur=P((jke,iC)=>{"use strict";var Z1=ha(),Fle=Wh().utcFormat,qle=g5().format,Qk=ga(),Kk=Kn(),eC=Kk.FP_SAFE,Rle=-eC,jk=Kk.BADNUM,We=iC.exports={};We.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var Xk={};We.warnBadFormat=function(e){var r=String(e);Xk[r]||(Xk[r]=1,We.warn('encountered bad format: "'+r+'"'))};We.noFormat=function(e){return String(e)};We.numberFormat=function(e){var r;try{r=qle(We.adjustFormat(e))}catch(t){return We.warnBadFormat(e),We.noFormat}return r};We.nestedProperty=qg();We.keyedContainer=OM();We.relativeAttr=zM();We.isPlainObject=Mc();We.toLogRange=Pg();We.relinkPrivateKeys=VM();var Rc=Yo();We.isArrayBuffer=Rc.isArrayBuffer;We.isTypedArray=Rc.isTypedArray;We.isArrayOrTypedArray=Rc.isArrayOrTypedArray;We.isArray1D=Rc.isArray1D;We.ensureArray=Rc.ensureArray;We.concat=Rc.concat;We.maxRowLength=Rc.maxRowLength;We.minRowLength=Rc.minRowLength;var rC=Xh();We.mod=rC.mod;We.modHalf=rC.modHalf;var Pc=fS();We.valObjectMeta=Pc.valObjectMeta;We.coerce=Pc.coerce;We.coerce2=Pc.coerce2;We.coerceFont=Pc.coerceFont;We.coercePattern=Pc.coercePattern;We.coerceHoverinfo=Pc.coerceHoverinfo;We.coerceSelectionMarkerOpacity=Pc.coerceSelectionMarkerOpacity;We.validate=Pc.validate;var yl=mk();We.dateTime2ms=yl.dateTime2ms;We.isDateTime=yl.isDateTime;We.ms2DateTime=yl.ms2DateTime;We.ms2DateTimeLocal=yl.ms2DateTimeLocal;We.cleanDate=yl.cleanDate;We.isJSDate=yl.isJSDate;We.formatDate=yl.formatDate;We.incrementMonth=yl.incrementMonth;We.dateTick0=yl.dateTick0;We.dfltRange=yl.dfltRange;We.findExactDates=yl.findExactDates;We.MIN_MS=yl.MIN_MS;We.MAX_MS=yl.MAX_MS;var _0=U5();We.findBin=_0.findBin;We.sorterAsc=_0.sorterAsc;We.sorterDes=_0.sorterDes;We.distinctVals=_0.distinctVals;We.roundUp=_0.roundUp;We.sort=_0.sort;We.findIndexOfMin=_0.findIndexOfMin;We.sortObjectKeys=Kg();var Su=bk();We.aggNums=Su.aggNums;We.len=Su.len;We.mean=Su.mean;We.geometricMean=Su.geometricMean;We.median=Su.median;We.midRange=Su.midRange;We.variance=Su.variance;We.stdev=Su.stdev;We.interp=Su.interp;var Ds=Ug();We.init2dArray=Ds.init2dArray;We.transposeRagged=Ds.transposeRagged;We.dot=Ds.dot;We.translationMatrix=Ds.translationMatrix;We.rotationMatrix=Ds.rotationMatrix;We.rotationXYMatrix=Ds.rotationXYMatrix;We.apply3DTransform=Ds.apply3DTransform;We.apply2DTransform=Ds.apply2DTransform;We.apply2DTransform2=Ds.apply2DTransform2;We.convertCssMatrix=Ds.convertCssMatrix;We.inverseTransformMatrix=Ds.inverseTransformMatrix;var Tf=Tk();We.deg2rad=Tf.deg2rad;We.rad2deg=Tf.rad2deg;We.angleDelta=Tf.angleDelta;We.angleDist=Tf.angleDist;We.isFullCircle=Tf.isFullCircle;We.isAngleInsideSector=Tf.isAngleInsideSector;We.isPtInsideSector=Tf.isPtInsideSector;We.pathArc=Tf.pathArc;We.pathSector=Tf.pathSector;We.pathAnnulus=Tf.pathAnnulus;var od=Mk();We.isLeftAnchor=od.isLeftAnchor;We.isCenterAnchor=od.isCenterAnchor;We.isRightAnchor=od.isRightAnchor;We.isTopAnchor=od.isTopAnchor;We.isMiddleAnchor=od.isMiddleAnchor;We.isBottomAnchor=od.isBottomAnchor;var ld=kk();We.segmentsIntersect=ld.segmentsIntersect;We.segmentDistance=ld.segmentDistance;We.getTextLocation=ld.getTextLocation;We.clearLocationCache=ld.clearLocationCache;We.getVisibleSegment=ld.getVisibleSegment;We.findPointOnPath=ld.findPointOnPath;var o2=zn();We.extendFlat=o2.extendFlat;We.extendDeep=o2.extendDeep;We.extendDeepAll=o2.extendDeepAll;We.extendDeepNoArrays=o2.extendDeepNoArrays;var Z5=m0();We.log=Z5.log;We.warn=Z5.warn;We.error=Z5.error;var Ple=$h();We.counterRegex=Ple.counter;var J5=t2();We.throttle=J5.throttle;We.throttleDone=J5.done;We.clearThrottle=J5.clear;var Fs=G1();We.getGraphDiv=Fs.getGraphDiv;We.isPlotDiv=Fs.isPlotDiv;We.removeElement=Fs.removeElement;We.addStyleRule=Fs.addStyleRule;We.addRelatedStyleRule=Fs.addRelatedStyleRule;We.deleteRelatedStyleRule=Fs.deleteRelatedStyleRule;We.setStyleOnHover=Fs.setStyleOnHover;We.getFullTransformMatrix=Fs.getFullTransformMatrix;We.getElementTransformMatrix=Fs.getElementTransformMatrix;We.getElementAndAncestors=Fs.getElementAndAncestors;We.equalDomRects=Fs.equalDomRects;We.clearResponsive=Dk();We.preserveDrawingBuffer=Rk();We.makeTraceGroups=Nk();We._=Ok();We.notifier=C5();We.filterUnique=zk();We.filterVisible=Uk();We.pushUnique=F5();We.increment=Vk();We.cleanNumber=Wk();We.ensureNumber=function(r){return Qk(r)?(r=Number(r),r>eC||r=r?!1:Qk(e)&&e>=0&&e%1===0};We.noop=Gg();We.identity=Qg();We.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};We.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};We.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(We.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};We.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};We.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,f,u;for(l=0;l=a&&(f-=a*Math.floor(f/a)),f<0?f=-1-f:f>=t&&(f=a-1-f),u+=e[f]*i[s];o[l]=u}return o};We.syncOrAsync=function(e,r,t){var a,n;function i(){return We.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};We.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};We.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};We.fillArray=function(e,r,t,a){if(a=a||We.identity,We.isArrayOrTypedArray(e))for(var n=0;nOle.test(window.navigator.userAgent);var Ble=/Firefox\/(\d+)\.\d+/;We.getFirefoxVersion=function(){var e=Ble.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};We.isD3Selection=function(e){return e instanceof Z1.selection};We.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};We.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};We.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};We.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var nC=/^\w*$/;We.templateString=function(e,r){var t={};return e.replace(We.TEMPLATE_STRING_REGEX,function(a,n){var i;return nC.test(n)?i=r[n]:(t[n]=t[n]||We.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Ule={max:10,count:0,name:"hovertemplate"};We.hovertemplateString=function(){return $5.apply(Ule,arguments)};var Hle={max:10,count:0,name:"texttemplate"};We.texttemplateString=function(){return $5.apply(Hle,arguments)};var Vle=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Yle(e){var r=e.match(Vle);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Wle={max:10,count:0,name:"texttemplate",parseMultDiv:!0};We.texttemplateStringForShapes=function(){return $5.apply(Wle,arguments)};var Zk=/^[:|\|]/;function $5(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(We.TEMPLATE_STRING_REGEX,function(i,o,l){var s=o==="xother"||o==="yother",f=o==="_xother"||o==="_yother",u=o==="_xother_"||o==="_yother_",c=o==="xother_"||o==="yother_",v=s||f||c||u,d=o;(f||u)&&(d=d.substring(1)),(c||u)&&(d=d.substring(0,d.length-1));var p=null,y=null;if(a.parseMultDiv){var m=Yle(d);d=m.key,p=m.op,y=m.number}var b;if(v){if(b=r[d],b===void 0)return""}else{var A,_;for(_=3;_=i2&&o<=Jk,f=l>=i2&&l<=Jk;if(s&&(a=10*a+o-i2),f&&(n=10*n+l-i2),!s||!f){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var id=2e9;We.seedPseudoRandom=function(){id=2e9};We.pseudoRandom=function(){var e=id;return id=(69069*id+1)%4294967296,Math.abs(id-e)<429496729?We.pseudoRandom():id/4294967296};We.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=We.extractOption(e,r,"htx","hovertext");if(We.isValidTextValue(n))return a(n);var i=We.extractOption(e,r,"tx","text");if(We.isValidTextValue(i))return a(i)};We.isValidTextValue=function(e){return e||e===0};We.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(f=1):f=0,We.strTranslate(n-f*(t+o),i-f*(a+l))+We.strScale(f)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};We.setTransormAndDisplay=function(e,r){e.attr("transform",We.getTextTransform(r)),e.style("display",r.scale?null:"none")};We.ensureUniformFontSize=function(e,r){var t=We.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};We.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};We.bigFont=function(e){return Math.round(1.2*e)};var $k=We.getFirefoxVersion(),jle=$k!==null&&$k<86;We.getPositionFromD3Event=function(){return jle?[Z1.event.layerX,Z1.event.layerY]:[Z1.event.offsetX,Z1.event.offsetY]}});var sC=P(()=>{"use strict";var Xle=Ur(),oC={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Q5 in oC)lC=Q5.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Xle.addStyleRule(lC,oC[Q5]);var lC,Q5});var K5=P((Jke,fC)=>{fC.exports=!0});var r4=P(($ke,uC)=>{"use strict";var Zle=K5(),e4;typeof window.matchMedia=="function"?e4=!window.matchMedia("(hover: none)").matches:e4=Zle;uC.exports=e4});var f2=P((Qke,t4)=>{"use strict";var sd=typeof Reflect=="object"?Reflect:null,cC=sd&&typeof sd.apply=="function"?sd.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},l2;sd&&typeof sd.ownKeys=="function"?l2=sd.ownKeys:Object.getOwnPropertySymbols?l2=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:l2=function(r){return Object.getOwnPropertyNames(r)};function Jle(e){console&&console.warn&&console.warn(e)}var hC=Number.isNaN||function(r){return r!==r};function dn(){dn.init.call(this)}t4.exports=dn;t4.exports.once=ese;dn.EventEmitter=dn;dn.prototype._events=void 0;dn.prototype._eventsCount=0;dn.prototype._maxListeners=void 0;var vC=10;function s2(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(dn,"defaultMaxListeners",{enumerable:!0,get:function(){return vC},set:function(e){if(typeof e!="number"||e<0||hC(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");vC=e}});dn.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};dn.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||hC(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function dC(e){return e._maxListeners===void 0?dn.defaultMaxListeners:e._maxListeners}dn.prototype.getMaxListeners=function(){return dC(this)};dn.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")cC(s,this,t);else for(var f=s.length,u=bC(s,f),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,Jle(l)}return e}dn.prototype.addListener=function(r,t){return pC(this,r,t,!1)};dn.prototype.on=dn.prototype.addListener;dn.prototype.prependListener=function(r,t){return pC(this,r,t,!0)};function $le(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function mC(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=$le.bind(a);return n.listener=t,a.wrapFn=n,n}dn.prototype.once=function(r,t){return s2(t),this.on(r,mC(this,r,t)),this};dn.prototype.prependOnceListener=function(r,t){return s2(t),this.prependListener(r,mC(this,r,t)),this};dn.prototype.removeListener=function(r,t){var a,n,i,o,l;if(s2(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():Qle(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};dn.prototype.off=dn.prototype.removeListener;dn.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function yC(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?Kle(n):bC(n,n.length)}dn.prototype.listeners=function(r){return yC(this,r,!0)};dn.prototype.rawListeners=function(r){return yC(this,r,!1)};dn.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):gC.call(e,r)};dn.prototype.listenerCount=gC;function gC(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}dn.prototype.eventNames=function(){return this._eventsCount>0?l2(this._events):[]};function bC(e,r){for(var t=new Array(r),a=0;a{"use strict";var a4=f2().EventEmitter,tse={init:function(e){if(e._ev instanceof a4)return e;var r=new a4,t=new a4;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var wC=Ur(),ase=p0().dfltConfig;function nse(e,r){for(var t=[],a,n=0;nase.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Eu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Eu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Eu.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";MC.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var cd=P(fi=>{"use strict";var zl=Bt(),$1=Ur(),c2=Cs(),i4=ed(),ise=n4(),ose=U1(),lse=p0().configAttributes,SC=Ls(),qs=$1.extendDeepAll,fd=$1.isPlainObject,sse=$1.isArrayOrTypedArray,v2=$1.nestedProperty,fse=$1.valObjectMeta,o4="_isSubplotObj",h2="_isLinkedToArray",use="_arrayAttrRegexps",kC="_deprecated",l4=[o4,h2,use,kC];fi.IS_SUBPLOT_OBJ=o4;fi.IS_LINKED_TO_ARRAY=h2;fi.DEPRECATED=kC;fi.UNDERSCORE_ATTRS=l4;fi.get=function(){var e={};return zl.allTypes.forEach(function(r){e[r]=vse(r)}),{defs:{valObjects:fse,metaKeys:l4.concat(["description","role","editType","impliedEdits"]),editType:{traces:SC.traces,layout:SC.layout},impliedEdits:{}},traces:e,layout:hse(),frames:dse(),animation:ud(ose),config:ud(lse)}};fi.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(l4.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!fi.isValObject(o)&&fd(o)&&i!=="impliedEdits"&&fi.crawl(o,r,n+1,l)}})};fi.isValObject=function(e){return e&&e.valType!==void 0};fi.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,f,u,c){t=t.slice(0,c).concat([f]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(f==="ticktext"||f==="tickvals"));v&&l(n,0,"")}function l(s,f,u){var c=s[t[f]],v=u+t[f];if(f===t.length-1)sse(c)&&r.push(i+v);else if(a[f]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!u2(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function u2(e){return e===Math.round(e)&&e>=0}function vse(e){var r,t;r=zl.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=qs({},c2),i=qs({},r.attributes);fi.crawl(i,function(s,f,u,c,v){v2(n,v).set(void 0),s===void 0&&v2(i,v).set(void 0)}),qs(a,n),zl.traceIs(e,"noOpacity")&&delete a.opacity,zl.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),zl.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,qs(a,i),t.attributes&&qs(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:ud(a)};if(r.layoutAttributes){var l={};qs(l,r.layoutAttributes),o.layoutAttributes=ud(l)}return r.animatable||fi.crawl(o,function(s){fi.isValObject(s)&&"anim"in s&&delete s.anim}),o}function hse(){var e={},r,t;qs(e,i4);for(r in zl.subplotsRegistry)if(t=zl.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var vd=Ur(),bse=Cs(),Nc="templateitemname",s4={name:{valType:"string",editType:"none"}};s4[Nc]={valType:"string",editType:"calc"};w0.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=s4.name,r[Nc]=s4[Nc],r};w0.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=vd.coerce(i,{},bse,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};w0.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);vd.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};w0.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[DC(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(f){var u={name:f.name,_input:f},c=u[Nc]=f[Nc];if(!LC(c))return u._template=n,u;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][Nc]=i)}s();function f(d,p){l[d]=p}function u(d,p){i?vd.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&u(d,p);var y=c();for(var m in y)vd.nestedProperty(e,m).set(y[m])}return{modifyBase:f,modifyItem:u,getUpdateObj:c,applyUpdate:v}}});var qi=P((nCe,FC)=>{"use strict";var Q1=$h().counter;FC.exports={idRegex:{x:Q1("x","( domain)?"),y:Q1("y","( domain)?")},attrRegex:Q1("[xy]axis"),xAxisMatch:Q1("xaxis"),yAxisMatch:Q1("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Sn=P(Zo=>{"use strict";var xse=Bt(),f4=qi();Zo.id2name=function(r){if(!(typeof r!="string"||!r.match(f4.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Zo.name2id=function(r){if(r.match(f4.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};Zo.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(f4.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Zo.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Zo.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};Zo.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function qC(e,r){if(r&&r.length){for(var t=0;t{"use strict";function _se(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function wse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}RC.exports={clearOutlineControllers:_se,clearOutline:wse}});var d2=P((lCe,PC)=>{"use strict";PC.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var K1=P(m2=>{"use strict";var p2=Bt(),sCe=qi().SUBPLOT_PATTERN;m2.getSubplotCalcData=function(e,r,t){var a=p2.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var Ase=Bt(),hd=Ur();A0.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=A0.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){NC(e,o,n.cache),n.check=function(){if(i){var u=NC(e,o,n.cache);return u.changed&&a&&n.lookupTable[u.value]!==void 0&&(n.disable(),Promise.resolve(a({value:u.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[u.value]})).then(n.enable,n.enable)),u.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;hd.isPlainObject(i)?u4(i,r,o,a+1):r(o,n,i)}})}});var bi=P((cCe,KC)=>{"use strict";var WC=ha(),Mse=Wh().timeFormatLocale,Sse=g5().formatLocale,em=ga(),Ese=b5(),Ea=Bt(),jC=cd(),kse=$a(),Mt=Ur(),XC=va(),zC=Kn().BADNUM,Jo=Sn(),Cse=Ic().clearOutline,Lse=d2(),c4=U1(),Dse=n4(),Fse=K1().getModuleCalcData,GC=Mt.relinkPrivateKeys,T0=Mt._,pt=KC.exports={};Mt.extendFlat(pt,Ea);pt.attributes=Cs();pt.attributes.type.values=pt.allTypes;pt.fontAttrs=zi();pt.layoutAttributes=ed();var g2=BC();pt.executeAPICommand=g2.executeAPICommand;pt.computeAPICommandBindings=g2.computeAPICommandBindings;pt.manageCommandObserver=g2.manageCommandObserver;pt.hasSimpleAPICommandBindings=g2.hasSimpleAPICommandBindings;pt.redrawText=function(e){return e=Mt.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Ea.getComponentMethod("annotations","draw")(e),Ea.getComponentMethod("legend","draw")(e),Ea.getComponentMethod("colorbar","draw")(e),r(pt.previousPromises(e)))},300)})};pt.resize=function(e){e=Mt.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||Mt.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Mt.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Ea.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};pt.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};pt.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=Mt.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:XC.defaultLine,"pointer-events":"all"}).each(function(){var f=WC.select(this);f.append("tspan").classed("js-link-to-tool",!0),f.append("tspan").classed("js-link-spacer",!0),f.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&qse(e,i),o.text(i.text()&&l.text()?" - ":"")}};function qse(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){pt.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}pt.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=WC.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=pt.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var Rse=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Pse=["year","month","dayMonth","dayMonthYear"];pt.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],f=e.calcdata||[],u=e._context||{},c;e._transitionData||pt.createTransitionData(e),n._dfltTitle={plot:T0(e,"Click to enter Plot title"),subtitle:T0(e,"Click to enter Plot subtitle"),x:T0(e,"Click to enter X axis title"),y:T0(e,"Click to enter Y axis title"),colorbar:T0(e,"Click to enter Colorscale title"),annotation:T0(e,"new text")},n._traceWord=T0(e,"trace");var v=UC(e,Rse);if(n._mapboxAccessToken=u.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;pt.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),pt.sanitizeMargins(n)}else{pt.supplyLayoutGlobalDefaults(i,n,v);var y=!i.width||!i.height,m=n.autosize,b=u.autosizable,A=y&&(m||b);A?pt.plotAutoSize(e,i,n):y&&pt.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=Ose(v,n.separators),n._extraFormat=UC(e,Pse),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=Ise(),x=n._splomAxes={x:{},y:{}},T=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Nse(o,s),pt.supplyDataDefaults(s,l,i,n);var E=Object.keys(x.x),M=Object.keys(x.y);if(E.length>1&&M.length>1){for(Ea.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,pt.linkSubplots(l,n,o,a),pt.cleanPlot(l,n,o,a);var q=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),X=q,le=H;X&&!le?a._bgLayer.remove():le&&!X&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Cse({_fullLayout:a}),Bse(l,n),GC(n,a),Ea.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var ae=n._tracePreGUI,Q={},Z;for(Z in ae)Q[Z]="old";for(c=0;c0){var u=1-2*i;o=Math.round(u*o),l=Math.round(u*l)}}var c=pt.layoutAttributes.width.min,v=pt.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),pt.sanitizeMargins(a)};pt.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Ea.componentsRegistry,i=r._basePlotModules,o,l,s,f=Ea.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(f),r._has("cartesian")&&(Ea.getComponentMethod("grid","contentDefaults")(e,r),f.finalizeSubplots(e,r));for(var u in r._subplots)r._subplots[u].sort(Mt.subplotSort);for(l=0;l1&&(t.l/=m,t.r/=m)}if(v){var b=(t.t+t.b)/v;b>1&&(t.t/=b,t.b/=b)}var A=t.xl!==void 0?t.xl:t.x,_=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,T=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:A,size:t.l+y},r:{val:_,size:t.r+y},b:{val:T,size:t.b+y},t:{val:x,size:t.t+y}},p[r]=1}if(!a._replotting)return pt.doAutoMargin(e)}};function Gse(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Jo.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}pt.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),ZC(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Mt.extendFlat({},n),s=i.l,f=i.r,u=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var m in v)d[m]||delete v[m];var b=e._fullLayout._reservedMargin;for(var A in b)for(var _ in b[A]){var x=b[A][_];o[_]=Math.max(o[_],x)}v.base={l:{val:0,size:s},r:{val:1,size:f},t:{val:1,size:u},b:{val:0,size:c}};for(var T in o){var E=0;for(var M in v)M!=="base"&&em(v[M][T].size)&&(E=v[M][T].size>E?v[M][T].size:E);var C=Math.max(0,i[T]-E);o[T]=Math.max(0,o[T]-C)}for(var F in v){var I=v[F].l||{},O=v[F].b||{},q=I.val,H=I.size,X=O.val,le=O.size,ae=t-o.r-o.l,Q=a-o.t-o.b;for(var Z in v){if(em(H)&&v[Z].r){var J=v[Z].r.val,ie=v[Z].r.size;if(J>q){var ue=(H*J+(ie-ae)*q)/(J-q),De=(ie*(1-q)+(H-ae)*(1-J))/(J-q);ue+De>s+f&&(s=ue,f=De)}}if(em(le)&&v[Z].t){var Ie=v[Z].t.val,Ee=v[Z].t.size;if(Ie>X){var Ze=(le*Ie+(Ee-Q)*X)/(Ie-X),Ae=(Ee*(1-X)+(le-Q)*(1-Ie))/(Ie-X);Ze+Ae>c+u&&(c=Ze,u=Ae)}}}}}var ir=Mt.constrain(t-i.l-i.r,JC,p),Ge=Mt.constrain(a-i.t-i.b,$C,y),Qe=Math.max(0,t-ir),He=Math.max(0,a-Ge);if(Qe){var Ve=(s+f)/Qe;Ve>1&&(s/=Ve,f/=Ve)}if(He){var ee=(c+u)/He;ee>1&&(c/=ee,u/=ee)}if(n.l=Math.round(s)+o.l,n.r=Math.round(f)+o.r,n.t=Math.round(u)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(pt.didMarginChange(l,n)||Gse(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var me=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};pt.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&pt.supplyDefaults(e);var o=n?e._fullData:e.data,l=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function f(v,d){if(typeof v=="function")return d?"_function_":null;if(Mt.isPlainObject(v)){var p={},y;return Object.keys(v).sort().forEach(function(_){if(["_","["].indexOf(_.charAt(0))===-1){if(typeof v[_]=="function"){d&&(p[_]="_function");return}if(t==="keepdata"){if(_.substr(_.length-3)==="src")return}else if(t==="keepstream"){if(y=v[_+"src"],typeof y=="string"&&y.indexOf(":")>0&&!Mt.isPlainObject(v.stream))return}else if(t!=="keepall"&&(y=v[_+"src"],typeof y=="string"&&y.indexOf(":")>0))return;p[_]=f(v[_],d)}}),p}var m=Array.isArray(v),b=Mt.isTypedArray(v);if((m||b)&&v.dtype&&v.shape){var A=v.bdata;return f({dtype:v.dtype,shape:v.shape,bdata:Mt.isArrayBuffer(A)?Ese.encode(A):A},d)}return m?v.map(function(_){return f(_,d)}):b?Mt.simpleMap(v,Mt.identity):Mt.isJSDate(v)?Mt.ms2DateTimeLocal(+v):v}var u={data:(o||[]).map(function(v){var d=f(v);return r&&delete d.fit,d})};if(!r&&(u.layout=f(l),n)){var c=l._size;u.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(u.frames=f(s)),i&&(u.config=f(e._context,!0)),a==="object"?u:JSON.stringify(u)};pt.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Ea.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Ea.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var f=[pt.previousPromises,s,t.prepareFn,pt.rehover,pt.reselect,o],u=Mt.syncOrAsync(f,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e})}pt.doCalcdata=function(e,r){var t=Jo.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s,f=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=f,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l=0;s--)if(T[s].enabled){i._indexToPoints=T[s]._indexToPoints;break}o&&o.calc&&(x=o.calc(e,i))}(!Array.isArray(x)||!x[0])&&(x=[{x:zC,y:zC}]),x[0].t||(x[0].t={}),x[0].trace=i,f[A]=x}}for(VC(t,a,n),l=0;l{"use strict";M0.xmlns="http://www.w3.org/2000/xmlns/";M0.svg="http://www.w3.org/2000/svg";M0.xlink="http://www.w3.org/1999/xlink";M0.svgAttrs={xmlns:M0.svg,"xmlns:xlink":M0.xlink}});var ho=P((hCe,eL)=>{"use strict";eL.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var po=P(Gl=>{"use strict";var ei=ha(),ku=Ur(),Yse=ku.strTranslate,v4=Oc(),Wse=ho().LINE_SPACING,jse=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Gl.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(jse),i=ei.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=ofe(e.node(),a);s&&e.style("pointer-events","all"),Gl.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var f=parseInt(e.node().style.fontSize,10),u={fontSize:f};$se(n[2],u,function(c,v,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){l(),s();return}var y=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(p.node()),v&&v.node()&&p.node().insertBefore(v.node().cloneNode(!0),p.node().firstChild);var m=d.width,b=d.height;p.attr({class:o,height:b,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var A=e.node().style.fill||"black",_=p.select("g");_.attr({fill:A,stroke:A});var x=_.node().getBoundingClientRect(),T=x.width,E=x.height;(T>m||E>b)&&(p.style("overflow","hidden"),x=p.node().getBoundingClientRect(),T=x.width,E=x.height);var M=+e.attr("x"),C=+e.attr("y"),F=f||e.node().getBoundingClientRect().height,I=-F/4;if(o[0]==="y")y.attr({transform:"rotate("+[-90,M,C]+")"+Yse(-T/2,I-E/2)});else if(o[0]==="l")C=I-E/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,C=I;else{var O=e.attr("text-anchor");M=M-T*(O==="middle"?.5:O==="end"?1:0),C=C+I-E/2}p.attr({x:M,y:C}),t&&t.call(e,y),s(y)})})):l(),e};var Xse=/(<|<|<)/g,Zse=/(>|>|>)/g;function Jse(e){return e.replace(Xse,"\\lt ").replace(Zse,"\\gt ")}var rL=[["$","$"],["\\(","\\)"]];function $se(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){ku.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=ku.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:rL},displayAlign:"left"})},f=function(){i=ku.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=rL},u=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},v=function(){var A="math-output-"+ku.randstr({},64);l=ei.select("body").append("div").attr({id:A}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(Jse(e));var _=l.node();return a===2?MathJax.Hub.Typeset(_):MathJax.typeset([_])},d=function(){var A=l.select(a===2?".MathJax_SVG":".MathJax"),_=!A.empty()&&l.select("svg").node();if(!_)ku.log("There was an error in the tex syntax.",e),t();else{var x=_.getBoundingClientRect(),T;a===2?T=ei.select("body").select("#MathJax_SVG_glyphs"):T=A.select("defs"),t(A,T,x)}l.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},y=function(){n!=="svg"&&(MathJax.config.startup.output=n)},m=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},b=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,u,v,d,p,m):a===3&&(f(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){v(),d(),y(),b()}))}var iL={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Qse={sub:"0.3em",sup:"-0.6em"},Kse={sub:"-0.21em",sup:"0.42em"},tL="\u200B",aL=["http:","https:","mailto:","",void 0,":"],oL=Gl.NEWLINES=/(\r\n?|\n)/g,d4=/(<[^<>]*>)/,p4=/<(\/?)([^ >]*)(\s+(.*))?>/i,efe=//i;Gl.BR_TAG_ALL=//gi;var lL=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,sL=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,fL=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,rfe=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function S0(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&b2(a)}var tfe=/(^|;)\s*color:/;Gl.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(d4),l=[],s="",f=0,u=0;ui?l.push(c.substr(0,y-i)+n):l.push(c.substr(0,y));break}s=""}}return l.join("")};var afe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},nfe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function b2(e){return e.replace(nfe,function(r,t){var a;return t.charAt(0)==="#"?a=ife(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=afe[t],a||r})}Gl.convertEntities=b2;function ife(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function ofe(e,r){r=r.replace(oL," ");var t=!1,a=[],n,i=-1;function o(){i++;var E=document.createElementNS(v4.svg,"tspan");ei.select(E).attr({class:"line",dy:i*Wse+"em"}),e.appendChild(E),n=E;var M=a;if(a=[{node:E}],M.length>1)for(var C=1;C.",r);return}var M=a.pop();E!==M.type&&ku.log("Start tag <"+M.type+"> doesnt match end tag <"+E+">. Pretending it did match.",r),n=a[a.length-1].node}var u=efe.test(r);u?o():(n=e,a=[{node:e}]);for(var c=r.split(d4),v=0;v{"use strict";var lfe=ha(),_2=ks(),tm=ga(),x2=Ur(),cL=va(),sfe=h0().isValid;function ffe(e,r,t){var a=r?x2.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(x2.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function yL(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var bL=N5(),cfe=bL.FORMAT_LINK,vfe=bL.DATE_FORMAT_LINK;function hfe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?m4:xL)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function m4(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+cfe+"."].join(" ")}function xL(e,r){return m4(e,r)+[" And for dates see: "+vfe+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}_L.exports={axisHoverFormat:hfe,descriptionOnlyNumbers:m4,descriptionWithDates:xL}});var Ul=P((gCe,OL)=>{"use strict";var wL=zi(),dd=wf(),IL=kc().dash,g4=zn().extendFlat,AL=$a().templatedArray,yCe=y0().templateFormatStringDescription,TL=am().descriptionWithDates,dfe=Kn().ONEDAY,Mf=qi(),pfe=Mf.HOUR_PATTERN,mfe=Mf.WEEKDAY_PATTERN,y4={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},yfe=g4({},y4,{values:y4.values.slice().concat(["sync"])});function ML(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var SL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},EL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},kL={valType:"data_array",editType:"ticks"},CL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function LL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function DL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var FL={valType:"color",dflt:dd.defaultLine,editType:"ticks"},qL={valType:"color",dflt:dd.lightLine,editType:"ticks"};function RL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var PL=g4({},IL,{editType:"ticks"}),NL={valType:"boolean",editType:"ticks"};OL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:dd.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:wL({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Mf.idRegex.x.toString(),Mf.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Mf.idRegex.x.toString(),Mf.idRegex.y.toString()],editType:"calc"},rangebreaks:AL("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[mfe,pfe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:dfe},editType:"calc"}),tickmode:yfe,nticks:ML(),tick0:SL,dtick:EL,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:kL,ticktext:{valType:"data_array",editType:"ticks"},ticks:CL,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:LL(),tickwidth:DL(),tickcolor:FL,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:g4({},IL,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:wL({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:TL("tick label")},tickformatstops:AL("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:TL("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:dd.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:NL,gridcolor:qL,gridwidth:RL(),griddash:PL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:dd.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:dd.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Mf.idRegex.x.toString(),Mf.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Mf.idRegex.x.toString(),Mf.idRegex.y.toString()],editType:"plot"},minor:{tickmode:y4,nticks:ML("minor"),tick0:SL,dtick:EL,tickvals:kL,ticks:CL,ticklen:LL("minor"),tickwidth:DL("minor"),tickcolor:FL,gridcolor:qL,gridwidth:RL("minor"),griddash:PL,showgrid:NL,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var w2=P((bCe,GL)=>{"use strict";var pn=Ul(),BL=zi(),zL=zn().extendFlat,gfe=Ls().overrideAll;GL.exports=gfe({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:pn.linecolor,outlinewidth:pn.linewidth,bordercolor:pn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:pn.minor.tickmode,nticks:pn.nticks,tick0:pn.tick0,dtick:pn.dtick,tickvals:pn.tickvals,ticktext:pn.ticktext,ticks:zL({},pn.ticks,{dflt:""}),ticklabeloverflow:zL({},pn.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:pn.ticklen,tickwidth:pn.tickwidth,tickcolor:pn.tickcolor,ticklabelstep:pn.ticklabelstep,showticklabels:pn.showticklabels,labelalias:pn.labelalias,tickfont:BL({}),tickangle:pn.tickangle,tickformat:pn.tickformat,tickformatstops:pn.tickformatstops,tickprefix:pn.tickprefix,showtickprefix:pn.showtickprefix,ticksuffix:pn.ticksuffix,showticksuffix:pn.showticksuffix,separatethousands:pn.separatethousands,exponentformat:pn.exponentformat,minexponent:pn.minexponent,showexponent:pn.showexponent,title:{text:{valType:"string"},font:BL({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var E0=P((_Ce,HL)=>{"use strict";var bfe=w2(),xfe=$h().counter,_fe=Kg(),UL=h0().scales,xCe=_fe(UL);function A2(e){return"`"+e+"`"}HL.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?UL[t.colorscaleDflt]:null,s=t.editTypeOverride||"",f=r?r+".":"",u,c;"colorAttr"in t?(u=t.colorAttr,c=t.colorAttr):(u={z:"z",c:"color"}[a],c="in "+A2(f+u));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",y=a+"max",m=a+"mid",b=A2(f+d),A=A2(f+p),_=A2(f+y),x=A+" and "+_,T={};T[p]=T[y]=void 0;var E={};E[d]=!1;var M={};return u==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:E},M[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:E},M[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=bfe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:xfe("coloraxis"),dflt:null,editType:"calc"}),M}});var x4=P((wCe,VL)=>{"use strict";var wfe=zn().extendFlat,Afe=E0(),b4=h0().scales;VL.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:b4.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:b4.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:b4.RdBu,editType:"calc"}},coloraxis:wfe({_isSubplotObj:!0,editType:"calc"},Afe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var _4=P((ACe,YL)=>{"use strict";var Tfe=Ur();YL.exports=function(r){return Tfe.isPlainObject(r.colorbar)}});var T4=P(A4=>{"use strict";var w4=ga(),WL=Ur(),jL=Kn(),Mfe=jL.ONEDAY,Sfe=jL.ONEWEEK;A4.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Mfe:1;if(!e)return i;if(w4(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.substr(1);return l=w4(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};A4.tick0=function(e,r,t,a){if(r==="date")return WL.cleanDate(e,WL.dateTick0(t,a%Sfe===0?1:0));if(!(a==="D1"||a==="D2"))return w4(e)?Number(e):0}});var M4=P((MCe,ZL)=>{"use strict";var XL=T4(),Efe=Ur().isArrayOrTypedArray,kfe=Yo().isTypedArraySpec,Cfe=Yo().decodeTypedArraySpec;ZL.exports=function(r,t,a,n,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,f=o?"minor.":"";function u(A){var _=l[A];return kfe(_)&&(_=Cfe(_)),_!==void 0?_:(s._template||{})[A]}var c=u("tick0"),v=u("dtick"),d=u("tickvals"),p=Efe(d)?"array":v?"linear":"auto",y=a(f+"tickmode",p);if(y==="auto"||y==="sync")a(f+"nticks");else if(y==="linear"){var m=s.dtick=XL.dtick(v,n);s.tick0=XL.tick0(c,n,t.calendar,m)}else if(n!=="multicategory"){var b=a(f+"tickvals");b===void 0?s.tickmode="auto":o||a("ticktext")}}});var E4=P((SCe,$L)=>{"use strict";var S4=Ur(),JL=Ul();$L.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?JL.minor:JL,f=i?"minor.":"",u=S4.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=S4.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=S4.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(f+"ticks",!i&&n.outerTicks||u||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var k4=P((ECe,QL)=>{"use strict";QL.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var gl=P((kCe,KL)=>{"use strict";var T2=Ur(),Lfe=$a();KL.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=T2.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],f=Lfe.arrayTemplater(t,n,i),u,c;for(u=0;u{"use strict";var C4=Ur(),Dfe=va().contrast,eD=Ul(),Ffe=k4(),qfe=gl();rD.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");C4.isPlainObject(o)||delete t.labelalias;var l=Ffe(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var f=i.font||{},u=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?Dfe(i.bgColor):u&&u!==eD.color.dflt?u:f.color;if(C4.coerceFont(a,"tickfont",f,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");qfe(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Rfe}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function Rfe(e,r){function t(n,i){return C4.coerce(e,r,eD.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var D4=P((LCe,tD)=>{"use strict";var Pfe=k4();tD.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Pfe(r),s=a("tickprefix");s&&a("showtickprefix",l);var f=a("ticksuffix",o);f&&a("showticksuffix",l)}});var F4=P((DCe,aD)=>{"use strict";var Bc=Ur(),Nfe=$a(),Ife=M4(),Ofe=E4(),Bfe=L4(),zfe=D4(),Gfe=w2();aD.exports=function(r,t,a){var n=Nfe.newContainer(t,"colorbar"),i=r.colorbar||{};function o(O,q){return Bc.coerce(i,n,Gfe,O,q)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,f=a.height-l.t-l.b,u=o("orientation"),c=u==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:f):30);var d=o("lenmode");o("len",d==="fraction"?1:c?f:s);var p=o("yref"),y=o("xref"),m=p==="paper",b=y==="paper",A,_,x,T="left";c?(x="middle",T=b?"left":"right",A=b?1.02:1,_=.5):(x=m?"bottom":"top",T="center",A=.5,_=m?1.02:1),Bc.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:A}},"x"),Bc.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:_}},"y"),o("xanchor",T),o("xpad"),o("yanchor",x),o("ypad"),Bc.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var E=Bc.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",E.indexOf("inside")!==-1?"hide past domain":"hide past div"),Ife(i,n,o,"linear");var M=a.font,C={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};E.indexOf("inside")!==-1&&(C.bgColor="black"),zfe(i,n,o,"linear",C),Bfe(i,n,o,"linear",C),Ofe(i,n,o,"linear",C),o("title.text",a._dfltTitle.colorbar);var F=n.showticklabels?n.tickfont:M,I=Bc.extendFlat({},M,{family:F.family,size:Bc.bigFont(F.size)});Bc.coerceFont(o,"title.font",I),o("title.side",c?"top":"right")}});var pd=P((FCe,oD)=>{"use strict";var nD=ga(),R4=Ur(),Ufe=_4(),Hfe=F4(),iD=h0().isValid,Vfe=Bt().traceIs;function q4(e,r){var t=r.slice(0,r.length-1);return r?R4.nestedProperty(e,t).get()||{}:e}oD.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,f=q4(r,o),u=q4(t,o),c=q4(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var y=Vfe(t,"contour")&&R4.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==y&&(m[0]=!1,R4.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[y,t,[v]];return}}var b=f[l+"min"],A=f[l+"max"],_=nD(b)&&nD(A)&&b{"use strict";var lD=Ur(),Yfe=$a(),sD=x4(),Wfe=pd();fD.exports=function(r,t){function a(c,v){return lD.coerce(r,t,sD,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return lD.coerce(i,o,sD.coloraxis,c,v)}for(var s in n){var f=n[s];if(f[0])i=r[s]||{},o=Yfe.newContainer(t,s,"coloraxis"),o._name=s,Wfe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var u=0;u{"use strict";var jfe=Ur(),Xfe=Rs().hasColorscale,Zfe=Rs().extractOpts;cD.exports=function(r,t){function a(u,c){var v=u["_"+c];v!==void 0&&(u[c]=v)}function n(u,c){var v=c.container?jfe.nestedProperty(u,c.container).get():u;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=Zfe(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var hD=ga(),P4=Ur(),Jfe=Rs().extractOpts;dD.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?P4.nestedProperty(t,o).get():t,s=Jfe(l),f=s.auto!==!1,u=s.min,c=s.max,v=s.mid,d=function(){return P4.aggNums(Math.min,null,i)},p=function(){return P4.aggNums(Math.max,null,i)};if(u===void 0?u=d():f&&(l._colorAx&&hD(u)?u=Math.min(u,d()):u=d()),c===void 0?c=p():f&&(l._colorAx&&hD(c)?c=Math.max(c,p()):c=p()),f&&v!==void 0&&(c-v>v-u?u=v-(c-v):c-v=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var yd=P((NCe,pD)=>{"use strict";var M2=h0(),md=Rs();pD.exports={moduleType:"component",name:"colorscale",attributes:E0(),layoutAttributes:x4(),supplyLayoutDefaults:uD(),handleDefaults:pd(),crossTraceDefaults:vD(),calc:N4(),scales:M2.scales,defaultScale:M2.defaultScale,getScale:M2.get,isValidScale:M2.isValid,hasColorscale:md.hasColorscale,extractOpts:md.extractOpts,extractScale:md.extractScale,flipScale:md.flipScale,makeColorScaleFunc:md.makeColorScaleFunc,makeColorScaleFuncFromTrace:md.makeColorScaleFuncFromTrace}});var Ri=P((ICe,yD)=>{"use strict";var mD=Ur(),$fe=Yo().isTypedArraySpec;yD.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return mD.isPlainObject(r)&&(mD.isArrayOrTypedArray(r.size)||$fe(r.size))}}});var I4=P((OCe,gD)=>{"use strict";var Qfe=ga();gD.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return Qfe(s)&&s>0?Math.max(s,i):0}}});var Cu=P(to=>{"use strict";var bD=Ur();to.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};to.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{wD.exports=aue;var O4={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},tue=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function aue(e){var r=[];return e.replace(tue,function(t,a,n){var i=a.toLowerCase();for(n=iue(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==O4[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var oue=nm(),it=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Xt="M0,0Z",AD=Math.sqrt(2),zc=Math.sqrt(3),B4=Math.PI,z4=Math.cos,G4=Math.sin;kD.exports={circle:{n:0,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Jt(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.3,2);return Jt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.4,2),n=it(e*1.2,2);return Jt(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.8/AD,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Jt(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2/zc,2),n=it(e/2,2),i=it(e,2);return Jt(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2/zc,2),n=it(e/2,2),i=it(e,2);return Jt(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2/zc,2),n=it(e/2,2),i=it(e,2);return Jt(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2/zc,2),n=it(e/2,2),i=it(e,2);return Jt(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.6,2),n=it(e*1.2,2);return Jt(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.6,2),n=it(e*1.2,2);return Jt(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.6,2),n=it(e*1.2,2);return Jt(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.6,2),n=it(e*1.2,2);return Jt(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.951,2),n=it(e*.588,2),i=it(-e,2),o=it(e*-.309,2),l=it(e*.809,2);return Jt(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e/2,2),i=it(e*zc/2,2);return Jt(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e/2,2),i=it(e*zc/2,2);return Jt(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.924,2),n=it(e*.383,2);return Jt(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Zt(r))return Xt;var a=e*1.4,n=it(a*.225,2),i=it(a*.951,2),o=it(a*.363,2),l=it(a*.588,2),s=it(-a,2),f=it(a*-.309,2),u=it(a*.118,2),c=it(a*.809,2),v=it(a*.382,2);return Jt(r,t,"M"+n+","+f+"H"+i+"L"+o+","+u+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+u+"L-"+i+","+f+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.66,2),n=it(e*.38,2),i=it(e*.76,2);return Jt(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*zc*.8,2),n=it(e*.8,2),i=it(e*1.6,2),o=it(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Jt(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*zc*.8,2),n=it(e*.8,2),i=it(e*1.6,2),o=it(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Jt(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.1,2),n=it(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Jt(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.4,2),n=it(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Jt(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.7,2),n=it(e*1.4,2);return Jt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.4,2),n=it(e*.7,2);return Jt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e/AD,2);return Jt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.3,2);return Jt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.3,2),n=it(e*.65,2);return Jt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.4,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.2,2),n=it(e*.85,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e/2,2),n=it(e,2);return Jt(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.2,2),n=it(e*1.6,2),i=it(e*.8,2);return Jt(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.2,2),n=it(e*1.6,2),i=it(e*.8,2);return Jt(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.2,2),n=it(e*1.6,2),i=it(e*.8,2);return Jt(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.2,2),n=it(e*1.6,2),i=it(e*.8,2);return Jt(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.4,2);return Jt(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.4,2);return Jt(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e*2,2);return Jt(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e*2,2);return Jt(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2,2),n=it(e,2);return Jt(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2,2),n=it(e,2);return Jt(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e*2,2);return Jt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e*2,2);return Jt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2,2),n=it(e,2);return Jt(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2,2),n=it(e,2);return Jt(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Zt(r))return Xt;var a=B4/2.5,n=2*e*z4(a),i=2*e*G4(a);return Jt(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Zt(r))return Xt;var a=B4/4,n=2*e*z4(a),i=2*e*G4(a);return Jt(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Zt(e){return e===null}var TD,MD,SD,ED;function Jt(e,r,t){if((!e||e%360===0)&&!r)return t;if(SD===e&&ED===r&&TD===t)return MD;SD=e,ED=r,TD=t;function a(m,b){var A=z4(m),_=G4(m),x=b[0],T=b[1]+(r||0);return[x*A-T*_,x*_+T*A]}for(var n=e/180*B4,i=0,o=0,l=oue(t),s="",f=0;f{"use strict";var xi=ha(),Ha=Ur(),lue=Ha.numberFormat,D0=ga(),j4=ks(),E2=Bt(),Gi=va(),sue=yd(),om=Ha.strTranslate,k2=po(),fue=Oc(),uue=ho(),cue=uue.LINE_SPACING,BD=Jh().DESELECTDIM,vue=Ri(),hue=I4(),due=Cu().appendArrayPointValue,gt=ZD.exports={};gt.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,f=r.lineposition,u=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Gi.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),u&&e.style("text-transform",U4(mue(u))),s&&e.style("text-shadow",s==="auto"?k2.makeTextShadow(Gi.contrast(i)):U4(s)),f&&e.style("text-decoration-line",U4(yue(f)))};function U4(e){return e==="none"?void 0:e}var pue={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function mue(e){return pue[e]}function yue(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}gt.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};gt.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};gt.setRect=function(e,r,t,a,n){e.call(gt.setPosition,r,t).call(gt.setSize,a,n)};gt.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(D0(n)&&D0(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",om(n,i));else return!1;return!0};gt.translatePoints=function(e,r,t){e.each(function(a){var n=xi.select(this);gt.translatePoint(a,n,r,t)})};gt.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};gt.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=E2.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(f){gt.hideOutsideRangePoint(f,xi.select(this),t,a,o,l)})})}};gt.crispRound=function(e,r,t){return!r||!D0(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};gt.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Gi.stroke(r,a||i.color),gt.dashLine(r,l,o)};gt.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";xi.select(this).call(Gi.stroke,t||i.color).call(gt.dashLine,l,o)})};gt.dashLine=function(e,r,t){t=+t||0,r=gt.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};gt.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function zD(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=gt.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),f=o(n.fgcolor,0,null),u=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;gt.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,f,u)}else if(i&&i.type!=="none"){var p=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,b;p==="horizontal"?(m={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},b={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(HD,t,y,"linear",i.colorscale,"fill",m,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(gt.gradient,t,y,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Gi.fill,r.fillcolor)}gt.singleFillStyle=function(e,r){var t=xi.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};zD(e,n,r,!1)};gt.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=xi.select(this);a[0].trace&&zD(n,a[0].trace,r,t)})};var LD=CD();gt.symbolNames=[];gt.symbolFuncs=[];gt.symbolBackOffs=[];gt.symbolNeedLines={};gt.symbolNoDot={};gt.symbolNoFill={};gt.symbolList=[];Object.keys(LD).forEach(function(e){var r=LD[e],t=r.n;gt.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),gt.symbolNames[t]=e,gt.symbolFuncs[t]=r.f,gt.symbolBackOffs[t]=r.backoff||0,r.needLine&&(gt.symbolNeedLines[t]=!0),r.noDot?gt.symbolNoDot[t]=!0:gt.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(gt.symbolNoFill[t]=!0)});var gue=gt.symbolNames.length,bue="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";gt.symbolNumber=function(e){if(D0(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=gt.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=gue||e>=400?0:Math.floor(Math.max(e,0))};function GD(e,r,t,a){var n=e%100;return gt.symbolFuncs[n](r,t,a)+(e>=200?bue:"")}var DD=lue("~f"),UD={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};gt.gradient=function(e,r,t,a,n,i){var o=UD[a];return HD(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function HD(e,r,t,a,n,i,o,l,s,f){var u=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:f}:a==="radial"&&(c={node:"radialGradient",reversed:f});for(var v=new Array(u),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var f=gt.symbolNumber(e.mx||o.symbol)||0;e.om=f%200>=100;var u=J4(e,t),c=Z4(e,t);r.attr("d",GD(f,s,u,c))}var v=!1,d,p,y;if(e.so)y=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var m=(l||{}).width;y=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):Ha.isArrayOrTypedArray(l.color)?p=Gi.defaultLine:p=l.color,Ha.isArrayOrTypedArray(o.color)&&(d=Gi.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}if(e.om)r.call(Gi.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var b=o.gradient,A=e.mgt;A?v=!0:A=b&&b.type,Ha.isArrayOrTypedArray(A)&&(A=A[0],UD[A]||(A=0));var _=o.pattern,x=gt.getPatternAttr,T=_&&(x(_.shape,e.i,"")||x(_.path,e.i,""));if(A&&A!=="none"){var E=e.mgc;E?v=!0:E=b.color;var M=t.uid;v&&(M+="-"+e.i),gt.gradient(r,n,M,A,[[0,E],[1,d]],"fill")}else if(T){var C=!1,F=_.fgcolor;!F&&i&&i.color&&(F=i.color,C=!0);var I=x(F,e.i,i&&i.color||null),O=x(_.bgcolor,e.i,null),q=_.fgopacity,H=x(_.size,e.i,8),X=x(_.solidity,e.i,.3);C=C||e.mcc||Ha.isArrayOrTypedArray(_.shape)||Ha.isArrayOrTypedArray(_.path)||Ha.isArrayOrTypedArray(_.bgcolor)||Ha.isArrayOrTypedArray(_.fgcolor)||Ha.isArrayOrTypedArray(_.size)||Ha.isArrayOrTypedArray(_.solidity);var le=t.uid;C&&(le+="-"+e.i),gt.pattern(r,"point",n,le,T,H,X,e.mcc,_.fillmode,O,I,q)}else Ha.isArrayOrTypedArray(d)?Gi.fill(r,d[e.i]):Gi.fill(r,d);y&&Gi.stroke(r,p)}};gt.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=gt.tryColorscale(t,""),r.lineScale=gt.tryColorscale(t,"line"),E2.traceIs(e,"symbols")&&(r.ms2mrc=vue.isBubble(e)?hue(e):function(){return(t.size||6)/2}),e.selectedpoints&&Ha.extendFlat(r,gt.makeSelectedPointStyleFns(e)),r};gt.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,f=o.opacity,u=s!==void 0,c=f!==void 0;(Ha.isArrayOrTypedArray(l)||u||c)&&(r.selectedOpacityFn=function(x){var T=x.mo===void 0?n.opacity:x.mo;return x.selected?u?s:T:c?f:BD*T});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(x){var T=x.mcc||v;return x.selected?d||T:p||T});var y=n.size,m=i.size,b=o.size,A=m!==void 0,_=b!==void 0;return E2.traceIs(e,"symbols")&&(A||_)&&(r.selectedSizeFn=function(x){var T=x.mrc||y/2;return x.selected?A?m/2:T:_?b/2:T}),r};gt.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,f=o.color;return r.selectedTextColorFn=function(u){var c=u.tc||l;return u.selected?s||c:f||(s?c:Gi.addOpacity(c,BD))},r};gt.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=gt.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Gi.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",GD(gt.symbolNumber(l),s,J4(o,r),Z4(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=xi.select(this),l=0;l0?t:0}gt.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=gt.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=xi.select(this),f=i?Ha.extractOption(l,r,"txt","texttemplate"):Ha.extractOption(l,r,"tx","text");if(!f&&f!==0){s.remove();return}if(i){var u=r._module.formatLabels,c=u?u(l,r,o):{},v={};due(v,r,l.i);var d=r._meta||{};f=Ha.texttemplateString(f,c,o._d3locale,v,l,d)}var p=l.tp||r.textposition,y=YD(l,r),m=a?a(l):l.tc||r.textfont.color;s.call(gt.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:y,color:m}).text(f).call(k2.convertToTspans,t).call(VD,p,y,l.mrc)})}};gt.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=gt.makeSelectedTextStyleFns(r);e.each(function(a){var n=xi.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=YD(a,r);Gi.fill(n,i);var s=E2.traceIs(r,"bar-like");VD(n,o,l,a.mrc2||a.mrc,s)})}};var FD=.5;gt.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=u&&x<=s)&&(T<=c&&T>=f||T>=c&&T<=f)&&(e=[x,T])}return e}gt.applyBackoff=XD;gt.makeTester=function(){var e=Ha.ensureSingleById(xi.select("body"),"svg","js-plotly-tester",function(t){t.attr(fue.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=Ha.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});gt.tester=e,gt.testref=r};gt.savedBBoxes={};var V4=0,wue=1e4;gt.bBox=function(e,r,t){t||(t=qD(e));var a;if(t){if(a=gt.savedBBoxes[t],a)return Ha.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=qD(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=gt.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=gt.savedBBoxes[t],a)return Ha.extendFlat({},a)}}var f,u;r?f=e:(u=gt.tester.node(),f=e.cloneNode(!0),u.appendChild(f)),xi.select(f).attr("transform",null).call(k2.positionText,0,0);var c=f.getBoundingClientRect(),v=gt.testref.node().getBoundingClientRect();r||u.removeChild(f);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return V4>=wue&&(gt.savedBBoxes={},V4=0),t&&(gt.savedBBoxes[t]=d),V4++,Ha.extendFlat({},d)};function qD(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}gt.setClipUrl=function(e,r,t){e.attr("clip-path",X4(r,t))};function X4(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}gt.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};gt.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=om(r,t),o=o.trim(),e[i]("transform",o),o};gt.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};gt.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var Aue=/\s*sc.*/;gt.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(Aue,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Tue=/translate\([^)]*\)\s*$/;gt.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=xi.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(Tue);r===1&&t===1?a=[]:a=[om(o,l),"scale("+r+","+t+")",om(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function Z4(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}gt.getMarkerStandoff=Z4;var im=Math.atan2,k0=Math.cos,bd=Math.sin;function RD(e,r){var t=r[0],a=r[1];return[t*k0(e)-a*bd(e),t*bd(e)+a*k0(e)]}var PD,ND,ID,OD,Y4,W4;function J4(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||Ha.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var f=e.lonlat[0],u=e.lonlat[1],c=r._geo.project([f,u+1e-5]),v=r._geo.project([f+1e-5,u]),d=im(v[1]-n,v[0]-a),p=im(c[1]-n,c[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var m=f/180*Math.PI,b=u/180*Math.PI,A=PD/180*Math.PI,_=ND/180*Math.PI,x=A-m,T=k0(_)*bd(x),E=bd(_)*k0(b)-k0(_)*bd(b)*k0(x);y=-im(T,E)-Math.PI,PD=f,ND=u}var M=RD(d,[k0(y),0]),C=RD(p,[bd(y),0]);t=im(M[1]+C[1],M[0]+C[0])/Math.PI*180,i==="previous"&&!(W4===r.uid&&e.i===Y4+1)&&(t=null)}if(i==="previous"&&!r._geo)if(W4===r.uid&&e.i===Y4+1&&D0(a)&&D0(n)){var F=a-ID,I=n-OD,O=r.line&&r.line.shape||"",q=O.slice(O.length-1);q==="h"&&(I=0),q==="v"&&(F=0),t+=im(I,F)/Math.PI*180+90}else t=null}return ID=a,OD=n,Y4=e.i,W4=r.uid,t}gt.getMarkerAngle=J4});var lm=P((HCe,KD)=>{"use strict";var xd=ha(),Mue=ga(),Sue=bi(),$4=Bt(),F0=Ur(),JD=F0.strTranslate,C2=Wa(),L2=va(),_d=po(),$D=Jh(),Eue=ho().OPPOSITE_SIDE,QD=/ [XY][0-9]* /,Q4=1.6,K4=1.6;function kue(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},f=t.attributes,u=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),y=!1,m=d&&d.font?d.font:{},b=m.family,A=m.size,_=m.color,x=m.weight,T=m.style,E=m.variant,M=m.textcase,C=m.lineposition,F=m.shadow,I=t.subtitlePropName,O=!!I,q=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},X=(H.text||"").trim(),le=!1,ae=1,Q=H.font,Z=Q.family,J=Q.size,ie=Q.color,ue=Q.weight,De=Q.style,Ie=Q.variant,Ee=Q.textcase,Ze=Q.lineposition,Ae=Q.shadow,ir;i==="title.text"?ir="titleText":i.indexOf("axis")!==-1?ir="axisTitleText":i.indexOf("colorbar")!==-1&&(ir="colorbarTitleText");var Ge=e._context.edits[ir];function Qe(rt,Jr){return rt===void 0||Jr===void 0?!1:rt.replace(QD," % ")===Jr.replace(QD," % ")}p===""?v=0:Qe(p,o)&&(Ge||(p=""),v=.2,y=!0),O&&(X===""?ae=0:Qe(X,q)&&(Ge||(X=""),ae=.2,le=!0)),t._meta?p=F0.templateString(p,t._meta):a._meta&&(p=F0.templateString(p,a._meta));var He=p||X||Ge,Ve;c||(c=F0.ensureSingle(a._infolayer,"g","g-"+r),Ve=a._hColorbarMoveTitle);var ee=c.selectAll("text."+r).data(He?[0]:[]);ee.enter().append("text"),ee.text(p).attr("class",r),ee.exit().remove();var me=null,re=r+"-subtitle",je=X||Ge;if(O&&(me=c.selectAll("text."+re).data(je?[0]:[]),me.enter().append("text"),me.text(X).attr("class",re),me.exit().remove()),!He)return c;function vr(rt,Jr){F0.syncOrAsync([rr,Cr],{title:rt,subtitle:Jr})}function rr(rt){var Jr=rt.title,wr=rt.subtitle,Hr;!u&&Ve&&(u={}),u?(Hr="",u.rotate&&(Hr+="rotate("+[u.rotate,f.x,f.y]+")"),(u.offset||Ve)&&(Hr+=JD(0,(u.offset||0)-(Ve||0)))):Hr=null,Jr.attr("transform",Hr);function Vr(Fe){if(Fe){var hr=xd.select(Fe.node().parentNode).select("."+re);if(!hr.empty()){var Ir=Fe.node().getBBox();if(Ir.height){var at=Ir.y+Ir.height+Q4*J;hr.attr("y",at)}}}}if(Jr.style("opacity",v*L2.opacity(_)).call(C2.font,{color:L2.rgb(_),size:xd.round(A,2),family:b,weight:x,style:T,variant:E,textcase:M,shadow:F,lineposition:C}).attr(f).call(_d.convertToTspans,e,Vr),wr&&!wr.empty()){var Pe=c.select("."+r+"-math-group"),sr=Jr.node().getBBox(),lt=Pe.node()?Pe.node().getBBox():void 0,Et=lt?lt.y+lt.height+Q4*J:sr.y+sr.height+K4*J,wt=F0.extendFlat({},f,{y:Et});wr.attr("transform",Hr),wr.style("opacity",ae*L2.opacity(ie)).call(C2.font,{color:L2.rgb(ie),size:xd.round(J,2),family:Z,weight:ue,style:De,variant:Ie,textcase:Ee,shadow:Ae,lineposition:Ze}).attr(wt).call(_d.convertToTspans,e)}return Sue.previousPromises(e)}function Cr(rt){var Jr=rt.title,wr=xd.select(Jr.node().parentNode);if(s&&s.selection&&s.side&&p){wr.attr("transform",null);var Hr=Eue[s.side],Vr=s.side==="left"||s.side==="top"?-1:1,Pe=Mue(s.pad)?s.pad:2,sr=C2.bBox(wr.node()),lt={t:0,b:0,l:0,r:0},Et=e._fullLayout._reservedMargin;for(var wt in Et)for(var Fe in Et[wt]){var hr=Et[wt][Fe];lt[Fe]=Math.max(lt[Fe],hr)}var Ir={left:lt.l,top:lt.t,right:a.width-lt.r,bottom:a.height-lt.b},at=s.maxShift||Vr*(Ir[s.side]-sr[s.side]),Yr=0;if(at<0)Yr=at;else{var nt=s.offsetLeft||0,vt=s.offsetTop||0;sr.left-=nt,sr.right-=nt,sr.top-=vt,sr.bottom-=vt,s.selection.each(function(){var et=C2.bBox(this);F0.bBoxIntersect(sr,et,Pe)&&(Yr=Math.max(Yr,Vr*(et[s.side]-sr[Hr])+Pe))}),Yr=Math.min(at,Yr),n._titleScoot=Math.abs(Yr)}if(Yr>0||at<0){var ot={left:[-Yr,0],right:[Yr,0],top:[0,-Yr],bottom:[0,Yr]}[s.side];wr.attr("transform",JD(ot[0],ot[1]))}}}ee.call(vr,me);function Lr(rt,Jr){rt.text(Jr).on("mouseover.opacity",function(){xd.select(this).transition().duration($D.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){xd.select(this).transition().duration($D.HIDE_PLACEHOLDER).style("opacity",0)})}if(Ge&&(p?ee.on(".opacity",null):(Lr(ee,o),y=!0),ee.call(_d.makeEditable,{gd:e}).on("edit",function(rt){l!==void 0?$4.call("_guiRestyle",e,i,rt,l):$4.call("_guiRelayout",e,i,rt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(vr)}).on("input",function(rt){this.text(rt||" ").call(_d.positionText,f.x,f.y)}),O)){if(O&&!p){var _r=ee.node().getBBox(),Pr=_r.y+_r.height+K4*J;me.attr("y",Pr)}X?me.on(".opacity",null):(Lr(me,q),le=!0),me.call(_d.makeEditable,{gd:e}).on("edit",function(rt){$4.call("_guiRelayout",e,"title.subtitle.text",rt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(vr)}).on("input",function(rt){this.text(rt||" ").call(_d.positionText,me.attr("x"),me.attr("y"))})}return ee.classed("js-placeholder",y),me&&!me.empty()&&me.classed("js-placeholder",le),c}KD.exports={draw:kue,SUBTITLE_PADDING_EM:K4,SUBTITLE_PADDING_MATHJAX_EM:Q4}});var O2=P((VCe,nF)=>{"use strict";var Cue=ha(),Lue=Wh().utcFormat,Qa=Ur(),Due=Qa.numberFormat,Sf=ga(),Gc=Qa.cleanNumber,Fue=Qa.ms2DateTime,eF=Qa.dateTime2ms,Ef=Qa.ensureNumber,rF=Qa.isArrayOrTypedArray,Uc=Kn(),D2=Uc.FP_SAFE,Ps=Uc.BADNUM,que=Uc.LOG_CLIP,Rue=Uc.ONEWEEK,F2=Uc.ONEDAY,q2=Uc.ONEHOUR,tF=Uc.ONEMIN,aF=Uc.ONESEC,R2=Sn(),I2=qi(),P2=I2.HOUR_PATTERN,N2=I2.WEEKDAY_PATTERN;function sm(e){return Math.pow(10,e)}function ew(e){return e!=null}nF.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,T){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&T&&r.range&&r.range.length===2){var E=r.range[0],M=r.range[1];return .5*(E+M-2*que*Math.abs(E-M))}else return Ps}function o(x,T,E,M){if((M||{}).msUTC&&Sf(x))return+x;var C=eF(x,E||r.calendar);if(C===Ps)if(Sf(x)){x=+x;var F=Math.floor(Qa.mod(x+.05,1)*10),I=Math.round(x-F/10);C=eF(new Date(I))+F/10}else return Ps;return C}function l(x,T,E){return Fue(x,T,E||r.calendar)}function s(x){return r._categories[Math.round(x)]}function f(x){if(ew(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var T=r._categories.length-1;return r._categoriesMap[x]=T,T}return Ps}function u(x,T){for(var E=new Array(T),M=0;Mr.range[1]&&(E=!E);for(var M=E?-1:1,C=M*x,F=0,I=0;Iq)F=I+1;else{F=C<(O+q)/2?I:I+1;break}}var H=r._B[F]||0;return isFinite(H)?p(x,r._m2,H):0},b=function(x){var T=r._rangebreaks.length;if(!T)return y(x,r._m,r._b);for(var E=0,M=0;Mr._rangebreaks[M].pmax&&(E=M+1);return y(x,r._m2,r._B[E])}}r.c2l=r.type==="log"?i:Ef,r.l2c=r.type==="log"?sm:Ef,r.l2p=m,r.p2l=b,r.c2p=r.type==="log"?function(x,T){return m(i(x,T))}:m,r.p2c=r.type==="log"?function(x){return sm(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Gc,r.c2d=r.c2r=r.l2d=r.l2r=Ef,r.d2p=r.r2p=function(x){return r.l2p(Gc(x))},r.p2d=r.p2r=b,r.cleanPos=Ef):r.type==="log"?(r.d2r=r.d2l=function(x,T){return i(Gc(x),T)},r.r2d=r.r2c=function(x){return sm(Gc(x))},r.d2c=r.r2l=Gc,r.c2d=r.l2r=Ef,r.c2r=i,r.l2d=sm,r.d2p=function(x,T){return r.l2p(r.d2r(x,T))},r.p2d=function(x){return sm(b(x))},r.r2p=function(x){return r.l2p(Gc(x))},r.p2r=b,r.cleanPos=Ef):r.type==="date"?(r.d2r=r.r2d=Qa.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,T,E){return r.l2p(o(x,0,E))},r.p2d=r.p2r=function(x,T,E){return l(b(x),T,E)},r.cleanPos=function(x){return Qa.cleanDate(x,Ps,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=f,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var T=d(x);return T!==void 0?T:r.fraction2r(.5)},r.l2r=r.c2r=Ef,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Ef(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var T=v(x);return T!==void 0?T:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Ef,r.r2l=v,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Ef(x)},r.setupMultiCategory=function(x){var T=r._traceIndices,E,M,C=r._matchGroup;if(C&&r._categories.length===0){for(var F in C)if(F!==a){var I=t[R2.id2name(F)];T=T.concat(I._traceIndices)}}var O=[[0,{}],[0,{}]],q=[];for(E=0;EI[1]&&(M[F?0:1]=E),M[0]===M[1]){var O=r.l2r(T),q=r.l2r(E);if(T!==void 0){var H=O+1;E!==void 0&&(H=Math.min(H,q)),M[F?1:0]=H}if(E!==void 0){var X=q+1;T!==void 0&&(X=Math.max(X,O)),M[F?0:1]=X}}}},r.cleanRange=function(x,T){r._cleanRange(x,T),r.limitRange(x)},r._cleanRange=function(x,T){T||(T={}),x||(x="range");var E=Qa.nestedProperty(r,x).get(),M,C;if(r.type==="date"?C=Qa.dfltRange(r.calendar):n==="y"?C=I2.DFLTRANGEY:r._name==="realaxis"?C=[0,1]:C=T.dfltRange||I2.DFLTRANGEX,C=C.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(C[0]=0),!E||E.length!==2){Qa.nestedProperty(r,x).set(C);return}var F=E[0]===null,I=E[1]===null;for(r.type==="date"&&!r.autorange&&(E[0]=Qa.cleanDate(E[0],Ps,r.calendar),E[1]=Qa.cleanDate(E[1],Ps,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Qa.isDateTime(E[M],r.calendar)){r[x]=C;break}if(r.r2l(E[0])===r.r2l(E[1])){var O=Qa.constrain(r.r2l(E[0]),Qa.MIN_MS+1e3,Qa.MAX_MS-1e3);E[0]=r.l2r(O-1e3),E[1]=r.l2r(O+1e3);break}}else{if(!Sf(E[M]))if(!(F||I)&&Sf(E[1-M]))E[M]=E[1-M]*(M?10:.1);else{r[x]=C;break}if(E[M]<-D2?E[M]=-D2:E[M]>D2&&(E[M]=D2),E[0]===E[1]){var q=Math.max(1,Math.abs(E[0]*1e-6));E[0]-=q,E[1]+=q}}},r.setScale=function(x){var T=t._size;if(r.overlaying){var E=R2.getFromId({_fullLayout:t},r.overlaying);r.domain=E.domain}var M=x&&r._r?"_r":"range",C=r.calendar;r.cleanRange(M);var F=r.r2l(r[M][0],C),I=r.r2l(r[M][1],C),O=n==="y";if(O?(r._offset=T.t+(1-r.domain[1])*T.h,r._length=T.h*(r.domain[1]-r.domain[0]),r._m=r._length/(F-I),r._b=-r._m*I):(r._offset=T.l+r.domain[0]*T.w,r._length=T.w*(r.domain[1]-r.domain[0]),r._m=r._length/(I-F),r._b=-r._m*F),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var q,H;if(r._rangebreaks=r.locateBreaks(Math.min(F,I),Math.max(F,I)),r._rangebreaks.length){for(q=0;qI&&(X=!X),X&&r._rangebreaks.reverse();var le=X?-1:1;for(r._m2=le*r._length/(Math.abs(I-F)-r._lBreaks),r._B.push(-r._m2*(O?I:F)),q=0;qC&&(C+=7,FC&&(C+=24,F=M&&F=M&&x=Ae.min&&(DeAe.max&&(Ae.max=Ie),Ee=!1)}Ee&&I.push({min:De,max:Ie})}};for(E=0;E{"use strict";var iF=ga(),rw=Ur(),Pue=Kn().BADNUM,B2=rw.isArrayOrTypedArray,Nue=rw.isDateTime,Iue=rw.cleanNumber,oF=Math.round;sF.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(B2(n)&&!n.length)return"-";if(!i&&Uue(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function lF(e){return Math.max(1,(e-1)/1e3)}function Gue(e,r){for(var t=e.length,a=lF(t),n=0,i=0,o={},l=0;ln*2}function Uue(e){return B2(e[0])&&B2(e[1])}});var wd=P((WCe,mF)=>{"use strict";var Hue=ha(),vF=ga(),Hc=Ur(),z2=Kn().FP_SAFE,Vue=Bt(),Yue=Wa(),hF=Sn(),Wue=hF.getFromId,jue=hF.isLinked;mF.exports={applyAutorangeOptions:pF,getAutoRange:aw,makePadFn:nw,doAutoRange:Zue,findExtremes:Jue,concatExtremes:lw};function aw(e,r){var t,a,n=[],i=e._fullLayout,o=nw(i,r,0),l=nw(i,r,1),s=lw(e,r),f=s.min,u=s.max;if(f.length===0||u.length===0)return Hc.simpleMap(r.range,r.r2l);var c=f[0].val,v=u[0].val;for(t=1;t0&&(I=_-o(E)-l(M),I>x?O/I>T&&(C=E,F=M,T=O/I):O/_>T&&(C={val:E.val,nopad:1},F={val:M.val,nopad:1},T=O/_));function q(Q,Z){return Math.max(Q,l(Z))}if(c===v){var H=c-1,X=c+1;if(b)if(c===0)n=[0,1];else{var le=(c>0?u:f).reduce(q,0),ae=c/(1-Math.min(.5,le/_));n=c>0?[0,ae]:[ae,0]}else A?n=[Math.max(0,H),Math.max(1,X)]:n=[H,X]}else b?(C.val>=0&&(C={val:0,nopad:1}),F.val<=0&&(F={val:0,nopad:1})):A&&(C.val-T*o(C)<0&&(C={val:0,nopad:1}),F.val<=0&&(F={val:1,nopad:1})),T=(F.val-C.val-fF(r,E.val,M.val))/(_-o(C)-l(F)),n=[C.val-T*o(C),F.val+T*l(F)];return n=pF(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Hc.simpleMap(n,r.l2r||Number)}function fF(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),E=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=x(t.vpadplus||t.vpad),C=x(t.vpadminus||t.vpad);if(!f){if(A=1/0,_=-1/0,s)for(c=0;c0&&(A=v),v>_&&v-z2&&(A=v),v>_&&v=O;c--)I(c);return{min:a,max:n,opts:t}}function iw(e,r,t,a){dF(e,r,t,a,$ue)}function ow(e,r,t,a){dF(e,r,t,a,Que)}function dF(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(f.extrapad||!o)){l=!1;break}else n(r,f.val)&&f.pad<=t&&(o||!f.extrapad)&&(e.splice(s,1),s--)}if(l){var u=i&&r===0;e.push({val:r,pad:u?0:t,extrapad:u?!1:o})}}function cF(e){return vF(e)&&Math.abs(e)=r}function Kue(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&G2(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&G2(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function ece(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&G2(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&G2(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function G2(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=Kue(t,r),a=ece(a,r),[t,a]}});var mn=P((jCe,BF)=>{"use strict";var Hl=ha(),ri=ga(),Ad=bi(),um=Bt(),Ot=Ur(),Td=Ot.strTranslate,q0=po(),rce=lm(),cm=va(),bl=Wa(),tce=Ul(),yF=T4(),Ui=Kn(),ace=Ui.ONEMAXYEAR,V2=Ui.ONEAVGYEAR,Y2=Ui.ONEMINYEAR,nce=Ui.ONEMAXQUARTER,cw=Ui.ONEAVGQUARTER,W2=Ui.ONEMINQUARTER,ice=Ui.ONEMAXMONTH,Md=Ui.ONEAVGMONTH,j2=Ui.ONEMINMONTH,xl=Ui.ONEWEEK,mo=Ui.ONEDAY,Vc=mo/2,Cf=Ui.ONEHOUR,vm=Ui.ONEMIN,X2=Ui.ONESEC,oce=Ui.ONEMILLI,lce=Ui.ONEMICROSEC,R0=Ui.MINUS_SIGN,J2=Ui.BADNUM,vw={K:"zeroline"},hw={K:"gridline",L:"path"},dw={K:"minor-gridline",L:"path"},kF={K:"tick",L:"path"},gF={K:"tick",L:"text"},bF={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},$2=ho(),fm=$2.MID_SHIFT,P0=$2.CAP_SHIFT,hm=$2.LINE_SPACING,sce=$2.OPPOSITE_SIDE,Z2=3,Qr=BF.exports={};Qr.setConvert=O2();var fce=tw(),Lu=Sn(),uce=Lu.idSort,cce=Lu.isLinked;Qr.id2name=Lu.id2name;Qr.name2id=Lu.name2id;Qr.cleanId=Lu.cleanId;Qr.list=Lu.list;Qr.listIds=Lu.listIds;Qr.getFromId=Lu.getFromId;Qr.getFromTrace=Lu.getFromTrace;var CF=wd();Qr.getAutoRange=CF.getAutoRange;Qr.findExtremes=CF.findExtremes;var vce=1e-4;function gw(e){var r=(e[1]-e[0])*vce;return[e[0]-r,e[1]+r]}Qr.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",f={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(u){return u+" domain"})),f[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},Ot.coerce(e,r,f,s)};Qr.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Qr.coercePosition=function(e,r,t,a,n,i){var o,l,s=Qr.getRefType(a);if(s!=="range")o=Ot.ensureNumber,l=t(n,i);else{var f=Qr.getFromId(r,a);i=f.fraction2r(i),l=t(n,i),o=f.cleanPos}e[n]=o(l)};Qr.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?Ot.ensureNumber:Qr.getFromId(r,t).cleanPos;return a(e)};Qr.redrawComponents=function(e,r){r=r||Qr.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var s=um.getComponentMethod(n,i),f={},u=0;u2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Qr.saveRangeInitial=function(e,r){for(var t=Qr.list(e,"",!0),a=!1,n=0;nc*.3||f(a)||f(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.substr(1));i.exactYears>o&&l%12===0?e=Qr.tickIncrement(e,"M6","reverse")+mo*1.5:i.exactMonths>o?e=Qr.tickIncrement(e,"M1","reverse")+mo*15.5:e-=Vc;var s=Qr.tickIncrement(e,t);if(s<=a)return s}return e}Qr.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&ri(r._tmin),n;if(a){var i=Qr.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=Ot.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Ot.simpleMap(n,r.l2r),e._isMinor=!0,Qr.prepTicks(e,t),a){var l=ri(r.dtick),s=ri(e.dtick),f=l?r.dtick:+r.dtick.substring(1),u=s?e.dtick:+e.dtick.substring(1);l&&s?sw(f,u)?f===2*xl&&u===2*mo&&(e.dtick=xl):f===2*xl&&u===3*mo?e.dtick=xl:f===xl&&!(r._input.minor||{}).nticks?e.dtick=mo:wF(f/u,2.5)?e.dtick=f/2:e.dtick=f:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":sw(f,u)?f>=12&&u===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?sw(f,u)||(e.dtick=wF(f/u,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function sw(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function wF(e,r){return Math.abs(e/r-1)<.001}Qr.prepTicks=function(e,r){var t=Ot.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?Ot.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Ot.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Qr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,f=Math.abs(s-l),u=t||f,c=0;u>=Y2?f>=Y2&&f<=ace?c=f:c=V2:t===cw&&u>=W2?f>=W2&&f<=nce?c=f:c=cw:u>=j2?f>=j2&&f<=ice?c=f:c=Md:t===xl&&u>=xl?c=xl:u>=mo?c=mo:t===Vc&&u>=Vc?c=Vc:t===Cf&&u>=Cf&&(c=Cf);var v;c>=f&&(c=f,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,y=0,m=0;mxl&&(c=f)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Qr.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||Ot.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],f=Ot.simpleMap(r.range,r.r2l,void 0,void 0,t),u=f[1]=(_?0:1);x--){var T=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var E=x?r:Ot.extendFlat({},r,r.minor);if(T?Qr.prepMinorTicks(E,r,t):Qr.prepTicks(E,t),E.tickmode==="array"){x?(m=[],p=AF(r,!T)):(b=[],y=AF(r,!T));continue}if(E.tickmode==="sync"){m=[],p=gce(r);continue}var M=gw(f),C=M[0],F=M[1],I=ri(E.dtick),O=a==="log"&&!(I||E.dtick.charAt(0)==="L"),q=Qr.tickFirst(E,t);if(x){if(r._tmin=q,q=F:X<=F;X=Qr.tickIncrement(X,Q,u,n)){if(x&&le++,E.rangebreaks&&!u){if(X=v)break}if(m.length>d||X===H)break;H=X;var Z={value:X};x?(O&&X!==(X|0)&&(Z.simpleLabel=!0),i>1&&le%i&&(Z.skipLabel=!0),m.push(Z)):(Z.minor=!0,b.push(Z))}}if(!b||b.length<2)s=!1;else{var J=(b[1].value-b[0].value)*(l?-1:1);Hce(J,r.tickformat)||(s=!1)}if(!s)A=m;else{var ie=m.concat(b);o&&m.length&&(ie=ie.slice(1)),ie=ie.sort(function(Pr,rt){return Pr.value-rt.value}).filter(function(Pr,rt,Jr){return rt===0||Pr.value!==Jr[rt-1].value});var ue=ie.map(function(Pr,rt){return Pr.minor===void 0&&!Pr.skipLabel?rt:null}).filter(function(Pr){return Pr!==null});ue.forEach(function(Pr){s.map(function(rt){var Jr=Pr+rt;Jr>=0&&Jr-1;He--){if(m[He].drop){m.splice(He,1);continue}m[He].value=uw(m[He].value,r);var re=r.c2p(m[He].value);(Ve?me>re-ee:mev||wrv&&(Jr.periodX=v),wrn&&vV2)r/=V2,a=n(10),e.dtick="M"+12*kf(r,a,U2);else if(i>Md)r/=Md,e.dtick="M"+kf(r,1,TF);else if(i>mo){if(e.dtick=kf(r,mo,e._hasDayOfWeekBreaks?[1,2,7,14]:bce),!t){var o=Qr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Ot.dateTick0(e.calendar,2):e.tick0=Ot.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Cf?e.dtick=kf(r,Cf,TF):i>vm?e.dtick=kf(r,vm,MF):i>X2?e.dtick=kf(r,X2,MF):(a=n(10),e.dtick=kf(r,a,U2))}else if(e.type==="log"){e.tick0=0;var s=Ot.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var f=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/f,a=n(10),e.dtick="L"+kf(r,a,U2)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):ww(e)?(e.tick0=0,a=1,e.dtick=kf(r,a,xce)):(e.tick0=0,a=n(10),e.dtick=kf(r,a,U2));if(e.dtick===0&&(e.dtick=1),!ri(e.dtick)&&typeof e.dtick!="string"){var u=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(u)}};function qF(e){var r=e.dtick;if(e._tickexponent=0,!ri(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=mo&&n<=10||r>=mo*15)e._tickround="d";else if(r>=vm&&n<=16||r>=Cf)e._tickround="M";else if(r>=X2&&n<=19||r>=vm)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(ri(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ri(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),f=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>f&&(Sd(e.exponentformat)&&e.exponentformat!=="SI extended"&&!bw(s)||Sd(e.exponentformat)&&e.exponentformat==="SI extended"&&!xw(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Qr.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(ri(r))return Ot.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.substr(1));if(i==="M")return Ot.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?FF:DF,s=e+n*.01,f=Ot.roundUp(Ot.mod(s,1),l,t);return Math.floor(s)+Math.log(Hl.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Qr.tickFirst=function(e,r){var t=e.r2l||Number,a=Ot.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?m:null};if(i&&Ot.isArrayOrTypedArray(e.ticktext)){var c=Ot.simpleMap(e.range,e.r2l),v=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(f=0;f"+l;else{var f=pm(e),u=e._trueSide||e.side;(!f&&u==="top"||f&&u==="bottom")&&(o+="
")}r.text=o}function wce(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=dm(Math.pow(10,o),e,n,a);else if(ri(i)||s==="D"&&(e.minorloglabels==="complete"||Ot.mod(o+.01,1)<.1)){var f;e.minorloglabels==="complete"&&!(Ot.mod(o+.01,1)<.1)&&(f=!0,r.fontSize*=.75);var u=Math.pow(10,o).toExponential(0),c=u.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||Sd(p)&&p!=="SI extended"&&bw(v)||Sd(p)&&p==="SI extended"&&xw(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":R0)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":R0)+d:(r.text=dm(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Ot.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function Ace(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Tce(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function Mce(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=dm(r.x,e,n,a)}function Sce(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Ece(i);if(o[1]>=100)r.text=dm(Ot.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=R0+r.text)}}}else r.text=dm(r.x,e,n,a)}function Ece(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var PF=["f","p","n","\u03BC","m","","k","M","G","T"],kce=["q","r","y","z","a",...PF,"P","E","Z","Y","R","Q"],Sd=e=>["SI","SI extended","B"].includes(e);function bw(e){return e>14||e<-15}function xw(e){return e>32||e<-30}function Cce(e,r){return Sd(r)?!!(r==="SI extended"&&xw(e)||r!=="SI extended"&&bw(e)):!1}function dm(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=Qr.getTickFormat(r),f=r.separatethousands;if(a){var u={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ri(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};qF(u),i=(Number(u._tickround)||0)+4,l=u._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,R0);var c=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+p+"":o==="B"&&l===9?e+="B":Sd(o)&&(e+=o==="SI extended"?kce[l/3+10]:PF[l/3+5])}return n?R0+e:e}Qr.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Md}function a(s,f){var u=["L","D"];if(typeof s==typeof f){if(typeof s=="number")return s-f;var c=u.indexOf(s.charAt(0)),v=u.indexOf(f.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(f.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,f,u){var c=u||function(p){return p},v=f[0],d=f[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,f){var u=f[0]===null,c=f[1]===null,v=a(s,f[0])>=0,d=a(s,f[1])<=0;return(u||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(u,1).shift())}});var l={false:{left:0,right:0}};return Ot.syncOrAsync(n.map(function(s){return function(){if(s){var f=Qr.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var u=Qr.drawOne(e,f,t);return f._shiftPusher&&yw(f,f._fullDepth||0,l,!0),f._r=f.range.slice(),f._rl=Ot.simpleMap(f._r,f.r2l),u}}}))};Qr.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,f=r._id,u=f.charAt(0),c=Qr.counterLetter(f),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),yw(r,p,a,!0),yw(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Uce(r,a));var y=v[u+"axislayer"],m=r._mainLinePosition,b=m+=r._shift,A=r._mainMirrorPosition,_=r._vals=Qr.calcTicks(r),x=[r.mirror,b,A].join("_");for(i=0;i<_.length;i++)_[i].axInfo=x;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var T={};function E(_r){var Pr=f+(_r||"tick");return T[Pr]||(T[Pr]=qce(r,Pr,b)),T[Pr]}if(r.visible){var M=Qr.makeTransTickFn(r),C=Qr.makeTransTickLabelFn(r),F,I,O=r.ticks==="inside",q=r.ticks==="outside";if(r.tickson==="boundaries"){var H=Lce(r,_);I=Qr.clipEnds(r,H),F=O?I:H}else I=Qr.clipEnds(r,_),F=O&&r.ticklabelmode!=="period"?I:_;var X=r._gridVals=I,le=Fce(r,_);if(!s._hasOnlyLargeSploms){var ae=r._subplotsWith,Q={};for(i=0;i0?wr.bottom-rt:0,Jr))));var sr=0,lt=0;if(r._shiftPusher&&(sr=Math.max(Jr,wr.height>0?_r==="l"?rt-wr.left:wr.right-rt:0),r.title.text!==s._dfltTitle[u]&&(lt=(r._titleStandoff||0)+(r._titleScoot||0),_r==="l"&&(lt+=EF(r))),r._fullDepth=Math.max(sr,lt)),r.automargin){Hr={x:0,y:0,r:0,l:0,t:0,b:0};var Et=[0,1],wt=typeof r._shift=="number"?r._shift:0;if(u==="x"){if(_r==="b"?Hr[_r]=r._depth:(Hr[_r]=r._depth=Math.max(wr.width>0?rt-wr.top:0,Jr),Et.reverse()),wr.width>0){var Fe=wr.right-(r._offset+r._length);Fe>0&&(Hr.xr=1,Hr.r=Fe);var hr=r._offset-wr.left;hr>0&&(Hr.xl=0,Hr.l=hr)}}else if(_r==="l"?(r._depth=Math.max(wr.height>0?rt-wr.left:0,Jr),Hr[_r]=r._depth-wt):(r._depth=Math.max(wr.height>0?wr.right-rt:0,Jr),Hr[_r]=r._depth+wt,Et.reverse()),wr.height>0){var Ir=wr.bottom-(r._offset+r._length);Ir>0&&(Hr.yb=0,Hr.b=Ir);var at=r._offset-wr.top;at>0&&(Hr.yt=1,Hr.t=at)}Hr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[Et[0]],r.title.text!==s._dfltTitle[u]&&(Hr[_r]+=EF(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Vr={x:0,y:0,r:0,l:0,t:0,b:0},Vr[Pr]=r.linewidth,r.mirror&&r.mirror!==!0&&(Vr[Pr]+=Jr),r.mirror===!0||r.mirror==="ticks"?Vr[c]=r._anchorAxis.domain[Et[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Vr[c]=[r._counterDomainMin,r._counterDomainMax][Et[1]]))}Lr&&(Pe=um.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(SF(Hr,r.automargin),SF(Vr,r.automargin)),Ad.autoMargin(e,_w(r),Hr),Ad.autoMargin(e,IF(r),Vr),Ad.autoMargin(e,OF(r),Pe)}),Ot.syncOrAsync(rr)}};function SF(e,r){if(e){var t=Object.keys(bF).reduce(function(a,n){return r.indexOf(n)!==-1&&bF[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Lce(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(Ot.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var f=o?-1:1;t=t*f}if(a){var u=e.side,c=l&&(u==="top"||u==="left")||s&&(u==="bottom"||u==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return Td(n+e._offset+e.l2p(pw(v))+t,i+a)}:function(v){return Td(i+a,n+e._offset+e.l2p(pw(v))+t)}};function pw(e){return e.periodX!==void 0?e.periodX:e.x}function Rce(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),f=t!=="boundaries"&&(l||i||n||o);if(!f&&!s)return[0,0];var u=e.side,c=f?(e.tickwidth||0)/2:0,v=Z2,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*P0,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=Z2),s&&u==="top"&&(v-=d*(1-P0)),(i||n)&&(c=-c),(u==="bottom"||u==="right")&&(v=-v),[f?c:0,s?v:0]}Qr.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};Qr.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(H){return a.indexOf(H)!==-1},o=i("top"),l=i("left"),s=i("right"),f=i("bottom"),u=n!=="boundaries"&&(f||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,y=v?e.ticklen:0;if(c?y*=-1:u&&(y=0),v&&(d+=y,t)){var m=Ot.deg2rad(t);d=y*Math.cos(m)+1,p=y*Math.sin(m)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},A,_,x,T,E=0,M=e.side,C=e._id.charAt(0),F=e.tickangle,I;if(C==="x")I=!c&&M==="bottom"||c&&M==="top",T=I?1:-1,c&&(T*=-1),A=p*T,_=r+d*T,x=I?1:-.2,Math.abs(F)===90&&(c?x+=fm:F===-90&&M==="bottom"?x=P0:F===90&&M==="top"?x=fm:x=.5,E=fm/2*(F/90)),b.xFn=function(H){return H.dx+A+E*H.fontSize},b.yFn=function(H){return H.dy+_+H.fontSize*x},b.anchorFn=function(H,X){if(u){if(l)return"end";if(s)return"start"}return!ri(X)||X===0||X===180?"middle":X*T<0!==c?"end":"start"},b.heightFn=function(H,X,le){return X<-60||X>60?-.5*le:e.side==="top"!==c?-le:0};else if(C==="y"){if(I=!c&&M==="left"||c&&M==="right",T=I?1:-1,c&&(T*=-1),A=d,_=p*T,x=0,!c&&Math.abs(F)===90&&(F===-90&&M==="left"||F===90&&M==="right"?x=P0:x=.5),c){var O=ri(F)?+F:0;if(O!==0){var q=Ot.deg2rad(O);E=Math.abs(Math.sin(q))*P0*T,x=0}}b.xFn=function(H){return H.dx+r-(A+H.fontSize*x)*T+E*H.fontSize},b.yFn=function(H){return H.dy+_+H.fontSize*fm},b.anchorFn=function(H,X){return ri(X)&&Math.abs(X)===90?"middle":I?"end":"start"},b.heightFn=function(H,X,le){return e.side==="right"&&(X*=-1),X<-30?-le:X<30?-.5*le:0}}return b};function Q2(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Qr.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,Q2);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return cm.stroke(Hl.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return bl.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),K2(r,[kF]),i.attr("transform",t.transFn)};Qr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&Qr.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",f=0;f=0;p--){var y=p?v:d;if(y){var m=y.selectAll("path."+a).data(p?o:i,Q2);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(b){return cm.stroke(Hl.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return bl.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&m.attr("d",t.path)}}K2(r,[hw,dw])}};Qr.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Qr.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return uce(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(cm.stroke,r.zerolinecolor||cm.defaultLine).style("stroke-width",bl.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),K2(r,[vw])};Qr.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(J){return J.text}),s=t.labelFns,f=t.secondary?0:r.tickangle,u=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],Q2),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(J){var ie=Hl.select(this),ue=e._promises.length;ie.call(q0.positionText,s.xFn(J),s.yFn(J)).call(bl.font,{family:J.font,size:J.fontSize,color:J.fontColor,weight:J.fontWeight,style:J.fontStyle,variant:J.fontVariant,textcase:J.fontTextcase,lineposition:J.fontLineposition,shadow:J.fontShadow}).text(J.text).call(q0.convertToTspans,e),e._promises[ue]?v.push(e._promises.pop().then(function(){d(ie,f)})):d(ie,f)}),K2(r,[gF]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(J){Hl.select(this).select("text").call(q0.positionText,s.xFn(J),s.yFn(J))});function d(J,ie){J.each(function(ue){var De=Hl.select(this),Ie=De.select(".text-math-group"),Ee=s.anchorFn(ue,ie),Ze=t.transFn.call(De.node(),ue)+(ri(ie)&&+ie!=0?" rotate("+ie+","+s.xFn(ue)+","+(s.yFn(ue)-ue.fontSize/2)+")":""),Ae=q0.lineCount(De),ir=hm*ue.fontSize,Ge=s.heightFn(ue,ri(ie)?+ie:0,(Ae-1)*ir);if(Ge&&(Ze+=Td(0,Ge)),Ie.empty()){var Qe=De.select("text");Qe.attr({transform:Ze,"text-anchor":Ee}),Qe.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var He=bl.bBox(Ie.node()).width,Ve=He*{end:-.5,start:.5}[Ee];Ie.attr("transform",Ze+Td(Ve,0))}})}r._adjustTickLabelsOverflow=function(){var J=r.ticklabeloverflow;if(!(!J||J==="allow")){var ie=J.indexOf("hide")!==-1,ue=r._id.charAt(0)==="x",De=0,Ie=ue?e._fullLayout.width:e._fullLayout.height;if(J.indexOf("domain")!==-1){var Ee=Ot.simpleMap(r.range,r.r2l);De=r.l2p(Ee[0])+r._offset,Ie=r.l2p(Ee[1])+r._offset}var Ze=Math.min(De,Ie),Ae=Math.max(De,Ie),ir=r.side,Ge=1/0,Qe=-1/0;c.each(function(me){var re=Hl.select(this),je=re.select(".text-math-group");if(je.empty()){var vr=bl.bBox(re.node()),rr=0;ue?(vr.right>Ae||vr.leftAe||vr.top+(r.tickangle?0:me.fontSize/4)r["_visibleLabelMin_"+Ee._id]?re.style("display","none"):Ae.K==="tick"&&!Ze&&re.node().style.display!=="none"&&re.style("display",null)})})})})},d(c,u+1?u:f);function p(){return v.length&&Promise.all(v)}var y=null;function m(){if(d(c,f),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var J=0,ie=[],ue,De=1;c.each(function(Hr){J=Math.max(J,Hr.fontSize);var Vr=r.l2p(Hr.x),Pe=mw(this),sr=bl.bBox(Pe.node());De=Math.max(De,q0.lineCount(Pe)),ie.push({top:0,bottom:10,height:10,left:Vr-sr.width/2,right:Vr+sr.width/2+2,width:sr.width+2})});var Ie=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Ee=l.length,Ze=Math.abs((l[Ee-1].x-l[0].x)*r._m)/(Ee-1),Ae=Ie?Ze/2:Ze,ir=Ie?r.ticklen:J*1.25*De,Ge=Math.sqrt(Math.pow(Ae,2)+Math.pow(ir,2)),Qe=Ae/Ge,He=r.autotickangles.map(function(Hr){return Hr*Math.PI/180}),Ve=He.find(function(Hr){return Math.abs(Math.cos(Hr))<=Qe});Ve===void 0&&(Ve=He.reduce(function(Hr,Vr){return Math.abs(Math.cos(Hr))ae*le&&(q=le,F[C]=I[C]=H[C])}var Q=Math.abs(q-O);Q-T>0?(Q-=T,T*=1+T/Q):T=0,r._id.charAt(0)!=="y"&&(T=-T),F[M]=_.p2r(_.r2p(I[M])+E*T),_.autorange==="min"||_.autorange==="max reversed"?(F[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(F[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=F}var Z=Ot.syncOrAsync(b);return Z&&Z.then&&e._promises.push(Z),Z};function Pce(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,Q2);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(cm.stroke,r.dividercolor).style("stroke-width",bl.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Qr.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function EF(e){var r=e.title.font.size,t=(e.title.text.match(q0.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(P0+t*hm):t?r*(t+1)*hm:r}function Nce(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(q0.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*P0:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(fm+l*hm));else{var s=pm(r);if(r.type==="multicategory")o=r._depth;else{var f=1.5*i;s&&(f=.5*i,r.ticks==="outside"&&(f+=r.ticklen)),o=10+f+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var u=Qr.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?u-o:u+o):(d=r._offset+r._length/2,v=r.side==="right"?u+o:u-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(p={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var m=bl.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,rce.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}Qr.shouldShowZeroLine=function(e,r,t){var a=Ot.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===J2)&&(NF(r,0)||!Ice(e,r,t,a)||Oce(e,r))};Qr.clipEnds=function(e,r){return r.filter(function(t){return NF(e,t.x)})};function NF(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=lce:/%L/.test(r)?e>=oce:/%[SX]/.test(r)?e>=X2:/%M/.test(r)?e>=vm:/%[HI]/.test(r)?e>=Cf:/%p/.test(r)?e>=Vc:/%[Aadejuwx]/.test(r)?e>=mo:/%[UVW]/.test(r)?e>=xl:/%[Bbm]/.test(r)?e>=j2:/%[q]/.test(r)?e>=W2:/%[Yy]/.test(r)?e>=Y2:!0}});var GF=P((XCe,zF)=>{"use strict";zF.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var Aw=P((ZCe,UF)=>{"use strict";var Vce=GF();UF.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var f=t.getAutorangeDflt(l,n),u=a("autorange",f),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(u==="reversed"||u===!0)||l[0]!==null&&(u==="min"||u==="max reversed")||l[1]!==null&&(u==="max"||u==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(f=t.getAutorangeDflt(l,n),u=a("autorange",f)),u&&(Vce(a,u,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var VF=P((JCe,HF)=>{var Yce={left:0,top:0};HF.exports=Wce;function Wce(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=jce(r);return t[0]=a-i.left,t[1]=n-i.top,t}function jce(e){return e===window||e===document||e===document.body?Yce:e.getBoundingClientRect()}});var Tw=P(($Ce,YF)=>{"use strict";var Xce=K5();function Zce(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}YF.exports=Xce&&Zce()});var jF=P((QCe,WF)=>{"use strict";WF.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var JF=P((KCe,ZF)=>{"use strict";var XF=Ur(),Jce=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];ZF.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=XF.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=XF.constrain(Math.floor(t*3),0,2),Jce[t][r]}});var QF=P((eLe,$F)=>{"use strict";var $ce=J1(),Qce=t2(),Kce=G1().getGraphDiv,eve=I1(),Mw=$F.exports={};Mw.wrapped=function(e,r,t){e=Kce(e),e._fullLayout&&Qce.clear(e._fullLayout._uid+eve.HOVERID),Mw.raw(e,r,t)};Mw.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&$ce.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var Ns=P((rLe,tq)=>{"use strict";var rve=VF(),Sw=r4(),tve=Tw(),ave=Ur().removeElement,nve=qi(),N0=tq.exports={};N0.align=jF();N0.getCursor=JF();var eq=QF();N0.unhover=eq.wrapped;N0.unhoverRaw=eq.raw;N0.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,f,u,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,tve?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(_,x,T){return Math.abs(_)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===v?x=c:(x={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(T=>{var E=c[T];!x[T]&&typeof E!="function"&&(x[T]=E)})),r.clickFn&&r.clickFn(a,x),d||v.dispatchEvent(new MouseEvent("click",_))}t._dragging=!1,t._dragged=!1}};function rq(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}N0.coverSlip=rq;function KF(e){return rve(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Yc=P((tLe,aq)=>{"use strict";aq.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var oq=P((aLe,iq)=>{"use strict";var Ew=Yc(),mm="data-savedcursor",nq="!!";iq.exports=function(r,t){var a=r.attr(mm);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var kw=zi(),ive=wf();lq.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:ive.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:kw({editType:"legend"}),grouptitlefont:kw({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:kw({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var r3=P(e3=>{"use strict";e3.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};e3.isVertical=function(r){return r.orientation!=="h"};e3.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var Fw=P((oLe,sq)=>{"use strict";var Lw=Bt(),_l=Ur(),ove=$a(),lve=Cs(),sve=Cw(),fve=ed(),Dw=r3();function uve(e,r,t,a){var n=r[e]||{},i=ove.newContainer(t,e);function o(Q,Z){return _l.coerce(n,i,sve,Q,Z)}var l=_l.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var s=o("visible");if(s){for(var f,u=function(Q,Z){var J=f._input,ie=f;return _l.coerce(J,ie,lve,Q,Z)},c=t.font||{},v=_l.coerceFont(o,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,y="normal",m=(t.shapes||[]).filter(function(Q){return Q.showlegend}),b=a.concat(m).filter(function(Q){return e===(Q.legend||"legend")}),A=0;A(e==="legend"?1:0));if(x===!1&&(t[e]=void 0),!(x===!1&&!n.uirevision)&&(o("uirevision",t.uirevision),x!==!1)){o("borderwidth");var T=o("orientation"),E=o("yref"),M=o("xref"),C=T==="h",F=E==="paper",I=M==="paper",O,q,H,X="left";C?(O=0,Lw.getComponentMethod("rangeslider","isVisible")(r.xaxis)?F?(q=1.1,H="bottom"):(q=1,H="top"):F?(q=-.1,H="top"):(q=0,H="bottom")):(q=1,H="auto",I?O=1.02:(O=1,X="right")),_l.coerce(n,i,{x:{valType:"number",editType:"legend",min:I?-2:0,max:I?3:1,dflt:O}},"x"),_l.coerce(n,i,{y:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:q}},"y"),o("traceorder",y),Dw.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",X),o("yanchor",H),o("maxheight"),o("valign"),_l.noneOrAll(n,i,["x","y"]);var le=o("title.text");if(le){o("title.side",C?"left":"top");var ae=_l.extendFlat({},l,{size:_l.bigFont(l.size)});_l.coerceFont(o,"title.font",ae)}}}}sq.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var Ed=Bt(),Rw=Ur(),cve=Rw.pushUnique,qw=!0;fq.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,o=n.legend.itemdoubleclick,l=n.legend.groupclick;a===1&&i==="toggle"&&o==="toggleothers"&&qw&&t.data&&t._context.showTips&&Rw.notifier(Rw._(t,"Double-click on legend to isolate one trace"),"long"),qw=!1;var s;if(a===1?s=i:a===2&&(s=o),!s)return;var f=l==="togglegroup",u=n.hiddenlabels?n.hiddenlabels.slice():[],c=r.data()[0][0];if(c.groupTitle&&c.noClick)return;var v=t._fullData,d=(n.shapes||[]).filter(function(Pr){return Pr.showlegend}),p=v.concat(d),y=c.trace;y._isShape&&(y=y._fullInput);var m=y.legendgroup,b,A,_,x,T,E,M={},C=[],F=[],I=[];function O(Pr,rt){var Jr=C.indexOf(Pr),wr=M.visible;return wr||(wr=M.visible=[]),C.indexOf(Pr)===-1&&(C.push(Pr),Jr=C.length-1),wr[Jr]=rt,Jr}var q=(n.shapes||[]).map(function(Pr){return Pr._input}),H=!1;function X(Pr,rt){q[Pr].visible=rt,H=!0}function le(Pr,rt){if(!(c.groupTitle&&!f)){var Jr=Pr._fullInput||Pr,wr=Jr._isShape,Hr=Jr.index;Hr===void 0&&(Hr=Jr._index);var Vr=Jr.visible===!1?!1:rt;wr?X(Hr,Vr):O(Hr,Vr)}}var ae=y.legend,Q=y._fullInput,Z=Q&&Q._isShape;if(!Z&&Ed.traceIs(y,"pie-like")){var J=c.label,ie=u.indexOf(J);if(s==="toggle")ie===-1?u.push(J):u.splice(ie,1);else if(s==="toggleothers"){var ue=ie!==-1,De=[];for(b=0;b{"use strict";cq.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var dq=P((fLe,hq)=>{"use strict";var vq=Bt(),Nw=r3();hq.exports=function(r,t,a){var n=t._inHover,i=Nw.isGrouped(t),o=Nw.isReversed(t),l={},s=[],f=!1,u={},c=0,v=0,d,p;function y(Q,Z,J){if(t.visible!==!1&&!(a&&Q!==t._id))if(Z===""||!Nw.isGrouped(t)){var ie="~~i"+c;s.push(ie),l[ie]=[J],c++}else s.indexOf(Z)===-1?(s.push(Z),f=!0,l[Z]=[J]):l[Z].push(J)}for(d=0;dI&&(F=I)}M[d][0]._groupMinRank=F,M[d][0]._preGroupSort=d}var O=function(Q,Z){return Q[0]._groupMinRank-Z[0]._groupMinRank||Q[0]._preGroupSort-Z[0]._preGroupSort},q=function(Q,Z){return Q.trace.legendrank-Z.trace.legendrank||Q._preSort-Z._preSort};for(M.forEach(function(Q,Z){Q[0]._preGroupSort=Z}),M.sort(O),d=0;d{"use strict";var t3=Ur();function pq(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}I0.formatPiePercent=function(r,t){var a=pq((r*100).toPrecision(3));return t3.numSeparate(a,t)+"%"};I0.formatPieValue=function(r,t){var a=pq(r.toPrecision(10));return t3.numSeparate(a,t)};I0.getFirstFilled=function(r,t){if(t3.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var vve=Wa(),hve=va();mq.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?vve.pointStyle(r,a,n,t):hve.fill(r,t.color)}});var _q=P((vLe,xq)=>{"use strict";var gq=va(),bq=Iw().castOption,dve=yq();xq.exports=function(r,t,a,n){var i=a.marker.line,o=bq(i.color,t.pts)||gq.defaultLine,l=bq(i.width,t.pts)||0;r.call(dve,t,a,n).style("stroke-width",l).call(gq.stroke,o)}});var Gw=P((hLe,Eq)=>{"use strict";var yo=ha(),Ow=Bt(),ao=Ur(),wq=ao.strTranslate,wl=Wa(),Vl=va(),Bw=Rs().extractOpts,a3=Ri(),pve=_q(),mve=Iw().castOption,yve=Pw(),Aq=12,Tq=5,O0=2,gve=10,kd=5;Eq.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+yve.itemGap*2)/2,s=wq(l,0),f=function(M,C,F,I){var O;if(M+1)O=M;else if(C&&C.width>0)O=C.width;else return 0;return i?I:Math.min(O,F)};r.each(function(M){var C=yo.select(this),F=ao.ensureSingle(C,"g","layers");F.style("opacity",M[0].trace.opacity);var I=a.indentation,O=a.valign,q=M[0].lineHeight,H=M[0].height;if(O==="middle"&&I===0||!q||!H)F.attr("transform",null);else{var X={top:1,bottom:-1}[O],le=X*(.5*(q-H+3))||0,ae=a.indentation;F.attr("transform",wq(ae,le))}var Q=F.selectAll("g.legendfill").data([M]);Q.enter().append("g").classed("legendfill",!0);var Z=F.selectAll("g.legendlines").data([M]);Z.enter().append("g").classed("legendlines",!0);var J=F.selectAll("g.legendsymbols").data([M]);J.enter().append("g").classed("legendsymbols",!0),J.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(E).each(v).each(p).each(d).each(m).each(x).each(_).each(u).each(c).each(b).each(A);function u(M){var C=Mq(M),F=C.showFill,I=C.showLine,O=C.showGradientLine,q=C.showGradientFill,H=C.anyFill,X=C.anyLine,le=M[0],ae=le.trace,Q,Z,J=Bw(ae),ie=J.colorscale,ue=J.reversescale,De=function(Qe){if(Qe.size())if(F)wl.fillGroupStyle(Qe,t,!0);else{var He="legendfill-"+ae.uid;wl.gradient(Qe,t,He,zw(ue),ie,"fill")}},Ie=function(Qe){if(Qe.size()){var He="legendline-"+ae.uid;wl.lineGroupStyle(Qe),wl.gradient(Qe,t,He,zw(ue),ie,"stroke")}},Ee=a3.hasMarkers(ae)||!H?"M5,0":X?"M5,-2":"M5,-3",Ze=yo.select(this),Ae=Ze.select(".legendfill").selectAll("path").data(F||q?[M]:[]);if(Ae.enter().append("path").classed("js-fill",!0),Ae.exit().remove(),Ae.attr("d",Ee+"h"+o+"v6h-"+o+"z").call(De),I||O){var ir=f(void 0,ae.line,gve,Tq);Z=ao.minExtend(ae,{line:{width:ir}}),Q=[ao.minExtend(le,{trace:Z})]}var Ge=Ze.select(".legendlines").selectAll("path").data(I||O?[Q]:[]);Ge.enter().append("path").classed("js-line",!0),Ge.exit().remove(),Ge.attr("d",Ee+(O?"l"+o+",0.0001":"h"+o)).call(I?wl.lineGroupStyle:Ie)}function c(M){var C=Mq(M),F=C.anyFill,I=C.anyLine,O=C.showLine,q=C.showMarker,H=M[0],X=H.trace,le=!q&&!I&&!F&&a3.hasText(X),ae,Q;function Z(Ae,ir,Ge,Qe){var He=ao.nestedProperty(X,Ae).get(),Ve=ao.isArrayOrTypedArray(He)&&ir?ir(He):He;if(i&&Ve&&Qe!==void 0&&(Ve=Qe),Ge){if(VeGe[1])return Ge[1]}return Ve}function J(Ae){return H._distinct&&H.index&&Ae[H.index]?Ae[H.index]:Ae[0]}if(q||le||O){var ie={},ue={};if(q){ie.mc=Z("marker.color",J),ie.mx=Z("marker.symbol",J),ie.mo=Z("marker.opacity",ao.mean,[.2,1]),ie.mlc=Z("marker.line.color",J),ie.mlw=Z("marker.line.width",ao.mean,[0,5],O0),ue.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var De=Z("marker.size",ao.mean,[2,16],Aq);ie.ms=De,ue.marker.size=De}O&&(ue.line={width:Z("line.width",J,[0,10],Tq)}),le&&(ie.tx="Aa",ie.tp=Z("textposition",J),ie.ts=10,ie.tc=Z("textfont.color",J),ie.tf=Z("textfont.family",J),ie.tw=Z("textfont.weight",J),ie.ty=Z("textfont.style",J),ie.tv=Z("textfont.variant",J),ie.tC=Z("textfont.textcase",J),ie.tE=Z("textfont.lineposition",J),ie.tS=Z("textfont.shadow",J)),ae=[ao.minExtend(H,ie)],Q=ao.minExtend(X,ue),Q.selectedpoints=null,Q.texttemplate=null}var Ie=yo.select(this).select("g.legendpoints"),Ee=Ie.selectAll("path.scatterpts").data(q?ae:[]);Ee.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),Ee.exit().remove(),Ee.call(wl.pointStyle,Q,t),q&&(ae[0].mrc=3);var Ze=Ie.selectAll("g.pointtext").data(le?ae:[]);Ze.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Ze.exit().remove(),Ze.selectAll("text").call(wl.textPointStyle,Q,t)}function v(M){var C=M[0].trace,F=C.type==="waterfall";if(M[0]._distinct&&F){var I=M[0].trace[M[0].dir].marker;return M[0].mc=I.color,M[0].mlw=I.line.width,M[0].mlc=I.line.color,y(M,this,"waterfall")}var O=[];C.visible&&F&&(O=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var q=yo.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(O);q.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),q.exit().remove(),q.each(function(H){var X=yo.select(this),le=C[H[0]].marker,ae=f(void 0,le.line,kd,O0);X.attr("d",H[1]).style("stroke-width",ae+"px").call(Vl.fill,le.color),ae&&X.call(Vl.stroke,le.line.color)})}function d(M){y(M,this)}function p(M){y(M,this,"funnel")}function y(M,C,F){var I=M[0].trace,O=I.marker||{},q=O.line||{},H=O.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",X=F?I.visible&&I.type===F:Ow.traceIs(I,"bar"),le=yo.select(C).select("g.legendpoints").selectAll("path.legend"+F).data(X?[M]:[]);le.enter().append("path").classed("legend"+F,!0).attr("d",H).attr("transform",s),le.exit().remove(),le.each(function(ae){var Q=yo.select(this),Z=ae[0],J=f(Z.mlw,O.line,kd,O0);Q.style("stroke-width",J+"px");var ie=Z.mcc;if(!a._inHover&&"mc"in Z){var ue=Bw(O),De=ue.mid;De===void 0&&(De=(ue.max+ue.min)/2),ie=wl.tryColorscale(O,"")(De)}var Ie=ie||Z.mc||O.color,Ee=O.pattern,Ze=wl.getPatternAttr,Ae=Ee&&(Ze(Ee.shape,0,"")||Ze(Ee.path,0,""));if(Ae){var ir=Ze(Ee.bgcolor,0,null),Ge=Ze(Ee.fgcolor,0,null),Qe=Ee.fgopacity,He=Sq(Ee.size,8,10),Ve=Sq(Ee.solidity,.5,1),ee="legend-"+I.uid;Q.call(wl.pattern,"legend",t,ee,Ae,He,Ve,ie,Ee.fillmode,ir,Ge,Qe)}else Q.call(Vl.fill,Ie);J&&Vl.stroke(Q,Z.mlc||q.color)})}function m(M){var C=M[0].trace,F=yo.select(this).select("g.legendpoints").selectAll("path.legendbox").data(C.visible&&Ow.traceIs(C,"box-violin")?[M]:[]);F.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),F.exit().remove(),F.each(function(){var I=yo.select(this);if((C.boxpoints==="all"||C.points==="all")&&Vl.opacity(C.fillcolor)===0&&Vl.opacity((C.line||{}).color)===0){var O=ao.minExtend(C,{marker:{size:i?Aq:ao.constrain(C.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});F.call(wl.pointStyle,O,t)}else{var q=f(void 0,C.line,kd,O0);I.style("stroke-width",q+"px").call(Vl.fill,C.fillcolor),q&&Vl.stroke(I,C.line.color)}})}function b(M){var C=M[0].trace,F=yo.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(C.visible&&C.type==="candlestick"?[M,M]:[]);F.enter().append("path").classed("legendcandle",!0).attr("d",function(I,O){return O?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(I,O){var q=yo.select(this),H=C[O?"increasing":"decreasing"],X=f(void 0,H.line,kd,O0);q.style("stroke-width",X+"px").call(Vl.fill,H.fillcolor),X&&Vl.stroke(q,H.line.color)})}function A(M){var C=M[0].trace,F=yo.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(C.visible&&C.type==="ohlc"?[M,M]:[]);F.enter().append("path").classed("legendohlc",!0).attr("d",function(I,O){return O?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(I,O){var q=yo.select(this),H=C[O?"increasing":"decreasing"],X=f(void 0,H.line,kd,O0);q.style("fill","none").call(wl.dashLine,H.line.dash,X),X&&Vl.stroke(q,H.line.color)})}function _(M){T(M,this,"pie")}function x(M){T(M,this,"funnelarea")}function T(M,C,F){var I=M[0],O=I.trace,q=F?O.visible&&O.type===F:Ow.traceIs(O,F),H=yo.select(C).select("g.legendpoints").selectAll("path.legend"+F).data(q?[M]:[]);if(H.enter().append("path").classed("legend"+F,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),H.exit().remove(),H.size()){var X=O.marker||{},le=f(mve(X.line.width,I.pts),X.line,kd,O0),ae="pieLike",Q=ao.minExtend(O,{marker:{line:{width:le}}},ae),Z=ao.minExtend(I,{trace:Q},ae);pve(H,Z,Q,t)}}function E(M){var C=M[0].trace,F,I=[];if(C.visible)switch(C.type){case"histogram2d":case"heatmap":I=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":I=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymapbox":case"densitymap":I=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":I=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],F=!1;break;case"streamtube":I=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],F=!1;break;case"surface":I=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],F=!0;break;case"mesh3d":I=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":I=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":I=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1;break}var O=yo.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(I);O.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),O.exit().remove(),O.each(function(q,H){var X=yo.select(this),le=Bw(C),ae=le.colorscale,Q=le.reversescale,Z=function(De){if(De.size()){var Ie="legendfill-"+C.uid;wl.gradient(De,t,Ie,zw(Q,F==="radial"),ae,"fill")}},J;if(ae){if(!F){var ue=ae.length;J=H===0?ae[Q?ue-1:0][1]:H===1?ae[Q?0:ue-1][1]:ae[Math.floor((ue-1)/2)][1]}}else{var ie=C.vertexcolor||C.facecolor||C.color;J=ao.isArrayOrTypedArray(ie)?ie[H]||ie[0]:ie}X.attr("d",q[0]),J?X.call(Vl.fill,J):X.call(Z)})}};function zw(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function Mq(e){var r=e[0].trace,t=r.contours,a=a3.hasLines(r),n=a3.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function Sq(e,r,t){return e&&ao.isArrayOrTypedArray(e)?r:e>t?t:e}});var Yw=P((dLe,Iq)=>{"use strict";var $o=ha(),ti=Ur(),Hw=bi(),Dd=Bt(),kq=J1(),Uw=Ns(),ai=Wa(),i3=va(),B0=po(),Cq=uq(),ui=Pw(),Vw=ho(),Pq=Vw.LINE_SPACING,Ld=Vw.FROM_TL,Lq=Vw.FROM_BR,Dq=dq(),bve=Gw(),Fq=r3(),Cd=1,xve=/^legend[0-9]*$/;Iq.exports=function(r,t){if(t)qq(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var f=$o.select(this),u=f.attr("class"),c=u.split(" ")[0];c.match(xve)&&n.indexOf(c)===-1&&f.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),Hw.autoMargin(e,n);var y=ti.ensureSingle(o,"g",n,function(C){l||C.attr("pointer-events","all")}),m=ti.ensureSingleById(a._topdefs,"clipPath",i,function(C){C.append("rect")}),b=ti.ensureSingle(y,"rect","bg",function(C){C.attr("shape-rendering","crispEdges")});b.call(i3.stroke,t.bordercolor).call(i3.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var A=ti.ensureSingle(y,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var x;_.text?(x=ti.ensureSingle(A,"text",n+"titletext"),x.attr("text-anchor","start").call(ai.font,_.font).text(_.text),o3(x,A,e,t,Cd)):A.selectAll("."+n+"titletext").remove();var T=ti.ensureSingle(y,"rect","scrollbar",function(C){C.attr(ui.scrollBarEnterAttrs).call(i3.fill,ui.scrollBarColor)}),E=A.selectAll("g.groups").data(s);E.enter().append("g").attr("class","groups"),E.exit().remove();var M=E.selectAll("g.traces").data(ti.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(C){var F=C[0].trace;return Dd.traceIs(F,"pie-like")?p.indexOf(C[0].label)!==-1?.5:1:F.visible==="legendonly"?.5:1}).each(function(){$o.select(this).call(wve,e,t)}).call(bve,e,t).each(function(){l||$o.select(this).call(Ave,e,n)}),ti.syncOrAsync([Hw.previousPromises,function(){return Sve(e,E,M,t)},function(){var C=a._size,F=t.borderwidth,I=t.xref==="paper",O=t.yref==="paper";if(_.text&&_ve(x,t,F),!l){var q,H;I?q=C.l+C.w*t.x-Ld[l3(t)]*t._width:q=a.width*t.x-Ld[l3(t)]*t._width,O?H=C.t+C.h*(1-t.y)-Ld[s3(t)]*t._effHeight:H=a.height*(1-t.y)-Ld[s3(t)]*t._effHeight;var X=Eve(e,n,q,H);if(X)return;if(a.margin.autoexpand){var le=q,ae=H;q=I?ti.constrain(q,0,a.width-t._width):le,H=O?ti.constrain(H,0,a.height-t._effHeight):ae,q!==le&&ti.log("Constrain "+n+".x to make legend fit inside graph"),H!==ae&&ti.log("Constrain "+n+".y to make legend fit inside graph")}ai.setTranslate(y,q,H)}if(T.on(".drag",null),y.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var Q=t._effHeight;l&&(Q=t._height),b.attr({width:t._width-F,height:Q-F,x:F/2,y:F/2}),ai.setTranslate(A,0,0),m.select("rect").attr({width:t._width-2*F,height:Q-2*F,x:F,y:F}),ai.setClipUrl(A,i,e),ai.setRect(T,0,0,0,0),delete t._scrollY}else{var Z=Math.max(ui.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),J=t._effHeight-Z-2*ui.scrollBarMargin,ie=t._height-t._effHeight,ue=J/ie,De=Math.min(t._scrollY||0,ie);b.attr({width:t._width-2*F+ui.scrollBarWidth+ui.scrollBarMargin,height:t._effHeight-F,x:F/2,y:F/2}),m.select("rect").attr({width:t._width-2*F+ui.scrollBarWidth+ui.scrollBarMargin,height:t._effHeight-2*F,x:F,y:F+De}),ai.setClipUrl(A,i,e),He(De,Z,ue),y.on("wheel",function(){De=ti.constrain(t._scrollY+$o.event.deltaY/J*ie,0,ie),He(De,Z,ue),De!==0&&De!==ie&&$o.event.preventDefault()});var Ie,Ee,Ze,Ae=function(je,vr,rr){var Cr=(rr-vr)/ue+je;return ti.constrain(Cr,0,ie)},ir=function(je,vr,rr){var Cr=(vr-rr)/ue+je;return ti.constrain(Cr,0,ie)},Ge=$o.behavior.drag().on("dragstart",function(){var je=$o.event.sourceEvent;je.type==="touchstart"?Ie=je.changedTouches[0].clientY:Ie=je.clientY,Ze=De}).on("drag",function(){var je=$o.event.sourceEvent;je.buttons===2||je.ctrlKey||(je.type==="touchmove"?Ee=je.changedTouches[0].clientY:Ee=je.clientY,De=Ae(Ze,Ie,Ee),He(De,Z,ue))});T.call(Ge);var Qe=$o.behavior.drag().on("dragstart",function(){var je=$o.event.sourceEvent;je.type==="touchstart"&&(Ie=je.changedTouches[0].clientY,Ze=De)}).on("drag",function(){var je=$o.event.sourceEvent;je.type==="touchmove"&&(Ee=je.changedTouches[0].clientY,De=ir(Ze,Ie,Ee),He(De,Z,ue))});A.call(Qe)}function He(je,vr,rr){t._scrollY=e._fullLayout[n]._scrollY=je,ai.setTranslate(A,0,-je),ai.setRect(T,t._width,ui.scrollBarMargin+je*rr,ui.scrollBarWidth,vr),m.select("rect").attr("y",F+je)}if(e._context.edits.legendPosition){var Ve,ee,me,re;y.classed("cursor-move",!0),Uw.init({element:y.node(),gd:e,prepFn:function(je){if(je.target!==T.node()){var vr=ai.getTranslate(y);me=vr.x,re=vr.y}},moveFn:function(je,vr){if(me!==void 0&&re!==void 0){var rr=me+je,Cr=re+vr;ai.setTranslate(y,rr,Cr),Ve=Uw.align(rr,t._width,C.l,C.l+C.w,t.xanchor),ee=Uw.align(Cr+t._height,-t._height,C.t+C.h,C.t,t.yanchor)}},doneFn:function(){if(Ve!==void 0&&ee!==void 0){var je={};je[n+".x"]=Ve,je[n+".y"]=ee,Dd.call("_guiRelayout",e,je)}},clickFn:function(je,vr){var rr=o.selectAll("g.traces").filter(function(){var Cr=this.getBoundingClientRect();return vr.clientX>=Cr.left&&vr.clientX<=Cr.right&&vr.clientY>=Cr.top&&vr.clientY<=Cr.bottom});rr.size()>0&&Nq(e,y,rr,je,vr)}})}}],e)}}function n3(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function Nq(e,r,t,a,n){var i=t.data()[0][0].trace,o={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(o.group=i._group),Dd.traceIs(i,"pie-like")&&(o.label=t.datum()[0].label);var l=kq.triggerHandler(e,"plotly_legendclick",o);if(a===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&Cq(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=kq.triggerHandler(e,"plotly_legenddoubleclick",o);s!==!1&&l!==!1&&Cq(t,e,a)}}function wve(e,r,t){var a=f3(t),n=e.data()[0][0],i=n.trace,o=Dd.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,f,u;n.groupTitle?(f=n.groupTitle.text,u=n.groupTitle.font):(u=t.font,t.entries?f=n.text:(f=o?n.label:i.name,i._meta&&(f=ti.templateString(f,i._meta))));var c=ti.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(ai.font,u).text(l?Rq(f,s):f);var v=t.indentation+t.itemwidth+ui.itemGap*2;B0.positionText(c,v,0),l?c.call(B0.makeEditable,{gd:r,text:f}).call(o3,e,r,t).on("edit",function(d){this.text(Rq(d,s)).call(o3,e,r,t);var p=n.trace._fullInput||{},y={};return y.name=d,p._isShape?Dd.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):Dd.call("_guiRestyle",r,y,i.index)}):o3(c,e,r,t)}function Rq(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function Ave(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=ti.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(i3.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),Nq(r,l,e,i,$o.event)}}))}function o3(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),B0.convertToTspans(e,t,function(){Tve(r,t,a,n)})}function Tve(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),o=i.node(),l=f3(t);t||(t=r._fullLayout[l]);var s=t.borderwidth,f;a===Cd?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var u=f.size*Pq,c,v;if(o){var d=ai.bBox(o);c=d.height,v=d.width,a===Cd?ai.setTranslate(i,s,s+c*.75):ai.setTranslate(i,0,c*.25)}else{var p="."+l+(a===Cd?"title":"")+"text",y=e.select(p),m=B0.lineCount(y),b=y.node();if(c=u*m,v=b?ai.bBox(b).width:0,a===Cd)t.title.side==="left"&&(v+=ui.itemGap*2),B0.positionText(y,s+ui.titlePad,s+u);else{var A=ui.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(A=ui.itemGap,v-=t.indentation+t.itemwidth),B0.positionText(y,A,-u*((m-1)/2-.3))}}a===Cd?(t._titleWidth=v,t._titleHeight=c):(n.lineHeight=u,n.height=Math.max(c,16)+3,n.width=v)}function Mve(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function Sve(e,r,t,a){var n=e._fullLayout,i=f3(a);a||(a=n[i]);var o=n._size,l=Fq.isVertical(a),s=Fq.isGrouped(a),f=a.entrywidthmode==="fraction",u=a.borderwidth,c=2*u,v=ui.itemGap,d=a.indentation+a.itemwidth+v*2,p=2*(u+v),y=s3(a),m=a.y<0||a.y===0&&y==="top",b=a.y>1||a.y===1&&y==="bottom",A=a.tracegroupgap,_={};let{orientation:x,yref:T}=a,{maxheight:E}=a,M=m||b||x!=="v"||T!=="paper";E||(E=M?.5:1);let C=M?n.height:o.h;a._maxHeight=Math.max(E>1?E:E*C,30);var F=0;a._width=0,a._height=0;var I=Mve(a);if(l)t.each(function(He){var Ve=He[0].height;ai.setTranslate(this,u+I[0],u+I[1]+a._height+Ve/2+v),a._height+=Ve,a._width=Math.max(a._width,He[0].width)}),F=d+a._width,a._width+=v+d+c,a._height+=p,s&&(r.each(function(He,Ve){ai.setTranslate(this,0,Ve*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var O=l3(a),q=a.x<0||a.x===0&&O==="right",H=a.x>1||a.x===1&&O==="left",X=b||m,le=n.width/2;a._maxWidth=Math.max(q?X&&O==="left"?o.l+o.w:le:H?X&&O==="right"?o.r+o.w:le:o.w,2*d);var ae=0,Q=0;t.each(function(He){var Ve=n3(He,a,d);ae=Math.max(ae,Ve),Q+=Ve}),F=null;var Z=0;if(s){var J=0,ie=0,ue=0;r.each(function(){var He=0,Ve=0;$o.select(this).selectAll("g.traces").each(function(me){var re=n3(me,a,d),je=me[0].height;ai.setTranslate(this,I[0],I[1]+u+v+je/2+Ve),Ve+=je,He=Math.max(He,re),_[me[0].trace.legendgroup]=He});var ee=He+v;ie>0&&ee+u+ie>a._maxWidth?(Z=Math.max(Z,ie),ie=0,ue+=J+A,J=Ve):J=Math.max(J,Ve),ai.setTranslate(this,ie,ue),ie+=ee}),a._width=Math.max(Z,ie)+u,a._height=ue+J+p}else{var De=t.size(),Ie=Q+c+(De-1)*v=a._maxWidth&&(Z=Math.max(Z,ir),Ze=0,Ae+=Ee,a._height+=Ee,Ee=0),ai.setTranslate(this,I[0]+u+Ze,I[1]+u+Ae+Ve/2+v),ir=Ze+ee+v,Ze+=me,Ee=Math.max(Ee,Ve)}),Ie?(a._width=Ze+c,a._height=Ee+p):(a._width=Math.max(Z,ir)+c,a._height+=Ee+p)}}a._width=Math.ceil(Math.max(a._width+I[0],a._titleWidth+2*(u+ui.titlePad))),a._height=Math.ceil(Math.max(a._height+I[1],a._titleHeight+2*(u+ui.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Ge=e._context.edits,Qe=Ge.legendText||Ge.legendPosition;t.each(function(He){var Ve=$o.select(this).select("."+i+"toggle"),ee=He[0].height,me=He[0].trace.legendgroup,re=n3(He,a,d);s&&me!==""&&(re=_[me]);var je=Qe?d:F||re;!l&&!f&&(je+=v/2),ai.setRect(Ve,0,-ee/2,je,ee)})}function Eve(e,r,t,a){var n=e._fullLayout,i=n[r],o=l3(i),l=s3(i),s=i.xref==="paper",f=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var u=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&f)return Hw.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Ld[o],r:i._width*Lq[o],b:i._effHeight*Lq[l],t:i._effHeight*Ld[l]});s?e._fullLayout._reservedMargin[r][u]=v[u]:f||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][u]=v[u]}function l3(e){return ti.isRightAnchor(e)?"right":ti.isCenterAnchor(e)?"center":"left"}function s3(e){return ti.isBottomAnchor(e)?"bottom":ti.isMiddleAnchor(e)?"middle":"top"}function f3(e){return e._id||"legend"}});var Zw=P(Xw=>{"use strict";var z0=ha(),Du=ga(),Oq=ks(),Dn=Ur(),kve=Dn.pushUnique,Ww=Dn.strTranslate,Cve=Dn.strRotate,Lve=J1(),Yl=po(),Dve=oq(),Lf=Wa(),_i=va(),u3=Ns(),Df=mn(),Fve=qi().zindexSeparator,qd=Bt(),Is=Cu(),G0=I1(),qve=Fw(),Rve=Yw(),Wq=G0.YANGLE,jw=Math.PI*Wq/180,Pve=1/Math.sin(jw),Nve=Math.cos(jw),Ive=Math.sin(jw),yn=G0.HOVERARROWSIZE,fa=G0.HOVERTEXTPAD,Bq={box:!0,ohlc:!0,violin:!0,candlestick:!0},Ove={scatter:!0,scattergl:!0,splom:!0};function zq(e,r){return e.distance-r.distance}Xw.hover=function(r,t,a,n){r=Dn.getGraphDiv(r);var i=t.target;Dn.throttle(r._fullLayout._uid+G0.HOVERID,G0.HOVERMINTIME,function(){Bve(r,t,a,n,i)})};Xw.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=$q(n),o=Qq(n),l=r.map(function(m){var b=m._x0||m.x0||m.x||0,A=m._x1||m.x1||m.x||0,_=m._y0||m.y0||m.y||0,x=m._y1||m.y1||m.y||0,T=m.eventData;if(T){var E=Math.min(b,A),M=Math.max(b,A),C=Math.min(_,x),F=Math.max(_,x),I=m.trace;if(qd.traceIs(I,"gl3d")){var O=n._fullLayout[I.scene]._scene.container,q=O.offsetLeft,H=O.offsetTop;E+=q,M+=q,C+=H,F+=H}T.bbox={x0:E+o,x1:M+o,y0:C+i,y1:F+i},t.inOut_bbox&&t.inOut_bbox.push(T.bbox)}else T=!1;return{color:m.color||_i.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:T}}),s=!1,f=Xq(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||_i.background,container:z0.select(t.container),outerContainer:t.outerContainer||t.container}),u=f.hoverLabels,c=5,v=0,d=0;u.sort(function(m,b){return m.y0-b.y0}).each(function(m,b){var A=m.y0-m.by/2;A-cM[0]._length||re<0||re>C[0]._length)return u3.unhoverRaw(e,r)}if(r.pointerX=me+M[0]._offset,r.pointerY=re+C[0]._offset,"xval"in r?ae=Is.flat(i,r.xval):ae=Is.p2c(M,me),"yval"in r?Q=Is.flat(i,r.yval):Q=Is.p2c(C,re),!Du(ae[0])||!Du(Q[0]))return Dn.warn("Fx.hover failed",r,e),u3.unhoverRaw(e,r)}var rr=1/0;function Cr(Pt,Ca){for(J=0;JGe&&(X.splice(0,Ge),rr=X[0].distance),c&&H!==0&&X.length===0){ir.distance=H,ir.index=!1;var Ba=ue._module.hoverPoints(ir,Ze,Ae,"closest",{hoverLayer:l._hoverlayer});if(Ba&&(Ba=Ba.filter(function(qa){return qa.spikeDistance<=H})),Ba&&Ba.length){var Ga,tn=Ba.filter(function(qa){return qa.xa.showspikes&&qa.xa.spikesnap!=="hovered data"});if(tn.length){var Wi=tn[0];Du(Wi.x0)&&Du(Wi.y0)&&(Ga=_r(Wi),(!Qe.vLinePoint||Qe.vLinePoint.spikeDistance>Ga.spikeDistance)&&(Qe.vLinePoint=Ga))}var ji=Ba.filter(function(qa){return qa.ya.showspikes&&qa.ya.spikesnap!=="hovered data"});if(ji.length){var Rn=ji[0];Du(Rn.x0)&&Du(Rn.y0)&&(Ga=_r(Rn),(!Qe.hLinePoint||Qe.hLinePoint.spikeDistance>Ga.spikeDistance)&&(Qe.hLinePoint=Ga))}}}}}Cr();function Lr(Pt,Ca,ia){for(var Va=null,hn=1/0,La,Ba=0;Ba0&&Math.abs(Pt.distance)hr-1;et--)ot(X[et]);X=Yr,wr()}var pr=e._hoverdata,Se=[],Oe=$q(e),yr=Qq(e);for(Z=0;Z1||X.length>1)||v==="closest"&&He&&X.length>1,Xn=_i.combine(l.plot_bgcolor||_i.background,l.paper_bgcolor),vn=Xq(X,{gd:e,hovermode:v,rotateLabels:cn,bgColor:Xn,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),wn=vn.hoverLabels;if(Is.isUnifiedHover(v)||(Gve(wn,cn,l,vn.commonLabelBoundingBox),Jq(wn,cn,l._invScaleX,l._invScaleY)),n&&n.tagName){var Mi=qd.getComponentMethod("annotations","hasClickToShow")(e,Se);Dve(z0.select(n),Mi?"pointer":"")}!n||a||!Vve(e,r,pr)||(pr&&e.emit("plotly_unhover",{event:r,points:pr}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:C,xvals:ae,yvals:Q}))}function jq(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var zve=/([\s\S]*)<\/extra>/;function Xq(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,f=r.commonLabelOpts||{};if(e.length===0)return[[]];var u=r.fontFamily||G0.HOVERFONT,c=r.fontSize||G0.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,A=e[0],_=A.xa,x=A.ya,T=n.charAt(0),E=T+"Label",M=A[E];if(M===void 0&&_.type==="multicategory")for(var C=0;Ca.width-yr&&(cr=a.width-yr),hr.attr("d","M"+(pr-cr)+",0L"+(pr-cr+yn)+","+Oe+yn+"H"+yr+"v"+Oe+(fa*2+et.height)+"H"+-yr+"V"+Oe+yn+"H"+(pr-cr-yn)+"Z"),pr=cr,J.minX=pr-yr,J.maxX=pr+yr,_.side==="top"?(J.minY=Se-(fa*2+et.height),J.maxY=Se-fa):(J.minY=Se+fa,J.maxY=Se+(fa*2+et.height))}else{var xt,At,yt;x.side==="right"?(xt="start",At=1,yt="",pr=_._offset+_._length):(xt="end",At=-1,yt="-",pr=_._offset),Se=x._offset+(A.y0+A.y1)/2,Ir.attr("text-anchor",xt),hr.attr("d","M0,0L"+yt+yn+","+yn+"V"+(fa+et.height/2)+"h"+yt+(fa*2+et.width)+"V-"+(fa+et.height/2)+"H"+yt+yn+"V-"+yn+"Z"),J.minY=Se-(fa+et.height/2),J.maxY=Se+(fa+et.height/2),x.side==="right"?(J.minX=pr+yn,J.maxX=pr+yn+(fa*2+et.width)):(J.minX=pr-yn-(fa*2+et.width),J.maxX=pr-yn);var Nt=et.height/2,ta=I-et.top-Nt,ka="clip"+a._uid+"commonlabel"+x._id,Ta;if(pr=0?lt=Hr:Vr+rr=0?lt=Vr:Pe+rr=0?Et=Jr:wr+Cr=0?Et=wr:sr+Cr=0,(Fe.idealAlign==="top"||!ja)&&cn?(yt-=ta/2,Fe.anchor="end"):ja?(yt+=ta/2,Fe.anchor="start"):Fe.anchor="middle",Fe.crossPos=yt;else{if(Fe.pos=yt,ja=At+Nt/2+bn<=O,cn=At-Nt/2-bn>=0,(Fe.idealAlign==="left"||!ja)&&cn)At-=Nt/2,Fe.anchor="end";else if(ja)At+=Nt/2,Fe.anchor="start";else{Fe.anchor="middle";var Xn=bn/2,vn=At+Xn-O,wn=At-Xn;vn>0&&(At-=vn),wn<0&&(At+=-wn)}Fe.crossPos=At}Se.attr("text-anchor",Fe.anchor),yr&&Oe.attr("text-anchor",Fe.anchor),hr.attr("transform",Ww(At,yt)+(i?Cve(Wq):""))}),{hoverLabels:wt,commonLabelBoundingBox:J}}function Gq(e,r,t,a,n,i){var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Dn.templateString(e.name,e.trace._meta)),o=Vq(e.name,e.nameLength));var s=t.charAt(0),f=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[f+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o);var u=e.hovertemplate||!1;if(u){var c=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(c[s+"other"]=c[s+"Val"],c[s+"otherLabel"]=c[s+"Label"]),l=Dn.hovertemplateString(u,c,a._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(zve,function(v,d){return o=Vq(d,e.nameLength),""})}return[l,o]}function Gve(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),f=new Array(s),u=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,y=function(ae){return ae*t._invScaleX},m=function(ae){return ae*t._invScaleY};e.each(function(ae){var Q=ae[n],Z=ae[i],J=Q._id.charAt(0)==="x",ie=Q.range;u===0&&ie&&ie[0]>ie[1]!==J&&(l=-1);var ue=0,De=J?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Ie=Zq(ae,r),Ee=ae.anchor,Ze=Ee==="end"?-1:1,Ae,ir;if(Ee==="middle")Ae=ae.crossPos+(J?m(Ie.y-ae.by/2):y(ae.bx/2+ae.tx2width/2)),ir=Ae+(J?m(ae.by):y(ae.bx));else if(J)Ae=ae.crossPos+m(yn+Ie.y)-m(ae.by/2-yn),ir=Ae+m(ae.by);else{var Ge=y(Ze*yn+Ie.x),Qe=Ge+y(Ze*ae.bx);Ae=ae.crossPos+Math.min(Ge,Qe),ir=ae.crossPos+Math.max(Ge,Qe)}J?d!==void 0&&p!==void 0&&Math.min(ir,p)-Math.max(Ae,d)>1&&(Z.side==="left"?(ue=Z._mainLinePosition,De=t.width):De=Z._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(ir,v)-Math.max(Ae,c)>1&&(Z.side==="top"?(ue=Z._mainLinePosition,De=t.height):De=Z._mainLinePosition)}f[u++]=[{datum:ae,traceIndex:ae.trace.index,dp:0,pos:ae.pos,posref:ae.posref,size:ae.by*(J?Pve:1)/2,pmin:ue,pmax:De}]}),f.sort(function(ae,Q){return ae[0].posref-Q[0].posref||l*(Q[0].traceIndex-ae[0].traceIndex)});var b,A,_,x,T,E,M;function C(ae){var Q=ae[0],Z=ae[ae.length-1];if(A=Q.pmin-Q.pos-Q.dp+Q.size,_=Z.pos+Z.dp+Z.size-Q.pmax,A>.01){for(T=ae.length-1;T>=0;T--)ae[T].dp+=A;b=!1}if(!(_<.01)){if(A<-.01){for(T=ae.length-1;T>=0;T--)ae[T].dp-=_;b=!1}if(b){var J=0;for(x=0;xQ.pmax&&J++;for(x=ae.length-1;x>=0&&!(J<=0);x--)E=ae[x],E.pos>Q.pmax-1&&(E.del=!0,J--);for(x=0;x=0;T--)ae[T].dp-=_;for(x=ae.length-1;x>=0&&!(J<=0);x--)E=ae[x],E.pos+E.dp+E.size>Q.pmax&&(E.del=!0,J--)}}}for(;!b&&o<=s;){for(o++,b=!0,x=0;x.01){for(T=I.length-1;T>=0;T--)I[T].dp+=A;for(F.push.apply(F,I),f.splice(x+1,1),M=0,T=F.length-1;T>=0;T--)M+=F[T].dp;for(_=M/F.length,T=F.length-1;T>=0;T--)F[T].dp-=_;b=!1}else x++}f.forEach(C)}for(x=f.length-1;x>=0;x--){var H=f[x];for(T=H.length-1;T>=0;T--){var X=H[T],le=X.datum;le.offset=X.dp,le.del=X.del}}}function Zq(e,r){var t=0,a=e.offset;return r&&(a*=-Ive,t=e.offset*Nve),{x:t,y:a}}function Uve(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(yn+fa),a=t+r*(e.txwidth+fa),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+fa),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Jq(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=z0.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),f=o.anchor,u=f==="end"?-1:1,c=Uve(o),v=Zq(o,r),d=v.x,p=v.y,y=f==="middle",m="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;y?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":m?b="M0,0L"+n(u*yn+d)+","+i(yn+p)+"v"+i(o.by/2-yn)+"h"+n(u*o.bx)+"v-"+i(o.by)+"H"+n(u*yn+d)+"V"+i(p-yn)+"Z":b="M"+n(u*yn+d)+","+i(p-o.by/2)+"h"+n(u*o.bx)+"v"+i(o.by)+"h"+n(-u*o.bx)+"Z",l.select("path").attr("d",b);var A=d+c.textShiftX,_=p+o.ty0-o.by/2+fa,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&f!=="start"?(s.attr("text-anchor","start"),A=y?-o.bx/2-o.tx2width/2+fa:-o.bx-fa):x==="right"&&f!=="end"&&(s.attr("text-anchor","end"),A=y?o.bx/2-o.tx2width/2-fa:o.bx+fa)),s.call(Yl.positionText,n(A),i(_)),o.tx2width&&(l.select("text.name").call(Yl.positionText,n(c.text2ShiftX+c.alignShift*fa+d),i(p+o.ty0-o.by/2+fa)),l.select("rect").call(Lf.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function Hve(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||Du(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=Dn.castOption(n,t,v);return o(p)?p:Dn.extractOption({},a,"",d)}:function(v,d){return Dn.extractOption(i,a,v,d)};function s(v,d,p){var y=l(d,p);o(y)&&(e[v]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Dn.constrain(e.x0,0,e.xa._length),e.x1=Dn.constrain(e.x1,0,e.xa._length),e.y0=Dn.constrain(e.y0,0,e.ya._length),e.y1=Dn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Df.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Df.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var f=Df.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+f+" / -"+Df.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+f,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var u=Df.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+u+" / -"+Df.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+u,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function Uq(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,f,u;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=_i.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;f=v&&v.xa,u=v&&v.ya;var y=u.spikesnap;y==="cursor"?(d=o.pointerX,p=o.pointerY):(d=f._offset+v.x,p=u._offset+v.y);var m=Oq.readability(v.color,c)<1.5?_i.contrast(c):v.color,b=u.spikemode,A=u.spikethickness,_=u.spikecolor||m,x=Df.getPxPosition(e,u),T,E;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(T=x,E=d),b.indexOf("across")!==-1){var M=u._counterDomainMin,C=u._counterDomainMax;u.anchor==="free"&&(M=Math.min(M,u.position),C=Math.max(C,u.position)),T=i.l+M*i.w,E=i.l+C*i.w}a.insert("line",":first-child").attr({x1:T,x2:E,y1:p,y2:p,"stroke-width":A,stroke:_,"stroke-dasharray":Lf.dashStyle(u.spikedash,A)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:T,x2:E,y1:p,y2:p,"stroke-width":A+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(u.side!=="right"?A:-A),cy:p,r:A,fill:_}).classed("spikeline",!0)}if(s){var F=r.vLinePoint,I,O;f=F&&F.xa,u=F&&F.ya;var q=f.spikesnap;q==="cursor"?(I=o.pointerX,O=o.pointerY):(I=f._offset+F.x,O=u._offset+F.y);var H=Oq.readability(F.color,c)<1.5?_i.contrast(c):F.color,X=f.spikemode,le=f.spikethickness,ae=f.spikecolor||H,Q=Df.getPxPosition(e,f),Z,J;if(X.indexOf("toaxis")!==-1||X.indexOf("across")!==-1){if(X.indexOf("toaxis")!==-1&&(Z=Q,J=O),X.indexOf("across")!==-1){var ie=f._counterDomainMin,ue=f._counterDomainMax;f.anchor==="free"&&(ie=Math.min(ie,f.position),ue=Math.max(ue,f.position)),Z=i.t+(1-ue)*i.h,J=i.t+(1-ie)*i.h}a.insert("line",":first-child").attr({x1:I,x2:I,y1:Z,y2:J,"stroke-width":le,stroke:ae,"stroke-dasharray":Lf.dashStyle(f.spikedash,le)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:I,x2:I,y1:Z,y2:J,"stroke-width":le+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}X.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:I,cy:Q-(f.side!=="top"?le:-le),r:le,fill:ae}).classed("spikeline",!0)}}}function Vve(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function Hq(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function Vq(e,r){return Yl.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Yve(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o{"use strict";var Wve=Ur(),jve=va(),Xve=Cu().isUnifiedHover;Kq.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&Xve(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=jve.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),Wve.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var rR=P((yLe,eR)=>{"use strict";var Zve=Ur(),Jve=c3(),$ve=Zh();eR.exports=function(r,t){function a(n,i){return Zve.coerce(r,t,$ve,n,i)}Jve(r,t,a)}});var nR=P((gLe,aR)=>{"use strict";var tR=Ur(),Qve=Ig(),Kve=c3();aR.exports=function(r,t,a,n){function i(l,s){return tR.coerce(r,t,Qve,l,s)}var o=tR.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),Kve(r,t,i,o)}});var Jw=P((bLe,iR)=>{"use strict";var e0e=Ur(),r0e=Zh();iR.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:e0e.coerce(r,t,r0e,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var sR=P((xLe,lR)=>{"use strict";var oR=Ur(),t0e=Zh(),a0e=Jw(),n0e=c3();lR.exports=function(r,t){function a(u,c){return oR.coerce(r,t,t0e,u,c)}var n=a0e(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),f=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&f===1||(o||l)&&s&&f===2)&&(t.dragmode="pan"),n0e(r,t,a),oR.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var cR=P((_Le,uR)=>{"use strict";var $w=Ur(),fR=Bt();uR.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(f){return function(u){return $w.coerceHoverinfo({hoverinfo:u},{_module:f._module},a)}}for(var i=0;i{"use strict";var o0e=Bt(),l0e=Zw().hover;vR.exports=function(r,t,a){var n=o0e.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&l0e(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Wc=P((ALe,mR)=>{"use strict";var s0e=ha(),v3=Ur(),f0e=Ns(),ym=Cu(),dR=Zh(),pR=Zw();mR.exports={moduleType:"component",name:"fx",constants:I1(),schema:{layout:dR},attributes:Ig(),layoutAttributes:dR,supplyLayoutGlobalDefaults:rR(),supplyDefaults:nR(),supplyLayoutDefaults:sR(),calc:cR(),getDistanceFunction:ym.getDistanceFunction,getClosest:ym.getClosest,inbox:ym.inbox,quadrature:ym.quadrature,appendArrayPointValue:ym.appendArrayPointValue,castHoverOption:c0e,castHoverinfo:v0e,hover:pR.hover,unhover:f0e.unhover,loneHover:pR.loneHover,loneUnhover:u0e,click:hR()};function u0e(e){var r=v3.isD3Selection(e)?e:s0e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function c0e(e,r,t){return v3.castOption(e,r,"hoverlabel."+t)}function v0e(e,r,t){function a(n){return v3.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return v3.castOption(e,t,"hoverinfo",a)}});var jc=P(Fu=>{"use strict";Fu.selectMode=function(e){return e==="lasso"||e==="select"};Fu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Fu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Fu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Fu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Fu.selectingOrDrawing=function(e){return Fu.freeMode(e)||Fu.rectMode(e)}});var h3=P((MLe,yR)=>{"use strict";yR.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var d3=P((SLe,gR)=>{"use strict";gR.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var m3=P((ELe,bR)=>{"use strict";var p3=32;bR.exports={CIRCLE_SIDES:p3,i000:0,i090:p3/4,i180:p3/2,i270:p3/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var y3=P((kLe,_R)=>{"use strict";var h0e=Ur().strTranslate;function xR(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function d0e(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function p0e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return xR(e,t[r])}}function m0e(e){return h0e(e.xaxis._offset,e.yaxis._offset)}_R.exports={p2r:xR,r2p:d0e,axValue:p0e,getTransform:m0e}});var Xc=P(qu=>{"use strict";var y0e=nm(),TR=m3(),Rd=TR.CIRCLE_SIDES,Qw=TR.SQRT2,MR=y3(),wR=MR.p2r,AR=MR.r2p,g0e=[0,3,4,5,6,1,2],b0e=[0,3,4,1,2];qu.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var SR=Sn(),DR=jc(),x0e=DR.drawMode,_0e=DR.openMode,Pd=m3(),ER=Pd.i000,kR=Pd.i090,CR=Pd.i180,LR=Pd.i270,w0e=Pd.cos45,A0e=Pd.sin45,FR=y3(),b3=FR.p2r,Zc=FR.r2p,T0e=Ic(),M0e=T0e.clearOutline,x3=Xc(),S0e=x3.readPaths,E0e=x3.writePaths,k0e=x3.ellipseOver,C0e=x3.fixDatesForPaths;function L0e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!x0e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var D0e=jc(),F0e=D0e.selectMode,q0e=Ic(),R0e=q0e.clearOutline,Kw=Xc(),P0e=Kw.readPaths,N0e=Kw.writePaths,I0e=Kw.fixDatesForPaths;PR.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,f=l.yaxis,u=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!F0e(c)&&u!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";NR.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Jc=P(Pi=>{"use strict";var U0=bm(),IR=Ur(),w3=mn();Pi.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Pi.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Pi.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Pi.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Pi.extractPathCoords=function(e,r,t){var a=[],n=e.match(U0.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.substr(1).match(U0.paramRE);if(!(!l||l.lengthd&&(y="X"),y});return f>d&&(p=p.replace(/[\s,]*X.*/,""),IR.log("Ignoring extra params in segment "+s)),u+p})}function xm(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var tA=P((RLe,GR)=>{"use strict";var B0e=Ur(),Nd=mn(),OR=po(),BR=Wa(),z0e=Xc().readPaths,rA=Jc(),G0e=rA.getPathString,zR=Yg(),U0e=ho().FROM_TL;GR.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=Nd.getFromId(r,a.xref),s=Nd.getFromId(r,a.yref);for(var f in zR){var u=zR[f](a,l,s);u!==void 0&&(o[f]=u)}}i=B0e.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,o)}else i=a.label.text;var c={"data-index":t},v=a.label.font,d={"data-notex":1},p=n.append("g").attr(c).classed("shape-label",!0),y=p.append("text").attr(d).classed("shape-label-text",!0).text(i),m,b,A,_;if(a.path){var x=G0e(r,a),T=z0e(x,r);m=1/0,A=1/0,b=-1/0,_=-1/0;for(var E=0;E=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function V0e(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,f=n.label.padding,u=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,y=n.label.yanchor,m,b,A,_;if(u==="line"){l==="start"?(m=e,b=r):l==="end"?(m=t,b=a):(m=(e+t)/2,b=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var Y0e=Ur(),W0e=Y0e.strTranslate,UR=Ns(),YR=jc(),j0e=YR.drawMode,WR=YR.selectMode,jR=Bt(),HR=va(),T3=m3(),X0e=T3.i000,Z0e=T3.i090,J0e=T3.i180,$0e=T3.i270,Q0e=Ic(),XR=Q0e.clearOutlineControllers,nA=Xc(),A3=nA.pointsOnRectangle,aA=nA.pointsOnEllipse,K0e=nA.writePaths,ehe=_3().newShapes,rhe=_3().createShapeObj,the=eA(),ahe=tA();ZR.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(aA(r[0])||a.hasText)&&l({redrawing:!0})}function l(Q){var Z={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,Z=ehe(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,Z=the(t,a),i._fullLayout._reselect=!0),Object.keys(Z).length&&jR.call((Q||{}).redrawing?"relayout":"_guiRelayout",i,Z)}var s=i._fullLayout,f=s._zoomlayer,u=a.dragmode,c=j0e(u),v=WR(u);(c||v)&&(i._fullLayout._outlining=!0),XR(i),t.attr("d",K0e(r));var d,p,y,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=nhe([],r);var A=f.append("g").attr("class","outline-controllers");I(A),ae()}if(c&&a.hasText){var _=f.select(".label-temp"),x=rhe(t,a,a.dragmode);ahe(i,"label-temp",x,_)}function T(Q){y=+Q.srcElement.getAttribute("data-i"),m=+Q.srcElement.getAttribute("data-j"),d[y][m].moveFn=E}function E(Q,Z){if(r.length){var J=b[y][m][1],ie=b[y][m][2],ue=r[y],De=ue.length;if(A3(ue)){var Ie=Q,Ee=Z;if(a.isActiveSelection){var Ze=VR(ue,m);Ze[1]===ue[m][1]?Ee=0:Ie=0}for(var Ae=0;Ae1&&!(Q.length===2&&Q[1][0]==="Z")&&(m===0&&(Q[0][0]="M"),r[y]=Q,o(),l())}}function F(Q,Z){if(Q===2){y=+Z.srcElement.getAttribute("data-i"),m=+Z.srcElement.getAttribute("data-j");var J=r[y];!A3(J)&&!aA(J)&&C()}}function I(Q){d=[];for(var Z=0;Z{"use strict";var ohe=ha(),rP=Bt(),JR=Ur(),Id=mn(),lhe=Xc().readPaths,she=M3(),E3=tA(),tP=Ic().clearOutlineControllers,iA=va(),lA=Wa(),fhe=$a().arrayEditor,$R=Ns(),QR=Yc(),H0=bm(),Qo=Jc(),oA=Qo.getPathString;iP.exports={draw:sA,drawOne:aP,eraseActiveShape:vhe,drawLabel:E3};function sA(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;no&&rt>l&&!Lr.shiftKey?$R.getCursor(Jr/Pr,1-wr/rt):"move";QR(r,Hr),ir=Hr.split("-")[0]}}function Ve(Lr){S3(e)||(s&&(b=ue(t.xanchor)),f&&(A=De(t.yanchor)),t.type==="path"?O=t.path:(d=s?t.x0:ue(t.x0),p=f?t.y0:De(t.y0),y=s?t.x1:ue(t.x1),m=f?t.y1:De(t.y1)),dm?(_=p,M="y0",x=m,C="y1"):(_=m,M="y1",x=p,C="y0"),He(Lr),vr(n,t),Cr(r,t,e),Ae.moveFn=ir==="move"?re:je,Ae.altKey=Lr.altKey)}function ee(){S3(e)||(QR(r),rr(n),nP(r,e,t),rP.call("_guiRelayout",e,i.getUpdateObj()))}function me(){S3(e)||rr(n)}function re(Lr,_r){if(t.type==="path"){var Pr=function(wr){return wr},rt=Pr,Jr=Pr;s?v("xanchor",t.xanchor=Ie(b+Lr)):(rt=function(Hr){return Ie(ue(Hr)+Lr)},H&&H.type==="date"&&(rt=Qo.encodeDate(rt))),f?v("yanchor",t.yanchor=Ee(A+_r)):(Jr=function(Hr){return Ee(De(Hr)+_r)},le&&le.type==="date"&&(Jr=Qo.encodeDate(Jr))),v("path",t.path=KR(O,rt,Jr))}else s?v("xanchor",t.xanchor=Ie(b+Lr)):(v("x0",t.x0=Ie(d+Lr)),v("x1",t.x1=Ie(y+Lr))),f?v("yanchor",t.yanchor=Ee(A+_r)):(v("y0",t.y0=Ee(p+_r)),v("y1",t.y1=Ee(m+_r)));r.attr("d",oA(e,t)),vr(n,t),E3(e,a,t,q)}function je(Lr,_r){if(c){var Pr=function(nt){return nt},rt=Pr,Jr=Pr;s?v("xanchor",t.xanchor=Ie(b+Lr)):(rt=function(vt){return Ie(ue(vt)+Lr)},H&&H.type==="date"&&(rt=Qo.encodeDate(rt))),f?v("yanchor",t.yanchor=Ee(A+_r)):(Jr=function(vt){return Ee(De(vt)+_r)},le&&le.type==="date"&&(Jr=Qo.encodeDate(Jr))),v("path",t.path=KR(O,rt,Jr))}else if(u){if(ir==="resize-over-start-point"){var wr=d+Lr,Hr=f?p-_r:p+_r;v("x0",t.x0=s?wr:Ie(wr)),v("y0",t.y0=f?Hr:Ee(Hr))}else if(ir==="resize-over-end-point"){var Vr=y+Lr,Pe=f?m-_r:m+_r;v("x1",t.x1=s?Vr:Ie(Vr)),v("y1",t.y1=f?Pe:Ee(Pe))}}else{var sr=function(nt){return ir.indexOf(nt)!==-1},lt=sr("n"),Et=sr("s"),wt=sr("w"),Fe=sr("e"),hr=lt?_+_r:_,Ir=Et?x+_r:x,at=wt?T+Lr:T,Yr=Fe?E+Lr:E;f&&(lt&&(hr=_-_r),Et&&(Ir=x-_r)),(!f&&Ir-hr>l||f&&hr-Ir>l)&&(v(M,t[M]=f?hr:Ee(hr)),v(C,t[C]=f?Ir:Ee(Ir))),Yr-at>o&&(v(F,t[F]=s?at:Ie(at)),v(I,t[I]=s?Yr:Ie(Yr)))}r.attr("d",oA(e,t)),vr(n,t),E3(e,a,t,q)}function vr(Lr,_r){(s||f)&&Pr();function Pr(){var rt=_r.type!=="path",Jr=Lr.selectAll(".visual-cue").data([0]),wr=1;Jr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":wr}).classed("visual-cue",!0);var Hr=ue(s?_r.xanchor:JR.midRange(rt?[_r.x0,_r.x1]:Qo.extractPathCoords(_r.path,H0.paramIsX))),Vr=De(f?_r.yanchor:JR.midRange(rt?[_r.y0,_r.y1]:Qo.extractPathCoords(_r.path,H0.paramIsY)));if(Hr=Qo.roundPositionForSharpStrokeRendering(Hr,wr),Vr=Qo.roundPositionForSharpStrokeRendering(Vr,wr),s&&f){var Pe="M"+(Hr-1-wr)+","+(Vr-1-wr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Jr.attr("d",Pe)}else if(s){var sr="M"+(Hr-1-wr)+","+(Vr-9-wr)+"v18 h2 v-18 Z";Jr.attr("d",sr)}else{var lt="M"+(Hr-9-wr)+","+(Vr-1-wr)+"h18 v2 h-18 Z";Jr.attr("d",lt)}}}function rr(Lr){Lr.selectAll(".visual-cue").remove()}function Cr(Lr,_r,Pr){var rt=_r.xref,Jr=_r.yref,wr=Id.getFromId(Pr,rt),Hr=Id.getFromId(Pr,Jr),Vr="";rt!=="paper"&&!wr.autorange&&(Vr+=rt),Jr!=="paper"&&!Hr.autorange&&(Vr+=Jr),lA.setClipUrl(Lr,Vr?"clip"+Pr._fullLayout._uid+Vr:null,Pr)}}function KR(e,r,t){return e.replace(H0.segmentRE,function(a){var n=0,i=a.charAt(0),o=H0.paramIsX[i],l=H0.paramIsY[i],s=H0.numParams[i],f=a.substr(1).replace(H0.paramRE,function(u){return n>=s||(o[n]?u=r(u):l[n]&&(u=t(u)),n++),u});return i+f})}function che(e,r){if(k3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){eP(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=eP,sA(e)}}}function eP(e){if(k3(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(tP(e),delete e._fullLayout._activeShapeIndex,sA(e))}}function vhe(e){if(k3(e)){tP(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Wl=Bt(),oP=bi(),lP=Sn(),ba=d3(),hhe=C3().eraseActiveShape,L3=Ur(),la=L3._,xa=dP.exports={};xa.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?la(e,"Download plot as a PNG"):la(e,"Download plot")},icon:ba.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};L3.notifier(la(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Wl.call("downloadImage",e,t).then(function(a){L3.notifier(la(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){L3.notifier(la(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};xa.sendDataToCloud={name:"sendDataToCloud",title:function(e){return la(e,"Edit in Chart Studio")},icon:ba.disk,click:function(e){oP.sendDataToCloud(e)}};xa.editInChartStudio={name:"editInChartStudio",title:function(e){return la(e,"Edit in Chart Studio")},icon:ba.pencil,click:function(e){oP.sendDataToCloud(e)}};xa.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return la(e,"Zoom")},attr:"dragmode",val:"zoom",icon:ba.zoombox,click:go};xa.pan2d={name:"pan2d",_cat:"pan",title:function(e){return la(e,"Pan")},attr:"dragmode",val:"pan",icon:ba.pan,click:go};xa.select2d={name:"select2d",_cat:"select",title:function(e){return la(e,"Box Select")},attr:"dragmode",val:"select",icon:ba.selectbox,click:go};xa.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return la(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:ba.lasso,click:go};xa.drawclosedpath={name:"drawclosedpath",title:function(e){return la(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:ba.drawclosedpath,click:go};xa.drawopenpath={name:"drawopenpath",title:function(e){return la(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:ba.drawopenpath,click:go};xa.drawline={name:"drawline",title:function(e){return la(e,"Draw line")},attr:"dragmode",val:"drawline",icon:ba.drawline,click:go};xa.drawrect={name:"drawrect",title:function(e){return la(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:ba.drawrect,click:go};xa.drawcircle={name:"drawcircle",title:function(e){return la(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:ba.drawcircle,click:go};xa.eraseshape={name:"eraseshape",title:function(e){return la(e,"Erase active shape")},icon:ba.eraseshape,click:hhe};xa.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return la(e,"Zoom in")},attr:"zoom",val:"in",icon:ba.zoom_plus,click:go};xa.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return la(e,"Zoom out")},attr:"zoom",val:"out",icon:ba.zoom_minus,click:go};xa.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return la(e,"Autoscale")},attr:"zoom",val:"auto",icon:ba.autoscale,click:go};xa.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return la(e,"Reset axes")},attr:"zoom",val:"reset",icon:ba.home,click:go};xa.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return la(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:ba.tooltip_basic,gravity:"ne",click:go};xa.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return la(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:ba.tooltip_compare,gravity:"ne",click:go};function go(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=lP.list(e,null,!0),s=i._cartesianSpikesEnabled,f,u;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,y;for(u=0;u{"use strict";var pP=cA(),mhe=Object.keys(pP),mP=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],yP=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(mP),Bd=[],yhe=function(e){if(yP.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();Bd.indexOf(r)===-1&&Bd.push(r),Bd.indexOf(t)===-1&&Bd.push(t)}};mhe.forEach(function(e){yhe(pP[e])});Bd.sort();gP.exports={DRAW_MODES:mP,backButtons:yP,foreButtons:Bd}});var hA=P((zLe,bP)=>{"use strict";var BLe=vA();bP.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var _P=P((GLe,xP)=>{"use strict";var ghe=Ur(),_m=va(),bhe=$a(),xhe=hA();xP.exports=function(r,t){var a=r.modebar||{},n=bhe.newContainer(t,"modebar");function i(l,s){return ghe.coerce(a,n,xhe,l,s)}i("orientation"),i("bgcolor",_m.addOpacity(t.paper_bgcolor,.5));var o=_m.contrast(_m.rgb(t.modebar.bgcolor));i("color",_m.addOpacity(o,.3)),i("activecolor",_m.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var MP=P((ULe,TP)=>{"use strict";var dA=ha(),_he=ga(),F3=Ur(),wP=d3(),whe=Mg().version,Ahe=new DOMParser;function AP(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ff=AP.prototype;Ff.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,f=this.locale!==t.locale;if(this.locale=t.locale,(l||s||f)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var u=this.getLogo();t.watermark&&(u.className=u.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(u,this.element.childNodes[0]):this.element.appendChild(u),this.hasLogo=!0}this.updateActiveButton(),F3.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Ff.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Ff.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Ff.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&dA.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||wP.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Ff.createIcon=function(e){var r=_he(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=Ahe.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Ff.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=dA.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var f=!l.classed("active");l.classed("active",f),s(a,f)}}else{var u=i===null?i:F3.nestedProperty(r,i).get();l.classed("active",u===n),s(a,u===n)}})};Ff.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var She=Sn(),SP=Ri(),pA=Bt(),Ehe=Cu().isUnifiedHover,khe=MP(),q3=cA(),Che=vA().DRAW_MODES,Lhe=Ur().extendDeep;EP.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=Nhe(i):!a.displayModeBar&&a.watermark?o=[]:o=Dhe(r),n?n.update(r,o):t._modeBar=khe(r,o)};function Dhe(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(Z,J){if(typeof J=="string"){if(J.toLowerCase()===Z.toLowerCase())return!0}else{var ie=J.name,ue=J._cat||J.name;if(ie===Z||ue===Z.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(Z){for(var J=0;J1?(I=["toggleHover"],O=["resetViews"]):c?(F=["zoomInGeo","zoomOutGeo"],I=["hoverClosestGeo"],O=["resetGeo"]):u?(I=["hoverClosest3d"],O=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(F=["zoomInMapbox","zoomOutMapbox"],I=["toggleHover"],O=["resetViewMapbox"]):m?(F=["zoomInMap","zoomOutMap"],I=["toggleHover"],O=["resetViewMap"]):v?I=["hoverClosestPie"]:_?(I=["hoverClosestCartesian","hoverCompareCartesian"],O=["resetViewSankey"]):I=["toggleHover"],f&&I.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Rhe(t)||T)&&(I=[]),f&&!x&&(F=["zoomIn2d","zoomOut2d","autoScale2d"],O[0]!=="resetViews"&&(O=["resetScale2d"])),u?q=["zoom3d","pan3d","orbitRotation","tableRotation"]:f&&!x||p?q=["zoom2d","pan2d"]:y||m||c?q=["pan2d"]:b&&(q=["zoom2d"]),qhe(t)&&q.push("select2d","lasso2d");var H=[],X=function(Z){H.indexOf(Z)===-1&&I.indexOf(Z)!==-1&&H.push(Z)};if(Array.isArray(l)){for(var le=[],ae=0;ae{"use strict";CP.exports={moduleType:"component",name:"modebar",layoutAttributes:hA(),supplyLayoutDefaults:_P(),manage:kP()}});var yA=P((YLe,LP)=>{"use strict";var Ihe=ho().FROM_BL;LP.exports=function(r,t,a){a===void 0&&(a=Ihe[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Am=P(wm=>{"use strict";var V0=Ur(),gA=wd(),Os=Sn().id2name,Ohe=Ul(),DP=yA(),Bhe=O2(),zhe=Kn().ALMOST_EQUAL,Ghe=ho().FROM_BL;wm.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,f,u,c,v,d,p;for(l=0;li?t.substr(i):a.substr(n))+o}function Hhe(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;ozhe*p&&!A)){for(i=0;iq&&ieI&&(I=ie);var De=(I-F)/(2*O);c/=De,F=s.l2r(F),I=s.l2r(I),s.range=s._input.range=E{"use strict";var P3=ha(),bo=Bt(),Al=bi(),jl=Ur(),_A=po(),wA=h3(),Tm=va(),zd=Wa(),PP=lm(),zP=mA(),Mm=mn(),Ru=ho(),GP=Am(),Vhe=GP.enforce,Yhe=GP.clean,NP=wd().doAutoRange,UP="start",Whe="middle",HP="end",jhe=qi().zindexSeparator;wi.layoutStyles=function(e){return jl.syncOrAsync([Al.doAutoMargin,Zhe],e)};function Xhe(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Zhe(e){var r=e._fullLayout,t=r._size,a=t.p,n=Mm.list(e,"",!0),i,o,l,s,f,u;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(zd.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),wi.drawMainTitle(e),zP.manage(e),!r._has("cartesian"))return Al.previousPromises(e);function c(Ve,ee,me){var re=Ve._lw/2;if(Ve._id.charAt(0)==="x"){if(ee){if(me==="top")return ee._offset-a-re}else return t.t+t.h*(1-(Ve.position||0))+re%1;return ee._offset+ee._length+a+re}if(ee){if(me==="right")return ee._offset+ee._length+a+re}else return t.l+t.w*(Ve.position||0)+re%1;return ee._offset-a-re}for(i=0;i0){Khe(e,i,f,s),l.attr({x:o,y:i,"text-anchor":a,dy:BP(r.yanchor)}).call(_A.positionText,o,i);var u=(r.text.match(_A.BR_TAG_ALL)||[]).length;if(u){var c=Ru.LINE_SPACING*u+Ru.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var v=P3.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,y=p+PP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y,"text-anchor":a,dy:BP(r.yanchor)}).call(_A.positionText,o,y)}}}};function Jhe(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=jl.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return jl.isTopAnchor(r)&&t==="t"||jl.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=$he(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function Khe(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&Jhe(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Al.allowAutoMargin(e,n),Al.autoMargin(e,n,l)}function ede(e,r){var t=e.title,a=e._size,n=0;switch(r===UP?n=t.pad.l:r===HP&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function rde(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===Ru.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function BP(e){return e==="top"?Ru.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Ru.MID_SHIFT+"em"}function tde(e){var r=e.title,t=Whe;return jl.isRightAnchor(r)?t=HP:jl.isLeftAnchor(r)&&(t=UP),t}function ade(e){var r=e.title,t="0em";return jl.isTopAnchor(r)?t=Ru.CAP_SHIFT+"em":jl.isMiddleAnchor(r)&&(t=Ru.MID_SHIFT+"em"),t}wi.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var nde=Xc().readPaths,ide=M3(),VP=Ic().clearOutlineControllers,AA=va(),YP=Wa(),ode=$a().arrayEditor,WP=Jc(),lde=WP.getPathString;XP.exports={draw:I3,drawOne:jP,activateLastSelection:ude};function I3(e){var r=e._fullLayout;VP(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;m--){var b=o.append("path").attr(s).style("opacity",m?.1:f).call(AA.stroke,c).call(AA.fill,u).call(YP.dashLine,m?"solid":d,m?4+v:v);if(sde(b,e,a),p){var A=ode(e.layout,"selections",a);b.style({cursor:"move"});var _={element:b.node(),plotinfo:n,gd:e,editHelpers:A,isActiveSelection:!0},x=nde(l,e);ide(x,b,_)}else b.style("pointer-events",m?"all":"none");y[m]=b}var T=y[0],E=y[1];E.node().addEventListener("click",function(){return fde(e,T)})}}function sde(e,r,t){var a=t.xref+t.yref;YP.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function fde(e,r){if(O3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){TA(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=TA,I3(e)}}}function ude(e){if(O3(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=TA,I3(e)}}function TA(e){if(O3(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(VP(e),delete e._fullLayout._activeSelectionIndex,I3(e))}}});var JP=P((ZLe,ZP)=>{function cde(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}ZP.exports=cde});var QP=P((JLe,$P)=>{function vde(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],f=t[0],u=t[1];return(l-i)*(u-o)-(s-o)*(f-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],f=l*o+i*s;if(f-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-u)*(i-c)/(l-c)+u-n>e&&(s=!s),o=u,l=c}return s}};return r}$P.exports=vde});var eN=P(($Le,KP)=>{var hde={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};KP.exports=hde});var tN=P((QLe,rN)=>{var Sm=eN();function dde(e,r,t){function a(p,y){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:null,below:null},otherFill:null}}function n(p,y,m){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=Sm.create();function o(p,y,m,b,A,_){var x=r.pointsCompare(y,A);return x!==0?x:r.pointsSame(m,_)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(m,b?A:_,b?_:A)?1:-1}function l(p,y){i.insertBefore(p,function(m){var b=o(p.isStart,p.pt,y,m.isStart,m.pt,m.other.pt);return b<0})}function s(p,y){var m=Sm.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return l(m,p.end),m}function f(p,y,m){var b=Sm.node({isStart:!1,pt:y.end,seg:y,primary:m,other:p,status:null});p.other=b,l(b,p.pt)}function u(p,y){var m=s(p,y);return f(m,p,y),m}function c(p,y){t&&t.segmentChop(p.seg,y),p.other.remove(),p.seg.end=y,p.other.pt=y,l(p.other,p.pt)}function v(p,y){var m=n(y,p.seg.end,p.seg);return c(p,y),u(m,p.primary)}function d(p,y){var m=Sm.create();function b(le,ae){var Q=le.seg.start,Z=le.seg.end,J=ae.seg.start,ie=ae.seg.end;return r.pointsCollinear(Q,J,ie)?r.pointsCollinear(Z,J,ie)||r.pointAboveOrOnLine(Z,J,ie)?1:-1:r.pointAboveOrOnLine(Q,J,ie)?1:-1}function A(le){return m.findTransition(function(ae){var Q=b(le,ae.ev);return Q>0})}function _(le,ae){var Q=le.seg,Z=ae.seg,J=Q.start,ie=Q.end,ue=Z.start,De=Z.end;t&&t.checkIntersection(Q,Z);var Ie=r.linesIntersect(J,ie,ue,De);if(Ie===!1){if(!r.pointsCollinear(J,ie,ue)||r.pointsSame(J,De)||r.pointsSame(ie,ue))return!1;var Ee=r.pointsSame(J,ue),Ze=r.pointsSame(ie,De);if(Ee&&Ze)return ae;var Ae=!Ee&&r.pointBetween(J,ue,De),ir=!Ze&&r.pointBetween(ie,ue,De);if(Ee)return ir?v(ae,ie):v(le,De),ae;Ae&&(Ze||(ir?v(ae,ie):v(le,De)),v(ae,J))}else Ie.alongA===0&&(Ie.alongB===-1?v(le,ue):Ie.alongB===0?v(le,Ie.pt):Ie.alongB===1&&v(le,De)),Ie.alongB===0&&(Ie.alongA===-1?v(ae,J):Ie.alongA===0?v(ae,Ie.pt):Ie.alongA===1&&v(ae,ie));return!1}for(var x=[];!i.isEmpty();){var T=i.getHead();if(t&&t.vert(T.pt[0]),T.isStart){let le=function(){if(M){var ae=_(T,M);if(ae)return ae}return C?_(T,C):!1};var X=le;t&&t.segmentNew(T.seg,T.primary);var E=A(T),M=E.before?E.before.ev:null,C=E.after?E.after.ev:null;t&&t.tempStatus(T.seg,M?M.seg:!1,C?C.seg:!1);var F=le();if(F){if(e){var I;T.seg.myFill.below===null?I=!0:I=T.seg.myFill.above!==T.seg.myFill.below,I&&(F.seg.myFill.above=!F.seg.myFill.above)}else F.seg.otherFill=T.seg.myFill;t&&t.segmentUpdate(F.seg),T.other.remove(),T.remove()}if(i.getHead()!==T){t&&t.rewind(T.seg);continue}if(e){var I;T.seg.myFill.below===null?I=!0:I=T.seg.myFill.above!==T.seg.myFill.below,C?T.seg.myFill.below=C.seg.myFill.above:T.seg.myFill.below=p,I?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var O;C?T.primary===C.primary?O=C.seg.otherFill.above:O=C.seg.myFill.above:O=T.primary?y:p,T.seg.otherFill={above:O,below:O}}t&&t.status(T.seg,M?M.seg:!1,C?C.seg:!1),T.other.status=E.insert(Sm.node({ev:T}))}else{var q=T.status;if(q===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(q.prev)&&m.exists(q.next)&&_(q.prev.ev,q.next.ev),t&&t.statusRemove(q.ev.seg),q.remove(),!T.primary){var H=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=H}x.push(T.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var y,m=p[p.length-1],b=0;b{function pde(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},f={index:0,matches_head:!1,matches_pt1:!1},u=s;function c(X,le,ae){return u.index=X,u.matches_head=le,u.matches_pt1=ae,u===s?(u=f,!1):(u=null,!0)}for(var v=0;v{function Em(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var mde={union:function(e,r){return Em(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Em(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Em(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Em(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Em(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};iN.exports=mde});var sN=P((rDe,lN)=>{var yde={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(f){var u=f.slice(0,f.length-1);return e.segments({inverted:!1,regions:[u]})}for(var l=o(i[0]),s=1;s{var gde=JP(),bde=QP(),fN=tN(),xde=nN(),km=oN(),uN=sN(),Xl=!1,Cm=bde(),Ko;Ko={buildLog:function(e){return e===!0?Xl=gde():e===!1&&(Xl=!1),Xl===!1?!1:Xl.list},epsilon:function(e){return Cm.epsilon(e)},segments:function(e){var r=fN(!0,Cm,Xl);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=fN(!1,Cm,Xl);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:km.union(e.combined,Xl),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:km.intersect(e.combined,Xl),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:km.difference(e.combined,Xl),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:km.differenceRev(e.combined,Xl),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:km.xor(e.combined,Xl),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:xde(e.segments,Cm,Xl),inverted:e.inverted}},polygonFromGeoJSON:function(e){return uN.toPolygon(Ko,e)},polygonToGeoJSON:function(e){return uN.fromPolygon(Ko,Cm,e)},union:function(e,r){return Lm(e,r,Ko.selectUnion)},intersect:function(e,r){return Lm(e,r,Ko.selectIntersect)},difference:function(e,r){return Lm(e,r,Ko.selectDifference)},differenceRev:function(e,r){return Lm(e,r,Ko.selectDifferenceRev)},xor:function(e,r){return Lm(e,r,Ko.selectXor)}};function Lm(e,r,t){var a=Ko.segments(e),n=Ko.segments(r),i=Ko.combine(a,n),o=t(i);return Ko.polygon(o)}typeof window=="object"&&(window.PolyBool=Ko);cN.exports=Ko});var dN=P((aDe,hN)=>{hN.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,f=0,u=s-1;fo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;y&&(l=!l)}return l}});var EA=P((nDe,pN)=>{"use strict";var SA=Ug().dot,B3=Kn().BADNUM,z3=pN.exports={};z3.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||b===B3||bo||y&&f(p))}function c(p,y){var m=p[0],b=p[1];if(m===B3||mn||b===B3||bo)return!1;var A=t.length,_=t[0][0],x=t[0][1],T=0,E,M,C,F,I;for(E=1;EMath.max(M,_)||b>Math.max(C,x)))if(bl||Math.abs(SA(c,f))>n)return!0;return!1};z3.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var f=a.length,u=n;a.splice(i+1);for(var c=u+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var yN=P((iDe,mN)=>{"use strict";mN.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var BN=P((oDe,ON)=>{"use strict";var gN=vN(),_de=dN(),qm=Bt(),wde=Wa().dashStyle,Dm=va(),Ade=Wc(),Tde=Cu().makeEventData,Om=jc(),Mde=Om.freeMode,Sde=Om.rectMode,Rm=Om.drawMode,DA=Om.openMode,FA=Om.selectMode,bN=Jc(),xN=bm(),MN=M3(),SN=Ic().clearOutline,EN=Xc(),kA=EN.handleEllipse,Ede=EN.readPaths,kde=_3().newShapes,Cde=eA(),Lde=MA().activateLastSelection,U3=Ur(),Dde=U3.sorterAsc,kN=EA(),Fm=t2(),Zl=Sn().getFromId,Fde=h3(),qde=N3().redrawReglTraces,H3=yN(),qf=H3.MINSELECT,Rde=kN.filter,qA=kN.tester,RA=y3(),_N=RA.p2r,Pde=RA.axValue,Nde=RA.getTransform;function PA(e){return e.subplot!==void 0}function Ide(e,r,t,a,n){var i=!PA(a),o=Mde(n),l=Sde(n),s=DA(n),f=Rm(n),u=FA(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,y=p._fullLayout,m=u&&y.newselection.mode==="immediate"&&i,b=y._zoomlayer,A=a.element.getBoundingClientRect(),_=a.plotinfo,x=Nde(_),T=r-A.left,E=t-A.top;y._calcInverseTransform(p);var M=U3.apply3DTransform(y._invTransform)(T,E);T=M[0],E=M[1];var C=y._invScaleX,F=y._invScaleY,I=T,O=E,q="M"+T+","+E,H=a.xaxes[0],X=a.yaxes[0],le=H._length,ae=X._length,Q=e.altKey&&!(Rm(n)&&s),Z,J,ie,ue,De,Ie,Ee;LN(e,p,a),o&&(Z=Rde([[T,E]],H3.BENDPX));var Ze=b.selectAll("path.select-outline-"+_.id).data([1]),Ae=f?y.newshape:y.newselection;f&&(a.hasText=Ae.label.text||Ae.label.texttemplate);var ir=f&&!s?Ae.fillcolor:"rgba(0,0,0,0)",Ge=Ae.line.color||(i?Dm.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");Ze.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:f?Ae.opacity/2:1,"stroke-dasharray":wde(Ae.line.dash,Ae.line.width),"stroke-width":Ae.line.width+"px","shape-rendering":"crispEdges"}).call(Dm.stroke,Ge).call(Dm.fill,ir).attr("fill-rule","evenodd").classed("cursor-move",!!f).attr("transform",x).attr("d",q+"Z");var Qe=b.append("path").attr("class","zoombox-corners").style({fill:Dm.background,stroke:Dm.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(f&&a.hasText){var He=b.select(".label-temp");He.empty()&&(He=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Ve=y._uid+H3.SELECTID,ee=[],me=V3(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var je=H._id,vr=X._id;PN(p,je,vr,me);for(var rr=(p.layout||{}).selections||[],Cr=[],Lr=!1,_r=0;_r=0){p._fullLayout._deactivateShape(p);return}if(!f){var rr=y.clickmode;Fm.done(Ve).then(function(){if(Fm.clear(Ve),je===2){for(Ze.remove(),De=0;De-1&&CN(vr,p,a.xaxes,a.yaxes,a.subplot,a,Ze),rr==="event"&&Im(p,void 0);Ade.click(p,vr,_.id)}).catch(U3.error)}},a.doneFn=function(){Qe.remove(),Fm.done(Ve).then(function(){Fm.clear(Ve),!m&&ue&&a.selectionDefs&&(ue.subtract=Q,a.selectionDefs.push(ue),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,ie)),(m||f)&&Pm(a,m),a.doneFnCompleted&&a.doneFnCompleted(ee),u&&Im(p,Ee)}).catch(U3.error)}}function CN(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,f=s.clickmode,u=f.indexOf("event")>-1,c=[],v,d,p,y,m,b,A,_,x,T;if(Ude(l)){LN(e,r,i),v=V3(r,t,a,n);var E=Hde(l,v),M=E.pointNumbers.length>0;if(M?Vde(v,E):Yde(v)&&(A=AN(E))){for(o&&o.remove(),T=0;T=0}function Gde(e){return e._fullLayout._activeSelectionIndex>=0}function Pm(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;zde(n)&&n._fullLayout._deactivateShape(n),Gde(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=Rm(t),s=FA(t);if(l||s){var f=o.selectAll(".select-outline-"+a.id);if(f&&n._fullLayout._outlining){var u;l&&(u=kde(f,e)),u&&qm.call("_guiRelayout",n,{shapes:u});var c;s&&!PA(e)&&(c=Cde(f,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,qm.call("_guiRelayout",n,{selections:c}).then(function(){r&&Lde(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function wN(e){return e._id}function V3(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(wN),o=t.map(wN),l,s,f;for(f=0;f0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Vde(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Nm(e,r,t){var a;for(a=0;a-1&&r;if(!o&&r){var je=TN(e,!0);if(je.length){var vr=je[0].xref,rr=je[0].yref;if(vr&&rr){var Cr=NN(je),Lr=IN([Zl(e,vr,"x"),Zl(e,rr,"y")]);Lr(ee,Cr)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:re&&Im(e,ee),v._reselect=!1}if(!o&&v._deselect){var _r=v._deselect;l=_r.xref,s=_r.yref,Xde(l,s,u)||PN(e,l,s,a),re&&(ee.points.length?Im(e,ee):OA(e)),v._deselect=!1}return{eventData:ee,selectionTesters:t}}function jde(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";zN.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Bm=P((sDe,GN)=>{"use strict";GN.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var Gd=P((uDe,VN)=>{"use strict";var UN=BA(),HN=zi(),Y3=qi(),Kde=$a().templatedArray,fDe=Bm();VN.exports=Kde("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:HN({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:UN.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:UN.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Y3.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Y3.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Y3.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Y3.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:HN({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var zm=P((cDe,YN)=>{"use strict";YN.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var zA=P((vDe,WN)=>{"use strict";WN.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Qc=P((hDe,QN)=>{"use strict";var jN=am().axisHoverFormat,epe=y0().texttemplateAttrs,rpe=y0().hovertemplateAttrs,XN=E0(),tpe=zi(),ape=kc().dash,npe=kc().pattern,ipe=Wa(),ope=zm(),W3=zn().extendFlat,lpe=zA();function ZN(e){return{valType:"any",dflt:0,editType:"calc"}}function JN(e){return{valType:"any",editType:"calc"}}function $N(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}QN.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:ZN("x"),yperiod:ZN("y"),xperiod0:JN("x0"),yperiod0:JN("y0"),xperiodalignment:$N("x"),yperiodalignment:$N("y"),xhoverformat:jN("x"),yhoverformat:jN("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:epe({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:rpe({},{keys:ope.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:W3({},ape,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:lpe(!0),fillgradient:W3({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:npe,marker:W3({symbol:{valType:"enumerated",values:ipe.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:W3({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},XN("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},XN("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:tpe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var GA=P((pDe,rI)=>{"use strict";var KN=Gd(),eI=Qc().line,spe=kc().dash,j3=zn().extendFlat,fpe=Ls().overrideAll,upe=$a().templatedArray,dDe=Bm();rI.exports=fpe(upe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:j3({},KN.xref,{}),yref:j3({},KN.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:eI.color,width:j3({},eI.width,{min:1,dflt:1}),dash:j3({},spe,{dflt:"dot"})}}),"arraydraw","from-root")});var iI=P((mDe,nI)=>{"use strict";var tI=Ur(),X3=mn(),cpe=gl(),vpe=GA(),aI=Jc();nI.exports=function(r,t){cpe(r,t,{name:"selections",handleItemDefaults:hpe});for(var a=t.selections,n=0;n{"use strict";oI.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Gm=P((gDe,uI)=>{"use strict";var dpe=Bt(),sI=Ur(),fI=Sn();uI.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=dpe.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,f=s.xaxis,u=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var cI=MA(),Um=BN();vI.exports={moduleType:"component",name:"selections",layoutAttributes:GA(),supplyLayoutDefaults:iI(),supplyDrawNewSelectionDefaults:lI(),includeBasePlot:Gm()("selections"),draw:cI.draw,drawOne:cI.drawOne,reselect:Um.reselect,prepSelect:Um.prepSelect,clearOutline:Um.clearOutline,clearSelectionsCache:Um.clearSelectionsCache,selectOnClick:Um.selectOnClick}});var qI=P((xDe,FI)=>{"use strict";var WA=ha(),Jl=Ur(),hI=Jl.numberFormat,ppe=ks(),mpe=Tw(),Z3=Bt(),wI=Jl.strTranslate,ype=po(),dI=va(),Kc=Wa(),gpe=Wc(),pI=mn(),bpe=Yc(),xpe=Ns(),AI=jc(),J3=AI.selectingOrDrawing,_pe=AI.freeMode,wpe=ho().FROM_TL,Ape=h3(),Tpe=N3().redrawReglTraces,Mpe=bi(),HA=Sn().getFromId,Spe=Ud().prepSelect,Epe=Ud().clearOutline,kpe=Ud().selectOnClick,UA=yA(),jA=qi(),mI=jA.MINDRAG,Ro=jA.MINZOOM,yI=!0;function Cpe(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,f=o+l==="nsew",u=(o+l).length===1,c,v,d,p,y,m,b,A,_,x,T,E,M,C,F,I,O,q,H,X,le,ae,Q;t+=r.yaxis._shift;function Z(){if(c=r.xaxis,v=r.yaxis,_=c._length,x=v._length,b=c._offset,A=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var Fe=r.overlays,hr=0;hr=0){Ir._fullLayout._deactivateShape(Ir);return}var at=Ir._fullLayout.clickmode;if(YA(Ir),Fe===2&&!u&&Vr(),f)at.indexOf("select")>-1&&kpe(hr,Ir,y,m,r.id,ue),at.indexOf("event")>-1&&gpe.click(Ir,hr,r.id);else if(Fe===1&&u){var Yr=o?v:c,nt=o==="s"||l==="w"?0:1,vt=Yr._name+".range["+nt+"]",ot=Lpe(Yr,nt),et="left",pr="middle";if(Yr.fixedrange)return;o?(pr=o==="n"?"top":"bottom",Yr.side==="right"&&(et="right")):l==="e"&&(et="right"),Ir._context.showAxisRangeEntryBoxes&&WA.select(ie).call(ype.makeEditable,{gd:Ir,immediate:!0,background:Ir._fullLayout.paper_bgcolor,text:String(ot),fill:Yr.tickfont?Yr.tickfont.color:"#444",horizontalAlign:et,verticalAlign:pr}).on("edit",function(Se){var Oe=Yr.d2r(Se);Oe!==void 0&&Z3.call("_guiRelayout",Ir,vt,Oe)})}}xpe.init(ue);var Ee,Ze,Ae,ir,Ge,Qe,He,Ve,ee,me;function re(Fe,hr,Ir){var at=ie.getBoundingClientRect();Ee=hr-at.left,Ze=Ir-at.top,e._fullLayout._calcInverseTransform(e);var Yr=Jl.apply3DTransform(e._fullLayout._invTransform)(Ee,Ze);Ee=Yr[0],Ze=Yr[1],Ae={l:Ee,r:Ee,w:0,t:Ze,b:Ze,h:0},ir=e._hmpixcount?e._hmlumcount/e._hmpixcount:ppe(e._fullLayout.plot_bgcolor).getLuminance(),Ge="M0,0H"+_+"V"+x+"H0V0",Qe=!1,He="xy",me=!1,Ve=SI(s,ir,b,A,Ge),ee=EI(s,b,A)}function je(Fe,hr){if(e._transitioningWithDuration)return!1;var Ir=Math.max(0,Math.min(_,ae*Fe+Ee)),at=Math.max(0,Math.min(x,Q*hr+Ze)),Yr=Math.abs(Ir-Ee),nt=Math.abs(at-Ze);Ae.l=Math.min(Ee,Ir),Ae.r=Math.max(Ee,Ir),Ae.t=Math.min(Ze,at),Ae.b=Math.max(Ze,at);function vt(){He="",Ae.r=Ae.l,Ae.t=Ae.b,ee.attr("d","M0,0Z")}if(T.isSubplotConstrained)Yr>Ro||nt>Ro?(He="xy",Yr/_>nt/x?(nt=Yr*x/_,Ze>at?Ae.t=Ze-nt:Ae.b=Ze+nt):(Yr=nt*_/x,Ee>Ir?Ae.l=Ee-Yr:Ae.r=Ee+Yr),ee.attr("d",$3(Ae))):vt();else if(E.isSubplotConstrained)if(Yr>Ro||nt>Ro){He="xy";var ot=Math.min(Ae.l/_,(x-Ae.b)/x),et=Math.max(Ae.r/_,(x-Ae.t)/x);Ae.l=ot*_,Ae.r=et*_,Ae.b=(1-ot)*x,Ae.t=(1-et)*x,ee.attr("d",$3(Ae))}else vt();else!C||nt0){var Se;if(E.isSubplotConstrained||!M&&C.length===1){for(Se=0;Se1&&(vt.maxallowed!==void 0&&I===(vt.range[0]1&&(ot.maxallowed!==void 0&&O===(ot.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Fpe(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function SI(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",wI(t,a)).attr("d",n+"Z")}function EI(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:dI.background,stroke:dI.defaultLine,"stroke-width":1,opacity:0}).attr("transform",wI(r,t)).attr("d","M0,0Z")}function kI(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),CI(e,r,n,i)}function CI(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function YA(e){WA.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function LI(e){yI&&e.data&&e._context.showTips&&(Jl.notifier(Jl._(e,"Double-click to zoom back out"),"long"),yI=!1)}function qpe(e,r){return"M"+(e.l-.5)+","+(r-Ro-.5)+"h-3v"+(2*Ro+1)+"h3ZM"+(e.r+.5)+","+(r-Ro-.5)+"h3v"+(2*Ro+1)+"h-3Z"}function Rpe(e,r){return"M"+(r-Ro-.5)+","+(e.t-.5)+"v-3h"+(2*Ro+1)+"v3ZM"+(r-Ro-.5)+","+(e.b+.5)+"v3h"+(2*Ro+1)+"v-3Z"}function $3(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ro)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function xI(e,r,t,a,n){for(var i=!1,o={},l={},s,f,u,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var Ppe=ha(),Q3=Wc(),Npe=Ns(),Ipe=Yc(),Bs=qI().makeDragBox,Ai=qi().DRAGGERSIZE;K3.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Ppe.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var f=Bs(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");f.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Q3.hover(r,v,i)},Q3.hover(r,v,i),r._fullLayout._lasthover=f,r._fullLayout._hoversubplot=i},f.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,Npe.unhover(r,v))},r._context.showAxisDragHandles&&(Bs(r,o,l._offset-Ai,s._offset-Ai,Ai,Ai,"n","w"),Bs(r,o,l._offset+l._length,s._offset-Ai,Ai,Ai,"n","e"),Bs(r,o,l._offset-Ai,s._offset+s._length,Ai,Ai,"s","w"),Bs(r,o,l._offset+l._length,s._offset+s._length,Ai,Ai,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var u=l._mainLinePosition;l.side==="top"&&(u-=Ai),Bs(r,o,l._offset+l._length*.1,u,l._length*.8,Ai,"","ew"),Bs(r,o,l._offset,u,l._length*.1,Ai,"","w"),Bs(r,o,l._offset+l._length*.9,u,l._length*.1,Ai,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Ai),Bs(r,o,c,s._offset+s._length*.1,Ai,s._length*.8,"ns",""),Bs(r,o,c,s._offset+s._length*.9,Ai,s._length*.1,"s",""),Bs(r,o,c,s._offset,Ai,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Q3.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Q3.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},K3.updateFx(r)}};K3.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";Ipe(r._draggers,t)}});var NI=P((wDe,PI)=>{"use strict";var RI=Bt();PI.exports=function(r){for(var t=RI.layoutArrayContainers,a=RI.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var Ope=Mc(),ZA=Gg(),Hm=m0(),Bpe=U5().sorterAsc,JA=Bt();Vm.containerArrayMatch=NI();var zpe=Vm.isAddVal=function(r){return r==="add"||Ope(r)},II=Vm.isRemoveVal=function(r){return r===null||r==="remove"};Vm.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=JA.getComponentMethod(o,"supplyLayoutDefaults"),s=JA.getComponentMethod(o,"draw"),f=JA.getComponentMethod(o,"drawOne"),u=n.replot||n.recalc||l===ZA||s===ZA,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Hm.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(II(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Hm.warn("Unrecognized full array edit value",o,d),!0;return u?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(Bpe),y=t.get(),m=y||[],b=i(v,o).get(),A=[],_=-1,x=m.length,T,E,M,C,F,I,O,q;for(T=0;Tm.length-(O?0:1)){Hm.warn("index out of range",o,M);continue}if(I!==void 0)F.length>1&&Hm.warn("Insertion & removal are incompatible with edits to the same index.",o,M),II(I)?A.push(M):O?(I==="add"&&(I={}),m.splice(M,0,I),b&&b.splice(M,0,{})):Hm.warn("Unrecognized full object edit value",o,M,I),_===-1&&(_=M);else for(E=0;E=0;T--)m.splice(A[T],1),b&&b.splice(A[T],1);if(m.length?y||t.set(m):t.set(null),u)return!1;if(l(c,v),f!==ZA){var H;if(_===-1)H=p;else{for(x=Math.max(m.length,x),H=[],T=0;T=_));T++)H.push(M);for(T=_;T{"use strict";var UI=ga(),HI=Bt(),xo=Ur(),Ym=bi(),VI=Sn(),YI=va(),Wm=VI.cleanId,Gpe=VI.getFromTrace,$A=HI.traceIs,Upe=["x","y","z"];$l.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&xo.log("Clearing previous rejected promises from queue."),e._promises=[]};$l.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Ym.subplotsRegistry.cartesian||{}).attrRegex,n=(Ym.subplotsRegistry.polar||{}).attrRegex,i=(Ym.subplotsRegistry.ternary||{}).attrRegex,o=(Ym.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),YI.clean(e),e.template&&e.template.layout&&$l.cleanLayout(e.template.layout),e};function Hd(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=Wm(t,a,!0))}$l.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}$l.hasParent=function(e,r){for(var t=GI(r);t;){if(t in e)return!0;t=GI(t)}return!1};$l.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>xo.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;axo.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?QA(n,i):!1))return!1}return!0}return!1};$l.collectionsAreEqual=QA});var n6=P(da=>{"use strict";var ab=ha(),Ype=ga(),Wpe=r4(),bt=Ur(),en=bt.nestedProperty,r6=J1(),Po=TC(),Ql=Bt(),ub=cd(),zt=bi(),_o=mn(),jpe=Aw(),Xpe=Ul(),KA=Wa(),Zpe=va(),Jpe=XA().initInteractions,$pe=Oc(),Qpe=Ud().clearOutline,$I=p0().dfltConfig,rb=OI(),Vn=WI(),za=N3(),ev=Ls(),Kpe=qi().AX_NAME_PATTERN,e6=0,jI=5;function e1e(e,r,t,a){var n;if(e=bt.getGraphDiv(e),r6.init(e),bt.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=r6.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!bt.isPlotDiv(e)&&bt.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return da.addFrames(e,n)}KI(e,a),t||(t={}),ab.select(e).classed("js-plotly-plot",!0),KA.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Vn.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Vn.cleanLayout(t)),zt.supplyDefaults(e);var f=e._fullLayout,u=f._has("cartesian");f._replotting=!0,(s||f._shouldCreateBgLayer)&&(A1e(e),f._shouldCreateBgLayer&&delete f._shouldCreateBgLayer),KA.initGradients(e),KA.initPatterns(e),s&&_o.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&zt.doCalcdata(e);for(var v=0;v=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function eO(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),ib(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&ib(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function i1e(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&u=0&&u0&&typeof C.parts[O]!="string";)O--;var q=C.parts[O],H=C.parts[O-1]+"."+q,X=C.parts.slice(0,O).join("."),le=en(e.layout,X).get(),ae=en(a,X).get(),Q=C.get();if(F!==void 0){b[M]=F,A[M]=q==="reverse"?F:Pu(Q);var Z=ub.getLayoutValObject(a,C.parts);if(Z&&Z.impliedEdits&&F!==null)for(var J in Z.impliedEdits)_(bt.relativeAttr(M,J),Z.impliedEdits[J]);if(["width","height"].indexOf(M)!==-1)if(F){_("autosize",null);var ie=M==="height"?"width":"height";_(ie,a[ie])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",F?null:a.width),_("height",F?null:a.height);else if(H.match(fO))E(H),en(a,X+"._inputRange").set(null);else if(H.match(uO)){E(H),en(a,X+"._inputRange").set(null);var ue=en(a,X).get();ue._inputDomain&&(ue._input.domain=ue._inputDomain.slice())}else H.match(f1e)&&en(a,X+"._inputDomain").set(null);if(q==="type"){T=le;var De=ae.type==="linear"&&F==="log",Ie=ae.type==="log"&&F==="linear";if(De||Ie){if(!T||!T.range)_(X+".autorange",!0);else if(ae.autorange)De&&(T.range=T.range[1]>T.range[0]?[1,2]:[2,1]);else{var Ee=T.range[0],Ze=T.range[1];De?(Ee<=0&&Ze<=0&&_(X+".autorange",!0),Ee<=0?Ee=Ze/1e6:Ze<=0&&(Ze=Ee/1e6),_(X+".range[0]",Math.log(Ee)/Math.LN10),_(X+".range[1]",Math.log(Ze)/Math.LN10)):(_(X+".range[0]",Math.pow(10,Ee)),_(X+".range[1]",Math.pow(10,Ze)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[C.parts[0]]&&C.parts[1]==="radialaxis"&&delete a[C.parts[0]]._subplot.viewInitial["radialaxis.range"],Ql.getComponentMethod("annotations","convertCoords")(e,ae,F,_),Ql.getComponentMethod("images","convertCoords")(e,ae,F,_)}else _(X+".autorange",!0),_(X+".range",null);en(a,X+"._inputRange").set(null)}else if(q.match(Kpe)){var Ae=en(a,M).get(),ir=(F||{}).type;(!ir||ir==="-")&&(ir="linear"),Ql.getComponentMethod("annotations","convertCoords")(e,Ae,ir,_),Ql.getComponentMethod("images","convertCoords")(e,Ae,ir,_)}var Ge=rb.containerArrayMatch(M);if(Ge){u=Ge.array,c=Ge.index;var Qe=Ge.property,He=Z||{editType:"calc"};c!==""&&Qe===""&&(rb.isAddVal(F)?A[M]=null:rb.isRemoveVal(F)?A[M]=(en(t,u).get()||[])[c]:bt.warn("unrecognized full object value",r)),ev.update(m,He),f[u]||(f[u]={});var Ve=f[u][c];Ve||(Ve=f[u][c]={}),Ve[Qe]=F,delete r[M]}else q==="reverse"?(le.range?le.range.reverse():(_(X+".autorange",!0),le.range=[1,0]),ae.autorange?m.calc=!0:m.plot=!0):(M==="dragmode"&&(F===!1&&Q!==!1||F!==!1&&Q===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(F==="lasso"||F==="select")&&!(Q==="lasso"||Q==="select")?m.plot=!0:Z?ev.update(m,Z):m.calc=!0,C.set(F))}}for(u in f){var ee=rb.applyContainerArrayChanges(e,i(t,u),f[u],m,i);ee||(m.plot=!0)}for(var me in x){T=_o.getFromId(e,me);var re=T&&T._constraintGroup;if(re){m.calc=!0;for(var je in re)x[je]||(_o.getFromId(e,je)._constraintShrinkable=!0)}}(vO(e)||r.height||r.width)&&(m.plot=!0);var vr=a.shapes;for(c=0;c1;)if(a.pop(),t=en(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function v1e(e,r){for(var t=0;t[X,e._ev.listeners(X)]);i=da.newPlot(e,r,t,a).then(()=>{for(let[X,le]of H)le.forEach(ae=>e.on(X,ae));return da.react(e,r,t,a)})}else{e.data=r||[],Vn.cleanData(e.data),e.layout=t||{},Vn.cleanLayout(e.layout),d1e(e.data,e.layout,l,s),zt.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,d=v.datarevision===void 0,p=v.transition,y=y1e(e,s,v,d,p),m=y.newDataRevision,b=m1e(e,l,c,d,p,m);if(vO(e)&&(y.layoutReplot=!0),b.calc||y.calc){e.calcdata=void 0;for(var A=Object.getOwnPropertyNames(v),_=0;_(u||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function m1e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=ev.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,f;function u(d){var p=ub.getTraceValObject(f,d);return!f._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:u,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s=n.length?n[0]:n[f]:n}function l(f){return Array.isArray(i)?f>=i.length?i[0]:i[f]:i}function s(f,u){var c=0;return function(){if(f&&++c===u)return f()}}return new Promise(function(f,u){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var q=a._frameQueue.pop();q.onInterrupt&&q.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(q){if(q.length!==0){for(var H=0;Ha._timeToNext&&p()};q()}var m=0;function b(q){return Array.isArray(n)?m>=n.length?q.transitionOpts=n[m]:q.transitionOpts=n[0]:q.transitionOpts=n,m++,q}var A,_,x=[],T=r==null,E=Array.isArray(r),M=!T&&!E&&bt.isPlainObject(r);if(M)x.push({type:"object",data:b(bt.extendFlat({},r))});else if(T||["string","number"].indexOf(typeof r)!==-1)for(A=0;A0&&II)&&O.push(_);x=O}}x.length>0?v(x):(e.emit("plotly_animated"),f())})}function b1e(e,r,t){if(e=bt.getGraphDiv(e),r==null)return Promise.resolve();if(!bt.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var f=l.length+r.length*2,u=[],c={};for(a=r.length-1;a>=0;a--)if(bt.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,y=s[d]||c[d];d&&p&&typeof p=="number"&&y&&e6C.index?-1:M.index=0;a--){if(n=u[a].frame,typeof n.name=="number"&&bt.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=zt.modifyFrames,s=zt.modifyFrames,f=[e,o],u=[e,i];return Po&&Po.add(e,l,f,s,u),zt.modifyFrames(e,i)}function _1e(e){e=bt.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return zt.cleanPlot([],{},t,r),zt.purge(e),r6.purge(e),r._container&&r._container.remove(),delete e._context,e}function w1e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!bt.equalDomRects(t,r._lastBBox)){var a=r._invTransform=bt.inverseTransformMatrix(bt.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function A1e(e){var r=ab.select(e),t=e._fullLayout;if(t._calcInverseTransform=w1e,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};ab.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=bt.randstr(a)}t._paperdiv.selectAll(".main-svg").attr($pe.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}da.animate=g1e;da.addFrames=b1e;da.deleteFrames=x1e;da.addTraces=iO;da.deleteTraces=oO;da.extendTraces=aO;da.moveTraces=t6;da.prependTraces=nO;da.newPlot=n1e;da._doPlot=e1e;da.purge=_1e;da.react=p1e;da.redraw=a1e;da.relayout=jm;da.restyle=ob;da.setPlotConfig=r1e;da.update=sb;da._guiRelayout=a6(jm);da._guiRestyle=a6(ob);da._guiUpdate=a6(sb);da._storeDirectGUIEdit=s1e});var Y0=P(Rf=>{"use strict";var T1e=Bt();Rf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Rf.getRedrawFunc=function(e){return function(){T1e.getComponentMethod("colorbar","draw")(e)}};Rf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Rf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var hO=window.URL||window.webkitURL;Rf.createObjectURL=function(e){return hO.createObjectURL(e)};Rf.revokeObjectURL=function(e){return hO.revokeObjectURL(e)};Rf.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=M1e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Rf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function M1e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var o6=ha(),EDe=Ur(),S1e=Wa(),E1e=va(),kDe=Oc(),i6=/"/g,Zm="TOBESTRIPPED",k1e=new RegExp('("'+Zm+")|("+Zm+'")',"g");function C1e(e){var r=o6.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function L1e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}dO.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,f;i.insert("rect",":first-child").call(S1e.setRect,0,0,l,s).call(E1e.fill,n.paper_bgcolor);var u=n._basePlotModules||[];for(f=0;f{"use strict";var D1e=Ur(),F1e=f2().EventEmitter,Jm=Y0();function q1e(e){var r=e.emitter||new F1e,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,f=e.scale||1,u=e.width||300,c=e.height||150,v=f*u,d=f*c,p=s.getContext("2d",{willReadFrequently:!0}),y=new i,m,b;l==="svg"||D1e.isSafari()?b=Jm.encodeSVG(o):(m=Jm.createBlob(o,"svg"),b=Jm.createObjectURL(m)),s.width=v,s.height=d,y.onload=function(){var A;switch(m=null,Jm.revokeObjectURL(b),l!=="svg"&&p.drawImage(y,0,0,v,d),l){case"jpeg":A=s.toDataURL("image/jpeg");break;case"png":A=s.toDataURL("image/png");break;case"webp":A=s.toDataURL("image/webp");break;case"svg":A=b;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return r.emit("error",_)}a(A),e.promise||r.emit("success",A)},y.onerror=function(A){if(m=null,Jm.revokeObjectURL(b),n(A),!e.promise)return r.emit("error",A)},y.src=b});return e.promise?t:r}pO.exports=q1e});var s6=P((DDe,gO)=>{"use strict";var mO=ga(),yO=n6(),R1e=bi(),Pf=Ur(),$m=Y0(),P1e=vb(),N1e=hb(),I1e=Mg().version,l6={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function O1e(e,r){r=r||{};var t,a,n,i;Pf.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Pf.getGraphDiv(e),t=Pf.extendDeep([],e.data),a=Pf.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(E){return!(E in r)||Pf.validate(r[E],l6[E])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Pf.join2(l6.format.values,", "," or ")+".");var l={};function s(E,M){return Pf.coerce(r,l,l6,E,M)}var f=s("format"),u=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var m=Pf.extendFlat({},a);u?m.width=u:r.width===null&&mO(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&mO(i.height)&&(m.height=i.height);var b=Pf.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),A=$m.getRedrawFunc(y);function _(){return new Promise(function(E){setTimeout(E,$m.getDelay(y._fullLayout))})}function x(){return new Promise(function(E,M){var C=P1e(y,f,v),F=y._fullLayout.width,I=y._fullLayout.height;function O(){yO.purge(y),document.body.removeChild(y)}if(f==="full-json"){var q=R1e.graphJson(y,!1,"keepdata","object",!0,!0);return q.version=I1e,q=JSON.stringify(q),O(),E(p?q:$m.encodeJSON(q))}if(O(),f==="svg")return E(p?C:$m.encodeSVG(C));var H=document.createElement("canvas");H.id=Pf.randstr(),N1e({format:f,width:F,height:I,scale:v,canvas:H,svg:C,promise:!0}).then(E).catch(M)})}function T(E){return p?E.replace($m.IMAGE_URL_PREFIX,""):E}return new Promise(function(E,M){yO.newPlot(y,t,m,b).then(A).then(_).then(x).then(function(C){E(T(C))}).catch(function(C){M(C)})})}gO.exports=O1e});var _O=P((FDe,xO)=>{"use strict";var Kl=Ur(),B1e=bi(),z1e=cd(),G1e=p0().dfltConfig,zs=Kl.isPlainObject,j0=Array.isArray,f6=Kl.isArrayOrTypedArray;xO.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=z1e.get(),n=[],i={_context:Kl.extendFlat({},G1e)},o,l;j0(r)?(i.data=Kl.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Ti("array","data"))),zs(t)?(i.layout=Kl.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Ti("object","layout"))),B1e.supplyDefaults(i);for(var s=i._fullData,f=o.length,u=0;uc.length&&a.push(Ti("unused",n,f.concat(c.length)));var b=c.length,A=Array.isArray(m);A&&(b=Math.min(b,m.length));var _,x,T,E,M;if(v.dimensions===2)for(x=0;xc[x].length&&a.push(Ti("unused",n,f.concat(x,c[x].length)));var C=c[x].length;for(_=0;_<(A?Math.min(C,m[x].length):C);_++)T=A?m[x][_]:m,E=u[x][_],M=c[x][_],Kl.validate(E,T)?M!==E&&M!==+E&&a.push(Ti("dynamic",n,f.concat(x,_),E,M)):a.push(Ti("value",n,f.concat(x,_),E))}else a.push(Ti("array",n,f.concat(x),u[x]));else for(x=0;x{"use strict";var X1e=Ur(),pb=Y0();function Z1e(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,f;if(n)return s=pb.createBlob(e,t),f=pb.createObjectURL(s),a.href=f,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),pb.revokeObjectURL(f),s=null,o(r);if(X1e.isSafari()){var u=t==="svg"?",":";base64,";return pb.octetStream(u+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}wO.exports=Z1e});var u6=P((PDe,MO)=>{"use strict";var TO=Ur(),J1e=s6(),$1e=AO(),RDe=Y0();function Q1e(e,r){var t;return TO.isPlainObject(e)||(t=TO.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=J1e(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),$1e(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}MO.exports=Q1e});var LO=P(c6=>{"use strict";var el=Ur(),rl=el.isPlainObject,SO=cd(),EO=bi(),K1e=Cs(),kO=$a(),CO=p0().dfltConfig;c6.makeTemplate=function(e){e=el.isPlainObject(e)?e:el.getGraphDiv(e),e=el.extendDeep({_context:CO},{data:e.data,layout:e.layout}),EO.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};Qm(d,p,rme.bind(null,d));var y=el.coerce(d,{},K1e,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),Qm(t,a.layout,eme.bind(null,t)),delete a.layout.template;var n=t.template;if(rl(n)){var i=n.layout,o,l,s,f,u,c;rl(i)&&mb(i,a.layout);var v=n.data;if(rl(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(u=a.data[l],c=u.length,f=s.length,o=0;ob?o.push({code:"unused",traceType:d,templateCount:m,dataCount:b}):b>m&&o.push({code:"reused",traceType:d,templateCount:m,dataCount:b})}}function A(_,x){for(var T in _)if(T.charAt(0)!=="_"){var E=_[T],M=es(_,T,x);rl(E)?(Array.isArray(_)&&E._template===!1&&E.templateitemname&&o.push({code:"missing",path:M,templateitemname:E.templateitemname}),A(E,M)):Array.isArray(E)&&tme(E)&&A(E,M)}}if(A({data:s,layout:l},""),o.length)return o.map(ame)};function tme(e){for(var r=0;r{"use strict";var ci=n6();gn._doPlot=ci._doPlot;gn.newPlot=ci.newPlot;gn.restyle=ci.restyle;gn.relayout=ci.relayout;gn.redraw=ci.redraw;gn.update=ci.update;gn._guiRestyle=ci._guiRestyle;gn._guiRelayout=ci._guiRelayout;gn._guiUpdate=ci._guiUpdate;gn._storeDirectGUIEdit=ci._storeDirectGUIEdit;gn.react=ci.react;gn.extendTraces=ci.extendTraces;gn.prependTraces=ci.prependTraces;gn.addTraces=ci.addTraces;gn.deleteTraces=ci.deleteTraces;gn.moveTraces=ci.moveTraces;gn.purge=ci.purge;gn.addFrames=ci.addFrames;gn.deleteFrames=ci.deleteFrames;gn.animate=ci.animate;gn.setPlotConfig=ci.setPlotConfig;var nme=G1().getGraphDiv,ime=C3().eraseActiveShape;gn.deleteActiveShape=function(e){return ime(nme(e))};gn.toImage=s6();gn.validate=_O();gn.downloadImage=u6();var DO=LO();gn.makeTemplate=DO.makeTemplate;gn.validateTemplate=DO.validateTemplate});var h6=P((ODe,qO)=>{"use strict";var v6=Ur(),ome=Bt();qO.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=ome.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var f=v6.minRowLength(i);o?l=Math.min(f,v6.minRowLength(o)):(l=f,n("y0"),n("dy"))}else{if(!o)return 0;l=v6.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var d6=P((BDe,NO)=>{"use strict";var RO=Ur().dateTick0,lme=Kn(),sme=lme.ONEWEEK;function PO(e,r){return e%sme===0?RO(r,1):RO(r,0)}NO.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",PO(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",PO(l,t.ycalendar)),n("yperiodalignment"))}}});var BO=P((zDe,OO)=>{"use strict";var IO=["orientation","groupnorm","stackgaps"];OO.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var f=s[o],u=!1;f?f.traces.push(t):(f=s[o]={traceIndices:[],traces:[t]},u=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var zO=va(),GO=Rs().hasColorscale,UO=pd(),fme=Ri();HO.exports=function(r,t,a,n,i,o){var l=fme.isBubble(r),s=(r.line||{}).color,f;if(o=o||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),GO(r,"marker")&&UO(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?f=s:l?f=zO.background:f=zO.defaultLine,i("marker.line.color",f),GO(r,"marker.line")&&UO(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0)),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var u=i("marker.gradient.type");u!=="none"&&i("marker.gradient.color")}}});var p6=P((UDe,VO)=>{"use strict";var ume=Ur().isArrayOrTypedArray,cme=Rs().hasColorscale,vme=pd();VO.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),cme(r,"line"))vme(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(ume(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var WO=P((HDe,YO)=>{"use strict";YO.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var m6=P((VDe,jO)=>{"use strict";var hme=Ur();jO.exports=function(e,r,t,a,n){n=n||{},a("textposition"),hme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var y6=P((YDe,ZO)=>{"use strict";var bb=va(),XO=Ur().isArrayOrTypedArray;function dme(e){for(var r=bb.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var JO=Ur(),pme=Bt(),mme=Qc(),yme=zm(),Vd=Ri(),gme=h6(),bme=d6(),xme=BO(),_me=gb(),wme=p6(),$O=WO(),Ame=m6(),Tme=y6(),Mme=Ur().coercePattern;QO.exports=function(r,t,a,n){function i(d,p){return JO.coerce(r,t,mme,d,p)}var o=gme(r,t,n,i);if(o||(t.visible=!1),!!t.visible){bme(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=xme(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var Sme=Am().getAxisGroup;eB.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=Sme(a,l)+o,f=a._alignmentOpts||{},u=n("alignmentgroup"),c=f[s];c||(c=f[s]={});var v=c[u];v?v.traces.push(t):v=c[u]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,y=p[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=y.offsetIndex)}});var g6=P((XDe,tB)=>{"use strict";var Eme=Ur(),kme=rB(),Cme=Qc();tB.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return Eme.coerce(n._input,n,Cme,v)}if(t.scattermode==="group")for(i=0;i=0;u--){var c=r[u];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var nB=P((ZDe,aB)=>{"use strict";var Lme=Ur(),Dme=d2();aB.exports=function(e,r){function t(n,i){return Lme.coerce(e,r,Dme,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var b6=P((JDe,oB)=>{"use strict";var Fme=ga(),iB=Ur(),qme=iB.dateTime2ms,xb=iB.incrementMonth,Rme=Kn(),Pme=Rme.ONEAVGMONTH;oB.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(Fme(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var f=t.calendar,u=i==="start",c=i==="end",v=r[a+"period0"],d=qme(v,f)||0,p=[],y=[],m=[],b=n.length,A=0;A_;)E=xb(E,-l,f);for(;E<=_;)E=xb(E,l,f);T=xb(E,-l,f)}else{for(x=Math.round((_-d)/o),E=d+x*o;E>_;)E-=o;for(;E<=_;)E+=o;T=E-o}p[A]=u?T:c?E:(T+E)/2,y[A]=T,m[A]=E}return{vals:p,starts:y,ends:m}}});var Km=P(($De,sB)=>{"use strict";var x6=Rs().hasColorscale,_6=N4(),lB=Ri();sB.exports=function(r,t){lB.hasLines(t)&&x6(t,"line")&&_6(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),lB.hasMarkers(t)&&(x6(t,"marker")&&_6(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),x6(t,"marker.line")&&_6(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var w6=P((QDe,fB)=>{"use strict";var Nn=Ur();fB.exports=function(r,t){for(var a=0;a{"use strict";var uB=Ur();cB.exports=function(r,t){uB.isArrayOrTypedArray(t.selectedpoints)&&uB.tagSelected(r,t)}});var Yd=P((eFe,bB)=>{"use strict";var hB=ga(),T6=Ur(),ey=mn(),dB=b6(),A6=Kn().BADNUM,M6=Ri(),Nme=Km(),Ime=w6(),Ome=vB();function Bme(e,r){var t=e._fullLayout,a=r._xA=ey.getFromId(e,r.xaxis||"x","x"),n=r._yA=ey.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=dB(r,a,"x",i),s=dB(r,n,"y",o),f=l.vals,u=s.vals,c=r._length,v=new Array(c),d=r.ids,p=S6(r,t,a,n),y=!1,m,b,A,_,x,T;yB(t,r);var E="x",M="y",C;if(p)T6.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(M="s",C="x"):(E="s",C="y"),x=p.stackgaps==="interpolate";else{var F=mB(r,c);pB(e,r,a,n,f,u,F)}var I=!!r.xperiodalignment,O=!!r.yperiodalignment;for(b=0;bb&&v[_].gap;)_--;for(T=v[_].s,A=v.length-1;A>_;A--)v[A].s=T;for(;b<_;)if(b++,v[b].gap){for(A=b+1;v[A].gap;)A++;for(var le=v[b-1][C],ae=v[b-1].s,Q=(v[A].s-ae)/(v[A][C]-le);b{"use strict";xB.exports=_b;var zme=Ur().distinctVals;function _b(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var rs=ga(),rv=Ur().isArrayOrTypedArray,Wd=Kn().BADNUM,Gme=Bt(),ry=mn(),Ume=Am().getAxisGroup,wb=_B();function Hme(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],f=0;fs+o||!rs(l))}for(var u=0;u{"use strict";var EB=Yd(),kB=SB().setGroupPositions;function rye(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],f=0;fF[u]&&u{"use strict";var aye=Wa(),RB=Kn(),ty=RB.BADNUM,PB=RB.LOG_CLIP,DB=PB+.5,FB=PB-.5,Ab=Ur(),nye=Ab.segmentsIntersect,qB=Ab.constrain,F6=zm();NB.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,f=i._length,u=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,y=p==="linear",m=a.fill&&a.fill!=="none",b=[],A=F6.minTolerance,_=r.length,x=new Array(_),T=0,E,M,C,F,I,O,q,H,X,le,ae,Q,Z,J,ie,ue;function De(pr){var Se=r[pr];if(!Se)return!1;var Oe=t.linearized?n.l2p(Se.x):n.c2p(Se.x),yr=t.linearized?i.l2p(Se.y):i.c2p(Se.y);if(Oe===ty){if(o&&(Oe=n.c2p(Se.x,!0)),Oe===ty)return!1;l&&yr===ty&&(Oe*=Math.abs(n._m*f*(n._m>0?DB:FB)/(i._m*s*(i._m>0?DB:FB)))),Oe*=1e3}if(yr===ty){if(l&&(yr=i.c2p(Se.y,!0)),yr===ty)return!1;yr*=1e3}return[Oe,yr]}function Ie(pr,Se,Oe,yr){var cr=Oe-pr,xt=yr-Se,At=.5-pr,yt=.5-Se,Nt=cr*cr+xt*xt,ta=cr*At+xt*yt;if(ta>0&&ta1||Math.abs(At.y-Oe[0][1])>1)&&(At=[At.x,At.y],yr&&ir(At,pr)He||pr[1]ee)return[qB(pr[0],Qe,He),qB(pr[1],Ve,ee)]}function rt(pr,Se){if(pr[0]===Se[0]&&(pr[0]===Qe||pr[0]===He)||pr[1]===Se[1]&&(pr[1]===Ve||pr[1]===ee))return!0}function Jr(pr,Se){var Oe=[],yr=Pr(pr),cr=Pr(Se);return yr&&cr&&rt(yr,cr)||(yr&&Oe.push(yr),cr&&Oe.push(cr)),Oe}function wr(pr,Se,Oe){return function(yr,cr){var xt=Pr(yr),At=Pr(cr),yt=[];if(xt&&At&&rt(xt,At))return yt;xt&&yt.push(xt),At&&yt.push(At);var Nt=2*Ab.constrain((yr[pr]+cr[pr])/2,Se,Oe)-((xt||yr)[pr]+(At||cr)[pr]);if(Nt){var ta;xt&&At?ta=Nt>0==xt[pr]>At[pr]?xt:At:ta=xt||At,ta[pr]+=Nt}return yt}}var Hr;p==="linear"||p==="spline"?Hr=_r:p==="hv"||p==="vh"?Hr=Jr:p==="hvh"?Hr=wr(0,Qe,He):p==="vhv"&&(Hr=wr(1,Ve,ee));function Vr(pr,Se){var Oe=Se[0]-pr[0],yr=(Se[1]-pr[1])/Oe,cr=(pr[1]*Se[0]-Se[1]*pr[0])/Oe;return cr>0?[yr>0?Qe:He,ee]:[yr>0?He:Qe,Ve]}function Pe(pr){var Se=pr[0],Oe=pr[1],yr=Se===x[T-1][0],cr=Oe===x[T-1][1];if(!(yr&&cr))if(T>1){var xt=Se===x[T-2][0],At=Oe===x[T-2][1];yr&&(Se===Qe||Se===He)&&xt?At?T--:x[T-1]=pr:cr&&(Oe===Ve||Oe===ee)&&At?xt?T--:x[T-1]=pr:x[T++]=pr}else x[T++]=pr}function sr(pr){x[T-1][0]!==pr[0]&&x[T-1][1]!==pr[1]&&Pe([vr,rr]),Pe(pr),Cr=null,vr=rr=0}var lt=Ab.isArrayOrTypedArray(c);function Et(pr){if(pr&&u&&(pr.i=E,pr.d=r,pr.trace=a,pr.marker=lt?c[pr.i]:c,pr.backoff=u),Ee=pr[0]/s,Ze=pr[1]/f,re=pr[0]He?He:0,je=pr[1]ee?ee:0,re||je){if(!T)x[T++]=[re||pr[0],je||pr[1]];else if(Cr){var Se=Hr(Cr,pr);Se.length>1&&(sr(Se[0]),x[T++]=Se[1])}else Lr=Hr(x[T-1],pr)[0],x[T++]=Lr;var Oe=x[T-1];re&&je&&(Oe[0]!==re||Oe[1]!==je)?(Cr&&(vr!==re&&rr!==je?Pe(vr&&rr?Vr(Cr,pr):[vr||re,rr||je]):vr&&rr&&Pe([vr,rr])),Pe([re,je])):vr-re&&rr-je&&Pe([re||vr,je||rr]),Cr=pr,vr=re,rr=je}else Cr&&sr(Hr(Cr,pr)[0]),x[T++]=pr}for(E=0;E<_;E++)if(M=De(E),!!M){for(T=0,Cr=null,Et(M),E++;E<_;E++){if(F=De(E),!F){if(v)continue;break}if(!y||!t.simplify){Et(F);continue}var wt=De(E+1);if(le=ir(F,M),!(!(m&&(T===0||T===_-1))&&leAe(O,wt))break;C=O,Z=X[0]*H[0]+X[1]*H[1],Z>ae?(ae=Z,F=O,q=!1):Z=r.length||!O)break;Et(O),M=O}}Cr&&Pe([vr||Cr[0],rr||Cr[1]]),b.push(x.slice(0,T))}var Fe=p.slice(p.length-1);if(u&&Fe!=="h"&&Fe!=="v"){for(var hr=!1,Ir=-1,at=[],Yr=0;Yr{"use strict";var OB={tonextx:1,tonexty:1,tonext:1};BB.exports=function(r,t,a){var n,i,o,l,s,f={},u=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var Gs=ha(),iye=Bt(),ay=Ur(),Xd=ay.ensureSingle,GB=ay.identity,In=Wa(),Zd=Ri(),oye=IB(),lye=q6(),Tb=EA().tester;UB.exports=function(r,t,a,n,i,o){var l,s,f=!i,u=!!i&&i.duration>0,c=lye(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),sye(r,l,t),u){o&&(s=o());var v=Gs.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){zB(r,p,t,d,c,this,i)})})}else l.each(function(d,p){zB(r,p,t,d,c,this,i)});f&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function sye(e,r,t){r.each(function(a){var n=Xd(Gs.select(this),"g","fills");In.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,GB);l.enter().append("g"),l.exit().each(function(s){i[s]=null}).remove(),l.order().each(function(s){i[s]=Xd(Gs.select(this),"path","js-fill")})})}function zB(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;fye(e,r,t,a,n);var f=!!o&&o.duration>0;function u(wr){return f?wr.transition():wr}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,y=Gs.select(i),m=Xd(y,"g","errorbars"),b=Xd(y,"g","lines"),A=Xd(y,"g","points"),_=Xd(y,"g","text");if(iye.getComponentMethod("errorbars","plot")(e,m,t,o),d.visible!==!0)return;u(y).style("opacity",d.opacity);var x,T,E=d.fill.charAt(d.fill.length-1);E!=="x"&&E!=="y"&&(E="");var M,C;E==="y"?(M=1,C=v.c2p(0,!0)):E==="x"&&(M=0,C=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var F="",I=[],O=d._prevtrace,q=null,H=null;O&&(F=O._prevRevpath||"",T=O._nextFill,I=O._ownPolygons,q=O._fillsegments,H=O._fillElement);var X,le,ae="",Q="",Z,J,ie,ue,De,Ie,Ee=[];d._polygons=[];var Ze=[],Ae=[],ir=ay.noop;if(x=d._ownFill,Zd.hasLines(d)||d.fill!=="none"){T&&T.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(Z=In.steps(p.shape),J=In.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?Z=J=function(wr){var Hr=wr[wr.length-1];return wr.length>1&&wr[0][0]===Hr[0]&&wr[0][1]===Hr[1]?In.smoothclosed(wr.slice(1),p.smoothing):In.smoothopen(wr,p.smoothing)}:Z=J=function(wr){return"M"+wr.join("L")},ie=function(wr){return J(wr.reverse())},Ae=oye(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),Ze=new Array(Ae.length);var Ge=0;for(s=0;s=l[0]&&y.x<=l[1]&&y.y>=s[0]&&y.y<=s[1]}),v=Math.ceil(c.length/u),d=0;n.forEach(function(y,m){var b=y[0].trace;Zd.hasMarkers(b)&&b.marker.maxdisplayed>0&&m{"use strict";VB.exports={container:"marker",min:"cmin",max:"cmax"}});var R6=P((sFe,YB)=>{"use strict";var Sb=mn();YB.exports=function(r,t,a){var n={},i={_fullLayout:a},o=Sb.getFromTrace(i,t,"x"),l=Sb.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var f=r.orig_y;return f===void 0&&(f=r.y),n.xLabel=Sb.tickText(o,o.c2l(s),!0).text,n.yLabel=Sb.tickText(l,l.c2l(f),!0).text,n}});var O6=P((fFe,WB)=>{"use strict";var P6=ha(),Jd=Wa(),uye=Bt();function cye(e){var r=P6.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=P6.select(this),n=t.trace||t[0].trace;N6(a,n,e)}),r.selectAll("g.text").each(function(t){var a=P6.select(this),n=t.trace||t[0].trace;I6(a,n,e)}),r.selectAll("g.trace path.js-line").call(Jd.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Jd.fillGroupStyle,e,!1),uye.getComponentMethod("errorbars","style")(r)}function N6(e,r,t){Jd.pointStyle(e.selectAll("path.point"),r,t)}function I6(e,r,t){Jd.textPointStyle(e.selectAll("text"),r,t)}function vye(e,r,t){var a=r[0].trace;a.selectedpoints?(Jd.selectedPointStyle(t.selectAll("path.point"),a),Jd.selectedTextStyle(t.selectAll("text"),a)):(N6(t,a,e),I6(t,a,e))}WB.exports={style:cye,stylePoints:N6,styleText:I6,styleOnSelect:vye}});var B6=P((uFe,jB)=>{"use strict";var $d=va(),hye=Ri();jB.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&$d.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&$d.opacity(i)?i:o&&$d.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?$d.opacity(n)<.3?$d.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&$d.opacity(a)&&hye.hasLines(r)&&r.line.width?a:r.fillcolor)}});var JB=P((cFe,ZB)=>{"use strict";var Eb=Ur(),XB=Wc(),dye=Bt(),pye=B6(),z6=va(),mye=Eb.fillText;ZB.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,f=l.c2p(t),u=s.c2p(a),c=[f,u],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,y=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var m=function(Q){if(p){var Z=l.c2p(Q.xStart),J=l.c2p(Q.xEnd);return f>=Math.min(Z,J)&&f<=Math.max(Z,J)?0:1/0}var ie=Math.max(3,Q.mrc||0),ue=1-1/ie,De=Math.abs(l.c2p(Q.x)-f);return De=Math.min(Z,J)&&u<=Math.max(Z,J)?0:1/0}var ie=Math.max(3,Q.mrc||0),ue=1-1/ie,De=Math.abs(s.c2p(Q.y)-u);return DeEe!=ee>=Ee&&(Qe=ir[Ae-1][0],He=ir[Ae][0],ee-Ve&&(Ge=Qe+(He-Qe)*(Ee-Ve)/(ee-Ve),ie=Math.min(ie,Ge),ue=Math.max(ue,Ge)));return ie=Math.max(ie,0),ue=Math.min(ue,l._length),{x0:ie,x1:ue,y0:Ee,y1:Ee}}if(v.indexOf("fills")!==-1&&o._fillElement){var X=q(o._fillElement)&&!q(o._fillExclusionElement);if(X){var le=H(o._polygons);le===null&&(le={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var ae=z6.defaultLine;return z6.opacity(o.fillcolor)?ae=o.fillcolor:z6.opacity((o.line||{}).color)&&(ae=o.line.color),Eb.extendFlat(r,{distance:r.maxHoverDistance,x0:le.x0,x1:le.x1,y0:le.y0,y1:le.y1,color:ae,hovertemplate:!1}),delete r.index,o.text&&!Eb.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var KB=P((vFe,QB)=>{"use strict";var $B=Ri();QB.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,f,u,c,v=!$B.hasMarkers(l)&&!$B.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";ez.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var iz=P((dFe,nz)=>{"use strict";var ny=Bt().traceIs,G6=tw();nz.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(yye(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function yye(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=gye(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!ny(i,"cartesian")||ny(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,az(i,a)){var f=tz(i),u=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(az(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function tz(e){return{v:"x",h:"y"}[e.orientation||"v"]}function az(e,r){var t=tz(e),a=ny(e,"box-violin"),n=ny(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var lz=P((pFe,oz)=>{"use strict";var bye=Yo().isTypedArraySpec;function xye(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||bye(i),l;o&&(l="array");var s=a("categoryorder",l),f;s==="array"&&(f=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=f.slice():(f=xye(t,n).sort(),s==="category ascending"?t._initialCategories=f:s==="category descending"&&(t._initialCategories=f.reverse()))}}});var uz=P((mFe,fz)=>{"use strict";var sz=ks().mix,_ye=wf(),wye=Ur();fz.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(C,F){return wye.coerce2(r,t,n.attributes,C,F)}var l=o("linecolor",i),s=o("linewidth"),f=a("showline",n.showLine||!!l||!!s);f||(delete t.linecolor,delete t.linewidth);var u=sz(i,n.bgColor,n.blend||_ye.lightFraction).toRgbString(),c=o("gridcolor",u),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=sz(t.gridcolor,n.bgColor,67).toRgbString(),m=o("minor.gridcolor",y),b=o("minor.gridwidth",t.gridwidth||1),A=o("minor.griddash",t.griddash||"solid"),_=a("minor.showgrid",!!m||!!b||!!A);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=o("zerolinelayer"),T=o("zerolinecolor",i),E=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!T||!!E);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var H6=P((yFe,mz)=>{"use strict";var cz=ga(),Aye=Bt(),iy=Ur(),Tye=$a(),Mye=gl(),U6=Ul(),vz=M4(),hz=E4(),Sye=L4(),Eye=D4(),kye=lz(),Cye=uz(),Lye=Aw(),dz=O2(),kb=qi().WEEKDAY_PATTERN,Dye=qi().HOUR_PATTERN;mz.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},f=a("visible",!n.visibleDflt),u=t._template||{},c=t.type||u.type||"-",v;if(c==="date"){var d=Aye.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=iy.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),dz(t,i),Lye(r,t,a,n),kye(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==U6.color.dflt?y:l.color,b=s.label||i._dfltTitle[o];if(Eye(r,t,a,c,n),!f)return t;a("title.text",b),iy.coerceFont(a,"title.font",l,{overrideDflt:{size:iy.bigFont(l.size),color:m}}),vz(r,t,a,c);var A=n.hasMinor;if(A&&(Tye.newContainer(t,"minor"),vz(r,t,a,c,{isMinor:!0})),Sye(r,t,a,c,n),hz(r,t,a,n),A){var _=n.isMinor;n.isMinor=!0,hz(r,t,a,n),n.isMinor=_}Cye(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:A,attributes:U6}),A&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var T=a("showdividers");T&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Mye(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Fye}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var E=0;E=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=pz(i[l]),s){o=kb;break}}var f=a("pattern",o);if(f===kb)for(l=0;l<2;l++)s=pz(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(f)for(l=0;l<2;l++)switch(s=i[l],f){case kb:if(!cz(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case Dye:if(!cz(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var u=t.range;if(u[0]u[1]){r.enabled=!1;return}}else if(i[0]>u[0]&&i[1]{"use strict";var Rye=ga(),Cb=Ur();yz.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,f=n.overlayingDomain,u,c,v,d,p,y;s&&(c=s._domains[l][s._axisMap[t._id]],u=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],u=u||(Rye(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=Cb.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:u}},"anchor"),b=Cb.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(m==="free"){if(l==="y"){var A=a("autoshift");A&&(d=b==="left"?f[0]:f[1],y=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",y);var _=!1;if(o.length&&(_=Cb.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),Cb.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var Sz=P((bFe,Mz)=>{"use strict";var X0=Ur(),gz=va(),Pye=Cu().isUnifiedHover,Nye=Jw(),bz=$a(),Iye=ed(),xz=Ul(),Oye=iz(),_z=H6(),Bye=Am(),wz=V6(),W6=Sn(),Nf=W6.id2name,Az=W6.name2id,zye=qi().AX_ID_PATTERN,Tz=Bt(),Lb=Tz.traceIs,Y6=Tz.getComponentMethod;function Db(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}Mz.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},f={},u={},c={},v={},d={},p={},y,m;for(y=0;y{"use strict";var Gye=ha(),Ez=Bt(),Fb=Ur(),Tl=Wa(),qb=mn();kz.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){qb.redrawComponents(r);return}function o(m){var b=m.xaxis,A=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(Tl.setTranslate,0,0).call(Tl.setScale,1,1),m.plot.call(Tl.setTranslate,b._offset,A._offset).call(Tl.setScale,1,1);var _=m.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Tl.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Tl.setTextPointsScale,1,1),_.call(Tl.hideOutsideRangePoints,m)}function l(m,b){var A=m.plotinfo,_=A.xaxis,x=A.yaxis,T=_._length,E=x._length,M=!!m.xr1,C=!!m.yr1,F=[];if(M){var I=Fb.simpleMap(m.xr0,_.r2l),O=Fb.simpleMap(m.xr1,_.r2l),q=I[1]-I[0],H=O[1]-O[0];F[0]=(I[0]*(1-b)+b*O[0]-I[0])/(I[1]-I[0])*T,F[2]=T*(1-b+b*H/q),_.range[0]=_.l2r(I[0]*(1-b)+b*O[0]),_.range[1]=_.l2r(I[1]*(1-b)+b*O[1])}else F[0]=0,F[2]=T;if(C){var X=Fb.simpleMap(m.yr0,x.r2l),le=Fb.simpleMap(m.yr1,x.r2l),ae=X[1]-X[0],Q=le[1]-le[0];F[1]=(X[1]*(1-b)+b*le[1]-X[1])/(X[0]-X[1])*E,F[3]=E*(1-b+b*Q/ae),x.range[0]=_.l2r(X[0]*(1-b)+b*le[0]),x.range[1]=x.l2r(X[1]*(1-b)+b*le[1])}else F[1]=0,F[3]=E;qb.drawOne(r,_,{skipTitle:!0}),qb.drawOne(r,x,{skipTitle:!0}),qb.redrawComponents(r,[_._id,x._id]);var Z=M?T/F[2]:1,J=C?E/F[3]:1,ie=M?F[0]:0,ue=C?F[1]:0,De=M?F[0]/F[2]*T:0,Ie=C?F[1]/F[3]*E:0,Ee=_._offset-De,Ze=x._offset-Ie;A.clipRect.call(Tl.setTranslate,ie,ue).call(Tl.setScale,1/Z,1/J),A.plot.call(Tl.setTranslate,Ee,Ze).call(Tl.setScale,Z,J),Tl.setPointGroupScale(A.zoomScalePts,1/Z,1/J),Tl.setTextPointsScale(A.zoomScaleTxt,1/Z,1/J)}var s;n&&(s=n());function f(){for(var m={},b=0;ba.duration?(f(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return c=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var oy=P(no=>{"use strict";var Pb=ha(),Lz=Bt(),Z0=Ur(),Uye=bi(),Hye=Wa(),Dz=K1().getModuleCalcData,tv=Sn(),Us=qi(),Vye=Oc(),Fa=Z0.ensureSingle;function Rb(e,r,t){return Z0.ensureSingle(e,r,t,function(a){a.datum(t)})}var J0=Us.zindexSeparator;no.name="cartesian";no.attr=["xaxis","yaxis"];no.idRoot=["x","y"];no.idRegex=Us.idRegex;no.attrRegex=Us.attrRegex;no.attributes=rz();no.layoutAttributes=Ul();no.supplyLayoutDefaults=Sz();no.transitionAxes=Cz();no.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},f,u,c;for(f=0;f0){var d=v.id;if(d.indexOf(J0)!==-1)continue;d+=J0+(f+1),v=Z0.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m1&&(T+=J0+x),_.push(l+T),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||u)if(f)r.xlines=Fa(a,"path","xlines-above"),r.ylines=Fa(a,"path","ylines-above"),r.xaxislayer=Fa(a,"g","xaxislayer-above"),r.yaxislayer=Fa(a,"g","yaxislayer-above");else{if(!o){var v=Fa(a,"g","layer-subplot");r.shapelayer=Fa(v,"g","shapelayer"),r.imagelayer=Fa(v,"g","imagelayer"),c&&u?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=Fa(a,"g","minor-gridlayer"),r.gridlayer=Fa(a,"g","gridlayer"),r.zerolinelayer=Fa(a,"g","zerolinelayer"));var d=Fa(a,"g","layer-between");r.shapelayerBetween=Fa(d,"g","shapelayer"),r.imagelayerBetween=Fa(d,"g","imagelayer"),Fa(a,"path","xlines-below"),Fa(a,"path","ylines-below"),r.overlinesBelow=Fa(a,"g","overlines-below"),Fa(a,"g","xaxislayer-below"),Fa(a,"g","yaxislayer-below"),r.overaxesBelow=Fa(a,"g","overaxes-below")}r.overplot=Fa(a,"g","overplot"),r.plot=Fa(r.overplot,"g",n),c&&u?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=Fa(a,"g","zerolinelayer-above"),o||(r.xlines=Fa(a,"path","xlines-above"),r.ylines=Fa(a,"path","ylines-above"),r.overlinesAbove=Fa(a,"g","overlines-above"),Fa(a,"g","xaxislayer-above"),Fa(a,"g","yaxislayer-above"),r.overaxesAbove=Fa(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,y=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,Fa(c.overlinesBelow,"path",y),Fa(c.overlinesBelow,"path",m),Fa(c.overaxesBelow,"g",y),Fa(c.overaxesBelow,"g",m),r.plot=Fa(c.overplot,"g",n),Fa(c.overlinesAbove,"path",y),Fa(c.overlinesAbove,"path",m),Fa(c.overaxesAbove,"g",y),Fa(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+l).select("."+y),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+l).select("."+y),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}o||(f||(Rb(r.minorGridlayer,"g",r.xaxis._id),Rb(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(tv.idSort),Rb(r.gridlayer,"g",r.xaxis._id),Rb(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(tv.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function Rz(e,r){if(e){var t={};e.each(function(s){var f=s[0],u=Pb.select(this);u.remove(),Pz(f,r),t[f]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Nb=Ri();Nz.exports={hasLines:Nb.hasLines,hasMarkers:Nb.hasMarkers,hasText:Nb.hasText,isBubble:Nb.isBubble,attributes:Qc(),layoutAttributes:d2(),supplyDefaults:KO(),crossTraceDefaults:g6(),supplyLayoutDefaults:nB(),calc:Yd().calc,crossTraceCalc:LB(),arraysToCalcdata:w6(),plot:HB(),colorbar:Mb(),formatLabels:R6(),style:O6().style,styleOnSelect:O6().styleOnSelect,hoverPoints:JB(),selectPoints:KB(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:oy(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var zz=P((AFe,Bz)=>{"use strict";var Wye=ha(),jye=va(),Oz=BA(),j6=Ur(),Xye=j6.strScale,Zye=j6.strRotate,Jye=j6.strTranslate;Bz.exports=function(r,t,a){var n=r.node(),i=Oz[a.arrowhead||0],o=Oz[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),f=t.indexOf("start")>=0,u=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,y,m;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,A=d.y-p.y;if(y=Math.atan2(A,b),m=y+Math.PI,c&&v&&c+v>Math.sqrt(b*b+A*A)){X();return}if(c){if(c*c>b*b+A*A){X();return}var _=c*Math.cos(y),x=c*Math.sin(y);p.x+=_,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>b*b+A*A){X();return}var T=v*Math.cos(y),E=v*Math.sin(y);d.x-=T,d.y-=E,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),C="";if(M{"use strict";var Gz=ha(),X6=Bt(),$ye=bi(),nv=Ur(),Z6=nv.strTranslate,sy=mn(),$0=va(),Nu=Wa(),Uz=Wc(),J6=po(),$6=Yc(),ly=Ns(),Qye=$a().arrayEditor,Kye=zz();Yz.exports={draw:ege,drawOne:Hz,drawRaw:Vz};function ege(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?cr="right":cr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[cr]}for(var Ve=!1,ee=["x","y"],me=0;me1)&&(vr===je?(wt=rr.r2fraction(r["a"+re]),(wt<0||wt>1)&&(Ve=!0)):Ve=!0),Hr=rr._offset+rr.r2p(r[re]),sr=.5}else{var Fe=Et==="domain";re==="x"?(Pe=r[re],Hr=Fe?rr._offset+rr._length*Pe:Hr=l.l+l.w*Pe):(Pe=1-r[re],Hr=Fe?rr._offset+rr._length*Pe:Hr=l.t+l.h*Pe),sr=r.showarrow?.5:Pe}if(r.showarrow){wr.head=Hr;var hr=r["a"+re];if(lt=Lr*He(.5,r.xanchor)-_r*He(.5,r.yanchor),vr===je){var Ir=sy.getRefType(vr);Ir==="domain"?(re==="y"&&(hr=1-hr),wr.tail=rr._offset+rr._length*hr):Ir==="paper"?re==="y"?(hr=1-hr,wr.tail=l.t+l.h*hr):wr.tail=l.l+l.w*hr:wr.tail=rr._offset+rr.r2p(hr),Vr=lt}else wr.tail=Hr+hr,Vr=lt+hr;wr.text=wr.tail+lt;var at=o[re==="x"?"width":"height"];if(je==="paper"&&(wr.head=nv.constrain(wr.head,1,at-1)),vr==="pixel"){var Yr=-Math.max(wr.tail-3,wr.text),nt=Math.min(wr.tail+3,wr.text)-at;Yr>0?(wr.tail+=Yr,wr.text+=Yr):nt>0&&(wr.tail-=nt,wr.text-=nt)}wr.tail+=Jr,wr.head+=Jr}else lt=Pr*He(sr,rt),Vr=lt,wr.text=Hr+lt;wr.text+=Jr,lt+=Jr,Vr+=Jr,r["_"+re+"padplus"]=Pr/2+Vr,r["_"+re+"padminus"]=Pr/2-Vr,r["_"+re+"size"]=Pr,r["_"+re+"shift"]=lt}if(Ve){M.remove();return}var vt=0,ot=0;if(r.align!=="left"&&(vt=(Ae-Ee)*(r.align==="center"?.5:1)),r.valign!=="top"&&(ot=(ir-Ze)*(r.valign==="middle"?.5:1)),De)ue.select("svg").attr({x:I+vt-1,y:I+ot}).call(Nu.setClipUrl,q?y:null,e);else{var et=I+ot-Ie.top,pr=I+vt-Ie.left;ae.call(J6.positionText,pr,et).call(Nu.setClipUrl,q?y:null,e)}H.select("rect").call(Nu.setRect,I,I,Ae,ir),O.call(Nu.setRect,C/2,C/2,Ge-C,Qe-C),M.call(Nu.setTranslate,Math.round(m.x.text-Ge/2),Math.round(m.y.text-Qe/2)),_.attr({transform:"rotate("+b+","+m.x.text+","+m.y.text+")"});var Se=function(yr,cr){A.selectAll(".annotation-arrow-g").remove();var xt=m.x.head,At=m.y.head,yt=m.x.tail+yr,Nt=m.y.tail+cr,ta=m.x.text+yr,ka=m.y.text+cr,Ta=nv.rotationXYMatrix(b,ta,ka),qn=nv.apply2DTransform(Ta),bn=nv.apply2DTransform2(Ta),ja=+O.attr("width"),cn=+O.attr("height"),Xn=ta-.5*ja,vn=Xn+ja,wn=ka-.5*cn,Mi=wn+cn,Pt=[[Xn,wn,Xn,Mi],[Xn,Mi,vn,Mi],[vn,Mi,vn,wn],[vn,wn,Xn,wn]].map(bn);if(!Pt.reduce(function(qa,Zn){return qa^!!nv.segmentsIntersect(xt,At,xt+1e6,At+1e6,Zn[0],Zn[1],Zn[2],Zn[3])},!1)){Pt.forEach(function(qa){var Zn=nv.segmentsIntersect(yt,Nt,xt,At,qa[0],qa[1],qa[2],qa[3]);Zn&&(yt=Zn.x,Nt=Zn.y)});var Ca=r.arrowwidth,ia=r.arrowcolor,Va=r.arrowside,hn=A.append("g").style({opacity:$0.opacity(ia)}).classed("annotation-arrow-g",!0),La=hn.append("path").attr("d","M"+yt+","+Nt+"L"+xt+","+At).style("stroke-width",Ca+"px").call($0.stroke,$0.rgb(ia));if(Kye(La,Va,r),s.annotationPosition&&La.node().parentNode&&!a){var Ba=xt,Ga=At;if(r.standoff){var tn=Math.sqrt(Math.pow(xt-yt,2)+Math.pow(At-Nt,2));Ba+=r.standoff*(yt-xt)/tn,Ga+=r.standoff*(Nt-At)/tn}var Wi=hn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(yt-Ba)+","+(Nt-Ga),transform:Z6(Ba,Ga)}).style("stroke-width",Ca+6+"px").call($0.stroke,"rgba(0,0,0,0)").call($0.fill,"rgba(0,0,0,0)"),ji,Rn;ly.init({element:Wi.node(),gd:e,prepFn:function(){var qa=Nu.getTranslate(M);ji=qa.x,Rn=qa.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(qa,Zn){var fs=qn(ji,Rn),us=fs[0]+qa,kl=fs[1]+Zn;M.call(Nu.setTranslate,us,kl),d("x",av(n,qa,"x",l,r)),d("y",av(i,Zn,"y",l,r)),r.axref===r.xref&&d("ax",av(n,qa,"ax",l,r)),r.ayref===r.yref&&d("ay",av(i,Zn,"ay",l,r)),hn.attr("transform",Z6(qa,Zn)),_.attr({transform:"rotate("+b+","+us+","+kl+")"})},doneFn:function(){X6.call("_guiRelayout",e,p());var qa=document.querySelector(".js-notes-box-panel");qa&&qa.redraw(qa.selectedObj)}})}}};if(r.showarrow&&Se(0,0),x){var Oe;ly.init({element:M.node(),gd:e,prepFn:function(){Oe=_.attr("transform")},moveFn:function(yr,cr){var xt="pointer";if(r.showarrow)r.axref===r.xref?d("ax",av(n,yr,"ax",l,r)):d("ax",r.ax+yr),r.ayref===r.yref?d("ay",av(i,cr,"ay",l.w,r)):d("ay",r.ay+cr),Se(yr,cr);else{if(a)return;var At,yt;if(n)At=av(n,yr,"x",l,r);else{var Nt=r._xsize/l.w,ta=r.x+(r._xshift-r.xshift)/l.w-Nt/2;At=ly.align(ta+yr/l.w,Nt,0,1,r.xanchor)}if(i)yt=av(i,cr,"y",l,r);else{var ka=r._ysize/l.h,Ta=r.y-(r._yshift+r.yshift)/l.h-ka/2;yt=ly.align(Ta-cr/l.h,ka,0,1,r.yanchor)}d("x",At),d("y",yt),(!n||!i)&&(xt=ly.getCursor(n?.5:At,i?.5:yt,r.xanchor,r.yanchor))}_.attr({transform:Z6(yr,cr)+Oe}),$6(M,xt)},clickFn:function(yr,cr){r.captureevents&&e.emit("plotly_clickannotation",E(cr))},doneFn:function(){$6(M),X6.call("_guiRelayout",e,p());var yr=document.querySelector(".js-notes-box-panel");yr&&yr.redraw(yr.selectedObj)}})}}s.annotationText?ae.call(J6.makeEditable,{delegate:M,gd:e}).call(Q).on("edit",function(J){r.text=J,this.call(Q),d("text",J),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),X6.call("_guiRelayout",e,p())}):ae.call(Q)}});var $z=P((MFe,Jz)=>{"use strict";var Wz=Ur(),rge=Bt(),jz=$a().arrayEditor;Jz.exports={hasClickToShow:tge,onClick:age};function tge(e,r){var t=Zz(e,r);return t.on.length>0||t.explicitOff.length>0}function age(e,r){var t=Zz(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var Q6=Ur(),Qd=va();Qz.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=Qd.opacity(o);n("borderpad");var s=n("borderwidth"),f=n("showarrow");n("text",f?" ":a._dfltTitle.annotation),n("textangle"),Q6.coerceFont(n,"font",a.font),n("width"),n("align");var u=n("height");if(u&&n("valign"),f){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:Qd.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),y=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",y.bgcolor||(Qd.opacity(i)?Qd.rgb(i):Qd.defaultLine)),b=n("hoverlabel.bordercolor",y.bordercolor||Qd.contrast(m)),A=Q6.extendFlat({},y.font);A.color||(A.color=b),Q6.coerceFont(n,"hoverlabel.font",A)}n("captureevents",!!p)}});var eG=P((EFe,Kz)=>{"use strict";var eT=Ur(),Q0=mn(),nge=gl(),ige=K6(),oge=Gd();Kz.exports=function(r,t){nge(r,t,{name:"annotations",handleItemDefaults:lge})};function lge(e,r,t){function a(_,x){return eT.coerce(e,r,oge,_,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){ige(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],f={_fullLayout:t},u=0;u<2;u++){var c=l[u],v=Q0.coerceRef(e,r,f,c,"","paper");if(v!=="paper"){var d=Q0.getFromId(f,v);d._annIndices.push(r._index)}if(Q0.coercePosition(r,f,a,v,c,.5),o){var p="a"+c,y=Q0.coerceRef(e,r,f,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==v&&(y=r[p]="pixel");var m=y==="pixel"?s[u]:.4;Q0.coercePosition(r,f,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(eT.noneOrAll(e,r,["x","y"]),o&&eT.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),A=a("yclick");r._xclick=b===void 0?r.x:Q0.cleanPosition(b,f,r.xref),r._yclick=A===void 0?r.y:Q0.cleanPosition(A,f,r.yref)}}}});var aG=P((kFe,tG)=>{"use strict";var rT=Ur(),K0=mn(),sge=Ib().draw;tG.exports=function(r){var t=r._fullLayout,a=rT.filterVisible(t.annotations);if(a.length&&r._fullData.length)return rT.syncOrAsync([sge,fge],r)};function fge(e){var r=e._fullLayout;rT.filterVisible(r.annotations).forEach(function(t){var a=K0.getFromId(e,t.xref),n=K0.getFromId(e,t.yref),i=K0.getRefType(t.xref),o=K0.getRefType(t.yref);t._extremes={},i==="range"&&rG(t,a),o==="range"&&rG(t,n)})}function rG(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],f=e["_"+a+"padminus"],u={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+u,d=c-u,p=3*e.startarrowsize*e.arrowwidth||0,y=p+u,m=p-u,b;if(l===o){var A=K0.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=K0.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(f,m)});b={min:[A.min[0],_.min[0]],max:[A.max[0],_.max[0]]}}else y=i?y+i:y,m=i?m-i:m,b=K0.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,y),ppadminus:Math.max(f,d,m)});e._extremes[t]=b}});var iG=P((CFe,nG)=>{"use strict";var uge=ga(),cge=Pg();nG.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),f,u;function c(d){var p=f[d],y=null;i?y=cge(p,t.range):y=Math.pow(10,p),uge(y)||(y=null),n(u+d,y)}for(var v=0;v{"use strict";var tT=Ib(),oG=$z();lG.exports={moduleType:"component",name:"annotations",layoutAttributes:Gd(),supplyLayoutDefaults:eG(),includeBasePlot:Gm()("annotations"),calcAutorange:aG(),draw:tT.draw,drawOne:tT.drawOne,drawRaw:tT.drawRaw,hasClickToShow:oG.hasClickToShow,onClick:oG.onClick,convertCoords:iG()}});var Ob=P((DFe,fG)=>{"use strict";var rn=Gd(),vge=Ls().overrideAll,hge=$a().templatedArray;fG.exports=vge(hge("annotation",{visible:rn.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:rn.xanchor,xshift:rn.xshift,yanchor:rn.yanchor,yshift:rn.yshift,text:rn.text,textangle:rn.textangle,font:rn.font,width:rn.width,height:rn.height,opacity:rn.opacity,align:rn.align,valign:rn.valign,bgcolor:rn.bgcolor,bordercolor:rn.bordercolor,borderpad:rn.borderpad,borderwidth:rn.borderwidth,showarrow:rn.showarrow,arrowcolor:rn.arrowcolor,arrowhead:rn.arrowhead,startarrowhead:rn.startarrowhead,arrowside:rn.arrowside,arrowsize:rn.arrowsize,startarrowsize:rn.startarrowsize,arrowwidth:rn.arrowwidth,standoff:rn.standoff,startstandoff:rn.startstandoff,hovertext:rn.hovertext,hoverlabel:rn.hoverlabel,captureevents:rn.captureevents}),"calc","from-root")});var cG=P((FFe,uG)=>{"use strict";var aT=Ur(),dge=mn(),pge=gl(),mge=K6(),yge=Ob();uG.exports=function(r,t,a){pge(r,t,{name:"annotations",handleItemDefaults:gge,fullLayout:a.fullLayout})};function gge(e,r,t,a){function n(l,s){return aT.coerce(e,r,yge,l,s)}function i(l){var s=l+"axis",f={_fullLayout:{}};return f._fullLayout[s]=t[s],dge.coercePosition(r,f,n,l,l,.5)}var o=n("visible");o&&(mge(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),aT.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),aT.noneOrAll(e,r,["ax","ay"])))}});var pG=P((qFe,dG)=>{"use strict";var vG=Ur(),hG=mn();dG.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function nT(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function xge(e,r){var t=nT(e.projection,nT(e.view,nT(e.model,[r[0],r[1],r[2],1])));return t}mG.exports=xge});var bG=P((PFe,gG)=>{"use strict";var _ge=Ib().drawRaw,wge=yG(),Age=["x","y","z"];gG.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=wge(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),_ge(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var wG=P((NFe,_G)=>{"use strict";var Tge=Bt(),xG=Ur();_G.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Ob()}}},layoutAttributes:Ob(),handleDefaults:cG(),includeBasePlot:Mge,convert:pG(),draw:bG()};function Mge(e,r){var t=Tge.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var AG=Gd(),TG=zi(),MG=Qc().line,Sge=kc().dash,Hs=zn().extendFlat,Ege=$a().templatedArray,IFe=Bm(),Kd=Cs(),kge=y0().shapeTexttemplateAttrs,Cge=Yg();SG.exports=Ege("shape",{visible:Hs({},Kd.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Hs({},Kd.legend,{editType:"calc+arraydraw"}),legendgroup:Hs({},Kd.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Hs({},Kd.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:TG({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Hs({},Kd.legendrank,{editType:"calc+arraydraw"}),legendwidth:Hs({},Kd.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Hs({},AG.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Hs({},AG.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Hs({},MG.color,{editType:"arraydraw"}),width:Hs({},MG.width,{editType:"calc+arraydraw"}),dash:Hs({},Sge,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:kge({},{keys:Object.keys(Cge)}),font:TG({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var CG=P((BFe,kG)=>{"use strict";var fy=Ur(),ep=mn(),Lge=gl(),Dge=iT(),EG=Jc();kG.exports=function(r,t){Lge(r,t,{name:"shapes",handleItemDefaults:qge})};function Fge(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function qge(e,r,t){function a(J,ie){return fy.coerce(e,r,Dge,J,ie)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),fy.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),f=s!=="path";f&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var u=a("line.width");u&&(a("line.color"),a("line.dash"));for(var c=a("xsizemode"),v=a("ysizemode"),d=["x","y"],p=0;p<2;p++){var y=d[p],m=y+"anchor",b=y==="x"?c:v,A={_fullLayout:t},_,x,T,E=ep.coerceRef(e,r,A,y,void 0,"paper"),M=ep.getRefType(E);if(M==="range"?(_=ep.getFromId(A,E),_._shapeIndices.push(r._index),T=EG.rangeToShapePosition(_),x=EG.shapePositionToRange(_),(_.type==="category"||_.type==="multicategory")&&(a(y+"0shift"),a(y+"1shift"))):x=T=fy.identity,f){var C=.25,F=.75,I=y+"0",O=y+"1",q=e[I],H=e[O];e[I]=x(e[I],!0),e[O]=x(e[O],!0),b==="pixel"?(a(I,0),a(O,10)):(ep.coercePosition(r,A,a,E,I,C),ep.coercePosition(r,A,a,E,O,F)),r[I]=T(r[I]),r[O]=T(r[O]),e[I]=q,e[O]=H}if(b==="pixel"){var X=e[m];e[m]=x(e[m],!0),ep.coercePosition(r,A,a,E,m,.25),r[m]=T(r[m]),e[m]=X}}f&&fy.noneOrAll(e,r,["x0","x1","y0","y1"]);var le=s==="line",ae,Q;if(f&&(ae=a("label.texttemplate")),ae||(Q=a("label.text")),Q||ae){a("label.textangle");var Z=a("label.textposition",le?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Fge(le,Z)),a("label.padding"),fy.coerceFont(a,"label.font",t.font)}}}});var FG=P((zFe,DG)=>{"use strict";var Rge=va(),LG=Ur();function Pge(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}DG.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),LG.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Rge.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(l||s){a("newshape.label.textangle");var f=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Pge(o,f)),a("newshape.label.padding"),LG.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var IG=P((GFe,NG)=>{"use strict";var oT=Ur(),rp=mn(),tp=bm(),RG=Jc();NG.exports=function(r){var t=r._fullLayout,a=oT.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?f+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function qG(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,f=n?e.r2c:e.d2c,u=r[a+"sizemode"]==="scaled";if(u?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[f(i)+l,f(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(tp.segmentRE),p,y,m,b,A;for(e.type==="date"&&(f=RG.decodeDate(f)),p=0;pv&&(v=A)));if(v>=c)return[c,v]}}});var zG=P((UFe,BG)=>{"use strict";var OG=C3();BG.exports={moduleType:"component",name:"shapes",layoutAttributes:iT(),supplyLayoutDefaults:CG(),supplyDrawNewShapeDefaults:FG(),includeBasePlot:Gm()("shapes"),calcAutorange:IG(),draw:OG.draw,drawOne:OG.drawOne}});var lT=P((VFe,UG)=>{"use strict";var GG=qi(),Oge=$a().templatedArray,HFe=Bm();UG.exports=Oge("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",GG.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",GG.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var VG=P((YFe,HG)=>{"use strict";var Bge=Ur(),sT=mn(),zge=gl(),Gge=lT(),Uge="images";HG.exports=function(r,t){var a={name:Uge,handleItemDefaults:Hge};zge(r,t,a)};function Hge(e,r,t){function a(v,d){return Bge.coerce(e,r,Gge,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var f=l[s],u=sT.coerceRef(e,r,o,f,"paper",void 0);if(u!=="paper"){var c=sT.getFromId(o,u);c._imgIndices.push(r._index)}sT.coercePosition(r,o,a,u,f,0)}return r}});var XG=P((WFe,jG)=>{"use strict";var YG=ha(),Vge=Wa(),ap=mn(),WG=Sn(),Yge=Oc();jG.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var ZG=ga(),Wge=Pg();JG.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),f,u,c=0;c{"use strict";QG.exports={moduleType:"component",name:"images",layoutAttributes:lT(),supplyLayoutDefaults:VG(),includeBasePlot:Gm()("images"),draw:XG(),convertCoords:$G()}});var Bb=P((ZFe,eU)=>{"use strict";eU.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var fT=P((JFe,tU)=>{"use strict";var jge=zi(),Xge=wf(),Zge=zn().extendFlat,Jge=Ls().overrideAll,$ge=Wg(),rU=$a().templatedArray,Qge=rU("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});tU.exports=Jge(rU("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Qge,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Zge($ge({editType:"arraydraw"}),{}),font:jge({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Xge.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var oU=P(($Fe,iU)=>{"use strict";var zb=Ur(),aU=gl(),nU=fT(),Kge=Bb(),e2e=Kge.name,r2e=nU.buttons;iU.exports=function(r,t){var a={name:e2e,handleItemDefaults:t2e};aU(r,t,a)};function t2e(e,r,t){function a(o,l){return zb.coerce(e,r,nU,o,l)}var n=aU(e,r,{name:"buttons",handleItemDefaults:a2e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),zb.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),zb.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function a2e(e,r){function t(n,i){return zb.coerce(e,r,r2e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var fU=P((QFe,sU)=>{"use strict";sU.exports=En;var Vs=ha(),lU=va(),np=Wa(),Gb=Ur();function En(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}En.barWidth=2;En.barLength=20;En.barRadius=2;En.barPad=1;En.barColor="#808BA4";En.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,f=this.position.t,u=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",y=c==="up",m=s,b=u,A,_,x,T;!v&&!d&&!p&&!y&&(this.position.direction="down",v=!0);var E=v||y;E?(A=l,_=A+m,v?(x=f,T=Math.min(x+b,o),b=T-x):(T=f+b,x=Math.max(T-b,0),b=T-x)):(x=f,T=x+b,d?(_=l+m,A=Math.max(_-m,0),m=_-A):(A=l,_=Math.min(A+m,i),m=_-A)),this._box={l:A,t:x,w:m,h:b};var M=s>m,C=En.barLength+2*En.barPad,F=En.barWidth+2*En.barPad,I=l,O=f+u;O+F>o&&(O=o-F);var q=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);q.exit().on(".drag",null).remove(),q.enter().append("rect").classed("scrollbar-horizontal",!0).call(lU.fill,En.barColor),M?(this.hbar=q.attr({rx:En.barRadius,ry:En.barRadius,x:I,y:O,width:C,height:F}),this._hbarXMin=I+C/2,this._hbarTranslateMax=m-C):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var H=u>b,X=En.barWidth+2*En.barPad,le=En.barLength+2*En.barPad,ae=l+s,Q=f;ae+X>i&&(ae=i-X);var Z=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);Z.exit().on(".drag",null).remove(),Z.enter().append("rect").classed("scrollbar-vertical",!0).call(lU.fill,En.barColor),H?(this.vbar=Z.attr({rx:En.barRadius,ry:En.barRadius,x:ae,y:Q,width:X,height:le}),this._vbarYMin=Q+le/2,this._vbarTranslateMax=b-le):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var J=this.id,ie=A-.5,ue=H?_+X+.5:_+.5,De=x-.5,Ie=M?T+F+.5:T+.5,Ee=n._topdefs.selectAll("#"+J).data(M||H?[0]:[]);if(Ee.exit().remove(),Ee.enter().append("clipPath").attr("id",J).append("rect"),M||H?(this._clipRect=Ee.select("rect").attr({x:Math.floor(ie),y:Math.floor(De),width:Math.ceil(ue)-Math.floor(ie),height:Math.ceil(Ie)-Math.floor(De)}),this.container.call(np.setClipUrl,J,this.gd),this.bg.attr({x:l,y:f,width:s,height:u})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(np.setClipUrl,null),delete this._clipRect),M||H){var Ze=Vs.behavior.drag().on("dragstart",function(){Vs.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ze);var Ae=Vs.behavior.drag().on("dragstart",function(){Vs.event.sourceEvent.preventDefault(),Vs.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(Ae),H&&this.vbar.on(".drag",null).call(Ae)}this.setTranslate(t,a)};En.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(np.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};En.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Vs.event.dx),this.vbar&&(t-=Vs.event.dy),this.setTranslate(r,t)};En.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Vs.event.deltaY),this.vbar&&(t+=Vs.event.deltaY),this.setTranslate(r,t)};En.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Gb.constrain(Vs.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,f=s+this._vbarTranslateMax,u=Gb.constrain(Vs.event.y,s,f),c=(u-s)/(f-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};En.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Gb.constrain(r||0,0,a),t=Gb.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(np.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(np.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(np.setTranslate,r,t+o*this._vbarTranslateMax)}}});var bU=P((KFe,gU)=>{"use strict";var ip=ha(),uy=bi(),cy=va(),op=Wa(),Ml=Ur(),Ub=po(),n2e=$a().arrayEditor,cU=ho().LINE_SPACING,Gt=Bb(),i2e=fU();gU.exports=function(r){var t=r._fullLayout,a=Ml.filterVisible(t[Gt.name]);function n(v){uy.autoMargin(r,mU(v))}var i=t._menulayer.selectAll("g."+Gt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Gt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){ip.select(this).selectAll("g."+Gt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+Gt.headerGroupClassName).data(a,o2e);o.enter().append("g").classed(Gt.headerGroupClassName,!0);for(var l=Ml.ensureSingle(i,"g",Gt.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var h2e=Bb();xU.exports={moduleType:"component",name:h2e.name,layoutAttributes:fT(),supplyLayoutDefaults:oU(),draw:bU()}});var hy=P((rqe,wU)=>{"use strict";wU.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var hT=P((tqe,MU)=>{"use strict";var AU=zi(),d2e=Wg(),p2e=zn().extendDeepAll,m2e=Ls().overrideAll,y2e=U1(),TU=$a().templatedArray,eh=hy(),g2e=TU("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});MU.exports=m2e(TU("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:g2e,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:p2e(d2e({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:y2e.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:AU({})},font:AU({}),activebgcolor:{valType:"color",dflt:eh.gripBgActiveColor},bgcolor:{valType:"color",dflt:eh.railBgColor},bordercolor:{valType:"color",dflt:eh.railBorderColor},borderwidth:{valType:"number",min:0,dflt:eh.railBorderWidth},ticklen:{valType:"number",min:0,dflt:eh.tickLength},tickcolor:{valType:"color",dflt:eh.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:eh.minorTickLength}}),"arraydraw","from-root")});var CU=P((aqe,kU)=>{"use strict";var lp=Ur(),SU=gl(),EU=hT(),b2e=hy(),x2e=b2e.name,_2e=EU.steps;kU.exports=function(r,t){SU(r,t,{name:x2e,handleItemDefaults:w2e})};function w2e(e,r,t){function a(c,v){return lp.coerce(e,r,EU,c,v)}for(var n=SU(e,r,{name:"steps",handleItemDefaults:A2e}),i=0,o=0;o{"use strict";var Ys=ha(),Hb=bi(),iv=va(),Ws=Wa(),Sl=Ur(),T2e=Sl.strTranslate,dy=po(),M2e=$a().arrayEditor,ea=hy(),mT=ho(),FU=mT.LINE_SPACING,dT=mT.FROM_TL,pT=mT.FROM_BR;OU.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=S2e(a,r),i=a._infolayer.selectAll("g."+ea.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(ea.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(u){u._commandObserver&&(u._commandObserver.remove(),delete u._commandObserver),Hb.autoMargin(r,qU(u))}if(i.exit().each(function(){Ys.select(this).selectAll("g."+ea.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+ea.groupClassName).data(n,E2e);l.enter().append("g").classed(ea.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",T2e(o-ea.gripWidth*.5,r._dims.currentValueTotalHeight))}}function yT(e,r){var t=e._dims;return t.inputAreaStart+ea.stepInset+(t.inputAreaLength-2*ea.stepInset)*Math.min(1,Math.max(0,r))}function DU(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-ea.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*ea.stepInset-2*t.inputAreaStart)))}function R2e(e,r,t){var a=t._dims,n=Sl.ensureSingle(e,"rect",ea.railTouchRectClass,function(i){i.call(NU,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,ea.tickOffset+t.ticklen+a.labelHeight)}).call(iv.fill,t.bgcolor).attr("opacity",0),Ws.setTranslate(n,0,a.currentValueTotalHeight)}function P2e(e,r){var t=r._dims,a=t.inputAreaLength-ea.railInset*2,n=Sl.ensureSingle(e,"rect",ea.railRectClass);n.attr({width:a,height:ea.railWidth,rx:ea.railRadius,ry:ea.railRadius,"shape-rendering":"crispEdges"}).call(iv.stroke,r.bordercolor).call(iv.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Ws.setTranslate(n,ea.railInset,(t.inputAreaWidth-ea.railWidth)*.5+t.currentValueTotalHeight)}});var GU=P((iqe,zU)=>{"use strict";var N2e=hy();zU.exports={moduleType:"component",name:N2e.name,layoutAttributes:hT(),supplyLayoutDefaults:CU(),draw:BU()}});var Yb=P((oqe,HU)=>{"use strict";var UU=wf();HU.exports={bgcolor:{valType:"color",dflt:UU.background,editType:"plot"},bordercolor:{valType:"color",dflt:UU.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var gT=P((lqe,VU)=>{"use strict";VU.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Wb=P((sqe,YU)=>{"use strict";YU.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var XU=P(Xb=>{"use strict";var I2e=Sn(),O2e=po(),WU=Wb(),B2e=ho().LINE_SPACING,jb=WU.name;function jU(e){var r=e&&e[jb];return r&&r.visible}Xb.isVisible=jU;Xb.makeData=function(e){for(var r=I2e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Zb=Ur(),ZU=$a(),JU=Sn(),z2e=Yb(),G2e=gT();$U.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Zb.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=ZU.newContainer(i,"rangeslider");function s(T,E){return Zb.coerce(o,l,z2e,T,E)}var f,u;function c(T,E){return Zb.coerce(f,u,G2e,T,E)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(T){return T.substr(0,T.indexOf("y"))===JU.name2id(a)}).map(function(T){return T.substr(T.indexOf("y"),T.length)}),y=Zb.simpleMap(p,JU.id2name),m=0;m{"use strict";var U2e=Sn().list,H2e=wd().getAutoRange,V2e=Wb();KU.exports=function(r){for(var t=U2e(r,"x",!0),a=0;a{"use strict";var Jb=ha(),Y2e=Bt(),W2e=bi(),On=Ur(),$b=On.strTranslate,tH=Wa(),ov=va(),j2e=lm(),X2e=oy(),bT=Sn(),Z2e=Ns(),J2e=Yc(),sa=Wb();aH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=Z.max)ae=O[Q+1];else if(le=Z.pmax)ae=O[Q+1];else if(le0?e.touches[0].clientX:0}function $2e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+sa.slideBoxClassName).node(),i=e.select("rect."+sa.grabAreaMinClassName).node(),o=e.select("rect."+sa.grabAreaMaxClassName).node();function l(){var s=Jb.event,f=s.target,u=rH(s),c=u-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=Z2e.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(b){var A=rH(b),_=+A-u,x,T,E;switch(f){case n:if(E="ew-resize",v+_>t._length||d+_<0)return;x=v+_,T=d+_;break;case i:if(E="col-resize",v+_>t._length)return;x=v+_,T=d;break;case o:if(E="col-resize",d+_<0)return;x=v,T=d+_;break;default:E="ew-resize",x=c,T=c+_;break}if(T{"use strict";var l3e=Ur(),s3e=Yb(),f3e=gT(),xT=XU();iH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:l3e.extendFlat({},s3e,{yaxis:f3e})}}},layoutAttributes:Yb(),handleDefaults:QU(),calcAutorange:eH(),draw:nH(),isVisible:xT.isVisible,makeData:xT.makeData,autoMarginOpts:xT.autoMarginOpts}});var Qb=P((dqe,sH)=>{"use strict";var u3e=zi(),lH=wf(),c3e=$a().templatedArray,v3e=c3e("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});sH.exports={visible:{valType:"boolean",editType:"plot"},buttons:v3e,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:u3e({editType:"plot"}),bgcolor:{valType:"color",dflt:lH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:lH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var _T=P((pqe,fH)=>{"use strict";fH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var vH=P((mqe,cH)=>{"use strict";var Kb=Ur(),h3e=va(),d3e=$a(),p3e=gl(),uH=Qb(),wT=_T();cH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=d3e.newContainer(t,"rangeselector");function s(d,p){return Kb.coerce(o,l,uH,d,p)}var f=p3e(o,l,{name:"buttons",handleItemDefaults:m3e,calendar:i}),u=s("visible",f.length>0);if(u){var c=y3e(t,a,n);s("x",c[0]),s("y",c[1]),Kb.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Kb.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",h3e.contrast(v,wT.lightAmount,wT.darkAmount)),s("bordercolor"),s("borderwidth")}};function m3e(e,r,t,a){var n=a.calendar;function i(s,f){return Kb.coerce(e,r,uH.buttons,s,f)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function y3e(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var g3e=y5(),b3e=Ur().titleCase;hH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=x3e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function x3e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=g3e["utc"+b3e(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var f=t[1];return[l,f]}});var wH=P((gqe,_H)=>{"use strict";var rx=ha(),_3e=Bt(),w3e=bi(),pH=va(),xH=Wa(),Iu=Ur(),mH=Iu.strTranslate,ex=po(),A3e=Sn(),MT=ho(),yH=MT.LINE_SPACING,gH=MT.FROM_TL,bH=MT.FROM_BR,TT=_T(),T3e=dH();_H.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(M3e(r),S3e);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=rx.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Iu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(f){var u=rx.select(this),c=T3e(o,f);f._isActive=E3e(o,f,c),u.call(AT,l,f),u.call(C3e,l,f,r),u.on("click",function(){r._dragged||_3e.call("_guiRelayout",r,c)}),u.on("mouseover",function(){f._isHovered=!0,u.call(AT,l,f)}),u.on("mouseout",function(){f._isHovered=!1,u.call(AT,l,f)})}),D3e(r,s,l,o._name,i)})};function M3e(e){for(var r=A3e.list(e,"x",!0),t=[],a=0;a{"use strict";AH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Qb()}}},layoutAttributes:Qb(),handleDefaults:vH(),draw:wH()}});var tx=P(ST=>{"use strict";var MH=zn().extendFlat;ST.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:MH({},t,{}),y:MH({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};ST.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var F3e=Ur(),q3e=$h().counter,R3e=tx().attributes,SH=qi().idRegex,P3e=$a(),ET={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[q3e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[SH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[SH.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:R3e({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function ax(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function N3e(e,r){var t=e.grid||{},a=ax(r,t,"x"),n=ax(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,f,u;i?(f=t.subplots.length,u=t.subplots[0].length):(l&&(f=n.length),o&&(u=a.length));var c=P3e.newContainer(r,"grid");function v(E,M){return F3e.coerce(t,c,ET,E,M)}var d=v("rows",f),p=v("columns",u);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var y=v("pattern")==="independent";y&&(i=!0)}c._hasSubplotGrid=i;var m=v("roworder"),b=m==="top to bottom",A=i?.2:.1,_=i?.3:.1,x,T;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,T=r._splomGridDflt.yside),c._domains={x:EH("x",v,A,x,p),y:EH("y",v,_,T,d,b)}}function EH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),f=l[0],u=(l[1]-f)/(n-o),c=u*(1-o),v=0;v{"use strict";LH.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var qH=P((Aqe,FH)=>{"use strict";var DH=ga(),O3e=Bt(),B3e=Ur(),z3e=$a(),G3e=CT();FH.exports=function(e,r,t,a){var n="error_"+a.axis,i=z3e.newContainer(r,n),o=e[n]||{};function l(p,y){return B3e.coerce(o,i,G3e,p,y)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",f=l("visible",s);if(f!==!1){var u=l("type","array"in o?"data":"percent"),c=!0;u!=="sqrt"&&(c=l("symmetric",!((u==="data"?"arrayminus":"valueminus")in o))),u==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(u==="percent"||u==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||DH(o.thickness)||DH(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",O3e.traceIs(r,"gl3d")?0:4))}}});var LT=P((Tqe,PH)=>{"use strict";PH.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(f,u){var c=+n[u];return[c,c]};var i=r.arrayminus||[];return function(f,u){var c=+n[u],v=+i[u];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=RH(t,r.value),l=RH(t,r.valueminus);return a||r.valueminus===void 0?function(f){var u=o(f);return[u,u]}:function(f){return[l(f),o(f)]}}};function RH(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var OH=P((Mqe,IH)=>{"use strict";var DT=ga(),U3e=Bt(),FT=mn(),H3e=Ur(),V3e=LT();IH.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var BH=ha(),lv=ga(),Y3e=Wa(),W3e=Ri();zH.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,f=r._context.staticPlot;t.each(function(u){var c=u[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(A){return A.id});var y=W3e.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(u=[]);var m=BH.select(this).selectAll("g.errorbar").data(u,p);if(m.exit().remove(),!!u.length){v.visible||m.selectAll("path.xerror").remove(),d.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var b=m.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),Y3e.setClipUrl(m,a.layerClipId,r),m.each(function(A){var _=BH.select(this),x=j3e(A,o,l);if(!(y&&!A.vis)){var T,E=_.select("path.yerror");if(d.visible&&lv(x.x)&&lv(x.yh)&&lv(x.ys)){var M=d.width;T="M"+(x.x-M)+","+x.yh+"h"+2*M+"m-"+M+",0V"+x.ys,x.noYS||(T+="m-"+M+",0h"+2*M),i=!E.size(),i?E=_.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("yerror",!0):s&&(E=E.transition().duration(n.duration).ease(n.easing)),E.attr("d",T)}else E.remove();var C=_.select("path.xerror");if(v.visible&&lv(x.y)&&lv(x.xh)&&lv(x.xs)){var F=(v.copy_ystyle?d:v).width;T="M"+x.xh+","+(x.y-F)+"v"+2*F+"m0,-"+F+"H"+x.xs,x.noXS||(T+="m0,-"+F+"v"+2*F),i=!C.size(),i?C=_.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("xerror",!0):s&&(C=C.transition().duration(n.duration).ease(n.easing)),C.attr("d",T)}else C.remove()}})}})};function j3e(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),lv(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),lv(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var VH=P((Eqe,HH)=>{"use strict";var X3e=ha(),UH=va();HH.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=X3e.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(UH.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(UH.stroke,i.color)})}});var jH=P((kqe,WH)=>{"use strict";var py=Ur(),YH=Ls().overrideAll,my=CT(),rh={error_x:py.extendFlat({},my),error_y:py.extendFlat({},my)};delete rh.error_x.copy_zstyle;delete rh.error_y.copy_zstyle;delete rh.error_y.copy_ystyle;var yy={error_x:py.extendFlat({},my),error_y:py.extendFlat({},my),error_z:py.extendFlat({},my)};delete yy.error_x.copy_ystyle;delete yy.error_y.copy_ystyle;delete yy.error_z.copy_ystyle;delete yy.error_z.copy_zstyle;WH.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:rh,bar:rh,histogram:rh,scatter3d:YH(yy,"calc","nested"),scattergl:YH(rh,"calc","nested")}},supplyDefaults:qH(),calc:OH(),makeComputeError:LT(),plot:GH(),style:VH(),hoverInfo:Z3e};function Z3e(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var ZH=P((Cqe,XH)=>{"use strict";XH.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var tV=P((Lqe,rV)=>{"use strict";var sv=ha(),qT=ks(),ix=bi(),JH=Bt(),Ou=mn(),nx=Ns(),ts=Ur(),Xs=ts.strTranslate,eV=zn().extendFlat,RT=Yc(),js=Wa(),PT=va(),J3e=lm(),$3e=po(),Q3e=Rs().flipScale,K3e=H6(),ebe=V6(),rbe=Ul(),NT=ho(),$H=NT.LINE_SPACING,QH=NT.FROM_TL,KH=NT.FROM_BR,_n=ZH().cn;function tbe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+_n.colorbar).data(abe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(_n.colorbar,!0),t.each(function(a){var n=sv.select(this);ts.ensureSingle(n,"rect",_n.cbbg),ts.ensureSingle(n,"g",_n.cbfills),ts.ensureSingle(n,"g",_n.cblines),ts.ensureSingle(n,"g",_n.cbaxis,function(o){o.classed(_n.crisp,!0)}),ts.ensureSingle(n,"g",_n.cbtitleunshift,function(o){o.append("g").classed(_n.cbtitle,!0)}),ts.ensureSingle(n,"rect",_n.cboutline);var i=nbe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&ibe(n,a,e)}),t.exit().each(function(a){ix.autoMargin(e,a._id)}).remove(),t.order()}function abe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return eV(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function f(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?Q3e(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var u=0;u1){var me=Math.pow(10,Math.floor(Math.log(ee)/Math.LN10));He*=me*ts.roundUp(ee/me,[2,5,10]),(Math.abs(q.start)/q.size+1e-6)%1<2e-6&&(Ge.tick0=0)}Ge.dtick=He}Ge.domain=a?[Ae+p/x.h,Ae+J-p/x.h]:[Ae+d/x.w,Ae+J-d/x.w],Ge.setScale(),e.attr("transform",Xs(Math.round(x.l),Math.round(x.t)));var re=e.select("."+_n.cbtitleunshift).attr("transform",Xs(-Math.round(x.l),-Math.round(x.t))),je=Ge.ticklabelposition,vr=Ge.title.font.size,rr=e.select("."+_n.cbaxis),Cr,Lr=0,_r=0;function Pr(Vr,Pe){var sr={propContainer:Ge,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+_n.cbtitle)},lt=Vr.charAt(0)==="h"?Vr.substr(1):"h"+Vr;e.selectAll("."+lt+",."+lt+"-math-group").remove(),J3e.draw(t,Vr,eV(sr,Pe||{}))}function rt(){if(a&&Qe||!a&&!Qe){var Vr,Pe;C==="top"&&(Vr=d+x.l+ie*y,Pe=p+x.t+ue*(1-Ae-J)+3+vr*.75),C==="bottom"&&(Vr=d+x.l+ie*y,Pe=p+x.t+ue*(1-Ae)-3-vr*.25),C==="right"&&(Pe=p+x.t+ue*m+3+vr*.75,Vr=d+x.l+ie*Ae),Pr(Ge._id+"title",{attributes:{x:Vr,y:Pe,"text-anchor":a?"start":"middle"}})}}function Jr(){if(a&&!Qe||!a&&Qe){var Vr=Ge.position||0,Pe=Ge._offset+Ge._length/2,sr,lt;if(C==="right")lt=Pe,sr=x.l+ie*Vr+10+vr*(Ge.showticklabels?1:.5);else if(sr=Pe,C==="bottom"&&(lt=x.t+ue*Vr+10+(je.indexOf("inside")===-1?Ge.tickfont.size:0)+(Ge.ticks!=="inside"&&r.ticklen||0)),C==="top"){var Et=M.text.split("
").length;lt=x.t+ue*Vr+10-ae-$H*vr*Et}Pr((a?"h":"v")+Ge._id+"title",{avoid:{selection:sv.select(t).selectAll("g."+Ge._id+"tick"),side:C,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?_.width:_.height},attributes:{x:sr,y:lt,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function wr(){if(!a&&!Qe||a&&Qe){var Vr=e.select("."+_n.cbtitle),Pe=Vr.select("text"),sr=[-s/2,s/2],lt=Vr.select(".h"+Ge._id+"title-math-group").node(),Et=15.6;Pe.node()&&(Et=parseInt(Pe.node().style.fontSize,10)*$H);var wt;if(lt?(wt=js.bBox(lt),_r=wt.width,Lr=wt.height,Lr>Et&&(sr[1]-=(Lr-Et)/2)):Pe.node()&&!Pe.classed(_n.jsPlaceholder)&&(wt=js.bBox(Pe.node()),_r=wt.width,Lr=wt.height),a){if(Lr){if(Lr+=5,C==="top")Ge.domain[1]-=Lr/x.h,sr[1]*=-1;else{Ge.domain[0]+=Lr/x.h;var Fe=$3e.lineCount(Pe);sr[1]+=(1-Fe)*Et}Vr.attr("transform",Xs(sr[0],sr[1])),Ge.setScale()}}else _r&&(C==="right"&&(Ge.domain[0]+=(_r+vr/2)/x.w),Vr.attr("transform",Xs(sr[0],sr[1])),Ge.setScale())}e.selectAll("."+_n.cbfills+",."+_n.cblines).attr("transform",a?Xs(0,Math.round(x.h*(1-Ge.domain[1]))):Xs(Math.round(x.w*Ge.domain[0]),0)),rr.attr("transform",a?Xs(0,Math.round(-x.t)):Xs(Math.round(-x.l),0));var hr=e.select("."+_n.cbfills).selectAll("rect."+_n.cbfill).attr("style","").data(X);hr.enter().append("rect").classed(_n.cbfill,!0).attr("style",""),hr.exit().remove();var Ir=F.map(Ge.c2p).map(Math.round).sort(function(ot,et){return ot-et});hr.each(function(ot,et){var pr=[et===0?F[0]:(X[et]+X[et-1])/2,et===X.length-1?F[1]:(X[et]+X[et+1])/2].map(Ge.c2p).map(Math.round);a&&(pr[1]=ts.constrain(pr[1]+(pr[1]>pr[0])?1:-1,Ir[0],Ir[1]));var Se=sv.select(this).attr(a?"x":"y",De).attr(a?"y":"x",sv.min(pr)).attr(a?"width":"height",Math.max(ae,2)).attr(a?"height":"width",Math.max(sv.max(pr)-sv.min(pr),2));if(r._fillgradient)js.gradient(Se,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Oe=O(ot).replace("e-","");Se.attr("fill",qT(Oe).toHexString())}});var at=e.select("."+_n.cblines).selectAll("path."+_n.cbline).data(E.color&&E.width?le:[]);at.enter().append("path").classed(_n.cbline,!0),at.exit().remove(),at.each(function(ot){var et=De,pr=Math.round(Ge.c2p(ot))+E.width/2%1;sv.select(this).attr("d","M"+(a?et+","+pr:pr+","+et)+(a?"h":"v")+ae).call(js.lineGroupStyle,E.width,I(ot),E.dash)}),rr.selectAll("g."+Ge._id+"tick,path").remove();var Yr=De+ae+(s||0)/2-(r.ticks==="outside"?1:0),nt=Ou.calcTicks(Ge),vt=Ou.getTickSigns(Ge)[2];return Ou.drawTicks(t,Ge,{vals:Ge.ticks==="inside"?Ou.clipEnds(Ge,nt):nt,layer:rr,path:Ou.makeTickPath(Ge,Yr,vt),transFn:Ou.makeTransTickFn(Ge)}),Ou.drawLabels(t,Ge,{vals:nt,layer:rr,transFn:Ou.makeTransTickLabelFn(Ge),labelFns:Ou.makeLabelFns(Ge,Yr)})}function Hr(){var Vr,Pe=ae+s/2;je.indexOf("inside")===-1&&(Vr=js.bBox(rr.node()),Pe+=a?Vr.width:Vr.height),Cr=re.select("text");var sr=0,lt=a&&C==="top",Et=!a&&C==="right",wt=0;if(Cr.node()&&!Cr.classed(_n.jsPlaceholder)){var Fe,hr=re.select(".h"+Ge._id+"title-math-group").node();hr&&(a&&Qe||!a&&!Qe)?(Vr=js.bBox(hr),sr=Vr.width,Fe=Vr.height):(Vr=js.bBox(re.node()),sr=Vr.right-x.l-(a?De:ir),Fe=Vr.bottom-x.t-(a?ir:De),!a&&C==="top"&&(Pe+=Vr.height,wt=Vr.height)),Et&&(Cr.attr("transform",Xs(sr/2+vr/2,0)),sr*=2),Pe=Math.max(Pe,a?sr:Fe)}var Ir=(a?d:p)*2+Pe+f+s/2,at=0;!a&&M.text&&v==="bottom"&&m<=0&&(at=Ir/2,Ir+=at,wt+=at),_._hColorbarMoveTitle=at,_._hColorbarMoveCBTitle=wt;var Yr=f+s,nt=(a?De:ir)-Yr/2-(a?d:0),vt=(a?ir:De)-(a?Z:p+wt-at);e.select("."+_n.cbbg).attr("x",nt).attr("y",vt).attr(a?"width":"height",Math.max(Ir-at,2)).attr(a?"height":"width",Math.max(Z+Yr,2)).call(PT.fill,u).call(PT.stroke,r.bordercolor).style("stroke-width",f);var ot=Et?Math.max(sr-10,0):0;e.selectAll("."+_n.cboutline).attr("x",(a?De:ir+d)+ot).attr("y",(a?ir+p-Z:De)+(lt?Lr:0)).attr(a?"width":"height",Math.max(ae,2)).attr(a?"height":"width",Math.max(Z-(a?2*p+Lr:2*d+ot),2)).call(PT.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var et=a?Ie*Ir:0,pr=a?0:(1-Ee)*Ir-wt;if(et=A?x.l-et:-et,pr=b?x.t-pr:-pr,e.attr("transform",Xs(et,pr)),!a&&(f||qT(u).getAlpha()&&!qT.equals(_.paper_bgcolor,u))){var Se=rr.selectAll("text"),Oe=Se[0].length,yr=e.select("."+_n.cbbg).node(),cr=js.bBox(yr),xt=js.getTranslate(e),At=2;Se.each(function(Xn,vn){var wn=0,Mi=Oe-1;if(vn===wn||vn===Mi){var Pt=js.bBox(this),Ca=js.getTranslate(this),ia;if(vn===Mi){var Va=Pt.right+Ca.x,hn=cr.right+xt.x+ir-f-At+y;ia=hn-Va,ia>0&&(ia=0)}else if(vn===wn){var La=Pt.left+Ca.x,Ba=cr.left+xt.x+ir+f+At;ia=Ba-La,ia<0&&(ia=0)}ia&&(Oe<3?this.setAttribute("transform","translate("+ia+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var yt={},Nt=QH[c],ta=KH[c],ka=QH[v],Ta=KH[v],qn=Ir-ae;a?(i==="pixels"?(yt.y=m,yt.t=Z*ka,yt.b=Z*Ta):(yt.t=yt.b=0,yt.yt=m+n*ka,yt.yb=m-n*Ta),l==="pixels"?(yt.x=y,yt.l=Ir*Nt,yt.r=Ir*ta):(yt.l=qn*Nt,yt.r=qn*ta,yt.xl=y-o*Nt,yt.xr=y+o*ta)):(i==="pixels"?(yt.x=y,yt.l=Z*Nt,yt.r=Z*ta):(yt.l=yt.r=0,yt.xl=y+n*Nt,yt.xr=y-n*ta),l==="pixels"?(yt.y=1-m,yt.t=Ir*ka,yt.b=Ir*Ta):(yt.t=qn*ka,yt.b=qn*Ta,yt.yt=m-o*ka,yt.yb=m+o*Ta));var bn=r.y<.5?"b":"t",ja=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var cn={r:_.width-nt-et,l:nt+yt.r,b:_.height-vt-pr,t:vt+yt.b};A&&b?ix.autoMargin(t,r._id,yt):A?t._fullLayout._reservedMargin[r._id][bn]=cn[bn]:b||a?t._fullLayout._reservedMargin[r._id][ja]=cn[ja]:t._fullLayout._reservedMargin[r._id][bn]=cn[bn]}return ts.syncOrAsync([ix.previousPromises,rt,wr,Jr,ix.previousPromises,Hr],t)}function ibe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;nx.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),RT(e)},moveFn:function(f,u){e.attr("transform",o+Xs(f,u)),l=nx.align((a?r._uFrac:r._vFrac)+f/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=nx.align((a?r._vFrac:1-r._uFrac)-u/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=nx.getCursor(l,s,r.xanchor,r.yanchor);RT(e,c)},doneFn:function(){if(RT(e),l!==void 0&&s!==void 0){var f={};f[r._propPrefix+"x"]=l,f[r._propPrefix+"y"]=s,r._traceIndex!==void 0?JH.call("_guiRestyle",t,f,r._traceIndex):JH.call("_guiRelayout",t,f)}}})}function obe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,f=a.size,u=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*f,!(f>0?o>=s:o<=s));l++)o>u&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";aV.exports={moduleType:"component",name:"colorbar",attributes:w2(),supplyDefaults:F4(),draw:tV().draw,hasColorbar:_4()}});var oV=P((Fqe,iV)=>{"use strict";iV.exports={moduleType:"component",name:"legend",layoutAttributes:Cw(),supplyLayoutDefaults:Fw(),draw:Yw(),style:Gw()}});var sV=P((qqe,lV)=>{"use strict";lV.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var uV=P((Rqe,fV)=>{"use strict";fV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var OT=P((Pqe,dV)=>{"use strict";var sbe=Bt(),hV=Ur(),IT=hV.extendFlat,cV=hV.extendDeep;function vV(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function fbe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}dV.exports=function(r,t){var a,n=r.data,i=r.layout,o=cV([],n),l=cV({},i,vV(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var f=Object.keys(l);for(a=0;a{"use strict";var ube=f2().EventEmitter,cbe=Bt(),vbe=Ur(),pV=Y0(),hbe=OT(),dbe=vb(),pbe=hb();function mbe(e,r){var t=new ube,a=hbe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=pV.getDelay(n._fullLayout);setTimeout(function(){var s=dbe(n),f=document.createElement("canvas");f.id=vbe.randstr(),t=pbe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:f,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=pV.getRedrawFunc(n);return cbe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}mV.exports=mbe});var xV=P((Iqe,bV)=>{"use strict";var gV=Y0(),ybe={getDelay:gV.getDelay,getRedrawFunc:gV.getRedrawFunc,clone:OT(),toSVG:vb(),svgToImg:hb(),toImage:yV(),downloadImage:u6()};bV.exports=ybe});var wV=P(Bu=>{"use strict";Bu.version=Mg().version;gM();sC();var gbe=Bt(),gy=Bu.register=gbe.register,zT=FO(),_V=Object.keys(zT);for(ox=0;ox<_V.length;ox++)sp=_V[ox],sp.charAt(0)!=="_"&&(Bu[sp]=zT[sp]),gy({moduleType:"apiMethod",name:sp,fn:zT[sp]});var sp,ox;gy(Iz());gy([sG(),wG(),Ud(),zG(),KG(),_U(),GU(),oH(),TH(),kT(),jH(),yd(),nV(),oV(),Wc(),mA()]);gy([sV(),uV()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(gy(window.PlotlyLocales),delete window.PlotlyLocales);Bu.Icons=d3();var lx=Wc(),BT=bi();Bu.Plots={resize:BT.resize,graphJson:BT.graphJson,sendDataToCloud:BT.sendDataToCloud};Bu.Fx={hover:lx.hover,unhover:lx.unhover,loneHover:lx.loneHover,loneUnhover:lx.loneUnhover};Bu.Snapshot=xV();Bu.PlotSchema=cd()});var TV=P((Bqe,AV)=>{"use strict";AV.exports=wV()});var GT=P((zqe,SV)=>{"use strict";var bbe=Bt(),El=Ur(),xbe=B6();function _be(e,r,t,a){var n=e.cd,i=n[0].t,o=n[0].trace,l=e.xa,s=e.ya,f=i.x,u=i.y,c=l.c2p(r),v=s.c2p(t),d=e.distance,p;if(i.tree){var y=l.p2c(c-d),m=l.p2c(c+d),b=s.p2c(v-d),A=s.p2c(v+d);a==="x"?p=i.tree.range(Math.min(y,m),Math.min(s._rl[0],s._rl[1]),Math.max(y,m),Math.max(s._rl[0],s._rl[1])):p=i.tree.range(Math.min(y,m),Math.min(b,A),Math.max(y,m),Math.max(b,A))}else p=i.ids;var _,x,T,E,M,C,F,I,O,q=d;if(a==="x"){var H=!!o.xperiodalignment,X=!!o.yperiodalignment;for(M=0;M=Math.min(le,ae)&&c<=Math.max(le,ae)?0:1/0}if(C=Math.min(Q,Z)&&v<=Math.max(Q,Z)?0:1/0}O=Math.sqrt(C*C+F*F),x=p[M]}}}else for(M=p.length-1;M>-1;M--)_=p[M],T=f[_],E=u[_],C=l.c2p(T)-c,F=s.c2p(E)-v,I=Math.sqrt(C*C+F*F),I{"use strict";var EV=20;kV.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:EV,SYMBOL_STROKE:EV/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var sx=P((Uqe,FV)=>{"use strict";var wbe=Cs(),Abe=zi(),Tbe=zA(),Fn=Qc(),CV=am().axisHoverFormat,LV=E0(),Mbe=Kg(),UT=zn().extendFlat,Sbe=Ls().overrideAll,Ebe=fp().DASHES,DV=Fn.line,zu=Fn.marker,kbe=zu.line,up=FV.exports=Sbe({x:Fn.x,x0:Fn.x0,dx:Fn.dx,y:Fn.y,y0:Fn.y0,dy:Fn.dy,xperiod:Fn.xperiod,yperiod:Fn.yperiod,xperiod0:Fn.xperiod0,yperiod0:Fn.yperiod0,xperiodalignment:Fn.xperiodalignment,yperiodalignment:Fn.yperiodalignment,xhoverformat:CV("x"),yhoverformat:CV("y"),text:Fn.text,hovertext:Fn.hovertext,textposition:Fn.textposition,textfont:Abe({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:DV.color,width:DV.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:Mbe(Ebe),dflt:"solid"}},marker:UT({},LV("marker"),{symbol:zu.symbol,angle:zu.angle,size:zu.size,sizeref:zu.sizeref,sizemin:zu.sizemin,sizemode:zu.sizemode,opacity:zu.opacity,colorbar:zu.colorbar,line:UT({},LV("marker.line"),{width:kbe.width})}),connectgaps:Fn.connectgaps,fill:UT({},Fn.fill,{dflt:"none"}),fillcolor:Tbe(),selected:{marker:Fn.selected.marker,textfont:Fn.selected.textfont},unselected:{marker:Fn.unselected.marker,textfont:Fn.unselected.textfont},opacity:wbe.opacity},"calc","nested");up.x.editType=up.y.editType=up.x0.editType=up.y0.editType="calc+clearAxisTypes";up.hovertemplate=Fn.hovertemplate;up.texttemplate=Fn.texttemplate});var fx=P(HT=>{"use strict";var qV=fp();HT.isOpenSymbol=function(e){return typeof e=="string"?qV.OPEN_RE.test(e):e%200>100};HT.isDotSymbol=function(e){return typeof e=="string"?qV.DOT_RE.test(e):e>200}});var NV=P((Vqe,PV)=>{"use strict";var RV=Ur(),Cbe=Bt(),Lbe=fx(),Dbe=sx(),Fbe=zm(),ux=Ri(),qbe=h6(),Rbe=d6(),Pbe=gb(),Nbe=p6(),Ibe=y6(),Obe=m6();PV.exports=function(r,t,a,n){function i(d,p){return RV.coerce(r,t,Dbe,d,p)}var o=r.marker?Lbe.isOpenSymbol(r.marker.symbol):!1,l=ux.isBubble(r),s=qbe(r,t,n,i);if(!s){t.visible=!1;return}Rbe(r,t,n,i),i("xhoverformat"),i("yhoverformat");var f=s{"use strict";var Bbe=R6();IV.exports=function(r,t,a){var n=r.i;return"x"in r||(r.x=t._x[n]),"y"in r||(r.y=t._y[n]),Bbe(r,t,a)}});var zV=P((Wqe,BV)=>{"use strict";function zbe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>=0?(i=o,n=o-1):a=o+1}return i}function Gbe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>0?(i=o,n=o-1):a=o+1}return i}function Ube(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<0?(i=o,a=o+1):n=o-1}return i}function Hbe(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<=0?(i=o,a=o+1):n=o-1}return i}function Vbe(e,r,t,a,n){for(;a<=n;){var i=a+n>>>1,o=e[i],l=t!==void 0?t(o,r):o-r;if(l===0)return i;l<=0?a=i+1:n=i-1}return-1}function by(e,r,t,a,n,i){return typeof t=="function"?i(e,r,t,a===void 0?0:a|0,n===void 0?e.length-1:n|0):i(e,r,void 0,t===void 0?0:t|0,a===void 0?e.length-1:a|0)}BV.exports={ge:function(e,r,t,a,n){return by(e,r,t,a,n,zbe)},gt:function(e,r,t,a,n){return by(e,r,t,a,n,Gbe)},lt:function(e,r,t,a,n){return by(e,r,t,a,n,Ube)},le:function(e,r,t,a,n){return by(e,r,t,a,n,Hbe)},eq:function(e,r,t,a,n){return by(e,r,t,a,n,Vbe)}}});var xy=P((jqe,GV)=>{GV.exports=Ybe;function Ybe(e,r,t){return rt?t:e:er?r:e}});var If=P((Xqe,HV)=>{"use strict";HV.exports=function(r,t,a){var n={},i,o;if(typeof t=="string"&&(t=UV(t)),Array.isArray(t)){var l={};for(o=0;o{"use strict";var Wbe=If();VV.exports=jbe;function jbe(e){var r;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?r={width:e[0],height:e[0],x:0,y:0}:e.length===2?r={width:e[0],height:e[1],x:0,y:0}:r={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=Wbe(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),r={x:e.left||0,y:e.top||0},e.width==null?e.right?r.width=e.right-r.x:r.width=0:r.width=e.width,e.height==null?e.bottom?r.height=e.bottom-r.y:r.height=0:r.height=e.height),r}});var th=P((Jqe,YV)=>{"use strict";YV.exports=Xbe;function Xbe(e,r){if(!e||e.length==null)throw Error("Argument should be an array");r==null?r=1:r=Math.floor(r);for(var t=Array(r*2),a=0;an&&(n=e[o]),e[o]{WV.exports=function(){for(var e=0;e{XV.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var ah=P((Kqe,JV)=>{var ZV=cx();JV.exports=Zbe;function Zbe(e,r,t){if(!e)throw new TypeError("must specify data as first parameter");if(t=+(t||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var a=e[0].length,n=e.length*a,i,o,l,s;(!r||typeof r=="string")&&(r=new(ZV(r||"float32"))(n+t));var f=r.length-t;if(n!==f)throw new Error("source length "+n+" ("+a+"x"+e.length+") does not match destination length "+f);for(i=0,l=t;i{"use strict";$V.exports=function(e){var r=typeof e;return e!==null&&(r==="object"||r==="function")}});var eY=P((rRe,KV)=>{"use strict";KV.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var lY=P((tRe,oY)=>{"use strict";var rY=zV(),tY=xy(),Jbe=cp(),$be=th(),aY=If(),YT=jV(),Qbe=ah(),Kbe=QV(),exe=cx(),nY=eY(),rxe=1073741824;oY.exports=function(r,t){t||(t={}),r=Qbe(r,"float64"),t=aY(t,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let a=YT(t.maxDepth,255),n=YT(t.bounds,$be(r,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let i=iY(r,n),o=r.length>>>1,l;t.dtype||(t.dtype="array"),typeof t.dtype=="string"?l=new(exe(t.dtype))(o):t.dtype&&(l=t.dtype,Array.isArray(l)&&(l.length=o));for(let b=0;ba||E>rxe){for(let Z=0;ZDe||F>Ie||I=q||ie===ue)return;let Ee=s[J];ue===void 0&&(ue=Ee.length);for(let me=ie;me=x&&je<=E&&vr>=T&&vr<=M&&H.push(re)}let Ze=f[J],Ae=Ze[ie*4+0],ir=Ze[ie*4+1],Ge=Ze[ie*4+2],Qe=Ze[ie*4+3],He=le(Ze,ie+1),Ve=Z*.5,ee=J+1;X(ae,Q,Ve,ee,Ae,ir||Ge||Qe||He),X(ae,Q+Ve,Ve,ee,ir,Ge||Qe||He),X(ae+Ve,Q,Ve,ee,Ge,Qe||He),X(ae+Ve,Q+Ve,Ve,ee,Qe,He)}function le(ae,Q){let Z=null,J=0;for(;Z===null;)if(Z=ae[Q*4+J],J++,J>ae.length)return null;return Z}return H}function y(b,A,_,x,T){let E=[];for(let M=0;M{"use strict";sY.exports=lY()});var jT=P((nRe,fY)=>{fY.exports=txe;function txe(e){var r=0,t=0,a=0,n=0;return e.map(function(i){i=i.slice();var o=i[0],l=o.toUpperCase();if(o!=l)switch(i[0]=l,o){case"a":i[6]+=a,i[7]+=n;break;case"v":i[1]+=n;break;case"h":i[1]+=a;break;default:for(var s=1;s{"use strict";Object.defineProperty(vx,"__esModule",{value:!0});var axe=function(){function e(r,t){var a=[],n=!0,i=!1,o=void 0;try{for(var l=r[Symbol.iterator](),s;!(n=(s=l.next()).done)&&(a.push(s.value),!(t&&a.length===t));n=!0);}catch(f){i=!0,o=f}finally{try{!n&&l.return&&l.return()}finally{if(i)throw o}}return a}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_y=Math.PI*2,XT=function(r,t,a,n,i,o,l){var s=r.x,f=r.y;s*=t,f*=a;var u=n*s-i*f,c=i*s+n*f;return{x:u+o,y:c+l}},nxe=function(r,t){var a=t===1.5707963267948966?.551915024494:t===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(t/4),n=Math.cos(r),i=Math.sin(r),o=Math.cos(r+t),l=Math.sin(r+t);return[{x:n-i*a,y:i+n*a},{x:o+l*a,y:l-o*a},{x:o,y:l}]},uY=function(r,t,a,n){var i=r*n-t*a<0?-1:1,o=r*a+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)},ixe=function(r,t,a,n,i,o,l,s,f,u,c,v){var d=Math.pow(i,2),p=Math.pow(o,2),y=Math.pow(c,2),m=Math.pow(v,2),b=d*p-d*m-p*y;b<0&&(b=0),b/=d*m+p*y,b=Math.sqrt(b)*(l===s?-1:1);var A=b*i/o*v,_=b*-o/i*c,x=u*A-f*_+(r+a)/2,T=f*A+u*_+(t+n)/2,E=(c-A)/i,M=(v-_)/o,C=(-c-A)/i,F=(-v-_)/o,I=uY(1,0,E,M),O=uY(E,M,C,F);return s===0&&O>0&&(O-=_y),s===1&&O<0&&(O+=_y),[x,T,I,O]},oxe=function(r){var t=r.px,a=r.py,n=r.cx,i=r.cy,o=r.rx,l=r.ry,s=r.xAxisRotation,f=s===void 0?0:s,u=r.largeArcFlag,c=u===void 0?0:u,v=r.sweepFlag,d=v===void 0?0:v,p=[];if(o===0||l===0)return[];var y=Math.sin(f*_y/360),m=Math.cos(f*_y/360),b=m*(t-n)/2+y*(a-i)/2,A=-y*(t-n)/2+m*(a-i)/2;if(b===0&&A===0)return[];o=Math.abs(o),l=Math.abs(l);var _=Math.pow(b,2)/Math.pow(o,2)+Math.pow(A,2)/Math.pow(l,2);_>1&&(o*=Math.sqrt(_),l*=Math.sqrt(_));var x=ixe(t,a,n,i,o,l,c,d,y,m,b,A),T=axe(x,4),E=T[0],M=T[1],C=T[2],F=T[3],I=Math.abs(F)/(_y/4);Math.abs(1-I)<1e-7&&(I=1);var O=Math.max(Math.ceil(I),1);F/=O;for(var q=0;q{"use strict";dY.exports=sxe;var lxe=vY();function sxe(e){for(var r,t=[],a=0,n=0,i=0,o=0,l=null,s=null,f=0,u=0,c=0,v=e.length;c4?(a=d[d.length-4],n=d[d.length-3]):(a=f,n=u),t.push(d)}return t}function hx(e,r,t,a){return["C",e,r,t,a,t,a]}function hY(e,r,t,a,n,i){return["C",e/3+2/3*t,r/3+2/3*a,n/3+2/3*t,i/3+2/3*a,n,i]}});var ZT=P((oRe,mY)=>{"use strict";mY.exports=function(r){return typeof r!="string"?!1:(r=r.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(r)&&/[\dz]$/i.test(r)&&r.length>4))}});var dx=P((lRe,yY)=>{"use strict";yY.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var wy=P((sRe,gY)=>{"use strict";var fxe=dx();gY.exports=function(){return fxe()&&!!Symbol.toStringTag}});var JT=P((fRe,bY)=>{"use strict";bY.exports=Object});var _Y=P((uRe,xY)=>{"use strict";xY.exports=Error});var AY=P((cRe,wY)=>{"use strict";wY.exports=EvalError});var MY=P((vRe,TY)=>{"use strict";TY.exports=RangeError});var EY=P((hRe,SY)=>{"use strict";SY.exports=ReferenceError});var $T=P((dRe,kY)=>{"use strict";kY.exports=SyntaxError});var vp=P((pRe,CY)=>{"use strict";CY.exports=TypeError});var DY=P((mRe,LY)=>{"use strict";LY.exports=URIError});var qY=P((yRe,FY)=>{"use strict";FY.exports=Math.abs});var PY=P((gRe,RY)=>{"use strict";RY.exports=Math.floor});var IY=P((bRe,NY)=>{"use strict";NY.exports=Math.max});var BY=P((xRe,OY)=>{"use strict";OY.exports=Math.min});var GY=P((_Re,zY)=>{"use strict";zY.exports=Math.pow});var HY=P((wRe,UY)=>{"use strict";UY.exports=Math.round});var YY=P((ARe,VY)=>{"use strict";VY.exports=Number.isNaN||function(r){return r!==r}});var jY=P((TRe,WY)=>{"use strict";var uxe=YY();WY.exports=function(r){return uxe(r)||r===0?r:r<0?-1:1}});var ZY=P((MRe,XY)=>{"use strict";XY.exports=Object.getOwnPropertyDescriptor});var nh=P((SRe,JY)=>{"use strict";var px=ZY();if(px)try{px([],"length")}catch(e){px=null}JY.exports=px});var Ay=P((ERe,$Y)=>{"use strict";var mx=Object.defineProperty||!1;if(mx)try{mx({},"a",{value:1})}catch(e){mx=!1}$Y.exports=mx});var eW=P((kRe,KY)=>{"use strict";var QY=typeof Symbol!="undefined"&&Symbol,cxe=dx();KY.exports=function(){return typeof QY!="function"||typeof Symbol!="function"||typeof QY("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:cxe()}});var QT=P((CRe,rW)=>{"use strict";rW.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var KT=P((LRe,tW)=>{"use strict";var vxe=JT();tW.exports=vxe.getPrototypeOf||null});var iW=P((DRe,nW)=>{"use strict";var hxe="Function.prototype.bind called on incompatible ",dxe=Object.prototype.toString,pxe=Math.max,mxe="[object Function]",aW=function(r,t){for(var a=[],n=0;n{"use strict";var bxe=iW();oW.exports=Function.prototype.bind||bxe});var yx=P((qRe,lW)=>{"use strict";lW.exports=Function.prototype.call});var e8=P((RRe,sW)=>{"use strict";sW.exports=Function.prototype.apply});var uW=P((PRe,fW)=>{"use strict";fW.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var vW=P((NRe,cW)=>{"use strict";var xxe=hp(),_xe=e8(),wxe=yx(),Axe=uW();cW.exports=Axe||xxe.call(wxe,_xe)});var dW=P((IRe,hW)=>{"use strict";var Txe=hp(),Mxe=vp(),Sxe=yx(),Exe=vW();hW.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new Mxe("a function is required");return Exe(Txe,Sxe,r)}});var xW=P((ORe,bW)=>{"use strict";var kxe=dW(),pW=nh(),yW;try{yW=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var r8=!!yW&&pW&&pW(Object.prototype,"__proto__"),gW=Object,mW=gW.getPrototypeOf;bW.exports=r8&&typeof r8.get=="function"?kxe([r8.get]):typeof mW=="function"?function(r){return mW(r==null?r:gW(r))}:!1});var MW=P((BRe,TW)=>{"use strict";var _W=QT(),wW=KT(),AW=xW();TW.exports=_W?function(r){return _W(r)}:wW?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return wW(r)}:AW?function(r){return AW(r)}:null});var EW=P((zRe,SW)=>{"use strict";var Cxe=Function.prototype.call,Lxe=Object.prototype.hasOwnProperty,Dxe=hp();SW.exports=Dxe.call(Cxe,Lxe)});var xx=P((GRe,qW)=>{"use strict";var Pa,Fxe=JT(),qxe=_Y(),Rxe=AY(),Pxe=MY(),Nxe=EY(),yp=$T(),mp=vp(),Ixe=DY(),Oxe=qY(),Bxe=PY(),zxe=IY(),Gxe=BY(),Uxe=GY(),Hxe=HY(),Vxe=jY(),DW=Function,t8=function(e){try{return DW('"use strict"; return ('+e+").constructor;")()}catch(r){}},Ty=nh(),Yxe=Ay(),a8=function(){throw new mp},Wxe=Ty?function(){try{return arguments.callee,a8}catch(e){try{return Ty(arguments,"callee").get}catch(r){return a8}}}():a8,dp=eW()(),Hi=MW(),jxe=KT(),Xxe=QT(),FW=e8(),My=yx(),pp={},Zxe=typeof Uint8Array=="undefined"||!Hi?Pa:Hi(Uint8Array),ih={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Pa:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Pa:ArrayBuffer,"%ArrayIteratorPrototype%":dp&&Hi?Hi([][Symbol.iterator]()):Pa,"%AsyncFromSyncIteratorPrototype%":Pa,"%AsyncFunction%":pp,"%AsyncGenerator%":pp,"%AsyncGeneratorFunction%":pp,"%AsyncIteratorPrototype%":pp,"%Atomics%":typeof Atomics=="undefined"?Pa:Atomics,"%BigInt%":typeof BigInt=="undefined"?Pa:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Pa:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Pa:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Pa:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":qxe,"%eval%":eval,"%EvalError%":Rxe,"%Float16Array%":typeof Float16Array=="undefined"?Pa:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Pa:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Pa:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Pa:FinalizationRegistry,"%Function%":DW,"%GeneratorFunction%":pp,"%Int8Array%":typeof Int8Array=="undefined"?Pa:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Pa:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Pa:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":dp&&Hi?Hi(Hi([][Symbol.iterator]())):Pa,"%JSON%":typeof JSON=="object"?JSON:Pa,"%Map%":typeof Map=="undefined"?Pa:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!dp||!Hi?Pa:Hi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Fxe,"%Object.getOwnPropertyDescriptor%":Ty,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Pa:Promise,"%Proxy%":typeof Proxy=="undefined"?Pa:Proxy,"%RangeError%":Pxe,"%ReferenceError%":Nxe,"%Reflect%":typeof Reflect=="undefined"?Pa:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Pa:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!dp||!Hi?Pa:Hi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Pa:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":dp&&Hi?Hi(""[Symbol.iterator]()):Pa,"%Symbol%":dp?Symbol:Pa,"%SyntaxError%":yp,"%ThrowTypeError%":Wxe,"%TypedArray%":Zxe,"%TypeError%":mp,"%Uint8Array%":typeof Uint8Array=="undefined"?Pa:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Pa:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Pa:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Pa:Uint32Array,"%URIError%":Ixe,"%WeakMap%":typeof WeakMap=="undefined"?Pa:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Pa:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Pa:WeakSet,"%Function.prototype.call%":My,"%Function.prototype.apply%":FW,"%Object.defineProperty%":Yxe,"%Object.getPrototypeOf%":jxe,"%Math.abs%":Oxe,"%Math.floor%":Bxe,"%Math.max%":zxe,"%Math.min%":Gxe,"%Math.pow%":Uxe,"%Math.round%":Hxe,"%Math.sign%":Vxe,"%Reflect.getPrototypeOf%":Xxe};if(Hi)try{null.error}catch(e){kW=Hi(Hi(e)),ih["%Error.prototype%"]=kW}var kW,Jxe=function e(r){var t;if(r==="%AsyncFunction%")t=t8("async function () {}");else if(r==="%GeneratorFunction%")t=t8("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=t8("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Hi&&(t=Hi(n.prototype))}return ih[r]=t,t},CW={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Sy=hp(),gx=EW(),$xe=Sy.call(My,Array.prototype.concat),Qxe=Sy.call(FW,Array.prototype.splice),LW=Sy.call(My,String.prototype.replace),bx=Sy.call(My,String.prototype.slice),Kxe=Sy.call(My,RegExp.prototype.exec),e_e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,r_e=/\\(\\)?/g,t_e=function(r){var t=bx(r,0,1),a=bx(r,-1);if(t==="%"&&a!=="%")throw new yp("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new yp("invalid intrinsic syntax, expected opening `%`");var n=[];return LW(r,e_e,function(i,o,l,s){n[n.length]=l?LW(s,r_e,"$1"):o||i}),n},a_e=function(r,t){var a=r,n;if(gx(CW,a)&&(n=CW[a],a="%"+n[0]+"%"),gx(ih,a)){var i=ih[a];if(i===pp&&(i=Jxe(a)),typeof i=="undefined"&&!t)throw new mp("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new yp("intrinsic "+r+" does not exist!")};qW.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new mp("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new mp('"allowMissing" argument must be a boolean');if(Kxe(/^%?[^%]*%?$/,r)===null)throw new yp("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=t_e(r),n=a.length>0?a[0]:"",i=a_e("%"+n+"%",t),o=i.name,l=i.value,s=!1,f=i.alias;f&&(n=f[0],Qxe(a,$xe([0,1],f)));for(var u=1,c=!0;u=a.length){var y=Ty(l,v);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[v]}else c=gx(l,v),l=l[v];c&&!s&&(ih[o]=l)}}return l}});var IW=P((URe,NW)=>{"use strict";var RW=Ay(),n_e=$T(),gp=vp(),PW=nh();NW.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new gp("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new gp("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new gp("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new gp("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new gp("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new gp("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!PW&&PW(r,t);if(RW)RW(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new n_e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var i8=P((HRe,BW)=>{"use strict";var n8=Ay(),OW=function(){return!!n8};OW.hasArrayLengthDefineBug=function(){if(!n8)return null;try{return n8([],"length",{value:1}).length!==1}catch(r){return!0}};BW.exports=OW});var VW=P((VRe,HW)=>{"use strict";var i_e=xx(),zW=IW(),o_e=i8()(),GW=nh(),UW=vp(),l_e=i_e("%Math.floor%");HW.exports=function(r,t){if(typeof r!="function")throw new UW("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||l_e(t)!==t)throw new UW("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&GW){var o=GW(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(o_e?zW(r,"length",t,!0,!0):zW(r,"length",t)),r}});var Ey=P((YRe,_x)=>{"use strict";var o8=hp(),wx=xx(),s_e=VW(),f_e=vp(),jW=wx("%Function.prototype.apply%"),XW=wx("%Function.prototype.call%"),ZW=wx("%Reflect.apply%",!0)||o8.call(XW,jW),YW=Ay(),u_e=wx("%Math.max%");_x.exports=function(r){if(typeof r!="function")throw new f_e("a function is required");var t=ZW(o8,XW,arguments);return s_e(t,1+u_e(0,r.length-(arguments.length-1)),!0)};var WW=function(){return ZW(o8,jW,arguments)};YW?YW(_x.exports,"apply",{value:WW}):_x.exports.apply=WW});var bp=P((WRe,QW)=>{"use strict";var JW=xx(),$W=Ey(),c_e=$W(JW("String.prototype.indexOf"));QW.exports=function(r,t){var a=JW(r,!!t);return typeof a=="function"&&c_e(r,".prototype.")>-1?$W(a):a}});var rj=P((jRe,ej)=>{"use strict";var v_e=wy()(),h_e=bp(),l8=h_e("Object.prototype.toString"),Ax=function(r){return v_e&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:l8(r)==="[object Arguments]"},KW=function(r){return Ax(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&l8(r)!=="[object Array]"&&l8(r.callee)==="[object Function]"},d_e=function(){return Ax(arguments)}();Ax.isLegacyArguments=KW;ej.exports=d_e?Ax:KW});var nj=P((XRe,aj)=>{"use strict";var p_e=Object.prototype.toString,m_e=Function.prototype.toString,y_e=/^\s*(?:function)?\*/,tj=wy()(),s8=Object.getPrototypeOf,g_e=function(){if(!tj)return!1;try{return Function("return function*() {}")()}catch(e){}},f8;aj.exports=function(r){if(typeof r!="function")return!1;if(y_e.test(m_e.call(r)))return!0;if(!tj){var t=p_e.call(r);return t==="[object GeneratorFunction]"}if(!s8)return!1;if(typeof f8=="undefined"){var a=g_e();f8=a?s8(a):!1}return s8(r)===f8}});var sj=P((ZRe,lj)=>{"use strict";var oj=Function.prototype.toString,xp=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,c8,Tx;if(typeof xp=="function"&&typeof Object.defineProperty=="function")try{c8=Object.defineProperty({},"length",{get:function(){throw Tx}}),Tx={},xp(function(){throw 42},null,c8)}catch(e){e!==Tx&&(xp=null)}else xp=null;var b_e=/^\s*class\b/,v8=function(r){try{var t=oj.call(r);return b_e.test(t)}catch(a){return!1}},u8=function(r){try{return v8(r)?!1:(oj.call(r),!0)}catch(t){return!1}},Mx=Object.prototype.toString,x_e="[object Object]",__e="[object Function]",w_e="[object GeneratorFunction]",A_e="[object HTMLAllCollection]",T_e="[object HTML document.all class]",M_e="[object HTMLCollection]",S_e=typeof Symbol=="function"&&!!Symbol.toStringTag,E_e=!(0 in[,]),h8=function(){return!1};typeof document=="object"&&(ij=document.all,Mx.call(ij)===Mx.call(document.all)&&(h8=function(r){if((E_e||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=Mx.call(r);return(t===A_e||t===T_e||t===M_e||t===x_e)&&r("")==null}catch(a){}return!1}));var ij;lj.exports=xp?function(r){if(h8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{xp(r,null,c8)}catch(t){if(t!==Tx)return!1}return!v8(r)&&u8(r)}:function(r){if(h8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(S_e)return u8(r);if(v8(r))return!1;var t=Mx.call(r);return t!==__e&&t!==w_e&&!/^\[object HTML/.test(t)?!1:u8(r)}});var d8=P((JRe,uj)=>{"use strict";var k_e=sj(),C_e=Object.prototype.toString,fj=Object.prototype.hasOwnProperty,L_e=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),C_e.call(r)==="[object Array]"?L_e(r,t,n):typeof r=="string"?D_e(r,t,n):F_e(r,t,n)};uj.exports=q_e});var m8=P(($Re,cj)=>{"use strict";var p8=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],R_e=typeof globalThis=="undefined"?window:globalThis;cj.exports=function(){for(var r=[],t=0;t{"use strict";var Ex=d8(),P_e=m8(),vj=Ey(),b8=bp(),Sx=nh(),N_e=b8("Object.prototype.toString"),dj=wy()(),hj=typeof globalThis=="undefined"?window:globalThis,g8=P_e(),x8=b8("String.prototype.slice"),y8=Object.getPrototypeOf,I_e=b8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:B_e(r)}return Sx?O_e(r):null}});var wj=P((KRe,_j)=>{"use strict";var yj=d8(),z_e=m8(),w8=bp(),G_e=w8("Object.prototype.toString"),gj=wy()(),Cx=nh(),U_e=typeof globalThis=="undefined"?window:globalThis,bj=z_e(),H_e=w8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return Cx?Y_e(r):!1}});var Nj=P(Na=>{"use strict";var W_e=rj(),j_e=nj(),Zs=mj(),Aj=wj();function _p(e){return e.call.bind(e)}var Tj=typeof BigInt!="undefined",Mj=typeof Symbol!="undefined",as=_p(Object.prototype.toString),X_e=_p(Number.prototype.valueOf),Z_e=_p(String.prototype.valueOf),J_e=_p(Boolean.prototype.valueOf);Tj&&(Sj=_p(BigInt.prototype.valueOf));var Sj;Mj&&(Ej=_p(Symbol.prototype.valueOf));var Ej;function Cy(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}Na.isArgumentsObject=W_e;Na.isGeneratorFunction=j_e;Na.isTypedArray=Aj;function $_e(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Na.isPromise=$_e;function Q_e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Aj(e)||Cj(e)}Na.isArrayBufferView=Q_e;function K_e(e){return Zs(e)==="Uint8Array"}Na.isUint8Array=K_e;function e5e(e){return Zs(e)==="Uint8ClampedArray"}Na.isUint8ClampedArray=e5e;function r5e(e){return Zs(e)==="Uint16Array"}Na.isUint16Array=r5e;function t5e(e){return Zs(e)==="Uint32Array"}Na.isUint32Array=t5e;function a5e(e){return Zs(e)==="Int8Array"}Na.isInt8Array=a5e;function n5e(e){return Zs(e)==="Int16Array"}Na.isInt16Array=n5e;function i5e(e){return Zs(e)==="Int32Array"}Na.isInt32Array=i5e;function o5e(e){return Zs(e)==="Float32Array"}Na.isFloat32Array=o5e;function l5e(e){return Zs(e)==="Float64Array"}Na.isFloat64Array=l5e;function s5e(e){return Zs(e)==="BigInt64Array"}Na.isBigInt64Array=s5e;function f5e(e){return Zs(e)==="BigUint64Array"}Na.isBigUint64Array=f5e;function Lx(e){return as(e)==="[object Map]"}Lx.working=typeof Map!="undefined"&&Lx(new Map);function u5e(e){return typeof Map=="undefined"?!1:Lx.working?Lx(e):e instanceof Map}Na.isMap=u5e;function Dx(e){return as(e)==="[object Set]"}Dx.working=typeof Set!="undefined"&&Dx(new Set);function c5e(e){return typeof Set=="undefined"?!1:Dx.working?Dx(e):e instanceof Set}Na.isSet=c5e;function Fx(e){return as(e)==="[object WeakMap]"}Fx.working=typeof WeakMap!="undefined"&&Fx(new WeakMap);function v5e(e){return typeof WeakMap=="undefined"?!1:Fx.working?Fx(e):e instanceof WeakMap}Na.isWeakMap=v5e;function T8(e){return as(e)==="[object WeakSet]"}T8.working=typeof WeakSet!="undefined"&&T8(new WeakSet);function h5e(e){return T8(e)}Na.isWeakSet=h5e;function qx(e){return as(e)==="[object ArrayBuffer]"}qx.working=typeof ArrayBuffer!="undefined"&&qx(new ArrayBuffer);function kj(e){return typeof ArrayBuffer=="undefined"?!1:qx.working?qx(e):e instanceof ArrayBuffer}Na.isArrayBuffer=kj;function Rx(e){return as(e)==="[object DataView]"}Rx.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Rx(new DataView(new ArrayBuffer(1),0,1));function Cj(e){return typeof DataView=="undefined"?!1:Rx.working?Rx(e):e instanceof DataView}Na.isDataView=Cj;var A8=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function ky(e){return as(e)==="[object SharedArrayBuffer]"}function Lj(e){return typeof A8=="undefined"?!1:(typeof ky.working=="undefined"&&(ky.working=ky(new A8)),ky.working?ky(e):e instanceof A8)}Na.isSharedArrayBuffer=Lj;function d5e(e){return as(e)==="[object AsyncFunction]"}Na.isAsyncFunction=d5e;function p5e(e){return as(e)==="[object Map Iterator]"}Na.isMapIterator=p5e;function m5e(e){return as(e)==="[object Set Iterator]"}Na.isSetIterator=m5e;function y5e(e){return as(e)==="[object Generator]"}Na.isGeneratorObject=y5e;function g5e(e){return as(e)==="[object WebAssembly.Module]"}Na.isWebAssemblyCompiledModule=g5e;function Dj(e){return Cy(e,X_e)}Na.isNumberObject=Dj;function Fj(e){return Cy(e,Z_e)}Na.isStringObject=Fj;function qj(e){return Cy(e,J_e)}Na.isBooleanObject=qj;function Rj(e){return Tj&&Cy(e,Sj)}Na.isBigIntObject=Rj;function Pj(e){return Mj&&Cy(e,Ej)}Na.isSymbolObject=Pj;function b5e(e){return Dj(e)||Fj(e)||qj(e)||Rj(e)||Pj(e)}Na.isBoxedPrimitive=b5e;function x5e(e){return typeof Uint8Array!="undefined"&&(kj(e)||Lj(e))}Na.isAnyArrayBuffer=x5e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Na,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var Oj=P((rPe,Ij)=>{Ij.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var Bj=P((tPe,M8)=>{typeof Object.create=="function"?M8.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:M8.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var Ap=P(Ia=>{var zj=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),C8(r)?t.showHidden=r:r&&Ia._extend(t,r),lh(t.showHidden)&&(t.showHidden=!1),lh(t.depth)&&(t.depth=2),lh(t.colors)&&(t.colors=!1),lh(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=w5e),Ox(t,e,t.depth)}Ia.inspect=fv;fv.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};fv.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function w5e(e,r){var t=fv.styles[r];return t?"\x1B["+fv.colors[t][0]+"m"+e+"\x1B["+fv.colors[t][1]+"m":e}function A5e(e,r){return e}function T5e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function Ox(e,r,t){if(e.customInspect&&r&&Ix(r.inspect)&&r.inspect!==Ia.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Gx(a)||(a=Ox(e,a,t)),a}var n=M5e(e,r);if(n)return n;var i=Object.keys(r),o=T5e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),Dy(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return S8(r);if(i.length===0){if(Ix(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(Ly(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Bx(r))return e.stylize(Date.prototype.toString.call(r),"date");if(Dy(r))return S8(r)}var s="",f=!1,u=["{","}"];if(Uj(r)&&(f=!0,u=["[","]"]),Ix(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(Ly(r)&&(s=" "+RegExp.prototype.toString.call(r)),Bx(r)&&(s=" "+Date.prototype.toUTCString.call(r)),Dy(r)&&(s=" "+S8(r)),i.length===0&&(!f||r.length==0))return u[0]+s+u[1];if(t<0)return Ly(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return f?v=S5e(e,r,t,o,i):v=i.map(function(d){return k8(e,r,t,o,d,f)}),e.seen.pop(),E5e(v,s,u)}function M5e(e,r){if(lh(r))return e.stylize("undefined","undefined");if(Gx(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(Hj(r))return e.stylize(""+r,"number");if(C8(r))return e.stylize(""+r,"boolean");if(zx(r))return e.stylize("null","null")}function S8(e){return"["+Error.prototype.toString.call(e)+"]"}function S5e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o-1&&(i?l=l.split(` `).map(function(f){return" "+f}).join(` `).slice(2):l=` `+l.split(` `).map(function(f){return" "+f}).join(` -`))):l=e.stylize("[Circular]","special")),lh(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function T5e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` +`))):l=e.stylize("[Circular]","special")),lh(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function E5e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` `)>=0&&a++,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(r===""?"":r+` `)+" "+e.join(`, - `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}Oa.types=qj();function zj(e){return Array.isArray(e)}Oa.isArray=zj;function C8(e){return typeof e=="boolean"}Oa.isBoolean=C8;function zx(e){return e===null}Oa.isNull=zx;function M5e(e){return e==null}Oa.isNullOrUndefined=M5e;function Gj(e){return typeof e=="number"}Oa.isNumber=Gj;function Gx(e){return typeof e=="string"}Oa.isString=Gx;function S5e(e){return typeof e=="symbol"}Oa.isSymbol=S5e;function lh(e){return e===void 0}Oa.isUndefined=lh;function Cy(e){return _1(e)&&L8(e)==="[object RegExp]"}Oa.isRegExp=Cy;Oa.types.isRegExp=Cy;function _1(e){return typeof e=="object"&&e!==null}Oa.isObject=_1;function Bx(e){return _1(e)&&L8(e)==="[object Date]"}Oa.isDate=Bx;Oa.types.isDate=Bx;function Ly(e){return _1(e)&&(L8(e)==="[object Error]"||e instanceof Error)}Oa.isError=Ly;Oa.types.isNativeError=Ly;function Ox(e){return typeof e=="function"}Oa.isFunction=Ox;function E5e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}Oa.isPrimitive=E5e;Oa.isBuffer=Nj();function L8(e){return Object.prototype.toString.call(e)}function E8(e){return e<10?"0"+e.toString(10):e.toString(10)}var k5e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C5e(){var e=new Date,r=[E8(e.getHours()),E8(e.getMinutes()),E8(e.getSeconds())].join(":");return[e.getDate(),k5e[e.getMonth()],r].join(" ")}Oa.log=function(){console.log("%s - %s",C5e(),Oa.format.apply(Oa,arguments))};Oa.inherits=Oj();Oa._extend=function(e,r){if(!r||!_1(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function Uj(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var oh=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Oa.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(oh&&r[oh]){var t=r[oh];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,oh,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,f){a=s,n=f}),o=[],l=0;l{"use strict";function uv(e){"@babel/helpers - typeof";return uv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},uv(e)}function Hj(e,r){for(var t=0;t2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function G5e(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function U5e(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function H5e(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Dy("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);Dy("ERR_INVALID_ARG_TYPE",function(e,r,t){A1===void 0&&(A1=Hx()),A1(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&G5e(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(U5e(e," argument"))n="The ".concat(e," ").concat(a," ").concat(Vj(r,"type"));else{var i=H5e(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(Vj(r,"type"))}return n+=". Received type ".concat(uv(t)),n},TypeError);Dy("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";D8===void 0&&(D8=w1());var a=D8.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);Dy("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(uv(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);Dy("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);Wj.exports.codes=Yj});var tX=P((aPe,rX)=>{"use strict";function jj(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function Xj(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function e4e(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var Js="",Fy="",Ry="",io="",sh={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},r4e=10;function $j(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function qy(e){return N8(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function t4e(e,r,t){var a="",n="",i=0,o="",l=!1,s=qy(e),f=s.split(` -`),u=qy(r).split(` -`),c=0,v="";if(t==="strictEqual"&&tl(e)==="object"&&tl(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),f.length===1&&u.length===1&&f[0]!==u[0]){var d=f[0].length+u[0].length;if(d<=r4e){if((tl(e)!=="object"||e===null)&&(tl(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(sh[t],` + `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}Ia.types=Nj();function Uj(e){return Array.isArray(e)}Ia.isArray=Uj;function C8(e){return typeof e=="boolean"}Ia.isBoolean=C8;function zx(e){return e===null}Ia.isNull=zx;function k5e(e){return e==null}Ia.isNullOrUndefined=k5e;function Hj(e){return typeof e=="number"}Ia.isNumber=Hj;function Gx(e){return typeof e=="string"}Ia.isString=Gx;function C5e(e){return typeof e=="symbol"}Ia.isSymbol=C5e;function lh(e){return e===void 0}Ia.isUndefined=lh;function Ly(e){return wp(e)&&L8(e)==="[object RegExp]"}Ia.isRegExp=Ly;Ia.types.isRegExp=Ly;function wp(e){return typeof e=="object"&&e!==null}Ia.isObject=wp;function Bx(e){return wp(e)&&L8(e)==="[object Date]"}Ia.isDate=Bx;Ia.types.isDate=Bx;function Dy(e){return wp(e)&&(L8(e)==="[object Error]"||e instanceof Error)}Ia.isError=Dy;Ia.types.isNativeError=Dy;function Ix(e){return typeof e=="function"}Ia.isFunction=Ix;function L5e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}Ia.isPrimitive=L5e;Ia.isBuffer=Oj();function L8(e){return Object.prototype.toString.call(e)}function E8(e){return e<10?"0"+e.toString(10):e.toString(10)}var D5e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F5e(){var e=new Date,r=[E8(e.getHours()),E8(e.getMinutes()),E8(e.getSeconds())].join(":");return[e.getDate(),D5e[e.getMonth()],r].join(" ")}Ia.log=function(){console.log("%s - %s",F5e(),Ia.format.apply(Ia,arguments))};Ia.inherits=Bj();Ia._extend=function(e,r){if(!r||!wp(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function Vj(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var oh=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Ia.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(oh&&r[oh]){var t=r[oh];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,oh,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,f){a=s,n=f}),o=[],l=0;l{"use strict";function uv(e){"@babel/helpers - typeof";return uv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},uv(e)}function Yj(e,r){for(var t=0;t2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function V5e(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function Y5e(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function W5e(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Fy("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);Fy("ERR_INVALID_ARG_TYPE",function(e,r,t){Tp===void 0&&(Tp=Hx()),Tp(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&V5e(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(Y5e(e," argument"))n="The ".concat(e," ").concat(a," ").concat(Wj(r,"type"));else{var i=W5e(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(Wj(r,"type"))}return n+=". Received type ".concat(uv(t)),n},TypeError);Fy("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";D8===void 0&&(D8=Ap());var a=D8.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);Fy("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(uv(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);Fy("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);Xj.exports.codes=jj});var nX=P((iPe,aX)=>{"use strict";function Zj(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function Jj(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function a4e(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var Js="",qy="",Ry="",io="",sh={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},n4e=10;function Kj(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function Py(e){return N8(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function i4e(e,r,t){var a="",n="",i=0,o="",l=!1,s=Py(e),f=s.split(` +`),u=Py(r).split(` +`),c=0,v="";if(t==="strictEqual"&&tl(e)==="object"&&tl(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),f.length===1&&u.length===1&&f[0]!==u[0]){var d=f[0].length+u[0].length;if(d<=n4e){if((tl(e)!=="object"||e===null)&&(tl(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(sh[t],` `)+"".concat(f[0]," !== ").concat(u[0],` `)}else if(t!=="strictEqualObject"){var p=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(v=` - `.concat(e4e(" ",c),"^"),c=0)}}}for(var g=f[f.length-1],m=u[u.length-1];g===m&&(c++<2?o=` - `.concat(g).concat(o):a=g,f.pop(),u.pop(),!(f.length===0||u.length===0));)g=f[f.length-1],m=u[u.length-1];var b=Math.max(f.length,u.length);if(b===0){var A=s.split(` + `.concat(a4e(" ",c),"^"),c=0)}}}for(var y=f[f.length-1],m=u[u.length-1];y===m&&(c++<2?o=` + `.concat(y).concat(o):a=y,f.pop(),u.pop(),!(f.length===0||u.length===0));)y=f[f.length-1],m=u[u.length-1];var b=Math.max(f.length,u.length);if(b===0){var A=s.split(` `);if(A.length>30)for(A[26]="".concat(Js,"...").concat(io);A.length>27;)A.pop();return"".concat(sh.notIdentical,` `).concat(A.join(` @@ -42,7 +42,7 @@ `)}c>3&&(o=` `.concat(Js,"...").concat(io).concat(o),l=!0),a!==""&&(o=` `.concat(a).concat(o),a="");var _=0,x=sh[t]+` -`.concat(Fy,"+ actual").concat(io," ").concat(Ry,"- expected").concat(io),T=" ".concat(Js,"...").concat(io," Lines skipped");for(c=0;c1&&c>2&&(E>4?(n+=` +`.concat(qy,"+ actual").concat(io," ").concat(Ry,"- expected").concat(io),T=" ".concat(Js,"...").concat(io," Lines skipped");for(c=0;c1&&c>2&&(E>4?(n+=` `.concat(Js,"...").concat(io),l=!0):E>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),i=c,a+=` @@ -50,42 +50,42 @@ `.concat(Js,"...").concat(io),l=!0):E>3&&(n+=` `.concat(f[c-2]),_++),n+=` `.concat(f[c-1]),_++),i=c,n+=` -`.concat(Fy,"+").concat(io," ").concat(f[c]),_++;else{var M=u[c],k=f[c],F=k!==M&&(!Jj(k,",")||k.slice(0,-1)!==M);F&&Jj(M,",")&&M.slice(0,-1)===k&&(F=!1,k+=","),F?(E>1&&c>2&&(E>4?(n+=` +`.concat(qy,"+").concat(io," ").concat(f[c]),_++;else{var M=u[c],C=f[c],F=C!==M&&(!Qj(C,",")||C.slice(0,-1)!==M);F&&Qj(M,",")&&M.slice(0,-1)===C&&(F=!1,C+=","),F?(E>1&&c>2&&(E>4?(n+=` `.concat(Js,"...").concat(io),l=!0):E>3&&(n+=` `.concat(f[c-2]),_++),n+=` `.concat(f[c-1]),_++),i=c,n+=` -`.concat(Fy,"+").concat(io," ").concat(k),a+=` +`.concat(qy,"+").concat(io," ").concat(C),a+=` `.concat(Ry,"-").concat(io," ").concat(M),_+=2):(n+=a,a="",(E===1||c===0)&&(n+=` - `.concat(k),_++))}if(_>20&&c20&&c30)for(d[26]="".concat(Js,"...").concat(io);d.length>27;)d.pop();d.length===1?i=t.call(this,"".concat(v," ").concat(d[0])):i=t.call(this,"".concat(v,` `).concat(d.join(` `),` -`))}else{var p=qy(f),g="",m=sh[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(sh[l],` +`))}else{var p=Py(f),y="",m=sh[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(sh[l],` -`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(g="".concat(qy(u)),p.length>512&&(p="".concat(p.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(m,` +`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(y="".concat(Py(u)),p.length>512&&(p="".concat(p.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(m,` `).concat(p,` should equal -`):g=" ".concat(l," ").concat(g)),i=t.call(this,"".concat(p).concat(g))}return Error.stackTraceLimit=c,i.generatedMessage=!o,Object.defineProperty(q8(i),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),i.code="ERR_ASSERTION",i.actual=f,i.expected=u,i.operator=l,Error.captureStackTrace&&Error.captureStackTrace(q8(i),s),i.stack,i.name="AssertionError",Kj(i)}return W5e(a,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:r,value:function(i,o){return N8(this,Xj(Xj({},o),{},{customInspect:!1,depth:0}))}}]),a}(P8(Error),N8.custom);rX.exports=a4e});var O8=P((nPe,nX)=>{"use strict";var aX=Object.prototype.toString;nX.exports=function(r){var t=aX.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&aX.call(r.callee)==="[object Function]"),a}});var hX=P((iPe,vX)=>{"use strict";var cX;Object.keys||(Oy=Object.prototype.hasOwnProperty,I8=Object.prototype.toString,iX=O8(),B8=Object.prototype.propertyIsEnumerable,oX=!B8.call({toString:null},"toString"),lX=B8.call(function(){},"prototype"),Iy=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Yx=function(e){var r=e.constructor;return r&&r.prototype===e},sX={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},fX=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!sX["$"+e]&&Oy.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Yx(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),uX=function(e){if(typeof window=="undefined"||!fX)return Yx(e);try{return Yx(e)}catch(r){return!1}},cX=function(r){var t=r!==null&&typeof r=="object",a=I8.call(r)==="[object Function]",n=iX(r),i=t&&I8.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=lX&&a;if(i&&r.length>0&&!Oy.call(r,0))for(var s=0;s0)for(var f=0;f{"use strict";var n4e=Array.prototype.slice,i4e=O8(),dX=Object.keys,Wx=dX?function(r){return dX(r)}:hX(),pX=Object.keys;Wx.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(a){return i4e(a)?pX(n4e.call(a)):pX(a)})}else Object.keys=Wx;return Object.keys||Wx};mX.exports=Wx});var wX=P((lPe,_X)=>{"use strict";var o4e=z8(),bX=dx()(),xX=g1(),yX=Object,l4e=xX("Array.prototype.push"),gX=xX("Object.prototype.propertyIsEnumerable"),s4e=bX?Object.getOwnPropertySymbols:null;_X.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=yX(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var G8=wX(),f4e=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var MX=function(e){return e!==e};SX.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||MX(r)&&MX(t))}});var jx=P((uPe,EX)=>{"use strict";var c4e=U8();EX.exports=function(){return typeof Object.is=="function"?Object.is:c4e}});var By=P((cPe,DX)=>{"use strict";var v4e=z8(),h4e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",d4e=Object.prototype.toString,p4e=Array.prototype.concat,kX=Object.defineProperty,m4e=function(e){return typeof e=="function"&&d4e.call(e)==="[object Function]"},y4e=i8()(),CX=kX&&y4e,g4e=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!m4e(a)||!a())return}CX?kX(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},LX=function(e,r){var t=arguments.length>2?arguments[2]:{},a=v4e(r);h4e&&(a=p4e.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var b4e=jx(),x4e=By();FX.exports=function(){var r=b4e();return x4e(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var OX=P((hPe,NX)=>{"use strict";var _4e=By(),w4e=Sy(),A4e=U8(),qX=jx(),T4e=RX(),PX=w4e(qX(),Object);_4e(PX,{getPolyfill:qX,implementation:A4e,shim:T4e});NX.exports=PX});var H8=P((dPe,IX)=>{"use strict";IX.exports=function(r){return r!==r}});var V8=P((pPe,BX)=>{"use strict";var M4e=H8();BX.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:M4e}});var GX=P((mPe,zX)=>{"use strict";var S4e=By(),E4e=V8();zX.exports=function(){var r=E4e();return S4e(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var YX=P((yPe,VX)=>{"use strict";var k4e=Sy(),C4e=By(),L4e=H8(),UX=V8(),D4e=GX(),HX=k4e(UX(),Number);C4e(HX,{getPolyfill:UX,implementation:L4e,shim:D4e});VX.exports=HX});var cZ=P((gPe,uZ)=>{"use strict";function WX(e,r){return P4e(e)||q4e(e,r)||R4e(e,r)||F4e()}function F4e(){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 R4e(e,r){if(e){if(typeof e=="string")return jX(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return jX(e,r)}}function jX(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t10)return!0;for(var r=0;r57)return!0}return e.length===10&&e>=Math.pow(2,32)}function Jx(e){return Object.keys(e).filter(V4e).concat(Qx(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function oZ(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n{"use strict";function $s(e){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$s(e)}function vZ(e,r){for(var t=0;t1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n{"use strict";var iX=Object.prototype.toString;oX.exports=function(r){var t=iX.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&iX.call(r.callee)==="[object Function]"),a}});var pX=P((lPe,dX)=>{"use strict";var hX;Object.keys||(Oy=Object.prototype.hasOwnProperty,O8=Object.prototype.toString,lX=I8(),B8=Object.prototype.propertyIsEnumerable,sX=!B8.call({toString:null},"toString"),fX=B8.call(function(){},"prototype"),By=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Yx=function(e){var r=e.constructor;return r&&r.prototype===e},uX={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},cX=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!uX["$"+e]&&Oy.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Yx(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),vX=function(e){if(typeof window=="undefined"||!cX)return Yx(e);try{return Yx(e)}catch(r){return!1}},hX=function(r){var t=r!==null&&typeof r=="object",a=O8.call(r)==="[object Function]",n=lX(r),i=t&&O8.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=fX&&a;if(i&&r.length>0&&!Oy.call(r,0))for(var s=0;s0)for(var f=0;f{"use strict";var l4e=Array.prototype.slice,s4e=I8(),mX=Object.keys,Wx=mX?function(r){return mX(r)}:pX(),yX=Object.keys;Wx.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(a){return s4e(a)?yX(l4e.call(a)):yX(a)})}else Object.keys=Wx;return Object.keys||Wx};gX.exports=Wx});var TX=P((fPe,AX)=>{"use strict";var f4e=z8(),_X=dx()(),wX=bp(),bX=Object,u4e=wX("Array.prototype.push"),xX=wX("Object.prototype.propertyIsEnumerable"),c4e=_X?Object.getOwnPropertySymbols:null;AX.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=bX(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var G8=TX(),v4e=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var EX=function(e){return e!==e};kX.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||EX(r)&&EX(t))}});var jx=P((vPe,CX)=>{"use strict";var d4e=U8();CX.exports=function(){return typeof Object.is=="function"?Object.is:d4e}});var zy=P((hPe,qX)=>{"use strict";var p4e=z8(),m4e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",y4e=Object.prototype.toString,g4e=Array.prototype.concat,LX=Object.defineProperty,b4e=function(e){return typeof e=="function"&&y4e.call(e)==="[object Function]"},x4e=i8()(),DX=LX&&x4e,_4e=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!b4e(a)||!a())return}DX?LX(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},FX=function(e,r){var t=arguments.length>2?arguments[2]:{},a=p4e(r);m4e&&(a=g4e.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var w4e=jx(),A4e=zy();RX.exports=function(){var r=w4e();return A4e(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var BX=P((pPe,OX)=>{"use strict";var T4e=zy(),M4e=Ey(),S4e=U8(),NX=jx(),E4e=PX(),IX=M4e(NX(),Object);T4e(IX,{getPolyfill:NX,implementation:S4e,shim:E4e});OX.exports=IX});var H8=P((mPe,zX)=>{"use strict";zX.exports=function(r){return r!==r}});var V8=P((yPe,GX)=>{"use strict";var k4e=H8();GX.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:k4e}});var HX=P((gPe,UX)=>{"use strict";var C4e=zy(),L4e=V8();UX.exports=function(){var r=L4e();return C4e(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var jX=P((bPe,WX)=>{"use strict";var D4e=Ey(),F4e=zy(),q4e=H8(),VX=V8(),R4e=HX(),YX=D4e(VX(),Number);F4e(YX,{getPolyfill:VX,implementation:q4e,shim:R4e});WX.exports=YX});var hZ=P((xPe,vZ)=>{"use strict";function XX(e,r){return O4e(e)||I4e(e,r)||N4e(e,r)||P4e()}function P4e(){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 N4e(e,r){if(e){if(typeof e=="string")return ZX(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ZX(e,r)}}function ZX(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t10)return!0;for(var r=0;r57)return!0}return e.length===10&&e>=Math.pow(2,32)}function Jx(e){return Object.keys(e).filter(j4e).concat(Qx(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function sZ(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n{"use strict";function $s(e){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$s(e)}function dZ(e,r){for(var t=0;t1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n{"use strict";var mwe=am(),ywe=jT(),gwe=hY(),bwe=ZT(),LZ=Hx();DZ.exports=xwe;function xwe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(LZ(bwe(e),"String is not an SVG path."),e=mwe(e)),LZ(Array.isArray(e),"Argument should be a string or an array of path segments."),e=ywe(e),e=gwe(e),!e.length)return[0,0,0,0];for(var r=[1/0,1/0,-1/0,-1/0],t=0,a=e.length;tr[2]&&(r[2]=n[i+0]),n[i+1]>r[3]&&(r[3]=n[i+1]);return r}});var IZ=P((_Pe,OZ)=>{var fh=Math.PI,RZ=NZ(120);OZ.exports=_we;function _we(e){for(var r,t=[],a=0,n=0,i=0,o=0,l=null,s=null,f=0,u=0,c=0,v=e.length;c7&&(t.push(d.splice(0,7)),d.unshift("C"));break;case"S":var g=f,m=u;(r=="C"||r=="S")&&(g+=g-a,m+=m-n),d=["C",g,m,d[1],d[2],d[3],d[4]];break;case"T":r=="Q"||r=="T"?(l=f*2-l,s=u*2-s):(l=f,s=u),d=qZ(f,u,l,s,d[1],d[2]);break;case"Q":l=d[1],s=d[2],d=qZ(f,u,d[1],d[2],d[3],d[4]);break;case"L":d=o_(f,u,d[1],d[2]);break;case"H":d=o_(f,u,d[1],u);break;case"V":d=o_(f,u,f,d[1]);break;case"Z":d=o_(f,u,i,o);break}r=p,f=d[d.length-2],u=d[d.length-1],d.length>4?(a=d[d.length-4],n=d[d.length-3]):(a=f,n=u),t.push(d)}return t}function o_(e,r,t,a){return["C",e,r,t,a,t,a]}function qZ(e,r,t,a,n,i){return["C",e/3+2/3*t,r/3+2/3*a,n/3+2/3*t,i/3+2/3*a,n,i]}function PZ(e,r,t,a,n,i,o,l,s,f){if(f)_=f[0],x=f[1],b=f[2],A=f[3];else{var u=J8(e,r,-n);e=u.x,r=u.y,u=J8(l,s,-n),l=u.x,s=u.y;var c=(e-l)/2,v=(r-s)/2,d=c*c/(t*t)+v*v/(a*a);d>1&&(d=Math.sqrt(d),t=d*t,a=d*a);var p=t*t,g=a*a,m=(i==o?-1:1)*Math.sqrt(Math.abs((p*g-p*v*v-g*c*c)/(p*v*v+g*c*c)));m==1/0&&(m=1);var b=m*t*v/a+(e+l)/2,A=m*-a*c/t+(r+s)/2,_=Math.asin(((r-A)/a).toFixed(9)),x=Math.asin(((s-A)/a).toFixed(9));_=ex&&(_=_-fh*2),!o&&x>_&&(x=x-fh*2)}if(Math.abs(x-_)>RZ){var T=x,E=l,M=s;x=_+RZ*(o&&x>_?1:-1),l=b+t*Math.cos(x),s=A+a*Math.sin(x);var k=PZ(l,s,t,a,n,0,o,E,M,[x,T,b,A])}var F=Math.tan((x-_)/4),O=4/3*t*F,I=4/3*a*F,R=[2*e-(e+O*Math.sin(_)),2*r-(r-I*Math.cos(_)),l+O*Math.sin(x),s-I*Math.cos(x),l,s];if(f)return R;k&&(R=R.concat(k));for(var H=0;H{var wwe=jT(),Awe=IZ(),Twe={M:"moveTo",C:"bezierCurveTo"};BZ.exports=function(e,r){e.beginPath(),Awe(wwe(r)).forEach(function(t){var a=t[0],n=t.slice(1);e[Twe[a]].apply(e,n)}),e.closePath()}});var VZ=P((APe,HZ)=>{"use strict";var Mwe=by();HZ.exports=Swe;var Vy=1e20;function Swe(e,r){r||(r={});var t=r.cutoff==null?.25:r.cutoff,a=r.radius==null?8:r.radius,n=r.channel||0,i,o,l,s,f,u,c,v,d,p,g;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!r.width||!r.height)throw Error("For raw data width and height should be provided by options");i=r.width,o=r.height,s=e,r.stride?u=r.stride:u=Math.floor(e.length/i/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(v=e,c=v.getContext("2d"),i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,u=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(v=e.canvas,c=e,i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,u=4):window.ImageData&&e instanceof window.ImageData&&(d=e,i=e.width,o=e.height,s=d.data,u=4);if(l=Math.max(i,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(f=s,s=Array(i*o),p=0,g=f.length;p{"use strict";var Ewe=FZ(),kwe=am(),Cwe=zZ(),Lwe=ZT(),Dwe=VZ(),$8=document.createElement("canvas"),No=$8.getContext("2d");YZ.exports=Fwe;function Fwe(e,r){if(!Lwe(e))throw Error("Argument should be valid svg path string");r||(r={});var t,a;r.shape?(t=r.shape[0],a=r.shape[1]):(t=$8.width=r.w||r.width||200,a=$8.height=r.h||r.height||200);var n=Math.min(t,a),i=r.stroke||0,o=r.viewbox||r.viewBox||Ewe(e),l=[t/(o[2]-o[0]),a/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(No.fillStyle="black",No.fillRect(0,0,t,a),No.fillStyle="white",i&&(typeof i!="number"&&(i=1),i>0?No.strokeStyle="white":No.strokeStyle="black",No.lineWidth=Math.abs(i)),No.translate(t*.5,a*.5),No.scale(s,s),Rwe()){var f=new Path2D(e);No.fill(f),i&&No.stroke(f)}else{var u=kwe(e);Cwe(No,u),No.fill(),i&&No.stroke()}No.setTransform(1,0,0,1,0,0);var c=Dwe(No,{cutoff:r.cutoff!=null?r.cutoff:.5,radius:r.radius!=null?r.radius:n*.5});return c}var l_;function Rwe(){if(l_!=null)return l_;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return l_=!1;var r=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(r);var t=e.getImageData(0,0,1,1);return l_=t&&t.data&&t.data[3]===255}});var Q8=P((MPe,jZ)=>{"use strict";jZ.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var $Z=P((SPe,JZ)=>{"use strict";var XZ=Q8();JZ.exports=qwe;var ZZ={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function qwe(e){var r,t=[],a=1,n;if(typeof e=="string")if(e=e.toLowerCase(),XZ[e])t=XZ[e].slice(),n="rgb";else if(e==="transparent")a=0,n="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var i=e.slice(1),o=i.length,l=o<=4;a=1,l?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],o===4&&(a=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],o===8&&(a=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=r[1],f=s==="rgb",i=s.replace(/a$/,"");n=i;var o=i==="cmyk"?4:i==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(v,d){if(/%$/.test(v))return d===o?parseFloat(v)/100:i==="rgb"?parseFloat(v)*255/100:parseFloat(v);if(i[d]==="h"){if(/deg$/.test(v))return parseFloat(v);if(ZZ[v]!==void 0)return ZZ[v]}return parseFloat(v)}),s===i&&t.push(1),a=f||t[o]===void 0?1:t[o],t=t.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(u){return parseFloat(u)}),n=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],n="rgb",a=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),a=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(a/=100)):(n="rgb",t=[e>>>16,(e&65280)>>>8,e&255]);return{space:n,values:t,alpha:a}}});var KZ=P((EPe,QZ)=>{"use strict";var Pwe=$Z();QZ.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,a,n,i=Pwe(r);if(!i.space)return[];var o=[0,0,0],l=i.space[0]==="h"?[360,100,100]:[255,255,255];return t=Array(3),t[0]=Math.min(Math.max(i.values[0],o[0]),l[0]),t[1]=Math.min(Math.max(i.values[1],o[1]),l[1]),t[2]=Math.min(Math.max(i.values[2],o[2]),l[2]),i.space[0]==="h"&&(t=Nwe(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t};function Nwe(e){var r=e[0]/360,t=e[1]/100,a=e[2]/100,n,i,o,l,s,f=0;if(t===0)return s=a*255,[s,s,s];for(i=a<.5?a*(1+t):a+t-a*t,n=2*a-i,l=[0,0,0];f<3;)o=r+1/3*-(f-1),o<0?o++:o>1&&o--,s=6*o<1?n+(i-n)*6*o:2*o<1?i:3*o<2?n+(i-n)*(2/3-o)*6:n,l[f++]=s*255;return l}});var uh=P((kPe,eJ)=>{"use strict";var Owe=KZ(),s_=by(),Iwe=cx();eJ.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var a=Iwe(t),n=new a(4),i=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=Owe(r),r[0]/=255,r[1]/=255,r[2]/=255),Bwe(r)?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:255,i&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(i?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:1):(n[0]=s_(Math.floor(r[0]*255),0,255),n[1]=s_(Math.floor(r[1]*255),0,255),n[2]=s_(Math.floor(r[2]*255),0,255),n[3]=r[3]==null?255:s_(Math.floor(r[3]*255),0,255)),n)};function Bwe(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var sJ=P((CPe,lJ)=>{"use strict";var iJ=ga(),zwe=Es(),f_=uh(),u_=yd(),Gwe=wf().defaultLine,rJ=Vo().isArrayOrTypedArray,K8=f_(Gwe),oJ=1;function tJ(e,r){var t=e;return t[3]*=r,t}function aJ(e){if(iJ(e))return K8;var r=f_(e);return r.length?r:K8}function nJ(e){return iJ(e)?e:oJ}function Uwe(e,r,t){var a=e.color;a&&a._inputArray&&(a=a._inputArray);var n=rJ(a),i=rJ(r),o=u_.extractOpts(e),l=[],s,f,u,c,v;if(o.colorscale!==void 0?s=u_.makeColorScaleFuncFromTrace(e):s=aJ,n?f=function(p,g){return p[g]===void 0?K8:f_(s(p[g]))}:f=aJ,i?u=function(p,g){return p[g]===void 0?oJ:nJ(p[g])}:u=nJ,n||i)for(var d=0;d{"use strict";var v_=ga(),Vwe=WZ(),c_=uh(),Ywe=Bt(),E1=Ur(),Vn=E1.isArrayOrTypedArray,M1=Wa(),fJ=Sn(),uJ=sJ().formatColor,S1=qi(),Wwe=I4(),r7=fx(),Yy=s1(),jwe=Jh().DESELECTDIM,cJ={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},Xwe=Cu().appendArrayPointValue;function Zwe(e,r){var t,a={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},n=e._context.plotGlPixelRatio;if(r.visible!==!0)return a;if(S1.hasText(r)&&(a.text=gJ(e,r),a.textSel=hJ(e,r,r.selected),a.textUnsel=hJ(e,r,r.unselected)),S1.hasMarkers(r)&&(a.marker=a7(e,r),a.markerSel=t7(e,r,r.selected),a.markerUnsel=t7(e,r,r.unselected),!r.unselected&&Vn(r.marker.opacity))){var i=r.marker.opacity;for(a.markerUnsel.opacity=new Array(i.length),t=0;t500?"bold":"normal":e}function a7(e,r){var t=r._length,a=r.marker,n={},i,o=Vn(a.symbol),l=Vn(a.angle),s=Vn(a.color),f=Vn(a.line.color),u=Vn(a.opacity),c=Vn(a.size),v=Vn(a.line.width),d;if(o||(d=r7.isOpenSymbol(a.symbol)),o||s||f||u||l){n.symbols=new Array(t),n.angles=new Array(t),n.colors=new Array(t),n.borderColors=new Array(t);var p=a.symbol,g=a.angle,m=uJ(a,a.opacity,t),b=uJ(a.line,a.opacity,t);if(!Vn(b[0])){var A=b;for(b=Array(t),i=0;iYy.TOO_MANY_POINTS||S1.hasMarkers(r)?"rect":"round";if(f&&r.connectgaps){var c=i[0],v=i[1];for(o=0;o1?s[o]:s[0]:s,d=Vn(f)?f.length>1?f[o]:f[0]:f,p=cJ[v],g=cJ[d],m=u?u/.8+1:0,b=-g*m-g*.5;i.offset[o]=[p*m/c,b/c]}}return i}bJ.exports={style:Zwe,markerStyle:a7,markerSelection:t7,linePositions:$we,errorBarPositions:Qwe,textPosition:Kwe}});var _J=P((DPe,xJ)=>{"use strict";var h_=Ur();xJ.exports=function(r,t){var a=t._scene,n={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},i={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return t._scene||(a=t._scene={},a.init=function(){h_.extendFlat(a,i,n)},a.init(),a.update=function(l){var s=h_.repeat(l,a.count);if(a.fill2d&&a.fill2d.update(s),a.scatter2d&&a.scatter2d.update(s),a.line2d&&a.line2d.update(s),a.error2d&&a.error2d.update(s.concat(s)),a.select2d&&a.select2d.update(s),a.glText)for(var f=0;f{"use strict";var eAe=WT(),k1=Ur(),wJ=Sn(),rAe=wd().findExtremes,AJ=b6(),n7=Vd(),tAe=n7.calcMarkerSize,aAe=n7.calcAxisExpansion,nAe=n7.setFirstScatter,iAe=Qm(),C1=Wy(),oAe=_J(),TJ=Qn().BADNUM,lAe=s1().TOO_MANY_POINTS;SJ.exports=function(r,t){var a=r._fullLayout,n=t._xA=wJ.getFromId(r,t.xaxis,"x"),i=t._yA=wJ.getFromId(r,t.yaxis,"y"),o=a._plots[t.xaxis+t.yaxis],l=t._length,s=l>=lAe,f=l*2,u={},c,v=n.makeCalcdata(t,"x"),d=i.makeCalcdata(t,"y"),p=AJ(t,n,"x",v),g=AJ(t,i,"y",d),m=p.vals,b=g.vals;t._x=m,t._y=b,t.xperiodalignment&&(t._origX=v,t._xStarts=p.starts,t._xEnds=p.ends),t.yperiodalignment&&(t._origY=d,t._yStarts=g.starts,t._yEnds=g.ends);var A=new Array(f),_=new Array(l);for(c=0;c1&&k1.extendFlat(o.line,C1.linePositions(e,t,a)),o.errorX||o.errorY){var l=C1.errorBarPositions(e,t,a,n,i);o.errorX&&k1.extendFlat(o.errorX,l.x),o.errorY&&k1.extendFlat(o.errorY,l.y)}return o.text&&(k1.extendFlat(o.text,{positions:a},C1.textPosition(e,t,o.text,o.marker)),k1.extendFlat(o.textSel,{positions:a},C1.textPosition(e,t,o.text,o.markerSel)),k1.extendFlat(o.textUnsel,{positions:a},C1.textPosition(e,t,o.text,o.markerUnsel))),o}});var i7=P((RPe,CJ)=>{"use strict";var kJ=Ur(),fAe=va(),uAe=Jh().DESELECTDIM;function cAe(e){var r=e[0],t=r.trace,a=r.t,n=a._scene,i=a.index,o=n.selectBatch[i],l=n.unselectBatch[i],s=n.textOptions[i],f=n.textSelectedOptions[i]||{},u=n.textUnselectedOptions[i]||{},c=kJ.extendFlat({},s),v,d;if(o.length||l.length){var p=f.color,g=u.color,m=s.color,b=kJ.isArrayOrTypedArray(m);for(c.color=new Array(t._length),v=0;v{"use strict";var LJ=qi(),vAe=i7().styleTextSelection;DJ.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s=a[0].t,f=l._length,u=s.x,c=s.y,v=s._scene,d=s.index;if(!v)return o;var p=LJ.hasText(l),g=LJ.hasMarkers(l),m=!g&&!p;if(l.visible!==!0||m)return o;var b=[],A=[];if(t!==!1&&!t.degenerate)for(var _=0;_{"use strict";var hAe=GT();RJ.exports={moduleType:"trace",name:"scattergl",basePlotModule:iy(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:sx(),supplyDefaults:qV(),crossTraceDefaults:g6(),colorbar:Mb(),formatLabels:NV(),calc:EJ(),hoverPoints:hAe.hoverPoints,selectPoints:FJ(),meta:{}}});var NJ=P((NPe,p_)=>{"use strict";var d_=by();p_.exports=PJ;p_.exports.to=PJ;p_.exports.from=dAe;function PJ(e,r){r==null&&(r=!0);var t=e[0],a=e[1],n=e[2],i=e[3];i==null&&(i=r?1:255),r&&(t*=255,a*=255,n*=255,i*=255),t=d_(t,0,255)&255,a=d_(a,0,255)&255,n=d_(n,0,255)&255,i=d_(i,0,255)&255;var o=t*16777216+(a<<16)+(n<<8)+i;return o}function dAe(e,r){e=+e;var t=e>>>24,a=(e&16711680)>>>16,n=(e&65280)>>>8,i=e&255;return r===!1?[t,a,n,i]:[t/255,a/255,n/255,i/255]}});var ni=P((OPe,IJ)=>{"use strict";var OJ=Object.getOwnPropertySymbols,pAe=Object.prototype.hasOwnProperty,mAe=Object.prototype.propertyIsEnumerable;function yAe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function gAe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}IJ.exports=gAe()?Object.assign:function(e,r){for(var t,a=yAe(e),n,i=1;i{BJ.exports=function(e){typeof e=="string"&&(e=[e]);for(var r=[].slice.call(arguments,1),t=[],a=0;a{"use strict";GJ.exports=function(r,t,a){Array.isArray(a)||(a=[].slice.call(arguments,2));for(var n=0,i=a.length;n{"use strict";UJ.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var m_=P((GPe,L1)=>{"use strict";L1.exports=jy;L1.exports.float32=L1.exports.float=jy;L1.exports.fract32=L1.exports.fract=bAe;var VJ=new Float32Array(1);function bAe(e,r){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);r instanceof Float32Array||(r=jy(e));for(var t=0,a=r.length;t{"use strict";function xAe(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a,n,i,o,l=[],s=!0,f=!1;try{if(i=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=i.call(t)).done)&&(l.push(a.value),l.length!==r);s=!0);}catch(u){f=!0,n=u}finally{try{if(!s&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(f)throw n}}return l}}function _Ae(e,r){return TAe(e)||xAe(e,r)||WJ(e,r)||EAe()}function wAe(e){return AAe(e)||MAe(e)||WJ(e)||SAe()}function AAe(e){if(Array.isArray(e))return l7(e)}function TAe(e){if(Array.isArray(e))return e}function MAe(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WJ(e,r){if(e){if(typeof e=="string")return l7(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l7(e,r)}}function l7(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t{"use strict";var bwe=nm(),xwe=jT(),_we=pY(),wwe=ZT(),FZ=Hx();qZ.exports=Awe;function Awe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(FZ(wwe(e),"String is not an SVG path."),e=bwe(e)),FZ(Array.isArray(e),"Argument should be a string or an array of path segments."),e=xwe(e),e=_we(e),!e.length)return[0,0,0,0];for(var r=[1/0,1/0,-1/0,-1/0],t=0,a=e.length;tr[2]&&(r[2]=n[i+0]),n[i+1]>r[3]&&(r[3]=n[i+1]);return r}});var zZ=P((APe,BZ)=>{var fh=Math.PI,PZ=OZ(120);BZ.exports=Twe;function Twe(e){for(var r,t=[],a=0,n=0,i=0,o=0,l=null,s=null,f=0,u=0,c=0,v=e.length;c7&&(t.push(d.splice(0,7)),d.unshift("C"));break;case"S":var y=f,m=u;(r=="C"||r=="S")&&(y+=y-a,m+=m-n),d=["C",y,m,d[1],d[2],d[3],d[4]];break;case"T":r=="Q"||r=="T"?(l=f*2-l,s=u*2-s):(l=f,s=u),d=NZ(f,u,l,s,d[1],d[2]);break;case"Q":l=d[1],s=d[2],d=NZ(f,u,d[1],d[2],d[3],d[4]);break;case"L":d=o_(f,u,d[1],d[2]);break;case"H":d=o_(f,u,d[1],u);break;case"V":d=o_(f,u,f,d[1]);break;case"Z":d=o_(f,u,i,o);break}r=p,f=d[d.length-2],u=d[d.length-1],d.length>4?(a=d[d.length-4],n=d[d.length-3]):(a=f,n=u),t.push(d)}return t}function o_(e,r,t,a){return["C",e,r,t,a,t,a]}function NZ(e,r,t,a,n,i){return["C",e/3+2/3*t,r/3+2/3*a,n/3+2/3*t,i/3+2/3*a,n,i]}function IZ(e,r,t,a,n,i,o,l,s,f){if(f)_=f[0],x=f[1],b=f[2],A=f[3];else{var u=J8(e,r,-n);e=u.x,r=u.y,u=J8(l,s,-n),l=u.x,s=u.y;var c=(e-l)/2,v=(r-s)/2,d=c*c/(t*t)+v*v/(a*a);d>1&&(d=Math.sqrt(d),t=d*t,a=d*a);var p=t*t,y=a*a,m=(i==o?-1:1)*Math.sqrt(Math.abs((p*y-p*v*v-y*c*c)/(p*v*v+y*c*c)));m==1/0&&(m=1);var b=m*t*v/a+(e+l)/2,A=m*-a*c/t+(r+s)/2,_=Math.asin(((r-A)/a).toFixed(9)),x=Math.asin(((s-A)/a).toFixed(9));_=ex&&(_=_-fh*2),!o&&x>_&&(x=x-fh*2)}if(Math.abs(x-_)>PZ){var T=x,E=l,M=s;x=_+PZ*(o&&x>_?1:-1),l=b+t*Math.cos(x),s=A+a*Math.sin(x);var C=IZ(l,s,t,a,n,0,o,E,M,[x,T,b,A])}var F=Math.tan((x-_)/4),I=4/3*t*F,O=4/3*a*F,q=[2*e-(e+I*Math.sin(_)),2*r-(r-O*Math.cos(_)),l+I*Math.sin(x),s-O*Math.cos(x),l,s];if(f)return q;C&&(q=q.concat(C));for(var H=0;H{var Mwe=jT(),Swe=zZ(),Ewe={M:"moveTo",C:"bezierCurveTo"};GZ.exports=function(e,r){e.beginPath(),Swe(Mwe(r)).forEach(function(t){var a=t[0],n=t.slice(1);e[Ewe[a]].apply(e,n)}),e.closePath()}});var WZ=P((MPe,YZ)=>{"use strict";var kwe=xy();YZ.exports=Cwe;var Yy=1e20;function Cwe(e,r){r||(r={});var t=r.cutoff==null?.25:r.cutoff,a=r.radius==null?8:r.radius,n=r.channel||0,i,o,l,s,f,u,c,v,d,p,y;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!r.width||!r.height)throw Error("For raw data width and height should be provided by options");i=r.width,o=r.height,s=e,r.stride?u=r.stride:u=Math.floor(e.length/i/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(v=e,c=v.getContext("2d"),i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,u=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(v=e.canvas,c=e,i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,u=4):window.ImageData&&e instanceof window.ImageData&&(d=e,i=e.width,o=e.height,s=d.data,u=4);if(l=Math.max(i,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(f=s,s=Array(i*o),p=0,y=f.length;p{"use strict";var Lwe=RZ(),Dwe=nm(),Fwe=UZ(),qwe=ZT(),Rwe=WZ(),$8=document.createElement("canvas"),Io=$8.getContext("2d");jZ.exports=Pwe;function Pwe(e,r){if(!qwe(e))throw Error("Argument should be valid svg path string");r||(r={});var t,a;r.shape?(t=r.shape[0],a=r.shape[1]):(t=$8.width=r.w||r.width||200,a=$8.height=r.h||r.height||200);var n=Math.min(t,a),i=r.stroke||0,o=r.viewbox||r.viewBox||Lwe(e),l=[t/(o[2]-o[0]),a/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(Io.fillStyle="black",Io.fillRect(0,0,t,a),Io.fillStyle="white",i&&(typeof i!="number"&&(i=1),i>0?Io.strokeStyle="white":Io.strokeStyle="black",Io.lineWidth=Math.abs(i)),Io.translate(t*.5,a*.5),Io.scale(s,s),Nwe()){var f=new Path2D(e);Io.fill(f),i&&Io.stroke(f)}else{var u=Dwe(e);Fwe(Io,u),Io.fill(),i&&Io.stroke()}Io.setTransform(1,0,0,1,0,0);var c=Rwe(Io,{cutoff:r.cutoff!=null?r.cutoff:.5,radius:r.radius!=null?r.radius:n*.5});return c}var l_;function Nwe(){if(l_!=null)return l_;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return l_=!1;var r=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(r);var t=e.getImageData(0,0,1,1);return l_=t&&t.data&&t.data[3]===255}});var Q8=P((EPe,ZZ)=>{"use strict";ZZ.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var KZ=P((kPe,QZ)=>{"use strict";var JZ=Q8();QZ.exports=Iwe;var $Z={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Iwe(e){var r,t=[],a=1,n;if(typeof e=="string")if(e=e.toLowerCase(),JZ[e])t=JZ[e].slice(),n="rgb";else if(e==="transparent")a=0,n="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var i=e.slice(1),o=i.length,l=o<=4;a=1,l?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],o===4&&(a=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],o===8&&(a=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=r[1],f=s==="rgb",i=s.replace(/a$/,"");n=i;var o=i==="cmyk"?4:i==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(v,d){if(/%$/.test(v))return d===o?parseFloat(v)/100:i==="rgb"?parseFloat(v)*255/100:parseFloat(v);if(i[d]==="h"){if(/deg$/.test(v))return parseFloat(v);if($Z[v]!==void 0)return $Z[v]}return parseFloat(v)}),s===i&&t.push(1),a=f||t[o]===void 0?1:t[o],t=t.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(u){return parseFloat(u)}),n=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],n="rgb",a=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),a=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(a/=100)):(n="rgb",t=[e>>>16,(e&65280)>>>8,e&255]);return{space:n,values:t,alpha:a}}});var rJ=P((CPe,eJ)=>{"use strict";var Owe=KZ();eJ.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,a,n,i=Owe(r);if(!i.space)return[];var o=[0,0,0],l=i.space[0]==="h"?[360,100,100]:[255,255,255];return t=Array(3),t[0]=Math.min(Math.max(i.values[0],o[0]),l[0]),t[1]=Math.min(Math.max(i.values[1],o[1]),l[1]),t[2]=Math.min(Math.max(i.values[2],o[2]),l[2]),i.space[0]==="h"&&(t=Bwe(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t};function Bwe(e){var r=e[0]/360,t=e[1]/100,a=e[2]/100,n,i,o,l,s,f=0;if(t===0)return s=a*255,[s,s,s];for(i=a<.5?a*(1+t):a+t-a*t,n=2*a-i,l=[0,0,0];f<3;)o=r+1/3*-(f-1),o<0?o++:o>1&&o--,s=6*o<1?n+(i-n)*6*o:2*o<1?i:3*o<2?n+(i-n)*(2/3-o)*6:n,l[f++]=s*255;return l}});var uh=P((LPe,tJ)=>{"use strict";var zwe=rJ(),s_=xy(),Gwe=cx();tJ.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var a=Gwe(t),n=new a(4),i=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=zwe(r),r[0]/=255,r[1]/=255,r[2]/=255),Uwe(r)?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:255,i&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(i?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:1):(n[0]=s_(Math.floor(r[0]*255),0,255),n[1]=s_(Math.floor(r[1]*255),0,255),n[2]=s_(Math.floor(r[2]*255),0,255),n[3]=r[3]==null?255:s_(Math.floor(r[3]*255),0,255)),n)};function Uwe(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var uJ=P((DPe,fJ)=>{"use strict";var lJ=ga(),Hwe=ks(),f_=uh(),u_=yd(),Vwe=wf().defaultLine,aJ=Yo().isArrayOrTypedArray,K8=f_(Vwe),sJ=1;function nJ(e,r){var t=e;return t[3]*=r,t}function iJ(e){if(lJ(e))return K8;var r=f_(e);return r.length?r:K8}function oJ(e){return lJ(e)?e:sJ}function Ywe(e,r,t){var a=e.color;a&&a._inputArray&&(a=a._inputArray);var n=aJ(a),i=aJ(r),o=u_.extractOpts(e),l=[],s,f,u,c,v;if(o.colorscale!==void 0?s=u_.makeColorScaleFuncFromTrace(e):s=iJ,n?f=function(p,y){return p[y]===void 0?K8:f_(s(p[y]))}:f=iJ,i?u=function(p,y){return p[y]===void 0?sJ:oJ(p[y])}:u=oJ,n||i)for(var d=0;d{"use strict";var v_=ga(),jwe=XZ(),c_=uh(),Xwe=Bt(),kp=Ur(),Yn=kp.isArrayOrTypedArray,Sp=Wa(),cJ=Sn(),vJ=uJ().formatColor,Ep=Ri(),Zwe=I4(),r7=fx(),Wy=fp(),Jwe=Jh().DESELECTDIM,hJ={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},$we=Cu().appendArrayPointValue;function Qwe(e,r){var t,a={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},n=e._context.plotGlPixelRatio;if(r.visible!==!0)return a;if(Ep.hasText(r)&&(a.text=xJ(e,r),a.textSel=pJ(e,r,r.selected),a.textUnsel=pJ(e,r,r.unselected)),Ep.hasMarkers(r)&&(a.marker=a7(e,r),a.markerSel=t7(e,r,r.selected),a.markerUnsel=t7(e,r,r.unselected),!r.unselected&&Yn(r.marker.opacity))){var i=r.marker.opacity;for(a.markerUnsel.opacity=new Array(i.length),t=0;t500?"bold":"normal":e}function a7(e,r){var t=r._length,a=r.marker,n={},i,o=Yn(a.symbol),l=Yn(a.angle),s=Yn(a.color),f=Yn(a.line.color),u=Yn(a.opacity),c=Yn(a.size),v=Yn(a.line.width),d;if(o||(d=r7.isOpenSymbol(a.symbol)),o||s||f||u||l){n.symbols=new Array(t),n.angles=new Array(t),n.colors=new Array(t),n.borderColors=new Array(t);var p=a.symbol,y=a.angle,m=vJ(a,a.opacity,t),b=vJ(a.line,a.opacity,t);if(!Yn(b[0])){var A=b;for(b=Array(t),i=0;iWy.TOO_MANY_POINTS||Ep.hasMarkers(r)?"rect":"round";if(f&&r.connectgaps){var c=i[0],v=i[1];for(o=0;o1?s[o]:s[0]:s,d=Yn(f)?f.length>1?f[o]:f[0]:f,p=hJ[v],y=hJ[d],m=u?u/.8+1:0,b=-y*m-y*.5;i.offset[o]=[p*m/c,b/c]}}return i}_J.exports={style:Qwe,markerStyle:a7,markerSelection:t7,linePositions:eAe,errorBarPositions:rAe,textPosition:tAe}});var AJ=P((qPe,wJ)=>{"use strict";var h_=Ur();wJ.exports=function(r,t){var a=t._scene,n={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},i={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return t._scene||(a=t._scene={},a.init=function(){h_.extendFlat(a,i,n)},a.init(),a.update=function(l){var s=h_.repeat(l,a.count);if(a.fill2d&&a.fill2d.update(s),a.scatter2d&&a.scatter2d.update(s),a.line2d&&a.line2d.update(s),a.error2d&&a.error2d.update(s.concat(s)),a.select2d&&a.select2d.update(s),a.glText)for(var f=0;f{"use strict";var aAe=WT(),Cp=Ur(),TJ=Sn(),nAe=wd().findExtremes,MJ=b6(),n7=Yd(),iAe=n7.calcMarkerSize,oAe=n7.calcAxisExpansion,lAe=n7.setFirstScatter,sAe=Km(),Lp=jy(),fAe=AJ(),SJ=Kn().BADNUM,uAe=fp().TOO_MANY_POINTS;kJ.exports=function(r,t){var a=r._fullLayout,n=t._xA=TJ.getFromId(r,t.xaxis,"x"),i=t._yA=TJ.getFromId(r,t.yaxis,"y"),o=a._plots[t.xaxis+t.yaxis],l=t._length,s=l>=uAe,f=l*2,u={},c,v=n.makeCalcdata(t,"x"),d=i.makeCalcdata(t,"y"),p=MJ(t,n,"x",v),y=MJ(t,i,"y",d),m=p.vals,b=y.vals;t._x=m,t._y=b,t.xperiodalignment&&(t._origX=v,t._xStarts=p.starts,t._xEnds=p.ends),t.yperiodalignment&&(t._origY=d,t._yStarts=y.starts,t._yEnds=y.ends);var A=new Array(f),_=new Array(l);for(c=0;c1&&Cp.extendFlat(o.line,Lp.linePositions(e,t,a)),o.errorX||o.errorY){var l=Lp.errorBarPositions(e,t,a,n,i);o.errorX&&Cp.extendFlat(o.errorX,l.x),o.errorY&&Cp.extendFlat(o.errorY,l.y)}return o.text&&(Cp.extendFlat(o.text,{positions:a},Lp.textPosition(e,t,o.text,o.marker)),Cp.extendFlat(o.textSel,{positions:a},Lp.textPosition(e,t,o.text,o.markerSel)),Cp.extendFlat(o.textUnsel,{positions:a},Lp.textPosition(e,t,o.text,o.markerUnsel))),o}});var i7=P((PPe,DJ)=>{"use strict";var LJ=Ur(),vAe=va(),hAe=Jh().DESELECTDIM;function dAe(e){var r=e[0],t=r.trace,a=r.t,n=a._scene,i=a.index,o=n.selectBatch[i],l=n.unselectBatch[i],s=n.textOptions[i],f=n.textSelectedOptions[i]||{},u=n.textUnselectedOptions[i]||{},c=LJ.extendFlat({},s),v,d;if(o.length||l.length){var p=f.color,y=u.color,m=s.color,b=LJ.isArrayOrTypedArray(m);for(c.color=new Array(t._length),v=0;v{"use strict";var FJ=Ri(),pAe=i7().styleTextSelection;qJ.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s=a[0].t,f=l._length,u=s.x,c=s.y,v=s._scene,d=s.index;if(!v)return o;var p=FJ.hasText(l),y=FJ.hasMarkers(l),m=!y&&!p;if(l.visible!==!0||m)return o;var b=[],A=[];if(t!==!1&&!t.degenerate)for(var _=0;_{"use strict";var mAe=GT();PJ.exports={moduleType:"trace",name:"scattergl",basePlotModule:oy(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:sx(),supplyDefaults:NV(),crossTraceDefaults:g6(),colorbar:Mb(),formatLabels:OV(),calc:CJ(),hoverPoints:mAe.hoverPoints,selectPoints:RJ(),meta:{}}});var OJ=P((OPe,p_)=>{"use strict";var d_=xy();p_.exports=IJ;p_.exports.to=IJ;p_.exports.from=yAe;function IJ(e,r){r==null&&(r=!0);var t=e[0],a=e[1],n=e[2],i=e[3];i==null&&(i=r?1:255),r&&(t*=255,a*=255,n*=255,i*=255),t=d_(t,0,255)&255,a=d_(a,0,255)&255,n=d_(n,0,255)&255,i=d_(i,0,255)&255;var o=t*16777216+(a<<16)+(n<<8)+i;return o}function yAe(e,r){e=+e;var t=e>>>24,a=(e&16711680)>>>16,n=(e&65280)>>>8,i=e&255;return r===!1?[t,a,n,i]:[t/255,a/255,n/255,i/255]}});var ni=P((BPe,zJ)=>{"use strict";var BJ=Object.getOwnPropertySymbols,gAe=Object.prototype.hasOwnProperty,bAe=Object.prototype.propertyIsEnumerable;function xAe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function _Ae(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}zJ.exports=_Ae()?Object.assign:function(e,r){for(var t,a=xAe(e),n,i=1;i{GJ.exports=function(e){typeof e=="string"&&(e=[e]);for(var r=[].slice.call(arguments,1),t=[],a=0;a{"use strict";HJ.exports=function(r,t,a){Array.isArray(a)||(a=[].slice.call(arguments,2));for(var n=0,i=a.length;n{"use strict";VJ.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var m_=P((HPe,Dp)=>{"use strict";Dp.exports=Xy;Dp.exports.float32=Dp.exports.float=Xy;Dp.exports.fract32=Dp.exports.fract=wAe;var WJ=new Float32Array(1);function wAe(e,r){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);r instanceof Float32Array||(r=Xy(e));for(var t=0,a=r.length;t{"use strict";function AAe(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a,n,i,o,l=[],s=!0,f=!1;try{if(i=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=i.call(t)).done)&&(l.push(a.value),l.length!==r);s=!0);}catch(u){f=!0,n=u}finally{try{if(!s&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(f)throw n}}return l}}function TAe(e,r){return EAe(e)||AAe(e,r)||XJ(e,r)||LAe()}function MAe(e){return SAe(e)||kAe(e)||XJ(e)||CAe()}function SAe(e){if(Array.isArray(e))return l7(e)}function EAe(e){if(Array.isArray(e))return e}function kAe(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XJ(e,r){if(e){if(typeof e=="string")return l7(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l7(e,r)}}function l7(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);tie)?Z.tree=DAe($,{bounds:Ze}):ie&&ie.length&&(Z.tree=ie),Z.tree){var Ae={primitive:"points",usage:"static",data:Z.tree,type:"uint32"};Z.elements?Z.elements(Ae):Z.elements=o.elements(Ae)}var ir=g_.float32($);ue({data:ir,usage:"dynamic"});var Ge=g_.fract32($,ir);return De({data:Ge,usage:"dynamic"}),Oe({data:new Uint8Array(Ee),type:"uint8",usage:"stream"}),$}},{marker:function($,Z,J){var ie=Z.activation;if(ie.forEach(function(Ge){return Ge&&Ge.destroy&&Ge.destroy()}),ie.length=0,!$||typeof $[0]=="number"){var ue=e.addMarker($);ie[ue]=!0}else{for(var De=[],Oe=0,Ee=Math.min($.length,Z.count);Oe=0)return n;var i;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)i=e;else{i=new Uint8Array(e.length);for(var o=0,l=e.length;oa*4&&(this.tooManyColors=!0),this.updatePalette(t),n.length===1?n[0]:n};Vi.prototype.updatePalette=function(e){if(!this.tooManyColors){var r=this.maxColors,t=this.paletteTexture,a=Math.ceil(e.length*.25/r);if(a>1){e=e.slice();for(var n=e.length*.25%r;n{"use strict";v7.exports=__;v7.exports.default=__;function __(e,r,t){t=t||2;var a=r&&r.length,n=a?r[0]*t:e.length,i=ZJ(e,0,n,t,!0),o=[];if(!i||i.next===i.prev)return o;var l,s,f,u,c,v,d;if(a&&(i=HAe(e,r,i,t)),e.length>80*t){l=f=e[0],s=u=e[1];for(var p=t;pf&&(f=c),v>u&&(u=v);d=Math.max(f-l,u-s),d=d!==0?32767/d:0}return Xy(i,o,t,l,s,d,0),o}function ZJ(e,r,t,a,n){var i,o;if(n===c7(e,r,t,a)>0)for(i=r;i=r;i-=a)o=XJ(i,e[i],e[i+1],o);return o&&w_(o,o.next)&&(Jy(o),o=o.next),o}function hh(e,r){if(!e)return e;r||(r=e);var t=e,a;do if(a=!1,!t.steiner&&(w_(t,t.next)||Yn(t.prev,t,t.next)===0)){if(Jy(t),t=r=t.prev,t===t.next)break;a=!0}else t=t.next;while(a||t!==r);return r}function Xy(e,r,t,a,n,i,o){if(e){!o&&i&&XAe(e,a,n,i);for(var l=e,s,f;e.prev!==e.next;){if(s=e.prev,f=e.next,i?zAe(e,a,n,i):BAe(e)){r.push(s.i/t|0),r.push(e.i/t|0),r.push(f.i/t|0),Jy(e),e=f.next,l=f.next;continue}if(e=f,e===l){o?o===1?(e=GAe(hh(e),r,t),Xy(e,r,t,a,n,i,2)):o===2&&UAe(e,r,t,a,n,i):Xy(hh(e),r,t,a,n,i,1);break}}}}function BAe(e){var r=e.prev,t=e,a=e.next;if(Yn(r,t,a)>=0)return!1;for(var n=r.x,i=t.x,o=a.x,l=r.y,s=t.y,f=a.y,u=ni?n>o?n:o:i>o?i:o,d=l>s?l>f?l:f:s>f?s:f,p=a.next;p!==r;){if(p.x>=u&&p.x<=v&&p.y>=c&&p.y<=d&&D1(n,l,i,s,o,f,p.x,p.y)&&Yn(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function zAe(e,r,t,a){var n=e.prev,i=e,o=e.next;if(Yn(n,i,o)>=0)return!1;for(var l=n.x,s=i.x,f=o.x,u=n.y,c=i.y,v=o.y,d=ls?l>f?l:f:s>f?s:f,m=u>c?u>v?u:v:c>v?c:v,b=f7(d,p,r,t,a),A=f7(g,m,r,t,a),_=e.prevZ,x=e.nextZ;_&&_.z>=b&&x&&x.z<=A;){if(_.x>=d&&_.x<=g&&_.y>=p&&_.y<=m&&_!==n&&_!==o&&D1(l,u,s,c,f,v,_.x,_.y)&&Yn(_.prev,_,_.next)>=0||(_=_.prevZ,x.x>=d&&x.x<=g&&x.y>=p&&x.y<=m&&x!==n&&x!==o&&D1(l,u,s,c,f,v,x.x,x.y)&&Yn(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;_&&_.z>=b;){if(_.x>=d&&_.x<=g&&_.y>=p&&_.y<=m&&_!==n&&_!==o&&D1(l,u,s,c,f,v,_.x,_.y)&&Yn(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;x&&x.z<=A;){if(x.x>=d&&x.x<=g&&x.y>=p&&x.y<=m&&x!==n&&x!==o&&D1(l,u,s,c,f,v,x.x,x.y)&&Yn(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function GAe(e,r,t){var a=e;do{var n=a.prev,i=a.next.next;!w_(n,i)&&JJ(n,a,a.next,i)&&Zy(n,i)&&Zy(i,n)&&(r.push(n.i/t|0),r.push(a.i/t|0),r.push(i.i/t|0),Jy(a),Jy(a.next),a=e=i),a=a.next}while(a!==e);return hh(a)}function UAe(e,r,t,a,n,i){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&$Ae(o,l)){var s=$J(o,l);o=hh(o,o.next),s=hh(s,s.next),Xy(o,r,t,a,n,i,0),Xy(s,r,t,a,n,i,0);return}l=l.next}o=o.next}while(o!==e)}function HAe(e,r,t,a){var n=[],i,o,l,s,f;for(i=0,o=r.length;i=t.next.y&&t.next.y!==t.y){var l=t.x+(n-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(l<=a&&l>i&&(i=l,o=t.x=t.x&&t.x>=f&&a!==t.x&&D1(no.x||t.x===o.x&&jAe(o,t)))&&(o=t,c=v)),t=t.next;while(t!==s);return o}function jAe(e,r){return Yn(e.prev,e,r.prev)<0&&Yn(r.next,e,e.next)<0}function XAe(e,r,t,a){var n=e;do n.z===0&&(n.z=f7(n.x,n.y,r,t,a)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,ZAe(n)}function ZAe(e){var r,t,a,n,i,o,l,s,f=1;do{for(t=e,e=null,i=null,o=0;t;){for(o++,a=t,l=0,r=0;r0||s>0&&a;)l!==0&&(s===0||!a||t.z<=a.z)?(n=t,t=t.nextZ,l--):(n=a,a=a.nextZ,s--),i?i.nextZ=n:e=n,n.prevZ=i,i=n;t=a}i.nextZ=null,f*=2}while(o>1);return e}function f7(e,r,t,a,n){return e=(e-t)*n|0,r=(r-a)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1}function JAe(e){var r=e,t=e;do(r.x=(e-o)*(i-l)&&(e-o)*(a-l)>=(t-o)*(r-l)&&(t-o)*(i-l)>=(n-o)*(a-l)}function $Ae(e,r){return e.next.i!==r.i&&e.prev.i!==r.i&&!QAe(e,r)&&(Zy(e,r)&&Zy(r,e)&&KAe(e,r)&&(Yn(e.prev,e,r.prev)||Yn(e,r.prev,r))||w_(e,r)&&Yn(e.prev,e,e.next)>0&&Yn(r.prev,r,r.next)>0)}function Yn(e,r,t){return(r.y-e.y)*(t.x-r.x)-(r.x-e.x)*(t.y-r.y)}function w_(e,r){return e.x===r.x&&e.y===r.y}function JJ(e,r,t,a){var n=x_(Yn(e,r,t)),i=x_(Yn(e,r,a)),o=x_(Yn(t,a,e)),l=x_(Yn(t,a,r));return!!(n!==i&&o!==l||n===0&&b_(e,t,r)||i===0&&b_(e,a,r)||o===0&&b_(t,e,a)||l===0&&b_(t,r,a))}function b_(e,r,t){return r.x<=Math.max(e.x,t.x)&&r.x>=Math.min(e.x,t.x)&&r.y<=Math.max(e.y,t.y)&&r.y>=Math.min(e.y,t.y)}function x_(e){return e>0?1:e<0?-1:0}function QAe(e,r){var t=e;do{if(t.i!==e.i&&t.next.i!==e.i&&t.i!==r.i&&t.next.i!==r.i&&JJ(t,t.next,e,r))return!0;t=t.next}while(t!==e);return!1}function Zy(e,r){return Yn(e.prev,e,e.next)<0?Yn(e,r,e.next)>=0&&Yn(e,e.prev,r)>=0:Yn(e,r,e.prev)<0||Yn(e,e.next,r)<0}function KAe(e,r){var t=e,a=!1,n=(e.x+r.x)/2,i=(e.y+r.y)/2;do t.y>i!=t.next.y>i&&t.next.y!==t.y&&n<(t.next.x-t.x)*(i-t.y)/(t.next.y-t.y)+t.x&&(a=!a),t=t.next;while(t!==e);return a}function $J(e,r){var t=new u7(e.i,e.x,e.y),a=new u7(r.i,r.x,r.y),n=e.next,i=r.prev;return e.next=r,r.prev=e,t.next=n,n.prev=t,a.next=t,t.prev=a,i.next=a,a.prev=i,a}function XJ(e,r,t,a){var n=new u7(e,r,t);return a?(n.next=a.next,n.prev=a,a.next.prev=n,a.next=n):(n.prev=n,n.next=n),n}function Jy(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function u7(e,r,t){this.i=e,this.x=r,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}__.deviation=function(e,r,t,a){var n=r&&r.length,i=n?r[0]*t:e.length,o=Math.abs(c7(e,0,i,t));if(n)for(var l=0,s=r.length;l0&&(a+=e[n-1].length,t.holes.push(a))}return t}});var e$=P((VPe,KJ)=>{"use strict";var e6e=th();KJ.exports=r6e;function r6e(e,r,t){if(!e||e.length==null)throw Error("Argument should be an array");r==null&&(r=1),t==null&&(t=e6e(e,r));for(var a=0;a{"use strict";r$.exports=function(){var e,r;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[r={},"one"],[{},"two"],[{},"three"]])}catch(t){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(r)!=="one")}});var n$=P((WPe,a$)=>{"use strict";a$.exports=function(){}});var dv=P((jPe,i$)=>{"use strict";var t6e=n$()();i$.exports=function(e){return e!==t6e&&e!==null}});var h7=P((XPe,l$)=>{"use strict";var a6e=Object.create,n6e=Object.getPrototypeOf,o$={};l$.exports=function(){var e=Object.setPrototypeOf,r=arguments[0]||a6e;return typeof e!="function"?!1:n6e(e(r(null),o$))===o$}});var d7=P((ZPe,s$)=>{"use strict";var i6e=dv(),o6e={function:!0,object:!0};s$.exports=function(e){return i6e(e)&&o6e[typeof e]||!1}});var Gu=P((JPe,f$)=>{"use strict";var l6e=dv();f$.exports=function(e){if(!l6e(e))throw new TypeError("Cannot use null or undefined");return e}});var c$=P(($Pe,u$)=>{"use strict";var p7=Object.create,A_;h7()()||(A_=m7());u$.exports=function(){var e,r,t;return!A_||A_.level!==1?p7:(e={},r={},t={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){r[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}r[a]=t}),Object.defineProperties(e,r),Object.defineProperty(A_,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(a,n){return p7(a===null?e:a,n)})}()});var m7=P((QPe,v$)=>{"use strict";var s6e=d7(),f6e=Gu(),u6e=Object.prototype.isPrototypeOf,c6e=Object.defineProperty,v6e={configurable:!0,enumerable:!1,writable:!0,value:void 0},T_;T_=function(e,r){if(f6e(e),r===null||s6e(r))return e;throw new TypeError("Prototype must be null or an object")};v$.exports=function(e){var r,t;return e?(e.level===2?e.set?(t=e.set,r=function(a,n){return t.call(T_(a,n),n),a}):r=function(a,n){return T_(a,n).__proto__=n,a}:r=function a(n,i){var o;return T_(n,i),o=u6e.call(a.nullPolyfill,n),o&&delete a.nullPolyfill.__proto__,i===null&&(i=a.nullPolyfill),n.__proto__=i,o&&c6e(a.nullPolyfill,"__proto__",v6e),n},Object.defineProperty(r,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),r={},t,a=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(a){try{t=a.set,t.call(e,r)}catch(n){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:(e={},e.__proto__=r,Object.getPrototypeOf(e)===r?{level:1}:!1)}());c$()});var M_=P((KPe,h$)=>{"use strict";h$.exports=h7()()?Object.setPrototypeOf:m7()});var p$=P((eNe,d$)=>{"use strict";var h6e=d7();d$.exports=function(e){if(!h6e(e))throw new TypeError(e+" is not an Object");return e}});var y$=P((rNe,m$)=>{"use strict";var d6e=Object.create(null),p6e=Math.random;m$.exports=function(){var e;do e=p6e().toString(36).slice(2);while(d6e[e]);return e}});var dh=P((tNe,g$)=>{"use strict";var m6e=void 0;g$.exports=function(e){return e!==m6e&&e!==null}});var S_=P((aNe,b$)=>{"use strict";var y6e=dh(),g6e={object:!0,function:!0,undefined:!0};b$.exports=function(e){return y6e(e)?hasOwnProperty.call(g6e,typeof e):!1}});var _$=P((nNe,x$)=>{"use strict";var b6e=S_();x$.exports=function(e){if(!b6e(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(r){return!1}}});var A$=P((iNe,w$)=>{"use strict";var x6e=_$();w$.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(r){return!1}return!x6e(e)}});var y7=P((oNe,T$)=>{"use strict";var _6e=A$(),w6e=/^\s*class[\s{/}]/,A6e=Function.prototype.toString;T$.exports=function(e){return!(!_6e(e)||w6e.test(A6e.call(e)))}});var S$=P((lNe,M$)=>{"use strict";M$.exports=function(){var e=Object.assign,r;return typeof e!="function"?!1:(r={foo:"raz"},e(r,{bar:"dwa"},{trzy:"trzy"}),r.foo+r.bar+r.trzy==="razdwatrzy")}});var k$=P((sNe,E$)=>{"use strict";E$.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var L$=P((fNe,C$)=>{"use strict";var T6e=dv(),M6e=Object.keys;C$.exports=function(e){return M6e(T6e(e)?Object(e):e)}});var F$=P((uNe,D$)=>{"use strict";D$.exports=k$()()?Object.keys:L$()});var q$=P((cNe,R$)=>{"use strict";var S6e=F$(),E6e=Gu(),k6e=Math.max;R$.exports=function(e,r){var t,a,n=k6e(arguments.length,2),i;for(e=Object(E6e(e)),i=function(o){try{e[o]=r[o]}catch(l){t||(t=l)}},a=1;a{"use strict";P$.exports=S$()()?Object.assign:q$()});var g7=P((hNe,N$)=>{"use strict";var C6e=dv(),L6e=Array.prototype.forEach,D6e=Object.create,F6e=function(e,r){var t;for(t in e)r[t]=e[t]};N$.exports=function(e){var r=D6e(null);return L6e.call(arguments,function(t){C6e(t)&&F6e(Object(t),r)}),r}});var I$=P((dNe,O$)=>{"use strict";var b7="razdwatrzy";O$.exports=function(){return typeof b7.contains!="function"?!1:b7.contains("dwa")===!0&&b7.contains("foo")===!1}});var z$=P((pNe,B$)=>{"use strict";var R6e=String.prototype.indexOf;B$.exports=function(e){return R6e.call(this,e,arguments[1])>-1}});var x7=P((mNe,G$)=>{"use strict";G$.exports=I$()()?String.prototype.contains:z$()});var Uu=P((yNe,Y$)=>{"use strict";var k_=dh(),U$=y7(),H$=E_(),V$=g7(),$y=x7(),q6e=Y$.exports=function(e,r){var t,a,n,i,o;return arguments.length<2||typeof e!="string"?(i=r,r=e,e=null):i=arguments[2],k_(e)?(t=$y.call(e,"c"),a=$y.call(e,"e"),n=$y.call(e,"w")):(t=n=!0,a=!1),o={value:r,configurable:t,enumerable:a,writable:n},i?H$(V$(i),o):o};q6e.gs=function(e,r,t){var a,n,i,o;return typeof e!="string"?(i=t,t=r,r=e,e=null):i=arguments[3],k_(r)?U$(r)?k_(t)?U$(t)||(i=t,t=void 0):t=void 0:(i=r,r=t=void 0):r=void 0,k_(e)?(a=$y.call(e,"c"),n=$y.call(e,"e")):(a=!0,n=!1),o={get:r,set:t,configurable:a,enumerable:n},i?H$(V$(i),o):o}});var Qy=P((gNe,j$)=>{"use strict";var W$=Object.prototype.toString,P6e=W$.call(function(){return arguments}());j$.exports=function(e){return W$.call(e)===P6e}});var Ky=P((bNe,Z$)=>{"use strict";var X$=Object.prototype.toString,N6e=X$.call("");Z$.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||X$.call(e)===N6e)||!1}});var $$=P((xNe,J$)=>{"use strict";J$.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var eQ=P((_Ne,K$)=>{var Q$=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};K$.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return Q$()}try{return __global__||Q$()}finally{delete Object.prototype.__global__}}()});var eg=P((wNe,rQ)=>{"use strict";rQ.exports=$$()()?globalThis:eQ()});var aQ=P((ANe,tQ)=>{"use strict";var O6e=eg(),_7={object:!0,symbol:!0};tQ.exports=function(){var e=O6e.Symbol,r;if(typeof e!="function")return!1;r=e("test symbol");try{String(r)}catch(t){return!1}return!(!_7[typeof e.iterator]||!_7[typeof e.toPrimitive]||!_7[typeof e.toStringTag])}});var iQ=P((TNe,nQ)=>{"use strict";nQ.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var w7=P((MNe,oQ)=>{"use strict";var I6e=iQ();oQ.exports=function(e){if(!I6e(e))throw new TypeError(e+" is not a symbol");return e}});var cQ=P((SNe,uQ)=>{"use strict";var lQ=Uu(),B6e=Object.create,sQ=Object.defineProperty,z6e=Object.prototype,fQ=B6e(null);uQ.exports=function(e){for(var r=0,t,a;fQ[e+(r||"")];)++r;return e+=r||"",fQ[e]=!0,t="@@"+e,sQ(z6e,t,lQ.gs(null,function(n){a||(a=!0,sQ(this,t,lQ(n)),a=!1)})),t}});var hQ=P((ENe,vQ)=>{"use strict";var Ks=Uu(),ii=eg().Symbol;vQ.exports=function(e){return Object.defineProperties(e,{hasInstance:Ks("",ii&&ii.hasInstance||e("hasInstance")),isConcatSpreadable:Ks("",ii&&ii.isConcatSpreadable||e("isConcatSpreadable")),iterator:Ks("",ii&&ii.iterator||e("iterator")),match:Ks("",ii&&ii.match||e("match")),replace:Ks("",ii&&ii.replace||e("replace")),search:Ks("",ii&&ii.search||e("search")),species:Ks("",ii&&ii.species||e("species")),split:Ks("",ii&&ii.split||e("split")),toPrimitive:Ks("",ii&&ii.toPrimitive||e("toPrimitive")),toStringTag:Ks("",ii&&ii.toStringTag||e("toStringTag")),unscopables:Ks("",ii&&ii.unscopables||e("unscopables"))})}});var mQ=P((kNe,pQ)=>{"use strict";var dQ=Uu(),G6e=w7(),rg=Object.create(null);pQ.exports=function(e){return Object.defineProperties(e,{for:dQ(function(r){return rg[r]?rg[r]:rg[r]=e(String(r))}),keyFor:dQ(function(r){var t;G6e(r);for(t in rg)if(rg[t]===r)return t})})}});var bQ=P((CNe,gQ)=>{"use strict";var If=Uu(),A7=w7(),C_=eg().Symbol,U6e=cQ(),H6e=hQ(),V6e=mQ(),Y6e=Object.create,T7=Object.defineProperties,L_=Object.defineProperty,_o,F1,yQ;if(typeof C_=="function")try{String(C_()),yQ=!0}catch(e){}else C_=null;F1=function(r){if(this instanceof F1)throw new TypeError("Symbol is not a constructor");return _o(r)};gQ.exports=_o=function e(r){var t;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return yQ?C_(r):(t=Y6e(F1.prototype),r=r===void 0?"":String(r),T7(t,{__description__:If("",r),__name__:If("",U6e(r))}))};H6e(_o);V6e(_o);T7(F1.prototype,{constructor:If(_o),toString:If("",function(){return this.__name__})});T7(_o.prototype,{toString:If(function(){return"Symbol ("+A7(this).__description__+")"}),valueOf:If(function(){return A7(this)})});L_(_o.prototype,_o.toPrimitive,If("",function(){var e=A7(this);return typeof e=="symbol"?e:e.toString()}));L_(_o.prototype,_o.toStringTag,If("c","Symbol"));L_(F1.prototype,_o.toStringTag,If("c",_o.prototype[_o.toStringTag]));L_(F1.prototype,_o.toPrimitive,If("c",_o.prototype[_o.toPrimitive]))});var pv=P((LNe,xQ)=>{"use strict";xQ.exports=aQ()()?eg().Symbol:bQ()});var wQ=P((DNe,_Q)=>{"use strict";var W6e=Gu();_Q.exports=function(){return W6e(this).length=0,this}});var R1=P((FNe,AQ)=>{"use strict";AQ.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var MQ=P((RNe,TQ)=>{"use strict";var j6e=dh(),X6e=S_(),Z6e=Object.prototype.toString;TQ.exports=function(e){if(!j6e(e))return null;if(X6e(e)){var r=e.toString;if(typeof r!="function"||r===Z6e)return null}try{return""+e}catch(t){return null}}});var EQ=P((qNe,SQ)=>{"use strict";SQ.exports=function(e){try{return e.toString()}catch(r){try{return String(e)}catch(t){return null}}}});var CQ=P((PNe,kQ)=>{"use strict";var J6e=EQ(),$6e=/[\n\r\u2028\u2029]/g;kQ.exports=function(e){var r=J6e(e);return r===null?"":(r.length>100&&(r=r.slice(0,99)+"\u2026"),r=r.replace($6e,function(t){switch(t){case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),r)}});var M7=P((NNe,FQ)=>{"use strict";var LQ=dh(),Q6e=S_(),K6e=MQ(),eTe=CQ(),DQ=function(e,r){return e.replace("%v",eTe(r))};FQ.exports=function(e,r,t){if(!Q6e(t))throw new TypeError(DQ(r,e));if(!LQ(e)){if("default"in t)return t.default;if(t.isOptional)return null}var a=K6e(t.errorMessage);throw LQ(a)||(a=r),new TypeError(DQ(a,e))}});var qQ=P((ONe,RQ)=>{"use strict";var rTe=M7(),tTe=dh();RQ.exports=function(e){return tTe(e)?e:rTe(e,"Cannot use %v",arguments[1])}});var NQ=P((INe,PQ)=>{"use strict";var aTe=M7(),nTe=y7();PQ.exports=function(e){return nTe(e)?e:aTe(e,"%v is not a plain function",arguments[1])}});var IQ=P((BNe,OQ)=>{"use strict";OQ.exports=function(){var e=Array.from,r,t;return typeof e!="function"?!1:(r=["raz","dwa"],t=e(r),!!(t&&t!==r&&t[1]==="dwa"))}});var zQ=P((zNe,BQ)=>{"use strict";var iTe=Object.prototype.toString,oTe=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);BQ.exports=function(e){return typeof e=="function"&&oTe(iTe.call(e))}});var UQ=P((GNe,GQ)=>{"use strict";GQ.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var VQ=P((UNe,HQ)=>{"use strict";HQ.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var WQ=P((HNe,YQ)=>{"use strict";YQ.exports=UQ()()?Math.sign:VQ()});var XQ=P((VNe,jQ)=>{"use strict";var lTe=WQ(),sTe=Math.abs,fTe=Math.floor;jQ.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:lTe(e)*fTe(sTe(e)))}});var JQ=P((YNe,ZQ)=>{"use strict";var uTe=XQ(),cTe=Math.max;ZQ.exports=function(e){return cTe(0,uTe(e))}});var eK=P((WNe,KQ)=>{"use strict";var vTe=pv().iterator,hTe=Qy(),dTe=zQ(),pTe=JQ(),$Q=R1(),mTe=Gu(),yTe=dv(),gTe=Ky(),QQ=Array.isArray,S7=Function.prototype.call,ph={configurable:!0,enumerable:!0,writable:!0,value:null},E7=Object.defineProperty;KQ.exports=function(e){var r=arguments[1],t=arguments[2],a,n,i,o,l,s,f,u,c,v;if(e=Object(mTe(e)),yTe(r)&&$Q(r),!this||this===Array||!dTe(this)){if(!r){if(hTe(e))return l=e.length,l!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(QQ(e)){for(o=new Array(l=e.length),n=0;n=55296&&s<=56319&&(v+=e[++n])),v=r?S7.call(r,t,v,i):v,a?(ph.value=v,E7(o,i,ph)):o[i]=v,++i;l=i}}if(l===void 0)for(l=pTe(e.length),a&&(o=new a(l)),n=0;n{"use strict";rK.exports=IQ()()?Array.from:eK()});var nK=P((XNe,aK)=>{"use strict";var bTe=tK(),xTe=E_(),_Te=Gu();aK.exports=function(e){var r=Object(_Te(e)),t=arguments[1],a=Object(arguments[2]);if(r!==e&&!t)return r;var n={};return t?bTe(t,function(i){(a.ensure||i in e)&&(n[i]=e[i])}):xTe(n,e),n}});var lK=P((ZNe,oK)=>{"use strict";var wTe=R1(),ATe=Gu(),TTe=Function.prototype.bind,iK=Function.prototype.call,MTe=Object.keys,STe=Object.prototype.propertyIsEnumerable;oK.exports=function(e,r){return function(t,a){var n,i=arguments[2],o=arguments[3];return t=Object(ATe(t)),wTe(a),n=MTe(t),o&&n.sort(typeof o=="function"?TTe.call(o,t):void 0),typeof e!="function"&&(e=n[e]),iK.call(e,n,function(l,s){return STe.call(t,l)?iK.call(a,i,t[l],l,t,s):r})}}});var fK=P((JNe,sK)=>{"use strict";sK.exports=lK()("forEach")});var cK=P(($Ne,uK)=>{"use strict";var ETe=R1(),kTe=fK(),CTe=Function.prototype.call;uK.exports=function(e,r){var t={},a=arguments[2];return ETe(r),kTe(e,function(n,i,o,l){t[i]=CTe.call(r,a,n,i,o,l)}),t}});var pK=P((QNe,dK)=>{"use strict";var LTe=dh(),DTe=qQ(),vK=NQ(),FTe=nK(),RTe=g7(),qTe=cK(),PTe=Function.prototype.bind,NTe=Object.defineProperty,OTe=Object.prototype.hasOwnProperty,hK;hK=function(e,r,t){var a=DTe(r)&&vK(r.value),n;return n=FTe(r),delete n.writable,delete n.value,n.get=function(){return!t.overwriteDefinition&&OTe.call(this,e)?a:(r.value=PTe.call(a,t.resolveContext?t.resolveContext(this):this),NTe(this,e,r),this[e])},n};dK.exports=function(e){var r=RTe(arguments[1]);return LTe(r.resolveContext)&&vK(r.resolveContext),qTe(e,function(t,a){return hK(a,t,r)})}});var k7=P((KNe,bK)=>{"use strict";var ITe=wQ(),BTe=E_(),zTe=R1(),GTe=Gu(),al=Uu(),UTe=pK(),mK=pv(),yK=Object.defineProperty,gK=Object.defineProperties,tg;bK.exports=tg=function(e,r){if(!(this instanceof tg))throw new TypeError("Constructor requires 'new'");gK(this,{__list__:al("w",GTe(e)),__context__:al("w",r),__nextIndex__:al("w",0)}),r&&(zTe(r.on),r.on("_add",this._onAdd),r.on("_delete",this._onDelete),r.on("_clear",this._onClear))};delete tg.prototype.constructor;gK(tg.prototype,BTe({_next:al(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){yK(this,"__redo__",al("c",[e]));return}this.__redo__.forEach(function(r,t){r>=e&&(this.__redo__[t]=++r)},this),this.__redo__.push(e)}}),_onDelete:al(function(e){var r;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(r=this.__redo__.indexOf(e),r!==-1&&this.__redo__.splice(r,1),this.__redo__.forEach(function(t,a){t>e&&(this.__redo__[a]=--t)},this)))}),_onClear:al(function(){this.__redo__&&ITe.call(this.__redo__),this.__nextIndex__=0})})));yK(tg.prototype,mK.iterator,al(function(){return this}))});var TK=P((eOe,AK)=>{"use strict";var xK=M_(),_K=x7(),C7=Uu(),HTe=pv(),L7=k7(),wK=Object.defineProperty,q1;q1=AK.exports=function(e,r){if(!(this instanceof q1))throw new TypeError("Constructor requires 'new'");L7.call(this,e),r?_K.call(r,"key+value")?r="key+value":_K.call(r,"key")?r="key":r="value":r="value",wK(this,"__kind__",C7("",r))};xK&&xK(q1,L7);delete q1.prototype.constructor;q1.prototype=Object.create(L7.prototype,{_resolve:C7(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});wK(q1.prototype,HTe.toStringTag,C7("c","Array Iterator"))});var kK=P((rOe,EK)=>{"use strict";var MK=M_(),D_=Uu(),VTe=pv(),D7=k7(),SK=Object.defineProperty,P1;P1=EK.exports=function(e){if(!(this instanceof P1))throw new TypeError("Constructor requires 'new'");e=String(e),D7.call(this,e),SK(this,"__length__",D_("",e.length))};MK&&MK(P1,D7);delete P1.prototype.constructor;P1.prototype=Object.create(D7.prototype,{_next:D_(function(){if(this.__list__){if(this.__nextIndex__=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)})});SK(P1.prototype,VTe.toStringTag,D_("c","String Iterator"))});var LK=P((tOe,CK)=>{"use strict";var YTe=Qy(),WTe=dv(),jTe=Ky(),XTe=pv().iterator,ZTe=Array.isArray;CK.exports=function(e){return WTe(e)?ZTe(e)||jTe(e)||YTe(e)?!0:typeof e[XTe]=="function":!1}});var FK=P((aOe,DK)=>{"use strict";var JTe=LK();DK.exports=function(e){if(!JTe(e))throw new TypeError(e+" is not iterable");return e}});var F7=P((nOe,PK)=>{"use strict";var $Te=Qy(),QTe=Ky(),RK=TK(),KTe=kK(),e8e=FK(),qK=pv().iterator;PK.exports=function(e){return typeof e8e(e)[qK]=="function"?e[qK]():$Te(e)?new RK(e):QTe(e)?new KTe(e):new RK(e)}});var OK=P((iOe,NK)=>{"use strict";var r8e=Qy(),t8e=R1(),a8e=Ky(),n8e=F7(),i8e=Array.isArray,R7=Function.prototype.call,o8e=Array.prototype.some;NK.exports=function(e,r){var t,a=arguments[2],n,i,o,l,s,f,u;if(i8e(e)||r8e(e)?t="array":a8e(e)?t="string":e=n8e(e),t8e(r),i=function(){o=!0},t==="array"){o8e.call(e,function(c){return R7.call(r,a,c,i),o});return}if(t==="string"){for(s=e.length,l=0;l=55296&&u<=56319&&(f+=e[++l])),R7.call(r,a,f,i),!o);++l);return}for(n=e.next();!n.done;){if(R7.call(r,a,n.value,i),o)return;n=e.next()}}});var BK=P((oOe,IK)=>{"use strict";IK.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var UK=P((lOe,GK)=>{"use strict";var l8e=dv(),R_=M_(),F_=p$(),s8e=Gu(),f8e=y$(),Hu=Uu(),u8e=F7(),c8e=OK(),v8e=pv().toStringTag,zK=BK(),h8e=Array.isArray,P7=Object.defineProperty,q7=Object.prototype.hasOwnProperty,d8e=Object.getPrototypeOf,mv;GK.exports=mv=function(){var e=arguments[0],r;if(!(this instanceof mv))throw new TypeError("Constructor requires 'new'");return r=zK&&R_&&WeakMap!==mv?R_(new WeakMap,d8e(this)):this,l8e(e)&&(h8e(e)||(e=u8e(e))),P7(r,"__weakMapData__",Hu("c","$weakMap$"+f8e())),e&&c8e(e,function(t){s8e(t),r.set(t[0],t[1])}),r};zK&&(R_&&R_(mv,WeakMap),mv.prototype=Object.create(WeakMap.prototype,{constructor:Hu(mv)}));Object.defineProperties(mv.prototype,{delete:Hu(function(e){return q7.call(F_(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:Hu(function(e){if(q7.call(F_(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:Hu(function(e){return q7.call(F_(e),this.__weakMapData__)}),set:Hu(function(e,r){return P7(F_(e),this.__weakMapData__,Hu("c",r)),this}),toString:Hu(function(){return"[object WeakMap]"})});P7(mv.prototype,v8e,Hu("c","WeakMap"))});var N7=P((sOe,HK)=>{"use strict";HK.exports=t$()()?WeakMap:UK()});var YK=P((fOe,VK)=>{"use strict";VK.exports=function(e,r,t){if(typeof Array.prototype.findIndex=="function")return e.findIndex(r,t);if(typeof r!="function")throw new TypeError("predicate must be a function");var a=Object(e),n=a.length;if(n===0)return-1;for(var i=0;i{"use strict";var q_=uh(),p8e=th(),I7=ni(),m8e=Of(),y8e=ah(),WK=QJ(),g8e=e$(),{float32:b8e,fract32:O7}=m_(),x8e=N7(),jK=u1(),_8e=YK(),w8e=` +`]),jJ&&(p.frag=p.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(p)}Vi.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};Vi.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};Vi.prototype.draw=function(){for(var e=this,r=arguments.length,t=new Array(r),a=0;aie)?Z.tree=RAe(Q,{bounds:Ze}):ie&&ie.length&&(Z.tree=ie),Z.tree){var Ae={primitive:"points",usage:"static",data:Z.tree,type:"uint32"};Z.elements?Z.elements(Ae):Z.elements=o.elements(Ae)}var ir=g_.float32(Q);ue({data:ir,usage:"dynamic"});var Ge=g_.fract32(Q,ir);return De({data:Ge,usage:"dynamic"}),Ie({data:new Uint8Array(Ee),type:"uint8",usage:"stream"}),Q}},{marker:function(Q,Z,J){var ie=Z.activation;if(ie.forEach(function(Ge){return Ge&&Ge.destroy&&Ge.destroy()}),ie.length=0,!Q||typeof Q[0]=="number"){var ue=e.addMarker(Q);ie[ue]=!0}else{for(var De=[],Ie=0,Ee=Math.min(Q.length,Z.count);Ie=0)return n;var i;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)i=e;else{i=new Uint8Array(e.length);for(var o=0,l=e.length;oa*4&&(this.tooManyColors=!0),this.updatePalette(t),n.length===1?n[0]:n};Vi.prototype.updatePalette=function(e){if(!this.tooManyColors){var r=this.maxColors,t=this.paletteTexture,a=Math.ceil(e.length*.25/r);if(a>1){e=e.slice();for(var n=e.length*.25%r;n{"use strict";v7.exports=__;v7.exports.default=__;function __(e,r,t){t=t||2;var a=r&&r.length,n=a?r[0]*t:e.length,i=$J(e,0,n,t,!0),o=[];if(!i||i.next===i.prev)return o;var l,s,f,u,c,v,d;if(a&&(i=WAe(e,r,i,t)),e.length>80*t){l=f=e[0],s=u=e[1];for(var p=t;pf&&(f=c),v>u&&(u=v);d=Math.max(f-l,u-s),d=d!==0?32767/d:0}return Zy(i,o,t,l,s,d,0),o}function $J(e,r,t,a,n){var i,o;if(n===c7(e,r,t,a)>0)for(i=r;i=r;i-=a)o=JJ(i,e[i],e[i+1],o);return o&&w_(o,o.next)&&($y(o),o=o.next),o}function hh(e,r){if(!e)return e;r||(r=e);var t=e,a;do if(a=!1,!t.steiner&&(w_(t,t.next)||Wn(t.prev,t,t.next)===0)){if($y(t),t=r=t.prev,t===t.next)break;a=!0}else t=t.next;while(a||t!==r);return r}function Zy(e,r,t,a,n,i,o){if(e){!o&&i&&$Ae(e,a,n,i);for(var l=e,s,f;e.prev!==e.next;){if(s=e.prev,f=e.next,i?HAe(e,a,n,i):UAe(e)){r.push(s.i/t|0),r.push(e.i/t|0),r.push(f.i/t|0),$y(e),e=f.next,l=f.next;continue}if(e=f,e===l){o?o===1?(e=VAe(hh(e),r,t),Zy(e,r,t,a,n,i,2)):o===2&&YAe(e,r,t,a,n,i):Zy(hh(e),r,t,a,n,i,1);break}}}}function UAe(e){var r=e.prev,t=e,a=e.next;if(Wn(r,t,a)>=0)return!1;for(var n=r.x,i=t.x,o=a.x,l=r.y,s=t.y,f=a.y,u=ni?n>o?n:o:i>o?i:o,d=l>s?l>f?l:f:s>f?s:f,p=a.next;p!==r;){if(p.x>=u&&p.x<=v&&p.y>=c&&p.y<=d&&Fp(n,l,i,s,o,f,p.x,p.y)&&Wn(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function HAe(e,r,t,a){var n=e.prev,i=e,o=e.next;if(Wn(n,i,o)>=0)return!1;for(var l=n.x,s=i.x,f=o.x,u=n.y,c=i.y,v=o.y,d=ls?l>f?l:f:s>f?s:f,m=u>c?u>v?u:v:c>v?c:v,b=f7(d,p,r,t,a),A=f7(y,m,r,t,a),_=e.prevZ,x=e.nextZ;_&&_.z>=b&&x&&x.z<=A;){if(_.x>=d&&_.x<=y&&_.y>=p&&_.y<=m&&_!==n&&_!==o&&Fp(l,u,s,c,f,v,_.x,_.y)&&Wn(_.prev,_,_.next)>=0||(_=_.prevZ,x.x>=d&&x.x<=y&&x.y>=p&&x.y<=m&&x!==n&&x!==o&&Fp(l,u,s,c,f,v,x.x,x.y)&&Wn(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;_&&_.z>=b;){if(_.x>=d&&_.x<=y&&_.y>=p&&_.y<=m&&_!==n&&_!==o&&Fp(l,u,s,c,f,v,_.x,_.y)&&Wn(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;x&&x.z<=A;){if(x.x>=d&&x.x<=y&&x.y>=p&&x.y<=m&&x!==n&&x!==o&&Fp(l,u,s,c,f,v,x.x,x.y)&&Wn(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function VAe(e,r,t){var a=e;do{var n=a.prev,i=a.next.next;!w_(n,i)&&QJ(n,a,a.next,i)&&Jy(n,i)&&Jy(i,n)&&(r.push(n.i/t|0),r.push(a.i/t|0),r.push(i.i/t|0),$y(a),$y(a.next),a=e=i),a=a.next}while(a!==e);return hh(a)}function YAe(e,r,t,a,n,i){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&e6e(o,l)){var s=KJ(o,l);o=hh(o,o.next),s=hh(s,s.next),Zy(o,r,t,a,n,i,0),Zy(s,r,t,a,n,i,0);return}l=l.next}o=o.next}while(o!==e)}function WAe(e,r,t,a){var n=[],i,o,l,s,f;for(i=0,o=r.length;i=t.next.y&&t.next.y!==t.y){var l=t.x+(n-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(l<=a&&l>i&&(i=l,o=t.x=t.x&&t.x>=f&&a!==t.x&&Fp(no.x||t.x===o.x&&JAe(o,t)))&&(o=t,c=v)),t=t.next;while(t!==s);return o}function JAe(e,r){return Wn(e.prev,e,r.prev)<0&&Wn(r.next,e,e.next)<0}function $Ae(e,r,t,a){var n=e;do n.z===0&&(n.z=f7(n.x,n.y,r,t,a)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,QAe(n)}function QAe(e){var r,t,a,n,i,o,l,s,f=1;do{for(t=e,e=null,i=null,o=0;t;){for(o++,a=t,l=0,r=0;r0||s>0&&a;)l!==0&&(s===0||!a||t.z<=a.z)?(n=t,t=t.nextZ,l--):(n=a,a=a.nextZ,s--),i?i.nextZ=n:e=n,n.prevZ=i,i=n;t=a}i.nextZ=null,f*=2}while(o>1);return e}function f7(e,r,t,a,n){return e=(e-t)*n|0,r=(r-a)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1}function KAe(e){var r=e,t=e;do(r.x=(e-o)*(i-l)&&(e-o)*(a-l)>=(t-o)*(r-l)&&(t-o)*(i-l)>=(n-o)*(a-l)}function e6e(e,r){return e.next.i!==r.i&&e.prev.i!==r.i&&!r6e(e,r)&&(Jy(e,r)&&Jy(r,e)&&t6e(e,r)&&(Wn(e.prev,e,r.prev)||Wn(e,r.prev,r))||w_(e,r)&&Wn(e.prev,e,e.next)>0&&Wn(r.prev,r,r.next)>0)}function Wn(e,r,t){return(r.y-e.y)*(t.x-r.x)-(r.x-e.x)*(t.y-r.y)}function w_(e,r){return e.x===r.x&&e.y===r.y}function QJ(e,r,t,a){var n=x_(Wn(e,r,t)),i=x_(Wn(e,r,a)),o=x_(Wn(t,a,e)),l=x_(Wn(t,a,r));return!!(n!==i&&o!==l||n===0&&b_(e,t,r)||i===0&&b_(e,a,r)||o===0&&b_(t,e,a)||l===0&&b_(t,r,a))}function b_(e,r,t){return r.x<=Math.max(e.x,t.x)&&r.x>=Math.min(e.x,t.x)&&r.y<=Math.max(e.y,t.y)&&r.y>=Math.min(e.y,t.y)}function x_(e){return e>0?1:e<0?-1:0}function r6e(e,r){var t=e;do{if(t.i!==e.i&&t.next.i!==e.i&&t.i!==r.i&&t.next.i!==r.i&&QJ(t,t.next,e,r))return!0;t=t.next}while(t!==e);return!1}function Jy(e,r){return Wn(e.prev,e,e.next)<0?Wn(e,r,e.next)>=0&&Wn(e,e.prev,r)>=0:Wn(e,r,e.prev)<0||Wn(e,e.next,r)<0}function t6e(e,r){var t=e,a=!1,n=(e.x+r.x)/2,i=(e.y+r.y)/2;do t.y>i!=t.next.y>i&&t.next.y!==t.y&&n<(t.next.x-t.x)*(i-t.y)/(t.next.y-t.y)+t.x&&(a=!a),t=t.next;while(t!==e);return a}function KJ(e,r){var t=new u7(e.i,e.x,e.y),a=new u7(r.i,r.x,r.y),n=e.next,i=r.prev;return e.next=r,r.prev=e,t.next=n,n.prev=t,a.next=t,t.prev=a,i.next=a,a.prev=i,a}function JJ(e,r,t,a){var n=new u7(e,r,t);return a?(n.next=a.next,n.prev=a,a.next.prev=n,a.next=n):(n.prev=n,n.next=n),n}function $y(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function u7(e,r,t){this.i=e,this.x=r,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}__.deviation=function(e,r,t,a){var n=r&&r.length,i=n?r[0]*t:e.length,o=Math.abs(c7(e,0,i,t));if(n)for(var l=0,s=r.length;l0&&(a+=e[n-1].length,t.holes.push(a))}return t}});var t$=P((WPe,r$)=>{"use strict";var a6e=th();r$.exports=n6e;function n6e(e,r,t){if(!e||e.length==null)throw Error("Argument should be an array");r==null&&(r=1),t==null&&(t=a6e(e,r));for(var a=0;a{"use strict";a$.exports=function(){var e,r;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[r={},"one"],[{},"two"],[{},"three"]])}catch(t){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(r)!=="one")}});var o$=P((XPe,i$)=>{"use strict";i$.exports=function(){}});var dv=P((ZPe,l$)=>{"use strict";var i6e=o$()();l$.exports=function(e){return e!==i6e&&e!==null}});var h7=P((JPe,f$)=>{"use strict";var o6e=Object.create,l6e=Object.getPrototypeOf,s$={};f$.exports=function(){var e=Object.setPrototypeOf,r=arguments[0]||o6e;return typeof e!="function"?!1:l6e(e(r(null),s$))===s$}});var d7=P(($Pe,u$)=>{"use strict";var s6e=dv(),f6e={function:!0,object:!0};u$.exports=function(e){return s6e(e)&&f6e[typeof e]||!1}});var Gu=P((QPe,c$)=>{"use strict";var u6e=dv();c$.exports=function(e){if(!u6e(e))throw new TypeError("Cannot use null or undefined");return e}});var h$=P((KPe,v$)=>{"use strict";var p7=Object.create,A_;h7()()||(A_=m7());v$.exports=function(){var e,r,t;return!A_||A_.level!==1?p7:(e={},r={},t={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){r[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}r[a]=t}),Object.defineProperties(e,r),Object.defineProperty(A_,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(a,n){return p7(a===null?e:a,n)})}()});var m7=P((eNe,d$)=>{"use strict";var c6e=d7(),v6e=Gu(),h6e=Object.prototype.isPrototypeOf,d6e=Object.defineProperty,p6e={configurable:!0,enumerable:!1,writable:!0,value:void 0},T_;T_=function(e,r){if(v6e(e),r===null||c6e(r))return e;throw new TypeError("Prototype must be null or an object")};d$.exports=function(e){var r,t;return e?(e.level===2?e.set?(t=e.set,r=function(a,n){return t.call(T_(a,n),n),a}):r=function(a,n){return T_(a,n).__proto__=n,a}:r=function a(n,i){var o;return T_(n,i),o=h6e.call(a.nullPolyfill,n),o&&delete a.nullPolyfill.__proto__,i===null&&(i=a.nullPolyfill),n.__proto__=i,o&&d6e(a.nullPolyfill,"__proto__",p6e),n},Object.defineProperty(r,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),r={},t,a=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(a){try{t=a.set,t.call(e,r)}catch(n){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:(e={},e.__proto__=r,Object.getPrototypeOf(e)===r?{level:1}:!1)}());h$()});var M_=P((rNe,p$)=>{"use strict";p$.exports=h7()()?Object.setPrototypeOf:m7()});var y$=P((tNe,m$)=>{"use strict";var m6e=d7();m$.exports=function(e){if(!m6e(e))throw new TypeError(e+" is not an Object");return e}});var b$=P((aNe,g$)=>{"use strict";var y6e=Object.create(null),g6e=Math.random;g$.exports=function(){var e;do e=g6e().toString(36).slice(2);while(y6e[e]);return e}});var dh=P((nNe,x$)=>{"use strict";var b6e=void 0;x$.exports=function(e){return e!==b6e&&e!==null}});var S_=P((iNe,_$)=>{"use strict";var x6e=dh(),_6e={object:!0,function:!0,undefined:!0};_$.exports=function(e){return x6e(e)?hasOwnProperty.call(_6e,typeof e):!1}});var A$=P((oNe,w$)=>{"use strict";var w6e=S_();w$.exports=function(e){if(!w6e(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(r){return!1}}});var M$=P((lNe,T$)=>{"use strict";var A6e=A$();T$.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(r){return!1}return!A6e(e)}});var y7=P((sNe,S$)=>{"use strict";var T6e=M$(),M6e=/^\s*class[\s{/}]/,S6e=Function.prototype.toString;S$.exports=function(e){return!(!T6e(e)||M6e.test(S6e.call(e)))}});var k$=P((fNe,E$)=>{"use strict";E$.exports=function(){var e=Object.assign,r;return typeof e!="function"?!1:(r={foo:"raz"},e(r,{bar:"dwa"},{trzy:"trzy"}),r.foo+r.bar+r.trzy==="razdwatrzy")}});var L$=P((uNe,C$)=>{"use strict";C$.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var F$=P((cNe,D$)=>{"use strict";var E6e=dv(),k6e=Object.keys;D$.exports=function(e){return k6e(E6e(e)?Object(e):e)}});var R$=P((vNe,q$)=>{"use strict";q$.exports=L$()()?Object.keys:F$()});var N$=P((hNe,P$)=>{"use strict";var C6e=R$(),L6e=Gu(),D6e=Math.max;P$.exports=function(e,r){var t,a,n=D6e(arguments.length,2),i;for(e=Object(L6e(e)),i=function(o){try{e[o]=r[o]}catch(l){t||(t=l)}},a=1;a{"use strict";I$.exports=k$()()?Object.assign:N$()});var g7=P((pNe,O$)=>{"use strict";var F6e=dv(),q6e=Array.prototype.forEach,R6e=Object.create,P6e=function(e,r){var t;for(t in e)r[t]=e[t]};O$.exports=function(e){var r=R6e(null);return q6e.call(arguments,function(t){F6e(t)&&P6e(Object(t),r)}),r}});var z$=P((mNe,B$)=>{"use strict";var b7="razdwatrzy";B$.exports=function(){return typeof b7.contains!="function"?!1:b7.contains("dwa")===!0&&b7.contains("foo")===!1}});var U$=P((yNe,G$)=>{"use strict";var N6e=String.prototype.indexOf;G$.exports=function(e){return N6e.call(this,e,arguments[1])>-1}});var x7=P((gNe,H$)=>{"use strict";H$.exports=z$()()?String.prototype.contains:U$()});var Uu=P((bNe,j$)=>{"use strict";var k_=dh(),V$=y7(),Y$=E_(),W$=g7(),Qy=x7(),I6e=j$.exports=function(e,r){var t,a,n,i,o;return arguments.length<2||typeof e!="string"?(i=r,r=e,e=null):i=arguments[2],k_(e)?(t=Qy.call(e,"c"),a=Qy.call(e,"e"),n=Qy.call(e,"w")):(t=n=!0,a=!1),o={value:r,configurable:t,enumerable:a,writable:n},i?Y$(W$(i),o):o};I6e.gs=function(e,r,t){var a,n,i,o;return typeof e!="string"?(i=t,t=r,r=e,e=null):i=arguments[3],k_(r)?V$(r)?k_(t)?V$(t)||(i=t,t=void 0):t=void 0:(i=r,r=t=void 0):r=void 0,k_(e)?(a=Qy.call(e,"c"),n=Qy.call(e,"e")):(a=!0,n=!1),o={get:r,set:t,configurable:a,enumerable:n},i?Y$(W$(i),o):o}});var Ky=P((xNe,Z$)=>{"use strict";var X$=Object.prototype.toString,O6e=X$.call(function(){return arguments}());Z$.exports=function(e){return X$.call(e)===O6e}});var eg=P((_Ne,$$)=>{"use strict";var J$=Object.prototype.toString,B6e=J$.call("");$$.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||J$.call(e)===B6e)||!1}});var K$=P((wNe,Q$)=>{"use strict";Q$.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var tQ=P((ANe,rQ)=>{var eQ=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};rQ.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return eQ()}try{return __global__||eQ()}finally{delete Object.prototype.__global__}}()});var rg=P((TNe,aQ)=>{"use strict";aQ.exports=K$()()?globalThis:tQ()});var iQ=P((MNe,nQ)=>{"use strict";var z6e=rg(),_7={object:!0,symbol:!0};nQ.exports=function(){var e=z6e.Symbol,r;if(typeof e!="function")return!1;r=e("test symbol");try{String(r)}catch(t){return!1}return!(!_7[typeof e.iterator]||!_7[typeof e.toPrimitive]||!_7[typeof e.toStringTag])}});var lQ=P((SNe,oQ)=>{"use strict";oQ.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var w7=P((ENe,sQ)=>{"use strict";var G6e=lQ();sQ.exports=function(e){if(!G6e(e))throw new TypeError(e+" is not a symbol");return e}});var hQ=P((kNe,vQ)=>{"use strict";var fQ=Uu(),U6e=Object.create,uQ=Object.defineProperty,H6e=Object.prototype,cQ=U6e(null);vQ.exports=function(e){for(var r=0,t,a;cQ[e+(r||"")];)++r;return e+=r||"",cQ[e]=!0,t="@@"+e,uQ(H6e,t,fQ.gs(null,function(n){a||(a=!0,uQ(this,t,fQ(n)),a=!1)})),t}});var pQ=P((CNe,dQ)=>{"use strict";var Ks=Uu(),ii=rg().Symbol;dQ.exports=function(e){return Object.defineProperties(e,{hasInstance:Ks("",ii&&ii.hasInstance||e("hasInstance")),isConcatSpreadable:Ks("",ii&&ii.isConcatSpreadable||e("isConcatSpreadable")),iterator:Ks("",ii&&ii.iterator||e("iterator")),match:Ks("",ii&&ii.match||e("match")),replace:Ks("",ii&&ii.replace||e("replace")),search:Ks("",ii&&ii.search||e("search")),species:Ks("",ii&&ii.species||e("species")),split:Ks("",ii&&ii.split||e("split")),toPrimitive:Ks("",ii&&ii.toPrimitive||e("toPrimitive")),toStringTag:Ks("",ii&&ii.toStringTag||e("toStringTag")),unscopables:Ks("",ii&&ii.unscopables||e("unscopables"))})}});var gQ=P((LNe,yQ)=>{"use strict";var mQ=Uu(),V6e=w7(),tg=Object.create(null);yQ.exports=function(e){return Object.defineProperties(e,{for:mQ(function(r){return tg[r]?tg[r]:tg[r]=e(String(r))}),keyFor:mQ(function(r){var t;V6e(r);for(t in tg)if(tg[t]===r)return t})})}});var _Q=P((DNe,xQ)=>{"use strict";var Of=Uu(),A7=w7(),C_=rg().Symbol,Y6e=hQ(),W6e=pQ(),j6e=gQ(),X6e=Object.create,T7=Object.defineProperties,L_=Object.defineProperty,wo,qp,bQ;if(typeof C_=="function")try{String(C_()),bQ=!0}catch(e){}else C_=null;qp=function(r){if(this instanceof qp)throw new TypeError("Symbol is not a constructor");return wo(r)};xQ.exports=wo=function e(r){var t;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return bQ?C_(r):(t=X6e(qp.prototype),r=r===void 0?"":String(r),T7(t,{__description__:Of("",r),__name__:Of("",Y6e(r))}))};W6e(wo);j6e(wo);T7(qp.prototype,{constructor:Of(wo),toString:Of("",function(){return this.__name__})});T7(wo.prototype,{toString:Of(function(){return"Symbol ("+A7(this).__description__+")"}),valueOf:Of(function(){return A7(this)})});L_(wo.prototype,wo.toPrimitive,Of("",function(){var e=A7(this);return typeof e=="symbol"?e:e.toString()}));L_(wo.prototype,wo.toStringTag,Of("c","Symbol"));L_(qp.prototype,wo.toStringTag,Of("c",wo.prototype[wo.toStringTag]));L_(qp.prototype,wo.toPrimitive,Of("c",wo.prototype[wo.toPrimitive]))});var pv=P((FNe,wQ)=>{"use strict";wQ.exports=iQ()()?rg().Symbol:_Q()});var TQ=P((qNe,AQ)=>{"use strict";var Z6e=Gu();AQ.exports=function(){return Z6e(this).length=0,this}});var Rp=P((RNe,MQ)=>{"use strict";MQ.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var EQ=P((PNe,SQ)=>{"use strict";var J6e=dh(),$6e=S_(),Q6e=Object.prototype.toString;SQ.exports=function(e){if(!J6e(e))return null;if($6e(e)){var r=e.toString;if(typeof r!="function"||r===Q6e)return null}try{return""+e}catch(t){return null}}});var CQ=P((NNe,kQ)=>{"use strict";kQ.exports=function(e){try{return e.toString()}catch(r){try{return String(e)}catch(t){return null}}}});var DQ=P((INe,LQ)=>{"use strict";var K6e=CQ(),eTe=/[\n\r\u2028\u2029]/g;LQ.exports=function(e){var r=K6e(e);return r===null?"":(r.length>100&&(r=r.slice(0,99)+"\u2026"),r=r.replace(eTe,function(t){switch(t){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),r)}});var M7=P((ONe,RQ)=>{"use strict";var FQ=dh(),rTe=S_(),tTe=EQ(),aTe=DQ(),qQ=function(e,r){return e.replace("%v",aTe(r))};RQ.exports=function(e,r,t){if(!rTe(t))throw new TypeError(qQ(r,e));if(!FQ(e)){if("default"in t)return t.default;if(t.isOptional)return null}var a=tTe(t.errorMessage);throw FQ(a)||(a=r),new TypeError(qQ(a,e))}});var NQ=P((BNe,PQ)=>{"use strict";var nTe=M7(),iTe=dh();PQ.exports=function(e){return iTe(e)?e:nTe(e,"Cannot use %v",arguments[1])}});var OQ=P((zNe,IQ)=>{"use strict";var oTe=M7(),lTe=y7();IQ.exports=function(e){return lTe(e)?e:oTe(e,"%v is not a plain function",arguments[1])}});var zQ=P((GNe,BQ)=>{"use strict";BQ.exports=function(){var e=Array.from,r,t;return typeof e!="function"?!1:(r=["raz","dwa"],t=e(r),!!(t&&t!==r&&t[1]==="dwa"))}});var UQ=P((UNe,GQ)=>{"use strict";var sTe=Object.prototype.toString,fTe=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);GQ.exports=function(e){return typeof e=="function"&&fTe(sTe.call(e))}});var VQ=P((HNe,HQ)=>{"use strict";HQ.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var WQ=P((VNe,YQ)=>{"use strict";YQ.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var XQ=P((YNe,jQ)=>{"use strict";jQ.exports=VQ()()?Math.sign:WQ()});var JQ=P((WNe,ZQ)=>{"use strict";var uTe=XQ(),cTe=Math.abs,vTe=Math.floor;ZQ.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:uTe(e)*vTe(cTe(e)))}});var QQ=P((jNe,$Q)=>{"use strict";var hTe=JQ(),dTe=Math.max;$Q.exports=function(e){return dTe(0,hTe(e))}});var tK=P((XNe,rK)=>{"use strict";var pTe=pv().iterator,mTe=Ky(),yTe=UQ(),gTe=QQ(),KQ=Rp(),bTe=Gu(),xTe=dv(),_Te=eg(),eK=Array.isArray,S7=Function.prototype.call,ph={configurable:!0,enumerable:!0,writable:!0,value:null},E7=Object.defineProperty;rK.exports=function(e){var r=arguments[1],t=arguments[2],a,n,i,o,l,s,f,u,c,v;if(e=Object(bTe(e)),xTe(r)&&KQ(r),!this||this===Array||!yTe(this)){if(!r){if(mTe(e))return l=e.length,l!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(eK(e)){for(o=new Array(l=e.length),n=0;n=55296&&s<=56319&&(v+=e[++n])),v=r?S7.call(r,t,v,i):v,a?(ph.value=v,E7(o,i,ph)):o[i]=v,++i;l=i}}if(l===void 0)for(l=gTe(e.length),a&&(o=new a(l)),n=0;n{"use strict";aK.exports=zQ()()?Array.from:tK()});var oK=P((JNe,iK)=>{"use strict";var wTe=nK(),ATe=E_(),TTe=Gu();iK.exports=function(e){var r=Object(TTe(e)),t=arguments[1],a=Object(arguments[2]);if(r!==e&&!t)return r;var n={};return t?wTe(t,function(i){(a.ensure||i in e)&&(n[i]=e[i])}):ATe(n,e),n}});var fK=P(($Ne,sK)=>{"use strict";var MTe=Rp(),STe=Gu(),ETe=Function.prototype.bind,lK=Function.prototype.call,kTe=Object.keys,CTe=Object.prototype.propertyIsEnumerable;sK.exports=function(e,r){return function(t,a){var n,i=arguments[2],o=arguments[3];return t=Object(STe(t)),MTe(a),n=kTe(t),o&&n.sort(typeof o=="function"?ETe.call(o,t):void 0),typeof e!="function"&&(e=n[e]),lK.call(e,n,function(l,s){return CTe.call(t,l)?lK.call(a,i,t[l],l,t,s):r})}}});var cK=P((QNe,uK)=>{"use strict";uK.exports=fK()("forEach")});var hK=P((KNe,vK)=>{"use strict";var LTe=Rp(),DTe=cK(),FTe=Function.prototype.call;vK.exports=function(e,r){var t={},a=arguments[2];return LTe(r),DTe(e,function(n,i,o,l){t[i]=FTe.call(r,a,n,i,o,l)}),t}});var yK=P((eIe,mK)=>{"use strict";var qTe=dh(),RTe=NQ(),dK=OQ(),PTe=oK(),NTe=g7(),ITe=hK(),OTe=Function.prototype.bind,BTe=Object.defineProperty,zTe=Object.prototype.hasOwnProperty,pK;pK=function(e,r,t){var a=RTe(r)&&dK(r.value),n;return n=PTe(r),delete n.writable,delete n.value,n.get=function(){return!t.overwriteDefinition&&zTe.call(this,e)?a:(r.value=OTe.call(a,t.resolveContext?t.resolveContext(this):this),BTe(this,e,r),this[e])},n};mK.exports=function(e){var r=NTe(arguments[1]);return qTe(r.resolveContext)&&dK(r.resolveContext),ITe(e,function(t,a){return pK(a,t,r)})}});var k7=P((rIe,_K)=>{"use strict";var GTe=TQ(),UTe=E_(),HTe=Rp(),VTe=Gu(),al=Uu(),YTe=yK(),gK=pv(),bK=Object.defineProperty,xK=Object.defineProperties,ag;_K.exports=ag=function(e,r){if(!(this instanceof ag))throw new TypeError("Constructor requires 'new'");xK(this,{__list__:al("w",VTe(e)),__context__:al("w",r),__nextIndex__:al("w",0)}),r&&(HTe(r.on),r.on("_add",this._onAdd),r.on("_delete",this._onDelete),r.on("_clear",this._onClear))};delete ag.prototype.constructor;xK(ag.prototype,UTe({_next:al(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){bK(this,"__redo__",al("c",[e]));return}this.__redo__.forEach(function(r,t){r>=e&&(this.__redo__[t]=++r)},this),this.__redo__.push(e)}}),_onDelete:al(function(e){var r;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(r=this.__redo__.indexOf(e),r!==-1&&this.__redo__.splice(r,1),this.__redo__.forEach(function(t,a){t>e&&(this.__redo__[a]=--t)},this)))}),_onClear:al(function(){this.__redo__&>e.call(this.__redo__),this.__nextIndex__=0})})));bK(ag.prototype,gK.iterator,al(function(){return this}))});var SK=P((tIe,MK)=>{"use strict";var wK=M_(),AK=x7(),C7=Uu(),WTe=pv(),L7=k7(),TK=Object.defineProperty,Pp;Pp=MK.exports=function(e,r){if(!(this instanceof Pp))throw new TypeError("Constructor requires 'new'");L7.call(this,e),r?AK.call(r,"key+value")?r="key+value":AK.call(r,"key")?r="key":r="value":r="value",TK(this,"__kind__",C7("",r))};wK&&wK(Pp,L7);delete Pp.prototype.constructor;Pp.prototype=Object.create(L7.prototype,{_resolve:C7(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});TK(Pp.prototype,WTe.toStringTag,C7("c","Array Iterator"))});var LK=P((aIe,CK)=>{"use strict";var EK=M_(),D_=Uu(),jTe=pv(),D7=k7(),kK=Object.defineProperty,Np;Np=CK.exports=function(e){if(!(this instanceof Np))throw new TypeError("Constructor requires 'new'");e=String(e),D7.call(this,e),kK(this,"__length__",D_("",e.length))};EK&&EK(Np,D7);delete Np.prototype.constructor;Np.prototype=Object.create(D7.prototype,{_next:D_(function(){if(this.__list__){if(this.__nextIndex__=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)})});kK(Np.prototype,jTe.toStringTag,D_("c","String Iterator"))});var FK=P((nIe,DK)=>{"use strict";var XTe=Ky(),ZTe=dv(),JTe=eg(),$Te=pv().iterator,QTe=Array.isArray;DK.exports=function(e){return ZTe(e)?QTe(e)||JTe(e)||XTe(e)?!0:typeof e[$Te]=="function":!1}});var RK=P((iIe,qK)=>{"use strict";var KTe=FK();qK.exports=function(e){if(!KTe(e))throw new TypeError(e+" is not iterable");return e}});var F7=P((oIe,IK)=>{"use strict";var e8e=Ky(),r8e=eg(),PK=SK(),t8e=LK(),a8e=RK(),NK=pv().iterator;IK.exports=function(e){return typeof a8e(e)[NK]=="function"?e[NK]():e8e(e)?new PK(e):r8e(e)?new t8e(e):new PK(e)}});var BK=P((lIe,OK)=>{"use strict";var n8e=Ky(),i8e=Rp(),o8e=eg(),l8e=F7(),s8e=Array.isArray,q7=Function.prototype.call,f8e=Array.prototype.some;OK.exports=function(e,r){var t,a=arguments[2],n,i,o,l,s,f,u;if(s8e(e)||n8e(e)?t="array":o8e(e)?t="string":e=l8e(e),i8e(r),i=function(){o=!0},t==="array"){f8e.call(e,function(c){return q7.call(r,a,c,i),o});return}if(t==="string"){for(s=e.length,l=0;l=55296&&u<=56319&&(f+=e[++l])),q7.call(r,a,f,i),!o);++l);return}for(n=e.next();!n.done;){if(q7.call(r,a,n.value,i),o)return;n=e.next()}}});var GK=P((sIe,zK)=>{"use strict";zK.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var VK=P((fIe,HK)=>{"use strict";var u8e=dv(),q_=M_(),F_=y$(),c8e=Gu(),v8e=b$(),Hu=Uu(),h8e=F7(),d8e=BK(),p8e=pv().toStringTag,UK=GK(),m8e=Array.isArray,P7=Object.defineProperty,R7=Object.prototype.hasOwnProperty,y8e=Object.getPrototypeOf,mv;HK.exports=mv=function(){var e=arguments[0],r;if(!(this instanceof mv))throw new TypeError("Constructor requires 'new'");return r=UK&&q_&&WeakMap!==mv?q_(new WeakMap,y8e(this)):this,u8e(e)&&(m8e(e)||(e=h8e(e))),P7(r,"__weakMapData__",Hu("c","$weakMap$"+v8e())),e&&d8e(e,function(t){c8e(t),r.set(t[0],t[1])}),r};UK&&(q_&&q_(mv,WeakMap),mv.prototype=Object.create(WeakMap.prototype,{constructor:Hu(mv)}));Object.defineProperties(mv.prototype,{delete:Hu(function(e){return R7.call(F_(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:Hu(function(e){if(R7.call(F_(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:Hu(function(e){return R7.call(F_(e),this.__weakMapData__)}),set:Hu(function(e,r){return P7(F_(e),this.__weakMapData__,Hu("c",r)),this}),toString:Hu(function(){return"[object WeakMap]"})});P7(mv.prototype,p8e,Hu("c","WeakMap"))});var N7=P((uIe,YK)=>{"use strict";YK.exports=n$()()?WeakMap:VK()});var jK=P((cIe,WK)=>{"use strict";WK.exports=function(e,r,t){if(typeof Array.prototype.findIndex=="function")return e.findIndex(r,t);if(typeof r!="function")throw new TypeError("predicate must be a function");var a=Object(e),n=a.length;if(n===0)return-1;for(var i=0;i{"use strict";var R_=uh(),g8e=th(),O7=ni(),b8e=If(),x8e=ah(),XK=e$(),_8e=t$(),{float32:w8e,fract32:I7}=m_(),A8e=N7(),ZK=cp(),T8e=jK(),M8e=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -325,7 +325,7 @@ void main() { fragColor = color / 255.; } -`,A8e=` +`,S8e=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id; @@ -343,7 +343,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`,T8e=` +`,E8e=` precision highp float; attribute vec2 position, positionFract; @@ -371,14 +371,14 @@ void main() { fragColor = color / 255.; fragColor.a *= opacity; } -`,M8e=` +`,k8e=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } -`,S8e=` +`,C8e=` precision highp float; attribute vec2 aCoord, bCoord, nextCoord, prevCoord; @@ -582,7 +582,7 @@ void main() { } } } -`,E8e=` +`,L8e=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; @@ -662,7 +662,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`;XK.exports=un;function un(e,r){if(!(this instanceof un))return new un(e,r);if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=un.shaders.has(e)?un.shaders.get(e):un.shaders.set(e,un.createShaders(e)).get(e),this.update(r)}un.dashMult=2;un.maxPatternLength=256;un.precisionThreshold=3e6;un.maxPoints=1e4;un.maxLines=2048;un.shaders=new x8e;un.createShaders=function(e){let r=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),t={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},a=e(I7({vert:w8e,frag:A8e,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},t)),n;try{n=e(I7({cull:{enable:!0,face:"back"},vert:S8e,frag:E8e,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},t))}catch(o){n=a}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:T8e,frag:M8e,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:t.blend,depth:{enable:!1},scissor:t.scissor,stencil:t.stencil,viewport:t.viewport}),rect:a,miter:n}};un.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};un.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};un.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((r,t)=>{if(r&&Array.isArray(r))return this.draw(...r);typeof r=="number"&&(r=this.passes[r]),r&&r.count>1&&r.opacity&&(this.regl._refresh(),r.fill&&r.triangles&&r.triangles.length>2&&this.shaders.fill(r),r.thickness&&(r.scale[0]*r.viewport.width>un.precisionThreshold||r.scale[1]*r.viewport.height>un.precisionThreshold?this.shaders.rect(r):r.join==="rect"||!r.join&&(r.thickness<=2||r.count>=un.maxPoints)?this.shaders.rect(r):this.shaders.miter(r)))}),this};un.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:r,gl:t}=this;if(e.forEach((n,i)=>{let o=this.passes[i];if(n!==void 0){if(n===null){this.passes[i]=null;return}if(typeof n[0]=="number"&&(n={positions:n}),n=m8e(n,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[i]=o={id:i,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:r.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},n=I7({},un.defaults,n)),n.thickness!=null&&(o.thickness=parseFloat(n.thickness)),n.opacity!=null&&(o.opacity=parseFloat(n.opacity)),n.miterLimit!=null&&(o.miterLimit=parseFloat(n.miterLimit)),n.overlay!=null&&(o.overlay=!!n.overlay,iT-E),A=[],_=0,x=o.hole!=null?o.hole[0]:null;if(x!=null){let T=_8e(b,E=>E>=x);b=b.slice(0,T),b.push(x)}for(let T=0;TF-x+(b[T]-_)),k=WK(E,M);k=k.map(F=>F+_+(F+_{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var KK=P((cOe,QK)=>{"use strict";var k8e=th(),C8e=uh(),L8e=o7(),D8e=Of(),ZK=ni(),JK=ah(),{float32:F8e,fract32:z7}=m_();QK.exports=R8e;var $K=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function R8e(e,r){if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let t=e._gl,a,n,i,o,l,s,f={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},u=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),n=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:$K}),p(r),a=e({vert:` +`;JK.exports=un;function un(e,r){if(!(this instanceof un))return new un(e,r);if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=un.shaders.has(e)?un.shaders.get(e):un.shaders.set(e,un.createShaders(e)).get(e),this.update(r)}un.dashMult=2;un.maxPatternLength=256;un.precisionThreshold=3e6;un.maxPoints=1e4;un.maxLines=2048;un.shaders=new A8e;un.createShaders=function(e){let r=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),t={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},a=e(O7({vert:M8e,frag:S8e,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},t)),n;try{n=e(O7({cull:{enable:!0,face:"back"},vert:C8e,frag:L8e,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},t))}catch(o){n=a}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:E8e,frag:k8e,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:t.blend,depth:{enable:!1},scissor:t.scissor,stencil:t.stencil,viewport:t.viewport}),rect:a,miter:n}};un.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};un.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};un.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((r,t)=>{if(r&&Array.isArray(r))return this.draw(...r);typeof r=="number"&&(r=this.passes[r]),r&&r.count>1&&r.opacity&&(this.regl._refresh(),r.fill&&r.triangles&&r.triangles.length>2&&this.shaders.fill(r),r.thickness&&(r.scale[0]*r.viewport.width>un.precisionThreshold||r.scale[1]*r.viewport.height>un.precisionThreshold?this.shaders.rect(r):r.join==="rect"||!r.join&&(r.thickness<=2||r.count>=un.maxPoints)?this.shaders.rect(r):this.shaders.miter(r)))}),this};un.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:r,gl:t}=this;if(e.forEach((n,i)=>{let o=this.passes[i];if(n!==void 0){if(n===null){this.passes[i]=null;return}if(typeof n[0]=="number"&&(n={positions:n}),n=b8e(n,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[i]=o={id:i,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:r.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},n=O7({},un.defaults,n)),n.thickness!=null&&(o.thickness=parseFloat(n.thickness)),n.opacity!=null&&(o.opacity=parseFloat(n.opacity)),n.miterLimit!=null&&(o.miterLimit=parseFloat(n.miterLimit)),n.overlay!=null&&(o.overlay=!!n.overlay,iT-E),A=[],_=0,x=o.hole!=null?o.hole[0]:null;if(x!=null){let T=T8e(b,E=>E>=x);b=b.slice(0,T),b.push(x)}for(let T=0;TF-x+(b[T]-_)),C=XK(E,M);C=C.map(F=>F+_+(F+_{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var ree=P((hIe,eee)=>{"use strict";var D8e=th(),F8e=uh(),q8e=o7(),R8e=If(),$K=ni(),QK=ah(),{float32:P8e,fract32:z7}=m_();eee.exports=N8e;var KK=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function N8e(e,r){if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let t=e._gl,a,n,i,o,l,s,f={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},u=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),n=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:KK}),p(r),a=e({vert:` precision highp float; attribute vec2 position, positionFract; @@ -706,10 +706,10 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= opacity; } - `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(m,b)=>[b.viewport.x,b.viewport.y,m.viewportWidth,m.viewportHeight]},attributes:{color:{buffer:o,offset:(m,b)=>b.offset*4,divisor:1},position:{buffer:n,offset:(m,b)=>b.offset*8,divisor:1},positionFract:{buffer:i,offset:(m,b)=>b.offset*8,divisor:1},error:{buffer:l,offset:(m,b)=>b.offset*16,divisor:1},direction:{buffer:s,stride:24,offset:0},lineOffset:{buffer:s,stride:24,offset:8},capOffset:{buffer:s,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:$K.length}),ZK(c,{update:p,draw:v,destroy:g,regl:e,gl:t,canvas:t.canvas,groups:u}),c;function c(m){m?p(m):m===null&&g(),v()}function v(m){if(typeof m=="number")return d(m);m&&!Array.isArray(m)&&(m=[m]),e._refresh(),u.forEach((b,A)=>{if(b){if(m&&(m[A]?b.draw=!0:b.draw=!1),!b.draw){b.draw=!0;return}d(A)}})}function d(m){typeof m=="number"&&(m=u[m]),m!=null&&m&&m.count&&m.color&&m.opacity&&m.positions&&m.positions.length>1&&(m.scaleRatio=[m.scale[0]*m.viewport.width,m.scale[1]*m.viewport.height],a(m),m.after&&m.after(m))}function p(m){if(!m)return;m.length!=null?typeof m[0]=="number"&&(m=[{positions:m}]):Array.isArray(m)||(m=[m]);let b=0,A=0;if(c.groups=u=m.map((T,E)=>{let M=u[E];if(T)typeof T=="function"?T={after:T}:typeof T[0]=="number"&&(T={positions:T});else return M;return T=D8e(T,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),M||(u[E]=M={id:E,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},T=ZK({},f,T)),L8e(M,T,[{lineWidth:k=>+k*.5,capSize:k=>+k*.5,opacity:parseFloat,errors:k=>(k=JK(k),A+=k.length,k),positions:(k,F)=>(k=JK(k,"float64"),F.count=Math.floor(k.length/2),F.bounds=k8e(k,2),F.offset=b,b+=F.count,k)},{color:(k,F)=>{let O=F.count;if(k||(k="transparent"),!Array.isArray(k)||typeof k[0]=="number"){let R=k;k=Array(O);for(let H=0;H{let I=F.bounds;return k||(k=I),F.scale=[1/(k[2]-k[0]),1/(k[3]-k[1])],F.translate=[-k[0],-k[1]],F.scaleFract=z7(F.scale),F.translateFract=z7(F.translate),k},viewport:k=>{let F;return Array.isArray(k)?F={x:k[0],y:k[1],width:k[2]-k[0],height:k[3]-k[1]}:k?(F={x:k.x||k.left||0,y:k.y||k.top||0},k.right?F.width=k.right-F.x:F.width=k.w||k.width||0,k.bottom?F.height=k.bottom-F.y:F.height=k.h||k.height||0):F={x:0,y:0,width:t.drawingBufferWidth,height:t.drawingBufferHeight},F}}]),M}),b||A){let T=u.reduce((F,O,I)=>F+(O?O.count:0),0),E=new Float64Array(T*2),M=new Uint8Array(T*4),k=new Float32Array(T*4);u.forEach((F,O)=>{if(!F)return;let{positions:I,count:R,offset:H,color:X,errors:le}=F;R&&(M.set(X,H*4),k.set(le,H*4),E.set(I,H*2))});var _=F8e(E);n(_);var x=z7(E,_);i(x),o(M),l(k)}}function g(){n.destroy(),i.destroy(),o.destroy(),l.destroy(),s.destroy()}}});var tee=P((vOe,ree)=>{var eee=/[\'\"]/;ree.exports=function(r){return r?(eee.test(r.charAt(0))&&(r=r.substr(1)),eee.test(r.charAt(r.length-1))&&(r=r.substr(0,r.length-1)),r):""}});var G7=P((hOe,q8e)=>{q8e.exports=["inherit","initial","unset"]});var U7=P((dOe,P8e)=>{P8e.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var H7=P((pOe,N8e)=>{N8e.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var V7=P((mOe,O8e)=>{O8e.exports=["normal","italic","oblique"]});var Y7=P((yOe,I8e)=>{I8e.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var oee=P((gOe,iee)=>{"use strict";function aee(e,r){if(typeof e!="string")return[e];var t=[e];typeof r=="string"||Array.isArray(r)?r={brackets:r}:r||(r={});var a=r.brackets?Array.isArray(r.brackets)?r.brackets:[r.brackets]:["{}","[]","()"],n=r.escape||"___",i=!!r.flat;a.forEach(function(s){var f=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),u=[];function c(v,d,p){var g=t.push(v.slice(s[0].length,-s[1].length))-1;return u.push(g),n+g+n}t.forEach(function(v,d){for(var p,g=0;v!=p;)if(p=v,v=v.replace(f,c),g++>1e4)throw Error("References have circular dependency. Please, check them.");t[d]=v}),u=u.reverse(),t=t.map(function(v){return u.forEach(function(d){v=v.replace(new RegExp("(\\"+n+d+"\\"+n+")","g"),s[0]+"$1"+s[1])}),v})});var o=new RegExp("\\"+n+"([0-9]+)\\"+n);function l(s,f,u){for(var c=[],v,d=0;v=o.exec(s);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(s.slice(0,v.index)),c.push(l(f[v[1]],f)),s=s.slice(v.index+v[0].length)}return c.push(s),c}return i?t:l(t[0],t)}function nee(e,r){if(r&&r.flat){var t=r&&r.escape||"___",a=e[0],n;if(!a)return"";for(var i=new RegExp("\\"+t+"([0-9]+)\\"+t),o=0;a!=n;){if(o++>1e4)throw Error("Circular references in "+e);n=a,a=a.replace(i,l)}return a}return e.reduce(function s(f,u){return Array.isArray(u)&&(u=u.reduce(s,"")),f+u},"");function l(s,f){if(e[f]==null)throw Error("Reference "+f+"is undefined");return e[f]}}function W7(e,r){return Array.isArray(e)?nee(e,r):aee(e,r)}W7.parse=aee;W7.stringify=nee;iee.exports=W7});var fee=P((bOe,see)=>{"use strict";var lee=oee();see.exports=function(r,t,a){if(r==null)throw Error("First argument should be a string");if(t==null)throw Error("Separator should be a string or a RegExp");a?(typeof a=="string"||Array.isArray(a))&&(a={ignore:a}):a={},a.escape==null&&(a.escape=!0),a.ignore==null?a.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof a.ignore=="string"&&(a.ignore=[a.ignore]),a.ignore=a.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var n=lee.parse(r,{flat:!0,brackets:a.ignore}),i=n[0],o=i.split(t);if(a.escape){for(var l=[],s=0;s{B8e.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var j7=P((_Oe,cee)=>{"use strict";var z8e=uee();cee.exports={isSize:function(r){return/^[\d\.]/.test(r)||r.indexOf("/")!==-1||z8e.indexOf(r)!==-1}}});var pee=P((wOe,dee)=>{"use strict";var G8e=tee(),U8e=G7(),H8e=U7(),V8e=H7(),Y8e=V7(),W8e=Y7(),X7=fee(),j8e=j7().isSize;dee.exports=hee;var ag=hee.cache={};function hee(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(ag[e])return ag[e];if(e==="")throw new Error("Cannot parse an empty string.");if(H8e.indexOf(e)!==-1)return ag[e]={system:e};for(var r={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},t=X7(e,/\s+/),a;a=t.shift();){if(U8e.indexOf(a)!==-1)return["style","variant","weight","stretch"].forEach(function(i){r[i]=a}),ag[e]=r;if(Y8e.indexOf(a)!==-1){r.style=a;continue}if(a==="normal"||a==="small-caps"){r.variant=a;continue}if(W8e.indexOf(a)!==-1){r.stretch=a;continue}if(V8e.indexOf(a)!==-1){r.weight=a;continue}if(j8e(a)){var n=X7(a,"/");if(r.size=n[0],n[1]!=null?r.lineHeight=vee(n[1]):t[0]==="/"&&(t.shift(),r.lineHeight=vee(t.shift())),!t.length)throw new Error("Missing required font-family.");return r.family=X7(t.join(" "),/\s*,\s*/).map(G8e),ag[e]=r}throw new Error("Unknown or unsupported font token: "+a)}throw new Error("Missing required font-size.")}function vee(e){var r=parseFloat(e);return r.toString()===e?r:e}});var J7=P((AOe,mee)=>{"use strict";var X8e=Of(),Z8e=j7().isSize,J8e=ig(G7()),$8e=ig(U7()),Q8e=ig(H7()),K8e=ig(V7()),e7e=ig(Y7()),r7e={normal:1,"small-caps":1},t7e={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},Z7={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};mee.exports=function(r){if(r=X8e(r,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),r.system)return r.system&&ng(r.system,$8e),r.system;if(ng(r.style,K8e),ng(r.variant,r7e),ng(r.weight,Q8e),ng(r.stretch,e7e),r.size==null&&(r.size=Z7.size),typeof r.size=="number"&&(r.size+="px"),!Z8e)throw Error("Bad size value `"+r.size+"`");r.family||(r.family=Z7.family),Array.isArray(r.family)&&(r.family.length||(r.family=[Z7.family]),r.family=r.family.map(function(a){return t7e[a]?a:'"'+a+'"'}).join(", "));var t=[];return t.push(r.style),r.variant!==r.style&&t.push(r.variant),r.weight!==r.variant&&r.weight!==r.style&&t.push(r.weight),r.stretch!==r.weight&&r.stretch!==r.variant&&r.stretch!==r.style&&t.push(r.stretch),t.push(r.size+(r.lineHeight==null||r.lineHeight==="normal"||r.lineHeight+""=="1"?"":"/"+r.lineHeight)),t.push(r.family),t.filter(Boolean).join(" ")};function ng(e,r){if(e&&!r[e]&&!J8e[e])throw Error("Unknown keyword `"+e+"`");return e}function ig(e){for(var r={},t=0;t{"use strict";yee.exports={parse:pee(),stringify:J7()}});var bee=P(($7,Q7)=>{(function(e,r){typeof $7=="object"&&typeof Q7!="undefined"?Q7.exports=r():e.createREGL=r()})($7,function(){"use strict";var e=function(S,B){for(var V=Object.keys(B),he=0;he1&&B===V&&(B==='"'||B==="'"))return['"'+o(S.substr(1,S.length-2))+'"'];var he=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(S);if(he)return l(S.substr(0,he.index)).concat(l(he[1])).concat(l(S.substr(he.index+he[0].length)));var xe=S.split(".");if(xe.length===1)return['"'+o(S)+'"'];for(var we=[],_e=0;_e65535)<<4,S>>>=B,V=(S>255)<<3,S>>>=V,B|=V,V=(S>15)<<2,S>>>=V,B|=V,V=(S>3)<<1,S>>>=V,B|=V,B|S>>1}function Z(){var S=k(8,function(){return[]});function B(we){var _e=ae(we),We=S[$(_e)>>2];return We.length>0?We.pop():new ArrayBuffer(_e)}function V(we){S[$(we.byteLength)>>2].push(we)}function he(we,_e){var We=null;switch(we){case F:We=new Int8Array(B(_e),0,_e);break;case O:We=new Uint8Array(B(_e),0,_e);break;case I:We=new Int16Array(B(2*_e),0,_e);break;case R:We=new Uint16Array(B(2*_e),0,_e);break;case H:We=new Int32Array(B(4*_e),0,_e);break;case X:We=new Uint32Array(B(4*_e),0,_e);break;case le:We=new Float32Array(B(4*_e),0,_e);break;default:return null}return We.length!==_e?We.subarray(0,_e):We}function xe(we){V(we.buffer)}return{alloc:B,free:V,allocType:he,freeType:xe}}var J=Z();J.zero=Z();var ie=3408,ue=3410,De=3411,Oe=3412,Ee=3413,Ze=3414,Ae=3415,ir=33901,Ge=33902,Qe=3379,He=3386,Ve=34921,ee=36347,ge=36348,re=35661,Ye=35660,vr=34930,rr=36349,Cr=34076,Lr=34024,_r=7936,Pr=7937,rt=7938,Jr=35724,wr=34047,Hr=36063,Vr=34852,Pe=3553,sr=34067,lt=34069,Et=33984,wt=6408,Fe=5126,hr=5121,Or=36160,at=36053,Yr=36064,nt=16384,vt=function(S,B){var V=1;B.ext_texture_filter_anisotropic&&(V=S.getParameter(wr));var he=1,xe=1;B.webgl_draw_buffers&&(he=S.getParameter(Vr),xe=S.getParameter(Hr));var we=!!B.oes_texture_float;if(we){var _e=S.createTexture();S.bindTexture(Pe,_e),S.texImage2D(Pe,0,wt,1,1,0,wt,Fe,null);var We=S.createFramebuffer();if(S.bindFramebuffer(Or,We),S.framebufferTexture2D(Or,Yr,Pe,_e,0),S.bindTexture(Pe,null),S.checkFramebufferStatus(Or)!==at)we=!1;else{S.viewport(0,0,1,1),S.clearColor(1,0,0,1),S.clear(nt);var or=J.allocType(Fe,4);S.readPixels(0,0,1,1,wt,Fe,or),S.getError()?we=!1:(S.deleteFramebuffer(We),S.deleteTexture(_e),we=or[0]===1),J.freeType(or)}}var nr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),lr=!0;if(!nr){var Zr=S.createTexture(),Fr=J.allocType(hr,36);S.activeTexture(Et),S.bindTexture(sr,Zr),S.texImage2D(lt,0,wt,3,3,0,wt,hr,Fr),J.freeType(Fr),S.bindTexture(sr,null),S.deleteTexture(Zr),lr=!S.getError()}return{colorBits:[S.getParameter(ue),S.getParameter(De),S.getParameter(Oe),S.getParameter(Ee)],depthBits:S.getParameter(Ze),stencilBits:S.getParameter(Ae),subpixelBits:S.getParameter(ie),extensions:Object.keys(B).filter(function(br){return!!B[br]}),maxAnisotropic:V,maxDrawbuffers:he,maxColorAttachments:xe,pointSizeDims:S.getParameter(ir),lineWidthDims:S.getParameter(Ge),maxViewportDims:S.getParameter(He),maxCombinedTextureUnits:S.getParameter(re),maxCubeMapSize:S.getParameter(Cr),maxRenderbufferSize:S.getParameter(Lr),maxTextureUnits:S.getParameter(vr),maxTextureSize:S.getParameter(Qe),maxAttributes:S.getParameter(Ve),maxVertexUniforms:S.getParameter(ee),maxVertexTextureUnits:S.getParameter(Ye),maxVaryingVectors:S.getParameter(ge),maxFragmentUniforms:S.getParameter(rr),glsl:S.getParameter(Jr),renderer:S.getParameter(Pr),vendor:S.getParameter(_r),version:S.getParameter(rt),readFloat:we,npotTextureCube:lr}},ot=function(S){return S instanceof Uint8Array||S instanceof Uint16Array||S instanceof Uint32Array||S instanceof Int8Array||S instanceof Int16Array||S instanceof Int32Array||S instanceof Float32Array||S instanceof Float64Array||S instanceof Uint8ClampedArray};function et(S){return!!S&&typeof S=="object"&&Array.isArray(S.shape)&&Array.isArray(S.stride)&&typeof S.offset=="number"&&S.shape.length===S.stride.length&&(Array.isArray(S.data)||ot(S.data))}var pr=function(S){return Object.keys(S).map(function(B){return S[B]})},Se={shape:gt,flatten:At};function Ie(S,B,V){for(var he=0;he0){var Wr;if(Array.isArray(ke[0])){mr=ia(ke);for(var Be=1,qe=1;qe0){if(typeof Be[0]=="number"){var fr=J.allocType(ze.dtype,Be.length);Wi(fr,Be),mr(fr,Mr),J.freeType(fr)}else if(Array.isArray(Be[0])||ot(Be[0])){dr=ia(Be);var ur=Ca(Be,dr,ze.dtype);mr(ur,Mr),J.freeType(ur)}}}else if(et(Be)){dr=Be.shape;var Sr=Be.stride,jr=0,ut=0,gr=0,kr=0;dr.length===1?(jr=dr[0],ut=1,gr=Sr[0],kr=0):dr.length===2&&(jr=dr[0],ut=dr[1],gr=Sr[0],kr=Sr[1]);var st=Array.isArray(Be.data)?ze.dtype:tn(Be.data),ft=J.allocType(st,jr*ut);ji(ft,Be.data,jr,ut,gr,kr,Be.offset),mr(ft,Mr),J.freeType(ft)}return xr}return Je||xr(fe),xr._reglType="buffer",xr._buffer=ze,xr.subdata=Wr,V.profile&&(xr.stats=ze.stats),xr.destroy=function(){Fr(ze)},xr}function Ne(){pr(we).forEach(function(fe){fe.buffer=S.createBuffer(),S.bindBuffer(fe.type,fe.buffer),S.bufferData(fe.type,fe.persistentData||fe.byteLength,fe.usage)})}return V.profile&&(B.getTotalBufferSize=function(){var fe=0;return Object.keys(we).forEach(function(ke){fe+=we[ke].stats.size}),fe}),{create:br,createStream:or,destroyStream:nr,clear:function(){pr(we).forEach(Fr),We.forEach(Fr)},getBuffer:function(fe){return fe&&fe._buffer instanceof _e?fe._buffer:null},restore:Ne,_initBuffer:Zr}}var Ra=0,Xn=0,ss=1,fs=1,kl=4,Zu=4,Oo={points:Ra,point:Xn,lines:ss,line:fs,triangles:kl,triangle:Zu,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Yf=0,Wf=1,Xi=4,hi=5120,Ii=5121,Cl=5122,di=5123,qt=5124,$t=5125,ua=34963,_t=35040,Zn=35044;function Ua(S,B,V,he){var xe={},we=0,_e={uint8:Ii,uint16:di};B.oes_element_index_uint&&(_e.uint32=$t);function We(Ne){this.id=we++,xe[this.id]=this,this.buffer=Ne,this.primType=Xi,this.vertCount=0,this.type=0}We.prototype.bind=function(){this.buffer.bind()};var or=[];function nr(Ne){var fe=or.pop();return fe||(fe=new We(V.create(null,ua,!0,!1)._buffer)),Zr(fe,Ne,_t,-1,-1,0,0),fe}function lr(Ne){or.push(Ne)}function Zr(Ne,fe,ke,Je,ar,ze,xr){Ne.buffer.bind();var mr;if(fe){var Wr=xr;!xr&&(!ot(fe)||et(fe)&&!ot(fe.data))&&(Wr=B.oes_element_index_uint?$t:di),V._initBuffer(Ne.buffer,fe,ke,Wr,3)}else S.bufferData(ua,ze,ke),Ne.buffer.dtype=mr||Ii,Ne.buffer.usage=ke,Ne.buffer.dimension=3,Ne.buffer.byteLength=ze;if(mr=xr,!xr){switch(Ne.buffer.dtype){case Ii:case hi:mr=Ii;break;case di:case Cl:mr=di;break;case $t:case qt:mr=$t;break;default:}Ne.buffer.dtype=mr}Ne.type=mr;var Be=ar;Be<0&&(Be=Ne.buffer.byteLength,mr===di?Be>>=1:mr===$t&&(Be>>=2)),Ne.vertCount=Be;var qe=Je;if(Je<0){qe=Xi;var Mr=Ne.buffer.dimension;Mr===1&&(qe=Yf),Mr===2&&(qe=Wf),Mr===3&&(qe=Xi)}Ne.primType=qe}function Fr(Ne){he.elementsCount--,delete xe[Ne.id],Ne.buffer.destroy(),Ne.buffer=null}function br(Ne,fe){var ke=V.create(null,ua,!0),Je=new We(ke._buffer);he.elementsCount++;function ar(ze){if(!ze)ke(),Je.primType=Xi,Je.vertCount=0,Je.type=Ii;else if(typeof ze=="number")ke(ze),Je.primType=Xi,Je.vertCount=ze|0,Je.type=Ii;else{var xr=null,mr=Zn,Wr=-1,Be=-1,qe=0,Mr=0;Array.isArray(ze)||ot(ze)||et(ze)?xr=ze:("data"in ze&&(xr=ze.data),"usage"in ze&&(mr=Pt[ze.usage]),"primitive"in ze&&(Wr=Oo[ze.primitive]),"count"in ze&&(Be=ze.count|0),"type"in ze&&(Mr=_e[ze.type]),"length"in ze?qe=ze.length|0:(qe=Be,Mr===di||Mr===Cl?qe*=2:(Mr===$t||Mr===qt)&&(qe*=4))),Zr(Je,xr,mr,Wr,Be,qe,Mr)}return ar}return ar(Ne),ar._reglType="elements",ar._elements=Je,ar.subdata=function(ze,xr){return ke.subdata(ze,xr),ar},ar.destroy=function(){Fr(Je)},ar}return{create:br,createStream:nr,destroyStream:lr,getElements:function(Ne){return typeof Ne=="function"&&Ne._elements instanceof We?Ne._elements:null},clear:function(){pr(xe).forEach(Fr)}}}var Pn=new Float32Array(1),ra=new Uint32Array(Pn.buffer),wo=5123;function ol(S){for(var B=J.allocType(wo,S.length),V=0;V>>31<<15,we=(he<<1>>>24)-127,_e=he>>13&1023;if(we<-24)B[V]=xe;else if(we<-14){var We=-14-we;B[V]=xe+(_e+1024>>We)}else we>15?B[V]=xe+31744:B[V]=xe+(we+15<<10)+_e}return B}function Si(S){return Array.isArray(S)||ot(S)}var Z1=34467,An=3553,Ll=34067,Io=34069,pi=6408,rf=6406,Bo=6407,Ao=6409,Dl=6410,Ju=32854,zo=32855,us=36194,Mh=32819,J1=32820,$u=33635,Lv=34042,cs=6402,Fl=34041,Go=35904,To=35906,mi=36193,tf=33776,vs=33777,ll=33778,af=33779,Dv=35986,Qu=35987,jf=34798,Fv=35840,Rv=35841,Ku=35842,qv=35843,ec=36196,Mo=5121,nf=5123,Xf=5125,Bi=5126,of=10242,$1=10243,Q1=10497,Zf=33071,Sh=33648,Jf=10240,K1=10241,Rl=9728,rc=9729,hs=9984,lf=9985,ds=9986,sl=9987,Eh=33170,fl=4352,ep=4353,tc=4354,rp=34046,tp=3317,ap=37440,kh=37441,$f=37443,Pv=37444,So=33984,Ch=[hs,ds,lf,sl],Ei=[0,Ao,Dl,Bo,pi],Tn={};Tn[Ao]=Tn[rf]=Tn[cs]=1,Tn[Fl]=Tn[Dl]=2,Tn[Bo]=Tn[Go]=3,Tn[pi]=Tn[To]=4;function Zi(S){return"[object "+S+"]"}var Qf=Zi("HTMLCanvasElement"),ul=Zi("OffscreenCanvas"),sf=Zi("CanvasRenderingContext2D"),ac=Zi("ImageBitmap"),Nv=Zi("HTMLImageElement"),Ov=Zi("HTMLVideoElement"),np=Object.keys(Nt).concat([Qf,ul,sf,ac,Nv,Ov]),so=[];so[Mo]=1,so[Bi]=4,so[mi]=2,so[nf]=2,so[Xf]=4;var wa=[];wa[Ju]=2,wa[zo]=2,wa[us]=2,wa[Fl]=4,wa[tf]=.5,wa[vs]=.5,wa[ll]=1,wa[af]=1,wa[Dv]=.5,wa[Qu]=1,wa[jf]=1,wa[Fv]=.5,wa[Rv]=.25,wa[Ku]=.5,wa[qv]=.25,wa[ec]=.5;function Iv(S){return Array.isArray(S)&&(S.length===0||typeof S[0]=="number")}function Bv(S){if(!Array.isArray(S))return!1;var B=S.length;return!(B===0||!Si(S[0]))}function Ji(S){return Object.prototype.toString.call(S)}function zv(S){return Ji(S)===Qf}function Gv(S){return Ji(S)===ul}function ip(S){return Ji(S)===sf}function op(S){return Ji(S)===ac}function lp(S){return Ji(S)===Nv}function sp(S){return Ji(S)===Ov}function Kf(S){if(!S)return!1;var B=Ji(S);return np.indexOf(B)>=0?!0:Iv(S)||Bv(S)||et(S)}function Uv(S){return Nt[Object.prototype.toString.call(S)]|0}function fp(S,B){var V=B.length;switch(S.type){case Mo:case nf:case Xf:case Bi:var he=J.allocType(S.type,V);he.set(B),S.data=he;break;case mi:S.data=ol(B);break;default:}}function Hv(S,B){return J.allocType(S.type===mi?Bi:S.type,B)}function nc(S,B){S.type===mi?(S.data=ol(B),J.freeType(B)):S.data=B}function Lh(S,B,V,he,xe,we){for(var _e=S.width,We=S.height,or=S.channels,nr=_e*We*or,lr=Hv(S,nr),Zr=0,Fr=0;Fr=1;)We+=_e*or*or,or/=2;return We}else return _e*V*he}function Dh(S,B,V,he,xe,we,_e){var We={"don't care":fl,"dont care":fl,nice:tc,fast:ep},or={repeat:Q1,clamp:Zf,mirror:Sh},nr={nearest:Rl,linear:rc},lr=e({mipmap:sl,"nearest mipmap nearest":hs,"linear mipmap nearest":lf,"nearest mipmap linear":ds,"linear mipmap linear":sl},nr),Zr={none:0,browser:Pv},Fr={uint8:Mo,rgba4:Mh,rgb565:$u,"rgb5 a1":J1},br={alpha:rf,luminance:Ao,"luminance alpha":Dl,rgb:Bo,rgba:pi,rgba4:Ju,"rgb5 a1":zo,rgb565:us},Ne={};B.ext_srgb&&(br.srgb=Go,br.srgba=To),B.oes_texture_float&&(Fr.float32=Fr.float=Bi),B.oes_texture_half_float&&(Fr.float16=Fr["half float"]=mi),B.webgl_depth_texture&&(e(br,{depth:cs,"depth stencil":Fl}),e(Fr,{uint16:nf,uint32:Xf,"depth stencil":Lv})),B.webgl_compressed_texture_s3tc&&e(Ne,{"rgb s3tc dxt1":tf,"rgba s3tc dxt1":vs,"rgba s3tc dxt3":ll,"rgba s3tc dxt5":af}),B.webgl_compressed_texture_atc&&e(Ne,{"rgb atc":Dv,"rgba atc explicit alpha":Qu,"rgba atc interpolated alpha":jf}),B.webgl_compressed_texture_pvrtc&&e(Ne,{"rgb pvrtc 4bppv1":Fv,"rgb pvrtc 2bppv1":Rv,"rgba pvrtc 4bppv1":Ku,"rgba pvrtc 2bppv1":qv}),B.webgl_compressed_texture_etc1&&(Ne["rgb etc1"]=ec);var fe=Array.prototype.slice.call(S.getParameter(Z1));Object.keys(Ne).forEach(function(z){var pe=Ne[z];fe.indexOf(pe)>=0&&(br[z]=pe)});var ke=Object.keys(br);V.textureFormats=ke;var Je=[];Object.keys(br).forEach(function(z){var pe=br[z];Je[pe]=z});var ar=[];Object.keys(Fr).forEach(function(z){var pe=Fr[z];ar[pe]=z});var ze=[];Object.keys(nr).forEach(function(z){var pe=nr[z];ze[pe]=z});var xr=[];Object.keys(lr).forEach(function(z){var pe=lr[z];xr[pe]=z});var mr=[];Object.keys(or).forEach(function(z){var pe=or[z];mr[pe]=z});var Wr=ke.reduce(function(z,pe){var be=br[pe];return be===Ao||be===rf||be===Ao||be===Dl||be===cs||be===Fl||B.ext_srgb&&(be===Go||be===To)?z[be]=be:be===zo||pe.indexOf("rgba")>=0?z[be]=pi:z[be]=Bo,z},{});function Be(){this.internalformat=pi,this.format=pi,this.type=Mo,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Pv,this.width=0,this.height=0,this.channels=0}function qe(z,pe){z.internalformat=pe.internalformat,z.format=pe.format,z.type=pe.type,z.compressed=pe.compressed,z.premultiplyAlpha=pe.premultiplyAlpha,z.flipY=pe.flipY,z.unpackAlignment=pe.unpackAlignment,z.colorSpace=pe.colorSpace,z.width=pe.width,z.height=pe.height,z.channels=pe.channels}function Mr(z,pe){if(!(typeof pe!="object"||!pe)){if("premultiplyAlpha"in pe&&(z.premultiplyAlpha=pe.premultiplyAlpha),"flipY"in pe&&(z.flipY=pe.flipY),"alignment"in pe&&(z.unpackAlignment=pe.alignment),"colorSpace"in pe&&(z.colorSpace=Zr[pe.colorSpace]),"type"in pe){var be=pe.type;z.type=Fr[be]}var Nr=z.width,Dt=z.height,Ht=z.channels,Rr=!1;"shape"in pe?(Nr=pe.shape[0],Dt=pe.shape[1],pe.shape.length===3&&(Ht=pe.shape[2],Rr=!0)):("radius"in pe&&(Nr=Dt=pe.radius),"width"in pe&&(Nr=pe.width),"height"in pe&&(Dt=pe.height),"channels"in pe&&(Ht=pe.channels,Rr=!0)),z.width=Nr|0,z.height=Dt|0,z.channels=Ht|0;var N=!1;if("format"in pe){var U=pe.format,Q=z.internalformat=br[U];z.format=Wr[Q],U in Fr&&("type"in pe||(z.type=Fr[U])),U in Ne&&(z.compressed=!0),N=!0}!Rr&&N?z.channels=Tn[z.format]:Rr&&!N&&z.channels!==Ei[z.format]&&(z.format=z.internalformat=Ei[z.channels])}}function dr(z){S.pixelStorei(ap,z.flipY),S.pixelStorei(kh,z.premultiplyAlpha),S.pixelStorei($f,z.colorSpace),S.pixelStorei(tp,z.unpackAlignment)}function fr(){Be.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function ur(z,pe){var be=null;if(Kf(pe)?be=pe:pe&&(Mr(z,pe),"x"in pe&&(z.xOffset=pe.x|0),"y"in pe&&(z.yOffset=pe.y|0),Kf(pe.data)&&(be=pe.data)),pe.copy){var Nr=xe.viewportWidth,Dt=xe.viewportHeight;z.width=z.width||Nr-z.xOffset,z.height=z.height||Dt-z.yOffset,z.needsCopy=!0}else if(!be)z.width=z.width||1,z.height=z.height||1,z.channels=z.channels||4;else if(ot(be))z.channels=z.channels||4,z.data=be,!("type"in pe)&&z.type===Mo&&(z.type=Uv(be));else if(Iv(be))z.channels=z.channels||4,fp(z,be),z.alignment=1,z.needsFree=!0;else if(et(be)){var Ht=be.data;!Array.isArray(Ht)&&z.type===Mo&&(z.type=Uv(Ht));var Rr=be.shape,N=be.stride,U,Q,de,Te,ce,se;Rr.length===3?(de=Rr[2],se=N[2]):(de=1,se=1),U=Rr[0],Q=Rr[1],Te=N[0],ce=N[1],z.alignment=1,z.width=U,z.height=Q,z.channels=de,z.format=z.internalformat=Ei[de],z.needsFree=!0,Lh(z,Ht,Te,ce,se,be.offset)}else if(zv(be)||Gv(be)||ip(be))zv(be)||Gv(be)?z.element=be:z.element=be.canvas,z.width=z.element.width,z.height=z.element.height,z.channels=4;else if(op(be))z.element=be,z.width=be.width,z.height=be.height,z.channels=4;else if(lp(be))z.element=be,z.width=be.naturalWidth,z.height=be.naturalHeight,z.channels=4;else if(sp(be))z.element=be,z.width=be.videoWidth,z.height=be.videoHeight,z.channels=4;else if(Bv(be)){var te=z.width||be[0].length,W=z.height||be.length,K=z.channels;Si(be[0][0])?K=K||be[0][0].length:K=K||1;for(var Y=Se.shape(be),ve=1,Ce=0;Ce>=Dt,be.height>>=Dt,ur(be,Nr[Dt]),z.mipmask|=1<=0&&!("faces"in pe)&&(z.genMipmaps=!0)}if("mag"in pe){var Nr=pe.mag;z.magFilter=nr[Nr]}var Dt=z.wrapS,Ht=z.wrapT;if("wrap"in pe){var Rr=pe.wrap;typeof Rr=="string"?Dt=Ht=or[Rr]:Array.isArray(Rr)&&(Dt=or[Rr[0]],Ht=or[Rr[1]])}else{if("wrapS"in pe){var N=pe.wrapS;Dt=or[N]}if("wrapT"in pe){var U=pe.wrapT;Ht=or[U]}}if(z.wrapS=Dt,z.wrapT=Ht,"anisotropic"in pe){var Q=pe.anisotropic;z.anisotropic=pe.anisotropic}if("mipmap"in pe){var de=!1;switch(typeof pe.mipmap){case"string":z.mipmapHint=We[pe.mipmap],z.genMipmaps=!0,de=!0;break;case"boolean":de=z.genMipmaps=pe.mipmap;break;case"object":z.genMipmaps=!1,de=!0;break;default:}de&&!("min"in pe)&&(z.minFilter=hs)}}function Za(z,pe){S.texParameteri(pe,K1,z.minFilter),S.texParameteri(pe,Jf,z.magFilter),S.texParameteri(pe,of,z.wrapS),S.texParameteri(pe,$1,z.wrapT),B.ext_texture_filter_anisotropic&&S.texParameteri(pe,rp,z.anisotropic),z.genMipmaps&&(S.hint(Eh,z.mipmapHint),S.generateMipmap(pe))}var on=0,ma={},ya=V.maxTextureUnits,Sa=Array(ya).map(function(){return null});function Tt(z){Be.call(this),this.mipmask=0,this.internalformat=pi,this.id=on++,this.refCount=1,this.target=z,this.texture=S.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ut,_e.profile&&(this.stats={size:0})}function qa(z){S.activeTexture(So),S.bindTexture(z.target,z.texture)}function Wt(){var z=Sa[0];z?S.bindTexture(z.target,z.texture):S.bindTexture(An,null)}function Ja(z){var pe=z.texture,be=z.unit,Nr=z.target;be>=0&&(S.activeTexture(So+be),S.bindTexture(Nr,null),Sa[be]=null),S.deleteTexture(pe),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete ma[z.id],we.textureCount--}e(Tt.prototype,{bind:function(){var z=this;z.bindCount+=1;var pe=z.unit;if(pe<0){for(var be=0;be0)continue;Nr.unit=-1}Sa[be]=z,pe=be;break}pe>=ya,_e.profile&&we.maxTextureUnits>ce)-de,se.height=se.height||(be.height>>ce)-Te,qa(be),jr(se,An,de,Te,ce),Wt(),kr(se),Nr}function Ht(Rr,N){var U=Rr|0,Q=N|0||U;if(U===be.width&&Q===be.height)return Nr;Nr.width=be.width=U,Nr.height=be.height=Q,qa(be);for(var de=0;be.mipmask>>de;++de){var Te=U>>de,ce=Q>>de;if(!Te||!ce)break;S.texImage2D(An,de,be.format,Te,ce,0,be.format,be.type,null)}return Wt(),_e.profile&&(be.stats.size=ql(be.internalformat,be.type,U,Q,!1,!1)),Nr}return Nr(z,pe),Nr.subimage=Dt,Nr.resize=Ht,Nr._reglType="texture2d",Nr._texture=be,_e.profile&&(Nr.stats=be.stats),Nr.destroy=function(){be.decRef()},Nr}function sn(z,pe,be,Nr,Dt,Ht){var Rr=new Tt(Ll);ma[Rr.id]=Rr,we.cubeCount++;var N=new Array(6);function U(Te,ce,se,te,W,K){var Y,ve=Rr.texInfo;for(Ut.call(ve),Y=0;Y<6;++Y)N[Y]=Lt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(Y=0;Y<6;++Y)ft(N[Y],Ce,Ce)}else if(typeof Te=="object")if(ce)St(N[0],Te),St(N[1],ce),St(N[2],se),St(N[3],te),St(N[4],W),St(N[5],K);else if(Ya(ve,Te),Mr(Rr,Te),"faces"in Te){var $e=Te.faces;for(Y=0;Y<6;++Y)qe(N[Y],Rr),St(N[Y],$e[Y])}else for(Y=0;Y<6;++Y)St(N[Y],Te);for(qe(Rr,N[0]),ve.genMipmaps?Rr.mipmask=(N[0].width<<1)-1:Rr.mipmask=N[0].mipmask,Rr.internalformat=N[0].internalformat,U.width=N[0].width,U.height=N[0].height,qa(Rr),Y=0;Y<6;++Y)aa(N[Y],Io+Y);for(Za(ve,Ll),Wt(),_e.profile&&(Rr.stats.size=ql(Rr.internalformat,Rr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Je[Rr.internalformat],U.type=ar[Rr.type],U.mag=ze[ve.magFilter],U.min=xr[ve.minFilter],U.wrapS=mr[ve.wrapS],U.wrapT=mr[ve.wrapT],Y=0;Y<6;++Y)nn(N[Y]);return U}function Q(Te,ce,se,te,W){var K=se|0,Y=te|0,ve=W|0,Ce=gr();return qe(Ce,Rr),Ce.width=0,Ce.height=0,ur(Ce,ce),Ce.width=Ce.width||(Rr.width>>ve)-K,Ce.height=Ce.height||(Rr.height>>ve)-Y,qa(Rr),jr(Ce,Io+Te,K,Y,ve),Wt(),kr(Ce),U}function de(Te){var ce=Te|0;if(ce!==Rr.width){U.width=Rr.width=ce,U.height=Rr.height=ce,qa(Rr);for(var se=0;se<6;++se)for(var te=0;Rr.mipmask>>te;++te)S.texImage2D(Io+se,te,Rr.format,ce>>te,ce>>te,0,Rr.format,Rr.type,null);return Wt(),_e.profile&&(Rr.stats.size=ql(Rr.internalformat,Rr.type,U.width,U.height,!1,!0)),U}}return U(z,pe,be,Nr,Dt,Ht),U.subimage=Q,U.resize=de,U._reglType="textureCube",U._texture=Rr,_e.profile&&(U.stats=Rr.stats),U.destroy=function(){Rr.decRef()},U}function pt(){for(var z=0;z>Nr,be.height>>Nr,0,be.internalformat,be.type,null);else for(var Dt=0;Dt<6;++Dt)S.texImage2D(Io+Dt,Nr,be.internalformat,be.width>>Nr,be.height>>Nr,0,be.internalformat,be.type,null);Za(be.texInfo,be.target)})}function Qt(){for(var z=0;z=0?nn=!0:or.indexOf(Ut)>=0&&(nn=!1))),("depthTexture"in Tt||"depthStencilTexture"in Tt)&&(Sa=!!(Tt.depthTexture||Tt.depthStencilTexture)),"depth"in Tt&&(typeof Tt.depth=="boolean"?aa=Tt.depth:(on=Tt.depth,Ma=!1)),"stencil"in Tt&&(typeof Tt.stencil=="boolean"?Ma=Tt.stencil:(ma=Tt.stencil,aa=!1)),"depthStencil"in Tt&&(typeof Tt.depthStencil=="boolean"?aa=Ma=Tt.depthStencil:(ya=Tt.depthStencil,aa=!1,Ma=!1))}var Wt=null,Ja=null,ln=null,sn=null;if(Array.isArray(Lt))Wt=Lt.map(Ne);else if(Lt)Wt=[Ne(Lt)];else for(Wt=new Array(Za),st=0;st0&&(kr.depth=ur[0].depth,kr.stencil=ur[0].stencil,kr.depthStencil=ur[0].depthStencil),ur[gr]?ur[gr](kr):ur[gr]=qe(kr)}return e(Sr,{width:st,height:st,color:Ut})}function jr(ut){var gr,kr=ut|0;if(kr===Sr.width)return Sr;var st=Sr.color;for(gr=0;gr=st.byteLength?ft.subdata(st):(ft.destroy(),qe.buffers[ut]=null)),qe.buffers[ut]||(ft=qe.buffers[ut]=xe.create(gr,r0,!1,!0)),kr.buffer=xe.getBuffer(ft),kr.size=kr.buffer.dimension|0,kr.normalized=!1,kr.type=kr.buffer.dtype,kr.offset=0,kr.stride=0,kr.divisor=0,kr.state=1,Sr[ut]=1}else xe.getBuffer(gr)?(kr.buffer=xe.getBuffer(gr),kr.size=kr.buffer.dimension|0,kr.normalized=!1,kr.type=kr.buffer.dtype,kr.offset=0,kr.stride=0,kr.divisor=0,kr.state=1):xe.getBuffer(gr.buffer)?(kr.buffer=xe.getBuffer(gr.buffer),kr.size=(+gr.size||kr.buffer.dimension)|0,kr.normalized=!!gr.normalized||!1,"type"in gr?kr.type=vn[gr.type]:kr.type=kr.buffer.dtype,kr.offset=(gr.offset||0)|0,kr.stride=(gr.stride||0)|0,kr.divisor=(gr.divisor||0)|0,kr.state=1):"x"in gr&&(kr.x=+gr.x||0,kr.y=+gr.y||0,kr.z=+gr.z||0,kr.w=+gr.w||0,kr.state=2)}for(var St=0;St1)for(var dr=0;drfe&&(fe=ke.stats.uniformsCount)}),fe},V.getMaxAttributesCount=function(){var fe=0;return lr.forEach(function(ke){ke.stats.attributesCount>fe&&(fe=ke.stats.attributesCount)}),fe});function Ne(){xe={},we={};for(var fe=0;fe16&&(V=cl(V,S.length*8));for(var he=Array(16),xe=Array(16),we=0;we<16;we++)he[we]=V[we]^909522486,xe[we]=V[we]^1549556828;var _e=cl(he.concat(au(B)),512+B.length*8);return i0(cl(xe.concat(_e),768))}function Nh(S){for(var B=qh?"0123456789ABCDEF":"0123456789abcdef",V="",he,xe=0;xe>>4&15)+B.charAt(he&15);return V}function Ap(S){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V="",he=S.length,xe=0;xeS.length*8?V+=_p:V+=B.charAt(we>>>6*(3-_e)&63);return V}function Tp(S,B){var V=B.length,he=Array(),xe,we,_e,We,or=Array(Math.ceil(S.length/2));for(xe=0;xe0;){for(We=Array(),_e=0,xe=0;xe0||we>0)&&(We[We.length]=we);he[he.length]=_e,or=We}var nr="";for(xe=he.length-1;xe>=0;xe--)nr+=B.charAt(he[xe]);var lr=Math.ceil(S.length*8/(Math.log(B.length)/Math.log(2)));for(xe=nr.length;xe>>6&31,128|he&63):he<=65535?B+=String.fromCharCode(224|he>>>12&15,128|he>>>6&63,128|he&63):he<=2097151&&(B+=String.fromCharCode(240|he>>>18&7,128|he>>>12&63,128|he>>>6&63,128|he&63));return B}function au(S){for(var B=Array(S.length>>2),V=0;V>5]|=(S.charCodeAt(V/8)&255)<<24-V%32;return B}function i0(S){for(var B="",V=0;V>5]>>>24-V%32&255);return B}function Bn(S,B){return S>>>B|S<<32-B}function o0(S,B){return S>>>B}function Oh(S,B,V){return S&B^~S&V}function Ih(S,B,V){return S&B^S&V^B&V}function l0(S){return Bn(S,2)^Bn(S,13)^Bn(S,22)}function Bh(S){return Bn(S,6)^Bn(S,11)^Bn(S,25)}function sc(S){return Bn(S,7)^Bn(S,18)^o0(S,3)}function fc(S){return Bn(S,17)^Bn(S,19)^o0(S,10)}var Sp=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function cl(S,B){var V=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),xe,we,_e,We,or,nr,lr,Zr,Fr,br,Ne,fe;for(S[B>>5]|=128<<24-B%32,S[(B+64>>9<<4)+15]=B,Fr=0;Fr>16)+(B>>16)+(V>>16);return he<<16|V&65535}function ko(S){return Array.prototype.slice.call(S)}function Co(S){return ko(S).join("")}function zh(S){var B=S&&S.cache,V=0,he=[],xe=[],we=[];function _e(Ne,fe){var ke=fe&&fe.stable;if(!ke){for(var Je=0;Je0&&(Ne.push(ar,"="),Ne.push.apply(Ne,ko(arguments)),Ne.push(";")),ar}return e(fe,{def:Je,toString:function(){return Co([ke.length>0?"var "+ke.join(",")+";":"",Co(Ne)])}})}function or(){var Ne=We(),fe=We(),ke=Ne.toString,Je=fe.toString;function ar(ze,xr){fe(ze,xr,"=",Ne.def(ze,xr),";")}return e(function(){Ne.apply(Ne,ko(arguments))},{def:Ne.def,entry:Ne,exit:fe,save:ar,set:function(ze,xr,mr){ar(ze,xr),Ne(ze,xr,"=",mr,";")},toString:function(){return ke()+Je()}})}function nr(){var Ne=Co(arguments),fe=or(),ke=or(),Je=fe.toString,ar=ke.toString;return e(fe,{then:function(){return fe.apply(fe,ko(arguments)),this},else:function(){return ke.apply(ke,ko(arguments)),this},toString:function(){var ze=ar();return ze&&(ze="else{"+ze+"}"),Co(["if(",Ne,"){",Je(),"}",ze])}})}var lr=We(),Zr={};function Fr(Ne,fe){var ke=[];function Je(){var Wr="a"+ke.length;return ke.push(Wr),Wr}fe=fe||0;for(var ar=0;ar[b.viewport.x,b.viewport.y,m.viewportWidth,m.viewportHeight]},attributes:{color:{buffer:o,offset:(m,b)=>b.offset*4,divisor:1},position:{buffer:n,offset:(m,b)=>b.offset*8,divisor:1},positionFract:{buffer:i,offset:(m,b)=>b.offset*8,divisor:1},error:{buffer:l,offset:(m,b)=>b.offset*16,divisor:1},direction:{buffer:s,stride:24,offset:0},lineOffset:{buffer:s,stride:24,offset:8},capOffset:{buffer:s,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:KK.length}),$K(c,{update:p,draw:v,destroy:y,regl:e,gl:t,canvas:t.canvas,groups:u}),c;function c(m){m?p(m):m===null&&y(),v()}function v(m){if(typeof m=="number")return d(m);m&&!Array.isArray(m)&&(m=[m]),e._refresh(),u.forEach((b,A)=>{if(b){if(m&&(m[A]?b.draw=!0:b.draw=!1),!b.draw){b.draw=!0;return}d(A)}})}function d(m){typeof m=="number"&&(m=u[m]),m!=null&&m&&m.count&&m.color&&m.opacity&&m.positions&&m.positions.length>1&&(m.scaleRatio=[m.scale[0]*m.viewport.width,m.scale[1]*m.viewport.height],a(m),m.after&&m.after(m))}function p(m){if(!m)return;m.length!=null?typeof m[0]=="number"&&(m=[{positions:m}]):Array.isArray(m)||(m=[m]);let b=0,A=0;if(c.groups=u=m.map((T,E)=>{let M=u[E];if(T)typeof T=="function"?T={after:T}:typeof T[0]=="number"&&(T={positions:T});else return M;return T=R8e(T,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),M||(u[E]=M={id:E,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},T=$K({},f,T)),q8e(M,T,[{lineWidth:C=>+C*.5,capSize:C=>+C*.5,opacity:parseFloat,errors:C=>(C=QK(C),A+=C.length,C),positions:(C,F)=>(C=QK(C,"float64"),F.count=Math.floor(C.length/2),F.bounds=D8e(C,2),F.offset=b,b+=F.count,C)},{color:(C,F)=>{let I=F.count;if(C||(C="transparent"),!Array.isArray(C)||typeof C[0]=="number"){let q=C;C=Array(I);for(let H=0;H{let O=F.bounds;return C||(C=O),F.scale=[1/(C[2]-C[0]),1/(C[3]-C[1])],F.translate=[-C[0],-C[1]],F.scaleFract=z7(F.scale),F.translateFract=z7(F.translate),C},viewport:C=>{let F;return Array.isArray(C)?F={x:C[0],y:C[1],width:C[2]-C[0],height:C[3]-C[1]}:C?(F={x:C.x||C.left||0,y:C.y||C.top||0},C.right?F.width=C.right-F.x:F.width=C.w||C.width||0,C.bottom?F.height=C.bottom-F.y:F.height=C.h||C.height||0):F={x:0,y:0,width:t.drawingBufferWidth,height:t.drawingBufferHeight},F}}]),M}),b||A){let T=u.reduce((F,I,O)=>F+(I?I.count:0),0),E=new Float64Array(T*2),M=new Uint8Array(T*4),C=new Float32Array(T*4);u.forEach((F,I)=>{if(!F)return;let{positions:O,count:q,offset:H,color:X,errors:le}=F;q&&(M.set(X,H*4),C.set(le,H*4),E.set(O,H*2))});var _=P8e(E);n(_);var x=z7(E,_);i(x),o(M),l(C)}}function y(){n.destroy(),i.destroy(),o.destroy(),l.destroy(),s.destroy()}}});var nee=P((dIe,aee)=>{var tee=/[\'\"]/;aee.exports=function(r){return r?(tee.test(r.charAt(0))&&(r=r.substr(1)),tee.test(r.charAt(r.length-1))&&(r=r.substr(0,r.length-1)),r):""}});var G7=P((pIe,I8e)=>{I8e.exports=["inherit","initial","unset"]});var U7=P((mIe,O8e)=>{O8e.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var H7=P((yIe,B8e)=>{B8e.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var V7=P((gIe,z8e)=>{z8e.exports=["normal","italic","oblique"]});var Y7=P((bIe,G8e)=>{G8e.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var see=P((xIe,lee)=>{"use strict";function iee(e,r){if(typeof e!="string")return[e];var t=[e];typeof r=="string"||Array.isArray(r)?r={brackets:r}:r||(r={});var a=r.brackets?Array.isArray(r.brackets)?r.brackets:[r.brackets]:["{}","[]","()"],n=r.escape||"___",i=!!r.flat;a.forEach(function(s){var f=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),u=[];function c(v,d,p){var y=t.push(v.slice(s[0].length,-s[1].length))-1;return u.push(y),n+y+n}t.forEach(function(v,d){for(var p,y=0;v!=p;)if(p=v,v=v.replace(f,c),y++>1e4)throw Error("References have circular dependency. Please, check them.");t[d]=v}),u=u.reverse(),t=t.map(function(v){return u.forEach(function(d){v=v.replace(new RegExp("(\\"+n+d+"\\"+n+")","g"),s[0]+"$1"+s[1])}),v})});var o=new RegExp("\\"+n+"([0-9]+)\\"+n);function l(s,f,u){for(var c=[],v,d=0;v=o.exec(s);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(s.slice(0,v.index)),c.push(l(f[v[1]],f)),s=s.slice(v.index+v[0].length)}return c.push(s),c}return i?t:l(t[0],t)}function oee(e,r){if(r&&r.flat){var t=r&&r.escape||"___",a=e[0],n;if(!a)return"";for(var i=new RegExp("\\"+t+"([0-9]+)\\"+t),o=0;a!=n;){if(o++>1e4)throw Error("Circular references in "+e);n=a,a=a.replace(i,l)}return a}return e.reduce(function s(f,u){return Array.isArray(u)&&(u=u.reduce(s,"")),f+u},"");function l(s,f){if(e[f]==null)throw Error("Reference "+f+"is undefined");return e[f]}}function W7(e,r){return Array.isArray(e)?oee(e,r):iee(e,r)}W7.parse=iee;W7.stringify=oee;lee.exports=W7});var cee=P((_Ie,uee)=>{"use strict";var fee=see();uee.exports=function(r,t,a){if(r==null)throw Error("First argument should be a string");if(t==null)throw Error("Separator should be a string or a RegExp");a?(typeof a=="string"||Array.isArray(a))&&(a={ignore:a}):a={},a.escape==null&&(a.escape=!0),a.ignore==null?a.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof a.ignore=="string"&&(a.ignore=[a.ignore]),a.ignore=a.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var n=fee.parse(r,{flat:!0,brackets:a.ignore}),i=n[0],o=i.split(t);if(a.escape){for(var l=[],s=0;s{U8e.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var j7=P((AIe,hee)=>{"use strict";var H8e=vee();hee.exports={isSize:function(r){return/^[\d\.]/.test(r)||r.indexOf("/")!==-1||H8e.indexOf(r)!==-1}}});var yee=P((TIe,mee)=>{"use strict";var V8e=nee(),Y8e=G7(),W8e=U7(),j8e=H7(),X8e=V7(),Z8e=Y7(),X7=cee(),J8e=j7().isSize;mee.exports=pee;var ng=pee.cache={};function pee(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(ng[e])return ng[e];if(e==="")throw new Error("Cannot parse an empty string.");if(W8e.indexOf(e)!==-1)return ng[e]={system:e};for(var r={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},t=X7(e,/\s+/),a;a=t.shift();){if(Y8e.indexOf(a)!==-1)return["style","variant","weight","stretch"].forEach(function(i){r[i]=a}),ng[e]=r;if(X8e.indexOf(a)!==-1){r.style=a;continue}if(a==="normal"||a==="small-caps"){r.variant=a;continue}if(Z8e.indexOf(a)!==-1){r.stretch=a;continue}if(j8e.indexOf(a)!==-1){r.weight=a;continue}if(J8e(a)){var n=X7(a,"/");if(r.size=n[0],n[1]!=null?r.lineHeight=dee(n[1]):t[0]==="/"&&(t.shift(),r.lineHeight=dee(t.shift())),!t.length)throw new Error("Missing required font-family.");return r.family=X7(t.join(" "),/\s*,\s*/).map(V8e),ng[e]=r}throw new Error("Unknown or unsupported font token: "+a)}throw new Error("Missing required font-size.")}function dee(e){var r=parseFloat(e);return r.toString()===e?r:e}});var J7=P((MIe,gee)=>{"use strict";var $8e=If(),Q8e=j7().isSize,K8e=og(G7()),e7e=og(U7()),r7e=og(H7()),t7e=og(V7()),a7e=og(Y7()),n7e={normal:1,"small-caps":1},i7e={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},Z7={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};gee.exports=function(r){if(r=$8e(r,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),r.system)return r.system&&ig(r.system,e7e),r.system;if(ig(r.style,t7e),ig(r.variant,n7e),ig(r.weight,r7e),ig(r.stretch,a7e),r.size==null&&(r.size=Z7.size),typeof r.size=="number"&&(r.size+="px"),!Q8e)throw Error("Bad size value `"+r.size+"`");r.family||(r.family=Z7.family),Array.isArray(r.family)&&(r.family.length||(r.family=[Z7.family]),r.family=r.family.map(function(a){return i7e[a]?a:'"'+a+'"'}).join(", "));var t=[];return t.push(r.style),r.variant!==r.style&&t.push(r.variant),r.weight!==r.variant&&r.weight!==r.style&&t.push(r.weight),r.stretch!==r.weight&&r.stretch!==r.variant&&r.stretch!==r.style&&t.push(r.stretch),t.push(r.size+(r.lineHeight==null||r.lineHeight==="normal"||r.lineHeight+""=="1"?"":"/"+r.lineHeight)),t.push(r.family),t.filter(Boolean).join(" ")};function ig(e,r){if(e&&!r[e]&&!K8e[e])throw Error("Unknown keyword `"+e+"`");return e}function og(e){for(var r={},t=0;t{"use strict";bee.exports={parse:yee(),stringify:J7()}});var _ee=P(($7,Q7)=>{(function(e,r){typeof $7=="object"&&typeof Q7!="undefined"?Q7.exports=r():e.createREGL=r()})($7,function(){"use strict";var e=function(S,B){for(var V=Object.keys(B),he=0;he1&&B===V&&(B==='"'||B==="'"))return['"'+o(S.substr(1,S.length-2))+'"'];var he=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(S);if(he)return l(S.substr(0,he.index)).concat(l(he[1])).concat(l(S.substr(he.index+he[0].length)));var xe=S.split(".");if(xe.length===1)return['"'+o(S)+'"'];for(var we=[],_e=0;_e65535)<<4,S>>>=B,V=(S>255)<<3,S>>>=V,B|=V,V=(S>15)<<2,S>>>=V,B|=V,V=(S>3)<<1,S>>>=V,B|=V,B|S>>1}function Z(){var S=C(8,function(){return[]});function B(we){var _e=ae(we),Ye=S[Q(_e)>>2];return Ye.length>0?Ye.pop():new ArrayBuffer(_e)}function V(we){S[Q(we.byteLength)>>2].push(we)}function he(we,_e){var Ye=null;switch(we){case F:Ye=new Int8Array(B(_e),0,_e);break;case I:Ye=new Uint8Array(B(_e),0,_e);break;case O:Ye=new Int16Array(B(2*_e),0,_e);break;case q:Ye=new Uint16Array(B(2*_e),0,_e);break;case H:Ye=new Int32Array(B(4*_e),0,_e);break;case X:Ye=new Uint32Array(B(4*_e),0,_e);break;case le:Ye=new Float32Array(B(4*_e),0,_e);break;default:return null}return Ye.length!==_e?Ye.subarray(0,_e):Ye}function xe(we){V(we.buffer)}return{alloc:B,free:V,allocType:he,freeType:xe}}var J=Z();J.zero=Z();var ie=3408,ue=3410,De=3411,Ie=3412,Ee=3413,Ze=3414,Ae=3415,ir=33901,Ge=33902,Qe=3379,He=3386,Ve=34921,ee=36347,me=36348,re=35661,je=35660,vr=34930,rr=36349,Cr=34076,Lr=34024,_r=7936,Pr=7937,rt=7938,Jr=35724,wr=34047,Hr=36063,Vr=34852,Pe=3553,sr=34067,lt=34069,Et=33984,wt=6408,Fe=5126,hr=5121,Ir=36160,at=36053,Yr=36064,nt=16384,vt=function(S,B){var V=1;B.ext_texture_filter_anisotropic&&(V=S.getParameter(wr));var he=1,xe=1;B.webgl_draw_buffers&&(he=S.getParameter(Vr),xe=S.getParameter(Hr));var we=!!B.oes_texture_float;if(we){var _e=S.createTexture();S.bindTexture(Pe,_e),S.texImage2D(Pe,0,wt,1,1,0,wt,Fe,null);var Ye=S.createFramebuffer();if(S.bindFramebuffer(Ir,Ye),S.framebufferTexture2D(Ir,Yr,Pe,_e,0),S.bindTexture(Pe,null),S.checkFramebufferStatus(Ir)!==at)we=!1;else{S.viewport(0,0,1,1),S.clearColor(1,0,0,1),S.clear(nt);var or=J.allocType(Fe,4);S.readPixels(0,0,1,1,wt,Fe,or),S.getError()?we=!1:(S.deleteFramebuffer(Ye),S.deleteTexture(_e),we=or[0]===1),J.freeType(or)}}var nr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),lr=!0;if(!nr){var Zr=S.createTexture(),Fr=J.allocType(hr,36);S.activeTexture(Et),S.bindTexture(sr,Zr),S.texImage2D(lt,0,wt,3,3,0,wt,hr,Fr),J.freeType(Fr),S.bindTexture(sr,null),S.deleteTexture(Zr),lr=!S.getError()}return{colorBits:[S.getParameter(ue),S.getParameter(De),S.getParameter(Ie),S.getParameter(Ee)],depthBits:S.getParameter(Ze),stencilBits:S.getParameter(Ae),subpixelBits:S.getParameter(ie),extensions:Object.keys(B).filter(function(br){return!!B[br]}),maxAnisotropic:V,maxDrawbuffers:he,maxColorAttachments:xe,pointSizeDims:S.getParameter(ir),lineWidthDims:S.getParameter(Ge),maxViewportDims:S.getParameter(He),maxCombinedTextureUnits:S.getParameter(re),maxCubeMapSize:S.getParameter(Cr),maxRenderbufferSize:S.getParameter(Lr),maxTextureUnits:S.getParameter(vr),maxTextureSize:S.getParameter(Qe),maxAttributes:S.getParameter(Ve),maxVertexUniforms:S.getParameter(ee),maxVertexTextureUnits:S.getParameter(je),maxVaryingVectors:S.getParameter(me),maxFragmentUniforms:S.getParameter(rr),glsl:S.getParameter(Jr),renderer:S.getParameter(Pr),vendor:S.getParameter(_r),version:S.getParameter(rt),readFloat:we,npotTextureCube:lr}},ot=function(S){return S instanceof Uint8Array||S instanceof Uint16Array||S instanceof Uint32Array||S instanceof Int8Array||S instanceof Int16Array||S instanceof Int32Array||S instanceof Float32Array||S instanceof Float64Array||S instanceof Uint8ClampedArray};function et(S){return!!S&&typeof S=="object"&&Array.isArray(S.shape)&&Array.isArray(S.stride)&&typeof S.offset=="number"&&S.shape.length===S.stride.length&&(Array.isArray(S.data)||ot(S.data))}var pr=function(S){return Object.keys(S).map(function(B){return S[B]})},Se={shape:yt,flatten:At};function Oe(S,B,V){for(var he=0;he0){var Wr;if(Array.isArray(ke[0])){mr=ia(ke);for(var Be=1,Re=1;Re0){if(typeof Be[0]=="number"){var fr=J.allocType(ze.dtype,Be.length);Wi(fr,Be),mr(fr,Mr),J.freeType(fr)}else if(Array.isArray(Be[0])||ot(Be[0])){dr=ia(Be);var ur=Ca(Be,dr,ze.dtype);mr(ur,Mr),J.freeType(ur)}}}else if(et(Be)){dr=Be.shape;var Sr=Be.stride,jr=0,ut=0,gr=0,kr=0;dr.length===1?(jr=dr[0],ut=1,gr=Sr[0],kr=0):dr.length===2&&(jr=dr[0],ut=dr[1],gr=Sr[0],kr=Sr[1]);var st=Array.isArray(Be.data)?ze.dtype:tn(Be.data),ft=J.allocType(st,jr*ut);ji(ft,Be.data,jr,ut,gr,kr,Be.offset),mr(ft,Mr),J.freeType(ft)}return xr}return Je||xr(fe),xr._reglType="buffer",xr._buffer=ze,xr.subdata=Wr,V.profile&&(xr.stats=ze.stats),xr.destroy=function(){Fr(ze)},xr}function Ne(){pr(we).forEach(function(fe){fe.buffer=S.createBuffer(),S.bindBuffer(fe.type,fe.buffer),S.bufferData(fe.type,fe.persistentData||fe.byteLength,fe.usage)})}return V.profile&&(B.getTotalBufferSize=function(){var fe=0;return Object.keys(we).forEach(function(ke){fe+=we[ke].stats.size}),fe}),{create:br,createStream:or,destroyStream:nr,clear:function(){pr(we).forEach(Fr),Ye.forEach(Fr)},getBuffer:function(fe){return fe&&fe._buffer instanceof _e?fe._buffer:null},restore:Ne,_initBuffer:Zr}}var qa=0,Zn=0,fs=1,us=1,kl=4,Zu=4,Oo={points:qa,point:Zn,lines:fs,line:us,triangles:kl,triangle:Zu,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Yf=0,Wf=1,Xi=4,hi=5120,Oi=5121,Cl=5122,di=5123,Rt=5124,$t=5125,ua=34963,_t=35040,Jn=35044;function Ua(S,B,V,he){var xe={},we=0,_e={uint8:Oi,uint16:di};B.oes_element_index_uint&&(_e.uint32=$t);function Ye(Ne){this.id=we++,xe[this.id]=this,this.buffer=Ne,this.primType=Xi,this.vertCount=0,this.type=0}Ye.prototype.bind=function(){this.buffer.bind()};var or=[];function nr(Ne){var fe=or.pop();return fe||(fe=new Ye(V.create(null,ua,!0,!1)._buffer)),Zr(fe,Ne,_t,-1,-1,0,0),fe}function lr(Ne){or.push(Ne)}function Zr(Ne,fe,ke,Je,ar,ze,xr){Ne.buffer.bind();var mr;if(fe){var Wr=xr;!xr&&(!ot(fe)||et(fe)&&!ot(fe.data))&&(Wr=B.oes_element_index_uint?$t:di),V._initBuffer(Ne.buffer,fe,ke,Wr,3)}else S.bufferData(ua,ze,ke),Ne.buffer.dtype=mr||Oi,Ne.buffer.usage=ke,Ne.buffer.dimension=3,Ne.buffer.byteLength=ze;if(mr=xr,!xr){switch(Ne.buffer.dtype){case Oi:case hi:mr=Oi;break;case di:case Cl:mr=di;break;case $t:case Rt:mr=$t;break;default:}Ne.buffer.dtype=mr}Ne.type=mr;var Be=ar;Be<0&&(Be=Ne.buffer.byteLength,mr===di?Be>>=1:mr===$t&&(Be>>=2)),Ne.vertCount=Be;var Re=Je;if(Je<0){Re=Xi;var Mr=Ne.buffer.dimension;Mr===1&&(Re=Yf),Mr===2&&(Re=Wf),Mr===3&&(Re=Xi)}Ne.primType=Re}function Fr(Ne){he.elementsCount--,delete xe[Ne.id],Ne.buffer.destroy(),Ne.buffer=null}function br(Ne,fe){var ke=V.create(null,ua,!0),Je=new Ye(ke._buffer);he.elementsCount++;function ar(ze){if(!ze)ke(),Je.primType=Xi,Je.vertCount=0,Je.type=Oi;else if(typeof ze=="number")ke(ze),Je.primType=Xi,Je.vertCount=ze|0,Je.type=Oi;else{var xr=null,mr=Jn,Wr=-1,Be=-1,Re=0,Mr=0;Array.isArray(ze)||ot(ze)||et(ze)?xr=ze:("data"in ze&&(xr=ze.data),"usage"in ze&&(mr=Pt[ze.usage]),"primitive"in ze&&(Wr=Oo[ze.primitive]),"count"in ze&&(Be=ze.count|0),"type"in ze&&(Mr=_e[ze.type]),"length"in ze?Re=ze.length|0:(Re=Be,Mr===di||Mr===Cl?Re*=2:(Mr===$t||Mr===Rt)&&(Re*=4))),Zr(Je,xr,mr,Wr,Be,Re,Mr)}return ar}return ar(Ne),ar._reglType="elements",ar._elements=Je,ar.subdata=function(ze,xr){return ke.subdata(ze,xr),ar},ar.destroy=function(){Fr(Je)},ar}return{create:br,createStream:nr,destroyStream:lr,getElements:function(Ne){return typeof Ne=="function"&&Ne._elements instanceof Ye?Ne._elements:null},clear:function(){pr(xe).forEach(Fr)}}}var Pn=new Float32Array(1),ra=new Uint32Array(Pn.buffer),Ao=5123;function ol(S){for(var B=J.allocType(Ao,S.length),V=0;V>>31<<15,we=(he<<1>>>24)-127,_e=he>>13&1023;if(we<-24)B[V]=xe;else if(we<-14){var Ye=-14-we;B[V]=xe+(_e+1024>>Ye)}else we>15?B[V]=xe+31744:B[V]=xe+(we+15<<10)+_e}return B}function Si(S){return Array.isArray(S)||ot(S)}var Jp=34467,An=3553,Ll=34067,Bo=34069,pi=6408,rf=6406,zo=6407,To=6409,Dl=6410,Ju=32854,Go=32855,cs=36194,Mh=32819,$p=32820,$u=33635,Lv=34042,vs=6402,Fl=34041,Uo=35904,Mo=35906,mi=36193,tf=33776,hs=33777,ll=33778,af=33779,Dv=35986,Qu=35987,jf=34798,Fv=35840,qv=35841,Ku=35842,Rv=35843,ec=36196,So=5121,nf=5123,Xf=5125,Bi=5126,of=10242,Qp=10243,Kp=10497,Zf=33071,Sh=33648,Jf=10240,e1=10241,ql=9728,rc=9729,ds=9984,lf=9985,ps=9986,sl=9987,Eh=33170,fl=4352,r1=4353,tc=4354,t1=34046,a1=3317,n1=37440,kh=37441,$f=37443,Pv=37444,Eo=33984,Ch=[ds,ps,lf,sl],Ei=[0,To,Dl,zo,pi],Tn={};Tn[To]=Tn[rf]=Tn[vs]=1,Tn[Fl]=Tn[Dl]=2,Tn[zo]=Tn[Uo]=3,Tn[pi]=Tn[Mo]=4;function Zi(S){return"[object "+S+"]"}var Qf=Zi("HTMLCanvasElement"),ul=Zi("OffscreenCanvas"),sf=Zi("CanvasRenderingContext2D"),ac=Zi("ImageBitmap"),Nv=Zi("HTMLImageElement"),Iv=Zi("HTMLVideoElement"),i1=Object.keys(Nt).concat([Qf,ul,sf,ac,Nv,Iv]),so=[];so[So]=1,so[Bi]=4,so[mi]=2,so[nf]=2,so[Xf]=4;var wa=[];wa[Ju]=2,wa[Go]=2,wa[cs]=2,wa[Fl]=4,wa[tf]=.5,wa[hs]=.5,wa[ll]=1,wa[af]=1,wa[Dv]=.5,wa[Qu]=1,wa[jf]=1,wa[Fv]=.5,wa[qv]=.25,wa[Ku]=.5,wa[Rv]=.25,wa[ec]=.5;function Ov(S){return Array.isArray(S)&&(S.length===0||typeof S[0]=="number")}function Bv(S){if(!Array.isArray(S))return!1;var B=S.length;return!(B===0||!Si(S[0]))}function Ji(S){return Object.prototype.toString.call(S)}function zv(S){return Ji(S)===Qf}function Gv(S){return Ji(S)===ul}function o1(S){return Ji(S)===sf}function l1(S){return Ji(S)===ac}function s1(S){return Ji(S)===Nv}function f1(S){return Ji(S)===Iv}function Kf(S){if(!S)return!1;var B=Ji(S);return i1.indexOf(B)>=0?!0:Ov(S)||Bv(S)||et(S)}function Uv(S){return Nt[Object.prototype.toString.call(S)]|0}function u1(S,B){var V=B.length;switch(S.type){case So:case nf:case Xf:case Bi:var he=J.allocType(S.type,V);he.set(B),S.data=he;break;case mi:S.data=ol(B);break;default:}}function Hv(S,B){return J.allocType(S.type===mi?Bi:S.type,B)}function nc(S,B){S.type===mi?(S.data=ol(B),J.freeType(B)):S.data=B}function Lh(S,B,V,he,xe,we){for(var _e=S.width,Ye=S.height,or=S.channels,nr=_e*Ye*or,lr=Hv(S,nr),Zr=0,Fr=0;Fr=1;)Ye+=_e*or*or,or/=2;return Ye}else return _e*V*he}function Dh(S,B,V,he,xe,we,_e){var Ye={"don't care":fl,"dont care":fl,nice:tc,fast:r1},or={repeat:Kp,clamp:Zf,mirror:Sh},nr={nearest:ql,linear:rc},lr=e({mipmap:sl,"nearest mipmap nearest":ds,"linear mipmap nearest":lf,"nearest mipmap linear":ps,"linear mipmap linear":sl},nr),Zr={none:0,browser:Pv},Fr={uint8:So,rgba4:Mh,rgb565:$u,"rgb5 a1":$p},br={alpha:rf,luminance:To,"luminance alpha":Dl,rgb:zo,rgba:pi,rgba4:Ju,"rgb5 a1":Go,rgb565:cs},Ne={};B.ext_srgb&&(br.srgb=Uo,br.srgba=Mo),B.oes_texture_float&&(Fr.float32=Fr.float=Bi),B.oes_texture_half_float&&(Fr.float16=Fr["half float"]=mi),B.webgl_depth_texture&&(e(br,{depth:vs,"depth stencil":Fl}),e(Fr,{uint16:nf,uint32:Xf,"depth stencil":Lv})),B.webgl_compressed_texture_s3tc&&e(Ne,{"rgb s3tc dxt1":tf,"rgba s3tc dxt1":hs,"rgba s3tc dxt3":ll,"rgba s3tc dxt5":af}),B.webgl_compressed_texture_atc&&e(Ne,{"rgb atc":Dv,"rgba atc explicit alpha":Qu,"rgba atc interpolated alpha":jf}),B.webgl_compressed_texture_pvrtc&&e(Ne,{"rgb pvrtc 4bppv1":Fv,"rgb pvrtc 2bppv1":qv,"rgba pvrtc 4bppv1":Ku,"rgba pvrtc 2bppv1":Rv}),B.webgl_compressed_texture_etc1&&(Ne["rgb etc1"]=ec);var fe=Array.prototype.slice.call(S.getParameter(Jp));Object.keys(Ne).forEach(function(z){var pe=Ne[z];fe.indexOf(pe)>=0&&(br[z]=pe)});var ke=Object.keys(br);V.textureFormats=ke;var Je=[];Object.keys(br).forEach(function(z){var pe=br[z];Je[pe]=z});var ar=[];Object.keys(Fr).forEach(function(z){var pe=Fr[z];ar[pe]=z});var ze=[];Object.keys(nr).forEach(function(z){var pe=nr[z];ze[pe]=z});var xr=[];Object.keys(lr).forEach(function(z){var pe=lr[z];xr[pe]=z});var mr=[];Object.keys(or).forEach(function(z){var pe=or[z];mr[pe]=z});var Wr=ke.reduce(function(z,pe){var be=br[pe];return be===To||be===rf||be===To||be===Dl||be===vs||be===Fl||B.ext_srgb&&(be===Uo||be===Mo)?z[be]=be:be===Go||pe.indexOf("rgba")>=0?z[be]=pi:z[be]=zo,z},{});function Be(){this.internalformat=pi,this.format=pi,this.type=So,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Pv,this.width=0,this.height=0,this.channels=0}function Re(z,pe){z.internalformat=pe.internalformat,z.format=pe.format,z.type=pe.type,z.compressed=pe.compressed,z.premultiplyAlpha=pe.premultiplyAlpha,z.flipY=pe.flipY,z.unpackAlignment=pe.unpackAlignment,z.colorSpace=pe.colorSpace,z.width=pe.width,z.height=pe.height,z.channels=pe.channels}function Mr(z,pe){if(!(typeof pe!="object"||!pe)){if("premultiplyAlpha"in pe&&(z.premultiplyAlpha=pe.premultiplyAlpha),"flipY"in pe&&(z.flipY=pe.flipY),"alignment"in pe&&(z.unpackAlignment=pe.alignment),"colorSpace"in pe&&(z.colorSpace=Zr[pe.colorSpace]),"type"in pe){var be=pe.type;z.type=Fr[be]}var Nr=z.width,Dt=z.height,Ht=z.channels,qr=!1;"shape"in pe?(Nr=pe.shape[0],Dt=pe.shape[1],pe.shape.length===3&&(Ht=pe.shape[2],qr=!0)):("radius"in pe&&(Nr=Dt=pe.radius),"width"in pe&&(Nr=pe.width),"height"in pe&&(Dt=pe.height),"channels"in pe&&(Ht=pe.channels,qr=!0)),z.width=Nr|0,z.height=Dt|0,z.channels=Ht|0;var N=!1;if("format"in pe){var U=pe.format,$=z.internalformat=br[U];z.format=Wr[$],U in Fr&&("type"in pe||(z.type=Fr[U])),U in Ne&&(z.compressed=!0),N=!0}!qr&&N?z.channels=Tn[z.format]:qr&&!N&&z.channels!==Ei[z.format]&&(z.format=z.internalformat=Ei[z.channels])}}function dr(z){S.pixelStorei(n1,z.flipY),S.pixelStorei(kh,z.premultiplyAlpha),S.pixelStorei($f,z.colorSpace),S.pixelStorei(a1,z.unpackAlignment)}function fr(){Be.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function ur(z,pe){var be=null;if(Kf(pe)?be=pe:pe&&(Mr(z,pe),"x"in pe&&(z.xOffset=pe.x|0),"y"in pe&&(z.yOffset=pe.y|0),Kf(pe.data)&&(be=pe.data)),pe.copy){var Nr=xe.viewportWidth,Dt=xe.viewportHeight;z.width=z.width||Nr-z.xOffset,z.height=z.height||Dt-z.yOffset,z.needsCopy=!0}else if(!be)z.width=z.width||1,z.height=z.height||1,z.channels=z.channels||4;else if(ot(be))z.channels=z.channels||4,z.data=be,!("type"in pe)&&z.type===So&&(z.type=Uv(be));else if(Ov(be))z.channels=z.channels||4,u1(z,be),z.alignment=1,z.needsFree=!0;else if(et(be)){var Ht=be.data;!Array.isArray(Ht)&&z.type===So&&(z.type=Uv(Ht));var qr=be.shape,N=be.stride,U,$,de,Te,ce,se;qr.length===3?(de=qr[2],se=N[2]):(de=1,se=1),U=qr[0],$=qr[1],Te=N[0],ce=N[1],z.alignment=1,z.width=U,z.height=$,z.channels=de,z.format=z.internalformat=Ei[de],z.needsFree=!0,Lh(z,Ht,Te,ce,se,be.offset)}else if(zv(be)||Gv(be)||o1(be))zv(be)||Gv(be)?z.element=be:z.element=be.canvas,z.width=z.element.width,z.height=z.element.height,z.channels=4;else if(l1(be))z.element=be,z.width=be.width,z.height=be.height,z.channels=4;else if(s1(be))z.element=be,z.width=be.naturalWidth,z.height=be.naturalHeight,z.channels=4;else if(f1(be))z.element=be,z.width=be.videoWidth,z.height=be.videoHeight,z.channels=4;else if(Bv(be)){var te=z.width||be[0].length,W=z.height||be.length,K=z.channels;Si(be[0][0])?K=K||be[0][0].length:K=K||1;for(var Y=Se.shape(be),ve=1,Ce=0;Ce>=Dt,be.height>>=Dt,ur(be,Nr[Dt]),z.mipmask|=1<=0&&!("faces"in pe)&&(z.genMipmaps=!0)}if("mag"in pe){var Nr=pe.mag;z.magFilter=nr[Nr]}var Dt=z.wrapS,Ht=z.wrapT;if("wrap"in pe){var qr=pe.wrap;typeof qr=="string"?Dt=Ht=or[qr]:Array.isArray(qr)&&(Dt=or[qr[0]],Ht=or[qr[1]])}else{if("wrapS"in pe){var N=pe.wrapS;Dt=or[N]}if("wrapT"in pe){var U=pe.wrapT;Ht=or[U]}}if(z.wrapS=Dt,z.wrapT=Ht,"anisotropic"in pe){var $=pe.anisotropic;z.anisotropic=pe.anisotropic}if("mipmap"in pe){var de=!1;switch(typeof pe.mipmap){case"string":z.mipmapHint=Ye[pe.mipmap],z.genMipmaps=!0,de=!0;break;case"boolean":de=z.genMipmaps=pe.mipmap;break;case"object":z.genMipmaps=!1,de=!0;break;default:}de&&!("min"in pe)&&(z.minFilter=ds)}}function Za(z,pe){S.texParameteri(pe,e1,z.minFilter),S.texParameteri(pe,Jf,z.magFilter),S.texParameteri(pe,of,z.wrapS),S.texParameteri(pe,Qp,z.wrapT),B.ext_texture_filter_anisotropic&&S.texParameteri(pe,t1,z.anisotropic),z.genMipmaps&&(S.hint(Eh,z.mipmapHint),S.generateMipmap(pe))}var on=0,ma={},ya=V.maxTextureUnits,Sa=Array(ya).map(function(){return null});function Tt(z){Be.call(this),this.mipmask=0,this.internalformat=pi,this.id=on++,this.refCount=1,this.target=z,this.texture=S.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ut,_e.profile&&(this.stats={size:0})}function Ra(z){S.activeTexture(Eo),S.bindTexture(z.target,z.texture)}function Wt(){var z=Sa[0];z?S.bindTexture(z.target,z.texture):S.bindTexture(An,null)}function Ja(z){var pe=z.texture,be=z.unit,Nr=z.target;be>=0&&(S.activeTexture(Eo+be),S.bindTexture(Nr,null),Sa[be]=null),S.deleteTexture(pe),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete ma[z.id],we.textureCount--}e(Tt.prototype,{bind:function(){var z=this;z.bindCount+=1;var pe=z.unit;if(pe<0){for(var be=0;be0)continue;Nr.unit=-1}Sa[be]=z,pe=be;break}pe>=ya,_e.profile&&we.maxTextureUnits>ce)-de,se.height=se.height||(be.height>>ce)-Te,Ra(be),jr(se,An,de,Te,ce),Wt(),kr(se),Nr}function Ht(qr,N){var U=qr|0,$=N|0||U;if(U===be.width&&$===be.height)return Nr;Nr.width=be.width=U,Nr.height=be.height=$,Ra(be);for(var de=0;be.mipmask>>de;++de){var Te=U>>de,ce=$>>de;if(!Te||!ce)break;S.texImage2D(An,de,be.format,Te,ce,0,be.format,be.type,null)}return Wt(),_e.profile&&(be.stats.size=Rl(be.internalformat,be.type,U,$,!1,!1)),Nr}return Nr(z,pe),Nr.subimage=Dt,Nr.resize=Ht,Nr._reglType="texture2d",Nr._texture=be,_e.profile&&(Nr.stats=be.stats),Nr.destroy=function(){be.decRef()},Nr}function sn(z,pe,be,Nr,Dt,Ht){var qr=new Tt(Ll);ma[qr.id]=qr,we.cubeCount++;var N=new Array(6);function U(Te,ce,se,te,W,K){var Y,ve=qr.texInfo;for(Ut.call(ve),Y=0;Y<6;++Y)N[Y]=Lt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(Y=0;Y<6;++Y)ft(N[Y],Ce,Ce)}else if(typeof Te=="object")if(ce)St(N[0],Te),St(N[1],ce),St(N[2],se),St(N[3],te),St(N[4],W),St(N[5],K);else if(Ya(ve,Te),Mr(qr,Te),"faces"in Te){var $e=Te.faces;for(Y=0;Y<6;++Y)Re(N[Y],qr),St(N[Y],$e[Y])}else for(Y=0;Y<6;++Y)St(N[Y],Te);for(Re(qr,N[0]),ve.genMipmaps?qr.mipmask=(N[0].width<<1)-1:qr.mipmask=N[0].mipmask,qr.internalformat=N[0].internalformat,U.width=N[0].width,U.height=N[0].height,Ra(qr),Y=0;Y<6;++Y)aa(N[Y],Bo+Y);for(Za(ve,Ll),Wt(),_e.profile&&(qr.stats.size=Rl(qr.internalformat,qr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Je[qr.internalformat],U.type=ar[qr.type],U.mag=ze[ve.magFilter],U.min=xr[ve.minFilter],U.wrapS=mr[ve.wrapS],U.wrapT=mr[ve.wrapT],Y=0;Y<6;++Y)nn(N[Y]);return U}function $(Te,ce,se,te,W){var K=se|0,Y=te|0,ve=W|0,Ce=gr();return Re(Ce,qr),Ce.width=0,Ce.height=0,ur(Ce,ce),Ce.width=Ce.width||(qr.width>>ve)-K,Ce.height=Ce.height||(qr.height>>ve)-Y,Ra(qr),jr(Ce,Bo+Te,K,Y,ve),Wt(),kr(Ce),U}function de(Te){var ce=Te|0;if(ce!==qr.width){U.width=qr.width=ce,U.height=qr.height=ce,Ra(qr);for(var se=0;se<6;++se)for(var te=0;qr.mipmask>>te;++te)S.texImage2D(Bo+se,te,qr.format,ce>>te,ce>>te,0,qr.format,qr.type,null);return Wt(),_e.profile&&(qr.stats.size=Rl(qr.internalformat,qr.type,U.width,U.height,!1,!0)),U}}return U(z,pe,be,Nr,Dt,Ht),U.subimage=$,U.resize=de,U._reglType="textureCube",U._texture=qr,_e.profile&&(U.stats=qr.stats),U.destroy=function(){qr.decRef()},U}function dt(){for(var z=0;z>Nr,be.height>>Nr,0,be.internalformat,be.type,null);else for(var Dt=0;Dt<6;++Dt)S.texImage2D(Bo+Dt,Nr,be.internalformat,be.width>>Nr,be.height>>Nr,0,be.internalformat,be.type,null);Za(be.texInfo,be.target)})}function Qt(){for(var z=0;z=0?nn=!0:or.indexOf(Ut)>=0&&(nn=!1))),("depthTexture"in Tt||"depthStencilTexture"in Tt)&&(Sa=!!(Tt.depthTexture||Tt.depthStencilTexture)),"depth"in Tt&&(typeof Tt.depth=="boolean"?aa=Tt.depth:(on=Tt.depth,Ma=!1)),"stencil"in Tt&&(typeof Tt.stencil=="boolean"?Ma=Tt.stencil:(ma=Tt.stencil,aa=!1)),"depthStencil"in Tt&&(typeof Tt.depthStencil=="boolean"?aa=Ma=Tt.depthStencil:(ya=Tt.depthStencil,aa=!1,Ma=!1))}var Wt=null,Ja=null,ln=null,sn=null;if(Array.isArray(Lt))Wt=Lt.map(Ne);else if(Lt)Wt=[Ne(Lt)];else for(Wt=new Array(Za),st=0;st0&&(kr.depth=ur[0].depth,kr.stencil=ur[0].stencil,kr.depthStencil=ur[0].depthStencil),ur[gr]?ur[gr](kr):ur[gr]=Re(kr)}return e(Sr,{width:st,height:st,color:Ut})}function jr(ut){var gr,kr=ut|0;if(kr===Sr.width)return Sr;var st=Sr.color;for(gr=0;gr=st.byteLength?ft.subdata(st):(ft.destroy(),Re.buffers[ut]=null)),Re.buffers[ut]||(ft=Re.buffers[ut]=xe.create(gr,r0,!1,!0)),kr.buffer=xe.getBuffer(ft),kr.size=kr.buffer.dimension|0,kr.normalized=!1,kr.type=kr.buffer.dtype,kr.offset=0,kr.stride=0,kr.divisor=0,kr.state=1,Sr[ut]=1}else xe.getBuffer(gr)?(kr.buffer=xe.getBuffer(gr),kr.size=kr.buffer.dimension|0,kr.normalized=!1,kr.type=kr.buffer.dtype,kr.offset=0,kr.stride=0,kr.divisor=0,kr.state=1):xe.getBuffer(gr.buffer)?(kr.buffer=xe.getBuffer(gr.buffer),kr.size=(+gr.size||kr.buffer.dimension)|0,kr.normalized=!!gr.normalized||!1,"type"in gr?kr.type=vn[gr.type]:kr.type=kr.buffer.dtype,kr.offset=(gr.offset||0)|0,kr.stride=(gr.stride||0)|0,kr.divisor=(gr.divisor||0)|0,kr.state=1):"x"in gr&&(kr.x=+gr.x||0,kr.y=+gr.y||0,kr.z=+gr.z||0,kr.w=+gr.w||0,kr.state=2)}for(var St=0;St1)for(var dr=0;drfe&&(fe=ke.stats.uniformsCount)}),fe},V.getMaxAttributesCount=function(){var fe=0;return lr.forEach(function(ke){ke.stats.attributesCount>fe&&(fe=ke.stats.attributesCount)}),fe});function Ne(){xe={},we={};for(var fe=0;fe16&&(V=cl(V,S.length*8));for(var he=Array(16),xe=Array(16),we=0;we<16;we++)he[we]=V[we]^909522486,xe[we]=V[we]^1549556828;var _e=cl(he.concat(au(B)),512+B.length*8);return i0(cl(xe.concat(_e),768))}function Nh(S){for(var B=Rh?"0123456789ABCDEF":"0123456789abcdef",V="",he,xe=0;xe>>4&15)+B.charAt(he&15);return V}function T1(S){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V="",he=S.length,xe=0;xeS.length*8?V+=w1:V+=B.charAt(we>>>6*(3-_e)&63);return V}function M1(S,B){var V=B.length,he=Array(),xe,we,_e,Ye,or=Array(Math.ceil(S.length/2));for(xe=0;xe0;){for(Ye=Array(),_e=0,xe=0;xe0||we>0)&&(Ye[Ye.length]=we);he[he.length]=_e,or=Ye}var nr="";for(xe=he.length-1;xe>=0;xe--)nr+=B.charAt(he[xe]);var lr=Math.ceil(S.length*8/(Math.log(B.length)/Math.log(2)));for(xe=nr.length;xe>>6&31,128|he&63):he<=65535?B+=String.fromCharCode(224|he>>>12&15,128|he>>>6&63,128|he&63):he<=2097151&&(B+=String.fromCharCode(240|he>>>18&7,128|he>>>12&63,128|he>>>6&63,128|he&63));return B}function au(S){for(var B=Array(S.length>>2),V=0;V>5]|=(S.charCodeAt(V/8)&255)<<24-V%32;return B}function i0(S){for(var B="",V=0;V>5]>>>24-V%32&255);return B}function Bn(S,B){return S>>>B|S<<32-B}function o0(S,B){return S>>>B}function Ih(S,B,V){return S&B^~S&V}function Oh(S,B,V){return S&B^S&V^B&V}function l0(S){return Bn(S,2)^Bn(S,13)^Bn(S,22)}function Bh(S){return Bn(S,6)^Bn(S,11)^Bn(S,25)}function sc(S){return Bn(S,7)^Bn(S,18)^o0(S,3)}function fc(S){return Bn(S,17)^Bn(S,19)^o0(S,10)}var E1=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function cl(S,B){var V=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),xe,we,_e,Ye,or,nr,lr,Zr,Fr,br,Ne,fe;for(S[B>>5]|=128<<24-B%32,S[(B+64>>9<<4)+15]=B,Fr=0;Fr>16)+(B>>16)+(V>>16);return he<<16|V&65535}function Co(S){return Array.prototype.slice.call(S)}function Lo(S){return Co(S).join("")}function zh(S){var B=S&&S.cache,V=0,he=[],xe=[],we=[];function _e(Ne,fe){var ke=fe&&fe.stable;if(!ke){for(var Je=0;Je0&&(Ne.push(ar,"="),Ne.push.apply(Ne,Co(arguments)),Ne.push(";")),ar}return e(fe,{def:Je,toString:function(){return Lo([ke.length>0?"var "+ke.join(",")+";":"",Lo(Ne)])}})}function or(){var Ne=Ye(),fe=Ye(),ke=Ne.toString,Je=fe.toString;function ar(ze,xr){fe(ze,xr,"=",Ne.def(ze,xr),";")}return e(function(){Ne.apply(Ne,Co(arguments))},{def:Ne.def,entry:Ne,exit:fe,save:ar,set:function(ze,xr,mr){ar(ze,xr),Ne(ze,xr,"=",mr,";")},toString:function(){return ke()+Je()}})}function nr(){var Ne=Lo(arguments),fe=or(),ke=or(),Je=fe.toString,ar=ke.toString;return e(fe,{then:function(){return fe.apply(fe,Co(arguments)),this},else:function(){return ke.apply(ke,Co(arguments)),this},toString:function(){var ze=ar();return ze&&(ze="else{"+ze+"}"),Lo(["if(",Ne,"){",Je(),"}",ze])}})}var lr=Ye(),Zr={};function Fr(Ne,fe){var ke=[];function Je(){var Wr="a"+ke.length;return ke.push(Wr),Wr}fe=fe||0;for(var ar=0;ar":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Re={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ue={cw:w,ccw:C};function er(S){return Array.isArray(S)||ot(S)||et(S)}function tr(S){return S.sort(function(B,V){return B===si?-1:V===si?1:B=1,he>=2,B)}else if(V===_s){var xe=S.data;return new Le(xe.thisDep,xe.contextDep,xe.propDep,B)}else{if(V===vc)return new Le(!1,!1,!1,B);if(V===vf){for(var we=!1,_e=!1,We=!1,or=0;or=1&&(_e=!0),lr>=2&&(We=!0)}else nr.type===_s&&(we=we||nr.data.thisDep,_e=_e||nr.data.contextDep,We=We||nr.data.propDep)}return new Le(we,_e,We,B)}else return new Le(V===cf,V===cc,V===uf,B)}}var yt=new Le(!1,!1,!1,function(){});function kt(S,B,V,he,xe,we,_e,We,or,nr,lr,Zr,Fr,br,Ne,fe){var ke=nr.Record,Je={add:32774,subtract:32778,"reverse subtract":32779};V.ext_blend_minmax&&(Je.min=L,Je.max=D);var ar=V.angle_instanced_arrays,ze=V.webgl_draw_buffers,xr=V.oes_vertex_array_object,mr={dirty:!0,profile:fe.profile},Wr={},Be=[],qe={},Mr={};function dr(N){return N.replace(".","_")}function fr(N,U,Q){var de=dr(N);Be.push(N),Wr[de]=mr[de]=!!Q,qe[de]=U}function ur(N,U,Q){var de=dr(N);Be.push(N),Array.isArray(Q)?(mr[de]=Q.slice(),Wr[de]=Q.slice()):mr[de]=Wr[de]=Q,Mr[de]=U}function Sr(N){return!!isNaN(N)}fr(hc,Lp),fr(s0,Cp),ur(f0,"blendColor",[0,0,0,0]),ur(iu,"blendEquationSeparate",[oe,oe]),ur(ou,"blendFuncSeparate",[ne,j,ne,j]),fr(dc,Hh,!0),ur(pc,"depthFunc",me),ur(mc,"depthRange",[0,1]),ur(yc,"depthMask",!0),ur(lu,lu,[!0,!0,!0,!0]),fr(hf,Uh),ur(u0,"cullFace",y),ur(su,su,C),ur(df,df,1),fr(gc,wc),ur(fu,"polygonOffset",[0,0]),fr(pf,Yh),fr(mf,Ac),ur(yf,"sampleCoverage",[1,!1]),fr(bc,Dp),ur(uu,"stencilMask",-1),ur(Ci,"stencilFunc",[G,0,-1]),ur(gf,"stencilOpSeparate",[h,q,q,q]),ur(vl,"stencilOpSeparate",[y,q,q,q]),fr(cu,Vh),ur(hl,"scissor",[0,0,S.drawingBufferWidth,S.drawingBufferHeight]),ur(si,si,[0,0,S.drawingBufferWidth,S.drawingBufferHeight]);var jr={gl:S,context:Fr,strings:B,next:Wr,current:mr,draw:Zr,elements:we,buffer:xe,shader:lr,attributes:nr.state,vao:nr,uniforms:or,framebuffer:We,extensions:V,timer:br,isBufferArgs:er},ut={primTypes:Oo,compareFuncs:Me,blendFuncs:Ke,blendEquations:Je,stencilOps:Re,glTypes:vn,orientationType:Ue};ze&&(ut.backBuffer=[y],ut.drawBuffer=k(he.maxDrawbuffers,function(N){return N===0?[0]:k(N,function(U){return Xe+U})}));var gr=0;function kr(){var N=zh({cache:Ne}),U=N.link,Q=N.global;N.id=gr++,N.batchId="0";var de=U(jr),Te=N.shared={props:"a0"};Object.keys(jr).forEach(function(K){Te[K]=Q.def(de,".",K)});var ce=N.next={},se=N.current={};Object.keys(Mr).forEach(function(K){Array.isArray(mr[K])&&(ce[K]=Q.def(Te.next,".",K),se[K]=Q.def(Te.current,".",K))});var te=N.constants={};Object.keys(ut).forEach(function(K){te[K]=Q.def(JSON.stringify(ut[K]))}),N.invoke=function(K,Y){switch(Y.type){case nu:var ve=["this",Te.context,Te.props,N.batchId];return K.def(U(Y.data),".call(",ve.slice(0,Math.max(Y.data.length+1,4)),")");case uf:return K.def(Te.props,Y.data);case cc:return K.def(Te.context,Y.data);case cf:return K.def("this",Y.data);case _s:return Y.data.append(N,K),Y.data.ref;case vc:return Y.data.toString();case vf:return Y.data.map(function(Ce){return N.invoke(K,Ce)})}},N.attribCache={};var W={};return N.scopeAttrib=function(K){var Y=B.id(K);if(Y in W)return W[Y];var ve=nr.scope[Y];ve||(ve=nr.scope[Y]=new ke);var Ce=W[Y]=U(ve);return Ce},N}function st(N){var U=N.static,Q=N.dynamic,de;if(ws in U){var Te=!!U[ws];de=zr(function(se,te){return Te}),de.enable=Te}else if(ws in Q){var ce=Q[ws];de=tt(ce,function(se,te){return se.invoke(te,ce)})}return de}function ft(N,U){var Q=N.static,de=N.dynamic;if(Lo in Q){var Te=Q[Lo];return Te?(Te=We.getFramebuffer(Te),zr(function(se,te){var W=se.link(Te),K=se.shared;te.set(K.framebuffer,".next",W);var Y=K.context;return te.set(Y,"."+Qi,W+".width"),te.set(Y,"."+Ki,W+".height"),W})):zr(function(se,te){var W=se.shared;te.set(W.framebuffer,".next","null");var K=W.context;return te.set(K,"."+Qi,K+"."+xc),te.set(K,"."+Ki,K+"."+_c),"null"})}else if(Lo in de){var ce=de[Lo];return tt(ce,function(se,te){var W=se.invoke(te,ce),K=se.shared,Y=K.framebuffer,ve=te.def(Y,".getFramebuffer(",W,")");te.set(Y,".next",ve);var Ce=K.context;return te.set(Ce,"."+Qi,ve+"?"+ve+".width:"+Ce+"."+xc),te.set(Ce,"."+Ki,ve+"?"+ve+".height:"+Ce+"."+_c),ve})}else return null}function St(N,U,Q){var de=N.static,Te=N.dynamic;function ce(W){if(W in de){var K=de[W],Y=!0,ve=K.x|0,Ce=K.y|0,$e,$r;return"width"in K?$e=K.width|0:Y=!1,"height"in K?$r=K.height|0:Y=!1,new Le(!Y&&U&&U.thisDep,!Y&&U&&U.contextDep,!Y&&U&&U.propDep,function(Xr,Gr){var Br=Xr.shared.context,Tr=$e;"width"in K||(Tr=Gr.def(Br,".",Qi,"-",ve));var qr=$r;return"height"in K||(qr=Gr.def(Br,".",Ki,"-",Ce)),[ve,Ce,Tr,qr]})}else if(W in Te){var Er=Te[W],Ar=tt(Er,function(Xr,Gr){var Br=Xr.invoke(Gr,Er),Tr=Xr.shared.context,qr=Gr.def(Br,".x|0"),Ir=Gr.def(Br,".y|0"),ct=Gr.def('"width" in ',Br,"?",Br,".width|0:","(",Tr,".",Qi,"-",qr,")"),Kt=Gr.def('"height" in ',Br,"?",Br,".height|0:","(",Tr,".",Ki,"-",Ir,")");return[qr,Ir,ct,Kt]});return U&&(Ar.thisDep=Ar.thisDep||U.thisDep,Ar.contextDep=Ar.contextDep||U.contextDep,Ar.propDep=Ar.propDep||U.propDep),Ar}else return U?new Le(U.thisDep,U.contextDep,U.propDep,function(Xr,Gr){var Br=Xr.shared.context;return[0,0,Gr.def(Br,".",Qi),Gr.def(Br,".",Ki)]}):null}var se=ce(si);if(se){var te=se;se=new Le(se.thisDep,se.contextDep,se.propDep,function(W,K){var Y=te.append(W,K),ve=W.shared.context;return K.set(ve,"."+Ep,Y[2]),K.set(ve,"."+kp,Y[3]),Y})}return{viewport:se,scissor_box:ce(hl)}}function aa(N,U){var Q=N.static,de=typeof Q[dl]=="string"&&typeof Q[Ho]=="string";if(de){if(Object.keys(U.dynamic).length>0)return null;var Te=U.static,ce=Object.keys(Te);if(ce.length>0&&typeof Te[ce[0]]=="number"){for(var se=[],te=0;te"+qr+"?"+Y+".constant["+qr+"]:0;"}).join(""),"}}else{","if(",$e,"(",Y,".buffer)){",Xr,"=",$r,".createStream(",vo,",",Y,".buffer);","}else{",Xr,"=",$r,".getBuffer(",Y,".buffer);","}",Gr,'="type" in ',Y,"?",Ce.glTypes,"[",Y,".type]:",Xr,".dtype;",Er.normalized,"=!!",Y,".normalized;");function Br(Tr){K(Er[Tr],"=",Y,".",Tr,"|0;")}return Br("size"),Br("offset"),Br("stride"),Br("divisor"),K("}}"),K.exit("if(",Er.isStream,"){",$r,".destroyStream(",Xr,");","}"),Er}Te[ce]=tt(se,te)}),Te}function Za(N){var U=N.static,Q=N.dynamic,de={};return Object.keys(U).forEach(function(Te){var ce=U[Te];de[Te]=zr(function(se,te){return typeof ce=="number"||typeof ce=="boolean"?""+ce:se.link(ce)})}),Object.keys(Q).forEach(function(Te){var ce=Q[Te];de[Te]=tt(ce,function(se,te){return se.invoke(te,ce)})}),de}function on(N,U,Q,de,Te){var ce=N.static,se=N.dynamic,te=aa(N,U),W=ft(N,Te),K=St(N,W,Te),Y=Lt(N,Te),ve=nn(N,Te),Ce=Ma(N,Te,te);function $e(Br){var Tr=K[Br];Tr&&(ve[Br]=Tr)}$e(si),$e(dr(hl));var $r=Object.keys(ve).length>0,Er={framebuffer:W,draw:Y,shader:Ce,state:ve,dirty:$r,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Er.profile=st(N,Te),Er.uniforms=Ut(Q,Te),Er.drawVAO=Er.scopeVAO=Y.vao,!Er.drawVAO&&Ce.program&&!te&&V.angle_instanced_arrays&&Y.static.elements){var Ar=!0,Xr=Ce.program.attributes.map(function(Br){var Tr=U.static[Br];return Ar=Ar&&!!Tr,Tr});if(Ar&&Xr.length>0){var Gr=nr.getVAO(nr.createVAO({attributes:Xr,elements:Y.static.elements}));Er.drawVAO=new Le(null,null,null,function(Br,Tr){return Br.link(Gr)}),Er.useVAO=!0}}return te?Er.useVAO=!0:Er.attributes=Ya(U,Te),Er.context=Za(de,Te),Er}function ma(N,U,Q){var de=N.shared,Te=de.context,ce=N.scope();Object.keys(Q).forEach(function(se){U.save(Te,"."+se);var te=Q[se],W=te.append(N,U);Array.isArray(W)?ce(Te,".",se,"=[",W.join(),"];"):ce(Te,".",se,"=",W,";")}),U(ce)}function ya(N,U,Q,de){var Te=N.shared,ce=Te.gl,se=Te.framebuffer,te;ze&&(te=U.def(Te.extensions,".webgl_draw_buffers"));var W=N.constants,K=W.drawBuffer,Y=W.backBuffer,ve;Q?ve=Q.append(N,U):ve=U.def(se,".next"),de||U("if(",ve,"!==",se,".cur){"),U("if(",ve,"){",ce,".bindFramebuffer(",ye,",",ve,".framebuffer);"),ze&&U(te,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ce,".bindFramebuffer(",ye,",null);"),ze&&U(te,".drawBuffersWEBGL(",Y,");"),U("}",se,".cur=",ve,";"),de||U("}")}function Sa(N,U,Q){var de=N.shared,Te=de.gl,ce=N.current,se=N.next,te=de.current,W=de.next,K=N.cond(te,".dirty");Be.forEach(function(Y){var ve=dr(Y);if(!(ve in Q.state)){var Ce,$e;if(ve in se){Ce=se[ve],$e=ce[ve];var $r=k(mr[ve].length,function(Ar){return K.def(Ce,"[",Ar,"]")});K(N.cond($r.map(function(Ar,Xr){return Ar+"!=="+$e+"["+Xr+"]"}).join("||")).then(Te,".",Mr[ve],"(",$r,");",$r.map(function(Ar,Xr){return $e+"["+Xr+"]="+Ar}).join(";"),";"))}else{Ce=K.def(W,".",ve);var Er=N.cond(Ce,"!==",te,".",ve);K(Er),ve in qe?Er(N.cond(Ce).then(Te,".enable(",qe[ve],");").else(Te,".disable(",qe[ve],");"),te,".",ve,"=",Ce,";"):Er(Te,".",Mr[ve],"(",Ce,");",te,".",ve,"=",Ce,";")}}}),Object.keys(Q.state).length===0&&K(te,".dirty=false;"),U(K)}function Tt(N,U,Q,de){var Te=N.shared,ce=N.current,se=Te.current,te=Te.gl,W;tr(Object.keys(Q)).forEach(function(K){var Y=Q[K];if(!(de&&!de(Y))){var ve=Y.append(N,U);if(qe[K]){var Ce=qe[K];Dr(Y)?(W=N.link(ve,{stable:!0}),U(N.cond(W).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(se,".",K,"=",W,";")):(U(N.cond(ve).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(se,".",K,"=",ve,";"))}else if(Si(ve)){var $e=ce[K];U(te,".",Mr[K],"(",ve,");",ve.map(function($r,Er){return $e+"["+Er+"]="+$r}).join(";"),";")}else Dr(Y)?(W=N.link(ve,{stable:!0}),U(te,".",Mr[K],"(",W,");",se,".",K,"=",W,";")):U(te,".",Mr[K],"(",ve,");",se,".",K,"=",ve,";")}})}function qa(N,U){ar&&(N.instancing=U.def(N.shared.extensions,".angle_instanced_arrays"))}function Wt(N,U,Q,de,Te){var ce=N.shared,se=N.stats,te=ce.current,W=ce.timer,K=Q.profile;function Y(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function $e(Br){ve=U.def(),Br(ve,"=",Y(),";"),typeof Te=="string"?Br(se,".count+=",Te,";"):Br(se,".count++;"),br&&(de?(Ce=U.def(),Br(Ce,"=",W,".getNumPendingQueries();")):Br(W,".beginQuery(",se,");"))}function $r(Br){Br(se,".cpuTime+=",Y(),"-",ve,";"),br&&(de?Br(W,".pushScopeStats(",Ce,",",W,".getNumPendingQueries(),",se,");"):Br(W,".endQuery();"))}function Er(Br){var Tr=U.def(te,".profile");U(te,".profile=",Br,";"),U.exit(te,".profile=",Tr,";")}var Ar;if(K){if(Dr(K)){K.enable?($e(U),$r(U.exit),Er("true")):Er("false");return}Ar=K.append(N,U),Er(Ar)}else Ar=U.def(te,".profile");var Xr=N.block();$e(Xr),U("if(",Ar,"){",Xr,"}");var Gr=N.block();$r(Gr),U.exit("if(",Ar,"){",Gr,"}")}function Ja(N,U,Q,de,Te){var ce=N.shared;function se(W){switch(W){case pl:case Ol:case Il:return 2;case an:case As:case _f:return 3;case xf:case du:case mu:return 4;default:return 1}}function te(W,K,Y){var ve=ce.gl,Ce=U.def(W,".location"),$e=U.def(ce.attributes,"[",Ce,"]"),$r=Y.state,Er=Y.buffer,Ar=[Y.x,Y.y,Y.z,Y.w],Xr=["buffer","normalized","offset","stride"];function Gr(){U("if(!",$e,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Tr=Y.type,qr;if(Y.size?qr=U.def(Y.size,"||",K):qr=K,U("if(",$e,".type!==",Tr,"||",$e,".size!==",qr,"||",Xr.map(function(ct){return $e+"."+ct+"!=="+Y[ct]}).join("||"),"){",ve,".bindBuffer(",vo,",",Er,".buffer);",ve,".vertexAttribPointer(",[Ce,qr,Tr,Y.normalized,Y.stride,Y.offset],");",$e,".type=",Tr,";",$e,".size=",qr,";",Xr.map(function(ct){return $e+"."+ct+"="+Y[ct]+";"}).join(""),"}"),ar){var Ir=Y.divisor;U("if(",$e,".divisor!==",Ir,"){",N.instancing,".vertexAttribDivisorANGLE(",[Ce,Ir],");",$e,".divisor=",Ir,";}")}}function Br(){U("if(",$e,".buffer){",ve,".disableVertexAttribArray(",Ce,");",$e,".buffer=null;","}if(",fo.map(function(Tr,qr){return $e+"."+Tr+"!=="+Ar[qr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Ar,");",fo.map(function(Tr,qr){return $e+"."+Tr+"="+Ar[qr]+";"}).join(""),"}")}$r===$i?Gr():$r===xs?Br():(U("if(",$r,"===",$i,"){"),Gr(),U("}else{"),Br(),U("}"))}de.forEach(function(W){var K=W.name,Y=Q.attributes[K],ve;if(Y){if(!Te(Y))return;ve=Y.append(N,U)}else{if(!Te(yt))return;var Ce=N.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function($e){ve[$e]=U.def(Ce,".",$e)})}te(N.link(W),se(W.info.type),ve)})}function ln(N,U,Q,de,Te,ce){for(var se=N.shared,te=se.gl,W,K=0;K1){for(var fn=[],Di=[],eo=0;eo>1)",Er],");")}function Ir(){Q(Ar,".drawArraysInstancedANGLE(",[Ce,$e,$r,Er],");")}Y&&Y!=="null"?Gr?qr():(Q("if(",Y,"){"),qr(),Q("}else{"),Ir(),Q("}")):Ir()}function Tr(){function qr(){Q(ce+".drawElements("+[Ce,$r,Xr,$e+"<<(("+Xr+"-"+uc+")>>1)"]+");")}function Ir(){Q(ce+".drawArrays("+[Ce,$e,$r]+");")}Y&&Y!=="null"?Gr?qr():(Q("if(",Y,"){"),qr(),Q("}else{"),Ir(),Q("}")):Ir()}ar&&(typeof Er!="number"||Er>=0)?typeof Er=="string"?(Q("if(",Er,">0){"),Br(),Q("}else if(",Er,"<0){"),Tr(),Q("}")):Br():Tr()}function pt(N,U,Q,de,Te){var ce=kr(),se=ce.proc("body",Te);return ar&&(ce.instancing=se.def(ce.shared.extensions,".angle_instanced_arrays")),N(ce,se,Q,de),ce.compile().body}function Rt(N,U,Q,de){qa(N,U),Q.useVAO?Q.drawVAO?U(N.shared.vao,".setVAO(",Q.drawVAO.append(N,U),");"):U(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(U(N.shared.vao,".setVAO(null);"),Ja(N,U,Q,de.attributes,function(){return!0})),ln(N,U,Q,de.uniforms,function(){return!0},!1),sn(N,U,U,Q)}function Qt(N,U){var Q=N.proc("draw",1);qa(N,Q),ma(N,Q,U.context),ya(N,Q,U.framebuffer),Sa(N,Q,U),Tt(N,Q,U.state),Wt(N,Q,U,!1,!0);var de=U.shader.progVar.append(N,Q);if(Q(N.shared.gl,".useProgram(",de,".program);"),U.shader.program)Rt(N,Q,U,U.shader.program);else{Q(N.shared.vao,".setVAO(null);");var Te=N.global.def("{}"),ce=Q.def(de,".id"),se=Q.def(Te,"[",ce,"]");Q(N.cond(se).then(se,".call(this,a0);").else(se,"=",Te,"[",ce,"]=",N.link(function(te){return pt(Rt,N,U,te,1)}),"(",de,");",se,".call(this,a0);"))}Object.keys(U.state).length>0&&Q(N.shared.current,".dirty=true;"),N.shared.vao&&Q(N.shared.vao,".setVAO(null);")}function z(N,U,Q,de){N.batchId="a1",qa(N,U);function Te(){return!0}Ja(N,U,Q,de.attributes,Te),ln(N,U,Q,de.uniforms,Te,!1),sn(N,U,U,Q)}function pe(N,U,Q,de){qa(N,U);var Te=Q.contextDep,ce=U.def(),se="a0",te="a1",W=U.def();N.shared.props=W,N.batchId=ce;var K=N.scope(),Y=N.scope();U(K.entry,"for(",ce,"=0;",ce,"<",te,";++",ce,"){",W,"=",se,"[",ce,"];",Y,"}",K.exit);function ve(Xr){return Xr.contextDep&&Te||Xr.propDep}function Ce(Xr){return!ve(Xr)}if(Q.needsContext&&ma(N,Y,Q.context),Q.needsFramebuffer&&ya(N,Y,Q.framebuffer),Tt(N,Y,Q.state,ve),Q.profile&&ve(Q.profile)&&Wt(N,Y,Q,!1,!0),de)Q.useVAO?Q.drawVAO?ve(Q.drawVAO)?Y(N.shared.vao,".setVAO(",Q.drawVAO.append(N,Y),");"):K(N.shared.vao,".setVAO(",Q.drawVAO.append(N,K),");"):K(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(K(N.shared.vao,".setVAO(null);"),Ja(N,K,Q,de.attributes,Ce),Ja(N,Y,Q,de.attributes,ve)),ln(N,K,Q,de.uniforms,Ce,!1),ln(N,Y,Q,de.uniforms,ve,!0),sn(N,K,Y,Q);else{var $e=N.global.def("{}"),$r=Q.shader.progVar.append(N,Y),Er=Y.def($r,".id"),Ar=Y.def($e,"[",Er,"]");Y(N.shared.gl,".useProgram(",$r,".program);","if(!",Ar,"){",Ar,"=",$e,"[",Er,"]=",N.link(function(Xr){return pt(z,N,Q,Xr,2)}),"(",$r,");}",Ar,".call(this,a0[",ce,"],",ce,");")}}function be(N,U){var Q=N.proc("batch",2);N.batchId="0",qa(N,Q);var de=!1,Te=!0;Object.keys(U.context).forEach(function($e){de=de||U.context[$e].propDep}),de||(ma(N,Q,U.context),Te=!1);var ce=U.framebuffer,se=!1;ce?(ce.propDep?de=se=!0:ce.contextDep&&de&&(se=!0),se||ya(N,Q,ce)):ya(N,Q,null),U.state.viewport&&U.state.viewport.propDep&&(de=!0);function te($e){return $e.contextDep&&de||$e.propDep}Sa(N,Q,U),Tt(N,Q,U.state,function($e){return!te($e)}),(!U.profile||!te(U.profile))&&Wt(N,Q,U,!1,"a1"),U.contextDep=de,U.needsContext=Te,U.needsFramebuffer=se;var W=U.shader.progVar;if(W.contextDep&&de||W.propDep)pe(N,Q,U,null);else{var K=W.append(N,Q);if(Q(N.shared.gl,".useProgram(",K,".program);"),U.shader.program)pe(N,Q,U,U.shader.program);else{Q(N.shared.vao,".setVAO(null);");var Y=N.global.def("{}"),ve=Q.def(K,".id"),Ce=Q.def(Y,"[",ve,"]");Q(N.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",Y,"[",ve,"]=",N.link(function($e){return pt(pe,N,U,$e,2)}),"(",K,");",Ce,".call(this,a0,a1);"))}}Object.keys(U.state).length>0&&Q(N.shared.current,".dirty=true;"),N.shared.vao&&Q(N.shared.vao,".setVAO(null);")}function Nr(N,U){var Q=N.proc("scope",3);N.batchId="a2";var de=N.shared,Te=de.current;if(ma(N,Q,U.context),U.framebuffer&&U.framebuffer.append(N,Q),tr(Object.keys(U.state)).forEach(function(te){var W=U.state[te],K=W.append(N,Q);Si(K)?K.forEach(function(Y,ve){Sr(Y)?Q.set(N.next[te],"["+ve+"]",Y):Q.set(N.next[te],"["+ve+"]",N.link(Y,{stable:!0}))}):Dr(W)?Q.set(de.next,"."+te,N.link(K,{stable:!0})):Q.set(de.next,"."+te,K)}),Wt(N,Q,U,!0,!0),[uo,vu,Fo,yi,Do].forEach(function(te){var W=U.draw[te];if(W){var K=W.append(N,Q);Sr(K)?Q.set(de.draw,"."+te,K):Q.set(de.draw,"."+te,N.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(te){var W=U.uniforms[te].append(N,Q);Array.isArray(W)&&(W="["+W.map(function(K){return Sr(K)?K:N.link(K,{stable:!0})})+"]"),Q.set(de.uniforms,"["+N.link(B.id(te),{stable:!0})+"]",W)}),Object.keys(U.attributes).forEach(function(te){var W=U.attributes[te].append(N,Q),K=N.scopeAttrib(te);Object.keys(new ke).forEach(function(Y){Q.set(K,"."+Y,W[Y])})}),U.scopeVAO){var ce=U.scopeVAO.append(N,Q);Sr(ce)?Q.set(de.vao,".targetVAO",ce):Q.set(de.vao,".targetVAO",N.link(ce,{stable:!0}))}function se(te){var W=U.shader[te];if(W){var K=W.append(N,Q);Sr(K)?Q.set(de.shader,"."+te,K):Q.set(de.shader,"."+te,N.link(K,{stable:!0}))}}se(Ho),se(dl),Object.keys(U.state).length>0&&(Q(Te,".dirty=true;"),Q.exit(Te,".dirty=true;")),Q("a1(",N.shared.context,",a0,",N.batchId,");")}function Dt(N){if(!(typeof N!="object"||Si(N))){for(var U=Object.keys(N),Q=0;Q=0;--pt){var Rt=jr[pt];Rt&&Rt(Ne,null,0)}V.flush(),lr&&lr.update()}function St(){!st&&jr.length>0&&(st=d.next(ft))}function aa(){st&&(d.cancel(ft),st=null)}function Ma(pt){pt.preventDefault(),xe=!0,aa(),ut.forEach(function(Rt){Rt()})}function Lt(pt){V.getError(),xe=!1,we.restore(),Wr.restore(),ar.restore(),Be.restore(),qe.restore(),Mr.restore(),xr.restore(),lr&&lr.restore(),dr.procs.refresh(),St(),gr.forEach(function(Rt){Rt()})}Sr&&(Sr.addEventListener(jt,Ma,!1),Sr.addEventListener(ca,Lt,!1));function nn(){jr.length=0,aa(),Sr&&(Sr.removeEventListener(jt,Ma),Sr.removeEventListener(ca,Lt)),Wr.clear(),Mr.clear(),qe.clear(),xr.clear(),Be.clear(),ze.clear(),ar.clear(),lr&&lr.clear(),kr.forEach(function(pt){pt()})}function Ut(pt){function Rt(ce){var se=e({},ce);delete se.uniforms,delete se.attributes,delete se.context,delete se.vao,"stencil"in se&&se.stencil.op&&(se.stencil.opBack=se.stencil.opFront=se.stencil.op,delete se.stencil.op);function te(W){if(W in se){var K=se[W];delete se[W],Object.keys(K).forEach(function(Y){se[W+"."+Y]=K[Y]})}}return te("blend"),te("depth"),te("cull"),te("stencil"),te("polygonOffset"),te("scissor"),te("sample"),"vao"in ce&&(se.vao=ce.vao),se}function Qt(ce,se){var te={},W={};return Object.keys(ce).forEach(function(K){var Y=ce[K];if(v.isDynamic(Y)){W[K]=v.unbox(Y,K);return}else if(se&&Array.isArray(Y)){for(var ve=0;ve0)return N.call(this,de(ce|0),ce|0)}else if(Array.isArray(ce)){if(ce.length)return N.call(this,ce,ce.length)}else return Rr.call(this,ce)}return e(Te,{stats:Dt,destroy:function(){Ht.destroy()}})}var Ya=Mr.setFBO=Ut({framebuffer:v.define.call(null,Xa,"framebuffer")});function Za(pt,Rt){var Qt=0;dr.procs.poll();var z=Rt.color;z&&(V.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=xn),"depth"in Rt&&(V.clearDepth(+Rt.depth),Qt|=Da),"stencil"in Rt&&(V.clearStencil(Rt.stencil|0),Qt|=ht),V.clear(Qt)}function on(pt){if("framebuffer"in pt)if(pt.framebuffer&&pt.framebuffer_reglType==="framebufferCube")for(var Rt=0;Rt<6;++Rt)Ya(e({framebuffer:pt.framebuffer.faces[Rt]},pt),Za);else Ya(pt,Za);else Za(null,pt)}function ma(pt){jr.push(pt);function Rt(){var Qt=$n(jr,pt);function z(){var pe=$n(jr,z);jr[pe]=jr[jr.length-1],jr.length-=1,jr.length<=0&&aa()}jr[Qt]=z}return St(),{cancel:Rt}}function ya(){var pt=ur.viewport,Rt=ur.scissor_box;pt[0]=pt[1]=Rt[0]=Rt[1]=0,Ne.viewportWidth=Ne.framebufferWidth=Ne.drawingBufferWidth=pt[2]=Rt[2]=V.drawingBufferWidth,Ne.viewportHeight=Ne.framebufferHeight=Ne.drawingBufferHeight=pt[3]=Rt[3]=V.drawingBufferHeight}function Sa(){Ne.tick+=1,Ne.time=qa(),ya(),dr.procs.poll()}function Tt(){Be.refresh(),ya(),dr.procs.refresh(),lr&&lr.update()}function qa(){return(p()-Zr)/1e3}Tt();function Wt(pt,Rt){var Qt;switch(pt){case"frame":return ma(Rt);case"lost":Qt=ut;break;case"restore":Qt=gr;break;case"destroy":Qt=kr;break;default:}return Qt.push(Rt),{cancel:function(){for(var z=0;z=0},read:fr,destroy:nn,_gl:V,_refresh:Tt,poll:function(){Sa(),lr&&lr.update()},now:qa,stats:We,getCachedCode:Ja,preloadCachedCode:ln});return B.onDone(null,sn),sn}return Li})});var Tee=P((MOe,Aee)=>{"use strict";var a7e=Of();Aee.exports=function(r){if(r?typeof r=="string"&&(r={container:r}):r={},_ee(r)?r={container:r}:n7e(r)?r={container:r}:i7e(r)?r={gl:r}:r=a7e(r,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),r.pixelRatio||(r.pixelRatio=window.pixelRatio||1),r.gl)return r.gl;if(r.canvas&&(r.container=r.canvas.parentNode),r.container){if(typeof r.container=="string"){var t=document.querySelector(r.container);if(!t)throw Error("Element "+r.container+" is not found");r.container=t}_ee(r.container)?(r.canvas=r.container,r.container=r.canvas.parentNode):r.canvas||(r.canvas=wee(),r.container.appendChild(r.canvas),xee(r))}else if(!r.canvas)if(typeof document!="undefined")r.container=document.body||document.documentElement,r.canvas=wee(),r.container.appendChild(r.canvas),xee(r);else throw Error("Not DOM environment. Use headless-gl.");return r.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(a){try{r.gl=r.canvas.getContext(a,r.attrs)}catch(n){}return r.gl}),r.gl};function xee(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var r=e.container.getBoundingClientRect();e.canvas.width=e.width||r.right-r.left,e.canvas.height=e.height||r.bottom-r.top}}function _ee(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function n7e(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function i7e(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function wee(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var See=P((SOe,Mee)=>{"use strict";var o7e=J7(),l7e=[32,126];Mee.exports=s7e;function s7e(e){e=e||{};var r=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],t=e.canvas||document.createElement("canvas"),a=e.font,n=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],i=e.chars||l7e;if(a&&typeof a!="string"&&(a=o7e(a)),!Array.isArray(i))i=String(i).split("");else if(i.length===2&&typeof i[0]=="number"&&typeof i[1]=="number"){for(var o=[],l=i[0],s=0;l<=i[1];l++)o[s++]=String.fromCharCode(l);i=o}r=r.slice(),t.width=r[0],t.height=r[1];var f=t.getContext("2d");f.fillStyle="#000",f.fillRect(0,0,t.width,t.height),f.font=a,f.textAlign="center",f.textBaseline="middle",f.fillStyle="#fff";for(var u=n[0]/2,c=n[1]/2,l=0;lr[0]-n[0]/2&&(u=n[0]/2,c+=n[1]);return t}});var e9=P(oi=>{"use strict";"use restrict";var K7=32;oi.INT_BITS=K7;oi.INT_MAX=2147483647;oi.INT_MIN=-1<0)-(e<0)};oi.abs=function(e){var r=e>>K7-1;return(e^r)-r};oi.min=function(e,r){return r^(e^r)&-(e65535)<<4,e>>>=r,t=(e>255)<<3,e>>>=t,r|=t,t=(e>15)<<2,e>>>=t,r|=t,t=(e>3)<<1,e>>>=t,r|=t,r|e>>1};oi.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};oi.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function Eee(e){var r=32;return e&=-e,e&&r--,e&65535&&(r-=16),e&16711935&&(r-=8),e&252645135&&(r-=4),e&858993459&&(r-=2),e&1431655765&&(r-=1),r}oi.countTrailingZeros=Eee;oi.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};oi.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};oi.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var og=new Array(256);(function(e){for(var r=0;r<256;++r){var t=r,a=r,n=7;for(t>>>=1;t;t>>>=1)a<<=1,a|=t&1,--n;e[r]=a<>>8&255]<<16|og[e>>>16&255]<<8|og[e>>>24&255]};oi.interleave2=function(e,r){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r&=65535,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1};oi.deinterleave2=function(e,r){return e=e>>>r&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};oi.interleave3=function(e,r,t){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|=r<<1,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|t<<2};oi.deinterleave3=function(e,r){return e=e>>>r&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};oi.nextCombination=function(e){var r=e|e-1;return r+1|(~r&-~r)-1>>>Eee(e)+1}});var Lee=P((kOe,Cee)=>{"use strict";function kee(e,r,t){var a=e[t]|0;if(a<=0)return[];var n=new Array(a),i;if(t===e.length-1)for(i=0;i0)return f7e(e|0,r);break;case"object":if(typeof e.length=="number")return kee(e,r,0);break}return[]}Cee.exports=u7e});var Ree=P(P_=>{"use strict";P_.byteLength=v7e;P_.toByteArray=d7e;P_.fromByteArray=y7e;var Bf=[],is=[],c7e=typeof Uint8Array!="undefined"?Uint8Array:Array,r9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(mh=0,Dee=r9.length;mh0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function v7e(e){var r=Fee(e),t=r[0],a=r[1];return(t+a)*3/4-a}function h7e(e,r,t){return(r+t)*3/4-t}function d7e(e){var r,t=Fee(e),a=t[0],n=t[1],i=new c7e(h7e(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=is[e.charCodeAt(s)]<<2|is[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=is[e.charCodeAt(s)]<<10|is[e.charCodeAt(s+1)]<<4|is[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function p7e(e){return Bf[e>>18&63]+Bf[e>>12&63]+Bf[e>>6&63]+Bf[e&63]}function m7e(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(Bf[r>>2]+Bf[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Bf[r>>10]+Bf[r>>4&63]+Bf[r<<2&63]+"=")),n.join("")}});var qee=P(t9=>{t9.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,u=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-u)-1,d>>=-u,u+=l;u>0;i=i*256+e[r+c],c+=v,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=a;u>0;o=o*256+e[r+c],c+=v,u-=8);if(i===0)i=1-f;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-f}return(d?-1:1)*o*Math.pow(2,i-a)};t9.write=function(e,r,t,a,n,i){var o,l,s,f=i*8-n-1,u=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,g=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=u):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=u?(l=0,o=u):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,f-=8);e[t+d-p]|=g*128}});var $ee=P(B1=>{"use strict";var a9=Ree(),O1=qee(),Pee=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;B1.Buffer=Kr;B1.SlowBuffer=A7e;B1.INSPECT_MAX_BYTES=50;var N_=2147483647;B1.kMaxLength=N_;Kr.TYPED_ARRAY_SUPPORT=g7e();!Kr.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function g7e(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(Kr.prototype,"parent",{enumerable:!0,get:function(){if(Kr.isBuffer(this))return this.buffer}});Object.defineProperty(Kr.prototype,"offset",{enumerable:!0,get:function(){if(Kr.isBuffer(this))return this.byteOffset}});function Vu(e){if(e>N_)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,Kr.prototype),r}function Kr(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return l9(e)}return Bee(e,r,t)}Kr.poolSize=8192;function Bee(e,r,t){if(typeof e=="string")return x7e(e,r);if(ArrayBuffer.isView(e))return _7e(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(zf(e,ArrayBuffer)||e&&zf(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(zf(e,SharedArrayBuffer)||e&&zf(e.buffer,SharedArrayBuffer)))return i9(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return Kr.from(a,r,t);let n=w7e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Kr.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Kr.from=function(e,r,t){return Bee(e,r,t)};Object.setPrototypeOf(Kr.prototype,Uint8Array.prototype);Object.setPrototypeOf(Kr,Uint8Array);function zee(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function b7e(e,r,t){return zee(e),e<=0?Vu(e):r!==void 0?typeof t=="string"?Vu(e).fill(r,t):Vu(e).fill(r):Vu(e)}Kr.alloc=function(e,r,t){return b7e(e,r,t)};function l9(e){return zee(e),Vu(e<0?0:s9(e)|0)}Kr.allocUnsafe=function(e){return l9(e)};Kr.allocUnsafeSlow=function(e){return l9(e)};function x7e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Kr.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=Gee(e,r)|0,a=Vu(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function n9(e){let r=e.length<0?0:s9(e.length)|0,t=Vu(r);for(let a=0;a=N_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N_.toString(16)+" bytes");return e|0}function A7e(e){return+e!=e&&(e=0),Kr.alloc(+e)}Kr.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==Kr.prototype};Kr.compare=function(r,t){if(zf(r,Uint8Array)&&(r=Kr.from(r,r.offset,r.byteLength)),zf(t,Uint8Array)&&(t=Kr.from(t,t.offset,t.byteLength)),!Kr.isBuffer(r)||!Kr.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(Kr.isBuffer(o)||(o=Kr.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(Kr.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function Gee(e,r){if(Kr.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||zf(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return o9(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Jee(e).length;default:if(n)return a?-1:o9(e).length;r=(""+r).toLowerCase(),n=!0}}Kr.byteLength=Gee;function T7e(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return q7e(this,r,t);case"utf8":case"utf-8":return Hee(this,r,t);case"ascii":return F7e(this,r,t);case"latin1":case"binary":return R7e(this,r,t);case"base64":return L7e(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P7e(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}Kr.prototype._isBuffer=!0;function yh(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}Kr.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};Pee&&(Kr.prototype[Pee]=Kr.prototype.inspect);Kr.prototype.compare=function(r,t,a,n,i){if(zf(r,Uint8Array)&&(r=Kr.from(r,r.offset,r.byteLength)),!Kr.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),f=this.slice(n,i),u=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,u9(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=Kr.from(r,a)),Kr.isBuffer(r))return r.length===0?-1:Nee(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Nee(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function Nee(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(u,c){return i===1?u[c]:u.readUInt16BE(c*i)}let f;if(n){let u=-1;for(f=t;fo&&(t=o-l),f=t;f>=0;f--){let u=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return M7e(this,r,t,a);case"utf8":case"utf-8":return S7e(this,r,t,a);case"ascii":case"latin1":case"binary":return E7e(this,r,t,a);case"base64":return k7e(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C7e(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};Kr.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L7e(e,r,t){return r===0&&t===e.length?a9.fromByteArray(e):a9.fromByteArray(e.slice(r,t))}function Hee(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,f,u,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],f=e[n+2],(s&192)===128&&(f&192)===128&&(c=(i&15)<<12|(s&63)<<6|f&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],f=e[n+2],u=e[n+3],(s&192)===128&&(f&192)===128&&(u&192)===128&&(c=(i&15)<<18|(s&63)<<12|(f&63)<<6|u&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return D7e(a)}var Oee=4096;function D7e(e){let r=e.length;if(r<=Oee)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}Kr.prototype.readUintLE=Kr.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||Yi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Yi(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};Kr.prototype.readUint8=Kr.prototype.readUInt8=function(r,t){return r=r>>>0,t||Yi(r,1,this.length),this[r]};Kr.prototype.readUint16LE=Kr.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Yi(r,2,this.length),this[r]|this[r+1]<<8};Kr.prototype.readUint16BE=Kr.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Yi(r,2,this.length),this[r]<<8|this[r+1]};Kr.prototype.readUint32LE=Kr.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Yi(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};Kr.prototype.readUint32BE=Kr.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||Yi(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};Kr.prototype.readBigUInt64LE=yv(function(r){r=r>>>0,I1(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&lg(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,I1(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&lg(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||Yi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};Kr.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Yi(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};Kr.prototype.readInt8=function(r,t){return r=r>>>0,t||Yi(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};Kr.prototype.readInt16LE=function(r,t){r=r>>>0,t||Yi(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};Kr.prototype.readInt16BE=function(r,t){r=r>>>0,t||Yi(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};Kr.prototype.readInt32LE=function(r,t){return r=r>>>0,t||Yi(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};Kr.prototype.readInt32BE=function(r,t){return r=r>>>0,t||Yi(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};Kr.prototype.readBigInt64LE=yv(function(r){r=r>>>0,I1(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&lg(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,I1(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&lg(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||Yi(r,4,this.length),O1.read(this,r,!0,23,4)};Kr.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Yi(r,4,this.length),O1.read(this,r,!1,23,4)};Kr.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Yi(r,8,this.length),O1.read(this,r,!0,52,8)};Kr.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Yi(r,8,this.length),O1.read(this,r,!1,52,8)};function nl(e,r,t,a,n,i){if(!Kr.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}Kr.prototype.writeUintLE=Kr.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;nl(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;nl(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};Kr.prototype.writeUint8=Kr.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,1,255,0),this[t]=r&255,t+1};Kr.prototype.writeUint16LE=Kr.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};Kr.prototype.writeUint16BE=Kr.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};Kr.prototype.writeUint32LE=Kr.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};Kr.prototype.writeUint32BE=Kr.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function Vee(e,r,t,a,n){Zee(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function Yee(e,r,t,a,n){Zee(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}Kr.prototype.writeBigUInt64LE=yv(function(r,t=0){return Vee(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});Kr.prototype.writeBigUInt64BE=yv(function(r,t=0){return Yee(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});Kr.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);nl(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};Kr.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);nl(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};Kr.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};Kr.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};Kr.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};Kr.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};Kr.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};Kr.prototype.writeBigInt64LE=yv(function(r,t=0){return Vee(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Kr.prototype.writeBigInt64BE=yv(function(r,t=0){return Yee(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Wee(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function jee(e,r,t,a,n){return r=+r,t=t>>>0,n||Wee(e,r,t,4,34028234663852886e22,-34028234663852886e22),O1.write(e,r,t,a,23,4),t+4}Kr.prototype.writeFloatLE=function(r,t,a){return jee(this,r,t,!0,a)};Kr.prototype.writeFloatBE=function(r,t,a){return jee(this,r,t,!1,a)};function Xee(e,r,t,a,n){return r=+r,t=t>>>0,n||Wee(e,r,t,8,17976931348623157e292,-17976931348623157e292),O1.write(e,r,t,a,52,8),t+8}Kr.prototype.writeDoubleLE=function(r,t,a){return Xee(this,r,t,!0,a)};Kr.prototype.writeDoubleBE=function(r,t,a){return Xee(this,r,t,!1,a)};Kr.prototype.copy=function(r,t,a,n){if(!Kr.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=Iee(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=Iee(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function Iee(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function N7e(e,r,t){I1(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&lg(r,e.length-(t+1))}function Zee(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new N1.ERR_OUT_OF_RANGE("value",l,e)}N7e(a,n,i)}function I1(e,r){if(typeof e!="number")throw new N1.ERR_INVALID_ARG_TYPE(r,"number",e)}function lg(e,r,t){throw Math.floor(e)!==e?(I1(e,t),new N1.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new N1.ERR_BUFFER_OUT_OF_BOUNDS:new N1.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var O7e=/[^+/0-9A-Za-z-_]/g;function I7e(e){if(e=e.split("=")[0],e=e.trim().replace(O7e,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function o9(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function B7e(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function Jee(e){return a9.toByteArray(I7e(e))}function O_(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function zf(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function u9(e){return e!==e}var G7e=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r}();function yv(e){return typeof BigInt=="undefined"?U7e:e}function U7e(){throw new Error("BigInt not supported")}});var vre=P(Ia=>{"use strict";var gv=e9(),oo=Lee(),Qee=$ee().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:oo([32,0]),UINT16:oo([32,0]),UINT32:oo([32,0]),BIGUINT64:oo([32,0]),INT8:oo([32,0]),INT16:oo([32,0]),INT32:oo([32,0]),BIGINT64:oo([32,0]),FLOAT:oo([32,0]),DOUBLE:oo([32,0]),DATA:oo([32,0]),UINT8C:oo([32,0]),BUFFER:oo([32,0])});var H7e=typeof Uint8ClampedArray!="undefined",V7e=typeof BigUint64Array!="undefined",Y7e=typeof BigInt64Array!="undefined",vi=window.__TYPEDARRAY_POOL;vi.UINT8C||(vi.UINT8C=oo([32,0]));vi.BIGUINT64||(vi.BIGUINT64=oo([32,0]));vi.BIGINT64||(vi.BIGINT64=oo([32,0]));vi.BUFFER||(vi.BUFFER=oo([32,0]));var I_=vi.DATA,B_=vi.BUFFER;Ia.free=function(r){if(Qee.isBuffer(r))B_[gv.log2(r.length)].push(r);else{if(Object.prototype.toString.call(r)!=="[object ArrayBuffer]"&&(r=r.buffer),!r)return;var t=r.length||r.byteLength,a=gv.log2(t)|0;I_[a].push(r)}};function Kee(e){if(e){var r=e.length||e.byteLength,t=gv.log2(r);I_[t].push(e)}}function W7e(e){Kee(e.buffer)}Ia.freeUint8=Ia.freeUint16=Ia.freeUint32=Ia.freeBigUint64=Ia.freeInt8=Ia.freeInt16=Ia.freeInt32=Ia.freeBigInt64=Ia.freeFloat32=Ia.freeFloat=Ia.freeFloat64=Ia.freeDouble=Ia.freeUint8Clamped=Ia.freeDataView=W7e;Ia.freeArrayBuffer=Kee;Ia.freeBuffer=function(r){B_[gv.log2(r.length)].push(r)};Ia.malloc=function(r,t){if(t===void 0||t==="arraybuffer")return il(r);switch(t){case"uint8":return c9(r);case"uint16":return ere(r);case"uint32":return rre(r);case"int8":return tre(r);case"int16":return are(r);case"int32":return nre(r);case"float":case"float32":return ire(r);case"double":case"float64":return ore(r);case"uint8_clamped":return lre(r);case"bigint64":return fre(r);case"biguint64":return sre(r);case"buffer":return cre(r);case"data":case"dataview":return ure(r);default:return null}return null};function il(r){var r=gv.nextPow2(r),t=gv.log2(r),a=I_[t];return a.length>0?a.pop():new ArrayBuffer(r)}Ia.mallocArrayBuffer=il;function c9(e){return new Uint8Array(il(e),0,e)}Ia.mallocUint8=c9;function ere(e){return new Uint16Array(il(2*e),0,e)}Ia.mallocUint16=ere;function rre(e){return new Uint32Array(il(4*e),0,e)}Ia.mallocUint32=rre;function tre(e){return new Int8Array(il(e),0,e)}Ia.mallocInt8=tre;function are(e){return new Int16Array(il(2*e),0,e)}Ia.mallocInt16=are;function nre(e){return new Int32Array(il(4*e),0,e)}Ia.mallocInt32=nre;function ire(e){return new Float32Array(il(4*e),0,e)}Ia.mallocFloat32=Ia.mallocFloat=ire;function ore(e){return new Float64Array(il(8*e),0,e)}Ia.mallocFloat64=Ia.mallocDouble=ore;function lre(e){return H7e?new Uint8ClampedArray(il(e),0,e):c9(e)}Ia.mallocUint8Clamped=lre;function sre(e){return V7e?new BigUint64Array(il(8*e),0,e):null}Ia.mallocBigUint64=sre;function fre(e){return Y7e?new BigInt64Array(il(8*e),0,e):null}Ia.mallocBigInt64=fre;function ure(e){return new DataView(il(e),0,e)}Ia.mallocDataView=ure;function cre(e){e=gv.nextPow2(e);var r=gv.log2(e),t=B_[r];return t.length>0?t.pop():new Qee(e)}Ia.mallocBuffer=cre;Ia.clearCache=function(){for(var r=0;r<32;++r)vi.UINT8[r].length=0,vi.UINT16[r].length=0,vi.UINT32[r].length=0,vi.INT8[r].length=0,vi.INT16[r].length=0,vi.INT32[r].length=0,vi.FLOAT[r].length=0,vi.DOUBLE[r].length=0,vi.BIGUINT64[r].length=0,vi.BIGINT64[r].length=0,vi.UINT8C[r].length=0,I_[r].length=0,B_[r].length=0}});var dre=P((qOe,hre)=>{"use strict";var j7e=Object.prototype.toString;hre.exports=function(e){var r;return j7e.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))}});var v9=P((POe,pre)=>{pre.exports=function(r,t){t||(t=[0,""]),r=String(r);var a=parseFloat(r,10);return t[0]=a,t[1]=r.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t}});var gre=P((NOe,yre)=>{"use strict";var X7e=v9();yre.exports=mre;var sg=96;function h9(e,r){var t=X7e(getComputedStyle(e).getPropertyValue(r));return t[0]*mre(t[1],e)}function Z7e(e,r){var t=document.createElement("div");t.style["font-size"]="128"+e,r.appendChild(t);var a=h9(t,"font-size")/128;return r.removeChild(t),a}function mre(e,r){switch(r=r||document.body,e=(e||"px").trim().toLowerCase(),(r===window||r===document)&&(r=document.body),e){case"%":return r.clientHeight/100;case"ch":case"ex":return Z7e(e,r);case"em":return h9(r,"font-size");case"rem":return h9(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return sg;case"cm":return sg/2.54;case"mm":return sg/25.4;case"pt":return sg/72;case"pc":return sg/6}return 1}});var _re=P((OOe,xre)=>{"use strict";xre.exports=U_;var J7e=U_.canvas=document.createElement("canvas"),z_=J7e.getContext("2d"),bre=G_([32,126]);U_.createPairs=G_;U_.ascii=bre;function U_(e,r){Array.isArray(e)&&(e=e.join(", "));var t={},a,n=16,i=.05;r&&(r.length===2&&typeof r[0]=="number"?a=G_(r):Array.isArray(r)?a=r:(r.o?a=G_(r.o):r.pairs&&(a=r.pairs),r.fontSize&&(n=r.fontSize),r.threshold!=null&&(i=r.threshold))),a||(a=bre),z_.font=n+"px "+e;for(var o=0;on*i){var u=(f-s)/n;t[l]=u*1e3}}return t}function G_(e){for(var r=[],t=e[0];t<=e[1];t++)for(var a=String.fromCharCode(t),n=e[0];n{"use strict";Tre.exports=bv;bv.canvas=document.createElement("canvas");bv.cache={};function bv(o,r){r||(r={}),(typeof o=="string"||Array.isArray(o))&&(r.family=o);var t=Array.isArray(r.family)?r.family.join(", "):r.family;if(!t)throw Error("`family` must be defined");var a=r.size||r.fontSize||r.em||48,n=r.weight||r.fontWeight||"",i=r.style||r.fontStyle||"",o=[i,n,a].join(" ")+"px "+t,l=r.origin||"top";if(bv.cache[t]&&a<=bv.cache[t].em)return wre(bv.cache[t],l);var s=r.canvas||bv.canvas,f=s.getContext("2d"),u={upper:r.upper!==void 0?r.upper:"H",lower:r.lower!==void 0?r.lower:"x",descent:r.descent!==void 0?r.descent:"p",ascent:r.ascent!==void 0?r.ascent:"h",tittle:r.tittle!==void 0?r.tittle:"i",overshoot:r.overshoot!==void 0?r.overshoot:"O"},c=Math.ceil(a*1.5);s.height=c,s.width=c*.5,f.font=o;var v="H",d={top:0};f.clearRect(0,0,c,c),f.textBaseline="top",f.fillStyle="black",f.fillText(v,0,0);var p=Gf(f.getImageData(0,0,c,c));f.clearRect(0,0,c,c),f.textBaseline="bottom",f.fillText(v,0,c);var g=Gf(f.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-g+p,f.clearRect(0,0,c,c),f.textBaseline="alphabetic",f.fillText(v,0,c);var m=Gf(f.getImageData(0,0,c,c)),b=c-m-1+p;d.baseline=d.alphabetic=b,f.clearRect(0,0,c,c),f.textBaseline="middle",f.fillText(v,0,c*.5);var A=Gf(f.getImageData(0,0,c,c));d.median=d.middle=c-A-1+p-c*.5,f.clearRect(0,0,c,c),f.textBaseline="hanging",f.fillText(v,0,c*.5);var _=Gf(f.getImageData(0,0,c,c));d.hanging=c-_-1+p-c*.5,f.clearRect(0,0,c,c),f.textBaseline="ideographic",f.fillText(v,0,c);var x=Gf(f.getImageData(0,0,c,c));if(d.ideographic=c-x-1+p,u.upper&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.upper,0,0),d.upper=Gf(f.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),u.lower&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.lower,0,0),d.lower=Gf(f.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),u.tittle&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.tittle,0,0),d.tittle=Gf(f.getImageData(0,0,c,c))),u.ascent&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.ascent,0,0),d.ascent=Gf(f.getImageData(0,0,c,c))),u.descent&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.descent,0,0),d.descent=Are(f.getImageData(0,0,c,c))),u.overshoot){f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.overshoot,0,0);var T=Are(f.getImageData(0,0,c,c));d.overshoot=T-b}for(var E in d)d[E]/=a;return d.em=a,bv.cache[t]=d,wre(d,l)}function wre(e,r){var t={};typeof r=="string"&&(r=e[r]);for(var a in e)a!=="em"&&(t[a]=e[a]-r);return t}function Gf(e){for(var r=e.height,t=e.data,a=3;a0;a-=4)if(t[a]!==0)return Math.floor((a-3)*.25/r)}});var Cre=P((BOe,kre)=>{"use strict";var z1=gee(),$7e=Of(),Q7e=bee(),K7e=Tee(),e9e=N7(),d9=uh(),r9e=See(),xv=vre(),t9e=u1(),a9e=dre(),n9e=v9(),i9e=gre(),o9e=_re(),l9e=ni(),s9e=Mre(),f9e=ah(),u9e=e9(),Sre=u9e.nextPow2,Ere=new e9e,V_=!1;document.body&&(H_=document.body.appendChild(document.createElement("div")),H_.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(H_).fontStretch&&(V_=!0),document.body.removeChild(H_));var H_,Ka=function(r){c9e(r)?(r={regl:r},this.gl=r.regl._gl):this.gl=K7e(r),this.shader=Ere.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=r.regl||Q7e({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),Ere.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(a9e(r)?r:{})};Ka.prototype.createShader=function(){var r=this.regl,t=r({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:r.prop("count"),offset:r.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:r.this("sizeBuffer")},width:{offset:0,stride:8,buffer:r.this("sizeBuffer")},char:r.this("charBuffer"),position:r.this("position")},uniforms:{atlasSize:function(n,i){return[i.atlas.width,i.atlas.height]},atlasDim:function(n,i){return[i.atlas.cols,i.atlas.rows]},atlas:function(n,i){return i.atlas.texture},charStep:function(n,i){return i.atlas.step},em:function(n,i){return i.atlas.em},color:r.prop("color"),opacity:r.prop("opacity"),viewport:r.this("viewportArray"),scale:r.this("scale"),align:r.prop("align"),baseline:r.prop("baseline"),translate:r.this("translate"),positionOffset:r.prop("positionOffset")},primitive:"points",viewport:r.this("viewport"),vert:` +`),ke;if(B&&(ke=A1(fe),B[ke]))return B[ke].apply(null,xe);var Je=Function.apply(null,he.concat(fe));return B&&(B[ke]=Je),Je.apply(null,xe)}return{global:lr,link:_e,block:Ye,proc:Fr,scope:or,cond:nr,compile:br}}var fo="xyzw".split(""),uc=5121,$i=1,_s=2,nu=0,uf=1,cc=2,cf=3,ws=4,vc=5,vf=6,hc="dither",s0="blend.enable",f0="blend.color",iu="blend.equation",ou="blend.func",dc="depth.enable",pc="depth.func",mc="depth.range",yc="depth.mask",lu="colorMask",hf="cull.enable",u0="cull.face",su="frontFace",df="lineWidth",gc="polygonOffset.enable",fu="polygonOffset.offset",pf="sample.alpha",mf="sample.enable",yf="sample.coverage",bc="stencil.enable",uu="stencil.mask",Ci="stencil.func",gf="stencil.opFront",vl="stencil.opBack",cu="scissor.enable",hl="scissor.box",si="viewport",As="profile",Do="framebuffer",Vo="vert",dl="frag",uo="elements",Fo="primitive",qo="count",vu="offset",yi="instances",Nl="vao",bf="Width",co="Height",Qi=Do+bf,Ki=Do+co,k1=si+bf,C1=si+co,c0="drawingBuffer",xc=c0+bf,_c=c0+co,Gh=[ou,iu,Ci,gf,vl,yf,si,hl,fu],vo=34962,hu=34963,Uh=2884,L1=3042,D1=3024,F1=2960,Hh=2929,Vh=3089,wc=32823,Yh=32926,Ac=32928,Tc=5126,pl=35664,an=35665,xf=35666,ml=5124,Il=35667,Ts=35668,du=35669,pu=35670,Ol=35671,_f=35672,mu=35673,yu=35674,gu=35675,bu=35676,Ms=35678,xu=35680,_u=4,h=1028,g=1029,w=2304,k=2305,L=32775,D=32776,G=519,R=7680,j=0,ne=1,oe=32774,ye=513,ge=36160,Xe=36064,Ke={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Me={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},qe={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ue={cw:w,ccw:k};function er(S){return Array.isArray(S)||ot(S)||et(S)}function tr(S){return S.sort(function(B,V){return B===si?-1:V===si?1:B=1,he>=2,B)}else if(V===ws){var xe=S.data;return new Le(xe.thisDep,xe.contextDep,xe.propDep,B)}else{if(V===vc)return new Le(!1,!1,!1,B);if(V===vf){for(var we=!1,_e=!1,Ye=!1,or=0;or=1&&(_e=!0),lr>=2&&(Ye=!0)}else nr.type===ws&&(we=we||nr.data.thisDep,_e=_e||nr.data.contextDep,Ye=Ye||nr.data.propDep)}return new Le(we,_e,Ye,B)}else return new Le(V===cf,V===cc,V===uf,B)}}var mt=new Le(!1,!1,!1,function(){});function kt(S,B,V,he,xe,we,_e,Ye,or,nr,lr,Zr,Fr,br,Ne,fe){var ke=nr.Record,Je={add:32774,subtract:32778,"reverse subtract":32779};V.ext_blend_minmax&&(Je.min=L,Je.max=D);var ar=V.angle_instanced_arrays,ze=V.webgl_draw_buffers,xr=V.oes_vertex_array_object,mr={dirty:!0,profile:fe.profile},Wr={},Be=[],Re={},Mr={};function dr(N){return N.replace(".","_")}function fr(N,U,$){var de=dr(N);Be.push(N),Wr[de]=mr[de]=!!$,Re[de]=U}function ur(N,U,$){var de=dr(N);Be.push(N),Array.isArray($)?(mr[de]=$.slice(),Wr[de]=$.slice()):mr[de]=Wr[de]=$,Mr[de]=U}function Sr(N){return!!isNaN(N)}fr(hc,D1),fr(s0,L1),ur(f0,"blendColor",[0,0,0,0]),ur(iu,"blendEquationSeparate",[oe,oe]),ur(ou,"blendFuncSeparate",[ne,j,ne,j]),fr(dc,Hh,!0),ur(pc,"depthFunc",ye),ur(mc,"depthRange",[0,1]),ur(yc,"depthMask",!0),ur(lu,lu,[!0,!0,!0,!0]),fr(hf,Uh),ur(u0,"cullFace",g),ur(su,su,k),ur(df,df,1),fr(gc,wc),ur(fu,"polygonOffset",[0,0]),fr(pf,Yh),fr(mf,Ac),ur(yf,"sampleCoverage",[1,!1]),fr(bc,F1),ur(uu,"stencilMask",-1),ur(Ci,"stencilFunc",[G,0,-1]),ur(gf,"stencilOpSeparate",[h,R,R,R]),ur(vl,"stencilOpSeparate",[g,R,R,R]),fr(cu,Vh),ur(hl,"scissor",[0,0,S.drawingBufferWidth,S.drawingBufferHeight]),ur(si,si,[0,0,S.drawingBufferWidth,S.drawingBufferHeight]);var jr={gl:S,context:Fr,strings:B,next:Wr,current:mr,draw:Zr,elements:we,buffer:xe,shader:lr,attributes:nr.state,vao:nr,uniforms:or,framebuffer:Ye,extensions:V,timer:br,isBufferArgs:er},ut={primTypes:Oo,compareFuncs:Me,blendFuncs:Ke,blendEquations:Je,stencilOps:qe,glTypes:vn,orientationType:Ue};ze&&(ut.backBuffer=[g],ut.drawBuffer=C(he.maxDrawbuffers,function(N){return N===0?[0]:C(N,function(U){return Xe+U})}));var gr=0;function kr(){var N=zh({cache:Ne}),U=N.link,$=N.global;N.id=gr++,N.batchId="0";var de=U(jr),Te=N.shared={props:"a0"};Object.keys(jr).forEach(function(K){Te[K]=$.def(de,".",K)});var ce=N.next={},se=N.current={};Object.keys(Mr).forEach(function(K){Array.isArray(mr[K])&&(ce[K]=$.def(Te.next,".",K),se[K]=$.def(Te.current,".",K))});var te=N.constants={};Object.keys(ut).forEach(function(K){te[K]=$.def(JSON.stringify(ut[K]))}),N.invoke=function(K,Y){switch(Y.type){case nu:var ve=["this",Te.context,Te.props,N.batchId];return K.def(U(Y.data),".call(",ve.slice(0,Math.max(Y.data.length+1,4)),")");case uf:return K.def(Te.props,Y.data);case cc:return K.def(Te.context,Y.data);case cf:return K.def("this",Y.data);case ws:return Y.data.append(N,K),Y.data.ref;case vc:return Y.data.toString();case vf:return Y.data.map(function(Ce){return N.invoke(K,Ce)})}},N.attribCache={};var W={};return N.scopeAttrib=function(K){var Y=B.id(K);if(Y in W)return W[Y];var ve=nr.scope[Y];ve||(ve=nr.scope[Y]=new ke);var Ce=W[Y]=U(ve);return Ce},N}function st(N){var U=N.static,$=N.dynamic,de;if(As in U){var Te=!!U[As];de=zr(function(se,te){return Te}),de.enable=Te}else if(As in $){var ce=$[As];de=tt(ce,function(se,te){return se.invoke(te,ce)})}return de}function ft(N,U){var $=N.static,de=N.dynamic;if(Do in $){var Te=$[Do];return Te?(Te=Ye.getFramebuffer(Te),zr(function(se,te){var W=se.link(Te),K=se.shared;te.set(K.framebuffer,".next",W);var Y=K.context;return te.set(Y,"."+Qi,W+".width"),te.set(Y,"."+Ki,W+".height"),W})):zr(function(se,te){var W=se.shared;te.set(W.framebuffer,".next","null");var K=W.context;return te.set(K,"."+Qi,K+"."+xc),te.set(K,"."+Ki,K+"."+_c),"null"})}else if(Do in de){var ce=de[Do];return tt(ce,function(se,te){var W=se.invoke(te,ce),K=se.shared,Y=K.framebuffer,ve=te.def(Y,".getFramebuffer(",W,")");te.set(Y,".next",ve);var Ce=K.context;return te.set(Ce,"."+Qi,ve+"?"+ve+".width:"+Ce+"."+xc),te.set(Ce,"."+Ki,ve+"?"+ve+".height:"+Ce+"."+_c),ve})}else return null}function St(N,U,$){var de=N.static,Te=N.dynamic;function ce(W){if(W in de){var K=de[W],Y=!0,ve=K.x|0,Ce=K.y|0,$e,$r;return"width"in K?$e=K.width|0:Y=!1,"height"in K?$r=K.height|0:Y=!1,new Le(!Y&&U&&U.thisDep,!Y&&U&&U.contextDep,!Y&&U&&U.propDep,function(Xr,Gr){var Br=Xr.shared.context,Tr=$e;"width"in K||(Tr=Gr.def(Br,".",Qi,"-",ve));var Rr=$r;return"height"in K||(Rr=Gr.def(Br,".",Ki,"-",Ce)),[ve,Ce,Tr,Rr]})}else if(W in Te){var Er=Te[W],Ar=tt(Er,function(Xr,Gr){var Br=Xr.invoke(Gr,Er),Tr=Xr.shared.context,Rr=Gr.def(Br,".x|0"),Or=Gr.def(Br,".y|0"),ct=Gr.def('"width" in ',Br,"?",Br,".width|0:","(",Tr,".",Qi,"-",Rr,")"),Kt=Gr.def('"height" in ',Br,"?",Br,".height|0:","(",Tr,".",Ki,"-",Or,")");return[Rr,Or,ct,Kt]});return U&&(Ar.thisDep=Ar.thisDep||U.thisDep,Ar.contextDep=Ar.contextDep||U.contextDep,Ar.propDep=Ar.propDep||U.propDep),Ar}else return U?new Le(U.thisDep,U.contextDep,U.propDep,function(Xr,Gr){var Br=Xr.shared.context;return[0,0,Gr.def(Br,".",Qi),Gr.def(Br,".",Ki)]}):null}var se=ce(si);if(se){var te=se;se=new Le(se.thisDep,se.contextDep,se.propDep,function(W,K){var Y=te.append(W,K),ve=W.shared.context;return K.set(ve,"."+k1,Y[2]),K.set(ve,"."+C1,Y[3]),Y})}return{viewport:se,scissor_box:ce(hl)}}function aa(N,U){var $=N.static,de=typeof $[dl]=="string"&&typeof $[Vo]=="string";if(de){if(Object.keys(U.dynamic).length>0)return null;var Te=U.static,ce=Object.keys(Te);if(ce.length>0&&typeof Te[ce[0]]=="number"){for(var se=[],te=0;te"+Rr+"?"+Y+".constant["+Rr+"]:0;"}).join(""),"}}else{","if(",$e,"(",Y,".buffer)){",Xr,"=",$r,".createStream(",vo,",",Y,".buffer);","}else{",Xr,"=",$r,".getBuffer(",Y,".buffer);","}",Gr,'="type" in ',Y,"?",Ce.glTypes,"[",Y,".type]:",Xr,".dtype;",Er.normalized,"=!!",Y,".normalized;");function Br(Tr){K(Er[Tr],"=",Y,".",Tr,"|0;")}return Br("size"),Br("offset"),Br("stride"),Br("divisor"),K("}}"),K.exit("if(",Er.isStream,"){",$r,".destroyStream(",Xr,");","}"),Er}Te[ce]=tt(se,te)}),Te}function Za(N){var U=N.static,$=N.dynamic,de={};return Object.keys(U).forEach(function(Te){var ce=U[Te];de[Te]=zr(function(se,te){return typeof ce=="number"||typeof ce=="boolean"?""+ce:se.link(ce)})}),Object.keys($).forEach(function(Te){var ce=$[Te];de[Te]=tt(ce,function(se,te){return se.invoke(te,ce)})}),de}function on(N,U,$,de,Te){var ce=N.static,se=N.dynamic,te=aa(N,U),W=ft(N,Te),K=St(N,W,Te),Y=Lt(N,Te),ve=nn(N,Te),Ce=Ma(N,Te,te);function $e(Br){var Tr=K[Br];Tr&&(ve[Br]=Tr)}$e(si),$e(dr(hl));var $r=Object.keys(ve).length>0,Er={framebuffer:W,draw:Y,shader:Ce,state:ve,dirty:$r,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Er.profile=st(N,Te),Er.uniforms=Ut($,Te),Er.drawVAO=Er.scopeVAO=Y.vao,!Er.drawVAO&&Ce.program&&!te&&V.angle_instanced_arrays&&Y.static.elements){var Ar=!0,Xr=Ce.program.attributes.map(function(Br){var Tr=U.static[Br];return Ar=Ar&&!!Tr,Tr});if(Ar&&Xr.length>0){var Gr=nr.getVAO(nr.createVAO({attributes:Xr,elements:Y.static.elements}));Er.drawVAO=new Le(null,null,null,function(Br,Tr){return Br.link(Gr)}),Er.useVAO=!0}}return te?Er.useVAO=!0:Er.attributes=Ya(U,Te),Er.context=Za(de,Te),Er}function ma(N,U,$){var de=N.shared,Te=de.context,ce=N.scope();Object.keys($).forEach(function(se){U.save(Te,"."+se);var te=$[se],W=te.append(N,U);Array.isArray(W)?ce(Te,".",se,"=[",W.join(),"];"):ce(Te,".",se,"=",W,";")}),U(ce)}function ya(N,U,$,de){var Te=N.shared,ce=Te.gl,se=Te.framebuffer,te;ze&&(te=U.def(Te.extensions,".webgl_draw_buffers"));var W=N.constants,K=W.drawBuffer,Y=W.backBuffer,ve;$?ve=$.append(N,U):ve=U.def(se,".next"),de||U("if(",ve,"!==",se,".cur){"),U("if(",ve,"){",ce,".bindFramebuffer(",ge,",",ve,".framebuffer);"),ze&&U(te,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ce,".bindFramebuffer(",ge,",null);"),ze&&U(te,".drawBuffersWEBGL(",Y,");"),U("}",se,".cur=",ve,";"),de||U("}")}function Sa(N,U,$){var de=N.shared,Te=de.gl,ce=N.current,se=N.next,te=de.current,W=de.next,K=N.cond(te,".dirty");Be.forEach(function(Y){var ve=dr(Y);if(!(ve in $.state)){var Ce,$e;if(ve in se){Ce=se[ve],$e=ce[ve];var $r=C(mr[ve].length,function(Ar){return K.def(Ce,"[",Ar,"]")});K(N.cond($r.map(function(Ar,Xr){return Ar+"!=="+$e+"["+Xr+"]"}).join("||")).then(Te,".",Mr[ve],"(",$r,");",$r.map(function(Ar,Xr){return $e+"["+Xr+"]="+Ar}).join(";"),";"))}else{Ce=K.def(W,".",ve);var Er=N.cond(Ce,"!==",te,".",ve);K(Er),ve in Re?Er(N.cond(Ce).then(Te,".enable(",Re[ve],");").else(Te,".disable(",Re[ve],");"),te,".",ve,"=",Ce,";"):Er(Te,".",Mr[ve],"(",Ce,");",te,".",ve,"=",Ce,";")}}}),Object.keys($.state).length===0&&K(te,".dirty=false;"),U(K)}function Tt(N,U,$,de){var Te=N.shared,ce=N.current,se=Te.current,te=Te.gl,W;tr(Object.keys($)).forEach(function(K){var Y=$[K];if(!(de&&!de(Y))){var ve=Y.append(N,U);if(Re[K]){var Ce=Re[K];Dr(Y)?(W=N.link(ve,{stable:!0}),U(N.cond(W).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(se,".",K,"=",W,";")):(U(N.cond(ve).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(se,".",K,"=",ve,";"))}else if(Si(ve)){var $e=ce[K];U(te,".",Mr[K],"(",ve,");",ve.map(function($r,Er){return $e+"["+Er+"]="+$r}).join(";"),";")}else Dr(Y)?(W=N.link(ve,{stable:!0}),U(te,".",Mr[K],"(",W,");",se,".",K,"=",W,";")):U(te,".",Mr[K],"(",ve,");",se,".",K,"=",ve,";")}})}function Ra(N,U){ar&&(N.instancing=U.def(N.shared.extensions,".angle_instanced_arrays"))}function Wt(N,U,$,de,Te){var ce=N.shared,se=N.stats,te=ce.current,W=ce.timer,K=$.profile;function Y(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function $e(Br){ve=U.def(),Br(ve,"=",Y(),";"),typeof Te=="string"?Br(se,".count+=",Te,";"):Br(se,".count++;"),br&&(de?(Ce=U.def(),Br(Ce,"=",W,".getNumPendingQueries();")):Br(W,".beginQuery(",se,");"))}function $r(Br){Br(se,".cpuTime+=",Y(),"-",ve,";"),br&&(de?Br(W,".pushScopeStats(",Ce,",",W,".getNumPendingQueries(),",se,");"):Br(W,".endQuery();"))}function Er(Br){var Tr=U.def(te,".profile");U(te,".profile=",Br,";"),U.exit(te,".profile=",Tr,";")}var Ar;if(K){if(Dr(K)){K.enable?($e(U),$r(U.exit),Er("true")):Er("false");return}Ar=K.append(N,U),Er(Ar)}else Ar=U.def(te,".profile");var Xr=N.block();$e(Xr),U("if(",Ar,"){",Xr,"}");var Gr=N.block();$r(Gr),U.exit("if(",Ar,"){",Gr,"}")}function Ja(N,U,$,de,Te){var ce=N.shared;function se(W){switch(W){case pl:case Il:case Ol:return 2;case an:case Ts:case _f:return 3;case xf:case du:case mu:return 4;default:return 1}}function te(W,K,Y){var ve=ce.gl,Ce=U.def(W,".location"),$e=U.def(ce.attributes,"[",Ce,"]"),$r=Y.state,Er=Y.buffer,Ar=[Y.x,Y.y,Y.z,Y.w],Xr=["buffer","normalized","offset","stride"];function Gr(){U("if(!",$e,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Tr=Y.type,Rr;if(Y.size?Rr=U.def(Y.size,"||",K):Rr=K,U("if(",$e,".type!==",Tr,"||",$e,".size!==",Rr,"||",Xr.map(function(ct){return $e+"."+ct+"!=="+Y[ct]}).join("||"),"){",ve,".bindBuffer(",vo,",",Er,".buffer);",ve,".vertexAttribPointer(",[Ce,Rr,Tr,Y.normalized,Y.stride,Y.offset],");",$e,".type=",Tr,";",$e,".size=",Rr,";",Xr.map(function(ct){return $e+"."+ct+"="+Y[ct]+";"}).join(""),"}"),ar){var Or=Y.divisor;U("if(",$e,".divisor!==",Or,"){",N.instancing,".vertexAttribDivisorANGLE(",[Ce,Or],");",$e,".divisor=",Or,";}")}}function Br(){U("if(",$e,".buffer){",ve,".disableVertexAttribArray(",Ce,");",$e,".buffer=null;","}if(",fo.map(function(Tr,Rr){return $e+"."+Tr+"!=="+Ar[Rr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Ar,");",fo.map(function(Tr,Rr){return $e+"."+Tr+"="+Ar[Rr]+";"}).join(""),"}")}$r===$i?Gr():$r===_s?Br():(U("if(",$r,"===",$i,"){"),Gr(),U("}else{"),Br(),U("}"))}de.forEach(function(W){var K=W.name,Y=$.attributes[K],ve;if(Y){if(!Te(Y))return;ve=Y.append(N,U)}else{if(!Te(mt))return;var Ce=N.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function($e){ve[$e]=U.def(Ce,".",$e)})}te(N.link(W),se(W.info.type),ve)})}function ln(N,U,$,de,Te,ce){for(var se=N.shared,te=se.gl,W,K=0;K1){for(var fn=[],Di=[],eo=0;eo>1)",Er],");")}function Or(){$(Ar,".drawArraysInstancedANGLE(",[Ce,$e,$r,Er],");")}Y&&Y!=="null"?Gr?Rr():($("if(",Y,"){"),Rr(),$("}else{"),Or(),$("}")):Or()}function Tr(){function Rr(){$(ce+".drawElements("+[Ce,$r,Xr,$e+"<<(("+Xr+"-"+uc+")>>1)"]+");")}function Or(){$(ce+".drawArrays("+[Ce,$e,$r]+");")}Y&&Y!=="null"?Gr?Rr():($("if(",Y,"){"),Rr(),$("}else{"),Or(),$("}")):Or()}ar&&(typeof Er!="number"||Er>=0)?typeof Er=="string"?($("if(",Er,">0){"),Br(),$("}else if(",Er,"<0){"),Tr(),$("}")):Br():Tr()}function dt(N,U,$,de,Te){var ce=kr(),se=ce.proc("body",Te);return ar&&(ce.instancing=se.def(ce.shared.extensions,".angle_instanced_arrays")),N(ce,se,$,de),ce.compile().body}function qt(N,U,$,de){Ra(N,U),$.useVAO?$.drawVAO?U(N.shared.vao,".setVAO(",$.drawVAO.append(N,U),");"):U(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(U(N.shared.vao,".setVAO(null);"),Ja(N,U,$,de.attributes,function(){return!0})),ln(N,U,$,de.uniforms,function(){return!0},!1),sn(N,U,U,$)}function Qt(N,U){var $=N.proc("draw",1);Ra(N,$),ma(N,$,U.context),ya(N,$,U.framebuffer),Sa(N,$,U),Tt(N,$,U.state),Wt(N,$,U,!1,!0);var de=U.shader.progVar.append(N,$);if($(N.shared.gl,".useProgram(",de,".program);"),U.shader.program)qt(N,$,U,U.shader.program);else{$(N.shared.vao,".setVAO(null);");var Te=N.global.def("{}"),ce=$.def(de,".id"),se=$.def(Te,"[",ce,"]");$(N.cond(se).then(se,".call(this,a0);").else(se,"=",Te,"[",ce,"]=",N.link(function(te){return dt(qt,N,U,te,1)}),"(",de,");",se,".call(this,a0);"))}Object.keys(U.state).length>0&&$(N.shared.current,".dirty=true;"),N.shared.vao&&$(N.shared.vao,".setVAO(null);")}function z(N,U,$,de){N.batchId="a1",Ra(N,U);function Te(){return!0}Ja(N,U,$,de.attributes,Te),ln(N,U,$,de.uniforms,Te,!1),sn(N,U,U,$)}function pe(N,U,$,de){Ra(N,U);var Te=$.contextDep,ce=U.def(),se="a0",te="a1",W=U.def();N.shared.props=W,N.batchId=ce;var K=N.scope(),Y=N.scope();U(K.entry,"for(",ce,"=0;",ce,"<",te,";++",ce,"){",W,"=",se,"[",ce,"];",Y,"}",K.exit);function ve(Xr){return Xr.contextDep&&Te||Xr.propDep}function Ce(Xr){return!ve(Xr)}if($.needsContext&&ma(N,Y,$.context),$.needsFramebuffer&&ya(N,Y,$.framebuffer),Tt(N,Y,$.state,ve),$.profile&&ve($.profile)&&Wt(N,Y,$,!1,!0),de)$.useVAO?$.drawVAO?ve($.drawVAO)?Y(N.shared.vao,".setVAO(",$.drawVAO.append(N,Y),");"):K(N.shared.vao,".setVAO(",$.drawVAO.append(N,K),");"):K(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(K(N.shared.vao,".setVAO(null);"),Ja(N,K,$,de.attributes,Ce),Ja(N,Y,$,de.attributes,ve)),ln(N,K,$,de.uniforms,Ce,!1),ln(N,Y,$,de.uniforms,ve,!0),sn(N,K,Y,$);else{var $e=N.global.def("{}"),$r=$.shader.progVar.append(N,Y),Er=Y.def($r,".id"),Ar=Y.def($e,"[",Er,"]");Y(N.shared.gl,".useProgram(",$r,".program);","if(!",Ar,"){",Ar,"=",$e,"[",Er,"]=",N.link(function(Xr){return dt(z,N,$,Xr,2)}),"(",$r,");}",Ar,".call(this,a0[",ce,"],",ce,");")}}function be(N,U){var $=N.proc("batch",2);N.batchId="0",Ra(N,$);var de=!1,Te=!0;Object.keys(U.context).forEach(function($e){de=de||U.context[$e].propDep}),de||(ma(N,$,U.context),Te=!1);var ce=U.framebuffer,se=!1;ce?(ce.propDep?de=se=!0:ce.contextDep&&de&&(se=!0),se||ya(N,$,ce)):ya(N,$,null),U.state.viewport&&U.state.viewport.propDep&&(de=!0);function te($e){return $e.contextDep&&de||$e.propDep}Sa(N,$,U),Tt(N,$,U.state,function($e){return!te($e)}),(!U.profile||!te(U.profile))&&Wt(N,$,U,!1,"a1"),U.contextDep=de,U.needsContext=Te,U.needsFramebuffer=se;var W=U.shader.progVar;if(W.contextDep&&de||W.propDep)pe(N,$,U,null);else{var K=W.append(N,$);if($(N.shared.gl,".useProgram(",K,".program);"),U.shader.program)pe(N,$,U,U.shader.program);else{$(N.shared.vao,".setVAO(null);");var Y=N.global.def("{}"),ve=$.def(K,".id"),Ce=$.def(Y,"[",ve,"]");$(N.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",Y,"[",ve,"]=",N.link(function($e){return dt(pe,N,U,$e,2)}),"(",K,");",Ce,".call(this,a0,a1);"))}}Object.keys(U.state).length>0&&$(N.shared.current,".dirty=true;"),N.shared.vao&&$(N.shared.vao,".setVAO(null);")}function Nr(N,U){var $=N.proc("scope",3);N.batchId="a2";var de=N.shared,Te=de.current;if(ma(N,$,U.context),U.framebuffer&&U.framebuffer.append(N,$),tr(Object.keys(U.state)).forEach(function(te){var W=U.state[te],K=W.append(N,$);Si(K)?K.forEach(function(Y,ve){Sr(Y)?$.set(N.next[te],"["+ve+"]",Y):$.set(N.next[te],"["+ve+"]",N.link(Y,{stable:!0}))}):Dr(W)?$.set(de.next,"."+te,N.link(K,{stable:!0})):$.set(de.next,"."+te,K)}),Wt(N,$,U,!0,!0),[uo,vu,qo,yi,Fo].forEach(function(te){var W=U.draw[te];if(W){var K=W.append(N,$);Sr(K)?$.set(de.draw,"."+te,K):$.set(de.draw,"."+te,N.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(te){var W=U.uniforms[te].append(N,$);Array.isArray(W)&&(W="["+W.map(function(K){return Sr(K)?K:N.link(K,{stable:!0})})+"]"),$.set(de.uniforms,"["+N.link(B.id(te),{stable:!0})+"]",W)}),Object.keys(U.attributes).forEach(function(te){var W=U.attributes[te].append(N,$),K=N.scopeAttrib(te);Object.keys(new ke).forEach(function(Y){$.set(K,"."+Y,W[Y])})}),U.scopeVAO){var ce=U.scopeVAO.append(N,$);Sr(ce)?$.set(de.vao,".targetVAO",ce):$.set(de.vao,".targetVAO",N.link(ce,{stable:!0}))}function se(te){var W=U.shader[te];if(W){var K=W.append(N,$);Sr(K)?$.set(de.shader,"."+te,K):$.set(de.shader,"."+te,N.link(K,{stable:!0}))}}se(Vo),se(dl),Object.keys(U.state).length>0&&($(Te,".dirty=true;"),$.exit(Te,".dirty=true;")),$("a1(",N.shared.context,",a0,",N.batchId,");")}function Dt(N){if(!(typeof N!="object"||Si(N))){for(var U=Object.keys(N),$=0;$=0;--dt){var qt=jr[dt];qt&&qt(Ne,null,0)}V.flush(),lr&&lr.update()}function St(){!st&&jr.length>0&&(st=d.next(ft))}function aa(){st&&(d.cancel(ft),st=null)}function Ma(dt){dt.preventDefault(),xe=!0,aa(),ut.forEach(function(qt){qt()})}function Lt(dt){V.getError(),xe=!1,we.restore(),Wr.restore(),ar.restore(),Be.restore(),Re.restore(),Mr.restore(),xr.restore(),lr&&lr.restore(),dr.procs.refresh(),St(),gr.forEach(function(qt){qt()})}Sr&&(Sr.addEventListener(jt,Ma,!1),Sr.addEventListener(ca,Lt,!1));function nn(){jr.length=0,aa(),Sr&&(Sr.removeEventListener(jt,Ma),Sr.removeEventListener(ca,Lt)),Wr.clear(),Mr.clear(),Re.clear(),xr.clear(),Be.clear(),ze.clear(),ar.clear(),lr&&lr.clear(),kr.forEach(function(dt){dt()})}function Ut(dt){function qt(ce){var se=e({},ce);delete se.uniforms,delete se.attributes,delete se.context,delete se.vao,"stencil"in se&&se.stencil.op&&(se.stencil.opBack=se.stencil.opFront=se.stencil.op,delete se.stencil.op);function te(W){if(W in se){var K=se[W];delete se[W],Object.keys(K).forEach(function(Y){se[W+"."+Y]=K[Y]})}}return te("blend"),te("depth"),te("cull"),te("stencil"),te("polygonOffset"),te("scissor"),te("sample"),"vao"in ce&&(se.vao=ce.vao),se}function Qt(ce,se){var te={},W={};return Object.keys(ce).forEach(function(K){var Y=ce[K];if(v.isDynamic(Y)){W[K]=v.unbox(Y,K);return}else if(se&&Array.isArray(Y)){for(var ve=0;ve0)return N.call(this,de(ce|0),ce|0)}else if(Array.isArray(ce)){if(ce.length)return N.call(this,ce,ce.length)}else return qr.call(this,ce)}return e(Te,{stats:Dt,destroy:function(){Ht.destroy()}})}var Ya=Mr.setFBO=Ut({framebuffer:v.define.call(null,Xa,"framebuffer")});function Za(dt,qt){var Qt=0;dr.procs.poll();var z=qt.color;z&&(V.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=xn),"depth"in qt&&(V.clearDepth(+qt.depth),Qt|=Da),"stencil"in qt&&(V.clearStencil(qt.stencil|0),Qt|=ht),V.clear(Qt)}function on(dt){if("framebuffer"in dt)if(dt.framebuffer&&dt.framebuffer_reglType==="framebufferCube")for(var qt=0;qt<6;++qt)Ya(e({framebuffer:dt.framebuffer.faces[qt]},dt),Za);else Ya(dt,Za);else Za(null,dt)}function ma(dt){jr.push(dt);function qt(){var Qt=Qn(jr,dt);function z(){var pe=Qn(jr,z);jr[pe]=jr[jr.length-1],jr.length-=1,jr.length<=0&&aa()}jr[Qt]=z}return St(),{cancel:qt}}function ya(){var dt=ur.viewport,qt=ur.scissor_box;dt[0]=dt[1]=qt[0]=qt[1]=0,Ne.viewportWidth=Ne.framebufferWidth=Ne.drawingBufferWidth=dt[2]=qt[2]=V.drawingBufferWidth,Ne.viewportHeight=Ne.framebufferHeight=Ne.drawingBufferHeight=dt[3]=qt[3]=V.drawingBufferHeight}function Sa(){Ne.tick+=1,Ne.time=Ra(),ya(),dr.procs.poll()}function Tt(){Be.refresh(),ya(),dr.procs.refresh(),lr&&lr.update()}function Ra(){return(p()-Zr)/1e3}Tt();function Wt(dt,qt){var Qt;switch(dt){case"frame":return ma(qt);case"lost":Qt=ut;break;case"restore":Qt=gr;break;case"destroy":Qt=kr;break;default:}return Qt.push(qt),{cancel:function(){for(var z=0;z=0},read:fr,destroy:nn,_gl:V,_refresh:Tt,poll:function(){Sa(),lr&&lr.update()},now:Ra,stats:Ye,getCachedCode:Ja,preloadCachedCode:ln});return B.onDone(null,sn),sn}return Li})});var See=P((EIe,Mee)=>{"use strict";var o7e=If();Mee.exports=function(r){if(r?typeof r=="string"&&(r={container:r}):r={},Aee(r)?r={container:r}:l7e(r)?r={container:r}:s7e(r)?r={gl:r}:r=o7e(r,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),r.pixelRatio||(r.pixelRatio=window.pixelRatio||1),r.gl)return r.gl;if(r.canvas&&(r.container=r.canvas.parentNode),r.container){if(typeof r.container=="string"){var t=document.querySelector(r.container);if(!t)throw Error("Element "+r.container+" is not found");r.container=t}Aee(r.container)?(r.canvas=r.container,r.container=r.canvas.parentNode):r.canvas||(r.canvas=Tee(),r.container.appendChild(r.canvas),wee(r))}else if(!r.canvas)if(typeof document!="undefined")r.container=document.body||document.documentElement,r.canvas=Tee(),r.container.appendChild(r.canvas),wee(r);else throw Error("Not DOM environment. Use headless-gl.");return r.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(a){try{r.gl=r.canvas.getContext(a,r.attrs)}catch(n){}return r.gl}),r.gl};function wee(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var r=e.container.getBoundingClientRect();e.canvas.width=e.width||r.right-r.left,e.canvas.height=e.height||r.bottom-r.top}}function Aee(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function l7e(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function s7e(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Tee(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var kee=P((kIe,Eee)=>{"use strict";var f7e=J7(),u7e=[32,126];Eee.exports=c7e;function c7e(e){e=e||{};var r=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],t=e.canvas||document.createElement("canvas"),a=e.font,n=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],i=e.chars||u7e;if(a&&typeof a!="string"&&(a=f7e(a)),!Array.isArray(i))i=String(i).split("");else if(i.length===2&&typeof i[0]=="number"&&typeof i[1]=="number"){for(var o=[],l=i[0],s=0;l<=i[1];l++)o[s++]=String.fromCharCode(l);i=o}r=r.slice(),t.width=r[0],t.height=r[1];var f=t.getContext("2d");f.fillStyle="#000",f.fillRect(0,0,t.width,t.height),f.font=a,f.textAlign="center",f.textBaseline="middle",f.fillStyle="#fff";for(var u=n[0]/2,c=n[1]/2,l=0;lr[0]-n[0]/2&&(u=n[0]/2,c+=n[1]);return t}});var e9=P(oi=>{"use strict";"use restrict";var K7=32;oi.INT_BITS=K7;oi.INT_MAX=2147483647;oi.INT_MIN=-1<0)-(e<0)};oi.abs=function(e){var r=e>>K7-1;return(e^r)-r};oi.min=function(e,r){return r^(e^r)&-(e65535)<<4,e>>>=r,t=(e>255)<<3,e>>>=t,r|=t,t=(e>15)<<2,e>>>=t,r|=t,t=(e>3)<<1,e>>>=t,r|=t,r|e>>1};oi.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};oi.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function Cee(e){var r=32;return e&=-e,e&&r--,e&65535&&(r-=16),e&16711935&&(r-=8),e&252645135&&(r-=4),e&858993459&&(r-=2),e&1431655765&&(r-=1),r}oi.countTrailingZeros=Cee;oi.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};oi.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};oi.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var lg=new Array(256);(function(e){for(var r=0;r<256;++r){var t=r,a=r,n=7;for(t>>>=1;t;t>>>=1)a<<=1,a|=t&1,--n;e[r]=a<>>8&255]<<16|lg[e>>>16&255]<<8|lg[e>>>24&255]};oi.interleave2=function(e,r){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r&=65535,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1};oi.deinterleave2=function(e,r){return e=e>>>r&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};oi.interleave3=function(e,r,t){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|=r<<1,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|t<<2};oi.deinterleave3=function(e,r){return e=e>>>r&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};oi.nextCombination=function(e){var r=e|e-1;return r+1|(~r&-~r)-1>>>Cee(e)+1}});var Fee=P((LIe,Dee)=>{"use strict";function Lee(e,r,t){var a=e[t]|0;if(a<=0)return[];var n=new Array(a),i;if(t===e.length-1)for(i=0;i0)return v7e(e|0,r);break;case"object":if(typeof e.length=="number")return Lee(e,r,0);break}return[]}Dee.exports=h7e});var Pee=P(P_=>{"use strict";P_.byteLength=p7e;P_.toByteArray=y7e;P_.fromByteArray=x7e;var Bf=[],os=[],d7e=typeof Uint8Array!="undefined"?Uint8Array:Array,r9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(mh=0,qee=r9.length;mh0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function p7e(e){var r=Ree(e),t=r[0],a=r[1];return(t+a)*3/4-a}function m7e(e,r,t){return(r+t)*3/4-t}function y7e(e){var r,t=Ree(e),a=t[0],n=t[1],i=new d7e(m7e(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=os[e.charCodeAt(s)]<<2|os[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=os[e.charCodeAt(s)]<<10|os[e.charCodeAt(s+1)]<<4|os[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function g7e(e){return Bf[e>>18&63]+Bf[e>>12&63]+Bf[e>>6&63]+Bf[e&63]}function b7e(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(Bf[r>>2]+Bf[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Bf[r>>10]+Bf[r>>4&63]+Bf[r<<2&63]+"=")),n.join("")}});var Nee=P(t9=>{t9.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,u=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-u)-1,d>>=-u,u+=l;u>0;i=i*256+e[r+c],c+=v,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=a;u>0;o=o*256+e[r+c],c+=v,u-=8);if(i===0)i=1-f;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-f}return(d?-1:1)*o*Math.pow(2,i-a)};t9.write=function(e,r,t,a,n,i){var o,l,s,f=i*8-n-1,u=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,y=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=u):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=u?(l=0,o=u):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,f-=8);e[t+d-p]|=y*128}});var Kee=P(zp=>{"use strict";var a9=Pee(),Op=Nee(),Iee=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;zp.Buffer=Kr;zp.SlowBuffer=S7e;zp.INSPECT_MAX_BYTES=50;var N_=2147483647;zp.kMaxLength=N_;Kr.TYPED_ARRAY_SUPPORT=_7e();!Kr.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function _7e(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(Kr.prototype,"parent",{enumerable:!0,get:function(){if(Kr.isBuffer(this))return this.buffer}});Object.defineProperty(Kr.prototype,"offset",{enumerable:!0,get:function(){if(Kr.isBuffer(this))return this.byteOffset}});function Vu(e){if(e>N_)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,Kr.prototype),r}function Kr(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return l9(e)}return Gee(e,r,t)}Kr.poolSize=8192;function Gee(e,r,t){if(typeof e=="string")return A7e(e,r);if(ArrayBuffer.isView(e))return T7e(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(zf(e,ArrayBuffer)||e&&zf(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(zf(e,SharedArrayBuffer)||e&&zf(e.buffer,SharedArrayBuffer)))return i9(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return Kr.from(a,r,t);let n=M7e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Kr.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Kr.from=function(e,r,t){return Gee(e,r,t)};Object.setPrototypeOf(Kr.prototype,Uint8Array.prototype);Object.setPrototypeOf(Kr,Uint8Array);function Uee(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function w7e(e,r,t){return Uee(e),e<=0?Vu(e):r!==void 0?typeof t=="string"?Vu(e).fill(r,t):Vu(e).fill(r):Vu(e)}Kr.alloc=function(e,r,t){return w7e(e,r,t)};function l9(e){return Uee(e),Vu(e<0?0:s9(e)|0)}Kr.allocUnsafe=function(e){return l9(e)};Kr.allocUnsafeSlow=function(e){return l9(e)};function A7e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Kr.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=Hee(e,r)|0,a=Vu(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function n9(e){let r=e.length<0?0:s9(e.length)|0,t=Vu(r);for(let a=0;a=N_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N_.toString(16)+" bytes");return e|0}function S7e(e){return+e!=e&&(e=0),Kr.alloc(+e)}Kr.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==Kr.prototype};Kr.compare=function(r,t){if(zf(r,Uint8Array)&&(r=Kr.from(r,r.offset,r.byteLength)),zf(t,Uint8Array)&&(t=Kr.from(t,t.offset,t.byteLength)),!Kr.isBuffer(r)||!Kr.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(Kr.isBuffer(o)||(o=Kr.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(Kr.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function Hee(e,r){if(Kr.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||zf(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return o9(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Qee(e).length;default:if(n)return a?-1:o9(e).length;r=(""+r).toLowerCase(),n=!0}}Kr.byteLength=Hee;function E7e(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return I7e(this,r,t);case"utf8":case"utf-8":return Yee(this,r,t);case"ascii":return P7e(this,r,t);case"latin1":case"binary":return N7e(this,r,t);case"base64":return q7e(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O7e(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}Kr.prototype._isBuffer=!0;function yh(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}Kr.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};Iee&&(Kr.prototype[Iee]=Kr.prototype.inspect);Kr.prototype.compare=function(r,t,a,n,i){if(zf(r,Uint8Array)&&(r=Kr.from(r,r.offset,r.byteLength)),!Kr.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),f=this.slice(n,i),u=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,u9(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=Kr.from(r,a)),Kr.isBuffer(r))return r.length===0?-1:Oee(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Oee(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function Oee(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(u,c){return i===1?u[c]:u.readUInt16BE(c*i)}let f;if(n){let u=-1;for(f=t;fo&&(t=o-l),f=t;f>=0;f--){let u=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return k7e(this,r,t,a);case"utf8":case"utf-8":return C7e(this,r,t,a);case"ascii":case"latin1":case"binary":return L7e(this,r,t,a);case"base64":return D7e(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F7e(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};Kr.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function q7e(e,r,t){return r===0&&t===e.length?a9.fromByteArray(e):a9.fromByteArray(e.slice(r,t))}function Yee(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,f,u,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],f=e[n+2],(s&192)===128&&(f&192)===128&&(c=(i&15)<<12|(s&63)<<6|f&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],f=e[n+2],u=e[n+3],(s&192)===128&&(f&192)===128&&(u&192)===128&&(c=(i&15)<<18|(s&63)<<12|(f&63)<<6|u&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return R7e(a)}var Bee=4096;function R7e(e){let r=e.length;if(r<=Bee)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}Kr.prototype.readUintLE=Kr.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||Yi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Yi(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};Kr.prototype.readUint8=Kr.prototype.readUInt8=function(r,t){return r=r>>>0,t||Yi(r,1,this.length),this[r]};Kr.prototype.readUint16LE=Kr.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Yi(r,2,this.length),this[r]|this[r+1]<<8};Kr.prototype.readUint16BE=Kr.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Yi(r,2,this.length),this[r]<<8|this[r+1]};Kr.prototype.readUint32LE=Kr.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Yi(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};Kr.prototype.readUint32BE=Kr.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||Yi(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};Kr.prototype.readBigUInt64LE=yv(function(r){r=r>>>0,Bp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&sg(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,Bp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&sg(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||Yi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};Kr.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Yi(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};Kr.prototype.readInt8=function(r,t){return r=r>>>0,t||Yi(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};Kr.prototype.readInt16LE=function(r,t){r=r>>>0,t||Yi(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};Kr.prototype.readInt16BE=function(r,t){r=r>>>0,t||Yi(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};Kr.prototype.readInt32LE=function(r,t){return r=r>>>0,t||Yi(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};Kr.prototype.readInt32BE=function(r,t){return r=r>>>0,t||Yi(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};Kr.prototype.readBigInt64LE=yv(function(r){r=r>>>0,Bp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&sg(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,Bp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&sg(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||Yi(r,4,this.length),Op.read(this,r,!0,23,4)};Kr.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Yi(r,4,this.length),Op.read(this,r,!1,23,4)};Kr.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Yi(r,8,this.length),Op.read(this,r,!0,52,8)};Kr.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Yi(r,8,this.length),Op.read(this,r,!1,52,8)};function nl(e,r,t,a,n,i){if(!Kr.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}Kr.prototype.writeUintLE=Kr.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;nl(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;nl(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};Kr.prototype.writeUint8=Kr.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,1,255,0),this[t]=r&255,t+1};Kr.prototype.writeUint16LE=Kr.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};Kr.prototype.writeUint16BE=Kr.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};Kr.prototype.writeUint32LE=Kr.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};Kr.prototype.writeUint32BE=Kr.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function Wee(e,r,t,a,n){$ee(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function jee(e,r,t,a,n){$ee(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}Kr.prototype.writeBigUInt64LE=yv(function(r,t=0){return Wee(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});Kr.prototype.writeBigUInt64BE=yv(function(r,t=0){return jee(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});Kr.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);nl(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};Kr.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);nl(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};Kr.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};Kr.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};Kr.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};Kr.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};Kr.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};Kr.prototype.writeBigInt64LE=yv(function(r,t=0){return Wee(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Kr.prototype.writeBigInt64BE=yv(function(r,t=0){return jee(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Xee(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Zee(e,r,t,a,n){return r=+r,t=t>>>0,n||Xee(e,r,t,4,34028234663852886e22,-34028234663852886e22),Op.write(e,r,t,a,23,4),t+4}Kr.prototype.writeFloatLE=function(r,t,a){return Zee(this,r,t,!0,a)};Kr.prototype.writeFloatBE=function(r,t,a){return Zee(this,r,t,!1,a)};function Jee(e,r,t,a,n){return r=+r,t=t>>>0,n||Xee(e,r,t,8,17976931348623157e292,-17976931348623157e292),Op.write(e,r,t,a,52,8),t+8}Kr.prototype.writeDoubleLE=function(r,t,a){return Jee(this,r,t,!0,a)};Kr.prototype.writeDoubleBE=function(r,t,a){return Jee(this,r,t,!1,a)};Kr.prototype.copy=function(r,t,a,n){if(!Kr.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=zee(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=zee(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function zee(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function B7e(e,r,t){Bp(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&sg(r,e.length-(t+1))}function $ee(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new Ip.ERR_OUT_OF_RANGE("value",l,e)}B7e(a,n,i)}function Bp(e,r){if(typeof e!="number")throw new Ip.ERR_INVALID_ARG_TYPE(r,"number",e)}function sg(e,r,t){throw Math.floor(e)!==e?(Bp(e,t),new Ip.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new Ip.ERR_BUFFER_OUT_OF_BOUNDS:new Ip.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var z7e=/[^+/0-9A-Za-z-_]/g;function G7e(e){if(e=e.split("=")[0],e=e.trim().replace(z7e,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function o9(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function U7e(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function Qee(e){return a9.toByteArray(G7e(e))}function I_(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function zf(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function u9(e){return e!==e}var V7e=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r}();function yv(e){return typeof BigInt=="undefined"?Y7e:e}function Y7e(){throw new Error("BigInt not supported")}});var dre=P(Oa=>{"use strict";var gv=e9(),oo=Fee(),ere=Kee().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:oo([32,0]),UINT16:oo([32,0]),UINT32:oo([32,0]),BIGUINT64:oo([32,0]),INT8:oo([32,0]),INT16:oo([32,0]),INT32:oo([32,0]),BIGINT64:oo([32,0]),FLOAT:oo([32,0]),DOUBLE:oo([32,0]),DATA:oo([32,0]),UINT8C:oo([32,0]),BUFFER:oo([32,0])});var W7e=typeof Uint8ClampedArray!="undefined",j7e=typeof BigUint64Array!="undefined",X7e=typeof BigInt64Array!="undefined",vi=window.__TYPEDARRAY_POOL;vi.UINT8C||(vi.UINT8C=oo([32,0]));vi.BIGUINT64||(vi.BIGUINT64=oo([32,0]));vi.BIGINT64||(vi.BIGINT64=oo([32,0]));vi.BUFFER||(vi.BUFFER=oo([32,0]));var O_=vi.DATA,B_=vi.BUFFER;Oa.free=function(r){if(ere.isBuffer(r))B_[gv.log2(r.length)].push(r);else{if(Object.prototype.toString.call(r)!=="[object ArrayBuffer]"&&(r=r.buffer),!r)return;var t=r.length||r.byteLength,a=gv.log2(t)|0;O_[a].push(r)}};function rre(e){if(e){var r=e.length||e.byteLength,t=gv.log2(r);O_[t].push(e)}}function Z7e(e){rre(e.buffer)}Oa.freeUint8=Oa.freeUint16=Oa.freeUint32=Oa.freeBigUint64=Oa.freeInt8=Oa.freeInt16=Oa.freeInt32=Oa.freeBigInt64=Oa.freeFloat32=Oa.freeFloat=Oa.freeFloat64=Oa.freeDouble=Oa.freeUint8Clamped=Oa.freeDataView=Z7e;Oa.freeArrayBuffer=rre;Oa.freeBuffer=function(r){B_[gv.log2(r.length)].push(r)};Oa.malloc=function(r,t){if(t===void 0||t==="arraybuffer")return il(r);switch(t){case"uint8":return c9(r);case"uint16":return tre(r);case"uint32":return are(r);case"int8":return nre(r);case"int16":return ire(r);case"int32":return ore(r);case"float":case"float32":return lre(r);case"double":case"float64":return sre(r);case"uint8_clamped":return fre(r);case"bigint64":return cre(r);case"biguint64":return ure(r);case"buffer":return hre(r);case"data":case"dataview":return vre(r);default:return null}return null};function il(r){var r=gv.nextPow2(r),t=gv.log2(r),a=O_[t];return a.length>0?a.pop():new ArrayBuffer(r)}Oa.mallocArrayBuffer=il;function c9(e){return new Uint8Array(il(e),0,e)}Oa.mallocUint8=c9;function tre(e){return new Uint16Array(il(2*e),0,e)}Oa.mallocUint16=tre;function are(e){return new Uint32Array(il(4*e),0,e)}Oa.mallocUint32=are;function nre(e){return new Int8Array(il(e),0,e)}Oa.mallocInt8=nre;function ire(e){return new Int16Array(il(2*e),0,e)}Oa.mallocInt16=ire;function ore(e){return new Int32Array(il(4*e),0,e)}Oa.mallocInt32=ore;function lre(e){return new Float32Array(il(4*e),0,e)}Oa.mallocFloat32=Oa.mallocFloat=lre;function sre(e){return new Float64Array(il(8*e),0,e)}Oa.mallocFloat64=Oa.mallocDouble=sre;function fre(e){return W7e?new Uint8ClampedArray(il(e),0,e):c9(e)}Oa.mallocUint8Clamped=fre;function ure(e){return j7e?new BigUint64Array(il(8*e),0,e):null}Oa.mallocBigUint64=ure;function cre(e){return X7e?new BigInt64Array(il(8*e),0,e):null}Oa.mallocBigInt64=cre;function vre(e){return new DataView(il(e),0,e)}Oa.mallocDataView=vre;function hre(e){e=gv.nextPow2(e);var r=gv.log2(e),t=B_[r];return t.length>0?t.pop():new ere(e)}Oa.mallocBuffer=hre;Oa.clearCache=function(){for(var r=0;r<32;++r)vi.UINT8[r].length=0,vi.UINT16[r].length=0,vi.UINT32[r].length=0,vi.INT8[r].length=0,vi.INT16[r].length=0,vi.INT32[r].length=0,vi.FLOAT[r].length=0,vi.DOUBLE[r].length=0,vi.BIGUINT64[r].length=0,vi.BIGINT64[r].length=0,vi.UINT8C[r].length=0,O_[r].length=0,B_[r].length=0}});var mre=P((NIe,pre)=>{"use strict";var J7e=Object.prototype.toString;pre.exports=function(e){var r;return J7e.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))}});var v9=P((IIe,yre)=>{yre.exports=function(r,t){t||(t=[0,""]),r=String(r);var a=parseFloat(r,10);return t[0]=a,t[1]=r.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t}});var xre=P((OIe,bre)=>{"use strict";var $7e=v9();bre.exports=gre;var fg=96;function h9(e,r){var t=$7e(getComputedStyle(e).getPropertyValue(r));return t[0]*gre(t[1],e)}function Q7e(e,r){var t=document.createElement("div");t.style["font-size"]="128"+e,r.appendChild(t);var a=h9(t,"font-size")/128;return r.removeChild(t),a}function gre(e,r){switch(r=r||document.body,e=(e||"px").trim().toLowerCase(),(r===window||r===document)&&(r=document.body),e){case"%":return r.clientHeight/100;case"ch":case"ex":return Q7e(e,r);case"em":return h9(r,"font-size");case"rem":return h9(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return fg;case"cm":return fg/2.54;case"mm":return fg/25.4;case"pt":return fg/72;case"pc":return fg/6}return 1}});var Are=P((BIe,wre)=>{"use strict";wre.exports=U_;var K7e=U_.canvas=document.createElement("canvas"),z_=K7e.getContext("2d"),_re=G_([32,126]);U_.createPairs=G_;U_.ascii=_re;function U_(e,r){Array.isArray(e)&&(e=e.join(", "));var t={},a,n=16,i=.05;r&&(r.length===2&&typeof r[0]=="number"?a=G_(r):Array.isArray(r)?a=r:(r.o?a=G_(r.o):r.pairs&&(a=r.pairs),r.fontSize&&(n=r.fontSize),r.threshold!=null&&(i=r.threshold))),a||(a=_re),z_.font=n+"px "+e;for(var o=0;on*i){var u=(f-s)/n;t[l]=u*1e3}}return t}function G_(e){for(var r=[],t=e[0];t<=e[1];t++)for(var a=String.fromCharCode(t),n=e[0];n{"use strict";Sre.exports=bv;bv.canvas=document.createElement("canvas");bv.cache={};function bv(o,r){r||(r={}),(typeof o=="string"||Array.isArray(o))&&(r.family=o);var t=Array.isArray(r.family)?r.family.join(", "):r.family;if(!t)throw Error("`family` must be defined");var a=r.size||r.fontSize||r.em||48,n=r.weight||r.fontWeight||"",i=r.style||r.fontStyle||"",o=[i,n,a].join(" ")+"px "+t,l=r.origin||"top";if(bv.cache[t]&&a<=bv.cache[t].em)return Tre(bv.cache[t],l);var s=r.canvas||bv.canvas,f=s.getContext("2d"),u={upper:r.upper!==void 0?r.upper:"H",lower:r.lower!==void 0?r.lower:"x",descent:r.descent!==void 0?r.descent:"p",ascent:r.ascent!==void 0?r.ascent:"h",tittle:r.tittle!==void 0?r.tittle:"i",overshoot:r.overshoot!==void 0?r.overshoot:"O"},c=Math.ceil(a*1.5);s.height=c,s.width=c*.5,f.font=o;var v="H",d={top:0};f.clearRect(0,0,c,c),f.textBaseline="top",f.fillStyle="black",f.fillText(v,0,0);var p=Gf(f.getImageData(0,0,c,c));f.clearRect(0,0,c,c),f.textBaseline="bottom",f.fillText(v,0,c);var y=Gf(f.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-y+p,f.clearRect(0,0,c,c),f.textBaseline="alphabetic",f.fillText(v,0,c);var m=Gf(f.getImageData(0,0,c,c)),b=c-m-1+p;d.baseline=d.alphabetic=b,f.clearRect(0,0,c,c),f.textBaseline="middle",f.fillText(v,0,c*.5);var A=Gf(f.getImageData(0,0,c,c));d.median=d.middle=c-A-1+p-c*.5,f.clearRect(0,0,c,c),f.textBaseline="hanging",f.fillText(v,0,c*.5);var _=Gf(f.getImageData(0,0,c,c));d.hanging=c-_-1+p-c*.5,f.clearRect(0,0,c,c),f.textBaseline="ideographic",f.fillText(v,0,c);var x=Gf(f.getImageData(0,0,c,c));if(d.ideographic=c-x-1+p,u.upper&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.upper,0,0),d.upper=Gf(f.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),u.lower&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.lower,0,0),d.lower=Gf(f.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),u.tittle&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.tittle,0,0),d.tittle=Gf(f.getImageData(0,0,c,c))),u.ascent&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.ascent,0,0),d.ascent=Gf(f.getImageData(0,0,c,c))),u.descent&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.descent,0,0),d.descent=Mre(f.getImageData(0,0,c,c))),u.overshoot){f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.overshoot,0,0);var T=Mre(f.getImageData(0,0,c,c));d.overshoot=T-b}for(var E in d)d[E]/=a;return d.em=a,bv.cache[t]=d,Tre(d,l)}function Tre(e,r){var t={};typeof r=="string"&&(r=e[r]);for(var a in e)a!=="em"&&(t[a]=e[a]-r);return t}function Gf(e){for(var r=e.height,t=e.data,a=3;a0;a-=4)if(t[a]!==0)return Math.floor((a-3)*.25/r)}});var Dre=P((GIe,Lre)=>{"use strict";var Gp=xee(),e9e=If(),r9e=_ee(),t9e=See(),a9e=N7(),d9=uh(),n9e=kee(),xv=dre(),i9e=cp(),o9e=mre(),l9e=v9(),s9e=xre(),f9e=Are(),u9e=ni(),c9e=Ere(),v9e=ah(),h9e=e9(),kre=h9e.nextPow2,Cre=new a9e,V_=!1;document.body&&(H_=document.body.appendChild(document.createElement("div")),H_.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(H_).fontStretch&&(V_=!0),document.body.removeChild(H_));var H_,Ka=function(r){d9e(r)?(r={regl:r},this.gl=r.regl._gl):this.gl=t9e(r),this.shader=Cre.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=r.regl||r9e({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),Cre.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(o9e(r)?r:{})};Ka.prototype.createShader=function(){var r=this.regl,t=r({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:r.prop("count"),offset:r.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:r.this("sizeBuffer")},width:{offset:0,stride:8,buffer:r.this("sizeBuffer")},char:r.this("charBuffer"),position:r.this("position")},uniforms:{atlasSize:function(n,i){return[i.atlas.width,i.atlas.height]},atlasDim:function(n,i){return[i.atlas.cols,i.atlas.rows]},atlas:function(n,i){return i.atlas.texture},charStep:function(n,i){return i.atlas.step},em:function(n,i){return i.atlas.em},color:r.prop("color"),opacity:r.prop("opacity"),viewport:r.this("viewportArray"),scale:r.this("scale"),align:r.prop("align"),baseline:r.prop("baseline"),translate:r.this("translate"),positionOffset:r.prop("positionOffset")},primitive:"points",viewport:r.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -783,12 +783,12 @@ void main() { // color.rgb += (1. - color.rgb) * (1. - mask.rgb); gl_FragColor = color; - }`}),a={};return{regl:r,draw:t,atlas:a}};Ka.prototype.update=function(r){var t=this;if(typeof r=="string")r={text:r};else if(!r)return;r=$7e(r,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),r.opacity!=null&&(Array.isArray(r.opacity)?this.opacity=r.opacity.map(function(Ee){return parseFloat(Ee)}):this.opacity=parseFloat(r.opacity)),r.viewport!=null&&(this.viewport=t9e(r.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),r.kerning!=null&&(this.kerning=r.kerning),r.offset!=null&&(typeof r.offset=="number"&&(r.offset=[r.offset,0]),this.positionOffset=f9e(r.offset)),r.direction&&(this.direction=r.direction),r.range&&(this.range=r.range,this.scale=[1/(r.range[2]-r.range[0]),1/(r.range[3]-r.range[1])],this.translate=[-r.range[0],-r.range[1]]),r.scale&&(this.scale=r.scale),r.translate&&(this.translate=r.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!r.font&&(r.font=Ka.baseFontSize+"px sans-serif");var a=!1,n=!1;if(r.font&&(Array.isArray(r.font)?r.font:[r.font]).forEach(function(Ee,Ze){if(typeof Ee=="string")try{Ee=z1.parse(Ee)}catch(Ye){Ee=z1.parse(Ka.baseFontSize+"px "+Ee)}else{var Ae=Ee.style,ir=Ee.weight,Ge=Ee.stretch,Qe=Ee.variant;Ee=z1.parse(z1.stringify(Ee)),Ae&&(Ee.style=Ae),ir&&(Ee.weight=ir),Ge&&(Ee.stretch=Ge),Qe&&(Ee.variant=Qe)}var He=z1.stringify({size:Ka.baseFontSize,family:Ee.family,stretch:V_?Ee.stretch:void 0,variant:Ee.variant,weight:Ee.weight,style:Ee.style}),Ve=n9e(Ee.size),ee=Math.round(Ve[0]*i9e(Ve[1]));if(ee!==t.fontSize[Ze]&&(n=!0,t.fontSize[Ze]=ee),(!t.font[Ze]||He!=t.font[Ze].baseString)&&(a=!0,t.font[Ze]=Ka.fonts[He],!t.font[Ze])){var ge=Ee.family.join(", "),re=[Ee.style];Ee.style!=Ee.variant&&re.push(Ee.variant),Ee.variant!=Ee.weight&&re.push(Ee.weight),V_&&Ee.weight!=Ee.stretch&&re.push(Ee.stretch),t.font[Ze]={baseString:He,family:ge,weight:Ee.weight,stretch:Ee.stretch,style:Ee.style,variant:Ee.variant,width:{},kerning:{},metrics:s9e(ge,{origin:"top",fontSize:Ka.baseFontSize,fontStyle:re.join(" ")})},Ka.fonts[He]=t.font[Ze]}}),(a||n)&&this.font.forEach(function(Ee,Ze){var Ae=z1.stringify({size:t.fontSize[Ze],family:Ee.family,stretch:V_?Ee.stretch:void 0,variant:Ee.variant,weight:Ee.weight,style:Ee.style});if(t.fontAtlas[Ze]=t.shader.atlas[Ae],!t.fontAtlas[Ze]){var ir=Ee.metrics;t.shader.atlas[Ae]=t.fontAtlas[Ze]={fontString:Ae,step:Math.ceil(t.fontSize[Ze]*ir.bottom*.5)*2,em:t.fontSize[Ze],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:t.regl.texture()}}r.text==null&&(r.text=t.text)}),typeof r.text=="string"&&r.position&&r.position.length>2){for(var i=Array(r.position.length*.5),o=0;o2){for(var f=!r.position[0].length,u=xv.mallocFloat(this.count*2),c=0,v=0;c1?t.align[Ze]:t.align[0]:t.align;if(typeof Ae=="number")return Ae;switch(Ae){case"right":case"end":return-Ee;case"center":case"centre":case"middle":return-Ee*.5}return 0})),this.baseline==null&&r.baseline==null&&(r.baseline=0),r.baseline!=null&&(this.baseline=r.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ee,Ze){var Ae=(t.font[Ze]||t.font[0]).metrics,ir=0;return ir+=Ae.bottom*.5,typeof Ee=="number"?ir+=Ee-Ae.baseline:ir+=-Ae[Ee],ir*=-1,ir})),r.color!=null)if(r.color||(r.color="transparent"),typeof r.color=="string"||!isNaN(r.color))this.color=d9(r.color,"uint8");else{var le;if(typeof r.color[0]=="number"&&r.color.length>this.counts.length){var ae=r.color.length;le=xv.mallocUint8(ae);for(var $=(r.color.subarray||r.color.slice).bind(r.color),Z=0;Z4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(ue){var De=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(De);for(var Oe=0;Oe1?this.counts[Oe]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Oe]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Oe*4,Oe*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Oe]:this.opacity,baseline:this.baselineOffset[Oe]!=null?this.baselineOffset[Oe]:this.baselineOffset[0],align:this.align?this.alignOffset[Oe]!=null?this.alignOffset[Oe]:this.alignOffset[0]:0,atlas:this.fontAtlas[Oe]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Oe*2,Oe*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};Ka.prototype.destroy=function(){};Ka.prototype.kerning=!0;Ka.prototype.position={constant:new Float32Array(2)};Ka.prototype.translate=null;Ka.prototype.scale=null;Ka.prototype.font=null;Ka.prototype.text="";Ka.prototype.positionOffset=[0,0];Ka.prototype.opacity=1;Ka.prototype.color=new Uint8Array([0,0,0,255]);Ka.prototype.alignOffset=[0,0];Ka.maxAtlasSize=1024;Ka.atlasCanvas=document.createElement("canvas");Ka.atlasContext=Ka.atlasCanvas.getContext("2d",{alpha:!1});Ka.baseFontSize=64;Ka.fonts={};function c9e(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}kre.exports=Ka});var Fre=P((zOe,Dre)=>{"use strict";var Lre=va(),v9e=function(){};Dre.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=v9e);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var a=document.createElement("div");a.className="no-webgl",a.style.cursor="pointer",a.style.fontSize="24px",a.style.color=Lre.defaults[0],a.style.position="absolute",a.style.left=a.style.top="0px",a.style.width=a.style.height="100%",a.style["background-color"]=Lre.lightLine,a.style["z-index"]=30;var n=document.createElement("p");return n.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",n.style.position="relative",n.style.top="50%",n.style.left="50%",n.style.height="30%",n.style.width="50%",n.style.margin="-15% 0 0 -25%",a.appendChild(n),r.container.appendChild(a),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var Rre=P((p9,m9)=>{(function(e,r){typeof p9=="object"&&typeof m9!="undefined"?m9.exports=r():e.createREGL=r()})(p9,function(){"use strict";var e=function(S,B){for(var V=Object.keys(B),he=0;he1&&B===V&&(B==='"'||B==="'"))return['"'+o(S.substr(1,S.length-2))+'"'];var he=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(S);if(he)return l(S.substr(0,he.index)).concat(l(he[1])).concat(l(S.substr(he.index+he[0].length)));var xe=S.split(".");if(xe.length===1)return['"'+o(S)+'"'];for(var we=[],_e=0;_e65535)<<4,S>>>=B,V=(S>255)<<3,S>>>=V,B|=V,V=(S>15)<<2,S>>>=V,B|=V,V=(S>3)<<1,S>>>=V,B|=V,B|S>>1}function Z(){var S=k(8,function(){return[]});function B(we){var _e=ae(we),We=S[$(_e)>>2];return We.length>0?We.pop():new ArrayBuffer(_e)}function V(we){S[$(we.byteLength)>>2].push(we)}function he(we,_e){var We=null;switch(we){case F:We=new Int8Array(B(_e),0,_e);break;case O:We=new Uint8Array(B(_e),0,_e);break;case I:We=new Int16Array(B(2*_e),0,_e);break;case R:We=new Uint16Array(B(2*_e),0,_e);break;case H:We=new Int32Array(B(4*_e),0,_e);break;case X:We=new Uint32Array(B(4*_e),0,_e);break;case le:We=new Float32Array(B(4*_e),0,_e);break;default:return null}return We.length!==_e?We.subarray(0,_e):We}function xe(we){V(we.buffer)}return{alloc:B,free:V,allocType:he,freeType:xe}}var J=Z();J.zero=Z();var ie=3408,ue=3410,De=3411,Oe=3412,Ee=3413,Ze=3414,Ae=3415,ir=33901,Ge=33902,Qe=3379,He=3386,Ve=34921,ee=36347,ge=36348,re=35661,Ye=35660,vr=34930,rr=36349,Cr=34076,Lr=34024,_r=7936,Pr=7937,rt=7938,Jr=35724,wr=34047,Hr=36063,Vr=34852,Pe=3553,sr=34067,lt=34069,Et=33984,wt=6408,Fe=5126,hr=5121,Or=36160,at=36053,Yr=36064,nt=16384,vt=function(S,B){var V=1;B.ext_texture_filter_anisotropic&&(V=S.getParameter(wr));var he=1,xe=1;B.webgl_draw_buffers&&(he=S.getParameter(Vr),xe=S.getParameter(Hr));var we=!!B.oes_texture_float;if(we){var _e=S.createTexture();S.bindTexture(Pe,_e),S.texImage2D(Pe,0,wt,1,1,0,wt,Fe,null);var We=S.createFramebuffer();if(S.bindFramebuffer(Or,We),S.framebufferTexture2D(Or,Yr,Pe,_e,0),S.bindTexture(Pe,null),S.checkFramebufferStatus(Or)!==at)we=!1;else{S.viewport(0,0,1,1),S.clearColor(1,0,0,1),S.clear(nt);var or=J.allocType(Fe,4);S.readPixels(0,0,1,1,wt,Fe,or),S.getError()?we=!1:(S.deleteFramebuffer(We),S.deleteTexture(_e),we=or[0]===1),J.freeType(or)}}var nr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),lr=!0;if(!nr){var Zr=S.createTexture(),Fr=J.allocType(hr,36);S.activeTexture(Et),S.bindTexture(sr,Zr),S.texImage2D(lt,0,wt,3,3,0,wt,hr,Fr),J.freeType(Fr),S.bindTexture(sr,null),S.deleteTexture(Zr),lr=!S.getError()}return{colorBits:[S.getParameter(ue),S.getParameter(De),S.getParameter(Oe),S.getParameter(Ee)],depthBits:S.getParameter(Ze),stencilBits:S.getParameter(Ae),subpixelBits:S.getParameter(ie),extensions:Object.keys(B).filter(function(br){return!!B[br]}),maxAnisotropic:V,maxDrawbuffers:he,maxColorAttachments:xe,pointSizeDims:S.getParameter(ir),lineWidthDims:S.getParameter(Ge),maxViewportDims:S.getParameter(He),maxCombinedTextureUnits:S.getParameter(re),maxCubeMapSize:S.getParameter(Cr),maxRenderbufferSize:S.getParameter(Lr),maxTextureUnits:S.getParameter(vr),maxTextureSize:S.getParameter(Qe),maxAttributes:S.getParameter(Ve),maxVertexUniforms:S.getParameter(ee),maxVertexTextureUnits:S.getParameter(Ye),maxVaryingVectors:S.getParameter(ge),maxFragmentUniforms:S.getParameter(rr),glsl:S.getParameter(Jr),renderer:S.getParameter(Pr),vendor:S.getParameter(_r),version:S.getParameter(rt),readFloat:we,npotTextureCube:lr}},ot=function(S){return S instanceof Uint8Array||S instanceof Uint16Array||S instanceof Uint32Array||S instanceof Int8Array||S instanceof Int16Array||S instanceof Int32Array||S instanceof Float32Array||S instanceof Float64Array||S instanceof Uint8ClampedArray};function et(S){return!!S&&typeof S=="object"&&Array.isArray(S.shape)&&Array.isArray(S.stride)&&typeof S.offset=="number"&&S.shape.length===S.stride.length&&(Array.isArray(S.data)||ot(S.data))}var pr=function(S){return Object.keys(S).map(function(B){return S[B]})},Se={shape:gt,flatten:At};function Ie(S,B,V){for(var he=0;he0){var Wr;if(Array.isArray(ke[0])){mr=ia(ke);for(var Be=1,qe=1;qe0){if(typeof Be[0]=="number"){var fr=J.allocType(ze.dtype,Be.length);Wi(fr,Be),mr(fr,Mr),J.freeType(fr)}else if(Array.isArray(Be[0])||ot(Be[0])){dr=ia(Be);var ur=Ca(Be,dr,ze.dtype);mr(ur,Mr),J.freeType(ur)}}}else if(et(Be)){dr=Be.shape;var Sr=Be.stride,jr=0,ut=0,gr=0,kr=0;dr.length===1?(jr=dr[0],ut=1,gr=Sr[0],kr=0):dr.length===2&&(jr=dr[0],ut=dr[1],gr=Sr[0],kr=Sr[1]);var st=Array.isArray(Be.data)?ze.dtype:tn(Be.data),ft=J.allocType(st,jr*ut);ji(ft,Be.data,jr,ut,gr,kr,Be.offset),mr(ft,Mr),J.freeType(ft)}return xr}return Je||xr(fe),xr._reglType="buffer",xr._buffer=ze,xr.subdata=Wr,V.profile&&(xr.stats=ze.stats),xr.destroy=function(){Fr(ze)},xr}function Ne(){pr(we).forEach(function(fe){fe.buffer=S.createBuffer(),S.bindBuffer(fe.type,fe.buffer),S.bufferData(fe.type,fe.persistentData||fe.byteLength,fe.usage)})}return V.profile&&(B.getTotalBufferSize=function(){var fe=0;return Object.keys(we).forEach(function(ke){fe+=we[ke].stats.size}),fe}),{create:br,createStream:or,destroyStream:nr,clear:function(){pr(we).forEach(Fr),We.forEach(Fr)},getBuffer:function(fe){return fe&&fe._buffer instanceof _e?fe._buffer:null},restore:Ne,_initBuffer:Zr}}var Ra=0,Xn=0,ss=1,fs=1,kl=4,Zu=4,Oo={points:Ra,point:Xn,lines:ss,line:fs,triangles:kl,triangle:Zu,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Yf=0,Wf=1,Xi=4,hi=5120,Ii=5121,Cl=5122,di=5123,qt=5124,$t=5125,ua=34963,_t=35040,Zn=35044;function Ua(S,B,V,he){var xe={},we=0,_e={uint8:Ii,uint16:di};B.oes_element_index_uint&&(_e.uint32=$t);function We(Ne){this.id=we++,xe[this.id]=this,this.buffer=Ne,this.primType=Xi,this.vertCount=0,this.type=0}We.prototype.bind=function(){this.buffer.bind()};var or=[];function nr(Ne){var fe=or.pop();return fe||(fe=new We(V.create(null,ua,!0,!1)._buffer)),Zr(fe,Ne,_t,-1,-1,0,0),fe}function lr(Ne){or.push(Ne)}function Zr(Ne,fe,ke,Je,ar,ze,xr){Ne.buffer.bind();var mr;if(fe){var Wr=xr;!xr&&(!ot(fe)||et(fe)&&!ot(fe.data))&&(Wr=B.oes_element_index_uint?$t:di),V._initBuffer(Ne.buffer,fe,ke,Wr,3)}else S.bufferData(ua,ze,ke),Ne.buffer.dtype=mr||Ii,Ne.buffer.usage=ke,Ne.buffer.dimension=3,Ne.buffer.byteLength=ze;if(mr=xr,!xr){switch(Ne.buffer.dtype){case Ii:case hi:mr=Ii;break;case di:case Cl:mr=di;break;case $t:case qt:mr=$t;break;default:}Ne.buffer.dtype=mr}Ne.type=mr;var Be=ar;Be<0&&(Be=Ne.buffer.byteLength,mr===di?Be>>=1:mr===$t&&(Be>>=2)),Ne.vertCount=Be;var qe=Je;if(Je<0){qe=Xi;var Mr=Ne.buffer.dimension;Mr===1&&(qe=Yf),Mr===2&&(qe=Wf),Mr===3&&(qe=Xi)}Ne.primType=qe}function Fr(Ne){he.elementsCount--,delete xe[Ne.id],Ne.buffer.destroy(),Ne.buffer=null}function br(Ne,fe){var ke=V.create(null,ua,!0),Je=new We(ke._buffer);he.elementsCount++;function ar(ze){if(!ze)ke(),Je.primType=Xi,Je.vertCount=0,Je.type=Ii;else if(typeof ze=="number")ke(ze),Je.primType=Xi,Je.vertCount=ze|0,Je.type=Ii;else{var xr=null,mr=Zn,Wr=-1,Be=-1,qe=0,Mr=0;Array.isArray(ze)||ot(ze)||et(ze)?xr=ze:("data"in ze&&(xr=ze.data),"usage"in ze&&(mr=Pt[ze.usage]),"primitive"in ze&&(Wr=Oo[ze.primitive]),"count"in ze&&(Be=ze.count|0),"type"in ze&&(Mr=_e[ze.type]),"length"in ze?qe=ze.length|0:(qe=Be,Mr===di||Mr===Cl?qe*=2:(Mr===$t||Mr===qt)&&(qe*=4))),Zr(Je,xr,mr,Wr,Be,qe,Mr)}return ar}return ar(Ne),ar._reglType="elements",ar._elements=Je,ar.subdata=function(ze,xr){return ke.subdata(ze,xr),ar},ar.destroy=function(){Fr(Je)},ar}return{create:br,createStream:nr,destroyStream:lr,getElements:function(Ne){return typeof Ne=="function"&&Ne._elements instanceof We?Ne._elements:null},clear:function(){pr(xe).forEach(Fr)}}}var Pn=new Float32Array(1),ra=new Uint32Array(Pn.buffer),wo=5123;function ol(S){for(var B=J.allocType(wo,S.length),V=0;V>>31<<15,we=(he<<1>>>24)-127,_e=he>>13&1023;if(we<-24)B[V]=xe;else if(we<-14){var We=-14-we;B[V]=xe+(_e+1024>>We)}else we>15?B[V]=xe+31744:B[V]=xe+(we+15<<10)+_e}return B}function Si(S){return Array.isArray(S)||ot(S)}var Z1=34467,An=3553,Ll=34067,Io=34069,pi=6408,rf=6406,Bo=6407,Ao=6409,Dl=6410,Ju=32854,zo=32855,us=36194,Mh=32819,J1=32820,$u=33635,Lv=34042,cs=6402,Fl=34041,Go=35904,To=35906,mi=36193,tf=33776,vs=33777,ll=33778,af=33779,Dv=35986,Qu=35987,jf=34798,Fv=35840,Rv=35841,Ku=35842,qv=35843,ec=36196,Mo=5121,nf=5123,Xf=5125,Bi=5126,of=10242,$1=10243,Q1=10497,Zf=33071,Sh=33648,Jf=10240,K1=10241,Rl=9728,rc=9729,hs=9984,lf=9985,ds=9986,sl=9987,Eh=33170,fl=4352,ep=4353,tc=4354,rp=34046,tp=3317,ap=37440,kh=37441,$f=37443,Pv=37444,So=33984,Ch=[hs,ds,lf,sl],Ei=[0,Ao,Dl,Bo,pi],Tn={};Tn[Ao]=Tn[rf]=Tn[cs]=1,Tn[Fl]=Tn[Dl]=2,Tn[Bo]=Tn[Go]=3,Tn[pi]=Tn[To]=4;function Zi(S){return"[object "+S+"]"}var Qf=Zi("HTMLCanvasElement"),ul=Zi("OffscreenCanvas"),sf=Zi("CanvasRenderingContext2D"),ac=Zi("ImageBitmap"),Nv=Zi("HTMLImageElement"),Ov=Zi("HTMLVideoElement"),np=Object.keys(Nt).concat([Qf,ul,sf,ac,Nv,Ov]),so=[];so[Mo]=1,so[Bi]=4,so[mi]=2,so[nf]=2,so[Xf]=4;var wa=[];wa[Ju]=2,wa[zo]=2,wa[us]=2,wa[Fl]=4,wa[tf]=.5,wa[vs]=.5,wa[ll]=1,wa[af]=1,wa[Dv]=.5,wa[Qu]=1,wa[jf]=1,wa[Fv]=.5,wa[Rv]=.25,wa[Ku]=.5,wa[qv]=.25,wa[ec]=.5;function Iv(S){return Array.isArray(S)&&(S.length===0||typeof S[0]=="number")}function Bv(S){if(!Array.isArray(S))return!1;var B=S.length;return!(B===0||!Si(S[0]))}function Ji(S){return Object.prototype.toString.call(S)}function zv(S){return Ji(S)===Qf}function Gv(S){return Ji(S)===ul}function ip(S){return Ji(S)===sf}function op(S){return Ji(S)===ac}function lp(S){return Ji(S)===Nv}function sp(S){return Ji(S)===Ov}function Kf(S){if(!S)return!1;var B=Ji(S);return np.indexOf(B)>=0?!0:Iv(S)||Bv(S)||et(S)}function Uv(S){return Nt[Object.prototype.toString.call(S)]|0}function fp(S,B){var V=B.length;switch(S.type){case Mo:case nf:case Xf:case Bi:var he=J.allocType(S.type,V);he.set(B),S.data=he;break;case mi:S.data=ol(B);break;default:}}function Hv(S,B){return J.allocType(S.type===mi?Bi:S.type,B)}function nc(S,B){S.type===mi?(S.data=ol(B),J.freeType(B)):S.data=B}function Lh(S,B,V,he,xe,we){for(var _e=S.width,We=S.height,or=S.channels,nr=_e*We*or,lr=Hv(S,nr),Zr=0,Fr=0;Fr=1;)We+=_e*or*or,or/=2;return We}else return _e*V*he}function Dh(S,B,V,he,xe,we,_e){var We={"don't care":fl,"dont care":fl,nice:tc,fast:ep},or={repeat:Q1,clamp:Zf,mirror:Sh},nr={nearest:Rl,linear:rc},lr=e({mipmap:sl,"nearest mipmap nearest":hs,"linear mipmap nearest":lf,"nearest mipmap linear":ds,"linear mipmap linear":sl},nr),Zr={none:0,browser:Pv},Fr={uint8:Mo,rgba4:Mh,rgb565:$u,"rgb5 a1":J1},br={alpha:rf,luminance:Ao,"luminance alpha":Dl,rgb:Bo,rgba:pi,rgba4:Ju,"rgb5 a1":zo,rgb565:us},Ne={};B.ext_srgb&&(br.srgb=Go,br.srgba=To),B.oes_texture_float&&(Fr.float32=Fr.float=Bi),B.oes_texture_half_float&&(Fr.float16=Fr["half float"]=mi),B.webgl_depth_texture&&(e(br,{depth:cs,"depth stencil":Fl}),e(Fr,{uint16:nf,uint32:Xf,"depth stencil":Lv})),B.webgl_compressed_texture_s3tc&&e(Ne,{"rgb s3tc dxt1":tf,"rgba s3tc dxt1":vs,"rgba s3tc dxt3":ll,"rgba s3tc dxt5":af}),B.webgl_compressed_texture_atc&&e(Ne,{"rgb atc":Dv,"rgba atc explicit alpha":Qu,"rgba atc interpolated alpha":jf}),B.webgl_compressed_texture_pvrtc&&e(Ne,{"rgb pvrtc 4bppv1":Fv,"rgb pvrtc 2bppv1":Rv,"rgba pvrtc 4bppv1":Ku,"rgba pvrtc 2bppv1":qv}),B.webgl_compressed_texture_etc1&&(Ne["rgb etc1"]=ec);var fe=Array.prototype.slice.call(S.getParameter(Z1));Object.keys(Ne).forEach(function(z){var pe=Ne[z];fe.indexOf(pe)>=0&&(br[z]=pe)});var ke=Object.keys(br);V.textureFormats=ke;var Je=[];Object.keys(br).forEach(function(z){var pe=br[z];Je[pe]=z});var ar=[];Object.keys(Fr).forEach(function(z){var pe=Fr[z];ar[pe]=z});var ze=[];Object.keys(nr).forEach(function(z){var pe=nr[z];ze[pe]=z});var xr=[];Object.keys(lr).forEach(function(z){var pe=lr[z];xr[pe]=z});var mr=[];Object.keys(or).forEach(function(z){var pe=or[z];mr[pe]=z});var Wr=ke.reduce(function(z,pe){var be=br[pe];return be===Ao||be===rf||be===Ao||be===Dl||be===cs||be===Fl||B.ext_srgb&&(be===Go||be===To)?z[be]=be:be===zo||pe.indexOf("rgba")>=0?z[be]=pi:z[be]=Bo,z},{});function Be(){this.internalformat=pi,this.format=pi,this.type=Mo,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Pv,this.width=0,this.height=0,this.channels=0}function qe(z,pe){z.internalformat=pe.internalformat,z.format=pe.format,z.type=pe.type,z.compressed=pe.compressed,z.premultiplyAlpha=pe.premultiplyAlpha,z.flipY=pe.flipY,z.unpackAlignment=pe.unpackAlignment,z.colorSpace=pe.colorSpace,z.width=pe.width,z.height=pe.height,z.channels=pe.channels}function Mr(z,pe){if(!(typeof pe!="object"||!pe)){if("premultiplyAlpha"in pe&&(z.premultiplyAlpha=pe.premultiplyAlpha),"flipY"in pe&&(z.flipY=pe.flipY),"alignment"in pe&&(z.unpackAlignment=pe.alignment),"colorSpace"in pe&&(z.colorSpace=Zr[pe.colorSpace]),"type"in pe){var be=pe.type;z.type=Fr[be]}var Nr=z.width,Dt=z.height,Ht=z.channels,Rr=!1;"shape"in pe?(Nr=pe.shape[0],Dt=pe.shape[1],pe.shape.length===3&&(Ht=pe.shape[2],Rr=!0)):("radius"in pe&&(Nr=Dt=pe.radius),"width"in pe&&(Nr=pe.width),"height"in pe&&(Dt=pe.height),"channels"in pe&&(Ht=pe.channels,Rr=!0)),z.width=Nr|0,z.height=Dt|0,z.channels=Ht|0;var N=!1;if("format"in pe){var U=pe.format,Q=z.internalformat=br[U];z.format=Wr[Q],U in Fr&&("type"in pe||(z.type=Fr[U])),U in Ne&&(z.compressed=!0),N=!0}!Rr&&N?z.channels=Tn[z.format]:Rr&&!N&&z.channels!==Ei[z.format]&&(z.format=z.internalformat=Ei[z.channels])}}function dr(z){S.pixelStorei(ap,z.flipY),S.pixelStorei(kh,z.premultiplyAlpha),S.pixelStorei($f,z.colorSpace),S.pixelStorei(tp,z.unpackAlignment)}function fr(){Be.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function ur(z,pe){var be=null;if(Kf(pe)?be=pe:pe&&(Mr(z,pe),"x"in pe&&(z.xOffset=pe.x|0),"y"in pe&&(z.yOffset=pe.y|0),Kf(pe.data)&&(be=pe.data)),pe.copy){var Nr=xe.viewportWidth,Dt=xe.viewportHeight;z.width=z.width||Nr-z.xOffset,z.height=z.height||Dt-z.yOffset,z.needsCopy=!0}else if(!be)z.width=z.width||1,z.height=z.height||1,z.channels=z.channels||4;else if(ot(be))z.channels=z.channels||4,z.data=be,!("type"in pe)&&z.type===Mo&&(z.type=Uv(be));else if(Iv(be))z.channels=z.channels||4,fp(z,be),z.alignment=1,z.needsFree=!0;else if(et(be)){var Ht=be.data;!Array.isArray(Ht)&&z.type===Mo&&(z.type=Uv(Ht));var Rr=be.shape,N=be.stride,U,Q,de,Te,ce,se;Rr.length===3?(de=Rr[2],se=N[2]):(de=1,se=1),U=Rr[0],Q=Rr[1],Te=N[0],ce=N[1],z.alignment=1,z.width=U,z.height=Q,z.channels=de,z.format=z.internalformat=Ei[de],z.needsFree=!0,Lh(z,Ht,Te,ce,se,be.offset)}else if(zv(be)||Gv(be)||ip(be))zv(be)||Gv(be)?z.element=be:z.element=be.canvas,z.width=z.element.width,z.height=z.element.height,z.channels=4;else if(op(be))z.element=be,z.width=be.width,z.height=be.height,z.channels=4;else if(lp(be))z.element=be,z.width=be.naturalWidth,z.height=be.naturalHeight,z.channels=4;else if(sp(be))z.element=be,z.width=be.videoWidth,z.height=be.videoHeight,z.channels=4;else if(Bv(be)){var te=z.width||be[0].length,W=z.height||be.length,K=z.channels;Si(be[0][0])?K=K||be[0][0].length:K=K||1;for(var Y=Se.shape(be),ve=1,Ce=0;Ce>=Dt,be.height>>=Dt,ur(be,Nr[Dt]),z.mipmask|=1<=0&&!("faces"in pe)&&(z.genMipmaps=!0)}if("mag"in pe){var Nr=pe.mag;z.magFilter=nr[Nr]}var Dt=z.wrapS,Ht=z.wrapT;if("wrap"in pe){var Rr=pe.wrap;typeof Rr=="string"?Dt=Ht=or[Rr]:Array.isArray(Rr)&&(Dt=or[Rr[0]],Ht=or[Rr[1]])}else{if("wrapS"in pe){var N=pe.wrapS;Dt=or[N]}if("wrapT"in pe){var U=pe.wrapT;Ht=or[U]}}if(z.wrapS=Dt,z.wrapT=Ht,"anisotropic"in pe){var Q=pe.anisotropic;z.anisotropic=pe.anisotropic}if("mipmap"in pe){var de=!1;switch(typeof pe.mipmap){case"string":z.mipmapHint=We[pe.mipmap],z.genMipmaps=!0,de=!0;break;case"boolean":de=z.genMipmaps=pe.mipmap;break;case"object":z.genMipmaps=!1,de=!0;break;default:}de&&!("min"in pe)&&(z.minFilter=hs)}}function Za(z,pe){S.texParameteri(pe,K1,z.minFilter),S.texParameteri(pe,Jf,z.magFilter),S.texParameteri(pe,of,z.wrapS),S.texParameteri(pe,$1,z.wrapT),B.ext_texture_filter_anisotropic&&S.texParameteri(pe,rp,z.anisotropic),z.genMipmaps&&(S.hint(Eh,z.mipmapHint),S.generateMipmap(pe))}var on=0,ma={},ya=V.maxTextureUnits,Sa=Array(ya).map(function(){return null});function Tt(z){Be.call(this),this.mipmask=0,this.internalformat=pi,this.id=on++,this.refCount=1,this.target=z,this.texture=S.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ut,_e.profile&&(this.stats={size:0})}function qa(z){S.activeTexture(So),S.bindTexture(z.target,z.texture)}function Wt(){var z=Sa[0];z?S.bindTexture(z.target,z.texture):S.bindTexture(An,null)}function Ja(z){var pe=z.texture,be=z.unit,Nr=z.target;be>=0&&(S.activeTexture(So+be),S.bindTexture(Nr,null),Sa[be]=null),S.deleteTexture(pe),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete ma[z.id],we.textureCount--}e(Tt.prototype,{bind:function(){var z=this;z.bindCount+=1;var pe=z.unit;if(pe<0){for(var be=0;be0)continue;Nr.unit=-1}Sa[be]=z,pe=be;break}pe>=ya,_e.profile&&we.maxTextureUnits>ce)-de,se.height=se.height||(be.height>>ce)-Te,qa(be),jr(se,An,de,Te,ce),Wt(),kr(se),Nr}function Ht(Rr,N){var U=Rr|0,Q=N|0||U;if(U===be.width&&Q===be.height)return Nr;Nr.width=be.width=U,Nr.height=be.height=Q,qa(be);for(var de=0;be.mipmask>>de;++de){var Te=U>>de,ce=Q>>de;if(!Te||!ce)break;S.texImage2D(An,de,be.format,Te,ce,0,be.format,be.type,null)}return Wt(),_e.profile&&(be.stats.size=ql(be.internalformat,be.type,U,Q,!1,!1)),Nr}return Nr(z,pe),Nr.subimage=Dt,Nr.resize=Ht,Nr._reglType="texture2d",Nr._texture=be,_e.profile&&(Nr.stats=be.stats),Nr.destroy=function(){be.decRef()},Nr}function sn(z,pe,be,Nr,Dt,Ht){var Rr=new Tt(Ll);ma[Rr.id]=Rr,we.cubeCount++;var N=new Array(6);function U(Te,ce,se,te,W,K){var Y,ve=Rr.texInfo;for(Ut.call(ve),Y=0;Y<6;++Y)N[Y]=Lt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(Y=0;Y<6;++Y)ft(N[Y],Ce,Ce)}else if(typeof Te=="object")if(ce)St(N[0],Te),St(N[1],ce),St(N[2],se),St(N[3],te),St(N[4],W),St(N[5],K);else if(Ya(ve,Te),Mr(Rr,Te),"faces"in Te){var $e=Te.faces;for(Y=0;Y<6;++Y)qe(N[Y],Rr),St(N[Y],$e[Y])}else for(Y=0;Y<6;++Y)St(N[Y],Te);for(qe(Rr,N[0]),ve.genMipmaps?Rr.mipmask=(N[0].width<<1)-1:Rr.mipmask=N[0].mipmask,Rr.internalformat=N[0].internalformat,U.width=N[0].width,U.height=N[0].height,qa(Rr),Y=0;Y<6;++Y)aa(N[Y],Io+Y);for(Za(ve,Ll),Wt(),_e.profile&&(Rr.stats.size=ql(Rr.internalformat,Rr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Je[Rr.internalformat],U.type=ar[Rr.type],U.mag=ze[ve.magFilter],U.min=xr[ve.minFilter],U.wrapS=mr[ve.wrapS],U.wrapT=mr[ve.wrapT],Y=0;Y<6;++Y)nn(N[Y]);return U}function Q(Te,ce,se,te,W){var K=se|0,Y=te|0,ve=W|0,Ce=gr();return qe(Ce,Rr),Ce.width=0,Ce.height=0,ur(Ce,ce),Ce.width=Ce.width||(Rr.width>>ve)-K,Ce.height=Ce.height||(Rr.height>>ve)-Y,qa(Rr),jr(Ce,Io+Te,K,Y,ve),Wt(),kr(Ce),U}function de(Te){var ce=Te|0;if(ce!==Rr.width){U.width=Rr.width=ce,U.height=Rr.height=ce,qa(Rr);for(var se=0;se<6;++se)for(var te=0;Rr.mipmask>>te;++te)S.texImage2D(Io+se,te,Rr.format,ce>>te,ce>>te,0,Rr.format,Rr.type,null);return Wt(),_e.profile&&(Rr.stats.size=ql(Rr.internalformat,Rr.type,U.width,U.height,!1,!0)),U}}return U(z,pe,be,Nr,Dt,Ht),U.subimage=Q,U.resize=de,U._reglType="textureCube",U._texture=Rr,_e.profile&&(U.stats=Rr.stats),U.destroy=function(){Rr.decRef()},U}function pt(){for(var z=0;z>Nr,be.height>>Nr,0,be.internalformat,be.type,null);else for(var Dt=0;Dt<6;++Dt)S.texImage2D(Io+Dt,Nr,be.internalformat,be.width>>Nr,be.height>>Nr,0,be.internalformat,be.type,null);Za(be.texInfo,be.target)})}function Qt(){for(var z=0;z=0?nn=!0:or.indexOf(Ut)>=0&&(nn=!1))),("depthTexture"in Tt||"depthStencilTexture"in Tt)&&(Sa=!!(Tt.depthTexture||Tt.depthStencilTexture)),"depth"in Tt&&(typeof Tt.depth=="boolean"?aa=Tt.depth:(on=Tt.depth,Ma=!1)),"stencil"in Tt&&(typeof Tt.stencil=="boolean"?Ma=Tt.stencil:(ma=Tt.stencil,aa=!1)),"depthStencil"in Tt&&(typeof Tt.depthStencil=="boolean"?aa=Ma=Tt.depthStencil:(ya=Tt.depthStencil,aa=!1,Ma=!1))}var Wt=null,Ja=null,ln=null,sn=null;if(Array.isArray(Lt))Wt=Lt.map(Ne);else if(Lt)Wt=[Ne(Lt)];else for(Wt=new Array(Za),st=0;st0&&(kr.depth=ur[0].depth,kr.stencil=ur[0].stencil,kr.depthStencil=ur[0].depthStencil),ur[gr]?ur[gr](kr):ur[gr]=qe(kr)}return e(Sr,{width:st,height:st,color:Ut})}function jr(ut){var gr,kr=ut|0;if(kr===Sr.width)return Sr;var st=Sr.color;for(gr=0;gr=st.byteLength?ft.subdata(st):(ft.destroy(),qe.buffers[ut]=null)),qe.buffers[ut]||(ft=qe.buffers[ut]=xe.create(gr,r0,!1,!0)),kr.buffer=xe.getBuffer(ft),kr.size=kr.buffer.dimension|0,kr.normalized=!1,kr.type=kr.buffer.dtype,kr.offset=0,kr.stride=0,kr.divisor=0,kr.state=1,Sr[ut]=1}else xe.getBuffer(gr)?(kr.buffer=xe.getBuffer(gr),kr.size=kr.buffer.dimension|0,kr.normalized=!1,kr.type=kr.buffer.dtype,kr.offset=0,kr.stride=0,kr.divisor=0,kr.state=1):xe.getBuffer(gr.buffer)?(kr.buffer=xe.getBuffer(gr.buffer),kr.size=(+gr.size||kr.buffer.dimension)|0,kr.normalized=!!gr.normalized||!1,"type"in gr?kr.type=vn[gr.type]:kr.type=kr.buffer.dtype,kr.offset=(gr.offset||0)|0,kr.stride=(gr.stride||0)|0,kr.divisor=(gr.divisor||0)|0,kr.state=1):"x"in gr&&(kr.x=+gr.x||0,kr.y=+gr.y||0,kr.z=+gr.z||0,kr.w=+gr.w||0,kr.state=2)}for(var St=0;St1)for(var dr=0;drfe&&(fe=ke.stats.uniformsCount)}),fe},V.getMaxAttributesCount=function(){var fe=0;return lr.forEach(function(ke){ke.stats.attributesCount>fe&&(fe=ke.stats.attributesCount)}),fe});function Ne(){xe={},we={};for(var fe=0;fe16&&(V=cl(V,S.length*8));for(var he=Array(16),xe=Array(16),we=0;we<16;we++)he[we]=V[we]^909522486,xe[we]=V[we]^1549556828;var _e=cl(he.concat(au(B)),512+B.length*8);return i0(cl(xe.concat(_e),768))}function Nh(S){for(var B=qh?"0123456789ABCDEF":"0123456789abcdef",V="",he,xe=0;xe>>4&15)+B.charAt(he&15);return V}function Ap(S){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V="",he=S.length,xe=0;xeS.length*8?V+=_p:V+=B.charAt(we>>>6*(3-_e)&63);return V}function Tp(S,B){var V=B.length,he=Array(),xe,we,_e,We,or=Array(Math.ceil(S.length/2));for(xe=0;xe0;){for(We=Array(),_e=0,xe=0;xe0||we>0)&&(We[We.length]=we);he[he.length]=_e,or=We}var nr="";for(xe=he.length-1;xe>=0;xe--)nr+=B.charAt(he[xe]);var lr=Math.ceil(S.length*8/(Math.log(B.length)/Math.log(2)));for(xe=nr.length;xe>>6&31,128|he&63):he<=65535?B+=String.fromCharCode(224|he>>>12&15,128|he>>>6&63,128|he&63):he<=2097151&&(B+=String.fromCharCode(240|he>>>18&7,128|he>>>12&63,128|he>>>6&63,128|he&63));return B}function au(S){for(var B=Array(S.length>>2),V=0;V>5]|=(S.charCodeAt(V/8)&255)<<24-V%32;return B}function i0(S){for(var B="",V=0;V>5]>>>24-V%32&255);return B}function Bn(S,B){return S>>>B|S<<32-B}function o0(S,B){return S>>>B}function Oh(S,B,V){return S&B^~S&V}function Ih(S,B,V){return S&B^S&V^B&V}function l0(S){return Bn(S,2)^Bn(S,13)^Bn(S,22)}function Bh(S){return Bn(S,6)^Bn(S,11)^Bn(S,25)}function sc(S){return Bn(S,7)^Bn(S,18)^o0(S,3)}function fc(S){return Bn(S,17)^Bn(S,19)^o0(S,10)}var Sp=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function cl(S,B){var V=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),xe,we,_e,We,or,nr,lr,Zr,Fr,br,Ne,fe;for(S[B>>5]|=128<<24-B%32,S[(B+64>>9<<4)+15]=B,Fr=0;Fr>16)+(B>>16)+(V>>16);return he<<16|V&65535}function ko(S){return Array.prototype.slice.call(S)}function Co(S){return ko(S).join("")}function zh(S){var B=S&&S.cache,V=0,he=[],xe=[],we=[];function _e(Ne,fe){var ke=fe&&fe.stable;if(!ke){for(var Je=0;Je0&&(Ne.push(ar,"="),Ne.push.apply(Ne,ko(arguments)),Ne.push(";")),ar}return e(fe,{def:Je,toString:function(){return Co([ke.length>0?"var "+ke.join(",")+";":"",Co(Ne)])}})}function or(){var Ne=We(),fe=We(),ke=Ne.toString,Je=fe.toString;function ar(ze,xr){fe(ze,xr,"=",Ne.def(ze,xr),";")}return e(function(){Ne.apply(Ne,ko(arguments))},{def:Ne.def,entry:Ne,exit:fe,save:ar,set:function(ze,xr,mr){ar(ze,xr),Ne(ze,xr,"=",mr,";")},toString:function(){return ke()+Je()}})}function nr(){var Ne=Co(arguments),fe=or(),ke=or(),Je=fe.toString,ar=ke.toString;return e(fe,{then:function(){return fe.apply(fe,ko(arguments)),this},else:function(){return ke.apply(ke,ko(arguments)),this},toString:function(){var ze=ar();return ze&&(ze="else{"+ze+"}"),Co(["if(",Ne,"){",Je(),"}",ze])}})}var lr=We(),Zr={};function Fr(Ne,fe){var ke=[];function Je(){var Wr="a"+ke.length;return ke.push(Wr),Wr}fe=fe||0;for(var ar=0;ar2){for(var i=Array(r.position.length*.5),o=0;o2){for(var f=!r.position[0].length,u=xv.mallocFloat(this.count*2),c=0,v=0;c1?t.align[Ze]:t.align[0]:t.align;if(typeof Ae=="number")return Ae;switch(Ae){case"right":case"end":return-Ee;case"center":case"centre":case"middle":return-Ee*.5}return 0})),this.baseline==null&&r.baseline==null&&(r.baseline=0),r.baseline!=null&&(this.baseline=r.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ee,Ze){var Ae=(t.font[Ze]||t.font[0]).metrics,ir=0;return ir+=Ae.bottom*.5,typeof Ee=="number"?ir+=Ee-Ae.baseline:ir+=-Ae[Ee],ir*=-1,ir})),r.color!=null)if(r.color||(r.color="transparent"),typeof r.color=="string"||!isNaN(r.color))this.color=d9(r.color,"uint8");else{var le;if(typeof r.color[0]=="number"&&r.color.length>this.counts.length){var ae=r.color.length;le=xv.mallocUint8(ae);for(var Q=(r.color.subarray||r.color.slice).bind(r.color),Z=0;Z4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(ue){var De=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(De);for(var Ie=0;Ie1?this.counts[Ie]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ie]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ie*4,Ie*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ie]:this.opacity,baseline:this.baselineOffset[Ie]!=null?this.baselineOffset[Ie]:this.baselineOffset[0],align:this.align?this.alignOffset[Ie]!=null?this.alignOffset[Ie]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ie]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ie*2,Ie*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};Ka.prototype.destroy=function(){};Ka.prototype.kerning=!0;Ka.prototype.position={constant:new Float32Array(2)};Ka.prototype.translate=null;Ka.prototype.scale=null;Ka.prototype.font=null;Ka.prototype.text="";Ka.prototype.positionOffset=[0,0];Ka.prototype.opacity=1;Ka.prototype.color=new Uint8Array([0,0,0,255]);Ka.prototype.alignOffset=[0,0];Ka.maxAtlasSize=1024;Ka.atlasCanvas=document.createElement("canvas");Ka.atlasContext=Ka.atlasCanvas.getContext("2d",{alpha:!1});Ka.baseFontSize=64;Ka.fonts={};function d9e(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}Lre.exports=Ka});var Rre=P((UIe,qre)=>{"use strict";var Fre=va(),p9e=function(){};qre.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=p9e);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var a=document.createElement("div");a.className="no-webgl",a.style.cursor="pointer",a.style.fontSize="24px",a.style.color=Fre.defaults[0],a.style.position="absolute",a.style.left=a.style.top="0px",a.style.width=a.style.height="100%",a.style["background-color"]=Fre.lightLine,a.style["z-index"]=30;var n=document.createElement("p");return n.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",n.style.position="relative",n.style.top="50%",n.style.left="50%",n.style.height="30%",n.style.width="50%",n.style.margin="-15% 0 0 -25%",a.appendChild(n),r.container.appendChild(a),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var Pre=P((p9,m9)=>{(function(e,r){typeof p9=="object"&&typeof m9!="undefined"?m9.exports=r():e.createREGL=r()})(p9,function(){"use strict";var e=function(S,B){for(var V=Object.keys(B),he=0;he1&&B===V&&(B==='"'||B==="'"))return['"'+o(S.substr(1,S.length-2))+'"'];var he=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(S);if(he)return l(S.substr(0,he.index)).concat(l(he[1])).concat(l(S.substr(he.index+he[0].length)));var xe=S.split(".");if(xe.length===1)return['"'+o(S)+'"'];for(var we=[],_e=0;_e65535)<<4,S>>>=B,V=(S>255)<<3,S>>>=V,B|=V,V=(S>15)<<2,S>>>=V,B|=V,V=(S>3)<<1,S>>>=V,B|=V,B|S>>1}function Z(){var S=C(8,function(){return[]});function B(we){var _e=ae(we),Ye=S[Q(_e)>>2];return Ye.length>0?Ye.pop():new ArrayBuffer(_e)}function V(we){S[Q(we.byteLength)>>2].push(we)}function he(we,_e){var Ye=null;switch(we){case F:Ye=new Int8Array(B(_e),0,_e);break;case I:Ye=new Uint8Array(B(_e),0,_e);break;case O:Ye=new Int16Array(B(2*_e),0,_e);break;case q:Ye=new Uint16Array(B(2*_e),0,_e);break;case H:Ye=new Int32Array(B(4*_e),0,_e);break;case X:Ye=new Uint32Array(B(4*_e),0,_e);break;case le:Ye=new Float32Array(B(4*_e),0,_e);break;default:return null}return Ye.length!==_e?Ye.subarray(0,_e):Ye}function xe(we){V(we.buffer)}return{alloc:B,free:V,allocType:he,freeType:xe}}var J=Z();J.zero=Z();var ie=3408,ue=3410,De=3411,Ie=3412,Ee=3413,Ze=3414,Ae=3415,ir=33901,Ge=33902,Qe=3379,He=3386,Ve=34921,ee=36347,me=36348,re=35661,je=35660,vr=34930,rr=36349,Cr=34076,Lr=34024,_r=7936,Pr=7937,rt=7938,Jr=35724,wr=34047,Hr=36063,Vr=34852,Pe=3553,sr=34067,lt=34069,Et=33984,wt=6408,Fe=5126,hr=5121,Ir=36160,at=36053,Yr=36064,nt=16384,vt=function(S,B){var V=1;B.ext_texture_filter_anisotropic&&(V=S.getParameter(wr));var he=1,xe=1;B.webgl_draw_buffers&&(he=S.getParameter(Vr),xe=S.getParameter(Hr));var we=!!B.oes_texture_float;if(we){var _e=S.createTexture();S.bindTexture(Pe,_e),S.texImage2D(Pe,0,wt,1,1,0,wt,Fe,null);var Ye=S.createFramebuffer();if(S.bindFramebuffer(Ir,Ye),S.framebufferTexture2D(Ir,Yr,Pe,_e,0),S.bindTexture(Pe,null),S.checkFramebufferStatus(Ir)!==at)we=!1;else{S.viewport(0,0,1,1),S.clearColor(1,0,0,1),S.clear(nt);var or=J.allocType(Fe,4);S.readPixels(0,0,1,1,wt,Fe,or),S.getError()?we=!1:(S.deleteFramebuffer(Ye),S.deleteTexture(_e),we=or[0]===1),J.freeType(or)}}var nr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),lr=!0;if(!nr){var Zr=S.createTexture(),Fr=J.allocType(hr,36);S.activeTexture(Et),S.bindTexture(sr,Zr),S.texImage2D(lt,0,wt,3,3,0,wt,hr,Fr),J.freeType(Fr),S.bindTexture(sr,null),S.deleteTexture(Zr),lr=!S.getError()}return{colorBits:[S.getParameter(ue),S.getParameter(De),S.getParameter(Ie),S.getParameter(Ee)],depthBits:S.getParameter(Ze),stencilBits:S.getParameter(Ae),subpixelBits:S.getParameter(ie),extensions:Object.keys(B).filter(function(br){return!!B[br]}),maxAnisotropic:V,maxDrawbuffers:he,maxColorAttachments:xe,pointSizeDims:S.getParameter(ir),lineWidthDims:S.getParameter(Ge),maxViewportDims:S.getParameter(He),maxCombinedTextureUnits:S.getParameter(re),maxCubeMapSize:S.getParameter(Cr),maxRenderbufferSize:S.getParameter(Lr),maxTextureUnits:S.getParameter(vr),maxTextureSize:S.getParameter(Qe),maxAttributes:S.getParameter(Ve),maxVertexUniforms:S.getParameter(ee),maxVertexTextureUnits:S.getParameter(je),maxVaryingVectors:S.getParameter(me),maxFragmentUniforms:S.getParameter(rr),glsl:S.getParameter(Jr),renderer:S.getParameter(Pr),vendor:S.getParameter(_r),version:S.getParameter(rt),readFloat:we,npotTextureCube:lr}},ot=function(S){return S instanceof Uint8Array||S instanceof Uint16Array||S instanceof Uint32Array||S instanceof Int8Array||S instanceof Int16Array||S instanceof Int32Array||S instanceof Float32Array||S instanceof Float64Array||S instanceof Uint8ClampedArray};function et(S){return!!S&&typeof S=="object"&&Array.isArray(S.shape)&&Array.isArray(S.stride)&&typeof S.offset=="number"&&S.shape.length===S.stride.length&&(Array.isArray(S.data)||ot(S.data))}var pr=function(S){return Object.keys(S).map(function(B){return S[B]})},Se={shape:yt,flatten:At};function Oe(S,B,V){for(var he=0;he0){var Wr;if(Array.isArray(ke[0])){mr=ia(ke);for(var Be=1,Re=1;Re0){if(typeof Be[0]=="number"){var fr=J.allocType(ze.dtype,Be.length);Wi(fr,Be),mr(fr,Mr),J.freeType(fr)}else if(Array.isArray(Be[0])||ot(Be[0])){dr=ia(Be);var ur=Ca(Be,dr,ze.dtype);mr(ur,Mr),J.freeType(ur)}}}else if(et(Be)){dr=Be.shape;var Sr=Be.stride,jr=0,ut=0,gr=0,kr=0;dr.length===1?(jr=dr[0],ut=1,gr=Sr[0],kr=0):dr.length===2&&(jr=dr[0],ut=dr[1],gr=Sr[0],kr=Sr[1]);var st=Array.isArray(Be.data)?ze.dtype:tn(Be.data),ft=J.allocType(st,jr*ut);ji(ft,Be.data,jr,ut,gr,kr,Be.offset),mr(ft,Mr),J.freeType(ft)}return xr}return Je||xr(fe),xr._reglType="buffer",xr._buffer=ze,xr.subdata=Wr,V.profile&&(xr.stats=ze.stats),xr.destroy=function(){Fr(ze)},xr}function Ne(){pr(we).forEach(function(fe){fe.buffer=S.createBuffer(),S.bindBuffer(fe.type,fe.buffer),S.bufferData(fe.type,fe.persistentData||fe.byteLength,fe.usage)})}return V.profile&&(B.getTotalBufferSize=function(){var fe=0;return Object.keys(we).forEach(function(ke){fe+=we[ke].stats.size}),fe}),{create:br,createStream:or,destroyStream:nr,clear:function(){pr(we).forEach(Fr),Ye.forEach(Fr)},getBuffer:function(fe){return fe&&fe._buffer instanceof _e?fe._buffer:null},restore:Ne,_initBuffer:Zr}}var qa=0,Zn=0,fs=1,us=1,kl=4,Zu=4,Oo={points:qa,point:Zn,lines:fs,line:us,triangles:kl,triangle:Zu,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Yf=0,Wf=1,Xi=4,hi=5120,Oi=5121,Cl=5122,di=5123,Rt=5124,$t=5125,ua=34963,_t=35040,Jn=35044;function Ua(S,B,V,he){var xe={},we=0,_e={uint8:Oi,uint16:di};B.oes_element_index_uint&&(_e.uint32=$t);function Ye(Ne){this.id=we++,xe[this.id]=this,this.buffer=Ne,this.primType=Xi,this.vertCount=0,this.type=0}Ye.prototype.bind=function(){this.buffer.bind()};var or=[];function nr(Ne){var fe=or.pop();return fe||(fe=new Ye(V.create(null,ua,!0,!1)._buffer)),Zr(fe,Ne,_t,-1,-1,0,0),fe}function lr(Ne){or.push(Ne)}function Zr(Ne,fe,ke,Je,ar,ze,xr){Ne.buffer.bind();var mr;if(fe){var Wr=xr;!xr&&(!ot(fe)||et(fe)&&!ot(fe.data))&&(Wr=B.oes_element_index_uint?$t:di),V._initBuffer(Ne.buffer,fe,ke,Wr,3)}else S.bufferData(ua,ze,ke),Ne.buffer.dtype=mr||Oi,Ne.buffer.usage=ke,Ne.buffer.dimension=3,Ne.buffer.byteLength=ze;if(mr=xr,!xr){switch(Ne.buffer.dtype){case Oi:case hi:mr=Oi;break;case di:case Cl:mr=di;break;case $t:case Rt:mr=$t;break;default:}Ne.buffer.dtype=mr}Ne.type=mr;var Be=ar;Be<0&&(Be=Ne.buffer.byteLength,mr===di?Be>>=1:mr===$t&&(Be>>=2)),Ne.vertCount=Be;var Re=Je;if(Je<0){Re=Xi;var Mr=Ne.buffer.dimension;Mr===1&&(Re=Yf),Mr===2&&(Re=Wf),Mr===3&&(Re=Xi)}Ne.primType=Re}function Fr(Ne){he.elementsCount--,delete xe[Ne.id],Ne.buffer.destroy(),Ne.buffer=null}function br(Ne,fe){var ke=V.create(null,ua,!0),Je=new Ye(ke._buffer);he.elementsCount++;function ar(ze){if(!ze)ke(),Je.primType=Xi,Je.vertCount=0,Je.type=Oi;else if(typeof ze=="number")ke(ze),Je.primType=Xi,Je.vertCount=ze|0,Je.type=Oi;else{var xr=null,mr=Jn,Wr=-1,Be=-1,Re=0,Mr=0;Array.isArray(ze)||ot(ze)||et(ze)?xr=ze:("data"in ze&&(xr=ze.data),"usage"in ze&&(mr=Pt[ze.usage]),"primitive"in ze&&(Wr=Oo[ze.primitive]),"count"in ze&&(Be=ze.count|0),"type"in ze&&(Mr=_e[ze.type]),"length"in ze?Re=ze.length|0:(Re=Be,Mr===di||Mr===Cl?Re*=2:(Mr===$t||Mr===Rt)&&(Re*=4))),Zr(Je,xr,mr,Wr,Be,Re,Mr)}return ar}return ar(Ne),ar._reglType="elements",ar._elements=Je,ar.subdata=function(ze,xr){return ke.subdata(ze,xr),ar},ar.destroy=function(){Fr(Je)},ar}return{create:br,createStream:nr,destroyStream:lr,getElements:function(Ne){return typeof Ne=="function"&&Ne._elements instanceof Ye?Ne._elements:null},clear:function(){pr(xe).forEach(Fr)}}}var Pn=new Float32Array(1),ra=new Uint32Array(Pn.buffer),Ao=5123;function ol(S){for(var B=J.allocType(Ao,S.length),V=0;V>>31<<15,we=(he<<1>>>24)-127,_e=he>>13&1023;if(we<-24)B[V]=xe;else if(we<-14){var Ye=-14-we;B[V]=xe+(_e+1024>>Ye)}else we>15?B[V]=xe+31744:B[V]=xe+(we+15<<10)+_e}return B}function Si(S){return Array.isArray(S)||ot(S)}var Jp=34467,An=3553,Ll=34067,Bo=34069,pi=6408,rf=6406,zo=6407,To=6409,Dl=6410,Ju=32854,Go=32855,cs=36194,Mh=32819,$p=32820,$u=33635,Lv=34042,vs=6402,Fl=34041,Uo=35904,Mo=35906,mi=36193,tf=33776,hs=33777,ll=33778,af=33779,Dv=35986,Qu=35987,jf=34798,Fv=35840,qv=35841,Ku=35842,Rv=35843,ec=36196,So=5121,nf=5123,Xf=5125,Bi=5126,of=10242,Qp=10243,Kp=10497,Zf=33071,Sh=33648,Jf=10240,e1=10241,ql=9728,rc=9729,ds=9984,lf=9985,ps=9986,sl=9987,Eh=33170,fl=4352,r1=4353,tc=4354,t1=34046,a1=3317,n1=37440,kh=37441,$f=37443,Pv=37444,Eo=33984,Ch=[ds,ps,lf,sl],Ei=[0,To,Dl,zo,pi],Tn={};Tn[To]=Tn[rf]=Tn[vs]=1,Tn[Fl]=Tn[Dl]=2,Tn[zo]=Tn[Uo]=3,Tn[pi]=Tn[Mo]=4;function Zi(S){return"[object "+S+"]"}var Qf=Zi("HTMLCanvasElement"),ul=Zi("OffscreenCanvas"),sf=Zi("CanvasRenderingContext2D"),ac=Zi("ImageBitmap"),Nv=Zi("HTMLImageElement"),Iv=Zi("HTMLVideoElement"),i1=Object.keys(Nt).concat([Qf,ul,sf,ac,Nv,Iv]),so=[];so[So]=1,so[Bi]=4,so[mi]=2,so[nf]=2,so[Xf]=4;var wa=[];wa[Ju]=2,wa[Go]=2,wa[cs]=2,wa[Fl]=4,wa[tf]=.5,wa[hs]=.5,wa[ll]=1,wa[af]=1,wa[Dv]=.5,wa[Qu]=1,wa[jf]=1,wa[Fv]=.5,wa[qv]=.25,wa[Ku]=.5,wa[Rv]=.25,wa[ec]=.5;function Ov(S){return Array.isArray(S)&&(S.length===0||typeof S[0]=="number")}function Bv(S){if(!Array.isArray(S))return!1;var B=S.length;return!(B===0||!Si(S[0]))}function Ji(S){return Object.prototype.toString.call(S)}function zv(S){return Ji(S)===Qf}function Gv(S){return Ji(S)===ul}function o1(S){return Ji(S)===sf}function l1(S){return Ji(S)===ac}function s1(S){return Ji(S)===Nv}function f1(S){return Ji(S)===Iv}function Kf(S){if(!S)return!1;var B=Ji(S);return i1.indexOf(B)>=0?!0:Ov(S)||Bv(S)||et(S)}function Uv(S){return Nt[Object.prototype.toString.call(S)]|0}function u1(S,B){var V=B.length;switch(S.type){case So:case nf:case Xf:case Bi:var he=J.allocType(S.type,V);he.set(B),S.data=he;break;case mi:S.data=ol(B);break;default:}}function Hv(S,B){return J.allocType(S.type===mi?Bi:S.type,B)}function nc(S,B){S.type===mi?(S.data=ol(B),J.freeType(B)):S.data=B}function Lh(S,B,V,he,xe,we){for(var _e=S.width,Ye=S.height,or=S.channels,nr=_e*Ye*or,lr=Hv(S,nr),Zr=0,Fr=0;Fr=1;)Ye+=_e*or*or,or/=2;return Ye}else return _e*V*he}function Dh(S,B,V,he,xe,we,_e){var Ye={"don't care":fl,"dont care":fl,nice:tc,fast:r1},or={repeat:Kp,clamp:Zf,mirror:Sh},nr={nearest:ql,linear:rc},lr=e({mipmap:sl,"nearest mipmap nearest":ds,"linear mipmap nearest":lf,"nearest mipmap linear":ps,"linear mipmap linear":sl},nr),Zr={none:0,browser:Pv},Fr={uint8:So,rgba4:Mh,rgb565:$u,"rgb5 a1":$p},br={alpha:rf,luminance:To,"luminance alpha":Dl,rgb:zo,rgba:pi,rgba4:Ju,"rgb5 a1":Go,rgb565:cs},Ne={};B.ext_srgb&&(br.srgb=Uo,br.srgba=Mo),B.oes_texture_float&&(Fr.float32=Fr.float=Bi),B.oes_texture_half_float&&(Fr.float16=Fr["half float"]=mi),B.webgl_depth_texture&&(e(br,{depth:vs,"depth stencil":Fl}),e(Fr,{uint16:nf,uint32:Xf,"depth stencil":Lv})),B.webgl_compressed_texture_s3tc&&e(Ne,{"rgb s3tc dxt1":tf,"rgba s3tc dxt1":hs,"rgba s3tc dxt3":ll,"rgba s3tc dxt5":af}),B.webgl_compressed_texture_atc&&e(Ne,{"rgb atc":Dv,"rgba atc explicit alpha":Qu,"rgba atc interpolated alpha":jf}),B.webgl_compressed_texture_pvrtc&&e(Ne,{"rgb pvrtc 4bppv1":Fv,"rgb pvrtc 2bppv1":qv,"rgba pvrtc 4bppv1":Ku,"rgba pvrtc 2bppv1":Rv}),B.webgl_compressed_texture_etc1&&(Ne["rgb etc1"]=ec);var fe=Array.prototype.slice.call(S.getParameter(Jp));Object.keys(Ne).forEach(function(z){var pe=Ne[z];fe.indexOf(pe)>=0&&(br[z]=pe)});var ke=Object.keys(br);V.textureFormats=ke;var Je=[];Object.keys(br).forEach(function(z){var pe=br[z];Je[pe]=z});var ar=[];Object.keys(Fr).forEach(function(z){var pe=Fr[z];ar[pe]=z});var ze=[];Object.keys(nr).forEach(function(z){var pe=nr[z];ze[pe]=z});var xr=[];Object.keys(lr).forEach(function(z){var pe=lr[z];xr[pe]=z});var mr=[];Object.keys(or).forEach(function(z){var pe=or[z];mr[pe]=z});var Wr=ke.reduce(function(z,pe){var be=br[pe];return be===To||be===rf||be===To||be===Dl||be===vs||be===Fl||B.ext_srgb&&(be===Uo||be===Mo)?z[be]=be:be===Go||pe.indexOf("rgba")>=0?z[be]=pi:z[be]=zo,z},{});function Be(){this.internalformat=pi,this.format=pi,this.type=So,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Pv,this.width=0,this.height=0,this.channels=0}function Re(z,pe){z.internalformat=pe.internalformat,z.format=pe.format,z.type=pe.type,z.compressed=pe.compressed,z.premultiplyAlpha=pe.premultiplyAlpha,z.flipY=pe.flipY,z.unpackAlignment=pe.unpackAlignment,z.colorSpace=pe.colorSpace,z.width=pe.width,z.height=pe.height,z.channels=pe.channels}function Mr(z,pe){if(!(typeof pe!="object"||!pe)){if("premultiplyAlpha"in pe&&(z.premultiplyAlpha=pe.premultiplyAlpha),"flipY"in pe&&(z.flipY=pe.flipY),"alignment"in pe&&(z.unpackAlignment=pe.alignment),"colorSpace"in pe&&(z.colorSpace=Zr[pe.colorSpace]),"type"in pe){var be=pe.type;z.type=Fr[be]}var Nr=z.width,Dt=z.height,Ht=z.channels,qr=!1;"shape"in pe?(Nr=pe.shape[0],Dt=pe.shape[1],pe.shape.length===3&&(Ht=pe.shape[2],qr=!0)):("radius"in pe&&(Nr=Dt=pe.radius),"width"in pe&&(Nr=pe.width),"height"in pe&&(Dt=pe.height),"channels"in pe&&(Ht=pe.channels,qr=!0)),z.width=Nr|0,z.height=Dt|0,z.channels=Ht|0;var N=!1;if("format"in pe){var U=pe.format,$=z.internalformat=br[U];z.format=Wr[$],U in Fr&&("type"in pe||(z.type=Fr[U])),U in Ne&&(z.compressed=!0),N=!0}!qr&&N?z.channels=Tn[z.format]:qr&&!N&&z.channels!==Ei[z.format]&&(z.format=z.internalformat=Ei[z.channels])}}function dr(z){S.pixelStorei(n1,z.flipY),S.pixelStorei(kh,z.premultiplyAlpha),S.pixelStorei($f,z.colorSpace),S.pixelStorei(a1,z.unpackAlignment)}function fr(){Be.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function ur(z,pe){var be=null;if(Kf(pe)?be=pe:pe&&(Mr(z,pe),"x"in pe&&(z.xOffset=pe.x|0),"y"in pe&&(z.yOffset=pe.y|0),Kf(pe.data)&&(be=pe.data)),pe.copy){var Nr=xe.viewportWidth,Dt=xe.viewportHeight;z.width=z.width||Nr-z.xOffset,z.height=z.height||Dt-z.yOffset,z.needsCopy=!0}else if(!be)z.width=z.width||1,z.height=z.height||1,z.channels=z.channels||4;else if(ot(be))z.channels=z.channels||4,z.data=be,!("type"in pe)&&z.type===So&&(z.type=Uv(be));else if(Ov(be))z.channels=z.channels||4,u1(z,be),z.alignment=1,z.needsFree=!0;else if(et(be)){var Ht=be.data;!Array.isArray(Ht)&&z.type===So&&(z.type=Uv(Ht));var qr=be.shape,N=be.stride,U,$,de,Te,ce,se;qr.length===3?(de=qr[2],se=N[2]):(de=1,se=1),U=qr[0],$=qr[1],Te=N[0],ce=N[1],z.alignment=1,z.width=U,z.height=$,z.channels=de,z.format=z.internalformat=Ei[de],z.needsFree=!0,Lh(z,Ht,Te,ce,se,be.offset)}else if(zv(be)||Gv(be)||o1(be))zv(be)||Gv(be)?z.element=be:z.element=be.canvas,z.width=z.element.width,z.height=z.element.height,z.channels=4;else if(l1(be))z.element=be,z.width=be.width,z.height=be.height,z.channels=4;else if(s1(be))z.element=be,z.width=be.naturalWidth,z.height=be.naturalHeight,z.channels=4;else if(f1(be))z.element=be,z.width=be.videoWidth,z.height=be.videoHeight,z.channels=4;else if(Bv(be)){var te=z.width||be[0].length,W=z.height||be.length,K=z.channels;Si(be[0][0])?K=K||be[0][0].length:K=K||1;for(var Y=Se.shape(be),ve=1,Ce=0;Ce>=Dt,be.height>>=Dt,ur(be,Nr[Dt]),z.mipmask|=1<=0&&!("faces"in pe)&&(z.genMipmaps=!0)}if("mag"in pe){var Nr=pe.mag;z.magFilter=nr[Nr]}var Dt=z.wrapS,Ht=z.wrapT;if("wrap"in pe){var qr=pe.wrap;typeof qr=="string"?Dt=Ht=or[qr]:Array.isArray(qr)&&(Dt=or[qr[0]],Ht=or[qr[1]])}else{if("wrapS"in pe){var N=pe.wrapS;Dt=or[N]}if("wrapT"in pe){var U=pe.wrapT;Ht=or[U]}}if(z.wrapS=Dt,z.wrapT=Ht,"anisotropic"in pe){var $=pe.anisotropic;z.anisotropic=pe.anisotropic}if("mipmap"in pe){var de=!1;switch(typeof pe.mipmap){case"string":z.mipmapHint=Ye[pe.mipmap],z.genMipmaps=!0,de=!0;break;case"boolean":de=z.genMipmaps=pe.mipmap;break;case"object":z.genMipmaps=!1,de=!0;break;default:}de&&!("min"in pe)&&(z.minFilter=ds)}}function Za(z,pe){S.texParameteri(pe,e1,z.minFilter),S.texParameteri(pe,Jf,z.magFilter),S.texParameteri(pe,of,z.wrapS),S.texParameteri(pe,Qp,z.wrapT),B.ext_texture_filter_anisotropic&&S.texParameteri(pe,t1,z.anisotropic),z.genMipmaps&&(S.hint(Eh,z.mipmapHint),S.generateMipmap(pe))}var on=0,ma={},ya=V.maxTextureUnits,Sa=Array(ya).map(function(){return null});function Tt(z){Be.call(this),this.mipmask=0,this.internalformat=pi,this.id=on++,this.refCount=1,this.target=z,this.texture=S.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ut,_e.profile&&(this.stats={size:0})}function Ra(z){S.activeTexture(Eo),S.bindTexture(z.target,z.texture)}function Wt(){var z=Sa[0];z?S.bindTexture(z.target,z.texture):S.bindTexture(An,null)}function Ja(z){var pe=z.texture,be=z.unit,Nr=z.target;be>=0&&(S.activeTexture(Eo+be),S.bindTexture(Nr,null),Sa[be]=null),S.deleteTexture(pe),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete ma[z.id],we.textureCount--}e(Tt.prototype,{bind:function(){var z=this;z.bindCount+=1;var pe=z.unit;if(pe<0){for(var be=0;be0)continue;Nr.unit=-1}Sa[be]=z,pe=be;break}pe>=ya,_e.profile&&we.maxTextureUnits>ce)-de,se.height=se.height||(be.height>>ce)-Te,Ra(be),jr(se,An,de,Te,ce),Wt(),kr(se),Nr}function Ht(qr,N){var U=qr|0,$=N|0||U;if(U===be.width&&$===be.height)return Nr;Nr.width=be.width=U,Nr.height=be.height=$,Ra(be);for(var de=0;be.mipmask>>de;++de){var Te=U>>de,ce=$>>de;if(!Te||!ce)break;S.texImage2D(An,de,be.format,Te,ce,0,be.format,be.type,null)}return Wt(),_e.profile&&(be.stats.size=Rl(be.internalformat,be.type,U,$,!1,!1)),Nr}return Nr(z,pe),Nr.subimage=Dt,Nr.resize=Ht,Nr._reglType="texture2d",Nr._texture=be,_e.profile&&(Nr.stats=be.stats),Nr.destroy=function(){be.decRef()},Nr}function sn(z,pe,be,Nr,Dt,Ht){var qr=new Tt(Ll);ma[qr.id]=qr,we.cubeCount++;var N=new Array(6);function U(Te,ce,se,te,W,K){var Y,ve=qr.texInfo;for(Ut.call(ve),Y=0;Y<6;++Y)N[Y]=Lt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(Y=0;Y<6;++Y)ft(N[Y],Ce,Ce)}else if(typeof Te=="object")if(ce)St(N[0],Te),St(N[1],ce),St(N[2],se),St(N[3],te),St(N[4],W),St(N[5],K);else if(Ya(ve,Te),Mr(qr,Te),"faces"in Te){var $e=Te.faces;for(Y=0;Y<6;++Y)Re(N[Y],qr),St(N[Y],$e[Y])}else for(Y=0;Y<6;++Y)St(N[Y],Te);for(Re(qr,N[0]),ve.genMipmaps?qr.mipmask=(N[0].width<<1)-1:qr.mipmask=N[0].mipmask,qr.internalformat=N[0].internalformat,U.width=N[0].width,U.height=N[0].height,Ra(qr),Y=0;Y<6;++Y)aa(N[Y],Bo+Y);for(Za(ve,Ll),Wt(),_e.profile&&(qr.stats.size=Rl(qr.internalformat,qr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Je[qr.internalformat],U.type=ar[qr.type],U.mag=ze[ve.magFilter],U.min=xr[ve.minFilter],U.wrapS=mr[ve.wrapS],U.wrapT=mr[ve.wrapT],Y=0;Y<6;++Y)nn(N[Y]);return U}function $(Te,ce,se,te,W){var K=se|0,Y=te|0,ve=W|0,Ce=gr();return Re(Ce,qr),Ce.width=0,Ce.height=0,ur(Ce,ce),Ce.width=Ce.width||(qr.width>>ve)-K,Ce.height=Ce.height||(qr.height>>ve)-Y,Ra(qr),jr(Ce,Bo+Te,K,Y,ve),Wt(),kr(Ce),U}function de(Te){var ce=Te|0;if(ce!==qr.width){U.width=qr.width=ce,U.height=qr.height=ce,Ra(qr);for(var se=0;se<6;++se)for(var te=0;qr.mipmask>>te;++te)S.texImage2D(Bo+se,te,qr.format,ce>>te,ce>>te,0,qr.format,qr.type,null);return Wt(),_e.profile&&(qr.stats.size=Rl(qr.internalformat,qr.type,U.width,U.height,!1,!0)),U}}return U(z,pe,be,Nr,Dt,Ht),U.subimage=$,U.resize=de,U._reglType="textureCube",U._texture=qr,_e.profile&&(U.stats=qr.stats),U.destroy=function(){qr.decRef()},U}function dt(){for(var z=0;z>Nr,be.height>>Nr,0,be.internalformat,be.type,null);else for(var Dt=0;Dt<6;++Dt)S.texImage2D(Bo+Dt,Nr,be.internalformat,be.width>>Nr,be.height>>Nr,0,be.internalformat,be.type,null);Za(be.texInfo,be.target)})}function Qt(){for(var z=0;z=0?nn=!0:or.indexOf(Ut)>=0&&(nn=!1))),("depthTexture"in Tt||"depthStencilTexture"in Tt)&&(Sa=!!(Tt.depthTexture||Tt.depthStencilTexture)),"depth"in Tt&&(typeof Tt.depth=="boolean"?aa=Tt.depth:(on=Tt.depth,Ma=!1)),"stencil"in Tt&&(typeof Tt.stencil=="boolean"?Ma=Tt.stencil:(ma=Tt.stencil,aa=!1)),"depthStencil"in Tt&&(typeof Tt.depthStencil=="boolean"?aa=Ma=Tt.depthStencil:(ya=Tt.depthStencil,aa=!1,Ma=!1))}var Wt=null,Ja=null,ln=null,sn=null;if(Array.isArray(Lt))Wt=Lt.map(Ne);else if(Lt)Wt=[Ne(Lt)];else for(Wt=new Array(Za),st=0;st0&&(kr.depth=ur[0].depth,kr.stencil=ur[0].stencil,kr.depthStencil=ur[0].depthStencil),ur[gr]?ur[gr](kr):ur[gr]=Re(kr)}return e(Sr,{width:st,height:st,color:Ut})}function jr(ut){var gr,kr=ut|0;if(kr===Sr.width)return Sr;var st=Sr.color;for(gr=0;gr=st.byteLength?ft.subdata(st):(ft.destroy(),Re.buffers[ut]=null)),Re.buffers[ut]||(ft=Re.buffers[ut]=xe.create(gr,r0,!1,!0)),kr.buffer=xe.getBuffer(ft),kr.size=kr.buffer.dimension|0,kr.normalized=!1,kr.type=kr.buffer.dtype,kr.offset=0,kr.stride=0,kr.divisor=0,kr.state=1,Sr[ut]=1}else xe.getBuffer(gr)?(kr.buffer=xe.getBuffer(gr),kr.size=kr.buffer.dimension|0,kr.normalized=!1,kr.type=kr.buffer.dtype,kr.offset=0,kr.stride=0,kr.divisor=0,kr.state=1):xe.getBuffer(gr.buffer)?(kr.buffer=xe.getBuffer(gr.buffer),kr.size=(+gr.size||kr.buffer.dimension)|0,kr.normalized=!!gr.normalized||!1,"type"in gr?kr.type=vn[gr.type]:kr.type=kr.buffer.dtype,kr.offset=(gr.offset||0)|0,kr.stride=(gr.stride||0)|0,kr.divisor=(gr.divisor||0)|0,kr.state=1):"x"in gr&&(kr.x=+gr.x||0,kr.y=+gr.y||0,kr.z=+gr.z||0,kr.w=+gr.w||0,kr.state=2)}for(var St=0;St1)for(var dr=0;drfe&&(fe=ke.stats.uniformsCount)}),fe},V.getMaxAttributesCount=function(){var fe=0;return lr.forEach(function(ke){ke.stats.attributesCount>fe&&(fe=ke.stats.attributesCount)}),fe});function Ne(){xe={},we={};for(var fe=0;fe16&&(V=cl(V,S.length*8));for(var he=Array(16),xe=Array(16),we=0;we<16;we++)he[we]=V[we]^909522486,xe[we]=V[we]^1549556828;var _e=cl(he.concat(au(B)),512+B.length*8);return i0(cl(xe.concat(_e),768))}function Nh(S){for(var B=Rh?"0123456789ABCDEF":"0123456789abcdef",V="",he,xe=0;xe>>4&15)+B.charAt(he&15);return V}function T1(S){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V="",he=S.length,xe=0;xeS.length*8?V+=w1:V+=B.charAt(we>>>6*(3-_e)&63);return V}function M1(S,B){var V=B.length,he=Array(),xe,we,_e,Ye,or=Array(Math.ceil(S.length/2));for(xe=0;xe0;){for(Ye=Array(),_e=0,xe=0;xe0||we>0)&&(Ye[Ye.length]=we);he[he.length]=_e,or=Ye}var nr="";for(xe=he.length-1;xe>=0;xe--)nr+=B.charAt(he[xe]);var lr=Math.ceil(S.length*8/(Math.log(B.length)/Math.log(2)));for(xe=nr.length;xe>>6&31,128|he&63):he<=65535?B+=String.fromCharCode(224|he>>>12&15,128|he>>>6&63,128|he&63):he<=2097151&&(B+=String.fromCharCode(240|he>>>18&7,128|he>>>12&63,128|he>>>6&63,128|he&63));return B}function au(S){for(var B=Array(S.length>>2),V=0;V>5]|=(S.charCodeAt(V/8)&255)<<24-V%32;return B}function i0(S){for(var B="",V=0;V>5]>>>24-V%32&255);return B}function Bn(S,B){return S>>>B|S<<32-B}function o0(S,B){return S>>>B}function Ih(S,B,V){return S&B^~S&V}function Oh(S,B,V){return S&B^S&V^B&V}function l0(S){return Bn(S,2)^Bn(S,13)^Bn(S,22)}function Bh(S){return Bn(S,6)^Bn(S,11)^Bn(S,25)}function sc(S){return Bn(S,7)^Bn(S,18)^o0(S,3)}function fc(S){return Bn(S,17)^Bn(S,19)^o0(S,10)}var E1=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function cl(S,B){var V=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),xe,we,_e,Ye,or,nr,lr,Zr,Fr,br,Ne,fe;for(S[B>>5]|=128<<24-B%32,S[(B+64>>9<<4)+15]=B,Fr=0;Fr>16)+(B>>16)+(V>>16);return he<<16|V&65535}function Co(S){return Array.prototype.slice.call(S)}function Lo(S){return Co(S).join("")}function zh(S){var B=S&&S.cache,V=0,he=[],xe=[],we=[];function _e(Ne,fe){var ke=fe&&fe.stable;if(!ke){for(var Je=0;Je0&&(Ne.push(ar,"="),Ne.push.apply(Ne,Co(arguments)),Ne.push(";")),ar}return e(fe,{def:Je,toString:function(){return Lo([ke.length>0?"var "+ke.join(",")+";":"",Lo(Ne)])}})}function or(){var Ne=Ye(),fe=Ye(),ke=Ne.toString,Je=fe.toString;function ar(ze,xr){fe(ze,xr,"=",Ne.def(ze,xr),";")}return e(function(){Ne.apply(Ne,Co(arguments))},{def:Ne.def,entry:Ne,exit:fe,save:ar,set:function(ze,xr,mr){ar(ze,xr),Ne(ze,xr,"=",mr,";")},toString:function(){return ke()+Je()}})}function nr(){var Ne=Lo(arguments),fe=or(),ke=or(),Je=fe.toString,ar=ke.toString;return e(fe,{then:function(){return fe.apply(fe,Co(arguments)),this},else:function(){return ke.apply(ke,Co(arguments)),this},toString:function(){var ze=ar();return ze&&(ze="else{"+ze+"}"),Lo(["if(",Ne,"){",Je(),"}",ze])}})}var lr=Ye(),Zr={};function Fr(Ne,fe){var ke=[];function Je(){var Wr="a"+ke.length;return ke.push(Wr),Wr}fe=fe||0;for(var ar=0;ar":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Re={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ue={cw:w,ccw:C};function er(S){return Array.isArray(S)||ot(S)||et(S)}function tr(S){return S.sort(function(B,V){return B===si?-1:V===si?1:B=1,he>=2,B)}else if(V===_s){var xe=S.data;return new Le(xe.thisDep,xe.contextDep,xe.propDep,B)}else{if(V===vc)return new Le(!1,!1,!1,B);if(V===vf){for(var we=!1,_e=!1,We=!1,or=0;or=1&&(_e=!0),lr>=2&&(We=!0)}else nr.type===_s&&(we=we||nr.data.thisDep,_e=_e||nr.data.contextDep,We=We||nr.data.propDep)}return new Le(we,_e,We,B)}else return new Le(V===cf,V===cc,V===uf,B)}}var yt=new Le(!1,!1,!1,function(){});function kt(S,B,V,he,xe,we,_e,We,or,nr,lr,Zr,Fr,br,Ne,fe){var ke=nr.Record,Je={add:32774,subtract:32778,"reverse subtract":32779};V.ext_blend_minmax&&(Je.min=L,Je.max=D);var ar=V.angle_instanced_arrays,ze=V.webgl_draw_buffers,xr=V.oes_vertex_array_object,mr={dirty:!0,profile:fe.profile},Wr={},Be=[],qe={},Mr={};function dr(N){return N.replace(".","_")}function fr(N,U,Q){var de=dr(N);Be.push(N),Wr[de]=mr[de]=!!Q,qe[de]=U}function ur(N,U,Q){var de=dr(N);Be.push(N),Array.isArray(Q)?(mr[de]=Q.slice(),Wr[de]=Q.slice()):mr[de]=Wr[de]=Q,Mr[de]=U}function Sr(N){return!!isNaN(N)}fr(hc,Lp),fr(s0,Cp),ur(f0,"blendColor",[0,0,0,0]),ur(iu,"blendEquationSeparate",[oe,oe]),ur(ou,"blendFuncSeparate",[ne,j,ne,j]),fr(dc,Hh,!0),ur(pc,"depthFunc",me),ur(mc,"depthRange",[0,1]),ur(yc,"depthMask",!0),ur(lu,lu,[!0,!0,!0,!0]),fr(hf,Uh),ur(u0,"cullFace",y),ur(su,su,C),ur(df,df,1),fr(gc,wc),ur(fu,"polygonOffset",[0,0]),fr(pf,Yh),fr(mf,Ac),ur(yf,"sampleCoverage",[1,!1]),fr(bc,Dp),ur(uu,"stencilMask",-1),ur(Ci,"stencilFunc",[G,0,-1]),ur(gf,"stencilOpSeparate",[h,q,q,q]),ur(vl,"stencilOpSeparate",[y,q,q,q]),fr(cu,Vh),ur(hl,"scissor",[0,0,S.drawingBufferWidth,S.drawingBufferHeight]),ur(si,si,[0,0,S.drawingBufferWidth,S.drawingBufferHeight]);var jr={gl:S,context:Fr,strings:B,next:Wr,current:mr,draw:Zr,elements:we,buffer:xe,shader:lr,attributes:nr.state,vao:nr,uniforms:or,framebuffer:We,extensions:V,timer:br,isBufferArgs:er},ut={primTypes:Oo,compareFuncs:Me,blendFuncs:Ke,blendEquations:Je,stencilOps:Re,glTypes:vn,orientationType:Ue};ze&&(ut.backBuffer=[y],ut.drawBuffer=k(he.maxDrawbuffers,function(N){return N===0?[0]:k(N,function(U){return Xe+U})}));var gr=0;function kr(){var N=zh({cache:Ne}),U=N.link,Q=N.global;N.id=gr++,N.batchId="0";var de=U(jr),Te=N.shared={props:"a0"};Object.keys(jr).forEach(function(K){Te[K]=Q.def(de,".",K)});var ce=N.next={},se=N.current={};Object.keys(Mr).forEach(function(K){Array.isArray(mr[K])&&(ce[K]=Q.def(Te.next,".",K),se[K]=Q.def(Te.current,".",K))});var te=N.constants={};Object.keys(ut).forEach(function(K){te[K]=Q.def(JSON.stringify(ut[K]))}),N.invoke=function(K,Y){switch(Y.type){case nu:var ve=["this",Te.context,Te.props,N.batchId];return K.def(U(Y.data),".call(",ve.slice(0,Math.max(Y.data.length+1,4)),")");case uf:return K.def(Te.props,Y.data);case cc:return K.def(Te.context,Y.data);case cf:return K.def("this",Y.data);case _s:return Y.data.append(N,K),Y.data.ref;case vc:return Y.data.toString();case vf:return Y.data.map(function(Ce){return N.invoke(K,Ce)})}},N.attribCache={};var W={};return N.scopeAttrib=function(K){var Y=B.id(K);if(Y in W)return W[Y];var ve=nr.scope[Y];ve||(ve=nr.scope[Y]=new ke);var Ce=W[Y]=U(ve);return Ce},N}function st(N){var U=N.static,Q=N.dynamic,de;if(ws in U){var Te=!!U[ws];de=zr(function(se,te){return Te}),de.enable=Te}else if(ws in Q){var ce=Q[ws];de=tt(ce,function(se,te){return se.invoke(te,ce)})}return de}function ft(N,U){var Q=N.static,de=N.dynamic;if(Lo in Q){var Te=Q[Lo];return Te?(Te=We.getFramebuffer(Te),zr(function(se,te){var W=se.link(Te),K=se.shared;te.set(K.framebuffer,".next",W);var Y=K.context;return te.set(Y,"."+Qi,W+".width"),te.set(Y,"."+Ki,W+".height"),W})):zr(function(se,te){var W=se.shared;te.set(W.framebuffer,".next","null");var K=W.context;return te.set(K,"."+Qi,K+"."+xc),te.set(K,"."+Ki,K+"."+_c),"null"})}else if(Lo in de){var ce=de[Lo];return tt(ce,function(se,te){var W=se.invoke(te,ce),K=se.shared,Y=K.framebuffer,ve=te.def(Y,".getFramebuffer(",W,")");te.set(Y,".next",ve);var Ce=K.context;return te.set(Ce,"."+Qi,ve+"?"+ve+".width:"+Ce+"."+xc),te.set(Ce,"."+Ki,ve+"?"+ve+".height:"+Ce+"."+_c),ve})}else return null}function St(N,U,Q){var de=N.static,Te=N.dynamic;function ce(W){if(W in de){var K=de[W],Y=!0,ve=K.x|0,Ce=K.y|0,$e,$r;return"width"in K?$e=K.width|0:Y=!1,"height"in K?$r=K.height|0:Y=!1,new Le(!Y&&U&&U.thisDep,!Y&&U&&U.contextDep,!Y&&U&&U.propDep,function(Xr,Gr){var Br=Xr.shared.context,Tr=$e;"width"in K||(Tr=Gr.def(Br,".",Qi,"-",ve));var qr=$r;return"height"in K||(qr=Gr.def(Br,".",Ki,"-",Ce)),[ve,Ce,Tr,qr]})}else if(W in Te){var Er=Te[W],Ar=tt(Er,function(Xr,Gr){var Br=Xr.invoke(Gr,Er),Tr=Xr.shared.context,qr=Gr.def(Br,".x|0"),Ir=Gr.def(Br,".y|0"),ct=Gr.def('"width" in ',Br,"?",Br,".width|0:","(",Tr,".",Qi,"-",qr,")"),Kt=Gr.def('"height" in ',Br,"?",Br,".height|0:","(",Tr,".",Ki,"-",Ir,")");return[qr,Ir,ct,Kt]});return U&&(Ar.thisDep=Ar.thisDep||U.thisDep,Ar.contextDep=Ar.contextDep||U.contextDep,Ar.propDep=Ar.propDep||U.propDep),Ar}else return U?new Le(U.thisDep,U.contextDep,U.propDep,function(Xr,Gr){var Br=Xr.shared.context;return[0,0,Gr.def(Br,".",Qi),Gr.def(Br,".",Ki)]}):null}var se=ce(si);if(se){var te=se;se=new Le(se.thisDep,se.contextDep,se.propDep,function(W,K){var Y=te.append(W,K),ve=W.shared.context;return K.set(ve,"."+Ep,Y[2]),K.set(ve,"."+kp,Y[3]),Y})}return{viewport:se,scissor_box:ce(hl)}}function aa(N,U){var Q=N.static,de=typeof Q[dl]=="string"&&typeof Q[Ho]=="string";if(de){if(Object.keys(U.dynamic).length>0)return null;var Te=U.static,ce=Object.keys(Te);if(ce.length>0&&typeof Te[ce[0]]=="number"){for(var se=[],te=0;te"+qr+"?"+Y+".constant["+qr+"]:0;"}).join(""),"}}else{","if(",$e,"(",Y,".buffer)){",Xr,"=",$r,".createStream(",vo,",",Y,".buffer);","}else{",Xr,"=",$r,".getBuffer(",Y,".buffer);","}",Gr,'="type" in ',Y,"?",Ce.glTypes,"[",Y,".type]:",Xr,".dtype;",Er.normalized,"=!!",Y,".normalized;");function Br(Tr){K(Er[Tr],"=",Y,".",Tr,"|0;")}return Br("size"),Br("offset"),Br("stride"),Br("divisor"),K("}}"),K.exit("if(",Er.isStream,"){",$r,".destroyStream(",Xr,");","}"),Er}Te[ce]=tt(se,te)}),Te}function Za(N){var U=N.static,Q=N.dynamic,de={};return Object.keys(U).forEach(function(Te){var ce=U[Te];de[Te]=zr(function(se,te){return typeof ce=="number"||typeof ce=="boolean"?""+ce:se.link(ce)})}),Object.keys(Q).forEach(function(Te){var ce=Q[Te];de[Te]=tt(ce,function(se,te){return se.invoke(te,ce)})}),de}function on(N,U,Q,de,Te){var ce=N.static,se=N.dynamic,te=aa(N,U),W=ft(N,Te),K=St(N,W,Te),Y=Lt(N,Te),ve=nn(N,Te),Ce=Ma(N,Te,te);function $e(Br){var Tr=K[Br];Tr&&(ve[Br]=Tr)}$e(si),$e(dr(hl));var $r=Object.keys(ve).length>0,Er={framebuffer:W,draw:Y,shader:Ce,state:ve,dirty:$r,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Er.profile=st(N,Te),Er.uniforms=Ut(Q,Te),Er.drawVAO=Er.scopeVAO=Y.vao,!Er.drawVAO&&Ce.program&&!te&&V.angle_instanced_arrays&&Y.static.elements){var Ar=!0,Xr=Ce.program.attributes.map(function(Br){var Tr=U.static[Br];return Ar=Ar&&!!Tr,Tr});if(Ar&&Xr.length>0){var Gr=nr.getVAO(nr.createVAO({attributes:Xr,elements:Y.static.elements}));Er.drawVAO=new Le(null,null,null,function(Br,Tr){return Br.link(Gr)}),Er.useVAO=!0}}return te?Er.useVAO=!0:Er.attributes=Ya(U,Te),Er.context=Za(de,Te),Er}function ma(N,U,Q){var de=N.shared,Te=de.context,ce=N.scope();Object.keys(Q).forEach(function(se){U.save(Te,"."+se);var te=Q[se],W=te.append(N,U);Array.isArray(W)?ce(Te,".",se,"=[",W.join(),"];"):ce(Te,".",se,"=",W,";")}),U(ce)}function ya(N,U,Q,de){var Te=N.shared,ce=Te.gl,se=Te.framebuffer,te;ze&&(te=U.def(Te.extensions,".webgl_draw_buffers"));var W=N.constants,K=W.drawBuffer,Y=W.backBuffer,ve;Q?ve=Q.append(N,U):ve=U.def(se,".next"),de||U("if(",ve,"!==",se,".cur){"),U("if(",ve,"){",ce,".bindFramebuffer(",ye,",",ve,".framebuffer);"),ze&&U(te,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ce,".bindFramebuffer(",ye,",null);"),ze&&U(te,".drawBuffersWEBGL(",Y,");"),U("}",se,".cur=",ve,";"),de||U("}")}function Sa(N,U,Q){var de=N.shared,Te=de.gl,ce=N.current,se=N.next,te=de.current,W=de.next,K=N.cond(te,".dirty");Be.forEach(function(Y){var ve=dr(Y);if(!(ve in Q.state)){var Ce,$e;if(ve in se){Ce=se[ve],$e=ce[ve];var $r=k(mr[ve].length,function(Ar){return K.def(Ce,"[",Ar,"]")});K(N.cond($r.map(function(Ar,Xr){return Ar+"!=="+$e+"["+Xr+"]"}).join("||")).then(Te,".",Mr[ve],"(",$r,");",$r.map(function(Ar,Xr){return $e+"["+Xr+"]="+Ar}).join(";"),";"))}else{Ce=K.def(W,".",ve);var Er=N.cond(Ce,"!==",te,".",ve);K(Er),ve in qe?Er(N.cond(Ce).then(Te,".enable(",qe[ve],");").else(Te,".disable(",qe[ve],");"),te,".",ve,"=",Ce,";"):Er(Te,".",Mr[ve],"(",Ce,");",te,".",ve,"=",Ce,";")}}}),Object.keys(Q.state).length===0&&K(te,".dirty=false;"),U(K)}function Tt(N,U,Q,de){var Te=N.shared,ce=N.current,se=Te.current,te=Te.gl,W;tr(Object.keys(Q)).forEach(function(K){var Y=Q[K];if(!(de&&!de(Y))){var ve=Y.append(N,U);if(qe[K]){var Ce=qe[K];Dr(Y)?(W=N.link(ve,{stable:!0}),U(N.cond(W).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(se,".",K,"=",W,";")):(U(N.cond(ve).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(se,".",K,"=",ve,";"))}else if(Si(ve)){var $e=ce[K];U(te,".",Mr[K],"(",ve,");",ve.map(function($r,Er){return $e+"["+Er+"]="+$r}).join(";"),";")}else Dr(Y)?(W=N.link(ve,{stable:!0}),U(te,".",Mr[K],"(",W,");",se,".",K,"=",W,";")):U(te,".",Mr[K],"(",ve,");",se,".",K,"=",ve,";")}})}function qa(N,U){ar&&(N.instancing=U.def(N.shared.extensions,".angle_instanced_arrays"))}function Wt(N,U,Q,de,Te){var ce=N.shared,se=N.stats,te=ce.current,W=ce.timer,K=Q.profile;function Y(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function $e(Br){ve=U.def(),Br(ve,"=",Y(),";"),typeof Te=="string"?Br(se,".count+=",Te,";"):Br(se,".count++;"),br&&(de?(Ce=U.def(),Br(Ce,"=",W,".getNumPendingQueries();")):Br(W,".beginQuery(",se,");"))}function $r(Br){Br(se,".cpuTime+=",Y(),"-",ve,";"),br&&(de?Br(W,".pushScopeStats(",Ce,",",W,".getNumPendingQueries(),",se,");"):Br(W,".endQuery();"))}function Er(Br){var Tr=U.def(te,".profile");U(te,".profile=",Br,";"),U.exit(te,".profile=",Tr,";")}var Ar;if(K){if(Dr(K)){K.enable?($e(U),$r(U.exit),Er("true")):Er("false");return}Ar=K.append(N,U),Er(Ar)}else Ar=U.def(te,".profile");var Xr=N.block();$e(Xr),U("if(",Ar,"){",Xr,"}");var Gr=N.block();$r(Gr),U.exit("if(",Ar,"){",Gr,"}")}function Ja(N,U,Q,de,Te){var ce=N.shared;function se(W){switch(W){case pl:case Ol:case Il:return 2;case an:case As:case _f:return 3;case xf:case du:case mu:return 4;default:return 1}}function te(W,K,Y){var ve=ce.gl,Ce=U.def(W,".location"),$e=U.def(ce.attributes,"[",Ce,"]"),$r=Y.state,Er=Y.buffer,Ar=[Y.x,Y.y,Y.z,Y.w],Xr=["buffer","normalized","offset","stride"];function Gr(){U("if(!",$e,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Tr=Y.type,qr;if(Y.size?qr=U.def(Y.size,"||",K):qr=K,U("if(",$e,".type!==",Tr,"||",$e,".size!==",qr,"||",Xr.map(function(ct){return $e+"."+ct+"!=="+Y[ct]}).join("||"),"){",ve,".bindBuffer(",vo,",",Er,".buffer);",ve,".vertexAttribPointer(",[Ce,qr,Tr,Y.normalized,Y.stride,Y.offset],");",$e,".type=",Tr,";",$e,".size=",qr,";",Xr.map(function(ct){return $e+"."+ct+"="+Y[ct]+";"}).join(""),"}"),ar){var Ir=Y.divisor;U("if(",$e,".divisor!==",Ir,"){",N.instancing,".vertexAttribDivisorANGLE(",[Ce,Ir],");",$e,".divisor=",Ir,";}")}}function Br(){U("if(",$e,".buffer){",ve,".disableVertexAttribArray(",Ce,");",$e,".buffer=null;","}if(",fo.map(function(Tr,qr){return $e+"."+Tr+"!=="+Ar[qr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Ar,");",fo.map(function(Tr,qr){return $e+"."+Tr+"="+Ar[qr]+";"}).join(""),"}")}$r===$i?Gr():$r===xs?Br():(U("if(",$r,"===",$i,"){"),Gr(),U("}else{"),Br(),U("}"))}de.forEach(function(W){var K=W.name,Y=Q.attributes[K],ve;if(Y){if(!Te(Y))return;ve=Y.append(N,U)}else{if(!Te(yt))return;var Ce=N.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function($e){ve[$e]=U.def(Ce,".",$e)})}te(N.link(W),se(W.info.type),ve)})}function ln(N,U,Q,de,Te,ce){for(var se=N.shared,te=se.gl,W,K=0;K1){for(var fn=[],Di=[],eo=0;eo>1)",Er],");")}function Ir(){Q(Ar,".drawArraysInstancedANGLE(",[Ce,$e,$r,Er],");")}Y&&Y!=="null"?Gr?qr():(Q("if(",Y,"){"),qr(),Q("}else{"),Ir(),Q("}")):Ir()}function Tr(){function qr(){Q(ce+".drawElements("+[Ce,$r,Xr,$e+"<<(("+Xr+"-"+uc+")>>1)"]+");")}function Ir(){Q(ce+".drawArrays("+[Ce,$e,$r]+");")}Y&&Y!=="null"?Gr?qr():(Q("if(",Y,"){"),qr(),Q("}else{"),Ir(),Q("}")):Ir()}ar&&(typeof Er!="number"||Er>=0)?typeof Er=="string"?(Q("if(",Er,">0){"),Br(),Q("}else if(",Er,"<0){"),Tr(),Q("}")):Br():Tr()}function pt(N,U,Q,de,Te){var ce=kr(),se=ce.proc("body",Te);return ar&&(ce.instancing=se.def(ce.shared.extensions,".angle_instanced_arrays")),N(ce,se,Q,de),ce.compile().body}function Rt(N,U,Q,de){qa(N,U),Q.useVAO?Q.drawVAO?U(N.shared.vao,".setVAO(",Q.drawVAO.append(N,U),");"):U(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(U(N.shared.vao,".setVAO(null);"),Ja(N,U,Q,de.attributes,function(){return!0})),ln(N,U,Q,de.uniforms,function(){return!0},!1),sn(N,U,U,Q)}function Qt(N,U){var Q=N.proc("draw",1);qa(N,Q),ma(N,Q,U.context),ya(N,Q,U.framebuffer),Sa(N,Q,U),Tt(N,Q,U.state),Wt(N,Q,U,!1,!0);var de=U.shader.progVar.append(N,Q);if(Q(N.shared.gl,".useProgram(",de,".program);"),U.shader.program)Rt(N,Q,U,U.shader.program);else{Q(N.shared.vao,".setVAO(null);");var Te=N.global.def("{}"),ce=Q.def(de,".id"),se=Q.def(Te,"[",ce,"]");Q(N.cond(se).then(se,".call(this,a0);").else(se,"=",Te,"[",ce,"]=",N.link(function(te){return pt(Rt,N,U,te,1)}),"(",de,");",se,".call(this,a0);"))}Object.keys(U.state).length>0&&Q(N.shared.current,".dirty=true;"),N.shared.vao&&Q(N.shared.vao,".setVAO(null);")}function z(N,U,Q,de){N.batchId="a1",qa(N,U);function Te(){return!0}Ja(N,U,Q,de.attributes,Te),ln(N,U,Q,de.uniforms,Te,!1),sn(N,U,U,Q)}function pe(N,U,Q,de){qa(N,U);var Te=Q.contextDep,ce=U.def(),se="a0",te="a1",W=U.def();N.shared.props=W,N.batchId=ce;var K=N.scope(),Y=N.scope();U(K.entry,"for(",ce,"=0;",ce,"<",te,";++",ce,"){",W,"=",se,"[",ce,"];",Y,"}",K.exit);function ve(Xr){return Xr.contextDep&&Te||Xr.propDep}function Ce(Xr){return!ve(Xr)}if(Q.needsContext&&ma(N,Y,Q.context),Q.needsFramebuffer&&ya(N,Y,Q.framebuffer),Tt(N,Y,Q.state,ve),Q.profile&&ve(Q.profile)&&Wt(N,Y,Q,!1,!0),de)Q.useVAO?Q.drawVAO?ve(Q.drawVAO)?Y(N.shared.vao,".setVAO(",Q.drawVAO.append(N,Y),");"):K(N.shared.vao,".setVAO(",Q.drawVAO.append(N,K),");"):K(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(K(N.shared.vao,".setVAO(null);"),Ja(N,K,Q,de.attributes,Ce),Ja(N,Y,Q,de.attributes,ve)),ln(N,K,Q,de.uniforms,Ce,!1),ln(N,Y,Q,de.uniforms,ve,!0),sn(N,K,Y,Q);else{var $e=N.global.def("{}"),$r=Q.shader.progVar.append(N,Y),Er=Y.def($r,".id"),Ar=Y.def($e,"[",Er,"]");Y(N.shared.gl,".useProgram(",$r,".program);","if(!",Ar,"){",Ar,"=",$e,"[",Er,"]=",N.link(function(Xr){return pt(z,N,Q,Xr,2)}),"(",$r,");}",Ar,".call(this,a0[",ce,"],",ce,");")}}function be(N,U){var Q=N.proc("batch",2);N.batchId="0",qa(N,Q);var de=!1,Te=!0;Object.keys(U.context).forEach(function($e){de=de||U.context[$e].propDep}),de||(ma(N,Q,U.context),Te=!1);var ce=U.framebuffer,se=!1;ce?(ce.propDep?de=se=!0:ce.contextDep&&de&&(se=!0),se||ya(N,Q,ce)):ya(N,Q,null),U.state.viewport&&U.state.viewport.propDep&&(de=!0);function te($e){return $e.contextDep&&de||$e.propDep}Sa(N,Q,U),Tt(N,Q,U.state,function($e){return!te($e)}),(!U.profile||!te(U.profile))&&Wt(N,Q,U,!1,"a1"),U.contextDep=de,U.needsContext=Te,U.needsFramebuffer=se;var W=U.shader.progVar;if(W.contextDep&&de||W.propDep)pe(N,Q,U,null);else{var K=W.append(N,Q);if(Q(N.shared.gl,".useProgram(",K,".program);"),U.shader.program)pe(N,Q,U,U.shader.program);else{Q(N.shared.vao,".setVAO(null);");var Y=N.global.def("{}"),ve=Q.def(K,".id"),Ce=Q.def(Y,"[",ve,"]");Q(N.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",Y,"[",ve,"]=",N.link(function($e){return pt(pe,N,U,$e,2)}),"(",K,");",Ce,".call(this,a0,a1);"))}}Object.keys(U.state).length>0&&Q(N.shared.current,".dirty=true;"),N.shared.vao&&Q(N.shared.vao,".setVAO(null);")}function Nr(N,U){var Q=N.proc("scope",3);N.batchId="a2";var de=N.shared,Te=de.current;if(ma(N,Q,U.context),U.framebuffer&&U.framebuffer.append(N,Q),tr(Object.keys(U.state)).forEach(function(te){var W=U.state[te],K=W.append(N,Q);Si(K)?K.forEach(function(Y,ve){Sr(Y)?Q.set(N.next[te],"["+ve+"]",Y):Q.set(N.next[te],"["+ve+"]",N.link(Y,{stable:!0}))}):Dr(W)?Q.set(de.next,"."+te,N.link(K,{stable:!0})):Q.set(de.next,"."+te,K)}),Wt(N,Q,U,!0,!0),[uo,vu,Fo,yi,Do].forEach(function(te){var W=U.draw[te];if(W){var K=W.append(N,Q);Sr(K)?Q.set(de.draw,"."+te,K):Q.set(de.draw,"."+te,N.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(te){var W=U.uniforms[te].append(N,Q);Array.isArray(W)&&(W="["+W.map(function(K){return Sr(K)?K:N.link(K,{stable:!0})})+"]"),Q.set(de.uniforms,"["+N.link(B.id(te),{stable:!0})+"]",W)}),Object.keys(U.attributes).forEach(function(te){var W=U.attributes[te].append(N,Q),K=N.scopeAttrib(te);Object.keys(new ke).forEach(function(Y){Q.set(K,"."+Y,W[Y])})}),U.scopeVAO){var ce=U.scopeVAO.append(N,Q);Sr(ce)?Q.set(de.vao,".targetVAO",ce):Q.set(de.vao,".targetVAO",N.link(ce,{stable:!0}))}function se(te){var W=U.shader[te];if(W){var K=W.append(N,Q);Sr(K)?Q.set(de.shader,"."+te,K):Q.set(de.shader,"."+te,N.link(K,{stable:!0}))}}se(Ho),se(dl),Object.keys(U.state).length>0&&(Q(Te,".dirty=true;"),Q.exit(Te,".dirty=true;")),Q("a1(",N.shared.context,",a0,",N.batchId,");")}function Dt(N){if(!(typeof N!="object"||Si(N))){for(var U=Object.keys(N),Q=0;Q=0;--pt){var Rt=jr[pt];Rt&&Rt(Ne,null,0)}V.flush(),lr&&lr.update()}function St(){!st&&jr.length>0&&(st=d.next(ft))}function aa(){st&&(d.cancel(ft),st=null)}function Ma(pt){pt.preventDefault(),xe=!0,aa(),ut.forEach(function(Rt){Rt()})}function Lt(pt){V.getError(),xe=!1,we.restore(),Wr.restore(),ar.restore(),Be.restore(),qe.restore(),Mr.restore(),xr.restore(),lr&&lr.restore(),dr.procs.refresh(),St(),gr.forEach(function(Rt){Rt()})}Sr&&(Sr.addEventListener(jt,Ma,!1),Sr.addEventListener(ca,Lt,!1));function nn(){jr.length=0,aa(),Sr&&(Sr.removeEventListener(jt,Ma),Sr.removeEventListener(ca,Lt)),Wr.clear(),Mr.clear(),qe.clear(),xr.clear(),Be.clear(),ze.clear(),ar.clear(),lr&&lr.clear(),kr.forEach(function(pt){pt()})}function Ut(pt){function Rt(ce){var se=e({},ce);delete se.uniforms,delete se.attributes,delete se.context,delete se.vao,"stencil"in se&&se.stencil.op&&(se.stencil.opBack=se.stencil.opFront=se.stencil.op,delete se.stencil.op);function te(W){if(W in se){var K=se[W];delete se[W],Object.keys(K).forEach(function(Y){se[W+"."+Y]=K[Y]})}}return te("blend"),te("depth"),te("cull"),te("stencil"),te("polygonOffset"),te("scissor"),te("sample"),"vao"in ce&&(se.vao=ce.vao),se}function Qt(ce,se){var te={},W={};return Object.keys(ce).forEach(function(K){var Y=ce[K];if(v.isDynamic(Y)){W[K]=v.unbox(Y,K);return}else if(se&&Array.isArray(Y)){for(var ve=0;ve0)return N.call(this,de(ce|0),ce|0)}else if(Array.isArray(ce)){if(ce.length)return N.call(this,ce,ce.length)}else return Rr.call(this,ce)}return e(Te,{stats:Dt,destroy:function(){Ht.destroy()}})}var Ya=Mr.setFBO=Ut({framebuffer:v.define.call(null,Xa,"framebuffer")});function Za(pt,Rt){var Qt=0;dr.procs.poll();var z=Rt.color;z&&(V.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=xn),"depth"in Rt&&(V.clearDepth(+Rt.depth),Qt|=Da),"stencil"in Rt&&(V.clearStencil(Rt.stencil|0),Qt|=ht),V.clear(Qt)}function on(pt){if("framebuffer"in pt)if(pt.framebuffer&&pt.framebuffer_reglType==="framebufferCube")for(var Rt=0;Rt<6;++Rt)Ya(e({framebuffer:pt.framebuffer.faces[Rt]},pt),Za);else Ya(pt,Za);else Za(null,pt)}function ma(pt){jr.push(pt);function Rt(){var Qt=$n(jr,pt);function z(){var pe=$n(jr,z);jr[pe]=jr[jr.length-1],jr.length-=1,jr.length<=0&&aa()}jr[Qt]=z}return St(),{cancel:Rt}}function ya(){var pt=ur.viewport,Rt=ur.scissor_box;pt[0]=pt[1]=Rt[0]=Rt[1]=0,Ne.viewportWidth=Ne.framebufferWidth=Ne.drawingBufferWidth=pt[2]=Rt[2]=V.drawingBufferWidth,Ne.viewportHeight=Ne.framebufferHeight=Ne.drawingBufferHeight=pt[3]=Rt[3]=V.drawingBufferHeight}function Sa(){Ne.tick+=1,Ne.time=qa(),ya(),dr.procs.poll()}function Tt(){Be.refresh(),ya(),dr.procs.refresh(),lr&&lr.update()}function qa(){return(p()-Zr)/1e3}Tt();function Wt(pt,Rt){var Qt;switch(pt){case"frame":return ma(Rt);case"lost":Qt=ut;break;case"restore":Qt=gr;break;case"destroy":Qt=kr;break;default:}return Qt.push(Rt),{cancel:function(){for(var z=0;z=0},read:fr,destroy:nn,_gl:V,_refresh:Tt,poll:function(){Sa(),lr&&lr.update()},now:qa,stats:We,getCachedCode:Ja,preloadCachedCode:ln});return B.onDone(null,sn),sn}return Li})});var Y_=P((GOe,qre)=>{"use strict";var h9e=Fre(),d9e=Rre();qre.exports=function(r,t,a){var n=r._fullLayout,i=!0;return n._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(a);return}if(!(o.pick&&!n._has("parcoords"))){try{o.regl=d9e({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:r._context.plotGlPixelRatio||window.devicePixelRatio,extensions:t||[],cachedCode:a||{}})}catch(l){i=!1}o.regl||(i=!1),i&&this.addEventListener("webglcontextlost",function(l){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:l,layer:o.key})},!1)}}),i||h9e({container:n._glcontainer.node()}),i}});var zre=P((g9,Bre)=>{"use strict";var Pre=s7(),Nre=B7(),p9e=KK(),Ore=Cre(),y9=Ur(),m9e=jc().selectMode,y9e=Y_(),g9e=qi(),b9e=R6(),x9e=i7().styleTextSelection,Ire={};function _9e(e,r,t,a){var n=e._size,i=e.width*a,o=e.height*a,l=n.l*a,s=n.b*a,f=n.r*a,u=n.t*a,c=n.w*a,v=n.h*a;return[l+r.domain[0]*c,s+t.domain[0]*v,i-f-(1-r.domain[1])*c,o-u-(1-t.domain[1])*v]}var g9=Bre.exports=function(r,t,a){if(a.length){var n=r._fullLayout,i=t._scene,o=t.xaxis,l=t.yaxis,s,f;if(i){var u=y9e(r,["ANGLE_instanced_arrays","OES_element_index_uint"],Ire);if(!u){i.init();return}var c=i.count,v=n._glcanvas.data()[0].regl;if(b9e(r,t,a),i.dirty){if((i.line2d||i.error2d)&&!(i.scatter2d||i.fill2d||i.glText)&&v.clear({color:!0,depth:!0}),i.error2d===!0&&(i.error2d=p9e(v)),i.line2d===!0&&(i.line2d=Nre(v)),i.scatter2d===!0&&(i.scatter2d=Pre(v)),i.fill2d===!0&&(i.fill2d=Nre(v)),i.glText===!0)for(i.glText=new Array(c),s=0;si.glText.length){var d=c-i.glText.length;for(s=0;sue&&(isNaN(ie[De])||isNaN(ie[De+1]));)De-=2;J.positions=ie.slice(ue,De+2)}return J}),i.line2d.update(i.lineOptions)),i.error2d){var m=(i.errorXOptions||[]).concat(i.errorYOptions||[]);i.error2d.update(m)}i.scatter2d&&i.scatter2d.update(i.markerOptions),i.fillOrder=y9.repeat(null,c),i.fill2d&&(i.fillOptions=i.fillOptions.map(function(J,ie){var ue=a[ie];if(!(!J||!ue||!ue[0]||!ue[0].trace)){var De=ue[0],Oe=De.trace,Ee=De.t,Ze=i.lineOptions[ie],Ae,ir,Ge=[];Oe._ownfill&&Ge.push(ie),Oe._nexttrace&&Ge.push(ie+1),Ge.length&&(i.fillOrder[ie]=Ge);var Qe=[],He=Ze&&Ze.positions||Ee.positions,Ve,ee;if(Oe.fill==="tozeroy"){for(Ve=0;VeVe&&isNaN(He[ee+1]);)ee-=2;He[Ve+1]!==0&&(Qe=[He[Ve],0]),Qe=Qe.concat(He.slice(Ve,ee+2)),He[ee+1]!==0&&(Qe=Qe.concat([He[ee],0]))}else if(Oe.fill==="tozerox"){for(Ve=0;VeVe&&isNaN(He[ee]);)ee-=2;He[Ve]!==0&&(Qe=[0,He[Ve+1]]),Qe=Qe.concat(He.slice(Ve,ee+2)),He[ee]!==0&&(Qe=Qe.concat([0,He[ee+1]]))}else if(Oe.fill==="toself"||Oe.fill==="tonext"){for(Qe=[],Ae=0,J.splitNull=!0,ir=0;ir-1;for(s=0;s{"use strict";var Gre=qJ();Gre.plot=zre();Ure.exports=Gre});var Yre=P((HOe,Vre)=>{"use strict";Vre.exports=Hre()});var b9=P((VOe,Zre)=>{"use strict";var w9e=Qc(),Xre=E0(),Wre=tm().axisHoverFormat,A9e=y0().hovertemplateAttrs,fg=sx(),T9e=Ri().idRegex,M9e=$a().templatedArray,G1=zn().extendFlat,Yu=w9e.marker,S9e=Yu.line,E9e=G1(Xre("marker.line",{editTypeOverride:"calc"}),{width:G1({},S9e.width,{editType:"calc"}),editType:"calc"}),W_=G1(Xre("marker"),{symbol:Yu.symbol,angle:Yu.angle,size:G1({},Yu.size,{editType:"markerSize"}),sizeref:Yu.sizeref,sizemin:Yu.sizemin,sizemode:Yu.sizemode,opacity:Yu.opacity,colorbar:Yu.colorbar,line:E9e,editType:"calc"});W_.color.editType=W_.cmin.editType=W_.cmax.editType="style";function jre(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:T9e[e],editType:"plot"}}}Zre.exports={dimensions:M9e("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:G1({},fg.text,{}),hovertext:G1({},fg.hovertext,{}),hovertemplate:A9e(),xhoverformat:Wre("x"),yhoverformat:Wre("y"),marker:W_,xaxes:jre("x"),yaxes:jre("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:fg.selected.marker,editType:"calc"},unselected:{marker:fg.unselected.marker,editType:"calc"},opacity:fg.opacity}});var x9=P((YOe,Jre)=>{"use strict";Jre.exports=function(e,r,t,a){a||(a=1/0);var n,i;for(n=0;n{"use strict";var _9=Ur(),k9e=gl(),$re=b9(),C9e=qi(),L9e=gb(),D9e=x9(),F9e=fx().isOpenSymbol;Qre.exports=function(r,t,a,n){function i(d,p){return _9.coerce(r,t,$re,d,p)}var o=k9e(r,t,{name:"dimensions",handleItemDefaults:R9e}),l=i("diagonal.visible"),s=i("showupperhalf"),f=i("showlowerhalf"),u=D9e(t,o,"values");if(!u||!l&&!s&&!f){t.visible=!1;return}i("text"),i("hovertext"),i("hovertemplate"),i("xhoverformat"),i("yhoverformat"),L9e(r,t,a,n,i,{noAngleRef:!0,noStandOff:!0});var c=F9e(t.marker.symbol),v=C9e.isBubble(t);i("marker.line.width",c||v?1:0),q9e(r,t,n,i),_9.coerceSelectionMarkerOpacity(t,i)};function R9e(e,r){function t(n,i){return _9.coerce(e,r,$re.dimensions,n,i)}t("label");var a=t("values");a&&a.length?t("visible"):r.visible=!1,t("axis.type"),t("axis.matches")}function q9e(e,r,t,a){var n=r.dimensions,i=n.length,o=r.showupperhalf,l=r.showlowerhalf,s=r.diagonal.visible,f,u,c=new Array(i),v=new Array(i);for(f=0;fu&&o||f{"use strict";var ete=Ur();rte.exports=function(r,t){var a=r._fullLayout,n=t.uid,i=a._splomScenes;i||(i=a._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},l={matrix:!1,selectBatch:[],unselectBatch:[]},s=i[t.uid];return s||(s=i[n]=ete.extendFlat({},o,l),s.draw=function(){s.matrix&&s.matrix.draw&&(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&&s.matrix.destroy&&s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||ete.extendFlat(s,o),s}});var ite=P((XOe,nte)=>{"use strict";var w9=Ur(),j_=Sn(),P9e=Vd().calcMarkerSize,N9e=Vd().calcAxisExpansion,O9e=Qm(),ate=Wy().markerSelection,I9e=Wy().markerStyle,B9e=tte(),z9e=Qn().BADNUM,G9e=s1().TOO_MANY_POINTS;nte.exports=function(r,t){var a=t.dimensions,n=t._length,i={},o=i.cdata=[],l=i.data=[],s=t._visibleDims=[],f,u,c,v,d;function p(_,x){for(var T=_.makeCalcdata({v:x.values,vcalendar:t.calendar},"v"),E=0;EG9e,b;for(m?b=i.sizeAvg||Math.max(i.size,3):b=P9e(t,n),u=0;u{(function(){var e,r,t,a,n,i;typeof performance!="undefined"&&performance!==null&&performance.now?ug.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(ug.exports=function(){return(e()-n)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),i=process.uptime()*1e9,n=a-i):Date.now?(ug.exports=function(){return Date.now()-t},t=Date.now()):(ug.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(ote)});var fte=P((ZOe,J_)=>{var U9e=lte(),Wu=window,X_=["moz","webkit"],H1="AnimationFrame",V1=Wu["request"+H1],cg=Wu["cancel"+H1]||Wu["cancelRequest"+H1];for(U1=0;!V1&&U1{ute.exports=function(r,t){var a=typeof r=="number",n=typeof t=="number";a&&!n?(t=r,r=0):!a&&!n&&(r=0,t=0),r=r|0,t=t|0;var i=t-r;if(i<0)throw new Error("array length must be positive");for(var o=new Array(i),l=0,s=r;l{"use strict";var H9e=s7(),V9e=Of(),Y9e=th(),vte=fte(),W9e=cte(),T9=u1(),j9e=ah();dte.exports=wv;function wv(e,r){if(!(this instanceof wv))return new wv(e,r);this.traces=[],this.passes={},this.regl=e,this.scatter=H9e(e),this.canvas=this.scatter.canvas}wv.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=vte(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,vte(()=>{this.dirty=!1})),this)};wv.prototype.update=function(...e){if(!e.length)return;for(let a=0;am||!n.lower&&g{r[i+l]=a})}this.scatter.draw(...r)}return this};wv.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function X9e(e,r,t){let a=e.id!=null?e.id:e,n=r,i=t;return a<<16|(n&255)<<8|i&255}function $_(e,r,t){let a,n,i,o,l,s,f,u,c=e[r],v=e[t];return c.length>2?(a=c[0],i=c[2],n=c[1],o=c[3]):c.length?(a=n=c[0],i=o=c[1]):(a=c.x,n=c.y,i=c.x+c.width,o=c.y+c.height),v.length>2?(l=v[0],f=v[2],s=v[1],u=v[3]):v.length?(l=s=v[0],f=u=v[1]):(l=v.x,s=v.y,f=v.x+v.width,u=v.y+v.height),[l,n,f,o]}function hte(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let r=T9(e);return[r.x,r.y,r.x+r.width,r.y+r.height]}}});var yte=P((QOe,mte)=>{"use strict";var Z9e=pte(),M9=Ur(),Q_=Sn(),J9e=jc().selectMode;mte.exports=function(r,t,a){if(a.length)for(var n=0;n-1,I=J9e(u)||!!n.selectedpoints||O,R=!0;if(I){var H=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var X=n.selectedpoints,le={};for(d=0;d{"use strict";gte.getDimIndex=function(r,t){for(var a=t._id,n=a.charAt(0),i={x:0,y:1}[n],o=r._visibleDims,l=0;l{"use strict";var bte=S9(),Q9e=GT().calcHover,xte=mn().getFromId,K9e=zn().extendFlat;function eMe(e,r,t,a,n){n||(n={});var i=(a||"").charAt(0)==="x",o=(a||"").charAt(0)==="y",l=_te(e,r,t);if((i||o)&&n.hoversubplots==="axis"&&l[0])for(var s=(i?e.xa:e.ya)._subplotsWith,f=n.gd,u=K9e({},e),c=0;c{"use strict";var Ete=Ur(),Tte=Ete.pushUnique,Mte=qi(),Ste=S9();kte.exports=function(r,t){var a=r.cd,n=a[0].trace,i=a[0].t,o=r.scene,l=o.matrixOptions.cdata,s=r.xaxis,f=r.yaxis,u=[];if(!o)return u;var c=!Mte.hasMarkers(n)&&!Mte.hasText(n);if(n.visible!==!0||c)return u;var v=Ste.getDimIndex(n,s),d=Ste.getDimIndex(n,f);if(v===!1||d===!1)return u;var p=i.xpx[v],g=i.ypx[d],m=l[v],b=l[d],A=(r.scene.selectBatch||[]).slice(),_=[];if(t!==!1&&!t.degenerate)for(var x=0;x{"use strict";var Lte=Ur(),rMe=Qm(),tMe=Wy().markerStyle;Dte.exports=function(r,t){var a=t.trace,n=r._fullLayout._splomScenes[a.uid];if(n){rMe(r,a),Lte.extendFlat(n.matrixOptions,tMe(r,a));var i=Lte.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(i,null)}}});var qte=P((aIe,Rte)=>{"use strict";var aMe=Bt(),nMe=kT();Rte.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:b9(),supplyDefaults:Kre(),colorbar:Mb(),calc:ite(),plot:yte(),hoverPoints:Ate().hoverPoints,selectPoints:Cte(),editStyle:Fte(),meta:{}};aMe.register(nMe)});var zte=P((nIe,Bte)=>{"use strict";var iMe=B7(),oMe=Bt(),lMe=Y_(),sMe=Qp().getModuleCalcData,Av=iy(),Pte=Sn().getFromId,Nte=mn().shouldShowZeroLine,Ote="splom",Ite={};function fMe(e){var r=e._fullLayout,t=oMe.getModule(Ote),a=sMe(e.calcdata,t)[0],n=lMe(e,["ANGLE_instanced_arrays","OES_element_index_uint"],Ite);n&&(r._hasOnlyLargeSploms&&E9(e),t.plot(e,{},a))}function uMe(e){var r=e.calcdata,t=e._fullLayout;t._hasOnlyLargeSploms&&E9(e);for(var a=0;a{"use strict";var Gte=qte();Gte.basePlotModule=zte(),Ute.exports=Gte});var Yte=P((oIe,Vte)=>{"use strict";Vte.exports=Hte()});var L9=P((lIe,Wte)=>{"use strict";var dMe=E0(),k9=Ul(),C9=zi(),pMe=tx().attributes,K_=zn().extendFlat,mMe=$a().templatedArray;Wte.exports={domain:pMe({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:C9({editType:"plot"}),tickfont:C9({autoShadowDflt:!0,editType:"plot"}),rangefont:C9({editType:"plot"}),dimensions:mMe("dimension",{label:{valType:"string",editType:"plot"},tickvals:K_({},k9.tickvals,{editType:"plot"}),ticktext:K_({},k9.ticktext,{editType:"plot"}),tickformat:K_({},k9.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:K_({editType:"calc"},dMe("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var vg=P((sIe,jte)=>{"use strict";jte.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var hg=P((fIe,Zte)=>{"use strict";var yMe=$g();function Xte(e){return[e]}Zte.exports={keyFun:function(e){return e.key},repeat:Xte,descend:yMe,wrap:Xte,unwrap:function(e){return e[0]}}});var R9=P((uIe,oae)=>{"use strict";var Wn=vg(),ef=ha(),gMe=hg().keyFun,e5=hg().repeat,Y1=Ur().sorterAsc,bMe=Ur().strTranslate,Jte=Wn.bar.snapRatio;function $te(e,r){return e*(1-Jte)+r*Jte}var Qte=Wn.bar.snapClose;function xMe(e,r){return e*(1-Qte)+r*Qte}function t5(e,r,t,a){if(_Me(t,a))return t;var n=e?-1:1,i=0,o=r.length-1;if(n<0){var l=i;i=o,o=l}for(var s=r[i],f=s,u=i;n*u=r[t][0]&&e<=r[t][1])return!0;return!1}function wMe(e){e.attr("x",-Wn.bar.captureWidth/2).attr("width",Wn.bar.captureWidth)}function AMe(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function TMe(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var r=Kte(e.brush.filter.getConsolidated(),e.height),t=[0],a,n,i,o=r.length?r[0][0]:null,l=0;le[1]+t||r=.9*e[1]+.1*e[0]?"n":r<=.9*e[0]+.1*e[1]?"s":"ns"}function eae(){ef.select(document.body).style("cursor",null)}function F9(e){e.attr("stroke-dasharray",TMe)}function r5(e,r){var t=ef.select(e).selectAll(".highlight, .highlight-shadow"),a=r?t.transition().duration(Wn.bar.snapDuration).each("end",r):t;F9(a)}function rae(e,r){var t=e.brush,a=t.filterSpecified,n=NaN,i={},o;if(a){var l=e.height,s=t.filter.getConsolidated(),f=Kte(s,l),u=NaN,c=NaN,v=NaN;for(o=0;o<=f.length;o++){var d=f[o];if(d&&d[0]<=r&&r<=d[1]){u=o;break}else if(c=o?o-1:NaN,d&&d[0]>r){v=o;break}}if(n=u,isNaN(n)&&(isNaN(c)||isNaN(v)?n=isNaN(c)?v:c:n=r-f[c][1]=A[0]&&b<=A[1]){i.clickableOrdinalRange=A;break}}}return i}function SMe(e,r){ef.event.sourceEvent.stopPropagation();var t=r.height-ef.mouse(e)[1]-2*Wn.verticalPadding,a=r.unitToPaddedPx.invert(t),n=r.brush,i=rae(r,t),o=i.interval,l=n.svgBrush;if(l.wasDragged=!1,l.grabbingBar=i.region==="ns",l.grabbingBar){var s=o.map(r.unitToPaddedPx);l.grabPoint=t-s[0]-Wn.verticalPadding,l.barLength=s[1]-s[0]}l.clickableOrdinalRange=i.clickableOrdinalRange,l.stayingIntervals=r.multiselect&&n.filterSpecified?n.filter.getConsolidated():[],o&&(l.stayingIntervals=l.stayingIntervals.filter(function(f){return f[0]!==o[0]&&f[1]!==o[1]})),l.startExtent=i.region?o[i.region==="s"?1:0]:a,r.parent.inBrushDrag=!0,l.brushStartCallback()}function tae(e,r){ef.event.sourceEvent.stopPropagation();var t=r.height-ef.mouse(e)[1]-2*Wn.verticalPadding,a=r.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[t-a.grabPoint,t+a.barLength-a.grabPoint].map(r.unitToPaddedPx.invert):a.newExtent=[a.startExtent,r.unitToPaddedPx.invert(t)].sort(Y1),r.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(r),r5(e.parentNode)}function EMe(e,r){var t=r.brush,a=t.filter,n=t.svgBrush;n._dragging||(aae(e,r),tae(e,r),r.brush.svgBrush.wasDragged=!1),n._dragging=!1;var i=ef.event;i.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,r.parent.inBrushDrag=!1,eae(),!n.wasDragged){n.wasDragged=void 0,n.clickableOrdinalRange?t.filterSpecified&&r.multiselect?n.extent.push(n.clickableOrdinalRange):(n.extent=[n.clickableOrdinalRange],t.filterSpecified=!0):o?(n.extent=n.stayingIntervals,n.extent.length===0&&D9(t)):D9(t),n.brushCallback(r),r5(e.parentNode),n.brushEndCallback(t.filterSpecified?a.getConsolidated():[]);return}var l=function(){a.set(a.getConsolidated())};if(r.ordinal){var s=r.unitTickvals;s[s.length-1]n.newExtent[0];n.extent=n.stayingIntervals.concat(f?[n.newExtent]:[]),n.extent.length||D9(t),n.brushCallback(r),f?r5(e.parentNode,l):(l(),r5(e.parentNode))}else l();n.brushEndCallback(t.filterSpecified?a.getConsolidated():[])}function aae(e,r){var t=r.height-ef.mouse(e)[1]-2*Wn.verticalPadding,a=rae(r,t),n="crosshair";a.clickableOrdinalRange?n="pointer":a.region&&(n=a.region+"-resize"),ef.select(document.body).style("cursor",n)}function kMe(e){e.on("mousemove",function(r){ef.event.preventDefault(),r.parent.inBrushDrag||aae(this,r)}).on("mouseleave",function(r){r.parent.inBrushDrag||eae()}).call(ef.behavior.drag().on("dragstart",function(r){SMe(this,r)}).on("drag",function(r){tae(this,r)}).on("dragend",function(r){EMe(this,r)}))}function nae(e,r){return e[0]-r[0]}function CMe(e,r,t){var a=t._context.staticPlot,n=e.selectAll(".background").data(e5);n.enter().append("rect").classed("background",!0).call(wMe).call(AMe).style("pointer-events",a?"none":"auto").attr("transform",bMe(0,Wn.verticalPadding)),n.call(kMe).attr("height",function(l){return l.height-Wn.verticalPadding});var i=e.selectAll(".highlight-shadow").data(e5);i.enter().append("line").classed("highlight-shadow",!0).attr("x",-Wn.bar.width/2).attr("stroke-width",Wn.bar.width+Wn.bar.strokeWidth).attr("stroke",r).attr("opacity",Wn.bar.strokeOpacity).attr("stroke-linecap","butt"),i.attr("y1",function(l){return l.height}).call(F9);var o=e.selectAll(".highlight").data(e5);o.enter().append("line").classed("highlight",!0).attr("x",-Wn.bar.width/2).attr("stroke-width",Wn.bar.width-Wn.bar.strokeWidth).attr("stroke",Wn.bar.fillColor).attr("opacity",Wn.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(l){return l.height}).call(F9)}function LMe(e,r,t){var a=e.selectAll("."+Wn.cn.axisBrush).data(e5,gMe);a.enter().append("g").classed(Wn.cn.axisBrush,!0),CMe(a,r,t)}function DMe(e){return e.svgBrush.extent.map(function(r){return r.slice()})}function D9(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function FMe(e){return function(t){var a=t.brush,n=DMe(a),i=n.slice();a.filter.set(i),e()}}function iae(e){for(var r=e.slice(),t=[],a,n=r.shift();n;){for(a=n.slice();(n=r.shift())&&n[0]<=a[1];)a[1]=Math.max(a[1],n[1]);t.push(a)}return t.length===1&&t[0][0]>t[0][1]&&(t=[]),t}function RMe(){var e=[],r,t;return{set:function(a){e=a.map(function(n){return n.slice().sort(Y1)}).sort(nae),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),r=iae(e),t=e.reduce(function(n,i){return[Math.min(n[0],i[0]),Math.max(n[1],i[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return r},getBounds:function(){return t}}}function qMe(e,r,t,a,n,i){var o=RMe();return o.set(t),{filter:o,filterSpecified:r,svgBrush:{extent:[],brushStartCallback:a,brushCallback:FMe(n),brushEndCallback:i}}}function PMe(e,r){if(Array.isArray(e[0])?(e=e.map(function(a){return a.sort(Y1)}),r.multiselect?e=iae(e.sort(nae)):e=[e[0]]):e=[e.sort(Y1)],r.tickvals){var t=r.tickvals.slice().sort(Y1);if(e=e.map(function(a){var n=[t5(0,t,a[0],[]),t5(1,t,a[1],[])];if(n[1]>n[0])return n}).filter(function(a){return a}),!e.length)return}return e.length>1?e:e[0]}oae.exports={makeBrush:qMe,ensureAxisBrush:LMe,cleanRanges:PMe}});var fae=P((cIe,sae)=>{"use strict";var Tv=Ur(),NMe=Rs().hasColorscale,OMe=pd(),IMe=tx().defaults,BMe=gl(),zMe=mn(),lae=L9(),GMe=R9(),q9=vg().maxDimensionCount,UMe=x9();function HMe(e,r,t,a,n){var i=n("line.color",t);if(NMe(e,"line")&&Tv.isArrayOrTypedArray(i)){if(i.length)return n("line.colorscale"),OMe(e,r,a,n,{prefix:"line.",cLetter:"c"}),i.length;r.line.color=t}return 1/0}function VMe(e,r,t,a){function n(f,u){return Tv.coerce(e,r,lae.dimensions,f,u)}var i=n("values"),o=n("visible");if(i&&i.length||(o=r.visible=!1),o){n("label"),n("tickvals"),n("ticktext"),n("tickformat");var l=n("range");r._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:l},zMe.setConvert(r._ax,a.layout),n("multiselect");var s=n("constraintrange");s&&(r.constraintrange=GMe.cleanRanges(s,r))}}sae.exports=function(r,t,a,n){function i(u,c){return Tv.coerce(r,t,lae,u,c)}var o=r.dimensions;Array.isArray(o)&&o.length>q9&&(Tv.log("parcoords traces support up to "+q9+" dimensions at the moment"),o.splice(q9));var l=BMe(r,t,{name:"dimensions",layout:n,handleItemDefaults:VMe}),s=HMe(r,t,a,n,i);IMe(t,n,i),(!Array.isArray(l)||!l.length)&&(t.visible=!1),UMe(t,l,"values",s);var f=Tv.extendFlat({},n.font,{size:Math.round(n.font.size/1.2)});Tv.coerceFont(i,"labelfont",f),Tv.coerceFont(i,"tickfont",f,{autoShadowDflt:!0}),Tv.coerceFont(i,"rangefont",f),i("labelangle"),i("labelside"),i("unselected.line.color"),i("unselected.line.opacity")}});var cae=P((vIe,uae)=>{"use strict";var YMe=Ur().isArrayOrTypedArray,P9=yd(),WMe=hg().wrap;uae.exports=function(r,t){var a,n;return P9.hasColorscale(t,"line")&&YMe(t.line.color)?(a=t.line.color,n=P9.extractOpts(t.line).colorscale,P9.calc(r,t,{vals:a,containerStr:"line",cLetter:"c"})):(a=jMe(t._length),n=[[0,t.line.color],[1,t.line.color]]),WMe({lineColor:a,cscale:n})};function jMe(e){for(var r=new Array(e),t=0;t>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),N9.default[e])t=N9.default[e].slice(),n="rgb";else if(e==="transparent")a=0,n="rgb",t=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),o=i.length,l=o<=4;a=1,l?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],o===4&&(a=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],o===8&&(a=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(r=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var s=r[1];n=s.replace(/a$/,"");var f=n==="cmyk"?4:n==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/),n==="color"&&(n=t.shift()),t=t.map(function(v,d){if(v[v.length-1]==="%")return v=parseFloat(v)/100,d===3?v:n==="rgb"?v*255:n[0]==="h"||n[0]==="l"&&!d?v*100:n==="lab"?v*125:n==="lch"?d<2?v*150:v*360:n[0]==="o"&&!d?v:n==="oklab"?v*.4:n==="oklch"?d<2?v*.4:v*360:v;if(n[d]==="h"||d===2&&n[n.length-1]==="h"){if(vae[v]!==void 0)return vae[v];if(v.endsWith("deg"))return parseFloat(v);if(v.endsWith("turn"))return parseFloat(v)*360;if(v.endsWith("grad"))return parseFloat(v)*360/400;if(v.endsWith("rad"))return parseFloat(v)*180/Math.PI}return v==="none"?0:parseFloat(v)}),a=t.length>f?t.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(v){return parseFloat(v)}),n=((c=(u=e.match(/([a-z])/ig))==null?void 0:u.join(""))==null?void 0:c.toLowerCase())||"rgb");return{space:n,values:t,alpha:a}}var N9,hae,vae,dae=Ag(()=>{N9=zne(Q8(),1),hae=XMe,vae={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var dg,O9=Ag(()=>{dg={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var a5,pae=Ag(()=>{O9();a5={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var r=e[0]/360,t=e[1]/100,a=e[2]/100,n,i,o,l,s,f=0;if(t===0)return s=a*255,[s,s,s];for(i=a<.5?a*(1+t):a+t-a*t,n=2*a-i,l=[0,0,0];f<3;)o=r+1/3*-(f-1),o<0?o++:o>1&&o--,s=6*o<1?n+(i-n)*6*o:2*o<1?i:3*o<2?n+(i-n)*(2/3-o)*6:n,l[f++]=s*255;return l}};dg.hsl=function(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255,n=Math.min(r,t,a),i=Math.max(r,t,a),o=i-n,l,s,f;return i===n?l=0:r===i?l=(t-a)/o:t===i?l=2+(a-r)/o:a===i&&(l=4+(r-t)/o),l=Math.min(l*60,360),l<0&&(l+=360),f=(n+i)/2,i===n?s=0:f<=.5?s=o/(i+n):s=o/(2-i-n),[l,s*100,f*100]}});var yae={};Bne(yae,{default:()=>mae});function mae(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var r,t,a,n=hae(e);if(!n.space)return[];let i=n.space[0]==="h"?a5.min:dg.min,o=n.space[0]==="h"?a5.max:dg.max;return r=Array(3),r[0]=Math.min(Math.max(n.values[0],i[0]),o[0]),r[1]=Math.min(Math.max(n.values[1],i[1]),o[1]),r[2]=Math.min(Math.max(n.values[2],i[2]),o[2]),n.space[0]==="h"&&(r=a5.rgb(r)),r.push(Math.min(Math.max(n.alpha,0),1)),r}var gae=Ag(()=>{dae();O9();pae()});var I9=P(n5=>{"use strict";var ZMe=Ur().isTypedArray;n5.convertTypedArray=function(e){return ZMe(e)?Array.prototype.slice.call(e):e};n5.isOrdinal=function(e){return!!e.tickvals};n5.isVisible=function(e){return e.visible||!("visible"in e)}});var kae=P((_Ie,Eae)=>{"use strict";var JMe=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` -`),$Me=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),pg=vg().maxDimensionCount,Tae=Ur(),bae=1e-6,i5=2048,QMe=new Uint8Array(4),xae=new Uint8Array(4),_ae={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function KMe(e){e.read({x:0,y:0,width:1,height:1,data:QMe})}function Mae(e,r,t,a,n){var i=e._gl;i.enable(i.SCISSOR_TEST),i.scissor(r,t,a,n),e.clear({color:[0,0,0,0],depth:1})}function eSe(e,r,t,a,n,i){var o=i.key;function l(s){var f=Math.min(a,n-s*a);s===0&&(window.cancelAnimationFrame(t.currentRafs[o]),delete t.currentRafs[o],Mae(e,i.scissorX,i.scissorY,i.scissorWidth,i.viewBoxSize[1])),!t.clearOnly&&(i.count=2*f,i.offset=2*s*a,r(i),s*a+f>>8*r)%256/255}function aSe(e,r,t){for(var a=new Array(e*(pg+4)),n=0,i=0;iae&&(ae=k[R].dim1.canvasX,X=R);I===0&&Mae(n,0,0,f.canvasWidth,f.canvasHeight);var $=_(t);for(R=0;R{"use strict";var Ni=ha(),ju=Ur(),z9=ju.isArrayOrTypedArray,qae=ju.numberFormat,Pae=(gae(),Gne(yae)).default,Nae=mn(),sSe=ju.strRotate,Uf=ju.strTranslate,fSe=po(),o5=Wa(),Cae=yd(),H9=hg(),os=H9.keyFun,Hf=H9.repeat,Oae=H9.unwrap,W1=I9(),_a=vg(),Iae=R9(),uSe=kae();function Lae(e,r,t){return ju.aggNums(e,null,r,t)}function Bae(e,r){return V9(Lae(Math.min,e,r),Lae(Math.max,e,r))}function l5(e){var r=e.range;return r?V9(r[0],r[1]):Bae(e.values,e._length)}function V9(e,r){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(r)||!isFinite(r))&&(r=0),e===r&&(e===0?(e-=1,r+=1):(e*=.9,r*=1.1)),[e,r]}function cSe(e,r){return r?function(t,a){var n=r[a];return n==null?e(t):n}:e}function vSe(e,r,t,a,n){var i=l5(t);return a?Ni.scale.ordinal().domain(a.map(cSe(qae(t.tickformat),n))).range(a.map(function(o){var l=(o-i[0])/(i[1]-i[0]);return e-r+l*(2*r-e)})):Ni.scale.linear().domain(i).range([e-r,r])}function hSe(e,r){return Ni.scale.linear().range([r,e-r])}function dSe(e,r){return Ni.scale.linear().domain(l5(e)).range([r,1-r])}function pSe(e){if(e.tickvals){var r=l5(e);return Ni.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(t){return(t-r[0])/(r[1]-r[0])}))}}function mSe(e){var r=e.map(function(i){return i[0]}),t=e.map(function(i){var o=Pae(i[1]);return Ni.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),a=function(i){return function(o){return o[i]}},n="rgb".split("").map(function(i){return Ni.scale.linear().clamp(!0).domain(r).range(t.map(a(i)))});return function(i){return n.map(function(o){return o(i)})}}function U9(e){return e.dimensions.some(function(r){return r.brush.filterSpecified})}function ySe(e,r,t){var a=Oae(r),n=a.trace,i=W1.convertTypedArray(a.lineColor),o=n.line,l={color:Pae(n.unselected.line.color),opacity:n.unselected.line.opacity},s=Cae.extractOpts(o),f=s.reversescale?Cae.flipScale(a.cscale):a.cscale,u=n.domain,c=n.dimensions,v=e.width,d=n.labelangle,p=n.labelside,g=n.labelfont,m=n.tickfont,b=n.rangefont,A=ju.extendDeepNoArrays({},o,{color:i.map(Ni.scale.linear().domain(l5({values:i,range:[s.min,s.max],_length:n._length}))),blockLineCount:_a.blockLineCount,canvasOverdrag:_a.overdrag*_a.canvasPixelRatio}),_=Math.floor(v*(u.x[1]-u.x[0])),x=Math.floor(e.height*(u.y[1]-u.y[0])),T=e.margin||{l:80,r:80,t:100,b:80},E=_,M=x;return{key:t,colCount:c.filter(W1.isVisible).length,dimensions:c,tickDistance:_a.tickDistance,unitToColor:mSe(f),lines:A,deselectedLines:l,labelAngle:d,labelSide:p,labelFont:g,tickFont:m,rangeFont:b,layoutWidth:v,layoutHeight:e.height,domain:u,translateX:u.x[0]*v,translateY:e.height-u.y[1]*e.height,pad:T,canvasWidth:E*_a.canvasPixelRatio+2*A.canvasOverdrag,canvasHeight:M*_a.canvasPixelRatio,width:E,height:M,canvasPixelRatio:_a.canvasPixelRatio}}function gSe(e,r,t){var a=t.width,n=t.height,i=t.dimensions,o=t.canvasPixelRatio,l=function(v){return a*v/Math.max(1,t.colCount-1)},s=_a.verticalPadding/n,f=hSe(n,_a.verticalPadding),u={key:t.key,xScale:l,model:t,inBrushDrag:!1},c={};return u.dimensions=i.filter(W1.isVisible).map(function(v,d){var p=dSe(v,s),g=c[v.label];c[v.label]=(g||0)+1;var m=v.label+(g?"__"+g:""),b=v.constraintrange,A=b&&b.length;A&&!z9(b[0])&&(b=[b]);var _=A?b.map(function(H){return H.map(p)}):[[-1/0,1/0]],x=function(){var H=u;H.focusLayer&&H.focusLayer.render(H.panels,!0);var X=U9(H);!e.contextShown()&&X?(H.contextLayer&&H.contextLayer.render(H.panels,!0),e.contextShown(!0)):e.contextShown()&&!X&&(H.contextLayer&&H.contextLayer.render(H.panels,!0,!0),e.contextShown(!1))},T=v.values;T.length>v._length&&(T=T.slice(0,v._length));var E=v.tickvals,M;function k(H,X){return{val:H,text:M[X]}}function F(H,X){return H.val-X.val}if(z9(E)&&E.length){ju.isTypedArray(E)&&(E=Array.from(E)),M=v.ticktext,!z9(M)||!M.length?M=E.map(qae(v.tickformat)):M.length>E.length?M=M.slice(0,E.length):E.length>M.length&&(E=E.slice(0,M.length));for(var O=1;O=X||Z>=le)return;var J=R.lineLayer.readPixel($,le-1-Z),ie=J[3]!==0,ue=ie?J[2]+256*(J[1]+256*J[0]):null,De={x:$,y:Z,clientX:H.clientX,clientY:H.clientY,dataIndex:R.model.key,curveNumber:ue};ue!==p&&(ie?n.hover(De):n.unhover&&n.unhover(De),p=ue)}}),d.style("opacity",function(R){return R.pick?0:1}),l.style("background","rgba(255, 255, 255, 0)");var m=l.selectAll("."+_a.cn.parcoords).data(v,os);m.exit().remove(),m.enter().append("g").classed(_a.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),m.attr("transform",function(R){return Uf(R.model.translateX,R.model.translateY)});var b=m.selectAll("."+_a.cn.parcoordsControlView).data(Hf,os);b.enter().append("g").classed(_a.cn.parcoordsControlView,!0),b.attr("transform",function(R){return Uf(R.model.pad.l,R.model.pad.t)});var A=b.selectAll("."+_a.cn.yAxis).data(function(R){return R.dimensions},os);A.enter().append("g").classed(_a.cn.yAxis,!0),b.each(function(R){G9(A,R,f)}),d.each(function(R){if(R.viewModel){!R.lineLayer||n?R.lineLayer=uSe(this,R):R.lineLayer.update(R),(R.key||R.key===0)&&(R.viewModel[R.key]=R.lineLayer);var H=!R.context||n;R.lineLayer.render(R.viewModel.panels,H)}}),A.attr("transform",function(R){return Uf(R.xScale(R.xIndex),0)}),A.call(Ni.behavior.drag().origin(function(R){return R}).on("drag",function(R){var H=R.parent;c.linePickActive(!1),R.x=Math.max(-_a.overdrag,Math.min(R.model.width+_a.overdrag,Ni.event.x)),R.canvasX=R.x*R.model.canvasPixelRatio,A.sort(function(X,le){return X.x-le.x}).each(function(X,le){X.xIndex=le,X.x=R===X?X.x:X.xScale(X.xIndex),X.canvasX=X.x*X.model.canvasPixelRatio}),G9(A,H,f),A.filter(function(X){return Math.abs(R.xIndex-X.xIndex)!==0}).attr("transform",function(X){return Uf(X.xScale(X.xIndex),0)}),Ni.select(this).attr("transform",Uf(R.x,0)),A.each(function(X,le,ae){ae===R.parent.key&&(H.dimensions[le]=X)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!U9(H)),H.focusLayer.render&&H.focusLayer.render(H.panels)}).on("dragend",function(R){var H=R.parent;R.x=R.xScale(R.xIndex),R.canvasX=R.x*R.model.canvasPixelRatio,G9(A,H,f),Ni.select(this).attr("transform",function(X){return Uf(X.x,0)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!U9(H)),H.focusLayer&&H.focusLayer.render(H.panels),H.pickLayer&&H.pickLayer.render(H.panels,!0),c.linePickActive(!0),n&&n.axesMoved&&n.axesMoved(H.key,H.dimensions.map(function(X){return X.crossfilterDimensionIndex}))})),A.exit().remove();var _=A.selectAll("."+_a.cn.axisOverlays).data(Hf,os);_.enter().append("g").classed(_a.cn.axisOverlays,!0),_.selectAll("."+_a.cn.axis).remove();var x=_.selectAll("."+_a.cn.axis).data(Hf,os);x.enter().append("g").classed(_a.cn.axis,!0),x.each(function(R){var H=R.model.height/R.model.tickDistance,X=R.domainScale,le=X.domain();Ni.select(this).call(Ni.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(H,R.tickFormat).tickValues(R.ordinal?le:null).tickFormat(function(ae){return W1.isOrdinal(R)?ae:zae(R.model.dimensions[R.visibleIndex],ae)}).scale(X)),o5.font(x.selectAll("text"),R.model.tickFont)}),x.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),x.selectAll("text").style("cursor","default");var T=_.selectAll("."+_a.cn.axisHeading).data(Hf,os);T.enter().append("g").classed(_a.cn.axisHeading,!0);var E=T.selectAll("."+_a.cn.axisTitle).data(Hf,os);E.enter().append("text").classed(_a.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",i?"none":"auto"),E.text(function(R){return R.label}).each(function(R){var H=Ni.select(this);o5.font(H,R.model.labelFont),fSe.convertToTspans(H,r)}).attr("transform",function(R){var H=Fae(R.model.labelAngle,R.model.labelSide),X=_a.axisTitleOffset;return(H.dir>0?"":Uf(0,2*X+R.model.height))+sSe(H.degrees)+Uf(-X*H.dx,-X*H.dy)}).attr("text-anchor",function(R){var H=Fae(R.model.labelAngle,R.model.labelSide),X=Math.abs(H.dx),le=Math.abs(H.dy);return 2*X>le?H.dir*H.dx<0?"start":"end":"middle"});var M=_.selectAll("."+_a.cn.axisExtent).data(Hf,os);M.enter().append("g").classed(_a.cn.axisExtent,!0);var k=M.selectAll("."+_a.cn.axisExtentTop).data(Hf,os);k.enter().append("g").classed(_a.cn.axisExtentTop,!0),k.attr("transform",Uf(0,-_a.axisExtentOffset));var F=k.selectAll("."+_a.cn.axisExtentTopText).data(Hf,os);F.enter().append("text").classed(_a.cn.axisExtentTopText,!0).call(Dae),F.text(function(R){return Rae(R,!0)}).each(function(R){o5.font(Ni.select(this),R.model.rangeFont)});var O=M.selectAll("."+_a.cn.axisExtentBottom).data(Hf,os);O.enter().append("g").classed(_a.cn.axisExtentBottom,!0),O.attr("transform",function(R){return Uf(0,R.model.height+_a.axisExtentOffset)});var I=O.selectAll("."+_a.cn.axisExtentBottomText).data(Hf,os);I.enter().append("text").classed(_a.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(Dae),I.text(function(R){return Rae(R,!1)}).each(function(R){o5.font(Ni.select(this),R.model.rangeFont)}),Iae.ensureAxisBrush(_,u,r)}});var W9=P((Y9,Wae)=>{"use strict";var _Se=Uae(),wSe=Y_(),Hae=I9().isVisible,Yae={};function Vae(e,r,t){var a=r.indexOf(t),n=e.indexOf(a);return n===-1&&(n+=r.length),n}function ASe(e,r){return function(a,n){return Vae(e,r,a)-Vae(e,r,n)}}var Y9=Wae.exports=function(r,t){var a=r._fullLayout,n=wSe(r,[],Yae);if(n){var i={},o={},l={},s={},f=a._size;t.forEach(function(p,g){var m=p[0].trace;l[g]=m.index;var b=s[g]=m.index;i[g]=r.data[b].dimensions,o[g]=r.data[b].dimensions.slice()});var u=function(p,g,m){var b=o[p][g],A=m.map(function(k){return k.slice()}),_="dimensions["+g+"].constraintrange",x=a._tracePreGUI[r._fullData[l[p]]._fullInput.uid];if(x[_]===void 0){var T=b.constraintrange;x[_]=T||null}var E=r._fullData[l[p]].dimensions[g];A.length?(A.length===1&&(A=A[0]),b.constraintrange=A,E.constraintrange=A.slice(),A=[A]):(delete b.constraintrange,delete E.constraintrange,A=null);var M={};M[_]=A,r.emit("plotly_restyle",[M,[s[p]]])},c=function(p){r.emit("plotly_hover",p)},v=function(p){r.emit("plotly_unhover",p)},d=function(p,g){var m=ASe(g,o[p].filter(Hae));i[p].sort(m),o[p].filter(function(b){return!Hae(b)}).sort(function(b){return o[p].indexOf(b)}).forEach(function(b){i[p].splice(i[p].indexOf(b),1),i[p].splice(o[p].indexOf(b),0,b)}),r.emit("plotly_restyle",[{dimensions:[i[p]]},[s[p]]])};_Se(r,t,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:u,hover:c,unhover:v,axesMoved:d})}};Y9.reglPrecompiled=Yae});var Xae=P(mg=>{"use strict";var jae=ha(),TSe=Qp().getModuleCalcData,MSe=W9(),SSe=Ic();mg.name="parcoords";mg.plot=function(e){var r=TSe(e.calcdata,"parcoords")[0];r.length&&MSe(e,r)};mg.clean=function(e,r,t,a){var n=a._has&&a._has("parcoords"),i=r._has&&r._has("parcoords");n&&!i&&(a._paperdiv.selectAll(".parcoords").remove(),a._glimages.selectAll("*").remove())};mg.toSVG=function(e){var r=e._fullLayout._glimages,t=jae.select(e).selectAll(".svg-container"),a=t.filter(function(i,o){return o===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var i=this,o=i.toDataURL("image/png"),l=r.append("svg:image");l.attr({xmlns:SSe.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n),window.setTimeout(function(){jae.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var Jae=P((TIe,Zae)=>{"use strict";Zae.exports={attributes:L9(),supplyDefaults:fae(),calc:cae(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:Xae(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var Kae=P((MIe,Qae)=>{"use strict";var $ae=Jae();$ae.plot=W9();Qae.exports=$ae});var rne=P((SIe,ene)=>{"use strict";ene.exports=Kae()});var lo=P((EIe,ane)=>{var f5=ni();function tne(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}f5(tne.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function j9(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(na.local.invalidDate||na.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function s5(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}f5(j9.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(na.local.invalidDate||na.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(na.local.differentCalendars||na.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+s5(Math.abs(this.year()),4)+"-"+s5(this.month(),2)+"-"+s5(this.day(),2)}});function X9(){this.shortYearCutoff="+10"}f5(X9.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new j9(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+s5(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,na.local.invalidMonth||na.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,na.local.invalidMonth||na.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,na.local.invalidDate||na.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(u){for(;oc-1+u.minMonth;)i++,o-=c,c=u.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(f){throw this._validateLevel--,f}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,na.local.invalidDate||na.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),f=n-(s>2.5?4716:4715);return f<=0&&f--,this.newDate(f,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var na=ane.exports=new tne;na.cdate=j9;na.baseCalendar=X9;na.calendars.gregorian=Z9});var nne=P(()=>{var J9=ni(),Oi=lo();J9(Oi.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Oi.local=Oi.regionalOptions[""];J9(Oi.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});J9(Oi.baseCalendar.prototype,{UNIX_EPOCH:Oi.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Oi.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Oi.local.invalidFormat||Oi.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,f=function(x,T){for(var E=1;_+E1},u=function(x,T,E,M){var k=""+T;if(f(x,M))for(;k.length1},A=function(R,H){var X=b(R,H),le=[2,3,X?4:2,X?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],ae=new RegExp("^-?\\d{1,"+le+"}"),$=r.substring(k).match(ae);if(!$)throw(Oi.local.missingNumberAt||Oi.regionalOptions[""].missingNumberAt).replace(/\{0\}/,k);return k+=$[0].length,parseInt($[0],10)},_=this,x=function(){if(typeof l=="function"){b("m");var R=l.call(_,r.substring(k));return k+=R.length,R}return A("m")},T=function(R,H,X,le){for(var ae=b(R,le)?X:H,$=0;$-1){v=1,d=p;for(var I=this.daysInMonth(c,v);d>I;I=this.daysInMonth(c,v))v++,d-=I}return u>-1?this.fromJD(u):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),f=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,u=f.exec(l);u;)s.add(parseInt(u[1],10),u[2]||"d"),u=f.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var ine=P(()=>{var Mv=lo(),ESe=ni(),$9=Mv.instance();function u5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}u5.prototype=new Mv.baseCalendar;ESe(u5.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(CSe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(LSe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(DSe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Mv.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Mv.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Mv.local.invalidyear),n=Ev[a-Ev[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=$9.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var f=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(f/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Sv[e-Sv[0]],a=t>>13,n=a?12:11;if(r>n)throw Mv.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Mv.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=RSe(e,i,t,n);return $9.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=$9.fromJD(e),t=FSe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(kSe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(u5.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),f=l.month(),u=this.isIntercalaryMonth(s,o),c=i&&u?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==f&&l.month(c)}return l}});var kSe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,CSe=/^\d?\d[iI]?/m,LSe=/^闰?十?[一二三四五六七八九]?月/m,DSe=/^闰?十?[一二三四五六七八九]?/m;Mv.calendars.chinese=u5;var Sv=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Ev=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function FSe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var f=Ev[n.year-Ev[0]],u=n.year<<9|n.month<<5|n.day;i.year=u>=f?n.year:n.year-1,f=Ev[i.year-Ev[0]];var c=f>>9&4095,v=f>>5&15,d=f&31,p,g=new Date(c,v-1,d),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-g)/(24*3600*1e3));var b=Sv[i.year-Sv[0]],A;for(A=0;A<13;A++){var _=b&1<<12-A?30:29;if(p<_)break;p-=_}var x=b>>13;return!x||A=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var f=typeof t=="number"&&t>=1&&t<=30;if(!f)throw new Error("Lunar day outside range 1 - 30");var u;typeof a=="object"?(u=!1,i=a):(u=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:u}}var c;c=o.day-1;var v=Sv[o.year-Sv[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var g=0;g>9&4095,_=b>>5&15,x=b&31,T=new Date(A,_-1,x+c);return i.year=T.getFullYear(),i.month=1+T.getMonth(),i.day=T.getDate(),i}});var one=P(()=>{var gh=lo(),qSe=ni();function Q9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Q9.prototype=new gh.baseCalendar;qSe(Q9.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,gh.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,gh.local.invalidYear||gh.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,gh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,gh.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});gh.calendars.coptic=Q9});var lne=P(()=>{var Xu=lo(),PSe=ni();function K9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}K9.prototype=new Xu.baseCalendar;PSe(K9.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Xu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return{century:NSe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var NSe={20:"Fruitbat",21:"Anchovy"};Xu.calendars.discworld=K9});var sne=P(()=>{var bh=lo(),OSe=ni();function eM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}eM.prototype=new bh.baseCalendar;OSe(eM.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,bh.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,bh.local.invalidYear||bh.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,bh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,bh.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});bh.calendars.ethiopian=eM});var fne=P(()=>{var kv=lo(),ISe=ni();function rM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}rM.prototype=new kv.baseCalendar;ISe(rM.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,kv.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,c5(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,kv.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,kv.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,kv.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&c5(this.daysInYear(e),10)===5?30:r===9&&c5(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,kv.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,kv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function c5(e,r){return e-r*Math.floor(e/r)}kv.calendars.hebrew=rM});var une=P(()=>{var yg=lo(),BSe=ni();function tM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}tM.prototype=new yg.baseCalendar;BSe(tM.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,yg.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,yg.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,yg.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});yg.calendars.islamic=tM});var cne=P(()=>{var gg=lo(),zSe=ni();function aM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}aM.prototype=new gg.baseCalendar;zSe(aM.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,gg.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,gg.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,gg.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});gg.calendars.julian=aM});var hne=P(()=>{var ls=lo(),GSe=ni();function iM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}iM.prototype=new ls.baseCalendar;GSe(iM.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ls.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ls.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ls.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,ls.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ls.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,ls.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ls.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,ls.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ls.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=nM(e+8+17*20,365);return[Math.floor(r/20)+1,nM(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[vne(e+20,20),vne(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,ls.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function nM(e,r){return e-r*Math.floor(e/r)}function vne(e,r){return nM(e-1,r)+1}ls.calendars.mayan=iM});var pne=P(()=>{var xh=lo(),USe=ni();function oM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}oM.prototype=new xh.baseCalendar;var dne=xh.instance("gregorian");USe(oM.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,xh.local.invalidYear||xh.regionalOptions[""].invalidYear);return dne.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,xh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,xh.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});xh.calendars.nanakshahi=oM});var mne=P(()=>{var _h=lo(),HSe=ni();function lM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}lM.prototype=new _h.baseCalendar;HSe(lM.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_h.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,_h.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,_h.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=_h.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=_h.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var f=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,f)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var j1=lo(),VSe=ni();function h5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function v5(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}h5.prototype=new j1.baseCalendar;VSe(h5.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,j1.local.invalidYear);return v5(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,j1.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,j1.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,v5(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});j1.calendars.persian=h5;j1.calendars.jalali=h5});var gne=P(()=>{var wh=lo(),YSe=ni(),d5=wh.instance();function sM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}sM.prototype=new wh.baseCalendar;YSe(sM.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,wh.local.invalidYear),t=this._t2gYear(r.year());return d5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,wh.local.invalidYear),n=this._t2gYear(a.year());return d5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,wh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,wh.local.invalidDate),n=this._t2gYear(a.year());return d5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=d5.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});wh.calendars.taiwan=sM});var bne=P(()=>{var Ah=lo(),WSe=ni(),p5=Ah.instance();function fM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fM.prototype=new Ah.baseCalendar;WSe(fM.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Ah.local.invalidYear),t=this._t2gYear(r.year());return p5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Ah.local.invalidYear),n=this._t2gYear(a.year());return p5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ah.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ah.local.invalidDate),n=this._t2gYear(a.year());return p5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=p5.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Ah.calendars.thai=fM});var xne=P(()=>{var Th=lo(),jSe=ni();function uM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}uM.prototype=new Th.baseCalendar;jSe(uM.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Th.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Th.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Cv[n]-Cv[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Th.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Cv[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Cv[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Th.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Th.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Th.calendars.ummalqura=uM;var Cv=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var wne=P((nBe,_ne)=>{"use strict";_ne.exports=lo();nne();ine();one();lne();sne();fne();une();cne();hne();pne();mne();yne();gne();bne();xne()});var Cne=P((iBe,kne)=>{"use strict";var Tne=wne(),bg=Ur(),Mne=Qn(),XSe=Mne.EPOCHJD,ZSe=Mne.ONEDAY,hM={valType:"enumerated",values:bg.sortObjectKeys(Tne.calendars),editType:"calc",dflt:"gregorian"},Sne=function(e,r,t,a){var n={};return n[t]=hM,bg.coerce(e,r,n,t,a)},JSe=function(e,r,t,a){for(var n=0;n{"use strict";Lne.exports=Cne()});var tEe=P((lBe,Rne)=>{var Fne=wV();Fne.register([Yre(),Yte(),rne(),Dne()]);Rne.exports=Fne});return tEe();})(); +`),ke;if(B&&(ke=A1(fe),B[ke]))return B[ke].apply(null,xe);var Je=Function.apply(null,he.concat(fe));return B&&(B[ke]=Je),Je.apply(null,xe)}return{global:lr,link:_e,block:Ye,proc:Fr,scope:or,cond:nr,compile:br}}var fo="xyzw".split(""),uc=5121,$i=1,_s=2,nu=0,uf=1,cc=2,cf=3,ws=4,vc=5,vf=6,hc="dither",s0="blend.enable",f0="blend.color",iu="blend.equation",ou="blend.func",dc="depth.enable",pc="depth.func",mc="depth.range",yc="depth.mask",lu="colorMask",hf="cull.enable",u0="cull.face",su="frontFace",df="lineWidth",gc="polygonOffset.enable",fu="polygonOffset.offset",pf="sample.alpha",mf="sample.enable",yf="sample.coverage",bc="stencil.enable",uu="stencil.mask",Ci="stencil.func",gf="stencil.opFront",vl="stencil.opBack",cu="scissor.enable",hl="scissor.box",si="viewport",As="profile",Do="framebuffer",Vo="vert",dl="frag",uo="elements",Fo="primitive",qo="count",vu="offset",yi="instances",Nl="vao",bf="Width",co="Height",Qi=Do+bf,Ki=Do+co,k1=si+bf,C1=si+co,c0="drawingBuffer",xc=c0+bf,_c=c0+co,Gh=[ou,iu,Ci,gf,vl,yf,si,hl,fu],vo=34962,hu=34963,Uh=2884,L1=3042,D1=3024,F1=2960,Hh=2929,Vh=3089,wc=32823,Yh=32926,Ac=32928,Tc=5126,pl=35664,an=35665,xf=35666,ml=5124,Il=35667,Ts=35668,du=35669,pu=35670,Ol=35671,_f=35672,mu=35673,yu=35674,gu=35675,bu=35676,Ms=35678,xu=35680,_u=4,h=1028,g=1029,w=2304,k=2305,L=32775,D=32776,G=519,R=7680,j=0,ne=1,oe=32774,ye=513,ge=36160,Xe=36064,Ke={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Me={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},qe={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ue={cw:w,ccw:k};function er(S){return Array.isArray(S)||ot(S)||et(S)}function tr(S){return S.sort(function(B,V){return B===si?-1:V===si?1:B=1,he>=2,B)}else if(V===ws){var xe=S.data;return new Le(xe.thisDep,xe.contextDep,xe.propDep,B)}else{if(V===vc)return new Le(!1,!1,!1,B);if(V===vf){for(var we=!1,_e=!1,Ye=!1,or=0;or=1&&(_e=!0),lr>=2&&(Ye=!0)}else nr.type===ws&&(we=we||nr.data.thisDep,_e=_e||nr.data.contextDep,Ye=Ye||nr.data.propDep)}return new Le(we,_e,Ye,B)}else return new Le(V===cf,V===cc,V===uf,B)}}var mt=new Le(!1,!1,!1,function(){});function kt(S,B,V,he,xe,we,_e,Ye,or,nr,lr,Zr,Fr,br,Ne,fe){var ke=nr.Record,Je={add:32774,subtract:32778,"reverse subtract":32779};V.ext_blend_minmax&&(Je.min=L,Je.max=D);var ar=V.angle_instanced_arrays,ze=V.webgl_draw_buffers,xr=V.oes_vertex_array_object,mr={dirty:!0,profile:fe.profile},Wr={},Be=[],Re={},Mr={};function dr(N){return N.replace(".","_")}function fr(N,U,$){var de=dr(N);Be.push(N),Wr[de]=mr[de]=!!$,Re[de]=U}function ur(N,U,$){var de=dr(N);Be.push(N),Array.isArray($)?(mr[de]=$.slice(),Wr[de]=$.slice()):mr[de]=Wr[de]=$,Mr[de]=U}function Sr(N){return!!isNaN(N)}fr(hc,D1),fr(s0,L1),ur(f0,"blendColor",[0,0,0,0]),ur(iu,"blendEquationSeparate",[oe,oe]),ur(ou,"blendFuncSeparate",[ne,j,ne,j]),fr(dc,Hh,!0),ur(pc,"depthFunc",ye),ur(mc,"depthRange",[0,1]),ur(yc,"depthMask",!0),ur(lu,lu,[!0,!0,!0,!0]),fr(hf,Uh),ur(u0,"cullFace",g),ur(su,su,k),ur(df,df,1),fr(gc,wc),ur(fu,"polygonOffset",[0,0]),fr(pf,Yh),fr(mf,Ac),ur(yf,"sampleCoverage",[1,!1]),fr(bc,F1),ur(uu,"stencilMask",-1),ur(Ci,"stencilFunc",[G,0,-1]),ur(gf,"stencilOpSeparate",[h,R,R,R]),ur(vl,"stencilOpSeparate",[g,R,R,R]),fr(cu,Vh),ur(hl,"scissor",[0,0,S.drawingBufferWidth,S.drawingBufferHeight]),ur(si,si,[0,0,S.drawingBufferWidth,S.drawingBufferHeight]);var jr={gl:S,context:Fr,strings:B,next:Wr,current:mr,draw:Zr,elements:we,buffer:xe,shader:lr,attributes:nr.state,vao:nr,uniforms:or,framebuffer:Ye,extensions:V,timer:br,isBufferArgs:er},ut={primTypes:Oo,compareFuncs:Me,blendFuncs:Ke,blendEquations:Je,stencilOps:qe,glTypes:vn,orientationType:Ue};ze&&(ut.backBuffer=[g],ut.drawBuffer=C(he.maxDrawbuffers,function(N){return N===0?[0]:C(N,function(U){return Xe+U})}));var gr=0;function kr(){var N=zh({cache:Ne}),U=N.link,$=N.global;N.id=gr++,N.batchId="0";var de=U(jr),Te=N.shared={props:"a0"};Object.keys(jr).forEach(function(K){Te[K]=$.def(de,".",K)});var ce=N.next={},se=N.current={};Object.keys(Mr).forEach(function(K){Array.isArray(mr[K])&&(ce[K]=$.def(Te.next,".",K),se[K]=$.def(Te.current,".",K))});var te=N.constants={};Object.keys(ut).forEach(function(K){te[K]=$.def(JSON.stringify(ut[K]))}),N.invoke=function(K,Y){switch(Y.type){case nu:var ve=["this",Te.context,Te.props,N.batchId];return K.def(U(Y.data),".call(",ve.slice(0,Math.max(Y.data.length+1,4)),")");case uf:return K.def(Te.props,Y.data);case cc:return K.def(Te.context,Y.data);case cf:return K.def("this",Y.data);case ws:return Y.data.append(N,K),Y.data.ref;case vc:return Y.data.toString();case vf:return Y.data.map(function(Ce){return N.invoke(K,Ce)})}},N.attribCache={};var W={};return N.scopeAttrib=function(K){var Y=B.id(K);if(Y in W)return W[Y];var ve=nr.scope[Y];ve||(ve=nr.scope[Y]=new ke);var Ce=W[Y]=U(ve);return Ce},N}function st(N){var U=N.static,$=N.dynamic,de;if(As in U){var Te=!!U[As];de=zr(function(se,te){return Te}),de.enable=Te}else if(As in $){var ce=$[As];de=tt(ce,function(se,te){return se.invoke(te,ce)})}return de}function ft(N,U){var $=N.static,de=N.dynamic;if(Do in $){var Te=$[Do];return Te?(Te=Ye.getFramebuffer(Te),zr(function(se,te){var W=se.link(Te),K=se.shared;te.set(K.framebuffer,".next",W);var Y=K.context;return te.set(Y,"."+Qi,W+".width"),te.set(Y,"."+Ki,W+".height"),W})):zr(function(se,te){var W=se.shared;te.set(W.framebuffer,".next","null");var K=W.context;return te.set(K,"."+Qi,K+"."+xc),te.set(K,"."+Ki,K+"."+_c),"null"})}else if(Do in de){var ce=de[Do];return tt(ce,function(se,te){var W=se.invoke(te,ce),K=se.shared,Y=K.framebuffer,ve=te.def(Y,".getFramebuffer(",W,")");te.set(Y,".next",ve);var Ce=K.context;return te.set(Ce,"."+Qi,ve+"?"+ve+".width:"+Ce+"."+xc),te.set(Ce,"."+Ki,ve+"?"+ve+".height:"+Ce+"."+_c),ve})}else return null}function St(N,U,$){var de=N.static,Te=N.dynamic;function ce(W){if(W in de){var K=de[W],Y=!0,ve=K.x|0,Ce=K.y|0,$e,$r;return"width"in K?$e=K.width|0:Y=!1,"height"in K?$r=K.height|0:Y=!1,new Le(!Y&&U&&U.thisDep,!Y&&U&&U.contextDep,!Y&&U&&U.propDep,function(Xr,Gr){var Br=Xr.shared.context,Tr=$e;"width"in K||(Tr=Gr.def(Br,".",Qi,"-",ve));var Rr=$r;return"height"in K||(Rr=Gr.def(Br,".",Ki,"-",Ce)),[ve,Ce,Tr,Rr]})}else if(W in Te){var Er=Te[W],Ar=tt(Er,function(Xr,Gr){var Br=Xr.invoke(Gr,Er),Tr=Xr.shared.context,Rr=Gr.def(Br,".x|0"),Or=Gr.def(Br,".y|0"),ct=Gr.def('"width" in ',Br,"?",Br,".width|0:","(",Tr,".",Qi,"-",Rr,")"),Kt=Gr.def('"height" in ',Br,"?",Br,".height|0:","(",Tr,".",Ki,"-",Or,")");return[Rr,Or,ct,Kt]});return U&&(Ar.thisDep=Ar.thisDep||U.thisDep,Ar.contextDep=Ar.contextDep||U.contextDep,Ar.propDep=Ar.propDep||U.propDep),Ar}else return U?new Le(U.thisDep,U.contextDep,U.propDep,function(Xr,Gr){var Br=Xr.shared.context;return[0,0,Gr.def(Br,".",Qi),Gr.def(Br,".",Ki)]}):null}var se=ce(si);if(se){var te=se;se=new Le(se.thisDep,se.contextDep,se.propDep,function(W,K){var Y=te.append(W,K),ve=W.shared.context;return K.set(ve,"."+k1,Y[2]),K.set(ve,"."+C1,Y[3]),Y})}return{viewport:se,scissor_box:ce(hl)}}function aa(N,U){var $=N.static,de=typeof $[dl]=="string"&&typeof $[Vo]=="string";if(de){if(Object.keys(U.dynamic).length>0)return null;var Te=U.static,ce=Object.keys(Te);if(ce.length>0&&typeof Te[ce[0]]=="number"){for(var se=[],te=0;te"+Rr+"?"+Y+".constant["+Rr+"]:0;"}).join(""),"}}else{","if(",$e,"(",Y,".buffer)){",Xr,"=",$r,".createStream(",vo,",",Y,".buffer);","}else{",Xr,"=",$r,".getBuffer(",Y,".buffer);","}",Gr,'="type" in ',Y,"?",Ce.glTypes,"[",Y,".type]:",Xr,".dtype;",Er.normalized,"=!!",Y,".normalized;");function Br(Tr){K(Er[Tr],"=",Y,".",Tr,"|0;")}return Br("size"),Br("offset"),Br("stride"),Br("divisor"),K("}}"),K.exit("if(",Er.isStream,"){",$r,".destroyStream(",Xr,");","}"),Er}Te[ce]=tt(se,te)}),Te}function Za(N){var U=N.static,$=N.dynamic,de={};return Object.keys(U).forEach(function(Te){var ce=U[Te];de[Te]=zr(function(se,te){return typeof ce=="number"||typeof ce=="boolean"?""+ce:se.link(ce)})}),Object.keys($).forEach(function(Te){var ce=$[Te];de[Te]=tt(ce,function(se,te){return se.invoke(te,ce)})}),de}function on(N,U,$,de,Te){var ce=N.static,se=N.dynamic,te=aa(N,U),W=ft(N,Te),K=St(N,W,Te),Y=Lt(N,Te),ve=nn(N,Te),Ce=Ma(N,Te,te);function $e(Br){var Tr=K[Br];Tr&&(ve[Br]=Tr)}$e(si),$e(dr(hl));var $r=Object.keys(ve).length>0,Er={framebuffer:W,draw:Y,shader:Ce,state:ve,dirty:$r,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Er.profile=st(N,Te),Er.uniforms=Ut($,Te),Er.drawVAO=Er.scopeVAO=Y.vao,!Er.drawVAO&&Ce.program&&!te&&V.angle_instanced_arrays&&Y.static.elements){var Ar=!0,Xr=Ce.program.attributes.map(function(Br){var Tr=U.static[Br];return Ar=Ar&&!!Tr,Tr});if(Ar&&Xr.length>0){var Gr=nr.getVAO(nr.createVAO({attributes:Xr,elements:Y.static.elements}));Er.drawVAO=new Le(null,null,null,function(Br,Tr){return Br.link(Gr)}),Er.useVAO=!0}}return te?Er.useVAO=!0:Er.attributes=Ya(U,Te),Er.context=Za(de,Te),Er}function ma(N,U,$){var de=N.shared,Te=de.context,ce=N.scope();Object.keys($).forEach(function(se){U.save(Te,"."+se);var te=$[se],W=te.append(N,U);Array.isArray(W)?ce(Te,".",se,"=[",W.join(),"];"):ce(Te,".",se,"=",W,";")}),U(ce)}function ya(N,U,$,de){var Te=N.shared,ce=Te.gl,se=Te.framebuffer,te;ze&&(te=U.def(Te.extensions,".webgl_draw_buffers"));var W=N.constants,K=W.drawBuffer,Y=W.backBuffer,ve;$?ve=$.append(N,U):ve=U.def(se,".next"),de||U("if(",ve,"!==",se,".cur){"),U("if(",ve,"){",ce,".bindFramebuffer(",ge,",",ve,".framebuffer);"),ze&&U(te,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ce,".bindFramebuffer(",ge,",null);"),ze&&U(te,".drawBuffersWEBGL(",Y,");"),U("}",se,".cur=",ve,";"),de||U("}")}function Sa(N,U,$){var de=N.shared,Te=de.gl,ce=N.current,se=N.next,te=de.current,W=de.next,K=N.cond(te,".dirty");Be.forEach(function(Y){var ve=dr(Y);if(!(ve in $.state)){var Ce,$e;if(ve in se){Ce=se[ve],$e=ce[ve];var $r=C(mr[ve].length,function(Ar){return K.def(Ce,"[",Ar,"]")});K(N.cond($r.map(function(Ar,Xr){return Ar+"!=="+$e+"["+Xr+"]"}).join("||")).then(Te,".",Mr[ve],"(",$r,");",$r.map(function(Ar,Xr){return $e+"["+Xr+"]="+Ar}).join(";"),";"))}else{Ce=K.def(W,".",ve);var Er=N.cond(Ce,"!==",te,".",ve);K(Er),ve in Re?Er(N.cond(Ce).then(Te,".enable(",Re[ve],");").else(Te,".disable(",Re[ve],");"),te,".",ve,"=",Ce,";"):Er(Te,".",Mr[ve],"(",Ce,");",te,".",ve,"=",Ce,";")}}}),Object.keys($.state).length===0&&K(te,".dirty=false;"),U(K)}function Tt(N,U,$,de){var Te=N.shared,ce=N.current,se=Te.current,te=Te.gl,W;tr(Object.keys($)).forEach(function(K){var Y=$[K];if(!(de&&!de(Y))){var ve=Y.append(N,U);if(Re[K]){var Ce=Re[K];Dr(Y)?(W=N.link(ve,{stable:!0}),U(N.cond(W).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(se,".",K,"=",W,";")):(U(N.cond(ve).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(se,".",K,"=",ve,";"))}else if(Si(ve)){var $e=ce[K];U(te,".",Mr[K],"(",ve,");",ve.map(function($r,Er){return $e+"["+Er+"]="+$r}).join(";"),";")}else Dr(Y)?(W=N.link(ve,{stable:!0}),U(te,".",Mr[K],"(",W,");",se,".",K,"=",W,";")):U(te,".",Mr[K],"(",ve,");",se,".",K,"=",ve,";")}})}function Ra(N,U){ar&&(N.instancing=U.def(N.shared.extensions,".angle_instanced_arrays"))}function Wt(N,U,$,de,Te){var ce=N.shared,se=N.stats,te=ce.current,W=ce.timer,K=$.profile;function Y(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function $e(Br){ve=U.def(),Br(ve,"=",Y(),";"),typeof Te=="string"?Br(se,".count+=",Te,";"):Br(se,".count++;"),br&&(de?(Ce=U.def(),Br(Ce,"=",W,".getNumPendingQueries();")):Br(W,".beginQuery(",se,");"))}function $r(Br){Br(se,".cpuTime+=",Y(),"-",ve,";"),br&&(de?Br(W,".pushScopeStats(",Ce,",",W,".getNumPendingQueries(),",se,");"):Br(W,".endQuery();"))}function Er(Br){var Tr=U.def(te,".profile");U(te,".profile=",Br,";"),U.exit(te,".profile=",Tr,";")}var Ar;if(K){if(Dr(K)){K.enable?($e(U),$r(U.exit),Er("true")):Er("false");return}Ar=K.append(N,U),Er(Ar)}else Ar=U.def(te,".profile");var Xr=N.block();$e(Xr),U("if(",Ar,"){",Xr,"}");var Gr=N.block();$r(Gr),U.exit("if(",Ar,"){",Gr,"}")}function Ja(N,U,$,de,Te){var ce=N.shared;function se(W){switch(W){case pl:case Il:case Ol:return 2;case an:case Ts:case _f:return 3;case xf:case du:case mu:return 4;default:return 1}}function te(W,K,Y){var ve=ce.gl,Ce=U.def(W,".location"),$e=U.def(ce.attributes,"[",Ce,"]"),$r=Y.state,Er=Y.buffer,Ar=[Y.x,Y.y,Y.z,Y.w],Xr=["buffer","normalized","offset","stride"];function Gr(){U("if(!",$e,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Tr=Y.type,Rr;if(Y.size?Rr=U.def(Y.size,"||",K):Rr=K,U("if(",$e,".type!==",Tr,"||",$e,".size!==",Rr,"||",Xr.map(function(ct){return $e+"."+ct+"!=="+Y[ct]}).join("||"),"){",ve,".bindBuffer(",vo,",",Er,".buffer);",ve,".vertexAttribPointer(",[Ce,Rr,Tr,Y.normalized,Y.stride,Y.offset],");",$e,".type=",Tr,";",$e,".size=",Rr,";",Xr.map(function(ct){return $e+"."+ct+"="+Y[ct]+";"}).join(""),"}"),ar){var Or=Y.divisor;U("if(",$e,".divisor!==",Or,"){",N.instancing,".vertexAttribDivisorANGLE(",[Ce,Or],");",$e,".divisor=",Or,";}")}}function Br(){U("if(",$e,".buffer){",ve,".disableVertexAttribArray(",Ce,");",$e,".buffer=null;","}if(",fo.map(function(Tr,Rr){return $e+"."+Tr+"!=="+Ar[Rr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Ar,");",fo.map(function(Tr,Rr){return $e+"."+Tr+"="+Ar[Rr]+";"}).join(""),"}")}$r===$i?Gr():$r===_s?Br():(U("if(",$r,"===",$i,"){"),Gr(),U("}else{"),Br(),U("}"))}de.forEach(function(W){var K=W.name,Y=$.attributes[K],ve;if(Y){if(!Te(Y))return;ve=Y.append(N,U)}else{if(!Te(mt))return;var Ce=N.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function($e){ve[$e]=U.def(Ce,".",$e)})}te(N.link(W),se(W.info.type),ve)})}function ln(N,U,$,de,Te,ce){for(var se=N.shared,te=se.gl,W,K=0;K1){for(var fn=[],Di=[],eo=0;eo>1)",Er],");")}function Or(){$(Ar,".drawArraysInstancedANGLE(",[Ce,$e,$r,Er],");")}Y&&Y!=="null"?Gr?Rr():($("if(",Y,"){"),Rr(),$("}else{"),Or(),$("}")):Or()}function Tr(){function Rr(){$(ce+".drawElements("+[Ce,$r,Xr,$e+"<<(("+Xr+"-"+uc+")>>1)"]+");")}function Or(){$(ce+".drawArrays("+[Ce,$e,$r]+");")}Y&&Y!=="null"?Gr?Rr():($("if(",Y,"){"),Rr(),$("}else{"),Or(),$("}")):Or()}ar&&(typeof Er!="number"||Er>=0)?typeof Er=="string"?($("if(",Er,">0){"),Br(),$("}else if(",Er,"<0){"),Tr(),$("}")):Br():Tr()}function dt(N,U,$,de,Te){var ce=kr(),se=ce.proc("body",Te);return ar&&(ce.instancing=se.def(ce.shared.extensions,".angle_instanced_arrays")),N(ce,se,$,de),ce.compile().body}function qt(N,U,$,de){Ra(N,U),$.useVAO?$.drawVAO?U(N.shared.vao,".setVAO(",$.drawVAO.append(N,U),");"):U(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(U(N.shared.vao,".setVAO(null);"),Ja(N,U,$,de.attributes,function(){return!0})),ln(N,U,$,de.uniforms,function(){return!0},!1),sn(N,U,U,$)}function Qt(N,U){var $=N.proc("draw",1);Ra(N,$),ma(N,$,U.context),ya(N,$,U.framebuffer),Sa(N,$,U),Tt(N,$,U.state),Wt(N,$,U,!1,!0);var de=U.shader.progVar.append(N,$);if($(N.shared.gl,".useProgram(",de,".program);"),U.shader.program)qt(N,$,U,U.shader.program);else{$(N.shared.vao,".setVAO(null);");var Te=N.global.def("{}"),ce=$.def(de,".id"),se=$.def(Te,"[",ce,"]");$(N.cond(se).then(se,".call(this,a0);").else(se,"=",Te,"[",ce,"]=",N.link(function(te){return dt(qt,N,U,te,1)}),"(",de,");",se,".call(this,a0);"))}Object.keys(U.state).length>0&&$(N.shared.current,".dirty=true;"),N.shared.vao&&$(N.shared.vao,".setVAO(null);")}function z(N,U,$,de){N.batchId="a1",Ra(N,U);function Te(){return!0}Ja(N,U,$,de.attributes,Te),ln(N,U,$,de.uniforms,Te,!1),sn(N,U,U,$)}function pe(N,U,$,de){Ra(N,U);var Te=$.contextDep,ce=U.def(),se="a0",te="a1",W=U.def();N.shared.props=W,N.batchId=ce;var K=N.scope(),Y=N.scope();U(K.entry,"for(",ce,"=0;",ce,"<",te,";++",ce,"){",W,"=",se,"[",ce,"];",Y,"}",K.exit);function ve(Xr){return Xr.contextDep&&Te||Xr.propDep}function Ce(Xr){return!ve(Xr)}if($.needsContext&&ma(N,Y,$.context),$.needsFramebuffer&&ya(N,Y,$.framebuffer),Tt(N,Y,$.state,ve),$.profile&&ve($.profile)&&Wt(N,Y,$,!1,!0),de)$.useVAO?$.drawVAO?ve($.drawVAO)?Y(N.shared.vao,".setVAO(",$.drawVAO.append(N,Y),");"):K(N.shared.vao,".setVAO(",$.drawVAO.append(N,K),");"):K(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(K(N.shared.vao,".setVAO(null);"),Ja(N,K,$,de.attributes,Ce),Ja(N,Y,$,de.attributes,ve)),ln(N,K,$,de.uniforms,Ce,!1),ln(N,Y,$,de.uniforms,ve,!0),sn(N,K,Y,$);else{var $e=N.global.def("{}"),$r=$.shader.progVar.append(N,Y),Er=Y.def($r,".id"),Ar=Y.def($e,"[",Er,"]");Y(N.shared.gl,".useProgram(",$r,".program);","if(!",Ar,"){",Ar,"=",$e,"[",Er,"]=",N.link(function(Xr){return dt(z,N,$,Xr,2)}),"(",$r,");}",Ar,".call(this,a0[",ce,"],",ce,");")}}function be(N,U){var $=N.proc("batch",2);N.batchId="0",Ra(N,$);var de=!1,Te=!0;Object.keys(U.context).forEach(function($e){de=de||U.context[$e].propDep}),de||(ma(N,$,U.context),Te=!1);var ce=U.framebuffer,se=!1;ce?(ce.propDep?de=se=!0:ce.contextDep&&de&&(se=!0),se||ya(N,$,ce)):ya(N,$,null),U.state.viewport&&U.state.viewport.propDep&&(de=!0);function te($e){return $e.contextDep&&de||$e.propDep}Sa(N,$,U),Tt(N,$,U.state,function($e){return!te($e)}),(!U.profile||!te(U.profile))&&Wt(N,$,U,!1,"a1"),U.contextDep=de,U.needsContext=Te,U.needsFramebuffer=se;var W=U.shader.progVar;if(W.contextDep&&de||W.propDep)pe(N,$,U,null);else{var K=W.append(N,$);if($(N.shared.gl,".useProgram(",K,".program);"),U.shader.program)pe(N,$,U,U.shader.program);else{$(N.shared.vao,".setVAO(null);");var Y=N.global.def("{}"),ve=$.def(K,".id"),Ce=$.def(Y,"[",ve,"]");$(N.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",Y,"[",ve,"]=",N.link(function($e){return dt(pe,N,U,$e,2)}),"(",K,");",Ce,".call(this,a0,a1);"))}}Object.keys(U.state).length>0&&$(N.shared.current,".dirty=true;"),N.shared.vao&&$(N.shared.vao,".setVAO(null);")}function Nr(N,U){var $=N.proc("scope",3);N.batchId="a2";var de=N.shared,Te=de.current;if(ma(N,$,U.context),U.framebuffer&&U.framebuffer.append(N,$),tr(Object.keys(U.state)).forEach(function(te){var W=U.state[te],K=W.append(N,$);Si(K)?K.forEach(function(Y,ve){Sr(Y)?$.set(N.next[te],"["+ve+"]",Y):$.set(N.next[te],"["+ve+"]",N.link(Y,{stable:!0}))}):Dr(W)?$.set(de.next,"."+te,N.link(K,{stable:!0})):$.set(de.next,"."+te,K)}),Wt(N,$,U,!0,!0),[uo,vu,qo,yi,Fo].forEach(function(te){var W=U.draw[te];if(W){var K=W.append(N,$);Sr(K)?$.set(de.draw,"."+te,K):$.set(de.draw,"."+te,N.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(te){var W=U.uniforms[te].append(N,$);Array.isArray(W)&&(W="["+W.map(function(K){return Sr(K)?K:N.link(K,{stable:!0})})+"]"),$.set(de.uniforms,"["+N.link(B.id(te),{stable:!0})+"]",W)}),Object.keys(U.attributes).forEach(function(te){var W=U.attributes[te].append(N,$),K=N.scopeAttrib(te);Object.keys(new ke).forEach(function(Y){$.set(K,"."+Y,W[Y])})}),U.scopeVAO){var ce=U.scopeVAO.append(N,$);Sr(ce)?$.set(de.vao,".targetVAO",ce):$.set(de.vao,".targetVAO",N.link(ce,{stable:!0}))}function se(te){var W=U.shader[te];if(W){var K=W.append(N,$);Sr(K)?$.set(de.shader,"."+te,K):$.set(de.shader,"."+te,N.link(K,{stable:!0}))}}se(Vo),se(dl),Object.keys(U.state).length>0&&($(Te,".dirty=true;"),$.exit(Te,".dirty=true;")),$("a1(",N.shared.context,",a0,",N.batchId,");")}function Dt(N){if(!(typeof N!="object"||Si(N))){for(var U=Object.keys(N),$=0;$=0;--dt){var qt=jr[dt];qt&&qt(Ne,null,0)}V.flush(),lr&&lr.update()}function St(){!st&&jr.length>0&&(st=d.next(ft))}function aa(){st&&(d.cancel(ft),st=null)}function Ma(dt){dt.preventDefault(),xe=!0,aa(),ut.forEach(function(qt){qt()})}function Lt(dt){V.getError(),xe=!1,we.restore(),Wr.restore(),ar.restore(),Be.restore(),Re.restore(),Mr.restore(),xr.restore(),lr&&lr.restore(),dr.procs.refresh(),St(),gr.forEach(function(qt){qt()})}Sr&&(Sr.addEventListener(jt,Ma,!1),Sr.addEventListener(ca,Lt,!1));function nn(){jr.length=0,aa(),Sr&&(Sr.removeEventListener(jt,Ma),Sr.removeEventListener(ca,Lt)),Wr.clear(),Mr.clear(),Re.clear(),xr.clear(),Be.clear(),ze.clear(),ar.clear(),lr&&lr.clear(),kr.forEach(function(dt){dt()})}function Ut(dt){function qt(ce){var se=e({},ce);delete se.uniforms,delete se.attributes,delete se.context,delete se.vao,"stencil"in se&&se.stencil.op&&(se.stencil.opBack=se.stencil.opFront=se.stencil.op,delete se.stencil.op);function te(W){if(W in se){var K=se[W];delete se[W],Object.keys(K).forEach(function(Y){se[W+"."+Y]=K[Y]})}}return te("blend"),te("depth"),te("cull"),te("stencil"),te("polygonOffset"),te("scissor"),te("sample"),"vao"in ce&&(se.vao=ce.vao),se}function Qt(ce,se){var te={},W={};return Object.keys(ce).forEach(function(K){var Y=ce[K];if(v.isDynamic(Y)){W[K]=v.unbox(Y,K);return}else if(se&&Array.isArray(Y)){for(var ve=0;ve0)return N.call(this,de(ce|0),ce|0)}else if(Array.isArray(ce)){if(ce.length)return N.call(this,ce,ce.length)}else return qr.call(this,ce)}return e(Te,{stats:Dt,destroy:function(){Ht.destroy()}})}var Ya=Mr.setFBO=Ut({framebuffer:v.define.call(null,Xa,"framebuffer")});function Za(dt,qt){var Qt=0;dr.procs.poll();var z=qt.color;z&&(V.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=xn),"depth"in qt&&(V.clearDepth(+qt.depth),Qt|=Da),"stencil"in qt&&(V.clearStencil(qt.stencil|0),Qt|=ht),V.clear(Qt)}function on(dt){if("framebuffer"in dt)if(dt.framebuffer&&dt.framebuffer_reglType==="framebufferCube")for(var qt=0;qt<6;++qt)Ya(e({framebuffer:dt.framebuffer.faces[qt]},dt),Za);else Ya(dt,Za);else Za(null,dt)}function ma(dt){jr.push(dt);function qt(){var Qt=Qn(jr,dt);function z(){var pe=Qn(jr,z);jr[pe]=jr[jr.length-1],jr.length-=1,jr.length<=0&&aa()}jr[Qt]=z}return St(),{cancel:qt}}function ya(){var dt=ur.viewport,qt=ur.scissor_box;dt[0]=dt[1]=qt[0]=qt[1]=0,Ne.viewportWidth=Ne.framebufferWidth=Ne.drawingBufferWidth=dt[2]=qt[2]=V.drawingBufferWidth,Ne.viewportHeight=Ne.framebufferHeight=Ne.drawingBufferHeight=dt[3]=qt[3]=V.drawingBufferHeight}function Sa(){Ne.tick+=1,Ne.time=Ra(),ya(),dr.procs.poll()}function Tt(){Be.refresh(),ya(),dr.procs.refresh(),lr&&lr.update()}function Ra(){return(p()-Zr)/1e3}Tt();function Wt(dt,qt){var Qt;switch(dt){case"frame":return ma(qt);case"lost":Qt=ut;break;case"restore":Qt=gr;break;case"destroy":Qt=kr;break;default:}return Qt.push(qt),{cancel:function(){for(var z=0;z=0},read:fr,destroy:nn,_gl:V,_refresh:Tt,poll:function(){Sa(),lr&&lr.update()},now:Ra,stats:Ye,getCachedCode:Ja,preloadCachedCode:ln});return B.onDone(null,sn),sn}return Li})});var Y_=P((HIe,Nre)=>{"use strict";var m9e=Rre(),y9e=Pre();Nre.exports=function(r,t,a){var n=r._fullLayout,i=!0;return n._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(a);return}if(!(o.pick&&!n._has("parcoords"))){try{o.regl=y9e({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:r._context.plotGlPixelRatio||window.devicePixelRatio,extensions:t||[],cachedCode:a||{}})}catch(l){i=!1}o.regl||(i=!1),i&&this.addEventListener("webglcontextlost",function(l){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:l,layer:o.key})},!1)}}),i||m9e({container:n._glcontainer.node()}),i}});var Ure=P((g9,Gre)=>{"use strict";var Ire=s7(),Ore=B7(),g9e=ree(),Bre=Dre(),y9=Ur(),b9e=jc().selectMode,x9e=Y_(),_9e=Ri(),w9e=q6(),A9e=i7().styleTextSelection,zre={};function T9e(e,r,t,a){var n=e._size,i=e.width*a,o=e.height*a,l=n.l*a,s=n.b*a,f=n.r*a,u=n.t*a,c=n.w*a,v=n.h*a;return[l+r.domain[0]*c,s+t.domain[0]*v,i-f-(1-r.domain[1])*c,o-u-(1-t.domain[1])*v]}var g9=Gre.exports=function(r,t,a){if(a.length){var n=r._fullLayout,i=t._scene,o=t.xaxis,l=t.yaxis,s,f;if(i){var u=x9e(r,["ANGLE_instanced_arrays","OES_element_index_uint"],zre);if(!u){i.init();return}var c=i.count,v=n._glcanvas.data()[0].regl;if(w9e(r,t,a),i.dirty){if((i.line2d||i.error2d)&&!(i.scatter2d||i.fill2d||i.glText)&&v.clear({color:!0,depth:!0}),i.error2d===!0&&(i.error2d=g9e(v)),i.line2d===!0&&(i.line2d=Ore(v)),i.scatter2d===!0&&(i.scatter2d=Ire(v)),i.fill2d===!0&&(i.fill2d=Ore(v)),i.glText===!0)for(i.glText=new Array(c),s=0;si.glText.length){var d=c-i.glText.length;for(s=0;sue&&(isNaN(ie[De])||isNaN(ie[De+1]));)De-=2;J.positions=ie.slice(ue,De+2)}return J}),i.line2d.update(i.lineOptions)),i.error2d){var m=(i.errorXOptions||[]).concat(i.errorYOptions||[]);i.error2d.update(m)}i.scatter2d&&i.scatter2d.update(i.markerOptions),i.fillOrder=y9.repeat(null,c),i.fill2d&&(i.fillOptions=i.fillOptions.map(function(J,ie){var ue=a[ie];if(!(!J||!ue||!ue[0]||!ue[0].trace)){var De=ue[0],Ie=De.trace,Ee=De.t,Ze=i.lineOptions[ie],Ae,ir,Ge=[];Ie._ownfill&&Ge.push(ie),Ie._nexttrace&&Ge.push(ie+1),Ge.length&&(i.fillOrder[ie]=Ge);var Qe=[],He=Ze&&Ze.positions||Ee.positions,Ve,ee;if(Ie.fill==="tozeroy"){for(Ve=0;VeVe&&isNaN(He[ee+1]);)ee-=2;He[Ve+1]!==0&&(Qe=[He[Ve],0]),Qe=Qe.concat(He.slice(Ve,ee+2)),He[ee+1]!==0&&(Qe=Qe.concat([He[ee],0]))}else if(Ie.fill==="tozerox"){for(Ve=0;VeVe&&isNaN(He[ee]);)ee-=2;He[Ve]!==0&&(Qe=[0,He[Ve+1]]),Qe=Qe.concat(He.slice(Ve,ee+2)),He[ee]!==0&&(Qe=Qe.concat([0,He[ee+1]]))}else if(Ie.fill==="toself"||Ie.fill==="tonext"){for(Qe=[],Ae=0,J.splitNull=!0,ir=0;ir-1;for(s=0;s{"use strict";var Hre=NJ();Hre.plot=Ure();Vre.exports=Hre});var jre=P((YIe,Wre)=>{"use strict";Wre.exports=Yre()});var b9=P((WIe,$re)=>{"use strict";var M9e=Qc(),Jre=E0(),Xre=am().axisHoverFormat,S9e=y0().hovertemplateAttrs,ug=sx(),E9e=qi().idRegex,k9e=$a().templatedArray,Up=zn().extendFlat,Yu=M9e.marker,C9e=Yu.line,L9e=Up(Jre("marker.line",{editTypeOverride:"calc"}),{width:Up({},C9e.width,{editType:"calc"}),editType:"calc"}),W_=Up(Jre("marker"),{symbol:Yu.symbol,angle:Yu.angle,size:Up({},Yu.size,{editType:"markerSize"}),sizeref:Yu.sizeref,sizemin:Yu.sizemin,sizemode:Yu.sizemode,opacity:Yu.opacity,colorbar:Yu.colorbar,line:L9e,editType:"calc"});W_.color.editType=W_.cmin.editType=W_.cmax.editType="style";function Zre(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:E9e[e],editType:"plot"}}}$re.exports={dimensions:k9e("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:Up({},ug.text,{}),hovertext:Up({},ug.hovertext,{}),hovertemplate:S9e(),xhoverformat:Xre("x"),yhoverformat:Xre("y"),marker:W_,xaxes:Zre("x"),yaxes:Zre("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:ug.selected.marker,editType:"calc"},unselected:{marker:ug.unselected.marker,editType:"calc"},opacity:ug.opacity}});var x9=P((jIe,Qre)=>{"use strict";Qre.exports=function(e,r,t,a){a||(a=1/0);var n,i;for(n=0;n{"use strict";var _9=Ur(),D9e=gl(),Kre=b9(),F9e=Ri(),q9e=gb(),R9e=x9(),P9e=fx().isOpenSymbol;ete.exports=function(r,t,a,n){function i(d,p){return _9.coerce(r,t,Kre,d,p)}var o=D9e(r,t,{name:"dimensions",handleItemDefaults:N9e}),l=i("diagonal.visible"),s=i("showupperhalf"),f=i("showlowerhalf"),u=R9e(t,o,"values");if(!u||!l&&!s&&!f){t.visible=!1;return}i("text"),i("hovertext"),i("hovertemplate"),i("xhoverformat"),i("yhoverformat"),q9e(r,t,a,n,i,{noAngleRef:!0,noStandOff:!0});var c=P9e(t.marker.symbol),v=F9e.isBubble(t);i("marker.line.width",c||v?1:0),I9e(r,t,n,i),_9.coerceSelectionMarkerOpacity(t,i)};function N9e(e,r){function t(n,i){return _9.coerce(e,r,Kre.dimensions,n,i)}t("label");var a=t("values");a&&a.length?t("visible"):r.visible=!1,t("axis.type"),t("axis.matches")}function I9e(e,r,t,a){var n=r.dimensions,i=n.length,o=r.showupperhalf,l=r.showlowerhalf,s=r.diagonal.visible,f,u,c=new Array(i),v=new Array(i);for(f=0;fu&&o||f{"use strict";var tte=Ur();ate.exports=function(r,t){var a=r._fullLayout,n=t.uid,i=a._splomScenes;i||(i=a._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},l={matrix:!1,selectBatch:[],unselectBatch:[]},s=i[t.uid];return s||(s=i[n]=tte.extendFlat({},o,l),s.draw=function(){s.matrix&&s.matrix.draw&&(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&&s.matrix.destroy&&s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||tte.extendFlat(s,o),s}});var lte=P((JIe,ote)=>{"use strict";var w9=Ur(),j_=Sn(),O9e=Yd().calcMarkerSize,B9e=Yd().calcAxisExpansion,z9e=Km(),ite=jy().markerSelection,G9e=jy().markerStyle,U9e=nte(),H9e=Kn().BADNUM,V9e=fp().TOO_MANY_POINTS;ote.exports=function(r,t){var a=t.dimensions,n=t._length,i={},o=i.cdata=[],l=i.data=[],s=t._visibleDims=[],f,u,c,v,d;function p(_,x){for(var T=_.makeCalcdata({v:x.values,vcalendar:t.calendar},"v"),E=0;EV9e,b;for(m?b=i.sizeAvg||Math.max(i.size,3):b=O9e(t,n),u=0;u{(function(){var e,r,t,a,n,i;typeof performance!="undefined"&&performance!==null&&performance.now?cg.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(cg.exports=function(){return(e()-n)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),i=process.uptime()*1e9,n=a-i):Date.now?(cg.exports=function(){return Date.now()-t},t=Date.now()):(cg.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(ste)});var cte=P(($Ie,J_)=>{var Y9e=fte(),Wu=window,X_=["moz","webkit"],Vp="AnimationFrame",Yp=Wu["request"+Vp],vg=Wu["cancel"+Vp]||Wu["cancelRequest"+Vp];for(Hp=0;!Yp&&Hp{vte.exports=function(r,t){var a=typeof r=="number",n=typeof t=="number";a&&!n?(t=r,r=0):!a&&!n&&(r=0,t=0),r=r|0,t=t|0;var i=t-r;if(i<0)throw new Error("array length must be positive");for(var o=new Array(i),l=0,s=r;l{"use strict";var W9e=s7(),j9e=If(),X9e=th(),dte=cte(),Z9e=hte(),T9=cp(),J9e=ah();mte.exports=wv;function wv(e,r){if(!(this instanceof wv))return new wv(e,r);this.traces=[],this.passes={},this.regl=e,this.scatter=W9e(e),this.canvas=this.scatter.canvas}wv.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=dte(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,dte(()=>{this.dirty=!1})),this)};wv.prototype.update=function(...e){if(!e.length)return;for(let a=0;am||!n.lower&&y{r[i+l]=a})}this.scatter.draw(...r)}return this};wv.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function $9e(e,r,t){let a=e.id!=null?e.id:e,n=r,i=t;return a<<16|(n&255)<<8|i&255}function $_(e,r,t){let a,n,i,o,l,s,f,u,c=e[r],v=e[t];return c.length>2?(a=c[0],i=c[2],n=c[1],o=c[3]):c.length?(a=n=c[0],i=o=c[1]):(a=c.x,n=c.y,i=c.x+c.width,o=c.y+c.height),v.length>2?(l=v[0],f=v[2],s=v[1],u=v[3]):v.length?(l=s=v[0],f=u=v[1]):(l=v.x,s=v.y,f=v.x+v.width,u=v.y+v.height),[l,n,f,o]}function pte(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let r=T9(e);return[r.x,r.y,r.x+r.width,r.y+r.height]}}});var bte=P((eOe,gte)=>{"use strict";var Q9e=yte(),M9=Ur(),Q_=Sn(),K9e=jc().selectMode;gte.exports=function(r,t,a){if(a.length)for(var n=0;n-1,O=K9e(u)||!!n.selectedpoints||I,q=!0;if(O){var H=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var X=n.selectedpoints,le={};for(d=0;d{"use strict";xte.getDimIndex=function(r,t){for(var a=t._id,n=a.charAt(0),i={x:0,y:1}[n],o=r._visibleDims,l=0;l{"use strict";var _te=S9(),rMe=GT().calcHover,wte=mn().getFromId,tMe=zn().extendFlat;function aMe(e,r,t,a,n){n||(n={});var i=(a||"").charAt(0)==="x",o=(a||"").charAt(0)==="y",l=Ate(e,r,t);if((i||o)&&n.hoversubplots==="axis"&&l[0])for(var s=(i?e.xa:e.ya)._subplotsWith,f=n.gd,u=tMe({},e),c=0;c{"use strict";var Cte=Ur(),Ste=Cte.pushUnique,Ete=Ri(),kte=S9();Lte.exports=function(r,t){var a=r.cd,n=a[0].trace,i=a[0].t,o=r.scene,l=o.matrixOptions.cdata,s=r.xaxis,f=r.yaxis,u=[];if(!o)return u;var c=!Ete.hasMarkers(n)&&!Ete.hasText(n);if(n.visible!==!0||c)return u;var v=kte.getDimIndex(n,s),d=kte.getDimIndex(n,f);if(v===!1||d===!1)return u;var p=i.xpx[v],y=i.ypx[d],m=l[v],b=l[d],A=(r.scene.selectBatch||[]).slice(),_=[];if(t!==!1&&!t.degenerate)for(var x=0;x{"use strict";var Fte=Ur(),nMe=Km(),iMe=jy().markerStyle;qte.exports=function(r,t){var a=t.trace,n=r._fullLayout._splomScenes[a.uid];if(n){nMe(r,a),Fte.extendFlat(n.matrixOptions,iMe(r,a));var i=Fte.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(i,null)}}});var Nte=P((iOe,Pte)=>{"use strict";var oMe=Bt(),lMe=kT();Pte.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:b9(),supplyDefaults:rte(),colorbar:Mb(),calc:lte(),plot:bte(),hoverPoints:Mte().hoverPoints,selectPoints:Dte(),editStyle:Rte(),meta:{}};oMe.register(lMe)});var Ute=P((oOe,Gte)=>{"use strict";var sMe=B7(),fMe=Bt(),uMe=Y_(),cMe=K1().getModuleCalcData,Av=oy(),Ite=Sn().getFromId,Ote=mn().shouldShowZeroLine,Bte="splom",zte={};function vMe(e){var r=e._fullLayout,t=fMe.getModule(Bte),a=cMe(e.calcdata,t)[0],n=uMe(e,["ANGLE_instanced_arrays","OES_element_index_uint"],zte);n&&(r._hasOnlyLargeSploms&&E9(e),t.plot(e,{},a))}function hMe(e){var r=e.calcdata,t=e._fullLayout;t._hasOnlyLargeSploms&&E9(e);for(var a=0;a{"use strict";var Hte=Nte();Hte.basePlotModule=Ute(),Vte.exports=Hte});var jte=P((sOe,Wte)=>{"use strict";Wte.exports=Yte()});var L9=P((fOe,Xte)=>{"use strict";var yMe=E0(),k9=Ul(),C9=zi(),gMe=tx().attributes,K_=zn().extendFlat,bMe=$a().templatedArray;Xte.exports={domain:gMe({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:C9({editType:"plot"}),tickfont:C9({autoShadowDflt:!0,editType:"plot"}),rangefont:C9({editType:"plot"}),dimensions:bMe("dimension",{label:{valType:"string",editType:"plot"},tickvals:K_({},k9.tickvals,{editType:"plot"}),ticktext:K_({},k9.ticktext,{editType:"plot"}),tickformat:K_({},k9.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:K_({editType:"calc"},yMe("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var hg=P((uOe,Zte)=>{"use strict";Zte.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var dg=P((cOe,$te)=>{"use strict";var xMe=Qg();function Jte(e){return[e]}$te.exports={keyFun:function(e){return e.key},repeat:Jte,descend:xMe,wrap:Jte,unwrap:function(e){return e[0]}}});var q9=P((vOe,sae)=>{"use strict";var jn=hg(),ef=ha(),_Me=dg().keyFun,e5=dg().repeat,Wp=Ur().sorterAsc,wMe=Ur().strTranslate,Qte=jn.bar.snapRatio;function Kte(e,r){return e*(1-Qte)+r*Qte}var eae=jn.bar.snapClose;function AMe(e,r){return e*(1-eae)+r*eae}function t5(e,r,t,a){if(TMe(t,a))return t;var n=e?-1:1,i=0,o=r.length-1;if(n<0){var l=i;i=o,o=l}for(var s=r[i],f=s,u=i;n*u=r[t][0]&&e<=r[t][1])return!0;return!1}function MMe(e){e.attr("x",-jn.bar.captureWidth/2).attr("width",jn.bar.captureWidth)}function SMe(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function EMe(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var r=rae(e.brush.filter.getConsolidated(),e.height),t=[0],a,n,i,o=r.length?r[0][0]:null,l=0;le[1]+t||r=.9*e[1]+.1*e[0]?"n":r<=.9*e[0]+.1*e[1]?"s":"ns"}function tae(){ef.select(document.body).style("cursor",null)}function F9(e){e.attr("stroke-dasharray",EMe)}function r5(e,r){var t=ef.select(e).selectAll(".highlight, .highlight-shadow"),a=r?t.transition().duration(jn.bar.snapDuration).each("end",r):t;F9(a)}function aae(e,r){var t=e.brush,a=t.filterSpecified,n=NaN,i={},o;if(a){var l=e.height,s=t.filter.getConsolidated(),f=rae(s,l),u=NaN,c=NaN,v=NaN;for(o=0;o<=f.length;o++){var d=f[o];if(d&&d[0]<=r&&r<=d[1]){u=o;break}else if(c=o?o-1:NaN,d&&d[0]>r){v=o;break}}if(n=u,isNaN(n)&&(isNaN(c)||isNaN(v)?n=isNaN(c)?v:c:n=r-f[c][1]=A[0]&&b<=A[1]){i.clickableOrdinalRange=A;break}}}return i}function CMe(e,r){ef.event.sourceEvent.stopPropagation();var t=r.height-ef.mouse(e)[1]-2*jn.verticalPadding,a=r.unitToPaddedPx.invert(t),n=r.brush,i=aae(r,t),o=i.interval,l=n.svgBrush;if(l.wasDragged=!1,l.grabbingBar=i.region==="ns",l.grabbingBar){var s=o.map(r.unitToPaddedPx);l.grabPoint=t-s[0]-jn.verticalPadding,l.barLength=s[1]-s[0]}l.clickableOrdinalRange=i.clickableOrdinalRange,l.stayingIntervals=r.multiselect&&n.filterSpecified?n.filter.getConsolidated():[],o&&(l.stayingIntervals=l.stayingIntervals.filter(function(f){return f[0]!==o[0]&&f[1]!==o[1]})),l.startExtent=i.region?o[i.region==="s"?1:0]:a,r.parent.inBrushDrag=!0,l.brushStartCallback()}function nae(e,r){ef.event.sourceEvent.stopPropagation();var t=r.height-ef.mouse(e)[1]-2*jn.verticalPadding,a=r.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[t-a.grabPoint,t+a.barLength-a.grabPoint].map(r.unitToPaddedPx.invert):a.newExtent=[a.startExtent,r.unitToPaddedPx.invert(t)].sort(Wp),r.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(r),r5(e.parentNode)}function LMe(e,r){var t=r.brush,a=t.filter,n=t.svgBrush;n._dragging||(iae(e,r),nae(e,r),r.brush.svgBrush.wasDragged=!1),n._dragging=!1;var i=ef.event;i.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,r.parent.inBrushDrag=!1,tae(),!n.wasDragged){n.wasDragged=void 0,n.clickableOrdinalRange?t.filterSpecified&&r.multiselect?n.extent.push(n.clickableOrdinalRange):(n.extent=[n.clickableOrdinalRange],t.filterSpecified=!0):o?(n.extent=n.stayingIntervals,n.extent.length===0&&D9(t)):D9(t),n.brushCallback(r),r5(e.parentNode),n.brushEndCallback(t.filterSpecified?a.getConsolidated():[]);return}var l=function(){a.set(a.getConsolidated())};if(r.ordinal){var s=r.unitTickvals;s[s.length-1]n.newExtent[0];n.extent=n.stayingIntervals.concat(f?[n.newExtent]:[]),n.extent.length||D9(t),n.brushCallback(r),f?r5(e.parentNode,l):(l(),r5(e.parentNode))}else l();n.brushEndCallback(t.filterSpecified?a.getConsolidated():[])}function iae(e,r){var t=r.height-ef.mouse(e)[1]-2*jn.verticalPadding,a=aae(r,t),n="crosshair";a.clickableOrdinalRange?n="pointer":a.region&&(n=a.region+"-resize"),ef.select(document.body).style("cursor",n)}function DMe(e){e.on("mousemove",function(r){ef.event.preventDefault(),r.parent.inBrushDrag||iae(this,r)}).on("mouseleave",function(r){r.parent.inBrushDrag||tae()}).call(ef.behavior.drag().on("dragstart",function(r){CMe(this,r)}).on("drag",function(r){nae(this,r)}).on("dragend",function(r){LMe(this,r)}))}function oae(e,r){return e[0]-r[0]}function FMe(e,r,t){var a=t._context.staticPlot,n=e.selectAll(".background").data(e5);n.enter().append("rect").classed("background",!0).call(MMe).call(SMe).style("pointer-events",a?"none":"auto").attr("transform",wMe(0,jn.verticalPadding)),n.call(DMe).attr("height",function(l){return l.height-jn.verticalPadding});var i=e.selectAll(".highlight-shadow").data(e5);i.enter().append("line").classed("highlight-shadow",!0).attr("x",-jn.bar.width/2).attr("stroke-width",jn.bar.width+jn.bar.strokeWidth).attr("stroke",r).attr("opacity",jn.bar.strokeOpacity).attr("stroke-linecap","butt"),i.attr("y1",function(l){return l.height}).call(F9);var o=e.selectAll(".highlight").data(e5);o.enter().append("line").classed("highlight",!0).attr("x",-jn.bar.width/2).attr("stroke-width",jn.bar.width-jn.bar.strokeWidth).attr("stroke",jn.bar.fillColor).attr("opacity",jn.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(l){return l.height}).call(F9)}function qMe(e,r,t){var a=e.selectAll("."+jn.cn.axisBrush).data(e5,_Me);a.enter().append("g").classed(jn.cn.axisBrush,!0),FMe(a,r,t)}function RMe(e){return e.svgBrush.extent.map(function(r){return r.slice()})}function D9(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function PMe(e){return function(t){var a=t.brush,n=RMe(a),i=n.slice();a.filter.set(i),e()}}function lae(e){for(var r=e.slice(),t=[],a,n=r.shift();n;){for(a=n.slice();(n=r.shift())&&n[0]<=a[1];)a[1]=Math.max(a[1],n[1]);t.push(a)}return t.length===1&&t[0][0]>t[0][1]&&(t=[]),t}function NMe(){var e=[],r,t;return{set:function(a){e=a.map(function(n){return n.slice().sort(Wp)}).sort(oae),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),r=lae(e),t=e.reduce(function(n,i){return[Math.min(n[0],i[0]),Math.max(n[1],i[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return r},getBounds:function(){return t}}}function IMe(e,r,t,a,n,i){var o=NMe();return o.set(t),{filter:o,filterSpecified:r,svgBrush:{extent:[],brushStartCallback:a,brushCallback:PMe(n),brushEndCallback:i}}}function OMe(e,r){if(Array.isArray(e[0])?(e=e.map(function(a){return a.sort(Wp)}),r.multiselect?e=lae(e.sort(oae)):e=[e[0]]):e=[e.sort(Wp)],r.tickvals){var t=r.tickvals.slice().sort(Wp);if(e=e.map(function(a){var n=[t5(0,t,a[0],[]),t5(1,t,a[1],[])];if(n[1]>n[0])return n}).filter(function(a){return a}),!e.length)return}return e.length>1?e:e[0]}sae.exports={makeBrush:IMe,ensureAxisBrush:qMe,cleanRanges:OMe}});var cae=P((hOe,uae)=>{"use strict";var Tv=Ur(),BMe=Rs().hasColorscale,zMe=pd(),GMe=tx().defaults,UMe=gl(),HMe=mn(),fae=L9(),VMe=q9(),R9=hg().maxDimensionCount,YMe=x9();function WMe(e,r,t,a,n){var i=n("line.color",t);if(BMe(e,"line")&&Tv.isArrayOrTypedArray(i)){if(i.length)return n("line.colorscale"),zMe(e,r,a,n,{prefix:"line.",cLetter:"c"}),i.length;r.line.color=t}return 1/0}function jMe(e,r,t,a){function n(f,u){return Tv.coerce(e,r,fae.dimensions,f,u)}var i=n("values"),o=n("visible");if(i&&i.length||(o=r.visible=!1),o){n("label"),n("tickvals"),n("ticktext"),n("tickformat");var l=n("range");r._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:l},HMe.setConvert(r._ax,a.layout),n("multiselect");var s=n("constraintrange");s&&(r.constraintrange=VMe.cleanRanges(s,r))}}uae.exports=function(r,t,a,n){function i(u,c){return Tv.coerce(r,t,fae,u,c)}var o=r.dimensions;Array.isArray(o)&&o.length>R9&&(Tv.log("parcoords traces support up to "+R9+" dimensions at the moment"),o.splice(R9));var l=UMe(r,t,{name:"dimensions",layout:n,handleItemDefaults:jMe}),s=WMe(r,t,a,n,i);GMe(t,n,i),(!Array.isArray(l)||!l.length)&&(t.visible=!1),YMe(t,l,"values",s);var f=Tv.extendFlat({},n.font,{size:Math.round(n.font.size/1.2)});Tv.coerceFont(i,"labelfont",f),Tv.coerceFont(i,"tickfont",f,{autoShadowDflt:!0}),Tv.coerceFont(i,"rangefont",f),i("labelangle"),i("labelside"),i("unselected.line.color"),i("unselected.line.opacity")}});var hae=P((dOe,vae)=>{"use strict";var XMe=Ur().isArrayOrTypedArray,P9=yd(),ZMe=dg().wrap;vae.exports=function(r,t){var a,n;return P9.hasColorscale(t,"line")&&XMe(t.line.color)?(a=t.line.color,n=P9.extractOpts(t.line).colorscale,P9.calc(r,t,{vals:a,containerStr:"line",cLetter:"c"})):(a=JMe(t._length),n=[[0,t.line.color],[1,t.line.color]]),ZMe({lineColor:a,cscale:n})};function JMe(e){for(var r=new Array(e),t=0;t>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),N9.default[e])t=N9.default[e].slice(),n="rgb";else if(e==="transparent")a=0,n="rgb",t=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),o=i.length,l=o<=4;a=1,l?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],o===4&&(a=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],o===8&&(a=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(r=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var s=r[1];n=s.replace(/a$/,"");var f=n==="cmyk"?4:n==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/),n==="color"&&(n=t.shift()),t=t.map(function(v,d){if(v[v.length-1]==="%")return v=parseFloat(v)/100,d===3?v:n==="rgb"?v*255:n[0]==="h"||n[0]==="l"&&!d?v*100:n==="lab"?v*125:n==="lch"?d<2?v*150:v*360:n[0]==="o"&&!d?v:n==="oklab"?v*.4:n==="oklch"?d<2?v*.4:v*360:v;if(n[d]==="h"||d===2&&n[n.length-1]==="h"){if(dae[v]!==void 0)return dae[v];if(v.endsWith("deg"))return parseFloat(v);if(v.endsWith("turn"))return parseFloat(v)*360;if(v.endsWith("grad"))return parseFloat(v)*360/400;if(v.endsWith("rad"))return parseFloat(v)*180/Math.PI}return v==="none"?0:parseFloat(v)}),a=t.length>f?t.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(v){return parseFloat(v)}),n=((c=(u=e.match(/([a-z])/ig))==null?void 0:u.join(""))==null?void 0:c.toLowerCase())||"rgb");return{space:n,values:t,alpha:a}}var N9,pae,dae,mae=Tg(()=>{N9=Une(Q8(),1),pae=$Me,dae={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var pg,I9=Tg(()=>{pg={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var a5,yae=Tg(()=>{I9();a5={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var r=e[0]/360,t=e[1]/100,a=e[2]/100,n,i,o,l,s,f=0;if(t===0)return s=a*255,[s,s,s];for(i=a<.5?a*(1+t):a+t-a*t,n=2*a-i,l=[0,0,0];f<3;)o=r+1/3*-(f-1),o<0?o++:o>1&&o--,s=6*o<1?n+(i-n)*6*o:2*o<1?i:3*o<2?n+(i-n)*(2/3-o)*6:n,l[f++]=s*255;return l}};pg.hsl=function(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255,n=Math.min(r,t,a),i=Math.max(r,t,a),o=i-n,l,s,f;return i===n?l=0:r===i?l=(t-a)/o:t===i?l=2+(a-r)/o:a===i&&(l=4+(r-t)/o),l=Math.min(l*60,360),l<0&&(l+=360),f=(n+i)/2,i===n?s=0:f<=.5?s=o/(i+n):s=o/(2-i-n),[l,s*100,f*100]}});var bae={};Gne(bae,{default:()=>gae});function gae(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var r,t,a,n=pae(e);if(!n.space)return[];let i=n.space[0]==="h"?a5.min:pg.min,o=n.space[0]==="h"?a5.max:pg.max;return r=Array(3),r[0]=Math.min(Math.max(n.values[0],i[0]),o[0]),r[1]=Math.min(Math.max(n.values[1],i[1]),o[1]),r[2]=Math.min(Math.max(n.values[2],i[2]),o[2]),n.space[0]==="h"&&(r=a5.rgb(r)),r.push(Math.min(Math.max(n.alpha,0),1)),r}var xae=Tg(()=>{mae();I9();yae()});var O9=P(n5=>{"use strict";var QMe=Ur().isTypedArray;n5.convertTypedArray=function(e){return QMe(e)?Array.prototype.slice.call(e):e};n5.isOrdinal=function(e){return!!e.tickvals};n5.isVisible=function(e){return e.visible||!("visible"in e)}});var Lae=P((AOe,Cae)=>{"use strict";var KMe=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`),eSe=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),mg=hg().maxDimensionCount,Sae=Ur(),_ae=1e-6,i5=2048,rSe=new Uint8Array(4),wae=new Uint8Array(4),Aae={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function tSe(e){e.read({x:0,y:0,width:1,height:1,data:rSe})}function Eae(e,r,t,a,n){var i=e._gl;i.enable(i.SCISSOR_TEST),i.scissor(r,t,a,n),e.clear({color:[0,0,0,0],depth:1})}function aSe(e,r,t,a,n,i){var o=i.key;function l(s){var f=Math.min(a,n-s*a);s===0&&(window.cancelAnimationFrame(t.currentRafs[o]),delete t.currentRafs[o],Eae(e,i.scissorX,i.scissorY,i.scissorWidth,i.viewBoxSize[1])),!t.clearOnly&&(i.count=2*f,i.offset=2*s*a,r(i),s*a+f>>8*r)%256/255}function oSe(e,r,t){for(var a=new Array(e*(mg+4)),n=0,i=0;iae&&(ae=C[q].dim1.canvasX,X=q);O===0&&Eae(n,0,0,f.canvasWidth,f.canvasHeight);var Q=_(t);for(q=0;q{"use strict";var Ni=ha(),ju=Ur(),z9=ju.isArrayOrTypedArray,Nae=ju.numberFormat,Iae=(xae(),Hne(bae)).default,Oae=mn(),cSe=ju.strRotate,Uf=ju.strTranslate,vSe=po(),o5=Wa(),Dae=yd(),H9=dg(),ls=H9.keyFun,Hf=H9.repeat,Bae=H9.unwrap,jp=O9(),_a=hg(),zae=q9(),hSe=Lae();function Fae(e,r,t){return ju.aggNums(e,null,r,t)}function Gae(e,r){return V9(Fae(Math.min,e,r),Fae(Math.max,e,r))}function l5(e){var r=e.range;return r?V9(r[0],r[1]):Gae(e.values,e._length)}function V9(e,r){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(r)||!isFinite(r))&&(r=0),e===r&&(e===0?(e-=1,r+=1):(e*=.9,r*=1.1)),[e,r]}function dSe(e,r){return r?function(t,a){var n=r[a];return n==null?e(t):n}:e}function pSe(e,r,t,a,n){var i=l5(t);return a?Ni.scale.ordinal().domain(a.map(dSe(Nae(t.tickformat),n))).range(a.map(function(o){var l=(o-i[0])/(i[1]-i[0]);return e-r+l*(2*r-e)})):Ni.scale.linear().domain(i).range([e-r,r])}function mSe(e,r){return Ni.scale.linear().range([r,e-r])}function ySe(e,r){return Ni.scale.linear().domain(l5(e)).range([r,1-r])}function gSe(e){if(e.tickvals){var r=l5(e);return Ni.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(t){return(t-r[0])/(r[1]-r[0])}))}}function bSe(e){var r=e.map(function(i){return i[0]}),t=e.map(function(i){var o=Iae(i[1]);return Ni.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),a=function(i){return function(o){return o[i]}},n="rgb".split("").map(function(i){return Ni.scale.linear().clamp(!0).domain(r).range(t.map(a(i)))});return function(i){return n.map(function(o){return o(i)})}}function U9(e){return e.dimensions.some(function(r){return r.brush.filterSpecified})}function xSe(e,r,t){var a=Bae(r),n=a.trace,i=jp.convertTypedArray(a.lineColor),o=n.line,l={color:Iae(n.unselected.line.color),opacity:n.unselected.line.opacity},s=Dae.extractOpts(o),f=s.reversescale?Dae.flipScale(a.cscale):a.cscale,u=n.domain,c=n.dimensions,v=e.width,d=n.labelangle,p=n.labelside,y=n.labelfont,m=n.tickfont,b=n.rangefont,A=ju.extendDeepNoArrays({},o,{color:i.map(Ni.scale.linear().domain(l5({values:i,range:[s.min,s.max],_length:n._length}))),blockLineCount:_a.blockLineCount,canvasOverdrag:_a.overdrag*_a.canvasPixelRatio}),_=Math.floor(v*(u.x[1]-u.x[0])),x=Math.floor(e.height*(u.y[1]-u.y[0])),T=e.margin||{l:80,r:80,t:100,b:80},E=_,M=x;return{key:t,colCount:c.filter(jp.isVisible).length,dimensions:c,tickDistance:_a.tickDistance,unitToColor:bSe(f),lines:A,deselectedLines:l,labelAngle:d,labelSide:p,labelFont:y,tickFont:m,rangeFont:b,layoutWidth:v,layoutHeight:e.height,domain:u,translateX:u.x[0]*v,translateY:e.height-u.y[1]*e.height,pad:T,canvasWidth:E*_a.canvasPixelRatio+2*A.canvasOverdrag,canvasHeight:M*_a.canvasPixelRatio,width:E,height:M,canvasPixelRatio:_a.canvasPixelRatio}}function _Se(e,r,t){var a=t.width,n=t.height,i=t.dimensions,o=t.canvasPixelRatio,l=function(v){return a*v/Math.max(1,t.colCount-1)},s=_a.verticalPadding/n,f=mSe(n,_a.verticalPadding),u={key:t.key,xScale:l,model:t,inBrushDrag:!1},c={};return u.dimensions=i.filter(jp.isVisible).map(function(v,d){var p=ySe(v,s),y=c[v.label];c[v.label]=(y||0)+1;var m=v.label+(y?"__"+y:""),b=v.constraintrange,A=b&&b.length;A&&!z9(b[0])&&(b=[b]);var _=A?b.map(function(H){return H.map(p)}):[[-1/0,1/0]],x=function(){var H=u;H.focusLayer&&H.focusLayer.render(H.panels,!0);var X=U9(H);!e.contextShown()&&X?(H.contextLayer&&H.contextLayer.render(H.panels,!0),e.contextShown(!0)):e.contextShown()&&!X&&(H.contextLayer&&H.contextLayer.render(H.panels,!0,!0),e.contextShown(!1))},T=v.values;T.length>v._length&&(T=T.slice(0,v._length));var E=v.tickvals,M;function C(H,X){return{val:H,text:M[X]}}function F(H,X){return H.val-X.val}if(z9(E)&&E.length){ju.isTypedArray(E)&&(E=Array.from(E)),M=v.ticktext,!z9(M)||!M.length?M=E.map(Nae(v.tickformat)):M.length>E.length?M=M.slice(0,E.length):E.length>M.length&&(E=E.slice(0,M.length));for(var I=1;I=X||Z>=le)return;var J=q.lineLayer.readPixel(Q,le-1-Z),ie=J[3]!==0,ue=ie?J[2]+256*(J[1]+256*J[0]):null,De={x:Q,y:Z,clientX:H.clientX,clientY:H.clientY,dataIndex:q.model.key,curveNumber:ue};ue!==p&&(ie?n.hover(De):n.unhover&&n.unhover(De),p=ue)}}),d.style("opacity",function(q){return q.pick?0:1}),l.style("background","rgba(255, 255, 255, 0)");var m=l.selectAll("."+_a.cn.parcoords).data(v,ls);m.exit().remove(),m.enter().append("g").classed(_a.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),m.attr("transform",function(q){return Uf(q.model.translateX,q.model.translateY)});var b=m.selectAll("."+_a.cn.parcoordsControlView).data(Hf,ls);b.enter().append("g").classed(_a.cn.parcoordsControlView,!0),b.attr("transform",function(q){return Uf(q.model.pad.l,q.model.pad.t)});var A=b.selectAll("."+_a.cn.yAxis).data(function(q){return q.dimensions},ls);A.enter().append("g").classed(_a.cn.yAxis,!0),b.each(function(q){G9(A,q,f)}),d.each(function(q){if(q.viewModel){!q.lineLayer||n?q.lineLayer=hSe(this,q):q.lineLayer.update(q),(q.key||q.key===0)&&(q.viewModel[q.key]=q.lineLayer);var H=!q.context||n;q.lineLayer.render(q.viewModel.panels,H)}}),A.attr("transform",function(q){return Uf(q.xScale(q.xIndex),0)}),A.call(Ni.behavior.drag().origin(function(q){return q}).on("drag",function(q){var H=q.parent;c.linePickActive(!1),q.x=Math.max(-_a.overdrag,Math.min(q.model.width+_a.overdrag,Ni.event.x)),q.canvasX=q.x*q.model.canvasPixelRatio,A.sort(function(X,le){return X.x-le.x}).each(function(X,le){X.xIndex=le,X.x=q===X?X.x:X.xScale(X.xIndex),X.canvasX=X.x*X.model.canvasPixelRatio}),G9(A,H,f),A.filter(function(X){return Math.abs(q.xIndex-X.xIndex)!==0}).attr("transform",function(X){return Uf(X.xScale(X.xIndex),0)}),Ni.select(this).attr("transform",Uf(q.x,0)),A.each(function(X,le,ae){ae===q.parent.key&&(H.dimensions[le]=X)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!U9(H)),H.focusLayer.render&&H.focusLayer.render(H.panels)}).on("dragend",function(q){var H=q.parent;q.x=q.xScale(q.xIndex),q.canvasX=q.x*q.model.canvasPixelRatio,G9(A,H,f),Ni.select(this).attr("transform",function(X){return Uf(X.x,0)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!U9(H)),H.focusLayer&&H.focusLayer.render(H.panels),H.pickLayer&&H.pickLayer.render(H.panels,!0),c.linePickActive(!0),n&&n.axesMoved&&n.axesMoved(H.key,H.dimensions.map(function(X){return X.crossfilterDimensionIndex}))})),A.exit().remove();var _=A.selectAll("."+_a.cn.axisOverlays).data(Hf,ls);_.enter().append("g").classed(_a.cn.axisOverlays,!0),_.selectAll("."+_a.cn.axis).remove();var x=_.selectAll("."+_a.cn.axis).data(Hf,ls);x.enter().append("g").classed(_a.cn.axis,!0),x.each(function(q){var H=q.model.height/q.model.tickDistance,X=q.domainScale,le=X.domain();Ni.select(this).call(Ni.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(H,q.tickFormat).tickValues(q.ordinal?le:null).tickFormat(function(ae){return jp.isOrdinal(q)?ae:Uae(q.model.dimensions[q.visibleIndex],ae)}).scale(X)),o5.font(x.selectAll("text"),q.model.tickFont)}),x.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),x.selectAll("text").style("cursor","default");var T=_.selectAll("."+_a.cn.axisHeading).data(Hf,ls);T.enter().append("g").classed(_a.cn.axisHeading,!0);var E=T.selectAll("."+_a.cn.axisTitle).data(Hf,ls);E.enter().append("text").classed(_a.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",i?"none":"auto"),E.text(function(q){return q.label}).each(function(q){var H=Ni.select(this);o5.font(H,q.model.labelFont),vSe.convertToTspans(H,r)}).attr("transform",function(q){var H=Rae(q.model.labelAngle,q.model.labelSide),X=_a.axisTitleOffset;return(H.dir>0?"":Uf(0,2*X+q.model.height))+cSe(H.degrees)+Uf(-X*H.dx,-X*H.dy)}).attr("text-anchor",function(q){var H=Rae(q.model.labelAngle,q.model.labelSide),X=Math.abs(H.dx),le=Math.abs(H.dy);return 2*X>le?H.dir*H.dx<0?"start":"end":"middle"});var M=_.selectAll("."+_a.cn.axisExtent).data(Hf,ls);M.enter().append("g").classed(_a.cn.axisExtent,!0);var C=M.selectAll("."+_a.cn.axisExtentTop).data(Hf,ls);C.enter().append("g").classed(_a.cn.axisExtentTop,!0),C.attr("transform",Uf(0,-_a.axisExtentOffset));var F=C.selectAll("."+_a.cn.axisExtentTopText).data(Hf,ls);F.enter().append("text").classed(_a.cn.axisExtentTopText,!0).call(qae),F.text(function(q){return Pae(q,!0)}).each(function(q){o5.font(Ni.select(this),q.model.rangeFont)});var I=M.selectAll("."+_a.cn.axisExtentBottom).data(Hf,ls);I.enter().append("g").classed(_a.cn.axisExtentBottom,!0),I.attr("transform",function(q){return Uf(0,q.model.height+_a.axisExtentOffset)});var O=I.selectAll("."+_a.cn.axisExtentBottomText).data(Hf,ls);O.enter().append("text").classed(_a.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(qae),O.text(function(q){return Pae(q,!1)}).each(function(q){o5.font(Ni.select(this),q.model.rangeFont)}),zae.ensureAxisBrush(_,u,r)}});var W9=P((Y9,Xae)=>{"use strict";var TSe=Vae(),MSe=Y_(),Yae=O9().isVisible,jae={};function Wae(e,r,t){var a=r.indexOf(t),n=e.indexOf(a);return n===-1&&(n+=r.length),n}function SSe(e,r){return function(a,n){return Wae(e,r,a)-Wae(e,r,n)}}var Y9=Xae.exports=function(r,t){var a=r._fullLayout,n=MSe(r,[],jae);if(n){var i={},o={},l={},s={},f=a._size;t.forEach(function(p,y){var m=p[0].trace;l[y]=m.index;var b=s[y]=m.index;i[y]=r.data[b].dimensions,o[y]=r.data[b].dimensions.slice()});var u=function(p,y,m){var b=o[p][y],A=m.map(function(C){return C.slice()}),_="dimensions["+y+"].constraintrange",x=a._tracePreGUI[r._fullData[l[p]]._fullInput.uid];if(x[_]===void 0){var T=b.constraintrange;x[_]=T||null}var E=r._fullData[l[p]].dimensions[y];A.length?(A.length===1&&(A=A[0]),b.constraintrange=A,E.constraintrange=A.slice(),A=[A]):(delete b.constraintrange,delete E.constraintrange,A=null);var M={};M[_]=A,r.emit("plotly_restyle",[M,[s[p]]])},c=function(p){r.emit("plotly_hover",p)},v=function(p){r.emit("plotly_unhover",p)},d=function(p,y){var m=SSe(y,o[p].filter(Yae));i[p].sort(m),o[p].filter(function(b){return!Yae(b)}).sort(function(b){return o[p].indexOf(b)}).forEach(function(b){i[p].splice(i[p].indexOf(b),1),i[p].splice(o[p].indexOf(b),0,b)}),r.emit("plotly_restyle",[{dimensions:[i[p]]},[s[p]]])};TSe(r,t,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:u,hover:c,unhover:v,axesMoved:d})}};Y9.reglPrecompiled=jae});var Jae=P(yg=>{"use strict";var Zae=ha(),ESe=K1().getModuleCalcData,kSe=W9(),CSe=Oc();yg.name="parcoords";yg.plot=function(e){var r=ESe(e.calcdata,"parcoords")[0];r.length&&kSe(e,r)};yg.clean=function(e,r,t,a){var n=a._has&&a._has("parcoords"),i=r._has&&r._has("parcoords");n&&!i&&(a._paperdiv.selectAll(".parcoords").remove(),a._glimages.selectAll("*").remove())};yg.toSVG=function(e){var r=e._fullLayout._glimages,t=Zae.select(e).selectAll(".svg-container"),a=t.filter(function(i,o){return o===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var i=this,o=i.toDataURL("image/png"),l=r.append("svg:image");l.attr({xmlns:CSe.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n),window.setTimeout(function(){Zae.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var Qae=P((SOe,$ae)=>{"use strict";$ae.exports={attributes:L9(),supplyDefaults:cae(),calc:hae(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:Jae(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var rne=P((EOe,ene)=>{"use strict";var Kae=Qae();Kae.plot=W9();ene.exports=Kae});var ane=P((kOe,tne)=>{"use strict";tne.exports=rne()});var lo=P((COe,ine)=>{var f5=ni();function nne(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}f5(nne.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function j9(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(na.local.invalidDate||na.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function s5(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}f5(j9.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(na.local.invalidDate||na.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(na.local.differentCalendars||na.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+s5(Math.abs(this.year()),4)+"-"+s5(this.month(),2)+"-"+s5(this.day(),2)}});function X9(){this.shortYearCutoff="+10"}f5(X9.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new j9(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+s5(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,na.local.invalidMonth||na.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,na.local.invalidMonth||na.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,na.local.invalidDate||na.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(u){for(;oc-1+u.minMonth;)i++,o-=c,c=u.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(f){throw this._validateLevel--,f}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,na.local.invalidDate||na.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),f=n-(s>2.5?4716:4715);return f<=0&&f--,this.newDate(f,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var na=ine.exports=new nne;na.cdate=j9;na.baseCalendar=X9;na.calendars.gregorian=Z9});var one=P(()=>{var J9=ni(),Ii=lo();J9(Ii.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Ii.local=Ii.regionalOptions[""];J9(Ii.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});J9(Ii.baseCalendar.prototype,{UNIX_EPOCH:Ii.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Ii.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Ii.local.invalidFormat||Ii.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,f=function(x,T){for(var E=1;_+E1},u=function(x,T,E,M){var C=""+T;if(f(x,M))for(;C.length1},A=function(q,H){var X=b(q,H),le=[2,3,X?4:2,X?4:2,10,11,20]["oyYJ@!".indexOf(q)+1],ae=new RegExp("^-?\\d{1,"+le+"}"),Q=r.substring(C).match(ae);if(!Q)throw(Ii.local.missingNumberAt||Ii.regionalOptions[""].missingNumberAt).replace(/\{0\}/,C);return C+=Q[0].length,parseInt(Q[0],10)},_=this,x=function(){if(typeof l=="function"){b("m");var q=l.call(_,r.substring(C));return C+=q.length,q}return A("m")},T=function(q,H,X,le){for(var ae=b(q,le)?X:H,Q=0;Q-1){v=1,d=p;for(var O=this.daysInMonth(c,v);d>O;O=this.daysInMonth(c,v))v++,d-=O}return u>-1?this.fromJD(u):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),f=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,u=f.exec(l);u;)s.add(parseInt(u[1],10),u[2]||"d"),u=f.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var lne=P(()=>{var Mv=lo(),LSe=ni(),$9=Mv.instance();function u5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}u5.prototype=new Mv.baseCalendar;LSe(u5.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(FSe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(qSe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(RSe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Mv.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Mv.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Mv.local.invalidyear),n=Ev[a-Ev[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=$9.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var f=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(f/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Sv[e-Sv[0]],a=t>>13,n=a?12:11;if(r>n)throw Mv.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Mv.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=NSe(e,i,t,n);return $9.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=$9.fromJD(e),t=PSe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(DSe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(u5.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),f=l.month(),u=this.isIntercalaryMonth(s,o),c=i&&u?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==f&&l.month(c)}return l}});var DSe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,FSe=/^\d?\d[iI]?/m,qSe=/^闰?十?[一二三四五六七八九]?月/m,RSe=/^闰?十?[一二三四五六七八九]?/m;Mv.calendars.chinese=u5;var Sv=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Ev=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function PSe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var f=Ev[n.year-Ev[0]],u=n.year<<9|n.month<<5|n.day;i.year=u>=f?n.year:n.year-1,f=Ev[i.year-Ev[0]];var c=f>>9&4095,v=f>>5&15,d=f&31,p,y=new Date(c,v-1,d),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-y)/(24*3600*1e3));var b=Sv[i.year-Sv[0]],A;for(A=0;A<13;A++){var _=b&1<<12-A?30:29;if(p<_)break;p-=_}var x=b>>13;return!x||A=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var f=typeof t=="number"&&t>=1&&t<=30;if(!f)throw new Error("Lunar day outside range 1 - 30");var u;typeof a=="object"?(u=!1,i=a):(u=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:u}}var c;c=o.day-1;var v=Sv[o.year-Sv[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var y=0;y>9&4095,_=b>>5&15,x=b&31,T=new Date(A,_-1,x+c);return i.year=T.getFullYear(),i.month=1+T.getMonth(),i.day=T.getDate(),i}});var sne=P(()=>{var gh=lo(),ISe=ni();function Q9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Q9.prototype=new gh.baseCalendar;ISe(Q9.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,gh.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,gh.local.invalidYear||gh.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,gh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,gh.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});gh.calendars.coptic=Q9});var fne=P(()=>{var Xu=lo(),OSe=ni();function K9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}K9.prototype=new Xu.baseCalendar;OSe(K9.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Xu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return{century:BSe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var BSe={20:"Fruitbat",21:"Anchovy"};Xu.calendars.discworld=K9});var une=P(()=>{var bh=lo(),zSe=ni();function eM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}eM.prototype=new bh.baseCalendar;zSe(eM.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,bh.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,bh.local.invalidYear||bh.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,bh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,bh.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});bh.calendars.ethiopian=eM});var cne=P(()=>{var kv=lo(),GSe=ni();function rM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}rM.prototype=new kv.baseCalendar;GSe(rM.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,kv.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,c5(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,kv.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,kv.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,kv.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&c5(this.daysInYear(e),10)===5?30:r===9&&c5(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,kv.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,kv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function c5(e,r){return e-r*Math.floor(e/r)}kv.calendars.hebrew=rM});var vne=P(()=>{var gg=lo(),USe=ni();function tM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}tM.prototype=new gg.baseCalendar;USe(tM.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,gg.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,gg.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,gg.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});gg.calendars.islamic=tM});var hne=P(()=>{var bg=lo(),HSe=ni();function aM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}aM.prototype=new bg.baseCalendar;HSe(aM.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,bg.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,bg.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,bg.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});bg.calendars.julian=aM});var pne=P(()=>{var ss=lo(),VSe=ni();function iM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}iM.prototype=new ss.baseCalendar;VSe(iM.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ss.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ss.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ss.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,ss.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ss.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,ss.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ss.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,ss.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ss.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=nM(e+8+17*20,365);return[Math.floor(r/20)+1,nM(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[dne(e+20,20),dne(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,ss.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function nM(e,r){return e-r*Math.floor(e/r)}function dne(e,r){return nM(e-1,r)+1}ss.calendars.mayan=iM});var yne=P(()=>{var xh=lo(),YSe=ni();function oM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}oM.prototype=new xh.baseCalendar;var mne=xh.instance("gregorian");YSe(oM.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,xh.local.invalidYear||xh.regionalOptions[""].invalidYear);return mne.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,xh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,xh.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});xh.calendars.nanakshahi=oM});var gne=P(()=>{var _h=lo(),WSe=ni();function lM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}lM.prototype=new _h.baseCalendar;WSe(lM.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_h.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,_h.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,_h.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=_h.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=_h.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var f=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,f)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Xp=lo(),jSe=ni();function h5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function v5(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}h5.prototype=new Xp.baseCalendar;jSe(h5.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Xp.local.invalidYear);return v5(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Xp.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Xp.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,v5(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Xp.calendars.persian=h5;Xp.calendars.jalali=h5});var xne=P(()=>{var wh=lo(),XSe=ni(),d5=wh.instance();function sM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}sM.prototype=new wh.baseCalendar;XSe(sM.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,wh.local.invalidYear),t=this._t2gYear(r.year());return d5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,wh.local.invalidYear),n=this._t2gYear(a.year());return d5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,wh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,wh.local.invalidDate),n=this._t2gYear(a.year());return d5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=d5.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});wh.calendars.taiwan=sM});var _ne=P(()=>{var Ah=lo(),ZSe=ni(),p5=Ah.instance();function fM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fM.prototype=new Ah.baseCalendar;ZSe(fM.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Ah.local.invalidYear),t=this._t2gYear(r.year());return p5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Ah.local.invalidYear),n=this._t2gYear(a.year());return p5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ah.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ah.local.invalidDate),n=this._t2gYear(a.year());return p5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=p5.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Ah.calendars.thai=fM});var wne=P(()=>{var Th=lo(),JSe=ni();function uM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}uM.prototype=new Th.baseCalendar;JSe(uM.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Th.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Th.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Cv[n]-Cv[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Th.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Cv[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Cv[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Th.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Th.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Th.calendars.ummalqura=uM;var Cv=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Tne=P((oBe,Ane)=>{"use strict";Ane.exports=lo();one();lne();sne();fne();une();cne();vne();hne();pne();yne();gne();bne();xne();_ne();wne()});var Dne=P((lBe,Lne)=>{"use strict";var Sne=Tne(),xg=Ur(),Ene=Kn(),$Se=Ene.EPOCHJD,QSe=Ene.ONEDAY,hM={valType:"enumerated",values:xg.sortObjectKeys(Sne.calendars),editType:"calc",dflt:"gregorian"},kne=function(e,r,t,a){var n={};return n[t]=hM,xg.coerce(e,r,n,t,a)},KSe=function(e,r,t,a){for(var n=0;n{"use strict";Fne.exports=Dne()});var iEe=P((fBe,Pne)=>{var Rne=TV();Rne.register([jre(),jte(),ane(),qne()]);Pne.exports=Rne});return iEe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-gl3d.js b/dist/plotly-gl3d.js index 4ca235652ee..7c5c5762150 100644 --- a/dist/plotly-gl3d.js +++ b/dist/plotly-gl3d.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl3d) v3.1.1 +* plotly.js (gl3d) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -23,7 +23,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.1"; + exports.version = "3.1.2"; } }); @@ -13752,9 +13752,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -21427,7 +21427,7 @@ var Plotly = (() => { }, exponentformat: { valType: "enumerated", - values: ["none", "e", "E", "power", "SI", "B"], + values: ["none", "e", "E", "power", "SI", "B", "SI extended"], dflt: "B", editType: "ticks" }, @@ -25013,7 +25013,7 @@ var Plotly = (() => { var subtitleEnabled = !!subtitleProp; var subtitlePlaceholder = options.subtitlePlaceholder; var subtitle = (cont.title || {}).subtitle || { text: "", font: {} }; - var subtitleTxt = subtitle.text.trim(); + var subtitleTxt = (subtitle.text || "").trim(); var subtitleIsPlaceholder = false; var subtitleOpacity = 1; var subtitleFont = subtitle.font; @@ -25067,7 +25067,7 @@ var Plotly = (() => { var subtitleEl = null; var subtitleClass = titleClass + "-subtitle"; var subtitleElShouldExist = subtitleTxt || editable; - if (subtitleEnabled && subtitleElShouldExist) { + if (subtitleEnabled) { subtitleEl = group.selectAll("text." + subtitleClass).data(subtitleElShouldExist ? [0] : []); subtitleEl.enter().append("text"); subtitleEl.text(subtitleTxt).attr("class", subtitleClass); @@ -25118,7 +25118,7 @@ var Plotly = (() => { shadow: fontShadow, lineposition: fontLineposition }).attr(attributes).call(svgTextUtils.convertToTspans, gd, adjustSubtitlePosition); - if (subtitleEl2) { + if (subtitleEl2 && !subtitleEl2.empty()) { var titleElMathGroup = group.select("." + titleClass + "-math-group"); var titleElBbox2 = titleEl.node().getBBox(); var titleElMathBbox = titleElMathGroup.node() ? titleElMathGroup.node().getBBox() : void 0; @@ -25239,7 +25239,7 @@ var Plotly = (() => { } } el.classed("js-placeholder", titleIsPlaceholder); - if (subtitleEl) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); + if (subtitleEl && !subtitleEl.empty()) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); return group; } module.exports = { @@ -27558,7 +27558,7 @@ var Plotly = (() => { var rangeexp = Math.floor(Math.log(maxend) / Math.LN10 + 0.01); var minexponent = ax.minexponent === void 0 ? 3 : ax.minexponent; if (Math.abs(rangeexp) > minexponent) { - if (isSIFormat(ax.exponentformat) && !beyondSI(rangeexp)) { + if (isSIFormat(ax.exponentformat) && ax.exponentformat !== "SI extended" && !beyondSI(rangeexp) || isSIFormat(ax.exponentformat) && ax.exponentformat === "SI extended" && !beyondSIExtended(rangeexp)) { ax._tickexponent = 3 * Math.round((rangeexp - 1) / 3); } else ax._tickexponent = rangeexp; } @@ -27782,7 +27782,7 @@ var Plotly = (() => { var p = +parts[1]; var absP = Math.abs(p); var exponentFormat = ax.exponentformat; - if (exponentFormat === "power" || isSIFormat(exponentFormat) && beyondSI(p)) { + if (exponentFormat === "power" || isSIFormat(exponentFormat) && exponentFormat !== "SI extended" && beyondSI(p) || isSIFormat(exponentFormat) && exponentFormat === "SI extended" && beyondSIExtended(p)) { out.text = parts[0]; if (absP > 0) out.text += "x10"; if (out.text === "1x10") out.text = "10"; @@ -27898,12 +27898,20 @@ var Plotly = (() => { ]; } var SIPREFIXES = ["f", "p", "n", "\u03BC", "m", "", "k", "M", "G", "T"]; - function isSIFormat(exponentFormat) { - return exponentFormat === "SI" || exponentFormat === "B"; - } + var SIPREFIXES_EXTENDED = ["q", "r", "y", "z", "a", ...SIPREFIXES, "P", "E", "Z", "Y", "R", "Q"]; + var isSIFormat = (exponentFormat) => ["SI", "SI extended", "B"].includes(exponentFormat); function beyondSI(exponent) { return exponent > 14 || exponent < -15; } + function beyondSIExtended(exponent) { + return exponent > 32 || exponent < -30; + } + function shouldSwitchSIToPowerFormat(exponent, exponentFormat) { + if (!isSIFormat(exponentFormat)) return false; + if (exponentFormat === "SI extended" && beyondSIExtended(exponent)) return true; + if (exponentFormat !== "SI extended" && beyondSI(exponent)) return true; + return false; + } function numFormat(v, ax, fmtoverride, hover) { var isNeg = v < 0; var tickRound = ax._tickround; @@ -27951,7 +27959,7 @@ var Plotly = (() => { v = Lib.numSeparate(v, ax._separators, separatethousands); } if (exponent && exponentFormat !== "hide") { - if (isSIFormat(exponentFormat) && beyondSI(exponent)) exponentFormat = "power"; + if (shouldSwitchSIToPowerFormat(exponent, exponentFormat)) exponentFormat = "power"; var signedExponent; if (exponent < 0) signedExponent = MINUS_SIGN + -exponent; else if (exponentFormat !== "power") signedExponent = "+" + exponent; @@ -27963,7 +27971,7 @@ var Plotly = (() => { } else if (exponentFormat === "B" && exponent === 9) { v += "B"; } else if (isSIFormat(exponentFormat)) { - v += SIPREFIXES[exponent / 3 + 5]; + v += exponentFormat === "SI extended" ? SIPREFIXES_EXTENDED[exponent / 3 + 10] : SIPREFIXES[exponent / 3 + 5]; } } if (isNeg) return MINUS_SIGN + v; @@ -30248,9 +30256,11 @@ var Plotly = (() => { return Lib.coerce(traceIn, traceOut, plotsAttrs, attr, dflt); }; var globalFont = layoutOut.font || {}; - var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { overrideDflt: { - size: Math.round(globalFont.size * 1.1) - } }); + var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { + overrideDflt: { + size: Math.round(globalFont.size * 1.1) + } + }); var legendTraceCount = 0; var legendReallyHasATrace = false; var defaultOrder = "normal"; @@ -30397,7 +30407,7 @@ var Plotly = (() => { for (i = 0; i < legends.length; i++) { var legendId = legends[i]; groupDefaults(legendId, layoutIn, layoutOut, allLegendsData); - if (layoutOut[legendId] && layoutOut[legendId].visible) { + if (layoutOut[legendId]) { layoutOut[legendId]._id = legendId; } layoutOut._legends.push(legendId); @@ -36015,7 +36025,7 @@ var Plotly = (() => { } } function setClipPath(shapePath, gd, shapeOptions) { - var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][1-9]* *domain/g, ""); + var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][0-9]* *domain/g, ""); Drawing.setClipUrl( shapePath, clipAxes ? "clip" + gd._fullLayout._uid + clipAxes : null, @@ -43860,7 +43870,6 @@ var Plotly = (() => { "src/plot_api/helpers.js"(exports) { "use strict"; var isNumeric = require_fast_isnumeric(); - var m4FromQuat = require_fromQuat(); var Registry = require_registry(); var Lib = require_lib(); var Plots = require_plots(); @@ -43869,6 +43878,7 @@ var Plotly = (() => { var cleanId = AxisIds.cleanId; var getFromTrace = AxisIds.getFromTrace; var traceIs = Registry.traceIs; + var AX_LETTERS = ["x", "y", "z"]; exports.clearPromiseQueue = function(gd) { if (Array.isArray(gd._promises) && gd._promises.length > 0) { Lib.log("Clearing previous rejected promises from queue."); @@ -44035,12 +44045,7 @@ var Plotly = (() => { var increasingName = cleanFinanceDir(trace.increasing); var decreasingName = cleanFinanceDir(trace.decreasing); if (increasingName !== false && decreasingName !== false) { - var newName = commonPrefix( - increasingName, - decreasingName, - increasingShowlegend, - decreasingShowlegend - ); + var newName = commonPrefix(increasingName, decreasingName, increasingShowlegend, decreasingShowlegend); if (newName) trace.name = newName; } else if ((increasingName || decreasingName) && !trace.name) { trace.name = increasingName || decreasingName; @@ -44170,12 +44175,11 @@ var Plotly = (() => { } return false; }; - var axLetters = ["x", "y", "z"]; exports.clearAxisTypes = function(gd, traces, layoutUpdate) { for (var i = 0; i < traces.length; i++) { var trace = gd._fullData[i]; for (var j = 0; j < 3; j++) { - var ax = getFromTrace(gd, trace, axLetters[j]); + var ax = getFromTrace(gd, trace, AX_LETTERS[j]); if (ax && ax.type !== "log") { var axAttr = ax._name; var sceneName = ax._id.substr(1); @@ -44191,6 +44195,35 @@ var Plotly = (() => { } } }; + var collectionsAreEqual = (collection1, collection2) => { + const isArrayOrObject = (...vals) => vals.every((v) => Lib.isPlainObject(v)) || vals.every((v) => Array.isArray(v)); + if ([collection1, collection2].every((a) => Array.isArray(a))) { + if (collection1.length !== collection2.length) return false; + for (let i = 0; i < collection1.length; i++) { + const oldVal = collection1[i]; + const newVal = collection2[i]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } else if ([collection1, collection2].every((a) => Lib.isPlainObject(a))) { + if (Object.keys(collection1).length !== Object.keys(collection2).length) return false; + for (const k in collection1) { + if (k.startsWith("_")) continue; + const oldVal = collection1[k]; + const newVal = collection2[k]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } + return false; + }; + exports.collectionsAreEqual = collectionsAreEqual; } }); @@ -44298,21 +44331,28 @@ var Plotly = (() => { } } if (!fullLayout._glcanvas && fullLayout._has("gl")) { - fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data([{ - key: "contextLayer", - context: true, - pick: false - }, { - key: "focusLayer", - context: false, - pick: false - }, { - key: "pickLayer", - context: false, - pick: true - }], function(d) { - return d.key; - }); + fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data( + [ + { + key: "contextLayer", + context: true, + pick: false + }, + { + key: "focusLayer", + context: false, + pick: false + }, + { + key: "pickLayer", + context: false, + pick: true + } + ], + function(d) { + return d.key; + } + ); fullLayout._glcanvas.enter().append("canvas").attr("class", function(d) { return "gl-canvas gl-canvas-" + d.key.replace("Layer", ""); }).style({ @@ -44370,21 +44410,21 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([ - marginPushers, - subroutines.layoutStyles - ], gd); + return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); } function positionAndAutorange() { if (!recalc) { doAutoRangeAndConstraints(); return; } - return Lib.syncOrAsync([ - Registry.getComponentMethod("shapes", "calcAutorange"), - Registry.getComponentMethod("annotations", "calcAutorange"), - doAutoRangeAndConstraints - ], gd); + return Lib.syncOrAsync( + [ + Registry.getComponentMethod("shapes", "calcAutorange"), + Registry.getComponentMethod("annotations", "calcAutorange"), + doAutoRangeAndConstraints + ], + gd + ); } function doAutoRangeAndConstraints() { if (gd._transitioning) return; @@ -44395,28 +44435,19 @@ var Plotly = (() => { function drawAxes() { return Axes.draw(gd, graphWasEmpty ? "" : "redraw"); } - var seq = [ - Plots.previousPromises, - addFrames2, - drawFramework, - marginPushers, - marginPushersAgain - ]; + var seq = [Plots.previousPromises, addFrames2, drawFramework, marginPushers, marginPushersAgain]; if (hasCartesian) seq.push(positionAndAutorange); seq.push(subroutines.layoutStyles); if (hasCartesian) { - seq.push( - drawAxes, - function insideTickLabelsAutorange(gd2) { - var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; - if (insideTickLabelsUpdaterange) { - gd2._fullLayout._insideTickLabelsUpdaterange = void 0; - return relayout(gd2, insideTickLabelsUpdaterange).then(function() { - Axes.saveRangeInitial(gd2, true); - }); - } + seq.push(drawAxes, function insideTickLabelsAutorange(gd2) { + var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; + if (insideTickLabelsUpdaterange) { + gd2._fullLayout._insideTickLabelsUpdaterange = void 0; + return relayout(gd2, insideTickLabelsUpdaterange).then(function() { + Axes.saveRangeInitial(gd2, true); + }); } - ); + }); } seq.push( subroutines.drawData, @@ -44622,7 +44653,7 @@ var Plotly = (() => { } for (i = 0; i < traces.length; i++) { value = traces[i]; - if (typeof value !== "object" || (Array.isArray(value) || value === null)) { + if (typeof value !== "object" || Array.isArray(value) || value === null) { throw new Error("all values in traces array must be non-array objects"); } } @@ -44630,9 +44661,7 @@ var Plotly = (() => { newIndices = [newIndices]; } if (typeof newIndices !== "undefined" && newIndices.length !== traces.length) { - throw new Error( - "if indices is specified, traces.length must equal indices.length" - ); + throw new Error("if indices is specified, traces.length must equal indices.length"); } } function assertExtendTracesArgs(gd, update2, indices, maxPoints) { @@ -44652,7 +44681,9 @@ var Plotly = (() => { throw new Error("attribute " + key + " must be an array of length equal to indices array length"); } if (maxPointsIsObject && (!(key in maxPoints) || !Array.isArray(maxPoints[key]) || maxPoints[key].length !== update2[key].length)) { - throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object"); + throw new Error( + "when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object" + ); } } } @@ -44942,18 +44973,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - restyle, - [gd, specs.undoit, specs.traces], - restyle, - [gd, specs.redoit, specs.traces] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, restyle, [gd, specs.undoit, specs.traces], restyle, [gd, specs.redoit, specs.traces]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(); return plotDone.then(function() { @@ -45120,7 +45141,11 @@ var Plotly = (() => { var topOrBottom = orient === "top" || orient === "bottom"; if (finalPart === "thicknessmode") { var thicknorm = topOrBottom ? gs.h : gs.w; - doextra(prefixDot + "thickness", innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), i); + doextra( + prefixDot + "thickness", + innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), + i + ); } else { var lennorm = topOrBottom ? gs.w : gs.h; doextra(prefixDot + "len", innerContFull.len * (newVal === "fraction" ? 1 / lennorm : lennorm), i); @@ -45143,12 +45168,7 @@ var Plotly = (() => { } } undoit[ai][i] = undefinedToNull(oldVal); - var swapAttrs = [ - "swapxy", - "swapxyaxes", - "orientation", - "orientationaxes" - ]; + var swapAttrs = ["swapxy", "swapxyaxes", "orientation", "orientationaxes"]; if (swapAttrs.indexOf(ai) !== -1) { if (ai === "orientation") { param.set(newVal); @@ -45245,18 +45265,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - relayout, - [gd, specs.undoit], - relayout, - [gd, specs.redoit] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, relayout, [gd, specs.undoit], relayout, [gd, specs.redoit]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45496,7 +45506,7 @@ var Plotly = (() => { } else { if (ai === "dragmode" && (vi === false && vOld !== false || vi !== false && vOld === false)) { flags.plot = true; - } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && (ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select"))) { + } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select")) { flags.plot = true; } else if (valObject) editTypes.update(flags, valObject); else flags.calc = true; @@ -45583,18 +45593,13 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, update, [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], update, [ gd, - update, - [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], - update, - [gd, restyleSpecs.redoit, relayoutSpecs.redoit, restyleSpecs.traces] - ); + restyleSpecs.redoit, + relayoutSpecs.redoit, + restyleSpecs.traces + ]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45816,10 +45821,10 @@ var Plotly = (() => { } var configChanged = false; if (config) { - var oldConfig = Lib.extendDeep({}, gd._context); + const oldConfig = Lib.extendDeepAll({}, gd._context); gd._context = void 0; setPlotContext(gd, config); - configChanged = diffConfig(oldConfig, gd._context); + configChanged = !helpers.collectionsAreEqual(oldConfig, gd._context); } if (configChanged) { const eventListeners = gd._ev.eventNames().map((name3) => [name3, gd._ev.listeners(name3)]); @@ -45903,11 +45908,7 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); } @@ -46124,38 +46125,6 @@ var Plotly = (() => { } } } - function diffConfig(oldConfig, newConfig) { - var key; - for (key in oldConfig) { - if (key.charAt(0) === "_") continue; - var oldVal = oldConfig[key]; - var newVal = newConfig[key]; - if (oldVal !== newVal) { - if (Lib.isPlainObject(oldVal) && Lib.isPlainObject(newVal)) { - if (diffConfig(oldVal, newVal)) { - return true; - } - } else if (Array.isArray(oldVal) && Array.isArray(newVal)) { - if (oldVal.length !== newVal.length) { - return true; - } - for (var i = 0; i < oldVal.length; i++) { - if (oldVal[i] !== newVal[i]) { - if (Lib.isPlainObject(oldVal[i]) && Lib.isPlainObject(newVal[i])) { - if (diffConfig(oldVal[i], newVal[i])) { - return true; - } - } else { - return true; - } - } - } - } else { - return true; - } - } - } - } function animate(gd, frameOrGroupNameOrFrameList, animationOpts) { gd = Lib.getGraphDiv(gd); if (!Lib.isPlotDiv(gd)) { @@ -46424,9 +46393,13 @@ var Plotly = (() => { var collisionPresent = _frameHash[name2] || _frameHashLocal[name2]; if (name2 && newName && typeof newName === "number" && collisionPresent && numericNameWarningCount < numericNameWarningCountLimit) { numericNameWarningCount++; - Lib.warn('addFrames: overwriting frame "' + (_frameHash[name2] || _frameHashLocal[name2]).name + '" with a frame whose name of type "number" also equates to "' + name2 + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'); + Lib.warn( + 'addFrames: overwriting frame "' + (_frameHash[name2] || _frameHashLocal[name2]).name + '" with a frame whose name of type "number" also equates to "' + name2 + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.' + ); if (numericNameWarningCount === numericNameWarningCountLimit) { - Lib.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed."); + Lib.warn( + "addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed." + ); } } _frameHashLocal[lookupName] = { name: lookupName }; @@ -46446,7 +46419,9 @@ var Plotly = (() => { for (i = insertions.length - 1; i >= 0; i--) { frame = insertions[i].frame; if (typeof frame.name === "number") { - Lib.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"); + Lib.warn( + "Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings" + ); } if (!frame.name) { while (_frameHash[frame.name = "frame " + gd._transitionData._counter++]) ; @@ -56485,7 +56460,7 @@ var Plotly = (() => { if (axisOpts.side === "bottom") { Titles.draw(gd, axisOpts._id + "title", { propContainer: axisOpts, - propName: axisOpts._name + ".title", + propName: axisOpts._name + ".title.text", placeholder: fullLayout._dfltTitle.x, attributes: { x: axisOpts._offset + axisOpts._length / 2, @@ -58308,7 +58283,7 @@ var Plotly = (() => { function drawTitle(titleClass, titleOpts) { var dfltTitleOpts = { propContainer: ax, - propName: opts._propPrefix + "title", + propName: opts._propPrefix + "title.text", traceIndex: opts._traceIndex, _meta: opts._meta, placeholder: fullLayout._dfltTitle.colorbar, diff --git a/dist/plotly-gl3d.min.js b/dist/plotly-gl3d.min.js index e8fd74ba648..df7634487f8 100644 --- a/dist/plotly-gl3d.min.js +++ b/dist/plotly-gl3d.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl3d - minified) v3.1.1 +* plotly.js (gl3d - minified) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,14 +12,14 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var pe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var mc=pe(ib=>{"use strict";ib.version="3.1.1"});var lb=pe((ob,xc)=>{(function(r,t,n){t[r]=t[r]||n(),typeof xc!="undefined"&&xc.exports&&(xc.exports=t[r])})("Promise",typeof window!="undefined"?window:ob,function(){"use strict";var r,t,n,a=Object.prototype.toString,o=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(k,S,x,T){return Object.defineProperty(k,S,{value:x,writable:!0,configurable:T!==!1})}}catch(y){r=function(S,x,T){return S[x]=T,S}}n=function(){var k,S,x;function T(d,_){this.fn=d,this.self=_,this.next=void 0}return{add:function(_,g){x=new T(_,g),S?S.next=x:k=x,S=x,x=void 0},drain:function(){var _=k;for(k=S=t=void 0;_;)_.fn.call(_.self),_=_.next}}}();function i(y,k){n.add(y,k),t||(t=o(n.drain))}function l(y){var k,S=typeof y;return y!=null&&(S=="object"||S=="function")&&(k=y.then),typeof k=="function"?k:!1}function u(){for(var y=0;y0&&i(u,S))}catch(x){v.call(new b(S),x)}}}function v(y){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=y,k.state=2,k.chain.length>0&&i(u,k))}function p(y,k,S,x){for(var T=0;T{(function(){var e={version:"3.8.2"},r=[].slice,t=function(C){return r.call(C)},n=self.document;function a(C){return C&&(C.ownerDocument||C.document||C).documentElement}function o(C){return C&&(C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(C){t=function(z){for(var B=z.length,G=new Array(B);B--;)G[B]=z[B];return G}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(C){var i=this.Element.prototype,l=i.setAttribute,u=i.setAttributeNS,s=this.CSSStyleDeclaration.prototype,f=s.setProperty;i.setAttribute=function(z,B){l.call(this,z,B+"")},i.setAttributeNS=function(z,B,G){u.call(this,z,B,G+"")},s.setProperty=function(z,B,G){f.call(this,z,B+"",G)}}e.ascending=v;function v(C,z){return Cz?1:C>=z?0:NaN}e.descending=function(C,z){return zC?1:z>=C?0:NaN},e.min=function(C,z){var B=-1,G=C.length,W,Z;if(arguments.length===1){for(;++B=Z){W=Z;break}for(;++BZ&&(W=Z)}else{for(;++B=Z){W=Z;break}for(;++BZ&&(W=Z)}return W},e.max=function(C,z){var B=-1,G=C.length,W,Z;if(arguments.length===1){for(;++B=Z){W=Z;break}for(;++BW&&(W=Z)}else{for(;++B=Z){W=Z;break}for(;++BW&&(W=Z)}return W},e.extent=function(C,z){var B=-1,G=C.length,W,Z,le;if(arguments.length===1){for(;++B=Z){W=le=Z;break}for(;++BZ&&(W=Z),le=Z){W=le=Z;break}for(;++BZ&&(W=Z),le1)return le/(fe-1)},e.deviation=function(){var C=e.variance.apply(this,arguments);return C&&Math.sqrt(C)};function m(C){return{left:function(z,B,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[Z],B)<0?G=Z+1:W=Z}return G},right:function(z,B,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[Z],B)>0?W=Z:G=Z+1}return G}}}var w=m(v);e.bisectLeft=w.left,e.bisect=e.bisectRight=w.right,e.bisector=function(C){return m(C.length===1?function(z,B){return v(C(z),B)}:C)},e.shuffle=function(C,z,B){(G=arguments.length)<3&&(B=C.length,G<2&&(z=0));for(var G=B-z,W,Z;G;)Z=Math.random()*G--|0,W=C[G+z],C[G+z]=C[Z+z],C[Z+z]=W;return C},e.permute=function(C,z){for(var B=z.length,G=new Array(B);B--;)G[B]=C[z[B]];return G},e.pairs=function(C){for(var z=0,B=C.length-1,G,W=C[0],Z=new Array(B<0?0:B);z=0;)for(le=C[z],B=le.length;--B>=0;)Z[--W]=le[B];return Z};var y=Math.abs;e.range=function(C,z,B){if(arguments.length<3&&(B=1,arguments.length<2&&(z=C,C=0)),(z-C)/B===1/0)throw new Error("infinite range");var G=[],W=k(y(B)),Z=-1,le;if(C*=W,z*=W,B*=W,B<0)for(;(le=C+B*++Z)>z;)G.push(le/W);else for(;(le=C+B*++Z)=z.length)return W?W.call(C,fe):G?fe.sort(G):fe;for(var be=-1,Fe=fe.length,Ie=z[xe++],Qe,rr,Oe,Ve=new x,Xe;++be=z.length)return oe;var xe=[],be=B[fe++];return oe.forEach(function(Fe,Ie){xe.push({key:Fe,values:le(Ie,fe)})}),be?xe.sort(function(Fe,Ie){return be(Fe.key,Ie.key)}):xe}return C.map=function(oe,fe){return Z(fe,oe,0)},C.entries=function(oe){return le(Z(e.map,oe,0),0)},C.key=function(oe){return z.push(oe),C},C.sortKeys=function(oe){return B[z.length-1]=oe,C},C.sortValues=function(oe){return G=oe,C},C.rollup=function(oe){return W=oe,C},C},e.set=function(C){var z=new D;if(C)for(var B=0,G=C.length;B=0&&(G=C.slice(B+1),C=C.slice(0,B)),C)return arguments.length<2?this[C].on(G):this[C].on(G,z);if(arguments.length===2){if(z==null)for(C in this)this.hasOwnProperty(C)&&this[C].on(G,null);return this}};function U(C){var z=[],B=new x;function G(){for(var W=z,Z=-1,le=W.length,oe;++Z=0&&(B=C.slice(0,z))!=="xmlns"&&(C=C.slice(z+1)),te.hasOwnProperty(B)?{space:te[B],local:C}:C}},ee.attr=function(C,z){if(arguments.length<2){if(typeof C=="string"){var B=this.node();return C=e.ns.qualify(C),C.local?B.getAttributeNS(C.space,C.local):B.getAttribute(C)}for(z in C)this.each(ue(z,C[z]));return this}return this.each(ue(C,z))};function ue(C,z){C=e.ns.qualify(C);function B(){this.removeAttribute(C)}function G(){this.removeAttributeNS(C.space,C.local)}function W(){this.setAttribute(C,z)}function Z(){this.setAttributeNS(C.space,C.local,z)}function le(){var fe=z.apply(this,arguments);fe==null?this.removeAttribute(C):this.setAttribute(C,fe)}function oe(){var fe=z.apply(this,arguments);fe==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,fe)}return z==null?C.local?G:B:typeof z=="function"?C.local?oe:le:C.local?Z:W}function de(C){return C.trim().replace(/\s+/g," ")}ee.classed=function(C,z){if(arguments.length<2){if(typeof C=="string"){var B=this.node(),G=(C=Ae(C)).length,W=-1;if(z=B.classList){for(;++W=0;)(Z=B[G])&&(W&&W!==Z.nextSibling&&W.parentNode.insertBefore(Z,W),W=Z);return this},ee.sort=function(C){C=we.apply(this,arguments);for(var z=-1,B=this.length;++z=z&&(z=W+1);!(fe=le[z])&&++z0&&(C=C.slice(0,W));var le=ye.get(C);le&&(C=le,Z=ze);function oe(){var be=this[G];be&&(this.removeEventListener(C,be,be.$),delete this[G])}function fe(){var be=Z(z,t(arguments));oe.call(this),this.addEventListener(C,this[G]=be,be.$=B),be._=z}function xe(){var be=new RegExp("^__on([^.]+)"+e.requote(C)+"$"),Fe;for(var Ie in this)if(Fe=Ie.match(be)){var Qe=this[Ie];this.removeEventListener(Fe[1],Qe,Qe.$),delete this[Ie]}}return W?z?fe:oe:z?P:xe}var ye=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&ye.forEach(function(C){"on"+C in n&&ye.remove(C)});function Ce(C,z){return function(B){var G=e.event;e.event=B,z[0]=this.__data__;try{C.apply(this,z)}finally{e.event=G}}}function ze(C,z){var B=Ce(C,z);return function(G){var W=this,Z=G.relatedTarget;(!Z||Z!==W&&!(Z.compareDocumentPosition(W)&8))&&B.call(W,G)}}var qe,$e=0;function We(C){var z=".dragsuppress-"+ ++$e,B="click"+z,G=e.select(o(C)).on("touchmove"+z,X).on("dragstart"+z,X).on("selectstart"+z,X);if(qe==null&&(qe="onselectstart"in C?!1:F(C.style,"userSelect")),qe){var W=a(C).style,Z=W[qe];W[qe]="none"}return function(le){if(G.on(z,null),qe&&(W[qe]=Z),le){var oe=function(){G.on(B,null)};G.on(B,function(){X(),oe()},!0),setTimeout(oe,0)}}}e.mouse=function(C){return Ge(C,$())};var Ue=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ge(C,z){z.changedTouches&&(z=z.changedTouches[0]);var B=C.ownerSVGElement||C;if(B.createSVGPoint){var G=B.createSVGPoint();if(Ue<0){var W=o(C);if(W.scrollX||W.scrollY){B=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Z=B[0][0].getScreenCTM();Ue=!(Z.f||Z.e),B.remove()}}return Ue?(G.x=z.pageX,G.y=z.pageY):(G.x=z.clientX,G.y=z.clientY),G=G.matrixTransform(C.getScreenCTM().inverse()),[G.x,G.y]}var le=C.getBoundingClientRect();return[z.clientX-le.left-C.clientLeft,z.clientY-le.top-C.clientTop]}e.touch=function(C,z,B){if(arguments.length<3&&(B=z,z=$().changedTouches),z){for(var G=0,W=z.length,Z;G0?1:C<0?-1:0}function je(C,z,B){return(z[0]-C[0])*(B[1]-C[1])-(z[1]-C[1])*(B[0]-C[0])}function nr(C){return C>1?0:C<-1?Ye:Math.acos(C)}function fr(C){return C>1?J:C<-1?-J:Math.asin(C)}function br(C){return((C=Math.exp(C))-1/C)/2}function Sr(C){return((C=Math.exp(C))+1/C)/2}function Mr(C){return((C=Math.exp(2*C))-1)/(C+1)}function Ar(C){return(C=Math.sin(C/2))*C}var nt=Math.SQRT2,Yr=2,mr=4;e.interpolateZoom=function(C,z){var B=C[0],G=C[1],W=C[2],Z=z[0],le=z[1],oe=z[2],fe=Z-B,xe=le-G,be=fe*fe+xe*xe,Fe,Ie;if(be0&&(vr=vr.transition().duration(le)),vr.call(tr.event)}function _r(){Ve&&Ve.domain(Oe.range().map(function(vr){return(vr-C.x)/C.k}).map(Oe.invert)),er&&er.domain(Xe.range().map(function(vr){return(vr-C.y)/C.k}).map(Xe.invert))}function wr(vr){oe++||vr({type:"zoomstart"})}function qr(vr){_r(),vr({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function Tr(vr){--oe||(vr({type:"zoomend"}),B=null)}function Pr(){var vr=this,Or=rr.of(vr,arguments),Vr=0,ft=e.select(o(vr)).on(xe,bn).on(be,In),Pt=Je(e.mouse(vr)),$t=We(vr);dc.call(vr),wr(Or);function bn(){Vr=1,yr(e.mouse(vr),Pt),qr(Or)}function In(){ft.on(xe,null).on(be,null),$t(Vr),Tr(Or)}}function ut(){var vr=this,Or=rr.of(vr,arguments),Vr={},ft=0,Pt,$t=".zoom-"+e.event.changedTouches[0].identifier,bn="touchmove"+$t,In="touchend"+$t,Gn=[],Nn=e.select(vr),Qn=We(vr);$n(),wr(Or),Nn.on(fe,null).on(Ie,$n);function An(){var Za=e.touches(vr);return Pt=C.k,Za.forEach(function(_n){_n.identifier in Vr&&(Vr[_n.identifier]=Je(_n))}),Za}function $n(){var Za=e.event.target;e.select(Za).on(bn,ml).on(In,wB),Gn.push(Za);for(var _n=e.event.changedTouches,Aa=0,Mi=_n.length;Aa1){var xl=ka[0],_o=ka[1],yc=xl[0]-_o[0],ab=xl[1]-_o[1];ft=yc*yc+ab*ab}}function ml(){var Za=e.touches(vr),_n,Aa,Mi,ka;dc.call(vr);for(var As=0,xl=Za.length;As1?1:z,B=B<0?0:B>1?1:B,W=B<=.5?B*(1+z):B+z-B*z,G=2*B-W;function Z(oe){return oe>360?oe-=360:oe<0&&(oe+=360),oe<60?G+(W-G)*oe/60:oe<180?W:oe<240?G+(W-G)*(240-oe)/60:G}function le(oe){return Math.round(Z(oe)*255)}return new nn(le(C+120),le(C),le(C-120))}e.hcl=Lt;function Lt(C,z,B){return this instanceof Lt?(this.h=+C,this.c=+z,void(this.l=+B)):arguments.length<2?C instanceof Lt?new Lt(C.h,C.c,C.l):C instanceof Rt?xi(C.l,C.a,C.b):xi((C=gr((C=e.rgb(C)).r,C.g,C.b)).l,C.a,C.b):new Lt(C,z,B)}var yn=Lt.prototype=new xt;yn.brighter=function(C){return new Lt(this.h,this.c,Math.min(100,this.l+at*(arguments.length?C:1)))},yn.darker=function(C){return new Lt(this.h,this.c,Math.max(0,this.l-at*(arguments.length?C:1)))},yn.rgb=function(){return Gt(this.h,this.c,this.l).rgb()};function Gt(C,z,B){return isNaN(C)&&(C=0),isNaN(z)&&(z=0),new Rt(B,Math.cos(C*=ae)*z,Math.sin(C)*z)}e.lab=Rt;function Rt(C,z,B){return this instanceof Rt?(this.l=+C,this.a=+z,void(this.b=+B)):arguments.length<2?C instanceof Rt?new Rt(C.l,C.a,C.b):C instanceof Lt?Gt(C.h,C.c,C.l):gr((C=nn(C)).r,C.g,C.b):new Rt(C,z,B)}var at=18,It=.95047,va=1,Kn=1.08883,Fn=Rt.prototype=new xt;Fn.brighter=function(C){return new Rt(Math.min(100,this.l+at*(arguments.length?C:1)),this.a,this.b)},Fn.darker=function(C){return new Rt(Math.max(0,this.l-at*(arguments.length?C:1)),this.a,this.b)},Fn.rgb=function(){return Ma(this.l,this.a,this.b)};function Ma(C,z,B){var G=(C+16)/116,W=G+z/500,Z=G-B/200;return W=Gi(W)*It,G=Gi(G)*va,Z=Gi(Z)*Kn,new nn(Wi(3.2404542*W-1.5371385*G-.4985314*Z),Wi(-.969266*W+1.8760108*G+.041556*Z),Wi(.0556434*W-.2040259*G+1.0572252*Z))}function xi(C,z,B){return C>0?new Lt(Math.atan2(B,z)*Le,Math.sqrt(z*z+B*B),C):new Lt(NaN,NaN,C)}function Gi(C){return C>.206893034?C*C*C:(C-4/29)/7.787037}function Yi(C){return C>.008856?Math.pow(C,1/3):7.787037*C+4/29}function Wi(C){return Math.round(255*(C<=.00304?12.92*C:1.055*Math.pow(C,1/2.4)-.055))}e.rgb=nn;function nn(C,z,B){return this instanceof nn?(this.r=~~C,this.g=~~z,void(this.b=~~B)):arguments.length<2?C instanceof nn?new nn(C.r,C.g,C.b):it(""+C,nn,Ot):new nn(C,z,B)}function xo(C){return new nn(C>>16,C>>8&255,C&255)}function bi(C){return xo(C)+""}var _i=nn.prototype=new xt;_i.brighter=function(C){C=Math.pow(.7,arguments.length?C:1);var z=this.r,B=this.g,G=this.b,W=30;return!z&&!B&&!G?new nn(W,W,W):(z&&z>4,G=G>>4|G,W=fe&240,W=W>>4|W,Z=fe&15,Z=Z<<4|Z):C.length===7&&(G=(fe&16711680)>>16,W=(fe&65280)>>8,Z=fe&255)),z(G,W,Z))}function vt(C,z,B){var G=Math.min(C/=255,z/=255,B/=255),W=Math.max(C,z,B),Z=W-G,le,oe,fe=(W+G)/2;return Z?(oe=fe<.5?Z/(W+G):Z/(2-W-G),C==W?le=(z-B)/Z+(z0&&fe<1?0:le),new zr(le,oe,fe)}function gr(C,z,B){C=mn(C),z=mn(z),B=mn(B);var G=Yi((.4124564*C+.3575761*z+.1804375*B)/It),W=Yi((.2126729*C+.7151522*z+.072175*B)/va),Z=Yi((.0193339*C+.119192*z+.9503041*B)/Kn);return Rt(116*W-16,500*(G-W),200*(W-Z))}function mn(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function bt(C){var z=parseFloat(C);return C.charAt(C.length-1)==="%"?Math.round(z*2.55):z}var xn=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});xn.forEach(function(C,z){xn.set(C,xo(z))});function Xr(C){return typeof C=="function"?C:function(){return C}}e.functor=Xr,e.xhr=Wa(N);function Wa(C){return function(z,B,G){return arguments.length===2&&typeof B=="function"&&(G=B,B=null),hl(z,B,C,G)}}function hl(C,z,B,G){var W={},Z=e.dispatch("beforesend","progress","load","error"),le={},oe=new XMLHttpRequest,fe=null;self.XDomainRequest&&!("withCredentials"in oe)&&/^(http(s)?:)?\/\//.test(C)&&(oe=new XDomainRequest),"onload"in oe?oe.onload=oe.onerror=xe:oe.onreadystatechange=function(){oe.readyState>3&&xe()};function xe(){var be=oe.status,Fe;if(!be&&Tq(oe)||be>=200&&be<300||be===304){try{Fe=B.call(W,oe)}catch(Ie){Z.error.call(W,Ie);return}Z.load.call(W,Fe)}else Z.error.call(W,oe)}return oe.onprogress=function(be){var Fe=e.event;e.event=be;try{Z.progress.call(W,oe)}finally{e.event=Fe}},W.header=function(be,Fe){return be=(be+"").toLowerCase(),arguments.length<2?le[be]:(Fe==null?delete le[be]:le[be]=Fe+"",W)},W.mimeType=function(be){return arguments.length?(z=be==null?null:be+"",W):z},W.responseType=function(be){return arguments.length?(fe=be,W):fe},W.response=function(be){return B=be,W},["get","post"].forEach(function(be){W[be]=function(){return W.send.apply(W,[be].concat(t(arguments)))}}),W.send=function(be,Fe,Ie){if(arguments.length===2&&typeof Fe=="function"&&(Ie=Fe,Fe=null),oe.open(be,C,!0),z!=null&&!("accept"in le)&&(le.accept=z+",*/*"),oe.setRequestHeader)for(var Qe in le)oe.setRequestHeader(Qe,le[Qe]);return z!=null&&oe.overrideMimeType&&oe.overrideMimeType(z),fe!=null&&(oe.responseType=fe),Ie!=null&&W.on("error",Ie).on("load",function(rr){Ie(null,rr)}),Z.beforesend.call(W,oe),oe.send(Fe==null?null:Fe),W},W.abort=function(){return oe.abort(),W},e.rebind(W,Z,"on"),G==null?W:W.get(Mq(G))}function Mq(C){return C.length===1?function(z,B){C(z==null?B:null)}:C}function Tq(C){var z=C.responseType;return z&&z!=="text"?C.response:C.responseText}e.dsv=function(C,z){var B=new RegExp('["'+C+` -]`),G=C.charCodeAt(0);function W(xe,be,Fe){arguments.length<3&&(Fe=be,be=null);var Ie=hl(xe,z,be==null?Z:le(be),Fe);return Ie.row=function(Qe){return arguments.length?Ie.response((be=Qe)==null?Z:le(Qe)):be},Ie}function Z(xe){return W.parse(xe.responseText)}function le(xe){return function(be){return W.parse(be.responseText,xe)}}W.parse=function(xe,be){var Fe;return W.parseRows(xe,function(Ie,Qe){if(Fe)return Fe(Ie,Qe-1);var rr=function(Oe){for(var Ve={},Xe=Ie.length,er=0;er=rr)return Ie;if(er)return er=!1,Fe;var or=Oe;if(xe.charCodeAt(or)===34){for(var dr=or;dr++{var pe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var xc=pe(ib=>{"use strict";ib.version="3.1.2"});var lb=pe((ob,bc)=>{(function(r,t,n){t[r]=t[r]||n(),typeof bc!="undefined"&&bc.exports&&(bc.exports=t[r])})("Promise",typeof window!="undefined"?window:ob,function(){"use strict";var r,t,n,a=Object.prototype.toString,o=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(k,S,x,M){return Object.defineProperty(k,S,{value:x,writable:!0,configurable:M!==!1})}}catch(y){r=function(S,x,M){return S[x]=M,S}}n=function(){var k,S,x;function M(d,b){this.fn=d,this.self=b,this.next=void 0}return{add:function(b,g){x=new M(b,g),S?S.next=x:k=x,S=x,x=void 0},drain:function(){var b=k;for(k=S=t=void 0;b;)b.fn.call(b.self),b=b.next}}}();function i(y,k){n.add(y,k),t||(t=o(n.drain))}function l(y){var k,S=typeof y;return y!=null&&(S=="object"||S=="function")&&(k=y.then),typeof k=="function"?k:!1}function u(){for(var y=0;y0&&i(u,S))}catch(x){v.call(new _(S),x)}}}function v(y){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=y,k.state=2,k.chain.length>0&&i(u,k))}function p(y,k,S,x){for(var M=0;M{(function(){var e={version:"3.8.2"},r=[].slice,t=function(C){return r.call(C)},n=self.document;function a(C){return C&&(C.ownerDocument||C.document||C).documentElement}function o(C){return C&&(C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(C){t=function(z){for(var B=z.length,G=new Array(B);B--;)G[B]=z[B];return G}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(C){var i=this.Element.prototype,l=i.setAttribute,u=i.setAttributeNS,s=this.CSSStyleDeclaration.prototype,f=s.setProperty;i.setAttribute=function(z,B){l.call(this,z,B+"")},i.setAttributeNS=function(z,B,G){u.call(this,z,B,G+"")},s.setProperty=function(z,B,G){f.call(this,z,B+"",G)}}e.ascending=v;function v(C,z){return Cz?1:C>=z?0:NaN}e.descending=function(C,z){return zC?1:z>=C?0:NaN},e.min=function(C,z){var B=-1,G=C.length,W,Z;if(arguments.length===1){for(;++B=Z){W=Z;break}for(;++BZ&&(W=Z)}else{for(;++B=Z){W=Z;break}for(;++BZ&&(W=Z)}return W},e.max=function(C,z){var B=-1,G=C.length,W,Z;if(arguments.length===1){for(;++B=Z){W=Z;break}for(;++BW&&(W=Z)}else{for(;++B=Z){W=Z;break}for(;++BW&&(W=Z)}return W},e.extent=function(C,z){var B=-1,G=C.length,W,Z,le;if(arguments.length===1){for(;++B=Z){W=le=Z;break}for(;++BZ&&(W=Z),le=Z){W=le=Z;break}for(;++BZ&&(W=Z),le1)return le/(fe-1)},e.deviation=function(){var C=e.variance.apply(this,arguments);return C&&Math.sqrt(C)};function m(C){return{left:function(z,B,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[Z],B)<0?G=Z+1:W=Z}return G},right:function(z,B,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[Z],B)>0?W=Z:G=Z+1}return G}}}var w=m(v);e.bisectLeft=w.left,e.bisect=e.bisectRight=w.right,e.bisector=function(C){return m(C.length===1?function(z,B){return v(C(z),B)}:C)},e.shuffle=function(C,z,B){(G=arguments.length)<3&&(B=C.length,G<2&&(z=0));for(var G=B-z,W,Z;G;)Z=Math.random()*G--|0,W=C[G+z],C[G+z]=C[Z+z],C[Z+z]=W;return C},e.permute=function(C,z){for(var B=z.length,G=new Array(B);B--;)G[B]=C[z[B]];return G},e.pairs=function(C){for(var z=0,B=C.length-1,G,W=C[0],Z=new Array(B<0?0:B);z=0;)for(le=C[z],B=le.length;--B>=0;)Z[--W]=le[B];return Z};var y=Math.abs;e.range=function(C,z,B){if(arguments.length<3&&(B=1,arguments.length<2&&(z=C,C=0)),(z-C)/B===1/0)throw new Error("infinite range");var G=[],W=k(y(B)),Z=-1,le;if(C*=W,z*=W,B*=W,B<0)for(;(le=C+B*++Z)>z;)G.push(le/W);else for(;(le=C+B*++Z)=z.length)return W?W.call(C,fe):G?fe.sort(G):fe;for(var be=-1,Ie=fe.length,Fe=z[xe++],Qe,rr,Oe,Ve=new x,Xe;++be=z.length)return oe;var xe=[],be=B[fe++];return oe.forEach(function(Ie,Fe){xe.push({key:Ie,values:le(Fe,fe)})}),be?xe.sort(function(Ie,Fe){return be(Ie.key,Fe.key)}):xe}return C.map=function(oe,fe){return Z(fe,oe,0)},C.entries=function(oe){return le(Z(e.map,oe,0),0)},C.key=function(oe){return z.push(oe),C},C.sortKeys=function(oe){return B[z.length-1]=oe,C},C.sortValues=function(oe){return G=oe,C},C.rollup=function(oe){return W=oe,C},C},e.set=function(C){var z=new D;if(C)for(var B=0,G=C.length;B=0&&(G=C.slice(B+1),C=C.slice(0,B)),C)return arguments.length<2?this[C].on(G):this[C].on(G,z);if(arguments.length===2){if(z==null)for(C in this)this.hasOwnProperty(C)&&this[C].on(G,null);return this}};function U(C){var z=[],B=new x;function G(){for(var W=z,Z=-1,le=W.length,oe;++Z=0&&(B=C.slice(0,z))!=="xmlns"&&(C=C.slice(z+1)),te.hasOwnProperty(B)?{space:te[B],local:C}:C}},ee.attr=function(C,z){if(arguments.length<2){if(typeof C=="string"){var B=this.node();return C=e.ns.qualify(C),C.local?B.getAttributeNS(C.space,C.local):B.getAttribute(C)}for(z in C)this.each(ue(z,C[z]));return this}return this.each(ue(C,z))};function ue(C,z){C=e.ns.qualify(C);function B(){this.removeAttribute(C)}function G(){this.removeAttributeNS(C.space,C.local)}function W(){this.setAttribute(C,z)}function Z(){this.setAttributeNS(C.space,C.local,z)}function le(){var fe=z.apply(this,arguments);fe==null?this.removeAttribute(C):this.setAttribute(C,fe)}function oe(){var fe=z.apply(this,arguments);fe==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,fe)}return z==null?C.local?G:B:typeof z=="function"?C.local?oe:le:C.local?Z:W}function de(C){return C.trim().replace(/\s+/g," ")}ee.classed=function(C,z){if(arguments.length<2){if(typeof C=="string"){var B=this.node(),G=(C=Ae(C)).length,W=-1;if(z=B.classList){for(;++W=0;)(Z=B[G])&&(W&&W!==Z.nextSibling&&W.parentNode.insertBefore(Z,W),W=Z);return this},ee.sort=function(C){C=we.apply(this,arguments);for(var z=-1,B=this.length;++z=z&&(z=W+1);!(fe=le[z])&&++z0&&(C=C.slice(0,W));var le=ye.get(C);le&&(C=le,Z=ze);function oe(){var be=this[G];be&&(this.removeEventListener(C,be,be.$),delete this[G])}function fe(){var be=Z(z,t(arguments));oe.call(this),this.addEventListener(C,this[G]=be,be.$=B),be._=z}function xe(){var be=new RegExp("^__on([^.]+)"+e.requote(C)+"$"),Ie;for(var Fe in this)if(Ie=Fe.match(be)){var Qe=this[Fe];this.removeEventListener(Ie[1],Qe,Qe.$),delete this[Fe]}}return W?z?fe:oe:z?P:xe}var ye=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&ye.forEach(function(C){"on"+C in n&&ye.remove(C)});function Ce(C,z){return function(B){var G=e.event;e.event=B,z[0]=this.__data__;try{C.apply(this,z)}finally{e.event=G}}}function ze(C,z){var B=Ce(C,z);return function(G){var W=this,Z=G.relatedTarget;(!Z||Z!==W&&!(Z.compareDocumentPosition(W)&8))&&B.call(W,G)}}var qe,$e=0;function We(C){var z=".dragsuppress-"+ ++$e,B="click"+z,G=e.select(o(C)).on("touchmove"+z,X).on("dragstart"+z,X).on("selectstart"+z,X);if(qe==null&&(qe="onselectstart"in C?!1:I(C.style,"userSelect")),qe){var W=a(C).style,Z=W[qe];W[qe]="none"}return function(le){if(G.on(z,null),qe&&(W[qe]=Z),le){var oe=function(){G.on(B,null)};G.on(B,function(){X(),oe()},!0),setTimeout(oe,0)}}}e.mouse=function(C){return Ge(C,$())};var Ue=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ge(C,z){z.changedTouches&&(z=z.changedTouches[0]);var B=C.ownerSVGElement||C;if(B.createSVGPoint){var G=B.createSVGPoint();if(Ue<0){var W=o(C);if(W.scrollX||W.scrollY){B=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Z=B[0][0].getScreenCTM();Ue=!(Z.f||Z.e),B.remove()}}return Ue?(G.x=z.pageX,G.y=z.pageY):(G.x=z.clientX,G.y=z.clientY),G=G.matrixTransform(C.getScreenCTM().inverse()),[G.x,G.y]}var le=C.getBoundingClientRect();return[z.clientX-le.left-C.clientLeft,z.clientY-le.top-C.clientTop]}e.touch=function(C,z,B){if(arguments.length<3&&(B=z,z=$().changedTouches),z){for(var G=0,W=z.length,Z;G0?1:C<0?-1:0}function je(C,z,B){return(z[0]-C[0])*(B[1]-C[1])-(z[1]-C[1])*(B[0]-C[0])}function nr(C){return C>1?0:C<-1?Ye:Math.acos(C)}function ur(C){return C>1?J:C<-1?-J:Math.asin(C)}function br(C){return((C=Math.exp(C))-1/C)/2}function Sr(C){return((C=Math.exp(C))+1/C)/2}function Mr(C){return((C=Math.exp(2*C))-1)/(C+1)}function Ar(C){return(C=Math.sin(C/2))*C}var nt=Math.SQRT2,Yr=2,mr=4;e.interpolateZoom=function(C,z){var B=C[0],G=C[1],W=C[2],Z=z[0],le=z[1],oe=z[2],fe=Z-B,xe=le-G,be=fe*fe+xe*xe,Ie,Fe;if(be0&&(cr=cr.transition().duration(le)),cr.call(tr.event)}function _r(){Ve&&Ve.domain(Oe.range().map(function(cr){return(cr-C.x)/C.k}).map(Oe.invert)),er&&er.domain(Xe.range().map(function(cr){return(cr-C.y)/C.k}).map(Xe.invert))}function wr(cr){oe++||cr({type:"zoomstart"})}function qr(cr){_r(),cr({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function Tr(cr){--oe||(cr({type:"zoomend"}),B=null)}function Pr(){var cr=this,Or=rr.of(cr,arguments),Vr=0,ft=e.select(o(cr)).on(xe,bn).on(be,Fn),Pt=Je(e.mouse(cr)),$t=We(cr);pc.call(cr),wr(Or);function bn(){Vr=1,yr(e.mouse(cr),Pt),qr(Or)}function Fn(){ft.on(xe,null).on(be,null),$t(Vr),Tr(Or)}}function ut(){var cr=this,Or=rr.of(cr,arguments),Vr={},ft=0,Pt,$t=".zoom-"+e.event.changedTouches[0].identifier,bn="touchmove"+$t,Fn="touchend"+$t,Yn=[],Nn=e.select(cr),$n=We(cr);jn(),wr(Or),Nn.on(fe,null).on(Fe,jn);function An(){var Ja=e.touches(cr);return Pt=C.k,Ja.forEach(function(_n){_n.identifier in Vr&&(Vr[_n.identifier]=Je(_n))}),Ja}function jn(){var Ja=e.event.target;e.select(Ja).on(bn,ml).on(Fn,TB),Yn.push(Ja);for(var _n=e.event.changedTouches,Aa=0,Mi=_n.length;Aa1){var xl=ka[0],_o=ka[1],mc=xl[0]-_o[0],ab=xl[1]-_o[1];ft=mc*mc+ab*ab}}function ml(){var Ja=e.touches(cr),_n,Aa,Mi,ka;pc.call(cr);for(var As=0,xl=Ja.length;As1?1:z,B=B<0?0:B>1?1:B,W=B<=.5?B*(1+z):B+z-B*z,G=2*B-W;function Z(oe){return oe>360?oe-=360:oe<0&&(oe+=360),oe<60?G+(W-G)*oe/60:oe<180?W:oe<240?G+(W-G)*(240-oe)/60:G}function le(oe){return Math.round(Z(oe)*255)}return new nn(le(C+120),le(C),le(C-120))}e.hcl=Lt;function Lt(C,z,B){return this instanceof Lt?(this.h=+C,this.c=+z,void(this.l=+B)):arguments.length<2?C instanceof Lt?new Lt(C.h,C.c,C.l):C instanceof Rt?xi(C.l,C.a,C.b):xi((C=gr((C=e.rgb(C)).r,C.g,C.b)).l,C.a,C.b):new Lt(C,z,B)}var yn=Lt.prototype=new xt;yn.brighter=function(C){return new Lt(this.h,this.c,Math.min(100,this.l+at*(arguments.length?C:1)))},yn.darker=function(C){return new Lt(this.h,this.c,Math.max(0,this.l-at*(arguments.length?C:1)))},yn.rgb=function(){return Yt(this.h,this.c,this.l).rgb()};function Yt(C,z,B){return isNaN(C)&&(C=0),isNaN(z)&&(z=0),new Rt(B,Math.cos(C*=ae)*z,Math.sin(C)*z)}e.lab=Rt;function Rt(C,z,B){return this instanceof Rt?(this.l=+C,this.a=+z,void(this.b=+B)):arguments.length<2?C instanceof Rt?new Rt(C.l,C.a,C.b):C instanceof Lt?Yt(C.h,C.c,C.l):gr((C=nn(C)).r,C.g,C.b):new Rt(C,z,B)}var at=18,Ft=.95047,va=1,Qn=1.08883,In=Rt.prototype=new xt;In.brighter=function(C){return new Rt(Math.min(100,this.l+at*(arguments.length?C:1)),this.a,this.b)},In.darker=function(C){return new Rt(Math.max(0,this.l-at*(arguments.length?C:1)),this.a,this.b)},In.rgb=function(){return Ma(this.l,this.a,this.b)};function Ma(C,z,B){var G=(C+16)/116,W=G+z/500,Z=G-B/200;return W=Gi(W)*Ft,G=Gi(G)*va,Z=Gi(Z)*Qn,new nn(Wi(3.2404542*W-1.5371385*G-.4985314*Z),Wi(-.969266*W+1.8760108*G+.041556*Z),Wi(.0556434*W-.2040259*G+1.0572252*Z))}function xi(C,z,B){return C>0?new Lt(Math.atan2(B,z)*Le,Math.sqrt(z*z+B*B),C):new Lt(NaN,NaN,C)}function Gi(C){return C>.206893034?C*C*C:(C-4/29)/7.787037}function Yi(C){return C>.008856?Math.pow(C,1/3):7.787037*C+4/29}function Wi(C){return Math.round(255*(C<=.00304?12.92*C:1.055*Math.pow(C,1/2.4)-.055))}e.rgb=nn;function nn(C,z,B){return this instanceof nn?(this.r=~~C,this.g=~~z,void(this.b=~~B)):arguments.length<2?C instanceof nn?new nn(C.r,C.g,C.b):it(""+C,nn,Ot):new nn(C,z,B)}function xo(C){return new nn(C>>16,C>>8&255,C&255)}function bi(C){return xo(C)+""}var _i=nn.prototype=new xt;_i.brighter=function(C){C=Math.pow(.7,arguments.length?C:1);var z=this.r,B=this.g,G=this.b,W=30;return!z&&!B&&!G?new nn(W,W,W):(z&&z>4,G=G>>4|G,W=fe&240,W=W>>4|W,Z=fe&15,Z=Z<<4|Z):C.length===7&&(G=(fe&16711680)>>16,W=(fe&65280)>>8,Z=fe&255)),z(G,W,Z))}function vt(C,z,B){var G=Math.min(C/=255,z/=255,B/=255),W=Math.max(C,z,B),Z=W-G,le,oe,fe=(W+G)/2;return Z?(oe=fe<.5?Z/(W+G):Z/(2-W-G),C==W?le=(z-B)/Z+(z0&&fe<1?0:le),new zr(le,oe,fe)}function gr(C,z,B){C=mn(C),z=mn(z),B=mn(B);var G=Yi((.4124564*C+.3575761*z+.1804375*B)/Ft),W=Yi((.2126729*C+.7151522*z+.072175*B)/va),Z=Yi((.0193339*C+.119192*z+.9503041*B)/Qn);return Rt(116*W-16,500*(G-W),200*(W-Z))}function mn(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function bt(C){var z=parseFloat(C);return C.charAt(C.length-1)==="%"?Math.round(z*2.55):z}var xn=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});xn.forEach(function(C,z){xn.set(C,xo(z))});function Xr(C){return typeof C=="function"?C:function(){return C}}e.functor=Xr,e.xhr=Xa(N);function Xa(C){return function(z,B,G){return arguments.length===2&&typeof B=="function"&&(G=B,B=null),hl(z,B,C,G)}}function hl(C,z,B,G){var W={},Z=e.dispatch("beforesend","progress","load","error"),le={},oe=new XMLHttpRequest,fe=null;self.XDomainRequest&&!("withCredentials"in oe)&&/^(http(s)?:)?\/\//.test(C)&&(oe=new XDomainRequest),"onload"in oe?oe.onload=oe.onerror=xe:oe.onreadystatechange=function(){oe.readyState>3&&xe()};function xe(){var be=oe.status,Ie;if(!be&&kq(oe)||be>=200&&be<300||be===304){try{Ie=B.call(W,oe)}catch(Fe){Z.error.call(W,Fe);return}Z.load.call(W,Ie)}else Z.error.call(W,oe)}return oe.onprogress=function(be){var Ie=e.event;e.event=be;try{Z.progress.call(W,oe)}finally{e.event=Ie}},W.header=function(be,Ie){return be=(be+"").toLowerCase(),arguments.length<2?le[be]:(Ie==null?delete le[be]:le[be]=Ie+"",W)},W.mimeType=function(be){return arguments.length?(z=be==null?null:be+"",W):z},W.responseType=function(be){return arguments.length?(fe=be,W):fe},W.response=function(be){return B=be,W},["get","post"].forEach(function(be){W[be]=function(){return W.send.apply(W,[be].concat(t(arguments)))}}),W.send=function(be,Ie,Fe){if(arguments.length===2&&typeof Ie=="function"&&(Fe=Ie,Ie=null),oe.open(be,C,!0),z!=null&&!("accept"in le)&&(le.accept=z+",*/*"),oe.setRequestHeader)for(var Qe in le)oe.setRequestHeader(Qe,le[Qe]);return z!=null&&oe.overrideMimeType&&oe.overrideMimeType(z),fe!=null&&(oe.responseType=fe),Fe!=null&&W.on("error",Fe).on("load",function(rr){Fe(null,rr)}),Z.beforesend.call(W,oe),oe.send(Ie==null?null:Ie),W},W.abort=function(){return oe.abort(),W},e.rebind(W,Z,"on"),G==null?W:W.get(Aq(G))}function Aq(C){return C.length===1?function(z,B){C(z==null?B:null)}:C}function kq(C){var z=C.responseType;return z&&z!=="text"?C.response:C.responseText}e.dsv=function(C,z){var B=new RegExp('["'+C+` +]`),G=C.charCodeAt(0);function W(xe,be,Ie){arguments.length<3&&(Ie=be,be=null);var Fe=hl(xe,z,be==null?Z:le(be),Ie);return Fe.row=function(Qe){return arguments.length?Fe.response((be=Qe)==null?Z:le(Qe)):be},Fe}function Z(xe){return W.parse(xe.responseText)}function le(xe){return function(be){return W.parse(be.responseText,xe)}}W.parse=function(xe,be){var Ie;return W.parseRows(xe,function(Fe,Qe){if(Ie)return Ie(Fe,Qe-1);var rr=function(Oe){for(var Ve={},Xe=Fe.length,er=0;er=rr)return Fe;if(er)return er=!1,Ie;var or=Oe;if(xe.charCodeAt(or)===34){for(var dr=or;dr++24?(isFinite(z)&&(clearTimeout($0),$0=setTimeout(Rd,z)),Q0=0):(Q0=1,G5(Rd))}e.timer.flush=function(){Y5(),W5()};function Y5(){for(var C=Date.now(),z=J0;z;)C>=z.t&&z.c(C-z.t)&&(z.c=null),z=z.n;return C}function W5(){for(var C,z=J0,B=1/0;z;)z.c?(z.t=0;--oe)Oe.push(W[xe[Fe[oe]][2]]);for(oe=+Qe;oe1&&je(C[B[G-2]],C[B[G-1]],C[W])<=0;)--G;B[G++]=W}return B.slice(0,G)}function Aq(C,z){return C[0]-z[0]||C[1]-z[1]}e.geom.polygon=function(C){return q(C,ec),C};var ec=e.geom.polygon.prototype=[];ec.area=function(){for(var C=-1,z=this.length,B,G=this[z-1],W=0;++CDe)oe=oe.L;else if(le=z-Eq(oe,B),le>De){if(!oe.R){G=oe;break}oe=oe.R}else{Z>-De?(G=oe.P,W=oe):le>-De?(G=oe,W=oe.N):G=W=oe;break}var fe=Q5(C);if(_s.insert(G,fe),!(!G&&!W)){if(G===W){Ms(G),W=Q5(G.site),_s.insert(fe,W),fe.edge=W.edge=Ku(G.site,fe.site),ws(G),ws(W);return}if(!W){fe.edge=Ku(G.site,fe.site);return}Ms(G),Ms(W);var xe=G.site,be=xe.x,Fe=xe.y,Ie=C.x-be,Qe=C.y-Fe,rr=W.site,Oe=rr.x-be,Ve=rr.y-Fe,Xe=2*(Ie*Ve-Qe*Oe),er=Ie*Ie+Qe*Qe,tr=Oe*Oe+Ve*Ve,Je={x:(Ve*er-Qe*tr)/Xe+be,y:(Ie*tr-Oe*er)/Xe+Fe};rc(W.edge,xe,rr,Je),fe.edge=Ku(xe,C,null,Je),W.edge=Ku(C,rr,null,Je),ws(G),ws(W)}}function $5(C,z){var B=C.site,G=B.x,W=B.y,Z=W-z;if(!Z)return G;var le=C.P;if(!le)return-1/0;B=le.site;var oe=B.x,fe=B.y,xe=fe-z;if(!xe)return oe;var be=oe-G,Fe=1/Z-1/xe,Ie=be/xe;return Fe?(-Ie+Math.sqrt(Ie*Ie-2*Fe*(be*be/(-2*xe)-fe+xe/2+W-Z/2)))/Fe+G:(G+oe)/2}function Eq(C,z){var B=C.N;if(B)return $5(B,z);var G=C.site;return G.y===z?G.x:1/0}function j5(C){this.site=C,this.edges=[]}j5.prototype.prepare=function(){for(var C=this.edges,z=C.length,B;z--;)B=C[z].edge,(!B.b||!B.a)&&C.splice(z,1);return C.sort(ex),C.length};function Lq(C){for(var z=C[0][0],B=C[1][0],G=C[0][1],W=C[1][1],Z,le,oe,fe,xe=dl,be=xe.length,Fe,Ie,Qe,rr,Oe,Ve;be--;)if(Fe=xe[be],!(!Fe||!Fe.prepare()))for(Qe=Fe.edges,rr=Qe.length,Ie=0;IeDe||y(fe-le)>De)&&(Qe.splice(Ie,0,new tc(Iq(Fe.site,Ve,y(oe-z)De?{x:z,y:y(Z-z)De?{x:y(le-W)De?{x:B,y:y(Z-B)De?{x:y(le-G)=-Ke)){var Ie=fe*fe+xe*xe,Qe=be*be+Ve*Ve,rr=(Ve*Ie-xe*Qe)/Fe,Oe=(fe*Qe-be*Ie)/Fe,Ve=Oe+oe,Xe=K5.pop()||new Rq;Xe.arc=C,Xe.site=W,Xe.x=rr+le,Xe.y=Ve+Math.sqrt(rr*rr+Oe*Oe),Xe.cy=Ve,C.circle=Xe;for(var er=null,tr=Ju._;tr;)if(Xe.y0)){if(Oe/=Qe,Qe<0){if(Oe0){if(Oe>Ie)return;Oe>Fe&&(Fe=Oe)}if(Oe=B-oe,!(!Qe&&Oe<0)){if(Oe/=Qe,Qe<0){if(Oe>Ie)return;Oe>Fe&&(Fe=Oe)}else if(Qe>0){if(Oe0)){if(Oe/=rr,rr<0){if(Oe0){if(Oe>Ie)return;Oe>Fe&&(Fe=Oe)}if(Oe=G-fe,!(!rr&&Oe<0)){if(Oe/=rr,rr<0){if(Oe>Ie)return;Oe>Fe&&(Fe=Oe)}else if(rr>0){if(Oe0&&(W.a={x:oe+Fe*Qe,y:fe+Fe*rr}),Ie<1&&(W.b={x:oe+Ie*Qe,y:fe+Ie*rr}),W}}}}}}function Pq(C){for(var z=bs,B=Dq(C[0][0],C[0][1],C[1][0],C[1][1]),G=z.length,W;G--;)W=z[G],(!Fq(W,C)||!B(W)||y(W.a.x-W.b.x)=Z)return;if(be>Ie){if(!G)G={x:rr,y:le};else if(G.y>=oe)return;B={x:rr,y:oe}}else{if(!G)G={x:rr,y:oe};else if(G.y1)if(be>Ie){if(!G)G={x:(le-Xe)/Ve,y:le};else if(G.y>=oe)return;B={x:(oe-Xe)/Ve,y:oe}}else{if(!G)G={x:(oe-Xe)/Ve,y:oe};else if(G.y=Z)return;B={x:Z,y:Ve*Z+Xe}}else{if(!G)G={x:Z,y:Ve*Z+Xe};else if(G.x=be&&Xe.x<=Ie&&Xe.y>=Fe&&Xe.y<=Qe?[[be,Qe],[Ie,Qe],[Ie,Fe],[be,Fe]]:[];er.point=fe[Oe]}),xe}function oe(fe){return fe.map(function(xe,be){return{x:Math.round(G(xe,be)/De)*De,y:Math.round(W(xe,be)/De)*De,i:be}})}return le.links=function(fe){return zd(oe(fe)).edges.filter(function(xe){return xe.l&&xe.r}).map(function(xe){return{source:fe[xe.l.i],target:fe[xe.r.i]}})},le.triangles=function(fe){var xe=[];return zd(oe(fe)).cells.forEach(function(be,Fe){for(var Ie=be.site,Qe=be.edges.sort(ex),rr=-1,Oe=Qe.length,Ve,Xe,er=Qe[Oe-1].edge,tr=er.l===Ie?er.r:er.l;++rrtr&&(tr=be.x),be.y>Je&&(Je=be.y),Qe.push(be.x),rr.push(be.y);else for(Oe=0;Oetr&&(tr=or),dr>Je&&(Je=dr),Qe.push(or),rr.push(dr)}var yr=tr-Xe,pr=Je-er;yr>pr?Je=er+yr:tr=Xe+pr;function _r(Tr,Pr,ut,Bt,dt,vr,Or,Vr){if(!(isNaN(ut)||isNaN(Bt)))if(Tr.leaf){var ft=Tr.x,Pt=Tr.y;if(ft!=null)if(y(ft-ut)+y(Pt-Bt)<.01)wr(Tr,Pr,ut,Bt,dt,vr,Or,Vr);else{var $t=Tr.point;Tr.x=Tr.y=Tr.point=null,wr(Tr,$t,ft,Pt,dt,vr,Or,Vr),wr(Tr,Pr,ut,Bt,dt,vr,Or,Vr)}else Tr.x=ut,Tr.y=Bt,Tr.point=Pr}else wr(Tr,Pr,ut,Bt,dt,vr,Or,Vr)}function wr(Tr,Pr,ut,Bt,dt,vr,Or,Vr){var ft=(dt+Or)*.5,Pt=(vr+Vr)*.5,$t=ut>=ft,bn=Bt>=Pt,In=bn<<1|$t;Tr.leaf=!1,Tr=Tr.nodes[In]||(Tr.nodes[In]=nx()),$t?dt=ft:Or=ft,bn?vr=Pt:Vr=Pt,_r(Tr,Pr,ut,Bt,dt,vr,Or,Vr)}var qr=nx();if(qr.add=function(Tr){_r(qr,Tr,+Fe(Tr,++Oe),+Ie(Tr,Oe),Xe,er,tr,Je)},qr.visit=function(Tr){ju(Tr,qr,Xe,er,tr,Je)},qr.find=function(Tr){return Bq(qr,Tr[0],Tr[1],Xe,er,tr,Je)},Oe=-1,z==null){for(;++OeZ||Ie>le||Qe=or,pr=B>=dr,_r=pr<<1|yr,wr=_r+4;_rB&&(Z=z.slice(B,Z),oe[le]?oe[le]+=Z:oe[++le]=Z),(G=G[0])===(W=W[0])?oe[le]?oe[le]+=W:oe[++le]=W:(oe[++le]=null,fe.push({i:le,x:Xi(G,W)})),B=Bd.lastIndex;return B=0&&!(G=e.interpolators[B](C,z)););return G}e.interpolators=[function(C,z){var B=typeof z;return(B==="string"?xn.has(z.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(z)?qd:ix:z instanceof xt?qd:Array.isArray(z)?ic:B==="object"&&isNaN(z)?ax:Xi)(C,z)}],e.interpolateArray=ic;function ic(C,z){var B=[],G=[],W=C.length,Z=z.length,le=Math.min(C.length,z.length),oe;for(oe=0;oe=0?C.slice(0,z):C,G=z>=0?C.slice(z+1):"in";return B=Uq.get(B)||ox,G=Hq.get(G)||N,Vq(G(B.apply(null,r.call(arguments,1))))};function Vq(C){return function(z){return z<=0?0:z>=1?1:C(z)}}function lx(C){return function(z){return 1-C(1-z)}}function sx(C){return function(z){return .5*(z<.5?C(2*z):2-C(2-2*z))}}function Gq(C){return C*C}function Yq(C){return C*C*C}function Wq(C){if(C<=0)return 0;if(C>=1)return 1;var z=C*C,B=z*C;return 4*(C<.5?B:3*(C-z)+B-.75)}function Xq(C){return function(z){return Math.pow(z,C)}}function Zq(C){return 1-Math.cos(C*J)}function Jq(C){return Math.pow(2,10*(C-1))}function Kq(C){return 1-Math.sqrt(1-C*C)}function Qq(C,z){var B;return arguments.length<2&&(z=.45),arguments.length?B=z/ar*Math.asin(1/C):(C=1,B=z/4),function(G){return 1+C*Math.pow(2,-10*G)*Math.sin((G-B)*ar/z)}}function $q(C){return C||(C=1.70158),function(z){return z*z*((C+1)*z-C)}}function jq(C){return C<1/2.75?7.5625*C*C:C<2/2.75?7.5625*(C-=1.5/2.75)*C+.75:C<2.5/2.75?7.5625*(C-=2.25/2.75)*C+.9375:7.5625*(C-=2.625/2.75)*C+.984375}e.interpolateHcl=eO;function eO(C,z){C=e.hcl(C),z=e.hcl(z);var B=C.h,G=C.c,W=C.l,Z=z.h-B,le=z.c-G,oe=z.l-W;return isNaN(le)&&(le=0,G=isNaN(G)?z.c:G),isNaN(Z)?(Z=0,B=isNaN(B)?z.h:B):Z>180?Z-=360:Z<-180&&(Z+=360),function(fe){return Gt(B+Z*fe,G+le*fe,W+oe*fe)+""}}e.interpolateHsl=rO;function rO(C,z){C=e.hsl(C),z=e.hsl(z);var B=C.h,G=C.s,W=C.l,Z=z.h-B,le=z.s-G,oe=z.l-W;return isNaN(le)&&(le=0,G=isNaN(G)?z.s:G),isNaN(Z)?(Z=0,B=isNaN(B)?z.h:B):Z>180?Z-=360:Z<-180&&(Z+=360),function(fe){return Ot(B+Z*fe,G+le*fe,W+oe*fe)+""}}e.interpolateLab=tO;function tO(C,z){C=e.lab(C),z=e.lab(z);var B=C.l,G=C.a,W=C.b,Z=z.l-B,le=z.a-G,oe=z.b-W;return function(fe){return Ma(B+Z*fe,G+le*fe,W+oe*fe)+""}}e.interpolateRound=ux;function ux(C,z){return z-=C,function(B){return Math.round(C+z*B)}}e.transform=function(C){var z=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(B){if(B!=null){z.setAttribute("transform",B);var G=z.transform.baseVal.consolidate()}return new fx(G?G.matrix:aO)})(C)};function fx(C){var z=[C.a,C.b],B=[C.c,C.d],G=vx(z),W=cx(z,B),Z=vx(nO(B,z,-W))||0;z[0]*B[1]180?z+=360:z-C>180&&(C+=360),G.push({i:B.push(Ts(B)+"rotate(",null,")")-2,x:Xi(C,z)})):z&&B.push(Ts(B)+"rotate("+z+")")}function lO(C,z,B,G){C!==z?G.push({i:B.push(Ts(B)+"skewX(",null,")")-2,x:Xi(C,z)}):z&&B.push(Ts(B)+"skewX("+z+")")}function sO(C,z,B,G){if(C[0]!==z[0]||C[1]!==z[1]){var W=B.push(Ts(B)+"scale(",null,",",null,")");G.push({i:W-4,x:Xi(C[0],z[0])},{i:W-2,x:Xi(C[1],z[1])})}else(z[0]!==1||z[1]!==1)&&B.push(Ts(B)+"scale("+z+")")}function hx(C,z){var B=[],G=[];return C=e.transform(C),z=e.transform(z),iO(C.translate,z.translate,B,G),oO(C.rotate,z.rotate,B,G),lO(C.skew,z.skew,B,G),sO(C.scale,z.scale,B,G),C=z=null,function(W){for(var Z=-1,le=G.length,oe;++Z0?Z=Je:(B.c=null,B.t=NaN,B=null,z.end({type:"end",alpha:Z=0})):Je>0&&(z.start({type:"start",alpha:Z=Je}),B=j0(C.tick)),C):Z},C.start=function(){var Je,or=Qe.length,dr=rr.length,yr=G[0],pr=G[1],_r,wr;for(Je=0;Je=0;)Z.push(be=xe[fe]),be.parent=oe,be.depth=oe.depth+1;B&&(oe.value=0),oe.children=xe}else B&&(oe.value=+B.call(G,oe,oe.depth)||0),delete oe.children;return wi(W,function(Fe){var Ie,Qe;C&&(Ie=Fe.children)&&Ie.sort(C),B&&(Qe=Fe.parent)&&(Qe.value+=Fe.value)}),le}return G.sort=function(W){return arguments.length?(C=W,G):C},G.children=function(W){return arguments.length?(z=W,G):z},G.value=function(W){return arguments.length?(B=W,G):B},G.revalue=function(W){return B&&(rf(W,function(Z){Z.children&&(Z.value=0)}),wi(W,function(Z){var le;Z.children||(Z.value=+B.call(G,Z,Z.depth)||0),(le=Z.parent)&&(le.value+=Z.value)})),W},G};function ef(C,z){return e.rebind(C,z,"sort","children","value"),C.nodes=C,C.links=MO,C}function rf(C,z){for(var B=[C];(C=B.pop())!=null;)if(z(C),(W=C.children)&&(G=W.length))for(var G,W;--G>=0;)B.push(W[G])}function wi(C,z){for(var B=[C],G=[];(C=B.pop())!=null;)if(G.push(C),(le=C.children)&&(Z=le.length))for(var W=-1,Z,le;++WW&&(W=oe),G.push(oe)}for(le=0;leG&&(B=z,G=W);return B}function LO(C){return C.reduce(RO,0)}function RO(C,z){return C+z[1]}e.layout.histogram=function(){var C=!0,z=Number,B=PO,G=DO;function W(Z,Ie){for(var oe=[],fe=Z.map(z,this),xe=B.call(this,fe,Ie),be=G.call(this,xe,fe,Ie),Fe,Ie=-1,Qe=fe.length,rr=be.length-1,Oe=C?1:1/Qe,Ve;++Ie0)for(Ie=-1;++Ie=xe[0]&&Ve<=xe[1]&&(Fe=oe[e.bisect(be,Ve,1,rr)-1],Fe.y+=Oe,Fe.push(Z[Ie]));return oe}return W.value=function(Z){return arguments.length?(z=Z,W):z},W.range=function(Z){return arguments.length?(B=Xr(Z),W):B},W.bins=function(Z){return arguments.length?(G=typeof Z=="number"?function(le){return yx(le,Z)}:Xr(Z),W):G},W.frequency=function(Z){return arguments.length?(C=!!Z,W):C},W};function DO(C,z){return yx(C,Math.ceil(Math.log(z.length)/Math.LN2+1))}function yx(C,z){for(var B=-1,G=+C[0],W=(C[1]-G)/z,Z=[];++B<=z;)Z[B]=W*B+G;return Z}function PO(C){return[e.min(C),e.max(C)]}e.layout.pack=function(){var C=e.layout.hierarchy().sort(FO),z=0,B=[1,1],G;function W(Z,le){var oe=C.call(this,Z,le),fe=oe[0],xe=B[0],be=B[1],Fe=G==null?Math.sqrt:typeof G=="function"?G:function(){return G};if(fe.x=fe.y=0,wi(fe,function(Qe){Qe.r=+Fe(Qe.value)}),wi(fe,bx),z){var Ie=z*(G?1:Math.max(2*fe.r/xe,2*fe.r/be))/2;wi(fe,function(Qe){Qe.r+=Ie}),wi(fe,bx),wi(fe,function(Qe){Qe.r-=Ie})}return _x(fe,xe/2,be/2,G?1:1/Math.max(2*fe.r/xe,2*fe.r/be)),oe}return W.size=function(Z){return arguments.length?(B=Z,W):B},W.radius=function(Z){return arguments.length?(G=Z==null||typeof Z=="function"?Z:+Z,W):G},W.padding=function(Z){return arguments.length?(z=+Z,W):z},ef(W,C)};function FO(C,z){return C.value-z.value}function Vd(C,z){var B=C._pack_next;C._pack_next=z,z._pack_prev=C,z._pack_next=B,B._pack_prev=z}function mx(C,z){C._pack_next=z,z._pack_prev=C}function xx(C,z){var B=z.x-C.x,G=z.y-C.y,W=C.r+z.r;return .999*W*W>B*B+G*G}function bx(C){if(!(z=C.children)||!(Ie=z.length))return;var z,B=1/0,G=-1/0,W=1/0,Z=-1/0,le,oe,fe,xe,be,Fe,Ie;function Qe(Je){B=Math.min(Je.x-Je.r,B),G=Math.max(Je.x+Je.r,G),W=Math.min(Je.y-Je.r,W),Z=Math.max(Je.y+Je.r,Z)}if(z.forEach(IO),le=z[0],le.x=-le.r,le.y=0,Qe(le),Ie>1&&(oe=z[1],oe.x=oe.r,oe.y=0,Qe(oe),Ie>2))for(fe=z[2],wx(le,oe,fe),Qe(fe),Vd(le,fe),le._pack_prev=fe,Vd(fe,oe),oe=le._pack_next,xe=3;xeVe.x&&(Ve=or),or.depth>Xe.depth&&(Xe=or)});var er=z(Oe,Ve)/2-Oe.x,tr=B[0]/(Ve.x+z(Ve,Oe)/2+er),Je=B[1]/(Xe.depth||1);rf(Qe,function(or){or.x=(or.x+er)*tr,or.y=or.depth*Je})}return Ie}function Z(be){for(var Fe={A:null,children:[be]},Ie=[Fe],Qe;(Qe=Ie.pop())!=null;)for(var rr=Qe.children,Oe,Ve=0,Xe=rr.length;Ve0&&(zO(OO(Oe,be,Ie),be,or),Xe+=or,er+=or),tr+=Oe.m,Xe+=Qe.m,Je+=Ve.m,er+=rr.m;Oe&&!Yd(rr)&&(rr.t=Oe,rr.m+=tr-er),Qe&&!Gd(Ve)&&(Ve.t=Qe,Ve.m+=Xe-Je,Ie=be)}return Ie}function xe(be){be.x*=B[0],be.y=be.depth*B[1]}return W.separation=function(be){return arguments.length?(z=be,W):z},W.size=function(be){return arguments.length?(G=(B=be)==null?xe:null,W):G?null:B},W.nodeSize=function(be){return arguments.length?(G=(B=be)==null?null:xe,W):G?B:null},ef(W,C)};function Mx(C,z){return C.parent==z.parent?1:2}function Gd(C){var z=C.children;return z.length?z[0]:C.t}function Yd(C){var z=C.children,B;return(B=z.length)?z[B-1]:C.t}function zO(C,z,B){var G=B/(z.i-C.i);z.c-=G,z.s+=B,C.c+=G,z.z+=B,z.m+=B}function qO(C){for(var z=0,B=0,G=C.children,W=G.length,Z;--W>=0;)Z=G[W],Z.z+=z,Z.m+=z,z+=Z.s+(B+=Z.c)}function OO(C,z,B){return C.a.parent===z.parent?C.a:B}e.layout.cluster=function(){var C=e.layout.hierarchy().sort(null).value(null),z=Mx,B=[1,1],G=!1;function W(Z,le){var oe=C.call(this,Z,le),fe=oe[0],xe,be=0;wi(fe,function(Oe){var Ve=Oe.children;Ve&&Ve.length?(Oe.x=UO(Ve),Oe.y=BO(Ve)):(Oe.x=xe?be+=z(Oe,xe):0,Oe.y=0,xe=Oe)});var Fe=Tx(fe),Ie=Ax(fe),Qe=Fe.x-z(Fe,Ie)/2,rr=Ie.x+z(Ie,Fe)/2;return wi(fe,G?function(Oe){Oe.x=(Oe.x-fe.x)*B[0],Oe.y=(fe.y-Oe.y)*B[1]}:function(Oe){Oe.x=(Oe.x-Qe)/(rr-Qe)*B[0],Oe.y=(1-(fe.y?Oe.y/fe.y:1))*B[1]}),oe}return W.separation=function(Z){return arguments.length?(z=Z,W):z},W.size=function(Z){return arguments.length?(G=(B=Z)==null,W):G?null:B},W.nodeSize=function(Z){return arguments.length?(G=(B=Z)!=null,W):G?B:null},ef(W,C)};function BO(C){return 1+e.max(C,function(z){return z.y})}function UO(C){return C.reduce(function(z,B){return z+B.x},0)/C.length}function Tx(C){var z=C.children;return z&&z.length?Tx(z[0]):C}function Ax(C){var z=C.children,B;return z&&(B=z.length)?Ax(z[B-1]):C}e.layout.treemap=function(){var C=e.layout.hierarchy(),z=Math.round,B=[1,1],G=null,W=Wd,Z=!1,le,oe="squarify",fe=.5*(1+Math.sqrt(5));function xe(Oe,Ve){for(var Xe=-1,er=Oe.length,tr,Je;++Xe0;)er.push(Je=tr[pr-1]),er.area+=Je.area,oe!=="squarify"||(dr=Ie(er,yr))<=or?(tr.pop(),or=dr):(er.area-=er.pop().area,Qe(er,yr,Xe,!1),yr=Math.min(Xe.dx,Xe.dy),er.length=er.area=0,or=1/0);er.length&&(Qe(er,yr,Xe,!0),er.length=er.area=0),Ve.forEach(be)}}function Fe(Oe){var Ve=Oe.children;if(Ve&&Ve.length){var Xe=W(Oe),er=Ve.slice(),tr,Je=[];for(xe(er,Xe.dx*Xe.dy/Oe.value),Je.area=0;tr=er.pop();)Je.push(tr),Je.area+=tr.area,tr.z!=null&&(Qe(Je,tr.z?Xe.dx:Xe.dy,Xe,!er.length),Je.length=Je.area=0);Ve.forEach(Fe)}}function Ie(Oe,Ve){for(var Xe=Oe.area,er,tr=0,Je=1/0,or=-1,dr=Oe.length;++ortr&&(tr=er));return Xe*=Xe,Ve*=Ve,Xe?Math.max(Ve*tr*fe/Xe,Xe/(Ve*Je*fe)):1/0}function Qe(Oe,Ve,Xe,er){var tr=-1,Je=Oe.length,or=Xe.x,dr=Xe.y,yr=Ve?z(Oe.area/Ve):0,pr;if(Ve==Xe.dx){for((er||yr>Xe.dy)&&(yr=Xe.dy);++trXe.dx)&&(yr=Xe.dx);++tr1);return C+z*G*Math.sqrt(-2*Math.log(Z)/Z)}},logNormal:function(){var C=e.random.normal.apply(e,arguments);return function(){return Math.exp(C())}},bates:function(C){var z=e.random.irwinHall(C);return function(){return z()/C}},irwinHall:function(C){return function(){for(var z=0,B=0;B2?GO:HO,xe=G?fO:uO;return W=fe(C,z,xe,B),Z=fe(z,C,xe,pl),oe}function oe(fe){return W(fe)}return oe.invert=function(fe){return Z(fe)},oe.domain=function(fe){return arguments.length?(C=fe.map(Number),le()):C},oe.range=function(fe){return arguments.length?(z=fe,le()):z},oe.rangeRound=function(fe){return oe.range(fe).interpolate(ux)},oe.clamp=function(fe){return arguments.length?(G=fe,le()):G},oe.interpolate=function(fe){return arguments.length?(B=fe,le()):B},oe.ticks=function(fe){return Jd(C,fe)},oe.tickFormat=function(fe,xe){return d3_scale_linearTickFormat(C,fe,xe)},oe.nice=function(fe){return Lx(C,fe),le()},oe.copy=function(){return Cx(C,z,B,G)},le()}function Ex(C,z){return e.rebind(C,z,"range","rangeRound","interpolate","clamp")}function Lx(C,z){return Xd(C,Sx(Zd(C,z)[2])),Xd(C,Sx(Zd(C,z)[2])),C}function Zd(C,z){z==null&&(z=10);var B=oc(C),G=B[1]-B[0],W=Math.pow(10,Math.floor(Math.log(G/z)/Math.LN10)),Z=z/G*W;return Z<=.15?W*=10:Z<=.35?W*=5:Z<=.75&&(W*=2),B[0]=Math.ceil(B[0]/W)*W,B[1]=Math.floor(B[1]/W)*W+W*.5,B[2]=W,B}function Jd(C,z){return e.range.apply(e,Zd(C,z))}var YO={s:1,g:1,p:1,r:1,e:1};function Rx(C){return-Math.floor(Math.log(C)/Math.LN10+.01)}function Eue(C,z){var B=Rx(z[2]);return C in YO?Math.abs(B-Rx(Math.max(y(z[0]),y(z[1]))))+ +(C!=="e"):B-(C==="%")*2}e.scale.log=function(){return Dx(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Dx(C,z,B,G){function W(oe){return(B?Math.log(oe<0?0:oe):-Math.log(oe>0?0:-oe))/Math.log(z)}function Z(oe){return B?Math.pow(z,oe):-Math.pow(z,-oe)}function le(oe){return C(W(oe))}return le.invert=function(oe){return Z(C.invert(oe))},le.domain=function(oe){return arguments.length?(B=oe[0]>=0,C.domain((G=oe.map(Number)).map(W)),le):G},le.base=function(oe){return arguments.length?(z=+oe,C.domain(G.map(W)),le):z},le.nice=function(){var oe=Xd(G.map(W),B?Math:WO);return C.domain(oe),G=oe.map(Z),le},le.ticks=function(){var oe=oc(G),fe=[],xe=oe[0],be=oe[1],Fe=Math.floor(W(xe)),Ie=Math.ceil(W(be)),Qe=z%1?2:z;if(isFinite(Ie-Fe)){if(B){for(;Fe0;rr--)fe.push(Z(Fe)*rr);for(Fe=0;fe[Fe]be;Ie--);fe=fe.slice(Fe,Ie)}return fe},le.copy=function(){return Dx(C.copy(),z,B,G)},Ex(le,C)}var WO={floor:function(C){return-Math.ceil(-C)},ceil:function(C){return-Math.floor(-C)}};e.scale.pow=function(){return Px(e.scale.linear(),1,[0,1])};function Px(C,z,B){var G=sc(z),W=sc(1/z);function Z(le){return C(G(le))}return Z.invert=function(le){return W(C.invert(le))},Z.domain=function(le){return arguments.length?(C.domain((B=le.map(Number)).map(G)),Z):B},Z.ticks=function(le){return Jd(B,le)},Z.tickFormat=function(le,oe){return d3_scale_linearTickFormat(B,le,oe)},Z.nice=function(le){return Z.domain(Lx(B,le))},Z.exponent=function(le){return arguments.length?(G=sc(z=le),W=sc(1/z),C.domain(B.map(G)),Z):z},Z.copy=function(){return Px(C.copy(),z,B)},Ex(Z,C)}function sc(C){return function(z){return z<0?-Math.pow(-z,C):Math.pow(z,C)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Fx([],{t:"range",a:[[]]})};function Fx(C,z){var B,G,W;function Z(oe){return G[((B.get(oe)||(z.t==="range"?B.set(oe,C.push(oe)):NaN))-1)%G.length]}function le(oe,fe){return e.range(C.length).map(function(xe){return oe+fe*xe})}return Z.domain=function(oe){if(!arguments.length)return C;C=[],B=new x;for(var fe=-1,xe=oe.length,be;++fe0?B[Z-1]:C[0],ZIe?0:1;if(be=se)return fe(be,rr)+(xe?fe(xe,1-rr):"")+"Z";var Oe,Ve,Xe,er,tr=0,Je=0,or,dr,yr,pr,_r,wr,qr,Tr,Pr=[];if((er=(+le.apply(this,arguments)||0)/2)&&(Xe=G===uc?Math.sqrt(xe*xe+be*be):+G.apply(this,arguments),rr||(Je*=-1),be&&(Je=fr(Xe/be*Math.sin(er))),xe&&(tr=fr(Xe/xe*Math.sin(er)))),be){or=be*Math.cos(Fe+Je),dr=be*Math.sin(Fe+Je),yr=be*Math.cos(Ie-Je),pr=be*Math.sin(Ie-Je);var ut=Math.abs(Ie-Fe-2*Je)<=Ye?0:1;if(Je&&fc(or,dr,yr,pr)===rr^ut){var Bt=(Fe+Ie)/2;or=be*Math.cos(Bt),dr=be*Math.sin(Bt),yr=pr=null}}else or=dr=0;if(xe){_r=xe*Math.cos(Ie-tr),wr=xe*Math.sin(Ie-tr),qr=xe*Math.cos(Fe+tr),Tr=xe*Math.sin(Fe+tr);var dt=Math.abs(Fe-Ie+2*tr)<=Ye?0:1;if(tr&&fc(_r,wr,qr,Tr)===1-rr^dt){var vr=(Fe+Ie)/2;_r=xe*Math.cos(vr),wr=xe*Math.sin(vr),qr=Tr=null}}else _r=wr=0;if(Qe>De&&(Oe=Math.min(Math.abs(be-xe)/2,+B.apply(this,arguments)))>.001){Ve=xe0?0:1}function cc(C,z,B,G,W){var Z=C[0]-z[0],le=C[1]-z[1],oe=(W?G:-G)/Math.sqrt(Z*Z+le*le),fe=oe*le,xe=-oe*Z,be=C[0]+fe,Fe=C[1]+xe,Ie=z[0]+fe,Qe=z[1]+xe,rr=(be+Ie)/2,Oe=(Fe+Qe)/2,Ve=Ie-be,Xe=Qe-Fe,er=Ve*Ve+Xe*Xe,tr=B-G,Je=be*Qe-Ie*Fe,or=(Xe<0?-1:1)*Math.sqrt(Math.max(0,tr*tr*er-Je*Je)),dr=(Je*Xe-Ve*or)/er,yr=(-Je*Ve-Xe*or)/er,pr=(Je*Xe+Ve*or)/er,_r=(-Je*Ve+Xe*or)/er,wr=dr-rr,qr=yr-Oe,Tr=pr-rr,Pr=_r-Oe;return wr*wr+qr*qr>Tr*Tr+Pr*Pr&&(dr=pr,yr=_r),[[dr-fe,yr-xe],[dr*B/tr,yr*B/tr]]}function Ux(){return!0}function Hx(C){var z=xs,B=Zu,G=Ux,W=Xa,Z=W.key,le=.7;function oe(fe){var xe=[],be=[],Fe=-1,Ie=fe.length,Qe,rr=Xr(z),Oe=Xr(B);function Ve(){xe.push("M",W(C(be),le))}for(;++Fe1?C.join("L"):C+"Z"}function Vx(C){return C.join("L")+"Z"}function rB(C){for(var z=0,B=C.length,G=C[0],W=[G[0],",",G[1]];++z1&&W.push("H",G[0]),W.join("")}function Qd(C){for(var z=0,B=C.length,G=C[0],W=[G[0],",",G[1]];++z1){oe=z[1],Z=C[fe],fe++,G+="C"+(W[0]+le[0])+","+(W[1]+le[1])+","+(Z[0]-oe[0])+","+(Z[1]-oe[1])+","+Z[0]+","+Z[1];for(var xe=2;xe9&&(Z=B*3/Math.sqrt(Z),le[oe]=Z*G,le[oe+1]=Z*W));for(oe=-1;++oe<=fe;)Z=(C[Math.min(fe,oe+1)][0]-C[Math.max(0,oe-1)][0])/(6*(1+le[oe]*le[oe])),z.push([Z||0,le[oe]*Z||0]);return z}function fB(C){return C.length<3?Xa(C):C[0]+vc(C,uB(C))}e.svg.line.radial=function(){var C=Hx(Xx);return C.radius=C.x,delete C.x,C.angle=C.y,delete C.y,C};function Xx(C){for(var z,B=-1,G=C.length,W,Z;++BYe)+",1 "+Fe}function xe(be,Fe,Ie,Qe){return"Q 0,0 "+Qe}return Z.radius=function(be){return arguments.length?(B=Xr(be),Z):B},Z.source=function(be){return arguments.length?(C=Xr(be),Z):C},Z.target=function(be){return arguments.length?(z=Xr(be),Z):z},Z.startAngle=function(be){return arguments.length?(G=Xr(be),Z):G},Z.endAngle=function(be){return arguments.length?(W=Xr(be),Z):W},Z};function cB(C){return C.radius}e.svg.diagonal=function(){var C=Jx,z=Kx,B=Qx;function G(W,Z){var le=C.call(this,W,Z),oe=z.call(this,W,Z),fe=(le.y+oe.y)/2,xe=[le,{x:le.x,y:fe},{x:oe.x,y:fe},oe];return xe=xe.map(B),"M"+xe[0]+"C"+xe[1]+" "+xe[2]+" "+xe[3]}return G.source=function(W){return arguments.length?(C=Xr(W),G):C},G.target=function(W){return arguments.length?(z=Xr(W),G):z},G.projection=function(W){return arguments.length?(B=W,G):B},G};function Qx(C){return[C.x,C.y]}e.svg.diagonal.radial=function(){var C=e.svg.diagonal(),z=Qx,B=C.projection;return C.projection=function(G){return arguments.length?B(vB(z=G)):z},C};function vB(C){return function(){var z=C.apply(this,arguments),B=z[0],G=z[1]-J;return[B*Math.cos(G),B*Math.sin(G)]}}e.svg.symbol=function(){var C=dB,z=hB;function B(G,W){return(jx.get(C.call(this,G,W))||$x)(z.call(this,G,W))}return B.type=function(G){return arguments.length?(C=Xr(G),B):C},B.size=function(G){return arguments.length?(z=Xr(G),B):z},B};function hB(){return 64}function dB(){return"circle"}function $x(C){var z=Math.sqrt(C/Ye);return"M0,"+z+"A"+z+","+z+" 0 1,1 0,"+-z+"A"+z+","+z+" 0 1,1 0,"+z+"Z"}var jx=e.map({circle:$x,cross:function(C){var z=Math.sqrt(C/5)/2;return"M"+-3*z+","+-z+"H"+-z+"V"+-3*z+"H"+z+"V"+-z+"H"+3*z+"V"+z+"H"+z+"V"+3*z+"H"+-z+"V"+z+"H"+-3*z+"Z"},diamond:function(C){var z=Math.sqrt(C/(2*eb)),B=z*eb;return"M0,"+-z+"L"+B+",0 0,"+z+" "+-B+",0Z"},square:function(C){var z=Math.sqrt(C)/2;return"M"+-z+","+-z+"L"+z+","+-z+" "+z+","+z+" "+-z+","+z+"Z"},"triangle-down":function(C){var z=Math.sqrt(C/hc),B=z*hc/2;return"M0,"+B+"L"+z+","+-B+" "+-z+","+-B+"Z"},"triangle-up":function(C){var z=Math.sqrt(C/hc),B=z*hc/2;return"M0,"+-B+"L"+z+","+B+" "+-z+","+B+"Z"}});e.svg.symbolTypes=jx.keys();var hc=Math.sqrt(3),eb=Math.tan(30*ae);ee.transition=function(C){for(var z=yl||++tb,B=np(C),G=[],W,Z,le=pc||{time:Date.now(),ease:Wq,delay:0,duration:250},oe=-1,fe=this.length;++oe0;)Fe[--er].call(C,Xe);if(Ve>=1)return le.event&&le.event.end.call(C,C.__data__,z),--Z.count?delete Z[G]:delete C[B],1}le||(oe=W.time,fe=j0(Ie,0,oe),le=Z[G]={tween:new x,time:oe,timer:fe,delay:W.delay,duration:W.duration,ease:W.ease,index:z},W=null,++Z.count)}e.svg.axis=function(){var C=e.scale.linear(),z=nb,B=6,G=6,W=3,Z=[10],le=null,oe;function fe(xe){xe.each(function(){var be=e.select(this),Fe=this.__chart__||C,Ie=this.__chart__=C.copy(),Qe=le==null?Ie.ticks?Ie.ticks.apply(Ie,Z):Ie.domain():le,rr=oe==null?Ie.tickFormat?Ie.tickFormat.apply(Ie,Z):N:oe,Oe=be.selectAll(".tick").data(Qe,Ie),Ve=Oe.enter().insert("g",".domain").attr("class","tick").style("opacity",De),Xe=e.transition(Oe.exit()).style("opacity",De).remove(),er=e.transition(Oe.order()).style("opacity",1),tr=Math.max(B,0)+W,Je,or=lc(Ie),dr=be.selectAll(".domain").data([0]),yr=(dr.enter().append("path").attr("class","domain"),e.transition(dr));Ve.append("line"),Ve.append("text");var pr=Ve.select("line"),_r=er.select("line"),wr=Oe.select("text").text(rr),qr=Ve.select("text"),Tr=er.select("text"),Pr=z==="top"||z==="left"?-1:1,ut,Bt,dt,vr;if(z==="bottom"||z==="top"?(Je=yB,ut="x",dt="y",Bt="x2",vr="y2",wr.attr("dy",Pr<0?"0em":".71em").style("text-anchor","middle"),yr.attr("d","M"+or[0]+","+Pr*G+"V0H"+or[1]+"V"+Pr*G)):(Je=mB,ut="y",dt="x",Bt="y2",vr="x2",wr.attr("dy",".32em").style("text-anchor",Pr<0?"end":"start"),yr.attr("d","M"+Pr*G+","+or[0]+"H0V"+or[1]+"H"+Pr*G)),pr.attr(vr,Pr*B),qr.attr(dt,Pr*tr),_r.attr(Bt,0).attr(vr,Pr*B),Tr.attr(ut,0).attr(dt,Pr*tr),Ie.rangeBand){var Or=Ie,Vr=Or.rangeBand()/2;Fe=Ie=function(ft){return Or(ft)+Vr}}else Fe.rangeBand?Fe=Ie:Xe.call(Je,Ie,Fe);Ve.call(Je,Fe,Ie),er.call(Je,Ie,Ie)})}return fe.scale=function(xe){return arguments.length?(C=xe,fe):C},fe.orient=function(xe){return arguments.length?(z=xe in gB?xe+"":nb,fe):z},fe.ticks=function(){return arguments.length?(Z=t(arguments),fe):Z},fe.tickValues=function(xe){return arguments.length?(le=xe,fe):le},fe.tickFormat=function(xe){return arguments.length?(oe=xe,fe):oe},fe.tickSize=function(xe){var be=arguments.length;return be?(B=+xe,G=+arguments[be-1],fe):B},fe.innerTickSize=function(xe){return arguments.length?(B=+xe,fe):B},fe.outerTickSize=function(xe){return arguments.length?(G=+xe,fe):G},fe.tickPadding=function(xe){return arguments.length?(W=+xe,fe):W},fe.tickSubdivide=function(){return arguments.length&&fe},fe};var nb="bottom",gB={top:1,right:1,bottom:1,left:1};function yB(C,z,B){C.attr("transform",function(G){var W=z(G);return"translate("+(isFinite(W)?W:B(G))+",0)"})}function mB(C,z,B){C.attr("transform",function(G){var W=z(G);return"translate(0,"+(isFinite(W)?W:B(G))+")"})}e.svg.brush=function(){var C=j(be,"brushstart","brush","brushend"),z=null,B=null,G=[0,0],W=[0,0],Z,le,oe=!0,fe=!0,xe=ap[0];function be(Oe){Oe.each(function(){var Ve=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",rr).on("touchstart.brush",rr),Xe=Ve.selectAll(".background").data([0]);Xe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ve.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var er=Ve.selectAll(".resize").data(xe,N);er.exit().remove(),er.enter().append("g").attr("class",function(dr){return"resize "+dr}).style("cursor",function(dr){return xB[dr]}).append("rect").attr("x",function(dr){return/[ew]$/.test(dr)?-3:null}).attr("y",function(dr){return/^[ns]/.test(dr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),er.style("display",be.empty()?"none":null);var tr=e.transition(Ve),Je=e.transition(Xe),or;z&&(or=lc(z),Je.attr("x",or[0]).attr("width",or[1]-or[0]),Ie(tr)),B&&(or=lc(B),Je.attr("y",or[0]).attr("height",or[1]-or[0]),Qe(tr)),Fe(tr)})}be.event=function(Oe){Oe.each(function(){var Ve=C.of(this,arguments),Xe={x:G,y:W,i:Z,j:le},er=this.__chart__||Xe;this.__chart__=Xe,yl?e.select(this).transition().each("start.brush",function(){Z=er.i,le=er.j,G=er.x,W=er.y,Ve({type:"brushstart"})}).tween("brush:brush",function(){var tr=ic(G,Xe.x),Je=ic(W,Xe.y);return Z=le=null,function(or){G=Xe.x=tr(or),W=Xe.y=Je(or),Ve({type:"brush",mode:"resize"})}}).each("end.brush",function(){Z=Xe.i,le=Xe.j,Ve({type:"brush",mode:"resize"}),Ve({type:"brushend"})}):(Ve({type:"brushstart"}),Ve({type:"brush",mode:"resize"}),Ve({type:"brushend"}))})};function Fe(Oe){Oe.selectAll(".resize").attr("transform",function(Ve){return"translate("+G[+/e$/.test(Ve)]+","+W[+/^s/.test(Ve)]+")"})}function Ie(Oe){Oe.select(".extent").attr("x",G[0]),Oe.selectAll(".extent,.n>rect,.s>rect").attr("width",G[1]-G[0])}function Qe(Oe){Oe.select(".extent").attr("y",W[0]),Oe.selectAll(".extent,.e>rect,.w>rect").attr("height",W[1]-W[0])}function rr(){var Oe=this,Ve=e.select(e.event.target),Xe=C.of(Oe,arguments),er=e.select(Oe),tr=Ve.datum(),Je=!/^(n|s)$/.test(tr)&&z,or=!/^(e|w)$/.test(tr)&&B,dr=Ve.classed("extent"),yr=We(Oe),pr,_r=e.mouse(Oe),wr,qr=e.select(o(Oe)).on("keydown.brush",ut).on("keyup.brush",Bt);if(e.event.changedTouches?qr.on("touchmove.brush",dt).on("touchend.brush",Or):qr.on("mousemove.brush",dt).on("mouseup.brush",Or),er.interrupt().selectAll("*").interrupt(),dr)_r[0]=G[0]-_r[0],_r[1]=W[0]-_r[1];else if(tr){var Tr=+/w$/.test(tr),Pr=+/^n/.test(tr);wr=[G[1-Tr]-_r[0],W[1-Pr]-_r[1]],_r[0]=G[Tr],_r[1]=W[Pr]}else e.event.altKey&&(pr=_r.slice());er.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ve.style("cursor")),Xe({type:"brushstart"}),dt();function ut(){e.event.keyCode==32&&(dr||(pr=null,_r[0]-=G[1],_r[1]-=W[1],dr=2),X())}function Bt(){e.event.keyCode==32&&dr==2&&(_r[0]+=G[1],_r[1]+=W[1],dr=0,X())}function dt(){var Vr=e.mouse(Oe),ft=!1;wr&&(Vr[0]+=wr[0],Vr[1]+=wr[1]),dr||(e.event.altKey?(pr||(pr=[(G[0]+G[1])/2,(W[0]+W[1])/2]),_r[0]=G[+(Vr[0]{(function(e,r){typeof _c=="object"&&typeof sb!="undefined"?r(_c):(e=e||self,r(e.d3=e.d3||{}))})(_c,function(e){"use strict";var r=new Date,t=new Date;function n(ge,we,Me,me){function Re(ce){return ge(ce=arguments.length===0?new Date:new Date(+ce)),ce}return Re.floor=function(ce){return ge(ce=new Date(+ce)),ce},Re.ceil=function(ce){return ge(ce=new Date(ce-1)),we(ce,1),ge(ce),ce},Re.round=function(ce){var he=Re(ce),ye=Re.ceil(ce);return ce-he0))return Ce;do Ce.push(ze=new Date(+ce)),we(ce,ye),ge(ce);while(ze=he)for(;ge(he),!ce(he);)he.setTime(he-1)},function(he,ye){if(he>=he)if(ye<0)for(;++ye<=0;)for(;we(he,-1),!ce(he););else for(;--ye>=0;)for(;we(he,1),!ce(he););})},Me&&(Re.count=function(ce,he){return r.setTime(+ce),t.setTime(+he),ge(r),ge(t),Math.floor(Me(r,t))},Re.every=function(ce){return ce=Math.floor(ce),!isFinite(ce)||!(ce>0)?null:ce>1?Re.filter(me?function(he){return me(he)%ce===0}:function(he){return Re.count(0,he)%ce===0}):Re}),Re}var a=n(function(){},function(ge,we){ge.setTime(+ge+we)},function(ge,we){return we-ge});a.every=function(ge){return ge=Math.floor(ge),!isFinite(ge)||!(ge>0)?null:ge>1?n(function(we){we.setTime(Math.floor(we/ge)*ge)},function(we,Me){we.setTime(+we+Me*ge)},function(we,Me){return(Me-we)/ge}):a};var o=a.range,i=1e3,l=6e4,u=36e5,s=864e5,f=6048e5,v=n(function(ge){ge.setTime(ge-ge.getMilliseconds())},function(ge,we){ge.setTime(+ge+we*i)},function(ge,we){return(we-ge)/i},function(ge){return ge.getUTCSeconds()}),p=v.range,b=n(function(ge){ge.setTime(ge-ge.getMilliseconds()-ge.getSeconds()*i)},function(ge,we){ge.setTime(+ge+we*l)},function(ge,we){return(we-ge)/l},function(ge){return ge.getMinutes()}),m=b.range,w=n(function(ge){ge.setTime(ge-ge.getMilliseconds()-ge.getSeconds()*i-ge.getMinutes()*l)},function(ge,we){ge.setTime(+ge+we*u)},function(ge,we){return(we-ge)/u},function(ge){return ge.getHours()}),M=w.range,y=n(function(ge){ge.setHours(0,0,0,0)},function(ge,we){ge.setDate(ge.getDate()+we)},function(ge,we){return(we-ge-(we.getTimezoneOffset()-ge.getTimezoneOffset())*l)/s},function(ge){return ge.getDate()-1}),k=y.range;function S(ge){return n(function(we){we.setDate(we.getDate()-(we.getDay()+7-ge)%7),we.setHours(0,0,0,0)},function(we,Me){we.setDate(we.getDate()+Me*7)},function(we,Me){return(Me-we-(Me.getTimezoneOffset()-we.getTimezoneOffset())*l)/f})}var x=S(0),T=S(1),d=S(2),_=S(3),g=S(4),c=S(5),A=S(6),h=x.range,R=T.range,E=d.range,D=_.range,N=g.range,I=c.range,F=A.range,L=n(function(ge){ge.setDate(1),ge.setHours(0,0,0,0)},function(ge,we){ge.setMonth(ge.getMonth()+we)},function(ge,we){return we.getMonth()-ge.getMonth()+(we.getFullYear()-ge.getFullYear())*12},function(ge){return ge.getMonth()}),P=L.range,O=n(function(ge){ge.setMonth(0,1),ge.setHours(0,0,0,0)},function(ge,we){ge.setFullYear(ge.getFullYear()+we)},function(ge,we){return we.getFullYear()-ge.getFullYear()},function(ge){return ge.getFullYear()});O.every=function(ge){return!isFinite(ge=Math.floor(ge))||!(ge>0)?null:n(function(we){we.setFullYear(Math.floor(we.getFullYear()/ge)*ge),we.setMonth(0,1),we.setHours(0,0,0,0)},function(we,Me){we.setFullYear(we.getFullYear()+Me*ge)})};var U=O.range,X=n(function(ge){ge.setUTCSeconds(0,0)},function(ge,we){ge.setTime(+ge+we*l)},function(ge,we){return(we-ge)/l},function(ge){return ge.getUTCMinutes()}),$=X.range,j=n(function(ge){ge.setUTCMinutes(0,0,0)},function(ge,we){ge.setTime(+ge+we*u)},function(ge,we){return(we-ge)/u},function(ge){return ge.getUTCHours()}),Y=j.range,q=n(function(ge){ge.setUTCHours(0,0,0,0)},function(ge,we){ge.setUTCDate(ge.getUTCDate()+we)},function(ge,we){return(we-ge)/s},function(ge){return ge.getUTCDate()-1}),K=q.range;function ne(ge){return n(function(we){we.setUTCDate(we.getUTCDate()-(we.getUTCDay()+7-ge)%7),we.setUTCHours(0,0,0,0)},function(we,Me){we.setUTCDate(we.getUTCDate()+Me*7)},function(we,Me){return(Me-we)/f})}var Q=ne(0),ie=ne(1),ee=ne(2),V=ne(3),re=ne(4),H=ne(5),te=ne(6),ue=Q.range,de=ie.range,ke=ee.range,Ae=V.range,ve=re.range,Te=H.range,Ee=te.range,Pe=n(function(ge){ge.setUTCDate(1),ge.setUTCHours(0,0,0,0)},function(ge,we){ge.setUTCMonth(ge.getUTCMonth()+we)},function(ge,we){return we.getUTCMonth()-ge.getUTCMonth()+(we.getUTCFullYear()-ge.getUTCFullYear())*12},function(ge){return ge.getUTCMonth()}),Se=Pe.range,Ne=n(function(ge){ge.setUTCMonth(0,1),ge.setUTCHours(0,0,0,0)},function(ge,we){ge.setUTCFullYear(ge.getUTCFullYear()+we)},function(ge,we){return we.getUTCFullYear()-ge.getUTCFullYear()},function(ge){return ge.getUTCFullYear()});Ne.every=function(ge){return!isFinite(ge=Math.floor(ge))||!(ge>0)?null:n(function(we){we.setUTCFullYear(Math.floor(we.getUTCFullYear()/ge)*ge),we.setUTCMonth(0,1),we.setUTCHours(0,0,0,0)},function(we,Me){we.setUTCFullYear(we.getUTCFullYear()+Me*ge)})};var Be=Ne.range;e.timeDay=y,e.timeDays=k,e.timeFriday=c,e.timeFridays=I,e.timeHour=w,e.timeHours=M,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=o,e.timeMinute=b,e.timeMinutes=m,e.timeMonday=T,e.timeMondays=R,e.timeMonth=L,e.timeMonths=P,e.timeSaturday=A,e.timeSaturdays=F,e.timeSecond=v,e.timeSeconds=p,e.timeSunday=x,e.timeSundays=h,e.timeThursday=g,e.timeThursdays=N,e.timeTuesday=d,e.timeTuesdays=E,e.timeWednesday=_,e.timeWednesdays=D,e.timeWeek=x,e.timeWeeks=h,e.timeYear=O,e.timeYears=U,e.utcDay=q,e.utcDays=K,e.utcFriday=H,e.utcFridays=Te,e.utcHour=j,e.utcHours=Y,e.utcMillisecond=a,e.utcMilliseconds=o,e.utcMinute=X,e.utcMinutes=$,e.utcMonday=ie,e.utcMondays=de,e.utcMonth=Pe,e.utcMonths=Se,e.utcSaturday=te,e.utcSaturdays=Ee,e.utcSecond=v,e.utcSeconds=p,e.utcSunday=Q,e.utcSundays=ue,e.utcThursday=re,e.utcThursdays=ve,e.utcTuesday=ee,e.utcTuesdays=ke,e.utcWednesday=V,e.utcWednesdays=Ae,e.utcWeek=Q,e.utcWeeks=ue,e.utcYear=Ne,e.utcYears=Be,Object.defineProperty(e,"__esModule",{value:!0})})});var ks=pe((wc,ub)=>{(function(e,r){typeof wc=="object"&&typeof ub!="undefined"?r(wc,ip()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(wc,function(e,r){"use strict";function t(_e){if(0<=_e.y&&_e.y<100){var De=new Date(-1,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L);return De.setFullYear(_e.y),De}return new Date(_e.y,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L)}function n(_e){if(0<=_e.y&&_e.y<100){var De=new Date(Date.UTC(-1,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L));return De.setUTCFullYear(_e.y),De}return new Date(Date.UTC(_e.y,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L))}function a(_e,De,Ke){return{y:_e,m:De,d:Ke,H:0,M:0,S:0,L:0}}function o(_e){var De=_e.dateTime,Ke=_e.date,Ye=_e.time,ar=_e.periods,se=_e.days,J=_e.shortDays,ae=_e.months,Le=_e.shortMonths,He=p(ar),je=b(ar),nr=p(se),fr=b(se),br=p(J),Sr=b(J),Mr=p(ae),Ar=b(ae),nt=p(Le),Yr=b(Le),mr={a:va,A:Kn,b:Fn,B:Ma,c:null,d:L,e:L,f:$,H:P,I:O,j:U,L:X,m:j,M:Y,p:xi,q:Gi,Q:he,s:ye,S:q,u:K,U:ne,V:Q,w:ie,W:ee,x:null,X:null,y:V,Y:re,Z:H,"%":ce},ct={a:Yi,A:Wi,b:nn,B:xo,c:null,d:te,e:te,f:ve,H:ue,I:de,j:ke,L:Ae,m:Te,M:Ee,p:bi,q:_i,Q:he,s:ye,S:Pe,u:Se,U:Ne,V:Be,w:ge,W:we,x:null,X:null,y:Me,Y:me,Z:Re,"%":ce},Cr={a:Ot,A:Lt,b:yn,B:Gt,c:Rt,d:g,e:g,f:D,H:A,I:A,j:c,L:E,m:_,M:h,p:Hr,q:d,Q:I,s:F,S:R,u:w,U:M,V:y,w:m,W:k,x:at,X:It,y:x,Y:S,Z:T,"%":N};mr.x=Ur(Ke,mr),mr.X=Ur(Ye,mr),mr.c=Ur(De,mr),ct.x=Ur(Ke,ct),ct.X=Ur(Ye,ct),ct.c=Ur(De,ct);function Ur(kr,it){return function(vt){var gr=[],mn=-1,bt=0,xn=kr.length,Xr,Wa,hl;for(vt instanceof Date||(vt=new Date(+vt));++mn53)return null;"w"in gr||(gr.w=1),"Z"in gr?(bt=n(a(gr.y,0,1)),xn=bt.getUTCDay(),bt=xn>4||xn===0?r.utcMonday.ceil(bt):r.utcMonday(bt),bt=r.utcDay.offset(bt,(gr.V-1)*7),gr.y=bt.getUTCFullYear(),gr.m=bt.getUTCMonth(),gr.d=bt.getUTCDate()+(gr.w+6)%7):(bt=t(a(gr.y,0,1)),xn=bt.getDay(),bt=xn>4||xn===0?r.timeMonday.ceil(bt):r.timeMonday(bt),bt=r.timeDay.offset(bt,(gr.V-1)*7),gr.y=bt.getFullYear(),gr.m=bt.getMonth(),gr.d=bt.getDate()+(gr.w+6)%7)}else("W"in gr||"U"in gr)&&("w"in gr||(gr.w="u"in gr?gr.u%7:"W"in gr?1:0),xn="Z"in gr?n(a(gr.y,0,1)).getUTCDay():t(a(gr.y,0,1)).getDay(),gr.m=0,gr.d="W"in gr?(gr.w+6)%7+gr.W*7-(xn+5)%7:gr.w+gr.U*7-(xn+6)%7);return"Z"in gr?(gr.H+=gr.Z/100|0,gr.M+=gr.Z%100,n(gr)):t(gr)}}function zr(kr,it,vt,gr){for(var mn=0,bt=it.length,xn=vt.length,Xr,Wa;mn=xn)return-1;if(Xr=it.charCodeAt(mn++),Xr===37){if(Xr=it.charAt(mn++),Wa=Cr[Xr in i?it.charAt(mn++):Xr],!Wa||(gr=Wa(kr,vt,gr))<0)return-1}else if(Xr!=vt.charCodeAt(gr++))return-1}return gr}function Hr(kr,it,vt){var gr=He.exec(it.slice(vt));return gr?(kr.p=je[gr[0].toLowerCase()],vt+gr[0].length):-1}function Ot(kr,it,vt){var gr=br.exec(it.slice(vt));return gr?(kr.w=Sr[gr[0].toLowerCase()],vt+gr[0].length):-1}function Lt(kr,it,vt){var gr=nr.exec(it.slice(vt));return gr?(kr.w=fr[gr[0].toLowerCase()],vt+gr[0].length):-1}function yn(kr,it,vt){var gr=nt.exec(it.slice(vt));return gr?(kr.m=Yr[gr[0].toLowerCase()],vt+gr[0].length):-1}function Gt(kr,it,vt){var gr=Mr.exec(it.slice(vt));return gr?(kr.m=Ar[gr[0].toLowerCase()],vt+gr[0].length):-1}function Rt(kr,it,vt){return zr(kr,De,it,vt)}function at(kr,it,vt){return zr(kr,Ke,it,vt)}function It(kr,it,vt){return zr(kr,Ye,it,vt)}function va(kr){return J[kr.getDay()]}function Kn(kr){return se[kr.getDay()]}function Fn(kr){return Le[kr.getMonth()]}function Ma(kr){return ae[kr.getMonth()]}function xi(kr){return ar[+(kr.getHours()>=12)]}function Gi(kr){return 1+~~(kr.getMonth()/3)}function Yi(kr){return J[kr.getUTCDay()]}function Wi(kr){return se[kr.getUTCDay()]}function nn(kr){return Le[kr.getUTCMonth()]}function xo(kr){return ae[kr.getUTCMonth()]}function bi(kr){return ar[+(kr.getUTCHours()>=12)]}function _i(kr){return 1+~~(kr.getUTCMonth()/3)}return{format:function(kr){var it=Ur(kr+="",mr);return it.toString=function(){return kr},it},parse:function(kr){var it=xt(kr+="",!1);return it.toString=function(){return kr},it},utcFormat:function(kr){var it=Ur(kr+="",ct);return it.toString=function(){return kr},it},utcParse:function(kr){var it=xt(kr+="",!0);return it.toString=function(){return kr},it}}}var i={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(_e,De,Ke){var Ye=_e<0?"-":"",ar=(Ye?-_e:_e)+"",se=ar.length;return Ye+(se68?1900:2e3),Ke+Ye[0].length):-1}function T(_e,De,Ke){var Ye=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(De.slice(Ke,Ke+6));return Ye?(_e.Z=Ye[1]?0:-(Ye[2]+(Ye[3]||"00")),Ke+Ye[0].length):-1}function d(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+1));return Ye?(_e.q=Ye[0]*3-3,Ke+Ye[0].length):-1}function _(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+2));return Ye?(_e.m=Ye[0]-1,Ke+Ye[0].length):-1}function g(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+2));return Ye?(_e.d=+Ye[0],Ke+Ye[0].length):-1}function c(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+3));return Ye?(_e.m=0,_e.d=+Ye[0],Ke+Ye[0].length):-1}function A(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+2));return Ye?(_e.H=+Ye[0],Ke+Ye[0].length):-1}function h(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+2));return Ye?(_e.M=+Ye[0],Ke+Ye[0].length):-1}function R(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+2));return Ye?(_e.S=+Ye[0],Ke+Ye[0].length):-1}function E(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+3));return Ye?(_e.L=+Ye[0],Ke+Ye[0].length):-1}function D(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+6));return Ye?(_e.L=Math.floor(Ye[0]/1e3),Ke+Ye[0].length):-1}function N(_e,De,Ke){var Ye=u.exec(De.slice(Ke,Ke+1));return Ye?Ke+Ye[0].length:-1}function I(_e,De,Ke){var Ye=l.exec(De.slice(Ke));return Ye?(_e.Q=+Ye[0],Ke+Ye[0].length):-1}function F(_e,De,Ke){var Ye=l.exec(De.slice(Ke));return Ye?(_e.s=+Ye[0],Ke+Ye[0].length):-1}function L(_e,De){return f(_e.getDate(),De,2)}function P(_e,De){return f(_e.getHours(),De,2)}function O(_e,De){return f(_e.getHours()%12||12,De,2)}function U(_e,De){return f(1+r.timeDay.count(r.timeYear(_e),_e),De,3)}function X(_e,De){return f(_e.getMilliseconds(),De,3)}function $(_e,De){return X(_e,De)+"000"}function j(_e,De){return f(_e.getMonth()+1,De,2)}function Y(_e,De){return f(_e.getMinutes(),De,2)}function q(_e,De){return f(_e.getSeconds(),De,2)}function K(_e){var De=_e.getDay();return De===0?7:De}function ne(_e,De){return f(r.timeSunday.count(r.timeYear(_e)-1,_e),De,2)}function Q(_e,De){var Ke=_e.getDay();return _e=Ke>=4||Ke===0?r.timeThursday(_e):r.timeThursday.ceil(_e),f(r.timeThursday.count(r.timeYear(_e),_e)+(r.timeYear(_e).getDay()===4),De,2)}function ie(_e){return _e.getDay()}function ee(_e,De){return f(r.timeMonday.count(r.timeYear(_e)-1,_e),De,2)}function V(_e,De){return f(_e.getFullYear()%100,De,2)}function re(_e,De){return f(_e.getFullYear()%1e4,De,4)}function H(_e){var De=_e.getTimezoneOffset();return(De>0?"-":(De*=-1,"+"))+f(De/60|0,"0",2)+f(De%60,"0",2)}function te(_e,De){return f(_e.getUTCDate(),De,2)}function ue(_e,De){return f(_e.getUTCHours(),De,2)}function de(_e,De){return f(_e.getUTCHours()%12||12,De,2)}function ke(_e,De){return f(1+r.utcDay.count(r.utcYear(_e),_e),De,3)}function Ae(_e,De){return f(_e.getUTCMilliseconds(),De,3)}function ve(_e,De){return Ae(_e,De)+"000"}function Te(_e,De){return f(_e.getUTCMonth()+1,De,2)}function Ee(_e,De){return f(_e.getUTCMinutes(),De,2)}function Pe(_e,De){return f(_e.getUTCSeconds(),De,2)}function Se(_e){var De=_e.getUTCDay();return De===0?7:De}function Ne(_e,De){return f(r.utcSunday.count(r.utcYear(_e)-1,_e),De,2)}function Be(_e,De){var Ke=_e.getUTCDay();return _e=Ke>=4||Ke===0?r.utcThursday(_e):r.utcThursday.ceil(_e),f(r.utcThursday.count(r.utcYear(_e),_e)+(r.utcYear(_e).getUTCDay()===4),De,2)}function ge(_e){return _e.getUTCDay()}function we(_e,De){return f(r.utcMonday.count(r.utcYear(_e)-1,_e),De,2)}function Me(_e,De){return f(_e.getUTCFullYear()%100,De,2)}function me(_e,De){return f(_e.getUTCFullYear()%1e4,De,4)}function Re(){return"+0000"}function ce(){return"%"}function he(_e){return+_e}function ye(_e){return Math.floor(+_e/1e3)}var Ce;ze({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function ze(_e){return Ce=o(_e),e.timeFormat=Ce.format,e.timeParse=Ce.parse,e.utcFormat=Ce.utcFormat,e.utcParse=Ce.utcParse,Ce}var qe="%Y-%m-%dT%H:%M:%S.%LZ";function $e(_e){return _e.toISOString()}var We=Date.prototype.toISOString?$e:e.utcFormat(qe);function Ue(_e){var De=new Date(_e);return isNaN(De)?null:De}var Ge=+new Date("2000-01-01T00:00:00.000Z")?Ue:e.utcParse(qe);e.isoFormat=We,e.isoParse=Ge,e.timeFormatDefaultLocale=ze,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})})});var op=pe((Mc,fb)=>{(function(e,r){typeof Mc=="object"&&typeof fb!="undefined"?r(Mc):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Mc,function(e){"use strict";function r(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function t(_,g){if((c=(_=g?_.toExponential(g-1):_.toExponential()).indexOf("e"))<0)return null;var c,A=_.slice(0,c);return[A.length>1?A[0]+A.slice(2):A,+_.slice(c+1)]}function n(_){return _=t(Math.abs(_)),_?_[1]:NaN}function a(_,g){return function(c,A){for(var h=c.length,R=[],E=0,D=_[0],N=0;h>0&&D>0&&(N+D+1>A&&(D=Math.max(1,A-N)),R.push(c.substring(h-=D,h+D)),!((N+=D+1)>A));)D=_[E=(E+1)%_.length];return R.reverse().join(g)}}function o(_){return function(g){return g.replace(/[0-9]/g,function(c){return _[+c]})}}var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(_){if(!(g=i.exec(_)))throw new Error("invalid format: "+_);var g;return new u({fill:g[1],align:g[2],sign:g[3],symbol:g[4],zero:g[5],width:g[6],comma:g[7],precision:g[8]&&g[8].slice(1),trim:g[9],type:g[10]})}l.prototype=u.prototype;function u(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.type+""}u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function s(_){e:for(var g=_.length,c=1,A=-1,h;c0&&(A=0);break}return A>0?_.slice(0,A)+_.slice(h+1):_}var f;function v(_,g){var c=t(_,g);if(!c)return _+"";var A=c[0],h=c[1],R=h-(f=Math.max(-8,Math.min(8,Math.floor(h/3)))*3)+1,E=A.length;return R===E?A:R>E?A+new Array(R-E+1).join("0"):R>0?A.slice(0,R)+"."+A.slice(R):"0."+new Array(1-R).join("0")+t(_,Math.max(0,g+R-1))[0]}function p(_,g){var c=t(_,g);if(!c)return _+"";var A=c[0],h=c[1];return h<0?"0."+new Array(-h).join("0")+A:A.length>h+1?A.slice(0,h+1)+"."+A.slice(h+1):A+new Array(h-A.length+2).join("0")}var b={"%":function(_,g){return(_*100).toFixed(g)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:r,e:function(_,g){return _.toExponential(g)},f:function(_,g){return _.toFixed(g)},g:function(_,g){return _.toPrecision(g)},o:function(_){return Math.round(_).toString(8)},p:function(_,g){return p(_*100,g)},r:p,s:v,X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function m(_){return _}var w=Array.prototype.map,M=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function y(_){var g=_.grouping===void 0||_.thousands===void 0?m:a(w.call(_.grouping,Number),_.thousands+""),c=_.currency===void 0?"":_.currency[0]+"",A=_.currency===void 0?"":_.currency[1]+"",h=_.decimal===void 0?".":_.decimal+"",R=_.numerals===void 0?m:o(w.call(_.numerals,String)),E=_.percent===void 0?"%":_.percent+"",D=_.minus===void 0?"-":_.minus+"",N=_.nan===void 0?"NaN":_.nan+"";function I(L){L=l(L);var P=L.fill,O=L.align,U=L.sign,X=L.symbol,$=L.zero,j=L.width,Y=L.comma,q=L.precision,K=L.trim,ne=L.type;ne==="n"?(Y=!0,ne="g"):b[ne]||(q===void 0&&(q=12),K=!0,ne="g"),($||P==="0"&&O==="=")&&($=!0,P="0",O="=");var Q=X==="$"?c:X==="#"&&/[boxX]/.test(ne)?"0"+ne.toLowerCase():"",ie=X==="$"?A:/[%p]/.test(ne)?E:"",ee=b[ne],V=/[defgprs%]/.test(ne);q=q===void 0?6:/[gprs]/.test(ne)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function re(H){var te=Q,ue=ie,de,ke,Ae;if(ne==="c")ue=ee(H)+ue,H="";else{H=+H;var ve=H<0||1/H<0;if(H=isNaN(H)?N:ee(Math.abs(H),q),K&&(H=s(H)),ve&&+H==0&&U!=="+"&&(ve=!1),te=(ve?U==="("?U:D:U==="-"||U==="("?"":U)+te,ue=(ne==="s"?M[8+f/3]:"")+ue+(ve&&U==="("?")":""),V){for(de=-1,ke=H.length;++deAe||Ae>57){ue=(Ae===46?h+H.slice(de+1):H.slice(de))+ue,H=H.slice(0,de);break}}}Y&&!$&&(H=g(H,1/0));var Te=te.length+H.length+ue.length,Ee=Te>1)+te+H+ue+Ee.slice(Te);break;default:H=Ee+te+H+ue;break}return R(H)}return re.toString=function(){return L+""},re}function F(L,P){var O=I((L=l(L),L.type="f",L)),U=Math.max(-8,Math.min(8,Math.floor(n(P)/3)))*3,X=Math.pow(10,-U),$=M[8+U/3];return function(j){return O(X*j)+$}}return{format:I,formatPrefix:F}}var k;S({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function S(_){return k=y(_),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function x(_){return Math.max(0,-n(Math.abs(_)))}function T(_,g){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(g)/3)))*3-n(Math.abs(_)))}function d(_,g){return _=Math.abs(_),g=Math.abs(g)-_,Math.max(0,n(g)-n(_))+1}e.FormatSpecifier=u,e.formatDefaultLocale=S,e.formatLocale=y,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=T,e.precisionRound=d,Object.defineProperty(e,"__esModule",{value:!0})})});var vb=pe((Pue,cb)=>{"use strict";cb.exports=function(e){for(var r=e.length,t,n=0;n13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var tt=pe((Fue,hb)=>{"use strict";var MB=vb();hb.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&MB(t))return!1}else if(r!=="number")return!1;return e-e<1}});var an=pe((Iue,db)=>{"use strict";db.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var lp=pe((Tc,pb)=>{(function(e,r){typeof Tc=="object"&&typeof pb!="undefined"?r(Tc):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Tc,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=r[(l[u]&3)<<4|l[u+1]>>4],f+=r[(l[u+1]&15)<<2|l[u+2]>>6],f+=r[l[u+2]&63];return s%3===2?f=f.substring(0,f.length-1)+"=":s%3===1&&(f=f.substring(0,f.length-2)+"=="),f},o=function(i){var l=i.length*.75,u=i.length,s,f=0,v,p,b,m;i[i.length-1]==="="&&(l--,i[i.length-2]==="="&&l--);var w=new ArrayBuffer(l),M=new Uint8Array(w);for(s=0;s>4,M[f++]=(p&15)<<4|b>>2,M[f++]=(b&3)<<6|m&63;return w};e.decode=o,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var wo=pe((Nue,gb)=>{"use strict";gb.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var jn=pe(Ja=>{"use strict";var TB=lp().decode,AB=wo(),sp=Array.isArray,kB=ArrayBuffer,SB=DataView;function yb(e){return kB.isView(e)&&!(e instanceof SB)}Ja.isTypedArray=yb;function Ac(e){return sp(e)||yb(e)}Ja.isArrayOrTypedArray=Ac;function CB(e){return!Ac(e[0])}Ja.isArray1D=CB;Ja.ensureArray=function(e,r){return sp(e)||(e=[]),e.length=r,e};var hn={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};hn.uint8c=hn.u1c;hn.uint8=hn.u1;hn.int8=hn.i1;hn.uint16=hn.u2;hn.int16=hn.i2;hn.uint32=hn.u4;hn.int32=hn.i4;hn.float32=hn.f4;hn.float64=hn.f8;function up(e){return e.constructor===ArrayBuffer}Ja.isArrayBuffer=up;Ja.decodeTypedArraySpec=function(e){var r=[],t=EB(e),n=t.dtype,a=hn[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var o=a.BYTES_PER_ELEMENT,i=t.bdata;up(i)||(i=TB(i));var l=t.shape===void 0?[i.byteLength/o]:(""+t.shape).split(",");l.reverse();var u=l.length,s,f,v=+l[0],p=o*v,b=0;if(u===1)r=new a(i);else if(u===2)for(s=+l[1],f=0;f{"use strict";var xb=tt(),cp=jn().isArrayOrTypedArray;Mb.exports=function(r,t){if(xb(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var n=t.split("."),a,o,i,l;for(l=0;l{"use strict";var Ss=kc(),FB=/^\w*$/,IB=0,Tb=1,Sc=2,Ab=3,bl=4;kb.exports=function(r,t,n,a){n=n||"name",a=a||"value";var o,i,l,u={};t&&t.length?(l=Ss(r,t),i=l.get()):i=r,t=t||"";var s={};if(i)for(o=0;o2)return u[b]=u[b]|Sc,v.set(p,null);if(f){for(o=b;o{"use strict";var NB=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,zB=/^[^\.\[\]]+$/;Cb.exports=function(e,r){for(;r;){var t=e.match(NB);if(t)e=t[1];else if(e.match(zB))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Cc=pe((Uue,Lb)=>{"use strict";var qB=tt();Lb.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return qB(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var Pb=pe((Hue,Db)=>{"use strict";var Rb=jn().isArrayOrTypedArray,nf=wo();Db.exports=function e(r,t){for(var n in t){var a=t[n],o=r[n];if(o!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if(Rb(a)&&Rb(o)&&nf(a[0])){if(n==="customdata"||n==="ids")continue;for(var i=Math.min(a.length,o.length),l=0;l{"use strict";function OB(e,r){var t=e%r;return t<0?t+r:t}function BB(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Fb.exports={mod:OB,modHalf:BB}});var Sa=pe((Gue,Ec)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,o=e.min,i=e.max,l=e.random;function u(V,re){if(V=V||"",re=re||{},V instanceof u)return V;if(!(this instanceof u))return new u(V,re);var H=s(V);this._originalInput=V,this._r=H.r,this._g=H.g,this._b=H.b,this._a=H.a,this._roundA=a(100*this._a)/100,this._format=re.format||H.format,this._gradientType=re.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=H.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var V=this.toRgb();return(V.r*299+V.g*587+V.b*114)/1e3},getLuminance:function(){var V=this.toRgb(),re,H,te,ue,de,ke;return re=V.r/255,H=V.g/255,te=V.b/255,re<=.03928?ue=re/12.92:ue=e.pow((re+.055)/1.055,2.4),H<=.03928?de=H/12.92:de=e.pow((H+.055)/1.055,2.4),te<=.03928?ke=te/12.92:ke=e.pow((te+.055)/1.055,2.4),.2126*ue+.7152*de+.0722*ke},setAlpha:function(V){return this._a=L(V),this._roundA=a(100*this._a)/100,this},toHsv:function(){var V=b(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=b(this._r,this._g,this._b),re=a(V.h*360),H=a(V.s*100),te=a(V.v*100);return this._a==1?"hsv("+re+", "+H+"%, "+te+"%)":"hsva("+re+", "+H+"%, "+te+"%, "+this._roundA+")"},toHsl:function(){var V=v(this._r,this._g,this._b);return{h:V.h*360,s:V.s,l:V.l,a:this._a}},toHslString:function(){var V=v(this._r,this._g,this._b),re=a(V.h*360),H=a(V.s*100),te=a(V.l*100);return this._a==1?"hsl("+re+", "+H+"%, "+te+"%)":"hsla("+re+", "+H+"%, "+te+"%, "+this._roundA+")"},toHex:function(V){return w(this._r,this._g,this._b,V)},toHexString:function(V){return"#"+this.toHex(V)},toHex8:function(V){return M(this._r,this._g,this._b,this._a,V)},toHex8String:function(V){return"#"+this.toHex8(V)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(P(this._r,255)*100)+"%",g:a(P(this._g,255)*100)+"%",b:a(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%)":"rgba("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:I[w(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var re="#"+y(this._r,this._g,this._b,this._a),H=re,te=this._gradientType?"GradientType = 1, ":"";if(V){var ue=u(V);H="#"+y(ue._r,ue._g,ue._b,ue._a)}return"progid:DXImageTransform.Microsoft.gradient("+te+"startColorstr="+re+",endColorstr="+H+")"},toString:function(V){var re=!!V;V=V||this._format;var H=!1,te=this._a<1&&this._a>=0,ue=!re&&te&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return ue?V==="name"&&this._a===0?this.toName():this.toRgbString():(V==="rgb"&&(H=this.toRgbString()),V==="prgb"&&(H=this.toPercentageRgbString()),(V==="hex"||V==="hex6")&&(H=this.toHexString()),V==="hex3"&&(H=this.toHexString(!0)),V==="hex4"&&(H=this.toHex8String(!0)),V==="hex8"&&(H=this.toHex8String()),V==="name"&&(H=this.toName()),V==="hsl"&&(H=this.toHslString()),V==="hsv"&&(H=this.toHsvString()),H||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(V,re){var H=V.apply(null,[this].concat([].slice.call(re)));return this._r=H._r,this._g=H._g,this._b=H._b,this.setAlpha(H._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(d,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(V,re){return V.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(c,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(A,arguments)},tetrad:function(){return this._applyCombination(h,arguments)}},u.fromRatio=function(V,re){if(typeof V=="object"){var H={};for(var te in V)V.hasOwnProperty(te)&&(te==="a"?H[te]=V[te]:H[te]=Y(V[te]));V=H}return u(V,re)};function s(V){var re={r:0,g:0,b:0},H=1,te=null,ue=null,de=null,ke=!1,Ae=!1;return typeof V=="string"&&(V=ie(V)),typeof V=="object"&&(Q(V.r)&&Q(V.g)&&Q(V.b)?(re=f(V.r,V.g,V.b),ke=!0,Ae=String(V.r).substr(-1)==="%"?"prgb":"rgb"):Q(V.h)&&Q(V.s)&&Q(V.v)?(te=Y(V.s),ue=Y(V.v),re=m(V.h,te,ue),ke=!0,Ae="hsv"):Q(V.h)&&Q(V.s)&&Q(V.l)&&(te=Y(V.s),de=Y(V.l),re=p(V.h,te,de),ke=!0,Ae="hsl"),V.hasOwnProperty("a")&&(H=V.a)),H=L(H),{ok:ke,format:V.format||Ae,r:o(255,i(re.r,0)),g:o(255,i(re.g,0)),b:o(255,i(re.b,0)),a:H}}function f(V,re,H){return{r:P(V,255)*255,g:P(re,255)*255,b:P(H,255)*255}}function v(V,re,H){V=P(V,255),re=P(re,255),H=P(H,255);var te=i(V,re,H),ue=o(V,re,H),de,ke,Ae=(te+ue)/2;if(te==ue)de=ke=0;else{var ve=te-ue;switch(ke=Ae>.5?ve/(2-te-ue):ve/(te+ue),te){case V:de=(re-H)/ve+(re1&&(Pe-=1),Pe<1/6?Te+(Ee-Te)*6*Pe:Pe<1/2?Ee:Pe<2/3?Te+(Ee-Te)*(2/3-Pe)*6:Te}if(re===0)te=ue=de=H;else{var Ae=H<.5?H*(1+re):H+re-H*re,ve=2*H-Ae;te=ke(ve,Ae,V+1/3),ue=ke(ve,Ae,V),de=ke(ve,Ae,V-1/3)}return{r:te*255,g:ue*255,b:de*255}}function b(V,re,H){V=P(V,255),re=P(re,255),H=P(H,255);var te=i(V,re,H),ue=o(V,re,H),de,ke,Ae=te,ve=te-ue;if(ke=te===0?0:ve/te,te==ue)de=0;else{switch(te){case V:de=(re-H)/ve+(re>1)+720)%360;--re;)te.h=(te.h+ue)%360,de.push(u(te));return de}function D(V,re){re=re||6;for(var H=u(V).toHsv(),te=H.h,ue=H.s,de=H.v,ke=[],Ae=1/re;re--;)ke.push(u({h:te,s:ue,v:de})),de=(de+Ae)%1;return ke}u.mix=function(V,re,H){H=H===0?0:H||50;var te=u(V).toRgb(),ue=u(re).toRgb(),de=H/100,ke={r:(ue.r-te.r)*de+te.r,g:(ue.g-te.g)*de+te.g,b:(ue.b-te.b)*de+te.b,a:(ue.a-te.a)*de+te.a};return u(ke)},u.readability=function(V,re){var H=u(V),te=u(re);return(e.max(H.getLuminance(),te.getLuminance())+.05)/(e.min(H.getLuminance(),te.getLuminance())+.05)},u.isReadable=function(V,re,H){var te=u.readability(V,re),ue,de;switch(de=!1,ue=ee(H),ue.level+ue.size){case"AAsmall":case"AAAlarge":de=te>=4.5;break;case"AAlarge":de=te>=3;break;case"AAAsmall":de=te>=7;break}return de},u.mostReadable=function(V,re,H){var te=null,ue=0,de,ke,Ae,ve;H=H||{},ke=H.includeFallbackColors,Ae=H.level,ve=H.size;for(var Te=0;Teue&&(ue=de,te=u(re[Te]));return u.isReadable(V,te,{level:Ae,size:ve})||!ke?te:(H.includeFallbackColors=!1,u.mostReadable(V,["#fff","#000"],H))};var N=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=u.hexNames=F(N);function F(V){var re={};for(var H in V)V.hasOwnProperty(H)&&(re[V[H]]=H);return re}function L(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function P(V,re){X(V)&&(V="100%");var H=$(V);return V=o(re,i(0,parseFloat(V))),H&&(V=parseInt(V*re,10)/100),e.abs(V-re)<1e-6?1:V%re/parseFloat(re)}function O(V){return o(1,i(0,V))}function U(V){return parseInt(V,16)}function X(V){return typeof V=="string"&&V.indexOf(".")!=-1&&parseFloat(V)===1}function $(V){return typeof V=="string"&&V.indexOf("%")!=-1}function j(V){return V.length==1?"0"+V:""+V}function Y(V){return V<=1&&(V=V*100+"%"),V}function q(V){return e.round(parseFloat(V)*255).toString(16)}function K(V){return U(V)/255}var ne=function(){var V="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",H="(?:"+re+")|(?:"+V+")",te="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",ue="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?";return{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ue),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ue),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ue),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Q(V){return!!ne.CSS_UNIT.exec(V)}function ie(V){V=V.replace(r,"").replace(t,"").toLowerCase();var re=!1;if(N[V])V=N[V],re=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var H;return(H=ne.rgb.exec(V))?{r:H[1],g:H[2],b:H[3]}:(H=ne.rgba.exec(V))?{r:H[1],g:H[2],b:H[3],a:H[4]}:(H=ne.hsl.exec(V))?{h:H[1],s:H[2],l:H[3]}:(H=ne.hsla.exec(V))?{h:H[1],s:H[2],l:H[3],a:H[4]}:(H=ne.hsv.exec(V))?{h:H[1],s:H[2],v:H[3]}:(H=ne.hsva.exec(V))?{h:H[1],s:H[2],v:H[3],a:H[4]}:(H=ne.hex8.exec(V))?{r:U(H[1]),g:U(H[2]),b:U(H[3]),a:K(H[4]),format:re?"name":"hex8"}:(H=ne.hex6.exec(V))?{r:U(H[1]),g:U(H[2]),b:U(H[3]),format:re?"name":"hex"}:(H=ne.hex4.exec(V))?{r:U(H[1]+""+H[1]),g:U(H[2]+""+H[2]),b:U(H[3]+""+H[3]),a:K(H[4]+""+H[4]),format:re?"name":"hex8"}:(H=ne.hex3.exec(V))?{r:U(H[1]+""+H[1]),g:U(H[2]+""+H[2]),b:U(H[3]+""+H[3]),format:re?"name":"hex"}:!1}function ee(V){var re,H;return V=V||{level:"AA",size:"small"},re=(V.level||"AA").toUpperCase(),H=(V.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),H!=="small"&&H!=="large"&&(H="small"),{level:re,size:H}}typeof Ec!="undefined"&&Ec.exports?Ec.exports=u:window.tinycolor=u})(Math)});var Mt=pe(lf=>{"use strict";var Ib=wo(),af=Array.isArray;function UB(e,r){var t,n;for(t=0;t{"use strict";Nb.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var o={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(o.size.dflt="auto"),e.autoColor&&(o.color.dflt="auto"),e.arrayOk&&(o.family.arrayOk=!0,o.weight.arrayOk=!0,o.style.arrayOk=!0,e.noFontVariant||(o.variant.arrayOk=!0),e.noFontTextcase||(o.textcase.arrayOk=!0),e.noFontLineposition||(o.lineposition.arrayOk=!0),e.noFontShadow||(o.shadow.arrayOk=!0),o.size.arrayOk=!0,o.color.arrayOk=!0),o}});var sf=pe((Xue,zb)=>{"use strict";zb.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var _l=pe((Zue,Bb)=>{"use strict";var qb=sf(),Ob=kn(),vp=Ob({editType:"none"});vp.family.dflt=qb.HOVERFONT;vp.size.dflt=qb.HOVERFONTSIZE;Bb.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:vp,grouptitlefont:Ob({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Lc=pe((Jue,Ub)=>{"use strict";var HB=kn(),uf=_l().hoverlabel,ff=Mt().extendFlat;Ub.exports={hoverlabel:{bgcolor:ff({},uf.bgcolor,{arrayOk:!0}),bordercolor:ff({},uf.bordercolor,{arrayOk:!0}),font:HB({arrayOk:!0,editType:"none"}),align:ff({},uf.align,{arrayOk:!0}),namelength:ff({},uf.namelength,{arrayOk:!0}),showarrow:ff({},uf.showarrow),editType:"none"}}});var Sn=pe((Kue,Hb)=>{"use strict";var VB=kn(),GB=Lc();Hb.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:VB({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:GB.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var wl=pe((Que,Yb)=>{"use strict";var YB=Sa(),Rc={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Vb=Rc.RdBu;function WB(e,r){if(r||(r=Vb),!e)return r;function t(){try{e=Rc[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),Gb(e)?e:r}function Gb(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";Ml.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Ml.defaultLine="#444";Ml.lightLine="#eee";Ml.background="#fff";Ml.borderLine="#BEC8D9";Ml.lightFraction=100*10/11});var Zr=pe((jue,Wb)=>{"use strict";var ea=Sa(),ZB=tt(),JB=jn().isTypedArray,on=Wb.exports={},Dc=Ti();on.defaults=Dc.defaults;var KB=on.defaultLine=Dc.defaultLine;on.lightLine=Dc.lightLine;var dp=on.background=Dc.background;on.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};on.rgb=function(e){return on.tinyRGB(ea(e))};on.opacity=function(e){return e?ea(e).getAlpha():0};on.addOpacity=function(e,r){var t=ea(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};on.combine=function(e,r){var t=ea(e).toRgb();if(t.a===1)return ea(e).toRgbString();var n=ea(r||dp).toRgb(),a=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},o={r:a.r*(1-t.a)+t.r*t.a,g:a.g*(1-t.a)+t.g*t.a,b:a.b*(1-t.a)+t.b*t.a};return ea(o).toRgbString()};on.interpolate=function(e,r,t){var n=ea(e).toRgb(),a=ea(r).toRgb(),o={r:t*n.r+(1-t)*a.r,g:t*n.g+(1-t)*a.g,b:t*n.b+(1-t)*a.b};return ea(o).toRgbString()};on.contrast=function(e,r,t){var n=ea(e);n.getAlpha()!==1&&(n=ea(on.combine(e,dp)));var a=n.isDark()?r?n.lighten(r):dp:t?n.darken(t):KB;return a.toString()};on.stroke=function(e,r){var t=ea(r);e.style({stroke:on.tinyRGB(t),"stroke-opacity":t.getAlpha()})};on.fill=function(e,r){var t=ea(r);e.style({fill:on.tinyRGB(t),"fill-opacity":t.getAlpha()})};on.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,n,a,o;for(t=0;t=0)))return e;if(o===3)n[o]>1&&(n[o]=1);else if(n[o]>=1)return e}var i=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return a?"rgba("+i+", "+n[3]+")":"rgb("+i+")"}});var Pc=pe((efe,Xb)=>{"use strict";Xb.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Es=pe(Zb=>{"use strict";Zb.counter=function(e,r,t,n){var a=(r||"")+(t?"":"$"),o=n===!1?"":"^";return e==="xy"?new RegExp(o+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(o+e+"([2-9]|[1-9][0-9]+)?"+a)}});var $b=pe(ra=>{"use strict";var pp=tt(),Jb=Sa(),Kb=Mt().extendFlat,QB=Sn(),$B=wl(),jB=Zr(),eU=Pc().DESELECTDIM,Ls=kc(),Qb=Es().counter,rU=Cs().modHalf,Ai=jn().isArrayOrTypedArray,Mo=jn().isTypedArraySpec,To=jn().decodeTypedArraySpec;ra.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Ai(e)?e:Mo(e)?To(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;nn.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}Mo(e)&&(e=To(e)),e%1||!pp(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Mo(e)&&(e=To(e)),Jb(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return Jb(a).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(n)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set($B.get(e,t))}},angle:{coerceFunction:function(e,r,t){Mo(e)&&(e=To(e)),e==="auto"?r.set("auto"):pp(e)?r.set(rU(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||Qb(t);if(typeof e=="string"&&a.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!Qb(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),o=0;o{"use strict";var jb={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},e4={};function r4(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),r4(n,r[t]))}}r4(jb,e4);t4.exports={configAttributes:jb,dfltConfig:e4}});var yp=pe((afe,n4)=>{"use strict";var gp=ot(),tU=tt(),cf=[];n4.exports=function(e,r){if(cf.indexOf(e)!==-1)return;cf.push(e);var t=1e3;tU(r)?t=r:r==="long"&&(t=3e3);var n=gp.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(cf);function o(i){i.duration(700).style("opacity",0).each("end",function(l){var u=cf.indexOf(l);u!==-1&&cf.splice(u,1),gp.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(i){var l=gp.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(o)});for(var u=l.append("p"),s=i.split(//g),f=0;f{"use strict";var Rs=Tl().dfltConfig,mp=yp(),xp=a4.exports={};xp.log=function(){var e;if(Rs.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};xp.warn=function(){var e;if(Rs.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};xp.error=function(){var e;if(Rs.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Ic=pe((ofe,i4)=>{"use strict";i4.exports=function(){}});var bp=pe((lfe,o4)=>{"use strict";o4.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{l4.exports=nU;function nU(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var f4=pe((ufe,u4)=>{u4.exports=aU;function aU(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var v4=pe((ffe,c4)=>{c4.exports=iU;function iU(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var _p=pe((cfe,h4)=>{h4.exports=oU;function oU(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var p4=pe((vfe,d4)=>{d4.exports=lU;function lU(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],o=r[6],i=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=o,e[11]=r[14],e[12]=a,e[13]=i,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var y4=pe((hfe,g4)=>{g4.exports=sU;function sU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],v=r[9],p=r[10],b=r[11],m=r[12],w=r[13],M=r[14],y=r[15],k=t*l-n*i,S=t*u-a*i,x=t*s-o*i,T=n*u-a*l,d=n*s-o*l,_=a*s-o*u,g=f*w-v*m,c=f*M-p*m,A=f*y-b*m,h=v*M-p*w,R=v*y-b*w,E=p*y-b*M,D=k*E-S*R+x*h+T*A-d*c+_*g;return D?(D=1/D,e[0]=(l*E-u*R+s*h)*D,e[1]=(a*R-n*E-o*h)*D,e[2]=(w*_-M*d+y*T)*D,e[3]=(p*d-v*_-b*T)*D,e[4]=(u*A-i*E-s*c)*D,e[5]=(t*E-a*A+o*c)*D,e[6]=(M*x-m*_-y*S)*D,e[7]=(f*_-p*x+b*S)*D,e[8]=(i*R-l*A+s*g)*D,e[9]=(n*A-t*R-o*g)*D,e[10]=(m*d-w*x+y*k)*D,e[11]=(v*x-f*d-b*k)*D,e[12]=(l*c-i*h-u*g)*D,e[13]=(t*h-n*c+a*g)*D,e[14]=(w*S-m*T-M*k)*D,e[15]=(f*T-v*S+p*k)*D,e):null}});var x4=pe((dfe,m4)=>{m4.exports=uU;function uU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],v=r[9],p=r[10],b=r[11],m=r[12],w=r[13],M=r[14],y=r[15];return e[0]=l*(p*y-b*M)-v*(u*y-s*M)+w*(u*b-s*p),e[1]=-(n*(p*y-b*M)-v*(a*y-o*M)+w*(a*b-o*p)),e[2]=n*(u*y-s*M)-l*(a*y-o*M)+w*(a*s-o*u),e[3]=-(n*(u*b-s*p)-l*(a*b-o*p)+v*(a*s-o*u)),e[4]=-(i*(p*y-b*M)-f*(u*y-s*M)+m*(u*b-s*p)),e[5]=t*(p*y-b*M)-f*(a*y-o*M)+m*(a*b-o*p),e[6]=-(t*(u*y-s*M)-i*(a*y-o*M)+m*(a*s-o*u)),e[7]=t*(u*b-s*p)-i*(a*b-o*p)+f*(a*s-o*u),e[8]=i*(v*y-b*w)-f*(l*y-s*w)+m*(l*b-s*v),e[9]=-(t*(v*y-b*w)-f*(n*y-o*w)+m*(n*b-o*v)),e[10]=t*(l*y-s*w)-i*(n*y-o*w)+m*(n*s-o*l),e[11]=-(t*(l*b-s*v)-i*(n*b-o*v)+f*(n*s-o*l)),e[12]=-(i*(v*M-p*w)-f*(l*M-u*w)+m*(l*p-u*v)),e[13]=t*(v*M-p*w)-f*(n*M-a*w)+m*(n*p-a*v),e[14]=-(t*(l*M-u*w)-i*(n*M-a*w)+m*(n*u-a*l)),e[15]=t*(l*p-u*v)-i*(n*p-a*v)+f*(n*u-a*l),e}});var _4=pe((pfe,b4)=>{b4.exports=fU;function fU(e){var r=e[0],t=e[1],n=e[2],a=e[3],o=e[4],i=e[5],l=e[6],u=e[7],s=e[8],f=e[9],v=e[10],p=e[11],b=e[12],m=e[13],w=e[14],M=e[15],y=r*i-t*o,k=r*l-n*o,S=r*u-a*o,x=t*l-n*i,T=t*u-a*i,d=n*u-a*l,_=s*m-f*b,g=s*w-v*b,c=s*M-p*b,A=f*w-v*m,h=f*M-p*m,R=v*M-p*w;return y*R-k*h+S*A+x*c-T*g+d*_}});var M4=pe((gfe,w4)=>{w4.exports=cU;function cU(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=r[4],u=r[5],s=r[6],f=r[7],v=r[8],p=r[9],b=r[10],m=r[11],w=r[12],M=r[13],y=r[14],k=r[15],S=t[0],x=t[1],T=t[2],d=t[3];return e[0]=S*n+x*l+T*v+d*w,e[1]=S*a+x*u+T*p+d*M,e[2]=S*o+x*s+T*b+d*y,e[3]=S*i+x*f+T*m+d*k,S=t[4],x=t[5],T=t[6],d=t[7],e[4]=S*n+x*l+T*v+d*w,e[5]=S*a+x*u+T*p+d*M,e[6]=S*o+x*s+T*b+d*y,e[7]=S*i+x*f+T*m+d*k,S=t[8],x=t[9],T=t[10],d=t[11],e[8]=S*n+x*l+T*v+d*w,e[9]=S*a+x*u+T*p+d*M,e[10]=S*o+x*s+T*b+d*y,e[11]=S*i+x*f+T*m+d*k,S=t[12],x=t[13],T=t[14],d=t[15],e[12]=S*n+x*l+T*v+d*w,e[13]=S*a+x*u+T*p+d*M,e[14]=S*o+x*s+T*b+d*y,e[15]=S*i+x*f+T*m+d*k,e}});var A4=pe((yfe,T4)=>{T4.exports=vU;function vU(e,r,t){var n=t[0],a=t[1],o=t[2],i,l,u,s,f,v,p,b,m,w,M,y;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*o+r[12],e[13]=r[1]*n+r[5]*a+r[9]*o+r[13],e[14]=r[2]*n+r[6]*a+r[10]*o+r[14],e[15]=r[3]*n+r[7]*a+r[11]*o+r[15]):(i=r[0],l=r[1],u=r[2],s=r[3],f=r[4],v=r[5],p=r[6],b=r[7],m=r[8],w=r[9],M=r[10],y=r[11],e[0]=i,e[1]=l,e[2]=u,e[3]=s,e[4]=f,e[5]=v,e[6]=p,e[7]=b,e[8]=m,e[9]=w,e[10]=M,e[11]=y,e[12]=i*n+f*a+m*o+r[12],e[13]=l*n+v*a+w*o+r[13],e[14]=u*n+p*a+M*o+r[14],e[15]=s*n+b*a+y*o+r[15]),e}});var S4=pe((mfe,k4)=>{k4.exports=hU;function hU(e,r,t){var n=t[0],a=t[1],o=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*o,e[9]=r[9]*o,e[10]=r[10]*o,e[11]=r[11]*o,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var E4=pe((xfe,C4)=>{C4.exports=dU;function dU(e,r,t,n){var a=n[0],o=n[1],i=n[2],l=Math.sqrt(a*a+o*o+i*i),u,s,f,v,p,b,m,w,M,y,k,S,x,T,d,_,g,c,A,h,R,E,D,N;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,o*=l,i*=l,u=Math.sin(t),s=Math.cos(t),f=1-s,v=r[0],p=r[1],b=r[2],m=r[3],w=r[4],M=r[5],y=r[6],k=r[7],S=r[8],x=r[9],T=r[10],d=r[11],_=a*a*f+s,g=o*a*f+i*u,c=i*a*f-o*u,A=a*o*f-i*u,h=o*o*f+s,R=i*o*f+a*u,E=a*i*f+o*u,D=o*i*f-a*u,N=i*i*f+s,e[0]=v*_+w*g+S*c,e[1]=p*_+M*g+x*c,e[2]=b*_+y*g+T*c,e[3]=m*_+k*g+d*c,e[4]=v*A+w*h+S*R,e[5]=p*A+M*h+x*R,e[6]=b*A+y*h+T*R,e[7]=m*A+k*h+d*R,e[8]=v*E+w*D+S*N,e[9]=p*E+M*D+x*N,e[10]=b*E+y*D+T*N,e[11]=m*E+k*D+d*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var R4=pe((bfe,L4)=>{L4.exports=pU;function pU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[4],i=r[5],l=r[6],u=r[7],s=r[8],f=r[9],v=r[10],p=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=o*a+s*n,e[5]=i*a+f*n,e[6]=l*a+v*n,e[7]=u*a+p*n,e[8]=s*a-o*n,e[9]=f*a-i*n,e[10]=v*a-l*n,e[11]=p*a-u*n,e}});var P4=pe((_fe,D4)=>{D4.exports=gU;function gU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[8],f=r[9],v=r[10],p=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a-s*n,e[1]=i*a-f*n,e[2]=l*a-v*n,e[3]=u*a-p*n,e[8]=o*n+s*a,e[9]=i*n+f*a,e[10]=l*n+v*a,e[11]=u*n+p*a,e}});var I4=pe((wfe,F4)=>{F4.exports=yU;function yU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[4],f=r[5],v=r[6],p=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a+s*n,e[1]=i*a+f*n,e[2]=l*a+v*n,e[3]=u*a+p*n,e[4]=s*a-o*n,e[5]=f*a-i*n,e[6]=v*a-l*n,e[7]=p*a-u*n,e}});var z4=pe((Mfe,N4)=>{N4.exports=mU;function mU(e,r,t){var n,a,o,i=t[0],l=t[1],u=t[2],s=Math.sqrt(i*i+l*l+u*u);return Math.abs(s)<1e-6?null:(s=1/s,i*=s,l*=s,u*=s,n=Math.sin(r),a=Math.cos(r),o=1-a,e[0]=i*i*o+a,e[1]=l*i*o+u*n,e[2]=u*i*o-l*n,e[3]=0,e[4]=i*l*o-u*n,e[5]=l*l*o+a,e[6]=u*l*o+i*n,e[7]=0,e[8]=i*u*o+l*n,e[9]=l*u*o-i*n,e[10]=u*u*o+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var O4=pe((Tfe,q4)=>{q4.exports=xU;function xU(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=n+n,u=a+a,s=o+o,f=n*l,v=n*u,p=n*s,b=a*u,m=a*s,w=o*s,M=i*l,y=i*u,k=i*s;return e[0]=1-(b+w),e[1]=v+k,e[2]=p-y,e[3]=0,e[4]=v-k,e[5]=1-(f+w),e[6]=m+M,e[7]=0,e[8]=p+y,e[9]=m-M,e[10]=1-(f+b),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var U4=pe((Afe,B4)=>{B4.exports=bU;function bU(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var V4=pe((kfe,H4)=>{H4.exports=_U;function _U(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Y4=pe((Sfe,G4)=>{G4.exports=wU;function wU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var X4=pe((Cfe,W4)=>{W4.exports=MU;function MU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var J4=pe((Efe,Z4)=>{Z4.exports=TU;function TU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var wp=pe((Lfe,K4)=>{K4.exports=AU;function AU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=t+t,l=n+n,u=a+a,s=t*i,f=n*i,v=n*l,p=a*i,b=a*l,m=a*u,w=o*i,M=o*l,y=o*u;return e[0]=1-v-m,e[1]=f+y,e[2]=p-M,e[3]=0,e[4]=f-y,e[5]=1-s-m,e[6]=b+w,e[7]=0,e[8]=p+M,e[9]=b-w,e[10]=1-s-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var $4=pe((Rfe,Q4)=>{Q4.exports=kU;function kU(e,r,t,n,a,o,i){var l=1/(t-r),u=1/(a-n),s=1/(o-i);return e[0]=o*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o*2*u,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*u,e[10]=(i+o)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*o*2*s,e[15]=0,e}});var e_=pe((Dfe,j4)=>{j4.exports=SU;function SU(e,r,t,n,a){var o=1/Math.tan(r/2),i=1/(n-a);return e[0]=o/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*i,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*i,e[15]=0,e}});var t_=pe((Pfe,r_)=>{r_.exports=CU;function CU(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),o=Math.tan(r.downDegrees*Math.PI/180),i=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),u=2/(i+l),s=2/(a+o);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=-((i-l)*u*.5),e[9]=(a-o)*s*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var a_=pe((Ffe,n_)=>{n_.exports=EU;function EU(e,r,t,n,a,o,i){var l=1/(r-t),u=1/(n-a),s=1/(o-i);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*u,e[14]=(i+o)*s,e[15]=1,e}});var o_=pe((Ife,i_)=>{var LU=_p();i_.exports=RU;function RU(e,r,t,n){var a,o,i,l,u,s,f,v,p,b,m=r[0],w=r[1],M=r[2],y=n[0],k=n[1],S=n[2],x=t[0],T=t[1],d=t[2];return Math.abs(m-x)<1e-6&&Math.abs(w-T)<1e-6&&Math.abs(M-d)<1e-6?LU(e):(f=m-x,v=w-T,p=M-d,b=1/Math.sqrt(f*f+v*v+p*p),f*=b,v*=b,p*=b,a=k*p-S*v,o=S*f-y*p,i=y*v-k*f,b=Math.sqrt(a*a+o*o+i*i),b?(b=1/b,a*=b,o*=b,i*=b):(a=0,o=0,i=0),l=v*i-p*o,u=p*a-f*i,s=f*o-v*a,b=Math.sqrt(l*l+u*u+s*s),b?(b=1/b,l*=b,u*=b,s*=b):(l=0,u=0,s=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=o,e[5]=u,e[6]=v,e[7]=0,e[8]=i,e[9]=s,e[10]=p,e[11]=0,e[12]=-(a*m+o*w+i*M),e[13]=-(l*m+u*w+s*M),e[14]=-(f*m+v*w+p*M),e[15]=1,e)}});var s_=pe((Nfe,l_)=>{l_.exports=DU;function DU(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Mp=pe((zfe,u_)=>{u_.exports={create:s4(),clone:f4(),copy:v4(),identity:_p(),transpose:p4(),invert:y4(),adjoint:x4(),determinant:_4(),multiply:M4(),translate:A4(),scale:S4(),rotate:E4(),rotateX:R4(),rotateY:P4(),rotateZ:I4(),fromRotation:z4(),fromRotationTranslation:O4(),fromScaling:U4(),fromTranslation:V4(),fromXRotation:Y4(),fromYRotation:X4(),fromZRotation:J4(),fromQuat:wp(),frustum:$4(),perspective:e_(),perspectiveFromFieldOfView:t_(),ortho:a_(),lookAt:o_(),str:s_()}});var Nc=pe(Ut=>{"use strict";var PU=Mp();Ut.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var FU=ot(),f_=Al(),IU=Nc(),NU=Mp();function zU(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function qU(e){var r=FU.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function c_(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function OU(e,r){v_("global",e,r)}function v_(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var o=a.sheet;o?o.insertRule?o.insertRule(r+"{"+t+"}",0):o.addRule?o.addRule(r,t,0):f_.warn("addStyleRule failed"):f_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function BU(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&c_(t)}function UU(e,r,t,n,a,o){var i=n.split(":"),l=a.split(":"),u="data-btn-style-event-added";o||(o=document),o.querySelectorAll(e).forEach(function(s){s.getAttribute(u)||(s.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[i[0]]=i[1])}),s.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[i[0]]=i[1]:f.style[l[0]]=l[1])}),s.setAttribute(u,!0))})}function HU(e){var r=d_(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=h_(n);if(a){var o=IU.convertCssMatrix(a);t=NU.multiply(t,t,o)}}),t}function h_(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function d_(e){for(var r=[];VU(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function VU(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function GU(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}p_.exports={getGraphDiv:zU,isPlotDiv:qU,removeElement:c_,addStyleRule:OU,addRelatedStyleRule:v_,deleteRelatedStyleRule:BU,setStyleOnHover:UU,getFullTransformMatrix:HU,getElementTransformMatrix:h_,getElementAndAncestors:d_,equalDomRects:GU}});var hf=pe((Bfe,g_)=>{"use strict";g_.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var zn=pe((Ufe,M_)=>{"use strict";var m_=Mt().extendFlat,YU=wo(),x_={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},b_={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},WU=x_.flags.slice().concat(["fullReplot"]),XU=b_.flags.slice().concat("layoutReplot");M_.exports={traces:x_,layout:b_,traceFlags:function(){return y_(WU)},layoutFlags:function(){return y_(XU)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";Tp.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Tp.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Ap=pe((Vfe,T_)=>{"use strict";T_.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var ha=pe(df=>{"use strict";var A_=Ap(),ZU=A_.FORMAT_LINK,JU=A_.DATE_FORMAT_LINK;function KU(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,ZU,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,JU,"for details on the date formatting syntax."].join(" ")}df.templateFormatStringDescription=KU;function kp(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var n=[],a=0;a{"use strict";function ko(e,r){return r?r.d2l(e):e}function k_(e,r){return r?r.l2d(e):e}function QU(e){return e.x0}function $U(e){return e.x1}function jU(e){return e.y0}function eH(e){return e.y1}function S_(e){return e.x0shift||0}function C_(e){return e.x1shift||0}function E_(e){return e.y0shift||0}function L_(e){return e.y1shift||0}function zc(e,r){return ko(e.x1,r)+C_(e)-ko(e.x0,r)-S_(e)}function qc(e,r,t){return ko(e.y1,t)+L_(e)-ko(e.y0,t)-E_(e)}function rH(e,r){return Math.abs(zc(e,r))}function tH(e,r,t){return Math.abs(qc(e,r,t))}function nH(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(zc(e,r),2)+Math.pow(qc(e,r,t),2))}function aH(e,r){return k_((ko(e.x1,r)+C_(e)+ko(e.x0,r)+S_(e))/2,r)}function iH(e,r,t){return k_((ko(e.y1,t)+L_(e)+ko(e.y0,t)+E_(e))/2,t)}function oH(e,r,t){return e.type!=="line"?void 0:qc(e,r,t)/zc(e,r)}R_.exports={x0:QU,x1:$U,y0:jU,y1:eH,slope:oH,dx:zc,dy:qc,width:rH,height:tH,length:nH,xcenter:aH,ycenter:iH}});var F_=pe((Wfe,P_)=>{"use strict";var lH=zn().overrideAll,kl=Sn(),D_=kn(),sH=Ao().dash,So=Mt().extendFlat,uH=ha().shapeTexttemplateAttrs,fH=Oc();P_.exports=lH({newshape:{visible:So({},kl.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:So({},kl.legend,{}),legendgroup:So({},kl.legendgroup,{}),legendgrouptitle:{text:So({},kl.legendgrouptitle.text,{}),font:D_({})},legendrank:So({},kl.legendrank,{}),legendwidth:So({},kl.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:So({},sH,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:So({},kl.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:uH({newshape:!0},{keys:Object.keys(fH)}),font:D_({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var N_=pe((Xfe,I_)=>{"use strict";var cH=Ao().dash,vH=Mt().extendFlat;I_.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:vH({},cH,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Bc=pe((Zfe,z_)=>{"use strict";z_.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Ds=pe((Jfe,U_)=>{"use strict";var Sp=kn(),hH=hf(),Uc=Ti(),q_=F_(),O_=N_(),dH=Bc(),B_=Mt().extendFlat,Hc=Sp({editType:"calc"});Hc.family.dflt='"Open Sans", verdana, arial, sans-serif';Hc.size.dflt=12;Hc.color.dflt=Uc.defaultLine;U_.exports={font:Hc,title:{text:{valType:"string",editType:"layoutstyle"},font:Sp({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Sp({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:B_(dH({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Uc.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Uc.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Uc.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:q_.newshape,activeshape:q_.activeshape,newselection:O_.newselection,activeselection:O_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:B_({},hH.transition,{editType:"none"})}});var H_=pe(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var Er=pe(Jr=>{"use strict";var Ps=Al(),V_=Ic(),G_=bp(),pH=wo(),gH=vf().addStyleRule,Y_=Mt(),yH=Sn(),mH=Ds(),xH=Y_.extendFlat,Cp=Y_.extendDeepAll;Jr.modules={};Jr.allCategories={};Jr.allTypes=[];Jr.subplotsRegistry={};Jr.componentsRegistry={};Jr.layoutArrayContainers=[];Jr.layoutArrayRegexes=[];Jr.traceLayoutAttributes={};Jr.localeRegistry={};Jr.apiMethodRegistry={};Jr.collectableSubplotTypes=null;Jr.register=function(r){if(Jr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var AH=ks().timeFormat,t6=tt(),Ep=Al(),Eo=Cs().mod,Ns=an(),Ca=Ns.BADNUM,ta=Ns.ONEDAY,pf=Ns.ONEHOUR,Co=Ns.ONEMIN,Is=Ns.ONESEC,gf=Ns.EPOCHJD,Zi=Er(),K_=ks().utcFormat,kH=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,SH=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Q_=new Date().getFullYear()-70;function Ji(e){return e&&Zi.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Ht.dateTick0=function(e,r){var t=CH(e,!!r);if(r<2)return t;var n=Ht.dateTime2ms(t,e);return n+=ta*(r-1),Ht.ms2DateTime(n,0,e)};function CH(e,r){return Ji(e)?r?Zi.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Zi.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Ht.dfltRange=function(e){return Ji(e)?Zi.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Ht.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Gc,Yc;Ht.dateTime2ms=function(e,r){if(Ht.isJSDate(e)){var t=e.getTimezoneOffset()*Co,n=(e.getUTCMinutes()-e.getMinutes())*Co+(e.getUTCSeconds()-e.getSeconds())*Is+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*Co;t=t-a/2+Eo(n-t+a/2,a)}return e=Number(e)-t,e>=Gc&&e<=Yc?e:Ca}if(typeof e!="string"&&typeof e!="number")return Ca;e=String(e);var o=Ji(r),i=e.charAt(0);o&&(i==="G"||i==="g")&&(e=e.substr(1),r="");var l=o&&r.substr(0,7)==="chinese",u=e.match(l?SH:kH);if(!u)return Ca;var s=u[1],f=u[3]||"1",v=Number(u[5]||1),p=Number(u[7]||0),b=Number(u[9]||0),m=Number(u[11]||0);if(o){if(s.length===2)return Ca;s=Number(s);var w;try{var M=Zi.getComponentMethod("calendars","getCal")(r);if(l){var y=f.charAt(f.length-1)==="i";f=parseInt(f,10),w=M.newDate(s,M.toMonthIndex(s,f,y),v)}else w=M.newDate(s,Number(f),v)}catch(S){return Ca}return w?(w.toJD()-gf)*ta+p*pf+b*Co+m*Is:Ca}s.length===2?s=(Number(s)+2e3-Q_)%100+Q_:s=Number(s),f-=1;var k=new Date(Date.UTC(2e3,f,v,p,b));return k.setUTCFullYear(s),k.getUTCMonth()!==f||k.getUTCDate()!==v?Ca:k.getTime()+m*Is};Gc=Ht.MIN_MS=Ht.dateTime2ms("-9999");Yc=Ht.MAX_MS=Ht.dateTime2ms("9999-12-31 23:59:59.9999");Ht.isDateTime=function(e,r){return Ht.dateTime2ms(e,r)!==Ca};function Fs(e,r){return String(e+Math.pow(10,r)).substr(1)}var Vc=90*ta,$_=3*pf,j_=5*Co;Ht.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Gc&&e<=Yc))return Ca;r||(r=0);var n=Math.floor(Eo(e+.05,1)*10),a=Math.round(e-n/10),o,i,l,u,s,f;if(Ji(t)){var v=Math.floor(a/ta)+gf,p=Math.floor(Eo(e,ta));try{o=Zi.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(b){o=K_("G%Y-%m-%d")(new Date(a))}if(o.charAt(0)==="-")for(;o.length<11;)o="-0"+o.substr(1);else for(;o.length<10;)o="0"+o;i=r=Gc+ta&&e<=Yc-ta))return Ca;var r=Math.floor(Eo(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=AH("%Y-%m-%d")(t),a=t.getHours(),o=t.getMinutes(),i=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return n6(n,a,o,i,l)};function n6(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+Fs(r,2)+":"+Fs(t,2),(n||a)&&(e+=":"+Fs(n,2),a))){for(var o=4;a%10===0;)o-=1,a/=10;e+="."+Fs(a,o)}return e}Ht.cleanDate=function(e,r,t){if(e===Ca)return r;if(Ht.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Ji(t))return Ep.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Ht.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Ht.isDateTime(e,t))return Ep.error("unrecognized date",e),r;return e};var EH=/%\d?f/g,LH=/%h/g,RH={1:"1",2:"1",3:"2",4:"2"};function e6(e,r,t,n){e=e.replace(EH,function(o){var i=Math.min(+o.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(i).substr(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(LH,function(){return RH[t("%q")(a)]}),Ji(n))try{e=Zi.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(o){return"Invalid"}return t(e)(a)}var DH=[59,59.9,59.99,59.999,59.9999];function PH(e,r){var t=Eo(e+.05,ta),n=Fs(Math.floor(t/pf),2)+":"+Fs(Eo(Math.floor(t/Co),60),2);if(r!=="M"){t6(r)||(r=0);var a=Math.min(Eo(e/Is,60),DH[r]),o=(100+a).toFixed(r).substr(1);r>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+o}return n}Ht.formatDate=function(e,r,t,n,a,o){if(a=Ji(a)&&a,!r)if(t==="y")r=o.year;else if(t==="m")r=o.month;else if(t==="d")r=o.dayMonth+` -`+o.year;else return PH(e,t)+` -`+e6(o.dayMonthYear,e,n,a);return e6(r,e,n,a)};var r6=3*ta;Ht.incrementMonth=function(e,r,t){t=Ji(t)&&t;var n=Eo(e,ta);if(e=Math.round(e-n),t)try{var a=Math.round(e/ta)+gf,o=Zi.getComponentMethod("calendars","getCal")(t),i=o.fromJD(a);return r%12?o.add(i,r,"m"):o.add(i,r/12,"y"),(i.toJD()-gf)*ta+n}catch(u){Ep.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+r6);return l.setUTCMonth(l.getUTCMonth()+r)+n-r6};Ht.findExactDates=function(e,r){for(var t=0,n=0,a=0,o=0,i,l,u=Ji(r)&&Zi.getComponentMethod("calendars","getCal")(r),s=0;s{"use strict";i6.exports=function(r){return r}});var Dp=pe(Ki=>{"use strict";var FH=tt(),IH=Al(),NH=Lp(),zH=an().BADNUM,Rp=1e-9;Ki.findBin=function(e,r,t){if(FH(r.start))return t?Math.ceil((e-r.start)/r.size-Rp)-1:Math.floor((e-r.start)/r.size+Rp);var n=0,a=r.length,o=0,i=a>1?(r[a-1]-r[0])/(a-1):1,l,u;for(i>=0?u=t?qH:OH:u=t?UH:BH,e+=i*Rp*(t?-1:1)*(i>=0?1:-1);n90&&IH.log("Long binary search..."),n-1};function qH(e,r){return er}function UH(e,r){return e>=r}Ki.sorterAsc=function(e,r){return e-r};Ki.sorterDes=function(e,r){return r-e};Ki.distinctVals=function(e){var r=e.slice();r.sort(Ki.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===zH;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,o=[],i,l=0;l<=t;l++){var u=r[l],s=u-i;i===void 0?(o.push(u),i=u):s>a&&(n=Math.min(n,s),o.push(u),i=u)}return{vals:o,minDiff:n}};Ki.roundUp=function(e,r,t){for(var n=0,a=r.length-1,o,i=0,l=t?0:1,u=t?1:0,s=t?Math.ceil:Math.floor;n0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};Ki.findIndexOfMin=function(e,r){r=r||NH;for(var t=1/0,n,a=0;a{"use strict";o6.exports=function(r){return Object.keys(r).sort()}});var l6=pe(Vt=>{"use strict";var yf=tt(),HH=jn().isArrayOrTypedArray;Vt.aggNums=function(e,r,t,n){var a,o;if((!n||n>t.length)&&(n=t.length),yf(r)||(r=!1),HH(t[0])){for(o=new Array(n),a=0;ae.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var v6=pe((a0e,c6)=>{"use strict";var s6=Cs(),Pp=s6.mod,VH=s6.modHalf,mf=Math.PI,Lo=2*mf;function GH(e){return e/180*mf}function YH(e){return e/mf*180}function Fp(e){return Math.abs(e[1]-e[0])>Lo-1e-14}function u6(e,r){return VH(r-e,Lo)}function WH(e,r){return Math.abs(u6(e,r))}function f6(e,r){if(Fp(r))return!0;var t,n;r[0]n&&(n+=Lo);var a=Pp(e,Lo),o=a+Lo;return a>=t&&a<=n||o>=t&&o<=n}function XH(e,r,t,n){if(!f6(r,n))return!1;var a,o;return t[0]=a&&e<=o}function Ip(e,r,t,n,a,o,i){a=a||0,o=o||0;var l=Fp([t,n]),u,s,f,v,p;l?(u=0,s=mf,f=Lo):t{"use strict";Sl.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Sl.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Sl.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Sl.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Sl.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Sl.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var g6=pe(Cl=>{"use strict";var Np=Cs().mod;Cl.segmentsIntersect=p6;function p6(e,r,t,n,a,o,i,l){var u=t-e,s=a-e,f=i-a,v=n-r,p=o-r,b=l-o,m=u*b-f*v;if(m===0)return null;var w=(s*b-f*p)/m,M=(s*v-u*p)/m;return M<0||M>1||w<0||w>1?null:{x:e+u*w,y:r+v*w}}Cl.segmentDistance=function(r,t,n,a,o,i,l,u){if(p6(r,t,n,a,o,i,l,u))return 0;var s=n-r,f=a-t,v=l-o,p=u-i,b=s*s+f*f,m=v*v+p*p,w=Math.min(Xc(s,f,b,o-r,i-t),Xc(s,f,b,l-r,u-t),Xc(v,p,m,r-o,t-i),Xc(v,p,m,n-o,a-i));return Math.sqrt(w)};function Xc(e,r,t,n,a){var o=n*e+a*r;if(o<0)return n*n+a*a;if(o>t){var i=n-e,l=a-r;return i*i+l*l}else{var u=n*r-a*e;return u*u/t}}var Zc,zp,d6;Cl.getTextLocation=function(r,t,n,a){if((r!==zp||a!==d6)&&(Zc={},zp=r,d6=a),Zc[n])return Zc[n];var o=r.getPointAtLength(Np(n-a/2,t)),i=r.getPointAtLength(Np(n+a/2,t)),l=Math.atan((i.y-o.y)/(i.x-o.x)),u=r.getPointAtLength(Np(n,t)),s=(u.x*4+o.x+i.x)/6,f=(u.y*4+o.y+i.y)/6,v={x:s,y:f,theta:l};return Zc[n]=v,v};Cl.clearLocationCache=function(){zp=null};Cl.getVisibleSegment=function(r,t,n){var a=t.left,o=t.right,i=t.top,l=t.bottom,u=0,s=r.getTotalLength(),f=s,v,p;function b(w){var M=r.getPointAtLength(w);w===0?v=M:w===s&&(p=M);var y=M.xo?M.x-o:0,k=M.yl?M.y-l:0;return Math.sqrt(y*y+k*k)}for(var m=b(u);m;){if(u+=m+n,u>f)return;m=b(u)}for(m=b(f);m;){if(f-=m+n,u>f)return;m=b(f)}return{min:u,max:f,len:f-u,total:s,isClosed:u===0&&f===s&&Math.abs(v.x-p.x)<.1&&Math.abs(v.y-p.y)<.1}};Cl.findPointOnPath=function(r,t,n,a){a=a||{};for(var o=a.pathLength||r.getTotalLength(),i=a.tolerance||.001,l=a.iterationLimit||30,u=r.getPointAtLength(0)[n]>r.getPointAtLength(o)[n]?-1:1,s=0,f=0,v=o,p,b,m;s0?v=p:f=p,s++}return b}});var Jc=pe(xf=>{"use strict";var Qi={};xf.throttle=function(r,t,n){var a=Qi[r],o=Date.now();if(!a){for(var i in Qi)Qi[i].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};xf.done=function(e){var r=Qi[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};xf.clear=function(e){if(e)y6(Qi[e]),delete Qi[e];else for(var r in Qi)xf.clear(r)};function y6(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var x6=pe((s0e,m6)=>{"use strict";m6.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var b6=pe((u0e,Kc)=>{"use strict";Kc.exports=qp;Kc.exports.isMobile=qp;Kc.exports.default=qp;var QH=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,$H=/CrOS/,jH=/android|ipad|playbook|silk/i;function qp(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=QH.test(r)&&!$H.test(r)||!!e.tablet&&jH.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var w6=pe((f0e,_6)=>{"use strict";var eV=tt(),rV=b6();_6.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=tV(),typeof t!="string")return!0;var n=rV({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),o=1;o-1;l--){var u=a[l];if(u.substr(0,8)==="Version/"){var s=u.substr(8).split(".")[0];if(eV(s)&&(s=+s),s>=13)return!0}}}return n};function tV(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var T6=pe((c0e,M6)=>{"use strict";var nV=ot();M6.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(i){return i[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var o=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(i){i[0][o]=nV.select(this)}),a}});var k6=pe((v0e,A6)=>{"use strict";var aV=Er();A6.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var o=r._context.locales,i=0;i<2;i++){var l=(o[n]||{}).dictionary;if(l){var u=l[t];if(u)return u}o=aV.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t}});var C6=pe((h0e,S6)=>{"use strict";S6.exports=function(r){for(var t={},n=[],a=0,o=0;o{"use strict";E6.exports=function(r){for(var t=lV(r)?oV:iV,n=[],a=0;a{"use strict";R6.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,o=String(a).length;if(o>16){var i=String(t).length,l=String(r).length;if(o>=l+i){var u=parseFloat(a).toPrecision(12);u.indexOf("e+")===-1&&(a=+u)}}return a}});var F6=pe((g0e,P6)=>{"use strict";var sV=tt(),uV=an().BADNUM,fV=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;P6.exports=function(r){return typeof r=="string"&&(r=r.replace(fV,"")),sV(r)?Number(r):uV}});var ir=pe((y0e,X6)=>{"use strict";var bf=ot(),cV=ks().utcFormat,vV=op().format,B6=tt(),U6=an(),H6=U6.FP_SAFE,hV=-H6,I6=U6.BADNUM,Ze=X6.exports={};Ze.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var N6={};Ze.warnBadFormat=function(e){var r=String(e);N6[r]||(N6[r]=1,Ze.warn('encountered bad format: "'+r+'"'))};Ze.noFormat=function(e){return String(e)};Ze.numberFormat=function(e){var r;try{r=vV(Ze.adjustFormat(e))}catch(t){return Ze.warnBadFormat(e),Ze.noFormat}return r};Ze.nestedProperty=kc();Ze.keyedContainer=Sb();Ze.relativeAttr=Eb();Ze.isPlainObject=wo();Ze.toLogRange=Cc();Ze.relinkPrivateKeys=Pb();var Ro=jn();Ze.isArrayBuffer=Ro.isArrayBuffer;Ze.isTypedArray=Ro.isTypedArray;Ze.isArrayOrTypedArray=Ro.isArrayOrTypedArray;Ze.isArray1D=Ro.isArray1D;Ze.ensureArray=Ro.ensureArray;Ze.concat=Ro.concat;Ze.maxRowLength=Ro.maxRowLength;Ze.minRowLength=Ro.minRowLength;var V6=Cs();Ze.mod=V6.mod;Ze.modHalf=V6.modHalf;var Do=$b();Ze.valObjectMeta=Do.valObjectMeta;Ze.coerce=Do.coerce;Ze.coerce2=Do.coerce2;Ze.coerceFont=Do.coerceFont;Ze.coercePattern=Do.coercePattern;Ze.coerceHoverinfo=Do.coerceHoverinfo;Ze.coerceSelectionMarkerOpacity=Do.coerceSelectionMarkerOpacity;Ze.validate=Do.validate;var da=a6();Ze.dateTime2ms=da.dateTime2ms;Ze.isDateTime=da.isDateTime;Ze.ms2DateTime=da.ms2DateTime;Ze.ms2DateTimeLocal=da.ms2DateTimeLocal;Ze.cleanDate=da.cleanDate;Ze.isJSDate=da.isJSDate;Ze.formatDate=da.formatDate;Ze.incrementMonth=da.incrementMonth;Ze.dateTick0=da.dateTick0;Ze.dfltRange=da.dfltRange;Ze.findExactDates=da.findExactDates;Ze.MIN_MS=da.MIN_MS;Ze.MAX_MS=da.MAX_MS;var El=Dp();Ze.findBin=El.findBin;Ze.sorterAsc=El.sorterAsc;Ze.sorterDes=El.sorterDes;Ze.distinctVals=El.distinctVals;Ze.roundUp=El.roundUp;Ze.sort=El.sort;Ze.findIndexOfMin=El.findIndexOfMin;Ze.sortObjectKeys=Wc();var $i=l6();Ze.aggNums=$i.aggNums;Ze.len=$i.len;Ze.mean=$i.mean;Ze.geometricMean=$i.geometricMean;Ze.median=$i.median;Ze.midRange=$i.midRange;Ze.variance=$i.variance;Ze.stdev=$i.stdev;Ze.interp=$i.interp;var Ka=Nc();Ze.init2dArray=Ka.init2dArray;Ze.transposeRagged=Ka.transposeRagged;Ze.dot=Ka.dot;Ze.translationMatrix=Ka.translationMatrix;Ze.rotationMatrix=Ka.rotationMatrix;Ze.rotationXYMatrix=Ka.rotationXYMatrix;Ze.apply3DTransform=Ka.apply3DTransform;Ze.apply2DTransform=Ka.apply2DTransform;Ze.apply2DTransform2=Ka.apply2DTransform2;Ze.convertCssMatrix=Ka.convertCssMatrix;Ze.inverseTransformMatrix=Ka.inverseTransformMatrix;var ki=v6();Ze.deg2rad=ki.deg2rad;Ze.rad2deg=ki.rad2deg;Ze.angleDelta=ki.angleDelta;Ze.angleDist=ki.angleDist;Ze.isFullCircle=ki.isFullCircle;Ze.isAngleInsideSector=ki.isAngleInsideSector;Ze.isPtInsideSector=ki.isPtInsideSector;Ze.pathArc=ki.pathArc;Ze.pathSector=ki.pathSector;Ze.pathAnnulus=ki.pathAnnulus;var qs=h6();Ze.isLeftAnchor=qs.isLeftAnchor;Ze.isCenterAnchor=qs.isCenterAnchor;Ze.isRightAnchor=qs.isRightAnchor;Ze.isTopAnchor=qs.isTopAnchor;Ze.isMiddleAnchor=qs.isMiddleAnchor;Ze.isBottomAnchor=qs.isBottomAnchor;var Os=g6();Ze.segmentsIntersect=Os.segmentsIntersect;Ze.segmentDistance=Os.segmentDistance;Ze.getTextLocation=Os.getTextLocation;Ze.clearLocationCache=Os.clearLocationCache;Ze.getVisibleSegment=Os.getVisibleSegment;Ze.findPointOnPath=Os.findPointOnPath;var jc=Mt();Ze.extendFlat=jc.extendFlat;Ze.extendDeep=jc.extendDeep;Ze.extendDeepAll=jc.extendDeepAll;Ze.extendDeepNoArrays=jc.extendDeepNoArrays;var Op=Al();Ze.log=Op.log;Ze.warn=Op.warn;Ze.error=Op.error;var dV=Es();Ze.counterRegex=dV.counter;var Bp=Jc();Ze.throttle=Bp.throttle;Ze.throttleDone=Bp.done;Ze.clearThrottle=Bp.clear;var Qa=vf();Ze.getGraphDiv=Qa.getGraphDiv;Ze.isPlotDiv=Qa.isPlotDiv;Ze.removeElement=Qa.removeElement;Ze.addStyleRule=Qa.addStyleRule;Ze.addRelatedStyleRule=Qa.addRelatedStyleRule;Ze.deleteRelatedStyleRule=Qa.deleteRelatedStyleRule;Ze.setStyleOnHover=Qa.setStyleOnHover;Ze.getFullTransformMatrix=Qa.getFullTransformMatrix;Ze.getElementTransformMatrix=Qa.getElementTransformMatrix;Ze.getElementAndAncestors=Qa.getElementAndAncestors;Ze.equalDomRects=Qa.equalDomRects;Ze.clearResponsive=x6();Ze.preserveDrawingBuffer=w6();Ze.makeTraceGroups=T6();Ze._=k6();Ze.notifier=yp();Ze.filterUnique=C6();Ze.filterVisible=L6();Ze.pushUnique=bp();Ze.increment=D6();Ze.cleanNumber=F6();Ze.ensureNumber=function(r){return B6(r)?(r=Number(r),r>H6||r=r?!1:B6(e)&&e>=0&&e%1===0};Ze.noop=Ic();Ze.identity=Lp();Ze.repeat=function(e,r){for(var t=new Array(r),n=0;nt?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Ze.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};Ze.simpleMap=function(e,r,t,n,a){for(var o=e.length,i=new Array(o),l=0;l=Math.pow(2,t)?a>10?(Ze.warn("randstr failed uniqueness"),i):e(r,t,n,(a||0)+1):i};Ze.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};Ze.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,o=new Array(a),i=new Array(t),l,u,s,f;for(l=0;l=n&&(s-=n*Math.floor(s/n)),s<0?s=-1-s:s>=t&&(s=n-1-s),f+=e[s]*o[u];i[l]=f}return i};Ze.syncOrAsync=function(e,r,t){var n,a;function o(){return Ze.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(o);return t&&t(r)};Ze.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};Ze.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,o,i;for(o=0;o0?a:0})};Ze.fillArray=function(e,r,t,n){if(n=n||Ze.identity,Ze.isArrayOrTypedArray(e))for(var a=0;ayV.test(window.navigator.userAgent);var mV=/Firefox\/(\d+)\.\d+/;Ze.getFirefoxVersion=function(){var e=mV.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Ze.isD3Selection=function(e){return e instanceof bf.selection};Ze.ensureSingle=function(e,r,t,n){var a=e.select(r+(t?"."+t:""));if(a.size())return a;var o=e.append(r);return t&&o.classed(t,!0),n&&o.call(n),o};Ze.ensureSingleById=function(e,r,t,n){var a=e.select(r+"#"+t);if(a.size())return a;var o=e.append(r).attr("id",t);return n&&o.call(n),o};Ze.objectFromPath=function(e,r){for(var t=e.split("."),n,a=n={},o=0;o1?a+i[1]:"";if(o&&(i.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+o+"$2");return l+u};Ze.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var W6=/^\w*$/;Ze.templateString=function(e,r){var t={};return e.replace(Ze.TEMPLATE_STRING_REGEX,function(n,a){var o;return W6.test(a)?o=r[a]:(t[a]=t[a]||Ze.nestedProperty(r,a).get,o=t[a](!0)),o!==void 0?o:""})};var _V={max:10,count:0,name:"hovertemplate"};Ze.hovertemplateString=function(){return Up.apply(_V,arguments)};var wV={max:10,count:0,name:"texttemplate"};Ze.texttemplateString=function(){return Up.apply(wV,arguments)};var MV=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function TV(e){var r=e.match(MV);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var AV={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ze.texttemplateStringForShapes=function(){return Up.apply(AV,arguments)};var z6=/^[:|\|]/;function Up(e,r,t){var n=this,a=arguments;return r||(r={}),e.replace(Ze.TEMPLATE_STRING_REGEX,function(o,i,l){var u=i==="xother"||i==="yother",s=i==="_xother"||i==="_yother",f=i==="_xother_"||i==="_yother_",v=i==="xother_"||i==="yother_",p=u||s||v||f,b=i;(s||f)&&(b=b.substring(1)),(v||f)&&(b=b.substring(0,b.length-1));var m=null,w=null;if(n.parseMultDiv){var M=TV(b);b=M.key,m=M.op,w=M.number}var y;if(p){if(y=r[b],y===void 0)return""}else{var k,S;for(S=3;S=$c&&i<=q6,s=l>=$c&&l<=q6;if(u&&(n=10*n+i-$c),s&&(a=10*a+l-$c),!u||!s){if(n!==a)return n-a;if(i!==l)return i-l}}return a-n};var zs=2e9;Ze.seedPseudoRandom=function(){zs=2e9};Ze.pseudoRandom=function(){var e=zs;return zs=(69069*zs+1)%4294967296,Math.abs(zs-e)<429496729?Ze.pseudoRandom():zs/4294967296};Ze.fillText=function(e,r,t){var n=Array.isArray(t)?function(i){t.push(i)}:function(i){t.text=i},a=Ze.extractOption(e,r,"htx","hovertext");if(Ze.isValidTextValue(a))return n(a);var o=Ze.extractOption(e,r,"tx","text");if(Ze.isValidTextValue(o))return n(o)};Ze.isValidTextValue=function(e){return e||e===0};Ze.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n1&&(s=1):s=0,Ze.strTranslate(a-s*(t+i),o-s*(n+l))+Ze.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+n)+")":"")};Ze.setTransormAndDisplay=function(e,r){e.attr("transform",Ze.getTextTransform(r)),e.style("display",r.scale?null:"none")};Ze.ensureUniformFontSize=function(e,r){var t=Ze.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Ze.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};Ze.bigFont=function(e){return Math.round(1.2*e)};var O6=Ze.getFirefoxVersion(),kV=O6!==null&&O6<86;Ze.getPositionFromD3Event=function(){return kV?[bf.event.layerX,bf.event.layerY]:[bf.event.offsetX,bf.event.offsetY]}});var K6=pe(()=>{"use strict";var SV=ir(),Z6={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Hp in Z6)J6=Hp.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),SV.addStyleRule(J6,Z6[Hp]);var J6,Hp});var Vp=pe((b0e,Q6)=>{Q6.exports=!0});var Yp=pe((_0e,$6)=>{"use strict";var CV=Vp(),Gp;typeof window.matchMedia=="function"?Gp=!window.matchMedia("(hover: none)").matches:Gp=CV;$6.exports=Gp});var tv=pe((w0e,Wp)=>{"use strict";var Bs=typeof Reflect=="object"?Reflect:null,j6=Bs&&typeof Bs.apply=="function"?Bs.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},ev;Bs&&typeof Bs.ownKeys=="function"?ev=Bs.ownKeys:Object.getOwnPropertySymbols?ev=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:ev=function(r){return Object.getOwnPropertyNames(r)};function EV(e){console&&console.warn&&console.warn(e)}var rw=Number.isNaN||function(r){return r!==r};function Tt(){Tt.init.call(this)}Wp.exports=Tt;Wp.exports.once=PV;Tt.EventEmitter=Tt;Tt.prototype._events=void 0;Tt.prototype._eventsCount=0;Tt.prototype._maxListeners=void 0;var ew=10;function rv(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Tt,"defaultMaxListeners",{enumerable:!0,get:function(){return ew},set:function(e){if(typeof e!="number"||e<0||rw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ew=e}});Tt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Tt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||rw(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function tw(e){return e._maxListeners===void 0?Tt.defaultMaxListeners:e._maxListeners}Tt.prototype.getMaxListeners=function(){return tw(this)};Tt.prototype.emit=function(r){for(var t=[],n=1;n0&&(i=t[0]),i instanceof Error)throw i;var l=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw l.context=i,l}var u=o[r];if(u===void 0)return!1;if(typeof u=="function")j6(u,this,t);else for(var s=u.length,f=lw(u,s),n=0;n0&&i.length>a&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=i.length,EV(l)}return e}Tt.prototype.addListener=function(r,t){return nw(this,r,t,!1)};Tt.prototype.on=Tt.prototype.addListener;Tt.prototype.prependListener=function(r,t){return nw(this,r,t,!0)};function LV(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function aw(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=LV.bind(n);return a.listener=t,n.wrapFn=a,a}Tt.prototype.once=function(r,t){return rv(t),this.on(r,aw(this,r,t)),this};Tt.prototype.prependOnceListener=function(r,t){return rv(t),this.prependListener(r,aw(this,r,t)),this};Tt.prototype.removeListener=function(r,t){var n,a,o,i,l;if(rv(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){l=n[i].listener,o=i;break}if(o<0)return this;o===0?n.shift():RV(n,o),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Tt.prototype.off=Tt.prototype.removeListener;Tt.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var o=Object.keys(n),i;for(a=0;a=0;a--)this.removeListener(r,t[a]);return this};function iw(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?DV(a):lw(a,a.length)}Tt.prototype.listeners=function(r){return iw(this,r,!0)};Tt.prototype.rawListeners=function(r){return iw(this,r,!1)};Tt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):ow.call(e,r)};Tt.prototype.listenerCount=ow;function ow(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Tt.prototype.eventNames=function(){return this._eventsCount>0?ev(this._events):[]};function lw(e,r){for(var t=new Array(r),n=0;n{"use strict";var Xp=tv().EventEmitter,IV={init:function(e){if(e._ev instanceof Xp)return e;var r=new Xp,t=new Xp;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(n,a){r.emit(n,a),t.emit(n,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var o=a._events[r];if(!o)return;function i(u){if(u.listener){if(a.removeListener(r,u.listener),!u.fired)return u.fired=!0,u.listener.apply(a,[t])}else return u.apply(a,[t])}o=Array.isArray(o)?o:[o];var l;for(l=0;l{"use strict";var fw=ir(),NV=Tl().dfltConfig;function zV(e,r){for(var t=[],n,a=0;aNV.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};ji.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};ji.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};ji.undo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n{"use strict";hw.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Vs=pe(jt=>{"use strict";var Ea=Er(),wf=ir(),av=Sn(),Jp=Ds(),qV=Zp(),OV=hf(),BV=Tl().configAttributes,dw=zn(),$a=wf.extendDeepAll,Us=wf.isPlainObject,UV=wf.isArrayOrTypedArray,iv=wf.nestedProperty,HV=wf.valObjectMeta,Kp="_isSubplotObj",ov="_isLinkedToArray",VV="_arrayAttrRegexps",gw="_deprecated",Qp=[Kp,ov,VV,gw];jt.IS_SUBPLOT_OBJ=Kp;jt.IS_LINKED_TO_ARRAY=ov;jt.DEPRECATED=gw;jt.UNDERSCORE_ATTRS=Qp;jt.get=function(){var e={};return Ea.allTypes.forEach(function(r){e[r]=YV(r)}),{defs:{valObjects:HV,metaKeys:Qp.concat(["description","role","editType","impliedEdits"]),editType:{traces:dw.traces,layout:dw.layout},impliedEdits:{}},traces:e,layout:WV(),frames:XV(),animation:Hs(OV),config:Hs(BV)}};jt.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(o){var i=e[o];if(Qp.indexOf(o)===-1){var l=(n?n+".":"")+o;r(i,o,e,a,l),!jt.isValObject(i)&&Us(i)&&o!=="impliedEdits"&&jt.crawl(i,r,a+1,l)}})};jt.isValObject=function(e){return e&&e.valType!==void 0};jt.findArrayAttributes=function(e){var r=[],t=[],n=[],a,o;function i(u,s,f,v){t=t.slice(0,v).concat([s]),n=n.slice(0,v).concat([u&&u._isLinkedToArray]);var p=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(s==="ticktext"||s==="tickvals"));p&&l(a,0,"")}function l(u,s,f){var v=u[t[s]],p=f+t[s];if(s===t.length-1)UV(v)&&r.push(o+p);else if(n[s]){if(Array.isArray(v))for(var b=0;b=o.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var i=r[t];if(!nv(i))return!1;e=o[a][i]}else e=o[a]}else e=o}}return e}function nv(e){return e===Math.round(e)&&e>=0}function YV(e){var r,t;r=Ea.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=$a({},av),o=$a({},r.attributes);jt.crawl(o,function(u,s,f,v,p){iv(a,p).set(void 0),u===void 0&&iv(o,p).set(void 0)}),$a(n,a),Ea.traceIs(e,"noOpacity")&&delete n.opacity,Ea.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),Ea.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,$a(n,o),t.attributes&&$a(n,t.attributes),n.type=e;var i={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Hs(n)};if(r.layoutAttributes){var l={};$a(l,r.layoutAttributes),i.layoutAttributes=Hs(l)}return r.animatable||jt.crawl(i,function(u){jt.isValObject(u)&&"anim"in u&&delete u.anim}),i}function WV(){var e={},r,t;$a(e,Jp);for(r in Ea.subplotsRegistry)if(t=Ea.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n{"use strict";var Gs=ir(),$V=Sn(),Po="templateitemname",$p={name:{valType:"string",editType:"none"}};$p[Po]={valType:"string",editType:"calc"};Ll.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=$p.name,r[Po]=$p[Po],r};Ll.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(o){t=Gs.coerce(o,{},$V,"type");var i={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,i._template=n[l]}return i}return{newTrace:a}};Ll.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);Gs.isPlainObject(a)||(a=null);var o=e[r]={_template:a};return o};Ll.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[xw(r)],o=n&&n[r];(!Array.isArray(o)||!o.length)&&(o=[]);var i={};function l(s){var f={name:s.name,_input:s},v=f[Po]=s[Po];if(!mw(v))return f._template=a,f;for(var p=0;p=n&&(t._input||{})._templateitemname;o&&(a=n);var i=r+"["+a+"]",l;function u(){l={},o&&(l[i]={},l[i][Po]=o)}u();function s(b,m){l[b]=m}function f(b,m){o?Gs.nestedProperty(l[i],b).set(m):l[i+"."+b]=m}function v(){var b=l;return u(),b}function p(b,m){b&&f(b,m);var w=v();for(var M in w)Gs.nestedProperty(e,M).set(w[M])}return{modifyBase:s,modifyItem:f,getUpdateObj:v,applyUpdate:p}}});var wn=pe((C0e,bw)=>{"use strict";var Mf=Es().counter;bw.exports={idRegex:{x:Mf("x","( domain)?"),y:Mf("y","( domain)?")},attrRegex:Mf("[xy]axis"),xAxisMatch:Mf("xaxis"),yAxisMatch:Mf("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var en=pe(na=>{"use strict";var jV=Er(),jp=wn();na.id2name=function(r){if(!(typeof r!="string"||!r.match(jp.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};na.name2id=function(r){if(r.match(jp.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};na.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(jp.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var o=r.split(" ")[0].substr(1).replace(/^0+/,"");return o==="1"&&(o=""),r.charAt(0)+o+(a&&n?" domain":"")}};na.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=na.listIds(e,r),o=new Array(a.length),i;for(i=0;in?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};na.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function _w(e,r){if(r&&r.length){for(var t=0;t{"use strict";function eG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function rG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}ww.exports={clearOutlineControllers:eG,clearOutline:rG}});var lv=pe((R0e,Mw)=>{"use strict";Mw.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Tf=pe(uv=>{"use strict";var sv=Er(),D0e=wn().SUBPLOT_PATTERN;uv.getSubplotCalcData=function(e,r,t){var n=sv.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,o=[],i=0;i{"use strict";var tG=Er(),Ys=ir();Rl.manageCommandObserver=function(e,r,t,n){var a={},o=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var i=Rl.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(i)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(i){Tw(e,i,a.cache),a.check=function(){if(o){var f=Tw(e,i,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:i.type,prop:i.prop,traces:i.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0?".":"")+a;Ys.isPlainObject(o)?eg(o,r,i,n+1):r(i,a,o)}})}});var ln=pe((I0e,Uw)=>{"use strict";var Fw=ot(),aG=ks().timeFormatLocale,iG=op().formatLocale,Af=tt(),oG=lp(),lt=Er(),Iw=Vs(),lG=gt(),xr=ir(),Nw=Zr(),Cw=an().BADNUM,aa=en(),sG=Fo().clearOutline,uG=lv(),rg=hf(),fG=Zp(),cG=Tf().getModuleCalcData,Ew=xr.relinkPrivateKeys,Dl=xr._,cr=Uw.exports={};xr.extendFlat(cr,lt);cr.attributes=Sn();cr.attributes.type.values=cr.allTypes;cr.fontAttrs=kn();cr.layoutAttributes=Ds();var cv=Sw();cr.executeAPICommand=cv.executeAPICommand;cr.computeAPICommandBindings=cv.computeAPICommandBindings;cr.manageCommandObserver=cv.manageCommandObserver;cr.hasSimpleAPICommandBindings=cv.hasSimpleAPICommandBindings;cr.redrawText=function(e){return e=xr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(lt.getComponentMethod("annotations","draw")(e),lt.getComponentMethod("legend","draw")(e),lt.getComponentMethod("colorbar","draw")(e),r(cr.previousPromises(e)))},300)})};cr.resize=function(e){e=xr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||xr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||xr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var o=e.changed;e.autoplay=!0,lt.call("relayout",e,{autosize:!0}).then(function(){e.changed=o,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};cr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};cr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=xr.ensureSingle(r._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Nw.defaultLine,"pointer-events":"all"}).each(function(){var s=Fw.select(this);s.append("tspan").classed("js-link-to-tool",!0),s.append("tspan").classed("js-link-spacer",!0),s.append("tspan").classed("js-sourcelinks",!0)})}),n=t.node(),a={y:r._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=r.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=r._paper.attr("width")-7),t.attr(a);var o=t.select(".js-link-to-tool"),i=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&vG(e,o),i.text(o.text()&&l.text()?" - ":"")}};function vG(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){cr.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),a=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}cr.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=Fw.select(e).append("div").attr("id","hiddenform").style("display","none"),n=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),a=n.append("input").attr({type:"text",name:"data"});return a.node().value=cr.graphJson(e,!1,"keepdata"),n.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var hG=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],dG=["year","month","dayMonth","dayMonthYear"];cr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},o=e.layout||{},i=e._fullData||[],l=e._fullData=[],u=e.data||[],s=e.calcdata||[],f=e._context||{},v;e._transitionData||cr.createTransitionData(e),a._dfltTitle={plot:Dl(e,"Click to enter Plot title"),subtitle:Dl(e,"Click to enter Plot subtitle"),x:Dl(e,"Click to enter X axis title"),y:Dl(e,"Click to enter Y axis title"),colorbar:Dl(e,"Click to enter Colorscale title"),annotation:Dl(e,"new text")},a._traceWord=Dl(e,"trace");var p=Lw(e,hG);if(a._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var b=n.width,m=n.height;cr.supplyLayoutGlobalDefaults(o,a,p),o.width||(a.width=b),o.height||(a.height=m),cr.sanitizeMargins(a)}else{cr.supplyLayoutGlobalDefaults(o,a,p);var w=!o.width||!o.height,M=a.autosize,y=f.autosizable,k=w&&(M||y);k?cr.plotAutoSize(e,o,a):w&&cr.sanitizeMargins(a),!M&&w&&(o.width=a.width,o.height=a.height)}a._d3locale=yG(p,a.separators),a._extraFormat=Lw(e,dG),a._initialAutoSizeIsDone=!0,a._dataLength=u.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var S=a._subplots=gG(),x=a._splomAxes={x:{},y:{}},T=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=pG(i,u),cr.supplyDataDefaults(u,l,o,a);var d=Object.keys(x.x),_=Object.keys(x.y);if(d.length>1&&_.length>1){for(lt.getComponentMethod("grid","sizeDefaults")(o,a),v=0;v15&&_.length>15&&a.shapes.length===0&&a.images.length===0,cr.linkSubplots(l,a,i,n),cr.cleanPlot(l,a,i,n);var R=!!(n._has&&n._has("cartesian")),E=!!(a._has&&a._has("cartesian")),D=R,N=E;D&&!N?n._bgLayer.remove():N&&!D&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&sG({_fullLayout:n}),mG(l,a),Ew(a,n),lt.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var I=a._tracePreGUI,F={},L;for(L in I)F[L]="old";for(v=0;v0){var f=1-2*o;i=Math.round(f*i),l=Math.round(f*l)}}var v=cr.layoutAttributes.width.min,p=cr.layoutAttributes.height.min;i1,m=!t.height&&Math.abs(n.height-l)>1;(m||b)&&(b&&(n.width=i),m&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:i,height:l}),cr.sanitizeMargins(n)};cr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=lt.componentsRegistry,o=r._basePlotModules,i,l,u,s=lt.subplotsRegistry.cartesian;for(i in a)u=a[i],u.includeBasePlot&&u.includeBasePlot(e,r);o.length||o.push(s),r._has("cartesian")&&(lt.getComponentMethod("grid","contentDefaults")(e,r),s.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(xr.subplotSort);for(l=0;l1&&(t.l/=M,t.r/=M)}if(p){var y=(t.t+t.b)/p;y>1&&(t.t/=y,t.b/=y)}var k=t.xl!==void 0?t.xl:t.x,S=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,T=t.yb!==void 0?t.yb:t.y;b[r]={l:{val:k,size:t.l+w},r:{val:S,size:t.r+w},b:{val:T,size:t.b+w},t:{val:x,size:t.t+w}},m[r]=1}if(!n._replotting)return cr.doAutoMargin(e)}};function bG(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=aa.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}cr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),zw(r);var a=r._size,o=r.margin,i={t:0,b:0,l:0,r:0},l=xr.extendFlat({},a),u=o.l,s=o.r,f=o.t,v=o.b,p=r._pushmargin,b=r._pushmarginIds,m=r.minreducedwidth,w=r.minreducedheight;if(o.autoexpand!==!1){for(var M in p)b[M]||delete p[M];var y=e._fullLayout._reservedMargin;for(var k in y)for(var S in y[k]){var x=y[k][S];i[S]=Math.max(i[S],x)}p.base={l:{val:0,size:u},r:{val:1,size:s},t:{val:1,size:f},b:{val:0,size:v}};for(var T in i){var d=0;for(var _ in p)_!=="base"&&Af(p[_][T].size)&&(d=p[_][T].size>d?p[_][T].size:d);var g=Math.max(0,o[T]-d);i[T]=Math.max(0,i[T]-g)}for(var c in p){var A=p[c].l||{},h=p[c].b||{},R=A.val,E=A.size,D=h.val,N=h.size,I=t-i.r-i.l,F=n-i.t-i.b;for(var L in p){if(Af(E)&&p[L].r){var P=p[L].r.val,O=p[L].r.size;if(P>R){var U=(E*P+(O-I)*R)/(P-R),X=(O*(1-R)+(E-I)*(1-P))/(P-R);U+X>u+s&&(u=U,s=X)}}if(Af(N)&&p[L].t){var $=p[L].t.val,j=p[L].t.size;if($>D){var Y=(N*$+(j-F)*D)/($-D),q=(j*(1-D)+(N-F)*(1-$))/($-D);Y+q>v+f&&(v=Y,f=q)}}}}}var K=xr.constrain(t-o.l-o.r,qw,m),ne=xr.constrain(n-o.t-o.b,Ow,w),Q=Math.max(0,t-K),ie=Math.max(0,n-ne);if(Q){var ee=(u+s)/Q;ee>1&&(u/=ee,s/=ee)}if(ie){var V=(v+f)/ie;V>1&&(v/=V,f/=V)}if(a.l=Math.round(u)+i.l,a.r=Math.round(s)+i.r,a.t=Math.round(f)+i.t,a.b=Math.round(v)+i.b,a.p=Math.round(o.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(cr.didMarginChange(l,a)||bG(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var re=3*(1+Object.keys(b).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};cr.graphJson=function(e,r,t,n,a,o){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&cr.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,u=(e._transitionData||{})._frames;function s(p,b){if(typeof p=="function")return b?"_function_":null;if(xr.isPlainObject(p)){var m={},w;return Object.keys(p).sort().forEach(function(S){if(["_","["].indexOf(S.charAt(0))===-1){if(typeof p[S]=="function"){b&&(m[S]="_function");return}if(t==="keepdata"){if(S.substr(S.length-3)==="src")return}else if(t==="keepstream"){if(w=p[S+"src"],typeof w=="string"&&w.indexOf(":")>0&&!xr.isPlainObject(p.stream))return}else if(t!=="keepall"&&(w=p[S+"src"],typeof w=="string"&&w.indexOf(":")>0))return;m[S]=s(p[S],b)}}),m}var M=Array.isArray(p),y=xr.isTypedArray(p);if((M||y)&&p.dtype&&p.shape){var k=p.bdata;return s({dtype:p.dtype,shape:p.shape,bdata:xr.isArrayBuffer(k)?oG.encode(k):k},b)}return M?p.map(function(S){return s(S,b)}):y?xr.simpleMap(p,xr.identity):xr.isJSDate(p)?xr.ms2DateTimeLocal(+p):p}var f={data:(i||[]).map(function(p){var b=s(p);return r&&delete b.fit,b})};if(!r&&(f.layout=s(l),a)){var v=l._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return u&&(f.frames=s(u)),o&&(f.config=s(e._context,!0)),n==="object"?f:JSON.stringify(f)};cr.modifyFrames=function(e,r){var t,n,a,o=e._transitionData._frames,i=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return lt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var p=0,b=0;function m(){return p++,function(){b++,!n&&b===p&&l(v)}}t.runFn(m),setTimeout(m())})}function l(v){if(e._transitionData)return o(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return lt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function u(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var s=[cr.previousPromises,u,t.prepareFn,cr.rehover,cr.reselect,i],f=xr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}cr.doCalcdata=function(e,r){var t=aa.list(e),n=e._fullData,a=e._fullLayout,o,i,l,u,s=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=s,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l=0;u--)if(T[u].enabled){o._indexToPoints=T[u]._indexToPoints;break}i&&i.calc&&(x=i.calc(e,o))}(!Array.isArray(x)||!x[0])&&(x=[{x:Cw,y:Cw}]),x[0].t||(x[0].t={}),x[0].trace=o,s[k]=x}}for(Dw(t,n,a),l=0;l{"use strict";Pl.xmlns="http://www.w3.org/2000/xmlns/";Pl.svg="http://www.w3.org/2000/svg";Pl.xlink="http://www.w3.org/1999/xlink";Pl.svgAttrs={xmlns:Pl.svg,"xmlns:xlink":Pl.xlink}});var qn=pe((z0e,Hw)=>{"use strict";Hw.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Yn=pe(La=>{"use strict";var Yt=ot(),eo=ir(),TG=eo.strTranslate,tg=Io(),AG=qn().LINE_SPACING,kG=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;La.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match(kG),o=Yt.select(e.node().parentNode);if(o.empty())return;var i=e.attr("class")?e.attr("class").split(" ")[0]:"text";i+="-math",o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){o.empty()||(i=e.attr("class")+"-math",o.select("svg."+i).remove()),e.text("").style("white-space","pre");var u=OG(e.node(),n);u&&e.style("pointer-events","all"),La.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(u){e.style("display","none");var s=parseInt(e.node().style.fontSize,10),f={fontSize:s};LG(a[2],f,function(v,p,b){o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){l(),u();return}var w=o.append("g").classed(i+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});w.node().appendChild(m.node()),p&&p.node()&&m.node().insertBefore(p.node().cloneNode(!0),m.node().firstChild);var M=b.width,y=b.height;m.attr({class:i,height:y,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var k=e.node().style.fill||"black",S=m.select("g");S.attr({fill:k,stroke:k});var x=S.node().getBoundingClientRect(),T=x.width,d=x.height;(T>M||d>y)&&(m.style("overflow","hidden"),x=m.node().getBoundingClientRect(),T=x.width,d=x.height);var _=+e.attr("x"),g=+e.attr("y"),c=s||e.node().getBoundingClientRect().height,A=-c/4;if(i[0]==="y")w.attr({transform:"rotate("+[-90,_,g]+")"+TG(-T/2,A-d/2)});else if(i[0]==="l")g=A-d/2;else if(i[0]==="a"&&i.indexOf("atitle")!==0)_=0,g=A;else{var h=e.attr("text-anchor");_=_-T*(h==="middle"?.5:h==="end"?1:0),g=g+A-d/2}m.attr({x:_,y:g}),t&&t.call(e,w),u(w)})})):l(),e};var SG=/(<|<|<)/g,CG=/(>|>|>)/g;function EG(e){return e.replace(SG,"\\lt ").replace(CG,"\\gt ")}var Vw=[["$","$"],["\\(","\\)"]];function LG(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){eo.warn("No MathJax version:",MathJax.version);return}var a,o,i,l,u=function(){return o=eo.extendDeepAll({},MathJax.Hub.config),i=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Vw},displayAlign:"left"})},s=function(){o=eo.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Vw},f=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},v=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},p=function(){var k="math-output-"+eo.randstr({},64);l=Yt.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(EG(e));var S=l.node();return n===2?MathJax.Hub.Typeset(S):MathJax.typeset([S])},b=function(){var k=l.select(n===2?".MathJax_SVG":".MathJax"),S=!k.empty()&&l.select("svg").node();if(!S)eo.log("There was an error in the tex syntax.",e),t();else{var x=S.getBoundingClientRect(),T;n===2?T=Yt.select("body").select("#MathJax_SVG_glyphs"):T=k.select("defs"),t(k,T,x)}l.remove()},m=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},w=function(){a!=="svg"&&(MathJax.config.startup.output=a)},M=function(){return i!==void 0&&(MathJax.Hub.processSectionDelay=i),MathJax.Hub.Config(o)},y=function(){MathJax.config=o};n===2?MathJax.Hub.Queue(u,f,p,b,m,M):n===3&&(s(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){p(),b(),w(),y()}))}var Xw={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},RG={sub:"0.3em",sup:"-0.6em"},DG={sub:"-0.21em",sup:"0.42em"},Gw="\u200B",Yw=["http:","https:","mailto:","",void 0,":"],Zw=La.NEWLINES=/(\r\n?|\n)/g,ag=/(<[^<>]*>)/,ig=/<(\/?)([^ >]*)(\s+(.*))?>/i,PG=//i;La.BR_TAG_ALL=//gi;var Jw=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Kw=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Qw=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,FG=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Fl(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&vv(n)}var IG=/(^|;)\s*color:/;La.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",o=a.length,i=e.split(ag),l=[],u="",s=0,f=0;fo?l.push(v.substr(0,w-o)+a):l.push(v.substr(0,w));break}u=""}}return l.join("")};var NG={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},zG=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function vv(e){return e.replace(zG,function(r,t){var n;return t.charAt(0)==="#"?n=qG(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):n=NG[t],n||r})}La.convertEntities=vv;function qG(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function OG(e,r){r=r.replace(Zw," ");var t=!1,n=[],a,o=-1;function i(){o++;var d=document.createElementNS(tg.svg,"tspan");Yt.select(d).attr({class:"line",dy:o*AG+"em"}),e.appendChild(d),a=d;var _=n;if(n=[{node:d}],_.length>1)for(var g=1;g<_.length;g++)l(_[g])}function l(d){var _=d.type,g={},c;if(_==="a"){c="a";var A=d.target,h=d.href,R=d.popup;h&&(g={"xlink:xlink:show":A==="_blank"||A.charAt(0)!=="_"?"new":"replace",target:A,"xlink:xlink:href":h},R&&(g.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+R+'");return false;'))}else c="tspan";d.style&&(g.style=d.style);var E=document.createElementNS(tg.svg,c);if(_==="sup"||_==="sub"){u(a,Gw),a.appendChild(E);var D=document.createElementNS(tg.svg,"tspan");u(D,Gw),Yt.select(D).attr("dy",DG[_]),g.dy=RG[_],a.appendChild(E),a.appendChild(D)}else a.appendChild(E);Yt.select(E).attr(g),a=d.node=E,n.push(d)}function u(d,_){d.appendChild(document.createTextNode(_))}function s(d){if(n.length===1){eo.log("Ignoring unexpected end tag .",r);return}var _=n.pop();d!==_.type&&eo.log("Start tag <"+_.type+"> doesnt match end tag <"+d+">. Pretending it did match.",r),a=n[n.length-1].node}var f=PG.test(r);f?i():(a=e,n=[{node:e}]);for(var v=r.split(ag),p=0;p{"use strict";var BG=ot(),dv=Sa(),Sf=tt(),hv=ir(),jw=Zr(),UG=wl().isValid;function HG(e,r,t){var n=r?hv.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var o=!1;if(hv.isArrayOrTypedArray(a)){for(var i=0;i=0;n--,a++){var o=e[n];t[a]=[1-o[0],o[1]]}return t}function i7(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,o=new Array(a),i=0;i{"use strict";var l7=Ap(),GG=l7.FORMAT_LINK,YG=l7.DATE_FORMAT_LINK;function WG(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?og:s7)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function og(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+GG+"."].join(" ")}function s7(e,r){return og(e,r)+[" And for dates see: "+YG+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}u7.exports={axisHoverFormat:WG,descriptionOnlyNumbers:og,descriptionWithDates:s7}});var Ra=pe((H0e,k7)=>{"use strict";var f7=kn(),Ws=Ti(),A7=Ao().dash,sg=Mt().extendFlat,c7=gt().templatedArray,U0e=ha().templateFormatStringDescription,v7=ro().descriptionWithDates,XG=an().ONEDAY,Ci=wn(),ZG=Ci.HOUR_PATTERN,JG=Ci.WEEKDAY_PATTERN,lg={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},KG=sg({},lg,{values:lg.values.slice().concat(["sync"])});function h7(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var d7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},p7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},g7={valType:"data_array",editType:"ticks"},y7={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function m7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function x7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var b7={valType:"color",dflt:Ws.defaultLine,editType:"ticks"},_7={valType:"color",dflt:Ws.lightLine,editType:"ticks"};function w7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var M7=sg({},A7,{editType:"ticks"}),T7={valType:"boolean",editType:"ticks"};k7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Ws.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:f7({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Ci.idRegex.x.toString(),Ci.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Ci.idRegex.x.toString(),Ci.idRegex.y.toString()],editType:"calc"},rangebreaks:c7("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[JG,ZG,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:XG},editType:"calc"}),tickmode:KG,nticks:h7(),tick0:d7,dtick:p7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:g7,ticktext:{valType:"data_array",editType:"ticks"},ticks:y7,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:m7(),tickwidth:x7(),tickcolor:b7,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:sg({},A7,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:f7({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:v7("tick label")},tickformatstops:c7("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:v7("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Ws.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:T7,gridcolor:_7,gridwidth:w7(),griddash:M7,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Ws.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Ws.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Ci.idRegex.x.toString(),Ci.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Ci.idRegex.x.toString(),Ci.idRegex.y.toString()],editType:"plot"},minor:{tickmode:lg,nticks:h7("minor"),tick0:d7,dtick:p7,tickvals:g7,ticks:y7,ticklen:m7("minor"),tickwidth:x7("minor"),tickcolor:b7,gridcolor:_7,gridwidth:w7("minor"),griddash:M7,showgrid:T7,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var pv=pe((V0e,E7)=>{"use strict";var At=Ra(),S7=kn(),C7=Mt().extendFlat,QG=zn().overrideAll;E7.exports=QG({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:At.linecolor,outlinewidth:At.linewidth,bordercolor:At.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:At.minor.tickmode,nticks:At.nticks,tick0:At.tick0,dtick:At.dtick,tickvals:At.tickvals,ticktext:At.ticktext,ticks:C7({},At.ticks,{dflt:""}),ticklabeloverflow:C7({},At.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:At.ticklen,tickwidth:At.tickwidth,tickcolor:At.tickcolor,ticklabelstep:At.ticklabelstep,showticklabels:At.showticklabels,labelalias:At.labelalias,tickfont:S7({}),tickangle:At.tickangle,tickformat:At.tickformat,tickformatstops:At.tickformatstops,tickprefix:At.tickprefix,showtickprefix:At.showtickprefix,ticksuffix:At.ticksuffix,showticksuffix:At.showticksuffix,separatethousands:At.separatethousands,exponentformat:At.exponentformat,minexponent:At.minexponent,showexponent:At.showexponent,title:{text:{valType:"string"},font:S7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var ja=pe((Y0e,R7)=>{"use strict";var $G=pv(),jG=Es().counter,eY=Wc(),L7=wl().scales,G0e=eY(L7);function gv(e){return"`"+e+"`"}R7.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,o="noScale"in t?t.noScale:r==="marker.line",i="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?L7[t.colorscaleDflt]:null,u=t.editTypeOverride||"",s=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[n],v="in "+gv(s+f));var p=a?" Has an effect only if "+v+" is set to a numerical array.":"",b=n+"auto",m=n+"min",w=n+"max",M=n+"mid",y=gv(s+b),k=gv(s+m),S=gv(s+w),x=k+" and "+S,T={};T[m]=T[w]=void 0;var d={};d[b]=!1;var _={};return f==="color"&&(_.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(_.color.anim=!0)),_[b]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},_[m]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},_[w]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},_[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},_.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},_.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},_.reversescale={valType:"boolean",dflt:!1,editType:"plot"},o||(_.showscale={valType:"boolean",dflt:i,editType:"calc"},_.colorbar=$G),t.noColorAxis||(_.coloraxis={valType:"subplotid",regex:jG("coloraxis"),dflt:null,editType:"calc"}),_}});var fg=pe((W0e,D7)=>{"use strict";var rY=Mt().extendFlat,tY=ja(),ug=wl().scales;D7.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:ug.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:ug.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:ug.RdBu,editType:"calc"}},coloraxis:rY({_isSubplotObj:!0,editType:"calc"},tY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var cg=pe((X0e,P7)=>{"use strict";var nY=ir();P7.exports=function(r){return nY.isPlainObject(r.colorbar)}});var dg=pe(hg=>{"use strict";var vg=tt(),F7=ir(),I7=an(),aY=I7.ONEDAY,iY=I7.ONEWEEK;hg.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",o=n?aY:1;if(!e)return o;if(vg(e))return e=Number(e),e<=0?o:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return o;var i=e.charAt(0),l=e.substr(1);return l=vg(l)?Number(l):0,l<=0||!(n&&i==="M"&&l===Math.round(l)||t&&i==="L"||t&&i==="D"&&(l===1||l===2))?o:e};hg.tick0=function(e,r,t,n){if(r==="date")return F7.cleanDate(e,F7.dateTick0(t,n%iY===0?1:0));if(!(n==="D1"||n==="D2"))return vg(e)?Number(e):0}});var pg=pe((J0e,z7)=>{"use strict";var N7=dg(),oY=ir().isArrayOrTypedArray,lY=jn().isTypedArraySpec,sY=jn().decodeTypedArraySpec;z7.exports=function(r,t,n,a,o){o||(o={});var i=o.isMinor,l=i?r.minor||{}:r,u=i?t.minor:t,s=i?"minor.":"";function f(k){var S=l[k];return lY(S)&&(S=sY(S)),S!==void 0?S:(u._template||{})[k]}var v=f("tick0"),p=f("dtick"),b=f("tickvals"),m=oY(b)?"array":p?"linear":"auto",w=n(s+"tickmode",m);if(w==="auto"||w==="sync")n(s+"nticks");else if(w==="linear"){var M=u.dtick=N7.dtick(p,a);u.tick0=N7.tick0(v,a,t.calendar,M)}else if(a!=="multicategory"){var y=n(s+"tickvals");y===void 0?u.tickmode="auto":i||n("ticktext")}}});var yg=pe((K0e,O7)=>{"use strict";var gg=ir(),q7=Ra();O7.exports=function(r,t,n,a){var o=a.isMinor,i=o?r.minor||{}:r,l=o?t.minor:t,u=o?q7.minor:q7,s=o?"minor.":"",f=gg.coerce2(i,l,u,"ticklen",o?(t.ticklen||5)*.6:void 0),v=gg.coerce2(i,l,u,"tickwidth",o?t.tickwidth||1:void 0),p=gg.coerce2(i,l,u,"tickcolor",(o?t.tickcolor:void 0)||l.color),b=n(s+"ticks",!o&&a.outerTicks||f||v||p?"outside":"");b||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var mg=pe((Q0e,B7)=>{"use strict";B7.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(o){return r[o]!==void 0}),a=function(o){return r[o]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var ei=pe(($0e,U7)=>{"use strict";var yv=ir(),uY=gt();U7.exports=function(r,t,n){var a=n.name,o=n.inclusionAttr||"visible",i=t[a],l=yv.isArrayOrTypedArray(r[a])?r[a]:[],u=t[a]=[],s=uY.arrayTemplater(t,a,o),f,v;for(f=0;f{"use strict";var xg=ir(),fY=Zr().contrast,H7=Ra(),cY=mg(),vY=ei();V7.exports=function(r,t,n,a,o){o||(o={});var i=n("labelalias");xg.isPlainObject(i)||delete t.labelalias;var l=cY(r),u=n("showticklabels");if(u){o.noTicklabelshift||n("ticklabelshift"),o.noTicklabelstandoff||n("ticklabelstandoff");var s=o.font||{},f=t.color,v=t.ticklabelposition||"",p=v.indexOf("inside")!==-1?fY(o.bgColor):f&&f!==H7.color.dflt?f:s.color;if(xg.coerceFont(n,"tickfont",s,{overrideDflt:{color:p}}),!o.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!o.noAng){var b=n("tickangle");!o.noAutotickangles&&b==="auto"&&n("autotickangles")}if(a!=="category"){var m=n("tickformat");vY(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:hY}),t.tickformatstops.length||delete t.tickformatstops,!o.noExp&&!m&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!o.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function hY(e,r){function t(a,o){return xg.coerce(e,r,H7.tickformatstops,a,o)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var _g=pe((ece,G7)=>{"use strict";var dY=mg();G7.exports=function(r,t,n,a,o){o||(o={});var i=o.tickSuffixDflt,l=dY(r),u=n("tickprefix");u&&n("showtickprefix",l);var s=n("ticksuffix",i);s&&n("showticksuffix",l)}});var wg=pe((rce,Y7)=>{"use strict";var No=ir(),pY=gt(),gY=pg(),yY=yg(),mY=bg(),xY=_g(),bY=pv();Y7.exports=function(r,t,n){var a=pY.newContainer(t,"colorbar"),o=r.colorbar||{};function i(h,R){return No.coerce(o,a,bY,h,R)}var l=n.margin||{t:0,b:0,l:0,r:0},u=n.width-l.l-l.r,s=n.height-l.t-l.b,f=i("orientation"),v=f==="v",p=i("thicknessmode");i("thickness",p==="fraction"?30/(v?u:s):30);var b=i("lenmode");i("len",b==="fraction"?1:v?s:u);var m=i("yref"),w=i("xref"),M=m==="paper",y=w==="paper",k,S,x,T="left";v?(x="middle",T=y?"left":"right",k=y?1.02:1,S=.5):(x=M?"bottom":"top",T="center",k=.5,S=M?1.02:1),No.coerce(o,a,{x:{valType:"number",min:y?-2:0,max:y?3:1,dflt:k}},"x"),No.coerce(o,a,{y:{valType:"number",min:M?-2:0,max:M?3:1,dflt:S}},"y"),i("xanchor",T),i("xpad"),i("yanchor",x),i("ypad"),No.noneOrAll(o,a,["x","y"]),i("outlinecolor"),i("outlinewidth"),i("bordercolor"),i("borderwidth"),i("bgcolor");var d=No.coerce(o,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");i("ticklabeloverflow",d.indexOf("inside")!==-1?"hide past domain":"hide past div"),gY(o,a,i,"linear");var _=n.font,g={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:_};d.indexOf("inside")!==-1&&(g.bgColor="black"),xY(o,a,i,"linear",g),mY(o,a,i,"linear",g),yY(o,a,i,"linear",g),i("title.text",n._dfltTitle.colorbar);var c=a.showticklabels?a.tickfont:_,A=No.extendFlat({},_,{family:c.family,size:No.bigFont(c.size)});No.coerceFont(i,"title.font",A),i("title.side",v?"top":"right")}});var Ei=pe((tce,Z7)=>{"use strict";var W7=tt(),Tg=ir(),_Y=cg(),wY=wg(),X7=wl().isValid,MY=Er().traceIs;function Mg(e,r){var t=r.slice(0,r.length-1);return r?Tg.nestedProperty(e,t).get()||{}:e}Z7.exports=function e(r,t,n,a,o){var i=o.prefix,l=o.cLetter,u="_module"in t,s=Mg(r,i),f=Mg(t,i),v=Mg(t._template||{},i)||{},p=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,o)};if(u){var b=n._colorAxes||{},m=a(i+"coloraxis");if(m){var w=MY(t,"contour")&&Tg.nestedProperty(t,"contours.coloring").get()||"heatmap",M=b[m];M?(M[2].push(p),M[0]!==w&&(M[0]=!1,Tg.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):b[m]=[w,t,[p]];return}}var y=s[l+"min"],k=s[l+"max"],S=W7(y)&&W7(k)&&y{"use strict";var J7=ir(),TY=gt(),K7=fg(),AY=Ei();Q7.exports=function(r,t){function n(v,p){return J7.coerce(r,t,K7,v,p)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,o,i;function l(v,p){return J7.coerce(o,i,K7.coloraxis,v,p)}for(var u in a){var s=a[u];if(s[0])o=r[u]||{},i=TY.newContainer(t,u,"coloraxis"),i._name=u,AY(o,i,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var kY=ir(),SY=Si().hasColorscale,CY=Si().extractOpts;j7.exports=function(r,t){function n(f,v){var p=f["_"+v];p!==void 0&&(f[v]=p)}function a(f,v){var p=v.container?kY.nestedProperty(f,v.container).get():f;if(p)if(p.coloraxis)p._colorAx=t[p.coloraxis];else{var b=CY(p),m=b.auto;(m||b.min===void 0)&&n(p,v.min),(m||b.max===void 0)&&n(p,v.max),b.autocolorscale&&n(p,"colorscale")}}for(var o=0;o{"use strict";var r8=tt(),Ag=ir(),EY=Si().extractOpts;t8.exports=function(r,t,n){var a=r._fullLayout,o=n.vals,i=n.containerStr,l=i?Ag.nestedProperty(t,i).get():t,u=EY(l),s=u.auto!==!1,f=u.min,v=u.max,p=u.mid,b=function(){return Ag.aggNums(Math.min,null,o)},m=function(){return Ag.aggNums(Math.max,null,o)};if(f===void 0?f=b():s&&(l._colorAx&&r8(f)?f=Math.min(f,b()):f=b()),v===void 0?v=m():s&&(l._colorAx&&r8(v)?v=Math.max(v,m()):v=m()),s&&p!==void 0&&(v-p>p-f?f=p-(v-p):v-p=0?w=a.colorscale.sequential:w=a.colorscale.sequentialminus,u._sync("colorscale",w)}}});var Li=pe((oce,n8)=>{"use strict";var mv=wl(),Xs=Si();n8.exports={moduleType:"component",name:"colorscale",attributes:ja(),layoutAttributes:fg(),supplyLayoutDefaults:$7(),handleDefaults:Ei(),crossTraceDefaults:e8(),calc:zo(),scales:mv.scales,defaultScale:mv.defaultScale,getScale:mv.get,isValidScale:mv.isValid,hasColorscale:Xs.hasColorscale,extractOpts:Xs.extractOpts,extractScale:Xs.extractScale,flipScale:Xs.flipScale,makeColorScaleFunc:Xs.makeColorScaleFunc,makeColorScaleFuncFromTrace:Xs.makeColorScaleFuncFromTrace}});var ia=pe((lce,i8)=>{"use strict";var a8=ir(),LY=jn().isTypedArraySpec;i8.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return a8.isPlainObject(r)&&(a8.isArrayOrTypedArray(r.size)||LY(r.size))}}});var kg=pe((sce,o8)=>{"use strict";var RY=tt();o8.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,o=n.sizemin||0,i=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var u=i(l/t);return RY(u)&&u>0?Math.max(u,o):0}}});var to=pe(Cn=>{"use strict";var l8=ir();Cn.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Cn.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{f8.exports=NY;var Sg={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},IY=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function NY(e){var r=[];return e.replace(IY,function(t,n,a){var o=n.toLowerCase();for(a=qY(a),o=="m"&&a.length>2&&(r.push([n].concat(a.splice(0,2))),o="l",n=n=="m"?"l":"L");;){if(a.length==Sg[o])return a.unshift(n),r.push(a);if(a.length{"use strict";var OY=Cg(),sr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Fr="M0,0Z",c8=Math.sqrt(2),qo=Math.sqrt(3),Eg=Math.PI,Lg=Math.cos,Rg=Math.sin;g8.exports={circle:{n:0,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?Nr(r,t,a):a}},square:{n:1,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.3,2);return Nr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.4,2),a=sr(e*1.2,2);return Nr(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.8/c8,2),a="l"+n+","+n,o="l"+n+",-"+n,i="l-"+n+",-"+n,l="l-"+n+","+n;return Nr(r,t,"M0,"+n+a+o+i+o+i+l+i+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M-"+n+","+a+"H"+n+"L0,-"+o+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+o+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M"+a+",-"+n+"V"+n+"L-"+o+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M-"+a+",-"+n+"V"+n+"L"+o+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.951,2),a=sr(e*.588,2),o=sr(-e,2),i=sr(e*-.309,2),l=sr(e*.809,2);return Nr(r,t,"M"+n+","+i+"L"+a+","+l+"H-"+a+"L-"+n+","+i+"L0,"+o+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e/2,2),o=sr(e*qo/2,2);return Nr(r,t,"M"+o+",-"+a+"V"+a+"L0,"+n+"L-"+o+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e/2,2),o=sr(e*qo/2,2);return Nr(r,t,"M-"+a+","+o+"H"+a+"L"+n+",0L"+a+",-"+o+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.924,2),a=sr(e*.383,2);return Nr(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(Ir(r))return Fr;var n=e*1.4,a=sr(n*.225,2),o=sr(n*.951,2),i=sr(n*.363,2),l=sr(n*.588,2),u=sr(-n,2),s=sr(n*-.309,2),f=sr(n*.118,2),v=sr(n*.809,2),p=sr(n*.382,2);return Nr(r,t,"M"+a+","+s+"H"+o+"L"+i+","+f+"L"+l+","+v+"L0,"+p+"L-"+l+","+v+"L-"+i+","+f+"L-"+o+","+s+"H-"+a+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.66,2),a=sr(e*.38,2),o=sr(e*.76,2);return Nr(r,t,"M-"+o+",0l-"+a+",-"+n+"h"+o+"l"+a+",-"+n+"l"+a+","+n+"h"+o+"l-"+a+","+n+"l"+a+","+n+"h-"+o+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+o+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*qo*.8,2),a=sr(e*.8,2),o=sr(e*1.6,2),i=sr(e*4,2),l="A "+i+","+i+" 0 0 1 ";return Nr(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+o+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*qo*.8,2),a=sr(e*.8,2),o=sr(e*1.6,2),i=sr(e*4,2),l="A "+i+","+i+" 0 0 1 ";return Nr(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+o+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.1,2),a=sr(e*2,2),o="A "+a+","+a+" 0 0 1 ";return Nr(r,t,"M-"+n+",-"+n+o+"-"+n+","+n+o+n+","+n+o+n+",-"+n+o+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.4,2),a=sr(e*1.9,2),o="A "+a+","+a+" 0 0 1 ";return Nr(r,t,"M-"+n+",0"+o+"0,"+n+o+n+",0"+o+"0,-"+n+o+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.7,2),a=sr(e*1.4,2);return Nr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.4,2),a=sr(e*.7,2);return Nr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e/c8,2);return Nr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.3,2);return Nr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.3,2),a=sr(e*.65,2);return Nr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.4,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.2,2),a=sr(e*.85,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e/2,2),a=sr(e,2);return Nr(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M-"+n+","+o+"L0,0M"+n+","+o+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M-"+n+",-"+o+"L0,0M"+n+",-"+o+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M"+o+","+n+"L0,0M"+o+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M-"+o+","+n+"L0,0M-"+o+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.4,2);return Nr(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.4,2);return Nr(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Ir(r))return Fr;var n=Eg/2.5,a=2*e*Lg(n),o=2*e*Rg(n);return Nr(r,t,"M0,0L"+-a+","+o+"L"+a+","+o+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Ir(r))return Fr;var n=Eg/4,a=2*e*Lg(n),o=2*e*Rg(n);return Nr(r,t,"M0,0L"+-a+","+o+"A "+2*e+","+2*e+" 0 0 1 "+a+","+o+"Z")},backoff:.4,noDot:!0}};function Ir(e){return e===null}var v8,h8,d8,p8;function Nr(e,r,t){if((!e||e%360===0)&&!r)return t;if(d8===e&&p8===r&&v8===t)return h8;d8=e,p8=r,v8=t;function n(M,y){var k=Lg(M),S=Rg(M),x=y[0],T=y[1]+(r||0);return[x*k-T*S,x*S+T*k]}for(var a=e/180*Eg,o=0,i=0,l=OY(t),u="",s=0;s{"use strict";var sn=ot(),pt=ir(),BY=pt.numberFormat,ql=tt(),zg=Sa(),bv=Er(),Mn=Zr(),UY=Li(),Ef=pt.strTranslate,_v=Yn(),HY=Io(),VY=qn(),GY=VY.LINE_SPACING,S8=Pc().DESELECTDIM,YY=ia(),WY=kg(),XY=to().appendArrayPointValue,hr=z8.exports={};hr.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,o=r.color,i=r.size,l=r.family,u=r.shadow,s=r.lineposition,f=r.textcase;l&&e.style("font-family",l),i+1&&e.style("font-size",i+"px"),o&&e.call(Mn.fill,o),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",Dg(JY(f))),u&&e.style("text-shadow",u==="auto"?_v.makeTextShadow(Mn.contrast(o)):Dg(u)),s&&e.style("text-decoration-line",Dg(KY(s)))};function Dg(e){return e==="none"?void 0:e}var ZY={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function JY(e){return ZY[e]}function KY(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}hr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};hr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};hr.setRect=function(e,r,t,n,a){e.call(hr.setPosition,r,t).call(hr.setSize,n,a)};hr.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),o=n.c2p(e.y);if(ql(a)&&ql(o)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",o):r.attr("transform",Ef(a,o));else return!1;return!0};hr.translatePoints=function(e,r,t){e.each(function(n){var a=sn.select(this);hr.translatePoint(n,a,r,t)})};hr.hideOutsideRangePoint=function(e,r,t,n,a,o){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,o)?null:"none")};hr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var o=a[0].trace,i=o.xcalendar,l=o.ycalendar,u=bv.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(s){hr.hideOutsideRangePoint(s,sn.select(this),t,n,i,l)})})}};hr.crispRound=function(e,r,t){return!r||!ql(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};hr.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var o=(((e||[])[0]||{}).trace||{}).line||{},i=t||o.width||0,l=a||o.dash||"";Mn.stroke(r,n||o.color),hr.dashLine(r,l,i)};hr.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var o=(((a||[])[0]||{}).trace||{}).line||{},i=r||o.width||0,l=n||o.dash||"";sn.select(this).call(Mn.stroke,t||o.color).call(hr.dashLine,l,i)})};hr.dashLine=function(e,r,t){t=+t||0,r=hr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};hr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function C8(e,r,t,n){var a=r.fillpattern,o=r.fillgradient,i=hr.getPatternAttr,l=a&&(i(a.shape,0,"")||i(a.path,0,""));if(l){var u=i(a.bgcolor,0,null),s=i(a.fgcolor,0,null),f=a.fgopacity,v=i(a.size,0,8),p=i(a.solidity,0,.3),b=r.uid;hr.pattern(e,"point",t,b,l,v,p,void 0,a.fillmode,u,s,f)}else if(o&&o.type!=="none"){var m=o.type,w="scatterfill-"+r.uid;if(n&&(w="legendfill-"+r.uid),!n&&(o.start!==void 0||o.stop!==void 0)){var M,y;m==="horizontal"?(M={x:o.start,y:0},y={x:o.stop,y:0}):m==="vertical"&&(M={x:0,y:o.start},y={x:0,y:o.stop}),M.x=r._xA.c2p(M.x===void 0?r._extremes.x.min[0].val:M.x,!0),M.y=r._yA.c2p(M.y===void 0?r._extremes.y.min[0].val:M.y,!0),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.max[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.max[0].val:y.y,!0),e.call(R8,t,w,"linear",o.colorscale,"fill",M,y,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(hr.gradient,t,w,m,o.colorscale,"fill")}else r.fillcolor&&e.call(Mn.fill,r.fillcolor)}hr.singleFillStyle=function(e,r){var t=sn.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};C8(e,a,r,!1)};hr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=sn.select(this);n[0].trace&&C8(a,n[0].trace,r,t)})};var m8=y8();hr.symbolNames=[];hr.symbolFuncs=[];hr.symbolBackOffs=[];hr.symbolNeedLines={};hr.symbolNoDot={};hr.symbolNoFill={};hr.symbolList=[];Object.keys(m8).forEach(function(e){var r=m8[e],t=r.n;hr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),hr.symbolNames[t]=e,hr.symbolFuncs[t]=r.f,hr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(hr.symbolNeedLines[t]=!0),r.noDot?hr.symbolNoDot[t]=!0:hr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(hr.symbolNoFill[t]=!0)});var QY=hr.symbolNames.length,$Y="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";hr.symbolNumber=function(e){if(ql(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=hr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=QY||e>=400?0:Math.floor(Math.max(e,0))};function E8(e,r,t,n){var a=e%100;return hr.symbolFuncs[a](r,t,n)+(e>=200?$Y:"")}var x8=BY("~f"),L8={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};hr.gradient=function(e,r,t,n,a,o){var i=L8[n];return R8(e,r,t,i.type,a,o,i.start,i.stop,!1,i.reversed)};function R8(e,r,t,n,a,o,i,l,u,s){var f=a.length,v;n==="linear"?v={node:"linearGradient",attrs:{x1:i.x,y1:i.y,x2:l.x,y2:l.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:s}:n==="radial"&&(v={node:"radialGradient",reversed:s});for(var p=new Array(f),b=0;b=0&&e.i===void 0&&(e.i=o.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?i.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||i.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var s=hr.symbolNumber(e.mx||i.symbol)||0;e.om=s%200>=100;var f=Bg(e,t),v=Og(e,t);r.attr("d",E8(s,u,f,v))}var p=!1,b,m,w;if(e.so)w=l.outlierwidth,m=l.outliercolor,b=i.outliercolor;else{var M=(l||{}).width;w=(e.mlw+1||M+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=n.lineScale(e.mlc):pt.isArrayOrTypedArray(l.color)?m=Mn.defaultLine:m=l.color,pt.isArrayOrTypedArray(i.color)&&(b=Mn.defaultLine,p=!0),"mc"in e?b=e.mcc=n.markerScale(e.mc):b=i.color||i.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(b=n.selectedColorFn(e))}if(e.om)r.call(Mn.stroke,b).style({"stroke-width":(w||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:w)+"px");var y=i.gradient,k=e.mgt;k?p=!0:k=y&&y.type,pt.isArrayOrTypedArray(k)&&(k=k[0],L8[k]||(k=0));var S=i.pattern,x=hr.getPatternAttr,T=S&&(x(S.shape,e.i,"")||x(S.path,e.i,""));if(k&&k!=="none"){var d=e.mgc;d?p=!0:d=y.color;var _=t.uid;p&&(_+="-"+e.i),hr.gradient(r,a,_,k,[[0,d],[1,b]],"fill")}else if(T){var g=!1,c=S.fgcolor;!c&&o&&o.color&&(c=o.color,g=!0);var A=x(c,e.i,o&&o.color||null),h=x(S.bgcolor,e.i,null),R=S.fgopacity,E=x(S.size,e.i,8),D=x(S.solidity,e.i,.3);g=g||e.mcc||pt.isArrayOrTypedArray(S.shape)||pt.isArrayOrTypedArray(S.path)||pt.isArrayOrTypedArray(S.bgcolor)||pt.isArrayOrTypedArray(S.fgcolor)||pt.isArrayOrTypedArray(S.size)||pt.isArrayOrTypedArray(S.solidity);var N=t.uid;g&&(N+="-"+e.i),hr.pattern(r,"point",a,N,T,E,D,e.mcc,S.fillmode,h,A,R)}else pt.isArrayOrTypedArray(b)?Mn.fill(r,b[e.i]):Mn.fill(r,b);w&&Mn.stroke(r,m)}};hr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=hr.tryColorscale(t,""),r.lineScale=hr.tryColorscale(t,"line"),bv.traceIs(e,"symbols")&&(r.ms2mrc=YY.isBubble(e)?WY(e):function(){return(t.size||6)/2}),e.selectedpoints&&pt.extendFlat(r,hr.makeSelectedPointStyleFns(e)),r};hr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},o=t.marker||{},i=n.marker||{},l=a.opacity,u=o.opacity,s=i.opacity,f=u!==void 0,v=s!==void 0;(pt.isArrayOrTypedArray(l)||f||v)&&(r.selectedOpacityFn=function(x){var T=x.mo===void 0?a.opacity:x.mo;return x.selected?f?u:T:v?s:S8*T});var p=a.color,b=o.color,m=i.color;(b||m)&&(r.selectedColorFn=function(x){var T=x.mcc||p;return x.selected?b||T:m||T});var w=a.size,M=o.size,y=i.size,k=M!==void 0,S=y!==void 0;return bv.traceIs(e,"symbols")&&(k||S)&&(r.selectedSizeFn=function(x){var T=x.mrc||w/2;return x.selected?k?M/2:T:S?y/2:T}),r};hr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},o=t.textfont||{},i=n.textfont||{},l=a.color,u=o.color,s=i.color;return r.selectedTextColorFn=function(f){var v=f.tc||l;return f.selected?u||v:s||(u?v:Mn.addOpacity(v,S8))},r};hr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=hr.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(o,i){o.style("opacity",t.selectedOpacityFn(i))}),t.selectedColorFn&&a.push(function(o,i){Mn.fill(o,t.selectedColorFn(i))}),t.selectedSizeFn&&a.push(function(o,i){var l=i.mx||n.symbol||0,u=t.selectedSizeFn(i);o.attr("d",E8(hr.symbolNumber(l),u,Bg(i,r),Og(i,r))),i.mrc2=u}),a.length&&e.each(function(o){for(var i=sn.select(this),l=0;l0?t:0}hr.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=hr.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var o=r.texttemplate,i=t._fullLayout;e.each(function(l){var u=sn.select(this),s=o?pt.extractOption(l,r,"txt","texttemplate"):pt.extractOption(l,r,"tx","text");if(!s&&s!==0){u.remove();return}if(o){var f=r._module.formatLabels,v=f?f(l,r,i):{},p={};XY(p,r,l.i);var b=r._meta||{};s=pt.texttemplateString(s,v,i._d3locale,p,l,b)}var m=l.tp||r.textposition,w=P8(l,r),M=n?n(l):l.tc||r.textfont.color;u.call(hr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:w,color:M}).text(s).call(_v.convertToTspans,t).call(D8,m,w,l.mrc)})}};hr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=hr.makeSelectedTextStyleFns(r);e.each(function(n){var a=sn.select(this),o=t.selectedTextColorFn(n),i=n.tp||r.textposition,l=P8(n,r);Mn.fill(a,o);var u=bv.traceIs(r,"bar-like");D8(a,i,l,n.mrc2||n.mrc,u)})}};var b8=.5;hr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a=u||x>=f&&x<=u)&&(T<=v&&T>=s||T>=v&&T<=s)&&(e=[x,T])}return e}hr.applyBackoff=N8;hr.makeTester=function(){var e=pt.ensureSingleById(sn.select("body"),"svg","js-plotly-tester",function(t){t.attr(HY.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=pt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});hr.tester=e,hr.testref=r};hr.savedBBoxes={};var Fg=0,rW=1e4;hr.bBox=function(e,r,t){t||(t=_8(e));var n;if(t){if(n=hr.savedBBoxes[t],n)return pt.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=_8(a),t){var o=+a.getAttribute("x")||0,i=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var u=hr.bBox(a,!1,t);return o&&(u.left+=o,u.right+=o),i&&(u.top+=i,u.bottom+=i),u}if(t+="~"+o+"~"+i+"~"+l,n=hr.savedBBoxes[t],n)return pt.extendFlat({},n)}}var s,f;r?s=e:(f=hr.tester.node(),s=e.cloneNode(!0),f.appendChild(s)),sn.select(s).attr("transform",null).call(_v.positionText,0,0);var v=s.getBoundingClientRect(),p=hr.testref.node().getBoundingClientRect();r||f.removeChild(s);var b={height:v.height,width:v.width,left:v.left-p.left,top:v.top-p.top,right:v.right-p.left,bottom:v.bottom-p.top};return Fg>=rW&&(hr.savedBBoxes={},Fg=0),t&&(hr.savedBBoxes[t]=b),Fg++,pt.extendFlat({},b)};function _8(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}hr.setClipUrl=function(e,r,t){e.attr("clip-path",qg(r,t))};function qg(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}hr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};hr.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||0,t=t||0,i=i.replace(n,"").trim(),i+=Ef(r,t),i=i.trim(),e[o]("transform",i),i};hr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};hr.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||1,t=t||1,i=i.replace(n,"").trim(),i+="scale("+r+","+t+")",i=i.trim(),e[o]("transform",i),i};var tW=/\s*sc.*/;hr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(tW,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var nW=/translate\([^)]*\)\s*$/;hr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=sn.select(this),o=a.select("text");if(o.node()){var i=parseFloat(o.attr("x")||0),l=parseFloat(o.attr("y")||0),u=(a.attr("transform")||"").match(nW);r===1&&t===1?n=[]:n=[Ef(i,l),"scale("+r+","+t+")",Ef(-i,-l)],u&&n.push(u),a.attr("transform",n.join(""))}})};function Og(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}hr.getMarkerStandoff=Og;var Cf=Math.atan2,Il=Math.cos,Js=Math.sin;function w8(e,r){var t=r[0],n=r[1];return[t*Il(e)-n*Js(e),t*Js(e)+n*Il(e)]}var M8,T8,A8,k8,Ig,Ng;function Bg(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||pt.isArrayOrTypedArray(t))&&(t=0));var n,a,o=r.marker.angleref;if(o==="previous"||o==="north"){if(r._geo){var i=r._geo.project(e.lonlat);n=i[0],a=i[1]}else{var l=r._xA,u=r._yA;if(l&&u)n=l.c2p(e.x),a=u.c2p(e.y);else return 90}if(r._geo){var s=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([s,f+1e-5]),p=r._geo.project([s+1e-5,f]),b=Cf(p[1]-a,p[0]-n),m=Cf(v[1]-a,v[0]-n),w;if(o==="north")w=t/180*Math.PI;else if(o==="previous"){var M=s/180*Math.PI,y=f/180*Math.PI,k=M8/180*Math.PI,S=T8/180*Math.PI,x=k-M,T=Il(S)*Js(x),d=Js(S)*Il(y)-Il(S)*Js(y)*Il(x);w=-Cf(T,d)-Math.PI,M8=s,T8=f}var _=w8(b,[Il(w),0]),g=w8(m,[Js(w),0]);t=Cf(_[1]+g[1],_[0]+g[0])/Math.PI*180,o==="previous"&&!(Ng===r.uid&&e.i===Ig+1)&&(t=null)}if(o==="previous"&&!r._geo)if(Ng===r.uid&&e.i===Ig+1&&ql(n)&&ql(a)){var c=n-A8,A=a-k8,h=r.line&&r.line.shape||"",R=h.slice(h.length-1);R==="h"&&(A=0),R==="v"&&(c=0),t+=Cf(A,c)/Math.PI*180+90}else t=null}return A8=n,k8=a,Ig=e.i,Ng=r.uid,t}hr.getMarkerAngle=Bg});var Lf=pe((hce,U8)=>{"use strict";var Ks=ot(),aW=tt(),iW=ln(),Ug=Er(),Ol=ir(),q8=Ol.strTranslate,wv=yt(),Mv=Zr(),Qs=Yn(),O8=Pc(),oW=qn().OPPOSITE_SIDE,B8=/ [XY][0-9]* /,Hg=1.6,Vg=1.6;function lW(e,r,t){var n=e._fullLayout,a=t.propContainer,o=t.propName,i=t.placeholder,l=t.traceIndex,u=t.avoid||{},s=t.attributes,f=t.transform,v=t.containerGroup,p=1,b=a.title,m=(b&&b.text?b.text:"").trim(),w=!1,M=b&&b.font?b.font:{},y=M.family,k=M.size,S=M.color,x=M.weight,T=M.style,d=M.variant,_=M.textcase,g=M.lineposition,c=M.shadow,A=t.subtitlePropName,h=!!A,R=t.subtitlePlaceholder,E=(a.title||{}).subtitle||{text:"",font:{}},D=E.text.trim(),N=!1,I=1,F=E.font,L=F.family,P=F.size,O=F.color,U=F.weight,X=F.style,$=F.variant,j=F.textcase,Y=F.lineposition,q=F.shadow,K;o==="title.text"?K="titleText":o.indexOf("axis")!==-1?K="axisTitleText":o.indexOf("colorbar")!==-1&&(K="colorbarTitleText");var ne=e._context.edits[K];function Q(Ee,Pe){return Ee===void 0||Pe===void 0?!1:Ee.replace(B8," % ")===Pe.replace(B8," % ")}m===""?p=0:Q(m,i)&&(ne||(m=""),p=.2,w=!0),h&&(D===""?I=0:Q(D,R)&&(ne||(D=""),I=.2,N=!0)),t._meta?m=Ol.templateString(m,t._meta):n._meta&&(m=Ol.templateString(m,n._meta));var ie=m||D||ne,ee;v||(v=Ol.ensureSingle(n._infolayer,"g","g-"+r),ee=n._hColorbarMoveTitle);var V=v.selectAll("text."+r).data(ie?[0]:[]);V.enter().append("text"),V.text(m).attr("class",r),V.exit().remove();var re=null,H=r+"-subtitle",te=D||ne;if(h&&te&&(re=v.selectAll("text."+H).data(te?[0]:[]),re.enter().append("text"),re.text(D).attr("class",H),re.exit().remove()),!ie)return v;function ue(Ee,Pe){Ol.syncOrAsync([de,ke],{title:Ee,subtitle:Pe})}function de(Ee){var Pe=Ee.title,Se=Ee.subtitle,Ne;!f&&ee&&(f={}),f?(Ne="",f.rotate&&(Ne+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||ee)&&(Ne+=q8(0,(f.offset||0)-(ee||0)))):Ne=null,Pe.attr("transform",Ne);function Be(ce){if(ce){var he=Ks.select(ce.node().parentNode).select("."+H);if(!he.empty()){var ye=ce.node().getBBox();if(ye.height){var Ce=ye.y+ye.height+Hg*P;he.attr("y",Ce)}}}}if(Pe.style("opacity",p*Mv.opacity(S)).call(wv.font,{color:Mv.rgb(S),size:Ks.round(k,2),family:y,weight:x,style:T,variant:d,textcase:_,shadow:c,lineposition:g}).attr(s).call(Qs.convertToTspans,e,Be),Se){var ge=v.select("."+r+"-math-group"),we=Pe.node().getBBox(),Me=ge.node()?ge.node().getBBox():void 0,me=Me?Me.y+Me.height+Hg*P:we.y+we.height+Vg*P,Re=Ol.extendFlat({},s,{y:me});Se.attr("transform",Ne),Se.style("opacity",I*Mv.opacity(O)).call(wv.font,{color:Mv.rgb(O),size:Ks.round(P,2),family:L,weight:U,style:X,variant:$,textcase:j,shadow:q,lineposition:Y}).attr(Re).call(Qs.convertToTspans,e)}return iW.previousPromises(e)}function ke(Ee){var Pe=Ee.title,Se=Ks.select(Pe.node().parentNode);if(u&&u.selection&&u.side&&m){Se.attr("transform",null);var Ne=oW[u.side],Be=u.side==="left"||u.side==="top"?-1:1,ge=aW(u.pad)?u.pad:2,we=wv.bBox(Se.node()),Me={t:0,b:0,l:0,r:0},me=e._fullLayout._reservedMargin;for(var Re in me)for(var ce in me[Re]){var he=me[Re][ce];Me[ce]=Math.max(Me[ce],he)}var ye={left:Me.l,top:Me.t,right:n.width-Me.r,bottom:n.height-Me.b},Ce=u.maxShift||Be*(ye[u.side]-we[u.side]),ze=0;if(Ce<0)ze=Ce;else{var qe=u.offsetLeft||0,$e=u.offsetTop||0;we.left-=qe,we.right-=qe,we.top-=$e,we.bottom-=$e,u.selection.each(function(){var Ue=wv.bBox(this);Ol.bBoxIntersect(we,Ue,ge)&&(ze=Math.max(ze,Be*(Ue[u.side]-we[Ne])+ge))}),ze=Math.min(Ce,ze),a._titleScoot=Math.abs(ze)}if(ze>0||Ce<0){var We={left:[-ze,0],right:[ze,0],top:[0,-ze],bottom:[0,ze]}[u.side];Se.attr("transform",q8(We[0],We[1]))}}}V.call(ue,re);function Ae(Ee,Pe){Ee.text(Pe).on("mouseover.opacity",function(){Ks.select(this).transition().duration(O8.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Ks.select(this).transition().duration(O8.HIDE_PLACEHOLDER).style("opacity",0)})}if(ne&&(m?V.on(".opacity",null):(Ae(V,i),w=!0),V.call(Qs.makeEditable,{gd:e}).on("edit",function(Ee){l!==void 0?Ug.call("_guiRestyle",e,o,Ee,l):Ug.call("_guiRelayout",e,o,Ee)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ue)}).on("input",function(Ee){this.text(Ee||" ").call(Qs.positionText,s.x,s.y)}),h)){if(h&&!m){var ve=V.node().getBBox(),Te=ve.y+ve.height+Vg*P;re.attr("y",Te)}D?re.on(".opacity",null):(Ae(re,R),N=!0),re.call(Qs.makeEditable,{gd:e}).on("edit",function(Ee){Ug.call("_guiRelayout",e,"title.subtitle.text",Ee)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ue)}).on("input",function(Ee){this.text(Ee||" ").call(Qs.positionText,re.attr("x"),re.attr("y"))})}return V.classed("js-placeholder",w),re&&re.classed("js-placeholder",N),v}U8.exports={draw:lW,SUBTITLE_PADDING_EM:Vg,SUBTITLE_PADDING_MATHJAX_EM:Hg}});var Rv=pe((dce,W8)=>{"use strict";var sW=ot(),uW=ks().utcFormat,mt=ir(),fW=mt.numberFormat,Ri=tt(),Oo=mt.cleanNumber,cW=mt.ms2DateTime,H8=mt.dateTime2ms,Di=mt.ensureNumber,V8=mt.isArrayOrTypedArray,Bo=an(),Tv=Bo.FP_SAFE,ri=Bo.BADNUM,vW=Bo.LOG_CLIP,hW=Bo.ONEWEEK,Av=Bo.ONEDAY,kv=Bo.ONEHOUR,G8=Bo.ONEMIN,Y8=Bo.ONESEC,Sv=en(),Lv=wn(),Cv=Lv.HOUR_PATTERN,Ev=Lv.WEEKDAY_PATTERN;function Rf(e){return Math.pow(10,e)}function Gg(e){return e!=null}W8.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function o(x,T){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&T&&r.range&&r.range.length===2){var d=r.range[0],_=r.range[1];return .5*(d+_-2*vW*Math.abs(d-_))}else return ri}function i(x,T,d,_){if((_||{}).msUTC&&Ri(x))return+x;var g=H8(x,d||r.calendar);if(g===ri)if(Ri(x)){x=+x;var c=Math.floor(mt.mod(x+.05,1)*10),A=Math.round(x-c/10);g=H8(new Date(A))+c/10}else return ri;return g}function l(x,T,d){return cW(x,T,d||r.calendar)}function u(x){return r._categories[Math.round(x)]}function s(x){if(Gg(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var T=r._categories.length-1;return r._categoriesMap[x]=T,T}return ri}function f(x,T){for(var d=new Array(T),_=0;_r.range[1]&&(d=!d);for(var _=d?-1:1,g=_*x,c=0,A=0;AR)c=A+1;else{c=g<(h+R)/2?A:A+1;break}}var E=r._B[c]||0;return isFinite(E)?m(x,r._m2,E):0},y=function(x){var T=r._rangebreaks.length;if(!T)return w(x,r._m,r._b);for(var d=0,_=0;_r._rangebreaks[_].pmax&&(d=_+1);return w(x,r._m2,r._B[d])}}r.c2l=r.type==="log"?o:Di,r.l2c=r.type==="log"?Rf:Di,r.l2p=M,r.p2l=y,r.c2p=r.type==="log"?function(x,T){return M(o(x,T))}:M,r.p2c=r.type==="log"?function(x){return Rf(y(x))}:y,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Oo,r.c2d=r.c2r=r.l2d=r.l2r=Di,r.d2p=r.r2p=function(x){return r.l2p(Oo(x))},r.p2d=r.p2r=y,r.cleanPos=Di):r.type==="log"?(r.d2r=r.d2l=function(x,T){return o(Oo(x),T)},r.r2d=r.r2c=function(x){return Rf(Oo(x))},r.d2c=r.r2l=Oo,r.c2d=r.l2r=Di,r.c2r=o,r.l2d=Rf,r.d2p=function(x,T){return r.l2p(r.d2r(x,T))},r.p2d=function(x){return Rf(y(x))},r.r2p=function(x){return r.l2p(Oo(x))},r.p2r=y,r.cleanPos=Di):r.type==="date"?(r.d2r=r.r2d=mt.identity,r.d2c=r.r2c=r.d2l=r.r2l=i,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,T,d){return r.l2p(i(x,0,d))},r.p2d=r.p2r=function(x,T,d){return l(y(x),T,d)},r.cleanPos=function(x){return mt.cleanDate(x,ri,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=s,r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(x){var T=b(x);return T!==void 0?T:r.fraction2r(.5)},r.l2r=r.c2r=Di,r.r2l=b,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(y(x))},r.r2p=r.d2p,r.p2r=y,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Di(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(x){var T=p(x);return T!==void 0?T:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=Di,r.r2l=p,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(y(x))},r.r2p=r.d2p,r.p2r=y,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Di(x)},r.setupMultiCategory=function(x){var T=r._traceIndices,d,_,g=r._matchGroup;if(g&&r._categories.length===0){for(var c in g)if(c!==n){var A=t[Sv.id2name(c)];T=T.concat(A._traceIndices)}}var h=[[0,{}],[0,{}]],R=[];for(d=0;dA[1]&&(_[c?0:1]=d),_[0]===_[1]){var h=r.l2r(T),R=r.l2r(d);if(T!==void 0){var E=h+1;d!==void 0&&(E=Math.min(E,R)),_[c?1:0]=E}if(d!==void 0){var D=R+1;T!==void 0&&(D=Math.max(D,h)),_[c?0:1]=D}}}},r.cleanRange=function(x,T){r._cleanRange(x,T),r.limitRange(x)},r._cleanRange=function(x,T){T||(T={}),x||(x="range");var d=mt.nestedProperty(r,x).get(),_,g;if(r.type==="date"?g=mt.dfltRange(r.calendar):a==="y"?g=Lv.DFLTRANGEY:r._name==="realaxis"?g=[0,1]:g=T.dfltRange||Lv.DFLTRANGEX,g=g.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(g[0]=0),!d||d.length!==2){mt.nestedProperty(r,x).set(g);return}var c=d[0]===null,A=d[1]===null;for(r.type==="date"&&!r.autorange&&(d[0]=mt.cleanDate(d[0],ri,r.calendar),d[1]=mt.cleanDate(d[1],ri,r.calendar)),_=0;_<2;_++)if(r.type==="date"){if(!mt.isDateTime(d[_],r.calendar)){r[x]=g;break}if(r.r2l(d[0])===r.r2l(d[1])){var h=mt.constrain(r.r2l(d[0]),mt.MIN_MS+1e3,mt.MAX_MS-1e3);d[0]=r.l2r(h-1e3),d[1]=r.l2r(h+1e3);break}}else{if(!Ri(d[_]))if(!(c||A)&&Ri(d[1-_]))d[_]=d[1-_]*(_?10:.1);else{r[x]=g;break}if(d[_]<-Tv?d[_]=-Tv:d[_]>Tv&&(d[_]=Tv),d[0]===d[1]){var R=Math.max(1,Math.abs(d[0]*1e-6));d[0]-=R,d[1]+=R}}},r.setScale=function(x){var T=t._size;if(r.overlaying){var d=Sv.getFromId({_fullLayout:t},r.overlaying);r.domain=d.domain}var _=x&&r._r?"_r":"range",g=r.calendar;r.cleanRange(_);var c=r.r2l(r[_][0],g),A=r.r2l(r[_][1],g),h=a==="y";if(h?(r._offset=T.t+(1-r.domain[1])*T.h,r._length=T.h*(r.domain[1]-r.domain[0]),r._m=r._length/(c-A),r._b=-r._m*A):(r._offset=T.l+r.domain[0]*T.w,r._length=T.w*(r.domain[1]-r.domain[0]),r._m=r._length/(A-c),r._b=-r._m*c),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,E;if(r._rangebreaks=r.locateBreaks(Math.min(c,A),Math.max(c,A)),r._rangebreaks.length){for(R=0;RA&&(D=!D),D&&r._rangebreaks.reverse();var N=D?-1:1;for(r._m2=N*r._length/(Math.abs(A-c)-r._lBreaks),r._B.push(-r._m2*(h?A:c)),R=0;Rg&&(g+=7,c<_&&(c+=7));break;case Cv:A=new Date(x);var D=A.getUTCHours(),N=A.getUTCMinutes(),I=A.getUTCSeconds(),F=A.getUTCMilliseconds();c=D+(N/60+I/3600+F/36e5),_>g&&(g+=24,c<_&&(c+=24));break;case"":c=x;break}if(c>=_&&c=_&&x=q.min&&(Xq.max&&(q.max=$),j=!1)}j&&A.push({min:X,max:$})}};for(d=0;d{"use strict";var X8=tt(),Yg=ir(),dW=an().BADNUM,Dv=Yg.isArrayOrTypedArray,pW=Yg.isDateTime,gW=Yg.cleanNumber,Z8=Math.round;K8.exports=function(r,t,n){var a=r,o=n.noMultiCategory;if(Dv(a)&&!a.length)return"-";if(!o&&_W(a))return"multicategory";if(o&&Array.isArray(a[0])){for(var i=[],l=0;lo*2}function J8(e){return Math.max(1,(e-1)/1e3)}function bW(e,r){for(var t=e.length,n=J8(t),a=0,o=0,i={},l=0;la*2}function _W(e){return Dv(e[0])&&Dv(e[1])}});var $s=pe((gce,aM)=>{"use strict";var wW=ot(),eM=tt(),Uo=ir(),Pv=an().FP_SAFE,MW=Er(),TW=yt(),rM=en(),AW=rM.getFromId,kW=rM.isLinked;aM.exports={applyAutorangeOptions:nM,getAutoRange:Xg,makePadFn:Zg,doAutoRange:CW,findExtremes:EW,concatExtremes:Qg};function Xg(e,r){var t,n,a=[],o=e._fullLayout,i=Zg(o,r,0),l=Zg(o,r,1),u=Qg(e,r),s=u.min,f=u.max;if(s.length===0||f.length===0)return Uo.simpleMap(r.range,r.r2l);var v=s[0].val,p=f[0].val;for(t=1;t0&&(A=S-i(d)-l(_),A>x?h/A>T&&(g=d,c=_,T=h/A):h/S>T&&(g={val:d.val,nopad:1},c={val:_.val,nopad:1},T=h/S));function R(F,L){return Math.max(F,l(L))}if(v===p){var E=v-1,D=v+1;if(y)if(v===0)a=[0,1];else{var N=(v>0?f:s).reduce(R,0),I=v/(1-Math.min(.5,N/S));a=v>0?[0,I]:[I,0]}else k?a=[Math.max(0,E),Math.max(1,D)]:a=[E,D]}else y?(g.val>=0&&(g={val:0,nopad:1}),c.val<=0&&(c={val:0,nopad:1})):k&&(g.val-T*i(g)<0&&(g={val:0,nopad:1}),c.val<=0&&(c={val:1,nopad:1})),T=(c.val-g.val-Q8(r,d.val,_.val))/(S-i(g)-l(c)),a=[g.val-T*i(g),c.val+T*l(c)];return a=nM(a,r),r.limitRange&&r.limitRange(),m&&a.reverse(),Uo.simpleMap(a,r.l2r||Number)}function Q8(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),o=0;o0?t.ppadplus:t.ppadminus)||t.ppad||0),d=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),_=x(t.vpadplus||t.vpad),g=x(t.vpadminus||t.vpad);if(!s){if(k=1/0,S=-1/0,u)for(v=0;v0&&(k=p),p>S&&p-Pv&&(k=p),p>S&&p=h;v--)A(v);return{min:n,max:a,opts:t}}function Jg(e,r,t,n){tM(e,r,t,n,LW)}function Kg(e,r,t,n){tM(e,r,t,n,RW)}function tM(e,r,t,n,a){for(var o=n.tozero,i=n.extrapad,l=!0,u=0;u=t&&(s.extrapad||!i)){l=!1;break}else a(r,s.val)&&s.pad<=t&&(i||!s.extrapad)&&(e.splice(u,1),u--)}if(l){var f=o&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:i})}}function j8(e){return eM(e)&&Math.abs(e)=r}function DW(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Fv(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Fv(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function PW(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Fv(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Fv(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Fv(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=u&&(o=u,t=u),i<=u&&(i=u,n=u)}}return t=DW(t,r),n=PW(n,r),[t,n]}});var Ct=pe((yce,kM)=>{"use strict";var Da=ot(),Wt=tt(),js=ln(),Pf=Er(),Lr=ir(),eu=Lr.strTranslate,Bl=Yn(),FW=Lf(),Ff=Zr(),pa=yt(),IW=Ra(),iM=dg(),Tn=an(),NW=Tn.ONEMAXYEAR,zv=Tn.ONEAVGYEAR,qv=Tn.ONEMINYEAR,zW=Tn.ONEMAXQUARTER,r2=Tn.ONEAVGQUARTER,Ov=Tn.ONEMINQUARTER,qW=Tn.ONEMAXMONTH,ru=Tn.ONEAVGMONTH,Bv=Tn.ONEMINMONTH,ga=Tn.ONEWEEK,On=Tn.ONEDAY,Ho=On/2,Fi=Tn.ONEHOUR,If=Tn.ONEMIN,Uv=Tn.ONESEC,OW=Tn.ONEMILLI,BW=Tn.ONEMICROSEC,Ul=Tn.MINUS_SIGN,Gv=Tn.BADNUM,t2={K:"zeroline"},n2={K:"gridline",L:"path"},a2={K:"minor-gridline",L:"path"},gM={K:"tick",L:"path"},oM={K:"tick",L:"text"},lM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Yv=qn(),Df=Yv.MID_SHIFT,Hl=Yv.CAP_SHIFT,Nf=Yv.LINE_SPACING,UW=Yv.OPPOSITE_SIDE,Hv=3,lr=kM.exports={};lr.setConvert=Rv();var HW=Wg(),no=en(),VW=no.idSort,GW=no.isLinked;lr.id2name=no.id2name;lr.name2id=no.name2id;lr.cleanId=no.cleanId;lr.list=no.list;lr.listIds=no.listIds;lr.getFromId=no.getFromId;lr.getFromTrace=no.getFromTrace;var yM=$s();lr.getAutoRange=yM.getAutoRange;lr.findExtremes=yM.findExtremes;var YW=1e-4;function s2(e){var r=(e[1]-e[0])*YW;return[e[0]-r,e[1]+r]}lr.coerceRef=function(e,r,t,n,a,o){var i=n.charAt(n.length-1),l=t._fullLayout._subplots[i+"axis"],u=n+"ref",s={};return a||(a=l[0]||(typeof o=="string"?o:o[0])),o||(o=a),l=l.concat(l.map(function(f){return f+" domain"})),s[u]={valType:"enumerated",values:l.concat(o?typeof o=="string"?[o]:o:[]),dflt:a},Lr.coerce(e,r,s,u)};lr.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};lr.coercePosition=function(e,r,t,n,a,o){var i,l,u=lr.getRefType(n);if(u!=="range")i=Lr.ensureNumber,l=t(a,o);else{var s=lr.getFromId(r,n);o=s.fraction2r(o),l=t(a,o),i=s.cleanPos}e[a]=i(l)};lr.cleanPosition=function(e,r,t){var n=t==="paper"||t==="pixel"?Lr.ensureNumber:lr.getFromId(r,t).cleanPos;return n(e)};lr.redrawComponents=function(e,r){r=r||lr.listIds(e);var t=e._fullLayout;function n(a,o,i,l){for(var u=Pf.getComponentMethod(a,o),s={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};lr.saveRangeInitial=function(e,r){for(var t=lr.list(e,"",!0),n=!1,a=0;av*.3||s(n)||s(a))){var p=t.dtick/2;e+=e+pi){var l=Number(t.substr(1));o.exactYears>i&&l%12===0?e=lr.tickIncrement(e,"M6","reverse")+On*1.5:o.exactMonths>i?e=lr.tickIncrement(e,"M1","reverse")+On*15.5:e-=Ho;var u=lr.tickIncrement(e,t);if(u<=n)return u}return e}lr.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var n=r.dtick&&Wt(r._tmin),a;if(n){var o=lr.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,o*.99+r._tmin*.01]}else{var i=Lr.simpleMap(r.range,r.r2l);a=[i[0],.8*i[0]+.2*i[1]]}if(e.range=Lr.simpleMap(a,r.l2r),e._isMinor=!0,lr.prepTicks(e,t),n){var l=Wt(r.dtick),u=Wt(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?$g(s,f)?s===2*ga&&f===2*On&&(e.dtick=ga):s===2*ga&&f===3*On?e.dtick=ga:s===ga&&!(r._input.minor||{}).nticks?e.dtick=On:fM(s/f,2.5)?e.dtick=s/2:e.dtick=s:String(r.dtick).charAt(0)==="M"?u?e.dtick="M1":$g(s,f)?s>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?$g(s,f)||(e.dtick=fM(s/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function $g(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function fM(e,r){return Math.abs(e/r-1)<.001}lr.prepTicks=function(e,r){var t=Lr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?Lr.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=Lr.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,lr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(o=n-1,i=n):(o=n,i=n);var l=e[o].value,u=e[i].value,s=Math.abs(u-l),f=t||s,v=0;f>=qv?s>=qv&&s<=NW?v=s:v=zv:t===r2&&f>=Ov?s>=Ov&&s<=zW?v=s:v=r2:f>=Bv?s>=Bv&&s<=qW?v=s:v=ru:t===ga&&f>=ga?v=ga:f>=On?v=On:t===Ho&&f>=Ho?v=Ho:t===Fi&&f>=Fi&&(v=Fi);var p;v>=s&&(v=s,p=!0);var b=a+v;if(r.rangebreaks&&v>0){for(var m=84,w=0,M=0;Mga&&(v=s)}(v>0||n===0)&&(e[n].periodX=a+v/2)}}lr.calcTicks=function(r,t){for(var n=r.type,a=r.calendar,o=r.ticklabelstep,i=r.ticklabelmode==="period",l=r.range[0]>r.range[1],u=!r.ticklabelindex||Lr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],s=Lr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=s[1]=(S?0:1);x--){var T=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var d=x?r:Lr.extendFlat({},r,r.minor);if(T?lr.prepMinorTicks(d,r,t):lr.prepTicks(d,t),d.tickmode==="array"){x?(M=[],m=cM(r,!T)):(y=[],w=cM(r,!T));continue}if(d.tickmode==="sync"){M=[],m=QW(r);continue}var _=s2(s),g=_[0],c=_[1],A=Wt(d.dtick),h=n==="log"&&!(A||d.dtick.charAt(0)==="L"),R=lr.tickFirst(d,t);if(x){if(r._tmin=R,R=c:D<=c;D=lr.tickIncrement(D,F,f,a)){if(x&&N++,d.rangebreaks&&!f){if(D=p)break}if(M.length>b||D===E)break;E=D;var L={value:D};x?(h&&D!==(D|0)&&(L.simpleLabel=!0),o>1&&N%o&&(L.skipLabel=!0),M.push(L)):(L.minor=!0,y.push(L))}}if(!y||y.length<2)u=!1;else{var P=(y[1].value-y[0].value)*(l?-1:1);_X(P,r.tickformat)||(u=!1)}if(!u)k=M;else{var O=M.concat(y);i&&M.length&&(O=O.slice(1)),O=O.sort(function(Te,Ee){return Te.value-Ee.value}).filter(function(Te,Ee,Pe){return Ee===0||Te.value!==Pe[Ee-1].value});var U=O.map(function(Te,Ee){return Te.minor===void 0&&!Te.skipLabel?Ee:null}).filter(function(Te){return Te!==null});U.forEach(function(Te){u.map(function(Ee){var Pe=Te+Ee;Pe>=0&&Pe-1;ie--){if(M[ie].drop){M.splice(ie,1);continue}M[ie].value=e2(M[ie].value,r);var H=r.c2p(M[ie].value);(ee?re>H-V:rep||Sep&&(Pe.periodX=p),Sea&&pzv)r/=zv,n=a(10),e.dtick="M"+12*Pi(r,n,Iv);else if(o>ru)r/=ru,e.dtick="M"+Pi(r,1,vM);else if(o>On){if(e.dtick=Pi(r,On,e._hasDayOfWeekBreaks?[1,2,7,14]:$W),!t){var i=lr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(i)?e.tick0=Lr.dateTick0(e.calendar,2):e.tick0=Lr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else o>Fi?e.dtick=Pi(r,Fi,vM):o>If?e.dtick=Pi(r,If,hM):o>Uv?e.dtick=Pi(r,Uv,hM):(n=a(10),e.dtick=Pi(r,n,Iv))}else if(e.type==="log"){e.tick0=0;var u=Lr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(u[1]-u[0])<1){var s=1.5*Math.abs((u[1]-u[0])/r);r=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/s,n=a(10),e.dtick="L"+Pi(r,n,Iv)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):c2(e)?(e.tick0=0,n=1,e.dtick=Pi(r,n,jW)):(e.tick0=0,n=a(10),e.dtick=Pi(r,n,Iv));if(e.dtick===0&&(e.dtick=1),!Wt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function _M(e){var r=e.dtick;if(e._tickexponent=0,!Wt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=On&&a<=10||r>=On*15)e._tickround="d";else if(r>=If&&a<=16||r>=Fi)e._tickround="M";else if(r>=Uv&&a<=19||r>=If)e._tickround="S";else{var o=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,o)-20,e._tickround<0&&(e._tickround=4)}}else if(Wt(r)||r.charAt(0)==="L"){var i=e.range.map(e.r2d||Number);Wt(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(i[0]),Math.abs(i[1])),u=Math.floor(Math.log(l)/Math.LN10+.01),s=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>s&&(Vv(e.exponentformat)&&!u2(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}lr.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(Wt(r))return Lr.increment(e,a*r);var o=r.charAt(0),i=a*Number(r.substr(1));if(o==="M")return Lr.incrementMonth(e,i,n);if(o==="L")return Math.log(Math.pow(10,e)+i)/Math.LN10;if(o==="D"){var l=r==="D2"?bM:xM,u=e+a*.01,s=Lr.roundUp(Lr.mod(u,1),l,t);return Math.floor(u)+Math.log(Da.round(Math.pow(10,s),1))/Math.LN10}throw"unrecognized dtick "+String(r)};lr.tickFirst=function(e,r){var t=e.r2l||Number,n=Lr.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&y<=e._length?M:null};if(o&&Lr.isArrayOrTypedArray(e.ticktext)){var v=Lr.simpleMap(e.range,e.r2l),p=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(s=0;s"+l;else{var s=qf(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(i+="
")}r.text=i}function rX(e,r,t,n,a){var o=e.dtick,i=r.x,l=e.tickformat,u=typeof o=="string"&&o.charAt(0);if(a==="never"&&(a=""),n&&u!=="L"&&(o="L3",u="L"),l||u==="L")r.text=zf(Math.pow(10,i),e,a,n);else if(Wt(o)||u==="D"&&(e.minorloglabels==="complete"||Lr.mod(i+.01,1)<.1)){var s;e.minorloglabels==="complete"&&!(Lr.mod(i+.01,1)<.1)&&(s=!0,r.fontSize*=.75);var f=Math.pow(10,i).toExponential(0),v=f.split("e"),p=+v[1],b=Math.abs(p),m=e.exponentformat;m==="power"||Vv(m)&&u2(p)?(r.text=v[0],b>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),p!==0&&p!==1&&(r.text+=""+(p>0?"":Ul)+b+""),r.fontSize*=1.25):(m==="e"||m==="E")&&b>2?r.text=v[0]+m+(p>0?"+":Ul)+b:(r.text=zf(Math.pow(10,i),e,"","fakehover"),o==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(u==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Lr.mod(i,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(o);if(e.dtick==="D1"){var w=String(r.text).charAt(0);(w==="0"||w==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(i<0?.5:.25)))}}function tX(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function nX(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],o=a[1]===void 0?"":String(a[1]),i=a[0]===void 0?"":String(a[0]);t?r.text=i+" - "+o:(r.text=o,r.text2=i)}function aX(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=zf(r.x,e,a,n)}function iX(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var o=r.x/180;if(o===0)r.text="0";else{var i=oX(o);if(i[1]>=100)r.text=zf(Lr.deg2rad(r.x),e,a,n);else{var l=r.x<0;i[1]===1?i[0]===1?r.text="\u03C0":r.text=i[0]+"\u03C0":r.text=["",i[0],"","\u2044","",i[1],"","\u03C0"].join(""),l&&(r.text=Ul+r.text)}}}else r.text=zf(r.x,e,a,n)}function oX(e){function r(l,u){return Math.abs(l-u)<=1e-6}function t(l,u){return r(u,0)?l:t(u,l%u)}function n(l){for(var u=1;!r(Math.round(l*u)/u,l);)u*=10;return u}var a=n(e),o=e*a,i=Math.abs(t(o,a));return[Math.round(o/i),Math.round(a/i)]}var lX=["f","p","n","\u03BC","m","","k","M","G","T"];function Vv(e){return e==="SI"||e==="B"}function u2(e){return e>14||e<-15}function zf(e,r,t,n){var a=e<0,o=r._tickround,i=t||r.exponentformat||"B",l=r._tickexponent,u=lr.getTickFormat(r),s=r.separatethousands;if(n){var f={exponentformat:i,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Wt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};_M(f),o=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(u=r.hoverformat)}if(u)return r._numFormat(u)(e).replace(/-/g,Ul);var v=Math.pow(10,-o)/2;if(i==="none"&&(l=0),e=Math.abs(e),e"+m+"":i==="B"&&l===9?e+="B":Vv(i)&&(e+=lX[l/3+5])}return a?Ul+e:e}lr.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*ru}function n(u,s){var f=["L","D"];if(typeof u==typeof s){if(typeof u=="number")return u-s;var v=f.indexOf(u.charAt(0)),p=f.indexOf(s.charAt(0));return v===p?Number(u.replace(/(L|D)/g,""))-Number(s.replace(/(L|D)/g,"")):v-p}else return typeof u=="number"?1:-1}function a(u,s,f){var v=f||function(m){return m},p=s[0],b=s[1];return(!p&&typeof p!="number"||v(p)<=v(u))&&(!b&&typeof b!="number"||v(b)>=v(u))}function o(u,s){var f=s[0]===null,v=s[1]===null,p=n(u,s[0])>=0,b=n(u,s[1])<=0;return(f||p)&&(v||b)}var i,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return Lr.syncOrAsync(a.map(function(u){return function(){if(u){var s=lr.getFromId(e,u);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=i;var f=lr.drawOne(e,s,t);return s._shiftPusher&&l2(s,s._fullDepth||0,l,!0),s._r=s.range.slice(),s._rl=Lr.simpleMap(s._r,s.r2l),f}}}))};lr.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],o,i,l;r.setScale();var u=e._fullLayout,s=r._id,f=s.charAt(0),v=lr.counterLetter(s),p=u._plots[r._mainSubplot],b=r.zerolinelayer==="above traces";if(!p)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),l2(r,m,n,!0),l2(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=bX(r,n));var w=p[f+"axislayer"],M=r._mainLinePosition,y=M+=r._shift,k=r._mainMirrorPosition,S=r._vals=lr.calcTicks(r),x=[r.mirror,y,k].join("_");for(o=0;o0?Se.bottom-Ee:0,Pe))));var we=0,Me=0;if(r._shiftPusher&&(we=Math.max(Pe,Se.height>0?ve==="l"?Ee-Se.left:Se.right-Ee:0),r.title.text!==u._dfltTitle[f]&&(Me=(r._titleStandoff||0)+(r._titleScoot||0),ve==="l"&&(Me+=pM(r))),r._fullDepth=Math.max(we,Me)),r.automargin){Ne={x:0,y:0,r:0,l:0,t:0,b:0};var me=[0,1],Re=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(ve==="b"?Ne[ve]=r._depth:(Ne[ve]=r._depth=Math.max(Se.width>0?Ee-Se.top:0,Pe),me.reverse()),Se.width>0){var ce=Se.right-(r._offset+r._length);ce>0&&(Ne.xr=1,Ne.r=ce);var he=r._offset-Se.left;he>0&&(Ne.xl=0,Ne.l=he)}}else if(ve==="l"?(r._depth=Math.max(Se.height>0?Ee-Se.left:0,Pe),Ne[ve]=r._depth-Re):(r._depth=Math.max(Se.height>0?Se.right-Ee:0,Pe),Ne[ve]=r._depth+Re,me.reverse()),Se.height>0){var ye=Se.bottom-(r._offset+r._length);ye>0&&(Ne.yb=0,Ne.b=ye);var Ce=r._offset-Se.top;Ce>0&&(Ne.yt=1,Ne.t=Ce)}Ne[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[me[0]],r.title.text!==u._dfltTitle[f]&&(Ne[ve]+=pM(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Be={x:0,y:0,r:0,l:0,t:0,b:0},Be[Te]=r.linewidth,r.mirror&&r.mirror!==!0&&(Be[Te]+=Pe),r.mirror===!0||r.mirror==="ticks"?Be[v]=r._anchorAxis.domain[me[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Be[v]=[r._counterDomainMin,r._counterDomainMax][me[1]]))}Ae&&(ge=Pf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(dM(Ne,r.automargin),dM(Be,r.automargin)),js.autoMargin(e,f2(r),Ne),js.autoMargin(e,TM(r),Be),js.autoMargin(e,AM(r),ge)}),Lr.syncOrAsync(de)}};function dM(e,r){if(e){var t=Object.keys(lM).reduce(function(n,a){return r.indexOf(a)!==-1&&lM[a].forEach(function(o){n[o]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function sX(e,r){var t=[],n,a=function(o,i){var l=o.xbnd[i];l!==null&&t.push(Lr.extendFlat({},o,{x:l}))};if(r.length){for(n=0;ne.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!l;if(t){var s=i?-1:1;t=t*s}if(n){var f=e.side,v=l&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*v}return e._id.charAt(0)==="x"?function(p){return eu(a+e._offset+e.l2p(i2(p))+t,o+n)}:function(p){return eu(o+n,a+e._offset+e.l2p(i2(p))+t)}};function i2(e){return e.periodX!==void 0?e.periodX:e.x}function vX(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(m){return r.indexOf(m)!==-1},a=n("top"),o=n("left"),i=n("right"),l=n("bottom"),u=n("inside"),s=t!=="boundaries"&&(l||o||a||i);if(!s&&!u)return[0,0];var f=e.side,v=s?(e.tickwidth||0)/2:0,p=Hv,b=e.tickfont?e.tickfont.size:12;return(l||a)&&(v+=b*Hl,p+=(e.linewidth||0)/2),(o||i)&&(v+=(e.linewidth||0)/2,p+=Hv),u&&f==="top"&&(p-=b*(1-Hl)),(o||a)&&(v=-v),(f==="bottom"||f==="right")&&(p=-p),[s?v:0,u?p:0]}lr.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var o=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,i=e._id.charAt(0),l=(e.linewidth||1)/2;return i==="x"?"M0,"+(r+l*t)+"v"+o*t:"M"+(r+l*t)+",0h"+o*t};lr.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",o=function(E){return n.indexOf(E)!==-1},i=o("top"),l=o("left"),u=o("right"),s=o("bottom"),f=a!=="boundaries"&&(s||l||i||u),v=o("inside"),p=n==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&a!=="boundaries",b=0,m=0,w=p?e.ticklen:0;if(v?w*=-1:f&&(w=0),p&&(b+=w,t)){var M=Lr.deg2rad(t);b=w*Math.cos(M)+1,m=w*Math.sin(M)}e.showticklabels&&(p||e.showline)&&(b+=.2*e.tickfont.size),b+=(e.linewidth||1)/2*(v?-1:1);var y={labelStandoff:b,labelShift:m},k,S,x,T,d=0,_=e.side,g=e._id.charAt(0),c=e.tickangle,A;if(g==="x")A=!v&&_==="bottom"||v&&_==="top",T=A?1:-1,v&&(T*=-1),k=m*T,S=r+b*T,x=A?1:-.2,Math.abs(c)===90&&(v?x+=Df:c===-90&&_==="bottom"?x=Hl:c===90&&_==="top"?x=Df:x=.5,d=Df/2*(c/90)),y.xFn=function(E){return E.dx+k+d*E.fontSize},y.yFn=function(E){return E.dy+S+E.fontSize*x},y.anchorFn=function(E,D){if(f){if(l)return"end";if(u)return"start"}return!Wt(D)||D===0||D===180?"middle":D*T<0!==v?"end":"start"},y.heightFn=function(E,D,N){return D<-60||D>60?-.5*N:e.side==="top"!==v?-N:0};else if(g==="y"){if(A=!v&&_==="left"||v&&_==="right",T=A?1:-1,v&&(T*=-1),k=b,S=m*T,x=0,!v&&Math.abs(c)===90&&(c===-90&&_==="left"||c===90&&_==="right"?x=Hl:x=.5),v){var h=Wt(c)?+c:0;if(h!==0){var R=Lr.deg2rad(h);d=Math.abs(Math.sin(R))*Hl*T,x=0}}y.xFn=function(E){return E.dx+r-(k+E.fontSize*x)*T+d*E.fontSize},y.yFn=function(E){return E.dy+S+E.fontSize*Df},y.anchorFn=function(E,D){return Wt(D)&&Math.abs(D)===90?"middle":A?"end":"start"},y.heightFn=function(E,D,N){return e.side==="right"&&(D*=-1),D<-30?-N:D<30?-.5*N:0}}return y};function Wv(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}lr.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(i){return i.minor&&!i.noTick}):[]).concat(r.ticks?t.vals.filter(function(i){return!i.minor&&!i.noTick}):[]),o=t.layer.selectAll("path."+n).data(a,Wv);o.exit().remove(),o.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(i){return Ff.stroke(Da.select(this),i.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(i){return pa.crispRound(e,i.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Xv(r,[gM]),o.attr("transform",t.transFn)};lr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,o=a?t.vals.filter(function(y){return y.minor}):[],i=r.showgrid?t.vals.filter(function(y){return!y.minor}):[],l=t.counterAxis;if(l&&lr.shouldShowZeroLine(e,r,l))for(var u=r.tickmode==="array",s=0;s=0;m--){var w=m?p:b;if(w){var M=w.selectAll("path."+n).data(m?i:o,Wv);M.exit().remove(),M.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),M.attr("transform",t.transFn).attr("d",t.path).each(function(y){return Ff.stroke(Da.select(this),y.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(y){return pa.dashStyle(y.minor?r.minor.griddash:r.griddash,y.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(y){return(y.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&M.attr("d",t.path)}}Xv(r,[n2,a2])}};lr.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=lr.shouldShowZeroLine(e,r,t.counterAxis),o=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);o.exit().remove(),o.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(i,l){return VW(i.id,l.id)})}),o.attr("transform",t.transFn).attr("d",t.path).call(Ff.stroke,r.zerolinecolor||Ff.defaultLine).style("stroke-width",pa.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Xv(r,[t2])};lr.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,o=r.zerolinelayer==="above traces",i=t.cls||a+"tick",l=t.vals.filter(function(P){return P.text}),u=t.labelFns,s=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[i],v=t.layer.selectAll("g."+i).data(r.showticklabels?l:[],Wv),p=[];v.enter().append("g").classed(i,1).append("text").attr("text-anchor","middle").each(function(P){var O=Da.select(this),U=e._promises.length;O.call(Bl.positionText,u.xFn(P),u.yFn(P)).call(pa.font,{family:P.font,size:P.fontSize,color:P.fontColor,weight:P.fontWeight,style:P.fontStyle,variant:P.fontVariant,textcase:P.fontTextcase,lineposition:P.fontLineposition,shadow:P.fontShadow}).text(P.text).call(Bl.convertToTspans,e),e._promises[U]?p.push(e._promises.pop().then(function(){b(O,s)})):b(O,s)}),Xv(r,[oM]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(P){Da.select(this).select("text").call(Bl.positionText,u.xFn(P),u.yFn(P))});function b(P,O){P.each(function(U){var X=Da.select(this),$=X.select(".text-math-group"),j=u.anchorFn(U,O),Y=t.transFn.call(X.node(),U)+(Wt(O)&&+O!=0?" rotate("+O+","+u.xFn(U)+","+(u.yFn(U)-U.fontSize/2)+")":""),q=Bl.lineCount(X),K=Nf*U.fontSize,ne=u.heightFn(U,Wt(O)?+O:0,(q-1)*K);if(ne&&(Y+=eu(0,ne)),$.empty()){var Q=X.select("text");Q.attr({transform:Y,"text-anchor":j}),Q.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ie=pa.bBox($.node()).width,ee=ie*{end:-.5,start:.5}[j];$.attr("transform",Y+eu(ee,0))}})}r._adjustTickLabelsOverflow=function(){var P=r.ticklabeloverflow;if(!(!P||P==="allow")){var O=P.indexOf("hide")!==-1,U=r._id.charAt(0)==="x",X=0,$=U?e._fullLayout.width:e._fullLayout.height;if(P.indexOf("domain")!==-1){var j=Lr.simpleMap(r.range,r.r2l);X=r.l2p(j[0])+r._offset,$=r.l2p(j[1])+r._offset}var Y=Math.min(X,$),q=Math.max(X,$),K=r.side,ne=1/0,Q=-1/0;v.each(function(re){var H=Da.select(this),te=H.select(".text-math-group");if(te.empty()){var ue=pa.bBox(H.node()),de=0;U?(ue.right>q||ue.leftq||ue.top+(r.tickangle?0:re.fontSize/4)r["_visibleLabelMin_"+j._id]?H.style("display","none"):q.K==="tick"&&!Y&&H.node().style.display!=="none"&&H.style("display",null)})})})})},b(v,f+1?f:s);function m(){return p.length&&Promise.all(p)}var w=null;function M(){if(b(v,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){w=r.autotickangles[0];var P=0,O=[],U,X=1;v.each(function(Ne){P=Math.max(P,Ne.fontSize);var Be=r.l2p(Ne.x),ge=o2(this),we=pa.bBox(ge.node());X=Math.max(X,Bl.lineCount(ge)),O.push({top:0,bottom:10,height:10,left:Be-we.width/2,right:Be+we.width/2+2,width:we.width+2})});var $=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,j=l.length,Y=Math.abs((l[j-1].x-l[0].x)*r._m)/(j-1),q=$?Y/2:Y,K=$?r.ticklen:P*1.25*X,ne=Math.sqrt(Math.pow(q,2)+Math.pow(K,2)),Q=q/ne,ie=r.autotickangles.map(function(Ne){return Ne*Math.PI/180}),ee=ie.find(function(Ne){return Math.abs(Math.cos(Ne))<=Q});ee===void 0&&(ee=ie.reduce(function(Ne,Be){return Math.abs(Math.cos(Ne))I*N&&(R=N,c[g]=A[g]=E[g])}var F=Math.abs(R-h);F-T>0?(F-=T,T*=1+T/F):T=0,r._id.charAt(0)!=="y"&&(T=-T),c[_]=S.p2r(S.r2p(A[_])+d*T),S.autorange==="min"||S.autorange==="max reversed"?(c[0]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0):(S.autorange==="max"||S.autorange==="min reversed")&&(c[1]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[S._name+".range"]=c}var L=Lr.syncOrAsync(y);return L&&L.then&&e._promises.push(L),L};function hX(e,r,t){var n=r._id+"divider",a=t.vals,o=t.layer.selectAll("path."+n).data(a,Wv);o.exit().remove(),o.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(Ff.stroke,r.dividercolor).style("stroke-width",pa.crispRound(e,r.dividerwidth,1)+"px"),o.attr("transform",t.transFn).attr("d",t.path)}lr.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,o;if(r.anchor!=="free"?o=r._anchorAxis:n==="x"?o={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(o={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return o._offset;if(a==="bottom"||a==="right")return o._offset+o._length};function pM(e){var r=e.title.font.size,t=(e.title.text.match(Bl.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Hl+t*Nf):t?r*(t+1)*Nf:r}function dX(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),o=r.title.font.size,i,l=(r.title.text.match(Bl.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?i=r._depth+r.title.standoff+o*Hl:(r.side==="top"||r.side==="left")&&(i=r._depth+r.title.standoff+o*(Df+l*Nf));else{var u=qf(r);if(r.type==="multicategory")i=r._depth;else{var s=1.5*o;u&&(s=.5*o,r.ticks==="outside"&&(s+=r.ticklen)),i=10+s+(r.linewidth?r.linewidth-1:0)}u||(a==="x"?i+=r.side==="top"?o*(r.showticklabels?1:0):o*(r.showticklabels?1.5:.5):i+=r.side==="right"?o*(r.showticklabels?1:.5):o*(r.showticklabels?.5:0))}var f=lr.getPxPosition(e,r),v,p,b;a==="x"?(p=r._offset+r._length/2,b=r.side==="top"?f-i:f+i):(b=r._offset+r._length/2,p=r.side==="right"?f+i:f-i,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var w=r._selections[r._id+"tick"];if(m={selection:w,side:r.side},w&&w.node()&&w.node().parentNode){var M=pa.getTranslate(w.node().parentNode);m.offsetLeft=M.x,m.offsetTop=M.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=i,FW.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:m,transform:v,attributes:{x:p,y:b,"text-anchor":"middle"}})}lr.shouldShowZeroLine=function(e,r,t){var n=Lr.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Gv)&&(MM(r,0)||!pX(e,r,t,n)||gX(e,r))};lr.clipEnds=function(e,r){return r.filter(function(t){return MM(e,t.x)})};function MM(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=BW:/%L/.test(r)?e>=OW:/%[SX]/.test(r)?e>=Uv:/%M/.test(r)?e>=If:/%[HI]/.test(r)?e>=Fi:/%p/.test(r)?e>=Ho:/%[Aadejuwx]/.test(r)?e>=On:/%[UVW]/.test(r)?e>=ga:/%[Bbm]/.test(r)?e>=Bv:/%[q]/.test(r)?e>=Ov:/%[Yy]/.test(r)?e>=qv:!0}});var CM=pe((mce,SM)=>{"use strict";SM.exports=function(r,t,n){var a,o;if(n){var i=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[i?1:0],o=n[i?0:1]}var l=r("autorangeoptions.minallowed",o===null?a:void 0),u=r("autorangeoptions.maxallowed",a===null?o:void 0);l===void 0&&r("autorangeoptions.clipmin"),u===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var v2=pe((xce,EM)=>{"use strict";var wX=CM();EM.exports=function(r,t,n,a){var o=t._template||{},i=t.type||o.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var u;!a.noInsiderange&&i!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(t.insiderange=!1,u=void 0),u&&(l=n("range",u)))}var s=t.getAutorangeDflt(l,a),f=n("autorange",s),v;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,v=!0),v||(s=t.getAutorangeDflt(l,a),f=n("autorange",s)),f&&(wX(n,f,l),(i==="linear"||i==="-")&&n("rangemode")),t.cleanRange()}});var RM=pe((bce,LM)=>{var MX={left:0,top:0};LM.exports=TX;function TX(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,o=AX(r);return t[0]=n-o.left,t[1]=a-o.top,t}function AX(e){return e===window||e===document||e===document.body?MX:e.getBoundingClientRect()}});var Zv=pe((_ce,DM)=>{"use strict";var kX=Vp();function SX(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}DM.exports=kX&&SX()});var FM=pe((wce,PM)=>{"use strict";PM.exports=function(r,t,n,a,o){var i=(r-n)/(a-n),l=i+t/(a-n),u=(i+l)/2;return o==="left"||o==="bottom"?i:o==="center"||o==="middle"?u:o==="right"||o==="top"?l:i<2/3-u?i:l>4/3-u?l:u}});var zM=pe((Mce,NM)=>{"use strict";var IM=ir(),CX=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];NM.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=IM.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=IM.constrain(Math.floor(t*3),0,2),CX[t][r]}});var OM=pe((Tce,qM)=>{"use strict";var EX=_f(),LX=Jc(),RX=vf().getGraphDiv,DX=sf(),h2=qM.exports={};h2.wrapped=function(e,r,t){e=RX(e),e._fullLayout&&LX.clear(e._fullLayout._uid+DX.HOVERID),h2.raw(e,r,t)};h2.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&EX.triggerHandler(r,"plotly_beforehover",t)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}))}});var ti=pe((Ace,VM)=>{"use strict";var PX=RM(),d2=Yp(),FX=Zv(),IX=ir().removeElement,NX=wn(),Vl=VM.exports={};Vl.align=FM();Vl.getCursor=zM();var UM=OM();Vl.unhover=UM.wrapped;Vl.unhoverRaw=UM.raw;Vl.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,o=r.element,i,l,u,s,f,v,p,b;t._mouseDownTime||(t._mouseDownTime=0),o.style.pointerEvents="all",o.onmousedown=M,FX?(o._ontouchstart&&o.removeEventListener("touchstart",o._ontouchstart),o._ontouchstart=M,o.addEventListener("touchstart",M,{passive:!1})):o.ontouchstart=M;function m(S,x,T){return Math.abs(S)a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;v.target===p?x=v:(x={target:p,srcElement:p,toElement:p},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(T=>{var d=v[T];!x[T]&&typeof d!="function"&&(x[T]=d)})),r.clickFn&&r.clickFn(n,x),b||p.dispatchEvent(new MouseEvent("click",S))}t._dragging=!1,t._dragged=!1}};function HM(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}Vl.coverSlip=HM;function BM(e){return PX(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Vo=pe((kce,GM)=>{"use strict";GM.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var XM=pe((Sce,WM)=>{"use strict";var p2=Vo(),Of="data-savedcursor",YM="!!";WM.exports=function(r,t){var n=r.attr(Of);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),o=0;o{"use strict";var g2=kn(),zX=Ti();ZM.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:zX.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:g2({editType:"legend"}),grouptitlefont:g2({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:g2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Kv=pe(Jv=>{"use strict";Jv.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Jv.isVertical=function(r){return r.orientation!=="h"};Jv.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var b2=pe((Lce,JM)=>{"use strict";var m2=Er(),ya=ir(),qX=gt(),OX=Sn(),BX=y2(),UX=Ds(),x2=Kv();function HX(e,r,t,n){var a=r[e]||{},o=qX.newContainer(t,e);function i(F,L){return ya.coerce(a,o,BX,F,L)}var l=ya.coerceFont(i,"font",t.font);i("bgcolor",t.paper_bgcolor),i("bordercolor");var u=i("visible");if(u){for(var s,f=function(F,L){var P=s._input,O=s;return ya.coerce(P,O,OX,F,L)},v=t.font||{},p=ya.coerceFont(i,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),b=0,m=!1,w="normal",M=(t.shapes||[]).filter(function(F){return F.showlegend}),y=n.concat(M).filter(function(F){return e===(F.legend||"legend")}),k=0;k(e==="legend"?1:0));if(x===!1&&(t[e]=void 0),!(x===!1&&!a.uirevision)&&(i("uirevision",t.uirevision),x!==!1)){i("borderwidth");var T=i("orientation"),d=i("yref"),_=i("xref"),g=T==="h",c=d==="paper",A=_==="paper",h,R,E,D="left";g?(h=0,m2.getComponentMethod("rangeslider","isVisible")(r.xaxis)?c?(R=1.1,E="bottom"):(R=1,E="top"):c?(R=-.1,E="top"):(R=0,E="bottom")):(R=1,E="auto",A?h=1.02:(h=1,D="right")),ya.coerce(a,o,{x:{valType:"number",editType:"legend",min:A?-2:0,max:A?3:1,dflt:h}},"x"),ya.coerce(a,o,{y:{valType:"number",editType:"legend",min:c?-2:0,max:c?3:1,dflt:R}},"y"),i("traceorder",w),x2.isGrouped(t[e])&&i("tracegroupgap"),i("entrywidth"),i("entrywidthmode"),i("indentation"),i("itemsizing"),i("itemwidth"),i("itemclick"),i("itemdoubleclick"),i("groupclick"),i("xanchor",D),i("yanchor",E),i("maxheight"),i("valign"),ya.noneOrAll(a,o,["x","y"]);var N=i("title.text");if(N){i("title.side",g?"left":"top");var I=ya.extendFlat({},l,{size:ya.bigFont(l.size)});ya.coerceFont(i,"title.font",I)}}}}JM.exports=function(r,t,n){var a,o=n.slice(),i=t.shapes;if(i)for(a=0;a{"use strict";var tu=Er(),w2=ir(),VX=w2.pushUnique,_2=!0;KM.exports=function(r,t,n){var a=t._fullLayout;if(t._dragged||t._editing)return;var o=a.legend.itemclick,i=a.legend.itemdoubleclick,l=a.legend.groupclick;n===1&&o==="toggle"&&i==="toggleothers"&&_2&&t.data&&t._context.showTips&&w2.notifier(w2._(t,"Double-click on legend to isolate one trace"),"long"),_2=!1;var u;if(n===1?u=o:n===2&&(u=i),!u)return;var s=l==="togglegroup",f=a.hiddenlabels?a.hiddenlabels.slice():[],v=r.data()[0][0];if(v.groupTitle&&v.noClick)return;var p=t._fullData,b=(a.shapes||[]).filter(function(Te){return Te.showlegend}),m=p.concat(b),w=v.trace;w._isShape&&(w=w._fullInput);var M=w.legendgroup,y,k,S,x,T,d,_={},g=[],c=[],A=[];function h(Te,Ee){var Pe=g.indexOf(Te),Se=_.visible;return Se||(Se=_.visible=[]),g.indexOf(Te)===-1&&(g.push(Te),Pe=g.length-1),Se[Pe]=Ee,Pe}var R=(a.shapes||[]).map(function(Te){return Te._input}),E=!1;function D(Te,Ee){R[Te].visible=Ee,E=!0}function N(Te,Ee){if(!(v.groupTitle&&!s)){var Pe=Te._fullInput||Te,Se=Pe._isShape,Ne=Pe.index;Ne===void 0&&(Ne=Pe._index);var Be=Pe.visible===!1?!1:Ee;Se?D(Ne,Be):h(Ne,Be)}}var I=w.legend,F=w._fullInput,L=F&&F._isShape;if(!L&&tu.traceIs(w,"pie-like")){var P=v.label,O=f.indexOf(P);if(u==="toggle")O===-1?f.push(P):f.splice(O,1);else if(u==="toggleothers"){var U=O!==-1,X=[];for(y=0;y{"use strict";$M.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var rT=pe((Pce,eT)=>{"use strict";var jM=Er(),T2=Kv();eT.exports=function(r,t,n){var a=t._inHover,o=T2.isGrouped(t),i=T2.isReversed(t),l={},u=[],s=!1,f={},v=0,p=0,b,m;function w(F,L,P){if(t.visible!==!1&&!(n&&F!==t._id))if(L===""||!T2.isGrouped(t)){var O="~~i"+v;u.push(O),l[O]=[P],v++}else u.indexOf(L)===-1?(u.push(L),s=!0,l[L]=[P]):l[L].push(P)}for(b=0;bA&&(c=A)}_[b][0]._groupMinRank=c,_[b][0]._preGroupSort=b}var h=function(F,L){return F[0]._groupMinRank-L[0]._groupMinRank||F[0]._preGroupSort-L[0]._preGroupSort},R=function(F,L){return F.trace.legendrank-L.trace.legendrank||F._preSort-L._preSort};for(_.forEach(function(F,L){F[0]._preGroupSort=L}),_.sort(h),b=0;b<_.length;b++){_[b].forEach(function(F,L){F._preSort=L}),_[b].sort(R);var E=_[b][0].trace,D=null;for(m=0;m<_[b].length;m++){var N=_[b][m].trace.legendgrouptitle;if(N&&N.text){D=N,a&&(N.font=t._groupTitleFont);break}}if(i&&_[b].reverse(),D){var I=!1;for(m=0;m<_[b].length;m++)if(jM.traceIs(_[b][m].trace,"pie-like")){I=!0;break}_[b].unshift({i:-1,groupTitle:D,noClick:I,trace:{showlegend:E.showlegend,legendgroup:E.legendgroup,visible:t.groupclick==="toggleitem"?!0:E.visible}})}for(m=0;m<_[b].length;m++)_[b][m]=[_[b][m]]}return t._lgroupsLength=_.length,t._maxNameLength=p,_}});var A2=pe(Gl=>{"use strict";var Qv=ir();function tT(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Gl.formatPiePercent=function(r,t){var n=tT((r*100).toPrecision(3));return Qv.numSeparate(n,t)+"%"};Gl.formatPieValue=function(r,t){var n=tT(r.toPrecision(10));return Qv.numSeparate(n,t)};Gl.getFirstFilled=function(r,t){if(Qv.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var GX=yt(),YX=Zr();nT.exports=function(r,t,n,a){var o=n.marker.pattern;o&&o.shape?GX.pointStyle(r,n,a,t):YX.fill(r,t.color)}});var sT=pe((Nce,lT)=>{"use strict";var iT=Zr(),oT=A2().castOption,WX=aT();lT.exports=function(r,t,n,a){var o=n.marker.line,i=oT(o.color,t.pts)||iT.defaultLine,l=oT(o.width,t.pts)||0;r.call(WX,t,n,a).style("stroke-width",l).call(iT.stroke,i)}});var E2=pe((zce,dT)=>{"use strict";var Bn=ot(),k2=Er(),En=ir(),uT=En.strTranslate,ma=yt(),Pa=Zr(),S2=Si().extractOpts,$v=ia(),XX=sT(),ZX=A2().castOption,JX=M2(),fT=12,cT=5,Yl=2,KX=10,nu=5;dT.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var o=n.itemsizing==="constant",i=n.itemwidth,l=(i+JX.itemGap*2)/2,u=uT(l,0),s=function(_,g,c,A){var h;if(_+1)h=_;else if(g&&g.width>0)h=g.width;else return 0;return o?A:Math.min(h,c)};r.each(function(_){var g=Bn.select(this),c=En.ensureSingle(g,"g","layers");c.style("opacity",_[0].trace.opacity);var A=n.indentation,h=n.valign,R=_[0].lineHeight,E=_[0].height;if(h==="middle"&&A===0||!R||!E)c.attr("transform",null);else{var D={top:1,bottom:-1}[h],N=D*(.5*(R-E+3))||0,I=n.indentation;c.attr("transform",uT(I,N))}var F=c.selectAll("g.legendfill").data([_]);F.enter().append("g").classed("legendfill",!0);var L=c.selectAll("g.legendlines").data([_]);L.enter().append("g").classed("legendlines",!0);var P=c.selectAll("g.legendsymbols").data([_]);P.enter().append("g").classed("legendsymbols",!0),P.selectAll("g.legendpoints").data([_]).enter().append("g").classed("legendpoints",!0)}).each(d).each(p).each(m).each(b).each(M).each(x).each(S).each(f).each(v).each(y).each(k);function f(_){var g=vT(_),c=g.showFill,A=g.showLine,h=g.showGradientLine,R=g.showGradientFill,E=g.anyFill,D=g.anyLine,N=_[0],I=N.trace,F,L,P=S2(I),O=P.colorscale,U=P.reversescale,X=function(Q){if(Q.size())if(c)ma.fillGroupStyle(Q,t,!0);else{var ie="legendfill-"+I.uid;ma.gradient(Q,t,ie,C2(U),O,"fill")}},$=function(Q){if(Q.size()){var ie="legendline-"+I.uid;ma.lineGroupStyle(Q),ma.gradient(Q,t,ie,C2(U),O,"stroke")}},j=$v.hasMarkers(I)||!E?"M5,0":D?"M5,-2":"M5,-3",Y=Bn.select(this),q=Y.select(".legendfill").selectAll("path").data(c||R?[_]:[]);if(q.enter().append("path").classed("js-fill",!0),q.exit().remove(),q.attr("d",j+"h"+i+"v6h-"+i+"z").call(X),A||h){var K=s(void 0,I.line,KX,cT);L=En.minExtend(I,{line:{width:K}}),F=[En.minExtend(N,{trace:L})]}var ne=Y.select(".legendlines").selectAll("path").data(A||h?[F]:[]);ne.enter().append("path").classed("js-line",!0),ne.exit().remove(),ne.attr("d",j+(h?"l"+i+",0.0001":"h"+i)).call(A?ma.lineGroupStyle:$)}function v(_){var g=vT(_),c=g.anyFill,A=g.anyLine,h=g.showLine,R=g.showMarker,E=_[0],D=E.trace,N=!R&&!A&&!c&&$v.hasText(D),I,F;function L(q,K,ne,Q){var ie=En.nestedProperty(D,q).get(),ee=En.isArrayOrTypedArray(ie)&&K?K(ie):ie;if(o&&ee&&Q!==void 0&&(ee=Q),ne){if(eene[1])return ne[1]}return ee}function P(q){return E._distinct&&E.index&&q[E.index]?q[E.index]:q[0]}if(R||N||h){var O={},U={};if(R){O.mc=L("marker.color",P),O.mx=L("marker.symbol",P),O.mo=L("marker.opacity",En.mean,[.2,1]),O.mlc=L("marker.line.color",P),O.mlw=L("marker.line.width",En.mean,[0,5],Yl),U.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var X=L("marker.size",En.mean,[2,16],fT);O.ms=X,U.marker.size=X}h&&(U.line={width:L("line.width",P,[0,10],cT)}),N&&(O.tx="Aa",O.tp=L("textposition",P),O.ts=10,O.tc=L("textfont.color",P),O.tf=L("textfont.family",P),O.tw=L("textfont.weight",P),O.ty=L("textfont.style",P),O.tv=L("textfont.variant",P),O.tC=L("textfont.textcase",P),O.tE=L("textfont.lineposition",P),O.tS=L("textfont.shadow",P)),I=[En.minExtend(E,O)],F=En.minExtend(D,U),F.selectedpoints=null,F.texttemplate=null}var $=Bn.select(this).select("g.legendpoints"),j=$.selectAll("path.scatterpts").data(R?I:[]);j.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),j.exit().remove(),j.call(ma.pointStyle,F,t),R&&(I[0].mrc=3);var Y=$.selectAll("g.pointtext").data(N?I:[]);Y.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),Y.exit().remove(),Y.selectAll("text").call(ma.textPointStyle,F,t)}function p(_){var g=_[0].trace,c=g.type==="waterfall";if(_[0]._distinct&&c){var A=_[0].trace[_[0].dir].marker;return _[0].mc=A.color,_[0].mlw=A.line.width,_[0].mlc=A.line.color,w(_,this,"waterfall")}var h=[];g.visible&&c&&(h=_[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=Bn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(h);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(E){var D=Bn.select(this),N=g[E[0]].marker,I=s(void 0,N.line,nu,Yl);D.attr("d",E[1]).style("stroke-width",I+"px").call(Pa.fill,N.color),I&&D.call(Pa.stroke,N.line.color)})}function b(_){w(_,this)}function m(_){w(_,this,"funnel")}function w(_,g,c){var A=_[0].trace,h=A.marker||{},R=h.line||{},E=h.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",D=c?A.visible&&A.type===c:k2.traceIs(A,"bar"),N=Bn.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(D?[_]:[]);N.enter().append("path").classed("legend"+c,!0).attr("d",E).attr("transform",u),N.exit().remove(),N.each(function(I){var F=Bn.select(this),L=I[0],P=s(L.mlw,h.line,nu,Yl);F.style("stroke-width",P+"px");var O=L.mcc;if(!n._inHover&&"mc"in L){var U=S2(h),X=U.mid;X===void 0&&(X=(U.max+U.min)/2),O=ma.tryColorscale(h,"")(X)}var $=O||L.mc||h.color,j=h.pattern,Y=ma.getPatternAttr,q=j&&(Y(j.shape,0,"")||Y(j.path,0,""));if(q){var K=Y(j.bgcolor,0,null),ne=Y(j.fgcolor,0,null),Q=j.fgopacity,ie=hT(j.size,8,10),ee=hT(j.solidity,.5,1),V="legend-"+A.uid;F.call(ma.pattern,"legend",t,V,q,ie,ee,O,j.fillmode,K,ne,Q)}else F.call(Pa.fill,$);P&&Pa.stroke(F,L.mlc||R.color)})}function M(_){var g=_[0].trace,c=Bn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(g.visible&&k2.traceIs(g,"box-violin")?[_]:[]);c.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),c.exit().remove(),c.each(function(){var A=Bn.select(this);if((g.boxpoints==="all"||g.points==="all")&&Pa.opacity(g.fillcolor)===0&&Pa.opacity((g.line||{}).color)===0){var h=En.minExtend(g,{marker:{size:o?fT:En.constrain(g.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});c.call(ma.pointStyle,h,t)}else{var R=s(void 0,g.line,nu,Yl);A.style("stroke-width",R+"px").call(Pa.fill,g.fillcolor),R&&Pa.stroke(A,g.line.color)}})}function y(_){var g=_[0].trace,c=Bn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(g.visible&&g.type==="candlestick"?[_,_]:[]);c.enter().append("path").classed("legendcandle",!0).attr("d",function(A,h){return h?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),c.exit().remove(),c.each(function(A,h){var R=Bn.select(this),E=g[h?"increasing":"decreasing"],D=s(void 0,E.line,nu,Yl);R.style("stroke-width",D+"px").call(Pa.fill,E.fillcolor),D&&Pa.stroke(R,E.line.color)})}function k(_){var g=_[0].trace,c=Bn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(g.visible&&g.type==="ohlc"?[_,_]:[]);c.enter().append("path").classed("legendohlc",!0).attr("d",function(A,h){return h?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),c.exit().remove(),c.each(function(A,h){var R=Bn.select(this),E=g[h?"increasing":"decreasing"],D=s(void 0,E.line,nu,Yl);R.style("fill","none").call(ma.dashLine,E.line.dash,D),D&&Pa.stroke(R,E.line.color)})}function S(_){T(_,this,"pie")}function x(_){T(_,this,"funnelarea")}function T(_,g,c){var A=_[0],h=A.trace,R=c?h.visible&&h.type===c:k2.traceIs(h,c),E=Bn.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(R?[_]:[]);if(E.enter().append("path").classed("legend"+c,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),E.exit().remove(),E.size()){var D=h.marker||{},N=s(ZX(D.line.width,A.pts),D.line,nu,Yl),I="pieLike",F=En.minExtend(h,{marker:{line:{width:N}}},I),L=En.minExtend(A,{trace:F},I);XX(E,L,F,t)}}function d(_){var g=_[0].trace,c,A=[];if(g.visible)switch(g.type){case"histogram2d":case"heatmap":A=[["M-15,-2V4H15V-2Z"]],c=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":A=[["M-6,-6V6H6V-6Z"]],c=!0;break;case"densitymapbox":case"densitymap":A=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],c="radial";break;case"cone":A=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],c=!1;break;case"streamtube":A=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],c=!1;break;case"surface":A=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],c=!0;break;case"mesh3d":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],c=!1;break;case"volume":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],c=!0;break;case"isosurface":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],c=!1;break}var h=Bn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(A);h.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),h.exit().remove(),h.each(function(R,E){var D=Bn.select(this),N=S2(g),I=N.colorscale,F=N.reversescale,L=function(X){if(X.size()){var $="legendfill-"+g.uid;ma.gradient(X,t,$,C2(F,c==="radial"),I,"fill")}},P;if(I){if(!c){var U=I.length;P=E===0?I[F?U-1:0][1]:E===1?I[F?0:U-1][1]:I[Math.floor((U-1)/2)][1]}}else{var O=g.vertexcolor||g.facecolor||g.color;P=En.isArrayOrTypedArray(O)?O[E]||O[0]:O}D.attr("d",R[0]),P?D.call(Pa.fill,P):D.call(L)})}};function C2(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function vT(e){var r=e[0].trace,t=r.contours,n=$v.hasLines(r),a=$v.hasMarkers(r),o=r.visible&&r.fill&&r.fill!=="none",i=!1,l=!1;if(t){var u=t.coloring;u==="lines"?i=!0:n=u==="none"||u==="heatmap"||t.showlines,t.type==="constraint"?o=t._operation!=="=":(u==="fill"||u==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:o,showGradientLine:i,showGradientFill:l,anyLine:n||i,anyFill:o||l}}function hT(e,r,t){return e&&En.isArrayOrTypedArray(e)?r:e>t?t:e}});var P2=pe((qce,TT)=>{"use strict";var oa=ot(),Xt=ir(),R2=ln(),ou=Er(),pT=_f(),L2=ti(),Zt=yt(),eh=Zr(),Wl=Yn(),gT=QM(),rn=M2(),D2=qn(),wT=D2.LINE_SPACING,iu=D2.FROM_TL,yT=D2.FROM_BR,mT=rT(),QX=E2(),xT=Kv(),au=1,$X=/^legend[0-9]*$/;TT.exports=function(r,t){if(t)bT(r,t);else{var n=r._fullLayout,a=n._legends,o=n._infolayer.selectAll('[class^="legend"]');o.each(function(){var s=oa.select(this),f=s.attr("class"),v=f.split(" ")[0];v.match($X)&&a.indexOf(v)===-1&&s.remove()});for(var i=0;i1)}var m=n.hiddenlabels||[];if(!l&&(!n.showlegend||!u.length))return i.selectAll("."+a).remove(),n._topdefs.select("#"+o).remove(),R2.autoMargin(e,a);var w=Xt.ensureSingle(i,"g",a,function(g){l||g.attr("pointer-events","all")}),M=Xt.ensureSingleById(n._topdefs,"clipPath",o,function(g){g.append("rect")}),y=Xt.ensureSingle(w,"rect","bg",function(g){g.attr("shape-rendering","crispEdges")});y.call(eh.stroke,t.bordercolor).call(eh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var k=Xt.ensureSingle(w,"g","scrollbox"),S=t.title;t._titleWidth=0,t._titleHeight=0;var x;S.text?(x=Xt.ensureSingle(k,"text",a+"titletext"),x.attr("text-anchor","start").call(Zt.font,S.font).text(S.text),rh(x,k,e,t,au)):k.selectAll("."+a+"titletext").remove();var T=Xt.ensureSingle(w,"rect","scrollbar",function(g){g.attr(rn.scrollBarEnterAttrs).call(eh.fill,rn.scrollBarColor)}),d=k.selectAll("g.groups").data(u);d.enter().append("g").attr("class","groups"),d.exit().remove();var _=d.selectAll("g.traces").data(Xt.identity);_.enter().append("g").attr("class","traces"),_.exit().remove(),_.style("opacity",function(g){var c=g[0].trace;return ou.traceIs(c,"pie-like")?m.indexOf(g[0].label)!==-1?.5:1:c.visible==="legendonly"?.5:1}).each(function(){oa.select(this).call(eZ,e,t)}).call(QX,e,t).each(function(){l||oa.select(this).call(rZ,e,a)}),Xt.syncOrAsync([R2.previousPromises,function(){return aZ(e,d,_,t)},function(){var g=n._size,c=t.borderwidth,A=t.xref==="paper",h=t.yref==="paper";if(S.text&&jX(x,t,c),!l){var R,E;A?R=g.l+g.w*t.x-iu[th(t)]*t._width:R=n.width*t.x-iu[th(t)]*t._width,h?E=g.t+g.h*(1-t.y)-iu[nh(t)]*t._effHeight:E=n.height*(1-t.y)-iu[nh(t)]*t._effHeight;var D=iZ(e,a,R,E);if(D)return;if(n.margin.autoexpand){var N=R,I=E;R=A?Xt.constrain(R,0,n.width-t._width):N,E=h?Xt.constrain(E,0,n.height-t._effHeight):I,R!==N&&Xt.log("Constrain "+a+".x to make legend fit inside graph"),E!==I&&Xt.log("Constrain "+a+".y to make legend fit inside graph")}Zt.setTranslate(w,R,E)}if(T.on(".drag",null),w.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var F=t._effHeight;l&&(F=t._height),y.attr({width:t._width-c,height:F-c,x:c/2,y:c/2}),Zt.setTranslate(k,0,0),M.select("rect").attr({width:t._width-2*c,height:F-2*c,x:c,y:c}),Zt.setClipUrl(k,o,e),Zt.setRect(T,0,0,0,0),delete t._scrollY}else{var L=Math.max(rn.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),P=t._effHeight-L-2*rn.scrollBarMargin,O=t._height-t._effHeight,U=P/O,X=Math.min(t._scrollY||0,O);y.attr({width:t._width-2*c+rn.scrollBarWidth+rn.scrollBarMargin,height:t._effHeight-c,x:c/2,y:c/2}),M.select("rect").attr({width:t._width-2*c+rn.scrollBarWidth+rn.scrollBarMargin,height:t._effHeight-2*c,x:c,y:c+X}),Zt.setClipUrl(k,o,e),ie(X,L,U),w.on("wheel",function(){X=Xt.constrain(t._scrollY+oa.event.deltaY/P*O,0,O),ie(X,L,U),X!==0&&X!==O&&oa.event.preventDefault()});var $,j,Y,q=function(te,ue,de){var ke=(de-ue)/U+te;return Xt.constrain(ke,0,O)},K=function(te,ue,de){var ke=(ue-de)/U+te;return Xt.constrain(ke,0,O)},ne=oa.behavior.drag().on("dragstart",function(){var te=oa.event.sourceEvent;te.type==="touchstart"?$=te.changedTouches[0].clientY:$=te.clientY,Y=X}).on("drag",function(){var te=oa.event.sourceEvent;te.buttons===2||te.ctrlKey||(te.type==="touchmove"?j=te.changedTouches[0].clientY:j=te.clientY,X=q(Y,$,j),ie(X,L,U))});T.call(ne);var Q=oa.behavior.drag().on("dragstart",function(){var te=oa.event.sourceEvent;te.type==="touchstart"&&($=te.changedTouches[0].clientY,Y=X)}).on("drag",function(){var te=oa.event.sourceEvent;te.type==="touchmove"&&(j=te.changedTouches[0].clientY,X=K(Y,$,j),ie(X,L,U))});k.call(Q)}function ie(te,ue,de){t._scrollY=e._fullLayout[a]._scrollY=te,Zt.setTranslate(k,0,-te),Zt.setRect(T,t._width,rn.scrollBarMargin+te*de,rn.scrollBarWidth,ue),M.select("rect").attr("y",c+te)}if(e._context.edits.legendPosition){var ee,V,re,H;w.classed("cursor-move",!0),L2.init({element:w.node(),gd:e,prepFn:function(te){if(te.target!==T.node()){var ue=Zt.getTranslate(w);re=ue.x,H=ue.y}},moveFn:function(te,ue){if(re!==void 0&&H!==void 0){var de=re+te,ke=H+ue;Zt.setTranslate(w,de,ke),ee=L2.align(de,t._width,g.l,g.l+g.w,t.xanchor),V=L2.align(ke+t._height,-t._height,g.t+g.h,g.t,t.yanchor)}},doneFn:function(){if(ee!==void 0&&V!==void 0){var te={};te[a+".x"]=ee,te[a+".y"]=V,ou.call("_guiRelayout",e,te)}},clickFn:function(te,ue){var de=i.selectAll("g.traces").filter(function(){var ke=this.getBoundingClientRect();return ue.clientX>=ke.left&&ue.clientX<=ke.right&&ue.clientY>=ke.top&&ue.clientY<=ke.bottom});de.size()>0&&MT(e,w,de,te,ue)}})}}],e)}}function jv(e,r,t){var n=e[0],a=n.width,o=r.entrywidthmode,i=n.trace.legendwidth||r.entrywidth;return o==="fraction"?r._maxWidth*i:t+(i||a)}function MT(e,r,t,n,a){var o=t.data()[0][0].trace,i={event:a,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};o._group&&(i.group=o._group),ou.traceIs(o,"pie-like")&&(i.label=t.datum()[0].label);var l=pT.triggerHandler(e,"plotly_legendclick",i);if(n===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&gT(t,e,n)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var u=pT.triggerHandler(e,"plotly_legenddoubleclick",i);u!==!1&&l!==!1&&gT(t,e,n)}}function eZ(e,r,t){var n=ah(t),a=e.data()[0][0],o=a.trace,i=ou.traceIs(o,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!i,u=t._maxNameLength,s,f;a.groupTitle?(s=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?s=a.text:(s=i?a.label:o.name,o._meta&&(s=Xt.templateString(s,o._meta))));var v=Xt.ensureSingle(e,"text",n+"text");v.attr("text-anchor","start").call(Zt.font,f).text(l?_T(s,u):s);var p=t.indentation+t.itemwidth+rn.itemGap*2;Wl.positionText(v,p,0),l?v.call(Wl.makeEditable,{gd:r,text:s}).call(rh,e,r,t).on("edit",function(b){this.text(_T(b,u)).call(rh,e,r,t);var m=a.trace._fullInput||{},w={};return w.name=b,m._isShape?ou.call("_guiRelayout",r,"shapes["+o.index+"].name",w.name):ou.call("_guiRestyle",r,w,o.index)}):rh(v,e,r,t)}function _T(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function rZ(e,r,t){var n=r._context.doubleClickDelay,a,o=1,i=Xt.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(eh.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(i.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTimen&&(o=Math.max(o-1,1)),MT(r,l,e,o,oa.event)}}))}function rh(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),Wl.convertToTspans(e,t,function(){tZ(r,t,n,a)})}function tZ(e,r,t,n){var a=e.data()[0][0];if(!t._inHover&&a&&!a.trace.showlegend){e.remove();return}var o=e.select("g[class*=math-group]"),i=o.node(),l=ah(t);t||(t=r._fullLayout[l]);var u=t.borderwidth,s;n===au?s=t.title.font:a.groupTitle?s=a.groupTitle.font:s=t.font;var f=s.size*wT,v,p;if(i){var b=Zt.bBox(i);v=b.height,p=b.width,n===au?Zt.setTranslate(o,u,u+v*.75):Zt.setTranslate(o,0,v*.25)}else{var m="."+l+(n===au?"title":"")+"text",w=e.select(m),M=Wl.lineCount(w),y=w.node();if(v=f*M,p=y?Zt.bBox(y).width:0,n===au)t.title.side==="left"&&(p+=rn.itemGap*2),Wl.positionText(w,u+rn.titlePad,u+f);else{var k=rn.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(k=rn.itemGap,p-=t.indentation+t.itemwidth),Wl.positionText(w,k,-f*((M-1)/2-.3))}}n===au?(t._titleWidth=p,t._titleHeight=v):(a.lineHeight=f,a.height=Math.max(v,16)+3,a.width=p)}function nZ(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function aZ(e,r,t,n){var a=e._fullLayout,o=ah(n);n||(n=a[o]);var i=a._size,l=xT.isVertical(n),u=xT.isGrouped(n),s=n.entrywidthmode==="fraction",f=n.borderwidth,v=2*f,p=rn.itemGap,b=n.indentation+n.itemwidth+p*2,m=2*(f+p),w=nh(n),M=n.y<0||n.y===0&&w==="top",y=n.y>1||n.y===1&&w==="bottom",k=n.tracegroupgap,S={};let{orientation:x,yref:T}=n,{maxheight:d}=n,_=M||y||x!=="v"||T!=="paper";d||(d=_?.5:1);let g=_?a.height:i.h;n._maxHeight=Math.max(d>1?d:d*g,30);var c=0;n._width=0,n._height=0;var A=nZ(n);if(l)t.each(function(ie){var ee=ie[0].height;Zt.setTranslate(this,f+A[0],f+A[1]+n._height+ee/2+p),n._height+=ee,n._width=Math.max(n._width,ie[0].width)}),c=b+n._width,n._width+=p+b+v,n._height+=m,u&&(r.each(function(ie,ee){Zt.setTranslate(this,0,ee*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var h=th(n),R=n.x<0||n.x===0&&h==="right",E=n.x>1||n.x===1&&h==="left",D=y||M,N=a.width/2;n._maxWidth=Math.max(R?D&&h==="left"?i.l+i.w:N:E?D&&h==="right"?i.r+i.w:N:i.w,2*b);var I=0,F=0;t.each(function(ie){var ee=jv(ie,n,b);I=Math.max(I,ee),F+=ee}),c=null;var L=0;if(u){var P=0,O=0,U=0;r.each(function(){var ie=0,ee=0;oa.select(this).selectAll("g.traces").each(function(re){var H=jv(re,n,b),te=re[0].height;Zt.setTranslate(this,A[0],A[1]+f+p+te/2+ee),ee+=te,ie=Math.max(ie,H),S[re[0].trace.legendgroup]=ie});var V=ie+p;O>0&&V+f+O>n._maxWidth?(L=Math.max(L,O),O=0,U+=P+k,P=ee):P=Math.max(P,ee),Zt.setTranslate(this,O,U),O+=V}),n._width=Math.max(L,O)+f,n._height=U+P+m}else{var X=t.size(),$=F+v+(X-1)*p=n._maxWidth&&(L=Math.max(L,K),Y=0,q+=j,n._height+=j,j=0),Zt.setTranslate(this,A[0]+f+Y,A[1]+f+q+ee/2+p),K=Y+V+p,Y+=re,j=Math.max(j,ee)}),$?(n._width=Y+v,n._height=j+m):(n._width=Math.max(L,K)+v,n._height+=j+m)}}n._width=Math.ceil(Math.max(n._width+A[0],n._titleWidth+2*(f+rn.titlePad))),n._height=Math.ceil(Math.max(n._height+A[1],n._titleHeight+2*(f+rn.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var ne=e._context.edits,Q=ne.legendText||ne.legendPosition;t.each(function(ie){var ee=oa.select(this).select("."+o+"toggle"),V=ie[0].height,re=ie[0].trace.legendgroup,H=jv(ie,n,b);u&&re!==""&&(H=S[re]);var te=Q?b:c||H;!l&&!s&&(te+=p/2),Zt.setRect(ee,0,-V/2,te,V)})}function iZ(e,r,t,n){var a=e._fullLayout,o=a[r],i=th(o),l=nh(o),u=o.xref==="paper",s=o.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=o.y<.5?"b":"t",v=o.x<.5?"l":"r",p={r:a.width-t,l:t+o._width,b:a.height-n,t:n+o._effHeight};if(u&&s)return R2.autoMargin(e,r,{x:o.x,y:o.y,l:o._width*iu[i],r:o._width*yT[i],b:o._effHeight*yT[l],t:o._effHeight*iu[l]});u?e._fullLayout._reservedMargin[r][f]=p[f]:s||o.orientation==="v"?e._fullLayout._reservedMargin[r][v]=p[v]:e._fullLayout._reservedMargin[r][f]=p[f]}function th(e){return Xt.isRightAnchor(e)?"right":Xt.isCenterAnchor(e)?"center":"left"}function nh(e){return Xt.isBottomAnchor(e)?"bottom":Xt.isMiddleAnchor(e)?"middle":"top"}function ah(e){return e._id||"legend"}});var z2=pe(N2=>{"use strict";var Xl=ot(),ao=tt(),AT=Sa(),Ft=ir(),oZ=Ft.pushUnique,F2=Ft.strTranslate,lZ=Ft.strRotate,sZ=_f(),Fa=Yn(),uZ=XM(),Ii=yt(),un=Zr(),ih=ti(),Ni=Ct(),fZ=wn().zindexSeparator,su=Er(),ni=to(),Zl=sf(),cZ=b2(),vZ=P2(),PT=Zl.YANGLE,I2=Math.PI*PT/180,hZ=1/Math.sin(I2),dZ=Math.cos(I2),pZ=Math.sin(I2),kt=Zl.HOVERARROWSIZE,$r=Zl.HOVERTEXTPAD,kT={box:!0,ohlc:!0,violin:!0,candlestick:!0},gZ={scatter:!0,scattergl:!0,splom:!0};function ST(e,r){return e.distance-r.distance}N2.hover=function(r,t,n,a){r=Ft.getGraphDiv(r);var o=t.target;Ft.throttle(r._fullLayout._uid+Zl.HOVERID,Zl.HOVERMINTIME,function(){yZ(r,t,n,a,o)})};N2.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,o=qT(a),i=OT(a),l=r.map(function(M){var y=M._x0||M.x0||M.x||0,k=M._x1||M.x1||M.x||0,S=M._y0||M.y0||M.y||0,x=M._y1||M.y1||M.y||0,T=M.eventData;if(T){var d=Math.min(y,k),_=Math.max(y,k),g=Math.min(S,x),c=Math.max(S,x),A=M.trace;if(su.traceIs(A,"gl3d")){var h=a._fullLayout[A.scene]._scene.container,R=h.offsetLeft,E=h.offsetTop;d+=R,_+=R,g+=E,c+=E}T.bbox={x0:d+i,x1:_+i,y0:g+o,y1:c+o},t.inOut_bbox&&t.inOut_bbox.push(T.bbox)}else T=!1;return{color:M.color||un.defaultLine,x0:M.x0||M.x||0,x1:M.x1||M.x||0,y0:M.y0||M.y||0,y1:M.y1||M.y||0,xLabel:M.xLabel,yLabel:M.yLabel,zLabel:M.zLabel,text:M.text,name:M.name,idealAlign:M.idealAlign,borderColor:M.borderColor,fontFamily:M.fontFamily,fontSize:M.fontSize,fontColor:M.fontColor,fontWeight:M.fontWeight,fontStyle:M.fontStyle,fontVariant:M.fontVariant,nameLength:M.nameLength,textAlign:M.textAlign,trace:M.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:M.hovertemplate||!1,hovertemplateLabels:M.hovertemplateLabels||!1,eventData:T}}),u=!1,s=IT(l,{gd:a,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||un.background,container:Xl.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels,v=5,p=0,b=0;f.sort(function(M,y){return M.y0-y.y0}).each(function(M,y){var k=M.y0-M.by/2;k-v_[0]._length||H<0||H>g[0]._length)return ih.unhoverRaw(e,r)}if(r.pointerX=re+_[0]._offset,r.pointerY=H+g[0]._offset,"xval"in r?I=ni.flat(o,r.xval):I=ni.p2c(_,re),"yval"in r?F=ni.flat(o,r.yval):F=ni.p2c(g,H),!ao(I[0])||!ao(F[0]))return Ft.warn("Fx.hover failed",r,e),ih.unhoverRaw(e,r)}var de=1/0;function ke(mr,ct){for(P=0;Pne&&(D.splice(0,ne),de=D[0].distance),v&&E!==0&&D.length===0){K.distance=E,K.index=!1;var Hr=U._module.hoverPoints(K,Y,q,"closest",{hoverLayer:l._hoverlayer});if(Hr&&(Hr=Hr.filter(function(at){return at.spikeDistance<=E})),Hr&&Hr.length){var Ot,Lt=Hr.filter(function(at){return at.xa.showspikes&&at.xa.spikesnap!=="hovered data"});if(Lt.length){var yn=Lt[0];ao(yn.x0)&&ao(yn.y0)&&(Ot=ve(yn),(!Q.vLinePoint||Q.vLinePoint.spikeDistance>Ot.spikeDistance)&&(Q.vLinePoint=Ot))}var Gt=Hr.filter(function(at){return at.ya.showspikes&&at.ya.spikesnap!=="hovered data"});if(Gt.length){var Rt=Gt[0];ao(Rt.x0)&&ao(Rt.y0)&&(Ot=ve(Rt),(!Q.hLinePoint||Q.hLinePoint.spikeDistance>Ot.spikeDistance)&&(Q.hLinePoint=Ot))}}}}}ke();function Ae(mr,ct,Cr){for(var Ur=null,xt=1/0,zr,Hr=0;Hr0&&Math.abs(mr.distance)he-1;Ue--)We(D[Ue]);D=ze,Se()}var Ge=e._hoverdata,_e=[],De=qT(e),Ke=OT(e);for(L=0;L1||D.length>1)||p==="closest"&&ie&&D.length>1,Mr=un.combine(l.plot_bgcolor||un.background,l.paper_bgcolor),Ar=IT(D,{gd:e,hovermode:p,rotateLabels:Sr,bgColor:Mr,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),nt=Ar.hoverLabels;if(ni.isUnifiedHover(p)||(xZ(nt,Sr,l,Ar.commonLabelBoundingBox),zT(nt,Sr,l._invScaleX,l._invScaleY)),a&&a.tagName){var Yr=su.getComponentMethod("annotations","hasClickToShow")(e,_e);uZ(Xl.select(a),Yr?"pointer":"")}!a||n||!wZ(e,r,Ge)||(Ge&&e.emit("plotly_unhover",{event:r,points:Ge}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:_,yaxes:g,xvals:I,yvals:F}))}function FT(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var mZ=/([\s\S]*)<\/extra>/;function IT(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,o=r.rotateLabels,i=r.bgColor,l=r.container,u=r.outerContainer,s=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||Zl.HOVERFONT,v=r.fontSize||Zl.HOVERFONTSIZE,p=r.fontWeight||n.font.weight,b=r.fontStyle||n.font.style,m=r.fontVariant||n.font.variant,w=r.fontTextcase||n.font.textcase,M=r.fontLineposition||n.font.lineposition,y=r.fontShadow||n.font.shadow,k=e[0],S=k.xa,x=k.ya,T=a.charAt(0),d=T+"Label",_=k[d];if(_===void 0&&S.type==="multicategory")for(var g=0;gn.width-Ke&&(Ye=n.width-Ke),he.attr("d","M"+(Ge-Ye)+",0L"+(Ge-Ye+kt)+","+De+kt+"H"+Ke+"v"+De+($r*2+Ue.height)+"H"+-Ke+"V"+De+kt+"H"+(Ge-Ye-kt)+"Z"),Ge=Ye,P.minX=Ge-Ke,P.maxX=Ge+Ke,S.side==="top"?(P.minY=_e-($r*2+Ue.height),P.maxY=_e-$r):(P.minY=_e+$r,P.maxY=_e+($r*2+Ue.height))}else{var ar,se,J;x.side==="right"?(ar="start",se=1,J="",Ge=S._offset+S._length):(ar="end",se=-1,J="-",Ge=S._offset),_e=x._offset+(k.y0+k.y1)/2,ye.attr("text-anchor",ar),he.attr("d","M0,0L"+J+kt+","+kt+"V"+($r+Ue.height/2)+"h"+J+($r*2+Ue.width)+"V-"+($r+Ue.height/2)+"H"+J+kt+"V-"+kt+"Z"),P.minY=_e-($r+Ue.height/2),P.maxY=_e+($r+Ue.height/2),x.side==="right"?(P.minX=Ge+kt,P.maxX=Ge+kt+($r*2+Ue.width)):(P.minX=Ge-kt-($r*2+Ue.width),P.maxX=Ge-kt);var ae=Ue.height/2,Le=A-Ue.top-ae,He="clip"+n._uid+"commonlabel"+x._id,je;if(Ge=0?Me=Ne:Be+de=0?Me=Be:ge+de=0?me=Pe:Se+ke=0?me=Se:we+ke=0,(ce.idealAlign==="top"||!br)&&Sr?(J-=Le/2,ce.anchor="end"):br?(J+=Le/2,ce.anchor="start"):ce.anchor="middle",ce.crossPos=J;else{if(ce.pos=J,br=se+ae/2+fr<=h,Sr=se-ae/2-fr>=0,(ce.idealAlign==="left"||!br)&&Sr)se-=ae/2,ce.anchor="end";else if(br)se+=ae/2,ce.anchor="start";else{ce.anchor="middle";var Mr=fr/2,Ar=se+Mr-h,nt=se-Mr;Ar>0&&(se-=Ar),nt<0&&(se+=-nt)}ce.crossPos=se}_e.attr("text-anchor",ce.anchor),Ke&&De.attr("text-anchor",ce.anchor),he.attr("transform",F2(se,J)+(o?lZ(PT):""))}),{hoverLabels:Re,commonLabelBoundingBox:P}}function CT(e,r,t,n,a,o){var i="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ft.templateString(e.name,e.trace._meta)),i=RT(e.name,e.nameLength));var u=t.charAt(0),s=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[u+"Label"]===a?l=e[s+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),o&&l===""&&!e.hovertemplate&&(i===""&&o.remove(),l=i);var f=e.hovertemplate||!1;if(f){var v=e.hovertemplateLabels||e;e[u+"Label"]!==a&&(v[u+"other"]=v[u+"Val"],v[u+"otherLabel"]=v[u+"Label"]),l=Ft.hovertemplateString(f,v,n._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(mZ,function(p,b){return i=RT(b,e.nameLength),""})}return[l,i]}function xZ(e,r,t,n){var a=r?"xa":"ya",o=r?"ya":"xa",i=0,l=1,u=e.size(),s=new Array(u),f=0,v=n.minX,p=n.maxX,b=n.minY,m=n.maxY,w=function(I){return I*t._invScaleX},M=function(I){return I*t._invScaleY};e.each(function(I){var F=I[a],L=I[o],P=F._id.charAt(0)==="x",O=F.range;f===0&&O&&O[0]>O[1]!==P&&(l=-1);var U=0,X=P?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var $=NT(I,r),j=I.anchor,Y=j==="end"?-1:1,q,K;if(j==="middle")q=I.crossPos+(P?M($.y-I.by/2):w(I.bx/2+I.tx2width/2)),K=q+(P?M(I.by):w(I.bx));else if(P)q=I.crossPos+M(kt+$.y)-M(I.by/2-kt),K=q+M(I.by);else{var ne=w(Y*kt+$.x),Q=ne+w(Y*I.bx);q=I.crossPos+Math.min(ne,Q),K=I.crossPos+Math.max(ne,Q)}P?b!==void 0&&m!==void 0&&Math.min(K,m)-Math.max(q,b)>1&&(L.side==="left"?(U=L._mainLinePosition,X=t.width):X=L._mainLinePosition):v!==void 0&&p!==void 0&&Math.min(K,p)-Math.max(q,v)>1&&(L.side==="top"?(U=L._mainLinePosition,X=t.height):X=L._mainLinePosition)}s[f++]=[{datum:I,traceIndex:I.trace.index,dp:0,pos:I.pos,posref:I.posref,size:I.by*(P?hZ:1)/2,pmin:U,pmax:X}]}),s.sort(function(I,F){return I[0].posref-F[0].posref||l*(F[0].traceIndex-I[0].traceIndex)});var y,k,S,x,T,d,_;function g(I){var F=I[0],L=I[I.length-1];if(k=F.pmin-F.pos-F.dp+F.size,S=L.pos+L.dp+L.size-F.pmax,k>.01){for(T=I.length-1;T>=0;T--)I[T].dp+=k;y=!1}if(!(S<.01)){if(k<-.01){for(T=I.length-1;T>=0;T--)I[T].dp-=S;y=!1}if(y){var P=0;for(x=0;xF.pmax&&P++;for(x=I.length-1;x>=0&&!(P<=0);x--)d=I[x],d.pos>F.pmax-1&&(d.del=!0,P--);for(x=0;x=0;T--)I[T].dp-=S;for(x=I.length-1;x>=0&&!(P<=0);x--)d=I[x],d.pos+d.dp+d.size>F.pmax&&(d.del=!0,P--)}}}for(;!y&&i<=u;){for(i++,y=!0,x=0;x.01){for(T=A.length-1;T>=0;T--)A[T].dp+=k;for(c.push.apply(c,A),s.splice(x+1,1),_=0,T=c.length-1;T>=0;T--)_+=c[T].dp;for(S=_/c.length,T=c.length-1;T>=0;T--)c[T].dp-=S;y=!1}else x++}s.forEach(g)}for(x=s.length-1;x>=0;x--){var E=s[x];for(T=E.length-1;T>=0;T--){var D=E[T],N=D.datum;N.offset=D.dp,N.del=D.del}}}function NT(e,r){var t=0,n=e.offset;return r&&(n*=-pZ,t=e.offset*dZ),{x:t,y:n}}function bZ(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(kt+$r),n=t+r*(e.txwidth+$r),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+$r),{alignShift:r,textShiftX:t,text2ShiftX:n}}function zT(e,r,t,n){var a=function(i){return i*t},o=function(i){return i*n};e.each(function(i){var l=Xl.select(this);if(i.del)return l.remove();var u=l.select("text.nums"),s=i.anchor,f=s==="end"?-1:1,v=bZ(i),p=NT(i,r),b=p.x,m=p.y,w=s==="middle",M="hoverlabel"in i.trace?i.trace.hoverlabel.showarrow:!0,y;w?y="M-"+a(i.bx/2+i.tx2width/2)+","+o(m-i.by/2)+"h"+a(i.bx)+"v"+o(i.by)+"h-"+a(i.bx)+"Z":M?y="M0,0L"+a(f*kt+b)+","+o(kt+m)+"v"+o(i.by/2-kt)+"h"+a(f*i.bx)+"v-"+o(i.by)+"H"+a(f*kt+b)+"V"+o(m-kt)+"Z":y="M"+a(f*kt+b)+","+o(m-i.by/2)+"h"+a(f*i.bx)+"v"+o(i.by)+"h"+a(-f*i.bx)+"Z",l.select("path").attr("d",y);var k=b+v.textShiftX,S=m+i.ty0-i.by/2+$r,x=i.textAlign||"auto";x!=="auto"&&(x==="left"&&s!=="start"?(u.attr("text-anchor","start"),k=w?-i.bx/2-i.tx2width/2+$r:-i.bx-$r):x==="right"&&s!=="end"&&(u.attr("text-anchor","end"),k=w?i.bx/2-i.tx2width/2-$r:i.bx+$r)),u.call(Fa.positionText,a(k),o(S)),i.tx2width&&(l.select("text.name").call(Fa.positionText,a(v.text2ShiftX+v.alignShift*$r+b),o(m+i.ty0-i.by/2+$r)),l.select("rect").call(Ii.setRect,a(v.text2ShiftX+(v.alignShift-1)*i.tx2width/2+b),o(m-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function _Z(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],o=e.cd[t]||{};function i(p){return p||ao(p)&&p===0}var l=Array.isArray(t)?function(p,b){var m=Ft.castOption(a,t,p);return i(m)?m:Ft.extractOption({},n,"",b)}:function(p,b){return Ft.extractOption(o,n,p,b)};function u(p,b,m){var w=l(b,m);i(w)&&(e[p]=w)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ft.constrain(e.x0,0,e.xa._length),e.x1=Ft.constrain(e.x1,0,e.xa._length),e.y0=Ft.constrain(e.y0,0,e.ya._length),e.y1=Ft.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ni.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Ni.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var s=Ni.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+s+" / -"+Ni.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+s,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Ni.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ni.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function ET(e,r,t){var n=t.container,a=t.fullLayout,o=a._size,i=t.event,l=!!r.hLinePoint,u=!!r.vLinePoint,s,f;if(n.selectAll(".spikeline").remove(),!!(u||l)){var v=un.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var p=r.hLinePoint,b,m;s=p&&p.xa,f=p&&p.ya;var w=f.spikesnap;w==="cursor"?(b=i.pointerX,m=i.pointerY):(b=s._offset+p.x,m=f._offset+p.y);var M=AT.readability(p.color,v)<1.5?un.contrast(v):p.color,y=f.spikemode,k=f.spikethickness,S=f.spikecolor||M,x=Ni.getPxPosition(e,f),T,d;if(y.indexOf("toaxis")!==-1||y.indexOf("across")!==-1){if(y.indexOf("toaxis")!==-1&&(T=x,d=b),y.indexOf("across")!==-1){var _=f._counterDomainMin,g=f._counterDomainMax;f.anchor==="free"&&(_=Math.min(_,f.position),g=Math.max(g,f.position)),T=o.l+_*o.w,d=o.l+g*o.w}n.insert("line",":first-child").attr({x1:T,x2:d,y1:m,y2:m,"stroke-width":k,stroke:S,"stroke-dasharray":Ii.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:T,x2:d,y1:m,y2:m,"stroke-width":k+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}y.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?k:-k),cy:m,r:k,fill:S}).classed("spikeline",!0)}if(u){var c=r.vLinePoint,A,h;s=c&&c.xa,f=c&&c.ya;var R=s.spikesnap;R==="cursor"?(A=i.pointerX,h=i.pointerY):(A=s._offset+c.x,h=f._offset+c.y);var E=AT.readability(c.color,v)<1.5?un.contrast(v):c.color,D=s.spikemode,N=s.spikethickness,I=s.spikecolor||E,F=Ni.getPxPosition(e,s),L,P;if(D.indexOf("toaxis")!==-1||D.indexOf("across")!==-1){if(D.indexOf("toaxis")!==-1&&(L=F,P=h),D.indexOf("across")!==-1){var O=s._counterDomainMin,U=s._counterDomainMax;s.anchor==="free"&&(O=Math.min(O,s.position),U=Math.max(U,s.position)),L=o.t+(1-U)*o.h,P=o.t+(1-O)*o.h}n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:P,"stroke-width":N,stroke:I,"stroke-dasharray":Ii.dashStyle(s.spikedash,N)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:P,"stroke-width":N+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}D.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A,cy:F-(s.side!=="top"?N:-N),r:N,fill:I}).classed("spikeline",!0)}}}function wZ(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],o=e._hoverdata[n];if(a.curveNumber!==o.curveNumber||String(a.pointNumber)!==String(o.pointNumber)||String(a.pointNumbers)!==String(o.pointNumbers)||a.binNumber!==o.binNumber)return!0}return!1}function LT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function RT(e,r){return Fa.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function MZ(e,r){for(var t=r.charAt(0),n=[],a=[],o=[],i=0;i{"use strict";var TZ=ir(),AZ=Zr(),kZ=to().isUnifiedHover;BT.exports=function(r,t,n,a){a=a||{};var o=t.legend;function i(l){a.font[l]||(a.font[l]=o?t.legend.font[l]:t.font[l])}t&&kZ(t.hovermode)&&(a.font||(a.font={}),i("size"),i("family"),i("color"),i("weight"),i("style"),i("variant"),o?(a.bgcolor||(a.bgcolor=AZ.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),n("hoverlabel.showarrow",a.showarrow),TZ.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var HT=pe((Uce,UT)=>{"use strict";var SZ=ir(),CZ=oh(),EZ=_l();UT.exports=function(r,t){function n(a,o){return SZ.coerce(r,t,EZ,a,o)}CZ(r,t,n)}});var YT=pe((Hce,GT)=>{"use strict";var VT=ir(),LZ=Lc(),RZ=oh();GT.exports=function(r,t,n,a){function o(l,u){return VT.coerce(r,t,LZ,l,u)}var i=VT.extendFlat({},a.hoverlabel);t.hovertemplate&&(i.namelength=-1),RZ(r,t,o,i)}});var q2=pe((Vce,WT)=>{"use strict";var DZ=ir(),PZ=_l();WT.exports=function(r,t){function n(a,o){return t[a]!==void 0?t[a]:DZ.coerce(r,t,PZ,a,o)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var JT=pe((Gce,ZT)=>{"use strict";var XT=ir(),FZ=_l(),IZ=q2(),NZ=oh();ZT.exports=function(r,t){function n(f,v){return XT.coerce(r,t,FZ,f,v)}var a=IZ(r,t);a&&(n("hoverdistance"),n("spikedistance"));var o=n("dragmode");o==="select"&&n("selectdirection");var i=t._has("mapbox"),l=t._has("map"),u=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((i||l||u)&&s===1||(i||l)&&u&&s===2)&&(t.dragmode="pan"),NZ(r,t,n),XT.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var $T=pe((Yce,QT)=>{"use strict";var O2=ir(),KT=Er();QT.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(s){return function(f){return O2.coerceHoverinfo({hoverinfo:f},{_module:s._module},n)}}for(var o=0;o{"use strict";var qZ=Er(),OZ=z2().hover;jT.exports=function(r,t,n){var a=qZ.getComponentMethod("annotations","onClick")(r,r._hoverdata);n!==void 0&&OZ(r,t,n,!0);function o(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(a&&a.then?a.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var io=pe((Xce,n9)=>{"use strict";var BZ=ot(),lh=ir(),UZ=ti(),Bf=to(),r9=_l(),t9=z2();n9.exports={moduleType:"component",name:"fx",constants:sf(),schema:{layout:r9},attributes:Lc(),layoutAttributes:r9,supplyLayoutGlobalDefaults:HT(),supplyDefaults:YT(),supplyLayoutDefaults:JT(),calc:$T(),getDistanceFunction:Bf.getDistanceFunction,getClosest:Bf.getClosest,inbox:Bf.inbox,quadrature:Bf.quadrature,appendArrayPointValue:Bf.appendArrayPointValue,castHoverOption:VZ,castHoverinfo:GZ,hover:t9.hover,unhover:UZ.unhover,loneHover:t9.loneHover,loneUnhover:HZ,click:e9()};function HZ(e){var r=lh.isD3Selection(e)?e:BZ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function VZ(e,r,t){return lh.castOption(e,r,"hoverlabel."+t)}function GZ(e,r,t){function n(a){return lh.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return lh.castOption(e,t,"hoverinfo",n)}});var uu=pe(oo=>{"use strict";oo.selectMode=function(e){return e==="lasso"||e==="select"};oo.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};oo.openMode=function(e){return e==="drawline"||e==="drawopenpath"};oo.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};oo.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};oo.selectingOrDrawing=function(e){return oo.freeMode(e)||oo.rectMode(e)}});var sh=pe((Jce,a9)=>{"use strict";a9.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var uh=pe((Kce,i9)=>{"use strict";i9.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var ch=pe((Qce,o9)=>{"use strict";var fh=32;o9.exports={CIRCLE_SIDES:fh,i000:0,i090:fh/4,i180:fh/2,i270:fh/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var vh=pe(($ce,s9)=>{"use strict";var YZ=ir().strTranslate;function l9(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function WZ(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function XZ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return l9(e,t[r])}}function ZZ(e){return YZ(e.xaxis._offset,e.yaxis._offset)}s9.exports={p2r:l9,r2p:WZ,axValue:XZ,getTransform:ZZ}});var Go=pe(lo=>{"use strict";var JZ=Cg(),c9=ch(),fu=c9.CIRCLE_SIDES,B2=c9.SQRT2,v9=vh(),u9=v9.p2r,f9=v9.r2p,KZ=[0,3,4,5,6,1,2],QZ=[0,3,4,1,2];lo.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&u{"use strict";var h9=en(),m9=uu(),$Z=m9.drawMode,jZ=m9.openMode,cu=ch(),d9=cu.i000,p9=cu.i090,g9=cu.i180,y9=cu.i270,eJ=cu.cos45,rJ=cu.sin45,x9=vh(),dh=x9.p2r,Yo=x9.r2p,tJ=Fo(),nJ=tJ.clearOutline,ph=Go(),aJ=ph.readPaths,iJ=ph.writePaths,oJ=ph.ellipseOver,lJ=ph.fixDatesForPaths;function sJ(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,o=r.dragmode,i=(n.layout||{}).shapes||[];if(!$Z(o)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var uJ=uu(),fJ=uJ.selectMode,cJ=Fo(),vJ=cJ.clearOutline,U2=Go(),hJ=U2.readPaths,dJ=U2.writePaths,pJ=U2.fixDatesForPaths;w9.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),o=t.gd,i=o._fullLayout.newselection,l=t.plotinfo,u=l.xaxis,s=l.yaxis,f=t.isActiveSelection,v=t.dragmode,p=(o.layout||{}).selections||[];if(!fJ(v)&&f!==void 0){var b=o._fullLayout._activeSelectionIndex;if(b{"use strict";M9.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Wo=pe(dn=>{"use strict";var Jl=Hf(),T9=ir(),yh=Ct();dn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};dn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};dn.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};dn.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};dn.extractPathCoords=function(e,r,t){var n=[],a=e.match(Jl.segmentRE);return a.forEach(function(o){var i=r[o.charAt(0)].drawn;if(i!==void 0){var l=o.substr(1).match(Jl.paramRE);if(!(!l||l.lengthb&&(w="X"),w});return s>b&&(m=m.replace(/[\s,]*X.*/,""),T9.log("Ignoring extra params in segment "+u)),f+m})}function Vf(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var G2=pe((ave,C9)=>{"use strict";var yJ=ir(),vu=Ct(),A9=Yn(),k9=yt(),mJ=Go().readPaths,V2=Wo(),xJ=V2.getPathString,S9=Oc(),bJ=qn().FROM_TL;C9.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var o;if(n.label.texttemplate){var i={};if(n.type!=="path"){var l=vu.getFromId(r,n.xref),u=vu.getFromId(r,n.yref);for(var s in S9){var f=S9[s](n,l,u);f!==void 0&&(i[s]=f)}}o=yJ.texttemplateStringForShapes(n.label.texttemplate,{},r._fullLayout._d3locale,i)}else o=n.label.text;var v={"data-index":t},p=n.label.font,b={"data-notex":1},m=a.append("g").attr(v).classed("shape-label",!0),w=m.append("text").attr(b).classed("shape-label-text",!0).text(o),M,y,k,S;if(n.path){var x=xJ(r,n),T=mJ(x,r);M=1/0,k=1/0,y=-1/0,S=-1/0;for(var d=0;d=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,o)}function wJ(e,r,t,n,a,o,i){var l=a.label.textposition,u=a.label.textangle,s=a.label.padding,f=a.type,v=Math.PI/180*o,p=Math.sin(v),b=Math.cos(v),m=a.label.xanchor,w=a.label.yanchor,M,y,k,S;if(f==="line"){l==="start"?(M=e,y=r):l==="end"?(M=t,y=n):(M=(e+t)/2,y=(r+n)/2),m==="auto"&&(l==="start"?u==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var MJ=ir(),TJ=MJ.strTranslate,E9=ti(),D9=uu(),AJ=D9.drawMode,P9=D9.selectMode,F9=Er(),L9=Zr(),xh=ch(),kJ=xh.i000,SJ=xh.i090,CJ=xh.i180,EJ=xh.i270,LJ=Fo(),I9=LJ.clearOutlineControllers,W2=Go(),mh=W2.pointsOnRectangle,Y2=W2.pointsOnEllipse,RJ=W2.writePaths,DJ=gh().newShapes,PJ=gh().createShapeObj,FJ=H2(),IJ=G2();N9.exports=function e(r,t,n,a){a||(a=0);var o=n.gd;function i(){e(r,t,n,a++),(Y2(r[0])||n.hasText)&&l({redrawing:!0})}function l(F){var L={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,L=DJ(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,L=FJ(t,n),o._fullLayout._reselect=!0),Object.keys(L).length&&F9.call((F||{}).redrawing?"relayout":"_guiRelayout",o,L)}var u=o._fullLayout,s=u._zoomlayer,f=n.dragmode,v=AJ(f),p=P9(f);(v||p)&&(o._fullLayout._outlining=!0),I9(o),t.attr("d",RJ(r));var b,m,w,M,y;if(!a&&(n.isActiveShape||n.isActiveSelection)){y=NJ([],r);var k=s.append("g").attr("class","outline-controllers");A(k),I()}if(v&&n.hasText){var S=s.select(".label-temp"),x=PJ(t,n,n.dragmode);IJ(o,"label-temp",x,S)}function T(F){w=+F.srcElement.getAttribute("data-i"),M=+F.srcElement.getAttribute("data-j"),b[w][M].moveFn=d}function d(F,L){if(r.length){var P=y[w][M][1],O=y[w][M][2],U=r[w],X=U.length;if(mh(U)){var $=F,j=L;if(n.isActiveSelection){var Y=R9(U,M);Y[1]===U[M][1]?j=0:$=0}for(var q=0;q1&&!(F.length===2&&F[1][0]==="Z")&&(M===0&&(F[0][0]="M"),r[w]=F,i(),l())}}function c(F,L){if(F===2){w=+L.srcElement.getAttribute("data-i"),M=+L.srcElement.getAttribute("data-j");var P=r[w];!mh(P)&&!Y2(P)&&g()}}function A(F){b=[];for(var L=0;L{"use strict";var qJ=ot(),H9=Er(),z9=ir(),hu=Ct(),OJ=Go().readPaths,BJ=bh(),wh=G2(),V9=Fo().clearOutlineControllers,X2=Zr(),J2=yt(),UJ=gt().arrayEditor,q9=ti(),O9=Vo(),Kl=Hf(),la=Wo(),Z2=la.getPathString;W9.exports={draw:K2,drawOne:G9,eraseActiveShape:GJ,drawLabel:wh};function K2(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;ai&&Ee>l&&!Ae.shiftKey?q9.getCursor(Pe/Te,1-Se/Ee):"move";O9(r,Ne),K=Ne.split("-")[0]}}function ee(Ae){_h(e)||(u&&(y=U(t.xanchor)),s&&(k=X(t.yanchor)),t.type==="path"?h=t.path:(b=u?t.x0:U(t.x0),m=s?t.y0:X(t.y0),w=u?t.x1:U(t.x1),M=s?t.y1:X(t.y1)),bM?(S=m,_="y0",x=M,g="y1"):(S=M,_="y1",x=m,g="y0"),ie(Ae),ue(a,t),ke(r,t,e),q.moveFn=K==="move"?H:te,q.altKey=Ae.altKey)}function V(){_h(e)||(O9(r),de(a),Y9(r,e,t),H9.call("_guiRelayout",e,o.getUpdateObj()))}function re(){_h(e)||de(a)}function H(Ae,ve){if(t.type==="path"){var Te=function(Se){return Se},Ee=Te,Pe=Te;u?p("xanchor",t.xanchor=$(y+Ae)):(Ee=function(Ne){return $(U(Ne)+Ae)},E&&E.type==="date"&&(Ee=la.encodeDate(Ee))),s?p("yanchor",t.yanchor=j(k+ve)):(Pe=function(Ne){return j(X(Ne)+ve)},N&&N.type==="date"&&(Pe=la.encodeDate(Pe))),p("path",t.path=B9(h,Ee,Pe))}else u?p("xanchor",t.xanchor=$(y+Ae)):(p("x0",t.x0=$(b+Ae)),p("x1",t.x1=$(w+Ae))),s?p("yanchor",t.yanchor=j(k+ve)):(p("y0",t.y0=j(m+ve)),p("y1",t.y1=j(M+ve)));r.attr("d",Z2(e,t)),ue(a,t),wh(e,n,t,R)}function te(Ae,ve){if(v){var Te=function(qe){return qe},Ee=Te,Pe=Te;u?p("xanchor",t.xanchor=$(y+Ae)):(Ee=function($e){return $(U($e)+Ae)},E&&E.type==="date"&&(Ee=la.encodeDate(Ee))),s?p("yanchor",t.yanchor=j(k+ve)):(Pe=function($e){return j(X($e)+ve)},N&&N.type==="date"&&(Pe=la.encodeDate(Pe))),p("path",t.path=B9(h,Ee,Pe))}else if(f){if(K==="resize-over-start-point"){var Se=b+Ae,Ne=s?m-ve:m+ve;p("x0",t.x0=u?Se:$(Se)),p("y0",t.y0=s?Ne:j(Ne))}else if(K==="resize-over-end-point"){var Be=w+Ae,ge=s?M-ve:M+ve;p("x1",t.x1=u?Be:$(Be)),p("y1",t.y1=s?ge:j(ge))}}else{var we=function(qe){return K.indexOf(qe)!==-1},Me=we("n"),me=we("s"),Re=we("w"),ce=we("e"),he=Me?S+ve:S,ye=me?x+ve:x,Ce=Re?T+Ae:T,ze=ce?d+Ae:d;s&&(Me&&(he=S-ve),me&&(ye=x-ve)),(!s&&ye-he>l||s&&he-ye>l)&&(p(_,t[_]=s?he:j(he)),p(g,t[g]=s?ye:j(ye))),ze-Ce>i&&(p(c,t[c]=u?Ce:$(Ce)),p(A,t[A]=u?ze:$(ze)))}r.attr("d",Z2(e,t)),ue(a,t),wh(e,n,t,R)}function ue(Ae,ve){(u||s)&&Te();function Te(){var Ee=ve.type!=="path",Pe=Ae.selectAll(".visual-cue").data([0]),Se=1;Pe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Se}).classed("visual-cue",!0);var Ne=U(u?ve.xanchor:z9.midRange(Ee?[ve.x0,ve.x1]:la.extractPathCoords(ve.path,Kl.paramIsX))),Be=X(s?ve.yanchor:z9.midRange(Ee?[ve.y0,ve.y1]:la.extractPathCoords(ve.path,Kl.paramIsY)));if(Ne=la.roundPositionForSharpStrokeRendering(Ne,Se),Be=la.roundPositionForSharpStrokeRendering(Be,Se),u&&s){var ge="M"+(Ne-1-Se)+","+(Be-1-Se)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Pe.attr("d",ge)}else if(u){var we="M"+(Ne-1-Se)+","+(Be-9-Se)+"v18 h2 v-18 Z";Pe.attr("d",we)}else{var Me="M"+(Ne-9-Se)+","+(Be-1-Se)+"h18 v2 h-18 Z";Pe.attr("d",Me)}}}function de(Ae){Ae.selectAll(".visual-cue").remove()}function ke(Ae,ve,Te){var Ee=ve.xref,Pe=ve.yref,Se=hu.getFromId(Te,Ee),Ne=hu.getFromId(Te,Pe),Be="";Ee!=="paper"&&!Se.autorange&&(Be+=Ee),Pe!=="paper"&&!Ne.autorange&&(Be+=Pe),J2.setClipUrl(Ae,Be?"clip"+Te._fullLayout._uid+Be:null,Te)}}function B9(e,r,t){return e.replace(Kl.segmentRE,function(n){var a=0,o=n.charAt(0),i=Kl.paramIsX[o],l=Kl.paramIsY[o],u=Kl.numParams[o],s=n.substr(1).replace(Kl.paramRE,function(f){return a>=u||(i[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return o+s})}function VJ(e,r){if(Mh(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){U9(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=U9,K2(e)}}}function U9(e){if(Mh(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(V9(e),delete e._fullLayout._activeShapeIndex,K2(e))}}function GJ(e){if(Mh(e)){V9(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Ia=Er(),X9=ln(),Z9=en(),et=uh(),YJ=Th().eraseActiveShape,Ah=ir(),Kr=Ah._,rt=rA.exports={};rt.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Kr(e,"Download plot as a PNG"):Kr(e,"Download plot")},icon:et.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};Ah.notifier(Kr(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Ia.call("downloadImage",e,t).then(function(n){Ah.notifier(Kr(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){Ah.notifier(Kr(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};rt.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Kr(e,"Edit in Chart Studio")},icon:et.disk,click:function(e){X9.sendDataToCloud(e)}};rt.editInChartStudio={name:"editInChartStudio",title:function(e){return Kr(e,"Edit in Chart Studio")},icon:et.pencil,click:function(e){X9.sendDataToCloud(e)}};rt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Kr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:et.zoombox,click:Un};rt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Kr(e,"Pan")},attr:"dragmode",val:"pan",icon:et.pan,click:Un};rt.select2d={name:"select2d",_cat:"select",title:function(e){return Kr(e,"Box Select")},attr:"dragmode",val:"select",icon:et.selectbox,click:Un};rt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Kr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:et.lasso,click:Un};rt.drawclosedpath={name:"drawclosedpath",title:function(e){return Kr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:et.drawclosedpath,click:Un};rt.drawopenpath={name:"drawopenpath",title:function(e){return Kr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:et.drawopenpath,click:Un};rt.drawline={name:"drawline",title:function(e){return Kr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:et.drawline,click:Un};rt.drawrect={name:"drawrect",title:function(e){return Kr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:et.drawrect,click:Un};rt.drawcircle={name:"drawcircle",title:function(e){return Kr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:et.drawcircle,click:Un};rt.eraseshape={name:"eraseshape",title:function(e){return Kr(e,"Erase active shape")},icon:et.eraseshape,click:YJ};rt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Kr(e,"Zoom in")},attr:"zoom",val:"in",icon:et.zoom_plus,click:Un};rt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Kr(e,"Zoom out")},attr:"zoom",val:"out",icon:et.zoom_minus,click:Un};rt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Kr(e,"Autoscale")},attr:"zoom",val:"auto",icon:et.autoscale,click:Un};rt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Kr(e,"Reset axes")},attr:"zoom",val:"reset",icon:et.home,click:Un};rt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Kr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:et.tooltip_basic,gravity:"ne",click:Un};rt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Kr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:et.tooltip_compare,gravity:"ne",click:Un};function Un(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout,i={},l=Z9.list(e,null,!0),u=o._cartesianSpikesEnabled,s,f;if(n==="zoom"){var v=a==="in"?.5:2,p=(1+v)/2,b=(1-v)/2,m,w;for(f=0;f{"use strict";var tA=j2(),ZJ=Object.keys(tA),nA=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],aA=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(nA),pu=[],JJ=function(e){if(aA.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();pu.indexOf(r)===-1&&pu.push(r),pu.indexOf(t)===-1&&pu.push(t)}};ZJ.forEach(function(e){JJ(tA[e])});pu.sort();iA.exports={DRAW_MODES:nA,backButtons:aA,foreButtons:pu}});var ry=pe((fve,oA)=>{"use strict";var uve=ey();oA.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var sA=pe((cve,lA)=>{"use strict";var KJ=ir(),Gf=Zr(),QJ=gt(),$J=ry();lA.exports=function(r,t){var n=r.modebar||{},a=QJ.newContainer(t,"modebar");function o(l,u){return KJ.coerce(n,a,$J,l,u)}o("orientation"),o("bgcolor",Gf.addOpacity(t.paper_bgcolor,.5));var i=Gf.contrast(Gf.rgb(t.modebar.bgcolor));o("color",Gf.addOpacity(i,.3)),o("activecolor",Gf.addOpacity(i,.7)),o("uirevision",t.uirevision),o("add"),o("remove")}});var vA=pe((vve,cA)=>{"use strict";var ty=ot(),jJ=tt(),Sh=ir(),uA=uh(),eK=mc().version,rK=new DOMParser;function fA(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var zi=fA.prototype;zi.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var o=n.modebar,i="#"+a+" .modebar-group";document.querySelectorAll(i).forEach(function(v){v.style.backgroundColor=o.bgcolor});var l=!this.hasButtons(r),u=this.hasLogo!==t.displaylogo,s=this.locale!==t.locale;if(this.locale=t.locale,(l||u||s)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),Sh.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)};zi.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var o=a.name;if(!o)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(o)!==-1)throw new Error("button name '"+o+"' is taken");r.buttonsNames.push(o);var i=r.createButton(a);r.buttonElements.push(i),n.appendChild(i)}),r.element.appendChild(n)})};zi.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};zi.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(t.setAttribute("data-title",n),t.setAttribute("aria-label",n)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var o=e.click;if(typeof o!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&ty.select(t).classed("active",!0);var i=e.icon;return typeof i=="function"?t.appendChild(i()):t.appendChild(this.createIcon(i||uA.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};zi.createIcon=function(e){var r=jJ(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var o=rK.parseFromString(e.svg,"application/xml");n=o.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};zi.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,o=n.getAttribute("data-attr"),i=n.getAttribute("data-toggle")==="true",l=ty.select(n),u=function(v,p){var b=r.modebar,m=v.querySelector(".icon path");m&&(p||v.matches(":hover")?m.style.fill=b.activecolor:m.style.fill=b.color)};if(i){if(o===t){var s=!l.classed("active");l.classed("active",s),u(n,s)}}else{var f=o===null?o:Sh.nestedProperty(r,o).get();l.classed("active",f===a),u(n,f===a)}})};zi.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var aK=en(),hA=ia(),ny=Er(),iK=to().isUnifiedHover,oK=vA(),Ch=j2(),lK=ey().DRAW_MODES,sK=ir().extendDeep;dA.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var o=n.modeBarButtons,i;Array.isArray(o)&&o.length?i=dK(o):!n.displayModeBar&&n.watermark?i=[]:i=uK(r),a?a.update(r,i):t._modeBar=oK(r,i)};function uK(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(L,P){if(typeof P=="string"){if(P.toLowerCase()===L.toLowerCase())return!0}else{var O=P.name,U=P._cat||P.name;if(O===L||U===L.toLowerCase())return!0}return!1}var o=r.modebar.add;typeof o=="string"&&(o=[o]);var i=r.modebar.remove;typeof i=="string"&&(i=[i]);var l=n.modeBarButtonsToAdd.concat(o.filter(function(L){for(var P=0;P1?(A=["toggleHover"],h=["resetViews"]):v?(c=["zoomInGeo","zoomOutGeo"],A=["hoverClosestGeo"],h=["resetGeo"]):f?(A=["hoverClosest3d"],h=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(c=["zoomInMapbox","zoomOutMapbox"],A=["toggleHover"],h=["resetViewMapbox"]):M?(c=["zoomInMap","zoomOutMap"],A=["toggleHover"],h=["resetViewMap"]):p?A=["hoverClosestPie"]:S?(A=["hoverClosestCartesian","hoverCompareCartesian"],h=["resetViewSankey"]):A=["toggleHover"],s&&A.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(vK(t)||T)&&(A=[]),s&&!x&&(c=["zoomIn2d","zoomOut2d","autoScale2d"],h[0]!=="resetViews"&&(h=["resetScale2d"])),f?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!x||m?R=["zoom2d","pan2d"]:w||M||v?R=["pan2d"]:y&&(R=["zoom2d"]),cK(t)&&R.push("select2d","lasso2d");var E=[],D=function(L){E.indexOf(L)===-1&&A.indexOf(L)!==-1&&E.push(L)};if(Array.isArray(l)){for(var N=[],I=0;I{"use strict";gA.exports={moduleType:"component",name:"modebar",layoutAttributes:ry(),supplyLayoutDefaults:sA(),manage:pA()}});var iy=pe((pve,yA)=>{"use strict";var pK=qn().FROM_BL;yA.exports=function(r,t,n){n===void 0&&(n=pK[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],o=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(o+(a[0]-o)*t),r.l2r(o+(a[1]-o)*t)],r.setScale()}});var Wf=pe(Yf=>{"use strict";var Ql=ir(),oy=$s(),ai=en().id2name,gK=Ra(),mA=iy(),yK=Rv(),mK=an().ALMOST_EQUAL,xK=qn().FROM_BL;Yf.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,o=r._axisConstraintGroups=[],i=r._axisMatchGroups=[],l,u,s,f,v,p,b,m;for(l=0;lo?t.substr(o):n.substr(a))+i}function _K(e,r){for(var t=r._size,n=t.h/t.w,a={},o=Object.keys(e),i=0;imK*m&&!k)){for(o=0;oR&&OA&&(A=O);var X=(A-c)/(2*h);v/=X,c=u.l2r(c),A=u.l2r(A),u.range=u._input.range=d<_?[c,A]:[A,c]}bA(u,v)}}}};Yf.getAxisGroup=function(r,t){for(var n=r._axisMatchGroups,a=0;a{"use strict";var Lh=ot(),Hn=Er(),xa=ln(),Na=ir(),uy=Yn(),fy=sh(),Xf=Zr(),gu=yt(),wA=Lf(),SA=ay(),Zf=Ct(),so=qn(),CA=Wf(),wK=CA.enforce,MK=CA.clean,MA=$s().doAutoRange,EA="start",TK="middle",LA="end",AK=wn().zindexSeparator;fn.layoutStyles=function(e){return Na.syncOrAsync([xa.doAutoMargin,SK],e)};function kK(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&o[0]r[0])return!0}return!1}function SK(e){var r=e._fullLayout,t=r._size,n=t.p,a=Zf.list(e,"",!0),o,i,l,u,s,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(gu.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),fn.drawMainTitle(e),SA.manage(e),!r._has("cartesian"))return xa.previousPromises(e);function v(ee,V,re){var H=ee._lw/2;if(ee._id.charAt(0)==="x"){if(V){if(re==="top")return V._offset-n-H}else return t.t+t.h*(1-(ee.position||0))+H%1;return V._offset+V._length+n+H}if(V){if(re==="right")return V._offset+V._length+n+H}else return t.l+t.w*(ee.position||0)+H%1;return V._offset-n-H}for(o=0;o0){RK(e,o,s,u),l.attr({x:i,y:o,"text-anchor":n,dy:kA(r.yanchor)}).call(uy.positionText,i,o);var f=(r.text.match(uy.BR_TAG_ALL)||[]).length;if(f){var v=so.LINE_SPACING*f+so.MID_SHIFT;r.y===0&&(v=-v),l.selectAll(".line").each(function(){var M=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",M)})}var p=Lh.select(e).selectAll(".gtitle-subtitle");if(p.node()){var b=l.node().getBBox(),m=b.y+b.height,w=m+wA.SUBTITLE_PADDING_EM*r.subtitle.font.size;p.attr({x:i,y:w,"text-anchor":n,dy:kA(r.yanchor)}).call(uy.positionText,i,w)}}}};function CK(e,r,t,n,a){var o=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,i=Na.isTopAnchor(r)?n:n-a,l=t==="b"?o-i:i;return Na.isTopAnchor(r)&&t==="t"||Na.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",i=e._fullLayout.margin[o],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=EK(o,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>i?l:0}function RK(e,r,t,n){var a="title.automargin",o=e._fullLayout.title,i=o.y>.5?"t":"b",l={x:o.x,y:o.y,t:0,b:0},u={};o.yref==="paper"&&CK(e,o,i,r,n)?l[i]=t:o.yref==="container"&&(u[i]=t,e._fullLayout._reservedMargin[a]=u),xa.allowAutoMargin(e,a),xa.autoMargin(e,a,l)}function DK(e,r){var t=e.title,n=e._size,a=0;switch(r===EA?a=t.pad.l:r===LA&&(a=-t.pad.r),t.xref){case"paper":return n.l+n.w*t.x+a;case"container":default:return e.width*t.x+a}}function PK(e,r){var t=e.title,n=e._size,a=0;if(r==="0em"||!r?a=-t.pad.b:r===so.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto")return n.t/2;switch(t.yref){case"paper":return n.t+n.h-n.h*t.y+a;case"container":default:return e.height-e.height*t.y+a}}function kA(e){return e==="top"?so.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":so.MID_SHIFT+"em"}function FK(e){var r=e.title,t=TK;return Na.isRightAnchor(r)?t=LA:Na.isLeftAnchor(r)&&(t=EA),t}function IK(e){var r=e.title,t="0em";return Na.isTopAnchor(r)?t=so.CAP_SHIFT+"em":Na.isMiddleAnchor(r)&&(t=so.MID_SHIFT+"em"),t}fn.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var NK=Go().readPaths,zK=bh(),RA=Fo().clearOutlineControllers,cy=Zr(),DA=yt(),qK=gt().arrayEditor,PA=Wo(),OK=PA.getPathString;IA.exports={draw:Dh,drawOne:FA,activateLastSelection:HK};function Dh(e){var r=e._fullLayout;RA(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a=0;M--){var y=i.append("path").attr(u).style("opacity",M?.1:s).call(cy.stroke,v).call(cy.fill,f).call(DA.dashLine,M?"solid":b,M?4+p:p);if(BK(y,e,n),m){var k=qK(e.layout,"selections",n);y.style({cursor:"move"});var S={element:y.node(),plotinfo:a,gd:e,editHelpers:k,isActiveSelection:!0},x=NK(l,e);zK(x,y,S)}else y.style("pointer-events",M?"all":"none");w[M]=y}var T=w[0],d=w[1];d.node().addEventListener("click",function(){return UK(e,T)})}}function BK(e,r,t){var n=t.xref+t.yref;DA.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function UK(e,r){if(Ph(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){vy(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=vy,Dh(e)}}}function HK(e){if(Ph(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=vy,Dh(e)}}function vy(e){if(Ph(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(RA(e),delete e._fullLayout._activeSelectionIndex,Dh(e))}}});var zA=pe((xve,NA)=>{function VK(){var e,r=0,t=!1;function n(a,o){return e.list.push({type:a,data:o?JSON.parse(JSON.stringify(o)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,o){return n("check",{seg1:a,seg2:o})},segmentChop:function(a,o){return n("div_seg",{seg:a,pt:o}),n("chop",{seg:a,pt:o})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,o){return n("new_seg",{seg:a,primary:o})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,o,i){return n("temp_status",{seg:a,above:o,below:i})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,o,i){return n("status",{seg:a,above:o,below:i})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,o){return n("chain_rem_head",{index:a,pt:o})},chainRemoveTail:function(a,o){return n("chain_rem_tail",{index:a,pt:o})},chainNew:function(a,o){return n("chain_new",{pt1:a,pt2:o})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,o){return n("chain_add_head",{index:a,pt:o})},chainAddTail:function(a,o){return n("chain_add_tail",{index:a,pt:o})},chainConnect:function(a,o){return n("chain_con",{index1:a,index2:o})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,o){return n("chain_join",{index1:a,index2:o})},done:function(){return n("done")}},e}NA.exports=VK});var OA=pe((bve,qA)=>{function GK(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var o=n[0],i=n[1],l=a[0],u=a[1],s=t[0],f=t[1];return(l-o)*(f-i)-(u-i)*(s-o)>=-e},pointBetween:function(t,n,a){var o=t[1]-n[1],i=a[0]-n[0],l=t[0]-n[0],u=a[1]-n[1],s=l*i+o*u;if(s-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])e!=l-o>e&&(i-f)*(o-v)/(l-v)+f-a>e&&(u=!u),i=f,l=v}return u}};return r}qA.exports=GK});var UA=pe((_ve,BA)=>{var YK={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};BA.exports=YK});var VA=pe((wve,HA)=>{var Jf=UA();function WK(e,r,t){function n(m,w){return{id:t?t.segmentId():-1,start:m,end:w,myFill:{above:null,below:null},otherFill:null}}function a(m,w,M){return{id:t?t.segmentId():-1,start:m,end:w,myFill:{above:M.myFill.above,below:M.myFill.below},otherFill:null}}var o=Jf.create();function i(m,w,M,y,k,S){var x=r.pointsCompare(w,k);return x!==0?x:r.pointsSame(M,S)?0:m!==y?m?1:-1:r.pointAboveOrOnLine(M,y?k:S,y?S:k)?1:-1}function l(m,w){o.insertBefore(m,function(M){var y=i(m.isStart,m.pt,w,M.isStart,M.pt,M.other.pt);return y<0})}function u(m,w){var M=Jf.node({isStart:!0,pt:m.start,seg:m,primary:w,other:null,status:null});return l(M,m.end),M}function s(m,w,M){var y=Jf.node({isStart:!1,pt:w.end,seg:w,primary:M,other:m,status:null});m.other=y,l(y,m.pt)}function f(m,w){var M=u(m,w);return s(M,m,w),M}function v(m,w){t&&t.segmentChop(m.seg,w),m.other.remove(),m.seg.end=w,m.other.pt=w,l(m.other,m.pt)}function p(m,w){var M=a(w,m.seg.end,m.seg);return v(m,w),f(M,m.primary)}function b(m,w){var M=Jf.create();function y(N,I){var F=N.seg.start,L=N.seg.end,P=I.seg.start,O=I.seg.end;return r.pointsCollinear(F,P,O)?r.pointsCollinear(L,P,O)||r.pointAboveOrOnLine(L,P,O)?1:-1:r.pointAboveOrOnLine(F,P,O)?1:-1}function k(N){return M.findTransition(function(I){var F=y(N,I.ev);return F>0})}function S(N,I){var F=N.seg,L=I.seg,P=F.start,O=F.end,U=L.start,X=L.end;t&&t.checkIntersection(F,L);var $=r.linesIntersect(P,O,U,X);if($===!1){if(!r.pointsCollinear(P,O,U)||r.pointsSame(P,X)||r.pointsSame(O,U))return!1;var j=r.pointsSame(P,U),Y=r.pointsSame(O,X);if(j&&Y)return I;var q=!j&&r.pointBetween(P,U,X),K=!Y&&r.pointBetween(O,U,X);if(j)return K?p(I,O):p(N,X),I;q&&(Y||(K?p(I,O):p(N,X)),p(I,P))}else $.alongA===0&&($.alongB===-1?p(N,U):$.alongB===0?p(N,$.pt):$.alongB===1&&p(N,X)),$.alongB===0&&($.alongA===-1?p(I,P):$.alongA===0?p(I,$.pt):$.alongA===1&&p(I,O));return!1}for(var x=[];!o.isEmpty();){var T=o.getHead();if(t&&t.vert(T.pt[0]),T.isStart){let N=function(){if(_){var I=S(T,_);if(I)return I}return g?S(T,g):!1};var D=N;t&&t.segmentNew(T.seg,T.primary);var d=k(T),_=d.before?d.before.ev:null,g=d.after?d.after.ev:null;t&&t.tempStatus(T.seg,_?_.seg:!1,g?g.seg:!1);var c=N();if(c){if(e){var A;T.seg.myFill.below===null?A=!0:A=T.seg.myFill.above!==T.seg.myFill.below,A&&(c.seg.myFill.above=!c.seg.myFill.above)}else c.seg.otherFill=T.seg.myFill;t&&t.segmentUpdate(c.seg),T.other.remove(),T.remove()}if(o.getHead()!==T){t&&t.rewind(T.seg);continue}if(e){var A;T.seg.myFill.below===null?A=!0:A=T.seg.myFill.above!==T.seg.myFill.below,g?T.seg.myFill.below=g.seg.myFill.above:T.seg.myFill.below=m,A?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var h;g?T.primary===g.primary?h=g.seg.otherFill.above:h=g.seg.myFill.above:h=T.primary?w:m,T.seg.otherFill={above:h,below:h}}t&&t.status(T.seg,_?_.seg:!1,g?g.seg:!1),T.other.status=d.insert(Jf.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(M.exists(R.prev)&&M.exists(R.next)&&S(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!T.primary){var E=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=E}x.push(T.seg)}o.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(m){for(var w,M=m[m.length-1],y=0;y{function XK(e,r,t){var n=[],a=[];return e.forEach(function(o){var i=o.start,l=o.end;if(r.pointsSame(i,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(o);var u={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},f=u;function v(D,N,I){return f.index=D,f.matches_head=N,f.matches_pt1=I,f===u?(f=s,!1):(f=null,!0)}for(var p=0;p{function Kf(e,r,t){var n=[];return e.forEach(function(a){var o=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[o]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[o]===1,below:r[o]===2},otherFill:null})}),t&&t.selected(n),n}var ZK={union:function(e,r){return Kf(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Kf(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Kf(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Kf(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Kf(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};WA.exports=ZK});var JA=pe((Ave,ZA)=>{var JK={toPolygon:function(e,r){function t(o){if(o.length<=0)return e.segments({inverted:!1,regions:[]});function i(s){var f=s.slice(0,s.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=i(o[0]),u=1;u{var KK=zA(),QK=OA(),KA=VA(),$K=YA(),Qf=XA(),QA=JA(),za=!1,$f=QK(),sa;sa={buildLog:function(e){return e===!0?za=KK():e===!1&&(za=!1),za===!1?!1:za.list},epsilon:function(e){return $f.epsilon(e)},segments:function(e){var r=KA(!0,$f,za);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=KA(!1,$f,za);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Qf.union(e.combined,za),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Qf.intersect(e.combined,za),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Qf.difference(e.combined,za),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Qf.differenceRev(e.combined,za),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Qf.xor(e.combined,za),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:$K(e.segments,$f,za),inverted:e.inverted}},polygonFromGeoJSON:function(e){return QA.toPolygon(sa,e)},polygonToGeoJSON:function(e){return QA.fromPolygon(sa,$f,e)},union:function(e,r){return jf(e,r,sa.selectUnion)},intersect:function(e,r){return jf(e,r,sa.selectIntersect)},difference:function(e,r){return jf(e,r,sa.selectDifference)},differenceRev:function(e,r){return jf(e,r,sa.selectDifferenceRev)},xor:function(e,r){return jf(e,r,sa.selectXor)}};function jf(e,r,t){var n=sa.segments(e),a=sa.segments(r),o=sa.combine(n,a),i=t(o);return sa.polygon(i)}typeof window=="object"&&(window.PolyBool=sa);$A.exports=sa});var rk=pe((Sve,ek)=>{ek.exports=function(r,t,n,a){var o=r[0],i=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var u=a-n,s=0,f=u-1;si!=m>i&&o<(b-v)*(i-p)/(m-p)+v;w&&(l=!l)}return l}});var py=pe((Cve,tk)=>{"use strict";var dy=Nc().dot,Fh=an().BADNUM,Ih=tk.exports={};Ih.tester=function(r){var t=r.slice(),n=t[0][0],a=n,o=t[0][1],i=o,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;la||y===Fh||yi||w&&s(m))}function v(m,w){var M=m[0],y=m[1];if(M===Fh||Ma||y===Fh||yi)return!1;var k=t.length,S=t[0][0],x=t[0][1],T=0,d,_,g,c,A;for(d=1;dMath.max(_,S)||y>Math.max(g,x)))if(yl||Math.abs(dy(v,s))>a)return!0;return!1};Ih.filter=function(r,t){var n=[r[0]],a=0,o=0;function i(u){r.push(u);var s=n.length,f=a;n.splice(o+1);for(var v=f+1;v1){var l=r.pop();i(l)}return{addPt:i,raw:r,filtered:n}}});var ak=pe((Eve,nk)=>{"use strict";nk.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var kk=pe((Lve,Ak)=>{"use strict";var ik=jA(),jK=rk(),t0=Er(),eQ=yt().dashStyle,e0=Zr(),rQ=io(),tQ=to().makeEventData,l0=uu(),nQ=l0.freeMode,aQ=l0.rectMode,n0=l0.drawMode,xy=l0.openMode,by=l0.selectMode,ok=Wo(),lk=Hf(),vk=bh(),hk=Fo().clearOutline,dk=Go(),gy=dk.handleEllipse,iQ=dk.readPaths,oQ=gh().newShapes,lQ=H2(),sQ=hy().activateLastSelection,zh=ir(),uQ=zh.sorterAsc,pk=py(),r0=Jc(),qa=en().getFromId,fQ=sh(),cQ=Rh().redrawReglTraces,qh=ak(),qi=qh.MINSELECT,vQ=pk.filter,_y=pk.tester,wy=vh(),sk=wy.p2r,hQ=wy.axValue,dQ=wy.getTransform;function My(e){return e.subplot!==void 0}function pQ(e,r,t,n,a){var o=!My(n),i=nQ(a),l=aQ(a),u=xy(a),s=n0(a),f=by(a),v=a==="drawline",p=a==="drawcircle",b=v||p,m=n.gd,w=m._fullLayout,M=f&&w.newselection.mode==="immediate"&&o,y=w._zoomlayer,k=n.element.getBoundingClientRect(),S=n.plotinfo,x=dQ(S),T=r-k.left,d=t-k.top;w._calcInverseTransform(m);var _=zh.apply3DTransform(w._invTransform)(T,d);T=_[0],d=_[1];var g=w._invScaleX,c=w._invScaleY,A=T,h=d,R="M"+T+","+d,E=n.xaxes[0],D=n.yaxes[0],N=E._length,I=D._length,F=e.altKey&&!(n0(a)&&u),L,P,O,U,X,$,j;yk(e,m,n),i&&(L=vQ([[T,d]],qh.BENDPX));var Y=y.selectAll("path.select-outline-"+S.id).data([1]),q=s?w.newshape:w.newselection;s&&(n.hasText=q.label.text||q.label.texttemplate);var K=s&&!u?q.fillcolor:"rgba(0,0,0,0)",ne=q.line.color||(o?e0.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Y.enter().append("path").attr("class","select-outline select-outline-"+S.id).style({opacity:s?q.opacity/2:1,"stroke-dasharray":eQ(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(e0.stroke,ne).call(e0.fill,K).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",x).attr("d",R+"Z");var Q=y.append("path").attr("class","zoombox-corners").style({fill:e0.background,stroke:e0.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(s&&n.hasText){var ie=y.select(".label-temp");ie.empty()&&(ie=y.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ee=w._uid+qh.SELECTID,V=[],re=Oh(m,n.xaxes,n.yaxes,n.subplot);M&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(o){var te=E._id,ue=D._id;wk(m,te,ue,re);for(var de=(m.layout||{}).selections||[],ke=[],Ae=!1,ve=0;ve=0){m._fullLayout._deactivateShape(m);return}if(!s){var de=w.clickmode;r0.done(ee).then(function(){if(r0.clear(ee),te===2){for(Y.remove(),X=0;X-1&&gk(ue,m,n.xaxes,n.yaxes,n.subplot,n,Y),de==="event"&&o0(m,void 0);rQ.click(m,ue,S.id)}).catch(zh.error)}},n.doneFn=function(){Q.remove(),r0.done(ee).then(function(){r0.clear(ee),!M&&U&&n.selectionDefs&&(U.subtract=F,n.selectionDefs.push(U),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,O)),(M||s)&&a0(n,M),n.doneFnCompleted&&n.doneFnCompleted(V),f&&o0(m,j)}).catch(zh.error)}}function gk(e,r,t,n,a,o,i){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,v=[],p,b,m,w,M,y,k,S,x,T;if(bQ(l)){yk(e,r,o),p=Oh(r,t,n,a);var d=_Q(l,p),_=d.pointNumbers.length>0;if(_?wQ(p,d):MQ(p)&&(k=fk(d))){for(i&&i.remove(),T=0;T=0}function xQ(e){return e._fullLayout._activeSelectionIndex>=0}function a0(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;mQ(a)&&a._fullLayout._deactivateShape(a),xQ(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout,i=o._zoomlayer,l=n0(t),u=by(t);if(l||u){var s=i.selectAll(".select-outline-"+n.id);if(s&&a._fullLayout._outlining){var f;l&&(f=oQ(s,e)),f&&t0.call("_guiRelayout",a,{shapes:f});var v;u&&!My(e)&&(v=lQ(s,e)),v&&(a._fullLayout._noEmitSelectedAtStart=!0,t0.call("_guiRelayout",a,{selections:v}).then(function(){r&&sQ(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function uk(e){return e._id}function Oh(e,r,t,n){if(!e.calcdata)return[];var a=[],o=r.map(uk),i=t.map(uk),l,u,s;for(s=0;s0,o=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(o)>-1:!1}function wQ(e,r){var t=[],n,a,o,i;for(i=0;i0&&t.push(n);if(t.length===1&&(o=t[0]===r.searchInfo,o&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(i=0;i1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function i0(e,r,t){var n;for(n=0;n-1&&r;if(!i&&r){var te=ck(e,!0);if(te.length){var ue=te[0].xref,de=te[0].yref;if(ue&&de){var ke=Mk(te),Ae=Tk([qa(e,ue,"x"),qa(e,de,"y")]);Ae(V,ke)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:H&&o0(e,V),p._reselect=!1}if(!i&&p._deselect){var ve=p._deselect;l=ve.xref,u=ve.yref,kQ(l,u,f)||wk(e,l,u,n),H&&(V.points.length?o0(e,V):ky(e)),p._deselect=!1}return{eventData:V,selectionTesters:t}}function AQ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";Sk.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var s0=pe((Dve,Ck)=>{"use strict";Ck.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var yu=pe((Fve,Rk)=>{"use strict";var Ek=Sy(),Lk=kn(),Bh=wn(),RQ=gt().templatedArray,Pve=s0();Rk.exports=RQ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Lk({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Ek.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Ek.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Bh.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Bh.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Bh.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Bh.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Lk({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Uh=pe((Ive,Dk)=>{"use strict";Dk.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Fk=pe((Nve,Pk)=>{"use strict";Pk.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var $l=pe((zve,Bk)=>{"use strict";var Ik=ro().axisHoverFormat,DQ=ha().texttemplateAttrs,PQ=ha().hovertemplateAttrs,Nk=ja(),FQ=kn(),IQ=Ao().dash,NQ=Ao().pattern,zQ=yt(),qQ=Uh(),Hh=Mt().extendFlat,OQ=Fk();function zk(e){return{valType:"any",dflt:0,editType:"calc"}}function qk(e){return{valType:"any",editType:"calc"}}function Ok(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Bk.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:zk("x"),yperiod:zk("y"),xperiod0:qk("x0"),yperiod0:qk("y0"),xperiodalignment:Ok("x"),yperiodalignment:Ok("y"),xhoverformat:Ik("x"),yhoverformat:Ik("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:DQ({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:PQ({},{keys:qQ.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Hh({},IQ,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:OQ(!0),fillgradient:Hh({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:NQ,marker:Hh({symbol:{valType:"enumerated",values:zQ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Hh({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},Nk("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Nk("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:FQ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var Cy=pe((Ove,Vk)=>{"use strict";var Uk=yu(),Hk=$l().line,BQ=Ao().dash,Vh=Mt().extendFlat,UQ=zn().overrideAll,HQ=gt().templatedArray,qve=s0();Vk.exports=UQ(HQ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Vh({},Uk.xref,{}),yref:Vh({},Uk.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:Hk.color,width:Vh({},Hk.width,{min:1,dflt:1}),dash:Vh({},BQ,{dflt:"dot"})}}),"arraydraw","from-root")});var Xk=pe((Bve,Wk)=>{"use strict";var Gk=ir(),Gh=Ct(),VQ=ei(),GQ=Cy(),Yk=Wo();Wk.exports=function(r,t){VQ(r,t,{name:"selections",handleItemDefaults:YQ});for(var n=t.selections,a=0;a{"use strict";Zk.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var u0=pe((Hve,$k)=>{"use strict";var WQ=Er(),Kk=ir(),Qk=en();$k.exports=function(r){return function(n,a){var o=n[r];if(Array.isArray(o))for(var i=WQ.subplotsRegistry.cartesian,l=i.idRegex,u=a._subplots,s=u.xaxis,f=u.yaxis,v=u.cartesian,p=a._has("cartesian"),b=0;b{"use strict";var jk=hy(),f0=kk();eS.exports={moduleType:"component",name:"selections",layoutAttributes:Cy(),supplyLayoutDefaults:Xk(),supplyDrawNewSelectionDefaults:Jk(),includeBasePlot:u0()("selections"),draw:jk.draw,drawOne:jk.drawOne,reselect:f0.reselect,prepSelect:f0.prepSelect,clearOutline:f0.clearOutline,clearSelectionsCache:f0.clearSelectionsCache,selectOnClick:f0.selectOnClick}});var _S=pe((Gve,bS)=>{"use strict";var Py=ot(),Oa=ir(),rS=Oa.numberFormat,XQ=Sa(),ZQ=Zv(),Yh=Er(),fS=Oa.strTranslate,JQ=Yn(),tS=Zr(),Zo=yt(),KQ=io(),nS=Ct(),QQ=Vo(),$Q=ti(),cS=uu(),Wh=cS.selectingOrDrawing,jQ=cS.freeMode,e$=qn().FROM_TL,r$=sh(),t$=Rh().redrawReglTraces,n$=ln(),Ly=en().getFromId,a$=mu().prepSelect,i$=mu().clearOutline,o$=mu().selectOnClick,Ey=iy(),Fy=wn(),aS=Fy.MINDRAG,Wn=Fy.MINZOOM,iS=!0;function l$(e,r,t,n,a,o,i,l){var u=e._fullLayout._zoomlayer,s=i+l==="nsew",f=(i+l).length===1,v,p,b,m,w,M,y,k,S,x,T,d,_,g,c,A,h,R,E,D,N,I,F;t+=r.yaxis._shift;function L(){if(v=r.xaxis,p=r.yaxis,S=v._length,x=p._length,y=v._offset,k=p._offset,b={},b[v._id]=v,m={},m[p._id]=p,i&&l)for(var ce=r.overlays,he=0;he=0){ye._fullLayout._deactivateShape(ye);return}var Ce=ye._fullLayout.clickmode;if(Dy(ye),ce===2&&!f&&Be(),s)Ce.indexOf("select")>-1&&o$(he,ye,w,M,r.id,U),Ce.indexOf("event")>-1&&KQ.click(ye,he,r.id);else if(ce===1&&f){var ze=i?p:v,qe=i==="s"||l==="w"?0:1,$e=ze._name+".range["+qe+"]",We=s$(ze,qe),Ue="left",Ge="middle";if(ze.fixedrange)return;i?(Ge=i==="n"?"top":"bottom",ze.side==="right"&&(Ue="right")):l==="e"&&(Ue="right"),ye._context.showAxisRangeEntryBoxes&&Py.select(O).call(JQ.makeEditable,{gd:ye,immediate:!0,background:ye._fullLayout.paper_bgcolor,text:String(We),fill:ze.tickfont?ze.tickfont.color:"#444",horizontalAlign:Ue,verticalAlign:Ge}).on("edit",function(_e){var De=ze.d2r(_e);De!==void 0&&Yh.call("_guiRelayout",ye,$e,De)})}}$Q.init(U);var j,Y,q,K,ne,Q,ie,ee,V,re;function H(ce,he,ye){var Ce=O.getBoundingClientRect();j=he-Ce.left,Y=ye-Ce.top,e._fullLayout._calcInverseTransform(e);var ze=Oa.apply3DTransform(e._fullLayout._invTransform)(j,Y);j=ze[0],Y=ze[1],q={l:j,r:j,w:0,t:Y,b:Y,h:0},K=e._hmpixcount?e._hmlumcount/e._hmpixcount:XQ(e._fullLayout.plot_bgcolor).getLuminance(),ne="M0,0H"+S+"V"+x+"H0V0",Q=!1,ie="xy",re=!1,ee=dS(u,K,y,k,ne),V=pS(u,y,k)}function te(ce,he){if(e._transitioningWithDuration)return!1;var ye=Math.max(0,Math.min(S,I*ce+j)),Ce=Math.max(0,Math.min(x,F*he+Y)),ze=Math.abs(ye-j),qe=Math.abs(Ce-Y);q.l=Math.min(j,ye),q.r=Math.max(j,ye),q.t=Math.min(Y,Ce),q.b=Math.max(Y,Ce);function $e(){ie="",q.r=q.l,q.t=q.b,V.attr("d","M0,0Z")}if(T.isSubplotConstrained)ze>Wn||qe>Wn?(ie="xy",ze/S>qe/x?(qe=ze*x/S,Y>Ce?q.t=Y-qe:q.b=Y+qe):(ze=qe*S/x,j>ye?q.l=j-ze:q.r=j+ze),V.attr("d",Xh(q))):$e();else if(d.isSubplotConstrained)if(ze>Wn||qe>Wn){ie="xy";var We=Math.min(q.l/S,(x-q.b)/x),Ue=Math.max(q.r/S,(x-q.t)/x);q.l=We*S,q.r=Ue*S,q.b=(1-We)*x,q.t=(1-Ue)*x,V.attr("d",Xh(q))}else $e();else!g||qe0){var _e;if(d.isSubplotConstrained||!_&&g.length===1){for(_e=0;_e1&&($e.maxallowed!==void 0&&A===($e.range[0]<$e.range[1]?"e":"w")||$e.minallowed!==void 0&&A===($e.range[0]<$e.range[1]?"w":"e"))&&(ar=1,J=0),Ye?(se=De,ae=i||d.isSubplotConstrained?ce[1]:Re(We,se)):d.yaHash[We._id]?(se=De,ae=ce[1]*We._length/p._length):d.xaHash[We._id]?(se=_e,ae=_==="ew"?-ce[0]*We._length/v._length:Re(We,se,{e:"right",w:"left"}[_])):(se=Me(We,_e,De),ae=me(We,se)),se>1&&(We.maxallowed!==void 0&&h===(We.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function f$(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function dS(e,r,t,n,a){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",fS(t,n)).attr("d",a+"Z")}function pS(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:tS.background,stroke:tS.defaultLine,"stroke-width":1,opacity:0}).attr("transform",fS(r,t)).attr("d","M0,0Z")}function gS(e,r,t,n,a,o){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),yS(e,r,a,o)}function yS(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function Dy(e){Py.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function mS(e){iS&&e.data&&e._context.showTips&&(Oa.notifier(Oa._(e,"Double-click to zoom back out"),"long"),iS=!1)}function c$(e,r){return"M"+(e.l-.5)+","+(r-Wn-.5)+"h-3v"+(2*Wn+1)+"h3ZM"+(e.r+.5)+","+(r-Wn-.5)+"h3v"+(2*Wn+1)+"h-3Z"}function v$(e,r){return"M"+(r-Wn-.5)+","+(e.t-.5)+"v-3h"+(2*Wn+1)+"v3ZM"+(r-Wn-.5)+","+(e.b+.5)+"v3h"+(2*Wn+1)+"v-3Z"}function Xh(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Wn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function sS(e,r,t,n,a){for(var o=!1,i={},l={},u,s,f,v,p=(a||{}).xaHash,b=(a||{}).yaHash,m=0;m{"use strict";var h$=ot(),Zh=io(),d$=ti(),p$=Vo(),ii=_S().makeDragBox,cn=wn().DRAGGERSIZE;Jh.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){h$.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(o,i){if((t._plots[o].mainplot&&!0)===(t._plots[i].mainplot&&!0)){var l=o.split("y"),u=i.split("y");return l[0]===u[0]?Number(l[1]||1)-Number(u[1]||1):Number(l[0]||1)-Number(u[0]||1)}return t._plots[o].mainplot?1:-1});n.forEach(function(o){var i=t._plots[o],l=i.xaxis,u=i.yaxis;if(!i.mainplot){var s=ii(r,i,l._offset,u._offset,l._length,u._length,"ns","ew");s.onmousemove=function(p){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===o&&r._fullLayout._plots[o]&&Zh.hover(r,p,o)},Zh.hover(r,p,o),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=o},s.onmouseout=function(p){r._dragging||(r._fullLayout._hoversubplot=null,d$.unhover(r,p))},r._context.showAxisDragHandles&&(ii(r,i,l._offset-cn,u._offset-cn,cn,cn,"n","w"),ii(r,i,l._offset+l._length,u._offset-cn,cn,cn,"n","e"),ii(r,i,l._offset-cn,u._offset+u._length,cn,cn,"s","w"),ii(r,i,l._offset+l._length,u._offset+u._length,cn,cn,"s","e"))}if(r._context.showAxisDragHandles){if(o===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=cn),ii(r,i,l._offset+l._length*.1,f,l._length*.8,cn,"","ew"),ii(r,i,l._offset,f,l._length*.1,cn,"","w"),ii(r,i,l._offset+l._length*.9,f,l._length*.1,cn,"","e")}if(o===u._mainSubplot){var v=u._mainLinePosition;u.side!=="right"&&(v-=cn),ii(r,i,v,u._offset+u._length*.1,cn,u._length*.8,"ns",""),ii(r,i,v,u._offset+u._length*.9,cn,u._length*.1,"s",""),ii(r,i,v,u._offset,cn,u._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(o){o.target=r._fullLayout._lasthover,Zh.hover(r,o,t._hoversubplot)},a.onclick=function(o){o.target=r._fullLayout._lasthover,Zh.click(r,o)},a.onmousedown=function(o){r._fullLayout._lasthover.onmousedown(o)},Jh.updateFx(r)}};Jh.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";p$(r._draggers,t)}});var TS=pe((Wve,MS)=>{"use strict";var wS=Er();MS.exports=function(r){for(var t=wS.layoutArrayContainers,n=wS.layoutArrayRegexes,a=r.split("[")[0],o,i,l=0;l{"use strict";var g$=wo(),Ny=Ic(),c0=Al(),y$=Dp().sorterAsc,zy=Er();v0.containerArrayMatch=TS();var m$=v0.isAddVal=function(r){return r==="add"||g$(r)},AS=v0.isRemoveVal=function(r){return r===null||r==="remove"};v0.applyContainerArrayChanges=function(r,t,n,a,o){var i=t.astr,l=zy.getComponentMethod(i,"supplyLayoutDefaults"),u=zy.getComponentMethod(i,"draw"),s=zy.getComponentMethod(i,"drawOne"),f=a.replot||a.recalc||l===Ny||u===Ny,v=r.layout,p=r._fullLayout;if(n[""]){Object.keys(n).length>1&&c0.warn("Full array edits are incompatible with other edits",i);var b=n[""][""];if(AS(b))t.set(null);else if(Array.isArray(b))t.set(b);else return c0.warn("Unrecognized full array edit value",i,b),!0;return f?!1:(l(v,p),u(r),!0)}var m=Object.keys(n).map(Number).sort(y$),w=t.get(),M=w||[],y=o(p,i).get(),k=[],S=-1,x=M.length,T,d,_,g,c,A,h,R;for(T=0;TM.length-(h?0:1)){c0.warn("index out of range",i,_);continue}if(A!==void 0)c.length>1&&c0.warn("Insertion & removal are incompatible with edits to the same index.",i,_),AS(A)?k.push(_):h?(A==="add"&&(A={}),M.splice(_,0,A),y&&y.splice(_,0,{})):c0.warn("Unrecognized full object edit value",i,_,A),S===-1&&(S=_);else for(d=0;d=0;T--)M.splice(k[T],1),y&&y.splice(k[T],1);if(M.length?w||t.set(M):t.set(null),f)return!1;if(l(v,p),s!==Ny){var E;if(S===-1)E=m;else{for(x=Math.max(M.length,x),E=[],T=0;T=S));T++)E.push(_);for(T=S;T{"use strict";var LS=tt(),Zve=wp(),RS=Er(),ua=ir(),h0=ln(),DS=en(),PS=Zr(),d0=DS.cleanId,x$=DS.getFromTrace,qy=RS.traceIs;oi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ua.log("Clearing previous rejected promises from queue."),e._promises=[]};oi.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(h0.subplotsRegistry.cartesian||{}).attrRegex,a=(h0.subplotsRegistry.polar||{}).attrRegex,o=(h0.subplotsRegistry.ternary||{}).attrRegex,i=(h0.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(M.x=1.02,M.xanchor="left"):M.x<-2&&(M.x=-.02,M.xanchor="right"),M.y>3?(M.y=1.02,M.yanchor="bottom"):M.y<-2&&(M.y=-.02,M.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),PS.clean(e),e.template&&e.template.layout&&oi.cleanLayout(e.template.layout),e};function xu(e,r){var t=e[r],n=r.charAt(0);t&&t!=="paper"&&(e[r]=d0(t,n,!0))}oi.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}oi.hasParent=function(e,r){for(var t=ES(r);t;){if(t in e)return!0;t=ES(t)}return!1};var w$=["x","y","z"];oi.clearAxisTypes=function(e,r,t){for(var n=0;n{"use strict";var jh=ot(),M$=tt(),T$=Yp(),ur=ir(),_t=ur.nestedProperty,Uy=_f(),Xn=vw(),Ba=Er(),o1=Vs(),Rr=ln(),Vn=Ct(),A$=v2(),k$=Ra(),Oy=yt(),S$=Zr(),C$=Iy().initInteractions,E$=Io(),L$=mu().clearOutline,OS=Tl().dfltConfig,Qh=kS(),Jt=FS(),ht=Rh(),Jo=zn(),R$=wn().AX_NAME_PATTERN,By=0,IS=5;function D$(e,r,t,n){var a;if(e=ur.getGraphDiv(e),Uy.init(e),ur.isPlainObject(r)){var o=r;r=o.data,t=o.layout,n=o.config,a=o.frames}var i=Uy.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(i===!1)return Promise.reject();!r&&!t&&!ur.isPlotDiv(e)&&ur.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return jr.addFrames(e,a)}US(e,n),t||(t={}),jh.select(e).classed("js-plotly-plot",!0),Oy.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Jt.cleanData(r),u?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||u)&&(e.layout=Jt.cleanLayout(t)),Rr.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(rj(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),Oy.initGradients(e),Oy.initPatterns(e),u&&Vn.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&Rr.doCalcdata(e);for(var p=0;p=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function HS(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),r1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&r1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function z$(e,r,t){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),n=0;n=0&&f=0&&f0&&typeof g.parts[h]!="string";)h--;var R=g.parts[h],E=g.parts[h-1]+"."+R,D=g.parts.slice(0,h).join("."),N=_t(e.layout,D).get(),I=_t(n,D).get(),F=g.get();if(c!==void 0){y[_]=c,k[_]=R==="reverse"?c:uo(F);var L=o1.getLayoutValObject(n,g.parts);if(L&&L.impliedEdits&&c!==null)for(var P in L.impliedEdits)S(ur.relativeAttr(_,P),L.impliedEdits[P]);if(["width","height"].indexOf(_)!==-1)if(c){S("autosize",null);var O=_==="height"?"width":"height";S(O,n[O])}else n[_]=e._initialAutoSize[_];else if(_==="autosize")S("width",c?null:n.width),S("height",c?null:n.height);else if(E.match(QS))d(E),_t(n,D+"._inputRange").set(null);else if(E.match($S)){d(E),_t(n,D+"._inputRange").set(null);var U=_t(n,D).get();U._inputDomain&&(U._input.domain=U._inputDomain.slice())}else E.match(U$)&&_t(n,D+"._inputDomain").set(null);if(R==="type"){T=N;var X=I.type==="linear"&&c==="log",$=I.type==="log"&&c==="linear";if(X||$){if(!T||!T.range)S(D+".autorange",!0);else if(I.autorange)X&&(T.range=T.range[1]>T.range[0]?[1,2]:[2,1]);else{var j=T.range[0],Y=T.range[1];X?(j<=0&&Y<=0&&S(D+".autorange",!0),j<=0?j=Y/1e6:Y<=0&&(Y=j/1e6),S(D+".range[0]",Math.log(j)/Math.LN10),S(D+".range[1]",Math.log(Y)/Math.LN10)):(S(D+".range[0]",Math.pow(10,j)),S(D+".range[1]",Math.pow(10,Y)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[g.parts[0]]&&g.parts[1]==="radialaxis"&&delete n[g.parts[0]]._subplot.viewInitial["radialaxis.range"],Ba.getComponentMethod("annotations","convertCoords")(e,I,c,S),Ba.getComponentMethod("images","convertCoords")(e,I,c,S)}else S(D+".autorange",!0),S(D+".range",null);_t(n,D+"._inputRange").set(null)}else if(R.match(R$)){var q=_t(n,_).get(),K=(c||{}).type;(!K||K==="-")&&(K="linear"),Ba.getComponentMethod("annotations","convertCoords")(e,q,K,S),Ba.getComponentMethod("images","convertCoords")(e,q,K,S)}var ne=Qh.containerArrayMatch(_);if(ne){f=ne.array,v=ne.index;var Q=ne.property,ie=L||{editType:"calc"};v!==""&&Q===""&&(Qh.isAddVal(c)?k[_]=null:Qh.isRemoveVal(c)?k[_]=(_t(t,f).get()||[])[v]:ur.warn("unrecognized full object value",r)),Jo.update(M,ie),s[f]||(s[f]={});var ee=s[f][v];ee||(ee=s[f][v]={}),ee[Q]=c,delete r[_]}else R==="reverse"?(N.range?N.range.reverse():(S(D+".autorange",!0),N.range=[1,0]),I.autorange?M.calc=!0:M.plot=!0):(_==="dragmode"&&(c===!1&&F!==!1||c!==!1&&F===!1)||n._has("scatter-like")&&n._has("regl")&&_==="dragmode"&&(c==="lasso"||c==="select")&&!(F==="lasso"||F==="select")?M.plot=!0:L?Jo.update(M,L):M.calc=!0,g.set(c))}}for(f in s){var V=Qh.applyContainerArrayChanges(e,o(t,f),s[f],M,o);V||(M.plot=!0)}for(var re in x){T=Vn.getFromId(e,re);var H=T&&T._constraintGroup;if(H){M.calc=!0;for(var te in H)x[te]||(Vn.getFromId(e,te)._constraintShrinkable=!0)}}(eC(e)||r.height||r.width)&&(M.plot=!0);var ue=n.shapes;for(v=0;v1;)if(n.pop(),t=_t(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function G$(e,r){for(var t=0;t[N,e._ev.listeners(N)]);o=jr.newPlot(e,r,t,n).then(()=>{for(let[N,I]of D)I.forEach(F=>e.on(N,F));return jr.react(e,r,t,n)})}else{e.data=r||[],Jt.cleanData(e.data),e.layout=t||{},Jt.cleanLayout(e.layout),W$(e.data,e.layout,l,u),Rr.supplyDefaults(e,{skipUpdateCalc:!0});var p=e._fullData,b=e._fullLayout,m=b.datarevision===void 0,w=b.transition,M=J$(e,u,b,m,w),y=M.newDataRevision,k=Z$(e,l,p,m,w,y);if(eC(e)&&(M.layoutReplot=!0),k.calc||M.calc){e.calcdata=void 0;for(var S=Object.getOwnPropertyNames(b),x=0;x(f||e.emit("plotly_react",{config:n,data:r,layout:t}),e))}function Z$(e,r,t,n,a,o){var i=r.length===t.length;if(!a&&!i)return{fullReplot:!0,calc:!0};var l=Jo.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var u,s;function f(b){var m=o1.getTraceValObject(s,b);return!s._module.animatable&&m.anim&&(m.anim=!1),m}var v={getValObject:f,flags:l,immutable:n,transition:a,newDataRevision:o,gd:e},p={};for(u=0;u=a.length?a[0]:a[s]:a}function l(s){return Array.isArray(o)?s>=o.length?o[0]:o[s]:o}function u(s,f){var v=0;return function(){if(s&&++v===f)return s()}}return new Promise(function(s,f){function v(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var R=n._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function p(R){if(R.length!==0){for(var E=0;En._timeToNext&&m()};R()}var M=0;function y(R){return Array.isArray(a)?M>=a.length?R.transitionOpts=a[M]:R.transitionOpts=a[0]:R.transitionOpts=a,M++,R}var k,S,x=[],T=r==null,d=Array.isArray(r),_=!T&&!d&&ur.isPlainObject(r);if(_)x.push({type:"object",data:y(ur.extendFlat({},r))});else if(T||["string","number"].indexOf(typeof r)!==-1)for(k=0;k0&&AA)&&h.push(S);x=h}}x.length>0?p(x):(e.emit("plotly_animated"),s())})}function Q$(e,r,t){if(e=ur.getGraphDiv(e),r==null)return Promise.resolve();if(!ur.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,o,i,l=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var s=l.length+r.length*2,f=[],v={};for(n=r.length-1;n>=0;n--)if(ur.isPlainObject(r[n])){var p=r[n].name,b=(u[p]||v[p]||{}).name,m=r[n].name,w=u[b]||v[b];b&&m&&typeof m=="number"&&w&&Byg.index?-1:_.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&ur.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(o=0;o=0;t--)n=r[t],o.push({type:"delete",index:n}),i.unshift({type:"insert",index:n,value:a[n]});var l=Rr.modifyFrames,u=Rr.modifyFrames,s=[e,i],f=[e,o];return Xn&&Xn.add(e,l,s,u,f),Rr.modifyFrames(e,o)}function j$(e){e=ur.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Rr.cleanPlot([],{},t,r),Rr.purge(e),Uy.purge(e),r._container&&r._container.remove(),delete e._context,e}function ej(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!ur.equalDomRects(t,r._lastBBox)){var n=r._invTransform=ur.inverseTransformMatrix(ur.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function rj(e){var r=jh.select(e),t=e._fullLayout;if(t._calcInverseTransform=ej,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var n={};jh.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=ur.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(E$.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var o=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=o.append("g").classed("imagelayer",!0),t._shapeUpperLayer=o.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}jr.animate=K$;jr.addFrames=Q$;jr.deleteFrames=$$;jr.addTraces=XS;jr.deleteTraces=ZS;jr.extendTraces=YS;jr.moveTraces=Hy;jr.prependTraces=WS;jr.newPlot=N$;jr._doPlot=D$;jr.purge=j$;jr.react=X$;jr.redraw=I$;jr.relayout=p0;jr.restyle=t1;jr.setPlotConfig=P$;jr.update=a1;jr._guiRelayout=Gy(p0);jr._guiRestyle=Gy(t1);jr._guiUpdate=Gy(a1);jr._storeDirectGUIEdit=B$});var jl=pe(Oi=>{"use strict";var tj=Er();Oi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Oi.getRedrawFunc=function(e){return function(){tj.getComponentMethod("colorbar","draw")(e)}};Oi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Oi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var rC=window.URL||window.webkitURL;Oi.createObjectURL=function(e){return rC.createObjectURL(e)};Oi.revokeObjectURL=function(e){return rC.revokeObjectURL(e)};Oi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=nj(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Oi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function nj(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var Xy=ot(),$ve=ir(),aj=yt(),ij=Zr(),jve=Io(),Wy=/"/g,y0="TOBESTRIPPED",oj=new RegExp('("'+y0+")|("+y0+'")',"g");function lj(e){var r=Xy.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":r.html(n).text()});return r.remove(),t}function sj(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}tC.exports=function(r,t,n){var a=r._fullLayout,o=a._paper,i=a._toppaper,l=a.width,u=a.height,s;o.insert("rect",":first-child").call(aj.setRect,0,0,l,u).call(ij.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(s=0;s{"use strict";var uj=ir(),fj=tv().EventEmitter,m0=jl();function cj(e){var r=e.emitter||new fj,t=new Promise(function(n,a){var o=window.Image,i=e.svg,l=e.format||"png",u=e.canvas,s=e.scale||1,f=e.width||300,v=e.height||150,p=s*f,b=s*v,m=u.getContext("2d",{willReadFrequently:!0}),w=new o,M,y;l==="svg"||uj.isSafari()?y=m0.encodeSVG(i):(M=m0.createBlob(i,"svg"),y=m0.createObjectURL(M)),u.width=p,u.height=b,w.onload=function(){var k;switch(M=null,m0.revokeObjectURL(y),l!=="svg"&&m.drawImage(w,0,0,p,b),l){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=y;break;default:var S="Image format is not jpeg, png, svg or webp.";if(a(new Error(S)),!e.promise)return r.emit("error",S)}n(k),e.promise||r.emit("success",k)},w.onerror=function(k){if(M=null,m0.revokeObjectURL(y),a(k),!e.promise)return r.emit("error",k)},w.src=y});return e.promise?t:r}nC.exports=cj});var Jy=pe((the,oC)=>{"use strict";var aC=tt(),iC=Yy(),vj=ln(),Bi=ir(),x0=jl(),hj=s1(),dj=u1(),pj=mc().version,Zy={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function gj(e,r){r=r||{};var t,n,a,o;Bi.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},o={}):(e=Bi.getGraphDiv(e),t=Bi.extendDeep([],e.data),n=Bi.extendDeep({},e.layout),a=e._context,o=e._fullLayout||{});function i(d){return!(d in r)||Bi.validate(r[d],Zy[d])}if(!i("width")&&r.width!==null||!i("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!i("format"))throw new Error("Export format is not "+Bi.join2(Zy.format.values,", "," or ")+".");var l={};function u(d,_){return Bi.coerce(r,l,Zy,d,_)}var s=u("format"),f=u("width"),v=u("height"),p=u("scale"),b=u("setBackground"),m=u("imageDataOnly"),w=document.createElement("div");w.style.position="absolute",w.style.left="-5000px",document.body.appendChild(w);var M=Bi.extendFlat({},n);f?M.width=f:r.width===null&&aC(o.width)&&(M.width=o.width),v?M.height=v:r.height===null&&aC(o.height)&&(M.height=o.height);var y=Bi.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:b}),k=x0.getRedrawFunc(w);function S(){return new Promise(function(d){setTimeout(d,x0.getDelay(w._fullLayout))})}function x(){return new Promise(function(d,_){var g=hj(w,s,p),c=w._fullLayout.width,A=w._fullLayout.height;function h(){iC.purge(w),document.body.removeChild(w)}if(s==="full-json"){var R=vj.graphJson(w,!1,"keepdata","object",!0,!0);return R.version=pj,R=JSON.stringify(R),h(),d(m?R:x0.encodeJSON(R))}if(h(),s==="svg")return d(m?g:x0.encodeSVG(g));var E=document.createElement("canvas");E.id=Bi.randstr(),dj({format:s,width:c,height:A,scale:p,canvas:E,svg:g,promise:!0}).then(d).catch(_)})}function T(d){return m?d.replace(x0.IMAGE_URL_PREFIX,""):d}return new Promise(function(d,_){iC.newPlot(w,t,M,y).then(k).then(S).then(x).then(function(g){d(T(g))}).catch(function(g){_(g)})})}oC.exports=gj});var uC=pe((nhe,sC)=>{"use strict";var Ua=ir(),yj=ln(),mj=Vs(),xj=Tl().dfltConfig,li=Ua.isPlainObject,rs=Array.isArray,Ky=Ua.isArrayOrTypedArray;sC.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=mj.get(),a=[],o={_context:Ua.extendFlat({},xj)},i,l;rs(r)?(o.data=Ua.extendDeep([],r),i=r):(o.data=[],i=[],a.push(vn("array","data"))),li(t)?(o.layout=Ua.extendDeep({},t),l=t):(o.layout={},l={},arguments.length>1&&a.push(vn("object","layout"))),yj.supplyDefaults(o);for(var u=o._fullData,s=i.length,f=0;fv.length&&n.push(vn("unused",a,s.concat(v.length)));var y=v.length,k=Array.isArray(M);k&&(y=Math.min(y,M.length));var S,x,T,d,_;if(p.dimensions===2)for(x=0;xv[x].length&&n.push(vn("unused",a,s.concat(x,v[x].length)));var g=v[x].length;for(S=0;S<(k?Math.min(g,M[x].length):g);S++)T=k?M[x][S]:M,d=f[x][S],_=v[x][S],Ua.validate(d,T)?_!==d&&_!==+d&&n.push(vn("dynamic",a,s.concat(x,S),d,_)):n.push(vn("value",a,s.concat(x,S),d))}else n.push(vn("array",a,s.concat(x),f[x]));else for(x=0;x{"use strict";var kj=ir(),c1=jl();function Sj(e,r,t){var n=document.createElement("a"),a="download"in n,o=new Promise(function(i,l){var u,s;if(a)return u=c1.createBlob(e,t),s=c1.createObjectURL(u),n.href=s,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),c1.revokeObjectURL(s),u=null,i(r);if(kj.isSafari()){var f=t==="svg"?",":";base64,";return c1.octetStream(f+encodeURIComponent(e)),i(r)}l(new Error("download error"))});return o}fC.exports=Sj});var Qy=pe((ohe,hC)=>{"use strict";var vC=ir(),Cj=Jy(),Ej=cC(),ihe=jl();function Lj(e,r){var t;return vC.isPlainObject(e)||(t=vC.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(n,a){t&&t._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var o=Cj(e,r),i=r.filename||e.fn||"newplot";i+="."+r.format.replace("-","."),o.then(function(l){return t&&(t._snapshotInProgress=!1),Ej(l,i,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}hC.exports=Lj});var mC=pe($y=>{"use strict";var fa=ir(),ca=fa.isPlainObject,dC=Vs(),pC=ln(),Rj=Sn(),gC=gt(),yC=Tl().dfltConfig;$y.makeTemplate=function(e){e=fa.isPlainObject(e)?e:fa.getGraphDiv(e),e=fa.extendDeep({_context:yC},{data:e.data,layout:e.layout}),pC.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(b){var m={};b0(b,m,Pj.bind(null,b));var w=fa.coerce(b,{},Rj,"type"),M=n.data[w];M||(M=n.data[w]=[]),M.push(m)}),b0(t,n.layout,Dj.bind(null,t)),delete n.layout.template;var a=t.template;if(ca(a)){var o=a.layout,i,l,u,s,f,v;ca(o)&&v1(o,n.layout);var p=a.data;if(ca(p)){for(l in n.data)if(u=p[l],Array.isArray(u)){for(f=n.data[l],v=f.length,s=u.length,i=0;iy?i.push({code:"unused",traceType:b,templateCount:M,dataCount:y}):y>M&&i.push({code:"reused",traceType:b,templateCount:M,dataCount:y})}}function k(S,x){for(var T in S)if(T.charAt(0)!=="_"){var d=S[T],_=Ha(S,T,x);ca(d)?(Array.isArray(S)&&d._template===!1&&d.templateitemname&&i.push({code:"missing",path:_,templateitemname:d.templateitemname}),k(d,_)):Array.isArray(d)&&Fj(d)&&k(d,_)}}if(k({data:u,layout:l},""),i.length)return i.map(Ij)};function Fj(e){for(var r=0;r{"use strict";var tn=Yy();St._doPlot=tn._doPlot;St.newPlot=tn.newPlot;St.restyle=tn.restyle;St.relayout=tn.relayout;St.redraw=tn.redraw;St.update=tn.update;St._guiRestyle=tn._guiRestyle;St._guiRelayout=tn._guiRelayout;St._guiUpdate=tn._guiUpdate;St._storeDirectGUIEdit=tn._storeDirectGUIEdit;St.react=tn.react;St.extendTraces=tn.extendTraces;St.prependTraces=tn.prependTraces;St.addTraces=tn.addTraces;St.deleteTraces=tn.deleteTraces;St.moveTraces=tn.moveTraces;St.purge=tn.purge;St.addFrames=tn.addFrames;St.deleteFrames=tn.deleteFrames;St.animate=tn.animate;St.setPlotConfig=tn.setPlotConfig;var Nj=vf().getGraphDiv,zj=Th().eraseActiveShape;St.deleteActiveShape=function(e){return zj(Nj(e))};St.toImage=Jy();St.validate=uC();St.downloadImage=Qy();var xC=mC();St.makeTemplate=xC.makeTemplate;St.validateTemplate=xC.validateTemplate});var wC=pe((uhe,_C)=>{"use strict";var jy=ir(),qj=Er();_C.exports=function(r,t,n,a){var o=a("x"),i=a("y"),l,u=qj.getComponentMethod("calendars","handleTraceDefaults");if(u(r,t,["x","y"],n),o){var s=jy.minRowLength(o);i?l=Math.min(s,jy.minRowLength(i)):(l=s,a("y0"),a("dy"))}else{if(!i)return 0;l=jy.minRowLength(i),a("x0"),a("dx")}return t._length=l,l}});var kC=pe((fhe,AC)=>{"use strict";var MC=ir().dateTick0,Oj=an(),Bj=Oj.ONEWEEK;function TC(e,r){return e%Bj===0?MC(r,1):MC(r,0)}AC.exports=function(r,t,n,a,o){if(o||(o={x:!0,y:!0}),o.x){var i=a("xperiod");i&&(a("xperiod0",TC(i,t.xcalendar)),a("xperiodalignment"))}if(o.y){var l=a("yperiod");l&&(a("yperiod0",TC(l,t.ycalendar)),a("yperiodalignment"))}}});var EC=pe((che,CC)=>{"use strict";var SC=["orientation","groupnorm","stackgaps"];CC.exports=function(r,t,n,a){var o=n._scatterStackOpts,i=a("stackgroup");if(i){var l=t.xaxis+t.yaxis,u=o[l];u||(u=o[l]={});var s=u[i],f=!1;s?s.traces.push(t):(s=u[i]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},p=0;p{"use strict";var LC=Zr(),RC=Si().hasColorscale,DC=Ei(),Uj=ia();PC.exports=function(r,t,n,a,o,i){var l=Uj.isBubble(r),u=(r.line||{}).color,s;if(i=i||{},u&&(n=u),o("marker.symbol"),o("marker.opacity",l?.7:1),o("marker.size"),i.noAngle||(o("marker.angle"),i.noAngleRef||o("marker.angleref"),i.noStandOff||o("marker.standoff")),o("marker.color",n),RC(r,"marker")&&DC(r,t,a,o,{prefix:"marker.",cLetter:"c"}),i.noSelect||(o("selected.marker.color"),o("unselected.marker.color"),o("selected.marker.size"),o("unselected.marker.size")),i.noLine||(u&&!Array.isArray(u)&&t.marker.color!==u?s=u:l?s=LC.background:s=LC.defaultLine,o("marker.line.color",s),RC(r,"marker.line")&&DC(r,t,a,o,{prefix:"marker.line.",cLetter:"c"}),o("marker.line.width",l?1:0)),l&&(o("marker.sizeref"),o("marker.sizemin"),o("marker.sizemode")),i.gradient){var f=o("marker.gradient.type");f!=="none"&&o("marker.gradient.color")}}});var rm=pe((hhe,FC)=>{"use strict";var Hj=ir().isArrayOrTypedArray,Vj=Si().hasColorscale,Gj=Ei();FC.exports=function(r,t,n,a,o,i){i||(i={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),o("line.color",n),Vj(r,"line"))Gj(r,t,a,o,{prefix:"line.",cLetter:"c"});else{var u=(Hj(l)?!1:l)||n;o("line.color",u)}o("line.width"),i.noDash||o("line.dash"),i.backoff&&o("line.backoff")}});var NC=pe((dhe,IC)=>{"use strict";IC.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var tm=pe((phe,zC)=>{"use strict";var Yj=ir();zC.exports=function(e,r,t,n,a){a=a||{},n("textposition"),Yj.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var BC=pe((ghe,OC)=>{"use strict";var d1=Zr(),qC=ir().isArrayOrTypedArray;function Wj(e){for(var r=d1.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var UC=ir(),Xj=Er(),Zj=$l(),Jj=Uh(),bu=ia(),Kj=wC(),Qj=kC(),$j=EC(),jj=em(),eee=rm(),HC=NC(),ree=tm(),tee=BC(),nee=ir().coercePattern;VC.exports=function(r,t,n,a){function o(b,m){return UC.coerce(r,t,Zj,b,m)}var i=Kj(r,t,a,o);if(i||(t.visible=!1),!!t.visible){Qj(r,t,a,o),o("xhoverformat"),o("yhoverformat"),o("zorder");var l=$j(r,t,a,o);a.scattermode==="group"&&t.orientation===void 0&&o("orientation","v");var u=!l&&i{"use strict";var aee=Wf().getAxisGroup;YC.exports=function(r,t,n,a,o){var i=t.orientation,l=t[{v:"x",h:"y"}[i]+"axis"],u=aee(n,l)+i,s=n._alignmentOpts||{},f=a("alignmentgroup"),v=s[u];v||(v=s[u]={});var p=v[f];p?p.traces.push(t):p=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var b=a("offsetgroup")||"",m=p.offsetGroups,w=m[b];t._offsetIndex=0,(o!=="group"||b)&&(w||(w=m[b]={offsetIndex:Object.keys(m).length}),t._offsetIndex=w.offsetIndex)}});var ZC=pe((xhe,XC)=>{"use strict";var iee=ir(),oee=WC(),lee=$l();XC.exports=function(r,t){var n,a,o,i=t.scattermode;function l(p){return iee.coerce(a._input,a,lee,p)}if(t.scattermode==="group")for(o=0;o=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===u.xaxis&&v.yaxis===u.yaxis){v.opacity=void 0;break}}}}}});var KC=pe((bhe,JC)=>{"use strict";var see=ir(),uee=lv();JC.exports=function(e,r){function t(a,o){return see.coerce(e,r,uee,a,o)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var jC=pe((_he,$C)=>{"use strict";var fee=tt(),QC=ir(),cee=QC.dateTime2ms,p1=QC.incrementMonth,vee=an(),hee=vee.ONEAVGMONTH;$C.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var o=r[n+"periodalignment"];if(!o)return{vals:a};var i=r[n+"period"],l;if(fee(i)){if(i=+i,i<=0)return{vals:a}}else if(typeof i=="string"&&i.charAt(0)==="M"){var u=+i.substring(1);if(u>0&&Math.round(u)===u)l=u;else return{vals:a}}for(var s=t.calendar,f=o==="start",v=o==="end",p=r[n+"period0"],b=cee(p,s)||0,m=[],w=[],M=[],y=a.length,k=0;kS;)d=p1(d,-l,s);for(;d<=S;)d=p1(d,l,s);T=p1(d,-l,s)}else{for(x=Math.round((S-b)/i),d=b+x*i;d>S;)d-=i;for(;d<=S;)d+=i;T=d-i}m[k]=f?T:v?d:(T+d)/2,w[k]=T,M[k]=d}return{vals:m,starts:w,ends:M}}});var im=pe((whe,rE)=>{"use strict";var nm=Si().hasColorscale,am=zo(),eE=ia();rE.exports=function(r,t){eE.hasLines(t)&&nm(t,"line")&&am(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),eE.hasMarkers(t)&&(nm(t,"marker")&&am(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),nm(t,"marker.line")&&am(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var g1=pe((Mhe,tE)=>{"use strict";var Nt=ir();tE.exports=function(r,t){for(var n=0;n{"use strict";var nE=ir();aE.exports=function(r,t){nE.isArrayOrTypedArray(t.selectedpoints)&&nE.tagSelected(r,t)}});var fm=pe((Ahe,vE)=>{"use strict";var oE=tt(),lm=ir(),_0=Ct(),lE=jC(),om=an().BADNUM,sm=ia(),dee=im(),pee=g1(),gee=iE();function yee(e,r){var t=e._fullLayout,n=r._xA=_0.getFromId(e,r.xaxis||"x","x"),a=r._yA=_0.getFromId(e,r.yaxis||"y","y"),o=n.makeCalcdata(r,"x"),i=a.makeCalcdata(r,"y"),l=lE(r,n,"x",o),u=lE(r,a,"y",i),s=l.vals,f=u.vals,v=r._length,p=new Array(v),b=r.ids,m=um(r,t,n,a),w=!1,M,y,k,S,x,T;fE(t,r);var d="x",_="y",g;if(m)lm.pushUnique(m.traceIndices,r.index),M=m.orientation==="v",M?(_="s",g="x"):(d="s",g="y"),x=m.stackgaps==="interpolate";else{var c=uE(r,v);sE(e,r,n,a,s,f,c)}var A=!!r.xperiodalignment,h=!!r.yperiodalignment;for(y=0;yy&&p[S].gap;)S--;for(T=p[S].s,k=p.length-1;k>S;k--)p[k].s=T;for(;y{"use strict";hE.exports=y1;var mee=ir().distinctVals;function y1(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],o=0;o{"use strict";var Va=tt(),Ko=ir().isArrayOrTypedArray,_u=an().BADNUM,xee=Er(),w0=Ct(),bee=Wf().getAxisGroup,m1=dE();function _ee(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;su+i||!Va(l))}for(var f=0;f{"use strict";var bE=fm(),_E=xE().setGroupPositions;function Pee(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;sc[f]&&f{"use strict";var Iee=yt(),SE=an(),M0=SE.BADNUM,CE=SE.LOG_CLIP,TE=CE+.5,AE=CE-.5,x1=ir(),Nee=x1.segmentsIntersect,kE=x1.constrain,gm=Uh();EE.exports=function(r,t){var n=t.trace||{},a=t.xaxis,o=t.yaxis,i=a.type==="log",l=o.type==="log",u=a._length,s=o._length,f=t.backoff,v=n.marker,p=t.connectGaps,b=t.baseTolerance,m=t.shape,w=m==="linear",M=n.fill&&n.fill!=="none",y=[],k=gm.minTolerance,S=r.length,x=new Array(S),T=0,d,_,g,c,A,h,R,E,D,N,I,F,L,P,O,U;function X(Ge){var _e=r[Ge];if(!_e)return!1;var De=t.linearized?a.l2p(_e.x):a.c2p(_e.x),Ke=t.linearized?o.l2p(_e.y):o.c2p(_e.y);if(De===M0){if(i&&(De=a.c2p(_e.x,!0)),De===M0)return!1;l&&Ke===M0&&(De*=Math.abs(a._m*s*(a._m>0?TE:AE)/(o._m*u*(o._m>0?TE:AE)))),De*=1e3}if(Ke===M0){if(l&&(Ke=o.c2p(_e.y,!0)),Ke===M0)return!1;Ke*=1e3}return[De,Ke]}function $(Ge,_e,De,Ke){var Ye=De-Ge,ar=Ke-_e,se=.5-Ge,J=.5-_e,ae=Ye*Ye+ar*ar,Le=Ye*se+ar*J;if(Le>0&&Le1||Math.abs(se.y-De[0][1])>1)&&(se=[se.x,se.y],Ke&&K(se,Ge)ie||Ge[1]V)return[kE(Ge[0],Q,ie),kE(Ge[1],ee,V)]}function Ee(Ge,_e){if(Ge[0]===_e[0]&&(Ge[0]===Q||Ge[0]===ie)||Ge[1]===_e[1]&&(Ge[1]===ee||Ge[1]===V))return!0}function Pe(Ge,_e){var De=[],Ke=Te(Ge),Ye=Te(_e);return Ke&&Ye&&Ee(Ke,Ye)||(Ke&&De.push(Ke),Ye&&De.push(Ye)),De}function Se(Ge,_e,De){return function(Ke,Ye){var ar=Te(Ke),se=Te(Ye),J=[];if(ar&&se&&Ee(ar,se))return J;ar&&J.push(ar),se&&J.push(se);var ae=2*x1.constrain((Ke[Ge]+Ye[Ge])/2,_e,De)-((ar||Ke)[Ge]+(se||Ye)[Ge]);if(ae){var Le;ar&&se?Le=ae>0==ar[Ge]>se[Ge]?ar:se:Le=ar||se,Le[Ge]+=ae}return J}}var Ne;m==="linear"||m==="spline"?Ne=ve:m==="hv"||m==="vh"?Ne=Pe:m==="hvh"?Ne=Se(0,Q,ie):m==="vhv"&&(Ne=Se(1,ee,V));function Be(Ge,_e){var De=_e[0]-Ge[0],Ke=(_e[1]-Ge[1])/De,Ye=(Ge[1]*_e[0]-_e[1]*Ge[0])/De;return Ye>0?[Ke>0?Q:ie,V]:[Ke>0?ie:Q,ee]}function ge(Ge){var _e=Ge[0],De=Ge[1],Ke=_e===x[T-1][0],Ye=De===x[T-1][1];if(!(Ke&&Ye))if(T>1){var ar=_e===x[T-2][0],se=De===x[T-2][1];Ke&&(_e===Q||_e===ie)&&ar?se?T--:x[T-1]=Ge:Ye&&(De===ee||De===V)&&se?ar?T--:x[T-1]=Ge:x[T++]=Ge}else x[T++]=Ge}function we(Ge){x[T-1][0]!==Ge[0]&&x[T-1][1]!==Ge[1]&&ge([ue,de]),ge(Ge),ke=null,ue=de=0}var Me=x1.isArrayOrTypedArray(v);function me(Ge){if(Ge&&f&&(Ge.i=d,Ge.d=r,Ge.trace=n,Ge.marker=Me?v[Ge.i]:v,Ge.backoff=f),j=Ge[0]/u,Y=Ge[1]/s,H=Ge[0]ie?ie:0,te=Ge[1]V?V:0,H||te){if(!T)x[T++]=[H||Ge[0],te||Ge[1]];else if(ke){var _e=Ne(ke,Ge);_e.length>1&&(we(_e[0]),x[T++]=_e[1])}else Ae=Ne(x[T-1],Ge)[0],x[T++]=Ae;var De=x[T-1];H&&te&&(De[0]!==H||De[1]!==te)?(ke&&(ue!==H&&de!==te?ge(ue&&de?Be(ke,Ge):[ue||H,de||te]):ue&&de&&ge([ue,de])),ge([H,te])):ue-H&&de-te&&ge([H||ue,te||de]),ke=Ge,ue=H,de=te}else ke&&we(Ne(ke,Ge)[0]),x[T++]=Ge}for(d=0;dq(h,Re))break;g=h,L=D[0]*E[0]+D[1]*E[1],L>I?(I=L,c=h,R=!1):L=r.length||!h)break;me(h),_=h}}ke&&ge([ue||ke[0],de||ke[1]]),y.push(x.slice(0,T))}var ce=m.slice(m.length-1);if(f&&ce!=="h"&&ce!=="v"){for(var he=!1,ye=-1,Ce=[],ze=0;ze{"use strict";var RE={tonextx:1,tonexty:1,tonext:1};DE.exports=function(r,t,n){var a,o,i,l,u,s={},f=!1,v=-1,p=0,b=-1;for(o=0;o=0?u=b:(u=b=p,p++),u{"use strict";var si=ot(),zee=Er(),T0=ir(),Mu=T0.ensureSingle,IE=T0.identity,zt=yt(),Tu=ia(),qee=LE(),Oee=PE(),b1=py().tester;NE.exports=function(r,t,n,a,o,i){var l,u,s=!o,f=!!o&&o.duration>0,v=Oee(r,t,n);if(l=a.selectAll("g.trace").data(v,function(b){return b[0].trace.uid}),l.enter().append("g").attr("class",function(b){return"trace scatter trace"+b[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Bee(r,l,t),f){i&&(u=i());var p=si.transition().duration(o.duration).ease(o.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});p.each(function(){a.selectAll("g.trace").each(function(b,m){FE(r,m,t,b,v,this,o)})})}else l.each(function(b,m){FE(r,m,t,b,v,this,o)});s&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function Bee(e,r,t){r.each(function(n){var a=Mu(si.select(this),"g","fills");zt.setClipUrl(a,t.layerClipId,e);var o=n[0].trace,i=[];o._ownfill&&i.push("_ownFill"),o._nexttrace&&i.push("_nextFill");var l=a.selectAll("g").data(i,IE);l.enter().append("g"),l.exit().each(function(u){o[u]=null}).remove(),l.order().each(function(u){o[u]=Mu(si.select(this),"path","js-fill")})})}function FE(e,r,t,n,a,o,i){var l=e._context.staticPlot,u;Uee(e,r,t,n,a);var s=!!i&&i.duration>0;function f(Se){return s?Se.transition():Se}var v=t.xaxis,p=t.yaxis,b=n[0].trace,m=b.line,w=si.select(o),M=Mu(w,"g","errorbars"),y=Mu(w,"g","lines"),k=Mu(w,"g","points"),S=Mu(w,"g","text");if(zee.getComponentMethod("errorbars","plot")(e,M,t,i),b.visible!==!0)return;f(w).style("opacity",b.opacity);var x,T,d=b.fill.charAt(b.fill.length-1);d!=="x"&&d!=="y"&&(d="");var _,g;d==="y"?(_=1,g=p.c2p(0,!0)):d==="x"&&(_=0,g=v.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=w;var c="",A=[],h=b._prevtrace,R=null,E=null;h&&(c=h._prevRevpath||"",T=h._nextFill,A=h._ownPolygons,R=h._fillsegments,E=h._fillElement);var D,N,I="",F="",L,P,O,U,X,$,j=[];b._polygons=[];var Y=[],q=[],K=T0.noop;if(x=b._ownFill,Tu.hasLines(b)||b.fill!=="none"){T&&T.datum(n),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(L=zt.steps(m.shape),P=zt.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?L=P=function(Se){var Ne=Se[Se.length-1];return Se.length>1&&Se[0][0]===Ne[0]&&Se[0][1]===Ne[1]?zt.smoothclosed(Se.slice(1),m.smoothing):zt.smoothopen(Se,m.smoothing)}:L=P=function(Se){return"M"+Se.join("L")},O=function(Se){return P(Se.reverse())},q=qee(n,{xaxis:v,yaxis:p,trace:b,connectGaps:b.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:b.fill}),Y=new Array(q.length);var ne=0;for(u=0;u=l[0]&&w.x<=l[1]&&w.y>=u[0]&&w.y<=u[1]}),p=Math.ceil(v.length/f),b=0;a.forEach(function(w,M){var y=w[0].trace;Tu.hasMarkers(y)&&y.marker.maxdisplayed>0&&M{"use strict";qE.exports={container:"marker",min:"cmin",max:"cmax"}});var UE=pe((Phe,BE)=>{"use strict";var _1=Ct();BE.exports=function(r,t,n){var a={},o={_fullLayout:n},i=_1.getFromTrace(o,t,"x"),l=_1.getFromTrace(o,t,"y"),u=r.orig_x;u===void 0&&(u=r.x);var s=r.orig_y;return s===void 0&&(s=r.y),a.xLabel=_1.tickText(i,i.c2l(u),!0).text,a.yLabel=_1.tickText(l,l.c2l(s),!0).text,a}});var bm=pe((Fhe,HE)=>{"use strict";var ym=ot(),Au=yt(),Hee=Er();function Vee(e){var r=ym.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=ym.select(this),a=t.trace||t[0].trace;mm(n,a,e)}),r.selectAll("g.text").each(function(t){var n=ym.select(this),a=t.trace||t[0].trace;xm(n,a,e)}),r.selectAll("g.trace path.js-line").call(Au.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Au.fillGroupStyle,e,!1),Hee.getComponentMethod("errorbars","style")(r)}function mm(e,r,t){Au.pointStyle(e.selectAll("path.point"),r,t)}function xm(e,r,t){Au.textPointStyle(e.selectAll("text"),r,t)}function Gee(e,r,t){var n=r[0].trace;n.selectedpoints?(Au.selectedPointStyle(t.selectAll("path.point"),n),Au.selectedTextStyle(t.selectAll("text"),n)):(mm(t,n,e),xm(t,n,e))}HE.exports={style:Vee,stylePoints:mm,styleText:xm,styleOnSelect:Gee}});var GE=pe((Ihe,VE)=>{"use strict";var ku=Zr(),Yee=ia();VE.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&ku.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var o=t.mcc||(r.marker||{}).color,i=t.mlcc||((r.marker||{}).line||{}).color;return a=o&&ku.opacity(o)?o:i&&ku.opacity(i)&&(t.mlw||((r.marker||{}).line||{}).width)?i:"",a?ku.opacity(a)<.3?ku.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&ku.opacity(n)&&Yee.hasLines(r)&&r.line.width?n:r.fillcolor)}});var XE=pe((Nhe,WE)=>{"use strict";var w1=ir(),YE=io(),Wee=Er(),Xee=GE(),_m=Zr(),Zee=w1.fillText;WE.exports=function(r,t,n,a){var o=r.cd,i=o[0].trace,l=r.xa,u=r.ya,s=l.c2p(t),f=u.c2p(n),v=[s,f],p=i.hoveron||"",b=i.mode.indexOf("markers")!==-1?3:.5,m=!!i.xperiodalignment,w=!!i.yperiodalignment;if(p.indexOf("points")!==-1){var M=function(F){if(m){var L=l.c2p(F.xStart),P=l.c2p(F.xEnd);return s>=Math.min(L,P)&&s<=Math.max(L,P)?0:1/0}var O=Math.max(3,F.mrc||0),U=1-1/O,X=Math.abs(l.c2p(F.x)-s);return X=Math.min(L,P)&&f<=Math.max(L,P)?0:1/0}var O=Math.max(3,F.mrc||0),U=1-1/O,X=Math.abs(u.c2p(F.y)-f);return Xj!=V>=j&&(Q=K[q-1][0],ie=K[q][0],V-ee&&(ne=Q+(ie-Q)*(j-ee)/(V-ee),O=Math.min(O,ne),U=Math.max(U,ne)));return O=Math.max(O,0),U=Math.min(U,l._length),{x0:O,x1:U,y0:j,y1:j}}if(p.indexOf("fills")!==-1&&i._fillElement){var D=R(i._fillElement)&&!R(i._fillExclusionElement);if(D){var N=E(i._polygons);N===null&&(N={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var I=_m.defaultLine;return _m.opacity(i.fillcolor)?I=i.fillcolor:_m.opacity((i.line||{}).color)&&(I=i.line.color),w1.extendFlat(r,{distance:r.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:I,hovertemplate:!1}),delete r.index,i.text&&!w1.isArrayOrTypedArray(i.text)?r.text=String(i.text):r.text=i.name,[r]}}}});var KE=pe((zhe,JE)=>{"use strict";var ZE=ia();JE.exports=function(r,t){var n=r.cd,a=r.xaxis,o=r.yaxis,i=[],l=n[0].trace,u,s,f,v,p=!ZE.hasMarkers(l)&&!ZE.hasText(l);if(p)return[];if(t===!1)for(u=0;u{"use strict";QE.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var Mm=pe((Ohe,rL)=>{"use strict";var A0=Er().traceIs,wm=Wg();rL.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var o=n("type",(a.splomStash||{}).type);o==="-"&&(Jee(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function Jee(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var o=Kee(r,t,n);if(o){if(o.type==="histogram"&&n==={v:"y",h:"x"}[o.orientation||"v"]){e.type="linear";return}var i=n+"calendar",l=o[i],u={noMultiCategory:!A0(o,"cartesian")||A0(o,"noMultiCategory")};if(o.type==="box"&&o._hasPreCompStats&&n==={h:"x",v:"y"}[o.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,eL(o,n)){var s=jE(o),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(eL(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function jE(e){return{v:"x",h:"y"}[e.orientation||"v"]}function eL(e,r){var t=jE(e),n=A0(e,"box-violin"),a=A0(e._fullInput||{},"candlestick");return n&&!a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var nL=pe((Bhe,tL)=>{"use strict";var Qee=jn().isTypedArraySpec;function $ee(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,o,i;if(r.axData)a=r.axData;else for(a=[],o=0;o0||Qee(o),l;i&&(l="array");var u=n("categoryorder",l),s;u==="array"&&(s=n("categoryarray")),!i&&u==="array"&&(u=t.categoryorder="trace"),u==="trace"?t._initialCategories=[]:u==="array"?t._initialCategories=s.slice():(s=$ee(t,a).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var oL=pe((Uhe,iL)=>{"use strict";var aL=Sa().mix,jee=Ti(),ere=ir();iL.exports=function(r,t,n,a){a=a||{};var o=a.dfltColor;function i(g,c){return ere.coerce2(r,t,a.attributes,g,c)}var l=i("linecolor",o),u=i("linewidth"),s=n("showline",a.showLine||!!l||!!u);s||(delete t.linecolor,delete t.linewidth);var f=aL(o,a.bgColor,a.blend||jee.lightFraction).toRgbString(),v=i("gridcolor",f),p=i("gridwidth"),b=i("griddash"),m=n("showgrid",a.showGrid||!!v||!!p||!!b);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var w=aL(t.gridcolor,a.bgColor,67).toRgbString(),M=i("minor.gridcolor",w),y=i("minor.gridwidth",t.gridwidth||1),k=i("minor.griddash",t.griddash||"solid"),S=n("minor.showgrid",!!M||!!y||!!k);S||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var x=i("zerolinelayer"),T=i("zerolinecolor",o),d=i("zerolinewidth"),_=n("zeroline",a.showGrid||!!T||!!d);_||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var T1=pe((Hhe,vL)=>{"use strict";var lL=tt(),rre=Er(),k0=ir(),tre=gt(),nre=ei(),Tm=Ra(),sL=pg(),uL=yg(),are=bg(),ire=_g(),ore=nL(),lre=oL(),sre=v2(),fL=Rv(),M1=wn().WEEKDAY_PATTERN,ure=wn().HOUR_PATTERN;vL.exports=function(r,t,n,a,o){var i=a.letter,l=a.font||{},u=a.splomStash||{},s=n("visible",!a.visibleDflt),f=t._template||{},v=t.type||f.type||"-",p;if(v==="date"){var b=rre.getComponentMethod("calendars","handleDefaults");b(r,t,"calendar",a.calendar),a.noTicklabelmode||(p=n("ticklabelmode"))}!a.noTicklabelindex&&(v==="date"||v==="linear")&&n("ticklabelindex");var m="";(!a.noTicklabelposition||v==="multicategory")&&(m=k0.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:p==="period"?["outside","inside"]:i==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),fL(t,o),sre(r,t,n,a),ore(r,t,n,a),a.noHover||(v!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var w=n("color"),M=w!==Tm.color.dflt?w:l.color,y=u.label||o._dfltTitle[i];if(ire(r,t,n,v,a),!s)return t;n("title.text",y),k0.coerceFont(n,"title.font",l,{overrideDflt:{size:k0.bigFont(l.size),color:M}}),sL(r,t,n,v);var k=a.hasMinor;if(k&&(tre.newContainer(t,"minor"),sL(r,t,n,v,{isMinor:!0})),are(r,t,n,v,a),uL(r,t,n,a),k){var S=a.isMinor;a.isMinor=!0,uL(r,t,n,a),a.isMinor=S}lre(r,t,n,{dfltColor:w,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:k,attributes:Tm}),k&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var x=v==="multicategory";if(!a.noTickson&&(v==="category"||x)&&(t.ticks||t.showgrid)&&(x?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),x){var T=n("showdividers");T&&(n("dividercolor"),n("dividerwidth"))}if(v==="date")if(nre(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:fre}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var d=0;d=2){var i="",l,u;if(o.length===2){for(l=0;l<2;l++)if(u=cL(o[l]),u){i=M1;break}}var s=n("pattern",i);if(s===M1)for(l=0;l<2;l++)u=cL(o[l]),u&&(r.bounds[l]=o[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=o[l],s){case M1:if(!lL(u)){r.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){r.enabled=!1;return}r.bounds[l]=o[l]=u;break;case ure:if(!lL(u)){r.enabled=!1;return}if(u=+u,u<0||u>24){r.enabled=!1;return}r.bounds[l]=o[l]=u;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(o[0]>f[0]&&o[1]{"use strict";var vre=tt(),A1=ir();hL.exports=function(r,t,n,a){var o=a.counterAxes||[],i=a.overlayableAxes||[],l=a.letter,u=a.grid,s=a.overlayingDomain,f,v,p,b,m,w;u&&(v=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],v&&(p=u[l+"side"].split(" ")[0],b=u.domain[l][p==="right"||p==="top"?1:0])),v=v||[0,1],f=f||(vre(r.position)?"free":o[0]||"free"),p=p||(l==="x"?"bottom":"left"),b=b||0,m=0,w=!1;var M=A1.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:f}},"anchor"),y=A1.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:p}},"side");if(M==="free"){if(l==="y"){var k=n("autoshift");k&&(b=y==="left"?s[0]:s[1],w=t.automargin?t.automargin:!0,m=y==="left"?-3:3),n("shift",m)}n("position",b)}n("automargin",w);var S=!1;if(i.length&&(S=A1.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(i),dflt:!1}},"overlaying")),!S){var x=n("domain",v);x[0]>x[1]-1/4096&&(t.domain=v),A1.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var wL=pe((Ghe,_L)=>{"use strict";var ts=ir(),dL=Zr(),hre=to().isUnifiedHover,dre=q2(),pL=gt(),pre=Ds(),gL=Ra(),gre=Mm(),yL=T1(),yre=Wf(),mL=Am(),Sm=en(),Ui=Sm.id2name,xL=Sm.name2id,mre=wn().AX_ID_PATTERN,bL=Er(),k1=bL.traceIs,km=bL.getComponentMethod;function S1(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}_L.exports=function(r,t,n){var a=t.autotypenumbers,o={},i={},l={},u={},s={},f={},v={},p={},b={},m={},w,M;for(w=0;w{"use strict";var xre=ot(),ML=Er(),C1=ir(),ba=yt(),E1=Ct();TL.exports=function(r,t,n,a){var o=r._fullLayout;if(t.length===0){E1.redrawComponents(r);return}function i(M){var y=M.xaxis,k=M.yaxis;o._defs.select("#"+M.clipId+"> rect").call(ba.setTranslate,0,0).call(ba.setScale,1,1),M.plot.call(ba.setTranslate,y._offset,k._offset).call(ba.setScale,1,1);var S=M.plot.selectAll(".scatterlayer .trace");S.selectAll(".point").call(ba.setPointGroupScale,1,1),S.selectAll(".textpoint").call(ba.setTextPointsScale,1,1),S.call(ba.hideOutsideRangePoints,M)}function l(M,y){var k=M.plotinfo,S=k.xaxis,x=k.yaxis,T=S._length,d=x._length,_=!!M.xr1,g=!!M.yr1,c=[];if(_){var A=C1.simpleMap(M.xr0,S.r2l),h=C1.simpleMap(M.xr1,S.r2l),R=A[1]-A[0],E=h[1]-h[0];c[0]=(A[0]*(1-y)+y*h[0]-A[0])/(A[1]-A[0])*T,c[2]=T*(1-y+y*E/R),S.range[0]=S.l2r(A[0]*(1-y)+y*h[0]),S.range[1]=S.l2r(A[1]*(1-y)+y*h[1])}else c[0]=0,c[2]=T;if(g){var D=C1.simpleMap(M.yr0,x.r2l),N=C1.simpleMap(M.yr1,x.r2l),I=D[1]-D[0],F=N[1]-N[0];c[1]=(D[1]*(1-y)+y*N[1]-D[1])/(D[0]-D[1])*d,c[3]=d*(1-y+y*F/I),x.range[0]=S.l2r(D[0]*(1-y)+y*N[0]),x.range[1]=x.l2r(D[1]*(1-y)+y*N[1])}else c[1]=0,c[3]=d;E1.drawOne(r,S,{skipTitle:!0}),E1.drawOne(r,x,{skipTitle:!0}),E1.redrawComponents(r,[S._id,x._id]);var L=_?T/c[2]:1,P=g?d/c[3]:1,O=_?c[0]:0,U=g?c[1]:0,X=_?c[0]/c[2]*T:0,$=g?c[1]/c[3]*d:0,j=S._offset-X,Y=x._offset-$;k.clipRect.call(ba.setTranslate,O,U).call(ba.setScale,1/L,1/P),k.plot.call(ba.setTranslate,j,Y).call(ba.setScale,L,P),ba.setPointGroupScale(k.zoomScalePts,1/L,1/P),ba.setTextPointsScale(k.zoomScaleTxt,1/L,1/P)}var u;a&&(u=a());function s(){for(var M={},y=0;yn.duration?(s(),b=window.cancelAnimationFrame(w)):b=window.requestAnimationFrame(w)}return v=Date.now(),b=window.requestAnimationFrame(w),Promise.resolve()}});var Cm=pe(Ln=>{"use strict";var R1=ot(),kL=Er(),ns=ir(),bre=ln(),_re=yt(),SL=Tf().getModuleCalcData,Qo=en(),ui=wn(),wre=Io(),st=ns.ensureSingle;function L1(e,r,t){return ns.ensureSingle(e,r,t,function(n){n.datum(t)})}var as=ui.zindexSeparator;Ln.name="cartesian";Ln.attr=["xaxis","yaxis"];Ln.idRoot=["x","y"];Ln.idRegex=ui.idRegex;Ln.attrRegex=ui.attrRegex;Ln.attributes=$E();Ln.layoutAttributes=Ra();Ln.supplyLayoutDefaults=wL();Ln.transitionAxes=AL();Ln.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,o=t.cartesian,i=o,l={},u={},s,f,v;for(s=0;s0){var b=p.id;if(b.indexOf(as)!==-1)continue;b+=as+(s+1),p=ns.extendFlat({},p,{id:b,plot:a._cartesianlayer.selectAll(".subplot").select("."+b)})}for(var m=[],w,M=0;M1&&(T+=as+x),S.push(l+T),i=0;i1,v=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=st(n,"path","xlines-above"),r.ylines=st(n,"path","ylines-above"),r.xaxislayer=st(n,"g","xaxislayer-above"),r.yaxislayer=st(n,"g","yaxislayer-above");else{if(!i){var p=st(n,"g","layer-subplot");r.shapelayer=st(p,"g","shapelayer"),r.imagelayer=st(p,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=st(n,"g","minor-gridlayer"),r.gridlayer=st(n,"g","gridlayer"),r.zerolinelayer=st(n,"g","zerolinelayer"));var b=st(n,"g","layer-between");r.shapelayerBetween=st(b,"g","shapelayer"),r.imagelayerBetween=st(b,"g","imagelayer"),st(n,"path","xlines-below"),st(n,"path","ylines-below"),r.overlinesBelow=st(n,"g","overlines-below"),st(n,"g","xaxislayer-below"),st(n,"g","yaxislayer-below"),r.overaxesBelow=st(n,"g","overaxes-below")}r.overplot=st(n,"g","overplot"),r.plot=st(r.overplot,"g",a),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=st(n,"g","zerolinelayer-above"),i||(r.xlines=st(n,"path","xlines-above"),r.ylines=st(n,"path","ylines-above"),r.overlinesAbove=st(n,"g","overlines-above"),st(n,"g","xaxislayer-above"),st(n,"g","yaxislayer-above"),r.overaxesAbove=st(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+u),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+u))}else{var m=v.plotgroup,w=a+"-x",M=a+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,st(v.overlinesBelow,"path",w),st(v.overlinesBelow,"path",M),st(v.overaxesBelow,"g",w),st(v.overaxesBelow,"g",M),r.plot=st(v.overplot,"g",a),st(v.overlinesAbove,"path",w),st(v.overlinesAbove,"path",M),st(v.overaxesAbove,"g",w),st(v.overaxesAbove,"g",M),r.xlines=m.select(".overlines-"+l).select("."+w),r.ylines=m.select(".overlines-"+u).select("."+M),r.xaxislayer=m.select(".overaxes-"+l).select("."+w),r.yaxislayer=m.select(".overaxes-"+u).select("."+M)}i||(s||(L1(r.minorGridlayer,"g",r.xaxis._id),L1(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(y){return y[0]}).sort(Qo.idSort),L1(r.gridlayer,"g",r.xaxis._id),L1(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(y){return y[0]}).sort(Qo.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function LL(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=R1.select(this);f.remove(),RL(s,r),t[s]=!0});for(var n in r._plots)for(var a=r._plots[n],o=a.overlays||[],i=0;i{"use strict";var D1=ia();DL.exports={hasLines:D1.hasLines,hasMarkers:D1.hasMarkers,hasText:D1.hasText,isBubble:D1.isBubble,attributes:$l(),layoutAttributes:lv(),supplyDefaults:GC(),crossTraceDefaults:ZC(),supplyLayoutDefaults:KC(),calc:fm().calc,crossTraceCalc:ME(),arraysToCalcdata:g1(),plot:zE(),colorbar:OE(),formatLabels:UE(),style:bm().style,styleOnSelect:bm().styleOnSelect,hoverPoints:XE(),selectPoints:KE(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Cm(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var NL=pe((Zhe,IL)=>{"use strict";var Tre=ot(),Are=Zr(),FL=Sy(),Em=ir(),kre=Em.strScale,Sre=Em.strRotate,Cre=Em.strTranslate;IL.exports=function(r,t,n){var a=r.node(),o=FL[n.arrowhead||0],i=FL[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),s=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=o.backoff*l+n.standoff,p=i.backoff*u+n.startstandoff,b,m,w,M;if(a.nodeName==="line"){b={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var y=b.x-m.x,k=b.y-m.y;if(w=Math.atan2(k,y),M=w+Math.PI,v&&p&&v+p>Math.sqrt(y*y+k*k)){D();return}if(v){if(v*v>y*y+k*k){D();return}var S=v*Math.cos(w),x=v*Math.sin(w);m.x+=S,m.y+=x,r.attr({x2:m.x,y2:m.y})}if(p){if(p*p>y*y+k*k){D();return}var T=p*Math.cos(w),d=p*Math.sin(w);b.x-=T,b.y-=d,r.attr({x1:b.x,y1:b.y})}}else if(a.nodeName==="path"){var _=a.getTotalLength(),g="";if(_{"use strict";var zL=ot(),Lm=Er(),Ere=ln(),jo=ir(),Rm=jo.strTranslate,C0=Ct(),is=Zr(),fo=yt(),qL=io(),Dm=Yn(),Pm=Vo(),S0=ti(),Lre=gt().arrayEditor,Rre=NL();UL.exports={draw:Dre,drawOne:OL,drawRaw:BL};function Dre(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ye="right":Ye="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ye]}for(var ee=!1,V=["x","y"],re=0;re1)&&(ue===te?(Re=de.r2fraction(r["a"+H]),(Re<0||Re>1)&&(ee=!0)):ee=!0),Ne=de._offset+de.r2p(r[H]),we=.5}else{var ce=me==="domain";H==="x"?(ge=r[H],Ne=ce?de._offset+de._length*ge:Ne=l.l+l.w*ge):(ge=1-r[H],Ne=ce?de._offset+de._length*ge:Ne=l.t+l.h*ge),we=r.showarrow?.5:ge}if(r.showarrow){Se.head=Ne;var he=r["a"+H];if(Me=Ae*ie(.5,r.xanchor)-ve*ie(.5,r.yanchor),ue===te){var ye=C0.getRefType(ue);ye==="domain"?(H==="y"&&(he=1-he),Se.tail=de._offset+de._length*he):ye==="paper"?H==="y"?(he=1-he,Se.tail=l.t+l.h*he):Se.tail=l.l+l.w*he:Se.tail=de._offset+de.r2p(he),Be=Me}else Se.tail=Ne+he,Be=Me+he;Se.text=Se.tail+Me;var Ce=i[H==="x"?"width":"height"];if(te==="paper"&&(Se.head=jo.constrain(Se.head,1,Ce-1)),ue==="pixel"){var ze=-Math.max(Se.tail-3,Se.text),qe=Math.min(Se.tail+3,Se.text)-Ce;ze>0?(Se.tail+=ze,Se.text+=ze):qe>0&&(Se.tail-=qe,Se.text-=qe)}Se.tail+=Pe,Se.head+=Pe}else Me=Te*ie(we,Ee),Be=Me,Se.text=Ne+Me;Se.text+=Pe,Me+=Pe,Be+=Pe,r["_"+H+"padplus"]=Te/2+Be,r["_"+H+"padminus"]=Te/2-Be,r["_"+H+"size"]=Te,r["_"+H+"shift"]=Me}if(ee){_.remove();return}var $e=0,We=0;if(r.align!=="left"&&($e=(q-j)*(r.align==="center"?.5:1)),r.valign!=="top"&&(We=(K-Y)*(r.valign==="middle"?.5:1)),X)U.select("svg").attr({x:A+$e-1,y:A+We}).call(fo.setClipUrl,R?w:null,e);else{var Ue=A+We-$.top,Ge=A+$e-$.left;I.call(Dm.positionText,Ge,Ue).call(fo.setClipUrl,R?w:null,e)}E.select("rect").call(fo.setRect,A,A,q,K),h.call(fo.setRect,g/2,g/2,ne-g,Q-g),_.call(fo.setTranslate,Math.round(M.x.text-ne/2),Math.round(M.y.text-Q/2)),S.attr({transform:"rotate("+y+","+M.x.text+","+M.y.text+")"});var _e=function(Ke,Ye){k.selectAll(".annotation-arrow-g").remove();var ar=M.x.head,se=M.y.head,J=M.x.tail+Ke,ae=M.y.tail+Ye,Le=M.x.text+Ke,He=M.y.text+Ye,je=jo.rotationXYMatrix(y,Le,He),nr=jo.apply2DTransform(je),fr=jo.apply2DTransform2(je),br=+h.attr("width"),Sr=+h.attr("height"),Mr=Le-.5*br,Ar=Mr+br,nt=He-.5*Sr,Yr=nt+Sr,mr=[[Mr,nt,Mr,Yr],[Mr,Yr,Ar,Yr],[Ar,Yr,Ar,nt],[Ar,nt,Mr,nt]].map(fr);if(!mr.reduce(function(at,It){return at^!!jo.segmentsIntersect(ar,se,ar+1e6,se+1e6,It[0],It[1],It[2],It[3])},!1)){mr.forEach(function(at){var It=jo.segmentsIntersect(J,ae,ar,se,at[0],at[1],at[2],at[3]);It&&(J=It.x,ae=It.y)});var ct=r.arrowwidth,Cr=r.arrowcolor,Ur=r.arrowside,xt=k.append("g").style({opacity:is.opacity(Cr)}).classed("annotation-arrow-g",!0),zr=xt.append("path").attr("d","M"+J+","+ae+"L"+ar+","+se).style("stroke-width",ct+"px").call(is.stroke,is.rgb(Cr));if(Rre(zr,Ur,r),u.annotationPosition&&zr.node().parentNode&&!n){var Hr=ar,Ot=se;if(r.standoff){var Lt=Math.sqrt(Math.pow(ar-J,2)+Math.pow(se-ae,2));Hr+=r.standoff*(J-ar)/Lt,Ot+=r.standoff*(ae-se)/Lt}var yn=xt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(J-Hr)+","+(ae-Ot),transform:Rm(Hr,Ot)}).style("stroke-width",ct+6+"px").call(is.stroke,"rgba(0,0,0,0)").call(is.fill,"rgba(0,0,0,0)"),Gt,Rt;S0.init({element:yn.node(),gd:e,prepFn:function(){var at=fo.getTranslate(_);Gt=at.x,Rt=at.y,a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0)},moveFn:function(at,It){var va=nr(Gt,Rt),Kn=va[0]+at,Fn=va[1]+It;_.call(fo.setTranslate,Kn,Fn),b("x",$o(a,at,"x",l,r)),b("y",$o(o,It,"y",l,r)),r.axref===r.xref&&b("ax",$o(a,at,"ax",l,r)),r.ayref===r.yref&&b("ay",$o(o,It,"ay",l,r)),xt.attr("transform",Rm(at,It)),S.attr({transform:"rotate("+y+","+Kn+","+Fn+")"})},doneFn:function(){Lm.call("_guiRelayout",e,m());var at=document.querySelector(".js-notes-box-panel");at&&at.redraw(at.selectedObj)}})}}};if(r.showarrow&&_e(0,0),x){var De;S0.init({element:_.node(),gd:e,prepFn:function(){De=S.attr("transform")},moveFn:function(Ke,Ye){var ar="pointer";if(r.showarrow)r.axref===r.xref?b("ax",$o(a,Ke,"ax",l,r)):b("ax",r.ax+Ke),r.ayref===r.yref?b("ay",$o(o,Ye,"ay",l.w,r)):b("ay",r.ay+Ye),_e(Ke,Ye);else{if(n)return;var se,J;if(a)se=$o(a,Ke,"x",l,r);else{var ae=r._xsize/l.w,Le=r.x+(r._xshift-r.xshift)/l.w-ae/2;se=S0.align(Le+Ke/l.w,ae,0,1,r.xanchor)}if(o)J=$o(o,Ye,"y",l,r);else{var He=r._ysize/l.h,je=r.y-(r._yshift+r.yshift)/l.h-He/2;J=S0.align(je-Ye/l.h,He,0,1,r.yanchor)}b("x",se),b("y",J),(!a||!o)&&(ar=S0.getCursor(a?.5:se,o?.5:J,r.xanchor,r.yanchor))}S.attr({transform:Rm(Ke,Ye)+De}),Pm(_,ar)},clickFn:function(Ke,Ye){r.captureevents&&e.emit("plotly_clickannotation",d(Ye))},doneFn:function(){Pm(_),Lm.call("_guiRelayout",e,m());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}u.annotationText?I.call(Dm.makeEditable,{delegate:_,gd:e}).call(F).on("edit",function(P){r.text=P,this.call(F),b("text",P),a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0),Lm.call("_guiRelayout",e,m())}):I.call(F)}});var XL=pe((Khe,WL)=>{"use strict";var HL=ir(),Pre=Er(),VL=gt().arrayEditor;WL.exports={hasClickToShow:Fre,onClick:Ire};function Fre(e,r){var t=YL(e,r);return t.on.length>0||t.explicitOff.length>0}function Ire(e,r){var t=YL(e,r),n=t.on,a=t.off.concat(t.explicitOff),o={},i=e._fullLayout.annotations,l,u;if(n.length||a.length){for(l=0;l{"use strict";var Fm=ir(),Su=Zr();ZL.exports=function(r,t,n,a){a("opacity");var o=a("bgcolor"),i=a("bordercolor"),l=Su.opacity(i);a("borderpad");var u=a("borderwidth"),s=a("showarrow");a("text",s?" ":n._dfltTitle.annotation),a("textangle"),Fm.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),s){var v=a("arrowside"),p,b;v.indexOf("end")!==-1&&(p=a("arrowhead"),b=a("arrowsize")),v.indexOf("start")!==-1&&(a("startarrowhead",p),a("startarrowsize",b)),a("arrowcolor",l?t.bordercolor:Su.defaultLine),a("arrowwidth",(l&&u||1)*2),a("standoff"),a("startstandoff")}var m=a("hovertext"),w=n.hoverlabel||{};if(m){var M=a("hoverlabel.bgcolor",w.bgcolor||(Su.opacity(o)?Su.rgb(o):Su.defaultLine)),y=a("hoverlabel.bordercolor",w.bordercolor||Su.contrast(M)),k=Fm.extendFlat({},w.font);k.color||(k.color=y),Fm.coerceFont(a,"hoverlabel.font",k)}a("captureevents",!!m)}});var KL=pe(($he,JL)=>{"use strict";var Nm=ir(),os=Ct(),Nre=ei(),zre=Im(),qre=yu();JL.exports=function(r,t){Nre(r,t,{name:"annotations",handleItemDefaults:Ore})};function Ore(e,r,t){function n(S,x){return Nm.coerce(e,r,qre,S,x)}var a=n("visible"),o=n("clicktoshow");if(a||o){zre(e,r,t,n);for(var i=r.showarrow,l=["x","y"],u=[-10,-30],s={_fullLayout:t},f=0;f<2;f++){var v=l[f],p=os.coerceRef(e,r,s,v,"","paper");if(p!=="paper"){var b=os.getFromId(s,p);b._annIndices.push(r._index)}if(os.coercePosition(r,s,n,p,v,.5),i){var m="a"+v,w=os.coerceRef(e,r,s,m,"pixel",["pixel","paper"]);w!=="pixel"&&w!==p&&(w=r[m]="pixel");var M=w==="pixel"?u[f]:.4;os.coercePosition(r,s,n,w,m,M)}n(v+"anchor"),n(v+"shift")}if(Nm.noneOrAll(e,r,["x","y"]),i&&Nm.noneOrAll(e,r,["ax","ay"]),o){var y=n("xclick"),k=n("yclick");r._xclick=y===void 0?r.x:os.cleanPosition(y,s,r.xref),r._yclick=k===void 0?r.y:os.cleanPosition(k,s,r.yref)}}}});var jL=pe((jhe,$L)=>{"use strict";var zm=ir(),ls=Ct(),Bre=P1().draw;$L.exports=function(r){var t=r._fullLayout,n=zm.filterVisible(t.annotations);if(n.length&&r._fullData.length)return zm.syncOrAsync([Bre,Ure],r)};function Ure(e){var r=e._fullLayout;zm.filterVisible(r.annotations).forEach(function(t){var n=ls.getFromId(e,t.xref),a=ls.getFromId(e,t.yref),o=ls.getRefType(t.xref),i=ls.getRefType(t.yref);t._extremes={},o==="range"&&QL(t,n),i==="range"&&QL(t,a)})}function QL(e,r){var t=r._id,n=t.charAt(0),a=e[n],o=e["a"+n],i=e[n+"ref"],l=e["a"+n+"ref"],u=e["_"+n+"padplus"],s=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],v=3*e.arrowsize*e.arrowwidth||0,p=v+f,b=v-f,m=3*e.startarrowsize*e.arrowwidth||0,w=m+f,M=m-f,y;if(l===i){var k=ls.findExtremes(r,[r.r2c(a)],{ppadplus:p,ppadminus:b}),S=ls.findExtremes(r,[r.r2c(o)],{ppadplus:Math.max(u,w),ppadminus:Math.max(s,M)});y={min:[k.min[0],S.min[0]],max:[k.max[0],S.max[0]]}}else w=o?w+o:w,M=o?M-o:M,y=ls.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(u,p,w),ppadminus:Math.max(s,b,M)});e._extremes[t]=y}});var rR=pe((e1e,eR)=>{"use strict";var Hre=tt(),Vre=Cc();eR.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(!(o||i))return;var l=r._fullLayout.annotations,u=t._id.charAt(0),s,f;function v(b){var m=s[b],w=null;o?w=Vre(m,t.range):w=Math.pow(10,m),Hre(w)||(w=null),a(f+b,w)}for(var p=0;p{"use strict";var qm=P1(),tR=XL();nR.exports={moduleType:"component",name:"annotations",layoutAttributes:yu(),supplyLayoutDefaults:KL(),includeBasePlot:u0()("annotations"),calcAutorange:jL(),draw:qm.draw,drawOne:qm.drawOne,drawRaw:qm.drawRaw,hasClickToShow:tR.hasClickToShow,onClick:tR.onClick,convertCoords:rR()}});var F1=pe((t1e,iR)=>{"use strict";var wt=yu(),Gre=zn().overrideAll,Yre=gt().templatedArray;iR.exports=Gre(Yre("annotation",{visible:wt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:wt.xanchor,xshift:wt.xshift,yanchor:wt.yanchor,yshift:wt.yshift,text:wt.text,textangle:wt.textangle,font:wt.font,width:wt.width,height:wt.height,opacity:wt.opacity,align:wt.align,valign:wt.valign,bgcolor:wt.bgcolor,bordercolor:wt.bordercolor,borderpad:wt.borderpad,borderwidth:wt.borderwidth,showarrow:wt.showarrow,arrowcolor:wt.arrowcolor,arrowhead:wt.arrowhead,startarrowhead:wt.startarrowhead,arrowside:wt.arrowside,arrowsize:wt.arrowsize,startarrowsize:wt.startarrowsize,arrowwidth:wt.arrowwidth,standoff:wt.standoff,startstandoff:wt.startstandoff,hovertext:wt.hovertext,hoverlabel:wt.hoverlabel,captureevents:wt.captureevents}),"calc","from-root")});var lR=pe((n1e,oR)=>{"use strict";var Om=ir(),Wre=Ct(),Xre=ei(),Zre=Im(),Jre=F1();oR.exports=function(r,t,n){Xre(r,t,{name:"annotations",handleItemDefaults:Kre,fullLayout:n.fullLayout})};function Kre(e,r,t,n){function a(l,u){return Om.coerce(e,r,Jre,l,u)}function o(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],Wre.coercePosition(r,s,a,l,l,.5)}var i=a("visible");i&&(Zre(e,r,n.fullLayout,a),o("x"),o("y"),o("z"),Om.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),Om.noneOrAll(e,r,["ax","ay"])))}});var cR=pe((a1e,fR)=>{"use strict";var sR=ir(),uR=Ct();fR.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function Bm(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function $re(e,r){var t=Bm(e.projection,Bm(e.view,Bm(e.model,[r[0],r[1],r[2],1])));return t}vR.exports=$re});var dR=pe((o1e,hR)=>{"use strict";var jre=P1().drawRaw,ete=Um(),rte=["x","y","z"];hR.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,o=0;o1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+o+'"]').remove():(i._pdata=ete(r.glplot.cameraParams,[t.xaxis.r2l(i.x)*n[0],t.yaxis.r2l(i.y)*n[1],t.zaxis.r2l(i.z)*n[2]]),jre(r.graphDiv,i,o,r.id,i._xa,i._ya))}}});var yR=pe((l1e,gR)=>{"use strict";var tte=Er(),pR=ir();gR.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:F1()}}},layoutAttributes:F1(),handleDefaults:lR(),includeBasePlot:nte,convert:cR(),draw:dR()};function nte(e,r){var t=tte.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),o=0;o{"use strict";var mR=yu(),xR=kn(),bR=$l().line,ate=Ao().dash,fi=Mt().extendFlat,ite=gt().templatedArray,s1e=s0(),Cu=Sn(),ote=ha().shapeTexttemplateAttrs,lte=Oc();_R.exports=ite("shape",{visible:fi({},Cu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:fi({},Cu.legend,{editType:"calc+arraydraw"}),legendgroup:fi({},Cu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:fi({},Cu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:xR({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:fi({},Cu.legendrank,{editType:"calc+arraydraw"}),legendwidth:fi({},Cu.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:fi({},mR.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:fi({},mR.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:fi({},bR.color,{editType:"arraydraw"}),width:fi({},bR.width,{editType:"calc+arraydraw"}),dash:fi({},ate,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:ote({},{keys:Object.keys(lte)}),font:xR({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var TR=pe((f1e,MR)=>{"use strict";var E0=ir(),Eu=Ct(),ste=ei(),ute=Hm(),wR=Wo();MR.exports=function(r,t){ste(r,t,{name:"shapes",handleItemDefaults:cte})};function fte(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function cte(e,r,t){function n(P,O){return E0.coerce(e,r,ute,P,O)}r._isShape=!0;var a=n("visible");if(a){var o=n("showlegend");o&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),E0.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var i=n("path"),l=i?"path":"rect",u=n("type",l),s=u!=="path";s&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));for(var v=n("xsizemode"),p=n("ysizemode"),b=["x","y"],m=0;m<2;m++){var w=b[m],M=w+"anchor",y=w==="x"?v:p,k={_fullLayout:t},S,x,T,d=Eu.coerceRef(e,r,k,w,void 0,"paper"),_=Eu.getRefType(d);if(_==="range"?(S=Eu.getFromId(k,d),S._shapeIndices.push(r._index),T=wR.rangeToShapePosition(S),x=wR.shapePositionToRange(S),(S.type==="category"||S.type==="multicategory")&&(n(w+"0shift"),n(w+"1shift"))):x=T=E0.identity,s){var g=.25,c=.75,A=w+"0",h=w+"1",R=e[A],E=e[h];e[A]=x(e[A],!0),e[h]=x(e[h],!0),y==="pixel"?(n(A,0),n(h,10)):(Eu.coercePosition(r,k,n,d,A,g),Eu.coercePosition(r,k,n,d,h,c)),r[A]=T(r[A]),r[h]=T(r[h]),e[A]=R,e[h]=E}if(y==="pixel"){var D=e[M];e[M]=x(e[M],!0),Eu.coercePosition(r,k,n,d,M,.25),r[M]=T(r[M]),e[M]=D}}s&&E0.noneOrAll(e,r,["x0","x1","y0","y1"]);var N=u==="line",I,F;if(s&&(I=n("label.texttemplate")),I||(F=n("label.text")),F||I){n("label.textangle");var L=n("label.textposition",N?"middle":"middle center");n("label.xanchor"),n("label.yanchor",fte(N,L)),n("label.padding"),E0.coerceFont(n,"label.font",t.font)}}}});var SR=pe((c1e,kR)=>{"use strict";var vte=Zr(),AR=ir();function hte(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}kR.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),AR.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var o=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",vte.contrast(o)),n("newshape.line.dash")}var i=r.dragmode==="drawline",l=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(l||u){n("newshape.label.textangle");var s=n("newshape.label.textposition",i?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",hte(i,s)),n("newshape.label.padding"),AR.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var DR=pe((v1e,RR)=>{"use strict";var Vm=ir(),Lu=Ct(),Ru=Hf(),ER=Wo();RR.exports=function(r){var t=r._fullLayout,n=Vm.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a0?s+i:i;return{ppad:i,ppadplus:l?v:p,ppadminus:l?p:v}}else return{ppad:i}}function CR(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",o,i,l=0,u=0,s=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(o=r[n+"0"],i=r[n+"1"],a&&(l=r[n+"0shift"],u=r[n+"1shift"])):(o=r[n+"anchor"],i=r[n+"anchor"]),o!==void 0)return[s(o)+l,s(i)+u];if(r.path){var v=1/0,p=-1/0,b=r.path.match(Ru.segmentRE),m,w,M,y,k;for(e.type==="date"&&(s=ER.decodeDate(s)),m=0;mp&&(p=k)));if(p>=v)return[v,p]}}});var IR=pe((h1e,FR)=>{"use strict";var PR=Th();FR.exports={moduleType:"component",name:"shapes",layoutAttributes:Hm(),supplyLayoutDefaults:TR(),supplyDrawNewShapeDefaults:SR(),includeBasePlot:u0()("shapes"),calcAutorange:DR(),draw:PR.draw,drawOne:PR.drawOne}});var Gm=pe((p1e,zR)=>{"use strict";var NR=wn(),gte=gt().templatedArray,d1e=s0();zR.exports=gte("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",NR.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",NR.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var OR=pe((g1e,qR)=>{"use strict";var yte=ir(),Ym=Ct(),mte=ei(),xte=Gm(),bte="images";qR.exports=function(r,t){var n={name:bte,handleItemDefaults:_te};mte(r,t,n)};function _te(e,r,t){function n(p,b){return yte.coerce(e,r,xte,p,b)}var a=n("source"),o=n("visible",!!a);if(!o)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var i={_fullLayout:t},l=["x","y"],u=0;u<2;u++){var s=l[u],f=Ym.coerceRef(e,r,i,s,"paper",void 0);if(f!=="paper"){var v=Ym.getFromId(i,f);v._imgIndices.push(r._index)}Ym.coercePosition(r,i,n,f,s,0)}return r}});var VR=pe((y1e,HR)=>{"use strict";var BR=ot(),wte=yt(),Du=Ct(),UR=en(),Mte=Io();HR.exports=function(r){var t=r._fullLayout,n=[],a={},o=[],i,l;for(l=0;l{"use strict";var GR=tt(),Tte=Cc();YR.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(o||i){for(var l=r._fullLayout.images,u=t._id.charAt(0),s,f,v=0;v{"use strict";XR.exports={moduleType:"component",name:"images",layoutAttributes:Gm(),supplyLayoutDefaults:OR(),includeBasePlot:u0()("images"),draw:VR(),convertCoords:WR()}});var I1=pe((b1e,JR)=>{"use strict";JR.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var Wm=pe((_1e,QR)=>{"use strict";var Ate=kn(),kte=Ti(),Ste=Mt().extendFlat,Cte=zn().overrideAll,Ete=Bc(),KR=gt().templatedArray,Lte=KR("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});QR.exports=Cte(KR("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Lte,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Ste(Ete({editType:"arraydraw"}),{}),font:Ate({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:kte.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var rD=pe((w1e,eD)=>{"use strict";var N1=ir(),$R=ei(),jR=Wm(),Rte=I1(),Dte=Rte.name,Pte=jR.buttons;eD.exports=function(r,t){var n={name:Dte,handleItemDefaults:Fte};$R(r,t,n)};function Fte(e,r,t){function n(i,l){return N1.coerce(e,r,jR,i,l)}var a=$R(e,r,{name:"buttons",handleItemDefaults:Ite}),o=n("visible",a.length>0);o&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),N1.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),N1.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Ite(e,r){function t(a,o){return N1.coerce(e,r,Pte,a,o)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var aD=pe((M1e,nD)=>{"use strict";nD.exports=Dt;var ci=ot(),tD=Zr(),Pu=yt(),z1=ir();function Dt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Dt.barWidth=2;Dt.barLength=20;Dt.barRadius=2;Dt.barPad=1;Dt.barColor="#808BA4";Dt.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,o=a.width,i=a.height;this.position=r;var l=this.position.l,u=this.position.w,s=this.position.t,f=this.position.h,v=this.position.direction,p=v==="down",b=v==="left",m=v==="right",w=v==="up",M=u,y=f,k,S,x,T;!p&&!b&&!m&&!w&&(this.position.direction="down",p=!0);var d=p||w;d?(k=l,S=k+M,p?(x=s,T=Math.min(x+y,i),y=T-x):(T=s+y,x=Math.max(T-y,0),y=T-x)):(x=s,T=x+y,b?(S=l+M,k=Math.max(S-M,0),M=S-k):(k=l,S=Math.min(k+M,o),M=S-k)),this._box={l:k,t:x,w:M,h:y};var _=u>M,g=Dt.barLength+2*Dt.barPad,c=Dt.barWidth+2*Dt.barPad,A=l,h=s+f;h+c>i&&(h=i-c);var R=this.container.selectAll("rect.scrollbar-horizontal").data(_?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(tD.fill,Dt.barColor),_?(this.hbar=R.attr({rx:Dt.barRadius,ry:Dt.barRadius,x:A,y:h,width:g,height:c}),this._hbarXMin=A+g/2,this._hbarTranslateMax=M-g):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=f>y,D=Dt.barWidth+2*Dt.barPad,N=Dt.barLength+2*Dt.barPad,I=l+u,F=s;I+D>o&&(I=o-D);var L=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-vertical",!0).call(tD.fill,Dt.barColor),E?(this.vbar=L.attr({rx:Dt.barRadius,ry:Dt.barRadius,x:I,y:F,width:D,height:N}),this._vbarYMin=F+N/2,this._vbarTranslateMax=y-N):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var P=this.id,O=k-.5,U=E?S+D+.5:S+.5,X=x-.5,$=_?T+c+.5:T+.5,j=a._topdefs.selectAll("#"+P).data(_||E?[0]:[]);if(j.exit().remove(),j.enter().append("clipPath").attr("id",P).append("rect"),_||E?(this._clipRect=j.select("rect").attr({x:Math.floor(O),y:Math.floor(X),width:Math.ceil(U)-Math.floor(O),height:Math.ceil($)-Math.floor(X)}),this.container.call(Pu.setClipUrl,P,this.gd),this.bg.attr({x:l,y:s,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Pu.setClipUrl,null),delete this._clipRect),_||E){var Y=ci.behavior.drag().on("dragstart",function(){ci.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Y);var q=ci.behavior.drag().on("dragstart",function(){ci.event.sourceEvent.preventDefault(),ci.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));_&&this.hbar.on(".drag",null).call(q),E&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,n)};Dt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Pu.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Dt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=ci.event.dx),this.vbar&&(t-=ci.event.dy),this.setTranslate(r,t)};Dt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=ci.event.deltaY),this.vbar&&(t+=ci.event.deltaY),this.setTranslate(r,t)};Dt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,o=z1.constrain(ci.event.x,n,a),i=(o-n)/(a-n),l=this.position.w-this._box.w;r=i*l}if(this.vbar){var u=t+this._vbarYMin,s=u+this._vbarTranslateMax,f=z1.constrain(ci.event.y,u,s),v=(f-u)/(s-u),p=this.position.h-this._box.h;t=v*p}this.setTranslate(r,t)};Dt.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=z1.constrain(r||0,0,n),t=z1.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Pu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var o=r/n;this.hbar.call(Pu.setTranslate,r+o*this._hbarTranslateMax,t)}if(this.vbar){var i=t/a;this.vbar.call(Pu.setTranslate,r,t+i*this._vbarTranslateMax)}}});var dD=pe((T1e,hD)=>{"use strict";var Fu=ot(),L0=ln(),R0=Zr(),Iu=yt(),_a=ir(),q1=Yn(),Nte=gt().arrayEditor,oD=qn().LINE_SPACING,Dr=I1(),zte=aD();hD.exports=function(r){var t=r._fullLayout,n=_a.filterVisible(t[Dr.name]);function a(p){L0.autoMargin(r,cD(p))}var o=t._menulayer.selectAll("g."+Dr.containerClassName).data(n.length>0?[0]:[]);if(o.enter().append("g").classed(Dr.containerClassName,!0).style("cursor","pointer"),o.exit().each(function(){Fu.select(this).selectAll("g."+Dr.headerGroupClassName).each(a)}).remove(),n.length!==0){var i=o.selectAll("g."+Dr.headerGroupClassName).data(n,qte);i.enter().append("g").classed(Dr.headerGroupClassName,!0);for(var l=_a.ensureSingle(o,"g",Dr.dropdownButtonGroupClassName,function(p){p.style("pointer-events","all")}),u=0;u{"use strict";var Yte=I1();pD.exports={moduleType:"component",name:Yte.name,layoutAttributes:Wm(),supplyLayoutDefaults:rD(),draw:dD()}});var P0=pe((k1e,yD)=>{"use strict";yD.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var Km=pe((S1e,bD)=>{"use strict";var mD=kn(),Wte=Bc(),Xte=Mt().extendDeepAll,Zte=zn().overrideAll,Jte=hf(),xD=gt().templatedArray,ss=P0(),Kte=xD("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});bD.exports=Zte(xD("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Kte,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Xte(Wte({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Jte.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:mD({})},font:mD({}),activebgcolor:{valType:"color",dflt:ss.gripBgActiveColor},bgcolor:{valType:"color",dflt:ss.railBgColor},bordercolor:{valType:"color",dflt:ss.railBorderColor},borderwidth:{valType:"number",min:0,dflt:ss.railBorderWidth},ticklen:{valType:"number",min:0,dflt:ss.tickLength},tickcolor:{valType:"color",dflt:ss.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:ss.minorTickLength}}),"arraydraw","from-root")});var TD=pe((C1e,MD)=>{"use strict";var Nu=ir(),_D=ei(),wD=Km(),Qte=P0(),$te=Qte.name,jte=wD.steps;MD.exports=function(r,t){_D(r,t,{name:$te,handleItemDefaults:ene})};function ene(e,r,t){function n(v,p){return Nu.coerce(e,r,wD,v,p)}for(var a=_D(e,r,{name:"steps",handleItemDefaults:rne}),o=0,i=0;i{"use strict";var vi=ot(),O1=ln(),el=Zr(),hi=yt(),wa=ir(),tne=wa.strTranslate,F0=Yn(),nne=gt().arrayEditor,Gr=P0(),jm=qn(),SD=jm.LINE_SPACING,Qm=jm.FROM_TL,$m=jm.FROM_BR;PD.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=ane(n,r),o=n._infolayer.selectAll("g."+Gr.containerClassName).data(a.length>0?[0]:[]);o.enter().append("g").classed(Gr.containerClassName,!0).style("cursor",t?null:"ew-resize");function i(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),O1.autoMargin(r,CD(f))}if(o.exit().each(function(){vi.select(this).selectAll("g."+Gr.groupClassName).each(i)}).remove(),a.length!==0){var l=o.selectAll("g."+Gr.groupClassName).data(a,ine);l.enter().append("g").classed(Gr.groupClassName,!0),l.exit().each(i).remove();for(var u=0;u0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",tne(i-Gr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function e3(e,r){var t=e._dims;return t.inputAreaStart+Gr.stepInset+(t.inputAreaLength-2*Gr.stepInset)*Math.min(1,Math.max(0,r))}function kD(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Gr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Gr.stepInset-2*t.inputAreaStart)))}function vne(e,r,t){var n=t._dims,a=wa.ensureSingle(e,"rect",Gr.railTouchRectClass,function(o){o.call(RD,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Gr.tickOffset+t.ticklen+n.labelHeight)}).call(el.fill,t.bgcolor).attr("opacity",0),hi.setTranslate(a,0,n.currentValueTotalHeight)}function hne(e,r){var t=r._dims,n=t.inputAreaLength-Gr.railInset*2,a=wa.ensureSingle(e,"rect",Gr.railRectClass);a.attr({width:n,height:Gr.railWidth,rx:Gr.railRadius,ry:Gr.railRadius,"shape-rendering":"crispEdges"}).call(el.stroke,r.bordercolor).call(el.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),hi.setTranslate(a,Gr.railInset,(t.inputAreaWidth-Gr.railWidth)*.5+t.currentValueTotalHeight)}});var ND=pe((L1e,ID)=>{"use strict";var dne=P0();ID.exports={moduleType:"component",name:dne.name,layoutAttributes:Km(),supplyLayoutDefaults:TD(),draw:FD()}});var U1=pe((R1e,qD)=>{"use strict";var zD=Ti();qD.exports={bgcolor:{valType:"color",dflt:zD.background,editType:"plot"},bordercolor:{valType:"color",dflt:zD.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var r3=pe((D1e,OD)=>{"use strict";OD.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var H1=pe((P1e,BD)=>{"use strict";BD.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var VD=pe(G1=>{"use strict";var pne=en(),gne=Yn(),UD=H1(),yne=qn().LINE_SPACING,V1=UD.name;function HD(e){var r=e&&e[V1];return r&&r.visible}G1.isVisible=HD;G1.makeData=function(e){for(var r=pne.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var Y1=ir(),GD=gt(),YD=en(),mne=U1(),xne=r3();WD.exports=function(r,t,n){var a=r[n],o=t[n];if(!(a.rangeslider||t._requestRangeslider[o._id]))return;Y1.isPlainObject(a.rangeslider)||(a.rangeslider={});var i=a.rangeslider,l=GD.newContainer(o,"rangeslider");function u(T,d){return Y1.coerce(i,l,mne,T,d)}var s,f;function v(T,d){return Y1.coerce(s,f,xne,T,d)}var p=u("visible");if(p){u("bgcolor",t.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!o.isValidRange(i.range)),u("range");var b=t._subplots;if(b)for(var m=b.cartesian.filter(function(T){return T.substr(0,T.indexOf("y"))===YD.name2id(n)}).map(function(T){return T.substr(T.indexOf("y"),T.length)}),w=Y1.simpleMap(m,YD.id2name),M=0;M{"use strict";var bne=en().list,_ne=$s().getAutoRange,wne=H1();ZD.exports=function(r){for(var t=bne(r,"x",!0),n=0;n{"use strict";var W1=ot(),Mne=Er(),Tne=ln(),qt=ir(),X1=qt.strTranslate,QD=yt(),rl=Zr(),Ane=Lf(),kne=Cm(),t3=en(),Sne=ti(),Cne=Vo(),Qr=H1();$D.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=L.max)I=h[F+1];else if(N=L.pmax)I=h[F+1];else if(N0?e.touches[0].clientX:0}function Ene(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Qr.slideBoxClassName).node(),o=e.select("rect."+Qr.grabAreaMinClassName).node(),i=e.select("rect."+Qr.grabAreaMaxClassName).node();function l(){var u=W1.event,s=u.target,f=KD(u),v=f-e.node().getBoundingClientRect().left,p=n.d2p(t._rl[0]),b=n.d2p(t._rl[1]),m=Sne.coverSlip();this.addEventListener("touchmove",w),this.addEventListener("touchend",M),m.addEventListener("mousemove",w),m.addEventListener("mouseup",M);function w(y){var k=KD(y),S=+k-f,x,T,d;switch(s){case a:if(d="ew-resize",p+S>t._length||b+S<0)return;x=p+S,T=b+S;break;case o:if(d="col-resize",p+S>t._length)return;x=p+S,T=b;break;case i:if(d="col-resize",b+S<0)return;x=p,T=b+S;break;default:d="ew-resize",x=v,T=v+S;break}if(T{"use strict";var One=ir(),Bne=U1(),Une=r3(),n3=VD();eP.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:One.extendFlat({},Bne,{yaxis:Une})}}},layoutAttributes:U1(),handleDefaults:XD(),calcAutorange:JD(),draw:jD(),isVisible:n3.isVisible,makeData:n3.makeData,autoMarginOpts:n3.autoMarginOpts}});var Z1=pe((O1e,nP)=>{"use strict";var Hne=kn(),tP=Ti(),Vne=gt().templatedArray,Gne=Vne("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});nP.exports={visible:{valType:"boolean",editType:"plot"},buttons:Gne,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Hne({editType:"plot"}),bgcolor:{valType:"color",dflt:tP.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:tP.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var a3=pe((B1e,aP)=>{"use strict";aP.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var lP=pe((U1e,oP)=>{"use strict";var J1=ir(),Yne=Zr(),Wne=gt(),Xne=ei(),iP=Z1(),i3=a3();oP.exports=function(r,t,n,a,o){var i=r.rangeselector||{},l=Wne.newContainer(t,"rangeselector");function u(b,m){return J1.coerce(i,l,iP,b,m)}var s=Xne(i,l,{name:"buttons",handleItemDefaults:Zne,calendar:o}),f=u("visible",s.length>0);if(f){var v=Jne(t,n,a);u("x",v[0]),u("y",v[1]),J1.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),J1.coerceFont(u,"font",n.font);var p=u("bgcolor");u("activecolor",Yne.contrast(p,i3.lightAmount,i3.darkAmount)),u("bordercolor"),u("borderwidth")}};function Zne(e,r,t,n){var a=n.calendar;function o(u,s){return J1.coerce(e,r,iP.buttons,u,s)}var i=o("visible");if(i){var l=o("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":o("stepmode"),o("count")),o("label")}}function Jne(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,o=0;o{"use strict";var Kne=ip(),Qne=ir().titleCase;sP.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var o=$ne(r,t);a[n+".range[0]"]=o[0],a[n+".range[1]"]=o[1]}return a};function $ne(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,o=Kne["utc"+Qne(a)],i=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+o.offset(n,-i));break;case"todate":var u=o.offset(n,-i);l=e.l2r(+o.ceil(u));break}var s=t[1];return[l,s]}});var yP=pe((V1e,gP)=>{"use strict";var Q1=ot(),jne=Er(),eae=ln(),fP=Zr(),pP=yt(),co=ir(),cP=co.strTranslate,K1=Yn(),rae=en(),s3=qn(),vP=s3.LINE_SPACING,hP=s3.FROM_TL,dP=s3.FROM_BR,l3=a3(),tae=uP();gP.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(nae(r),aae);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var o=Q1.select(this),i=a,l=i.rangeselector,u=o.selectAll("g.button").data(co.filterVisible(l.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(s){var f=Q1.select(this),v=tae(i,s);s._isActive=iae(i,s,v),f.call(o3,l,s),f.call(lae,l,s,r),f.on("click",function(){r._dragged||jne.call("_guiRelayout",r,v)}),f.on("mouseover",function(){s._isHovered=!0,f.call(o3,l,s)}),f.on("mouseout",function(){s._isHovered=!1,f.call(o3,l,s)})}),uae(r,u,l,i._name,o)})};function nae(e){for(var r=rae.list(e,"x",!0),t=[],n=0;n{"use strict";mP.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Z1()}}},layoutAttributes:Z1(),handleDefaults:lP(),draw:yP()}});var $1=pe(u3=>{"use strict";var bP=Mt().extendFlat;u3.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",o=r.description?" "+r.description:"",i={x:bP({},t,{}),y:bP({},t,{}),editType:e.editType};return e.noGridCell||(i.row={valType:"integer",min:0,dflt:0,editType:e.editType},i.column={valType:"integer",min:0,dflt:0,editType:e.editType}),i};u3.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],o=n&&n.y||[0,1],i=r.grid;if(i){var l=t("domain.column");l!==void 0&&(l{"use strict";var fae=ir(),cae=Es().counter,vae=$1().attributes,_P=wn().idRegex,hae=gt(),f3={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[cae("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[_P.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[_P.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:vae({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function j1(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function dae(e,r){var t=e.grid||{},n=j1(r,t,"x"),a=j1(r,t,"y");if(!e.grid&&!n&&!a)return;var o=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),i=Array.isArray(n),l=Array.isArray(a),u=i&&n!==t.xaxes&&l&&a!==t.yaxes,s,f;o?(s=t.subplots.length,f=t.subplots[0].length):(l&&(s=a.length),i&&(f=n.length));var v=hae.newContainer(r,"grid");function p(d,_){return fae.coerce(t,v,f3,d,_)}var b=p("rows",s),m=p("columns",f);if(!(b*m>1)){delete r.grid;return}if(!o&&!i&&!l){var w=p("pattern")==="independent";w&&(o=!0)}v._hasSubplotGrid=o;var M=p("roworder"),y=M==="top to bottom",k=o?.2:.1,S=o?.3:.1,x,T;u&&r._splomGridDflt&&(x=r._splomGridDflt.xside,T=r._splomGridDflt.yside),v._domains={x:wP("x",p,k,x,m),y:wP("y",p,S,T,b,y)}}function wP(e,r,t,n,a,o){var i=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var u=new Array(a),s=l[0],f=(l[1]-s)/(a-i),v=f*(1-i),p=0;p{"use strict";kP.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var EP=pe((Z1e,CP)=>{"use strict";var SP=tt(),gae=Er(),yae=ir(),mae=gt(),xae=c3();CP.exports=function(e,r,t,n){var a="error_"+n.axis,o=mae.newContainer(r,a),i=e[a]||{};function l(m,w){return yae.coerce(i,o,xae,m,w)}var u=i.array!==void 0||i.value!==void 0||i.type==="sqrt",s=l("visible",u);if(s!==!1){var f=l("type","array"in i?"data":"percent"),v=!0;f!=="sqrt"&&(v=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in i))),f==="data"?(l("array"),l("traceref"),v||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),v||l("valueminus"));var p="copy_"+n.inherit+"style";if(n.inherit){var b=r["error_"+n.inherit];(b||{}).visible&&l(p,!(i.color||SP(i.thickness)||SP(i.width)))}(!n.inherit||!o[p])&&(l("color",t),l("thickness"),l("width",gae.traceIs(r,"gl3d")?0:4))}}});var v3=pe((J1e,RP)=>{"use strict";RP.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(s,f){var v=+a[f];return[v,v]};var o=r.arrayminus||[];return function(s,f){var v=+a[f],p=+o[f];return!isNaN(v)||!isNaN(p)?[p||0,v||0]:[NaN,NaN]}}else{var i=LP(t,r.value),l=LP(t,r.valueminus);return n||r.valueminus===void 0?function(s){var f=i(s);return[f,f]}:function(s){return[l(s),i(s)]}}};function LP(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var FP=pe((K1e,PP)=>{"use strict";var h3=tt(),bae=Er(),d3=Ct(),_ae=ir(),wae=v3();PP.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var IP=ot(),tl=tt(),Mae=yt(),Tae=ia();NP.exports=function(r,t,n,a){var o,i=n.xaxis,l=n.yaxis,u=a&&a.duration>0,s=r._context.staticPlot;t.each(function(f){var v=f[0].trace,p=v.error_x||{},b=v.error_y||{},m;v.ids&&(m=function(k){return k.id});var w=Tae.hasMarkers(v)&&v.marker.maxdisplayed>0;!b.visible&&!p.visible&&(f=[]);var M=IP.select(this).selectAll("g.errorbar").data(f,m);if(M.exit().remove(),!!f.length){p.visible||M.selectAll("path.xerror").remove(),b.visible||M.selectAll("path.yerror").remove(),M.style("opacity",1);var y=M.enter().append("g").classed("errorbar",!0);u&&y.style("opacity",0).transition().duration(a.duration).style("opacity",1),Mae.setClipUrl(M,n.layerClipId,r),M.each(function(k){var S=IP.select(this),x=Aae(k,i,l);if(!(w&&!k.vis)){var T,d=S.select("path.yerror");if(b.visible&&tl(x.x)&&tl(x.yh)&&tl(x.ys)){var _=b.width;T="M"+(x.x-_)+","+x.yh+"h"+2*_+"m-"+_+",0V"+x.ys,x.noYS||(T+="m-"+_+",0h"+2*_),o=!d.size(),o?d=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(d=d.transition().duration(a.duration).ease(a.easing)),d.attr("d",T)}else d.remove();var g=S.select("path.xerror");if(p.visible&&tl(x.y)&&tl(x.xh)&&tl(x.xs)){var c=(p.copy_ystyle?b:p).width;T="M"+x.xh+","+(x.y-c)+"v"+2*c+"m0,-"+c+"H"+x.xs,x.noXS||(T+="m0,-"+c+"v"+2*c),o=!g.size(),o?g=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("xerror",!0):u&&(g=g.transition().duration(a.duration).ease(a.easing)),g.attr("d",T)}else g.remove()}})}})};function Aae(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),tl(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),tl(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var BP=pe(($1e,OP)=>{"use strict";var kae=ot(),qP=Zr();OP.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},o=n.error_x||{},i=kae.select(this);i.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(qP.stroke,a.color),o.copy_ystyle&&(o=a),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(qP.stroke,o.color)})}});var VP=pe((j1e,HP)=>{"use strict";var I0=ir(),UP=zn().overrideAll,N0=c3(),us={error_x:I0.extendFlat({},N0),error_y:I0.extendFlat({},N0)};delete us.error_x.copy_zstyle;delete us.error_y.copy_zstyle;delete us.error_y.copy_ystyle;var z0={error_x:I0.extendFlat({},N0),error_y:I0.extendFlat({},N0),error_z:I0.extendFlat({},N0)};delete z0.error_x.copy_ystyle;delete z0.error_y.copy_ystyle;delete z0.error_z.copy_ystyle;delete z0.error_z.copy_zstyle;HP.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:us,bar:us,histogram:us,scatter3d:UP(z0,"calc","nested"),scattergl:UP(us,"calc","nested")}},supplyDefaults:EP(),calc:FP(),makeComputeError:v3(),plot:zP(),style:BP(),hoverInfo:Sae};function Sae(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var YP=pe((ede,GP)=>{"use strict";GP.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var $P=pe((rde,QP)=>{"use strict";var nl=ot(),p3=Sa(),rd=ln(),WP=Er(),vo=Ct(),ed=ti(),Ga=ir(),pi=Ga.strTranslate,KP=Mt().extendFlat,g3=Vo(),di=yt(),y3=Zr(),Cae=Lf(),Eae=Yn(),Lae=Si().flipScale,Rae=T1(),Dae=Am(),Pae=Ra(),m3=qn(),XP=m3.LINE_SPACING,ZP=m3.FROM_TL,JP=m3.FROM_BR,Et=YP().cn;function Fae(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Et.colorbar).data(Iae(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(Et.colorbar,!0),t.each(function(n){var a=nl.select(this);Ga.ensureSingle(a,"rect",Et.cbbg),Ga.ensureSingle(a,"g",Et.cbfills),Ga.ensureSingle(a,"g",Et.cblines),Ga.ensureSingle(a,"g",Et.cbaxis,function(i){i.classed(Et.crisp,!0)}),Ga.ensureSingle(a,"g",Et.cbtitleunshift,function(i){i.append("g").classed(Et.cbtitle,!0)}),Ga.ensureSingle(a,"rect",Et.cboutline);var o=Nae(a,n,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&zae(a,n,e)}),t.exit().each(function(n){rd.autoMargin(e,n._id)}).remove(),t.order()}function Iae(e){var r=e._fullLayout,t=e.calcdata,n=[],a,o,i,l;function u(S){return KP(S,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function s(){typeof l.calc=="function"?l.calc(e,i,a):(a._fillgradient=o.reversescale?Lae(o.colorscale):o.colorscale,a._zrange=[o[l.min],o[l.max]])}for(var f=0;f1){var re=Math.pow(10,Math.floor(Math.log(V)/Math.LN10));ie*=re*Ga.roundUp(V/re,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(ne.tick0=0)}ne.dtick=ie}ne.domain=n?[q+m/x.h,q+P-m/x.h]:[q+b/x.w,q+P-b/x.w],ne.setScale(),e.attr("transform",pi(Math.round(x.l),Math.round(x.t)));var H=e.select("."+Et.cbtitleunshift).attr("transform",pi(-Math.round(x.l),-Math.round(x.t))),te=ne.ticklabelposition,ue=ne.title.font.size,de=e.select("."+Et.cbaxis),ke,Ae=0,ve=0;function Te(Be,ge){var we={propContainer:ne,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:S._dfltTitle.colorbar,containerGroup:e.select("."+Et.cbtitle)},Me=Be.charAt(0)==="h"?Be.substr(1):"h"+Be;e.selectAll("."+Me+",."+Me+"-math-group").remove(),Cae.draw(t,Be,KP(we,ge||{}))}function Ee(){if(n&&Q||!n&&!Q){var Be,ge;g==="top"&&(Be=b+x.l+O*w,ge=m+x.t+U*(1-q-P)+3+ue*.75),g==="bottom"&&(Be=b+x.l+O*w,ge=m+x.t+U*(1-q)-3-ue*.25),g==="right"&&(ge=m+x.t+U*M+3+ue*.75,Be=b+x.l+O*q),Te(ne._id+"title",{attributes:{x:Be,y:ge,"text-anchor":n?"start":"middle"}})}}function Pe(){if(n&&!Q||!n&&Q){var Be=ne.position||0,ge=ne._offset+ne._length/2,we,Me;if(g==="right")Me=ge,we=x.l+O*Be+10+ue*(ne.showticklabels?1:.5);else if(we=ge,g==="bottom"&&(Me=x.t+U*Be+10+(te.indexOf("inside")===-1?ne.tickfont.size:0)+(ne.ticks!=="inside"&&r.ticklen||0)),g==="top"){var me=_.text.split("
").length;Me=x.t+U*Be+10-I-XP*ue*me}Te((n?"h":"v")+ne._id+"title",{avoid:{selection:nl.select(t).selectAll("g."+ne._id+"tick"),side:g,offsetTop:n?0:x.t,offsetLeft:n?x.l:0,maxShift:n?S.width:S.height},attributes:{x:we,y:Me,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Se(){if(!n&&!Q||n&&Q){var Be=e.select("."+Et.cbtitle),ge=Be.select("text"),we=[-u/2,u/2],Me=Be.select(".h"+ne._id+"title-math-group").node(),me=15.6;ge.node()&&(me=parseInt(ge.node().style.fontSize,10)*XP);var Re;if(Me?(Re=di.bBox(Me),ve=Re.width,Ae=Re.height,Ae>me&&(we[1]-=(Ae-me)/2)):ge.node()&&!ge.classed(Et.jsPlaceholder)&&(Re=di.bBox(ge.node()),ve=Re.width,Ae=Re.height),n){if(Ae){if(Ae+=5,g==="top")ne.domain[1]-=Ae/x.h,we[1]*=-1;else{ne.domain[0]+=Ae/x.h;var ce=Eae.lineCount(ge);we[1]+=(1-ce)*me}Be.attr("transform",pi(we[0],we[1])),ne.setScale()}}else ve&&(g==="right"&&(ne.domain[0]+=(ve+ue/2)/x.w),Be.attr("transform",pi(we[0],we[1])),ne.setScale())}e.selectAll("."+Et.cbfills+",."+Et.cblines).attr("transform",n?pi(0,Math.round(x.h*(1-ne.domain[1]))):pi(Math.round(x.w*ne.domain[0]),0)),de.attr("transform",n?pi(0,Math.round(-x.t)):pi(Math.round(-x.l),0));var he=e.select("."+Et.cbfills).selectAll("rect."+Et.cbfill).attr("style","").data(D);he.enter().append("rect").classed(Et.cbfill,!0).attr("style",""),he.exit().remove();var ye=c.map(ne.c2p).map(Math.round).sort(function(We,Ue){return We-Ue});he.each(function(We,Ue){var Ge=[Ue===0?c[0]:(D[Ue]+D[Ue-1])/2,Ue===D.length-1?c[1]:(D[Ue]+D[Ue+1])/2].map(ne.c2p).map(Math.round);n&&(Ge[1]=Ga.constrain(Ge[1]+(Ge[1]>Ge[0])?1:-1,ye[0],ye[1]));var _e=nl.select(this).attr(n?"x":"y",X).attr(n?"y":"x",nl.min(Ge)).attr(n?"width":"height",Math.max(I,2)).attr(n?"height":"width",Math.max(nl.max(Ge)-nl.min(Ge),2));if(r._fillgradient)di.gradient(_e,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var De=h(We).replace("e-","");_e.attr("fill",p3(De).toHexString())}});var Ce=e.select("."+Et.cblines).selectAll("path."+Et.cbline).data(d.color&&d.width?N:[]);Ce.enter().append("path").classed(Et.cbline,!0),Ce.exit().remove(),Ce.each(function(We){var Ue=X,Ge=Math.round(ne.c2p(We))+d.width/2%1;nl.select(this).attr("d","M"+(n?Ue+","+Ge:Ge+","+Ue)+(n?"h":"v")+I).call(di.lineGroupStyle,d.width,A(We),d.dash)}),de.selectAll("g."+ne._id+"tick,path").remove();var ze=X+I+(u||0)/2-(r.ticks==="outside"?1:0),qe=vo.calcTicks(ne),$e=vo.getTickSigns(ne)[2];return vo.drawTicks(t,ne,{vals:ne.ticks==="inside"?vo.clipEnds(ne,qe):qe,layer:de,path:vo.makeTickPath(ne,ze,$e),transFn:vo.makeTransTickFn(ne)}),vo.drawLabels(t,ne,{vals:qe,layer:de,transFn:vo.makeTransTickLabelFn(ne),labelFns:vo.makeLabelFns(ne,ze)})}function Ne(){var Be,ge=I+u/2;te.indexOf("inside")===-1&&(Be=di.bBox(de.node()),ge+=n?Be.width:Be.height),ke=H.select("text");var we=0,Me=n&&g==="top",me=!n&&g==="right",Re=0;if(ke.node()&&!ke.classed(Et.jsPlaceholder)){var ce,he=H.select(".h"+ne._id+"title-math-group").node();he&&(n&&Q||!n&&!Q)?(Be=di.bBox(he),we=Be.width,ce=Be.height):(Be=di.bBox(H.node()),we=Be.right-x.l-(n?X:K),ce=Be.bottom-x.t-(n?K:X),!n&&g==="top"&&(ge+=Be.height,Re=Be.height)),me&&(ke.attr("transform",pi(we/2+ue/2,0)),we*=2),ge=Math.max(ge,n?we:ce)}var ye=(n?b:m)*2+ge+s+u/2,Ce=0;!n&&_.text&&p==="bottom"&&M<=0&&(Ce=ye/2,ye+=Ce,Re+=Ce),S._hColorbarMoveTitle=Ce,S._hColorbarMoveCBTitle=Re;var ze=s+u,qe=(n?X:K)-ze/2-(n?b:0),$e=(n?K:X)-(n?L:m+Re-Ce);e.select("."+Et.cbbg).attr("x",qe).attr("y",$e).attr(n?"width":"height",Math.max(ye-Ce,2)).attr(n?"height":"width",Math.max(L+ze,2)).call(y3.fill,f).call(y3.stroke,r.bordercolor).style("stroke-width",s);var We=me?Math.max(we-10,0):0;e.selectAll("."+Et.cboutline).attr("x",(n?X:K+b)+We).attr("y",(n?K+m-L:X)+(Me?Ae:0)).attr(n?"width":"height",Math.max(I,2)).attr(n?"height":"width",Math.max(L-(n?2*m+Ae:2*b+We),2)).call(y3.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var Ue=n?$*ye:0,Ge=n?0:(1-j)*ye-Re;if(Ue=k?x.l-Ue:-Ue,Ge=y?x.t-Ge:-Ge,e.attr("transform",pi(Ue,Ge)),!n&&(s||p3(f).getAlpha()&&!p3.equals(S.paper_bgcolor,f))){var _e=de.selectAll("text"),De=_e[0].length,Ke=e.select("."+Et.cbbg).node(),Ye=di.bBox(Ke),ar=di.getTranslate(e),se=2;_e.each(function(Mr,Ar){var nt=0,Yr=De-1;if(Ar===nt||Ar===Yr){var mr=di.bBox(this),ct=di.getTranslate(this),Cr;if(Ar===Yr){var Ur=mr.right+ct.x,xt=Ye.right+ar.x+K-s-se+w;Cr=xt-Ur,Cr>0&&(Cr=0)}else if(Ar===nt){var zr=mr.left+ct.x,Hr=Ye.left+ar.x+K+s+se;Cr=Hr-zr,Cr<0&&(Cr=0)}Cr&&(De<3?this.setAttribute("transform","translate("+Cr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var J={},ae=ZP[v],Le=JP[v],He=ZP[p],je=JP[p],nr=ye-I;n?(o==="pixels"?(J.y=M,J.t=L*He,J.b=L*je):(J.t=J.b=0,J.yt=M+a*He,J.yb=M-a*je),l==="pixels"?(J.x=w,J.l=ye*ae,J.r=ye*Le):(J.l=nr*ae,J.r=nr*Le,J.xl=w-i*ae,J.xr=w+i*Le)):(o==="pixels"?(J.x=w,J.l=L*ae,J.r=L*Le):(J.l=J.r=0,J.xl=w+a*ae,J.xr=w-a*Le),l==="pixels"?(J.y=1-M,J.t=ye*He,J.b=ye*je):(J.t=nr*He,J.b=nr*je,J.yt=M-i*He,J.yb=M+i*je));var fr=r.y<.5?"b":"t",br=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Sr={r:S.width-qe-Ue,l:qe+J.r,b:S.height-$e-Ge,t:$e+J.b};k&&y?rd.autoMargin(t,r._id,J):k?t._fullLayout._reservedMargin[r._id][fr]=Sr[fr]:y||n?t._fullLayout._reservedMargin[r._id][br]=Sr[br]:t._fullLayout._reservedMargin[r._id][fr]=Sr[fr]}return Ga.syncOrAsync([rd.previousPromises,Ee,Se,Pe,rd.previousPromises,Ne],t)}function zae(e,r,t){var n=r.orientation==="v",a=t._fullLayout,o=a._size,i,l,u;ed.init({element:e.node(),gd:t,prepFn:function(){i=e.attr("transform"),g3(e)},moveFn:function(s,f){e.attr("transform",i+pi(s,f)),l=ed.align((n?r._uFrac:r._vFrac)+s/o.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=ed.align((n?r._vFrac:1-r._uFrac)-f/o.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=ed.getCursor(l,u,r.xanchor,r.yanchor);g3(e,v)},doneFn:function(){if(g3(e),l!==void 0&&u!==void 0){var s={};s[r._propPrefix+"x"]=l,s[r._propPrefix+"y"]=u,r._traceIndex!==void 0?WP.call("_guiRestyle",t,s,r._traceIndex):WP.call("_guiRelayout",t,s)}}})}function qae(e,r,t){var n=r._levels,a=[],o=[],i,l,u=n.end+n.size/100,s=n.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(i=n.start+l*s,!(s>0?i>=u:i<=u));l++)i>f&&i0?i>=u:i<=u));l++)i>t[0]&&i{"use strict";jP.exports={moduleType:"component",name:"colorbar",attributes:pv(),supplyDefaults:wg(),draw:$P().draw,hasColorbar:cg()}});var tF=pe((nde,rF)=>{"use strict";rF.exports={moduleType:"component",name:"legend",layoutAttributes:y2(),supplyLayoutDefaults:b2(),draw:P2(),style:E2()}});var aF=pe((ade,nF)=>{"use strict";nF.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var oF=pe((ide,iF)=>{"use strict";iF.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var b3=pe((ode,fF)=>{"use strict";var Bae=Er(),uF=ir(),x3=uF.extendFlat,lF=uF.extendDeep;function sF(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Uae(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}fF.exports=function(r,t){var n,a=r.data,o=r.layout,i=lF([],a),l=lF({},o,sF(t.tileClass)),u=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var s=Object.keys(l);for(n=0;n{"use strict";var Hae=tv().EventEmitter,Vae=Er(),Gae=ir(),cF=jl(),Yae=b3(),Wae=s1(),Xae=u1();function Zae(e,r){var t=new Hae,n=Yae(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=cF.getDelay(a._fullLayout);setTimeout(function(){var u=Wae(a),s=document.createElement("canvas");s.id=Gae.randstr(),t=Xae({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:s,emitter:t,svg:u}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var i=cF.getRedrawFunc(a);return Vae.call("_doPlot",a,n.data,n.layout,n.config).then(i).then(o).catch(function(l){t.emit("error",l)}),t}vF.exports=Zae});var gF=pe((sde,pF)=>{"use strict";var dF=jl(),Jae={getDelay:dF.getDelay,getRedrawFunc:dF.getRedrawFunc,clone:b3(),toSVG:s1(),svgToImg:u1(),toImage:hF(),downloadImage:Qy()};pF.exports=Jae});var mF=pe(ho=>{"use strict";ho.version=mc().version;lb();K6();var Kae=Er(),q0=ho.register=Kae.register,w3=bC(),yF=Object.keys(w3);for(td=0;td{"use strict";xF.exports=mF()});var pn=pe((cde,_F)=>{(function(){var e={1964:function(a,o,i){a.exports={alpha_shape:i(3502),convex_hull:i(7352),delaunay_triangulate:i(7642),gl_cone3d:i(6405),gl_error3d:i(9165),gl_line3d:i(5714),gl_mesh3d:i(7201),gl_plot3d:i(4100),gl_scatter3d:i(8418),gl_streamtube3d:i(7815),gl_surface3d:i(9499),ndarray:i(9618),ndarray_linear_interpolate:i(4317)}},4793:function(a,o,i){"use strict";var l;function u(se,J){if(!(se instanceof J))throw new TypeError("Cannot call a class as a function")}function s(se,J){for(var ae=0;aeg)throw new RangeError('The value "'+se+'" is invalid for option "size"');var J=new Uint8Array(se);return Object.setPrototypeOf(J,h.prototype),J}function h(se,J,ae){if(typeof se=="number"){if(typeof J=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return N(se)}return R(se,J,ae)}h.poolSize=8192;function R(se,J,ae){if(typeof se=="string")return I(se,J);if(ArrayBuffer.isView(se))return L(se);if(se==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+x(se));if(_e(se,ArrayBuffer)||se&&_e(se.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_e(se,SharedArrayBuffer)||se&&_e(se.buffer,SharedArrayBuffer)))return P(se,J,ae);if(typeof se=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Le=se.valueOf&&se.valueOf();if(Le!=null&&Le!==se)return h.from(Le,J,ae);var He=O(se);if(He)return He;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof se[Symbol.toPrimitive]=="function")return h.from(se[Symbol.toPrimitive]("string"),J,ae);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+x(se))}h.from=function(se,J,ae){return R(se,J,ae)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array);function E(se){if(typeof se!="number")throw new TypeError('"size" argument must be of type number');if(se<0)throw new RangeError('The value "'+se+'" is invalid for option "size"')}function D(se,J,ae){return E(se),se<=0?A(se):J!==void 0?typeof ae=="string"?A(se).fill(J,ae):A(se).fill(J):A(se)}h.alloc=function(se,J,ae){return D(se,J,ae)};function N(se){return E(se),A(se<0?0:U(se)|0)}h.allocUnsafe=function(se){return N(se)},h.allocUnsafeSlow=function(se){return N(se)};function I(se,J){if((typeof J!="string"||J==="")&&(J="utf8"),!h.isEncoding(J))throw new TypeError("Unknown encoding: "+J);var ae=$(se,J)|0,Le=A(ae),He=Le.write(se,J);return He!==ae&&(Le=Le.slice(0,He)),Le}function F(se){for(var J=se.length<0?0:U(se.length)|0,ae=A(J),Le=0;Le=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return se|0}function X(se){return+se!=se&&(se=0),h.alloc(+se)}h.isBuffer=function(J){return J!=null&&J._isBuffer===!0&&J!==h.prototype},h.compare=function(J,ae){if(_e(J,Uint8Array)&&(J=h.from(J,J.offset,J.byteLength)),_e(ae,Uint8Array)&&(ae=h.from(ae,ae.offset,ae.byteLength)),!h.isBuffer(J)||!h.isBuffer(ae))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(J===ae)return 0;for(var Le=J.length,He=ae.length,je=0,nr=Math.min(Le,He);jeHe.length?(h.isBuffer(nr)||(nr=h.from(nr)),nr.copy(He,je)):Uint8Array.prototype.set.call(He,nr,je);else if(h.isBuffer(nr))nr.copy(He,je);else throw new TypeError('"list" argument must be an Array of Buffers');je+=nr.length}return He};function $(se,J){if(h.isBuffer(se))return se.length;if(ArrayBuffer.isView(se)||_e(se,ArrayBuffer))return se.byteLength;if(typeof se!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+x(se));var ae=se.length,Le=arguments.length>2&&arguments[2]===!0;if(!Le&&ae===0)return 0;for(var He=!1;;)switch(J){case"ascii":case"latin1":case"binary":return ae;case"utf8":case"utf-8":return qe(se).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae*2;case"hex":return ae>>>1;case"base64":return Ue(se).length;default:if(He)return Le?-1:qe(se).length;J=(""+J).toLowerCase(),He=!0}}h.byteLength=$;function j(se,J,ae){var Le=!1;if((J===void 0||J<0)&&(J=0),J>this.length||((ae===void 0||ae>this.length)&&(ae=this.length),ae<=0)||(ae>>>=0,J>>>=0,ae<=J))return"";for(se||(se="utf8");;)switch(se){case"hex":return Ae(this,J,ae);case"utf8":case"utf-8":return H(this,J,ae);case"ascii":return de(this,J,ae);case"latin1":case"binary":return ke(this,J,ae);case"base64":return re(this,J,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,J,ae);default:if(Le)throw new TypeError("Unknown encoding: "+se);se=(se+"").toLowerCase(),Le=!0}}h.prototype._isBuffer=!0;function Y(se,J,ae){var Le=se[J];se[J]=se[ae],se[ae]=Le}h.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ae=0;aeae&&(J+=" ... "),""},_&&(h.prototype[_]=h.prototype.inspect),h.prototype.compare=function(J,ae,Le,He,je){if(_e(J,Uint8Array)&&(J=h.from(J,J.offset,J.byteLength)),!h.isBuffer(J))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+x(J));if(ae===void 0&&(ae=0),Le===void 0&&(Le=J?J.length:0),He===void 0&&(He=0),je===void 0&&(je=this.length),ae<0||Le>J.length||He<0||je>this.length)throw new RangeError("out of range index");if(He>=je&&ae>=Le)return 0;if(He>=je)return-1;if(ae>=Le)return 1;if(ae>>>=0,Le>>>=0,He>>>=0,je>>>=0,this===J)return 0;for(var nr=je-He,fr=Le-ae,br=Math.min(nr,fr),Sr=this.slice(He,je),Mr=J.slice(ae,Le),Ar=0;Ar2147483647?ae=2147483647:ae<-2147483648&&(ae=-2147483648),ae=+ae,De(ae)&&(ae=He?0:se.length-1),ae<0&&(ae=se.length+ae),ae>=se.length){if(He)return-1;ae=se.length-1}else if(ae<0)if(He)ae=0;else return-1;if(typeof J=="string"&&(J=h.from(J,Le)),h.isBuffer(J))return J.length===0?-1:K(se,J,ae,Le,He);if(typeof J=="number")return J=J&255,typeof Uint8Array.prototype.indexOf=="function"?He?Uint8Array.prototype.indexOf.call(se,J,ae):Uint8Array.prototype.lastIndexOf.call(se,J,ae):K(se,[J],ae,Le,He);throw new TypeError("val must be string, number or Buffer")}function K(se,J,ae,Le,He){var je=1,nr=se.length,fr=J.length;if(Le!==void 0&&(Le=String(Le).toLowerCase(),Le==="ucs2"||Le==="ucs-2"||Le==="utf16le"||Le==="utf-16le")){if(se.length<2||J.length<2)return-1;je=2,nr/=2,fr/=2,ae/=2}function br(Yr,mr){return je===1?Yr[mr]:Yr.readUInt16BE(mr*je)}var Sr;if(He){var Mr=-1;for(Sr=ae;Srnr&&(ae=nr-fr),Sr=ae;Sr>=0;Sr--){for(var Ar=!0,nt=0;ntHe&&(Le=He)):Le=He;var je=J.length;Le>je/2&&(Le=je/2);var nr;for(nr=0;nr>>0,isFinite(Le)?(Le=Le>>>0,He===void 0&&(He="utf8")):(He=Le,Le=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var je=this.length-ae;if((Le===void 0||Le>je)&&(Le=je),J.length>0&&(Le<0||ae<0)||ae>this.length)throw new RangeError("Attempt to write outside buffer bounds");He||(He="utf8");for(var nr=!1;;)switch(He){case"hex":return ne(this,J,ae,Le);case"utf8":case"utf-8":return Q(this,J,ae,Le);case"ascii":case"latin1":case"binary":return ie(this,J,ae,Le);case"base64":return ee(this,J,ae,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,J,ae,Le);default:if(nr)throw new TypeError("Unknown encoding: "+He);He=(""+He).toLowerCase(),nr=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(se,J,ae){return J===0&&ae===se.length?T.fromByteArray(se):T.fromByteArray(se.slice(J,ae))}function H(se,J,ae){ae=Math.min(se.length,ae);for(var Le=[],He=J;He239?4:je>223?3:je>191?2:1;if(He+fr<=ae){var br=void 0,Sr=void 0,Mr=void 0,Ar=void 0;switch(fr){case 1:je<128&&(nr=je);break;case 2:br=se[He+1],(br&192)===128&&(Ar=(je&31)<<6|br&63,Ar>127&&(nr=Ar));break;case 3:br=se[He+1],Sr=se[He+2],(br&192)===128&&(Sr&192)===128&&(Ar=(je&15)<<12|(br&63)<<6|Sr&63,Ar>2047&&(Ar<55296||Ar>57343)&&(nr=Ar));break;case 4:br=se[He+1],Sr=se[He+2],Mr=se[He+3],(br&192)===128&&(Sr&192)===128&&(Mr&192)===128&&(Ar=(je&15)<<18|(br&63)<<12|(Sr&63)<<6|Mr&63,Ar>65535&&Ar<1114112&&(nr=Ar))}}nr===null?(nr=65533,fr=1):nr>65535&&(nr-=65536,Le.push(nr>>>10&1023|55296),nr=56320|nr&1023),Le.push(nr),He+=fr}return ue(Le)}var te=4096;function ue(se){var J=se.length;if(J<=te)return String.fromCharCode.apply(String,se);for(var ae="",Le=0;LeLe)&&(ae=Le);for(var He="",je=J;jeLe&&(J=Le),ae<0?(ae+=Le,ae<0&&(ae=0)):ae>Le&&(ae=Le),aeae)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUintLE=h.prototype.readUIntLE=function(J,ae,Le){J=J>>>0,ae=ae>>>0,Le||Te(J,ae,this.length);for(var He=this[J],je=1,nr=0;++nr>>0,ae=ae>>>0,Le||Te(J,ae,this.length);for(var He=this[J+--ae],je=1;ae>0&&(je*=256);)He+=this[J+--ae]*je;return He},h.prototype.readUint8=h.prototype.readUInt8=function(J,ae){return J=J>>>0,ae||Te(J,1,this.length),this[J]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(J,ae){return J=J>>>0,ae||Te(J,2,this.length),this[J]|this[J+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(J,ae){return J=J>>>0,ae||Te(J,2,this.length),this[J]<<8|this[J+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(J,ae){return J=J>>>0,ae||Te(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(J,ae){return J=J>>>0,ae||Te(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},h.prototype.readBigUInt64LE=Ye(function(J){J=J>>>0,he(J,"offset");var ae=this[J],Le=this[J+7];(ae===void 0||Le===void 0)&&ye(J,this.length-8);var He=ae+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,24),je=this[++J]+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+Le*Math.pow(2,24);return BigInt(He)+(BigInt(je)<>>0,he(J,"offset");var ae=this[J],Le=this[J+7];(ae===void 0||Le===void 0)&&ye(J,this.length-8);var He=ae*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J],je=this[++J]*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+Le;return(BigInt(He)<>>0,ae=ae>>>0,Le||Te(J,ae,this.length);for(var He=this[J],je=1,nr=0;++nr=je&&(He-=Math.pow(2,8*ae)),He},h.prototype.readIntBE=function(J,ae,Le){J=J>>>0,ae=ae>>>0,Le||Te(J,ae,this.length);for(var He=ae,je=1,nr=this[J+--He];He>0&&(je*=256);)nr+=this[J+--He]*je;return je*=128,nr>=je&&(nr-=Math.pow(2,8*ae)),nr},h.prototype.readInt8=function(J,ae){return J=J>>>0,ae||Te(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},h.prototype.readInt16LE=function(J,ae){J=J>>>0,ae||Te(J,2,this.length);var Le=this[J]|this[J+1]<<8;return Le&32768?Le|4294901760:Le},h.prototype.readInt16BE=function(J,ae){J=J>>>0,ae||Te(J,2,this.length);var Le=this[J+1]|this[J]<<8;return Le&32768?Le|4294901760:Le},h.prototype.readInt32LE=function(J,ae){return J=J>>>0,ae||Te(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},h.prototype.readInt32BE=function(J,ae){return J=J>>>0,ae||Te(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},h.prototype.readBigInt64LE=Ye(function(J){J=J>>>0,he(J,"offset");var ae=this[J],Le=this[J+7];(ae===void 0||Le===void 0)&&ye(J,this.length-8);var He=this[J+4]+this[J+5]*Math.pow(2,8)+this[J+6]*Math.pow(2,16)+(Le<<24);return(BigInt(He)<>>0,he(J,"offset");var ae=this[J],Le=this[J+7];(ae===void 0||Le===void 0)&&ye(J,this.length-8);var He=(ae<<24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J];return(BigInt(He)<>>0,ae||Te(J,4,this.length),d.read(this,J,!0,23,4)},h.prototype.readFloatBE=function(J,ae){return J=J>>>0,ae||Te(J,4,this.length),d.read(this,J,!1,23,4)},h.prototype.readDoubleLE=function(J,ae){return J=J>>>0,ae||Te(J,8,this.length),d.read(this,J,!0,52,8)},h.prototype.readDoubleBE=function(J,ae){return J=J>>>0,ae||Te(J,8,this.length),d.read(this,J,!1,52,8)};function Ee(se,J,ae,Le,He,je){if(!h.isBuffer(se))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>He||Jse.length)throw new RangeError("Index out of range")}h.prototype.writeUintLE=h.prototype.writeUIntLE=function(J,ae,Le,He){if(J=+J,ae=ae>>>0,Le=Le>>>0,!He){var je=Math.pow(2,8*Le)-1;Ee(this,J,ae,Le,je,0)}var nr=1,fr=0;for(this[ae]=J&255;++fr>>0,Le=Le>>>0,!He){var je=Math.pow(2,8*Le)-1;Ee(this,J,ae,Le,je,0)}var nr=Le-1,fr=1;for(this[ae+nr]=J&255;--nr>=0&&(fr*=256);)this[ae+nr]=J/fr&255;return ae+Le},h.prototype.writeUint8=h.prototype.writeUInt8=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,1,255,0),this[ae]=J&255,ae+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,2,65535,0),this[ae]=J&255,this[ae+1]=J>>>8,ae+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,2,65535,0),this[ae]=J>>>8,this[ae+1]=J&255,ae+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,4,4294967295,0),this[ae+3]=J>>>24,this[ae+2]=J>>>16,this[ae+1]=J>>>8,this[ae]=J&255,ae+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,4,4294967295,0),this[ae]=J>>>24,this[ae+1]=J>>>16,this[ae+2]=J>>>8,this[ae+3]=J&255,ae+4};function Pe(se,J,ae,Le,He){ce(J,Le,He,se,ae,7);var je=Number(J&BigInt(4294967295));se[ae++]=je,je=je>>8,se[ae++]=je,je=je>>8,se[ae++]=je,je=je>>8,se[ae++]=je;var nr=Number(J>>BigInt(32)&BigInt(4294967295));return se[ae++]=nr,nr=nr>>8,se[ae++]=nr,nr=nr>>8,se[ae++]=nr,nr=nr>>8,se[ae++]=nr,ae}function Se(se,J,ae,Le,He){ce(J,Le,He,se,ae,7);var je=Number(J&BigInt(4294967295));se[ae+7]=je,je=je>>8,se[ae+6]=je,je=je>>8,se[ae+5]=je,je=je>>8,se[ae+4]=je;var nr=Number(J>>BigInt(32)&BigInt(4294967295));return se[ae+3]=nr,nr=nr>>8,se[ae+2]=nr,nr=nr>>8,se[ae+1]=nr,nr=nr>>8,se[ae]=nr,ae+8}h.prototype.writeBigUInt64LE=Ye(function(J){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Pe(this,J,ae,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeBigUInt64BE=Ye(function(J){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Se(this,J,ae,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeIntLE=function(J,ae,Le,He){if(J=+J,ae=ae>>>0,!He){var je=Math.pow(2,8*Le-1);Ee(this,J,ae,Le,je-1,-je)}var nr=0,fr=1,br=0;for(this[ae]=J&255;++nr>0)-br&255;return ae+Le},h.prototype.writeIntBE=function(J,ae,Le,He){if(J=+J,ae=ae>>>0,!He){var je=Math.pow(2,8*Le-1);Ee(this,J,ae,Le,je-1,-je)}var nr=Le-1,fr=1,br=0;for(this[ae+nr]=J&255;--nr>=0&&(fr*=256);)J<0&&br===0&&this[ae+nr+1]!==0&&(br=1),this[ae+nr]=(J/fr>>0)-br&255;return ae+Le},h.prototype.writeInt8=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,1,127,-128),J<0&&(J=255+J+1),this[ae]=J&255,ae+1},h.prototype.writeInt16LE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,2,32767,-32768),this[ae]=J&255,this[ae+1]=J>>>8,ae+2},h.prototype.writeInt16BE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,2,32767,-32768),this[ae]=J>>>8,this[ae+1]=J&255,ae+2},h.prototype.writeInt32LE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,4,2147483647,-2147483648),this[ae]=J&255,this[ae+1]=J>>>8,this[ae+2]=J>>>16,this[ae+3]=J>>>24,ae+4},h.prototype.writeInt32BE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),this[ae]=J>>>24,this[ae+1]=J>>>16,this[ae+2]=J>>>8,this[ae+3]=J&255,ae+4},h.prototype.writeBigInt64LE=Ye(function(J){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Pe(this,J,ae,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),h.prototype.writeBigInt64BE=Ye(function(J){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Se(this,J,ae,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ne(se,J,ae,Le,He,je){if(ae+Le>se.length)throw new RangeError("Index out of range");if(ae<0)throw new RangeError("Index out of range")}function Be(se,J,ae,Le,He){return J=+J,ae=ae>>>0,He||Ne(se,J,ae,4,34028234663852886e22,-34028234663852886e22),d.write(se,J,ae,Le,23,4),ae+4}h.prototype.writeFloatLE=function(J,ae,Le){return Be(this,J,ae,!0,Le)},h.prototype.writeFloatBE=function(J,ae,Le){return Be(this,J,ae,!1,Le)};function ge(se,J,ae,Le,He){return J=+J,ae=ae>>>0,He||Ne(se,J,ae,8,17976931348623157e292,-17976931348623157e292),d.write(se,J,ae,Le,52,8),ae+8}h.prototype.writeDoubleLE=function(J,ae,Le){return ge(this,J,ae,!0,Le)},h.prototype.writeDoubleBE=function(J,ae,Le){return ge(this,J,ae,!1,Le)},h.prototype.copy=function(J,ae,Le,He){if(!h.isBuffer(J))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!He&&He!==0&&(He=this.length),ae>=J.length&&(ae=J.length),ae||(ae=0),He>0&&He=this.length)throw new RangeError("Index out of range");if(He<0)throw new RangeError("sourceEnd out of bounds");He>this.length&&(He=this.length),J.length-ae>>0,Le=Le===void 0?this.length:Le>>>0,J||(J=0);var nr;if(typeof J=="number")for(nr=ae;nrMath.pow(2,32)?He=me(String(ae)):typeof ae=="bigint"&&(He=String(ae),(ae>Math.pow(BigInt(2),BigInt(32))||ae<-Math.pow(BigInt(2),BigInt(32)))&&(He=me(He)),He+="n"),Le+=" It must be ".concat(J,". Received ").concat(He),Le},RangeError);function me(se){for(var J="",ae=se.length,Le=se[0]==="-"?1:0;ae>=Le+4;ae-=3)J="_".concat(se.slice(ae-3,ae)).concat(J);return"".concat(se.slice(0,ae)).concat(J)}function Re(se,J,ae){he(J,"offset"),(se[J]===void 0||se[J+ae]===void 0)&&ye(J,se.length-(ae+1))}function ce(se,J,ae,Le,He,je){if(se>ae||se3?J===0||J===BigInt(0)?fr=">= 0".concat(nr," and < 2").concat(nr," ** ").concat((je+1)*8).concat(nr):fr=">= -(2".concat(nr," ** ").concat((je+1)*8-1).concat(nr,") and < 2 ** ")+"".concat((je+1)*8-1).concat(nr):fr=">= ".concat(J).concat(nr," and <= ").concat(ae).concat(nr),new we.ERR_OUT_OF_RANGE("value",fr,se)}Re(Le,He,je)}function he(se,J){if(typeof se!="number")throw new we.ERR_INVALID_ARG_TYPE(J,"number",se)}function ye(se,J,ae){throw Math.floor(se)!==se?(he(se,ae),new we.ERR_OUT_OF_RANGE(ae||"offset","an integer",se)):J<0?new we.ERR_BUFFER_OUT_OF_BOUNDS:new we.ERR_OUT_OF_RANGE(ae||"offset",">= ".concat(ae?1:0," and <= ").concat(J),se)}var Ce=/[^+/0-9A-Za-z-_]/g;function ze(se){if(se=se.split("=")[0],se=se.trim().replace(Ce,""),se.length<2)return"";for(;se.length%4!==0;)se=se+"=";return se}function qe(se,J){J=J||1/0;for(var ae,Le=se.length,He=null,je=[],nr=0;nr55295&&ae<57344){if(!He){if(ae>56319){(J-=3)>-1&&je.push(239,191,189);continue}else if(nr+1===Le){(J-=3)>-1&&je.push(239,191,189);continue}He=ae;continue}if(ae<56320){(J-=3)>-1&&je.push(239,191,189),He=ae;continue}ae=(He-55296<<10|ae-56320)+65536}else He&&(J-=3)>-1&&je.push(239,191,189);if(He=null,ae<128){if((J-=1)<0)break;je.push(ae)}else if(ae<2048){if((J-=2)<0)break;je.push(ae>>6|192,ae&63|128)}else if(ae<65536){if((J-=3)<0)break;je.push(ae>>12|224,ae>>6&63|128,ae&63|128)}else if(ae<1114112){if((J-=4)<0)break;je.push(ae>>18|240,ae>>12&63|128,ae>>6&63|128,ae&63|128)}else throw new Error("Invalid code point")}return je}function $e(se){for(var J=[],ae=0;ae>8,He=ae%256,je.push(He),je.push(Le);return je}function Ue(se){return T.toByteArray(ze(se))}function Ge(se,J,ae,Le){var He;for(He=0;He=J.length||He>=se.length);++He)J[He+ae]=se[He];return He}function _e(se,J){return se instanceof J||se!=null&&se.constructor!=null&&se.constructor.name!=null&&se.constructor.name===J.name}function De(se){return se!==se}var Ke=function(){for(var se="0123456789abcdef",J=new Array(256),ae=0;ae<16;++ae)for(var Le=ae*16,He=0;He<16;++He)J[Le+He]=se[ae]+se[He];return J}();function Ye(se){return typeof BigInt=="undefined"?ar:se}function ar(){throw new Error("BigInt not supported")}},9216:function(a){"use strict";a.exports=u,a.exports.isMobile=u,a.exports.default=u;var o=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/CrOS/,l=/android|ipad|playbook|silk/i;function u(s){s||(s={});var f=s.ua;if(!f&&typeof navigator!="undefined"&&(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;var v=o.test(f)&&!i.test(f)||!!s.tablet&&l.test(f);return!v&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(v=!0),v}},6296:function(a,o,i){"use strict";a.exports=p;var l=i(7261),u=i(9977),s=i(1811);function f(b,m){this._controllerNames=Object.keys(b),this._controllerList=this._controllerNames.map(function(w){return b[w]}),this._mode=m,this._active=b[m],this._active||(this._mode="turntable",this._active=b.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var v=f.prototype;v.flush=function(b){for(var m=this._controllerList,w=0;w0)throw new Error("Invalid string. Length must be a multiple of 4");var T=S.indexOf("=");T===-1&&(T=x);var d=T===x?0:4-T%4;return[T,d]}function b(S){var x=p(S),T=x[0],d=x[1];return(T+d)*3/4-d}function m(S,x,T){return(x+T)*3/4-T}function w(S){var x,T=p(S),d=T[0],_=T[1],g=new u(m(S,d,_)),c=0,A=_>0?d-4:d,h;for(h=0;h>16&255,g[c++]=x>>8&255,g[c++]=x&255;return _===2&&(x=l[S.charCodeAt(h)]<<2|l[S.charCodeAt(h+1)]>>4,g[c++]=x&255),_===1&&(x=l[S.charCodeAt(h)]<<10|l[S.charCodeAt(h+1)]<<4|l[S.charCodeAt(h+2)]>>2,g[c++]=x>>8&255,g[c++]=x&255),g}function M(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function y(S,x,T){for(var d,_=[],g=x;gA?A:c+g));return d===1?(x=S[T-1],_.push(i[x>>2]+i[x<<4&63]+"==")):d===2&&(x=(S[T-2]<<8)+S[T-1],_.push(i[x>>10]+i[x>>4&63]+i[x<<2&63]+"=")),_.join("")}},3865:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).add(f[0].mul(s[1])),s[1].mul(f[1]))}},1318:function(a){"use strict";a.exports=o;function o(i,l){return i[0].mul(l[1]).cmp(l[0].mul(i[1]))}},8697:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]),s[1].mul(f[0]))}},7842:function(a,o,i){"use strict";var l=i(6330),u=i(1533),s=i(2651),f=i(6768),v=i(869),p=i(8697);a.exports=b;function b(m,w){if(l(m))return w?p(m,b(w)):[m[0].clone(),m[1].clone()];var M=0,y,k;if(u(m))y=m.clone();else if(typeof m=="string")y=f(m);else{if(m===0)return[s(0),s(1)];if(m===Math.floor(m))y=s(m);else{for(;m!==Math.floor(m);)m=m*Math.pow(2,256),M-=256;y=s(m)}}if(l(w))y.mul(w[1]),k=w[0].clone();else if(u(w))k=w.clone();else if(typeof w=="string")k=f(w);else if(!w)k=s(1);else if(w===Math.floor(w))k=s(w);else{for(;w!==Math.floor(w);)w=w*Math.pow(2,256),M+=256;k=s(w)}return M>0?y=y.ushln(M):M<0&&(k=k.ushln(-M)),v(y,k)}},6330:function(a,o,i){"use strict";var l=i(1533);a.exports=u;function u(s){return Array.isArray(s)&&s.length===2&&l(s[0])&&l(s[1])}},5716:function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s.cmp(new l(0))}},1369:function(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){var f=s.length,v=s.words,p=0;if(f===1)p=v[0];else if(f===2)p=v[0]+v[1]*67108864;else for(var b=0;b20?52:p+32}},1533:function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s&&typeof s=="object"&&!!s.words}},2651:function(a,o,i){"use strict";var l=i(6859),u=i(2361);a.exports=s;function s(f){var v=u.exponent(f);return v<52?new l(f):new l(f*Math.pow(2,52-v)).ushln(v-52)}},869:function(a,o,i){"use strict";var l=i(2651),u=i(5716);a.exports=s;function s(f,v){var p=u(f),b=u(v);if(p===0)return[l(0),l(1)];if(b===0)return[l(0),l(0)];b<0&&(f=f.neg(),v=v.neg());var m=f.gcd(v);return m.cmpn(1)?[f.div(m),v.div(m)]:[f,v]}},6768:function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return new l(s)}},6504:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[0]),s[1].mul(f[1]))}},7721:function(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){return l(s[0])*l(s[1])}},5572:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).sub(s[1].mul(f[0])),s[1].mul(f[1]))}},946:function(a,o,i){"use strict";var l=i(1369),u=i(4025);a.exports=s;function s(f){var v=f[0],p=f[1];if(v.cmpn(0)===0)return 0;var b=v.abs().divmod(p.abs()),m=b.div,w=l(m),M=b.mod,y=v.negative!==p.negative?-1:1;if(M.cmpn(0)===0)return y*w;if(w){var k=u(w)+4,S=l(M.ushln(k).divRound(p));return y*(w+S*Math.pow(2,-k))}else{var x=p.bitLength()-M.bitLength()+53,S=l(M.ushln(x).divRound(p));return x<1023?y*S*Math.pow(2,-x):(S*=Math.pow(2,-1023),y*S*Math.pow(2,1023-x))}}},2478:function(a){"use strict";function o(v,p,b,m,w){for(var M=w+1;m<=w;){var y=m+w>>>1,k=v[y],S=b!==void 0?b(k,p):k-p;S>=0?(M=y,w=y-1):m=y+1}return M}function i(v,p,b,m,w){for(var M=w+1;m<=w;){var y=m+w>>>1,k=v[y],S=b!==void 0?b(k,p):k-p;S>0?(M=y,w=y-1):m=y+1}return M}function l(v,p,b,m,w){for(var M=m-1;m<=w;){var y=m+w>>>1,k=v[y],S=b!==void 0?b(k,p):k-p;S<0?(M=y,m=y+1):w=y-1}return M}function u(v,p,b,m,w){for(var M=m-1;m<=w;){var y=m+w>>>1,k=v[y],S=b!==void 0?b(k,p):k-p;S<=0?(M=y,m=y+1):w=y-1}return M}function s(v,p,b,m,w){for(;m<=w;){var M=m+w>>>1,y=v[M],k=b!==void 0?b(y,p):y-p;if(k===0)return M;k<=0?m=M+1:w=M-1}return-1}function f(v,p,b,m,w,M){return typeof b=="function"?M(v,p,b,m===void 0?0:m|0,w===void 0?v.length-1:w|0):M(v,p,void 0,b===void 0?0:b|0,m===void 0?v.length-1:m|0)}a.exports={ge:function(v,p,b,m,w){return f(v,p,b,m,w,o)},gt:function(v,p,b,m,w){return f(v,p,b,m,w,i)},lt:function(v,p,b,m,w){return f(v,p,b,m,w,l)},le:function(v,p,b,m,w){return f(v,p,b,m,w,u)},eq:function(v,p,b,m,w){return f(v,p,b,m,w,s)}}},8828:function(a,o){"use strict";"use restrict";var i=32;o.INT_BITS=i,o.INT_MAX=2147483647,o.INT_MIN=-1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,v=(s>255)<<3,s>>>=v,f|=v,v=(s>15)<<2,s>>>=v,f|=v,v=(s>3)<<1,s>>>=v,f|=v,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var v=f,p=f,b=7;for(v>>>=1;v;v>>>=1)p<<=1,p|=v&1,--b;s[f]=p<>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,v){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,v&=1023,v=(v|v<<16)&4278190335,v=(v|v<<8)&251719695,v=(v|v<<4)&3272356035,v=(v|v<<2)&1227133513,s|v<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},6859:function(a,o,i){a=i.nmd(a),function(l,u){"use strict";function s(F,L){if(!F)throw new Error(L||"Assertion failed")}function f(F,L){F.super_=L;var P=function(){};P.prototype=L.prototype,F.prototype=new P,F.prototype.constructor=F}function v(F,L,P){if(v.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((L==="le"||L==="be")&&(P=L,L=10),this._init(F||0,L||10,P||"be"))}typeof l=="object"?l.exports=v:u.BN=v,v.BN=v,v.wordSize=26;var p;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?p=window.Buffer:p=i(7790).Buffer}catch(F){}v.isBN=function(L){return L instanceof v?!0:L!==null&&typeof L=="object"&&L.constructor.wordSize===v.wordSize&&Array.isArray(L.words)},v.max=function(L,P){return L.cmp(P)>0?L:P},v.min=function(L,P){return L.cmp(P)<0?L:P},v.prototype._init=function(L,P,O){if(typeof L=="number")return this._initNumber(L,P,O);if(typeof L=="object")return this._initArray(L,P,O);P==="hex"&&(P=16),s(P===(P|0)&&P>=2&&P<=36),L=L.toString().replace(/\s+/g,"");var U=0;L[0]==="-"&&(U++,this.negative=1),U=0;U-=3)$=L[U]|L[U-1]<<8|L[U-2]<<16,this.words[X]|=$<>>26-j&67108863,j+=24,j>=26&&(j-=26,X++);else if(O==="le")for(U=0,X=0;U>>26-j&67108863,j+=24,j>=26&&(j-=26,X++);return this.strip()};function b(F,L){var P=F.charCodeAt(L);return P>=65&&P<=70?P-55:P>=97&&P<=102?P-87:P-48&15}function m(F,L,P){var O=b(F,P);return P-1>=L&&(O|=b(F,P-1)<<4),O}v.prototype._parseHex=function(L,P,O){this.length=Math.ceil((L.length-P)/6),this.words=new Array(this.length);for(var U=0;U=P;U-=2)j=m(L,P,U)<=18?(X-=18,$+=1,this.words[$]|=j>>>26):X+=8;else{var Y=L.length-P;for(U=Y%2===0?P+1:P;U=18?(X-=18,$+=1,this.words[$]|=j>>>26):X+=8}this.strip()};function w(F,L,P,O){for(var U=0,X=Math.min(F.length,P),$=L;$=49?U+=j-49+10:j>=17?U+=j-17+10:U+=j}return U}v.prototype._parseBase=function(L,P,O){this.words=[0],this.length=1;for(var U=0,X=1;X<=67108863;X*=P)U++;U--,X=X/P|0;for(var $=L.length-O,j=$%U,Y=Math.min($,$-j)+O,q=0,K=O;K1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},v.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},v.prototype.inspect=function(){return(this.red?""};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];v.prototype.toString=function(L,P){L=L||10,P=P|0||1;var O;if(L===16||L==="hex"){O="";for(var U=0,X=0,$=0;$>>24-U&16777215,X!==0||$!==this.length-1?O=M[6-Y.length]+Y+O:O=Y+O,U+=2,U>=26&&(U-=26,$--)}for(X!==0&&(O=X.toString(16)+O);O.length%P!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(L===(L|0)&&L>=2&&L<=36){var q=y[L],K=k[L];O="";var ne=this.clone();for(ne.negative=0;!ne.isZero();){var Q=ne.modn(K).toString(L);ne=ne.idivn(K),ne.isZero()?O=Q+O:O=M[q-Q.length]+Q+O}for(this.isZero()&&(O="0"+O);O.length%P!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}s(!1,"Base should be between 2 and 36")},v.prototype.toNumber=function(){var L=this.words[0];return this.length===2?L+=this.words[1]*67108864:this.length===3&&this.words[2]===1?L+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-L:L},v.prototype.toJSON=function(){return this.toString(16)},v.prototype.toBuffer=function(L,P){return s(typeof p!="undefined"),this.toArrayLike(p,L,P)},v.prototype.toArray=function(L,P){return this.toArrayLike(Array,L,P)},v.prototype.toArrayLike=function(L,P,O){var U=this.byteLength(),X=O||Math.max(1,U);s(U<=X,"byte array longer than desired length"),s(X>0,"Requested array length <= 0"),this.strip();var $=P==="le",j=new L(X),Y,q,K=this.clone();if($){for(q=0;!K.isZero();q++)Y=K.andln(255),K.iushrn(8),j[q]=Y;for(;q=4096&&(O+=13,P>>>=13),P>=64&&(O+=7,P>>>=7),P>=8&&(O+=4,P>>>=4),P>=2&&(O+=2,P>>>=2),O+P},v.prototype._zeroBits=function(L){if(L===0)return 26;var P=L,O=0;return(P&8191)===0&&(O+=13,P>>>=13),(P&127)===0&&(O+=7,P>>>=7),(P&15)===0&&(O+=4,P>>>=4),(P&3)===0&&(O+=2,P>>>=2),(P&1)===0&&O++,O},v.prototype.bitLength=function(){var L=this.words[this.length-1],P=this._countBits(L);return(this.length-1)*26+P};function S(F){for(var L=new Array(F.bitLength()),P=0;P>>U}return L}v.prototype.zeroBits=function(){if(this.isZero())return 0;for(var L=0,P=0;PL.length?this.clone().ior(L):L.clone().ior(this)},v.prototype.uor=function(L){return this.length>L.length?this.clone().iuor(L):L.clone().iuor(this)},v.prototype.iuand=function(L){var P;this.length>L.length?P=L:P=this;for(var O=0;OL.length?this.clone().iand(L):L.clone().iand(this)},v.prototype.uand=function(L){return this.length>L.length?this.clone().iuand(L):L.clone().iuand(this)},v.prototype.iuxor=function(L){var P,O;this.length>L.length?(P=this,O=L):(P=L,O=this);for(var U=0;UL.length?this.clone().ixor(L):L.clone().ixor(this)},v.prototype.uxor=function(L){return this.length>L.length?this.clone().iuxor(L):L.clone().iuxor(this)},v.prototype.inotn=function(L){s(typeof L=="number"&&L>=0);var P=Math.ceil(L/26)|0,O=L%26;this._expand(P),O>0&&P--;for(var U=0;U0&&(this.words[U]=~this.words[U]&67108863>>26-O),this.strip()},v.prototype.notn=function(L){return this.clone().inotn(L)},v.prototype.setn=function(L,P){s(typeof L=="number"&&L>=0);var O=L/26|0,U=L%26;return this._expand(O+1),P?this.words[O]=this.words[O]|1<L.length?(O=this,U=L):(O=L,U=this);for(var X=0,$=0;$>>26;for(;X!==0&&$>>26;if(this.length=O.length,X!==0)this.words[this.length]=X,this.length++;else if(O!==this)for(;$L.length?this.clone().iadd(L):L.clone().iadd(this)},v.prototype.isub=function(L){if(L.negative!==0){L.negative=0;var P=this.iadd(L);return L.negative=1,P._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(L),this.negative=1,this._normSign();var O=this.cmp(L);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var U,X;O>0?(U=this,X=L):(U=L,X=this);for(var $=0,j=0;j>26,this.words[j]=P&67108863;for(;$!==0&&j>26,this.words[j]=P&67108863;if($===0&&j>>26,ne=Y&67108863,Q=Math.min(q,L.length-1),ie=Math.max(0,q-F.length+1);ie<=Q;ie++){var ee=q-ie|0;U=F.words[ee]|0,X=L.words[ie]|0,$=U*X+ne,K+=$/67108864|0,ne=$&67108863}P.words[q]=ne|0,Y=K|0}return Y!==0?P.words[q]=Y|0:P.length--,P.strip()}var T=function(L,P,O){var U=L.words,X=P.words,$=O.words,j=0,Y,q,K,ne=U[0]|0,Q=ne&8191,ie=ne>>>13,ee=U[1]|0,V=ee&8191,re=ee>>>13,H=U[2]|0,te=H&8191,ue=H>>>13,de=U[3]|0,ke=de&8191,Ae=de>>>13,ve=U[4]|0,Te=ve&8191,Ee=ve>>>13,Pe=U[5]|0,Se=Pe&8191,Ne=Pe>>>13,Be=U[6]|0,ge=Be&8191,we=Be>>>13,Me=U[7]|0,me=Me&8191,Re=Me>>>13,ce=U[8]|0,he=ce&8191,ye=ce>>>13,Ce=U[9]|0,ze=Ce&8191,qe=Ce>>>13,$e=X[0]|0,We=$e&8191,Ue=$e>>>13,Ge=X[1]|0,_e=Ge&8191,De=Ge>>>13,Ke=X[2]|0,Ye=Ke&8191,ar=Ke>>>13,se=X[3]|0,J=se&8191,ae=se>>>13,Le=X[4]|0,He=Le&8191,je=Le>>>13,nr=X[5]|0,fr=nr&8191,br=nr>>>13,Sr=X[6]|0,Mr=Sr&8191,Ar=Sr>>>13,nt=X[7]|0,Yr=nt&8191,mr=nt>>>13,ct=X[8]|0,Cr=ct&8191,Ur=ct>>>13,xt=X[9]|0,zr=xt&8191,Hr=xt>>>13;O.negative=L.negative^P.negative,O.length=19,Y=Math.imul(Q,We),q=Math.imul(Q,Ue),q=q+Math.imul(ie,We)|0,K=Math.imul(ie,Ue);var Ot=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,Y=Math.imul(V,We),q=Math.imul(V,Ue),q=q+Math.imul(re,We)|0,K=Math.imul(re,Ue),Y=Y+Math.imul(Q,_e)|0,q=q+Math.imul(Q,De)|0,q=q+Math.imul(ie,_e)|0,K=K+Math.imul(ie,De)|0;var Lt=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,Y=Math.imul(te,We),q=Math.imul(te,Ue),q=q+Math.imul(ue,We)|0,K=Math.imul(ue,Ue),Y=Y+Math.imul(V,_e)|0,q=q+Math.imul(V,De)|0,q=q+Math.imul(re,_e)|0,K=K+Math.imul(re,De)|0,Y=Y+Math.imul(Q,Ye)|0,q=q+Math.imul(Q,ar)|0,q=q+Math.imul(ie,Ye)|0,K=K+Math.imul(ie,ar)|0;var yn=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(yn>>>26)|0,yn&=67108863,Y=Math.imul(ke,We),q=Math.imul(ke,Ue),q=q+Math.imul(Ae,We)|0,K=Math.imul(Ae,Ue),Y=Y+Math.imul(te,_e)|0,q=q+Math.imul(te,De)|0,q=q+Math.imul(ue,_e)|0,K=K+Math.imul(ue,De)|0,Y=Y+Math.imul(V,Ye)|0,q=q+Math.imul(V,ar)|0,q=q+Math.imul(re,Ye)|0,K=K+Math.imul(re,ar)|0,Y=Y+Math.imul(Q,J)|0,q=q+Math.imul(Q,ae)|0,q=q+Math.imul(ie,J)|0,K=K+Math.imul(ie,ae)|0;var Gt=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,Y=Math.imul(Te,We),q=Math.imul(Te,Ue),q=q+Math.imul(Ee,We)|0,K=Math.imul(Ee,Ue),Y=Y+Math.imul(ke,_e)|0,q=q+Math.imul(ke,De)|0,q=q+Math.imul(Ae,_e)|0,K=K+Math.imul(Ae,De)|0,Y=Y+Math.imul(te,Ye)|0,q=q+Math.imul(te,ar)|0,q=q+Math.imul(ue,Ye)|0,K=K+Math.imul(ue,ar)|0,Y=Y+Math.imul(V,J)|0,q=q+Math.imul(V,ae)|0,q=q+Math.imul(re,J)|0,K=K+Math.imul(re,ae)|0,Y=Y+Math.imul(Q,He)|0,q=q+Math.imul(Q,je)|0,q=q+Math.imul(ie,He)|0,K=K+Math.imul(ie,je)|0;var Rt=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,Y=Math.imul(Se,We),q=Math.imul(Se,Ue),q=q+Math.imul(Ne,We)|0,K=Math.imul(Ne,Ue),Y=Y+Math.imul(Te,_e)|0,q=q+Math.imul(Te,De)|0,q=q+Math.imul(Ee,_e)|0,K=K+Math.imul(Ee,De)|0,Y=Y+Math.imul(ke,Ye)|0,q=q+Math.imul(ke,ar)|0,q=q+Math.imul(Ae,Ye)|0,K=K+Math.imul(Ae,ar)|0,Y=Y+Math.imul(te,J)|0,q=q+Math.imul(te,ae)|0,q=q+Math.imul(ue,J)|0,K=K+Math.imul(ue,ae)|0,Y=Y+Math.imul(V,He)|0,q=q+Math.imul(V,je)|0,q=q+Math.imul(re,He)|0,K=K+Math.imul(re,je)|0,Y=Y+Math.imul(Q,fr)|0,q=q+Math.imul(Q,br)|0,q=q+Math.imul(ie,fr)|0,K=K+Math.imul(ie,br)|0;var at=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(at>>>26)|0,at&=67108863,Y=Math.imul(ge,We),q=Math.imul(ge,Ue),q=q+Math.imul(we,We)|0,K=Math.imul(we,Ue),Y=Y+Math.imul(Se,_e)|0,q=q+Math.imul(Se,De)|0,q=q+Math.imul(Ne,_e)|0,K=K+Math.imul(Ne,De)|0,Y=Y+Math.imul(Te,Ye)|0,q=q+Math.imul(Te,ar)|0,q=q+Math.imul(Ee,Ye)|0,K=K+Math.imul(Ee,ar)|0,Y=Y+Math.imul(ke,J)|0,q=q+Math.imul(ke,ae)|0,q=q+Math.imul(Ae,J)|0,K=K+Math.imul(Ae,ae)|0,Y=Y+Math.imul(te,He)|0,q=q+Math.imul(te,je)|0,q=q+Math.imul(ue,He)|0,K=K+Math.imul(ue,je)|0,Y=Y+Math.imul(V,fr)|0,q=q+Math.imul(V,br)|0,q=q+Math.imul(re,fr)|0,K=K+Math.imul(re,br)|0,Y=Y+Math.imul(Q,Mr)|0,q=q+Math.imul(Q,Ar)|0,q=q+Math.imul(ie,Mr)|0,K=K+Math.imul(ie,Ar)|0;var It=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(It>>>26)|0,It&=67108863,Y=Math.imul(me,We),q=Math.imul(me,Ue),q=q+Math.imul(Re,We)|0,K=Math.imul(Re,Ue),Y=Y+Math.imul(ge,_e)|0,q=q+Math.imul(ge,De)|0,q=q+Math.imul(we,_e)|0,K=K+Math.imul(we,De)|0,Y=Y+Math.imul(Se,Ye)|0,q=q+Math.imul(Se,ar)|0,q=q+Math.imul(Ne,Ye)|0,K=K+Math.imul(Ne,ar)|0,Y=Y+Math.imul(Te,J)|0,q=q+Math.imul(Te,ae)|0,q=q+Math.imul(Ee,J)|0,K=K+Math.imul(Ee,ae)|0,Y=Y+Math.imul(ke,He)|0,q=q+Math.imul(ke,je)|0,q=q+Math.imul(Ae,He)|0,K=K+Math.imul(Ae,je)|0,Y=Y+Math.imul(te,fr)|0,q=q+Math.imul(te,br)|0,q=q+Math.imul(ue,fr)|0,K=K+Math.imul(ue,br)|0,Y=Y+Math.imul(V,Mr)|0,q=q+Math.imul(V,Ar)|0,q=q+Math.imul(re,Mr)|0,K=K+Math.imul(re,Ar)|0,Y=Y+Math.imul(Q,Yr)|0,q=q+Math.imul(Q,mr)|0,q=q+Math.imul(ie,Yr)|0,K=K+Math.imul(ie,mr)|0;var va=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(va>>>26)|0,va&=67108863,Y=Math.imul(he,We),q=Math.imul(he,Ue),q=q+Math.imul(ye,We)|0,K=Math.imul(ye,Ue),Y=Y+Math.imul(me,_e)|0,q=q+Math.imul(me,De)|0,q=q+Math.imul(Re,_e)|0,K=K+Math.imul(Re,De)|0,Y=Y+Math.imul(ge,Ye)|0,q=q+Math.imul(ge,ar)|0,q=q+Math.imul(we,Ye)|0,K=K+Math.imul(we,ar)|0,Y=Y+Math.imul(Se,J)|0,q=q+Math.imul(Se,ae)|0,q=q+Math.imul(Ne,J)|0,K=K+Math.imul(Ne,ae)|0,Y=Y+Math.imul(Te,He)|0,q=q+Math.imul(Te,je)|0,q=q+Math.imul(Ee,He)|0,K=K+Math.imul(Ee,je)|0,Y=Y+Math.imul(ke,fr)|0,q=q+Math.imul(ke,br)|0,q=q+Math.imul(Ae,fr)|0,K=K+Math.imul(Ae,br)|0,Y=Y+Math.imul(te,Mr)|0,q=q+Math.imul(te,Ar)|0,q=q+Math.imul(ue,Mr)|0,K=K+Math.imul(ue,Ar)|0,Y=Y+Math.imul(V,Yr)|0,q=q+Math.imul(V,mr)|0,q=q+Math.imul(re,Yr)|0,K=K+Math.imul(re,mr)|0,Y=Y+Math.imul(Q,Cr)|0,q=q+Math.imul(Q,Ur)|0,q=q+Math.imul(ie,Cr)|0,K=K+Math.imul(ie,Ur)|0;var Kn=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,Y=Math.imul(ze,We),q=Math.imul(ze,Ue),q=q+Math.imul(qe,We)|0,K=Math.imul(qe,Ue),Y=Y+Math.imul(he,_e)|0,q=q+Math.imul(he,De)|0,q=q+Math.imul(ye,_e)|0,K=K+Math.imul(ye,De)|0,Y=Y+Math.imul(me,Ye)|0,q=q+Math.imul(me,ar)|0,q=q+Math.imul(Re,Ye)|0,K=K+Math.imul(Re,ar)|0,Y=Y+Math.imul(ge,J)|0,q=q+Math.imul(ge,ae)|0,q=q+Math.imul(we,J)|0,K=K+Math.imul(we,ae)|0,Y=Y+Math.imul(Se,He)|0,q=q+Math.imul(Se,je)|0,q=q+Math.imul(Ne,He)|0,K=K+Math.imul(Ne,je)|0,Y=Y+Math.imul(Te,fr)|0,q=q+Math.imul(Te,br)|0,q=q+Math.imul(Ee,fr)|0,K=K+Math.imul(Ee,br)|0,Y=Y+Math.imul(ke,Mr)|0,q=q+Math.imul(ke,Ar)|0,q=q+Math.imul(Ae,Mr)|0,K=K+Math.imul(Ae,Ar)|0,Y=Y+Math.imul(te,Yr)|0,q=q+Math.imul(te,mr)|0,q=q+Math.imul(ue,Yr)|0,K=K+Math.imul(ue,mr)|0,Y=Y+Math.imul(V,Cr)|0,q=q+Math.imul(V,Ur)|0,q=q+Math.imul(re,Cr)|0,K=K+Math.imul(re,Ur)|0,Y=Y+Math.imul(Q,zr)|0,q=q+Math.imul(Q,Hr)|0,q=q+Math.imul(ie,zr)|0,K=K+Math.imul(ie,Hr)|0;var Fn=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,Y=Math.imul(ze,_e),q=Math.imul(ze,De),q=q+Math.imul(qe,_e)|0,K=Math.imul(qe,De),Y=Y+Math.imul(he,Ye)|0,q=q+Math.imul(he,ar)|0,q=q+Math.imul(ye,Ye)|0,K=K+Math.imul(ye,ar)|0,Y=Y+Math.imul(me,J)|0,q=q+Math.imul(me,ae)|0,q=q+Math.imul(Re,J)|0,K=K+Math.imul(Re,ae)|0,Y=Y+Math.imul(ge,He)|0,q=q+Math.imul(ge,je)|0,q=q+Math.imul(we,He)|0,K=K+Math.imul(we,je)|0,Y=Y+Math.imul(Se,fr)|0,q=q+Math.imul(Se,br)|0,q=q+Math.imul(Ne,fr)|0,K=K+Math.imul(Ne,br)|0,Y=Y+Math.imul(Te,Mr)|0,q=q+Math.imul(Te,Ar)|0,q=q+Math.imul(Ee,Mr)|0,K=K+Math.imul(Ee,Ar)|0,Y=Y+Math.imul(ke,Yr)|0,q=q+Math.imul(ke,mr)|0,q=q+Math.imul(Ae,Yr)|0,K=K+Math.imul(Ae,mr)|0,Y=Y+Math.imul(te,Cr)|0,q=q+Math.imul(te,Ur)|0,q=q+Math.imul(ue,Cr)|0,K=K+Math.imul(ue,Ur)|0,Y=Y+Math.imul(V,zr)|0,q=q+Math.imul(V,Hr)|0,q=q+Math.imul(re,zr)|0,K=K+Math.imul(re,Hr)|0;var Ma=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Ma>>>26)|0,Ma&=67108863,Y=Math.imul(ze,Ye),q=Math.imul(ze,ar),q=q+Math.imul(qe,Ye)|0,K=Math.imul(qe,ar),Y=Y+Math.imul(he,J)|0,q=q+Math.imul(he,ae)|0,q=q+Math.imul(ye,J)|0,K=K+Math.imul(ye,ae)|0,Y=Y+Math.imul(me,He)|0,q=q+Math.imul(me,je)|0,q=q+Math.imul(Re,He)|0,K=K+Math.imul(Re,je)|0,Y=Y+Math.imul(ge,fr)|0,q=q+Math.imul(ge,br)|0,q=q+Math.imul(we,fr)|0,K=K+Math.imul(we,br)|0,Y=Y+Math.imul(Se,Mr)|0,q=q+Math.imul(Se,Ar)|0,q=q+Math.imul(Ne,Mr)|0,K=K+Math.imul(Ne,Ar)|0,Y=Y+Math.imul(Te,Yr)|0,q=q+Math.imul(Te,mr)|0,q=q+Math.imul(Ee,Yr)|0,K=K+Math.imul(Ee,mr)|0,Y=Y+Math.imul(ke,Cr)|0,q=q+Math.imul(ke,Ur)|0,q=q+Math.imul(Ae,Cr)|0,K=K+Math.imul(Ae,Ur)|0,Y=Y+Math.imul(te,zr)|0,q=q+Math.imul(te,Hr)|0,q=q+Math.imul(ue,zr)|0,K=K+Math.imul(ue,Hr)|0;var xi=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(xi>>>26)|0,xi&=67108863,Y=Math.imul(ze,J),q=Math.imul(ze,ae),q=q+Math.imul(qe,J)|0,K=Math.imul(qe,ae),Y=Y+Math.imul(he,He)|0,q=q+Math.imul(he,je)|0,q=q+Math.imul(ye,He)|0,K=K+Math.imul(ye,je)|0,Y=Y+Math.imul(me,fr)|0,q=q+Math.imul(me,br)|0,q=q+Math.imul(Re,fr)|0,K=K+Math.imul(Re,br)|0,Y=Y+Math.imul(ge,Mr)|0,q=q+Math.imul(ge,Ar)|0,q=q+Math.imul(we,Mr)|0,K=K+Math.imul(we,Ar)|0,Y=Y+Math.imul(Se,Yr)|0,q=q+Math.imul(Se,mr)|0,q=q+Math.imul(Ne,Yr)|0,K=K+Math.imul(Ne,mr)|0,Y=Y+Math.imul(Te,Cr)|0,q=q+Math.imul(Te,Ur)|0,q=q+Math.imul(Ee,Cr)|0,K=K+Math.imul(Ee,Ur)|0,Y=Y+Math.imul(ke,zr)|0,q=q+Math.imul(ke,Hr)|0,q=q+Math.imul(Ae,zr)|0,K=K+Math.imul(Ae,Hr)|0;var Gi=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,Y=Math.imul(ze,He),q=Math.imul(ze,je),q=q+Math.imul(qe,He)|0,K=Math.imul(qe,je),Y=Y+Math.imul(he,fr)|0,q=q+Math.imul(he,br)|0,q=q+Math.imul(ye,fr)|0,K=K+Math.imul(ye,br)|0,Y=Y+Math.imul(me,Mr)|0,q=q+Math.imul(me,Ar)|0,q=q+Math.imul(Re,Mr)|0,K=K+Math.imul(Re,Ar)|0,Y=Y+Math.imul(ge,Yr)|0,q=q+Math.imul(ge,mr)|0,q=q+Math.imul(we,Yr)|0,K=K+Math.imul(we,mr)|0,Y=Y+Math.imul(Se,Cr)|0,q=q+Math.imul(Se,Ur)|0,q=q+Math.imul(Ne,Cr)|0,K=K+Math.imul(Ne,Ur)|0,Y=Y+Math.imul(Te,zr)|0,q=q+Math.imul(Te,Hr)|0,q=q+Math.imul(Ee,zr)|0,K=K+Math.imul(Ee,Hr)|0;var Yi=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,Y=Math.imul(ze,fr),q=Math.imul(ze,br),q=q+Math.imul(qe,fr)|0,K=Math.imul(qe,br),Y=Y+Math.imul(he,Mr)|0,q=q+Math.imul(he,Ar)|0,q=q+Math.imul(ye,Mr)|0,K=K+Math.imul(ye,Ar)|0,Y=Y+Math.imul(me,Yr)|0,q=q+Math.imul(me,mr)|0,q=q+Math.imul(Re,Yr)|0,K=K+Math.imul(Re,mr)|0,Y=Y+Math.imul(ge,Cr)|0,q=q+Math.imul(ge,Ur)|0,q=q+Math.imul(we,Cr)|0,K=K+Math.imul(we,Ur)|0,Y=Y+Math.imul(Se,zr)|0,q=q+Math.imul(Se,Hr)|0,q=q+Math.imul(Ne,zr)|0,K=K+Math.imul(Ne,Hr)|0;var Wi=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,Y=Math.imul(ze,Mr),q=Math.imul(ze,Ar),q=q+Math.imul(qe,Mr)|0,K=Math.imul(qe,Ar),Y=Y+Math.imul(he,Yr)|0,q=q+Math.imul(he,mr)|0,q=q+Math.imul(ye,Yr)|0,K=K+Math.imul(ye,mr)|0,Y=Y+Math.imul(me,Cr)|0,q=q+Math.imul(me,Ur)|0,q=q+Math.imul(Re,Cr)|0,K=K+Math.imul(Re,Ur)|0,Y=Y+Math.imul(ge,zr)|0,q=q+Math.imul(ge,Hr)|0,q=q+Math.imul(we,zr)|0,K=K+Math.imul(we,Hr)|0;var nn=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(nn>>>26)|0,nn&=67108863,Y=Math.imul(ze,Yr),q=Math.imul(ze,mr),q=q+Math.imul(qe,Yr)|0,K=Math.imul(qe,mr),Y=Y+Math.imul(he,Cr)|0,q=q+Math.imul(he,Ur)|0,q=q+Math.imul(ye,Cr)|0,K=K+Math.imul(ye,Ur)|0,Y=Y+Math.imul(me,zr)|0,q=q+Math.imul(me,Hr)|0,q=q+Math.imul(Re,zr)|0,K=K+Math.imul(Re,Hr)|0;var xo=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(xo>>>26)|0,xo&=67108863,Y=Math.imul(ze,Cr),q=Math.imul(ze,Ur),q=q+Math.imul(qe,Cr)|0,K=Math.imul(qe,Ur),Y=Y+Math.imul(he,zr)|0,q=q+Math.imul(he,Hr)|0,q=q+Math.imul(ye,zr)|0,K=K+Math.imul(ye,Hr)|0;var bi=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(bi>>>26)|0,bi&=67108863,Y=Math.imul(ze,zr),q=Math.imul(ze,Hr),q=q+Math.imul(qe,zr)|0,K=Math.imul(qe,Hr);var _i=(j+Y|0)+((q&8191)<<13)|0;return j=(K+(q>>>13)|0)+(_i>>>26)|0,_i&=67108863,$[0]=Ot,$[1]=Lt,$[2]=yn,$[3]=Gt,$[4]=Rt,$[5]=at,$[6]=It,$[7]=va,$[8]=Kn,$[9]=Fn,$[10]=Ma,$[11]=xi,$[12]=Gi,$[13]=Yi,$[14]=Wi,$[15]=nn,$[16]=xo,$[17]=bi,$[18]=_i,j!==0&&($[19]=j,O.length++),O};Math.imul||(T=x);function d(F,L,P){P.negative=L.negative^F.negative,P.length=F.length+L.length;for(var O=0,U=0,X=0;X>>26)|0,U+=$>>>26,$&=67108863}P.words[X]=j,O=$,$=U}return O!==0?P.words[X]=O:P.length--,P.strip()}function _(F,L,P){var O=new g;return O.mulp(F,L,P)}v.prototype.mulTo=function(L,P){var O,U=this.length+L.length;return this.length===10&&L.length===10?O=T(this,L,P):U<63?O=x(this,L,P):U<1024?O=d(this,L,P):O=_(this,L,P),O};function g(F,L){this.x=F,this.y=L}g.prototype.makeRBT=function(L){for(var P=new Array(L),O=v.prototype._countBits(L)-1,U=0;U>=1;return U},g.prototype.permute=function(L,P,O,U,X,$){for(var j=0;j<$;j++)U[j]=P[L[j]],X[j]=O[L[j]]},g.prototype.transform=function(L,P,O,U,X,$){this.permute($,L,P,O,U,X);for(var j=1;j>>1)X++;return 1<>>13,O[2*$+1]=X&8191,X=X>>>13;for($=2*P;$>=26,P+=U/67108864|0,P+=X>>>26,this.words[O]=X&67108863}return P!==0&&(this.words[O]=P,this.length++),this},v.prototype.muln=function(L){return this.clone().imuln(L)},v.prototype.sqr=function(){return this.mul(this)},v.prototype.isqr=function(){return this.imul(this.clone())},v.prototype.pow=function(L){var P=S(L);if(P.length===0)return new v(1);for(var O=this,U=0;U=0);var P=L%26,O=(L-P)/26,U=67108863>>>26-P<<26-P,X;if(P!==0){var $=0;for(X=0;X>>26-P}$&&(this.words[X]=$,this.length++)}if(O!==0){for(X=this.length-1;X>=0;X--)this.words[X+O]=this.words[X];for(X=0;X=0);var U;P?U=(P-P%26)/26:U=0;var X=L%26,$=Math.min((L-X)/26,this.length),j=67108863^67108863>>>X<$)for(this.length-=$,q=0;q=0&&(K!==0||q>=U);q--){var ne=this.words[q]|0;this.words[q]=K<<26-X|ne>>>X,K=ne&j}return Y&&K!==0&&(Y.words[Y.length++]=K),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},v.prototype.ishrn=function(L,P,O){return s(this.negative===0),this.iushrn(L,P,O)},v.prototype.shln=function(L){return this.clone().ishln(L)},v.prototype.ushln=function(L){return this.clone().iushln(L)},v.prototype.shrn=function(L){return this.clone().ishrn(L)},v.prototype.ushrn=function(L){return this.clone().iushrn(L)},v.prototype.testn=function(L){s(typeof L=="number"&&L>=0);var P=L%26,O=(L-P)/26,U=1<=0);var P=L%26,O=(L-P)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(P!==0&&O++,this.length=Math.min(O,this.length),P!==0){var U=67108863^67108863>>>P<=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+1),this},v.prototype.isubn=function(L){if(s(typeof L=="number"),s(L<67108864),L<0)return this.iaddn(-L);if(this.negative!==0)return this.negative=0,this.iaddn(L),this.negative=1,this;if(this.words[0]-=L,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var P=0;P>26)-(Y/67108864|0),this.words[X+O]=$&67108863}for(;X>26,this.words[X+O]=$&67108863;if(j===0)return this.strip();for(s(j===-1),j=0,X=0;X>26,this.words[X]=$&67108863;return this.negative=1,this.strip()},v.prototype._wordDiv=function(L,P){var O=this.length-L.length,U=this.clone(),X=L,$=X.words[X.length-1]|0,j=this._countBits($);O=26-j,O!==0&&(X=X.ushln(O),U.iushln(O),$=X.words[X.length-1]|0);var Y=U.length-X.length,q;if(P!=="mod"){q=new v(null),q.length=Y+1,q.words=new Array(q.length);for(var K=0;K=0;Q--){var ie=(U.words[X.length+Q]|0)*67108864+(U.words[X.length+Q-1]|0);for(ie=Math.min(ie/$|0,67108863),U._ishlnsubmul(X,ie,Q);U.negative!==0;)ie--,U.negative=0,U._ishlnsubmul(X,1,Q),U.isZero()||(U.negative^=1);q&&(q.words[Q]=ie)}return q&&q.strip(),U.strip(),P!=="div"&&O!==0&&U.iushrn(O),{div:q||null,mod:U}},v.prototype.divmod=function(L,P,O){if(s(!L.isZero()),this.isZero())return{div:new v(0),mod:new v(0)};var U,X,$;return this.negative!==0&&L.negative===0?($=this.neg().divmod(L,P),P!=="mod"&&(U=$.div.neg()),P!=="div"&&(X=$.mod.neg(),O&&X.negative!==0&&X.iadd(L)),{div:U,mod:X}):this.negative===0&&L.negative!==0?($=this.divmod(L.neg(),P),P!=="mod"&&(U=$.div.neg()),{div:U,mod:$.mod}):(this.negative&L.negative)!==0?($=this.neg().divmod(L.neg(),P),P!=="div"&&(X=$.mod.neg(),O&&X.negative!==0&&X.isub(L)),{div:$.div,mod:X}):L.length>this.length||this.cmp(L)<0?{div:new v(0),mod:this}:L.length===1?P==="div"?{div:this.divn(L.words[0]),mod:null}:P==="mod"?{div:null,mod:new v(this.modn(L.words[0]))}:{div:this.divn(L.words[0]),mod:new v(this.modn(L.words[0]))}:this._wordDiv(L,P)},v.prototype.div=function(L){return this.divmod(L,"div",!1).div},v.prototype.mod=function(L){return this.divmod(L,"mod",!1).mod},v.prototype.umod=function(L){return this.divmod(L,"mod",!0).mod},v.prototype.divRound=function(L){var P=this.divmod(L);if(P.mod.isZero())return P.div;var O=P.div.negative!==0?P.mod.isub(L):P.mod,U=L.ushrn(1),X=L.andln(1),$=O.cmp(U);return $<0||X===1&&$===0?P.div:P.div.negative!==0?P.div.isubn(1):P.div.iaddn(1)},v.prototype.modn=function(L){s(L<=67108863);for(var P=(1<<26)%L,O=0,U=this.length-1;U>=0;U--)O=(P*O+(this.words[U]|0))%L;return O},v.prototype.idivn=function(L){s(L<=67108863);for(var P=0,O=this.length-1;O>=0;O--){var U=(this.words[O]|0)+P*67108864;this.words[O]=U/L|0,P=U%L}return this.strip()},v.prototype.divn=function(L){return this.clone().idivn(L)},v.prototype.egcd=function(L){s(L.negative===0),s(!L.isZero());var P=this,O=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var U=new v(1),X=new v(0),$=new v(0),j=new v(1),Y=0;P.isEven()&&O.isEven();)P.iushrn(1),O.iushrn(1),++Y;for(var q=O.clone(),K=P.clone();!P.isZero();){for(var ne=0,Q=1;(P.words[0]&Q)===0&&ne<26;++ne,Q<<=1);if(ne>0)for(P.iushrn(ne);ne-- >0;)(U.isOdd()||X.isOdd())&&(U.iadd(q),X.isub(K)),U.iushrn(1),X.iushrn(1);for(var ie=0,ee=1;(O.words[0]&ee)===0&&ie<26;++ie,ee<<=1);if(ie>0)for(O.iushrn(ie);ie-- >0;)($.isOdd()||j.isOdd())&&($.iadd(q),j.isub(K)),$.iushrn(1),j.iushrn(1);P.cmp(O)>=0?(P.isub(O),U.isub($),X.isub(j)):(O.isub(P),$.isub(U),j.isub(X))}return{a:$,b:j,gcd:O.iushln(Y)}},v.prototype._invmp=function(L){s(L.negative===0),s(!L.isZero());var P=this,O=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var U=new v(1),X=new v(0),$=O.clone();P.cmpn(1)>0&&O.cmpn(1)>0;){for(var j=0,Y=1;(P.words[0]&Y)===0&&j<26;++j,Y<<=1);if(j>0)for(P.iushrn(j);j-- >0;)U.isOdd()&&U.iadd($),U.iushrn(1);for(var q=0,K=1;(O.words[0]&K)===0&&q<26;++q,K<<=1);if(q>0)for(O.iushrn(q);q-- >0;)X.isOdd()&&X.iadd($),X.iushrn(1);P.cmp(O)>=0?(P.isub(O),U.isub(X)):(O.isub(P),X.isub(U))}var ne;return P.cmpn(1)===0?ne=U:ne=X,ne.cmpn(0)<0&&ne.iadd(L),ne},v.prototype.gcd=function(L){if(this.isZero())return L.abs();if(L.isZero())return this.abs();var P=this.clone(),O=L.clone();P.negative=0,O.negative=0;for(var U=0;P.isEven()&&O.isEven();U++)P.iushrn(1),O.iushrn(1);do{for(;P.isEven();)P.iushrn(1);for(;O.isEven();)O.iushrn(1);var X=P.cmp(O);if(X<0){var $=P;P=O,O=$}else if(X===0||O.cmpn(1)===0)break;P.isub(O)}while(!0);return O.iushln(U)},v.prototype.invm=function(L){return this.egcd(L).a.umod(L)},v.prototype.isEven=function(){return(this.words[0]&1)===0},v.prototype.isOdd=function(){return(this.words[0]&1)===1},v.prototype.andln=function(L){return this.words[0]&L},v.prototype.bincn=function(L){s(typeof L=="number");var P=L%26,O=(L-P)/26,U=1<>>26,j&=67108863,this.words[$]=j}return X!==0&&(this.words[$]=X,this.length++),this},v.prototype.isZero=function(){return this.length===1&&this.words[0]===0},v.prototype.cmpn=function(L){var P=L<0;if(this.negative!==0&&!P)return-1;if(this.negative===0&&P)return 1;this.strip();var O;if(this.length>1)O=1;else{P&&(L=-L),s(L<=67108863,"Number is too big");var U=this.words[0]|0;O=U===L?0:UL.length)return 1;if(this.length=0;O--){var U=this.words[O]|0,X=L.words[O]|0;if(U!==X){UX&&(P=1);break}}return P},v.prototype.gtn=function(L){return this.cmpn(L)===1},v.prototype.gt=function(L){return this.cmp(L)===1},v.prototype.gten=function(L){return this.cmpn(L)>=0},v.prototype.gte=function(L){return this.cmp(L)>=0},v.prototype.ltn=function(L){return this.cmpn(L)===-1},v.prototype.lt=function(L){return this.cmp(L)===-1},v.prototype.lten=function(L){return this.cmpn(L)<=0},v.prototype.lte=function(L){return this.cmp(L)<=0},v.prototype.eqn=function(L){return this.cmpn(L)===0},v.prototype.eq=function(L){return this.cmp(L)===0},v.red=function(L){return new N(L)},v.prototype.toRed=function(L){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),L.convertTo(this)._forceRed(L)},v.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},v.prototype._forceRed=function(L){return this.red=L,this},v.prototype.forceRed=function(L){return s(!this.red,"Already a number in reduction context"),this._forceRed(L)},v.prototype.redAdd=function(L){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,L)},v.prototype.redIAdd=function(L){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,L)},v.prototype.redSub=function(L){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,L)},v.prototype.redISub=function(L){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,L)},v.prototype.redShl=function(L){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,L)},v.prototype.redMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.mul(this,L)},v.prototype.redIMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.imul(this,L)},v.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},v.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},v.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},v.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},v.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},v.prototype.redPow=function(L){return s(this.red&&!L.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,L)};var c={k256:null,p224:null,p192:null,p25519:null};function A(F,L){this.name=F,this.p=new v(L,16),this.n=this.p.bitLength(),this.k=new v(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}A.prototype._tmp=function(){var L=new v(null);return L.words=new Array(Math.ceil(this.n/13)),L},A.prototype.ireduce=function(L){var P=L,O;do this.split(P,this.tmp),P=this.imulK(P),P=P.iadd(this.tmp),O=P.bitLength();while(O>this.n);var U=O0?P.isub(this.p):P.strip!==void 0?P.strip():P._strip(),P},A.prototype.split=function(L,P){L.iushrn(this.n,0,P)},A.prototype.imulK=function(L){return L.imul(this.k)};function h(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(h,A),h.prototype.split=function(L,P){for(var O=4194303,U=Math.min(L.length,9),X=0;X>>22,$=j}$>>>=22,L.words[X-10]=$,$===0&&L.length>10?L.length-=10:L.length-=9},h.prototype.imulK=function(L){L.words[L.length]=0,L.words[L.length+1]=0,L.length+=2;for(var P=0,O=0;O>>=26,L.words[O]=X,P=U}return P!==0&&(L.words[L.length++]=P),L},v._prime=function(L){if(c[L])return c[L];var P;if(L==="k256")P=new h;else if(L==="p224")P=new R;else if(L==="p192")P=new E;else if(L==="p25519")P=new D;else throw new Error("Unknown prime "+L);return c[L]=P,P};function N(F){if(typeof F=="string"){var L=v._prime(F);this.m=L.p,this.prime=L}else s(F.gtn(1),"modulus must be greater than 1"),this.m=F,this.prime=null}N.prototype._verify1=function(L){s(L.negative===0,"red works only with positives"),s(L.red,"red works only with red numbers")},N.prototype._verify2=function(L,P){s((L.negative|P.negative)===0,"red works only with positives"),s(L.red&&L.red===P.red,"red works only with red numbers")},N.prototype.imod=function(L){return this.prime?this.prime.ireduce(L)._forceRed(this):L.umod(this.m)._forceRed(this)},N.prototype.neg=function(L){return L.isZero()?L.clone():this.m.sub(L)._forceRed(this)},N.prototype.add=function(L,P){this._verify2(L,P);var O=L.add(P);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},N.prototype.iadd=function(L,P){this._verify2(L,P);var O=L.iadd(P);return O.cmp(this.m)>=0&&O.isub(this.m),O},N.prototype.sub=function(L,P){this._verify2(L,P);var O=L.sub(P);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},N.prototype.isub=function(L,P){this._verify2(L,P);var O=L.isub(P);return O.cmpn(0)<0&&O.iadd(this.m),O},N.prototype.shl=function(L,P){return this._verify1(L),this.imod(L.ushln(P))},N.prototype.imul=function(L,P){return this._verify2(L,P),this.imod(L.imul(P))},N.prototype.mul=function(L,P){return this._verify2(L,P),this.imod(L.mul(P))},N.prototype.isqr=function(L){return this.imul(L,L.clone())},N.prototype.sqr=function(L){return this.mul(L,L)},N.prototype.sqrt=function(L){if(L.isZero())return L.clone();var P=this.m.andln(3);if(s(P%2===1),P===3){var O=this.m.add(new v(1)).iushrn(2);return this.pow(L,O)}for(var U=this.m.subn(1),X=0;!U.isZero()&&U.andln(1)===0;)X++,U.iushrn(1);s(!U.isZero());var $=new v(1).toRed(this),j=$.redNeg(),Y=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new v(2*q*q).toRed(this);this.pow(q,Y).cmp(j)!==0;)q.redIAdd(j);for(var K=this.pow(q,U),ne=this.pow(L,U.addn(1).iushrn(1)),Q=this.pow(L,U),ie=X;Q.cmp($)!==0;){for(var ee=Q,V=0;ee.cmp($)!==0;V++)ee=ee.redSqr();s(V=0;X--){for(var K=P.words[X],ne=q-1;ne>=0;ne--){var Q=K>>ne&1;if($!==U[0]&&($=this.sqr($)),Q===0&&j===0){Y=0;continue}j<<=1,j|=Q,Y++,!(Y!==O&&(X!==0||ne!==0))&&($=this.mul($,U[j]),Y=0,j=0)}q=26}return $},N.prototype.convertTo=function(L){var P=L.umod(this.m);return P===L?P.clone():P},N.prototype.convertFrom=function(L){var P=L.clone();return P.red=null,P},v.mont=function(L){return new I(L)};function I(F){N.call(this,F),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new v(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(I,N),I.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},I.prototype.convertFrom=function(L){var P=this.imod(L.mul(this.rinv));return P.red=null,P},I.prototype.imul=function(L,P){if(L.isZero()||P.isZero())return L.words[0]=0,L.length=1,L;var O=L.imul(P),U=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=O.isub(U).iushrn(this.shift),$=X;return X.cmp(this.m)>=0?$=X.isub(this.m):X.cmpn(0)<0&&($=X.iadd(this.m)),$._forceRed(this)},I.prototype.mul=function(L,P){if(L.isZero()||P.isZero())return new v(0)._forceRed(this);var O=L.mul(P),U=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=O.isub(U).iushrn(this.shift),$=X;return X.cmp(this.m)>=0?$=X.isub(this.m):X.cmpn(0)<0&&($=X.iadd(this.m)),$._forceRed(this)},I.prototype.invm=function(L){var P=this.imod(L._invmp(this.m).mul(this.r2));return P._forceRed(this)}}(a,this)},6204:function(a){"use strict";a.exports=o;function o(i){var l,u,s,f=i.length,v=0;for(l=0;l>>1;if(!(g<=0)){var c,A=l.mallocDouble(2*g*d),h=l.mallocInt32(d);if(d=v(k,g,A,h),d>0){if(g===1&&T)u.init(d),c=u.sweepComplete(g,x,0,d,A,h,0,d,A,h);else{var R=l.mallocDouble(2*g*_),E=l.mallocInt32(_);_=v(S,g,R,E),_>0&&(u.init(d+_),g===1?c=u.sweepBipartite(g,x,0,d,A,h,0,_,R,E):c=s(g,x,T,d,A,h,_,R,E),l.free(R),l.free(E))}l.free(A),l.free(h)}return c}}}var b;function m(k,S){b.push([k,S])}function w(k){return b=[],p(k,k,m,!0),b}function M(k,S){return b=[],p(k,S,m,!1),b}function y(k,S,x){switch(arguments.length){case 1:return w(k);case 2:return typeof S=="function"?p(k,k,S,!0):M(k,S);case 3:return p(k,S,x,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(a,o){"use strict";function i(){function s(p,b,m,w,M,y,k,S,x,T,d){for(var _=2*p,g=w,c=_*w;gx-S?s(p,b,m,w,M,y,k,S,x,T,d):f(p,b,m,w,M,y,k,S,x,T,d)}return v}function l(){function s(m,w,M,y,k,S,x,T,d,_,g){for(var c=2*m,A=y,h=c*y;A_-d?y?s(m,w,M,k,S,x,T,d,_,g,c):f(m,w,M,k,S,x,T,d,_,g,c):y?v(m,w,M,k,S,x,T,d,_,g,c):p(m,w,M,k,S,x,T,d,_,g,c)}return b}function u(s){return s?i():l()}o.partial=u(!1),o.full=u(!0)},7150:function(a,o,i){"use strict";a.exports=F;var l=i(1888),u=i(8828),s=i(2455),f=s.partial,v=s.full,p=i(855),b=i(3545),m=i(8105),w=128,M=1<<22,y=1<<22,k=m("!(lo>=p0)&&!(p1>=hi)"),S=m("lo===p0"),x=m("lo0;){K-=1;var ie=K*g,ee=h[ie],V=h[ie+1],re=h[ie+2],H=h[ie+3],te=h[ie+4],ue=h[ie+5],de=K*c,ke=R[de],Ae=R[de+1],ve=ue&1,Te=!!(ue&16),Ee=X,Pe=$,Se=Y,Ne=q;if(ve&&(Ee=Y,Pe=q,Se=X,Ne=$),!(ue&2&&(re=x(L,ee,V,re,Ee,Pe,Ae),V>=re))&&!(ue&4&&(V=T(L,ee,V,re,Ee,Pe,ke),V>=re))){var Be=re-V,ge=te-H;if(Te){if(L*Be*(Be+ge)m&&M[_+b]>T;--d,_-=k){for(var g=_,c=_+k,A=0;A>>1,T=2*p,d=x,_=M[T*x+b];k=R?(d=h,_=R):A>=D?(d=c,_=A):(d=E,_=D):R>=D?(d=h,_=R):D>=A?(d=c,_=A):(d=E,_=D);for(var F=T*(S-1),L=T*d,N=0;N=p0)&&!(p1>=hi)":b};function i(m){return o[m]}function l(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+c];if(R===x)if(g===h)g+=1,_+=T;else{for(var E=0;T>E;++E){var D=k[d+E];k[d+E]=k[_],k[_++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function u(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+c];if(RE;++E){var D=k[d+E];k[d+E]=k[_],k[_++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function s(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+A];if(R<=x)if(g===h)g+=1,_+=T;else{for(var E=0;T>E;++E){var D=k[d+E];k[d+E]=k[_],k[_++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function f(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+A];if(R<=x)if(g===h)g+=1,_+=T;else{for(var E=0;T>E;++E){var D=k[d+E];k[d+E]=k[_],k[_++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function v(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+c],E=k[d+A];if(R<=x&&x<=E)if(g===h)g+=1,_+=T;else{for(var D=0;T>D;++D){var N=k[d+D];k[d+D]=k[_],k[_++]=N}var I=S[h];S[h]=S[g],S[g++]=I}}return g}function p(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+c],E=k[d+A];if(RD;++D){var N=k[d+D];k[d+D]=k[_],k[_++]=N}var I=S[h];S[h]=S[g],S[g++]=I}}return g}function b(m,w,M,y,k,S,x,T){for(var d=2*m,_=d*M,g=_,c=M,A=w,h=m+w,R=M;y>R;++R,_+=d){var E=k[_+A],D=k[_+h];if(!(E>=x)&&!(T>=D))if(c===R)c+=1,g+=d;else{for(var N=0;d>N;++N){var I=k[_+N];k[_+N]=k[g],k[g++]=I}var F=S[R];S[R]=S[c],S[c++]=F}}return c}},4192:function(a){"use strict";a.exports=i;var o=32;function i(w,M){M<=4*o?l(0,M-1,w):m(0,M-1,w)}function l(w,M,y){for(var k=2*(w+1),S=w+1;S<=M;++S){for(var x=y[k++],T=y[k++],d=S,_=k-2;d-- >w;){var g=y[_-2],c=y[_-1];if(gy[M+1]:!0}function b(w,M,y,k){w*=2;var S=k[w];return S>1,d=T-k,_=T+k,g=S,c=d,A=T,h=_,R=x,E=w+1,D=M-1,N=0;p(g,c,y)&&(N=g,g=c,c=N),p(h,R,y)&&(N=h,h=R,R=N),p(g,A,y)&&(N=g,g=A,A=N),p(c,A,y)&&(N=c,c=A,A=N),p(g,h,y)&&(N=g,g=h,h=N),p(A,h,y)&&(N=A,A=h,h=N),p(c,R,y)&&(N=c,c=R,R=N),p(c,A,y)&&(N=c,c=A,A=N),p(h,R,y)&&(N=h,h=R,R=N);for(var I=y[2*c],F=y[2*c+1],L=y[2*h],P=y[2*h+1],O=2*g,U=2*A,X=2*R,$=2*S,j=2*T,Y=2*x,q=0;q<2;++q){var K=y[O+q],ne=y[U+q],Q=y[X+q];y[$+q]=K,y[j+q]=ne,y[Y+q]=Q}s(d,w,y),s(_,M,y);for(var ie=E;ie<=D;++ie)if(b(ie,I,F,y))ie!==E&&u(ie,E,y),++E;else if(!b(ie,L,P,y))for(;;)if(b(D,L,P,y)){b(D,I,F,y)?(f(ie,E,D,y),++E,--D):(u(ie,D,y),--D);break}else{if(--D>>1;s(k,ne);for(var Q=0,ie=0,j=0;j=f)ee=ee-f|0,x(m,w,ie--,ee);else if(ee>=0)x(p,b,Q--,ee);else if(ee<=-f){ee=-ee-f|0;for(var V=0;V>>1;s(k,ne);for(var Q=0,ie=0,ee=0,j=0;j>1===k[2*j+3]>>1&&(re=2,j+=1),V<0){for(var H=-(V>>1)-1,te=0;te>1)-1;re===0?x(p,b,Q--,H):re===1?x(m,w,ie--,H):re===2&&x(M,y,ee--,H)}}}function g(A,h,R,E,D,N,I,F,L,P,O,U){var X=0,$=2*A,j=h,Y=h+A,q=1,K=1;E?K=f:q=f;for(var ne=D;ne>>1;s(k,V);for(var re=0,ne=0;ne=f?(te=!E,Q-=f):(te=!!E,Q-=1),te)T(p,b,re++,Q);else{var ue=U[Q],de=$*Q,ke=O[de+h+1],Ae=O[de+h+1+A];e:for(var ve=0;ve>>1;s(k,Q);for(var ie=0,Y=0;Y=f)p[ie++]=q-f;else{q-=1;var V=O[q],re=X*q,H=P[re+h+1],te=P[re+h+1+A];e:for(var ue=0;ue=0;--ue)if(p[ue]===q){for(var ve=ue+1;ve0;){for(var S=b.pop(),M=b.pop(),x=-1,T=-1,y=w[M],_=1;_=0||(p.flip(M,S),s(v,p,b,x,M,T),s(v,p,b,M,T,x),s(v,p,b,T,S,x),s(v,p,b,S,x,T))}}},5023:function(a,o,i){"use strict";var l=i(2478);a.exports=b;function u(m,w,M,y,k,S,x){this.cells=m,this.neighbor=w,this.flags=y,this.constraint=M,this.active=k,this.next=S,this.boundary=x}var s=u.prototype;function f(m,w){return m[0]-w[0]||m[1]-w[1]||m[2]-w[2]}s.locate=function(){var m=[0,0,0];return function(w,M,y){var k=w,S=M,x=y;return M0||x.length>0;){for(;S.length>0;){var c=S.pop();if(T[c]!==-k){T[c]=k;for(var A=d[c],h=0;h<3;++h){var R=g[3*c+h];R>=0&&T[R]===0&&(_[3*c+h]?x.push(R):(S.push(R),T[R]=k))}}}var E=x;x=S,S=E,x.length=0,k=-k}var D=p(d,T,w);return M?D.concat(y.boundary):D}},8902:function(a,o,i){"use strict";var l=i(2478),u=i(3250)[3],s=0,f=1,v=2;a.exports=x;function p(T,d,_,g,c){this.a=T,this.b=d,this.idx=_,this.lowerIds=g,this.upperIds=c}function b(T,d,_,g){this.a=T,this.b=d,this.type=_,this.idx=g}function m(T,d){var _=T.a[0]-d.a[0]||T.a[1]-d.a[1]||T.type-d.type;return _||T.type!==s&&(_=u(T.a,T.b,d.b),_)?_:T.idx-d.idx}function w(T,d){return u(T.a,T.b,d)}function M(T,d,_,g,c){for(var A=l.lt(d,g,w),h=l.gt(d,g,w),R=A;R1&&u(_[D[I-2]],_[D[I-1]],g)>0;)T.push([D[I-1],D[I-2],c]),I-=1;D.length=I,D.push(c);for(var N=E.upperIds,I=N.length;I>1&&u(_[N[I-2]],_[N[I-1]],g)<0;)T.push([N[I-2],N[I-1],c]),I-=1;N.length=I,N.push(c)}}function y(T,d){var _;return T.a[0]E[0]&&c.push(new b(E,R,v,A),new b(R,E,f,A))}c.sort(m);for(var D=c[0].a[0]-(1+Math.abs(c[0].a[0]))*Math.pow(2,-52),N=[new p([D,1],[D,0],-1,[],[],[],[])],I=[],A=0,F=c.length;A=0}}(),s.removeTriangle=function(p,b,m){var w=this.stars;f(w[p],b,m),f(w[b],m,p),f(w[m],p,b)},s.addTriangle=function(p,b,m){var w=this.stars;w[p].push(b,m),w[b].push(m,p),w[m].push(p,b)},s.opposite=function(p,b){for(var m=this.stars[b],w=1,M=m.length;w=0;--L){var K=I[L];P=K[0];var ne=D[P],Q=ne[0],ie=ne[1],ee=E[Q],V=E[ie];if((ee[0]-V[0]||ee[1]-V[1])<0){var re=Q;Q=ie,ie=re}ne[0]=Q;var H=ne[1]=K[1],te;for(F&&(te=ne[2]);L>0&&I[L-1][0]===P;){var K=I[--L],ue=K[1];F?D.push([H,ue,te]):D.push([H,ue]),H=ue}F?D.push([H,ie,te]):D.push([H,ie])}return O}function d(E,D,N){for(var I=D.length,F=new l(I),L=[],P=0;PD[2]?1:0)}function c(E,D,N){if(E.length!==0){if(D)for(var I=0;I0||P.length>0}function R(E,D,N){var I;if(N){I=D;for(var F=new Array(D.length),L=0;LT+1)throw new Error(S+" map requires nshades to be at least size "+k.length);Array.isArray(b.alpha)?b.alpha.length!==2?d=[1,1]:d=b.alpha.slice():typeof b.alpha=="number"?d=[b.alpha,b.alpha]:d=[1,1],m=k.map(function(R){return Math.round(R.index*T)}),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var g=k.map(function(R,E){var D=k[E].index,N=k[E].rgb.slice();return N.length===4&&N[3]>=0&&N[3]<=1||(N[3]=d[0]+(d[1]-d[0])*D),N}),c=[];for(_=0;_=0}function b(m,w,M,y){var k=l(w,M,y);if(k===0){var S=u(l(m,w,M)),x=u(l(m,w,y));if(S===x){if(S===0){var T=p(m,w,M),d=p(m,w,y);return T===d?0:T?1:-1}return 0}else{if(x===0)return S>0||p(m,w,y)?-1:1;if(S===0)return x>0||p(m,w,M)?1:-1}return u(x-S)}var _=l(m,w,M);if(_>0)return k>0&&l(m,w,y)>0?1:-1;if(_<0)return k>0||l(m,w,y)>0?1:-1;var g=l(m,w,y);return g>0||p(m,w,M)?1:-1}},8572:function(a){"use strict";a.exports=function(i){return i<0?-1:i>0?1:0}},8507:function(a){a.exports=l;var o=Math.min;function i(u,s){return u-s}function l(u,s){var f=u.length,v=u.length-s.length;if(v)return v;switch(f){case 0:return 0;case 1:return u[0]-s[0];case 2:return u[0]+u[1]-s[0]-s[1]||o(u[0],u[1])-o(s[0],s[1]);case 3:var p=u[0]+u[1],b=s[0]+s[1];if(v=p+u[2]-(b+s[2]),v)return v;var m=o(u[0],u[1]),w=o(s[0],s[1]);return o(m,u[2])-o(w,s[2])||o(m+u[2],p)-o(w+s[2],b);case 4:var M=u[0],y=u[1],k=u[2],S=u[3],x=s[0],T=s[1],d=s[2],_=s[3];return M+y+k+S-(x+T+d+_)||o(M,y,k,S)-o(x,T,d,_,x)||o(M+y,M+k,M+S,y+k,y+S,k+S)-o(x+T,x+d,x+_,T+d,T+_,d+_)||o(M+y+k,M+y+S,M+k+S,y+k+S)-o(x+T+d,x+T+_,x+d+_,T+d+_);default:for(var g=u.slice().sort(i),c=s.slice().sort(i),A=0;Ai[u][0]&&(u=s);return lu?[[u],[l]]:[[l]]}},4750:function(a,o,i){"use strict";a.exports=u;var l=i(3090);function u(s){var f=l(s),v=f.length;if(v<=2)return[];for(var p=new Array(v),b=f[v-1],m=0;m=b[x]&&(S+=1);y[k]=S}}return p}function v(p,b){try{return l(p,!0)}catch(y){var m=u(p);if(m.length<=b)return[];var w=s(p,m),M=l(w,!0);return f(M,m)}}},4769:function(a){"use strict";function o(l,u,s,f,v,p){var b=6*v*v-6*v,m=3*v*v-4*v+1,w=-6*v*v+6*v,M=3*v*v-2*v;if(l.length){p||(p=new Array(l.length));for(var y=l.length-1;y>=0;--y)p[y]=b*l[y]+m*u[y]+w*s[y]+M*f[y];return p}return b*l+m*u+w*s[y]+M*f}function i(l,u,s,f,v,p){var b=v-1,m=v*v,w=b*b,M=(1+2*v)*w,y=v*w,k=m*(3-2*v),S=m*b;if(l.length){p||(p=new Array(l.length));for(var x=l.length-1;x>=0;--x)p[x]=M*l[x]+y*u[x]+k*s[x]+S*f[x];return p}return M*l+y*u+k*s+S*f}a.exports=i,a.exports.derivative=o},7642:function(a,o,i){"use strict";var l=i(8954),u=i(1682);a.exports=p;function s(b,m){this.point=b,this.index=m}function f(b,m){for(var w=b.point,M=m.point,y=w.length,k=0;k=2)return!1;N[F]=L}return!0}):D=D.filter(function(N){for(var I=0;I<=M;++I){var F=A[N[I]];if(F<0)return!1;N[I]=F}return!0}),M&1)for(var S=0;S>>31},a.exports.exponent=function(k){var S=a.exports.hi(k);return(S<<1>>>21)-1023},a.exports.fraction=function(k){var S=a.exports.lo(k),x=a.exports.hi(k),T=x&(1<<20)-1;return x&2146435072&&(T+=1048576),[S,T]},a.exports.denormalized=function(k){var S=a.exports.hi(k);return!(S&2146435072)}},1338:function(a){"use strict";function o(u,s,f){var v=u[f]|0;if(v<=0)return[];var p=new Array(v),b;if(f===u.length-1)for(b=0;b0)return i(u|0,s);break;case"object":if(typeof u.length=="number")return o(u,s,0);break}return[]}a.exports=l},3134:function(a,o,i){"use strict";a.exports=u;var l=i(1682);function u(s,f){var v=s.length;if(typeof f!="number"){f=0;for(var p=0;p=M-1)for(var _=S.length-1,c=m-w[M-1],g=0;g=M-1)for(var d=S.length-1,_=m-w[M-1],g=0;g=0;--M)if(m[--w])return!1;return!0},v.jump=function(m){var w=this.lastT(),M=this.dimension;if(!(m0;--g)y.push(s(T[g-1],d[g-1],arguments[g])),k.push(0)}},v.push=function(m){var w=this.lastT(),M=this.dimension;if(!(m1e-6?1/x:0;this._time.push(m);for(var c=M;c>0;--c){var A=s(d[c-1],_[c-1],arguments[c]);y.push(A),k.push((A-y[S++])*g)}}},v.set=function(m){var w=this.dimension;if(!(m0;--T)M.push(s(S[T-1],x[T-1],arguments[T])),y.push(0)}},v.move=function(m){var w=this.lastT(),M=this.dimension;if(!(m<=w||arguments.length!==M+1)){var y=this._state,k=this._velocity,S=y.length-this.dimension,x=this.bounds,T=x[0],d=x[1],_=m-w,g=_>1e-6?1/_:0;this._time.push(m);for(var c=M;c>0;--c){var A=arguments[c];y.push(s(T[c-1],d[c-1],y[S++]+A)),k.push(A*g)}}},v.idle=function(m){var w=this.lastT();if(!(m=0;--g)y.push(s(T[g],d[g],y[S]+_*k[S])),k.push(0),S+=1}};function p(m){for(var w=new Array(m),M=0;M=0;--E){var c=A[E];h[E]<=0?A[E]=new l(c._color,c.key,c.value,A[E+1],c.right,c._count+1):A[E]=new l(c._color,c.key,c.value,c.left,A[E+1],c._count+1)}for(var E=A.length-1;E>1;--E){var D=A[E-1],c=A[E];if(D._color===i||c._color===i)break;var N=A[E-2];if(N.left===D)if(D.left===c){var I=N.right;if(I&&I._color===o)D._color=i,N.right=s(i,I),N._color=o,E-=1;else{if(N._color=o,N.left=D.right,D._color=i,D.right=N,A[E-2]=D,A[E-1]=c,f(N),f(D),E>=3){var F=A[E-3];F.left===N?F.left=D:F.right=D}break}}else{var I=N.right;if(I&&I._color===o)D._color=i,N.right=s(i,I),N._color=o,E-=1;else{if(D.right=c.left,N._color=o,N.left=c.right,c._color=i,c.left=D,c.right=N,A[E-2]=c,A[E-1]=D,f(N),f(D),f(c),E>=3){var F=A[E-3];F.left===N?F.left=c:F.right=c}break}}else if(D.right===c){var I=N.left;if(I&&I._color===o)D._color=i,N.left=s(i,I),N._color=o,E-=1;else{if(N._color=o,N.right=D.left,D._color=i,D.left=N,A[E-2]=D,A[E-1]=c,f(N),f(D),E>=3){var F=A[E-3];F.right===N?F.right=D:F.left=D}break}}else{var I=N.left;if(I&&I._color===o)D._color=i,N.left=s(i,I),N._color=o,E-=1;else{if(D.left=c.right,N._color=o,N.right=c.left,c._color=i,c.right=D,c.left=N,A[E-2]=c,A[E-1]=D,f(N),f(D),f(c),E>=3){var F=A[E-3];F.right===N?F.right=c:F.left=c}break}}}return A[0]._color=i,new v(g,A[0])};function b(d,_){if(_.left){var g=b(d,_.left);if(g)return g}var g=d(_.key,_.value);if(g)return g;if(_.right)return b(d,_.right)}function m(d,_,g,c){var A=_(d,c.key);if(A<=0){if(c.left){var h=m(d,_,g,c.left);if(h)return h}var h=g(c.key,c.value);if(h)return h}if(c.right)return m(d,_,g,c.right)}function w(d,_,g,c,A){var h=g(d,A.key),R=g(_,A.key),E;if(h<=0&&(A.left&&(E=w(d,_,g,c,A.left),E)||R>0&&(E=c(A.key,A.value),E)))return E;if(R>0&&A.right)return w(d,_,g,c,A.right)}p.forEach=function(_,g,c){if(this.root)switch(arguments.length){case 1:return b(_,this.root);case 2:return m(g,this._compare,_,this.root);case 3:return this._compare(g,c)>=0?void 0:w(g,c,this._compare,_,this.root)}},Object.defineProperty(p,"begin",{get:function(){for(var d=[],_=this.root;_;)d.push(_),_=_.left;return new M(this,d)}}),Object.defineProperty(p,"end",{get:function(){for(var d=[],_=this.root;_;)d.push(_),_=_.right;return new M(this,d)}}),p.at=function(d){if(d<0)return new M(this,[]);for(var _=this.root,g=[];;){if(g.push(_),_.left){if(d<_.left._count){_=_.left;continue}d-=_.left._count}if(!d)return new M(this,g);if(d-=1,_.right){if(d>=_.right._count)break;_=_.right}else break}return new M(this,[])},p.ge=function(d){for(var _=this._compare,g=this.root,c=[],A=0;g;){var h=_(d,g.key);c.push(g),h<=0&&(A=c.length),h<=0?g=g.left:g=g.right}return c.length=A,new M(this,c)},p.gt=function(d){for(var _=this._compare,g=this.root,c=[],A=0;g;){var h=_(d,g.key);c.push(g),h<0&&(A=c.length),h<0?g=g.left:g=g.right}return c.length=A,new M(this,c)},p.lt=function(d){for(var _=this._compare,g=this.root,c=[],A=0;g;){var h=_(d,g.key);c.push(g),h>0&&(A=c.length),h<=0?g=g.left:g=g.right}return c.length=A,new M(this,c)},p.le=function(d){for(var _=this._compare,g=this.root,c=[],A=0;g;){var h=_(d,g.key);c.push(g),h>=0&&(A=c.length),h<0?g=g.left:g=g.right}return c.length=A,new M(this,c)},p.find=function(d){for(var _=this._compare,g=this.root,c=[];g;){var A=_(d,g.key);if(c.push(g),A===0)return new M(this,c);A<=0?g=g.left:g=g.right}return new M(this,[])},p.remove=function(d){var _=this.find(d);return _?_.remove():this},p.get=function(d){for(var _=this._compare,g=this.root;g;){var c=_(d,g.key);if(c===0)return g.value;c<=0?g=g.left:g=g.right}};function M(d,_){this.tree=d,this._stack=_}var y=M.prototype;Object.defineProperty(y,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(y,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),y.clone=function(){return new M(this.tree,this._stack.slice())};function k(d,_){d.key=_.key,d.value=_.value,d.left=_.left,d.right=_.right,d._color=_._color,d._count=_._count}function S(d){for(var _,g,c,A,h=d.length-1;h>=0;--h){if(_=d[h],h===0){_._color=i;return}if(g=d[h-1],g.left===_){if(c=g.right,c.right&&c.right._color===o){if(c=g.right=u(c),A=c.right=u(c.right),g.right=c.left,c.left=g,c.right=A,c._color=g._color,_._color=i,g._color=i,A._color=i,f(g),f(c),h>1){var R=d[h-2];R.left===g?R.left=c:R.right=c}d[h-1]=c;return}else if(c.left&&c.left._color===o){if(c=g.right=u(c),A=c.left=u(c.left),g.right=A.left,c.left=A.right,A.left=g,A.right=c,A._color=g._color,g._color=i,c._color=i,_._color=i,f(g),f(c),f(A),h>1){var R=d[h-2];R.left===g?R.left=A:R.right=A}d[h-1]=A;return}if(c._color===i)if(g._color===o){g._color=i,g.right=s(o,c);return}else{g.right=s(o,c);continue}else{if(c=u(c),g.right=c.left,c.left=g,c._color=g._color,g._color=o,f(g),f(c),h>1){var R=d[h-2];R.left===g?R.left=c:R.right=c}d[h-1]=c,d[h]=g,h+11){var R=d[h-2];R.right===g?R.right=c:R.left=c}d[h-1]=c;return}else if(c.right&&c.right._color===o){if(c=g.left=u(c),A=c.right=u(c.right),g.left=A.right,c.right=A.left,A.right=g,A.left=c,A._color=g._color,g._color=i,c._color=i,_._color=i,f(g),f(c),f(A),h>1){var R=d[h-2];R.right===g?R.right=A:R.left=A}d[h-1]=A;return}if(c._color===i)if(g._color===o){g._color=i,g.left=s(o,c);return}else{g.left=s(o,c);continue}else{if(c=u(c),g.left=c.right,c.right=g,c._color=g._color,g._color=o,f(g),f(c),h>1){var R=d[h-2];R.right===g?R.right=c:R.left=c}d[h-1]=c,d[h]=g,h+1=0;--c){var g=d[c];g.left===d[c+1]?_[c]=new l(g._color,g.key,g.value,_[c+1],g.right,g._count):_[c]=new l(g._color,g.key,g.value,g.left,_[c+1],g._count)}if(g=_[_.length-1],g.left&&g.right){var A=_.length;for(g=g.left;g.right;)_.push(g),g=g.right;var h=_[A-1];_.push(new l(g._color,h.key,h.value,g.left,g.right,g._count)),_[A-1].key=g.key,_[A-1].value=g.value;for(var c=_.length-2;c>=A;--c)g=_[c],_[c]=new l(g._color,g.key,g.value,g.left,_[c+1],g._count);_[A-1].left=_[A]}if(g=_[_.length-1],g._color===o){var R=_[_.length-2];R.left===g?R.left=null:R.right===g&&(R.right=null),_.pop();for(var c=0;c<_.length;++c)_[c]._count--;return new v(this.tree._compare,_[0])}else if(g.left||g.right){g.left?k(g,g.left):g.right&&k(g,g.right),g._color=i;for(var c=0;c<_.length-1;++c)_[c]._count--;return new v(this.tree._compare,_[0])}else{if(_.length===1)return new v(this.tree._compare,null);for(var c=0;c<_.length;++c)_[c]._count--;var E=_[_.length-2];S(_),E.left===g?E.left=null:E.right=null}return new v(this.tree._compare,_[0])},Object.defineProperty(y,"key",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(y,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(y,"index",{get:function(){var d=0,_=this._stack;if(_.length===0){var g=this.tree.root;return g?g._count:0}else _[_.length-1].left&&(d=_[_.length-1].left._count);for(var c=_.length-2;c>=0;--c)_[c+1]===_[c].right&&(++d,_[c].left&&(d+=_[c].left._count));return d},enumerable:!0}),y.next=function(){var d=this._stack;if(d.length!==0){var _=d[d.length-1];if(_.right)for(_=_.right;_;)d.push(_),_=_.left;else for(d.pop();d.length>0&&d[d.length-1].right===_;)_=d[d.length-1],d.pop()}},Object.defineProperty(y,"hasNext",{get:function(){var d=this._stack;if(d.length===0)return!1;if(d[d.length-1].right)return!0;for(var _=d.length-1;_>0;--_)if(d[_-1].left===d[_])return!0;return!1}}),y.update=function(d){var _=this._stack;if(_.length===0)throw new Error("Can't update empty node!");var g=new Array(_.length),c=_[_.length-1];g[g.length-1]=new l(c._color,c.key,d,c.left,c.right,c._count);for(var A=_.length-2;A>=0;--A)c=_[A],c.left===_[A+1]?g[A]=new l(c._color,c.key,c.value,g[A+1],c.right,c._count):g[A]=new l(c._color,c.key,c.value,c.left,g[A+1],c._count);return new v(this.tree._compare,g[0])},y.prev=function(){var d=this._stack;if(d.length!==0){var _=d[d.length-1];if(_.left)for(_=_.left;_;)d.push(_),_=_.right;else for(d.pop();d.length>0&&d[d.length-1].left===_;)_=d[d.length-1],d.pop()}},Object.defineProperty(y,"hasPrev",{get:function(){var d=this._stack;if(d.length===0)return!1;if(d[d.length-1].left)return!0;for(var _=d.length-1;_>0;--_)if(d[_-1].right===d[_])return!0;return!1}});function x(d,_){return d<_?-1:d>_?1:0}function T(d){return new v(d||x,null)}},3837:function(a,o,i){"use strict";a.exports=E;var l=i(4935),u=i(501),s=i(5304),f=i(6429),v=i(6444),p=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),b=ArrayBuffer,m=DataView;function w(D){return b.isView(D)&&!(D instanceof m)}function M(D){return Array.isArray(D)||w(D)}function y(D,N){return D[0]=N[0],D[1]=N[1],D[2]=N[2],D}function k(D){this.gl=D,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=s(D)}var S=k.prototype;S.update=function(D){D=D||{};function N(Q,ie,ee){if(ee in D){var V=D[ee],re=this[ee],H;(Q?M(V)&&M(V[0]):M(V))?this[ee]=H=[ie(V[0]),ie(V[1]),ie(V[2])]:this[ee]=H=[ie(V),ie(V),ie(V)];for(var te=0;te<3;++te)if(H[te]!==re[te])return!0}return!1}var I=N.bind(this,!1,Number),F=N.bind(this,!1,Boolean),L=N.bind(this,!1,String),P=N.bind(this,!0,function(Q){if(M(Q)){if(Q.length===3)return[+Q[0],+Q[1],+Q[2],1];if(Q.length===4)return[+Q[0],+Q[1],+Q[2],+Q[3]]}return[0,0,0,1]}),O,U=!1,X=!1;if("bounds"in D)for(var $=D.bounds,j=0;j<2;++j)for(var Y=0;Y<3;++Y)$[j][Y]!==this.bounds[j][Y]&&(X=!0),this.bounds[j][Y]=$[j][Y];if("ticks"in D){O=D.ticks,U=!0,this.autoTicks=!1;for(var j=0;j<3;++j)this.tickSpacing[j]=0}else I("tickSpacing")&&(this.autoTicks=!0,X=!0);if(this._firstInit&&("ticks"in D||"tickSpacing"in D||(this.autoTicks=!0),X=!0,U=!0,this._firstInit=!1),X&&this.autoTicks&&(O=v.create(this.bounds,this.tickSpacing),U=!0),U){for(var j=0;j<3;++j)O[j].sort(function(ie,ee){return ie.x-ee.x});v.equal(O,this.ticks)?U=!1:this.ticks=O}F("tickEnable"),L("tickFont")&&(U=!0),L("tickFontStyle")&&(U=!0),L("tickFontWeight")&&(U=!0),L("tickFontVariant")&&(U=!0),I("tickSize"),I("tickAngle"),I("tickPad"),P("tickColor");var q=L("labels");L("labelFont")&&(q=!0),L("labelFontStyle")&&(q=!0),L("labelFontWeight")&&(q=!0),L("labelFontVariant")&&(q=!0),F("labelEnable"),I("labelSize"),I("labelPad"),P("labelColor"),F("lineEnable"),F("lineMirror"),I("lineWidth"),P("lineColor"),F("lineTickEnable"),F("lineTickMirror"),I("lineTickLength"),I("lineTickWidth"),P("lineTickColor"),F("gridEnable"),I("gridWidth"),P("gridColor"),F("zeroEnable"),P("zeroLineColor"),I("zeroLineWidth"),F("backgroundEnable"),P("backgroundColor");var K=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],ne=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(q||U)&&this._text.update(this.bounds,this.labels,K,this.ticks,ne):this._text=l(this.gl,this.bounds,this.labels,K,this.ticks,ne),this._lines&&U&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function x(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var T=[new x,new x,new x];function d(D,N,I,F,L){for(var P=D.primalOffset,O=D.primalMinor,U=D.mirrorOffset,X=D.mirrorMinor,$=F[N],j=0;j<3;++j)if(N!==j){var Y=P,q=U,K=O,ne=X;$&1<0?(K[j]=-1,ne[j]=0):(K[j]=0,ne[j]=1)}}var _=[0,0,0],g={model:p,view:p,projection:p,_ortho:!1};S.isOpaque=function(){return!0},S.isTransparent=function(){return!1},S.drawTransparent=function(D){};var c=0,A=[0,0,0],h=[0,0,0],R=[0,0,0];S.draw=function(D){D=D||g;for(var ee=this.gl,N=D.model||p,I=D.view||p,F=D.projection||p,L=this.bounds,P=D._ortho||!1,O=f(N,I,F,L,P),U=O.cubeEdges,X=O.axis,$=I[12],j=I[13],Y=I[14],q=I[15],K=P?2:1,ne=K*this.pixelRatio*(F[3]*$+F[7]*j+F[11]*Y+F[15]*q)/ee.drawingBufferHeight,Q=0;Q<3;++Q)this.lastCubeProps.cubeEdges[Q]=U[Q],this.lastCubeProps.axis[Q]=X[Q];for(var ie=T,Q=0;Q<3;++Q)d(T[Q],Q,this.bounds,U,X);for(var ee=this.gl,V=_,Q=0;Q<3;++Q)this.backgroundEnable[Q]?V[Q]=X[Q]:V[Q]=0;this._background.draw(N,I,F,L,V,this.backgroundColor),this._lines.bind(N,I,F,this);for(var Q=0;Q<3;++Q){var re=[0,0,0];X[Q]>0?re[Q]=L[1][Q]:re[Q]=L[0][Q];for(var H=0;H<2;++H){var te=(Q+1+H)%3,ue=(Q+1+(H^1))%3;this.gridEnable[te]&&this._lines.drawGrid(te,ue,this.bounds,re,this.gridColor[te],this.gridWidth[te]*this.pixelRatio)}for(var H=0;H<2;++H){var te=(Q+1+H)%3,ue=(Q+1+(H^1))%3;this.zeroEnable[ue]&&Math.min(L[0][ue],L[1][ue])<=0&&Math.max(L[0][ue],L[1][ue])>=0&&this._lines.drawZero(te,ue,this.bounds,re,this.zeroLineColor[ue],this.zeroLineWidth[ue]*this.pixelRatio)}}for(var Q=0;Q<3;++Q){this.lineEnable[Q]&&this._lines.drawAxisLine(Q,this.bounds,ie[Q].primalOffset,this.lineColor[Q],this.lineWidth[Q]*this.pixelRatio),this.lineMirror[Q]&&this._lines.drawAxisLine(Q,this.bounds,ie[Q].mirrorOffset,this.lineColor[Q],this.lineWidth[Q]*this.pixelRatio);for(var de=y(A,ie[Q].primalMinor),ke=y(h,ie[Q].mirrorMinor),Ae=this.lineTickLength,H=0;H<3;++H){var ve=ne/N[5*H];de[H]*=Ae[H]*ve,ke[H]*=Ae[H]*ve}this.lineTickEnable[Q]&&this._lines.drawAxisTicks(Q,ie[Q].primalOffset,de,this.lineTickColor[Q],this.lineTickWidth[Q]*this.pixelRatio),this.lineTickMirror[Q]&&this._lines.drawAxisTicks(Q,ie[Q].mirrorOffset,ke,this.lineTickColor[Q],this.lineTickWidth[Q]*this.pixelRatio)}this._lines.unbind(),this._text.bind(N,I,F,this.pixelRatio);var Te,Ee=.5,Pe,Se;function Ne(Re){Se=[0,0,0],Se[Re]=1}function Be(Re,ce,he){var ye=(Re+1)%3,Ce=(Re+2)%3,ze=ce[ye],qe=ce[Ce],$e=he[ye],We=he[Ce];if(ze>0&&We>0){Ne(ye);return}else if(ze>0&&We<0){Ne(ye);return}else if(ze<0&&We>0){Ne(ye);return}else if(ze<0&&We<0){Ne(ye);return}else if(qe>0&&$e>0){Ne(Ce);return}else if(qe>0&&$e<0){Ne(Ce);return}else if(qe<0&&$e>0){Ne(Ce);return}else if(qe<0&&$e<0){Ne(Ce);return}}for(var Q=0;Q<3;++Q){for(var ge=ie[Q].primalMinor,we=ie[Q].mirrorMinor,Me=y(R,ie[Q].primalOffset),H=0;H<3;++H)this.lineTickEnable[Q]&&(Me[H]+=ne*ge[H]*Math.max(this.lineTickLength[H],0)/N[5*H]);var me=[0,0,0];if(me[Q]=1,this.tickEnable[Q]){this.tickAngle[Q]===-3600?(this.tickAngle[Q]=0,this.tickAlign[Q]="auto"):this.tickAlign[Q]=-1,Pe=1,Te=[this.tickAlign[Q],Ee,Pe],Te[0]==="auto"?Te[0]=c:Te[0]=parseInt(""+Te[0]),Se=[0,0,0],Be(Q,ge,we);for(var H=0;H<3;++H)Me[H]+=ne*ge[H]*this.tickPad[H]/N[5*H];this._text.drawTicks(Q,this.tickSize[Q],this.tickAngle[Q],Me,this.tickColor[Q],me,Se,Te)}if(this.labelEnable[Q]){Pe=0,Se=[0,0,0],this.labels[Q].length>4&&(Ne(Q),Pe=1),Te=[this.labelAlign[Q],Ee,Pe],Te[0]==="auto"?Te[0]=c:Te[0]=parseInt(""+Te[0]);for(var H=0;H<3;++H)Me[H]+=ne*ge[H]*this.labelPad[H]/N[5*H];Me[Q]+=.5*(L[0][Q]+L[1][Q]),this._text.drawLabel(Q,this.labelSize[Q],this.labelAngle[Q],Me,this.labelColor[Q],[0,0,0],Se,Te)}}this._text.unbind()},S.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function E(D,N){var I=new k(D);return I.update(N),I}},5304:function(a,o,i){"use strict";a.exports=p;var l=i(2762),u=i(8116),s=i(1879).bg;function f(b,m,w,M){this.gl=b,this.buffer=m,this.vao=w,this.shader=M}var v=f.prototype;v.draw=function(b,m,w,M,y,k){for(var S=!1,x=0;x<3;++x)S=S||y[x];if(S){var T=this.gl;T.enable(T.POLYGON_OFFSET_FILL),T.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:b,view:m,projection:w,bounds:M,enable:y,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),T.disable(T.POLYGON_OFFSET_FILL)}},v.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function p(b){for(var m=[],w=[],M=0,y=0;y<3;++y)for(var k=(y+1)%3,S=(y+2)%3,x=[0,0,0],T=[0,0,0],d=-1;d<=1;d+=2){w.push(M,M+2,M+1,M+1,M+2,M+3),x[y]=d,T[y]=d;for(var _=-1;_<=1;_+=2){x[k]=_;for(var g=-1;g<=1;g+=2)x[S]=g,m.push(x[0],x[1],x[2],T[0],T[1],T[2]),M+=1}var c=k;k=S,S=c}var A=l(b,new Float32Array(m)),h=l(b,new Uint16Array(w),b.ELEMENT_ARRAY_BUFFER),R=u(b,[{buffer:A,type:b.FLOAT,size:3,offset:0,stride:24},{buffer:A,type:b.FLOAT,size:3,offset:12,stride:24}],h),E=s(b);return E.attributes.position.location=0,E.attributes.normal.location=1,new f(b,A,R,E)}},6429:function(a,o,i){"use strict";a.exports=d;var l=i(8828),u=i(6760),s=i(5202),f=i(3250),v=new Array(16),p=new Array(8),b=new Array(8),m=new Array(3),w=[0,0,0];(function(){for(var _=0;_<8;++_)p[_]=[1,1,1,1],b[_]=[1,1,1]})();function M(_,g,c){for(var A=0;A<4;++A){_[A]=c[12+A];for(var h=0;h<3;++h)_[A]+=g[h]*c[4*h+A]}}var y=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function k(_){for(var g=0;gX&&(I|=1<X){I|=1<b[E][1])&&(ie=E);for(var ee=-1,E=0;E<3;++E){var V=ie^1<b[re][0]&&(re=V)}}var H=S;H[0]=H[1]=H[2]=0,H[l.log2(ee^ie)]=ie&ee,H[l.log2(ie^re)]=ie&re;var te=re^7;te===I||te===Q?(te=ee^7,H[l.log2(re^te)]=te&re):H[l.log2(ee^te)]=teⅇfor(var ue=x,de=I,P=0;P<3;++P)de&1<24?(isFinite(z)&&(clearTimeout(j0),j0=setTimeout(Rd,z)),$0=0):($0=1,G5(Rd))}e.timer.flush=function(){Y5(),W5()};function Y5(){for(var C=Date.now(),z=K0;z;)C>=z.t&&z.c(C-z.t)&&(z.c=null),z=z.n;return C}function W5(){for(var C,z=K0,B=1/0;z;)z.c?(z.t=0;--oe)Oe.push(W[xe[Ie[oe]][2]]);for(oe=+Qe;oe1&&je(C[B[G-2]],C[B[G-1]],C[W])<=0;)--G;B[G++]=W}return B.slice(0,G)}function Sq(C,z){return C[0]-z[0]||C[1]-z[1]}e.geom.polygon=function(C){return q(C,rc),C};var rc=e.geom.polygon.prototype=[];rc.area=function(){for(var C=-1,z=this.length,B,G=this[z-1],W=0;++CDe)oe=oe.L;else if(le=z-Rq(oe,B),le>De){if(!oe.R){G=oe;break}oe=oe.R}else{Z>-De?(G=oe.P,W=oe):le>-De?(G=oe,W=oe.N):G=W=oe;break}var fe=Q5(C);if(_s.insert(G,fe),!(!G&&!W)){if(G===W){Ms(G),W=Q5(G.site),_s.insert(fe,W),fe.edge=W.edge=Qu(G.site,fe.site),ws(G),ws(W);return}if(!W){fe.edge=Qu(G.site,fe.site);return}Ms(G),Ms(W);var xe=G.site,be=xe.x,Ie=xe.y,Fe=C.x-be,Qe=C.y-Ie,rr=W.site,Oe=rr.x-be,Ve=rr.y-Ie,Xe=2*(Fe*Ve-Qe*Oe),er=Fe*Fe+Qe*Qe,tr=Oe*Oe+Ve*Ve,Je={x:(Ve*er-Qe*tr)/Xe+be,y:(Fe*tr-Oe*er)/Xe+Ie};tc(W.edge,xe,rr,Je),fe.edge=Qu(xe,C,null,Je),W.edge=Qu(C,rr,null,Je),ws(G),ws(W)}}function $5(C,z){var B=C.site,G=B.x,W=B.y,Z=W-z;if(!Z)return G;var le=C.P;if(!le)return-1/0;B=le.site;var oe=B.x,fe=B.y,xe=fe-z;if(!xe)return oe;var be=oe-G,Ie=1/Z-1/xe,Fe=be/xe;return Ie?(-Fe+Math.sqrt(Fe*Fe-2*Ie*(be*be/(-2*xe)-fe+xe/2+W-Z/2)))/Ie+G:(G+oe)/2}function Rq(C,z){var B=C.N;if(B)return $5(B,z);var G=C.site;return G.y===z?G.x:1/0}function j5(C){this.site=C,this.edges=[]}j5.prototype.prepare=function(){for(var C=this.edges,z=C.length,B;z--;)B=C[z].edge,(!B.b||!B.a)&&C.splice(z,1);return C.sort(ex),C.length};function Dq(C){for(var z=C[0][0],B=C[1][0],G=C[0][1],W=C[1][1],Z,le,oe,fe,xe=dl,be=xe.length,Ie,Fe,Qe,rr,Oe,Ve;be--;)if(Ie=xe[be],!(!Ie||!Ie.prepare()))for(Qe=Ie.edges,rr=Qe.length,Fe=0;FeDe||y(fe-le)>De)&&(Qe.splice(Fe,0,new nc(zq(Ie.site,Ve,y(oe-z)De?{x:z,y:y(Z-z)De?{x:y(le-W)De?{x:B,y:y(Z-B)De?{x:y(le-G)=-Ke)){var Fe=fe*fe+xe*xe,Qe=be*be+Ve*Ve,rr=(Ve*Fe-xe*Qe)/Ie,Oe=(fe*Qe-be*Fe)/Ie,Ve=Oe+oe,Xe=K5.pop()||new Pq;Xe.arc=C,Xe.site=W,Xe.x=rr+le,Xe.y=Ve+Math.sqrt(rr*rr+Oe*Oe),Xe.cy=Ve,C.circle=Xe;for(var er=null,tr=Ku._;tr;)if(Xe.y0)){if(Oe/=Qe,Qe<0){if(Oe0){if(Oe>Fe)return;Oe>Ie&&(Ie=Oe)}if(Oe=B-oe,!(!Qe&&Oe<0)){if(Oe/=Qe,Qe<0){if(Oe>Fe)return;Oe>Ie&&(Ie=Oe)}else if(Qe>0){if(Oe0)){if(Oe/=rr,rr<0){if(Oe0){if(Oe>Fe)return;Oe>Ie&&(Ie=Oe)}if(Oe=G-fe,!(!rr&&Oe<0)){if(Oe/=rr,rr<0){if(Oe>Fe)return;Oe>Ie&&(Ie=Oe)}else if(rr>0){if(Oe0&&(W.a={x:oe+Ie*Qe,y:fe+Ie*rr}),Fe<1&&(W.b={x:oe+Fe*Qe,y:fe+Fe*rr}),W}}}}}}function Fq(C){for(var z=bs,B=Iq(C[0][0],C[0][1],C[1][0],C[1][1]),G=z.length,W;G--;)W=z[G],(!Nq(W,C)||!B(W)||y(W.a.x-W.b.x)=Z)return;if(be>Fe){if(!G)G={x:rr,y:le};else if(G.y>=oe)return;B={x:rr,y:oe}}else{if(!G)G={x:rr,y:oe};else if(G.y1)if(be>Fe){if(!G)G={x:(le-Xe)/Ve,y:le};else if(G.y>=oe)return;B={x:(oe-Xe)/Ve,y:oe}}else{if(!G)G={x:(oe-Xe)/Ve,y:oe};else if(G.y=Z)return;B={x:Z,y:Ve*Z+Xe}}else{if(!G)G={x:Z,y:Ve*Z+Xe};else if(G.x=be&&Xe.x<=Fe&&Xe.y>=Ie&&Xe.y<=Qe?[[be,Qe],[Fe,Qe],[Fe,Ie],[be,Ie]]:[];er.point=fe[Oe]}),xe}function oe(fe){return fe.map(function(xe,be){return{x:Math.round(G(xe,be)/De)*De,y:Math.round(W(xe,be)/De)*De,i:be}})}return le.links=function(fe){return zd(oe(fe)).edges.filter(function(xe){return xe.l&&xe.r}).map(function(xe){return{source:fe[xe.l.i],target:fe[xe.r.i]}})},le.triangles=function(fe){var xe=[];return zd(oe(fe)).cells.forEach(function(be,Ie){for(var Fe=be.site,Qe=be.edges.sort(ex),rr=-1,Oe=Qe.length,Ve,Xe,er=Qe[Oe-1].edge,tr=er.l===Fe?er.r:er.l;++rrtr&&(tr=be.x),be.y>Je&&(Je=be.y),Qe.push(be.x),rr.push(be.y);else for(Oe=0;Oetr&&(tr=or),dr>Je&&(Je=dr),Qe.push(or),rr.push(dr)}var yr=tr-Xe,pr=Je-er;yr>pr?Je=er+yr:tr=Xe+pr;function _r(Tr,Pr,ut,Bt,dt,cr,Or,Vr){if(!(isNaN(ut)||isNaN(Bt)))if(Tr.leaf){var ft=Tr.x,Pt=Tr.y;if(ft!=null)if(y(ft-ut)+y(Pt-Bt)<.01)wr(Tr,Pr,ut,Bt,dt,cr,Or,Vr);else{var $t=Tr.point;Tr.x=Tr.y=Tr.point=null,wr(Tr,$t,ft,Pt,dt,cr,Or,Vr),wr(Tr,Pr,ut,Bt,dt,cr,Or,Vr)}else Tr.x=ut,Tr.y=Bt,Tr.point=Pr}else wr(Tr,Pr,ut,Bt,dt,cr,Or,Vr)}function wr(Tr,Pr,ut,Bt,dt,cr,Or,Vr){var ft=(dt+Or)*.5,Pt=(cr+Vr)*.5,$t=ut>=ft,bn=Bt>=Pt,Fn=bn<<1|$t;Tr.leaf=!1,Tr=Tr.nodes[Fn]||(Tr.nodes[Fn]=nx()),$t?dt=ft:Or=ft,bn?cr=Pt:Vr=Pt,_r(Tr,Pr,ut,Bt,dt,cr,Or,Vr)}var qr=nx();if(qr.add=function(Tr){_r(qr,Tr,+Ie(Tr,++Oe),+Fe(Tr,Oe),Xe,er,tr,Je)},qr.visit=function(Tr){ef(Tr,qr,Xe,er,tr,Je)},qr.find=function(Tr){return Hq(qr,Tr[0],Tr[1],Xe,er,tr,Je)},Oe=-1,z==null){for(;++OeZ||Fe>le||Qe=or,pr=B>=dr,_r=pr<<1|yr,wr=_r+4;_rB&&(Z=z.slice(B,Z),oe[le]?oe[le]+=Z:oe[++le]=Z),(G=G[0])===(W=W[0])?oe[le]?oe[le]+=W:oe[++le]=W:(oe[++le]=null,fe.push({i:le,x:Xi(G,W)})),B=Bd.lastIndex;return B=0&&!(G=e.interpolators[B](C,z)););return G}e.interpolators=[function(C,z){var B=typeof z;return(B==="string"?xn.has(z.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(z)?qd:ix:z instanceof xt?qd:Array.isArray(z)?oc:B==="object"&&isNaN(z)?ax:Xi)(C,z)}],e.interpolateArray=oc;function oc(C,z){var B=[],G=[],W=C.length,Z=z.length,le=Math.min(C.length,z.length),oe;for(oe=0;oe=0?C.slice(0,z):C,G=z>=0?C.slice(z+1):"in";return B=Vq.get(B)||ox,G=Gq.get(G)||N,Yq(G(B.apply(null,r.call(arguments,1))))};function Yq(C){return function(z){return z<=0?0:z>=1?1:C(z)}}function lx(C){return function(z){return 1-C(1-z)}}function sx(C){return function(z){return .5*(z<.5?C(2*z):2-C(2-2*z))}}function Wq(C){return C*C}function Xq(C){return C*C*C}function Zq(C){if(C<=0)return 0;if(C>=1)return 1;var z=C*C,B=z*C;return 4*(C<.5?B:3*(C-z)+B-.75)}function Jq(C){return function(z){return Math.pow(z,C)}}function Kq(C){return 1-Math.cos(C*J)}function Qq(C){return Math.pow(2,10*(C-1))}function $q(C){return 1-Math.sqrt(1-C*C)}function jq(C,z){var B;return arguments.length<2&&(z=.45),arguments.length?B=z/ar*Math.asin(1/C):(C=1,B=z/4),function(G){return 1+C*Math.pow(2,-10*G)*Math.sin((G-B)*ar/z)}}function eO(C){return C||(C=1.70158),function(z){return z*z*((C+1)*z-C)}}function rO(C){return C<1/2.75?7.5625*C*C:C<2/2.75?7.5625*(C-=1.5/2.75)*C+.75:C<2.5/2.75?7.5625*(C-=2.25/2.75)*C+.9375:7.5625*(C-=2.625/2.75)*C+.984375}e.interpolateHcl=tO;function tO(C,z){C=e.hcl(C),z=e.hcl(z);var B=C.h,G=C.c,W=C.l,Z=z.h-B,le=z.c-G,oe=z.l-W;return isNaN(le)&&(le=0,G=isNaN(G)?z.c:G),isNaN(Z)?(Z=0,B=isNaN(B)?z.h:B):Z>180?Z-=360:Z<-180&&(Z+=360),function(fe){return Yt(B+Z*fe,G+le*fe,W+oe*fe)+""}}e.interpolateHsl=nO;function nO(C,z){C=e.hsl(C),z=e.hsl(z);var B=C.h,G=C.s,W=C.l,Z=z.h-B,le=z.s-G,oe=z.l-W;return isNaN(le)&&(le=0,G=isNaN(G)?z.s:G),isNaN(Z)?(Z=0,B=isNaN(B)?z.h:B):Z>180?Z-=360:Z<-180&&(Z+=360),function(fe){return Ot(B+Z*fe,G+le*fe,W+oe*fe)+""}}e.interpolateLab=aO;function aO(C,z){C=e.lab(C),z=e.lab(z);var B=C.l,G=C.a,W=C.b,Z=z.l-B,le=z.a-G,oe=z.b-W;return function(fe){return Ma(B+Z*fe,G+le*fe,W+oe*fe)+""}}e.interpolateRound=ux;function ux(C,z){return z-=C,function(B){return Math.round(C+z*B)}}e.transform=function(C){var z=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(B){if(B!=null){z.setAttribute("transform",B);var G=z.transform.baseVal.consolidate()}return new fx(G?G.matrix:oO)})(C)};function fx(C){var z=[C.a,C.b],B=[C.c,C.d],G=vx(z),W=cx(z,B),Z=vx(iO(B,z,-W))||0;z[0]*B[1]180?z+=360:z-C>180&&(C+=360),G.push({i:B.push(Ts(B)+"rotate(",null,")")-2,x:Xi(C,z)})):z&&B.push(Ts(B)+"rotate("+z+")")}function uO(C,z,B,G){C!==z?G.push({i:B.push(Ts(B)+"skewX(",null,")")-2,x:Xi(C,z)}):z&&B.push(Ts(B)+"skewX("+z+")")}function fO(C,z,B,G){if(C[0]!==z[0]||C[1]!==z[1]){var W=B.push(Ts(B)+"scale(",null,",",null,")");G.push({i:W-4,x:Xi(C[0],z[0])},{i:W-2,x:Xi(C[1],z[1])})}else(z[0]!==1||z[1]!==1)&&B.push(Ts(B)+"scale("+z+")")}function hx(C,z){var B=[],G=[];return C=e.transform(C),z=e.transform(z),lO(C.translate,z.translate,B,G),sO(C.rotate,z.rotate,B,G),uO(C.skew,z.skew,B,G),fO(C.scale,z.scale,B,G),C=z=null,function(W){for(var Z=-1,le=G.length,oe;++Z0?Z=Je:(B.c=null,B.t=NaN,B=null,z.end({type:"end",alpha:Z=0})):Je>0&&(z.start({type:"start",alpha:Z=Je}),B=ec(C.tick)),C):Z},C.start=function(){var Je,or=Qe.length,dr=rr.length,yr=G[0],pr=G[1],_r,wr;for(Je=0;Je=0;)Z.push(be=xe[fe]),be.parent=oe,be.depth=oe.depth+1;B&&(oe.value=0),oe.children=xe}else B&&(oe.value=+B.call(G,oe,oe.depth)||0),delete oe.children;return wi(W,function(Ie){var Fe,Qe;C&&(Fe=Ie.children)&&Fe.sort(C),B&&(Qe=Ie.parent)&&(Qe.value+=Ie.value)}),le}return G.sort=function(W){return arguments.length?(C=W,G):C},G.children=function(W){return arguments.length?(z=W,G):z},G.value=function(W){return arguments.length?(B=W,G):B},G.revalue=function(W){return B&&(tf(W,function(Z){Z.children&&(Z.value=0)}),wi(W,function(Z){var le;Z.children||(Z.value=+B.call(G,Z,Z.depth)||0),(le=Z.parent)&&(le.value+=Z.value)})),W},G};function rf(C,z){return e.rebind(C,z,"sort","children","value"),C.nodes=C,C.links=AO,C}function tf(C,z){for(var B=[C];(C=B.pop())!=null;)if(z(C),(W=C.children)&&(G=W.length))for(var G,W;--G>=0;)B.push(W[G])}function wi(C,z){for(var B=[C],G=[];(C=B.pop())!=null;)if(G.push(C),(le=C.children)&&(Z=le.length))for(var W=-1,Z,le;++WW&&(W=oe),G.push(oe)}for(le=0;leG&&(B=z,G=W);return B}function DO(C){return C.reduce(PO,0)}function PO(C,z){return C+z[1]}e.layout.histogram=function(){var C=!0,z=Number,B=FO,G=IO;function W(Z,Fe){for(var oe=[],fe=Z.map(z,this),xe=B.call(this,fe,Fe),be=G.call(this,xe,fe,Fe),Ie,Fe=-1,Qe=fe.length,rr=be.length-1,Oe=C?1:1/Qe,Ve;++Fe0)for(Fe=-1;++Fe=xe[0]&&Ve<=xe[1]&&(Ie=oe[e.bisect(be,Ve,1,rr)-1],Ie.y+=Oe,Ie.push(Z[Fe]));return oe}return W.value=function(Z){return arguments.length?(z=Z,W):z},W.range=function(Z){return arguments.length?(B=Xr(Z),W):B},W.bins=function(Z){return arguments.length?(G=typeof Z=="number"?function(le){return yx(le,Z)}:Xr(Z),W):G},W.frequency=function(Z){return arguments.length?(C=!!Z,W):C},W};function IO(C,z){return yx(C,Math.ceil(Math.log(z.length)/Math.LN2+1))}function yx(C,z){for(var B=-1,G=+C[0],W=(C[1]-G)/z,Z=[];++B<=z;)Z[B]=W*B+G;return Z}function FO(C){return[e.min(C),e.max(C)]}e.layout.pack=function(){var C=e.layout.hierarchy().sort(NO),z=0,B=[1,1],G;function W(Z,le){var oe=C.call(this,Z,le),fe=oe[0],xe=B[0],be=B[1],Ie=G==null?Math.sqrt:typeof G=="function"?G:function(){return G};if(fe.x=fe.y=0,wi(fe,function(Qe){Qe.r=+Ie(Qe.value)}),wi(fe,bx),z){var Fe=z*(G?1:Math.max(2*fe.r/xe,2*fe.r/be))/2;wi(fe,function(Qe){Qe.r+=Fe}),wi(fe,bx),wi(fe,function(Qe){Qe.r-=Fe})}return _x(fe,xe/2,be/2,G?1:1/Math.max(2*fe.r/xe,2*fe.r/be)),oe}return W.size=function(Z){return arguments.length?(B=Z,W):B},W.radius=function(Z){return arguments.length?(G=Z==null||typeof Z=="function"?Z:+Z,W):G},W.padding=function(Z){return arguments.length?(z=+Z,W):z},rf(W,C)};function NO(C,z){return C.value-z.value}function Vd(C,z){var B=C._pack_next;C._pack_next=z,z._pack_prev=C,z._pack_next=B,B._pack_prev=z}function mx(C,z){C._pack_next=z,z._pack_prev=C}function xx(C,z){var B=z.x-C.x,G=z.y-C.y,W=C.r+z.r;return .999*W*W>B*B+G*G}function bx(C){if(!(z=C.children)||!(Fe=z.length))return;var z,B=1/0,G=-1/0,W=1/0,Z=-1/0,le,oe,fe,xe,be,Ie,Fe;function Qe(Je){B=Math.min(Je.x-Je.r,B),G=Math.max(Je.x+Je.r,G),W=Math.min(Je.y-Je.r,W),Z=Math.max(Je.y+Je.r,Z)}if(z.forEach(zO),le=z[0],le.x=-le.r,le.y=0,Qe(le),Fe>1&&(oe=z[1],oe.x=oe.r,oe.y=0,Qe(oe),Fe>2))for(fe=z[2],wx(le,oe,fe),Qe(fe),Vd(le,fe),le._pack_prev=fe,Vd(fe,oe),oe=le._pack_next,xe=3;xeVe.x&&(Ve=or),or.depth>Xe.depth&&(Xe=or)});var er=z(Oe,Ve)/2-Oe.x,tr=B[0]/(Ve.x+z(Ve,Oe)/2+er),Je=B[1]/(Xe.depth||1);tf(Qe,function(or){or.x=(or.x+er)*tr,or.y=or.depth*Je})}return Fe}function Z(be){for(var Ie={A:null,children:[be]},Fe=[Ie],Qe;(Qe=Fe.pop())!=null;)for(var rr=Qe.children,Oe,Ve=0,Xe=rr.length;Ve0&&(OO(UO(Oe,be,Fe),be,or),Xe+=or,er+=or),tr+=Oe.m,Xe+=Qe.m,Je+=Ve.m,er+=rr.m;Oe&&!Yd(rr)&&(rr.t=Oe,rr.m+=tr-er),Qe&&!Gd(Ve)&&(Ve.t=Qe,Ve.m+=Xe-Je,Fe=be)}return Fe}function xe(be){be.x*=B[0],be.y=be.depth*B[1]}return W.separation=function(be){return arguments.length?(z=be,W):z},W.size=function(be){return arguments.length?(G=(B=be)==null?xe:null,W):G?null:B},W.nodeSize=function(be){return arguments.length?(G=(B=be)==null?null:xe,W):G?B:null},rf(W,C)};function Mx(C,z){return C.parent==z.parent?1:2}function Gd(C){var z=C.children;return z.length?z[0]:C.t}function Yd(C){var z=C.children,B;return(B=z.length)?z[B-1]:C.t}function OO(C,z,B){var G=B/(z.i-C.i);z.c-=G,z.s+=B,C.c+=G,z.z+=B,z.m+=B}function BO(C){for(var z=0,B=0,G=C.children,W=G.length,Z;--W>=0;)Z=G[W],Z.z+=z,Z.m+=z,z+=Z.s+(B+=Z.c)}function UO(C,z,B){return C.a.parent===z.parent?C.a:B}e.layout.cluster=function(){var C=e.layout.hierarchy().sort(null).value(null),z=Mx,B=[1,1],G=!1;function W(Z,le){var oe=C.call(this,Z,le),fe=oe[0],xe,be=0;wi(fe,function(Oe){var Ve=Oe.children;Ve&&Ve.length?(Oe.x=VO(Ve),Oe.y=HO(Ve)):(Oe.x=xe?be+=z(Oe,xe):0,Oe.y=0,xe=Oe)});var Ie=Tx(fe),Fe=Ax(fe),Qe=Ie.x-z(Ie,Fe)/2,rr=Fe.x+z(Fe,Ie)/2;return wi(fe,G?function(Oe){Oe.x=(Oe.x-fe.x)*B[0],Oe.y=(fe.y-Oe.y)*B[1]}:function(Oe){Oe.x=(Oe.x-Qe)/(rr-Qe)*B[0],Oe.y=(1-(fe.y?Oe.y/fe.y:1))*B[1]}),oe}return W.separation=function(Z){return arguments.length?(z=Z,W):z},W.size=function(Z){return arguments.length?(G=(B=Z)==null,W):G?null:B},W.nodeSize=function(Z){return arguments.length?(G=(B=Z)!=null,W):G?B:null},rf(W,C)};function HO(C){return 1+e.max(C,function(z){return z.y})}function VO(C){return C.reduce(function(z,B){return z+B.x},0)/C.length}function Tx(C){var z=C.children;return z&&z.length?Tx(z[0]):C}function Ax(C){var z=C.children,B;return z&&(B=z.length)?Ax(z[B-1]):C}e.layout.treemap=function(){var C=e.layout.hierarchy(),z=Math.round,B=[1,1],G=null,W=Wd,Z=!1,le,oe="squarify",fe=.5*(1+Math.sqrt(5));function xe(Oe,Ve){for(var Xe=-1,er=Oe.length,tr,Je;++Xe0;)er.push(Je=tr[pr-1]),er.area+=Je.area,oe!=="squarify"||(dr=Fe(er,yr))<=or?(tr.pop(),or=dr):(er.area-=er.pop().area,Qe(er,yr,Xe,!1),yr=Math.min(Xe.dx,Xe.dy),er.length=er.area=0,or=1/0);er.length&&(Qe(er,yr,Xe,!0),er.length=er.area=0),Ve.forEach(be)}}function Ie(Oe){var Ve=Oe.children;if(Ve&&Ve.length){var Xe=W(Oe),er=Ve.slice(),tr,Je=[];for(xe(er,Xe.dx*Xe.dy/Oe.value),Je.area=0;tr=er.pop();)Je.push(tr),Je.area+=tr.area,tr.z!=null&&(Qe(Je,tr.z?Xe.dx:Xe.dy,Xe,!er.length),Je.length=Je.area=0);Ve.forEach(Ie)}}function Fe(Oe,Ve){for(var Xe=Oe.area,er,tr=0,Je=1/0,or=-1,dr=Oe.length;++ortr&&(tr=er));return Xe*=Xe,Ve*=Ve,Xe?Math.max(Ve*tr*fe/Xe,Xe/(Ve*Je*fe)):1/0}function Qe(Oe,Ve,Xe,er){var tr=-1,Je=Oe.length,or=Xe.x,dr=Xe.y,yr=Ve?z(Oe.area/Ve):0,pr;if(Ve==Xe.dx){for((er||yr>Xe.dy)&&(yr=Xe.dy);++trXe.dx)&&(yr=Xe.dx);++tr1);return C+z*G*Math.sqrt(-2*Math.log(Z)/Z)}},logNormal:function(){var C=e.random.normal.apply(e,arguments);return function(){return Math.exp(C())}},bates:function(C){var z=e.random.irwinHall(C);return function(){return z()/C}},irwinHall:function(C){return function(){for(var z=0,B=0;B2?WO:GO,xe=G?vO:cO;return W=fe(C,z,xe,B),Z=fe(z,C,xe,pl),oe}function oe(fe){return W(fe)}return oe.invert=function(fe){return Z(fe)},oe.domain=function(fe){return arguments.length?(C=fe.map(Number),le()):C},oe.range=function(fe){return arguments.length?(z=fe,le()):z},oe.rangeRound=function(fe){return oe.range(fe).interpolate(ux)},oe.clamp=function(fe){return arguments.length?(G=fe,le()):G},oe.interpolate=function(fe){return arguments.length?(B=fe,le()):B},oe.ticks=function(fe){return Jd(C,fe)},oe.tickFormat=function(fe,xe){return d3_scale_linearTickFormat(C,fe,xe)},oe.nice=function(fe){return Lx(C,fe),le()},oe.copy=function(){return Cx(C,z,B,G)},le()}function Ex(C,z){return e.rebind(C,z,"range","rangeRound","interpolate","clamp")}function Lx(C,z){return Xd(C,Sx(Zd(C,z)[2])),Xd(C,Sx(Zd(C,z)[2])),C}function Zd(C,z){z==null&&(z=10);var B=lc(C),G=B[1]-B[0],W=Math.pow(10,Math.floor(Math.log(G/z)/Math.LN10)),Z=z/G*W;return Z<=.15?W*=10:Z<=.35?W*=5:Z<=.75&&(W*=2),B[0]=Math.ceil(B[0]/W)*W,B[1]=Math.floor(B[1]/W)*W+W*.5,B[2]=W,B}function Jd(C,z){return e.range.apply(e,Zd(C,z))}var XO={s:1,g:1,p:1,r:1,e:1};function Rx(C){return-Math.floor(Math.log(C)/Math.LN10+.01)}function Due(C,z){var B=Rx(z[2]);return C in XO?Math.abs(B-Rx(Math.max(y(z[0]),y(z[1]))))+ +(C!=="e"):B-(C==="%")*2}e.scale.log=function(){return Dx(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Dx(C,z,B,G){function W(oe){return(B?Math.log(oe<0?0:oe):-Math.log(oe>0?0:-oe))/Math.log(z)}function Z(oe){return B?Math.pow(z,oe):-Math.pow(z,-oe)}function le(oe){return C(W(oe))}return le.invert=function(oe){return Z(C.invert(oe))},le.domain=function(oe){return arguments.length?(B=oe[0]>=0,C.domain((G=oe.map(Number)).map(W)),le):G},le.base=function(oe){return arguments.length?(z=+oe,C.domain(G.map(W)),le):z},le.nice=function(){var oe=Xd(G.map(W),B?Math:ZO);return C.domain(oe),G=oe.map(Z),le},le.ticks=function(){var oe=lc(G),fe=[],xe=oe[0],be=oe[1],Ie=Math.floor(W(xe)),Fe=Math.ceil(W(be)),Qe=z%1?2:z;if(isFinite(Fe-Ie)){if(B){for(;Ie0;rr--)fe.push(Z(Ie)*rr);for(Ie=0;fe[Ie]be;Fe--);fe=fe.slice(Ie,Fe)}return fe},le.copy=function(){return Dx(C.copy(),z,B,G)},Ex(le,C)}var ZO={floor:function(C){return-Math.ceil(-C)},ceil:function(C){return-Math.floor(-C)}};e.scale.pow=function(){return Px(e.scale.linear(),1,[0,1])};function Px(C,z,B){var G=uc(z),W=uc(1/z);function Z(le){return C(G(le))}return Z.invert=function(le){return W(C.invert(le))},Z.domain=function(le){return arguments.length?(C.domain((B=le.map(Number)).map(G)),Z):B},Z.ticks=function(le){return Jd(B,le)},Z.tickFormat=function(le,oe){return d3_scale_linearTickFormat(B,le,oe)},Z.nice=function(le){return Z.domain(Lx(B,le))},Z.exponent=function(le){return arguments.length?(G=uc(z=le),W=uc(1/z),C.domain(B.map(G)),Z):z},Z.copy=function(){return Px(C.copy(),z,B)},Ex(Z,C)}function uc(C){return function(z){return z<0?-Math.pow(-z,C):Math.pow(z,C)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Ix([],{t:"range",a:[[]]})};function Ix(C,z){var B,G,W;function Z(oe){return G[((B.get(oe)||(z.t==="range"?B.set(oe,C.push(oe)):NaN))-1)%G.length]}function le(oe,fe){return e.range(C.length).map(function(xe){return oe+fe*xe})}return Z.domain=function(oe){if(!arguments.length)return C;C=[],B=new x;for(var fe=-1,xe=oe.length,be;++fe0?B[Z-1]:C[0],ZFe?0:1;if(be=se)return fe(be,rr)+(xe?fe(xe,1-rr):"")+"Z";var Oe,Ve,Xe,er,tr=0,Je=0,or,dr,yr,pr,_r,wr,qr,Tr,Pr=[];if((er=(+le.apply(this,arguments)||0)/2)&&(Xe=G===fc?Math.sqrt(xe*xe+be*be):+G.apply(this,arguments),rr||(Je*=-1),be&&(Je=ur(Xe/be*Math.sin(er))),xe&&(tr=ur(Xe/xe*Math.sin(er)))),be){or=be*Math.cos(Ie+Je),dr=be*Math.sin(Ie+Je),yr=be*Math.cos(Fe-Je),pr=be*Math.sin(Fe-Je);var ut=Math.abs(Fe-Ie-2*Je)<=Ye?0:1;if(Je&&cc(or,dr,yr,pr)===rr^ut){var Bt=(Ie+Fe)/2;or=be*Math.cos(Bt),dr=be*Math.sin(Bt),yr=pr=null}}else or=dr=0;if(xe){_r=xe*Math.cos(Fe-tr),wr=xe*Math.sin(Fe-tr),qr=xe*Math.cos(Ie+tr),Tr=xe*Math.sin(Ie+tr);var dt=Math.abs(Ie-Fe+2*tr)<=Ye?0:1;if(tr&&cc(_r,wr,qr,Tr)===1-rr^dt){var cr=(Ie+Fe)/2;_r=xe*Math.cos(cr),wr=xe*Math.sin(cr),qr=Tr=null}}else _r=wr=0;if(Qe>De&&(Oe=Math.min(Math.abs(be-xe)/2,+B.apply(this,arguments)))>.001){Ve=xe0?0:1}function vc(C,z,B,G,W){var Z=C[0]-z[0],le=C[1]-z[1],oe=(W?G:-G)/Math.sqrt(Z*Z+le*le),fe=oe*le,xe=-oe*Z,be=C[0]+fe,Ie=C[1]+xe,Fe=z[0]+fe,Qe=z[1]+xe,rr=(be+Fe)/2,Oe=(Ie+Qe)/2,Ve=Fe-be,Xe=Qe-Ie,er=Ve*Ve+Xe*Xe,tr=B-G,Je=be*Qe-Fe*Ie,or=(Xe<0?-1:1)*Math.sqrt(Math.max(0,tr*tr*er-Je*Je)),dr=(Je*Xe-Ve*or)/er,yr=(-Je*Ve-Xe*or)/er,pr=(Je*Xe+Ve*or)/er,_r=(-Je*Ve+Xe*or)/er,wr=dr-rr,qr=yr-Oe,Tr=pr-rr,Pr=_r-Oe;return wr*wr+qr*qr>Tr*Tr+Pr*Pr&&(dr=pr,yr=_r),[[dr-fe,yr-xe],[dr*B/tr,yr*B/tr]]}function Ux(){return!0}function Hx(C){var z=xs,B=Ju,G=Ux,W=Za,Z=W.key,le=.7;function oe(fe){var xe=[],be=[],Ie=-1,Fe=fe.length,Qe,rr=Xr(z),Oe=Xr(B);function Ve(){xe.push("M",W(C(be),le))}for(;++Ie1?C.join("L"):C+"Z"}function Vx(C){return C.join("L")+"Z"}function nB(C){for(var z=0,B=C.length,G=C[0],W=[G[0],",",G[1]];++z1&&W.push("H",G[0]),W.join("")}function Qd(C){for(var z=0,B=C.length,G=C[0],W=[G[0],",",G[1]];++z1){oe=z[1],Z=C[fe],fe++,G+="C"+(W[0]+le[0])+","+(W[1]+le[1])+","+(Z[0]-oe[0])+","+(Z[1]-oe[1])+","+Z[0]+","+Z[1];for(var xe=2;xe9&&(Z=B*3/Math.sqrt(Z),le[oe]=Z*G,le[oe+1]=Z*W));for(oe=-1;++oe<=fe;)Z=(C[Math.min(fe,oe+1)][0]-C[Math.max(0,oe-1)][0])/(6*(1+le[oe]*le[oe])),z.push([Z||0,le[oe]*Z||0]);return z}function vB(C){return C.length<3?Za(C):C[0]+hc(C,cB(C))}e.svg.line.radial=function(){var C=Hx(Xx);return C.radius=C.x,delete C.x,C.angle=C.y,delete C.y,C};function Xx(C){for(var z,B=-1,G=C.length,W,Z;++BYe)+",1 "+Ie}function xe(be,Ie,Fe,Qe){return"Q 0,0 "+Qe}return Z.radius=function(be){return arguments.length?(B=Xr(be),Z):B},Z.source=function(be){return arguments.length?(C=Xr(be),Z):C},Z.target=function(be){return arguments.length?(z=Xr(be),Z):z},Z.startAngle=function(be){return arguments.length?(G=Xr(be),Z):G},Z.endAngle=function(be){return arguments.length?(W=Xr(be),Z):W},Z};function hB(C){return C.radius}e.svg.diagonal=function(){var C=Jx,z=Kx,B=Qx;function G(W,Z){var le=C.call(this,W,Z),oe=z.call(this,W,Z),fe=(le.y+oe.y)/2,xe=[le,{x:le.x,y:fe},{x:oe.x,y:fe},oe];return xe=xe.map(B),"M"+xe[0]+"C"+xe[1]+" "+xe[2]+" "+xe[3]}return G.source=function(W){return arguments.length?(C=Xr(W),G):C},G.target=function(W){return arguments.length?(z=Xr(W),G):z},G.projection=function(W){return arguments.length?(B=W,G):B},G};function Qx(C){return[C.x,C.y]}e.svg.diagonal.radial=function(){var C=e.svg.diagonal(),z=Qx,B=C.projection;return C.projection=function(G){return arguments.length?B(dB(z=G)):z},C};function dB(C){return function(){var z=C.apply(this,arguments),B=z[0],G=z[1]-J;return[B*Math.cos(G),B*Math.sin(G)]}}e.svg.symbol=function(){var C=gB,z=pB;function B(G,W){return(jx.get(C.call(this,G,W))||$x)(z.call(this,G,W))}return B.type=function(G){return arguments.length?(C=Xr(G),B):C},B.size=function(G){return arguments.length?(z=Xr(G),B):z},B};function pB(){return 64}function gB(){return"circle"}function $x(C){var z=Math.sqrt(C/Ye);return"M0,"+z+"A"+z+","+z+" 0 1,1 0,"+-z+"A"+z+","+z+" 0 1,1 0,"+z+"Z"}var jx=e.map({circle:$x,cross:function(C){var z=Math.sqrt(C/5)/2;return"M"+-3*z+","+-z+"H"+-z+"V"+-3*z+"H"+z+"V"+-z+"H"+3*z+"V"+z+"H"+z+"V"+3*z+"H"+-z+"V"+z+"H"+-3*z+"Z"},diamond:function(C){var z=Math.sqrt(C/(2*eb)),B=z*eb;return"M0,"+-z+"L"+B+",0 0,"+z+" "+-B+",0Z"},square:function(C){var z=Math.sqrt(C)/2;return"M"+-z+","+-z+"L"+z+","+-z+" "+z+","+z+" "+-z+","+z+"Z"},"triangle-down":function(C){var z=Math.sqrt(C/dc),B=z*dc/2;return"M0,"+B+"L"+z+","+-B+" "+-z+","+-B+"Z"},"triangle-up":function(C){var z=Math.sqrt(C/dc),B=z*dc/2;return"M0,"+-B+"L"+z+","+B+" "+-z+","+B+"Z"}});e.svg.symbolTypes=jx.keys();var dc=Math.sqrt(3),eb=Math.tan(30*ae);ee.transition=function(C){for(var z=yl||++tb,B=np(C),G=[],W,Z,le=gc||{time:Date.now(),ease:Zq,delay:0,duration:250},oe=-1,fe=this.length;++oe0;)Ie[--er].call(C,Xe);if(Ve>=1)return le.event&&le.event.end.call(C,C.__data__,z),--Z.count?delete Z[G]:delete C[B],1}le||(oe=W.time,fe=ec(Fe,0,oe),le=Z[G]={tween:new x,time:oe,timer:fe,delay:W.delay,duration:W.duration,ease:W.ease,index:z},W=null,++Z.count)}e.svg.axis=function(){var C=e.scale.linear(),z=nb,B=6,G=6,W=3,Z=[10],le=null,oe;function fe(xe){xe.each(function(){var be=e.select(this),Ie=this.__chart__||C,Fe=this.__chart__=C.copy(),Qe=le==null?Fe.ticks?Fe.ticks.apply(Fe,Z):Fe.domain():le,rr=oe==null?Fe.tickFormat?Fe.tickFormat.apply(Fe,Z):N:oe,Oe=be.selectAll(".tick").data(Qe,Fe),Ve=Oe.enter().insert("g",".domain").attr("class","tick").style("opacity",De),Xe=e.transition(Oe.exit()).style("opacity",De).remove(),er=e.transition(Oe.order()).style("opacity",1),tr=Math.max(B,0)+W,Je,or=sc(Fe),dr=be.selectAll(".domain").data([0]),yr=(dr.enter().append("path").attr("class","domain"),e.transition(dr));Ve.append("line"),Ve.append("text");var pr=Ve.select("line"),_r=er.select("line"),wr=Oe.select("text").text(rr),qr=Ve.select("text"),Tr=er.select("text"),Pr=z==="top"||z==="left"?-1:1,ut,Bt,dt,cr;if(z==="bottom"||z==="top"?(Je=xB,ut="x",dt="y",Bt="x2",cr="y2",wr.attr("dy",Pr<0?"0em":".71em").style("text-anchor","middle"),yr.attr("d","M"+or[0]+","+Pr*G+"V0H"+or[1]+"V"+Pr*G)):(Je=bB,ut="y",dt="x",Bt="y2",cr="x2",wr.attr("dy",".32em").style("text-anchor",Pr<0?"end":"start"),yr.attr("d","M"+Pr*G+","+or[0]+"H0V"+or[1]+"H"+Pr*G)),pr.attr(cr,Pr*B),qr.attr(dt,Pr*tr),_r.attr(Bt,0).attr(cr,Pr*B),Tr.attr(ut,0).attr(dt,Pr*tr),Fe.rangeBand){var Or=Fe,Vr=Or.rangeBand()/2;Ie=Fe=function(ft){return Or(ft)+Vr}}else Ie.rangeBand?Ie=Fe:Xe.call(Je,Fe,Ie);Ve.call(Je,Ie,Fe),er.call(Je,Fe,Fe)})}return fe.scale=function(xe){return arguments.length?(C=xe,fe):C},fe.orient=function(xe){return arguments.length?(z=xe in mB?xe+"":nb,fe):z},fe.ticks=function(){return arguments.length?(Z=t(arguments),fe):Z},fe.tickValues=function(xe){return arguments.length?(le=xe,fe):le},fe.tickFormat=function(xe){return arguments.length?(oe=xe,fe):oe},fe.tickSize=function(xe){var be=arguments.length;return be?(B=+xe,G=+arguments[be-1],fe):B},fe.innerTickSize=function(xe){return arguments.length?(B=+xe,fe):B},fe.outerTickSize=function(xe){return arguments.length?(G=+xe,fe):G},fe.tickPadding=function(xe){return arguments.length?(W=+xe,fe):W},fe.tickSubdivide=function(){return arguments.length&&fe},fe};var nb="bottom",mB={top:1,right:1,bottom:1,left:1};function xB(C,z,B){C.attr("transform",function(G){var W=z(G);return"translate("+(isFinite(W)?W:B(G))+",0)"})}function bB(C,z,B){C.attr("transform",function(G){var W=z(G);return"translate(0,"+(isFinite(W)?W:B(G))+")"})}e.svg.brush=function(){var C=j(be,"brushstart","brush","brushend"),z=null,B=null,G=[0,0],W=[0,0],Z,le,oe=!0,fe=!0,xe=ap[0];function be(Oe){Oe.each(function(){var Ve=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",rr).on("touchstart.brush",rr),Xe=Ve.selectAll(".background").data([0]);Xe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ve.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var er=Ve.selectAll(".resize").data(xe,N);er.exit().remove(),er.enter().append("g").attr("class",function(dr){return"resize "+dr}).style("cursor",function(dr){return _B[dr]}).append("rect").attr("x",function(dr){return/[ew]$/.test(dr)?-3:null}).attr("y",function(dr){return/^[ns]/.test(dr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),er.style("display",be.empty()?"none":null);var tr=e.transition(Ve),Je=e.transition(Xe),or;z&&(or=sc(z),Je.attr("x",or[0]).attr("width",or[1]-or[0]),Fe(tr)),B&&(or=sc(B),Je.attr("y",or[0]).attr("height",or[1]-or[0]),Qe(tr)),Ie(tr)})}be.event=function(Oe){Oe.each(function(){var Ve=C.of(this,arguments),Xe={x:G,y:W,i:Z,j:le},er=this.__chart__||Xe;this.__chart__=Xe,yl?e.select(this).transition().each("start.brush",function(){Z=er.i,le=er.j,G=er.x,W=er.y,Ve({type:"brushstart"})}).tween("brush:brush",function(){var tr=oc(G,Xe.x),Je=oc(W,Xe.y);return Z=le=null,function(or){G=Xe.x=tr(or),W=Xe.y=Je(or),Ve({type:"brush",mode:"resize"})}}).each("end.brush",function(){Z=Xe.i,le=Xe.j,Ve({type:"brush",mode:"resize"}),Ve({type:"brushend"})}):(Ve({type:"brushstart"}),Ve({type:"brush",mode:"resize"}),Ve({type:"brushend"}))})};function Ie(Oe){Oe.selectAll(".resize").attr("transform",function(Ve){return"translate("+G[+/e$/.test(Ve)]+","+W[+/^s/.test(Ve)]+")"})}function Fe(Oe){Oe.select(".extent").attr("x",G[0]),Oe.selectAll(".extent,.n>rect,.s>rect").attr("width",G[1]-G[0])}function Qe(Oe){Oe.select(".extent").attr("y",W[0]),Oe.selectAll(".extent,.e>rect,.w>rect").attr("height",W[1]-W[0])}function rr(){var Oe=this,Ve=e.select(e.event.target),Xe=C.of(Oe,arguments),er=e.select(Oe),tr=Ve.datum(),Je=!/^(n|s)$/.test(tr)&&z,or=!/^(e|w)$/.test(tr)&&B,dr=Ve.classed("extent"),yr=We(Oe),pr,_r=e.mouse(Oe),wr,qr=e.select(o(Oe)).on("keydown.brush",ut).on("keyup.brush",Bt);if(e.event.changedTouches?qr.on("touchmove.brush",dt).on("touchend.brush",Or):qr.on("mousemove.brush",dt).on("mouseup.brush",Or),er.interrupt().selectAll("*").interrupt(),dr)_r[0]=G[0]-_r[0],_r[1]=W[0]-_r[1];else if(tr){var Tr=+/w$/.test(tr),Pr=+/^n/.test(tr);wr=[G[1-Tr]-_r[0],W[1-Pr]-_r[1]],_r[0]=G[Tr],_r[1]=W[Pr]}else e.event.altKey&&(pr=_r.slice());er.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ve.style("cursor")),Xe({type:"brushstart"}),dt();function ut(){e.event.keyCode==32&&(dr||(pr=null,_r[0]-=G[1],_r[1]-=W[1],dr=2),X())}function Bt(){e.event.keyCode==32&&dr==2&&(_r[0]+=G[1],_r[1]+=W[1],dr=0,X())}function dt(){var Vr=e.mouse(Oe),ft=!1;wr&&(Vr[0]+=wr[0],Vr[1]+=wr[1]),dr||(e.event.altKey?(pr||(pr=[(G[0]+G[1])/2,(W[0]+W[1])/2]),_r[0]=G[+(Vr[0]{(function(e,r){typeof wc=="object"&&typeof sb!="undefined"?r(wc):(e=e||self,r(e.d3=e.d3||{}))})(wc,function(e){"use strict";var r=new Date,t=new Date;function n(ge,we,Me,me){function Re(ce){return ge(ce=arguments.length===0?new Date:new Date(+ce)),ce}return Re.floor=function(ce){return ge(ce=new Date(+ce)),ce},Re.ceil=function(ce){return ge(ce=new Date(ce-1)),we(ce,1),ge(ce),ce},Re.round=function(ce){var he=Re(ce),ye=Re.ceil(ce);return ce-he0))return Ce;do Ce.push(ze=new Date(+ce)),we(ce,ye),ge(ce);while(ze=he)for(;ge(he),!ce(he);)he.setTime(he-1)},function(he,ye){if(he>=he)if(ye<0)for(;++ye<=0;)for(;we(he,-1),!ce(he););else for(;--ye>=0;)for(;we(he,1),!ce(he););})},Me&&(Re.count=function(ce,he){return r.setTime(+ce),t.setTime(+he),ge(r),ge(t),Math.floor(Me(r,t))},Re.every=function(ce){return ce=Math.floor(ce),!isFinite(ce)||!(ce>0)?null:ce>1?Re.filter(me?function(he){return me(he)%ce===0}:function(he){return Re.count(0,he)%ce===0}):Re}),Re}var a=n(function(){},function(ge,we){ge.setTime(+ge+we)},function(ge,we){return we-ge});a.every=function(ge){return ge=Math.floor(ge),!isFinite(ge)||!(ge>0)?null:ge>1?n(function(we){we.setTime(Math.floor(we/ge)*ge)},function(we,Me){we.setTime(+we+Me*ge)},function(we,Me){return(Me-we)/ge}):a};var o=a.range,i=1e3,l=6e4,u=36e5,s=864e5,f=6048e5,v=n(function(ge){ge.setTime(ge-ge.getMilliseconds())},function(ge,we){ge.setTime(+ge+we*i)},function(ge,we){return(we-ge)/i},function(ge){return ge.getUTCSeconds()}),p=v.range,_=n(function(ge){ge.setTime(ge-ge.getMilliseconds()-ge.getSeconds()*i)},function(ge,we){ge.setTime(+ge+we*l)},function(ge,we){return(we-ge)/l},function(ge){return ge.getMinutes()}),m=_.range,w=n(function(ge){ge.setTime(ge-ge.getMilliseconds()-ge.getSeconds()*i-ge.getMinutes()*l)},function(ge,we){ge.setTime(+ge+we*u)},function(ge,we){return(we-ge)/u},function(ge){return ge.getHours()}),T=w.range,y=n(function(ge){ge.setHours(0,0,0,0)},function(ge,we){ge.setDate(ge.getDate()+we)},function(ge,we){return(we-ge-(we.getTimezoneOffset()-ge.getTimezoneOffset())*l)/s},function(ge){return ge.getDate()-1}),k=y.range;function S(ge){return n(function(we){we.setDate(we.getDate()-(we.getDay()+7-ge)%7),we.setHours(0,0,0,0)},function(we,Me){we.setDate(we.getDate()+Me*7)},function(we,Me){return(Me-we-(Me.getTimezoneOffset()-we.getTimezoneOffset())*l)/f})}var x=S(0),M=S(1),d=S(2),b=S(3),g=S(4),c=S(5),A=S(6),h=x.range,R=M.range,E=d.range,D=b.range,N=g.range,F=c.range,I=A.range,L=n(function(ge){ge.setDate(1),ge.setHours(0,0,0,0)},function(ge,we){ge.setMonth(ge.getMonth()+we)},function(ge,we){return we.getMonth()-ge.getMonth()+(we.getFullYear()-ge.getFullYear())*12},function(ge){return ge.getMonth()}),P=L.range,O=n(function(ge){ge.setMonth(0,1),ge.setHours(0,0,0,0)},function(ge,we){ge.setFullYear(ge.getFullYear()+we)},function(ge,we){return we.getFullYear()-ge.getFullYear()},function(ge){return ge.getFullYear()});O.every=function(ge){return!isFinite(ge=Math.floor(ge))||!(ge>0)?null:n(function(we){we.setFullYear(Math.floor(we.getFullYear()/ge)*ge),we.setMonth(0,1),we.setHours(0,0,0,0)},function(we,Me){we.setFullYear(we.getFullYear()+Me*ge)})};var U=O.range,X=n(function(ge){ge.setUTCSeconds(0,0)},function(ge,we){ge.setTime(+ge+we*l)},function(ge,we){return(we-ge)/l},function(ge){return ge.getUTCMinutes()}),$=X.range,j=n(function(ge){ge.setUTCMinutes(0,0,0)},function(ge,we){ge.setTime(+ge+we*u)},function(ge,we){return(we-ge)/u},function(ge){return ge.getUTCHours()}),Y=j.range,q=n(function(ge){ge.setUTCHours(0,0,0,0)},function(ge,we){ge.setUTCDate(ge.getUTCDate()+we)},function(ge,we){return(we-ge)/s},function(ge){return ge.getUTCDate()-1}),K=q.range;function ne(ge){return n(function(we){we.setUTCDate(we.getUTCDate()-(we.getUTCDay()+7-ge)%7),we.setUTCHours(0,0,0,0)},function(we,Me){we.setUTCDate(we.getUTCDate()+Me*7)},function(we,Me){return(Me-we)/f})}var Q=ne(0),ie=ne(1),ee=ne(2),V=ne(3),re=ne(4),H=ne(5),te=ne(6),ue=Q.range,de=ie.range,ke=ee.range,Ae=V.range,ve=re.range,Te=H.range,Ee=te.range,Pe=n(function(ge){ge.setUTCDate(1),ge.setUTCHours(0,0,0,0)},function(ge,we){ge.setUTCMonth(ge.getUTCMonth()+we)},function(ge,we){return we.getUTCMonth()-ge.getUTCMonth()+(we.getUTCFullYear()-ge.getUTCFullYear())*12},function(ge){return ge.getUTCMonth()}),Se=Pe.range,Ne=n(function(ge){ge.setUTCMonth(0,1),ge.setUTCHours(0,0,0,0)},function(ge,we){ge.setUTCFullYear(ge.getUTCFullYear()+we)},function(ge,we){return we.getUTCFullYear()-ge.getUTCFullYear()},function(ge){return ge.getUTCFullYear()});Ne.every=function(ge){return!isFinite(ge=Math.floor(ge))||!(ge>0)?null:n(function(we){we.setUTCFullYear(Math.floor(we.getUTCFullYear()/ge)*ge),we.setUTCMonth(0,1),we.setUTCHours(0,0,0,0)},function(we,Me){we.setUTCFullYear(we.getUTCFullYear()+Me*ge)})};var Be=Ne.range;e.timeDay=y,e.timeDays=k,e.timeFriday=c,e.timeFridays=F,e.timeHour=w,e.timeHours=T,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=o,e.timeMinute=_,e.timeMinutes=m,e.timeMonday=M,e.timeMondays=R,e.timeMonth=L,e.timeMonths=P,e.timeSaturday=A,e.timeSaturdays=I,e.timeSecond=v,e.timeSeconds=p,e.timeSunday=x,e.timeSundays=h,e.timeThursday=g,e.timeThursdays=N,e.timeTuesday=d,e.timeTuesdays=E,e.timeWednesday=b,e.timeWednesdays=D,e.timeWeek=x,e.timeWeeks=h,e.timeYear=O,e.timeYears=U,e.utcDay=q,e.utcDays=K,e.utcFriday=H,e.utcFridays=Te,e.utcHour=j,e.utcHours=Y,e.utcMillisecond=a,e.utcMilliseconds=o,e.utcMinute=X,e.utcMinutes=$,e.utcMonday=ie,e.utcMondays=de,e.utcMonth=Pe,e.utcMonths=Se,e.utcSaturday=te,e.utcSaturdays=Ee,e.utcSecond=v,e.utcSeconds=p,e.utcSunday=Q,e.utcSundays=ue,e.utcThursday=re,e.utcThursdays=ve,e.utcTuesday=ee,e.utcTuesdays=ke,e.utcWednesday=V,e.utcWednesdays=Ae,e.utcWeek=Q,e.utcWeeks=ue,e.utcYear=Ne,e.utcYears=Be,Object.defineProperty(e,"__esModule",{value:!0})})});var ks=pe((Mc,ub)=>{(function(e,r){typeof Mc=="object"&&typeof ub!="undefined"?r(Mc,ip()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Mc,function(e,r){"use strict";function t(_e){if(0<=_e.y&&_e.y<100){var De=new Date(-1,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L);return De.setFullYear(_e.y),De}return new Date(_e.y,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L)}function n(_e){if(0<=_e.y&&_e.y<100){var De=new Date(Date.UTC(-1,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L));return De.setUTCFullYear(_e.y),De}return new Date(Date.UTC(_e.y,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L))}function a(_e,De,Ke){return{y:_e,m:De,d:Ke,H:0,M:0,S:0,L:0}}function o(_e){var De=_e.dateTime,Ke=_e.date,Ye=_e.time,ar=_e.periods,se=_e.days,J=_e.shortDays,ae=_e.months,Le=_e.shortMonths,He=p(ar),je=_(ar),nr=p(se),ur=_(se),br=p(J),Sr=_(J),Mr=p(ae),Ar=_(ae),nt=p(Le),Yr=_(Le),mr={a:va,A:Qn,b:In,B:Ma,c:null,d:L,e:L,f:$,H:P,I:O,j:U,L:X,m:j,M:Y,p:xi,q:Gi,Q:he,s:ye,S:q,u:K,U:ne,V:Q,w:ie,W:ee,x:null,X:null,y:V,Y:re,Z:H,"%":ce},ct={a:Yi,A:Wi,b:nn,B:xo,c:null,d:te,e:te,f:ve,H:ue,I:de,j:ke,L:Ae,m:Te,M:Ee,p:bi,q:_i,Q:he,s:ye,S:Pe,u:Se,U:Ne,V:Be,w:ge,W:we,x:null,X:null,y:Me,Y:me,Z:Re,"%":ce},Cr={a:Ot,A:Lt,b:yn,B:Yt,c:Rt,d:g,e:g,f:D,H:A,I:A,j:c,L:E,m:b,M:h,p:Hr,q:d,Q:F,s:I,S:R,u:w,U:T,V:y,w:m,W:k,x:at,X:Ft,y:x,Y:S,Z:M,"%":N};mr.x=Ur(Ke,mr),mr.X=Ur(Ye,mr),mr.c=Ur(De,mr),ct.x=Ur(Ke,ct),ct.X=Ur(Ye,ct),ct.c=Ur(De,ct);function Ur(kr,it){return function(vt){var gr=[],mn=-1,bt=0,xn=kr.length,Xr,Xa,hl;for(vt instanceof Date||(vt=new Date(+vt));++mn53)return null;"w"in gr||(gr.w=1),"Z"in gr?(bt=n(a(gr.y,0,1)),xn=bt.getUTCDay(),bt=xn>4||xn===0?r.utcMonday.ceil(bt):r.utcMonday(bt),bt=r.utcDay.offset(bt,(gr.V-1)*7),gr.y=bt.getUTCFullYear(),gr.m=bt.getUTCMonth(),gr.d=bt.getUTCDate()+(gr.w+6)%7):(bt=t(a(gr.y,0,1)),xn=bt.getDay(),bt=xn>4||xn===0?r.timeMonday.ceil(bt):r.timeMonday(bt),bt=r.timeDay.offset(bt,(gr.V-1)*7),gr.y=bt.getFullYear(),gr.m=bt.getMonth(),gr.d=bt.getDate()+(gr.w+6)%7)}else("W"in gr||"U"in gr)&&("w"in gr||(gr.w="u"in gr?gr.u%7:"W"in gr?1:0),xn="Z"in gr?n(a(gr.y,0,1)).getUTCDay():t(a(gr.y,0,1)).getDay(),gr.m=0,gr.d="W"in gr?(gr.w+6)%7+gr.W*7-(xn+5)%7:gr.w+gr.U*7-(xn+6)%7);return"Z"in gr?(gr.H+=gr.Z/100|0,gr.M+=gr.Z%100,n(gr)):t(gr)}}function zr(kr,it,vt,gr){for(var mn=0,bt=it.length,xn=vt.length,Xr,Xa;mn=xn)return-1;if(Xr=it.charCodeAt(mn++),Xr===37){if(Xr=it.charAt(mn++),Xa=Cr[Xr in i?it.charAt(mn++):Xr],!Xa||(gr=Xa(kr,vt,gr))<0)return-1}else if(Xr!=vt.charCodeAt(gr++))return-1}return gr}function Hr(kr,it,vt){var gr=He.exec(it.slice(vt));return gr?(kr.p=je[gr[0].toLowerCase()],vt+gr[0].length):-1}function Ot(kr,it,vt){var gr=br.exec(it.slice(vt));return gr?(kr.w=Sr[gr[0].toLowerCase()],vt+gr[0].length):-1}function Lt(kr,it,vt){var gr=nr.exec(it.slice(vt));return gr?(kr.w=ur[gr[0].toLowerCase()],vt+gr[0].length):-1}function yn(kr,it,vt){var gr=nt.exec(it.slice(vt));return gr?(kr.m=Yr[gr[0].toLowerCase()],vt+gr[0].length):-1}function Yt(kr,it,vt){var gr=Mr.exec(it.slice(vt));return gr?(kr.m=Ar[gr[0].toLowerCase()],vt+gr[0].length):-1}function Rt(kr,it,vt){return zr(kr,De,it,vt)}function at(kr,it,vt){return zr(kr,Ke,it,vt)}function Ft(kr,it,vt){return zr(kr,Ye,it,vt)}function va(kr){return J[kr.getDay()]}function Qn(kr){return se[kr.getDay()]}function In(kr){return Le[kr.getMonth()]}function Ma(kr){return ae[kr.getMonth()]}function xi(kr){return ar[+(kr.getHours()>=12)]}function Gi(kr){return 1+~~(kr.getMonth()/3)}function Yi(kr){return J[kr.getUTCDay()]}function Wi(kr){return se[kr.getUTCDay()]}function nn(kr){return Le[kr.getUTCMonth()]}function xo(kr){return ae[kr.getUTCMonth()]}function bi(kr){return ar[+(kr.getUTCHours()>=12)]}function _i(kr){return 1+~~(kr.getUTCMonth()/3)}return{format:function(kr){var it=Ur(kr+="",mr);return it.toString=function(){return kr},it},parse:function(kr){var it=xt(kr+="",!1);return it.toString=function(){return kr},it},utcFormat:function(kr){var it=Ur(kr+="",ct);return it.toString=function(){return kr},it},utcParse:function(kr){var it=xt(kr+="",!0);return it.toString=function(){return kr},it}}}var i={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(_e,De,Ke){var Ye=_e<0?"-":"",ar=(Ye?-_e:_e)+"",se=ar.length;return Ye+(se68?1900:2e3),Ke+Ye[0].length):-1}function M(_e,De,Ke){var Ye=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(De.slice(Ke,Ke+6));return Ye?(_e.Z=Ye[1]?0:-(Ye[2]+(Ye[3]||"00")),Ke+Ye[0].length):-1}function d(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+1));return Ye?(_e.q=Ye[0]*3-3,Ke+Ye[0].length):-1}function b(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+2));return Ye?(_e.m=Ye[0]-1,Ke+Ye[0].length):-1}function g(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+2));return Ye?(_e.d=+Ye[0],Ke+Ye[0].length):-1}function c(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+3));return Ye?(_e.m=0,_e.d=+Ye[0],Ke+Ye[0].length):-1}function A(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+2));return Ye?(_e.H=+Ye[0],Ke+Ye[0].length):-1}function h(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+2));return Ye?(_e.M=+Ye[0],Ke+Ye[0].length):-1}function R(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+2));return Ye?(_e.S=+Ye[0],Ke+Ye[0].length):-1}function E(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+3));return Ye?(_e.L=+Ye[0],Ke+Ye[0].length):-1}function D(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+6));return Ye?(_e.L=Math.floor(Ye[0]/1e3),Ke+Ye[0].length):-1}function N(_e,De,Ke){var Ye=u.exec(De.slice(Ke,Ke+1));return Ye?Ke+Ye[0].length:-1}function F(_e,De,Ke){var Ye=l.exec(De.slice(Ke));return Ye?(_e.Q=+Ye[0],Ke+Ye[0].length):-1}function I(_e,De,Ke){var Ye=l.exec(De.slice(Ke));return Ye?(_e.s=+Ye[0],Ke+Ye[0].length):-1}function L(_e,De){return f(_e.getDate(),De,2)}function P(_e,De){return f(_e.getHours(),De,2)}function O(_e,De){return f(_e.getHours()%12||12,De,2)}function U(_e,De){return f(1+r.timeDay.count(r.timeYear(_e),_e),De,3)}function X(_e,De){return f(_e.getMilliseconds(),De,3)}function $(_e,De){return X(_e,De)+"000"}function j(_e,De){return f(_e.getMonth()+1,De,2)}function Y(_e,De){return f(_e.getMinutes(),De,2)}function q(_e,De){return f(_e.getSeconds(),De,2)}function K(_e){var De=_e.getDay();return De===0?7:De}function ne(_e,De){return f(r.timeSunday.count(r.timeYear(_e)-1,_e),De,2)}function Q(_e,De){var Ke=_e.getDay();return _e=Ke>=4||Ke===0?r.timeThursday(_e):r.timeThursday.ceil(_e),f(r.timeThursday.count(r.timeYear(_e),_e)+(r.timeYear(_e).getDay()===4),De,2)}function ie(_e){return _e.getDay()}function ee(_e,De){return f(r.timeMonday.count(r.timeYear(_e)-1,_e),De,2)}function V(_e,De){return f(_e.getFullYear()%100,De,2)}function re(_e,De){return f(_e.getFullYear()%1e4,De,4)}function H(_e){var De=_e.getTimezoneOffset();return(De>0?"-":(De*=-1,"+"))+f(De/60|0,"0",2)+f(De%60,"0",2)}function te(_e,De){return f(_e.getUTCDate(),De,2)}function ue(_e,De){return f(_e.getUTCHours(),De,2)}function de(_e,De){return f(_e.getUTCHours()%12||12,De,2)}function ke(_e,De){return f(1+r.utcDay.count(r.utcYear(_e),_e),De,3)}function Ae(_e,De){return f(_e.getUTCMilliseconds(),De,3)}function ve(_e,De){return Ae(_e,De)+"000"}function Te(_e,De){return f(_e.getUTCMonth()+1,De,2)}function Ee(_e,De){return f(_e.getUTCMinutes(),De,2)}function Pe(_e,De){return f(_e.getUTCSeconds(),De,2)}function Se(_e){var De=_e.getUTCDay();return De===0?7:De}function Ne(_e,De){return f(r.utcSunday.count(r.utcYear(_e)-1,_e),De,2)}function Be(_e,De){var Ke=_e.getUTCDay();return _e=Ke>=4||Ke===0?r.utcThursday(_e):r.utcThursday.ceil(_e),f(r.utcThursday.count(r.utcYear(_e),_e)+(r.utcYear(_e).getUTCDay()===4),De,2)}function ge(_e){return _e.getUTCDay()}function we(_e,De){return f(r.utcMonday.count(r.utcYear(_e)-1,_e),De,2)}function Me(_e,De){return f(_e.getUTCFullYear()%100,De,2)}function me(_e,De){return f(_e.getUTCFullYear()%1e4,De,4)}function Re(){return"+0000"}function ce(){return"%"}function he(_e){return+_e}function ye(_e){return Math.floor(+_e/1e3)}var Ce;ze({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function ze(_e){return Ce=o(_e),e.timeFormat=Ce.format,e.timeParse=Ce.parse,e.utcFormat=Ce.utcFormat,e.utcParse=Ce.utcParse,Ce}var qe="%Y-%m-%dT%H:%M:%S.%LZ";function $e(_e){return _e.toISOString()}var We=Date.prototype.toISOString?$e:e.utcFormat(qe);function Ue(_e){var De=new Date(_e);return isNaN(De)?null:De}var Ge=+new Date("2000-01-01T00:00:00.000Z")?Ue:e.utcParse(qe);e.isoFormat=We,e.isoParse=Ge,e.timeFormatDefaultLocale=ze,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})})});var op=pe((Tc,fb)=>{(function(e,r){typeof Tc=="object"&&typeof fb!="undefined"?r(Tc):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Tc,function(e){"use strict";function r(b){return Math.abs(b=Math.round(b))>=1e21?b.toLocaleString("en").replace(/,/g,""):b.toString(10)}function t(b,g){if((c=(b=g?b.toExponential(g-1):b.toExponential()).indexOf("e"))<0)return null;var c,A=b.slice(0,c);return[A.length>1?A[0]+A.slice(2):A,+b.slice(c+1)]}function n(b){return b=t(Math.abs(b)),b?b[1]:NaN}function a(b,g){return function(c,A){for(var h=c.length,R=[],E=0,D=b[0],N=0;h>0&&D>0&&(N+D+1>A&&(D=Math.max(1,A-N)),R.push(c.substring(h-=D,h+D)),!((N+=D+1)>A));)D=b[E=(E+1)%b.length];return R.reverse().join(g)}}function o(b){return function(g){return g.replace(/[0-9]/g,function(c){return b[+c]})}}var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(b){if(!(g=i.exec(b)))throw new Error("invalid format: "+b);var g;return new u({fill:g[1],align:g[2],sign:g[3],symbol:g[4],zero:g[5],width:g[6],comma:g[7],precision:g[8]&&g[8].slice(1),trim:g[9],type:g[10]})}l.prototype=u.prototype;function u(b){this.fill=b.fill===void 0?" ":b.fill+"",this.align=b.align===void 0?">":b.align+"",this.sign=b.sign===void 0?"-":b.sign+"",this.symbol=b.symbol===void 0?"":b.symbol+"",this.zero=!!b.zero,this.width=b.width===void 0?void 0:+b.width,this.comma=!!b.comma,this.precision=b.precision===void 0?void 0:+b.precision,this.trim=!!b.trim,this.type=b.type===void 0?"":b.type+""}u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function s(b){e:for(var g=b.length,c=1,A=-1,h;c0&&(A=0);break}return A>0?b.slice(0,A)+b.slice(h+1):b}var f;function v(b,g){var c=t(b,g);if(!c)return b+"";var A=c[0],h=c[1],R=h-(f=Math.max(-8,Math.min(8,Math.floor(h/3)))*3)+1,E=A.length;return R===E?A:R>E?A+new Array(R-E+1).join("0"):R>0?A.slice(0,R)+"."+A.slice(R):"0."+new Array(1-R).join("0")+t(b,Math.max(0,g+R-1))[0]}function p(b,g){var c=t(b,g);if(!c)return b+"";var A=c[0],h=c[1];return h<0?"0."+new Array(-h).join("0")+A:A.length>h+1?A.slice(0,h+1)+"."+A.slice(h+1):A+new Array(h-A.length+2).join("0")}var _={"%":function(b,g){return(b*100).toFixed(g)},b:function(b){return Math.round(b).toString(2)},c:function(b){return b+""},d:r,e:function(b,g){return b.toExponential(g)},f:function(b,g){return b.toFixed(g)},g:function(b,g){return b.toPrecision(g)},o:function(b){return Math.round(b).toString(8)},p:function(b,g){return p(b*100,g)},r:p,s:v,X:function(b){return Math.round(b).toString(16).toUpperCase()},x:function(b){return Math.round(b).toString(16)}};function m(b){return b}var w=Array.prototype.map,T=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function y(b){var g=b.grouping===void 0||b.thousands===void 0?m:a(w.call(b.grouping,Number),b.thousands+""),c=b.currency===void 0?"":b.currency[0]+"",A=b.currency===void 0?"":b.currency[1]+"",h=b.decimal===void 0?".":b.decimal+"",R=b.numerals===void 0?m:o(w.call(b.numerals,String)),E=b.percent===void 0?"%":b.percent+"",D=b.minus===void 0?"-":b.minus+"",N=b.nan===void 0?"NaN":b.nan+"";function F(L){L=l(L);var P=L.fill,O=L.align,U=L.sign,X=L.symbol,$=L.zero,j=L.width,Y=L.comma,q=L.precision,K=L.trim,ne=L.type;ne==="n"?(Y=!0,ne="g"):_[ne]||(q===void 0&&(q=12),K=!0,ne="g"),($||P==="0"&&O==="=")&&($=!0,P="0",O="=");var Q=X==="$"?c:X==="#"&&/[boxX]/.test(ne)?"0"+ne.toLowerCase():"",ie=X==="$"?A:/[%p]/.test(ne)?E:"",ee=_[ne],V=/[defgprs%]/.test(ne);q=q===void 0?6:/[gprs]/.test(ne)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function re(H){var te=Q,ue=ie,de,ke,Ae;if(ne==="c")ue=ee(H)+ue,H="";else{H=+H;var ve=H<0||1/H<0;if(H=isNaN(H)?N:ee(Math.abs(H),q),K&&(H=s(H)),ve&&+H==0&&U!=="+"&&(ve=!1),te=(ve?U==="("?U:D:U==="-"||U==="("?"":U)+te,ue=(ne==="s"?T[8+f/3]:"")+ue+(ve&&U==="("?")":""),V){for(de=-1,ke=H.length;++deAe||Ae>57){ue=(Ae===46?h+H.slice(de+1):H.slice(de))+ue,H=H.slice(0,de);break}}}Y&&!$&&(H=g(H,1/0));var Te=te.length+H.length+ue.length,Ee=Te>1)+te+H+ue+Ee.slice(Te);break;default:H=Ee+te+H+ue;break}return R(H)}return re.toString=function(){return L+""},re}function I(L,P){var O=F((L=l(L),L.type="f",L)),U=Math.max(-8,Math.min(8,Math.floor(n(P)/3)))*3,X=Math.pow(10,-U),$=T[8+U/3];return function(j){return O(X*j)+$}}return{format:F,formatPrefix:I}}var k;S({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function S(b){return k=y(b),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function x(b){return Math.max(0,-n(Math.abs(b)))}function M(b,g){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(g)/3)))*3-n(Math.abs(b)))}function d(b,g){return b=Math.abs(b),g=Math.abs(g)-b,Math.max(0,n(g)-n(b))+1}e.FormatSpecifier=u,e.formatDefaultLocale=S,e.formatLocale=y,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=M,e.precisionRound=d,Object.defineProperty(e,"__esModule",{value:!0})})});var vb=pe((Nue,cb)=>{"use strict";cb.exports=function(e){for(var r=e.length,t,n=0;n13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var tt=pe((zue,hb)=>{"use strict";var AB=vb();hb.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&AB(t))return!1}else if(r!=="number")return!1;return e-e<1}});var an=pe((que,db)=>{"use strict";db.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var lp=pe((Ac,pb)=>{(function(e,r){typeof Ac=="object"&&typeof pb!="undefined"?r(Ac):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Ac,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=r[(l[u]&3)<<4|l[u+1]>>4],f+=r[(l[u+1]&15)<<2|l[u+2]>>6],f+=r[l[u+2]&63];return s%3===2?f=f.substring(0,f.length-1)+"=":s%3===1&&(f=f.substring(0,f.length-2)+"=="),f},o=function(i){var l=i.length*.75,u=i.length,s,f=0,v,p,_,m;i[i.length-1]==="="&&(l--,i[i.length-2]==="="&&l--);var w=new ArrayBuffer(l),T=new Uint8Array(w);for(s=0;s>4,T[f++]=(p&15)<<4|_>>2,T[f++]=(_&3)<<6|m&63;return w};e.decode=o,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var wo=pe((Oue,gb)=>{"use strict";gb.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var ea=pe(Ka=>{"use strict";var kB=lp().decode,SB=wo(),sp=Array.isArray,CB=ArrayBuffer,EB=DataView;function yb(e){return CB.isView(e)&&!(e instanceof EB)}Ka.isTypedArray=yb;function kc(e){return sp(e)||yb(e)}Ka.isArrayOrTypedArray=kc;function LB(e){return!kc(e[0])}Ka.isArray1D=LB;Ka.ensureArray=function(e,r){return sp(e)||(e=[]),e.length=r,e};var hn={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};hn.uint8c=hn.u1c;hn.uint8=hn.u1;hn.int8=hn.i1;hn.uint16=hn.u2;hn.int16=hn.i2;hn.uint32=hn.u4;hn.int32=hn.i4;hn.float32=hn.f4;hn.float64=hn.f8;function up(e){return e.constructor===ArrayBuffer}Ka.isArrayBuffer=up;Ka.decodeTypedArraySpec=function(e){var r=[],t=RB(e),n=t.dtype,a=hn[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var o=a.BYTES_PER_ELEMENT,i=t.bdata;up(i)||(i=kB(i));var l=t.shape===void 0?[i.byteLength/o]:(""+t.shape).split(",");l.reverse();var u=l.length,s,f,v=+l[0],p=o*v,_=0;if(u===1)r=new a(i);else if(u===2)for(s=+l[1],f=0;f{"use strict";var xb=tt(),cp=ea().isArrayOrTypedArray;Mb.exports=function(r,t){if(xb(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var n=t.split("."),a,o,i,l;for(l=0;l{"use strict";var Ss=Sc(),NB=/^\w*$/,zB=0,Tb=1,Cc=2,Ab=3,bl=4;kb.exports=function(r,t,n,a){n=n||"name",a=a||"value";var o,i,l,u={};t&&t.length?(l=Ss(r,t),i=l.get()):i=r,t=t||"";var s={};if(i)for(o=0;o2)return u[_]=u[_]|Cc,v.set(p,null);if(f){for(o=_;o{"use strict";var qB=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,OB=/^[^\.\[\]]+$/;Cb.exports=function(e,r){for(;r;){var t=e.match(qB);if(t)e=t[1];else if(e.match(OB))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Ec=pe((Gue,Lb)=>{"use strict";var BB=tt();Lb.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return BB(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var Pb=pe((Yue,Db)=>{"use strict";var Rb=ea().isArrayOrTypedArray,af=wo();Db.exports=function e(r,t){for(var n in t){var a=t[n],o=r[n];if(o!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if(Rb(a)&&Rb(o)&&af(a[0])){if(n==="customdata"||n==="ids")continue;for(var i=Math.min(a.length,o.length),l=0;l{"use strict";function UB(e,r){var t=e%r;return t<0?t+r:t}function HB(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Ib.exports={mod:UB,modHalf:HB}});var Sa=pe((Xue,Lc)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,o=e.min,i=e.max,l=e.random;function u(V,re){if(V=V||"",re=re||{},V instanceof u)return V;if(!(this instanceof u))return new u(V,re);var H=s(V);this._originalInput=V,this._r=H.r,this._g=H.g,this._b=H.b,this._a=H.a,this._roundA=a(100*this._a)/100,this._format=re.format||H.format,this._gradientType=re.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=H.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var V=this.toRgb();return(V.r*299+V.g*587+V.b*114)/1e3},getLuminance:function(){var V=this.toRgb(),re,H,te,ue,de,ke;return re=V.r/255,H=V.g/255,te=V.b/255,re<=.03928?ue=re/12.92:ue=e.pow((re+.055)/1.055,2.4),H<=.03928?de=H/12.92:de=e.pow((H+.055)/1.055,2.4),te<=.03928?ke=te/12.92:ke=e.pow((te+.055)/1.055,2.4),.2126*ue+.7152*de+.0722*ke},setAlpha:function(V){return this._a=L(V),this._roundA=a(100*this._a)/100,this},toHsv:function(){var V=_(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=_(this._r,this._g,this._b),re=a(V.h*360),H=a(V.s*100),te=a(V.v*100);return this._a==1?"hsv("+re+", "+H+"%, "+te+"%)":"hsva("+re+", "+H+"%, "+te+"%, "+this._roundA+")"},toHsl:function(){var V=v(this._r,this._g,this._b);return{h:V.h*360,s:V.s,l:V.l,a:this._a}},toHslString:function(){var V=v(this._r,this._g,this._b),re=a(V.h*360),H=a(V.s*100),te=a(V.l*100);return this._a==1?"hsl("+re+", "+H+"%, "+te+"%)":"hsla("+re+", "+H+"%, "+te+"%, "+this._roundA+")"},toHex:function(V){return w(this._r,this._g,this._b,V)},toHexString:function(V){return"#"+this.toHex(V)},toHex8:function(V){return T(this._r,this._g,this._b,this._a,V)},toHex8String:function(V){return"#"+this.toHex8(V)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(P(this._r,255)*100)+"%",g:a(P(this._g,255)*100)+"%",b:a(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%)":"rgba("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:F[w(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var re="#"+y(this._r,this._g,this._b,this._a),H=re,te=this._gradientType?"GradientType = 1, ":"";if(V){var ue=u(V);H="#"+y(ue._r,ue._g,ue._b,ue._a)}return"progid:DXImageTransform.Microsoft.gradient("+te+"startColorstr="+re+",endColorstr="+H+")"},toString:function(V){var re=!!V;V=V||this._format;var H=!1,te=this._a<1&&this._a>=0,ue=!re&&te&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return ue?V==="name"&&this._a===0?this.toName():this.toRgbString():(V==="rgb"&&(H=this.toRgbString()),V==="prgb"&&(H=this.toPercentageRgbString()),(V==="hex"||V==="hex6")&&(H=this.toHexString()),V==="hex3"&&(H=this.toHexString(!0)),V==="hex4"&&(H=this.toHex8String(!0)),V==="hex8"&&(H=this.toHex8String()),V==="name"&&(H=this.toName()),V==="hsl"&&(H=this.toHslString()),V==="hsv"&&(H=this.toHsvString()),H||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(V,re){var H=V.apply(null,[this].concat([].slice.call(re)));return this._r=H._r,this._g=H._g,this._b=H._b,this.setAlpha(H._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(d,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(V,re){return V.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(c,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(A,arguments)},tetrad:function(){return this._applyCombination(h,arguments)}},u.fromRatio=function(V,re){if(typeof V=="object"){var H={};for(var te in V)V.hasOwnProperty(te)&&(te==="a"?H[te]=V[te]:H[te]=Y(V[te]));V=H}return u(V,re)};function s(V){var re={r:0,g:0,b:0},H=1,te=null,ue=null,de=null,ke=!1,Ae=!1;return typeof V=="string"&&(V=ie(V)),typeof V=="object"&&(Q(V.r)&&Q(V.g)&&Q(V.b)?(re=f(V.r,V.g,V.b),ke=!0,Ae=String(V.r).substr(-1)==="%"?"prgb":"rgb"):Q(V.h)&&Q(V.s)&&Q(V.v)?(te=Y(V.s),ue=Y(V.v),re=m(V.h,te,ue),ke=!0,Ae="hsv"):Q(V.h)&&Q(V.s)&&Q(V.l)&&(te=Y(V.s),de=Y(V.l),re=p(V.h,te,de),ke=!0,Ae="hsl"),V.hasOwnProperty("a")&&(H=V.a)),H=L(H),{ok:ke,format:V.format||Ae,r:o(255,i(re.r,0)),g:o(255,i(re.g,0)),b:o(255,i(re.b,0)),a:H}}function f(V,re,H){return{r:P(V,255)*255,g:P(re,255)*255,b:P(H,255)*255}}function v(V,re,H){V=P(V,255),re=P(re,255),H=P(H,255);var te=i(V,re,H),ue=o(V,re,H),de,ke,Ae=(te+ue)/2;if(te==ue)de=ke=0;else{var ve=te-ue;switch(ke=Ae>.5?ve/(2-te-ue):ve/(te+ue),te){case V:de=(re-H)/ve+(re1&&(Pe-=1),Pe<1/6?Te+(Ee-Te)*6*Pe:Pe<1/2?Ee:Pe<2/3?Te+(Ee-Te)*(2/3-Pe)*6:Te}if(re===0)te=ue=de=H;else{var Ae=H<.5?H*(1+re):H+re-H*re,ve=2*H-Ae;te=ke(ve,Ae,V+1/3),ue=ke(ve,Ae,V),de=ke(ve,Ae,V-1/3)}return{r:te*255,g:ue*255,b:de*255}}function _(V,re,H){V=P(V,255),re=P(re,255),H=P(H,255);var te=i(V,re,H),ue=o(V,re,H),de,ke,Ae=te,ve=te-ue;if(ke=te===0?0:ve/te,te==ue)de=0;else{switch(te){case V:de=(re-H)/ve+(re>1)+720)%360;--re;)te.h=(te.h+ue)%360,de.push(u(te));return de}function D(V,re){re=re||6;for(var H=u(V).toHsv(),te=H.h,ue=H.s,de=H.v,ke=[],Ae=1/re;re--;)ke.push(u({h:te,s:ue,v:de})),de=(de+Ae)%1;return ke}u.mix=function(V,re,H){H=H===0?0:H||50;var te=u(V).toRgb(),ue=u(re).toRgb(),de=H/100,ke={r:(ue.r-te.r)*de+te.r,g:(ue.g-te.g)*de+te.g,b:(ue.b-te.b)*de+te.b,a:(ue.a-te.a)*de+te.a};return u(ke)},u.readability=function(V,re){var H=u(V),te=u(re);return(e.max(H.getLuminance(),te.getLuminance())+.05)/(e.min(H.getLuminance(),te.getLuminance())+.05)},u.isReadable=function(V,re,H){var te=u.readability(V,re),ue,de;switch(de=!1,ue=ee(H),ue.level+ue.size){case"AAsmall":case"AAAlarge":de=te>=4.5;break;case"AAlarge":de=te>=3;break;case"AAAsmall":de=te>=7;break}return de},u.mostReadable=function(V,re,H){var te=null,ue=0,de,ke,Ae,ve;H=H||{},ke=H.includeFallbackColors,Ae=H.level,ve=H.size;for(var Te=0;Teue&&(ue=de,te=u(re[Te]));return u.isReadable(V,te,{level:Ae,size:ve})||!ke?te:(H.includeFallbackColors=!1,u.mostReadable(V,["#fff","#000"],H))};var N=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},F=u.hexNames=I(N);function I(V){var re={};for(var H in V)V.hasOwnProperty(H)&&(re[V[H]]=H);return re}function L(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function P(V,re){X(V)&&(V="100%");var H=$(V);return V=o(re,i(0,parseFloat(V))),H&&(V=parseInt(V*re,10)/100),e.abs(V-re)<1e-6?1:V%re/parseFloat(re)}function O(V){return o(1,i(0,V))}function U(V){return parseInt(V,16)}function X(V){return typeof V=="string"&&V.indexOf(".")!=-1&&parseFloat(V)===1}function $(V){return typeof V=="string"&&V.indexOf("%")!=-1}function j(V){return V.length==1?"0"+V:""+V}function Y(V){return V<=1&&(V=V*100+"%"),V}function q(V){return e.round(parseFloat(V)*255).toString(16)}function K(V){return U(V)/255}var ne=function(){var V="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",H="(?:"+re+")|(?:"+V+")",te="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",ue="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?";return{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ue),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ue),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ue),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Q(V){return!!ne.CSS_UNIT.exec(V)}function ie(V){V=V.replace(r,"").replace(t,"").toLowerCase();var re=!1;if(N[V])V=N[V],re=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var H;return(H=ne.rgb.exec(V))?{r:H[1],g:H[2],b:H[3]}:(H=ne.rgba.exec(V))?{r:H[1],g:H[2],b:H[3],a:H[4]}:(H=ne.hsl.exec(V))?{h:H[1],s:H[2],l:H[3]}:(H=ne.hsla.exec(V))?{h:H[1],s:H[2],l:H[3],a:H[4]}:(H=ne.hsv.exec(V))?{h:H[1],s:H[2],v:H[3]}:(H=ne.hsva.exec(V))?{h:H[1],s:H[2],v:H[3],a:H[4]}:(H=ne.hex8.exec(V))?{r:U(H[1]),g:U(H[2]),b:U(H[3]),a:K(H[4]),format:re?"name":"hex8"}:(H=ne.hex6.exec(V))?{r:U(H[1]),g:U(H[2]),b:U(H[3]),format:re?"name":"hex"}:(H=ne.hex4.exec(V))?{r:U(H[1]+""+H[1]),g:U(H[2]+""+H[2]),b:U(H[3]+""+H[3]),a:K(H[4]+""+H[4]),format:re?"name":"hex8"}:(H=ne.hex3.exec(V))?{r:U(H[1]+""+H[1]),g:U(H[2]+""+H[2]),b:U(H[3]+""+H[3]),format:re?"name":"hex"}:!1}function ee(V){var re,H;return V=V||{level:"AA",size:"small"},re=(V.level||"AA").toUpperCase(),H=(V.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),H!=="small"&&H!=="large"&&(H="small"),{level:re,size:H}}typeof Lc!="undefined"&&Lc.exports?Lc.exports=u:window.tinycolor=u})(Math)});var Mt=pe(sf=>{"use strict";var Fb=wo(),of=Array.isArray;function VB(e,r){var t,n;for(t=0;t{"use strict";Nb.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var o={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(o.size.dflt="auto"),e.autoColor&&(o.color.dflt="auto"),e.arrayOk&&(o.family.arrayOk=!0,o.weight.arrayOk=!0,o.style.arrayOk=!0,e.noFontVariant||(o.variant.arrayOk=!0),e.noFontTextcase||(o.textcase.arrayOk=!0),e.noFontLineposition||(o.lineposition.arrayOk=!0),e.noFontShadow||(o.shadow.arrayOk=!0),o.size.arrayOk=!0,o.color.arrayOk=!0),o}});var uf=pe((Kue,zb)=>{"use strict";zb.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var _l=pe((Que,Bb)=>{"use strict";var qb=uf(),Ob=kn(),vp=Ob({editType:"none"});vp.family.dflt=qb.HOVERFONT;vp.size.dflt=qb.HOVERFONTSIZE;Bb.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:vp,grouptitlefont:Ob({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Rc=pe(($ue,Ub)=>{"use strict";var GB=kn(),ff=_l().hoverlabel,cf=Mt().extendFlat;Ub.exports={hoverlabel:{bgcolor:cf({},ff.bgcolor,{arrayOk:!0}),bordercolor:cf({},ff.bordercolor,{arrayOk:!0}),font:GB({arrayOk:!0,editType:"none"}),align:cf({},ff.align,{arrayOk:!0}),namelength:cf({},ff.namelength,{arrayOk:!0}),showarrow:cf({},ff.showarrow),editType:"none"}}});var Sn=pe((jue,Hb)=>{"use strict";var YB=kn(),WB=Rc();Hb.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:YB({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:WB.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var wl=pe((efe,Yb)=>{"use strict";var XB=Sa(),Dc={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Vb=Dc.RdBu;function ZB(e,r){if(r||(r=Vb),!e)return r;function t(){try{e=Dc[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),Gb(e)?e:r}function Gb(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";Ml.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Ml.defaultLine="#444";Ml.lightLine="#eee";Ml.background="#fff";Ml.borderLine="#BEC8D9";Ml.lightFraction=100*10/11});var Zr=pe((tfe,Wb)=>{"use strict";var ra=Sa(),KB=tt(),QB=ea().isTypedArray,on=Wb.exports={},Pc=Ti();on.defaults=Pc.defaults;var $B=on.defaultLine=Pc.defaultLine;on.lightLine=Pc.lightLine;var dp=on.background=Pc.background;on.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};on.rgb=function(e){return on.tinyRGB(ra(e))};on.opacity=function(e){return e?ra(e).getAlpha():0};on.addOpacity=function(e,r){var t=ra(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};on.combine=function(e,r){var t=ra(e).toRgb();if(t.a===1)return ra(e).toRgbString();var n=ra(r||dp).toRgb(),a=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},o={r:a.r*(1-t.a)+t.r*t.a,g:a.g*(1-t.a)+t.g*t.a,b:a.b*(1-t.a)+t.b*t.a};return ra(o).toRgbString()};on.interpolate=function(e,r,t){var n=ra(e).toRgb(),a=ra(r).toRgb(),o={r:t*n.r+(1-t)*a.r,g:t*n.g+(1-t)*a.g,b:t*n.b+(1-t)*a.b};return ra(o).toRgbString()};on.contrast=function(e,r,t){var n=ra(e);n.getAlpha()!==1&&(n=ra(on.combine(e,dp)));var a=n.isDark()?r?n.lighten(r):dp:t?n.darken(t):$B;return a.toString()};on.stroke=function(e,r){var t=ra(r);e.style({stroke:on.tinyRGB(t),"stroke-opacity":t.getAlpha()})};on.fill=function(e,r){var t=ra(r);e.style({fill:on.tinyRGB(t),"fill-opacity":t.getAlpha()})};on.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,n,a,o;for(t=0;t=0)))return e;if(o===3)n[o]>1&&(n[o]=1);else if(n[o]>=1)return e}var i=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return a?"rgba("+i+", "+n[3]+")":"rgb("+i+")"}});var Ic=pe((nfe,Xb)=>{"use strict";Xb.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Es=pe(Zb=>{"use strict";Zb.counter=function(e,r,t,n){var a=(r||"")+(t?"":"$"),o=n===!1?"":"^";return e==="xy"?new RegExp(o+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(o+e+"([2-9]|[1-9][0-9]+)?"+a)}});var $b=pe(ta=>{"use strict";var pp=tt(),Jb=Sa(),Kb=Mt().extendFlat,jB=Sn(),eU=wl(),rU=Zr(),tU=Ic().DESELECTDIM,Ls=Sc(),Qb=Es().counter,nU=Cs().modHalf,Ai=ea().isArrayOrTypedArray,Mo=ea().isTypedArraySpec,To=ea().decodeTypedArraySpec;ta.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Ai(e)?e:Mo(e)?To(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;nn.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}Mo(e)&&(e=To(e)),e%1||!pp(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Mo(e)&&(e=To(e)),Jb(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return Jb(a).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(n)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(eU.get(e,t))}},angle:{coerceFunction:function(e,r,t){Mo(e)&&(e=To(e)),e==="auto"?r.set("auto"):pp(e)?r.set(nU(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||Qb(t);if(typeof e=="string"&&a.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!Qb(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),o=0;o{"use strict";var jb={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},e4={};function r4(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),r4(n,r[t]))}}r4(jb,e4);t4.exports={configAttributes:jb,dfltConfig:e4}});var yp=pe((lfe,n4)=>{"use strict";var gp=ot(),aU=tt(),vf=[];n4.exports=function(e,r){if(vf.indexOf(e)!==-1)return;vf.push(e);var t=1e3;aU(r)?t=r:r==="long"&&(t=3e3);var n=gp.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(vf);function o(i){i.duration(700).style("opacity",0).each("end",function(l){var u=vf.indexOf(l);u!==-1&&vf.splice(u,1),gp.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(i){var l=gp.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(o)});for(var u=l.append("p"),s=i.split(//g),f=0;f{"use strict";var Rs=Tl().dfltConfig,mp=yp(),xp=a4.exports={};xp.log=function(){var e;if(Rs.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};xp.warn=function(){var e;if(Rs.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};xp.error=function(){var e;if(Rs.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Nc=pe((ufe,i4)=>{"use strict";i4.exports=function(){}});var bp=pe((ffe,o4)=>{"use strict";o4.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{l4.exports=iU;function iU(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var f4=pe((vfe,u4)=>{u4.exports=oU;function oU(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var v4=pe((hfe,c4)=>{c4.exports=lU;function lU(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var _p=pe((dfe,h4)=>{h4.exports=sU;function sU(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var p4=pe((pfe,d4)=>{d4.exports=uU;function uU(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],o=r[6],i=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=o,e[11]=r[14],e[12]=a,e[13]=i,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var y4=pe((gfe,g4)=>{g4.exports=fU;function fU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],v=r[9],p=r[10],_=r[11],m=r[12],w=r[13],T=r[14],y=r[15],k=t*l-n*i,S=t*u-a*i,x=t*s-o*i,M=n*u-a*l,d=n*s-o*l,b=a*s-o*u,g=f*w-v*m,c=f*T-p*m,A=f*y-_*m,h=v*T-p*w,R=v*y-_*w,E=p*y-_*T,D=k*E-S*R+x*h+M*A-d*c+b*g;return D?(D=1/D,e[0]=(l*E-u*R+s*h)*D,e[1]=(a*R-n*E-o*h)*D,e[2]=(w*b-T*d+y*M)*D,e[3]=(p*d-v*b-_*M)*D,e[4]=(u*A-i*E-s*c)*D,e[5]=(t*E-a*A+o*c)*D,e[6]=(T*x-m*b-y*S)*D,e[7]=(f*b-p*x+_*S)*D,e[8]=(i*R-l*A+s*g)*D,e[9]=(n*A-t*R-o*g)*D,e[10]=(m*d-w*x+y*k)*D,e[11]=(v*x-f*d-_*k)*D,e[12]=(l*c-i*h-u*g)*D,e[13]=(t*h-n*c+a*g)*D,e[14]=(w*S-m*M-T*k)*D,e[15]=(f*M-v*S+p*k)*D,e):null}});var x4=pe((yfe,m4)=>{m4.exports=cU;function cU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],v=r[9],p=r[10],_=r[11],m=r[12],w=r[13],T=r[14],y=r[15];return e[0]=l*(p*y-_*T)-v*(u*y-s*T)+w*(u*_-s*p),e[1]=-(n*(p*y-_*T)-v*(a*y-o*T)+w*(a*_-o*p)),e[2]=n*(u*y-s*T)-l*(a*y-o*T)+w*(a*s-o*u),e[3]=-(n*(u*_-s*p)-l*(a*_-o*p)+v*(a*s-o*u)),e[4]=-(i*(p*y-_*T)-f*(u*y-s*T)+m*(u*_-s*p)),e[5]=t*(p*y-_*T)-f*(a*y-o*T)+m*(a*_-o*p),e[6]=-(t*(u*y-s*T)-i*(a*y-o*T)+m*(a*s-o*u)),e[7]=t*(u*_-s*p)-i*(a*_-o*p)+f*(a*s-o*u),e[8]=i*(v*y-_*w)-f*(l*y-s*w)+m*(l*_-s*v),e[9]=-(t*(v*y-_*w)-f*(n*y-o*w)+m*(n*_-o*v)),e[10]=t*(l*y-s*w)-i*(n*y-o*w)+m*(n*s-o*l),e[11]=-(t*(l*_-s*v)-i*(n*_-o*v)+f*(n*s-o*l)),e[12]=-(i*(v*T-p*w)-f*(l*T-u*w)+m*(l*p-u*v)),e[13]=t*(v*T-p*w)-f*(n*T-a*w)+m*(n*p-a*v),e[14]=-(t*(l*T-u*w)-i*(n*T-a*w)+m*(n*u-a*l)),e[15]=t*(l*p-u*v)-i*(n*p-a*v)+f*(n*u-a*l),e}});var _4=pe((mfe,b4)=>{b4.exports=vU;function vU(e){var r=e[0],t=e[1],n=e[2],a=e[3],o=e[4],i=e[5],l=e[6],u=e[7],s=e[8],f=e[9],v=e[10],p=e[11],_=e[12],m=e[13],w=e[14],T=e[15],y=r*i-t*o,k=r*l-n*o,S=r*u-a*o,x=t*l-n*i,M=t*u-a*i,d=n*u-a*l,b=s*m-f*_,g=s*w-v*_,c=s*T-p*_,A=f*w-v*m,h=f*T-p*m,R=v*T-p*w;return y*R-k*h+S*A+x*c-M*g+d*b}});var M4=pe((xfe,w4)=>{w4.exports=hU;function hU(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=r[4],u=r[5],s=r[6],f=r[7],v=r[8],p=r[9],_=r[10],m=r[11],w=r[12],T=r[13],y=r[14],k=r[15],S=t[0],x=t[1],M=t[2],d=t[3];return e[0]=S*n+x*l+M*v+d*w,e[1]=S*a+x*u+M*p+d*T,e[2]=S*o+x*s+M*_+d*y,e[3]=S*i+x*f+M*m+d*k,S=t[4],x=t[5],M=t[6],d=t[7],e[4]=S*n+x*l+M*v+d*w,e[5]=S*a+x*u+M*p+d*T,e[6]=S*o+x*s+M*_+d*y,e[7]=S*i+x*f+M*m+d*k,S=t[8],x=t[9],M=t[10],d=t[11],e[8]=S*n+x*l+M*v+d*w,e[9]=S*a+x*u+M*p+d*T,e[10]=S*o+x*s+M*_+d*y,e[11]=S*i+x*f+M*m+d*k,S=t[12],x=t[13],M=t[14],d=t[15],e[12]=S*n+x*l+M*v+d*w,e[13]=S*a+x*u+M*p+d*T,e[14]=S*o+x*s+M*_+d*y,e[15]=S*i+x*f+M*m+d*k,e}});var A4=pe((bfe,T4)=>{T4.exports=dU;function dU(e,r,t){var n=t[0],a=t[1],o=t[2],i,l,u,s,f,v,p,_,m,w,T,y;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*o+r[12],e[13]=r[1]*n+r[5]*a+r[9]*o+r[13],e[14]=r[2]*n+r[6]*a+r[10]*o+r[14],e[15]=r[3]*n+r[7]*a+r[11]*o+r[15]):(i=r[0],l=r[1],u=r[2],s=r[3],f=r[4],v=r[5],p=r[6],_=r[7],m=r[8],w=r[9],T=r[10],y=r[11],e[0]=i,e[1]=l,e[2]=u,e[3]=s,e[4]=f,e[5]=v,e[6]=p,e[7]=_,e[8]=m,e[9]=w,e[10]=T,e[11]=y,e[12]=i*n+f*a+m*o+r[12],e[13]=l*n+v*a+w*o+r[13],e[14]=u*n+p*a+T*o+r[14],e[15]=s*n+_*a+y*o+r[15]),e}});var S4=pe((_fe,k4)=>{k4.exports=pU;function pU(e,r,t){var n=t[0],a=t[1],o=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*o,e[9]=r[9]*o,e[10]=r[10]*o,e[11]=r[11]*o,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var E4=pe((wfe,C4)=>{C4.exports=gU;function gU(e,r,t,n){var a=n[0],o=n[1],i=n[2],l=Math.sqrt(a*a+o*o+i*i),u,s,f,v,p,_,m,w,T,y,k,S,x,M,d,b,g,c,A,h,R,E,D,N;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,o*=l,i*=l,u=Math.sin(t),s=Math.cos(t),f=1-s,v=r[0],p=r[1],_=r[2],m=r[3],w=r[4],T=r[5],y=r[6],k=r[7],S=r[8],x=r[9],M=r[10],d=r[11],b=a*a*f+s,g=o*a*f+i*u,c=i*a*f-o*u,A=a*o*f-i*u,h=o*o*f+s,R=i*o*f+a*u,E=a*i*f+o*u,D=o*i*f-a*u,N=i*i*f+s,e[0]=v*b+w*g+S*c,e[1]=p*b+T*g+x*c,e[2]=_*b+y*g+M*c,e[3]=m*b+k*g+d*c,e[4]=v*A+w*h+S*R,e[5]=p*A+T*h+x*R,e[6]=_*A+y*h+M*R,e[7]=m*A+k*h+d*R,e[8]=v*E+w*D+S*N,e[9]=p*E+T*D+x*N,e[10]=_*E+y*D+M*N,e[11]=m*E+k*D+d*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var R4=pe((Mfe,L4)=>{L4.exports=yU;function yU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[4],i=r[5],l=r[6],u=r[7],s=r[8],f=r[9],v=r[10],p=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=o*a+s*n,e[5]=i*a+f*n,e[6]=l*a+v*n,e[7]=u*a+p*n,e[8]=s*a-o*n,e[9]=f*a-i*n,e[10]=v*a-l*n,e[11]=p*a-u*n,e}});var P4=pe((Tfe,D4)=>{D4.exports=mU;function mU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[8],f=r[9],v=r[10],p=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a-s*n,e[1]=i*a-f*n,e[2]=l*a-v*n,e[3]=u*a-p*n,e[8]=o*n+s*a,e[9]=i*n+f*a,e[10]=l*n+v*a,e[11]=u*n+p*a,e}});var F4=pe((Afe,I4)=>{I4.exports=xU;function xU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[4],f=r[5],v=r[6],p=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a+s*n,e[1]=i*a+f*n,e[2]=l*a+v*n,e[3]=u*a+p*n,e[4]=s*a-o*n,e[5]=f*a-i*n,e[6]=v*a-l*n,e[7]=p*a-u*n,e}});var z4=pe((kfe,N4)=>{N4.exports=bU;function bU(e,r,t){var n,a,o,i=t[0],l=t[1],u=t[2],s=Math.sqrt(i*i+l*l+u*u);return Math.abs(s)<1e-6?null:(s=1/s,i*=s,l*=s,u*=s,n=Math.sin(r),a=Math.cos(r),o=1-a,e[0]=i*i*o+a,e[1]=l*i*o+u*n,e[2]=u*i*o-l*n,e[3]=0,e[4]=i*l*o-u*n,e[5]=l*l*o+a,e[6]=u*l*o+i*n,e[7]=0,e[8]=i*u*o+l*n,e[9]=l*u*o-i*n,e[10]=u*u*o+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var O4=pe((Sfe,q4)=>{q4.exports=_U;function _U(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=n+n,u=a+a,s=o+o,f=n*l,v=n*u,p=n*s,_=a*u,m=a*s,w=o*s,T=i*l,y=i*u,k=i*s;return e[0]=1-(_+w),e[1]=v+k,e[2]=p-y,e[3]=0,e[4]=v-k,e[5]=1-(f+w),e[6]=m+T,e[7]=0,e[8]=p+y,e[9]=m-T,e[10]=1-(f+_),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var U4=pe((Cfe,B4)=>{B4.exports=wU;function wU(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var V4=pe((Efe,H4)=>{H4.exports=MU;function MU(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Y4=pe((Lfe,G4)=>{G4.exports=TU;function TU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var X4=pe((Rfe,W4)=>{W4.exports=AU;function AU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var J4=pe((Dfe,Z4)=>{Z4.exports=kU;function kU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Q4=pe((Pfe,K4)=>{K4.exports=SU;function SU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=t+t,l=n+n,u=a+a,s=t*i,f=n*i,v=n*l,p=a*i,_=a*l,m=a*u,w=o*i,T=o*l,y=o*u;return e[0]=1-v-m,e[1]=f+y,e[2]=p-T,e[3]=0,e[4]=f-y,e[5]=1-s-m,e[6]=_+w,e[7]=0,e[8]=p+T,e[9]=_-w,e[10]=1-s-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var j4=pe((Ife,$4)=>{$4.exports=CU;function CU(e,r,t,n,a,o,i){var l=1/(t-r),u=1/(a-n),s=1/(o-i);return e[0]=o*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o*2*u,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*u,e[10]=(i+o)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*o*2*s,e[15]=0,e}});var r_=pe((Ffe,e_)=>{e_.exports=EU;function EU(e,r,t,n,a){var o=1/Math.tan(r/2),i=1/(n-a);return e[0]=o/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*i,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*i,e[15]=0,e}});var n_=pe((Nfe,t_)=>{t_.exports=LU;function LU(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),o=Math.tan(r.downDegrees*Math.PI/180),i=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),u=2/(i+l),s=2/(a+o);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=-((i-l)*u*.5),e[9]=(a-o)*s*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var i_=pe((zfe,a_)=>{a_.exports=RU;function RU(e,r,t,n,a,o,i){var l=1/(r-t),u=1/(n-a),s=1/(o-i);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*u,e[14]=(i+o)*s,e[15]=1,e}});var l_=pe((qfe,o_)=>{var DU=_p();o_.exports=PU;function PU(e,r,t,n){var a,o,i,l,u,s,f,v,p,_,m=r[0],w=r[1],T=r[2],y=n[0],k=n[1],S=n[2],x=t[0],M=t[1],d=t[2];return Math.abs(m-x)<1e-6&&Math.abs(w-M)<1e-6&&Math.abs(T-d)<1e-6?DU(e):(f=m-x,v=w-M,p=T-d,_=1/Math.sqrt(f*f+v*v+p*p),f*=_,v*=_,p*=_,a=k*p-S*v,o=S*f-y*p,i=y*v-k*f,_=Math.sqrt(a*a+o*o+i*i),_?(_=1/_,a*=_,o*=_,i*=_):(a=0,o=0,i=0),l=v*i-p*o,u=p*a-f*i,s=f*o-v*a,_=Math.sqrt(l*l+u*u+s*s),_?(_=1/_,l*=_,u*=_,s*=_):(l=0,u=0,s=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=o,e[5]=u,e[6]=v,e[7]=0,e[8]=i,e[9]=s,e[10]=p,e[11]=0,e[12]=-(a*m+o*w+i*T),e[13]=-(l*m+u*w+s*T),e[14]=-(f*m+v*w+p*T),e[15]=1,e)}});var u_=pe((Ofe,s_)=>{s_.exports=IU;function IU(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var wp=pe((Bfe,f_)=>{f_.exports={create:s4(),clone:f4(),copy:v4(),identity:_p(),transpose:p4(),invert:y4(),adjoint:x4(),determinant:_4(),multiply:M4(),translate:A4(),scale:S4(),rotate:E4(),rotateX:R4(),rotateY:P4(),rotateZ:F4(),fromRotation:z4(),fromRotationTranslation:O4(),fromScaling:U4(),fromTranslation:V4(),fromXRotation:Y4(),fromYRotation:X4(),fromZRotation:J4(),fromQuat:Q4(),frustum:j4(),perspective:r_(),perspectiveFromFieldOfView:n_(),ortho:i_(),lookAt:l_(),str:u_()}});var zc=pe(Ut=>{"use strict";var FU=wp();Ut.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var NU=ot(),c_=Al(),zU=zc(),qU=wp();function OU(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function BU(e){var r=NU.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function v_(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function UU(e,r){h_("global",e,r)}function h_(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var o=a.sheet;o?o.insertRule?o.insertRule(r+"{"+t+"}",0):o.addRule?o.addRule(r,t,0):c_.warn("addStyleRule failed"):c_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function HU(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&v_(t)}function VU(e,r,t,n,a,o){var i=n.split(":"),l=a.split(":"),u="data-btn-style-event-added";o||(o=document),o.querySelectorAll(e).forEach(function(s){s.getAttribute(u)||(s.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[i[0]]=i[1])}),s.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[i[0]]=i[1]:f.style[l[0]]=l[1])}),s.setAttribute(u,!0))})}function GU(e){var r=p_(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=d_(n);if(a){var o=zU.convertCssMatrix(a);t=qU.multiply(t,t,o)}}),t}function d_(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function p_(e){for(var r=[];YU(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function YU(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function WU(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}g_.exports={getGraphDiv:OU,isPlotDiv:BU,removeElement:v_,addStyleRule:UU,addRelatedStyleRule:h_,deleteRelatedStyleRule:HU,setStyleOnHover:VU,getFullTransformMatrix:GU,getElementTransformMatrix:d_,getElementAndAncestors:p_,equalDomRects:WU}});var df=pe((Vfe,y_)=>{"use strict";y_.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var zn=pe((Gfe,T_)=>{"use strict";var x_=Mt().extendFlat,XU=wo(),b_={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},__={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},ZU=b_.flags.slice().concat(["fullReplot"]),JU=__.flags.slice().concat("layoutReplot");T_.exports={traces:b_,layout:__,traceFlags:function(){return m_(ZU)},layoutFlags:function(){return m_(JU)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";Mp.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Mp.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Tp=pe((Wfe,A_)=>{"use strict";A_.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var ha=pe(pf=>{"use strict";var k_=Tp(),KU=k_.FORMAT_LINK,QU=k_.DATE_FORMAT_LINK;function $U(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,KU,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,QU,"for details on the date formatting syntax."].join(" ")}pf.templateFormatStringDescription=$U;function Ap(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var n=[],a=0;a{"use strict";function ko(e,r){return r?r.d2l(e):e}function S_(e,r){return r?r.l2d(e):e}function jU(e){return e.x0}function eH(e){return e.x1}function rH(e){return e.y0}function tH(e){return e.y1}function C_(e){return e.x0shift||0}function E_(e){return e.x1shift||0}function L_(e){return e.y0shift||0}function R_(e){return e.y1shift||0}function qc(e,r){return ko(e.x1,r)+E_(e)-ko(e.x0,r)-C_(e)}function Oc(e,r,t){return ko(e.y1,t)+R_(e)-ko(e.y0,t)-L_(e)}function nH(e,r){return Math.abs(qc(e,r))}function aH(e,r,t){return Math.abs(Oc(e,r,t))}function iH(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(qc(e,r),2)+Math.pow(Oc(e,r,t),2))}function oH(e,r){return S_((ko(e.x1,r)+E_(e)+ko(e.x0,r)+C_(e))/2,r)}function lH(e,r,t){return S_((ko(e.y1,t)+R_(e)+ko(e.y0,t)+L_(e))/2,t)}function sH(e,r,t){return e.type!=="line"?void 0:Oc(e,r,t)/qc(e,r)}D_.exports={x0:jU,x1:eH,y0:rH,y1:tH,slope:sH,dx:qc,dy:Oc,width:nH,height:aH,length:iH,xcenter:oH,ycenter:lH}});var F_=pe((Jfe,I_)=>{"use strict";var uH=zn().overrideAll,kl=Sn(),P_=kn(),fH=Ao().dash,So=Mt().extendFlat,cH=ha().shapeTexttemplateAttrs,vH=Bc();I_.exports=uH({newshape:{visible:So({},kl.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:So({},kl.legend,{}),legendgroup:So({},kl.legendgroup,{}),legendgrouptitle:{text:So({},kl.legendgrouptitle.text,{}),font:P_({})},legendrank:So({},kl.legendrank,{}),legendwidth:So({},kl.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:So({},fH,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:So({},kl.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:cH({newshape:!0},{keys:Object.keys(vH)}),font:P_({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var z_=pe((Kfe,N_)=>{"use strict";var hH=Ao().dash,dH=Mt().extendFlat;N_.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:dH({},hH,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Uc=pe((Qfe,q_)=>{"use strict";q_.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Ds=pe(($fe,H_)=>{"use strict";var kp=kn(),pH=df(),Hc=Ti(),O_=F_(),B_=z_(),gH=Uc(),U_=Mt().extendFlat,Vc=kp({editType:"calc"});Vc.family.dflt='"Open Sans", verdana, arial, sans-serif';Vc.size.dflt=12;Vc.color.dflt=Hc.defaultLine;H_.exports={font:Vc,title:{text:{valType:"string",editType:"layoutstyle"},font:kp({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:kp({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:U_(gH({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Hc.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Hc.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Hc.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:O_.newshape,activeshape:O_.activeshape,newselection:B_.newselection,activeselection:B_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:U_({},pH.transition,{editType:"none"})}});var V_=pe(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var Er=pe(Jr=>{"use strict";var Ps=Al(),G_=Nc(),Y_=bp(),yH=wo(),mH=hf().addStyleRule,W_=Mt(),xH=Sn(),bH=Ds(),_H=W_.extendFlat,Sp=W_.extendDeepAll;Jr.modules={};Jr.allCategories={};Jr.allTypes=[];Jr.subplotsRegistry={};Jr.componentsRegistry={};Jr.layoutArrayContainers=[];Jr.layoutArrayRegexes=[];Jr.traceLayoutAttributes={};Jr.localeRegistry={};Jr.apiMethodRegistry={};Jr.collectableSubplotTypes=null;Jr.register=function(r){if(Jr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var SH=ks().timeFormat,n6=tt(),Cp=Al(),Eo=Cs().mod,Ns=an(),Ca=Ns.BADNUM,na=Ns.ONEDAY,gf=Ns.ONEHOUR,Co=Ns.ONEMIN,Fs=Ns.ONESEC,yf=Ns.EPOCHJD,Zi=Er(),Q_=ks().utcFormat,CH=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,EH=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,$_=new Date().getFullYear()-70;function Ji(e){return e&&Zi.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Ht.dateTick0=function(e,r){var t=LH(e,!!r);if(r<2)return t;var n=Ht.dateTime2ms(t,e);return n+=na*(r-1),Ht.ms2DateTime(n,0,e)};function LH(e,r){return Ji(e)?r?Zi.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Zi.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Ht.dfltRange=function(e){return Ji(e)?Zi.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Ht.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Yc,Wc;Ht.dateTime2ms=function(e,r){if(Ht.isJSDate(e)){var t=e.getTimezoneOffset()*Co,n=(e.getUTCMinutes()-e.getMinutes())*Co+(e.getUTCSeconds()-e.getSeconds())*Fs+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*Co;t=t-a/2+Eo(n-t+a/2,a)}return e=Number(e)-t,e>=Yc&&e<=Wc?e:Ca}if(typeof e!="string"&&typeof e!="number")return Ca;e=String(e);var o=Ji(r),i=e.charAt(0);o&&(i==="G"||i==="g")&&(e=e.substr(1),r="");var l=o&&r.substr(0,7)==="chinese",u=e.match(l?EH:CH);if(!u)return Ca;var s=u[1],f=u[3]||"1",v=Number(u[5]||1),p=Number(u[7]||0),_=Number(u[9]||0),m=Number(u[11]||0);if(o){if(s.length===2)return Ca;s=Number(s);var w;try{var T=Zi.getComponentMethod("calendars","getCal")(r);if(l){var y=f.charAt(f.length-1)==="i";f=parseInt(f,10),w=T.newDate(s,T.toMonthIndex(s,f,y),v)}else w=T.newDate(s,Number(f),v)}catch(S){return Ca}return w?(w.toJD()-yf)*na+p*gf+_*Co+m*Fs:Ca}s.length===2?s=(Number(s)+2e3-$_)%100+$_:s=Number(s),f-=1;var k=new Date(Date.UTC(2e3,f,v,p,_));return k.setUTCFullYear(s),k.getUTCMonth()!==f||k.getUTCDate()!==v?Ca:k.getTime()+m*Fs};Yc=Ht.MIN_MS=Ht.dateTime2ms("-9999");Wc=Ht.MAX_MS=Ht.dateTime2ms("9999-12-31 23:59:59.9999");Ht.isDateTime=function(e,r){return Ht.dateTime2ms(e,r)!==Ca};function Is(e,r){return String(e+Math.pow(10,r)).substr(1)}var Gc=90*na,j_=3*gf,e6=5*Co;Ht.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Yc&&e<=Wc))return Ca;r||(r=0);var n=Math.floor(Eo(e+.05,1)*10),a=Math.round(e-n/10),o,i,l,u,s,f;if(Ji(t)){var v=Math.floor(a/na)+yf,p=Math.floor(Eo(e,na));try{o=Zi.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(_){o=Q_("G%Y-%m-%d")(new Date(a))}if(o.charAt(0)==="-")for(;o.length<11;)o="-0"+o.substr(1);else for(;o.length<10;)o="0"+o;i=r=Yc+na&&e<=Wc-na))return Ca;var r=Math.floor(Eo(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=SH("%Y-%m-%d")(t),a=t.getHours(),o=t.getMinutes(),i=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return a6(n,a,o,i,l)};function a6(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+Is(r,2)+":"+Is(t,2),(n||a)&&(e+=":"+Is(n,2),a))){for(var o=4;a%10===0;)o-=1,a/=10;e+="."+Is(a,o)}return e}Ht.cleanDate=function(e,r,t){if(e===Ca)return r;if(Ht.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Ji(t))return Cp.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Ht.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Ht.isDateTime(e,t))return Cp.error("unrecognized date",e),r;return e};var RH=/%\d?f/g,DH=/%h/g,PH={1:"1",2:"1",3:"2",4:"2"};function r6(e,r,t,n){e=e.replace(RH,function(o){var i=Math.min(+o.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(i).substr(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(DH,function(){return PH[t("%q")(a)]}),Ji(n))try{e=Zi.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(o){return"Invalid"}return t(e)(a)}var IH=[59,59.9,59.99,59.999,59.9999];function FH(e,r){var t=Eo(e+.05,na),n=Is(Math.floor(t/gf),2)+":"+Is(Eo(Math.floor(t/Co),60),2);if(r!=="M"){n6(r)||(r=0);var a=Math.min(Eo(e/Fs,60),IH[r]),o=(100+a).toFixed(r).substr(1);r>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+o}return n}Ht.formatDate=function(e,r,t,n,a,o){if(a=Ji(a)&&a,!r)if(t==="y")r=o.year;else if(t==="m")r=o.month;else if(t==="d")r=o.dayMonth+` +`+o.year;else return FH(e,t)+` +`+r6(o.dayMonthYear,e,n,a);return r6(r,e,n,a)};var t6=3*na;Ht.incrementMonth=function(e,r,t){t=Ji(t)&&t;var n=Eo(e,na);if(e=Math.round(e-n),t)try{var a=Math.round(e/na)+yf,o=Zi.getComponentMethod("calendars","getCal")(t),i=o.fromJD(a);return r%12?o.add(i,r,"m"):o.add(i,r/12,"y"),(i.toJD()-yf)*na+n}catch(u){Cp.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+t6);return l.setUTCMonth(l.getUTCMonth()+r)+n-t6};Ht.findExactDates=function(e,r){for(var t=0,n=0,a=0,o=0,i,l,u=Ji(r)&&Zi.getComponentMethod("calendars","getCal")(r),s=0;s{"use strict";o6.exports=function(r){return r}});var Rp=pe(Ki=>{"use strict";var NH=tt(),zH=Al(),qH=Ep(),OH=an().BADNUM,Lp=1e-9;Ki.findBin=function(e,r,t){if(NH(r.start))return t?Math.ceil((e-r.start)/r.size-Lp)-1:Math.floor((e-r.start)/r.size+Lp);var n=0,a=r.length,o=0,i=a>1?(r[a-1]-r[0])/(a-1):1,l,u;for(i>=0?u=t?BH:UH:u=t?VH:HH,e+=i*Lp*(t?-1:1)*(i>=0?1:-1);n90&&zH.log("Long binary search..."),n-1};function BH(e,r){return er}function VH(e,r){return e>=r}Ki.sorterAsc=function(e,r){return e-r};Ki.sorterDes=function(e,r){return r-e};Ki.distinctVals=function(e){var r=e.slice();r.sort(Ki.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===OH;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,o=[],i,l=0;l<=t;l++){var u=r[l],s=u-i;i===void 0?(o.push(u),i=u):s>a&&(n=Math.min(n,s),o.push(u),i=u)}return{vals:o,minDiff:n}};Ki.roundUp=function(e,r,t){for(var n=0,a=r.length-1,o,i=0,l=t?0:1,u=t?1:0,s=t?Math.ceil:Math.floor;n0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};Ki.findIndexOfMin=function(e,r){r=r||qH;for(var t=1/0,n,a=0;a{"use strict";l6.exports=function(r){return Object.keys(r).sort()}});var s6=pe(Vt=>{"use strict";var mf=tt(),GH=ea().isArrayOrTypedArray;Vt.aggNums=function(e,r,t,n){var a,o;if((!n||n>t.length)&&(n=t.length),mf(r)||(r=!1),GH(t[0])){for(o=new Array(n),a=0;ae.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var h6=pe((l0e,v6)=>{"use strict";var u6=Cs(),Dp=u6.mod,YH=u6.modHalf,xf=Math.PI,Lo=2*xf;function WH(e){return e/180*xf}function XH(e){return e/xf*180}function Pp(e){return Math.abs(e[1]-e[0])>Lo-1e-14}function f6(e,r){return YH(r-e,Lo)}function ZH(e,r){return Math.abs(f6(e,r))}function c6(e,r){if(Pp(r))return!0;var t,n;r[0]n&&(n+=Lo);var a=Dp(e,Lo),o=a+Lo;return a>=t&&a<=n||o>=t&&o<=n}function JH(e,r,t,n){if(!c6(r,n))return!1;var a,o;return t[0]=a&&e<=o}function Ip(e,r,t,n,a,o,i){a=a||0,o=o||0;var l=Pp([t,n]),u,s,f,v,p;l?(u=0,s=xf,f=Lo):t{"use strict";Sl.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Sl.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Sl.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Sl.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Sl.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Sl.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var y6=pe(Cl=>{"use strict";var Fp=Cs().mod;Cl.segmentsIntersect=g6;function g6(e,r,t,n,a,o,i,l){var u=t-e,s=a-e,f=i-a,v=n-r,p=o-r,_=l-o,m=u*_-f*v;if(m===0)return null;var w=(s*_-f*p)/m,T=(s*v-u*p)/m;return T<0||T>1||w<0||w>1?null:{x:e+u*w,y:r+v*w}}Cl.segmentDistance=function(r,t,n,a,o,i,l,u){if(g6(r,t,n,a,o,i,l,u))return 0;var s=n-r,f=a-t,v=l-o,p=u-i,_=s*s+f*f,m=v*v+p*p,w=Math.min(Zc(s,f,_,o-r,i-t),Zc(s,f,_,l-r,u-t),Zc(v,p,m,r-o,t-i),Zc(v,p,m,n-o,a-i));return Math.sqrt(w)};function Zc(e,r,t,n,a){var o=n*e+a*r;if(o<0)return n*n+a*a;if(o>t){var i=n-e,l=a-r;return i*i+l*l}else{var u=n*r-a*e;return u*u/t}}var Jc,Np,p6;Cl.getTextLocation=function(r,t,n,a){if((r!==Np||a!==p6)&&(Jc={},Np=r,p6=a),Jc[n])return Jc[n];var o=r.getPointAtLength(Fp(n-a/2,t)),i=r.getPointAtLength(Fp(n+a/2,t)),l=Math.atan((i.y-o.y)/(i.x-o.x)),u=r.getPointAtLength(Fp(n,t)),s=(u.x*4+o.x+i.x)/6,f=(u.y*4+o.y+i.y)/6,v={x:s,y:f,theta:l};return Jc[n]=v,v};Cl.clearLocationCache=function(){Np=null};Cl.getVisibleSegment=function(r,t,n){var a=t.left,o=t.right,i=t.top,l=t.bottom,u=0,s=r.getTotalLength(),f=s,v,p;function _(w){var T=r.getPointAtLength(w);w===0?v=T:w===s&&(p=T);var y=T.xo?T.x-o:0,k=T.yl?T.y-l:0;return Math.sqrt(y*y+k*k)}for(var m=_(u);m;){if(u+=m+n,u>f)return;m=_(u)}for(m=_(f);m;){if(f-=m+n,u>f)return;m=_(f)}return{min:u,max:f,len:f-u,total:s,isClosed:u===0&&f===s&&Math.abs(v.x-p.x)<.1&&Math.abs(v.y-p.y)<.1}};Cl.findPointOnPath=function(r,t,n,a){a=a||{};for(var o=a.pathLength||r.getTotalLength(),i=a.tolerance||.001,l=a.iterationLimit||30,u=r.getPointAtLength(0)[n]>r.getPointAtLength(o)[n]?-1:1,s=0,f=0,v=o,p,_,m;s0?v=p:f=p,s++}return _}});var Kc=pe(bf=>{"use strict";var Qi={};bf.throttle=function(r,t,n){var a=Qi[r],o=Date.now();if(!a){for(var i in Qi)Qi[i].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};bf.done=function(e){var r=Qi[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};bf.clear=function(e){if(e)m6(Qi[e]),delete Qi[e];else for(var r in Qi)bf.clear(r)};function m6(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var b6=pe((c0e,x6)=>{"use strict";x6.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var _6=pe((v0e,Qc)=>{"use strict";Qc.exports=zp;Qc.exports.isMobile=zp;Qc.exports.default=zp;var jH=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,eV=/CrOS/,rV=/android|ipad|playbook|silk/i;function zp(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=jH.test(r)&&!eV.test(r)||!!e.tablet&&rV.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var M6=pe((h0e,w6)=>{"use strict";var tV=tt(),nV=_6();w6.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=aV(),typeof t!="string")return!0;var n=nV({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),o=1;o-1;l--){var u=a[l];if(u.substr(0,8)==="Version/"){var s=u.substr(8).split(".")[0];if(tV(s)&&(s=+s),s>=13)return!0}}}return n};function aV(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var A6=pe((d0e,T6)=>{"use strict";var iV=ot();T6.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(i){return i[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var o=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(i){i[0][o]=iV.select(this)}),a}});var S6=pe((p0e,k6)=>{"use strict";var oV=Er();k6.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var o=r._context.locales,i=0;i<2;i++){var l=(o[n]||{}).dictionary;if(l){var u=l[t];if(u)return u}o=oV.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t}});var E6=pe((g0e,C6)=>{"use strict";C6.exports=function(r){for(var t={},n=[],a=0,o=0;o{"use strict";L6.exports=function(r){for(var t=uV(r)?sV:lV,n=[],a=0;a{"use strict";D6.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,o=String(a).length;if(o>16){var i=String(t).length,l=String(r).length;if(o>=l+i){var u=parseFloat(a).toPrecision(12);u.indexOf("e+")===-1&&(a=+u)}}return a}});var F6=pe((x0e,I6)=>{"use strict";var fV=tt(),cV=an().BADNUM,vV=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;I6.exports=function(r){return typeof r=="string"&&(r=r.replace(vV,"")),fV(r)?Number(r):cV}});var ir=pe((b0e,Z6)=>{"use strict";var _f=ot(),hV=ks().utcFormat,dV=op().format,U6=tt(),H6=an(),V6=H6.FP_SAFE,pV=-V6,N6=H6.BADNUM,Ze=Z6.exports={};Ze.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var z6={};Ze.warnBadFormat=function(e){var r=String(e);z6[r]||(z6[r]=1,Ze.warn('encountered bad format: "'+r+'"'))};Ze.noFormat=function(e){return String(e)};Ze.numberFormat=function(e){var r;try{r=dV(Ze.adjustFormat(e))}catch(t){return Ze.warnBadFormat(e),Ze.noFormat}return r};Ze.nestedProperty=Sc();Ze.keyedContainer=Sb();Ze.relativeAttr=Eb();Ze.isPlainObject=wo();Ze.toLogRange=Ec();Ze.relinkPrivateKeys=Pb();var Ro=ea();Ze.isArrayBuffer=Ro.isArrayBuffer;Ze.isTypedArray=Ro.isTypedArray;Ze.isArrayOrTypedArray=Ro.isArrayOrTypedArray;Ze.isArray1D=Ro.isArray1D;Ze.ensureArray=Ro.ensureArray;Ze.concat=Ro.concat;Ze.maxRowLength=Ro.maxRowLength;Ze.minRowLength=Ro.minRowLength;var G6=Cs();Ze.mod=G6.mod;Ze.modHalf=G6.modHalf;var Do=$b();Ze.valObjectMeta=Do.valObjectMeta;Ze.coerce=Do.coerce;Ze.coerce2=Do.coerce2;Ze.coerceFont=Do.coerceFont;Ze.coercePattern=Do.coercePattern;Ze.coerceHoverinfo=Do.coerceHoverinfo;Ze.coerceSelectionMarkerOpacity=Do.coerceSelectionMarkerOpacity;Ze.validate=Do.validate;var da=i6();Ze.dateTime2ms=da.dateTime2ms;Ze.isDateTime=da.isDateTime;Ze.ms2DateTime=da.ms2DateTime;Ze.ms2DateTimeLocal=da.ms2DateTimeLocal;Ze.cleanDate=da.cleanDate;Ze.isJSDate=da.isJSDate;Ze.formatDate=da.formatDate;Ze.incrementMonth=da.incrementMonth;Ze.dateTick0=da.dateTick0;Ze.dfltRange=da.dfltRange;Ze.findExactDates=da.findExactDates;Ze.MIN_MS=da.MIN_MS;Ze.MAX_MS=da.MAX_MS;var El=Rp();Ze.findBin=El.findBin;Ze.sorterAsc=El.sorterAsc;Ze.sorterDes=El.sorterDes;Ze.distinctVals=El.distinctVals;Ze.roundUp=El.roundUp;Ze.sort=El.sort;Ze.findIndexOfMin=El.findIndexOfMin;Ze.sortObjectKeys=Xc();var $i=s6();Ze.aggNums=$i.aggNums;Ze.len=$i.len;Ze.mean=$i.mean;Ze.geometricMean=$i.geometricMean;Ze.median=$i.median;Ze.midRange=$i.midRange;Ze.variance=$i.variance;Ze.stdev=$i.stdev;Ze.interp=$i.interp;var Qa=zc();Ze.init2dArray=Qa.init2dArray;Ze.transposeRagged=Qa.transposeRagged;Ze.dot=Qa.dot;Ze.translationMatrix=Qa.translationMatrix;Ze.rotationMatrix=Qa.rotationMatrix;Ze.rotationXYMatrix=Qa.rotationXYMatrix;Ze.apply3DTransform=Qa.apply3DTransform;Ze.apply2DTransform=Qa.apply2DTransform;Ze.apply2DTransform2=Qa.apply2DTransform2;Ze.convertCssMatrix=Qa.convertCssMatrix;Ze.inverseTransformMatrix=Qa.inverseTransformMatrix;var ki=h6();Ze.deg2rad=ki.deg2rad;Ze.rad2deg=ki.rad2deg;Ze.angleDelta=ki.angleDelta;Ze.angleDist=ki.angleDist;Ze.isFullCircle=ki.isFullCircle;Ze.isAngleInsideSector=ki.isAngleInsideSector;Ze.isPtInsideSector=ki.isPtInsideSector;Ze.pathArc=ki.pathArc;Ze.pathSector=ki.pathSector;Ze.pathAnnulus=ki.pathAnnulus;var qs=d6();Ze.isLeftAnchor=qs.isLeftAnchor;Ze.isCenterAnchor=qs.isCenterAnchor;Ze.isRightAnchor=qs.isRightAnchor;Ze.isTopAnchor=qs.isTopAnchor;Ze.isMiddleAnchor=qs.isMiddleAnchor;Ze.isBottomAnchor=qs.isBottomAnchor;var Os=y6();Ze.segmentsIntersect=Os.segmentsIntersect;Ze.segmentDistance=Os.segmentDistance;Ze.getTextLocation=Os.getTextLocation;Ze.clearLocationCache=Os.clearLocationCache;Ze.getVisibleSegment=Os.getVisibleSegment;Ze.findPointOnPath=Os.findPointOnPath;var ev=Mt();Ze.extendFlat=ev.extendFlat;Ze.extendDeep=ev.extendDeep;Ze.extendDeepAll=ev.extendDeepAll;Ze.extendDeepNoArrays=ev.extendDeepNoArrays;var qp=Al();Ze.log=qp.log;Ze.warn=qp.warn;Ze.error=qp.error;var gV=Es();Ze.counterRegex=gV.counter;var Op=Kc();Ze.throttle=Op.throttle;Ze.throttleDone=Op.done;Ze.clearThrottle=Op.clear;var $a=hf();Ze.getGraphDiv=$a.getGraphDiv;Ze.isPlotDiv=$a.isPlotDiv;Ze.removeElement=$a.removeElement;Ze.addStyleRule=$a.addStyleRule;Ze.addRelatedStyleRule=$a.addRelatedStyleRule;Ze.deleteRelatedStyleRule=$a.deleteRelatedStyleRule;Ze.setStyleOnHover=$a.setStyleOnHover;Ze.getFullTransformMatrix=$a.getFullTransformMatrix;Ze.getElementTransformMatrix=$a.getElementTransformMatrix;Ze.getElementAndAncestors=$a.getElementAndAncestors;Ze.equalDomRects=$a.equalDomRects;Ze.clearResponsive=b6();Ze.preserveDrawingBuffer=M6();Ze.makeTraceGroups=A6();Ze._=S6();Ze.notifier=yp();Ze.filterUnique=E6();Ze.filterVisible=R6();Ze.pushUnique=bp();Ze.increment=P6();Ze.cleanNumber=F6();Ze.ensureNumber=function(r){return U6(r)?(r=Number(r),r>V6||r=r?!1:U6(e)&&e>=0&&e%1===0};Ze.noop=Nc();Ze.identity=Ep();Ze.repeat=function(e,r){for(var t=new Array(r),n=0;nt?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Ze.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};Ze.simpleMap=function(e,r,t,n,a){for(var o=e.length,i=new Array(o),l=0;l=Math.pow(2,t)?a>10?(Ze.warn("randstr failed uniqueness"),i):e(r,t,n,(a||0)+1):i};Ze.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};Ze.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,o=new Array(a),i=new Array(t),l,u,s,f;for(l=0;l=n&&(s-=n*Math.floor(s/n)),s<0?s=-1-s:s>=t&&(s=n-1-s),f+=e[s]*o[u];i[l]=f}return i};Ze.syncOrAsync=function(e,r,t){var n,a;function o(){return Ze.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(o);return t&&t(r)};Ze.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};Ze.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,o,i;for(o=0;o0?a:0})};Ze.fillArray=function(e,r,t,n){if(n=n||Ze.identity,Ze.isArrayOrTypedArray(e))for(var a=0;axV.test(window.navigator.userAgent);var bV=/Firefox\/(\d+)\.\d+/;Ze.getFirefoxVersion=function(){var e=bV.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Ze.isD3Selection=function(e){return e instanceof _f.selection};Ze.ensureSingle=function(e,r,t,n){var a=e.select(r+(t?"."+t:""));if(a.size())return a;var o=e.append(r);return t&&o.classed(t,!0),n&&o.call(n),o};Ze.ensureSingleById=function(e,r,t,n){var a=e.select(r+"#"+t);if(a.size())return a;var o=e.append(r).attr("id",t);return n&&o.call(n),o};Ze.objectFromPath=function(e,r){for(var t=e.split("."),n,a=n={},o=0;o1?a+i[1]:"";if(o&&(i.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+o+"$2");return l+u};Ze.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var X6=/^\w*$/;Ze.templateString=function(e,r){var t={};return e.replace(Ze.TEMPLATE_STRING_REGEX,function(n,a){var o;return X6.test(a)?o=r[a]:(t[a]=t[a]||Ze.nestedProperty(r,a).get,o=t[a](!0)),o!==void 0?o:""})};var MV={max:10,count:0,name:"hovertemplate"};Ze.hovertemplateString=function(){return Bp.apply(MV,arguments)};var TV={max:10,count:0,name:"texttemplate"};Ze.texttemplateString=function(){return Bp.apply(TV,arguments)};var AV=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function kV(e){var r=e.match(AV);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var SV={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ze.texttemplateStringForShapes=function(){return Bp.apply(SV,arguments)};var q6=/^[:|\|]/;function Bp(e,r,t){var n=this,a=arguments;return r||(r={}),e.replace(Ze.TEMPLATE_STRING_REGEX,function(o,i,l){var u=i==="xother"||i==="yother",s=i==="_xother"||i==="_yother",f=i==="_xother_"||i==="_yother_",v=i==="xother_"||i==="yother_",p=u||s||v||f,_=i;(s||f)&&(_=_.substring(1)),(v||f)&&(_=_.substring(0,_.length-1));var m=null,w=null;if(n.parseMultDiv){var T=kV(_);_=T.key,m=T.op,w=T.number}var y;if(p){if(y=r[_],y===void 0)return""}else{var k,S;for(S=3;S=jc&&i<=O6,s=l>=jc&&l<=O6;if(u&&(n=10*n+i-jc),s&&(a=10*a+l-jc),!u||!s){if(n!==a)return n-a;if(i!==l)return i-l}}return a-n};var zs=2e9;Ze.seedPseudoRandom=function(){zs=2e9};Ze.pseudoRandom=function(){var e=zs;return zs=(69069*zs+1)%4294967296,Math.abs(zs-e)<429496729?Ze.pseudoRandom():zs/4294967296};Ze.fillText=function(e,r,t){var n=Array.isArray(t)?function(i){t.push(i)}:function(i){t.text=i},a=Ze.extractOption(e,r,"htx","hovertext");if(Ze.isValidTextValue(a))return n(a);var o=Ze.extractOption(e,r,"tx","text");if(Ze.isValidTextValue(o))return n(o)};Ze.isValidTextValue=function(e){return e||e===0};Ze.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n1&&(s=1):s=0,Ze.strTranslate(a-s*(t+i),o-s*(n+l))+Ze.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+n)+")":"")};Ze.setTransormAndDisplay=function(e,r){e.attr("transform",Ze.getTextTransform(r)),e.style("display",r.scale?null:"none")};Ze.ensureUniformFontSize=function(e,r){var t=Ze.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Ze.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};Ze.bigFont=function(e){return Math.round(1.2*e)};var B6=Ze.getFirefoxVersion(),CV=B6!==null&&B6<86;Ze.getPositionFromD3Event=function(){return CV?[_f.event.layerX,_f.event.layerY]:[_f.event.offsetX,_f.event.offsetY]}});var Q6=pe(()=>{"use strict";var EV=ir(),J6={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Up in J6)K6=Up.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),EV.addStyleRule(K6,J6[Up]);var K6,Up});var Hp=pe((M0e,$6)=>{$6.exports=!0});var Gp=pe((T0e,j6)=>{"use strict";var LV=Hp(),Vp;typeof window.matchMedia=="function"?Vp=!window.matchMedia("(hover: none)").matches:Vp=LV;j6.exports=Vp});var nv=pe((A0e,Yp)=>{"use strict";var Bs=typeof Reflect=="object"?Reflect:null,ew=Bs&&typeof Bs.apply=="function"?Bs.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},rv;Bs&&typeof Bs.ownKeys=="function"?rv=Bs.ownKeys:Object.getOwnPropertySymbols?rv=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:rv=function(r){return Object.getOwnPropertyNames(r)};function RV(e){console&&console.warn&&console.warn(e)}var tw=Number.isNaN||function(r){return r!==r};function Tt(){Tt.init.call(this)}Yp.exports=Tt;Yp.exports.once=FV;Tt.EventEmitter=Tt;Tt.prototype._events=void 0;Tt.prototype._eventsCount=0;Tt.prototype._maxListeners=void 0;var rw=10;function tv(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Tt,"defaultMaxListeners",{enumerable:!0,get:function(){return rw},set:function(e){if(typeof e!="number"||e<0||tw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");rw=e}});Tt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Tt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||tw(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function nw(e){return e._maxListeners===void 0?Tt.defaultMaxListeners:e._maxListeners}Tt.prototype.getMaxListeners=function(){return nw(this)};Tt.prototype.emit=function(r){for(var t=[],n=1;n0&&(i=t[0]),i instanceof Error)throw i;var l=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw l.context=i,l}var u=o[r];if(u===void 0)return!1;if(typeof u=="function")ew(u,this,t);else for(var s=u.length,f=sw(u,s),n=0;n0&&i.length>a&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=i.length,RV(l)}return e}Tt.prototype.addListener=function(r,t){return aw(this,r,t,!1)};Tt.prototype.on=Tt.prototype.addListener;Tt.prototype.prependListener=function(r,t){return aw(this,r,t,!0)};function DV(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function iw(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=DV.bind(n);return a.listener=t,n.wrapFn=a,a}Tt.prototype.once=function(r,t){return tv(t),this.on(r,iw(this,r,t)),this};Tt.prototype.prependOnceListener=function(r,t){return tv(t),this.prependListener(r,iw(this,r,t)),this};Tt.prototype.removeListener=function(r,t){var n,a,o,i,l;if(tv(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){l=n[i].listener,o=i;break}if(o<0)return this;o===0?n.shift():PV(n,o),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Tt.prototype.off=Tt.prototype.removeListener;Tt.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var o=Object.keys(n),i;for(a=0;a=0;a--)this.removeListener(r,t[a]);return this};function ow(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?IV(a):sw(a,a.length)}Tt.prototype.listeners=function(r){return ow(this,r,!0)};Tt.prototype.rawListeners=function(r){return ow(this,r,!1)};Tt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):lw.call(e,r)};Tt.prototype.listenerCount=lw;function lw(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Tt.prototype.eventNames=function(){return this._eventsCount>0?rv(this._events):[]};function sw(e,r){for(var t=new Array(r),n=0;n{"use strict";var Wp=nv().EventEmitter,zV={init:function(e){if(e._ev instanceof Wp)return e;var r=new Wp,t=new Wp;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(n,a){r.emit(n,a),t.emit(n,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var o=a._events[r];if(!o)return;function i(u){if(u.listener){if(a.removeListener(r,u.listener),!u.fired)return u.fired=!0,u.listener.apply(a,[t])}else return u.apply(a,[t])}o=Array.isArray(o)?o:[o];var l;for(l=0;l{"use strict";var cw=ir(),qV=Tl().dfltConfig;function OV(e,r){for(var t=[],n,a=0;aqV.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};ji.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};ji.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};ji.undo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n{"use strict";dw.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Vs=pe(jt=>{"use strict";var Ea=Er(),Mf=ir(),iv=Sn(),Zp=Ds(),BV=Xp(),UV=df(),HV=Tl().configAttributes,pw=zn(),ja=Mf.extendDeepAll,Us=Mf.isPlainObject,VV=Mf.isArrayOrTypedArray,ov=Mf.nestedProperty,GV=Mf.valObjectMeta,Jp="_isSubplotObj",lv="_isLinkedToArray",YV="_arrayAttrRegexps",yw="_deprecated",Kp=[Jp,lv,YV,yw];jt.IS_SUBPLOT_OBJ=Jp;jt.IS_LINKED_TO_ARRAY=lv;jt.DEPRECATED=yw;jt.UNDERSCORE_ATTRS=Kp;jt.get=function(){var e={};return Ea.allTypes.forEach(function(r){e[r]=XV(r)}),{defs:{valObjects:GV,metaKeys:Kp.concat(["description","role","editType","impliedEdits"]),editType:{traces:pw.traces,layout:pw.layout},impliedEdits:{}},traces:e,layout:ZV(),frames:JV(),animation:Hs(UV),config:Hs(HV)}};jt.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(o){var i=e[o];if(Kp.indexOf(o)===-1){var l=(n?n+".":"")+o;r(i,o,e,a,l),!jt.isValObject(i)&&Us(i)&&o!=="impliedEdits"&&jt.crawl(i,r,a+1,l)}})};jt.isValObject=function(e){return e&&e.valType!==void 0};jt.findArrayAttributes=function(e){var r=[],t=[],n=[],a,o;function i(u,s,f,v){t=t.slice(0,v).concat([s]),n=n.slice(0,v).concat([u&&u._isLinkedToArray]);var p=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(s==="ticktext"||s==="tickvals"));p&&l(a,0,"")}function l(u,s,f){var v=u[t[s]],p=f+t[s];if(s===t.length-1)VV(v)&&r.push(o+p);else if(n[s]){if(Array.isArray(v))for(var _=0;_=o.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var i=r[t];if(!av(i))return!1;e=o[a][i]}else e=o[a]}else e=o}}return e}function av(e){return e===Math.round(e)&&e>=0}function XV(e){var r,t;r=Ea.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=ja({},iv),o=ja({},r.attributes);jt.crawl(o,function(u,s,f,v,p){ov(a,p).set(void 0),u===void 0&&ov(o,p).set(void 0)}),ja(n,a),Ea.traceIs(e,"noOpacity")&&delete n.opacity,Ea.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),Ea.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,ja(n,o),t.attributes&&ja(n,t.attributes),n.type=e;var i={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Hs(n)};if(r.layoutAttributes){var l={};ja(l,r.layoutAttributes),i.layoutAttributes=Hs(l)}return r.animatable||jt.crawl(i,function(u){jt.isValObject(u)&&"anim"in u&&delete u.anim}),i}function ZV(){var e={},r,t;ja(e,Zp);for(r in Ea.subplotsRegistry)if(t=Ea.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n{"use strict";var Gs=ir(),eG=Sn(),Po="templateitemname",Qp={name:{valType:"string",editType:"none"}};Qp[Po]={valType:"string",editType:"calc"};Ll.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Qp.name,r[Po]=Qp[Po],r};Ll.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(o){t=Gs.coerce(o,{},eG,"type");var i={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,i._template=n[l]}return i}return{newTrace:a}};Ll.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);Gs.isPlainObject(a)||(a=null);var o=e[r]={_template:a};return o};Ll.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[bw(r)],o=n&&n[r];(!Array.isArray(o)||!o.length)&&(o=[]);var i={};function l(s){var f={name:s.name,_input:s},v=f[Po]=s[Po];if(!xw(v))return f._template=a,f;for(var p=0;p=n&&(t._input||{})._templateitemname;o&&(a=n);var i=r+"["+a+"]",l;function u(){l={},o&&(l[i]={},l[i][Po]=o)}u();function s(_,m){l[_]=m}function f(_,m){o?Gs.nestedProperty(l[i],_).set(m):l[i+"."+_]=m}function v(){var _=l;return u(),_}function p(_,m){_&&f(_,m);var w=v();for(var T in w)Gs.nestedProperty(e,T).set(w[T])}return{modifyBase:s,modifyItem:f,getUpdateObj:v,applyUpdate:p}}});var wn=pe((R0e,_w)=>{"use strict";var Tf=Es().counter;_w.exports={idRegex:{x:Tf("x","( domain)?"),y:Tf("y","( domain)?")},attrRegex:Tf("[xy]axis"),xAxisMatch:Tf("xaxis"),yAxisMatch:Tf("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var en=pe(aa=>{"use strict";var rG=Er(),$p=wn();aa.id2name=function(r){if(!(typeof r!="string"||!r.match($p.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};aa.name2id=function(r){if(r.match($p.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};aa.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match($p.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var o=r.split(" ")[0].substr(1).replace(/^0+/,"");return o==="1"&&(o=""),r.charAt(0)+o+(a&&n?" domain":"")}};aa.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=aa.listIds(e,r),o=new Array(a.length),i;for(i=0;in?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};aa.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function ww(e,r){if(r&&r.length){for(var t=0;t{"use strict";function tG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function nG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Mw.exports={clearOutlineControllers:tG,clearOutline:nG}});var sv=pe((I0e,Tw)=>{"use strict";Tw.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Af=pe(fv=>{"use strict";var uv=Er(),F0e=wn().SUBPLOT_PATTERN;fv.getSubplotCalcData=function(e,r,t){var n=uv.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,o=[],i=0;i{"use strict";var aG=Er(),Ys=ir();Rl.manageCommandObserver=function(e,r,t,n){var a={},o=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var i=Rl.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(i)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(i){Aw(e,i,a.cache),a.check=function(){if(o){var f=Aw(e,i,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:i.type,prop:i.prop,traces:i.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0?".":"")+a;Ys.isPlainObject(o)?jp(o,r,i,n+1):r(i,a,o)}})}});var ln=pe((q0e,Hw)=>{"use strict";var Fw=ot(),oG=ks().timeFormatLocale,lG=op().formatLocale,kf=tt(),sG=lp(),lt=Er(),Nw=Vs(),uG=gt(),xr=ir(),zw=Zr(),Ew=an().BADNUM,ia=en(),fG=Io().clearOutline,cG=sv(),eg=df(),vG=Xp(),hG=Af().getModuleCalcData,Lw=xr.relinkPrivateKeys,Dl=xr._,fr=Hw.exports={};xr.extendFlat(fr,lt);fr.attributes=Sn();fr.attributes.type.values=fr.allTypes;fr.fontAttrs=kn();fr.layoutAttributes=Ds();var vv=Cw();fr.executeAPICommand=vv.executeAPICommand;fr.computeAPICommandBindings=vv.computeAPICommandBindings;fr.manageCommandObserver=vv.manageCommandObserver;fr.hasSimpleAPICommandBindings=vv.hasSimpleAPICommandBindings;fr.redrawText=function(e){return e=xr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(lt.getComponentMethod("annotations","draw")(e),lt.getComponentMethod("legend","draw")(e),lt.getComponentMethod("colorbar","draw")(e),r(fr.previousPromises(e)))},300)})};fr.resize=function(e){e=xr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||xr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||xr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var o=e.changed;e.autoplay=!0,lt.call("relayout",e,{autosize:!0}).then(function(){e.changed=o,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};fr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};fr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=xr.ensureSingle(r._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:zw.defaultLine,"pointer-events":"all"}).each(function(){var s=Fw.select(this);s.append("tspan").classed("js-link-to-tool",!0),s.append("tspan").classed("js-link-spacer",!0),s.append("tspan").classed("js-sourcelinks",!0)})}),n=t.node(),a={y:r._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=r.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=r._paper.attr("width")-7),t.attr(a);var o=t.select(".js-link-to-tool"),i=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&dG(e,o),i.text(o.text()&&l.text()?" - ":"")}};function dG(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){fr.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),a=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}fr.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=Fw.select(e).append("div").attr("id","hiddenform").style("display","none"),n=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),a=n.append("input").attr({type:"text",name:"data"});return a.node().value=fr.graphJson(e,!1,"keepdata"),n.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var pG=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],gG=["year","month","dayMonth","dayMonthYear"];fr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},o=e.layout||{},i=e._fullData||[],l=e._fullData=[],u=e.data||[],s=e.calcdata||[],f=e._context||{},v;e._transitionData||fr.createTransitionData(e),a._dfltTitle={plot:Dl(e,"Click to enter Plot title"),subtitle:Dl(e,"Click to enter Plot subtitle"),x:Dl(e,"Click to enter X axis title"),y:Dl(e,"Click to enter Y axis title"),colorbar:Dl(e,"Click to enter Colorscale title"),annotation:Dl(e,"new text")},a._traceWord=Dl(e,"trace");var p=Rw(e,pG);if(a._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var _=n.width,m=n.height;fr.supplyLayoutGlobalDefaults(o,a,p),o.width||(a.width=_),o.height||(a.height=m),fr.sanitizeMargins(a)}else{fr.supplyLayoutGlobalDefaults(o,a,p);var w=!o.width||!o.height,T=a.autosize,y=f.autosizable,k=w&&(T||y);k?fr.plotAutoSize(e,o,a):w&&fr.sanitizeMargins(a),!T&&w&&(o.width=a.width,o.height=a.height)}a._d3locale=xG(p,a.separators),a._extraFormat=Rw(e,gG),a._initialAutoSizeIsDone=!0,a._dataLength=u.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var S=a._subplots=mG(),x=a._splomAxes={x:{},y:{}},M=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=yG(i,u),fr.supplyDataDefaults(u,l,o,a);var d=Object.keys(x.x),b=Object.keys(x.y);if(d.length>1&&b.length>1){for(lt.getComponentMethod("grid","sizeDefaults")(o,a),v=0;v15&&b.length>15&&a.shapes.length===0&&a.images.length===0,fr.linkSubplots(l,a,i,n),fr.cleanPlot(l,a,i,n);var R=!!(n._has&&n._has("cartesian")),E=!!(a._has&&a._has("cartesian")),D=R,N=E;D&&!N?n._bgLayer.remove():N&&!D&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&fG({_fullLayout:n}),bG(l,a),Lw(a,n),lt.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var F=a._tracePreGUI,I={},L;for(L in F)I[L]="old";for(v=0;v0){var f=1-2*o;i=Math.round(f*i),l=Math.round(f*l)}}var v=fr.layoutAttributes.width.min,p=fr.layoutAttributes.height.min;i1,m=!t.height&&Math.abs(n.height-l)>1;(m||_)&&(_&&(n.width=i),m&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:i,height:l}),fr.sanitizeMargins(n)};fr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=lt.componentsRegistry,o=r._basePlotModules,i,l,u,s=lt.subplotsRegistry.cartesian;for(i in a)u=a[i],u.includeBasePlot&&u.includeBasePlot(e,r);o.length||o.push(s),r._has("cartesian")&&(lt.getComponentMethod("grid","contentDefaults")(e,r),s.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(xr.subplotSort);for(l=0;l1&&(t.l/=T,t.r/=T)}if(p){var y=(t.t+t.b)/p;y>1&&(t.t/=y,t.b/=y)}var k=t.xl!==void 0?t.xl:t.x,S=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;_[r]={l:{val:k,size:t.l+w},r:{val:S,size:t.r+w},b:{val:M,size:t.b+w},t:{val:x,size:t.t+w}},m[r]=1}if(!n._replotting)return fr.doAutoMargin(e)}};function wG(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=ia.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}fr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),qw(r);var a=r._size,o=r.margin,i={t:0,b:0,l:0,r:0},l=xr.extendFlat({},a),u=o.l,s=o.r,f=o.t,v=o.b,p=r._pushmargin,_=r._pushmarginIds,m=r.minreducedwidth,w=r.minreducedheight;if(o.autoexpand!==!1){for(var T in p)_[T]||delete p[T];var y=e._fullLayout._reservedMargin;for(var k in y)for(var S in y[k]){var x=y[k][S];i[S]=Math.max(i[S],x)}p.base={l:{val:0,size:u},r:{val:1,size:s},t:{val:1,size:f},b:{val:0,size:v}};for(var M in i){var d=0;for(var b in p)b!=="base"&&kf(p[b][M].size)&&(d=p[b][M].size>d?p[b][M].size:d);var g=Math.max(0,o[M]-d);i[M]=Math.max(0,i[M]-g)}for(var c in p){var A=p[c].l||{},h=p[c].b||{},R=A.val,E=A.size,D=h.val,N=h.size,F=t-i.r-i.l,I=n-i.t-i.b;for(var L in p){if(kf(E)&&p[L].r){var P=p[L].r.val,O=p[L].r.size;if(P>R){var U=(E*P+(O-F)*R)/(P-R),X=(O*(1-R)+(E-F)*(1-P))/(P-R);U+X>u+s&&(u=U,s=X)}}if(kf(N)&&p[L].t){var $=p[L].t.val,j=p[L].t.size;if($>D){var Y=(N*$+(j-I)*D)/($-D),q=(j*(1-D)+(N-I)*(1-$))/($-D);Y+q>v+f&&(v=Y,f=q)}}}}}var K=xr.constrain(t-o.l-o.r,Ow,m),ne=xr.constrain(n-o.t-o.b,Bw,w),Q=Math.max(0,t-K),ie=Math.max(0,n-ne);if(Q){var ee=(u+s)/Q;ee>1&&(u/=ee,s/=ee)}if(ie){var V=(v+f)/ie;V>1&&(v/=V,f/=V)}if(a.l=Math.round(u)+i.l,a.r=Math.round(s)+i.r,a.t=Math.round(f)+i.t,a.b=Math.round(v)+i.b,a.p=Math.round(o.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(fr.didMarginChange(l,a)||wG(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var re=3*(1+Object.keys(_).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};fr.graphJson=function(e,r,t,n,a,o){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&fr.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,u=(e._transitionData||{})._frames;function s(p,_){if(typeof p=="function")return _?"_function_":null;if(xr.isPlainObject(p)){var m={},w;return Object.keys(p).sort().forEach(function(S){if(["_","["].indexOf(S.charAt(0))===-1){if(typeof p[S]=="function"){_&&(m[S]="_function");return}if(t==="keepdata"){if(S.substr(S.length-3)==="src")return}else if(t==="keepstream"){if(w=p[S+"src"],typeof w=="string"&&w.indexOf(":")>0&&!xr.isPlainObject(p.stream))return}else if(t!=="keepall"&&(w=p[S+"src"],typeof w=="string"&&w.indexOf(":")>0))return;m[S]=s(p[S],_)}}),m}var T=Array.isArray(p),y=xr.isTypedArray(p);if((T||y)&&p.dtype&&p.shape){var k=p.bdata;return s({dtype:p.dtype,shape:p.shape,bdata:xr.isArrayBuffer(k)?sG.encode(k):k},_)}return T?p.map(function(S){return s(S,_)}):y?xr.simpleMap(p,xr.identity):xr.isJSDate(p)?xr.ms2DateTimeLocal(+p):p}var f={data:(i||[]).map(function(p){var _=s(p);return r&&delete _.fit,_})};if(!r&&(f.layout=s(l),a)){var v=l._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return u&&(f.frames=s(u)),o&&(f.config=s(e._context,!0)),n==="object"?f:JSON.stringify(f)};fr.modifyFrames=function(e,r){var t,n,a,o=e._transitionData._frames,i=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return lt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var p=0,_=0;function m(){return p++,function(){_++,!n&&_===p&&l(v)}}t.runFn(m),setTimeout(m())})}function l(v){if(e._transitionData)return o(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return lt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function u(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var s=[fr.previousPromises,u,t.prepareFn,fr.rehover,fr.reselect,i],f=xr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}fr.doCalcdata=function(e,r){var t=ia.list(e),n=e._fullData,a=e._fullLayout,o,i,l,u,s=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=s,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l=0;u--)if(M[u].enabled){o._indexToPoints=M[u]._indexToPoints;break}i&&i.calc&&(x=i.calc(e,o))}(!Array.isArray(x)||!x[0])&&(x=[{x:Ew,y:Ew}]),x[0].t||(x[0].t={}),x[0].trace=o,s[k]=x}}for(Pw(t,n,a),l=0;l{"use strict";Pl.xmlns="http://www.w3.org/2000/xmlns/";Pl.svg="http://www.w3.org/2000/svg";Pl.xlink="http://www.w3.org/1999/xlink";Pl.svgAttrs={xmlns:Pl.svg,"xmlns:xlink":Pl.xlink}});var qn=pe((B0e,Vw)=>{"use strict";Vw.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Wn=pe(La=>{"use strict";var Wt=ot(),eo=ir(),kG=eo.strTranslate,rg=Fo(),SG=qn().LINE_SPACING,CG=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;La.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match(CG),o=Wt.select(e.node().parentNode);if(o.empty())return;var i=e.attr("class")?e.attr("class").split(" ")[0]:"text";i+="-math",o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){o.empty()||(i=e.attr("class")+"-math",o.select("svg."+i).remove()),e.text("").style("white-space","pre");var u=UG(e.node(),n);u&&e.style("pointer-events","all"),La.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(u){e.style("display","none");var s=parseInt(e.node().style.fontSize,10),f={fontSize:s};DG(a[2],f,function(v,p,_){o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){l(),u();return}var w=o.append("g").classed(i+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});w.node().appendChild(m.node()),p&&p.node()&&m.node().insertBefore(p.node().cloneNode(!0),m.node().firstChild);var T=_.width,y=_.height;m.attr({class:i,height:y,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var k=e.node().style.fill||"black",S=m.select("g");S.attr({fill:k,stroke:k});var x=S.node().getBoundingClientRect(),M=x.width,d=x.height;(M>T||d>y)&&(m.style("overflow","hidden"),x=m.node().getBoundingClientRect(),M=x.width,d=x.height);var b=+e.attr("x"),g=+e.attr("y"),c=s||e.node().getBoundingClientRect().height,A=-c/4;if(i[0]==="y")w.attr({transform:"rotate("+[-90,b,g]+")"+kG(-M/2,A-d/2)});else if(i[0]==="l")g=A-d/2;else if(i[0]==="a"&&i.indexOf("atitle")!==0)b=0,g=A;else{var h=e.attr("text-anchor");b=b-M*(h==="middle"?.5:h==="end"?1:0),g=g+A-d/2}m.attr({x:b,y:g}),t&&t.call(e,w),u(w)})})):l(),e};var EG=/(<|<|<)/g,LG=/(>|>|>)/g;function RG(e){return e.replace(EG,"\\lt ").replace(LG,"\\gt ")}var Gw=[["$","$"],["\\(","\\)"]];function DG(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){eo.warn("No MathJax version:",MathJax.version);return}var a,o,i,l,u=function(){return o=eo.extendDeepAll({},MathJax.Hub.config),i=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Gw},displayAlign:"left"})},s=function(){o=eo.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Gw},f=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},v=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},p=function(){var k="math-output-"+eo.randstr({},64);l=Wt.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(RG(e));var S=l.node();return n===2?MathJax.Hub.Typeset(S):MathJax.typeset([S])},_=function(){var k=l.select(n===2?".MathJax_SVG":".MathJax"),S=!k.empty()&&l.select("svg").node();if(!S)eo.log("There was an error in the tex syntax.",e),t();else{var x=S.getBoundingClientRect(),M;n===2?M=Wt.select("body").select("#MathJax_SVG_glyphs"):M=k.select("defs"),t(k,M,x)}l.remove()},m=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},w=function(){a!=="svg"&&(MathJax.config.startup.output=a)},T=function(){return i!==void 0&&(MathJax.Hub.processSectionDelay=i),MathJax.Hub.Config(o)},y=function(){MathJax.config=o};n===2?MathJax.Hub.Queue(u,f,p,_,m,T):n===3&&(s(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){p(),_(),w(),y()}))}var Zw={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},PG={sub:"0.3em",sup:"-0.6em"},IG={sub:"-0.21em",sup:"0.42em"},Yw="\u200B",Ww=["http:","https:","mailto:","",void 0,":"],Jw=La.NEWLINES=/(\r\n?|\n)/g,ng=/(<[^<>]*>)/,ag=/<(\/?)([^ >]*)(\s+(.*))?>/i,FG=//i;La.BR_TAG_ALL=//gi;var Kw=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Qw=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,$w=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,NG=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Il(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&hv(n)}var zG=/(^|;)\s*color:/;La.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",o=a.length,i=e.split(ng),l=[],u="",s=0,f=0;fo?l.push(v.substr(0,w-o)+a):l.push(v.substr(0,w));break}u=""}}return l.join("")};var qG={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},OG=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function hv(e){return e.replace(OG,function(r,t){var n;return t.charAt(0)==="#"?n=BG(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):n=qG[t],n||r})}La.convertEntities=hv;function BG(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function UG(e,r){r=r.replace(Jw," ");var t=!1,n=[],a,o=-1;function i(){o++;var d=document.createElementNS(rg.svg,"tspan");Wt.select(d).attr({class:"line",dy:o*SG+"em"}),e.appendChild(d),a=d;var b=n;if(n=[{node:d}],b.length>1)for(var g=1;g.",r);return}var b=n.pop();d!==b.type&&eo.log("Start tag <"+b.type+"> doesnt match end tag <"+d+">. Pretending it did match.",r),a=n[n.length-1].node}var f=FG.test(r);f?i():(a=e,n=[{node:e}]);for(var v=r.split(ng),p=0;p{"use strict";var HG=ot(),pv=Sa(),Cf=tt(),dv=ir(),e7=Zr(),VG=wl().isValid;function GG(e,r,t){var n=r?dv.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var o=!1;if(dv.isArrayOrTypedArray(a)){for(var i=0;i=0;n--,a++){var o=e[n];t[a]=[1-o[0],o[1]]}return t}function o7(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,o=new Array(a),i=0;i{"use strict";var s7=Tp(),WG=s7.FORMAT_LINK,XG=s7.DATE_FORMAT_LINK;function ZG(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?ig:u7)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function ig(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+WG+"."].join(" ")}function u7(e,r){return ig(e,r)+[" And for dates see: "+XG+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}f7.exports={axisHoverFormat:ZG,descriptionOnlyNumbers:ig,descriptionWithDates:u7}});var Ra=pe((Y0e,S7)=>{"use strict";var c7=kn(),Ws=Ti(),k7=Ao().dash,lg=Mt().extendFlat,v7=gt().templatedArray,G0e=ha().templateFormatStringDescription,h7=ro().descriptionWithDates,JG=an().ONEDAY,Ci=wn(),KG=Ci.HOUR_PATTERN,QG=Ci.WEEKDAY_PATTERN,og={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},$G=lg({},og,{values:og.values.slice().concat(["sync"])});function d7(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var p7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},g7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},y7={valType:"data_array",editType:"ticks"},m7={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function x7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function b7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var _7={valType:"color",dflt:Ws.defaultLine,editType:"ticks"},w7={valType:"color",dflt:Ws.lightLine,editType:"ticks"};function M7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var T7=lg({},k7,{editType:"ticks"}),A7={valType:"boolean",editType:"ticks"};S7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Ws.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:c7({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Ci.idRegex.x.toString(),Ci.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Ci.idRegex.x.toString(),Ci.idRegex.y.toString()],editType:"calc"},rangebreaks:v7("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[QG,KG,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:JG},editType:"calc"}),tickmode:$G,nticks:d7(),tick0:p7,dtick:g7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:y7,ticktext:{valType:"data_array",editType:"ticks"},ticks:m7,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:x7(),tickwidth:b7(),tickcolor:_7,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:lg({},k7,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:c7({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:h7("tick label")},tickformatstops:v7("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:h7("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Ws.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:A7,gridcolor:w7,gridwidth:M7(),griddash:T7,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Ws.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Ws.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Ci.idRegex.x.toString(),Ci.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Ci.idRegex.x.toString(),Ci.idRegex.y.toString()],editType:"plot"},minor:{tickmode:og,nticks:d7("minor"),tick0:p7,dtick:g7,tickvals:y7,ticks:m7,ticklen:x7("minor"),tickwidth:b7("minor"),tickcolor:_7,gridcolor:w7,gridwidth:M7("minor"),griddash:T7,showgrid:A7,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var gv=pe((W0e,L7)=>{"use strict";var At=Ra(),C7=kn(),E7=Mt().extendFlat,jG=zn().overrideAll;L7.exports=jG({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:At.linecolor,outlinewidth:At.linewidth,bordercolor:At.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:At.minor.tickmode,nticks:At.nticks,tick0:At.tick0,dtick:At.dtick,tickvals:At.tickvals,ticktext:At.ticktext,ticks:E7({},At.ticks,{dflt:""}),ticklabeloverflow:E7({},At.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:At.ticklen,tickwidth:At.tickwidth,tickcolor:At.tickcolor,ticklabelstep:At.ticklabelstep,showticklabels:At.showticklabels,labelalias:At.labelalias,tickfont:C7({}),tickangle:At.tickangle,tickformat:At.tickformat,tickformatstops:At.tickformatstops,tickprefix:At.tickprefix,showtickprefix:At.showtickprefix,ticksuffix:At.ticksuffix,showticksuffix:At.showticksuffix,separatethousands:At.separatethousands,exponentformat:At.exponentformat,minexponent:At.minexponent,showexponent:At.showexponent,title:{text:{valType:"string"},font:C7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var ei=pe((Z0e,D7)=>{"use strict";var eY=gv(),rY=Es().counter,tY=Xc(),R7=wl().scales,X0e=tY(R7);function yv(e){return"`"+e+"`"}D7.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,o="noScale"in t?t.noScale:r==="marker.line",i="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?R7[t.colorscaleDflt]:null,u=t.editTypeOverride||"",s=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[n],v="in "+yv(s+f));var p=a?" Has an effect only if "+v+" is set to a numerical array.":"",_=n+"auto",m=n+"min",w=n+"max",T=n+"mid",y=yv(s+_),k=yv(s+m),S=yv(s+w),x=k+" and "+S,M={};M[m]=M[w]=void 0;var d={};d[_]=!1;var b={};return f==="color"&&(b.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(b.color.anim=!0)),b[_]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},b[m]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},b[w]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},b[T]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},b.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},b.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},b.reversescale={valType:"boolean",dflt:!1,editType:"plot"},o||(b.showscale={valType:"boolean",dflt:i,editType:"calc"},b.colorbar=eY),t.noColorAxis||(b.coloraxis={valType:"subplotid",regex:rY("coloraxis"),dflt:null,editType:"calc"}),b}});var ug=pe((J0e,P7)=>{"use strict";var nY=Mt().extendFlat,aY=ei(),sg=wl().scales;P7.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:sg.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:sg.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:sg.RdBu,editType:"calc"}},coloraxis:nY({_isSubplotObj:!0,editType:"calc"},aY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var fg=pe((K0e,I7)=>{"use strict";var iY=ir();I7.exports=function(r){return iY.isPlainObject(r.colorbar)}});var hg=pe(vg=>{"use strict";var cg=tt(),F7=ir(),N7=an(),oY=N7.ONEDAY,lY=N7.ONEWEEK;vg.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",o=n?oY:1;if(!e)return o;if(cg(e))return e=Number(e),e<=0?o:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return o;var i=e.charAt(0),l=e.substr(1);return l=cg(l)?Number(l):0,l<=0||!(n&&i==="M"&&l===Math.round(l)||t&&i==="L"||t&&i==="D"&&(l===1||l===2))?o:e};vg.tick0=function(e,r,t,n){if(r==="date")return F7.cleanDate(e,F7.dateTick0(t,n%lY===0?1:0));if(!(n==="D1"||n==="D2"))return cg(e)?Number(e):0}});var dg=pe(($0e,q7)=>{"use strict";var z7=hg(),sY=ir().isArrayOrTypedArray,uY=ea().isTypedArraySpec,fY=ea().decodeTypedArraySpec;q7.exports=function(r,t,n,a,o){o||(o={});var i=o.isMinor,l=i?r.minor||{}:r,u=i?t.minor:t,s=i?"minor.":"";function f(k){var S=l[k];return uY(S)&&(S=fY(S)),S!==void 0?S:(u._template||{})[k]}var v=f("tick0"),p=f("dtick"),_=f("tickvals"),m=sY(_)?"array":p?"linear":"auto",w=n(s+"tickmode",m);if(w==="auto"||w==="sync")n(s+"nticks");else if(w==="linear"){var T=u.dtick=z7.dtick(p,a);u.tick0=z7.tick0(v,a,t.calendar,T)}else if(a!=="multicategory"){var y=n(s+"tickvals");y===void 0?u.tickmode="auto":i||n("ticktext")}}});var gg=pe((j0e,B7)=>{"use strict";var pg=ir(),O7=Ra();B7.exports=function(r,t,n,a){var o=a.isMinor,i=o?r.minor||{}:r,l=o?t.minor:t,u=o?O7.minor:O7,s=o?"minor.":"",f=pg.coerce2(i,l,u,"ticklen",o?(t.ticklen||5)*.6:void 0),v=pg.coerce2(i,l,u,"tickwidth",o?t.tickwidth||1:void 0),p=pg.coerce2(i,l,u,"tickcolor",(o?t.tickcolor:void 0)||l.color),_=n(s+"ticks",!o&&a.outerTicks||f||v||p?"outside":"");_||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var yg=pe((ece,U7)=>{"use strict";U7.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(o){return r[o]!==void 0}),a=function(o){return r[o]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var ri=pe((rce,H7)=>{"use strict";var mv=ir(),cY=gt();H7.exports=function(r,t,n){var a=n.name,o=n.inclusionAttr||"visible",i=t[a],l=mv.isArrayOrTypedArray(r[a])?r[a]:[],u=t[a]=[],s=cY.arrayTemplater(t,a,o),f,v;for(f=0;f{"use strict";var mg=ir(),vY=Zr().contrast,V7=Ra(),hY=yg(),dY=ri();G7.exports=function(r,t,n,a,o){o||(o={});var i=n("labelalias");mg.isPlainObject(i)||delete t.labelalias;var l=hY(r),u=n("showticklabels");if(u){o.noTicklabelshift||n("ticklabelshift"),o.noTicklabelstandoff||n("ticklabelstandoff");var s=o.font||{},f=t.color,v=t.ticklabelposition||"",p=v.indexOf("inside")!==-1?vY(o.bgColor):f&&f!==V7.color.dflt?f:s.color;if(mg.coerceFont(n,"tickfont",s,{overrideDflt:{color:p}}),!o.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!o.noAng){var _=n("tickangle");!o.noAutotickangles&&_==="auto"&&n("autotickangles")}if(a!=="category"){var m=n("tickformat");dY(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:pY}),t.tickformatstops.length||delete t.tickformatstops,!o.noExp&&!m&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!o.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function pY(e,r){function t(a,o){return mg.coerce(e,r,V7.tickformatstops,a,o)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var bg=pe((nce,Y7)=>{"use strict";var gY=yg();Y7.exports=function(r,t,n,a,o){o||(o={});var i=o.tickSuffixDflt,l=gY(r),u=n("tickprefix");u&&n("showtickprefix",l);var s=n("ticksuffix",i);s&&n("showticksuffix",l)}});var _g=pe((ace,W7)=>{"use strict";var No=ir(),yY=gt(),mY=dg(),xY=gg(),bY=xg(),_Y=bg(),wY=gv();W7.exports=function(r,t,n){var a=yY.newContainer(t,"colorbar"),o=r.colorbar||{};function i(h,R){return No.coerce(o,a,wY,h,R)}var l=n.margin||{t:0,b:0,l:0,r:0},u=n.width-l.l-l.r,s=n.height-l.t-l.b,f=i("orientation"),v=f==="v",p=i("thicknessmode");i("thickness",p==="fraction"?30/(v?u:s):30);var _=i("lenmode");i("len",_==="fraction"?1:v?s:u);var m=i("yref"),w=i("xref"),T=m==="paper",y=w==="paper",k,S,x,M="left";v?(x="middle",M=y?"left":"right",k=y?1.02:1,S=.5):(x=T?"bottom":"top",M="center",k=.5,S=T?1.02:1),No.coerce(o,a,{x:{valType:"number",min:y?-2:0,max:y?3:1,dflt:k}},"x"),No.coerce(o,a,{y:{valType:"number",min:T?-2:0,max:T?3:1,dflt:S}},"y"),i("xanchor",M),i("xpad"),i("yanchor",x),i("ypad"),No.noneOrAll(o,a,["x","y"]),i("outlinecolor"),i("outlinewidth"),i("bordercolor"),i("borderwidth"),i("bgcolor");var d=No.coerce(o,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");i("ticklabeloverflow",d.indexOf("inside")!==-1?"hide past domain":"hide past div"),mY(o,a,i,"linear");var b=n.font,g={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:b};d.indexOf("inside")!==-1&&(g.bgColor="black"),_Y(o,a,i,"linear",g),bY(o,a,i,"linear",g),xY(o,a,i,"linear",g),i("title.text",n._dfltTitle.colorbar);var c=a.showticklabels?a.tickfont:b,A=No.extendFlat({},b,{family:c.family,size:No.bigFont(c.size)});No.coerceFont(i,"title.font",A),i("title.side",v?"top":"right")}});var Ei=pe((ice,J7)=>{"use strict";var X7=tt(),Mg=ir(),MY=fg(),TY=_g(),Z7=wl().isValid,AY=Er().traceIs;function wg(e,r){var t=r.slice(0,r.length-1);return r?Mg.nestedProperty(e,t).get()||{}:e}J7.exports=function e(r,t,n,a,o){var i=o.prefix,l=o.cLetter,u="_module"in t,s=wg(r,i),f=wg(t,i),v=wg(t._template||{},i)||{},p=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,o)};if(u){var _=n._colorAxes||{},m=a(i+"coloraxis");if(m){var w=AY(t,"contour")&&Mg.nestedProperty(t,"contours.coloring").get()||"heatmap",T=_[m];T?(T[2].push(p),T[0]!==w&&(T[0]=!1,Mg.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):_[m]=[w,t,[p]];return}}var y=s[l+"min"],k=s[l+"max"],S=X7(y)&&X7(k)&&y{"use strict";var K7=ir(),kY=gt(),Q7=ug(),SY=Ei();$7.exports=function(r,t){function n(v,p){return K7.coerce(r,t,Q7,v,p)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,o,i;function l(v,p){return K7.coerce(o,i,Q7.coloraxis,v,p)}for(var u in a){var s=a[u];if(s[0])o=r[u]||{},i=kY.newContainer(t,u,"coloraxis"),i._name=u,SY(o,i,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var CY=ir(),EY=Si().hasColorscale,LY=Si().extractOpts;e8.exports=function(r,t){function n(f,v){var p=f["_"+v];p!==void 0&&(f[v]=p)}function a(f,v){var p=v.container?CY.nestedProperty(f,v.container).get():f;if(p)if(p.coloraxis)p._colorAx=t[p.coloraxis];else{var _=LY(p),m=_.auto;(m||_.min===void 0)&&n(p,v.min),(m||_.max===void 0)&&n(p,v.max),_.autocolorscale&&n(p,"colorscale")}}for(var o=0;o{"use strict";var t8=tt(),Tg=ir(),RY=Si().extractOpts;n8.exports=function(r,t,n){var a=r._fullLayout,o=n.vals,i=n.containerStr,l=i?Tg.nestedProperty(t,i).get():t,u=RY(l),s=u.auto!==!1,f=u.min,v=u.max,p=u.mid,_=function(){return Tg.aggNums(Math.min,null,o)},m=function(){return Tg.aggNums(Math.max,null,o)};if(f===void 0?f=_():s&&(l._colorAx&&t8(f)?f=Math.min(f,_()):f=_()),v===void 0?v=m():s&&(l._colorAx&&t8(v)?v=Math.max(v,m()):v=m()),s&&p!==void 0&&(v-p>p-f?f=p-(v-p):v-p=0?w=a.colorscale.sequential:w=a.colorscale.sequentialminus,u._sync("colorscale",w)}}});var Li=pe((uce,a8)=>{"use strict";var xv=wl(),Xs=Si();a8.exports={moduleType:"component",name:"colorscale",attributes:ei(),layoutAttributes:ug(),supplyLayoutDefaults:j7(),handleDefaults:Ei(),crossTraceDefaults:r8(),calc:zo(),scales:xv.scales,defaultScale:xv.defaultScale,getScale:xv.get,isValidScale:xv.isValid,hasColorscale:Xs.hasColorscale,extractOpts:Xs.extractOpts,extractScale:Xs.extractScale,flipScale:Xs.flipScale,makeColorScaleFunc:Xs.makeColorScaleFunc,makeColorScaleFuncFromTrace:Xs.makeColorScaleFuncFromTrace}});var oa=pe((fce,o8)=>{"use strict";var i8=ir(),DY=ea().isTypedArraySpec;o8.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return i8.isPlainObject(r)&&(i8.isArrayOrTypedArray(r.size)||DY(r.size))}}});var Ag=pe((cce,l8)=>{"use strict";var PY=tt();l8.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,o=n.sizemin||0,i=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var u=i(l/t);return PY(u)&&u>0?Math.max(u,o):0}}});var to=pe(Cn=>{"use strict";var s8=ir();Cn.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Cn.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{c8.exports=qY;var kg={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},zY=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function qY(e){var r=[];return e.replace(zY,function(t,n,a){var o=n.toLowerCase();for(a=BY(a),o=="m"&&a.length>2&&(r.push([n].concat(a.splice(0,2))),o="l",n=n=="m"?"l":"L");;){if(a.length==kg[o])return a.unshift(n),r.push(a);if(a.length{"use strict";var UY=Sg(),sr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Ir="M0,0Z",v8=Math.sqrt(2),qo=Math.sqrt(3),Cg=Math.PI,Eg=Math.cos,Lg=Math.sin;y8.exports={circle:{n:0,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?Nr(r,t,a):a}},square:{n:1,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*1.3,2);return Nr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*.4,2),a=sr(e*1.2,2);return Nr(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*.8/v8,2),a="l"+n+","+n,o="l"+n+",-"+n,i="l-"+n+",-"+n,l="l-"+n+","+n;return Nr(r,t,"M0,"+n+a+o+i+o+i+l+i+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M-"+n+","+a+"H"+n+"L0,-"+o+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+o+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M"+a+",-"+n+"V"+n+"L-"+o+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M-"+a+",-"+n+"V"+n+"L"+o+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*.951,2),a=sr(e*.588,2),o=sr(-e,2),i=sr(e*-.309,2),l=sr(e*.809,2);return Nr(r,t,"M"+n+","+i+"L"+a+","+l+"H-"+a+"L-"+n+","+i+"L0,"+o+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2),a=sr(e/2,2),o=sr(e*qo/2,2);return Nr(r,t,"M"+o+",-"+a+"V"+a+"L0,"+n+"L-"+o+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2),a=sr(e/2,2),o=sr(e*qo/2,2);return Nr(r,t,"M-"+a+","+o+"H"+a+"L"+n+",0L"+a+",-"+o+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*.924,2),a=sr(e*.383,2);return Nr(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(Fr(r))return Ir;var n=e*1.4,a=sr(n*.225,2),o=sr(n*.951,2),i=sr(n*.363,2),l=sr(n*.588,2),u=sr(-n,2),s=sr(n*-.309,2),f=sr(n*.118,2),v=sr(n*.809,2),p=sr(n*.382,2);return Nr(r,t,"M"+a+","+s+"H"+o+"L"+i+","+f+"L"+l+","+v+"L0,"+p+"L-"+l+","+v+"L-"+i+","+f+"L-"+o+","+s+"H-"+a+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*.66,2),a=sr(e*.38,2),o=sr(e*.76,2);return Nr(r,t,"M-"+o+",0l-"+a+",-"+n+"h"+o+"l"+a+",-"+n+"l"+a+","+n+"h"+o+"l-"+a+","+n+"l"+a+","+n+"h-"+o+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+o+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*qo*.8,2),a=sr(e*.8,2),o=sr(e*1.6,2),i=sr(e*4,2),l="A "+i+","+i+" 0 0 1 ";return Nr(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+o+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*qo*.8,2),a=sr(e*.8,2),o=sr(e*1.6,2),i=sr(e*4,2),l="A "+i+","+i+" 0 0 1 ";return Nr(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+o+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*1.1,2),a=sr(e*2,2),o="A "+a+","+a+" 0 0 1 ";return Nr(r,t,"M-"+n+",-"+n+o+"-"+n+","+n+o+n+","+n+o+n+",-"+n+o+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*1.4,2),a=sr(e*1.9,2),o="A "+a+","+a+" 0 0 1 ";return Nr(r,t,"M-"+n+",0"+o+"0,"+n+o+n+",0"+o+"0,-"+n+o+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*.7,2),a=sr(e*1.4,2);return Nr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*1.4,2),a=sr(e*.7,2);return Nr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2),a=sr(e/v8,2);return Nr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*1.3,2);return Nr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*1.3,2),a=sr(e*.65,2);return Nr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*1.4,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*1.2,2),a=sr(e*.85,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e/2,2),a=sr(e,2);return Nr(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M-"+n+","+o+"L0,0M"+n+","+o+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M-"+n+",-"+o+"L0,0M"+n+",-"+o+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M"+o+","+n+"L0,0M"+o+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M-"+o+","+n+"L0,0M-"+o+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*1.4,2);return Nr(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*1.4,2);return Nr(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2);return Nr(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Fr(r))return Ir;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Fr(r))return Ir;var n=Cg/2.5,a=2*e*Eg(n),o=2*e*Lg(n);return Nr(r,t,"M0,0L"+-a+","+o+"L"+a+","+o+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Fr(r))return Ir;var n=Cg/4,a=2*e*Eg(n),o=2*e*Lg(n);return Nr(r,t,"M0,0L"+-a+","+o+"A "+2*e+","+2*e+" 0 0 1 "+a+","+o+"Z")},backoff:.4,noDot:!0}};function Fr(e){return e===null}var h8,d8,p8,g8;function Nr(e,r,t){if((!e||e%360===0)&&!r)return t;if(p8===e&&g8===r&&h8===t)return d8;p8=e,g8=r,h8=t;function n(T,y){var k=Eg(T),S=Lg(T),x=y[0],M=y[1]+(r||0);return[x*k-M*S,x*S+M*k]}for(var a=e/180*Cg,o=0,i=0,l=UY(t),u="",s=0;s{"use strict";var sn=ot(),pt=ir(),HY=pt.numberFormat,ql=tt(),Ng=Sa(),_v=Er(),Mn=Zr(),VY=Li(),Lf=pt.strTranslate,wv=Wn(),GY=Fo(),YY=qn(),WY=YY.LINE_SPACING,C8=Ic().DESELECTDIM,XY=oa(),ZY=Ag(),JY=to().appendArrayPointValue,vr=q8.exports={};vr.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,o=r.color,i=r.size,l=r.family,u=r.shadow,s=r.lineposition,f=r.textcase;l&&e.style("font-family",l),i+1&&e.style("font-size",i+"px"),o&&e.call(Mn.fill,o),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",Rg(QY(f))),u&&e.style("text-shadow",u==="auto"?wv.makeTextShadow(Mn.contrast(o)):Rg(u)),s&&e.style("text-decoration-line",Rg($Y(s)))};function Rg(e){return e==="none"?void 0:e}var KY={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function QY(e){return KY[e]}function $Y(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}vr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};vr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};vr.setRect=function(e,r,t,n,a){e.call(vr.setPosition,r,t).call(vr.setSize,n,a)};vr.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),o=n.c2p(e.y);if(ql(a)&&ql(o)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",o):r.attr("transform",Lf(a,o));else return!1;return!0};vr.translatePoints=function(e,r,t){e.each(function(n){var a=sn.select(this);vr.translatePoint(n,a,r,t)})};vr.hideOutsideRangePoint=function(e,r,t,n,a,o){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,o)?null:"none")};vr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var o=a[0].trace,i=o.xcalendar,l=o.ycalendar,u=_v.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(s){vr.hideOutsideRangePoint(s,sn.select(this),t,n,i,l)})})}};vr.crispRound=function(e,r,t){return!r||!ql(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};vr.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var o=(((e||[])[0]||{}).trace||{}).line||{},i=t||o.width||0,l=a||o.dash||"";Mn.stroke(r,n||o.color),vr.dashLine(r,l,i)};vr.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var o=(((a||[])[0]||{}).trace||{}).line||{},i=r||o.width||0,l=n||o.dash||"";sn.select(this).call(Mn.stroke,t||o.color).call(vr.dashLine,l,i)})};vr.dashLine=function(e,r,t){t=+t||0,r=vr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};vr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function E8(e,r,t,n){var a=r.fillpattern,o=r.fillgradient,i=vr.getPatternAttr,l=a&&(i(a.shape,0,"")||i(a.path,0,""));if(l){var u=i(a.bgcolor,0,null),s=i(a.fgcolor,0,null),f=a.fgopacity,v=i(a.size,0,8),p=i(a.solidity,0,.3),_=r.uid;vr.pattern(e,"point",t,_,l,v,p,void 0,a.fillmode,u,s,f)}else if(o&&o.type!=="none"){var m=o.type,w="scatterfill-"+r.uid;if(n&&(w="legendfill-"+r.uid),!n&&(o.start!==void 0||o.stop!==void 0)){var T,y;m==="horizontal"?(T={x:o.start,y:0},y={x:o.stop,y:0}):m==="vertical"&&(T={x:0,y:o.start},y={x:0,y:o.stop}),T.x=r._xA.c2p(T.x===void 0?r._extremes.x.min[0].val:T.x,!0),T.y=r._yA.c2p(T.y===void 0?r._extremes.y.min[0].val:T.y,!0),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.max[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.max[0].val:y.y,!0),e.call(D8,t,w,"linear",o.colorscale,"fill",T,y,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(vr.gradient,t,w,m,o.colorscale,"fill")}else r.fillcolor&&e.call(Mn.fill,r.fillcolor)}vr.singleFillStyle=function(e,r){var t=sn.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};E8(e,a,r,!1)};vr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=sn.select(this);n[0].trace&&E8(a,n[0].trace,r,t)})};var x8=m8();vr.symbolNames=[];vr.symbolFuncs=[];vr.symbolBackOffs=[];vr.symbolNeedLines={};vr.symbolNoDot={};vr.symbolNoFill={};vr.symbolList=[];Object.keys(x8).forEach(function(e){var r=x8[e],t=r.n;vr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),vr.symbolNames[t]=e,vr.symbolFuncs[t]=r.f,vr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(vr.symbolNeedLines[t]=!0),r.noDot?vr.symbolNoDot[t]=!0:vr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(vr.symbolNoFill[t]=!0)});var jY=vr.symbolNames.length,eW="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";vr.symbolNumber=function(e){if(ql(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=vr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=jY||e>=400?0:Math.floor(Math.max(e,0))};function L8(e,r,t,n){var a=e%100;return vr.symbolFuncs[a](r,t,n)+(e>=200?eW:"")}var b8=HY("~f"),R8={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};vr.gradient=function(e,r,t,n,a,o){var i=R8[n];return D8(e,r,t,i.type,a,o,i.start,i.stop,!1,i.reversed)};function D8(e,r,t,n,a,o,i,l,u,s){var f=a.length,v;n==="linear"?v={node:"linearGradient",attrs:{x1:i.x,y1:i.y,x2:l.x,y2:l.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:s}:n==="radial"&&(v={node:"radialGradient",reversed:s});for(var p=new Array(f),_=0;_=0&&e.i===void 0&&(e.i=o.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?i.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||i.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var s=vr.symbolNumber(e.mx||i.symbol)||0;e.om=s%200>=100;var f=Og(e,t),v=qg(e,t);r.attr("d",L8(s,u,f,v))}var p=!1,_,m,w;if(e.so)w=l.outlierwidth,m=l.outliercolor,_=i.outliercolor;else{var T=(l||{}).width;w=(e.mlw+1||T+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=n.lineScale(e.mlc):pt.isArrayOrTypedArray(l.color)?m=Mn.defaultLine:m=l.color,pt.isArrayOrTypedArray(i.color)&&(_=Mn.defaultLine,p=!0),"mc"in e?_=e.mcc=n.markerScale(e.mc):_=i.color||i.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(_=n.selectedColorFn(e))}if(e.om)r.call(Mn.stroke,_).style({"stroke-width":(w||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:w)+"px");var y=i.gradient,k=e.mgt;k?p=!0:k=y&&y.type,pt.isArrayOrTypedArray(k)&&(k=k[0],R8[k]||(k=0));var S=i.pattern,x=vr.getPatternAttr,M=S&&(x(S.shape,e.i,"")||x(S.path,e.i,""));if(k&&k!=="none"){var d=e.mgc;d?p=!0:d=y.color;var b=t.uid;p&&(b+="-"+e.i),vr.gradient(r,a,b,k,[[0,d],[1,_]],"fill")}else if(M){var g=!1,c=S.fgcolor;!c&&o&&o.color&&(c=o.color,g=!0);var A=x(c,e.i,o&&o.color||null),h=x(S.bgcolor,e.i,null),R=S.fgopacity,E=x(S.size,e.i,8),D=x(S.solidity,e.i,.3);g=g||e.mcc||pt.isArrayOrTypedArray(S.shape)||pt.isArrayOrTypedArray(S.path)||pt.isArrayOrTypedArray(S.bgcolor)||pt.isArrayOrTypedArray(S.fgcolor)||pt.isArrayOrTypedArray(S.size)||pt.isArrayOrTypedArray(S.solidity);var N=t.uid;g&&(N+="-"+e.i),vr.pattern(r,"point",a,N,M,E,D,e.mcc,S.fillmode,h,A,R)}else pt.isArrayOrTypedArray(_)?Mn.fill(r,_[e.i]):Mn.fill(r,_);w&&Mn.stroke(r,m)}};vr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=vr.tryColorscale(t,""),r.lineScale=vr.tryColorscale(t,"line"),_v.traceIs(e,"symbols")&&(r.ms2mrc=XY.isBubble(e)?ZY(e):function(){return(t.size||6)/2}),e.selectedpoints&&pt.extendFlat(r,vr.makeSelectedPointStyleFns(e)),r};vr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},o=t.marker||{},i=n.marker||{},l=a.opacity,u=o.opacity,s=i.opacity,f=u!==void 0,v=s!==void 0;(pt.isArrayOrTypedArray(l)||f||v)&&(r.selectedOpacityFn=function(x){var M=x.mo===void 0?a.opacity:x.mo;return x.selected?f?u:M:v?s:C8*M});var p=a.color,_=o.color,m=i.color;(_||m)&&(r.selectedColorFn=function(x){var M=x.mcc||p;return x.selected?_||M:m||M});var w=a.size,T=o.size,y=i.size,k=T!==void 0,S=y!==void 0;return _v.traceIs(e,"symbols")&&(k||S)&&(r.selectedSizeFn=function(x){var M=x.mrc||w/2;return x.selected?k?T/2:M:S?y/2:M}),r};vr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},o=t.textfont||{},i=n.textfont||{},l=a.color,u=o.color,s=i.color;return r.selectedTextColorFn=function(f){var v=f.tc||l;return f.selected?u||v:s||(u?v:Mn.addOpacity(v,C8))},r};vr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=vr.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(o,i){o.style("opacity",t.selectedOpacityFn(i))}),t.selectedColorFn&&a.push(function(o,i){Mn.fill(o,t.selectedColorFn(i))}),t.selectedSizeFn&&a.push(function(o,i){var l=i.mx||n.symbol||0,u=t.selectedSizeFn(i);o.attr("d",L8(vr.symbolNumber(l),u,Og(i,r),qg(i,r))),i.mrc2=u}),a.length&&e.each(function(o){for(var i=sn.select(this),l=0;l0?t:0}vr.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=vr.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var o=r.texttemplate,i=t._fullLayout;e.each(function(l){var u=sn.select(this),s=o?pt.extractOption(l,r,"txt","texttemplate"):pt.extractOption(l,r,"tx","text");if(!s&&s!==0){u.remove();return}if(o){var f=r._module.formatLabels,v=f?f(l,r,i):{},p={};JY(p,r,l.i);var _=r._meta||{};s=pt.texttemplateString(s,v,i._d3locale,p,l,_)}var m=l.tp||r.textposition,w=I8(l,r),T=n?n(l):l.tc||r.textfont.color;u.call(vr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:w,color:T}).text(s).call(wv.convertToTspans,t).call(P8,m,w,l.mrc)})}};vr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=vr.makeSelectedTextStyleFns(r);e.each(function(n){var a=sn.select(this),o=t.selectedTextColorFn(n),i=n.tp||r.textposition,l=I8(n,r);Mn.fill(a,o);var u=_v.traceIs(r,"bar-like");P8(a,i,l,n.mrc2||n.mrc,u)})}};var _8=.5;vr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a=u||x>=f&&x<=u)&&(M<=v&&M>=s||M>=v&&M<=s)&&(e=[x,M])}return e}vr.applyBackoff=z8;vr.makeTester=function(){var e=pt.ensureSingleById(sn.select("body"),"svg","js-plotly-tester",function(t){t.attr(GY.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=pt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});vr.tester=e,vr.testref=r};vr.savedBBoxes={};var Pg=0,nW=1e4;vr.bBox=function(e,r,t){t||(t=w8(e));var n;if(t){if(n=vr.savedBBoxes[t],n)return pt.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=w8(a),t){var o=+a.getAttribute("x")||0,i=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var u=vr.bBox(a,!1,t);return o&&(u.left+=o,u.right+=o),i&&(u.top+=i,u.bottom+=i),u}if(t+="~"+o+"~"+i+"~"+l,n=vr.savedBBoxes[t],n)return pt.extendFlat({},n)}}var s,f;r?s=e:(f=vr.tester.node(),s=e.cloneNode(!0),f.appendChild(s)),sn.select(s).attr("transform",null).call(wv.positionText,0,0);var v=s.getBoundingClientRect(),p=vr.testref.node().getBoundingClientRect();r||f.removeChild(s);var _={height:v.height,width:v.width,left:v.left-p.left,top:v.top-p.top,right:v.right-p.left,bottom:v.bottom-p.top};return Pg>=nW&&(vr.savedBBoxes={},Pg=0),t&&(vr.savedBBoxes[t]=_),Pg++,pt.extendFlat({},_)};function w8(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}vr.setClipUrl=function(e,r,t){e.attr("clip-path",zg(r,t))};function zg(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}vr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};vr.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||0,t=t||0,i=i.replace(n,"").trim(),i+=Lf(r,t),i=i.trim(),e[o]("transform",i),i};vr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};vr.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||1,t=t||1,i=i.replace(n,"").trim(),i+="scale("+r+","+t+")",i=i.trim(),e[o]("transform",i),i};var aW=/\s*sc.*/;vr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(aW,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var iW=/translate\([^)]*\)\s*$/;vr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=sn.select(this),o=a.select("text");if(o.node()){var i=parseFloat(o.attr("x")||0),l=parseFloat(o.attr("y")||0),u=(a.attr("transform")||"").match(iW);r===1&&t===1?n=[]:n=[Lf(i,l),"scale("+r+","+t+")",Lf(-i,-l)],u&&n.push(u),a.attr("transform",n.join(""))}})};function qg(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}vr.getMarkerStandoff=qg;var Ef=Math.atan2,Fl=Math.cos,Js=Math.sin;function M8(e,r){var t=r[0],n=r[1];return[t*Fl(e)-n*Js(e),t*Js(e)+n*Fl(e)]}var T8,A8,k8,S8,Ig,Fg;function Og(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||pt.isArrayOrTypedArray(t))&&(t=0));var n,a,o=r.marker.angleref;if(o==="previous"||o==="north"){if(r._geo){var i=r._geo.project(e.lonlat);n=i[0],a=i[1]}else{var l=r._xA,u=r._yA;if(l&&u)n=l.c2p(e.x),a=u.c2p(e.y);else return 90}if(r._geo){var s=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([s,f+1e-5]),p=r._geo.project([s+1e-5,f]),_=Ef(p[1]-a,p[0]-n),m=Ef(v[1]-a,v[0]-n),w;if(o==="north")w=t/180*Math.PI;else if(o==="previous"){var T=s/180*Math.PI,y=f/180*Math.PI,k=T8/180*Math.PI,S=A8/180*Math.PI,x=k-T,M=Fl(S)*Js(x),d=Js(S)*Fl(y)-Fl(S)*Js(y)*Fl(x);w=-Ef(M,d)-Math.PI,T8=s,A8=f}var b=M8(_,[Fl(w),0]),g=M8(m,[Js(w),0]);t=Ef(b[1]+g[1],b[0]+g[0])/Math.PI*180,o==="previous"&&!(Fg===r.uid&&e.i===Ig+1)&&(t=null)}if(o==="previous"&&!r._geo)if(Fg===r.uid&&e.i===Ig+1&&ql(n)&&ql(a)){var c=n-k8,A=a-S8,h=r.line&&r.line.shape||"",R=h.slice(h.length-1);R==="h"&&(A=0),R==="v"&&(c=0),t+=Ef(A,c)/Math.PI*180+90}else t=null}return k8=n,S8=a,Ig=e.i,Fg=r.uid,t}vr.getMarkerAngle=Og});var Rf=pe((gce,H8)=>{"use strict";var Ks=ot(),oW=tt(),lW=ln(),Bg=Er(),Ol=ir(),O8=Ol.strTranslate,Mv=yt(),Tv=Zr(),Qs=Wn(),B8=Ic(),sW=qn().OPPOSITE_SIDE,U8=/ [XY][0-9]* /,Ug=1.6,Hg=1.6;function uW(e,r,t){var n=e._fullLayout,a=t.propContainer,o=t.propName,i=t.placeholder,l=t.traceIndex,u=t.avoid||{},s=t.attributes,f=t.transform,v=t.containerGroup,p=1,_=a.title,m=(_&&_.text?_.text:"").trim(),w=!1,T=_&&_.font?_.font:{},y=T.family,k=T.size,S=T.color,x=T.weight,M=T.style,d=T.variant,b=T.textcase,g=T.lineposition,c=T.shadow,A=t.subtitlePropName,h=!!A,R=t.subtitlePlaceholder,E=(a.title||{}).subtitle||{text:"",font:{}},D=(E.text||"").trim(),N=!1,F=1,I=E.font,L=I.family,P=I.size,O=I.color,U=I.weight,X=I.style,$=I.variant,j=I.textcase,Y=I.lineposition,q=I.shadow,K;o==="title.text"?K="titleText":o.indexOf("axis")!==-1?K="axisTitleText":o.indexOf("colorbar")!==-1&&(K="colorbarTitleText");var ne=e._context.edits[K];function Q(Ee,Pe){return Ee===void 0||Pe===void 0?!1:Ee.replace(U8," % ")===Pe.replace(U8," % ")}m===""?p=0:Q(m,i)&&(ne||(m=""),p=.2,w=!0),h&&(D===""?F=0:Q(D,R)&&(ne||(D=""),F=.2,N=!0)),t._meta?m=Ol.templateString(m,t._meta):n._meta&&(m=Ol.templateString(m,n._meta));var ie=m||D||ne,ee;v||(v=Ol.ensureSingle(n._infolayer,"g","g-"+r),ee=n._hColorbarMoveTitle);var V=v.selectAll("text."+r).data(ie?[0]:[]);V.enter().append("text"),V.text(m).attr("class",r),V.exit().remove();var re=null,H=r+"-subtitle",te=D||ne;if(h&&(re=v.selectAll("text."+H).data(te?[0]:[]),re.enter().append("text"),re.text(D).attr("class",H),re.exit().remove()),!ie)return v;function ue(Ee,Pe){Ol.syncOrAsync([de,ke],{title:Ee,subtitle:Pe})}function de(Ee){var Pe=Ee.title,Se=Ee.subtitle,Ne;!f&&ee&&(f={}),f?(Ne="",f.rotate&&(Ne+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||ee)&&(Ne+=O8(0,(f.offset||0)-(ee||0)))):Ne=null,Pe.attr("transform",Ne);function Be(ce){if(ce){var he=Ks.select(ce.node().parentNode).select("."+H);if(!he.empty()){var ye=ce.node().getBBox();if(ye.height){var Ce=ye.y+ye.height+Ug*P;he.attr("y",Ce)}}}}if(Pe.style("opacity",p*Tv.opacity(S)).call(Mv.font,{color:Tv.rgb(S),size:Ks.round(k,2),family:y,weight:x,style:M,variant:d,textcase:b,shadow:c,lineposition:g}).attr(s).call(Qs.convertToTspans,e,Be),Se&&!Se.empty()){var ge=v.select("."+r+"-math-group"),we=Pe.node().getBBox(),Me=ge.node()?ge.node().getBBox():void 0,me=Me?Me.y+Me.height+Ug*P:we.y+we.height+Hg*P,Re=Ol.extendFlat({},s,{y:me});Se.attr("transform",Ne),Se.style("opacity",F*Tv.opacity(O)).call(Mv.font,{color:Tv.rgb(O),size:Ks.round(P,2),family:L,weight:U,style:X,variant:$,textcase:j,shadow:q,lineposition:Y}).attr(Re).call(Qs.convertToTspans,e)}return lW.previousPromises(e)}function ke(Ee){var Pe=Ee.title,Se=Ks.select(Pe.node().parentNode);if(u&&u.selection&&u.side&&m){Se.attr("transform",null);var Ne=sW[u.side],Be=u.side==="left"||u.side==="top"?-1:1,ge=oW(u.pad)?u.pad:2,we=Mv.bBox(Se.node()),Me={t:0,b:0,l:0,r:0},me=e._fullLayout._reservedMargin;for(var Re in me)for(var ce in me[Re]){var he=me[Re][ce];Me[ce]=Math.max(Me[ce],he)}var ye={left:Me.l,top:Me.t,right:n.width-Me.r,bottom:n.height-Me.b},Ce=u.maxShift||Be*(ye[u.side]-we[u.side]),ze=0;if(Ce<0)ze=Ce;else{var qe=u.offsetLeft||0,$e=u.offsetTop||0;we.left-=qe,we.right-=qe,we.top-=$e,we.bottom-=$e,u.selection.each(function(){var Ue=Mv.bBox(this);Ol.bBoxIntersect(we,Ue,ge)&&(ze=Math.max(ze,Be*(Ue[u.side]-we[Ne])+ge))}),ze=Math.min(Ce,ze),a._titleScoot=Math.abs(ze)}if(ze>0||Ce<0){var We={left:[-ze,0],right:[ze,0],top:[0,-ze],bottom:[0,ze]}[u.side];Se.attr("transform",O8(We[0],We[1]))}}}V.call(ue,re);function Ae(Ee,Pe){Ee.text(Pe).on("mouseover.opacity",function(){Ks.select(this).transition().duration(B8.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Ks.select(this).transition().duration(B8.HIDE_PLACEHOLDER).style("opacity",0)})}if(ne&&(m?V.on(".opacity",null):(Ae(V,i),w=!0),V.call(Qs.makeEditable,{gd:e}).on("edit",function(Ee){l!==void 0?Bg.call("_guiRestyle",e,o,Ee,l):Bg.call("_guiRelayout",e,o,Ee)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ue)}).on("input",function(Ee){this.text(Ee||" ").call(Qs.positionText,s.x,s.y)}),h)){if(h&&!m){var ve=V.node().getBBox(),Te=ve.y+ve.height+Hg*P;re.attr("y",Te)}D?re.on(".opacity",null):(Ae(re,R),N=!0),re.call(Qs.makeEditable,{gd:e}).on("edit",function(Ee){Bg.call("_guiRelayout",e,"title.subtitle.text",Ee)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ue)}).on("input",function(Ee){this.text(Ee||" ").call(Qs.positionText,re.attr("x"),re.attr("y"))})}return V.classed("js-placeholder",w),re&&!re.empty()&&re.classed("js-placeholder",N),v}H8.exports={draw:uW,SUBTITLE_PADDING_EM:Hg,SUBTITLE_PADDING_MATHJAX_EM:Ug}});var Dv=pe((yce,X8)=>{"use strict";var fW=ot(),cW=ks().utcFormat,mt=ir(),vW=mt.numberFormat,Ri=tt(),Oo=mt.cleanNumber,hW=mt.ms2DateTime,V8=mt.dateTime2ms,Di=mt.ensureNumber,G8=mt.isArrayOrTypedArray,Bo=an(),Av=Bo.FP_SAFE,ti=Bo.BADNUM,dW=Bo.LOG_CLIP,pW=Bo.ONEWEEK,kv=Bo.ONEDAY,Sv=Bo.ONEHOUR,Y8=Bo.ONEMIN,W8=Bo.ONESEC,Cv=en(),Rv=wn(),Ev=Rv.HOUR_PATTERN,Lv=Rv.WEEKDAY_PATTERN;function Df(e){return Math.pow(10,e)}function Vg(e){return e!=null}X8.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function o(x,M){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&M&&r.range&&r.range.length===2){var d=r.range[0],b=r.range[1];return .5*(d+b-2*dW*Math.abs(d-b))}else return ti}function i(x,M,d,b){if((b||{}).msUTC&&Ri(x))return+x;var g=V8(x,d||r.calendar);if(g===ti)if(Ri(x)){x=+x;var c=Math.floor(mt.mod(x+.05,1)*10),A=Math.round(x-c/10);g=V8(new Date(A))+c/10}else return ti;return g}function l(x,M,d){return hW(x,M,d||r.calendar)}function u(x){return r._categories[Math.round(x)]}function s(x){if(Vg(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var M=r._categories.length-1;return r._categoriesMap[x]=M,M}return ti}function f(x,M){for(var d=new Array(M),b=0;br.range[1]&&(d=!d);for(var b=d?-1:1,g=b*x,c=0,A=0;AR)c=A+1;else{c=g<(h+R)/2?A:A+1;break}}var E=r._B[c]||0;return isFinite(E)?m(x,r._m2,E):0},y=function(x){var M=r._rangebreaks.length;if(!M)return w(x,r._m,r._b);for(var d=0,b=0;br._rangebreaks[b].pmax&&(d=b+1);return w(x,r._m2,r._B[d])}}r.c2l=r.type==="log"?o:Di,r.l2c=r.type==="log"?Df:Di,r.l2p=T,r.p2l=y,r.c2p=r.type==="log"?function(x,M){return T(o(x,M))}:T,r.p2c=r.type==="log"?function(x){return Df(y(x))}:y,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Oo,r.c2d=r.c2r=r.l2d=r.l2r=Di,r.d2p=r.r2p=function(x){return r.l2p(Oo(x))},r.p2d=r.p2r=y,r.cleanPos=Di):r.type==="log"?(r.d2r=r.d2l=function(x,M){return o(Oo(x),M)},r.r2d=r.r2c=function(x){return Df(Oo(x))},r.d2c=r.r2l=Oo,r.c2d=r.l2r=Di,r.c2r=o,r.l2d=Df,r.d2p=function(x,M){return r.l2p(r.d2r(x,M))},r.p2d=function(x){return Df(y(x))},r.r2p=function(x){return r.l2p(Oo(x))},r.p2r=y,r.cleanPos=Di):r.type==="date"?(r.d2r=r.r2d=mt.identity,r.d2c=r.r2c=r.d2l=r.r2l=i,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,M,d){return r.l2p(i(x,0,d))},r.p2d=r.p2r=function(x,M,d){return l(y(x),M,d)},r.cleanPos=function(x){return mt.cleanDate(x,ti,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=s,r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(x){var M=_(x);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Di,r.r2l=_,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(y(x))},r.r2p=r.d2p,r.p2r=y,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Di(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(x){var M=p(x);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=Di,r.r2l=p,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(y(x))},r.r2p=r.d2p,r.p2r=y,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Di(x)},r.setupMultiCategory=function(x){var M=r._traceIndices,d,b,g=r._matchGroup;if(g&&r._categories.length===0){for(var c in g)if(c!==n){var A=t[Cv.id2name(c)];M=M.concat(A._traceIndices)}}var h=[[0,{}],[0,{}]],R=[];for(d=0;dA[1]&&(b[c?0:1]=d),b[0]===b[1]){var h=r.l2r(M),R=r.l2r(d);if(M!==void 0){var E=h+1;d!==void 0&&(E=Math.min(E,R)),b[c?1:0]=E}if(d!==void 0){var D=R+1;M!==void 0&&(D=Math.max(D,h)),b[c?0:1]=D}}}},r.cleanRange=function(x,M){r._cleanRange(x,M),r.limitRange(x)},r._cleanRange=function(x,M){M||(M={}),x||(x="range");var d=mt.nestedProperty(r,x).get(),b,g;if(r.type==="date"?g=mt.dfltRange(r.calendar):a==="y"?g=Rv.DFLTRANGEY:r._name==="realaxis"?g=[0,1]:g=M.dfltRange||Rv.DFLTRANGEX,g=g.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(g[0]=0),!d||d.length!==2){mt.nestedProperty(r,x).set(g);return}var c=d[0]===null,A=d[1]===null;for(r.type==="date"&&!r.autorange&&(d[0]=mt.cleanDate(d[0],ti,r.calendar),d[1]=mt.cleanDate(d[1],ti,r.calendar)),b=0;b<2;b++)if(r.type==="date"){if(!mt.isDateTime(d[b],r.calendar)){r[x]=g;break}if(r.r2l(d[0])===r.r2l(d[1])){var h=mt.constrain(r.r2l(d[0]),mt.MIN_MS+1e3,mt.MAX_MS-1e3);d[0]=r.l2r(h-1e3),d[1]=r.l2r(h+1e3);break}}else{if(!Ri(d[b]))if(!(c||A)&&Ri(d[1-b]))d[b]=d[1-b]*(b?10:.1);else{r[x]=g;break}if(d[b]<-Av?d[b]=-Av:d[b]>Av&&(d[b]=Av),d[0]===d[1]){var R=Math.max(1,Math.abs(d[0]*1e-6));d[0]-=R,d[1]+=R}}},r.setScale=function(x){var M=t._size;if(r.overlaying){var d=Cv.getFromId({_fullLayout:t},r.overlaying);r.domain=d.domain}var b=x&&r._r?"_r":"range",g=r.calendar;r.cleanRange(b);var c=r.r2l(r[b][0],g),A=r.r2l(r[b][1],g),h=a==="y";if(h?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(c-A),r._b=-r._m*A):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(A-c),r._b=-r._m*c),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,E;if(r._rangebreaks=r.locateBreaks(Math.min(c,A),Math.max(c,A)),r._rangebreaks.length){for(R=0;RA&&(D=!D),D&&r._rangebreaks.reverse();var N=D?-1:1;for(r._m2=N*r._length/(Math.abs(A-c)-r._lBreaks),r._B.push(-r._m2*(h?A:c)),R=0;Rg&&(g+=7,cg&&(g+=24,c=b&&c=b&&x=q.min&&(Xq.max&&(q.max=$),j=!1)}j&&A.push({min:X,max:$})}};for(d=0;d{"use strict";var Z8=tt(),Gg=ir(),gW=an().BADNUM,Pv=Gg.isArrayOrTypedArray,yW=Gg.isDateTime,mW=Gg.cleanNumber,J8=Math.round;Q8.exports=function(r,t,n){var a=r,o=n.noMultiCategory;if(Pv(a)&&!a.length)return"-";if(!o&&MW(a))return"multicategory";if(o&&Array.isArray(a[0])){for(var i=[],l=0;lo*2}function K8(e){return Math.max(1,(e-1)/1e3)}function wW(e,r){for(var t=e.length,n=K8(t),a=0,o=0,i={},l=0;la*2}function MW(e){return Pv(e[0])&&Pv(e[1])}});var $s=pe((xce,iM)=>{"use strict";var TW=ot(),rM=tt(),Uo=ir(),Iv=an().FP_SAFE,AW=Er(),kW=yt(),tM=en(),SW=tM.getFromId,CW=tM.isLinked;iM.exports={applyAutorangeOptions:aM,getAutoRange:Wg,makePadFn:Xg,doAutoRange:LW,findExtremes:RW,concatExtremes:Kg};function Wg(e,r){var t,n,a=[],o=e._fullLayout,i=Xg(o,r,0),l=Xg(o,r,1),u=Kg(e,r),s=u.min,f=u.max;if(s.length===0||f.length===0)return Uo.simpleMap(r.range,r.r2l);var v=s[0].val,p=f[0].val;for(t=1;t0&&(A=S-i(d)-l(b),A>x?h/A>M&&(g=d,c=b,M=h/A):h/S>M&&(g={val:d.val,nopad:1},c={val:b.val,nopad:1},M=h/S));function R(I,L){return Math.max(I,l(L))}if(v===p){var E=v-1,D=v+1;if(y)if(v===0)a=[0,1];else{var N=(v>0?f:s).reduce(R,0),F=v/(1-Math.min(.5,N/S));a=v>0?[0,F]:[F,0]}else k?a=[Math.max(0,E),Math.max(1,D)]:a=[E,D]}else y?(g.val>=0&&(g={val:0,nopad:1}),c.val<=0&&(c={val:0,nopad:1})):k&&(g.val-M*i(g)<0&&(g={val:0,nopad:1}),c.val<=0&&(c={val:1,nopad:1})),M=(c.val-g.val-$8(r,d.val,b.val))/(S-i(g)-l(c)),a=[g.val-M*i(g),c.val+M*l(c)];return a=aM(a,r),r.limitRange&&r.limitRange(),m&&a.reverse(),Uo.simpleMap(a,r.l2r||Number)}function $8(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),o=0;o0?t.ppadplus:t.ppadminus)||t.ppad||0),d=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),b=x(t.vpadplus||t.vpad),g=x(t.vpadminus||t.vpad);if(!s){if(k=1/0,S=-1/0,u)for(v=0;v0&&(k=p),p>S&&p-Iv&&(k=p),p>S&&p=h;v--)A(v);return{min:n,max:a,opts:t}}function Zg(e,r,t,n){nM(e,r,t,n,DW)}function Jg(e,r,t,n){nM(e,r,t,n,PW)}function nM(e,r,t,n,a){for(var o=n.tozero,i=n.extrapad,l=!0,u=0;u=t&&(s.extrapad||!i)){l=!1;break}else a(r,s.val)&&s.pad<=t&&(i||!s.extrapad)&&(e.splice(u,1),u--)}if(l){var f=o&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:i})}}function eM(e){return rM(e)&&Math.abs(e)=r}function IW(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Fv(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Fv(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function FW(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Fv(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Fv(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Fv(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=u&&(o=u,t=u),i<=u&&(i=u,n=u)}}return t=IW(t,r),n=FW(n,r),[t,n]}});var Ct=pe((bce,CM)=>{"use strict";var Da=ot(),Xt=tt(),js=ln(),If=Er(),Lr=ir(),eu=Lr.strTranslate,Bl=Wn(),NW=Rf(),Ff=Zr(),pa=yt(),zW=Ra(),oM=hg(),Tn=an(),qW=Tn.ONEMAXYEAR,qv=Tn.ONEAVGYEAR,Ov=Tn.ONEMINYEAR,OW=Tn.ONEMAXQUARTER,e2=Tn.ONEAVGQUARTER,Bv=Tn.ONEMINQUARTER,BW=Tn.ONEMAXMONTH,ru=Tn.ONEAVGMONTH,Uv=Tn.ONEMINMONTH,ga=Tn.ONEWEEK,On=Tn.ONEDAY,Ho=On/2,Ii=Tn.ONEHOUR,Nf=Tn.ONEMIN,Hv=Tn.ONESEC,UW=Tn.ONEMILLI,HW=Tn.ONEMICROSEC,Ul=Tn.MINUS_SIGN,Gv=Tn.BADNUM,r2={K:"zeroline"},t2={K:"gridline",L:"path"},n2={K:"minor-gridline",L:"path"},yM={K:"tick",L:"path"},lM={K:"tick",L:"text"},sM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Yv=qn(),Pf=Yv.MID_SHIFT,Hl=Yv.CAP_SHIFT,zf=Yv.LINE_SPACING,VW=Yv.OPPOSITE_SIDE,Vv=3,lr=CM.exports={};lr.setConvert=Dv();var GW=Yg(),no=en(),YW=no.idSort,WW=no.isLinked;lr.id2name=no.id2name;lr.name2id=no.name2id;lr.cleanId=no.cleanId;lr.list=no.list;lr.listIds=no.listIds;lr.getFromId=no.getFromId;lr.getFromTrace=no.getFromTrace;var mM=$s();lr.getAutoRange=mM.getAutoRange;lr.findExtremes=mM.findExtremes;var XW=1e-4;function l2(e){var r=(e[1]-e[0])*XW;return[e[0]-r,e[1]+r]}lr.coerceRef=function(e,r,t,n,a,o){var i=n.charAt(n.length-1),l=t._fullLayout._subplots[i+"axis"],u=n+"ref",s={};return a||(a=l[0]||(typeof o=="string"?o:o[0])),o||(o=a),l=l.concat(l.map(function(f){return f+" domain"})),s[u]={valType:"enumerated",values:l.concat(o?typeof o=="string"?[o]:o:[]),dflt:a},Lr.coerce(e,r,s,u)};lr.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};lr.coercePosition=function(e,r,t,n,a,o){var i,l,u=lr.getRefType(n);if(u!=="range")i=Lr.ensureNumber,l=t(a,o);else{var s=lr.getFromId(r,n);o=s.fraction2r(o),l=t(a,o),i=s.cleanPos}e[a]=i(l)};lr.cleanPosition=function(e,r,t){var n=t==="paper"||t==="pixel"?Lr.ensureNumber:lr.getFromId(r,t).cleanPos;return n(e)};lr.redrawComponents=function(e,r){r=r||lr.listIds(e);var t=e._fullLayout;function n(a,o,i,l){for(var u=If.getComponentMethod(a,o),s={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};lr.saveRangeInitial=function(e,r){for(var t=lr.list(e,"",!0),n=!1,a=0;av*.3||s(n)||s(a))){var p=t.dtick/2;e+=e+pi){var l=Number(t.substr(1));o.exactYears>i&&l%12===0?e=lr.tickIncrement(e,"M6","reverse")+On*1.5:o.exactMonths>i?e=lr.tickIncrement(e,"M1","reverse")+On*15.5:e-=Ho;var u=lr.tickIncrement(e,t);if(u<=n)return u}return e}lr.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var n=r.dtick&&Xt(r._tmin),a;if(n){var o=lr.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,o*.99+r._tmin*.01]}else{var i=Lr.simpleMap(r.range,r.r2l);a=[i[0],.8*i[0]+.2*i[1]]}if(e.range=Lr.simpleMap(a,r.l2r),e._isMinor=!0,lr.prepTicks(e,t),n){var l=Xt(r.dtick),u=Xt(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?Qg(s,f)?s===2*ga&&f===2*On&&(e.dtick=ga):s===2*ga&&f===3*On?e.dtick=ga:s===ga&&!(r._input.minor||{}).nticks?e.dtick=On:cM(s/f,2.5)?e.dtick=s/2:e.dtick=s:String(r.dtick).charAt(0)==="M"?u?e.dtick="M1":Qg(s,f)?s>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?Qg(s,f)||(e.dtick=cM(s/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function Qg(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function cM(e,r){return Math.abs(e/r-1)<.001}lr.prepTicks=function(e,r){var t=Lr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?Lr.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=Lr.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,lr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(o=n-1,i=n):(o=n,i=n);var l=e[o].value,u=e[i].value,s=Math.abs(u-l),f=t||s,v=0;f>=Ov?s>=Ov&&s<=qW?v=s:v=qv:t===e2&&f>=Bv?s>=Bv&&s<=OW?v=s:v=e2:f>=Uv?s>=Uv&&s<=BW?v=s:v=ru:t===ga&&f>=ga?v=ga:f>=On?v=On:t===Ho&&f>=Ho?v=Ho:t===Ii&&f>=Ii&&(v=Ii);var p;v>=s&&(v=s,p=!0);var _=a+v;if(r.rangebreaks&&v>0){for(var m=84,w=0,T=0;Tga&&(v=s)}(v>0||n===0)&&(e[n].periodX=a+v/2)}}lr.calcTicks=function(r,t){for(var n=r.type,a=r.calendar,o=r.ticklabelstep,i=r.ticklabelmode==="period",l=r.range[0]>r.range[1],u=!r.ticklabelindex||Lr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],s=Lr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=s[1]=(S?0:1);x--){var M=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var d=x?r:Lr.extendFlat({},r,r.minor);if(M?lr.prepMinorTicks(d,r,t):lr.prepTicks(d,t),d.tickmode==="array"){x?(T=[],m=vM(r,!M)):(y=[],w=vM(r,!M));continue}if(d.tickmode==="sync"){T=[],m=jW(r);continue}var b=l2(s),g=b[0],c=b[1],A=Xt(d.dtick),h=n==="log"&&!(A||d.dtick.charAt(0)==="L"),R=lr.tickFirst(d,t);if(x){if(r._tmin=R,R=c:D<=c;D=lr.tickIncrement(D,I,f,a)){if(x&&N++,d.rangebreaks&&!f){if(D=p)break}if(T.length>_||D===E)break;E=D;var L={value:D};x?(h&&D!==(D|0)&&(L.simpleLabel=!0),o>1&&N%o&&(L.skipLabel=!0),T.push(L)):(L.minor=!0,y.push(L))}}if(!y||y.length<2)u=!1;else{var P=(y[1].value-y[0].value)*(l?-1:1);TX(P,r.tickformat)||(u=!1)}if(!u)k=T;else{var O=T.concat(y);i&&T.length&&(O=O.slice(1)),O=O.sort(function(Te,Ee){return Te.value-Ee.value}).filter(function(Te,Ee,Pe){return Ee===0||Te.value!==Pe[Ee-1].value});var U=O.map(function(Te,Ee){return Te.minor===void 0&&!Te.skipLabel?Ee:null}).filter(function(Te){return Te!==null});U.forEach(function(Te){u.map(function(Ee){var Pe=Te+Ee;Pe>=0&&Pe-1;ie--){if(T[ie].drop){T.splice(ie,1);continue}T[ie].value=jg(T[ie].value,r);var H=r.c2p(T[ie].value);(ee?re>H-V:rep||Sep&&(Pe.periodX=p),Sea&&pqv)r/=qv,n=a(10),e.dtick="M"+12*Pi(r,n,Nv);else if(o>ru)r/=ru,e.dtick="M"+Pi(r,1,hM);else if(o>On){if(e.dtick=Pi(r,On,e._hasDayOfWeekBreaks?[1,2,7,14]:eX),!t){var i=lr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(i)?e.tick0=Lr.dateTick0(e.calendar,2):e.tick0=Lr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else o>Ii?e.dtick=Pi(r,Ii,hM):o>Nf?e.dtick=Pi(r,Nf,dM):o>Hv?e.dtick=Pi(r,Hv,dM):(n=a(10),e.dtick=Pi(r,n,Nv))}else if(e.type==="log"){e.tick0=0;var u=Lr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(u[1]-u[0])<1){var s=1.5*Math.abs((u[1]-u[0])/r);r=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/s,n=a(10),e.dtick="L"+Pi(r,n,Nv)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):c2(e)?(e.tick0=0,n=1,e.dtick=Pi(r,n,rX)):(e.tick0=0,n=a(10),e.dtick=Pi(r,n,Nv));if(e.dtick===0&&(e.dtick=1),!Xt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function wM(e){var r=e.dtick;if(e._tickexponent=0,!Xt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=On&&a<=10||r>=On*15)e._tickround="d";else if(r>=Nf&&a<=16||r>=Ii)e._tickround="M";else if(r>=Hv&&a<=19||r>=Nf)e._tickround="S";else{var o=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,o)-20,e._tickround<0&&(e._tickround=4)}}else if(Xt(r)||r.charAt(0)==="L"){var i=e.range.map(e.r2d||Number);Xt(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(i[0]),Math.abs(i[1])),u=Math.floor(Math.log(l)/Math.LN10+.01),s=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>s&&(tu(e.exponentformat)&&e.exponentformat!=="SI extended"&&!s2(u)||tu(e.exponentformat)&&e.exponentformat==="SI extended"&&!u2(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}lr.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(Xt(r))return Lr.increment(e,a*r);var o=r.charAt(0),i=a*Number(r.substr(1));if(o==="M")return Lr.incrementMonth(e,i,n);if(o==="L")return Math.log(Math.pow(10,e)+i)/Math.LN10;if(o==="D"){var l=r==="D2"?_M:bM,u=e+a*.01,s=Lr.roundUp(Lr.mod(u,1),l,t);return Math.floor(u)+Math.log(Da.round(Math.pow(10,s),1))/Math.LN10}throw"unrecognized dtick "+String(r)};lr.tickFirst=function(e,r){var t=e.r2l||Number,n=Lr.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&y<=e._length?T:null};if(o&&Lr.isArrayOrTypedArray(e.ticktext)){var v=Lr.simpleMap(e.range,e.r2l),p=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(s=0;s"+l;else{var s=Of(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(i+="
")}r.text=i}function nX(e,r,t,n,a){var o=e.dtick,i=r.x,l=e.tickformat,u=typeof o=="string"&&o.charAt(0);if(a==="never"&&(a=""),n&&u!=="L"&&(o="L3",u="L"),l||u==="L")r.text=qf(Math.pow(10,i),e,a,n);else if(Xt(o)||u==="D"&&(e.minorloglabels==="complete"||Lr.mod(i+.01,1)<.1)){var s;e.minorloglabels==="complete"&&!(Lr.mod(i+.01,1)<.1)&&(s=!0,r.fontSize*=.75);var f=Math.pow(10,i).toExponential(0),v=f.split("e"),p=+v[1],_=Math.abs(p),m=e.exponentformat;m==="power"||tu(m)&&m!=="SI extended"&&s2(p)||tu(m)&&m==="SI extended"&&u2(p)?(r.text=v[0],_>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),p!==0&&p!==1&&(r.text+=""+(p>0?"":Ul)+_+""),r.fontSize*=1.25):(m==="e"||m==="E")&&_>2?r.text=v[0]+m+(p>0?"+":Ul)+_:(r.text=qf(Math.pow(10,i),e,"","fakehover"),o==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(u==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Lr.mod(i,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(o);if(e.dtick==="D1"){var w=String(r.text).charAt(0);(w==="0"||w==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(i<0?.5:.25)))}}function aX(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function iX(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],o=a[1]===void 0?"":String(a[1]),i=a[0]===void 0?"":String(a[0]);t?r.text=i+" - "+o:(r.text=o,r.text2=i)}function oX(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=qf(r.x,e,a,n)}function lX(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var o=r.x/180;if(o===0)r.text="0";else{var i=sX(o);if(i[1]>=100)r.text=qf(Lr.deg2rad(r.x),e,a,n);else{var l=r.x<0;i[1]===1?i[0]===1?r.text="\u03C0":r.text=i[0]+"\u03C0":r.text=["",i[0],"","\u2044","",i[1],"","\u03C0"].join(""),l&&(r.text=Ul+r.text)}}}else r.text=qf(r.x,e,a,n)}function sX(e){function r(l,u){return Math.abs(l-u)<=1e-6}function t(l,u){return r(u,0)?l:t(u,l%u)}function n(l){for(var u=1;!r(Math.round(l*u)/u,l);)u*=10;return u}var a=n(e),o=e*a,i=Math.abs(t(o,a));return[Math.round(o/i),Math.round(a/i)]}var TM=["f","p","n","\u03BC","m","","k","M","G","T"],uX=["q","r","y","z","a",...TM,"P","E","Z","Y","R","Q"],tu=e=>["SI","SI extended","B"].includes(e);function s2(e){return e>14||e<-15}function u2(e){return e>32||e<-30}function fX(e,r){return tu(r)?!!(r==="SI extended"&&u2(e)||r!=="SI extended"&&s2(e)):!1}function qf(e,r,t,n){var a=e<0,o=r._tickround,i=t||r.exponentformat||"B",l=r._tickexponent,u=lr.getTickFormat(r),s=r.separatethousands;if(n){var f={exponentformat:i,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Xt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};wM(f),o=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(u=r.hoverformat)}if(u)return r._numFormat(u)(e).replace(/-/g,Ul);var v=Math.pow(10,-o)/2;if(i==="none"&&(l=0),e=Math.abs(e),e"+m+"":i==="B"&&l===9?e+="B":tu(i)&&(e+=i==="SI extended"?uX[l/3+10]:TM[l/3+5])}return a?Ul+e:e}lr.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*ru}function n(u,s){var f=["L","D"];if(typeof u==typeof s){if(typeof u=="number")return u-s;var v=f.indexOf(u.charAt(0)),p=f.indexOf(s.charAt(0));return v===p?Number(u.replace(/(L|D)/g,""))-Number(s.replace(/(L|D)/g,"")):v-p}else return typeof u=="number"?1:-1}function a(u,s,f){var v=f||function(m){return m},p=s[0],_=s[1];return(!p&&typeof p!="number"||v(p)<=v(u))&&(!_&&typeof _!="number"||v(_)>=v(u))}function o(u,s){var f=s[0]===null,v=s[1]===null,p=n(u,s[0])>=0,_=n(u,s[1])<=0;return(f||p)&&(v||_)}var i,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return Lr.syncOrAsync(a.map(function(u){return function(){if(u){var s=lr.getFromId(e,u);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=i;var f=lr.drawOne(e,s,t);return s._shiftPusher&&o2(s,s._fullDepth||0,l,!0),s._r=s.range.slice(),s._rl=Lr.simpleMap(s._r,s.r2l),f}}}))};lr.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],o,i,l;r.setScale();var u=e._fullLayout,s=r._id,f=s.charAt(0),v=lr.counterLetter(s),p=u._plots[r._mainSubplot],_=r.zerolinelayer==="above traces";if(!p)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),o2(r,m,n,!0),o2(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=MX(r,n));var w=p[f+"axislayer"],T=r._mainLinePosition,y=T+=r._shift,k=r._mainMirrorPosition,S=r._vals=lr.calcTicks(r),x=[r.mirror,y,k].join("_");for(o=0;o0?Se.bottom-Ee:0,Pe))));var we=0,Me=0;if(r._shiftPusher&&(we=Math.max(Pe,Se.height>0?ve==="l"?Ee-Se.left:Se.right-Ee:0),r.title.text!==u._dfltTitle[f]&&(Me=(r._titleStandoff||0)+(r._titleScoot||0),ve==="l"&&(Me+=gM(r))),r._fullDepth=Math.max(we,Me)),r.automargin){Ne={x:0,y:0,r:0,l:0,t:0,b:0};var me=[0,1],Re=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(ve==="b"?Ne[ve]=r._depth:(Ne[ve]=r._depth=Math.max(Se.width>0?Ee-Se.top:0,Pe),me.reverse()),Se.width>0){var ce=Se.right-(r._offset+r._length);ce>0&&(Ne.xr=1,Ne.r=ce);var he=r._offset-Se.left;he>0&&(Ne.xl=0,Ne.l=he)}}else if(ve==="l"?(r._depth=Math.max(Se.height>0?Ee-Se.left:0,Pe),Ne[ve]=r._depth-Re):(r._depth=Math.max(Se.height>0?Se.right-Ee:0,Pe),Ne[ve]=r._depth+Re,me.reverse()),Se.height>0){var ye=Se.bottom-(r._offset+r._length);ye>0&&(Ne.yb=0,Ne.b=ye);var Ce=r._offset-Se.top;Ce>0&&(Ne.yt=1,Ne.t=Ce)}Ne[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[me[0]],r.title.text!==u._dfltTitle[f]&&(Ne[ve]+=gM(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Be={x:0,y:0,r:0,l:0,t:0,b:0},Be[Te]=r.linewidth,r.mirror&&r.mirror!==!0&&(Be[Te]+=Pe),r.mirror===!0||r.mirror==="ticks"?Be[v]=r._anchorAxis.domain[me[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Be[v]=[r._counterDomainMin,r._counterDomainMax][me[1]]))}Ae&&(ge=If.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(pM(Ne,r.automargin),pM(Be,r.automargin)),js.autoMargin(e,f2(r),Ne),js.autoMargin(e,kM(r),Be),js.autoMargin(e,SM(r),ge)}),Lr.syncOrAsync(de)}};function pM(e,r){if(e){var t=Object.keys(sM).reduce(function(n,a){return r.indexOf(a)!==-1&&sM[a].forEach(function(o){n[o]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function cX(e,r){var t=[],n,a=function(o,i){var l=o.xbnd[i];l!==null&&t.push(Lr.extendFlat({},o,{x:l}))};if(r.length){for(n=0;ne.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!l;if(t){var s=i?-1:1;t=t*s}if(n){var f=e.side,v=l&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*v}return e._id.charAt(0)==="x"?function(p){return eu(a+e._offset+e.l2p(a2(p))+t,o+n)}:function(p){return eu(o+n,a+e._offset+e.l2p(a2(p))+t)}};function a2(e){return e.periodX!==void 0?e.periodX:e.x}function pX(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(m){return r.indexOf(m)!==-1},a=n("top"),o=n("left"),i=n("right"),l=n("bottom"),u=n("inside"),s=t!=="boundaries"&&(l||o||a||i);if(!s&&!u)return[0,0];var f=e.side,v=s?(e.tickwidth||0)/2:0,p=Vv,_=e.tickfont?e.tickfont.size:12;return(l||a)&&(v+=_*Hl,p+=(e.linewidth||0)/2),(o||i)&&(v+=(e.linewidth||0)/2,p+=Vv),u&&f==="top"&&(p-=_*(1-Hl)),(o||a)&&(v=-v),(f==="bottom"||f==="right")&&(p=-p),[s?v:0,u?p:0]}lr.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var o=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,i=e._id.charAt(0),l=(e.linewidth||1)/2;return i==="x"?"M0,"+(r+l*t)+"v"+o*t:"M"+(r+l*t)+",0h"+o*t};lr.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",o=function(E){return n.indexOf(E)!==-1},i=o("top"),l=o("left"),u=o("right"),s=o("bottom"),f=a!=="boundaries"&&(s||l||i||u),v=o("inside"),p=n==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&a!=="boundaries",_=0,m=0,w=p?e.ticklen:0;if(v?w*=-1:f&&(w=0),p&&(_+=w,t)){var T=Lr.deg2rad(t);_=w*Math.cos(T)+1,m=w*Math.sin(T)}e.showticklabels&&(p||e.showline)&&(_+=.2*e.tickfont.size),_+=(e.linewidth||1)/2*(v?-1:1);var y={labelStandoff:_,labelShift:m},k,S,x,M,d=0,b=e.side,g=e._id.charAt(0),c=e.tickangle,A;if(g==="x")A=!v&&b==="bottom"||v&&b==="top",M=A?1:-1,v&&(M*=-1),k=m*M,S=r+_*M,x=A?1:-.2,Math.abs(c)===90&&(v?x+=Pf:c===-90&&b==="bottom"?x=Hl:c===90&&b==="top"?x=Pf:x=.5,d=Pf/2*(c/90)),y.xFn=function(E){return E.dx+k+d*E.fontSize},y.yFn=function(E){return E.dy+S+E.fontSize*x},y.anchorFn=function(E,D){if(f){if(l)return"end";if(u)return"start"}return!Xt(D)||D===0||D===180?"middle":D*M<0!==v?"end":"start"},y.heightFn=function(E,D,N){return D<-60||D>60?-.5*N:e.side==="top"!==v?-N:0};else if(g==="y"){if(A=!v&&b==="left"||v&&b==="right",M=A?1:-1,v&&(M*=-1),k=_,S=m*M,x=0,!v&&Math.abs(c)===90&&(c===-90&&b==="left"||c===90&&b==="right"?x=Hl:x=.5),v){var h=Xt(c)?+c:0;if(h!==0){var R=Lr.deg2rad(h);d=Math.abs(Math.sin(R))*Hl*M,x=0}}y.xFn=function(E){return E.dx+r-(k+E.fontSize*x)*M+d*E.fontSize},y.yFn=function(E){return E.dy+S+E.fontSize*Pf},y.anchorFn=function(E,D){return Xt(D)&&Math.abs(D)===90?"middle":A?"end":"start"},y.heightFn=function(E,D,N){return e.side==="right"&&(D*=-1),D<-30?-N:D<30?-.5*N:0}}return y};function Wv(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}lr.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(i){return i.minor&&!i.noTick}):[]).concat(r.ticks?t.vals.filter(function(i){return!i.minor&&!i.noTick}):[]),o=t.layer.selectAll("path."+n).data(a,Wv);o.exit().remove(),o.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(i){return Ff.stroke(Da.select(this),i.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(i){return pa.crispRound(e,i.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Xv(r,[yM]),o.attr("transform",t.transFn)};lr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,o=a?t.vals.filter(function(y){return y.minor}):[],i=r.showgrid?t.vals.filter(function(y){return!y.minor}):[],l=t.counterAxis;if(l&&lr.shouldShowZeroLine(e,r,l))for(var u=r.tickmode==="array",s=0;s=0;m--){var w=m?p:_;if(w){var T=w.selectAll("path."+n).data(m?i:o,Wv);T.exit().remove(),T.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),T.attr("transform",t.transFn).attr("d",t.path).each(function(y){return Ff.stroke(Da.select(this),y.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(y){return pa.dashStyle(y.minor?r.minor.griddash:r.griddash,y.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(y){return(y.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&T.attr("d",t.path)}}Xv(r,[t2,n2])}};lr.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=lr.shouldShowZeroLine(e,r,t.counterAxis),o=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);o.exit().remove(),o.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(i,l){return YW(i.id,l.id)})}),o.attr("transform",t.transFn).attr("d",t.path).call(Ff.stroke,r.zerolinecolor||Ff.defaultLine).style("stroke-width",pa.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Xv(r,[r2])};lr.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,o=r.zerolinelayer==="above traces",i=t.cls||a+"tick",l=t.vals.filter(function(P){return P.text}),u=t.labelFns,s=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[i],v=t.layer.selectAll("g."+i).data(r.showticklabels?l:[],Wv),p=[];v.enter().append("g").classed(i,1).append("text").attr("text-anchor","middle").each(function(P){var O=Da.select(this),U=e._promises.length;O.call(Bl.positionText,u.xFn(P),u.yFn(P)).call(pa.font,{family:P.font,size:P.fontSize,color:P.fontColor,weight:P.fontWeight,style:P.fontStyle,variant:P.fontVariant,textcase:P.fontTextcase,lineposition:P.fontLineposition,shadow:P.fontShadow}).text(P.text).call(Bl.convertToTspans,e),e._promises[U]?p.push(e._promises.pop().then(function(){_(O,s)})):_(O,s)}),Xv(r,[lM]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(P){Da.select(this).select("text").call(Bl.positionText,u.xFn(P),u.yFn(P))});function _(P,O){P.each(function(U){var X=Da.select(this),$=X.select(".text-math-group"),j=u.anchorFn(U,O),Y=t.transFn.call(X.node(),U)+(Xt(O)&&+O!=0?" rotate("+O+","+u.xFn(U)+","+(u.yFn(U)-U.fontSize/2)+")":""),q=Bl.lineCount(X),K=zf*U.fontSize,ne=u.heightFn(U,Xt(O)?+O:0,(q-1)*K);if(ne&&(Y+=eu(0,ne)),$.empty()){var Q=X.select("text");Q.attr({transform:Y,"text-anchor":j}),Q.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ie=pa.bBox($.node()).width,ee=ie*{end:-.5,start:.5}[j];$.attr("transform",Y+eu(ee,0))}})}r._adjustTickLabelsOverflow=function(){var P=r.ticklabeloverflow;if(!(!P||P==="allow")){var O=P.indexOf("hide")!==-1,U=r._id.charAt(0)==="x",X=0,$=U?e._fullLayout.width:e._fullLayout.height;if(P.indexOf("domain")!==-1){var j=Lr.simpleMap(r.range,r.r2l);X=r.l2p(j[0])+r._offset,$=r.l2p(j[1])+r._offset}var Y=Math.min(X,$),q=Math.max(X,$),K=r.side,ne=1/0,Q=-1/0;v.each(function(re){var H=Da.select(this),te=H.select(".text-math-group");if(te.empty()){var ue=pa.bBox(H.node()),de=0;U?(ue.right>q||ue.leftq||ue.top+(r.tickangle?0:re.fontSize/4)r["_visibleLabelMin_"+j._id]?H.style("display","none"):q.K==="tick"&&!Y&&H.node().style.display!=="none"&&H.style("display",null)})})})})},_(v,f+1?f:s);function m(){return p.length&&Promise.all(p)}var w=null;function T(){if(_(v,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){w=r.autotickangles[0];var P=0,O=[],U,X=1;v.each(function(Ne){P=Math.max(P,Ne.fontSize);var Be=r.l2p(Ne.x),ge=i2(this),we=pa.bBox(ge.node());X=Math.max(X,Bl.lineCount(ge)),O.push({top:0,bottom:10,height:10,left:Be-we.width/2,right:Be+we.width/2+2,width:we.width+2})});var $=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,j=l.length,Y=Math.abs((l[j-1].x-l[0].x)*r._m)/(j-1),q=$?Y/2:Y,K=$?r.ticklen:P*1.25*X,ne=Math.sqrt(Math.pow(q,2)+Math.pow(K,2)),Q=q/ne,ie=r.autotickangles.map(function(Ne){return Ne*Math.PI/180}),ee=ie.find(function(Ne){return Math.abs(Math.cos(Ne))<=Q});ee===void 0&&(ee=ie.reduce(function(Ne,Be){return Math.abs(Math.cos(Ne))F*N&&(R=N,c[g]=A[g]=E[g])}var I=Math.abs(R-h);I-M>0?(I-=M,M*=1+M/I):M=0,r._id.charAt(0)!=="y"&&(M=-M),c[b]=S.p2r(S.r2p(A[b])+d*M),S.autorange==="min"||S.autorange==="max reversed"?(c[0]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0):(S.autorange==="max"||S.autorange==="min reversed")&&(c[1]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[S._name+".range"]=c}var L=Lr.syncOrAsync(y);return L&&L.then&&e._promises.push(L),L};function gX(e,r,t){var n=r._id+"divider",a=t.vals,o=t.layer.selectAll("path."+n).data(a,Wv);o.exit().remove(),o.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(Ff.stroke,r.dividercolor).style("stroke-width",pa.crispRound(e,r.dividerwidth,1)+"px"),o.attr("transform",t.transFn).attr("d",t.path)}lr.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,o;if(r.anchor!=="free"?o=r._anchorAxis:n==="x"?o={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(o={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return o._offset;if(a==="bottom"||a==="right")return o._offset+o._length};function gM(e){var r=e.title.font.size,t=(e.title.text.match(Bl.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Hl+t*zf):t?r*(t+1)*zf:r}function yX(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),o=r.title.font.size,i,l=(r.title.text.match(Bl.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?i=r._depth+r.title.standoff+o*Hl:(r.side==="top"||r.side==="left")&&(i=r._depth+r.title.standoff+o*(Pf+l*zf));else{var u=Of(r);if(r.type==="multicategory")i=r._depth;else{var s=1.5*o;u&&(s=.5*o,r.ticks==="outside"&&(s+=r.ticklen)),i=10+s+(r.linewidth?r.linewidth-1:0)}u||(a==="x"?i+=r.side==="top"?o*(r.showticklabels?1:0):o*(r.showticklabels?1.5:.5):i+=r.side==="right"?o*(r.showticklabels?1:.5):o*(r.showticklabels?.5:0))}var f=lr.getPxPosition(e,r),v,p,_;a==="x"?(p=r._offset+r._length/2,_=r.side==="top"?f-i:f+i):(_=r._offset+r._length/2,p=r.side==="right"?f+i:f-i,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var w=r._selections[r._id+"tick"];if(m={selection:w,side:r.side},w&&w.node()&&w.node().parentNode){var T=pa.getTranslate(w.node().parentNode);m.offsetLeft=T.x,m.offsetTop=T.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=i,NW.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:m,transform:v,attributes:{x:p,y:_,"text-anchor":"middle"}})}lr.shouldShowZeroLine=function(e,r,t){var n=Lr.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Gv)&&(AM(r,0)||!mX(e,r,t,n)||xX(e,r))};lr.clipEnds=function(e,r){return r.filter(function(t){return AM(e,t.x)})};function AM(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=HW:/%L/.test(r)?e>=UW:/%[SX]/.test(r)?e>=Hv:/%M/.test(r)?e>=Nf:/%[HI]/.test(r)?e>=Ii:/%p/.test(r)?e>=Ho:/%[Aadejuwx]/.test(r)?e>=On:/%[UVW]/.test(r)?e>=ga:/%[Bbm]/.test(r)?e>=Uv:/%[q]/.test(r)?e>=Bv:/%[Yy]/.test(r)?e>=Ov:!0}});var LM=pe((_ce,EM)=>{"use strict";EM.exports=function(r,t,n){var a,o;if(n){var i=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[i?1:0],o=n[i?0:1]}var l=r("autorangeoptions.minallowed",o===null?a:void 0),u=r("autorangeoptions.maxallowed",a===null?o:void 0);l===void 0&&r("autorangeoptions.clipmin"),u===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var v2=pe((wce,RM)=>{"use strict";var AX=LM();RM.exports=function(r,t,n,a){var o=t._template||{},i=t.type||o.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var u;!a.noInsiderange&&i!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(t.insiderange=!1,u=void 0),u&&(l=n("range",u)))}var s=t.getAutorangeDflt(l,a),f=n("autorange",s),v;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,v=!0),v||(s=t.getAutorangeDflt(l,a),f=n("autorange",s)),f&&(AX(n,f,l),(i==="linear"||i==="-")&&n("rangemode")),t.cleanRange()}});var PM=pe((Mce,DM)=>{var kX={left:0,top:0};DM.exports=SX;function SX(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,o=CX(r);return t[0]=n-o.left,t[1]=a-o.top,t}function CX(e){return e===window||e===document||e===document.body?kX:e.getBoundingClientRect()}});var Zv=pe((Tce,IM)=>{"use strict";var EX=Hp();function LX(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}IM.exports=EX&&LX()});var NM=pe((Ace,FM)=>{"use strict";FM.exports=function(r,t,n,a,o){var i=(r-n)/(a-n),l=i+t/(a-n),u=(i+l)/2;return o==="left"||o==="bottom"?i:o==="center"||o==="middle"?u:o==="right"||o==="top"?l:i<2/3-u?i:l>4/3-u?l:u}});var OM=pe((kce,qM)=>{"use strict";var zM=ir(),RX=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];qM.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=zM.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=zM.constrain(Math.floor(t*3),0,2),RX[t][r]}});var UM=pe((Sce,BM)=>{"use strict";var DX=wf(),PX=Kc(),IX=hf().getGraphDiv,FX=uf(),h2=BM.exports={};h2.wrapped=function(e,r,t){e=IX(e),e._fullLayout&&PX.clear(e._fullLayout._uid+FX.HOVERID),h2.raw(e,r,t)};h2.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&DX.triggerHandler(r,"plotly_beforehover",t)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}))}});var ni=pe((Cce,YM)=>{"use strict";var NX=PM(),d2=Gp(),zX=Zv(),qX=ir().removeElement,OX=wn(),Vl=YM.exports={};Vl.align=NM();Vl.getCursor=OM();var VM=UM();Vl.unhover=VM.wrapped;Vl.unhoverRaw=VM.raw;Vl.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,o=r.element,i,l,u,s,f,v,p,_;t._mouseDownTime||(t._mouseDownTime=0),o.style.pointerEvents="all",o.onmousedown=T,zX?(o._ontouchstart&&o.removeEventListener("touchstart",o._ontouchstart),o._ontouchstart=T,o.addEventListener("touchstart",T,{passive:!1})):o.ontouchstart=T;function m(S,x,M){return Math.abs(S)a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;v.target===p?x=v:(x={target:p,srcElement:p,toElement:p},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(M=>{var d=v[M];!x[M]&&typeof d!="function"&&(x[M]=d)})),r.clickFn&&r.clickFn(n,x),_||p.dispatchEvent(new MouseEvent("click",S))}t._dragging=!1,t._dragged=!1}};function GM(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}Vl.coverSlip=GM;function HM(e){return NX(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Vo=pe((Ece,WM)=>{"use strict";WM.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var JM=pe((Lce,ZM)=>{"use strict";var p2=Vo(),Bf="data-savedcursor",XM="!!";ZM.exports=function(r,t){var n=r.attr(Bf);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),o=0;o{"use strict";var g2=kn(),BX=Ti();KM.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:BX.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:g2({editType:"legend"}),grouptitlefont:g2({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:g2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Kv=pe(Jv=>{"use strict";Jv.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Jv.isVertical=function(r){return r.orientation!=="h"};Jv.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var b2=pe((Pce,QM)=>{"use strict";var m2=Er(),ya=ir(),UX=gt(),HX=Sn(),VX=y2(),GX=Ds(),x2=Kv();function YX(e,r,t,n){var a=r[e]||{},o=UX.newContainer(t,e);function i(I,L){return ya.coerce(a,o,VX,I,L)}var l=ya.coerceFont(i,"font",t.font);i("bgcolor",t.paper_bgcolor),i("bordercolor");var u=i("visible");if(u){for(var s,f=function(I,L){var P=s._input,O=s;return ya.coerce(P,O,HX,I,L)},v=t.font||{},p=ya.coerceFont(i,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),_=0,m=!1,w="normal",T=(t.shapes||[]).filter(function(I){return I.showlegend}),y=n.concat(T).filter(function(I){return e===(I.legend||"legend")}),k=0;k(e==="legend"?1:0));if(x===!1&&(t[e]=void 0),!(x===!1&&!a.uirevision)&&(i("uirevision",t.uirevision),x!==!1)){i("borderwidth");var M=i("orientation"),d=i("yref"),b=i("xref"),g=M==="h",c=d==="paper",A=b==="paper",h,R,E,D="left";g?(h=0,m2.getComponentMethod("rangeslider","isVisible")(r.xaxis)?c?(R=1.1,E="bottom"):(R=1,E="top"):c?(R=-.1,E="top"):(R=0,E="bottom")):(R=1,E="auto",A?h=1.02:(h=1,D="right")),ya.coerce(a,o,{x:{valType:"number",editType:"legend",min:A?-2:0,max:A?3:1,dflt:h}},"x"),ya.coerce(a,o,{y:{valType:"number",editType:"legend",min:c?-2:0,max:c?3:1,dflt:R}},"y"),i("traceorder",w),x2.isGrouped(t[e])&&i("tracegroupgap"),i("entrywidth"),i("entrywidthmode"),i("indentation"),i("itemsizing"),i("itemwidth"),i("itemclick"),i("itemdoubleclick"),i("groupclick"),i("xanchor",D),i("yanchor",E),i("maxheight"),i("valign"),ya.noneOrAll(a,o,["x","y"]);var N=i("title.text");if(N){i("title.side",g?"left":"top");var F=ya.extendFlat({},l,{size:ya.bigFont(l.size)});ya.coerceFont(i,"title.font",F)}}}}QM.exports=function(r,t,n){var a,o=n.slice(),i=t.shapes;if(i)for(a=0;a{"use strict";var nu=Er(),w2=ir(),WX=w2.pushUnique,_2=!0;$M.exports=function(r,t,n){var a=t._fullLayout;if(t._dragged||t._editing)return;var o=a.legend.itemclick,i=a.legend.itemdoubleclick,l=a.legend.groupclick;n===1&&o==="toggle"&&i==="toggleothers"&&_2&&t.data&&t._context.showTips&&w2.notifier(w2._(t,"Double-click on legend to isolate one trace"),"long"),_2=!1;var u;if(n===1?u=o:n===2&&(u=i),!u)return;var s=l==="togglegroup",f=a.hiddenlabels?a.hiddenlabels.slice():[],v=r.data()[0][0];if(v.groupTitle&&v.noClick)return;var p=t._fullData,_=(a.shapes||[]).filter(function(Te){return Te.showlegend}),m=p.concat(_),w=v.trace;w._isShape&&(w=w._fullInput);var T=w.legendgroup,y,k,S,x,M,d,b={},g=[],c=[],A=[];function h(Te,Ee){var Pe=g.indexOf(Te),Se=b.visible;return Se||(Se=b.visible=[]),g.indexOf(Te)===-1&&(g.push(Te),Pe=g.length-1),Se[Pe]=Ee,Pe}var R=(a.shapes||[]).map(function(Te){return Te._input}),E=!1;function D(Te,Ee){R[Te].visible=Ee,E=!0}function N(Te,Ee){if(!(v.groupTitle&&!s)){var Pe=Te._fullInput||Te,Se=Pe._isShape,Ne=Pe.index;Ne===void 0&&(Ne=Pe._index);var Be=Pe.visible===!1?!1:Ee;Se?D(Ne,Be):h(Ne,Be)}}var F=w.legend,I=w._fullInput,L=I&&I._isShape;if(!L&&nu.traceIs(w,"pie-like")){var P=v.label,O=f.indexOf(P);if(u==="toggle")O===-1?f.push(P):f.splice(O,1);else if(u==="toggleothers"){var U=O!==-1,X=[];for(y=0;y{"use strict";eT.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var nT=pe((Nce,tT)=>{"use strict";var rT=Er(),T2=Kv();tT.exports=function(r,t,n){var a=t._inHover,o=T2.isGrouped(t),i=T2.isReversed(t),l={},u=[],s=!1,f={},v=0,p=0,_,m;function w(I,L,P){if(t.visible!==!1&&!(n&&I!==t._id))if(L===""||!T2.isGrouped(t)){var O="~~i"+v;u.push(O),l[O]=[P],v++}else u.indexOf(L)===-1?(u.push(L),s=!0,l[L]=[P]):l[L].push(P)}for(_=0;_A&&(c=A)}b[_][0]._groupMinRank=c,b[_][0]._preGroupSort=_}var h=function(I,L){return I[0]._groupMinRank-L[0]._groupMinRank||I[0]._preGroupSort-L[0]._preGroupSort},R=function(I,L){return I.trace.legendrank-L.trace.legendrank||I._preSort-L._preSort};for(b.forEach(function(I,L){I[0]._preGroupSort=L}),b.sort(h),_=0;_{"use strict";var Qv=ir();function aT(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Gl.formatPiePercent=function(r,t){var n=aT((r*100).toPrecision(3));return Qv.numSeparate(n,t)+"%"};Gl.formatPieValue=function(r,t){var n=aT(r.toPrecision(10));return Qv.numSeparate(n,t)};Gl.getFirstFilled=function(r,t){if(Qv.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var XX=yt(),ZX=Zr();iT.exports=function(r,t,n,a){var o=n.marker.pattern;o&&o.shape?XX.pointStyle(r,n,a,t):ZX.fill(r,t.color)}});var fT=pe((Oce,uT)=>{"use strict";var lT=Zr(),sT=A2().castOption,JX=oT();uT.exports=function(r,t,n,a){var o=n.marker.line,i=sT(o.color,t.pts)||lT.defaultLine,l=sT(o.width,t.pts)||0;r.call(JX,t,n,a).style("stroke-width",l).call(lT.stroke,i)}});var E2=pe((Bce,gT)=>{"use strict";var Bn=ot(),k2=Er(),En=ir(),cT=En.strTranslate,ma=yt(),Pa=Zr(),S2=Si().extractOpts,$v=oa(),KX=fT(),QX=A2().castOption,$X=M2(),vT=12,hT=5,Yl=2,jX=10,au=5;gT.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var o=n.itemsizing==="constant",i=n.itemwidth,l=(i+$X.itemGap*2)/2,u=cT(l,0),s=function(b,g,c,A){var h;if(b+1)h=b;else if(g&&g.width>0)h=g.width;else return 0;return o?A:Math.min(h,c)};r.each(function(b){var g=Bn.select(this),c=En.ensureSingle(g,"g","layers");c.style("opacity",b[0].trace.opacity);var A=n.indentation,h=n.valign,R=b[0].lineHeight,E=b[0].height;if(h==="middle"&&A===0||!R||!E)c.attr("transform",null);else{var D={top:1,bottom:-1}[h],N=D*(.5*(R-E+3))||0,F=n.indentation;c.attr("transform",cT(F,N))}var I=c.selectAll("g.legendfill").data([b]);I.enter().append("g").classed("legendfill",!0);var L=c.selectAll("g.legendlines").data([b]);L.enter().append("g").classed("legendlines",!0);var P=c.selectAll("g.legendsymbols").data([b]);P.enter().append("g").classed("legendsymbols",!0),P.selectAll("g.legendpoints").data([b]).enter().append("g").classed("legendpoints",!0)}).each(d).each(p).each(m).each(_).each(T).each(x).each(S).each(f).each(v).each(y).each(k);function f(b){var g=dT(b),c=g.showFill,A=g.showLine,h=g.showGradientLine,R=g.showGradientFill,E=g.anyFill,D=g.anyLine,N=b[0],F=N.trace,I,L,P=S2(F),O=P.colorscale,U=P.reversescale,X=function(Q){if(Q.size())if(c)ma.fillGroupStyle(Q,t,!0);else{var ie="legendfill-"+F.uid;ma.gradient(Q,t,ie,C2(U),O,"fill")}},$=function(Q){if(Q.size()){var ie="legendline-"+F.uid;ma.lineGroupStyle(Q),ma.gradient(Q,t,ie,C2(U),O,"stroke")}},j=$v.hasMarkers(F)||!E?"M5,0":D?"M5,-2":"M5,-3",Y=Bn.select(this),q=Y.select(".legendfill").selectAll("path").data(c||R?[b]:[]);if(q.enter().append("path").classed("js-fill",!0),q.exit().remove(),q.attr("d",j+"h"+i+"v6h-"+i+"z").call(X),A||h){var K=s(void 0,F.line,jX,hT);L=En.minExtend(F,{line:{width:K}}),I=[En.minExtend(N,{trace:L})]}var ne=Y.select(".legendlines").selectAll("path").data(A||h?[I]:[]);ne.enter().append("path").classed("js-line",!0),ne.exit().remove(),ne.attr("d",j+(h?"l"+i+",0.0001":"h"+i)).call(A?ma.lineGroupStyle:$)}function v(b){var g=dT(b),c=g.anyFill,A=g.anyLine,h=g.showLine,R=g.showMarker,E=b[0],D=E.trace,N=!R&&!A&&!c&&$v.hasText(D),F,I;function L(q,K,ne,Q){var ie=En.nestedProperty(D,q).get(),ee=En.isArrayOrTypedArray(ie)&&K?K(ie):ie;if(o&&ee&&Q!==void 0&&(ee=Q),ne){if(eene[1])return ne[1]}return ee}function P(q){return E._distinct&&E.index&&q[E.index]?q[E.index]:q[0]}if(R||N||h){var O={},U={};if(R){O.mc=L("marker.color",P),O.mx=L("marker.symbol",P),O.mo=L("marker.opacity",En.mean,[.2,1]),O.mlc=L("marker.line.color",P),O.mlw=L("marker.line.width",En.mean,[0,5],Yl),U.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var X=L("marker.size",En.mean,[2,16],vT);O.ms=X,U.marker.size=X}h&&(U.line={width:L("line.width",P,[0,10],hT)}),N&&(O.tx="Aa",O.tp=L("textposition",P),O.ts=10,O.tc=L("textfont.color",P),O.tf=L("textfont.family",P),O.tw=L("textfont.weight",P),O.ty=L("textfont.style",P),O.tv=L("textfont.variant",P),O.tC=L("textfont.textcase",P),O.tE=L("textfont.lineposition",P),O.tS=L("textfont.shadow",P)),F=[En.minExtend(E,O)],I=En.minExtend(D,U),I.selectedpoints=null,I.texttemplate=null}var $=Bn.select(this).select("g.legendpoints"),j=$.selectAll("path.scatterpts").data(R?F:[]);j.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),j.exit().remove(),j.call(ma.pointStyle,I,t),R&&(F[0].mrc=3);var Y=$.selectAll("g.pointtext").data(N?F:[]);Y.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),Y.exit().remove(),Y.selectAll("text").call(ma.textPointStyle,I,t)}function p(b){var g=b[0].trace,c=g.type==="waterfall";if(b[0]._distinct&&c){var A=b[0].trace[b[0].dir].marker;return b[0].mc=A.color,b[0].mlw=A.line.width,b[0].mlc=A.line.color,w(b,this,"waterfall")}var h=[];g.visible&&c&&(h=b[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=Bn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(h);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(E){var D=Bn.select(this),N=g[E[0]].marker,F=s(void 0,N.line,au,Yl);D.attr("d",E[1]).style("stroke-width",F+"px").call(Pa.fill,N.color),F&&D.call(Pa.stroke,N.line.color)})}function _(b){w(b,this)}function m(b){w(b,this,"funnel")}function w(b,g,c){var A=b[0].trace,h=A.marker||{},R=h.line||{},E=h.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",D=c?A.visible&&A.type===c:k2.traceIs(A,"bar"),N=Bn.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(D?[b]:[]);N.enter().append("path").classed("legend"+c,!0).attr("d",E).attr("transform",u),N.exit().remove(),N.each(function(F){var I=Bn.select(this),L=F[0],P=s(L.mlw,h.line,au,Yl);I.style("stroke-width",P+"px");var O=L.mcc;if(!n._inHover&&"mc"in L){var U=S2(h),X=U.mid;X===void 0&&(X=(U.max+U.min)/2),O=ma.tryColorscale(h,"")(X)}var $=O||L.mc||h.color,j=h.pattern,Y=ma.getPatternAttr,q=j&&(Y(j.shape,0,"")||Y(j.path,0,""));if(q){var K=Y(j.bgcolor,0,null),ne=Y(j.fgcolor,0,null),Q=j.fgopacity,ie=pT(j.size,8,10),ee=pT(j.solidity,.5,1),V="legend-"+A.uid;I.call(ma.pattern,"legend",t,V,q,ie,ee,O,j.fillmode,K,ne,Q)}else I.call(Pa.fill,$);P&&Pa.stroke(I,L.mlc||R.color)})}function T(b){var g=b[0].trace,c=Bn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(g.visible&&k2.traceIs(g,"box-violin")?[b]:[]);c.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),c.exit().remove(),c.each(function(){var A=Bn.select(this);if((g.boxpoints==="all"||g.points==="all")&&Pa.opacity(g.fillcolor)===0&&Pa.opacity((g.line||{}).color)===0){var h=En.minExtend(g,{marker:{size:o?vT:En.constrain(g.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});c.call(ma.pointStyle,h,t)}else{var R=s(void 0,g.line,au,Yl);A.style("stroke-width",R+"px").call(Pa.fill,g.fillcolor),R&&Pa.stroke(A,g.line.color)}})}function y(b){var g=b[0].trace,c=Bn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(g.visible&&g.type==="candlestick"?[b,b]:[]);c.enter().append("path").classed("legendcandle",!0).attr("d",function(A,h){return h?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),c.exit().remove(),c.each(function(A,h){var R=Bn.select(this),E=g[h?"increasing":"decreasing"],D=s(void 0,E.line,au,Yl);R.style("stroke-width",D+"px").call(Pa.fill,E.fillcolor),D&&Pa.stroke(R,E.line.color)})}function k(b){var g=b[0].trace,c=Bn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(g.visible&&g.type==="ohlc"?[b,b]:[]);c.enter().append("path").classed("legendohlc",!0).attr("d",function(A,h){return h?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),c.exit().remove(),c.each(function(A,h){var R=Bn.select(this),E=g[h?"increasing":"decreasing"],D=s(void 0,E.line,au,Yl);R.style("fill","none").call(ma.dashLine,E.line.dash,D),D&&Pa.stroke(R,E.line.color)})}function S(b){M(b,this,"pie")}function x(b){M(b,this,"funnelarea")}function M(b,g,c){var A=b[0],h=A.trace,R=c?h.visible&&h.type===c:k2.traceIs(h,c),E=Bn.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(R?[b]:[]);if(E.enter().append("path").classed("legend"+c,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),E.exit().remove(),E.size()){var D=h.marker||{},N=s(QX(D.line.width,A.pts),D.line,au,Yl),F="pieLike",I=En.minExtend(h,{marker:{line:{width:N}}},F),L=En.minExtend(A,{trace:I},F);KX(E,L,I,t)}}function d(b){var g=b[0].trace,c,A=[];if(g.visible)switch(g.type){case"histogram2d":case"heatmap":A=[["M-15,-2V4H15V-2Z"]],c=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":A=[["M-6,-6V6H6V-6Z"]],c=!0;break;case"densitymapbox":case"densitymap":A=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],c="radial";break;case"cone":A=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],c=!1;break;case"streamtube":A=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],c=!1;break;case"surface":A=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],c=!0;break;case"mesh3d":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],c=!1;break;case"volume":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],c=!0;break;case"isosurface":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],c=!1;break}var h=Bn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(A);h.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),h.exit().remove(),h.each(function(R,E){var D=Bn.select(this),N=S2(g),F=N.colorscale,I=N.reversescale,L=function(X){if(X.size()){var $="legendfill-"+g.uid;ma.gradient(X,t,$,C2(I,c==="radial"),F,"fill")}},P;if(F){if(!c){var U=F.length;P=E===0?F[I?U-1:0][1]:E===1?F[I?0:U-1][1]:F[Math.floor((U-1)/2)][1]}}else{var O=g.vertexcolor||g.facecolor||g.color;P=En.isArrayOrTypedArray(O)?O[E]||O[0]:O}D.attr("d",R[0]),P?D.call(Pa.fill,P):D.call(L)})}};function C2(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function dT(e){var r=e[0].trace,t=r.contours,n=$v.hasLines(r),a=$v.hasMarkers(r),o=r.visible&&r.fill&&r.fill!=="none",i=!1,l=!1;if(t){var u=t.coloring;u==="lines"?i=!0:n=u==="none"||u==="heatmap"||t.showlines,t.type==="constraint"?o=t._operation!=="=":(u==="fill"||u==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:o,showGradientLine:i,showGradientFill:l,anyLine:n||i,anyFill:o||l}}function pT(e,r,t){return e&&En.isArrayOrTypedArray(e)?r:e>t?t:e}});var P2=pe((Uce,kT)=>{"use strict";var la=ot(),Zt=ir(),R2=ln(),lu=Er(),yT=wf(),L2=ni(),Jt=yt(),eh=Zr(),Wl=Wn(),mT=jM(),rn=M2(),D2=qn(),TT=D2.LINE_SPACING,ou=D2.FROM_TL,xT=D2.FROM_BR,bT=nT(),eZ=E2(),_T=Kv(),iu=1,rZ=/^legend[0-9]*$/;kT.exports=function(r,t){if(t)wT(r,t);else{var n=r._fullLayout,a=n._legends,o=n._infolayer.selectAll('[class^="legend"]');o.each(function(){var s=la.select(this),f=s.attr("class"),v=f.split(" ")[0];v.match(rZ)&&a.indexOf(v)===-1&&s.remove()});for(var i=0;i1)}var m=n.hiddenlabels||[];if(!l&&(!n.showlegend||!u.length))return i.selectAll("."+a).remove(),n._topdefs.select("#"+o).remove(),R2.autoMargin(e,a);var w=Zt.ensureSingle(i,"g",a,function(g){l||g.attr("pointer-events","all")}),T=Zt.ensureSingleById(n._topdefs,"clipPath",o,function(g){g.append("rect")}),y=Zt.ensureSingle(w,"rect","bg",function(g){g.attr("shape-rendering","crispEdges")});y.call(eh.stroke,t.bordercolor).call(eh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var k=Zt.ensureSingle(w,"g","scrollbox"),S=t.title;t._titleWidth=0,t._titleHeight=0;var x;S.text?(x=Zt.ensureSingle(k,"text",a+"titletext"),x.attr("text-anchor","start").call(Jt.font,S.font).text(S.text),rh(x,k,e,t,iu)):k.selectAll("."+a+"titletext").remove();var M=Zt.ensureSingle(w,"rect","scrollbar",function(g){g.attr(rn.scrollBarEnterAttrs).call(eh.fill,rn.scrollBarColor)}),d=k.selectAll("g.groups").data(u);d.enter().append("g").attr("class","groups"),d.exit().remove();var b=d.selectAll("g.traces").data(Zt.identity);b.enter().append("g").attr("class","traces"),b.exit().remove(),b.style("opacity",function(g){var c=g[0].trace;return lu.traceIs(c,"pie-like")?m.indexOf(g[0].label)!==-1?.5:1:c.visible==="legendonly"?.5:1}).each(function(){la.select(this).call(nZ,e,t)}).call(eZ,e,t).each(function(){l||la.select(this).call(aZ,e,a)}),Zt.syncOrAsync([R2.previousPromises,function(){return lZ(e,d,b,t)},function(){var g=n._size,c=t.borderwidth,A=t.xref==="paper",h=t.yref==="paper";if(S.text&&tZ(x,t,c),!l){var R,E;A?R=g.l+g.w*t.x-ou[th(t)]*t._width:R=n.width*t.x-ou[th(t)]*t._width,h?E=g.t+g.h*(1-t.y)-ou[nh(t)]*t._effHeight:E=n.height*(1-t.y)-ou[nh(t)]*t._effHeight;var D=sZ(e,a,R,E);if(D)return;if(n.margin.autoexpand){var N=R,F=E;R=A?Zt.constrain(R,0,n.width-t._width):N,E=h?Zt.constrain(E,0,n.height-t._effHeight):F,R!==N&&Zt.log("Constrain "+a+".x to make legend fit inside graph"),E!==F&&Zt.log("Constrain "+a+".y to make legend fit inside graph")}Jt.setTranslate(w,R,E)}if(M.on(".drag",null),w.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var I=t._effHeight;l&&(I=t._height),y.attr({width:t._width-c,height:I-c,x:c/2,y:c/2}),Jt.setTranslate(k,0,0),T.select("rect").attr({width:t._width-2*c,height:I-2*c,x:c,y:c}),Jt.setClipUrl(k,o,e),Jt.setRect(M,0,0,0,0),delete t._scrollY}else{var L=Math.max(rn.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),P=t._effHeight-L-2*rn.scrollBarMargin,O=t._height-t._effHeight,U=P/O,X=Math.min(t._scrollY||0,O);y.attr({width:t._width-2*c+rn.scrollBarWidth+rn.scrollBarMargin,height:t._effHeight-c,x:c/2,y:c/2}),T.select("rect").attr({width:t._width-2*c+rn.scrollBarWidth+rn.scrollBarMargin,height:t._effHeight-2*c,x:c,y:c+X}),Jt.setClipUrl(k,o,e),ie(X,L,U),w.on("wheel",function(){X=Zt.constrain(t._scrollY+la.event.deltaY/P*O,0,O),ie(X,L,U),X!==0&&X!==O&&la.event.preventDefault()});var $,j,Y,q=function(te,ue,de){var ke=(de-ue)/U+te;return Zt.constrain(ke,0,O)},K=function(te,ue,de){var ke=(ue-de)/U+te;return Zt.constrain(ke,0,O)},ne=la.behavior.drag().on("dragstart",function(){var te=la.event.sourceEvent;te.type==="touchstart"?$=te.changedTouches[0].clientY:$=te.clientY,Y=X}).on("drag",function(){var te=la.event.sourceEvent;te.buttons===2||te.ctrlKey||(te.type==="touchmove"?j=te.changedTouches[0].clientY:j=te.clientY,X=q(Y,$,j),ie(X,L,U))});M.call(ne);var Q=la.behavior.drag().on("dragstart",function(){var te=la.event.sourceEvent;te.type==="touchstart"&&($=te.changedTouches[0].clientY,Y=X)}).on("drag",function(){var te=la.event.sourceEvent;te.type==="touchmove"&&(j=te.changedTouches[0].clientY,X=K(Y,$,j),ie(X,L,U))});k.call(Q)}function ie(te,ue,de){t._scrollY=e._fullLayout[a]._scrollY=te,Jt.setTranslate(k,0,-te),Jt.setRect(M,t._width,rn.scrollBarMargin+te*de,rn.scrollBarWidth,ue),T.select("rect").attr("y",c+te)}if(e._context.edits.legendPosition){var ee,V,re,H;w.classed("cursor-move",!0),L2.init({element:w.node(),gd:e,prepFn:function(te){if(te.target!==M.node()){var ue=Jt.getTranslate(w);re=ue.x,H=ue.y}},moveFn:function(te,ue){if(re!==void 0&&H!==void 0){var de=re+te,ke=H+ue;Jt.setTranslate(w,de,ke),ee=L2.align(de,t._width,g.l,g.l+g.w,t.xanchor),V=L2.align(ke+t._height,-t._height,g.t+g.h,g.t,t.yanchor)}},doneFn:function(){if(ee!==void 0&&V!==void 0){var te={};te[a+".x"]=ee,te[a+".y"]=V,lu.call("_guiRelayout",e,te)}},clickFn:function(te,ue){var de=i.selectAll("g.traces").filter(function(){var ke=this.getBoundingClientRect();return ue.clientX>=ke.left&&ue.clientX<=ke.right&&ue.clientY>=ke.top&&ue.clientY<=ke.bottom});de.size()>0&&AT(e,w,de,te,ue)}})}}],e)}}function jv(e,r,t){var n=e[0],a=n.width,o=r.entrywidthmode,i=n.trace.legendwidth||r.entrywidth;return o==="fraction"?r._maxWidth*i:t+(i||a)}function AT(e,r,t,n,a){var o=t.data()[0][0].trace,i={event:a,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};o._group&&(i.group=o._group),lu.traceIs(o,"pie-like")&&(i.label=t.datum()[0].label);var l=yT.triggerHandler(e,"plotly_legendclick",i);if(n===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&mT(t,e,n)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var u=yT.triggerHandler(e,"plotly_legenddoubleclick",i);u!==!1&&l!==!1&&mT(t,e,n)}}function nZ(e,r,t){var n=ah(t),a=e.data()[0][0],o=a.trace,i=lu.traceIs(o,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!i,u=t._maxNameLength,s,f;a.groupTitle?(s=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?s=a.text:(s=i?a.label:o.name,o._meta&&(s=Zt.templateString(s,o._meta))));var v=Zt.ensureSingle(e,"text",n+"text");v.attr("text-anchor","start").call(Jt.font,f).text(l?MT(s,u):s);var p=t.indentation+t.itemwidth+rn.itemGap*2;Wl.positionText(v,p,0),l?v.call(Wl.makeEditable,{gd:r,text:s}).call(rh,e,r,t).on("edit",function(_){this.text(MT(_,u)).call(rh,e,r,t);var m=a.trace._fullInput||{},w={};return w.name=_,m._isShape?lu.call("_guiRelayout",r,"shapes["+o.index+"].name",w.name):lu.call("_guiRestyle",r,w,o.index)}):rh(v,e,r,t)}function MT(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function aZ(e,r,t){var n=r._context.doubleClickDelay,a,o=1,i=Zt.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(eh.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(i.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTimen&&(o=Math.max(o-1,1)),AT(r,l,e,o,la.event)}}))}function rh(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),Wl.convertToTspans(e,t,function(){iZ(r,t,n,a)})}function iZ(e,r,t,n){var a=e.data()[0][0];if(!t._inHover&&a&&!a.trace.showlegend){e.remove();return}var o=e.select("g[class*=math-group]"),i=o.node(),l=ah(t);t||(t=r._fullLayout[l]);var u=t.borderwidth,s;n===iu?s=t.title.font:a.groupTitle?s=a.groupTitle.font:s=t.font;var f=s.size*TT,v,p;if(i){var _=Jt.bBox(i);v=_.height,p=_.width,n===iu?Jt.setTranslate(o,u,u+v*.75):Jt.setTranslate(o,0,v*.25)}else{var m="."+l+(n===iu?"title":"")+"text",w=e.select(m),T=Wl.lineCount(w),y=w.node();if(v=f*T,p=y?Jt.bBox(y).width:0,n===iu)t.title.side==="left"&&(p+=rn.itemGap*2),Wl.positionText(w,u+rn.titlePad,u+f);else{var k=rn.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(k=rn.itemGap,p-=t.indentation+t.itemwidth),Wl.positionText(w,k,-f*((T-1)/2-.3))}}n===iu?(t._titleWidth=p,t._titleHeight=v):(a.lineHeight=f,a.height=Math.max(v,16)+3,a.width=p)}function oZ(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function lZ(e,r,t,n){var a=e._fullLayout,o=ah(n);n||(n=a[o]);var i=a._size,l=_T.isVertical(n),u=_T.isGrouped(n),s=n.entrywidthmode==="fraction",f=n.borderwidth,v=2*f,p=rn.itemGap,_=n.indentation+n.itemwidth+p*2,m=2*(f+p),w=nh(n),T=n.y<0||n.y===0&&w==="top",y=n.y>1||n.y===1&&w==="bottom",k=n.tracegroupgap,S={};let{orientation:x,yref:M}=n,{maxheight:d}=n,b=T||y||x!=="v"||M!=="paper";d||(d=b?.5:1);let g=b?a.height:i.h;n._maxHeight=Math.max(d>1?d:d*g,30);var c=0;n._width=0,n._height=0;var A=oZ(n);if(l)t.each(function(ie){var ee=ie[0].height;Jt.setTranslate(this,f+A[0],f+A[1]+n._height+ee/2+p),n._height+=ee,n._width=Math.max(n._width,ie[0].width)}),c=_+n._width,n._width+=p+_+v,n._height+=m,u&&(r.each(function(ie,ee){Jt.setTranslate(this,0,ee*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var h=th(n),R=n.x<0||n.x===0&&h==="right",E=n.x>1||n.x===1&&h==="left",D=y||T,N=a.width/2;n._maxWidth=Math.max(R?D&&h==="left"?i.l+i.w:N:E?D&&h==="right"?i.r+i.w:N:i.w,2*_);var F=0,I=0;t.each(function(ie){var ee=jv(ie,n,_);F=Math.max(F,ee),I+=ee}),c=null;var L=0;if(u){var P=0,O=0,U=0;r.each(function(){var ie=0,ee=0;la.select(this).selectAll("g.traces").each(function(re){var H=jv(re,n,_),te=re[0].height;Jt.setTranslate(this,A[0],A[1]+f+p+te/2+ee),ee+=te,ie=Math.max(ie,H),S[re[0].trace.legendgroup]=ie});var V=ie+p;O>0&&V+f+O>n._maxWidth?(L=Math.max(L,O),O=0,U+=P+k,P=ee):P=Math.max(P,ee),Jt.setTranslate(this,O,U),O+=V}),n._width=Math.max(L,O)+f,n._height=U+P+m}else{var X=t.size(),$=I+v+(X-1)*p=n._maxWidth&&(L=Math.max(L,K),Y=0,q+=j,n._height+=j,j=0),Jt.setTranslate(this,A[0]+f+Y,A[1]+f+q+ee/2+p),K=Y+V+p,Y+=re,j=Math.max(j,ee)}),$?(n._width=Y+v,n._height=j+m):(n._width=Math.max(L,K)+v,n._height+=j+m)}}n._width=Math.ceil(Math.max(n._width+A[0],n._titleWidth+2*(f+rn.titlePad))),n._height=Math.ceil(Math.max(n._height+A[1],n._titleHeight+2*(f+rn.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var ne=e._context.edits,Q=ne.legendText||ne.legendPosition;t.each(function(ie){var ee=la.select(this).select("."+o+"toggle"),V=ie[0].height,re=ie[0].trace.legendgroup,H=jv(ie,n,_);u&&re!==""&&(H=S[re]);var te=Q?_:c||H;!l&&!s&&(te+=p/2),Jt.setRect(ee,0,-V/2,te,V)})}function sZ(e,r,t,n){var a=e._fullLayout,o=a[r],i=th(o),l=nh(o),u=o.xref==="paper",s=o.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=o.y<.5?"b":"t",v=o.x<.5?"l":"r",p={r:a.width-t,l:t+o._width,b:a.height-n,t:n+o._effHeight};if(u&&s)return R2.autoMargin(e,r,{x:o.x,y:o.y,l:o._width*ou[i],r:o._width*xT[i],b:o._effHeight*xT[l],t:o._effHeight*ou[l]});u?e._fullLayout._reservedMargin[r][f]=p[f]:s||o.orientation==="v"?e._fullLayout._reservedMargin[r][v]=p[v]:e._fullLayout._reservedMargin[r][f]=p[f]}function th(e){return Zt.isRightAnchor(e)?"right":Zt.isCenterAnchor(e)?"center":"left"}function nh(e){return Zt.isBottomAnchor(e)?"bottom":Zt.isMiddleAnchor(e)?"middle":"top"}function ah(e){return e._id||"legend"}});var z2=pe(N2=>{"use strict";var Xl=ot(),ao=tt(),ST=Sa(),It=ir(),uZ=It.pushUnique,I2=It.strTranslate,fZ=It.strRotate,cZ=wf(),Ia=Wn(),vZ=JM(),Fi=yt(),un=Zr(),ih=ni(),Ni=Ct(),hZ=wn().zindexSeparator,uu=Er(),ai=to(),Zl=uf(),dZ=b2(),pZ=P2(),FT=Zl.YANGLE,F2=Math.PI*FT/180,gZ=1/Math.sin(F2),yZ=Math.cos(F2),mZ=Math.sin(F2),kt=Zl.HOVERARROWSIZE,$r=Zl.HOVERTEXTPAD,CT={box:!0,ohlc:!0,violin:!0,candlestick:!0},xZ={scatter:!0,scattergl:!0,splom:!0};function ET(e,r){return e.distance-r.distance}N2.hover=function(r,t,n,a){r=It.getGraphDiv(r);var o=t.target;It.throttle(r._fullLayout._uid+Zl.HOVERID,Zl.HOVERMINTIME,function(){bZ(r,t,n,a,o)})};N2.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,o=BT(a),i=UT(a),l=r.map(function(T){var y=T._x0||T.x0||T.x||0,k=T._x1||T.x1||T.x||0,S=T._y0||T.y0||T.y||0,x=T._y1||T.y1||T.y||0,M=T.eventData;if(M){var d=Math.min(y,k),b=Math.max(y,k),g=Math.min(S,x),c=Math.max(S,x),A=T.trace;if(uu.traceIs(A,"gl3d")){var h=a._fullLayout[A.scene]._scene.container,R=h.offsetLeft,E=h.offsetTop;d+=R,b+=R,g+=E,c+=E}M.bbox={x0:d+i,x1:b+i,y0:g+o,y1:c+o},t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:T.color||un.defaultLine,x0:T.x0||T.x||0,x1:T.x1||T.x||0,y0:T.y0||T.y||0,y1:T.y1||T.y||0,xLabel:T.xLabel,yLabel:T.yLabel,zLabel:T.zLabel,text:T.text,name:T.name,idealAlign:T.idealAlign,borderColor:T.borderColor,fontFamily:T.fontFamily,fontSize:T.fontSize,fontColor:T.fontColor,fontWeight:T.fontWeight,fontStyle:T.fontStyle,fontVariant:T.fontVariant,nameLength:T.nameLength,textAlign:T.textAlign,trace:T.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:T.hovertemplate||!1,hovertemplateLabels:T.hovertemplateLabels||!1,eventData:M}}),u=!1,s=zT(l,{gd:a,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||un.background,container:Xl.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels,v=5,p=0,_=0;f.sort(function(T,y){return T.y0-y.y0}).each(function(T,y){var k=T.y0-T.by/2;k-vb[0]._length||H<0||H>g[0]._length)return ih.unhoverRaw(e,r)}if(r.pointerX=re+b[0]._offset,r.pointerY=H+g[0]._offset,"xval"in r?F=ai.flat(o,r.xval):F=ai.p2c(b,re),"yval"in r?I=ai.flat(o,r.yval):I=ai.p2c(g,H),!ao(F[0])||!ao(I[0]))return It.warn("Fx.hover failed",r,e),ih.unhoverRaw(e,r)}var de=1/0;function ke(mr,ct){for(P=0;Pne&&(D.splice(0,ne),de=D[0].distance),v&&E!==0&&D.length===0){K.distance=E,K.index=!1;var Hr=U._module.hoverPoints(K,Y,q,"closest",{hoverLayer:l._hoverlayer});if(Hr&&(Hr=Hr.filter(function(at){return at.spikeDistance<=E})),Hr&&Hr.length){var Ot,Lt=Hr.filter(function(at){return at.xa.showspikes&&at.xa.spikesnap!=="hovered data"});if(Lt.length){var yn=Lt[0];ao(yn.x0)&&ao(yn.y0)&&(Ot=ve(yn),(!Q.vLinePoint||Q.vLinePoint.spikeDistance>Ot.spikeDistance)&&(Q.vLinePoint=Ot))}var Yt=Hr.filter(function(at){return at.ya.showspikes&&at.ya.spikesnap!=="hovered data"});if(Yt.length){var Rt=Yt[0];ao(Rt.x0)&&ao(Rt.y0)&&(Ot=ve(Rt),(!Q.hLinePoint||Q.hLinePoint.spikeDistance>Ot.spikeDistance)&&(Q.hLinePoint=Ot))}}}}}ke();function Ae(mr,ct,Cr){for(var Ur=null,xt=1/0,zr,Hr=0;Hr0&&Math.abs(mr.distance)he-1;Ue--)We(D[Ue]);D=ze,Se()}var Ge=e._hoverdata,_e=[],De=BT(e),Ke=UT(e);for(L=0;L1||D.length>1)||p==="closest"&&ie&&D.length>1,Mr=un.combine(l.plot_bgcolor||un.background,l.paper_bgcolor),Ar=zT(D,{gd:e,hovermode:p,rotateLabels:Sr,bgColor:Mr,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),nt=Ar.hoverLabels;if(ai.isUnifiedHover(p)||(wZ(nt,Sr,l,Ar.commonLabelBoundingBox),OT(nt,Sr,l._invScaleX,l._invScaleY)),a&&a.tagName){var Yr=uu.getComponentMethod("annotations","hasClickToShow")(e,_e);vZ(Xl.select(a),Yr?"pointer":"")}!a||n||!AZ(e,r,Ge)||(Ge&&e.emit("plotly_unhover",{event:r,points:Ge}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:b,yaxes:g,xvals:F,yvals:I}))}function NT(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var _Z=/([\s\S]*)<\/extra>/;function zT(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,o=r.rotateLabels,i=r.bgColor,l=r.container,u=r.outerContainer,s=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||Zl.HOVERFONT,v=r.fontSize||Zl.HOVERFONTSIZE,p=r.fontWeight||n.font.weight,_=r.fontStyle||n.font.style,m=r.fontVariant||n.font.variant,w=r.fontTextcase||n.font.textcase,T=r.fontLineposition||n.font.lineposition,y=r.fontShadow||n.font.shadow,k=e[0],S=k.xa,x=k.ya,M=a.charAt(0),d=M+"Label",b=k[d];if(b===void 0&&S.type==="multicategory")for(var g=0;gn.width-Ke&&(Ye=n.width-Ke),he.attr("d","M"+(Ge-Ye)+",0L"+(Ge-Ye+kt)+","+De+kt+"H"+Ke+"v"+De+($r*2+Ue.height)+"H"+-Ke+"V"+De+kt+"H"+(Ge-Ye-kt)+"Z"),Ge=Ye,P.minX=Ge-Ke,P.maxX=Ge+Ke,S.side==="top"?(P.minY=_e-($r*2+Ue.height),P.maxY=_e-$r):(P.minY=_e+$r,P.maxY=_e+($r*2+Ue.height))}else{var ar,se,J;x.side==="right"?(ar="start",se=1,J="",Ge=S._offset+S._length):(ar="end",se=-1,J="-",Ge=S._offset),_e=x._offset+(k.y0+k.y1)/2,ye.attr("text-anchor",ar),he.attr("d","M0,0L"+J+kt+","+kt+"V"+($r+Ue.height/2)+"h"+J+($r*2+Ue.width)+"V-"+($r+Ue.height/2)+"H"+J+kt+"V-"+kt+"Z"),P.minY=_e-($r+Ue.height/2),P.maxY=_e+($r+Ue.height/2),x.side==="right"?(P.minX=Ge+kt,P.maxX=Ge+kt+($r*2+Ue.width)):(P.minX=Ge-kt-($r*2+Ue.width),P.maxX=Ge-kt);var ae=Ue.height/2,Le=A-Ue.top-ae,He="clip"+n._uid+"commonlabel"+x._id,je;if(Ge=0?Me=Ne:Be+de=0?Me=Be:ge+de=0?me=Pe:Se+ke=0?me=Se:we+ke=0,(ce.idealAlign==="top"||!br)&&Sr?(J-=Le/2,ce.anchor="end"):br?(J+=Le/2,ce.anchor="start"):ce.anchor="middle",ce.crossPos=J;else{if(ce.pos=J,br=se+ae/2+ur<=h,Sr=se-ae/2-ur>=0,(ce.idealAlign==="left"||!br)&&Sr)se-=ae/2,ce.anchor="end";else if(br)se+=ae/2,ce.anchor="start";else{ce.anchor="middle";var Mr=ur/2,Ar=se+Mr-h,nt=se-Mr;Ar>0&&(se-=Ar),nt<0&&(se+=-nt)}ce.crossPos=se}_e.attr("text-anchor",ce.anchor),Ke&&De.attr("text-anchor",ce.anchor),he.attr("transform",I2(se,J)+(o?fZ(FT):""))}),{hoverLabels:Re,commonLabelBoundingBox:P}}function LT(e,r,t,n,a,o){var i="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=It.templateString(e.name,e.trace._meta)),i=PT(e.name,e.nameLength));var u=t.charAt(0),s=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[u+"Label"]===a?l=e[s+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),o&&l===""&&!e.hovertemplate&&(i===""&&o.remove(),l=i);var f=e.hovertemplate||!1;if(f){var v=e.hovertemplateLabels||e;e[u+"Label"]!==a&&(v[u+"other"]=v[u+"Val"],v[u+"otherLabel"]=v[u+"Label"]),l=It.hovertemplateString(f,v,n._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(_Z,function(p,_){return i=PT(_,e.nameLength),""})}return[l,i]}function wZ(e,r,t,n){var a=r?"xa":"ya",o=r?"ya":"xa",i=0,l=1,u=e.size(),s=new Array(u),f=0,v=n.minX,p=n.maxX,_=n.minY,m=n.maxY,w=function(F){return F*t._invScaleX},T=function(F){return F*t._invScaleY};e.each(function(F){var I=F[a],L=F[o],P=I._id.charAt(0)==="x",O=I.range;f===0&&O&&O[0]>O[1]!==P&&(l=-1);var U=0,X=P?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var $=qT(F,r),j=F.anchor,Y=j==="end"?-1:1,q,K;if(j==="middle")q=F.crossPos+(P?T($.y-F.by/2):w(F.bx/2+F.tx2width/2)),K=q+(P?T(F.by):w(F.bx));else if(P)q=F.crossPos+T(kt+$.y)-T(F.by/2-kt),K=q+T(F.by);else{var ne=w(Y*kt+$.x),Q=ne+w(Y*F.bx);q=F.crossPos+Math.min(ne,Q),K=F.crossPos+Math.max(ne,Q)}P?_!==void 0&&m!==void 0&&Math.min(K,m)-Math.max(q,_)>1&&(L.side==="left"?(U=L._mainLinePosition,X=t.width):X=L._mainLinePosition):v!==void 0&&p!==void 0&&Math.min(K,p)-Math.max(q,v)>1&&(L.side==="top"?(U=L._mainLinePosition,X=t.height):X=L._mainLinePosition)}s[f++]=[{datum:F,traceIndex:F.trace.index,dp:0,pos:F.pos,posref:F.posref,size:F.by*(P?gZ:1)/2,pmin:U,pmax:X}]}),s.sort(function(F,I){return F[0].posref-I[0].posref||l*(I[0].traceIndex-F[0].traceIndex)});var y,k,S,x,M,d,b;function g(F){var I=F[0],L=F[F.length-1];if(k=I.pmin-I.pos-I.dp+I.size,S=L.pos+L.dp+L.size-I.pmax,k>.01){for(M=F.length-1;M>=0;M--)F[M].dp+=k;y=!1}if(!(S<.01)){if(k<-.01){for(M=F.length-1;M>=0;M--)F[M].dp-=S;y=!1}if(y){var P=0;for(x=0;xI.pmax&&P++;for(x=F.length-1;x>=0&&!(P<=0);x--)d=F[x],d.pos>I.pmax-1&&(d.del=!0,P--);for(x=0;x=0;M--)F[M].dp-=S;for(x=F.length-1;x>=0&&!(P<=0);x--)d=F[x],d.pos+d.dp+d.size>I.pmax&&(d.del=!0,P--)}}}for(;!y&&i<=u;){for(i++,y=!0,x=0;x.01){for(M=A.length-1;M>=0;M--)A[M].dp+=k;for(c.push.apply(c,A),s.splice(x+1,1),b=0,M=c.length-1;M>=0;M--)b+=c[M].dp;for(S=b/c.length,M=c.length-1;M>=0;M--)c[M].dp-=S;y=!1}else x++}s.forEach(g)}for(x=s.length-1;x>=0;x--){var E=s[x];for(M=E.length-1;M>=0;M--){var D=E[M],N=D.datum;N.offset=D.dp,N.del=D.del}}}function qT(e,r){var t=0,n=e.offset;return r&&(n*=-mZ,t=e.offset*yZ),{x:t,y:n}}function MZ(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(kt+$r),n=t+r*(e.txwidth+$r),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+$r),{alignShift:r,textShiftX:t,text2ShiftX:n}}function OT(e,r,t,n){var a=function(i){return i*t},o=function(i){return i*n};e.each(function(i){var l=Xl.select(this);if(i.del)return l.remove();var u=l.select("text.nums"),s=i.anchor,f=s==="end"?-1:1,v=MZ(i),p=qT(i,r),_=p.x,m=p.y,w=s==="middle",T="hoverlabel"in i.trace?i.trace.hoverlabel.showarrow:!0,y;w?y="M-"+a(i.bx/2+i.tx2width/2)+","+o(m-i.by/2)+"h"+a(i.bx)+"v"+o(i.by)+"h-"+a(i.bx)+"Z":T?y="M0,0L"+a(f*kt+_)+","+o(kt+m)+"v"+o(i.by/2-kt)+"h"+a(f*i.bx)+"v-"+o(i.by)+"H"+a(f*kt+_)+"V"+o(m-kt)+"Z":y="M"+a(f*kt+_)+","+o(m-i.by/2)+"h"+a(f*i.bx)+"v"+o(i.by)+"h"+a(-f*i.bx)+"Z",l.select("path").attr("d",y);var k=_+v.textShiftX,S=m+i.ty0-i.by/2+$r,x=i.textAlign||"auto";x!=="auto"&&(x==="left"&&s!=="start"?(u.attr("text-anchor","start"),k=w?-i.bx/2-i.tx2width/2+$r:-i.bx-$r):x==="right"&&s!=="end"&&(u.attr("text-anchor","end"),k=w?i.bx/2-i.tx2width/2-$r:i.bx+$r)),u.call(Ia.positionText,a(k),o(S)),i.tx2width&&(l.select("text.name").call(Ia.positionText,a(v.text2ShiftX+v.alignShift*$r+_),o(m+i.ty0-i.by/2+$r)),l.select("rect").call(Fi.setRect,a(v.text2ShiftX+(v.alignShift-1)*i.tx2width/2+_),o(m-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function TZ(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],o=e.cd[t]||{};function i(p){return p||ao(p)&&p===0}var l=Array.isArray(t)?function(p,_){var m=It.castOption(a,t,p);return i(m)?m:It.extractOption({},n,"",_)}:function(p,_){return It.extractOption(o,n,p,_)};function u(p,_,m){var w=l(_,m);i(w)&&(e[p]=w)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=It.constrain(e.x0,0,e.xa._length),e.x1=It.constrain(e.x1,0,e.xa._length),e.y0=It.constrain(e.y0,0,e.ya._length),e.y1=It.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ni.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Ni.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var s=Ni.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+s+" / -"+Ni.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+s,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Ni.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ni.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function RT(e,r,t){var n=t.container,a=t.fullLayout,o=a._size,i=t.event,l=!!r.hLinePoint,u=!!r.vLinePoint,s,f;if(n.selectAll(".spikeline").remove(),!!(u||l)){var v=un.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var p=r.hLinePoint,_,m;s=p&&p.xa,f=p&&p.ya;var w=f.spikesnap;w==="cursor"?(_=i.pointerX,m=i.pointerY):(_=s._offset+p.x,m=f._offset+p.y);var T=ST.readability(p.color,v)<1.5?un.contrast(v):p.color,y=f.spikemode,k=f.spikethickness,S=f.spikecolor||T,x=Ni.getPxPosition(e,f),M,d;if(y.indexOf("toaxis")!==-1||y.indexOf("across")!==-1){if(y.indexOf("toaxis")!==-1&&(M=x,d=_),y.indexOf("across")!==-1){var b=f._counterDomainMin,g=f._counterDomainMax;f.anchor==="free"&&(b=Math.min(b,f.position),g=Math.max(g,f.position)),M=o.l+b*o.w,d=o.l+g*o.w}n.insert("line",":first-child").attr({x1:M,x2:d,y1:m,y2:m,"stroke-width":k,stroke:S,"stroke-dasharray":Fi.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:M,x2:d,y1:m,y2:m,"stroke-width":k+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}y.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?k:-k),cy:m,r:k,fill:S}).classed("spikeline",!0)}if(u){var c=r.vLinePoint,A,h;s=c&&c.xa,f=c&&c.ya;var R=s.spikesnap;R==="cursor"?(A=i.pointerX,h=i.pointerY):(A=s._offset+c.x,h=f._offset+c.y);var E=ST.readability(c.color,v)<1.5?un.contrast(v):c.color,D=s.spikemode,N=s.spikethickness,F=s.spikecolor||E,I=Ni.getPxPosition(e,s),L,P;if(D.indexOf("toaxis")!==-1||D.indexOf("across")!==-1){if(D.indexOf("toaxis")!==-1&&(L=I,P=h),D.indexOf("across")!==-1){var O=s._counterDomainMin,U=s._counterDomainMax;s.anchor==="free"&&(O=Math.min(O,s.position),U=Math.max(U,s.position)),L=o.t+(1-U)*o.h,P=o.t+(1-O)*o.h}n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:P,"stroke-width":N,stroke:F,"stroke-dasharray":Fi.dashStyle(s.spikedash,N)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:P,"stroke-width":N+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}D.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A,cy:I-(s.side!=="top"?N:-N),r:N,fill:F}).classed("spikeline",!0)}}}function AZ(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],o=e._hoverdata[n];if(a.curveNumber!==o.curveNumber||String(a.pointNumber)!==String(o.pointNumber)||String(a.pointNumbers)!==String(o.pointNumbers)||a.binNumber!==o.binNumber)return!0}return!1}function DT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function PT(e,r){return Ia.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function kZ(e,r){for(var t=r.charAt(0),n=[],a=[],o=[],i=0;i{"use strict";var SZ=ir(),CZ=Zr(),EZ=to().isUnifiedHover;HT.exports=function(r,t,n,a){a=a||{};var o=t.legend;function i(l){a.font[l]||(a.font[l]=o?t.legend.font[l]:t.font[l])}t&&EZ(t.hovermode)&&(a.font||(a.font={}),i("size"),i("family"),i("color"),i("weight"),i("style"),i("variant"),o?(a.bgcolor||(a.bgcolor=CZ.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),n("hoverlabel.showarrow",a.showarrow),SZ.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var GT=pe((Gce,VT)=>{"use strict";var LZ=ir(),RZ=oh(),DZ=_l();VT.exports=function(r,t){function n(a,o){return LZ.coerce(r,t,DZ,a,o)}RZ(r,t,n)}});var XT=pe((Yce,WT)=>{"use strict";var YT=ir(),PZ=Rc(),IZ=oh();WT.exports=function(r,t,n,a){function o(l,u){return YT.coerce(r,t,PZ,l,u)}var i=YT.extendFlat({},a.hoverlabel);t.hovertemplate&&(i.namelength=-1),IZ(r,t,o,i)}});var q2=pe((Wce,ZT)=>{"use strict";var FZ=ir(),NZ=_l();ZT.exports=function(r,t){function n(a,o){return t[a]!==void 0?t[a]:FZ.coerce(r,t,NZ,a,o)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var QT=pe((Xce,KT)=>{"use strict";var JT=ir(),zZ=_l(),qZ=q2(),OZ=oh();KT.exports=function(r,t){function n(f,v){return JT.coerce(r,t,zZ,f,v)}var a=qZ(r,t);a&&(n("hoverdistance"),n("spikedistance"));var o=n("dragmode");o==="select"&&n("selectdirection");var i=t._has("mapbox"),l=t._has("map"),u=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((i||l||u)&&s===1||(i||l)&&u&&s===2)&&(t.dragmode="pan"),OZ(r,t,n),JT.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var e9=pe((Zce,jT)=>{"use strict";var O2=ir(),$T=Er();jT.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(s){return function(f){return O2.coerceHoverinfo({hoverinfo:f},{_module:s._module},n)}}for(var o=0;o{"use strict";var UZ=Er(),HZ=z2().hover;r9.exports=function(r,t,n){var a=UZ.getComponentMethod("annotations","onClick")(r,r._hoverdata);n!==void 0&&HZ(r,t,n,!0);function o(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(a&&a.then?a.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var io=pe((Kce,i9)=>{"use strict";var VZ=ot(),lh=ir(),GZ=ni(),Uf=to(),n9=_l(),a9=z2();i9.exports={moduleType:"component",name:"fx",constants:uf(),schema:{layout:n9},attributes:Rc(),layoutAttributes:n9,supplyLayoutGlobalDefaults:GT(),supplyDefaults:XT(),supplyLayoutDefaults:QT(),calc:e9(),getDistanceFunction:Uf.getDistanceFunction,getClosest:Uf.getClosest,inbox:Uf.inbox,quadrature:Uf.quadrature,appendArrayPointValue:Uf.appendArrayPointValue,castHoverOption:WZ,castHoverinfo:XZ,hover:a9.hover,unhover:GZ.unhover,loneHover:a9.loneHover,loneUnhover:YZ,click:t9()};function YZ(e){var r=lh.isD3Selection(e)?e:VZ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function WZ(e,r,t){return lh.castOption(e,r,"hoverlabel."+t)}function XZ(e,r,t){function n(a){return lh.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return lh.castOption(e,t,"hoverinfo",n)}});var fu=pe(oo=>{"use strict";oo.selectMode=function(e){return e==="lasso"||e==="select"};oo.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};oo.openMode=function(e){return e==="drawline"||e==="drawopenpath"};oo.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};oo.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};oo.selectingOrDrawing=function(e){return oo.freeMode(e)||oo.rectMode(e)}});var sh=pe(($ce,o9)=>{"use strict";o9.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var uh=pe((jce,l9)=>{"use strict";l9.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var ch=pe((eve,s9)=>{"use strict";var fh=32;s9.exports={CIRCLE_SIDES:fh,i000:0,i090:fh/4,i180:fh/2,i270:fh/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var vh=pe((rve,f9)=>{"use strict";var ZZ=ir().strTranslate;function u9(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function JZ(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function KZ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return u9(e,t[r])}}function QZ(e){return ZZ(e.xaxis._offset,e.yaxis._offset)}f9.exports={p2r:u9,r2p:JZ,axValue:KZ,getTransform:QZ}});var Go=pe(lo=>{"use strict";var $Z=Sg(),h9=ch(),cu=h9.CIRCLE_SIDES,B2=h9.SQRT2,d9=vh(),c9=d9.p2r,v9=d9.r2p,jZ=[0,3,4,5,6,1,2],eJ=[0,3,4,1,2];lo.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&u{"use strict";var p9=en(),b9=fu(),rJ=b9.drawMode,tJ=b9.openMode,vu=ch(),g9=vu.i000,y9=vu.i090,m9=vu.i180,x9=vu.i270,nJ=vu.cos45,aJ=vu.sin45,_9=vh(),dh=_9.p2r,Yo=_9.r2p,iJ=Io(),oJ=iJ.clearOutline,ph=Go(),lJ=ph.readPaths,sJ=ph.writePaths,uJ=ph.ellipseOver,fJ=ph.fixDatesForPaths;function cJ(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,o=r.dragmode,i=(n.layout||{}).shapes||[];if(!rJ(o)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var vJ=fu(),hJ=vJ.selectMode,dJ=Io(),pJ=dJ.clearOutline,U2=Go(),gJ=U2.readPaths,yJ=U2.writePaths,mJ=U2.fixDatesForPaths;T9.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),o=t.gd,i=o._fullLayout.newselection,l=t.plotinfo,u=l.xaxis,s=l.yaxis,f=t.isActiveSelection,v=t.dragmode,p=(o.layout||{}).selections||[];if(!hJ(v)&&f!==void 0){var _=o._fullLayout._activeSelectionIndex;if(_{"use strict";A9.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Wo=pe(dn=>{"use strict";var Jl=Vf(),k9=ir(),yh=Ct();dn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};dn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};dn.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};dn.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};dn.extractPathCoords=function(e,r,t){var n=[],a=e.match(Jl.segmentRE);return a.forEach(function(o){var i=r[o.charAt(0)].drawn;if(i!==void 0){var l=o.substr(1).match(Jl.paramRE);if(!(!l||l.length_&&(w="X"),w});return s>_&&(m=m.replace(/[\s,]*X.*/,""),k9.log("Ignoring extra params in segment "+u)),f+m})}function Gf(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var G2=pe((lve,L9)=>{"use strict";var bJ=ir(),hu=Ct(),S9=Wn(),C9=yt(),_J=Go().readPaths,V2=Wo(),wJ=V2.getPathString,E9=Bc(),MJ=qn().FROM_TL;L9.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var o;if(n.label.texttemplate){var i={};if(n.type!=="path"){var l=hu.getFromId(r,n.xref),u=hu.getFromId(r,n.yref);for(var s in E9){var f=E9[s](n,l,u);f!==void 0&&(i[s]=f)}}o=bJ.texttemplateStringForShapes(n.label.texttemplate,{},r._fullLayout._d3locale,i)}else o=n.label.text;var v={"data-index":t},p=n.label.font,_={"data-notex":1},m=a.append("g").attr(v).classed("shape-label",!0),w=m.append("text").attr(_).classed("shape-label-text",!0).text(o),T,y,k,S;if(n.path){var x=wJ(r,n),M=_J(x,r);T=1/0,k=1/0,y=-1/0,S=-1/0;for(var d=0;d=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,o)}function AJ(e,r,t,n,a,o,i){var l=a.label.textposition,u=a.label.textangle,s=a.label.padding,f=a.type,v=Math.PI/180*o,p=Math.sin(v),_=Math.cos(v),m=a.label.xanchor,w=a.label.yanchor,T,y,k,S;if(f==="line"){l==="start"?(T=e,y=r):l==="end"?(T=t,y=n):(T=(e+t)/2,y=(r+n)/2),m==="auto"&&(l==="start"?u==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var kJ=ir(),SJ=kJ.strTranslate,R9=ni(),I9=fu(),CJ=I9.drawMode,F9=I9.selectMode,N9=Er(),D9=Zr(),xh=ch(),EJ=xh.i000,LJ=xh.i090,RJ=xh.i180,DJ=xh.i270,PJ=Io(),z9=PJ.clearOutlineControllers,W2=Go(),mh=W2.pointsOnRectangle,Y2=W2.pointsOnEllipse,IJ=W2.writePaths,FJ=gh().newShapes,NJ=gh().createShapeObj,zJ=H2(),qJ=G2();q9.exports=function e(r,t,n,a){a||(a=0);var o=n.gd;function i(){e(r,t,n,a++),(Y2(r[0])||n.hasText)&&l({redrawing:!0})}function l(I){var L={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,L=FJ(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,L=zJ(t,n),o._fullLayout._reselect=!0),Object.keys(L).length&&N9.call((I||{}).redrawing?"relayout":"_guiRelayout",o,L)}var u=o._fullLayout,s=u._zoomlayer,f=n.dragmode,v=CJ(f),p=F9(f);(v||p)&&(o._fullLayout._outlining=!0),z9(o),t.attr("d",IJ(r));var _,m,w,T,y;if(!a&&(n.isActiveShape||n.isActiveSelection)){y=OJ([],r);var k=s.append("g").attr("class","outline-controllers");A(k),F()}if(v&&n.hasText){var S=s.select(".label-temp"),x=NJ(t,n,n.dragmode);qJ(o,"label-temp",x,S)}function M(I){w=+I.srcElement.getAttribute("data-i"),T=+I.srcElement.getAttribute("data-j"),_[w][T].moveFn=d}function d(I,L){if(r.length){var P=y[w][T][1],O=y[w][T][2],U=r[w],X=U.length;if(mh(U)){var $=I,j=L;if(n.isActiveSelection){var Y=P9(U,T);Y[1]===U[T][1]?j=0:$=0}for(var q=0;q1&&!(I.length===2&&I[1][0]==="Z")&&(T===0&&(I[0][0]="M"),r[w]=I,i(),l())}}function c(I,L){if(I===2){w=+L.srcElement.getAttribute("data-i"),T=+L.srcElement.getAttribute("data-j");var P=r[w];!mh(P)&&!Y2(P)&&g()}}function A(I){_=[];for(var L=0;L{"use strict";var UJ=ot(),G9=Er(),O9=ir(),du=Ct(),HJ=Go().readPaths,VJ=bh(),wh=G2(),Y9=Io().clearOutlineControllers,X2=Zr(),J2=yt(),GJ=gt().arrayEditor,B9=ni(),U9=Vo(),Kl=Vf(),sa=Wo(),Z2=sa.getPathString;Z9.exports={draw:K2,drawOne:W9,eraseActiveShape:XJ,drawLabel:wh};function K2(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;ai&&Ee>l&&!Ae.shiftKey?B9.getCursor(Pe/Te,1-Se/Ee):"move";U9(r,Ne),K=Ne.split("-")[0]}}function ee(Ae){_h(e)||(u&&(y=U(t.xanchor)),s&&(k=X(t.yanchor)),t.type==="path"?h=t.path:(_=u?t.x0:U(t.x0),m=s?t.y0:X(t.y0),w=u?t.x1:U(t.x1),T=s?t.y1:X(t.y1)),_T?(S=m,b="y0",x=T,g="y1"):(S=T,b="y1",x=m,g="y0"),ie(Ae),ue(a,t),ke(r,t,e),q.moveFn=K==="move"?H:te,q.altKey=Ae.altKey)}function V(){_h(e)||(U9(r),de(a),X9(r,e,t),G9.call("_guiRelayout",e,o.getUpdateObj()))}function re(){_h(e)||de(a)}function H(Ae,ve){if(t.type==="path"){var Te=function(Se){return Se},Ee=Te,Pe=Te;u?p("xanchor",t.xanchor=$(y+Ae)):(Ee=function(Ne){return $(U(Ne)+Ae)},E&&E.type==="date"&&(Ee=sa.encodeDate(Ee))),s?p("yanchor",t.yanchor=j(k+ve)):(Pe=function(Ne){return j(X(Ne)+ve)},N&&N.type==="date"&&(Pe=sa.encodeDate(Pe))),p("path",t.path=H9(h,Ee,Pe))}else u?p("xanchor",t.xanchor=$(y+Ae)):(p("x0",t.x0=$(_+Ae)),p("x1",t.x1=$(w+Ae))),s?p("yanchor",t.yanchor=j(k+ve)):(p("y0",t.y0=j(m+ve)),p("y1",t.y1=j(T+ve)));r.attr("d",Z2(e,t)),ue(a,t),wh(e,n,t,R)}function te(Ae,ve){if(v){var Te=function(qe){return qe},Ee=Te,Pe=Te;u?p("xanchor",t.xanchor=$(y+Ae)):(Ee=function($e){return $(U($e)+Ae)},E&&E.type==="date"&&(Ee=sa.encodeDate(Ee))),s?p("yanchor",t.yanchor=j(k+ve)):(Pe=function($e){return j(X($e)+ve)},N&&N.type==="date"&&(Pe=sa.encodeDate(Pe))),p("path",t.path=H9(h,Ee,Pe))}else if(f){if(K==="resize-over-start-point"){var Se=_+Ae,Ne=s?m-ve:m+ve;p("x0",t.x0=u?Se:$(Se)),p("y0",t.y0=s?Ne:j(Ne))}else if(K==="resize-over-end-point"){var Be=w+Ae,ge=s?T-ve:T+ve;p("x1",t.x1=u?Be:$(Be)),p("y1",t.y1=s?ge:j(ge))}}else{var we=function(qe){return K.indexOf(qe)!==-1},Me=we("n"),me=we("s"),Re=we("w"),ce=we("e"),he=Me?S+ve:S,ye=me?x+ve:x,Ce=Re?M+Ae:M,ze=ce?d+Ae:d;s&&(Me&&(he=S-ve),me&&(ye=x-ve)),(!s&&ye-he>l||s&&he-ye>l)&&(p(b,t[b]=s?he:j(he)),p(g,t[g]=s?ye:j(ye))),ze-Ce>i&&(p(c,t[c]=u?Ce:$(Ce)),p(A,t[A]=u?ze:$(ze)))}r.attr("d",Z2(e,t)),ue(a,t),wh(e,n,t,R)}function ue(Ae,ve){(u||s)&&Te();function Te(){var Ee=ve.type!=="path",Pe=Ae.selectAll(".visual-cue").data([0]),Se=1;Pe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Se}).classed("visual-cue",!0);var Ne=U(u?ve.xanchor:O9.midRange(Ee?[ve.x0,ve.x1]:sa.extractPathCoords(ve.path,Kl.paramIsX))),Be=X(s?ve.yanchor:O9.midRange(Ee?[ve.y0,ve.y1]:sa.extractPathCoords(ve.path,Kl.paramIsY)));if(Ne=sa.roundPositionForSharpStrokeRendering(Ne,Se),Be=sa.roundPositionForSharpStrokeRendering(Be,Se),u&&s){var ge="M"+(Ne-1-Se)+","+(Be-1-Se)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Pe.attr("d",ge)}else if(u){var we="M"+(Ne-1-Se)+","+(Be-9-Se)+"v18 h2 v-18 Z";Pe.attr("d",we)}else{var Me="M"+(Ne-9-Se)+","+(Be-1-Se)+"h18 v2 h-18 Z";Pe.attr("d",Me)}}}function de(Ae){Ae.selectAll(".visual-cue").remove()}function ke(Ae,ve,Te){var Ee=ve.xref,Pe=ve.yref,Se=du.getFromId(Te,Ee),Ne=du.getFromId(Te,Pe),Be="";Ee!=="paper"&&!Se.autorange&&(Be+=Ee),Pe!=="paper"&&!Ne.autorange&&(Be+=Pe),J2.setClipUrl(Ae,Be?"clip"+Te._fullLayout._uid+Be:null,Te)}}function H9(e,r,t){return e.replace(Kl.segmentRE,function(n){var a=0,o=n.charAt(0),i=Kl.paramIsX[o],l=Kl.paramIsY[o],u=Kl.numParams[o],s=n.substr(1).replace(Kl.paramRE,function(f){return a>=u||(i[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return o+s})}function WJ(e,r){if(Mh(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){V9(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=V9,K2(e)}}}function V9(e){if(Mh(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(Y9(e),delete e._fullLayout._activeShapeIndex,K2(e))}}function XJ(e){if(Mh(e)){Y9(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Fa=Er(),J9=ln(),K9=en(),et=uh(),ZJ=Th().eraseActiveShape,Ah=ir(),Kr=Ah._,rt=nA.exports={};rt.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Kr(e,"Download plot as a PNG"):Kr(e,"Download plot")},icon:et.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};Ah.notifier(Kr(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Fa.call("downloadImage",e,t).then(function(n){Ah.notifier(Kr(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){Ah.notifier(Kr(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};rt.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Kr(e,"Edit in Chart Studio")},icon:et.disk,click:function(e){J9.sendDataToCloud(e)}};rt.editInChartStudio={name:"editInChartStudio",title:function(e){return Kr(e,"Edit in Chart Studio")},icon:et.pencil,click:function(e){J9.sendDataToCloud(e)}};rt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Kr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:et.zoombox,click:Un};rt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Kr(e,"Pan")},attr:"dragmode",val:"pan",icon:et.pan,click:Un};rt.select2d={name:"select2d",_cat:"select",title:function(e){return Kr(e,"Box Select")},attr:"dragmode",val:"select",icon:et.selectbox,click:Un};rt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Kr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:et.lasso,click:Un};rt.drawclosedpath={name:"drawclosedpath",title:function(e){return Kr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:et.drawclosedpath,click:Un};rt.drawopenpath={name:"drawopenpath",title:function(e){return Kr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:et.drawopenpath,click:Un};rt.drawline={name:"drawline",title:function(e){return Kr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:et.drawline,click:Un};rt.drawrect={name:"drawrect",title:function(e){return Kr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:et.drawrect,click:Un};rt.drawcircle={name:"drawcircle",title:function(e){return Kr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:et.drawcircle,click:Un};rt.eraseshape={name:"eraseshape",title:function(e){return Kr(e,"Erase active shape")},icon:et.eraseshape,click:ZJ};rt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Kr(e,"Zoom in")},attr:"zoom",val:"in",icon:et.zoom_plus,click:Un};rt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Kr(e,"Zoom out")},attr:"zoom",val:"out",icon:et.zoom_minus,click:Un};rt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Kr(e,"Autoscale")},attr:"zoom",val:"auto",icon:et.autoscale,click:Un};rt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Kr(e,"Reset axes")},attr:"zoom",val:"reset",icon:et.home,click:Un};rt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Kr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:et.tooltip_basic,gravity:"ne",click:Un};rt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Kr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:et.tooltip_compare,gravity:"ne",click:Un};function Un(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout,i={},l=K9.list(e,null,!0),u=o._cartesianSpikesEnabled,s,f;if(n==="zoom"){var v=a==="in"?.5:2,p=(1+v)/2,_=(1-v)/2,m,w;for(f=0;f{"use strict";var aA=j2(),QJ=Object.keys(aA),iA=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],oA=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(iA),gu=[],$J=function(e){if(oA.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();gu.indexOf(r)===-1&&gu.push(r),gu.indexOf(t)===-1&&gu.push(t)}};QJ.forEach(function(e){$J(aA[e])});gu.sort();lA.exports={DRAW_MODES:iA,backButtons:oA,foreButtons:gu}});var ry=pe((hve,sA)=>{"use strict";var vve=ey();sA.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var fA=pe((dve,uA)=>{"use strict";var jJ=ir(),Yf=Zr(),eK=gt(),rK=ry();uA.exports=function(r,t){var n=r.modebar||{},a=eK.newContainer(t,"modebar");function o(l,u){return jJ.coerce(n,a,rK,l,u)}o("orientation"),o("bgcolor",Yf.addOpacity(t.paper_bgcolor,.5));var i=Yf.contrast(Yf.rgb(t.modebar.bgcolor));o("color",Yf.addOpacity(i,.3)),o("activecolor",Yf.addOpacity(i,.7)),o("uirevision",t.uirevision),o("add"),o("remove")}});var dA=pe((pve,hA)=>{"use strict";var ty=ot(),tK=tt(),Sh=ir(),cA=uh(),nK=xc().version,aK=new DOMParser;function vA(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var zi=vA.prototype;zi.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var o=n.modebar,i="#"+a+" .modebar-group";document.querySelectorAll(i).forEach(function(v){v.style.backgroundColor=o.bgcolor});var l=!this.hasButtons(r),u=this.hasLogo!==t.displaylogo,s=this.locale!==t.locale;if(this.locale=t.locale,(l||u||s)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),Sh.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)};zi.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var o=a.name;if(!o)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(o)!==-1)throw new Error("button name '"+o+"' is taken");r.buttonsNames.push(o);var i=r.createButton(a);r.buttonElements.push(i),n.appendChild(i)}),r.element.appendChild(n)})};zi.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};zi.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(t.setAttribute("data-title",n),t.setAttribute("aria-label",n)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var o=e.click;if(typeof o!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&ty.select(t).classed("active",!0);var i=e.icon;return typeof i=="function"?t.appendChild(i()):t.appendChild(this.createIcon(i||cA.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};zi.createIcon=function(e){var r=tK(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var o=aK.parseFromString(e.svg,"application/xml");n=o.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};zi.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,o=n.getAttribute("data-attr"),i=n.getAttribute("data-toggle")==="true",l=ty.select(n),u=function(v,p){var _=r.modebar,m=v.querySelector(".icon path");m&&(p||v.matches(":hover")?m.style.fill=_.activecolor:m.style.fill=_.color)};if(i){if(o===t){var s=!l.classed("active");l.classed("active",s),u(n,s)}}else{var f=o===null?o:Sh.nestedProperty(r,o).get();l.classed("active",f===a),u(n,f===a)}})};zi.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var lK=en(),pA=oa(),ny=Er(),sK=to().isUnifiedHover,uK=dA(),Ch=j2(),fK=ey().DRAW_MODES,cK=ir().extendDeep;gA.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var o=n.modeBarButtons,i;Array.isArray(o)&&o.length?i=yK(o):!n.displayModeBar&&n.watermark?i=[]:i=vK(r),a?a.update(r,i):t._modeBar=uK(r,i)};function vK(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(L,P){if(typeof P=="string"){if(P.toLowerCase()===L.toLowerCase())return!0}else{var O=P.name,U=P._cat||P.name;if(O===L||U===L.toLowerCase())return!0}return!1}var o=r.modebar.add;typeof o=="string"&&(o=[o]);var i=r.modebar.remove;typeof i=="string"&&(i=[i]);var l=n.modeBarButtonsToAdd.concat(o.filter(function(L){for(var P=0;P1?(A=["toggleHover"],h=["resetViews"]):v?(c=["zoomInGeo","zoomOutGeo"],A=["hoverClosestGeo"],h=["resetGeo"]):f?(A=["hoverClosest3d"],h=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(c=["zoomInMapbox","zoomOutMapbox"],A=["toggleHover"],h=["resetViewMapbox"]):T?(c=["zoomInMap","zoomOutMap"],A=["toggleHover"],h=["resetViewMap"]):p?A=["hoverClosestPie"]:S?(A=["hoverClosestCartesian","hoverCompareCartesian"],h=["resetViewSankey"]):A=["toggleHover"],s&&A.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(pK(t)||M)&&(A=[]),s&&!x&&(c=["zoomIn2d","zoomOut2d","autoScale2d"],h[0]!=="resetViews"&&(h=["resetScale2d"])),f?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!x||m?R=["zoom2d","pan2d"]:w||T||v?R=["pan2d"]:y&&(R=["zoom2d"]),dK(t)&&R.push("select2d","lasso2d");var E=[],D=function(L){E.indexOf(L)===-1&&A.indexOf(L)!==-1&&E.push(L)};if(Array.isArray(l)){for(var N=[],F=0;F{"use strict";mA.exports={moduleType:"component",name:"modebar",layoutAttributes:ry(),supplyLayoutDefaults:fA(),manage:yA()}});var iy=pe((mve,xA)=>{"use strict";var mK=qn().FROM_BL;xA.exports=function(r,t,n){n===void 0&&(n=mK[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],o=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(o+(a[0]-o)*t),r.l2r(o+(a[1]-o)*t)],r.setScale()}});var Xf=pe(Wf=>{"use strict";var Ql=ir(),oy=$s(),ii=en().id2name,xK=Ra(),bA=iy(),bK=Dv(),_K=an().ALMOST_EQUAL,wK=qn().FROM_BL;Wf.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,o=r._axisConstraintGroups=[],i=r._axisMatchGroups=[],l,u,s,f,v,p,_,m;for(l=0;lo?t.substr(o):n.substr(a))+i}function TK(e,r){for(var t=r._size,n=t.h/t.w,a={},o=Object.keys(e),i=0;i_K*m&&!k)){for(o=0;oR&&OA&&(A=O);var X=(A-c)/(2*h);v/=X,c=u.l2r(c),A=u.l2r(A),u.range=u._input.range=d{"use strict";var Lh=ot(),Hn=Er(),xa=ln(),Na=ir(),uy=Wn(),fy=sh(),Zf=Zr(),yu=yt(),TA=Rf(),EA=ay(),Jf=Ct(),so=qn(),LA=Xf(),AK=LA.enforce,kK=LA.clean,AA=$s().doAutoRange,RA="start",SK="middle",DA="end",CK=wn().zindexSeparator;fn.layoutStyles=function(e){return Na.syncOrAsync([xa.doAutoMargin,LK],e)};function EK(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&o[0]r[0])return!0}return!1}function LK(e){var r=e._fullLayout,t=r._size,n=t.p,a=Jf.list(e,"",!0),o,i,l,u,s,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(yu.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),fn.drawMainTitle(e),EA.manage(e),!r._has("cartesian"))return xa.previousPromises(e);function v(ee,V,re){var H=ee._lw/2;if(ee._id.charAt(0)==="x"){if(V){if(re==="top")return V._offset-n-H}else return t.t+t.h*(1-(ee.position||0))+H%1;return V._offset+V._length+n+H}if(V){if(re==="right")return V._offset+V._length+n+H}else return t.l+t.w*(ee.position||0)+H%1;return V._offset-n-H}for(o=0;o0){IK(e,o,s,u),l.attr({x:i,y:o,"text-anchor":n,dy:CA(r.yanchor)}).call(uy.positionText,i,o);var f=(r.text.match(uy.BR_TAG_ALL)||[]).length;if(f){var v=so.LINE_SPACING*f+so.MID_SHIFT;r.y===0&&(v=-v),l.selectAll(".line").each(function(){var T=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",T)})}var p=Lh.select(e).selectAll(".gtitle-subtitle");if(p.node()){var _=l.node().getBBox(),m=_.y+_.height,w=m+TA.SUBTITLE_PADDING_EM*r.subtitle.font.size;p.attr({x:i,y:w,"text-anchor":n,dy:CA(r.yanchor)}).call(uy.positionText,i,w)}}}};function RK(e,r,t,n,a){var o=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,i=Na.isTopAnchor(r)?n:n-a,l=t==="b"?o-i:i;return Na.isTopAnchor(r)&&t==="t"||Na.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",i=e._fullLayout.margin[o],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=DK(o,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>i?l:0}function IK(e,r,t,n){var a="title.automargin",o=e._fullLayout.title,i=o.y>.5?"t":"b",l={x:o.x,y:o.y,t:0,b:0},u={};o.yref==="paper"&&RK(e,o,i,r,n)?l[i]=t:o.yref==="container"&&(u[i]=t,e._fullLayout._reservedMargin[a]=u),xa.allowAutoMargin(e,a),xa.autoMargin(e,a,l)}function FK(e,r){var t=e.title,n=e._size,a=0;switch(r===RA?a=t.pad.l:r===DA&&(a=-t.pad.r),t.xref){case"paper":return n.l+n.w*t.x+a;case"container":default:return e.width*t.x+a}}function NK(e,r){var t=e.title,n=e._size,a=0;if(r==="0em"||!r?a=-t.pad.b:r===so.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto")return n.t/2;switch(t.yref){case"paper":return n.t+n.h-n.h*t.y+a;case"container":default:return e.height-e.height*t.y+a}}function CA(e){return e==="top"?so.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":so.MID_SHIFT+"em"}function zK(e){var r=e.title,t=SK;return Na.isRightAnchor(r)?t=DA:Na.isLeftAnchor(r)&&(t=RA),t}function qK(e){var r=e.title,t="0em";return Na.isTopAnchor(r)?t=so.CAP_SHIFT+"em":Na.isMiddleAnchor(r)&&(t=so.MID_SHIFT+"em"),t}fn.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var OK=Go().readPaths,BK=bh(),PA=Io().clearOutlineControllers,cy=Zr(),IA=yt(),UK=gt().arrayEditor,FA=Wo(),HK=FA.getPathString;zA.exports={draw:Dh,drawOne:NA,activateLastSelection:YK};function Dh(e){var r=e._fullLayout;PA(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a=0;T--){var y=i.append("path").attr(u).style("opacity",T?.1:s).call(cy.stroke,v).call(cy.fill,f).call(IA.dashLine,T?"solid":_,T?4+p:p);if(VK(y,e,n),m){var k=UK(e.layout,"selections",n);y.style({cursor:"move"});var S={element:y.node(),plotinfo:a,gd:e,editHelpers:k,isActiveSelection:!0},x=OK(l,e);BK(x,y,S)}else y.style("pointer-events",T?"all":"none");w[T]=y}var M=w[0],d=w[1];d.node().addEventListener("click",function(){return GK(e,M)})}}function VK(e,r,t){var n=t.xref+t.yref;IA.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function GK(e,r){if(Ph(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){vy(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=vy,Dh(e)}}}function YK(e){if(Ph(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=vy,Dh(e)}}function vy(e){if(Ph(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(PA(e),delete e._fullLayout._activeSelectionIndex,Dh(e))}}});var OA=pe((wve,qA)=>{function WK(){var e,r=0,t=!1;function n(a,o){return e.list.push({type:a,data:o?JSON.parse(JSON.stringify(o)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,o){return n("check",{seg1:a,seg2:o})},segmentChop:function(a,o){return n("div_seg",{seg:a,pt:o}),n("chop",{seg:a,pt:o})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,o){return n("new_seg",{seg:a,primary:o})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,o,i){return n("temp_status",{seg:a,above:o,below:i})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,o,i){return n("status",{seg:a,above:o,below:i})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,o){return n("chain_rem_head",{index:a,pt:o})},chainRemoveTail:function(a,o){return n("chain_rem_tail",{index:a,pt:o})},chainNew:function(a,o){return n("chain_new",{pt1:a,pt2:o})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,o){return n("chain_add_head",{index:a,pt:o})},chainAddTail:function(a,o){return n("chain_add_tail",{index:a,pt:o})},chainConnect:function(a,o){return n("chain_con",{index1:a,index2:o})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,o){return n("chain_join",{index1:a,index2:o})},done:function(){return n("done")}},e}qA.exports=WK});var UA=pe((Mve,BA)=>{function XK(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var o=n[0],i=n[1],l=a[0],u=a[1],s=t[0],f=t[1];return(l-o)*(f-i)-(u-i)*(s-o)>=-e},pointBetween:function(t,n,a){var o=t[1]-n[1],i=a[0]-n[0],l=t[0]-n[0],u=a[1]-n[1],s=l*i+o*u;if(s-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])e!=l-o>e&&(i-f)*(o-v)/(l-v)+f-a>e&&(u=!u),i=f,l=v}return u}};return r}BA.exports=XK});var VA=pe((Tve,HA)=>{var ZK={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};HA.exports=ZK});var YA=pe((Ave,GA)=>{var Kf=VA();function JK(e,r,t){function n(m,w){return{id:t?t.segmentId():-1,start:m,end:w,myFill:{above:null,below:null},otherFill:null}}function a(m,w,T){return{id:t?t.segmentId():-1,start:m,end:w,myFill:{above:T.myFill.above,below:T.myFill.below},otherFill:null}}var o=Kf.create();function i(m,w,T,y,k,S){var x=r.pointsCompare(w,k);return x!==0?x:r.pointsSame(T,S)?0:m!==y?m?1:-1:r.pointAboveOrOnLine(T,y?k:S,y?S:k)?1:-1}function l(m,w){o.insertBefore(m,function(T){var y=i(m.isStart,m.pt,w,T.isStart,T.pt,T.other.pt);return y<0})}function u(m,w){var T=Kf.node({isStart:!0,pt:m.start,seg:m,primary:w,other:null,status:null});return l(T,m.end),T}function s(m,w,T){var y=Kf.node({isStart:!1,pt:w.end,seg:w,primary:T,other:m,status:null});m.other=y,l(y,m.pt)}function f(m,w){var T=u(m,w);return s(T,m,w),T}function v(m,w){t&&t.segmentChop(m.seg,w),m.other.remove(),m.seg.end=w,m.other.pt=w,l(m.other,m.pt)}function p(m,w){var T=a(w,m.seg.end,m.seg);return v(m,w),f(T,m.primary)}function _(m,w){var T=Kf.create();function y(N,F){var I=N.seg.start,L=N.seg.end,P=F.seg.start,O=F.seg.end;return r.pointsCollinear(I,P,O)?r.pointsCollinear(L,P,O)||r.pointAboveOrOnLine(L,P,O)?1:-1:r.pointAboveOrOnLine(I,P,O)?1:-1}function k(N){return T.findTransition(function(F){var I=y(N,F.ev);return I>0})}function S(N,F){var I=N.seg,L=F.seg,P=I.start,O=I.end,U=L.start,X=L.end;t&&t.checkIntersection(I,L);var $=r.linesIntersect(P,O,U,X);if($===!1){if(!r.pointsCollinear(P,O,U)||r.pointsSame(P,X)||r.pointsSame(O,U))return!1;var j=r.pointsSame(P,U),Y=r.pointsSame(O,X);if(j&&Y)return F;var q=!j&&r.pointBetween(P,U,X),K=!Y&&r.pointBetween(O,U,X);if(j)return K?p(F,O):p(N,X),F;q&&(Y||(K?p(F,O):p(N,X)),p(F,P))}else $.alongA===0&&($.alongB===-1?p(N,U):$.alongB===0?p(N,$.pt):$.alongB===1&&p(N,X)),$.alongB===0&&($.alongA===-1?p(F,P):$.alongA===0?p(F,$.pt):$.alongA===1&&p(F,O));return!1}for(var x=[];!o.isEmpty();){var M=o.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let N=function(){if(b){var F=S(M,b);if(F)return F}return g?S(M,g):!1};var D=N;t&&t.segmentNew(M.seg,M.primary);var d=k(M),b=d.before?d.before.ev:null,g=d.after?d.after.ev:null;t&&t.tempStatus(M.seg,b?b.seg:!1,g?g.seg:!1);var c=N();if(c){if(e){var A;M.seg.myFill.below===null?A=!0:A=M.seg.myFill.above!==M.seg.myFill.below,A&&(c.seg.myFill.above=!c.seg.myFill.above)}else c.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(c.seg),M.other.remove(),M.remove()}if(o.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var A;M.seg.myFill.below===null?A=!0:A=M.seg.myFill.above!==M.seg.myFill.below,g?M.seg.myFill.below=g.seg.myFill.above:M.seg.myFill.below=m,A?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var h;g?M.primary===g.primary?h=g.seg.otherFill.above:h=g.seg.myFill.above:h=M.primary?w:m,M.seg.otherFill={above:h,below:h}}t&&t.status(M.seg,b?b.seg:!1,g?g.seg:!1),M.other.status=d.insert(Kf.node({ev:M}))}else{var R=M.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(T.exists(R.prev)&&T.exists(R.next)&&S(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!M.primary){var E=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=E}x.push(M.seg)}o.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(m){for(var w,T=m[m.length-1],y=0;y{function KK(e,r,t){var n=[],a=[];return e.forEach(function(o){var i=o.start,l=o.end;if(r.pointsSame(i,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(o);var u={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},f=u;function v(D,N,F){return f.index=D,f.matches_head=N,f.matches_pt1=F,f===u?(f=s,!1):(f=null,!0)}for(var p=0;p{function Qf(e,r,t){var n=[];return e.forEach(function(a){var o=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[o]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[o]===1,below:r[o]===2},otherFill:null})}),t&&t.selected(n),n}var QK={union:function(e,r){return Qf(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Qf(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Qf(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Qf(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Qf(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};ZA.exports=QK});var QA=pe((Cve,KA)=>{var $K={toPolygon:function(e,r){function t(o){if(o.length<=0)return e.segments({inverted:!1,regions:[]});function i(s){var f=s.slice(0,s.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=i(o[0]),u=1;u{var jK=OA(),eQ=UA(),$A=YA(),rQ=XA(),$f=JA(),jA=QA(),za=!1,jf=eQ(),ua;ua={buildLog:function(e){return e===!0?za=jK():e===!1&&(za=!1),za===!1?!1:za.list},epsilon:function(e){return jf.epsilon(e)},segments:function(e){var r=$A(!0,jf,za);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=$A(!1,jf,za);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:$f.union(e.combined,za),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:$f.intersect(e.combined,za),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:$f.difference(e.combined,za),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:$f.differenceRev(e.combined,za),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:$f.xor(e.combined,za),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:rQ(e.segments,jf,za),inverted:e.inverted}},polygonFromGeoJSON:function(e){return jA.toPolygon(ua,e)},polygonToGeoJSON:function(e){return jA.fromPolygon(ua,jf,e)},union:function(e,r){return e0(e,r,ua.selectUnion)},intersect:function(e,r){return e0(e,r,ua.selectIntersect)},difference:function(e,r){return e0(e,r,ua.selectDifference)},differenceRev:function(e,r){return e0(e,r,ua.selectDifferenceRev)},xor:function(e,r){return e0(e,r,ua.selectXor)}};function e0(e,r,t){var n=ua.segments(e),a=ua.segments(r),o=ua.combine(n,a),i=t(o);return ua.polygon(i)}typeof window=="object"&&(window.PolyBool=ua);ek.exports=ua});var nk=pe((Lve,tk)=>{tk.exports=function(r,t,n,a){var o=r[0],i=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var u=a-n,s=0,f=u-1;si!=m>i&&o<(_-v)*(i-p)/(m-p)+v;w&&(l=!l)}return l}});var py=pe((Rve,ak)=>{"use strict";var dy=zc().dot,Ih=an().BADNUM,Fh=ak.exports={};Fh.tester=function(r){var t=r.slice(),n=t[0][0],a=n,o=t[0][1],i=o,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;la||y===Ih||yi||w&&s(m))}function v(m,w){var T=m[0],y=m[1];if(T===Ih||Ta||y===Ih||yi)return!1;var k=t.length,S=t[0][0],x=t[0][1],M=0,d,b,g,c,A;for(d=1;dMath.max(b,S)||y>Math.max(g,x)))if(yl||Math.abs(dy(v,s))>a)return!0;return!1};Fh.filter=function(r,t){var n=[r[0]],a=0,o=0;function i(u){r.push(u);var s=n.length,f=a;n.splice(o+1);for(var v=f+1;v1){var l=r.pop();i(l)}return{addPt:i,raw:r,filtered:n}}});var ok=pe((Dve,ik)=>{"use strict";ik.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Ck=pe((Pve,Sk)=>{"use strict";var lk=rk(),tQ=nk(),n0=Er(),nQ=yt().dashStyle,r0=Zr(),aQ=io(),iQ=to().makeEventData,s0=fu(),oQ=s0.freeMode,lQ=s0.rectMode,a0=s0.drawMode,xy=s0.openMode,by=s0.selectMode,sk=Wo(),uk=Vf(),dk=bh(),pk=Io().clearOutline,gk=Go(),gy=gk.handleEllipse,sQ=gk.readPaths,uQ=gh().newShapes,fQ=H2(),cQ=hy().activateLastSelection,zh=ir(),vQ=zh.sorterAsc,yk=py(),t0=Kc(),qa=en().getFromId,hQ=sh(),dQ=Rh().redrawReglTraces,qh=ok(),qi=qh.MINSELECT,pQ=yk.filter,_y=yk.tester,wy=vh(),fk=wy.p2r,gQ=wy.axValue,yQ=wy.getTransform;function My(e){return e.subplot!==void 0}function mQ(e,r,t,n,a){var o=!My(n),i=oQ(a),l=lQ(a),u=xy(a),s=a0(a),f=by(a),v=a==="drawline",p=a==="drawcircle",_=v||p,m=n.gd,w=m._fullLayout,T=f&&w.newselection.mode==="immediate"&&o,y=w._zoomlayer,k=n.element.getBoundingClientRect(),S=n.plotinfo,x=yQ(S),M=r-k.left,d=t-k.top;w._calcInverseTransform(m);var b=zh.apply3DTransform(w._invTransform)(M,d);M=b[0],d=b[1];var g=w._invScaleX,c=w._invScaleY,A=M,h=d,R="M"+M+","+d,E=n.xaxes[0],D=n.yaxes[0],N=E._length,F=D._length,I=e.altKey&&!(a0(a)&&u),L,P,O,U,X,$,j;xk(e,m,n),i&&(L=pQ([[M,d]],qh.BENDPX));var Y=y.selectAll("path.select-outline-"+S.id).data([1]),q=s?w.newshape:w.newselection;s&&(n.hasText=q.label.text||q.label.texttemplate);var K=s&&!u?q.fillcolor:"rgba(0,0,0,0)",ne=q.line.color||(o?r0.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Y.enter().append("path").attr("class","select-outline select-outline-"+S.id).style({opacity:s?q.opacity/2:1,"stroke-dasharray":nQ(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(r0.stroke,ne).call(r0.fill,K).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",x).attr("d",R+"Z");var Q=y.append("path").attr("class","zoombox-corners").style({fill:r0.background,stroke:r0.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(s&&n.hasText){var ie=y.select(".label-temp");ie.empty()&&(ie=y.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ee=w._uid+qh.SELECTID,V=[],re=Oh(m,n.xaxes,n.yaxes,n.subplot);T&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(o){var te=E._id,ue=D._id;Tk(m,te,ue,re);for(var de=(m.layout||{}).selections||[],ke=[],Ae=!1,ve=0;ve=0){m._fullLayout._deactivateShape(m);return}if(!s){var de=w.clickmode;t0.done(ee).then(function(){if(t0.clear(ee),te===2){for(Y.remove(),X=0;X-1&&mk(ue,m,n.xaxes,n.yaxes,n.subplot,n,Y),de==="event"&&l0(m,void 0);aQ.click(m,ue,S.id)}).catch(zh.error)}},n.doneFn=function(){Q.remove(),t0.done(ee).then(function(){t0.clear(ee),!T&&U&&n.selectionDefs&&(U.subtract=I,n.selectionDefs.push(U),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,O)),(T||s)&&i0(n,T),n.doneFnCompleted&&n.doneFnCompleted(V),f&&l0(m,j)}).catch(zh.error)}}function mk(e,r,t,n,a,o,i){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,v=[],p,_,m,w,T,y,k,S,x,M;if(MQ(l)){xk(e,r,o),p=Oh(r,t,n,a);var d=TQ(l,p),b=d.pointNumbers.length>0;if(b?AQ(p,d):kQ(p)&&(k=vk(d))){for(i&&i.remove(),M=0;M=0}function wQ(e){return e._fullLayout._activeSelectionIndex>=0}function i0(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;_Q(a)&&a._fullLayout._deactivateShape(a),wQ(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout,i=o._zoomlayer,l=a0(t),u=by(t);if(l||u){var s=i.selectAll(".select-outline-"+n.id);if(s&&a._fullLayout._outlining){var f;l&&(f=uQ(s,e)),f&&n0.call("_guiRelayout",a,{shapes:f});var v;u&&!My(e)&&(v=fQ(s,e)),v&&(a._fullLayout._noEmitSelectedAtStart=!0,n0.call("_guiRelayout",a,{selections:v}).then(function(){r&&cQ(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function ck(e){return e._id}function Oh(e,r,t,n){if(!e.calcdata)return[];var a=[],o=r.map(ck),i=t.map(ck),l,u,s;for(s=0;s0,o=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(o)>-1:!1}function AQ(e,r){var t=[],n,a,o,i;for(i=0;i0&&t.push(n);if(t.length===1&&(o=t[0]===r.searchInfo,o&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(i=0;i1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function o0(e,r,t){var n;for(n=0;n-1&&r;if(!i&&r){var te=hk(e,!0);if(te.length){var ue=te[0].xref,de=te[0].yref;if(ue&&de){var ke=Ak(te),Ae=kk([qa(e,ue,"x"),qa(e,de,"y")]);Ae(V,ke)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:H&&l0(e,V),p._reselect=!1}if(!i&&p._deselect){var ve=p._deselect;l=ve.xref,u=ve.yref,EQ(l,u,f)||Tk(e,l,u,n),H&&(V.points.length?l0(e,V):ky(e)),p._deselect=!1}return{eventData:V,selectionTesters:t}}function CQ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";Ek.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var u0=pe((Fve,Lk)=>{"use strict";Lk.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var mu=pe((zve,Pk)=>{"use strict";var Rk=Sy(),Dk=kn(),Bh=wn(),IQ=gt().templatedArray,Nve=u0();Pk.exports=IQ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Dk({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Rk.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Rk.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Bh.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Bh.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Bh.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Bh.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Dk({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Uh=pe((qve,Ik)=>{"use strict";Ik.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Nk=pe((Ove,Fk)=>{"use strict";Fk.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var $l=pe((Bve,Hk)=>{"use strict";var zk=ro().axisHoverFormat,FQ=ha().texttemplateAttrs,NQ=ha().hovertemplateAttrs,qk=ei(),zQ=kn(),qQ=Ao().dash,OQ=Ao().pattern,BQ=yt(),UQ=Uh(),Hh=Mt().extendFlat,HQ=Nk();function Ok(e){return{valType:"any",dflt:0,editType:"calc"}}function Bk(e){return{valType:"any",editType:"calc"}}function Uk(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Hk.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Ok("x"),yperiod:Ok("y"),xperiod0:Bk("x0"),yperiod0:Bk("y0"),xperiodalignment:Uk("x"),yperiodalignment:Uk("y"),xhoverformat:zk("x"),yhoverformat:zk("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:FQ({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:NQ({},{keys:UQ.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Hh({},qQ,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:HQ(!0),fillgradient:Hh({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:OQ,marker:Hh({symbol:{valType:"enumerated",values:BQ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Hh({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},qk("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},qk("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:zQ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var Cy=pe((Hve,Yk)=>{"use strict";var Vk=mu(),Gk=$l().line,VQ=Ao().dash,Vh=Mt().extendFlat,GQ=zn().overrideAll,YQ=gt().templatedArray,Uve=u0();Yk.exports=GQ(YQ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Vh({},Vk.xref,{}),yref:Vh({},Vk.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:Gk.color,width:Vh({},Gk.width,{min:1,dflt:1}),dash:Vh({},VQ,{dflt:"dot"})}}),"arraydraw","from-root")});var Jk=pe((Vve,Zk)=>{"use strict";var Wk=ir(),Gh=Ct(),WQ=ri(),XQ=Cy(),Xk=Wo();Zk.exports=function(r,t){WQ(r,t,{name:"selections",handleItemDefaults:ZQ});for(var n=t.selections,a=0;a{"use strict";Kk.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var f0=pe((Yve,eS)=>{"use strict";var JQ=Er(),$k=ir(),jk=en();eS.exports=function(r){return function(n,a){var o=n[r];if(Array.isArray(o))for(var i=JQ.subplotsRegistry.cartesian,l=i.idRegex,u=a._subplots,s=u.xaxis,f=u.yaxis,v=u.cartesian,p=a._has("cartesian"),_=0;_{"use strict";var rS=hy(),c0=Ck();tS.exports={moduleType:"component",name:"selections",layoutAttributes:Cy(),supplyLayoutDefaults:Jk(),supplyDrawNewSelectionDefaults:Qk(),includeBasePlot:f0()("selections"),draw:rS.draw,drawOne:rS.drawOne,reselect:c0.reselect,prepSelect:c0.prepSelect,clearOutline:c0.clearOutline,clearSelectionsCache:c0.clearSelectionsCache,selectOnClick:c0.selectOnClick}});var MS=pe((Xve,wS)=>{"use strict";var Py=ot(),Oa=ir(),nS=Oa.numberFormat,KQ=Sa(),QQ=Zv(),Yh=Er(),vS=Oa.strTranslate,$Q=Wn(),aS=Zr(),Zo=yt(),jQ=io(),iS=Ct(),e$=Vo(),r$=ni(),hS=fu(),Wh=hS.selectingOrDrawing,t$=hS.freeMode,n$=qn().FROM_TL,a$=sh(),i$=Rh().redrawReglTraces,o$=ln(),Ly=en().getFromId,l$=xu().prepSelect,s$=xu().clearOutline,u$=xu().selectOnClick,Ey=iy(),Iy=wn(),oS=Iy.MINDRAG,Xn=Iy.MINZOOM,lS=!0;function f$(e,r,t,n,a,o,i,l){var u=e._fullLayout._zoomlayer,s=i+l==="nsew",f=(i+l).length===1,v,p,_,m,w,T,y,k,S,x,M,d,b,g,c,A,h,R,E,D,N,F,I;t+=r.yaxis._shift;function L(){if(v=r.xaxis,p=r.yaxis,S=v._length,x=p._length,y=v._offset,k=p._offset,_={},_[v._id]=v,m={},m[p._id]=p,i&&l)for(var ce=r.overlays,he=0;he=0){ye._fullLayout._deactivateShape(ye);return}var Ce=ye._fullLayout.clickmode;if(Dy(ye),ce===2&&!f&&Be(),s)Ce.indexOf("select")>-1&&u$(he,ye,w,T,r.id,U),Ce.indexOf("event")>-1&&jQ.click(ye,he,r.id);else if(ce===1&&f){var ze=i?p:v,qe=i==="s"||l==="w"?0:1,$e=ze._name+".range["+qe+"]",We=c$(ze,qe),Ue="left",Ge="middle";if(ze.fixedrange)return;i?(Ge=i==="n"?"top":"bottom",ze.side==="right"&&(Ue="right")):l==="e"&&(Ue="right"),ye._context.showAxisRangeEntryBoxes&&Py.select(O).call($Q.makeEditable,{gd:ye,immediate:!0,background:ye._fullLayout.paper_bgcolor,text:String(We),fill:ze.tickfont?ze.tickfont.color:"#444",horizontalAlign:Ue,verticalAlign:Ge}).on("edit",function(_e){var De=ze.d2r(_e);De!==void 0&&Yh.call("_guiRelayout",ye,$e,De)})}}r$.init(U);var j,Y,q,K,ne,Q,ie,ee,V,re;function H(ce,he,ye){var Ce=O.getBoundingClientRect();j=he-Ce.left,Y=ye-Ce.top,e._fullLayout._calcInverseTransform(e);var ze=Oa.apply3DTransform(e._fullLayout._invTransform)(j,Y);j=ze[0],Y=ze[1],q={l:j,r:j,w:0,t:Y,b:Y,h:0},K=e._hmpixcount?e._hmlumcount/e._hmpixcount:KQ(e._fullLayout.plot_bgcolor).getLuminance(),ne="M0,0H"+S+"V"+x+"H0V0",Q=!1,ie="xy",re=!1,ee=gS(u,K,y,k,ne),V=yS(u,y,k)}function te(ce,he){if(e._transitioningWithDuration)return!1;var ye=Math.max(0,Math.min(S,F*ce+j)),Ce=Math.max(0,Math.min(x,I*he+Y)),ze=Math.abs(ye-j),qe=Math.abs(Ce-Y);q.l=Math.min(j,ye),q.r=Math.max(j,ye),q.t=Math.min(Y,Ce),q.b=Math.max(Y,Ce);function $e(){ie="",q.r=q.l,q.t=q.b,V.attr("d","M0,0Z")}if(M.isSubplotConstrained)ze>Xn||qe>Xn?(ie="xy",ze/S>qe/x?(qe=ze*x/S,Y>Ce?q.t=Y-qe:q.b=Y+qe):(ze=qe*S/x,j>ye?q.l=j-ze:q.r=j+ze),V.attr("d",Xh(q))):$e();else if(d.isSubplotConstrained)if(ze>Xn||qe>Xn){ie="xy";var We=Math.min(q.l/S,(x-q.b)/x),Ue=Math.max(q.r/S,(x-q.t)/x);q.l=We*S,q.r=Ue*S,q.b=(1-We)*x,q.t=(1-Ue)*x,V.attr("d",Xh(q))}else $e();else!g||qe0){var _e;if(d.isSubplotConstrained||!b&&g.length===1){for(_e=0;_e1&&($e.maxallowed!==void 0&&A===($e.range[0]<$e.range[1]?"e":"w")||$e.minallowed!==void 0&&A===($e.range[0]<$e.range[1]?"w":"e"))&&(ar=1,J=0),Ye?(se=De,ae=i||d.isSubplotConstrained?ce[1]:Re(We,se)):d.yaHash[We._id]?(se=De,ae=ce[1]*We._length/p._length):d.xaHash[We._id]?(se=_e,ae=b==="ew"?-ce[0]*We._length/v._length:Re(We,se,{e:"right",w:"left"}[b])):(se=Me(We,_e,De),ae=me(We,se)),se>1&&(We.maxallowed!==void 0&&h===(We.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function h$(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function gS(e,r,t,n,a){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",vS(t,n)).attr("d",a+"Z")}function yS(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:aS.background,stroke:aS.defaultLine,"stroke-width":1,opacity:0}).attr("transform",vS(r,t)).attr("d","M0,0Z")}function mS(e,r,t,n,a,o){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),xS(e,r,a,o)}function xS(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function Dy(e){Py.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function bS(e){lS&&e.data&&e._context.showTips&&(Oa.notifier(Oa._(e,"Double-click to zoom back out"),"long"),lS=!1)}function d$(e,r){return"M"+(e.l-.5)+","+(r-Xn-.5)+"h-3v"+(2*Xn+1)+"h3ZM"+(e.r+.5)+","+(r-Xn-.5)+"h3v"+(2*Xn+1)+"h-3Z"}function p$(e,r){return"M"+(r-Xn-.5)+","+(e.t-.5)+"v-3h"+(2*Xn+1)+"v3ZM"+(r-Xn-.5)+","+(e.b+.5)+"v3h"+(2*Xn+1)+"v-3Z"}function Xh(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Xn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function fS(e,r,t,n,a){for(var o=!1,i={},l={},u,s,f,v,p=(a||{}).xaHash,_=(a||{}).yaHash,m=0;m{"use strict";var g$=ot(),Zh=io(),y$=ni(),m$=Vo(),oi=MS().makeDragBox,cn=wn().DRAGGERSIZE;Jh.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){g$.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(o,i){if((t._plots[o].mainplot&&!0)===(t._plots[i].mainplot&&!0)){var l=o.split("y"),u=i.split("y");return l[0]===u[0]?Number(l[1]||1)-Number(u[1]||1):Number(l[0]||1)-Number(u[0]||1)}return t._plots[o].mainplot?1:-1});n.forEach(function(o){var i=t._plots[o],l=i.xaxis,u=i.yaxis;if(!i.mainplot){var s=oi(r,i,l._offset,u._offset,l._length,u._length,"ns","ew");s.onmousemove=function(p){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===o&&r._fullLayout._plots[o]&&Zh.hover(r,p,o)},Zh.hover(r,p,o),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=o},s.onmouseout=function(p){r._dragging||(r._fullLayout._hoversubplot=null,y$.unhover(r,p))},r._context.showAxisDragHandles&&(oi(r,i,l._offset-cn,u._offset-cn,cn,cn,"n","w"),oi(r,i,l._offset+l._length,u._offset-cn,cn,cn,"n","e"),oi(r,i,l._offset-cn,u._offset+u._length,cn,cn,"s","w"),oi(r,i,l._offset+l._length,u._offset+u._length,cn,cn,"s","e"))}if(r._context.showAxisDragHandles){if(o===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=cn),oi(r,i,l._offset+l._length*.1,f,l._length*.8,cn,"","ew"),oi(r,i,l._offset,f,l._length*.1,cn,"","w"),oi(r,i,l._offset+l._length*.9,f,l._length*.1,cn,"","e")}if(o===u._mainSubplot){var v=u._mainLinePosition;u.side!=="right"&&(v-=cn),oi(r,i,v,u._offset+u._length*.1,cn,u._length*.8,"ns",""),oi(r,i,v,u._offset+u._length*.9,cn,u._length*.1,"s",""),oi(r,i,v,u._offset,cn,u._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(o){o.target=r._fullLayout._lasthover,Zh.hover(r,o,t._hoversubplot)},a.onclick=function(o){o.target=r._fullLayout._lasthover,Zh.click(r,o)},a.onmousedown=function(o){r._fullLayout._lasthover.onmousedown(o)},Jh.updateFx(r)}};Jh.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";m$(r._draggers,t)}});var kS=pe((Jve,AS)=>{"use strict";var TS=Er();AS.exports=function(r){for(var t=TS.layoutArrayContainers,n=TS.layoutArrayRegexes,a=r.split("[")[0],o,i,l=0;l{"use strict";var x$=wo(),Ny=Nc(),v0=Al(),b$=Rp().sorterAsc,zy=Er();h0.containerArrayMatch=kS();var _$=h0.isAddVal=function(r){return r==="add"||x$(r)},SS=h0.isRemoveVal=function(r){return r===null||r==="remove"};h0.applyContainerArrayChanges=function(r,t,n,a,o){var i=t.astr,l=zy.getComponentMethod(i,"supplyLayoutDefaults"),u=zy.getComponentMethod(i,"draw"),s=zy.getComponentMethod(i,"drawOne"),f=a.replot||a.recalc||l===Ny||u===Ny,v=r.layout,p=r._fullLayout;if(n[""]){Object.keys(n).length>1&&v0.warn("Full array edits are incompatible with other edits",i);var _=n[""][""];if(SS(_))t.set(null);else if(Array.isArray(_))t.set(_);else return v0.warn("Unrecognized full array edit value",i,_),!0;return f?!1:(l(v,p),u(r),!0)}var m=Object.keys(n).map(Number).sort(b$),w=t.get(),T=w||[],y=o(p,i).get(),k=[],S=-1,x=T.length,M,d,b,g,c,A,h,R;for(M=0;MT.length-(h?0:1)){v0.warn("index out of range",i,b);continue}if(A!==void 0)c.length>1&&v0.warn("Insertion & removal are incompatible with edits to the same index.",i,b),SS(A)?k.push(b):h?(A==="add"&&(A={}),T.splice(b,0,A),y&&y.splice(b,0,{})):v0.warn("Unrecognized full object edit value",i,b,A),S===-1&&(S=b);else for(d=0;d=0;M--)T.splice(k[M],1),y&&y.splice(k[M],1);if(T.length?w||t.set(T):t.set(null),f)return!1;if(l(v,p),s!==Ny){var E;if(S===-1)E=m;else{for(x=Math.max(T.length,x),E=[],M=0;M=S));M++)E.push(b);for(M=S;M{"use strict";var DS=tt(),PS=Er(),Vn=ir(),d0=ln(),IS=en(),FS=Zr(),p0=IS.cleanId,w$=IS.getFromTrace,qy=PS.traceIs,M$=["x","y","z"];Ba.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Vn.log("Clearing previous rejected promises from queue."),e._promises=[]};Ba.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(d0.subplotsRegistry.cartesian||{}).attrRegex,a=(d0.subplotsRegistry.polar||{}).attrRegex,o=(d0.subplotsRegistry.ternary||{}).attrRegex,i=(d0.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(T.x=1.02,T.xanchor="left"):T.x<-2&&(T.x=-.02,T.xanchor="right"),T.y>3?(T.y=1.02,T.yanchor="bottom"):T.y<-2&&(T.y=-.02,T.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),FS.clean(e),e.template&&e.template.layout&&Ba.cleanLayout(e.template.layout),e};function bu(e,r){var t=e[r],n=r.charAt(0);t&&t!=="paper"&&(e[r]=p0(t,n,!0))}Ba.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}Ba.hasParent=function(e,r){for(var t=RS(r);t;){if(t in e)return!0;t=RS(t)}return!1};Ba.clearAxisTypes=function(e,r,t){for(var n=0;n{let t=(...n)=>n.every(a=>Vn.isPlainObject(a))||n.every(a=>Array.isArray(a));if([e,r].every(n=>Array.isArray(n))){if(e.length!==r.length)return!1;for(let n=0;nVn.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let a=e[n],o=r[n];if(a!==o&&!(t(a,o)?Oy(a,o):!1))return!1}return!0}return!1};Ba.collectionsAreEqual=Oy});var Yy=pe(jr=>{"use strict";var jh=ot(),k$=tt(),S$=Gp(),hr=ir(),_t=hr.nestedProperty,Hy=wf(),Zn=hw(),Ua=Er(),o1=Vs(),Rr=ln(),Gn=Ct(),C$=v2(),E$=Ra(),By=yt(),L$=Zr(),R$=Fy().initInteractions,D$=Fo(),P$=xu().clearOutline,US=Tl().dfltConfig,Qh=CS(),Gt=NS(),ht=Rh(),Jo=zn(),I$=wn().AX_NAME_PATTERN,Uy=0,zS=5;function F$(e,r,t,n){var a;if(e=hr.getGraphDiv(e),Hy.init(e),hr.isPlainObject(r)){var o=r;r=o.data,t=o.layout,n=o.config,a=o.frames}var i=Hy.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(i===!1)return Promise.reject();!r&&!t&&!hr.isPlotDiv(e)&&hr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return jr.addFrames(e,a)}VS(e,n),t||(t={}),jh.select(e).classed("js-plotly-plot",!0),By.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Gt.cleanData(r),u?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||u)&&(e.layout=Gt.cleanLayout(t)),Rr.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(aj(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),By.initGradients(e),By.initPatterns(e),u&&Gn.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&Rr.doCalcdata(e);for(var p=0;p=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function GS(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),r1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&r1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function B$(e,r,t){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),n=0;n=0&&f=0&&f0&&typeof g.parts[h]!="string";)h--;var R=g.parts[h],E=g.parts[h-1]+"."+R,D=g.parts.slice(0,h).join("."),N=_t(e.layout,D).get(),F=_t(n,D).get(),I=g.get();if(c!==void 0){y[b]=c,k[b]=R==="reverse"?c:uo(I);var L=o1.getLayoutValObject(n,g.parts);if(L&&L.impliedEdits&&c!==null)for(var P in L.impliedEdits)S(hr.relativeAttr(b,P),L.impliedEdits[P]);if(["width","height"].indexOf(b)!==-1)if(c){S("autosize",null);var O=b==="height"?"width":"height";S(O,n[O])}else n[b]=e._initialAutoSize[b];else if(b==="autosize")S("width",c?null:n.width),S("height",c?null:n.height);else if(E.match(jS))d(E),_t(n,D+"._inputRange").set(null);else if(E.match(eC)){d(E),_t(n,D+"._inputRange").set(null);var U=_t(n,D).get();U._inputDomain&&(U._input.domain=U._inputDomain.slice())}else E.match(G$)&&_t(n,D+"._inputDomain").set(null);if(R==="type"){M=N;var X=F.type==="linear"&&c==="log",$=F.type==="log"&&c==="linear";if(X||$){if(!M||!M.range)S(D+".autorange",!0);else if(F.autorange)X&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var j=M.range[0],Y=M.range[1];X?(j<=0&&Y<=0&&S(D+".autorange",!0),j<=0?j=Y/1e6:Y<=0&&(Y=j/1e6),S(D+".range[0]",Math.log(j)/Math.LN10),S(D+".range[1]",Math.log(Y)/Math.LN10)):(S(D+".range[0]",Math.pow(10,j)),S(D+".range[1]",Math.pow(10,Y)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[g.parts[0]]&&g.parts[1]==="radialaxis"&&delete n[g.parts[0]]._subplot.viewInitial["radialaxis.range"],Ua.getComponentMethod("annotations","convertCoords")(e,F,c,S),Ua.getComponentMethod("images","convertCoords")(e,F,c,S)}else S(D+".autorange",!0),S(D+".range",null);_t(n,D+"._inputRange").set(null)}else if(R.match(I$)){var q=_t(n,b).get(),K=(c||{}).type;(!K||K==="-")&&(K="linear"),Ua.getComponentMethod("annotations","convertCoords")(e,q,K,S),Ua.getComponentMethod("images","convertCoords")(e,q,K,S)}var ne=Qh.containerArrayMatch(b);if(ne){f=ne.array,v=ne.index;var Q=ne.property,ie=L||{editType:"calc"};v!==""&&Q===""&&(Qh.isAddVal(c)?k[b]=null:Qh.isRemoveVal(c)?k[b]=(_t(t,f).get()||[])[v]:hr.warn("unrecognized full object value",r)),Jo.update(T,ie),s[f]||(s[f]={});var ee=s[f][v];ee||(ee=s[f][v]={}),ee[Q]=c,delete r[b]}else R==="reverse"?(N.range?N.range.reverse():(S(D+".autorange",!0),N.range=[1,0]),F.autorange?T.calc=!0:T.plot=!0):(b==="dragmode"&&(c===!1&&I!==!1||c!==!1&&I===!1)||n._has("scatter-like")&&n._has("regl")&&b==="dragmode"&&(c==="lasso"||c==="select")&&!(I==="lasso"||I==="select")?T.plot=!0:L?Jo.update(T,L):T.calc=!0,g.set(c))}}for(f in s){var V=Qh.applyContainerArrayChanges(e,o(t,f),s[f],T,o);V||(T.plot=!0)}for(var re in x){M=Gn.getFromId(e,re);var H=M&&M._constraintGroup;if(H){T.calc=!0;for(var te in H)x[te]||(Gn.getFromId(e,te)._constraintShrinkable=!0)}}(tC(e)||r.height||r.width)&&(T.plot=!0);var ue=n.shapes;for(v=0;v1;)if(n.pop(),t=_t(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function X$(e,r){for(var t=0;t[D,e._ev.listeners(D)]);o=jr.newPlot(e,r,t,n).then(()=>{for(let[D,N]of E)N.forEach(F=>e.on(D,F));return jr.react(e,r,t,n)})}else{e.data=r||[],Gt.cleanData(e.data),e.layout=t||{},Gt.cleanLayout(e.layout),J$(e.data,e.layout,l,u),Rr.supplyDefaults(e,{skipUpdateCalc:!0});var v=e._fullData,p=e._fullLayout,_=p.datarevision===void 0,m=p.transition,w=$$(e,u,p,_,m),T=w.newDataRevision,y=Q$(e,l,v,_,m,T);if(tC(e)&&(w.layoutReplot=!0),y.calc||w.calc){e.calcdata=void 0;for(var k=Object.getOwnPropertyNames(p),S=0;S(f||e.emit("plotly_react",{config:n,data:r,layout:t}),e))}function Q$(e,r,t,n,a,o){var i=r.length===t.length;if(!a&&!i)return{fullReplot:!0,calc:!0};var l=Jo.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var u,s;function f(_){var m=o1.getTraceValObject(s,_);return!s._module.animatable&&m.anim&&(m.anim=!1),m}var v={getValObject:f,flags:l,immutable:n,transition:a,newDataRevision:o,gd:e},p={};for(u=0;u=a.length?a[0]:a[s]:a}function l(s){return Array.isArray(o)?s>=o.length?o[0]:o[s]:o}function u(s,f){var v=0;return function(){if(s&&++v===f)return s()}}return new Promise(function(s,f){function v(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var R=n._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function p(R){if(R.length!==0){for(var E=0;En._timeToNext&&m()};R()}var T=0;function y(R){return Array.isArray(a)?T>=a.length?R.transitionOpts=a[T]:R.transitionOpts=a[0]:R.transitionOpts=a,T++,R}var k,S,x=[],M=r==null,d=Array.isArray(r),b=!M&&!d&&hr.isPlainObject(r);if(b)x.push({type:"object",data:y(hr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(k=0;k0&&AA)&&h.push(S);x=h}}x.length>0?p(x):(e.emit("plotly_animated"),s())})}function ej(e,r,t){if(e=hr.getGraphDiv(e),r==null)return Promise.resolve();if(!hr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,o,i,l=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var s=l.length+r.length*2,f=[],v={};for(n=r.length-1;n>=0;n--)if(hr.isPlainObject(r[n])){var p=r[n].name,_=(u[p]||v[p]||{}).name,m=r[n].name,w=u[_]||v[_];_&&m&&typeof m=="number"&&w&&Uyg.index?-1:b.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&hr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(o=0;o=0;t--)n=r[t],o.push({type:"delete",index:n}),i.unshift({type:"insert",index:n,value:a[n]});var l=Rr.modifyFrames,u=Rr.modifyFrames,s=[e,i],f=[e,o];return Zn&&Zn.add(e,l,s,u,f),Rr.modifyFrames(e,o)}function tj(e){e=hr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Rr.cleanPlot([],{},t,r),Rr.purge(e),Hy.purge(e),r._container&&r._container.remove(),delete e._context,e}function nj(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!hr.equalDomRects(t,r._lastBBox)){var n=r._invTransform=hr.inverseTransformMatrix(hr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function aj(e){var r=jh.select(e),t=e._fullLayout;if(t._calcInverseTransform=nj,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var n={};jh.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=hr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(D$.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var o=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=o.append("g").classed("imagelayer",!0),t._shapeUpperLayer=o.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}jr.animate=j$;jr.addFrames=ej;jr.deleteFrames=rj;jr.addTraces=JS;jr.deleteTraces=KS;jr.extendTraces=XS;jr.moveTraces=Vy;jr.prependTraces=ZS;jr.newPlot=O$;jr._doPlot=F$;jr.purge=tj;jr.react=K$;jr.redraw=q$;jr.relayout=g0;jr.restyle=t1;jr.setPlotConfig=N$;jr.update=a1;jr._guiRelayout=Gy(g0);jr._guiRestyle=Gy(t1);jr._guiUpdate=Gy(a1);jr._storeDirectGUIEdit=V$});var jl=pe(Oi=>{"use strict";var ij=Er();Oi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Oi.getRedrawFunc=function(e){return function(){ij.getComponentMethod("colorbar","draw")(e)}};Oi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Oi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var nC=window.URL||window.webkitURL;Oi.createObjectURL=function(e){return nC.createObjectURL(e)};Oi.revokeObjectURL=function(e){return nC.revokeObjectURL(e)};Oi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=oj(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Oi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function oj(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var Xy=ot(),ehe=ir(),lj=yt(),sj=Zr(),rhe=Fo(),Wy=/"/g,m0="TOBESTRIPPED",uj=new RegExp('("'+m0+")|("+m0+'")',"g");function fj(e){var r=Xy.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":r.html(n).text()});return r.remove(),t}function cj(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}aC.exports=function(r,t,n){var a=r._fullLayout,o=a._paper,i=a._toppaper,l=a.width,u=a.height,s;o.insert("rect",":first-child").call(lj.setRect,0,0,l,u).call(sj.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(s=0;s{"use strict";var vj=ir(),hj=nv().EventEmitter,x0=jl();function dj(e){var r=e.emitter||new hj,t=new Promise(function(n,a){var o=window.Image,i=e.svg,l=e.format||"png",u=e.canvas,s=e.scale||1,f=e.width||300,v=e.height||150,p=s*f,_=s*v,m=u.getContext("2d",{willReadFrequently:!0}),w=new o,T,y;l==="svg"||vj.isSafari()?y=x0.encodeSVG(i):(T=x0.createBlob(i,"svg"),y=x0.createObjectURL(T)),u.width=p,u.height=_,w.onload=function(){var k;switch(T=null,x0.revokeObjectURL(y),l!=="svg"&&m.drawImage(w,0,0,p,_),l){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=y;break;default:var S="Image format is not jpeg, png, svg or webp.";if(a(new Error(S)),!e.promise)return r.emit("error",S)}n(k),e.promise||r.emit("success",k)},w.onerror=function(k){if(T=null,x0.revokeObjectURL(y),a(k),!e.promise)return r.emit("error",k)},w.src=y});return e.promise?t:r}iC.exports=dj});var Jy=pe((ahe,sC)=>{"use strict";var oC=tt(),lC=Yy(),pj=ln(),Bi=ir(),b0=jl(),gj=s1(),yj=u1(),mj=xc().version,Zy={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function xj(e,r){r=r||{};var t,n,a,o;Bi.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},o={}):(e=Bi.getGraphDiv(e),t=Bi.extendDeep([],e.data),n=Bi.extendDeep({},e.layout),a=e._context,o=e._fullLayout||{});function i(d){return!(d in r)||Bi.validate(r[d],Zy[d])}if(!i("width")&&r.width!==null||!i("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!i("format"))throw new Error("Export format is not "+Bi.join2(Zy.format.values,", "," or ")+".");var l={};function u(d,b){return Bi.coerce(r,l,Zy,d,b)}var s=u("format"),f=u("width"),v=u("height"),p=u("scale"),_=u("setBackground"),m=u("imageDataOnly"),w=document.createElement("div");w.style.position="absolute",w.style.left="-5000px",document.body.appendChild(w);var T=Bi.extendFlat({},n);f?T.width=f:r.width===null&&oC(o.width)&&(T.width=o.width),v?T.height=v:r.height===null&&oC(o.height)&&(T.height=o.height);var y=Bi.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:_}),k=b0.getRedrawFunc(w);function S(){return new Promise(function(d){setTimeout(d,b0.getDelay(w._fullLayout))})}function x(){return new Promise(function(d,b){var g=gj(w,s,p),c=w._fullLayout.width,A=w._fullLayout.height;function h(){lC.purge(w),document.body.removeChild(w)}if(s==="full-json"){var R=pj.graphJson(w,!1,"keepdata","object",!0,!0);return R.version=mj,R=JSON.stringify(R),h(),d(m?R:b0.encodeJSON(R))}if(h(),s==="svg")return d(m?g:b0.encodeSVG(g));var E=document.createElement("canvas");E.id=Bi.randstr(),yj({format:s,width:c,height:A,scale:p,canvas:E,svg:g,promise:!0}).then(d).catch(b)})}function M(d){return m?d.replace(b0.IMAGE_URL_PREFIX,""):d}return new Promise(function(d,b){lC.newPlot(w,t,T,y).then(k).then(S).then(x).then(function(g){d(M(g))}).catch(function(g){b(g)})})}sC.exports=xj});var cC=pe((ihe,fC)=>{"use strict";var Ha=ir(),bj=ln(),_j=Vs(),wj=Tl().dfltConfig,li=Ha.isPlainObject,rs=Array.isArray,Ky=Ha.isArrayOrTypedArray;fC.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=_j.get(),a=[],o={_context:Ha.extendFlat({},wj)},i,l;rs(r)?(o.data=Ha.extendDeep([],r),i=r):(o.data=[],i=[],a.push(vn("array","data"))),li(t)?(o.layout=Ha.extendDeep({},t),l=t):(o.layout={},l={},arguments.length>1&&a.push(vn("object","layout"))),bj.supplyDefaults(o);for(var u=o._fullData,s=i.length,f=0;fv.length&&n.push(vn("unused",a,s.concat(v.length)));var y=v.length,k=Array.isArray(T);k&&(y=Math.min(y,T.length));var S,x,M,d,b;if(p.dimensions===2)for(x=0;xv[x].length&&n.push(vn("unused",a,s.concat(x,v[x].length)));var g=v[x].length;for(S=0;S<(k?Math.min(g,T[x].length):g);S++)M=k?T[x][S]:T,d=f[x][S],b=v[x][S],Ha.validate(d,M)?b!==d&&b!==+d&&n.push(vn("dynamic",a,s.concat(x,S),d,b)):n.push(vn("value",a,s.concat(x,S),d))}else n.push(vn("array",a,s.concat(x),f[x]));else for(x=0;x{"use strict";var Ej=ir(),c1=jl();function Lj(e,r,t){var n=document.createElement("a"),a="download"in n,o=new Promise(function(i,l){var u,s;if(a)return u=c1.createBlob(e,t),s=c1.createObjectURL(u),n.href=s,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),c1.revokeObjectURL(s),u=null,i(r);if(Ej.isSafari()){var f=t==="svg"?",":";base64,";return c1.octetStream(f+encodeURIComponent(e)),i(r)}l(new Error("download error"))});return o}vC.exports=Lj});var Qy=pe((she,pC)=>{"use strict";var dC=ir(),Rj=Jy(),Dj=hC(),lhe=jl();function Pj(e,r){var t;return dC.isPlainObject(e)||(t=dC.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(n,a){t&&t._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var o=Rj(e,r),i=r.filename||e.fn||"newplot";i+="."+r.format.replace("-","."),o.then(function(l){return t&&(t._snapshotInProgress=!1),Dj(l,i,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}pC.exports=Pj});var bC=pe($y=>{"use strict";var fa=ir(),ca=fa.isPlainObject,gC=Vs(),yC=ln(),Ij=Sn(),mC=gt(),xC=Tl().dfltConfig;$y.makeTemplate=function(e){e=fa.isPlainObject(e)?e:fa.getGraphDiv(e),e=fa.extendDeep({_context:xC},{data:e.data,layout:e.layout}),yC.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(_){var m={};_0(_,m,Nj.bind(null,_));var w=fa.coerce(_,{},Ij,"type"),T=n.data[w];T||(T=n.data[w]=[]),T.push(m)}),_0(t,n.layout,Fj.bind(null,t)),delete n.layout.template;var a=t.template;if(ca(a)){var o=a.layout,i,l,u,s,f,v;ca(o)&&v1(o,n.layout);var p=a.data;if(ca(p)){for(l in n.data)if(u=p[l],Array.isArray(u)){for(f=n.data[l],v=f.length,s=u.length,i=0;iy?i.push({code:"unused",traceType:_,templateCount:T,dataCount:y}):y>T&&i.push({code:"reused",traceType:_,templateCount:T,dataCount:y})}}function k(S,x){for(var M in S)if(M.charAt(0)!=="_"){var d=S[M],b=Va(S,M,x);ca(d)?(Array.isArray(S)&&d._template===!1&&d.templateitemname&&i.push({code:"missing",path:b,templateitemname:d.templateitemname}),k(d,b)):Array.isArray(d)&&zj(d)&&k(d,b)}}if(k({data:u,layout:l},""),i.length)return i.map(qj)};function zj(e){for(var r=0;r{"use strict";var tn=Yy();St._doPlot=tn._doPlot;St.newPlot=tn.newPlot;St.restyle=tn.restyle;St.relayout=tn.relayout;St.redraw=tn.redraw;St.update=tn.update;St._guiRestyle=tn._guiRestyle;St._guiRelayout=tn._guiRelayout;St._guiUpdate=tn._guiUpdate;St._storeDirectGUIEdit=tn._storeDirectGUIEdit;St.react=tn.react;St.extendTraces=tn.extendTraces;St.prependTraces=tn.prependTraces;St.addTraces=tn.addTraces;St.deleteTraces=tn.deleteTraces;St.moveTraces=tn.moveTraces;St.purge=tn.purge;St.addFrames=tn.addFrames;St.deleteFrames=tn.deleteFrames;St.animate=tn.animate;St.setPlotConfig=tn.setPlotConfig;var Oj=hf().getGraphDiv,Bj=Th().eraseActiveShape;St.deleteActiveShape=function(e){return Bj(Oj(e))};St.toImage=Jy();St.validate=cC();St.downloadImage=Qy();var _C=bC();St.makeTemplate=_C.makeTemplate;St.validateTemplate=_C.validateTemplate});var TC=pe((che,MC)=>{"use strict";var jy=ir(),Uj=Er();MC.exports=function(r,t,n,a){var o=a("x"),i=a("y"),l,u=Uj.getComponentMethod("calendars","handleTraceDefaults");if(u(r,t,["x","y"],n),o){var s=jy.minRowLength(o);i?l=Math.min(s,jy.minRowLength(i)):(l=s,a("y0"),a("dy"))}else{if(!i)return 0;l=jy.minRowLength(i),a("x0"),a("dx")}return t._length=l,l}});var CC=pe((vhe,SC)=>{"use strict";var AC=ir().dateTick0,Hj=an(),Vj=Hj.ONEWEEK;function kC(e,r){return e%Vj===0?AC(r,1):AC(r,0)}SC.exports=function(r,t,n,a,o){if(o||(o={x:!0,y:!0}),o.x){var i=a("xperiod");i&&(a("xperiod0",kC(i,t.xcalendar)),a("xperiodalignment"))}if(o.y){var l=a("yperiod");l&&(a("yperiod0",kC(l,t.ycalendar)),a("yperiodalignment"))}}});var RC=pe((hhe,LC)=>{"use strict";var EC=["orientation","groupnorm","stackgaps"];LC.exports=function(r,t,n,a){var o=n._scatterStackOpts,i=a("stackgroup");if(i){var l=t.xaxis+t.yaxis,u=o[l];u||(u=o[l]={});var s=u[i],f=!1;s?s.traces.push(t):(s=u[i]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},p=0;p{"use strict";var DC=Zr(),PC=Si().hasColorscale,IC=Ei(),Gj=oa();FC.exports=function(r,t,n,a,o,i){var l=Gj.isBubble(r),u=(r.line||{}).color,s;if(i=i||{},u&&(n=u),o("marker.symbol"),o("marker.opacity",l?.7:1),o("marker.size"),i.noAngle||(o("marker.angle"),i.noAngleRef||o("marker.angleref"),i.noStandOff||o("marker.standoff")),o("marker.color",n),PC(r,"marker")&&IC(r,t,a,o,{prefix:"marker.",cLetter:"c"}),i.noSelect||(o("selected.marker.color"),o("unselected.marker.color"),o("selected.marker.size"),o("unselected.marker.size")),i.noLine||(u&&!Array.isArray(u)&&t.marker.color!==u?s=u:l?s=DC.background:s=DC.defaultLine,o("marker.line.color",s),PC(r,"marker.line")&&IC(r,t,a,o,{prefix:"marker.line.",cLetter:"c"}),o("marker.line.width",l?1:0)),l&&(o("marker.sizeref"),o("marker.sizemin"),o("marker.sizemode")),i.gradient){var f=o("marker.gradient.type");f!=="none"&&o("marker.gradient.color")}}});var rm=pe((phe,NC)=>{"use strict";var Yj=ir().isArrayOrTypedArray,Wj=Si().hasColorscale,Xj=Ei();NC.exports=function(r,t,n,a,o,i){i||(i={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),o("line.color",n),Wj(r,"line"))Xj(r,t,a,o,{prefix:"line.",cLetter:"c"});else{var u=(Yj(l)?!1:l)||n;o("line.color",u)}o("line.width"),i.noDash||o("line.dash"),i.backoff&&o("line.backoff")}});var qC=pe((ghe,zC)=>{"use strict";zC.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var tm=pe((yhe,OC)=>{"use strict";var Zj=ir();OC.exports=function(e,r,t,n,a){a=a||{},n("textposition"),Zj.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var HC=pe((mhe,UC)=>{"use strict";var d1=Zr(),BC=ir().isArrayOrTypedArray;function Jj(e){for(var r=d1.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var VC=ir(),Kj=Er(),Qj=$l(),$j=Uh(),_u=oa(),jj=TC(),eee=CC(),ree=RC(),tee=em(),nee=rm(),GC=qC(),aee=tm(),iee=HC(),oee=ir().coercePattern;YC.exports=function(r,t,n,a){function o(_,m){return VC.coerce(r,t,Qj,_,m)}var i=jj(r,t,a,o);if(i||(t.visible=!1),!!t.visible){eee(r,t,a,o),o("xhoverformat"),o("yhoverformat"),o("zorder");var l=ree(r,t,a,o);a.scattermode==="group"&&t.orientation===void 0&&o("orientation","v");var u=!l&&i<$j.PTS_LINESONLY?"lines+markers":"lines";o("text"),o("hovertext"),o("mode",u),_u.hasMarkers(t)&&tee(r,t,n,a,o,{gradient:!0}),_u.hasLines(t)&&(nee(r,t,n,a,o,{backoff:!0}),GC(r,t,o),o("connectgaps"),o("line.simplify")),_u.hasText(t)&&(o("texttemplate"),aee(r,t,a,o));var s=[];(_u.hasMarkers(t)||_u.hasText(t))&&(o("cliponaxis"),o("marker.maxdisplayed"),s.push("points")),o("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(iee(r,t,n,o,{moduleHasFillgradient:!0}),_u.hasLines(t)||GC(r,t,o),oee(o,"fillpattern",t.fillcolor,!1));var f=(t.line||{}).color,v=(t.marker||{}).color;(t.fill==="tonext"||t.fill==="toself")&&s.push("fills"),o("hoveron",s.join("+")||"points"),t.hoveron!=="fills"&&o("hovertemplate");var p=Kj.getComponentMethod("errorbars","supplyDefaults");p(r,t,f||v||n,{axis:"y"}),p(r,t,f||v||n,{axis:"x",inherit:"y"}),VC.coerceSelectionMarkerOpacity(t,o)}}});var ZC=pe((bhe,XC)=>{"use strict";var lee=Xf().getAxisGroup;XC.exports=function(r,t,n,a,o){var i=t.orientation,l=t[{v:"x",h:"y"}[i]+"axis"],u=lee(n,l)+i,s=n._alignmentOpts||{},f=a("alignmentgroup"),v=s[u];v||(v=s[u]={});var p=v[f];p?p.traces.push(t):p=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var _=a("offsetgroup")||"",m=p.offsetGroups,w=m[_];t._offsetIndex=0,(o!=="group"||_)&&(w||(w=m[_]={offsetIndex:Object.keys(m).length}),t._offsetIndex=w.offsetIndex)}});var KC=pe((_he,JC)=>{"use strict";var see=ir(),uee=ZC(),fee=$l();JC.exports=function(r,t){var n,a,o,i=t.scattermode;function l(p){return see.coerce(a._input,a,fee,p)}if(t.scattermode==="group")for(o=0;o=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===u.xaxis&&v.yaxis===u.yaxis){v.opacity=void 0;break}}}}}});var $C=pe((whe,QC)=>{"use strict";var cee=ir(),vee=sv();QC.exports=function(e,r){function t(a,o){return cee.coerce(e,r,vee,a,o)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var rE=pe((Mhe,eE)=>{"use strict";var hee=tt(),jC=ir(),dee=jC.dateTime2ms,p1=jC.incrementMonth,pee=an(),gee=pee.ONEAVGMONTH;eE.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var o=r[n+"periodalignment"];if(!o)return{vals:a};var i=r[n+"period"],l;if(hee(i)){if(i=+i,i<=0)return{vals:a}}else if(typeof i=="string"&&i.charAt(0)==="M"){var u=+i.substring(1);if(u>0&&Math.round(u)===u)l=u;else return{vals:a}}for(var s=t.calendar,f=o==="start",v=o==="end",p=r[n+"period0"],_=dee(p,s)||0,m=[],w=[],T=[],y=a.length,k=0;kS;)d=p1(d,-l,s);for(;d<=S;)d=p1(d,l,s);M=p1(d,-l,s)}else{for(x=Math.round((S-_)/i),d=_+x*i;d>S;)d-=i;for(;d<=S;)d+=i;M=d-i}m[k]=f?M:v?d:(M+d)/2,w[k]=M,T[k]=d}return{vals:m,starts:w,ends:T}}});var im=pe((The,nE)=>{"use strict";var nm=Si().hasColorscale,am=zo(),tE=oa();nE.exports=function(r,t){tE.hasLines(t)&&nm(t,"line")&&am(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),tE.hasMarkers(t)&&(nm(t,"marker")&&am(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),nm(t,"marker.line")&&am(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var g1=pe((Ahe,aE)=>{"use strict";var Nt=ir();aE.exports=function(r,t){for(var n=0;n{"use strict";var iE=ir();oE.exports=function(r,t){iE.isArrayOrTypedArray(t.selectedpoints)&&iE.tagSelected(r,t)}});var fm=pe((She,dE)=>{"use strict";var sE=tt(),lm=ir(),w0=Ct(),uE=rE(),om=an().BADNUM,sm=oa(),yee=im(),mee=g1(),xee=lE();function bee(e,r){var t=e._fullLayout,n=r._xA=w0.getFromId(e,r.xaxis||"x","x"),a=r._yA=w0.getFromId(e,r.yaxis||"y","y"),o=n.makeCalcdata(r,"x"),i=a.makeCalcdata(r,"y"),l=uE(r,n,"x",o),u=uE(r,a,"y",i),s=l.vals,f=u.vals,v=r._length,p=new Array(v),_=r.ids,m=um(r,t,n,a),w=!1,T,y,k,S,x,M;vE(t,r);var d="x",b="y",g;if(m)lm.pushUnique(m.traceIndices,r.index),T=m.orientation==="v",T?(b="s",g="x"):(d="s",g="y"),x=m.stackgaps==="interpolate";else{var c=cE(r,v);fE(e,r,n,a,s,f,c)}var A=!!r.xperiodalignment,h=!!r.yperiodalignment;for(y=0;yy&&p[S].gap;)S--;for(M=p[S].s,k=p.length-1;k>S;k--)p[k].s=M;for(;y{"use strict";pE.exports=y1;var _ee=ir().distinctVals;function y1(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],o=0;o{"use strict";var Ga=tt(),Ko=ir().isArrayOrTypedArray,wu=an().BADNUM,wee=Er(),M0=Ct(),Mee=Xf().getAxisGroup,m1=gE();function Tee(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;su+i||!Ga(l))}for(var f=0;f{"use strict";var wE=fm(),ME=_E().setGroupPositions;function Nee(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;sc[f]&&f{"use strict";var qee=yt(),EE=an(),T0=EE.BADNUM,LE=EE.LOG_CLIP,kE=LE+.5,SE=LE-.5,x1=ir(),Oee=x1.segmentsIntersect,CE=x1.constrain,gm=Uh();RE.exports=function(r,t){var n=t.trace||{},a=t.xaxis,o=t.yaxis,i=a.type==="log",l=o.type==="log",u=a._length,s=o._length,f=t.backoff,v=n.marker,p=t.connectGaps,_=t.baseTolerance,m=t.shape,w=m==="linear",T=n.fill&&n.fill!=="none",y=[],k=gm.minTolerance,S=r.length,x=new Array(S),M=0,d,b,g,c,A,h,R,E,D,N,F,I,L,P,O,U;function X(Ge){var _e=r[Ge];if(!_e)return!1;var De=t.linearized?a.l2p(_e.x):a.c2p(_e.x),Ke=t.linearized?o.l2p(_e.y):o.c2p(_e.y);if(De===T0){if(i&&(De=a.c2p(_e.x,!0)),De===T0)return!1;l&&Ke===T0&&(De*=Math.abs(a._m*s*(a._m>0?kE:SE)/(o._m*u*(o._m>0?kE:SE)))),De*=1e3}if(Ke===T0){if(l&&(Ke=o.c2p(_e.y,!0)),Ke===T0)return!1;Ke*=1e3}return[De,Ke]}function $(Ge,_e,De,Ke){var Ye=De-Ge,ar=Ke-_e,se=.5-Ge,J=.5-_e,ae=Ye*Ye+ar*ar,Le=Ye*se+ar*J;if(Le>0&&Le1||Math.abs(se.y-De[0][1])>1)&&(se=[se.x,se.y],Ke&&K(se,Ge)ie||Ge[1]V)return[CE(Ge[0],Q,ie),CE(Ge[1],ee,V)]}function Ee(Ge,_e){if(Ge[0]===_e[0]&&(Ge[0]===Q||Ge[0]===ie)||Ge[1]===_e[1]&&(Ge[1]===ee||Ge[1]===V))return!0}function Pe(Ge,_e){var De=[],Ke=Te(Ge),Ye=Te(_e);return Ke&&Ye&&Ee(Ke,Ye)||(Ke&&De.push(Ke),Ye&&De.push(Ye)),De}function Se(Ge,_e,De){return function(Ke,Ye){var ar=Te(Ke),se=Te(Ye),J=[];if(ar&&se&&Ee(ar,se))return J;ar&&J.push(ar),se&&J.push(se);var ae=2*x1.constrain((Ke[Ge]+Ye[Ge])/2,_e,De)-((ar||Ke)[Ge]+(se||Ye)[Ge]);if(ae){var Le;ar&&se?Le=ae>0==ar[Ge]>se[Ge]?ar:se:Le=ar||se,Le[Ge]+=ae}return J}}var Ne;m==="linear"||m==="spline"?Ne=ve:m==="hv"||m==="vh"?Ne=Pe:m==="hvh"?Ne=Se(0,Q,ie):m==="vhv"&&(Ne=Se(1,ee,V));function Be(Ge,_e){var De=_e[0]-Ge[0],Ke=(_e[1]-Ge[1])/De,Ye=(Ge[1]*_e[0]-_e[1]*Ge[0])/De;return Ye>0?[Ke>0?Q:ie,V]:[Ke>0?ie:Q,ee]}function ge(Ge){var _e=Ge[0],De=Ge[1],Ke=_e===x[M-1][0],Ye=De===x[M-1][1];if(!(Ke&&Ye))if(M>1){var ar=_e===x[M-2][0],se=De===x[M-2][1];Ke&&(_e===Q||_e===ie)&&ar?se?M--:x[M-1]=Ge:Ye&&(De===ee||De===V)&&se?ar?M--:x[M-1]=Ge:x[M++]=Ge}else x[M++]=Ge}function we(Ge){x[M-1][0]!==Ge[0]&&x[M-1][1]!==Ge[1]&&ge([ue,de]),ge(Ge),ke=null,ue=de=0}var Me=x1.isArrayOrTypedArray(v);function me(Ge){if(Ge&&f&&(Ge.i=d,Ge.d=r,Ge.trace=n,Ge.marker=Me?v[Ge.i]:v,Ge.backoff=f),j=Ge[0]/u,Y=Ge[1]/s,H=Ge[0]ie?ie:0,te=Ge[1]V?V:0,H||te){if(!M)x[M++]=[H||Ge[0],te||Ge[1]];else if(ke){var _e=Ne(ke,Ge);_e.length>1&&(we(_e[0]),x[M++]=_e[1])}else Ae=Ne(x[M-1],Ge)[0],x[M++]=Ae;var De=x[M-1];H&&te&&(De[0]!==H||De[1]!==te)?(ke&&(ue!==H&&de!==te?ge(ue&&de?Be(ke,Ge):[ue||H,de||te]):ue&&de&&ge([ue,de])),ge([H,te])):ue-H&&de-te&&ge([H||ue,te||de]),ke=Ge,ue=H,de=te}else ke&&we(Ne(ke,Ge)[0]),x[M++]=Ge}for(d=0;dq(h,Re))break;g=h,L=D[0]*E[0]+D[1]*E[1],L>F?(F=L,c=h,R=!1):L=r.length||!h)break;me(h),b=h}}ke&&ge([ue||ke[0],de||ke[1]]),y.push(x.slice(0,M))}var ce=m.slice(m.length-1);if(f&&ce!=="h"&&ce!=="v"){for(var he=!1,ye=-1,Ce=[],ze=0;ze{"use strict";var PE={tonextx:1,tonexty:1,tonext:1};IE.exports=function(r,t,n){var a,o,i,l,u,s={},f=!1,v=-1,p=0,_=-1;for(o=0;o=0?u=_:(u=_=p,p++),u{"use strict";var si=ot(),Bee=Er(),A0=ir(),Tu=A0.ensureSingle,zE=A0.identity,zt=yt(),Au=oa(),Uee=DE(),Hee=FE(),b1=py().tester;qE.exports=function(r,t,n,a,o,i){var l,u,s=!o,f=!!o&&o.duration>0,v=Hee(r,t,n);if(l=a.selectAll("g.trace").data(v,function(_){return _[0].trace.uid}),l.enter().append("g").attr("class",function(_){return"trace scatter trace"+_[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Vee(r,l,t),f){i&&(u=i());var p=si.transition().duration(o.duration).ease(o.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});p.each(function(){a.selectAll("g.trace").each(function(_,m){NE(r,m,t,_,v,this,o)})})}else l.each(function(_,m){NE(r,m,t,_,v,this,o)});s&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function Vee(e,r,t){r.each(function(n){var a=Tu(si.select(this),"g","fills");zt.setClipUrl(a,t.layerClipId,e);var o=n[0].trace,i=[];o._ownfill&&i.push("_ownFill"),o._nexttrace&&i.push("_nextFill");var l=a.selectAll("g").data(i,zE);l.enter().append("g"),l.exit().each(function(u){o[u]=null}).remove(),l.order().each(function(u){o[u]=Tu(si.select(this),"path","js-fill")})})}function NE(e,r,t,n,a,o,i){var l=e._context.staticPlot,u;Gee(e,r,t,n,a);var s=!!i&&i.duration>0;function f(Se){return s?Se.transition():Se}var v=t.xaxis,p=t.yaxis,_=n[0].trace,m=_.line,w=si.select(o),T=Tu(w,"g","errorbars"),y=Tu(w,"g","lines"),k=Tu(w,"g","points"),S=Tu(w,"g","text");if(Bee.getComponentMethod("errorbars","plot")(e,T,t,i),_.visible!==!0)return;f(w).style("opacity",_.opacity);var x,M,d=_.fill.charAt(_.fill.length-1);d!=="x"&&d!=="y"&&(d="");var b,g;d==="y"?(b=1,g=p.c2p(0,!0)):d==="x"&&(b=0,g=v.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=w;var c="",A=[],h=_._prevtrace,R=null,E=null;h&&(c=h._prevRevpath||"",M=h._nextFill,A=h._ownPolygons,R=h._fillsegments,E=h._fillElement);var D,N,F="",I="",L,P,O,U,X,$,j=[];_._polygons=[];var Y=[],q=[],K=A0.noop;if(x=_._ownFill,Au.hasLines(_)||_.fill!=="none"){M&&M.datum(n),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(L=zt.steps(m.shape),P=zt.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?L=P=function(Se){var Ne=Se[Se.length-1];return Se.length>1&&Se[0][0]===Ne[0]&&Se[0][1]===Ne[1]?zt.smoothclosed(Se.slice(1),m.smoothing):zt.smoothopen(Se,m.smoothing)}:L=P=function(Se){return"M"+Se.join("L")},O=function(Se){return P(Se.reverse())},q=Uee(n,{xaxis:v,yaxis:p,trace:_,connectGaps:_.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:_.fill}),Y=new Array(q.length);var ne=0;for(u=0;u=l[0]&&w.x<=l[1]&&w.y>=u[0]&&w.y<=u[1]}),p=Math.ceil(v.length/f),_=0;a.forEach(function(w,T){var y=w[0].trace;Au.hasMarkers(y)&&y.marker.maxdisplayed>0&&T{"use strict";BE.exports={container:"marker",min:"cmin",max:"cmax"}});var VE=pe((Fhe,HE)=>{"use strict";var _1=Ct();HE.exports=function(r,t,n){var a={},o={_fullLayout:n},i=_1.getFromTrace(o,t,"x"),l=_1.getFromTrace(o,t,"y"),u=r.orig_x;u===void 0&&(u=r.x);var s=r.orig_y;return s===void 0&&(s=r.y),a.xLabel=_1.tickText(i,i.c2l(u),!0).text,a.yLabel=_1.tickText(l,l.c2l(s),!0).text,a}});var bm=pe((Nhe,GE)=>{"use strict";var ym=ot(),ku=yt(),Yee=Er();function Wee(e){var r=ym.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=ym.select(this),a=t.trace||t[0].trace;mm(n,a,e)}),r.selectAll("g.text").each(function(t){var n=ym.select(this),a=t.trace||t[0].trace;xm(n,a,e)}),r.selectAll("g.trace path.js-line").call(ku.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(ku.fillGroupStyle,e,!1),Yee.getComponentMethod("errorbars","style")(r)}function mm(e,r,t){ku.pointStyle(e.selectAll("path.point"),r,t)}function xm(e,r,t){ku.textPointStyle(e.selectAll("text"),r,t)}function Xee(e,r,t){var n=r[0].trace;n.selectedpoints?(ku.selectedPointStyle(t.selectAll("path.point"),n),ku.selectedTextStyle(t.selectAll("text"),n)):(mm(t,n,e),xm(t,n,e))}GE.exports={style:Wee,stylePoints:mm,styleText:xm,styleOnSelect:Xee}});var WE=pe((zhe,YE)=>{"use strict";var Su=Zr(),Zee=oa();YE.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&Su.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var o=t.mcc||(r.marker||{}).color,i=t.mlcc||((r.marker||{}).line||{}).color;return a=o&&Su.opacity(o)?o:i&&Su.opacity(i)&&(t.mlw||((r.marker||{}).line||{}).width)?i:"",a?Su.opacity(a)<.3?Su.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&Su.opacity(n)&&Zee.hasLines(r)&&r.line.width?n:r.fillcolor)}});var JE=pe((qhe,ZE)=>{"use strict";var w1=ir(),XE=io(),Jee=Er(),Kee=WE(),_m=Zr(),Qee=w1.fillText;ZE.exports=function(r,t,n,a){var o=r.cd,i=o[0].trace,l=r.xa,u=r.ya,s=l.c2p(t),f=u.c2p(n),v=[s,f],p=i.hoveron||"",_=i.mode.indexOf("markers")!==-1?3:.5,m=!!i.xperiodalignment,w=!!i.yperiodalignment;if(p.indexOf("points")!==-1){var T=function(I){if(m){var L=l.c2p(I.xStart),P=l.c2p(I.xEnd);return s>=Math.min(L,P)&&s<=Math.max(L,P)?0:1/0}var O=Math.max(3,I.mrc||0),U=1-1/O,X=Math.abs(l.c2p(I.x)-s);return X=Math.min(L,P)&&f<=Math.max(L,P)?0:1/0}var O=Math.max(3,I.mrc||0),U=1-1/O,X=Math.abs(u.c2p(I.y)-f);return Xj!=V>=j&&(Q=K[q-1][0],ie=K[q][0],V-ee&&(ne=Q+(ie-Q)*(j-ee)/(V-ee),O=Math.min(O,ne),U=Math.max(U,ne)));return O=Math.max(O,0),U=Math.min(U,l._length),{x0:O,x1:U,y0:j,y1:j}}if(p.indexOf("fills")!==-1&&i._fillElement){var D=R(i._fillElement)&&!R(i._fillExclusionElement);if(D){var N=E(i._polygons);N===null&&(N={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var F=_m.defaultLine;return _m.opacity(i.fillcolor)?F=i.fillcolor:_m.opacity((i.line||{}).color)&&(F=i.line.color),w1.extendFlat(r,{distance:r.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:F,hovertemplate:!1}),delete r.index,i.text&&!w1.isArrayOrTypedArray(i.text)?r.text=String(i.text):r.text=i.name,[r]}}}});var $E=pe((Ohe,QE)=>{"use strict";var KE=oa();QE.exports=function(r,t){var n=r.cd,a=r.xaxis,o=r.yaxis,i=[],l=n[0].trace,u,s,f,v,p=!KE.hasMarkers(l)&&!KE.hasText(l);if(p)return[];if(t===!1)for(u=0;u{"use strict";jE.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var Mm=pe((Uhe,nL)=>{"use strict";var k0=Er().traceIs,wm=Yg();nL.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var o=n("type",(a.splomStash||{}).type);o==="-"&&($ee(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function $ee(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var o=jee(r,t,n);if(o){if(o.type==="histogram"&&n==={v:"y",h:"x"}[o.orientation||"v"]){e.type="linear";return}var i=n+"calendar",l=o[i],u={noMultiCategory:!k0(o,"cartesian")||k0(o,"noMultiCategory")};if(o.type==="box"&&o._hasPreCompStats&&n==={h:"x",v:"y"}[o.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,tL(o,n)){var s=rL(o),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(tL(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function rL(e){return{v:"x",h:"y"}[e.orientation||"v"]}function tL(e,r){var t=rL(e),n=k0(e,"box-violin"),a=k0(e._fullInput||{},"candlestick");return n&&!a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var iL=pe((Hhe,aL)=>{"use strict";var ere=ea().isTypedArraySpec;function rre(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,o,i;if(r.axData)a=r.axData;else for(a=[],o=0;o0||ere(o),l;i&&(l="array");var u=n("categoryorder",l),s;u==="array"&&(s=n("categoryarray")),!i&&u==="array"&&(u=t.categoryorder="trace"),u==="trace"?t._initialCategories=[]:u==="array"?t._initialCategories=s.slice():(s=rre(t,a).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var sL=pe((Vhe,lL)=>{"use strict";var oL=Sa().mix,tre=Ti(),nre=ir();lL.exports=function(r,t,n,a){a=a||{};var o=a.dfltColor;function i(g,c){return nre.coerce2(r,t,a.attributes,g,c)}var l=i("linecolor",o),u=i("linewidth"),s=n("showline",a.showLine||!!l||!!u);s||(delete t.linecolor,delete t.linewidth);var f=oL(o,a.bgColor,a.blend||tre.lightFraction).toRgbString(),v=i("gridcolor",f),p=i("gridwidth"),_=i("griddash"),m=n("showgrid",a.showGrid||!!v||!!p||!!_);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var w=oL(t.gridcolor,a.bgColor,67).toRgbString(),T=i("minor.gridcolor",w),y=i("minor.gridwidth",t.gridwidth||1),k=i("minor.griddash",t.griddash||"solid"),S=n("minor.showgrid",!!T||!!y||!!k);S||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var x=i("zerolinelayer"),M=i("zerolinecolor",o),d=i("zerolinewidth"),b=n("zeroline",a.showGrid||!!M||!!d);b||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var T1=pe((Ghe,dL)=>{"use strict";var uL=tt(),are=Er(),S0=ir(),ire=gt(),ore=ri(),Tm=Ra(),fL=dg(),cL=gg(),lre=xg(),sre=bg(),ure=iL(),fre=sL(),cre=v2(),vL=Dv(),M1=wn().WEEKDAY_PATTERN,vre=wn().HOUR_PATTERN;dL.exports=function(r,t,n,a,o){var i=a.letter,l=a.font||{},u=a.splomStash||{},s=n("visible",!a.visibleDflt),f=t._template||{},v=t.type||f.type||"-",p;if(v==="date"){var _=are.getComponentMethod("calendars","handleDefaults");_(r,t,"calendar",a.calendar),a.noTicklabelmode||(p=n("ticklabelmode"))}!a.noTicklabelindex&&(v==="date"||v==="linear")&&n("ticklabelindex");var m="";(!a.noTicklabelposition||v==="multicategory")&&(m=S0.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:p==="period"?["outside","inside"]:i==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),vL(t,o),cre(r,t,n,a),ure(r,t,n,a),a.noHover||(v!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var w=n("color"),T=w!==Tm.color.dflt?w:l.color,y=u.label||o._dfltTitle[i];if(sre(r,t,n,v,a),!s)return t;n("title.text",y),S0.coerceFont(n,"title.font",l,{overrideDflt:{size:S0.bigFont(l.size),color:T}}),fL(r,t,n,v);var k=a.hasMinor;if(k&&(ire.newContainer(t,"minor"),fL(r,t,n,v,{isMinor:!0})),lre(r,t,n,v,a),cL(r,t,n,a),k){var S=a.isMinor;a.isMinor=!0,cL(r,t,n,a),a.isMinor=S}fre(r,t,n,{dfltColor:w,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:k,attributes:Tm}),k&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var x=v==="multicategory";if(!a.noTickson&&(v==="category"||x)&&(t.ticks||t.showgrid)&&(x?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),x){var M=n("showdividers");M&&(n("dividercolor"),n("dividerwidth"))}if(v==="date")if(ore(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:hre}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var d=0;d=2){var i="",l,u;if(o.length===2){for(l=0;l<2;l++)if(u=hL(o[l]),u){i=M1;break}}var s=n("pattern",i);if(s===M1)for(l=0;l<2;l++)u=hL(o[l]),u&&(r.bounds[l]=o[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=o[l],s){case M1:if(!uL(u)){r.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){r.enabled=!1;return}r.bounds[l]=o[l]=u;break;case vre:if(!uL(u)){r.enabled=!1;return}if(u=+u,u<0||u>24){r.enabled=!1;return}r.bounds[l]=o[l]=u;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(o[0]>f[0]&&o[1]{"use strict";var pre=tt(),A1=ir();pL.exports=function(r,t,n,a){var o=a.counterAxes||[],i=a.overlayableAxes||[],l=a.letter,u=a.grid,s=a.overlayingDomain,f,v,p,_,m,w;u&&(v=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],v&&(p=u[l+"side"].split(" ")[0],_=u.domain[l][p==="right"||p==="top"?1:0])),v=v||[0,1],f=f||(pre(r.position)?"free":o[0]||"free"),p=p||(l==="x"?"bottom":"left"),_=_||0,m=0,w=!1;var T=A1.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:f}},"anchor"),y=A1.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:p}},"side");if(T==="free"){if(l==="y"){var k=n("autoshift");k&&(_=y==="left"?s[0]:s[1],w=t.automargin?t.automargin:!0,m=y==="left"?-3:3),n("shift",m)}n("position",_)}n("automargin",w);var S=!1;if(i.length&&(S=A1.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(i),dflt:!1}},"overlaying")),!S){var x=n("domain",v);x[0]>x[1]-1/4096&&(t.domain=v),A1.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var TL=pe((Whe,ML)=>{"use strict";var ts=ir(),gL=Zr(),gre=to().isUnifiedHover,yre=q2(),yL=gt(),mre=Ds(),mL=Ra(),xre=Mm(),xL=T1(),bre=Xf(),bL=Am(),Sm=en(),Ui=Sm.id2name,_L=Sm.name2id,_re=wn().AX_ID_PATTERN,wL=Er(),k1=wL.traceIs,km=wL.getComponentMethod;function S1(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}ML.exports=function(r,t,n){var a=t.autotypenumbers,o={},i={},l={},u={},s={},f={},v={},p={},_={},m={},w,T;for(w=0;w{"use strict";var wre=ot(),AL=Er(),C1=ir(),ba=yt(),E1=Ct();kL.exports=function(r,t,n,a){var o=r._fullLayout;if(t.length===0){E1.redrawComponents(r);return}function i(T){var y=T.xaxis,k=T.yaxis;o._defs.select("#"+T.clipId+"> rect").call(ba.setTranslate,0,0).call(ba.setScale,1,1),T.plot.call(ba.setTranslate,y._offset,k._offset).call(ba.setScale,1,1);var S=T.plot.selectAll(".scatterlayer .trace");S.selectAll(".point").call(ba.setPointGroupScale,1,1),S.selectAll(".textpoint").call(ba.setTextPointsScale,1,1),S.call(ba.hideOutsideRangePoints,T)}function l(T,y){var k=T.plotinfo,S=k.xaxis,x=k.yaxis,M=S._length,d=x._length,b=!!T.xr1,g=!!T.yr1,c=[];if(b){var A=C1.simpleMap(T.xr0,S.r2l),h=C1.simpleMap(T.xr1,S.r2l),R=A[1]-A[0],E=h[1]-h[0];c[0]=(A[0]*(1-y)+y*h[0]-A[0])/(A[1]-A[0])*M,c[2]=M*(1-y+y*E/R),S.range[0]=S.l2r(A[0]*(1-y)+y*h[0]),S.range[1]=S.l2r(A[1]*(1-y)+y*h[1])}else c[0]=0,c[2]=M;if(g){var D=C1.simpleMap(T.yr0,x.r2l),N=C1.simpleMap(T.yr1,x.r2l),F=D[1]-D[0],I=N[1]-N[0];c[1]=(D[1]*(1-y)+y*N[1]-D[1])/(D[0]-D[1])*d,c[3]=d*(1-y+y*I/F),x.range[0]=S.l2r(D[0]*(1-y)+y*N[0]),x.range[1]=x.l2r(D[1]*(1-y)+y*N[1])}else c[1]=0,c[3]=d;E1.drawOne(r,S,{skipTitle:!0}),E1.drawOne(r,x,{skipTitle:!0}),E1.redrawComponents(r,[S._id,x._id]);var L=b?M/c[2]:1,P=g?d/c[3]:1,O=b?c[0]:0,U=g?c[1]:0,X=b?c[0]/c[2]*M:0,$=g?c[1]/c[3]*d:0,j=S._offset-X,Y=x._offset-$;k.clipRect.call(ba.setTranslate,O,U).call(ba.setScale,1/L,1/P),k.plot.call(ba.setTranslate,j,Y).call(ba.setScale,L,P),ba.setPointGroupScale(k.zoomScalePts,1/L,1/P),ba.setTextPointsScale(k.zoomScaleTxt,1/L,1/P)}var u;a&&(u=a());function s(){for(var T={},y=0;yn.duration?(s(),_=window.cancelAnimationFrame(w)):_=window.requestAnimationFrame(w)}return v=Date.now(),_=window.requestAnimationFrame(w),Promise.resolve()}});var Cm=pe(Ln=>{"use strict";var R1=ot(),CL=Er(),ns=ir(),Mre=ln(),Tre=yt(),EL=Af().getModuleCalcData,Qo=en(),ui=wn(),Are=Fo(),st=ns.ensureSingle;function L1(e,r,t){return ns.ensureSingle(e,r,t,function(n){n.datum(t)})}var as=ui.zindexSeparator;Ln.name="cartesian";Ln.attr=["xaxis","yaxis"];Ln.idRoot=["x","y"];Ln.idRegex=ui.idRegex;Ln.attrRegex=ui.attrRegex;Ln.attributes=eL();Ln.layoutAttributes=Ra();Ln.supplyLayoutDefaults=TL();Ln.transitionAxes=SL();Ln.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,o=t.cartesian,i=o,l={},u={},s,f,v;for(s=0;s0){var _=p.id;if(_.indexOf(as)!==-1)continue;_+=as+(s+1),p=ns.extendFlat({},p,{id:_,plot:a._cartesianlayer.selectAll(".subplot").select("."+_)})}for(var m=[],w,T=0;T1&&(M+=as+x),S.push(l+M),i=0;i1,v=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=st(n,"path","xlines-above"),r.ylines=st(n,"path","ylines-above"),r.xaxislayer=st(n,"g","xaxislayer-above"),r.yaxislayer=st(n,"g","yaxislayer-above");else{if(!i){var p=st(n,"g","layer-subplot");r.shapelayer=st(p,"g","shapelayer"),r.imagelayer=st(p,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=st(n,"g","minor-gridlayer"),r.gridlayer=st(n,"g","gridlayer"),r.zerolinelayer=st(n,"g","zerolinelayer"));var _=st(n,"g","layer-between");r.shapelayerBetween=st(_,"g","shapelayer"),r.imagelayerBetween=st(_,"g","imagelayer"),st(n,"path","xlines-below"),st(n,"path","ylines-below"),r.overlinesBelow=st(n,"g","overlines-below"),st(n,"g","xaxislayer-below"),st(n,"g","yaxislayer-below"),r.overaxesBelow=st(n,"g","overaxes-below")}r.overplot=st(n,"g","overplot"),r.plot=st(r.overplot,"g",a),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=st(n,"g","zerolinelayer-above"),i||(r.xlines=st(n,"path","xlines-above"),r.ylines=st(n,"path","ylines-above"),r.overlinesAbove=st(n,"g","overlines-above"),st(n,"g","xaxislayer-above"),st(n,"g","yaxislayer-above"),r.overaxesAbove=st(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+u),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+u))}else{var m=v.plotgroup,w=a+"-x",T=a+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,st(v.overlinesBelow,"path",w),st(v.overlinesBelow,"path",T),st(v.overaxesBelow,"g",w),st(v.overaxesBelow,"g",T),r.plot=st(v.overplot,"g",a),st(v.overlinesAbove,"path",w),st(v.overlinesAbove,"path",T),st(v.overaxesAbove,"g",w),st(v.overaxesAbove,"g",T),r.xlines=m.select(".overlines-"+l).select("."+w),r.ylines=m.select(".overlines-"+u).select("."+T),r.xaxislayer=m.select(".overaxes-"+l).select("."+w),r.yaxislayer=m.select(".overaxes-"+u).select("."+T)}i||(s||(L1(r.minorGridlayer,"g",r.xaxis._id),L1(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(y){return y[0]}).sort(Qo.idSort),L1(r.gridlayer,"g",r.xaxis._id),L1(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(y){return y[0]}).sort(Qo.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function DL(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=R1.select(this);f.remove(),PL(s,r),t[s]=!0});for(var n in r._plots)for(var a=r._plots[n],o=a.overlays||[],i=0;i{"use strict";var D1=oa();IL.exports={hasLines:D1.hasLines,hasMarkers:D1.hasMarkers,hasText:D1.hasText,isBubble:D1.isBubble,attributes:$l(),layoutAttributes:sv(),supplyDefaults:WC(),crossTraceDefaults:KC(),supplyLayoutDefaults:$C(),calc:fm().calc,crossTraceCalc:AE(),arraysToCalcdata:g1(),plot:OE(),colorbar:UE(),formatLabels:VE(),style:bm().style,styleOnSelect:bm().styleOnSelect,hoverPoints:JE(),selectPoints:$E(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Cm(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var qL=pe((Khe,zL)=>{"use strict";var Sre=ot(),Cre=Zr(),NL=Sy(),Em=ir(),Ere=Em.strScale,Lre=Em.strRotate,Rre=Em.strTranslate;zL.exports=function(r,t,n){var a=r.node(),o=NL[n.arrowhead||0],i=NL[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),s=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=o.backoff*l+n.standoff,p=i.backoff*u+n.startstandoff,_,m,w,T;if(a.nodeName==="line"){_={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var y=_.x-m.x,k=_.y-m.y;if(w=Math.atan2(k,y),T=w+Math.PI,v&&p&&v+p>Math.sqrt(y*y+k*k)){D();return}if(v){if(v*v>y*y+k*k){D();return}var S=v*Math.cos(w),x=v*Math.sin(w);m.x+=S,m.y+=x,r.attr({x2:m.x,y2:m.y})}if(p){if(p*p>y*y+k*k){D();return}var M=p*Math.cos(w),d=p*Math.sin(w);_.x-=M,_.y-=d,r.attr({x1:_.x,y1:_.y})}}else if(a.nodeName==="path"){var b=a.getTotalLength(),g="";if(b{"use strict";var OL=ot(),Lm=Er(),Dre=ln(),jo=ir(),Rm=jo.strTranslate,E0=Ct(),is=Zr(),fo=yt(),BL=io(),Dm=Wn(),Pm=Vo(),C0=ni(),Pre=gt().arrayEditor,Ire=qL();VL.exports={draw:Fre,drawOne:UL,drawRaw:HL};function Fre(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ye="right":Ye="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ye]}for(var ee=!1,V=["x","y"],re=0;re1)&&(ue===te?(Re=de.r2fraction(r["a"+H]),(Re<0||Re>1)&&(ee=!0)):ee=!0),Ne=de._offset+de.r2p(r[H]),we=.5}else{var ce=me==="domain";H==="x"?(ge=r[H],Ne=ce?de._offset+de._length*ge:Ne=l.l+l.w*ge):(ge=1-r[H],Ne=ce?de._offset+de._length*ge:Ne=l.t+l.h*ge),we=r.showarrow?.5:ge}if(r.showarrow){Se.head=Ne;var he=r["a"+H];if(Me=Ae*ie(.5,r.xanchor)-ve*ie(.5,r.yanchor),ue===te){var ye=E0.getRefType(ue);ye==="domain"?(H==="y"&&(he=1-he),Se.tail=de._offset+de._length*he):ye==="paper"?H==="y"?(he=1-he,Se.tail=l.t+l.h*he):Se.tail=l.l+l.w*he:Se.tail=de._offset+de.r2p(he),Be=Me}else Se.tail=Ne+he,Be=Me+he;Se.text=Se.tail+Me;var Ce=i[H==="x"?"width":"height"];if(te==="paper"&&(Se.head=jo.constrain(Se.head,1,Ce-1)),ue==="pixel"){var ze=-Math.max(Se.tail-3,Se.text),qe=Math.min(Se.tail+3,Se.text)-Ce;ze>0?(Se.tail+=ze,Se.text+=ze):qe>0&&(Se.tail-=qe,Se.text-=qe)}Se.tail+=Pe,Se.head+=Pe}else Me=Te*ie(we,Ee),Be=Me,Se.text=Ne+Me;Se.text+=Pe,Me+=Pe,Be+=Pe,r["_"+H+"padplus"]=Te/2+Be,r["_"+H+"padminus"]=Te/2-Be,r["_"+H+"size"]=Te,r["_"+H+"shift"]=Me}if(ee){b.remove();return}var $e=0,We=0;if(r.align!=="left"&&($e=(q-j)*(r.align==="center"?.5:1)),r.valign!=="top"&&(We=(K-Y)*(r.valign==="middle"?.5:1)),X)U.select("svg").attr({x:A+$e-1,y:A+We}).call(fo.setClipUrl,R?w:null,e);else{var Ue=A+We-$.top,Ge=A+$e-$.left;F.call(Dm.positionText,Ge,Ue).call(fo.setClipUrl,R?w:null,e)}E.select("rect").call(fo.setRect,A,A,q,K),h.call(fo.setRect,g/2,g/2,ne-g,Q-g),b.call(fo.setTranslate,Math.round(T.x.text-ne/2),Math.round(T.y.text-Q/2)),S.attr({transform:"rotate("+y+","+T.x.text+","+T.y.text+")"});var _e=function(Ke,Ye){k.selectAll(".annotation-arrow-g").remove();var ar=T.x.head,se=T.y.head,J=T.x.tail+Ke,ae=T.y.tail+Ye,Le=T.x.text+Ke,He=T.y.text+Ye,je=jo.rotationXYMatrix(y,Le,He),nr=jo.apply2DTransform(je),ur=jo.apply2DTransform2(je),br=+h.attr("width"),Sr=+h.attr("height"),Mr=Le-.5*br,Ar=Mr+br,nt=He-.5*Sr,Yr=nt+Sr,mr=[[Mr,nt,Mr,Yr],[Mr,Yr,Ar,Yr],[Ar,Yr,Ar,nt],[Ar,nt,Mr,nt]].map(ur);if(!mr.reduce(function(at,Ft){return at^!!jo.segmentsIntersect(ar,se,ar+1e6,se+1e6,Ft[0],Ft[1],Ft[2],Ft[3])},!1)){mr.forEach(function(at){var Ft=jo.segmentsIntersect(J,ae,ar,se,at[0],at[1],at[2],at[3]);Ft&&(J=Ft.x,ae=Ft.y)});var ct=r.arrowwidth,Cr=r.arrowcolor,Ur=r.arrowside,xt=k.append("g").style({opacity:is.opacity(Cr)}).classed("annotation-arrow-g",!0),zr=xt.append("path").attr("d","M"+J+","+ae+"L"+ar+","+se).style("stroke-width",ct+"px").call(is.stroke,is.rgb(Cr));if(Ire(zr,Ur,r),u.annotationPosition&&zr.node().parentNode&&!n){var Hr=ar,Ot=se;if(r.standoff){var Lt=Math.sqrt(Math.pow(ar-J,2)+Math.pow(se-ae,2));Hr+=r.standoff*(J-ar)/Lt,Ot+=r.standoff*(ae-se)/Lt}var yn=xt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(J-Hr)+","+(ae-Ot),transform:Rm(Hr,Ot)}).style("stroke-width",ct+6+"px").call(is.stroke,"rgba(0,0,0,0)").call(is.fill,"rgba(0,0,0,0)"),Yt,Rt;C0.init({element:yn.node(),gd:e,prepFn:function(){var at=fo.getTranslate(b);Yt=at.x,Rt=at.y,a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0)},moveFn:function(at,Ft){var va=nr(Yt,Rt),Qn=va[0]+at,In=va[1]+Ft;b.call(fo.setTranslate,Qn,In),_("x",$o(a,at,"x",l,r)),_("y",$o(o,Ft,"y",l,r)),r.axref===r.xref&&_("ax",$o(a,at,"ax",l,r)),r.ayref===r.yref&&_("ay",$o(o,Ft,"ay",l,r)),xt.attr("transform",Rm(at,Ft)),S.attr({transform:"rotate("+y+","+Qn+","+In+")"})},doneFn:function(){Lm.call("_guiRelayout",e,m());var at=document.querySelector(".js-notes-box-panel");at&&at.redraw(at.selectedObj)}})}}};if(r.showarrow&&_e(0,0),x){var De;C0.init({element:b.node(),gd:e,prepFn:function(){De=S.attr("transform")},moveFn:function(Ke,Ye){var ar="pointer";if(r.showarrow)r.axref===r.xref?_("ax",$o(a,Ke,"ax",l,r)):_("ax",r.ax+Ke),r.ayref===r.yref?_("ay",$o(o,Ye,"ay",l.w,r)):_("ay",r.ay+Ye),_e(Ke,Ye);else{if(n)return;var se,J;if(a)se=$o(a,Ke,"x",l,r);else{var ae=r._xsize/l.w,Le=r.x+(r._xshift-r.xshift)/l.w-ae/2;se=C0.align(Le+Ke/l.w,ae,0,1,r.xanchor)}if(o)J=$o(o,Ye,"y",l,r);else{var He=r._ysize/l.h,je=r.y-(r._yshift+r.yshift)/l.h-He/2;J=C0.align(je-Ye/l.h,He,0,1,r.yanchor)}_("x",se),_("y",J),(!a||!o)&&(ar=C0.getCursor(a?.5:se,o?.5:J,r.xanchor,r.yanchor))}S.attr({transform:Rm(Ke,Ye)+De}),Pm(b,ar)},clickFn:function(Ke,Ye){r.captureevents&&e.emit("plotly_clickannotation",d(Ye))},doneFn:function(){Pm(b),Lm.call("_guiRelayout",e,m());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}u.annotationText?F.call(Dm.makeEditable,{delegate:b,gd:e}).call(I).on("edit",function(P){r.text=P,this.call(I),_("text",P),a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0),Lm.call("_guiRelayout",e,m())}):F.call(I)}});var JL=pe(($he,ZL)=>{"use strict";var GL=ir(),Nre=Er(),YL=gt().arrayEditor;ZL.exports={hasClickToShow:zre,onClick:qre};function zre(e,r){var t=XL(e,r);return t.on.length>0||t.explicitOff.length>0}function qre(e,r){var t=XL(e,r),n=t.on,a=t.off.concat(t.explicitOff),o={},i=e._fullLayout.annotations,l,u;if(n.length||a.length){for(l=0;l{"use strict";var Im=ir(),Cu=Zr();KL.exports=function(r,t,n,a){a("opacity");var o=a("bgcolor"),i=a("bordercolor"),l=Cu.opacity(i);a("borderpad");var u=a("borderwidth"),s=a("showarrow");a("text",s?" ":n._dfltTitle.annotation),a("textangle"),Im.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),s){var v=a("arrowside"),p,_;v.indexOf("end")!==-1&&(p=a("arrowhead"),_=a("arrowsize")),v.indexOf("start")!==-1&&(a("startarrowhead",p),a("startarrowsize",_)),a("arrowcolor",l?t.bordercolor:Cu.defaultLine),a("arrowwidth",(l&&u||1)*2),a("standoff"),a("startstandoff")}var m=a("hovertext"),w=n.hoverlabel||{};if(m){var T=a("hoverlabel.bgcolor",w.bgcolor||(Cu.opacity(o)?Cu.rgb(o):Cu.defaultLine)),y=a("hoverlabel.bordercolor",w.bordercolor||Cu.contrast(T)),k=Im.extendFlat({},w.font);k.color||(k.color=y),Im.coerceFont(a,"hoverlabel.font",k)}a("captureevents",!!m)}});var $L=pe((e1e,QL)=>{"use strict";var Nm=ir(),os=Ct(),Ore=ri(),Bre=Fm(),Ure=mu();QL.exports=function(r,t){Ore(r,t,{name:"annotations",handleItemDefaults:Hre})};function Hre(e,r,t){function n(S,x){return Nm.coerce(e,r,Ure,S,x)}var a=n("visible"),o=n("clicktoshow");if(a||o){Bre(e,r,t,n);for(var i=r.showarrow,l=["x","y"],u=[-10,-30],s={_fullLayout:t},f=0;f<2;f++){var v=l[f],p=os.coerceRef(e,r,s,v,"","paper");if(p!=="paper"){var _=os.getFromId(s,p);_._annIndices.push(r._index)}if(os.coercePosition(r,s,n,p,v,.5),i){var m="a"+v,w=os.coerceRef(e,r,s,m,"pixel",["pixel","paper"]);w!=="pixel"&&w!==p&&(w=r[m]="pixel");var T=w==="pixel"?u[f]:.4;os.coercePosition(r,s,n,w,m,T)}n(v+"anchor"),n(v+"shift")}if(Nm.noneOrAll(e,r,["x","y"]),i&&Nm.noneOrAll(e,r,["ax","ay"]),o){var y=n("xclick"),k=n("yclick");r._xclick=y===void 0?r.x:os.cleanPosition(y,s,r.xref),r._yclick=k===void 0?r.y:os.cleanPosition(k,s,r.yref)}}}});var rR=pe((r1e,eR)=>{"use strict";var zm=ir(),ls=Ct(),Vre=P1().draw;eR.exports=function(r){var t=r._fullLayout,n=zm.filterVisible(t.annotations);if(n.length&&r._fullData.length)return zm.syncOrAsync([Vre,Gre],r)};function Gre(e){var r=e._fullLayout;zm.filterVisible(r.annotations).forEach(function(t){var n=ls.getFromId(e,t.xref),a=ls.getFromId(e,t.yref),o=ls.getRefType(t.xref),i=ls.getRefType(t.yref);t._extremes={},o==="range"&&jL(t,n),i==="range"&&jL(t,a)})}function jL(e,r){var t=r._id,n=t.charAt(0),a=e[n],o=e["a"+n],i=e[n+"ref"],l=e["a"+n+"ref"],u=e["_"+n+"padplus"],s=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],v=3*e.arrowsize*e.arrowwidth||0,p=v+f,_=v-f,m=3*e.startarrowsize*e.arrowwidth||0,w=m+f,T=m-f,y;if(l===i){var k=ls.findExtremes(r,[r.r2c(a)],{ppadplus:p,ppadminus:_}),S=ls.findExtremes(r,[r.r2c(o)],{ppadplus:Math.max(u,w),ppadminus:Math.max(s,T)});y={min:[k.min[0],S.min[0]],max:[k.max[0],S.max[0]]}}else w=o?w+o:w,T=o?T-o:T,y=ls.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(u,p,w),ppadminus:Math.max(s,_,T)});e._extremes[t]=y}});var nR=pe((t1e,tR)=>{"use strict";var Yre=tt(),Wre=Ec();tR.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(!(o||i))return;var l=r._fullLayout.annotations,u=t._id.charAt(0),s,f;function v(_){var m=s[_],w=null;o?w=Wre(m,t.range):w=Math.pow(10,m),Yre(w)||(w=null),a(f+_,w)}for(var p=0;p{"use strict";var qm=P1(),aR=JL();iR.exports={moduleType:"component",name:"annotations",layoutAttributes:mu(),supplyLayoutDefaults:$L(),includeBasePlot:f0()("annotations"),calcAutorange:rR(),draw:qm.draw,drawOne:qm.drawOne,drawRaw:qm.drawRaw,hasClickToShow:aR.hasClickToShow,onClick:aR.onClick,convertCoords:nR()}});var I1=pe((a1e,lR)=>{"use strict";var wt=mu(),Xre=zn().overrideAll,Zre=gt().templatedArray;lR.exports=Xre(Zre("annotation",{visible:wt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:wt.xanchor,xshift:wt.xshift,yanchor:wt.yanchor,yshift:wt.yshift,text:wt.text,textangle:wt.textangle,font:wt.font,width:wt.width,height:wt.height,opacity:wt.opacity,align:wt.align,valign:wt.valign,bgcolor:wt.bgcolor,bordercolor:wt.bordercolor,borderpad:wt.borderpad,borderwidth:wt.borderwidth,showarrow:wt.showarrow,arrowcolor:wt.arrowcolor,arrowhead:wt.arrowhead,startarrowhead:wt.startarrowhead,arrowside:wt.arrowside,arrowsize:wt.arrowsize,startarrowsize:wt.startarrowsize,arrowwidth:wt.arrowwidth,standoff:wt.standoff,startstandoff:wt.startstandoff,hovertext:wt.hovertext,hoverlabel:wt.hoverlabel,captureevents:wt.captureevents}),"calc","from-root")});var uR=pe((i1e,sR)=>{"use strict";var Om=ir(),Jre=Ct(),Kre=ri(),Qre=Fm(),$re=I1();sR.exports=function(r,t,n){Kre(r,t,{name:"annotations",handleItemDefaults:jre,fullLayout:n.fullLayout})};function jre(e,r,t,n){function a(l,u){return Om.coerce(e,r,$re,l,u)}function o(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],Jre.coercePosition(r,s,a,l,l,.5)}var i=a("visible");i&&(Qre(e,r,n.fullLayout,a),o("x"),o("y"),o("z"),Om.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),Om.noneOrAll(e,r,["ax","ay"])))}});var hR=pe((o1e,vR)=>{"use strict";var fR=ir(),cR=Ct();vR.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function Bm(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function rte(e,r){var t=Bm(e.projection,Bm(e.view,Bm(e.model,[r[0],r[1],r[2],1])));return t}dR.exports=rte});var gR=pe((s1e,pR)=>{"use strict";var tte=P1().drawRaw,nte=Um(),ate=["x","y","z"];pR.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,o=0;o1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+o+'"]').remove():(i._pdata=nte(r.glplot.cameraParams,[t.xaxis.r2l(i.x)*n[0],t.yaxis.r2l(i.y)*n[1],t.zaxis.r2l(i.z)*n[2]]),tte(r.graphDiv,i,o,r.id,i._xa,i._ya))}}});var xR=pe((u1e,mR)=>{"use strict";var ite=Er(),yR=ir();mR.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:I1()}}},layoutAttributes:I1(),handleDefaults:uR(),includeBasePlot:ote,convert:hR(),draw:gR()};function ote(e,r){var t=ite.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),o=0;o{"use strict";var bR=mu(),_R=kn(),wR=$l().line,lte=Ao().dash,fi=Mt().extendFlat,ste=gt().templatedArray,f1e=u0(),Eu=Sn(),ute=ha().shapeTexttemplateAttrs,fte=Bc();MR.exports=ste("shape",{visible:fi({},Eu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:fi({},Eu.legend,{editType:"calc+arraydraw"}),legendgroup:fi({},Eu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:fi({},Eu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:_R({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:fi({},Eu.legendrank,{editType:"calc+arraydraw"}),legendwidth:fi({},Eu.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:fi({},bR.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:fi({},bR.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:fi({},wR.color,{editType:"arraydraw"}),width:fi({},wR.width,{editType:"calc+arraydraw"}),dash:fi({},lte,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:ute({},{keys:Object.keys(fte)}),font:_R({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var kR=pe((v1e,AR)=>{"use strict";var L0=ir(),Lu=Ct(),cte=ri(),vte=Hm(),TR=Wo();AR.exports=function(r,t){cte(r,t,{name:"shapes",handleItemDefaults:dte})};function hte(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function dte(e,r,t){function n(P,O){return L0.coerce(e,r,vte,P,O)}r._isShape=!0;var a=n("visible");if(a){var o=n("showlegend");o&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),L0.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var i=n("path"),l=i?"path":"rect",u=n("type",l),s=u!=="path";s&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));for(var v=n("xsizemode"),p=n("ysizemode"),_=["x","y"],m=0;m<2;m++){var w=_[m],T=w+"anchor",y=w==="x"?v:p,k={_fullLayout:t},S,x,M,d=Lu.coerceRef(e,r,k,w,void 0,"paper"),b=Lu.getRefType(d);if(b==="range"?(S=Lu.getFromId(k,d),S._shapeIndices.push(r._index),M=TR.rangeToShapePosition(S),x=TR.shapePositionToRange(S),(S.type==="category"||S.type==="multicategory")&&(n(w+"0shift"),n(w+"1shift"))):x=M=L0.identity,s){var g=.25,c=.75,A=w+"0",h=w+"1",R=e[A],E=e[h];e[A]=x(e[A],!0),e[h]=x(e[h],!0),y==="pixel"?(n(A,0),n(h,10)):(Lu.coercePosition(r,k,n,d,A,g),Lu.coercePosition(r,k,n,d,h,c)),r[A]=M(r[A]),r[h]=M(r[h]),e[A]=R,e[h]=E}if(y==="pixel"){var D=e[T];e[T]=x(e[T],!0),Lu.coercePosition(r,k,n,d,T,.25),r[T]=M(r[T]),e[T]=D}}s&&L0.noneOrAll(e,r,["x0","x1","y0","y1"]);var N=u==="line",F,I;if(s&&(F=n("label.texttemplate")),F||(I=n("label.text")),I||F){n("label.textangle");var L=n("label.textposition",N?"middle":"middle center");n("label.xanchor"),n("label.yanchor",hte(N,L)),n("label.padding"),L0.coerceFont(n,"label.font",t.font)}}}});var ER=pe((h1e,CR)=>{"use strict";var pte=Zr(),SR=ir();function gte(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}CR.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),SR.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var o=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",pte.contrast(o)),n("newshape.line.dash")}var i=r.dragmode==="drawline",l=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(l||u){n("newshape.label.textangle");var s=n("newshape.label.textposition",i?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",gte(i,s)),n("newshape.label.padding"),SR.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var IR=pe((d1e,PR)=>{"use strict";var Vm=ir(),Ru=Ct(),Du=Vf(),RR=Wo();PR.exports=function(r){var t=r._fullLayout,n=Vm.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a0?s+i:i;return{ppad:i,ppadplus:l?v:p,ppadminus:l?p:v}}else return{ppad:i}}function LR(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",o,i,l=0,u=0,s=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(o=r[n+"0"],i=r[n+"1"],a&&(l=r[n+"0shift"],u=r[n+"1shift"])):(o=r[n+"anchor"],i=r[n+"anchor"]),o!==void 0)return[s(o)+l,s(i)+u];if(r.path){var v=1/0,p=-1/0,_=r.path.match(Du.segmentRE),m,w,T,y,k;for(e.type==="date"&&(s=RR.decodeDate(s)),m=0;m<_.length;m++)w=_[m],T=t[w.charAt(0)].drawn,T!==void 0&&(y=_[m].substr(1).match(Du.paramRE),!(!y||y.lengthp&&(p=k)));if(p>=v)return[v,p]}}});var zR=pe((p1e,NR)=>{"use strict";var FR=Th();NR.exports={moduleType:"component",name:"shapes",layoutAttributes:Hm(),supplyLayoutDefaults:kR(),supplyDrawNewShapeDefaults:ER(),includeBasePlot:f0()("shapes"),calcAutorange:IR(),draw:FR.draw,drawOne:FR.drawOne}});var Gm=pe((y1e,OR)=>{"use strict";var qR=wn(),xte=gt().templatedArray,g1e=u0();OR.exports=xte("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",qR.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",qR.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var UR=pe((m1e,BR)=>{"use strict";var bte=ir(),Ym=Ct(),_te=ri(),wte=Gm(),Mte="images";BR.exports=function(r,t){var n={name:Mte,handleItemDefaults:Tte};_te(r,t,n)};function Tte(e,r,t){function n(p,_){return bte.coerce(e,r,wte,p,_)}var a=n("source"),o=n("visible",!!a);if(!o)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var i={_fullLayout:t},l=["x","y"],u=0;u<2;u++){var s=l[u],f=Ym.coerceRef(e,r,i,s,"paper",void 0);if(f!=="paper"){var v=Ym.getFromId(i,f);v._imgIndices.push(r._index)}Ym.coercePosition(r,i,n,f,s,0)}return r}});var YR=pe((x1e,GR)=>{"use strict";var HR=ot(),Ate=yt(),Pu=Ct(),VR=en(),kte=Fo();GR.exports=function(r){var t=r._fullLayout,n=[],a={},o=[],i,l;for(l=0;l{"use strict";var WR=tt(),Ste=Ec();XR.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(o||i){for(var l=r._fullLayout.images,u=t._id.charAt(0),s,f,v=0;v{"use strict";JR.exports={moduleType:"component",name:"images",layoutAttributes:Gm(),supplyLayoutDefaults:UR(),includeBasePlot:f0()("images"),draw:YR(),convertCoords:ZR()}});var F1=pe((w1e,QR)=>{"use strict";QR.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var Wm=pe((M1e,jR)=>{"use strict";var Cte=kn(),Ete=Ti(),Lte=Mt().extendFlat,Rte=zn().overrideAll,Dte=Uc(),$R=gt().templatedArray,Pte=$R("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});jR.exports=Rte($R("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Pte,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Lte(Dte({editType:"arraydraw"}),{}),font:Cte({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Ete.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var nD=pe((T1e,tD)=>{"use strict";var N1=ir(),eD=ri(),rD=Wm(),Ite=F1(),Fte=Ite.name,Nte=rD.buttons;tD.exports=function(r,t){var n={name:Fte,handleItemDefaults:zte};eD(r,t,n)};function zte(e,r,t){function n(i,l){return N1.coerce(e,r,rD,i,l)}var a=eD(e,r,{name:"buttons",handleItemDefaults:qte}),o=n("visible",a.length>0);o&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),N1.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),N1.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function qte(e,r){function t(a,o){return N1.coerce(e,r,Nte,a,o)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var oD=pe((A1e,iD)=>{"use strict";iD.exports=Dt;var ci=ot(),aD=Zr(),Iu=yt(),z1=ir();function Dt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Dt.barWidth=2;Dt.barLength=20;Dt.barRadius=2;Dt.barPad=1;Dt.barColor="#808BA4";Dt.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,o=a.width,i=a.height;this.position=r;var l=this.position.l,u=this.position.w,s=this.position.t,f=this.position.h,v=this.position.direction,p=v==="down",_=v==="left",m=v==="right",w=v==="up",T=u,y=f,k,S,x,M;!p&&!_&&!m&&!w&&(this.position.direction="down",p=!0);var d=p||w;d?(k=l,S=k+T,p?(x=s,M=Math.min(x+y,i),y=M-x):(M=s+y,x=Math.max(M-y,0),y=M-x)):(x=s,M=x+y,_?(S=l+T,k=Math.max(S-T,0),T=S-k):(k=l,S=Math.min(k+T,o),T=S-k)),this._box={l:k,t:x,w:T,h:y};var b=u>T,g=Dt.barLength+2*Dt.barPad,c=Dt.barWidth+2*Dt.barPad,A=l,h=s+f;h+c>i&&(h=i-c);var R=this.container.selectAll("rect.scrollbar-horizontal").data(b?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(aD.fill,Dt.barColor),b?(this.hbar=R.attr({rx:Dt.barRadius,ry:Dt.barRadius,x:A,y:h,width:g,height:c}),this._hbarXMin=A+g/2,this._hbarTranslateMax=T-g):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=f>y,D=Dt.barWidth+2*Dt.barPad,N=Dt.barLength+2*Dt.barPad,F=l+u,I=s;F+D>o&&(F=o-D);var L=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-vertical",!0).call(aD.fill,Dt.barColor),E?(this.vbar=L.attr({rx:Dt.barRadius,ry:Dt.barRadius,x:F,y:I,width:D,height:N}),this._vbarYMin=I+N/2,this._vbarTranslateMax=y-N):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var P=this.id,O=k-.5,U=E?S+D+.5:S+.5,X=x-.5,$=b?M+c+.5:M+.5,j=a._topdefs.selectAll("#"+P).data(b||E?[0]:[]);if(j.exit().remove(),j.enter().append("clipPath").attr("id",P).append("rect"),b||E?(this._clipRect=j.select("rect").attr({x:Math.floor(O),y:Math.floor(X),width:Math.ceil(U)-Math.floor(O),height:Math.ceil($)-Math.floor(X)}),this.container.call(Iu.setClipUrl,P,this.gd),this.bg.attr({x:l,y:s,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Iu.setClipUrl,null),delete this._clipRect),b||E){var Y=ci.behavior.drag().on("dragstart",function(){ci.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Y);var q=ci.behavior.drag().on("dragstart",function(){ci.event.sourceEvent.preventDefault(),ci.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));b&&this.hbar.on(".drag",null).call(q),E&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,n)};Dt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Iu.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Dt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=ci.event.dx),this.vbar&&(t-=ci.event.dy),this.setTranslate(r,t)};Dt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=ci.event.deltaY),this.vbar&&(t+=ci.event.deltaY),this.setTranslate(r,t)};Dt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,o=z1.constrain(ci.event.x,n,a),i=(o-n)/(a-n),l=this.position.w-this._box.w;r=i*l}if(this.vbar){var u=t+this._vbarYMin,s=u+this._vbarTranslateMax,f=z1.constrain(ci.event.y,u,s),v=(f-u)/(s-u),p=this.position.h-this._box.h;t=v*p}this.setTranslate(r,t)};Dt.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=z1.constrain(r||0,0,n),t=z1.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Iu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var o=r/n;this.hbar.call(Iu.setTranslate,r+o*this._hbarTranslateMax,t)}if(this.vbar){var i=t/a;this.vbar.call(Iu.setTranslate,r,t+i*this._vbarTranslateMax)}}});var gD=pe((k1e,pD)=>{"use strict";var Fu=ot(),R0=ln(),D0=Zr(),Nu=yt(),_a=ir(),q1=Wn(),Ote=gt().arrayEditor,sD=qn().LINE_SPACING,Dr=F1(),Bte=oD();pD.exports=function(r){var t=r._fullLayout,n=_a.filterVisible(t[Dr.name]);function a(p){R0.autoMargin(r,hD(p))}var o=t._menulayer.selectAll("g."+Dr.containerClassName).data(n.length>0?[0]:[]);if(o.enter().append("g").classed(Dr.containerClassName,!0).style("cursor","pointer"),o.exit().each(function(){Fu.select(this).selectAll("g."+Dr.headerGroupClassName).each(a)}).remove(),n.length!==0){var i=o.selectAll("g."+Dr.headerGroupClassName).data(n,Ute);i.enter().append("g").classed(Dr.headerGroupClassName,!0);for(var l=_a.ensureSingle(o,"g",Dr.dropdownButtonGroupClassName,function(p){p.style("pointer-events","all")}),u=0;u{"use strict";var Zte=F1();yD.exports={moduleType:"component",name:Zte.name,layoutAttributes:Wm(),supplyLayoutDefaults:nD(),draw:gD()}});var I0=pe((C1e,xD)=>{"use strict";xD.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var Km=pe((E1e,wD)=>{"use strict";var bD=kn(),Jte=Uc(),Kte=Mt().extendDeepAll,Qte=zn().overrideAll,$te=df(),_D=gt().templatedArray,ss=I0(),jte=_D("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});wD.exports=Qte(_D("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:jte,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Kte(Jte({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:$te.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:bD({})},font:bD({}),activebgcolor:{valType:"color",dflt:ss.gripBgActiveColor},bgcolor:{valType:"color",dflt:ss.railBgColor},bordercolor:{valType:"color",dflt:ss.railBorderColor},borderwidth:{valType:"number",min:0,dflt:ss.railBorderWidth},ticklen:{valType:"number",min:0,dflt:ss.tickLength},tickcolor:{valType:"color",dflt:ss.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:ss.minorTickLength}}),"arraydraw","from-root")});var kD=pe((L1e,AD)=>{"use strict";var zu=ir(),MD=ri(),TD=Km(),ene=I0(),rne=ene.name,tne=TD.steps;AD.exports=function(r,t){MD(r,t,{name:rne,handleItemDefaults:nne})};function nne(e,r,t){function n(v,p){return zu.coerce(e,r,TD,v,p)}for(var a=MD(e,r,{name:"steps",handleItemDefaults:ane}),o=0,i=0;i{"use strict";var vi=ot(),O1=ln(),el=Zr(),hi=yt(),wa=ir(),ine=wa.strTranslate,F0=Wn(),one=gt().arrayEditor,Gr=I0(),jm=qn(),ED=jm.LINE_SPACING,Qm=jm.FROM_TL,$m=jm.FROM_BR;FD.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=lne(n,r),o=n._infolayer.selectAll("g."+Gr.containerClassName).data(a.length>0?[0]:[]);o.enter().append("g").classed(Gr.containerClassName,!0).style("cursor",t?null:"ew-resize");function i(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),O1.autoMargin(r,LD(f))}if(o.exit().each(function(){vi.select(this).selectAll("g."+Gr.groupClassName).each(i)}).remove(),a.length!==0){var l=o.selectAll("g."+Gr.groupClassName).data(a,sne);l.enter().append("g").classed(Gr.groupClassName,!0),l.exit().each(i).remove();for(var u=0;u0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",ine(i-Gr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function e3(e,r){var t=e._dims;return t.inputAreaStart+Gr.stepInset+(t.inputAreaLength-2*Gr.stepInset)*Math.min(1,Math.max(0,r))}function CD(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Gr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Gr.stepInset-2*t.inputAreaStart)))}function pne(e,r,t){var n=t._dims,a=wa.ensureSingle(e,"rect",Gr.railTouchRectClass,function(o){o.call(PD,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Gr.tickOffset+t.ticklen+n.labelHeight)}).call(el.fill,t.bgcolor).attr("opacity",0),hi.setTranslate(a,0,n.currentValueTotalHeight)}function gne(e,r){var t=r._dims,n=t.inputAreaLength-Gr.railInset*2,a=wa.ensureSingle(e,"rect",Gr.railRectClass);a.attr({width:n,height:Gr.railWidth,rx:Gr.railRadius,ry:Gr.railRadius,"shape-rendering":"crispEdges"}).call(el.stroke,r.bordercolor).call(el.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),hi.setTranslate(a,Gr.railInset,(t.inputAreaWidth-Gr.railWidth)*.5+t.currentValueTotalHeight)}});var qD=pe((D1e,zD)=>{"use strict";var yne=I0();zD.exports={moduleType:"component",name:yne.name,layoutAttributes:Km(),supplyLayoutDefaults:kD(),draw:ND()}});var U1=pe((P1e,BD)=>{"use strict";var OD=Ti();BD.exports={bgcolor:{valType:"color",dflt:OD.background,editType:"plot"},bordercolor:{valType:"color",dflt:OD.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var r3=pe((I1e,UD)=>{"use strict";UD.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var H1=pe((F1e,HD)=>{"use strict";HD.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var YD=pe(G1=>{"use strict";var mne=en(),xne=Wn(),VD=H1(),bne=qn().LINE_SPACING,V1=VD.name;function GD(e){var r=e&&e[V1];return r&&r.visible}G1.isVisible=GD;G1.makeData=function(e){for(var r=mne.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var Y1=ir(),WD=gt(),XD=en(),_ne=U1(),wne=r3();ZD.exports=function(r,t,n){var a=r[n],o=t[n];if(!(a.rangeslider||t._requestRangeslider[o._id]))return;Y1.isPlainObject(a.rangeslider)||(a.rangeslider={});var i=a.rangeslider,l=WD.newContainer(o,"rangeslider");function u(M,d){return Y1.coerce(i,l,_ne,M,d)}var s,f;function v(M,d){return Y1.coerce(s,f,wne,M,d)}var p=u("visible");if(p){u("bgcolor",t.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!o.isValidRange(i.range)),u("range");var _=t._subplots;if(_)for(var m=_.cartesian.filter(function(M){return M.substr(0,M.indexOf("y"))===XD.name2id(n)}).map(function(M){return M.substr(M.indexOf("y"),M.length)}),w=Y1.simpleMap(m,XD.id2name),T=0;T{"use strict";var Mne=en().list,Tne=$s().getAutoRange,Ane=H1();KD.exports=function(r){for(var t=Mne(r,"x",!0),n=0;n{"use strict";var W1=ot(),kne=Er(),Sne=ln(),qt=ir(),X1=qt.strTranslate,jD=yt(),rl=Zr(),Cne=Rf(),Ene=Cm(),t3=en(),Lne=ni(),Rne=Vo(),Qr=H1();eP.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=L.max)F=h[I+1];else if(N=L.pmax)F=h[I+1];else if(N0?e.touches[0].clientX:0}function Dne(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Qr.slideBoxClassName).node(),o=e.select("rect."+Qr.grabAreaMinClassName).node(),i=e.select("rect."+Qr.grabAreaMaxClassName).node();function l(){var u=W1.event,s=u.target,f=$D(u),v=f-e.node().getBoundingClientRect().left,p=n.d2p(t._rl[0]),_=n.d2p(t._rl[1]),m=Lne.coverSlip();this.addEventListener("touchmove",w),this.addEventListener("touchend",T),m.addEventListener("mousemove",w),m.addEventListener("mouseup",T);function w(y){var k=$D(y),S=+k-f,x,M,d;switch(s){case a:if(d="ew-resize",p+S>t._length||_+S<0)return;x=p+S,M=_+S;break;case o:if(d="col-resize",p+S>t._length)return;x=p+S,M=_;break;case i:if(d="col-resize",_+S<0)return;x=p,M=_+S;break;default:d="ew-resize",x=v,M=v+S;break}if(M{"use strict";var Hne=ir(),Vne=U1(),Gne=r3(),n3=YD();tP.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Hne.extendFlat({},Vne,{yaxis:Gne})}}},layoutAttributes:U1(),handleDefaults:JD(),calcAutorange:QD(),draw:rP(),isVisible:n3.isVisible,makeData:n3.makeData,autoMarginOpts:n3.autoMarginOpts}});var Z1=pe((U1e,iP)=>{"use strict";var Yne=kn(),aP=Ti(),Wne=gt().templatedArray,Xne=Wne("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});iP.exports={visible:{valType:"boolean",editType:"plot"},buttons:Xne,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Yne({editType:"plot"}),bgcolor:{valType:"color",dflt:aP.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:aP.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var a3=pe((H1e,oP)=>{"use strict";oP.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var uP=pe((V1e,sP)=>{"use strict";var J1=ir(),Zne=Zr(),Jne=gt(),Kne=ri(),lP=Z1(),i3=a3();sP.exports=function(r,t,n,a,o){var i=r.rangeselector||{},l=Jne.newContainer(t,"rangeselector");function u(_,m){return J1.coerce(i,l,lP,_,m)}var s=Kne(i,l,{name:"buttons",handleItemDefaults:Qne,calendar:o}),f=u("visible",s.length>0);if(f){var v=$ne(t,n,a);u("x",v[0]),u("y",v[1]),J1.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),J1.coerceFont(u,"font",n.font);var p=u("bgcolor");u("activecolor",Zne.contrast(p,i3.lightAmount,i3.darkAmount)),u("bordercolor"),u("borderwidth")}};function Qne(e,r,t,n){var a=n.calendar;function o(u,s){return J1.coerce(e,r,lP.buttons,u,s)}var i=o("visible");if(i){var l=o("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":o("stepmode"),o("count")),o("label")}}function $ne(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,o=0;o{"use strict";var jne=ip(),eae=ir().titleCase;fP.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var o=rae(r,t);a[n+".range[0]"]=o[0],a[n+".range[1]"]=o[1]}return a};function rae(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,o=jne["utc"+eae(a)],i=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+o.offset(n,-i));break;case"todate":var u=o.offset(n,-i);l=e.l2r(+o.ceil(u));break}var s=t[1];return[l,s]}});var xP=pe((Y1e,mP)=>{"use strict";var Q1=ot(),tae=Er(),nae=ln(),vP=Zr(),yP=yt(),co=ir(),hP=co.strTranslate,K1=Wn(),aae=en(),s3=qn(),dP=s3.LINE_SPACING,pP=s3.FROM_TL,gP=s3.FROM_BR,l3=a3(),iae=cP();mP.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(oae(r),lae);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var o=Q1.select(this),i=a,l=i.rangeselector,u=o.selectAll("g.button").data(co.filterVisible(l.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(s){var f=Q1.select(this),v=iae(i,s);s._isActive=sae(i,s,v),f.call(o3,l,s),f.call(fae,l,s,r),f.on("click",function(){r._dragged||tae.call("_guiRelayout",r,v)}),f.on("mouseover",function(){s._isHovered=!0,f.call(o3,l,s)}),f.on("mouseout",function(){s._isHovered=!1,f.call(o3,l,s)})}),vae(r,u,l,i._name,o)})};function oae(e){for(var r=aae.list(e,"x",!0),t=[],n=0;n{"use strict";bP.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Z1()}}},layoutAttributes:Z1(),handleDefaults:uP(),draw:xP()}});var $1=pe(u3=>{"use strict";var wP=Mt().extendFlat;u3.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",o=r.description?" "+r.description:"",i={x:wP({},t,{}),y:wP({},t,{}),editType:e.editType};return e.noGridCell||(i.row={valType:"integer",min:0,dflt:0,editType:e.editType},i.column={valType:"integer",min:0,dflt:0,editType:e.editType}),i};u3.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],o=n&&n.y||[0,1],i=r.grid;if(i){var l=t("domain.column");l!==void 0&&(l{"use strict";var hae=ir(),dae=Es().counter,pae=$1().attributes,MP=wn().idRegex,gae=gt(),f3={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[dae("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[MP.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[MP.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:pae({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function j1(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function yae(e,r){var t=e.grid||{},n=j1(r,t,"x"),a=j1(r,t,"y");if(!e.grid&&!n&&!a)return;var o=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),i=Array.isArray(n),l=Array.isArray(a),u=i&&n!==t.xaxes&&l&&a!==t.yaxes,s,f;o?(s=t.subplots.length,f=t.subplots[0].length):(l&&(s=a.length),i&&(f=n.length));var v=gae.newContainer(r,"grid");function p(d,b){return hae.coerce(t,v,f3,d,b)}var _=p("rows",s),m=p("columns",f);if(!(_*m>1)){delete r.grid;return}if(!o&&!i&&!l){var w=p("pattern")==="independent";w&&(o=!0)}v._hasSubplotGrid=o;var T=p("roworder"),y=T==="top to bottom",k=o?.2:.1,S=o?.3:.1,x,M;u&&r._splomGridDflt&&(x=r._splomGridDflt.xside,M=r._splomGridDflt.yside),v._domains={x:TP("x",p,k,x,m),y:TP("y",p,S,M,_,y)}}function TP(e,r,t,n,a,o){var i=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var u=new Array(a),s=l[0],f=(l[1]-s)/(a-i),v=f*(1-i),p=0;p{"use strict";CP.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var RP=pe((K1e,LP)=>{"use strict";var EP=tt(),xae=Er(),bae=ir(),_ae=gt(),wae=c3();LP.exports=function(e,r,t,n){var a="error_"+n.axis,o=_ae.newContainer(r,a),i=e[a]||{};function l(m,w){return bae.coerce(i,o,wae,m,w)}var u=i.array!==void 0||i.value!==void 0||i.type==="sqrt",s=l("visible",u);if(s!==!1){var f=l("type","array"in i?"data":"percent"),v=!0;f!=="sqrt"&&(v=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in i))),f==="data"?(l("array"),l("traceref"),v||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),v||l("valueminus"));var p="copy_"+n.inherit+"style";if(n.inherit){var _=r["error_"+n.inherit];(_||{}).visible&&l(p,!(i.color||EP(i.thickness)||EP(i.width)))}(!n.inherit||!o[p])&&(l("color",t),l("thickness"),l("width",xae.traceIs(r,"gl3d")?0:4))}}});var v3=pe((Q1e,PP)=>{"use strict";PP.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(s,f){var v=+a[f];return[v,v]};var o=r.arrayminus||[];return function(s,f){var v=+a[f],p=+o[f];return!isNaN(v)||!isNaN(p)?[p||0,v||0]:[NaN,NaN]}}else{var i=DP(t,r.value),l=DP(t,r.valueminus);return n||r.valueminus===void 0?function(s){var f=i(s);return[f,f]}:function(s){return[l(s),i(s)]}}};function DP(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var NP=pe(($1e,FP)=>{"use strict";var h3=tt(),Mae=Er(),d3=Ct(),Tae=ir(),Aae=v3();FP.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var zP=ot(),tl=tt(),kae=yt(),Sae=oa();qP.exports=function(r,t,n,a){var o,i=n.xaxis,l=n.yaxis,u=a&&a.duration>0,s=r._context.staticPlot;t.each(function(f){var v=f[0].trace,p=v.error_x||{},_=v.error_y||{},m;v.ids&&(m=function(k){return k.id});var w=Sae.hasMarkers(v)&&v.marker.maxdisplayed>0;!_.visible&&!p.visible&&(f=[]);var T=zP.select(this).selectAll("g.errorbar").data(f,m);if(T.exit().remove(),!!f.length){p.visible||T.selectAll("path.xerror").remove(),_.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var y=T.enter().append("g").classed("errorbar",!0);u&&y.style("opacity",0).transition().duration(a.duration).style("opacity",1),kae.setClipUrl(T,n.layerClipId,r),T.each(function(k){var S=zP.select(this),x=Cae(k,i,l);if(!(w&&!k.vis)){var M,d=S.select("path.yerror");if(_.visible&&tl(x.x)&&tl(x.yh)&&tl(x.ys)){var b=_.width;M="M"+(x.x-b)+","+x.yh+"h"+2*b+"m-"+b+",0V"+x.ys,x.noYS||(M+="m-"+b+",0h"+2*b),o=!d.size(),o?d=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(d=d.transition().duration(a.duration).ease(a.easing)),d.attr("d",M)}else d.remove();var g=S.select("path.xerror");if(p.visible&&tl(x.y)&&tl(x.xh)&&tl(x.xs)){var c=(p.copy_ystyle?_:p).width;M="M"+x.xh+","+(x.y-c)+"v"+2*c+"m0,-"+c+"H"+x.xs,x.noXS||(M+="m0,-"+c+"v"+2*c),o=!g.size(),o?g=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("xerror",!0):u&&(g=g.transition().duration(a.duration).ease(a.easing)),g.attr("d",M)}else g.remove()}})}})};function Cae(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),tl(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),tl(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var HP=pe((ede,UP)=>{"use strict";var Eae=ot(),BP=Zr();UP.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},o=n.error_x||{},i=Eae.select(this);i.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(BP.stroke,a.color),o.copy_ystyle&&(o=a),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(BP.stroke,o.color)})}});var YP=pe((rde,GP)=>{"use strict";var N0=ir(),VP=zn().overrideAll,z0=c3(),us={error_x:N0.extendFlat({},z0),error_y:N0.extendFlat({},z0)};delete us.error_x.copy_zstyle;delete us.error_y.copy_zstyle;delete us.error_y.copy_ystyle;var q0={error_x:N0.extendFlat({},z0),error_y:N0.extendFlat({},z0),error_z:N0.extendFlat({},z0)};delete q0.error_x.copy_ystyle;delete q0.error_y.copy_ystyle;delete q0.error_z.copy_ystyle;delete q0.error_z.copy_zstyle;GP.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:us,bar:us,histogram:us,scatter3d:VP(q0,"calc","nested"),scattergl:VP(us,"calc","nested")}},supplyDefaults:RP(),calc:NP(),makeComputeError:v3(),plot:OP(),style:HP(),hoverInfo:Lae};function Lae(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var XP=pe((tde,WP)=>{"use strict";WP.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var eI=pe((nde,jP)=>{"use strict";var nl=ot(),p3=Sa(),rd=ln(),ZP=Er(),vo=Ct(),ed=ni(),Ya=ir(),pi=Ya.strTranslate,$P=Mt().extendFlat,g3=Vo(),di=yt(),y3=Zr(),Rae=Rf(),Dae=Wn(),Pae=Si().flipScale,Iae=T1(),Fae=Am(),Nae=Ra(),m3=qn(),JP=m3.LINE_SPACING,KP=m3.FROM_TL,QP=m3.FROM_BR,Et=XP().cn;function zae(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Et.colorbar).data(qae(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(Et.colorbar,!0),t.each(function(n){var a=nl.select(this);Ya.ensureSingle(a,"rect",Et.cbbg),Ya.ensureSingle(a,"g",Et.cbfills),Ya.ensureSingle(a,"g",Et.cblines),Ya.ensureSingle(a,"g",Et.cbaxis,function(i){i.classed(Et.crisp,!0)}),Ya.ensureSingle(a,"g",Et.cbtitleunshift,function(i){i.append("g").classed(Et.cbtitle,!0)}),Ya.ensureSingle(a,"rect",Et.cboutline);var o=Oae(a,n,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&Bae(a,n,e)}),t.exit().each(function(n){rd.autoMargin(e,n._id)}).remove(),t.order()}function qae(e){var r=e._fullLayout,t=e.calcdata,n=[],a,o,i,l;function u(S){return $P(S,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function s(){typeof l.calc=="function"?l.calc(e,i,a):(a._fillgradient=o.reversescale?Pae(o.colorscale):o.colorscale,a._zrange=[o[l.min],o[l.max]])}for(var f=0;f1){var re=Math.pow(10,Math.floor(Math.log(V)/Math.LN10));ie*=re*Ya.roundUp(V/re,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(ne.tick0=0)}ne.dtick=ie}ne.domain=n?[q+m/x.h,q+P-m/x.h]:[q+_/x.w,q+P-_/x.w],ne.setScale(),e.attr("transform",pi(Math.round(x.l),Math.round(x.t)));var H=e.select("."+Et.cbtitleunshift).attr("transform",pi(-Math.round(x.l),-Math.round(x.t))),te=ne.ticklabelposition,ue=ne.title.font.size,de=e.select("."+Et.cbaxis),ke,Ae=0,ve=0;function Te(Be,ge){var we={propContainer:ne,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:S._dfltTitle.colorbar,containerGroup:e.select("."+Et.cbtitle)},Me=Be.charAt(0)==="h"?Be.substr(1):"h"+Be;e.selectAll("."+Me+",."+Me+"-math-group").remove(),Rae.draw(t,Be,$P(we,ge||{}))}function Ee(){if(n&&Q||!n&&!Q){var Be,ge;g==="top"&&(Be=_+x.l+O*w,ge=m+x.t+U*(1-q-P)+3+ue*.75),g==="bottom"&&(Be=_+x.l+O*w,ge=m+x.t+U*(1-q)-3-ue*.25),g==="right"&&(ge=m+x.t+U*T+3+ue*.75,Be=_+x.l+O*q),Te(ne._id+"title",{attributes:{x:Be,y:ge,"text-anchor":n?"start":"middle"}})}}function Pe(){if(n&&!Q||!n&&Q){var Be=ne.position||0,ge=ne._offset+ne._length/2,we,Me;if(g==="right")Me=ge,we=x.l+O*Be+10+ue*(ne.showticklabels?1:.5);else if(we=ge,g==="bottom"&&(Me=x.t+U*Be+10+(te.indexOf("inside")===-1?ne.tickfont.size:0)+(ne.ticks!=="inside"&&r.ticklen||0)),g==="top"){var me=b.text.split("
").length;Me=x.t+U*Be+10-F-JP*ue*me}Te((n?"h":"v")+ne._id+"title",{avoid:{selection:nl.select(t).selectAll("g."+ne._id+"tick"),side:g,offsetTop:n?0:x.t,offsetLeft:n?x.l:0,maxShift:n?S.width:S.height},attributes:{x:we,y:Me,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Se(){if(!n&&!Q||n&&Q){var Be=e.select("."+Et.cbtitle),ge=Be.select("text"),we=[-u/2,u/2],Me=Be.select(".h"+ne._id+"title-math-group").node(),me=15.6;ge.node()&&(me=parseInt(ge.node().style.fontSize,10)*JP);var Re;if(Me?(Re=di.bBox(Me),ve=Re.width,Ae=Re.height,Ae>me&&(we[1]-=(Ae-me)/2)):ge.node()&&!ge.classed(Et.jsPlaceholder)&&(Re=di.bBox(ge.node()),ve=Re.width,Ae=Re.height),n){if(Ae){if(Ae+=5,g==="top")ne.domain[1]-=Ae/x.h,we[1]*=-1;else{ne.domain[0]+=Ae/x.h;var ce=Dae.lineCount(ge);we[1]+=(1-ce)*me}Be.attr("transform",pi(we[0],we[1])),ne.setScale()}}else ve&&(g==="right"&&(ne.domain[0]+=(ve+ue/2)/x.w),Be.attr("transform",pi(we[0],we[1])),ne.setScale())}e.selectAll("."+Et.cbfills+",."+Et.cblines).attr("transform",n?pi(0,Math.round(x.h*(1-ne.domain[1]))):pi(Math.round(x.w*ne.domain[0]),0)),de.attr("transform",n?pi(0,Math.round(-x.t)):pi(Math.round(-x.l),0));var he=e.select("."+Et.cbfills).selectAll("rect."+Et.cbfill).attr("style","").data(D);he.enter().append("rect").classed(Et.cbfill,!0).attr("style",""),he.exit().remove();var ye=c.map(ne.c2p).map(Math.round).sort(function(We,Ue){return We-Ue});he.each(function(We,Ue){var Ge=[Ue===0?c[0]:(D[Ue]+D[Ue-1])/2,Ue===D.length-1?c[1]:(D[Ue]+D[Ue+1])/2].map(ne.c2p).map(Math.round);n&&(Ge[1]=Ya.constrain(Ge[1]+(Ge[1]>Ge[0])?1:-1,ye[0],ye[1]));var _e=nl.select(this).attr(n?"x":"y",X).attr(n?"y":"x",nl.min(Ge)).attr(n?"width":"height",Math.max(F,2)).attr(n?"height":"width",Math.max(nl.max(Ge)-nl.min(Ge),2));if(r._fillgradient)di.gradient(_e,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var De=h(We).replace("e-","");_e.attr("fill",p3(De).toHexString())}});var Ce=e.select("."+Et.cblines).selectAll("path."+Et.cbline).data(d.color&&d.width?N:[]);Ce.enter().append("path").classed(Et.cbline,!0),Ce.exit().remove(),Ce.each(function(We){var Ue=X,Ge=Math.round(ne.c2p(We))+d.width/2%1;nl.select(this).attr("d","M"+(n?Ue+","+Ge:Ge+","+Ue)+(n?"h":"v")+F).call(di.lineGroupStyle,d.width,A(We),d.dash)}),de.selectAll("g."+ne._id+"tick,path").remove();var ze=X+F+(u||0)/2-(r.ticks==="outside"?1:0),qe=vo.calcTicks(ne),$e=vo.getTickSigns(ne)[2];return vo.drawTicks(t,ne,{vals:ne.ticks==="inside"?vo.clipEnds(ne,qe):qe,layer:de,path:vo.makeTickPath(ne,ze,$e),transFn:vo.makeTransTickFn(ne)}),vo.drawLabels(t,ne,{vals:qe,layer:de,transFn:vo.makeTransTickLabelFn(ne),labelFns:vo.makeLabelFns(ne,ze)})}function Ne(){var Be,ge=F+u/2;te.indexOf("inside")===-1&&(Be=di.bBox(de.node()),ge+=n?Be.width:Be.height),ke=H.select("text");var we=0,Me=n&&g==="top",me=!n&&g==="right",Re=0;if(ke.node()&&!ke.classed(Et.jsPlaceholder)){var ce,he=H.select(".h"+ne._id+"title-math-group").node();he&&(n&&Q||!n&&!Q)?(Be=di.bBox(he),we=Be.width,ce=Be.height):(Be=di.bBox(H.node()),we=Be.right-x.l-(n?X:K),ce=Be.bottom-x.t-(n?K:X),!n&&g==="top"&&(ge+=Be.height,Re=Be.height)),me&&(ke.attr("transform",pi(we/2+ue/2,0)),we*=2),ge=Math.max(ge,n?we:ce)}var ye=(n?_:m)*2+ge+s+u/2,Ce=0;!n&&b.text&&p==="bottom"&&T<=0&&(Ce=ye/2,ye+=Ce,Re+=Ce),S._hColorbarMoveTitle=Ce,S._hColorbarMoveCBTitle=Re;var ze=s+u,qe=(n?X:K)-ze/2-(n?_:0),$e=(n?K:X)-(n?L:m+Re-Ce);e.select("."+Et.cbbg).attr("x",qe).attr("y",$e).attr(n?"width":"height",Math.max(ye-Ce,2)).attr(n?"height":"width",Math.max(L+ze,2)).call(y3.fill,f).call(y3.stroke,r.bordercolor).style("stroke-width",s);var We=me?Math.max(we-10,0):0;e.selectAll("."+Et.cboutline).attr("x",(n?X:K+_)+We).attr("y",(n?K+m-L:X)+(Me?Ae:0)).attr(n?"width":"height",Math.max(F,2)).attr(n?"height":"width",Math.max(L-(n?2*m+Ae:2*_+We),2)).call(y3.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var Ue=n?$*ye:0,Ge=n?0:(1-j)*ye-Re;if(Ue=k?x.l-Ue:-Ue,Ge=y?x.t-Ge:-Ge,e.attr("transform",pi(Ue,Ge)),!n&&(s||p3(f).getAlpha()&&!p3.equals(S.paper_bgcolor,f))){var _e=de.selectAll("text"),De=_e[0].length,Ke=e.select("."+Et.cbbg).node(),Ye=di.bBox(Ke),ar=di.getTranslate(e),se=2;_e.each(function(Mr,Ar){var nt=0,Yr=De-1;if(Ar===nt||Ar===Yr){var mr=di.bBox(this),ct=di.getTranslate(this),Cr;if(Ar===Yr){var Ur=mr.right+ct.x,xt=Ye.right+ar.x+K-s-se+w;Cr=xt-Ur,Cr>0&&(Cr=0)}else if(Ar===nt){var zr=mr.left+ct.x,Hr=Ye.left+ar.x+K+s+se;Cr=Hr-zr,Cr<0&&(Cr=0)}Cr&&(De<3?this.setAttribute("transform","translate("+Cr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var J={},ae=KP[v],Le=QP[v],He=KP[p],je=QP[p],nr=ye-F;n?(o==="pixels"?(J.y=T,J.t=L*He,J.b=L*je):(J.t=J.b=0,J.yt=T+a*He,J.yb=T-a*je),l==="pixels"?(J.x=w,J.l=ye*ae,J.r=ye*Le):(J.l=nr*ae,J.r=nr*Le,J.xl=w-i*ae,J.xr=w+i*Le)):(o==="pixels"?(J.x=w,J.l=L*ae,J.r=L*Le):(J.l=J.r=0,J.xl=w+a*ae,J.xr=w-a*Le),l==="pixels"?(J.y=1-T,J.t=ye*He,J.b=ye*je):(J.t=nr*He,J.b=nr*je,J.yt=T-i*He,J.yb=T+i*je));var ur=r.y<.5?"b":"t",br=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Sr={r:S.width-qe-Ue,l:qe+J.r,b:S.height-$e-Ge,t:$e+J.b};k&&y?rd.autoMargin(t,r._id,J):k?t._fullLayout._reservedMargin[r._id][ur]=Sr[ur]:y||n?t._fullLayout._reservedMargin[r._id][br]=Sr[br]:t._fullLayout._reservedMargin[r._id][ur]=Sr[ur]}return Ya.syncOrAsync([rd.previousPromises,Ee,Se,Pe,rd.previousPromises,Ne],t)}function Bae(e,r,t){var n=r.orientation==="v",a=t._fullLayout,o=a._size,i,l,u;ed.init({element:e.node(),gd:t,prepFn:function(){i=e.attr("transform"),g3(e)},moveFn:function(s,f){e.attr("transform",i+pi(s,f)),l=ed.align((n?r._uFrac:r._vFrac)+s/o.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=ed.align((n?r._vFrac:1-r._uFrac)-f/o.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=ed.getCursor(l,u,r.xanchor,r.yanchor);g3(e,v)},doneFn:function(){if(g3(e),l!==void 0&&u!==void 0){var s={};s[r._propPrefix+"x"]=l,s[r._propPrefix+"y"]=u,r._traceIndex!==void 0?ZP.call("_guiRestyle",t,s,r._traceIndex):ZP.call("_guiRelayout",t,s)}}})}function Uae(e,r,t){var n=r._levels,a=[],o=[],i,l,u=n.end+n.size/100,s=n.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(i=n.start+l*s,!(s>0?i>=u:i<=u));l++)i>f&&i0?i>=u:i<=u));l++)i>t[0]&&i{"use strict";rI.exports={moduleType:"component",name:"colorbar",attributes:gv(),supplyDefaults:_g(),draw:eI().draw,hasColorbar:fg()}});var aI=pe((ide,nI)=>{"use strict";nI.exports={moduleType:"component",name:"legend",layoutAttributes:y2(),supplyLayoutDefaults:b2(),draw:P2(),style:E2()}});var oI=pe((ode,iI)=>{"use strict";iI.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var sI=pe((lde,lI)=>{"use strict";lI.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var b3=pe((sde,vI)=>{"use strict";var Vae=Er(),cI=ir(),x3=cI.extendFlat,uI=cI.extendDeep;function fI(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Gae(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}vI.exports=function(r,t){var n,a=r.data,o=r.layout,i=uI([],a),l=uI({},o,fI(t.tileClass)),u=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var s=Object.keys(l);for(n=0;n{"use strict";var Yae=nv().EventEmitter,Wae=Er(),Xae=ir(),hI=jl(),Zae=b3(),Jae=s1(),Kae=u1();function Qae(e,r){var t=new Yae,n=Zae(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=hI.getDelay(a._fullLayout);setTimeout(function(){var u=Jae(a),s=document.createElement("canvas");s.id=Xae.randstr(),t=Kae({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:s,emitter:t,svg:u}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var i=hI.getRedrawFunc(a);return Wae.call("_doPlot",a,n.data,n.layout,n.config).then(i).then(o).catch(function(l){t.emit("error",l)}),t}dI.exports=Qae});var mI=pe((fde,yI)=>{"use strict";var gI=jl(),$ae={getDelay:gI.getDelay,getRedrawFunc:gI.getRedrawFunc,clone:b3(),toSVG:s1(),svgToImg:u1(),toImage:pI(),downloadImage:Qy()};yI.exports=$ae});var bI=pe(ho=>{"use strict";ho.version=xc().version;lb();Q6();var jae=Er(),O0=ho.register=jae.register,w3=wC(),xI=Object.keys(w3);for(td=0;td{"use strict";_I.exports=bI()});var pn=pe((hde,MI)=>{(function(){var e={1964:function(a,o,i){a.exports={alpha_shape:i(3502),convex_hull:i(7352),delaunay_triangulate:i(7642),gl_cone3d:i(6405),gl_error3d:i(9165),gl_line3d:i(5714),gl_mesh3d:i(7201),gl_plot3d:i(4100),gl_scatter3d:i(8418),gl_streamtube3d:i(7815),gl_surface3d:i(9499),ndarray:i(9618),ndarray_linear_interpolate:i(4317)}},4793:function(a,o,i){"use strict";var l;function u(se,J){if(!(se instanceof J))throw new TypeError("Cannot call a class as a function")}function s(se,J){for(var ae=0;aeg)throw new RangeError('The value "'+se+'" is invalid for option "size"');var J=new Uint8Array(se);return Object.setPrototypeOf(J,h.prototype),J}function h(se,J,ae){if(typeof se=="number"){if(typeof J=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return N(se)}return R(se,J,ae)}h.poolSize=8192;function R(se,J,ae){if(typeof se=="string")return F(se,J);if(ArrayBuffer.isView(se))return L(se);if(se==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+x(se));if(_e(se,ArrayBuffer)||se&&_e(se.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_e(se,SharedArrayBuffer)||se&&_e(se.buffer,SharedArrayBuffer)))return P(se,J,ae);if(typeof se=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Le=se.valueOf&&se.valueOf();if(Le!=null&&Le!==se)return h.from(Le,J,ae);var He=O(se);if(He)return He;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof se[Symbol.toPrimitive]=="function")return h.from(se[Symbol.toPrimitive]("string"),J,ae);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+x(se))}h.from=function(se,J,ae){return R(se,J,ae)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array);function E(se){if(typeof se!="number")throw new TypeError('"size" argument must be of type number');if(se<0)throw new RangeError('The value "'+se+'" is invalid for option "size"')}function D(se,J,ae){return E(se),se<=0?A(se):J!==void 0?typeof ae=="string"?A(se).fill(J,ae):A(se).fill(J):A(se)}h.alloc=function(se,J,ae){return D(se,J,ae)};function N(se){return E(se),A(se<0?0:U(se)|0)}h.allocUnsafe=function(se){return N(se)},h.allocUnsafeSlow=function(se){return N(se)};function F(se,J){if((typeof J!="string"||J==="")&&(J="utf8"),!h.isEncoding(J))throw new TypeError("Unknown encoding: "+J);var ae=$(se,J)|0,Le=A(ae),He=Le.write(se,J);return He!==ae&&(Le=Le.slice(0,He)),Le}function I(se){for(var J=se.length<0?0:U(se.length)|0,ae=A(J),Le=0;Le=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return se|0}function X(se){return+se!=se&&(se=0),h.alloc(+se)}h.isBuffer=function(J){return J!=null&&J._isBuffer===!0&&J!==h.prototype},h.compare=function(J,ae){if(_e(J,Uint8Array)&&(J=h.from(J,J.offset,J.byteLength)),_e(ae,Uint8Array)&&(ae=h.from(ae,ae.offset,ae.byteLength)),!h.isBuffer(J)||!h.isBuffer(ae))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(J===ae)return 0;for(var Le=J.length,He=ae.length,je=0,nr=Math.min(Le,He);jeHe.length?(h.isBuffer(nr)||(nr=h.from(nr)),nr.copy(He,je)):Uint8Array.prototype.set.call(He,nr,je);else if(h.isBuffer(nr))nr.copy(He,je);else throw new TypeError('"list" argument must be an Array of Buffers');je+=nr.length}return He};function $(se,J){if(h.isBuffer(se))return se.length;if(ArrayBuffer.isView(se)||_e(se,ArrayBuffer))return se.byteLength;if(typeof se!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+x(se));var ae=se.length,Le=arguments.length>2&&arguments[2]===!0;if(!Le&&ae===0)return 0;for(var He=!1;;)switch(J){case"ascii":case"latin1":case"binary":return ae;case"utf8":case"utf-8":return qe(se).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae*2;case"hex":return ae>>>1;case"base64":return Ue(se).length;default:if(He)return Le?-1:qe(se).length;J=(""+J).toLowerCase(),He=!0}}h.byteLength=$;function j(se,J,ae){var Le=!1;if((J===void 0||J<0)&&(J=0),J>this.length||((ae===void 0||ae>this.length)&&(ae=this.length),ae<=0)||(ae>>>=0,J>>>=0,ae<=J))return"";for(se||(se="utf8");;)switch(se){case"hex":return Ae(this,J,ae);case"utf8":case"utf-8":return H(this,J,ae);case"ascii":return de(this,J,ae);case"latin1":case"binary":return ke(this,J,ae);case"base64":return re(this,J,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,J,ae);default:if(Le)throw new TypeError("Unknown encoding: "+se);se=(se+"").toLowerCase(),Le=!0}}h.prototype._isBuffer=!0;function Y(se,J,ae){var Le=se[J];se[J]=se[ae],se[ae]=Le}h.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ae=0;aeae&&(J+=" ... "),""},b&&(h.prototype[b]=h.prototype.inspect),h.prototype.compare=function(J,ae,Le,He,je){if(_e(J,Uint8Array)&&(J=h.from(J,J.offset,J.byteLength)),!h.isBuffer(J))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+x(J));if(ae===void 0&&(ae=0),Le===void 0&&(Le=J?J.length:0),He===void 0&&(He=0),je===void 0&&(je=this.length),ae<0||Le>J.length||He<0||je>this.length)throw new RangeError("out of range index");if(He>=je&&ae>=Le)return 0;if(He>=je)return-1;if(ae>=Le)return 1;if(ae>>>=0,Le>>>=0,He>>>=0,je>>>=0,this===J)return 0;for(var nr=je-He,ur=Le-ae,br=Math.min(nr,ur),Sr=this.slice(He,je),Mr=J.slice(ae,Le),Ar=0;Ar2147483647?ae=2147483647:ae<-2147483648&&(ae=-2147483648),ae=+ae,De(ae)&&(ae=He?0:se.length-1),ae<0&&(ae=se.length+ae),ae>=se.length){if(He)return-1;ae=se.length-1}else if(ae<0)if(He)ae=0;else return-1;if(typeof J=="string"&&(J=h.from(J,Le)),h.isBuffer(J))return J.length===0?-1:K(se,J,ae,Le,He);if(typeof J=="number")return J=J&255,typeof Uint8Array.prototype.indexOf=="function"?He?Uint8Array.prototype.indexOf.call(se,J,ae):Uint8Array.prototype.lastIndexOf.call(se,J,ae):K(se,[J],ae,Le,He);throw new TypeError("val must be string, number or Buffer")}function K(se,J,ae,Le,He){var je=1,nr=se.length,ur=J.length;if(Le!==void 0&&(Le=String(Le).toLowerCase(),Le==="ucs2"||Le==="ucs-2"||Le==="utf16le"||Le==="utf-16le")){if(se.length<2||J.length<2)return-1;je=2,nr/=2,ur/=2,ae/=2}function br(Yr,mr){return je===1?Yr[mr]:Yr.readUInt16BE(mr*je)}var Sr;if(He){var Mr=-1;for(Sr=ae;Srnr&&(ae=nr-ur),Sr=ae;Sr>=0;Sr--){for(var Ar=!0,nt=0;ntHe&&(Le=He)):Le=He;var je=J.length;Le>je/2&&(Le=je/2);var nr;for(nr=0;nr>>0,isFinite(Le)?(Le=Le>>>0,He===void 0&&(He="utf8")):(He=Le,Le=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var je=this.length-ae;if((Le===void 0||Le>je)&&(Le=je),J.length>0&&(Le<0||ae<0)||ae>this.length)throw new RangeError("Attempt to write outside buffer bounds");He||(He="utf8");for(var nr=!1;;)switch(He){case"hex":return ne(this,J,ae,Le);case"utf8":case"utf-8":return Q(this,J,ae,Le);case"ascii":case"latin1":case"binary":return ie(this,J,ae,Le);case"base64":return ee(this,J,ae,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,J,ae,Le);default:if(nr)throw new TypeError("Unknown encoding: "+He);He=(""+He).toLowerCase(),nr=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(se,J,ae){return J===0&&ae===se.length?M.fromByteArray(se):M.fromByteArray(se.slice(J,ae))}function H(se,J,ae){ae=Math.min(se.length,ae);for(var Le=[],He=J;He239?4:je>223?3:je>191?2:1;if(He+ur<=ae){var br=void 0,Sr=void 0,Mr=void 0,Ar=void 0;switch(ur){case 1:je<128&&(nr=je);break;case 2:br=se[He+1],(br&192)===128&&(Ar=(je&31)<<6|br&63,Ar>127&&(nr=Ar));break;case 3:br=se[He+1],Sr=se[He+2],(br&192)===128&&(Sr&192)===128&&(Ar=(je&15)<<12|(br&63)<<6|Sr&63,Ar>2047&&(Ar<55296||Ar>57343)&&(nr=Ar));break;case 4:br=se[He+1],Sr=se[He+2],Mr=se[He+3],(br&192)===128&&(Sr&192)===128&&(Mr&192)===128&&(Ar=(je&15)<<18|(br&63)<<12|(Sr&63)<<6|Mr&63,Ar>65535&&Ar<1114112&&(nr=Ar))}}nr===null?(nr=65533,ur=1):nr>65535&&(nr-=65536,Le.push(nr>>>10&1023|55296),nr=56320|nr&1023),Le.push(nr),He+=ur}return ue(Le)}var te=4096;function ue(se){var J=se.length;if(J<=te)return String.fromCharCode.apply(String,se);for(var ae="",Le=0;LeLe)&&(ae=Le);for(var He="",je=J;jeLe&&(J=Le),ae<0?(ae+=Le,ae<0&&(ae=0)):ae>Le&&(ae=Le),aeae)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUintLE=h.prototype.readUIntLE=function(J,ae,Le){J=J>>>0,ae=ae>>>0,Le||Te(J,ae,this.length);for(var He=this[J],je=1,nr=0;++nr>>0,ae=ae>>>0,Le||Te(J,ae,this.length);for(var He=this[J+--ae],je=1;ae>0&&(je*=256);)He+=this[J+--ae]*je;return He},h.prototype.readUint8=h.prototype.readUInt8=function(J,ae){return J=J>>>0,ae||Te(J,1,this.length),this[J]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(J,ae){return J=J>>>0,ae||Te(J,2,this.length),this[J]|this[J+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(J,ae){return J=J>>>0,ae||Te(J,2,this.length),this[J]<<8|this[J+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(J,ae){return J=J>>>0,ae||Te(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(J,ae){return J=J>>>0,ae||Te(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},h.prototype.readBigUInt64LE=Ye(function(J){J=J>>>0,he(J,"offset");var ae=this[J],Le=this[J+7];(ae===void 0||Le===void 0)&&ye(J,this.length-8);var He=ae+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,24),je=this[++J]+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+Le*Math.pow(2,24);return BigInt(He)+(BigInt(je)<>>0,he(J,"offset");var ae=this[J],Le=this[J+7];(ae===void 0||Le===void 0)&&ye(J,this.length-8);var He=ae*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J],je=this[++J]*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+Le;return(BigInt(He)<>>0,ae=ae>>>0,Le||Te(J,ae,this.length);for(var He=this[J],je=1,nr=0;++nr=je&&(He-=Math.pow(2,8*ae)),He},h.prototype.readIntBE=function(J,ae,Le){J=J>>>0,ae=ae>>>0,Le||Te(J,ae,this.length);for(var He=ae,je=1,nr=this[J+--He];He>0&&(je*=256);)nr+=this[J+--He]*je;return je*=128,nr>=je&&(nr-=Math.pow(2,8*ae)),nr},h.prototype.readInt8=function(J,ae){return J=J>>>0,ae||Te(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},h.prototype.readInt16LE=function(J,ae){J=J>>>0,ae||Te(J,2,this.length);var Le=this[J]|this[J+1]<<8;return Le&32768?Le|4294901760:Le},h.prototype.readInt16BE=function(J,ae){J=J>>>0,ae||Te(J,2,this.length);var Le=this[J+1]|this[J]<<8;return Le&32768?Le|4294901760:Le},h.prototype.readInt32LE=function(J,ae){return J=J>>>0,ae||Te(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},h.prototype.readInt32BE=function(J,ae){return J=J>>>0,ae||Te(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},h.prototype.readBigInt64LE=Ye(function(J){J=J>>>0,he(J,"offset");var ae=this[J],Le=this[J+7];(ae===void 0||Le===void 0)&&ye(J,this.length-8);var He=this[J+4]+this[J+5]*Math.pow(2,8)+this[J+6]*Math.pow(2,16)+(Le<<24);return(BigInt(He)<>>0,he(J,"offset");var ae=this[J],Le=this[J+7];(ae===void 0||Le===void 0)&&ye(J,this.length-8);var He=(ae<<24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J];return(BigInt(He)<>>0,ae||Te(J,4,this.length),d.read(this,J,!0,23,4)},h.prototype.readFloatBE=function(J,ae){return J=J>>>0,ae||Te(J,4,this.length),d.read(this,J,!1,23,4)},h.prototype.readDoubleLE=function(J,ae){return J=J>>>0,ae||Te(J,8,this.length),d.read(this,J,!0,52,8)},h.prototype.readDoubleBE=function(J,ae){return J=J>>>0,ae||Te(J,8,this.length),d.read(this,J,!1,52,8)};function Ee(se,J,ae,Le,He,je){if(!h.isBuffer(se))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>He||Jse.length)throw new RangeError("Index out of range")}h.prototype.writeUintLE=h.prototype.writeUIntLE=function(J,ae,Le,He){if(J=+J,ae=ae>>>0,Le=Le>>>0,!He){var je=Math.pow(2,8*Le)-1;Ee(this,J,ae,Le,je,0)}var nr=1,ur=0;for(this[ae]=J&255;++ur>>0,Le=Le>>>0,!He){var je=Math.pow(2,8*Le)-1;Ee(this,J,ae,Le,je,0)}var nr=Le-1,ur=1;for(this[ae+nr]=J&255;--nr>=0&&(ur*=256);)this[ae+nr]=J/ur&255;return ae+Le},h.prototype.writeUint8=h.prototype.writeUInt8=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,1,255,0),this[ae]=J&255,ae+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,2,65535,0),this[ae]=J&255,this[ae+1]=J>>>8,ae+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,2,65535,0),this[ae]=J>>>8,this[ae+1]=J&255,ae+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,4,4294967295,0),this[ae+3]=J>>>24,this[ae+2]=J>>>16,this[ae+1]=J>>>8,this[ae]=J&255,ae+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,4,4294967295,0),this[ae]=J>>>24,this[ae+1]=J>>>16,this[ae+2]=J>>>8,this[ae+3]=J&255,ae+4};function Pe(se,J,ae,Le,He){ce(J,Le,He,se,ae,7);var je=Number(J&BigInt(4294967295));se[ae++]=je,je=je>>8,se[ae++]=je,je=je>>8,se[ae++]=je,je=je>>8,se[ae++]=je;var nr=Number(J>>BigInt(32)&BigInt(4294967295));return se[ae++]=nr,nr=nr>>8,se[ae++]=nr,nr=nr>>8,se[ae++]=nr,nr=nr>>8,se[ae++]=nr,ae}function Se(se,J,ae,Le,He){ce(J,Le,He,se,ae,7);var je=Number(J&BigInt(4294967295));se[ae+7]=je,je=je>>8,se[ae+6]=je,je=je>>8,se[ae+5]=je,je=je>>8,se[ae+4]=je;var nr=Number(J>>BigInt(32)&BigInt(4294967295));return se[ae+3]=nr,nr=nr>>8,se[ae+2]=nr,nr=nr>>8,se[ae+1]=nr,nr=nr>>8,se[ae]=nr,ae+8}h.prototype.writeBigUInt64LE=Ye(function(J){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Pe(this,J,ae,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeBigUInt64BE=Ye(function(J){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Se(this,J,ae,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeIntLE=function(J,ae,Le,He){if(J=+J,ae=ae>>>0,!He){var je=Math.pow(2,8*Le-1);Ee(this,J,ae,Le,je-1,-je)}var nr=0,ur=1,br=0;for(this[ae]=J&255;++nr>0)-br&255;return ae+Le},h.prototype.writeIntBE=function(J,ae,Le,He){if(J=+J,ae=ae>>>0,!He){var je=Math.pow(2,8*Le-1);Ee(this,J,ae,Le,je-1,-je)}var nr=Le-1,ur=1,br=0;for(this[ae+nr]=J&255;--nr>=0&&(ur*=256);)J<0&&br===0&&this[ae+nr+1]!==0&&(br=1),this[ae+nr]=(J/ur>>0)-br&255;return ae+Le},h.prototype.writeInt8=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,1,127,-128),J<0&&(J=255+J+1),this[ae]=J&255,ae+1},h.prototype.writeInt16LE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,2,32767,-32768),this[ae]=J&255,this[ae+1]=J>>>8,ae+2},h.prototype.writeInt16BE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,2,32767,-32768),this[ae]=J>>>8,this[ae+1]=J&255,ae+2},h.prototype.writeInt32LE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,4,2147483647,-2147483648),this[ae]=J&255,this[ae+1]=J>>>8,this[ae+2]=J>>>16,this[ae+3]=J>>>24,ae+4},h.prototype.writeInt32BE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),this[ae]=J>>>24,this[ae+1]=J>>>16,this[ae+2]=J>>>8,this[ae+3]=J&255,ae+4},h.prototype.writeBigInt64LE=Ye(function(J){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Pe(this,J,ae,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),h.prototype.writeBigInt64BE=Ye(function(J){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Se(this,J,ae,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ne(se,J,ae,Le,He,je){if(ae+Le>se.length)throw new RangeError("Index out of range");if(ae<0)throw new RangeError("Index out of range")}function Be(se,J,ae,Le,He){return J=+J,ae=ae>>>0,He||Ne(se,J,ae,4,34028234663852886e22,-34028234663852886e22),d.write(se,J,ae,Le,23,4),ae+4}h.prototype.writeFloatLE=function(J,ae,Le){return Be(this,J,ae,!0,Le)},h.prototype.writeFloatBE=function(J,ae,Le){return Be(this,J,ae,!1,Le)};function ge(se,J,ae,Le,He){return J=+J,ae=ae>>>0,He||Ne(se,J,ae,8,17976931348623157e292,-17976931348623157e292),d.write(se,J,ae,Le,52,8),ae+8}h.prototype.writeDoubleLE=function(J,ae,Le){return ge(this,J,ae,!0,Le)},h.prototype.writeDoubleBE=function(J,ae,Le){return ge(this,J,ae,!1,Le)},h.prototype.copy=function(J,ae,Le,He){if(!h.isBuffer(J))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!He&&He!==0&&(He=this.length),ae>=J.length&&(ae=J.length),ae||(ae=0),He>0&&He=this.length)throw new RangeError("Index out of range");if(He<0)throw new RangeError("sourceEnd out of bounds");He>this.length&&(He=this.length),J.length-ae>>0,Le=Le===void 0?this.length:Le>>>0,J||(J=0);var nr;if(typeof J=="number")for(nr=ae;nrMath.pow(2,32)?He=me(String(ae)):typeof ae=="bigint"&&(He=String(ae),(ae>Math.pow(BigInt(2),BigInt(32))||ae<-Math.pow(BigInt(2),BigInt(32)))&&(He=me(He)),He+="n"),Le+=" It must be ".concat(J,". Received ").concat(He),Le},RangeError);function me(se){for(var J="",ae=se.length,Le=se[0]==="-"?1:0;ae>=Le+4;ae-=3)J="_".concat(se.slice(ae-3,ae)).concat(J);return"".concat(se.slice(0,ae)).concat(J)}function Re(se,J,ae){he(J,"offset"),(se[J]===void 0||se[J+ae]===void 0)&&ye(J,se.length-(ae+1))}function ce(se,J,ae,Le,He,je){if(se>ae||se3?J===0||J===BigInt(0)?ur=">= 0".concat(nr," and < 2").concat(nr," ** ").concat((je+1)*8).concat(nr):ur=">= -(2".concat(nr," ** ").concat((je+1)*8-1).concat(nr,") and < 2 ** ")+"".concat((je+1)*8-1).concat(nr):ur=">= ".concat(J).concat(nr," and <= ").concat(ae).concat(nr),new we.ERR_OUT_OF_RANGE("value",ur,se)}Re(Le,He,je)}function he(se,J){if(typeof se!="number")throw new we.ERR_INVALID_ARG_TYPE(J,"number",se)}function ye(se,J,ae){throw Math.floor(se)!==se?(he(se,ae),new we.ERR_OUT_OF_RANGE(ae||"offset","an integer",se)):J<0?new we.ERR_BUFFER_OUT_OF_BOUNDS:new we.ERR_OUT_OF_RANGE(ae||"offset",">= ".concat(ae?1:0," and <= ").concat(J),se)}var Ce=/[^+/0-9A-Za-z-_]/g;function ze(se){if(se=se.split("=")[0],se=se.trim().replace(Ce,""),se.length<2)return"";for(;se.length%4!==0;)se=se+"=";return se}function qe(se,J){J=J||1/0;for(var ae,Le=se.length,He=null,je=[],nr=0;nr55295&&ae<57344){if(!He){if(ae>56319){(J-=3)>-1&&je.push(239,191,189);continue}else if(nr+1===Le){(J-=3)>-1&&je.push(239,191,189);continue}He=ae;continue}if(ae<56320){(J-=3)>-1&&je.push(239,191,189),He=ae;continue}ae=(He-55296<<10|ae-56320)+65536}else He&&(J-=3)>-1&&je.push(239,191,189);if(He=null,ae<128){if((J-=1)<0)break;je.push(ae)}else if(ae<2048){if((J-=2)<0)break;je.push(ae>>6|192,ae&63|128)}else if(ae<65536){if((J-=3)<0)break;je.push(ae>>12|224,ae>>6&63|128,ae&63|128)}else if(ae<1114112){if((J-=4)<0)break;je.push(ae>>18|240,ae>>12&63|128,ae>>6&63|128,ae&63|128)}else throw new Error("Invalid code point")}return je}function $e(se){for(var J=[],ae=0;ae>8,He=ae%256,je.push(He),je.push(Le);return je}function Ue(se){return M.toByteArray(ze(se))}function Ge(se,J,ae,Le){var He;for(He=0;He=J.length||He>=se.length);++He)J[He+ae]=se[He];return He}function _e(se,J){return se instanceof J||se!=null&&se.constructor!=null&&se.constructor.name!=null&&se.constructor.name===J.name}function De(se){return se!==se}var Ke=function(){for(var se="0123456789abcdef",J=new Array(256),ae=0;ae<16;++ae)for(var Le=ae*16,He=0;He<16;++He)J[Le+He]=se[ae]+se[He];return J}();function Ye(se){return typeof BigInt=="undefined"?ar:se}function ar(){throw new Error("BigInt not supported")}},9216:function(a){"use strict";a.exports=u,a.exports.isMobile=u,a.exports.default=u;var o=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/CrOS/,l=/android|ipad|playbook|silk/i;function u(s){s||(s={});var f=s.ua;if(!f&&typeof navigator!="undefined"&&(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;var v=o.test(f)&&!i.test(f)||!!s.tablet&&l.test(f);return!v&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(v=!0),v}},6296:function(a,o,i){"use strict";a.exports=p;var l=i(7261),u=i(9977),s=i(1811);function f(_,m){this._controllerNames=Object.keys(_),this._controllerList=this._controllerNames.map(function(w){return _[w]}),this._mode=m,this._active=_[m],this._active||(this._mode="turntable",this._active=_.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var v=f.prototype;v.flush=function(_){for(var m=this._controllerList,w=0;w0)throw new Error("Invalid string. Length must be a multiple of 4");var M=S.indexOf("=");M===-1&&(M=x);var d=M===x?0:4-M%4;return[M,d]}function _(S){var x=p(S),M=x[0],d=x[1];return(M+d)*3/4-d}function m(S,x,M){return(x+M)*3/4-M}function w(S){var x,M=p(S),d=M[0],b=M[1],g=new u(m(S,d,b)),c=0,A=b>0?d-4:d,h;for(h=0;h>16&255,g[c++]=x>>8&255,g[c++]=x&255;return b===2&&(x=l[S.charCodeAt(h)]<<2|l[S.charCodeAt(h+1)]>>4,g[c++]=x&255),b===1&&(x=l[S.charCodeAt(h)]<<10|l[S.charCodeAt(h+1)]<<4|l[S.charCodeAt(h+2)]>>2,g[c++]=x>>8&255,g[c++]=x&255),g}function T(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function y(S,x,M){for(var d,b=[],g=x;gA?A:c+g));return d===1?(x=S[M-1],b.push(i[x>>2]+i[x<<4&63]+"==")):d===2&&(x=(S[M-2]<<8)+S[M-1],b.push(i[x>>10]+i[x>>4&63]+i[x<<2&63]+"=")),b.join("")}},3865:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).add(f[0].mul(s[1])),s[1].mul(f[1]))}},1318:function(a){"use strict";a.exports=o;function o(i,l){return i[0].mul(l[1]).cmp(l[0].mul(i[1]))}},8697:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]),s[1].mul(f[0]))}},7842:function(a,o,i){"use strict";var l=i(6330),u=i(1533),s=i(2651),f=i(6768),v=i(869),p=i(8697);a.exports=_;function _(m,w){if(l(m))return w?p(m,_(w)):[m[0].clone(),m[1].clone()];var T=0,y,k;if(u(m))y=m.clone();else if(typeof m=="string")y=f(m);else{if(m===0)return[s(0),s(1)];if(m===Math.floor(m))y=s(m);else{for(;m!==Math.floor(m);)m=m*Math.pow(2,256),T-=256;y=s(m)}}if(l(w))y.mul(w[1]),k=w[0].clone();else if(u(w))k=w.clone();else if(typeof w=="string")k=f(w);else if(!w)k=s(1);else if(w===Math.floor(w))k=s(w);else{for(;w!==Math.floor(w);)w=w*Math.pow(2,256),T+=256;k=s(w)}return T>0?y=y.ushln(T):T<0&&(k=k.ushln(-T)),v(y,k)}},6330:function(a,o,i){"use strict";var l=i(1533);a.exports=u;function u(s){return Array.isArray(s)&&s.length===2&&l(s[0])&&l(s[1])}},5716:function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s.cmp(new l(0))}},1369:function(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){var f=s.length,v=s.words,p=0;if(f===1)p=v[0];else if(f===2)p=v[0]+v[1]*67108864;else for(var _=0;_20?52:p+32}},1533:function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s&&typeof s=="object"&&!!s.words}},2651:function(a,o,i){"use strict";var l=i(6859),u=i(2361);a.exports=s;function s(f){var v=u.exponent(f);return v<52?new l(f):new l(f*Math.pow(2,52-v)).ushln(v-52)}},869:function(a,o,i){"use strict";var l=i(2651),u=i(5716);a.exports=s;function s(f,v){var p=u(f),_=u(v);if(p===0)return[l(0),l(1)];if(_===0)return[l(0),l(0)];_<0&&(f=f.neg(),v=v.neg());var m=f.gcd(v);return m.cmpn(1)?[f.div(m),v.div(m)]:[f,v]}},6768:function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return new l(s)}},6504:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[0]),s[1].mul(f[1]))}},7721:function(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){return l(s[0])*l(s[1])}},5572:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).sub(s[1].mul(f[0])),s[1].mul(f[1]))}},946:function(a,o,i){"use strict";var l=i(1369),u=i(4025);a.exports=s;function s(f){var v=f[0],p=f[1];if(v.cmpn(0)===0)return 0;var _=v.abs().divmod(p.abs()),m=_.div,w=l(m),T=_.mod,y=v.negative!==p.negative?-1:1;if(T.cmpn(0)===0)return y*w;if(w){var k=u(w)+4,S=l(T.ushln(k).divRound(p));return y*(w+S*Math.pow(2,-k))}else{var x=p.bitLength()-T.bitLength()+53,S=l(T.ushln(x).divRound(p));return x<1023?y*S*Math.pow(2,-x):(S*=Math.pow(2,-1023),y*S*Math.pow(2,1023-x))}}},2478:function(a){"use strict";function o(v,p,_,m,w){for(var T=w+1;m<=w;){var y=m+w>>>1,k=v[y],S=_!==void 0?_(k,p):k-p;S>=0?(T=y,w=y-1):m=y+1}return T}function i(v,p,_,m,w){for(var T=w+1;m<=w;){var y=m+w>>>1,k=v[y],S=_!==void 0?_(k,p):k-p;S>0?(T=y,w=y-1):m=y+1}return T}function l(v,p,_,m,w){for(var T=m-1;m<=w;){var y=m+w>>>1,k=v[y],S=_!==void 0?_(k,p):k-p;S<0?(T=y,m=y+1):w=y-1}return T}function u(v,p,_,m,w){for(var T=m-1;m<=w;){var y=m+w>>>1,k=v[y],S=_!==void 0?_(k,p):k-p;S<=0?(T=y,m=y+1):w=y-1}return T}function s(v,p,_,m,w){for(;m<=w;){var T=m+w>>>1,y=v[T],k=_!==void 0?_(y,p):y-p;if(k===0)return T;k<=0?m=T+1:w=T-1}return-1}function f(v,p,_,m,w,T){return typeof _=="function"?T(v,p,_,m===void 0?0:m|0,w===void 0?v.length-1:w|0):T(v,p,void 0,_===void 0?0:_|0,m===void 0?v.length-1:m|0)}a.exports={ge:function(v,p,_,m,w){return f(v,p,_,m,w,o)},gt:function(v,p,_,m,w){return f(v,p,_,m,w,i)},lt:function(v,p,_,m,w){return f(v,p,_,m,w,l)},le:function(v,p,_,m,w){return f(v,p,_,m,w,u)},eq:function(v,p,_,m,w){return f(v,p,_,m,w,s)}}},8828:function(a,o){"use strict";"use restrict";var i=32;o.INT_BITS=i,o.INT_MAX=2147483647,o.INT_MIN=-1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,v=(s>255)<<3,s>>>=v,f|=v,v=(s>15)<<2,s>>>=v,f|=v,v=(s>3)<<1,s>>>=v,f|=v,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var v=f,p=f,_=7;for(v>>>=1;v;v>>>=1)p<<=1,p|=v&1,--_;s[f]=p<<_&255}})(u),o.reverse=function(s){return u[s&255]<<24|u[s>>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,v){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,v&=1023,v=(v|v<<16)&4278190335,v=(v|v<<8)&251719695,v=(v|v<<4)&3272356035,v=(v|v<<2)&1227133513,s|v<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},6859:function(a,o,i){a=i.nmd(a),function(l,u){"use strict";function s(I,L){if(!I)throw new Error(L||"Assertion failed")}function f(I,L){I.super_=L;var P=function(){};P.prototype=L.prototype,I.prototype=new P,I.prototype.constructor=I}function v(I,L,P){if(v.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((L==="le"||L==="be")&&(P=L,L=10),this._init(I||0,L||10,P||"be"))}typeof l=="object"?l.exports=v:u.BN=v,v.BN=v,v.wordSize=26;var p;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?p=window.Buffer:p=i(7790).Buffer}catch(I){}v.isBN=function(L){return L instanceof v?!0:L!==null&&typeof L=="object"&&L.constructor.wordSize===v.wordSize&&Array.isArray(L.words)},v.max=function(L,P){return L.cmp(P)>0?L:P},v.min=function(L,P){return L.cmp(P)<0?L:P},v.prototype._init=function(L,P,O){if(typeof L=="number")return this._initNumber(L,P,O);if(typeof L=="object")return this._initArray(L,P,O);P==="hex"&&(P=16),s(P===(P|0)&&P>=2&&P<=36),L=L.toString().replace(/\s+/g,"");var U=0;L[0]==="-"&&(U++,this.negative=1),U=0;U-=3)$=L[U]|L[U-1]<<8|L[U-2]<<16,this.words[X]|=$<>>26-j&67108863,j+=24,j>=26&&(j-=26,X++);else if(O==="le")for(U=0,X=0;U>>26-j&67108863,j+=24,j>=26&&(j-=26,X++);return this.strip()};function _(I,L){var P=I.charCodeAt(L);return P>=65&&P<=70?P-55:P>=97&&P<=102?P-87:P-48&15}function m(I,L,P){var O=_(I,P);return P-1>=L&&(O|=_(I,P-1)<<4),O}v.prototype._parseHex=function(L,P,O){this.length=Math.ceil((L.length-P)/6),this.words=new Array(this.length);for(var U=0;U=P;U-=2)j=m(L,P,U)<=18?(X-=18,$+=1,this.words[$]|=j>>>26):X+=8;else{var Y=L.length-P;for(U=Y%2===0?P+1:P;U=18?(X-=18,$+=1,this.words[$]|=j>>>26):X+=8}this.strip()};function w(I,L,P,O){for(var U=0,X=Math.min(I.length,P),$=L;$=49?U+=j-49+10:j>=17?U+=j-17+10:U+=j}return U}v.prototype._parseBase=function(L,P,O){this.words=[0],this.length=1;for(var U=0,X=1;X<=67108863;X*=P)U++;U--,X=X/P|0;for(var $=L.length-O,j=$%U,Y=Math.min($,$-j)+O,q=0,K=O;K1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},v.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},v.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];v.prototype.toString=function(L,P){L=L||10,P=P|0||1;var O;if(L===16||L==="hex"){O="";for(var U=0,X=0,$=0;$>>24-U&16777215,X!==0||$!==this.length-1?O=T[6-Y.length]+Y+O:O=Y+O,U+=2,U>=26&&(U-=26,$--)}for(X!==0&&(O=X.toString(16)+O);O.length%P!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(L===(L|0)&&L>=2&&L<=36){var q=y[L],K=k[L];O="";var ne=this.clone();for(ne.negative=0;!ne.isZero();){var Q=ne.modn(K).toString(L);ne=ne.idivn(K),ne.isZero()?O=Q+O:O=T[q-Q.length]+Q+O}for(this.isZero()&&(O="0"+O);O.length%P!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}s(!1,"Base should be between 2 and 36")},v.prototype.toNumber=function(){var L=this.words[0];return this.length===2?L+=this.words[1]*67108864:this.length===3&&this.words[2]===1?L+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-L:L},v.prototype.toJSON=function(){return this.toString(16)},v.prototype.toBuffer=function(L,P){return s(typeof p!="undefined"),this.toArrayLike(p,L,P)},v.prototype.toArray=function(L,P){return this.toArrayLike(Array,L,P)},v.prototype.toArrayLike=function(L,P,O){var U=this.byteLength(),X=O||Math.max(1,U);s(U<=X,"byte array longer than desired length"),s(X>0,"Requested array length <= 0"),this.strip();var $=P==="le",j=new L(X),Y,q,K=this.clone();if($){for(q=0;!K.isZero();q++)Y=K.andln(255),K.iushrn(8),j[q]=Y;for(;q=4096&&(O+=13,P>>>=13),P>=64&&(O+=7,P>>>=7),P>=8&&(O+=4,P>>>=4),P>=2&&(O+=2,P>>>=2),O+P},v.prototype._zeroBits=function(L){if(L===0)return 26;var P=L,O=0;return(P&8191)===0&&(O+=13,P>>>=13),(P&127)===0&&(O+=7,P>>>=7),(P&15)===0&&(O+=4,P>>>=4),(P&3)===0&&(O+=2,P>>>=2),(P&1)===0&&O++,O},v.prototype.bitLength=function(){var L=this.words[this.length-1],P=this._countBits(L);return(this.length-1)*26+P};function S(I){for(var L=new Array(I.bitLength()),P=0;P>>U}return L}v.prototype.zeroBits=function(){if(this.isZero())return 0;for(var L=0,P=0;PL.length?this.clone().ior(L):L.clone().ior(this)},v.prototype.uor=function(L){return this.length>L.length?this.clone().iuor(L):L.clone().iuor(this)},v.prototype.iuand=function(L){var P;this.length>L.length?P=L:P=this;for(var O=0;OL.length?this.clone().iand(L):L.clone().iand(this)},v.prototype.uand=function(L){return this.length>L.length?this.clone().iuand(L):L.clone().iuand(this)},v.prototype.iuxor=function(L){var P,O;this.length>L.length?(P=this,O=L):(P=L,O=this);for(var U=0;UL.length?this.clone().ixor(L):L.clone().ixor(this)},v.prototype.uxor=function(L){return this.length>L.length?this.clone().iuxor(L):L.clone().iuxor(this)},v.prototype.inotn=function(L){s(typeof L=="number"&&L>=0);var P=Math.ceil(L/26)|0,O=L%26;this._expand(P),O>0&&P--;for(var U=0;U0&&(this.words[U]=~this.words[U]&67108863>>26-O),this.strip()},v.prototype.notn=function(L){return this.clone().inotn(L)},v.prototype.setn=function(L,P){s(typeof L=="number"&&L>=0);var O=L/26|0,U=L%26;return this._expand(O+1),P?this.words[O]=this.words[O]|1<L.length?(O=this,U=L):(O=L,U=this);for(var X=0,$=0;$>>26;for(;X!==0&&$>>26;if(this.length=O.length,X!==0)this.words[this.length]=X,this.length++;else if(O!==this)for(;$L.length?this.clone().iadd(L):L.clone().iadd(this)},v.prototype.isub=function(L){if(L.negative!==0){L.negative=0;var P=this.iadd(L);return L.negative=1,P._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(L),this.negative=1,this._normSign();var O=this.cmp(L);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var U,X;O>0?(U=this,X=L):(U=L,X=this);for(var $=0,j=0;j>26,this.words[j]=P&67108863;for(;$!==0&&j>26,this.words[j]=P&67108863;if($===0&&j>>26,ne=Y&67108863,Q=Math.min(q,L.length-1),ie=Math.max(0,q-I.length+1);ie<=Q;ie++){var ee=q-ie|0;U=I.words[ee]|0,X=L.words[ie]|0,$=U*X+ne,K+=$/67108864|0,ne=$&67108863}P.words[q]=ne|0,Y=K|0}return Y!==0?P.words[q]=Y|0:P.length--,P.strip()}var M=function(L,P,O){var U=L.words,X=P.words,$=O.words,j=0,Y,q,K,ne=U[0]|0,Q=ne&8191,ie=ne>>>13,ee=U[1]|0,V=ee&8191,re=ee>>>13,H=U[2]|0,te=H&8191,ue=H>>>13,de=U[3]|0,ke=de&8191,Ae=de>>>13,ve=U[4]|0,Te=ve&8191,Ee=ve>>>13,Pe=U[5]|0,Se=Pe&8191,Ne=Pe>>>13,Be=U[6]|0,ge=Be&8191,we=Be>>>13,Me=U[7]|0,me=Me&8191,Re=Me>>>13,ce=U[8]|0,he=ce&8191,ye=ce>>>13,Ce=U[9]|0,ze=Ce&8191,qe=Ce>>>13,$e=X[0]|0,We=$e&8191,Ue=$e>>>13,Ge=X[1]|0,_e=Ge&8191,De=Ge>>>13,Ke=X[2]|0,Ye=Ke&8191,ar=Ke>>>13,se=X[3]|0,J=se&8191,ae=se>>>13,Le=X[4]|0,He=Le&8191,je=Le>>>13,nr=X[5]|0,ur=nr&8191,br=nr>>>13,Sr=X[6]|0,Mr=Sr&8191,Ar=Sr>>>13,nt=X[7]|0,Yr=nt&8191,mr=nt>>>13,ct=X[8]|0,Cr=ct&8191,Ur=ct>>>13,xt=X[9]|0,zr=xt&8191,Hr=xt>>>13;O.negative=L.negative^P.negative,O.length=19,Y=Math.imul(Q,We),q=Math.imul(Q,Ue),q=q+Math.imul(ie,We)|0,K=Math.imul(ie,Ue);var Ot=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,Y=Math.imul(V,We),q=Math.imul(V,Ue),q=q+Math.imul(re,We)|0,K=Math.imul(re,Ue),Y=Y+Math.imul(Q,_e)|0,q=q+Math.imul(Q,De)|0,q=q+Math.imul(ie,_e)|0,K=K+Math.imul(ie,De)|0;var Lt=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,Y=Math.imul(te,We),q=Math.imul(te,Ue),q=q+Math.imul(ue,We)|0,K=Math.imul(ue,Ue),Y=Y+Math.imul(V,_e)|0,q=q+Math.imul(V,De)|0,q=q+Math.imul(re,_e)|0,K=K+Math.imul(re,De)|0,Y=Y+Math.imul(Q,Ye)|0,q=q+Math.imul(Q,ar)|0,q=q+Math.imul(ie,Ye)|0,K=K+Math.imul(ie,ar)|0;var yn=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(yn>>>26)|0,yn&=67108863,Y=Math.imul(ke,We),q=Math.imul(ke,Ue),q=q+Math.imul(Ae,We)|0,K=Math.imul(Ae,Ue),Y=Y+Math.imul(te,_e)|0,q=q+Math.imul(te,De)|0,q=q+Math.imul(ue,_e)|0,K=K+Math.imul(ue,De)|0,Y=Y+Math.imul(V,Ye)|0,q=q+Math.imul(V,ar)|0,q=q+Math.imul(re,Ye)|0,K=K+Math.imul(re,ar)|0,Y=Y+Math.imul(Q,J)|0,q=q+Math.imul(Q,ae)|0,q=q+Math.imul(ie,J)|0,K=K+Math.imul(ie,ae)|0;var Yt=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,Y=Math.imul(Te,We),q=Math.imul(Te,Ue),q=q+Math.imul(Ee,We)|0,K=Math.imul(Ee,Ue),Y=Y+Math.imul(ke,_e)|0,q=q+Math.imul(ke,De)|0,q=q+Math.imul(Ae,_e)|0,K=K+Math.imul(Ae,De)|0,Y=Y+Math.imul(te,Ye)|0,q=q+Math.imul(te,ar)|0,q=q+Math.imul(ue,Ye)|0,K=K+Math.imul(ue,ar)|0,Y=Y+Math.imul(V,J)|0,q=q+Math.imul(V,ae)|0,q=q+Math.imul(re,J)|0,K=K+Math.imul(re,ae)|0,Y=Y+Math.imul(Q,He)|0,q=q+Math.imul(Q,je)|0,q=q+Math.imul(ie,He)|0,K=K+Math.imul(ie,je)|0;var Rt=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,Y=Math.imul(Se,We),q=Math.imul(Se,Ue),q=q+Math.imul(Ne,We)|0,K=Math.imul(Ne,Ue),Y=Y+Math.imul(Te,_e)|0,q=q+Math.imul(Te,De)|0,q=q+Math.imul(Ee,_e)|0,K=K+Math.imul(Ee,De)|0,Y=Y+Math.imul(ke,Ye)|0,q=q+Math.imul(ke,ar)|0,q=q+Math.imul(Ae,Ye)|0,K=K+Math.imul(Ae,ar)|0,Y=Y+Math.imul(te,J)|0,q=q+Math.imul(te,ae)|0,q=q+Math.imul(ue,J)|0,K=K+Math.imul(ue,ae)|0,Y=Y+Math.imul(V,He)|0,q=q+Math.imul(V,je)|0,q=q+Math.imul(re,He)|0,K=K+Math.imul(re,je)|0,Y=Y+Math.imul(Q,ur)|0,q=q+Math.imul(Q,br)|0,q=q+Math.imul(ie,ur)|0,K=K+Math.imul(ie,br)|0;var at=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(at>>>26)|0,at&=67108863,Y=Math.imul(ge,We),q=Math.imul(ge,Ue),q=q+Math.imul(we,We)|0,K=Math.imul(we,Ue),Y=Y+Math.imul(Se,_e)|0,q=q+Math.imul(Se,De)|0,q=q+Math.imul(Ne,_e)|0,K=K+Math.imul(Ne,De)|0,Y=Y+Math.imul(Te,Ye)|0,q=q+Math.imul(Te,ar)|0,q=q+Math.imul(Ee,Ye)|0,K=K+Math.imul(Ee,ar)|0,Y=Y+Math.imul(ke,J)|0,q=q+Math.imul(ke,ae)|0,q=q+Math.imul(Ae,J)|0,K=K+Math.imul(Ae,ae)|0,Y=Y+Math.imul(te,He)|0,q=q+Math.imul(te,je)|0,q=q+Math.imul(ue,He)|0,K=K+Math.imul(ue,je)|0,Y=Y+Math.imul(V,ur)|0,q=q+Math.imul(V,br)|0,q=q+Math.imul(re,ur)|0,K=K+Math.imul(re,br)|0,Y=Y+Math.imul(Q,Mr)|0,q=q+Math.imul(Q,Ar)|0,q=q+Math.imul(ie,Mr)|0,K=K+Math.imul(ie,Ar)|0;var Ft=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,Y=Math.imul(me,We),q=Math.imul(me,Ue),q=q+Math.imul(Re,We)|0,K=Math.imul(Re,Ue),Y=Y+Math.imul(ge,_e)|0,q=q+Math.imul(ge,De)|0,q=q+Math.imul(we,_e)|0,K=K+Math.imul(we,De)|0,Y=Y+Math.imul(Se,Ye)|0,q=q+Math.imul(Se,ar)|0,q=q+Math.imul(Ne,Ye)|0,K=K+Math.imul(Ne,ar)|0,Y=Y+Math.imul(Te,J)|0,q=q+Math.imul(Te,ae)|0,q=q+Math.imul(Ee,J)|0,K=K+Math.imul(Ee,ae)|0,Y=Y+Math.imul(ke,He)|0,q=q+Math.imul(ke,je)|0,q=q+Math.imul(Ae,He)|0,K=K+Math.imul(Ae,je)|0,Y=Y+Math.imul(te,ur)|0,q=q+Math.imul(te,br)|0,q=q+Math.imul(ue,ur)|0,K=K+Math.imul(ue,br)|0,Y=Y+Math.imul(V,Mr)|0,q=q+Math.imul(V,Ar)|0,q=q+Math.imul(re,Mr)|0,K=K+Math.imul(re,Ar)|0,Y=Y+Math.imul(Q,Yr)|0,q=q+Math.imul(Q,mr)|0,q=q+Math.imul(ie,Yr)|0,K=K+Math.imul(ie,mr)|0;var va=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(va>>>26)|0,va&=67108863,Y=Math.imul(he,We),q=Math.imul(he,Ue),q=q+Math.imul(ye,We)|0,K=Math.imul(ye,Ue),Y=Y+Math.imul(me,_e)|0,q=q+Math.imul(me,De)|0,q=q+Math.imul(Re,_e)|0,K=K+Math.imul(Re,De)|0,Y=Y+Math.imul(ge,Ye)|0,q=q+Math.imul(ge,ar)|0,q=q+Math.imul(we,Ye)|0,K=K+Math.imul(we,ar)|0,Y=Y+Math.imul(Se,J)|0,q=q+Math.imul(Se,ae)|0,q=q+Math.imul(Ne,J)|0,K=K+Math.imul(Ne,ae)|0,Y=Y+Math.imul(Te,He)|0,q=q+Math.imul(Te,je)|0,q=q+Math.imul(Ee,He)|0,K=K+Math.imul(Ee,je)|0,Y=Y+Math.imul(ke,ur)|0,q=q+Math.imul(ke,br)|0,q=q+Math.imul(Ae,ur)|0,K=K+Math.imul(Ae,br)|0,Y=Y+Math.imul(te,Mr)|0,q=q+Math.imul(te,Ar)|0,q=q+Math.imul(ue,Mr)|0,K=K+Math.imul(ue,Ar)|0,Y=Y+Math.imul(V,Yr)|0,q=q+Math.imul(V,mr)|0,q=q+Math.imul(re,Yr)|0,K=K+Math.imul(re,mr)|0,Y=Y+Math.imul(Q,Cr)|0,q=q+Math.imul(Q,Ur)|0,q=q+Math.imul(ie,Cr)|0,K=K+Math.imul(ie,Ur)|0;var Qn=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,Y=Math.imul(ze,We),q=Math.imul(ze,Ue),q=q+Math.imul(qe,We)|0,K=Math.imul(qe,Ue),Y=Y+Math.imul(he,_e)|0,q=q+Math.imul(he,De)|0,q=q+Math.imul(ye,_e)|0,K=K+Math.imul(ye,De)|0,Y=Y+Math.imul(me,Ye)|0,q=q+Math.imul(me,ar)|0,q=q+Math.imul(Re,Ye)|0,K=K+Math.imul(Re,ar)|0,Y=Y+Math.imul(ge,J)|0,q=q+Math.imul(ge,ae)|0,q=q+Math.imul(we,J)|0,K=K+Math.imul(we,ae)|0,Y=Y+Math.imul(Se,He)|0,q=q+Math.imul(Se,je)|0,q=q+Math.imul(Ne,He)|0,K=K+Math.imul(Ne,je)|0,Y=Y+Math.imul(Te,ur)|0,q=q+Math.imul(Te,br)|0,q=q+Math.imul(Ee,ur)|0,K=K+Math.imul(Ee,br)|0,Y=Y+Math.imul(ke,Mr)|0,q=q+Math.imul(ke,Ar)|0,q=q+Math.imul(Ae,Mr)|0,K=K+Math.imul(Ae,Ar)|0,Y=Y+Math.imul(te,Yr)|0,q=q+Math.imul(te,mr)|0,q=q+Math.imul(ue,Yr)|0,K=K+Math.imul(ue,mr)|0,Y=Y+Math.imul(V,Cr)|0,q=q+Math.imul(V,Ur)|0,q=q+Math.imul(re,Cr)|0,K=K+Math.imul(re,Ur)|0,Y=Y+Math.imul(Q,zr)|0,q=q+Math.imul(Q,Hr)|0,q=q+Math.imul(ie,zr)|0,K=K+Math.imul(ie,Hr)|0;var In=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(In>>>26)|0,In&=67108863,Y=Math.imul(ze,_e),q=Math.imul(ze,De),q=q+Math.imul(qe,_e)|0,K=Math.imul(qe,De),Y=Y+Math.imul(he,Ye)|0,q=q+Math.imul(he,ar)|0,q=q+Math.imul(ye,Ye)|0,K=K+Math.imul(ye,ar)|0,Y=Y+Math.imul(me,J)|0,q=q+Math.imul(me,ae)|0,q=q+Math.imul(Re,J)|0,K=K+Math.imul(Re,ae)|0,Y=Y+Math.imul(ge,He)|0,q=q+Math.imul(ge,je)|0,q=q+Math.imul(we,He)|0,K=K+Math.imul(we,je)|0,Y=Y+Math.imul(Se,ur)|0,q=q+Math.imul(Se,br)|0,q=q+Math.imul(Ne,ur)|0,K=K+Math.imul(Ne,br)|0,Y=Y+Math.imul(Te,Mr)|0,q=q+Math.imul(Te,Ar)|0,q=q+Math.imul(Ee,Mr)|0,K=K+Math.imul(Ee,Ar)|0,Y=Y+Math.imul(ke,Yr)|0,q=q+Math.imul(ke,mr)|0,q=q+Math.imul(Ae,Yr)|0,K=K+Math.imul(Ae,mr)|0,Y=Y+Math.imul(te,Cr)|0,q=q+Math.imul(te,Ur)|0,q=q+Math.imul(ue,Cr)|0,K=K+Math.imul(ue,Ur)|0,Y=Y+Math.imul(V,zr)|0,q=q+Math.imul(V,Hr)|0,q=q+Math.imul(re,zr)|0,K=K+Math.imul(re,Hr)|0;var Ma=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Ma>>>26)|0,Ma&=67108863,Y=Math.imul(ze,Ye),q=Math.imul(ze,ar),q=q+Math.imul(qe,Ye)|0,K=Math.imul(qe,ar),Y=Y+Math.imul(he,J)|0,q=q+Math.imul(he,ae)|0,q=q+Math.imul(ye,J)|0,K=K+Math.imul(ye,ae)|0,Y=Y+Math.imul(me,He)|0,q=q+Math.imul(me,je)|0,q=q+Math.imul(Re,He)|0,K=K+Math.imul(Re,je)|0,Y=Y+Math.imul(ge,ur)|0,q=q+Math.imul(ge,br)|0,q=q+Math.imul(we,ur)|0,K=K+Math.imul(we,br)|0,Y=Y+Math.imul(Se,Mr)|0,q=q+Math.imul(Se,Ar)|0,q=q+Math.imul(Ne,Mr)|0,K=K+Math.imul(Ne,Ar)|0,Y=Y+Math.imul(Te,Yr)|0,q=q+Math.imul(Te,mr)|0,q=q+Math.imul(Ee,Yr)|0,K=K+Math.imul(Ee,mr)|0,Y=Y+Math.imul(ke,Cr)|0,q=q+Math.imul(ke,Ur)|0,q=q+Math.imul(Ae,Cr)|0,K=K+Math.imul(Ae,Ur)|0,Y=Y+Math.imul(te,zr)|0,q=q+Math.imul(te,Hr)|0,q=q+Math.imul(ue,zr)|0,K=K+Math.imul(ue,Hr)|0;var xi=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(xi>>>26)|0,xi&=67108863,Y=Math.imul(ze,J),q=Math.imul(ze,ae),q=q+Math.imul(qe,J)|0,K=Math.imul(qe,ae),Y=Y+Math.imul(he,He)|0,q=q+Math.imul(he,je)|0,q=q+Math.imul(ye,He)|0,K=K+Math.imul(ye,je)|0,Y=Y+Math.imul(me,ur)|0,q=q+Math.imul(me,br)|0,q=q+Math.imul(Re,ur)|0,K=K+Math.imul(Re,br)|0,Y=Y+Math.imul(ge,Mr)|0,q=q+Math.imul(ge,Ar)|0,q=q+Math.imul(we,Mr)|0,K=K+Math.imul(we,Ar)|0,Y=Y+Math.imul(Se,Yr)|0,q=q+Math.imul(Se,mr)|0,q=q+Math.imul(Ne,Yr)|0,K=K+Math.imul(Ne,mr)|0,Y=Y+Math.imul(Te,Cr)|0,q=q+Math.imul(Te,Ur)|0,q=q+Math.imul(Ee,Cr)|0,K=K+Math.imul(Ee,Ur)|0,Y=Y+Math.imul(ke,zr)|0,q=q+Math.imul(ke,Hr)|0,q=q+Math.imul(Ae,zr)|0,K=K+Math.imul(Ae,Hr)|0;var Gi=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,Y=Math.imul(ze,He),q=Math.imul(ze,je),q=q+Math.imul(qe,He)|0,K=Math.imul(qe,je),Y=Y+Math.imul(he,ur)|0,q=q+Math.imul(he,br)|0,q=q+Math.imul(ye,ur)|0,K=K+Math.imul(ye,br)|0,Y=Y+Math.imul(me,Mr)|0,q=q+Math.imul(me,Ar)|0,q=q+Math.imul(Re,Mr)|0,K=K+Math.imul(Re,Ar)|0,Y=Y+Math.imul(ge,Yr)|0,q=q+Math.imul(ge,mr)|0,q=q+Math.imul(we,Yr)|0,K=K+Math.imul(we,mr)|0,Y=Y+Math.imul(Se,Cr)|0,q=q+Math.imul(Se,Ur)|0,q=q+Math.imul(Ne,Cr)|0,K=K+Math.imul(Ne,Ur)|0,Y=Y+Math.imul(Te,zr)|0,q=q+Math.imul(Te,Hr)|0,q=q+Math.imul(Ee,zr)|0,K=K+Math.imul(Ee,Hr)|0;var Yi=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,Y=Math.imul(ze,ur),q=Math.imul(ze,br),q=q+Math.imul(qe,ur)|0,K=Math.imul(qe,br),Y=Y+Math.imul(he,Mr)|0,q=q+Math.imul(he,Ar)|0,q=q+Math.imul(ye,Mr)|0,K=K+Math.imul(ye,Ar)|0,Y=Y+Math.imul(me,Yr)|0,q=q+Math.imul(me,mr)|0,q=q+Math.imul(Re,Yr)|0,K=K+Math.imul(Re,mr)|0,Y=Y+Math.imul(ge,Cr)|0,q=q+Math.imul(ge,Ur)|0,q=q+Math.imul(we,Cr)|0,K=K+Math.imul(we,Ur)|0,Y=Y+Math.imul(Se,zr)|0,q=q+Math.imul(Se,Hr)|0,q=q+Math.imul(Ne,zr)|0,K=K+Math.imul(Ne,Hr)|0;var Wi=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,Y=Math.imul(ze,Mr),q=Math.imul(ze,Ar),q=q+Math.imul(qe,Mr)|0,K=Math.imul(qe,Ar),Y=Y+Math.imul(he,Yr)|0,q=q+Math.imul(he,mr)|0,q=q+Math.imul(ye,Yr)|0,K=K+Math.imul(ye,mr)|0,Y=Y+Math.imul(me,Cr)|0,q=q+Math.imul(me,Ur)|0,q=q+Math.imul(Re,Cr)|0,K=K+Math.imul(Re,Ur)|0,Y=Y+Math.imul(ge,zr)|0,q=q+Math.imul(ge,Hr)|0,q=q+Math.imul(we,zr)|0,K=K+Math.imul(we,Hr)|0;var nn=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(nn>>>26)|0,nn&=67108863,Y=Math.imul(ze,Yr),q=Math.imul(ze,mr),q=q+Math.imul(qe,Yr)|0,K=Math.imul(qe,mr),Y=Y+Math.imul(he,Cr)|0,q=q+Math.imul(he,Ur)|0,q=q+Math.imul(ye,Cr)|0,K=K+Math.imul(ye,Ur)|0,Y=Y+Math.imul(me,zr)|0,q=q+Math.imul(me,Hr)|0,q=q+Math.imul(Re,zr)|0,K=K+Math.imul(Re,Hr)|0;var xo=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(xo>>>26)|0,xo&=67108863,Y=Math.imul(ze,Cr),q=Math.imul(ze,Ur),q=q+Math.imul(qe,Cr)|0,K=Math.imul(qe,Ur),Y=Y+Math.imul(he,zr)|0,q=q+Math.imul(he,Hr)|0,q=q+Math.imul(ye,zr)|0,K=K+Math.imul(ye,Hr)|0;var bi=(j+Y|0)+((q&8191)<<13)|0;j=(K+(q>>>13)|0)+(bi>>>26)|0,bi&=67108863,Y=Math.imul(ze,zr),q=Math.imul(ze,Hr),q=q+Math.imul(qe,zr)|0,K=Math.imul(qe,Hr);var _i=(j+Y|0)+((q&8191)<<13)|0;return j=(K+(q>>>13)|0)+(_i>>>26)|0,_i&=67108863,$[0]=Ot,$[1]=Lt,$[2]=yn,$[3]=Yt,$[4]=Rt,$[5]=at,$[6]=Ft,$[7]=va,$[8]=Qn,$[9]=In,$[10]=Ma,$[11]=xi,$[12]=Gi,$[13]=Yi,$[14]=Wi,$[15]=nn,$[16]=xo,$[17]=bi,$[18]=_i,j!==0&&($[19]=j,O.length++),O};Math.imul||(M=x);function d(I,L,P){P.negative=L.negative^I.negative,P.length=I.length+L.length;for(var O=0,U=0,X=0;X>>26)|0,U+=$>>>26,$&=67108863}P.words[X]=j,O=$,$=U}return O!==0?P.words[X]=O:P.length--,P.strip()}function b(I,L,P){var O=new g;return O.mulp(I,L,P)}v.prototype.mulTo=function(L,P){var O,U=this.length+L.length;return this.length===10&&L.length===10?O=M(this,L,P):U<63?O=x(this,L,P):U<1024?O=d(this,L,P):O=b(this,L,P),O};function g(I,L){this.x=I,this.y=L}g.prototype.makeRBT=function(L){for(var P=new Array(L),O=v.prototype._countBits(L)-1,U=0;U>=1;return U},g.prototype.permute=function(L,P,O,U,X,$){for(var j=0;j<$;j++)U[j]=P[L[j]],X[j]=O[L[j]]},g.prototype.transform=function(L,P,O,U,X,$){this.permute($,L,P,O,U,X);for(var j=1;j>>1)X++;return 1<>>13,O[2*$+1]=X&8191,X=X>>>13;for($=2*P;$>=26,P+=U/67108864|0,P+=X>>>26,this.words[O]=X&67108863}return P!==0&&(this.words[O]=P,this.length++),this},v.prototype.muln=function(L){return this.clone().imuln(L)},v.prototype.sqr=function(){return this.mul(this)},v.prototype.isqr=function(){return this.imul(this.clone())},v.prototype.pow=function(L){var P=S(L);if(P.length===0)return new v(1);for(var O=this,U=0;U=0);var P=L%26,O=(L-P)/26,U=67108863>>>26-P<<26-P,X;if(P!==0){var $=0;for(X=0;X>>26-P}$&&(this.words[X]=$,this.length++)}if(O!==0){for(X=this.length-1;X>=0;X--)this.words[X+O]=this.words[X];for(X=0;X=0);var U;P?U=(P-P%26)/26:U=0;var X=L%26,$=Math.min((L-X)/26,this.length),j=67108863^67108863>>>X<$)for(this.length-=$,q=0;q=0&&(K!==0||q>=U);q--){var ne=this.words[q]|0;this.words[q]=K<<26-X|ne>>>X,K=ne&j}return Y&&K!==0&&(Y.words[Y.length++]=K),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},v.prototype.ishrn=function(L,P,O){return s(this.negative===0),this.iushrn(L,P,O)},v.prototype.shln=function(L){return this.clone().ishln(L)},v.prototype.ushln=function(L){return this.clone().iushln(L)},v.prototype.shrn=function(L){return this.clone().ishrn(L)},v.prototype.ushrn=function(L){return this.clone().iushrn(L)},v.prototype.testn=function(L){s(typeof L=="number"&&L>=0);var P=L%26,O=(L-P)/26,U=1<=0);var P=L%26,O=(L-P)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(P!==0&&O++,this.length=Math.min(O,this.length),P!==0){var U=67108863^67108863>>>P<=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+1),this},v.prototype.isubn=function(L){if(s(typeof L=="number"),s(L<67108864),L<0)return this.iaddn(-L);if(this.negative!==0)return this.negative=0,this.iaddn(L),this.negative=1,this;if(this.words[0]-=L,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var P=0;P>26)-(Y/67108864|0),this.words[X+O]=$&67108863}for(;X>26,this.words[X+O]=$&67108863;if(j===0)return this.strip();for(s(j===-1),j=0,X=0;X>26,this.words[X]=$&67108863;return this.negative=1,this.strip()},v.prototype._wordDiv=function(L,P){var O=this.length-L.length,U=this.clone(),X=L,$=X.words[X.length-1]|0,j=this._countBits($);O=26-j,O!==0&&(X=X.ushln(O),U.iushln(O),$=X.words[X.length-1]|0);var Y=U.length-X.length,q;if(P!=="mod"){q=new v(null),q.length=Y+1,q.words=new Array(q.length);for(var K=0;K=0;Q--){var ie=(U.words[X.length+Q]|0)*67108864+(U.words[X.length+Q-1]|0);for(ie=Math.min(ie/$|0,67108863),U._ishlnsubmul(X,ie,Q);U.negative!==0;)ie--,U.negative=0,U._ishlnsubmul(X,1,Q),U.isZero()||(U.negative^=1);q&&(q.words[Q]=ie)}return q&&q.strip(),U.strip(),P!=="div"&&O!==0&&U.iushrn(O),{div:q||null,mod:U}},v.prototype.divmod=function(L,P,O){if(s(!L.isZero()),this.isZero())return{div:new v(0),mod:new v(0)};var U,X,$;return this.negative!==0&&L.negative===0?($=this.neg().divmod(L,P),P!=="mod"&&(U=$.div.neg()),P!=="div"&&(X=$.mod.neg(),O&&X.negative!==0&&X.iadd(L)),{div:U,mod:X}):this.negative===0&&L.negative!==0?($=this.divmod(L.neg(),P),P!=="mod"&&(U=$.div.neg()),{div:U,mod:$.mod}):(this.negative&L.negative)!==0?($=this.neg().divmod(L.neg(),P),P!=="div"&&(X=$.mod.neg(),O&&X.negative!==0&&X.isub(L)),{div:$.div,mod:X}):L.length>this.length||this.cmp(L)<0?{div:new v(0),mod:this}:L.length===1?P==="div"?{div:this.divn(L.words[0]),mod:null}:P==="mod"?{div:null,mod:new v(this.modn(L.words[0]))}:{div:this.divn(L.words[0]),mod:new v(this.modn(L.words[0]))}:this._wordDiv(L,P)},v.prototype.div=function(L){return this.divmod(L,"div",!1).div},v.prototype.mod=function(L){return this.divmod(L,"mod",!1).mod},v.prototype.umod=function(L){return this.divmod(L,"mod",!0).mod},v.prototype.divRound=function(L){var P=this.divmod(L);if(P.mod.isZero())return P.div;var O=P.div.negative!==0?P.mod.isub(L):P.mod,U=L.ushrn(1),X=L.andln(1),$=O.cmp(U);return $<0||X===1&&$===0?P.div:P.div.negative!==0?P.div.isubn(1):P.div.iaddn(1)},v.prototype.modn=function(L){s(L<=67108863);for(var P=(1<<26)%L,O=0,U=this.length-1;U>=0;U--)O=(P*O+(this.words[U]|0))%L;return O},v.prototype.idivn=function(L){s(L<=67108863);for(var P=0,O=this.length-1;O>=0;O--){var U=(this.words[O]|0)+P*67108864;this.words[O]=U/L|0,P=U%L}return this.strip()},v.prototype.divn=function(L){return this.clone().idivn(L)},v.prototype.egcd=function(L){s(L.negative===0),s(!L.isZero());var P=this,O=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var U=new v(1),X=new v(0),$=new v(0),j=new v(1),Y=0;P.isEven()&&O.isEven();)P.iushrn(1),O.iushrn(1),++Y;for(var q=O.clone(),K=P.clone();!P.isZero();){for(var ne=0,Q=1;(P.words[0]&Q)===0&&ne<26;++ne,Q<<=1);if(ne>0)for(P.iushrn(ne);ne-- >0;)(U.isOdd()||X.isOdd())&&(U.iadd(q),X.isub(K)),U.iushrn(1),X.iushrn(1);for(var ie=0,ee=1;(O.words[0]&ee)===0&&ie<26;++ie,ee<<=1);if(ie>0)for(O.iushrn(ie);ie-- >0;)($.isOdd()||j.isOdd())&&($.iadd(q),j.isub(K)),$.iushrn(1),j.iushrn(1);P.cmp(O)>=0?(P.isub(O),U.isub($),X.isub(j)):(O.isub(P),$.isub(U),j.isub(X))}return{a:$,b:j,gcd:O.iushln(Y)}},v.prototype._invmp=function(L){s(L.negative===0),s(!L.isZero());var P=this,O=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var U=new v(1),X=new v(0),$=O.clone();P.cmpn(1)>0&&O.cmpn(1)>0;){for(var j=0,Y=1;(P.words[0]&Y)===0&&j<26;++j,Y<<=1);if(j>0)for(P.iushrn(j);j-- >0;)U.isOdd()&&U.iadd($),U.iushrn(1);for(var q=0,K=1;(O.words[0]&K)===0&&q<26;++q,K<<=1);if(q>0)for(O.iushrn(q);q-- >0;)X.isOdd()&&X.iadd($),X.iushrn(1);P.cmp(O)>=0?(P.isub(O),U.isub(X)):(O.isub(P),X.isub(U))}var ne;return P.cmpn(1)===0?ne=U:ne=X,ne.cmpn(0)<0&&ne.iadd(L),ne},v.prototype.gcd=function(L){if(this.isZero())return L.abs();if(L.isZero())return this.abs();var P=this.clone(),O=L.clone();P.negative=0,O.negative=0;for(var U=0;P.isEven()&&O.isEven();U++)P.iushrn(1),O.iushrn(1);do{for(;P.isEven();)P.iushrn(1);for(;O.isEven();)O.iushrn(1);var X=P.cmp(O);if(X<0){var $=P;P=O,O=$}else if(X===0||O.cmpn(1)===0)break;P.isub(O)}while(!0);return O.iushln(U)},v.prototype.invm=function(L){return this.egcd(L).a.umod(L)},v.prototype.isEven=function(){return(this.words[0]&1)===0},v.prototype.isOdd=function(){return(this.words[0]&1)===1},v.prototype.andln=function(L){return this.words[0]&L},v.prototype.bincn=function(L){s(typeof L=="number");var P=L%26,O=(L-P)/26,U=1<>>26,j&=67108863,this.words[$]=j}return X!==0&&(this.words[$]=X,this.length++),this},v.prototype.isZero=function(){return this.length===1&&this.words[0]===0},v.prototype.cmpn=function(L){var P=L<0;if(this.negative!==0&&!P)return-1;if(this.negative===0&&P)return 1;this.strip();var O;if(this.length>1)O=1;else{P&&(L=-L),s(L<=67108863,"Number is too big");var U=this.words[0]|0;O=U===L?0:UL.length)return 1;if(this.length=0;O--){var U=this.words[O]|0,X=L.words[O]|0;if(U!==X){UX&&(P=1);break}}return P},v.prototype.gtn=function(L){return this.cmpn(L)===1},v.prototype.gt=function(L){return this.cmp(L)===1},v.prototype.gten=function(L){return this.cmpn(L)>=0},v.prototype.gte=function(L){return this.cmp(L)>=0},v.prototype.ltn=function(L){return this.cmpn(L)===-1},v.prototype.lt=function(L){return this.cmp(L)===-1},v.prototype.lten=function(L){return this.cmpn(L)<=0},v.prototype.lte=function(L){return this.cmp(L)<=0},v.prototype.eqn=function(L){return this.cmpn(L)===0},v.prototype.eq=function(L){return this.cmp(L)===0},v.red=function(L){return new N(L)},v.prototype.toRed=function(L){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),L.convertTo(this)._forceRed(L)},v.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},v.prototype._forceRed=function(L){return this.red=L,this},v.prototype.forceRed=function(L){return s(!this.red,"Already a number in reduction context"),this._forceRed(L)},v.prototype.redAdd=function(L){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,L)},v.prototype.redIAdd=function(L){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,L)},v.prototype.redSub=function(L){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,L)},v.prototype.redISub=function(L){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,L)},v.prototype.redShl=function(L){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,L)},v.prototype.redMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.mul(this,L)},v.prototype.redIMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.imul(this,L)},v.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},v.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},v.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},v.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},v.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},v.prototype.redPow=function(L){return s(this.red&&!L.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,L)};var c={k256:null,p224:null,p192:null,p25519:null};function A(I,L){this.name=I,this.p=new v(L,16),this.n=this.p.bitLength(),this.k=new v(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}A.prototype._tmp=function(){var L=new v(null);return L.words=new Array(Math.ceil(this.n/13)),L},A.prototype.ireduce=function(L){var P=L,O;do this.split(P,this.tmp),P=this.imulK(P),P=P.iadd(this.tmp),O=P.bitLength();while(O>this.n);var U=O0?P.isub(this.p):P.strip!==void 0?P.strip():P._strip(),P},A.prototype.split=function(L,P){L.iushrn(this.n,0,P)},A.prototype.imulK=function(L){return L.imul(this.k)};function h(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(h,A),h.prototype.split=function(L,P){for(var O=4194303,U=Math.min(L.length,9),X=0;X>>22,$=j}$>>>=22,L.words[X-10]=$,$===0&&L.length>10?L.length-=10:L.length-=9},h.prototype.imulK=function(L){L.words[L.length]=0,L.words[L.length+1]=0,L.length+=2;for(var P=0,O=0;O>>=26,L.words[O]=X,P=U}return P!==0&&(L.words[L.length++]=P),L},v._prime=function(L){if(c[L])return c[L];var P;if(L==="k256")P=new h;else if(L==="p224")P=new R;else if(L==="p192")P=new E;else if(L==="p25519")P=new D;else throw new Error("Unknown prime "+L);return c[L]=P,P};function N(I){if(typeof I=="string"){var L=v._prime(I);this.m=L.p,this.prime=L}else s(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}N.prototype._verify1=function(L){s(L.negative===0,"red works only with positives"),s(L.red,"red works only with red numbers")},N.prototype._verify2=function(L,P){s((L.negative|P.negative)===0,"red works only with positives"),s(L.red&&L.red===P.red,"red works only with red numbers")},N.prototype.imod=function(L){return this.prime?this.prime.ireduce(L)._forceRed(this):L.umod(this.m)._forceRed(this)},N.prototype.neg=function(L){return L.isZero()?L.clone():this.m.sub(L)._forceRed(this)},N.prototype.add=function(L,P){this._verify2(L,P);var O=L.add(P);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},N.prototype.iadd=function(L,P){this._verify2(L,P);var O=L.iadd(P);return O.cmp(this.m)>=0&&O.isub(this.m),O},N.prototype.sub=function(L,P){this._verify2(L,P);var O=L.sub(P);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},N.prototype.isub=function(L,P){this._verify2(L,P);var O=L.isub(P);return O.cmpn(0)<0&&O.iadd(this.m),O},N.prototype.shl=function(L,P){return this._verify1(L),this.imod(L.ushln(P))},N.prototype.imul=function(L,P){return this._verify2(L,P),this.imod(L.imul(P))},N.prototype.mul=function(L,P){return this._verify2(L,P),this.imod(L.mul(P))},N.prototype.isqr=function(L){return this.imul(L,L.clone())},N.prototype.sqr=function(L){return this.mul(L,L)},N.prototype.sqrt=function(L){if(L.isZero())return L.clone();var P=this.m.andln(3);if(s(P%2===1),P===3){var O=this.m.add(new v(1)).iushrn(2);return this.pow(L,O)}for(var U=this.m.subn(1),X=0;!U.isZero()&&U.andln(1)===0;)X++,U.iushrn(1);s(!U.isZero());var $=new v(1).toRed(this),j=$.redNeg(),Y=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new v(2*q*q).toRed(this);this.pow(q,Y).cmp(j)!==0;)q.redIAdd(j);for(var K=this.pow(q,U),ne=this.pow(L,U.addn(1).iushrn(1)),Q=this.pow(L,U),ie=X;Q.cmp($)!==0;){for(var ee=Q,V=0;ee.cmp($)!==0;V++)ee=ee.redSqr();s(V=0;X--){for(var K=P.words[X],ne=q-1;ne>=0;ne--){var Q=K>>ne&1;if($!==U[0]&&($=this.sqr($)),Q===0&&j===0){Y=0;continue}j<<=1,j|=Q,Y++,!(Y!==O&&(X!==0||ne!==0))&&($=this.mul($,U[j]),Y=0,j=0)}q=26}return $},N.prototype.convertTo=function(L){var P=L.umod(this.m);return P===L?P.clone():P},N.prototype.convertFrom=function(L){var P=L.clone();return P.red=null,P},v.mont=function(L){return new F(L)};function F(I){N.call(this,I),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new v(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(F,N),F.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},F.prototype.convertFrom=function(L){var P=this.imod(L.mul(this.rinv));return P.red=null,P},F.prototype.imul=function(L,P){if(L.isZero()||P.isZero())return L.words[0]=0,L.length=1,L;var O=L.imul(P),U=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=O.isub(U).iushrn(this.shift),$=X;return X.cmp(this.m)>=0?$=X.isub(this.m):X.cmpn(0)<0&&($=X.iadd(this.m)),$._forceRed(this)},F.prototype.mul=function(L,P){if(L.isZero()||P.isZero())return new v(0)._forceRed(this);var O=L.mul(P),U=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=O.isub(U).iushrn(this.shift),$=X;return X.cmp(this.m)>=0?$=X.isub(this.m):X.cmpn(0)<0&&($=X.iadd(this.m)),$._forceRed(this)},F.prototype.invm=function(L){var P=this.imod(L._invmp(this.m).mul(this.r2));return P._forceRed(this)}}(a,this)},6204:function(a){"use strict";a.exports=o;function o(i){var l,u,s,f=i.length,v=0;for(l=0;l>>1;if(!(g<=0)){var c,A=l.mallocDouble(2*g*d),h=l.mallocInt32(d);if(d=v(k,g,A,h),d>0){if(g===1&&M)u.init(d),c=u.sweepComplete(g,x,0,d,A,h,0,d,A,h);else{var R=l.mallocDouble(2*g*b),E=l.mallocInt32(b);b=v(S,g,R,E),b>0&&(u.init(d+b),g===1?c=u.sweepBipartite(g,x,0,d,A,h,0,b,R,E):c=s(g,x,M,d,A,h,b,R,E),l.free(R),l.free(E))}l.free(A),l.free(h)}return c}}}var _;function m(k,S){_.push([k,S])}function w(k){return _=[],p(k,k,m,!0),_}function T(k,S){return _=[],p(k,S,m,!1),_}function y(k,S,x){switch(arguments.length){case 1:return w(k);case 2:return typeof S=="function"?p(k,k,S,!0):T(k,S);case 3:return p(k,S,x,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(a,o){"use strict";function i(){function s(p,_,m,w,T,y,k,S,x,M,d){for(var b=2*p,g=w,c=b*w;gx-S?s(p,_,m,w,T,y,k,S,x,M,d):f(p,_,m,w,T,y,k,S,x,M,d)}return v}function l(){function s(m,w,T,y,k,S,x,M,d,b,g){for(var c=2*m,A=y,h=c*y;Ab-d?y?s(m,w,T,k,S,x,M,d,b,g,c):f(m,w,T,k,S,x,M,d,b,g,c):y?v(m,w,T,k,S,x,M,d,b,g,c):p(m,w,T,k,S,x,M,d,b,g,c)}return _}function u(s){return s?i():l()}o.partial=u(!1),o.full=u(!0)},7150:function(a,o,i){"use strict";a.exports=I;var l=i(1888),u=i(8828),s=i(2455),f=s.partial,v=s.full,p=i(855),_=i(3545),m=i(8105),w=128,T=1<<22,y=1<<22,k=m("!(lo>=p0)&&!(p1>=hi)"),S=m("lo===p0"),x=m("lo0;){K-=1;var ie=K*g,ee=h[ie],V=h[ie+1],re=h[ie+2],H=h[ie+3],te=h[ie+4],ue=h[ie+5],de=K*c,ke=R[de],Ae=R[de+1],ve=ue&1,Te=!!(ue&16),Ee=X,Pe=$,Se=Y,Ne=q;if(ve&&(Ee=Y,Pe=q,Se=X,Ne=$),!(ue&2&&(re=x(L,ee,V,re,Ee,Pe,Ae),V>=re))&&!(ue&4&&(V=M(L,ee,V,re,Ee,Pe,ke),V>=re))){var Be=re-V,ge=te-H;if(Te){if(L*Be*(Be+ge)m&&T[b+_]>M;--d,b-=k){for(var g=b,c=b+k,A=0;A>>1,M=2*p,d=x,b=T[M*x+_];k=R?(d=h,b=R):A>=D?(d=c,b=A):(d=E,b=D):R>=D?(d=h,b=R):D>=A?(d=c,b=A):(d=E,b=D);for(var I=M*(S-1),L=M*d,N=0;N=p0)&&!(p1>=hi)":_};function i(m){return o[m]}function l(m,w,T,y,k,S,x){for(var M=2*m,d=M*T,b=d,g=T,c=w,A=m+w,h=T;y>h;++h,d+=M){var R=k[d+c];if(R===x)if(g===h)g+=1,b+=M;else{for(var E=0;M>E;++E){var D=k[d+E];k[d+E]=k[b],k[b++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function u(m,w,T,y,k,S,x){for(var M=2*m,d=M*T,b=d,g=T,c=w,A=m+w,h=T;y>h;++h,d+=M){var R=k[d+c];if(RE;++E){var D=k[d+E];k[d+E]=k[b],k[b++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function s(m,w,T,y,k,S,x){for(var M=2*m,d=M*T,b=d,g=T,c=w,A=m+w,h=T;y>h;++h,d+=M){var R=k[d+A];if(R<=x)if(g===h)g+=1,b+=M;else{for(var E=0;M>E;++E){var D=k[d+E];k[d+E]=k[b],k[b++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function f(m,w,T,y,k,S,x){for(var M=2*m,d=M*T,b=d,g=T,c=w,A=m+w,h=T;y>h;++h,d+=M){var R=k[d+A];if(R<=x)if(g===h)g+=1,b+=M;else{for(var E=0;M>E;++E){var D=k[d+E];k[d+E]=k[b],k[b++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function v(m,w,T,y,k,S,x){for(var M=2*m,d=M*T,b=d,g=T,c=w,A=m+w,h=T;y>h;++h,d+=M){var R=k[d+c],E=k[d+A];if(R<=x&&x<=E)if(g===h)g+=1,b+=M;else{for(var D=0;M>D;++D){var N=k[d+D];k[d+D]=k[b],k[b++]=N}var F=S[h];S[h]=S[g],S[g++]=F}}return g}function p(m,w,T,y,k,S,x){for(var M=2*m,d=M*T,b=d,g=T,c=w,A=m+w,h=T;y>h;++h,d+=M){var R=k[d+c],E=k[d+A];if(RD;++D){var N=k[d+D];k[d+D]=k[b],k[b++]=N}var F=S[h];S[h]=S[g],S[g++]=F}}return g}function _(m,w,T,y,k,S,x,M){for(var d=2*m,b=d*T,g=b,c=T,A=w,h=m+w,R=T;y>R;++R,b+=d){var E=k[b+A],D=k[b+h];if(!(E>=x)&&!(M>=D))if(c===R)c+=1,g+=d;else{for(var N=0;d>N;++N){var F=k[b+N];k[b+N]=k[g],k[g++]=F}var I=S[R];S[R]=S[c],S[c++]=I}}return c}},4192:function(a){"use strict";a.exports=i;var o=32;function i(w,T){T<=4*o?l(0,T-1,w):m(0,T-1,w)}function l(w,T,y){for(var k=2*(w+1),S=w+1;S<=T;++S){for(var x=y[k++],M=y[k++],d=S,b=k-2;d-- >w;){var g=y[b-2],c=y[b-1];if(gy[T+1]:!0}function _(w,T,y,k){w*=2;var S=k[w];return S>1,d=M-k,b=M+k,g=S,c=d,A=M,h=b,R=x,E=w+1,D=T-1,N=0;p(g,c,y)&&(N=g,g=c,c=N),p(h,R,y)&&(N=h,h=R,R=N),p(g,A,y)&&(N=g,g=A,A=N),p(c,A,y)&&(N=c,c=A,A=N),p(g,h,y)&&(N=g,g=h,h=N),p(A,h,y)&&(N=A,A=h,h=N),p(c,R,y)&&(N=c,c=R,R=N),p(c,A,y)&&(N=c,c=A,A=N),p(h,R,y)&&(N=h,h=R,R=N);for(var F=y[2*c],I=y[2*c+1],L=y[2*h],P=y[2*h+1],O=2*g,U=2*A,X=2*R,$=2*S,j=2*M,Y=2*x,q=0;q<2;++q){var K=y[O+q],ne=y[U+q],Q=y[X+q];y[$+q]=K,y[j+q]=ne,y[Y+q]=Q}s(d,w,y),s(b,T,y);for(var ie=E;ie<=D;++ie)if(_(ie,F,I,y))ie!==E&&u(ie,E,y),++E;else if(!_(ie,L,P,y))for(;;)if(_(D,L,P,y)){_(D,F,I,y)?(f(ie,E,D,y),++E,--D):(u(ie,D,y),--D);break}else{if(--D>>1;s(k,ne);for(var Q=0,ie=0,j=0;j=f)ee=ee-f|0,x(m,w,ie--,ee);else if(ee>=0)x(p,_,Q--,ee);else if(ee<=-f){ee=-ee-f|0;for(var V=0;V>>1;s(k,ne);for(var Q=0,ie=0,ee=0,j=0;j>1===k[2*j+3]>>1&&(re=2,j+=1),V<0){for(var H=-(V>>1)-1,te=0;te>1)-1;re===0?x(p,_,Q--,H):re===1?x(m,w,ie--,H):re===2&&x(T,y,ee--,H)}}}function g(A,h,R,E,D,N,F,I,L,P,O,U){var X=0,$=2*A,j=h,Y=h+A,q=1,K=1;E?K=f:q=f;for(var ne=D;ne>>1;s(k,V);for(var re=0,ne=0;ne=f?(te=!E,Q-=f):(te=!!E,Q-=1),te)M(p,_,re++,Q);else{var ue=U[Q],de=$*Q,ke=O[de+h+1],Ae=O[de+h+1+A];e:for(var ve=0;ve>>1;s(k,Q);for(var ie=0,Y=0;Y=f)p[ie++]=q-f;else{q-=1;var V=O[q],re=X*q,H=P[re+h+1],te=P[re+h+1+A];e:for(var ue=0;ue=0;--ue)if(p[ue]===q){for(var ve=ue+1;ve0;){for(var S=_.pop(),T=_.pop(),x=-1,M=-1,y=w[T],b=1;b=0||(p.flip(T,S),s(v,p,_,x,T,M),s(v,p,_,T,M,x),s(v,p,_,M,S,x),s(v,p,_,S,x,M))}}},5023:function(a,o,i){"use strict";var l=i(2478);a.exports=_;function u(m,w,T,y,k,S,x){this.cells=m,this.neighbor=w,this.flags=y,this.constraint=T,this.active=k,this.next=S,this.boundary=x}var s=u.prototype;function f(m,w){return m[0]-w[0]||m[1]-w[1]||m[2]-w[2]}s.locate=function(){var m=[0,0,0];return function(w,T,y){var k=w,S=T,x=y;return T0||x.length>0;){for(;S.length>0;){var c=S.pop();if(M[c]!==-k){M[c]=k;for(var A=d[c],h=0;h<3;++h){var R=g[3*c+h];R>=0&&M[R]===0&&(b[3*c+h]?x.push(R):(S.push(R),M[R]=k))}}}var E=x;x=S,S=E,x.length=0,k=-k}var D=p(d,M,w);return T?D.concat(y.boundary):D}},8902:function(a,o,i){"use strict";var l=i(2478),u=i(3250)[3],s=0,f=1,v=2;a.exports=x;function p(M,d,b,g,c){this.a=M,this.b=d,this.idx=b,this.lowerIds=g,this.upperIds=c}function _(M,d,b,g){this.a=M,this.b=d,this.type=b,this.idx=g}function m(M,d){var b=M.a[0]-d.a[0]||M.a[1]-d.a[1]||M.type-d.type;return b||M.type!==s&&(b=u(M.a,M.b,d.b),b)?b:M.idx-d.idx}function w(M,d){return u(M.a,M.b,d)}function T(M,d,b,g,c){for(var A=l.lt(d,g,w),h=l.gt(d,g,w),R=A;R1&&u(b[D[F-2]],b[D[F-1]],g)>0;)M.push([D[F-1],D[F-2],c]),F-=1;D.length=F,D.push(c);for(var N=E.upperIds,F=N.length;F>1&&u(b[N[F-2]],b[N[F-1]],g)<0;)M.push([N[F-2],N[F-1],c]),F-=1;N.length=F,N.push(c)}}function y(M,d){var b;return M.a[0]E[0]&&c.push(new _(E,R,v,A),new _(R,E,f,A))}c.sort(m);for(var D=c[0].a[0]-(1+Math.abs(c[0].a[0]))*Math.pow(2,-52),N=[new p([D,1],[D,0],-1,[],[],[],[])],F=[],A=0,I=c.length;A=0}}(),s.removeTriangle=function(p,_,m){var w=this.stars;f(w[p],_,m),f(w[_],m,p),f(w[m],p,_)},s.addTriangle=function(p,_,m){var w=this.stars;w[p].push(_,m),w[_].push(m,p),w[m].push(p,_)},s.opposite=function(p,_){for(var m=this.stars[_],w=1,T=m.length;w=0;--L){var K=F[L];P=K[0];var ne=D[P],Q=ne[0],ie=ne[1],ee=E[Q],V=E[ie];if((ee[0]-V[0]||ee[1]-V[1])<0){var re=Q;Q=ie,ie=re}ne[0]=Q;var H=ne[1]=K[1],te;for(I&&(te=ne[2]);L>0&&F[L-1][0]===P;){var K=F[--L],ue=K[1];I?D.push([H,ue,te]):D.push([H,ue]),H=ue}I?D.push([H,ie,te]):D.push([H,ie])}return O}function d(E,D,N){for(var F=D.length,I=new l(F),L=[],P=0;PD[2]?1:0)}function c(E,D,N){if(E.length!==0){if(D)for(var F=0;F0||P.length>0}function R(E,D,N){var F;if(N){F=D;for(var I=new Array(D.length),L=0;LM+1)throw new Error(S+" map requires nshades to be at least size "+k.length);Array.isArray(_.alpha)?_.alpha.length!==2?d=[1,1]:d=_.alpha.slice():typeof _.alpha=="number"?d=[_.alpha,_.alpha]:d=[1,1],m=k.map(function(R){return Math.round(R.index*M)}),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var g=k.map(function(R,E){var D=k[E].index,N=k[E].rgb.slice();return N.length===4&&N[3]>=0&&N[3]<=1||(N[3]=d[0]+(d[1]-d[0])*D),N}),c=[];for(b=0;b=0}function _(m,w,T,y){var k=l(w,T,y);if(k===0){var S=u(l(m,w,T)),x=u(l(m,w,y));if(S===x){if(S===0){var M=p(m,w,T),d=p(m,w,y);return M===d?0:M?1:-1}return 0}else{if(x===0)return S>0||p(m,w,y)?-1:1;if(S===0)return x>0||p(m,w,T)?1:-1}return u(x-S)}var b=l(m,w,T);if(b>0)return k>0&&l(m,w,y)>0?1:-1;if(b<0)return k>0||l(m,w,y)>0?1:-1;var g=l(m,w,y);return g>0||p(m,w,T)?1:-1}},8572:function(a){"use strict";a.exports=function(i){return i<0?-1:i>0?1:0}},8507:function(a){a.exports=l;var o=Math.min;function i(u,s){return u-s}function l(u,s){var f=u.length,v=u.length-s.length;if(v)return v;switch(f){case 0:return 0;case 1:return u[0]-s[0];case 2:return u[0]+u[1]-s[0]-s[1]||o(u[0],u[1])-o(s[0],s[1]);case 3:var p=u[0]+u[1],_=s[0]+s[1];if(v=p+u[2]-(_+s[2]),v)return v;var m=o(u[0],u[1]),w=o(s[0],s[1]);return o(m,u[2])-o(w,s[2])||o(m+u[2],p)-o(w+s[2],_);case 4:var T=u[0],y=u[1],k=u[2],S=u[3],x=s[0],M=s[1],d=s[2],b=s[3];return T+y+k+S-(x+M+d+b)||o(T,y,k,S)-o(x,M,d,b,x)||o(T+y,T+k,T+S,y+k,y+S,k+S)-o(x+M,x+d,x+b,M+d,M+b,d+b)||o(T+y+k,T+y+S,T+k+S,y+k+S)-o(x+M+d,x+M+b,x+d+b,M+d+b);default:for(var g=u.slice().sort(i),c=s.slice().sort(i),A=0;Ai[u][0]&&(u=s);return lu?[[u],[l]]:[[l]]}},4750:function(a,o,i){"use strict";a.exports=u;var l=i(3090);function u(s){var f=l(s),v=f.length;if(v<=2)return[];for(var p=new Array(v),_=f[v-1],m=0;m=_[x]&&(S+=1);y[k]=S}}return p}function v(p,_){try{return l(p,!0)}catch(y){var m=u(p);if(m.length<=_)return[];var w=s(p,m),T=l(w,!0);return f(T,m)}}},4769:function(a){"use strict";function o(l,u,s,f,v,p){var _=6*v*v-6*v,m=3*v*v-4*v+1,w=-6*v*v+6*v,T=3*v*v-2*v;if(l.length){p||(p=new Array(l.length));for(var y=l.length-1;y>=0;--y)p[y]=_*l[y]+m*u[y]+w*s[y]+T*f[y];return p}return _*l+m*u+w*s[y]+T*f}function i(l,u,s,f,v,p){var _=v-1,m=v*v,w=_*_,T=(1+2*v)*w,y=v*w,k=m*(3-2*v),S=m*_;if(l.length){p||(p=new Array(l.length));for(var x=l.length-1;x>=0;--x)p[x]=T*l[x]+y*u[x]+k*s[x]+S*f[x];return p}return T*l+y*u+k*s+S*f}a.exports=i,a.exports.derivative=o},7642:function(a,o,i){"use strict";var l=i(8954),u=i(1682);a.exports=p;function s(_,m){this.point=_,this.index=m}function f(_,m){for(var w=_.point,T=m.point,y=w.length,k=0;k=2)return!1;N[I]=L}return!0}):D=D.filter(function(N){for(var F=0;F<=T;++F){var I=A[N[F]];if(I<0)return!1;N[F]=I}return!0}),T&1)for(var S=0;S>>31},a.exports.exponent=function(k){var S=a.exports.hi(k);return(S<<1>>>21)-1023},a.exports.fraction=function(k){var S=a.exports.lo(k),x=a.exports.hi(k),M=x&(1<<20)-1;return x&2146435072&&(M+=1048576),[S,M]},a.exports.denormalized=function(k){var S=a.exports.hi(k);return!(S&2146435072)}},1338:function(a){"use strict";function o(u,s,f){var v=u[f]|0;if(v<=0)return[];var p=new Array(v),_;if(f===u.length-1)for(_=0;_0)return i(u|0,s);break;case"object":if(typeof u.length=="number")return o(u,s,0);break}return[]}a.exports=l},3134:function(a,o,i){"use strict";a.exports=u;var l=i(1682);function u(s,f){var v=s.length;if(typeof f!="number"){f=0;for(var p=0;p=T-1)for(var b=S.length-1,c=m-w[T-1],g=0;g=T-1)for(var d=S.length-1,b=m-w[T-1],g=0;g=0;--T)if(m[--w])return!1;return!0},v.jump=function(m){var w=this.lastT(),T=this.dimension;if(!(m0;--g)y.push(s(M[g-1],d[g-1],arguments[g])),k.push(0)}},v.push=function(m){var w=this.lastT(),T=this.dimension;if(!(m1e-6?1/x:0;this._time.push(m);for(var c=T;c>0;--c){var A=s(d[c-1],b[c-1],arguments[c]);y.push(A),k.push((A-y[S++])*g)}}},v.set=function(m){var w=this.dimension;if(!(m0;--M)T.push(s(S[M-1],x[M-1],arguments[M])),y.push(0)}},v.move=function(m){var w=this.lastT(),T=this.dimension;if(!(m<=w||arguments.length!==T+1)){var y=this._state,k=this._velocity,S=y.length-this.dimension,x=this.bounds,M=x[0],d=x[1],b=m-w,g=b>1e-6?1/b:0;this._time.push(m);for(var c=T;c>0;--c){var A=arguments[c];y.push(s(M[c-1],d[c-1],y[S++]+A)),k.push(A*g)}}},v.idle=function(m){var w=this.lastT();if(!(m=0;--g)y.push(s(M[g],d[g],y[S]+b*k[S])),k.push(0),S+=1}};function p(m){for(var w=new Array(m),T=0;T=0;--E){var c=A[E];h[E]<=0?A[E]=new l(c._color,c.key,c.value,A[E+1],c.right,c._count+1):A[E]=new l(c._color,c.key,c.value,c.left,A[E+1],c._count+1)}for(var E=A.length-1;E>1;--E){var D=A[E-1],c=A[E];if(D._color===i||c._color===i)break;var N=A[E-2];if(N.left===D)if(D.left===c){var F=N.right;if(F&&F._color===o)D._color=i,N.right=s(i,F),N._color=o,E-=1;else{if(N._color=o,N.left=D.right,D._color=i,D.right=N,A[E-2]=D,A[E-1]=c,f(N),f(D),E>=3){var I=A[E-3];I.left===N?I.left=D:I.right=D}break}}else{var F=N.right;if(F&&F._color===o)D._color=i,N.right=s(i,F),N._color=o,E-=1;else{if(D.right=c.left,N._color=o,N.left=c.right,c._color=i,c.left=D,c.right=N,A[E-2]=c,A[E-1]=D,f(N),f(D),f(c),E>=3){var I=A[E-3];I.left===N?I.left=c:I.right=c}break}}else if(D.right===c){var F=N.left;if(F&&F._color===o)D._color=i,N.left=s(i,F),N._color=o,E-=1;else{if(N._color=o,N.right=D.left,D._color=i,D.left=N,A[E-2]=D,A[E-1]=c,f(N),f(D),E>=3){var I=A[E-3];I.right===N?I.right=D:I.left=D}break}}else{var F=N.left;if(F&&F._color===o)D._color=i,N.left=s(i,F),N._color=o,E-=1;else{if(D.left=c.right,N._color=o,N.right=c.left,c._color=i,c.right=D,c.left=N,A[E-2]=c,A[E-1]=D,f(N),f(D),f(c),E>=3){var I=A[E-3];I.right===N?I.right=c:I.left=c}break}}}return A[0]._color=i,new v(g,A[0])};function _(d,b){if(b.left){var g=_(d,b.left);if(g)return g}var g=d(b.key,b.value);if(g)return g;if(b.right)return _(d,b.right)}function m(d,b,g,c){var A=b(d,c.key);if(A<=0){if(c.left){var h=m(d,b,g,c.left);if(h)return h}var h=g(c.key,c.value);if(h)return h}if(c.right)return m(d,b,g,c.right)}function w(d,b,g,c,A){var h=g(d,A.key),R=g(b,A.key),E;if(h<=0&&(A.left&&(E=w(d,b,g,c,A.left),E)||R>0&&(E=c(A.key,A.value),E)))return E;if(R>0&&A.right)return w(d,b,g,c,A.right)}p.forEach=function(b,g,c){if(this.root)switch(arguments.length){case 1:return _(b,this.root);case 2:return m(g,this._compare,b,this.root);case 3:return this._compare(g,c)>=0?void 0:w(g,c,this._compare,b,this.root)}},Object.defineProperty(p,"begin",{get:function(){for(var d=[],b=this.root;b;)d.push(b),b=b.left;return new T(this,d)}}),Object.defineProperty(p,"end",{get:function(){for(var d=[],b=this.root;b;)d.push(b),b=b.right;return new T(this,d)}}),p.at=function(d){if(d<0)return new T(this,[]);for(var b=this.root,g=[];;){if(g.push(b),b.left){if(d=b.right._count)break;b=b.right}else break}return new T(this,[])},p.ge=function(d){for(var b=this._compare,g=this.root,c=[],A=0;g;){var h=b(d,g.key);c.push(g),h<=0&&(A=c.length),h<=0?g=g.left:g=g.right}return c.length=A,new T(this,c)},p.gt=function(d){for(var b=this._compare,g=this.root,c=[],A=0;g;){var h=b(d,g.key);c.push(g),h<0&&(A=c.length),h<0?g=g.left:g=g.right}return c.length=A,new T(this,c)},p.lt=function(d){for(var b=this._compare,g=this.root,c=[],A=0;g;){var h=b(d,g.key);c.push(g),h>0&&(A=c.length),h<=0?g=g.left:g=g.right}return c.length=A,new T(this,c)},p.le=function(d){for(var b=this._compare,g=this.root,c=[],A=0;g;){var h=b(d,g.key);c.push(g),h>=0&&(A=c.length),h<0?g=g.left:g=g.right}return c.length=A,new T(this,c)},p.find=function(d){for(var b=this._compare,g=this.root,c=[];g;){var A=b(d,g.key);if(c.push(g),A===0)return new T(this,c);A<=0?g=g.left:g=g.right}return new T(this,[])},p.remove=function(d){var b=this.find(d);return b?b.remove():this},p.get=function(d){for(var b=this._compare,g=this.root;g;){var c=b(d,g.key);if(c===0)return g.value;c<=0?g=g.left:g=g.right}};function T(d,b){this.tree=d,this._stack=b}var y=T.prototype;Object.defineProperty(y,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(y,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),y.clone=function(){return new T(this.tree,this._stack.slice())};function k(d,b){d.key=b.key,d.value=b.value,d.left=b.left,d.right=b.right,d._color=b._color,d._count=b._count}function S(d){for(var b,g,c,A,h=d.length-1;h>=0;--h){if(b=d[h],h===0){b._color=i;return}if(g=d[h-1],g.left===b){if(c=g.right,c.right&&c.right._color===o){if(c=g.right=u(c),A=c.right=u(c.right),g.right=c.left,c.left=g,c.right=A,c._color=g._color,b._color=i,g._color=i,A._color=i,f(g),f(c),h>1){var R=d[h-2];R.left===g?R.left=c:R.right=c}d[h-1]=c;return}else if(c.left&&c.left._color===o){if(c=g.right=u(c),A=c.left=u(c.left),g.right=A.left,c.left=A.right,A.left=g,A.right=c,A._color=g._color,g._color=i,c._color=i,b._color=i,f(g),f(c),f(A),h>1){var R=d[h-2];R.left===g?R.left=A:R.right=A}d[h-1]=A;return}if(c._color===i)if(g._color===o){g._color=i,g.right=s(o,c);return}else{g.right=s(o,c);continue}else{if(c=u(c),g.right=c.left,c.left=g,c._color=g._color,g._color=o,f(g),f(c),h>1){var R=d[h-2];R.left===g?R.left=c:R.right=c}d[h-1]=c,d[h]=g,h+11){var R=d[h-2];R.right===g?R.right=c:R.left=c}d[h-1]=c;return}else if(c.right&&c.right._color===o){if(c=g.left=u(c),A=c.right=u(c.right),g.left=A.right,c.right=A.left,A.right=g,A.left=c,A._color=g._color,g._color=i,c._color=i,b._color=i,f(g),f(c),f(A),h>1){var R=d[h-2];R.right===g?R.right=A:R.left=A}d[h-1]=A;return}if(c._color===i)if(g._color===o){g._color=i,g.left=s(o,c);return}else{g.left=s(o,c);continue}else{if(c=u(c),g.left=c.right,c.right=g,c._color=g._color,g._color=o,f(g),f(c),h>1){var R=d[h-2];R.right===g?R.right=c:R.left=c}d[h-1]=c,d[h]=g,h+1=0;--c){var g=d[c];g.left===d[c+1]?b[c]=new l(g._color,g.key,g.value,b[c+1],g.right,g._count):b[c]=new l(g._color,g.key,g.value,g.left,b[c+1],g._count)}if(g=b[b.length-1],g.left&&g.right){var A=b.length;for(g=g.left;g.right;)b.push(g),g=g.right;var h=b[A-1];b.push(new l(g._color,h.key,h.value,g.left,g.right,g._count)),b[A-1].key=g.key,b[A-1].value=g.value;for(var c=b.length-2;c>=A;--c)g=b[c],b[c]=new l(g._color,g.key,g.value,g.left,b[c+1],g._count);b[A-1].left=b[A]}if(g=b[b.length-1],g._color===o){var R=b[b.length-2];R.left===g?R.left=null:R.right===g&&(R.right=null),b.pop();for(var c=0;c0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(y,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(y,"index",{get:function(){var d=0,b=this._stack;if(b.length===0){var g=this.tree.root;return g?g._count:0}else b[b.length-1].left&&(d=b[b.length-1].left._count);for(var c=b.length-2;c>=0;--c)b[c+1]===b[c].right&&(++d,b[c].left&&(d+=b[c].left._count));return d},enumerable:!0}),y.next=function(){var d=this._stack;if(d.length!==0){var b=d[d.length-1];if(b.right)for(b=b.right;b;)d.push(b),b=b.left;else for(d.pop();d.length>0&&d[d.length-1].right===b;)b=d[d.length-1],d.pop()}},Object.defineProperty(y,"hasNext",{get:function(){var d=this._stack;if(d.length===0)return!1;if(d[d.length-1].right)return!0;for(var b=d.length-1;b>0;--b)if(d[b-1].left===d[b])return!0;return!1}}),y.update=function(d){var b=this._stack;if(b.length===0)throw new Error("Can't update empty node!");var g=new Array(b.length),c=b[b.length-1];g[g.length-1]=new l(c._color,c.key,d,c.left,c.right,c._count);for(var A=b.length-2;A>=0;--A)c=b[A],c.left===b[A+1]?g[A]=new l(c._color,c.key,c.value,g[A+1],c.right,c._count):g[A]=new l(c._color,c.key,c.value,c.left,g[A+1],c._count);return new v(this.tree._compare,g[0])},y.prev=function(){var d=this._stack;if(d.length!==0){var b=d[d.length-1];if(b.left)for(b=b.left;b;)d.push(b),b=b.right;else for(d.pop();d.length>0&&d[d.length-1].left===b;)b=d[d.length-1],d.pop()}},Object.defineProperty(y,"hasPrev",{get:function(){var d=this._stack;if(d.length===0)return!1;if(d[d.length-1].left)return!0;for(var b=d.length-1;b>0;--b)if(d[b-1].right===d[b])return!0;return!1}});function x(d,b){return db?1:0}function M(d){return new v(d||x,null)}},3837:function(a,o,i){"use strict";a.exports=E;var l=i(4935),u=i(501),s=i(5304),f=i(6429),v=i(6444),p=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),_=ArrayBuffer,m=DataView;function w(D){return _.isView(D)&&!(D instanceof m)}function T(D){return Array.isArray(D)||w(D)}function y(D,N){return D[0]=N[0],D[1]=N[1],D[2]=N[2],D}function k(D){this.gl=D,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=s(D)}var S=k.prototype;S.update=function(D){D=D||{};function N(Q,ie,ee){if(ee in D){var V=D[ee],re=this[ee],H;(Q?T(V)&&T(V[0]):T(V))?this[ee]=H=[ie(V[0]),ie(V[1]),ie(V[2])]:this[ee]=H=[ie(V),ie(V),ie(V)];for(var te=0;te<3;++te)if(H[te]!==re[te])return!0}return!1}var F=N.bind(this,!1,Number),I=N.bind(this,!1,Boolean),L=N.bind(this,!1,String),P=N.bind(this,!0,function(Q){if(T(Q)){if(Q.length===3)return[+Q[0],+Q[1],+Q[2],1];if(Q.length===4)return[+Q[0],+Q[1],+Q[2],+Q[3]]}return[0,0,0,1]}),O,U=!1,X=!1;if("bounds"in D)for(var $=D.bounds,j=0;j<2;++j)for(var Y=0;Y<3;++Y)$[j][Y]!==this.bounds[j][Y]&&(X=!0),this.bounds[j][Y]=$[j][Y];if("ticks"in D){O=D.ticks,U=!0,this.autoTicks=!1;for(var j=0;j<3;++j)this.tickSpacing[j]=0}else F("tickSpacing")&&(this.autoTicks=!0,X=!0);if(this._firstInit&&("ticks"in D||"tickSpacing"in D||(this.autoTicks=!0),X=!0,U=!0,this._firstInit=!1),X&&this.autoTicks&&(O=v.create(this.bounds,this.tickSpacing),U=!0),U){for(var j=0;j<3;++j)O[j].sort(function(ie,ee){return ie.x-ee.x});v.equal(O,this.ticks)?U=!1:this.ticks=O}I("tickEnable"),L("tickFont")&&(U=!0),L("tickFontStyle")&&(U=!0),L("tickFontWeight")&&(U=!0),L("tickFontVariant")&&(U=!0),F("tickSize"),F("tickAngle"),F("tickPad"),P("tickColor");var q=L("labels");L("labelFont")&&(q=!0),L("labelFontStyle")&&(q=!0),L("labelFontWeight")&&(q=!0),L("labelFontVariant")&&(q=!0),I("labelEnable"),F("labelSize"),F("labelPad"),P("labelColor"),I("lineEnable"),I("lineMirror"),F("lineWidth"),P("lineColor"),I("lineTickEnable"),I("lineTickMirror"),F("lineTickLength"),F("lineTickWidth"),P("lineTickColor"),I("gridEnable"),F("gridWidth"),P("gridColor"),I("zeroEnable"),P("zeroLineColor"),F("zeroLineWidth"),I("backgroundEnable"),P("backgroundColor");var K=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],ne=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(q||U)&&this._text.update(this.bounds,this.labels,K,this.ticks,ne):this._text=l(this.gl,this.bounds,this.labels,K,this.ticks,ne),this._lines&&U&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function x(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var M=[new x,new x,new x];function d(D,N,F,I,L){for(var P=D.primalOffset,O=D.primalMinor,U=D.mirrorOffset,X=D.mirrorMinor,$=I[N],j=0;j<3;++j)if(N!==j){var Y=P,q=U,K=O,ne=X;$&1<0?(K[j]=-1,ne[j]=0):(K[j]=0,ne[j]=1)}}var b=[0,0,0],g={model:p,view:p,projection:p,_ortho:!1};S.isOpaque=function(){return!0},S.isTransparent=function(){return!1},S.drawTransparent=function(D){};var c=0,A=[0,0,0],h=[0,0,0],R=[0,0,0];S.draw=function(D){D=D||g;for(var ee=this.gl,N=D.model||p,F=D.view||p,I=D.projection||p,L=this.bounds,P=D._ortho||!1,O=f(N,F,I,L,P),U=O.cubeEdges,X=O.axis,$=F[12],j=F[13],Y=F[14],q=F[15],K=P?2:1,ne=K*this.pixelRatio*(I[3]*$+I[7]*j+I[11]*Y+I[15]*q)/ee.drawingBufferHeight,Q=0;Q<3;++Q)this.lastCubeProps.cubeEdges[Q]=U[Q],this.lastCubeProps.axis[Q]=X[Q];for(var ie=M,Q=0;Q<3;++Q)d(M[Q],Q,this.bounds,U,X);for(var ee=this.gl,V=b,Q=0;Q<3;++Q)this.backgroundEnable[Q]?V[Q]=X[Q]:V[Q]=0;this._background.draw(N,F,I,L,V,this.backgroundColor),this._lines.bind(N,F,I,this);for(var Q=0;Q<3;++Q){var re=[0,0,0];X[Q]>0?re[Q]=L[1][Q]:re[Q]=L[0][Q];for(var H=0;H<2;++H){var te=(Q+1+H)%3,ue=(Q+1+(H^1))%3;this.gridEnable[te]&&this._lines.drawGrid(te,ue,this.bounds,re,this.gridColor[te],this.gridWidth[te]*this.pixelRatio)}for(var H=0;H<2;++H){var te=(Q+1+H)%3,ue=(Q+1+(H^1))%3;this.zeroEnable[ue]&&Math.min(L[0][ue],L[1][ue])<=0&&Math.max(L[0][ue],L[1][ue])>=0&&this._lines.drawZero(te,ue,this.bounds,re,this.zeroLineColor[ue],this.zeroLineWidth[ue]*this.pixelRatio)}}for(var Q=0;Q<3;++Q){this.lineEnable[Q]&&this._lines.drawAxisLine(Q,this.bounds,ie[Q].primalOffset,this.lineColor[Q],this.lineWidth[Q]*this.pixelRatio),this.lineMirror[Q]&&this._lines.drawAxisLine(Q,this.bounds,ie[Q].mirrorOffset,this.lineColor[Q],this.lineWidth[Q]*this.pixelRatio);for(var de=y(A,ie[Q].primalMinor),ke=y(h,ie[Q].mirrorMinor),Ae=this.lineTickLength,H=0;H<3;++H){var ve=ne/N[5*H];de[H]*=Ae[H]*ve,ke[H]*=Ae[H]*ve}this.lineTickEnable[Q]&&this._lines.drawAxisTicks(Q,ie[Q].primalOffset,de,this.lineTickColor[Q],this.lineTickWidth[Q]*this.pixelRatio),this.lineTickMirror[Q]&&this._lines.drawAxisTicks(Q,ie[Q].mirrorOffset,ke,this.lineTickColor[Q],this.lineTickWidth[Q]*this.pixelRatio)}this._lines.unbind(),this._text.bind(N,F,I,this.pixelRatio);var Te,Ee=.5,Pe,Se;function Ne(Re){Se=[0,0,0],Se[Re]=1}function Be(Re,ce,he){var ye=(Re+1)%3,Ce=(Re+2)%3,ze=ce[ye],qe=ce[Ce],$e=he[ye],We=he[Ce];if(ze>0&&We>0){Ne(ye);return}else if(ze>0&&We<0){Ne(ye);return}else if(ze<0&&We>0){Ne(ye);return}else if(ze<0&&We<0){Ne(ye);return}else if(qe>0&&$e>0){Ne(Ce);return}else if(qe>0&&$e<0){Ne(Ce);return}else if(qe<0&&$e>0){Ne(Ce);return}else if(qe<0&&$e<0){Ne(Ce);return}}for(var Q=0;Q<3;++Q){for(var ge=ie[Q].primalMinor,we=ie[Q].mirrorMinor,Me=y(R,ie[Q].primalOffset),H=0;H<3;++H)this.lineTickEnable[Q]&&(Me[H]+=ne*ge[H]*Math.max(this.lineTickLength[H],0)/N[5*H]);var me=[0,0,0];if(me[Q]=1,this.tickEnable[Q]){this.tickAngle[Q]===-3600?(this.tickAngle[Q]=0,this.tickAlign[Q]="auto"):this.tickAlign[Q]=-1,Pe=1,Te=[this.tickAlign[Q],Ee,Pe],Te[0]==="auto"?Te[0]=c:Te[0]=parseInt(""+Te[0]),Se=[0,0,0],Be(Q,ge,we);for(var H=0;H<3;++H)Me[H]+=ne*ge[H]*this.tickPad[H]/N[5*H];this._text.drawTicks(Q,this.tickSize[Q],this.tickAngle[Q],Me,this.tickColor[Q],me,Se,Te)}if(this.labelEnable[Q]){Pe=0,Se=[0,0,0],this.labels[Q].length>4&&(Ne(Q),Pe=1),Te=[this.labelAlign[Q],Ee,Pe],Te[0]==="auto"?Te[0]=c:Te[0]=parseInt(""+Te[0]);for(var H=0;H<3;++H)Me[H]+=ne*ge[H]*this.labelPad[H]/N[5*H];Me[Q]+=.5*(L[0][Q]+L[1][Q]),this._text.drawLabel(Q,this.labelSize[Q],this.labelAngle[Q],Me,this.labelColor[Q],[0,0,0],Se,Te)}}this._text.unbind()},S.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function E(D,N){var F=new k(D);return F.update(N),F}},5304:function(a,o,i){"use strict";a.exports=p;var l=i(2762),u=i(8116),s=i(1879).bg;function f(_,m,w,T){this.gl=_,this.buffer=m,this.vao=w,this.shader=T}var v=f.prototype;v.draw=function(_,m,w,T,y,k){for(var S=!1,x=0;x<3;++x)S=S||y[x];if(S){var M=this.gl;M.enable(M.POLYGON_OFFSET_FILL),M.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:_,view:m,projection:w,bounds:T,enable:y,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),M.disable(M.POLYGON_OFFSET_FILL)}},v.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function p(_){for(var m=[],w=[],T=0,y=0;y<3;++y)for(var k=(y+1)%3,S=(y+2)%3,x=[0,0,0],M=[0,0,0],d=-1;d<=1;d+=2){w.push(T,T+2,T+1,T+1,T+2,T+3),x[y]=d,M[y]=d;for(var b=-1;b<=1;b+=2){x[k]=b;for(var g=-1;g<=1;g+=2)x[S]=g,m.push(x[0],x[1],x[2],M[0],M[1],M[2]),T+=1}var c=k;k=S,S=c}var A=l(_,new Float32Array(m)),h=l(_,new Uint16Array(w),_.ELEMENT_ARRAY_BUFFER),R=u(_,[{buffer:A,type:_.FLOAT,size:3,offset:0,stride:24},{buffer:A,type:_.FLOAT,size:3,offset:12,stride:24}],h),E=s(_);return E.attributes.position.location=0,E.attributes.normal.location=1,new f(_,A,R,E)}},6429:function(a,o,i){"use strict";a.exports=d;var l=i(8828),u=i(6760),s=i(5202),f=i(3250),v=new Array(16),p=new Array(8),_=new Array(8),m=new Array(3),w=[0,0,0];(function(){for(var b=0;b<8;++b)p[b]=[1,1,1,1],_[b]=[1,1,1]})();function T(b,g,c){for(var A=0;A<4;++A){b[A]=c[12+A];for(var h=0;h<3;++h)b[A]+=g[h]*c[4*h+A]}}var y=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function k(b){for(var g=0;gX&&(F|=1<X){F|=1<_[E][1])&&(ie=E);for(var ee=-1,E=0;E<3;++E){var V=ie^1<_[re][0]&&(re=V)}}var H=S;H[0]=H[1]=H[2]=0,H[l.log2(ee^ie)]=ie&ee,H[l.log2(ie^re)]=ie&re;var te=re^7;te===F||te===Q?(te=ee^7,H[l.log2(re^te)]=te&re):H[l.log2(ee^te)]=teⅇfor(var ue=x,de=F,P=0;P<3;++P)de&1<=0;--H){var te=Q[re[H]];g.push(ne*te[0],-ne*te[1],P)}}for(var A=[0,0,0],h=[0,0,0],R=[0,0,0],E=[0,0,0],D=1.25,N={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},I=0;I<3;++I){R[I]=g.length/b|0,c(.5*(S[0][I]+S[1][I]),x[I],T[I],12,D,N),E[I]=(g.length/b|0)-R[I],A[I]=g.length/b|0;for(var F=0;F=0&&(b=v.length-p-1);var m=Math.pow(10,b),w=Math.round(s*f*m),M=w+"";if(M.indexOf("e")>=0)return M;var y=w/m,k=w%m;w<0?(y=-Math.ceil(y)|0,k=-k|0):(y=Math.floor(y)|0,k=k|0);var S=""+y;if(w<0&&(S="-"+S),b){for(var x=""+k;x.length=s[0][p];--w)b.push({x:w*f[p],text:i(f[p],w)});v.push(b)}return v}function u(s,f){for(var v=0;v<3;++v){if(s[v].length!==f[v].length)return!1;for(var p=0;pS)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return y.bufferSubData(k,d,T),S}function m(y,k){for(var S=l.malloc(y.length,k),x=y.length,T=0;T=0;--x){if(k[x]!==S)return!1;S*=y[x]}return!0}p.update=function(y,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof y=="object"&&typeof y.shape!="undefined"){var S=y.dtype;if(f.indexOf(S)<0&&(S="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var x=gl.getExtension("OES_element_index_uint");x&&S!=="uint16"?S="uint32":S="uint16"}if(S===y.dtype&&w(y.shape,y.stride))y.offset===0&&y.data.length===y.shape[0]?this.length=b(this.gl,this.type,this.length,this.usage,y.data,k):this.length=b(this.gl,this.type,this.length,this.usage,y.data.subarray(y.offset,y.shape[0]),k);else{var T=l.malloc(y.size,S),d=s(T,y.shape);u.assign(d,y),k<0?this.length=b(this.gl,this.type,this.length,this.usage,T,k):this.length=b(this.gl,this.type,this.length,this.usage,T.subarray(0,y.size),k),l.free(T)}}else if(Array.isArray(y)){var _;this.type===this.gl.ELEMENT_ARRAY_BUFFER?_=m(y,"uint16"):_=m(y,"float32"),k<0?this.length=b(this.gl,this.type,this.length,this.usage,_,k):this.length=b(this.gl,this.type,this.length,this.usage,_.subarray(0,y.length),k),l.free(_)}else if(typeof y=="object"&&typeof y.length=="number")this.length=b(this.gl,this.type,this.length,this.usage,y,k);else if(typeof y=="number"||y===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");y=y|0,y<=0&&(y=1),this.gl.bufferData(this.type,y|0,this.usage),this.length=y}else throw new Error("gl-buffer: Invalid data type")};function M(y,k,S,x){if(S=S||y.ARRAY_BUFFER,x=x||y.DYNAMIC_DRAW,S!==y.ARRAY_BUFFER&&S!==y.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(x!==y.DYNAMIC_DRAW&&x!==y.STATIC_DRAW&&x!==y.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var T=y.createBuffer(),d=new v(y,S,T,0,x);return d.update(k),d}a.exports=M},6405:function(a,o,i){"use strict";var l=i(2931);a.exports=function(s,f){var v=s.positions,p=s.vectors,b={positions:[],vertexIntensity:[],vertexIntensityBounds:s.vertexIntensityBounds,vectors:[],cells:[],coneOffset:s.coneOffset,colormap:s.colormap};if(s.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),b;for(var m=0,w=1/0,M=-1/0,y=1/0,k=-1/0,S=1/0,x=-1/0,T=null,d=null,_=[],g=1/0,c=!1,A=s.coneSizemode==="raw",h=0;hm&&(m=l.length(E)),h&&!A){var D=2*l.distance(T,R)/(l.length(d)+l.length(E));D?(g=Math.min(g,D),c=!1):c=!0}c||(T=R,d=E),_.push(E)}var N=[w,y,S],I=[M,k,x];f&&(f[0]=N,f[1]=I),m===0&&(m=1);var F=1/m;isFinite(g)||(g=1),b.vectorScale=g;var L=s.coneSize||(A?1:.5);s.absoluteConeSize&&(L=s.absoluteConeSize*F),b.coneScale=L;for(var h=0,P=0;h=1},y.isTransparent=function(){return this.opacity<1},y.pickSlots=1,y.setPickBase=function(_){this.pickId=_};function k(_){for(var g=m({colormap:_,nshades:256,format:"rgba"}),c=new Uint8Array(256*4),A=0;A<256;++A){for(var h=g[A],R=0;R<3;++R)c[4*A+R]=h[R];c[4*A+3]=h[3]*255}return b(c,[256,256,4],[4,0,1])}function S(_){for(var g=_.length,c=new Array(g),A=0;A0){var P=this.triShader;P.bind(),P.uniforms=D,this.triangleVAO.bind(),g.drawArrays(g.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},y.drawPick=function(_){_=_||{};for(var g=this.gl,c=_.model||w,A=_.view||w,h=_.projection||w,R=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],E=0;E<3;++E)R[0][E]=Math.max(R[0][E],this.clipBounds[0][E]),R[1][E]=Math.min(R[1][E],this.clipBounds[1][E]);this._model=[].slice.call(c),this._view=[].slice.call(A),this._projection=[].slice.call(h),this._resolution=[g.drawingBufferWidth,g.drawingBufferHeight];var D={model:c,view:A,projection:h,clipBounds:R,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},N=this.pickShader;N.bind(),N.uniforms=D,this.triangleCount>0&&(this.triangleVAO.bind(),g.drawArrays(g.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},y.pick=function(_){if(!_||_.id!==this.pickId)return null;var g=_.value[0]+256*_.value[1]+65536*_.value[2],c=this.cells[g],A=this.positions[c[1]].slice(0,3),h={position:A,dataCoordinate:A,index:Math.floor(c[1]/48)};return this.traceType==="cone"?h.index=Math.floor(c[1]/48):this.traceType==="streamtube"&&(h.intensity=this.intensity[c[1]],h.velocity=this.vectors[c[1]].slice(0,3),h.divergence=this.vectors[c[1]][3],h.index=g),h},y.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function x(_,g){var c=l(_,g.meshShader.vertex,g.meshShader.fragment,null,g.meshShader.attributes);return c.attributes.position.location=0,c.attributes.color.location=2,c.attributes.uv.location=3,c.attributes.vector.location=4,c}function T(_,g){var c=l(_,g.pickShader.vertex,g.pickShader.fragment,null,g.pickShader.attributes);return c.attributes.position.location=0,c.attributes.id.location=1,c.attributes.vector.location=4,c}function d(_,g,c){var A=c.shaders;arguments.length===1&&(g=_,_=g.gl);var h=x(_,A),R=T(_,A),E=f(_,b(new Uint8Array([255,255,255,255]),[1,1,4]));E.generateMipmap(),E.minFilter=_.LINEAR_MIPMAP_LINEAR,E.magFilter=_.LINEAR;var D=u(_),N=u(_),I=u(_),F=u(_),L=u(_),P=s(_,[{buffer:D,type:_.FLOAT,size:4},{buffer:L,type:_.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:I,type:_.FLOAT,size:4},{buffer:F,type:_.FLOAT,size:2},{buffer:N,type:_.FLOAT,size:4}]),O=new M(_,E,h,R,D,N,L,I,F,P,c.traceType||"cone");return O.update(g),O}a.exports=d},614:function(a,o,i){var l=i(3236),u=l([`precision highp float; +}`]);o.bg=function(w){return u(w,_,m,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935:function(a,o,i){"use strict";a.exports=k;var l=i(2762),u=i(8116),s=i(4359),f=i(1879).Q,v=window||process.global||{},p=v.__TEXT_CACHE||{};v.__TEXT_CACHE={};var _=3;function m(S,x,M,d){this.gl=S,this.shader=x,this.buffer=M,this.vao=d,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var w=m.prototype,T=[0,0];w.bind=function(S,x,M,d){this.vao.bind(),this.shader.bind();var b=this.shader.uniforms;b.model=S,b.view=x,b.projection=M,b.pixelScale=d,T[0]=this.gl.drawingBufferWidth,T[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=T},w.unbind=function(){this.vao.unbind()},w.update=function(S,x,M,d,b){var g=[];function c(P,O,U,X,$,j){var Y=[U.style,U.weight,U.variant,U.family].join("_"),q=p[Y];q||(q=p[Y]={});var K=q[O];K||(K=q[O]=y(O,{triangles:!0,font:U.family,fontStyle:U.style,fontWeight:U.weight,fontVariant:U.variant,textAlign:"center",textBaseline:"middle",lineSpacing:$,styletags:j}));for(var ne=(X||12)/12,Q=K.positions,ie=K.cells,ee=0,V=ie.length;ee=0;--H){var te=Q[re[H]];g.push(ne*te[0],-ne*te[1],P)}}for(var A=[0,0,0],h=[0,0,0],R=[0,0,0],E=[0,0,0],D=1.25,N={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},F=0;F<3;++F){R[F]=g.length/_|0,c(.5*(S[0][F]+S[1][F]),x[F],M[F],12,D,N),E[F]=(g.length/_|0)-R[F],A[F]=g.length/_|0;for(var I=0;I=0&&(_=v.length-p-1);var m=Math.pow(10,_),w=Math.round(s*f*m),T=w+"";if(T.indexOf("e")>=0)return T;var y=w/m,k=w%m;w<0?(y=-Math.ceil(y)|0,k=-k|0):(y=Math.floor(y)|0,k=k|0);var S=""+y;if(w<0&&(S="-"+S),_){for(var x=""+k;x.length<_;)x="0"+x;return S+"."+x}else return S}function l(s,f){for(var v=[],p=0;p<3;++p){for(var _=[],m=.5*(s[0][p]+s[1][p]),w=0;w*f[p]<=s[1][p];++w)_.push({x:w*f[p],text:i(f[p],w)});for(var w=-1;w*f[p]>=s[0][p];--w)_.push({x:w*f[p],text:i(f[p],w)});v.push(_)}return v}function u(s,f){for(var v=0;v<3;++v){if(s[v].length!==f[v].length)return!1;for(var p=0;pS)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return y.bufferSubData(k,d,M),S}function m(y,k){for(var S=l.malloc(y.length,k),x=y.length,M=0;M=0;--x){if(k[x]!==S)return!1;S*=y[x]}return!0}p.update=function(y,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof y=="object"&&typeof y.shape!="undefined"){var S=y.dtype;if(f.indexOf(S)<0&&(S="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var x=gl.getExtension("OES_element_index_uint");x&&S!=="uint16"?S="uint32":S="uint16"}if(S===y.dtype&&w(y.shape,y.stride))y.offset===0&&y.data.length===y.shape[0]?this.length=_(this.gl,this.type,this.length,this.usage,y.data,k):this.length=_(this.gl,this.type,this.length,this.usage,y.data.subarray(y.offset,y.shape[0]),k);else{var M=l.malloc(y.size,S),d=s(M,y.shape);u.assign(d,y),k<0?this.length=_(this.gl,this.type,this.length,this.usage,M,k):this.length=_(this.gl,this.type,this.length,this.usage,M.subarray(0,y.size),k),l.free(M)}}else if(Array.isArray(y)){var b;this.type===this.gl.ELEMENT_ARRAY_BUFFER?b=m(y,"uint16"):b=m(y,"float32"),k<0?this.length=_(this.gl,this.type,this.length,this.usage,b,k):this.length=_(this.gl,this.type,this.length,this.usage,b.subarray(0,y.length),k),l.free(b)}else if(typeof y=="object"&&typeof y.length=="number")this.length=_(this.gl,this.type,this.length,this.usage,y,k);else if(typeof y=="number"||y===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");y=y|0,y<=0&&(y=1),this.gl.bufferData(this.type,y|0,this.usage),this.length=y}else throw new Error("gl-buffer: Invalid data type")};function T(y,k,S,x){if(S=S||y.ARRAY_BUFFER,x=x||y.DYNAMIC_DRAW,S!==y.ARRAY_BUFFER&&S!==y.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(x!==y.DYNAMIC_DRAW&&x!==y.STATIC_DRAW&&x!==y.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var M=y.createBuffer(),d=new v(y,S,M,0,x);return d.update(k),d}a.exports=T},6405:function(a,o,i){"use strict";var l=i(2931);a.exports=function(s,f){var v=s.positions,p=s.vectors,_={positions:[],vertexIntensity:[],vertexIntensityBounds:s.vertexIntensityBounds,vectors:[],cells:[],coneOffset:s.coneOffset,colormap:s.colormap};if(s.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),_;for(var m=0,w=1/0,T=-1/0,y=1/0,k=-1/0,S=1/0,x=-1/0,M=null,d=null,b=[],g=1/0,c=!1,A=s.coneSizemode==="raw",h=0;hm&&(m=l.length(E)),h&&!A){var D=2*l.distance(M,R)/(l.length(d)+l.length(E));D?(g=Math.min(g,D),c=!1):c=!0}c||(M=R,d=E),b.push(E)}var N=[w,y,S],F=[T,k,x];f&&(f[0]=N,f[1]=F),m===0&&(m=1);var I=1/m;isFinite(g)||(g=1),_.vectorScale=g;var L=s.coneSize||(A?1:.5);s.absoluteConeSize&&(L=s.absoluteConeSize*I),_.coneScale=L;for(var h=0,P=0;h=1},y.isTransparent=function(){return this.opacity<1},y.pickSlots=1,y.setPickBase=function(b){this.pickId=b};function k(b){for(var g=m({colormap:b,nshades:256,format:"rgba"}),c=new Uint8Array(256*4),A=0;A<256;++A){for(var h=g[A],R=0;R<3;++R)c[4*A+R]=h[R];c[4*A+3]=h[3]*255}return _(c,[256,256,4],[4,0,1])}function S(b){for(var g=b.length,c=new Array(g),A=0;A0){var P=this.triShader;P.bind(),P.uniforms=D,this.triangleVAO.bind(),g.drawArrays(g.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},y.drawPick=function(b){b=b||{};for(var g=this.gl,c=b.model||w,A=b.view||w,h=b.projection||w,R=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],E=0;E<3;++E)R[0][E]=Math.max(R[0][E],this.clipBounds[0][E]),R[1][E]=Math.min(R[1][E],this.clipBounds[1][E]);this._model=[].slice.call(c),this._view=[].slice.call(A),this._projection=[].slice.call(h),this._resolution=[g.drawingBufferWidth,g.drawingBufferHeight];var D={model:c,view:A,projection:h,clipBounds:R,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},N=this.pickShader;N.bind(),N.uniforms=D,this.triangleCount>0&&(this.triangleVAO.bind(),g.drawArrays(g.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},y.pick=function(b){if(!b||b.id!==this.pickId)return null;var g=b.value[0]+256*b.value[1]+65536*b.value[2],c=this.cells[g],A=this.positions[c[1]].slice(0,3),h={position:A,dataCoordinate:A,index:Math.floor(c[1]/48)};return this.traceType==="cone"?h.index=Math.floor(c[1]/48):this.traceType==="streamtube"&&(h.intensity=this.intensity[c[1]],h.velocity=this.vectors[c[1]].slice(0,3),h.divergence=this.vectors[c[1]][3],h.index=g),h},y.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function x(b,g){var c=l(b,g.meshShader.vertex,g.meshShader.fragment,null,g.meshShader.attributes);return c.attributes.position.location=0,c.attributes.color.location=2,c.attributes.uv.location=3,c.attributes.vector.location=4,c}function M(b,g){var c=l(b,g.pickShader.vertex,g.pickShader.fragment,null,g.pickShader.attributes);return c.attributes.position.location=0,c.attributes.id.location=1,c.attributes.vector.location=4,c}function d(b,g,c){var A=c.shaders;arguments.length===1&&(g=b,b=g.gl);var h=x(b,A),R=M(b,A),E=f(b,_(new Uint8Array([255,255,255,255]),[1,1,4]));E.generateMipmap(),E.minFilter=b.LINEAR_MIPMAP_LINEAR,E.magFilter=b.LINEAR;var D=u(b),N=u(b),F=u(b),I=u(b),L=u(b),P=s(b,[{buffer:D,type:b.FLOAT,size:4},{buffer:L,type:b.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:F,type:b.FLOAT,size:4},{buffer:I,type:b.FLOAT,size:2},{buffer:N,type:b.FLOAT,size:4}]),O=new T(b,E,h,R,D,N,L,F,I,P,c.traceType||"cone");return O.update(g),O}a.exports=d},614:function(a,o,i){var l=i(3236),u=l([`precision highp float; precision highp float; #define GLSLIFY 1 @@ -574,7 +574,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; gl_FragColor = vec4(pickId, f_id.xyz); -}`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},o.pickShader={vertex:f,fragment:v,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(a){a.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(a,o,i){var l=i(737);a.exports=function(s){return l[s]}},9165:function(a,o,i){"use strict";a.exports=M;var l=i(2762),u=i(8116),s=i(3436),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function v(y,k,S,x){this.gl=y,this.shader=x,this.buffer=k,this.vao=S,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var p=v.prototype;p.isOpaque=function(){return!this.hasAlpha},p.isTransparent=function(){return this.hasAlpha},p.drawTransparent=p.draw=function(y){var k=this.gl,S=this.shader.uniforms;this.shader.bind();var x=S.view=y.view||f,T=S.projection=y.projection||f;S.model=y.model||f,S.clipBounds=this.clipBounds,S.opacity=this.opacity;var d=x[12],_=x[13],g=x[14],c=x[15],A=y._ortho||!1,h=A?2:1,R=h*this.pixelRatio*(T[3]*d+T[7]*_+T[11]*g+T[15]*c)/k.drawingBufferHeight;this.vao.bind();for(var E=0;E<3;++E)k.lineWidth(this.lineWidth[E]*this.pixelRatio),S.capSize=this.capSize[E]*R,this.lineCount[E]&&k.drawArrays(k.LINES,this.lineOffset[E],this.lineCount[E]);this.vao.unbind()};function b(y,k){for(var S=0;S<3;++S)y[0][S]=Math.min(y[0][S],k[S]),y[1][S]=Math.max(y[1][S],k[S])}var m=function(){for(var y=new Array(3),k=0;k<3;++k){for(var S=[],x=1;x<=2;++x)for(var T=-1;T<=1;T+=2){var d=(x+k)%3,_=[0,0,0];_[d]=T,S.push(_)}y[k]=S}return y}();function w(y,k,S,x){for(var T=m[x],d=0;d0){var D=A.slice();D[g]+=R[1][g],T.push(A[0],A[1],A[2],E[0],E[1],E[2],E[3],0,0,0,D[0],D[1],D[2],E[0],E[1],E[2],E[3],0,0,0),b(this.bounds,D),_+=2+w(T,D,E,g)}}}this.lineCount[g]=_-this.lineOffset[g]}this.buffer.update(T)}},p.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function M(y){var k=y.gl,S=l(k),x=u(k,[{buffer:S,type:k.FLOAT,size:3,offset:0,stride:40},{buffer:S,type:k.FLOAT,size:4,offset:12,stride:40},{buffer:S,type:k.FLOAT,size:3,offset:28,stride:40}]),T=s(k);T.attributes.position.location=0,T.attributes.color.location=1,T.attributes.offset.location=2;var d=new v(k,S,x,T);return d.update(y),d}},3436:function(a,o,i){"use strict";var l=i(3236),u=i(9405),s=l([`precision highp float; +}`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},o.pickShader={vertex:f,fragment:v,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(a){a.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(a,o,i){var l=i(737);a.exports=function(s){return l[s]}},9165:function(a,o,i){"use strict";a.exports=T;var l=i(2762),u=i(8116),s=i(3436),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function v(y,k,S,x){this.gl=y,this.shader=x,this.buffer=k,this.vao=S,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var p=v.prototype;p.isOpaque=function(){return!this.hasAlpha},p.isTransparent=function(){return this.hasAlpha},p.drawTransparent=p.draw=function(y){var k=this.gl,S=this.shader.uniforms;this.shader.bind();var x=S.view=y.view||f,M=S.projection=y.projection||f;S.model=y.model||f,S.clipBounds=this.clipBounds,S.opacity=this.opacity;var d=x[12],b=x[13],g=x[14],c=x[15],A=y._ortho||!1,h=A?2:1,R=h*this.pixelRatio*(M[3]*d+M[7]*b+M[11]*g+M[15]*c)/k.drawingBufferHeight;this.vao.bind();for(var E=0;E<3;++E)k.lineWidth(this.lineWidth[E]*this.pixelRatio),S.capSize=this.capSize[E]*R,this.lineCount[E]&&k.drawArrays(k.LINES,this.lineOffset[E],this.lineCount[E]);this.vao.unbind()};function _(y,k){for(var S=0;S<3;++S)y[0][S]=Math.min(y[0][S],k[S]),y[1][S]=Math.max(y[1][S],k[S])}var m=function(){for(var y=new Array(3),k=0;k<3;++k){for(var S=[],x=1;x<=2;++x)for(var M=-1;M<=1;M+=2){var d=(x+k)%3,b=[0,0,0];b[d]=M,S.push(b)}y[k]=S}return y}();function w(y,k,S,x){for(var M=m[x],d=0;d0){var D=A.slice();D[g]+=R[1][g],M.push(A[0],A[1],A[2],E[0],E[1],E[2],E[3],0,0,0,D[0],D[1],D[2],E[0],E[1],E[2],E[3],0,0,0),_(this.bounds,D),b+=2+w(M,D,E,g)}}}this.lineCount[g]=b-this.lineOffset[g]}this.buffer.update(M)}},p.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function T(y){var k=y.gl,S=l(k),x=u(k,[{buffer:S,type:k.FLOAT,size:3,offset:0,stride:40},{buffer:S,type:k.FLOAT,size:4,offset:12,stride:40},{buffer:S,type:k.FLOAT,size:3,offset:28,stride:40}]),M=s(k);M.attributes.position.location=0,M.attributes.color.location=1,M.attributes.offset.location=2;var d=new v(k,S,x,M);return d.update(y),d}},3436:function(a,o,i){"use strict";var l=i(3236),u=i(9405),s=l([`precision highp float; #define GLSLIFY 1 attribute vec3 position, offset; @@ -625,11 +625,11 @@ void main() { ) discard; gl_FragColor = opacity * fragColor; -}`]);a.exports=function(v){return u(v,s,f,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260:function(a,o,i){"use strict";var l=i(7766);a.exports=_;var u=null,s,f,v,p;function b(g){var c=g.getParameter(g.FRAMEBUFFER_BINDING),A=g.getParameter(g.RENDERBUFFER_BINDING),h=g.getParameter(g.TEXTURE_BINDING_2D);return[c,A,h]}function m(g,c){g.bindFramebuffer(g.FRAMEBUFFER,c[0]),g.bindRenderbuffer(g.RENDERBUFFER,c[1]),g.bindTexture(g.TEXTURE_2D,c[2])}function w(g,c){var A=g.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL);u=new Array(A+1);for(var h=0;h<=A;++h){for(var R=new Array(A),E=0;E1&&N.drawBuffersWEBGL(u[D]);var O=A.getExtension("WEBGL_depth_texture");O?I?g.depth=y(A,R,E,O.UNSIGNED_INT_24_8_WEBGL,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):F&&(g.depth=y(A,R,E,A.UNSIGNED_SHORT,A.DEPTH_COMPONENT,A.DEPTH_ATTACHMENT)):F&&I?g._depth_rb=k(A,R,E,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):F?g._depth_rb=k(A,R,E,A.DEPTH_COMPONENT16,A.DEPTH_ATTACHMENT):I&&(g._depth_rb=k(A,R,E,A.STENCIL_INDEX,A.STENCIL_ATTACHMENT));var U=A.checkFramebufferStatus(A.FRAMEBUFFER);if(U!==A.FRAMEBUFFER_COMPLETE){g._destroyed=!0,A.bindFramebuffer(A.FRAMEBUFFER,null),A.deleteFramebuffer(g.handle),g.handle=null,g.depth&&(g.depth.dispose(),g.depth=null),g._depth_rb&&(A.deleteRenderbuffer(g._depth_rb),g._depth_rb=null);for(var P=0;PR||A<0||A>R)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");g._shape[0]=c,g._shape[1]=A;for(var E=b(h),D=0;DE||A<0||A>E)throw new Error("gl-fbo: Parameters are too large for FBO");h=h||{};var D=1;if("color"in h){if(D=Math.max(h.color|0,0),D<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(D>1)if(R){if(D>g.getParameter(R.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+D+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var N=g.UNSIGNED_BYTE,I=g.getExtension("OES_texture_float");if(h.float&&D>0){if(!I)throw new Error("gl-fbo: Context does not support floating point textures");N=g.FLOAT}else h.preferFloat&&D>0&&I&&(N=g.FLOAT);var F=!0;"depth"in h&&(F=!!h.depth);var L=!1;return"stencil"in h&&(L=!!h.stencil),new x(g,c,A,N,D,F,L,R)}},2992:function(a,o,i){var l=i(3387).sprintf,u=i(5171),s=i(1848),f=i(1085);a.exports=v;function v(p,b,m){"use strict";var w=s(b)||"of unknown name (see npm glsl-shader-name)",M="unknown type";m!==void 0&&(M=m===u.FRAGMENT_SHADER?"fragment":"vertex");for(var y=l(`Error compiling %s shader %s: -`,M,w),k=l("%s%s",y,p),S=p.split(` -`),x={},T=0;T1&&N.drawBuffersWEBGL(u[D]);var O=A.getExtension("WEBGL_depth_texture");O?F?g.depth=y(A,R,E,O.UNSIGNED_INT_24_8_WEBGL,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):I&&(g.depth=y(A,R,E,A.UNSIGNED_SHORT,A.DEPTH_COMPONENT,A.DEPTH_ATTACHMENT)):I&&F?g._depth_rb=k(A,R,E,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):I?g._depth_rb=k(A,R,E,A.DEPTH_COMPONENT16,A.DEPTH_ATTACHMENT):F&&(g._depth_rb=k(A,R,E,A.STENCIL_INDEX,A.STENCIL_ATTACHMENT));var U=A.checkFramebufferStatus(A.FRAMEBUFFER);if(U!==A.FRAMEBUFFER_COMPLETE){g._destroyed=!0,A.bindFramebuffer(A.FRAMEBUFFER,null),A.deleteFramebuffer(g.handle),g.handle=null,g.depth&&(g.depth.dispose(),g.depth=null),g._depth_rb&&(A.deleteRenderbuffer(g._depth_rb),g._depth_rb=null);for(var P=0;PR||A<0||A>R)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");g._shape[0]=c,g._shape[1]=A;for(var E=_(h),D=0;DE||A<0||A>E)throw new Error("gl-fbo: Parameters are too large for FBO");h=h||{};var D=1;if("color"in h){if(D=Math.max(h.color|0,0),D<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(D>1)if(R){if(D>g.getParameter(R.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+D+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var N=g.UNSIGNED_BYTE,F=g.getExtension("OES_texture_float");if(h.float&&D>0){if(!F)throw new Error("gl-fbo: Context does not support floating point textures");N=g.FLOAT}else h.preferFloat&&D>0&&F&&(N=g.FLOAT);var I=!0;"depth"in h&&(I=!!h.depth);var L=!1;return"stencil"in h&&(L=!!h.stencil),new x(g,c,A,N,D,I,L,R)}},2992:function(a,o,i){var l=i(3387).sprintf,u=i(5171),s=i(1848),f=i(1085);a.exports=v;function v(p,_,m){"use strict";var w=s(_)||"of unknown name (see npm glsl-shader-name)",T="unknown type";m!==void 0&&(T=m===u.FRAGMENT_SHADER?"fragment":"vertex");for(var y=l(`Error compiling %s shader %s: +`,T,w),k=l("%s%s",y,p),S=p.split(` +`),x={},M=0;M0){for(var Y=0;Y<24;++Y)E.push(E[E.length-12]);F+=2,X=!0}continue e}L[0][h]=Math.min(L[0][h],$[h],j[h]),L[1][h]=Math.max(L[1][h],$[h],j[h])}var q,K;Array.isArray(O[0])?(q=O.length>A-1?O[A-1]:O.length>0?O[O.length-1]:[0,0,0,1],K=O.length>A?O[A]:O.length>0?O[O.length-1]:[0,0,0,1]):q=K=O,q.length===3&&(q=[q[0],q[1],q[2],1]),K.length===3&&(K=[K[0],K[1],K[2],1]),!this.hasAlpha&&q[3]<1&&(this.hasAlpha=!0);var ne;Array.isArray(U)?ne=U.length>A-1?U[A-1]:U.length>0?U[U.length-1]:[0,0,0,1]:ne=U;var Q=I;if(I+=S($,j),X){for(h=0;h<2;++h)E.push($[0],$[1],$[2],j[0],j[1],j[2],Q,ne,q[0],q[1],q[2],q[3]);F+=2,X=!1}E.push($[0],$[1],$[2],j[0],j[1],j[2],Q,ne,q[0],q[1],q[2],q[3],$[0],$[1],$[2],j[0],j[1],j[2],Q,-ne,q[0],q[1],q[2],q[3],j[0],j[1],j[2],$[0],$[1],$[2],I,-ne,K[0],K[1],K[2],K[3],j[0],j[1],j[2],$[0],$[1],$[2],I,ne,K[0],K[1],K[2],K[3]),F+=4}}if(this.buffer.update(E),D.push(I),N.push(P[P.length-1].slice()),this.bounds=L,this.vertexCount=F,this.points=N,this.arcLength=D,"dashes"in c){var ie=c.dashes,ee=ie.slice();for(ee.unshift(0),A=1;A1.0001)return null;h+=A[T]}return Math.abs(h-1)>.001?null:[d,p(m,A),A]}},840:function(a,o,i){var l=i(3236),u=l([`precision highp float; +}`]),p=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];o.createShader=function(_){return u(_,s,f,null,p)},o.createPickShader=function(_){return u(_,s,v,null,p)}},5714:function(a,o,i){"use strict";a.exports=g;var l=i(2762),u=i(8116),s=i(7766),f=new Uint8Array(4),v=new Float32Array(f.buffer);function p(c,A,h,R){return f[0]=R,f[1]=h,f[2]=A,f[3]=c,v[0]}var _=i(2478),m=i(9618),w=i(7319),T=w.createShader,y=w.createPickShader,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function S(c,A){for(var h=0,R=0;R<3;++R){var E=c[R]-A[R];h+=E*E}return Math.sqrt(h)}function x(c){for(var A=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],h=0;h<3;++h)A[0][h]=Math.max(c[0][h],A[0][h]),A[1][h]=Math.min(c[1][h],A[1][h]);return A}function M(c,A,h,R){this.arcLength=c,this.position=A,this.index=h,this.dataCoordinate=R}function d(c,A,h,R,E,D){this.gl=c,this.shader=A,this.pickShader=h,this.buffer=R,this.vao=E,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=D,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var b=d.prototype;b.isTransparent=function(){return this.hasAlpha},b.isOpaque=function(){return!this.hasAlpha},b.pickSlots=1,b.setPickBase=function(c){this.pickId=c},b.drawTransparent=b.draw=function(c){if(this.vertexCount){var A=this.gl,h=this.shader,R=this.vao;h.bind(),h.uniforms={model:c.model||k,view:c.view||k,projection:c.projection||k,clipBounds:x(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[A.drawingBufferWidth,A.drawingBufferHeight],pixelRatio:this.pixelRatio},R.bind(),R.draw(A.TRIANGLE_STRIP,this.vertexCount),R.unbind()}},b.drawPick=function(c){if(this.vertexCount){var A=this.gl,h=this.pickShader,R=this.vao;h.bind(),h.uniforms={model:c.model||k,view:c.view||k,projection:c.projection||k,pickId:this.pickId,clipBounds:x(this.clipBounds),screenShape:[A.drawingBufferWidth,A.drawingBufferHeight],pixelRatio:this.pixelRatio},R.bind(),R.draw(A.TRIANGLE_STRIP,this.vertexCount),R.unbind()}},b.update=function(c){var A,h;this.dirty=!0;var R=!!c.connectGaps;"dashScale"in c&&(this.dashScale=c.dashScale),this.hasAlpha=!1,"opacity"in c&&(this.opacity=+c.opacity,this.opacity<1&&(this.hasAlpha=!0));var E=[],D=[],N=[],F=0,I=0,L=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],P=c.position||c.positions;if(P){var O=c.color||c.colors||[0,0,0,1],U=c.lineWidth||1,X=!1;e:for(A=1;A0){for(var Y=0;Y<24;++Y)E.push(E[E.length-12]);I+=2,X=!0}continue e}L[0][h]=Math.min(L[0][h],$[h],j[h]),L[1][h]=Math.max(L[1][h],$[h],j[h])}var q,K;Array.isArray(O[0])?(q=O.length>A-1?O[A-1]:O.length>0?O[O.length-1]:[0,0,0,1],K=O.length>A?O[A]:O.length>0?O[O.length-1]:[0,0,0,1]):q=K=O,q.length===3&&(q=[q[0],q[1],q[2],1]),K.length===3&&(K=[K[0],K[1],K[2],1]),!this.hasAlpha&&q[3]<1&&(this.hasAlpha=!0);var ne;Array.isArray(U)?ne=U.length>A-1?U[A-1]:U.length>0?U[U.length-1]:[0,0,0,1]:ne=U;var Q=F;if(F+=S($,j),X){for(h=0;h<2;++h)E.push($[0],$[1],$[2],j[0],j[1],j[2],Q,ne,q[0],q[1],q[2],q[3]);I+=2,X=!1}E.push($[0],$[1],$[2],j[0],j[1],j[2],Q,ne,q[0],q[1],q[2],q[3],$[0],$[1],$[2],j[0],j[1],j[2],Q,-ne,q[0],q[1],q[2],q[3],j[0],j[1],j[2],$[0],$[1],$[2],F,-ne,K[0],K[1],K[2],K[3],j[0],j[1],j[2],$[0],$[1],$[2],F,ne,K[0],K[1],K[2],K[3]),I+=4}}if(this.buffer.update(E),D.push(F),N.push(P[P.length-1].slice()),this.bounds=L,this.vertexCount=I,this.points=N,this.arcLength=D,"dashes"in c){var ie=c.dashes,ee=ie.slice();for(ee.unshift(0),A=1;A1.0001)return null;h+=A[M]}return Math.abs(h-1)>.001?null:[d,p(m,A),A]}},840:function(a,o,i){var l=i(3236),u=l([`precision highp float; #define GLSLIFY 1 attribute vec3 position, normal; @@ -1034,7 +1034,7 @@ void main() { gl_PointSize = pointSize; f_color = color; f_uv = uv; -}`]),b=l([`precision highp float; +}`]),_=l([`precision highp float; #define GLSLIFY 1 uniform sampler2D texture; @@ -1097,7 +1097,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; gl_FragColor = vec4(pickId, f_id.xyz); -}`]),M=l([`precision highp float; +}`]),T=l([`precision highp float; #define GLSLIFY 1 bool outOfRange(float a, float b, float p) { @@ -1157,7 +1157,7 @@ uniform vec3 contourColor; void main() { gl_FragColor = vec4(contourColor, 1.0); } -`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.wireShader={vertex:f,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.pointShader={vertex:p,fragment:b,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},o.pickShader={vertex:m,fragment:w,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},o.pointPickShader={vertex:M,fragment:w,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},o.contourShader={vertex:y,fragment:k,attributes:[{name:"position",type:"vec3"}]}},7201:function(a,o,i){"use strict";var l=1e-6,u=1e-6,s=i(9405),f=i(2762),v=i(8116),p=i(7766),b=i(8406),m=i(6760),w=i(7608),M=i(9618),y=i(6729),k=i(7765),S=i(1888),x=i(840),T=i(7626),d=x.meshShader,_=x.wireShader,g=x.pointShader,c=x.pickShader,A=x.pointPickShader,h=x.contourShader,R=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(Y,q,K,ne,Q,ie,ee,V,re,H,te,ue,de,ke,Ae,ve,Te,Ee,Pe,Se,Ne,Be,ge,we,Me,me,Re){this.gl=Y,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=K,this.lineShader=ne,this.pointShader=Q,this.pickShader=ie,this.pointPickShader=ee,this.contourShader=V,this.trianglePositions=re,this.triangleColors=te,this.triangleNormals=de,this.triangleUVs=ue,this.triangleIds=H,this.triangleVAO=ke,this.triangleCount=0,this.lineWidth=1,this.edgePositions=Ae,this.edgeColors=Te,this.edgeUVs=Ee,this.edgeIds=ve,this.edgeVAO=Pe,this.edgeCount=0,this.pointPositions=Se,this.pointColors=Be,this.pointUVs=ge,this.pointSizes=we,this.pointIds=Ne,this.pointVAO=Me,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=me,this.contourVAO=Re,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=R,this._view=R,this._projection=R,this._resolution=[1,1]}var D=E.prototype;D.isOpaque=function(){return!this.hasAlpha},D.isTransparent=function(){return this.hasAlpha},D.pickSlots=1,D.setPickBase=function(Y){this.pickId=Y};function N(Y,q){if(!q||!q.length)return 1;for(var K=0;KY&&K>0){var ne=(q[K][0]-Y)/(q[K][0]-q[K-1][0]);return q[K][1]*(1-ne)+ne*q[K-1][1]}}return 1}function I(Y,q){for(var K=y({colormap:Y,nshades:256,format:"rgba"}),ne=new Uint8Array(256*4),Q=0;Q<256;++Q){for(var ie=K[Q],ee=0;ee<3;++ee)ne[4*Q+ee]=ie[ee];q?ne[4*Q+3]=255*N(Q/255,q):ne[4*Q+3]=255*ie[3]}return M(ne,[256,256,4],[4,0,1])}function F(Y){for(var q=Y.length,K=new Array(q),ne=0;ne0){var de=this.triShader;de.bind(),de.uniforms=V,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var de=this.lineShader;de.bind(),de.uniforms=V,this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var de=this.pointShader;de.bind(),de.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var de=this.contourShader;de.bind(),de.uniforms=V,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},D.drawPick=function(Y){Y=Y||{};for(var q=this.gl,K=Y.model||R,ne=Y.view||R,Q=Y.projection||R,ie=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],ee=0;ee<3;++ee)ie[0][ee]=Math.max(ie[0][ee],this.clipBounds[0][ee]),ie[1][ee]=Math.min(ie[1][ee],this.clipBounds[1][ee]);this._model=[].slice.call(K),this._view=[].slice.call(ne),this._projection=[].slice.call(Q),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var V={model:K,view:ne,projection:Q,clipBounds:ie,pickId:this.pickId/255},re=this.pickShader;if(re.bind(),re.uniforms=V,this.triangleCount>0&&(this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var re=this.pointPickShader;re.bind(),re.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},D.pick=function(Y){if(!Y||Y.id!==this.pickId)return null;for(var q=Y.value[0]+256*Y.value[1]+65536*Y.value[2],K=this.cells[q],ne=this.positions,Q=new Array(K.length),ie=0;ieMath.abs(c))y.rotate(R,0,0,-g*A*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var E=-d.zoomSpeed*h*c/window.innerHeight*(R-y.lastT())/20;y.pan(R,0,0,S*(Math.exp(E)-1))}}},!0)},d.enableMouseListeners(),d}},799:function(a,o,i){var l=i(3236),u=i(9405),s=l([`precision mediump float; +`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.wireShader={vertex:f,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.pointShader={vertex:p,fragment:_,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},o.pickShader={vertex:m,fragment:w,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},o.pointPickShader={vertex:T,fragment:w,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},o.contourShader={vertex:y,fragment:k,attributes:[{name:"position",type:"vec3"}]}},7201:function(a,o,i){"use strict";var l=1e-6,u=1e-6,s=i(9405),f=i(2762),v=i(8116),p=i(7766),_=i(8406),m=i(6760),w=i(7608),T=i(9618),y=i(6729),k=i(7765),S=i(1888),x=i(840),M=i(7626),d=x.meshShader,b=x.wireShader,g=x.pointShader,c=x.pickShader,A=x.pointPickShader,h=x.contourShader,R=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(Y,q,K,ne,Q,ie,ee,V,re,H,te,ue,de,ke,Ae,ve,Te,Ee,Pe,Se,Ne,Be,ge,we,Me,me,Re){this.gl=Y,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=K,this.lineShader=ne,this.pointShader=Q,this.pickShader=ie,this.pointPickShader=ee,this.contourShader=V,this.trianglePositions=re,this.triangleColors=te,this.triangleNormals=de,this.triangleUVs=ue,this.triangleIds=H,this.triangleVAO=ke,this.triangleCount=0,this.lineWidth=1,this.edgePositions=Ae,this.edgeColors=Te,this.edgeUVs=Ee,this.edgeIds=ve,this.edgeVAO=Pe,this.edgeCount=0,this.pointPositions=Se,this.pointColors=Be,this.pointUVs=ge,this.pointSizes=we,this.pointIds=Ne,this.pointVAO=Me,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=me,this.contourVAO=Re,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=R,this._view=R,this._projection=R,this._resolution=[1,1]}var D=E.prototype;D.isOpaque=function(){return!this.hasAlpha},D.isTransparent=function(){return this.hasAlpha},D.pickSlots=1,D.setPickBase=function(Y){this.pickId=Y};function N(Y,q){if(!q||!q.length)return 1;for(var K=0;KY&&K>0){var ne=(q[K][0]-Y)/(q[K][0]-q[K-1][0]);return q[K][1]*(1-ne)+ne*q[K-1][1]}}return 1}function F(Y,q){for(var K=y({colormap:Y,nshades:256,format:"rgba"}),ne=new Uint8Array(256*4),Q=0;Q<256;++Q){for(var ie=K[Q],ee=0;ee<3;++ee)ne[4*Q+ee]=ie[ee];q?ne[4*Q+3]=255*N(Q/255,q):ne[4*Q+3]=255*ie[3]}return T(ne,[256,256,4],[4,0,1])}function I(Y){for(var q=Y.length,K=new Array(q),ne=0;ne0){var de=this.triShader;de.bind(),de.uniforms=V,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var de=this.lineShader;de.bind(),de.uniforms=V,this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var de=this.pointShader;de.bind(),de.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var de=this.contourShader;de.bind(),de.uniforms=V,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},D.drawPick=function(Y){Y=Y||{};for(var q=this.gl,K=Y.model||R,ne=Y.view||R,Q=Y.projection||R,ie=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],ee=0;ee<3;++ee)ie[0][ee]=Math.max(ie[0][ee],this.clipBounds[0][ee]),ie[1][ee]=Math.min(ie[1][ee],this.clipBounds[1][ee]);this._model=[].slice.call(K),this._view=[].slice.call(ne),this._projection=[].slice.call(Q),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var V={model:K,view:ne,projection:Q,clipBounds:ie,pickId:this.pickId/255},re=this.pickShader;if(re.bind(),re.uniforms=V,this.triangleCount>0&&(this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var re=this.pointPickShader;re.bind(),re.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},D.pick=function(Y){if(!Y||Y.id!==this.pickId)return null;for(var q=Y.value[0]+256*Y.value[1]+65536*Y.value[2],K=this.cells[q],ne=this.positions,Q=new Array(K.length),ie=0;ieMath.abs(c))y.rotate(R,0,0,-g*A*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var E=-d.zoomSpeed*h*c/window.innerHeight*(R-y.lastT())/20;y.pan(R,0,0,S*(Math.exp(E)-1))}}},!0)},d.enableMouseListeners(),d}},799:function(a,o,i){var l=i(3236),u=i(9405),s=l([`precision mediump float; #define GLSLIFY 1 attribute vec2 position; varying vec2 uv; @@ -1173,7 +1173,7 @@ varying vec2 uv; void main() { vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); gl_FragColor = min(vec4(1,1,1,1), accum); -}`]);a.exports=function(v){return u(v,s,f,null,[{name:"position",type:"vec2"}])}},4100:function(a,o,i){"use strict";var l=i(4437),u=i(3837),s=i(5445),f=i(4449),v=i(3589),p=i(2260),b=i(7169),m=i(351),w=i(4772),M=i(4040),y=i(799),k=i(9216)({tablet:!0,featureDetect:!0});a.exports={createScene:_,createCamera:l};function S(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function x(c,A){var h=null;try{h=c.getContext("webgl",A),h||(h=c.getContext("experimental-webgl",A))}catch(R){return null}return h}function T(c){var A=Math.round(Math.log(Math.abs(c))/Math.log(10));if(A<0){var h=Math.round(Math.pow(10,-A));return Math.ceil(c*h)/h}else if(A>0){var h=Math.round(Math.pow(10,A));return Math.ceil(c/h)*h}return Math.ceil(c)}function d(c){return typeof c=="boolean"?c:!0}function _(c){c=c||{},c.camera=c.camera||{};var A=c.canvas;if(!A)if(A=document.createElement("canvas"),c.container){var h=c.container;h.appendChild(A)}else document.body.appendChild(A);var R=c.gl;if(R||(c.glOptions&&(k=!!c.glOptions.preserveDrawingBuffer),R=x(A,c.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!R)throw new Error("webgl not supported");var E=c.bounds||[[-10,-10,-10],[10,10,10]],D=new S,N=p(R,R.drawingBufferWidth,R.drawingBufferHeight,{preferFloat:!k}),I=y(R),F=c.cameraObject&&c.cameraObject._ortho===!0||c.camera.projection&&c.camera.projection.type==="orthographic"||!1,L={eye:c.camera.eye||[2,0,0],center:c.camera.center||[0,0,0],up:c.camera.up||[0,1,0],zoomMin:c.camera.zoomMax||.1,zoomMax:c.camera.zoomMin||100,mode:c.camera.mode||"turntable",_ortho:F},P=c.axes||{},O=u(R,P);O.enable=!P.disable;var U=c.spikes||{},X=f(R,U),$=[],j=[],Y=[],q=[],K=!0,ee=!0,ne=new Array(16),Q=new Array(16),ie={view:null,projection:ne,model:Q,_ortho:!1},ee=!0,V=[R.drawingBufferWidth,R.drawingBufferHeight],re=c.cameraObject||l(A,L),H={gl:R,contextLost:!1,pixelRatio:c.pixelRatio||1,canvas:A,selection:D,camera:re,axes:O,axesPixels:null,spikes:X,bounds:E,objects:$,shape:V,aspect:c.aspectRatio||[1,1,1],pickRadius:c.pickRadius||10,zNear:c.zNear||.01,zFar:c.zFar||1e3,fovy:c.fovy||Math.PI/4,clearColor:c.clearColor||[0,0,0,0],autoResize:d(c.autoResize),autoBounds:d(c.autoBounds),autoScale:!!c.autoScale,autoCenter:d(c.autoCenter),clipToBounds:d(c.clipToBounds),snapToData:!!c.snapToData,onselect:c.onselect||null,onrender:c.onrender||null,onclick:c.onclick||null,cameraParams:ie,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Se){this.aspect[0]=Se.x,this.aspect[1]=Se.y,this.aspect[2]=Se.z,ee=!0},setBounds:function(Se,Ne){this.bounds[0][Se]=Ne.min,this.bounds[1][Se]=Ne.max},setClearColor:function(Se){this.clearColor=Se},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},te=[R.drawingBufferWidth/H.pixelRatio|0,R.drawingBufferHeight/H.pixelRatio|0];function ue(){if(!H._stopped&&H.autoResize){var Se=A.parentNode,Ne=1,Be=1;Se&&Se!==document.body?(Ne=Se.clientWidth,Be=Se.clientHeight):(Ne=window.innerWidth,Be=window.innerHeight);var ge=Math.ceil(Ne*H.pixelRatio)|0,we=Math.ceil(Be*H.pixelRatio)|0;if(ge!==A.width||we!==A.height){A.width=ge,A.height=we;var Me=A.style;Me.position=Me.position||"absolute",Me.left="0px",Me.top="0px",Me.width=Ne+"px",Me.height=Be+"px",K=!0}}}H.autoResize&&ue(),window.addEventListener("resize",ue);function de(){for(var Se=$.length,Ne=q.length,Be=0;Be0&&Y[Ne-1]===0;)Y.pop(),q.pop().dispose()}H.update=function(Se){H._stopped||(Se=Se||{},K=!0,ee=!0)},H.add=function(Se){H._stopped||(Se.axes=O,$.push(Se),j.push(-1),K=!0,ee=!0,de())},H.remove=function(Se){if(!H._stopped){var Ne=$.indexOf(Se);Ne<0||($.splice(Ne,1),j.pop(),K=!0,ee=!0,de())}},H.dispose=function(){if(!H._stopped&&(H._stopped=!0,window.removeEventListener("resize",ue),A.removeEventListener("webglcontextlost",ke),H.mouseListener.enabled=!1,!H.contextLost)){O.dispose(),X.dispose();for(var Se=0;Se<$.length;++Se)$[Se].dispose();N.dispose();for(var Se=0;SeD.distance)continue;for(var he=0;he1e-6?(k=Math.acos(S),x=Math.sin(k),T=Math.sin((1-s)*k)/x,d=Math.sin(s*k)/x):(T=1-s,d=s),i[0]=T*f+d*m,i[1]=T*v+d*w,i[2]=T*p+d*M,i[3]=T*b+d*y,i}},5964:function(a){"use strict";a.exports=function(o){return!o&&o!==0?"":o.toString()}},9366:function(a,o,i){"use strict";var l=i(4359);a.exports=s;var u={};function s(f,v,p){var b=[v.style,v.weight,v.variant,v.family].join("_"),m=u[b];if(m||(m=u[b]={}),f in m)return m[f];var w={textAlign:"center",textBaseline:"middle",lineHeight:1,font:v.family,fontStyle:v.style,fontWeight:v.weight,fontVariant:v.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};w.triangles=!0;var M=l(f,w);w.triangles=!1;var y=l(f,w),k,S;if(p&&p!==1){for(k=0;k0){var h=Math.round(Math.pow(10,A));return Math.ceil(c/h)*h}return Math.ceil(c)}function d(c){return typeof c=="boolean"?c:!0}function b(c){c=c||{},c.camera=c.camera||{};var A=c.canvas;if(!A)if(A=document.createElement("canvas"),c.container){var h=c.container;h.appendChild(A)}else document.body.appendChild(A);var R=c.gl;if(R||(c.glOptions&&(k=!!c.glOptions.preserveDrawingBuffer),R=x(A,c.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!R)throw new Error("webgl not supported");var E=c.bounds||[[-10,-10,-10],[10,10,10]],D=new S,N=p(R,R.drawingBufferWidth,R.drawingBufferHeight,{preferFloat:!k}),F=y(R),I=c.cameraObject&&c.cameraObject._ortho===!0||c.camera.projection&&c.camera.projection.type==="orthographic"||!1,L={eye:c.camera.eye||[2,0,0],center:c.camera.center||[0,0,0],up:c.camera.up||[0,1,0],zoomMin:c.camera.zoomMax||.1,zoomMax:c.camera.zoomMin||100,mode:c.camera.mode||"turntable",_ortho:I},P=c.axes||{},O=u(R,P);O.enable=!P.disable;var U=c.spikes||{},X=f(R,U),$=[],j=[],Y=[],q=[],K=!0,ee=!0,ne=new Array(16),Q=new Array(16),ie={view:null,projection:ne,model:Q,_ortho:!1},ee=!0,V=[R.drawingBufferWidth,R.drawingBufferHeight],re=c.cameraObject||l(A,L),H={gl:R,contextLost:!1,pixelRatio:c.pixelRatio||1,canvas:A,selection:D,camera:re,axes:O,axesPixels:null,spikes:X,bounds:E,objects:$,shape:V,aspect:c.aspectRatio||[1,1,1],pickRadius:c.pickRadius||10,zNear:c.zNear||.01,zFar:c.zFar||1e3,fovy:c.fovy||Math.PI/4,clearColor:c.clearColor||[0,0,0,0],autoResize:d(c.autoResize),autoBounds:d(c.autoBounds),autoScale:!!c.autoScale,autoCenter:d(c.autoCenter),clipToBounds:d(c.clipToBounds),snapToData:!!c.snapToData,onselect:c.onselect||null,onrender:c.onrender||null,onclick:c.onclick||null,cameraParams:ie,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Se){this.aspect[0]=Se.x,this.aspect[1]=Se.y,this.aspect[2]=Se.z,ee=!0},setBounds:function(Se,Ne){this.bounds[0][Se]=Ne.min,this.bounds[1][Se]=Ne.max},setClearColor:function(Se){this.clearColor=Se},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},te=[R.drawingBufferWidth/H.pixelRatio|0,R.drawingBufferHeight/H.pixelRatio|0];function ue(){if(!H._stopped&&H.autoResize){var Se=A.parentNode,Ne=1,Be=1;Se&&Se!==document.body?(Ne=Se.clientWidth,Be=Se.clientHeight):(Ne=window.innerWidth,Be=window.innerHeight);var ge=Math.ceil(Ne*H.pixelRatio)|0,we=Math.ceil(Be*H.pixelRatio)|0;if(ge!==A.width||we!==A.height){A.width=ge,A.height=we;var Me=A.style;Me.position=Me.position||"absolute",Me.left="0px",Me.top="0px",Me.width=Ne+"px",Me.height=Be+"px",K=!0}}}H.autoResize&&ue(),window.addEventListener("resize",ue);function de(){for(var Se=$.length,Ne=q.length,Be=0;Be0&&Y[Ne-1]===0;)Y.pop(),q.pop().dispose()}H.update=function(Se){H._stopped||(Se=Se||{},K=!0,ee=!0)},H.add=function(Se){H._stopped||(Se.axes=O,$.push(Se),j.push(-1),K=!0,ee=!0,de())},H.remove=function(Se){if(!H._stopped){var Ne=$.indexOf(Se);Ne<0||($.splice(Ne,1),j.pop(),K=!0,ee=!0,de())}},H.dispose=function(){if(!H._stopped&&(H._stopped=!0,window.removeEventListener("resize",ue),A.removeEventListener("webglcontextlost",ke),H.mouseListener.enabled=!1,!H.contextLost)){O.dispose(),X.dispose();for(var Se=0;Se<$.length;++Se)$[Se].dispose();N.dispose();for(var Se=0;SeD.distance)continue;for(var he=0;he1e-6?(k=Math.acos(S),x=Math.sin(k),M=Math.sin((1-s)*k)/x,d=Math.sin(s*k)/x):(M=1-s,d=s),i[0]=M*f+d*m,i[1]=M*v+d*w,i[2]=M*p+d*T,i[3]=M*_+d*y,i}},5964:function(a){"use strict";a.exports=function(o){return!o&&o!==0?"":o.toString()}},9366:function(a,o,i){"use strict";var l=i(4359);a.exports=s;var u={};function s(f,v,p){var _=[v.style,v.weight,v.variant,v.family].join("_"),m=u[_];if(m||(m=u[_]={}),f in m)return m[f];var w={textAlign:"center",textBaseline:"middle",lineHeight:1,font:v.family,fontStyle:v.style,fontWeight:v.weight,fontVariant:v.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};w.triangles=!0;var T=l(f,w);w.triangles=!1;var y=l(f,w),k,S;if(p&&p!==1){for(k=0;k1?1:Q}function g(Q,ie,ee,V,re,H,te,ue,de,ke,Ae,ve){this.gl=Q,this.pixelRatio=1,this.shader=ie,this.orthoShader=ee,this.projectShader=V,this.pointBuffer=re,this.colorBuffer=H,this.glyphBuffer=te,this.idBuffer=ue,this.vao=de,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=ke,this.pickOrthoShader=Ae,this.pickProjectShader=ve,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var c=g.prototype;c.pickSlots=1,c.setPickBase=function(Q){this.pickId=Q},c.isTransparent=function(){if(this.hasAlpha)return!0;for(var Q=0;Q<3;++Q)if(this.axesProject[Q]&&this.projectHasAlpha)return!0;return!1},c.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Q=0;Q<3;++Q)if(this.axesProject[Q]&&!this.projectHasAlpha)return!0;return!1};var A=[0,0],h=[0,0,0],R=[0,0,0],E=[0,0,0,1],D=[0,0,0,1],N=w.slice(),I=[0,0,0],F=[[0,0,0],[0,0,0]];function L(Q){return Q[0]=Q[1]=Q[2]=0,Q}function P(Q,ie){return Q[0]=ie[0],Q[1]=ie[1],Q[2]=ie[2],Q[3]=1,Q}function O(Q,ie,ee,V){return Q[0]=ie[0],Q[1]=ie[1],Q[2]=ie[2],Q[ee]=V,Q}function U(Q){for(var ie=F,ee=0;ee<2;++ee)for(var V=0;V<3;++V)ie[ee][V]=Math.max(Math.min(Q[ee][V],1e8),-1e8);return ie}function X(Q,ie,ee,V){var re=ie.axesProject,H=ie.gl,te=Q.uniforms,ue=ee.model||w,de=ee.view||w,ke=ee.projection||w,Ae=ie.axesBounds,ve=U(ie.clipBounds),Te;ie.axes&&ie.axes.lastCubeProps?Te=ie.axes.lastCubeProps.axis:Te=[1,1,1],A[0]=2/H.drawingBufferWidth,A[1]=2/H.drawingBufferHeight,Q.bind(),te.view=de,te.projection=ke,te.screenSize=A,te.highlightId=ie.highlightId,te.highlightScale=ie.highlightScale,te.clipBounds=ve,te.pickGroup=ie.pickId/255,te.pixelRatio=V;for(var Ee=0;Ee<3;++Ee)if(re[Ee]){te.scale=ie.projectScale[Ee],te.opacity=ie.projectOpacity[Ee];for(var Pe=N,Se=0;Se<16;++Se)Pe[Se]=0;for(var Se=0;Se<4;++Se)Pe[5*Se]=1;Pe[5*Ee]=0,Te[Ee]<0?Pe[12+Ee]=Ae[0][Ee]:Pe[12+Ee]=Ae[1][Ee],v(Pe,ue,Pe),te.model=Pe;var Ne=(Ee+1)%3,Be=(Ee+2)%3,ge=L(h),we=L(R);ge[Ne]=1,we[Be]=1;var Me=T(ke,de,ue,P(E,ge)),me=T(ke,de,ue,P(D,we));if(Math.abs(Me[1])>Math.abs(me[1])){var Re=Me;Me=me,me=Re,Re=ge,ge=we,we=Re;var ce=Ne;Ne=Be,Be=ce}Me[0]<0&&(ge[Ne]=-1),me[1]>0&&(we[Be]=-1);for(var he=0,ye=0,Se=0;Se<4;++Se)he+=Math.pow(ue[4*Ne+Se],2),ye+=Math.pow(ue[4*Be+Se],2);ge[Ne]/=Math.sqrt(he),we[Be]/=Math.sqrt(ye),te.axes[0]=ge,te.axes[1]=we,te.fragClipBounds[0]=O(I,ve[0],Ee,-1e8),te.fragClipBounds[1]=O(I,ve[1],Ee,1e8),ie.vao.bind(),ie.vao.draw(H.TRIANGLES,ie.vertexCount),ie.lineWidth>0&&(H.lineWidth(ie.lineWidth*V),ie.vao.draw(H.LINES,ie.lineVertexCount,ie.vertexCount)),ie.vao.unbind()}}var $=[-1e8,-1e8,-1e8],j=[1e8,1e8,1e8],Y=[$,j];function q(Q,ie,ee,V,re,H,te){var ue=ee.gl;if((H===ee.projectHasAlpha||te)&&X(ie,ee,V,re),H===ee.hasAlpha||te){Q.bind();var de=Q.uniforms;de.model=V.model||w,de.view=V.view||w,de.projection=V.projection||w,A[0]=2/ue.drawingBufferWidth,A[1]=2/ue.drawingBufferHeight,de.screenSize=A,de.highlightId=ee.highlightId,de.highlightScale=ee.highlightScale,de.fragClipBounds=Y,de.clipBounds=ee.axes.bounds,de.opacity=ee.opacity,de.pickGroup=ee.pickId/255,de.pixelRatio=re,ee.vao.bind(),ee.vao.draw(ue.TRIANGLES,ee.vertexCount),ee.lineWidth>0&&(ue.lineWidth(ee.lineWidth*re),ee.vao.draw(ue.LINES,ee.lineVertexCount,ee.vertexCount)),ee.vao.unbind()}}c.draw=function(Q){var ie=this.useOrtho?this.orthoShader:this.shader;q(ie,this.projectShader,this,Q,this.pixelRatio,!1,!1)},c.drawTransparent=function(Q){var ie=this.useOrtho?this.orthoShader:this.shader;q(ie,this.projectShader,this,Q,this.pixelRatio,!0,!1)},c.drawPick=function(Q){var ie=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(ie,this.pickProjectShader,this,Q,1,!0,!0)},c.pick=function(Q){if(!Q||Q.id!==this.pickId)return null;var ie=Q.value[2]+(Q.value[1]<<8)+(Q.value[0]<<16);if(ie>=this.pointCount||ie<0)return null;var ee=this.points[ie],V=this._selectResult;V.index=ie;for(var re=0;re<3;++re)V.position[re]=V.dataCoordinate[re]=ee[re];return V},c.highlight=function(Q){if(!Q)this.highlightId=[1,1,1,1];else{var ie=Q.index,ee=ie&255,V=ie>>8&255,re=ie>>16&255;this.highlightId=[ee/255,V/255,re/255,0]}};function K(Q,ie,ee,V){var re;S(Q)?ie0){var Ue=0,Ge=Be,_e=[0,0,0,1],De=[0,0,0,1],Ke=S(Te)&&S(Te[0]),Ye=S(Se)&&S(Se[0]);e:for(var V=0;V0?1-ye[0][0]:je<0?1+ye[1][0]:1,nr*=nr>0?1-ye[0][1]:nr<0?1+ye[1][1]:1;for(var fr=[je,nr],nt=ce.cells||[],Yr=ce.positions||[],me=0;methis.buffer.length){u.free(this.buffer);for(var S=this.buffer=u.mallocUint8(f(k*y*4)),x=0;xS)for(y=S;yk)for(y=k;y=0){for(var F=I.type.charAt(I.type.length-1)|0,L=new Array(F),P=0;P=0;)O+=1;D[N]=O}var U=new Array(S.length);function X(){d.program=f.program(_,d._vref,d._fref,E,D);for(var $=0;$=0){var c=_.charCodeAt(_.length-1)-48;if(c<2||c>4)throw new l("","Invalid data type for attribute "+d+": "+_);v(m,w,g[0],y,c,k,d)}else if(_.indexOf("mat")>=0){var c=_.charCodeAt(_.length-1)-48;if(c<2||c>4)throw new l("","Invalid data type for attribute "+d+": "+_);p(m,w,g,y,c,k,d)}else throw new l("","Unknown data type for attribute "+d+": "+_);break}}return k}},3327:function(a,o,i){"use strict";var l=i(216),u=i(8866);a.exports=v;function s(p){return function(){return p}}function f(p,b){for(var m=new Array(p),w=0;w4)throw new u("","Invalid data type");switch(O.charAt(0)){case"b":case"i":p["uniform"+U+"iv"](w[D],N);break;case"v":p["uniform"+U+"fv"](w[D],N);break;default:throw new u("","Unrecognized data type for vector "+name+": "+O)}}else if(O.indexOf("mat")===0&&O.length===4){if(U=O.charCodeAt(O.length-1)-48,U<2||U>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+O);p["uniformMatrix"+U+"fv"](w[D],!1,N);break}else throw new u("","Unknown uniform data type for "+name+": "+O)}}}}}function k(_,g){if(typeof g!="object")return[[_,g]];var c=[];for(var A in g){var h=g[A],R=_;parseInt(A)+""===A?R+="["+A+"]":R+="."+A,typeof h=="object"?c.push.apply(c,k(R,h)):c.push([R,h])}return c}function S(_){switch(_){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var g=_.indexOf("vec");if(0<=g&&g<=1&&_.length===4+g){var c=_.charCodeAt(_.length-1)-48;if(c<2||c>4)throw new u("","Invalid data type");return _.charAt(0)==="b"?f(c,!1):f(c,0)}else if(_.indexOf("mat")===0&&_.length===4){var c=_.charCodeAt(_.length-1)-48;if(c<2||c>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+_);return f(c*c,0)}else throw new u("","Unknown uniform data type for "+name+": "+_)}}function x(_,g,c){if(typeof c=="object"){var A=T(c);Object.defineProperty(_,g,{get:s(A),set:y(c),enumerable:!0,configurable:!1})}else w[c]?Object.defineProperty(_,g,{get:M(c),set:y(c),enumerable:!0,configurable:!1}):_[g]=S(m[c].type)}function T(_){var g;if(Array.isArray(_)){g=new Array(_.length);for(var c=0;c<_.length;++c)x(g,c,_[c])}else{g={};for(var A in _)x(g,A,_[A])}return g}var d=l(m,!0);return{get:s(T(d)),set:y(d),enumerable:!0,configurable:!0}}},216:function(a){"use strict";a.exports=o;function o(i,l){for(var u={},s=0;s1){m[0]in p||(p[m[0]]=[]),p=p[m[0]];for(var w=1;w1)for(var k=0;k1?1:Q}function g(Q,ie,ee,V,re,H,te,ue,de,ke,Ae,ve){this.gl=Q,this.pixelRatio=1,this.shader=ie,this.orthoShader=ee,this.projectShader=V,this.pointBuffer=re,this.colorBuffer=H,this.glyphBuffer=te,this.idBuffer=ue,this.vao=de,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=ke,this.pickOrthoShader=Ae,this.pickProjectShader=ve,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var c=g.prototype;c.pickSlots=1,c.setPickBase=function(Q){this.pickId=Q},c.isTransparent=function(){if(this.hasAlpha)return!0;for(var Q=0;Q<3;++Q)if(this.axesProject[Q]&&this.projectHasAlpha)return!0;return!1},c.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Q=0;Q<3;++Q)if(this.axesProject[Q]&&!this.projectHasAlpha)return!0;return!1};var A=[0,0],h=[0,0,0],R=[0,0,0],E=[0,0,0,1],D=[0,0,0,1],N=w.slice(),F=[0,0,0],I=[[0,0,0],[0,0,0]];function L(Q){return Q[0]=Q[1]=Q[2]=0,Q}function P(Q,ie){return Q[0]=ie[0],Q[1]=ie[1],Q[2]=ie[2],Q[3]=1,Q}function O(Q,ie,ee,V){return Q[0]=ie[0],Q[1]=ie[1],Q[2]=ie[2],Q[ee]=V,Q}function U(Q){for(var ie=I,ee=0;ee<2;++ee)for(var V=0;V<3;++V)ie[ee][V]=Math.max(Math.min(Q[ee][V],1e8),-1e8);return ie}function X(Q,ie,ee,V){var re=ie.axesProject,H=ie.gl,te=Q.uniforms,ue=ee.model||w,de=ee.view||w,ke=ee.projection||w,Ae=ie.axesBounds,ve=U(ie.clipBounds),Te;ie.axes&&ie.axes.lastCubeProps?Te=ie.axes.lastCubeProps.axis:Te=[1,1,1],A[0]=2/H.drawingBufferWidth,A[1]=2/H.drawingBufferHeight,Q.bind(),te.view=de,te.projection=ke,te.screenSize=A,te.highlightId=ie.highlightId,te.highlightScale=ie.highlightScale,te.clipBounds=ve,te.pickGroup=ie.pickId/255,te.pixelRatio=V;for(var Ee=0;Ee<3;++Ee)if(re[Ee]){te.scale=ie.projectScale[Ee],te.opacity=ie.projectOpacity[Ee];for(var Pe=N,Se=0;Se<16;++Se)Pe[Se]=0;for(var Se=0;Se<4;++Se)Pe[5*Se]=1;Pe[5*Ee]=0,Te[Ee]<0?Pe[12+Ee]=Ae[0][Ee]:Pe[12+Ee]=Ae[1][Ee],v(Pe,ue,Pe),te.model=Pe;var Ne=(Ee+1)%3,Be=(Ee+2)%3,ge=L(h),we=L(R);ge[Ne]=1,we[Be]=1;var Me=M(ke,de,ue,P(E,ge)),me=M(ke,de,ue,P(D,we));if(Math.abs(Me[1])>Math.abs(me[1])){var Re=Me;Me=me,me=Re,Re=ge,ge=we,we=Re;var ce=Ne;Ne=Be,Be=ce}Me[0]<0&&(ge[Ne]=-1),me[1]>0&&(we[Be]=-1);for(var he=0,ye=0,Se=0;Se<4;++Se)he+=Math.pow(ue[4*Ne+Se],2),ye+=Math.pow(ue[4*Be+Se],2);ge[Ne]/=Math.sqrt(he),we[Be]/=Math.sqrt(ye),te.axes[0]=ge,te.axes[1]=we,te.fragClipBounds[0]=O(F,ve[0],Ee,-1e8),te.fragClipBounds[1]=O(F,ve[1],Ee,1e8),ie.vao.bind(),ie.vao.draw(H.TRIANGLES,ie.vertexCount),ie.lineWidth>0&&(H.lineWidth(ie.lineWidth*V),ie.vao.draw(H.LINES,ie.lineVertexCount,ie.vertexCount)),ie.vao.unbind()}}var $=[-1e8,-1e8,-1e8],j=[1e8,1e8,1e8],Y=[$,j];function q(Q,ie,ee,V,re,H,te){var ue=ee.gl;if((H===ee.projectHasAlpha||te)&&X(ie,ee,V,re),H===ee.hasAlpha||te){Q.bind();var de=Q.uniforms;de.model=V.model||w,de.view=V.view||w,de.projection=V.projection||w,A[0]=2/ue.drawingBufferWidth,A[1]=2/ue.drawingBufferHeight,de.screenSize=A,de.highlightId=ee.highlightId,de.highlightScale=ee.highlightScale,de.fragClipBounds=Y,de.clipBounds=ee.axes.bounds,de.opacity=ee.opacity,de.pickGroup=ee.pickId/255,de.pixelRatio=re,ee.vao.bind(),ee.vao.draw(ue.TRIANGLES,ee.vertexCount),ee.lineWidth>0&&(ue.lineWidth(ee.lineWidth*re),ee.vao.draw(ue.LINES,ee.lineVertexCount,ee.vertexCount)),ee.vao.unbind()}}c.draw=function(Q){var ie=this.useOrtho?this.orthoShader:this.shader;q(ie,this.projectShader,this,Q,this.pixelRatio,!1,!1)},c.drawTransparent=function(Q){var ie=this.useOrtho?this.orthoShader:this.shader;q(ie,this.projectShader,this,Q,this.pixelRatio,!0,!1)},c.drawPick=function(Q){var ie=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(ie,this.pickProjectShader,this,Q,1,!0,!0)},c.pick=function(Q){if(!Q||Q.id!==this.pickId)return null;var ie=Q.value[2]+(Q.value[1]<<8)+(Q.value[0]<<16);if(ie>=this.pointCount||ie<0)return null;var ee=this.points[ie],V=this._selectResult;V.index=ie;for(var re=0;re<3;++re)V.position[re]=V.dataCoordinate[re]=ee[re];return V},c.highlight=function(Q){if(!Q)this.highlightId=[1,1,1,1];else{var ie=Q.index,ee=ie&255,V=ie>>8&255,re=ie>>16&255;this.highlightId=[ee/255,V/255,re/255,0]}};function K(Q,ie,ee,V){var re;S(Q)?ie0){var Ue=0,Ge=Be,_e=[0,0,0,1],De=[0,0,0,1],Ke=S(Te)&&S(Te[0]),Ye=S(Se)&&S(Se[0]);e:for(var V=0;V0?1-ye[0][0]:je<0?1+ye[1][0]:1,nr*=nr>0?1-ye[0][1]:nr<0?1+ye[1][1]:1;for(var ur=[je,nr],nt=ce.cells||[],Yr=ce.positions||[],me=0;methis.buffer.length){u.free(this.buffer);for(var S=this.buffer=u.mallocUint8(f(k*y*4)),x=0;xS)for(y=S;yk)for(y=k;y=0){for(var I=F.type.charAt(F.type.length-1)|0,L=new Array(I),P=0;P=0;)O+=1;D[N]=O}var U=new Array(S.length);function X(){d.program=f.program(b,d._vref,d._fref,E,D);for(var $=0;$=0){var c=b.charCodeAt(b.length-1)-48;if(c<2||c>4)throw new l("","Invalid data type for attribute "+d+": "+b);v(m,w,g[0],y,c,k,d)}else if(b.indexOf("mat")>=0){var c=b.charCodeAt(b.length-1)-48;if(c<2||c>4)throw new l("","Invalid data type for attribute "+d+": "+b);p(m,w,g,y,c,k,d)}else throw new l("","Unknown data type for attribute "+d+": "+b);break}}return k}},3327:function(a,o,i){"use strict";var l=i(216),u=i(8866);a.exports=v;function s(p){return function(){return p}}function f(p,_){for(var m=new Array(p),w=0;w4)throw new u("","Invalid data type");switch(O.charAt(0)){case"b":case"i":p["uniform"+U+"iv"](w[D],N);break;case"v":p["uniform"+U+"fv"](w[D],N);break;default:throw new u("","Unrecognized data type for vector "+name+": "+O)}}else if(O.indexOf("mat")===0&&O.length===4){if(U=O.charCodeAt(O.length-1)-48,U<2||U>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+O);p["uniformMatrix"+U+"fv"](w[D],!1,N);break}else throw new u("","Unknown uniform data type for "+name+": "+O)}}}}}function k(b,g){if(typeof g!="object")return[[b,g]];var c=[];for(var A in g){var h=g[A],R=b;parseInt(A)+""===A?R+="["+A+"]":R+="."+A,typeof h=="object"?c.push.apply(c,k(R,h)):c.push([R,h])}return c}function S(b){switch(b){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var g=b.indexOf("vec");if(0<=g&&g<=1&&b.length===4+g){var c=b.charCodeAt(b.length-1)-48;if(c<2||c>4)throw new u("","Invalid data type");return b.charAt(0)==="b"?f(c,!1):f(c,0)}else if(b.indexOf("mat")===0&&b.length===4){var c=b.charCodeAt(b.length-1)-48;if(c<2||c>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+b);return f(c*c,0)}else throw new u("","Unknown uniform data type for "+name+": "+b)}}function x(b,g,c){if(typeof c=="object"){var A=M(c);Object.defineProperty(b,g,{get:s(A),set:y(c),enumerable:!0,configurable:!1})}else w[c]?Object.defineProperty(b,g,{get:T(c),set:y(c),enumerable:!0,configurable:!1}):b[g]=S(m[c].type)}function M(b){var g;if(Array.isArray(b)){g=new Array(b.length);for(var c=0;c1){m[0]in p||(p[m[0]]=[]),p=p[m[0]];for(var w=1;w1)for(var k=0;k0)for(var q=0;qT)return _-1}return _},b=function(x,T,d){return xd?d:x},m=function(x,T,d){var _=T.vectors,g=T.meshgrid,c=x[0],A=x[1],h=x[2],R=g[0].length,E=g[1].length,D=g[2].length,N=p(g[0],c),I=p(g[1],A),F=p(g[2],h),L=N+1,P=I+1,O=F+1;if(N=b(N,0,R-1),L=b(L,0,R-1),I=b(I,0,E-1),P=b(P,0,E-1),F=b(F,0,D-1),O=b(O,0,D-1),N<0||I<0||F<0||L>R-1||P>E-1||O>D-1)return l.create();var U=g[0][N],X=g[0][L],$=g[1][I],j=g[1][P],Y=g[2][F],q=g[2][O],K=(c-U)/(X-U),ne=(A-$)/(j-$),Q=(h-Y)/(q-Y);isFinite(K)||(K=.5),isFinite(ne)||(ne=.5),isFinite(Q)||(Q=.5);var ie,ee,V,re,H,te;switch(d.reversedX&&(N=R-1-N,L=R-1-L),d.reversedY&&(I=E-1-I,P=E-1-P),d.reversedZ&&(F=D-1-F,O=D-1-O),d.filled){case 5:H=F,te=O,V=I*D,re=P*D,ie=N*D*E,ee=L*D*E;break;case 4:H=F,te=O,ie=N*D,ee=L*D,V=I*D*R,re=P*D*R;break;case 3:V=I,re=P,H=F*E,te=O*E,ie=N*E*D,ee=L*E*D;break;case 2:V=I,re=P,ie=N*E,ee=L*E,H=F*E*R,te=O*E*R;break;case 1:ie=N,ee=L,H=F*R,te=O*R,V=I*R*D,re=P*R*D;break;default:ie=N,ee=L,V=I*R,re=P*R,H=F*R*E,te=O*R*E;break}var ue=_[ie+V+H],de=_[ie+V+te],ke=_[ie+re+H],Ae=_[ie+re+te],ve=_[ee+V+H],Te=_[ee+V+te],Ee=_[ee+re+H],Pe=_[ee+re+te],Se=l.create(),Ne=l.create(),Be=l.create(),ge=l.create();l.lerp(Se,ue,ve,K),l.lerp(Ne,de,Te,K),l.lerp(Be,ke,Ee,K),l.lerp(ge,Ae,Pe,K);var we=l.create(),Me=l.create();l.lerp(we,Se,Be,ne),l.lerp(Me,Ne,ge,ne);var me=l.create();return l.lerp(me,we,Me,Q),me},w=function(x,T){var d=T[0],_=T[1],g=T[2];return x[0]=d<0?-d:d,x[1]=_<0?-_:_,x[2]=g<0?-g:g,x},M=function(x){var T=1/0;x.sort(function(c,A){return c-A});for(var d=x.length,_=1;_L||PeP||SeO)},X=l.distance(T[0],T[1]),$=10*X/_,j=$*$,Y=1,q=0,K=d.length;K>1&&(Y=y(d));for(var ne=0;neq&&(q=ue),H.push(ue),D.push({points:ie,velocities:ee,divergences:H});for(var de=0;de<_*100&&ie.length<_&&U(Q);){de++;var ke=l.clone(V),Ae=l.squaredLength(ke);if(Ae===0)break;if(Ae>j&&l.scale(ke,ke,$/Math.sqrt(Ae)),l.add(ke,ke,Q),V=R(ke),l.squaredDistance(re,ke)-j>-1e-4*j){ie.push(ke),re=ke,ee.push(V);var te=E(ke,V),ue=l.length(te);isFinite(ue)&&ue>q&&(q=ue),H.push(ue)}Q=ke}}var ve=v(D,x.colormap,q,Y);return c?ve.tubeScale=c:(q===0&&(q=1),ve.tubeScale=g*.5*Y/q),ve};var k=i(6740),S=i(6405).createMesh;a.exports.createTubeMesh=function(x,T){return S(x,T,{shaders:k,traceType:"streamtube"})}},990:function(a,o,i){var l=i(9405),u=i(3236),s=u([`precision highp float; +}`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},o.pickShader={vertex:f,fragment:v,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815:function(a,o,i){"use strict";var l=i(2931),u=i(9970),s=["xyz","xzy","yxz","yzx","zxy","zyx"],f=function(x,M,d,b){for(var g=x.points,c=x.velocities,A=x.divergences,h=[],R=[],E=[],D=[],N=[],F=[],I=0,L=0,P=u.create(),O=u.create(),U=8,X=0;X0)for(var q=0;qM)return b-1}return b},_=function(x,M,d){return xd?d:x},m=function(x,M,d){var b=M.vectors,g=M.meshgrid,c=x[0],A=x[1],h=x[2],R=g[0].length,E=g[1].length,D=g[2].length,N=p(g[0],c),F=p(g[1],A),I=p(g[2],h),L=N+1,P=F+1,O=I+1;if(N=_(N,0,R-1),L=_(L,0,R-1),F=_(F,0,E-1),P=_(P,0,E-1),I=_(I,0,D-1),O=_(O,0,D-1),N<0||F<0||I<0||L>R-1||P>E-1||O>D-1)return l.create();var U=g[0][N],X=g[0][L],$=g[1][F],j=g[1][P],Y=g[2][I],q=g[2][O],K=(c-U)/(X-U),ne=(A-$)/(j-$),Q=(h-Y)/(q-Y);isFinite(K)||(K=.5),isFinite(ne)||(ne=.5),isFinite(Q)||(Q=.5);var ie,ee,V,re,H,te;switch(d.reversedX&&(N=R-1-N,L=R-1-L),d.reversedY&&(F=E-1-F,P=E-1-P),d.reversedZ&&(I=D-1-I,O=D-1-O),d.filled){case 5:H=I,te=O,V=F*D,re=P*D,ie=N*D*E,ee=L*D*E;break;case 4:H=I,te=O,ie=N*D,ee=L*D,V=F*D*R,re=P*D*R;break;case 3:V=F,re=P,H=I*E,te=O*E,ie=N*E*D,ee=L*E*D;break;case 2:V=F,re=P,ie=N*E,ee=L*E,H=I*E*R,te=O*E*R;break;case 1:ie=N,ee=L,H=I*R,te=O*R,V=F*R*D,re=P*R*D;break;default:ie=N,ee=L,V=F*R,re=P*R,H=I*R*E,te=O*R*E;break}var ue=b[ie+V+H],de=b[ie+V+te],ke=b[ie+re+H],Ae=b[ie+re+te],ve=b[ee+V+H],Te=b[ee+V+te],Ee=b[ee+re+H],Pe=b[ee+re+te],Se=l.create(),Ne=l.create(),Be=l.create(),ge=l.create();l.lerp(Se,ue,ve,K),l.lerp(Ne,de,Te,K),l.lerp(Be,ke,Ee,K),l.lerp(ge,Ae,Pe,K);var we=l.create(),Me=l.create();l.lerp(we,Se,Be,ne),l.lerp(Me,Ne,ge,ne);var me=l.create();return l.lerp(me,we,Me,Q),me},w=function(x,M){var d=M[0],b=M[1],g=M[2];return x[0]=d<0?-d:d,x[1]=b<0?-b:b,x[2]=g<0?-g:g,x},T=function(x){var M=1/0;x.sort(function(c,A){return c-A});for(var d=x.length,b=1;bL||PeP||SeO)},X=l.distance(M[0],M[1]),$=10*X/b,j=$*$,Y=1,q=0,K=d.length;K>1&&(Y=y(d));for(var ne=0;neq&&(q=ue),H.push(ue),D.push({points:ie,velocities:ee,divergences:H});for(var de=0;dej&&l.scale(ke,ke,$/Math.sqrt(Ae)),l.add(ke,ke,Q),V=R(ke),l.squaredDistance(re,ke)-j>-1e-4*j){ie.push(ke),re=ke,ee.push(V);var te=E(ke,V),ue=l.length(te);isFinite(ue)&&ue>q&&(q=ue),H.push(ue)}Q=ke}}var ve=v(D,x.colormap,q,Y);return c?ve.tubeScale=c:(q===0&&(q=1),ve.tubeScale=g*.5*Y/q),ve};var k=i(6740),S=i(6405).createMesh;a.exports.createTubeMesh=function(x,M){return S(x,M,{shaders:k,traceType:"streamtube"})}},990:function(a,o,i){var l=i(9405),u=i(3236),s=u([`precision highp float; #define GLSLIFY 1 attribute vec4 uv; @@ -1920,13 +1920,13 @@ void main() { vec2 uy = splitFloat(planeCoordinate.y / shape.y); gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); } -`]);o.createShader=function(b){var m=l(b,s,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m.attributes.normal.location=2,m},o.createPickShader=function(b){var m=l(b,s,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m.attributes.normal.location=2,m},o.createContourShader=function(b){var m=l(b,v,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m},o.createPickContourShader=function(b){var m=l(b,v,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m}},9499:function(a,o,i){"use strict";a.exports=ie;var l=i(8828),u=i(2762),s=i(8116),f=i(7766),v=i(1888),p=i(6729),b=i(5298),m=i(9994),w=i(9618),M=i(3711),y=i(6760),k=i(7608),S=i(2478),x=i(6199),T=i(990),d=T.createShader,_=T.createContourShader,g=T.createPickShader,c=T.createPickContourShader,A=4*10,h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],R=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],E=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var ee=0;ee<3;++ee){var V=E[ee],re=(ee+1)%3,H=(ee+2)%3;V[re+0]=1,V[H+3]=1,V[ee+6]=1}})();function D(ee,V,re,H,te){this.position=ee,this.index=V,this.uv=re,this.level=H,this.dataCoordinate=te}var N=256;function I(ee,V,re,H,te,ue,de,ke,Ae,ve,Te,Ee,Pe,Se,Ne){this.gl=ee,this.shape=V,this.bounds=re,this.objectOffset=Ne,this.intensityBounds=[],this._shader=H,this._pickShader=te,this._coordinateBuffer=ue,this._vao=de,this._colorMap=ke,this._contourShader=Ae,this._contourPickShader=ve,this._contourBuffer=Te,this._contourVAO=Ee,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new D([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=Pe,this._dynamicVAO=Se,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[w(v.mallocFloat(1024),[0,0]),w(v.mallocFloat(1024),[0,0]),w(v.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var F=I.prototype;F.genColormap=function(ee,V){var re=!1,H=m([p({colormap:ee,nshades:N,format:"rgba"}).map(function(te,ue){var de=V?L(ue/255,V):te[3];return de<1&&(re=!0),[te[0],te[1],te[2],255*de]})]);return b.divseq(H,255),this.hasAlphaScale=re,H},F.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},F.isOpaque=function(){return!this.isTransparent()},F.pickSlots=1,F.setPickBase=function(ee){this.pickId=ee};function L(ee,V){if(!V||!V.length)return 1;for(var re=0;reee&&re>0){var H=(V[re][0]-ee)/(V[re][0]-V[re-1][0]);return V[re][1]*(1-H)+H*V[re-1][1]}}return 1}var P=[0,0,0],O={showSurface:!1,showContour:!1,projections:[h.slice(),h.slice(),h.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function U(ee,V){var re,H,te,ue=V.axes&&V.axes.lastCubeProps.axis||P,de=V.showSurface,ke=V.showContour;for(re=0;re<3;++re)for(de=de||V.surfaceProject[re],H=0;H<3;++H)ke=ke||V.contourProject[re][H];for(re=0;re<3;++re){var Ae=O.projections[re];for(H=0;H<16;++H)Ae[H]=0;for(H=0;H<4;++H)Ae[5*H]=1;Ae[5*re]=0,Ae[12+re]=V.axesBounds[+(ue[re]>0)][re],y(Ae,ee.model,Ae);var ve=O.clipBounds[re];for(te=0;te<2;++te)for(H=0;H<3;++H)ve[te][H]=ee.clipBounds[te][H];ve[0][re]=-1e8,ve[1][re]=1e8}return O.showSurface=de,O.showContour=ke,O}var X={model:h,view:h,projection:h,inverseModel:h.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},$=h.slice(),j=[1,0,0,0,1,0,0,0,1];function Y(ee,V){ee=ee||{};var re=this.gl;re.disable(re.CULL_FACE),this._colorMap.bind(0);var H=X;H.model=ee.model||h,H.view=ee.view||h,H.projection=ee.projection||h,H.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],H.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],H.objectOffset=this.objectOffset,H.contourColor=this.contourColor[0],H.inverseModel=k(H.inverseModel,H.model);for(var te=0;te<2;++te)for(var ue=H.clipBounds[te],de=0;de<3;++de)ue[de]=Math.min(Math.max(this.clipBounds[te][de],-1e8),1e8);H.kambient=this.ambientLight,H.kdiffuse=this.diffuseLight,H.kspecular=this.specularLight,H.roughness=this.roughness,H.fresnel=this.fresnel,H.opacity=this.opacity,H.height=0,H.permutation=j,H.vertexColor=this.vertexColor;var ke=$;for(y(ke,H.view,H.model),y(ke,H.projection,ke),k(ke,ke),te=0;te<3;++te)H.eyePosition[te]=ke[12+te]/ke[15];var Ae=ke[15];for(te=0;te<3;++te)Ae+=this.lightPosition[te]*ke[4*te+3];for(te=0;te<3;++te){var ve=ke[12+te];for(de=0;de<3;++de)ve+=ke[4*de+te]*this.lightPosition[de];H.lightPosition[te]=ve/Ae}var Te=U(H,this);if(Te.showSurface){for(this._shader.bind(),this._shader.uniforms=H,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(re.TRIANGLES,this._vertexCount),te=0;te<3;++te)!this.surfaceProject[te]||!this.vertexCount||(this._shader.uniforms.model=Te.projections[te],this._shader.uniforms.clipBounds=Te.clipBounds[te],this._vao.draw(re.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Te.showContour){var Ee=this._contourShader;H.kambient=1,H.kdiffuse=0,H.kspecular=0,H.opacity=1,Ee.bind(),Ee.uniforms=H;var Pe=this._contourVAO;for(Pe.bind(),te=0;te<3;++te)for(Ee.uniforms.permutation=E[te],re.lineWidth(this.contourWidth[te]*this.pixelRatio),de=0;de>4)/16)/255,te=Math.floor(H),ue=H-te,de=V[1]*(ee.value[1]+(ee.value[2]&15)/16)/255,ke=Math.floor(de),Ae=de-ke;te+=1,ke+=1;var ve=re.position;ve[0]=ve[1]=ve[2]=0;for(var Te=0;Te<2;++Te)for(var Ee=Te?ue:1-ue,Pe=0;Pe<2;++Pe)for(var Se=Pe?Ae:1-Ae,Ne=te+Te,Be=ke+Pe,ge=Ee*Se,we=0;we<3;++we)ve[we]+=this._field[we].get(Ne,Be)*ge;for(var Me=this._pickResult.level,me=0;me<3;++me)if(Me[me]=S.le(this.contourLevels[me],ve[me]),Me[me]<0)this.contourLevels[me].length>0&&(Me[me]=0);else if(Me[me]Math.abs(ce-ve[me])&&(Me[me]+=1)}for(re.index[0]=ue<.5?te:te+1,re.index[1]=Ae<.5?ke:ke+1,re.uv[0]=H/V[0],re.uv[1]=de/V[1],we=0;we<3;++we)re.dataCoordinate[we]=this._field[we].get(re.index[0],re.index[1]);return re},F.padField=function(ee,V){var re=V.shape.slice(),H=ee.shape.slice();b.assign(ee.lo(1,1).hi(re[0],re[1]),V),b.assign(ee.lo(1).hi(re[0],1),V.hi(re[0],1)),b.assign(ee.lo(1,H[1]-1).hi(re[0],1),V.lo(0,re[1]-1).hi(re[0],1)),b.assign(ee.lo(0,1).hi(1,re[1]),V.hi(1)),b.assign(ee.lo(H[0]-1,1).hi(1,re[1]),V.lo(re[0]-1)),ee.set(0,0,V.get(0,0)),ee.set(0,H[1]-1,V.get(0,re[1]-1)),ee.set(H[0]-1,0,V.get(re[0]-1,0)),ee.set(H[0]-1,H[1]-1,V.get(re[0]-1,re[1]-1))};function K(ee,V){return Array.isArray(ee)?[V(ee[0]),V(ee[1]),V(ee[2])]:[V(ee),V(ee),V(ee)]}function ne(ee){return Array.isArray(ee)?ee.length===3?[ee[0],ee[1],ee[2],1]:[ee[0],ee[1],ee[2],ee[3]]:[0,0,0,1]}function Q(ee){if(Array.isArray(ee)){if(Array.isArray(ee))return[ne(ee[0]),ne(ee[1]),ne(ee[2])];var V=ne(ee);return[V.slice(),V.slice(),V.slice()]}}F.update=function(ee){ee=ee||{},this.objectOffset=ee.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in ee&&(this.contourWidth=K(ee.contourWidth,Number)),"showContour"in ee&&(this.showContour=K(ee.showContour,Boolean)),"showSurface"in ee&&(this.showSurface=!!ee.showSurface),"contourTint"in ee&&(this.contourTint=K(ee.contourTint,Boolean)),"contourColor"in ee&&(this.contourColor=Q(ee.contourColor)),"contourProject"in ee&&(this.contourProject=K(ee.contourProject,function(Ma){return K(Ma,Boolean)})),"surfaceProject"in ee&&(this.surfaceProject=ee.surfaceProject),"dynamicColor"in ee&&(this.dynamicColor=Q(ee.dynamicColor)),"dynamicTint"in ee&&(this.dynamicTint=K(ee.dynamicTint,Number)),"dynamicWidth"in ee&&(this.dynamicWidth=K(ee.dynamicWidth,Number)),"opacity"in ee&&(this.opacity=ee.opacity),"opacityscale"in ee&&(this.opacityscale=ee.opacityscale),"colorBounds"in ee&&(this.colorBounds=ee.colorBounds),"vertexColor"in ee&&(this.vertexColor=ee.vertexColor?1:0),"colormap"in ee&&this._colorMap.setPixels(this.genColormap(ee.colormap,this.opacityscale));var V=ee.field||ee.coords&&ee.coords[2]||null,re=!1;if(V||(this._field[2].shape[0]||this._field[2].shape[2]?V=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):V=this._field[2].hi(0,0)),"field"in ee||"coords"in ee){var H=(V.shape[0]+2)*(V.shape[1]+2);H>this._field[2].data.length&&(v.freeFloat(this._field[2].data),this._field[2].data=v.mallocFloat(l.nextPow2(H))),this._field[2]=w(this._field[2].data,[V.shape[0]+2,V.shape[1]+2]),this.padField(this._field[2],V),this.shape=V.shape.slice();for(var te=this.shape,ue=0;ue<2;++ue)this._field[2].size>this._field[ue].data.length&&(v.freeFloat(this._field[ue].data),this._field[ue].data=v.mallocFloat(this._field[2].size)),this._field[ue]=w(this._field[ue].data,[te[0]+2,te[1]+2]);if(ee.coords){var de=ee.coords;if(!Array.isArray(de)||de.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ue=0;ue<2;++ue){var ke=de[ue];for(Pe=0;Pe<2;++Pe)if(ke.shape[Pe]!==te[Pe])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ue],ke)}}else if(ee.ticks){var Ae=ee.ticks;if(!Array.isArray(Ae)||Ae.length!==2)throw new Error("gl-surface: invalid ticks");for(ue=0;ue<2;++ue){var ve=Ae[ue];if((Array.isArray(ve)||ve.length)&&(ve=w(ve)),ve.shape[0]!==te[ue])throw new Error("gl-surface: invalid tick length");var Te=w(ve.data,te);Te.stride[ue]=ve.stride[0],Te.stride[ue^1]=0,this.padField(this._field[ue],Te)}}else{for(ue=0;ue<2;++ue){var Ee=[0,0];Ee[ue]=1,this._field[ue]=w(this._field[ue].data,[te[0]+2,te[1]+2],Ee,0)}this._field[0].set(0,0,0);for(var Pe=0;Pe0){for(var Kn=0;Kn<5;++Kn)br.pop();Ke-=1}continue e}}}nt.push(Ke)}this._contourOffsets[Sr]=Ar,this._contourCounts[Sr]=nt}var Fn=v.mallocFloat(br.length);for(ue=0;ueD||R<0||R>D)throw new Error("gl-texture2d: Invalid texture size");return A._shape=[h,R],A.bind(),E.texImage2D(E.TEXTURE_2D,0,A.format,h,R,0,A.format,A.type,null),A._mipLevels=[0],A}function y(A,h,R,E,D,N){this.gl=A,this.handle=h,this.format=D,this.type=N,this._shape=[R,E],this._mipLevels=[0],this._magFilter=A.NEAREST,this._minFilter=A.NEAREST,this._wrapS=A.CLAMP_TO_EDGE,this._wrapT=A.CLAMP_TO_EDGE,this._anisoSamples=1;var I=this,F=[this._wrapS,this._wrapT];Object.defineProperties(F,[{get:function(){return I._wrapS},set:function(P){return I.wrapS=P}},{get:function(){return I._wrapT},set:function(P){return I.wrapT=P}}]),this._wrapVector=F;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return I._shape[0]},set:function(P){return I.width=P}},{get:function(){return I._shape[1]},set:function(P){return I.height=P}}]),this._shapeVector=L}var k=y.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(A){this.bind();var h=this.gl;if(this.type===h.FLOAT&&f.indexOf(A)>=0&&(h.getExtension("OES_texture_float_linear")||(A=h.NEAREST)),v.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,A),this._minFilter=A}},magFilter:{get:function(){return this._magFilter},set:function(A){this.bind();var h=this.gl;if(this.type===h.FLOAT&&f.indexOf(A)>=0&&(h.getExtension("OES_texture_float_linear")||(A=h.NEAREST)),v.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,A),this._magFilter=A}},mipSamples:{get:function(){return this._anisoSamples},set:function(A){var h=this._anisoSamples;if(this._anisoSamples=Math.max(A,1)|0,h!==this._anisoSamples){var R=this.gl.getExtension("EXT_texture_filter_anisotropic");R&&this.gl.texParameterf(this.gl.TEXTURE_2D,R.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,A),this._wrapS=A}},wrapT:{get:function(){return this._wrapT},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,A),this._wrapT=A}},wrap:{get:function(){return this._wrapVector},set:function(A){if(Array.isArray(A)||(A=[A,A]),A.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var h=0;h<2;++h)if(p.indexOf(A[h])<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);this._wrapS=A[0],this._wrapT=A[1];var R=this.gl;return this.bind(),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_S,this._wrapS),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_T,this._wrapT),A}},shape:{get:function(){return this._shapeVector},set:function(A){if(!Array.isArray(A))A=[A|0,A|0];else if(A.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return M(this,A[0]|0,A[1]|0),[A[0]|0,A[1]|0]}},width:{get:function(){return this._shape[0]},set:function(A){return A=A|0,M(this,A,this._shape[1]),A}},height:{get:function(){return this._shape[1]},set:function(A){return A=A|0,M(this,this._shape[0],A),A}}}),k.bind=function(A){var h=this.gl;return A!==void 0&&h.activeTexture(h.TEXTURE0+(A|0)),h.bindTexture(h.TEXTURE_2D,this.handle),A!==void 0?A|0:h.getParameter(h.ACTIVE_TEXTURE)-h.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var A=Math.min(this._shape[0],this._shape[1]),h=0;A>0;++h,A>>>=1)this._mipLevels.indexOf(h)<0&&this._mipLevels.push(h)},k.setPixels=function(A,h,R,E){var D=this.gl;this.bind(),Array.isArray(h)?(E=R,R=h[1]|0,h=h[0]|0):(h=h||0,R=R||0),E=E||0;var N=m(A)?A:A.raw;if(N){var I=this._mipLevels.indexOf(E)<0;I?(D.texImage2D(D.TEXTURE_2D,0,this.format,this.format,this.type,N),this._mipLevels.push(E)):D.texSubImage2D(D.TEXTURE_2D,E,h,R,this.format,this.type,N)}else if(A.shape&&A.stride&&A.data){if(A.shape.length<2||h+A.shape[1]>this._shape[1]>>>E||R+A.shape[0]>this._shape[0]>>>E||h<0||R<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");x(D,h,R,E,this.format,this.type,this._mipLevels,A)}else throw new Error("gl-texture2d: Unsupported data type")};function S(A,h){return A.length===3?h[2]===1&&h[1]===A[0]*A[2]&&h[0]===A[2]:h[0]===1&&h[1]===A[0]}function x(A,h,R,E,D,N,I,F){var L=F.dtype,P=F.shape.slice();if(P.length<2||P.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var O=0,U=0,X=S(P,F.stride.slice());L==="float32"?O=A.FLOAT:L==="float64"?(O=A.FLOAT,X=!1,L="float32"):L==="uint8"?O=A.UNSIGNED_BYTE:(O=A.UNSIGNED_BYTE,X=!1,L="uint8");var $=1;if(P.length===2)U=A.LUMINANCE,P=[P[0],P[1],1],F=l(F.data,P,[F.stride[0],F.stride[1],1],F.offset);else if(P.length===3){if(P[2]===1)U=A.ALPHA;else if(P[2]===2)U=A.LUMINANCE_ALPHA;else if(P[2]===3)U=A.RGB;else if(P[2]===4)U=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");$=P[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((U===A.LUMINANCE||U===A.ALPHA)&&(D===A.LUMINANCE||D===A.ALPHA)&&(U=D),U!==D)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var j=F.size,Y=I.indexOf(E)<0;if(Y&&I.push(E),O===N&&X)F.offset===0&&F.data.length===j?Y?A.texImage2D(A.TEXTURE_2D,E,D,P[0],P[1],0,D,N,F.data):A.texSubImage2D(A.TEXTURE_2D,E,h,R,P[0],P[1],D,N,F.data):Y?A.texImage2D(A.TEXTURE_2D,E,D,P[0],P[1],0,D,N,F.data.subarray(F.offset,F.offset+j)):A.texSubImage2D(A.TEXTURE_2D,E,h,R,P[0],P[1],D,N,F.data.subarray(F.offset,F.offset+j));else{var q;N===A.FLOAT?q=s.mallocFloat32(j):q=s.mallocUint8(j);var K=l(q,P,[P[2],P[2]*P[0],1]);O===A.FLOAT&&N===A.UNSIGNED_BYTE?w(K,F):u.assign(K,F),Y?A.texImage2D(A.TEXTURE_2D,E,D,P[0],P[1],0,D,N,q.subarray(0,j)):A.texSubImage2D(A.TEXTURE_2D,E,h,R,P[0],P[1],D,N,q.subarray(0,j)),N===A.FLOAT?s.freeFloat32(q):s.freeUint8(q)}}function T(A){var h=A.createTexture();return A.bindTexture(A.TEXTURE_2D,h),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_S,A.CLAMP_TO_EDGE),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_T,A.CLAMP_TO_EDGE),h}function d(A,h,R,E,D){var N=A.getParameter(A.MAX_TEXTURE_SIZE);if(h<0||h>N||R<0||R>N)throw new Error("gl-texture2d: Invalid texture shape");if(D===A.FLOAT&&!A.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var I=T(A);return A.texImage2D(A.TEXTURE_2D,0,E,h,R,0,E,D,null),new y(A,I,h,R,E,D)}function _(A,h,R,E,D,N){var I=T(A);return A.texImage2D(A.TEXTURE_2D,0,D,D,N,h),new y(A,I,R,E,D,N)}function g(A,h){var R=h.dtype,E=h.shape.slice(),D=A.getParameter(A.MAX_TEXTURE_SIZE);if(E[0]<0||E[0]>D||E[1]<0||E[1]>D)throw new Error("gl-texture2d: Invalid texture size");var N=S(E,h.stride.slice()),I=0;R==="float32"?I=A.FLOAT:R==="float64"?(I=A.FLOAT,N=!1,R="float32"):R==="uint8"?I=A.UNSIGNED_BYTE:(I=A.UNSIGNED_BYTE,N=!1,R="uint8");var F=0;if(E.length===2)F=A.LUMINANCE,E=[E[0],E[1],1],h=l(h.data,E,[h.stride[0],h.stride[1],1],h.offset);else if(E.length===3)if(E[2]===1)F=A.ALPHA;else if(E[2]===2)F=A.LUMINANCE_ALPHA;else if(E[2]===3)F=A.RGB;else if(E[2]===4)F=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");I===A.FLOAT&&!A.getExtension("OES_texture_float")&&(I=A.UNSIGNED_BYTE,N=!1);var L,P,O=h.size;if(N)h.offset===0&&h.data.length===O?L=h.data:L=h.data.subarray(h.offset,h.offset+O);else{var U=[E[2],E[2]*E[0],1];P=s.malloc(O,R);var X=l(P,E,U,0);(R==="float32"||R==="float64")&&I===A.UNSIGNED_BYTE?w(X,h):u.assign(X,h),L=P.subarray(0,O)}var $=T(A);return A.texImage2D(A.TEXTURE_2D,0,F,E[0],E[1],0,F,I,L),N||s.free(P),new y(A,$,E[0],E[1],F,I)}function c(A){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||b(A),typeof arguments[1]=="number")return d(A,arguments[1],arguments[2],arguments[3]||A.RGBA,arguments[4]||A.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return d(A,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var h=arguments[1],R=m(h)?h:h.raw;if(R)return _(A,R,h.width|0,h.height|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(h.shape&&h.data&&h.stride)return g(A,h)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(a){"use strict";function o(i,l,u){l?l.bind():i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,null);var s=i.getParameter(i.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>s)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(w)}},9226:function(a){a.exports=o;function o(i,l){return i[0]=Math.ceil(l[0]),i[1]=Math.ceil(l[1]),i[2]=Math.ceil(l[2]),i}},3126:function(a){a.exports=o;function o(i){var l=new Float32Array(3);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l}},3990:function(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i}},1091:function(a){a.exports=o;function o(){var i=new Float32Array(3);return i[0]=0,i[1]=0,i[2]=0,i}},5911:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[0],b=u[1],m=u[2];return i[0]=f*m-v*b,i[1]=v*p-s*m,i[2]=s*b-f*p,i}},5455:function(a,o,i){a.exports=i(7056)},7056:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return Math.sqrt(u*u+s*s+f*f)}},4008:function(a,o,i){a.exports=i(6690)},6690:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i}},244:function(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]}},2613:function(a){a.exports=1e-6},9922:function(a,o,i){a.exports=u;var l=i(2613);function u(s,f){var v=s[0],p=s[1],b=s[2],m=f[0],w=f[1],M=f[2];return Math.abs(v-m)<=l*Math.max(1,Math.abs(v),Math.abs(m))&&Math.abs(p-w)<=l*Math.max(1,Math.abs(p),Math.abs(w))&&Math.abs(b-M)<=l*Math.max(1,Math.abs(b),Math.abs(M))}},9265:function(a){a.exports=o;function o(i,l){return i[0]===l[0]&&i[1]===l[1]&&i[2]===l[2]}},2681:function(a){a.exports=o;function o(i,l){return i[0]=Math.floor(l[0]),i[1]=Math.floor(l[1]),i[2]=Math.floor(l[2]),i}},5137:function(a,o,i){a.exports=u;var l=i(1091)();function u(s,f,v,p,b,m){var w,M;for(f||(f=3),v||(v=0),p?M=Math.min(p*f+v,s.length):M=s.length,w=v;w0&&(v=1/Math.sqrt(v),i[0]=l[0]*v,i[1]=l[1]*v,i[2]=l[2]*v),i}},7636:function(a){a.exports=o;function o(i,l){l=l||1;var u=Math.random()*2*Math.PI,s=Math.random()*2-1,f=Math.sqrt(1-s*s)*l;return i[0]=Math.cos(u)*f,i[1]=Math.sin(u)*f,i[2]=s*l,i}},6894:function(a){a.exports=o;function o(i,l,u,s){var f=u[1],v=u[2],p=l[1]-f,b=l[2]-v,m=Math.sin(s),w=Math.cos(s);return i[0]=l[0],i[1]=f+p*w-b*m,i[2]=v+p*m+b*w,i}},109:function(a){a.exports=o;function o(i,l,u,s){var f=u[0],v=u[2],p=l[0]-f,b=l[2]-v,m=Math.sin(s),w=Math.cos(s);return i[0]=f+b*m+p*w,i[1]=l[1],i[2]=v+b*w-p*m,i}},8692:function(a){a.exports=o;function o(i,l,u,s){var f=u[0],v=u[1],p=l[0]-f,b=l[1]-v,m=Math.sin(s),w=Math.cos(s);return i[0]=f+p*w-b*m,i[1]=v+p*m+b*w,i[2]=l[2],i}},2447:function(a){a.exports=o;function o(i,l){return i[0]=Math.round(l[0]),i[1]=Math.round(l[1]),i[2]=Math.round(l[2]),i}},6621:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i}},8489:function(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i}},1463:function(a){a.exports=o;function o(i,l,u,s){return i[0]=l,i[1]=u,i[2]=s,i}},6141:function(a,o,i){a.exports=i(2953)},5486:function(a,o,i){a.exports=i(3066)},2953:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return u*u+s*s+f*f}},3066:function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2];return l*l+u*u+s*s}},2229:function(a,o,i){a.exports=i(6843)},6843:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i}},492:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2];return i[0]=s*u[0]+f*u[3]+v*u[6],i[1]=s*u[1]+f*u[4]+v*u[7],i[2]=s*u[2]+f*u[5]+v*u[8],i}},5673:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[3]*s+u[7]*f+u[11]*v+u[15];return p=p||1,i[0]=(u[0]*s+u[4]*f+u[8]*v+u[12])/p,i[1]=(u[1]*s+u[5]*f+u[9]*v+u[13])/p,i[2]=(u[2]*s+u[6]*f+u[10]*v+u[14])/p,i}},264:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[0],b=u[1],m=u[2],w=u[3],M=w*s+b*v-m*f,y=w*f+m*s-p*v,k=w*v+p*f-b*s,S=-p*s-b*f-m*v;return i[0]=M*w+S*-p+y*-m-k*-b,i[1]=y*w+S*-b+k*-p-M*-m,i[2]=k*w+S*-m+M*-b-y*-p,i}},4361:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]+u[0],i[1]=l[1]+u[1],i[2]=l[2]+u[2],i[3]=l[3]+u[3],i}},2335:function(a){a.exports=o;function o(i){var l=new Float32Array(4);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l}},2933:function(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i[3]=l[3],i}},7536:function(a){a.exports=o;function o(){var i=new Float32Array(4);return i[0]=0,i[1]=0,i[2]=0,i[3]=0,i}},4691:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],v=l[3]-i[3];return Math.sqrt(u*u+s*s+f*f+v*v)}},1373:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i[3]=l[3]/u[3],i}},3750:function(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3]*l[3]}},3390:function(a){a.exports=o;function o(i,l,u,s){var f=new Float32Array(4);return f[0]=i,f[1]=l,f[2]=u,f[3]=s,f}},9970:function(a,o,i){a.exports={create:i(7536),clone:i(2335),fromValues:i(3390),copy:i(2933),set:i(4578),add:i(4361),subtract:i(6860),multiply:i(3576),divide:i(1373),min:i(2334),max:i(160),scale:i(9288),scaleAndAdd:i(4844),distance:i(4691),squaredDistance:i(7960),length:i(6808),squaredLength:i(483),negate:i(1498),inverse:i(4494),normalize:i(5177),dot:i(3750),lerp:i(2573),random:i(9131),transformMat4:i(5352),transformQuat:i(4041)}},4494:function(a){a.exports=o;function o(i,l){return i[0]=1/l[0],i[1]=1/l[1],i[2]=1/l[2],i[3]=1/l[3],i}},6808:function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return Math.sqrt(l*l+u*u+s*s+f*f)}},2573:function(a){a.exports=o;function o(i,l,u,s){var f=l[0],v=l[1],p=l[2],b=l[3];return i[0]=f+s*(u[0]-f),i[1]=v+s*(u[1]-v),i[2]=p+s*(u[2]-p),i[3]=b+s*(u[3]-b),i}},160:function(a){a.exports=o;function o(i,l,u){return i[0]=Math.max(l[0],u[0]),i[1]=Math.max(l[1],u[1]),i[2]=Math.max(l[2],u[2]),i[3]=Math.max(l[3],u[3]),i}},2334:function(a){a.exports=o;function o(i,l,u){return i[0]=Math.min(l[0],u[0]),i[1]=Math.min(l[1],u[1]),i[2]=Math.min(l[2],u[2]),i[3]=Math.min(l[3],u[3]),i}},3576:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u[0],i[1]=l[1]*u[1],i[2]=l[2]*u[2],i[3]=l[3]*u[3],i}},1498:function(a){a.exports=o;function o(i,l){return i[0]=-l[0],i[1]=-l[1],i[2]=-l[2],i[3]=-l[3],i}},5177:function(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],v=l[3],p=u*u+s*s+f*f+v*v;return p>0&&(p=1/Math.sqrt(p),i[0]=u*p,i[1]=s*p,i[2]=f*p,i[3]=v*p),i}},9131:function(a,o,i){var l=i(5177),u=i(9288);a.exports=s;function s(f,v){return v=v||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),l(f,f),u(f,f,v),f}},9288:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i[3]=l[3]*u,i}},4844:function(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i[3]=l[3]+u[3]*s,i}},4578:function(a){a.exports=o;function o(i,l,u,s,f){return i[0]=l,i[1]=u,i[2]=s,i[3]=f,i}},7960:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],v=l[3]-i[3];return u*u+s*s+f*f+v*v}},483:function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return l*l+u*u+s*s+f*f}},6860:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i[3]=l[3]-u[3],i}},5352:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=l[3];return i[0]=u[0]*s+u[4]*f+u[8]*v+u[12]*p,i[1]=u[1]*s+u[5]*f+u[9]*v+u[13]*p,i[2]=u[2]*s+u[6]*f+u[10]*v+u[14]*p,i[3]=u[3]*s+u[7]*f+u[11]*v+u[15]*p,i}},4041:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[0],b=u[1],m=u[2],w=u[3],M=w*s+b*v-m*f,y=w*f+m*s-p*v,k=w*v+p*f-b*s,S=-p*s-b*f-m*v;return i[0]=M*w+S*-p+y*-m-k*-b,i[1]=y*w+S*-b+k*-p-M*-m,i[2]=k*w+S*-m+M*-b-y*-p,i[3]=l[3],i}},1848:function(a,o,i){var l=i(4905),u=i(6468);a.exports=s;function s(f){for(var v=Array.isArray(f)?f:l(f),p=0;p0)continue;me=ge.slice(0,1).join("")}return re(me),j+=me.length,L=L.slice(me.length),L.length}while(!0)}function Pe(){return/[^a-fA-F0-9]/.test(I)?(re(L.join("")),N=p,E):(L.push(I),F=I,E+1)}function Se(){return I==="."||/[eE]/.test(I)?(L.push(I),N=S,F=I,E+1):I==="x"&&L.length===1&&L[0]==="0"?(N=c,L.push(I),F=I,E+1):/[^\d]/.test(I)?(re(L.join("")),N=p,E):(L.push(I),F=I,E+1)}function Ne(){return I==="f"&&(L.push(I),F=I,E+=1),/[eE]/.test(I)||(I==="-"||I==="+")&&/[eE]/.test(F)?(L.push(I),F=I,E+1):/[^\d]/.test(I)?(re(L.join("")),N=p,E):(L.push(I),F=I,E+1)}function Be(){if(/[^\d\w_]/.test(I)){var ge=L.join("");return V[ge]?N=d:ee[ge]?N=T:N=x,re(L.join("")),N=p,E}return L.push(I),F=I,E+1}}},3508:function(a,o,i){var l=i(6852);l=l.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),a.exports=l.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(a){a.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(a,o,i){var l=i(620);a.exports=l.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(a){a.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(a){a.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(a,o,i){var l=i(5874);a.exports=u;function u(s,f){var v=l(f),p=[];return p=p.concat(v(s)),p=p.concat(v(null)),p}},3236:function(a){a.exports=function(o){typeof o=="string"&&(o=[o]);for(var i=[].slice.call(arguments,1),l=[],u=0;u>1,M=-7,y=u?f-1:0,k=u?-1:1,S=i[l+y];for(y+=k,v=S&(1<<-M)-1,S>>=-M,M+=b;M>0;v=v*256+i[l+y],y+=k,M-=8);for(p=v&(1<<-M)-1,v>>=-M,M+=s;M>0;p=p*256+i[l+y],y+=k,M-=8);if(v===0)v=1-w;else{if(v===m)return p?NaN:(S?-1:1)*(1/0);p=p+Math.pow(2,s),v=v-w}return(S?-1:1)*p*Math.pow(2,v-s)},o.write=function(i,l,u,s,f,v){var p,b,m,w=v*8-f-1,M=(1<>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=s?0:v-1,x=s?1:-1,T=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(b=isNaN(l)?1:0,p=M):(p=Math.floor(Math.log(l)/Math.LN2),l*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+y>=1?l+=k/m:l+=k*Math.pow(2,1-y),l*m>=2&&(p++,m/=2),p+y>=M?(b=0,p=M):p+y>=1?(b=(l*m-1)*Math.pow(2,f),p=p+y):(b=l*Math.pow(2,y-1)*Math.pow(2,f),p=0));f>=8;i[u+S]=b&255,S+=x,b/=256,f-=8);for(p=p<0;i[u+S]=p&255,S+=x,p/=256,w-=8);i[u+S-x]|=T*128}},8954:function(a,o,i){"use strict";a.exports=y;var l=i(3250),u=i(6803).Fw;function s(k,S,x){this.vertices=k,this.adjacent=S,this.boundary=x,this.lastVisited=-1}s.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var S=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=S};function f(k,S,x){this.vertices=k,this.cell=S,this.index=x}function v(k,S){return u(k.vertices,S.vertices)}function p(k){return function(){var S=this.tuple;return k.apply(this,S)}}function b(k){var S=l[k+1];return S||(S=l),p(S)}var m=[];function w(k,S,x){this.dimension=k,this.vertices=S,this.simplices=x,this.interior=x.filter(function(_){return!_.boundary}),this.tuple=new Array(k+1);for(var T=0;T<=k;++T)this.tuple[T]=this.vertices[T];var d=m[k];d||(d=m[k]=b(k)),this.orient=d}var M=w.prototype;M.handleBoundaryDegeneracy=function(k,S){var x=this.dimension,T=this.vertices.length-1,d=this.tuple,_=this.vertices,g=[k];for(k.lastVisited=-T;g.length>0;){k=g.pop();for(var c=k.adjacent,A=0;A<=x;++A){var h=c[A];if(!(!h.boundary||h.lastVisited<=-T)){for(var R=h.vertices,E=0;E<=x;++E){var D=R[E];D<0?d[E]=S:d[E]=_[D]}var N=this.orient();if(N>0)return h;h.lastVisited=-T,N===0&&g.push(h)}}}return null},M.walk=function(k,S){var x=this.vertices.length-1,T=this.dimension,d=this.vertices,_=this.tuple,g=S?this.interior.length*Math.random()|0:this.interior.length-1,c=this.interior[g];e:for(;!c.boundary;){for(var A=c.vertices,h=c.adjacent,R=0;R<=T;++R)_[R]=d[A[R]];c.lastVisited=x;for(var R=0;R<=T;++R){var E=h[R];if(!(E.lastVisited>=x)){var D=_[R];_[R]=k;var N=this.orient();if(_[R]=D,N<0){c=E;continue e}else E.boundary?E.lastVisited=-x:E.lastVisited=x}}return}return c},M.addPeaks=function(k,S){var x=this.vertices.length-1,T=this.dimension,d=this.vertices,_=this.tuple,g=this.interior,c=this.simplices,A=[S];S.lastVisited=x,S.vertices[S.vertices.indexOf(-1)]=x,S.boundary=!1,g.push(S);for(var h=[];A.length>0;){var S=A.pop(),R=S.vertices,E=S.adjacent,D=R.indexOf(x);if(!(D<0)){for(var N=0;N<=T;++N)if(N!==D){var I=E[N];if(!(!I.boundary||I.lastVisited>=x)){var F=I.vertices;if(I.lastVisited!==-x){for(var L=0,P=0;P<=T;++P)F[P]<0?(L=P,_[P]=k):_[P]=d[F[P]];var O=this.orient();if(O>0){F[L]=x,I.boundary=!1,g.push(I),A.push(I),I.lastVisited=x;continue}else I.lastVisited=-x}var U=I.adjacent,X=R.slice(),$=E.slice(),j=new s(X,$,!0);c.push(j);var Y=U.indexOf(S);if(!(Y<0)){U[Y]=j,$[D]=I,X[N]=-1,$[N]=S,E[N]=j,j.flip();for(var P=0;P<=T;++P){var q=X[P];if(!(q<0||q===x)){for(var K=new Array(T-1),ne=0,Q=0;Q<=T;++Q){var ie=X[Q];ie<0||Q===P||(K[ne++]=ie)}h.push(new f(K,j,P))}}}}}}}h.sort(v);for(var N=0;N+1=0?g[A++]=c[R]:h=R&1;if(h===(k&1)){var E=g[0];g[0]=g[1],g[1]=E}S.push(g)}}return S};function y(k,S){var x=k.length;if(x===0)throw new Error("Must have at least d+1 points");var T=k[0].length;if(x<=T)throw new Error("Must input at least d+1 points");var d=k.slice(0,T+1),_=l.apply(void 0,d);if(_===0)throw new Error("Input not in general position");for(var g=new Array(T+1),c=0;c<=T;++c)g[c]=c;_<0&&(g[0]=1,g[1]=0);for(var A=new s(g,new Array(T+1),!1),h=A.adjacent,R=new Array(T+2),c=0;c<=T;++c){for(var E=g.slice(),D=0;D<=T;++D)D===c&&(E[D]=-1);var N=E[0];E[0]=E[1],E[1]=N;var I=new s(E,new Array(T+1),!0);h[c]=I,R[c]=I}R[T+1]=A;for(var c=0;c<=T;++c)for(var E=h[c].vertices,F=h[c].adjacent,D=0;D<=T;++D){var L=E[D];if(L<0){F[D]=A;continue}for(var P=0;P<=T;++P)h[P].vertices.indexOf(L)<0&&(F[D]=h[P])}for(var O=new w(T,d,R),U=!!S,c=T+1;c3*(R+1)?w(this,h):this.left.insert(h):this.left=_([h]);else if(h[0]>this.mid)this.right?4*(this.right.count+1)>3*(R+1)?w(this,h):this.right.insert(h):this.right=_([h]);else{var E=l.ge(this.leftPoints,h,T),D=l.ge(this.rightPoints,h,d);this.leftPoints.splice(E,0,h),this.rightPoints.splice(D,0,h)}},p.remove=function(h){var R=this.count-this.leftPoints;if(h[1]3*(R-1))return M(this,h);var D=this.left.remove(h);return D===f?(this.left=null,this.count-=1,s):(D===s&&(this.count-=1),D)}else if(h[0]>this.mid){if(!this.right)return u;var N=this.left?this.left.count:0;if(4*N>3*(R-1))return M(this,h);var D=this.right.remove(h);return D===f?(this.right=null,this.count-=1,s):(D===s&&(this.count-=1),D)}else{if(this.count===1)return this.leftPoints[0]===h?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===h){if(this.left&&this.right){for(var I=this,F=this.left;F.right;)I=F,F=F.right;if(I===this)F.right=this.right;else{var L=this.left,D=this.right;I.count-=F.count,I.right=F.left,F.left=L,F.right=D}b(this,F),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?b(this,this.left):b(this,this.right);return s}for(var L=l.ge(this.leftPoints,h,T);L=0&&h[D][1]>=R;--D){var N=E(h[D]);if(N)return N}}function S(h,R){for(var E=0;Ethis.mid){if(this.right){var E=this.right.queryPoint(h,R);if(E)return E}return k(this.rightPoints,h,R)}else return S(this.leftPoints,R)},p.queryInterval=function(h,R,E){if(hthis.mid&&this.right){var D=this.right.queryInterval(h,R,E);if(D)return D}return Rthis.mid?k(this.rightPoints,h,E):S(this.leftPoints,E)};function x(h,R){return h-R}function T(h,R){var E=h[0]-R[0];return E||h[1]-R[1]}function d(h,R){var E=h[1]-R[1];return E||h[0]-R[0]}function _(h){if(h.length===0)return null;for(var R=[],E=0;E>1],N=[],I=[],F=[],E=0;E13)&&l!==32&&l!==133&&l!==160&&l!==5760&&l!==6158&&(l<8192||l>8205)&&l!==8232&&l!==8233&&l!==8239&&l!==8287&&l!==8288&&l!==12288&&l!==65279)return!1;return!0}},395:function(a){function o(i,l,u){return i*(1-u)+l*u}a.exports=o},2652:function(a,o,i){var l=i(4335),u=i(6864),s=i(1903),f=i(9921),v=i(7608),p=i(5665),b={length:i(1387),normalize:i(3536),dot:i(244),cross:i(5911)},m=u(),w=u(),M=[0,0,0,0],y=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];a.exports=function(_,g,c,A,h,R){if(g||(g=[0,0,0]),c||(c=[0,0,0]),A||(A=[0,0,0]),h||(h=[0,0,0,1]),R||(R=[0,0,0,1]),!l(m,_)||(s(w,m),w[3]=0,w[7]=0,w[11]=0,w[15]=1,Math.abs(f(w)<1e-8)))return!1;var E=m[3],D=m[7],N=m[11],I=m[12],F=m[13],L=m[14],P=m[15];if(E!==0||D!==0||N!==0){M[0]=E,M[1]=D,M[2]=N,M[3]=P;var O=v(w,w);if(!O)return!1;p(w,w),S(h,M,w)}else h[0]=h[1]=h[2]=0,h[3]=1;if(g[0]=I,g[1]=F,g[2]=L,x(y,m),c[0]=b.length(y[0]),b.normalize(y[0],y[0]),A[0]=b.dot(y[0],y[1]),T(y[1],y[1],y[0],1,-A[0]),c[1]=b.length(y[1]),b.normalize(y[1],y[1]),A[0]/=c[1],A[1]=b.dot(y[0],y[2]),T(y[2],y[2],y[0],1,-A[1]),A[2]=b.dot(y[1],y[2]),T(y[2],y[2],y[1],1,-A[2]),c[2]=b.length(y[2]),b.normalize(y[2],y[2]),A[1]/=c[2],A[2]/=c[2],b.cross(k,y[1],y[2]),b.dot(y[0],k)<0)for(var U=0;U<3;U++)c[U]*=-1,y[U][0]*=-1,y[U][1]*=-1,y[U][2]*=-1;return R[0]=.5*Math.sqrt(Math.max(1+y[0][0]-y[1][1]-y[2][2],0)),R[1]=.5*Math.sqrt(Math.max(1-y[0][0]+y[1][1]-y[2][2],0)),R[2]=.5*Math.sqrt(Math.max(1-y[0][0]-y[1][1]+y[2][2],0)),R[3]=.5*Math.sqrt(Math.max(1+y[0][0]+y[1][1]+y[2][2],0)),y[2][1]>y[1][2]&&(R[0]=-R[0]),y[0][2]>y[2][0]&&(R[1]=-R[1]),y[1][0]>y[0][1]&&(R[2]=-R[2]),!0};function S(d,_,g){var c=_[0],A=_[1],h=_[2],R=_[3];return d[0]=g[0]*c+g[4]*A+g[8]*h+g[12]*R,d[1]=g[1]*c+g[5]*A+g[9]*h+g[13]*R,d[2]=g[2]*c+g[6]*A+g[10]*h+g[14]*R,d[3]=g[3]*c+g[7]*A+g[11]*h+g[15]*R,d}function x(d,_){d[0][0]=_[0],d[0][1]=_[1],d[0][2]=_[2],d[1][0]=_[4],d[1][1]=_[5],d[1][2]=_[6],d[2][0]=_[8],d[2][1]=_[9],d[2][2]=_[10]}function T(d,_,g,c,A){d[0]=_[0]*c+g[0]*A,d[1]=_[1]*c+g[1]*A,d[2]=_[2]*c+g[2]*A}},4335:function(a){a.exports=function(i,l){var u=l[15];if(u===0)return!1;for(var s=1/u,f=0;f<16;f++)i[f]=l[f]*s;return!0}},7442:function(a,o,i){var l=i(6658),u=i(7182),s=i(2652),f=i(9921),v=i(8648),p=M(),b=M(),m=M();a.exports=w;function w(S,x,T,d){if(f(x)===0||f(T)===0)return!1;var _=s(x,p.translate,p.scale,p.skew,p.perspective,p.quaternion),g=s(T,b.translate,b.scale,b.skew,b.perspective,b.quaternion);return!_||!g?!1:(l(m.translate,p.translate,b.translate,d),l(m.skew,p.skew,b.skew,d),l(m.scale,p.scale,b.scale,d),l(m.perspective,p.perspective,b.perspective,d),v(m.quaternion,p.quaternion,b.quaternion,d),u(S,m.translate,m.scale,m.skew,m.perspective,m.quaternion),!0)}function M(){return{translate:y(),scale:y(1),skew:y(),perspective:k(),quaternion:k()}}function y(S){return[S||0,S||0,S||0]}function k(){return[0,0,0,1]}},7182:function(a,o,i){var l={identity:i(7894),translate:i(7656),multiply:i(6760),create:i(6864),scale:i(2504),fromRotationTranslation:i(6743)},u=l.create(),s=l.create();a.exports=function(v,p,b,m,w,M){return l.identity(v),l.fromRotationTranslation(v,M,p),v[3]=w[0],v[7]=w[1],v[11]=w[2],v[15]=w[3],l.identity(s),m[2]!==0&&(s[9]=m[2],l.multiply(v,v,s)),m[1]!==0&&(s[9]=0,s[8]=m[1],l.multiply(v,v,s)),m[0]!==0&&(s[8]=0,s[4]=m[0],l.multiply(v,v,s)),l.scale(v,v,b),v}},1811:function(a,o,i){"use strict";var l=i(2478),u=i(7442),s=i(7608),f=i(5567),v=i(2408),p=i(7089),b=i(6582),m=i(7656),w=i(2504),M=i(3536),y=[0,0,0];a.exports=T;function k(d){this._components=d.slice(),this._time=[0],this.prevMatrix=d.slice(),this.nextMatrix=d.slice(),this.computedMatrix=d.slice(),this.computedInverse=d.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var S=k.prototype;S.recalcMatrix=function(d){var _=this._time,g=l.le(_,d),c=this.computedMatrix;if(!(g<0)){var A=this._components;if(g===_.length-1)for(var h=16*g,R=0;R<16;++R)c[R]=A[h++];else{for(var E=_[g+1]-_[g],h=16*g,D=this.prevMatrix,N=!0,R=0;R<16;++R)D[R]=A[h++];for(var I=this.nextMatrix,R=0;R<16;++R)I[R]=A[h++],N=N&&D[R]===I[R];if(E<1e-6||N)for(var R=0;R<16;++R)c[R]=D[R];else u(c,D,I,(d-_[g])/E)}var F=this.computedUp;F[0]=c[1],F[1]=c[5],F[2]=c[9],M(F,F);var L=this.computedInverse;s(L,c);var P=this.computedEye,O=L[15];P[0]=L[12]/O,P[1]=L[13]/O,P[2]=L[14]/O;for(var U=this.computedCenter,X=Math.exp(this.computedRadius[0]),R=0;R<3;++R)U[R]=P[R]-c[2+4*R]*X}},S.idle=function(d){if(!(d1&&l(s[b[y-2]],s[b[y-1]],M)<=0;)y-=1,b.pop();for(b.push(w),y=m.length;y>1&&l(s[m[y-2]],s[m[y-1]],M)>=0;)y-=1,m.pop();m.push(w)}for(var k=new Array(m.length+b.length-2),S=0,v=0,x=b.length;v0;--T)k[S++]=m[T];return k}},351:function(a,o,i){"use strict";a.exports=u;var l=i(4687);function u(s,f){f||(f=s,s=window);var v=0,p=0,b=0,m={shift:!1,alt:!1,control:!1,meta:!1},w=!1;function M(h){var R=!1;return"altKey"in h&&(R=R||h.altKey!==m.alt,m.alt=!!h.altKey),"shiftKey"in h&&(R=R||h.shiftKey!==m.shift,m.shift=!!h.shiftKey),"ctrlKey"in h&&(R=R||h.ctrlKey!==m.control,m.control=!!h.ctrlKey),"metaKey"in h&&(R=R||h.metaKey!==m.meta,m.meta=!!h.metaKey),R}function y(h,R){var E=l.x(R),D=l.y(R);"buttons"in R&&(h=R.buttons|0),(h!==v||E!==p||D!==b||M(R))&&(v=h|0,p=E||0,b=D||0,f&&f(v,p,b,m))}function k(h){y(0,h)}function S(){(v||p||b||m.shift||m.alt||m.meta||m.control)&&(p=b=0,v=0,m.shift=m.alt=m.control=m.meta=!1,f&&f(0,0,0,m))}function x(h){M(h)&&f&&f(v,p,b,m)}function T(h){l.buttons(h)===0?y(0,h):y(v,h)}function d(h){y(v|l.buttons(h),h)}function _(h){y(v&~l.buttons(h),h)}function g(){w||(w=!0,s.addEventListener("mousemove",T),s.addEventListener("mousedown",d),s.addEventListener("mouseup",_),s.addEventListener("mouseleave",k),s.addEventListener("mouseenter",k),s.addEventListener("mouseout",k),s.addEventListener("mouseover",k),s.addEventListener("blur",S),s.addEventListener("keyup",x),s.addEventListener("keydown",x),s.addEventListener("keypress",x),s!==window&&(window.addEventListener("blur",S),window.addEventListener("keyup",x),window.addEventListener("keydown",x),window.addEventListener("keypress",x)))}function c(){w&&(w=!1,s.removeEventListener("mousemove",T),s.removeEventListener("mousedown",d),s.removeEventListener("mouseup",_),s.removeEventListener("mouseleave",k),s.removeEventListener("mouseenter",k),s.removeEventListener("mouseout",k),s.removeEventListener("mouseover",k),s.removeEventListener("blur",S),s.removeEventListener("keyup",x),s.removeEventListener("keydown",x),s.removeEventListener("keypress",x),s!==window&&(window.removeEventListener("blur",S),window.removeEventListener("keyup",x),window.removeEventListener("keydown",x),window.removeEventListener("keypress",x)))}g();var A={element:s};return Object.defineProperties(A,{enabled:{get:function(){return w},set:function(h){h?g():c()},enumerable:!0},buttons:{get:function(){return v},enumerable:!0},x:{get:function(){return p},enumerable:!0},y:{get:function(){return b},enumerable:!0},mods:{get:function(){return m},enumerable:!0}}),A}},24:function(a){var o={left:0,top:0};a.exports=i;function i(u,s,f){s=s||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var v=u.clientX||0,p=u.clientY||0,b=l(s);return f[0]=v-b.left,f[1]=p-b.top,f}function l(u){return u===window||u===document||u===document.body?o:u.getBoundingClientRect()}},4687:function(a,o){"use strict";function i(f){if(typeof f=="object"){if("buttons"in f)return f.buttons;if("which"in f){var v=f.which;if(v===2)return 4;if(v===3)return 2;if(v>0)return 1<=0)return 1<0){if($=1,q[ne++]=m(g[R],S,x,T),R+=O,d>0)for(X=1,E=g[R],Q=q[ne]=m(E,S,x,T),V=q[ne+ie],te=q[ne+re],ke=q[ne+ue],(Q!==V||Q!==te||Q!==ke)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,Q,V,te,ke,S,x,T),Ae=K[ne]=j++),ne+=1,R+=O,X=2;X0)for(X=1,E=g[R],Q=q[ne]=m(E,S,x,T),V=q[ne+ie],te=q[ne+re],ke=q[ne+ue],(Q!==V||Q!==te||Q!==ke)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,Q,V,te,ke,S,x,T),Ae=K[ne]=j++,ke!==te&&b(K[ne+re],Ae,F,P,te,ke,S,x,T)),ne+=1,R+=O,X=2;X0){if(X=1,q[ne++]=m(g[R],S,x,T),R+=O,_>0)for($=1,E=g[R],Q=q[ne]=m(E,S,x,T),te=q[ne+re],V=q[ne+ie],ke=q[ne+ue],(Q!==te||Q!==V||Q!==ke)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,Q,te,V,ke,S,x,T),Ae=K[ne]=j++),ne+=1,R+=O,$=2;$<_;++$)E=g[R],Q=q[ne]=m(E,S,x,T),te=q[ne+re],V=q[ne+ie],ke=q[ne+ue],(Q!==te||Q!==V||Q!==ke)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,Q,te,V,ke,S,x,T),Ae=K[ne]=j++,ke!==V&&b(K[ne+ie],Ae,F,P,V,ke,S,x,T)),ne+=1,R+=O;for(R+=U,ne=0,ve=re,re=H,H=ve,ve=ie,ie=ee,ee=ve,ve=ue,ue=de,de=ve,X=2;X0)for($=1,E=g[R],Q=q[ne]=m(E,S,x,T),te=q[ne+re],V=q[ne+ie],ke=q[ne+ue],(Q!==te||Q!==V||Q!==ke)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,Q,te,V,ke,S,x,T),Ae=K[ne]=j++,ke!==te&&b(K[ne+re],Ae,P,N,ke,te,S,x,T)),ne+=1,R+=O,$=2;$<_;++$)E=g[R],Q=q[ne]=m(E,S,x,T),te=q[ne+re],V=q[ne+ie],ke=q[ne+ue],(Q!==te||Q!==V||Q!==ke)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,Q,te,V,ke,S,x,T),Ae=K[ne]=j++,ke!==V&&b(K[ne+ie],Ae,F,P,V,ke,S,x,T),ke!==te&&b(K[ne+re],Ae,P,N,ke,te,S,x,T)),ne+=1,R+=O;X&1&&(ne=0),ve=re,re=H,H=ve,ve=ie,ie=ee,ee=ve,ve=ue,ue=de,de=ve,R+=U}}M(K),M(q)}}};function s(v,p,b,m,w,M){var y=[M,w].join(","),k=u[y];return k(v,p,b,l.mallocUint32,l.freeUint32)}function f(v){function p(S){throw new Error("ndarray-extract-contour: "+S)}typeof v!="object"&&p("Must specify arguments");var b=v.order;Array.isArray(b)||p("Must specify order");var m=v.arrayArguments||1;m<1&&p("Must have at least one array argument");var w=v.scalarArguments||0;w<0&&p("Scalar arg count must be > 0"),typeof v.vertex!="function"&&p("Must specify vertex creation function"),typeof v.cell!="function"&&p("Must specify cell creation function"),typeof v.phase!="function"&&p("Must specify phase function");for(var M=v.getters||[],y=new Array(m),k=0;k=0?y[k]=!0:y[k]=!1;return s(v.vertex,v.cell,v.phase,w,b,y)}},6199:function(a,o,i){"use strict";var l=i(1338),u={zero:function(T,d,_,g){var c=T[0],A=_[0];g|=0;var h=0,R=A;for(h=0;h2&&h[1]>2&&g(A.pick(-1,-1).lo(1,1).hi(h[0]-2,h[1]-2),c.pick(-1,-1,0).lo(1,1).hi(h[0]-2,h[1]-2),c.pick(-1,-1,1).lo(1,1).hi(h[0]-2,h[1]-2)),h[1]>2&&(_(A.pick(0,-1).lo(1).hi(h[1]-2),c.pick(0,-1,1).lo(1).hi(h[1]-2)),d(c.pick(0,-1,0).lo(1).hi(h[1]-2))),h[1]>2&&(_(A.pick(h[0]-1,-1).lo(1).hi(h[1]-2),c.pick(h[0]-1,-1,1).lo(1).hi(h[1]-2)),d(c.pick(h[0]-1,-1,0).lo(1).hi(h[1]-2))),h[0]>2&&(_(A.pick(-1,0).lo(1).hi(h[0]-2),c.pick(-1,0,0).lo(1).hi(h[0]-2)),d(c.pick(-1,0,1).lo(1).hi(h[0]-2))),h[0]>2&&(_(A.pick(-1,h[1]-1).lo(1).hi(h[0]-2),c.pick(-1,h[1]-1,0).lo(1).hi(h[0]-2)),d(c.pick(-1,h[1]-1,1).lo(1).hi(h[0]-2))),c.set(0,0,0,0),c.set(0,0,1,0),c.set(h[0]-1,0,0,0),c.set(h[0]-1,0,1,0),c.set(0,h[1]-1,0,0),c.set(0,h[1]-1,1,0),c.set(h[0]-1,h[1]-1,0,0),c.set(h[0]-1,h[1]-1,1,0),c}}function x(T){var d=T.join(),h=m[d];if(h)return h;for(var _=T.length,g=[M,y],c=1;c<=_;++c)g.push(k(c));var A=S,h=A.apply(void 0,g);return m[d]=h,h}a.exports=function(d,_,g){if(Array.isArray(g)||(typeof g=="string"?g=l(_.dimension,g):g=l(_.dimension,"clamp")),_.size===0)return d;if(_.dimension===0)return d.set(0),d;var c=x(g);return c(d,_)}},4317:function(a){"use strict";function o(f,v){var p=Math.floor(v),b=v-p,m=0<=p&&p0;){F<64?(d=F,F=0):(d=64,F-=64);for(var L=m[1]|0;L>0;){L<64?(_=L,L=0):(_=64,L-=64),y=N+F*c+L*A,x=I+F*R+L*E;var P=0,O=0,U=0,X=h,$=c-g*h,j=A-d*c,Y=D,q=R-g*D,K=E-d*R;for(U=0;U<_;++U){for(O=0;O0;){E<64?(d=E,E=0):(d=64,E-=64);for(var D=m[0]|0;D>0;){D<64?(T=D,D=0):(T=64,D-=64),y=h+E*g+D*_,x=R+E*A+D*c;var N=0,I=0,F=g,L=_-d*g,P=A,O=c-d*A;for(I=0;I0;){I<64?(_=I,I=0):(_=64,I-=64);for(var F=m[0]|0;F>0;){F<64?(T=F,F=0):(T=64,F-=64);for(var L=m[1]|0;L>0;){L<64?(d=L,L=0):(d=64,L-=64),y=D+I*A+F*g+L*c,x=N+I*E+F*h+L*R;var P=0,O=0,U=0,X=A,$=g-_*A,j=c-T*g,Y=E,q=h-_*E,K=R-T*h;for(U=0;Uk;){P=0,O=N-d;r:for(F=0;FX)break r;O+=h,P+=R}for(P=N,O=N-d,F=0;F>1,L=F-D,P=F+D,O=N,U=L,X=F,$=P,j=I,Y=S+1,q=x-1,K=!0,ne,Q,ie,ee,V,re,H,te,ue,de=0,ke=0,Ae=0,ve,Te,Ee,Pe,Se,Ne,Be,ge,we,Me,me,Re,ce,he,ye,Ce,ze=A,qe=M(ze),$e=M(ze);Te=_*O,Ee=_*U,Ce=d;e:for(ve=0;ve0){Q=O,O=U,U=Q;break e}if(Ae<0)break e;Ce+=R}Te=_*$,Ee=_*j,Ce=d;e:for(ve=0;ve0){Q=$,$=j,j=Q;break e}if(Ae<0)break e;Ce+=R}Te=_*O,Ee=_*X,Ce=d;e:for(ve=0;ve0){Q=O,O=X,X=Q;break e}if(Ae<0)break e;Ce+=R}Te=_*U,Ee=_*X,Ce=d;e:for(ve=0;ve0){Q=U,U=X,X=Q;break e}if(Ae<0)break e;Ce+=R}Te=_*O,Ee=_*$,Ce=d;e:for(ve=0;ve0){Q=O,O=$,$=Q;break e}if(Ae<0)break e;Ce+=R}Te=_*X,Ee=_*$,Ce=d;e:for(ve=0;ve0){Q=X,X=$,$=Q;break e}if(Ae<0)break e;Ce+=R}Te=_*U,Ee=_*j,Ce=d;e:for(ve=0;ve0){Q=U,U=j,j=Q;break e}if(Ae<0)break e;Ce+=R}Te=_*U,Ee=_*X,Ce=d;e:for(ve=0;ve0){Q=U,U=X,X=Q;break e}if(Ae<0)break e;Ce+=R}Te=_*$,Ee=_*j,Ce=d;e:for(ve=0;ve0){Q=$,$=j,j=Q;break e}if(Ae<0)break e;Ce+=R}for(Te=_*O,Ee=_*U,Pe=_*X,Se=_*$,Ne=_*j,Be=_*N,ge=_*F,we=_*I,ye=0,Ce=d,ve=0;ve0)q--;else if(Ae<0){for(Te=_*re,Ee=_*Y,Pe=_*q,Ce=d,ve=0;ve0)for(;;){H=d+q*_,ye=0;e:for(ve=0;ve0){if(--qI){e:for(;;){for(H=d+Y*_,ye=0,Ce=d,ve=0;ve1&&k?x(y,k[0],k[1]):x(y)}var b={"uint32,1,0":function(w,M){return function(y){var k=y.data,S=y.offset|0,x=y.shape,T=y.stride,d=T[0]|0,_=x[0]|0,g=T[1]|0,c=x[1]|0,A=g,h=g,R=1;_<=32?w(0,_-1,k,S,d,g,_,c,A,h,R):M(0,_-1,k,S,d,g,_,c,A,h,R)}}};function m(w,M){var y=[M,w].join(","),k=b[y],S=f(w,M),x=p(w,M,S);return k(S,x)}a.exports=m},446:function(a,o,i){"use strict";var l=i(7640),u={};function s(f){var v=f.order,p=f.dtype,b=[v,p],m=b.join(":"),w=u[m];return w||(u[m]=w=l(v,p)),w(f),f}a.exports=s},9618:function(a,o,i){var l=i(7163),u=typeof Float64Array!="undefined";function s(M,y){return M[0]-y[0]}function f(){var M=this.stride,y=new Array(M.length),k;for(k=0;k=0&&(g=d|0,_+=A*g,c-=g),new S(this.data,c,A,_)},x.step=function(d){var _=this.shape[0],g=this.stride[0],c=this.offset,A=0,h=Math.ceil;return typeof d=="number"&&(A=d|0,A<0?(c+=g*(_-1),_=h(-_/A)):_=h(_/A),g*=A),new S(this.data,_,g,c)},x.transpose=function(d){d=d===void 0?0:d|0;var _=this.shape,g=this.stride;return new S(this.data,_[d],g[d],this.offset)},x.pick=function(d){var _=[],g=[],c=this.offset;typeof d=="number"&&d>=0?c=c+this.stride[0]*d|0:(_.push(this.shape[0]),g.push(this.stride[0]));var A=y[_.length+1];return A(this.data,_,g,c)},function(d,_,g,c){return new S(d,_[0],g[0],c)}},2:function(M,y,k){function S(T,d,_,g,c,A){this.data=T,this.shape=[d,_],this.stride=[g,c],this.offset=A|0}var x=S.prototype;return x.dtype=M,x.dimension=2,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(x,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),x.set=function(d,_,g){return M==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*_,g):this.data[this.offset+this.stride[0]*d+this.stride[1]*_]=g},x.get=function(d,_){return M==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*_):this.data[this.offset+this.stride[0]*d+this.stride[1]*_]},x.index=function(d,_){return this.offset+this.stride[0]*d+this.stride[1]*_},x.hi=function(d,_){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof _!="number"||_<0?this.shape[1]:_|0,this.stride[0],this.stride[1],this.offset)},x.lo=function(d,_){var g=this.offset,c=0,A=this.shape[0],h=this.shape[1],R=this.stride[0],E=this.stride[1];return typeof d=="number"&&d>=0&&(c=d|0,g+=R*c,A-=c),typeof _=="number"&&_>=0&&(c=_|0,g+=E*c,h-=c),new S(this.data,A,h,R,E,g)},x.step=function(d,_){var g=this.shape[0],c=this.shape[1],A=this.stride[0],h=this.stride[1],R=this.offset,E=0,D=Math.ceil;return typeof d=="number"&&(E=d|0,E<0?(R+=A*(g-1),g=D(-g/E)):g=D(g/E),A*=E),typeof _=="number"&&(E=_|0,E<0?(R+=h*(c-1),c=D(-c/E)):c=D(c/E),h*=E),new S(this.data,g,c,A,h,R)},x.transpose=function(d,_){d=d===void 0?0:d|0,_=_===void 0?1:_|0;var g=this.shape,c=this.stride;return new S(this.data,g[d],g[_],c[d],c[_],this.offset)},x.pick=function(d,_){var g=[],c=[],A=this.offset;typeof d=="number"&&d>=0?A=A+this.stride[0]*d|0:(g.push(this.shape[0]),c.push(this.stride[0])),typeof _=="number"&&_>=0?A=A+this.stride[1]*_|0:(g.push(this.shape[1]),c.push(this.stride[1]));var h=y[g.length+1];return h(this.data,g,c,A)},function(d,_,g,c){return new S(d,_[0],_[1],g[0],g[1],c)}},3:function(M,y,k){function S(T,d,_,g,c,A,h,R){this.data=T,this.shape=[d,_,g],this.stride=[c,A,h],this.offset=R|0}var x=S.prototype;return x.dtype=M,x.dimension=3,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(x,"order",{get:function(){var d=Math.abs(this.stride[0]),_=Math.abs(this.stride[1]),g=Math.abs(this.stride[2]);return d>_?_>g?[2,1,0]:d>g?[1,2,0]:[1,0,2]:d>g?[2,0,1]:g>_?[0,1,2]:[0,2,1]}}),x.set=function(d,_,g,c){return M==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g,c):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g]=c},x.get=function(d,_,g){return M==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g]},x.index=function(d,_,g){return this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g},x.hi=function(d,_,g){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof _!="number"||_<0?this.shape[1]:_|0,typeof g!="number"||g<0?this.shape[2]:g|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},x.lo=function(d,_,g){var c=this.offset,A=0,h=this.shape[0],R=this.shape[1],E=this.shape[2],D=this.stride[0],N=this.stride[1],I=this.stride[2];return typeof d=="number"&&d>=0&&(A=d|0,c+=D*A,h-=A),typeof _=="number"&&_>=0&&(A=_|0,c+=N*A,R-=A),typeof g=="number"&&g>=0&&(A=g|0,c+=I*A,E-=A),new S(this.data,h,R,E,D,N,I,c)},x.step=function(d,_,g){var c=this.shape[0],A=this.shape[1],h=this.shape[2],R=this.stride[0],E=this.stride[1],D=this.stride[2],N=this.offset,I=0,F=Math.ceil;return typeof d=="number"&&(I=d|0,I<0?(N+=R*(c-1),c=F(-c/I)):c=F(c/I),R*=I),typeof _=="number"&&(I=_|0,I<0?(N+=E*(A-1),A=F(-A/I)):A=F(A/I),E*=I),typeof g=="number"&&(I=g|0,I<0?(N+=D*(h-1),h=F(-h/I)):h=F(h/I),D*=I),new S(this.data,c,A,h,R,E,D,N)},x.transpose=function(d,_,g){d=d===void 0?0:d|0,_=_===void 0?1:_|0,g=g===void 0?2:g|0;var c=this.shape,A=this.stride;return new S(this.data,c[d],c[_],c[g],A[d],A[_],A[g],this.offset)},x.pick=function(d,_,g){var c=[],A=[],h=this.offset;typeof d=="number"&&d>=0?h=h+this.stride[0]*d|0:(c.push(this.shape[0]),A.push(this.stride[0])),typeof _=="number"&&_>=0?h=h+this.stride[1]*_|0:(c.push(this.shape[1]),A.push(this.stride[1])),typeof g=="number"&&g>=0?h=h+this.stride[2]*g|0:(c.push(this.shape[2]),A.push(this.stride[2]));var R=y[c.length+1];return R(this.data,c,A,h)},function(d,_,g,c){return new S(d,_[0],_[1],_[2],g[0],g[1],g[2],c)}},4:function(M,y,k){function S(T,d,_,g,c,A,h,R,E,D){this.data=T,this.shape=[d,_,g,c],this.stride=[A,h,R,E],this.offset=D|0}var x=S.prototype;return x.dtype=M,x.dimension=4,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(x,"order",{get:k}),x.set=function(d,_,g,c,A){return M==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c,A):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c]=A},x.get=function(d,_,g,c){return M==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c]},x.index=function(d,_,g,c){return this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c},x.hi=function(d,_,g,c){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof _!="number"||_<0?this.shape[1]:_|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof c!="number"||c<0?this.shape[3]:c|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},x.lo=function(d,_,g,c){var A=this.offset,h=0,R=this.shape[0],E=this.shape[1],D=this.shape[2],N=this.shape[3],I=this.stride[0],F=this.stride[1],L=this.stride[2],P=this.stride[3];return typeof d=="number"&&d>=0&&(h=d|0,A+=I*h,R-=h),typeof _=="number"&&_>=0&&(h=_|0,A+=F*h,E-=h),typeof g=="number"&&g>=0&&(h=g|0,A+=L*h,D-=h),typeof c=="number"&&c>=0&&(h=c|0,A+=P*h,N-=h),new S(this.data,R,E,D,N,I,F,L,P,A)},x.step=function(d,_,g,c){var A=this.shape[0],h=this.shape[1],R=this.shape[2],E=this.shape[3],D=this.stride[0],N=this.stride[1],I=this.stride[2],F=this.stride[3],L=this.offset,P=0,O=Math.ceil;return typeof d=="number"&&(P=d|0,P<0?(L+=D*(A-1),A=O(-A/P)):A=O(A/P),D*=P),typeof _=="number"&&(P=_|0,P<0?(L+=N*(h-1),h=O(-h/P)):h=O(h/P),N*=P),typeof g=="number"&&(P=g|0,P<0?(L+=I*(R-1),R=O(-R/P)):R=O(R/P),I*=P),typeof c=="number"&&(P=c|0,P<0?(L+=F*(E-1),E=O(-E/P)):E=O(E/P),F*=P),new S(this.data,A,h,R,E,D,N,I,F,L)},x.transpose=function(d,_,g,c){d=d===void 0?0:d|0,_=_===void 0?1:_|0,g=g===void 0?2:g|0,c=c===void 0?3:c|0;var A=this.shape,h=this.stride;return new S(this.data,A[d],A[_],A[g],A[c],h[d],h[_],h[g],h[c],this.offset)},x.pick=function(d,_,g,c){var A=[],h=[],R=this.offset;typeof d=="number"&&d>=0?R=R+this.stride[0]*d|0:(A.push(this.shape[0]),h.push(this.stride[0])),typeof _=="number"&&_>=0?R=R+this.stride[1]*_|0:(A.push(this.shape[1]),h.push(this.stride[1])),typeof g=="number"&&g>=0?R=R+this.stride[2]*g|0:(A.push(this.shape[2]),h.push(this.stride[2])),typeof c=="number"&&c>=0?R=R+this.stride[3]*c|0:(A.push(this.shape[3]),h.push(this.stride[3]));var E=y[A.length+1];return E(this.data,A,h,R)},function(d,_,g,c){return new S(d,_[0],_[1],_[2],_[3],g[0],g[1],g[2],g[3],c)}},5:function(y,k,S){function x(d,_,g,c,A,h,R,E,D,N,I,F){this.data=d,this.shape=[_,g,c,A,h],this.stride=[R,E,D,N,I],this.offset=F|0}var T=x.prototype;return T.dtype=y,T.dimension=5,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(T,"order",{get:S}),T.set=function(_,g,c,A,h,R){return y==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h,R):this.data[this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h]=R},T.get=function(_,g,c,A,h){return y==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h):this.data[this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h]},T.index=function(_,g,c,A,h){return this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h},T.hi=function(_,g,c,A,h){return new x(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof g!="number"||g<0?this.shape[1]:g|0,typeof c!="number"||c<0?this.shape[2]:c|0,typeof A!="number"||A<0?this.shape[3]:A|0,typeof h!="number"||h<0?this.shape[4]:h|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},T.lo=function(_,g,c,A,h){var R=this.offset,E=0,D=this.shape[0],N=this.shape[1],I=this.shape[2],F=this.shape[3],L=this.shape[4],P=this.stride[0],O=this.stride[1],U=this.stride[2],X=this.stride[3],$=this.stride[4];return typeof _=="number"&&_>=0&&(E=_|0,R+=P*E,D-=E),typeof g=="number"&&g>=0&&(E=g|0,R+=O*E,N-=E),typeof c=="number"&&c>=0&&(E=c|0,R+=U*E,I-=E),typeof A=="number"&&A>=0&&(E=A|0,R+=X*E,F-=E),typeof h=="number"&&h>=0&&(E=h|0,R+=$*E,L-=E),new x(this.data,D,N,I,F,L,P,O,U,X,$,R)},T.step=function(_,g,c,A,h){var R=this.shape[0],E=this.shape[1],D=this.shape[2],N=this.shape[3],I=this.shape[4],F=this.stride[0],L=this.stride[1],P=this.stride[2],O=this.stride[3],U=this.stride[4],X=this.offset,$=0,j=Math.ceil;return typeof _=="number"&&($=_|0,$<0?(X+=F*(R-1),R=j(-R/$)):R=j(R/$),F*=$),typeof g=="number"&&($=g|0,$<0?(X+=L*(E-1),E=j(-E/$)):E=j(E/$),L*=$),typeof c=="number"&&($=c|0,$<0?(X+=P*(D-1),D=j(-D/$)):D=j(D/$),P*=$),typeof A=="number"&&($=A|0,$<0?(X+=O*(N-1),N=j(-N/$)):N=j(N/$),O*=$),typeof h=="number"&&($=h|0,$<0?(X+=U*(I-1),I=j(-I/$)):I=j(I/$),U*=$),new x(this.data,R,E,D,N,I,F,L,P,O,U,X)},T.transpose=function(_,g,c,A,h){_=_===void 0?0:_|0,g=g===void 0?1:g|0,c=c===void 0?2:c|0,A=A===void 0?3:A|0,h=h===void 0?4:h|0;var R=this.shape,E=this.stride;return new x(this.data,R[_],R[g],R[c],R[A],R[h],E[_],E[g],E[c],E[A],E[h],this.offset)},T.pick=function(_,g,c,A,h){var R=[],E=[],D=this.offset;typeof _=="number"&&_>=0?D=D+this.stride[0]*_|0:(R.push(this.shape[0]),E.push(this.stride[0])),typeof g=="number"&&g>=0?D=D+this.stride[1]*g|0:(R.push(this.shape[1]),E.push(this.stride[1])),typeof c=="number"&&c>=0?D=D+this.stride[2]*c|0:(R.push(this.shape[2]),E.push(this.stride[2])),typeof A=="number"&&A>=0?D=D+this.stride[3]*A|0:(R.push(this.shape[3]),E.push(this.stride[3])),typeof h=="number"&&h>=0?D=D+this.stride[4]*h|0:(R.push(this.shape[4]),E.push(this.stride[4]));var N=k[R.length+1];return N(this.data,R,E,D)},function(_,g,c,A){return new x(_,g[0],g[1],g[2],g[3],g[4],c[0],c[1],c[2],c[3],c[4],A)}}};function p(M,y){var k=y===-1?"T":String(y),S=v[k];return y===-1?S(M):y===0?S(M,m[M][0]):S(M,m[M],f)}function b(M){if(l(M))return"buffer";if(u)switch(Object.prototype.toString.call(M)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(M)?"array":"generic"}var m={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function w(M,y,k,S){if(M===void 0){var c=m.array[0];return c([])}else typeof M=="number"&&(M=[M]);y===void 0&&(y=[M.length]);var x=y.length;if(k===void 0){k=new Array(x);for(var T=x-1,d=1;T>=0;--T)k[T]=d,d*=y[T]}if(S===void 0){S=0;for(var T=0;T>>0;a.exports=f;function f(v,p){if(isNaN(v)||isNaN(p))return NaN;if(v===p)return v;if(v===0)return p<0?-u:u;var b=l.hi(v),m=l.lo(v);return p>v==v>0?m===s?(b+=1,m=0):m+=1:m===0?(m=s,b-=1):m-=1,l.pack(m,b)}},8406:function(a,o){var i=1e-6,l=1e-6;o.vertexNormals=function(u,s,f){for(var v=s.length,p=new Array(v),b=f===void 0?i:f,m=0;mb)for(var R=p[y],E=1/Math.sqrt(g*A),h=0;h<3;++h){var D=(h+1)%3,N=(h+2)%3;R[h]+=E*(c[D]*_[N]-c[N]*_[D])}}for(var m=0;mb)for(var E=1/Math.sqrt(I),h=0;h<3;++h)R[h]*=E;else for(var h=0;h<3;++h)R[h]=0}return p},o.faceNormals=function(u,s,f){for(var v=u.length,p=new Array(v),b=f===void 0?l:f,m=0;mb?T=1/Math.sqrt(T):T=0;for(var y=0;y<3;++y)x[y]*=T;p[m]=x}return p}},4081:function(a){"use strict";a.exports=o;function o(i,l,u,s,f,v,p,b,m,w){var M=l+v+w;if(y>0){var y=Math.sqrt(M+1);i[0]=.5*(p-m)/y,i[1]=.5*(b-s)/y,i[2]=.5*(u-v)/y,i[3]=.5*y}else{var k=Math.max(l,v,w),y=Math.sqrt(2*k-M+1);l>=k?(i[0]=.5*y,i[1]=.5*(f+u)/y,i[2]=.5*(b+s)/y,i[3]=.5*(p-m)/y):v>=k?(i[0]=.5*(u+f)/y,i[1]=.5*y,i[2]=.5*(m+p)/y,i[3]=.5*(b-s)/y):(i[0]=.5*(s+b)/y,i[1]=.5*(p+m)/y,i[2]=.5*y,i[3]=.5*(u-f)/y)}return i}},9977:function(a,o,i){"use strict";a.exports=y;var l=i(9215),u=i(6582),s=i(7399),f=i(7608),v=i(4081);function p(k,S,x){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2))}function b(k,S,x,T){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2)+Math.pow(T,2))}function m(k,S){var x=S[0],T=S[1],d=S[2],_=S[3],g=b(x,T,d,_);g>1e-6?(k[0]=x/g,k[1]=T/g,k[2]=d/g,k[3]=_/g):(k[0]=k[1]=k[2]=0,k[3]=1)}function w(k,S,x){this.radius=l([x]),this.center=l(S),this.rotation=l(k),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var M=w.prototype;M.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},M.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var S=this.computedRotation;m(S,S);var x=this.computedMatrix;s(x,S);var T=this.computedCenter,d=this.computedEye,_=this.computedUp,g=Math.exp(this.computedRadius[0]);d[0]=T[0]+g*x[2],d[1]=T[1]+g*x[6],d[2]=T[2]+g*x[10],_[0]=x[1],_[1]=x[5],_[2]=x[9];for(var c=0;c<3;++c){for(var A=0,h=0;h<3;++h)A+=x[c+4*h]*d[h];x[12+c]=-A}},M.getMatrix=function(k,S){this.recalcMatrix(k);var x=this.computedMatrix;if(S){for(var T=0;T<16;++T)S[T]=x[T];return S}return x},M.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},M.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},M.pan=function(k,S,x,T){S=S||0,x=x||0,T=T||0,this.recalcMatrix(k);var d=this.computedMatrix,_=d[1],g=d[5],c=d[9],A=p(_,g,c);_/=A,g/=A,c/=A;var h=d[0],R=d[4],E=d[8],D=h*_+R*g+E*c;h-=_*D,R-=g*D,E-=c*D;var N=p(h,R,E);h/=N,R/=N,E/=N;var I=d[2],F=d[6],L=d[10],P=I*_+F*g+L*c,O=I*h+F*R+L*E;I-=P*_+O*h,F-=P*g+O*R,L-=P*c+O*E;var U=p(I,F,L);I/=U,F/=U,L/=U;var X=h*S+_*x,$=R*S+g*x,j=E*S+c*x;this.center.move(k,X,$,j);var Y=Math.exp(this.computedRadius[0]);Y=Math.max(1e-4,Y+T),this.radius.set(k,Math.log(Y))},M.rotate=function(k,S,x,T){this.recalcMatrix(k),S=S||0,x=x||0;var d=this.computedMatrix,_=d[0],g=d[4],c=d[8],A=d[1],h=d[5],R=d[9],E=d[2],D=d[6],N=d[10],I=S*_+x*A,F=S*g+x*h,L=S*c+x*R,P=-(D*L-N*F),O=-(N*I-E*L),U=-(E*F-D*I),X=Math.sqrt(Math.max(0,1-Math.pow(P,2)-Math.pow(O,2)-Math.pow(U,2))),$=b(P,O,U,X);$>1e-6?(P/=$,O/=$,U/=$,X/=$):(P=O=U=0,X=1);var j=this.computedRotation,Y=j[0],q=j[1],K=j[2],ne=j[3],Q=Y*X+ne*P+q*U-K*O,ie=q*X+ne*O+K*P-Y*U,ee=K*X+ne*U+Y*O-q*P,V=ne*X-Y*P-q*O-K*U;if(T){P=E,O=D,U=N;var re=Math.sin(T)/p(P,O,U);P*=re,O*=re,U*=re,X=Math.cos(S),Q=Q*X+V*P+ie*U-ee*O,ie=ie*X+V*O+ee*P-Q*U,ee=ee*X+V*U+Q*O-ie*P,V=V*X-Q*P-ie*O-ee*U}var H=b(Q,ie,ee,V);H>1e-6?(Q/=H,ie/=H,ee/=H,V/=H):(Q=ie=ee=0,V=1),this.rotation.set(k,Q,ie,ee,V)},M.lookAt=function(k,S,x,T){this.recalcMatrix(k),x=x||this.computedCenter,S=S||this.computedEye,T=T||this.computedUp;var d=this.computedMatrix;u(d,S,x,T);var _=this.computedRotation;v(_,d[0],d[1],d[2],d[4],d[5],d[6],d[8],d[9],d[10]),m(_,_),this.rotation.set(k,_[0],_[1],_[2],_[3]);for(var g=0,c=0;c<3;++c)g+=Math.pow(x[c]-S[c],2);this.radius.set(k,.5*Math.log(Math.max(g,1e-6))),this.center.set(k,x[0],x[1],x[2])},M.translate=function(k,S,x,T){this.center.move(k,S||0,x||0,T||0)},M.setMatrix=function(k,S){var x=this.computedRotation;v(x,S[0],S[1],S[2],S[4],S[5],S[6],S[8],S[9],S[10]),m(x,x),this.rotation.set(k,x[0],x[1],x[2],x[3]);var T=this.computedMatrix;f(T,S);var d=T[15];if(Math.abs(d)>1e-6){var _=T[12]/d,g=T[13]/d,c=T[14]/d;this.recalcMatrix(k);var A=Math.exp(this.computedRadius[0]);this.center.set(k,_-T[2]*A,g-T[6]*A,c-T[10]*A),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},M.setDistance=function(k,S){S>0&&this.radius.set(k,Math.log(S))},M.setDistanceLimits=function(k,S){k>0?k=Math.log(k):k=-1/0,S>0?S=Math.log(S):S=1/0,S=Math.max(S,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=S},M.getDistanceLimits=function(k){var S=this.radius.bounds;return k?(k[0]=Math.exp(S[0][0]),k[1]=Math.exp(S[1][0]),k):[Math.exp(S[0][0]),Math.exp(S[1][0])]},M.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},M.fromJSON=function(k){var S=this.lastT(),x=k.center;x&&this.center.set(S,x[0],x[1],x[2]);var T=k.rotation;T&&this.rotation.set(S,T[0],T[1],T[2],T[3]);var d=k.distance;d&&d>0&&this.radius.set(S,Math.log(d)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function y(k){k=k||{};var S=k.center||[0,0,0],x=k.rotation||[0,0,0,1],T=k.radius||1;S=[].slice.call(S,0,3),x=[].slice.call(x,0,4),m(x,x);var d=new w(x,S,Math.log(T));return d.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&d.lookAt(0,k.eye,k.center,k.up),d}},1371:function(a,o,i){"use strict";var l=i(3233);a.exports=function(s,f,v){return v=typeof v!="undefined"?v+"":" ",l(v,f)+s}},3202:function(a){a.exports=function(i,l){l||(l=[0,""]),i=String(i);var u=parseFloat(i,10);return l[0]=u,l[1]=i.match(/[\d.\-\+]*\s*(.*)/)[1]||"",l}},3088:function(a,o,i){"use strict";a.exports=u;var l=i(3140);function u(s,f){for(var v=f.length|0,p=s.length,b=[new Array(v),new Array(v)],m=0;m0){R=b[N][A][0],D=N;break}E=R[D^1];for(var I=0;I<2;++I)for(var F=b[I][A],L=0;L0&&(R=P,E=O,D=I)}return h||R&&y(R,D),E}function S(c,A){var h=b[A][c][0],R=[c];y(h,A);for(var E=h[A^1],D=A;;){for(;E!==c;)R.push(E),E=k(R[R.length-2],E,!1);if(b[0][c].length+b[1][c].length===0)break;var N=R[R.length-1],I=c,F=R[1],L=k(N,I,!0);if(l(f[N],f[I],f[F],f[L])<0)break;R.push(c),E=k(N,I)}return R}function x(c,A){return A[1]===A[A.length-1]}for(var m=0;m0;){var _=b[0][m].length,g=S(m,T);x(d,g)?d.push.apply(d,g):(d.length>0&&M.push(d),d=g)}d.length>0&&M.push(d)}return M}},5609:function(a,o,i){"use strict";a.exports=u;var l=i(3134);function u(s,f){for(var v=l(s,f.length),p=new Array(f.length),b=new Array(f.length),m=[],w=0;w0;){var y=m.pop();p[y]=!1;for(var k=v[y],w=0;w0}_=_.filter(g);for(var c=_.length,A=new Array(c),h=new Array(c),d=0;d0;){var H=ee.pop(),te=$[H];p(te,function(ve,Te){return ve-Te});var ue=te.length,de=V[H],ke;if(de===0){var F=_[H];ke=[F]}for(var d=0;d=0)&&(V[Ae]=de^1,ee.push(Ae),de===0)){var F=_[Ae];ie(F)||(F.reverse(),ke.push(F))}}de===0&&re.push(ke)}return re}},5085:function(a,o,i){a.exports=k;var l=i(3250)[3],u=i(4209),s=i(3352),f=i(2478);function v(){return!0}function p(S){return function(x,T){var d=S[x];return d?!!d.queryPoint(T,v):!1}}function b(S){for(var x={},T=0;T0&&x[d]===T[0])_=S[d-1];else return 1;for(var g=1;_;){var c=_.key,A=l(T,c[0],c[1]);if(c[0][0]0)g=-1,_=_.right;else return 0;else if(A>0)_=_.left;else if(A<0)g=1,_=_.right;else return 0}return g}}function w(S){return 1}function M(S){return function(T){return S(T[0],T[1])?0:1}}function y(S,x){return function(d){return S(d[0],d[1])?0:x(d)}}function k(S){for(var x=S.length,T=[],d=[],_=0,g=0;g=w?(c=1,h=w+2*k+x):(c=-k/w,h=k*c+x)):(c=0,S>=0?(A=0,h=x):-S>=y?(A=1,h=y+2*S+x):(A=-S/y,h=S*A+x));else if(A<0)A=0,k>=0?(c=0,h=x):-k>=w?(c=1,h=w+2*k+x):(c=-k/w,h=k*c+x);else{var R=1/g;c*=R,A*=R,h=c*(w*c+M*A+2*k)+A*(M*c+y*A+2*S)+x}else{var E,D,N,I;c<0?(E=M+k,D=y+S,D>E?(N=D-E,I=w-2*M+y,N>=I?(c=1,A=0,h=w+2*k+x):(c=N/I,A=1-c,h=c*(w*c+M*A+2*k)+A*(M*c+y*A+2*S)+x)):(c=0,D<=0?(A=1,h=y+2*S+x):S>=0?(A=0,h=x):(A=-S/y,h=S*A+x))):A<0?(E=M+S,D=w+k,D>E?(N=D-E,I=w-2*M+y,N>=I?(A=1,c=0,h=y+2*S+x):(A=N/I,c=1-A,h=c*(w*c+M*A+2*k)+A*(M*c+y*A+2*S)+x)):(A=0,D<=0?(c=1,h=w+2*k+x):k>=0?(c=0,h=x):(c=-k/w,h=k*c+x))):(N=y+S-M-k,N<=0?(c=0,A=1,h=y+2*S+x):(I=w-2*M+y,N>=I?(c=1,A=0,h=w+2*k+x):(c=N/I,A=1-c,h=c*(w*c+M*A+2*k)+A*(M*c+y*A+2*S)+x)))}for(var F=1-c-A,m=0;m0){var y=v[b-1];if(l(w,y)===0&&s(y)!==M){b-=1;continue}}v[b++]=w}}return v.length=b,v}},3233:function(a){"use strict";var o="",i;a.exports=l;function l(u,s){if(typeof u!="string")throw new TypeError("expected a string");if(s===1)return u;if(s===2)return u+u;var f=u.length*s;if(i!==u||typeof i=="undefined")i=u,o="";else if(o.length>=f)return o.substr(0,f);for(;f>o.length&&s>1;)s&1&&(o+=u),s>>=1,u+=u;return o+=u,o=o.substr(0,f),o}},3025:function(a,o,i){a.exports=i.g.performance&&i.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(a){"use strict";a.exports=o;function o(i){for(var l=i.length,u=i[i.length-1],s=l,f=l-2;f>=0;--f){var v=u,p=i[f];u=v+p;var b=u-v,m=p-b;m&&(i[--s]=u,u=m)}for(var w=0,f=s;f0){if(D<=0)return N;I=E+D}else if(E<0){if(D>=0)return N;I=-(E+D)}else return N;var F=b*I;return N>=F||N<=-F?N:S(A,h,R)},function(A,h,R,E){var D=A[0]-E[0],N=h[0]-E[0],I=R[0]-E[0],F=A[1]-E[1],L=h[1]-E[1],P=R[1]-E[1],O=A[2]-E[2],U=h[2]-E[2],X=R[2]-E[2],$=N*P,j=I*L,Y=I*F,q=D*P,K=D*L,ne=N*F,Q=O*($-j)+U*(Y-q)+X*(K-ne),ie=(Math.abs($)+Math.abs(j))*Math.abs(O)+(Math.abs(Y)+Math.abs(q))*Math.abs(U)+(Math.abs(K)+Math.abs(ne))*Math.abs(X),ee=m*ie;return Q>ee||-Q>ee?Q:x(A,h,R,E)}];function d(c){var A=T[c.length];return A||(A=T[c.length]=k(c.length)),A.apply(void 0,c)}function _(c,A,h,R,E,D,N){return function(F,L,P,O,U){switch(arguments.length){case 0:case 1:return 0;case 2:return R(F,L);case 3:return E(F,L,P);case 4:return D(F,L,P,O);case 5:return N(F,L,P,O,U)}for(var X=new Array(arguments.length),$=0;$0&&w>0||m<0&&w<0)return!1;var M=l(p,f,v),y=l(b,f,v);return M>0&&y>0||M<0&&y<0?!1:m===0&&w===0&&M===0&&y===0?u(f,v,p,b):!0}},8545:function(a){"use strict";a.exports=i;function o(l,u){var s=l+u,f=s-l,v=s-f,p=u-f,b=l-v,m=b+p;return m?[m,s]:[s]}function i(l,u){var s=l.length|0,f=u.length|0;if(s===1&&f===1)return o(l[0],-u[0]);var v=s+f,p=new Array(v),b=0,m=0,w=0,M=Math.abs,y=l[m],k=M(y),S=-u[w],x=M(S),T,d;k=f?(T=y,m+=1,m=f?(T=y,m+=1,m>1,S=v[2*k+1];if(S===w)return k;w>1,S=v[2*k+1];if(S===w)return k;w>1,S=v[2*k+1];if(S===w)return k;w>1,S=v[2*k+1];if(S===w)return k;w>1,I=b(A[N],h);I<=0?(I===0&&(D=N),R=N+1):I>0&&(E=N-1)}return D}l=y;function k(A,h){for(var R=new Array(A.length),E=0,D=R.length;E=A.length||b(A[$],N)!==0););}return R}l=k;function S(A,h){if(!h)return k(M(T(A,0)),A,0);for(var R=new Array(h),E=0;E>>P&1&&L.push(D[P]);h.push(L)}return w(h)}l=x;function T(A,h){if(h<0)return[];for(var R=[],E=(1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,v=(s>255)<<3,s>>>=v,f|=v,v=(s>15)<<2,s>>>=v,f|=v,v=(s>3)<<1,s>>>=v,f|=v,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var v=f,p=f,b=7;for(v>>>=1;v;v>>>=1)p<<=1,p|=v&1,--b;s[f]=p<>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,v){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,v&=1023,v=(v|v<<16)&4278190335,v=(v|v<<8)&251719695,v=(v|v<<4)&3272356035,v=(v|v<<2)&1227133513,s|v<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},2014:function(a,o,i){"use strict";"use restrict";var l=i(3105),u=i(4623);function s(c){for(var A=0,h=Math.max,R=0,E=c.length;R>1,N=p(c[D],A);N<=0?(N===0&&(E=D),h=D+1):N>0&&(R=D-1)}return E}o.findCell=M;function y(c,A){for(var h=new Array(c.length),R=0,E=h.length;R=c.length||p(c[X],D)!==0););}return h}o.incidence=y;function k(c,A){if(!A)return y(w(x(c,0)),c,0);for(var h=new Array(A),R=0;R>>L&1&&F.push(E[L]);A.push(F)}return m(A)}o.explode=S;function x(c,A){if(A<0)return[];for(var h=[],R=(1<>1:(q>>1)-1}function R(q){for(var K=A(q);;){var ne=K,Q=2*q+1,ie=2*(q+1),ee=q;if(Q0;){var ne=h(q);if(ne>=0){var Q=A(ne);if(K0){var q=F[0];return c(0,O-1),O-=1,R(0),q}return-1}function N(q,K){var ne=F[q];return k[ne]===K?q:(k[ne]=-1/0,E(q),D(),k[ne]=K,O+=1,E(O-1))}function I(q){if(!S[q]){S[q]=!0;var K=M[q],ne=y[q];M[ne]>=0&&(M[ne]=K),y[K]>=0&&(y[K]=ne),L[K]>=0&&N(L[K],g(K)),L[ne]>=0&&N(L[ne],g(ne))}}for(var F=[],L=new Array(m),x=0;x>1;x>=0;--x)R(x);for(;;){var U=D();if(U<0||k[U]>b)break;I(U)}for(var X=[],x=0;x=0&&ne>=0&&K!==ne){var Q=L[K],ie=L[ne];Q!==ie&&Y.push([Q,ie])}}),u.unique(u.normalize(Y)),{positions:X,edges:Y}}},1303:function(a,o,i){"use strict";a.exports=s;var l=i(3250);function u(f,v){var p,b;if(v[0][0]v[1][0])p=v[1],b=v[0];else{var m=Math.min(f[0][1],f[1][1]),w=Math.max(f[0][1],f[1][1]),M=Math.min(v[0][1],v[1][1]),y=Math.max(v[0][1],v[1][1]);return wy?m-y:w-y}var k,S;f[0][1]v[1][0])p=v[1],b=v[0];else return u(v,f);var m,w;if(f[0][0]f[1][0])m=f[1],w=f[0];else return-u(f,v);var M=l(p,b,w),y=l(p,b,m);if(M<0){if(y<=0)return M}else if(M>0){if(y>=0)return M}else if(y)return y;if(M=l(w,m,b),y=l(w,m,p),M<0){if(y<=0)return M}else if(M>0){if(y>=0)return M}else if(y)return y;return b[0]-w[0]}},4209:function(a,o,i){"use strict";a.exports=y;var l=i(2478),u=i(3840),s=i(3250),f=i(1303);function v(k,S,x){this.slabs=k,this.coordinates=S,this.horizontal=x}var p=v.prototype;function b(k,S){return k.y-S}function m(k,S){for(var x=null;k;){var T=k.key,d,_;T[0][0]0)if(S[0]!==T[1][0])x=k,k=k.right;else{var c=m(k.right,S);if(c)return c;k=k.left}else{if(S[0]!==T[1][0])return k;var c=m(k.right,S);if(c)return c;k=k.left}}return x}p.castUp=function(k){var S=l.le(this.coordinates,k[0]);if(S<0)return-1;var x=this.slabs[S],T=m(this.slabs[S],k),d=-1;if(T&&(d=T.value),this.coordinates[S]===k[0]){var _=null;if(T&&(_=T.key),S>0){var g=m(this.slabs[S-1],k);g&&(_?f(g.key,_)>0&&(_=g.key,d=g.value):(d=g.value,_=g.key))}var c=this.horizontal[S];if(c.length>0){var A=l.ge(c,k[1],b);if(A=c.length)return d;h=c[A]}}if(h.start)if(_){var R=s(_[0],_[1],[k[0],h.y]);_[0][0]>_[1][0]&&(R=-R),R>0&&(d=h.index)}else d=h.index;else h.y!==k[1]&&(d=h.index)}}}return d};function w(k,S,x,T){this.y=k,this.index=S,this.start=x,this.closed=T}function M(k,S,x,T){this.x=k,this.segment=S,this.create=x,this.index=T}function y(k){for(var S=k.length,x=2*S,T=new Array(x),d=0;d1&&(S=1);for(var x=1-S,T=m.length,d=new Array(T),_=0;_0||k>0&&d<0){var _=f(S,d,x,k);M.push(_),y.push(_.slice())}d<0?y.push(x.slice()):d>0?M.push(x.slice()):(M.push(x.slice()),y.push(x.slice())),k=d}return{positive:M,negative:y}}function p(m,w){for(var M=[],y=s(m[m.length-1],w),k=m[m.length-1],S=m[0],x=0;x0||y>0&&T<0)&&M.push(f(k,T,S,y)),T>=0&&M.push(S.slice()),y=T}return M}function b(m,w){for(var M=[],y=s(m[m.length-1],w),k=m[m.length-1],S=m[0],x=0;x0||y>0&&T<0)&&M.push(f(k,T,S,y)),T<=0&&M.push(S.slice()),y=T}return M}},3387:function(a,o,i){var l;(function(){"use strict";var u={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function s(m){return v(b(m),arguments)}function f(m,w){return s.apply(null,[m].concat(w||[]))}function v(m,w){var M=1,y=m.length,k,S="",x,T,d,_,g,c,A,h;for(x=0;x=0),d.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,d.width?parseInt(d.width):0);break;case"e":k=d.precision?parseFloat(k).toExponential(d.precision):parseFloat(k).toExponential();break;case"f":k=d.precision?parseFloat(k).toFixed(d.precision):parseFloat(k);break;case"g":k=d.precision?String(Number(k.toPrecision(d.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=d.precision?k.substring(0,d.precision):k;break;case"t":k=String(!!k),k=d.precision?k.substring(0,d.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=d.precision?k.substring(0,d.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=d.precision?k.substring(0,d.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}u.json.test(d.type)?S+=k:(u.number.test(d.type)&&(!A||d.sign)?(h=A?"+":"-",k=k.toString().replace(u.sign,"")):h="",g=d.pad_char?d.pad_char==="0"?"0":d.pad_char.charAt(1):" ",c=d.width-(h+k).length,_=d.width&&c>0?g.repeat(c):"",S+=d.align?h+k+_:g==="0"?h+_+k:_+h+k)}return S}var p=Object.create(null);function b(m){if(p[m])return p[m];for(var w=m,M,y=[],k=0;w;){if((M=u.text.exec(w))!==null)y.push(M[0]);else if((M=u.modulo.exec(w))!==null)y.push("%");else if((M=u.placeholder.exec(w))!==null){if(M[2]){k|=1;var S=[],x=M[2],T=[];if((T=u.key.exec(x))!==null)for(S.push(T[1]);(x=x.substring(T[0].length))!=="";)if((T=u.key_access.exec(x))!==null)S.push(T[1]);else if((T=u.index_access.exec(x))!==null)S.push(T[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");M[2]=S}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");y.push({placeholder:M[0],param_no:M[1],keys:M[2],sign:M[3],pad_char:M[4],align:M[5],width:M[6],precision:M[7],type:M[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");w=w.substring(M[0].length)}return p[m]=y}o.sprintf=s,o.vsprintf=f,typeof window!="undefined"&&(window.sprintf=s,window.vsprintf=f,l=function(){return{sprintf:s,vsprintf:f}}.call(o,i,o,a),l!==void 0&&(a.exports=l))})()},3711:function(a,o,i){"use strict";a.exports=b;var l=i(2640),u=i(781),s={"2d":function(m,w,M){var y=m({order:w,scalarArguments:3,getters:M==="generic"?[0]:void 0,phase:function(S,x,T,d){return S>d|0},vertex:function(S,x,T,d,_,g,c,A,h,R,E,D,N){var I=(c<<0)+(A<<1)+(h<<2)+(R<<3)|0;if(!(I===0||I===15))switch(I){case 0:E.push([S-.5,x-.5]);break;case 1:E.push([S-.25-.25*(d+T-2*N)/(T-d),x-.25-.25*(_+T-2*N)/(T-_)]);break;case 2:E.push([S-.75-.25*(-d-T+2*N)/(d-T),x-.25-.25*(g+d-2*N)/(d-g)]);break;case 3:E.push([S-.5,x-.5-.5*(_+T+g+d-4*N)/(T-_+d-g)]);break;case 4:E.push([S-.25-.25*(g+_-2*N)/(_-g),x-.75-.25*(-_-T+2*N)/(_-T)]);break;case 5:E.push([S-.5-.5*(d+T+g+_-4*N)/(T-d+_-g),x-.5]);break;case 6:E.push([S-.5-.25*(-d-T+g+_)/(d-T+_-g),x-.5-.25*(-_-T+g+d)/(_-T+d-g)]);break;case 7:E.push([S-.75-.25*(g+_-2*N)/(_-g),x-.75-.25*(g+d-2*N)/(d-g)]);break;case 8:E.push([S-.75-.25*(-g-_+2*N)/(g-_),x-.75-.25*(-g-d+2*N)/(g-d)]);break;case 9:E.push([S-.5-.25*(d+T+-g-_)/(T-d+g-_),x-.5-.25*(_+T+-g-d)/(T-_+g-d)]);break;case 10:E.push([S-.5-.5*(-d-T+-g-_+4*N)/(d-T+g-_),x-.5]);break;case 11:E.push([S-.25-.25*(-g-_+2*N)/(g-_),x-.75-.25*(_+T-2*N)/(T-_)]);break;case 12:E.push([S-.5,x-.5-.5*(-_-T+-g-d+4*N)/(_-T+g-d)]);break;case 13:E.push([S-.75-.25*(d+T-2*N)/(T-d),x-.25-.25*(-g-d+2*N)/(g-d)]);break;case 14:E.push([S-.25-.25*(-d-T+2*N)/(d-T),x-.25-.25*(-_-T+2*N)/(_-T)]);break;case 15:E.push([S-.5,x-.5]);break}},cell:function(S,x,T,d,_,g,c,A,h){_?A.push([S,x]):A.push([x,S])}});return function(k,S){var x=[],T=[];return y(k,x,T,S),{positions:x,cells:T}}}};function f(m,w){var M=m.length+"d",y=s[M];if(y)return y(l,m,w)}function v(m,w){for(var M=u(m,w),y=M.length,k=new Array(y),S=new Array(y),x=0;xMath.max(d,_)?g[2]=1:d>Math.max(T,_)?g[0]=1:g[1]=1;for(var c=0,A=0,h=0;h<3;++h)c+=x[h]*x[h],A+=g[h]*x[h];for(var h=0;h<3;++h)g[h]-=A/c*x[h];return v(g,g),g}function M(x,T,d,_,g,c,A,h){this.center=l(d),this.up=l(_),this.right=l(g),this.radius=l([c]),this.angle=l([A,h]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(x,T),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var R=0;R<16;++R)this.computedMatrix[R]=.5;this.recalcMatrix(0)}var y=M.prototype;y.setDistanceLimits=function(x,T){x>0?x=Math.log(x):x=-1/0,T>0?T=Math.log(T):T=1/0,T=Math.max(T,x),this.radius.bounds[0][0]=x,this.radius.bounds[1][0]=T},y.getDistanceLimits=function(x){var T=this.radius.bounds[0];return x?(x[0]=Math.exp(T[0][0]),x[1]=Math.exp(T[1][0]),x):[Math.exp(T[0][0]),Math.exp(T[1][0])]},y.recalcMatrix=function(x){this.center.curve(x),this.up.curve(x),this.right.curve(x),this.radius.curve(x),this.angle.curve(x);for(var T=this.computedUp,d=this.computedRight,_=0,g=0,c=0;c<3;++c)g+=T[c]*d[c],_+=T[c]*T[c];for(var A=Math.sqrt(_),h=0,c=0;c<3;++c)d[c]-=T[c]*g/_,h+=d[c]*d[c],T[c]/=A;for(var R=Math.sqrt(h),c=0;c<3;++c)d[c]/=R;var E=this.computedToward;f(E,T,d),v(E,E);for(var D=Math.exp(this.computedRadius[0]),N=this.computedAngle[0],I=this.computedAngle[1],F=Math.cos(N),L=Math.sin(N),P=Math.cos(I),O=Math.sin(I),U=this.computedCenter,X=F*P,$=L*P,j=O,Y=-F*O,q=-L*O,K=P,ne=this.computedEye,Q=this.computedMatrix,c=0;c<3;++c){var ie=X*d[c]+$*E[c]+j*T[c];Q[4*c+1]=Y*d[c]+q*E[c]+K*T[c],Q[4*c+2]=ie,Q[4*c+3]=0}var ee=Q[1],V=Q[5],re=Q[9],H=Q[2],te=Q[6],ue=Q[10],de=V*ue-re*te,ke=re*H-ee*ue,Ae=ee*te-V*H,ve=b(de,ke,Ae);de/=ve,ke/=ve,Ae/=ve,Q[0]=de,Q[4]=ke,Q[8]=Ae;for(var c=0;c<3;++c)ne[c]=U[c]+Q[2+4*c]*D;for(var c=0;c<3;++c){for(var h=0,Te=0;Te<3;++Te)h+=Q[c+4*Te]*ne[Te];Q[12+c]=-h}Q[15]=1},y.getMatrix=function(x,T){this.recalcMatrix(x);var d=this.computedMatrix;if(T){for(var _=0;_<16;++_)T[_]=d[_];return T}return d};var k=[0,0,0];y.rotate=function(x,T,d,_){if(this.angle.move(x,T,d),_){this.recalcMatrix(x);var g=this.computedMatrix;k[0]=g[2],k[1]=g[6],k[2]=g[10];for(var c=this.computedUp,A=this.computedRight,h=this.computedToward,R=0;R<3;++R)g[4*R]=c[R],g[4*R+1]=A[R],g[4*R+2]=h[R];s(g,g,_,k);for(var R=0;R<3;++R)c[R]=g[4*R],A[R]=g[4*R+1];this.up.set(x,c[0],c[1],c[2]),this.right.set(x,A[0],A[1],A[2])}},y.pan=function(x,T,d,_){T=T||0,d=d||0,_=_||0,this.recalcMatrix(x);var g=this.computedMatrix,c=Math.exp(this.computedRadius[0]),A=g[1],h=g[5],R=g[9],E=b(A,h,R);A/=E,h/=E,R/=E;var D=g[0],N=g[4],I=g[8],F=D*A+N*h+I*R;D-=A*F,N-=h*F,I-=R*F;var L=b(D,N,I);D/=L,N/=L,I/=L;var P=D*T+A*d,O=N*T+h*d,U=I*T+R*d;this.center.move(x,P,O,U);var X=Math.exp(this.computedRadius[0]);X=Math.max(1e-4,X+_),this.radius.set(x,Math.log(X))},y.translate=function(x,T,d,_){this.center.move(x,T||0,d||0,_||0)},y.setMatrix=function(x,T,d,_){var g=1;typeof d=="number"&&(g=d|0),(g<0||g>3)&&(g=1);var c=(g+2)%3,A=(g+1)%3;T||(this.recalcMatrix(x),T=this.computedMatrix);var h=T[g],R=T[g+4],E=T[g+8];if(_){var N=Math.abs(h),I=Math.abs(R),F=Math.abs(E),L=Math.max(N,I,F);N===L?(h=h<0?-1:1,R=E=0):F===L?(E=E<0?-1:1,h=R=0):(R=R<0?-1:1,h=E=0)}else{var D=b(h,R,E);h/=D,R/=D,E/=D}var P=T[c],O=T[c+4],U=T[c+8],X=P*h+O*R+U*E;P-=h*X,O-=R*X,U-=E*X;var $=b(P,O,U);P/=$,O/=$,U/=$;var j=R*U-E*O,Y=E*P-h*U,q=h*O-R*P,K=b(j,Y,q);j/=K,Y/=K,q/=K,this.center.jump(x,Be,ge,we),this.radius.idle(x),this.up.jump(x,h,R,E),this.right.jump(x,P,O,U);var ne,Q;if(g===2){var ie=T[1],ee=T[5],V=T[9],re=ie*P+ee*O+V*U,H=ie*j+ee*Y+V*q;ke<0?ne=-Math.PI/2:ne=Math.PI/2,Q=Math.atan2(H,re)}else{var te=T[2],ue=T[6],de=T[10],ke=te*h+ue*R+de*E,Ae=te*P+ue*O+de*U,ve=te*j+ue*Y+de*q;ne=Math.asin(m(ke)),Q=Math.atan2(ve,Ae)}this.angle.jump(x,Q,ne),this.recalcMatrix(x);var Te=T[2],Ee=T[6],Pe=T[10],Se=this.computedMatrix;u(Se,T);var Ne=Se[15],Be=Se[12]/Ne,ge=Se[13]/Ne,we=Se[14]/Ne,Me=Math.exp(this.computedRadius[0]);this.center.jump(x,Be-Te*Me,ge-Ee*Me,we-Pe*Me)},y.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},y.idle=function(x){this.center.idle(x),this.up.idle(x),this.right.idle(x),this.radius.idle(x),this.angle.idle(x)},y.flush=function(x){this.center.flush(x),this.up.flush(x),this.right.flush(x),this.radius.flush(x),this.angle.flush(x)},y.setDistance=function(x,T){T>0&&this.radius.set(x,Math.log(T))},y.lookAt=function(x,T,d,_){this.recalcMatrix(x),T=T||this.computedEye,d=d||this.computedCenter,_=_||this.computedUp;var g=_[0],c=_[1],A=_[2],h=b(g,c,A);if(!(h<1e-6)){g/=h,c/=h,A/=h;var R=T[0]-d[0],E=T[1]-d[1],D=T[2]-d[2],N=b(R,E,D);if(!(N<1e-6)){R/=N,E/=N,D/=N;var I=this.computedRight,F=I[0],L=I[1],P=I[2],O=g*F+c*L+A*P;F-=O*g,L-=O*c,P-=O*A;var U=b(F,L,P);if(!(U<.01&&(F=c*D-A*E,L=A*R-g*D,P=g*E-c*R,U=b(F,L,P),U<1e-6))){F/=U,L/=U,P/=U,this.up.set(x,g,c,A),this.right.set(x,F,L,P),this.center.set(x,d[0],d[1],d[2]),this.radius.set(x,Math.log(N));var X=c*P-A*L,$=A*F-g*P,j=g*L-c*F,Y=b(X,$,j);X/=Y,$/=Y,j/=Y;var q=g*R+c*E+A*D,K=F*R+L*E+P*D,ne=X*R+$*E+j*D,Q=Math.asin(m(q)),ie=Math.atan2(ne,K),ee=this.angle._state,V=ee[ee.length-1],re=ee[ee.length-2];V=V%(2*Math.PI);var H=Math.abs(V+2*Math.PI-ie),te=Math.abs(V-ie),ue=Math.abs(V-2*Math.PI-ie);H0?P.pop():new ArrayBuffer(F)}o.mallocArrayBuffer=k;function S(I){return new Uint8Array(k(I),0,I)}o.mallocUint8=S;function x(I){return new Uint16Array(k(2*I),0,I)}o.mallocUint16=x;function T(I){return new Uint32Array(k(4*I),0,I)}o.mallocUint32=T;function d(I){return new Int8Array(k(I),0,I)}o.mallocInt8=d;function _(I){return new Int16Array(k(2*I),0,I)}o.mallocInt16=_;function g(I){return new Int32Array(k(4*I),0,I)}o.mallocInt32=g;function c(I){return new Float32Array(k(4*I),0,I)}o.mallocFloat32=o.mallocFloat=c;function A(I){return new Float64Array(k(8*I),0,I)}o.mallocFloat64=o.mallocDouble=A;function h(I){return f?new Uint8ClampedArray(k(I),0,I):S(I)}o.mallocUint8Clamped=h;function R(I){return v?new BigUint64Array(k(8*I),0,I):null}o.mallocBigUint64=R;function E(I){return p?new BigInt64Array(k(8*I),0,I):null}o.mallocBigInt64=E;function D(I){return new DataView(k(I),0,I)}o.mallocDataView=D;function N(I){I=l.nextPow2(I);var F=l.log2(I),L=w[F];return L.length>0?L.pop():new s(I)}o.mallocBuffer=N,o.clearCache=function(){for(var F=0;F<32;++F)b.UINT8[F].length=0,b.UINT16[F].length=0,b.UINT32[F].length=0,b.INT8[F].length=0,b.INT16[F].length=0,b.INT32[F].length=0,b.FLOAT[F].length=0,b.DOUBLE[F].length=0,b.BIGUINT64[F].length=0,b.BIGINT64[F].length=0,b.UINT8C[F].length=0,m[F].length=0,w[F].length=0}},1755:function(a){"use strict";"use restrict";a.exports=o;function o(l){this.roots=new Array(l),this.ranks=new Array(l);for(var u=0;u",P="",O=L.length,U=P.length,X=N[0]===k||N[0]===T,$=0,j=-U;$>-1&&($=I.indexOf(L,$),!($===-1||(j=I.indexOf(P,$+O),j===-1)||j<=$));){for(var Y=$;Y=j)F[Y]=null,I=I.substr(0,Y)+" "+I.substr(Y+1);else if(F[Y]!==null){var q=F[Y].indexOf(N[0]);q===-1?F[Y]+=N:X&&(F[Y]=F[Y].substr(0,q+1)+(1+parseInt(F[Y][q+1]))+F[Y].substr(q+2))}var K=$+O,ne=I.substr(K,j-K),Q=ne.indexOf(L);Q!==-1?$=Q:$=j+U}return F}function g(D,N,I){for(var F=N.textAlign||"start",L=N.textBaseline||"alphabetic",P=[1<<30,1<<30],O=[0,0],U=D.length,X=0;X/g,` -`):I=I.replace(/\/g," ");var O="",U=[];for(V=0;V-1?parseInt(ge[1+me]):0,he=Re>-1?parseInt(we[1+Re]):0;ce!==he&&(Me=Me.replace(Ae(),"?px "),te*=Math.pow(.75,he-ce),Me=Me.replace("?px ",Ae())),H+=.25*q*(he-ce)}if(P.superscripts===!0){var ye=ge.indexOf(k),Ce=we.indexOf(k),ze=ye>-1?parseInt(ge[1+ye]):0,qe=Ce>-1?parseInt(we[1+Ce]):0;ze!==qe&&(Me=Me.replace(Ae(),"?px "),te*=Math.pow(.75,qe-ze),Me=Me.replace("?px ",Ae())),H-=.25*q*(qe-ze)}if(P.bolds===!0){var $e=ge.indexOf(m)>-1,We=we.indexOf(m)>-1;!$e&&We&&(Ue?Me=Me.replace("italic ","italic bold "):Me="bold "+Me),$e&&!We&&(Me=Me.replace("bold ",""))}if(P.italics===!0){var Ue=ge.indexOf(M)>-1,Ge=we.indexOf(M)>-1;!Ue&&Ge&&(Me="italic "+Me),Ue&&!Ge&&(Me=Me.replace("italic ",""))}N.font=Me}for(ee=0;ee0&&(L=F.size),F.lineSpacing&&F.lineSpacing>0&&(P=F.lineSpacing),F.styletags&&F.styletags.breaklines&&(O.breaklines=!!F.styletags.breaklines),F.styletags&&F.styletags.bolds&&(O.bolds=!!F.styletags.bolds),F.styletags&&F.styletags.italics&&(O.italics=!!F.styletags.italics),F.styletags&&F.styletags.subscripts&&(O.subscripts=!!F.styletags.subscripts),F.styletags&&F.styletags.superscripts&&(O.superscripts=!!F.styletags.superscripts)),I.font=[F.fontStyle,F.fontVariant,F.fontWeight,L+"px",F.font].filter(function(X){return X}).join(" "),I.textAlign="start",I.textBaseline="alphabetic",I.direction="ltr";var U=c(N,I,D,L,P,O);return R(U,F,L)}},1538:function(a){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function i(h){h.permitHostObjects___&&h.permitHostObjects___(i)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=i);var l=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var s=new u,f=Object.freeze({});if(s.set(f,1),s.get(f)!==1)l=!0;else{a.exports=WeakMap;return}}}var v=Object.prototype.hasOwnProperty,p=Object.getOwnPropertyNames,b=Object.defineProperty,m=Object.isExtensible,w="weakmap:",M=w+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var y=new ArrayBuffer(25),k=new Uint8Array(y);crypto.getRandomValues(k),M=w+"rand:"+Array.prototype.map.call(k,function(h){return(h%36).toString(36)}).join("")+"___"}function S(h){return!(h.substr(0,w.length)==w&&h.substr(h.length-3)==="___")}if(b(Object,"getOwnPropertyNames",{value:function(R){return p(R).filter(S)}}),"getPropertyNames"in Object){var x=Object.getPropertyNames;b(Object,"getPropertyNames",{value:function(R){return x(R).filter(S)}})}function T(h){if(h!==Object(h))throw new TypeError("Not an object: "+h);var R=h[M];if(R&&R.key===h)return R;if(m(h)){R={key:h};try{return b(h,M,{value:R,writable:!1,enumerable:!1,configurable:!1}),R}catch(E){return}}}(function(){var h=Object.freeze;b(Object,"freeze",{value:function(N){return T(N),h(N)}});var R=Object.seal;b(Object,"seal",{value:function(N){return T(N),R(N)}});var E=Object.preventExtensions;b(Object,"preventExtensions",{value:function(N){return T(N),E(N)}})})();function d(h){return h.prototype=null,Object.freeze(h)}var _=!1;function g(){!_&&typeof console!="undefined"&&(_=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var c=0,A=function(){this instanceof A||g();var h=[],R=[],E=c++;function D(L,P){var O,U=T(L);return U?E in U?U[E]:P:(O=h.indexOf(L),O>=0?R[O]:P)}function N(L){var P=T(L);return P?E in P:h.indexOf(L)>=0}function I(L,P){var O,U=T(L);return U?U[E]=P:(O=h.indexOf(L),O>=0?R[O]=P:(O=h.length,R[O]=P,h[O]=L)),this}function F(L){var P=T(L),O,U;return P?E in P&&delete P[E]:(O=h.indexOf(L),O<0?!1:(U=h.length-1,h[O]=void 0,R[O]=R[U],h[O]=h[U],h.length=U,R.length=U,!0))}return Object.create(A.prototype,{get___:{value:d(D)},has___:{value:d(N)},set___:{value:d(I)},delete___:{value:d(F)}})};A.prototype=Object.create(Object.prototype,{get:{value:function(R,E){return this.get___(R,E)},writable:!0,configurable:!0},has:{value:function(R){return this.has___(R)},writable:!0,configurable:!0},set:{value:function(R,E){return this.set___(R,E)},writable:!0,configurable:!0},delete:{value:function(R){return this.delete___(R)},writable:!0,configurable:!0}}),typeof u=="function"?function(){l&&typeof Proxy!="undefined"&&(Proxy=void 0);function h(){this instanceof A||g();var R=new u,E=void 0,D=!1;function N(P,O){return E?R.has(P)?R.get(P):E.get___(P,O):R.get(P,O)}function I(P){return R.has(P)||(E?E.has___(P):!1)}var F;l?F=function(P,O){return R.set(P,O),R.has(P)||(E||(E=new A),E.set(P,O)),this}:F=function(P,O){if(D)try{R.set(P,O)}catch(U){E||(E=new A),E.set___(P,O)}else R.set(P,O);return this};function L(P){var O=!!R.delete(P);return E&&E.delete___(P)||O}return Object.create(A.prototype,{get___:{value:d(N)},has___:{value:d(I)},set___:{value:d(F)},delete___:{value:d(L)},permitHostObjects___:{value:d(function(P){if(P===i)D=!0;else throw new Error("bogus call to permitHostObjects___")})}})}h.prototype=A.prototype,a.exports=h,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),a.exports=A)})()},236:function(a,o,i){var l=i(8284);a.exports=u;function u(){var s={};return function(f){if((typeof f!="object"||f===null)&&typeof f!="function")throw new Error("Weakmap-shim: Key must be object");var v=f.valueOf(s);return v&&v.identity===s?v:l(f,s)}}},8284:function(a){a.exports=o;function o(i,l){var u={identity:l},s=i.valueOf;return Object.defineProperty(i,"valueOf",{value:function(f){return f!==l?s.apply(this,arguments):u},writable:!0}),u}},606:function(a,o,i){var l=i(236);a.exports=u;function u(){var s=l();return{get:function(f,v){var p=s(f);return p.hasOwnProperty("value")?p.value:v},set:function(f,v){return s(f).value=v,this},has:function(f){return"value"in s(f)},delete:function(f){return delete s(f).value}}}},3349:function(a){"use strict";function o(){return function(v,p,b,m,w,M){var y=v[0],k=b[0],S=[0],x=k;m|=0;var T=0,d=k;for(T=0;T=0!=g>=0&&w.push(S[0]+.5+.5*(_+g)/(_-g))}m+=d,++S[0]}}}function i(){return o()}var l=i;function u(v){var p={};return function(m,w,M){var y=m.dtype,k=m.order,S=[y,k.join()].join(),x=p[S];return x||(p[S]=x=v([y,k])),x(m.shape.slice(0),m.data,m.stride,m.offset|0,w,M)}}function s(v){return u(l.bind(void 0,v))}function f(v){return s({funcName:v.funcName})}a.exports=f({funcName:"zeroCrossings"})},781:function(a,o,i){"use strict";a.exports=u;var l=i(3349);function u(s,f){var v=[];return f=+f||0,l(s.hi(s.shape[0]-1),v,f),v}},7790:function(){}},r={};function t(a){var o=r[a];if(o!==void 0)return o.exports;var i=r[a]={id:a,loaded:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}(function(){t.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(a){if(typeof window=="object")return window}}()})(),function(){t.nmd=function(a){return a.paths=[],a.children||(a.children=[]),a}}();var n=t(1964);_F.exports=n})()});var MF=pe((vde,wF)=>{"use strict";wF.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var SF=pe((hde,kF)=>{"use strict";var TF=MF();kF.exports=Qae;var AF={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Qae(e){var r,t=[],n=1,a;if(typeof e=="string")if(e=e.toLowerCase(),TF[e])t=TF[e].slice(),a="rgb";else if(e==="transparent")n=0,a="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var o=e.slice(1),i=o.length,l=i<=4;n=1,l?(t=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],i===4&&(n=parseInt(o[3]+o[3],16)/255)):(t=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],i===8&&(n=parseInt(o[6]+o[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),a="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var u=r[1],s=u==="rgb",o=u.replace(/a$/,"");a=o;var i=o==="cmyk"?4:o==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(p,b){if(/%$/.test(p))return b===i?parseFloat(p)/100:o==="rgb"?parseFloat(p)*255/100:parseFloat(p);if(o[b]==="h"){if(/deg$/.test(p))return parseFloat(p);if(AF[p]!==void 0)return AF[p]}return parseFloat(p)}),u===o&&t.push(1),n=s||t[i]===void 0?1:t[i],t=t.slice(0,i)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),a=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],a="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(a="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(a="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(a="rgb",t=[e>>>16,(e&65280)>>>8,e&255]);return{space:a,values:t,alpha:n}}});var EF=pe((dde,CF)=>{"use strict";var $ae=SF();CF.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,n,a,o=$ae(r);if(!o.space)return[];var i=[0,0,0],l=o.space[0]==="h"?[360,100,100]:[255,255,255];return t=Array(3),t[0]=Math.min(Math.max(o.values[0],i[0]),l[0]),t[1]=Math.min(Math.max(o.values[1],i[1]),l[1]),t[2]=Math.min(Math.max(o.values[2],i[2]),l[2]),o.space[0]==="h"&&(t=jae(t)),t.push(Math.min(Math.max(o.alpha,0),1)),t};function jae(e){var r=e[0]/360,t=e[1]/100,n=e[2]/100,a,o,i,l,u,s=0;if(t===0)return u=n*255,[u,u,u];for(o=n<.5?n*(1+t):n+t-n*t,a=2*n-o,l=[0,0,0];s<3;)i=r+1/3*-(s-1),i<0?i++:i>1&&i--,u=6*i<1?a+(o-a)*6*i:2*i<1?o:3*i<2?a+(o-a)*(2/3-i)*6:a,l[s++]=u*255;return l}});var RF=pe((pde,LF)=>{LF.exports=eie;function eie(e,r,t){return rt?t:e:er?r:e}});var PF=pe((gde,DF)=>{DF.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var M3=pe((yde,FF)=>{"use strict";var rie=EF(),ad=RF(),tie=PF();FF.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var n=tie(t),a=new n(4),o=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=rie(r),r[0]/=255,r[1]/=255,r[2]/=255),nie(r)?(a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3]!=null?r[3]:255,o&&(a[0]/=255,a[1]/=255,a[2]/=255,a[3]/=255),a):(o?(a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3]!=null?r[3]:1):(a[0]=ad(Math.floor(r[0]*255),0,255),a[1]=ad(Math.floor(r[1]*255),0,255),a[2]=ad(Math.floor(r[2]*255),0,255),a[3]=r[3]==null?255:ad(Math.floor(r[3]*255),0,255)),a)};function nie(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var po=pe((mde,IF)=>{"use strict";var aie=M3();function iie(e){return e?aie(e):[0,0,0,1]}IF.exports=iie});var al=pe((xde,HF)=>{"use strict";var BF=tt(),oie=Sa(),id=M3(),od=Li(),lie=Ti().defaultLine,NF=jn().isArrayOrTypedArray,T3=id(lie),UF=1;function zF(e,r){var t=e;return t[3]*=r,t}function qF(e){if(BF(e))return T3;var r=id(e);return r.length?r:T3}function OF(e){return BF(e)?e:UF}function sie(e,r,t){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var a=NF(n),o=NF(r),i=od.extractOpts(e),l=[],u,s,f,v,p;if(i.colorscale!==void 0?u=od.makeColorScaleFuncFromTrace(e):u=qF,a?s=function(m,w){return m[w]===void 0?T3:id(u(m[w]))}:s=qF,o?f=function(m,w){return m[w]===void 0?UF:OF(m[w])}:f=OF,a||o)for(var b=0;b{"use strict";VF.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var ld=pe((_de,GF)=>{"use strict";GF.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var WF=pe((wde,YF)=>{"use strict";var fie=Er();function k3(e,r,t,n){if(!r||!r.visible)return null;for(var a=fie.getComponentMethod("errorbars","makeComputeError")(r),o=new Array(e.length),i=0;i0){var v=n.c2l(s);n._lowerLogErrorBound||(n._lowerLogErrorBound=v),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,v)}}else o[i]=[-l[0]*t,l[1]*t]}return o}function cie(e){for(var r=0;r{"use strict";var hie=pn().gl_line3d,XF=pn().gl_scatter3d,die=pn().gl_error3d,pie=pn().gl_mesh3d,gie=pn().delaunay_triangulate,go=ir(),$F=po(),sd=al().formatColor,yie=kg(),S3=A3(),mie=ld(),xie=Ct(),bie=to().appendArrayPointValue,_ie=WF();function jF(e,r){this.scene=e,this.uid=r,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var E3=jF.prototype;E3.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var r=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(go.isArrayOrTypedArray(this.textLabels)?(this.textLabels[r]||this.textLabels[r]===0)&&(e.textLabel=this.textLabels[r]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]],!0}};function wie(e,r,t){var n=(t+1)%3,a=(t+2)%3,o=[],i=[],l;for(l=0;l-1?-1:e.indexOf("right")>-1?1:0}function JF(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function Tie(e){var r=0,t=0,n=[r,t];if(Array.isArray(e))for(var a=0;a=0){var s=wie(l.position,l.delaunayColor,l.delaunayAxis);s.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(s):(s.gl=r,this.delaunayMesh=pie(s),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};E3.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function Cie(e,r){var t=new jF(e,r.uid);return t.update(r),t}eI.exports=Cie});var F3=pe((Tde,aI)=>{"use strict";var yo=$l(),Eie=kn(),P3=ja(),L3=ro().axisHoverFormat,Lie=ha().hovertemplateAttrs,Rie=ha().texttemplateAttrs,tI=Sn(),Die=A3(),Pie=ld(),gi=Mt().extendFlat,Fie=zn().overrideAll,nI=Wc(),Iie=yo.line,fs=yo.marker,Nie=fs.line,zie=gi({width:Iie.width,dash:{valType:"enumerated",values:nI(Die),dflt:"solid"}},P3("line"));function R3(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var D3=aI.exports=Fie({x:yo.x,y:yo.y,z:{valType:"data_array"},text:gi({},yo.text,{}),texttemplate:Rie({},{}),hovertext:gi({},yo.hovertext,{}),hovertemplate:Lie(),xhoverformat:L3("x"),yhoverformat:L3("y"),zhoverformat:L3("z"),mode:gi({},yo.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:R3("x"),y:R3("y"),z:R3("z")},connectgaps:yo.connectgaps,line:zie,marker:gi({symbol:{valType:"enumerated",values:nI(Pie),dflt:"circle",arrayOk:!0},size:gi({},fs.size,{dflt:8}),sizeref:fs.sizeref,sizemin:fs.sizemin,sizemode:fs.sizemode,opacity:gi({},fs.opacity,{arrayOk:!1}),colorbar:fs.colorbar,line:gi({width:gi({},Nie.width,{arrayOk:!1})},P3("marker.line"))},P3("marker")),textposition:gi({},yo.textposition,{dflt:"top center"}),textfont:Eie({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:tI.opacity,hoverinfo:gi({},tI.hoverinfo)},"calc","nested");D3.x.editType=D3.y.editType=D3.z.editType="calc+clearAxisTypes"});var lI=pe((Ade,oI)=>{"use strict";var iI=Er(),qie=ir(),I3=ia(),Oie=em(),Bie=rm(),Uie=tm(),Hie=F3();oI.exports=function(r,t,n,a){function o(b,m){return qie.coerce(r,t,Hie,b,m)}var i=Vie(r,t,o,a);if(!i){t.visible=!1;return}o("text"),o("hovertext"),o("hovertemplate"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),o("mode"),I3.hasMarkers(t)&&Oie(r,t,n,a,o,{noSelect:!0,noAngle:!0}),I3.hasLines(t)&&(o("connectgaps"),Bie(r,t,n,a,o)),I3.hasText(t)&&(o("texttemplate"),Uie(r,t,a,o,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var l=(t.line||{}).color,u=(t.marker||{}).color;o("surfaceaxis")>=0&&o("surfacecolor",l||u);for(var s=["x","y","z"],f=0;f<3;++f){var v="projection."+s[f];o(v+".show")&&(o(v+".opacity"),o(v+".scale"))}var p=iI.getComponentMethod("errorbars","supplyDefaults");p(r,t,l||u||n,{axis:"z"}),p(r,t,l||u||n,{axis:"y",inherit:"z"}),p(r,t,l||u||n,{axis:"x",inherit:"z"})};function Vie(e,r,t,n){var a=0,o=t("x"),i=t("y"),l=t("z"),u=iI.getComponentMethod("calendars","handleTraceDefaults");return u(e,r,["x","y","z"],n),o&&i&&l&&(a=Math.min(o.length,i.length,l.length),r._length=r._xlength=r._ylength=r._zlength=a),a}});var uI=pe((kde,sI)=>{"use strict";var Gie=g1(),Yie=im();sI.exports=function(r,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return Gie(n,t),Yie(r,t),n}});var cI=pe((Sde,fI)=>{fI.exports=Wie;function Wie(e,r){if(typeof e!="string")throw new TypeError("must specify type string");if(r=r||{},typeof document=="undefined"&&!r.canvas)return null;var t=r.canvas||document.createElement("canvas");typeof r.width=="number"&&(t.width=r.width),typeof r.height=="number"&&(t.height=r.height);var n=r,a;try{var o=[e];e.indexOf("webgl")===0&&o.push("experimental-"+e);for(var i=0;i{var Xie=cI();vI.exports=function(r){return Xie("webgl",r)}});var gI=pe((Ede,pI)=>{"use strict";var dI=Zr(),Zie=function(){};pI.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=Zie);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=dI.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=dI.lightLine,n.style["z-index"]=30;var a=document.createElement("p");return a.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",a.style.position="relative",a.style.top="50%",a.style.left="50%",a.style.height="30%",a.style.width="50%",a.style.margin="-15% 0 0 -25%",n.appendChild(a),r.container.appendChild(n),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var xI=pe((Lde,mI)=>{"use strict";var cs=po(),Jie=ir(),Kie=["xaxis","yaxis","zaxis"];function yI(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var Qie=yI.prototype;Qie.merge=function(e,r){for(var t=this,n=0;n<3;++n){var a=r[Kie[n]];if(!a.visible){t.tickEnable[n]=!1,t.labelEnable[n]=!1,t.lineEnable[n]=!1,t.lineTickEnable[n]=!1,t.gridEnable[n]=!1,t.zeroEnable[n]=!1,t.backgroundEnable[n]=!1;continue}t.labels[n]=e._meta?Jie.templateString(a.title.text,e._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(t.labelColor[n]=cs(a.title.font.color)),a.title.font.family&&(t.labelFont[n]=a.title.font.family),a.title.font.size&&(t.labelSize[n]=a.title.font.size),a.title.font.weight&&(t.labelFontWeight[n]=a.title.font.weight),a.title.font.style&&(t.labelFontStyle[n]=a.title.font.style),a.title.font.variant&&(t.labelFontVariant[n]=a.title.font.variant)),"showline"in a&&(t.lineEnable[n]=a.showline),"linecolor"in a&&(t.lineColor[n]=cs(a.linecolor)),"linewidth"in a&&(t.lineWidth[n]=a.linewidth),"showgrid"in a&&(t.gridEnable[n]=a.showgrid),"gridcolor"in a&&(t.gridColor[n]=cs(a.gridcolor)),"gridwidth"in a&&(t.gridWidth[n]=a.gridwidth),a.type==="log"?t.zeroEnable[n]=!1:"zeroline"in a&&(t.zeroEnable[n]=a.zeroline),"zerolinecolor"in a&&(t.zeroLineColor[n]=cs(a.zerolinecolor)),"zerolinewidth"in a&&(t.zeroLineWidth[n]=a.zerolinewidth),"ticks"in a&&a.ticks?t.lineTickEnable[n]=!0:t.lineTickEnable[n]=!1,"ticklen"in a&&(t.lineTickLength[n]=t._defaultLineTickLength[n]=a.ticklen),"tickcolor"in a&&(t.lineTickColor[n]=cs(a.tickcolor)),"tickwidth"in a&&(t.lineTickWidth[n]=a.tickwidth),"tickangle"in a&&(t.tickAngle[n]=a.tickangle==="auto"?-3600:Math.PI*-a.tickangle/180),"showticklabels"in a&&(t.tickEnable[n]=a.showticklabels),"tickfont"in a&&(a.tickfont.color&&(t.tickColor[n]=cs(a.tickfont.color)),a.tickfont.family&&(t.tickFont[n]=a.tickfont.family),a.tickfont.size&&(t.tickSize[n]=a.tickfont.size),a.tickfont.weight&&(t.tickFontWeight[n]=a.tickfont.weight),a.tickfont.style&&(t.tickFontStyle[n]=a.tickfont.style),a.tickfont.variant&&(t.tickFontVariant[n]=a.tickfont.variant)),"mirror"in a?["ticks","all","allticks"].indexOf(a.mirror)!==-1?(t.lineTickMirror[n]=!0,t.lineMirror[n]=!0):a.mirror===!0?(t.lineTickMirror[n]=!1,t.lineMirror[n]=!0):(t.lineTickMirror[n]=!1,t.lineMirror[n]=!1):t.lineMirror[n]=!1,"showbackground"in a&&a.showbackground!==!1?(t.backgroundEnable[n]=!0,t.backgroundColor[n]=cs(a.backgroundcolor)):t.backgroundEnable[n]=!1}};function $ie(e,r){var t=new yI;return t.merge(e,r),t}mI.exports=$ie});var wI=pe((Rde,_I)=>{"use strict";var jie=po(),eoe=["xaxis","yaxis","zaxis"];function bI(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var roe=bI.prototype;roe.merge=function(e){for(var r=0;r<3;++r){var t=e[eoe[r]];if(!t.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=t.showspikes,this.colors[r]=jie(t.spikecolor),this.drawSides[r]=t.spikesides,this.lineWidth[r]=t.spikethickness}};function toe(e){var r=new bI;return r.merge(e),r}_I.exports=toe});var AI=pe((Dde,TI)=>{"use strict";TI.exports=loe;var MI=Ct(),noe=ir(),aoe=["xaxis","yaxis","zaxis"],ioe=[0,0,0];function ooe(e){for(var r=new Array(3),t=0;t<3;++t){for(var n=e[t],a=new Array(n.length),o=0;o/g," "));a[o]=s,i.tickmode=l}}r.ticks=a;for(var o=0;o<3;++o){ioe[o]=.5*(e.glplot.bounds[0][o]+e.glplot.bounds[1][o]);for(var f=0;f<2;++f)r.bounds[f][o]=e.glplot.bounds[f][o]}e.contourLevels=ooe(a)}});var DI=pe((Pde,RI)=>{"use strict";var CI=pn().gl_plot3d,soe=CI.createCamera,kI=CI.createScene,uoe=hI(),foe=Zv(),cd=Er(),Zn=ir(),fd=Zn.preserveDrawingBuffer(),vd=Ct(),yi=io(),coe=po(),voe=gI(),hoe=Um(),doe=xI(),poe=wI(),goe=AI(),yoe=$s().applyAutorangeOptions,O0,ud,EI=!1;function LI(e,r){var t=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.position="absolute",a.style.top=a.style.left="0px",a.style.width=a.style.height="100%",a.style["z-index"]=20,a.style["pointer-events"]="none",t.appendChild(a),this.svgContainer=a,t.id=e.id,t.style.position="absolute",t.style.top=t.style.left="0px",t.style.width=t.style.height="100%",n.appendChild(t),this.fullLayout=r,this.id=e.id||"scene",this.fullSceneLayout=r[this.id],this.plotArgs=[[],{},{}],this.axesOptions=doe(r,r[this.id]),this.spikeOptions=poe(r[this.id]),this.container=t,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=cd.getComponentMethod("annotations3d","convert"),this.drawAnnotations=cd.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Rn=LI.prototype;Rn.prepareOptions=function(){var e=this,r={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:fd,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!ud&&(O0=document.createElement("canvas"),ud=uoe({canvas:O0,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!ud))throw new Error("error creating static canvas/context for image server");r.gl=ud,r.canvas=O0}return r};var SI=!0;Rn.tryCreatePlot=function(){var e=this,r=e.prepareOptions(),t=!0;try{e.glplot=kI(r)}catch(n){if(e.staticMode||!SI||fd)t=!1;else{Zn.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{fd=r.glOptions.preserveDrawingBuffer=!0,e.glplot=kI(r)}catch(a){fd=r.glOptions.preserveDrawingBuffer=!1,t=!1}}}return SI=!1,t};Rn.initializeGLCamera=function(){var e=this,r=e.fullSceneLayout.camera,t=r.projection.type==="orthographic";e.camera=soe(e.container,{center:[r.center.x,r.center.y,r.center.z],eye:[r.eye.x,r.eye.y,r.eye.z],up:[r.up.x,r.up.y,r.up.z],_ortho:t,zoomMin:.01,zoomMax:100,mode:"orbit"})};Rn.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var r=e.tryCreatePlot();if(!r)return voe(e);e.traces={},e.make4thDimension();var t=e.graphDiv,n=t.layout,a=function(){var i={};return e.isCameraChanged(n)&&(i[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(i[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=i[e.id+".aspectmode"]="manual")),i},o=function(i){if(i.fullSceneLayout.dragmode!==!1){var l=a();i.saveLayout(n),i.graphDiv.emit("plotly_relayout",l)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){o(e)}),e.glplot.canvas.addEventListener("touchstart",function(){EI=!0}),e.glplot.canvas.addEventListener("wheel",function(i){if(t._context._scrollZoom.gl3d){if(e.camera._ortho){var l=i.deltaX>i.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:l*u.x,y:l*u.y,z:l*u.z})}o(e)}},foe?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var i=a();e.graphDiv.emit("plotly_relayouting",i)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(i){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:i,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Rn.render=function(){var e=this,r=e.graphDiv,t,n=e.svgContainer,a=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var o=r._fullLayout._invScaleX,i=r._fullLayout._invScaleY,l=a.width*o,u=a.height*i;n.setAttributeNS(null,"viewBox","0 0 "+l+" "+u),n.setAttributeNS(null,"width",l),n.setAttributeNS(null,"height",u),goe(e),e.glplot.axes.update(e.axesOptions);for(var s=Object.keys(e.traces),f=null,v=e.glplot.selection,p=0;p")):t.type==="isosurface"||t.type==="volume"?(y.valueLabel=vd.hoverLabelText(e._mockAxis,e._mockAxis.d2l(v.traceCoordinate[3]),t.valuehoverformat),d.push("value: "+y.valueLabel),v.textLabel&&d.push(v.textLabel),T=d.join("
")):T=v.textLabel;var _={x:v.traceCoordinate[0],y:v.traceCoordinate[1],z:v.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:M};yi.appendArrayPointValue(_,w,M),t._module.eventData&&(_=w._module.eventData(_,v,w,{},M));var g={points:[_]};if(e.fullSceneLayout.hovermode){var c=[];yi.loneHover({trace:w,x:(.5+.5*m[0]/m[3])*l,y:(.5-.5*m[1]/m[3])*u,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:T,name:f.name,color:yi.castHoverOption(w,M,"bgcolor")||f.color,borderColor:yi.castHoverOption(w,M,"bordercolor"),fontFamily:yi.castHoverOption(w,M,"font.family"),fontSize:yi.castHoverOption(w,M,"font.size"),fontColor:yi.castHoverOption(w,M,"font.color"),nameLength:yi.castHoverOption(w,M,"namelength"),textAlign:yi.castHoverOption(w,M,"align"),hovertemplate:Zn.castOption(w,M,"hovertemplate"),hovertemplateLabels:Zn.extendFlat({},_,y),eventData:[_]},{container:n,gd:r,inOut_bbox:c}),_.bbox=c[0]}v.distance<5&&(v.buttons||EI)?r.emit("plotly_click",g):r.emit("plotly_hover",g),this.oldEventData=g}else yi.loneUnhover(n),this.oldEventData&&r.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Rn.recoverContext=function(){var e=this;e.glplot.dispose();var r=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(r);return}if(!e.initializeGLPlot()){Zn.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(r)};var B0=["xaxis","yaxis","zaxis"];function moe(e,r,t){for(var n=e.fullSceneLayout,a=0;a<3;a++){var o=B0[a],i=o.charAt(0),l=n[o],u=r[i],s=r[i+"calendar"],f=r["_"+i+"length"];if(!Zn.isArrayOrTypedArray(u))t[0][a]=Math.min(t[0][a],0),t[1][a]=Math.max(t[1][a],f-1);else for(var v,p=0;p<(f||u.length);p++)if(Zn.isArrayOrTypedArray(u[p]))for(var b=0;bw[1][i])w[0][i]=-1,w[1][i]=1;else{var h=w[1][i]-w[0][i];w[0][i]-=h/32,w[1][i]+=h/32}if(k=[w[0][i],w[1][i]],k=yoe(k,u),w[0][i]=k[0],w[1][i]=k[1],u.isReversed()){var R=w[0][i];w[0][i]=w[1][i],w[1][i]=R}}else k=u.range,w[0][i]=u.r2l(k[0]),w[1][i]=u.r2l(k[1]);w[0][i]===w[1][i]&&(w[0][i]-=1,w[1][i]+=1),M[i]=w[1][i]-w[0][i],u.range=[w[0][i],w[1][i]],u.limitRange(),n.glplot.setBounds(i,{min:u.range[0]*b[i],max:u.range[1]*b[i]})}var E,D=f.aspectmode;if(D==="cube")E=[1,1,1];else if(D==="manual"){var N=f.aspectratio;E=[N.x,N.y,N.z]}else if(D==="auto"||D==="data"){var I=[1,1,1];for(i=0;i<3;++i){u=f[B0[i]],s=u.type;var F=y[s];I[i]=Math.pow(F.acc,1/F.count)/b[i]}D==="data"||Math.max.apply(null,I)/Math.min.apply(null,I)<=4?E=I:E=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=v.aspectratio.x=E[0],f.aspectratio.y=v.aspectratio.y=E[1],f.aspectratio.z=v.aspectratio.z=E[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var L=f.domain||null,P=r._size||null;if(L&&P){var O=n.container.style;O.position="absolute",O.left=P.l+L.x[0]*P.w+"px",O.top=P.t+(1-L.y[1])*P.h+"px",O.width=P.w*(L.x[1]-L.x[0])+"px",O.height=P.h*(L.y[1]-L.y[0])+"px"}n.glplot.redraw()}};Rn.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function boe(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function _oe(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Rn.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),_oe(e.camera)};Rn.setViewport=function(e){var r=this,t=e.camera;r.camera.lookAt.apply(this,boe(t)),r.glplot.setAspectratio(e.aspectratio);var n=t.projection.type==="orthographic",a=r.camera._ortho;n!==a&&(r.glplot.redraw(),r.glplot.clearRGBA(),r.glplot.dispose(),r.initializeGLPlot())};Rn.isCameraChanged=function(e){var r=this,t=r.getCamera(),n=Zn.nestedProperty(e,r.id+".camera"),a=n.get();function o(s,f,v,p){var b=["up","center","eye"],m=["x","y","z"];return f[b[v]]&&s[b[v]][m[p]]===f[b[v]][m[p]]}var i=!1;if(a===void 0)i=!0;else{for(var l=0;l<3;l++)for(var u=0;u<3;u++)if(!o(t,a,l,u)){i=!0;break}(!a.projection||t.projection&&t.projection.type!==a.projection.type)&&(i=!0)}return i};Rn.isAspectChanged=function(e){var r=this,t=r.glplot.getAspectratio(),n=Zn.nestedProperty(e,r.id+".aspectratio"),a=n.get();return a===void 0||a.x!==t.x||a.y!==t.y||a.z!==t.z};Rn.saveLayout=function(e){var r=this,t=r.fullLayout,n,a,o,i,l,u,s=r.isCameraChanged(e),f=r.isAspectChanged(e),v=s||f;if(v){var p={};if(s&&(n=r.getCamera(),a=Zn.nestedProperty(e,r.id+".camera"),o=a.get(),p[r.id+".camera"]=o),f&&(i=r.glplot.getAspectratio(),l=Zn.nestedProperty(e,r.id+".aspectratio"),u=l.get(),p[r.id+".aspectratio"]=u),cd.call("_storeDirectGUIEdit",e,t._preGUI,p),s){a.set(n);var b=Zn.nestedProperty(t,r.id+".camera");b.set(n)}if(f){l.set(i);var m=Zn.nestedProperty(t,r.id+".aspectratio");m.set(i),r.glplot.redraw()}}return v};Rn.updateFx=function(e,r){var t=this,n=t.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var a=t.graphDiv,o=a._fullLayout,i=t.fullSceneLayout.camera,l=i.up.x,u=i.up.y,s=i.up.z;if(s/Math.sqrt(l*l+u*u+s*s)<.999){var f=t.id+".camera.up",v={x:0,y:0,z:1},p={};p[f]=v;var b=a.layout;cd.call("_storeDirectGUIEdit",b,o._preGUI,p),i.up=v,Zn.nestedProperty(b,f).set(v)}}else n.keyBindingMode=e;t.fullSceneLayout.hovermode=r};function woe(e,r,t){for(var n=0,a=t-1;n0)for(var l=255/i,u=0;u<3;++u)e[o+u]=Math.min(l*e[o+u],255)}}Rn.toImage=function(e){var r=this;e||(e="png"),r.staticMode&&r.container.appendChild(O0),r.glplot.redraw();var t=r.glplot.gl,n=t.drawingBufferWidth,a=t.drawingBufferHeight;t.bindFramebuffer(t.FRAMEBUFFER,null);var o=new Uint8Array(n*a*4);t.readPixels(0,0,n,a,t.RGBA,t.UNSIGNED_BYTE,o),woe(o,n,a),Moe(o,n,a);var i=document.createElement("canvas");i.width=n,i.height=a;var l=i.getContext("2d",{willReadFrequently:!0}),u=l.createImageData(n,a);u.data.set(o),l.putImageData(u,0,0);var s;switch(e){case"jpeg":s=i.toDataURL("image/jpeg");break;case"webp":s=i.toDataURL("image/webp");break;default:s=i.toDataURL("image/png")}return r.staticMode&&r.container.removeChild(O0),s};Rn.setConvert=function(){for(var e=this,r=0;r<3;r++){var t=e.fullSceneLayout[B0[r]];vd.setConvert(t,e.fullLayout),t.setScale=Zn.noop}};Rn.make4thDimension=function(){var e=this,r=e.graphDiv,t=r._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},vd.setConvert(e._mockAxis,t)};RI.exports=LI});var FI=pe((Fde,PI)=>{"use strict";PI.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var z3=pe((Ide,II)=>{"use strict";var Toe=Zr(),Br=Ra(),N3=Mt().extendFlat,Aoe=zn().overrideAll;II.exports=Aoe({visible:Br.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:Toe.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Br.color,categoryorder:Br.categoryorder,categoryarray:Br.categoryarray,title:{text:Br.title.text,font:Br.title.font},type:N3({},Br.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Br.autotypenumbers,autorange:Br.autorange,autorangeoptions:{minallowed:Br.autorangeoptions.minallowed,maxallowed:Br.autorangeoptions.maxallowed,clipmin:Br.autorangeoptions.clipmin,clipmax:Br.autorangeoptions.clipmax,include:Br.autorangeoptions.include,editType:"plot"},rangemode:Br.rangemode,minallowed:Br.minallowed,maxallowed:Br.maxallowed,range:N3({},Br.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Br.minor.tickmode,nticks:Br.nticks,tick0:Br.tick0,dtick:Br.dtick,tickvals:Br.tickvals,ticktext:Br.ticktext,ticks:Br.ticks,mirror:Br.mirror,ticklen:Br.ticklen,tickwidth:Br.tickwidth,tickcolor:Br.tickcolor,showticklabels:Br.showticklabels,labelalias:Br.labelalias,tickfont:Br.tickfont,tickangle:Br.tickangle,tickprefix:Br.tickprefix,showtickprefix:Br.showtickprefix,ticksuffix:Br.ticksuffix,showticksuffix:Br.showticksuffix,showexponent:Br.showexponent,exponentformat:Br.exponentformat,minexponent:Br.minexponent,separatethousands:Br.separatethousands,tickformat:Br.tickformat,tickformatstops:Br.tickformatstops,hoverformat:Br.hoverformat,showline:Br.showline,linecolor:Br.linecolor,linewidth:Br.linewidth,showgrid:Br.showgrid,gridcolor:N3({},Br.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Br.gridwidth,zeroline:Br.zeroline,zerolinecolor:Br.zerolinecolor,zerolinewidth:Br.zerolinewidth},"plot","from-root")});var U3=pe((Nde,NI)=>{"use strict";var q3=z3(),koe=$1().attributes,O3=Mt().extendFlat,Soe=ir().counterRegex;function B3(e,r,t){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:r,editType:"camera"},z:{valType:"number",dflt:t,editType:"camera"},editType:"camera"}}NI.exports={_arrayAttrRegexps:[Soe("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:O3(B3(0,0,1),{}),center:O3(B3(0,0,0),{}),eye:O3(B3(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:koe({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:q3,yaxis:q3,zaxis:q3,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var qI=pe((zde,zI)=>{"use strict";var Coe=ir(),Eoe=gt(),Loe=$1().defaults;zI.exports=function(r,t,n,a){var o=a.type,i=a.attributes,l=a.handleDefaults,u=a.partition||"x",s=t._subplots[o],f=s.length,v=f&&s[0].replace(/\d+$/,""),p,b;function m(k,S){return Coe.coerce(p,b,i,k,S)}for(var w=0;w{"use strict";var Roe=Sa().mix,OI=ir(),Doe=gt(),Poe=z3(),Foe=Mm(),Ioe=T1(),BI=["xaxis","yaxis","zaxis"],Noe=100*136/187;UI.exports=function(r,t,n){var a,o;function i(s,f){return OI.coerce(a,o,Poe,s,f)}for(var l=0;l{"use strict";var zoe=ir(),qoe=Zr(),Ooe=Er(),Boe=qI(),Uoe=HI(),VI=U3(),Hoe=Tf().getSubplotData,GI="gl3d";YI.exports=function(r,t,n){var a=t._basePlotModules.length>1;function o(i){if(!a){var l=zoe.validate(r[i],VI[i]);if(l)return r[i]}}Boe(r,t,n,{type:GI,attributes:VI,handleDefaults:Voe,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})};function Voe(e,r,t,n){for(var a=t("bgcolor"),o=qoe.combine(a,n.paper_bgcolor),i=["up","center","eye"],l=0;l.999)&&(p="turntable")}else p="turntable";t("dragmode",p),t("hovermode",n.getDfltFromLayout("hovermode"))}});var il=pe(Jn=>{"use strict";var Goe=zn().overrideAll,Yoe=_l(),Woe=DI(),Xoe=Tf().getSubplotData,Zoe=ir(),Joe=Io(),qu="gl3d",H3="scene";Jn.name=qu;Jn.attr=H3;Jn.idRoot=H3;Jn.idRegex=Jn.attrRegex=Zoe.counterRegex("scene");Jn.attributes=FI();Jn.layoutAttributes=U3();Jn.baseLayoutAttrOverrides=Goe({hoverlabel:Yoe.hoverlabel},"plot","nested");Jn.supplyLayoutDefaults=WI();Jn.plot=function(r){for(var t=r._fullLayout,n=r._fullData,a=t._subplots[qu],o=0;o{"use strict";XI.exports={plot:rI(),attributes:F3(),markerSymbols:ld(),supplyDefaults:lI(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:uI(),moduleType:"trace",name:"scatter3d",basePlotModule:il(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var KI=pe((Hde,JI)=>{"use strict";JI.exports=ZI()});var U0=pe((Vde,jI)=>{"use strict";var QI=Zr(),Koe=ja(),V3=ro().axisHoverFormat,Qoe=ha().hovertemplateAttrs,$I=Sn(),G3=Mt().extendFlat,$oe=zn().overrideAll;function Y3(e){return{valType:"boolean",dflt:!1}}function W3(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:Y3("x"),y:Y3("y"),z:Y3("z")},color:{valType:"color",dflt:QI.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:QI.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var X3=jI.exports=$oe(G3({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:Qoe(),xhoverformat:V3("x"),yhoverformat:V3("y"),zhoverformat:V3("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},Koe("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:W3("x"),y:W3("y"),z:W3("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:G3({},$I.hoverinfo),showlegend:G3({},$I.showlegend,{dflt:!1})}),"calc","nested");X3.x.editType=X3.y.editType=X3.z.editType="calc+clearAxisTypes"});var J3=pe((Gde,tN)=>{"use strict";var joe=Er(),eN=ir(),ele=Ei(),rle=U0(),Z3=.1;function tle(e,r){for(var t=[],n=32,a=0;a{"use strict";var nN=zo();aN.exports=function(r,t){t.surfacecolor?nN(r,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):nN(r,t,{vals:t.z,containerStr:"",cLetter:"c"})}});var uN=pe((Wde,sN)=>{"use strict";var ile=ir(),oN=.01,ole=[[-1,0],[1,0],[0,-1],[0,1]];function lle(e){return .5-.25*Math.min(1,e*.5)}sN.exports=function(r,t){var n=1,a;for(lN(r,t),a=0;aoN;a++)n=lN(r,t,lle(n));return n>oN&&ile.log("interp2d didn't converge quickly",n),r};function lN(e,r,t){var n=0,a,o,i,l,u,s,f,v,p,b,m,w,M;for(l=0;lw&&(n=Math.max(n,Math.abs(e[o][i]-m)/(M-w))))}return n}});var cN=pe((Xde,fN)=>{"use strict";var sle=ir().maxRowLength;fN.exports=function(r){var t=[],n={},a=[],o=r[0],i=[],l=[0,0,0],u=sle(r),s,f,v,p,b,m,w,M;for(f=0;f=0;b--)p=a[b],f=p[0],v=p[1],m=((n[[f-1,v]]||l)[2]+(n[[f+1,v]]||l)[2]+(n[[f,v-1]]||l)[2]+(n[[f,v+1]]||l)[2])/20,m&&(w[p]=[f,v,m],a.splice(b,1),M=!0);if(!M)throw"findEmpties iterated with no new neighbors";for(p in w)n[p]=w[p],t.push(w[p])}return t.sort(function(y,k){return k[2]-y[2]})}});var yN=pe((Zde,gN)=>{"use strict";var ule=pn().gl_surface3d,Ou=pn().ndarray,fle=pn().ndarray_linear_interpolate.d2,cle=uN(),vle=cN(),H0=ir().isArrayOrTypedArray,hle=al().parseColorScale,vN=po(),dle=Li().extractOpts;function dN(e,r,t){this.scene=e,this.uid=t,this.surface=r,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var mi=dN.prototype;mi.getXat=function(e,r,t,n){var a=H0(this.data.x)?H0(this.data.x[0])?this.data.x[r][e]:this.data.x[e]:e;return t===void 0?a:n.d2l(a,0,t)};mi.getYat=function(e,r,t,n){var a=H0(this.data.y)?H0(this.data.y[0])?this.data.y[r][e]:this.data.y[r]:r;return t===void 0?a:n.d2l(a,0,t)};mi.getZat=function(e,r,t,n){var a=this.data.z[r][e];return a===null&&this.data.connectgaps&&this.data._interpolatedZ&&(a=this.data._interpolatedZ[r][e]),t===void 0?a:n.d2l(a,0,t)};mi.handlePick=function(e){if(e.object===this.surface){var r=(e.data.index[0]-1)/this.dataScaleX-1,t=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(r),this.data.z[0].length-1),0),a=Math.max(Math.min(Math.round(t),this.data._ylength-1),0);e.index=[n,a],e.traceCoordinate=[this.getXat(n,a),this.getYat(n,a),this.getZat(n,a)],e.dataCoordinate=[this.getXat(n,a,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,a,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,a,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var o=0;o<3;o++){var i=e.dataCoordinate[o];i!=null&&(e.dataCoordinate[o]*=this.scene.dataScale[o])}var l=this.data.hovertext||this.data.text;return H0(l)&&l[a]&&l[a][n]!==void 0?e.textLabel=l[a][n]:l?e.textLabel=l:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function ple(e){var r=e[0].rgb,t=e[e.length-1].rgb;return r[0]===t[0]&&r[1]===t[1]&&r[2]===t[2]&&r[3]===t[3]}var Bu=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function gle(e,r){if(e0){t=Bu[n];break}return t}function mle(e,r){if(!(e<1||r<1)){for(var t=K3(e),n=K3(r),a=1,o=0;ohd;)n--,n/=yle(n),n++,n1?a:1};function ble(e,r,t){var n=t[8]+t[2]*r[0]+t[5]*r[1];return e[0]=(t[6]+t[0]*r[0]+t[3]*r[1])/n,e[1]=(t[7]+t[1]*r[0]+t[4]*r[1])/n,e}function _le(e,r,t){return wle(e,r,ble,t),e}function wle(e,r,t,n){for(var a=[0,0],o=e.shape[0],i=e.shape[1],l=0;l0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(r[n]=!0,a=this.contourStart[n];ap&&(this.minValues[s]=p),this.maxValues[s]{"use strict";mN.exports={attributes:U0(),supplyDefaults:J3().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:iN(),plot:yN(),moduleType:"trace",name:"surface",basePlotModule:il(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var _N=pe((Kde,bN)=>{"use strict";bN.exports=xN()});var Uu=pe((Qde,MN)=>{"use strict";var Ale=ja(),Q3=ro().axisHoverFormat,kle=ha().hovertemplateAttrs,ol=U0(),wN=Sn(),ll=Mt().extendFlat;MN.exports=ll({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:kle({editType:"calc"}),xhoverformat:Q3("x"),yhoverformat:Q3("y"),zhoverformat:Q3("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},Ale("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ol.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:ll({},ol.contours.x.show,{}),color:ol.contours.x.color,width:ol.contours.x.width,editType:"calc"},lightposition:{x:ll({},ol.lightposition.x,{dflt:1e5}),y:ll({},ol.lightposition.y,{dflt:1e5}),z:ll({},ol.lightposition.z,{dflt:0}),editType:"calc"},lighting:ll({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},ol.lighting),hoverinfo:ll({},wN.hoverinfo,{editType:"calc"}),showlegend:ll({},wN.showlegend,{dflt:!1})})});var pd=pe(($de,AN)=>{"use strict";var Sle=ja(),dd=ro().axisHoverFormat,Cle=ha().hovertemplateAttrs,V0=Uu(),TN=Sn(),$3=Mt().extendFlat,Ele=zn().overrideAll;function j3(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function e5(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var Hu=AN.exports=Ele($3({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:j3("x"),y:j3("y"),z:j3("z")},caps:{x:e5("x"),y:e5("y"),z:e5("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:Cle(),xhoverformat:dd("x"),yhoverformat:dd("y"),zhoverformat:dd("z"),valuehoverformat:dd("value",1),showlegend:$3({},TN.showlegend,{dflt:!1})},Sle("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:V0.opacity,lightposition:V0.lightposition,lighting:V0.lighting,flatshading:V0.flatshading,contour:V0.contour,hoverinfo:$3({},TN.hoverinfo)}),"calc","nested");Hu.flatshading.dflt=!0;Hu.lighting.facenormalsepsilon.dflt=0;Hu.x.editType=Hu.y.editType=Hu.z.editType=Hu.value.editType="calc+clearAxisTypes"});var r5=pe((jde,SN)=>{"use strict";var Lle=ir(),Rle=Er(),Dle=pd(),Ple=Ei();function Fle(e,r,t,n){function a(o,i){return Lle.coerce(e,r,Dle,o,i)}kN(e,r,t,n,a)}function kN(e,r,t,n,a){var o=a("isomin"),i=a("isomax");i!=null&&o!==void 0&&o!==null&&o>i&&(r.isomin=null,r.isomax=null);var l=a("x"),u=a("y"),s=a("z"),f=a("value");if(!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length){r.visible=!1;return}var v=Rle.getComponentMethod("calendars","handleTraceDefaults");v(e,r,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach(function(w){a(w+"hoverformat");var M="caps."+w,y=a(M+".show");y&&a(M+".fill");var k="slices."+w,S=a(k+".show");S&&(a(k+".fill"),a(k+".locations"))});var p=a("spaceframe.show");p&&a("spaceframe.fill");var b=a("surface.show");b&&(a("surface.count"),a("surface.fill"),a("surface.pattern"));var m=a("contour.show");m&&(a("contour.color"),a("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(w){a(w)}),Ple(e,r,n,a,{prefix:"",cLetter:"c"}),r._length=null}SN.exports={supplyDefaults:Fle,supplyIsoDefaults:kN}});var gd=pe((epe,EN)=>{"use strict";var n5=ir(),Ile=zo();function Nle(e,r){r._len=Math.min(r.u.length,r.v.length,r.w.length,r.x.length,r.y.length,r.z.length),r._u=Hi(r.u,r._len),r._v=Hi(r.v,r._len),r._w=Hi(r.w,r._len),r._x=Hi(r.x,r._len),r._y=Hi(r.y,r._len),r._z=Hi(r.z,r._len);var t=CN(r);r._gridFill=t.fill,r._Xs=t.Xs,r._Ys=t.Ys,r._Zs=t.Zs,r._len=t.len;var n=0,a,o,i;r.starts&&(a=Hi(r.starts.x||[]),o=Hi(r.starts.y||[]),i=Hi(r.starts.z||[]),n=Math.min(a.length,o.length,i.length)),r._startsX=a||[],r._startsY=o||[],r._startsZ=i||[];var l=0,u=1/0,s;for(s=0;s1&&(S=r[a-1],T=t[a-1],_=n[a-1]),o=0;oS?"-":"+")+"x"),m=m.replace("y",(x>T?"-":"+")+"y"),m=m.replace("z",(d>_?"-":"+")+"z");var h=function(){a=0,g=[],c=[],A=[]};(!a||a{"use strict";var zle=zo(),qle=gd().processGrid,yd=gd().filter;LN.exports=function(r,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=yd(t.x,t._len),t._y=yd(t.y,t._len),t._z=yd(t.z,t._len),t._value=yd(t.value,t._len);var n=qle(t);t._gridFill=n.fill,t._Xs=n.Xs,t._Ys=n.Ys,t._Zs=n.Zs,t._len=n.len;for(var a=1/0,o=-1/0,i=0;i{"use strict";RN.exports=function(r,t,n,a){a=a||r.length;for(var o=new Array(a),i=0;i{"use strict";var Ole=pn().gl_mesh3d,Ble=al().parseColorScale,Ule=ir().isArrayOrTypedArray,Hle=po(),Vle=Li().extractOpts,DN=Vu(),G0=function(e,r){for(var t=r.length-1;t>0;t--){var n=Math.min(r[t],r[t-1]),a=Math.max(r[t],r[t-1]);if(a>n&&n-1}function U(Me,me){return Me===null?me:Me}function X(Me,me,Re){h();var ce=[me],he=[Re];if(F>=1)ce=[me],he=[Re];else if(F>0){var ye=P(me,Re);ce=ye.xyzv,he=ye.abc}for(var Ce=0;Ce-1?Re[qe]:A($e,We,Ue);_e>-1?ze[qe]=_e:ze[qe]=E($e,We,Ue,U(Me,Ge))}D(ze[0],ze[1],ze[2])}}function $(Me,me,Re){var ce=function(he,ye,Ce){X(Me,[me[he],me[ye],me[Ce]],[Re[he],Re[ye],Re[Ce]])};ce(0,1,2),ce(2,3,0)}function j(Me,me,Re){var ce=function(he,ye,Ce){X(Me,[me[he],me[ye],me[Ce]],[Re[he],Re[ye],Re[Ce]])};ce(0,1,2),ce(3,0,1),ce(2,3,0),ce(1,2,3)}function Y(Me,me,Re,ce){var he=Me[3];hece&&(he=ce);for(var ye=(Me[3]-he)/(Me[3]-me[3]+1e-9),Ce=[],ze=0;ze<4;ze++)Ce[ze]=(1-ye)*Me[ze]+ye*me[ze];return Ce}function q(Me,me,Re){return Me>=me&&Me<=Re}function K(Me){var me=.001*(T-x);return Me>=x-me&&Me<=T+me}function ne(Me){for(var me=[],Re=0;Re<4;Re++){var ce=Me[Re];me.push([e._x[ce],e._y[ce],e._z[ce],e._value[ce]])}return me}var Q=3;function ie(Me,me,Re,ce,he,ye){ye||(ye=1),Re=[-1,-1,-1];var Ce=!1,ze=[q(me[0][3],ce,he),q(me[1][3],ce,he),q(me[2][3],ce,he)];if(!ze[0]&&!ze[1]&&!ze[2])return!1;var qe=function(We,Ue,Ge){return K(Ue[0][3])&&K(Ue[1][3])&&K(Ue[2][3])?(X(We,Ue,Ge),!0):yeze?[k,ye]:[ye,S];Ee(me,qe[0],qe[1])}}var $e=[[Math.min(x,S),Math.max(x,S)],[Math.min(k,T),Math.max(k,T)]];["x","y","z"].forEach(function(We){for(var Ue=[],Ge=0;Ge<$e.length;Ge++){var _e=0,De=$e[Ge][0],Ke=$e[Ge][1],Ye=e.slices[We];if(Ye.show&&Ye.fill){L(Ye.fill);var ar=[],se=[],J=[];if(Ye.locations.length)for(var ae=0;ae0&&(se.push(Le.id),We==="x"?J.push([Le.distRatio,0,0]):We==="y"?J.push([0,Le.distRatio,0]):J.push([0,0,Le.distRatio]))}else We==="x"?ar=Be(1,b-1):We==="y"?ar=Be(1,m-1):ar=Be(1,w-1);se.length>0&&(We==="x"?Ue[_e]=Pe(Me,se,De,Ke,J,Ue[_e]):We==="y"?Ue[_e]=Se(Me,se,De,Ke,J,Ue[_e]):Ue[_e]=Ne(Me,se,De,Ke,J,Ue[_e]),_e++),ar.length>0&&(We==="x"?Ue[_e]=de(Me,ar,De,Ke,Ue[_e]):We==="y"?Ue[_e]=ke(Me,ar,De,Ke,Ue[_e]):Ue[_e]=Ae(Me,ar,De,Ke,Ue[_e]),_e++)}var He=e.caps[We];He.show&&He.fill&&(L(He.fill),We==="x"?Ue[_e]=de(Me,[0,b-1],De,Ke,Ue[_e]):We==="y"?Ue[_e]=ke(Me,[0,m-1],De,Ke,Ue[_e]):Ue[_e]=Ae(Me,[0,w-1],De,Ke,Ue[_e]),_e++)}}),l===0&&R(),e._meshX=d,e._meshY=_,e._meshZ=g,e._meshIntensity=c,e._Xs=f,e._Ys=v,e._Zs=p}return we(),e}function Yle(e,r){var t=e.glplot.gl,n=Ole({gl:t}),a=new PN(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}IN.exports={findNearestOnAxis:G0,generateIsoMeshes:FN,createIsosurfaceTrace:Yle}});var zN=pe((ape,NN)=>{"use strict";NN.exports={attributes:pd(),supplyDefaults:r5().supplyDefaults,calc:a5(),colorbar:{min:"cmin",max:"cmax"},plot:md().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:il(),categories:["gl3d","showLegend"],meta:{}}});var ON=pe((ipe,qN)=>{"use strict";qN.exports=zN()});var l5=pe((ope,UN)=>{"use strict";var Wle=ja(),Kt=pd(),Xle=U0(),BN=Sn(),o5=Mt().extendFlat,Zle=zn().overrideAll,xd=UN.exports=Zle(o5({x:Kt.x,y:Kt.y,z:Kt.z,value:Kt.value,isomin:Kt.isomin,isomax:Kt.isomax,surface:Kt.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Kt.slices,caps:Kt.caps,text:Kt.text,hovertext:Kt.hovertext,xhoverformat:Kt.xhoverformat,yhoverformat:Kt.yhoverformat,zhoverformat:Kt.zhoverformat,valuehoverformat:Kt.valuehoverformat,hovertemplate:Kt.hovertemplate},Wle("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Kt.colorbar,opacity:Kt.opacity,opacityscale:Xle.opacityscale,lightposition:Kt.lightposition,lighting:Kt.lighting,flatshading:Kt.flatshading,contour:Kt.contour,hoverinfo:o5({},BN.hoverinfo),showlegend:o5({},BN.showlegend,{dflt:!1})}),"calc","nested");xd.x.editType=xd.y.editType=xd.z.editType=xd.value.editType="calc+clearAxisTypes"});var VN=pe((lpe,HN)=>{"use strict";var Jle=ir(),Kle=l5(),Qle=r5().supplyIsoDefaults,$le=J3().opacityscaleDefaults;HN.exports=function(r,t,n,a){function o(i,l){return Jle.coerce(r,t,Kle,i,l)}Qle(r,t,n,a,o),$le(r,t,a,o)}});var XN=pe((spe,WN)=>{"use strict";var jle=pn().gl_mesh3d,ese=al().parseColorScale,rse=ir().isArrayOrTypedArray,tse=po(),nse=Li().extractOpts,GN=Vu(),s5=md().findNearestOnAxis,ase=md().generateIsoMeshes;function YN(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var u5=YN.prototype;u5.handlePick=function(e){if(e.object===this.mesh){var r=e.data.index,t=this.data._meshX[r],n=this.data._meshY[r],a=this.data._meshZ[r],o=this.data._Ys.length,i=this.data._Zs.length,l=s5(t,this.data._Xs).id,u=s5(n,this.data._Ys).id,s=s5(a,this.data._Zs).id,f=e.index=s+i*u+i*o*l;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var v=this.data.hovertext||this.data.text;return rse(v)&&v[f]!==void 0?e.textLabel=v[f]:v&&(e.textLabel=v),!0}};u5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=ase(e);function n(u,s,f,v){return s.map(function(p){return u.d2l(p,0,v)*f})}var a=GN(n(t.xaxis,e._meshX,r.dataScale[0],e.xcalendar),n(t.yaxis,e._meshY,r.dataScale[1],e.ycalendar),n(t.zaxis,e._meshZ,r.dataScale[2],e.zcalendar)),o=GN(e._meshI,e._meshJ,e._meshK),i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:tse(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=nse(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=ese(e),this.mesh.update(i)};u5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function ise(e,r){var t=e.glplot.gl,n=jle({gl:t}),a=new YN(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}WN.exports=ise});var JN=pe((upe,ZN)=>{"use strict";ZN.exports={attributes:l5(),supplyDefaults:VN(),calc:a5(),colorbar:{min:"cmin",max:"cmax"},plot:XN(),moduleType:"trace",name:"volume",basePlotModule:il(),categories:["gl3d","showLegend"],meta:{}}});var QN=pe((fpe,KN)=>{"use strict";KN.exports=JN()});var ez=pe((cpe,jN)=>{"use strict";var ose=Er(),$N=ir(),lse=Ei(),sse=Uu();jN.exports=function(r,t,n,a){function o(f,v){return $N.coerce(r,t,sse,f,v)}function i(f){var v=f.map(function(p){var b=o(p);return b&&$N.isArrayOrTypedArray(b)?b:null});return v.every(function(p){return p&&p.length===v[0].length})&&v}var l=i(["x","y","z"]);if(!l){t.visible=!1;return}if(i(["i","j","k"]),t.i&&(!t.j||!t.k)||t.j&&(!t.k||!t.i)||t.k&&(!t.i||!t.j)){t.visible=!1;return}var u=ose.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y","z"],a),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(f){o(f)});var s=o("contour.show");s&&(o("contour.color"),o("contour.width")),"intensity"in r?(o("intensity"),o("intensitymode"),lse(r,t,a,o,{prefix:"",cLetter:"c"})):(t.showscale=!1,"facecolor"in r?o("facecolor"):"vertexcolor"in r?o("vertexcolor"):o("color",n)),o("text"),o("hovertext"),o("hovertemplate"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var tz=pe((vpe,rz)=>{"use strict";var use=zo();rz.exports=function(r,t){t.intensity&&use(r,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}});var lz=pe((hpe,oz)=>{"use strict";var fse=pn().gl_mesh3d,cse=pn().delaunay_triangulate,vse=pn().alpha_shape,hse=pn().convex_hull,dse=al().parseColorScale,pse=ir().isArrayOrTypedArray,h5=po(),gse=Li().extractOpts,nz=Vu();function iz(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var d5=iz.prototype;d5.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]];var t=this.data.hovertext||this.data.text;return pse(t)&&t[r]!==void 0?e.textLabel=t[r]:t&&(e.textLabel=t),!0}};function az(e){for(var r=[],t=e.length,n=0;n=r-.5)return!1;return!0}d5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=e;var n=e.x.length,a=nz(f5(t.xaxis,e.x,r.dataScale[0],e.xcalendar),f5(t.yaxis,e.y,r.dataScale[1],e.ycalendar),f5(t.zaxis,e.z,r.dataScale[2],e.zcalendar)),o;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!v5(e.i,n)||!v5(e.j,n)||!v5(e.k,n))return;o=nz(c5(e.i),c5(e.j),c5(e.k))}else e.alphahull===0?o=hse(a):e.alphahull>0?o=vse(e.alphahull,a):o=yse(e.delaunayaxis,a);var i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:h5(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var l=gse(e);this.color="#fff";var u=e.intensitymode;i[u+"Intensity"]=e.intensity,i[u+"IntensityBounds"]=[l.min,l.max],i.colormap=dse(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],i.vertexColors=az(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],i.cellColors=az(e.facecolor)):(this.color=e.color,i.meshColor=h5(e.color));this.mesh.update(i)};d5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function mse(e,r){var t=e.glplot.gl,n=fse({gl:t}),a=new iz(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}oz.exports=mse});var uz=pe((dpe,sz)=>{"use strict";sz.exports={attributes:Uu(),supplyDefaults:ez(),calc:tz(),colorbar:{min:"cmin",max:"cmax"},plot:lz(),moduleType:"trace",name:"mesh3d",basePlotModule:il(),categories:["gl3d","showLegend"],meta:{}}});var cz=pe((ppe,fz)=>{"use strict";fz.exports=uz()});var g5=pe((gpe,hz)=>{"use strict";var xse=ja(),Gu=ro().axisHoverFormat,bse=ha().hovertemplateAttrs,_se=Uu(),vz=Sn(),p5=Mt().extendFlat,bd={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:bse({editType:"calc"},{keys:["norm"]}),uhoverformat:Gu("u",1),vhoverformat:Gu("v",1),whoverformat:Gu("w",1),xhoverformat:Gu("x"),yhoverformat:Gu("y"),zhoverformat:Gu("z"),showlegend:p5({},vz.showlegend,{dflt:!1})};p5(bd,xse("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var wse=["opacity","lightposition","lighting"];wse.forEach(function(e){bd[e]=_se[e]});bd.hoverinfo=p5({},vz.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});hz.exports=bd});var pz=pe((ype,dz)=>{"use strict";var Mse=ir(),Tse=Ei(),Ase=g5();dz.exports=function(r,t,n,a){function o(b,m){return Mse.coerce(r,t,Ase,b,m)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),v=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!v||!v.length){t.visible=!1;return}var p=o("sizemode");o("sizeref",p==="raw"?1:.5),o("anchor"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),Tse(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var yz=pe((mpe,gz)=>{"use strict";var kse=zo();gz.exports=function(r,t){for(var n=t.u,a=t.v,o=t.w,i=Math.min(t.x.length,t.y.length,t.z.length,n.length,a.length,o.length),l=-1/0,u=1/0,s=0;s{"use strict";var Sse=pn().gl_cone3d,Cse=pn().gl_cone3d.createConeMesh,Ese=ir().simpleMap,Lse=al().parseColorScale,Rse=Li().extractOpts,Dse=ir().isArrayOrTypedArray,mz=Vu();function xz(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var y5=xz.prototype;y5.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index,t=this.data.x[r],n=this.data.y[r],a=this.data.z[r],o=this.data.u[r],i=this.data.v[r],l=this.data.w[r];e.traceCoordinate=[t,n,a,o,i,l,Math.sqrt(o*o+i*i+l*l)];var u=this.data.hovertext||this.data.text;return Dse(u)&&u[r]!==void 0?e.textLabel=u[r]:u&&(e.textLabel=u),!0}};var Pse={xaxis:0,yaxis:1,zaxis:2},Fse={tip:1,tail:0,cm:.25,center:.5},Ise={tip:1,tail:1,cm:.75,center:.5};function bz(e,r){var t=e.fullSceneLayout,n=e.dataScale,a={};function o(f,v){var p=t[v],b=n[Pse[v]];return Ese(f,function(m){return p.d2l(m)*b})}a.vectors=mz(o(r.u,"xaxis"),o(r.v,"yaxis"),o(r.w,"zaxis"),r._len),a.positions=mz(o(r.x,"xaxis"),o(r.y,"yaxis"),o(r.z,"zaxis"),r._len);var i=Rse(r);a.colormap=Lse(r),a.vertexIntensityBounds=[i.min/r._normMax,i.max/r._normMax],a.coneOffset=Fse[r.anchor];var l=r.sizemode;l==="scaled"?a.coneSize=r.sizeref||.5:l==="absolute"?a.coneSize=r.sizeref&&r._normMax?r.sizeref/r._normMax:.5:l==="raw"&&(a.coneSize=r.sizeref),a.coneSizemode=l;var u=Sse(a),s=r.lightposition;return u.lightPosition=[s.x,s.y,s.z],u.ambient=r.lighting.ambient,u.diffuse=r.lighting.diffuse,u.specular=r.lighting.specular,u.roughness=r.lighting.roughness,u.fresnel=r.lighting.fresnel,u.opacity=r.opacity,r._pad=Ise[r.anchor]*u.vectorScale*u.coneScale*r._normMax,u}y5.update=function(e){this.data=e;var r=bz(this.scene,e);this.mesh.update(r)};y5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Nse(e,r){var t=e.glplot.gl,n=bz(e,r),a=Cse(t,n),o=new xz(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}_z.exports=Nse});var Tz=pe((bpe,Mz)=>{"use strict";Mz.exports={moduleType:"trace",name:"cone",basePlotModule:il(),categories:["gl3d","showLegend"],attributes:g5(),supplyDefaults:pz(),colorbar:{min:"cmin",max:"cmax"},calc:yz(),plot:wz(),eventData:function(e,r){return e.norm=r.traceCoordinate[6],e},meta:{}}});var kz=pe((_pe,Az)=>{"use strict";Az.exports=Tz()});var x5=pe((wpe,Cz)=>{"use strict";var zse=ja(),Yu=ro().axisHoverFormat,qse=ha().hovertemplateAttrs,Ose=Uu(),Sz=Sn(),m5=Mt().extendFlat,_d={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:qse({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:Yu("u",1),vhoverformat:Yu("v",1),whoverformat:Yu("w",1),xhoverformat:Yu("x"),yhoverformat:Yu("y"),zhoverformat:Yu("z"),showlegend:m5({},Sz.showlegend,{dflt:!1})};m5(_d,zse("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var Bse=["opacity","lightposition","lighting"];Bse.forEach(function(e){_d[e]=Ose[e]});_d.hoverinfo=m5({},Sz.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});Cz.exports=_d});var Lz=pe((Mpe,Ez)=>{"use strict";var Use=ir(),Hse=Ei(),Vse=x5();Ez.exports=function(r,t,n,a){function o(p,b){return Use.coerce(r,t,Vse,p,b)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),v=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!v||!v.length){t.visible=!1;return}o("starts.x"),o("starts.y"),o("starts.z"),o("maxdisplayed"),o("sizeref"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),Hse(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var qz=pe((Tpe,zz)=>{"use strict";var Pz=pn().gl_streamtube3d,Gse=Pz.createTubeMesh,Yse=ir(),Wse=al().parseColorScale,Xse=Li().extractOpts,Rz=Vu(),Fz={xaxis:0,yaxis:1,zaxis:2};function Iz(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var _5=Iz.prototype;_5.handlePick=function(e){var r=this.scene.fullSceneLayout,t=this.scene.dataScale;function n(i,l){var u=r[l],s=t[Fz[l]];return u.l2c(i)/s}if(e.object===this.mesh){var a=e.data.position,o=e.data.velocity;return e.traceCoordinate=[n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),n(o[0],"xaxis"),n(o[1],"yaxis"),n(o[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function Dz(e){var r=e.length,t;return r>2?t=e.slice(1,r-1):r===2?t=[(e[0]+e[1])/2]:t=e,t}function b5(e){var r=e.length;return r===1?[.5,.5]:[e[1]-e[0],e[r-1]-e[r-2]]}function Nz(e,r){var t=e.fullSceneLayout,n=e.dataScale,a=r._len,o={};function i(R,E){var D=t[E],N=n[Fz[E]];return Yse.simpleMap(R,function(I){return D.d2l(I)*N})}if(o.vectors=Rz(i(r._u,"xaxis"),i(r._v,"yaxis"),i(r._w,"zaxis"),a),!a)return{positions:[],cells:[]};var l=i(r._Xs,"xaxis"),u=i(r._Ys,"yaxis"),s=i(r._Zs,"zaxis");o.meshgrid=[l,u,s],o.gridFill=r._gridFill;var f=r._slen;if(f)o.startingPositions=Rz(i(r._startsX,"xaxis"),i(r._startsY,"yaxis"),i(r._startsZ,"zaxis"));else{for(var v=u[0],p=Dz(l),b=Dz(s),m=new Array(p.length*b.length),w=0,M=0;M{"use strict";Oz.exports={moduleType:"trace",name:"streamtube",basePlotModule:il(),categories:["gl3d","showLegend"],attributes:x5(),supplyDefaults:Lz(),colorbar:{min:"cmin",max:"cmax"},calc:gd().calc,plot:qz(),eventData:function(e,r){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=r.traceCoordinate[3],e.tubev=r.traceCoordinate[4],e.tubew=r.traceCoordinate[5],e.norm=r.traceCoordinate[6],e.divergence=r.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var Hz=pe((kpe,Uz)=>{"use strict";Uz.exports=Bz()});var Dn=pe((Spe,Gz)=>{"use strict";var Vz=Object.getOwnPropertySymbols,Jse=Object.prototype.hasOwnProperty,Kse=Object.prototype.propertyIsEnumerable;function Qse(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function $se(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(o){return!1}}Gz.exports=$se()?Object.assign:function(e,r){for(var t,n=Qse(e),a,o=1;o{var Md=Dn();function Yz(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}Md(Yz.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var n="",a=0;t>0;){var o=t%10;n=(o===0?"":e[o]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function w5(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function wd(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Md(w5.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Wr.local.differentCalendars||Wr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+wd(Math.abs(this.year()),4)+"-"+wd(this.month(),2)+"-"+wd(this.day(),2)}});function M5(){this.shortYearCutoff="+10"}Md(M5.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new w5(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+wd(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Wr.local.invalidMonth||Wr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Wr.local.invalidMonth||Wr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var o=e.year()+(t==="y"?r:0),i=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;iv-1+f.minMonth;)o++,i-=v,v=f.monthsInYear(o)};t==="y"?(e.month()!==this.fromMonthOfYear(o,i)&&(i=this.newDate(o,e.month(),this.minDay).monthOfYear()),i=Math.min(i,this.monthsInYear(o)),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i))));var u=[o,this.fromMonthOfYear(o,i),a];return this._validateLevel--,u}catch(s){throw this._validateLevel--,s}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],o=t<0?-1:1;r=this._add(e,t*a[0]+o*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),o=t==="d"?r:e.day();return(t==="y"||t==="m")&&(o=Math.min(o,this.daysInMonth(n,a))),e.date(n,a,o)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),s=a-(u>2.5?4716:4715);return s<=0&&s--,this.newDate(s,u,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Wr=Wz.exports=new Yz;Wr.cdate=w5;Wr.baseCalendar=M5;Wr.calendars.gregorian=T5});var Xz=pe(()=>{var A5=Dn(),gn=Pn();A5(gn.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});gn.local=gn.regionalOptions[""];A5(gn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});A5(gn.baseCalendar.prototype,{UNIX_EPOCH:gn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:gn.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw gn.local.invalidFormat||gn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,o=t.monthNumbers||this.local.monthNumbers,i=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,u=t.calculateWeek||this.local.calculateWeek,s=function(x,T){for(var d=1;S+d1},f=function(x,T,d,_){var g=""+T;if(s(x,_))for(;g.length1},k=function(R,E){var D=y(R,E),N=[2,3,D?4:2,D?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],I=new RegExp("^-?\\d{1,"+N+"}"),F=r.substring(g).match(I);if(!F)throw(gn.local.missingNumberAt||gn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,g);return g+=F[0].length,parseInt(F[0],10)},S=this,x=function(){if(typeof l=="function"){y("m");var R=l.call(S,r.substring(g));return g+=R.length,R}return k("m")},T=function(R,E,D,N){for(var I=y(R,N)?D:E,F=0;F-1){p=1,b=m;for(var h=this.daysInMonth(v,p);b>h;h=this.daysInMonth(v,p))p++,b-=h}return f>-1?this.fromJD(f):this.newDate(v,p,b)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var o=this,i=function(l){try{return o.parseDate(n,l,a)}catch(v){}l=l.toLowerCase();for(var u=(l.match(/^c/)&&t?t.newDate():null)||o.today(),s=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=s.exec(l);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=s.exec(l);return u};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?i(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:o.today().add(e,"d"):o.newDate(e),e}})});var Zz=pe(()=>{var sl=Pn(),jse=Dn(),k5=sl.instance();function Td(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Td.prototype=new sl.baseCalendar;jse(Td.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(rue);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),o=""+this.toChineseMonth(n,a);return r&&o.length<2&&(o="0"+o),this.isIntercalaryMonth(n,a)&&(o+="i"),o},monthNames:function(e){if(typeof e=="string"){var r=e.match(tue);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(nue);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var a=r[r.length-1];n=a==="i"||a==="I"}var o=this.toMonthIndex(e,t,n);return o},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw sl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o;return n?!t&&r<=n?o=r-1:o=r:o=r-1,o},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw sl.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var n=this._validateYear(e,sl.local.invalidyear),a=fl[n-fl[0]],o=a>>9&4095,i=a>>5&15,l=a&31,u;u=k5.newDate(o,i,l),u.add(4-(u.dayOfWeek()||7),"d");var s=this.toJD(e,r,t)-u.toJD();return 1+Math.floor(s/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=ul[e-ul[0]],n=t>>13,a=n?12:11;if(r>a)throw sl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o=t&1<<12-r?30:29;return o},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,o,t,sl.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),o=this.toChineseMonth(e,r),i=iue(e,o,t,a);return k5.toJD(i.year,i.month,i.day)},fromJD:function(e){var r=k5.fromJD(e),t=aue(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(eue),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],o=this.toMonthIndex(t,n,a),i=+r[4];return this.newDate(t,o,i)},add:function(e,r,t){var n=e.year(),a=e.month(),o=this.isIntercalaryMonth(n,a),i=this.toChineseMonth(n,a),l=Object.getPrototypeOf(Td.prototype).add.call(this,e,r,t);if(t==="y"){var u=l.year(),s=l.month(),f=this.isIntercalaryMonth(u,i),v=o&&f?this.toMonthIndex(u,i,!0):this.toMonthIndex(u,i,!1);v!==s&&l.month(v)}return l}});var eue=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,rue=/^\d?\d[iI]?/m,tue=/^闰?十?[一二三四五六七八九]?月/m,nue=/^闰?十?[一二三四五六七八九]?/m;sl.calendars.chinese=Td;var ul=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],fl=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function aue(e,r,t,n){var a,o;if(typeof e=="object")a=e,o=r||{};else{var i=typeof e=="number"&&e>=1888&&e<=2111;if(!i)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=31;if(!u)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},o=n||{}}var s=fl[a.year-fl[0]],f=a.year<<9|a.month<<5|a.day;o.year=f>=s?a.year:a.year-1,s=fl[o.year-fl[0]];var v=s>>9&4095,p=s>>5&15,b=s&31,m,w=new Date(v,p-1,b),M=new Date(a.year,a.month-1,a.day);m=Math.round((M-w)/(24*3600*1e3));var y=ul[o.year-ul[0]],k;for(k=0;k<13;k++){var S=y&1<<12-k?30:29;if(m>13;return!x||k=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var u=typeof r=="number"&&r>=1&&r<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=30;if(!s)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,o=n):(f=!!n,o=a||{}),i={year:e,month:r,day:t,isIntercalary:f}}var v;v=i.day-1;var p=ul[i.year-ul[0]],b=p>>13,m;b&&(i.month>b||i.isIntercalary)?m=i.month:m=i.month-1;for(var w=0;w>9&4095,S=y>>5&15,x=y&31,T=new Date(k,S-1,x+v);return o.year=T.getFullYear(),o.month=1+T.getMonth(),o.day=T.getDate(),o}});var Jz=pe(()=>{var vs=Pn(),oue=Dn();function S5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S5.prototype=new vs.baseCalendar;oue(S5.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,vs.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vs.local.invalidYear||vs.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,vs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,vs.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});vs.calendars.coptic=S5});var Kz=pe(()=>{var mo=Pn(),lue=Dn();function C5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C5.prototype=new mo.baseCalendar;lue(C5.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,mo.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,mo.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,mo.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,mo.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,mo.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,mo.local.invalidDate);return{century:sue[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,mo.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var sue={20:"Fruitbat",21:"Anchovy"};mo.calendars.discworld=C5});var Qz=pe(()=>{var hs=Pn(),uue=Dn();function E5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E5.prototype=new hs.baseCalendar;uue(E5.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,hs.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,hs.local.invalidYear||hs.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,hs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,hs.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});hs.calendars.ethiopian=E5});var $z=pe(()=>{var cl=Pn(),fue=Dn();function L5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}L5.prototype=new cl.baseCalendar;fue(L5.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Ad(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,cl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Ad(this.daysInYear(e),10)===5?30:r===9&&Ad(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,cl.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,cl.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var i=7;i<=this.monthsInYear(e);i++)o+=this.daysInMonth(e,i);for(var i=1;i=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function Ad(e,r){return e-r*Math.floor(e/r)}cl.calendars.hebrew=L5});var jz=pe(()=>{var Y0=Pn(),cue=Dn();function R5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R5.prototype=new Y0.baseCalendar;cue(R5.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Y0.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Y0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Y0.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});Y0.calendars.islamic=R5});var eq=pe(()=>{var W0=Pn(),vue=Dn();function D5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D5.prototype=new W0.baseCalendar;vue(D5.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,W0.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,W0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,W0.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),o=Math.floor((t-a)/30.6001),i=o-Math.floor(o<14?1:13),l=n-Math.floor(i>2?4716:4715),u=t-a-Math.floor(30.6001*o);return l<=0&&l--,this.newDate(l,i,u)}});W0.calendars.julian=D5});var tq=pe(()=>{var Ya=Pn(),hue=Dn();function F5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F5.prototype=new Ya.baseCalendar;hue(F5.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ya.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ya.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ya.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Ya.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ya.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Ya.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Ya.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Ya.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Ya.local.invalidDate),a=n.toJD(),o=this._toHaab(a),i=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[o[0]-1],haabMonth:o[0],haabDay:o[1],tzolkinDayName:this.local.tzolkinMonths[i[0]-1],tzolkinDay:i[0],tzolkinTrecena:i[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=P5(e+8+17*20,365);return[Math.floor(r/20)+1,P5(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[rq(e+20,20),rq(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,Ya.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),n=e%20;return this.newDate(r,t,n)}});function P5(e,r){return e-r*Math.floor(e/r)}function rq(e,r){return P5(e-1,r)+1}Ya.calendars.mayan=F5});var aq=pe(()=>{var ds=Pn(),due=Dn();function I5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I5.prototype=new ds.baseCalendar;var nq=ds.instance("gregorian");due(I5.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ds.local.invalidYear||ds.regionalOptions[""].invalidYear);return nq.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ds.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,ds.local.invalidMonth),a=n.year();a<0&&a++;for(var o=n.day(),i=1;i=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});ds.calendars.nanakshahi=I5});var iq=pe(()=>{var ps=Pn(),pue=Dn();function N5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N5.prototype=new ps.baseCalendar;pue(N5.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ps.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,ps.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var n=this._validate(e,r,t,ps.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=ps.instance(),o=0,i=r,l=e;this._createMissingCalendarData(e);var u=e-(i>9||i===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(o=t,i--);i!==9;)i<=0&&(i=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][i],i--;return r===9?(o+=t-this.NEPALI_CALENDAR_DATA[l][0],o<0&&(o+=a.daysInYear(u))):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(u,1,1).add(o,"d").toJD()},fromJD:function(e){var r=ps.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),o=n+56;this._createMissingCalendarData(o);for(var i=9,l=this.NEPALI_CALENDAR_DATA[o][0],u=this.NEPALI_CALENDAR_DATA[o][i]-l+1;a>u;)i++,i>12&&(i=1,o++),u+=this.NEPALI_CALENDAR_DATA[o][i];var s=this.NEPALI_CALENDAR_DATA[o][i]-(u-a);return this.newDate(o,i,s)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Wu=Pn(),gue=Dn();function Sd(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function kd(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),o=n-Math.floor(n),i=a-Math.floor(a);return o>i}Sd.prototype=new Wu.baseCalendar;gue(Sd.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wu.local.invalidYear);return kd(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Wu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Wu.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var o=1;o0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,kd(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),o=e-this.toJD(t,a,1)+1;return this.newDate(t,a,o)}});Wu.calendars.persian=Sd;Wu.calendars.jalali=Sd});var lq=pe(()=>{var gs=Pn(),yue=Dn(),Cd=gs.instance();function z5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z5.prototype=new gs.baseCalendar;yue(z5.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,gs.local.invalidYear),t=this._t2gYear(r.year());return Cd.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,gs.local.invalidYear),a=this._t2gYear(n.year());return Cd.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,gs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,gs.local.invalidDate),a=this._t2gYear(n.year());return Cd.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Cd.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});gs.calendars.taiwan=z5});var sq=pe(()=>{var ys=Pn(),mue=Dn(),Ed=ys.instance();function q5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q5.prototype=new ys.baseCalendar;mue(q5.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ys.local.invalidYear),t=this._t2gYear(r.year());return Ed.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,ys.local.invalidYear),a=this._t2gYear(n.year());return Ed.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ys.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,ys.local.invalidDate),a=this._t2gYear(n.year());return Ed.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Ed.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});ys.calendars.thai=q5});var uq=pe(()=>{var ms=Pn(),xue=Dn();function O5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O5.prototype=new ms.baseCalendar;xue(O5.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ms.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,ms.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,o=0;on)return vl[a]-vl[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,ms.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,o=n.day()+vl[a-1]-1;return o+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;nr);n++)t++;var a=t+15292,o=Math.floor((a-1)/12),i=o+1,l=a-12*o,u=r-vl[t-1]+1;return this.newDate(i,l,u)},isValid:function(e,r,t){var n=ms.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=ms.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});ms.calendars.ummalqura=O5;var vl=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var cq=pe((ige,fq)=>{"use strict";fq.exports=Pn();Xz();Zz();Jz();Kz();Qz();$z();jz();eq();tq();aq();iq();oq();lq();sq();uq()});var mq=pe((oge,yq)=>{"use strict";var hq=cq(),X0=ir(),dq=an(),bue=dq.EPOCHJD,_ue=dq.ONEDAY,H5={valType:"enumerated",values:X0.sortObjectKeys(hq.calendars),editType:"calc",dflt:"gregorian"},pq=function(e,r,t,n){var a={};return a[t]=H5,X0.coerce(e,r,a,t,n)},wue=function(e,r,t,n){for(var a=0;a{"use strict";xq.exports=mq()});var Cue=pe((sge,wq)=>{var _q=bF();_q.register([KI(),_N(),ON(),QN(),cz(),kz(),Hz(),bq()]);wq.exports=_q});return Cue();})(); +`]);o.createShader=function(_){var m=l(_,s,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m.attributes.normal.location=2,m},o.createPickShader=function(_){var m=l(_,s,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m.attributes.normal.location=2,m},o.createContourShader=function(_){var m=l(_,v,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m},o.createPickContourShader=function(_){var m=l(_,v,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m}},9499:function(a,o,i){"use strict";a.exports=ie;var l=i(8828),u=i(2762),s=i(8116),f=i(7766),v=i(1888),p=i(6729),_=i(5298),m=i(9994),w=i(9618),T=i(3711),y=i(6760),k=i(7608),S=i(2478),x=i(6199),M=i(990),d=M.createShader,b=M.createContourShader,g=M.createPickShader,c=M.createPickContourShader,A=4*10,h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],R=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],E=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var ee=0;ee<3;++ee){var V=E[ee],re=(ee+1)%3,H=(ee+2)%3;V[re+0]=1,V[H+3]=1,V[ee+6]=1}})();function D(ee,V,re,H,te){this.position=ee,this.index=V,this.uv=re,this.level=H,this.dataCoordinate=te}var N=256;function F(ee,V,re,H,te,ue,de,ke,Ae,ve,Te,Ee,Pe,Se,Ne){this.gl=ee,this.shape=V,this.bounds=re,this.objectOffset=Ne,this.intensityBounds=[],this._shader=H,this._pickShader=te,this._coordinateBuffer=ue,this._vao=de,this._colorMap=ke,this._contourShader=Ae,this._contourPickShader=ve,this._contourBuffer=Te,this._contourVAO=Ee,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new D([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=Pe,this._dynamicVAO=Se,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[w(v.mallocFloat(1024),[0,0]),w(v.mallocFloat(1024),[0,0]),w(v.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var I=F.prototype;I.genColormap=function(ee,V){var re=!1,H=m([p({colormap:ee,nshades:N,format:"rgba"}).map(function(te,ue){var de=V?L(ue/255,V):te[3];return de<1&&(re=!0),[te[0],te[1],te[2],255*de]})]);return _.divseq(H,255),this.hasAlphaScale=re,H},I.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},I.isOpaque=function(){return!this.isTransparent()},I.pickSlots=1,I.setPickBase=function(ee){this.pickId=ee};function L(ee,V){if(!V||!V.length)return 1;for(var re=0;reee&&re>0){var H=(V[re][0]-ee)/(V[re][0]-V[re-1][0]);return V[re][1]*(1-H)+H*V[re-1][1]}}return 1}var P=[0,0,0],O={showSurface:!1,showContour:!1,projections:[h.slice(),h.slice(),h.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function U(ee,V){var re,H,te,ue=V.axes&&V.axes.lastCubeProps.axis||P,de=V.showSurface,ke=V.showContour;for(re=0;re<3;++re)for(de=de||V.surfaceProject[re],H=0;H<3;++H)ke=ke||V.contourProject[re][H];for(re=0;re<3;++re){var Ae=O.projections[re];for(H=0;H<16;++H)Ae[H]=0;for(H=0;H<4;++H)Ae[5*H]=1;Ae[5*re]=0,Ae[12+re]=V.axesBounds[+(ue[re]>0)][re],y(Ae,ee.model,Ae);var ve=O.clipBounds[re];for(te=0;te<2;++te)for(H=0;H<3;++H)ve[te][H]=ee.clipBounds[te][H];ve[0][re]=-1e8,ve[1][re]=1e8}return O.showSurface=de,O.showContour=ke,O}var X={model:h,view:h,projection:h,inverseModel:h.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},$=h.slice(),j=[1,0,0,0,1,0,0,0,1];function Y(ee,V){ee=ee||{};var re=this.gl;re.disable(re.CULL_FACE),this._colorMap.bind(0);var H=X;H.model=ee.model||h,H.view=ee.view||h,H.projection=ee.projection||h,H.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],H.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],H.objectOffset=this.objectOffset,H.contourColor=this.contourColor[0],H.inverseModel=k(H.inverseModel,H.model);for(var te=0;te<2;++te)for(var ue=H.clipBounds[te],de=0;de<3;++de)ue[de]=Math.min(Math.max(this.clipBounds[te][de],-1e8),1e8);H.kambient=this.ambientLight,H.kdiffuse=this.diffuseLight,H.kspecular=this.specularLight,H.roughness=this.roughness,H.fresnel=this.fresnel,H.opacity=this.opacity,H.height=0,H.permutation=j,H.vertexColor=this.vertexColor;var ke=$;for(y(ke,H.view,H.model),y(ke,H.projection,ke),k(ke,ke),te=0;te<3;++te)H.eyePosition[te]=ke[12+te]/ke[15];var Ae=ke[15];for(te=0;te<3;++te)Ae+=this.lightPosition[te]*ke[4*te+3];for(te=0;te<3;++te){var ve=ke[12+te];for(de=0;de<3;++de)ve+=ke[4*de+te]*this.lightPosition[de];H.lightPosition[te]=ve/Ae}var Te=U(H,this);if(Te.showSurface){for(this._shader.bind(),this._shader.uniforms=H,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(re.TRIANGLES,this._vertexCount),te=0;te<3;++te)!this.surfaceProject[te]||!this.vertexCount||(this._shader.uniforms.model=Te.projections[te],this._shader.uniforms.clipBounds=Te.clipBounds[te],this._vao.draw(re.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Te.showContour){var Ee=this._contourShader;H.kambient=1,H.kdiffuse=0,H.kspecular=0,H.opacity=1,Ee.bind(),Ee.uniforms=H;var Pe=this._contourVAO;for(Pe.bind(),te=0;te<3;++te)for(Ee.uniforms.permutation=E[te],re.lineWidth(this.contourWidth[te]*this.pixelRatio),de=0;de>4)/16)/255,te=Math.floor(H),ue=H-te,de=V[1]*(ee.value[1]+(ee.value[2]&15)/16)/255,ke=Math.floor(de),Ae=de-ke;te+=1,ke+=1;var ve=re.position;ve[0]=ve[1]=ve[2]=0;for(var Te=0;Te<2;++Te)for(var Ee=Te?ue:1-ue,Pe=0;Pe<2;++Pe)for(var Se=Pe?Ae:1-Ae,Ne=te+Te,Be=ke+Pe,ge=Ee*Se,we=0;we<3;++we)ve[we]+=this._field[we].get(Ne,Be)*ge;for(var Me=this._pickResult.level,me=0;me<3;++me)if(Me[me]=S.le(this.contourLevels[me],ve[me]),Me[me]<0)this.contourLevels[me].length>0&&(Me[me]=0);else if(Me[me]Math.abs(ce-ve[me])&&(Me[me]+=1)}for(re.index[0]=ue<.5?te:te+1,re.index[1]=Ae<.5?ke:ke+1,re.uv[0]=H/V[0],re.uv[1]=de/V[1],we=0;we<3;++we)re.dataCoordinate[we]=this._field[we].get(re.index[0],re.index[1]);return re},I.padField=function(ee,V){var re=V.shape.slice(),H=ee.shape.slice();_.assign(ee.lo(1,1).hi(re[0],re[1]),V),_.assign(ee.lo(1).hi(re[0],1),V.hi(re[0],1)),_.assign(ee.lo(1,H[1]-1).hi(re[0],1),V.lo(0,re[1]-1).hi(re[0],1)),_.assign(ee.lo(0,1).hi(1,re[1]),V.hi(1)),_.assign(ee.lo(H[0]-1,1).hi(1,re[1]),V.lo(re[0]-1)),ee.set(0,0,V.get(0,0)),ee.set(0,H[1]-1,V.get(0,re[1]-1)),ee.set(H[0]-1,0,V.get(re[0]-1,0)),ee.set(H[0]-1,H[1]-1,V.get(re[0]-1,re[1]-1))};function K(ee,V){return Array.isArray(ee)?[V(ee[0]),V(ee[1]),V(ee[2])]:[V(ee),V(ee),V(ee)]}function ne(ee){return Array.isArray(ee)?ee.length===3?[ee[0],ee[1],ee[2],1]:[ee[0],ee[1],ee[2],ee[3]]:[0,0,0,1]}function Q(ee){if(Array.isArray(ee)){if(Array.isArray(ee))return[ne(ee[0]),ne(ee[1]),ne(ee[2])];var V=ne(ee);return[V.slice(),V.slice(),V.slice()]}}I.update=function(ee){ee=ee||{},this.objectOffset=ee.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in ee&&(this.contourWidth=K(ee.contourWidth,Number)),"showContour"in ee&&(this.showContour=K(ee.showContour,Boolean)),"showSurface"in ee&&(this.showSurface=!!ee.showSurface),"contourTint"in ee&&(this.contourTint=K(ee.contourTint,Boolean)),"contourColor"in ee&&(this.contourColor=Q(ee.contourColor)),"contourProject"in ee&&(this.contourProject=K(ee.contourProject,function(Ma){return K(Ma,Boolean)})),"surfaceProject"in ee&&(this.surfaceProject=ee.surfaceProject),"dynamicColor"in ee&&(this.dynamicColor=Q(ee.dynamicColor)),"dynamicTint"in ee&&(this.dynamicTint=K(ee.dynamicTint,Number)),"dynamicWidth"in ee&&(this.dynamicWidth=K(ee.dynamicWidth,Number)),"opacity"in ee&&(this.opacity=ee.opacity),"opacityscale"in ee&&(this.opacityscale=ee.opacityscale),"colorBounds"in ee&&(this.colorBounds=ee.colorBounds),"vertexColor"in ee&&(this.vertexColor=ee.vertexColor?1:0),"colormap"in ee&&this._colorMap.setPixels(this.genColormap(ee.colormap,this.opacityscale));var V=ee.field||ee.coords&&ee.coords[2]||null,re=!1;if(V||(this._field[2].shape[0]||this._field[2].shape[2]?V=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):V=this._field[2].hi(0,0)),"field"in ee||"coords"in ee){var H=(V.shape[0]+2)*(V.shape[1]+2);H>this._field[2].data.length&&(v.freeFloat(this._field[2].data),this._field[2].data=v.mallocFloat(l.nextPow2(H))),this._field[2]=w(this._field[2].data,[V.shape[0]+2,V.shape[1]+2]),this.padField(this._field[2],V),this.shape=V.shape.slice();for(var te=this.shape,ue=0;ue<2;++ue)this._field[2].size>this._field[ue].data.length&&(v.freeFloat(this._field[ue].data),this._field[ue].data=v.mallocFloat(this._field[2].size)),this._field[ue]=w(this._field[ue].data,[te[0]+2,te[1]+2]);if(ee.coords){var de=ee.coords;if(!Array.isArray(de)||de.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ue=0;ue<2;++ue){var ke=de[ue];for(Pe=0;Pe<2;++Pe)if(ke.shape[Pe]!==te[Pe])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ue],ke)}}else if(ee.ticks){var Ae=ee.ticks;if(!Array.isArray(Ae)||Ae.length!==2)throw new Error("gl-surface: invalid ticks");for(ue=0;ue<2;++ue){var ve=Ae[ue];if((Array.isArray(ve)||ve.length)&&(ve=w(ve)),ve.shape[0]!==te[ue])throw new Error("gl-surface: invalid tick length");var Te=w(ve.data,te);Te.stride[ue]=ve.stride[0],Te.stride[ue^1]=0,this.padField(this._field[ue],Te)}}else{for(ue=0;ue<2;++ue){var Ee=[0,0];Ee[ue]=1,this._field[ue]=w(this._field[ue].data,[te[0]+2,te[1]+2],Ee,0)}this._field[0].set(0,0,0);for(var Pe=0;Pe0){for(var Qn=0;Qn<5;++Qn)br.pop();Ke-=1}continue e}}}nt.push(Ke)}this._contourOffsets[Sr]=Ar,this._contourCounts[Sr]=nt}var In=v.mallocFloat(br.length);for(ue=0;ueD||R<0||R>D)throw new Error("gl-texture2d: Invalid texture size");return A._shape=[h,R],A.bind(),E.texImage2D(E.TEXTURE_2D,0,A.format,h,R,0,A.format,A.type,null),A._mipLevels=[0],A}function y(A,h,R,E,D,N){this.gl=A,this.handle=h,this.format=D,this.type=N,this._shape=[R,E],this._mipLevels=[0],this._magFilter=A.NEAREST,this._minFilter=A.NEAREST,this._wrapS=A.CLAMP_TO_EDGE,this._wrapT=A.CLAMP_TO_EDGE,this._anisoSamples=1;var F=this,I=[this._wrapS,this._wrapT];Object.defineProperties(I,[{get:function(){return F._wrapS},set:function(P){return F.wrapS=P}},{get:function(){return F._wrapT},set:function(P){return F.wrapT=P}}]),this._wrapVector=I;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return F._shape[0]},set:function(P){return F.width=P}},{get:function(){return F._shape[1]},set:function(P){return F.height=P}}]),this._shapeVector=L}var k=y.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(A){this.bind();var h=this.gl;if(this.type===h.FLOAT&&f.indexOf(A)>=0&&(h.getExtension("OES_texture_float_linear")||(A=h.NEAREST)),v.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,A),this._minFilter=A}},magFilter:{get:function(){return this._magFilter},set:function(A){this.bind();var h=this.gl;if(this.type===h.FLOAT&&f.indexOf(A)>=0&&(h.getExtension("OES_texture_float_linear")||(A=h.NEAREST)),v.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,A),this._magFilter=A}},mipSamples:{get:function(){return this._anisoSamples},set:function(A){var h=this._anisoSamples;if(this._anisoSamples=Math.max(A,1)|0,h!==this._anisoSamples){var R=this.gl.getExtension("EXT_texture_filter_anisotropic");R&&this.gl.texParameterf(this.gl.TEXTURE_2D,R.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,A),this._wrapS=A}},wrapT:{get:function(){return this._wrapT},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,A),this._wrapT=A}},wrap:{get:function(){return this._wrapVector},set:function(A){if(Array.isArray(A)||(A=[A,A]),A.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var h=0;h<2;++h)if(p.indexOf(A[h])<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);this._wrapS=A[0],this._wrapT=A[1];var R=this.gl;return this.bind(),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_S,this._wrapS),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_T,this._wrapT),A}},shape:{get:function(){return this._shapeVector},set:function(A){if(!Array.isArray(A))A=[A|0,A|0];else if(A.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return T(this,A[0]|0,A[1]|0),[A[0]|0,A[1]|0]}},width:{get:function(){return this._shape[0]},set:function(A){return A=A|0,T(this,A,this._shape[1]),A}},height:{get:function(){return this._shape[1]},set:function(A){return A=A|0,T(this,this._shape[0],A),A}}}),k.bind=function(A){var h=this.gl;return A!==void 0&&h.activeTexture(h.TEXTURE0+(A|0)),h.bindTexture(h.TEXTURE_2D,this.handle),A!==void 0?A|0:h.getParameter(h.ACTIVE_TEXTURE)-h.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var A=Math.min(this._shape[0],this._shape[1]),h=0;A>0;++h,A>>>=1)this._mipLevels.indexOf(h)<0&&this._mipLevels.push(h)},k.setPixels=function(A,h,R,E){var D=this.gl;this.bind(),Array.isArray(h)?(E=R,R=h[1]|0,h=h[0]|0):(h=h||0,R=R||0),E=E||0;var N=m(A)?A:A.raw;if(N){var F=this._mipLevels.indexOf(E)<0;F?(D.texImage2D(D.TEXTURE_2D,0,this.format,this.format,this.type,N),this._mipLevels.push(E)):D.texSubImage2D(D.TEXTURE_2D,E,h,R,this.format,this.type,N)}else if(A.shape&&A.stride&&A.data){if(A.shape.length<2||h+A.shape[1]>this._shape[1]>>>E||R+A.shape[0]>this._shape[0]>>>E||h<0||R<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");x(D,h,R,E,this.format,this.type,this._mipLevels,A)}else throw new Error("gl-texture2d: Unsupported data type")};function S(A,h){return A.length===3?h[2]===1&&h[1]===A[0]*A[2]&&h[0]===A[2]:h[0]===1&&h[1]===A[0]}function x(A,h,R,E,D,N,F,I){var L=I.dtype,P=I.shape.slice();if(P.length<2||P.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var O=0,U=0,X=S(P,I.stride.slice());L==="float32"?O=A.FLOAT:L==="float64"?(O=A.FLOAT,X=!1,L="float32"):L==="uint8"?O=A.UNSIGNED_BYTE:(O=A.UNSIGNED_BYTE,X=!1,L="uint8");var $=1;if(P.length===2)U=A.LUMINANCE,P=[P[0],P[1],1],I=l(I.data,P,[I.stride[0],I.stride[1],1],I.offset);else if(P.length===3){if(P[2]===1)U=A.ALPHA;else if(P[2]===2)U=A.LUMINANCE_ALPHA;else if(P[2]===3)U=A.RGB;else if(P[2]===4)U=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");$=P[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((U===A.LUMINANCE||U===A.ALPHA)&&(D===A.LUMINANCE||D===A.ALPHA)&&(U=D),U!==D)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var j=I.size,Y=F.indexOf(E)<0;if(Y&&F.push(E),O===N&&X)I.offset===0&&I.data.length===j?Y?A.texImage2D(A.TEXTURE_2D,E,D,P[0],P[1],0,D,N,I.data):A.texSubImage2D(A.TEXTURE_2D,E,h,R,P[0],P[1],D,N,I.data):Y?A.texImage2D(A.TEXTURE_2D,E,D,P[0],P[1],0,D,N,I.data.subarray(I.offset,I.offset+j)):A.texSubImage2D(A.TEXTURE_2D,E,h,R,P[0],P[1],D,N,I.data.subarray(I.offset,I.offset+j));else{var q;N===A.FLOAT?q=s.mallocFloat32(j):q=s.mallocUint8(j);var K=l(q,P,[P[2],P[2]*P[0],1]);O===A.FLOAT&&N===A.UNSIGNED_BYTE?w(K,I):u.assign(K,I),Y?A.texImage2D(A.TEXTURE_2D,E,D,P[0],P[1],0,D,N,q.subarray(0,j)):A.texSubImage2D(A.TEXTURE_2D,E,h,R,P[0],P[1],D,N,q.subarray(0,j)),N===A.FLOAT?s.freeFloat32(q):s.freeUint8(q)}}function M(A){var h=A.createTexture();return A.bindTexture(A.TEXTURE_2D,h),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_S,A.CLAMP_TO_EDGE),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_T,A.CLAMP_TO_EDGE),h}function d(A,h,R,E,D){var N=A.getParameter(A.MAX_TEXTURE_SIZE);if(h<0||h>N||R<0||R>N)throw new Error("gl-texture2d: Invalid texture shape");if(D===A.FLOAT&&!A.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var F=M(A);return A.texImage2D(A.TEXTURE_2D,0,E,h,R,0,E,D,null),new y(A,F,h,R,E,D)}function b(A,h,R,E,D,N){var F=M(A);return A.texImage2D(A.TEXTURE_2D,0,D,D,N,h),new y(A,F,R,E,D,N)}function g(A,h){var R=h.dtype,E=h.shape.slice(),D=A.getParameter(A.MAX_TEXTURE_SIZE);if(E[0]<0||E[0]>D||E[1]<0||E[1]>D)throw new Error("gl-texture2d: Invalid texture size");var N=S(E,h.stride.slice()),F=0;R==="float32"?F=A.FLOAT:R==="float64"?(F=A.FLOAT,N=!1,R="float32"):R==="uint8"?F=A.UNSIGNED_BYTE:(F=A.UNSIGNED_BYTE,N=!1,R="uint8");var I=0;if(E.length===2)I=A.LUMINANCE,E=[E[0],E[1],1],h=l(h.data,E,[h.stride[0],h.stride[1],1],h.offset);else if(E.length===3)if(E[2]===1)I=A.ALPHA;else if(E[2]===2)I=A.LUMINANCE_ALPHA;else if(E[2]===3)I=A.RGB;else if(E[2]===4)I=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");F===A.FLOAT&&!A.getExtension("OES_texture_float")&&(F=A.UNSIGNED_BYTE,N=!1);var L,P,O=h.size;if(N)h.offset===0&&h.data.length===O?L=h.data:L=h.data.subarray(h.offset,h.offset+O);else{var U=[E[2],E[2]*E[0],1];P=s.malloc(O,R);var X=l(P,E,U,0);(R==="float32"||R==="float64")&&F===A.UNSIGNED_BYTE?w(X,h):u.assign(X,h),L=P.subarray(0,O)}var $=M(A);return A.texImage2D(A.TEXTURE_2D,0,I,E[0],E[1],0,I,F,L),N||s.free(P),new y(A,$,E[0],E[1],I,F)}function c(A){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||_(A),typeof arguments[1]=="number")return d(A,arguments[1],arguments[2],arguments[3]||A.RGBA,arguments[4]||A.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return d(A,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var h=arguments[1],R=m(h)?h:h.raw;if(R)return b(A,R,h.width|0,h.height|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(h.shape&&h.data&&h.stride)return g(A,h)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(a){"use strict";function o(i,l,u){l?l.bind():i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,null);var s=i.getParameter(i.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>s)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(w)}},9226:function(a){a.exports=o;function o(i,l){return i[0]=Math.ceil(l[0]),i[1]=Math.ceil(l[1]),i[2]=Math.ceil(l[2]),i}},3126:function(a){a.exports=o;function o(i){var l=new Float32Array(3);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l}},3990:function(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i}},1091:function(a){a.exports=o;function o(){var i=new Float32Array(3);return i[0]=0,i[1]=0,i[2]=0,i}},5911:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[0],_=u[1],m=u[2];return i[0]=f*m-v*_,i[1]=v*p-s*m,i[2]=s*_-f*p,i}},5455:function(a,o,i){a.exports=i(7056)},7056:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return Math.sqrt(u*u+s*s+f*f)}},4008:function(a,o,i){a.exports=i(6690)},6690:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i}},244:function(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]}},2613:function(a){a.exports=1e-6},9922:function(a,o,i){a.exports=u;var l=i(2613);function u(s,f){var v=s[0],p=s[1],_=s[2],m=f[0],w=f[1],T=f[2];return Math.abs(v-m)<=l*Math.max(1,Math.abs(v),Math.abs(m))&&Math.abs(p-w)<=l*Math.max(1,Math.abs(p),Math.abs(w))&&Math.abs(_-T)<=l*Math.max(1,Math.abs(_),Math.abs(T))}},9265:function(a){a.exports=o;function o(i,l){return i[0]===l[0]&&i[1]===l[1]&&i[2]===l[2]}},2681:function(a){a.exports=o;function o(i,l){return i[0]=Math.floor(l[0]),i[1]=Math.floor(l[1]),i[2]=Math.floor(l[2]),i}},5137:function(a,o,i){a.exports=u;var l=i(1091)();function u(s,f,v,p,_,m){var w,T;for(f||(f=3),v||(v=0),p?T=Math.min(p*f+v,s.length):T=s.length,w=v;w0&&(v=1/Math.sqrt(v),i[0]=l[0]*v,i[1]=l[1]*v,i[2]=l[2]*v),i}},7636:function(a){a.exports=o;function o(i,l){l=l||1;var u=Math.random()*2*Math.PI,s=Math.random()*2-1,f=Math.sqrt(1-s*s)*l;return i[0]=Math.cos(u)*f,i[1]=Math.sin(u)*f,i[2]=s*l,i}},6894:function(a){a.exports=o;function o(i,l,u,s){var f=u[1],v=u[2],p=l[1]-f,_=l[2]-v,m=Math.sin(s),w=Math.cos(s);return i[0]=l[0],i[1]=f+p*w-_*m,i[2]=v+p*m+_*w,i}},109:function(a){a.exports=o;function o(i,l,u,s){var f=u[0],v=u[2],p=l[0]-f,_=l[2]-v,m=Math.sin(s),w=Math.cos(s);return i[0]=f+_*m+p*w,i[1]=l[1],i[2]=v+_*w-p*m,i}},8692:function(a){a.exports=o;function o(i,l,u,s){var f=u[0],v=u[1],p=l[0]-f,_=l[1]-v,m=Math.sin(s),w=Math.cos(s);return i[0]=f+p*w-_*m,i[1]=v+p*m+_*w,i[2]=l[2],i}},2447:function(a){a.exports=o;function o(i,l){return i[0]=Math.round(l[0]),i[1]=Math.round(l[1]),i[2]=Math.round(l[2]),i}},6621:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i}},8489:function(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i}},1463:function(a){a.exports=o;function o(i,l,u,s){return i[0]=l,i[1]=u,i[2]=s,i}},6141:function(a,o,i){a.exports=i(2953)},5486:function(a,o,i){a.exports=i(3066)},2953:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return u*u+s*s+f*f}},3066:function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2];return l*l+u*u+s*s}},2229:function(a,o,i){a.exports=i(6843)},6843:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i}},492:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2];return i[0]=s*u[0]+f*u[3]+v*u[6],i[1]=s*u[1]+f*u[4]+v*u[7],i[2]=s*u[2]+f*u[5]+v*u[8],i}},5673:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[3]*s+u[7]*f+u[11]*v+u[15];return p=p||1,i[0]=(u[0]*s+u[4]*f+u[8]*v+u[12])/p,i[1]=(u[1]*s+u[5]*f+u[9]*v+u[13])/p,i[2]=(u[2]*s+u[6]*f+u[10]*v+u[14])/p,i}},264:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[0],_=u[1],m=u[2],w=u[3],T=w*s+_*v-m*f,y=w*f+m*s-p*v,k=w*v+p*f-_*s,S=-p*s-_*f-m*v;return i[0]=T*w+S*-p+y*-m-k*-_,i[1]=y*w+S*-_+k*-p-T*-m,i[2]=k*w+S*-m+T*-_-y*-p,i}},4361:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]+u[0],i[1]=l[1]+u[1],i[2]=l[2]+u[2],i[3]=l[3]+u[3],i}},2335:function(a){a.exports=o;function o(i){var l=new Float32Array(4);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l}},2933:function(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i[3]=l[3],i}},7536:function(a){a.exports=o;function o(){var i=new Float32Array(4);return i[0]=0,i[1]=0,i[2]=0,i[3]=0,i}},4691:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],v=l[3]-i[3];return Math.sqrt(u*u+s*s+f*f+v*v)}},1373:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i[3]=l[3]/u[3],i}},3750:function(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3]*l[3]}},3390:function(a){a.exports=o;function o(i,l,u,s){var f=new Float32Array(4);return f[0]=i,f[1]=l,f[2]=u,f[3]=s,f}},9970:function(a,o,i){a.exports={create:i(7536),clone:i(2335),fromValues:i(3390),copy:i(2933),set:i(4578),add:i(4361),subtract:i(6860),multiply:i(3576),divide:i(1373),min:i(2334),max:i(160),scale:i(9288),scaleAndAdd:i(4844),distance:i(4691),squaredDistance:i(7960),length:i(6808),squaredLength:i(483),negate:i(1498),inverse:i(4494),normalize:i(5177),dot:i(3750),lerp:i(2573),random:i(9131),transformMat4:i(5352),transformQuat:i(4041)}},4494:function(a){a.exports=o;function o(i,l){return i[0]=1/l[0],i[1]=1/l[1],i[2]=1/l[2],i[3]=1/l[3],i}},6808:function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return Math.sqrt(l*l+u*u+s*s+f*f)}},2573:function(a){a.exports=o;function o(i,l,u,s){var f=l[0],v=l[1],p=l[2],_=l[3];return i[0]=f+s*(u[0]-f),i[1]=v+s*(u[1]-v),i[2]=p+s*(u[2]-p),i[3]=_+s*(u[3]-_),i}},160:function(a){a.exports=o;function o(i,l,u){return i[0]=Math.max(l[0],u[0]),i[1]=Math.max(l[1],u[1]),i[2]=Math.max(l[2],u[2]),i[3]=Math.max(l[3],u[3]),i}},2334:function(a){a.exports=o;function o(i,l,u){return i[0]=Math.min(l[0],u[0]),i[1]=Math.min(l[1],u[1]),i[2]=Math.min(l[2],u[2]),i[3]=Math.min(l[3],u[3]),i}},3576:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u[0],i[1]=l[1]*u[1],i[2]=l[2]*u[2],i[3]=l[3]*u[3],i}},1498:function(a){a.exports=o;function o(i,l){return i[0]=-l[0],i[1]=-l[1],i[2]=-l[2],i[3]=-l[3],i}},5177:function(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],v=l[3],p=u*u+s*s+f*f+v*v;return p>0&&(p=1/Math.sqrt(p),i[0]=u*p,i[1]=s*p,i[2]=f*p,i[3]=v*p),i}},9131:function(a,o,i){var l=i(5177),u=i(9288);a.exports=s;function s(f,v){return v=v||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),l(f,f),u(f,f,v),f}},9288:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i[3]=l[3]*u,i}},4844:function(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i[3]=l[3]+u[3]*s,i}},4578:function(a){a.exports=o;function o(i,l,u,s,f){return i[0]=l,i[1]=u,i[2]=s,i[3]=f,i}},7960:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],v=l[3]-i[3];return u*u+s*s+f*f+v*v}},483:function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return l*l+u*u+s*s+f*f}},6860:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i[3]=l[3]-u[3],i}},5352:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=l[3];return i[0]=u[0]*s+u[4]*f+u[8]*v+u[12]*p,i[1]=u[1]*s+u[5]*f+u[9]*v+u[13]*p,i[2]=u[2]*s+u[6]*f+u[10]*v+u[14]*p,i[3]=u[3]*s+u[7]*f+u[11]*v+u[15]*p,i}},4041:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[0],_=u[1],m=u[2],w=u[3],T=w*s+_*v-m*f,y=w*f+m*s-p*v,k=w*v+p*f-_*s,S=-p*s-_*f-m*v;return i[0]=T*w+S*-p+y*-m-k*-_,i[1]=y*w+S*-_+k*-p-T*-m,i[2]=k*w+S*-m+T*-_-y*-p,i[3]=l[3],i}},1848:function(a,o,i){var l=i(4905),u=i(6468);a.exports=s;function s(f){for(var v=Array.isArray(f)?f:l(f),p=0;p0)continue;me=ge.slice(0,1).join("")}return re(me),j+=me.length,L=L.slice(me.length),L.length}while(!0)}function Pe(){return/[^a-fA-F0-9]/.test(F)?(re(L.join("")),N=p,E):(L.push(F),I=F,E+1)}function Se(){return F==="."||/[eE]/.test(F)?(L.push(F),N=S,I=F,E+1):F==="x"&&L.length===1&&L[0]==="0"?(N=c,L.push(F),I=F,E+1):/[^\d]/.test(F)?(re(L.join("")),N=p,E):(L.push(F),I=F,E+1)}function Ne(){return F==="f"&&(L.push(F),I=F,E+=1),/[eE]/.test(F)||(F==="-"||F==="+")&&/[eE]/.test(I)?(L.push(F),I=F,E+1):/[^\d]/.test(F)?(re(L.join("")),N=p,E):(L.push(F),I=F,E+1)}function Be(){if(/[^\d\w_]/.test(F)){var ge=L.join("");return V[ge]?N=d:ee[ge]?N=M:N=x,re(L.join("")),N=p,E}return L.push(F),I=F,E+1}}},3508:function(a,o,i){var l=i(6852);l=l.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),a.exports=l.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(a){a.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(a,o,i){var l=i(620);a.exports=l.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(a){a.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(a){a.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(a,o,i){var l=i(5874);a.exports=u;function u(s,f){var v=l(f),p=[];return p=p.concat(v(s)),p=p.concat(v(null)),p}},3236:function(a){a.exports=function(o){typeof o=="string"&&(o=[o]);for(var i=[].slice.call(arguments,1),l=[],u=0;u>1,T=-7,y=u?f-1:0,k=u?-1:1,S=i[l+y];for(y+=k,v=S&(1<<-T)-1,S>>=-T,T+=_;T>0;v=v*256+i[l+y],y+=k,T-=8);for(p=v&(1<<-T)-1,v>>=-T,T+=s;T>0;p=p*256+i[l+y],y+=k,T-=8);if(v===0)v=1-w;else{if(v===m)return p?NaN:(S?-1:1)*(1/0);p=p+Math.pow(2,s),v=v-w}return(S?-1:1)*p*Math.pow(2,v-s)},o.write=function(i,l,u,s,f,v){var p,_,m,w=v*8-f-1,T=(1<>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=s?0:v-1,x=s?1:-1,M=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(_=isNaN(l)?1:0,p=T):(p=Math.floor(Math.log(l)/Math.LN2),l*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+y>=1?l+=k/m:l+=k*Math.pow(2,1-y),l*m>=2&&(p++,m/=2),p+y>=T?(_=0,p=T):p+y>=1?(_=(l*m-1)*Math.pow(2,f),p=p+y):(_=l*Math.pow(2,y-1)*Math.pow(2,f),p=0));f>=8;i[u+S]=_&255,S+=x,_/=256,f-=8);for(p=p<0;i[u+S]=p&255,S+=x,p/=256,w-=8);i[u+S-x]|=M*128}},8954:function(a,o,i){"use strict";a.exports=y;var l=i(3250),u=i(6803).Fw;function s(k,S,x){this.vertices=k,this.adjacent=S,this.boundary=x,this.lastVisited=-1}s.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var S=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=S};function f(k,S,x){this.vertices=k,this.cell=S,this.index=x}function v(k,S){return u(k.vertices,S.vertices)}function p(k){return function(){var S=this.tuple;return k.apply(this,S)}}function _(k){var S=l[k+1];return S||(S=l),p(S)}var m=[];function w(k,S,x){this.dimension=k,this.vertices=S,this.simplices=x,this.interior=x.filter(function(b){return!b.boundary}),this.tuple=new Array(k+1);for(var M=0;M<=k;++M)this.tuple[M]=this.vertices[M];var d=m[k];d||(d=m[k]=_(k)),this.orient=d}var T=w.prototype;T.handleBoundaryDegeneracy=function(k,S){var x=this.dimension,M=this.vertices.length-1,d=this.tuple,b=this.vertices,g=[k];for(k.lastVisited=-M;g.length>0;){k=g.pop();for(var c=k.adjacent,A=0;A<=x;++A){var h=c[A];if(!(!h.boundary||h.lastVisited<=-M)){for(var R=h.vertices,E=0;E<=x;++E){var D=R[E];D<0?d[E]=S:d[E]=b[D]}var N=this.orient();if(N>0)return h;h.lastVisited=-M,N===0&&g.push(h)}}}return null},T.walk=function(k,S){var x=this.vertices.length-1,M=this.dimension,d=this.vertices,b=this.tuple,g=S?this.interior.length*Math.random()|0:this.interior.length-1,c=this.interior[g];e:for(;!c.boundary;){for(var A=c.vertices,h=c.adjacent,R=0;R<=M;++R)b[R]=d[A[R]];c.lastVisited=x;for(var R=0;R<=M;++R){var E=h[R];if(!(E.lastVisited>=x)){var D=b[R];b[R]=k;var N=this.orient();if(b[R]=D,N<0){c=E;continue e}else E.boundary?E.lastVisited=-x:E.lastVisited=x}}return}return c},T.addPeaks=function(k,S){var x=this.vertices.length-1,M=this.dimension,d=this.vertices,b=this.tuple,g=this.interior,c=this.simplices,A=[S];S.lastVisited=x,S.vertices[S.vertices.indexOf(-1)]=x,S.boundary=!1,g.push(S);for(var h=[];A.length>0;){var S=A.pop(),R=S.vertices,E=S.adjacent,D=R.indexOf(x);if(!(D<0)){for(var N=0;N<=M;++N)if(N!==D){var F=E[N];if(!(!F.boundary||F.lastVisited>=x)){var I=F.vertices;if(F.lastVisited!==-x){for(var L=0,P=0;P<=M;++P)I[P]<0?(L=P,b[P]=k):b[P]=d[I[P]];var O=this.orient();if(O>0){I[L]=x,F.boundary=!1,g.push(F),A.push(F),F.lastVisited=x;continue}else F.lastVisited=-x}var U=F.adjacent,X=R.slice(),$=E.slice(),j=new s(X,$,!0);c.push(j);var Y=U.indexOf(S);if(!(Y<0)){U[Y]=j,$[D]=F,X[N]=-1,$[N]=S,E[N]=j,j.flip();for(var P=0;P<=M;++P){var q=X[P];if(!(q<0||q===x)){for(var K=new Array(M-1),ne=0,Q=0;Q<=M;++Q){var ie=X[Q];ie<0||Q===P||(K[ne++]=ie)}h.push(new f(K,j,P))}}}}}}}h.sort(v);for(var N=0;N+1=0?g[A++]=c[R]:h=R&1;if(h===(k&1)){var E=g[0];g[0]=g[1],g[1]=E}S.push(g)}}return S};function y(k,S){var x=k.length;if(x===0)throw new Error("Must have at least d+1 points");var M=k[0].length;if(x<=M)throw new Error("Must input at least d+1 points");var d=k.slice(0,M+1),b=l.apply(void 0,d);if(b===0)throw new Error("Input not in general position");for(var g=new Array(M+1),c=0;c<=M;++c)g[c]=c;b<0&&(g[0]=1,g[1]=0);for(var A=new s(g,new Array(M+1),!1),h=A.adjacent,R=new Array(M+2),c=0;c<=M;++c){for(var E=g.slice(),D=0;D<=M;++D)D===c&&(E[D]=-1);var N=E[0];E[0]=E[1],E[1]=N;var F=new s(E,new Array(M+1),!0);h[c]=F,R[c]=F}R[M+1]=A;for(var c=0;c<=M;++c)for(var E=h[c].vertices,I=h[c].adjacent,D=0;D<=M;++D){var L=E[D];if(L<0){I[D]=A;continue}for(var P=0;P<=M;++P)h[P].vertices.indexOf(L)<0&&(I[D]=h[P])}for(var O=new w(M,d,R),U=!!S,c=M+1;c3*(R+1)?w(this,h):this.left.insert(h):this.left=b([h]);else if(h[0]>this.mid)this.right?4*(this.right.count+1)>3*(R+1)?w(this,h):this.right.insert(h):this.right=b([h]);else{var E=l.ge(this.leftPoints,h,M),D=l.ge(this.rightPoints,h,d);this.leftPoints.splice(E,0,h),this.rightPoints.splice(D,0,h)}},p.remove=function(h){var R=this.count-this.leftPoints;if(h[1]3*(R-1))return T(this,h);var D=this.left.remove(h);return D===f?(this.left=null,this.count-=1,s):(D===s&&(this.count-=1),D)}else if(h[0]>this.mid){if(!this.right)return u;var N=this.left?this.left.count:0;if(4*N>3*(R-1))return T(this,h);var D=this.right.remove(h);return D===f?(this.right=null,this.count-=1,s):(D===s&&(this.count-=1),D)}else{if(this.count===1)return this.leftPoints[0]===h?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===h){if(this.left&&this.right){for(var F=this,I=this.left;I.right;)F=I,I=I.right;if(F===this)I.right=this.right;else{var L=this.left,D=this.right;F.count-=I.count,F.right=I.left,I.left=L,I.right=D}_(this,I),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?_(this,this.left):_(this,this.right);return s}for(var L=l.ge(this.leftPoints,h,M);L=0&&h[D][1]>=R;--D){var N=E(h[D]);if(N)return N}}function S(h,R){for(var E=0;Ethis.mid){if(this.right){var E=this.right.queryPoint(h,R);if(E)return E}return k(this.rightPoints,h,R)}else return S(this.leftPoints,R)},p.queryInterval=function(h,R,E){if(hthis.mid&&this.right){var D=this.right.queryInterval(h,R,E);if(D)return D}return Rthis.mid?k(this.rightPoints,h,E):S(this.leftPoints,E)};function x(h,R){return h-R}function M(h,R){var E=h[0]-R[0];return E||h[1]-R[1]}function d(h,R){var E=h[1]-R[1];return E||h[0]-R[0]}function b(h){if(h.length===0)return null;for(var R=[],E=0;E>1],N=[],F=[],I=[],E=0;E13)&&l!==32&&l!==133&&l!==160&&l!==5760&&l!==6158&&(l<8192||l>8205)&&l!==8232&&l!==8233&&l!==8239&&l!==8287&&l!==8288&&l!==12288&&l!==65279)return!1;return!0}},395:function(a){function o(i,l,u){return i*(1-u)+l*u}a.exports=o},2652:function(a,o,i){var l=i(4335),u=i(6864),s=i(1903),f=i(9921),v=i(7608),p=i(5665),_={length:i(1387),normalize:i(3536),dot:i(244),cross:i(5911)},m=u(),w=u(),T=[0,0,0,0],y=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];a.exports=function(b,g,c,A,h,R){if(g||(g=[0,0,0]),c||(c=[0,0,0]),A||(A=[0,0,0]),h||(h=[0,0,0,1]),R||(R=[0,0,0,1]),!l(m,b)||(s(w,m),w[3]=0,w[7]=0,w[11]=0,w[15]=1,Math.abs(f(w)<1e-8)))return!1;var E=m[3],D=m[7],N=m[11],F=m[12],I=m[13],L=m[14],P=m[15];if(E!==0||D!==0||N!==0){T[0]=E,T[1]=D,T[2]=N,T[3]=P;var O=v(w,w);if(!O)return!1;p(w,w),S(h,T,w)}else h[0]=h[1]=h[2]=0,h[3]=1;if(g[0]=F,g[1]=I,g[2]=L,x(y,m),c[0]=_.length(y[0]),_.normalize(y[0],y[0]),A[0]=_.dot(y[0],y[1]),M(y[1],y[1],y[0],1,-A[0]),c[1]=_.length(y[1]),_.normalize(y[1],y[1]),A[0]/=c[1],A[1]=_.dot(y[0],y[2]),M(y[2],y[2],y[0],1,-A[1]),A[2]=_.dot(y[1],y[2]),M(y[2],y[2],y[1],1,-A[2]),c[2]=_.length(y[2]),_.normalize(y[2],y[2]),A[1]/=c[2],A[2]/=c[2],_.cross(k,y[1],y[2]),_.dot(y[0],k)<0)for(var U=0;U<3;U++)c[U]*=-1,y[U][0]*=-1,y[U][1]*=-1,y[U][2]*=-1;return R[0]=.5*Math.sqrt(Math.max(1+y[0][0]-y[1][1]-y[2][2],0)),R[1]=.5*Math.sqrt(Math.max(1-y[0][0]+y[1][1]-y[2][2],0)),R[2]=.5*Math.sqrt(Math.max(1-y[0][0]-y[1][1]+y[2][2],0)),R[3]=.5*Math.sqrt(Math.max(1+y[0][0]+y[1][1]+y[2][2],0)),y[2][1]>y[1][2]&&(R[0]=-R[0]),y[0][2]>y[2][0]&&(R[1]=-R[1]),y[1][0]>y[0][1]&&(R[2]=-R[2]),!0};function S(d,b,g){var c=b[0],A=b[1],h=b[2],R=b[3];return d[0]=g[0]*c+g[4]*A+g[8]*h+g[12]*R,d[1]=g[1]*c+g[5]*A+g[9]*h+g[13]*R,d[2]=g[2]*c+g[6]*A+g[10]*h+g[14]*R,d[3]=g[3]*c+g[7]*A+g[11]*h+g[15]*R,d}function x(d,b){d[0][0]=b[0],d[0][1]=b[1],d[0][2]=b[2],d[1][0]=b[4],d[1][1]=b[5],d[1][2]=b[6],d[2][0]=b[8],d[2][1]=b[9],d[2][2]=b[10]}function M(d,b,g,c,A){d[0]=b[0]*c+g[0]*A,d[1]=b[1]*c+g[1]*A,d[2]=b[2]*c+g[2]*A}},4335:function(a){a.exports=function(i,l){var u=l[15];if(u===0)return!1;for(var s=1/u,f=0;f<16;f++)i[f]=l[f]*s;return!0}},7442:function(a,o,i){var l=i(6658),u=i(7182),s=i(2652),f=i(9921),v=i(8648),p=T(),_=T(),m=T();a.exports=w;function w(S,x,M,d){if(f(x)===0||f(M)===0)return!1;var b=s(x,p.translate,p.scale,p.skew,p.perspective,p.quaternion),g=s(M,_.translate,_.scale,_.skew,_.perspective,_.quaternion);return!b||!g?!1:(l(m.translate,p.translate,_.translate,d),l(m.skew,p.skew,_.skew,d),l(m.scale,p.scale,_.scale,d),l(m.perspective,p.perspective,_.perspective,d),v(m.quaternion,p.quaternion,_.quaternion,d),u(S,m.translate,m.scale,m.skew,m.perspective,m.quaternion),!0)}function T(){return{translate:y(),scale:y(1),skew:y(),perspective:k(),quaternion:k()}}function y(S){return[S||0,S||0,S||0]}function k(){return[0,0,0,1]}},7182:function(a,o,i){var l={identity:i(7894),translate:i(7656),multiply:i(6760),create:i(6864),scale:i(2504),fromRotationTranslation:i(6743)},u=l.create(),s=l.create();a.exports=function(v,p,_,m,w,T){return l.identity(v),l.fromRotationTranslation(v,T,p),v[3]=w[0],v[7]=w[1],v[11]=w[2],v[15]=w[3],l.identity(s),m[2]!==0&&(s[9]=m[2],l.multiply(v,v,s)),m[1]!==0&&(s[9]=0,s[8]=m[1],l.multiply(v,v,s)),m[0]!==0&&(s[8]=0,s[4]=m[0],l.multiply(v,v,s)),l.scale(v,v,_),v}},1811:function(a,o,i){"use strict";var l=i(2478),u=i(7442),s=i(7608),f=i(5567),v=i(2408),p=i(7089),_=i(6582),m=i(7656),w=i(2504),T=i(3536),y=[0,0,0];a.exports=M;function k(d){this._components=d.slice(),this._time=[0],this.prevMatrix=d.slice(),this.nextMatrix=d.slice(),this.computedMatrix=d.slice(),this.computedInverse=d.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var S=k.prototype;S.recalcMatrix=function(d){var b=this._time,g=l.le(b,d),c=this.computedMatrix;if(!(g<0)){var A=this._components;if(g===b.length-1)for(var h=16*g,R=0;R<16;++R)c[R]=A[h++];else{for(var E=b[g+1]-b[g],h=16*g,D=this.prevMatrix,N=!0,R=0;R<16;++R)D[R]=A[h++];for(var F=this.nextMatrix,R=0;R<16;++R)F[R]=A[h++],N=N&&D[R]===F[R];if(E<1e-6||N)for(var R=0;R<16;++R)c[R]=D[R];else u(c,D,F,(d-b[g])/E)}var I=this.computedUp;I[0]=c[1],I[1]=c[5],I[2]=c[9],T(I,I);var L=this.computedInverse;s(L,c);var P=this.computedEye,O=L[15];P[0]=L[12]/O,P[1]=L[13]/O,P[2]=L[14]/O;for(var U=this.computedCenter,X=Math.exp(this.computedRadius[0]),R=0;R<3;++R)U[R]=P[R]-c[2+4*R]*X}},S.idle=function(d){if(!(d1&&l(s[_[y-2]],s[_[y-1]],T)<=0;)y-=1,_.pop();for(_.push(w),y=m.length;y>1&&l(s[m[y-2]],s[m[y-1]],T)>=0;)y-=1,m.pop();m.push(w)}for(var k=new Array(m.length+_.length-2),S=0,v=0,x=_.length;v0;--M)k[S++]=m[M];return k}},351:function(a,o,i){"use strict";a.exports=u;var l=i(4687);function u(s,f){f||(f=s,s=window);var v=0,p=0,_=0,m={shift:!1,alt:!1,control:!1,meta:!1},w=!1;function T(h){var R=!1;return"altKey"in h&&(R=R||h.altKey!==m.alt,m.alt=!!h.altKey),"shiftKey"in h&&(R=R||h.shiftKey!==m.shift,m.shift=!!h.shiftKey),"ctrlKey"in h&&(R=R||h.ctrlKey!==m.control,m.control=!!h.ctrlKey),"metaKey"in h&&(R=R||h.metaKey!==m.meta,m.meta=!!h.metaKey),R}function y(h,R){var E=l.x(R),D=l.y(R);"buttons"in R&&(h=R.buttons|0),(h!==v||E!==p||D!==_||T(R))&&(v=h|0,p=E||0,_=D||0,f&&f(v,p,_,m))}function k(h){y(0,h)}function S(){(v||p||_||m.shift||m.alt||m.meta||m.control)&&(p=_=0,v=0,m.shift=m.alt=m.control=m.meta=!1,f&&f(0,0,0,m))}function x(h){T(h)&&f&&f(v,p,_,m)}function M(h){l.buttons(h)===0?y(0,h):y(v,h)}function d(h){y(v|l.buttons(h),h)}function b(h){y(v&~l.buttons(h),h)}function g(){w||(w=!0,s.addEventListener("mousemove",M),s.addEventListener("mousedown",d),s.addEventListener("mouseup",b),s.addEventListener("mouseleave",k),s.addEventListener("mouseenter",k),s.addEventListener("mouseout",k),s.addEventListener("mouseover",k),s.addEventListener("blur",S),s.addEventListener("keyup",x),s.addEventListener("keydown",x),s.addEventListener("keypress",x),s!==window&&(window.addEventListener("blur",S),window.addEventListener("keyup",x),window.addEventListener("keydown",x),window.addEventListener("keypress",x)))}function c(){w&&(w=!1,s.removeEventListener("mousemove",M),s.removeEventListener("mousedown",d),s.removeEventListener("mouseup",b),s.removeEventListener("mouseleave",k),s.removeEventListener("mouseenter",k),s.removeEventListener("mouseout",k),s.removeEventListener("mouseover",k),s.removeEventListener("blur",S),s.removeEventListener("keyup",x),s.removeEventListener("keydown",x),s.removeEventListener("keypress",x),s!==window&&(window.removeEventListener("blur",S),window.removeEventListener("keyup",x),window.removeEventListener("keydown",x),window.removeEventListener("keypress",x)))}g();var A={element:s};return Object.defineProperties(A,{enabled:{get:function(){return w},set:function(h){h?g():c()},enumerable:!0},buttons:{get:function(){return v},enumerable:!0},x:{get:function(){return p},enumerable:!0},y:{get:function(){return _},enumerable:!0},mods:{get:function(){return m},enumerable:!0}}),A}},24:function(a){var o={left:0,top:0};a.exports=i;function i(u,s,f){s=s||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var v=u.clientX||0,p=u.clientY||0,_=l(s);return f[0]=v-_.left,f[1]=p-_.top,f}function l(u){return u===window||u===document||u===document.body?o:u.getBoundingClientRect()}},4687:function(a,o){"use strict";function i(f){if(typeof f=="object"){if("buttons"in f)return f.buttons;if("which"in f){var v=f.which;if(v===2)return 4;if(v===3)return 2;if(v>0)return 1<=0)return 1<0){if($=1,q[ne++]=m(g[R],S,x,M),R+=O,d>0)for(X=1,E=g[R],Q=q[ne]=m(E,S,x,M),V=q[ne+ie],te=q[ne+re],ke=q[ne+ue],(Q!==V||Q!==te||Q!==ke)&&(N=g[R+D],I=g[R+F],P=g[R+L],p(X,$,E,N,I,P,Q,V,te,ke,S,x,M),Ae=K[ne]=j++),ne+=1,R+=O,X=2;X0)for(X=1,E=g[R],Q=q[ne]=m(E,S,x,M),V=q[ne+ie],te=q[ne+re],ke=q[ne+ue],(Q!==V||Q!==te||Q!==ke)&&(N=g[R+D],I=g[R+F],P=g[R+L],p(X,$,E,N,I,P,Q,V,te,ke,S,x,M),Ae=K[ne]=j++,ke!==te&&_(K[ne+re],Ae,I,P,te,ke,S,x,M)),ne+=1,R+=O,X=2;X0){if(X=1,q[ne++]=m(g[R],S,x,M),R+=O,b>0)for($=1,E=g[R],Q=q[ne]=m(E,S,x,M),te=q[ne+re],V=q[ne+ie],ke=q[ne+ue],(Q!==te||Q!==V||Q!==ke)&&(N=g[R+D],I=g[R+F],P=g[R+L],p(X,$,E,N,I,P,Q,te,V,ke,S,x,M),Ae=K[ne]=j++),ne+=1,R+=O,$=2;$0)for($=1,E=g[R],Q=q[ne]=m(E,S,x,M),te=q[ne+re],V=q[ne+ie],ke=q[ne+ue],(Q!==te||Q!==V||Q!==ke)&&(N=g[R+D],I=g[R+F],P=g[R+L],p(X,$,E,N,I,P,Q,te,V,ke,S,x,M),Ae=K[ne]=j++,ke!==te&&_(K[ne+re],Ae,P,N,ke,te,S,x,M)),ne+=1,R+=O,$=2;$ 0"),typeof v.vertex!="function"&&p("Must specify vertex creation function"),typeof v.cell!="function"&&p("Must specify cell creation function"),typeof v.phase!="function"&&p("Must specify phase function");for(var T=v.getters||[],y=new Array(m),k=0;k=0?y[k]=!0:y[k]=!1;return s(v.vertex,v.cell,v.phase,w,_,y)}},6199:function(a,o,i){"use strict";var l=i(1338),u={zero:function(M,d,b,g){var c=M[0],A=b[0];g|=0;var h=0,R=A;for(h=0;h2&&h[1]>2&&g(A.pick(-1,-1).lo(1,1).hi(h[0]-2,h[1]-2),c.pick(-1,-1,0).lo(1,1).hi(h[0]-2,h[1]-2),c.pick(-1,-1,1).lo(1,1).hi(h[0]-2,h[1]-2)),h[1]>2&&(b(A.pick(0,-1).lo(1).hi(h[1]-2),c.pick(0,-1,1).lo(1).hi(h[1]-2)),d(c.pick(0,-1,0).lo(1).hi(h[1]-2))),h[1]>2&&(b(A.pick(h[0]-1,-1).lo(1).hi(h[1]-2),c.pick(h[0]-1,-1,1).lo(1).hi(h[1]-2)),d(c.pick(h[0]-1,-1,0).lo(1).hi(h[1]-2))),h[0]>2&&(b(A.pick(-1,0).lo(1).hi(h[0]-2),c.pick(-1,0,0).lo(1).hi(h[0]-2)),d(c.pick(-1,0,1).lo(1).hi(h[0]-2))),h[0]>2&&(b(A.pick(-1,h[1]-1).lo(1).hi(h[0]-2),c.pick(-1,h[1]-1,0).lo(1).hi(h[0]-2)),d(c.pick(-1,h[1]-1,1).lo(1).hi(h[0]-2))),c.set(0,0,0,0),c.set(0,0,1,0),c.set(h[0]-1,0,0,0),c.set(h[0]-1,0,1,0),c.set(0,h[1]-1,0,0),c.set(0,h[1]-1,1,0),c.set(h[0]-1,h[1]-1,0,0),c.set(h[0]-1,h[1]-1,1,0),c}}function x(M){var d=M.join(),h=m[d];if(h)return h;for(var b=M.length,g=[T,y],c=1;c<=b;++c)g.push(k(c));var A=S,h=A.apply(void 0,g);return m[d]=h,h}a.exports=function(d,b,g){if(Array.isArray(g)||(typeof g=="string"?g=l(b.dimension,g):g=l(b.dimension,"clamp")),b.size===0)return d;if(b.dimension===0)return d.set(0),d;var c=x(g);return c(d,b)}},4317:function(a){"use strict";function o(f,v){var p=Math.floor(v),_=v-p,m=0<=p&&p0;){I<64?(d=I,I=0):(d=64,I-=64);for(var L=m[1]|0;L>0;){L<64?(b=L,L=0):(b=64,L-=64),y=N+I*c+L*A,x=F+I*R+L*E;var P=0,O=0,U=0,X=h,$=c-g*h,j=A-d*c,Y=D,q=R-g*D,K=E-d*R;for(U=0;U0;){E<64?(d=E,E=0):(d=64,E-=64);for(var D=m[0]|0;D>0;){D<64?(M=D,D=0):(M=64,D-=64),y=h+E*g+D*b,x=R+E*A+D*c;var N=0,F=0,I=g,L=b-d*g,P=A,O=c-d*A;for(F=0;F0;){F<64?(b=F,F=0):(b=64,F-=64);for(var I=m[0]|0;I>0;){I<64?(M=I,I=0):(M=64,I-=64);for(var L=m[1]|0;L>0;){L<64?(d=L,L=0):(d=64,L-=64),y=D+F*A+I*g+L*c,x=N+F*E+I*h+L*R;var P=0,O=0,U=0,X=A,$=g-b*A,j=c-M*g,Y=E,q=h-b*E,K=R-M*h;for(U=0;Uk;){P=0,O=N-d;r:for(I=0;IX)break r;O+=h,P+=R}for(P=N,O=N-d,I=0;I>1,L=I-D,P=I+D,O=N,U=L,X=I,$=P,j=F,Y=S+1,q=x-1,K=!0,ne,Q,ie,ee,V,re,H,te,ue,de=0,ke=0,Ae=0,ve,Te,Ee,Pe,Se,Ne,Be,ge,we,Me,me,Re,ce,he,ye,Ce,ze=A,qe=T(ze),$e=T(ze);Te=b*O,Ee=b*U,Ce=d;e:for(ve=0;ve0){Q=O,O=U,U=Q;break e}if(Ae<0)break e;Ce+=R}Te=b*$,Ee=b*j,Ce=d;e:for(ve=0;ve0){Q=$,$=j,j=Q;break e}if(Ae<0)break e;Ce+=R}Te=b*O,Ee=b*X,Ce=d;e:for(ve=0;ve0){Q=O,O=X,X=Q;break e}if(Ae<0)break e;Ce+=R}Te=b*U,Ee=b*X,Ce=d;e:for(ve=0;ve0){Q=U,U=X,X=Q;break e}if(Ae<0)break e;Ce+=R}Te=b*O,Ee=b*$,Ce=d;e:for(ve=0;ve0){Q=O,O=$,$=Q;break e}if(Ae<0)break e;Ce+=R}Te=b*X,Ee=b*$,Ce=d;e:for(ve=0;ve0){Q=X,X=$,$=Q;break e}if(Ae<0)break e;Ce+=R}Te=b*U,Ee=b*j,Ce=d;e:for(ve=0;ve0){Q=U,U=j,j=Q;break e}if(Ae<0)break e;Ce+=R}Te=b*U,Ee=b*X,Ce=d;e:for(ve=0;ve0){Q=U,U=X,X=Q;break e}if(Ae<0)break e;Ce+=R}Te=b*$,Ee=b*j,Ce=d;e:for(ve=0;ve0){Q=$,$=j,j=Q;break e}if(Ae<0)break e;Ce+=R}for(Te=b*O,Ee=b*U,Pe=b*X,Se=b*$,Ne=b*j,Be=b*N,ge=b*I,we=b*F,ye=0,Ce=d,ve=0;ve0)q--;else if(Ae<0){for(Te=b*re,Ee=b*Y,Pe=b*q,Ce=d,ve=0;ve0)for(;;){H=d+q*b,ye=0;e:for(ve=0;ve0){if(--qF){e:for(;;){for(H=d+Y*b,ye=0,Ce=d,ve=0;ve1&&k?x(y,k[0],k[1]):x(y)}var _={"uint32,1,0":function(w,T){return function(y){var k=y.data,S=y.offset|0,x=y.shape,M=y.stride,d=M[0]|0,b=x[0]|0,g=M[1]|0,c=x[1]|0,A=g,h=g,R=1;b<=32?w(0,b-1,k,S,d,g,b,c,A,h,R):T(0,b-1,k,S,d,g,b,c,A,h,R)}}};function m(w,T){var y=[T,w].join(","),k=_[y],S=f(w,T),x=p(w,T,S);return k(S,x)}a.exports=m},446:function(a,o,i){"use strict";var l=i(7640),u={};function s(f){var v=f.order,p=f.dtype,_=[v,p],m=_.join(":"),w=u[m];return w||(u[m]=w=l(v,p)),w(f),f}a.exports=s},9618:function(a,o,i){var l=i(7163),u=typeof Float64Array!="undefined";function s(T,y){return T[0]-y[0]}function f(){var T=this.stride,y=new Array(T.length),k;for(k=0;k=0&&(g=d|0,b+=A*g,c-=g),new S(this.data,c,A,b)},x.step=function(d){var b=this.shape[0],g=this.stride[0],c=this.offset,A=0,h=Math.ceil;return typeof d=="number"&&(A=d|0,A<0?(c+=g*(b-1),b=h(-b/A)):b=h(b/A),g*=A),new S(this.data,b,g,c)},x.transpose=function(d){d=d===void 0?0:d|0;var b=this.shape,g=this.stride;return new S(this.data,b[d],g[d],this.offset)},x.pick=function(d){var b=[],g=[],c=this.offset;typeof d=="number"&&d>=0?c=c+this.stride[0]*d|0:(b.push(this.shape[0]),g.push(this.stride[0]));var A=y[b.length+1];return A(this.data,b,g,c)},function(d,b,g,c){return new S(d,b[0],g[0],c)}},2:function(T,y,k){function S(M,d,b,g,c,A){this.data=M,this.shape=[d,b],this.stride=[g,c],this.offset=A|0}var x=S.prototype;return x.dtype=T,x.dimension=2,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(x,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),x.set=function(d,b,g){return T==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*b,g):this.data[this.offset+this.stride[0]*d+this.stride[1]*b]=g},x.get=function(d,b){return T==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*b):this.data[this.offset+this.stride[0]*d+this.stride[1]*b]},x.index=function(d,b){return this.offset+this.stride[0]*d+this.stride[1]*b},x.hi=function(d,b){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof b!="number"||b<0?this.shape[1]:b|0,this.stride[0],this.stride[1],this.offset)},x.lo=function(d,b){var g=this.offset,c=0,A=this.shape[0],h=this.shape[1],R=this.stride[0],E=this.stride[1];return typeof d=="number"&&d>=0&&(c=d|0,g+=R*c,A-=c),typeof b=="number"&&b>=0&&(c=b|0,g+=E*c,h-=c),new S(this.data,A,h,R,E,g)},x.step=function(d,b){var g=this.shape[0],c=this.shape[1],A=this.stride[0],h=this.stride[1],R=this.offset,E=0,D=Math.ceil;return typeof d=="number"&&(E=d|0,E<0?(R+=A*(g-1),g=D(-g/E)):g=D(g/E),A*=E),typeof b=="number"&&(E=b|0,E<0?(R+=h*(c-1),c=D(-c/E)):c=D(c/E),h*=E),new S(this.data,g,c,A,h,R)},x.transpose=function(d,b){d=d===void 0?0:d|0,b=b===void 0?1:b|0;var g=this.shape,c=this.stride;return new S(this.data,g[d],g[b],c[d],c[b],this.offset)},x.pick=function(d,b){var g=[],c=[],A=this.offset;typeof d=="number"&&d>=0?A=A+this.stride[0]*d|0:(g.push(this.shape[0]),c.push(this.stride[0])),typeof b=="number"&&b>=0?A=A+this.stride[1]*b|0:(g.push(this.shape[1]),c.push(this.stride[1]));var h=y[g.length+1];return h(this.data,g,c,A)},function(d,b,g,c){return new S(d,b[0],b[1],g[0],g[1],c)}},3:function(T,y,k){function S(M,d,b,g,c,A,h,R){this.data=M,this.shape=[d,b,g],this.stride=[c,A,h],this.offset=R|0}var x=S.prototype;return x.dtype=T,x.dimension=3,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(x,"order",{get:function(){var d=Math.abs(this.stride[0]),b=Math.abs(this.stride[1]),g=Math.abs(this.stride[2]);return d>b?b>g?[2,1,0]:d>g?[1,2,0]:[1,0,2]:d>g?[2,0,1]:g>b?[0,1,2]:[0,2,1]}}),x.set=function(d,b,g,c){return T==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*b+this.stride[2]*g,c):this.data[this.offset+this.stride[0]*d+this.stride[1]*b+this.stride[2]*g]=c},x.get=function(d,b,g){return T==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*b+this.stride[2]*g):this.data[this.offset+this.stride[0]*d+this.stride[1]*b+this.stride[2]*g]},x.index=function(d,b,g){return this.offset+this.stride[0]*d+this.stride[1]*b+this.stride[2]*g},x.hi=function(d,b,g){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof b!="number"||b<0?this.shape[1]:b|0,typeof g!="number"||g<0?this.shape[2]:g|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},x.lo=function(d,b,g){var c=this.offset,A=0,h=this.shape[0],R=this.shape[1],E=this.shape[2],D=this.stride[0],N=this.stride[1],F=this.stride[2];return typeof d=="number"&&d>=0&&(A=d|0,c+=D*A,h-=A),typeof b=="number"&&b>=0&&(A=b|0,c+=N*A,R-=A),typeof g=="number"&&g>=0&&(A=g|0,c+=F*A,E-=A),new S(this.data,h,R,E,D,N,F,c)},x.step=function(d,b,g){var c=this.shape[0],A=this.shape[1],h=this.shape[2],R=this.stride[0],E=this.stride[1],D=this.stride[2],N=this.offset,F=0,I=Math.ceil;return typeof d=="number"&&(F=d|0,F<0?(N+=R*(c-1),c=I(-c/F)):c=I(c/F),R*=F),typeof b=="number"&&(F=b|0,F<0?(N+=E*(A-1),A=I(-A/F)):A=I(A/F),E*=F),typeof g=="number"&&(F=g|0,F<0?(N+=D*(h-1),h=I(-h/F)):h=I(h/F),D*=F),new S(this.data,c,A,h,R,E,D,N)},x.transpose=function(d,b,g){d=d===void 0?0:d|0,b=b===void 0?1:b|0,g=g===void 0?2:g|0;var c=this.shape,A=this.stride;return new S(this.data,c[d],c[b],c[g],A[d],A[b],A[g],this.offset)},x.pick=function(d,b,g){var c=[],A=[],h=this.offset;typeof d=="number"&&d>=0?h=h+this.stride[0]*d|0:(c.push(this.shape[0]),A.push(this.stride[0])),typeof b=="number"&&b>=0?h=h+this.stride[1]*b|0:(c.push(this.shape[1]),A.push(this.stride[1])),typeof g=="number"&&g>=0?h=h+this.stride[2]*g|0:(c.push(this.shape[2]),A.push(this.stride[2]));var R=y[c.length+1];return R(this.data,c,A,h)},function(d,b,g,c){return new S(d,b[0],b[1],b[2],g[0],g[1],g[2],c)}},4:function(T,y,k){function S(M,d,b,g,c,A,h,R,E,D){this.data=M,this.shape=[d,b,g,c],this.stride=[A,h,R,E],this.offset=D|0}var x=S.prototype;return x.dtype=T,x.dimension=4,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(x,"order",{get:k}),x.set=function(d,b,g,c,A){return T==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*b+this.stride[2]*g+this.stride[3]*c,A):this.data[this.offset+this.stride[0]*d+this.stride[1]*b+this.stride[2]*g+this.stride[3]*c]=A},x.get=function(d,b,g,c){return T==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*b+this.stride[2]*g+this.stride[3]*c):this.data[this.offset+this.stride[0]*d+this.stride[1]*b+this.stride[2]*g+this.stride[3]*c]},x.index=function(d,b,g,c){return this.offset+this.stride[0]*d+this.stride[1]*b+this.stride[2]*g+this.stride[3]*c},x.hi=function(d,b,g,c){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof b!="number"||b<0?this.shape[1]:b|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof c!="number"||c<0?this.shape[3]:c|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},x.lo=function(d,b,g,c){var A=this.offset,h=0,R=this.shape[0],E=this.shape[1],D=this.shape[2],N=this.shape[3],F=this.stride[0],I=this.stride[1],L=this.stride[2],P=this.stride[3];return typeof d=="number"&&d>=0&&(h=d|0,A+=F*h,R-=h),typeof b=="number"&&b>=0&&(h=b|0,A+=I*h,E-=h),typeof g=="number"&&g>=0&&(h=g|0,A+=L*h,D-=h),typeof c=="number"&&c>=0&&(h=c|0,A+=P*h,N-=h),new S(this.data,R,E,D,N,F,I,L,P,A)},x.step=function(d,b,g,c){var A=this.shape[0],h=this.shape[1],R=this.shape[2],E=this.shape[3],D=this.stride[0],N=this.stride[1],F=this.stride[2],I=this.stride[3],L=this.offset,P=0,O=Math.ceil;return typeof d=="number"&&(P=d|0,P<0?(L+=D*(A-1),A=O(-A/P)):A=O(A/P),D*=P),typeof b=="number"&&(P=b|0,P<0?(L+=N*(h-1),h=O(-h/P)):h=O(h/P),N*=P),typeof g=="number"&&(P=g|0,P<0?(L+=F*(R-1),R=O(-R/P)):R=O(R/P),F*=P),typeof c=="number"&&(P=c|0,P<0?(L+=I*(E-1),E=O(-E/P)):E=O(E/P),I*=P),new S(this.data,A,h,R,E,D,N,F,I,L)},x.transpose=function(d,b,g,c){d=d===void 0?0:d|0,b=b===void 0?1:b|0,g=g===void 0?2:g|0,c=c===void 0?3:c|0;var A=this.shape,h=this.stride;return new S(this.data,A[d],A[b],A[g],A[c],h[d],h[b],h[g],h[c],this.offset)},x.pick=function(d,b,g,c){var A=[],h=[],R=this.offset;typeof d=="number"&&d>=0?R=R+this.stride[0]*d|0:(A.push(this.shape[0]),h.push(this.stride[0])),typeof b=="number"&&b>=0?R=R+this.stride[1]*b|0:(A.push(this.shape[1]),h.push(this.stride[1])),typeof g=="number"&&g>=0?R=R+this.stride[2]*g|0:(A.push(this.shape[2]),h.push(this.stride[2])),typeof c=="number"&&c>=0?R=R+this.stride[3]*c|0:(A.push(this.shape[3]),h.push(this.stride[3]));var E=y[A.length+1];return E(this.data,A,h,R)},function(d,b,g,c){return new S(d,b[0],b[1],b[2],b[3],g[0],g[1],g[2],g[3],c)}},5:function(y,k,S){function x(d,b,g,c,A,h,R,E,D,N,F,I){this.data=d,this.shape=[b,g,c,A,h],this.stride=[R,E,D,N,F],this.offset=I|0}var M=x.prototype;return M.dtype=y,M.dimension=5,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(M,"order",{get:S}),M.set=function(b,g,c,A,h,R){return y==="generic"?this.data.set(this.offset+this.stride[0]*b+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h,R):this.data[this.offset+this.stride[0]*b+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h]=R},M.get=function(b,g,c,A,h){return y==="generic"?this.data.get(this.offset+this.stride[0]*b+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h):this.data[this.offset+this.stride[0]*b+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h]},M.index=function(b,g,c,A,h){return this.offset+this.stride[0]*b+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h},M.hi=function(b,g,c,A,h){return new x(this.data,typeof b!="number"||b<0?this.shape[0]:b|0,typeof g!="number"||g<0?this.shape[1]:g|0,typeof c!="number"||c<0?this.shape[2]:c|0,typeof A!="number"||A<0?this.shape[3]:A|0,typeof h!="number"||h<0?this.shape[4]:h|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},M.lo=function(b,g,c,A,h){var R=this.offset,E=0,D=this.shape[0],N=this.shape[1],F=this.shape[2],I=this.shape[3],L=this.shape[4],P=this.stride[0],O=this.stride[1],U=this.stride[2],X=this.stride[3],$=this.stride[4];return typeof b=="number"&&b>=0&&(E=b|0,R+=P*E,D-=E),typeof g=="number"&&g>=0&&(E=g|0,R+=O*E,N-=E),typeof c=="number"&&c>=0&&(E=c|0,R+=U*E,F-=E),typeof A=="number"&&A>=0&&(E=A|0,R+=X*E,I-=E),typeof h=="number"&&h>=0&&(E=h|0,R+=$*E,L-=E),new x(this.data,D,N,F,I,L,P,O,U,X,$,R)},M.step=function(b,g,c,A,h){var R=this.shape[0],E=this.shape[1],D=this.shape[2],N=this.shape[3],F=this.shape[4],I=this.stride[0],L=this.stride[1],P=this.stride[2],O=this.stride[3],U=this.stride[4],X=this.offset,$=0,j=Math.ceil;return typeof b=="number"&&($=b|0,$<0?(X+=I*(R-1),R=j(-R/$)):R=j(R/$),I*=$),typeof g=="number"&&($=g|0,$<0?(X+=L*(E-1),E=j(-E/$)):E=j(E/$),L*=$),typeof c=="number"&&($=c|0,$<0?(X+=P*(D-1),D=j(-D/$)):D=j(D/$),P*=$),typeof A=="number"&&($=A|0,$<0?(X+=O*(N-1),N=j(-N/$)):N=j(N/$),O*=$),typeof h=="number"&&($=h|0,$<0?(X+=U*(F-1),F=j(-F/$)):F=j(F/$),U*=$),new x(this.data,R,E,D,N,F,I,L,P,O,U,X)},M.transpose=function(b,g,c,A,h){b=b===void 0?0:b|0,g=g===void 0?1:g|0,c=c===void 0?2:c|0,A=A===void 0?3:A|0,h=h===void 0?4:h|0;var R=this.shape,E=this.stride;return new x(this.data,R[b],R[g],R[c],R[A],R[h],E[b],E[g],E[c],E[A],E[h],this.offset)},M.pick=function(b,g,c,A,h){var R=[],E=[],D=this.offset;typeof b=="number"&&b>=0?D=D+this.stride[0]*b|0:(R.push(this.shape[0]),E.push(this.stride[0])),typeof g=="number"&&g>=0?D=D+this.stride[1]*g|0:(R.push(this.shape[1]),E.push(this.stride[1])),typeof c=="number"&&c>=0?D=D+this.stride[2]*c|0:(R.push(this.shape[2]),E.push(this.stride[2])),typeof A=="number"&&A>=0?D=D+this.stride[3]*A|0:(R.push(this.shape[3]),E.push(this.stride[3])),typeof h=="number"&&h>=0?D=D+this.stride[4]*h|0:(R.push(this.shape[4]),E.push(this.stride[4]));var N=k[R.length+1];return N(this.data,R,E,D)},function(b,g,c,A){return new x(b,g[0],g[1],g[2],g[3],g[4],c[0],c[1],c[2],c[3],c[4],A)}}};function p(T,y){var k=y===-1?"T":String(y),S=v[k];return y===-1?S(T):y===0?S(T,m[T][0]):S(T,m[T],f)}function _(T){if(l(T))return"buffer";if(u)switch(Object.prototype.toString.call(T)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(T)?"array":"generic"}var m={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function w(T,y,k,S){if(T===void 0){var c=m.array[0];return c([])}else typeof T=="number"&&(T=[T]);y===void 0&&(y=[T.length]);var x=y.length;if(k===void 0){k=new Array(x);for(var M=x-1,d=1;M>=0;--M)k[M]=d,d*=y[M]}if(S===void 0){S=0;for(var M=0;M>>0;a.exports=f;function f(v,p){if(isNaN(v)||isNaN(p))return NaN;if(v===p)return v;if(v===0)return p<0?-u:u;var _=l.hi(v),m=l.lo(v);return p>v==v>0?m===s?(_+=1,m=0):m+=1:m===0?(m=s,_-=1):m-=1,l.pack(m,_)}},8406:function(a,o){var i=1e-6,l=1e-6;o.vertexNormals=function(u,s,f){for(var v=s.length,p=new Array(v),_=f===void 0?i:f,m=0;m_)for(var R=p[y],E=1/Math.sqrt(g*A),h=0;h<3;++h){var D=(h+1)%3,N=(h+2)%3;R[h]+=E*(c[D]*b[N]-c[N]*b[D])}}for(var m=0;m_)for(var E=1/Math.sqrt(F),h=0;h<3;++h)R[h]*=E;else for(var h=0;h<3;++h)R[h]=0}return p},o.faceNormals=function(u,s,f){for(var v=u.length,p=new Array(v),_=f===void 0?l:f,m=0;m_?M=1/Math.sqrt(M):M=0;for(var y=0;y<3;++y)x[y]*=M;p[m]=x}return p}},4081:function(a){"use strict";a.exports=o;function o(i,l,u,s,f,v,p,_,m,w){var T=l+v+w;if(y>0){var y=Math.sqrt(T+1);i[0]=.5*(p-m)/y,i[1]=.5*(_-s)/y,i[2]=.5*(u-v)/y,i[3]=.5*y}else{var k=Math.max(l,v,w),y=Math.sqrt(2*k-T+1);l>=k?(i[0]=.5*y,i[1]=.5*(f+u)/y,i[2]=.5*(_+s)/y,i[3]=.5*(p-m)/y):v>=k?(i[0]=.5*(u+f)/y,i[1]=.5*y,i[2]=.5*(m+p)/y,i[3]=.5*(_-s)/y):(i[0]=.5*(s+_)/y,i[1]=.5*(p+m)/y,i[2]=.5*y,i[3]=.5*(u-f)/y)}return i}},9977:function(a,o,i){"use strict";a.exports=y;var l=i(9215),u=i(6582),s=i(7399),f=i(7608),v=i(4081);function p(k,S,x){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2))}function _(k,S,x,M){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2)+Math.pow(M,2))}function m(k,S){var x=S[0],M=S[1],d=S[2],b=S[3],g=_(x,M,d,b);g>1e-6?(k[0]=x/g,k[1]=M/g,k[2]=d/g,k[3]=b/g):(k[0]=k[1]=k[2]=0,k[3]=1)}function w(k,S,x){this.radius=l([x]),this.center=l(S),this.rotation=l(k),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var T=w.prototype;T.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},T.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var S=this.computedRotation;m(S,S);var x=this.computedMatrix;s(x,S);var M=this.computedCenter,d=this.computedEye,b=this.computedUp,g=Math.exp(this.computedRadius[0]);d[0]=M[0]+g*x[2],d[1]=M[1]+g*x[6],d[2]=M[2]+g*x[10],b[0]=x[1],b[1]=x[5],b[2]=x[9];for(var c=0;c<3;++c){for(var A=0,h=0;h<3;++h)A+=x[c+4*h]*d[h];x[12+c]=-A}},T.getMatrix=function(k,S){this.recalcMatrix(k);var x=this.computedMatrix;if(S){for(var M=0;M<16;++M)S[M]=x[M];return S}return x},T.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},T.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},T.pan=function(k,S,x,M){S=S||0,x=x||0,M=M||0,this.recalcMatrix(k);var d=this.computedMatrix,b=d[1],g=d[5],c=d[9],A=p(b,g,c);b/=A,g/=A,c/=A;var h=d[0],R=d[4],E=d[8],D=h*b+R*g+E*c;h-=b*D,R-=g*D,E-=c*D;var N=p(h,R,E);h/=N,R/=N,E/=N;var F=d[2],I=d[6],L=d[10],P=F*b+I*g+L*c,O=F*h+I*R+L*E;F-=P*b+O*h,I-=P*g+O*R,L-=P*c+O*E;var U=p(F,I,L);F/=U,I/=U,L/=U;var X=h*S+b*x,$=R*S+g*x,j=E*S+c*x;this.center.move(k,X,$,j);var Y=Math.exp(this.computedRadius[0]);Y=Math.max(1e-4,Y+M),this.radius.set(k,Math.log(Y))},T.rotate=function(k,S,x,M){this.recalcMatrix(k),S=S||0,x=x||0;var d=this.computedMatrix,b=d[0],g=d[4],c=d[8],A=d[1],h=d[5],R=d[9],E=d[2],D=d[6],N=d[10],F=S*b+x*A,I=S*g+x*h,L=S*c+x*R,P=-(D*L-N*I),O=-(N*F-E*L),U=-(E*I-D*F),X=Math.sqrt(Math.max(0,1-Math.pow(P,2)-Math.pow(O,2)-Math.pow(U,2))),$=_(P,O,U,X);$>1e-6?(P/=$,O/=$,U/=$,X/=$):(P=O=U=0,X=1);var j=this.computedRotation,Y=j[0],q=j[1],K=j[2],ne=j[3],Q=Y*X+ne*P+q*U-K*O,ie=q*X+ne*O+K*P-Y*U,ee=K*X+ne*U+Y*O-q*P,V=ne*X-Y*P-q*O-K*U;if(M){P=E,O=D,U=N;var re=Math.sin(M)/p(P,O,U);P*=re,O*=re,U*=re,X=Math.cos(S),Q=Q*X+V*P+ie*U-ee*O,ie=ie*X+V*O+ee*P-Q*U,ee=ee*X+V*U+Q*O-ie*P,V=V*X-Q*P-ie*O-ee*U}var H=_(Q,ie,ee,V);H>1e-6?(Q/=H,ie/=H,ee/=H,V/=H):(Q=ie=ee=0,V=1),this.rotation.set(k,Q,ie,ee,V)},T.lookAt=function(k,S,x,M){this.recalcMatrix(k),x=x||this.computedCenter,S=S||this.computedEye,M=M||this.computedUp;var d=this.computedMatrix;u(d,S,x,M);var b=this.computedRotation;v(b,d[0],d[1],d[2],d[4],d[5],d[6],d[8],d[9],d[10]),m(b,b),this.rotation.set(k,b[0],b[1],b[2],b[3]);for(var g=0,c=0;c<3;++c)g+=Math.pow(x[c]-S[c],2);this.radius.set(k,.5*Math.log(Math.max(g,1e-6))),this.center.set(k,x[0],x[1],x[2])},T.translate=function(k,S,x,M){this.center.move(k,S||0,x||0,M||0)},T.setMatrix=function(k,S){var x=this.computedRotation;v(x,S[0],S[1],S[2],S[4],S[5],S[6],S[8],S[9],S[10]),m(x,x),this.rotation.set(k,x[0],x[1],x[2],x[3]);var M=this.computedMatrix;f(M,S);var d=M[15];if(Math.abs(d)>1e-6){var b=M[12]/d,g=M[13]/d,c=M[14]/d;this.recalcMatrix(k);var A=Math.exp(this.computedRadius[0]);this.center.set(k,b-M[2]*A,g-M[6]*A,c-M[10]*A),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},T.setDistance=function(k,S){S>0&&this.radius.set(k,Math.log(S))},T.setDistanceLimits=function(k,S){k>0?k=Math.log(k):k=-1/0,S>0?S=Math.log(S):S=1/0,S=Math.max(S,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=S},T.getDistanceLimits=function(k){var S=this.radius.bounds;return k?(k[0]=Math.exp(S[0][0]),k[1]=Math.exp(S[1][0]),k):[Math.exp(S[0][0]),Math.exp(S[1][0])]},T.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},T.fromJSON=function(k){var S=this.lastT(),x=k.center;x&&this.center.set(S,x[0],x[1],x[2]);var M=k.rotation;M&&this.rotation.set(S,M[0],M[1],M[2],M[3]);var d=k.distance;d&&d>0&&this.radius.set(S,Math.log(d)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function y(k){k=k||{};var S=k.center||[0,0,0],x=k.rotation||[0,0,0,1],M=k.radius||1;S=[].slice.call(S,0,3),x=[].slice.call(x,0,4),m(x,x);var d=new w(x,S,Math.log(M));return d.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&d.lookAt(0,k.eye,k.center,k.up),d}},1371:function(a,o,i){"use strict";var l=i(3233);a.exports=function(s,f,v){return v=typeof v!="undefined"?v+"":" ",l(v,f)+s}},3202:function(a){a.exports=function(i,l){l||(l=[0,""]),i=String(i);var u=parseFloat(i,10);return l[0]=u,l[1]=i.match(/[\d.\-\+]*\s*(.*)/)[1]||"",l}},3088:function(a,o,i){"use strict";a.exports=u;var l=i(3140);function u(s,f){for(var v=f.length|0,p=s.length,_=[new Array(v),new Array(v)],m=0;m0){R=_[N][A][0],D=N;break}E=R[D^1];for(var F=0;F<2;++F)for(var I=_[F][A],L=0;L0&&(R=P,E=O,D=F)}return h||R&&y(R,D),E}function S(c,A){var h=_[A][c][0],R=[c];y(h,A);for(var E=h[A^1],D=A;;){for(;E!==c;)R.push(E),E=k(R[R.length-2],E,!1);if(_[0][c].length+_[1][c].length===0)break;var N=R[R.length-1],F=c,I=R[1],L=k(N,F,!0);if(l(f[N],f[F],f[I],f[L])<0)break;R.push(c),E=k(N,F)}return R}function x(c,A){return A[1]===A[A.length-1]}for(var m=0;m0;){var b=_[0][m].length,g=S(m,M);x(d,g)?d.push.apply(d,g):(d.length>0&&T.push(d),d=g)}d.length>0&&T.push(d)}return T}},5609:function(a,o,i){"use strict";a.exports=u;var l=i(3134);function u(s,f){for(var v=l(s,f.length),p=new Array(f.length),_=new Array(f.length),m=[],w=0;w0;){var y=m.pop();p[y]=!1;for(var k=v[y],w=0;w0}b=b.filter(g);for(var c=b.length,A=new Array(c),h=new Array(c),d=0;d0;){var H=ee.pop(),te=$[H];p(te,function(ve,Te){return ve-Te});var ue=te.length,de=V[H],ke;if(de===0){var I=b[H];ke=[I]}for(var d=0;d=0)&&(V[Ae]=de^1,ee.push(Ae),de===0)){var I=b[Ae];ie(I)||(I.reverse(),ke.push(I))}}de===0&&re.push(ke)}return re}},5085:function(a,o,i){a.exports=k;var l=i(3250)[3],u=i(4209),s=i(3352),f=i(2478);function v(){return!0}function p(S){return function(x,M){var d=S[x];return d?!!d.queryPoint(M,v):!1}}function _(S){for(var x={},M=0;M0&&x[d]===M[0])b=S[d-1];else return 1;for(var g=1;b;){var c=b.key,A=l(M,c[0],c[1]);if(c[0][0]0)g=-1,b=b.right;else return 0;else if(A>0)b=b.left;else if(A<0)g=1,b=b.right;else return 0}return g}}function w(S){return 1}function T(S){return function(M){return S(M[0],M[1])?0:1}}function y(S,x){return function(d){return S(d[0],d[1])?0:x(d)}}function k(S){for(var x=S.length,M=[],d=[],b=0,g=0;g=w?(c=1,h=w+2*k+x):(c=-k/w,h=k*c+x)):(c=0,S>=0?(A=0,h=x):-S>=y?(A=1,h=y+2*S+x):(A=-S/y,h=S*A+x));else if(A<0)A=0,k>=0?(c=0,h=x):-k>=w?(c=1,h=w+2*k+x):(c=-k/w,h=k*c+x);else{var R=1/g;c*=R,A*=R,h=c*(w*c+T*A+2*k)+A*(T*c+y*A+2*S)+x}else{var E,D,N,F;c<0?(E=T+k,D=y+S,D>E?(N=D-E,F=w-2*T+y,N>=F?(c=1,A=0,h=w+2*k+x):(c=N/F,A=1-c,h=c*(w*c+T*A+2*k)+A*(T*c+y*A+2*S)+x)):(c=0,D<=0?(A=1,h=y+2*S+x):S>=0?(A=0,h=x):(A=-S/y,h=S*A+x))):A<0?(E=T+S,D=w+k,D>E?(N=D-E,F=w-2*T+y,N>=F?(A=1,c=0,h=y+2*S+x):(A=N/F,c=1-A,h=c*(w*c+T*A+2*k)+A*(T*c+y*A+2*S)+x)):(A=0,D<=0?(c=1,h=w+2*k+x):k>=0?(c=0,h=x):(c=-k/w,h=k*c+x))):(N=y+S-T-k,N<=0?(c=0,A=1,h=y+2*S+x):(F=w-2*T+y,N>=F?(c=1,A=0,h=w+2*k+x):(c=N/F,A=1-c,h=c*(w*c+T*A+2*k)+A*(T*c+y*A+2*S)+x)))}for(var I=1-c-A,m=0;m0){var y=v[_-1];if(l(w,y)===0&&s(y)!==T){_-=1;continue}}v[_++]=w}}return v.length=_,v}},3233:function(a){"use strict";var o="",i;a.exports=l;function l(u,s){if(typeof u!="string")throw new TypeError("expected a string");if(s===1)return u;if(s===2)return u+u;var f=u.length*s;if(i!==u||typeof i=="undefined")i=u,o="";else if(o.length>=f)return o.substr(0,f);for(;f>o.length&&s>1;)s&1&&(o+=u),s>>=1,u+=u;return o+=u,o=o.substr(0,f),o}},3025:function(a,o,i){a.exports=i.g.performance&&i.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(a){"use strict";a.exports=o;function o(i){for(var l=i.length,u=i[i.length-1],s=l,f=l-2;f>=0;--f){var v=u,p=i[f];u=v+p;var _=u-v,m=p-_;m&&(i[--s]=u,u=m)}for(var w=0,f=s;f0){if(D<=0)return N;F=E+D}else if(E<0){if(D>=0)return N;F=-(E+D)}else return N;var I=_*F;return N>=I||N<=-I?N:S(A,h,R)},function(A,h,R,E){var D=A[0]-E[0],N=h[0]-E[0],F=R[0]-E[0],I=A[1]-E[1],L=h[1]-E[1],P=R[1]-E[1],O=A[2]-E[2],U=h[2]-E[2],X=R[2]-E[2],$=N*P,j=F*L,Y=F*I,q=D*P,K=D*L,ne=N*I,Q=O*($-j)+U*(Y-q)+X*(K-ne),ie=(Math.abs($)+Math.abs(j))*Math.abs(O)+(Math.abs(Y)+Math.abs(q))*Math.abs(U)+(Math.abs(K)+Math.abs(ne))*Math.abs(X),ee=m*ie;return Q>ee||-Q>ee?Q:x(A,h,R,E)}];function d(c){var A=M[c.length];return A||(A=M[c.length]=k(c.length)),A.apply(void 0,c)}function b(c,A,h,R,E,D,N){return function(I,L,P,O,U){switch(arguments.length){case 0:case 1:return 0;case 2:return R(I,L);case 3:return E(I,L,P);case 4:return D(I,L,P,O);case 5:return N(I,L,P,O,U)}for(var X=new Array(arguments.length),$=0;$0&&w>0||m<0&&w<0)return!1;var T=l(p,f,v),y=l(_,f,v);return T>0&&y>0||T<0&&y<0?!1:m===0&&w===0&&T===0&&y===0?u(f,v,p,_):!0}},8545:function(a){"use strict";a.exports=i;function o(l,u){var s=l+u,f=s-l,v=s-f,p=u-f,_=l-v,m=_+p;return m?[m,s]:[s]}function i(l,u){var s=l.length|0,f=u.length|0;if(s===1&&f===1)return o(l[0],-u[0]);var v=s+f,p=new Array(v),_=0,m=0,w=0,T=Math.abs,y=l[m],k=T(y),S=-u[w],x=T(S),M,d;k=f?(M=y,m+=1,m=f?(M=y,m+=1,m>1,S=v[2*k+1];if(S===w)return k;w>1,S=v[2*k+1];if(S===w)return k;w>1,S=v[2*k+1];if(S===w)return k;w>1,S=v[2*k+1];if(S===w)return k;w>1,F=_(A[N],h);F<=0?(F===0&&(D=N),R=N+1):F>0&&(E=N-1)}return D}l=y;function k(A,h){for(var R=new Array(A.length),E=0,D=R.length;E=A.length||_(A[$],N)!==0););}return R}l=k;function S(A,h){if(!h)return k(T(M(A,0)),A,0);for(var R=new Array(h),E=0;E>>P&1&&L.push(D[P]);h.push(L)}return w(h)}l=x;function M(A,h){if(h<0)return[];for(var R=[],E=(1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,v=(s>255)<<3,s>>>=v,f|=v,v=(s>15)<<2,s>>>=v,f|=v,v=(s>3)<<1,s>>>=v,f|=v,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var v=f,p=f,_=7;for(v>>>=1;v;v>>>=1)p<<=1,p|=v&1,--_;s[f]=p<<_&255}})(u),o.reverse=function(s){return u[s&255]<<24|u[s>>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,v){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,v&=1023,v=(v|v<<16)&4278190335,v=(v|v<<8)&251719695,v=(v|v<<4)&3272356035,v=(v|v<<2)&1227133513,s|v<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},2014:function(a,o,i){"use strict";"use restrict";var l=i(3105),u=i(4623);function s(c){for(var A=0,h=Math.max,R=0,E=c.length;R>1,N=p(c[D],A);N<=0?(N===0&&(E=D),h=D+1):N>0&&(R=D-1)}return E}o.findCell=T;function y(c,A){for(var h=new Array(c.length),R=0,E=h.length;R=c.length||p(c[X],D)!==0););}return h}o.incidence=y;function k(c,A){if(!A)return y(w(x(c,0)),c,0);for(var h=new Array(A),R=0;R>>L&1&&I.push(E[L]);A.push(I)}return m(A)}o.explode=S;function x(c,A){if(A<0)return[];for(var h=[],R=(1<>1:(q>>1)-1}function R(q){for(var K=A(q);;){var ne=K,Q=2*q+1,ie=2*(q+1),ee=q;if(Q0;){var ne=h(q);if(ne>=0){var Q=A(ne);if(K0){var q=I[0];return c(0,O-1),O-=1,R(0),q}return-1}function N(q,K){var ne=I[q];return k[ne]===K?q:(k[ne]=-1/0,E(q),D(),k[ne]=K,O+=1,E(O-1))}function F(q){if(!S[q]){S[q]=!0;var K=T[q],ne=y[q];T[ne]>=0&&(T[ne]=K),y[K]>=0&&(y[K]=ne),L[K]>=0&&N(L[K],g(K)),L[ne]>=0&&N(L[ne],g(ne))}}for(var I=[],L=new Array(m),x=0;x>1;x>=0;--x)R(x);for(;;){var U=D();if(U<0||k[U]>_)break;F(U)}for(var X=[],x=0;x=0&&ne>=0&&K!==ne){var Q=L[K],ie=L[ne];Q!==ie&&Y.push([Q,ie])}}),u.unique(u.normalize(Y)),{positions:X,edges:Y}}},1303:function(a,o,i){"use strict";a.exports=s;var l=i(3250);function u(f,v){var p,_;if(v[0][0]v[1][0])p=v[1],_=v[0];else{var m=Math.min(f[0][1],f[1][1]),w=Math.max(f[0][1],f[1][1]),T=Math.min(v[0][1],v[1][1]),y=Math.max(v[0][1],v[1][1]);return wy?m-y:w-y}var k,S;f[0][1]v[1][0])p=v[1],_=v[0];else return u(v,f);var m,w;if(f[0][0]f[1][0])m=f[1],w=f[0];else return-u(f,v);var T=l(p,_,w),y=l(p,_,m);if(T<0){if(y<=0)return T}else if(T>0){if(y>=0)return T}else if(y)return y;if(T=l(w,m,_),y=l(w,m,p),T<0){if(y<=0)return T}else if(T>0){if(y>=0)return T}else if(y)return y;return _[0]-w[0]}},4209:function(a,o,i){"use strict";a.exports=y;var l=i(2478),u=i(3840),s=i(3250),f=i(1303);function v(k,S,x){this.slabs=k,this.coordinates=S,this.horizontal=x}var p=v.prototype;function _(k,S){return k.y-S}function m(k,S){for(var x=null;k;){var M=k.key,d,b;M[0][0]0)if(S[0]!==M[1][0])x=k,k=k.right;else{var c=m(k.right,S);if(c)return c;k=k.left}else{if(S[0]!==M[1][0])return k;var c=m(k.right,S);if(c)return c;k=k.left}}return x}p.castUp=function(k){var S=l.le(this.coordinates,k[0]);if(S<0)return-1;var x=this.slabs[S],M=m(this.slabs[S],k),d=-1;if(M&&(d=M.value),this.coordinates[S]===k[0]){var b=null;if(M&&(b=M.key),S>0){var g=m(this.slabs[S-1],k);g&&(b?f(g.key,b)>0&&(b=g.key,d=g.value):(d=g.value,b=g.key))}var c=this.horizontal[S];if(c.length>0){var A=l.ge(c,k[1],_);if(A=c.length)return d;h=c[A]}}if(h.start)if(b){var R=s(b[0],b[1],[k[0],h.y]);b[0][0]>b[1][0]&&(R=-R),R>0&&(d=h.index)}else d=h.index;else h.y!==k[1]&&(d=h.index)}}}return d};function w(k,S,x,M){this.y=k,this.index=S,this.start=x,this.closed=M}function T(k,S,x,M){this.x=k,this.segment=S,this.create=x,this.index=M}function y(k){for(var S=k.length,x=2*S,M=new Array(x),d=0;d1&&(S=1);for(var x=1-S,M=m.length,d=new Array(M),b=0;b0||k>0&&d<0){var b=f(S,d,x,k);T.push(b),y.push(b.slice())}d<0?y.push(x.slice()):d>0?T.push(x.slice()):(T.push(x.slice()),y.push(x.slice())),k=d}return{positive:T,negative:y}}function p(m,w){for(var T=[],y=s(m[m.length-1],w),k=m[m.length-1],S=m[0],x=0;x0||y>0&&M<0)&&T.push(f(k,M,S,y)),M>=0&&T.push(S.slice()),y=M}return T}function _(m,w){for(var T=[],y=s(m[m.length-1],w),k=m[m.length-1],S=m[0],x=0;x0||y>0&&M<0)&&T.push(f(k,M,S,y)),M<=0&&T.push(S.slice()),y=M}return T}},3387:function(a,o,i){var l;(function(){"use strict";var u={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function s(m){return v(_(m),arguments)}function f(m,w){return s.apply(null,[m].concat(w||[]))}function v(m,w){var T=1,y=m.length,k,S="",x,M,d,b,g,c,A,h;for(x=0;x=0),d.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,d.width?parseInt(d.width):0);break;case"e":k=d.precision?parseFloat(k).toExponential(d.precision):parseFloat(k).toExponential();break;case"f":k=d.precision?parseFloat(k).toFixed(d.precision):parseFloat(k);break;case"g":k=d.precision?String(Number(k.toPrecision(d.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=d.precision?k.substring(0,d.precision):k;break;case"t":k=String(!!k),k=d.precision?k.substring(0,d.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=d.precision?k.substring(0,d.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=d.precision?k.substring(0,d.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}u.json.test(d.type)?S+=k:(u.number.test(d.type)&&(!A||d.sign)?(h=A?"+":"-",k=k.toString().replace(u.sign,"")):h="",g=d.pad_char?d.pad_char==="0"?"0":d.pad_char.charAt(1):" ",c=d.width-(h+k).length,b=d.width&&c>0?g.repeat(c):"",S+=d.align?h+k+b:g==="0"?h+b+k:b+h+k)}return S}var p=Object.create(null);function _(m){if(p[m])return p[m];for(var w=m,T,y=[],k=0;w;){if((T=u.text.exec(w))!==null)y.push(T[0]);else if((T=u.modulo.exec(w))!==null)y.push("%");else if((T=u.placeholder.exec(w))!==null){if(T[2]){k|=1;var S=[],x=T[2],M=[];if((M=u.key.exec(x))!==null)for(S.push(M[1]);(x=x.substring(M[0].length))!=="";)if((M=u.key_access.exec(x))!==null)S.push(M[1]);else if((M=u.index_access.exec(x))!==null)S.push(M[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");T[2]=S}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");y.push({placeholder:T[0],param_no:T[1],keys:T[2],sign:T[3],pad_char:T[4],align:T[5],width:T[6],precision:T[7],type:T[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");w=w.substring(T[0].length)}return p[m]=y}o.sprintf=s,o.vsprintf=f,typeof window!="undefined"&&(window.sprintf=s,window.vsprintf=f,l=function(){return{sprintf:s,vsprintf:f}}.call(o,i,o,a),l!==void 0&&(a.exports=l))})()},3711:function(a,o,i){"use strict";a.exports=_;var l=i(2640),u=i(781),s={"2d":function(m,w,T){var y=m({order:w,scalarArguments:3,getters:T==="generic"?[0]:void 0,phase:function(S,x,M,d){return S>d|0},vertex:function(S,x,M,d,b,g,c,A,h,R,E,D,N){var F=(c<<0)+(A<<1)+(h<<2)+(R<<3)|0;if(!(F===0||F===15))switch(F){case 0:E.push([S-.5,x-.5]);break;case 1:E.push([S-.25-.25*(d+M-2*N)/(M-d),x-.25-.25*(b+M-2*N)/(M-b)]);break;case 2:E.push([S-.75-.25*(-d-M+2*N)/(d-M),x-.25-.25*(g+d-2*N)/(d-g)]);break;case 3:E.push([S-.5,x-.5-.5*(b+M+g+d-4*N)/(M-b+d-g)]);break;case 4:E.push([S-.25-.25*(g+b-2*N)/(b-g),x-.75-.25*(-b-M+2*N)/(b-M)]);break;case 5:E.push([S-.5-.5*(d+M+g+b-4*N)/(M-d+b-g),x-.5]);break;case 6:E.push([S-.5-.25*(-d-M+g+b)/(d-M+b-g),x-.5-.25*(-b-M+g+d)/(b-M+d-g)]);break;case 7:E.push([S-.75-.25*(g+b-2*N)/(b-g),x-.75-.25*(g+d-2*N)/(d-g)]);break;case 8:E.push([S-.75-.25*(-g-b+2*N)/(g-b),x-.75-.25*(-g-d+2*N)/(g-d)]);break;case 9:E.push([S-.5-.25*(d+M+-g-b)/(M-d+g-b),x-.5-.25*(b+M+-g-d)/(M-b+g-d)]);break;case 10:E.push([S-.5-.5*(-d-M+-g-b+4*N)/(d-M+g-b),x-.5]);break;case 11:E.push([S-.25-.25*(-g-b+2*N)/(g-b),x-.75-.25*(b+M-2*N)/(M-b)]);break;case 12:E.push([S-.5,x-.5-.5*(-b-M+-g-d+4*N)/(b-M+g-d)]);break;case 13:E.push([S-.75-.25*(d+M-2*N)/(M-d),x-.25-.25*(-g-d+2*N)/(g-d)]);break;case 14:E.push([S-.25-.25*(-d-M+2*N)/(d-M),x-.25-.25*(-b-M+2*N)/(b-M)]);break;case 15:E.push([S-.5,x-.5]);break}},cell:function(S,x,M,d,b,g,c,A,h){b?A.push([S,x]):A.push([x,S])}});return function(k,S){var x=[],M=[];return y(k,x,M,S),{positions:x,cells:M}}}};function f(m,w){var T=m.length+"d",y=s[T];if(y)return y(l,m,w)}function v(m,w){for(var T=u(m,w),y=T.length,k=new Array(y),S=new Array(y),x=0;xMath.max(d,b)?g[2]=1:d>Math.max(M,b)?g[0]=1:g[1]=1;for(var c=0,A=0,h=0;h<3;++h)c+=x[h]*x[h],A+=g[h]*x[h];for(var h=0;h<3;++h)g[h]-=A/c*x[h];return v(g,g),g}function T(x,M,d,b,g,c,A,h){this.center=l(d),this.up=l(b),this.right=l(g),this.radius=l([c]),this.angle=l([A,h]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(x,M),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var R=0;R<16;++R)this.computedMatrix[R]=.5;this.recalcMatrix(0)}var y=T.prototype;y.setDistanceLimits=function(x,M){x>0?x=Math.log(x):x=-1/0,M>0?M=Math.log(M):M=1/0,M=Math.max(M,x),this.radius.bounds[0][0]=x,this.radius.bounds[1][0]=M},y.getDistanceLimits=function(x){var M=this.radius.bounds[0];return x?(x[0]=Math.exp(M[0][0]),x[1]=Math.exp(M[1][0]),x):[Math.exp(M[0][0]),Math.exp(M[1][0])]},y.recalcMatrix=function(x){this.center.curve(x),this.up.curve(x),this.right.curve(x),this.radius.curve(x),this.angle.curve(x);for(var M=this.computedUp,d=this.computedRight,b=0,g=0,c=0;c<3;++c)g+=M[c]*d[c],b+=M[c]*M[c];for(var A=Math.sqrt(b),h=0,c=0;c<3;++c)d[c]-=M[c]*g/b,h+=d[c]*d[c],M[c]/=A;for(var R=Math.sqrt(h),c=0;c<3;++c)d[c]/=R;var E=this.computedToward;f(E,M,d),v(E,E);for(var D=Math.exp(this.computedRadius[0]),N=this.computedAngle[0],F=this.computedAngle[1],I=Math.cos(N),L=Math.sin(N),P=Math.cos(F),O=Math.sin(F),U=this.computedCenter,X=I*P,$=L*P,j=O,Y=-I*O,q=-L*O,K=P,ne=this.computedEye,Q=this.computedMatrix,c=0;c<3;++c){var ie=X*d[c]+$*E[c]+j*M[c];Q[4*c+1]=Y*d[c]+q*E[c]+K*M[c],Q[4*c+2]=ie,Q[4*c+3]=0}var ee=Q[1],V=Q[5],re=Q[9],H=Q[2],te=Q[6],ue=Q[10],de=V*ue-re*te,ke=re*H-ee*ue,Ae=ee*te-V*H,ve=_(de,ke,Ae);de/=ve,ke/=ve,Ae/=ve,Q[0]=de,Q[4]=ke,Q[8]=Ae;for(var c=0;c<3;++c)ne[c]=U[c]+Q[2+4*c]*D;for(var c=0;c<3;++c){for(var h=0,Te=0;Te<3;++Te)h+=Q[c+4*Te]*ne[Te];Q[12+c]=-h}Q[15]=1},y.getMatrix=function(x,M){this.recalcMatrix(x);var d=this.computedMatrix;if(M){for(var b=0;b<16;++b)M[b]=d[b];return M}return d};var k=[0,0,0];y.rotate=function(x,M,d,b){if(this.angle.move(x,M,d),b){this.recalcMatrix(x);var g=this.computedMatrix;k[0]=g[2],k[1]=g[6],k[2]=g[10];for(var c=this.computedUp,A=this.computedRight,h=this.computedToward,R=0;R<3;++R)g[4*R]=c[R],g[4*R+1]=A[R],g[4*R+2]=h[R];s(g,g,b,k);for(var R=0;R<3;++R)c[R]=g[4*R],A[R]=g[4*R+1];this.up.set(x,c[0],c[1],c[2]),this.right.set(x,A[0],A[1],A[2])}},y.pan=function(x,M,d,b){M=M||0,d=d||0,b=b||0,this.recalcMatrix(x);var g=this.computedMatrix,c=Math.exp(this.computedRadius[0]),A=g[1],h=g[5],R=g[9],E=_(A,h,R);A/=E,h/=E,R/=E;var D=g[0],N=g[4],F=g[8],I=D*A+N*h+F*R;D-=A*I,N-=h*I,F-=R*I;var L=_(D,N,F);D/=L,N/=L,F/=L;var P=D*M+A*d,O=N*M+h*d,U=F*M+R*d;this.center.move(x,P,O,U);var X=Math.exp(this.computedRadius[0]);X=Math.max(1e-4,X+b),this.radius.set(x,Math.log(X))},y.translate=function(x,M,d,b){this.center.move(x,M||0,d||0,b||0)},y.setMatrix=function(x,M,d,b){var g=1;typeof d=="number"&&(g=d|0),(g<0||g>3)&&(g=1);var c=(g+2)%3,A=(g+1)%3;M||(this.recalcMatrix(x),M=this.computedMatrix);var h=M[g],R=M[g+4],E=M[g+8];if(b){var N=Math.abs(h),F=Math.abs(R),I=Math.abs(E),L=Math.max(N,F,I);N===L?(h=h<0?-1:1,R=E=0):I===L?(E=E<0?-1:1,h=R=0):(R=R<0?-1:1,h=E=0)}else{var D=_(h,R,E);h/=D,R/=D,E/=D}var P=M[c],O=M[c+4],U=M[c+8],X=P*h+O*R+U*E;P-=h*X,O-=R*X,U-=E*X;var $=_(P,O,U);P/=$,O/=$,U/=$;var j=R*U-E*O,Y=E*P-h*U,q=h*O-R*P,K=_(j,Y,q);j/=K,Y/=K,q/=K,this.center.jump(x,Be,ge,we),this.radius.idle(x),this.up.jump(x,h,R,E),this.right.jump(x,P,O,U);var ne,Q;if(g===2){var ie=M[1],ee=M[5],V=M[9],re=ie*P+ee*O+V*U,H=ie*j+ee*Y+V*q;ke<0?ne=-Math.PI/2:ne=Math.PI/2,Q=Math.atan2(H,re)}else{var te=M[2],ue=M[6],de=M[10],ke=te*h+ue*R+de*E,Ae=te*P+ue*O+de*U,ve=te*j+ue*Y+de*q;ne=Math.asin(m(ke)),Q=Math.atan2(ve,Ae)}this.angle.jump(x,Q,ne),this.recalcMatrix(x);var Te=M[2],Ee=M[6],Pe=M[10],Se=this.computedMatrix;u(Se,M);var Ne=Se[15],Be=Se[12]/Ne,ge=Se[13]/Ne,we=Se[14]/Ne,Me=Math.exp(this.computedRadius[0]);this.center.jump(x,Be-Te*Me,ge-Ee*Me,we-Pe*Me)},y.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},y.idle=function(x){this.center.idle(x),this.up.idle(x),this.right.idle(x),this.radius.idle(x),this.angle.idle(x)},y.flush=function(x){this.center.flush(x),this.up.flush(x),this.right.flush(x),this.radius.flush(x),this.angle.flush(x)},y.setDistance=function(x,M){M>0&&this.radius.set(x,Math.log(M))},y.lookAt=function(x,M,d,b){this.recalcMatrix(x),M=M||this.computedEye,d=d||this.computedCenter,b=b||this.computedUp;var g=b[0],c=b[1],A=b[2],h=_(g,c,A);if(!(h<1e-6)){g/=h,c/=h,A/=h;var R=M[0]-d[0],E=M[1]-d[1],D=M[2]-d[2],N=_(R,E,D);if(!(N<1e-6)){R/=N,E/=N,D/=N;var F=this.computedRight,I=F[0],L=F[1],P=F[2],O=g*I+c*L+A*P;I-=O*g,L-=O*c,P-=O*A;var U=_(I,L,P);if(!(U<.01&&(I=c*D-A*E,L=A*R-g*D,P=g*E-c*R,U=_(I,L,P),U<1e-6))){I/=U,L/=U,P/=U,this.up.set(x,g,c,A),this.right.set(x,I,L,P),this.center.set(x,d[0],d[1],d[2]),this.radius.set(x,Math.log(N));var X=c*P-A*L,$=A*I-g*P,j=g*L-c*I,Y=_(X,$,j);X/=Y,$/=Y,j/=Y;var q=g*R+c*E+A*D,K=I*R+L*E+P*D,ne=X*R+$*E+j*D,Q=Math.asin(m(q)),ie=Math.atan2(ne,K),ee=this.angle._state,V=ee[ee.length-1],re=ee[ee.length-2];V=V%(2*Math.PI);var H=Math.abs(V+2*Math.PI-ie),te=Math.abs(V-ie),ue=Math.abs(V-2*Math.PI-ie);H0?P.pop():new ArrayBuffer(I)}o.mallocArrayBuffer=k;function S(F){return new Uint8Array(k(F),0,F)}o.mallocUint8=S;function x(F){return new Uint16Array(k(2*F),0,F)}o.mallocUint16=x;function M(F){return new Uint32Array(k(4*F),0,F)}o.mallocUint32=M;function d(F){return new Int8Array(k(F),0,F)}o.mallocInt8=d;function b(F){return new Int16Array(k(2*F),0,F)}o.mallocInt16=b;function g(F){return new Int32Array(k(4*F),0,F)}o.mallocInt32=g;function c(F){return new Float32Array(k(4*F),0,F)}o.mallocFloat32=o.mallocFloat=c;function A(F){return new Float64Array(k(8*F),0,F)}o.mallocFloat64=o.mallocDouble=A;function h(F){return f?new Uint8ClampedArray(k(F),0,F):S(F)}o.mallocUint8Clamped=h;function R(F){return v?new BigUint64Array(k(8*F),0,F):null}o.mallocBigUint64=R;function E(F){return p?new BigInt64Array(k(8*F),0,F):null}o.mallocBigInt64=E;function D(F){return new DataView(k(F),0,F)}o.mallocDataView=D;function N(F){F=l.nextPow2(F);var I=l.log2(F),L=w[I];return L.length>0?L.pop():new s(F)}o.mallocBuffer=N,o.clearCache=function(){for(var I=0;I<32;++I)_.UINT8[I].length=0,_.UINT16[I].length=0,_.UINT32[I].length=0,_.INT8[I].length=0,_.INT16[I].length=0,_.INT32[I].length=0,_.FLOAT[I].length=0,_.DOUBLE[I].length=0,_.BIGUINT64[I].length=0,_.BIGINT64[I].length=0,_.UINT8C[I].length=0,m[I].length=0,w[I].length=0}},1755:function(a){"use strict";"use restrict";a.exports=o;function o(l){this.roots=new Array(l),this.ranks=new Array(l);for(var u=0;u",P="",O=L.length,U=P.length,X=N[0]===k||N[0]===M,$=0,j=-U;$>-1&&($=F.indexOf(L,$),!($===-1||(j=F.indexOf(P,$+O),j===-1)||j<=$));){for(var Y=$;Y=j)I[Y]=null,F=F.substr(0,Y)+" "+F.substr(Y+1);else if(I[Y]!==null){var q=I[Y].indexOf(N[0]);q===-1?I[Y]+=N:X&&(I[Y]=I[Y].substr(0,q+1)+(1+parseInt(I[Y][q+1]))+I[Y].substr(q+2))}var K=$+O,ne=F.substr(K,j-K),Q=ne.indexOf(L);Q!==-1?$=Q:$=j+U}return I}function g(D,N,F){for(var I=N.textAlign||"start",L=N.textBaseline||"alphabetic",P=[1<<30,1<<30],O=[0,0],U=D.length,X=0;X/g,` +`):F=F.replace(/\/g," ");var O="",U=[];for(V=0;V-1?parseInt(ge[1+me]):0,he=Re>-1?parseInt(we[1+Re]):0;ce!==he&&(Me=Me.replace(Ae(),"?px "),te*=Math.pow(.75,he-ce),Me=Me.replace("?px ",Ae())),H+=.25*q*(he-ce)}if(P.superscripts===!0){var ye=ge.indexOf(k),Ce=we.indexOf(k),ze=ye>-1?parseInt(ge[1+ye]):0,qe=Ce>-1?parseInt(we[1+Ce]):0;ze!==qe&&(Me=Me.replace(Ae(),"?px "),te*=Math.pow(.75,qe-ze),Me=Me.replace("?px ",Ae())),H-=.25*q*(qe-ze)}if(P.bolds===!0){var $e=ge.indexOf(m)>-1,We=we.indexOf(m)>-1;!$e&&We&&(Ue?Me=Me.replace("italic ","italic bold "):Me="bold "+Me),$e&&!We&&(Me=Me.replace("bold ",""))}if(P.italics===!0){var Ue=ge.indexOf(T)>-1,Ge=we.indexOf(T)>-1;!Ue&&Ge&&(Me="italic "+Me),Ue&&!Ge&&(Me=Me.replace("italic ",""))}N.font=Me}for(ee=0;ee0&&(L=I.size),I.lineSpacing&&I.lineSpacing>0&&(P=I.lineSpacing),I.styletags&&I.styletags.breaklines&&(O.breaklines=!!I.styletags.breaklines),I.styletags&&I.styletags.bolds&&(O.bolds=!!I.styletags.bolds),I.styletags&&I.styletags.italics&&(O.italics=!!I.styletags.italics),I.styletags&&I.styletags.subscripts&&(O.subscripts=!!I.styletags.subscripts),I.styletags&&I.styletags.superscripts&&(O.superscripts=!!I.styletags.superscripts)),F.font=[I.fontStyle,I.fontVariant,I.fontWeight,L+"px",I.font].filter(function(X){return X}).join(" "),F.textAlign="start",F.textBaseline="alphabetic",F.direction="ltr";var U=c(N,F,D,L,P,O);return R(U,I,L)}},1538:function(a){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function i(h){h.permitHostObjects___&&h.permitHostObjects___(i)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=i);var l=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var s=new u,f=Object.freeze({});if(s.set(f,1),s.get(f)!==1)l=!0;else{a.exports=WeakMap;return}}}var v=Object.prototype.hasOwnProperty,p=Object.getOwnPropertyNames,_=Object.defineProperty,m=Object.isExtensible,w="weakmap:",T=w+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var y=new ArrayBuffer(25),k=new Uint8Array(y);crypto.getRandomValues(k),T=w+"rand:"+Array.prototype.map.call(k,function(h){return(h%36).toString(36)}).join("")+"___"}function S(h){return!(h.substr(0,w.length)==w&&h.substr(h.length-3)==="___")}if(_(Object,"getOwnPropertyNames",{value:function(R){return p(R).filter(S)}}),"getPropertyNames"in Object){var x=Object.getPropertyNames;_(Object,"getPropertyNames",{value:function(R){return x(R).filter(S)}})}function M(h){if(h!==Object(h))throw new TypeError("Not an object: "+h);var R=h[T];if(R&&R.key===h)return R;if(m(h)){R={key:h};try{return _(h,T,{value:R,writable:!1,enumerable:!1,configurable:!1}),R}catch(E){return}}}(function(){var h=Object.freeze;_(Object,"freeze",{value:function(N){return M(N),h(N)}});var R=Object.seal;_(Object,"seal",{value:function(N){return M(N),R(N)}});var E=Object.preventExtensions;_(Object,"preventExtensions",{value:function(N){return M(N),E(N)}})})();function d(h){return h.prototype=null,Object.freeze(h)}var b=!1;function g(){!b&&typeof console!="undefined"&&(b=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var c=0,A=function(){this instanceof A||g();var h=[],R=[],E=c++;function D(L,P){var O,U=M(L);return U?E in U?U[E]:P:(O=h.indexOf(L),O>=0?R[O]:P)}function N(L){var P=M(L);return P?E in P:h.indexOf(L)>=0}function F(L,P){var O,U=M(L);return U?U[E]=P:(O=h.indexOf(L),O>=0?R[O]=P:(O=h.length,R[O]=P,h[O]=L)),this}function I(L){var P=M(L),O,U;return P?E in P&&delete P[E]:(O=h.indexOf(L),O<0?!1:(U=h.length-1,h[O]=void 0,R[O]=R[U],h[O]=h[U],h.length=U,R.length=U,!0))}return Object.create(A.prototype,{get___:{value:d(D)},has___:{value:d(N)},set___:{value:d(F)},delete___:{value:d(I)}})};A.prototype=Object.create(Object.prototype,{get:{value:function(R,E){return this.get___(R,E)},writable:!0,configurable:!0},has:{value:function(R){return this.has___(R)},writable:!0,configurable:!0},set:{value:function(R,E){return this.set___(R,E)},writable:!0,configurable:!0},delete:{value:function(R){return this.delete___(R)},writable:!0,configurable:!0}}),typeof u=="function"?function(){l&&typeof Proxy!="undefined"&&(Proxy=void 0);function h(){this instanceof A||g();var R=new u,E=void 0,D=!1;function N(P,O){return E?R.has(P)?R.get(P):E.get___(P,O):R.get(P,O)}function F(P){return R.has(P)||(E?E.has___(P):!1)}var I;l?I=function(P,O){return R.set(P,O),R.has(P)||(E||(E=new A),E.set(P,O)),this}:I=function(P,O){if(D)try{R.set(P,O)}catch(U){E||(E=new A),E.set___(P,O)}else R.set(P,O);return this};function L(P){var O=!!R.delete(P);return E&&E.delete___(P)||O}return Object.create(A.prototype,{get___:{value:d(N)},has___:{value:d(F)},set___:{value:d(I)},delete___:{value:d(L)},permitHostObjects___:{value:d(function(P){if(P===i)D=!0;else throw new Error("bogus call to permitHostObjects___")})}})}h.prototype=A.prototype,a.exports=h,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),a.exports=A)})()},236:function(a,o,i){var l=i(8284);a.exports=u;function u(){var s={};return function(f){if((typeof f!="object"||f===null)&&typeof f!="function")throw new Error("Weakmap-shim: Key must be object");var v=f.valueOf(s);return v&&v.identity===s?v:l(f,s)}}},8284:function(a){a.exports=o;function o(i,l){var u={identity:l},s=i.valueOf;return Object.defineProperty(i,"valueOf",{value:function(f){return f!==l?s.apply(this,arguments):u},writable:!0}),u}},606:function(a,o,i){var l=i(236);a.exports=u;function u(){var s=l();return{get:function(f,v){var p=s(f);return p.hasOwnProperty("value")?p.value:v},set:function(f,v){return s(f).value=v,this},has:function(f){return"value"in s(f)},delete:function(f){return delete s(f).value}}}},3349:function(a){"use strict";function o(){return function(v,p,_,m,w,T){var y=v[0],k=_[0],S=[0],x=k;m|=0;var M=0,d=k;for(M=0;M=0!=g>=0&&w.push(S[0]+.5+.5*(b+g)/(b-g))}m+=d,++S[0]}}}function i(){return o()}var l=i;function u(v){var p={};return function(m,w,T){var y=m.dtype,k=m.order,S=[y,k.join()].join(),x=p[S];return x||(p[S]=x=v([y,k])),x(m.shape.slice(0),m.data,m.stride,m.offset|0,w,T)}}function s(v){return u(l.bind(void 0,v))}function f(v){return s({funcName:v.funcName})}a.exports=f({funcName:"zeroCrossings"})},781:function(a,o,i){"use strict";a.exports=u;var l=i(3349);function u(s,f){var v=[];return f=+f||0,l(s.hi(s.shape[0]-1),v,f),v}},7790:function(){}},r={};function t(a){var o=r[a];if(o!==void 0)return o.exports;var i=r[a]={id:a,loaded:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}(function(){t.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(a){if(typeof window=="object")return window}}()})(),function(){t.nmd=function(a){return a.paths=[],a.children||(a.children=[]),a}}();var n=t(1964);MI.exports=n})()});var AI=pe((dde,TI)=>{"use strict";TI.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var EI=pe((pde,CI)=>{"use strict";var kI=AI();CI.exports=eie;var SI={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function eie(e){var r,t=[],n=1,a;if(typeof e=="string")if(e=e.toLowerCase(),kI[e])t=kI[e].slice(),a="rgb";else if(e==="transparent")n=0,a="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var o=e.slice(1),i=o.length,l=i<=4;n=1,l?(t=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],i===4&&(n=parseInt(o[3]+o[3],16)/255)):(t=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],i===8&&(n=parseInt(o[6]+o[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),a="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var u=r[1],s=u==="rgb",o=u.replace(/a$/,"");a=o;var i=o==="cmyk"?4:o==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(p,_){if(/%$/.test(p))return _===i?parseFloat(p)/100:o==="rgb"?parseFloat(p)*255/100:parseFloat(p);if(o[_]==="h"){if(/deg$/.test(p))return parseFloat(p);if(SI[p]!==void 0)return SI[p]}return parseFloat(p)}),u===o&&t.push(1),n=s||t[i]===void 0?1:t[i],t=t.slice(0,i)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),a=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],a="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(a="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(a="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(a="rgb",t=[e>>>16,(e&65280)>>>8,e&255]);return{space:a,values:t,alpha:n}}});var RI=pe((gde,LI)=>{"use strict";var rie=EI();LI.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,n,a,o=rie(r);if(!o.space)return[];var i=[0,0,0],l=o.space[0]==="h"?[360,100,100]:[255,255,255];return t=Array(3),t[0]=Math.min(Math.max(o.values[0],i[0]),l[0]),t[1]=Math.min(Math.max(o.values[1],i[1]),l[1]),t[2]=Math.min(Math.max(o.values[2],i[2]),l[2]),o.space[0]==="h"&&(t=tie(t)),t.push(Math.min(Math.max(o.alpha,0),1)),t};function tie(e){var r=e[0]/360,t=e[1]/100,n=e[2]/100,a,o,i,l,u,s=0;if(t===0)return u=n*255,[u,u,u];for(o=n<.5?n*(1+t):n+t-n*t,a=2*n-o,l=[0,0,0];s<3;)i=r+1/3*-(s-1),i<0?i++:i>1&&i--,u=6*i<1?a+(o-a)*6*i:2*i<1?o:3*i<2?a+(o-a)*(2/3-i)*6:a,l[s++]=u*255;return l}});var PI=pe((yde,DI)=>{DI.exports=nie;function nie(e,r,t){return rt?t:e:er?r:e}});var FI=pe((mde,II)=>{II.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var M3=pe((xde,NI)=>{"use strict";var aie=RI(),ad=PI(),iie=FI();NI.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var n=iie(t),a=new n(4),o=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=aie(r),r[0]/=255,r[1]/=255,r[2]/=255),oie(r)?(a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3]!=null?r[3]:255,o&&(a[0]/=255,a[1]/=255,a[2]/=255,a[3]/=255),a):(o?(a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3]!=null?r[3]:1):(a[0]=ad(Math.floor(r[0]*255),0,255),a[1]=ad(Math.floor(r[1]*255),0,255),a[2]=ad(Math.floor(r[2]*255),0,255),a[3]=r[3]==null?255:ad(Math.floor(r[3]*255),0,255)),a)};function oie(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var po=pe((bde,zI)=>{"use strict";var lie=M3();function sie(e){return e?lie(e):[0,0,0,1]}zI.exports=sie});var al=pe((_de,GI)=>{"use strict";var HI=tt(),uie=Sa(),id=M3(),od=Li(),fie=Ti().defaultLine,qI=ea().isArrayOrTypedArray,T3=id(fie),VI=1;function OI(e,r){var t=e;return t[3]*=r,t}function BI(e){if(HI(e))return T3;var r=id(e);return r.length?r:T3}function UI(e){return HI(e)?e:VI}function cie(e,r,t){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var a=qI(n),o=qI(r),i=od.extractOpts(e),l=[],u,s,f,v,p;if(i.colorscale!==void 0?u=od.makeColorScaleFuncFromTrace(e):u=BI,a?s=function(m,w){return m[w]===void 0?T3:id(u(m[w]))}:s=BI,o?f=function(m,w){return m[w]===void 0?VI:UI(m[w])}:f=UI,a||o)for(var _=0;_{"use strict";YI.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var ld=pe((Mde,WI)=>{"use strict";WI.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var ZI=pe((Tde,XI)=>{"use strict";var hie=Er();function k3(e,r,t,n){if(!r||!r.visible)return null;for(var a=hie.getComponentMethod("errorbars","makeComputeError")(r),o=new Array(e.length),i=0;i0){var v=n.c2l(s);n._lowerLogErrorBound||(n._lowerLogErrorBound=v),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,v)}}else o[i]=[-l[0]*t,l[1]*t]}return o}function die(e){for(var r=0;r{"use strict";var gie=pn().gl_line3d,JI=pn().gl_scatter3d,yie=pn().gl_error3d,mie=pn().gl_mesh3d,xie=pn().delaunay_triangulate,go=ir(),eF=po(),sd=al().formatColor,bie=Ag(),S3=A3(),_ie=ld(),wie=Ct(),Mie=to().appendArrayPointValue,Tie=ZI();function rF(e,r){this.scene=e,this.uid=r,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var E3=rF.prototype;E3.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var r=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(go.isArrayOrTypedArray(this.textLabels)?(this.textLabels[r]||this.textLabels[r]===0)&&(e.textLabel=this.textLabels[r]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]],!0}};function Aie(e,r,t){var n=(t+1)%3,a=(t+2)%3,o=[],i=[],l;for(l=0;l-1?-1:e.indexOf("right")>-1?1:0}function QI(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function Sie(e){var r=0,t=0,n=[r,t];if(Array.isArray(e))for(var a=0;a=0){var s=Aie(l.position,l.delaunayColor,l.delaunayAxis);s.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(s):(s.gl=r,this.delaunayMesh=mie(s),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};E3.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function Rie(e,r){var t=new rF(e,r.uid);return t.update(r),t}tF.exports=Rie});var I3=pe((kde,oF)=>{"use strict";var yo=$l(),Die=kn(),P3=ei(),L3=ro().axisHoverFormat,Pie=ha().hovertemplateAttrs,Iie=ha().texttemplateAttrs,aF=Sn(),Fie=A3(),Nie=ld(),gi=Mt().extendFlat,zie=zn().overrideAll,iF=Xc(),qie=yo.line,fs=yo.marker,Oie=fs.line,Bie=gi({width:qie.width,dash:{valType:"enumerated",values:iF(Fie),dflt:"solid"}},P3("line"));function R3(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var D3=oF.exports=zie({x:yo.x,y:yo.y,z:{valType:"data_array"},text:gi({},yo.text,{}),texttemplate:Iie({},{}),hovertext:gi({},yo.hovertext,{}),hovertemplate:Pie(),xhoverformat:L3("x"),yhoverformat:L3("y"),zhoverformat:L3("z"),mode:gi({},yo.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:R3("x"),y:R3("y"),z:R3("z")},connectgaps:yo.connectgaps,line:Bie,marker:gi({symbol:{valType:"enumerated",values:iF(Nie),dflt:"circle",arrayOk:!0},size:gi({},fs.size,{dflt:8}),sizeref:fs.sizeref,sizemin:fs.sizemin,sizemode:fs.sizemode,opacity:gi({},fs.opacity,{arrayOk:!1}),colorbar:fs.colorbar,line:gi({width:gi({},Oie.width,{arrayOk:!1})},P3("marker.line"))},P3("marker")),textposition:gi({},yo.textposition,{dflt:"top center"}),textfont:Die({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:aF.opacity,hoverinfo:gi({},aF.hoverinfo)},"calc","nested");D3.x.editType=D3.y.editType=D3.z.editType="calc+clearAxisTypes"});var uF=pe((Sde,sF)=>{"use strict";var lF=Er(),Uie=ir(),F3=oa(),Hie=em(),Vie=rm(),Gie=tm(),Yie=I3();sF.exports=function(r,t,n,a){function o(_,m){return Uie.coerce(r,t,Yie,_,m)}var i=Wie(r,t,o,a);if(!i){t.visible=!1;return}o("text"),o("hovertext"),o("hovertemplate"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),o("mode"),F3.hasMarkers(t)&&Hie(r,t,n,a,o,{noSelect:!0,noAngle:!0}),F3.hasLines(t)&&(o("connectgaps"),Vie(r,t,n,a,o)),F3.hasText(t)&&(o("texttemplate"),Gie(r,t,a,o,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var l=(t.line||{}).color,u=(t.marker||{}).color;o("surfaceaxis")>=0&&o("surfacecolor",l||u);for(var s=["x","y","z"],f=0;f<3;++f){var v="projection."+s[f];o(v+".show")&&(o(v+".opacity"),o(v+".scale"))}var p=lF.getComponentMethod("errorbars","supplyDefaults");p(r,t,l||u||n,{axis:"z"}),p(r,t,l||u||n,{axis:"y",inherit:"z"}),p(r,t,l||u||n,{axis:"x",inherit:"z"})};function Wie(e,r,t,n){var a=0,o=t("x"),i=t("y"),l=t("z"),u=lF.getComponentMethod("calendars","handleTraceDefaults");return u(e,r,["x","y","z"],n),o&&i&&l&&(a=Math.min(o.length,i.length,l.length),r._length=r._xlength=r._ylength=r._zlength=a),a}});var cF=pe((Cde,fF)=>{"use strict";var Xie=g1(),Zie=im();fF.exports=function(r,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return Xie(n,t),Zie(r,t),n}});var hF=pe((Ede,vF)=>{vF.exports=Jie;function Jie(e,r){if(typeof e!="string")throw new TypeError("must specify type string");if(r=r||{},typeof document=="undefined"&&!r.canvas)return null;var t=r.canvas||document.createElement("canvas");typeof r.width=="number"&&(t.width=r.width),typeof r.height=="number"&&(t.height=r.height);var n=r,a;try{var o=[e];e.indexOf("webgl")===0&&o.push("experimental-"+e);for(var i=0;i{var Kie=hF();dF.exports=function(r){return Kie("webgl",r)}});var mF=pe((Rde,yF)=>{"use strict";var gF=Zr(),Qie=function(){};yF.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=Qie);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=gF.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=gF.lightLine,n.style["z-index"]=30;var a=document.createElement("p");return a.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",a.style.position="relative",a.style.top="50%",a.style.left="50%",a.style.height="30%",a.style.width="50%",a.style.margin="-15% 0 0 -25%",n.appendChild(a),r.container.appendChild(n),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var _F=pe((Dde,bF)=>{"use strict";var cs=po(),$ie=ir(),jie=["xaxis","yaxis","zaxis"];function xF(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var eoe=xF.prototype;eoe.merge=function(e,r){for(var t=this,n=0;n<3;++n){var a=r[jie[n]];if(!a.visible){t.tickEnable[n]=!1,t.labelEnable[n]=!1,t.lineEnable[n]=!1,t.lineTickEnable[n]=!1,t.gridEnable[n]=!1,t.zeroEnable[n]=!1,t.backgroundEnable[n]=!1;continue}t.labels[n]=e._meta?$ie.templateString(a.title.text,e._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(t.labelColor[n]=cs(a.title.font.color)),a.title.font.family&&(t.labelFont[n]=a.title.font.family),a.title.font.size&&(t.labelSize[n]=a.title.font.size),a.title.font.weight&&(t.labelFontWeight[n]=a.title.font.weight),a.title.font.style&&(t.labelFontStyle[n]=a.title.font.style),a.title.font.variant&&(t.labelFontVariant[n]=a.title.font.variant)),"showline"in a&&(t.lineEnable[n]=a.showline),"linecolor"in a&&(t.lineColor[n]=cs(a.linecolor)),"linewidth"in a&&(t.lineWidth[n]=a.linewidth),"showgrid"in a&&(t.gridEnable[n]=a.showgrid),"gridcolor"in a&&(t.gridColor[n]=cs(a.gridcolor)),"gridwidth"in a&&(t.gridWidth[n]=a.gridwidth),a.type==="log"?t.zeroEnable[n]=!1:"zeroline"in a&&(t.zeroEnable[n]=a.zeroline),"zerolinecolor"in a&&(t.zeroLineColor[n]=cs(a.zerolinecolor)),"zerolinewidth"in a&&(t.zeroLineWidth[n]=a.zerolinewidth),"ticks"in a&&a.ticks?t.lineTickEnable[n]=!0:t.lineTickEnable[n]=!1,"ticklen"in a&&(t.lineTickLength[n]=t._defaultLineTickLength[n]=a.ticklen),"tickcolor"in a&&(t.lineTickColor[n]=cs(a.tickcolor)),"tickwidth"in a&&(t.lineTickWidth[n]=a.tickwidth),"tickangle"in a&&(t.tickAngle[n]=a.tickangle==="auto"?-3600:Math.PI*-a.tickangle/180),"showticklabels"in a&&(t.tickEnable[n]=a.showticklabels),"tickfont"in a&&(a.tickfont.color&&(t.tickColor[n]=cs(a.tickfont.color)),a.tickfont.family&&(t.tickFont[n]=a.tickfont.family),a.tickfont.size&&(t.tickSize[n]=a.tickfont.size),a.tickfont.weight&&(t.tickFontWeight[n]=a.tickfont.weight),a.tickfont.style&&(t.tickFontStyle[n]=a.tickfont.style),a.tickfont.variant&&(t.tickFontVariant[n]=a.tickfont.variant)),"mirror"in a?["ticks","all","allticks"].indexOf(a.mirror)!==-1?(t.lineTickMirror[n]=!0,t.lineMirror[n]=!0):a.mirror===!0?(t.lineTickMirror[n]=!1,t.lineMirror[n]=!0):(t.lineTickMirror[n]=!1,t.lineMirror[n]=!1):t.lineMirror[n]=!1,"showbackground"in a&&a.showbackground!==!1?(t.backgroundEnable[n]=!0,t.backgroundColor[n]=cs(a.backgroundcolor)):t.backgroundEnable[n]=!1}};function roe(e,r){var t=new xF;return t.merge(e,r),t}bF.exports=roe});var TF=pe((Pde,MF)=>{"use strict";var toe=po(),noe=["xaxis","yaxis","zaxis"];function wF(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var aoe=wF.prototype;aoe.merge=function(e){for(var r=0;r<3;++r){var t=e[noe[r]];if(!t.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=t.showspikes,this.colors[r]=toe(t.spikecolor),this.drawSides[r]=t.spikesides,this.lineWidth[r]=t.spikethickness}};function ioe(e){var r=new wF;return r.merge(e),r}MF.exports=ioe});var SF=pe((Ide,kF)=>{"use strict";kF.exports=foe;var AF=Ct(),ooe=ir(),loe=["xaxis","yaxis","zaxis"],soe=[0,0,0];function uoe(e){for(var r=new Array(3),t=0;t<3;++t){for(var n=e[t],a=new Array(n.length),o=0;o/g," "));a[o]=s,i.tickmode=l}}r.ticks=a;for(var o=0;o<3;++o){soe[o]=.5*(e.glplot.bounds[0][o]+e.glplot.bounds[1][o]);for(var f=0;f<2;++f)r.bounds[f][o]=e.glplot.bounds[f][o]}e.contourLevels=uoe(a)}});var IF=pe((Fde,PF)=>{"use strict";var LF=pn().gl_plot3d,coe=LF.createCamera,CF=LF.createScene,voe=pF(),hoe=Zv(),cd=Er(),Jn=ir(),fd=Jn.preserveDrawingBuffer(),vd=Ct(),yi=io(),doe=po(),poe=mF(),goe=Um(),yoe=_F(),moe=TF(),xoe=SF(),boe=$s().applyAutorangeOptions,B0,ud,RF=!1;function DF(e,r){var t=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.position="absolute",a.style.top=a.style.left="0px",a.style.width=a.style.height="100%",a.style["z-index"]=20,a.style["pointer-events"]="none",t.appendChild(a),this.svgContainer=a,t.id=e.id,t.style.position="absolute",t.style.top=t.style.left="0px",t.style.width=t.style.height="100%",n.appendChild(t),this.fullLayout=r,this.id=e.id||"scene",this.fullSceneLayout=r[this.id],this.plotArgs=[[],{},{}],this.axesOptions=yoe(r,r[this.id]),this.spikeOptions=moe(r[this.id]),this.container=t,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=cd.getComponentMethod("annotations3d","convert"),this.drawAnnotations=cd.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Rn=DF.prototype;Rn.prepareOptions=function(){var e=this,r={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:fd,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!ud&&(B0=document.createElement("canvas"),ud=voe({canvas:B0,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!ud))throw new Error("error creating static canvas/context for image server");r.gl=ud,r.canvas=B0}return r};var EF=!0;Rn.tryCreatePlot=function(){var e=this,r=e.prepareOptions(),t=!0;try{e.glplot=CF(r)}catch(n){if(e.staticMode||!EF||fd)t=!1;else{Jn.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{fd=r.glOptions.preserveDrawingBuffer=!0,e.glplot=CF(r)}catch(a){fd=r.glOptions.preserveDrawingBuffer=!1,t=!1}}}return EF=!1,t};Rn.initializeGLCamera=function(){var e=this,r=e.fullSceneLayout.camera,t=r.projection.type==="orthographic";e.camera=coe(e.container,{center:[r.center.x,r.center.y,r.center.z],eye:[r.eye.x,r.eye.y,r.eye.z],up:[r.up.x,r.up.y,r.up.z],_ortho:t,zoomMin:.01,zoomMax:100,mode:"orbit"})};Rn.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var r=e.tryCreatePlot();if(!r)return poe(e);e.traces={},e.make4thDimension();var t=e.graphDiv,n=t.layout,a=function(){var i={};return e.isCameraChanged(n)&&(i[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(i[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=i[e.id+".aspectmode"]="manual")),i},o=function(i){if(i.fullSceneLayout.dragmode!==!1){var l=a();i.saveLayout(n),i.graphDiv.emit("plotly_relayout",l)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){o(e)}),e.glplot.canvas.addEventListener("touchstart",function(){RF=!0}),e.glplot.canvas.addEventListener("wheel",function(i){if(t._context._scrollZoom.gl3d){if(e.camera._ortho){var l=i.deltaX>i.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:l*u.x,y:l*u.y,z:l*u.z})}o(e)}},hoe?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var i=a();e.graphDiv.emit("plotly_relayouting",i)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(i){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:i,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Rn.render=function(){var e=this,r=e.graphDiv,t,n=e.svgContainer,a=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var o=r._fullLayout._invScaleX,i=r._fullLayout._invScaleY,l=a.width*o,u=a.height*i;n.setAttributeNS(null,"viewBox","0 0 "+l+" "+u),n.setAttributeNS(null,"width",l),n.setAttributeNS(null,"height",u),xoe(e),e.glplot.axes.update(e.axesOptions);for(var s=Object.keys(e.traces),f=null,v=e.glplot.selection,p=0;p")):t.type==="isosurface"||t.type==="volume"?(y.valueLabel=vd.hoverLabelText(e._mockAxis,e._mockAxis.d2l(v.traceCoordinate[3]),t.valuehoverformat),d.push("value: "+y.valueLabel),v.textLabel&&d.push(v.textLabel),M=d.join("
")):M=v.textLabel;var b={x:v.traceCoordinate[0],y:v.traceCoordinate[1],z:v.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:T};yi.appendArrayPointValue(b,w,T),t._module.eventData&&(b=w._module.eventData(b,v,w,{},T));var g={points:[b]};if(e.fullSceneLayout.hovermode){var c=[];yi.loneHover({trace:w,x:(.5+.5*m[0]/m[3])*l,y:(.5-.5*m[1]/m[3])*u,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:M,name:f.name,color:yi.castHoverOption(w,T,"bgcolor")||f.color,borderColor:yi.castHoverOption(w,T,"bordercolor"),fontFamily:yi.castHoverOption(w,T,"font.family"),fontSize:yi.castHoverOption(w,T,"font.size"),fontColor:yi.castHoverOption(w,T,"font.color"),nameLength:yi.castHoverOption(w,T,"namelength"),textAlign:yi.castHoverOption(w,T,"align"),hovertemplate:Jn.castOption(w,T,"hovertemplate"),hovertemplateLabels:Jn.extendFlat({},b,y),eventData:[b]},{container:n,gd:r,inOut_bbox:c}),b.bbox=c[0]}v.distance<5&&(v.buttons||RF)?r.emit("plotly_click",g):r.emit("plotly_hover",g),this.oldEventData=g}else yi.loneUnhover(n),this.oldEventData&&r.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Rn.recoverContext=function(){var e=this;e.glplot.dispose();var r=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(r);return}if(!e.initializeGLPlot()){Jn.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(r)};var U0=["xaxis","yaxis","zaxis"];function _oe(e,r,t){for(var n=e.fullSceneLayout,a=0;a<3;a++){var o=U0[a],i=o.charAt(0),l=n[o],u=r[i],s=r[i+"calendar"],f=r["_"+i+"length"];if(!Jn.isArrayOrTypedArray(u))t[0][a]=Math.min(t[0][a],0),t[1][a]=Math.max(t[1][a],f-1);else for(var v,p=0;p<(f||u.length);p++)if(Jn.isArrayOrTypedArray(u[p]))for(var _=0;_w[1][i])w[0][i]=-1,w[1][i]=1;else{var h=w[1][i]-w[0][i];w[0][i]-=h/32,w[1][i]+=h/32}if(k=[w[0][i],w[1][i]],k=boe(k,u),w[0][i]=k[0],w[1][i]=k[1],u.isReversed()){var R=w[0][i];w[0][i]=w[1][i],w[1][i]=R}}else k=u.range,w[0][i]=u.r2l(k[0]),w[1][i]=u.r2l(k[1]);w[0][i]===w[1][i]&&(w[0][i]-=1,w[1][i]+=1),T[i]=w[1][i]-w[0][i],u.range=[w[0][i],w[1][i]],u.limitRange(),n.glplot.setBounds(i,{min:u.range[0]*_[i],max:u.range[1]*_[i]})}var E,D=f.aspectmode;if(D==="cube")E=[1,1,1];else if(D==="manual"){var N=f.aspectratio;E=[N.x,N.y,N.z]}else if(D==="auto"||D==="data"){var F=[1,1,1];for(i=0;i<3;++i){u=f[U0[i]],s=u.type;var I=y[s];F[i]=Math.pow(I.acc,1/I.count)/_[i]}D==="data"||Math.max.apply(null,F)/Math.min.apply(null,F)<=4?E=F:E=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=v.aspectratio.x=E[0],f.aspectratio.y=v.aspectratio.y=E[1],f.aspectratio.z=v.aspectratio.z=E[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var L=f.domain||null,P=r._size||null;if(L&&P){var O=n.container.style;O.position="absolute",O.left=P.l+L.x[0]*P.w+"px",O.top=P.t+(1-L.y[1])*P.h+"px",O.width=P.w*(L.x[1]-L.x[0])+"px",O.height=P.h*(L.y[1]-L.y[0])+"px"}n.glplot.redraw()}};Rn.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function Moe(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function Toe(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Rn.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),Toe(e.camera)};Rn.setViewport=function(e){var r=this,t=e.camera;r.camera.lookAt.apply(this,Moe(t)),r.glplot.setAspectratio(e.aspectratio);var n=t.projection.type==="orthographic",a=r.camera._ortho;n!==a&&(r.glplot.redraw(),r.glplot.clearRGBA(),r.glplot.dispose(),r.initializeGLPlot())};Rn.isCameraChanged=function(e){var r=this,t=r.getCamera(),n=Jn.nestedProperty(e,r.id+".camera"),a=n.get();function o(s,f,v,p){var _=["up","center","eye"],m=["x","y","z"];return f[_[v]]&&s[_[v]][m[p]]===f[_[v]][m[p]]}var i=!1;if(a===void 0)i=!0;else{for(var l=0;l<3;l++)for(var u=0;u<3;u++)if(!o(t,a,l,u)){i=!0;break}(!a.projection||t.projection&&t.projection.type!==a.projection.type)&&(i=!0)}return i};Rn.isAspectChanged=function(e){var r=this,t=r.glplot.getAspectratio(),n=Jn.nestedProperty(e,r.id+".aspectratio"),a=n.get();return a===void 0||a.x!==t.x||a.y!==t.y||a.z!==t.z};Rn.saveLayout=function(e){var r=this,t=r.fullLayout,n,a,o,i,l,u,s=r.isCameraChanged(e),f=r.isAspectChanged(e),v=s||f;if(v){var p={};if(s&&(n=r.getCamera(),a=Jn.nestedProperty(e,r.id+".camera"),o=a.get(),p[r.id+".camera"]=o),f&&(i=r.glplot.getAspectratio(),l=Jn.nestedProperty(e,r.id+".aspectratio"),u=l.get(),p[r.id+".aspectratio"]=u),cd.call("_storeDirectGUIEdit",e,t._preGUI,p),s){a.set(n);var _=Jn.nestedProperty(t,r.id+".camera");_.set(n)}if(f){l.set(i);var m=Jn.nestedProperty(t,r.id+".aspectratio");m.set(i),r.glplot.redraw()}}return v};Rn.updateFx=function(e,r){var t=this,n=t.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var a=t.graphDiv,o=a._fullLayout,i=t.fullSceneLayout.camera,l=i.up.x,u=i.up.y,s=i.up.z;if(s/Math.sqrt(l*l+u*u+s*s)<.999){var f=t.id+".camera.up",v={x:0,y:0,z:1},p={};p[f]=v;var _=a.layout;cd.call("_storeDirectGUIEdit",_,o._preGUI,p),i.up=v,Jn.nestedProperty(_,f).set(v)}}else n.keyBindingMode=e;t.fullSceneLayout.hovermode=r};function Aoe(e,r,t){for(var n=0,a=t-1;n0)for(var l=255/i,u=0;u<3;++u)e[o+u]=Math.min(l*e[o+u],255)}}Rn.toImage=function(e){var r=this;e||(e="png"),r.staticMode&&r.container.appendChild(B0),r.glplot.redraw();var t=r.glplot.gl,n=t.drawingBufferWidth,a=t.drawingBufferHeight;t.bindFramebuffer(t.FRAMEBUFFER,null);var o=new Uint8Array(n*a*4);t.readPixels(0,0,n,a,t.RGBA,t.UNSIGNED_BYTE,o),Aoe(o,n,a),koe(o,n,a);var i=document.createElement("canvas");i.width=n,i.height=a;var l=i.getContext("2d",{willReadFrequently:!0}),u=l.createImageData(n,a);u.data.set(o),l.putImageData(u,0,0);var s;switch(e){case"jpeg":s=i.toDataURL("image/jpeg");break;case"webp":s=i.toDataURL("image/webp");break;default:s=i.toDataURL("image/png")}return r.staticMode&&r.container.removeChild(B0),s};Rn.setConvert=function(){for(var e=this,r=0;r<3;r++){var t=e.fullSceneLayout[U0[r]];vd.setConvert(t,e.fullLayout),t.setScale=Jn.noop}};Rn.make4thDimension=function(){var e=this,r=e.graphDiv,t=r._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},vd.setConvert(e._mockAxis,t)};PF.exports=DF});var NF=pe((Nde,FF)=>{"use strict";FF.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var z3=pe((zde,zF)=>{"use strict";var Soe=Zr(),Br=Ra(),N3=Mt().extendFlat,Coe=zn().overrideAll;zF.exports=Coe({visible:Br.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:Soe.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Br.color,categoryorder:Br.categoryorder,categoryarray:Br.categoryarray,title:{text:Br.title.text,font:Br.title.font},type:N3({},Br.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Br.autotypenumbers,autorange:Br.autorange,autorangeoptions:{minallowed:Br.autorangeoptions.minallowed,maxallowed:Br.autorangeoptions.maxallowed,clipmin:Br.autorangeoptions.clipmin,clipmax:Br.autorangeoptions.clipmax,include:Br.autorangeoptions.include,editType:"plot"},rangemode:Br.rangemode,minallowed:Br.minallowed,maxallowed:Br.maxallowed,range:N3({},Br.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Br.minor.tickmode,nticks:Br.nticks,tick0:Br.tick0,dtick:Br.dtick,tickvals:Br.tickvals,ticktext:Br.ticktext,ticks:Br.ticks,mirror:Br.mirror,ticklen:Br.ticklen,tickwidth:Br.tickwidth,tickcolor:Br.tickcolor,showticklabels:Br.showticklabels,labelalias:Br.labelalias,tickfont:Br.tickfont,tickangle:Br.tickangle,tickprefix:Br.tickprefix,showtickprefix:Br.showtickprefix,ticksuffix:Br.ticksuffix,showticksuffix:Br.showticksuffix,showexponent:Br.showexponent,exponentformat:Br.exponentformat,minexponent:Br.minexponent,separatethousands:Br.separatethousands,tickformat:Br.tickformat,tickformatstops:Br.tickformatstops,hoverformat:Br.hoverformat,showline:Br.showline,linecolor:Br.linecolor,linewidth:Br.linewidth,showgrid:Br.showgrid,gridcolor:N3({},Br.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Br.gridwidth,zeroline:Br.zeroline,zerolinecolor:Br.zerolinecolor,zerolinewidth:Br.zerolinewidth},"plot","from-root")});var U3=pe((qde,qF)=>{"use strict";var q3=z3(),Eoe=$1().attributes,O3=Mt().extendFlat,Loe=ir().counterRegex;function B3(e,r,t){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:r,editType:"camera"},z:{valType:"number",dflt:t,editType:"camera"},editType:"camera"}}qF.exports={_arrayAttrRegexps:[Loe("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:O3(B3(0,0,1),{}),center:O3(B3(0,0,0),{}),eye:O3(B3(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:Eoe({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:q3,yaxis:q3,zaxis:q3,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var BF=pe((Ode,OF)=>{"use strict";var Roe=ir(),Doe=gt(),Poe=$1().defaults;OF.exports=function(r,t,n,a){var o=a.type,i=a.attributes,l=a.handleDefaults,u=a.partition||"x",s=t._subplots[o],f=s.length,v=f&&s[0].replace(/\d+$/,""),p,_;function m(k,S){return Roe.coerce(p,_,i,k,S)}for(var w=0;w{"use strict";var Ioe=Sa().mix,UF=ir(),Foe=gt(),Noe=z3(),zoe=Mm(),qoe=T1(),HF=["xaxis","yaxis","zaxis"],Ooe=100*136/187;VF.exports=function(r,t,n){var a,o;function i(s,f){return UF.coerce(a,o,Noe,s,f)}for(var l=0;l{"use strict";var Boe=ir(),Uoe=Zr(),Hoe=Er(),Voe=BF(),Goe=GF(),YF=U3(),Yoe=Af().getSubplotData,WF="gl3d";XF.exports=function(r,t,n){var a=t._basePlotModules.length>1;function o(i){if(!a){var l=Boe.validate(r[i],YF[i]);if(l)return r[i]}}Voe(r,t,n,{type:WF,attributes:YF,handleDefaults:Woe,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})};function Woe(e,r,t,n){for(var a=t("bgcolor"),o=Uoe.combine(a,n.paper_bgcolor),i=["up","center","eye"],l=0;l.999)&&(p="turntable")}else p="turntable";t("dragmode",p),t("hovermode",n.getDfltFromLayout("hovermode"))}});var il=pe(Kn=>{"use strict";var Xoe=zn().overrideAll,Zoe=_l(),Joe=IF(),Koe=Af().getSubplotData,Qoe=ir(),$oe=Fo(),Ou="gl3d",H3="scene";Kn.name=Ou;Kn.attr=H3;Kn.idRoot=H3;Kn.idRegex=Kn.attrRegex=Qoe.counterRegex("scene");Kn.attributes=NF();Kn.layoutAttributes=U3();Kn.baseLayoutAttrOverrides=Xoe({hoverlabel:Zoe.hoverlabel},"plot","nested");Kn.supplyLayoutDefaults=ZF();Kn.plot=function(r){for(var t=r._fullLayout,n=r._fullData,a=t._subplots[Ou],o=0;o{"use strict";JF.exports={plot:nF(),attributes:I3(),markerSymbols:ld(),supplyDefaults:uF(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:cF(),moduleType:"trace",name:"scatter3d",basePlotModule:il(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var $F=pe((Gde,QF)=>{"use strict";QF.exports=KF()});var H0=pe((Yde,rN)=>{"use strict";var jF=Zr(),joe=ei(),V3=ro().axisHoverFormat,ele=ha().hovertemplateAttrs,eN=Sn(),G3=Mt().extendFlat,rle=zn().overrideAll;function Y3(e){return{valType:"boolean",dflt:!1}}function W3(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:Y3("x"),y:Y3("y"),z:Y3("z")},color:{valType:"color",dflt:jF.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:jF.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var X3=rN.exports=rle(G3({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:ele(),xhoverformat:V3("x"),yhoverformat:V3("y"),zhoverformat:V3("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},joe("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:W3("x"),y:W3("y"),z:W3("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:G3({},eN.hoverinfo),showlegend:G3({},eN.showlegend,{dflt:!1})}),"calc","nested");X3.x.editType=X3.y.editType=X3.z.editType="calc+clearAxisTypes"});var J3=pe((Wde,aN)=>{"use strict";var tle=Er(),tN=ir(),nle=Ei(),ale=H0(),Z3=.1;function ile(e,r){for(var t=[],n=32,a=0;a{"use strict";var iN=zo();oN.exports=function(r,t){t.surfacecolor?iN(r,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):iN(r,t,{vals:t.z,containerStr:"",cLetter:"c"})}});var cN=pe((Zde,fN)=>{"use strict";var sle=ir(),sN=.01,ule=[[-1,0],[1,0],[0,-1],[0,1]];function fle(e){return .5-.25*Math.min(1,e*.5)}fN.exports=function(r,t){var n=1,a;for(uN(r,t),a=0;asN;a++)n=uN(r,t,fle(n));return n>sN&&sle.log("interp2d didn't converge quickly",n),r};function uN(e,r,t){var n=0,a,o,i,l,u,s,f,v,p,_,m,w,T;for(l=0;lw&&(n=Math.max(n,Math.abs(e[o][i]-m)/(T-w))))}return n}});var hN=pe((Jde,vN)=>{"use strict";var cle=ir().maxRowLength;vN.exports=function(r){var t=[],n={},a=[],o=r[0],i=[],l=[0,0,0],u=cle(r),s,f,v,p,_,m,w,T;for(f=0;f=0;_--)p=a[_],f=p[0],v=p[1],m=((n[[f-1,v]]||l)[2]+(n[[f+1,v]]||l)[2]+(n[[f,v-1]]||l)[2]+(n[[f,v+1]]||l)[2])/20,m&&(w[p]=[f,v,m],a.splice(_,1),T=!0);if(!T)throw"findEmpties iterated with no new neighbors";for(p in w)n[p]=w[p],t.push(w[p])}return t.sort(function(y,k){return k[2]-y[2]})}});var xN=pe((Kde,mN)=>{"use strict";var vle=pn().gl_surface3d,Bu=pn().ndarray,hle=pn().ndarray_linear_interpolate.d2,dle=cN(),ple=hN(),V0=ir().isArrayOrTypedArray,gle=al().parseColorScale,dN=po(),yle=Li().extractOpts;function gN(e,r,t){this.scene=e,this.uid=t,this.surface=r,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var mi=gN.prototype;mi.getXat=function(e,r,t,n){var a=V0(this.data.x)?V0(this.data.x[0])?this.data.x[r][e]:this.data.x[e]:e;return t===void 0?a:n.d2l(a,0,t)};mi.getYat=function(e,r,t,n){var a=V0(this.data.y)?V0(this.data.y[0])?this.data.y[r][e]:this.data.y[r]:r;return t===void 0?a:n.d2l(a,0,t)};mi.getZat=function(e,r,t,n){var a=this.data.z[r][e];return a===null&&this.data.connectgaps&&this.data._interpolatedZ&&(a=this.data._interpolatedZ[r][e]),t===void 0?a:n.d2l(a,0,t)};mi.handlePick=function(e){if(e.object===this.surface){var r=(e.data.index[0]-1)/this.dataScaleX-1,t=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(r),this.data.z[0].length-1),0),a=Math.max(Math.min(Math.round(t),this.data._ylength-1),0);e.index=[n,a],e.traceCoordinate=[this.getXat(n,a),this.getYat(n,a),this.getZat(n,a)],e.dataCoordinate=[this.getXat(n,a,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,a,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,a,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var o=0;o<3;o++){var i=e.dataCoordinate[o];i!=null&&(e.dataCoordinate[o]*=this.scene.dataScale[o])}var l=this.data.hovertext||this.data.text;return V0(l)&&l[a]&&l[a][n]!==void 0?e.textLabel=l[a][n]:l?e.textLabel=l:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function mle(e){var r=e[0].rgb,t=e[e.length-1].rgb;return r[0]===t[0]&&r[1]===t[1]&&r[2]===t[2]&&r[3]===t[3]}var Uu=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function xle(e,r){if(e0){t=Uu[n];break}return t}function _le(e,r){if(!(e<1||r<1)){for(var t=K3(e),n=K3(r),a=1,o=0;ohd;)n--,n/=ble(n),n++,n1?a:1};function Mle(e,r,t){var n=t[8]+t[2]*r[0]+t[5]*r[1];return e[0]=(t[6]+t[0]*r[0]+t[3]*r[1])/n,e[1]=(t[7]+t[1]*r[0]+t[4]*r[1])/n,e}function Tle(e,r,t){return Ale(e,r,Mle,t),e}function Ale(e,r,t,n){for(var a=[0,0],o=e.shape[0],i=e.shape[1],l=0;l0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(r[n]=!0,a=this.contourStart[n];ap&&(this.minValues[s]=p),this.maxValues[s]{"use strict";bN.exports={attributes:H0(),supplyDefaults:J3().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:lN(),plot:xN(),moduleType:"trace",name:"surface",basePlotModule:il(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var MN=pe(($de,wN)=>{"use strict";wN.exports=_N()});var Hu=pe((jde,AN)=>{"use strict";var Cle=ei(),Q3=ro().axisHoverFormat,Ele=ha().hovertemplateAttrs,ol=H0(),TN=Sn(),ll=Mt().extendFlat;AN.exports=ll({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:Ele({editType:"calc"}),xhoverformat:Q3("x"),yhoverformat:Q3("y"),zhoverformat:Q3("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},Cle("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ol.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:ll({},ol.contours.x.show,{}),color:ol.contours.x.color,width:ol.contours.x.width,editType:"calc"},lightposition:{x:ll({},ol.lightposition.x,{dflt:1e5}),y:ll({},ol.lightposition.y,{dflt:1e5}),z:ll({},ol.lightposition.z,{dflt:0}),editType:"calc"},lighting:ll({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},ol.lighting),hoverinfo:ll({},TN.hoverinfo,{editType:"calc"}),showlegend:ll({},TN.showlegend,{dflt:!1})})});var pd=pe((epe,SN)=>{"use strict";var Lle=ei(),dd=ro().axisHoverFormat,Rle=ha().hovertemplateAttrs,G0=Hu(),kN=Sn(),$3=Mt().extendFlat,Dle=zn().overrideAll;function j3(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function e5(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var Vu=SN.exports=Dle($3({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:j3("x"),y:j3("y"),z:j3("z")},caps:{x:e5("x"),y:e5("y"),z:e5("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:Rle(),xhoverformat:dd("x"),yhoverformat:dd("y"),zhoverformat:dd("z"),valuehoverformat:dd("value",1),showlegend:$3({},kN.showlegend,{dflt:!1})},Lle("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:G0.opacity,lightposition:G0.lightposition,lighting:G0.lighting,flatshading:G0.flatshading,contour:G0.contour,hoverinfo:$3({},kN.hoverinfo)}),"calc","nested");Vu.flatshading.dflt=!0;Vu.lighting.facenormalsepsilon.dflt=0;Vu.x.editType=Vu.y.editType=Vu.z.editType=Vu.value.editType="calc+clearAxisTypes"});var r5=pe((rpe,EN)=>{"use strict";var Ple=ir(),Ile=Er(),Fle=pd(),Nle=Ei();function zle(e,r,t,n){function a(o,i){return Ple.coerce(e,r,Fle,o,i)}CN(e,r,t,n,a)}function CN(e,r,t,n,a){var o=a("isomin"),i=a("isomax");i!=null&&o!==void 0&&o!==null&&o>i&&(r.isomin=null,r.isomax=null);var l=a("x"),u=a("y"),s=a("z"),f=a("value");if(!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length){r.visible=!1;return}var v=Ile.getComponentMethod("calendars","handleTraceDefaults");v(e,r,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach(function(w){a(w+"hoverformat");var T="caps."+w,y=a(T+".show");y&&a(T+".fill");var k="slices."+w,S=a(k+".show");S&&(a(k+".fill"),a(k+".locations"))});var p=a("spaceframe.show");p&&a("spaceframe.fill");var _=a("surface.show");_&&(a("surface.count"),a("surface.fill"),a("surface.pattern"));var m=a("contour.show");m&&(a("contour.color"),a("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(w){a(w)}),Nle(e,r,n,a,{prefix:"",cLetter:"c"}),r._length=null}EN.exports={supplyDefaults:zle,supplyIsoDefaults:CN}});var gd=pe((tpe,RN)=>{"use strict";var n5=ir(),qle=zo();function Ole(e,r){r._len=Math.min(r.u.length,r.v.length,r.w.length,r.x.length,r.y.length,r.z.length),r._u=Hi(r.u,r._len),r._v=Hi(r.v,r._len),r._w=Hi(r.w,r._len),r._x=Hi(r.x,r._len),r._y=Hi(r.y,r._len),r._z=Hi(r.z,r._len);var t=LN(r);r._gridFill=t.fill,r._Xs=t.Xs,r._Ys=t.Ys,r._Zs=t.Zs,r._len=t.len;var n=0,a,o,i;r.starts&&(a=Hi(r.starts.x||[]),o=Hi(r.starts.y||[]),i=Hi(r.starts.z||[]),n=Math.min(a.length,o.length,i.length)),r._startsX=a||[],r._startsY=o||[],r._startsZ=i||[];var l=0,u=1/0,s;for(s=0;s1&&(S=r[a-1],M=t[a-1],b=n[a-1]),o=0;oS?"-":"+")+"x"),m=m.replace("y",(x>M?"-":"+")+"y"),m=m.replace("z",(d>b?"-":"+")+"z");var h=function(){a=0,g=[],c=[],A=[]};(!a||a{"use strict";var Ble=zo(),Ule=gd().processGrid,yd=gd().filter;DN.exports=function(r,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=yd(t.x,t._len),t._y=yd(t.y,t._len),t._z=yd(t.z,t._len),t._value=yd(t.value,t._len);var n=Ule(t);t._gridFill=n.fill,t._Xs=n.Xs,t._Ys=n.Ys,t._Zs=n.Zs,t._len=n.len;for(var a=1/0,o=-1/0,i=0;i{"use strict";PN.exports=function(r,t,n,a){a=a||r.length;for(var o=new Array(a),i=0;i{"use strict";var Hle=pn().gl_mesh3d,Vle=al().parseColorScale,Gle=ir().isArrayOrTypedArray,Yle=po(),Wle=Li().extractOpts,IN=Gu(),Y0=function(e,r){for(var t=r.length-1;t>0;t--){var n=Math.min(r[t],r[t-1]),a=Math.max(r[t],r[t-1]);if(a>n&&n-1}function U(Me,me){return Me===null?me:Me}function X(Me,me,Re){h();var ce=[me],he=[Re];if(I>=1)ce=[me],he=[Re];else if(I>0){var ye=P(me,Re);ce=ye.xyzv,he=ye.abc}for(var Ce=0;Ce-1?Re[qe]:A($e,We,Ue);_e>-1?ze[qe]=_e:ze[qe]=E($e,We,Ue,U(Me,Ge))}D(ze[0],ze[1],ze[2])}}function $(Me,me,Re){var ce=function(he,ye,Ce){X(Me,[me[he],me[ye],me[Ce]],[Re[he],Re[ye],Re[Ce]])};ce(0,1,2),ce(2,3,0)}function j(Me,me,Re){var ce=function(he,ye,Ce){X(Me,[me[he],me[ye],me[Ce]],[Re[he],Re[ye],Re[Ce]])};ce(0,1,2),ce(3,0,1),ce(2,3,0),ce(1,2,3)}function Y(Me,me,Re,ce){var he=Me[3];hece&&(he=ce);for(var ye=(Me[3]-he)/(Me[3]-me[3]+1e-9),Ce=[],ze=0;ze<4;ze++)Ce[ze]=(1-ye)*Me[ze]+ye*me[ze];return Ce}function q(Me,me,Re){return Me>=me&&Me<=Re}function K(Me){var me=.001*(M-x);return Me>=x-me&&Me<=M+me}function ne(Me){for(var me=[],Re=0;Re<4;Re++){var ce=Me[Re];me.push([e._x[ce],e._y[ce],e._z[ce],e._value[ce]])}return me}var Q=3;function ie(Me,me,Re,ce,he,ye){ye||(ye=1),Re=[-1,-1,-1];var Ce=!1,ze=[q(me[0][3],ce,he),q(me[1][3],ce,he),q(me[2][3],ce,he)];if(!ze[0]&&!ze[1]&&!ze[2])return!1;var qe=function(We,Ue,Ge){return K(Ue[0][3])&&K(Ue[1][3])&&K(Ue[2][3])?(X(We,Ue,Ge),!0):yeze?[k,ye]:[ye,S];Ee(me,qe[0],qe[1])}}var $e=[[Math.min(x,S),Math.max(x,S)],[Math.min(k,M),Math.max(k,M)]];["x","y","z"].forEach(function(We){for(var Ue=[],Ge=0;Ge<$e.length;Ge++){var _e=0,De=$e[Ge][0],Ke=$e[Ge][1],Ye=e.slices[We];if(Ye.show&&Ye.fill){L(Ye.fill);var ar=[],se=[],J=[];if(Ye.locations.length)for(var ae=0;ae0&&(se.push(Le.id),We==="x"?J.push([Le.distRatio,0,0]):We==="y"?J.push([0,Le.distRatio,0]):J.push([0,0,Le.distRatio]))}else We==="x"?ar=Be(1,_-1):We==="y"?ar=Be(1,m-1):ar=Be(1,w-1);se.length>0&&(We==="x"?Ue[_e]=Pe(Me,se,De,Ke,J,Ue[_e]):We==="y"?Ue[_e]=Se(Me,se,De,Ke,J,Ue[_e]):Ue[_e]=Ne(Me,se,De,Ke,J,Ue[_e]),_e++),ar.length>0&&(We==="x"?Ue[_e]=de(Me,ar,De,Ke,Ue[_e]):We==="y"?Ue[_e]=ke(Me,ar,De,Ke,Ue[_e]):Ue[_e]=Ae(Me,ar,De,Ke,Ue[_e]),_e++)}var He=e.caps[We];He.show&&He.fill&&(L(He.fill),We==="x"?Ue[_e]=de(Me,[0,_-1],De,Ke,Ue[_e]):We==="y"?Ue[_e]=ke(Me,[0,m-1],De,Ke,Ue[_e]):Ue[_e]=Ae(Me,[0,w-1],De,Ke,Ue[_e]),_e++)}}),l===0&&R(),e._meshX=d,e._meshY=b,e._meshZ=g,e._meshIntensity=c,e._Xs=f,e._Ys=v,e._Zs=p}return we(),e}function Zle(e,r){var t=e.glplot.gl,n=Hle({gl:t}),a=new FN(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}zN.exports={findNearestOnAxis:Y0,generateIsoMeshes:NN,createIsosurfaceTrace:Zle}});var ON=pe((ope,qN)=>{"use strict";qN.exports={attributes:pd(),supplyDefaults:r5().supplyDefaults,calc:a5(),colorbar:{min:"cmin",max:"cmax"},plot:md().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:il(),categories:["gl3d","showLegend"],meta:{}}});var UN=pe((lpe,BN)=>{"use strict";BN.exports=ON()});var l5=pe((spe,VN)=>{"use strict";var Jle=ei(),Kt=pd(),Kle=H0(),HN=Sn(),o5=Mt().extendFlat,Qle=zn().overrideAll,xd=VN.exports=Qle(o5({x:Kt.x,y:Kt.y,z:Kt.z,value:Kt.value,isomin:Kt.isomin,isomax:Kt.isomax,surface:Kt.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Kt.slices,caps:Kt.caps,text:Kt.text,hovertext:Kt.hovertext,xhoverformat:Kt.xhoverformat,yhoverformat:Kt.yhoverformat,zhoverformat:Kt.zhoverformat,valuehoverformat:Kt.valuehoverformat,hovertemplate:Kt.hovertemplate},Jle("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Kt.colorbar,opacity:Kt.opacity,opacityscale:Kle.opacityscale,lightposition:Kt.lightposition,lighting:Kt.lighting,flatshading:Kt.flatshading,contour:Kt.contour,hoverinfo:o5({},HN.hoverinfo),showlegend:o5({},HN.showlegend,{dflt:!1})}),"calc","nested");xd.x.editType=xd.y.editType=xd.z.editType=xd.value.editType="calc+clearAxisTypes"});var YN=pe((upe,GN)=>{"use strict";var $le=ir(),jle=l5(),ese=r5().supplyIsoDefaults,rse=J3().opacityscaleDefaults;GN.exports=function(r,t,n,a){function o(i,l){return $le.coerce(r,t,jle,i,l)}ese(r,t,n,a,o),rse(r,t,a,o)}});var JN=pe((fpe,ZN)=>{"use strict";var tse=pn().gl_mesh3d,nse=al().parseColorScale,ase=ir().isArrayOrTypedArray,ise=po(),ose=Li().extractOpts,WN=Gu(),s5=md().findNearestOnAxis,lse=md().generateIsoMeshes;function XN(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var u5=XN.prototype;u5.handlePick=function(e){if(e.object===this.mesh){var r=e.data.index,t=this.data._meshX[r],n=this.data._meshY[r],a=this.data._meshZ[r],o=this.data._Ys.length,i=this.data._Zs.length,l=s5(t,this.data._Xs).id,u=s5(n,this.data._Ys).id,s=s5(a,this.data._Zs).id,f=e.index=s+i*u+i*o*l;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var v=this.data.hovertext||this.data.text;return ase(v)&&v[f]!==void 0?e.textLabel=v[f]:v&&(e.textLabel=v),!0}};u5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=lse(e);function n(u,s,f,v){return s.map(function(p){return u.d2l(p,0,v)*f})}var a=WN(n(t.xaxis,e._meshX,r.dataScale[0],e.xcalendar),n(t.yaxis,e._meshY,r.dataScale[1],e.ycalendar),n(t.zaxis,e._meshZ,r.dataScale[2],e.zcalendar)),o=WN(e._meshI,e._meshJ,e._meshK),i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:ise(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=ose(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=nse(e),this.mesh.update(i)};u5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function sse(e,r){var t=e.glplot.gl,n=tse({gl:t}),a=new XN(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}ZN.exports=sse});var QN=pe((cpe,KN)=>{"use strict";KN.exports={attributes:l5(),supplyDefaults:YN(),calc:a5(),colorbar:{min:"cmin",max:"cmax"},plot:JN(),moduleType:"trace",name:"volume",basePlotModule:il(),categories:["gl3d","showLegend"],meta:{}}});var jN=pe((vpe,$N)=>{"use strict";$N.exports=QN()});var tz=pe((hpe,rz)=>{"use strict";var use=Er(),ez=ir(),fse=Ei(),cse=Hu();rz.exports=function(r,t,n,a){function o(f,v){return ez.coerce(r,t,cse,f,v)}function i(f){var v=f.map(function(p){var _=o(p);return _&&ez.isArrayOrTypedArray(_)?_:null});return v.every(function(p){return p&&p.length===v[0].length})&&v}var l=i(["x","y","z"]);if(!l){t.visible=!1;return}if(i(["i","j","k"]),t.i&&(!t.j||!t.k)||t.j&&(!t.k||!t.i)||t.k&&(!t.i||!t.j)){t.visible=!1;return}var u=use.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y","z"],a),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(f){o(f)});var s=o("contour.show");s&&(o("contour.color"),o("contour.width")),"intensity"in r?(o("intensity"),o("intensitymode"),fse(r,t,a,o,{prefix:"",cLetter:"c"})):(t.showscale=!1,"facecolor"in r?o("facecolor"):"vertexcolor"in r?o("vertexcolor"):o("color",n)),o("text"),o("hovertext"),o("hovertemplate"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var az=pe((dpe,nz)=>{"use strict";var vse=zo();nz.exports=function(r,t){t.intensity&&vse(r,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}});var uz=pe((ppe,sz)=>{"use strict";var hse=pn().gl_mesh3d,dse=pn().delaunay_triangulate,pse=pn().alpha_shape,gse=pn().convex_hull,yse=al().parseColorScale,mse=ir().isArrayOrTypedArray,h5=po(),xse=Li().extractOpts,iz=Gu();function lz(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var d5=lz.prototype;d5.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]];var t=this.data.hovertext||this.data.text;return mse(t)&&t[r]!==void 0?e.textLabel=t[r]:t&&(e.textLabel=t),!0}};function oz(e){for(var r=[],t=e.length,n=0;n=r-.5)return!1;return!0}d5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=e;var n=e.x.length,a=iz(f5(t.xaxis,e.x,r.dataScale[0],e.xcalendar),f5(t.yaxis,e.y,r.dataScale[1],e.ycalendar),f5(t.zaxis,e.z,r.dataScale[2],e.zcalendar)),o;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!v5(e.i,n)||!v5(e.j,n)||!v5(e.k,n))return;o=iz(c5(e.i),c5(e.j),c5(e.k))}else e.alphahull===0?o=gse(a):e.alphahull>0?o=pse(e.alphahull,a):o=bse(e.delaunayaxis,a);var i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:h5(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var l=xse(e);this.color="#fff";var u=e.intensitymode;i[u+"Intensity"]=e.intensity,i[u+"IntensityBounds"]=[l.min,l.max],i.colormap=yse(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],i.vertexColors=oz(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],i.cellColors=oz(e.facecolor)):(this.color=e.color,i.meshColor=h5(e.color));this.mesh.update(i)};d5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function _se(e,r){var t=e.glplot.gl,n=hse({gl:t}),a=new lz(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}sz.exports=_se});var cz=pe((gpe,fz)=>{"use strict";fz.exports={attributes:Hu(),supplyDefaults:tz(),calc:az(),colorbar:{min:"cmin",max:"cmax"},plot:uz(),moduleType:"trace",name:"mesh3d",basePlotModule:il(),categories:["gl3d","showLegend"],meta:{}}});var hz=pe((ype,vz)=>{"use strict";vz.exports=cz()});var g5=pe((mpe,pz)=>{"use strict";var wse=ei(),Yu=ro().axisHoverFormat,Mse=ha().hovertemplateAttrs,Tse=Hu(),dz=Sn(),p5=Mt().extendFlat,bd={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:Mse({editType:"calc"},{keys:["norm"]}),uhoverformat:Yu("u",1),vhoverformat:Yu("v",1),whoverformat:Yu("w",1),xhoverformat:Yu("x"),yhoverformat:Yu("y"),zhoverformat:Yu("z"),showlegend:p5({},dz.showlegend,{dflt:!1})};p5(bd,wse("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var Ase=["opacity","lightposition","lighting"];Ase.forEach(function(e){bd[e]=Tse[e]});bd.hoverinfo=p5({},dz.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});pz.exports=bd});var yz=pe((xpe,gz)=>{"use strict";var kse=ir(),Sse=Ei(),Cse=g5();gz.exports=function(r,t,n,a){function o(_,m){return kse.coerce(r,t,Cse,_,m)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),v=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!v||!v.length){t.visible=!1;return}var p=o("sizemode");o("sizeref",p==="raw"?1:.5),o("anchor"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),Sse(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var xz=pe((bpe,mz)=>{"use strict";var Ese=zo();mz.exports=function(r,t){for(var n=t.u,a=t.v,o=t.w,i=Math.min(t.x.length,t.y.length,t.z.length,n.length,a.length,o.length),l=-1/0,u=1/0,s=0;s{"use strict";var Lse=pn().gl_cone3d,Rse=pn().gl_cone3d.createConeMesh,Dse=ir().simpleMap,Pse=al().parseColorScale,Ise=Li().extractOpts,Fse=ir().isArrayOrTypedArray,bz=Gu();function _z(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var y5=_z.prototype;y5.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index,t=this.data.x[r],n=this.data.y[r],a=this.data.z[r],o=this.data.u[r],i=this.data.v[r],l=this.data.w[r];e.traceCoordinate=[t,n,a,o,i,l,Math.sqrt(o*o+i*i+l*l)];var u=this.data.hovertext||this.data.text;return Fse(u)&&u[r]!==void 0?e.textLabel=u[r]:u&&(e.textLabel=u),!0}};var Nse={xaxis:0,yaxis:1,zaxis:2},zse={tip:1,tail:0,cm:.25,center:.5},qse={tip:1,tail:1,cm:.75,center:.5};function wz(e,r){var t=e.fullSceneLayout,n=e.dataScale,a={};function o(f,v){var p=t[v],_=n[Nse[v]];return Dse(f,function(m){return p.d2l(m)*_})}a.vectors=bz(o(r.u,"xaxis"),o(r.v,"yaxis"),o(r.w,"zaxis"),r._len),a.positions=bz(o(r.x,"xaxis"),o(r.y,"yaxis"),o(r.z,"zaxis"),r._len);var i=Ise(r);a.colormap=Pse(r),a.vertexIntensityBounds=[i.min/r._normMax,i.max/r._normMax],a.coneOffset=zse[r.anchor];var l=r.sizemode;l==="scaled"?a.coneSize=r.sizeref||.5:l==="absolute"?a.coneSize=r.sizeref&&r._normMax?r.sizeref/r._normMax:.5:l==="raw"&&(a.coneSize=r.sizeref),a.coneSizemode=l;var u=Lse(a),s=r.lightposition;return u.lightPosition=[s.x,s.y,s.z],u.ambient=r.lighting.ambient,u.diffuse=r.lighting.diffuse,u.specular=r.lighting.specular,u.roughness=r.lighting.roughness,u.fresnel=r.lighting.fresnel,u.opacity=r.opacity,r._pad=qse[r.anchor]*u.vectorScale*u.coneScale*r._normMax,u}y5.update=function(e){this.data=e;var r=wz(this.scene,e);this.mesh.update(r)};y5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Ose(e,r){var t=e.glplot.gl,n=wz(e,r),a=Rse(t,n),o=new _z(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}Mz.exports=Ose});var kz=pe((wpe,Az)=>{"use strict";Az.exports={moduleType:"trace",name:"cone",basePlotModule:il(),categories:["gl3d","showLegend"],attributes:g5(),supplyDefaults:yz(),colorbar:{min:"cmin",max:"cmax"},calc:xz(),plot:Tz(),eventData:function(e,r){return e.norm=r.traceCoordinate[6],e},meta:{}}});var Cz=pe((Mpe,Sz)=>{"use strict";Sz.exports=kz()});var x5=pe((Tpe,Lz)=>{"use strict";var Bse=ei(),Wu=ro().axisHoverFormat,Use=ha().hovertemplateAttrs,Hse=Hu(),Ez=Sn(),m5=Mt().extendFlat,_d={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:Use({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:Wu("u",1),vhoverformat:Wu("v",1),whoverformat:Wu("w",1),xhoverformat:Wu("x"),yhoverformat:Wu("y"),zhoverformat:Wu("z"),showlegend:m5({},Ez.showlegend,{dflt:!1})};m5(_d,Bse("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var Vse=["opacity","lightposition","lighting"];Vse.forEach(function(e){_d[e]=Hse[e]});_d.hoverinfo=m5({},Ez.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});Lz.exports=_d});var Dz=pe((Ape,Rz)=>{"use strict";var Gse=ir(),Yse=Ei(),Wse=x5();Rz.exports=function(r,t,n,a){function o(p,_){return Gse.coerce(r,t,Wse,p,_)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),v=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!v||!v.length){t.visible=!1;return}o("starts.x"),o("starts.y"),o("starts.z"),o("maxdisplayed"),o("sizeref"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),Yse(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var Bz=pe((kpe,Oz)=>{"use strict";var Fz=pn().gl_streamtube3d,Xse=Fz.createTubeMesh,Zse=ir(),Jse=al().parseColorScale,Kse=Li().extractOpts,Pz=Gu(),Nz={xaxis:0,yaxis:1,zaxis:2};function zz(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var _5=zz.prototype;_5.handlePick=function(e){var r=this.scene.fullSceneLayout,t=this.scene.dataScale;function n(i,l){var u=r[l],s=t[Nz[l]];return u.l2c(i)/s}if(e.object===this.mesh){var a=e.data.position,o=e.data.velocity;return e.traceCoordinate=[n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),n(o[0],"xaxis"),n(o[1],"yaxis"),n(o[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function Iz(e){var r=e.length,t;return r>2?t=e.slice(1,r-1):r===2?t=[(e[0]+e[1])/2]:t=e,t}function b5(e){var r=e.length;return r===1?[.5,.5]:[e[1]-e[0],e[r-1]-e[r-2]]}function qz(e,r){var t=e.fullSceneLayout,n=e.dataScale,a=r._len,o={};function i(R,E){var D=t[E],N=n[Nz[E]];return Zse.simpleMap(R,function(F){return D.d2l(F)*N})}if(o.vectors=Pz(i(r._u,"xaxis"),i(r._v,"yaxis"),i(r._w,"zaxis"),a),!a)return{positions:[],cells:[]};var l=i(r._Xs,"xaxis"),u=i(r._Ys,"yaxis"),s=i(r._Zs,"zaxis");o.meshgrid=[l,u,s],o.gridFill=r._gridFill;var f=r._slen;if(f)o.startingPositions=Pz(i(r._startsX,"xaxis"),i(r._startsY,"yaxis"),i(r._startsZ,"zaxis"));else{for(var v=u[0],p=Iz(l),_=Iz(s),m=new Array(p.length*_.length),w=0,T=0;T{"use strict";Uz.exports={moduleType:"trace",name:"streamtube",basePlotModule:il(),categories:["gl3d","showLegend"],attributes:x5(),supplyDefaults:Dz(),colorbar:{min:"cmin",max:"cmax"},calc:gd().calc,plot:Bz(),eventData:function(e,r){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=r.traceCoordinate[3],e.tubev=r.traceCoordinate[4],e.tubew=r.traceCoordinate[5],e.norm=r.traceCoordinate[6],e.divergence=r.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var Gz=pe((Cpe,Vz)=>{"use strict";Vz.exports=Hz()});var Dn=pe((Epe,Wz)=>{"use strict";var Yz=Object.getOwnPropertySymbols,$se=Object.prototype.hasOwnProperty,jse=Object.prototype.propertyIsEnumerable;function eue(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function rue(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(o){return!1}}Wz.exports=rue()?Object.assign:function(e,r){for(var t,n=eue(e),a,o=1;o{var Md=Dn();function Xz(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}Md(Xz.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var n="",a=0;t>0;){var o=t%10;n=(o===0?"":e[o]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function w5(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function wd(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Md(w5.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Wr.local.differentCalendars||Wr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+wd(Math.abs(this.year()),4)+"-"+wd(this.month(),2)+"-"+wd(this.day(),2)}});function M5(){this.shortYearCutoff="+10"}Md(M5.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new w5(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+wd(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Wr.local.invalidMonth||Wr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Wr.local.invalidMonth||Wr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var o=e.year()+(t==="y"?r:0),i=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;iv-1+f.minMonth;)o++,i-=v,v=f.monthsInYear(o)};t==="y"?(e.month()!==this.fromMonthOfYear(o,i)&&(i=this.newDate(o,e.month(),this.minDay).monthOfYear()),i=Math.min(i,this.monthsInYear(o)),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i))));var u=[o,this.fromMonthOfYear(o,i),a];return this._validateLevel--,u}catch(s){throw this._validateLevel--,s}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],o=t<0?-1:1;r=this._add(e,t*a[0]+o*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),o=t==="d"?r:e.day();return(t==="y"||t==="m")&&(o=Math.min(o,this.daysInMonth(n,a))),e.date(n,a,o)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),s=a-(u>2.5?4716:4715);return s<=0&&s--,this.newDate(s,u,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Wr=Zz.exports=new Xz;Wr.cdate=w5;Wr.baseCalendar=M5;Wr.calendars.gregorian=T5});var Jz=pe(()=>{var A5=Dn(),gn=Pn();A5(gn.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});gn.local=gn.regionalOptions[""];A5(gn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});A5(gn.baseCalendar.prototype,{UNIX_EPOCH:gn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:gn.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw gn.local.invalidFormat||gn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,o=t.monthNumbers||this.local.monthNumbers,i=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,u=t.calculateWeek||this.local.calculateWeek,s=function(x,M){for(var d=1;S+d1},f=function(x,M,d,b){var g=""+M;if(s(x,b))for(;g.length1},k=function(R,E){var D=y(R,E),N=[2,3,D?4:2,D?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],F=new RegExp("^-?\\d{1,"+N+"}"),I=r.substring(g).match(F);if(!I)throw(gn.local.missingNumberAt||gn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,g);return g+=I[0].length,parseInt(I[0],10)},S=this,x=function(){if(typeof l=="function"){y("m");var R=l.call(S,r.substring(g));return g+=R.length,R}return k("m")},M=function(R,E,D,N){for(var F=y(R,N)?D:E,I=0;I-1){p=1,_=m;for(var h=this.daysInMonth(v,p);_>h;h=this.daysInMonth(v,p))p++,_-=h}return f>-1?this.fromJD(f):this.newDate(v,p,_)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var o=this,i=function(l){try{return o.parseDate(n,l,a)}catch(v){}l=l.toLowerCase();for(var u=(l.match(/^c/)&&t?t.newDate():null)||o.today(),s=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=s.exec(l);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=s.exec(l);return u};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?i(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:o.today().add(e,"d"):o.newDate(e),e}})});var Kz=pe(()=>{var sl=Pn(),tue=Dn(),k5=sl.instance();function Td(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Td.prototype=new sl.baseCalendar;tue(Td.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(aue);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),o=""+this.toChineseMonth(n,a);return r&&o.length<2&&(o="0"+o),this.isIntercalaryMonth(n,a)&&(o+="i"),o},monthNames:function(e){if(typeof e=="string"){var r=e.match(iue);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(oue);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var a=r[r.length-1];n=a==="i"||a==="I"}var o=this.toMonthIndex(e,t,n);return o},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw sl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o;return n?!t&&r<=n?o=r-1:o=r:o=r-1,o},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw sl.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var n=this._validateYear(e,sl.local.invalidyear),a=fl[n-fl[0]],o=a>>9&4095,i=a>>5&15,l=a&31,u;u=k5.newDate(o,i,l),u.add(4-(u.dayOfWeek()||7),"d");var s=this.toJD(e,r,t)-u.toJD();return 1+Math.floor(s/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=ul[e-ul[0]],n=t>>13,a=n?12:11;if(r>a)throw sl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o=t&1<<12-r?30:29;return o},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,o,t,sl.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),o=this.toChineseMonth(e,r),i=sue(e,o,t,a);return k5.toJD(i.year,i.month,i.day)},fromJD:function(e){var r=k5.fromJD(e),t=lue(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(nue),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],o=this.toMonthIndex(t,n,a),i=+r[4];return this.newDate(t,o,i)},add:function(e,r,t){var n=e.year(),a=e.month(),o=this.isIntercalaryMonth(n,a),i=this.toChineseMonth(n,a),l=Object.getPrototypeOf(Td.prototype).add.call(this,e,r,t);if(t==="y"){var u=l.year(),s=l.month(),f=this.isIntercalaryMonth(u,i),v=o&&f?this.toMonthIndex(u,i,!0):this.toMonthIndex(u,i,!1);v!==s&&l.month(v)}return l}});var nue=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,aue=/^\d?\d[iI]?/m,iue=/^闰?十?[一二三四五六七八九]?月/m,oue=/^闰?十?[一二三四五六七八九]?/m;sl.calendars.chinese=Td;var ul=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],fl=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function lue(e,r,t,n){var a,o;if(typeof e=="object")a=e,o=r||{};else{var i=typeof e=="number"&&e>=1888&&e<=2111;if(!i)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=31;if(!u)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},o=n||{}}var s=fl[a.year-fl[0]],f=a.year<<9|a.month<<5|a.day;o.year=f>=s?a.year:a.year-1,s=fl[o.year-fl[0]];var v=s>>9&4095,p=s>>5&15,_=s&31,m,w=new Date(v,p-1,_),T=new Date(a.year,a.month-1,a.day);m=Math.round((T-w)/(24*3600*1e3));var y=ul[o.year-ul[0]],k;for(k=0;k<13;k++){var S=y&1<<12-k?30:29;if(m>13;return!x||k=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var u=typeof r=="number"&&r>=1&&r<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=30;if(!s)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,o=n):(f=!!n,o=a||{}),i={year:e,month:r,day:t,isIntercalary:f}}var v;v=i.day-1;var p=ul[i.year-ul[0]],_=p>>13,m;_&&(i.month>_||i.isIntercalary)?m=i.month:m=i.month-1;for(var w=0;w>9&4095,S=y>>5&15,x=y&31,M=new Date(k,S-1,x+v);return o.year=M.getFullYear(),o.month=1+M.getMonth(),o.day=M.getDate(),o}});var Qz=pe(()=>{var vs=Pn(),uue=Dn();function S5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S5.prototype=new vs.baseCalendar;uue(S5.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,vs.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vs.local.invalidYear||vs.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,vs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,vs.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});vs.calendars.coptic=S5});var $z=pe(()=>{var mo=Pn(),fue=Dn();function C5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C5.prototype=new mo.baseCalendar;fue(C5.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,mo.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,mo.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,mo.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,mo.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,mo.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,mo.local.invalidDate);return{century:cue[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,mo.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var cue={20:"Fruitbat",21:"Anchovy"};mo.calendars.discworld=C5});var jz=pe(()=>{var hs=Pn(),vue=Dn();function E5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E5.prototype=new hs.baseCalendar;vue(E5.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,hs.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,hs.local.invalidYear||hs.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,hs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,hs.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});hs.calendars.ethiopian=E5});var eq=pe(()=>{var cl=Pn(),hue=Dn();function L5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}L5.prototype=new cl.baseCalendar;hue(L5.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Ad(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,cl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Ad(this.daysInYear(e),10)===5?30:r===9&&Ad(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,cl.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,cl.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var i=7;i<=this.monthsInYear(e);i++)o+=this.daysInMonth(e,i);for(var i=1;i=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function Ad(e,r){return e-r*Math.floor(e/r)}cl.calendars.hebrew=L5});var rq=pe(()=>{var W0=Pn(),due=Dn();function R5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R5.prototype=new W0.baseCalendar;due(R5.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,W0.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,W0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,W0.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});W0.calendars.islamic=R5});var tq=pe(()=>{var X0=Pn(),pue=Dn();function D5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D5.prototype=new X0.baseCalendar;pue(D5.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,X0.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,X0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,X0.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),o=Math.floor((t-a)/30.6001),i=o-Math.floor(o<14?1:13),l=n-Math.floor(i>2?4716:4715),u=t-a-Math.floor(30.6001*o);return l<=0&&l--,this.newDate(l,i,u)}});X0.calendars.julian=D5});var aq=pe(()=>{var Wa=Pn(),gue=Dn();function I5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I5.prototype=new Wa.baseCalendar;gue(I5.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wa.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wa.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wa.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Wa.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wa.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Wa.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Wa.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Wa.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Wa.local.invalidDate),a=n.toJD(),o=this._toHaab(a),i=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[o[0]-1],haabMonth:o[0],haabDay:o[1],tzolkinDayName:this.local.tzolkinMonths[i[0]-1],tzolkinDay:i[0],tzolkinTrecena:i[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=P5(e+8+17*20,365);return[Math.floor(r/20)+1,P5(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[nq(e+20,20),nq(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,Wa.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),n=e%20;return this.newDate(r,t,n)}});function P5(e,r){return e-r*Math.floor(e/r)}function nq(e,r){return P5(e-1,r)+1}Wa.calendars.mayan=I5});var oq=pe(()=>{var ds=Pn(),yue=Dn();function F5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F5.prototype=new ds.baseCalendar;var iq=ds.instance("gregorian");yue(F5.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ds.local.invalidYear||ds.regionalOptions[""].invalidYear);return iq.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ds.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,ds.local.invalidMonth),a=n.year();a<0&&a++;for(var o=n.day(),i=1;i=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});ds.calendars.nanakshahi=F5});var lq=pe(()=>{var ps=Pn(),mue=Dn();function N5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N5.prototype=new ps.baseCalendar;mue(N5.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ps.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,ps.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var n=this._validate(e,r,t,ps.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=ps.instance(),o=0,i=r,l=e;this._createMissingCalendarData(e);var u=e-(i>9||i===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(o=t,i--);i!==9;)i<=0&&(i=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][i],i--;return r===9?(o+=t-this.NEPALI_CALENDAR_DATA[l][0],o<0&&(o+=a.daysInYear(u))):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(u,1,1).add(o,"d").toJD()},fromJD:function(e){var r=ps.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),o=n+56;this._createMissingCalendarData(o);for(var i=9,l=this.NEPALI_CALENDAR_DATA[o][0],u=this.NEPALI_CALENDAR_DATA[o][i]-l+1;a>u;)i++,i>12&&(i=1,o++),u+=this.NEPALI_CALENDAR_DATA[o][i];var s=this.NEPALI_CALENDAR_DATA[o][i]-(u-a);return this.newDate(o,i,s)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Xu=Pn(),xue=Dn();function Sd(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function kd(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),o=n-Math.floor(n),i=a-Math.floor(a);return o>i}Sd.prototype=new Xu.baseCalendar;xue(Sd.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear);return kd(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Xu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Xu.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var o=1;o0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,kd(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),o=e-this.toJD(t,a,1)+1;return this.newDate(t,a,o)}});Xu.calendars.persian=Sd;Xu.calendars.jalali=Sd});var uq=pe(()=>{var gs=Pn(),bue=Dn(),Cd=gs.instance();function z5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z5.prototype=new gs.baseCalendar;bue(z5.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,gs.local.invalidYear),t=this._t2gYear(r.year());return Cd.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,gs.local.invalidYear),a=this._t2gYear(n.year());return Cd.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,gs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,gs.local.invalidDate),a=this._t2gYear(n.year());return Cd.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Cd.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});gs.calendars.taiwan=z5});var fq=pe(()=>{var ys=Pn(),_ue=Dn(),Ed=ys.instance();function q5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q5.prototype=new ys.baseCalendar;_ue(q5.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ys.local.invalidYear),t=this._t2gYear(r.year());return Ed.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,ys.local.invalidYear),a=this._t2gYear(n.year());return Ed.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ys.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,ys.local.invalidDate),a=this._t2gYear(n.year());return Ed.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Ed.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});ys.calendars.thai=q5});var cq=pe(()=>{var ms=Pn(),wue=Dn();function O5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O5.prototype=new ms.baseCalendar;wue(O5.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ms.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,ms.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,o=0;on)return vl[a]-vl[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,ms.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,o=n.day()+vl[a-1]-1;return o+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;nr);n++)t++;var a=t+15292,o=Math.floor((a-1)/12),i=o+1,l=a-12*o,u=r-vl[t-1]+1;return this.newDate(i,l,u)},isValid:function(e,r,t){var n=ms.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=ms.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});ms.calendars.ummalqura=O5;var vl=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var hq=pe((lge,vq)=>{"use strict";vq.exports=Pn();Jz();Kz();Qz();$z();jz();eq();rq();tq();aq();oq();lq();sq();uq();fq();cq()});var bq=pe((sge,xq)=>{"use strict";var pq=hq(),Z0=ir(),gq=an(),Mue=gq.EPOCHJD,Tue=gq.ONEDAY,H5={valType:"enumerated",values:Z0.sortObjectKeys(pq.calendars),editType:"calc",dflt:"gregorian"},yq=function(e,r,t,n){var a={};return a[t]=H5,Z0.coerce(e,r,a,t,n)},Aue=function(e,r,t,n){for(var a=0;a{"use strict";_q.exports=bq()});var Rue=pe((fge,Tq)=>{var Mq=wI();Mq.register([$F(),MN(),UN(),jN(),hz(),Cz(),Gz(),wq()]);Tq.exports=Mq});return Rue();})(); /*! * The buffer module from node.js, for the browser. * diff --git a/dist/plotly-mapbox.js b/dist/plotly-mapbox.js index 11a8368ca3a..ed65d843b43 100644 --- a/dist/plotly-mapbox.js +++ b/dist/plotly-mapbox.js @@ -1,5 +1,5 @@ /** -* plotly.js (mapbox) v3.1.1 +* plotly.js (mapbox) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -23,7 +23,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.1"; + exports.version = "3.1.2"; } }); @@ -13752,9 +13752,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -21427,7 +21427,7 @@ var Plotly = (() => { }, exponentformat: { valType: "enumerated", - values: ["none", "e", "E", "power", "SI", "B"], + values: ["none", "e", "E", "power", "SI", "B", "SI extended"], dflt: "B", editType: "ticks" }, @@ -25013,7 +25013,7 @@ var Plotly = (() => { var subtitleEnabled = !!subtitleProp; var subtitlePlaceholder = options.subtitlePlaceholder; var subtitle = (cont.title || {}).subtitle || { text: "", font: {} }; - var subtitleTxt = subtitle.text.trim(); + var subtitleTxt = (subtitle.text || "").trim(); var subtitleIsPlaceholder = false; var subtitleOpacity = 1; var subtitleFont = subtitle.font; @@ -25067,7 +25067,7 @@ var Plotly = (() => { var subtitleEl = null; var subtitleClass = titleClass + "-subtitle"; var subtitleElShouldExist = subtitleTxt || editable; - if (subtitleEnabled && subtitleElShouldExist) { + if (subtitleEnabled) { subtitleEl = group.selectAll("text." + subtitleClass).data(subtitleElShouldExist ? [0] : []); subtitleEl.enter().append("text"); subtitleEl.text(subtitleTxt).attr("class", subtitleClass); @@ -25118,7 +25118,7 @@ var Plotly = (() => { shadow: fontShadow, lineposition: fontLineposition }).attr(attributes).call(svgTextUtils.convertToTspans, gd, adjustSubtitlePosition); - if (subtitleEl2) { + if (subtitleEl2 && !subtitleEl2.empty()) { var titleElMathGroup = group.select("." + titleClass + "-math-group"); var titleElBbox2 = titleEl.node().getBBox(); var titleElMathBbox = titleElMathGroup.node() ? titleElMathGroup.node().getBBox() : void 0; @@ -25239,7 +25239,7 @@ var Plotly = (() => { } } el.classed("js-placeholder", titleIsPlaceholder); - if (subtitleEl) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); + if (subtitleEl && !subtitleEl.empty()) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); return group; } module.exports = { @@ -27558,7 +27558,7 @@ var Plotly = (() => { var rangeexp = Math.floor(Math.log(maxend) / Math.LN10 + 0.01); var minexponent = ax.minexponent === void 0 ? 3 : ax.minexponent; if (Math.abs(rangeexp) > minexponent) { - if (isSIFormat(ax.exponentformat) && !beyondSI(rangeexp)) { + if (isSIFormat(ax.exponentformat) && ax.exponentformat !== "SI extended" && !beyondSI(rangeexp) || isSIFormat(ax.exponentformat) && ax.exponentformat === "SI extended" && !beyondSIExtended(rangeexp)) { ax._tickexponent = 3 * Math.round((rangeexp - 1) / 3); } else ax._tickexponent = rangeexp; } @@ -27782,7 +27782,7 @@ var Plotly = (() => { var p = +parts[1]; var absP = Math.abs(p); var exponentFormat = ax.exponentformat; - if (exponentFormat === "power" || isSIFormat(exponentFormat) && beyondSI(p)) { + if (exponentFormat === "power" || isSIFormat(exponentFormat) && exponentFormat !== "SI extended" && beyondSI(p) || isSIFormat(exponentFormat) && exponentFormat === "SI extended" && beyondSIExtended(p)) { out.text = parts[0]; if (absP > 0) out.text += "x10"; if (out.text === "1x10") out.text = "10"; @@ -27898,12 +27898,20 @@ var Plotly = (() => { ]; } var SIPREFIXES = ["f", "p", "n", "\u03BC", "m", "", "k", "M", "G", "T"]; - function isSIFormat(exponentFormat) { - return exponentFormat === "SI" || exponentFormat === "B"; - } + var SIPREFIXES_EXTENDED = ["q", "r", "y", "z", "a", ...SIPREFIXES, "P", "E", "Z", "Y", "R", "Q"]; + var isSIFormat = (exponentFormat) => ["SI", "SI extended", "B"].includes(exponentFormat); function beyondSI(exponent) { return exponent > 14 || exponent < -15; } + function beyondSIExtended(exponent) { + return exponent > 32 || exponent < -30; + } + function shouldSwitchSIToPowerFormat(exponent, exponentFormat) { + if (!isSIFormat(exponentFormat)) return false; + if (exponentFormat === "SI extended" && beyondSIExtended(exponent)) return true; + if (exponentFormat !== "SI extended" && beyondSI(exponent)) return true; + return false; + } function numFormat(v, ax, fmtoverride, hover) { var isNeg = v < 0; var tickRound = ax._tickround; @@ -27951,7 +27959,7 @@ var Plotly = (() => { v = Lib.numSeparate(v, ax._separators, separatethousands); } if (exponent && exponentFormat !== "hide") { - if (isSIFormat(exponentFormat) && beyondSI(exponent)) exponentFormat = "power"; + if (shouldSwitchSIToPowerFormat(exponent, exponentFormat)) exponentFormat = "power"; var signedExponent; if (exponent < 0) signedExponent = MINUS_SIGN + -exponent; else if (exponentFormat !== "power") signedExponent = "+" + exponent; @@ -27963,7 +27971,7 @@ var Plotly = (() => { } else if (exponentFormat === "B" && exponent === 9) { v += "B"; } else if (isSIFormat(exponentFormat)) { - v += SIPREFIXES[exponent / 3 + 5]; + v += exponentFormat === "SI extended" ? SIPREFIXES_EXTENDED[exponent / 3 + 10] : SIPREFIXES[exponent / 3 + 5]; } } if (isNeg) return MINUS_SIGN + v; @@ -30248,9 +30256,11 @@ var Plotly = (() => { return Lib.coerce(traceIn, traceOut, plotsAttrs, attr, dflt); }; var globalFont = layoutOut.font || {}; - var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { overrideDflt: { - size: Math.round(globalFont.size * 1.1) - } }); + var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { + overrideDflt: { + size: Math.round(globalFont.size * 1.1) + } + }); var legendTraceCount = 0; var legendReallyHasATrace = false; var defaultOrder = "normal"; @@ -30397,7 +30407,7 @@ var Plotly = (() => { for (i = 0; i < legends.length; i++) { var legendId = legends[i]; groupDefaults(legendId, layoutIn, layoutOut, allLegendsData); - if (layoutOut[legendId] && layoutOut[legendId].visible) { + if (layoutOut[legendId]) { layoutOut[legendId]._id = legendId; } layoutOut._legends.push(legendId); @@ -36015,7 +36025,7 @@ var Plotly = (() => { } } function setClipPath(shapePath, gd, shapeOptions) { - var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][1-9]* *domain/g, ""); + var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][0-9]* *domain/g, ""); Drawing.setClipUrl( shapePath, clipAxes ? "clip" + gd._fullLayout._uid + clipAxes : null, @@ -43860,7 +43870,6 @@ var Plotly = (() => { "src/plot_api/helpers.js"(exports) { "use strict"; var isNumeric = require_fast_isnumeric(); - var m4FromQuat = require_fromQuat(); var Registry = require_registry(); var Lib = require_lib(); var Plots = require_plots(); @@ -43869,6 +43878,7 @@ var Plotly = (() => { var cleanId = AxisIds.cleanId; var getFromTrace = AxisIds.getFromTrace; var traceIs = Registry.traceIs; + var AX_LETTERS = ["x", "y", "z"]; exports.clearPromiseQueue = function(gd) { if (Array.isArray(gd._promises) && gd._promises.length > 0) { Lib.log("Clearing previous rejected promises from queue."); @@ -44035,12 +44045,7 @@ var Plotly = (() => { var increasingName = cleanFinanceDir(trace.increasing); var decreasingName = cleanFinanceDir(trace.decreasing); if (increasingName !== false && decreasingName !== false) { - var newName = commonPrefix( - increasingName, - decreasingName, - increasingShowlegend, - decreasingShowlegend - ); + var newName = commonPrefix(increasingName, decreasingName, increasingShowlegend, decreasingShowlegend); if (newName) trace.name = newName; } else if ((increasingName || decreasingName) && !trace.name) { trace.name = increasingName || decreasingName; @@ -44170,12 +44175,11 @@ var Plotly = (() => { } return false; }; - var axLetters = ["x", "y", "z"]; exports.clearAxisTypes = function(gd, traces, layoutUpdate) { for (var i = 0; i < traces.length; i++) { var trace = gd._fullData[i]; for (var j = 0; j < 3; j++) { - var ax = getFromTrace(gd, trace, axLetters[j]); + var ax = getFromTrace(gd, trace, AX_LETTERS[j]); if (ax && ax.type !== "log") { var axAttr = ax._name; var sceneName = ax._id.substr(1); @@ -44191,6 +44195,35 @@ var Plotly = (() => { } } }; + var collectionsAreEqual = (collection1, collection2) => { + const isArrayOrObject = (...vals) => vals.every((v) => Lib.isPlainObject(v)) || vals.every((v) => Array.isArray(v)); + if ([collection1, collection2].every((a) => Array.isArray(a))) { + if (collection1.length !== collection2.length) return false; + for (let i = 0; i < collection1.length; i++) { + const oldVal = collection1[i]; + const newVal = collection2[i]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } else if ([collection1, collection2].every((a) => Lib.isPlainObject(a))) { + if (Object.keys(collection1).length !== Object.keys(collection2).length) return false; + for (const k in collection1) { + if (k.startsWith("_")) continue; + const oldVal = collection1[k]; + const newVal = collection2[k]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } + return false; + }; + exports.collectionsAreEqual = collectionsAreEqual; } }); @@ -44298,21 +44331,28 @@ var Plotly = (() => { } } if (!fullLayout._glcanvas && fullLayout._has("gl")) { - fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data([{ - key: "contextLayer", - context: true, - pick: false - }, { - key: "focusLayer", - context: false, - pick: false - }, { - key: "pickLayer", - context: false, - pick: true - }], function(d) { - return d.key; - }); + fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data( + [ + { + key: "contextLayer", + context: true, + pick: false + }, + { + key: "focusLayer", + context: false, + pick: false + }, + { + key: "pickLayer", + context: false, + pick: true + } + ], + function(d) { + return d.key; + } + ); fullLayout._glcanvas.enter().append("canvas").attr("class", function(d) { return "gl-canvas gl-canvas-" + d.key.replace("Layer", ""); }).style({ @@ -44370,21 +44410,21 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([ - marginPushers, - subroutines.layoutStyles - ], gd); + return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); } function positionAndAutorange() { if (!recalc) { doAutoRangeAndConstraints(); return; } - return Lib.syncOrAsync([ - Registry.getComponentMethod("shapes", "calcAutorange"), - Registry.getComponentMethod("annotations", "calcAutorange"), - doAutoRangeAndConstraints - ], gd); + return Lib.syncOrAsync( + [ + Registry.getComponentMethod("shapes", "calcAutorange"), + Registry.getComponentMethod("annotations", "calcAutorange"), + doAutoRangeAndConstraints + ], + gd + ); } function doAutoRangeAndConstraints() { if (gd._transitioning) return; @@ -44395,28 +44435,19 @@ var Plotly = (() => { function drawAxes() { return Axes.draw(gd, graphWasEmpty ? "" : "redraw"); } - var seq = [ - Plots.previousPromises, - addFrames2, - drawFramework, - marginPushers, - marginPushersAgain - ]; + var seq = [Plots.previousPromises, addFrames2, drawFramework, marginPushers, marginPushersAgain]; if (hasCartesian) seq.push(positionAndAutorange); seq.push(subroutines.layoutStyles); if (hasCartesian) { - seq.push( - drawAxes, - function insideTickLabelsAutorange(gd2) { - var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; - if (insideTickLabelsUpdaterange) { - gd2._fullLayout._insideTickLabelsUpdaterange = void 0; - return relayout(gd2, insideTickLabelsUpdaterange).then(function() { - Axes.saveRangeInitial(gd2, true); - }); - } + seq.push(drawAxes, function insideTickLabelsAutorange(gd2) { + var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; + if (insideTickLabelsUpdaterange) { + gd2._fullLayout._insideTickLabelsUpdaterange = void 0; + return relayout(gd2, insideTickLabelsUpdaterange).then(function() { + Axes.saveRangeInitial(gd2, true); + }); } - ); + }); } seq.push( subroutines.drawData, @@ -44622,7 +44653,7 @@ var Plotly = (() => { } for (i = 0; i < traces.length; i++) { value = traces[i]; - if (typeof value !== "object" || (Array.isArray(value) || value === null)) { + if (typeof value !== "object" || Array.isArray(value) || value === null) { throw new Error("all values in traces array must be non-array objects"); } } @@ -44630,9 +44661,7 @@ var Plotly = (() => { newIndices = [newIndices]; } if (typeof newIndices !== "undefined" && newIndices.length !== traces.length) { - throw new Error( - "if indices is specified, traces.length must equal indices.length" - ); + throw new Error("if indices is specified, traces.length must equal indices.length"); } } function assertExtendTracesArgs(gd, update2, indices, maxPoints) { @@ -44652,7 +44681,9 @@ var Plotly = (() => { throw new Error("attribute " + key + " must be an array of length equal to indices array length"); } if (maxPointsIsObject && (!(key in maxPoints) || !Array.isArray(maxPoints[key]) || maxPoints[key].length !== update2[key].length)) { - throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object"); + throw new Error( + "when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object" + ); } } } @@ -44942,18 +44973,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - restyle, - [gd, specs.undoit, specs.traces], - restyle, - [gd, specs.redoit, specs.traces] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, restyle, [gd, specs.undoit, specs.traces], restyle, [gd, specs.redoit, specs.traces]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(); return plotDone.then(function() { @@ -45120,7 +45141,11 @@ var Plotly = (() => { var topOrBottom = orient === "top" || orient === "bottom"; if (finalPart === "thicknessmode") { var thicknorm = topOrBottom ? gs.h : gs.w; - doextra(prefixDot + "thickness", innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), i); + doextra( + prefixDot + "thickness", + innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), + i + ); } else { var lennorm = topOrBottom ? gs.w : gs.h; doextra(prefixDot + "len", innerContFull.len * (newVal === "fraction" ? 1 / lennorm : lennorm), i); @@ -45143,12 +45168,7 @@ var Plotly = (() => { } } undoit[ai][i] = undefinedToNull(oldVal); - var swapAttrs = [ - "swapxy", - "swapxyaxes", - "orientation", - "orientationaxes" - ]; + var swapAttrs = ["swapxy", "swapxyaxes", "orientation", "orientationaxes"]; if (swapAttrs.indexOf(ai) !== -1) { if (ai === "orientation") { param.set(newVal); @@ -45245,18 +45265,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - relayout, - [gd, specs.undoit], - relayout, - [gd, specs.redoit] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, relayout, [gd, specs.undoit], relayout, [gd, specs.redoit]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45496,7 +45506,7 @@ var Plotly = (() => { } else { if (ai === "dragmode" && (vi === false && vOld !== false || vi !== false && vOld === false)) { flags.plot = true; - } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && (ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select"))) { + } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select")) { flags.plot = true; } else if (valObject) editTypes.update(flags, valObject); else flags.calc = true; @@ -45583,18 +45593,13 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, update, [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], update, [ gd, - update, - [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], - update, - [gd, restyleSpecs.redoit, relayoutSpecs.redoit, restyleSpecs.traces] - ); + restyleSpecs.redoit, + relayoutSpecs.redoit, + restyleSpecs.traces + ]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45816,10 +45821,10 @@ var Plotly = (() => { } var configChanged = false; if (config) { - var oldConfig = Lib.extendDeep({}, gd._context); + const oldConfig = Lib.extendDeepAll({}, gd._context); gd._context = void 0; setPlotContext(gd, config); - configChanged = diffConfig(oldConfig, gd._context); + configChanged = !helpers.collectionsAreEqual(oldConfig, gd._context); } if (configChanged) { const eventListeners = gd._ev.eventNames().map((name2) => [name2, gd._ev.listeners(name2)]); @@ -45903,11 +45908,7 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); } @@ -46124,38 +46125,6 @@ var Plotly = (() => { } } } - function diffConfig(oldConfig, newConfig) { - var key; - for (key in oldConfig) { - if (key.charAt(0) === "_") continue; - var oldVal = oldConfig[key]; - var newVal = newConfig[key]; - if (oldVal !== newVal) { - if (Lib.isPlainObject(oldVal) && Lib.isPlainObject(newVal)) { - if (diffConfig(oldVal, newVal)) { - return true; - } - } else if (Array.isArray(oldVal) && Array.isArray(newVal)) { - if (oldVal.length !== newVal.length) { - return true; - } - for (var i = 0; i < oldVal.length; i++) { - if (oldVal[i] !== newVal[i]) { - if (Lib.isPlainObject(oldVal[i]) && Lib.isPlainObject(newVal[i])) { - if (diffConfig(oldVal[i], newVal[i])) { - return true; - } - } else { - return true; - } - } - } - } else { - return true; - } - } - } - } function animate(gd, frameOrGroupNameOrFrameList, animationOpts) { gd = Lib.getGraphDiv(gd); if (!Lib.isPlotDiv(gd)) { @@ -46424,9 +46393,13 @@ var Plotly = (() => { var collisionPresent = _frameHash[name] || _frameHashLocal[name]; if (name && newName && typeof newName === "number" && collisionPresent && numericNameWarningCount < numericNameWarningCountLimit) { numericNameWarningCount++; - Lib.warn('addFrames: overwriting frame "' + (_frameHash[name] || _frameHashLocal[name]).name + '" with a frame whose name of type "number" also equates to "' + name + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'); + Lib.warn( + 'addFrames: overwriting frame "' + (_frameHash[name] || _frameHashLocal[name]).name + '" with a frame whose name of type "number" also equates to "' + name + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.' + ); if (numericNameWarningCount === numericNameWarningCountLimit) { - Lib.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed."); + Lib.warn( + "addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed." + ); } } _frameHashLocal[lookupName] = { name: lookupName }; @@ -46446,7 +46419,9 @@ var Plotly = (() => { for (i = insertions.length - 1; i >= 0; i--) { frame = insertions[i].frame; if (typeof frame.name === "number") { - Lib.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"); + Lib.warn( + "Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings" + ); } if (!frame.name) { while (_frameHash[frame.name = "frame " + gd._transitionData._counter++]) ; @@ -56485,7 +56460,7 @@ var Plotly = (() => { if (axisOpts.side === "bottom") { Titles.draw(gd, axisOpts._id + "title", { propContainer: axisOpts, - propName: axisOpts._name + ".title", + propName: axisOpts._name + ".title.text", placeholder: fullLayout._dfltTitle.x, attributes: { x: axisOpts._offset + axisOpts._length / 2, @@ -58308,7 +58283,7 @@ var Plotly = (() => { function drawTitle(titleClass, titleOpts) { var dfltTitleOpts = { propContainer: ax, - propName: opts._propPrefix + "title", + propName: opts._propPrefix + "title.text", traceIndex: opts._traceIndex, _meta: opts._meta, placeholder: fullLayout._dfltTitle.colorbar, diff --git a/dist/plotly-mapbox.min.js b/dist/plotly-mapbox.min.js index 30e473e537d..51e5bc85a0f 100644 --- a/dist/plotly-mapbox.min.js +++ b/dist/plotly-mapbox.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (mapbox - minified) v3.1.1 +* plotly.js (mapbox - minified) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,18 +12,18 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var me=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var G1=me(p7=>{"use strict";p7.version="3.1.1"});var y7=me((m7,Z1)=>{(function(t,r,i){r[t]=r[t]||i(),typeof Z1!="undefined"&&Z1.exports&&(Z1.exports=r[t])})("Promise",typeof window!="undefined"?window:m7,function(){"use strict";var t,r,i,a=Object.prototype.toString,s=typeof setImmediate!="undefined"?function(B){return setImmediate(B)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(B,q,z,O){return Object.defineProperty(B,q,{value:z,writable:!0,configurable:O!==!1})}}catch(I){t=function(q,z,O){return q[z]=O,q}}i=function(){var B,q,z;function O(H,V){this.fn=H,this.self=V,this.next=void 0}return{add:function(V,W){z=new O(V,W),q?q.next=z:B=z,q=z,z=void 0},drain:function(){var V=B;for(B=q=r=void 0;V;)V.fn.call(V.self),V=V.next}}}();function l(I,B){i.add(I,B),r||(r=s(i.drain))}function f(I){var B,q=typeof I;return I!=null&&(q=="object"||q=="function")&&(B=I.then),typeof B=="function"?B:!1}function h(){for(var I=0;I0&&l(h,q))}catch(z){_.call(new S(q),z)}}}function _(I){var B=this;B.triggered||(B.triggered=!0,B.def&&(B=B.def),B.msg=I,B.state=2,B.chain.length>0&&l(h,B))}function T(I,B,q,z){for(var O=0;O{(function(){var e={version:"3.8.2"},t=[].slice,r=function(y){return t.call(y)},i=self.document;function a(y){return y&&(y.ownerDocument||y.document||y).documentElement}function s(y){return y&&(y.ownerDocument&&y.ownerDocument.defaultView||y.document&&y||y.defaultView)}if(i)try{r(i.documentElement.childNodes)[0].nodeType}catch(y){r=function(M){for(var P=M.length,N=new Array(P);P--;)N[P]=M[P];return N}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch(y){var l=this.Element.prototype,f=l.setAttribute,h=l.setAttributeNS,v=this.CSSStyleDeclaration.prototype,m=v.setProperty;l.setAttribute=function(M,P){f.call(this,M,P+"")},l.setAttributeNS=function(M,P,N){h.call(this,M,P,N+"")},v.setProperty=function(M,P,N){m.call(this,M,P+"",N)}}e.ascending=_;function _(y,M){return yM?1:y>=M?0:NaN}e.descending=function(y,M){return My?1:M>=y?0:NaN},e.min=function(y,M){var P=-1,N=y.length,U,Z;if(arguments.length===1){for(;++P=Z){U=Z;break}for(;++PZ&&(U=Z)}else{for(;++P=Z){U=Z;break}for(;++PZ&&(U=Z)}return U},e.max=function(y,M){var P=-1,N=y.length,U,Z;if(arguments.length===1){for(;++P=Z){U=Z;break}for(;++PU&&(U=Z)}else{for(;++P=Z){U=Z;break}for(;++PU&&(U=Z)}return U},e.extent=function(y,M){var P=-1,N=y.length,U,Z,$;if(arguments.length===1){for(;++P=Z){U=$=Z;break}for(;++PZ&&(U=Z),$=Z){U=$=Z;break}for(;++PZ&&(U=Z),$1)return $/(ae-1)},e.deviation=function(){var y=e.variance.apply(this,arguments);return y&&Math.sqrt(y)};function C(y){return{left:function(M,P,N,U){for(arguments.length<3&&(N=0),arguments.length<4&&(U=M.length);N>>1;y(M[Z],P)<0?N=Z+1:U=Z}return N},right:function(M,P,N,U){for(arguments.length<3&&(N=0),arguments.length<4&&(U=M.length);N>>1;y(M[Z],P)>0?U=Z:N=Z+1}return N}}}var D=C(_);e.bisectLeft=D.left,e.bisect=e.bisectRight=D.right,e.bisector=function(y){return C(y.length===1?function(M,P){return _(y(M),P)}:y)},e.shuffle=function(y,M,P){(N=arguments.length)<3&&(P=y.length,N<2&&(M=0));for(var N=P-M,U,Z;N;)Z=Math.random()*N--|0,U=y[N+M],y[N+M]=y[Z+M],y[Z+M]=U;return y},e.permute=function(y,M){for(var P=M.length,N=new Array(P);P--;)N[P]=y[M[P]];return N},e.pairs=function(y){for(var M=0,P=y.length-1,N,U=y[0],Z=new Array(P<0?0:P);M=0;)for($=y[M],P=$.length;--P>=0;)Z[--U]=$[P];return Z};var I=Math.abs;e.range=function(y,M,P){if(arguments.length<3&&(P=1,arguments.length<2&&(M=y,y=0)),(M-y)/P===1/0)throw new Error("infinite range");var N=[],U=B(I(P)),Z=-1,$;if(y*=U,M*=U,P*=U,P<0)for(;($=y+P*++Z)>M;)N.push($/U);else for(;($=y+P*++Z)=M.length)return U?U.call(y,ae):N?ae.sort(N):ae;for(var _e=-1,Pe=ae.length,De=M[ye++],Qe,st,Ie,Ve=new z,Ke;++_e=M.length)return X;var ye=[],_e=P[ae++];return X.forEach(function(Pe,De){ye.push({key:Pe,values:$(De,ae)})}),_e?ye.sort(function(Pe,De){return _e(Pe.key,De.key)}):ye}return y.map=function(X,ae){return Z(ae,X,0)},y.entries=function(X){return $(Z(e.map,X,0),0)},y.key=function(X){return M.push(X),y},y.sortKeys=function(X){return P[M.length-1]=X,y},y.sortValues=function(X){return N=X,y},y.rollup=function(X){return U=X,y},y},e.set=function(y){var M=new ve;if(y)for(var P=0,N=y.length;P=0&&(N=y.slice(P+1),y=y.slice(0,P)),y)return arguments.length<2?this[y].on(N):this[y].on(N,M);if(arguments.length===2){if(M==null)for(y in this)this.hasOwnProperty(y)&&this[y].on(N,null);return this}};function Le(y){var M=[],P=new z;function N(){for(var U=M,Z=-1,$=U.length,X;++Z<$;)(X=U[Z].on)&&X.apply(this,arguments);return y}return N.on=function(U,Z){var $=P.get(U),X;return arguments.length<2?$&&$.on:($&&($.on=null,M=M.slice(0,X=M.indexOf($)).concat(M.slice(X+1)),P.remove(U)),Z&&M.push(P.set(U,{on:Z})),y)},N}e.event=null;function $e(){e.event.preventDefault()}function lt(){for(var y=e.event,M;M=y.sourceEvent;)y=M;return y}function it(y){for(var M=new Ce,P=0,N=arguments.length;++P=0&&(P=y.slice(0,M))!=="xmlns"&&(y=y.slice(M+1)),rt.hasOwnProperty(P)?{space:rt[P],local:y}:y}},vt.attr=function(y,M){if(arguments.length<2){if(typeof y=="string"){var P=this.node();return y=e.ns.qualify(y),y.local?P.getAttributeNS(y.space,y.local):P.getAttribute(y)}for(M in y)this.each(mt(M,y[M]));return this}return this.each(mt(y,M))};function mt(y,M){y=e.ns.qualify(y);function P(){this.removeAttribute(y)}function N(){this.removeAttributeNS(y.space,y.local)}function U(){this.setAttribute(y,M)}function Z(){this.setAttributeNS(y.space,y.local,M)}function $(){var ae=M.apply(this,arguments);ae==null?this.removeAttribute(y):this.setAttribute(y,ae)}function X(){var ae=M.apply(this,arguments);ae==null?this.removeAttributeNS(y.space,y.local):this.setAttributeNS(y.space,y.local,ae)}return M==null?y.local?N:P:typeof M=="function"?y.local?X:$:y.local?Z:U}function Xe(y){return y.trim().replace(/\s+/g," ")}vt.classed=function(y,M){if(arguments.length<2){if(typeof y=="string"){var P=this.node(),N=(y=Lt(y)).length,U=-1;if(M=P.classList){for(;++U=0;)(Z=P[N])&&(U&&U!==Z.nextSibling&&U.parentNode.insertBefore(Z,U),U=Z);return this},vt.sort=function(y){y=ft.apply(this,arguments);for(var M=-1,P=this.length;++M=M&&(M=U+1);!(ae=$[M])&&++M0&&(y=y.slice(0,U));var $=qt.get(y);$&&(y=$,Z=Vt);function X(){var _e=this[N];_e&&(this.removeEventListener(y,_e,_e.$),delete this[N])}function ae(){var _e=Z(M,r(arguments));X.call(this),this.addEventListener(y,this[N]=_e,_e.$=P),_e._=M}function ye(){var _e=new RegExp("^__on([^.]+)"+e.requote(y)+"$"),Pe;for(var De in this)if(Pe=De.match(_e)){var Qe=this[De];this.removeEventListener(Pe[1],Qe,Qe.$),delete this[De]}}return U?M?ae:X:M?Te:ye}var qt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&qt.forEach(function(y){"on"+y in i&&qt.remove(y)});function Qt(y,M){return function(P){var N=e.event;e.event=P,M[0]=this.__data__;try{y.apply(this,M)}finally{e.event=N}}}function Vt(y,M){var P=Qt(y,M);return function(N){var U=this,Z=N.relatedTarget;(!Z||Z!==U&&!(Z.compareDocumentPosition(U)&8))&&P.call(U,N)}}var tr,ar=0;function zr(y){var M=".dragsuppress-"+ ++ar,P="click"+M,N=e.select(s(y)).on("touchmove"+M,$e).on("dragstart"+M,$e).on("selectstart"+M,$e);if(tr==null&&(tr="onselectstart"in y?!1:Ae(y.style,"userSelect")),tr){var U=a(y).style,Z=U[tr];U[tr]="none"}return function($){if(N.on(M,null),tr&&(U[tr]=Z),$){var X=function(){N.on(P,null)};N.on(P,function(){$e(),X()},!0),setTimeout(X,0)}}}e.mouse=function(y){return At(y,lt())};var lr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function At(y,M){M.changedTouches&&(M=M.changedTouches[0]);var P=y.ownerSVGElement||y;if(P.createSVGPoint){var N=P.createSVGPoint();if(lr<0){var U=s(y);if(U.scrollX||U.scrollY){P=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Z=P[0][0].getScreenCTM();lr=!(Z.f||Z.e),P.remove()}}return lr?(N.x=M.pageX,N.y=M.pageY):(N.x=M.clientX,N.y=M.clientY),N=N.matrixTransform(y.getScreenCTM().inverse()),[N.x,N.y]}var $=y.getBoundingClientRect();return[M.clientX-$.left-y.clientLeft,M.clientY-$.top-y.clientTop]}e.touch=function(y,M,P){if(arguments.length<3&&(P=M,M=lt().changedTouches),M){for(var N=0,U=M.length,Z;N0?1:y<0?-1:0}function Ua(y,M,P){return(M[0]-y[0])*(P[1]-y[1])-(M[1]-y[1])*(P[0]-y[0])}function Ki(y){return y>1?0:y<-1?dt:Math.acos(y)}function qi(y){return y>1?mr:y<-1?-mr:Math.asin(y)}function vi(y){return((y=Math.exp(y))-1/y)/2}function Ti(y){return((y=Math.exp(y))+1/y)/2}function $i(y){return((y=Math.exp(2*y))-1)/(y+1)}function on(y){return(y=Math.sin(y/2))*y}var Ei=Math.SQRT2,ma=2,Gr=4;e.interpolateZoom=function(y,M){var P=y[0],N=y[1],U=y[2],Z=M[0],$=M[1],X=M[2],ae=Z-P,ye=$-N,_e=ae*ae+ye*ye,Pe,De;if(_e0&&(Xt=Xt.transition().duration($)),Xt.call(ot.event)}function Dr(){Ve&&Ve.domain(Ie.range().map(function(Xt){return(Xt-y.x)/y.k}).map(Ie.invert)),ct&&ct.domain(Ke.range().map(function(Xt){return(Xt-y.y)/y.k}).map(Ke.invert))}function Ir(Xt){X++||Xt({type:"zoomstart"})}function ta(Xt){Dr(),Xt({type:"zoom",scale:y.k,translate:[y.x,y.y]})}function Ur(Xt){--X||(Xt({type:"zoomend"}),P=null)}function Kr(){var Xt=this,Jr=st.of(Xt,arguments),oa=0,sa=e.select(s(Xt)).on(ye,tn).on(_e,wi),Pi=je(e.mouse(Xt)),Hi=zr(Xt);ah.call(Xt),Ir(Jr);function tn(){oa=1,cr(e.mouse(Xt),Pi),ta(Jr)}function wi(){sa.on(ye,null).on(_e,null),Hi(oa),Ur(Jr)}}function Na(){var Xt=this,Jr=st.of(Xt,arguments),oa={},sa=0,Pi,Hi=".zoom-"+e.event.changedTouches[0].identifier,tn="touchmove"+Hi,wi="touchend"+Hi,wn=[],wr=e.select(Xt),Vr=zr(Xt);Mi(),Ir(Jr),wr.on(ae,null).on(De,Mi);function Bi(){var pn=e.touches(Xt);return Pi=y.k,pn.forEach(function(mi){mi.identifier in oa&&(oa[mi.identifier]=je(mi))}),pn}function Mi(){var pn=e.event.target;e.select(pn).on(tn,lo).on(wi,In),wn.push(pn);for(var mi=e.event.changedTouches,jo=0,uo=mi.length;jo1){var Aa=ci[0],ui=ci[1],Bl=Aa[0]-ui[0],Hv=Aa[1]-ui[1];sa=Bl*Bl+Hv*Hv}}function lo(){var pn=e.touches(Xt),mi,jo,uo,ci;ah.call(Xt);for(var gf=0,Aa=pn.length;gf1?1:M,P=P<0?0:P>1?1:P,U=P<=.5?P*(1+M):P+M-P*M,N=2*P-U;function Z(X){return X>360?X-=360:X<0&&(X+=360),X<60?N+(U-N)*X/60:X<180?U:X<240?N+(U-N)*(240-X)/60:N}function $(X){return Math.round(Z(X)*255)}return new ua($(y+120),$(y),$(y-120))}e.hcl=ce;function ce(y,M,P){return this instanceof ce?(this.h=+y,this.c=+M,void(this.l=+P)):arguments.length<2?y instanceof ce?new ce(y.h,y.c,y.l):y instanceof at?Tr(y.l,y.a,y.b):Tr((y=ir((y=e.rgb(y)).r,y.g,y.b)).l,y.a,y.b):new ce(y,M,P)}var Ee=ce.prototype=new ga;Ee.brighter=function(y){return new ce(this.h,this.c,Math.min(100,this.l+He*(arguments.length?y:1)))},Ee.darker=function(y){return new ce(this.h,this.c,Math.max(0,this.l-He*(arguments.length?y:1)))},Ee.rgb=function(){return Ne(this.h,this.c,this.l).rgb()};function Ne(y,M,P){return isNaN(y)&&(y=0),isNaN(M)&&(M=0),new at(P,Math.cos(y*=Hr)*M,Math.sin(y)*M)}e.lab=at;function at(y,M,P){return this instanceof at?(this.l=+y,this.a=+M,void(this.b=+P)):arguments.length<2?y instanceof at?new at(y.l,y.a,y.b):y instanceof ce?Ne(y.h,y.c,y.l):ir((y=ua(y)).r,y.g,y.b):new at(y,M,P)}var He=18,pt=.95047,Dt=1,Rt=1.08883,$t=at.prototype=new ga;$t.brighter=function(y){return new at(Math.min(100,this.l+He*(arguments.length?y:1)),this.a,this.b)},$t.darker=function(y){return new at(Math.max(0,this.l-He*(arguments.length?y:1)),this.a,this.b)},$t.rgb=function(){return Yt(this.l,this.a,this.b)};function Yt(y,M,P){var N=(y+16)/116,U=N+M/500,Z=N-P/200;return U=Yr(U)*pt,N=Yr(N)*Dt,Z=Yr(Z)*Rt,new ua(ca(3.2404542*U-1.5371385*N-.4985314*Z),ca(-.969266*U+1.8760108*N+.041556*Z),ca(.0556434*U-.2040259*N+1.0572252*Z))}function Tr(y,M,P){return y>0?new ce(Math.atan2(P,M)*pa,Math.sqrt(M*M+P*P),y):new ce(NaN,NaN,y)}function Yr(y){return y>.206893034?y*y*y:(y-4/29)/7.787037}function Br(y){return y>.008856?Math.pow(y,1/3):7.787037*y+4/29}function ca(y){return Math.round(255*(y<=.00304?12.92*y:1.055*Math.pow(y,1/2.4)-.055))}e.rgb=ua;function ua(y,M,P){return this instanceof ua?(this.r=~~y,this.g=~~M,void(this.b=~~P)):arguments.length<2?y instanceof ua?new ua(y.r,y.g,y.b):ea(""+y,ua,se):new ua(y,M,P)}function qa(y){return new ua(y>>16,y>>8&255,y&255)}function ii(y){return qa(y)+""}var Wr=ua.prototype=new ga;Wr.brighter=function(y){y=Math.pow(.7,arguments.length?y:1);var M=this.r,P=this.g,N=this.b,U=30;return!M&&!P&&!N?new ua(U,U,U):(M&&M>4,N=N>>4|N,U=ae&240,U=U>>4|U,Z=ae&15,Z=Z<<4|Z):y.length===7&&(N=(ae&16711680)>>16,U=(ae&65280)>>8,Z=ae&255)),M(N,U,Z))}function _a(y,M,P){var N=Math.min(y/=255,M/=255,P/=255),U=Math.max(y,M,P),Z=U-N,$,X,ae=(U+N)/2;return Z?(X=ae<.5?Z/(U+N):Z/(2-U-N),y==U?$=(M-P)/Z+(M0&&ae<1?0:$),new le($,X,ae)}function ir(y,M,P){y=Ai(y),M=Ai(M),P=Ai(P);var N=Br((.4124564*y+.3575761*M+.1804375*P)/pt),U=Br((.2126729*y+.7151522*M+.072175*P)/Dt),Z=Br((.0193339*y+.119192*M+.9503041*P)/Rt);return at(116*U-16,500*(N-U),200*(U-Z))}function Ai(y){return(y/=255)<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function Ca(y){var M=parseFloat(y);return y.charAt(y.length-1)==="%"?Math.round(M*2.55):M}var si=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});si.forEach(function(y,M){si.set(y,qa(M))});function fa(y){return typeof y=="function"?y:function(){return y}}e.functor=fa,e.xhr=Dn(Me);function Dn(y){return function(M,P,N){return arguments.length===2&&typeof P=="function"&&(N=P,P=null),Co(M,P,y,N)}}function Co(y,M,P,N){var U={},Z=e.dispatch("beforesend","progress","load","error"),$={},X=new XMLHttpRequest,ae=null;self.XDomainRequest&&!("withCredentials"in X)&&/^(http(s)?:)?\/\//.test(y)&&(X=new XDomainRequest),"onload"in X?X.onload=X.onerror=ye:X.onreadystatechange=function(){X.readyState>3&&ye()};function ye(){var _e=X.status,Pe;if(!_e&&Za(X)||_e>=200&&_e<300||_e===304){try{Pe=P.call(U,X)}catch(De){Z.error.call(U,De);return}Z.load.call(U,Pe)}else Z.error.call(U,X)}return X.onprogress=function(_e){var Pe=e.event;e.event=_e;try{Z.progress.call(U,X)}finally{e.event=Pe}},U.header=function(_e,Pe){return _e=(_e+"").toLowerCase(),arguments.length<2?$[_e]:(Pe==null?delete $[_e]:$[_e]=Pe+"",U)},U.mimeType=function(_e){return arguments.length?(M=_e==null?null:_e+"",U):M},U.responseType=function(_e){return arguments.length?(ae=_e,U):ae},U.response=function(_e){return P=_e,U},["get","post"].forEach(function(_e){U[_e]=function(){return U.send.apply(U,[_e].concat(r(arguments)))}}),U.send=function(_e,Pe,De){if(arguments.length===2&&typeof Pe=="function"&&(De=Pe,Pe=null),X.open(_e,y,!0),M!=null&&!("accept"in $)&&($.accept=M+",*/*"),X.setRequestHeader)for(var Qe in $)X.setRequestHeader(Qe,$[Qe]);return M!=null&&X.overrideMimeType&&X.overrideMimeType(M),ae!=null&&(X.responseType=ae),De!=null&&U.on("error",De).on("load",function(st){De(null,st)}),Z.beforesend.call(U,X),X.send(Pe==null?null:Pe),U},U.abort=function(){return X.abort(),U},e.rebind(U,Z,"on"),N==null?U:U.get(_s(N))}function _s(y){return y.length===1?function(M,P){y(M==null?P:null)}:y}function Za(y){var M=y.responseType;return M&&M!=="text"?y.response:y.responseText}e.dsv=function(y,M){var P=new RegExp('["'+y+` +"use strict";var Plotly=(()=>{var me=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Z1=me(p7=>{"use strict";p7.version="3.1.2"});var y7=me((m7,Y1)=>{(function(t,r,i){r[t]=r[t]||i(),typeof Y1!="undefined"&&Y1.exports&&(Y1.exports=r[t])})("Promise",typeof window!="undefined"?window:m7,function(){"use strict";var t,r,i,a=Object.prototype.toString,s=typeof setImmediate!="undefined"?function(B){return setImmediate(B)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(B,q,I,O){return Object.defineProperty(B,q,{value:I,writable:!0,configurable:O!==!1})}}catch(z){t=function(q,I,O){return q[I]=O,q}}i=function(){var B,q,I;function O(H,V){this.fn=H,this.self=V,this.next=void 0}return{add:function(V,W){I=new O(V,W),q?q.next=I:B=I,q=I,I=void 0},drain:function(){var V=B;for(B=q=r=void 0;V;)V.fn.call(V.self),V=V.next}}}();function l(z,B){i.add(z,B),r||(r=s(i.drain))}function f(z){var B,q=typeof z;return z!=null&&(q=="object"||q=="function")&&(B=z.then),typeof B=="function"?B:!1}function h(){for(var z=0;z0&&l(h,q))}catch(I){_.call(new S(q),I)}}}function _(z){var B=this;B.triggered||(B.triggered=!0,B.def&&(B=B.def),B.msg=z,B.state=2,B.chain.length>0&&l(h,B))}function T(z,B,q,I){for(var O=0;O{(function(){var e={version:"3.8.2"},t=[].slice,r=function(y){return t.call(y)},i=self.document;function a(y){return y&&(y.ownerDocument||y.document||y).documentElement}function s(y){return y&&(y.ownerDocument&&y.ownerDocument.defaultView||y.document&&y||y.defaultView)}if(i)try{r(i.documentElement.childNodes)[0].nodeType}catch(y){r=function(M){for(var P=M.length,N=new Array(P);P--;)N[P]=M[P];return N}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch(y){var l=this.Element.prototype,f=l.setAttribute,h=l.setAttributeNS,v=this.CSSStyleDeclaration.prototype,m=v.setProperty;l.setAttribute=function(M,P){f.call(this,M,P+"")},l.setAttributeNS=function(M,P,N){h.call(this,M,P,N+"")},v.setProperty=function(M,P,N){m.call(this,M,P+"",N)}}e.ascending=_;function _(y,M){return yM?1:y>=M?0:NaN}e.descending=function(y,M){return My?1:M>=y?0:NaN},e.min=function(y,M){var P=-1,N=y.length,U,Z;if(arguments.length===1){for(;++P=Z){U=Z;break}for(;++PZ&&(U=Z)}else{for(;++P=Z){U=Z;break}for(;++PZ&&(U=Z)}return U},e.max=function(y,M){var P=-1,N=y.length,U,Z;if(arguments.length===1){for(;++P=Z){U=Z;break}for(;++PU&&(U=Z)}else{for(;++P=Z){U=Z;break}for(;++PU&&(U=Z)}return U},e.extent=function(y,M){var P=-1,N=y.length,U,Z,$;if(arguments.length===1){for(;++P=Z){U=$=Z;break}for(;++PZ&&(U=Z),$=Z){U=$=Z;break}for(;++PZ&&(U=Z),$1)return $/(ae-1)},e.deviation=function(){var y=e.variance.apply(this,arguments);return y&&Math.sqrt(y)};function C(y){return{left:function(M,P,N,U){for(arguments.length<3&&(N=0),arguments.length<4&&(U=M.length);N>>1;y(M[Z],P)<0?N=Z+1:U=Z}return N},right:function(M,P,N,U){for(arguments.length<3&&(N=0),arguments.length<4&&(U=M.length);N>>1;y(M[Z],P)>0?U=Z:N=Z+1}return N}}}var E=C(_);e.bisectLeft=E.left,e.bisect=e.bisectRight=E.right,e.bisector=function(y){return C(y.length===1?function(M,P){return _(y(M),P)}:y)},e.shuffle=function(y,M,P){(N=arguments.length)<3&&(P=y.length,N<2&&(M=0));for(var N=P-M,U,Z;N;)Z=Math.random()*N--|0,U=y[N+M],y[N+M]=y[Z+M],y[Z+M]=U;return y},e.permute=function(y,M){for(var P=M.length,N=new Array(P);P--;)N[P]=y[M[P]];return N},e.pairs=function(y){for(var M=0,P=y.length-1,N,U=y[0],Z=new Array(P<0?0:P);M=0;)for($=y[M],P=$.length;--P>=0;)Z[--U]=$[P];return Z};var z=Math.abs;e.range=function(y,M,P){if(arguments.length<3&&(P=1,arguments.length<2&&(M=y,y=0)),(M-y)/P===1/0)throw new Error("infinite range");var N=[],U=B(z(P)),Z=-1,$;if(y*=U,M*=U,P*=U,P<0)for(;($=y+P*++Z)>M;)N.push($/U);else for(;($=y+P*++Z)=M.length)return U?U.call(y,ae):N?ae.sort(N):ae;for(var _e=-1,Pe=ae.length,De=M[ye++],Qe,st,Ie,Ve=new I,Ke;++_e=M.length)return X;var ye=[],_e=P[ae++];return X.forEach(function(Pe,De){ye.push({key:Pe,values:$(De,ae)})}),_e?ye.sort(function(Pe,De){return _e(Pe.key,De.key)}):ye}return y.map=function(X,ae){return Z(ae,X,0)},y.entries=function(X){return $(Z(e.map,X,0),0)},y.key=function(X){return M.push(X),y},y.sortKeys=function(X){return P[M.length-1]=X,y},y.sortValues=function(X){return N=X,y},y.rollup=function(X){return U=X,y},y},e.set=function(y){var M=new ve;if(y)for(var P=0,N=y.length;P=0&&(N=y.slice(P+1),y=y.slice(0,P)),y)return arguments.length<2?this[y].on(N):this[y].on(N,M);if(arguments.length===2){if(M==null)for(y in this)this.hasOwnProperty(y)&&this[y].on(N,null);return this}};function Le(y){var M=[],P=new I;function N(){for(var U=M,Z=-1,$=U.length,X;++Z<$;)(X=U[Z].on)&&X.apply(this,arguments);return y}return N.on=function(U,Z){var $=P.get(U),X;return arguments.length<2?$&&$.on:($&&($.on=null,M=M.slice(0,X=M.indexOf($)).concat(M.slice(X+1)),P.remove(U)),Z&&M.push(P.set(U,{on:Z})),y)},N}e.event=null;function $e(){e.event.preventDefault()}function lt(){for(var y=e.event,M;M=y.sourceEvent;)y=M;return y}function it(y){for(var M=new Ce,P=0,N=arguments.length;++P=0&&(P=y.slice(0,M))!=="xmlns"&&(y=y.slice(M+1)),at.hasOwnProperty(P)?{space:at[P],local:y}:y}},vt.attr=function(y,M){if(arguments.length<2){if(typeof y=="string"){var P=this.node();return y=e.ns.qualify(y),y.local?P.getAttributeNS(y.space,y.local):P.getAttribute(y)}for(M in y)this.each(mt(M,y[M]));return this}return this.each(mt(y,M))};function mt(y,M){y=e.ns.qualify(y);function P(){this.removeAttribute(y)}function N(){this.removeAttributeNS(y.space,y.local)}function U(){this.setAttribute(y,M)}function Z(){this.setAttributeNS(y.space,y.local,M)}function $(){var ae=M.apply(this,arguments);ae==null?this.removeAttribute(y):this.setAttribute(y,ae)}function X(){var ae=M.apply(this,arguments);ae==null?this.removeAttributeNS(y.space,y.local):this.setAttributeNS(y.space,y.local,ae)}return M==null?y.local?N:P:typeof M=="function"?y.local?X:$:y.local?Z:U}function Xe(y){return y.trim().replace(/\s+/g," ")}vt.classed=function(y,M){if(arguments.length<2){if(typeof y=="string"){var P=this.node(),N=(y=Lt(y)).length,U=-1;if(M=P.classList){for(;++U=0;)(Z=P[N])&&(U&&U!==Z.nextSibling&&U.parentNode.insertBefore(Z,U),U=Z);return this},vt.sort=function(y){y=ft.apply(this,arguments);for(var M=-1,P=this.length;++M=M&&(M=U+1);!(ae=$[M])&&++M0&&(y=y.slice(0,U));var $=qt.get(y);$&&(y=$,Z=Vt);function X(){var _e=this[N];_e&&(this.removeEventListener(y,_e,_e.$),delete this[N])}function ae(){var _e=Z(M,r(arguments));X.call(this),this.addEventListener(y,this[N]=_e,_e.$=P),_e._=M}function ye(){var _e=new RegExp("^__on([^.]+)"+e.requote(y)+"$"),Pe;for(var De in this)if(Pe=De.match(_e)){var Qe=this[De];this.removeEventListener(Pe[1],Qe,Qe.$),delete this[De]}}return U?M?ae:X:M?Te:ye}var qt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&qt.forEach(function(y){"on"+y in i&&qt.remove(y)});function Qt(y,M){return function(P){var N=e.event;e.event=P,M[0]=this.__data__;try{y.apply(this,M)}finally{e.event=N}}}function Vt(y,M){var P=Qt(y,M);return function(N){var U=this,Z=N.relatedTarget;(!Z||Z!==U&&!(Z.compareDocumentPosition(U)&8))&&P.call(U,N)}}var tr,ar=0;function zr(y){var M=".dragsuppress-"+ ++ar,P="click"+M,N=e.select(s(y)).on("touchmove"+M,$e).on("dragstart"+M,$e).on("selectstart"+M,$e);if(tr==null&&(tr="onselectstart"in y?!1:Ae(y.style,"userSelect")),tr){var U=a(y).style,Z=U[tr];U[tr]="none"}return function($){if(N.on(M,null),tr&&(U[tr]=Z),$){var X=function(){N.on(P,null)};N.on(P,function(){$e(),X()},!0),setTimeout(X,0)}}}e.mouse=function(y){return At(y,lt())};var lr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function At(y,M){M.changedTouches&&(M=M.changedTouches[0]);var P=y.ownerSVGElement||y;if(P.createSVGPoint){var N=P.createSVGPoint();if(lr<0){var U=s(y);if(U.scrollX||U.scrollY){P=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Z=P[0][0].getScreenCTM();lr=!(Z.f||Z.e),P.remove()}}return lr?(N.x=M.pageX,N.y=M.pageY):(N.x=M.clientX,N.y=M.clientY),N=N.matrixTransform(y.getScreenCTM().inverse()),[N.x,N.y]}var $=y.getBoundingClientRect();return[M.clientX-$.left-y.clientLeft,M.clientY-$.top-y.clientTop]}e.touch=function(y,M,P){if(arguments.length<3&&(P=M,M=lt().changedTouches),M){for(var N=0,U=M.length,Z;N0?1:y<0?-1:0}function Ua(y,M,P){return(M[0]-y[0])*(P[1]-y[1])-(M[1]-y[1])*(P[0]-y[0])}function Ki(y){return y>1?0:y<-1?dt:Math.acos(y)}function qi(y){return y>1?pr:y<-1?-pr:Math.asin(y)}function vi(y){return((y=Math.exp(y))-1/y)/2}function Ti(y){return((y=Math.exp(y))+1/y)/2}function $i(y){return((y=Math.exp(2*y))-1)/(y+1)}function on(y){return(y=Math.sin(y/2))*y}var Ei=Math.SQRT2,ma=2,Gr=4;e.interpolateZoom=function(y,M){var P=y[0],N=y[1],U=y[2],Z=M[0],$=M[1],X=M[2],ae=Z-P,ye=$-N,_e=ae*ae+ye*ye,Pe,De;if(_e0&&(Xt=Xt.transition().duration($)),Xt.call(ot.event)}function Dr(){Ve&&Ve.domain(Ie.range().map(function(Xt){return(Xt-y.x)/y.k}).map(Ie.invert)),ct&&ct.domain(Ke.range().map(function(Xt){return(Xt-y.y)/y.k}).map(Ke.invert))}function Ir(Xt){X++||Xt({type:"zoomstart"})}function ta(Xt){Dr(),Xt({type:"zoom",scale:y.k,translate:[y.x,y.y]})}function Ur(Xt){--X||(Xt({type:"zoomend"}),P=null)}function Kr(){var Xt=this,Jr=st.of(Xt,arguments),oa=0,sa=e.select(s(Xt)).on(ye,tn).on(_e,wi),Pi=je(e.mouse(Xt)),Hi=zr(Xt);ah.call(Xt),Ir(Jr);function tn(){oa=1,cr(e.mouse(Xt),Pi),ta(Jr)}function wi(){sa.on(ye,null).on(_e,null),Hi(oa),Ur(Jr)}}function Na(){var Xt=this,Jr=st.of(Xt,arguments),oa={},sa=0,Pi,Hi=".zoom-"+e.event.changedTouches[0].identifier,tn="touchmove"+Hi,wi="touchend"+Hi,wn=[],wr=e.select(Xt),Vr=zr(Xt);Mi(),Ir(Jr),wr.on(ae,null).on(De,Mi);function Bi(){var pn=e.touches(Xt);return Pi=y.k,pn.forEach(function(mi){mi.identifier in oa&&(oa[mi.identifier]=je(mi))}),pn}function Mi(){var pn=e.event.target;e.select(pn).on(tn,lo).on(wi,Rn),wn.push(pn);for(var mi=e.event.changedTouches,jo=0,uo=mi.length;jo1){var Aa=ci[0],ui=ci[1],Bl=Aa[0]-ui[0],Hv=Aa[1]-ui[1];sa=Bl*Bl+Hv*Hv}}function lo(){var pn=e.touches(Xt),mi,jo,uo,ci;ah.call(Xt);for(var gf=0,Aa=pn.length;gf1?1:M,P=P<0?0:P>1?1:P,U=P<=.5?P*(1+M):P+M-P*M,N=2*P-U;function Z(X){return X>360?X-=360:X<0&&(X+=360),X<60?N+(U-N)*X/60:X<180?U:X<240?N+(U-N)*(240-X)/60:N}function $(X){return Math.round(Z(X)*255)}return new ua($(y+120),$(y),$(y-120))}e.hcl=ce;function ce(y,M,P){return this instanceof ce?(this.h=+y,this.c=+M,void(this.l=+P)):arguments.length<2?y instanceof ce?new ce(y.h,y.c,y.l):y instanceof rt?Tr(y.l,y.a,y.b):Tr((y=ir((y=e.rgb(y)).r,y.g,y.b)).l,y.a,y.b):new ce(y,M,P)}var Ee=ce.prototype=new ga;Ee.brighter=function(y){return new ce(this.h,this.c,Math.min(100,this.l+He*(arguments.length?y:1)))},Ee.darker=function(y){return new ce(this.h,this.c,Math.max(0,this.l-He*(arguments.length?y:1)))},Ee.rgb=function(){return Ne(this.h,this.c,this.l).rgb()};function Ne(y,M,P){return isNaN(y)&&(y=0),isNaN(M)&&(M=0),new rt(P,Math.cos(y*=Hr)*M,Math.sin(y)*M)}e.lab=rt;function rt(y,M,P){return this instanceof rt?(this.l=+y,this.a=+M,void(this.b=+P)):arguments.length<2?y instanceof rt?new rt(y.l,y.a,y.b):y instanceof ce?Ne(y.h,y.c,y.l):ir((y=ua(y)).r,y.g,y.b):new rt(y,M,P)}var He=18,pt=.95047,Dt=1,Rt=1.08883,$t=rt.prototype=new ga;$t.brighter=function(y){return new rt(Math.min(100,this.l+He*(arguments.length?y:1)),this.a,this.b)},$t.darker=function(y){return new rt(Math.max(0,this.l-He*(arguments.length?y:1)),this.a,this.b)},$t.rgb=function(){return Yt(this.l,this.a,this.b)};function Yt(y,M,P){var N=(y+16)/116,U=N+M/500,Z=N-P/200;return U=Yr(U)*pt,N=Yr(N)*Dt,Z=Yr(Z)*Rt,new ua(ca(3.2404542*U-1.5371385*N-.4985314*Z),ca(-.969266*U+1.8760108*N+.041556*Z),ca(.0556434*U-.2040259*N+1.0572252*Z))}function Tr(y,M,P){return y>0?new ce(Math.atan2(P,M)*pa,Math.sqrt(M*M+P*P),y):new ce(NaN,NaN,y)}function Yr(y){return y>.206893034?y*y*y:(y-4/29)/7.787037}function Br(y){return y>.008856?Math.pow(y,1/3):7.787037*y+4/29}function ca(y){return Math.round(255*(y<=.00304?12.92*y:1.055*Math.pow(y,1/2.4)-.055))}e.rgb=ua;function ua(y,M,P){return this instanceof ua?(this.r=~~y,this.g=~~M,void(this.b=~~P)):arguments.length<2?y instanceof ua?new ua(y.r,y.g,y.b):ea(""+y,ua,se):new ua(y,M,P)}function qa(y){return new ua(y>>16,y>>8&255,y&255)}function ii(y){return qa(y)+""}var Wr=ua.prototype=new ga;Wr.brighter=function(y){y=Math.pow(.7,arguments.length?y:1);var M=this.r,P=this.g,N=this.b,U=30;return!M&&!P&&!N?new ua(U,U,U):(M&&M>4,N=N>>4|N,U=ae&240,U=U>>4|U,Z=ae&15,Z=Z<<4|Z):y.length===7&&(N=(ae&16711680)>>16,U=(ae&65280)>>8,Z=ae&255)),M(N,U,Z))}function _a(y,M,P){var N=Math.min(y/=255,M/=255,P/=255),U=Math.max(y,M,P),Z=U-N,$,X,ae=(U+N)/2;return Z?(X=ae<.5?Z/(U+N):Z/(2-U-N),y==U?$=(M-P)/Z+(M0&&ae<1?0:$),new le($,X,ae)}function ir(y,M,P){y=Ai(y),M=Ai(M),P=Ai(P);var N=Br((.4124564*y+.3575761*M+.1804375*P)/pt),U=Br((.2126729*y+.7151522*M+.072175*P)/Dt),Z=Br((.0193339*y+.119192*M+.9503041*P)/Rt);return rt(116*U-16,500*(N-U),200*(U-Z))}function Ai(y){return(y/=255)<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function Ca(y){var M=parseFloat(y);return y.charAt(y.length-1)==="%"?Math.round(M*2.55):M}var si=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});si.forEach(function(y,M){si.set(y,qa(M))});function fa(y){return typeof y=="function"?y:function(){return y}}e.functor=fa,e.xhr=Pn(Se);function Pn(y){return function(M,P,N){return arguments.length===2&&typeof P=="function"&&(N=P,P=null),Co(M,P,y,N)}}function Co(y,M,P,N){var U={},Z=e.dispatch("beforesend","progress","load","error"),$={},X=new XMLHttpRequest,ae=null;self.XDomainRequest&&!("withCredentials"in X)&&/^(http(s)?:)?\/\//.test(y)&&(X=new XDomainRequest),"onload"in X?X.onload=X.onerror=ye:X.onreadystatechange=function(){X.readyState>3&&ye()};function ye(){var _e=X.status,Pe;if(!_e&&Za(X)||_e>=200&&_e<300||_e===304){try{Pe=P.call(U,X)}catch(De){Z.error.call(U,De);return}Z.load.call(U,Pe)}else Z.error.call(U,X)}return X.onprogress=function(_e){var Pe=e.event;e.event=_e;try{Z.progress.call(U,X)}finally{e.event=Pe}},U.header=function(_e,Pe){return _e=(_e+"").toLowerCase(),arguments.length<2?$[_e]:(Pe==null?delete $[_e]:$[_e]=Pe+"",U)},U.mimeType=function(_e){return arguments.length?(M=_e==null?null:_e+"",U):M},U.responseType=function(_e){return arguments.length?(ae=_e,U):ae},U.response=function(_e){return P=_e,U},["get","post"].forEach(function(_e){U[_e]=function(){return U.send.apply(U,[_e].concat(r(arguments)))}}),U.send=function(_e,Pe,De){if(arguments.length===2&&typeof Pe=="function"&&(De=Pe,Pe=null),X.open(_e,y,!0),M!=null&&!("accept"in $)&&($.accept=M+",*/*"),X.setRequestHeader)for(var Qe in $)X.setRequestHeader(Qe,$[Qe]);return M!=null&&X.overrideMimeType&&X.overrideMimeType(M),ae!=null&&(X.responseType=ae),De!=null&&U.on("error",De).on("load",function(st){De(null,st)}),Z.beforesend.call(U,X),X.send(Pe==null?null:Pe),U},U.abort=function(){return X.abort(),U},e.rebind(U,Z,"on"),N==null?U:U.get(xs(N))}function xs(y){return y.length===1?function(M,P){y(M==null?P:null)}:y}function Za(y){var M=y.responseType;return M&&M!=="text"?y.response:y.responseText}e.dsv=function(y,M){var P=new RegExp('["'+y+` ]`),N=y.charCodeAt(0);function U(ye,_e,Pe){arguments.length<3&&(Pe=_e,_e=null);var De=Co(ye,M,_e==null?Z:$(_e),Pe);return De.row=function(Qe){return arguments.length?De.response((_e=Qe)==null?Z:$(Qe)):_e},De}function Z(ye){return U.parse(ye.responseText)}function $(ye){return function(_e){return U.parse(_e.responseText,ye)}}U.parse=function(ye,_e){var Pe;return U.parseRows(ye,function(De,Qe){if(Pe)return Pe(De,Qe-1);var st=function(Ie){for(var Ve={},Ke=De.length,ct=0;ct=st)return De;if(ct)return ct=!1,Pe;var Ht=Ie;if(ye.charCodeAt(Ht)===34){for(var nr=Ht;nr++24?(isFinite(M)&&(clearTimeout(pl),pl=setTimeout(Nc,M)),Vi=0):(Vi=1,Qd(Nc))}e.timer.flush=function(){hv(),vv()};function hv(){for(var y=Date.now(),M=Kn;M;)y>=M.t&&M.c(y-M.t)&&(M.c=null),M=M.n;return y}function vv(){for(var y,M=Kn,P=1/0;M;)M.c?(M.t=0;--X)Ie.push(U[ye[Pe[X]][2]]);for(X=+Qe;X1&&Ua(y[P[N-2]],y[P[N-1]],y[U])<=0;)--N;P[N++]=U}return P.slice(0,N)}function Ku(y,M){return y[0]-M[0]||y[1]-M[1]}e.geom.polygon=function(y){return We(y,Zf),y};var Zf=e.geom.polygon.prototype=[];Zf.area=function(){for(var y=-1,M=this.length,P,N=this[M-1],U=0;++yGe)X=X.L;else if($=M-sn(X,P),$>Ge){if(!X.R){N=X;break}X=X.R}else{Z>-Ge?(N=X.P,U=X):$>-Ge?(N=X,U=X.N):N=U=X;break}var ae=oo(y);if(du.insert(N,ae),!(!N&&!U)){if(N===U){wa(N),U=oo(N.site),du.insert(ae,U),ae.edge=U.edge=Ws(N.site,ae.site),kr(N),kr(U);return}if(!U){ae.edge=Ws(N.site,ae.site);return}wa(N),wa(U);var ye=N.site,_e=ye.x,Pe=ye.y,De=y.x-_e,Qe=y.y-Pe,st=U.site,Ie=st.x-_e,Ve=st.y-Pe,Ke=2*(De*Ve-Qe*Ie),ct=De*De+Qe*Qe,ot=Ie*Ie+Ve*Ve,je={x:(Ve*ct-Qe*ot)/Ke+_e,y:(De*ot-Ie*ct)/Ke+Pe};us(U.edge,ye,st,je),ae.edge=Ws(ye,y,null,je),U.edge=Ws(y,st,null,je),kr(N),kr(U)}}function pu(y,M){var P=y.site,N=P.x,U=P.y,Z=U-M;if(!Z)return N;var $=y.P;if(!$)return-1/0;P=$.site;var X=P.x,ae=P.y,ye=ae-M;if(!ye)return X;var _e=X-N,Pe=1/Z-1/ye,De=_e/ye;return Pe?(-De+Math.sqrt(De*De-2*Pe*(_e*_e/(-2*ye)-ae+ye/2+U-Z/2)))/Pe+N:(N+X)/2}function sn(y,M){var P=y.N;if(P)return pu(P,M);var N=y.site;return N.y===M?N.x:1/0}function gl(y){this.site=y,this.edges=[]}gl.prototype.prepare=function(){for(var y=this.edges,M=y.length,P;M--;)P=y[M].edge,(!P.b||!P.a)&&y.splice(M,1);return y.sort($u),y.length};function xs(y){for(var M=y[0][0],P=y[1][0],N=y[0][1],U=y[1][1],Z,$,X,ae,ye=Go,_e=ye.length,Pe,De,Qe,st,Ie,Ve;_e--;)if(Pe=ye[_e],!(!Pe||!Pe.prepare()))for(Qe=Pe.edges,st=Qe.length,De=0;DeGe||I(ae-$)>Ge)&&(Qe.splice(De,0,new xl(mu(Pe.site,Ve,I(X-M)Ge?{x:M,y:I(Z-M)Ge?{x:I($-U)Ge?{x:P,y:I(Z-P)Ge?{x:I($-N)=-bt)){var De=ae*ae+ye*ye,Qe=_e*_e+Ve*Ve,st=(Ve*De-ye*Qe)/Pe,Ie=(ae*Qe-_e*De)/Pe,Ve=Ie+X,Ke=pv.pop()||new ef;Ke.arc=y,Ke.site=U,Ke.x=st+$,Ke.y=Ve+Math.sqrt(st*st+Ie*Ie),Ke.cy=Ve,y.circle=Ke;for(var ct=null,ot=Qu._;ot;)if(Ke.y0)){if(Ie/=Qe,Qe<0){if(Ie0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}if(Ie=P-X,!(!Qe&&Ie<0)){if(Ie/=Qe,Qe<0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}else if(Qe>0){if(Ie0)){if(Ie/=st,st<0){if(Ie0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}if(Ie=N-ae,!(!st&&Ie<0)){if(Ie/=st,st<0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}else if(st>0){if(Ie0&&(U.a={x:X+Pe*Qe,y:ae+Pe*st}),De<1&&(U.b={x:X+De*Qe,y:ae+De*st}),U}}}}}}function bs(y){for(var M=yl,P=Ta(y[0][0],y[0][1],y[1][0],y[1][1]),N=M.length,U;N--;)U=M[N],(!_l(U,y)||!P(U)||I(U.a.x-U.b.x)=Z)return;if(_e>De){if(!N)N={x:st,y:$};else if(N.y>=X)return;P={x:st,y:X}}else{if(!N)N={x:st,y:X};else if(N.y<$)return;P={x:st,y:$}}}else if(Ve=(_e-De)/(Qe-Pe),Ke=Ie-Ve*st,Ve<-1||Ve>1)if(_e>De){if(!N)N={x:($-Ke)/Ve,y:$};else if(N.y>=X)return;P={x:(X-Ke)/Ve,y:X}}else{if(!N)N={x:(X-Ke)/Ve,y:X};else if(N.y<$)return;P={x:($-Ke)/Ve,y:$}}else if(Pe=Z)return;P={x:Z,y:Ve*Z+Ke}}else{if(!N)N={x:Z,y:Ve*Z+Ke};else if(N.x=_e&&Ke.x<=De&&Ke.y>=Pe&&Ke.y<=Qe?[[_e,Qe],[De,Qe],[De,Pe],[_e,Pe]]:[];ct.point=ae[Ie]}),ye}function X(ae){return ae.map(function(ye,_e){return{x:Math.round(N(ye,_e)/Ge)*Ge,y:Math.round(U(ye,_e)/Ge)*Ge,i:_e}})}return $.links=function(ae){return yu(X(ae)).edges.filter(function(ye){return ye.l&&ye.r}).map(function(ye){return{source:ae[ye.l.i],target:ae[ye.r.i]}})},$.triangles=function(ae){var ye=[];return yu(X(ae)).cells.forEach(function(_e,Pe){for(var De=_e.site,Qe=_e.edges.sort($u),st=-1,Ie=Qe.length,Ve,Ke,ct=Qe[Ie-1].edge,ot=ct.l===De?ct.r:ct.l;++stot&&(ot=_e.x),_e.y>je&&(je=_e.y),Qe.push(_e.x),st.push(_e.y);else for(Ie=0;Ieot&&(ot=Ht),nr>je&&(je=nr),Qe.push(Ht),st.push(nr)}var cr=ot-Ke,ur=je-ct;cr>ur?je=ct+cr:ot=Ke+ur;function Dr(Ur,Kr,Na,ri,ei,Xt,Jr,oa){if(!(isNaN(Na)||isNaN(ri)))if(Ur.leaf){var sa=Ur.x,Pi=Ur.y;if(sa!=null)if(I(sa-Na)+I(Pi-ri)<.01)Ir(Ur,Kr,Na,ri,ei,Xt,Jr,oa);else{var Hi=Ur.point;Ur.x=Ur.y=Ur.point=null,Ir(Ur,Hi,sa,Pi,ei,Xt,Jr,oa),Ir(Ur,Kr,Na,ri,ei,Xt,Jr,oa)}else Ur.x=Na,Ur.y=ri,Ur.point=Kr}else Ir(Ur,Kr,Na,ri,ei,Xt,Jr,oa)}function Ir(Ur,Kr,Na,ri,ei,Xt,Jr,oa){var sa=(ei+Jr)*.5,Pi=(Xt+oa)*.5,Hi=Na>=sa,tn=ri>=Pi,wi=tn<<1|Hi;Ur.leaf=!1,Ur=Ur.nodes[wi]||(Ur.nodes[wi]=xn()),Hi?ei=sa:Jr=sa,tn?Xt=Pi:oa=Pi,Dr(Ur,Kr,Na,ri,ei,Xt,Jr,oa)}var ta=xn();if(ta.add=function(Ur){Dr(ta,Ur,+Pe(Ur,++Ie),+De(Ur,Ie),Ke,ct,ot,je)},ta.visit=function(Ur){Pn(Ur,ta,Ke,ct,ot,je)},ta.find=function(Ur){return rp(ta,Ur[0],Ur[1],Ke,ct,ot,je)},Ie=-1,M==null){for(;++IeZ||De>$||Qe=Ht,ur=P>=nr,Dr=ur<<1|cr,Ir=Dr+4;DrP&&(Z=M.slice(P,Z),X[$]?X[$]+=Z:X[++$]=Z),(N=N[0])===(U=U[0])?X[$]?X[$]+=U:X[++$]=U:(X[++$]=null,ae.push({i:$,x:Eo(N,U)})),P=Xf.lastIndex;return P=0&&!(N=e.interpolators[P](y,M)););return N}e.interpolators=[function(y,M){var P=typeof M;return(P==="string"?si.has(M.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(M)?tf:Zo:M instanceof ga?tf:Array.isArray(M)?Yo:P==="object"&&isNaN(M)?ln:Eo)(y,M)}],e.interpolateArray=Yo;function Yo(y,M){var P=[],N=[],U=y.length,Z=M.length,$=Math.min(y.length,M.length),X;for(X=0;X<$;++X)P.push(un(y[X],M[X]));for(;X=0?y.slice(0,M):y,N=M>=0?y.slice(M+1):"in";return P=Sm.get(P)||Xs,N=Wo.get(N)||Me,km(N(P.apply(null,t.call(arguments,1))))};function km(y){return function(M){return M<=0?0:M>=1?1:y(M)}}function js(y){return function(M){return 1-y(1-M)}}function zn(y){return function(M){return .5*(M<.5?y(2*M):2-y(2-2*M))}}function Cm(y){return y*y}function bl(y){return y*y*y}function wl(y){if(y<=0)return 0;if(y>=1)return 1;var M=y*y,P=M*y;return 4*(y<.5?P:3*(y-M)+P-.75)}function gv(y){return function(M){return Math.pow(M,y)}}function Em(y){return 1-Math.cos(y*mr)}function Lm(y){return Math.pow(2,10*(y-1))}function Oc(y){return 1-Math.sqrt(1-y*y)}function Dm(y,M){var P;return arguments.length<2&&(M=.45),arguments.length?P=M/gr*Math.asin(1/y):(y=1,P=M/4),function(N){return 1+y*Math.pow(2,-10*N)*Math.sin((N-P)*gr/M)}}function Pm(y){return y||(y=1.70158),function(M){return M*M*((y+1)*M-y)}}function zm(y){return y<1/2.75?7.5625*y*y:y<2/2.75?7.5625*(y-=1.5/2.75)*y+.75:y<2.5/2.75?7.5625*(y-=2.25/2.75)*y+.9375:7.5625*(y-=2.625/2.75)*y+.984375}e.interpolateHcl=_v;function _v(y,M){y=e.hcl(y),M=e.hcl(M);var P=y.h,N=y.c,U=y.l,Z=M.h-P,$=M.c-N,X=M.l-U;return isNaN($)&&($=0,N=isNaN(N)?M.c:N),isNaN(Z)?(Z=0,P=isNaN(P)?M.h:P):Z>180?Z-=360:Z<-180&&(Z+=360),function(ae){return Ne(P+Z*ae,N+$*ae,U+X*ae)+""}}e.interpolateHsl=Im;function Im(y,M){y=e.hsl(y),M=e.hsl(M);var P=y.h,N=y.s,U=y.l,Z=M.h-P,$=M.s-N,X=M.l-U;return isNaN($)&&($=0,N=isNaN(N)?M.s:N),isNaN(Z)?(Z=0,P=isNaN(P)?M.h:P):Z>180?Z-=360:Z<-180&&(Z+=360),function(ae){return se(P+Z*ae,N+$*ae,U+X*ae)+""}}e.interpolateLab=Rm;function Rm(y,M){y=e.lab(y),M=e.lab(M);var P=y.l,N=y.a,U=y.b,Z=M.l-P,$=M.a-N,X=M.b-U;return function(ae){return Yt(P+Z*ae,N+$*ae,U+X*ae)+""}}e.interpolateRound=xv;function xv(y,M){return M-=y,function(P){return Math.round(y+M*P)}}e.transform=function(y){var M=i.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(P){if(P!=null){M.setAttribute("transform",P);var N=M.transform.baseVal.consolidate()}return new ap(N?N.matrix:wv)})(y)};function ap(y){var M=[y.a,y.b],P=[y.c,y.d],N=bv(M),U=ip(M,P),Z=bv(Fm(P,M,-U))||0;M[0]*P[1]180?M+=360:M-y>180&&(y+=360),N.push({i:P.push(gu(P)+"rotate(",null,")")-2,x:Eo(y,M)})):M&&P.push(gu(P)+"rotate("+M+")")}function op(y,M,P,N){y!==M?N.push({i:P.push(gu(P)+"skewX(",null,")")-2,x:Eo(y,M)}):M&&P.push(gu(P)+"skewX("+M+")")}function sp(y,M,P,N){if(y[0]!==M[0]||y[1]!==M[1]){var U=P.push(gu(P)+"scale(",null,",",null,")");N.push({i:U-4,x:Eo(y[0],M[0])},{i:U-2,x:Eo(y[1],M[1])})}else(M[0]!==1||M[1]!==1)&&P.push(gu(P)+"scale("+M+")")}function lp(y,M){var P=[],N=[];return y=e.transform(y),M=e.transform(M),np(y.translate,M.translate,P,N),qm(y.rotate,M.rotate,P,N),op(y.skew,M.skew,P,N),sp(y.scale,M.scale,P,N),y=M=null,function(U){for(var Z=-1,$=N.length,X;++Z<$;)P[(X=N[Z]).i]=X.x(U);return P.join("")}}function Nm(y,M){return M=(M-=y=+y)||1/M,function(P){return(P-y)/M}}function cs(y,M){return M=(M-=y=+y)||1/M,function(P){return Math.max(0,Math.min(1,(P-y)/M))}}e.layout={},e.layout.bundle=function(){return function(y){for(var M=[],P=-1,N=y.length;++P0?Z=je:(P.c=null,P.t=NaN,P=null,M.end({type:"end",alpha:Z=0})):je>0&&(M.start({type:"start",alpha:Z=je}),P=qc(y.tick)),y):Z},y.start=function(){var je,Ht=Qe.length,nr=st.length,cr=N[0],ur=N[1],Dr,Ir;for(je=0;je=0;)Z.push(_e=ye[ae]),_e.parent=X,_e.depth=X.depth+1;P&&(X.value=0),X.children=ye}else P&&(X.value=+P.call(N,X,X.depth)||0),delete X.children;return hs(U,function(Pe){var De,Qe;y&&(De=Pe.children)&&De.sort(y),P&&(Qe=Pe.parent)&&(Qe.value+=Pe.value)}),$}return N.sort=function(U){return arguments.length?(y=U,N):y},N.children=function(U){return arguments.length?(M=U,N):M},N.value=function(U){return arguments.length?(P=U,N):P},N.revalue=function(U){return P&&(rf(U,function(Z){Z.children&&(Z.value=0)}),hs(U,function(Z){var $;Z.children||(Z.value=+P.call(N,Z,Z.depth)||0),($=Z.parent)&&($.value+=Z.value)})),U},N};function Sl(y,M){return e.rebind(y,M,"sort","children","value"),y.nodes=y,y.links=cp,y}function rf(y,M){for(var P=[y];(y=P.pop())!=null;)if(M(y),(U=y.children)&&(N=U.length))for(var N,U;--N>=0;)P.push(U[N])}function hs(y,M){for(var P=[y],N=[];(y=P.pop())!=null;)if(N.push(y),($=y.children)&&(Z=$.length))for(var U=-1,Z,$;++UU&&(U=X),N.push(X)}for($=0;$N&&(P=M,N=U);return P}function Ni(y){return y.reduce(Hm,0)}function Hm(y,M){return y+M[1]}e.layout.histogram=function(){var y=!0,M=Number,P=dp,N=Zc;function U(Z,De){for(var X=[],ae=Z.map(M,this),ye=P.call(this,ae,De),_e=N.call(this,ye,ae,De),Pe,De=-1,Qe=ae.length,st=_e.length-1,Ie=y?1:1/Qe,Ve;++De0)for(De=-1;++De=ye[0]&&Ve<=ye[1]&&(Pe=X[e.bisect(_e,Ve,1,st)-1],Pe.y+=Ie,Pe.push(Z[De]));return X}return U.value=function(Z){return arguments.length?(M=Z,U):M},U.range=function(Z){return arguments.length?(P=fa(Z),U):P},U.bins=function(Z){return arguments.length?(N=typeof Z=="number"?function($){return kv($,Z)}:fa(Z),U):N},U.frequency=function(Z){return arguments.length?(y=!!Z,U):y},U};function Zc(y,M){return kv(y,Math.ceil(Math.log(M.length)/Math.LN2+1))}function kv(y,M){for(var P=-1,N=+y[0],U=(y[1]-N)/M,Z=[];++P<=M;)Z[P]=U*P+N;return Z}function dp(y){return[e.min(y),e.max(y)]}e.layout.pack=function(){var y=e.layout.hierarchy().sort(nf),M=0,P=[1,1],N;function U(Z,$){var X=y.call(this,Z,$),ae=X[0],ye=P[0],_e=P[1],Pe=N==null?Math.sqrt:typeof N=="function"?N:function(){return N};if(ae.x=ae.y=0,hs(ae,function(Qe){Qe.r=+Pe(Qe.value)}),hs(ae,Jf),M){var De=M*(N?1:Math.max(2*ae.r/ye,2*ae.r/_e))/2;hs(ae,function(Qe){Qe.r+=De}),hs(ae,Jf),hs(ae,function(Qe){Qe.r-=De})}return Cl(ae,ye/2,_e/2,N?1:1/Math.max(2*ae.r/ye,2*ae.r/_e)),X}return U.size=function(Z){return arguments.length?(P=Z,U):P},U.radius=function(Z){return arguments.length?(N=Z==null||typeof Z=="function"?Z:+Z,U):N},U.padding=function(Z){return arguments.length?(M=+Z,U):M},Sl(U,y)};function nf(y,M){return y.value-M.value}function _u(y,M){var P=y._pack_next;y._pack_next=M,M._pack_prev=y,M._pack_next=P,P._pack_prev=M}function Cv(y,M){y._pack_next=M,M._pack_prev=y}function bn(y,M){var P=M.x-y.x,N=M.y-y.y,U=y.r+M.r;return .999*U*U>P*P+N*N}function Jf(y){if(!(M=y.children)||!(De=M.length))return;var M,P=1/0,N=-1/0,U=1/0,Z=-1/0,$,X,ae,ye,_e,Pe,De;function Qe(je){P=Math.min(je.x-je.r,P),N=Math.max(je.x+je.r,N),U=Math.min(je.y-je.r,U),Z=Math.max(je.y+je.r,Z)}if(M.forEach(Js),$=M[0],$.x=-$.r,$.y=0,Qe($),De>1&&(X=M[1],X.x=X.r,X.y=0,Qe(X),De>2))for(ae=M[2],El($,X,ae),Qe(ae),_u($,ae),$._pack_prev=ae,_u(ae,X),X=$._pack_next,ye=3;yeVe.x&&(Ve=Ht),Ht.depth>Ke.depth&&(Ke=Ht)});var ct=M(Ie,Ve)/2-Ie.x,ot=P[0]/(Ve.x+M(Ve,Ie)/2+ct),je=P[1]/(Ke.depth||1);rf(Qe,function(Ht){Ht.x=(Ht.x+ct)*ot,Ht.y=Ht.depth*je})}return De}function Z(_e){for(var Pe={A:null,children:[_e]},De=[Pe],Qe;(Qe=De.pop())!=null;)for(var st=Qe.children,Ie,Ve=0,Ke=st.length;Ve0&&(Ll(Gm(Ie,_e,De),_e,Ht),Ke+=Ht,ct+=Ht),ot+=Ie.m,Ke+=Qe.m,je+=Ve.m,ct+=st.m;Ie&&!Ms(st)&&(st.t=Ie,st.m+=ot-ct),Qe&&!As(Ve)&&(Ve.t=Qe,Ve.m+=Ke-je,De=_e)}return De}function ye(_e){_e.x*=P[0],_e.y=_e.depth*P[1]}return U.separation=function(_e){return arguments.length?(M=_e,U):M},U.size=function(_e){return arguments.length?(N=(P=_e)==null?ye:null,U):N?null:P},U.nodeSize=function(_e){return arguments.length?(N=(P=_e)==null?null:ye,U):N?P:null},Sl(U,y)};function Ks(y,M){return y.parent==M.parent?1:2}function As(y){var M=y.children;return M.length?M[0]:y.t}function Ms(y){var M=y.children,P;return(P=M.length)?M[P-1]:y.t}function Ll(y,M,P){var N=P/(M.i-y.i);M.c-=N,M.s+=P,y.c+=N,M.z+=P,M.m+=P}function pp(y){for(var M=0,P=0,N=y.children,U=N.length,Z;--U>=0;)Z=N[U],Z.z+=M,Z.m+=M,M+=Z.s+(P+=Z.c)}function Gm(y,M,P){return y.a.parent===M.parent?y.a:P}e.layout.cluster=function(){var y=e.layout.hierarchy().sort(null).value(null),M=Ks,P=[1,1],N=!1;function U(Z,$){var X=y.call(this,Z,$),ae=X[0],ye,_e=0;hs(ae,function(Ie){var Ve=Ie.children;Ve&&Ve.length?(Ie.x=Ym(Ve),Ie.y=Zm(Ve)):(Ie.x=ye?_e+=M(Ie,ye):0,Ie.y=0,ye=Ie)});var Pe=mp(ae),De=yp(ae),Qe=Pe.x-M(Pe,De)/2,st=De.x+M(De,Pe)/2;return hs(ae,N?function(Ie){Ie.x=(Ie.x-ae.x)*P[0],Ie.y=(ae.y-Ie.y)*P[1]}:function(Ie){Ie.x=(Ie.x-Qe)/(st-Qe)*P[0],Ie.y=(1-(ae.y?Ie.y/ae.y:1))*P[1]}),X}return U.separation=function(Z){return arguments.length?(M=Z,U):M},U.size=function(Z){return arguments.length?(N=(P=Z)==null,U):N?null:P},U.nodeSize=function(Z){return arguments.length?(N=(P=Z)!=null,U):N?P:null},Sl(U,y)};function Zm(y){return 1+e.max(y,function(M){return M.y})}function Ym(y){return y.reduce(function(M,P){return M+P.x},0)/y.length}function mp(y){var M=y.children;return M&&M.length?mp(M[0]):y}function yp(y){var M=y.children,P;return M&&(P=M.length)?yp(M[P-1]):y}e.layout.treemap=function(){var y=e.layout.hierarchy(),M=Math.round,P=[1,1],N=null,U=Ev,Z=!1,$,X="squarify",ae=.5*(1+Math.sqrt(5));function ye(Ie,Ve){for(var Ke=-1,ct=Ie.length,ot,je;++Ke0;)ct.push(je=ot[ur-1]),ct.area+=je.area,X!=="squarify"||(nr=De(ct,cr))<=Ht?(ot.pop(),Ht=nr):(ct.area-=ct.pop().area,Qe(ct,cr,Ke,!1),cr=Math.min(Ke.dx,Ke.dy),ct.length=ct.area=0,Ht=1/0);ct.length&&(Qe(ct,cr,Ke,!0),ct.length=ct.area=0),Ve.forEach(_e)}}function Pe(Ie){var Ve=Ie.children;if(Ve&&Ve.length){var Ke=U(Ie),ct=Ve.slice(),ot,je=[];for(ye(ct,Ke.dx*Ke.dy/Ie.value),je.area=0;ot=ct.pop();)je.push(ot),je.area+=ot.area,ot.z!=null&&(Qe(je,ot.z?Ke.dx:Ke.dy,Ke,!ct.length),je.length=je.area=0);Ve.forEach(Pe)}}function De(Ie,Ve){for(var Ke=Ie.area,ct,ot=0,je=1/0,Ht=-1,nr=Ie.length;++Htot&&(ot=ct));return Ke*=Ke,Ve*=Ve,Ke?Math.max(Ve*ot*ae/Ke,Ke/(Ve*je*ae)):1/0}function Qe(Ie,Ve,Ke,ct){var ot=-1,je=Ie.length,Ht=Ke.x,nr=Ke.y,cr=Ve?M(Ie.area/Ve):0,ur;if(Ve==Ke.dx){for((ct||cr>Ke.dy)&&(cr=Ke.dy);++otKe.dx)&&(cr=Ke.dx);++ot1);return y+M*N*Math.sqrt(-2*Math.log(Z)/Z)}},logNormal:function(){var y=e.random.normal.apply(e,arguments);return function(){return Math.exp(y())}},bates:function(y){var M=e.random.irwinHall(y);return function(){return M()/y}},irwinHall:function(y){return function(){for(var M=0,P=0;P2?Wm:gp,ye=N?cs:Nm;return U=ae(y,M,ye,P),Z=ae(M,y,ye,un),X}function X(ae){return U(ae)}return X.invert=function(ae){return Z(ae)},X.domain=function(ae){return arguments.length?(y=ae.map(Number),$()):y},X.range=function(ae){return arguments.length?(M=ae,$()):M},X.rangeRound=function(ae){return X.range(ae).interpolate(xv)},X.clamp=function(ae){return arguments.length?(N=ae,$()):N},X.interpolate=function(ae){return arguments.length?(P=ae,$()):P},X.ticks=function(ae){return zv(y,ae)},X.tickFormat=function(ae,ye){return d3_scale_linearTickFormat(y,ae,ye)},X.nice=function(ae){return wp(y,ae),$()},X.copy=function(){return xp(y,M,P,N)},$()}function bp(y,M){return e.rebind(y,M,"range","rangeRound","interpolate","clamp")}function wp(y,M){return Dv(y,_p(Pv(y,M)[2])),Dv(y,_p(Pv(y,M)[2])),y}function Pv(y,M){M==null&&(M=10);var P=Kf(y),N=P[1]-P[0],U=Math.pow(10,Math.floor(Math.log(N/M)/Math.LN10)),Z=M/N*U;return Z<=.15?U*=10:Z<=.35?U*=5:Z<=.75&&(U*=2),P[0]=Math.ceil(P[0]/U)*U,P[1]=Math.floor(P[1]/U)*U+U*.5,P[2]=U,P}function zv(y,M){return e.range.apply(e,Pv(y,M))}var xu={s:1,g:1,p:1,r:1,e:1};function Dl(y){return-Math.floor(Math.log(y)/Math.LN10+.01)}function Qf(y,M){var P=Dl(M[2]);return y in xu?Math.abs(P-Dl(Math.max(I(M[0]),I(M[1]))))+ +(y!=="e"):P-(y==="%")*2}e.scale.log=function(){return Iv(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Iv(y,M,P,N){function U(X){return(P?Math.log(X<0?0:X):-Math.log(X>0?0:-X))/Math.log(M)}function Z(X){return P?Math.pow(M,X):-Math.pow(M,-X)}function $(X){return y(U(X))}return $.invert=function(X){return Z(y.invert(X))},$.domain=function(X){return arguments.length?(P=X[0]>=0,y.domain((N=X.map(Number)).map(U)),$):N},$.base=function(X){return arguments.length?(M=+X,y.domain(N.map(U)),$):M},$.nice=function(){var X=Dv(N.map(U),P?Math:Wc);return y.domain(X),N=X.map(Z),$},$.ticks=function(){var X=Kf(N),ae=[],ye=X[0],_e=X[1],Pe=Math.floor(U(ye)),De=Math.ceil(U(_e)),Qe=M%1?2:M;if(isFinite(De-Pe)){if(P){for(;Pe0;st--)ae.push(Z(Pe)*st);for(Pe=0;ae[Pe]_e;De--);ae=ae.slice(Pe,De)}return ae},$.copy=function(){return Iv(y.copy(),M,P,N)},bp($,y)}var Wc={floor:function(y){return-Math.ceil(-y)},ceil:function(y){return-Math.floor(-y)}};e.scale.pow=function(){return Xc(e.scale.linear(),1,[0,1])};function Xc(y,M,P){var N=jc(M),U=jc(1/M);function Z($){return y(N($))}return Z.invert=function($){return U(y.invert($))},Z.domain=function($){return arguments.length?(y.domain((P=$.map(Number)).map(N)),Z):P},Z.ticks=function($){return zv(P,$)},Z.tickFormat=function($,X){return d3_scale_linearTickFormat(P,$,X)},Z.nice=function($){return Z.domain(wp(P,$))},Z.exponent=function($){return arguments.length?(N=jc(M=$),U=jc(1/M),y.domain(P.map(N)),Z):M},Z.copy=function(){return Xc(y.copy(),M,P)},bp(Z,y)}function jc(y){return function(M){return M<0?-Math.pow(-M,y):Math.pow(M,y)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Pl([],{t:"range",a:[[]]})};function Pl(y,M){var P,N,U;function Z(X){return N[((P.get(X)||(M.t==="range"?P.set(X,y.push(X)):NaN))-1)%N.length]}function $(X,ae){return e.range(y.length).map(function(ye){return X+ae*ye})}return Z.domain=function(X){if(!arguments.length)return y;y=[],P=new z;for(var ae=-1,ye=X.length,_e;++ae0?P[Z-1]:y[0],ZDe?0:1;if(_e=xr)return ae(_e,st)+(ye?ae(ye,1-st):"")+"Z";var Ie,Ve,Ke,ct,ot=0,je=0,Ht,nr,cr,ur,Dr,Ir,ta,Ur,Kr=[];if((ct=(+$.apply(this,arguments)||0)/2)&&(Ke=N===zl?Math.sqrt(ye*ye+_e*_e):+N.apply(this,arguments),st||(je*=-1),_e&&(je=qi(Ke/_e*Math.sin(ct))),ye&&(ot=qi(Ke/ye*Math.sin(ct)))),_e){Ht=_e*Math.cos(Pe+je),nr=_e*Math.sin(Pe+je),cr=_e*Math.cos(De-je),ur=_e*Math.sin(De-je);var Na=Math.abs(De-Pe-2*je)<=dt?0:1;if(je&&Il(Ht,nr,cr,ur)===st^Na){var ri=(Pe+De)/2;Ht=_e*Math.cos(ri),nr=_e*Math.sin(ri),cr=ur=null}}else Ht=nr=0;if(ye){Dr=ye*Math.cos(De-ot),Ir=ye*Math.sin(De-ot),ta=ye*Math.cos(Pe+ot),Ur=ye*Math.sin(Pe+ot);var ei=Math.abs(Pe-De+2*ot)<=dt?0:1;if(ot&&Il(Dr,Ir,ta,Ur)===1-st^ei){var Xt=(Pe+De)/2;Dr=ye*Math.cos(Xt),Ir=ye*Math.sin(Xt),ta=Ur=null}}else Dr=Ir=0;if(Qe>Ge&&(Ie=Math.min(Math.abs(_e-ye)/2,+P.apply(this,arguments)))>.001){Ve=ye<_e^st?0:1;var Jr=Ie,oa=Ie;if(Qe0?0:1}function wu(y,M,P,N,U){var Z=y[0]-M[0],$=y[1]-M[1],X=(U?N:-N)/Math.sqrt(Z*Z+$*$),ae=X*$,ye=-X*Z,_e=y[0]+ae,Pe=y[1]+ye,De=M[0]+ae,Qe=M[1]+ye,st=(_e+De)/2,Ie=(Pe+Qe)/2,Ve=De-_e,Ke=Qe-Pe,ct=Ve*Ve+Ke*Ke,ot=P-N,je=_e*Qe-De*Pe,Ht=(Ke<0?-1:1)*Math.sqrt(Math.max(0,ot*ot*ct-je*je)),nr=(je*Ke-Ve*Ht)/ct,cr=(-je*Ve-Ke*Ht)/ct,ur=(je*Ke+Ve*Ht)/ct,Dr=(-je*Ve+Ke*Ht)/ct,Ir=nr-st,ta=cr-Ie,Ur=ur-st,Kr=Dr-Ie;return Ir*Ir+ta*ta>Ur*Ur+Kr*Kr&&(nr=ur,cr=Dr),[[nr-ae,cr-ye],[nr*P/ot,cr*P/ot]]}function ec(){return!0}function Ss(y){var M=vu,P=ml,N=ec,U=Xo,Z=U.key,$=.7;function X(ae){var ye=[],_e=[],Pe=-1,De=ae.length,Qe,st=fa(M),Ie=fa(P);function Ve(){ye.push("M",U(y(_e),$))}for(;++Pe1?y.join("L"):y+"Z"}function lf(y){return y.join("L")+"Z"}function jm(y){for(var M=0,P=y.length,N=y[0],U=[N[0],",",N[1]];++M1&&U.push("H",N[0]),U.join("")}function uf(y){for(var M=0,P=y.length,N=y[0],U=[N[0],",",N[1]];++M1){X=M[1],Z=y[ae],ae++,N+="C"+(U[0]+$[0])+","+(U[1]+$[1])+","+(Z[0]-X[0])+","+(Z[1]-X[1])+","+Z[0]+","+Z[1];for(var ye=2;ye9&&(Z=P*3/Math.sqrt(Z),$[X]=Z*N,$[X+1]=Z*U));for(X=-1;++X<=ae;)Z=(y[Math.min(ae,X+1)][0]-y[Math.max(0,X-1)][0])/(6*(1+$[X]*$[X])),M.push([Z||0,$[X]*Z||0]);return M}function Lp(y){return y.length<3?Xo(y):y[0]+ff(y,$m(y))}e.svg.line.radial=function(){var y=Ss(Bv);return y.radius=y.x,delete y.x,y.angle=y.y,delete y.y,y};function Bv(y){for(var M,P=-1,N=y.length,U,Z;++Pdt)+",1 "+Pe}function ye(_e,Pe,De,Qe){return"Q 0,0 "+Qe}return Z.radius=function(_e){return arguments.length?(P=fa(_e),Z):P},Z.source=function(_e){return arguments.length?(y=fa(_e),Z):y},Z.target=function(_e){return arguments.length?(M=fa(_e),Z):M},Z.startAngle=function(_e){return arguments.length?(N=fa(_e),Z):N},Z.endAngle=function(_e){return arguments.length?(U=fa(_e),Z):U},Z};function Dp(y){return y.radius}e.svg.diagonal=function(){var y=eh,M=Ov,P=Uv;function N(U,Z){var $=y.call(this,U,Z),X=M.call(this,U,Z),ae=($.y+X.y)/2,ye=[$,{x:$.x,y:ae},{x:X.x,y:ae},X];return ye=ye.map(P),"M"+ye[0]+"C"+ye[1]+" "+ye[2]+" "+ye[3]}return N.source=function(U){return arguments.length?(y=fa(U),N):y},N.target=function(U){return arguments.length?(M=fa(U),N):M},N.projection=function(U){return arguments.length?(P=U,N):P},N};function Uv(y){return[y.x,y.y]}e.svg.diagonal.radial=function(){var y=e.svg.diagonal(),M=Uv,P=y.projection;return y.projection=function(N){return arguments.length?P(Pp(M=N)):M},y};function Pp(y){return function(){var M=y.apply(this,arguments),P=M[0],N=M[1]-mr;return[P*Math.cos(N),P*Math.sin(N)]}}e.svg.symbol=function(){var y=df,M=zp;function P(N,U){return(rh.get(y.call(this,N,U))||th)(M.call(this,N,U))}return P.type=function(N){return arguments.length?(y=fa(N),P):y},P.size=function(N){return arguments.length?(M=fa(N),P):M},P};function zp(){return 64}function df(){return"circle"}function th(y){var M=Math.sqrt(y/dt);return"M0,"+M+"A"+M+","+M+" 0 1,1 0,"+-M+"A"+M+","+M+" 0 1,1 0,"+M+"Z"}var rh=e.map({circle:th,cross:function(y){var M=Math.sqrt(y/5)/2;return"M"+-3*M+","+-M+"H"+-M+"V"+-3*M+"H"+M+"V"+-M+"H"+3*M+"V"+M+"H"+M+"V"+3*M+"H"+-M+"V"+M+"H"+-3*M+"Z"},diamond:function(y){var M=Math.sqrt(y/(2*Vv)),P=M*Vv;return"M0,"+-M+"L"+P+",0 0,"+M+" "+-P+",0Z"},square:function(y){var M=Math.sqrt(y)/2;return"M"+-M+","+-M+"L"+M+","+-M+" "+M+","+M+" "+-M+","+M+"Z"},"triangle-down":function(y){var M=Math.sqrt(y/Au),P=M*Au/2;return"M0,"+P+"L"+M+","+-P+" "+-M+","+-P+"Z"},"triangle-up":function(y){var M=Math.sqrt(y/Au),P=M*Au/2;return"M0,"+-P+"L"+M+","+P+" "+-M+","+P+"Z"}});e.svg.symbolTypes=rh.keys();var Au=Math.sqrt(3),Vv=Math.tan(30*Hr);vt.transition=function(y){for(var M=so||++Di,P=fi(y),N=[],U,Z,$=Cs||{time:Date.now(),ease:wl,delay:0,duration:250},X=-1,ae=this.length;++X0;)Pe[--ct].call(y,Ke);if(Ve>=1)return $.event&&$.event.end.call(y,y.__data__,M),--Z.count?delete Z[N]:delete y[P],1}$||(X=U.time,ae=qc(De,0,X),$=Z[N]={tween:new z,time:X,timer:ae,delay:U.delay,duration:U.duration,ease:U.ease,index:M},U=null,++Z.count)}e.svg.axis=function(){var y=e.scale.linear(),M=Fl,P=6,N=6,U=3,Z=[10],$=null,X;function ae(ye){ye.each(function(){var _e=e.select(this),Pe=this.__chart__||y,De=this.__chart__=y.copy(),Qe=$==null?De.ticks?De.ticks.apply(De,Z):De.domain():$,st=X==null?De.tickFormat?De.tickFormat.apply(De,Z):Me:X,Ie=_e.selectAll(".tick").data(Qe,De),Ve=Ie.enter().insert("g",".domain").attr("class","tick").style("opacity",Ge),Ke=e.transition(Ie.exit()).style("opacity",Ge).remove(),ct=e.transition(Ie.order()).style("opacity",1),ot=Math.max(P,0)+U,je,Ht=Yc(De),nr=_e.selectAll(".domain").data([0]),cr=(nr.enter().append("path").attr("class","domain"),e.transition(nr));Ve.append("line"),Ve.append("text");var ur=Ve.select("line"),Dr=ct.select("line"),Ir=Ie.select("text").text(st),ta=Ve.select("text"),Ur=ct.select("text"),Kr=M==="top"||M==="left"?-1:1,Na,ri,ei,Xt;if(M==="bottom"||M==="top"?(je=mf,Na="x",ei="y",ri="x2",Xt="y2",Ir.attr("dy",Kr<0?"0em":".71em").style("text-anchor","middle"),cr.attr("d","M"+Ht[0]+","+Kr*N+"V0H"+Ht[1]+"V"+Kr*N)):(je=ql,Na="y",ei="x",ri="y2",Xt="x2",Ir.attr("dy",".32em").style("text-anchor",Kr<0?"end":"start"),cr.attr("d","M"+Kr*N+","+Ht[0]+"H0V"+Ht[1]+"H"+Kr*N)),ur.attr(Xt,Kr*P),ta.attr(ei,Kr*ot),Dr.attr(ri,0).attr(Xt,Kr*P),Ur.attr(Na,0).attr(ei,Kr*ot),De.rangeBand){var Jr=De,oa=Jr.rangeBand()/2;Pe=De=function(sa){return Jr(sa)+oa}}else Pe.rangeBand?Pe=De:Ke.call(je,De,Pe);Ve.call(je,Pe,De),ct.call(je,De,De)})}return ae.scale=function(ye){return arguments.length?(y=ye,ae):y},ae.orient=function(ye){return arguments.length?(M=ye in rc?ye+"":Fl,ae):M},ae.ticks=function(){return arguments.length?(Z=r(arguments),ae):Z},ae.tickValues=function(ye){return arguments.length?($=ye,ae):$},ae.tickFormat=function(ye){return arguments.length?(X=ye,ae):X},ae.tickSize=function(ye){var _e=arguments.length;return _e?(P=+ye,N=+arguments[_e-1],ae):P},ae.innerTickSize=function(ye){return arguments.length?(P=+ye,ae):P},ae.outerTickSize=function(ye){return arguments.length?(N=+ye,ae):N},ae.tickPadding=function(ye){return arguments.length?(U=+ye,ae):U},ae.tickSubdivide=function(){return arguments.length&&ae},ae};var Fl="bottom",rc={top:1,right:1,bottom:1,left:1};function mf(y,M,P){y.attr("transform",function(N){var U=M(N);return"translate("+(isFinite(U)?U:P(N))+",0)"})}function ql(y,M,P){y.attr("transform",function(N){var U=M(N);return"translate(0,"+(isFinite(U)?U:P(N))+")"})}e.svg.brush=function(){var y=it(_e,"brushstart","brush","brushend"),M=null,P=null,N=[0,0],U=[0,0],Z,$,X=!0,ae=!0,ye=nh[0];function _e(Ie){Ie.each(function(){var Ve=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",st).on("touchstart.brush",st),Ke=Ve.selectAll(".background").data([0]);Ke.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ve.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ct=Ve.selectAll(".resize").data(ye,Me);ct.exit().remove(),ct.enter().append("g").attr("class",function(nr){return"resize "+nr}).style("cursor",function(nr){return Es[nr]}).append("rect").attr("x",function(nr){return/[ew]$/.test(nr)?-3:null}).attr("y",function(nr){return/^[ns]/.test(nr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ct.style("display",_e.empty()?"none":null);var ot=e.transition(Ve),je=e.transition(Ke),Ht;M&&(Ht=Yc(M),je.attr("x",Ht[0]).attr("width",Ht[1]-Ht[0]),De(ot)),P&&(Ht=Yc(P),je.attr("y",Ht[0]).attr("height",Ht[1]-Ht[0]),Qe(ot)),Pe(ot)})}_e.event=function(Ie){Ie.each(function(){var Ve=y.of(this,arguments),Ke={x:N,y:U,i:Z,j:$},ct=this.__chart__||Ke;this.__chart__=Ke,so?e.select(this).transition().each("start.brush",function(){Z=ct.i,$=ct.j,N=ct.x,U=ct.y,Ve({type:"brushstart"})}).tween("brush:brush",function(){var ot=Yo(N,Ke.x),je=Yo(U,Ke.y);return Z=$=null,function(Ht){N=Ke.x=ot(Ht),U=Ke.y=je(Ht),Ve({type:"brush",mode:"resize"})}}).each("end.brush",function(){Z=Ke.i,$=Ke.j,Ve({type:"brush",mode:"resize"}),Ve({type:"brushend"})}):(Ve({type:"brushstart"}),Ve({type:"brush",mode:"resize"}),Ve({type:"brushend"}))})};function Pe(Ie){Ie.selectAll(".resize").attr("transform",function(Ve){return"translate("+N[+/e$/.test(Ve)]+","+U[+/^s/.test(Ve)]+")"})}function De(Ie){Ie.select(".extent").attr("x",N[0]),Ie.selectAll(".extent,.n>rect,.s>rect").attr("width",N[1]-N[0])}function Qe(Ie){Ie.select(".extent").attr("y",U[0]),Ie.selectAll(".extent,.e>rect,.w>rect").attr("height",U[1]-U[0])}function st(){var Ie=this,Ve=e.select(e.event.target),Ke=y.of(Ie,arguments),ct=e.select(Ie),ot=Ve.datum(),je=!/^(n|s)$/.test(ot)&&M,Ht=!/^(e|w)$/.test(ot)&&P,nr=Ve.classed("extent"),cr=zr(Ie),ur,Dr=e.mouse(Ie),Ir,ta=e.select(s(Ie)).on("keydown.brush",Na).on("keyup.brush",ri);if(e.event.changedTouches?ta.on("touchmove.brush",ei).on("touchend.brush",Jr):ta.on("mousemove.brush",ei).on("mouseup.brush",Jr),ct.interrupt().selectAll("*").interrupt(),nr)Dr[0]=N[0]-Dr[0],Dr[1]=U[0]-Dr[1];else if(ot){var Ur=+/w$/.test(ot),Kr=+/^n/.test(ot);Ir=[N[1-Ur]-Dr[0],U[1-Kr]-Dr[1]],Dr[0]=N[Ur],Dr[1]=U[Kr]}else e.event.altKey&&(ur=Dr.slice());ct.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ve.style("cursor")),Ke({type:"brushstart"}),ei();function Na(){e.event.keyCode==32&&(nr||(ur=null,Dr[0]-=N[1],Dr[1]-=U[1],nr=2),$e())}function ri(){e.event.keyCode==32&&nr==2&&(Dr[0]+=N[1],Dr[1]+=U[1],nr=0,$e())}function ei(){var oa=e.mouse(Ie),sa=!1;Ir&&(oa[0]+=Ir[0],oa[1]+=Ir[1]),nr||(e.event.altKey?(ur||(ur=[(N[0]+N[1])/2,(U[0]+U[1])/2]),Dr[0]=N[+(oa[0]{(function(e,t){typeof W1=="object"&&typeof g7!="undefined"?t(W1):(e=e||self,t(e.d3=e.d3||{}))})(W1,function(e){"use strict";var t=new Date,r=new Date;function i(Be,ft,or,Cr){function Sr(Oe){return Be(Oe=arguments.length===0?new Date:new Date(+Oe)),Oe}return Sr.floor=function(Oe){return Be(Oe=new Date(+Oe)),Oe},Sr.ceil=function(Oe){return Be(Oe=new Date(Oe-1)),ft(Oe,1),Be(Oe),Oe},Sr.round=function(Oe){var yt=Sr(Oe),qt=Sr.ceil(Oe);return Oe-yt0))return Qt;do Qt.push(Vt=new Date(+Oe)),ft(Oe,qt),Be(Oe);while(Vt=yt)for(;Be(yt),!Oe(yt);)yt.setTime(yt-1)},function(yt,qt){if(yt>=yt)if(qt<0)for(;++qt<=0;)for(;ft(yt,-1),!Oe(yt););else for(;--qt>=0;)for(;ft(yt,1),!Oe(yt););})},or&&(Sr.count=function(Oe,yt){return t.setTime(+Oe),r.setTime(+yt),Be(t),Be(r),Math.floor(or(t,r))},Sr.every=function(Oe){return Oe=Math.floor(Oe),!isFinite(Oe)||!(Oe>0)?null:Oe>1?Sr.filter(Cr?function(yt){return Cr(yt)%Oe===0}:function(yt){return Sr.count(0,yt)%Oe===0}):Sr}),Sr}var a=i(function(){},function(Be,ft){Be.setTime(+Be+ft)},function(Be,ft){return ft-Be});a.every=function(Be){return Be=Math.floor(Be),!isFinite(Be)||!(Be>0)?null:Be>1?i(function(ft){ft.setTime(Math.floor(ft/Be)*Be)},function(ft,or){ft.setTime(+ft+or*Be)},function(ft,or){return(or-ft)/Be}):a};var s=a.range,l=1e3,f=6e4,h=36e5,v=864e5,m=6048e5,_=i(function(Be){Be.setTime(Be-Be.getMilliseconds())},function(Be,ft){Be.setTime(+Be+ft*l)},function(Be,ft){return(ft-Be)/l},function(Be){return Be.getUTCSeconds()}),T=_.range,S=i(function(Be){Be.setTime(Be-Be.getMilliseconds()-Be.getSeconds()*l)},function(Be,ft){Be.setTime(+Be+ft*f)},function(Be,ft){return(ft-Be)/f},function(Be){return Be.getMinutes()}),C=S.range,D=i(function(Be){Be.setTime(Be-Be.getMilliseconds()-Be.getSeconds()*l-Be.getMinutes()*f)},function(Be,ft){Be.setTime(+Be+ft*h)},function(Be,ft){return(ft-Be)/h},function(Be){return Be.getHours()}),E=D.range,I=i(function(Be){Be.setHours(0,0,0,0)},function(Be,ft){Be.setDate(Be.getDate()+ft)},function(Be,ft){return(ft-Be-(ft.getTimezoneOffset()-Be.getTimezoneOffset())*f)/v},function(Be){return Be.getDate()-1}),B=I.range;function q(Be){return i(function(ft){ft.setDate(ft.getDate()-(ft.getDay()+7-Be)%7),ft.setHours(0,0,0,0)},function(ft,or){ft.setDate(ft.getDate()+or*7)},function(ft,or){return(or-ft-(or.getTimezoneOffset()-ft.getTimezoneOffset())*f)/m})}var z=q(0),O=q(1),H=q(2),V=q(3),W=q(4),J=q(5),te=q(6),ne=z.range,oe=O.range,fe=H.range,ve=V.range,Me=W.range,Se=J.range,Ae=te.range,we=i(function(Be){Be.setDate(1),Be.setHours(0,0,0,0)},function(Be,ft){Be.setMonth(Be.getMonth()+ft)},function(Be,ft){return ft.getMonth()-Be.getMonth()+(ft.getFullYear()-Be.getFullYear())*12},function(Be){return Be.getMonth()}),Te=we.range,Ce=i(function(Be){Be.setMonth(0,1),Be.setHours(0,0,0,0)},function(Be,ft){Be.setFullYear(Be.getFullYear()+ft)},function(Be,ft){return ft.getFullYear()-Be.getFullYear()},function(Be){return Be.getFullYear()});Ce.every=function(Be){return!isFinite(Be=Math.floor(Be))||!(Be>0)?null:i(function(ft){ft.setFullYear(Math.floor(ft.getFullYear()/Be)*Be),ft.setMonth(0,1),ft.setHours(0,0,0,0)},function(ft,or){ft.setFullYear(ft.getFullYear()+or*Be)})};var Le=Ce.range,$e=i(function(Be){Be.setUTCSeconds(0,0)},function(Be,ft){Be.setTime(+Be+ft*f)},function(Be,ft){return(ft-Be)/f},function(Be){return Be.getUTCMinutes()}),lt=$e.range,it=i(function(Be){Be.setUTCMinutes(0,0,0)},function(Be,ft){Be.setTime(+Be+ft*h)},function(Be,ft){return(ft-Be)/h},function(Be){return Be.getUTCHours()}),gt=it.range,We=i(function(Be){Be.setUTCHours(0,0,0,0)},function(Be,ft){Be.setUTCDate(Be.getUTCDate()+ft)},function(Be,ft){return(ft-Be)/v},function(Be){return Be.getUTCDate()-1}),Et=We.range;function nt(Be){return i(function(ft){ft.setUTCDate(ft.getUTCDate()-(ft.getUTCDay()+7-Be)%7),ft.setUTCHours(0,0,0,0)},function(ft,or){ft.setUTCDate(ft.getUTCDate()+or*7)},function(ft,or){return(or-ft)/m})}var wt=nt(0),xt=nt(1),vt=nt(2),de=nt(3),ze=nt(4),pe=nt(5),rt=nt(6),mt=wt.range,Xe=xt.range,Ft=vt.range,Lt=de.range,Tt=ze.range,It=pe.range,Gt=rt.range,Ct=i(function(Be){Be.setUTCDate(1),Be.setUTCHours(0,0,0,0)},function(Be,ft){Be.setUTCMonth(Be.getUTCMonth()+ft)},function(Be,ft){return ft.getUTCMonth()-Be.getUTCMonth()+(ft.getUTCFullYear()-Be.getUTCFullYear())*12},function(Be){return Be.getUTCMonth()}),Mt=Ct.range,Ut=i(function(Be){Be.setUTCMonth(0,1),Be.setUTCHours(0,0,0,0)},function(Be,ft){Be.setUTCFullYear(Be.getUTCFullYear()+ft)},function(Be,ft){return ft.getUTCFullYear()-Be.getUTCFullYear()},function(Be){return Be.getUTCFullYear()});Ut.every=function(Be){return!isFinite(Be=Math.floor(Be))||!(Be>0)?null:i(function(ft){ft.setUTCFullYear(Math.floor(ft.getUTCFullYear()/Be)*Be),ft.setUTCMonth(0,1),ft.setUTCHours(0,0,0,0)},function(ft,or){ft.setUTCFullYear(ft.getUTCFullYear()+or*Be)})};var Ot=Ut.range;e.timeDay=I,e.timeDays=B,e.timeFriday=J,e.timeFridays=Se,e.timeHour=D,e.timeHours=E,e.timeInterval=i,e.timeMillisecond=a,e.timeMilliseconds=s,e.timeMinute=S,e.timeMinutes=C,e.timeMonday=O,e.timeMondays=oe,e.timeMonth=we,e.timeMonths=Te,e.timeSaturday=te,e.timeSaturdays=Ae,e.timeSecond=_,e.timeSeconds=T,e.timeSunday=z,e.timeSundays=ne,e.timeThursday=W,e.timeThursdays=Me,e.timeTuesday=H,e.timeTuesdays=fe,e.timeWednesday=V,e.timeWednesdays=ve,e.timeWeek=z,e.timeWeeks=ne,e.timeYear=Ce,e.timeYears=Le,e.utcDay=We,e.utcDays=Et,e.utcFriday=pe,e.utcFridays=It,e.utcHour=it,e.utcHours=gt,e.utcMillisecond=a,e.utcMilliseconds=s,e.utcMinute=$e,e.utcMinutes=lt,e.utcMonday=xt,e.utcMondays=Xe,e.utcMonth=Ct,e.utcMonths=Mt,e.utcSaturday=rt,e.utcSaturdays=Gt,e.utcSecond=_,e.utcSeconds=T,e.utcSunday=wt,e.utcSundays=mt,e.utcThursday=ze,e.utcThursdays=Tt,e.utcTuesday=vt,e.utcTuesdays=Ft,e.utcWednesday=de,e.utcWednesdays=Lt,e.utcWeek=wt,e.utcWeeks=mt,e.utcYear=Ut,e.utcYears=Ot,Object.defineProperty(e,"__esModule",{value:!0})})});var s0=me((X1,_7)=>{(function(e,t){typeof X1=="object"&&typeof _7!="undefined"?t(X1,q3()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(X1,function(e,t){"use strict";function r(Fe){if(0<=Fe.y&&Fe.y<100){var Ge=new Date(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L);return Ge.setFullYear(Fe.y),Ge}return new Date(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L)}function i(Fe){if(0<=Fe.y&&Fe.y<100){var Ge=new Date(Date.UTC(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L));return Ge.setUTCFullYear(Fe.y),Ge}return new Date(Date.UTC(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L))}function a(Fe,Ge,bt){return{y:Fe,m:Ge,d:bt,H:0,M:0,S:0,L:0}}function s(Fe){var Ge=Fe.dateTime,bt=Fe.date,dt=Fe.time,gr=Fe.periods,xr=Fe.days,mr=Fe.shortDays,Hr=Fe.months,pa=Fe.shortMonths,Ea=T(gr),Ua=S(gr),Ki=T(xr),qi=S(xr),vi=T(mr),Ti=S(mr),$i=T(Hr),on=S(Hr),Ei=T(pa),ma=S(pa),Gr={a:Dt,A:Rt,b:$t,B:Yt,c:null,d:we,e:we,f:lt,H:Te,I:Ce,j:Le,L:$e,m:it,M:gt,p:Tr,q:Yr,Q:yt,s:qt,S:We,u:Et,U:nt,V:wt,w:xt,W:vt,x:null,X:null,y:de,Y:ze,Z:pe,"%":Oe},$a={a:Br,A:ca,b:ua,B:qa,c:null,d:rt,e:rt,f:Tt,H:mt,I:Xe,j:Ft,L:Lt,m:It,M:Gt,p:ii,q:Wr,Q:yt,s:qt,S:Ct,u:Mt,U:Ut,V:Ot,w:Be,W:ft,x:null,X:null,y:or,Y:Cr,Z:Sr,"%":Oe},Zr={a:se,A:ce,b:Ee,B:Ne,c:at,d:W,e:W,f:ve,H:te,I:te,j:J,L:fe,m:V,M:ne,p:ee,q:H,Q:Se,s:Ae,S:oe,u:D,U:E,V:I,w:C,W:B,x:He,X:pt,y:z,Y:q,Z:O,"%":Me};Gr.x=di(bt,Gr),Gr.X=di(dt,Gr),Gr.c=di(Ge,Gr),$a.x=di(bt,$a),$a.X=di(dt,$a),$a.c=di(Ge,$a);function di(dr,ea){return function(_a){var ir=[],Ai=-1,Ca=0,si=dr.length,fa,Dn,Co;for(_a instanceof Date||(_a=new Date(+_a));++Ai53)return null;"w"in ir||(ir.w=1),"Z"in ir?(Ca=i(a(ir.y,0,1)),si=Ca.getUTCDay(),Ca=si>4||si===0?t.utcMonday.ceil(Ca):t.utcMonday(Ca),Ca=t.utcDay.offset(Ca,(ir.V-1)*7),ir.y=Ca.getUTCFullYear(),ir.m=Ca.getUTCMonth(),ir.d=Ca.getUTCDate()+(ir.w+6)%7):(Ca=r(a(ir.y,0,1)),si=Ca.getDay(),Ca=si>4||si===0?t.timeMonday.ceil(Ca):t.timeMonday(Ca),Ca=t.timeDay.offset(Ca,(ir.V-1)*7),ir.y=Ca.getFullYear(),ir.m=Ca.getMonth(),ir.d=Ca.getDate()+(ir.w+6)%7)}else("W"in ir||"U"in ir)&&("w"in ir||(ir.w="u"in ir?ir.u%7:"W"in ir?1:0),si="Z"in ir?i(a(ir.y,0,1)).getUTCDay():r(a(ir.y,0,1)).getDay(),ir.m=0,ir.d="W"in ir?(ir.w+6)%7+ir.W*7-(si+5)%7:ir.w+ir.U*7-(si+6)%7);return"Z"in ir?(ir.H+=ir.Z/100|0,ir.M+=ir.Z%100,i(ir)):r(ir)}}function le(dr,ea,_a,ir){for(var Ai=0,Ca=ea.length,si=_a.length,fa,Dn;Ai=si)return-1;if(fa=ea.charCodeAt(Ai++),fa===37){if(fa=ea.charAt(Ai++),Dn=Zr[fa in l?ea.charAt(Ai++):fa],!Dn||(ir=Dn(dr,_a,ir))<0)return-1}else if(fa!=_a.charCodeAt(ir++))return-1}return ir}function ee(dr,ea,_a){var ir=Ea.exec(ea.slice(_a));return ir?(dr.p=Ua[ir[0].toLowerCase()],_a+ir[0].length):-1}function se(dr,ea,_a){var ir=vi.exec(ea.slice(_a));return ir?(dr.w=Ti[ir[0].toLowerCase()],_a+ir[0].length):-1}function ce(dr,ea,_a){var ir=Ki.exec(ea.slice(_a));return ir?(dr.w=qi[ir[0].toLowerCase()],_a+ir[0].length):-1}function Ee(dr,ea,_a){var ir=Ei.exec(ea.slice(_a));return ir?(dr.m=ma[ir[0].toLowerCase()],_a+ir[0].length):-1}function Ne(dr,ea,_a){var ir=$i.exec(ea.slice(_a));return ir?(dr.m=on[ir[0].toLowerCase()],_a+ir[0].length):-1}function at(dr,ea,_a){return le(dr,Ge,ea,_a)}function He(dr,ea,_a){return le(dr,bt,ea,_a)}function pt(dr,ea,_a){return le(dr,dt,ea,_a)}function Dt(dr){return mr[dr.getDay()]}function Rt(dr){return xr[dr.getDay()]}function $t(dr){return pa[dr.getMonth()]}function Yt(dr){return Hr[dr.getMonth()]}function Tr(dr){return gr[+(dr.getHours()>=12)]}function Yr(dr){return 1+~~(dr.getMonth()/3)}function Br(dr){return mr[dr.getUTCDay()]}function ca(dr){return xr[dr.getUTCDay()]}function ua(dr){return pa[dr.getUTCMonth()]}function qa(dr){return Hr[dr.getUTCMonth()]}function ii(dr){return gr[+(dr.getUTCHours()>=12)]}function Wr(dr){return 1+~~(dr.getUTCMonth()/3)}return{format:function(dr){var ea=di(dr+="",Gr);return ea.toString=function(){return dr},ea},parse:function(dr){var ea=ga(dr+="",!1);return ea.toString=function(){return dr},ea},utcFormat:function(dr){var ea=di(dr+="",$a);return ea.toString=function(){return dr},ea},utcParse:function(dr){var ea=ga(dr+="",!0);return ea.toString=function(){return dr},ea}}}var l={"-":"",_:" ",0:"0"},f=/^\s*\d+/,h=/^%/,v=/[\\^$*+?|[\]().{}]/g;function m(Fe,Ge,bt){var dt=Fe<0?"-":"",gr=(dt?-Fe:Fe)+"",xr=gr.length;return dt+(xr68?1900:2e3),bt+dt[0].length):-1}function O(Fe,Ge,bt){var dt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ge.slice(bt,bt+6));return dt?(Fe.Z=dt[1]?0:-(dt[2]+(dt[3]||"00")),bt+dt[0].length):-1}function H(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+1));return dt?(Fe.q=dt[0]*3-3,bt+dt[0].length):-1}function V(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+2));return dt?(Fe.m=dt[0]-1,bt+dt[0].length):-1}function W(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+2));return dt?(Fe.d=+dt[0],bt+dt[0].length):-1}function J(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+3));return dt?(Fe.m=0,Fe.d=+dt[0],bt+dt[0].length):-1}function te(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+2));return dt?(Fe.H=+dt[0],bt+dt[0].length):-1}function ne(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+2));return dt?(Fe.M=+dt[0],bt+dt[0].length):-1}function oe(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+2));return dt?(Fe.S=+dt[0],bt+dt[0].length):-1}function fe(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+3));return dt?(Fe.L=+dt[0],bt+dt[0].length):-1}function ve(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+6));return dt?(Fe.L=Math.floor(dt[0]/1e3),bt+dt[0].length):-1}function Me(Fe,Ge,bt){var dt=h.exec(Ge.slice(bt,bt+1));return dt?bt+dt[0].length:-1}function Se(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt));return dt?(Fe.Q=+dt[0],bt+dt[0].length):-1}function Ae(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt));return dt?(Fe.s=+dt[0],bt+dt[0].length):-1}function we(Fe,Ge){return m(Fe.getDate(),Ge,2)}function Te(Fe,Ge){return m(Fe.getHours(),Ge,2)}function Ce(Fe,Ge){return m(Fe.getHours()%12||12,Ge,2)}function Le(Fe,Ge){return m(1+t.timeDay.count(t.timeYear(Fe),Fe),Ge,3)}function $e(Fe,Ge){return m(Fe.getMilliseconds(),Ge,3)}function lt(Fe,Ge){return $e(Fe,Ge)+"000"}function it(Fe,Ge){return m(Fe.getMonth()+1,Ge,2)}function gt(Fe,Ge){return m(Fe.getMinutes(),Ge,2)}function We(Fe,Ge){return m(Fe.getSeconds(),Ge,2)}function Et(Fe){var Ge=Fe.getDay();return Ge===0?7:Ge}function nt(Fe,Ge){return m(t.timeSunday.count(t.timeYear(Fe)-1,Fe),Ge,2)}function wt(Fe,Ge){var bt=Fe.getDay();return Fe=bt>=4||bt===0?t.timeThursday(Fe):t.timeThursday.ceil(Fe),m(t.timeThursday.count(t.timeYear(Fe),Fe)+(t.timeYear(Fe).getDay()===4),Ge,2)}function xt(Fe){return Fe.getDay()}function vt(Fe,Ge){return m(t.timeMonday.count(t.timeYear(Fe)-1,Fe),Ge,2)}function de(Fe,Ge){return m(Fe.getFullYear()%100,Ge,2)}function ze(Fe,Ge){return m(Fe.getFullYear()%1e4,Ge,4)}function pe(Fe){var Ge=Fe.getTimezoneOffset();return(Ge>0?"-":(Ge*=-1,"+"))+m(Ge/60|0,"0",2)+m(Ge%60,"0",2)}function rt(Fe,Ge){return m(Fe.getUTCDate(),Ge,2)}function mt(Fe,Ge){return m(Fe.getUTCHours(),Ge,2)}function Xe(Fe,Ge){return m(Fe.getUTCHours()%12||12,Ge,2)}function Ft(Fe,Ge){return m(1+t.utcDay.count(t.utcYear(Fe),Fe),Ge,3)}function Lt(Fe,Ge){return m(Fe.getUTCMilliseconds(),Ge,3)}function Tt(Fe,Ge){return Lt(Fe,Ge)+"000"}function It(Fe,Ge){return m(Fe.getUTCMonth()+1,Ge,2)}function Gt(Fe,Ge){return m(Fe.getUTCMinutes(),Ge,2)}function Ct(Fe,Ge){return m(Fe.getUTCSeconds(),Ge,2)}function Mt(Fe){var Ge=Fe.getUTCDay();return Ge===0?7:Ge}function Ut(Fe,Ge){return m(t.utcSunday.count(t.utcYear(Fe)-1,Fe),Ge,2)}function Ot(Fe,Ge){var bt=Fe.getUTCDay();return Fe=bt>=4||bt===0?t.utcThursday(Fe):t.utcThursday.ceil(Fe),m(t.utcThursday.count(t.utcYear(Fe),Fe)+(t.utcYear(Fe).getUTCDay()===4),Ge,2)}function Be(Fe){return Fe.getUTCDay()}function ft(Fe,Ge){return m(t.utcMonday.count(t.utcYear(Fe)-1,Fe),Ge,2)}function or(Fe,Ge){return m(Fe.getUTCFullYear()%100,Ge,2)}function Cr(Fe,Ge){return m(Fe.getUTCFullYear()%1e4,Ge,4)}function Sr(){return"+0000"}function Oe(){return"%"}function yt(Fe){return+Fe}function qt(Fe){return Math.floor(+Fe/1e3)}var Qt;Vt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Vt(Fe){return Qt=s(Fe),e.timeFormat=Qt.format,e.timeParse=Qt.parse,e.utcFormat=Qt.utcFormat,e.utcParse=Qt.utcParse,Qt}var tr="%Y-%m-%dT%H:%M:%S.%LZ";function ar(Fe){return Fe.toISOString()}var zr=Date.prototype.toISOString?ar:e.utcFormat(tr);function lr(Fe){var Ge=new Date(Fe);return isNaN(Ge)?null:Ge}var At=+new Date("2000-01-01T00:00:00.000Z")?lr:e.utcParse(tr);e.isoFormat=zr,e.isoParse=At,e.timeFormatDefaultLocale=Vt,e.timeFormatLocale=s,Object.defineProperty(e,"__esModule",{value:!0})})});var N3=me((j1,x7)=>{(function(e,t){typeof j1=="object"&&typeof x7!="undefined"?t(j1):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(j1,function(e){"use strict";function t(V){return Math.abs(V=Math.round(V))>=1e21?V.toLocaleString("en").replace(/,/g,""):V.toString(10)}function r(V,W){if((J=(V=W?V.toExponential(W-1):V.toExponential()).indexOf("e"))<0)return null;var J,te=V.slice(0,J);return[te.length>1?te[0]+te.slice(2):te,+V.slice(J+1)]}function i(V){return V=r(Math.abs(V)),V?V[1]:NaN}function a(V,W){return function(J,te){for(var ne=J.length,oe=[],fe=0,ve=V[0],Me=0;ne>0&&ve>0&&(Me+ve+1>te&&(ve=Math.max(1,te-Me)),oe.push(J.substring(ne-=ve,ne+ve)),!((Me+=ve+1)>te));)ve=V[fe=(fe+1)%V.length];return oe.reverse().join(W)}}function s(V){return function(W){return W.replace(/[0-9]/g,function(J){return V[+J]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function f(V){if(!(W=l.exec(V)))throw new Error("invalid format: "+V);var W;return new h({fill:W[1],align:W[2],sign:W[3],symbol:W[4],zero:W[5],width:W[6],comma:W[7],precision:W[8]&&W[8].slice(1),trim:W[9],type:W[10]})}f.prototype=h.prototype;function h(V){this.fill=V.fill===void 0?" ":V.fill+"",this.align=V.align===void 0?">":V.align+"",this.sign=V.sign===void 0?"-":V.sign+"",this.symbol=V.symbol===void 0?"":V.symbol+"",this.zero=!!V.zero,this.width=V.width===void 0?void 0:+V.width,this.comma=!!V.comma,this.precision=V.precision===void 0?void 0:+V.precision,this.trim=!!V.trim,this.type=V.type===void 0?"":V.type+""}h.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function v(V){e:for(var W=V.length,J=1,te=-1,ne;J0&&(te=0);break}return te>0?V.slice(0,te)+V.slice(ne+1):V}var m;function _(V,W){var J=r(V,W);if(!J)return V+"";var te=J[0],ne=J[1],oe=ne-(m=Math.max(-8,Math.min(8,Math.floor(ne/3)))*3)+1,fe=te.length;return oe===fe?te:oe>fe?te+new Array(oe-fe+1).join("0"):oe>0?te.slice(0,oe)+"."+te.slice(oe):"0."+new Array(1-oe).join("0")+r(V,Math.max(0,W+oe-1))[0]}function T(V,W){var J=r(V,W);if(!J)return V+"";var te=J[0],ne=J[1];return ne<0?"0."+new Array(-ne).join("0")+te:te.length>ne+1?te.slice(0,ne+1)+"."+te.slice(ne+1):te+new Array(ne-te.length+2).join("0")}var S={"%":function(V,W){return(V*100).toFixed(W)},b:function(V){return Math.round(V).toString(2)},c:function(V){return V+""},d:t,e:function(V,W){return V.toExponential(W)},f:function(V,W){return V.toFixed(W)},g:function(V,W){return V.toPrecision(W)},o:function(V){return Math.round(V).toString(8)},p:function(V,W){return T(V*100,W)},r:T,s:_,X:function(V){return Math.round(V).toString(16).toUpperCase()},x:function(V){return Math.round(V).toString(16)}};function C(V){return V}var D=Array.prototype.map,E=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function I(V){var W=V.grouping===void 0||V.thousands===void 0?C:a(D.call(V.grouping,Number),V.thousands+""),J=V.currency===void 0?"":V.currency[0]+"",te=V.currency===void 0?"":V.currency[1]+"",ne=V.decimal===void 0?".":V.decimal+"",oe=V.numerals===void 0?C:s(D.call(V.numerals,String)),fe=V.percent===void 0?"%":V.percent+"",ve=V.minus===void 0?"-":V.minus+"",Me=V.nan===void 0?"NaN":V.nan+"";function Se(we){we=f(we);var Te=we.fill,Ce=we.align,Le=we.sign,$e=we.symbol,lt=we.zero,it=we.width,gt=we.comma,We=we.precision,Et=we.trim,nt=we.type;nt==="n"?(gt=!0,nt="g"):S[nt]||(We===void 0&&(We=12),Et=!0,nt="g"),(lt||Te==="0"&&Ce==="=")&&(lt=!0,Te="0",Ce="=");var wt=$e==="$"?J:$e==="#"&&/[boxX]/.test(nt)?"0"+nt.toLowerCase():"",xt=$e==="$"?te:/[%p]/.test(nt)?fe:"",vt=S[nt],de=/[defgprs%]/.test(nt);We=We===void 0?6:/[gprs]/.test(nt)?Math.max(1,Math.min(21,We)):Math.max(0,Math.min(20,We));function ze(pe){var rt=wt,mt=xt,Xe,Ft,Lt;if(nt==="c")mt=vt(pe)+mt,pe="";else{pe=+pe;var Tt=pe<0||1/pe<0;if(pe=isNaN(pe)?Me:vt(Math.abs(pe),We),Et&&(pe=v(pe)),Tt&&+pe==0&&Le!=="+"&&(Tt=!1),rt=(Tt?Le==="("?Le:ve:Le==="-"||Le==="("?"":Le)+rt,mt=(nt==="s"?E[8+m/3]:"")+mt+(Tt&&Le==="("?")":""),de){for(Xe=-1,Ft=pe.length;++XeLt||Lt>57){mt=(Lt===46?ne+pe.slice(Xe+1):pe.slice(Xe))+mt,pe=pe.slice(0,Xe);break}}}gt&&!lt&&(pe=W(pe,1/0));var It=rt.length+pe.length+mt.length,Gt=It>1)+rt+pe+mt+Gt.slice(It);break;default:pe=Gt+rt+pe+mt;break}return oe(pe)}return ze.toString=function(){return we+""},ze}function Ae(we,Te){var Ce=Se((we=f(we),we.type="f",we)),Le=Math.max(-8,Math.min(8,Math.floor(i(Te)/3)))*3,$e=Math.pow(10,-Le),lt=E[8+Le/3];return function(it){return Ce($e*it)+lt}}return{format:Se,formatPrefix:Ae}}var B;q({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function q(V){return B=I(V),e.format=B.format,e.formatPrefix=B.formatPrefix,B}function z(V){return Math.max(0,-i(Math.abs(V)))}function O(V,W){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(i(W)/3)))*3-i(Math.abs(V)))}function H(V,W){return V=Math.abs(V),W=Math.abs(W)-V,Math.max(0,i(W)-i(V))+1}e.FormatSpecifier=h,e.formatDefaultLocale=q,e.formatLocale=I,e.formatSpecifier=f,e.precisionFixed=z,e.precisionPrefix=O,e.precisionRound=H,Object.defineProperty(e,"__esModule",{value:!0})})});var w7=me((gme,b7)=>{"use strict";b7.exports=function(e){for(var t=e.length,r,i=0;i13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var Da=me((_me,T7)=>{"use strict";var jX=w7();T7.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&jX(r))return!1}else if(t!=="number")return!1;return e-e<1}});var Zi=me((xme,A7)=>{"use strict";A7.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var B3=me((J1,M7)=>{(function(e,t){typeof J1=="object"&&typeof M7!="undefined"?t(J1):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(J1,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),i=0;i>2],m+=t[(f[h]&3)<<4|f[h+1]>>4],m+=t[(f[h+1]&15)<<2|f[h+2]>>6],m+=t[f[h+2]&63];return v%3===2?m=m.substring(0,m.length-1)+"=":v%3===1&&(m=m.substring(0,m.length-2)+"=="),m},s=function(l){var f=l.length*.75,h=l.length,v,m=0,_,T,S,C;l[l.length-1]==="="&&(f--,l[l.length-2]==="="&&f--);var D=new ArrayBuffer(f),E=new Uint8Array(D);for(v=0;v>4,E[m++]=(T&15)<<4|S>>2,E[m++]=(S&3)<<6|C&63;return D};e.decode=s,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var cc=me((bme,S7)=>{"use strict";S7.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var al=me(Du=>{"use strict";var JX=B3().decode,KX=cc(),O3=Array.isArray,QX=ArrayBuffer,$X=DataView;function k7(e){return QX.isView(e)&&!(e instanceof $X)}Du.isTypedArray=k7;function K1(e){return O3(e)||k7(e)}Du.isArrayOrTypedArray=K1;function ej(e){return!K1(e[0])}Du.isArray1D=ej;Du.ensureArray=function(e,t){return O3(e)||(e=[]),e.length=t,e};var fo={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};fo.uint8c=fo.u1c;fo.uint8=fo.u1;fo.int8=fo.i1;fo.uint16=fo.u2;fo.int16=fo.i2;fo.uint32=fo.u4;fo.int32=fo.i4;fo.float32=fo.f4;fo.float64=fo.f8;function U3(e){return e.constructor===ArrayBuffer}Du.isArrayBuffer=U3;Du.decodeTypedArraySpec=function(e){var t=[],r=tj(e),i=r.dtype,a=fo[i];if(!a)throw new Error('Error in dtype: "'+i+'"');var s=a.BYTES_PER_ELEMENT,l=r.bdata;U3(l)||(l=JX(l));var f=r.shape===void 0?[l.byteLength/s]:(""+r.shape).split(",");f.reverse();var h=f.length,v,m,_=+f[0],T=s*_,S=0;if(h===1)t=new a(l);else if(h===2)for(v=+f[1],m=0;m{"use strict";var E7=Da(),H3=al().isArrayOrTypedArray;z7.exports=function(t,r){if(E7(r))r=String(r);else if(typeof r!="string"||r.substr(r.length-4)==="[-1]")throw"bad property string";var i=r.split("."),a,s,l,f;for(f=0;f{"use strict";var l0=wy(),oj=/^\w*$/,sj=0,I7=1,Q1=2,R7=3,$v=4;F7.exports=function(t,r,i,a){i=i||"name",a=a||"value";var s,l,f,h={};r&&r.length?(f=l0(t,r),l=f.get()):l=t,r=r||"";var v={};if(l)for(s=0;s2)return h[S]=h[S]|Q1,_.set(T,null);if(m){for(s=S;s{"use strict";var lj=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,uj=/^[^\.\[\]]+$/;N7.exports=function(e,t){for(;t;){var r=e.match(lj);if(r)e=r[1];else if(e.match(uj))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var $1=me((Sme,O7)=>{"use strict";var fj=Da();O7.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var i=Math.log(Math.min(r[0],r[1]))/Math.LN10;return fj(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var H7=me((kme,V7)=>{"use strict";var U7=al().isArrayOrTypedArray,Ty=cc();V7.exports=function e(t,r){for(var i in r){var a=r[i],s=t[i];if(s!==a)if(i.charAt(0)==="_"||typeof a=="function"){if(i in t)continue;t[i]=a}else if(U7(a)&&U7(s)&&Ty(a[0])){if(i==="customdata"||i==="ids")continue;for(var l=Math.min(a.length,s.length),f=0;f{"use strict";function cj(e,t){var r=e%t;return r<0?r+t:r}function hj(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}G7.exports={mod:cj,modHalf:hj}});var Tf=me((Eme,e_)=>{(function(e){var t=/^\s+/,r=/\s+$/,i=0,a=e.round,s=e.min,l=e.max,f=e.random;function h(de,ze){if(de=de||"",ze=ze||{},de instanceof h)return de;if(!(this instanceof h))return new h(de,ze);var pe=v(de);this._originalInput=de,this._r=pe.r,this._g=pe.g,this._b=pe.b,this._a=pe.a,this._roundA=a(100*this._a)/100,this._format=ze.format||pe.format,this._gradientType=ze.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=pe.ok,this._tc_id=i++}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var de=this.toRgb();return(de.r*299+de.g*587+de.b*114)/1e3},getLuminance:function(){var de=this.toRgb(),ze,pe,rt,mt,Xe,Ft;return ze=de.r/255,pe=de.g/255,rt=de.b/255,ze<=.03928?mt=ze/12.92:mt=e.pow((ze+.055)/1.055,2.4),pe<=.03928?Xe=pe/12.92:Xe=e.pow((pe+.055)/1.055,2.4),rt<=.03928?Ft=rt/12.92:Ft=e.pow((rt+.055)/1.055,2.4),.2126*mt+.7152*Xe+.0722*Ft},setAlpha:function(de){return this._a=we(de),this._roundA=a(100*this._a)/100,this},toHsv:function(){var de=S(this._r,this._g,this._b);return{h:de.h*360,s:de.s,v:de.v,a:this._a}},toHsvString:function(){var de=S(this._r,this._g,this._b),ze=a(de.h*360),pe=a(de.s*100),rt=a(de.v*100);return this._a==1?"hsv("+ze+", "+pe+"%, "+rt+"%)":"hsva("+ze+", "+pe+"%, "+rt+"%, "+this._roundA+")"},toHsl:function(){var de=_(this._r,this._g,this._b);return{h:de.h*360,s:de.s,l:de.l,a:this._a}},toHslString:function(){var de=_(this._r,this._g,this._b),ze=a(de.h*360),pe=a(de.s*100),rt=a(de.l*100);return this._a==1?"hsl("+ze+", "+pe+"%, "+rt+"%)":"hsla("+ze+", "+pe+"%, "+rt+"%, "+this._roundA+")"},toHex:function(de){return D(this._r,this._g,this._b,de)},toHexString:function(de){return"#"+this.toHex(de)},toHex8:function(de){return E(this._r,this._g,this._b,this._a,de)},toHex8String:function(de){return"#"+this.toHex8(de)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(Te(this._r,255)*100)+"%",g:a(Te(this._g,255)*100)+"%",b:a(Te(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(Te(this._r,255)*100)+"%, "+a(Te(this._g,255)*100)+"%, "+a(Te(this._b,255)*100)+"%)":"rgba("+a(Te(this._r,255)*100)+"%, "+a(Te(this._g,255)*100)+"%, "+a(Te(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Se[D(this._r,this._g,this._b,!0)]||!1},toFilter:function(de){var ze="#"+I(this._r,this._g,this._b,this._a),pe=ze,rt=this._gradientType?"GradientType = 1, ":"";if(de){var mt=h(de);pe="#"+I(mt._r,mt._g,mt._b,mt._a)}return"progid:DXImageTransform.Microsoft.gradient("+rt+"startColorstr="+ze+",endColorstr="+pe+")"},toString:function(de){var ze=!!de;de=de||this._format;var pe=!1,rt=this._a<1&&this._a>=0,mt=!ze&&rt&&(de==="hex"||de==="hex6"||de==="hex3"||de==="hex4"||de==="hex8"||de==="name");return mt?de==="name"&&this._a===0?this.toName():this.toRgbString():(de==="rgb"&&(pe=this.toRgbString()),de==="prgb"&&(pe=this.toPercentageRgbString()),(de==="hex"||de==="hex6")&&(pe=this.toHexString()),de==="hex3"&&(pe=this.toHexString(!0)),de==="hex4"&&(pe=this.toHex8String(!0)),de==="hex8"&&(pe=this.toHex8String()),de==="name"&&(pe=this.toName()),de==="hsl"&&(pe=this.toHslString()),de==="hsv"&&(pe=this.toHsvString()),pe||this.toHexString())},clone:function(){return h(this.toString())},_applyModification:function(de,ze){var pe=de.apply(null,[this].concat([].slice.call(ze)));return this._r=pe._r,this._g=pe._g,this._b=pe._b,this.setAlpha(pe._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(H,arguments)},darken:function(){return this._applyModification(V,arguments)},desaturate:function(){return this._applyModification(B,arguments)},saturate:function(){return this._applyModification(q,arguments)},greyscale:function(){return this._applyModification(z,arguments)},spin:function(){return this._applyModification(W,arguments)},_applyCombination:function(de,ze){return de.apply(null,[this].concat([].slice.call(ze)))},analogous:function(){return this._applyCombination(fe,arguments)},complement:function(){return this._applyCombination(J,arguments)},monochromatic:function(){return this._applyCombination(ve,arguments)},splitcomplement:function(){return this._applyCombination(oe,arguments)},triad:function(){return this._applyCombination(te,arguments)},tetrad:function(){return this._applyCombination(ne,arguments)}},h.fromRatio=function(de,ze){if(typeof de=="object"){var pe={};for(var rt in de)de.hasOwnProperty(rt)&&(rt==="a"?pe[rt]=de[rt]:pe[rt]=gt(de[rt]));de=pe}return h(de,ze)};function v(de){var ze={r:0,g:0,b:0},pe=1,rt=null,mt=null,Xe=null,Ft=!1,Lt=!1;return typeof de=="string"&&(de=xt(de)),typeof de=="object"&&(wt(de.r)&&wt(de.g)&&wt(de.b)?(ze=m(de.r,de.g,de.b),Ft=!0,Lt=String(de.r).substr(-1)==="%"?"prgb":"rgb"):wt(de.h)&&wt(de.s)&&wt(de.v)?(rt=gt(de.s),mt=gt(de.v),ze=C(de.h,rt,mt),Ft=!0,Lt="hsv"):wt(de.h)&&wt(de.s)&&wt(de.l)&&(rt=gt(de.s),Xe=gt(de.l),ze=T(de.h,rt,Xe),Ft=!0,Lt="hsl"),de.hasOwnProperty("a")&&(pe=de.a)),pe=we(pe),{ok:Ft,format:de.format||Lt,r:s(255,l(ze.r,0)),g:s(255,l(ze.g,0)),b:s(255,l(ze.b,0)),a:pe}}function m(de,ze,pe){return{r:Te(de,255)*255,g:Te(ze,255)*255,b:Te(pe,255)*255}}function _(de,ze,pe){de=Te(de,255),ze=Te(ze,255),pe=Te(pe,255);var rt=l(de,ze,pe),mt=s(de,ze,pe),Xe,Ft,Lt=(rt+mt)/2;if(rt==mt)Xe=Ft=0;else{var Tt=rt-mt;switch(Ft=Lt>.5?Tt/(2-rt-mt):Tt/(rt+mt),rt){case de:Xe=(ze-pe)/Tt+(ze1&&(Ct-=1),Ct<1/6?It+(Gt-It)*6*Ct:Ct<1/2?Gt:Ct<2/3?It+(Gt-It)*(2/3-Ct)*6:It}if(ze===0)rt=mt=Xe=pe;else{var Lt=pe<.5?pe*(1+ze):pe+ze-pe*ze,Tt=2*pe-Lt;rt=Ft(Tt,Lt,de+1/3),mt=Ft(Tt,Lt,de),Xe=Ft(Tt,Lt,de-1/3)}return{r:rt*255,g:mt*255,b:Xe*255}}function S(de,ze,pe){de=Te(de,255),ze=Te(ze,255),pe=Te(pe,255);var rt=l(de,ze,pe),mt=s(de,ze,pe),Xe,Ft,Lt=rt,Tt=rt-mt;if(Ft=rt===0?0:Tt/rt,rt==mt)Xe=0;else{switch(rt){case de:Xe=(ze-pe)/Tt+(ze>1)+720)%360;--ze;)rt.h=(rt.h+mt)%360,Xe.push(h(rt));return Xe}function ve(de,ze){ze=ze||6;for(var pe=h(de).toHsv(),rt=pe.h,mt=pe.s,Xe=pe.v,Ft=[],Lt=1/ze;ze--;)Ft.push(h({h:rt,s:mt,v:Xe})),Xe=(Xe+Lt)%1;return Ft}h.mix=function(de,ze,pe){pe=pe===0?0:pe||50;var rt=h(de).toRgb(),mt=h(ze).toRgb(),Xe=pe/100,Ft={r:(mt.r-rt.r)*Xe+rt.r,g:(mt.g-rt.g)*Xe+rt.g,b:(mt.b-rt.b)*Xe+rt.b,a:(mt.a-rt.a)*Xe+rt.a};return h(Ft)},h.readability=function(de,ze){var pe=h(de),rt=h(ze);return(e.max(pe.getLuminance(),rt.getLuminance())+.05)/(e.min(pe.getLuminance(),rt.getLuminance())+.05)},h.isReadable=function(de,ze,pe){var rt=h.readability(de,ze),mt,Xe;switch(Xe=!1,mt=vt(pe),mt.level+mt.size){case"AAsmall":case"AAAlarge":Xe=rt>=4.5;break;case"AAlarge":Xe=rt>=3;break;case"AAAsmall":Xe=rt>=7;break}return Xe},h.mostReadable=function(de,ze,pe){var rt=null,mt=0,Xe,Ft,Lt,Tt;pe=pe||{},Ft=pe.includeFallbackColors,Lt=pe.level,Tt=pe.size;for(var It=0;Itmt&&(mt=Xe,rt=h(ze[It]));return h.isReadable(de,rt,{level:Lt,size:Tt})||!Ft?rt:(pe.includeFallbackColors=!1,h.mostReadable(de,["#fff","#000"],pe))};var Me=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Se=h.hexNames=Ae(Me);function Ae(de){var ze={};for(var pe in de)de.hasOwnProperty(pe)&&(ze[de[pe]]=pe);return ze}function we(de){return de=parseFloat(de),(isNaN(de)||de<0||de>1)&&(de=1),de}function Te(de,ze){$e(de)&&(de="100%");var pe=lt(de);return de=s(ze,l(0,parseFloat(de))),pe&&(de=parseInt(de*ze,10)/100),e.abs(de-ze)<1e-6?1:de%ze/parseFloat(ze)}function Ce(de){return s(1,l(0,de))}function Le(de){return parseInt(de,16)}function $e(de){return typeof de=="string"&&de.indexOf(".")!=-1&&parseFloat(de)===1}function lt(de){return typeof de=="string"&&de.indexOf("%")!=-1}function it(de){return de.length==1?"0"+de:""+de}function gt(de){return de<=1&&(de=de*100+"%"),de}function We(de){return e.round(parseFloat(de)*255).toString(16)}function Et(de){return Le(de)/255}var nt=function(){var de="[-\\+]?\\d+%?",ze="[-\\+]?\\d*\\.\\d+%?",pe="(?:"+ze+")|(?:"+de+")",rt="[\\s|\\(]+("+pe+")[,|\\s]+("+pe+")[,|\\s]+("+pe+")\\s*\\)?",mt="[\\s|\\(]+("+pe+")[,|\\s]+("+pe+")[,|\\s]+("+pe+")[,|\\s]+("+pe+")\\s*\\)?";return{CSS_UNIT:new RegExp(pe),rgb:new RegExp("rgb"+rt),rgba:new RegExp("rgba"+mt),hsl:new RegExp("hsl"+rt),hsla:new RegExp("hsla"+mt),hsv:new RegExp("hsv"+rt),hsva:new RegExp("hsva"+mt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function wt(de){return!!nt.CSS_UNIT.exec(de)}function xt(de){de=de.replace(t,"").replace(r,"").toLowerCase();var ze=!1;if(Me[de])de=Me[de],ze=!0;else if(de=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var pe;return(pe=nt.rgb.exec(de))?{r:pe[1],g:pe[2],b:pe[3]}:(pe=nt.rgba.exec(de))?{r:pe[1],g:pe[2],b:pe[3],a:pe[4]}:(pe=nt.hsl.exec(de))?{h:pe[1],s:pe[2],l:pe[3]}:(pe=nt.hsla.exec(de))?{h:pe[1],s:pe[2],l:pe[3],a:pe[4]}:(pe=nt.hsv.exec(de))?{h:pe[1],s:pe[2],v:pe[3]}:(pe=nt.hsva.exec(de))?{h:pe[1],s:pe[2],v:pe[3],a:pe[4]}:(pe=nt.hex8.exec(de))?{r:Le(pe[1]),g:Le(pe[2]),b:Le(pe[3]),a:Et(pe[4]),format:ze?"name":"hex8"}:(pe=nt.hex6.exec(de))?{r:Le(pe[1]),g:Le(pe[2]),b:Le(pe[3]),format:ze?"name":"hex"}:(pe=nt.hex4.exec(de))?{r:Le(pe[1]+""+pe[1]),g:Le(pe[2]+""+pe[2]),b:Le(pe[3]+""+pe[3]),a:Et(pe[4]+""+pe[4]),format:ze?"name":"hex8"}:(pe=nt.hex3.exec(de))?{r:Le(pe[1]+""+pe[1]),g:Le(pe[2]+""+pe[2]),b:Le(pe[3]+""+pe[3]),format:ze?"name":"hex"}:!1}function vt(de){var ze,pe;return de=de||{level:"AA",size:"small"},ze=(de.level||"AA").toUpperCase(),pe=(de.size||"small").toLowerCase(),ze!=="AA"&&ze!=="AAA"&&(ze="AA"),pe!=="small"&&pe!=="large"&&(pe="small"),{level:ze,size:pe}}typeof e_!="undefined"&&e_.exports?e_.exports=h:window.tinycolor=h})(Math)});var mn=me(Sy=>{"use strict";var Z7=cc(),Ay=Array.isArray;function vj(e,t){var r,i;for(r=0;r{"use strict";Y7.exports=function(e){var t=e.variantValues,r=e.editType,i=e.colorEditType;i===void 0&&(i=r);var a={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var s={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:i},weight:a,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(s.size.dflt="auto"),e.autoColor&&(s.color.dflt="auto"),e.arrayOk&&(s.family.arrayOk=!0,s.weight.arrayOk=!0,s.style.arrayOk=!0,e.noFontVariant||(s.variant.arrayOk=!0),e.noFontTextcase||(s.textcase.arrayOk=!0),e.noFontLineposition||(s.lineposition.arrayOk=!0),e.noFontShadow||(s.shadow.arrayOk=!0),s.size.arrayOk=!0,s.color.arrayOk=!0),s}});var ky=me((Pme,W7)=>{"use strict";W7.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var f0=me((zme,J7)=>{"use strict";var X7=ky(),j7=qo(),G3=j7({editType:"none"});G3.family.dflt=X7.HOVERFONT;G3.size.dflt=X7.HOVERFONTSIZE;J7.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:G3,grouptitlefont:j7({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var t_=me((Ime,K7)=>{"use strict";var dj=qo(),Cy=f0().hoverlabel,Ey=mn().extendFlat;K7.exports={hoverlabel:{bgcolor:Ey({},Cy.bgcolor,{arrayOk:!0}),bordercolor:Ey({},Cy.bordercolor,{arrayOk:!0}),font:dj({arrayOk:!0,editType:"none"}),align:Ey({},Cy.align,{arrayOk:!0}),namelength:Ey({},Cy.namelength,{arrayOk:!0}),showarrow:Ey({},Cy.showarrow),editType:"none"}}});var ms=me((Rme,Q7)=>{"use strict";var pj=qo(),mj=t_();Q7.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:pj({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:mj.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var ed=me((Fme,t8)=>{"use strict";var yj=Tf(),r_={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},$7=r_.RdBu;function gj(e,t){if(t||(t=$7),!e)return t;function r(){try{e=r_[e]||JSON.parse(e)}catch(i){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),e8(e)?e:t}function e8(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";td.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];td.defaultLine="#444";td.lightLine="#eee";td.background="#fff";td.borderLine="#BEC8D9";td.lightFraction=100*10/11});var Oa=me((Nme,r8)=>{"use strict";var Is=Tf(),xj=Da(),bj=al().isTypedArray,$n=r8.exports={},a_=Af();$n.defaults=a_.defaults;var wj=$n.defaultLine=a_.defaultLine;$n.lightLine=a_.lightLine;var Y3=$n.background=a_.background;$n.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};$n.rgb=function(e){return $n.tinyRGB(Is(e))};$n.opacity=function(e){return e?Is(e).getAlpha():0};$n.addOpacity=function(e,t){var r=Is(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};$n.combine=function(e,t){var r=Is(e).toRgb();if(r.a===1)return Is(e).toRgbString();var i=Is(t||Y3).toRgb(),a=i.a===1?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},s={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return Is(s).toRgbString()};$n.interpolate=function(e,t,r){var i=Is(e).toRgb(),a=Is(t).toRgb(),s={r:r*i.r+(1-r)*a.r,g:r*i.g+(1-r)*a.g,b:r*i.b+(1-r)*a.b};return Is(s).toRgbString()};$n.contrast=function(e,t,r){var i=Is(e);i.getAlpha()!==1&&(i=Is($n.combine(e,Y3)));var a=i.isDark()?t?i.lighten(t):Y3:r?i.darken(r):wj;return a.toString()};$n.stroke=function(e,t){var r=Is(t);e.style({stroke:$n.tinyRGB(r),"stroke-opacity":r.getAlpha()})};$n.fill=function(e,t){var r=Is(t);e.style({fill:$n.tinyRGB(r),"fill-opacity":r.getAlpha()})};$n.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,i,a,s;for(r=0;r=0)))return e;if(s===3)i[s]>1&&(i[s]=1);else if(i[s]>=1)return e}var l=Math.round(i[0]*255)+", "+Math.round(i[1]*255)+", "+Math.round(i[2]*255);return a?"rgba("+l+", "+i[3]+")":"rgb("+l+")"}});var i_=me((Bme,a8)=>{"use strict";a8.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var c0=me(i8=>{"use strict";i8.counter=function(e,t,r,i){var a=(t||"")+(r?"":"$"),s=i===!1?"":"^";return e==="xy"?new RegExp(s+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(s+e+"([2-9]|[1-9][0-9]+)?"+a)}});var l8=me(Rs=>{"use strict";var W3=Da(),n8=Tf(),o8=mn().extendFlat,Tj=ms(),Aj=ed(),Mj=Oa(),Sj=i_().DESELECTDIM,h0=wy(),s8=c0().counter,kj=u0().modHalf,Mf=al().isArrayOrTypedArray,bh=al().isTypedArraySpec,wh=al().decodeTypedArraySpec;Rs.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(Mf(e)?e:bh(e)?wh(e):r)}},enumerated:{coerceFunction:function(e,t,r,i){i.coerceNumber&&(e=+e),i.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,i=0;ii.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}bh(e)&&(e=wh(e)),e%1||!W3(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,i){if(typeof e!="string"){var a=typeof e=="number";i.strict===!0||!a?t.set(r):t.set(String(e))}else i.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){bh(e)&&(e=wh(e)),n8(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function i(a){return n8(a).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(i)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(Aj.get(e,r))}},angle:{coerceFunction:function(e,t,r){bh(e)&&(e=wh(e)),e==="auto"?t.set("auto"):W3(e)?t.set(kj(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,i){var a=i.regex||s8(r);if(typeof e=="string"&&a.test(e)){t.set(e);return}t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!s8(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var a=e.split("+"),s=0;s{"use strict";var u8={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},f8={};function c8(e,t){for(var r in e){var i=e[r];i.valType?t[r]=i.dflt:(t[r]||(t[r]={}),c8(i,t[r]))}}c8(u8,f8);h8.exports={configAttributes:u8,dfltConfig:f8}});var j3=me((Hme,v8)=>{"use strict";var X3=Ja(),Cj=Da(),Ly=[];v8.exports=function(e,t){if(Ly.indexOf(e)!==-1)return;Ly.push(e);var r=1e3;Cj(t)?r=t:t==="long"&&(r=3e3);var i=X3.select("body").selectAll(".plotly-notifier").data([0]);i.enter().append("div").classed("plotly-notifier",!0);var a=i.selectAll(".notifier-note").data(Ly);function s(l){l.duration(700).style("opacity",0).each("end",function(f){var h=Ly.indexOf(f);h!==-1&&Ly.splice(h,1),X3.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var f=X3.select(this);f.append("button").classed("notifier-close",!0).html("×").on("click",function(){f.transition().call(s)});for(var h=f.append("p"),v=l.split(//g),m=0;m{"use strict";var v0=rd().dfltConfig,J3=j3(),K3=d8.exports={};K3.log=function(){var e;if(v0.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};K3.warn=function(){var e;if(v0.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};K3.error=function(){var e;if(v0.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var o_=me((Zme,p8)=>{"use strict";p8.exports=function(){}});var Q3=me((Yme,m8)=>{"use strict";m8.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),a=0;a{y8.exports=Ej;function Ej(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var x8=me((Xme,_8)=>{_8.exports=Lj;function Lj(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var w8=me((jme,b8)=>{b8.exports=Dj;function Dj(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var $3=me((Jme,T8)=>{T8.exports=Pj;function Pj(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var M8=me((Kme,A8)=>{A8.exports=zj;function zj(e,t){if(e===t){var r=t[1],i=t[2],a=t[3],s=t[6],l=t[7],f=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=s,e[11]=t[14],e[12]=a,e[13]=l,e[14]=f}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var k8=me((Qme,S8)=>{S8.exports=Ij;function Ij(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],f=t[5],h=t[6],v=t[7],m=t[8],_=t[9],T=t[10],S=t[11],C=t[12],D=t[13],E=t[14],I=t[15],B=r*f-i*l,q=r*h-a*l,z=r*v-s*l,O=i*h-a*f,H=i*v-s*f,V=a*v-s*h,W=m*D-_*C,J=m*E-T*C,te=m*I-S*C,ne=_*E-T*D,oe=_*I-S*D,fe=T*I-S*E,ve=B*fe-q*oe+z*ne+O*te-H*J+V*W;return ve?(ve=1/ve,e[0]=(f*fe-h*oe+v*ne)*ve,e[1]=(a*oe-i*fe-s*ne)*ve,e[2]=(D*V-E*H+I*O)*ve,e[3]=(T*H-_*V-S*O)*ve,e[4]=(h*te-l*fe-v*J)*ve,e[5]=(r*fe-a*te+s*J)*ve,e[6]=(E*z-C*V-I*q)*ve,e[7]=(m*V-T*z+S*q)*ve,e[8]=(l*oe-f*te+v*W)*ve,e[9]=(i*te-r*oe-s*W)*ve,e[10]=(C*H-D*z+I*B)*ve,e[11]=(_*z-m*H-S*B)*ve,e[12]=(f*J-l*ne-h*W)*ve,e[13]=(r*ne-i*J+a*W)*ve,e[14]=(D*q-C*O-E*B)*ve,e[15]=(m*O-_*q+T*B)*ve,e):null}});var E8=me(($me,C8)=>{C8.exports=Rj;function Rj(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],f=t[5],h=t[6],v=t[7],m=t[8],_=t[9],T=t[10],S=t[11],C=t[12],D=t[13],E=t[14],I=t[15];return e[0]=f*(T*I-S*E)-_*(h*I-v*E)+D*(h*S-v*T),e[1]=-(i*(T*I-S*E)-_*(a*I-s*E)+D*(a*S-s*T)),e[2]=i*(h*I-v*E)-f*(a*I-s*E)+D*(a*v-s*h),e[3]=-(i*(h*S-v*T)-f*(a*S-s*T)+_*(a*v-s*h)),e[4]=-(l*(T*I-S*E)-m*(h*I-v*E)+C*(h*S-v*T)),e[5]=r*(T*I-S*E)-m*(a*I-s*E)+C*(a*S-s*T),e[6]=-(r*(h*I-v*E)-l*(a*I-s*E)+C*(a*v-s*h)),e[7]=r*(h*S-v*T)-l*(a*S-s*T)+m*(a*v-s*h),e[8]=l*(_*I-S*D)-m*(f*I-v*D)+C*(f*S-v*_),e[9]=-(r*(_*I-S*D)-m*(i*I-s*D)+C*(i*S-s*_)),e[10]=r*(f*I-v*D)-l*(i*I-s*D)+C*(i*v-s*f),e[11]=-(r*(f*S-v*_)-l*(i*S-s*_)+m*(i*v-s*f)),e[12]=-(l*(_*E-T*D)-m*(f*E-h*D)+C*(f*T-h*_)),e[13]=r*(_*E-T*D)-m*(i*E-a*D)+C*(i*T-a*_),e[14]=-(r*(f*E-h*D)-l*(i*E-a*D)+C*(i*h-a*f)),e[15]=r*(f*T-h*_)-l*(i*T-a*_)+m*(i*h-a*f),e}});var D8=me((eye,L8)=>{L8.exports=Fj;function Fj(e){var t=e[0],r=e[1],i=e[2],a=e[3],s=e[4],l=e[5],f=e[6],h=e[7],v=e[8],m=e[9],_=e[10],T=e[11],S=e[12],C=e[13],D=e[14],E=e[15],I=t*l-r*s,B=t*f-i*s,q=t*h-a*s,z=r*f-i*l,O=r*h-a*l,H=i*h-a*f,V=v*C-m*S,W=v*D-_*S,J=v*E-T*S,te=m*D-_*C,ne=m*E-T*C,oe=_*E-T*D;return I*oe-B*ne+q*te+z*J-O*W+H*V}});var z8=me((tye,P8)=>{P8.exports=qj;function qj(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],f=t[4],h=t[5],v=t[6],m=t[7],_=t[8],T=t[9],S=t[10],C=t[11],D=t[12],E=t[13],I=t[14],B=t[15],q=r[0],z=r[1],O=r[2],H=r[3];return e[0]=q*i+z*f+O*_+H*D,e[1]=q*a+z*h+O*T+H*E,e[2]=q*s+z*v+O*S+H*I,e[3]=q*l+z*m+O*C+H*B,q=r[4],z=r[5],O=r[6],H=r[7],e[4]=q*i+z*f+O*_+H*D,e[5]=q*a+z*h+O*T+H*E,e[6]=q*s+z*v+O*S+H*I,e[7]=q*l+z*m+O*C+H*B,q=r[8],z=r[9],O=r[10],H=r[11],e[8]=q*i+z*f+O*_+H*D,e[9]=q*a+z*h+O*T+H*E,e[10]=q*s+z*v+O*S+H*I,e[11]=q*l+z*m+O*C+H*B,q=r[12],z=r[13],O=r[14],H=r[15],e[12]=q*i+z*f+O*_+H*D,e[13]=q*a+z*h+O*T+H*E,e[14]=q*s+z*v+O*S+H*I,e[15]=q*l+z*m+O*C+H*B,e}});var R8=me((rye,I8)=>{I8.exports=Nj;function Nj(e,t,r){var i=r[0],a=r[1],s=r[2],l,f,h,v,m,_,T,S,C,D,E,I;return t===e?(e[12]=t[0]*i+t[4]*a+t[8]*s+t[12],e[13]=t[1]*i+t[5]*a+t[9]*s+t[13],e[14]=t[2]*i+t[6]*a+t[10]*s+t[14],e[15]=t[3]*i+t[7]*a+t[11]*s+t[15]):(l=t[0],f=t[1],h=t[2],v=t[3],m=t[4],_=t[5],T=t[6],S=t[7],C=t[8],D=t[9],E=t[10],I=t[11],e[0]=l,e[1]=f,e[2]=h,e[3]=v,e[4]=m,e[5]=_,e[6]=T,e[7]=S,e[8]=C,e[9]=D,e[10]=E,e[11]=I,e[12]=l*i+m*a+C*s+t[12],e[13]=f*i+_*a+D*s+t[13],e[14]=h*i+T*a+E*s+t[14],e[15]=v*i+S*a+I*s+t[15]),e}});var q8=me((aye,F8)=>{F8.exports=Bj;function Bj(e,t,r){var i=r[0],a=r[1],s=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var B8=me((iye,N8)=>{N8.exports=Oj;function Oj(e,t,r,i){var a=i[0],s=i[1],l=i[2],f=Math.sqrt(a*a+s*s+l*l),h,v,m,_,T,S,C,D,E,I,B,q,z,O,H,V,W,J,te,ne,oe,fe,ve,Me;return Math.abs(f)<1e-6?null:(f=1/f,a*=f,s*=f,l*=f,h=Math.sin(r),v=Math.cos(r),m=1-v,_=t[0],T=t[1],S=t[2],C=t[3],D=t[4],E=t[5],I=t[6],B=t[7],q=t[8],z=t[9],O=t[10],H=t[11],V=a*a*m+v,W=s*a*m+l*h,J=l*a*m-s*h,te=a*s*m-l*h,ne=s*s*m+v,oe=l*s*m+a*h,fe=a*l*m+s*h,ve=s*l*m-a*h,Me=l*l*m+v,e[0]=_*V+D*W+q*J,e[1]=T*V+E*W+z*J,e[2]=S*V+I*W+O*J,e[3]=C*V+B*W+H*J,e[4]=_*te+D*ne+q*oe,e[5]=T*te+E*ne+z*oe,e[6]=S*te+I*ne+O*oe,e[7]=C*te+B*ne+H*oe,e[8]=_*fe+D*ve+q*Me,e[9]=T*fe+E*ve+z*Me,e[10]=S*fe+I*ve+O*Me,e[11]=C*fe+B*ve+H*Me,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var U8=me((nye,O8)=>{O8.exports=Uj;function Uj(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[4],l=t[5],f=t[6],h=t[7],v=t[8],m=t[9],_=t[10],T=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*a+v*i,e[5]=l*a+m*i,e[6]=f*a+_*i,e[7]=h*a+T*i,e[8]=v*a-s*i,e[9]=m*a-l*i,e[10]=_*a-f*i,e[11]=T*a-h*i,e}});var H8=me((oye,V8)=>{V8.exports=Vj;function Vj(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],f=t[2],h=t[3],v=t[8],m=t[9],_=t[10],T=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a-v*i,e[1]=l*a-m*i,e[2]=f*a-_*i,e[3]=h*a-T*i,e[8]=s*i+v*a,e[9]=l*i+m*a,e[10]=f*i+_*a,e[11]=h*i+T*a,e}});var Z8=me((sye,G8)=>{G8.exports=Hj;function Hj(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],f=t[2],h=t[3],v=t[4],m=t[5],_=t[6],T=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a+v*i,e[1]=l*a+m*i,e[2]=f*a+_*i,e[3]=h*a+T*i,e[4]=v*a-s*i,e[5]=m*a-l*i,e[6]=_*a-f*i,e[7]=T*a-h*i,e}});var W8=me((lye,Y8)=>{Y8.exports=Gj;function Gj(e,t,r){var i,a,s,l=r[0],f=r[1],h=r[2],v=Math.sqrt(l*l+f*f+h*h);return Math.abs(v)<1e-6?null:(v=1/v,l*=v,f*=v,h*=v,i=Math.sin(t),a=Math.cos(t),s=1-a,e[0]=l*l*s+a,e[1]=f*l*s+h*i,e[2]=h*l*s-f*i,e[3]=0,e[4]=l*f*s-h*i,e[5]=f*f*s+a,e[6]=h*f*s+l*i,e[7]=0,e[8]=l*h*s+f*i,e[9]=f*h*s-l*i,e[10]=h*h*s+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var j8=me((uye,X8)=>{X8.exports=Zj;function Zj(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],f=i+i,h=a+a,v=s+s,m=i*f,_=i*h,T=i*v,S=a*h,C=a*v,D=s*v,E=l*f,I=l*h,B=l*v;return e[0]=1-(S+D),e[1]=_+B,e[2]=T-I,e[3]=0,e[4]=_-B,e[5]=1-(m+D),e[6]=C+E,e[7]=0,e[8]=T+I,e[9]=C-E,e[10]=1-(m+S),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var K8=me((fye,J8)=>{J8.exports=Yj;function Yj(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var $8=me((cye,Q8)=>{Q8.exports=Wj;function Wj(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var tS=me((hye,eS)=>{eS.exports=Xj;function Xj(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var aS=me((vye,rS)=>{rS.exports=jj;function jj(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var nS=me((dye,iS)=>{iS.exports=Jj;function Jj(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ew=me((pye,oS)=>{oS.exports=Kj;function Kj(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=r+r,f=i+i,h=a+a,v=r*l,m=i*l,_=i*f,T=a*l,S=a*f,C=a*h,D=s*l,E=s*f,I=s*h;return e[0]=1-_-C,e[1]=m+I,e[2]=T-E,e[3]=0,e[4]=m-I,e[5]=1-v-C,e[6]=S+D,e[7]=0,e[8]=T+E,e[9]=S-D,e[10]=1-v-_,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var lS=me((mye,sS)=>{sS.exports=Qj;function Qj(e,t,r,i,a,s,l){var f=1/(r-t),h=1/(a-i),v=1/(s-l);return e[0]=s*2*f,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s*2*h,e[6]=0,e[7]=0,e[8]=(r+t)*f,e[9]=(a+i)*h,e[10]=(l+s)*v,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*s*2*v,e[15]=0,e}});var fS=me((yye,uS)=>{uS.exports=$j;function $j(e,t,r,i,a){var s=1/Math.tan(t/2),l=1/(i-a);return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+i)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*i*l,e[15]=0,e}});var hS=me((gye,cS)=>{cS.exports=eJ;function eJ(e,t,r,i){var a=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),l=Math.tan(t.leftDegrees*Math.PI/180),f=Math.tan(t.rightDegrees*Math.PI/180),h=2/(l+f),v=2/(a+s);return e[0]=h,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=v,e[6]=0,e[7]=0,e[8]=-((l-f)*h*.5),e[9]=(a-s)*v*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e}});var dS=me((_ye,vS)=>{vS.exports=tJ;function tJ(e,t,r,i,a,s,l){var f=1/(t-r),h=1/(i-a),v=1/(s-l);return e[0]=-2*f,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*h,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*v,e[11]=0,e[12]=(t+r)*f,e[13]=(a+i)*h,e[14]=(l+s)*v,e[15]=1,e}});var mS=me((xye,pS)=>{var rJ=$3();pS.exports=aJ;function aJ(e,t,r,i){var a,s,l,f,h,v,m,_,T,S,C=t[0],D=t[1],E=t[2],I=i[0],B=i[1],q=i[2],z=r[0],O=r[1],H=r[2];return Math.abs(C-z)<1e-6&&Math.abs(D-O)<1e-6&&Math.abs(E-H)<1e-6?rJ(e):(m=C-z,_=D-O,T=E-H,S=1/Math.sqrt(m*m+_*_+T*T),m*=S,_*=S,T*=S,a=B*T-q*_,s=q*m-I*T,l=I*_-B*m,S=Math.sqrt(a*a+s*s+l*l),S?(S=1/S,a*=S,s*=S,l*=S):(a=0,s=0,l=0),f=_*l-T*s,h=T*a-m*l,v=m*s-_*a,S=Math.sqrt(f*f+h*h+v*v),S?(S=1/S,f*=S,h*=S,v*=S):(f=0,h=0,v=0),e[0]=a,e[1]=f,e[2]=m,e[3]=0,e[4]=s,e[5]=h,e[6]=_,e[7]=0,e[8]=l,e[9]=v,e[10]=T,e[11]=0,e[12]=-(a*C+s*D+l*E),e[13]=-(f*C+h*D+v*E),e[14]=-(m*C+_*D+T*E),e[15]=1,e)}});var gS=me((bye,yS)=>{yS.exports=iJ;function iJ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var tw=me((wye,_S)=>{_S.exports={create:g8(),clone:x8(),copy:w8(),identity:$3(),transpose:M8(),invert:k8(),adjoint:E8(),determinant:D8(),multiply:z8(),translate:R8(),scale:q8(),rotate:B8(),rotateX:U8(),rotateY:H8(),rotateZ:Z8(),fromRotation:W8(),fromRotationTranslation:j8(),fromScaling:K8(),fromTranslation:$8(),fromXRotation:tS(),fromYRotation:aS(),fromZRotation:nS(),fromQuat:ew(),frustum:lS(),perspective:fS(),perspectiveFromFieldOfView:hS(),ortho:dS(),lookAt:mS(),str:gS()}});var s_=me(Cn=>{"use strict";var nJ=tw();Cn.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var oJ=Ja(),xS=Th(),sJ=s_(),lJ=tw();function uJ(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function fJ(e){var t=oJ.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function bS(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function cJ(e,t){wS("global",e,t)}function wS(e,t,r){var i="plotly.js-style-"+e,a=document.getElementById(i);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",i),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var s=a.sheet;s?s.insertRule?s.insertRule(t+"{"+r+"}",0):s.addRule?s.addRule(t,r,0):xS.warn("addStyleRule failed"):xS.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function hJ(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&bS(r)}function vJ(e,t,r,i,a,s){var l=i.split(":"),f=a.split(":"),h="data-btn-style-event-added";s||(s=document),s.querySelectorAll(e).forEach(function(v){v.getAttribute(h)||(v.addEventListener("mouseenter",function(){var m=this.querySelector(r);m&&(m.style[l[0]]=l[1])}),v.addEventListener("mouseleave",function(){var m=this.querySelector(r);m&&(t&&this.matches(t)?m.style[l[0]]=l[1]:m.style[f[0]]=f[1])}),v.setAttribute(h,!0))})}function dJ(e){var t=AS(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(i){var a=TS(i);if(a){var s=sJ.convertCssMatrix(a);r=lJ.multiply(r,r,s)}}),r}function TS(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(i){return+i})}function AS(e){for(var t=[];pJ(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function pJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function mJ(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}MS.exports={getGraphDiv:uJ,isPlotDiv:fJ,removeElement:bS,addStyleRule:cJ,addRelatedStyleRule:wS,deleteRelatedStyleRule:hJ,setStyleOnHover:vJ,getFullTransformMatrix:dJ,getElementTransformMatrix:TS,getElementAndAncestors:AS,equalDomRects:mJ}});var Py=me((Mye,SS)=>{"use strict";SS.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var il=me((Sye,zS)=>{"use strict";var CS=mn().extendFlat,yJ=cc(),ES={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},LS={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},gJ=ES.flags.slice().concat(["fullReplot"]),_J=LS.flags.slice().concat("layoutReplot");zS.exports={traces:ES,layout:LS,traceFlags:function(){return kS(gJ)},layoutFlags:function(){return kS(_J)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var i=r.split("+"),a=0;a{"use strict";rw.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};rw.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var aw=me((Cye,IS)=>{"use strict";IS.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var nl=me(zy=>{"use strict";var RS=aw(),xJ=RS.FORMAT_LINK,bJ=RS.DATE_FORMAT_LINK;function wJ(e){var t=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(t?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,xJ,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,bJ,"for details on the date formatting syntax."].join(" ")}zy.templateFormatStringDescription=wJ;function iw(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var i=[],a=0;a{"use strict";function Ah(e,t){return t?t.d2l(e):e}function FS(e,t){return t?t.l2d(e):e}function TJ(e){return e.x0}function AJ(e){return e.x1}function MJ(e){return e.y0}function SJ(e){return e.y1}function qS(e){return e.x0shift||0}function NS(e){return e.x1shift||0}function BS(e){return e.y0shift||0}function OS(e){return e.y1shift||0}function l_(e,t){return Ah(e.x1,t)+NS(e)-Ah(e.x0,t)-qS(e)}function u_(e,t,r){return Ah(e.y1,r)+OS(e)-Ah(e.y0,r)-BS(e)}function kJ(e,t){return Math.abs(l_(e,t))}function CJ(e,t,r){return Math.abs(u_(e,t,r))}function EJ(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(l_(e,t),2)+Math.pow(u_(e,t,r),2))}function LJ(e,t){return FS((Ah(e.x1,t)+NS(e)+Ah(e.x0,t)+qS(e))/2,t)}function DJ(e,t,r){return FS((Ah(e.y1,r)+OS(e)+Ah(e.y0,r)+BS(e))/2,r)}function PJ(e,t,r){return e.type!=="line"?void 0:u_(e,t,r)/l_(e,t)}US.exports={x0:TJ,x1:AJ,y0:MJ,y1:SJ,slope:PJ,dx:l_,dy:u_,width:kJ,height:CJ,length:EJ,xcenter:LJ,ycenter:DJ}});var GS=me((Dye,HS)=>{"use strict";var zJ=il().overrideAll,ad=ms(),VS=qo(),IJ=hc().dash,Mh=mn().extendFlat,RJ=nl().shapeTexttemplateAttrs,FJ=f_();HS.exports=zJ({newshape:{visible:Mh({},ad.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Mh({},ad.legend,{}),legendgroup:Mh({},ad.legendgroup,{}),legendgrouptitle:{text:Mh({},ad.legendgrouptitle.text,{}),font:VS({})},legendrank:Mh({},ad.legendrank,{}),legendwidth:Mh({},ad.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Mh({},IJ,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Mh({},ad.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:RJ({newshape:!0},{keys:Object.keys(FJ)}),font:VS({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var YS=me((Pye,ZS)=>{"use strict";var qJ=hc().dash,NJ=mn().extendFlat;ZS.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:NJ({},qJ,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var c_=me((zye,WS)=>{"use strict";WS.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var d0=me((Iye,KS)=>{"use strict";var nw=qo(),BJ=Py(),h_=Af(),XS=GS(),jS=YS(),OJ=c_(),JS=mn().extendFlat,v_=nw({editType:"calc"});v_.family.dflt='"Open Sans", verdana, arial, sans-serif';v_.size.dflt=12;v_.color.dflt=h_.defaultLine;KS.exports={font:v_,title:{text:{valType:"string",editType:"layoutstyle"},font:nw({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:nw({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:JS(OJ({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:h_.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:h_.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:h_.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:XS.newshape,activeshape:XS.activeshape,newselection:jS.newselection,activeselection:jS.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:JS({},BJ.transition,{editType:"none"})}});var QS=me(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var la=me(Pa=>{"use strict";var p0=Th(),$S=o_(),e9=Q3(),UJ=cc(),VJ=Dy().addStyleRule,t9=mn(),HJ=ms(),GJ=d0(),ZJ=t9.extendFlat,ow=t9.extendDeepAll;Pa.modules={};Pa.allCategories={};Pa.allTypes=[];Pa.subplotsRegistry={};Pa.componentsRegistry={};Pa.layoutArrayContainers=[];Pa.layoutArrayRegexes=[];Pa.traceLayoutAttributes={};Pa.localeRegistry={};Pa.apiMethodRegistry={};Pa.collectableSubplotTypes=null;Pa.register=function(t){if(Pa.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var KJ=s0().timeFormat,h9=Da(),sw=Th(),kh=u0().mod,g0=Zi(),Gl=g0.BADNUM,Fs=g0.ONEDAY,Iy=g0.ONEHOUR,Sh=g0.ONEMIN,y0=g0.ONESEC,Ry=g0.EPOCHJD,vc=la(),o9=s0().utcFormat,QJ=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,$J=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,s9=new Date().getFullYear()-70;function dc(e){return e&&vc.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}En.dateTick0=function(e,t){var r=eK(e,!!t);if(t<2)return r;var i=En.dateTime2ms(r,e);return i+=Fs*(t-1),En.ms2DateTime(i,0,e)};function eK(e,t){return dc(e)?t?vc.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:vc.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}En.dfltRange=function(e){return dc(e)?vc.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};En.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var p_,m_;En.dateTime2ms=function(e,t){if(En.isJSDate(e)){var r=e.getTimezoneOffset()*Sh,i=(e.getUTCMinutes()-e.getMinutes())*Sh+(e.getUTCSeconds()-e.getSeconds())*y0+(e.getUTCMilliseconds()-e.getMilliseconds());if(i){var a=3*Sh;r=r-a/2+kh(i-r+a/2,a)}return e=Number(e)-r,e>=p_&&e<=m_?e:Gl}if(typeof e!="string"&&typeof e!="number")return Gl;e=String(e);var s=dc(t),l=e.charAt(0);s&&(l==="G"||l==="g")&&(e=e.substr(1),t="");var f=s&&t.substr(0,7)==="chinese",h=e.match(f?$J:QJ);if(!h)return Gl;var v=h[1],m=h[3]||"1",_=Number(h[5]||1),T=Number(h[7]||0),S=Number(h[9]||0),C=Number(h[11]||0);if(s){if(v.length===2)return Gl;v=Number(v);var D;try{var E=vc.getComponentMethod("calendars","getCal")(t);if(f){var I=m.charAt(m.length-1)==="i";m=parseInt(m,10),D=E.newDate(v,E.toMonthIndex(v,m,I),_)}else D=E.newDate(v,Number(m),_)}catch(q){return Gl}return D?(D.toJD()-Ry)*Fs+T*Iy+S*Sh+C*y0:Gl}v.length===2?v=(Number(v)+2e3-s9)%100+s9:v=Number(v),m-=1;var B=new Date(Date.UTC(2e3,m,_,T,S));return B.setUTCFullYear(v),B.getUTCMonth()!==m||B.getUTCDate()!==_?Gl:B.getTime()+C*y0};p_=En.MIN_MS=En.dateTime2ms("-9999");m_=En.MAX_MS=En.dateTime2ms("9999-12-31 23:59:59.9999");En.isDateTime=function(e,t){return En.dateTime2ms(e,t)!==Gl};function m0(e,t){return String(e+Math.pow(10,t)).substr(1)}var d_=90*Fs,l9=3*Iy,u9=5*Sh;En.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=p_&&e<=m_))return Gl;t||(t=0);var i=Math.floor(kh(e+.05,1)*10),a=Math.round(e-i/10),s,l,f,h,v,m;if(dc(r)){var _=Math.floor(a/Fs)+Ry,T=Math.floor(kh(e,Fs));try{s=vc.getComponentMethod("calendars","getCal")(r).fromJD(_).formatDate("yyyy-mm-dd")}catch(S){s=o9("G%Y-%m-%d")(new Date(a))}if(s.charAt(0)==="-")for(;s.length<11;)s="-0"+s.substr(1);else for(;s.length<10;)s="0"+s;l=t=p_+Fs&&e<=m_-Fs))return Gl;var t=Math.floor(kh(e+.05,1)*10),r=new Date(Math.round(e-t/10)),i=KJ("%Y-%m-%d")(r),a=r.getHours(),s=r.getMinutes(),l=r.getSeconds(),f=r.getUTCMilliseconds()*10+t;return v9(i,a,s,l,f)};function v9(e,t,r,i,a){if((t||r||i||a)&&(e+=" "+m0(t,2)+":"+m0(r,2),(i||a)&&(e+=":"+m0(i,2),a))){for(var s=4;a%10===0;)s-=1,a/=10;e+="."+m0(a,s)}return e}En.cleanDate=function(e,t,r){if(e===Gl)return t;if(En.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(dc(r))return sw.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=En.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!En.isDateTime(e,r))return sw.error("unrecognized date",e),t;return e};var tK=/%\d?f/g,rK=/%h/g,aK={1:"1",2:"1",3:"2",4:"2"};function f9(e,t,r,i){e=e.replace(tK,function(s){var l=Math.min(+s.charAt(1)||6,6),f=(t/1e3%1+2).toFixed(l).substr(2).replace(/0+$/,"")||"0";return f});var a=new Date(Math.floor(t+.05));if(e=e.replace(rK,function(){return aK[r("%q")(a)]}),dc(i))try{e=vc.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(s){return"Invalid"}return r(e)(a)}var iK=[59,59.9,59.99,59.999,59.9999];function nK(e,t){var r=kh(e+.05,Fs),i=m0(Math.floor(r/Iy),2)+":"+m0(kh(Math.floor(r/Sh),60),2);if(t!=="M"){h9(t)||(t=0);var a=Math.min(kh(e/y0,60),iK[t]),s=(100+a).toFixed(t).substr(1);t>0&&(s=s.replace(/0+$/,"").replace(/[\.]$/,"")),i+=":"+s}return i}En.formatDate=function(e,t,r,i,a,s){if(a=dc(a)&&a,!t)if(r==="y")t=s.year;else if(r==="m")t=s.month;else if(r==="d")t=s.dayMonth+` -`+s.year;else return nK(e,r)+` -`+f9(s.dayMonthYear,e,i,a);return f9(t,e,i,a)};var c9=3*Fs;En.incrementMonth=function(e,t,r){r=dc(r)&&r;var i=kh(e,Fs);if(e=Math.round(e-i),r)try{var a=Math.round(e/Fs)+Ry,s=vc.getComponentMethod("calendars","getCal")(r),l=s.fromJD(a);return t%12?s.add(l,t,"m"):s.add(l,t/12,"y"),(l.toJD()-Ry)*Fs+i}catch(h){sw.error("invalid ms "+e+" in calendar "+r)}var f=new Date(e+c9);return f.setUTCMonth(f.getUTCMonth()+t)+i-c9};En.findExactDates=function(e,t){for(var r=0,i=0,a=0,s=0,l,f,h=dc(t)&&vc.getComponentMethod("calendars","getCal")(t),v=0;v{"use strict";p9.exports=function(t){return t}});var uw=me(pc=>{"use strict";var oK=Da(),sK=Th(),lK=y_(),uK=Zi().BADNUM,lw=1e-9;pc.findBin=function(e,t,r){if(oK(t.start))return r?Math.ceil((e-t.start)/t.size-lw)-1:Math.floor((e-t.start)/t.size+lw);var i=0,a=t.length,s=0,l=a>1?(t[a-1]-t[0])/(a-1):1,f,h;for(l>=0?h=r?fK:cK:h=r?vK:hK,e+=l*lw*(r?-1:1)*(l>=0?1:-1);i90&&sK.log("Long binary search..."),i-1};function fK(e,t){return et}function vK(e,t){return e>=t}pc.sorterAsc=function(e,t){return e-t};pc.sorterDes=function(e,t){return t-e};pc.distinctVals=function(e){var t=e.slice();t.sort(pc.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===uK;r--);for(var i=t[r]-t[0]||1,a=i/(r||1)/1e4,s=[],l,f=0;f<=r;f++){var h=t[f],v=h-l;l===void 0?(s.push(h),l=h):v>a&&(i=Math.min(i,v),s.push(h),l=h)}return{vals:s,minDiff:i}};pc.roundUp=function(e,t,r){for(var i=0,a=t.length-1,s,l=0,f=r?0:1,h=r?1:0,v=r?Math.ceil:Math.floor;i0&&(i=1),r&&i)return e.sort(t)}return i?e:e.reverse()};pc.findIndexOfMin=function(e,t){t=t||lK;for(var r=1/0,i,a=0;a{"use strict";m9.exports=function(t){return Object.keys(t).sort()}});var y9=me(Ln=>{"use strict";var Fy=Da(),dK=al().isArrayOrTypedArray;Ln.aggNums=function(e,t,r,i){var a,s;if((!i||i>r.length)&&(i=r.length),Fy(t)||(t=!1),dK(r[0])){for(s=new Array(i),a=0;ae.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var w9=me((Hye,b9)=>{"use strict";var g9=u0(),fw=g9.mod,pK=g9.modHalf,qy=Math.PI,Ch=2*qy;function mK(e){return e/180*qy}function yK(e){return e/qy*180}function cw(e){return Math.abs(e[1]-e[0])>Ch-1e-14}function _9(e,t){return pK(t-e,Ch)}function gK(e,t){return Math.abs(_9(e,t))}function x9(e,t){if(cw(t))return!0;var r,i;t[0]i&&(i+=Ch);var a=fw(e,Ch),s=a+Ch;return a>=r&&a<=i||s>=r&&s<=i}function _K(e,t,r,i){if(!x9(t,i))return!1;var a,s;return r[0]=a&&e<=s}function hw(e,t,r,i,a,s,l){a=a||0,s=s||0;var f=cw([r,i]),h,v,m,_,T;f?(h=0,v=qy,m=Ch):r{"use strict";id.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};id.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};id.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};id.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};id.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};id.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var S9=me(nd=>{"use strict";var vw=u0().mod;nd.segmentsIntersect=M9;function M9(e,t,r,i,a,s,l,f){var h=r-e,v=a-e,m=l-a,_=i-t,T=s-t,S=f-s,C=h*S-m*_;if(C===0)return null;var D=(v*S-m*T)/C,E=(v*_-h*T)/C;return E<0||E>1||D<0||D>1?null:{x:e+h*D,y:t+_*D}}nd.segmentDistance=function(t,r,i,a,s,l,f,h){if(M9(t,r,i,a,s,l,f,h))return 0;var v=i-t,m=a-r,_=f-s,T=h-l,S=v*v+m*m,C=_*_+T*T,D=Math.min(__(v,m,S,s-t,l-r),__(v,m,S,f-t,h-r),__(_,T,C,t-s,r-l),__(_,T,C,i-s,a-l));return Math.sqrt(D)};function __(e,t,r,i,a){var s=i*e+a*t;if(s<0)return i*i+a*a;if(s>r){var l=i-e,f=a-t;return l*l+f*f}else{var h=i*t-a*e;return h*h/r}}var x_,dw,A9;nd.getTextLocation=function(t,r,i,a){if((t!==dw||a!==A9)&&(x_={},dw=t,A9=a),x_[i])return x_[i];var s=t.getPointAtLength(vw(i-a/2,r)),l=t.getPointAtLength(vw(i+a/2,r)),f=Math.atan((l.y-s.y)/(l.x-s.x)),h=t.getPointAtLength(vw(i,r)),v=(h.x*4+s.x+l.x)/6,m=(h.y*4+s.y+l.y)/6,_={x:v,y:m,theta:f};return x_[i]=_,_};nd.clearLocationCache=function(){dw=null};nd.getVisibleSegment=function(t,r,i){var a=r.left,s=r.right,l=r.top,f=r.bottom,h=0,v=t.getTotalLength(),m=v,_,T;function S(D){var E=t.getPointAtLength(D);D===0?_=E:D===v&&(T=E);var I=E.xs?E.x-s:0,B=E.yf?E.y-f:0;return Math.sqrt(I*I+B*B)}for(var C=S(h);C;){if(h+=C+i,h>m)return;C=S(h)}for(C=S(m);C;){if(m-=C+i,h>m)return;C=S(m)}return{min:h,max:m,len:m-h,total:v,isClosed:h===0&&m===v&&Math.abs(_.x-T.x)<.1&&Math.abs(_.y-T.y)<.1}};nd.findPointOnPath=function(t,r,i,a){a=a||{};for(var s=a.pathLength||t.getTotalLength(),l=a.tolerance||.001,f=a.iterationLimit||30,h=t.getPointAtLength(0)[i]>t.getPointAtLength(s)[i]?-1:1,v=0,m=0,_=s,T,S,C;v0?_=T:m=T,v++}return S}});var b_=me(Ny=>{"use strict";var mc={};Ny.throttle=function(t,r,i){var a=mc[t],s=Date.now();if(!a){for(var l in mc)mc[l].tsa.ts+r){f();return}a.timer=setTimeout(function(){f(),a.timer=null},r)};Ny.done=function(e){var t=mc[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var i=t.onDone;t.onDone=function(){i&&i(),r(),t.onDone=null}})};Ny.clear=function(e){if(e)k9(mc[e]),delete mc[e];else for(var t in mc)Ny.clear(t)};function k9(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var E9=me((Wye,C9)=>{"use strict";C9.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var L9=me((Xye,w_)=>{"use strict";w_.exports=pw;w_.exports.isMobile=pw;w_.exports.default=pw;var TK=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,AK=/CrOS/,MK=/android|ipad|playbook|silk/i;function pw(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=TK.test(t)&&!AK.test(t)||!!e.tablet&&MK.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var P9=me((jye,D9)=>{"use strict";var SK=Da(),kK=L9();D9.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=CK(),typeof r!="string")return!0;var i=kK({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!i)for(var a=r.split(" "),s=1;s-1;f--){var h=a[f];if(h.substr(0,8)==="Version/"){var v=h.substr(8).split(".")[0];if(SK(v)&&(v=+v),v>=13)return!0}}}return i};function CK(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var I9=me((Jye,z9)=>{"use strict";var EK=Ja();z9.exports=function(t,r,i){var a=t.selectAll("g."+i.replace(/\s/g,".")).data(r,function(l){return l[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",i),a.order();var s=t.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(l){l[0][s]=EK.select(this)}),a}});var F9=me((Kye,R9)=>{"use strict";var LK=la();R9.exports=function(t,r){for(var i=t._context.locale,a=0;a<2;a++){for(var s=t._context.locales,l=0;l<2;l++){var f=(s[i]||{}).dictionary;if(f){var h=f[r];if(h)return h}s=LK.localeRegistry}var v=i.split("-")[0];if(v===i)break;i=v}return r}});var N9=me((Qye,q9)=>{"use strict";q9.exports=function(t){for(var r={},i=[],a=0,s=0;s{"use strict";B9.exports=function(t){for(var r=zK(t)?PK:DK,i=[],a=0;a{"use strict";U9.exports=function(t,r){if(!r)return t;var i=1/Math.abs(r),a=i>1?(i*t+i*r)/i:t+r,s=String(a).length;if(s>16){var l=String(r).length,f=String(t).length;if(s>=f+l){var h=parseFloat(a).toPrecision(12);h.indexOf("e+")===-1&&(a=+h)}}return a}});var G9=me((tge,H9)=>{"use strict";var IK=Da(),RK=Zi().BADNUM,FK=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;H9.exports=function(t){return typeof t=="string"&&(t=t.replace(FK,"")),IK(t)?Number(t):RK}});var Bt=me((rge,ak)=>{"use strict";var By=Ja(),qK=s0().utcFormat,NK=N3().format,J9=Da(),K9=Zi(),Q9=K9.FP_SAFE,BK=-Q9,Z9=K9.BADNUM,tt=ak.exports={};tt.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var Y9={};tt.warnBadFormat=function(e){var t=String(e);Y9[t]||(Y9[t]=1,tt.warn('encountered bad format: "'+t+'"'))};tt.noFormat=function(e){return String(e)};tt.numberFormat=function(e){var t;try{t=NK(tt.adjustFormat(e))}catch(r){return tt.warnBadFormat(e),tt.noFormat}return t};tt.nestedProperty=wy();tt.keyedContainer=q7();tt.relativeAttr=B7();tt.isPlainObject=cc();tt.toLogRange=$1();tt.relinkPrivateKeys=H7();var Eh=al();tt.isArrayBuffer=Eh.isArrayBuffer;tt.isTypedArray=Eh.isTypedArray;tt.isArrayOrTypedArray=Eh.isArrayOrTypedArray;tt.isArray1D=Eh.isArray1D;tt.ensureArray=Eh.ensureArray;tt.concat=Eh.concat;tt.maxRowLength=Eh.maxRowLength;tt.minRowLength=Eh.minRowLength;var $9=u0();tt.mod=$9.mod;tt.modHalf=$9.modHalf;var Lh=l8();tt.valObjectMeta=Lh.valObjectMeta;tt.coerce=Lh.coerce;tt.coerce2=Lh.coerce2;tt.coerceFont=Lh.coerceFont;tt.coercePattern=Lh.coercePattern;tt.coerceHoverinfo=Lh.coerceHoverinfo;tt.coerceSelectionMarkerOpacity=Lh.coerceSelectionMarkerOpacity;tt.validate=Lh.validate;var ol=d9();tt.dateTime2ms=ol.dateTime2ms;tt.isDateTime=ol.isDateTime;tt.ms2DateTime=ol.ms2DateTime;tt.ms2DateTimeLocal=ol.ms2DateTimeLocal;tt.cleanDate=ol.cleanDate;tt.isJSDate=ol.isJSDate;tt.formatDate=ol.formatDate;tt.incrementMonth=ol.incrementMonth;tt.dateTick0=ol.dateTick0;tt.dfltRange=ol.dfltRange;tt.findExactDates=ol.findExactDates;tt.MIN_MS=ol.MIN_MS;tt.MAX_MS=ol.MAX_MS;var od=uw();tt.findBin=od.findBin;tt.sorterAsc=od.sorterAsc;tt.sorterDes=od.sorterDes;tt.distinctVals=od.distinctVals;tt.roundUp=od.roundUp;tt.sort=od.sort;tt.findIndexOfMin=od.findIndexOfMin;tt.sortObjectKeys=g_();var yc=y9();tt.aggNums=yc.aggNums;tt.len=yc.len;tt.mean=yc.mean;tt.geometricMean=yc.geometricMean;tt.median=yc.median;tt.midRange=yc.midRange;tt.variance=yc.variance;tt.stdev=yc.stdev;tt.interp=yc.interp;var Pu=s_();tt.init2dArray=Pu.init2dArray;tt.transposeRagged=Pu.transposeRagged;tt.dot=Pu.dot;tt.translationMatrix=Pu.translationMatrix;tt.rotationMatrix=Pu.rotationMatrix;tt.rotationXYMatrix=Pu.rotationXYMatrix;tt.apply3DTransform=Pu.apply3DTransform;tt.apply2DTransform=Pu.apply2DTransform;tt.apply2DTransform2=Pu.apply2DTransform2;tt.convertCssMatrix=Pu.convertCssMatrix;tt.inverseTransformMatrix=Pu.inverseTransformMatrix;var Sf=w9();tt.deg2rad=Sf.deg2rad;tt.rad2deg=Sf.rad2deg;tt.angleDelta=Sf.angleDelta;tt.angleDist=Sf.angleDist;tt.isFullCircle=Sf.isFullCircle;tt.isAngleInsideSector=Sf.isAngleInsideSector;tt.isPtInsideSector=Sf.isPtInsideSector;tt.pathArc=Sf.pathArc;tt.pathSector=Sf.pathSector;tt.pathAnnulus=Sf.pathAnnulus;var x0=T9();tt.isLeftAnchor=x0.isLeftAnchor;tt.isCenterAnchor=x0.isCenterAnchor;tt.isRightAnchor=x0.isRightAnchor;tt.isTopAnchor=x0.isTopAnchor;tt.isMiddleAnchor=x0.isMiddleAnchor;tt.isBottomAnchor=x0.isBottomAnchor;var b0=S9();tt.segmentsIntersect=b0.segmentsIntersect;tt.segmentDistance=b0.segmentDistance;tt.getTextLocation=b0.getTextLocation;tt.clearLocationCache=b0.clearLocationCache;tt.getVisibleSegment=b0.getVisibleSegment;tt.findPointOnPath=b0.findPointOnPath;var M_=mn();tt.extendFlat=M_.extendFlat;tt.extendDeep=M_.extendDeep;tt.extendDeepAll=M_.extendDeepAll;tt.extendDeepNoArrays=M_.extendDeepNoArrays;var mw=Th();tt.log=mw.log;tt.warn=mw.warn;tt.error=mw.error;var OK=c0();tt.counterRegex=OK.counter;var yw=b_();tt.throttle=yw.throttle;tt.throttleDone=yw.done;tt.clearThrottle=yw.clear;var zu=Dy();tt.getGraphDiv=zu.getGraphDiv;tt.isPlotDiv=zu.isPlotDiv;tt.removeElement=zu.removeElement;tt.addStyleRule=zu.addStyleRule;tt.addRelatedStyleRule=zu.addRelatedStyleRule;tt.deleteRelatedStyleRule=zu.deleteRelatedStyleRule;tt.setStyleOnHover=zu.setStyleOnHover;tt.getFullTransformMatrix=zu.getFullTransformMatrix;tt.getElementTransformMatrix=zu.getElementTransformMatrix;tt.getElementAndAncestors=zu.getElementAndAncestors;tt.equalDomRects=zu.equalDomRects;tt.clearResponsive=E9();tt.preserveDrawingBuffer=P9();tt.makeTraceGroups=I9();tt._=F9();tt.notifier=j3();tt.filterUnique=N9();tt.filterVisible=O9();tt.pushUnique=Q3();tt.increment=V9();tt.cleanNumber=G9();tt.ensureNumber=function(t){return J9(t)?(t=Number(t),t>Q9||t=t?!1:J9(e)&&e>=0&&e%1===0};tt.noop=o_();tt.identity=y_();tt.repeat=function(e,t){for(var r=new Array(t),i=0;ir?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};tt.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};tt.simpleMap=function(e,t,r,i,a){for(var s=e.length,l=new Array(s),f=0;f=Math.pow(2,r)?a>10?(tt.warn("randstr failed uniqueness"),l):e(t,r,i,(a||0)+1):l};tt.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(i){i[t]=e,r[i.name]=i,r.optionList.push(i)},r["_"+t]=e,r};tt.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,i=2*r,a=2*t-1,s=new Array(a),l=new Array(r),f,h,v,m;for(f=0;f=i&&(v-=i*Math.floor(v/i)),v<0?v=-1-v:v>=r&&(v=i-1-v),m+=e[v]*s[h];l[f]=m}return l};tt.syncOrAsync=function(e,t,r){var i,a;function s(){return tt.syncOrAsync(e,t,r)}for(;e.length;)if(a=e.splice(0,1)[0],i=a(t),i&&i.then)return i.then(s);return r&&r(t)};tt.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};tt.noneOrAll=function(e,t,r){if(e){var i=!1,a=!0,s,l;for(s=0;s0?a:0})};tt.fillArray=function(e,t,r,i){if(i=i||tt.identity,tt.isArrayOrTypedArray(e))for(var a=0;aHK.test(window.navigator.userAgent);var GK=/Firefox\/(\d+)\.\d+/;tt.getFirefoxVersion=function(){var e=GK.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};tt.isD3Selection=function(e){return e instanceof By.selection};tt.ensureSingle=function(e,t,r,i){var a=e.select(t+(r?"."+r:""));if(a.size())return a;var s=e.append(t);return r&&s.classed(r,!0),i&&s.call(i),s};tt.ensureSingleById=function(e,t,r,i){var a=e.select(t+"#"+r);if(a.size())return a;var s=e.append(t).attr("id",r);return i&&s.call(i),s};tt.objectFromPath=function(e,t){for(var r=e.split("."),i,a=i={},s=0;s1?a+l[1]:"";if(s&&(l.length>1||f.length>4||r))for(;i.test(f);)f=f.replace(i,"$1"+s+"$2");return f+h};tt.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var rk=/^\w*$/;tt.templateString=function(e,t){var r={};return e.replace(tt.TEMPLATE_STRING_REGEX,function(i,a){var s;return rk.test(a)?s=t[a]:(r[a]=r[a]||tt.nestedProperty(t,a).get,s=r[a](!0)),s!==void 0?s:""})};var WK={max:10,count:0,name:"hovertemplate"};tt.hovertemplateString=function(){return gw.apply(WK,arguments)};var XK={max:10,count:0,name:"texttemplate"};tt.texttemplateString=function(){return gw.apply(XK,arguments)};var jK=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function JK(e){var t=e.match(jK);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var KK={max:10,count:0,name:"texttemplate",parseMultDiv:!0};tt.texttemplateStringForShapes=function(){return gw.apply(KK,arguments)};var W9=/^[:|\|]/;function gw(e,t,r){var i=this,a=arguments;return t||(t={}),e.replace(tt.TEMPLATE_STRING_REGEX,function(s,l,f){var h=l==="xother"||l==="yother",v=l==="_xother"||l==="_yother",m=l==="_xother_"||l==="_yother_",_=l==="xother_"||l==="yother_",T=h||v||_||m,S=l;(v||m)&&(S=S.substring(1)),(_||m)&&(S=S.substring(0,S.length-1));var C=null,D=null;if(i.parseMultDiv){var E=JK(S);S=E.key,C=E.op,D=E.number}var I;if(T){if(I=t[S],I===void 0)return""}else{var B,q;for(q=3;q=A_&&l<=X9,v=f>=A_&&f<=X9;if(h&&(i=10*i+l-A_),v&&(a=10*a+f-A_),!h||!v){if(i!==a)return i-a;if(l!==f)return l-f}}return a-i};var _0=2e9;tt.seedPseudoRandom=function(){_0=2e9};tt.pseudoRandom=function(){var e=_0;return _0=(69069*_0+1)%4294967296,Math.abs(_0-e)<429496729?tt.pseudoRandom():_0/4294967296};tt.fillText=function(e,t,r){var i=Array.isArray(r)?function(l){r.push(l)}:function(l){r.text=l},a=tt.extractOption(e,t,"htx","hovertext");if(tt.isValidTextValue(a))return i(a);var s=tt.extractOption(e,t,"tx","text");if(tt.isValidTextValue(s))return i(s)};tt.isValidTextValue=function(e){return e||e===0};tt.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",i=0;i1&&(v=1):v=0,tt.strTranslate(a-v*(r+l),s-v*(i+f))+tt.strScale(v)+(h?"rotate("+h+(t?"":" "+r+" "+i)+")":"")};tt.setTransormAndDisplay=function(e,t){e.attr("transform",tt.getTextTransform(t)),e.style("display",t.scale?null:"none")};tt.ensureUniformFontSize=function(e,t){var r=tt.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};tt.join2=function(e,t,r){var i=e.length;return i>1?e.slice(0,-1).join(t)+r+e[i-1]:e.join(t)};tt.bigFont=function(e){return Math.round(1.2*e)};var j9=tt.getFirefoxVersion(),QK=j9!==null&&j9<86;tt.getPositionFromD3Event=function(){return QK?[By.event.layerX,By.event.layerY]:[By.event.offsetX,By.event.offsetY]}});var ok=me(()=>{"use strict";var $K=Bt(),ik={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(_w in ik)nk=_w.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),$K.addStyleRule(nk,ik[_w]);var nk,_w});var xw=me((nge,sk)=>{sk.exports=!0});var ww=me((oge,lk)=>{"use strict";var eQ=xw(),bw;typeof window.matchMedia=="function"?bw=!window.matchMedia("(hover: none)").matches:bw=eQ;lk.exports=bw});var C_=me((sge,Tw)=>{"use strict";var w0=typeof Reflect=="object"?Reflect:null,uk=w0&&typeof w0.apply=="function"?w0.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},S_;w0&&typeof w0.ownKeys=="function"?S_=w0.ownKeys:Object.getOwnPropertySymbols?S_=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:S_=function(t){return Object.getOwnPropertyNames(t)};function tQ(e){console&&console.warn&&console.warn(e)}var ck=Number.isNaN||function(t){return t!==t};function Yi(){Yi.init.call(this)}Tw.exports=Yi;Tw.exports.once=nQ;Yi.EventEmitter=Yi;Yi.prototype._events=void 0;Yi.prototype._eventsCount=0;Yi.prototype._maxListeners=void 0;var fk=10;function k_(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Yi,"defaultMaxListeners",{enumerable:!0,get:function(){return fk},set:function(e){if(typeof e!="number"||e<0||ck(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");fk=e}});Yi.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Yi.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||ck(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function hk(e){return e._maxListeners===void 0?Yi.defaultMaxListeners:e._maxListeners}Yi.prototype.getMaxListeners=function(){return hk(this)};Yi.prototype.emit=function(t){for(var r=[],i=1;i0&&(l=r[0]),l instanceof Error)throw l;var f=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw f.context=l,f}var h=s[t];if(h===void 0)return!1;if(typeof h=="function")uk(h,this,r);else for(var v=h.length,m=yk(h,v),i=0;i0&&l.length>a&&!l.warned){l.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=l.length,tQ(f)}return e}Yi.prototype.addListener=function(t,r){return vk(this,t,r,!1)};Yi.prototype.on=Yi.prototype.addListener;Yi.prototype.prependListener=function(t,r){return vk(this,t,r,!0)};function rQ(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function dk(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=rQ.bind(i);return a.listener=r,i.wrapFn=a,a}Yi.prototype.once=function(t,r){return k_(r),this.on(t,dk(this,t,r)),this};Yi.prototype.prependOnceListener=function(t,r){return k_(r),this.prependListener(t,dk(this,t,r)),this};Yi.prototype.removeListener=function(t,r){var i,a,s,l,f;if(k_(r),a=this._events,a===void 0)return this;if(i=a[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(s=-1,l=i.length-1;l>=0;l--)if(i[l]===r||i[l].listener===r){f=i[l].listener,s=l;break}if(s<0)return this;s===0?i.shift():aQ(i,s),i.length===1&&(a[t]=i[0]),a.removeListener!==void 0&&this.emit("removeListener",t,f||r)}return this};Yi.prototype.off=Yi.prototype.removeListener;Yi.prototype.removeAllListeners=function(t){var r,i,a;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var s=Object.keys(i),l;for(a=0;a=0;a--)this.removeListener(t,r[a]);return this};function pk(e,t,r){var i=e._events;if(i===void 0)return[];var a=i[t];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?iQ(a):yk(a,a.length)}Yi.prototype.listeners=function(t){return pk(this,t,!0)};Yi.prototype.rawListeners=function(t){return pk(this,t,!1)};Yi.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):mk.call(e,t)};Yi.prototype.listenerCount=mk;function mk(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Yi.prototype.eventNames=function(){return this._eventsCount>0?S_(this._events):[]};function yk(e,t){for(var r=new Array(t),i=0;i{"use strict";var Aw=C_().EventEmitter,sQ={init:function(e){if(e._ev instanceof Aw)return e;var t=new Aw,r=new Aw;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(i,a){t.emit(i,a),r.emit(i,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var i,a=e._ev;if(!a)return;var s=a._events[t];if(!s)return;function l(h){if(h.listener){if(a.removeListener(t,h.listener),!h.fired)return h.fired=!0,h.listener.apply(a,[r])}else return h.apply(a,[r])}s=Array.isArray(s)?s:[s];var f;for(f=0;f{"use strict";var xk=Bt(),lQ=rd().dfltConfig;function uQ(e,t){for(var r=[],i,a=0;alQ.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};gc.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};gc.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};gc.undo=function(t){var r,i;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i{"use strict";Tk.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var M0=me(Wn=>{"use strict";var Zl=la(),Uy=Bt(),L_=ms(),Sw=d0(),fQ=Mw(),cQ=Py(),hQ=rd().configAttributes,Ak=il(),Iu=Uy.extendDeepAll,T0=Uy.isPlainObject,vQ=Uy.isArrayOrTypedArray,D_=Uy.nestedProperty,dQ=Uy.valObjectMeta,kw="_isSubplotObj",P_="_isLinkedToArray",pQ="_arrayAttrRegexps",Sk="_deprecated",Cw=[kw,P_,pQ,Sk];Wn.IS_SUBPLOT_OBJ=kw;Wn.IS_LINKED_TO_ARRAY=P_;Wn.DEPRECATED=Sk;Wn.UNDERSCORE_ATTRS=Cw;Wn.get=function(){var e={};return Zl.allTypes.forEach(function(t){e[t]=yQ(t)}),{defs:{valObjects:dQ,metaKeys:Cw.concat(["description","role","editType","impliedEdits"]),editType:{traces:Ak.traces,layout:Ak.layout},impliedEdits:{}},traces:e,layout:gQ(),frames:_Q(),animation:A0(cQ),config:A0(hQ)}};Wn.crawl=function(e,t,r,i){var a=r||0;i=i||"",Object.keys(e).forEach(function(s){var l=e[s];if(Cw.indexOf(s)===-1){var f=(i?i+".":"")+s;t(l,s,e,a,f),!Wn.isValObject(l)&&T0(l)&&s!=="impliedEdits"&&Wn.crawl(l,t,a+1,f)}})};Wn.isValObject=function(e){return e&&e.valType!==void 0};Wn.findArrayAttributes=function(e){var t=[],r=[],i=[],a,s;function l(h,v,m,_){r=r.slice(0,_).concat([v]),i=i.slice(0,_).concat([h&&h._isLinkedToArray]);var T=h&&(h.valType==="data_array"||h.arrayOk===!0)&&!(r[_-1]==="colorbar"&&(v==="ticktext"||v==="tickvals"));T&&f(a,0,"")}function f(h,v,m){var _=h[r[v]],T=m+r[v];if(v===r.length-1)vQ(_)&&t.push(s+T);else if(i[v]){if(Array.isArray(_))for(var S=0;S<_.length;S++)T0(_[S])&&f(_[S],v+1,T+"["+S+"].")}else T0(_)&&f(_,v+1,T+".")}return a=e,s="",Wn.crawl(L_,l),e._module&&e._module.attributes&&Wn.crawl(e._module.attributes,l),t};Wn.getTraceValObject=function(e,t){var r=t[0],i=1,a,s,l=e._module;if(l||(l=(Zl.modules[e.type||L_.type.dflt]||{})._module),!l)return!1;if(a=l.attributes,s=a&&a[r],!s){var f=l.basePlotModule;f&&f.attributes&&(s=f.attributes[r])}return s||(s=L_[r]),kk(s,t,i)};Wn.getLayoutValObject=function(e,t){var r=mQ(e,t[0]);return kk(r,t,1)};function mQ(e,t){var r,i,a,s,l=e._basePlotModules;if(l){var f;for(r=0;r=s.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var l=t[r];if(!E_(l))return!1;e=s[a][l]}else e=s[a]}else e=s}}return e}function E_(e){return e===Math.round(e)&&e>=0}function yQ(e){var t,r;t=Zl.modules[e]._module,r=t.basePlotModule;var i={};i.type=null;var a=Iu({},L_),s=Iu({},t.attributes);Wn.crawl(s,function(h,v,m,_,T){D_(a,T).set(void 0),h===void 0&&D_(s,T).set(void 0)}),Iu(i,a),Zl.traceIs(e,"noOpacity")&&delete i.opacity,Zl.traceIs(e,"showLegend")||(delete i.showlegend,delete i.legendgroup),Zl.traceIs(e,"noHover")&&(delete i.hoverinfo,delete i.hoverlabel),t.selectPoints||delete i.selectedpoints,Iu(i,s),r.attributes&&Iu(i,r.attributes),i.type=e;var l={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:A0(i)};if(t.layoutAttributes){var f={};Iu(f,t.layoutAttributes),l.layoutAttributes=A0(f)}return t.animatable||Wn.crawl(l,function(h){Wn.isValObject(h)&&"anim"in h&&delete h.anim}),l}function gQ(){var e={},t,r;Iu(e,Sw);for(t in Zl.subplotsRegistry)if(r=Zl.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var i=0;i{"use strict";var S0=Bt(),AQ=ms(),Dh="templateitemname",Ew={name:{valType:"string",editType:"none"}};Ew[Dh]={valType:"string",editType:"calc"};sd.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=Ew.name,t[Dh]=Ew[Dh],t};sd.traceTemplater=function(e){var t={},r,i;for(r in e)i=e[r],Array.isArray(i)&&i.length&&(t[r]=0);function a(s){r=S0.coerce(s,{},AQ,"type");var l={type:r,_template:null};if(r in t){i=e[r];var f=t[r]%i.length;t[r]++,l._template=i[f]}return l}return{newTrace:a}};sd.newContainer=function(e,t,r){var i=e._template,a=i&&(i[t]||r&&i[r]);S0.isPlainObject(a)||(a=null);var s=e[t]={_template:a};return s};sd.arrayTemplater=function(e,t,r){var i=e._template,a=i&&i[Ek(t)],s=i&&i[t];(!Array.isArray(s)||!s.length)&&(s=[]);var l={};function f(v){var m={name:v.name,_input:v},_=m[Dh]=v[Dh];if(!Ck(_))return m._template=a,m;for(var T=0;T=i&&(r._input||{})._templateitemname;s&&(a=i);var l=t+"["+a+"]",f;function h(){f={},s&&(f[l]={},f[l][Dh]=s)}h();function v(S,C){f[S]=C}function m(S,C){s?S0.nestedProperty(f[l],S).set(C):f[l+"."+S]=C}function _(){var S=f;return h(),S}function T(S,C){S&&m(S,C);var D=_();for(var E in D)S0.nestedProperty(e,E).set(D[E])}return{modifyBase:v,modifyItem:m,getUpdateObj:_,applyUpdate:T}}});var Ao=me((vge,Lk)=>{"use strict";var Vy=c0().counter;Lk.exports={idRegex:{x:Vy("x","( domain)?"),y:Vy("y","( domain)?")},attrRegex:Vy("[xy]axis"),xAxisMatch:Vy("xaxis"),yAxisMatch:Vy("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Xn=me(qs=>{"use strict";var MQ=la(),Lw=Ao();qs.id2name=function(t){if(!(typeof t!="string"||!t.match(Lw.AX_ID_PATTERN))){var r=t.split(" ")[0].substr(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};qs.name2id=function(t){if(t.match(Lw.AX_NAME_PATTERN)){var r=t.substr(5);return r==="1"&&(r=""),t.charAt(0)+r}};qs.cleanId=function(t,r,i){var a=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(Lw.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(a&&!i)){var s=t.split(" ")[0].substr(1).replace(/^0+/,"");return s==="1"&&(s=""),t.charAt(0)+s+(a&&i?" domain":"")}};qs.list=function(e,t,r){var i=e._fullLayout;if(!i)return[];var a=qs.listIds(e,t),s=new Array(a.length),l;for(l=0;li?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)};qs.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Dk(e,t){if(t&&t.length){for(var r=0;r{"use strict";function SQ(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function kQ(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Pk.exports={clearOutlineControllers:SQ,clearOutline:kQ}});var z_=me((mge,zk)=>{"use strict";zk.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var F_=me(R_=>{"use strict";var I_=la(),yge=Ao().SUBPLOT_PATTERN;R_.getSubplotCalcData=function(e,t,r){var i=I_.subplotsRegistry[t];if(!i)return[];for(var a=i.attr,s=[],l=0;l{"use strict";var CQ=la(),k0=Bt();ld.manageCommandObserver=function(e,t,r,i){var a={},s=!0;t&&t._commandObserver&&(a=t._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var l=ld.hasSimpleAPICommandBindings(e,r,a.lookupTable);if(t&&t._commandObserver){if(l)return a;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,a}if(l){Ik(e,l,a.cache),a.check=function(){if(s){var m=Ik(e,l,a.cache);return m.changed&&i&&a.lookupTable[m.value]!==void 0&&(a.disable(),Promise.resolve(i({value:m.value,type:l.type,prop:l.prop,traces:l.traces,index:a.lookupTable[m.value]})).then(a.enable,a.enable)),m.changed}};for(var f=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],h=0;h0?".":"")+a;k0.isPlainObject(s)?Dw(s,t,l,i+1):t(l,a,s)}})}});var eo=me((xge,Kk)=>{"use strict";var Gk=Ja(),LQ=s0().timeFormatLocale,DQ=N3().formatLocale,Hy=Da(),PQ=B3(),ai=la(),Zk=M0(),zQ=Ri(),Lr=Bt(),Yk=Oa(),Nk=Zi().BADNUM,Ns=Xn(),IQ=Ph().clearOutline,RQ=z_(),Pw=Py(),FQ=Mw(),qQ=F_().getModuleCalcData,Bk=Lr.relinkPrivateKeys,ud=Lr._,yr=Kk.exports={};Lr.extendFlat(yr,ai);yr.attributes=ms();yr.attributes.type.values=yr.allTypes;yr.fontAttrs=qo();yr.layoutAttributes=d0();var N_=qk();yr.executeAPICommand=N_.executeAPICommand;yr.computeAPICommandBindings=N_.computeAPICommandBindings;yr.manageCommandObserver=N_.manageCommandObserver;yr.hasSimpleAPICommandBindings=N_.hasSimpleAPICommandBindings;yr.redrawText=function(e){return e=Lr.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(ai.getComponentMethod("annotations","draw")(e),ai.getComponentMethod("legend","draw")(e),ai.getComponentMethod("colorbar","draw")(e),t(yr.previousPromises(e)))},300)})};yr.resize=function(e){e=Lr.getGraphDiv(e);var t,r=new Promise(function(i,a){(!e||Lr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=i,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Lr.isHidden(e)){i(e);return}delete e.layout.width,delete e.layout.height;var s=e.changed;e.autoplay=!0,ai.call("relayout",e,{autosize:!0}).then(function(){e.changed=s,e._resolveResize===i&&(delete e._resolveResize,i(e))})},100)});return t&&t(r),r};yr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};yr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=Lr.ensureSingle(t._paper,"text","js-plot-link-container",function(h){h.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Yk.defaultLine,"pointer-events":"all"}).each(function(){var v=Gk.select(this);v.append("tspan").classed("js-link-to-tool",!0),v.append("tspan").classed("js-link-spacer",!0),v.append("tspan").classed("js-sourcelinks",!0)})}),i=r.node(),a={y:t._paper.attr("height")-9};document.body.contains(i)&&i.getComputedTextLength()>=t.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=t._paper.attr("width")-7),r.attr(a);var s=r.select(".js-link-to-tool"),l=r.select(".js-link-spacer"),f=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&NQ(e,s),l.text(s.text()&&f.text()?" - ":"")}};function NQ(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){yr.sendDataToCloud(e)});else{var i=window.location.pathname.split("/"),a=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+i[2].split(".")[0]+"/"+i[1]+a})}}yr.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=Gk.select(e).append("div").attr("id","hiddenform").style("display","none"),i=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),a=i.append("input").attr({type:"text",name:"data"});return a.node().value=yr.graphJson(e,!1,"keepdata"),i.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var BQ=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],OQ=["year","month","dayMonth","dayMonthYear"];yr.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,i=e._fullLayout||{};if(i._skipDefaults){delete i._skipDefaults;return}var a=e._fullLayout={},s=e.layout||{},l=e._fullData||[],f=e._fullData=[],h=e.data||[],v=e.calcdata||[],m=e._context||{},_;e._transitionData||yr.createTransitionData(e),a._dfltTitle={plot:ud(e,"Click to enter Plot title"),subtitle:ud(e,"Click to enter Plot subtitle"),x:ud(e,"Click to enter X axis title"),y:ud(e,"Click to enter Y axis title"),colorbar:ud(e,"Click to enter Colorscale title"),annotation:ud(e,"new text")},a._traceWord=ud(e,"trace");var T=Ok(e,BQ);if(a._mapboxAccessToken=m.mapboxAccessToken,i._initialAutoSizeIsDone){var S=i.width,C=i.height;yr.supplyLayoutGlobalDefaults(s,a,T),s.width||(a.width=S),s.height||(a.height=C),yr.sanitizeMargins(a)}else{yr.supplyLayoutGlobalDefaults(s,a,T);var D=!s.width||!s.height,E=a.autosize,I=m.autosizable,B=D&&(E||I);B?yr.plotAutoSize(e,s,a):D&&yr.sanitizeMargins(a),!E&&D&&(s.width=a.width,s.height=a.height)}a._d3locale=HQ(T,a.separators),a._extraFormat=Ok(e,OQ),a._initialAutoSizeIsDone=!0,a._dataLength=h.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var q=a._subplots=VQ(),z=a._splomAxes={x:{},y:{}},O=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=UQ(l,h),yr.supplyDataDefaults(h,f,s,a);var H=Object.keys(z.x),V=Object.keys(z.y);if(H.length>1&&V.length>1){for(ai.getComponentMethod("grid","sizeDefaults")(s,a),_=0;_15&&V.length>15&&a.shapes.length===0&&a.images.length===0,yr.linkSubplots(f,a,l,i),yr.cleanPlot(f,a,l,i);var oe=!!(i._has&&i._has("cartesian")),fe=!!(a._has&&a._has("cartesian")),ve=oe,Me=fe;ve&&!Me?i._bgLayer.remove():Me&&!ve&&(a._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&IQ({_fullLayout:i}),GQ(f,a),Bk(a,i),ai.getComponentMethod("colorscale","crossTraceDefaults")(f,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var Se=a._tracePreGUI,Ae={},we;for(we in Se)Ae[we]="old";for(_=0;_0){var m=1-2*s;l=Math.round(m*l),f=Math.round(m*f)}}var _=yr.layoutAttributes.width.min,T=yr.layoutAttributes.height.min;l<_&&(l=_),f1,C=!r.height&&Math.abs(i.height-f)>1;(C||S)&&(S&&(i.width=l),C&&(i.height=f)),t._initialAutoSize||(t._initialAutoSize={width:l,height:f}),yr.sanitizeMargins(i)};yr.supplyLayoutModuleDefaults=function(e,t,r,i){var a=ai.componentsRegistry,s=t._basePlotModules,l,f,h,v=ai.subplotsRegistry.cartesian;for(l in a)h=a[l],h.includeBasePlot&&h.includeBasePlot(e,t);s.length||s.push(v),t._has("cartesian")&&(ai.getComponentMethod("grid","contentDefaults")(e,t),v.finalizeSubplots(e,t));for(var m in t._subplots)t._subplots[m].sort(Lr.subplotSort);for(f=0;f1&&(r.l/=E,r.r/=E)}if(T){var I=(r.t+r.b)/T;I>1&&(r.t/=I,r.b/=I)}var B=r.xl!==void 0?r.xl:r.x,q=r.xr!==void 0?r.xr:r.x,z=r.yt!==void 0?r.yt:r.y,O=r.yb!==void 0?r.yb:r.y;S[t]={l:{val:B,size:r.l+D},r:{val:q,size:r.r+D},b:{val:O,size:r.b+D},t:{val:z,size:r.t+D}},C[t]=1}if(!i._replotting)return yr.doAutoMargin(e)}};function YQ(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Ns.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}yr.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,i=t.height;t._size||(t._size={}),Wk(t);var a=t._size,s=t.margin,l={t:0,b:0,l:0,r:0},f=Lr.extendFlat({},a),h=s.l,v=s.r,m=s.t,_=s.b,T=t._pushmargin,S=t._pushmarginIds,C=t.minreducedwidth,D=t.minreducedheight;if(s.autoexpand!==!1){for(var E in T)S[E]||delete T[E];var I=e._fullLayout._reservedMargin;for(var B in I)for(var q in I[B]){var z=I[B][q];l[q]=Math.max(l[q],z)}T.base={l:{val:0,size:h},r:{val:1,size:v},t:{val:1,size:m},b:{val:0,size:_}};for(var O in l){var H=0;for(var V in T)V!=="base"&&Hy(T[V][O].size)&&(H=T[V][O].size>H?T[V][O].size:H);var W=Math.max(0,s[O]-H);l[O]=Math.max(0,l[O]-W)}for(var J in T){var te=T[J].l||{},ne=T[J].b||{},oe=te.val,fe=te.size,ve=ne.val,Me=ne.size,Se=r-l.r-l.l,Ae=i-l.t-l.b;for(var we in T){if(Hy(fe)&&T[we].r){var Te=T[we].r.val,Ce=T[we].r.size;if(Te>oe){var Le=(fe*Te+(Ce-Se)*oe)/(Te-oe),$e=(Ce*(1-oe)+(fe-Se)*(1-Te))/(Te-oe);Le+$e>h+v&&(h=Le,v=$e)}}if(Hy(Me)&&T[we].t){var lt=T[we].t.val,it=T[we].t.size;if(lt>ve){var gt=(Me*lt+(it-Ae)*ve)/(lt-ve),We=(it*(1-ve)+(Me-Ae)*(1-lt))/(lt-ve);gt+We>_+m&&(_=gt,m=We)}}}}}var Et=Lr.constrain(r-s.l-s.r,Xk,C),nt=Lr.constrain(i-s.t-s.b,jk,D),wt=Math.max(0,r-Et),xt=Math.max(0,i-nt);if(wt){var vt=(h+v)/wt;vt>1&&(h/=vt,v/=vt)}if(xt){var de=(_+m)/xt;de>1&&(_/=de,m/=de)}if(a.l=Math.round(h)+l.l,a.r=Math.round(v)+l.r,a.t=Math.round(m)+l.t,a.b=Math.round(_)+l.b,a.p=Math.round(s.pad),a.w=Math.round(r)-a.l-a.r,a.h=Math.round(i)-a.t-a.b,!t._replotting&&(yr.didMarginChange(f,a)||YQ(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var ze=3*(1+Object.keys(S).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};yr.graphJson=function(e,t,r,i,a,s){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&yr.supplyDefaults(e);var l=a?e._fullData:e.data,f=a?e._fullLayout:e.layout,h=(e._transitionData||{})._frames;function v(T,S){if(typeof T=="function")return S?"_function_":null;if(Lr.isPlainObject(T)){var C={},D;return Object.keys(T).sort().forEach(function(q){if(["_","["].indexOf(q.charAt(0))===-1){if(typeof T[q]=="function"){S&&(C[q]="_function");return}if(r==="keepdata"){if(q.substr(q.length-3)==="src")return}else if(r==="keepstream"){if(D=T[q+"src"],typeof D=="string"&&D.indexOf(":")>0&&!Lr.isPlainObject(T.stream))return}else if(r!=="keepall"&&(D=T[q+"src"],typeof D=="string"&&D.indexOf(":")>0))return;C[q]=v(T[q],S)}}),C}var E=Array.isArray(T),I=Lr.isTypedArray(T);if((E||I)&&T.dtype&&T.shape){var B=T.bdata;return v({dtype:T.dtype,shape:T.shape,bdata:Lr.isArrayBuffer(B)?PQ.encode(B):B},S)}return E?T.map(function(q){return v(q,S)}):I?Lr.simpleMap(T,Lr.identity):Lr.isJSDate(T)?Lr.ms2DateTimeLocal(+T):T}var m={data:(l||[]).map(function(T){var S=v(T);return t&&delete S.fit,S})};if(!t&&(m.layout=v(f),a)){var _=f._size;m.layout.computed={margin:{b:_.b,l:_.l,r:_.r,t:_.t}}}return h&&(m.frames=v(h)),s&&(m.config=v(e._context,!0)),i==="object"?m:JSON.stringify(m)};yr.modifyFrames=function(e,t){var r,i,a,s=e._transitionData._frames,l=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){i=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return ai.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var T=0,S=0;function C(){return T++,function(){S++,!i&&S===T&&f(_)}}r.runFn(C),setTimeout(C())})}function f(_){if(e._transitionData)return s(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return ai.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(_)}function h(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var v=[yr.previousPromises,h,r.prepareFn,yr.rehover,yr.reselect,l],m=Lr.syncOrAsync(v,e);return(!m||!m.then)&&(m=Promise.resolve()),m.then(function(){return e})}yr.doCalcdata=function(e,t){var r=Ns.list(e),i=e._fullData,a=e._fullLayout,s,l,f,h,v=new Array(i.length),m=(e.calcdata||[]).slice();for(e.calcdata=v,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},f=0;f=0;h--)if(O[h].enabled){s._indexToPoints=O[h]._indexToPoints;break}l&&l.calc&&(z=l.calc(e,s))}(!Array.isArray(z)||!z[0])&&(z=[{x:Nk,y:Nk}]),z[0].t||(z[0].t={}),z[0].trace=s,v[B]=z}}for(Vk(r,i,a),f=0;f{"use strict";fd.xmlns="http://www.w3.org/2000/xmlns/";fd.svg="http://www.w3.org/2000/svg";fd.xlink="http://www.w3.org/1999/xlink";fd.svgAttrs={xmlns:fd.svg,"xmlns:xlink":fd.xlink}});var ts=me((wge,Qk)=>{"use strict";Qk.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var co=me(Yl=>{"use strict";var qn=Ja(),_c=Bt(),JQ=_c.strTranslate,zw=zh(),KQ=ts().LINE_SPACING,QQ=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Yl.convertToTspans=function(e,t,r){var i=e.text(),a=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&i.match(QQ),s=qn.select(e.node().parentNode);if(s.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",s.selectAll("svg."+l).remove(),s.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":i,"data-math":"N"});function f(){s.empty()||(l=e.attr("class")+"-math",s.select("svg."+l).remove()),e.text("").style("white-space","pre");var h=c$(e.node(),i);h&&e.style("pointer-events","all"),Yl.positionText(e),r&&r.call(e)}return a?(t&&t._promises||[]).push(new Promise(function(h){e.style("display","none");var v=parseInt(e.node().style.fontSize,10),m={fontSize:v};r$(a[2],m,function(_,T,S){s.selectAll("svg."+l).remove(),s.selectAll("g."+l+"-group").remove();var C=_&&_.select("svg");if(!C||!C.node()){f(),h();return}var D=s.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":i,"data-math":"Y"});D.node().appendChild(C.node()),T&&T.node()&&C.node().insertBefore(T.node().cloneNode(!0),C.node().firstChild);var E=S.width,I=S.height;C.attr({class:l,height:I,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var B=e.node().style.fill||"black",q=C.select("g");q.attr({fill:B,stroke:B});var z=q.node().getBoundingClientRect(),O=z.width,H=z.height;(O>E||H>I)&&(C.style("overflow","hidden"),z=C.node().getBoundingClientRect(),O=z.width,H=z.height);var V=+e.attr("x"),W=+e.attr("y"),J=v||e.node().getBoundingClientRect().height,te=-J/4;if(l[0]==="y")D.attr({transform:"rotate("+[-90,V,W]+")"+JQ(-O/2,te-H/2)});else if(l[0]==="l")W=te-H/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)V=0,W=te;else{var ne=e.attr("text-anchor");V=V-O*(ne==="middle"?.5:ne==="end"?1:0),W=W+te-H/2}C.attr({x:V,y:W}),r&&r.call(e,D),h(D)})})):f(),e};var $Q=/(<|<|<)/g,e$=/(>|>|>)/g;function t$(e){return e.replace($Q,"\\lt ").replace(e$,"\\gt ")}var $k=[["$","$"],["\\(","\\)"]];function r$(e,t,r){var i=parseInt((MathJax.version||"").split(".")[0]);if(i!==2&&i!==3){_c.warn("No MathJax version:",MathJax.version);return}var a,s,l,f,h=function(){return s=_c.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:$k},displayAlign:"left"})},v=function(){s=_c.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=$k},m=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},_=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},T=function(){var B="math-output-"+_c.randstr({},64);f=qn.select("body").append("div").attr({id:B}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(t$(e));var q=f.node();return i===2?MathJax.Hub.Typeset(q):MathJax.typeset([q])},S=function(){var B=f.select(i===2?".MathJax_SVG":".MathJax"),q=!B.empty()&&f.select("svg").node();if(!q)_c.log("There was an error in the tex syntax.",e),r();else{var z=q.getBoundingClientRect(),O;i===2?O=qn.select("body").select("#MathJax_SVG_glyphs"):O=B.select("defs"),r(B,O,z)}f.remove()},C=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},D=function(){a!=="svg"&&(MathJax.config.startup.output=a)},E=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(s)},I=function(){MathJax.config=s};i===2?MathJax.Hub.Queue(h,m,T,S,C,E):i===3&&(v(),_(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){T(),S(),D(),I()}))}var aC={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},a$={sub:"0.3em",sup:"-0.6em"},i$={sub:"-0.21em",sup:"0.42em"},eC="\u200B",tC=["http:","https:","mailto:","",void 0,":"],iC=Yl.NEWLINES=/(\r\n?|\n)/g,Rw=/(<[^<>]*>)/,Fw=/<(\/?)([^ >]*)(\s+(.*))?>/i,n$=//i;Yl.BR_TAG_ALL=//gi;var nC=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,oC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,sC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,o$=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function cd(e,t){if(!e)return null;var r=e.match(t),i=r&&(r[3]||r[4]);return i&&B_(i)}var s$=/(^|;)\s*color:/;Yl.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,i=t.allowedTags!==void 0?t.allowedTags:["br"],a="...",s=a.length,l=e.split(Rw),f=[],h="",v=0,m=0;ms?f.push(_.substr(0,D-s)+a):f.push(_.substr(0,D));break}h=""}}return f.join("")};var l$={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},u$=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function B_(e){return e.replace(u$,function(t,r){var i;return r.charAt(0)==="#"?i=f$(r.charAt(1)==="x"?parseInt(r.substr(2),16):parseInt(r.substr(1),10)):i=l$[r],i||t})}Yl.convertEntities=B_;function f$(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function c$(e,t){t=t.replace(iC," ");var r=!1,i=[],a,s=-1;function l(){s++;var H=document.createElementNS(zw.svg,"tspan");qn.select(H).attr({class:"line",dy:s*KQ+"em"}),e.appendChild(H),a=H;var V=i;if(i=[{node:H}],V.length>1)for(var W=1;W.",t);return}var V=i.pop();H!==V.type&&_c.log("Start tag <"+V.type+"> doesnt match end tag <"+H+">. Pretending it did match.",t),a=i[i.length-1].node}var m=n$.test(t);m?l():(a=e,i=[{node:e}]);for(var _=t.split(Rw),T=0;T<_.length;T++){var S=_[T],C=S.match(Fw),D=C&&C[2].toLowerCase(),E=aC[D];if(D==="br")l();else if(E===void 0)h(a,B_(S));else if(C[1])v(D);else{var I=C[4],B={type:D},q=cd(I,nC);if(q?(q=q.replace(s$,"$1 fill:"),E&&(q+=";"+E)):E&&(q=E),q&&(B.style=q),D==="a"){r=!0;var z=cd(I,oC);if(z){var O=lC(z);O&&(B.href=O,B.target=cd(I,sC)||"_blank",B.popup=cd(I,o$))}}f(B)}}return r}function lC(e){var t=encodeURI(decodeURI(e)),r=document.createElement("a"),i=document.createElement("a");r.href=e,i.href=t;var a=r.protocol,s=i.protocol;return tC.indexOf(a)!==-1&&tC.indexOf(s)!==-1?t:""}Yl.sanitizeHTML=function(t){t=t.replace(iC," ");for(var r=document.createElement("p"),i=r,a=[],s=t.split(Rw),l=0;l{"use strict";var h$=Ja(),U_=Tf(),Zy=Da(),O_=Bt(),uC=Oa(),v$=ed().isValid;function d$(e,t,r){var i=t?O_.nestedProperty(e,t).get()||{}:e,a=i[r||"color"];a&&a._inputArray&&(a=a._inputArray);var s=!1;if(O_.isArrayOrTypedArray(a)){for(var l=0;l=0;i--,a++){var s=e[i];r[a]=[1-s[0],s[1]]}return r}function pC(e,t){t=t||{};for(var r=e.domain,i=e.range,a=i.length,s=new Array(a),l=0;l{"use strict";var yC=aw(),m$=yC.FORMAT_LINK,y$=yC.DATE_FORMAT_LINK;function g$(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?qw:gC)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function qw(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+m$+"."].join(" ")}function gC(e,t){return qw(e,t)+[" And for dates see: "+y$+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}_C.exports={axisHoverFormat:g$,descriptionOnlyNumbers:qw,descriptionWithDates:gC}});var Ru=me((kge,FC)=>{"use strict";var xC=qo(),C0=Af(),RC=hc().dash,Ow=mn().extendFlat,bC=Ri().templatedArray,Sge=nl().templateFormatStringDescription,wC=Nw().descriptionWithDates,_$=Zi().ONEDAY,Cf=Ao(),x$=Cf.HOUR_PATTERN,b$=Cf.WEEKDAY_PATTERN,Bw={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},w$=Ow({},Bw,{values:Bw.values.slice().concat(["sync"])});function TC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var AC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},MC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},SC={valType:"data_array",editType:"ticks"},kC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function CC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function EC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var LC={valType:"color",dflt:C0.defaultLine,editType:"ticks"},DC={valType:"color",dflt:C0.lightLine,editType:"ticks"};function PC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var zC=Ow({},RC,{editType:"ticks"}),IC={valType:"boolean",editType:"ticks"};FC.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:C0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:xC({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Cf.idRegex.x.toString(),Cf.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Cf.idRegex.x.toString(),Cf.idRegex.y.toString()],editType:"calc"},rangebreaks:bC("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[b$,x$,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:_$},editType:"calc"}),tickmode:w$,nticks:TC(),tick0:AC,dtick:MC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:SC,ticktext:{valType:"data_array",editType:"ticks"},ticks:kC,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:CC(),tickwidth:EC(),tickcolor:LC,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Ow({},RC,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:xC({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:wC("tick label")},tickformatstops:bC("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:wC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:C0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:IC,gridcolor:DC,gridwidth:PC(),griddash:zC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:C0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:C0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Cf.idRegex.x.toString(),Cf.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Cf.idRegex.x.toString(),Cf.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Bw,nticks:TC("minor"),tick0:AC,dtick:MC,tickvals:SC,ticks:kC,ticklen:CC("minor"),tickwidth:EC("minor"),tickcolor:LC,gridcolor:DC,gridwidth:PC("minor"),griddash:zC,showgrid:IC,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var V_=me((Cge,BC)=>{"use strict";var Wi=Ru(),qC=qo(),NC=mn().extendFlat,T$=il().overrideAll;BC.exports=T$({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Wi.linecolor,outlinewidth:Wi.linewidth,bordercolor:Wi.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Wi.minor.tickmode,nticks:Wi.nticks,tick0:Wi.tick0,dtick:Wi.dtick,tickvals:Wi.tickvals,ticktext:Wi.ticktext,ticks:NC({},Wi.ticks,{dflt:""}),ticklabeloverflow:NC({},Wi.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Wi.ticklen,tickwidth:Wi.tickwidth,tickcolor:Wi.tickcolor,ticklabelstep:Wi.ticklabelstep,showticklabels:Wi.showticklabels,labelalias:Wi.labelalias,tickfont:qC({}),tickangle:Wi.tickangle,tickformat:Wi.tickformat,tickformatstops:Wi.tickformatstops,tickprefix:Wi.tickprefix,showtickprefix:Wi.showtickprefix,ticksuffix:Wi.ticksuffix,showticksuffix:Wi.showticksuffix,separatethousands:Wi.separatethousands,exponentformat:Wi.exponentformat,minexponent:Wi.minexponent,showexponent:Wi.showexponent,title:{text:{valType:"string"},font:qC({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var xc=me((Lge,UC)=>{"use strict";var A$=V_(),M$=c0().counter,S$=g_(),OC=ed().scales,Ege=S$(OC);function H_(e){return"`"+e+"`"}UC.exports=function(t,r){t=t||"",r=r||{};var i=r.cLetter||"c",a="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,s="noScale"in r?r.noScale:t==="marker.line",l="showScaleDflt"in r?r.showScaleDflt:i==="z",f=typeof r.colorscaleDflt=="string"?OC[r.colorscaleDflt]:null,h=r.editTypeOverride||"",v=t?t+".":"",m,_;"colorAttr"in r?(m=r.colorAttr,_=r.colorAttr):(m={z:"z",c:"color"}[i],_="in "+H_(v+m));var T=a?" Has an effect only if "+_+" is set to a numerical array.":"",S=i+"auto",C=i+"min",D=i+"max",E=i+"mid",I=H_(v+S),B=H_(v+C),q=H_(v+D),z=B+" and "+q,O={};O[C]=O[D]=void 0;var H={};H[S]=!1;var V={};return m==="color"&&(V.color={valType:"color",arrayOk:!0,editType:h||"style"},r.anim&&(V.color.anim=!0)),V[S]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:O},V[C]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},V[D]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},V[E]={valType:"number",dflt:null,editType:"calc",impliedEdits:O},V.colorscale={valType:"colorscale",editType:"calc",dflt:f,impliedEdits:{autocolorscale:!1}},V.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},V.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(V.showscale={valType:"boolean",dflt:l,editType:"calc"},V.colorbar=A$),r.noColorAxis||(V.coloraxis={valType:"subplotid",regex:M$("coloraxis"),dflt:null,editType:"calc"}),V}});var Vw=me((Dge,VC)=>{"use strict";var k$=mn().extendFlat,C$=xc(),Uw=ed().scales;VC.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Uw.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Uw.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Uw.RdBu,editType:"calc"}},coloraxis:k$({_isSubplotObj:!0,editType:"calc"},C$("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Hw=me((Pge,HC)=>{"use strict";var E$=Bt();HC.exports=function(t){return E$.isPlainObject(t.colorbar)}});var Yw=me(Zw=>{"use strict";var Gw=Da(),GC=Bt(),ZC=Zi(),L$=ZC.ONEDAY,D$=ZC.ONEWEEK;Zw.dtick=function(e,t){var r=t==="log",i=t==="date",a=t==="category",s=i?L$:1;if(!e)return s;if(Gw(e))return e=Number(e),e<=0?s:a?Math.max(1,Math.round(e)):i?Math.max(.1,e):e;if(typeof e!="string"||!(i||r))return s;var l=e.charAt(0),f=e.substr(1);return f=Gw(f)?Number(f):0,f<=0||!(i&&l==="M"&&f===Math.round(f)||r&&l==="L"||r&&l==="D"&&(f===1||f===2))?s:e};Zw.tick0=function(e,t,r,i){if(t==="date")return GC.cleanDate(e,GC.dateTick0(r,i%D$===0?1:0));if(!(i==="D1"||i==="D2"))return Gw(e)?Number(e):0}});var Ww=me((Ige,WC)=>{"use strict";var YC=Yw(),P$=Bt().isArrayOrTypedArray,z$=al().isTypedArraySpec,I$=al().decodeTypedArraySpec;WC.exports=function(t,r,i,a,s){s||(s={});var l=s.isMinor,f=l?t.minor||{}:t,h=l?r.minor:r,v=l?"minor.":"";function m(B){var q=f[B];return z$(q)&&(q=I$(q)),q!==void 0?q:(h._template||{})[B]}var _=m("tick0"),T=m("dtick"),S=m("tickvals"),C=P$(S)?"array":T?"linear":"auto",D=i(v+"tickmode",C);if(D==="auto"||D==="sync")i(v+"nticks");else if(D==="linear"){var E=h.dtick=YC.dtick(T,a);h.tick0=YC.tick0(_,a,r.calendar,E)}else if(a!=="multicategory"){var I=i(v+"tickvals");I===void 0?h.tickmode="auto":l||i("ticktext")}}});var jw=me((Rge,jC)=>{"use strict";var Xw=Bt(),XC=Ru();jC.exports=function(t,r,i,a){var s=a.isMinor,l=s?t.minor||{}:t,f=s?r.minor:r,h=s?XC.minor:XC,v=s?"minor.":"",m=Xw.coerce2(l,f,h,"ticklen",s?(r.ticklen||5)*.6:void 0),_=Xw.coerce2(l,f,h,"tickwidth",s?r.tickwidth||1:void 0),T=Xw.coerce2(l,f,h,"tickcolor",(s?r.tickcolor:void 0)||f.color),S=i(v+"ticks",!s&&a.outerTicks||m||_||T?"outside":"");S||(delete f.ticklen,delete f.tickwidth,delete f.tickcolor)}});var Jw=me((Fge,JC)=>{"use strict";JC.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],i=r.filter(function(s){return t[s]!==void 0}),a=function(s){return t[s]===t[i[0]]};if(i.every(a)||i.length===1)return t[i[0]]}});var Wl=me((qge,KC)=>{"use strict";var G_=Bt(),R$=Ri();KC.exports=function(t,r,i){var a=i.name,s=i.inclusionAttr||"visible",l=r[a],f=G_.isArrayOrTypedArray(t[a])?t[a]:[],h=r[a]=[],v=R$.arrayTemplater(r,a,s),m,_;for(m=0;m{"use strict";var Kw=Bt(),F$=Oa().contrast,QC=Ru(),q$=Jw(),N$=Wl();$C.exports=function(t,r,i,a,s){s||(s={});var l=i("labelalias");Kw.isPlainObject(l)||delete r.labelalias;var f=q$(t),h=i("showticklabels");if(h){s.noTicklabelshift||i("ticklabelshift"),s.noTicklabelstandoff||i("ticklabelstandoff");var v=s.font||{},m=r.color,_=r.ticklabelposition||"",T=_.indexOf("inside")!==-1?F$(s.bgColor):m&&m!==QC.color.dflt?m:v.color;if(Kw.coerceFont(i,"tickfont",v,{overrideDflt:{color:T}}),!s.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&i("ticklabelstep"),!s.noAng){var S=i("tickangle");!s.noAutotickangles&&S==="auto"&&i("autotickangles")}if(a!=="category"){var C=i("tickformat");N$(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:B$}),r.tickformatstops.length||delete r.tickformatstops,!s.noExp&&!C&&a!=="date"&&(i("showexponent",f),i("exponentformat"),i("minexponent"),i("separatethousands"))}!s.noMinorloglabels&&a==="log"&&i("minorloglabels")}};function B$(e,t){function r(a,s){return Kw.coerce(e,t,QC.tickformatstops,a,s)}var i=r("enabled");i&&(r("dtickrange"),r("value"))}});var $w=me((Bge,eE)=>{"use strict";var O$=Jw();eE.exports=function(t,r,i,a,s){s||(s={});var l=s.tickSuffixDflt,f=O$(t),h=i("tickprefix");h&&i("showtickprefix",f);var v=i("ticksuffix",l);v&&i("showticksuffix",f)}});var e5=me((Oge,tE)=>{"use strict";var Ih=Bt(),U$=Ri(),V$=Ww(),H$=jw(),G$=Qw(),Z$=$w(),Y$=V_();tE.exports=function(t,r,i){var a=U$.newContainer(r,"colorbar"),s=t.colorbar||{};function l(ne,oe){return Ih.coerce(s,a,Y$,ne,oe)}var f=i.margin||{t:0,b:0,l:0,r:0},h=i.width-f.l-f.r,v=i.height-f.t-f.b,m=l("orientation"),_=m==="v",T=l("thicknessmode");l("thickness",T==="fraction"?30/(_?h:v):30);var S=l("lenmode");l("len",S==="fraction"?1:_?v:h);var C=l("yref"),D=l("xref"),E=C==="paper",I=D==="paper",B,q,z,O="left";_?(z="middle",O=I?"left":"right",B=I?1.02:1,q=.5):(z=E?"bottom":"top",O="center",B=.5,q=E?1.02:1),Ih.coerce(s,a,{x:{valType:"number",min:I?-2:0,max:I?3:1,dflt:B}},"x"),Ih.coerce(s,a,{y:{valType:"number",min:E?-2:0,max:E?3:1,dflt:q}},"y"),l("xanchor",O),l("xpad"),l("yanchor",z),l("ypad"),Ih.noneOrAll(s,a,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var H=Ih.coerce(s,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:_?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",H.indexOf("inside")!==-1?"hide past domain":"hide past div"),V$(s,a,l,"linear");var V=i.font,W={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:V};H.indexOf("inside")!==-1&&(W.bgColor="black"),Z$(s,a,l,"linear",W),G$(s,a,l,"linear",W),H$(s,a,l,"linear",W),l("title.text",i._dfltTitle.colorbar);var J=a.showticklabels?a.tickfont:V,te=Ih.extendFlat({},V,{family:J.family,size:Ih.bigFont(J.size)});Ih.coerceFont(l,"title.font",te),l("title.side",_?"top":"right")}});var hd=me((Uge,iE)=>{"use strict";var rE=Da(),r5=Bt(),W$=Hw(),X$=e5(),aE=ed().isValid,j$=la().traceIs;function t5(e,t){var r=t.slice(0,t.length-1);return t?r5.nestedProperty(e,r).get()||{}:e}iE.exports=function e(t,r,i,a,s){var l=s.prefix,f=s.cLetter,h="_module"in r,v=t5(t,l),m=t5(r,l),_=t5(r._template||{},l)||{},T=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,i,a,s)};if(h){var S=i._colorAxes||{},C=a(l+"coloraxis");if(C){var D=j$(r,"contour")&&r5.nestedProperty(r,"contours.coloring").get()||"heatmap",E=S[C];E?(E[2].push(T),E[0]!==D&&(E[0]=!1,r5.warn(["Ignoring coloraxis:",C,"setting","as it is linked to incompatible colorscales."].join(" ")))):S[C]=[D,r,[T]];return}}var I=v[f+"min"],B=v[f+"max"],q=rE(I)&&rE(B)&&I{"use strict";var nE=Bt(),J$=Ri(),oE=Vw(),K$=hd();sE.exports=function(t,r){function i(_,T){return nE.coerce(t,r,oE,_,T)}i("colorscale.sequential"),i("colorscale.sequentialminus"),i("colorscale.diverging");var a=r._colorAxes,s,l;function f(_,T){return nE.coerce(s,l,oE.coloraxis,_,T)}for(var h in a){var v=a[h];if(v[0])s=t[h]||{},l=J$.newContainer(r,h,"coloraxis"),l._name=h,K$(s,l,r,f,{prefix:"",cLetter:"c"});else{for(var m=0;m{"use strict";var Q$=Bt(),$$=kf().hasColorscale,eee=kf().extractOpts;uE.exports=function(t,r){function i(m,_){var T=m["_"+_];T!==void 0&&(m[_]=T)}function a(m,_){var T=_.container?Q$.nestedProperty(m,_.container).get():m;if(T)if(T.coloraxis)T._colorAx=r[T.coloraxis];else{var S=eee(T),C=S.auto;(C||S.min===void 0)&&i(T,_.min),(C||S.max===void 0)&&i(T,_.max),S.autocolorscale&&i(T,"colorscale")}}for(var s=0;s{"use strict";var cE=Da(),a5=Bt(),tee=kf().extractOpts;hE.exports=function(t,r,i){var a=t._fullLayout,s=i.vals,l=i.containerStr,f=l?a5.nestedProperty(r,l).get():r,h=tee(f),v=h.auto!==!1,m=h.min,_=h.max,T=h.mid,S=function(){return a5.aggNums(Math.min,null,s)},C=function(){return a5.aggNums(Math.max,null,s)};if(m===void 0?m=S():v&&(f._colorAx&&cE(m)?m=Math.min(m,S()):m=S()),_===void 0?_=C():v&&(f._colorAx&&cE(_)?_=Math.max(_,C()):_=C()),v&&T!==void 0&&(_-T>T-m?m=T-(_-T):_-T=0?D=a.colorscale.sequential:D=a.colorscale.sequentialminus,h._sync("colorscale",D)}}});var L0=me((Zge,vE)=>{"use strict";var Z_=ed(),E0=kf();vE.exports={moduleType:"component",name:"colorscale",attributes:xc(),layoutAttributes:Vw(),supplyLayoutDefaults:lE(),handleDefaults:hd(),crossTraceDefaults:fE(),calc:Yy(),scales:Z_.scales,defaultScale:Z_.defaultScale,getScale:Z_.get,isValidScale:Z_.isValid,hasColorscale:E0.hasColorscale,extractOpts:E0.extractOpts,extractScale:E0.extractScale,flipScale:E0.flipScale,makeColorScaleFunc:E0.makeColorScaleFunc,makeColorScaleFuncFromTrace:E0.makeColorScaleFuncFromTrace}});var rs=me((Yge,pE)=>{"use strict";var dE=Bt(),ree=al().isTypedArraySpec;pE.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return dE.isPlainObject(t)&&(dE.isArrayOrTypedArray(t.size)||ree(t.size))}}});var i5=me((Wge,mE)=>{"use strict";var aee=Da();mE.exports=function(t,r){r||(r=2);var i=t.marker,a=i.sizeref||1,s=i.sizemin||0,l=i.sizemode==="area"?function(f){return Math.sqrt(f/a)}:function(f){return f/a};return function(f){var h=l(f/r);return aee(h)&&h>0?Math.max(h,s):0}}});var bc=me(No=>{"use strict";var yE=Bt();No.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};No.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],i=e.yaxes||[],a=0;a=0&&r.index{xE.exports=lee;var n5={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},see=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function lee(e){var t=[];return e.replace(see,function(r,i,a){var s=i.toLowerCase();for(a=fee(a),s=="m"&&a.length>2&&(t.push([i].concat(a.splice(0,2))),s="l",i=i=="m"?"l":"L");;){if(a.length==n5[s])return a.unshift(i),t.push(a);if(a.length{"use strict";var cee=o5(),sr=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},ha="M0,0Z",bE=Math.sqrt(2),Rh=Math.sqrt(3),s5=Math.PI,l5=Math.cos,u5=Math.sin;SE.exports={circle:{n:0,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a="M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z";return r?da(t,r,a):a}},square:{n:1,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")}},diamond:{n:2,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.3,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"Z")}},cross:{n:3,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.4,2),a=sr(e*1.2,2);return da(t,r,"M"+a+","+i+"H"+i+"V"+a+"H-"+i+"V"+i+"H-"+a+"V-"+i+"H-"+i+"V-"+a+"H"+i+"V-"+i+"H"+a+"Z")}},x:{n:4,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.8/bE,2),a="l"+i+","+i,s="l"+i+",-"+i,l="l-"+i+",-"+i,f="l-"+i+","+i;return da(t,r,"M0,"+i+a+s+l+s+l+f+l+f+a+f+a+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M-"+i+","+a+"H"+i+"L0,-"+s+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M-"+i+",-"+a+"H"+i+"L0,"+s+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M"+a+",-"+i+"V"+i+"L-"+s+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M-"+a+",-"+i+"V"+i+"L"+s+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M-"+a+",-"+i+"H"+i+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M"+i+",-"+a+"V"+i+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M"+a+","+i+"H-"+i+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M-"+i+","+a+"V-"+i+"H"+a+"Z")}},pentagon:{n:13,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.951,2),a=sr(e*.588,2),s=sr(-e,2),l=sr(e*-.309,2),f=sr(e*.809,2);return da(t,r,"M"+i+","+l+"L"+a+","+f+"H-"+a+"L-"+i+","+l+"L0,"+s+"Z")}},hexagon:{n:14,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e/2,2),s=sr(e*Rh/2,2);return da(t,r,"M"+s+",-"+a+"V"+a+"L0,"+i+"L-"+s+","+a+"V-"+a+"L0,-"+i+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e/2,2),s=sr(e*Rh/2,2);return da(t,r,"M-"+a+","+s+"H"+a+"L"+i+",0L"+a+",-"+s+"H-"+a+"L-"+i+",0Z")}},octagon:{n:16,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.924,2),a=sr(e*.383,2);return da(t,r,"M-"+a+",-"+i+"H"+a+"L"+i+",-"+a+"V"+a+"L"+a+","+i+"H-"+a+"L-"+i+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,t,r){if(va(t))return ha;var i=e*1.4,a=sr(i*.225,2),s=sr(i*.951,2),l=sr(i*.363,2),f=sr(i*.588,2),h=sr(-i,2),v=sr(i*-.309,2),m=sr(i*.118,2),_=sr(i*.809,2),T=sr(i*.382,2);return da(t,r,"M"+a+","+v+"H"+s+"L"+l+","+m+"L"+f+","+_+"L0,"+T+"L-"+f+","+_+"L-"+l+","+m+"L-"+s+","+v+"H-"+a+"L0,"+h+"Z")}},hexagram:{n:18,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.66,2),a=sr(e*.38,2),s=sr(e*.76,2);return da(t,r,"M-"+s+",0l-"+a+",-"+i+"h"+s+"l"+a+",-"+i+"l"+a+","+i+"h"+s+"l-"+a+","+i+"l"+a+","+i+"h-"+s+"l-"+a+","+i+"l-"+a+",-"+i+"h-"+s+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(va(t))return ha;var i=sr(e*Rh*.8,2),a=sr(e*.8,2),s=sr(e*1.6,2),l=sr(e*4,2),f="A "+l+","+l+" 0 0 1 ";return da(t,r,"M-"+i+","+a+f+i+","+a+f+"0,-"+s+f+"-"+i+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(va(t))return ha;var i=sr(e*Rh*.8,2),a=sr(e*.8,2),s=sr(e*1.6,2),l=sr(e*4,2),f="A "+l+","+l+" 0 0 1 ";return da(t,r,"M"+i+",-"+a+f+"-"+i+",-"+a+f+"0,"+s+f+i+",-"+a+"Z")}},"star-square":{n:21,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.1,2),a=sr(e*2,2),s="A "+a+","+a+" 0 0 1 ";return da(t,r,"M-"+i+",-"+i+s+"-"+i+","+i+s+i+","+i+s+i+",-"+i+s+"-"+i+",-"+i+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2),a=sr(e*1.9,2),s="A "+a+","+a+" 0 0 1 ";return da(t,r,"M-"+i+",0"+s+"0,"+i+s+i+",0"+s+"0,-"+i+s+"-"+i+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.7,2),a=sr(e*1.4,2);return da(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2),a=sr(e*.7,2);return da(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"H-"+i+"L"+i+",-"+i+"H-"+i+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"V-"+i+"L-"+i+","+i+"V-"+i+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e/bE,2);return da(t,r,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.3,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM0,-"+i+"V"+i+"M-"+i+",0H"+i)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.3,2),a=sr(e*.65,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*.85,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(va(t))return ha;var i=sr(e/2,2),a=sr(e,2);return da(t,r,"M"+i+","+a+"V-"+a+"M"+(i-a)+",-"+a+"V"+a+"M"+a+","+i+"H-"+a+"M-"+a+","+(i-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M-"+i+","+s+"L0,0M"+i+","+s+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M-"+i+",-"+s+"L0,0M"+i+",-"+s+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M"+s+","+i+"L0,0M"+s+",-"+i+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M-"+s+","+i+"L0,0M-"+s+",-"+i+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2);return da(t,r,"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2);return da(t,r,"M0,"+i+"V-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M0,0L-"+i+",-"+a+"H"+i+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,0L"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,0L-"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+",-"+a+"H"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,-"+a+"V"+a+"M0,0L"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,-"+a+"V"+a+"M0,0L-"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(va(t))return ha;var i=s5/2.5,a=2*e*l5(i),s=2*e*u5(i);return da(t,r,"M0,0L"+-a+","+s+"L"+a+","+s+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(va(t))return ha;var i=s5/4,a=2*e*l5(i),s=2*e*u5(i);return da(t,r,"M0,0L"+-a+","+s+"A "+2*e+","+2*e+" 0 0 1 "+a+","+s+"Z")},backoff:.4,noDot:!0}};function va(e){return e===null}var wE,TE,AE,ME;function da(e,t,r){if((!e||e%360===0)&&!t)return r;if(AE===e&&ME===t&&wE===r)return TE;AE=e,ME=t,wE=r;function i(E,I){var B=l5(E),q=u5(E),z=I[0],O=I[1]+(t||0);return[z*B-O*q,z*q+O*B]}for(var a=e/180*s5,s=0,l=0,f=cee(r),h="",v=0;v{"use strict";var to=Ja(),xi=Bt(),hee=xi.numberFormat,md=Da(),p5=Tf(),W_=la(),Mo=Oa(),vee=L0(),Xy=xi.strTranslate,X_=co(),dee=zh(),pee=ts(),mee=pee.LINE_SPACING,qE=i_().DESELECTDIM,yee=rs(),gee=i5(),_ee=bc().appendArrayPointValue,_r=WE.exports={};_r.font=function(e,t){var r=t.variant,i=t.style,a=t.weight,s=t.color,l=t.size,f=t.family,h=t.shadow,v=t.lineposition,m=t.textcase;f&&e.style("font-family",f),l+1&&e.style("font-size",l+"px"),s&&e.call(Mo.fill,s),a&&e.style("font-weight",a),i&&e.style("font-style",i),r&&e.style("font-variant",r),m&&e.style("text-transform",f5(bee(m))),h&&e.style("text-shadow",h==="auto"?X_.makeTextShadow(Mo.contrast(s)):f5(h)),v&&e.style("text-decoration-line",f5(wee(v)))};function f5(e){return e==="none"?void 0:e}var xee={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function bee(e){return xee[e]}function wee(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}_r.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};_r.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};_r.setRect=function(e,t,r,i,a){e.call(_r.setPosition,t,r).call(_r.setSize,i,a)};_r.translatePoint=function(e,t,r,i){var a=r.c2p(e.x),s=i.c2p(e.y);if(md(a)&&md(s)&&t.node())t.node().nodeName==="text"?t.attr("x",a).attr("y",s):t.attr("transform",Xy(a,s));else return!1;return!0};_r.translatePoints=function(e,t,r){e.each(function(i){var a=to.select(this);_r.translatePoint(i,a,t,r)})};_r.hideOutsideRangePoint=function(e,t,r,i,a,s){t.attr("display",r.isPtWithinRange(e,a)&&i.isPtWithinRange(e,s)?null:"none")};_r.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,i=t.yaxis;e.each(function(a){var s=a[0].trace,l=s.xcalendar,f=s.ycalendar,h=W_.traceIs(s,"bar-like")?".bartext":".point,.textpoint";e.selectAll(h).each(function(v){_r.hideOutsideRangePoint(v,to.select(this),r,i,l,f)})})}};_r.crispRound=function(e,t,r){return!t||!md(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};_r.singleLineStyle=function(e,t,r,i,a){t.style("fill","none");var s=(((e||[])[0]||{}).trace||{}).line||{},l=r||s.width||0,f=a||s.dash||"";Mo.stroke(t,i||s.color),_r.dashLine(t,f,l)};_r.lineGroupStyle=function(e,t,r,i){e.style("fill","none").each(function(a){var s=(((a||[])[0]||{}).trace||{}).line||{},l=t||s.width||0,f=i||s.dash||"";to.select(this).call(Mo.stroke,r||s.color).call(_r.dashLine,f,l)})};_r.dashLine=function(e,t,r){r=+r||0,t=_r.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};_r.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function NE(e,t,r,i){var a=t.fillpattern,s=t.fillgradient,l=_r.getPatternAttr,f=a&&(l(a.shape,0,"")||l(a.path,0,""));if(f){var h=l(a.bgcolor,0,null),v=l(a.fgcolor,0,null),m=a.fgopacity,_=l(a.size,0,8),T=l(a.solidity,0,.3),S=t.uid;_r.pattern(e,"point",r,S,f,_,T,void 0,a.fillmode,h,v,m)}else if(s&&s.type!=="none"){var C=s.type,D="scatterfill-"+t.uid;if(i&&(D="legendfill-"+t.uid),!i&&(s.start!==void 0||s.stop!==void 0)){var E,I;C==="horizontal"?(E={x:s.start,y:0},I={x:s.stop,y:0}):C==="vertical"&&(E={x:0,y:s.start},I={x:0,y:s.stop}),E.x=t._xA.c2p(E.x===void 0?t._extremes.x.min[0].val:E.x,!0),E.y=t._yA.c2p(E.y===void 0?t._extremes.y.min[0].val:E.y,!0),I.x=t._xA.c2p(I.x===void 0?t._extremes.x.max[0].val:I.x,!0),I.y=t._yA.c2p(I.y===void 0?t._extremes.y.max[0].val:I.y,!0),e.call(UE,r,D,"linear",s.colorscale,"fill",E,I,!0,!1)}else C==="horizontal"&&(C=C+"reversed"),e.call(_r.gradient,r,D,C,s.colorscale,"fill")}else t.fillcolor&&e.call(Mo.fill,t.fillcolor)}_r.singleFillStyle=function(e,t){var r=to.select(e.node()),i=r.data(),a=((i[0]||[])[0]||{}).trace||{};NE(e,a,t,!1)};_r.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(i){var a=to.select(this);i[0].trace&&NE(a,i[0].trace,t,r)})};var CE=kE();_r.symbolNames=[];_r.symbolFuncs=[];_r.symbolBackOffs=[];_r.symbolNeedLines={};_r.symbolNoDot={};_r.symbolNoFill={};_r.symbolList=[];Object.keys(CE).forEach(function(e){var t=CE[e],r=t.n;_r.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),_r.symbolNames[r]=e,_r.symbolFuncs[r]=t.f,_r.symbolBackOffs[r]=t.backoff||0,t.needLine&&(_r.symbolNeedLines[r]=!0),t.noDot?_r.symbolNoDot[r]=!0:_r.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(_r.symbolNoFill[r]=!0)});var Tee=_r.symbolNames.length,Aee="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";_r.symbolNumber=function(e){if(md(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=_r.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=Tee||e>=400?0:Math.floor(Math.max(e,0))};function BE(e,t,r,i){var a=e%100;return _r.symbolFuncs[a](t,r,i)+(e>=200?Aee:"")}var EE=hee("~f"),OE={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};_r.gradient=function(e,t,r,i,a,s){var l=OE[i];return UE(e,t,r,l.type,a,s,l.start,l.stop,!1,l.reversed)};function UE(e,t,r,i,a,s,l,f,h,v){var m=a.length,_;i==="linear"?_={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:f.x,y2:f.y,gradientUnits:h?"userSpaceOnUse":"objectBoundingBox"},reversed:v}:i==="radial"&&(_={node:"radialGradient",reversed:v});for(var T=new Array(m),S=0;S=0&&e.i===void 0&&(e.i=s.i),t.style("opacity",i.selectedOpacityFn?i.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),i.ms2mrc){var h;e.ms==="various"||l.size==="various"?h=3:h=i.ms2mrc(e.ms),e.mrc=h,i.selectedSizeFn&&(h=e.mrc=i.selectedSizeFn(e));var v=_r.symbolNumber(e.mx||l.symbol)||0;e.om=v%200>=100;var m=g5(e,r),_=y5(e,r);t.attr("d",BE(v,h,m,_))}var T=!1,S,C,D;if(e.so)D=f.outlierwidth,C=f.outliercolor,S=l.outliercolor;else{var E=(f||{}).width;D=(e.mlw+1||E+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?C=e.mlcc=i.lineScale(e.mlc):xi.isArrayOrTypedArray(f.color)?C=Mo.defaultLine:C=f.color,xi.isArrayOrTypedArray(l.color)&&(S=Mo.defaultLine,T=!0),"mc"in e?S=e.mcc=i.markerScale(e.mc):S=l.color||l.colors||"rgba(0,0,0,0)",i.selectedColorFn&&(S=i.selectedColorFn(e))}if(e.om)t.call(Mo.stroke,S).style({"stroke-width":(D||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:D)+"px");var I=l.gradient,B=e.mgt;B?T=!0:B=I&&I.type,xi.isArrayOrTypedArray(B)&&(B=B[0],OE[B]||(B=0));var q=l.pattern,z=_r.getPatternAttr,O=q&&(z(q.shape,e.i,"")||z(q.path,e.i,""));if(B&&B!=="none"){var H=e.mgc;H?T=!0:H=I.color;var V=r.uid;T&&(V+="-"+e.i),_r.gradient(t,a,V,B,[[0,H],[1,S]],"fill")}else if(O){var W=!1,J=q.fgcolor;!J&&s&&s.color&&(J=s.color,W=!0);var te=z(J,e.i,s&&s.color||null),ne=z(q.bgcolor,e.i,null),oe=q.fgopacity,fe=z(q.size,e.i,8),ve=z(q.solidity,e.i,.3);W=W||e.mcc||xi.isArrayOrTypedArray(q.shape)||xi.isArrayOrTypedArray(q.path)||xi.isArrayOrTypedArray(q.bgcolor)||xi.isArrayOrTypedArray(q.fgcolor)||xi.isArrayOrTypedArray(q.size)||xi.isArrayOrTypedArray(q.solidity);var Me=r.uid;W&&(Me+="-"+e.i),_r.pattern(t,"point",a,Me,O,fe,ve,e.mcc,q.fillmode,ne,te,oe)}else xi.isArrayOrTypedArray(S)?Mo.fill(t,S[e.i]):Mo.fill(t,S);D&&Mo.stroke(t,C)}};_r.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=_r.tryColorscale(r,""),t.lineScale=_r.tryColorscale(r,"line"),W_.traceIs(e,"symbols")&&(t.ms2mrc=yee.isBubble(e)?gee(e):function(){return(r.size||6)/2}),e.selectedpoints&&xi.extendFlat(t,_r.makeSelectedPointStyleFns(e)),t};_r.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.marker||{},s=r.marker||{},l=i.marker||{},f=a.opacity,h=s.opacity,v=l.opacity,m=h!==void 0,_=v!==void 0;(xi.isArrayOrTypedArray(f)||m||_)&&(t.selectedOpacityFn=function(z){var O=z.mo===void 0?a.opacity:z.mo;return z.selected?m?h:O:_?v:qE*O});var T=a.color,S=s.color,C=l.color;(S||C)&&(t.selectedColorFn=function(z){var O=z.mcc||T;return z.selected?S||O:C||O});var D=a.size,E=s.size,I=l.size,B=E!==void 0,q=I!==void 0;return W_.traceIs(e,"symbols")&&(B||q)&&(t.selectedSizeFn=function(z){var O=z.mrc||D/2;return z.selected?B?E/2:O:q?I/2:O}),t};_r.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.textfont||{},s=r.textfont||{},l=i.textfont||{},f=a.color,h=s.color,v=l.color;return t.selectedTextColorFn=function(m){var _=m.tc||f;return m.selected?h||_:v||(h?_:Mo.addOpacity(_,qE))},t};_r.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=_r.makeSelectedPointStyleFns(t),i=t.marker||{},a=[];r.selectedOpacityFn&&a.push(function(s,l){s.style("opacity",r.selectedOpacityFn(l))}),r.selectedColorFn&&a.push(function(s,l){Mo.fill(s,r.selectedColorFn(l))}),r.selectedSizeFn&&a.push(function(s,l){var f=l.mx||i.symbol||0,h=r.selectedSizeFn(l);s.attr("d",BE(_r.symbolNumber(f),h,g5(l,t),y5(l,t))),l.mrc2=h}),a.length&&e.each(function(s){for(var l=to.select(this),f=0;f0?r:0}_r.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var a=_r.makeSelectedTextStyleFns(t);i=a.selectedTextColorFn}var s=t.texttemplate,l=r._fullLayout;e.each(function(f){var h=to.select(this),v=s?xi.extractOption(f,t,"txt","texttemplate"):xi.extractOption(f,t,"tx","text");if(!v&&v!==0){h.remove();return}if(s){var m=t._module.formatLabels,_=m?m(f,t,l):{},T={};_ee(T,t,f.i);var S=t._meta||{};v=xi.texttemplateString(v,_,l._d3locale,T,f,S)}var C=f.tp||t.textposition,D=HE(f,t),E=i?i(f):f.tc||t.textfont.color;h.call(_r.font,{family:f.tf||t.textfont.family,weight:f.tw||t.textfont.weight,style:f.ty||t.textfont.style,variant:f.tv||t.textfont.variant,textcase:f.tC||t.textfont.textcase,lineposition:f.tE||t.textfont.lineposition,shadow:f.tS||t.textfont.shadow,size:D,color:E}).text(v).call(X_.convertToTspans,r).call(VE,C,D,f.mrc)})}};_r.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=_r.makeSelectedTextStyleFns(t);e.each(function(i){var a=to.select(this),s=r.selectedTextColorFn(i),l=i.tp||t.textposition,f=HE(i,t);Mo.fill(a,s);var h=W_.traceIs(t,"bar-like");VE(a,l,f,i.mrc2||i.mrc,h)})}};var LE=.5;_r.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],i=[],a;for(a=1;a=h||z>=m&&z<=h)&&(O<=_&&O>=v||O>=_&&O<=v)&&(e=[z,O])}return e}_r.applyBackoff=YE;_r.makeTester=function(){var e=xi.ensureSingleById(to.select("body"),"svg","js-plotly-tester",function(r){r.attr(dee.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=xi.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});_r.tester=e,_r.testref=t};_r.savedBBoxes={};var h5=0,kee=1e4;_r.bBox=function(e,t,r){r||(r=DE(e));var i;if(r){if(i=_r.savedBBoxes[r],i)return xi.extendFlat({},i)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(r=DE(a),r){var s=+a.getAttribute("x")||0,l=+a.getAttribute("y")||0,f=a.getAttribute("transform");if(!f){var h=_r.bBox(a,!1,r);return s&&(h.left+=s,h.right+=s),l&&(h.top+=l,h.bottom+=l),h}if(r+="~"+s+"~"+l+"~"+f,i=_r.savedBBoxes[r],i)return xi.extendFlat({},i)}}var v,m;t?v=e:(m=_r.tester.node(),v=e.cloneNode(!0),m.appendChild(v)),to.select(v).attr("transform",null).call(X_.positionText,0,0);var _=v.getBoundingClientRect(),T=_r.testref.node().getBoundingClientRect();t||m.removeChild(v);var S={height:_.height,width:_.width,left:_.left-T.left,top:_.top-T.top,right:_.right-T.left,bottom:_.bottom-T.top};return h5>=kee&&(_r.savedBBoxes={},h5=0),r&&(_r.savedBBoxes[r]=S),h5++,xi.extendFlat({},S)};function DE(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}_r.setClipUrl=function(e,t,r){e.attr("clip-path",m5(t,r))};function m5(e,t){if(!e)return null;var r=t._context,i=r._exportedPlot?"":r._baseUrl||"";return i?"url('"+i+"#"+e+"')":"url(#"+e+")"}_r.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(s,l,f){return[l,f].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};_r.setTranslate=function(e,t,r){var i=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",s=e.attr?"attr":"setAttribute",l=e[a]("transform")||"";return t=t||0,r=r||0,l=l.replace(i,"").trim(),l+=Xy(t,r),l=l.trim(),e[s]("transform",l),l};_r.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(s,l,f){return[l,f].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};_r.setScale=function(e,t,r){var i=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",s=e.attr?"attr":"setAttribute",l=e[a]("transform")||"";return t=t||1,r=r||1,l=l.replace(i,"").trim(),l+="scale("+t+","+r+")",l=l.trim(),e[s]("transform",l),l};var Cee=/\s*sc.*/;_r.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var i=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(Cee,"");a+=i,a=a.trim(),this.setAttribute("transform",a)})}};var Eee=/translate\([^)]*\)\s*$/;_r.setTextPointsScale=function(e,t,r){e&&e.each(function(){var i,a=to.select(this),s=a.select("text");if(s.node()){var l=parseFloat(s.attr("x")||0),f=parseFloat(s.attr("y")||0),h=(a.attr("transform")||"").match(Eee);t===1&&r===1?i=[]:i=[Xy(l,f),"scale("+t+","+r+")",Xy(-l,-f)],h&&i.push(h),a.attr("transform",i.join(""))}})};function y5(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}_r.getMarkerStandoff=y5;var Wy=Math.atan2,vd=Math.cos,P0=Math.sin;function PE(e,t){var r=t[0],i=t[1];return[r*vd(e)-i*P0(e),r*P0(e)+i*vd(e)]}var zE,IE,RE,FE,v5,d5;function g5(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||xi.isArrayOrTypedArray(r))&&(r=0));var i,a,s=t.marker.angleref;if(s==="previous"||s==="north"){if(t._geo){var l=t._geo.project(e.lonlat);i=l[0],a=l[1]}else{var f=t._xA,h=t._yA;if(f&&h)i=f.c2p(e.x),a=h.c2p(e.y);else return 90}if(t._geo){var v=e.lonlat[0],m=e.lonlat[1],_=t._geo.project([v,m+1e-5]),T=t._geo.project([v+1e-5,m]),S=Wy(T[1]-a,T[0]-i),C=Wy(_[1]-a,_[0]-i),D;if(s==="north")D=r/180*Math.PI;else if(s==="previous"){var E=v/180*Math.PI,I=m/180*Math.PI,B=zE/180*Math.PI,q=IE/180*Math.PI,z=B-E,O=vd(q)*P0(z),H=P0(q)*vd(I)-vd(q)*P0(I)*vd(z);D=-Wy(O,H)-Math.PI,zE=v,IE=m}var V=PE(S,[vd(D),0]),W=PE(C,[P0(D),0]);r=Wy(V[1]+W[1],V[0]+W[0])/Math.PI*180,s==="previous"&&!(d5===t.uid&&e.i===v5+1)&&(r=null)}if(s==="previous"&&!t._geo)if(d5===t.uid&&e.i===v5+1&&md(i)&&md(a)){var J=i-RE,te=a-FE,ne=t.line&&t.line.shape||"",oe=ne.slice(ne.length-1);oe==="h"&&(te=0),oe==="v"&&(J=0),r+=Wy(te,J)/Math.PI*180+90}else r=null}return RE=i,FE=a,v5=e.i,d5=t.uid,r}_r.getMarkerAngle=g5});var jy=me((Qge,KE)=>{"use strict";var z0=Ja(),Lee=Da(),Dee=eo(),_5=la(),yd=Bt(),XE=yd.strTranslate,j_=bi(),J_=Oa(),I0=co(),jE=i_(),Pee=ts().OPPOSITE_SIDE,JE=/ [XY][0-9]* /,x5=1.6,b5=1.6;function zee(e,t,r){var i=e._fullLayout,a=r.propContainer,s=r.propName,l=r.placeholder,f=r.traceIndex,h=r.avoid||{},v=r.attributes,m=r.transform,_=r.containerGroup,T=1,S=a.title,C=(S&&S.text?S.text:"").trim(),D=!1,E=S&&S.font?S.font:{},I=E.family,B=E.size,q=E.color,z=E.weight,O=E.style,H=E.variant,V=E.textcase,W=E.lineposition,J=E.shadow,te=r.subtitlePropName,ne=!!te,oe=r.subtitlePlaceholder,fe=(a.title||{}).subtitle||{text:"",font:{}},ve=fe.text.trim(),Me=!1,Se=1,Ae=fe.font,we=Ae.family,Te=Ae.size,Ce=Ae.color,Le=Ae.weight,$e=Ae.style,lt=Ae.variant,it=Ae.textcase,gt=Ae.lineposition,We=Ae.shadow,Et;s==="title.text"?Et="titleText":s.indexOf("axis")!==-1?Et="axisTitleText":s.indexOf("colorbar")!==-1&&(Et="colorbarTitleText");var nt=e._context.edits[Et];function wt(Gt,Ct){return Gt===void 0||Ct===void 0?!1:Gt.replace(JE," % ")===Ct.replace(JE," % ")}C===""?T=0:wt(C,l)&&(nt||(C=""),T=.2,D=!0),ne&&(ve===""?Se=0:wt(ve,oe)&&(nt||(ve=""),Se=.2,Me=!0)),r._meta?C=yd.templateString(C,r._meta):i._meta&&(C=yd.templateString(C,i._meta));var xt=C||ve||nt,vt;_||(_=yd.ensureSingle(i._infolayer,"g","g-"+t),vt=i._hColorbarMoveTitle);var de=_.selectAll("text."+t).data(xt?[0]:[]);de.enter().append("text"),de.text(C).attr("class",t),de.exit().remove();var ze=null,pe=t+"-subtitle",rt=ve||nt;if(ne&&rt&&(ze=_.selectAll("text."+pe).data(rt?[0]:[]),ze.enter().append("text"),ze.text(ve).attr("class",pe),ze.exit().remove()),!xt)return _;function mt(Gt,Ct){yd.syncOrAsync([Xe,Ft],{title:Gt,subtitle:Ct})}function Xe(Gt){var Ct=Gt.title,Mt=Gt.subtitle,Ut;!m&&vt&&(m={}),m?(Ut="",m.rotate&&(Ut+="rotate("+[m.rotate,v.x,v.y]+")"),(m.offset||vt)&&(Ut+=XE(0,(m.offset||0)-(vt||0)))):Ut=null,Ct.attr("transform",Ut);function Ot(Oe){if(Oe){var yt=z0.select(Oe.node().parentNode).select("."+pe);if(!yt.empty()){var qt=Oe.node().getBBox();if(qt.height){var Qt=qt.y+qt.height+x5*Te;yt.attr("y",Qt)}}}}if(Ct.style("opacity",T*J_.opacity(q)).call(j_.font,{color:J_.rgb(q),size:z0.round(B,2),family:I,weight:z,style:O,variant:H,textcase:V,shadow:J,lineposition:W}).attr(v).call(I0.convertToTspans,e,Ot),Mt){var Be=_.select("."+t+"-math-group"),ft=Ct.node().getBBox(),or=Be.node()?Be.node().getBBox():void 0,Cr=or?or.y+or.height+x5*Te:ft.y+ft.height+b5*Te,Sr=yd.extendFlat({},v,{y:Cr});Mt.attr("transform",Ut),Mt.style("opacity",Se*J_.opacity(Ce)).call(j_.font,{color:J_.rgb(Ce),size:z0.round(Te,2),family:we,weight:Le,style:$e,variant:lt,textcase:it,shadow:We,lineposition:gt}).attr(Sr).call(I0.convertToTspans,e)}return Dee.previousPromises(e)}function Ft(Gt){var Ct=Gt.title,Mt=z0.select(Ct.node().parentNode);if(h&&h.selection&&h.side&&C){Mt.attr("transform",null);var Ut=Pee[h.side],Ot=h.side==="left"||h.side==="top"?-1:1,Be=Lee(h.pad)?h.pad:2,ft=j_.bBox(Mt.node()),or={t:0,b:0,l:0,r:0},Cr=e._fullLayout._reservedMargin;for(var Sr in Cr)for(var Oe in Cr[Sr]){var yt=Cr[Sr][Oe];or[Oe]=Math.max(or[Oe],yt)}var qt={left:or.l,top:or.t,right:i.width-or.r,bottom:i.height-or.b},Qt=h.maxShift||Ot*(qt[h.side]-ft[h.side]),Vt=0;if(Qt<0)Vt=Qt;else{var tr=h.offsetLeft||0,ar=h.offsetTop||0;ft.left-=tr,ft.right-=tr,ft.top-=ar,ft.bottom-=ar,h.selection.each(function(){var lr=j_.bBox(this);yd.bBoxIntersect(ft,lr,Be)&&(Vt=Math.max(Vt,Ot*(lr[h.side]-ft[Ut])+Be))}),Vt=Math.min(Qt,Vt),a._titleScoot=Math.abs(Vt)}if(Vt>0||Qt<0){var zr={left:[-Vt,0],right:[Vt,0],top:[0,-Vt],bottom:[0,Vt]}[h.side];Mt.attr("transform",XE(zr[0],zr[1]))}}}de.call(mt,ze);function Lt(Gt,Ct){Gt.text(Ct).on("mouseover.opacity",function(){z0.select(this).transition().duration(jE.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){z0.select(this).transition().duration(jE.HIDE_PLACEHOLDER).style("opacity",0)})}if(nt&&(C?de.on(".opacity",null):(Lt(de,l),D=!0),de.call(I0.makeEditable,{gd:e}).on("edit",function(Gt){f!==void 0?_5.call("_guiRestyle",e,s,Gt,f):_5.call("_guiRelayout",e,s,Gt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(mt)}).on("input",function(Gt){this.text(Gt||" ").call(I0.positionText,v.x,v.y)}),ne)){if(ne&&!C){var Tt=de.node().getBBox(),It=Tt.y+Tt.height+b5*Te;ze.attr("y",It)}ve?ze.on(".opacity",null):(Lt(ze,oe),Me=!0),ze.call(I0.makeEditable,{gd:e}).on("edit",function(Gt){_5.call("_guiRelayout",e,"title.subtitle.text",Gt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(mt)}).on("input",function(Gt){this.text(Gt||" ").call(I0.positionText,ze.attr("x"),ze.attr("y"))})}return de.classed("js-placeholder",D),ze&&ze.classed("js-placeholder",Me),_}KE.exports={draw:zee,SUBTITLE_PADDING_EM:b5,SUBTITLE_PADDING_MATHJAX_EM:x5}});var i2=me(($ge,rL)=>{"use strict";var Iee=Ja(),Ree=s0().utcFormat,Fi=Bt(),Fee=Fi.numberFormat,Ef=Da(),Fh=Fi.cleanNumber,qee=Fi.ms2DateTime,QE=Fi.dateTime2ms,Lf=Fi.ensureNumber,$E=Fi.isArrayOrTypedArray,qh=Zi(),K_=qh.FP_SAFE,Fu=qh.BADNUM,Nee=qh.LOG_CLIP,Bee=qh.ONEWEEK,Q_=qh.ONEDAY,$_=qh.ONEHOUR,eL=qh.ONEMIN,tL=qh.ONESEC,e2=Xn(),a2=Ao(),t2=a2.HOUR_PATTERN,r2=a2.WEEKDAY_PATTERN;function Jy(e){return Math.pow(10,e)}function w5(e){return e!=null}rL.exports=function(t,r){r=r||{};var i=t._id||"x",a=i.charAt(0);function s(z,O){if(z>0)return Math.log(z)/Math.LN10;if(z<=0&&O&&t.range&&t.range.length===2){var H=t.range[0],V=t.range[1];return .5*(H+V-2*Nee*Math.abs(H-V))}else return Fu}function l(z,O,H,V){if((V||{}).msUTC&&Ef(z))return+z;var W=QE(z,H||t.calendar);if(W===Fu)if(Ef(z)){z=+z;var J=Math.floor(Fi.mod(z+.05,1)*10),te=Math.round(z-J/10);W=QE(new Date(te))+J/10}else return Fu;return W}function f(z,O,H){return qee(z,O,H||t.calendar)}function h(z){return t._categories[Math.round(z)]}function v(z){if(w5(z)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[z]!==void 0)return t._categoriesMap[z];t._categories.push(typeof z=="number"?String(z):z);var O=t._categories.length-1;return t._categoriesMap[z]=O,O}return Fu}function m(z,O){for(var H=new Array(O),V=0;Vt.range[1]&&(H=!H);for(var V=H?-1:1,W=V*z,J=0,te=0;teoe)J=te+1;else{J=W<(ne+oe)/2?te:te+1;break}}var fe=t._B[J]||0;return isFinite(fe)?C(z,t._m2,fe):0},I=function(z){var O=t._rangebreaks.length;if(!O)return D(z,t._m,t._b);for(var H=0,V=0;Vt._rangebreaks[V].pmax&&(H=V+1);return D(z,t._m2,t._B[H])}}t.c2l=t.type==="log"?s:Lf,t.l2c=t.type==="log"?Jy:Lf,t.l2p=E,t.p2l=I,t.c2p=t.type==="log"?function(z,O){return E(s(z,O))}:E,t.p2c=t.type==="log"?function(z){return Jy(I(z))}:I,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=Fh,t.c2d=t.c2r=t.l2d=t.l2r=Lf,t.d2p=t.r2p=function(z){return t.l2p(Fh(z))},t.p2d=t.p2r=I,t.cleanPos=Lf):t.type==="log"?(t.d2r=t.d2l=function(z,O){return s(Fh(z),O)},t.r2d=t.r2c=function(z){return Jy(Fh(z))},t.d2c=t.r2l=Fh,t.c2d=t.l2r=Lf,t.c2r=s,t.l2d=Jy,t.d2p=function(z,O){return t.l2p(t.d2r(z,O))},t.p2d=function(z){return Jy(I(z))},t.r2p=function(z){return t.l2p(Fh(z))},t.p2r=I,t.cleanPos=Lf):t.type==="date"?(t.d2r=t.r2d=Fi.identity,t.d2c=t.r2c=t.d2l=t.r2l=l,t.c2d=t.c2r=t.l2d=t.l2r=f,t.d2p=t.r2p=function(z,O,H){return t.l2p(l(z,0,H))},t.p2d=t.p2r=function(z,O,H){return f(I(z),O,H)},t.cleanPos=function(z){return Fi.cleanDate(z,Fu,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=v,t.r2d=t.c2d=t.l2d=h,t.d2r=t.d2l_noadd=T,t.r2c=function(z){var O=S(z);return O!==void 0?O:t.fraction2r(.5)},t.l2r=t.c2r=Lf,t.r2l=S,t.d2p=function(z){return t.l2p(t.r2c(z))},t.p2d=function(z){return h(I(z))},t.r2p=t.d2p,t.p2r=I,t.cleanPos=function(z){return typeof z=="string"&&z!==""?z:Lf(z)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=h,t.d2r=t.d2l_noadd=T,t.r2c=function(z){var O=T(z);return O!==void 0?O:t.fraction2r(.5)},t.r2c_just_indices=_,t.l2r=t.c2r=Lf,t.r2l=T,t.d2p=function(z){return t.l2p(t.r2c(z))},t.p2d=function(z){return h(I(z))},t.r2p=t.d2p,t.p2r=I,t.cleanPos=function(z){return Array.isArray(z)||typeof z=="string"&&z!==""?z:Lf(z)},t.setupMultiCategory=function(z){var O=t._traceIndices,H,V,W=t._matchGroup;if(W&&t._categories.length===0){for(var J in W)if(J!==i){var te=r[e2.id2name(J)];O=O.concat(te._traceIndices)}}var ne=[[0,{}],[0,{}]],oe=[];for(H=0;Hte[1]&&(V[J?0:1]=H),V[0]===V[1]){var ne=t.l2r(O),oe=t.l2r(H);if(O!==void 0){var fe=ne+1;H!==void 0&&(fe=Math.min(fe,oe)),V[J?1:0]=fe}if(H!==void 0){var ve=oe+1;O!==void 0&&(ve=Math.max(ve,ne)),V[J?0:1]=ve}}}},t.cleanRange=function(z,O){t._cleanRange(z,O),t.limitRange(z)},t._cleanRange=function(z,O){O||(O={}),z||(z="range");var H=Fi.nestedProperty(t,z).get(),V,W;if(t.type==="date"?W=Fi.dfltRange(t.calendar):a==="y"?W=a2.DFLTRANGEY:t._name==="realaxis"?W=[0,1]:W=O.dfltRange||a2.DFLTRANGEX,W=W.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(W[0]=0),!H||H.length!==2){Fi.nestedProperty(t,z).set(W);return}var J=H[0]===null,te=H[1]===null;for(t.type==="date"&&!t.autorange&&(H[0]=Fi.cleanDate(H[0],Fu,t.calendar),H[1]=Fi.cleanDate(H[1],Fu,t.calendar)),V=0;V<2;V++)if(t.type==="date"){if(!Fi.isDateTime(H[V],t.calendar)){t[z]=W;break}if(t.r2l(H[0])===t.r2l(H[1])){var ne=Fi.constrain(t.r2l(H[0]),Fi.MIN_MS+1e3,Fi.MAX_MS-1e3);H[0]=t.l2r(ne-1e3),H[1]=t.l2r(ne+1e3);break}}else{if(!Ef(H[V]))if(!(J||te)&&Ef(H[1-V]))H[V]=H[1-V]*(V?10:.1);else{t[z]=W;break}if(H[V]<-K_?H[V]=-K_:H[V]>K_&&(H[V]=K_),H[0]===H[1]){var oe=Math.max(1,Math.abs(H[0]*1e-6));H[0]-=oe,H[1]+=oe}}},t.setScale=function(z){var O=r._size;if(t.overlaying){var H=e2.getFromId({_fullLayout:r},t.overlaying);t.domain=H.domain}var V=z&&t._r?"_r":"range",W=t.calendar;t.cleanRange(V);var J=t.r2l(t[V][0],W),te=t.r2l(t[V][1],W),ne=a==="y";if(ne?(t._offset=O.t+(1-t.domain[1])*O.h,t._length=O.h*(t.domain[1]-t.domain[0]),t._m=t._length/(J-te),t._b=-t._m*te):(t._offset=O.l+t.domain[0]*O.w,t._length=O.w*(t.domain[1]-t.domain[0]),t._m=t._length/(te-J),t._b=-t._m*J),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var oe,fe;if(t._rangebreaks=t.locateBreaks(Math.min(J,te),Math.max(J,te)),t._rangebreaks.length){for(oe=0;oete&&(ve=!ve),ve&&t._rangebreaks.reverse();var Me=ve?-1:1;for(t._m2=Me*t._length/(Math.abs(te-J)-t._lBreaks),t._B.push(-t._m2*(ne?te:J)),oe=0;oeW&&(W+=7,JW&&(W+=24,J=V&&J=V&&z=We.min&&($eWe.max&&(We.max=lt),it=!1)}it&&te.push({min:$e,max:lt})}};for(H=0;H{"use strict";var aL=Da(),T5=Bt(),Oee=Zi().BADNUM,n2=T5.isArrayOrTypedArray,Uee=T5.isDateTime,Vee=T5.cleanNumber,iL=Math.round;oL.exports=function(t,r,i){var a=t,s=i.noMultiCategory;if(n2(a)&&!a.length)return"-";if(!s&&Wee(a))return"multicategory";if(s&&Array.isArray(a[0])){for(var l=[],f=0;fs*2}function nL(e){return Math.max(1,(e-1)/1e3)}function Yee(e,t){for(var r=e.length,i=nL(r),a=0,s=0,l={},f=0;fa*2}function Wee(e){return n2(e[0])&&n2(e[1])}});var Ky=me((t1e,dL)=>{"use strict";var Xee=Ja(),fL=Da(),Nh=Bt(),o2=Zi().FP_SAFE,jee=la(),Jee=bi(),cL=Xn(),Kee=cL.getFromId,Qee=cL.isLinked;dL.exports={applyAutorangeOptions:vL,getAutoRange:M5,makePadFn:S5,doAutoRange:ete,findExtremes:tte,concatExtremes:E5};function M5(e,t){var r,i,a=[],s=e._fullLayout,l=S5(s,t,0),f=S5(s,t,1),h=E5(e,t),v=h.min,m=h.max;if(v.length===0||m.length===0)return Nh.simpleMap(t.range,t.r2l);var _=v[0].val,T=m[0].val;for(r=1;r0&&(te=q-l(H)-f(V),te>z?ne/te>O&&(W=H,J=V,O=ne/te):ne/q>O&&(W={val:H.val,nopad:1},J={val:V.val,nopad:1},O=ne/q));function oe(Ae,we){return Math.max(Ae,f(we))}if(_===T){var fe=_-1,ve=_+1;if(I)if(_===0)a=[0,1];else{var Me=(_>0?m:v).reduce(oe,0),Se=_/(1-Math.min(.5,Me/q));a=_>0?[0,Se]:[Se,0]}else B?a=[Math.max(0,fe),Math.max(1,ve)]:a=[fe,ve]}else I?(W.val>=0&&(W={val:0,nopad:1}),J.val<=0&&(J={val:0,nopad:1})):B&&(W.val-O*l(W)<0&&(W={val:0,nopad:1}),J.val<=0&&(J={val:1,nopad:1})),O=(J.val-W.val-sL(t,H.val,V.val))/(q-l(W)-f(J)),a=[W.val-O*l(W),J.val+O*f(J)];return a=vL(a,t),t.limitRange&&t.limitRange(),C&&a.reverse(),Nh.simpleMap(a,t.l2r||Number)}function sL(e,t,r){var i=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,r),s=0;s0?r.ppadplus:r.ppadminus)||r.ppad||0),H=z((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),V=z(r.vpadplus||r.vpad),W=z(r.vpadminus||r.vpad);if(!v){if(B=1/0,q=-1/0,h)for(_=0;_0&&(B=T),T>q&&T-o2&&(B=T),T>q&&T=ne;_--)te(_);return{min:i,max:a,opts:r}}function k5(e,t,r,i){hL(e,t,r,i,rte)}function C5(e,t,r,i){hL(e,t,r,i,ate)}function hL(e,t,r,i,a){for(var s=i.tozero,l=i.extrapad,f=!0,h=0;h=r&&(v.extrapad||!l)){f=!1;break}else a(t,v.val)&&v.pad<=r&&(l||!v.extrapad)&&(e.splice(h,1),h--)}if(f){var m=s&&t===0;e.push({val:t,pad:m?0:r,extrapad:m?!1:l})}}function uL(e){return fL(e)&&Math.abs(e)=t}function ite(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&s2(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&s2(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function nte(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&s2(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&s2(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function s2(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=h&&(s=h,r=h),l<=h&&(l=h,i=h)}}return r=ite(r,t),i=nte(i,t),[r,i]}});var Xi=me((r1e,FL)=>{"use strict";var Xl=Ja(),Nn=Da(),R0=eo(),$y=la(),$r=Bt(),F0=$r.strTranslate,gd=co(),ote=jy(),eg=Oa(),sl=bi(),ste=Ru(),pL=Yw(),So=Zi(),lte=So.ONEMAXYEAR,f2=So.ONEAVGYEAR,c2=So.ONEMINYEAR,ute=So.ONEMAXQUARTER,z5=So.ONEAVGQUARTER,h2=So.ONEMINQUARTER,fte=So.ONEMAXMONTH,q0=So.ONEAVGMONTH,v2=So.ONEMINMONTH,ll=So.ONEWEEK,as=So.ONEDAY,Bh=as/2,Pf=So.ONEHOUR,tg=So.ONEMIN,d2=So.ONESEC,cte=So.ONEMILLI,hte=So.ONEMICROSEC,_d=So.MINUS_SIGN,y2=So.BADNUM,I5={K:"zeroline"},R5={K:"gridline",L:"path"},F5={K:"minor-gridline",L:"path"},SL={K:"tick",L:"path"},mL={K:"tick",L:"text"},yL={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},g2=ts(),Qy=g2.MID_SHIFT,xd=g2.CAP_SHIFT,rg=g2.LINE_SPACING,vte=g2.OPPOSITE_SIDE,p2=3,Kt=FL.exports={};Kt.setConvert=i2();var dte=A5(),wc=Xn(),pte=wc.idSort,mte=wc.isLinked;Kt.id2name=wc.id2name;Kt.name2id=wc.name2id;Kt.cleanId=wc.cleanId;Kt.list=wc.list;Kt.listIds=wc.listIds;Kt.getFromId=wc.getFromId;Kt.getFromTrace=wc.getFromTrace;var kL=Ky();Kt.getAutoRange=kL.getAutoRange;Kt.findExtremes=kL.findExtremes;var yte=1e-4;function O5(e){var t=(e[1]-e[0])*yte;return[e[0]-t,e[1]+t]}Kt.coerceRef=function(e,t,r,i,a,s){var l=i.charAt(i.length-1),f=r._fullLayout._subplots[l+"axis"],h=i+"ref",v={};return a||(a=f[0]||(typeof s=="string"?s:s[0])),s||(s=a),f=f.concat(f.map(function(m){return m+" domain"})),v[h]={valType:"enumerated",values:f.concat(s?typeof s=="string"?[s]:s:[]),dflt:a},$r.coerce(e,t,v,h)};Kt.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Kt.coercePosition=function(e,t,r,i,a,s){var l,f,h=Kt.getRefType(i);if(h!=="range")l=$r.ensureNumber,f=r(a,s);else{var v=Kt.getFromId(t,i);s=v.fraction2r(s),f=r(a,s),l=v.cleanPos}e[a]=l(f)};Kt.cleanPosition=function(e,t,r){var i=r==="paper"||r==="pixel"?$r.ensureNumber:Kt.getFromId(t,r).cleanPos;return i(e)};Kt.redrawComponents=function(e,t){t=t||Kt.listIds(e);var r=e._fullLayout;function i(a,s,l,f){for(var h=$y.getComponentMethod(a,s),v={},m=0;m2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Kt.saveRangeInitial=function(e,t){for(var r=Kt.list(e,"",!0),i=!1,a=0;a_*.3||v(i)||v(a))){var T=r.dtick/2;e+=e+Tl){var f=Number(r.substr(1));s.exactYears>l&&f%12===0?e=Kt.tickIncrement(e,"M6","reverse")+as*1.5:s.exactMonths>l?e=Kt.tickIncrement(e,"M1","reverse")+as*15.5:e-=Bh;var h=Kt.tickIncrement(e,r);if(h<=i)return h}return e}Kt.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var i=t.dtick&&Nn(t._tmin),a;if(i){var s=Kt.tickIncrement(t._tmin,t.dtick,!0);a=[t._tmin,s*.99+t._tmin*.01]}else{var l=$r.simpleMap(t.range,t.r2l);a=[l[0],.8*l[0]+.2*l[1]]}if(e.range=$r.simpleMap(a,t.l2r),e._isMinor=!0,Kt.prepTicks(e,r),i){var f=Nn(t.dtick),h=Nn(e.dtick),v=f?t.dtick:+t.dtick.substring(1),m=h?e.dtick:+e.dtick.substring(1);f&&h?L5(v,m)?v===2*ll&&m===2*as&&(e.dtick=ll):v===2*ll&&m===3*as?e.dtick=ll:v===ll&&!(t._input.minor||{}).nticks?e.dtick=as:xL(v/m,2.5)?e.dtick=v/2:e.dtick=v:String(t.dtick).charAt(0)==="M"?h?e.dtick="M1":L5(v,m)?v>=12&&m===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?L5(v,m)||(e.dtick=xL(v/m,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function L5(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function xL(e,t){return Math.abs(e/t-1)<.001}Kt.prepTicks=function(e,t){var r=$r.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var i=e.nticks,a;i||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?$r.bigFont(e.tickfont.size||12):15,i=e._length/a):(a=e._id.charAt(0)==="y"?40:80,i=$r.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(i*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,Kt.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(s=i-1,l=i):(s=i,l=i);var f=e[s].value,h=e[l].value,v=Math.abs(h-f),m=r||v,_=0;m>=c2?v>=c2&&v<=lte?_=v:_=f2:r===z5&&m>=h2?v>=h2&&v<=ute?_=v:_=z5:m>=v2?v>=v2&&v<=fte?_=v:_=q0:r===ll&&m>=ll?_=ll:m>=as?_=as:r===Bh&&m>=Bh?_=Bh:r===Pf&&m>=Pf&&(_=Pf);var T;_>=v&&(_=v,T=!0);var S=a+_;if(t.rangebreaks&&_>0){for(var C=84,D=0,E=0;Ell&&(_=v)}(_>0||i===0)&&(e[i].periodX=a+_/2)}}Kt.calcTicks=function(t,r){for(var i=t.type,a=t.calendar,s=t.ticklabelstep,l=t.ticklabelmode==="period",f=t.range[0]>t.range[1],h=!t.ticklabelindex||$r.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],v=$r.simpleMap(t.range,t.r2l,void 0,void 0,r),m=v[1]=(q?0:1);z--){var O=!z;z?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var H=z?t:$r.extendFlat({},t,t.minor);if(O?Kt.prepMinorTicks(H,t,r):Kt.prepTicks(H,r),H.tickmode==="array"){z?(E=[],C=bL(t,!O)):(I=[],D=bL(t,!O));continue}if(H.tickmode==="sync"){E=[],C=Tte(t);continue}var V=O5(v),W=V[0],J=V[1],te=Nn(H.dtick),ne=i==="log"&&!(te||H.dtick.charAt(0)==="L"),oe=Kt.tickFirst(H,r);if(z){if(t._tmin=oe,oe=J:ve<=J;ve=Kt.tickIncrement(ve,Ae,m,a)){if(z&&Me++,H.rangebreaks&&!m){if(ve=T)break}if(E.length>S||ve===fe)break;fe=ve;var we={value:ve};z?(ne&&ve!==(ve|0)&&(we.simpleLabel=!0),s>1&&Me%s&&(we.skipLabel=!0),E.push(we)):(we.minor=!0,I.push(we))}}if(!I||I.length<2)h=!1;else{var Te=(I[1].value-I[0].value)*(f?-1:1);Wte(Te,t.tickformat)||(h=!1)}if(!h)B=E;else{var Ce=E.concat(I);l&&E.length&&(Ce=Ce.slice(1)),Ce=Ce.sort(function(It,Gt){return It.value-Gt.value}).filter(function(It,Gt,Ct){return Gt===0||It.value!==Ct[Gt-1].value});var Le=Ce.map(function(It,Gt){return It.minor===void 0&&!It.skipLabel?Gt:null}).filter(function(It){return It!==null});Le.forEach(function(It){h.map(function(Gt){var Ct=It+Gt;Ct>=0&&Ct-1;xt--){if(E[xt].drop){E.splice(xt,1);continue}E[xt].value=P5(E[xt].value,t);var pe=t.c2p(E[xt].value);(vt?ze>pe-de:zeT||Mt<_)&&(Mt>T&&(Ct.periodX=T),Mt<_&&(Ct.periodX=_),mt(Ct))),Ct}var Ft;for(xt=0;xta&&Tf2)t/=f2,i=a(10),e.dtick="M"+12*Df(t,i,l2);else if(s>q0)t/=q0,e.dtick="M"+Df(t,1,wL);else if(s>as){if(e.dtick=Df(t,as,e._hasDayOfWeekBreaks?[1,2,7,14]:Ate),!r){var l=Kt.getTickFormat(e),f=e.ticklabelmode==="period";f&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=$r.dateTick0(e.calendar,2):e.tick0=$r.dateTick0(e.calendar,1),f&&(e._dowTick0=e.tick0)}}else s>Pf?e.dtick=Df(t,Pf,wL):s>tg?e.dtick=Df(t,tg,TL):s>d2?e.dtick=Df(t,d2,TL):(i=a(10),e.dtick=Df(t,i,l2))}else if(e.type==="log"){e.tick0=0;var h=$r.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(h[1]-h[0])<1){var v=1.5*Math.abs((h[1]-h[0])/t);t=Math.abs(Math.pow(10,h[1])-Math.pow(10,h[0]))/v,i=a(10),e.dtick="L"+Df(t,i,l2)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):H5(e)?(e.tick0=0,i=1,e.dtick=Df(t,i,Mte)):(e.tick0=0,i=a(10),e.dtick=Df(t,i,l2));if(e.dtick===0&&(e.dtick=1),!Nn(e.dtick)&&typeof e.dtick!="string"){var m=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(m)}};function DL(e){var t=e.dtick;if(e._tickexponent=0,!Nn(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),i=e.l2r(r).replace(/(^-|i)/g,""),a=i.length;if(String(t).charAt(0)==="M")a>10||i.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=as&&a<=10||t>=as*15)e._tickround="d";else if(t>=tg&&a<=16||t>=Pf)e._tickround="M";else if(t>=d2&&a<=19||t>=tg)e._tickround="S";else{var s=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(a,s)-20,e._tickround<0&&(e._tickround=4)}}else if(Nn(t)||t.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Nn(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var f=Math.max(Math.abs(l[0]),Math.abs(l[1])),h=Math.floor(Math.log(f)/Math.LN10+.01),v=e.minexponent===void 0?3:e.minexponent;Math.abs(h)>v&&(m2(e.exponentformat)&&!U5(h)?e._tickexponent=3*Math.round((h-1)/3):e._tickexponent=h)}else e._tickround=null}Kt.tickIncrement=function(e,t,r,i){var a=r?-1:1;if(Nn(t))return $r.increment(e,a*t);var s=t.charAt(0),l=a*Number(t.substr(1));if(s==="M")return $r.incrementMonth(e,l,i);if(s==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(s==="D"){var f=t==="D2"?LL:EL,h=e+a*.01,v=$r.roundUp($r.mod(h,1),f,r);return Math.floor(h)+Math.log(Xl.round(Math.pow(10,v),1))/Math.LN10}throw"unrecognized dtick "+String(t)};Kt.tickFirst=function(e,t){var r=e.r2l||Number,i=$r.simpleMap(e.range,r,void 0,void 0,t),a=i[1]=0&&I<=e._length?E:null};if(s&&$r.isArrayOrTypedArray(e.ticktext)){var _=$r.simpleMap(e.range,e.r2l),T=(Math.abs(_[1]-_[0])-(e._lBreaks||0))/1e4;for(v=0;v"+f;else{var v=ig(e),m=e._trueSide||e.side;(!v&&m==="top"||v&&m==="bottom")&&(l+="
")}t.text=l}function kte(e,t,r,i,a){var s=e.dtick,l=t.x,f=e.tickformat,h=typeof s=="string"&&s.charAt(0);if(a==="never"&&(a=""),i&&h!=="L"&&(s="L3",h="L"),f||h==="L")t.text=ag(Math.pow(10,l),e,a,i);else if(Nn(s)||h==="D"&&(e.minorloglabels==="complete"||$r.mod(l+.01,1)<.1)){var v;e.minorloglabels==="complete"&&!($r.mod(l+.01,1)<.1)&&(v=!0,t.fontSize*=.75);var m=Math.pow(10,l).toExponential(0),_=m.split("e"),T=+_[1],S=Math.abs(T),C=e.exponentformat;C==="power"||m2(C)&&U5(T)?(t.text=_[0],S>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),T!==0&&T!==1&&(t.text+=""+(T>0?"":_d)+S+""),t.fontSize*=1.25):(C==="e"||C==="E")&&S>2?t.text=_[0]+C+(T>0?"+":_d)+S:(t.text=ag(Math.pow(10,l),e,"","fakehover"),s==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(h==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,$r.mod(l,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(s);if(e.dtick==="D1"){var D=String(t.text).charAt(0);(D==="0"||D==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(l<0?.5:.25)))}}function Cte(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function Ete(e,t,r){var i=Math.round(t.x),a=e._categories[i]||[],s=a[1]===void 0?"":String(a[1]),l=a[0]===void 0?"":String(a[0]);r?t.text=l+" - "+s:(t.text=s,t.text2=l)}function Lte(e,t,r,i,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=ag(t.x,e,a,i)}function Dte(e,t,r,i,a){if(e.thetaunit==="radians"&&!r){var s=t.x/180;if(s===0)t.text="0";else{var l=Pte(s);if(l[1]>=100)t.text=ag($r.deg2rad(t.x),e,a,i);else{var f=t.x<0;l[1]===1?l[0]===1?t.text="\u03C0":t.text=l[0]+"\u03C0":t.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),f&&(t.text=_d+t.text)}}}else t.text=ag(t.x,e,a,i)}function Pte(e){function t(f,h){return Math.abs(f-h)<=1e-6}function r(f,h){return t(h,0)?f:r(h,f%h)}function i(f){for(var h=1;!t(Math.round(f*h)/h,f);)h*=10;return h}var a=i(e),s=e*a,l=Math.abs(r(s,a));return[Math.round(s/l),Math.round(a/l)]}var zte=["f","p","n","\u03BC","m","","k","M","G","T"];function m2(e){return e==="SI"||e==="B"}function U5(e){return e>14||e<-15}function ag(e,t,r,i){var a=e<0,s=t._tickround,l=r||t.exponentformat||"B",f=t._tickexponent,h=Kt.getTickFormat(t),v=t.separatethousands;if(i){var m={exponentformat:l,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Nn(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};DL(m),s=(Number(m._tickround)||0)+4,f=m._tickexponent,t.hoverformat&&(h=t.hoverformat)}if(h)return t._numFormat(h)(e).replace(/-/g,_d);var _=Math.pow(10,-s)/2;if(l==="none"&&(f=0),e=Math.abs(e),e<_)e="0",a=!1;else{if(e+=_,f&&(e*=Math.pow(10,-f),s+=f),s===0)e=String(Math.floor(e));else if(s<0){e=String(Math.round(e)),e=e.substr(0,e.length+s);for(var T=s;T<0;T++)e+="0"}else{e=String(e);var S=e.indexOf(".")+1;S&&(e=e.substr(0,S+s).replace(/\.?0+$/,""))}e=$r.numSeparate(e,t._separators,v)}if(f&&l!=="hide"){m2(l)&&U5(f)&&(l="power");var C;f<0?C=_d+-f:l!=="power"?C="+"+f:C=String(f),l==="e"||l==="E"?e+=l+C:l==="power"?e+="\xD710"+C+"":l==="B"&&f===9?e+="B":m2(l)&&(e+=zte[f/3+5])}return a?_d+e:e}Kt.getTickFormat=function(e){var t;function r(h){return typeof h!="string"?h:Number(h.replace("M",""))*q0}function i(h,v){var m=["L","D"];if(typeof h==typeof v){if(typeof h=="number")return h-v;var _=m.indexOf(h.charAt(0)),T=m.indexOf(v.charAt(0));return _===T?Number(h.replace(/(L|D)/g,""))-Number(v.replace(/(L|D)/g,"")):_-T}else return typeof h=="number"?1:-1}function a(h,v,m){var _=m||function(C){return C},T=v[0],S=v[1];return(!T&&typeof T!="number"||_(T)<=_(h))&&(!S&&typeof S!="number"||_(S)>=_(h))}function s(h,v){var m=v[0]===null,_=v[1]===null,T=i(h,v[0])>=0,S=i(h,v[1])<=0;return(m||T)&&(_||S)}var l,f;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&a.unshift(a.splice(m,1).shift())}});var f={false:{left:0,right:0}};return $r.syncOrAsync(a.map(function(h){return function(){if(h){var v=Kt.getFromId(e,h);r||(r={}),r.axShifts=f,r.overlayingShiftedAx=l;var m=Kt.drawOne(e,v,r);return v._shiftPusher&&B5(v,v._fullDepth||0,f,!0),v._r=v.range.slice(),v._rl=$r.simpleMap(v._r,v.r2l),m}}}))};Kt.drawOne=function(e,t,r){r=r||{};var i=r.axShifts||{},a=r.overlayingShiftedAx||[],s,l,f;t.setScale();var h=e._fullLayout,v=t._id,m=v.charAt(0),_=Kt.counterLetter(v),T=h._plots[t._mainSubplot],S=t.zerolinelayer==="above traces";if(!T)return;if(t._shiftPusher=t.autoshift||a.indexOf(t._id)!==-1||a.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var C=t.linewidth/2||0;t.ticks==="inside"&&(C+=t.ticklen),B5(t,C,i,!0),B5(t,t.shift||0,i,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Yte(t,i));var D=T[m+"axislayer"],E=t._mainLinePosition,I=E+=t._shift,B=t._mainMirrorPosition,q=t._vals=Kt.calcTicks(t),z=[t.mirror,I,B].join("_");for(s=0;s0?Mt.bottom-Gt:0,Ct))));var ft=0,or=0;if(t._shiftPusher&&(ft=Math.max(Ct,Mt.height>0?Tt==="l"?Gt-Mt.left:Mt.right-Gt:0),t.title.text!==h._dfltTitle[m]&&(or=(t._titleStandoff||0)+(t._titleScoot||0),Tt==="l"&&(or+=ML(t))),t._fullDepth=Math.max(ft,or)),t.automargin){Ut={x:0,y:0,r:0,l:0,t:0,b:0};var Cr=[0,1],Sr=typeof t._shift=="number"?t._shift:0;if(m==="x"){if(Tt==="b"?Ut[Tt]=t._depth:(Ut[Tt]=t._depth=Math.max(Mt.width>0?Gt-Mt.top:0,Ct),Cr.reverse()),Mt.width>0){var Oe=Mt.right-(t._offset+t._length);Oe>0&&(Ut.xr=1,Ut.r=Oe);var yt=t._offset-Mt.left;yt>0&&(Ut.xl=0,Ut.l=yt)}}else if(Tt==="l"?(t._depth=Math.max(Mt.height>0?Gt-Mt.left:0,Ct),Ut[Tt]=t._depth-Sr):(t._depth=Math.max(Mt.height>0?Mt.right-Gt:0,Ct),Ut[Tt]=t._depth+Sr,Cr.reverse()),Mt.height>0){var qt=Mt.bottom-(t._offset+t._length);qt>0&&(Ut.yb=0,Ut.b=qt);var Qt=t._offset-Mt.top;Qt>0&&(Ut.yt=1,Ut.t=Qt)}Ut[_]=t.anchor==="free"?t.position:t._anchorAxis.domain[Cr[0]],t.title.text!==h._dfltTitle[m]&&(Ut[Tt]+=ML(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Ot={x:0,y:0,r:0,l:0,t:0,b:0},Ot[It]=t.linewidth,t.mirror&&t.mirror!==!0&&(Ot[It]+=Ct),t.mirror===!0||t.mirror==="ticks"?Ot[_]=t._anchorAxis.domain[Cr[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Ot[_]=[t._counterDomainMin,t._counterDomainMax][Cr[1]]))}Lt&&(Be=$y.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(AL(Ut,t.automargin),AL(Ot,t.automargin)),R0.autoMargin(e,V5(t),Ut),R0.autoMargin(e,IL(t),Ot),R0.autoMargin(e,RL(t),Be)}),$r.syncOrAsync(Xe)}};function AL(e,t){if(e){var r=Object.keys(yL).reduce(function(i,a){return t.indexOf(a)!==-1&&yL[a].forEach(function(s){i[s]=1}),i},{});Object.keys(e).forEach(function(i){r[i]||(i.length===1?e[i]=0:delete e[i])})}}function Ite(e,t){var r=[],i,a=function(s,l){var f=s.xbnd[l];f!==null&&r.push($r.extendFlat({},s,{x:f}))};if(t.length){for(i=0;ie.range[1],f=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,h=!f;if(r){var v=l?-1:1;r=r*v}if(i){var m=e.side,_=f&&(m==="top"||m==="left")||h&&(m==="bottom"||m==="right")?1:-1;i=i*_}return e._id.charAt(0)==="x"?function(T){return F0(a+e._offset+e.l2p(q5(T))+r,s+i)}:function(T){return F0(s+i,a+e._offset+e.l2p(q5(T))+r)}};function q5(e){return e.periodX!==void 0?e.periodX:e.x}function Nte(e){var t=e.ticklabelposition||"",r=e.tickson||"",i=function(C){return t.indexOf(C)!==-1},a=i("top"),s=i("left"),l=i("right"),f=i("bottom"),h=i("inside"),v=r!=="boundaries"&&(f||s||a||l);if(!v&&!h)return[0,0];var m=e.side,_=v?(e.tickwidth||0)/2:0,T=p2,S=e.tickfont?e.tickfont.size:12;return(f||a)&&(_+=S*xd,T+=(e.linewidth||0)/2),(s||l)&&(_+=(e.linewidth||0)/2,T+=p2),h&&m==="top"&&(T-=S*(1-xd)),(s||a)&&(_=-_),(m==="bottom"||m==="right")&&(T=-T),[v?_:0,h?T:0]}Kt.makeTickPath=function(e,t,r,i){i||(i={});var a=i.minor;if(a&&!e.minor)return"";var s=i.len!==void 0?i.len:a?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),f=(e.linewidth||1)/2;return l==="x"?"M0,"+(t+f*r)+"v"+s*r:"M"+(t+f*r)+",0h"+s*r};Kt.makeLabelFns=function(e,t,r){var i=e.ticklabelposition||"",a=e.tickson||"",s=function(fe){return i.indexOf(fe)!==-1},l=s("top"),f=s("left"),h=s("right"),v=s("bottom"),m=a!=="boundaries"&&(v||f||l||h),_=s("inside"),T=i==="inside"&&e.ticks==="inside"||!_&&e.ticks==="outside"&&a!=="boundaries",S=0,C=0,D=T?e.ticklen:0;if(_?D*=-1:m&&(D=0),T&&(S+=D,r)){var E=$r.deg2rad(r);S=D*Math.cos(E)+1,C=D*Math.sin(E)}e.showticklabels&&(T||e.showline)&&(S+=.2*e.tickfont.size),S+=(e.linewidth||1)/2*(_?-1:1);var I={labelStandoff:S,labelShift:C},B,q,z,O,H=0,V=e.side,W=e._id.charAt(0),J=e.tickangle,te;if(W==="x")te=!_&&V==="bottom"||_&&V==="top",O=te?1:-1,_&&(O*=-1),B=C*O,q=t+S*O,z=te?1:-.2,Math.abs(J)===90&&(_?z+=Qy:J===-90&&V==="bottom"?z=xd:J===90&&V==="top"?z=Qy:z=.5,H=Qy/2*(J/90)),I.xFn=function(fe){return fe.dx+B+H*fe.fontSize},I.yFn=function(fe){return fe.dy+q+fe.fontSize*z},I.anchorFn=function(fe,ve){if(m){if(f)return"end";if(h)return"start"}return!Nn(ve)||ve===0||ve===180?"middle":ve*O<0!==_?"end":"start"},I.heightFn=function(fe,ve,Me){return ve<-60||ve>60?-.5*Me:e.side==="top"!==_?-Me:0};else if(W==="y"){if(te=!_&&V==="left"||_&&V==="right",O=te?1:-1,_&&(O*=-1),B=S,q=C*O,z=0,!_&&Math.abs(J)===90&&(J===-90&&V==="left"||J===90&&V==="right"?z=xd:z=.5),_){var ne=Nn(J)?+J:0;if(ne!==0){var oe=$r.deg2rad(ne);H=Math.abs(Math.sin(oe))*xd*O,z=0}}I.xFn=function(fe){return fe.dx+t-(B+fe.fontSize*z)*O+H*fe.fontSize},I.yFn=function(fe){return fe.dy+q+fe.fontSize*Qy},I.anchorFn=function(fe,ve){return Nn(ve)&&Math.abs(ve)===90?"middle":te?"end":"start"},I.heightFn=function(fe,ve,Me){return e.side==="right"&&(ve*=-1),ve<-30?-Me:ve<30?-.5*Me:0}}return I};function _2(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Kt.drawTicks=function(e,t,r){r=r||{};var i=t._id+"tick",a=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(t.ticks?r.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),s=r.layer.selectAll("path."+i).data(a,_2);s.exit().remove(),s.enter().append("path").classed(i,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(l){return eg.stroke(Xl.select(this),l.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(l){return sl.crispRound(e,l.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),x2(t,[SL]),s.attr("transform",r.transFn)};Kt.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var i=t._id+"grid",a=t.minor&&t.minor.showgrid,s=a?r.vals.filter(function(I){return I.minor}):[],l=t.showgrid?r.vals.filter(function(I){return!I.minor}):[],f=r.counterAxis;if(f&&Kt.shouldShowZeroLine(e,t,f))for(var h=t.tickmode==="array",v=0;v=0;C--){var D=C?T:S;if(D){var E=D.selectAll("path."+i).data(C?l:s,_2);E.exit().remove(),E.enter().append("path").classed(i,1).classed("crisp",r.crisp!==!1),E.attr("transform",r.transFn).attr("d",r.path).each(function(I){return eg.stroke(Xl.select(this),I.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(I){return sl.dashStyle(I.minor?t.minor.griddash:t.griddash,I.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(I){return(I.minor?_:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&E.attr("d",r.path)}}x2(t,[R5,F5])}};Kt.drawZeroLine=function(e,t,r){r=r||r;var i=t._id+"zl",a=Kt.shouldShowZeroLine(e,t,r.counterAxis),s=r.layer.selectAll("path."+i).data(a?[{x:0,id:t._id}]:[]);s.exit().remove(),s.enter().append("path").classed(i,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(l,f){return pte(l.id,f.id)})}),s.attr("transform",r.transFn).attr("d",r.path).call(eg.stroke,t.zerolinecolor||eg.defaultLine).style("stroke-width",sl.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),x2(t,[I5])};Kt.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,a=t._id,s=t.zerolinelayer==="above traces",l=r.cls||a+"tick",f=r.vals.filter(function(Te){return Te.text}),h=r.labelFns,v=r.secondary?0:t.tickangle,m=(t._prevTickAngles||{})[l],_=r.layer.selectAll("g."+l).data(t.showticklabels?f:[],_2),T=[];_.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(Te){var Ce=Xl.select(this),Le=e._promises.length;Ce.call(gd.positionText,h.xFn(Te),h.yFn(Te)).call(sl.font,{family:Te.font,size:Te.fontSize,color:Te.fontColor,weight:Te.fontWeight,style:Te.fontStyle,variant:Te.fontVariant,textcase:Te.fontTextcase,lineposition:Te.fontLineposition,shadow:Te.fontShadow}).text(Te.text).call(gd.convertToTspans,e),e._promises[Le]?T.push(e._promises.pop().then(function(){S(Ce,v)})):S(Ce,v)}),x2(t,[mL]),_.exit().remove(),r.repositionOnUpdate&&_.each(function(Te){Xl.select(this).select("text").call(gd.positionText,h.xFn(Te),h.yFn(Te))});function S(Te,Ce){Te.each(function(Le){var $e=Xl.select(this),lt=$e.select(".text-math-group"),it=h.anchorFn(Le,Ce),gt=r.transFn.call($e.node(),Le)+(Nn(Ce)&&+Ce!=0?" rotate("+Ce+","+h.xFn(Le)+","+(h.yFn(Le)-Le.fontSize/2)+")":""),We=gd.lineCount($e),Et=rg*Le.fontSize,nt=h.heightFn(Le,Nn(Ce)?+Ce:0,(We-1)*Et);if(nt&&(gt+=F0(0,nt)),lt.empty()){var wt=$e.select("text");wt.attr({transform:gt,"text-anchor":it}),wt.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var xt=sl.bBox(lt.node()).width,vt=xt*{end:-.5,start:.5}[it];lt.attr("transform",gt+F0(vt,0))}})}t._adjustTickLabelsOverflow=function(){var Te=t.ticklabeloverflow;if(!(!Te||Te==="allow")){var Ce=Te.indexOf("hide")!==-1,Le=t._id.charAt(0)==="x",$e=0,lt=Le?e._fullLayout.width:e._fullLayout.height;if(Te.indexOf("domain")!==-1){var it=$r.simpleMap(t.range,t.r2l);$e=t.l2p(it[0])+t._offset,lt=t.l2p(it[1])+t._offset}var gt=Math.min($e,lt),We=Math.max($e,lt),Et=t.side,nt=1/0,wt=-1/0;_.each(function(ze){var pe=Xl.select(this),rt=pe.select(".text-math-group");if(rt.empty()){var mt=sl.bBox(pe.node()),Xe=0;Le?(mt.right>We||mt.leftWe||mt.top+(t.tickangle?0:ze.fontSize/4)t["_visibleLabelMin_"+it._id]?pe.style("display","none"):We.K==="tick"&&!gt&&pe.node().style.display!=="none"&&pe.style("display",null)})})})})},S(_,m+1?m:v);function C(){return T.length&&Promise.all(T)}var D=null;function E(){if(S(_,v),f.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){D=t.autotickangles[0];var Te=0,Ce=[],Le,$e=1;_.each(function(Ut){Te=Math.max(Te,Ut.fontSize);var Ot=t.l2p(Ut.x),Be=N5(this),ft=sl.bBox(Be.node());$e=Math.max($e,gd.lineCount(Be)),Ce.push({top:0,bottom:10,height:10,left:Ot-ft.width/2,right:Ot+ft.width/2+2,width:ft.width+2})});var lt=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,it=f.length,gt=Math.abs((f[it-1].x-f[0].x)*t._m)/(it-1),We=lt?gt/2:gt,Et=lt?t.ticklen:Te*1.25*$e,nt=Math.sqrt(Math.pow(We,2)+Math.pow(Et,2)),wt=We/nt,xt=t.autotickangles.map(function(Ut){return Ut*Math.PI/180}),vt=xt.find(function(Ut){return Math.abs(Math.cos(Ut))<=wt});vt===void 0&&(vt=xt.reduce(function(Ut,Ot){return Math.abs(Math.cos(Ut))Se*Me&&(oe=Me,J[W]=te[W]=fe[W])}var Ae=Math.abs(oe-ne);Ae-O>0?(Ae-=O,O*=1+O/Ae):O=0,t._id.charAt(0)!=="y"&&(O=-O),J[V]=q.p2r(q.r2p(te[V])+H*O),q.autorange==="min"||q.autorange==="max reversed"?(J[0]=null,q._rangeInitial0=void 0,q._rangeInitial1=void 0):(q.autorange==="max"||q.autorange==="min reversed")&&(J[1]=null,q._rangeInitial0=void 0,q._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[q._name+".range"]=J}var we=$r.syncOrAsync(I);return we&&we.then&&e._promises.push(we),we};function Bte(e,t,r){var i=t._id+"divider",a=r.vals,s=r.layer.selectAll("path."+i).data(a,_2);s.exit().remove(),s.enter().insert("path",":first-child").classed(i,1).classed("crisp",1).call(eg.stroke,t.dividercolor).style("stroke-width",sl.crispRound(e,t.dividerwidth,1)+"px"),s.attr("transform",r.transFn).attr("d",r.path)}Kt.getPxPosition=function(e,t){var r=e._fullLayout._size,i=t._id.charAt(0),a=t.side,s;if(t.anchor!=="free"?s=t._anchorAxis:i==="x"?s={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:i==="y"&&(s={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),a==="top"||a==="left")return s._offset;if(a==="bottom"||a==="right")return s._offset+s._length};function ML(e){var t=e.title.font.size,r=(e.title.text.match(gd.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(xd+r*rg):r?t*(r+1)*rg:t}function Ote(e,t){var r=e._fullLayout,i=t._id,a=i.charAt(0),s=t.title.font.size,l,f=(t.title.text.match(gd.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?l=t._depth+t.title.standoff+s*xd:(t.side==="top"||t.side==="left")&&(l=t._depth+t.title.standoff+s*(Qy+f*rg));else{var h=ig(t);if(t.type==="multicategory")l=t._depth;else{var v=1.5*s;h&&(v=.5*s,t.ticks==="outside"&&(v+=t.ticklen)),l=10+v+(t.linewidth?t.linewidth-1:0)}h||(a==="x"?l+=t.side==="top"?s*(t.showticklabels?1:0):s*(t.showticklabels?1.5:.5):l+=t.side==="right"?s*(t.showticklabels?1:.5):s*(t.showticklabels?.5:0))}var m=Kt.getPxPosition(e,t),_,T,S;a==="x"?(T=t._offset+t._length/2,S=t.side==="top"?m-l:m+l):(S=t._offset+t._length/2,T=t.side==="right"?m+l:m-l,_={rotate:"-90",offset:0});var C;if(t.type!=="multicategory"){var D=t._selections[t._id+"tick"];if(C={selection:D,side:t.side},D&&D.node()&&D.node().parentNode){var E=sl.getTranslate(D.node().parentNode);C.offsetLeft=E.x,C.offsetTop=E.y}t.title.hasOwnProperty("standoff")&&(C.pad=0)}return t._titleStandoff=l,ote.draw(e,i+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[a],avoid:C,transform:_,attributes:{x:T,y:S,"text-anchor":"middle"}})}Kt.shouldShowZeroLine=function(e,t,r){var i=$r.simpleMap(t.range,t.r2l);return i[0]*i[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===y2)&&(zL(t,0)||!Ute(e,t,r,i)||Vte(e,t))};Kt.clipEnds=function(e,t){return t.filter(function(r){return zL(e,r.x)})};function zL(e,t){var r=e.l2p(t);return r>1&&r1)for(a=1;a=a.min&&e=hte:/%L/.test(t)?e>=cte:/%[SX]/.test(t)?e>=d2:/%M/.test(t)?e>=tg:/%[HI]/.test(t)?e>=Pf:/%p/.test(t)?e>=Bh:/%[Aadejuwx]/.test(t)?e>=as:/%[UVW]/.test(t)?e>=ll:/%[Bbm]/.test(t)?e>=v2:/%[q]/.test(t)?e>=h2:/%[Yy]/.test(t)?e>=c2:!0}});var NL=me((a1e,qL)=>{"use strict";qL.exports=function(t,r,i){var a,s;if(i){var l=r==="reversed"||r==="min reversed"||r==="max reversed";a=i[l?1:0],s=i[l?0:1]}var f=t("autorangeoptions.minallowed",s===null?a:void 0),h=t("autorangeoptions.maxallowed",a===null?s:void 0);f===void 0&&t("autorangeoptions.clipmin"),h===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var G5=me((i1e,BL)=>{"use strict";var Xte=NL();BL.exports=function(t,r,i,a){var s=r._template||{},l=r.type||s.type||"-";i("minallowed"),i("maxallowed");var f=i("range");if(!f){var h;!a.noInsiderange&&l!=="log"&&(h=i("insiderange"),h&&(h[0]===null||h[1]===null)&&(r.insiderange=!1,h=void 0),h&&(f=i("range",h)))}var v=r.getAutorangeDflt(f,a),m=i("autorange",v),_;f&&(f[0]===null&&f[1]===null||(f[0]===null||f[1]===null)&&(m==="reversed"||m===!0)||f[0]!==null&&(m==="min"||m==="max reversed")||f[1]!==null&&(m==="max"||m==="min reversed"))&&(f=void 0,delete r.range,r.autorange=!0,_=!0),_||(v=r.getAutorangeDflt(f,a),m=i("autorange",v)),m&&(Xte(i,m,f),(l==="linear"||l==="-")&&i("rangemode")),r.cleanRange()}});var UL=me((n1e,OL)=>{var jte={left:0,top:0};OL.exports=Jte;function Jte(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var i=e.clientX||0,a=e.clientY||0,s=Kte(t);return r[0]=i-s.left,r[1]=a-s.top,r}function Kte(e){return e===window||e===document||e===document.body?jte:e.getBoundingClientRect()}});var Z5=me((o1e,VL)=>{"use strict";var Qte=xw();function $te(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}VL.exports=Qte&&$te()});var GL=me((s1e,HL)=>{"use strict";HL.exports=function(t,r,i,a,s){var l=(t-i)/(a-i),f=l+r/(a-i),h=(l+f)/2;return s==="left"||s==="bottom"?l:s==="center"||s==="middle"?h:s==="right"||s==="top"?f:l<2/3-h?l:f>4/3-h?f:h}});var WL=me((l1e,YL)=>{"use strict";var ZL=Bt(),ere=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];YL.exports=function(t,r,i,a){return i==="left"?t=0:i==="center"?t=1:i==="right"?t=2:t=ZL.constrain(Math.floor(t*3),0,2),a==="bottom"?r=0:a==="middle"?r=1:a==="top"?r=2:r=ZL.constrain(Math.floor(r*3),0,2),ere[r][t]}});var jL=me((u1e,XL)=>{"use strict";var tre=Oy(),rre=b_(),are=Dy().getGraphDiv,ire=ky(),Y5=XL.exports={};Y5.wrapped=function(e,t,r){e=are(e),e._fullLayout&&rre.clear(e._fullLayout._uid+ire.HOVERID),Y5.raw(e,t,r)};Y5.raw=function(t,r){var i=t._fullLayout,a=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&tre.triggerHandler(t,"plotly_beforehover",r)===!1)&&(i._hoverlayer.selectAll("g").remove(),i._hoverlayer.selectAll("line").remove(),i._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&a&&t.emit("plotly_unhover",{event:r,points:a}))}});var jl=me((f1e,$L)=>{"use strict";var nre=UL(),W5=ww(),ore=Z5(),sre=Bt().removeElement,lre=Ao(),bd=$L.exports={};bd.align=GL();bd.getCursor=WL();var KL=jL();bd.unhover=KL.wrapped;bd.unhoverRaw=KL.raw;bd.init=function(t){var r=t.gd,i=1,a=r._context.doubleClickDelay,s=t.element,l,f,h,v,m,_,T,S;r._mouseDownTime||(r._mouseDownTime=0),s.style.pointerEvents="all",s.onmousedown=E,ore?(s._ontouchstart&&s.removeEventListener("touchstart",s._ontouchstart),s._ontouchstart=E,s.addEventListener("touchstart",E,{passive:!1})):s.ontouchstart=E;function C(q,z,O){return Math.abs(q)a&&(i=Math.max(i-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var z;_.target===T?z=_:(z={target:T,srcElement:T,toElement:T},Object.keys(_).concat(Object.keys(_.__proto__)).forEach(O=>{var H=_[O];!z[O]&&typeof H!="function"&&(z[O]=H)})),t.clickFn&&t.clickFn(i,z),S||T.dispatchEvent(new MouseEvent("click",q))}r._dragging=!1,r._dragged=!1}};function QL(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}bd.coverSlip=QL;function JL(e){return nre(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Oh=me((c1e,eD)=>{"use strict";eD.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(i){i.indexOf("cursor-")===0&&t.classed(i,!1)}),r&&t.classed("cursor-"+r,!0)}});var aD=me((h1e,rD)=>{"use strict";var X5=Oh(),ng="data-savedcursor",tD="!!";rD.exports=function(t,r){var i=t.attr(ng);if(r){if(!i){for(var a=(t.attr("class")||"").split(" "),s=0;s{"use strict";var j5=qo(),ure=Af();iD.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:ure.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:j5({editType:"legend"}),grouptitlefont:j5({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:j5({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var w2=me(b2=>{"use strict";b2.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};b2.isVertical=function(t){return t.orientation!=="h"};b2.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var $5=me((p1e,nD)=>{"use strict";var K5=la(),ul=Bt(),fre=Ri(),cre=ms(),hre=J5(),vre=d0(),Q5=w2();function dre(e,t,r,i){var a=t[e]||{},s=fre.newContainer(r,e);function l(Ae,we){return ul.coerce(a,s,hre,Ae,we)}var f=ul.coerceFont(l,"font",r.font);l("bgcolor",r.paper_bgcolor),l("bordercolor");var h=l("visible");if(h){for(var v,m=function(Ae,we){var Te=v._input,Ce=v;return ul.coerce(Te,Ce,cre,Ae,we)},_=r.font||{},T=ul.coerceFont(l,"grouptitlefont",_,{overrideDflt:{size:Math.round(_.size*1.1)}}),S=0,C=!1,D="normal",E=(r.shapes||[]).filter(function(Ae){return Ae.showlegend}),I=i.concat(E).filter(function(Ae){return e===(Ae.legend||"legend")}),B=0;B(e==="legend"?1:0));if(z===!1&&(r[e]=void 0),!(z===!1&&!a.uirevision)&&(l("uirevision",r.uirevision),z!==!1)){l("borderwidth");var O=l("orientation"),H=l("yref"),V=l("xref"),W=O==="h",J=H==="paper",te=V==="paper",ne,oe,fe,ve="left";W?(ne=0,K5.getComponentMethod("rangeslider","isVisible")(t.xaxis)?J?(oe=1.1,fe="bottom"):(oe=1,fe="top"):J?(oe=-.1,fe="top"):(oe=0,fe="bottom")):(oe=1,fe="auto",te?ne=1.02:(ne=1,ve="right")),ul.coerce(a,s,{x:{valType:"number",editType:"legend",min:te?-2:0,max:te?3:1,dflt:ne}},"x"),ul.coerce(a,s,{y:{valType:"number",editType:"legend",min:J?-2:0,max:J?3:1,dflt:oe}},"y"),l("traceorder",D),Q5.isGrouped(r[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",ve),l("yanchor",fe),l("maxheight"),l("valign"),ul.noneOrAll(a,s,["x","y"]);var Me=l("title.text");if(Me){l("title.side",W?"left":"top");var Se=ul.extendFlat({},f,{size:ul.bigFont(f.size)});ul.coerceFont(l,"title.font",Se)}}}}nD.exports=function(t,r,i){var a,s=i.slice(),l=r.shapes;if(l)for(a=0;a{"use strict";var N0=la(),t4=Bt(),pre=t4.pushUnique,e4=!0;oD.exports=function(t,r,i){var a=r._fullLayout;if(r._dragged||r._editing)return;var s=a.legend.itemclick,l=a.legend.itemdoubleclick,f=a.legend.groupclick;i===1&&s==="toggle"&&l==="toggleothers"&&e4&&r.data&&r._context.showTips&&t4.notifier(t4._(r,"Double-click on legend to isolate one trace"),"long"),e4=!1;var h;if(i===1?h=s:i===2&&(h=l),!h)return;var v=f==="togglegroup",m=a.hiddenlabels?a.hiddenlabels.slice():[],_=t.data()[0][0];if(_.groupTitle&&_.noClick)return;var T=r._fullData,S=(a.shapes||[]).filter(function(It){return It.showlegend}),C=T.concat(S),D=_.trace;D._isShape&&(D=D._fullInput);var E=D.legendgroup,I,B,q,z,O,H,V={},W=[],J=[],te=[];function ne(It,Gt){var Ct=W.indexOf(It),Mt=V.visible;return Mt||(Mt=V.visible=[]),W.indexOf(It)===-1&&(W.push(It),Ct=W.length-1),Mt[Ct]=Gt,Ct}var oe=(a.shapes||[]).map(function(It){return It._input}),fe=!1;function ve(It,Gt){oe[It].visible=Gt,fe=!0}function Me(It,Gt){if(!(_.groupTitle&&!v)){var Ct=It._fullInput||It,Mt=Ct._isShape,Ut=Ct.index;Ut===void 0&&(Ut=Ct._index);var Ot=Ct.visible===!1?!1:Gt;Mt?ve(Ut,Ot):ne(Ut,Ot)}}var Se=D.legend,Ae=D._fullInput,we=Ae&&Ae._isShape;if(!we&&N0.traceIs(D,"pie-like")){var Te=_.label,Ce=m.indexOf(Te);if(h==="toggle")Ce===-1?m.push(Te):m.splice(Ce,1);else if(h==="toggleothers"){var Le=Ce!==-1,$e=[];for(I=0;I{"use strict";lD.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var cD=me((g1e,fD)=>{"use strict";var uD=la(),a4=w2();fD.exports=function(t,r,i){var a=r._inHover,s=a4.isGrouped(r),l=a4.isReversed(r),f={},h=[],v=!1,m={},_=0,T=0,S,C;function D(Ae,we,Te){if(r.visible!==!1&&!(i&&Ae!==r._id))if(we===""||!a4.isGrouped(r)){var Ce="~~i"+_;h.push(Ce),f[Ce]=[Te],_++}else h.indexOf(we)===-1?(h.push(we),v=!0,f[we]=[Te]):f[we].push(Te)}for(S=0;Ste&&(J=te)}V[S][0]._groupMinRank=J,V[S][0]._preGroupSort=S}var ne=function(Ae,we){return Ae[0]._groupMinRank-we[0]._groupMinRank||Ae[0]._preGroupSort-we[0]._preGroupSort},oe=function(Ae,we){return Ae.trace.legendrank-we.trace.legendrank||Ae._preSort-we._preSort};for(V.forEach(function(Ae,we){Ae[0]._preGroupSort=we}),V.sort(ne),S=0;S{"use strict";var T2=Bt();function hD(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}wd.formatPiePercent=function(t,r){var i=hD((t*100).toPrecision(3));return T2.numSeparate(i,r)+"%"};wd.formatPieValue=function(t,r){var i=hD(t.toPrecision(10));return T2.numSeparate(i,r)};wd.getFirstFilled=function(t,r){if(T2.isArrayOrTypedArray(t))for(var i=0;i{"use strict";var mre=bi(),yre=Oa();vD.exports=function(t,r,i,a){var s=i.marker.pattern;s&&s.shape?mre.pointStyle(t,i,a,r):yre.fill(t,r.color)}});var gD=me((b1e,yD)=>{"use strict";var pD=Oa(),mD=i4().castOption,gre=dD();yD.exports=function(t,r,i,a){var s=i.marker.line,l=mD(s.color,r.pts)||pD.defaultLine,f=mD(s.width,r.pts)||0;t.call(gre,r,i,a).style("stroke-width",f).call(pD.stroke,l)}});var l4=me((w1e,AD)=>{"use strict";var is=Ja(),n4=la(),Bo=Bt(),_D=Bo.strTranslate,fl=bi(),Jl=Oa(),o4=kf().extractOpts,A2=rs(),_re=gD(),xre=i4().castOption,bre=r4(),xD=12,bD=5,Td=2,wre=10,B0=5;AD.exports=function(t,r,i){var a=r._fullLayout;i||(i=a.legend);var s=i.itemsizing==="constant",l=i.itemwidth,f=(l+bre.itemGap*2)/2,h=_D(f,0),v=function(V,W,J,te){var ne;if(V+1)ne=V;else if(W&&W.width>0)ne=W.width;else return 0;return s?te:Math.min(ne,J)};t.each(function(V){var W=is.select(this),J=Bo.ensureSingle(W,"g","layers");J.style("opacity",V[0].trace.opacity);var te=i.indentation,ne=i.valign,oe=V[0].lineHeight,fe=V[0].height;if(ne==="middle"&&te===0||!oe||!fe)J.attr("transform",null);else{var ve={top:1,bottom:-1}[ne],Me=ve*(.5*(oe-fe+3))||0,Se=i.indentation;J.attr("transform",_D(Se,Me))}var Ae=J.selectAll("g.legendfill").data([V]);Ae.enter().append("g").classed("legendfill",!0);var we=J.selectAll("g.legendlines").data([V]);we.enter().append("g").classed("legendlines",!0);var Te=J.selectAll("g.legendsymbols").data([V]);Te.enter().append("g").classed("legendsymbols",!0),Te.selectAll("g.legendpoints").data([V]).enter().append("g").classed("legendpoints",!0)}).each(H).each(T).each(C).each(S).each(E).each(z).each(q).each(m).each(_).each(I).each(B);function m(V){var W=wD(V),J=W.showFill,te=W.showLine,ne=W.showGradientLine,oe=W.showGradientFill,fe=W.anyFill,ve=W.anyLine,Me=V[0],Se=Me.trace,Ae,we,Te=o4(Se),Ce=Te.colorscale,Le=Te.reversescale,$e=function(wt){if(wt.size())if(J)fl.fillGroupStyle(wt,r,!0);else{var xt="legendfill-"+Se.uid;fl.gradient(wt,r,xt,s4(Le),Ce,"fill")}},lt=function(wt){if(wt.size()){var xt="legendline-"+Se.uid;fl.lineGroupStyle(wt),fl.gradient(wt,r,xt,s4(Le),Ce,"stroke")}},it=A2.hasMarkers(Se)||!fe?"M5,0":ve?"M5,-2":"M5,-3",gt=is.select(this),We=gt.select(".legendfill").selectAll("path").data(J||oe?[V]:[]);if(We.enter().append("path").classed("js-fill",!0),We.exit().remove(),We.attr("d",it+"h"+l+"v6h-"+l+"z").call($e),te||ne){var Et=v(void 0,Se.line,wre,bD);we=Bo.minExtend(Se,{line:{width:Et}}),Ae=[Bo.minExtend(Me,{trace:we})]}var nt=gt.select(".legendlines").selectAll("path").data(te||ne?[Ae]:[]);nt.enter().append("path").classed("js-line",!0),nt.exit().remove(),nt.attr("d",it+(ne?"l"+l+",0.0001":"h"+l)).call(te?fl.lineGroupStyle:lt)}function _(V){var W=wD(V),J=W.anyFill,te=W.anyLine,ne=W.showLine,oe=W.showMarker,fe=V[0],ve=fe.trace,Me=!oe&&!te&&!J&&A2.hasText(ve),Se,Ae;function we(We,Et,nt,wt){var xt=Bo.nestedProperty(ve,We).get(),vt=Bo.isArrayOrTypedArray(xt)&&Et?Et(xt):xt;if(s&&vt&&wt!==void 0&&(vt=wt),nt){if(vtnt[1])return nt[1]}return vt}function Te(We){return fe._distinct&&fe.index&&We[fe.index]?We[fe.index]:We[0]}if(oe||Me||ne){var Ce={},Le={};if(oe){Ce.mc=we("marker.color",Te),Ce.mx=we("marker.symbol",Te),Ce.mo=we("marker.opacity",Bo.mean,[.2,1]),Ce.mlc=we("marker.line.color",Te),Ce.mlw=we("marker.line.width",Bo.mean,[0,5],Td),Le.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var $e=we("marker.size",Bo.mean,[2,16],xD);Ce.ms=$e,Le.marker.size=$e}ne&&(Le.line={width:we("line.width",Te,[0,10],bD)}),Me&&(Ce.tx="Aa",Ce.tp=we("textposition",Te),Ce.ts=10,Ce.tc=we("textfont.color",Te),Ce.tf=we("textfont.family",Te),Ce.tw=we("textfont.weight",Te),Ce.ty=we("textfont.style",Te),Ce.tv=we("textfont.variant",Te),Ce.tC=we("textfont.textcase",Te),Ce.tE=we("textfont.lineposition",Te),Ce.tS=we("textfont.shadow",Te)),Se=[Bo.minExtend(fe,Ce)],Ae=Bo.minExtend(ve,Le),Ae.selectedpoints=null,Ae.texttemplate=null}var lt=is.select(this).select("g.legendpoints"),it=lt.selectAll("path.scatterpts").data(oe?Se:[]);it.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",h),it.exit().remove(),it.call(fl.pointStyle,Ae,r),oe&&(Se[0].mrc=3);var gt=lt.selectAll("g.pointtext").data(Me?Se:[]);gt.enter().append("g").classed("pointtext",!0).append("text").attr("transform",h),gt.exit().remove(),gt.selectAll("text").call(fl.textPointStyle,Ae,r)}function T(V){var W=V[0].trace,J=W.type==="waterfall";if(V[0]._distinct&&J){var te=V[0].trace[V[0].dir].marker;return V[0].mc=te.color,V[0].mlw=te.line.width,V[0].mlc=te.line.color,D(V,this,"waterfall")}var ne=[];W.visible&&J&&(ne=V[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var oe=is.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(ne);oe.enter().append("path").classed("legendwaterfall",!0).attr("transform",h).style("stroke-miterlimit",1),oe.exit().remove(),oe.each(function(fe){var ve=is.select(this),Me=W[fe[0]].marker,Se=v(void 0,Me.line,B0,Td);ve.attr("d",fe[1]).style("stroke-width",Se+"px").call(Jl.fill,Me.color),Se&&ve.call(Jl.stroke,Me.line.color)})}function S(V){D(V,this)}function C(V){D(V,this,"funnel")}function D(V,W,J){var te=V[0].trace,ne=te.marker||{},oe=ne.line||{},fe=ne.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",ve=J?te.visible&&te.type===J:n4.traceIs(te,"bar"),Me=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(ve?[V]:[]);Me.enter().append("path").classed("legend"+J,!0).attr("d",fe).attr("transform",h),Me.exit().remove(),Me.each(function(Se){var Ae=is.select(this),we=Se[0],Te=v(we.mlw,ne.line,B0,Td);Ae.style("stroke-width",Te+"px");var Ce=we.mcc;if(!i._inHover&&"mc"in we){var Le=o4(ne),$e=Le.mid;$e===void 0&&($e=(Le.max+Le.min)/2),Ce=fl.tryColorscale(ne,"")($e)}var lt=Ce||we.mc||ne.color,it=ne.pattern,gt=fl.getPatternAttr,We=it&&(gt(it.shape,0,"")||gt(it.path,0,""));if(We){var Et=gt(it.bgcolor,0,null),nt=gt(it.fgcolor,0,null),wt=it.fgopacity,xt=TD(it.size,8,10),vt=TD(it.solidity,.5,1),de="legend-"+te.uid;Ae.call(fl.pattern,"legend",r,de,We,xt,vt,Ce,it.fillmode,Et,nt,wt)}else Ae.call(Jl.fill,lt);Te&&Jl.stroke(Ae,we.mlc||oe.color)})}function E(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendbox").data(W.visible&&n4.traceIs(W,"box-violin")?[V]:[]);J.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",h),J.exit().remove(),J.each(function(){var te=is.select(this);if((W.boxpoints==="all"||W.points==="all")&&Jl.opacity(W.fillcolor)===0&&Jl.opacity((W.line||{}).color)===0){var ne=Bo.minExtend(W,{marker:{size:s?xD:Bo.constrain(W.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});J.call(fl.pointStyle,ne,r)}else{var oe=v(void 0,W.line,B0,Td);te.style("stroke-width",oe+"px").call(Jl.fill,W.fillcolor),oe&&Jl.stroke(te,W.line.color)}})}function I(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(W.visible&&W.type==="candlestick"?[V,V]:[]);J.enter().append("path").classed("legendcandle",!0).attr("d",function(te,ne){return ne?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",h).style("stroke-miterlimit",1),J.exit().remove(),J.each(function(te,ne){var oe=is.select(this),fe=W[ne?"increasing":"decreasing"],ve=v(void 0,fe.line,B0,Td);oe.style("stroke-width",ve+"px").call(Jl.fill,fe.fillcolor),ve&&Jl.stroke(oe,fe.line.color)})}function B(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(W.visible&&W.type==="ohlc"?[V,V]:[]);J.enter().append("path").classed("legendohlc",!0).attr("d",function(te,ne){return ne?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",h).style("stroke-miterlimit",1),J.exit().remove(),J.each(function(te,ne){var oe=is.select(this),fe=W[ne?"increasing":"decreasing"],ve=v(void 0,fe.line,B0,Td);oe.style("fill","none").call(fl.dashLine,fe.line.dash,ve),ve&&Jl.stroke(oe,fe.line.color)})}function q(V){O(V,this,"pie")}function z(V){O(V,this,"funnelarea")}function O(V,W,J){var te=V[0],ne=te.trace,oe=J?ne.visible&&ne.type===J:n4.traceIs(ne,J),fe=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(oe?[V]:[]);if(fe.enter().append("path").classed("legend"+J,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",h),fe.exit().remove(),fe.size()){var ve=ne.marker||{},Me=v(xre(ve.line.width,te.pts),ve.line,B0,Td),Se="pieLike",Ae=Bo.minExtend(ne,{marker:{line:{width:Me}}},Se),we=Bo.minExtend(te,{trace:Ae},Se);_re(fe,we,Ae,r)}}function H(V){var W=V[0].trace,J,te=[];if(W.visible)switch(W.type){case"histogram2d":case"heatmap":te=[["M-15,-2V4H15V-2Z"]],J=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":te=[["M-6,-6V6H6V-6Z"]],J=!0;break;case"densitymapbox":case"densitymap":te=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],J="radial";break;case"cone":te=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],J=!1;break;case"streamtube":te=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],J=!1;break;case"surface":te=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],J=!0;break;case"mesh3d":te=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],J=!1;break;case"volume":te=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],J=!0;break;case"isosurface":te=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],J=!1;break}var ne=is.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(te);ne.enter().append("path").classed("legend3dandfriends",!0).attr("transform",h).style("stroke-miterlimit",1),ne.exit().remove(),ne.each(function(oe,fe){var ve=is.select(this),Me=o4(W),Se=Me.colorscale,Ae=Me.reversescale,we=function($e){if($e.size()){var lt="legendfill-"+W.uid;fl.gradient($e,r,lt,s4(Ae,J==="radial"),Se,"fill")}},Te;if(Se){if(!J){var Le=Se.length;Te=fe===0?Se[Ae?Le-1:0][1]:fe===1?Se[Ae?0:Le-1][1]:Se[Math.floor((Le-1)/2)][1]}}else{var Ce=W.vertexcolor||W.facecolor||W.color;Te=Bo.isArrayOrTypedArray(Ce)?Ce[fe]||Ce[0]:Ce}ve.attr("d",oe[0]),Te?ve.call(Jl.fill,Te):ve.call(we)})}};function s4(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function wD(e){var t=e[0].trace,r=t.contours,i=A2.hasLines(t),a=A2.hasMarkers(t),s=t.visible&&t.fill&&t.fill!=="none",l=!1,f=!1;if(r){var h=r.coloring;h==="lines"?l=!0:i=h==="none"||h==="heatmap"||r.showlines,r.type==="constraint"?s=r._operation!=="=":(h==="fill"||h==="heatmap")&&(f=!0)}return{showMarker:a,showLine:i,showFill:s,showGradientLine:l,showGradientFill:f,anyLine:i||l,anyFill:s||f}}function TD(e,t,r){return e&&Bo.isArrayOrTypedArray(e)?t:e>r?r:e}});var h4=me((T1e,ID)=>{"use strict";var Bs=Ja(),Bn=Bt(),f4=eo(),V0=la(),MD=Oy(),u4=jl(),On=bi(),S2=Oa(),Ad=co(),SD=sD(),jn=r4(),c4=ts(),PD=c4.LINE_SPACING,U0=c4.FROM_TL,kD=c4.FROM_BR,CD=cD(),Tre=l4(),ED=w2(),O0=1,Are=/^legend[0-9]*$/;ID.exports=function(t,r){if(r)LD(t,r);else{var i=t._fullLayout,a=i._legends,s=i._infolayer.selectAll('[class^="legend"]');s.each(function(){var v=Bs.select(this),m=v.attr("class"),_=m.split(" ")[0];_.match(Are)&&a.indexOf(_)===-1&&v.remove()});for(var l=0;l1)}var C=i.hiddenlabels||[];if(!f&&(!i.showlegend||!h.length))return l.selectAll("."+a).remove(),i._topdefs.select("#"+s).remove(),f4.autoMargin(e,a);var D=Bn.ensureSingle(l,"g",a,function(W){f||W.attr("pointer-events","all")}),E=Bn.ensureSingleById(i._topdefs,"clipPath",s,function(W){W.append("rect")}),I=Bn.ensureSingle(D,"rect","bg",function(W){W.attr("shape-rendering","crispEdges")});I.call(S2.stroke,r.bordercolor).call(S2.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var B=Bn.ensureSingle(D,"g","scrollbox"),q=r.title;r._titleWidth=0,r._titleHeight=0;var z;q.text?(z=Bn.ensureSingle(B,"text",a+"titletext"),z.attr("text-anchor","start").call(On.font,q.font).text(q.text),k2(z,B,e,r,O0)):B.selectAll("."+a+"titletext").remove();var O=Bn.ensureSingle(D,"rect","scrollbar",function(W){W.attr(jn.scrollBarEnterAttrs).call(S2.fill,jn.scrollBarColor)}),H=B.selectAll("g.groups").data(h);H.enter().append("g").attr("class","groups"),H.exit().remove();var V=H.selectAll("g.traces").data(Bn.identity);V.enter().append("g").attr("class","traces"),V.exit().remove(),V.style("opacity",function(W){var J=W[0].trace;return V0.traceIs(J,"pie-like")?C.indexOf(W[0].label)!==-1?.5:1:J.visible==="legendonly"?.5:1}).each(function(){Bs.select(this).call(Sre,e,r)}).call(Tre,e,r).each(function(){f||Bs.select(this).call(kre,e,a)}),Bn.syncOrAsync([f4.previousPromises,function(){return Lre(e,H,V,r)},function(){var W=i._size,J=r.borderwidth,te=r.xref==="paper",ne=r.yref==="paper";if(q.text&&Mre(z,r,J),!f){var oe,fe;te?oe=W.l+W.w*r.x-U0[C2(r)]*r._width:oe=i.width*r.x-U0[C2(r)]*r._width,ne?fe=W.t+W.h*(1-r.y)-U0[E2(r)]*r._effHeight:fe=i.height*(1-r.y)-U0[E2(r)]*r._effHeight;var ve=Dre(e,a,oe,fe);if(ve)return;if(i.margin.autoexpand){var Me=oe,Se=fe;oe=te?Bn.constrain(oe,0,i.width-r._width):Me,fe=ne?Bn.constrain(fe,0,i.height-r._effHeight):Se,oe!==Me&&Bn.log("Constrain "+a+".x to make legend fit inside graph"),fe!==Se&&Bn.log("Constrain "+a+".y to make legend fit inside graph")}On.setTranslate(D,oe,fe)}if(O.on(".drag",null),D.on("wheel",null),f||r._height<=r._maxHeight||e._context.staticPlot){var Ae=r._effHeight;f&&(Ae=r._height),I.attr({width:r._width-J,height:Ae-J,x:J/2,y:J/2}),On.setTranslate(B,0,0),E.select("rect").attr({width:r._width-2*J,height:Ae-2*J,x:J,y:J}),On.setClipUrl(B,s,e),On.setRect(O,0,0,0,0),delete r._scrollY}else{var we=Math.max(jn.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),Te=r._effHeight-we-2*jn.scrollBarMargin,Ce=r._height-r._effHeight,Le=Te/Ce,$e=Math.min(r._scrollY||0,Ce);I.attr({width:r._width-2*J+jn.scrollBarWidth+jn.scrollBarMargin,height:r._effHeight-J,x:J/2,y:J/2}),E.select("rect").attr({width:r._width-2*J+jn.scrollBarWidth+jn.scrollBarMargin,height:r._effHeight-2*J,x:J,y:J+$e}),On.setClipUrl(B,s,e),xt($e,we,Le),D.on("wheel",function(){$e=Bn.constrain(r._scrollY+Bs.event.deltaY/Te*Ce,0,Ce),xt($e,we,Le),$e!==0&&$e!==Ce&&Bs.event.preventDefault()});var lt,it,gt,We=function(rt,mt,Xe){var Ft=(Xe-mt)/Le+rt;return Bn.constrain(Ft,0,Ce)},Et=function(rt,mt,Xe){var Ft=(mt-Xe)/Le+rt;return Bn.constrain(Ft,0,Ce)},nt=Bs.behavior.drag().on("dragstart",function(){var rt=Bs.event.sourceEvent;rt.type==="touchstart"?lt=rt.changedTouches[0].clientY:lt=rt.clientY,gt=$e}).on("drag",function(){var rt=Bs.event.sourceEvent;rt.buttons===2||rt.ctrlKey||(rt.type==="touchmove"?it=rt.changedTouches[0].clientY:it=rt.clientY,$e=We(gt,lt,it),xt($e,we,Le))});O.call(nt);var wt=Bs.behavior.drag().on("dragstart",function(){var rt=Bs.event.sourceEvent;rt.type==="touchstart"&&(lt=rt.changedTouches[0].clientY,gt=$e)}).on("drag",function(){var rt=Bs.event.sourceEvent;rt.type==="touchmove"&&(it=rt.changedTouches[0].clientY,$e=Et(gt,lt,it),xt($e,we,Le))});B.call(wt)}function xt(rt,mt,Xe){r._scrollY=e._fullLayout[a]._scrollY=rt,On.setTranslate(B,0,-rt),On.setRect(O,r._width,jn.scrollBarMargin+rt*Xe,jn.scrollBarWidth,mt),E.select("rect").attr("y",J+rt)}if(e._context.edits.legendPosition){var vt,de,ze,pe;D.classed("cursor-move",!0),u4.init({element:D.node(),gd:e,prepFn:function(rt){if(rt.target!==O.node()){var mt=On.getTranslate(D);ze=mt.x,pe=mt.y}},moveFn:function(rt,mt){if(ze!==void 0&&pe!==void 0){var Xe=ze+rt,Ft=pe+mt;On.setTranslate(D,Xe,Ft),vt=u4.align(Xe,r._width,W.l,W.l+W.w,r.xanchor),de=u4.align(Ft+r._height,-r._height,W.t+W.h,W.t,r.yanchor)}},doneFn:function(){if(vt!==void 0&&de!==void 0){var rt={};rt[a+".x"]=vt,rt[a+".y"]=de,V0.call("_guiRelayout",e,rt)}},clickFn:function(rt,mt){var Xe=l.selectAll("g.traces").filter(function(){var Ft=this.getBoundingClientRect();return mt.clientX>=Ft.left&&mt.clientX<=Ft.right&&mt.clientY>=Ft.top&&mt.clientY<=Ft.bottom});Xe.size()>0&&zD(e,D,Xe,rt,mt)}})}}],e)}}function M2(e,t,r){var i=e[0],a=i.width,s=t.entrywidthmode,l=i.trace.legendwidth||t.entrywidth;return s==="fraction"?t._maxWidth*l:r+(l||a)}function zD(e,t,r,i,a){var s=r.data()[0][0].trace,l={event:a,node:r.node(),curveNumber:s.index,expandedIndex:s.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};s._group&&(l.group=s._group),V0.traceIs(s,"pie-like")&&(l.label=r.datum()[0].label);var f=MD.triggerHandler(e,"plotly_legendclick",l);if(i===1){if(f===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&SD(r,e,i)},e._context.doubleClickDelay)}else if(i===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var h=MD.triggerHandler(e,"plotly_legenddoubleclick",l);h!==!1&&f!==!1&&SD(r,e,i)}}function Sre(e,t,r){var i=L2(r),a=e.data()[0][0],s=a.trace,l=V0.traceIs(s,"pie-like"),f=!r._inHover&&t._context.edits.legendText&&!l,h=r._maxNameLength,v,m;a.groupTitle?(v=a.groupTitle.text,m=a.groupTitle.font):(m=r.font,r.entries?v=a.text:(v=l?a.label:s.name,s._meta&&(v=Bn.templateString(v,s._meta))));var _=Bn.ensureSingle(e,"text",i+"text");_.attr("text-anchor","start").call(On.font,m).text(f?DD(v,h):v);var T=r.indentation+r.itemwidth+jn.itemGap*2;Ad.positionText(_,T,0),f?_.call(Ad.makeEditable,{gd:t,text:v}).call(k2,e,t,r).on("edit",function(S){this.text(DD(S,h)).call(k2,e,t,r);var C=a.trace._fullInput||{},D={};return D.name=S,C._isShape?V0.call("_guiRelayout",t,"shapes["+s.index+"].name",D.name):V0.call("_guiRestyle",t,D,s.index)}):k2(_,e,t,r)}function DD(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var i=r-e.length;i>0;i--)e+=" ";return e}function kre(e,t,r){var i=t._context.doubleClickDelay,a,s=1,l=Bn.ensureSingle(e,"rect",r+"toggle",function(f){t._context.staticPlot||f.style("cursor","pointer").attr("pointer-events","all"),f.call(S2.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){a=new Date().getTime(),a-t._legendMouseDownTimei&&(s=Math.max(s-1,1)),zD(t,f,e,s,Bs.event)}}))}function k2(e,t,r,i,a){i._inHover&&e.attr("data-notex",!0),Ad.convertToTspans(e,r,function(){Cre(t,r,i,a)})}function Cre(e,t,r,i){var a=e.data()[0][0];if(!r._inHover&&a&&!a.trace.showlegend){e.remove();return}var s=e.select("g[class*=math-group]"),l=s.node(),f=L2(r);r||(r=t._fullLayout[f]);var h=r.borderwidth,v;i===O0?v=r.title.font:a.groupTitle?v=a.groupTitle.font:v=r.font;var m=v.size*PD,_,T;if(l){var S=On.bBox(l);_=S.height,T=S.width,i===O0?On.setTranslate(s,h,h+_*.75):On.setTranslate(s,0,_*.25)}else{var C="."+f+(i===O0?"title":"")+"text",D=e.select(C),E=Ad.lineCount(D),I=D.node();if(_=m*E,T=I?On.bBox(I).width:0,i===O0)r.title.side==="left"&&(T+=jn.itemGap*2),Ad.positionText(D,h+jn.titlePad,h+m);else{var B=jn.itemGap*2+r.indentation+r.itemwidth;a.groupTitle&&(B=jn.itemGap,T-=r.indentation+r.itemwidth),Ad.positionText(D,B,-m*((E-1)/2-.3))}}i===O0?(r._titleWidth=T,r._titleHeight=_):(a.lineHeight=m,a.height=Math.max(_,16)+3,a.width=T)}function Ere(e){var t=0,r=0,i=e.title.side;return i&&(i.indexOf("left")!==-1&&(t=e._titleWidth),i.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function Lre(e,t,r,i){var a=e._fullLayout,s=L2(i);i||(i=a[s]);var l=a._size,f=ED.isVertical(i),h=ED.isGrouped(i),v=i.entrywidthmode==="fraction",m=i.borderwidth,_=2*m,T=jn.itemGap,S=i.indentation+i.itemwidth+T*2,C=2*(m+T),D=E2(i),E=i.y<0||i.y===0&&D==="top",I=i.y>1||i.y===1&&D==="bottom",B=i.tracegroupgap,q={};let{orientation:z,yref:O}=i,{maxheight:H}=i,V=E||I||z!=="v"||O!=="paper";H||(H=V?.5:1);let W=V?a.height:l.h;i._maxHeight=Math.max(H>1?H:H*W,30);var J=0;i._width=0,i._height=0;var te=Ere(i);if(f)r.each(function(xt){var vt=xt[0].height;On.setTranslate(this,m+te[0],m+te[1]+i._height+vt/2+T),i._height+=vt,i._width=Math.max(i._width,xt[0].width)}),J=S+i._width,i._width+=T+S+_,i._height+=C,h&&(t.each(function(xt,vt){On.setTranslate(this,0,vt*i.tracegroupgap)}),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var ne=C2(i),oe=i.x<0||i.x===0&&ne==="right",fe=i.x>1||i.x===1&&ne==="left",ve=I||E,Me=a.width/2;i._maxWidth=Math.max(oe?ve&&ne==="left"?l.l+l.w:Me:fe?ve&&ne==="right"?l.r+l.w:Me:l.w,2*S);var Se=0,Ae=0;r.each(function(xt){var vt=M2(xt,i,S);Se=Math.max(Se,vt),Ae+=vt}),J=null;var we=0;if(h){var Te=0,Ce=0,Le=0;t.each(function(){var xt=0,vt=0;Bs.select(this).selectAll("g.traces").each(function(ze){var pe=M2(ze,i,S),rt=ze[0].height;On.setTranslate(this,te[0],te[1]+m+T+rt/2+vt),vt+=rt,xt=Math.max(xt,pe),q[ze[0].trace.legendgroup]=xt});var de=xt+T;Ce>0&&de+m+Ce>i._maxWidth?(we=Math.max(we,Ce),Ce=0,Le+=Te+B,Te=vt):Te=Math.max(Te,vt),On.setTranslate(this,Ce,Le),Ce+=de}),i._width=Math.max(we,Ce)+m,i._height=Le+Te+C}else{var $e=r.size(),lt=Ae+_+($e-1)*T=i._maxWidth&&(we=Math.max(we,Et),gt=0,We+=it,i._height+=it,it=0),On.setTranslate(this,te[0]+m+gt,te[1]+m+We+vt/2+T),Et=gt+de+T,gt+=ze,it=Math.max(it,vt)}),lt?(i._width=gt+_,i._height=it+C):(i._width=Math.max(we,Et)+_,i._height+=it+C)}}i._width=Math.ceil(Math.max(i._width+te[0],i._titleWidth+2*(m+jn.titlePad))),i._height=Math.ceil(Math.max(i._height+te[1],i._titleHeight+2*(m+jn.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var nt=e._context.edits,wt=nt.legendText||nt.legendPosition;r.each(function(xt){var vt=Bs.select(this).select("."+s+"toggle"),de=xt[0].height,ze=xt[0].trace.legendgroup,pe=M2(xt,i,S);h&&ze!==""&&(pe=q[ze]);var rt=wt?S:J||pe;!f&&!v&&(rt+=T/2),On.setRect(vt,0,-de/2,rt,de)})}function Dre(e,t,r,i){var a=e._fullLayout,s=a[t],l=C2(s),f=E2(s),h=s.xref==="paper",v=s.yref==="paper";e._fullLayout._reservedMargin[t]={};var m=s.y<.5?"b":"t",_=s.x<.5?"l":"r",T={r:a.width-r,l:r+s._width,b:a.height-i,t:i+s._effHeight};if(h&&v)return f4.autoMargin(e,t,{x:s.x,y:s.y,l:s._width*U0[l],r:s._width*kD[l],b:s._effHeight*kD[f],t:s._effHeight*U0[f]});h?e._fullLayout._reservedMargin[t][m]=T[m]:v||s.orientation==="v"?e._fullLayout._reservedMargin[t][_]=T[_]:e._fullLayout._reservedMargin[t][m]=T[m]}function C2(e){return Bn.isRightAnchor(e)?"right":Bn.isCenterAnchor(e)?"center":"left"}function E2(e){return Bn.isBottomAnchor(e)?"bottom":Bn.isMiddleAnchor(e)?"middle":"top"}function L2(e){return e._id||"legend"}});var m4=me(p4=>{"use strict";var Md=Ja(),Tc=Da(),RD=Tf(),hn=Bt(),Pre=hn.pushUnique,v4=hn.strTranslate,zre=hn.strRotate,Ire=Oy(),Kl=co(),Rre=aD(),zf=bi(),ro=Oa(),D2=jl(),If=Xi(),Fre=Ao().zindexSeparator,G0=la(),qu=bc(),Sd=ky(),qre=$5(),Nre=h4(),HD=Sd.YANGLE,d4=Math.PI*HD/180,Bre=1/Math.sin(d4),Ore=Math.cos(d4),Ure=Math.sin(d4),ji=Sd.HOVERARROWSIZE,Fa=Sd.HOVERTEXTPAD,FD={box:!0,ohlc:!0,violin:!0,candlestick:!0},Vre={scatter:!0,scattergl:!0,splom:!0};function qD(e,t){return e.distance-t.distance}p4.hover=function(t,r,i,a){t=hn.getGraphDiv(t);var s=r.target;hn.throttle(t._fullLayout._uid+Sd.HOVERID,Sd.HOVERMINTIME,function(){Hre(t,r,i,a,s)})};p4.loneHover=function(t,r){var i=!0;Array.isArray(t)||(i=!1,t=[t]);var a=r.gd,s=XD(a),l=jD(a),f=t.map(function(E){var I=E._x0||E.x0||E.x||0,B=E._x1||E.x1||E.x||0,q=E._y0||E.y0||E.y||0,z=E._y1||E.y1||E.y||0,O=E.eventData;if(O){var H=Math.min(I,B),V=Math.max(I,B),W=Math.min(q,z),J=Math.max(q,z),te=E.trace;if(G0.traceIs(te,"gl3d")){var ne=a._fullLayout[te.scene]._scene.container,oe=ne.offsetLeft,fe=ne.offsetTop;H+=oe,V+=oe,W+=fe,J+=fe}O.bbox={x0:H+l,x1:V+l,y0:W+s,y1:J+s},r.inOut_bbox&&r.inOut_bbox.push(O.bbox)}else O=!1;return{color:E.color||ro.defaultLine,x0:E.x0||E.x||0,x1:E.x1||E.x||0,y0:E.y0||E.y||0,y1:E.y1||E.y||0,xLabel:E.xLabel,yLabel:E.yLabel,zLabel:E.zLabel,text:E.text,name:E.name,idealAlign:E.idealAlign,borderColor:E.borderColor,fontFamily:E.fontFamily,fontSize:E.fontSize,fontColor:E.fontColor,fontWeight:E.fontWeight,fontStyle:E.fontStyle,fontVariant:E.fontVariant,nameLength:E.nameLength,textAlign:E.textAlign,trace:E.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:E.hovertemplate||!1,hovertemplateLabels:E.hovertemplateLabels||!1,eventData:O}}),h=!1,v=ZD(f,{gd:a,hovermode:"closest",rotateLabels:h,bgColor:r.bgColor||ro.background,container:Md.select(r.container),outerContainer:r.outerContainer||r.container}),m=v.hoverLabels,_=5,T=0,S=0;m.sort(function(E,I){return E.y0-I.y0}).each(function(E,I){var B=E.y0-E.by/2;B-_V[0]._length||pe<0||pe>W[0]._length)return D2.unhoverRaw(e,t)}if(t.pointerX=ze+V[0]._offset,t.pointerY=pe+W[0]._offset,"xval"in t?Se=qu.flat(s,t.xval):Se=qu.p2c(V,ze),"yval"in t?Ae=qu.flat(s,t.yval):Ae=qu.p2c(W,pe),!Tc(Se[0])||!Tc(Ae[0]))return hn.warn("Fx.hover failed",t,e),D2.unhoverRaw(e,t)}var Xe=1/0;function Ft(Gr,$a){for(Te=0;Tent&&(ve.splice(0,nt),Xe=ve[0].distance),_&&fe!==0&&ve.length===0){Et.distance=fe,Et.index=!1;var ee=Le._module.hoverPoints(Et,gt,We,"closest",{hoverLayer:f._hoverlayer});if(ee&&(ee=ee.filter(function(He){return He.spikeDistance<=fe})),ee&&ee.length){var se,ce=ee.filter(function(He){return He.xa.showspikes&&He.xa.spikesnap!=="hovered data"});if(ce.length){var Ee=ce[0];Tc(Ee.x0)&&Tc(Ee.y0)&&(se=Tt(Ee),(!wt.vLinePoint||wt.vLinePoint.spikeDistance>se.spikeDistance)&&(wt.vLinePoint=se))}var Ne=ee.filter(function(He){return He.ya.showspikes&&He.ya.spikesnap!=="hovered data"});if(Ne.length){var at=Ne[0];Tc(at.x0)&&Tc(at.y0)&&(se=Tt(at),(!wt.hLinePoint||wt.hLinePoint.spikeDistance>se.spikeDistance)&&(wt.hLinePoint=se))}}}}}Ft();function Lt(Gr,$a,Zr){for(var di=null,ga=1/0,le,ee=0;ee0&&Math.abs(Gr.distance)yt-1;lr--)zr(ve[lr]);ve=Vt,Mt()}var At=e._hoverdata,Fe=[],Ge=XD(e),bt=jD(e);for(we=0;we1||ve.length>1)||T==="closest"&&xt&&ve.length>1,$i=ro.combine(f.plot_bgcolor||ro.background,f.paper_bgcolor),on=ZD(ve,{gd:e,hovermode:T,rotateLabels:Ti,bgColor:$i,container:f._hoverlayer,outerContainer:f._paper.node(),commonLabelOpts:f.hoverlabel,hoverdistance:f.hoverdistance}),Ei=on.hoverLabels;if(qu.isUnifiedHover(T)||(Zre(Ei,Ti,f,on.commonLabelBoundingBox),WD(Ei,Ti,f._invScaleX,f._invScaleY)),a&&a.tagName){var ma=G0.getComponentMethod("annotations","hasClickToShow")(e,Fe);Rre(Md.select(a),ma?"pointer":"")}!a||i||!Xre(e,t,At)||(At&&e.emit("plotly_unhover",{event:t,points:At}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:V,yaxes:W,xvals:Se,yvals:Ae}))}function GD(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Gre=/([\s\S]*)<\/extra>/;function ZD(e,t){var r=t.gd,i=r._fullLayout,a=t.hovermode,s=t.rotateLabels,l=t.bgColor,f=t.container,h=t.outerContainer,v=t.commonLabelOpts||{};if(e.length===0)return[[]];var m=t.fontFamily||Sd.HOVERFONT,_=t.fontSize||Sd.HOVERFONTSIZE,T=t.fontWeight||i.font.weight,S=t.fontStyle||i.font.style,C=t.fontVariant||i.font.variant,D=t.fontTextcase||i.font.textcase,E=t.fontLineposition||i.font.lineposition,I=t.fontShadow||i.font.shadow,B=e[0],q=B.xa,z=B.ya,O=a.charAt(0),H=O+"Label",V=B[H];if(V===void 0&&q.type==="multicategory")for(var W=0;Wi.width-bt&&(dt=i.width-bt),yt.attr("d","M"+(At-dt)+",0L"+(At-dt+ji)+","+Ge+ji+"H"+bt+"v"+Ge+(Fa*2+lr.height)+"H"+-bt+"V"+Ge+ji+"H"+(At-dt-ji)+"Z"),At=dt,Te.minX=At-bt,Te.maxX=At+bt,q.side==="top"?(Te.minY=Fe-(Fa*2+lr.height),Te.maxY=Fe-Fa):(Te.minY=Fe+Fa,Te.maxY=Fe+(Fa*2+lr.height))}else{var gr,xr,mr;z.side==="right"?(gr="start",xr=1,mr="",At=q._offset+q._length):(gr="end",xr=-1,mr="-",At=q._offset),Fe=z._offset+(B.y0+B.y1)/2,qt.attr("text-anchor",gr),yt.attr("d","M0,0L"+mr+ji+","+ji+"V"+(Fa+lr.height/2)+"h"+mr+(Fa*2+lr.width)+"V-"+(Fa+lr.height/2)+"H"+mr+ji+"V-"+ji+"Z"),Te.minY=Fe-(Fa+lr.height/2),Te.maxY=Fe+(Fa+lr.height/2),z.side==="right"?(Te.minX=At+ji,Te.maxX=At+ji+(Fa*2+lr.width)):(Te.minX=At-ji-(Fa*2+lr.width),Te.maxX=At-ji);var Hr=lr.height/2,pa=te-lr.top-Hr,Ea="clip"+i._uid+"commonlabel"+z._id,Ua;if(At=0?or=Ut:Ot+Xe=0?or=Ot:Be+Xe=0?Cr=Ct:Mt+Ft=0?Cr=Mt:ft+Ft=0,(Oe.idealAlign==="top"||!vi)&&Ti?(mr-=pa/2,Oe.anchor="end"):vi?(mr+=pa/2,Oe.anchor="start"):Oe.anchor="middle",Oe.crossPos=mr;else{if(Oe.pos=mr,vi=xr+Hr/2+qi<=ne,Ti=xr-Hr/2-qi>=0,(Oe.idealAlign==="left"||!vi)&&Ti)xr-=Hr/2,Oe.anchor="end";else if(vi)xr+=Hr/2,Oe.anchor="start";else{Oe.anchor="middle";var $i=qi/2,on=xr+$i-ne,Ei=xr-$i;on>0&&(xr-=on),Ei<0&&(xr+=-Ei)}Oe.crossPos=xr}Fe.attr("text-anchor",Oe.anchor),bt&&Ge.attr("text-anchor",Oe.anchor),yt.attr("transform",v4(xr,mr)+(s?zre(HD):""))}),{hoverLabels:Sr,commonLabelBoundingBox:Te}}function ND(e,t,r,i,a,s){var l="",f="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=hn.templateString(e.name,e.trace._meta)),l=UD(e.name,e.nameLength));var h=r.charAt(0),v=h==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(f+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(f+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(f+=(f?"z: ":"")+e.zLabel)):t&&e[h+"Label"]===a?f=e[v+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(f=e.yLabel):e.yLabel===void 0?f=e.xLabel:f="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(f+=(f?"
":"")+e.text),e.extraText!==void 0&&(f+=(f?"
":"")+e.extraText),s&&f===""&&!e.hovertemplate&&(l===""&&s.remove(),f=l);var m=e.hovertemplate||!1;if(m){var _=e.hovertemplateLabels||e;e[h+"Label"]!==a&&(_[h+"other"]=_[h+"Val"],_[h+"otherLabel"]=_[h+"Label"]),f=hn.hovertemplateString(m,_,i._d3locale,e.eventData[0]||{},e.trace._meta),f=f.replace(Gre,function(T,S){return l=UD(S,e.nameLength),""})}return[f,l]}function Zre(e,t,r,i){var a=t?"xa":"ya",s=t?"ya":"xa",l=0,f=1,h=e.size(),v=new Array(h),m=0,_=i.minX,T=i.maxX,S=i.minY,C=i.maxY,D=function(Se){return Se*r._invScaleX},E=function(Se){return Se*r._invScaleY};e.each(function(Se){var Ae=Se[a],we=Se[s],Te=Ae._id.charAt(0)==="x",Ce=Ae.range;m===0&&Ce&&Ce[0]>Ce[1]!==Te&&(f=-1);var Le=0,$e=Te?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var lt=YD(Se,t),it=Se.anchor,gt=it==="end"?-1:1,We,Et;if(it==="middle")We=Se.crossPos+(Te?E(lt.y-Se.by/2):D(Se.bx/2+Se.tx2width/2)),Et=We+(Te?E(Se.by):D(Se.bx));else if(Te)We=Se.crossPos+E(ji+lt.y)-E(Se.by/2-ji),Et=We+E(Se.by);else{var nt=D(gt*ji+lt.x),wt=nt+D(gt*Se.bx);We=Se.crossPos+Math.min(nt,wt),Et=Se.crossPos+Math.max(nt,wt)}Te?S!==void 0&&C!==void 0&&Math.min(Et,C)-Math.max(We,S)>1&&(we.side==="left"?(Le=we._mainLinePosition,$e=r.width):$e=we._mainLinePosition):_!==void 0&&T!==void 0&&Math.min(Et,T)-Math.max(We,_)>1&&(we.side==="top"?(Le=we._mainLinePosition,$e=r.height):$e=we._mainLinePosition)}v[m++]=[{datum:Se,traceIndex:Se.trace.index,dp:0,pos:Se.pos,posref:Se.posref,size:Se.by*(Te?Bre:1)/2,pmin:Le,pmax:$e}]}),v.sort(function(Se,Ae){return Se[0].posref-Ae[0].posref||f*(Ae[0].traceIndex-Se[0].traceIndex)});var I,B,q,z,O,H,V;function W(Se){var Ae=Se[0],we=Se[Se.length-1];if(B=Ae.pmin-Ae.pos-Ae.dp+Ae.size,q=we.pos+we.dp+we.size-Ae.pmax,B>.01){for(O=Se.length-1;O>=0;O--)Se[O].dp+=B;I=!1}if(!(q<.01)){if(B<-.01){for(O=Se.length-1;O>=0;O--)Se[O].dp-=q;I=!1}if(I){var Te=0;for(z=0;zAe.pmax&&Te++;for(z=Se.length-1;z>=0&&!(Te<=0);z--)H=Se[z],H.pos>Ae.pmax-1&&(H.del=!0,Te--);for(z=0;z=0;O--)Se[O].dp-=q;for(z=Se.length-1;z>=0&&!(Te<=0);z--)H=Se[z],H.pos+H.dp+H.size>Ae.pmax&&(H.del=!0,Te--)}}}for(;!I&&l<=h;){for(l++,I=!0,z=0;z.01){for(O=te.length-1;O>=0;O--)te[O].dp+=B;for(J.push.apply(J,te),v.splice(z+1,1),V=0,O=J.length-1;O>=0;O--)V+=J[O].dp;for(q=V/J.length,O=J.length-1;O>=0;O--)J[O].dp-=q;I=!1}else z++}v.forEach(W)}for(z=v.length-1;z>=0;z--){var fe=v[z];for(O=fe.length-1;O>=0;O--){var ve=fe[O],Me=ve.datum;Me.offset=ve.dp,Me.del=ve.del}}}function YD(e,t){var r=0,i=e.offset;return t&&(i*=-Ure,r=e.offset*Ore),{x:r,y:i}}function Yre(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(ji+Fa),i=r+t*(e.txwidth+Fa),a=e.anchor==="middle";return a&&(r-=e.tx2width/2,i+=e.txwidth/2+Fa),{alignShift:t,textShiftX:r,text2ShiftX:i}}function WD(e,t,r,i){var a=function(l){return l*r},s=function(l){return l*i};e.each(function(l){var f=Md.select(this);if(l.del)return f.remove();var h=f.select("text.nums"),v=l.anchor,m=v==="end"?-1:1,_=Yre(l),T=YD(l,t),S=T.x,C=T.y,D=v==="middle",E="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,I;D?I="M-"+a(l.bx/2+l.tx2width/2)+","+s(C-l.by/2)+"h"+a(l.bx)+"v"+s(l.by)+"h-"+a(l.bx)+"Z":E?I="M0,0L"+a(m*ji+S)+","+s(ji+C)+"v"+s(l.by/2-ji)+"h"+a(m*l.bx)+"v-"+s(l.by)+"H"+a(m*ji+S)+"V"+s(C-ji)+"Z":I="M"+a(m*ji+S)+","+s(C-l.by/2)+"h"+a(m*l.bx)+"v"+s(l.by)+"h"+a(-m*l.bx)+"Z",f.select("path").attr("d",I);var B=S+_.textShiftX,q=C+l.ty0-l.by/2+Fa,z=l.textAlign||"auto";z!=="auto"&&(z==="left"&&v!=="start"?(h.attr("text-anchor","start"),B=D?-l.bx/2-l.tx2width/2+Fa:-l.bx-Fa):z==="right"&&v!=="end"&&(h.attr("text-anchor","end"),B=D?l.bx/2-l.tx2width/2-Fa:l.bx+Fa)),h.call(Kl.positionText,a(B),s(q)),l.tx2width&&(f.select("text.name").call(Kl.positionText,a(_.text2ShiftX+_.alignShift*Fa+S),s(C+l.ty0-l.by/2+Fa)),f.select("rect").call(zf.setRect,a(_.text2ShiftX+(_.alignShift-1)*l.tx2width/2+S),s(C-l.by/2-1),a(l.tx2width),s(l.by+2)))})}function Wre(e,t){var r=e.index,i=e.trace||{},a=e.cd[0],s=e.cd[r]||{};function l(T){return T||Tc(T)&&T===0}var f=Array.isArray(r)?function(T,S){var C=hn.castOption(a,r,T);return l(C)?C:hn.extractOption({},i,"",S)}:function(T,S){return hn.extractOption(s,i,T,S)};function h(T,S,C){var D=f(S,C);l(D)&&(e[T]=D)}if(h("hoverinfo","hi","hoverinfo"),h("bgcolor","hbg","hoverlabel.bgcolor"),h("borderColor","hbc","hoverlabel.bordercolor"),h("fontFamily","htf","hoverlabel.font.family"),h("fontSize","hts","hoverlabel.font.size"),h("fontColor","htc","hoverlabel.font.color"),h("fontWeight","htw","hoverlabel.font.weight"),h("fontStyle","hty","hoverlabel.font.style"),h("fontVariant","htv","hoverlabel.font.variant"),h("nameLength","hnl","hoverlabel.namelength"),h("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&i.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=hn.constrain(e.x0,0,e.xa._length),e.x1=hn.constrain(e.x1,0,e.xa._length),e.y0=hn.constrain(e.y0,0,e.ya._length),e.y1=hn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:If.hoverLabelText(e.xa,e.xLabelVal,i.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:If.hoverLabelText(e.ya,e.yLabelVal,i.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var v=If.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+v+" / -"+If.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+v,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var m=If.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+m+" / -"+If.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+m,t==="y"&&(e.distance+=1)}var _=e.hoverinfo||e.trace.hoverinfo;return _&&_!=="all"&&(_=Array.isArray(_)?_:_.split("+"),_.indexOf("x")===-1&&(e.xLabel=void 0),_.indexOf("y")===-1&&(e.yLabel=void 0),_.indexOf("z")===-1&&(e.zLabel=void 0),_.indexOf("text")===-1&&(e.text=void 0),_.indexOf("name")===-1&&(e.name=void 0)),e}function BD(e,t,r){var i=r.container,a=r.fullLayout,s=a._size,l=r.event,f=!!t.hLinePoint,h=!!t.vLinePoint,v,m;if(i.selectAll(".spikeline").remove(),!!(h||f)){var _=ro.combine(a.plot_bgcolor,a.paper_bgcolor);if(f){var T=t.hLinePoint,S,C;v=T&&T.xa,m=T&&T.ya;var D=m.spikesnap;D==="cursor"?(S=l.pointerX,C=l.pointerY):(S=v._offset+T.x,C=m._offset+T.y);var E=RD.readability(T.color,_)<1.5?ro.contrast(_):T.color,I=m.spikemode,B=m.spikethickness,q=m.spikecolor||E,z=If.getPxPosition(e,m),O,H;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(O=z,H=S),I.indexOf("across")!==-1){var V=m._counterDomainMin,W=m._counterDomainMax;m.anchor==="free"&&(V=Math.min(V,m.position),W=Math.max(W,m.position)),O=s.l+V*s.w,H=s.l+W*s.w}i.insert("line",":first-child").attr({x1:O,x2:H,y1:C,y2:C,"stroke-width":B,stroke:q,"stroke-dasharray":zf.dashStyle(m.spikedash,B)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:O,x2:H,y1:C,y2:C,"stroke-width":B+2,stroke:_}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:z+(m.side!=="right"?B:-B),cy:C,r:B,fill:q}).classed("spikeline",!0)}if(h){var J=t.vLinePoint,te,ne;v=J&&J.xa,m=J&&J.ya;var oe=v.spikesnap;oe==="cursor"?(te=l.pointerX,ne=l.pointerY):(te=v._offset+J.x,ne=m._offset+J.y);var fe=RD.readability(J.color,_)<1.5?ro.contrast(_):J.color,ve=v.spikemode,Me=v.spikethickness,Se=v.spikecolor||fe,Ae=If.getPxPosition(e,v),we,Te;if(ve.indexOf("toaxis")!==-1||ve.indexOf("across")!==-1){if(ve.indexOf("toaxis")!==-1&&(we=Ae,Te=ne),ve.indexOf("across")!==-1){var Ce=v._counterDomainMin,Le=v._counterDomainMax;v.anchor==="free"&&(Ce=Math.min(Ce,v.position),Le=Math.max(Le,v.position)),we=s.t+(1-Le)*s.h,Te=s.t+(1-Ce)*s.h}i.insert("line",":first-child").attr({x1:te,x2:te,y1:we,y2:Te,"stroke-width":Me,stroke:Se,"stroke-dasharray":zf.dashStyle(v.spikedash,Me)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:te,x2:te,y1:we,y2:Te,"stroke-width":Me+2,stroke:_}).classed("spikeline",!0).classed("crisp",!0)}ve.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:te,cy:Ae-(v.side!=="top"?Me:-Me),r:Me,fill:Se}).classed("spikeline",!0)}}}function Xre(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var i=r.length-1;i>=0;i--){var a=r[i],s=e._hoverdata[i];if(a.curveNumber!==s.curveNumber||String(a.pointNumber)!==String(s.pointNumber)||String(a.pointNumbers)!==String(s.pointNumbers)||a.binNumber!==s.binNumber)return!0}return!1}function OD(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function UD(e,t){return Kl.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function jre(e,t){for(var r=t.charAt(0),i=[],a=[],s=[],l=0;l{"use strict";var Jre=Bt(),Kre=Oa(),Qre=bc().isUnifiedHover;JD.exports=function(t,r,i,a){a=a||{};var s=r.legend;function l(f){a.font[f]||(a.font[f]=s?r.legend.font[f]:r.font[f])}r&&Qre(r.hovermode)&&(a.font||(a.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),s?(a.bgcolor||(a.bgcolor=Kre.combine(r.legend.bgcolor,r.paper_bgcolor)),a.bordercolor||(a.bordercolor=r.legend.bordercolor)):a.bgcolor||(a.bgcolor=r.paper_bgcolor)),i("hoverlabel.bgcolor",a.bgcolor),i("hoverlabel.bordercolor",a.bordercolor),i("hoverlabel.namelength",a.namelength),i("hoverlabel.showarrow",a.showarrow),Jre.coerceFont(i,"hoverlabel.font",a.font),i("hoverlabel.align",a.align)}});var QD=me((S1e,KD)=>{"use strict";var $re=Bt(),eae=P2(),tae=f0();KD.exports=function(t,r){function i(a,s){return $re.coerce(t,r,tae,a,s)}eae(t,r,i)}});var tP=me((k1e,eP)=>{"use strict";var $D=Bt(),rae=t_(),aae=P2();eP.exports=function(t,r,i,a){function s(f,h){return $D.coerce(t,r,rae,f,h)}var l=$D.extendFlat({},a.hoverlabel);r.hovertemplate&&(l.namelength=-1),aae(t,r,s,l)}});var y4=me((C1e,rP)=>{"use strict";var iae=Bt(),nae=f0();rP.exports=function(t,r){function i(a,s){return r[a]!==void 0?r[a]:iae.coerce(t,r,nae,a,s)}return i("clickmode"),i("hoversubplots"),i("hovermode")}});var nP=me((E1e,iP)=>{"use strict";var aP=Bt(),oae=f0(),sae=y4(),lae=P2();iP.exports=function(t,r){function i(m,_){return aP.coerce(t,r,oae,m,_)}var a=sae(t,r);a&&(i("hoverdistance"),i("spikedistance"));var s=i("dragmode");s==="select"&&i("selectdirection");var l=r._has("mapbox"),f=r._has("map"),h=r._has("geo"),v=r._basePlotModules.length;r.dragmode==="zoom"&&((l||f||h)&&v===1||(l||f)&&h&&v===2)&&(r.dragmode="pan"),lae(t,r,i),aP.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var lP=me((L1e,sP)=>{"use strict";var g4=Bt(),oP=la();sP.exports=function(t){var r=t.calcdata,i=t._fullLayout;function a(v){return function(m){return g4.coerceHoverinfo({hoverinfo:m},{_module:v._module},i)}}for(var s=0;s{"use strict";var fae=la(),cae=m4().hover;uP.exports=function(t,r,i){var a=fae.getComponentMethod("annotations","onClick")(t,t._hoverdata);i!==void 0&&cae(t,r,i,!0);function s(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(a&&a.then?a.then(s):s(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Rf=me((P1e,vP)=>{"use strict";var hae=Ja(),z2=Bt(),vae=jl(),og=bc(),cP=f0(),hP=m4();vP.exports={moduleType:"component",name:"fx",constants:ky(),schema:{layout:cP},attributes:t_(),layoutAttributes:cP,supplyLayoutGlobalDefaults:QD(),supplyDefaults:tP(),supplyLayoutDefaults:nP(),calc:lP(),getDistanceFunction:og.getDistanceFunction,getClosest:og.getClosest,inbox:og.inbox,quadrature:og.quadrature,appendArrayPointValue:og.appendArrayPointValue,castHoverOption:pae,castHoverinfo:mae,hover:hP.hover,unhover:vae.unhover,loneHover:hP.loneHover,loneUnhover:dae,click:fP()};function dae(e){var t=z2.isD3Selection(e)?e:hae.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function pae(e,t,r){return z2.castOption(e,t,"hoverlabel."+r)}function mae(e,t,r){function i(a){return z2.coerceHoverinfo({hoverinfo:a},{_module:e._module},t)}return z2.castOption(e,r,"hoverinfo",i)}});var kd=me(Ac=>{"use strict";Ac.selectMode=function(e){return e==="lasso"||e==="select"};Ac.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ac.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Ac.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ac.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Ac.selectingOrDrawing=function(e){return Ac.freeMode(e)||Ac.rectMode(e)}});var I2=me((I1e,dP)=>{"use strict";dP.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(i){i.regl&&i.regl.clear({color:!0,depth:!0})})}});var R2=me((R1e,pP)=>{"use strict";pP.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var q2=me((F1e,mP)=>{"use strict";var F2=32;mP.exports={CIRCLE_SIDES:F2,i000:0,i090:F2/4,i180:F2/2,i270:F2/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var N2=me((q1e,gP)=>{"use strict";var yae=Bt().strTranslate;function yP(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function gae(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function _ae(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return yP(e,r[t])}}function xae(e){return yae(e.xaxis._offset,e.yaxis._offset)}gP.exports={p2r:yP,r2p:gae,axValue:_ae,getTransform:xae}});var Uh=me(Mc=>{"use strict";var bae=o5(),bP=q2(),Z0=bP.CIRCLE_SIDES,_4=bP.SQRT2,wP=N2(),_P=wP.p2r,xP=wP.r2p,wae=[0,3,4,5,6,1,2],Tae=[0,3,4,1,2];Mc.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",i=0;i0&&h{"use strict";var TP=Xn(),CP=kd(),Aae=CP.drawMode,Mae=CP.openMode,Y0=q2(),AP=Y0.i000,MP=Y0.i090,SP=Y0.i180,kP=Y0.i270,Sae=Y0.cos45,kae=Y0.sin45,EP=N2(),O2=EP.p2r,Vh=EP.r2p,Cae=Ph(),Eae=Cae.clearOutline,U2=Uh(),Lae=U2.readPaths,Dae=U2.writePaths,Pae=U2.ellipseOver,zae=U2.fixDatesForPaths;function Iae(e,t){if(e.length){var r=e[0][0];if(r){var i=t.gd,a=t.isActiveShape,s=t.dragmode,l=(i.layout||{}).shapes||[];if(!Aae(s)&&a!==void 0){var f=i._fullLayout._activeShapeIndex;if(f{"use strict";var Rae=kd(),Fae=Rae.selectMode,qae=Ph(),Nae=qae.clearOutline,x4=Uh(),Bae=x4.readPaths,Oae=x4.writePaths,Uae=x4.fixDatesForPaths;PP.exports=function(t,r){if(t.length){var i=t[0][0];if(i){var a=i.getAttribute("d"),s=r.gd,l=s._fullLayout.newselection,f=r.plotinfo,h=f.xaxis,v=f.yaxis,m=r.isActiveSelection,_=r.dragmode,T=(s.layout||{}).selections||[];if(!Fae(_)&&m!==void 0){var S=s._fullLayout._activeSelectionIndex;if(S{"use strict";zP.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Hh=me(ho=>{"use strict";var Cd=lg(),IP=Bt(),H2=Xi();ho.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};ho.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};ho.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};ho.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};ho.extractPathCoords=function(e,t,r){var i=[],a=e.match(Cd.segmentRE);return a.forEach(function(s){var l=t[s.charAt(0)].drawn;if(l!==void 0){var f=s.substr(1).match(Cd.paramRE);if(!(!f||f.lengthS&&(D="X"),D});return v>S&&(C=C.replace(/[\s,]*X.*/,""),IP.log("Ignoring extra params in segment "+h)),m+C})}function ug(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var T4=me((H1e,NP)=>{"use strict";var Hae=Bt(),W0=Xi(),RP=co(),FP=bi(),Gae=Uh().readPaths,w4=Hh(),Zae=w4.getPathString,qP=f_(),Yae=ts().FROM_TL;NP.exports=function(t,r,i,a){if(a.selectAll(".shape-label").remove(),!!(i.label.text||i.label.texttemplate)){var s;if(i.label.texttemplate){var l={};if(i.type!=="path"){var f=W0.getFromId(t,i.xref),h=W0.getFromId(t,i.yref);for(var v in qP){var m=qP[v](i,f,h);m!==void 0&&(l[v]=m)}}s=Hae.texttemplateStringForShapes(i.label.texttemplate,{},t._fullLayout._d3locale,l)}else s=i.label.text;var _={"data-index":r},T=i.label.font,S={"data-notex":1},C=a.append("g").attr(_).classed("shape-label",!0),D=C.append("text").attr(S).classed("shape-label-text",!0).text(s),E,I,B,q;if(i.path){var z=Zae(t,i),O=Gae(z,t);E=1/0,B=1/0,I=-1/0,q=-1/0;for(var H=0;H=e?a=t-i:a=i-t,-180/Math.PI*Math.atan2(a,s)}function Xae(e,t,r,i,a,s,l){var f=a.label.textposition,h=a.label.textangle,v=a.label.padding,m=a.type,_=Math.PI/180*s,T=Math.sin(_),S=Math.cos(_),C=a.label.xanchor,D=a.label.yanchor,E,I,B,q;if(m==="line"){f==="start"?(E=e,I=t):f==="end"?(E=r,I=i):(E=(e+r)/2,I=(t+i)/2),C==="auto"&&(f==="start"?h==="auto"?r>e?C="left":re?C="right":re?C="right":re?C="left":r{"use strict";var jae=Bt(),Jae=jae.strTranslate,BP=jl(),VP=kd(),Kae=VP.drawMode,HP=VP.selectMode,GP=la(),OP=Oa(),Z2=q2(),Qae=Z2.i000,$ae=Z2.i090,eie=Z2.i180,tie=Z2.i270,rie=Ph(),ZP=rie.clearOutlineControllers,M4=Uh(),G2=M4.pointsOnRectangle,A4=M4.pointsOnEllipse,aie=M4.writePaths,iie=V2().newShapes,nie=V2().createShapeObj,oie=b4(),sie=T4();YP.exports=function e(t,r,i,a){a||(a=0);var s=i.gd;function l(){e(t,r,i,a++),(A4(t[0])||i.hasText)&&f({redrawing:!0})}function f(Ae){var we={};i.isActiveShape!==void 0&&(i.isActiveShape=!1,we=iie(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,we=oie(r,i),s._fullLayout._reselect=!0),Object.keys(we).length&&GP.call((Ae||{}).redrawing?"relayout":"_guiRelayout",s,we)}var h=s._fullLayout,v=h._zoomlayer,m=i.dragmode,_=Kae(m),T=HP(m);(_||T)&&(s._fullLayout._outlining=!0),ZP(s),r.attr("d",aie(t));var S,C,D,E,I;if(!a&&(i.isActiveShape||i.isActiveSelection)){I=lie([],t);var B=v.append("g").attr("class","outline-controllers");te(B),Se()}if(_&&i.hasText){var q=v.select(".label-temp"),z=nie(r,i,i.dragmode);sie(s,"label-temp",z,q)}function O(Ae){D=+Ae.srcElement.getAttribute("data-i"),E=+Ae.srcElement.getAttribute("data-j"),S[D][E].moveFn=H}function H(Ae,we){if(t.length){var Te=I[D][E][1],Ce=I[D][E][2],Le=t[D],$e=Le.length;if(G2(Le)){var lt=Ae,it=we;if(i.isActiveSelection){var gt=UP(Le,E);gt[1]===Le[E][1]?it=0:lt=0}for(var We=0;We<$e;We++)if(We!==E){var Et=Le[We];Et[1]===Le[E][1]&&(Et[1]=Te+lt),Et[2]===Le[E][2]&&(Et[2]=Ce+it)}if(Le[E][1]=Te+lt,Le[E][2]=Ce+it,!G2(Le))for(var nt=0;nt<$e;nt++)for(var wt=0;wt1&&!(Ae.length===2&&Ae[1][0]==="Z")&&(E===0&&(Ae[0][0]="M"),t[D]=Ae,l(),f())}}function J(Ae,we){if(Ae===2){D=+we.srcElement.getAttribute("data-i"),E=+we.srcElement.getAttribute("data-j");var Te=t[D];!G2(Te)&&!A4(Te)&&W()}}function te(Ae){S=[];for(var we=0;we{"use strict";var fie=Ja(),QP=la(),WP=Bt(),X0=Xi(),cie=Uh().readPaths,hie=Y2(),X2=T4(),$P=Ph().clearOutlineControllers,S4=Oa(),C4=bi(),vie=Ri().arrayEditor,XP=jl(),jP=Oh(),Ed=lg(),Os=Hh(),k4=Os.getPathString;rz.exports={draw:E4,drawOne:ez,eraseActiveShape:mie,drawLabel:X2};function E4(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var i=t._plots[r].shapelayer;i&&(i.selectAll("path").remove(),i.selectAll("text").remove())}for(var a=0;al&&Gt>f&&!Lt.shiftKey?XP.getCursor(Ct/It,1-Mt/Gt):"move";jP(t,Ut),Et=Ut.split("-")[0]}}function vt(Lt){W2(e)||(h&&(I=Le(r.xanchor)),v&&(B=$e(r.yanchor)),r.type==="path"?ne=r.path:(S=h?r.x0:Le(r.x0),C=v?r.y0:$e(r.y0),D=h?r.x1:Le(r.x1),E=v?r.y1:$e(r.y1)),SE?(q=C,V="y0",z=E,W="y1"):(q=E,V="y1",z=C,W="y0"),xt(Lt),mt(a,r),Ft(t,r,e),We.moveFn=Et==="move"?pe:rt,We.altKey=Lt.altKey)}function de(){W2(e)||(jP(t),Xe(a),tz(t,e,r),QP.call("_guiRelayout",e,s.getUpdateObj()))}function ze(){W2(e)||Xe(a)}function pe(Lt,Tt){if(r.type==="path"){var It=function(Mt){return Mt},Gt=It,Ct=It;h?T("xanchor",r.xanchor=lt(I+Lt)):(Gt=function(Ut){return lt(Le(Ut)+Lt)},fe&&fe.type==="date"&&(Gt=Os.encodeDate(Gt))),v?T("yanchor",r.yanchor=it(B+Tt)):(Ct=function(Ut){return it($e(Ut)+Tt)},Me&&Me.type==="date"&&(Ct=Os.encodeDate(Ct))),T("path",r.path=JP(ne,Gt,Ct))}else h?T("xanchor",r.xanchor=lt(I+Lt)):(T("x0",r.x0=lt(S+Lt)),T("x1",r.x1=lt(D+Lt))),v?T("yanchor",r.yanchor=it(B+Tt)):(T("y0",r.y0=it(C+Tt)),T("y1",r.y1=it(E+Tt)));t.attr("d",k4(e,r)),mt(a,r),X2(e,i,r,oe)}function rt(Lt,Tt){if(_){var It=function(tr){return tr},Gt=It,Ct=It;h?T("xanchor",r.xanchor=lt(I+Lt)):(Gt=function(ar){return lt(Le(ar)+Lt)},fe&&fe.type==="date"&&(Gt=Os.encodeDate(Gt))),v?T("yanchor",r.yanchor=it(B+Tt)):(Ct=function(ar){return it($e(ar)+Tt)},Me&&Me.type==="date"&&(Ct=Os.encodeDate(Ct))),T("path",r.path=JP(ne,Gt,Ct))}else if(m){if(Et==="resize-over-start-point"){var Mt=S+Lt,Ut=v?C-Tt:C+Tt;T("x0",r.x0=h?Mt:lt(Mt)),T("y0",r.y0=v?Ut:it(Ut))}else if(Et==="resize-over-end-point"){var Ot=D+Lt,Be=v?E-Tt:E+Tt;T("x1",r.x1=h?Ot:lt(Ot)),T("y1",r.y1=v?Be:it(Be))}}else{var ft=function(tr){return Et.indexOf(tr)!==-1},or=ft("n"),Cr=ft("s"),Sr=ft("w"),Oe=ft("e"),yt=or?q+Tt:q,qt=Cr?z+Tt:z,Qt=Sr?O+Lt:O,Vt=Oe?H+Lt:H;v&&(or&&(yt=q-Tt),Cr&&(qt=z-Tt)),(!v&&qt-yt>f||v&&yt-qt>f)&&(T(V,r[V]=v?yt:it(yt)),T(W,r[W]=v?qt:it(qt))),Vt-Qt>l&&(T(J,r[J]=h?Qt:lt(Qt)),T(te,r[te]=h?Vt:lt(Vt)))}t.attr("d",k4(e,r)),mt(a,r),X2(e,i,r,oe)}function mt(Lt,Tt){(h||v)&&It();function It(){var Gt=Tt.type!=="path",Ct=Lt.selectAll(".visual-cue").data([0]),Mt=1;Ct.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Mt}).classed("visual-cue",!0);var Ut=Le(h?Tt.xanchor:WP.midRange(Gt?[Tt.x0,Tt.x1]:Os.extractPathCoords(Tt.path,Ed.paramIsX))),Ot=$e(v?Tt.yanchor:WP.midRange(Gt?[Tt.y0,Tt.y1]:Os.extractPathCoords(Tt.path,Ed.paramIsY)));if(Ut=Os.roundPositionForSharpStrokeRendering(Ut,Mt),Ot=Os.roundPositionForSharpStrokeRendering(Ot,Mt),h&&v){var Be="M"+(Ut-1-Mt)+","+(Ot-1-Mt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ct.attr("d",Be)}else if(h){var ft="M"+(Ut-1-Mt)+","+(Ot-9-Mt)+"v18 h2 v-18 Z";Ct.attr("d",ft)}else{var or="M"+(Ut-9-Mt)+","+(Ot-1-Mt)+"h18 v2 h-18 Z";Ct.attr("d",or)}}}function Xe(Lt){Lt.selectAll(".visual-cue").remove()}function Ft(Lt,Tt,It){var Gt=Tt.xref,Ct=Tt.yref,Mt=X0.getFromId(It,Gt),Ut=X0.getFromId(It,Ct),Ot="";Gt!=="paper"&&!Mt.autorange&&(Ot+=Gt),Ct!=="paper"&&!Ut.autorange&&(Ot+=Ct),C4.setClipUrl(Lt,Ot?"clip"+It._fullLayout._uid+Ot:null,It)}}function JP(e,t,r){return e.replace(Ed.segmentRE,function(i){var a=0,s=i.charAt(0),l=Ed.paramIsX[s],f=Ed.paramIsY[s],h=Ed.numParams[s],v=i.substr(1).replace(Ed.paramRE,function(m){return a>=h||(l[a]?m=t(m):f[a]&&(m=r(m)),a++),m});return s+v})}function pie(e,t){if(j2(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){KP(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=KP,E4(e)}}}function KP(e){if(j2(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&($P(e),delete e._fullLayout._activeShapeIndex,E4(e))}}function mie(e){if(j2(e)){$P(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var Ql=la(),az=eo(),iz=Xn(),Ka=R2(),yie=J2().eraseActiveShape,K2=Bt(),za=K2._,Qa=cz.exports={};Qa.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?za(e,"Download plot as a PNG"):za(e,"Download plot")},icon:Ka.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};K2.notifier(za(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(i){i in t&&(r[i]=t[i])}),Ql.call("downloadImage",e,r).then(function(i){K2.notifier(za(e,"Snapshot succeeded")+" - "+i,"long")}).catch(function(){K2.notifier(za(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Qa.sendDataToCloud={name:"sendDataToCloud",title:function(e){return za(e,"Edit in Chart Studio")},icon:Ka.disk,click:function(e){az.sendDataToCloud(e)}};Qa.editInChartStudio={name:"editInChartStudio",title:function(e){return za(e,"Edit in Chart Studio")},icon:Ka.pencil,click:function(e){az.sendDataToCloud(e)}};Qa.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return za(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ka.zoombox,click:ns};Qa.pan2d={name:"pan2d",_cat:"pan",title:function(e){return za(e,"Pan")},attr:"dragmode",val:"pan",icon:Ka.pan,click:ns};Qa.select2d={name:"select2d",_cat:"select",title:function(e){return za(e,"Box Select")},attr:"dragmode",val:"select",icon:Ka.selectbox,click:ns};Qa.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return za(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ka.lasso,click:ns};Qa.drawclosedpath={name:"drawclosedpath",title:function(e){return za(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ka.drawclosedpath,click:ns};Qa.drawopenpath={name:"drawopenpath",title:function(e){return za(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ka.drawopenpath,click:ns};Qa.drawline={name:"drawline",title:function(e){return za(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ka.drawline,click:ns};Qa.drawrect={name:"drawrect",title:function(e){return za(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ka.drawrect,click:ns};Qa.drawcircle={name:"drawcircle",title:function(e){return za(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ka.drawcircle,click:ns};Qa.eraseshape={name:"eraseshape",title:function(e){return za(e,"Erase active shape")},icon:Ka.eraseshape,click:yie};Qa.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return za(e,"Zoom in")},attr:"zoom",val:"in",icon:Ka.zoom_plus,click:ns};Qa.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return za(e,"Zoom out")},attr:"zoom",val:"out",icon:Ka.zoom_minus,click:ns};Qa.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return za(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ka.autoscale,click:ns};Qa.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return za(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ka.home,click:ns};Qa.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return za(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ka.tooltip_basic,gravity:"ne",click:ns};Qa.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return za(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ka.tooltip_compare,gravity:"ne",click:ns};function ns(e,t){var r=t.currentTarget,i=r.getAttribute("data-attr"),a=r.getAttribute("data-val")||!0,s=e._fullLayout,l={},f=iz.list(e,null,!0),h=s._cartesianSpikesEnabled,v,m;if(i==="zoom"){var _=a==="in"?.5:2,T=(1+_)/2,S=(1-_)/2,C,D;for(m=0;m{"use strict";var hz=P4(),xie=Object.keys(hz),vz=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],dz=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(vz),J0=[],bie=function(e){if(dz.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();J0.indexOf(t)===-1&&J0.push(t),J0.indexOf(r)===-1&&J0.push(r)}};xie.forEach(function(e){bie(hz[e])});J0.sort();pz.exports={DRAW_MODES:vz,backButtons:dz,foreButtons:J0}});var I4=me((j1e,mz)=>{"use strict";var X1e=z4();mz.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var gz=me((J1e,yz)=>{"use strict";var wie=Bt(),fg=Oa(),Tie=Ri(),Aie=I4();yz.exports=function(t,r){var i=t.modebar||{},a=Tie.newContainer(r,"modebar");function s(f,h){return wie.coerce(i,a,Aie,f,h)}s("orientation"),s("bgcolor",fg.addOpacity(r.paper_bgcolor,.5));var l=fg.contrast(fg.rgb(r.modebar.bgcolor));s("color",fg.addOpacity(l,.3)),s("activecolor",fg.addOpacity(l,.7)),s("uirevision",r.uirevision),s("add"),s("remove")}});var wz=me((K1e,bz)=>{"use strict";var R4=Ja(),Mie=Da(),$2=Bt(),_z=R2(),Sie=G1().version,kie=new DOMParser;function xz(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ff=xz.prototype;Ff.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,i=this.graphInfo._fullLayout,a="modebar-"+i._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),i.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var s=i.modebar,l="#"+a+" .modebar-group";document.querySelectorAll(l).forEach(function(_){_.style.backgroundColor=s.bgcolor});var f=!this.hasButtons(t),h=this.hasLogo!==r.displaylogo,v=this.locale!==r.locale;if(this.locale=r.locale,(f||h||v)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var m=this.getLogo();r.watermark&&(m.className=m.className+" watermark"),i.modebar.orientation==="v"?this.element.insertBefore(m,this.element.childNodes[0]):this.element.appendChild(m),this.hasLogo=!0}this.updateActiveButton(),$2.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+s.activecolor,"fill: "+s.color,this.element)};Ff.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var i=t.createGroup();r.forEach(function(a){var s=a.name;if(!s)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(s)!==-1)throw new Error("button name '"+s+"' is taken");t.buttonsNames.push(s);var l=t.createButton(a);t.buttonElements.push(l),i.appendChild(l)}),t.element.appendChild(i)})};Ff.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Ff.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var i=e.title;i===void 0?i=e.name:typeof i=="function"&&(i=i(this.graphInfo)),(i||i===0)&&(r.setAttribute("data-title",i),r.setAttribute("aria-label",i)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),r.setAttribute("data-val",a));var s=e.click;if(typeof s!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(f){e.click(t.graphInfo,f),t.updateActiveButton(f.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&R4.select(r).classed("active",!0);var l=e.icon;return typeof l=="function"?r.appendChild(l()):r.appendChild(this.createIcon(l||_z.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Ff.createIcon=function(e){var t=Mie(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",i;if(e.path){i=document.createElementNS(r,"svg"),i.setAttribute("viewBox",[0,0,e.width,t].join(" ")),i.setAttribute("class","icon");var a=document.createElementNS(r,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),i.appendChild(a)}if(e.svg){var s=kie.parseFromString(e.svg,"application/xml");i=s.childNodes[0]}return i.setAttribute("height","1em"),i.setAttribute("width","1em"),i};Ff.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(i){var a=i.getAttribute("data-val")||!0,s=i.getAttribute("data-attr"),l=i.getAttribute("data-toggle")==="true",f=R4.select(i),h=function(_,T){var S=t.modebar,C=_.querySelector(".icon path");C&&(T||_.matches(":hover")?C.style.fill=S.activecolor:C.style.fill=S.color)};if(l){if(s===r){var v=!f.classed("active");f.classed("active",v),h(i,v)}}else{var m=s===null?s:$2.nestedProperty(t,s).get();f.classed("active",m===a),h(i,m===a)}})};Ff.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var Lie=Xn(),Tz=rs(),F4=la(),Die=bc().isUnifiedHover,Pie=wz(),ex=P4(),zie=z4().DRAW_MODES,Iie=Bt().extendDeep;Az.exports=function(t){var r=t._fullLayout,i=t._context,a=r._modeBar;if(!i.displayModeBar&&!i.watermark){a&&(a.destroy(),delete r._modeBar);return}if(!Array.isArray(i.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(i.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var s=i.modeBarButtons,l;Array.isArray(s)&&s.length?l=Oie(s):!i.displayModeBar&&i.watermark?l=[]:l=Rie(t),a?a.update(t,l):r._modeBar=Pie(t,l)};function Rie(e){var t=e._fullLayout,r=e._fullData,i=e._context;function a(we,Te){if(typeof Te=="string"){if(Te.toLowerCase()===we.toLowerCase())return!0}else{var Ce=Te.name,Le=Te._cat||Te.name;if(Ce===we||Le===we.toLowerCase())return!0}return!1}var s=t.modebar.add;typeof s=="string"&&(s=[s]);var l=t.modebar.remove;typeof l=="string"&&(l=[l]);var f=i.modeBarButtonsToAdd.concat(s.filter(function(we){for(var Te=0;Te1?(te=["toggleHover"],ne=["resetViews"]):_?(J=["zoomInGeo","zoomOutGeo"],te=["hoverClosestGeo"],ne=["resetGeo"]):m?(te=["hoverClosest3d"],ne=["resetCameraDefault3d","resetCameraLastSave3d"]):D?(J=["zoomInMapbox","zoomOutMapbox"],te=["toggleHover"],ne=["resetViewMapbox"]):E?(J=["zoomInMap","zoomOutMap"],te=["toggleHover"],ne=["resetViewMap"]):T?te=["hoverClosestPie"]:q?(te=["hoverClosestCartesian","hoverCompareCartesian"],ne=["resetViewSankey"]):te=["toggleHover"],v&&te.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Nie(r)||O)&&(te=[]),v&&!z&&(J=["zoomIn2d","zoomOut2d","autoScale2d"],ne[0]!=="resetViews"&&(ne=["resetScale2d"])),m?oe=["zoom3d","pan3d","orbitRotation","tableRotation"]:v&&!z||C?oe=["zoom2d","pan2d"]:D||E||_?oe=["pan2d"]:I&&(oe=["zoom2d"]),qie(r)&&oe.push("select2d","lasso2d");var fe=[],ve=function(we){fe.indexOf(we)===-1&&te.indexOf(we)!==-1&&fe.push(we)};if(Array.isArray(f)){for(var Me=[],Se=0;Se{"use strict";Sz.exports={moduleType:"component",name:"modebar",layoutAttributes:I4(),supplyLayoutDefaults:gz(),manage:Mz()}});var N4=me((e_e,kz)=>{"use strict";var Uie=ts().FROM_BL;kz.exports=function(t,r,i){i===void 0&&(i=Uie[t.constraintoward||"center"]);var a=[t.r2l(t.range[0]),t.r2l(t.range[1])],s=a[0]+(a[1]-a[0])*i;t.range=t._input.range=[t.l2r(s+(a[0]-s)*r),t.l2r(s+(a[1]-s)*r)],t.setScale()}});var hg=me(cg=>{"use strict";var Ld=Bt(),B4=Ky(),Nu=Xn().id2name,Vie=Ru(),Cz=N4(),Hie=i2(),Gie=Zi().ALMOST_EQUAL,Zie=ts().FROM_BL;cg.handleDefaults=function(e,t,r){var i=r.axIds,a=r.axHasImage,s=t._axisConstraintGroups=[],l=t._axisMatchGroups=[],f,h,v,m,_,T,S,C;for(f=0;fs?r.substr(s):i.substr(a))+l}function Wie(e,t){for(var r=t._size,i=r.h/r.w,a={},s=Object.keys(e),l=0;lGie*C&&!B)){for(s=0;soe&&Cete&&(te=Ce);var $e=(te-J)/(2*ne);_/=$e,J=h.l2r(J),te=h.l2r(te),h.range=h._input.range=H{"use strict";var rx=Ja(),os=la(),cl=eo(),$l=Bt(),V4=co(),H4=I2(),vg=Oa(),K0=bi(),Pz=jy(),qz=q4(),dg=Xi(),Sc=ts(),Nz=hg(),Xie=Nz.enforce,jie=Nz.clean,zz=Ky().doAutoRange,Bz="start",Jie="middle",Oz="end",Kie=Ao().zindexSeparator;ao.layoutStyles=function(e){return $l.syncOrAsync([cl.doAutoMargin,$ie],e)};function Qie(e,t,r){for(var i=0;i=e[1]||a[1]<=e[0])&&s[0]t[0])return!0}return!1}function $ie(e){var t=e._fullLayout,r=t._size,i=r.p,a=dg.list(e,"",!0),s,l,f,h,v,m;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(K0.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),ao.drawMainTitle(e),qz.manage(e),!t._has("cartesian"))return cl.previousPromises(e);function _(vt,de,ze){var pe=vt._lw/2;if(vt._id.charAt(0)==="x"){if(de){if(ze==="top")return de._offset-i-pe}else return r.t+r.h*(1-(vt.position||0))+pe%1;return de._offset+de._length+i+pe}if(de){if(ze==="right")return de._offset+de._length+i+pe}else return r.l+r.w*(vt.position||0)+pe%1;return de._offset-i-pe}for(s=0;s0){ane(e,s,v,h),f.attr({x:l,y:s,"text-anchor":i,dy:Fz(t.yanchor)}).call(V4.positionText,l,s);var m=(t.text.match(V4.BR_TAG_ALL)||[]).length;if(m){var _=Sc.LINE_SPACING*m+Sc.MID_SHIFT;t.y===0&&(_=-_),f.selectAll(".line").each(function(){var E=+this.getAttribute("dy").slice(0,-2)-_+"em";this.setAttribute("dy",E)})}var T=rx.select(e).selectAll(".gtitle-subtitle");if(T.node()){var S=f.node().getBBox(),C=S.y+S.height,D=C+Pz.SUBTITLE_PADDING_EM*t.subtitle.font.size;T.attr({x:l,y:D,"text-anchor":i,dy:Fz(t.yanchor)}).call(V4.positionText,l,D)}}}};function ene(e,t,r,i,a){var s=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=$l.isTopAnchor(t)?i:i-a,f=r==="b"?s-l:l;return $l.isTopAnchor(t)&&r==="t"||$l.isBottomAnchor(t)&&r==="b"?!1:f.5?"t":"b",l=e._fullLayout.margin[s],f=0;return t.yref==="paper"?f=r+t.pad.t+t.pad.b:t.yref==="container"&&(f=tne(s,i,a,e._fullLayout.height,r)+t.pad.t+t.pad.b),f>l?f:0}function ane(e,t,r,i){var a="title.automargin",s=e._fullLayout.title,l=s.y>.5?"t":"b",f={x:s.x,y:s.y,t:0,b:0},h={};s.yref==="paper"&&ene(e,s,l,t,i)?f[l]=r:s.yref==="container"&&(h[l]=r,e._fullLayout._reservedMargin[a]=h),cl.allowAutoMargin(e,a),cl.autoMargin(e,a,f)}function ine(e,t){var r=e.title,i=e._size,a=0;switch(t===Bz?a=r.pad.l:t===Oz&&(a=-r.pad.r),r.xref){case"paper":return i.l+i.w*r.x+a;case"container":default:return e.width*r.x+a}}function nne(e,t){var r=e.title,i=e._size,a=0;if(t==="0em"||!t?a=-r.pad.b:t===Sc.CAP_SHIFT+"em"&&(a=r.pad.t),r.y==="auto")return i.t/2;switch(r.yref){case"paper":return i.t+i.h-i.h*r.y+a;case"container":default:return e.height-e.height*r.y+a}}function Fz(e){return e==="top"?Sc.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Sc.MID_SHIFT+"em"}function one(e){var t=e.title,r=Jie;return $l.isRightAnchor(t)?r=Oz:$l.isLeftAnchor(t)&&(r=Bz),r}function sne(e){var t=e.title,r="0em";return $l.isTopAnchor(t)?r=Sc.CAP_SHIFT+"em":$l.isMiddleAnchor(t)&&(r=Sc.MID_SHIFT+"em"),r}ao.doTraceStyle=function(e){var t=e.calcdata,r=[],i;for(i=0;i{"use strict";var lne=Uh().readPaths,une=Y2(),Uz=Ph().clearOutlineControllers,G4=Oa(),Vz=bi(),fne=Ri().arrayEditor,Hz=Hh(),cne=Hz.getPathString;Zz.exports={draw:ix,drawOne:Gz,activateLastSelection:dne};function ix(e){var t=e._fullLayout;Uz(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var i=t._plots[r].selectionLayer;i&&i.selectAll("path").remove()}for(var a=0;a=0;E--){var I=l.append("path").attr(h).style("opacity",E?.1:v).call(G4.stroke,_).call(G4.fill,m).call(Vz.dashLine,E?"solid":S,E?4+T:T);if(hne(I,e,i),C){var B=fne(e.layout,"selections",i);I.style({cursor:"move"});var q={element:I.node(),plotinfo:a,gd:e,editHelpers:B,isActiveSelection:!0},z=lne(f,e);une(z,I,q)}else I.style("pointer-events",E?"all":"none");D[E]=I}var O=D[0],H=D[1];H.node().addEventListener("click",function(){return vne(e,O)})}}function hne(e,t,r){var i=r.xref+r.yref;Vz.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function vne(e,t){if(nx(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeSelectionIndex){Z4(e);return}e._fullLayout._activeSelectionIndex=i,e._fullLayout._deactivateSelection=Z4,ix(e)}}}function dne(e){if(nx(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=Z4,ix(e)}}function Z4(e){if(nx(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Uz(e),delete e._fullLayout._activeSelectionIndex,ix(e))}}});var Wz=me((i_e,Yz)=>{function pne(){var e,t=0,r=!1;function i(a,s){return e.list.push({type:a,data:s?JSON.parse(JSON.stringify(s)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(a,s){return i("check",{seg1:a,seg2:s})},segmentChop:function(a,s){return i("div_seg",{seg:a,pt:s}),i("chop",{seg:a,pt:s})},statusRemove:function(a){return i("pop_seg",{seg:a})},segmentUpdate:function(a){return i("seg_update",{seg:a})},segmentNew:function(a,s){return i("new_seg",{seg:a,primary:s})},segmentRemove:function(a){return i("rem_seg",{seg:a})},tempStatus:function(a,s,l){return i("temp_status",{seg:a,above:s,below:l})},rewind:function(a){return i("rewind",{seg:a})},status:function(a,s,l){return i("status",{seg:a,above:s,below:l})},vert:function(a){return a===r?e:(r=a,i("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),i("log",{txt:a})},reset:function(){return i("reset")},selected:function(a){return i("selected",{segs:a})},chainStart:function(a){return i("chain_start",{seg:a})},chainRemoveHead:function(a,s){return i("chain_rem_head",{index:a,pt:s})},chainRemoveTail:function(a,s){return i("chain_rem_tail",{index:a,pt:s})},chainNew:function(a,s){return i("chain_new",{pt1:a,pt2:s})},chainMatch:function(a){return i("chain_match",{index:a})},chainClose:function(a){return i("chain_close",{index:a})},chainAddHead:function(a,s){return i("chain_add_head",{index:a,pt:s})},chainAddTail:function(a,s){return i("chain_add_tail",{index:a,pt:s})},chainConnect:function(a,s){return i("chain_con",{index1:a,index2:s})},chainReverse:function(a){return i("chain_rev",{index:a})},chainJoin:function(a,s){return i("chain_join",{index1:a,index2:s})},done:function(){return i("done")}},e}Yz.exports=pne});var jz=me((n_e,Xz)=>{function mne(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,i,a){var s=i[0],l=i[1],f=a[0],h=a[1],v=r[0],m=r[1];return(f-s)*(m-l)-(h-l)*(v-s)>=-e},pointBetween:function(r,i,a){var s=r[1]-i[1],l=a[0]-i[0],f=r[0]-i[0],h=a[1]-i[1],v=f*l+s*h;if(v-e)},pointsSameX:function(r,i){return Math.abs(r[0]-i[0])e!=f-s>e&&(l-m)*(s-_)/(f-_)+m-a>e&&(h=!h),l=m,f=_}return h}};return t}Xz.exports=mne});var Kz=me((o_e,Jz)=>{var yne={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var i=e.root,a=e.root.next;a!==null;){if(r(a)){t.prev=a.prev,t.next=a,a.prev.next=t,a.prev=t;return}i=a,a=a.next}i.next=t,t.prev=i,t.next=null},findTransition:function(t){for(var r=e.root,i=e.root.next;i!==null&&!t(i);)r=i,i=i.next;return{before:r===e.root?null:r,after:i,insert:function(a){return a.prev=r,a.next=i,r.next=a,i!==null&&(i.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};Jz.exports=yne});var $z=me((s_e,Qz)=>{var pg=Kz();function gne(e,t,r){function i(C,D){return{id:r?r.segmentId():-1,start:C,end:D,myFill:{above:null,below:null},otherFill:null}}function a(C,D,E){return{id:r?r.segmentId():-1,start:C,end:D,myFill:{above:E.myFill.above,below:E.myFill.below},otherFill:null}}var s=pg.create();function l(C,D,E,I,B,q){var z=t.pointsCompare(D,B);return z!==0?z:t.pointsSame(E,q)?0:C!==I?C?1:-1:t.pointAboveOrOnLine(E,I?B:q,I?q:B)?1:-1}function f(C,D){s.insertBefore(C,function(E){var I=l(C.isStart,C.pt,D,E.isStart,E.pt,E.other.pt);return I<0})}function h(C,D){var E=pg.node({isStart:!0,pt:C.start,seg:C,primary:D,other:null,status:null});return f(E,C.end),E}function v(C,D,E){var I=pg.node({isStart:!1,pt:D.end,seg:D,primary:E,other:C,status:null});C.other=I,f(I,C.pt)}function m(C,D){var E=h(C,D);return v(E,C,D),E}function _(C,D){r&&r.segmentChop(C.seg,D),C.other.remove(),C.seg.end=D,C.other.pt=D,f(C.other,C.pt)}function T(C,D){var E=a(D,C.seg.end,C.seg);return _(C,D),m(E,C.primary)}function S(C,D){var E=pg.create();function I(Me,Se){var Ae=Me.seg.start,we=Me.seg.end,Te=Se.seg.start,Ce=Se.seg.end;return t.pointsCollinear(Ae,Te,Ce)?t.pointsCollinear(we,Te,Ce)||t.pointAboveOrOnLine(we,Te,Ce)?1:-1:t.pointAboveOrOnLine(Ae,Te,Ce)?1:-1}function B(Me){return E.findTransition(function(Se){var Ae=I(Me,Se.ev);return Ae>0})}function q(Me,Se){var Ae=Me.seg,we=Se.seg,Te=Ae.start,Ce=Ae.end,Le=we.start,$e=we.end;r&&r.checkIntersection(Ae,we);var lt=t.linesIntersect(Te,Ce,Le,$e);if(lt===!1){if(!t.pointsCollinear(Te,Ce,Le)||t.pointsSame(Te,$e)||t.pointsSame(Ce,Le))return!1;var it=t.pointsSame(Te,Le),gt=t.pointsSame(Ce,$e);if(it&>)return Se;var We=!it&&t.pointBetween(Te,Le,$e),Et=!gt&&t.pointBetween(Ce,Le,$e);if(it)return Et?T(Se,Ce):T(Me,$e),Se;We&&(gt||(Et?T(Se,Ce):T(Me,$e)),T(Se,Te))}else lt.alongA===0&&(lt.alongB===-1?T(Me,Le):lt.alongB===0?T(Me,lt.pt):lt.alongB===1&&T(Me,$e)),lt.alongB===0&&(lt.alongA===-1?T(Se,Te):lt.alongA===0?T(Se,lt.pt):lt.alongA===1&&T(Se,Ce));return!1}for(var z=[];!s.isEmpty();){var O=s.getHead();if(r&&r.vert(O.pt[0]),O.isStart){let Me=function(){if(V){var Se=q(O,V);if(Se)return Se}return W?q(O,W):!1};var ve=Me;r&&r.segmentNew(O.seg,O.primary);var H=B(O),V=H.before?H.before.ev:null,W=H.after?H.after.ev:null;r&&r.tempStatus(O.seg,V?V.seg:!1,W?W.seg:!1);var J=Me();if(J){if(e){var te;O.seg.myFill.below===null?te=!0:te=O.seg.myFill.above!==O.seg.myFill.below,te&&(J.seg.myFill.above=!J.seg.myFill.above)}else J.seg.otherFill=O.seg.myFill;r&&r.segmentUpdate(J.seg),O.other.remove(),O.remove()}if(s.getHead()!==O){r&&r.rewind(O.seg);continue}if(e){var te;O.seg.myFill.below===null?te=!0:te=O.seg.myFill.above!==O.seg.myFill.below,W?O.seg.myFill.below=W.seg.myFill.above:O.seg.myFill.below=C,te?O.seg.myFill.above=!O.seg.myFill.below:O.seg.myFill.above=O.seg.myFill.below}else if(O.seg.otherFill===null){var ne;W?O.primary===W.primary?ne=W.seg.otherFill.above:ne=W.seg.myFill.above:ne=O.primary?D:C,O.seg.otherFill={above:ne,below:ne}}r&&r.status(O.seg,V?V.seg:!1,W?W.seg:!1),O.other.status=H.insert(pg.node({ev:O}))}else{var oe=O.status;if(oe===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(E.exists(oe.prev)&&E.exists(oe.next)&&q(oe.prev.ev,oe.next.ev),r&&r.statusRemove(oe.ev.seg),oe.remove(),!O.primary){var fe=O.seg.myFill;O.seg.myFill=O.seg.otherFill,O.seg.otherFill=fe}z.push(O.seg)}s.getHead().remove()}return r&&r.done(),z}return e?{addRegion:function(C){for(var D,E=C[C.length-1],I=0;I{function _ne(e,t,r){var i=[],a=[];return e.forEach(function(s){var l=s.start,f=s.end;if(t.pointsSame(l,f)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(s);var h={index:0,matches_head:!1,matches_pt1:!1},v={index:0,matches_head:!1,matches_pt1:!1},m=h;function _(ve,Me,Se){return m.index=ve,m.matches_head=Me,m.matches_pt1=Se,m===h?(m=v,!1):(m=null,!0)}for(var T=0;T{function mg(e,t,r){var i=[];return e.forEach(function(a){var s=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);t[s]!==0&&i.push({id:r?r.segmentId():-1,start:a.start,end:a.end,myFill:{above:t[s]===1,below:t[s]===2},otherFill:null})}),r&&r.selected(i),i}var xne={union:function(e,t){return mg(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return mg(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return mg(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return mg(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return mg(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};rI.exports=xne});var nI=me((f_e,iI)=>{var bne={toPolygon:function(e,t){function r(s){if(s.length<=0)return e.segments({inverted:!1,regions:[]});function l(v){var m=v.slice(0,v.length-1);return e.segments({inverted:!1,regions:[m]})}for(var f=l(s[0]),h=1;h{var wne=Wz(),Tne=jz(),oI=$z(),Ane=tI(),yg=aI(),sI=nI(),eu=!1,gg=Tne(),Us;Us={buildLog:function(e){return e===!0?eu=wne():e===!1&&(eu=!1),eu===!1?!1:eu.list},epsilon:function(e){return gg.epsilon(e)},segments:function(e){var t=oI(!0,gg,eu);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=oI(!1,gg,eu);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:yg.union(e.combined,eu),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:yg.intersect(e.combined,eu),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:yg.difference(e.combined,eu),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:yg.differenceRev(e.combined,eu),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:yg.xor(e.combined,eu),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Ane(e.segments,gg,eu),inverted:e.inverted}},polygonFromGeoJSON:function(e){return sI.toPolygon(Us,e)},polygonToGeoJSON:function(e){return sI.fromPolygon(Us,gg,e)},union:function(e,t){return _g(e,t,Us.selectUnion)},intersect:function(e,t){return _g(e,t,Us.selectIntersect)},difference:function(e,t){return _g(e,t,Us.selectDifference)},differenceRev:function(e,t){return _g(e,t,Us.selectDifferenceRev)},xor:function(e,t){return _g(e,t,Us.selectXor)}};function _g(e,t,r){var i=Us.segments(e),a=Us.segments(t),s=Us.combine(i,a),l=r(s);return Us.polygon(l)}typeof window=="object"&&(window.PolyBool=Us);lI.exports=Us});var cI=me((h_e,fI)=>{fI.exports=function(t,r,i,a){var s=t[0],l=t[1],f=!1;i===void 0&&(i=0),a===void 0&&(a=r.length);for(var h=a-i,v=0,m=h-1;vl!=C>l&&s<(S-_)*(l-T)/(C-T)+_;D&&(f=!f)}return f}});var lx=me((v_e,hI)=>{"use strict";var W4=s_().dot,ox=Zi().BADNUM,sx=hI.exports={};sx.tester=function(t){var r=t.slice(),i=r[0][0],a=i,s=r[0][1],l=s,f;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),f=1;fa||I===ox||Il||D&&v(C))}function _(C,D){var E=C[0],I=C[1];if(E===ox||Ea||I===ox||Il)return!1;var B=r.length,q=r[0][0],z=r[0][1],O=0,H,V,W,J,te;for(H=1;HMath.max(V,q)||I>Math.max(W,z)))if(If||Math.abs(W4(_,v))>a)return!0;return!1};sx.filter=function(t,r){var i=[t[0]],a=0,s=0;function l(h){t.push(h);var v=i.length,m=a;i.splice(s+1);for(var _=m+1;_1){var f=t.pop();l(f)}return{addPt:l,raw:t,filtered:i}}});var dI=me((d_e,vI)=>{"use strict";vI.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var FI=me((p_e,RI)=>{"use strict";var pI=uI(),Mne=cI(),wg=la(),Sne=bi().dashStyle,xg=Oa(),kne=Rf(),Cne=bc().makeEventData,kg=kd(),Ene=kg.freeMode,Lne=kg.rectMode,Tg=kg.drawMode,K4=kg.openMode,Q4=kg.selectMode,mI=Hh(),yI=lg(),wI=Y2(),TI=Ph().clearOutline,AI=Uh(),X4=AI.handleEllipse,Dne=AI.readPaths,Pne=V2().newShapes,zne=b4(),Ine=Y4().activateLastSelection,fx=Bt(),Rne=fx.sorterAsc,MI=lx(),bg=b_(),tu=Xn().getFromId,Fne=I2(),qne=ax().redrawReglTraces,cx=dI(),qf=cx.MINSELECT,Nne=MI.filter,$4=MI.tester,e6=N2(),gI=e6.p2r,Bne=e6.axValue,One=e6.getTransform;function t6(e){return e.subplot!==void 0}function Une(e,t,r,i,a){var s=!t6(i),l=Ene(a),f=Lne(a),h=K4(a),v=Tg(a),m=Q4(a),_=a==="drawline",T=a==="drawcircle",S=_||T,C=i.gd,D=C._fullLayout,E=m&&D.newselection.mode==="immediate"&&s,I=D._zoomlayer,B=i.element.getBoundingClientRect(),q=i.plotinfo,z=One(q),O=t-B.left,H=r-B.top;D._calcInverseTransform(C);var V=fx.apply3DTransform(D._invTransform)(O,H);O=V[0],H=V[1];var W=D._invScaleX,J=D._invScaleY,te=O,ne=H,oe="M"+O+","+H,fe=i.xaxes[0],ve=i.yaxes[0],Me=fe._length,Se=ve._length,Ae=e.altKey&&!(Tg(a)&&h),we,Te,Ce,Le,$e,lt,it;kI(e,C,i),l&&(we=Nne([[O,H]],cx.BENDPX));var gt=I.selectAll("path.select-outline-"+q.id).data([1]),We=v?D.newshape:D.newselection;v&&(i.hasText=We.label.text||We.label.texttemplate);var Et=v&&!h?We.fillcolor:"rgba(0,0,0,0)",nt=We.line.color||(s?xg.contrast(C._fullLayout.plot_bgcolor):"#7f7f7f");gt.enter().append("path").attr("class","select-outline select-outline-"+q.id).style({opacity:v?We.opacity/2:1,"stroke-dasharray":Sne(We.line.dash,We.line.width),"stroke-width":We.line.width+"px","shape-rendering":"crispEdges"}).call(xg.stroke,nt).call(xg.fill,Et).attr("fill-rule","evenodd").classed("cursor-move",!!v).attr("transform",z).attr("d",oe+"Z");var wt=I.append("path").attr("class","zoombox-corners").style({fill:xg.background,stroke:xg.defaultLine,"stroke-width":1}).attr("transform",z).attr("d","M0,0Z");if(v&&i.hasText){var xt=I.select(".label-temp");xt.empty()&&(xt=I.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var vt=D._uid+cx.SELECTID,de=[],ze=hx(C,i.xaxes,i.yaxes,i.subplot);E&&!e.shiftKey&&(i._clearSubplotSelections=function(){if(s){var rt=fe._id,mt=ve._id;PI(C,rt,mt,ze);for(var Xe=(C.layout||{}).selections||[],Ft=[],Lt=!1,Tt=0;Tt=0){C._fullLayout._deactivateShape(C);return}if(!v){var Xe=D.clickmode;bg.done(vt).then(function(){if(bg.clear(vt),rt===2){for(gt.remove(),$e=0;$e-1&&SI(mt,C,i.xaxes,i.yaxes,i.subplot,i,gt),Xe==="event"&&Sg(C,void 0);kne.click(C,mt,q.id)}).catch(fx.error)}},i.doneFn=function(){wt.remove(),bg.done(vt).then(function(){bg.clear(vt),!E&&Le&&i.selectionDefs&&(Le.subtract=Ae,i.selectionDefs.push(Le),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,Ce)),(E||v)&&Ag(i,E),i.doneFnCompleted&&i.doneFnCompleted(de),m&&Sg(C,it)}).catch(fx.error)}}function SI(e,t,r,i,a,s,l){var f=t._hoverdata,h=t._fullLayout,v=h.clickmode,m=v.indexOf("event")>-1,_=[],T,S,C,D,E,I,B,q,z,O;if(Yne(f)){kI(e,t,s),T=hx(t,r,i,a);var H=Wne(f,T),V=H.pointNumbers.length>0;if(V?Xne(T,H):jne(T)&&(B=xI(H))){for(l&&l.remove(),O=0;O=0}function Zne(e){return e._fullLayout._activeSelectionIndex>=0}function Ag(e,t){var r=e.dragmode,i=e.plotinfo,a=e.gd;Gne(a)&&a._fullLayout._deactivateShape(a),Zne(a)&&a._fullLayout._deactivateSelection(a);var s=a._fullLayout,l=s._zoomlayer,f=Tg(r),h=Q4(r);if(f||h){var v=l.selectAll(".select-outline-"+i.id);if(v&&a._fullLayout._outlining){var m;f&&(m=Pne(v,e)),m&&wg.call("_guiRelayout",a,{shapes:m});var _;h&&!t6(e)&&(_=zne(v,e)),_&&(a._fullLayout._noEmitSelectedAtStart=!0,wg.call("_guiRelayout",a,{selections:_}).then(function(){t&&Ine(a)})),a._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function _I(e){return e._id}function hx(e,t,r,i){if(!e.calcdata)return[];var a=[],s=t.map(_I),l=r.map(_I),f,h,v;for(v=0;v0,s=a?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(s)>-1:!1}function Xne(e,t){var r=[],i,a,s,l;for(l=0;l0&&r.push(i);if(r.length===1&&(s=r[0]===t.searchInfo,s&&(a=t.searchInfo.cd[0].trace,a.selectedpoints.length===t.pointNumbers.length))){for(l=0;l1||(t+=i.selectedpoints.length,t>1)))return!1;return t===1}function Mg(e,t,r){var i;for(i=0;i-1&&t;if(!l&&t){var rt=bI(e,!0);if(rt.length){var mt=rt[0].xref,Xe=rt[0].yref;if(mt&&Xe){var Ft=zI(rt),Lt=II([tu(e,mt,"x"),tu(e,Xe,"y")]);Lt(de,Ft)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:pe&&Sg(e,de),T._reselect=!1}if(!l&&T._deselect){var Tt=T._deselect;f=Tt.xref,h=Tt.yref,Qne(f,h,m)||PI(e,f,h,i),pe&&(de.points.length?Sg(e,de):i6(e)),T._deselect=!1}return{eventData:de,selectionTesters:r}}function Kne(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";qI.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Cg=me((y_e,NI)=>{"use strict";NI.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Q0=me((__e,UI)=>{"use strict";var BI=n6(),OI=qo(),vx=Ao(),aoe=Ri().templatedArray,g_e=Cg();UI.exports=aoe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:OI({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:BI.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:BI.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",vx.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",vx.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",vx.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",vx.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:OI({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var dx=me((x_e,VI)=>{"use strict";VI.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var px=me((b_e,HI)=>{"use strict";HI.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var kc=me((w_e,jI)=>{"use strict";var GI=Nw().axisHoverFormat,ioe=nl().texttemplateAttrs,noe=nl().hovertemplateAttrs,ZI=xc(),ooe=qo(),soe=hc().dash,loe=hc().pattern,uoe=bi(),foe=dx(),mx=mn().extendFlat,coe=px();function YI(e){return{valType:"any",dflt:0,editType:"calc"}}function WI(e){return{valType:"any",editType:"calc"}}function XI(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}jI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:YI("x"),yperiod:YI("y"),xperiod0:WI("x0"),yperiod0:WI("y0"),xperiodalignment:XI("x"),yperiodalignment:XI("y"),xhoverformat:GI("x"),yhoverformat:GI("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:ioe({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:noe({},{keys:foe.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:mx({},soe,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:coe(!0),fillgradient:mx({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:loe,marker:mx({symbol:{valType:"enumerated",values:uoe.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:mx({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},ZI("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},ZI("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:ooe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var o6=me((A_e,QI)=>{"use strict";var JI=Q0(),KI=kc().line,hoe=hc().dash,yx=mn().extendFlat,voe=il().overrideAll,doe=Ri().templatedArray,T_e=Cg();QI.exports=voe(doe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:yx({},JI.xref,{}),yref:yx({},JI.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:KI.color,width:yx({},KI.width,{min:1,dflt:1}),dash:yx({},hoe,{dflt:"dot"})}}),"arraydraw","from-root")});var rR=me((M_e,tR)=>{"use strict";var $I=Bt(),gx=Xi(),poe=Wl(),moe=o6(),eR=Hh();tR.exports=function(t,r){poe(t,r,{name:"selections",handleItemDefaults:yoe});for(var i=r.selections,a=0;a{"use strict";aR.exports=function(t,r,i){i("newselection.mode");var a=i("newselection.line.width");a&&(i("newselection.line.color"),i("newselection.line.dash")),i("activeselection.fillcolor"),i("activeselection.opacity")}});var Eg=me((k_e,sR)=>{"use strict";var goe=la(),nR=Bt(),oR=Xn();sR.exports=function(t){return function(i,a){var s=i[t];if(Array.isArray(s))for(var l=goe.subplotsRegistry.cartesian,f=l.idRegex,h=a._subplots,v=h.xaxis,m=h.yaxis,_=h.cartesian,T=a._has("cartesian"),S=0;S{"use strict";var lR=Y4(),Lg=FI();uR.exports={moduleType:"component",name:"selections",layoutAttributes:o6(),supplyLayoutDefaults:rR(),supplyDrawNewSelectionDefaults:iR(),includeBasePlot:Eg()("selections"),draw:lR.draw,drawOne:lR.drawOne,reselect:Lg.reselect,prepSelect:Lg.prepSelect,clearOutline:Lg.clearOutline,clearSelectionsCache:Lg.clearSelectionsCache,selectOnClick:Lg.selectOnClick}});var LR=me((E_e,ER)=>{"use strict";var c6=Ja(),ru=Bt(),fR=ru.numberFormat,_oe=Tf(),xoe=Z5(),_x=la(),_R=ru.strTranslate,boe=co(),cR=Oa(),Zh=bi(),woe=Rf(),hR=Xi(),Toe=Oh(),Aoe=jl(),xR=kd(),xx=xR.selectingOrDrawing,Moe=xR.freeMode,Soe=ts().FROM_TL,koe=I2(),Coe=ax().redrawReglTraces,Eoe=eo(),l6=Xn().getFromId,Loe=Nf().prepSelect,Doe=Nf().clearOutline,Poe=Nf().selectOnClick,s6=N4(),h6=Ao(),vR=h6.MINDRAG,ys=h6.MINZOOM,dR=!0;function zoe(e,t,r,i,a,s,l,f){var h=e._fullLayout._zoomlayer,v=l+f==="nsew",m=(l+f).length===1,_,T,S,C,D,E,I,B,q,z,O,H,V,W,J,te,ne,oe,fe,ve,Me,Se,Ae;r+=t.yaxis._shift;function we(){if(_=t.xaxis,T=t.yaxis,q=_._length,z=T._length,I=_._offset,B=T._offset,S={},S[_._id]=_,C={},C[T._id]=T,l&&f)for(var Oe=t.overlays,yt=0;yt=0){qt._fullLayout._deactivateShape(qt);return}var Qt=qt._fullLayout.clickmode;if(f6(qt),Oe===2&&!m&&Ot(),v)Qt.indexOf("select")>-1&&Poe(yt,qt,D,E,t.id,Le),Qt.indexOf("event")>-1&&woe.click(qt,yt,t.id);else if(Oe===1&&m){var Vt=l?T:_,tr=l==="s"||f==="w"?0:1,ar=Vt._name+".range["+tr+"]",zr=Ioe(Vt,tr),lr="left",At="middle";if(Vt.fixedrange)return;l?(At=l==="n"?"top":"bottom",Vt.side==="right"&&(lr="right")):f==="e"&&(lr="right"),qt._context.showAxisRangeEntryBoxes&&c6.select(Ce).call(boe.makeEditable,{gd:qt,immediate:!0,background:qt._fullLayout.paper_bgcolor,text:String(zr),fill:Vt.tickfont?Vt.tickfont.color:"#444",horizontalAlign:lr,verticalAlign:At}).on("edit",function(Fe){var Ge=Vt.d2r(Fe);Ge!==void 0&&_x.call("_guiRelayout",qt,ar,Ge)})}}Aoe.init(Le);var it,gt,We,Et,nt,wt,xt,vt,de,ze;function pe(Oe,yt,qt){var Qt=Ce.getBoundingClientRect();it=yt-Qt.left,gt=qt-Qt.top,e._fullLayout._calcInverseTransform(e);var Vt=ru.apply3DTransform(e._fullLayout._invTransform)(it,gt);it=Vt[0],gt=Vt[1],We={l:it,r:it,w:0,t:gt,b:gt,h:0},Et=e._hmpixcount?e._hmlumcount/e._hmpixcount:_oe(e._fullLayout.plot_bgcolor).getLuminance(),nt="M0,0H"+q+"V"+z+"H0V0",wt=!1,xt="xy",ze=!1,vt=TR(h,Et,I,B,nt),de=AR(h,I,B)}function rt(Oe,yt){if(e._transitioningWithDuration)return!1;var qt=Math.max(0,Math.min(q,Se*Oe+it)),Qt=Math.max(0,Math.min(z,Ae*yt+gt)),Vt=Math.abs(qt-it),tr=Math.abs(Qt-gt);We.l=Math.min(it,qt),We.r=Math.max(it,qt),We.t=Math.min(gt,Qt),We.b=Math.max(gt,Qt);function ar(){xt="",We.r=We.l,We.t=We.b,de.attr("d","M0,0Z")}if(O.isSubplotConstrained)Vt>ys||tr>ys?(xt="xy",Vt/q>tr/z?(tr=Vt*z/q,gt>Qt?We.t=gt-tr:We.b=gt+tr):(Vt=tr*q/z,it>qt?We.l=it-Vt:We.r=it+Vt),de.attr("d",bx(We))):ar();else if(H.isSubplotConstrained)if(Vt>ys||tr>ys){xt="xy";var zr=Math.min(We.l/q,(z-We.b)/z),lr=Math.max(We.r/q,(z-We.t)/z);We.l=zr*q,We.r=lr*q,We.b=(1-zr)*z,We.t=(1-lr)*z,de.attr("d",bx(We))}else ar();else!W||tr0){var Fe;if(H.isSubplotConstrained||!V&&W.length===1){for(Fe=0;Fe1&&(ar.maxallowed!==void 0&&te===(ar.range[0]1&&(zr.maxallowed!==void 0&&ne===(zr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Foe(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function TR(e,t,r,i,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",_R(r,i)).attr("d",a+"Z")}function AR(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:cR.background,stroke:cR.defaultLine,"stroke-width":1,opacity:0}).attr("transform",_R(t,r)).attr("d","M0,0Z")}function MR(e,t,r,i,a,s){e.attr("d",i+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),SR(e,t,a,s)}function SR(e,t,r,i){r||(e.transition().style("fill",i>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function f6(e){c6.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function kR(e){dR&&e.data&&e._context.showTips&&(ru.notifier(ru._(e,"Double-click to zoom back out"),"long"),dR=!1)}function qoe(e,t){return"M"+(e.l-.5)+","+(t-ys-.5)+"h-3v"+(2*ys+1)+"h3ZM"+(e.r+.5)+","+(t-ys-.5)+"h3v"+(2*ys+1)+"h-3Z"}function Noe(e,t){return"M"+(t-ys-.5)+","+(e.t-.5)+"v-3h"+(2*ys+1)+"v3ZM"+(t-ys-.5)+","+(e.b+.5)+"v3h"+(2*ys+1)+"v-3Z"}function bx(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,ys)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function yR(e,t,r,i,a){for(var s=!1,l={},f={},h,v,m,_,T=(a||{}).xaHash,S=(a||{}).yaHash,C=0;C{"use strict";var Boe=Ja(),wx=Rf(),Ooe=jl(),Uoe=Oh(),Bu=LR().makeDragBox,io=Ao().DRAGGERSIZE;Tx.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Boe.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var i=Object.keys(r._plots||{}).sort(function(s,l){if((r._plots[s].mainplot&&!0)===(r._plots[l].mainplot&&!0)){var f=s.split("y"),h=l.split("y");return f[0]===h[0]?Number(f[1]||1)-Number(h[1]||1):Number(f[0]||1)-Number(h[0]||1)}return r._plots[s].mainplot?1:-1});i.forEach(function(s){var l=r._plots[s],f=l.xaxis,h=l.yaxis;if(!l.mainplot){var v=Bu(t,l,f._offset,h._offset,f._length,h._length,"ns","ew");v.onmousemove=function(T){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===s&&t._fullLayout._plots[s]&&wx.hover(t,T,s)},wx.hover(t,T,s),t._fullLayout._lasthover=v,t._fullLayout._hoversubplot=s},v.onmouseout=function(T){t._dragging||(t._fullLayout._hoversubplot=null,Ooe.unhover(t,T))},t._context.showAxisDragHandles&&(Bu(t,l,f._offset-io,h._offset-io,io,io,"n","w"),Bu(t,l,f._offset+f._length,h._offset-io,io,io,"n","e"),Bu(t,l,f._offset-io,h._offset+h._length,io,io,"s","w"),Bu(t,l,f._offset+f._length,h._offset+h._length,io,io,"s","e"))}if(t._context.showAxisDragHandles){if(s===f._mainSubplot){var m=f._mainLinePosition;f.side==="top"&&(m-=io),Bu(t,l,f._offset+f._length*.1,m,f._length*.8,io,"","ew"),Bu(t,l,f._offset,m,f._length*.1,io,"","w"),Bu(t,l,f._offset+f._length*.9,m,f._length*.1,io,"","e")}if(s===h._mainSubplot){var _=h._mainLinePosition;h.side!=="right"&&(_-=io),Bu(t,l,_,h._offset+h._length*.1,io,h._length*.8,"ns",""),Bu(t,l,_,h._offset+h._length*.9,io,h._length*.1,"s",""),Bu(t,l,_,h._offset,io,h._length*.1,"n","")}}});var a=r._hoverlayer.node();a.onmousemove=function(s){s.target=t._fullLayout._lasthover,wx.hover(t,s,r._hoversubplot)},a.onclick=function(s){s.target=t._fullLayout._lasthover,wx.click(t,s)},a.onmousedown=function(s){t._fullLayout._lasthover.onmousedown(s)},Tx.updateFx(t)}};Tx.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Uoe(t._draggers,r)}});var zR=me((D_e,PR)=>{"use strict";var DR=la();PR.exports=function(t){for(var r=DR.layoutArrayContainers,i=DR.layoutArrayRegexes,a=t.split("[")[0],s,l,f=0;f{"use strict";var Voe=cc(),d6=o_(),Dg=Th(),Hoe=uw().sorterAsc,p6=la();Pg.containerArrayMatch=zR();var Goe=Pg.isAddVal=function(t){return t==="add"||Voe(t)},IR=Pg.isRemoveVal=function(t){return t===null||t==="remove"};Pg.applyContainerArrayChanges=function(t,r,i,a,s){var l=r.astr,f=p6.getComponentMethod(l,"supplyLayoutDefaults"),h=p6.getComponentMethod(l,"draw"),v=p6.getComponentMethod(l,"drawOne"),m=a.replot||a.recalc||f===d6||h===d6,_=t.layout,T=t._fullLayout;if(i[""]){Object.keys(i).length>1&&Dg.warn("Full array edits are incompatible with other edits",l);var S=i[""][""];if(IR(S))r.set(null);else if(Array.isArray(S))r.set(S);else return Dg.warn("Unrecognized full array edit value",l,S),!0;return m?!1:(f(_,T),h(t),!0)}var C=Object.keys(i).map(Number).sort(Hoe),D=r.get(),E=D||[],I=s(T,l).get(),B=[],q=-1,z=E.length,O,H,V,W,J,te,ne,oe;for(O=0;OE.length-(ne?0:1)){Dg.warn("index out of range",l,V);continue}if(te!==void 0)J.length>1&&Dg.warn("Insertion & removal are incompatible with edits to the same index.",l,V),IR(te)?B.push(V):ne?(te==="add"&&(te={}),E.splice(V,0,te),I&&I.splice(V,0,{})):Dg.warn("Unrecognized full object edit value",l,V,te),q===-1&&(q=V);else for(H=0;H=0;O--)E.splice(B[O],1),I&&I.splice(B[O],1);if(E.length?D||r.set(E):r.set(null),m)return!1;if(f(_,T),v!==d6){var fe;if(q===-1)fe=C;else{for(z=Math.max(E.length,z),fe=[],O=0;O=q));O++)fe.push(V);for(O=q;O{"use strict";var BR=Da(),z_e=ew(),OR=la(),Vs=Bt(),zg=eo(),UR=Xn(),VR=Oa(),Ig=UR.cleanId,Zoe=UR.getFromTrace,m6=OR.traceIs;Ou.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Vs.log("Clearing previous rejected promises from queue."),e._promises=[]};Ou.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(zg.subplotsRegistry.cartesian||{}).attrRegex,a=(zg.subplotsRegistry.polar||{}).attrRegex,s=(zg.subplotsRegistry.ternary||{}).attrRegex,l=(zg.subplotsRegistry.gl3d||{}).attrRegex,f=Object.keys(e);for(t=0;t3?(E.x=1.02,E.xanchor="left"):E.x<-2&&(E.x=-.02,E.xanchor="right"),E.y>3?(E.y=1.02,E.yanchor="bottom"):E.y<-2&&(E.y=-.02,E.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),VR.clean(e),e.template&&e.template.layout&&Ou.cleanLayout(e.template.layout),e};function $0(e,t){var r=e[t],i=t.charAt(0);r&&r!=="paper"&&(e[t]=Ig(r,i,!0))}Ou.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}Ou.hasParent=function(e,t){for(var r=NR(t);r;){if(r in e)return!0;r=NR(r)}return!1};var Xoe=["x","y","z"];Ou.clearAxisTypes=function(e,t,r){for(var i=0;i{"use strict";var kx=Ja(),joe=Da(),Joe=ww(),pr=Bt(),Oi=pr.nestedProperty,_6=Oy(),gs=wk(),au=la(),Ix=M0(),ra=eo(),ss=Xi(),Koe=G5(),Qoe=Ru(),y6=bi(),$oe=Oa(),ese=v6().initInteractions,tse=zh(),rse=Nf().clearOutline,XR=rd().dfltConfig,Mx=RR(),Un=HR(),hi=ax(),Yh=il(),ase=Ao().AX_NAME_PATTERN,g6=0,GR=5;function ise(e,t,r,i){var a;if(e=pr.getGraphDiv(e),_6.init(e),pr.isPlainObject(t)){var s=t;t=s.data,r=s.layout,i=s.config,a=s.frames}var l=_6.triggerHandler(e,"plotly_beforeplot",[t,r,i]);if(l===!1)return Promise.reject();!t&&!r&&!pr.isPlotDiv(e)&&pr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function f(){if(a)return Ga.addFrames(e,a)}JR(e,i),r||(r={}),kx.select(e).classed("js-plotly-plot",!0),y6.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var h=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Un.cleanData(t),h?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||h)&&(e.layout=Un.cleanLayout(r)),ra.supplyDefaults(e);var v=e._fullLayout,m=v._has("cartesian");v._replotting=!0,(h||v._shouldCreateBgLayer)&&(kse(e),v._shouldCreateBgLayer&&delete v._shouldCreateBgLayer),y6.initGradients(e),y6.initPatterns(e),h&&ss.saveShowSpikeInitial(e);var _=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;_&&ra.doCalcdata(e);for(var T=0;T=e.data.length||a<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(a,i+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+r+" must be unique.")}}function KR(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),Ex(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Ex(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function use(e,t,r){var i,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),i=0;i=0&&m<_.length?_.splice(0,_.length-m):[];return[_,T]}var s=QR(e,t,r,i,a),l=Ga.redraw(e),f=[e,s.update,r,s.maxPoints];return gs.add(e,Ga.prependTraces,f,eF,arguments),l}function tF(e,t,r,i){e=pr.getGraphDiv(e);function a(h,v,m){var _,T;if(pr.isTypedArray(h))if(m<=0){var S=new h.constructor(0),C=$R(v,h);m<0?(_=C,T=S):(_=S,T=C)}else if(_=new h.constructor(m),T=new h.constructor(h.length+v.length-m),m===v.length)_.set(v),T.set(h);else if(m=0&&m<_.length?_.splice(m,_.length):[];return[_,T]}var s=QR(e,t,r,i,a),l=Ga.redraw(e),f=[e,s.update,r,s.maxPoints];return gs.add(e,Ga.extendTraces,f,tF,arguments),l}function rF(e,t,r){e=pr.getGraphDiv(e);var i=[],a=Ga.deleteTraces,s=rF,l=[e,i],f=[e,t],h,v;for(use(e,t,r),Array.isArray(t)||(t=[t]),t=t.map(function(m){return pr.extendFlat({},m)}),Un.cleanData(t),h=0;h0&&typeof W.parts[ne]!="string";)ne--;var oe=W.parts[ne],fe=W.parts[ne-1]+"."+oe,ve=W.parts.slice(0,ne).join("."),Me=Oi(e.layout,ve).get(),Se=Oi(i,ve).get(),Ae=W.get();if(J!==void 0){I[V]=J,B[V]=oe==="reverse"?J:Cc(Ae);var we=Ix.getLayoutValObject(i,W.parts);if(we&&we.impliedEdits&&J!==null)for(var Te in we.impliedEdits)q(pr.relativeAttr(V,Te),we.impliedEdits[Te]);if(["width","height"].indexOf(V)!==-1)if(J){q("autosize",null);var Ce=V==="height"?"width":"height";q(Ce,i[Ce])}else i[V]=e._initialAutoSize[V];else if(V==="autosize")q("width",J?null:i.width),q("height",J?null:i.height);else if(fe.match(oF))H(fe),Oi(i,ve+"._inputRange").set(null);else if(fe.match(sF)){H(fe),Oi(i,ve+"._inputRange").set(null);var Le=Oi(i,ve).get();Le._inputDomain&&(Le._input.domain=Le._inputDomain.slice())}else fe.match(vse)&&Oi(i,ve+"._inputDomain").set(null);if(oe==="type"){O=Me;var $e=Se.type==="linear"&&J==="log",lt=Se.type==="log"&&J==="linear";if($e||lt){if(!O||!O.range)q(ve+".autorange",!0);else if(Se.autorange)$e&&(O.range=O.range[1]>O.range[0]?[1,2]:[2,1]);else{var it=O.range[0],gt=O.range[1];$e?(it<=0&><=0&&q(ve+".autorange",!0),it<=0?it=gt/1e6:gt<=0&&(gt=it/1e6),q(ve+".range[0]",Math.log(it)/Math.LN10),q(ve+".range[1]",Math.log(gt)/Math.LN10)):(q(ve+".range[0]",Math.pow(10,it)),q(ve+".range[1]",Math.pow(10,gt)))}Array.isArray(i._subplots.polar)&&i._subplots.polar.length&&i[W.parts[0]]&&W.parts[1]==="radialaxis"&&delete i[W.parts[0]]._subplot.viewInitial["radialaxis.range"],au.getComponentMethod("annotations","convertCoords")(e,Se,J,q),au.getComponentMethod("images","convertCoords")(e,Se,J,q)}else q(ve+".autorange",!0),q(ve+".range",null);Oi(i,ve+"._inputRange").set(null)}else if(oe.match(ase)){var We=Oi(i,V).get(),Et=(J||{}).type;(!Et||Et==="-")&&(Et="linear"),au.getComponentMethod("annotations","convertCoords")(e,We,Et,q),au.getComponentMethod("images","convertCoords")(e,We,Et,q)}var nt=Mx.containerArrayMatch(V);if(nt){m=nt.array,_=nt.index;var wt=nt.property,xt=we||{editType:"calc"};_!==""&&wt===""&&(Mx.isAddVal(J)?B[V]=null:Mx.isRemoveVal(J)?B[V]=(Oi(r,m).get()||[])[_]:pr.warn("unrecognized full object value",t)),Yh.update(E,xt),v[m]||(v[m]={});var vt=v[m][_];vt||(vt=v[m][_]={}),vt[wt]=J,delete t[V]}else oe==="reverse"?(Me.range?Me.range.reverse():(q(ve+".autorange",!0),Me.range=[1,0]),Se.autorange?E.calc=!0:E.plot=!0):(V==="dragmode"&&(J===!1&&Ae!==!1||J!==!1&&Ae===!1)||i._has("scatter-like")&&i._has("regl")&&V==="dragmode"&&(J==="lasso"||J==="select")&&!(Ae==="lasso"||Ae==="select")?E.plot=!0:we?Yh.update(E,we):E.calc=!0,W.set(J))}}for(m in v){var de=Mx.applyContainerArrayChanges(e,s(r,m),v[m],E,s);de||(E.plot=!0)}for(var ze in z){O=ss.getFromId(e,ze);var pe=O&&O._constraintGroup;if(pe){E.calc=!0;for(var rt in pe)z[rt]||(ss.getFromId(e,rt)._constraintShrinkable=!0)}}(uF(e)||t.height||t.width)&&(E.plot=!0);var mt=i.shapes;for(_=0;_1;)if(i.pop(),r=Oi(t,i.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function mse(e,t){for(var r=0;r[Me,e._ev.listeners(Me)]);s=Ga.newPlot(e,t,r,i).then(()=>{for(let[Me,Se]of ve)Se.forEach(Ae=>e.on(Me,Ae));return Ga.react(e,t,r,i)})}else{e.data=t||[],Un.cleanData(e.data),e.layout=r||{},Un.cleanLayout(e.layout),gse(e.data,e.layout,f,h),ra.supplyDefaults(e,{skipUpdateCalc:!0});var T=e._fullData,S=e._fullLayout,C=S.datarevision===void 0,D=S.transition,E=bse(e,h,S,C,D),I=E.newDataRevision,B=xse(e,f,T,C,D,I);if(uF(e)&&(E.layoutReplot=!0),B.calc||E.calc){e.calcdata=void 0;for(var q=Object.getOwnPropertyNames(S),z=0;z(m||e.emit("plotly_react",{config:i,data:t,layout:r}),e))}function xse(e,t,r,i,a,s){var l=t.length===r.length;if(!a&&!l)return{fullReplot:!0,calc:!0};var f=Yh.traceFlags();f.arrays={},f.nChanges=0,f.nChangesAnim=0;var h,v;function m(S){var C=Ix.getTraceValObject(v,S);return!v._module.animatable&&C.anim&&(C.anim=!1),C}var _={getValObject:m,flags:f,immutable:i,transition:a,newDataRevision:s,gd:e},T={};for(h=0;h=a.length?a[0]:a[v]:a}function f(v){return Array.isArray(s)?v>=s.length?s[0]:s[v]:s}function h(v,m){var _=0;return function(){if(v&&++_===m)return v()}}return new Promise(function(v,m){function _(){if(i._frameQueue.length!==0){for(;i._frameQueue.length;){var oe=i._frameQueue.pop();oe.onInterrupt&&oe.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function T(oe){if(oe.length!==0){for(var fe=0;fei._timeToNext&&C()};oe()}var E=0;function I(oe){return Array.isArray(a)?E>=a.length?oe.transitionOpts=a[E]:oe.transitionOpts=a[0]:oe.transitionOpts=a,E++,oe}var B,q,z=[],O=t==null,H=Array.isArray(t),V=!O&&!H&&pr.isPlainObject(t);if(V)z.push({type:"object",data:I(pr.extendFlat({},t))});else if(O||["string","number"].indexOf(typeof t)!==-1)for(B=0;B0&&tete)&&ne.push(q);z=ne}}z.length>0?T(z):(e.emit("plotly_animated"),v())})}function Tse(e,t,r){if(e=pr.getGraphDiv(e),t==null)return Promise.resolve();if(!pr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var i,a,s,l,f=e._transitionData._frames,h=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var v=f.length+t.length*2,m=[],_={};for(i=t.length-1;i>=0;i--)if(pr.isPlainObject(t[i])){var T=t[i].name,S=(h[T]||_[T]||{}).name,C=t[i].name,D=h[S]||_[S];S&&C&&typeof C=="number"&&D&&g6W.index?-1:V.index=0;i--){if(a=m[i].frame,typeof a.name=="number"&&pr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;h[a.name="frame "+e._transitionData._counter++];);if(h[a.name]){for(s=0;s=0;r--)i=t[r],s.push({type:"delete",index:i}),l.unshift({type:"insert",index:i,value:a[i]});var f=ra.modifyFrames,h=ra.modifyFrames,v=[e,l],m=[e,s];return gs&&gs.add(e,f,v,h,m),ra.modifyFrames(e,s)}function Mse(e){e=pr.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return ra.cleanPlot([],{},r,t),ra.purge(e),_6.purge(e),t._container&&t._container.remove(),delete e._context,e}function Sse(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!pr.equalDomRects(r,t._lastBBox)){var i=t._invTransform=pr.inverseTransformMatrix(pr.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(i[0][0]*i[0][0]+i[0][1]*i[0][1]+i[0][2]*i[0][2]),t._invScaleY=Math.sqrt(i[1][0]*i[1][0]+i[1][1]*i[1][1]+i[1][2]*i[1][2]),t._lastBBox=r}}function kse(e){var t=kx.select(e),r=e._fullLayout;if(r._calcInverseTransform=Sse,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var i={};kx.selectAll("defs").each(function(){this.id&&(i[this.id.split("-")[1]]=1)}),r._uid=pr.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(tse.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var a=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=a.append("g").classed("imagelayer",!0),r._shapeLowerLayer=a.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var s=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=s.append("g").classed("imagelayer",!0),r._shapeUpperLayer=s.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Ga.animate=wse;Ga.addFrames=Tse;Ga.deleteFrames=Ase;Ga.addTraces=rF;Ga.deleteTraces=aF;Ga.extendTraces=eF;Ga.moveTraces=x6;Ga.prependTraces=tF;Ga.newPlot=lse;Ga._doPlot=ise;Ga.purge=Mse;Ga.react=_se;Ga.redraw=sse;Ga.relayout=Rg;Ga.restyle=Lx;Ga.setPlotConfig=nse;Ga.update=Px;Ga._guiRelayout=w6(Rg);Ga._guiRestyle=w6(Lx);Ga._guiUpdate=w6(Px);Ga._storeDirectGUIEdit=hse});var Dd=me(Bf=>{"use strict";var Cse=la();Bf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Bf.getRedrawFunc=function(e){return function(){Cse.getComponentMethod("colorbar","draw")(e)}};Bf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Bf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var fF=window.URL||window.webkitURL;Bf.createObjectURL=function(e){return fF.createObjectURL(e)};Bf.revokeObjectURL=function(e){return fF.revokeObjectURL(e)};Bf.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=Ese(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Bf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Ese(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),a=0;a{"use strict";var M6=Ja(),q_e=Bt(),Lse=bi(),Dse=Oa(),N_e=zh(),A6=/"/g,qg="TOBESTRIPPED",Pse=new RegExp('("'+qg+")|("+qg+'")',"g");function zse(e){var t=M6.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(i){return i==="<"?"<":i==="&rt;"?">":i.indexOf("<")!==-1||i.indexOf(">")!==-1?"":t.html(i).text()});return t.remove(),r}function Ise(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}cF.exports=function(t,r,i){var a=t._fullLayout,s=a._paper,l=a._toppaper,f=a.width,h=a.height,v;s.insert("rect",":first-child").call(Lse.setRect,0,0,f,h).call(Dse.fill,a.paper_bgcolor);var m=a._basePlotModules||[];for(v=0;v{"use strict";var Rse=Bt(),Fse=C_().EventEmitter,Ng=Dd();function qse(e){var t=e.emitter||new Fse,r=new Promise(function(i,a){var s=window.Image,l=e.svg,f=e.format||"png",h=e.canvas,v=e.scale||1,m=e.width||300,_=e.height||150,T=v*m,S=v*_,C=h.getContext("2d",{willReadFrequently:!0}),D=new s,E,I;f==="svg"||Rse.isSafari()?I=Ng.encodeSVG(l):(E=Ng.createBlob(l,"svg"),I=Ng.createObjectURL(E)),h.width=T,h.height=S,D.onload=function(){var B;switch(E=null,Ng.revokeObjectURL(I),f!=="svg"&&C.drawImage(D,0,0,T,S),f){case"jpeg":B=h.toDataURL("image/jpeg");break;case"png":B=h.toDataURL("image/png");break;case"webp":B=h.toDataURL("image/webp");break;case"svg":B=I;break;default:var q="Image format is not jpeg, png, svg or webp.";if(a(new Error(q)),!e.promise)return t.emit("error",q)}i(B),e.promise||t.emit("success",B)},D.onerror=function(B){if(E=null,Ng.revokeObjectURL(I),a(B),!e.promise)return t.emit("error",B)},D.src=I});return e.promise?r:t}hF.exports=qse});var k6=me((U_e,pF)=>{"use strict";var vF=Da(),dF=T6(),Nse=eo(),Of=Bt(),Bg=Dd(),Bse=Fx(),Ose=qx(),Use=G1().version,S6={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Vse(e,t){t=t||{};var r,i,a,s;Of.isPlainObject(e)?(r=e.data||[],i=e.layout||{},a=e.config||{},s={}):(e=Of.getGraphDiv(e),r=Of.extendDeep([],e.data),i=Of.extendDeep({},e.layout),a=e._context,s=e._fullLayout||{});function l(H){return!(H in t)||Of.validate(t[H],S6[H])}if(!l("width")&&t.width!==null||!l("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Of.join2(S6.format.values,", "," or ")+".");var f={};function h(H,V){return Of.coerce(t,f,S6,H,V)}var v=h("format"),m=h("width"),_=h("height"),T=h("scale"),S=h("setBackground"),C=h("imageDataOnly"),D=document.createElement("div");D.style.position="absolute",D.style.left="-5000px",document.body.appendChild(D);var E=Of.extendFlat({},i);m?E.width=m:t.width===null&&vF(s.width)&&(E.width=s.width),_?E.height=_:t.height===null&&vF(s.height)&&(E.height=s.height);var I=Of.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:S}),B=Bg.getRedrawFunc(D);function q(){return new Promise(function(H){setTimeout(H,Bg.getDelay(D._fullLayout))})}function z(){return new Promise(function(H,V){var W=Bse(D,v,T),J=D._fullLayout.width,te=D._fullLayout.height;function ne(){dF.purge(D),document.body.removeChild(D)}if(v==="full-json"){var oe=Nse.graphJson(D,!1,"keepdata","object",!0,!0);return oe.version=Use,oe=JSON.stringify(oe),ne(),H(C?oe:Bg.encodeJSON(oe))}if(ne(),v==="svg")return H(C?W:Bg.encodeSVG(W));var fe=document.createElement("canvas");fe.id=Of.randstr(),Ose({format:v,width:J,height:te,scale:T,canvas:fe,svg:W,promise:!0}).then(H).catch(V)})}function O(H){return C?H.replace(Bg.IMAGE_URL_PREFIX,""):H}return new Promise(function(H,V){dF.newPlot(D,r,E,I).then(B).then(q).then(z).then(function(W){H(O(W))}).catch(function(W){V(W)})})}pF.exports=Vse});var gF=me((V_e,yF)=>{"use strict";var iu=Bt(),Hse=eo(),Gse=M0(),Zse=rd().dfltConfig,Uu=iu.isPlainObject,zd=Array.isArray,C6=iu.isArrayOrTypedArray;yF.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=Gse.get(),a=[],s={_context:iu.extendFlat({},Zse)},l,f;zd(t)?(s.data=iu.extendDeep([],t),l=t):(s.data=[],l=[],a.push(no("array","data"))),Uu(r)?(s.layout=iu.extendDeep({},r),f=r):(s.layout={},f={},arguments.length>1&&a.push(no("object","layout"))),Hse.supplyDefaults(s);for(var h=s._fullData,v=l.length,m=0;m_.length&&i.push(no("unused",a,v.concat(_.length)));var I=_.length,B=Array.isArray(E);B&&(I=Math.min(I,E.length));var q,z,O,H,V;if(T.dimensions===2)for(z=0;z_[z].length&&i.push(no("unused",a,v.concat(z,_[z].length)));var W=_[z].length;for(q=0;q<(B?Math.min(W,E[z].length):W);q++)O=B?E[z][q]:E,H=m[z][q],V=_[z][q],iu.validate(H,O)?V!==H&&V!==+H&&i.push(no("dynamic",a,v.concat(z,q),H,V)):i.push(no("value",a,v.concat(z,q),H))}else i.push(no("array",a,v.concat(z),m[z]));else for(z=0;z{"use strict";var Qse=Bt(),Bx=Dd();function $se(e,t,r){var i=document.createElement("a"),a="download"in i,s=new Promise(function(l,f){var h,v;if(a)return h=Bx.createBlob(e,r),v=Bx.createObjectURL(h),i.href=v,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),Bx.revokeObjectURL(v),h=null,l(t);if(Qse.isSafari()){var m=r==="svg"?",":";base64,";return Bx.octetStream(m+encodeURIComponent(e)),l(t)}f(new Error("download error"))});return s}_F.exports=$se});var E6=me((Z_e,wF)=>{"use strict";var bF=Bt(),ele=k6(),tle=xF(),G_e=Dd();function rle(e,t){var r;return bF.isPlainObject(e)||(r=bF.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(i,a){r&&r._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var s=ele(e,t),l=t.filename||e.fn||"newplot";l+="."+t.format.replace("-","."),s.then(function(f){return r&&(r._snapshotInProgress=!1),tle(f,l,t.format)}).then(function(f){i(f)}).catch(function(f){r&&(r._snapshotInProgress=!1),a(f)})})}wF.exports=rle});var kF=me(L6=>{"use strict";var Hs=Bt(),Gs=Hs.isPlainObject,TF=M0(),AF=eo(),ale=ms(),MF=Ri(),SF=rd().dfltConfig;L6.makeTemplate=function(e){e=Hs.isPlainObject(e)?e:Hs.getGraphDiv(e),e=Hs.extendDeep({_context:SF},{data:e.data,layout:e.layout}),AF.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach(function(S){var C={};Og(S,C,nle.bind(null,S));var D=Hs.coerce(S,{},ale,"type"),E=i.data[D];E||(E=i.data[D]=[]),E.push(C)}),Og(r,i.layout,ile.bind(null,r)),delete i.layout.template;var a=r.template;if(Gs(a)){var s=a.layout,l,f,h,v,m,_;Gs(s)&&Ox(s,i.layout);var T=a.data;if(Gs(T)){for(f in i.data)if(h=T[f],Array.isArray(h)){for(m=i.data[f],_=m.length,v=h.length,l=0;l<_;l++)Ox(h[l%v],m[l]);for(l=_;lI?l.push({code:"unused",traceType:S,templateCount:E,dataCount:I}):I>E&&l.push({code:"reused",traceType:S,templateCount:E,dataCount:I})}}function B(q,z){for(var O in q)if(O.charAt(0)!=="_"){var H=q[O],V=nu(q,O,z);Gs(H)?(Array.isArray(q)&&H._template===!1&&H.templateitemname&&l.push({code:"missing",path:V,templateitemname:H.templateitemname}),B(H,V)):Array.isArray(H)&&ole(H)&&B(H,V)}}if(B({data:h,layout:f},""),l.length)return l.map(sle)};function ole(e){for(var t=0;t{"use strict";var Jn=T6();Ji._doPlot=Jn._doPlot;Ji.newPlot=Jn.newPlot;Ji.restyle=Jn.restyle;Ji.relayout=Jn.relayout;Ji.redraw=Jn.redraw;Ji.update=Jn.update;Ji._guiRestyle=Jn._guiRestyle;Ji._guiRelayout=Jn._guiRelayout;Ji._guiUpdate=Jn._guiUpdate;Ji._storeDirectGUIEdit=Jn._storeDirectGUIEdit;Ji.react=Jn.react;Ji.extendTraces=Jn.extendTraces;Ji.prependTraces=Jn.prependTraces;Ji.addTraces=Jn.addTraces;Ji.deleteTraces=Jn.deleteTraces;Ji.moveTraces=Jn.moveTraces;Ji.purge=Jn.purge;Ji.addFrames=Jn.addFrames;Ji.deleteFrames=Jn.deleteFrames;Ji.animate=Jn.animate;Ji.setPlotConfig=Jn.setPlotConfig;var lle=Dy().getGraphDiv,ule=J2().eraseActiveShape;Ji.deleteActiveShape=function(e){return ule(lle(e))};Ji.toImage=k6();Ji.validate=gF();Ji.downloadImage=E6();var CF=kF();Ji.makeTemplate=CF.makeTemplate;Ji.validateTemplate=CF.validateTemplate});var DF=me((X_e,LF)=>{"use strict";var D6=Bt(),fle=la();LF.exports=function(t,r,i,a){var s=a("x"),l=a("y"),f,h=fle.getComponentMethod("calendars","handleTraceDefaults");if(h(t,r,["x","y"],i),s){var v=D6.minRowLength(s);l?f=Math.min(v,D6.minRowLength(l)):(f=v,a("y0"),a("dy"))}else{if(!l)return 0;f=D6.minRowLength(l),a("x0"),a("dx")}return r._length=f,f}});var RF=me((j_e,IF)=>{"use strict";var PF=Bt().dateTick0,cle=Zi(),hle=cle.ONEWEEK;function zF(e,t){return e%hle===0?PF(t,1):PF(t,0)}IF.exports=function(t,r,i,a,s){if(s||(s={x:!0,y:!0}),s.x){var l=a("xperiod");l&&(a("xperiod0",zF(l,r.xcalendar)),a("xperiodalignment"))}if(s.y){var f=a("yperiod");f&&(a("yperiod0",zF(f,r.ycalendar)),a("yperiodalignment"))}}});var NF=me((J_e,qF)=>{"use strict";var FF=["orientation","groupnorm","stackgaps"];qF.exports=function(t,r,i,a){var s=i._scatterStackOpts,l=a("stackgroup");if(l){var f=r.xaxis+r.yaxis,h=s[f];h||(h=s[f]={});var v=h[l],m=!1;v?v.traces.push(r):(v=h[l]={traceIndices:[],traces:[r]},m=!0);for(var _={orientation:r.x&&!r.y?"h":"v"},T=0;T{"use strict";var BF=Oa(),OF=kf().hasColorscale,UF=hd(),vle=rs();VF.exports=function(t,r,i,a,s,l){var f=vle.isBubble(t),h=(t.line||{}).color,v;if(l=l||{},h&&(i=h),s("marker.symbol"),s("marker.opacity",f?.7:1),s("marker.size"),l.noAngle||(s("marker.angle"),l.noAngleRef||s("marker.angleref"),l.noStandOff||s("marker.standoff")),s("marker.color",i),OF(t,"marker")&&UF(t,r,a,s,{prefix:"marker.",cLetter:"c"}),l.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),l.noLine||(h&&!Array.isArray(h)&&r.marker.color!==h?v=h:f?v=BF.background:v=BF.defaultLine,s("marker.line.color",v),OF(t,"marker.line")&&UF(t,r,a,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",f?1:0)),f&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),l.gradient){var m=s("marker.gradient.type");m!=="none"&&s("marker.gradient.color")}}});var z6=me((Q_e,HF)=>{"use strict";var dle=Bt().isArrayOrTypedArray,ple=kf().hasColorscale,mle=hd();HF.exports=function(t,r,i,a,s,l){l||(l={});var f=(t.marker||{}).color;if(f&&f._inputArray&&(f=f._inputArray),s("line.color",i),ple(t,"line"))mle(t,r,a,s,{prefix:"line.",cLetter:"c"});else{var h=(dle(f)?!1:f)||i;s("line.color",h)}s("line.width"),l.noDash||s("line.dash"),l.backoff&&s("line.backoff")}});var ZF=me(($_e,GF)=>{"use strict";GF.exports=function(t,r,i){var a=i("line.shape");a==="spline"&&i("line.smoothing")}});var I6=me((e2e,YF)=>{"use strict";var yle=Bt();YF.exports=function(e,t,r,i,a){a=a||{},i("textposition"),yle.coerceFont(i,"textfont",a.font||r.font,a),a.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var R6=me((t2e,XF)=>{"use strict";var Vx=Oa(),WF=Bt().isArrayOrTypedArray;function gle(e){for(var t=Vx.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var jF=Bt(),_le=la(),xle=kc(),ble=dx(),em=rs(),wle=DF(),Tle=RF(),Ale=NF(),Mle=P6(),Sle=z6(),JF=ZF(),kle=I6(),Cle=R6(),Ele=Bt().coercePattern;KF.exports=function(t,r,i,a){function s(S,C){return jF.coerce(t,r,xle,S,C)}var l=wle(t,r,a,s);if(l||(r.visible=!1),!!r.visible){Tle(t,r,a,s),s("xhoverformat"),s("yhoverformat"),s("zorder");var f=Ale(t,r,a,s);a.scattermode==="group"&&r.orientation===void 0&&s("orientation","v");var h=!f&&l{"use strict";var Lle=hg().getAxisGroup;$F.exports=function(t,r,i,a,s){var l=r.orientation,f=r[{v:"x",h:"y"}[l]+"axis"],h=Lle(i,f)+l,v=i._alignmentOpts||{},m=a("alignmentgroup"),_=v[h];_||(_=v[h]={});var T=_[m];T?T.traces.push(r):T=_[m]={traces:[r],alignmentIndex:Object.keys(_).length,offsetGroups:{}};var S=a("offsetgroup")||"",C=T.offsetGroups,D=C[S];r._offsetIndex=0,(s!=="group"||S)&&(D||(D=C[S]={offsetIndex:Object.keys(C).length}),r._offsetIndex=D.offsetIndex)}});var rq=me((i2e,tq)=>{"use strict";var Dle=Bt(),Ple=eq(),zle=kc();tq.exports=function(t,r){var i,a,s,l=r.scattermode;function f(T){return Dle.coerce(a._input,a,zle,T)}if(r.scattermode==="group")for(s=0;s=0;m--){var _=t[m];if(_.type==="scatter"&&_.xaxis===h.xaxis&&_.yaxis===h.yaxis){_.opacity=void 0;break}}}}}});var iq=me((n2e,aq)=>{"use strict";var Ile=Bt(),Rle=z_();aq.exports=function(e,t){function r(a,s){return Ile.coerce(e,t,Rle,a,s)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var sq=me((o2e,oq)=>{"use strict";var Fle=Da(),nq=Bt(),qle=nq.dateTime2ms,Hx=nq.incrementMonth,Nle=Zi(),Ble=Nle.ONEAVGMONTH;oq.exports=function(t,r,i,a){if(r.type!=="date")return{vals:a};var s=t[i+"periodalignment"];if(!s)return{vals:a};var l=t[i+"period"],f;if(Fle(l)){if(l=+l,l<=0)return{vals:a}}else if(typeof l=="string"&&l.charAt(0)==="M"){var h=+l.substring(1);if(h>0&&Math.round(h)===h)f=h;else return{vals:a}}for(var v=r.calendar,m=s==="start",_=s==="end",T=t[i+"period0"],S=qle(T,v)||0,C=[],D=[],E=[],I=a.length,B=0;Bq;)H=Hx(H,-f,v);for(;H<=q;)H=Hx(H,f,v);O=Hx(H,-f,v)}else{for(z=Math.round((q-S)/l),H=S+z*l;H>q;)H-=l;for(;H<=q;)H+=l;O=H-l}C[B]=m?O:_?H:(O+H)/2,D[B]=O,E[B]=H}return{vals:C,starts:D,ends:E}}});var N6=me((s2e,uq)=>{"use strict";var F6=kf().hasColorscale,q6=Yy(),lq=rs();uq.exports=function(t,r){lq.hasLines(r)&&F6(r,"line")&&q6(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),lq.hasMarkers(r)&&(F6(r,"marker")&&q6(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),F6(r,"marker.line")&&q6(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Ug=me((l2e,fq)=>{"use strict";var yn=Bt();fq.exports=function(t,r){for(var i=0;i{"use strict";var cq=Bt();hq.exports=function(t,r){cq.isArrayOrTypedArray(r.selectedpoints)&&cq.tagSelected(t,r)}});var H6=me((f2e,_q)=>{"use strict";var vq=Da(),O6=Bt(),Vg=Xi(),dq=sq(),B6=Zi().BADNUM,U6=rs(),Ole=N6(),Ule=Ug(),Vle=Gx();function Hle(e,t){var r=e._fullLayout,i=t._xA=Vg.getFromId(e,t.xaxis||"x","x"),a=t._yA=Vg.getFromId(e,t.yaxis||"y","y"),s=i.makeCalcdata(t,"x"),l=a.makeCalcdata(t,"y"),f=dq(t,i,"x",s),h=dq(t,a,"y",l),v=f.vals,m=h.vals,_=t._length,T=new Array(_),S=t.ids,C=V6(t,r,i,a),D=!1,E,I,B,q,z,O;yq(r,t);var H="x",V="y",W;if(C)O6.pushUnique(C.traceIndices,t.index),E=C.orientation==="v",E?(V="s",W="x"):(H="s",W="y"),z=C.stackgaps==="interpolate";else{var J=mq(t,_);pq(e,t,i,a,v,m,J)}var te=!!t.xperiodalignment,ne=!!t.yperiodalignment;for(I=0;I<_;I++){var oe=T[I]={},fe=vq(v[I]),ve=vq(m[I]);fe&&ve?(oe[H]=v[I],oe[V]=m[I],te&&(oe.orig_x=s[I],oe.xEnd=f.ends[I],oe.xStart=f.starts[I]),ne&&(oe.orig_y=l[I],oe.yEnd=h.ends[I],oe.yStart=h.starts[I])):C&&(E?fe:ve)?(oe[W]=E?v[I]:m[I],oe.gap=!0,z?(oe.s=B6,D=!0):oe.s=0):oe[H]=oe[V]=B6,S&&(oe.id=String(S[I]))}if(Ule(T,t),Ole(e,t),Vle(T,t),C){for(I=0;II&&T[q].gap;)q--;for(O=T[q].s,B=T.length-1;B>q;B--)T[B].s=O;for(;I{"use strict";xq.exports=Zx;var Gle=Bt().distinctVals;function Zx(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,i=t.posAxis._id.charAt(0),a=[],s=0;s{"use strict";var ou=Da(),Wh=Bt().isArrayOrTypedArray,tm=Zi().BADNUM,Zle=la(),Hg=Xi(),Yle=hg().getAxisGroup,Yx=bq();function Wle(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,f=[],h=[],v=0;vh+l||!ou(f))}for(var m=0;m{"use strict";var kq=H6(),Cq=Sq().setGroupPositions;function nue(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,f=[],h=[],v=0;vJ[m]&&m{"use strict";var sue=bi(),Iq=Zi(),Gg=Iq.BADNUM,Rq=Iq.LOG_CLIP,Dq=Rq+.5,Pq=Rq-.5,Wx=Bt(),lue=Wx.segmentsIntersect,zq=Wx.constrain,j6=dx();Fq.exports=function(t,r){var i=r.trace||{},a=r.xaxis,s=r.yaxis,l=a.type==="log",f=s.type==="log",h=a._length,v=s._length,m=r.backoff,_=i.marker,T=r.connectGaps,S=r.baseTolerance,C=r.shape,D=C==="linear",E=i.fill&&i.fill!=="none",I=[],B=j6.minTolerance,q=t.length,z=new Array(q),O=0,H,V,W,J,te,ne,oe,fe,ve,Me,Se,Ae,we,Te,Ce,Le;function $e(At){var Fe=t[At];if(!Fe)return!1;var Ge=r.linearized?a.l2p(Fe.x):a.c2p(Fe.x),bt=r.linearized?s.l2p(Fe.y):s.c2p(Fe.y);if(Ge===Gg){if(l&&(Ge=a.c2p(Fe.x,!0)),Ge===Gg)return!1;f&&bt===Gg&&(Ge*=Math.abs(a._m*v*(a._m>0?Dq:Pq)/(s._m*h*(s._m>0?Dq:Pq)))),Ge*=1e3}if(bt===Gg){if(f&&(bt=s.c2p(Fe.y,!0)),bt===Gg)return!1;bt*=1e3}return[Ge,bt]}function lt(At,Fe,Ge,bt){var dt=Ge-At,gr=bt-Fe,xr=.5-At,mr=.5-Fe,Hr=dt*dt+gr*gr,pa=dt*xr+gr*mr;if(pa>0&&pa1||Math.abs(xr.y-Ge[0][1])>1)&&(xr=[xr.x,xr.y],bt&&Et(xr,At)xt||At[1]de)return[zq(At[0],wt,xt),zq(At[1],vt,de)]}function Gt(At,Fe){if(At[0]===Fe[0]&&(At[0]===wt||At[0]===xt)||At[1]===Fe[1]&&(At[1]===vt||At[1]===de))return!0}function Ct(At,Fe){var Ge=[],bt=It(At),dt=It(Fe);return bt&&dt&&Gt(bt,dt)||(bt&&Ge.push(bt),dt&&Ge.push(dt)),Ge}function Mt(At,Fe,Ge){return function(bt,dt){var gr=It(bt),xr=It(dt),mr=[];if(gr&&xr&&Gt(gr,xr))return mr;gr&&mr.push(gr),xr&&mr.push(xr);var Hr=2*Wx.constrain((bt[At]+dt[At])/2,Fe,Ge)-((gr||bt)[At]+(xr||dt)[At]);if(Hr){var pa;gr&&xr?pa=Hr>0==gr[At]>xr[At]?gr:xr:pa=gr||xr,pa[At]+=Hr}return mr}}var Ut;C==="linear"||C==="spline"?Ut=Tt:C==="hv"||C==="vh"?Ut=Ct:C==="hvh"?Ut=Mt(0,wt,xt):C==="vhv"&&(Ut=Mt(1,vt,de));function Ot(At,Fe){var Ge=Fe[0]-At[0],bt=(Fe[1]-At[1])/Ge,dt=(At[1]*Fe[0]-Fe[1]*At[0])/Ge;return dt>0?[bt>0?wt:xt,de]:[bt>0?xt:wt,vt]}function Be(At){var Fe=At[0],Ge=At[1],bt=Fe===z[O-1][0],dt=Ge===z[O-1][1];if(!(bt&&dt))if(O>1){var gr=Fe===z[O-2][0],xr=Ge===z[O-2][1];bt&&(Fe===wt||Fe===xt)&&gr?xr?O--:z[O-1]=At:dt&&(Ge===vt||Ge===de)&&xr?gr?O--:z[O-1]=At:z[O++]=At}else z[O++]=At}function ft(At){z[O-1][0]!==At[0]&&z[O-1][1]!==At[1]&&Be([mt,Xe]),Be(At),Ft=null,mt=Xe=0}var or=Wx.isArrayOrTypedArray(_);function Cr(At){if(At&&m&&(At.i=H,At.d=t,At.trace=i,At.marker=or?_[At.i]:_,At.backoff=m),it=At[0]/h,gt=At[1]/v,pe=At[0]xt?xt:0,rt=At[1]de?de:0,pe||rt){if(!O)z[O++]=[pe||At[0],rt||At[1]];else if(Ft){var Fe=Ut(Ft,At);Fe.length>1&&(ft(Fe[0]),z[O++]=Fe[1])}else Lt=Ut(z[O-1],At)[0],z[O++]=Lt;var Ge=z[O-1];pe&&rt&&(Ge[0]!==pe||Ge[1]!==rt)?(Ft&&(mt!==pe&&Xe!==rt?Be(mt&&Xe?Ot(Ft,At):[mt||pe,Xe||rt]):mt&&Xe&&Be([mt,Xe])),Be([pe,rt])):mt-pe&&Xe-rt&&Be([pe||mt,rt||Xe]),Ft=At,mt=pe,Xe=rt}else Ft&&ft(Ut(Ft,At)[0]),z[O++]=At}for(H=0;HWe(ne,Sr))break;W=ne,we=ve[0]*fe[0]+ve[1]*fe[1],we>Se?(Se=we,J=ne,oe=!1):we=t.length||!ne)break;Cr(ne),V=ne}}Ft&&Be([mt||Ft[0],Xe||Ft[1]]),I.push(z.slice(0,O))}var Oe=C.slice(C.length-1);if(m&&Oe!=="h"&&Oe!=="v"){for(var yt=!1,qt=-1,Qt=[],Vt=0;Vt{"use strict";var Nq={tonextx:1,tonexty:1,tonext:1};Bq.exports=function(t,r,i){var a,s,l,f,h,v={},m=!1,_=-1,T=0,S=-1;for(s=0;s=0?h=S:(h=S=T,T++),h<_&&(m=!0),a._groupIndex=_=h;var C=i.slice();m&&C.sort(function(E,I){var B=E[0].trace,q=I[0].trace;return B._groupIndex-q._groupIndex||B.index-q.index});var D={};for(s=0;s{"use strict";var Vu=Ja(),uue=la(),Zg=Bt(),am=Zg.ensureSingle,Vq=Zg.identity,gn=bi(),im=rs(),fue=qq(),cue=Oq(),Xx=lx().tester;Hq.exports=function(t,r,i,a,s,l){var f,h,v=!s,m=!!s&&s.duration>0,_=cue(t,r,i);if(f=a.selectAll("g.trace").data(_,function(S){return S[0].trace.uid}),f.enter().append("g").attr("class",function(S){return"trace scatter trace"+S[0].trace.uid}).style("stroke-miterlimit",2),f.order(),hue(t,f,r),m){l&&(h=l());var T=Vu.transition().duration(s.duration).ease(s.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()});T.each(function(){a.selectAll("g.trace").each(function(S,C){Uq(t,C,r,S,_,this,s)})})}else f.each(function(S,C){Uq(t,C,r,S,_,this,s)});v&&f.exit().remove(),a.selectAll("path:not([d])").remove()};function hue(e,t,r){t.each(function(i){var a=am(Vu.select(this),"g","fills");gn.setClipUrl(a,r.layerClipId,e);var s=i[0].trace,l=[];s._ownfill&&l.push("_ownFill"),s._nexttrace&&l.push("_nextFill");var f=a.selectAll("g").data(l,Vq);f.enter().append("g"),f.exit().each(function(h){s[h]=null}).remove(),f.order().each(function(h){s[h]=am(Vu.select(this),"path","js-fill")})})}function Uq(e,t,r,i,a,s,l){var f=e._context.staticPlot,h;vue(e,t,r,i,a);var v=!!l&&l.duration>0;function m(Mt){return v?Mt.transition():Mt}var _=r.xaxis,T=r.yaxis,S=i[0].trace,C=S.line,D=Vu.select(s),E=am(D,"g","errorbars"),I=am(D,"g","lines"),B=am(D,"g","points"),q=am(D,"g","text");if(uue.getComponentMethod("errorbars","plot")(e,E,r,l),S.visible!==!0)return;m(D).style("opacity",S.opacity);var z,O,H=S.fill.charAt(S.fill.length-1);H!=="x"&&H!=="y"&&(H="");var V,W;H==="y"?(V=1,W=T.c2p(0,!0)):H==="x"&&(V=0,W=_.c2p(0,!0)),i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=D;var J="",te=[],ne=S._prevtrace,oe=null,fe=null;ne&&(J=ne._prevRevpath||"",O=ne._nextFill,te=ne._ownPolygons,oe=ne._fillsegments,fe=ne._fillElement);var ve,Me,Se="",Ae="",we,Te,Ce,Le,$e,lt,it=[];S._polygons=[];var gt=[],We=[],Et=Zg.noop;if(z=S._ownFill,im.hasLines(S)||S.fill!=="none"){O&&O.datum(i),["hv","vh","hvh","vhv"].indexOf(C.shape)!==-1?(we=gn.steps(C.shape),Te=gn.steps(C.shape.split("").reverse().join(""))):C.shape==="spline"?we=Te=function(Mt){var Ut=Mt[Mt.length-1];return Mt.length>1&&Mt[0][0]===Ut[0]&&Mt[0][1]===Ut[1]?gn.smoothclosed(Mt.slice(1),C.smoothing):gn.smoothopen(Mt,C.smoothing)}:we=Te=function(Mt){return"M"+Mt.join("L")},Ce=function(Mt){return Te(Mt.reverse())},We=fue(i,{xaxis:_,yaxis:T,trace:S,connectGaps:S.connectgaps,baseTolerance:Math.max(C.width||1,3)/4,shape:C.shape,backoff:C.backoff,simplify:C.simplify,fill:S.fill}),gt=new Array(We.length);var nt=0;for(h=0;h=f[0]&&D.x<=f[1]&&D.y>=h[0]&&D.y<=h[1]}),T=Math.ceil(_.length/m),S=0;a.forEach(function(D,E){var I=D[0].trace;im.hasMarkers(I)&&I.marker.maxdisplayed>0&&E{"use strict";Zq.exports={container:"marker",min:"cmin",max:"cmax"}});var Wq=me((g2e,Yq)=>{"use strict";var jx=Xi();Yq.exports=function(t,r,i){var a={},s={_fullLayout:i},l=jx.getFromTrace(s,r,"x"),f=jx.getFromTrace(s,r,"y"),h=t.orig_x;h===void 0&&(h=t.x);var v=t.orig_y;return v===void 0&&(v=t.y),a.xLabel=jx.tickText(l,l.c2l(h),!0).text,a.yLabel=jx.tickText(f,f.c2l(v),!0).text,a}});var eT=me((_2e,Xq)=>{"use strict";var K6=Ja(),nm=bi(),due=la();function pue(e){var t=K6.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var i=K6.select(this),a=r.trace||r[0].trace;Q6(i,a,e)}),t.selectAll("g.text").each(function(r){var i=K6.select(this),a=r.trace||r[0].trace;$6(i,a,e)}),t.selectAll("g.trace path.js-line").call(nm.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(nm.fillGroupStyle,e,!1),due.getComponentMethod("errorbars","style")(t)}function Q6(e,t,r){nm.pointStyle(e.selectAll("path.point"),t,r)}function $6(e,t,r){nm.textPointStyle(e.selectAll("text"),t,r)}function mue(e,t,r){var i=t[0].trace;i.selectedpoints?(nm.selectedPointStyle(r.selectAll("path.point"),i),nm.selectedTextStyle(r.selectAll("text"),i)):(Q6(r,i,e),$6(r,i,e))}Xq.exports={style:pue,stylePoints:Q6,styleText:$6,styleOnSelect:mue}});var tT=me((x2e,jq)=>{"use strict";var om=Oa(),yue=rs();jq.exports=function(t,r){var i,a;if(t.mode==="lines")return i=t.line.color,i&&om.opacity(i)?i:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var s=r.mcc||(t.marker||{}).color,l=r.mlcc||((t.marker||{}).line||{}).color;return a=s&&om.opacity(s)?s:l&&om.opacity(l)&&(r.mlw||((t.marker||{}).line||{}).width)?l:"",a?om.opacity(a)<.3?om.addOpacity(a,.3):a:(i=(t.line||{}).color,i&&om.opacity(i)&&yue.hasLines(t)&&t.line.width?i:t.fillcolor)}});var Qq=me((b2e,Kq)=>{"use strict";var Jx=Bt(),Jq=Rf(),gue=la(),_ue=tT(),rT=Oa(),xue=Jx.fillText;Kq.exports=function(t,r,i,a){var s=t.cd,l=s[0].trace,f=t.xa,h=t.ya,v=f.c2p(r),m=h.c2p(i),_=[v,m],T=l.hoveron||"",S=l.mode.indexOf("markers")!==-1?3:.5,C=!!l.xperiodalignment,D=!!l.yperiodalignment;if(T.indexOf("points")!==-1){var E=function(Ae){if(C){var we=f.c2p(Ae.xStart),Te=f.c2p(Ae.xEnd);return v>=Math.min(we,Te)&&v<=Math.max(we,Te)?0:1/0}var Ce=Math.max(3,Ae.mrc||0),Le=1-1/Ce,$e=Math.abs(f.c2p(Ae.x)-v);return $e=Math.min(we,Te)&&m<=Math.max(we,Te)?0:1/0}var Ce=Math.max(3,Ae.mrc||0),Le=1-1/Ce,$e=Math.abs(h.c2p(Ae.y)-m);return $eit!=de>=it&&(wt=Et[We-1][0],xt=Et[We][0],de-vt&&(nt=wt+(xt-wt)*(it-vt)/(de-vt),Ce=Math.min(Ce,nt),Le=Math.max(Le,nt)));return Ce=Math.max(Ce,0),Le=Math.min(Le,f._length),{x0:Ce,x1:Le,y0:it,y1:it}}if(T.indexOf("fills")!==-1&&l._fillElement){var ve=oe(l._fillElement)&&!oe(l._fillExclusionElement);if(ve){var Me=fe(l._polygons);Me===null&&(Me={x0:_[0],x1:_[0],y0:_[1],y1:_[1]});var Se=rT.defaultLine;return rT.opacity(l.fillcolor)?Se=l.fillcolor:rT.opacity((l.line||{}).color)&&(Se=l.line.color),Jx.extendFlat(t,{distance:t.maxHoverDistance,x0:Me.x0,x1:Me.x1,y0:Me.y0,y1:Me.y1,color:Se,hovertemplate:!1}),delete t.index,l.text&&!Jx.isArrayOrTypedArray(l.text)?t.text=String(l.text):t.text=l.name,[t]}}}});var tN=me((w2e,eN)=>{"use strict";var $q=rs();eN.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f=i[0].trace,h,v,m,_,T=!$q.hasMarkers(f)&&!$q.hasText(f);if(T)return[];if(r===!1)for(h=0;h{"use strict";rN.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var sN=me((A2e,oN)=>{"use strict";var Yg=la().traceIs,aT=A5();oN.exports=function(t,r,i,a){i("autotypenumbers",a.autotypenumbersDflt);var s=i("type",(a.splomStash||{}).type);s==="-"&&(bue(r,a.data),r.type==="-"?r.type="linear":t.type=r.type)};function bue(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),a;r.indexOf("scene")!==-1&&(r=i);var s=wue(t,r,i);if(s){if(s.type==="histogram"&&i==={v:"y",h:"x"}[s.orientation||"v"]){e.type="linear";return}var l=i+"calendar",f=s[l],h={noMultiCategory:!Yg(s,"cartesian")||Yg(s,"noMultiCategory")};if(s.type==="box"&&s._hasPreCompStats&&i==={h:"x",v:"y"}[s.orientation||"v"]&&(h.noMultiCategory=!0),h.autotypenumbers=e.autotypenumbers,nN(s,i)){var v=iN(s),m=[];for(a=0;a0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(nN(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}function iN(e){return{v:"x",h:"y"}[e.orientation||"v"]}function nN(e,t){var r=iN(e),i=Yg(e,"box-violin"),a=Yg(e._fullInput||{},"candlestick");return i&&!a&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var uN=me((M2e,lN)=>{"use strict";var Tue=al().isTypedArraySpec;function Aue(e,t){var r=t.dataAttr||e._id.charAt(0),i={},a,s,l;if(t.axData)a=t.axData;else for(a=[],s=0;s0||Tue(s),f;l&&(f="array");var h=i("categoryorder",f),v;h==="array"&&(v=i("categoryarray")),!l&&h==="array"&&(h=r.categoryorder="trace"),h==="trace"?r._initialCategories=[]:h==="array"?r._initialCategories=v.slice():(v=Aue(r,a).sort(),h==="category ascending"?r._initialCategories=v:h==="category descending"&&(r._initialCategories=v.reverse()))}}});var hN=me((S2e,cN)=>{"use strict";var fN=Tf().mix,Mue=Af(),Sue=Bt();cN.exports=function(t,r,i,a){a=a||{};var s=a.dfltColor;function l(W,J){return Sue.coerce2(t,r,a.attributes,W,J)}var f=l("linecolor",s),h=l("linewidth"),v=i("showline",a.showLine||!!f||!!h);v||(delete r.linecolor,delete r.linewidth);var m=fN(s,a.bgColor,a.blend||Mue.lightFraction).toRgbString(),_=l("gridcolor",m),T=l("gridwidth"),S=l("griddash"),C=i("showgrid",a.showGrid||!!_||!!T||!!S);if(C||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),a.hasMinor){var D=fN(r.gridcolor,a.bgColor,67).toRgbString(),E=l("minor.gridcolor",D),I=l("minor.gridwidth",r.gridwidth||1),B=l("minor.griddash",r.griddash||"solid"),q=i("minor.showgrid",!!E||!!I||!!B);q||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!a.noZeroLine){var z=l("zerolinelayer"),O=l("zerolinecolor",s),H=l("zerolinewidth"),V=i("zeroline",a.showGrid||!!O||!!H);V||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var nT=me((k2e,gN)=>{"use strict";var vN=Da(),kue=la(),Wg=Bt(),Cue=Ri(),Eue=Wl(),iT=Ru(),dN=Ww(),pN=jw(),Lue=Qw(),Due=$w(),Pue=uN(),zue=hN(),Iue=G5(),mN=i2(),Kx=Ao().WEEKDAY_PATTERN,Rue=Ao().HOUR_PATTERN;gN.exports=function(t,r,i,a,s){var l=a.letter,f=a.font||{},h=a.splomStash||{},v=i("visible",!a.visibleDflt),m=r._template||{},_=r.type||m.type||"-",T;if(_==="date"){var S=kue.getComponentMethod("calendars","handleDefaults");S(t,r,"calendar",a.calendar),a.noTicklabelmode||(T=i("ticklabelmode"))}!a.noTicklabelindex&&(_==="date"||_==="linear")&&i("ticklabelindex");var C="";(!a.noTicklabelposition||_==="multicategory")&&(C=Wg.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:T==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||i("ticklabeloverflow",C.indexOf("inside")!==-1?"hide past domain":_==="category"||_==="multicategory"?"allow":"hide past div"),mN(r,s),Iue(t,r,i,a),Pue(t,r,i,a),a.noHover||(_!=="category"&&i("hoverformat"),a.noUnifiedhovertitle||i("unifiedhovertitle.text"));var D=i("color"),E=D!==iT.color.dflt?D:f.color,I=h.label||s._dfltTitle[l];if(Due(t,r,i,_,a),!v)return r;i("title.text",I),Wg.coerceFont(i,"title.font",f,{overrideDflt:{size:Wg.bigFont(f.size),color:E}}),dN(t,r,i,_);var B=a.hasMinor;if(B&&(Cue.newContainer(r,"minor"),dN(t,r,i,_,{isMinor:!0})),Lue(t,r,i,_,a),pN(t,r,i,a),B){var q=a.isMinor;a.isMinor=!0,pN(t,r,i,a),a.isMinor=q}zue(t,r,i,{dfltColor:D,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:B,attributes:iT}),B&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&i("mirror");var z=_==="multicategory";if(!a.noTickson&&(_==="category"||z)&&(r.ticks||r.showgrid)&&(z?(i("tickson","boundaries"),delete r.ticklabelposition):i("tickson")),z){var O=i("showdividers");O&&(i("dividercolor"),i("dividerwidth"))}if(_==="date")if(Eue(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Fue}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var H=0;H=2){var l="",f,h;if(s.length===2){for(f=0;f<2;f++)if(h=yN(s[f]),h){l=Kx;break}}var v=i("pattern",l);if(v===Kx)for(f=0;f<2;f++)h=yN(s[f]),h&&(t.bounds[f]=s[f]=h-1);if(v)for(f=0;f<2;f++)switch(h=s[f],v){case Kx:if(!vN(h)){t.enabled=!1;return}if(h=+h,h!==Math.floor(h)||h<0||h>=7){t.enabled=!1;return}t.bounds[f]=s[f]=h;break;case Rue:if(!vN(h)){t.enabled=!1;return}if(h=+h,h<0||h>24){t.enabled=!1;return}t.bounds[f]=s[f]=h;break}if(r.autorange===!1){var m=r.range;if(m[0]m[1]){t.enabled=!1;return}}else if(s[0]>m[0]&&s[1]{"use strict";var Nue=Da(),Qx=Bt();_N.exports=function(t,r,i,a){var s=a.counterAxes||[],l=a.overlayableAxes||[],f=a.letter,h=a.grid,v=a.overlayingDomain,m,_,T,S,C,D;h&&(_=h._domains[f][h._axisMap[r._id]],m=h._anchors[r._id],_&&(T=h[f+"side"].split(" ")[0],S=h.domain[f][T==="right"||T==="top"?1:0])),_=_||[0,1],m=m||(Nue(t.position)?"free":s[0]||"free"),T=T||(f==="x"?"bottom":"left"),S=S||0,C=0,D=!1;var E=Qx.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(s),dflt:m}},"anchor"),I=Qx.coerce(t,r,{side:{valType:"enumerated",values:f==="x"?["bottom","top"]:["left","right"],dflt:T}},"side");if(E==="free"){if(f==="y"){var B=i("autoshift");B&&(S=I==="left"?v[0]:v[1],D=r.automargin?r.automargin:!0,C=I==="left"?-3:3),i("shift",C)}i("position",S)}i("automargin",D);var q=!1;if(l.length&&(q=Qx.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!q){var z=i("domain",_);z[0]>z[1]-1/4096&&(r.domain=_),Qx.noneOrAll(t.domain,r.domain,_),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var CN=me((E2e,kN)=>{"use strict";var Id=Bt(),xN=Oa(),Bue=bc().isUnifiedHover,Oue=y4(),bN=Ri(),Uue=d0(),wN=Ru(),Vue=sN(),TN=nT(),Hue=hg(),AN=oT(),lT=Xn(),Uf=lT.id2name,MN=lT.name2id,Gue=Ao().AX_ID_PATTERN,SN=la(),$x=SN.traceIs,sT=SN.getComponentMethod;function eb(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}kN.exports=function(t,r,i){var a=r.autotypenumbers,s={},l={},f={},h={},v={},m={},_={},T={},S={},C={},D,E;for(D=0;D{"use strict";var Zue=Ja(),EN=la(),tb=Bt(),hl=bi(),rb=Xi();LN.exports=function(t,r,i,a){var s=t._fullLayout;if(r.length===0){rb.redrawComponents(t);return}function l(E){var I=E.xaxis,B=E.yaxis;s._defs.select("#"+E.clipId+"> rect").call(hl.setTranslate,0,0).call(hl.setScale,1,1),E.plot.call(hl.setTranslate,I._offset,B._offset).call(hl.setScale,1,1);var q=E.plot.selectAll(".scatterlayer .trace");q.selectAll(".point").call(hl.setPointGroupScale,1,1),q.selectAll(".textpoint").call(hl.setTextPointsScale,1,1),q.call(hl.hideOutsideRangePoints,E)}function f(E,I){var B=E.plotinfo,q=B.xaxis,z=B.yaxis,O=q._length,H=z._length,V=!!E.xr1,W=!!E.yr1,J=[];if(V){var te=tb.simpleMap(E.xr0,q.r2l),ne=tb.simpleMap(E.xr1,q.r2l),oe=te[1]-te[0],fe=ne[1]-ne[0];J[0]=(te[0]*(1-I)+I*ne[0]-te[0])/(te[1]-te[0])*O,J[2]=O*(1-I+I*fe/oe),q.range[0]=q.l2r(te[0]*(1-I)+I*ne[0]),q.range[1]=q.l2r(te[1]*(1-I)+I*ne[1])}else J[0]=0,J[2]=O;if(W){var ve=tb.simpleMap(E.yr0,z.r2l),Me=tb.simpleMap(E.yr1,z.r2l),Se=ve[1]-ve[0],Ae=Me[1]-Me[0];J[1]=(ve[1]*(1-I)+I*Me[1]-ve[1])/(ve[0]-ve[1])*H,J[3]=H*(1-I+I*Ae/Se),z.range[0]=q.l2r(ve[0]*(1-I)+I*Me[0]),z.range[1]=z.l2r(ve[1]*(1-I)+I*Me[1])}else J[1]=0,J[3]=H;rb.drawOne(t,q,{skipTitle:!0}),rb.drawOne(t,z,{skipTitle:!0}),rb.redrawComponents(t,[q._id,z._id]);var we=V?O/J[2]:1,Te=W?H/J[3]:1,Ce=V?J[0]:0,Le=W?J[1]:0,$e=V?J[0]/J[2]*O:0,lt=W?J[1]/J[3]*H:0,it=q._offset-$e,gt=z._offset-lt;B.clipRect.call(hl.setTranslate,Ce,Le).call(hl.setScale,1/we,1/Te),B.plot.call(hl.setTranslate,it,gt).call(hl.setScale,we,Te),hl.setPointGroupScale(B.zoomScalePts,1/we,1/Te),hl.setTextPointsScale(B.zoomScaleTxt,1/we,1/Te)}var h;a&&(h=a());function v(){for(var E={},I=0;Ii.duration?(v(),S=window.cancelAnimationFrame(D)):S=window.requestAnimationFrame(D)}return _=Date.now(),S=window.requestAnimationFrame(D),Promise.resolve()}});var uT=me(Oo=>{"use strict";var ib=Ja(),PN=la(),Rd=Bt(),Yue=eo(),Wue=bi(),zN=F_().getModuleCalcData,Xh=Xn(),Hu=Ao(),Xue=zh(),ni=Rd.ensureSingle;function ab(e,t,r){return Rd.ensureSingle(e,t,r,function(i){i.datum(r)})}var Fd=Hu.zindexSeparator;Oo.name="cartesian";Oo.attr=["xaxis","yaxis"];Oo.idRoot=["x","y"];Oo.idRegex=Hu.idRegex;Oo.attrRegex=Hu.attrRegex;Oo.attributes=aN();Oo.layoutAttributes=Ru();Oo.supplyLayoutDefaults=CN();Oo.transitionAxes=DN();Oo.finalizeSubplots=function(e,t){var r=t._subplots,i=r.xaxis,a=r.yaxis,s=r.cartesian,l=s,f={},h={},v,m,_;for(v=0;v0){var S=T.id;if(S.indexOf(Fd)!==-1)continue;S+=Fd+(v+1),T=Rd.extendFlat({},T,{id:S,plot:a._cartesianlayer.selectAll(".subplot").select("."+S)})}for(var C=[],D,E=0;E1&&(O+=Fd+z),q.push(f+O),l=0;l1,_=t.mainplotinfo;if(!t.mainplot||m)if(v)t.xlines=ni(i,"path","xlines-above"),t.ylines=ni(i,"path","ylines-above"),t.xaxislayer=ni(i,"g","xaxislayer-above"),t.yaxislayer=ni(i,"g","yaxislayer-above");else{if(!l){var T=ni(i,"g","layer-subplot");t.shapelayer=ni(T,"g","shapelayer"),t.imagelayer=ni(T,"g","imagelayer"),_&&m?(t.minorGridlayer=_.minorGridlayer,t.gridlayer=_.gridlayer,t.zerolinelayer=_.zerolinelayer):(t.minorGridlayer=ni(i,"g","minor-gridlayer"),t.gridlayer=ni(i,"g","gridlayer"),t.zerolinelayer=ni(i,"g","zerolinelayer"));var S=ni(i,"g","layer-between");t.shapelayerBetween=ni(S,"g","shapelayer"),t.imagelayerBetween=ni(S,"g","imagelayer"),ni(i,"path","xlines-below"),ni(i,"path","ylines-below"),t.overlinesBelow=ni(i,"g","overlines-below"),ni(i,"g","xaxislayer-below"),ni(i,"g","yaxislayer-below"),t.overaxesBelow=ni(i,"g","overaxes-below")}t.overplot=ni(i,"g","overplot"),t.plot=ni(t.overplot,"g",a),_&&m?t.zerolinelayerAbove=_.zerolinelayerAbove:t.zerolinelayerAbove=ni(i,"g","zerolinelayer-above"),l||(t.xlines=ni(i,"path","xlines-above"),t.ylines=ni(i,"path","ylines-above"),t.overlinesAbove=ni(i,"g","overlines-above"),ni(i,"g","xaxislayer-above"),ni(i,"g","yaxislayer-above"),t.overaxesAbove=ni(i,"g","overaxes-above"),t.xlines=i.select(".xlines-"+f),t.ylines=i.select(".ylines-"+h),t.xaxislayer=i.select(".xaxislayer-"+f),t.yaxislayer=i.select(".yaxislayer-"+h))}else{var C=_.plotgroup,D=a+"-x",E=a+"-y";t.minorGridlayer=_.minorGridlayer,t.gridlayer=_.gridlayer,t.zerolinelayer=_.zerolinelayer,t.zerolinelayerAbove=_.zerolinelayerAbove,ni(_.overlinesBelow,"path",D),ni(_.overlinesBelow,"path",E),ni(_.overaxesBelow,"g",D),ni(_.overaxesBelow,"g",E),t.plot=ni(_.overplot,"g",a),ni(_.overlinesAbove,"path",D),ni(_.overlinesAbove,"path",E),ni(_.overaxesAbove,"g",D),ni(_.overaxesAbove,"g",E),t.xlines=C.select(".overlines-"+f).select("."+D),t.ylines=C.select(".overlines-"+h).select("."+E),t.xaxislayer=C.select(".overaxes-"+f).select("."+D),t.yaxislayer=C.select(".overaxes-"+h).select("."+E)}l||(v||(ab(t.minorGridlayer,"g",t.xaxis._id),ab(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(I){return I[0]}).sort(Xh.idSort),ab(t.gridlayer,"g",t.xaxis._id),ab(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(I){return I[0]}).sort(Xh.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function FN(e,t){if(e){var r={};e.each(function(h){var v=h[0],m=ib.select(this);m.remove(),qN(v,t),r[v]=!0});for(var i in t._plots)for(var a=t._plots[i],s=a.overlays||[],l=0;l{"use strict";var nb=rs();NN.exports={hasLines:nb.hasLines,hasMarkers:nb.hasMarkers,hasText:nb.hasText,isBubble:nb.isBubble,attributes:kc(),layoutAttributes:z_(),supplyDefaults:QF(),crossTraceDefaults:rq(),supplyLayoutDefaults:iq(),calc:H6().calc,crossTraceCalc:Lq(),arraysToCalcdata:Ug(),plot:Gq(),colorbar:J6(),formatLabels:Wq(),style:eT().style,styleOnSelect:eT().styleOnSelect,hoverPoints:Qq(),selectPoints:tN(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:uT(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var VN=me((z2e,UN)=>{"use strict";var Jue=Ja(),Kue=Oa(),ON=n6(),fT=Bt(),Que=fT.strScale,$ue=fT.strRotate,efe=fT.strTranslate;UN.exports=function(t,r,i){var a=t.node(),s=ON[i.arrowhead||0],l=ON[i.startarrowhead||0],f=(i.arrowwidth||1)*(i.arrowsize||1),h=(i.arrowwidth||1)*(i.startarrowsize||1),v=r.indexOf("start")>=0,m=r.indexOf("end")>=0,_=s.backoff*f+i.standoff,T=l.backoff*h+i.startstandoff,S,C,D,E;if(a.nodeName==="line"){S={x:+t.attr("x1"),y:+t.attr("y1")},C={x:+t.attr("x2"),y:+t.attr("y2")};var I=S.x-C.x,B=S.y-C.y;if(D=Math.atan2(B,I),E=D+Math.PI,_&&T&&_+T>Math.sqrt(I*I+B*B)){ve();return}if(_){if(_*_>I*I+B*B){ve();return}var q=_*Math.cos(D),z=_*Math.sin(D);C.x+=q,C.y+=z,t.attr({x2:C.x,y2:C.y})}if(T){if(T*T>I*I+B*B){ve();return}var O=T*Math.cos(D),H=T*Math.sin(D);S.x-=O,S.y-=H,t.attr({x1:S.x,y1:S.y})}}else if(a.nodeName==="path"){var V=a.getTotalLength(),W="";if(V<_+T){ve();return}var J=a.getPointAtLength(0),te=a.getPointAtLength(.1);D=Math.atan2(J.y-te.y,J.x-te.x),S=a.getPointAtLength(Math.min(T,V)),W="0px,"+T+"px,";var ne=a.getPointAtLength(V),oe=a.getPointAtLength(V-.1);E=Math.atan2(ne.y-oe.y,ne.x-oe.x),C=a.getPointAtLength(Math.max(0,V-_));var fe=W?T+_:_;W+=V-fe+"px,"+V+"px",t.style("stroke-dasharray",W)}function ve(){t.style("stroke-dasharray","0px,100px")}function Me(Se,Ae,we,Te){Se.path&&(Se.noRotate&&(we=0),Jue.select(a.parentNode).append("path").attr({class:t.attr("class"),d:Se.path,transform:efe(Ae.x,Ae.y)+$ue(we*180/Math.PI)+Que(Te)}).style({fill:Kue.rgb(i.arrowcolor),"stroke-width":0}))}v&&Me(l,S,D,h),m&&Me(s,C,E,f)}});var ob=me((I2e,WN)=>{"use strict";var HN=Ja(),cT=la(),tfe=eo(),Jh=Bt(),hT=Jh.strTranslate,jg=Xi(),qd=Oa(),Ec=bi(),GN=Rf(),vT=co(),dT=Oh(),Xg=jl(),rfe=Ri().arrayEditor,afe=VN();WN.exports={draw:ife,drawOne:ZN,drawRaw:YN};function ife(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?dt="right":dt="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[dt]}for(var vt=!1,de=["x","y"],ze=0;ze1)&&(mt===rt?(Sr=Xe.r2fraction(t["a"+pe]),(Sr<0||Sr>1)&&(vt=!0)):vt=!0),Ut=Xe._offset+Xe.r2p(t[pe]),ft=.5}else{var Oe=Cr==="domain";pe==="x"?(Be=t[pe],Ut=Oe?Xe._offset+Xe._length*Be:Ut=f.l+f.w*Be):(Be=1-t[pe],Ut=Oe?Xe._offset+Xe._length*Be:Ut=f.t+f.h*Be),ft=t.showarrow?.5:Be}if(t.showarrow){Mt.head=Ut;var yt=t["a"+pe];if(or=Lt*xt(.5,t.xanchor)-Tt*xt(.5,t.yanchor),mt===rt){var qt=jg.getRefType(mt);qt==="domain"?(pe==="y"&&(yt=1-yt),Mt.tail=Xe._offset+Xe._length*yt):qt==="paper"?pe==="y"?(yt=1-yt,Mt.tail=f.t+f.h*yt):Mt.tail=f.l+f.w*yt:Mt.tail=Xe._offset+Xe.r2p(yt),Ot=or}else Mt.tail=Ut+yt,Ot=or+yt;Mt.text=Mt.tail+or;var Qt=l[pe==="x"?"width":"height"];if(rt==="paper"&&(Mt.head=Jh.constrain(Mt.head,1,Qt-1)),mt==="pixel"){var Vt=-Math.max(Mt.tail-3,Mt.text),tr=Math.min(Mt.tail+3,Mt.text)-Qt;Vt>0?(Mt.tail+=Vt,Mt.text+=Vt):tr>0&&(Mt.tail-=tr,Mt.text-=tr)}Mt.tail+=Ct,Mt.head+=Ct}else or=It*xt(ft,Gt),Ot=or,Mt.text=Ut+or;Mt.text+=Ct,or+=Ct,Ot+=Ct,t["_"+pe+"padplus"]=It/2+Ot,t["_"+pe+"padminus"]=It/2-Ot,t["_"+pe+"size"]=It,t["_"+pe+"shift"]=or}if(vt){V.remove();return}var ar=0,zr=0;if(t.align!=="left"&&(ar=(We-it)*(t.align==="center"?.5:1)),t.valign!=="top"&&(zr=(Et-gt)*(t.valign==="middle"?.5:1)),$e)Le.select("svg").attr({x:te+ar-1,y:te+zr}).call(Ec.setClipUrl,oe?D:null,e);else{var lr=te+zr-lt.top,At=te+ar-lt.left;Se.call(vT.positionText,At,lr).call(Ec.setClipUrl,oe?D:null,e)}fe.select("rect").call(Ec.setRect,te,te,We,Et),ne.call(Ec.setRect,W/2,W/2,nt-W,wt-W),V.call(Ec.setTranslate,Math.round(E.x.text-nt/2),Math.round(E.y.text-wt/2)),q.attr({transform:"rotate("+I+","+E.x.text+","+E.y.text+")"});var Fe=function(bt,dt){B.selectAll(".annotation-arrow-g").remove();var gr=E.x.head,xr=E.y.head,mr=E.x.tail+bt,Hr=E.y.tail+dt,pa=E.x.text+bt,Ea=E.y.text+dt,Ua=Jh.rotationXYMatrix(I,pa,Ea),Ki=Jh.apply2DTransform(Ua),qi=Jh.apply2DTransform2(Ua),vi=+ne.attr("width"),Ti=+ne.attr("height"),$i=pa-.5*vi,on=$i+vi,Ei=Ea-.5*Ti,ma=Ei+Ti,Gr=[[$i,Ei,$i,ma],[$i,ma,on,ma],[on,ma,on,Ei],[on,Ei,$i,Ei]].map(qi);if(!Gr.reduce(function(He,pt){return He^!!Jh.segmentsIntersect(gr,xr,gr+1e6,xr+1e6,pt[0],pt[1],pt[2],pt[3])},!1)){Gr.forEach(function(He){var pt=Jh.segmentsIntersect(mr,Hr,gr,xr,He[0],He[1],He[2],He[3]);pt&&(mr=pt.x,Hr=pt.y)});var $a=t.arrowwidth,Zr=t.arrowcolor,di=t.arrowside,ga=B.append("g").style({opacity:qd.opacity(Zr)}).classed("annotation-arrow-g",!0),le=ga.append("path").attr("d","M"+mr+","+Hr+"L"+gr+","+xr).style("stroke-width",$a+"px").call(qd.stroke,qd.rgb(Zr));if(afe(le,di,t),h.annotationPosition&&le.node().parentNode&&!i){var ee=gr,se=xr;if(t.standoff){var ce=Math.sqrt(Math.pow(gr-mr,2)+Math.pow(xr-Hr,2));ee+=t.standoff*(mr-gr)/ce,se+=t.standoff*(Hr-xr)/ce}var Ee=ga.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(mr-ee)+","+(Hr-se),transform:hT(ee,se)}).style("stroke-width",$a+6+"px").call(qd.stroke,"rgba(0,0,0,0)").call(qd.fill,"rgba(0,0,0,0)"),Ne,at;Xg.init({element:Ee.node(),gd:e,prepFn:function(){var He=Ec.getTranslate(V);Ne=He.x,at=He.y,a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0)},moveFn:function(He,pt){var Dt=Ki(Ne,at),Rt=Dt[0]+He,$t=Dt[1]+pt;V.call(Ec.setTranslate,Rt,$t),S("x",jh(a,He,"x",f,t)),S("y",jh(s,pt,"y",f,t)),t.axref===t.xref&&S("ax",jh(a,He,"ax",f,t)),t.ayref===t.yref&&S("ay",jh(s,pt,"ay",f,t)),ga.attr("transform",hT(He,pt)),q.attr({transform:"rotate("+I+","+Rt+","+$t+")"})},doneFn:function(){cT.call("_guiRelayout",e,C());var He=document.querySelector(".js-notes-box-panel");He&&He.redraw(He.selectedObj)}})}}};if(t.showarrow&&Fe(0,0),z){var Ge;Xg.init({element:V.node(),gd:e,prepFn:function(){Ge=q.attr("transform")},moveFn:function(bt,dt){var gr="pointer";if(t.showarrow)t.axref===t.xref?S("ax",jh(a,bt,"ax",f,t)):S("ax",t.ax+bt),t.ayref===t.yref?S("ay",jh(s,dt,"ay",f.w,t)):S("ay",t.ay+dt),Fe(bt,dt);else{if(i)return;var xr,mr;if(a)xr=jh(a,bt,"x",f,t);else{var Hr=t._xsize/f.w,pa=t.x+(t._xshift-t.xshift)/f.w-Hr/2;xr=Xg.align(pa+bt/f.w,Hr,0,1,t.xanchor)}if(s)mr=jh(s,dt,"y",f,t);else{var Ea=t._ysize/f.h,Ua=t.y-(t._yshift+t.yshift)/f.h-Ea/2;mr=Xg.align(Ua-dt/f.h,Ea,0,1,t.yanchor)}S("x",xr),S("y",mr),(!a||!s)&&(gr=Xg.getCursor(a?.5:xr,s?.5:mr,t.xanchor,t.yanchor))}q.attr({transform:hT(bt,dt)+Ge}),dT(V,gr)},clickFn:function(bt,dt){t.captureevents&&e.emit("plotly_clickannotation",H(dt))},doneFn:function(){dT(V),cT.call("_guiRelayout",e,C());var bt=document.querySelector(".js-notes-box-panel");bt&&bt.redraw(bt.selectedObj)}})}}h.annotationText?Se.call(vT.makeEditable,{delegate:V,gd:e}).call(Ae).on("edit",function(Te){t.text=Te,this.call(Ae),S("text",Te),a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0),cT.call("_guiRelayout",e,C())}):Se.call(Ae)}});var $N=me((R2e,QN)=>{"use strict";var XN=Bt(),nfe=la(),jN=Ri().arrayEditor;QN.exports={hasClickToShow:ofe,onClick:sfe};function ofe(e,t){var r=KN(e,t);return r.on.length>0||r.explicitOff.length>0}function sfe(e,t){var r=KN(e,t),i=r.on,a=r.off.concat(r.explicitOff),s={},l=e._fullLayout.annotations,f,h;if(i.length||a.length){for(f=0;f{"use strict";var pT=Bt(),sm=Oa();eB.exports=function(t,r,i,a){a("opacity");var s=a("bgcolor"),l=a("bordercolor"),f=sm.opacity(l);a("borderpad");var h=a("borderwidth"),v=a("showarrow");a("text",v?" ":i._dfltTitle.annotation),a("textangle"),pT.coerceFont(a,"font",i.font),a("width"),a("align");var m=a("height");if(m&&a("valign"),v){var _=a("arrowside"),T,S;_.indexOf("end")!==-1&&(T=a("arrowhead"),S=a("arrowsize")),_.indexOf("start")!==-1&&(a("startarrowhead",T),a("startarrowsize",S)),a("arrowcolor",f?r.bordercolor:sm.defaultLine),a("arrowwidth",(f&&h||1)*2),a("standoff"),a("startstandoff")}var C=a("hovertext"),D=i.hoverlabel||{};if(C){var E=a("hoverlabel.bgcolor",D.bgcolor||(sm.opacity(s)?sm.rgb(s):sm.defaultLine)),I=a("hoverlabel.bordercolor",D.bordercolor||sm.contrast(E)),B=pT.extendFlat({},D.font);B.color||(B.color=I),pT.coerceFont(a,"hoverlabel.font",B)}a("captureevents",!!C)}});var rB=me((q2e,tB)=>{"use strict";var yT=Bt(),Nd=Xi(),lfe=Wl(),ufe=mT(),ffe=Q0();tB.exports=function(t,r){lfe(t,r,{name:"annotations",handleItemDefaults:cfe})};function cfe(e,t,r){function i(q,z){return yT.coerce(e,t,ffe,q,z)}var a=i("visible"),s=i("clicktoshow");if(a||s){ufe(e,t,r,i);for(var l=t.showarrow,f=["x","y"],h=[-10,-30],v={_fullLayout:r},m=0;m<2;m++){var _=f[m],T=Nd.coerceRef(e,t,v,_,"","paper");if(T!=="paper"){var S=Nd.getFromId(v,T);S._annIndices.push(t._index)}if(Nd.coercePosition(t,v,i,T,_,.5),l){var C="a"+_,D=Nd.coerceRef(e,t,v,C,"pixel",["pixel","paper"]);D!=="pixel"&&D!==T&&(D=t[C]="pixel");var E=D==="pixel"?h[m]:.4;Nd.coercePosition(t,v,i,D,C,E)}i(_+"anchor"),i(_+"shift")}if(yT.noneOrAll(e,t,["x","y"]),l&&yT.noneOrAll(e,t,["ax","ay"]),s){var I=i("xclick"),B=i("yclick");t._xclick=I===void 0?t.x:Nd.cleanPosition(I,v,t.xref),t._yclick=B===void 0?t.y:Nd.cleanPosition(B,v,t.yref)}}}});var nB=me((N2e,iB)=>{"use strict";var gT=Bt(),Bd=Xi(),hfe=ob().draw;iB.exports=function(t){var r=t._fullLayout,i=gT.filterVisible(r.annotations);if(i.length&&t._fullData.length)return gT.syncOrAsync([hfe,vfe],t)};function vfe(e){var t=e._fullLayout;gT.filterVisible(t.annotations).forEach(function(r){var i=Bd.getFromId(e,r.xref),a=Bd.getFromId(e,r.yref),s=Bd.getRefType(r.xref),l=Bd.getRefType(r.yref);r._extremes={},s==="range"&&aB(r,i),l==="range"&&aB(r,a)})}function aB(e,t){var r=t._id,i=r.charAt(0),a=e[i],s=e["a"+i],l=e[i+"ref"],f=e["a"+i+"ref"],h=e["_"+i+"padplus"],v=e["_"+i+"padminus"],m={x:1,y:-1}[i]*e[i+"shift"],_=3*e.arrowsize*e.arrowwidth||0,T=_+m,S=_-m,C=3*e.startarrowsize*e.arrowwidth||0,D=C+m,E=C-m,I;if(f===l){var B=Bd.findExtremes(t,[t.r2c(a)],{ppadplus:T,ppadminus:S}),q=Bd.findExtremes(t,[t.r2c(s)],{ppadplus:Math.max(h,D),ppadminus:Math.max(v,E)});I={min:[B.min[0],q.min[0]],max:[B.max[0],q.max[0]]}}else D=s?D+s:D,E=s?E-s:E,I=Bd.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(h,T,D),ppadminus:Math.max(v,S,E)});e._extremes[r]=I}});var sB=me((B2e,oB)=>{"use strict";var dfe=Da(),pfe=$1();oB.exports=function(t,r,i,a){r=r||{};var s=i==="log"&&r.type==="linear",l=i==="linear"&&r.type==="log";if(!(s||l))return;var f=t._fullLayout.annotations,h=r._id.charAt(0),v,m;function _(S){var C=v[S],D=null;s?D=pfe(C,r.range):D=Math.pow(10,C),dfe(D)||(D=null),a(m+S,D)}for(var T=0;T{"use strict";var _T=ob(),lB=$N();uB.exports={moduleType:"component",name:"annotations",layoutAttributes:Q0(),supplyLayoutDefaults:rB(),includeBasePlot:Eg()("annotations"),calcAutorange:nB(),draw:_T.draw,drawOne:_T.drawOne,drawRaw:_T.drawRaw,hasClickToShow:lB.hasClickToShow,onClick:lB.onClick,convertCoords:sB()}});var sb=me((U2e,cB)=>{"use strict";var Ui=Q0(),mfe=il().overrideAll,yfe=Ri().templatedArray;cB.exports=mfe(yfe("annotation",{visible:Ui.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Ui.xanchor,xshift:Ui.xshift,yanchor:Ui.yanchor,yshift:Ui.yshift,text:Ui.text,textangle:Ui.textangle,font:Ui.font,width:Ui.width,height:Ui.height,opacity:Ui.opacity,align:Ui.align,valign:Ui.valign,bgcolor:Ui.bgcolor,bordercolor:Ui.bordercolor,borderpad:Ui.borderpad,borderwidth:Ui.borderwidth,showarrow:Ui.showarrow,arrowcolor:Ui.arrowcolor,arrowhead:Ui.arrowhead,startarrowhead:Ui.startarrowhead,arrowside:Ui.arrowside,arrowsize:Ui.arrowsize,startarrowsize:Ui.startarrowsize,arrowwidth:Ui.arrowwidth,standoff:Ui.standoff,startstandoff:Ui.startstandoff,hovertext:Ui.hovertext,hoverlabel:Ui.hoverlabel,captureevents:Ui.captureevents}),"calc","from-root")});var vB=me((V2e,hB)=>{"use strict";var xT=Bt(),gfe=Xi(),_fe=Wl(),xfe=mT(),bfe=sb();hB.exports=function(t,r,i){_fe(t,r,{name:"annotations",handleItemDefaults:wfe,fullLayout:i.fullLayout})};function wfe(e,t,r,i){function a(f,h){return xT.coerce(e,t,bfe,f,h)}function s(f){var h=f+"axis",v={_fullLayout:{}};return v._fullLayout[h]=r[h],gfe.coercePosition(t,v,a,f,f,.5)}var l=a("visible");l&&(xfe(e,t,i.fullLayout,a),s("x"),s("y"),s("z"),xT.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",a("ax",-10),a("ay",-30),xT.noneOrAll(e,t,["ax","ay"])))}});var yB=me((H2e,mB)=>{"use strict";var dB=Bt(),pB=Xi();mB.exports=function(t){for(var r=t.fullSceneLayout,i=r.annotations,a=0;a{"use strict";function bT(e,t){var r=[0,0,0,0],i,a;for(i=0;i<4;++i)for(a=0;a<4;++a)r[a]+=e[4*i+a]*t[i];return r}function Afe(e,t){var r=bT(e.projection,bT(e.view,bT(e.model,[t[0],t[1],t[2],1])));return r}gB.exports=Afe});var bB=me((Z2e,xB)=>{"use strict";var Mfe=ob().drawRaw,Sfe=_B(),kfe=["x","y","z"];xB.exports=function(t){for(var r=t.fullSceneLayout,i=t.dataScale,a=r.annotations,s=0;s1){f=!0;break}}f?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+s+'"]').remove():(l._pdata=Sfe(t.glplot.cameraParams,[r.xaxis.r2l(l.x)*i[0],r.yaxis.r2l(l.y)*i[1],r.zaxis.r2l(l.z)*i[2]]),Mfe(t.graphDiv,l,s,t.id,l._xa,l._ya))}}});var AB=me((Y2e,TB)=>{"use strict";var Cfe=la(),wB=Bt();TB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:sb()}}},layoutAttributes:sb(),handleDefaults:vB(),includeBasePlot:Efe,convert:yB(),draw:bB()};function Efe(e,t){var r=Cfe.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,a=Object.keys(e),s=0;s{"use strict";var MB=Q0(),SB=qo(),kB=kc().line,Lfe=hc().dash,Gu=mn().extendFlat,Dfe=Ri().templatedArray,W2e=Cg(),lm=ms(),Pfe=nl().shapeTexttemplateAttrs,zfe=f_();CB.exports=Dfe("shape",{visible:Gu({},lm.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Gu({},lm.legend,{editType:"calc+arraydraw"}),legendgroup:Gu({},lm.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Gu({},lm.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:SB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Gu({},lm.legendrank,{editType:"calc+arraydraw"}),legendwidth:Gu({},lm.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Gu({},MB.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Gu({},MB.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Gu({},kB.color,{editType:"arraydraw"}),width:Gu({},kB.width,{editType:"calc+arraydraw"}),dash:Gu({},Lfe,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Pfe({},{keys:Object.keys(zfe)}),font:SB({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var DB=me((j2e,LB)=>{"use strict";var Jg=Bt(),um=Xi(),Ife=Wl(),Rfe=wT(),EB=Hh();LB.exports=function(t,r){Ife(t,r,{name:"shapes",handleItemDefaults:qfe})};function Ffe(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function qfe(e,t,r){function i(Te,Ce){return Jg.coerce(e,t,Rfe,Te,Ce)}t._isShape=!0;var a=i("visible");if(a){var s=i("showlegend");s&&(i("legend"),i("legendwidth"),i("legendgroup"),i("legendgrouptitle.text"),Jg.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var l=i("path"),f=l?"path":"rect",h=i("type",f),v=h!=="path";v&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule");var m=i("line.width");m&&(i("line.color"),i("line.dash"));for(var _=i("xsizemode"),T=i("ysizemode"),S=["x","y"],C=0;C<2;C++){var D=S[C],E=D+"anchor",I=D==="x"?_:T,B={_fullLayout:r},q,z,O,H=um.coerceRef(e,t,B,D,void 0,"paper"),V=um.getRefType(H);if(V==="range"?(q=um.getFromId(B,H),q._shapeIndices.push(t._index),O=EB.rangeToShapePosition(q),z=EB.shapePositionToRange(q),(q.type==="category"||q.type==="multicategory")&&(i(D+"0shift"),i(D+"1shift"))):z=O=Jg.identity,v){var W=.25,J=.75,te=D+"0",ne=D+"1",oe=e[te],fe=e[ne];e[te]=z(e[te],!0),e[ne]=z(e[ne],!0),I==="pixel"?(i(te,0),i(ne,10)):(um.coercePosition(t,B,i,H,te,W),um.coercePosition(t,B,i,H,ne,J)),t[te]=O(t[te]),t[ne]=O(t[ne]),e[te]=oe,e[ne]=fe}if(I==="pixel"){var ve=e[E];e[E]=z(e[E],!0),um.coercePosition(t,B,i,H,E,.25),t[E]=O(t[E]),e[E]=ve}}v&&Jg.noneOrAll(e,t,["x0","x1","y0","y1"]);var Me=h==="line",Se,Ae;if(v&&(Se=i("label.texttemplate")),Se||(Ae=i("label.text")),Ae||Se){i("label.textangle");var we=i("label.textposition",Me?"middle":"middle center");i("label.xanchor"),i("label.yanchor",Ffe(Me,we)),i("label.padding"),Jg.coerceFont(i,"label.font",r.font)}}}});var IB=me((J2e,zB)=>{"use strict";var Nfe=Oa(),PB=Bt();function Bfe(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}zB.exports=function(t,r,i){i("newshape.visible"),i("newshape.name"),i("newshape.showlegend"),i("newshape.legend"),i("newshape.legendwidth"),i("newshape.legendgroup"),i("newshape.legendgrouptitle.text"),PB.coerceFont(i,"newshape.legendgrouptitle.font"),i("newshape.legendrank"),i("newshape.drawdirection"),i("newshape.layer"),i("newshape.fillcolor"),i("newshape.fillrule"),i("newshape.opacity");var a=i("newshape.line.width");if(a){var s=(t||{}).plot_bgcolor||"#FFF";i("newshape.line.color",Nfe.contrast(s)),i("newshape.line.dash")}var l=t.dragmode==="drawline",f=i("newshape.label.text"),h=i("newshape.label.texttemplate");if(f||h){i("newshape.label.textangle");var v=i("newshape.label.textposition",l?"middle":"middle center");i("newshape.label.xanchor"),i("newshape.label.yanchor",Bfe(l,v)),i("newshape.label.padding"),PB.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var BB=me((K2e,NB)=>{"use strict";var TT=Bt(),fm=Xi(),cm=lg(),FB=Hh();NB.exports=function(t){var r=t._fullLayout,i=TT.filterVisible(r.shapes);if(!(!i.length||!t._fullData.length))for(var a=0;a0?v+l:l;return{ppad:l,ppadplus:f?_:T,ppadminus:f?T:_}}else return{ppad:l}}function RB(e,t,r){var i=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",s,l,f=0,h=0,v=a?e.r2c:e.d2c,m=t[i+"sizemode"]==="scaled";if(m?(s=t[i+"0"],l=t[i+"1"],a&&(f=t[i+"0shift"],h=t[i+"1shift"])):(s=t[i+"anchor"],l=t[i+"anchor"]),s!==void 0)return[v(s)+f,v(l)+h];if(t.path){var _=1/0,T=-1/0,S=t.path.match(cm.segmentRE),C,D,E,I,B;for(e.type==="date"&&(v=FB.decodeDate(v)),C=0;CT&&(T=B)));if(T>=_)return[_,T]}}});var VB=me((Q2e,UB)=>{"use strict";var OB=J2();UB.exports={moduleType:"component",name:"shapes",layoutAttributes:wT(),supplyLayoutDefaults:DB(),supplyDrawNewShapeDefaults:IB(),includeBasePlot:Eg()("shapes"),calcAutorange:BB(),draw:OB.draw,drawOne:OB.drawOne}});var AT=me((exe,GB)=>{"use strict";var HB=Ao(),Vfe=Ri().templatedArray,$2e=Cg();GB.exports=Vfe("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",HB.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",HB.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var YB=me((txe,ZB)=>{"use strict";var Hfe=Bt(),MT=Xi(),Gfe=Wl(),Zfe=AT(),Yfe="images";ZB.exports=function(t,r){var i={name:Yfe,handleItemDefaults:Wfe};Gfe(t,r,i)};function Wfe(e,t,r){function i(T,S){return Hfe.coerce(e,t,Zfe,T,S)}var a=i("source"),s=i("visible",!!a);if(!s)return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var l={_fullLayout:r},f=["x","y"],h=0;h<2;h++){var v=f[h],m=MT.coerceRef(e,t,l,v,"paper",void 0);if(m!=="paper"){var _=MT.getFromId(l,m);_._imgIndices.push(t._index)}MT.coercePosition(t,l,i,m,v,0)}return t}});var JB=me((rxe,jB)=>{"use strict";var WB=Ja(),Xfe=bi(),hm=Xi(),XB=Xn(),jfe=zh();jB.exports=function(t){var r=t._fullLayout,i=[],a={},s=[],l,f;for(f=0;f{"use strict";var KB=Da(),Jfe=$1();QB.exports=function(t,r,i,a){r=r||{};var s=i==="log"&&r.type==="linear",l=i==="linear"&&r.type==="log";if(s||l){for(var f=t._fullLayout.images,h=r._id.charAt(0),v,m,_=0;_{"use strict";eO.exports={moduleType:"component",name:"images",layoutAttributes:AT(),supplyLayoutDefaults:YB(),includeBasePlot:Eg()("images"),draw:JB(),convertCoords:$B()}});var lb=me((nxe,rO)=>{"use strict";rO.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var ST=me((oxe,iO)=>{"use strict";var Kfe=qo(),Qfe=Af(),$fe=mn().extendFlat,ece=il().overrideAll,tce=c_(),aO=Ri().templatedArray,rce=aO("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});iO.exports=ece(aO("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:rce,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:$fe(tce({editType:"arraydraw"}),{}),font:Kfe({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Qfe.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var lO=me((sxe,sO)=>{"use strict";var ub=Bt(),nO=Wl(),oO=ST(),ace=lb(),ice=ace.name,nce=oO.buttons;sO.exports=function(t,r){var i={name:ice,handleItemDefaults:oce};nO(t,r,i)};function oce(e,t,r){function i(l,f){return ub.coerce(e,t,oO,l,f)}var a=nO(e,t,{name:"buttons",handleItemDefaults:sce}),s=i("visible",a.length>0);s&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),ub.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),ub.coerceFont(i,"font",r.font),i("bgcolor",r.paper_bgcolor),i("bordercolor"),i("borderwidth"))}function sce(e,t){function r(a,s){return ub.coerce(e,t,nce,a,s)}var i=r("visible",e.method==="skip"||Array.isArray(e.args));i&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var cO=me((lxe,fO)=>{"use strict";fO.exports=nn;var Zu=Ja(),uO=Oa(),vm=bi(),fb=Bt();function nn(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}nn.barWidth=2;nn.barLength=20;nn.barRadius=2;nn.barPad=1;nn.barColor="#808BA4";nn.prototype.enable=function(t,r,i){var a=this.gd._fullLayout,s=a.width,l=a.height;this.position=t;var f=this.position.l,h=this.position.w,v=this.position.t,m=this.position.h,_=this.position.direction,T=_==="down",S=_==="left",C=_==="right",D=_==="up",E=h,I=m,B,q,z,O;!T&&!S&&!C&&!D&&(this.position.direction="down",T=!0);var H=T||D;H?(B=f,q=B+E,T?(z=v,O=Math.min(z+I,l),I=O-z):(O=v+I,z=Math.max(O-I,0),I=O-z)):(z=v,O=z+I,S?(q=f+E,B=Math.max(q-E,0),E=q-B):(B=f,q=Math.min(B+E,s),E=q-B)),this._box={l:B,t:z,w:E,h:I};var V=h>E,W=nn.barLength+2*nn.barPad,J=nn.barWidth+2*nn.barPad,te=f,ne=v+m;ne+J>l&&(ne=l-J);var oe=this.container.selectAll("rect.scrollbar-horizontal").data(V?[0]:[]);oe.exit().on(".drag",null).remove(),oe.enter().append("rect").classed("scrollbar-horizontal",!0).call(uO.fill,nn.barColor),V?(this.hbar=oe.attr({rx:nn.barRadius,ry:nn.barRadius,x:te,y:ne,width:W,height:J}),this._hbarXMin=te+W/2,this._hbarTranslateMax=E-W):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var fe=m>I,ve=nn.barWidth+2*nn.barPad,Me=nn.barLength+2*nn.barPad,Se=f+h,Ae=v;Se+ve>s&&(Se=s-ve);var we=this.container.selectAll("rect.scrollbar-vertical").data(fe?[0]:[]);we.exit().on(".drag",null).remove(),we.enter().append("rect").classed("scrollbar-vertical",!0).call(uO.fill,nn.barColor),fe?(this.vbar=we.attr({rx:nn.barRadius,ry:nn.barRadius,x:Se,y:Ae,width:ve,height:Me}),this._vbarYMin=Ae+Me/2,this._vbarTranslateMax=I-Me):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var Te=this.id,Ce=B-.5,Le=fe?q+ve+.5:q+.5,$e=z-.5,lt=V?O+J+.5:O+.5,it=a._topdefs.selectAll("#"+Te).data(V||fe?[0]:[]);if(it.exit().remove(),it.enter().append("clipPath").attr("id",Te).append("rect"),V||fe?(this._clipRect=it.select("rect").attr({x:Math.floor(Ce),y:Math.floor($e),width:Math.ceil(Le)-Math.floor(Ce),height:Math.ceil(lt)-Math.floor($e)}),this.container.call(vm.setClipUrl,Te,this.gd),this.bg.attr({x:f,y:v,width:h,height:m})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vm.setClipUrl,null),delete this._clipRect),V||fe){var gt=Zu.behavior.drag().on("dragstart",function(){Zu.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(gt);var We=Zu.behavior.drag().on("dragstart",function(){Zu.event.sourceEvent.preventDefault(),Zu.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));V&&this.hbar.on(".drag",null).call(We),fe&&this.vbar.on(".drag",null).call(We)}this.setTranslate(r,i)};nn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vm.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};nn.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Zu.event.dx),this.vbar&&(r-=Zu.event.dy),this.setTranslate(t,r)};nn.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Zu.event.deltaY),this.vbar&&(r+=Zu.event.deltaY),this.setTranslate(t,r)};nn.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var i=t+this._hbarXMin,a=i+this._hbarTranslateMax,s=fb.constrain(Zu.event.x,i,a),l=(s-i)/(a-i),f=this.position.w-this._box.w;t=l*f}if(this.vbar){var h=r+this._vbarYMin,v=h+this._vbarTranslateMax,m=fb.constrain(Zu.event.y,h,v),_=(m-h)/(v-h),T=this.position.h-this._box.h;r=_*T}this.setTranslate(t,r)};nn.prototype.setTranslate=function(t,r){var i=this.position.w-this._box.w,a=this.position.h-this._box.h;if(t=fb.constrain(t||0,0,i),r=fb.constrain(r||0,0,a),this.translateX=t,this.translateY=r,this.container.call(vm.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var s=t/i;this.hbar.call(vm.setTranslate,t+s*this._hbarTranslateMax,r)}if(this.vbar){var l=r/a;this.vbar.call(vm.setTranslate,t,r+l*this._vbarTranslateMax)}}});var bO=me((uxe,xO)=>{"use strict";var dm=Ja(),Kg=eo(),Qg=Oa(),pm=bi(),vl=Bt(),cb=co(),lce=Ri().arrayEditor,vO=ts().LINE_SPACING,aa=lb(),uce=cO();xO.exports=function(t){var r=t._fullLayout,i=vl.filterVisible(r[aa.name]);function a(T){Kg.autoMargin(t,gO(T))}var s=r._menulayer.selectAll("g."+aa.containerClassName).data(i.length>0?[0]:[]);if(s.enter().append("g").classed(aa.containerClassName,!0).style("cursor","pointer"),s.exit().each(function(){dm.select(this).selectAll("g."+aa.headerGroupClassName).each(a)}).remove(),i.length!==0){var l=s.selectAll("g."+aa.headerGroupClassName).data(i,fce);l.enter().append("g").classed(aa.headerGroupClassName,!0);for(var f=vl.ensureSingle(s,"g",aa.dropdownButtonGroupClassName,function(T){T.style("pointer-events","all")}),h=0;h{"use strict";var yce=lb();wO.exports={moduleType:"component",name:yce.name,layoutAttributes:ST(),supplyLayoutDefaults:lO(),draw:bO()}});var e1=me((cxe,AO)=>{"use strict";AO.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var LT=me((hxe,kO)=>{"use strict";var MO=qo(),gce=c_(),_ce=mn().extendDeepAll,xce=il().overrideAll,bce=Py(),SO=Ri().templatedArray,Od=e1(),wce=SO("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});kO.exports=xce(SO("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:wce,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:_ce(gce({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:bce.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:MO({})},font:MO({}),activebgcolor:{valType:"color",dflt:Od.gripBgActiveColor},bgcolor:{valType:"color",dflt:Od.railBgColor},bordercolor:{valType:"color",dflt:Od.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Od.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Od.tickLength},tickcolor:{valType:"color",dflt:Od.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Od.minorTickLength}}),"arraydraw","from-root")});var DO=me((vxe,LO)=>{"use strict";var mm=Bt(),CO=Wl(),EO=LT(),Tce=e1(),Ace=Tce.name,Mce=EO.steps;LO.exports=function(t,r){CO(t,r,{name:Ace,handleItemDefaults:Sce})};function Sce(e,t,r){function i(_,T){return mm.coerce(e,t,EO,_,T)}for(var a=CO(e,t,{name:"steps",handleItemDefaults:kce}),s=0,l=0;l{"use strict";var Yu=Ja(),hb=eo(),Kh=Oa(),Wu=bi(),dl=Bt(),Cce=dl.strTranslate,t1=co(),Ece=Ri().arrayEditor,ba=e1(),zT=ts(),IO=zT.LINE_SPACING,DT=zT.FROM_TL,PT=zT.FROM_BR;OO.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,a=Lce(i,t),s=i._infolayer.selectAll("g."+ba.containerClassName).data(a.length>0?[0]:[]);s.enter().append("g").classed(ba.containerClassName,!0).style("cursor",r?null:"ew-resize");function l(m){m._commandObserver&&(m._commandObserver.remove(),delete m._commandObserver),hb.autoMargin(t,RO(m))}if(s.exit().each(function(){Yu.select(this).selectAll("g."+ba.groupClassName).each(l)}).remove(),a.length!==0){var f=s.selectAll("g."+ba.groupClassName).data(a,Dce);f.enter().append("g").classed(ba.groupClassName,!0),f.exit().each(l).remove();for(var h=0;h0&&(f=f.transition().duration(t.transition.duration).ease(t.transition.easing)),f.attr("transform",Cce(l-ba.gripWidth*.5,t._dims.currentValueTotalHeight))}}function IT(e,t){var r=e._dims;return r.inputAreaStart+ba.stepInset+(r.inputAreaLength-2*ba.stepInset)*Math.min(1,Math.max(0,t))}function zO(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-ba.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*ba.stepInset-2*r.inputAreaStart)))}function Nce(e,t,r){var i=r._dims,a=dl.ensureSingle(e,"rect",ba.railTouchRectClass,function(s){s.call(NO,t,e,r).style("pointer-events","all")});a.attr({width:i.inputAreaLength,height:Math.max(i.inputAreaWidth,ba.tickOffset+r.ticklen+i.labelHeight)}).call(Kh.fill,r.bgcolor).attr("opacity",0),Wu.setTranslate(a,0,i.currentValueTotalHeight)}function Bce(e,t){var r=t._dims,i=r.inputAreaLength-ba.railInset*2,a=dl.ensureSingle(e,"rect",ba.railRectClass);a.attr({width:i,height:ba.railWidth,rx:ba.railRadius,ry:ba.railRadius,"shape-rendering":"crispEdges"}).call(Kh.stroke,t.bordercolor).call(Kh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Wu.setTranslate(a,ba.railInset,(r.inputAreaWidth-ba.railWidth)*.5+r.currentValueTotalHeight)}});var HO=me((pxe,VO)=>{"use strict";var Oce=e1();VO.exports={moduleType:"component",name:Oce.name,layoutAttributes:LT(),supplyLayoutDefaults:DO(),draw:UO()}});var db=me((mxe,ZO)=>{"use strict";var GO=Af();ZO.exports={bgcolor:{valType:"color",dflt:GO.background,editType:"plot"},bordercolor:{valType:"color",dflt:GO.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var RT=me((yxe,YO)=>{"use strict";YO.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var pb=me((gxe,WO)=>{"use strict";WO.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var JO=me(yb=>{"use strict";var Uce=Xn(),Vce=co(),XO=pb(),Hce=ts().LINE_SPACING,mb=XO.name;function jO(e){var t=e&&e[mb];return t&&t.visible}yb.isVisible=jO;yb.makeData=function(e){for(var t=Uce.list({_fullLayout:e},"x",!0),r=e.margin,i=[],a=0;a{"use strict";var gb=Bt(),KO=Ri(),QO=Xn(),Gce=db(),Zce=RT();$O.exports=function(t,r,i){var a=t[i],s=r[i];if(!(a.rangeslider||r._requestRangeslider[s._id]))return;gb.isPlainObject(a.rangeslider)||(a.rangeslider={});var l=a.rangeslider,f=KO.newContainer(s,"rangeslider");function h(O,H){return gb.coerce(l,f,Gce,O,H)}var v,m;function _(O,H){return gb.coerce(v,m,Zce,O,H)}var T=h("visible");if(T){h("bgcolor",r.plot_bgcolor),h("bordercolor"),h("borderwidth"),h("thickness"),h("autorange",!s.isValidRange(l.range)),h("range");var S=r._subplots;if(S)for(var C=S.cartesian.filter(function(O){return O.substr(0,O.indexOf("y"))===QO.name2id(i)}).map(function(O){return O.substr(O.indexOf("y"),O.length)}),D=gb.simpleMap(C,QO.id2name),E=0;E{"use strict";var Yce=Xn().list,Wce=Ky().getAutoRange,Xce=pb();tU.exports=function(t){for(var r=Yce(t,"x",!0),i=0;i{"use strict";var _b=Ja(),jce=la(),Jce=eo(),_n=Bt(),xb=_n.strTranslate,iU=bi(),Qh=Oa(),Kce=jy(),Qce=uT(),FT=Xn(),$ce=jl(),ehe=Oh(),Ia=pb();nU.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=we.max)Se=ne[Ae+1];else if(Me=we.pmax)Se=ne[Ae+1];else if(Me0?e.touches[0].clientX:0}function the(e,t,r,i){if(t._context.staticPlot)return;var a=e.select("rect."+Ia.slideBoxClassName).node(),s=e.select("rect."+Ia.grabAreaMinClassName).node(),l=e.select("rect."+Ia.grabAreaMaxClassName).node();function f(){var h=_b.event,v=h.target,m=aU(h),_=m-e.node().getBoundingClientRect().left,T=i.d2p(r._rl[0]),S=i.d2p(r._rl[1]),C=$ce.coverSlip();this.addEventListener("touchmove",D),this.addEventListener("touchend",E),C.addEventListener("mousemove",D),C.addEventListener("mouseup",E);function D(I){var B=aU(I),q=+B-m,z,O,H;switch(v){case a:if(H="ew-resize",T+q>r._length||S+q<0)return;z=T+q,O=S+q;break;case s:if(H="col-resize",T+q>r._length)return;z=T+q,O=S;break;case l:if(H="col-resize",S+q<0)return;z=T,O=S+q;break;default:H="ew-resize",z=_,O=_+q;break}if(O{"use strict";var che=Bt(),hhe=db(),vhe=RT(),qT=JO();sU.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:che.extendFlat({},hhe,{yaxis:vhe})}}},layoutAttributes:db(),handleDefaults:eU(),calcAutorange:rU(),draw:oU(),isVisible:qT.isVisible,makeData:qT.makeData,autoMarginOpts:qT.autoMarginOpts}});var bb=me((Axe,fU)=>{"use strict";var dhe=qo(),uU=Af(),phe=Ri().templatedArray,mhe=phe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});fU.exports={visible:{valType:"boolean",editType:"plot"},buttons:mhe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:dhe({editType:"plot"}),bgcolor:{valType:"color",dflt:uU.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:uU.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var NT=me((Mxe,cU)=>{"use strict";cU.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var dU=me((Sxe,vU)=>{"use strict";var wb=Bt(),yhe=Oa(),ghe=Ri(),_he=Wl(),hU=bb(),BT=NT();vU.exports=function(t,r,i,a,s){var l=t.rangeselector||{},f=ghe.newContainer(r,"rangeselector");function h(S,C){return wb.coerce(l,f,hU,S,C)}var v=_he(l,f,{name:"buttons",handleItemDefaults:xhe,calendar:s}),m=h("visible",v.length>0);if(m){var _=bhe(r,i,a);h("x",_[0]),h("y",_[1]),wb.noneOrAll(t,r,["x","y"]),h("xanchor"),h("yanchor"),wb.coerceFont(h,"font",i.font);var T=h("bgcolor");h("activecolor",yhe.contrast(T,BT.lightAmount,BT.darkAmount)),h("bordercolor"),h("borderwidth")}};function xhe(e,t,r,i){var a=i.calendar;function s(h,v){return wb.coerce(e,t,hU.buttons,h,v)}var l=s("visible");if(l){var f=s("step");f!=="all"&&(a&&a!=="gregorian"&&(f==="month"||f==="year")?t.stepmode="backward":s("stepmode"),s("count")),s("label")}}function bhe(e,t,r){for(var i=r.filter(function(f){return t[f].anchor===e._id}),a=0,s=0;s{"use strict";var whe=q3(),The=Bt().titleCase;pU.exports=function(t,r){var i=t._name,a={};if(r.step==="all")a[i+".autorange"]=!0;else{var s=Ahe(t,r);a[i+".range[0]"]=s[0],a[i+".range[1]"]=s[1]}return a};function Ahe(e,t){var r=e.range,i=new Date(e.r2l(r[1])),a=t.step,s=whe["utc"+The(a)],l=t.count,f;switch(t.stepmode){case"backward":f=e.l2r(+s.offset(i,-l));break;case"todate":var h=s.offset(i,-l);f=e.l2r(+s.ceil(h));break}var v=r[1];return[f,v]}});var AU=me((Cxe,TU)=>{"use strict";var Ab=Ja(),Mhe=la(),She=eo(),yU=Oa(),wU=bi(),Lc=Bt(),gU=Lc.strTranslate,Tb=co(),khe=Xn(),VT=ts(),_U=VT.LINE_SPACING,xU=VT.FROM_TL,bU=VT.FROM_BR,UT=NT(),Che=mU();TU.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(Ehe(t),Lhe);i.enter().append("g").classed("rangeselector",!0),i.exit().remove(),i.style({cursor:"pointer","pointer-events":"all"}),i.each(function(a){var s=Ab.select(this),l=a,f=l.rangeselector,h=s.selectAll("g.button").data(Lc.filterVisible(f.buttons));h.enter().append("g").classed("button",!0),h.exit().remove(),h.each(function(v){var m=Ab.select(this),_=Che(l,v);v._isActive=Dhe(l,v,_),m.call(OT,f,v),m.call(zhe,f,v,t),m.on("click",function(){t._dragged||Mhe.call("_guiRelayout",t,_)}),m.on("mouseover",function(){v._isHovered=!0,m.call(OT,f,v)}),m.on("mouseout",function(){v._isHovered=!1,m.call(OT,f,v)})}),Rhe(t,h,f,l._name,s)})};function Ehe(e){for(var t=khe.list(e,"x",!0),r=[],i=0;i{"use strict";MU.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:bb()}}},layoutAttributes:bb(),handleDefaults:dU(),draw:AU()}});var Mb=me(HT=>{"use strict";var kU=mn().extendFlat;HT.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},i=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",s=t.description?" "+t.description:"",l={x:kU({},r,{}),y:kU({},r,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};HT.defaults=function(e,t,r,i){var a=i&&i.x||[0,1],s=i&&i.y||[0,1],l=t.grid;if(l){var f=r("domain.column");f!==void 0&&(f{"use strict";var Fhe=Bt(),qhe=c0().counter,Nhe=Mb().attributes,CU=Ao().idRegex,Bhe=Ri(),GT={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[qhe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[CU.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[CU.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Nhe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Sb(e,t,r){var i=t[r+"axes"],a=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(i))return i;if(a.length)return a}function Ohe(e,t){var r=e.grid||{},i=Sb(t,r,"x"),a=Sb(t,r,"y");if(!e.grid&&!i&&!a)return;var s=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),l=Array.isArray(i),f=Array.isArray(a),h=l&&i!==r.xaxes&&f&&a!==r.yaxes,v,m;s?(v=r.subplots.length,m=r.subplots[0].length):(f&&(v=a.length),l&&(m=i.length));var _=Bhe.newContainer(t,"grid");function T(H,V){return Fhe.coerce(r,_,GT,H,V)}var S=T("rows",v),C=T("columns",m);if(!(S*C>1)){delete t.grid;return}if(!s&&!l&&!f){var D=T("pattern")==="independent";D&&(s=!0)}_._hasSubplotGrid=s;var E=T("roworder"),I=E==="top to bottom",B=s?.2:.1,q=s?.3:.1,z,O;h&&t._splomGridDflt&&(z=t._splomGridDflt.xside,O=t._splomGridDflt.yside),_._domains={x:EU("x",T,B,z,C),y:EU("y",T,q,O,S,I)}}function EU(e,t,r,i,a,s){var l=t(e+"gap",r),f=t("domain."+e);t(e+"side",i);for(var h=new Array(a),v=f[0],m=(f[1]-v)/(a-l),_=m*(1-l),T=0;T{"use strict";zU.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var FU=me((zxe,RU)=>{"use strict";var IU=Da(),Vhe=la(),Hhe=Bt(),Ghe=Ri(),Zhe=ZT();RU.exports=function(e,t,r,i){var a="error_"+i.axis,s=Ghe.newContainer(t,a),l=e[a]||{};function f(C,D){return Hhe.coerce(l,s,Zhe,C,D)}var h=l.array!==void 0||l.value!==void 0||l.type==="sqrt",v=f("visible",h);if(v!==!1){var m=f("type","array"in l?"data":"percent"),_=!0;m!=="sqrt"&&(_=f("symmetric",!((m==="data"?"arrayminus":"valueminus")in l))),m==="data"?(f("array"),f("traceref"),_||(f("arrayminus"),f("tracerefminus"))):(m==="percent"||m==="constant")&&(f("value"),_||f("valueminus"));var T="copy_"+i.inherit+"style";if(i.inherit){var S=t["error_"+i.inherit];(S||{}).visible&&f(T,!(l.color||IU(l.thickness)||IU(l.width)))}(!i.inherit||!s[T])&&(f("color",r),f("thickness"),f("width",Vhe.traceIs(t,"gl3d")?0:4))}}});var YT=me((Ixe,NU)=>{"use strict";NU.exports=function(t){var r=t.type,i=t.symmetric;if(r==="data"){var a=t.array||[];if(i)return function(v,m){var _=+a[m];return[_,_]};var s=t.arrayminus||[];return function(v,m){var _=+a[m],T=+s[m];return!isNaN(_)||!isNaN(T)?[T||0,_||0]:[NaN,NaN]}}else{var l=qU(r,t.value),f=qU(r,t.valueminus);return i||t.valueminus===void 0?function(v){var m=l(v);return[m,m]}:function(v){return[f(v),l(v)]}}};function qU(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var UU=me((Rxe,OU)=>{"use strict";var WT=Da(),Yhe=la(),XT=Xi(),Whe=Bt(),Xhe=YT();OU.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var VU=Ja(),$h=Da(),jhe=bi(),Jhe=rs();HU.exports=function(t,r,i,a){var s,l=i.xaxis,f=i.yaxis,h=a&&a.duration>0,v=t._context.staticPlot;r.each(function(m){var _=m[0].trace,T=_.error_x||{},S=_.error_y||{},C;_.ids&&(C=function(B){return B.id});var D=Jhe.hasMarkers(_)&&_.marker.maxdisplayed>0;!S.visible&&!T.visible&&(m=[]);var E=VU.select(this).selectAll("g.errorbar").data(m,C);if(E.exit().remove(),!!m.length){T.visible||E.selectAll("path.xerror").remove(),S.visible||E.selectAll("path.yerror").remove(),E.style("opacity",1);var I=E.enter().append("g").classed("errorbar",!0);h&&I.style("opacity",0).transition().duration(a.duration).style("opacity",1),jhe.setClipUrl(E,i.layerClipId,t),E.each(function(B){var q=VU.select(this),z=Khe(B,l,f);if(!(D&&!B.vis)){var O,H=q.select("path.yerror");if(S.visible&&$h(z.x)&&$h(z.yh)&&$h(z.ys)){var V=S.width;O="M"+(z.x-V)+","+z.yh+"h"+2*V+"m-"+V+",0V"+z.ys,z.noYS||(O+="m-"+V+",0h"+2*V),s=!H.size(),s?H=q.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("yerror",!0):h&&(H=H.transition().duration(a.duration).ease(a.easing)),H.attr("d",O)}else H.remove();var W=q.select("path.xerror");if(T.visible&&$h(z.y)&&$h(z.xh)&&$h(z.xs)){var J=(T.copy_ystyle?S:T).width;O="M"+z.xh+","+(z.y-J)+"v"+2*J+"m0,-"+J+"H"+z.xs,z.noXS||(O+="m0,-"+J+"v"+2*J),s=!W.size(),s?W=q.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("xerror",!0):h&&(W=W.transition().duration(a.duration).ease(a.easing)),W.attr("d",O)}else W.remove()}})}})};function Khe(e,t,r){var i={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(i.yh=r.c2p(e.yh),i.ys=r.c2p(e.ys),$h(i.ys)||(i.noYS=!0,i.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(i.xh=t.c2p(e.xh),i.xs=t.c2p(e.xs),$h(i.xs)||(i.noXS=!0,i.xs=t.c2p(e.xs,!0))),i}});var WU=me((qxe,YU)=>{"use strict";var Qhe=Ja(),ZU=Oa();YU.exports=function(t){t.each(function(r){var i=r[0].trace,a=i.error_y||{},s=i.error_x||{},l=Qhe.select(this);l.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(ZU.stroke,a.color),s.copy_ystyle&&(s=a),l.selectAll("path.xerror").style("stroke-width",s.thickness+"px").call(ZU.stroke,s.color)})}});var JU=me((Nxe,jU)=>{"use strict";var r1=Bt(),XU=il().overrideAll,a1=ZT(),Ud={error_x:r1.extendFlat({},a1),error_y:r1.extendFlat({},a1)};delete Ud.error_x.copy_zstyle;delete Ud.error_y.copy_zstyle;delete Ud.error_y.copy_ystyle;var i1={error_x:r1.extendFlat({},a1),error_y:r1.extendFlat({},a1),error_z:r1.extendFlat({},a1)};delete i1.error_x.copy_ystyle;delete i1.error_y.copy_ystyle;delete i1.error_z.copy_ystyle;delete i1.error_z.copy_zstyle;jU.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ud,bar:Ud,histogram:Ud,scatter3d:XU(i1,"calc","nested"),scattergl:XU(Ud,"calc","nested")}},supplyDefaults:FU(),calc:UU(),makeComputeError:YT(),plot:GU(),style:WU(),hoverInfo:$he};function $he(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var QU=me((Bxe,KU)=>{"use strict";KU.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var nV=me((Oxe,iV)=>{"use strict";var ev=Ja(),jT=Tf(),Cb=eo(),$U=la(),Dc=Xi(),kb=jl(),su=Bt(),ju=su.strTranslate,aV=mn().extendFlat,JT=Oh(),Xu=bi(),KT=Oa(),eve=jy(),tve=co(),rve=kf().flipScale,ave=nT(),ive=oT(),nve=Ru(),QT=ts(),eV=QT.LINE_SPACING,tV=QT.FROM_TL,rV=QT.FROM_BR,Qi=QU().cn;function ove(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Qi.colorbar).data(sve(e),function(i){return i._id});r.enter().append("g").attr("class",function(i){return i._id}).classed(Qi.colorbar,!0),r.each(function(i){var a=ev.select(this);su.ensureSingle(a,"rect",Qi.cbbg),su.ensureSingle(a,"g",Qi.cbfills),su.ensureSingle(a,"g",Qi.cblines),su.ensureSingle(a,"g",Qi.cbaxis,function(l){l.classed(Qi.crisp,!0)}),su.ensureSingle(a,"g",Qi.cbtitleunshift,function(l){l.append("g").classed(Qi.cbtitle,!0)}),su.ensureSingle(a,"rect",Qi.cboutline);var s=lve(a,i,e);s&&s.then&&(e._promises||[]).push(s),e._context.edits.colorbarPosition&&uve(a,i,e)}),r.exit().each(function(i){Cb.autoMargin(e,i._id)}).remove(),r.order()}function sve(e){var t=e._fullLayout,r=e.calcdata,i=[],a,s,l,f;function h(q){return aV(q,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function v(){typeof f.calc=="function"?f.calc(e,l,a):(a._fillgradient=s.reversescale?rve(s.colorscale):s.colorscale,a._zrange=[s[f.min],s[f.max]])}for(var m=0;m1){var ze=Math.pow(10,Math.floor(Math.log(de)/Math.LN10));xt*=ze*su.roundUp(de/ze,[2,5,10]),(Math.abs(oe.start)/oe.size+1e-6)%1<2e-6&&(nt.tick0=0)}nt.dtick=xt}nt.domain=i?[We+C/z.h,We+Te-C/z.h]:[We+S/z.w,We+Te-S/z.w],nt.setScale(),e.attr("transform",ju(Math.round(z.l),Math.round(z.t)));var pe=e.select("."+Qi.cbtitleunshift).attr("transform",ju(-Math.round(z.l),-Math.round(z.t))),rt=nt.ticklabelposition,mt=nt.title.font.size,Xe=e.select("."+Qi.cbaxis),Ft,Lt=0,Tt=0;function It(Ot,Be){var ft={propContainer:nt,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:q._dfltTitle.colorbar,containerGroup:e.select("."+Qi.cbtitle)},or=Ot.charAt(0)==="h"?Ot.substr(1):"h"+Ot;e.selectAll("."+or+",."+or+"-math-group").remove(),eve.draw(r,Ot,aV(ft,Be||{}))}function Gt(){if(i&&wt||!i&&!wt){var Ot,Be;W==="top"&&(Ot=S+z.l+Ce*D,Be=C+z.t+Le*(1-We-Te)+3+mt*.75),W==="bottom"&&(Ot=S+z.l+Ce*D,Be=C+z.t+Le*(1-We)-3-mt*.25),W==="right"&&(Be=C+z.t+Le*E+3+mt*.75,Ot=S+z.l+Ce*We),It(nt._id+"title",{attributes:{x:Ot,y:Be,"text-anchor":i?"start":"middle"}})}}function Ct(){if(i&&!wt||!i&&wt){var Ot=nt.position||0,Be=nt._offset+nt._length/2,ft,or;if(W==="right")or=Be,ft=z.l+Ce*Ot+10+mt*(nt.showticklabels?1:.5);else if(ft=Be,W==="bottom"&&(or=z.t+Le*Ot+10+(rt.indexOf("inside")===-1?nt.tickfont.size:0)+(nt.ticks!=="inside"&&t.ticklen||0)),W==="top"){var Cr=V.text.split("
").length;or=z.t+Le*Ot+10-Se-eV*mt*Cr}It((i?"h":"v")+nt._id+"title",{avoid:{selection:ev.select(r).selectAll("g."+nt._id+"tick"),side:W,offsetTop:i?0:z.t,offsetLeft:i?z.l:0,maxShift:i?q.width:q.height},attributes:{x:ft,y:or,"text-anchor":"middle"},transform:{rotate:i?-90:0,offset:0}})}}function Mt(){if(!i&&!wt||i&&wt){var Ot=e.select("."+Qi.cbtitle),Be=Ot.select("text"),ft=[-h/2,h/2],or=Ot.select(".h"+nt._id+"title-math-group").node(),Cr=15.6;Be.node()&&(Cr=parseInt(Be.node().style.fontSize,10)*eV);var Sr;if(or?(Sr=Xu.bBox(or),Tt=Sr.width,Lt=Sr.height,Lt>Cr&&(ft[1]-=(Lt-Cr)/2)):Be.node()&&!Be.classed(Qi.jsPlaceholder)&&(Sr=Xu.bBox(Be.node()),Tt=Sr.width,Lt=Sr.height),i){if(Lt){if(Lt+=5,W==="top")nt.domain[1]-=Lt/z.h,ft[1]*=-1;else{nt.domain[0]+=Lt/z.h;var Oe=tve.lineCount(Be);ft[1]+=(1-Oe)*Cr}Ot.attr("transform",ju(ft[0],ft[1])),nt.setScale()}}else Tt&&(W==="right"&&(nt.domain[0]+=(Tt+mt/2)/z.w),Ot.attr("transform",ju(ft[0],ft[1])),nt.setScale())}e.selectAll("."+Qi.cbfills+",."+Qi.cblines).attr("transform",i?ju(0,Math.round(z.h*(1-nt.domain[1]))):ju(Math.round(z.w*nt.domain[0]),0)),Xe.attr("transform",i?ju(0,Math.round(-z.t)):ju(Math.round(-z.l),0));var yt=e.select("."+Qi.cbfills).selectAll("rect."+Qi.cbfill).attr("style","").data(ve);yt.enter().append("rect").classed(Qi.cbfill,!0).attr("style",""),yt.exit().remove();var qt=J.map(nt.c2p).map(Math.round).sort(function(zr,lr){return zr-lr});yt.each(function(zr,lr){var At=[lr===0?J[0]:(ve[lr]+ve[lr-1])/2,lr===ve.length-1?J[1]:(ve[lr]+ve[lr+1])/2].map(nt.c2p).map(Math.round);i&&(At[1]=su.constrain(At[1]+(At[1]>At[0])?1:-1,qt[0],qt[1]));var Fe=ev.select(this).attr(i?"x":"y",$e).attr(i?"y":"x",ev.min(At)).attr(i?"width":"height",Math.max(Se,2)).attr(i?"height":"width",Math.max(ev.max(At)-ev.min(At),2));if(t._fillgradient)Xu.gradient(Fe,r,t._id,i?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Ge=ne(zr).replace("e-","");Fe.attr("fill",jT(Ge).toHexString())}});var Qt=e.select("."+Qi.cblines).selectAll("path."+Qi.cbline).data(H.color&&H.width?Me:[]);Qt.enter().append("path").classed(Qi.cbline,!0),Qt.exit().remove(),Qt.each(function(zr){var lr=$e,At=Math.round(nt.c2p(zr))+H.width/2%1;ev.select(this).attr("d","M"+(i?lr+","+At:At+","+lr)+(i?"h":"v")+Se).call(Xu.lineGroupStyle,H.width,te(zr),H.dash)}),Xe.selectAll("g."+nt._id+"tick,path").remove();var Vt=$e+Se+(h||0)/2-(t.ticks==="outside"?1:0),tr=Dc.calcTicks(nt),ar=Dc.getTickSigns(nt)[2];return Dc.drawTicks(r,nt,{vals:nt.ticks==="inside"?Dc.clipEnds(nt,tr):tr,layer:Xe,path:Dc.makeTickPath(nt,Vt,ar),transFn:Dc.makeTransTickFn(nt)}),Dc.drawLabels(r,nt,{vals:tr,layer:Xe,transFn:Dc.makeTransTickLabelFn(nt),labelFns:Dc.makeLabelFns(nt,Vt)})}function Ut(){var Ot,Be=Se+h/2;rt.indexOf("inside")===-1&&(Ot=Xu.bBox(Xe.node()),Be+=i?Ot.width:Ot.height),Ft=pe.select("text");var ft=0,or=i&&W==="top",Cr=!i&&W==="right",Sr=0;if(Ft.node()&&!Ft.classed(Qi.jsPlaceholder)){var Oe,yt=pe.select(".h"+nt._id+"title-math-group").node();yt&&(i&&wt||!i&&!wt)?(Ot=Xu.bBox(yt),ft=Ot.width,Oe=Ot.height):(Ot=Xu.bBox(pe.node()),ft=Ot.right-z.l-(i?$e:Et),Oe=Ot.bottom-z.t-(i?Et:$e),!i&&W==="top"&&(Be+=Ot.height,Sr=Ot.height)),Cr&&(Ft.attr("transform",ju(ft/2+mt/2,0)),ft*=2),Be=Math.max(Be,i?ft:Oe)}var qt=(i?S:C)*2+Be+v+h/2,Qt=0;!i&&V.text&&T==="bottom"&&E<=0&&(Qt=qt/2,qt+=Qt,Sr+=Qt),q._hColorbarMoveTitle=Qt,q._hColorbarMoveCBTitle=Sr;var Vt=v+h,tr=(i?$e:Et)-Vt/2-(i?S:0),ar=(i?Et:$e)-(i?we:C+Sr-Qt);e.select("."+Qi.cbbg).attr("x",tr).attr("y",ar).attr(i?"width":"height",Math.max(qt-Qt,2)).attr(i?"height":"width",Math.max(we+Vt,2)).call(KT.fill,m).call(KT.stroke,t.bordercolor).style("stroke-width",v);var zr=Cr?Math.max(ft-10,0):0;e.selectAll("."+Qi.cboutline).attr("x",(i?$e:Et+S)+zr).attr("y",(i?Et+C-we:$e)+(or?Lt:0)).attr(i?"width":"height",Math.max(Se,2)).attr(i?"height":"width",Math.max(we-(i?2*C+Lt:2*S+zr),2)).call(KT.stroke,t.outlinecolor).style({fill:"none","stroke-width":h});var lr=i?lt*qt:0,At=i?0:(1-it)*qt-Sr;if(lr=B?z.l-lr:-lr,At=I?z.t-At:-At,e.attr("transform",ju(lr,At)),!i&&(v||jT(m).getAlpha()&&!jT.equals(q.paper_bgcolor,m))){var Fe=Xe.selectAll("text"),Ge=Fe[0].length,bt=e.select("."+Qi.cbbg).node(),dt=Xu.bBox(bt),gr=Xu.getTranslate(e),xr=2;Fe.each(function($i,on){var Ei=0,ma=Ge-1;if(on===Ei||on===ma){var Gr=Xu.bBox(this),$a=Xu.getTranslate(this),Zr;if(on===ma){var di=Gr.right+$a.x,ga=dt.right+gr.x+Et-v-xr+D;Zr=ga-di,Zr>0&&(Zr=0)}else if(on===Ei){var le=Gr.left+$a.x,ee=dt.left+gr.x+Et+v+xr;Zr=ee-le,Zr<0&&(Zr=0)}Zr&&(Ge<3?this.setAttribute("transform","translate("+Zr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var mr={},Hr=tV[_],pa=rV[_],Ea=tV[T],Ua=rV[T],Ki=qt-Se;i?(s==="pixels"?(mr.y=E,mr.t=we*Ea,mr.b=we*Ua):(mr.t=mr.b=0,mr.yt=E+a*Ea,mr.yb=E-a*Ua),f==="pixels"?(mr.x=D,mr.l=qt*Hr,mr.r=qt*pa):(mr.l=Ki*Hr,mr.r=Ki*pa,mr.xl=D-l*Hr,mr.xr=D+l*pa)):(s==="pixels"?(mr.x=D,mr.l=we*Hr,mr.r=we*pa):(mr.l=mr.r=0,mr.xl=D+a*Hr,mr.xr=D-a*pa),f==="pixels"?(mr.y=1-E,mr.t=qt*Ea,mr.b=qt*Ua):(mr.t=Ki*Ea,mr.b=Ki*Ua,mr.yt=E-l*Ea,mr.yb=E+l*Ua));var qi=t.y<.5?"b":"t",vi=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Ti={r:q.width-tr-lr,l:tr+mr.r,b:q.height-ar-At,t:ar+mr.b};B&&I?Cb.autoMargin(r,t._id,mr):B?r._fullLayout._reservedMargin[t._id][qi]=Ti[qi]:I||i?r._fullLayout._reservedMargin[t._id][vi]=Ti[vi]:r._fullLayout._reservedMargin[t._id][qi]=Ti[qi]}return su.syncOrAsync([Cb.previousPromises,Gt,Mt,Ct,Cb.previousPromises,Ut],r)}function uve(e,t,r){var i=t.orientation==="v",a=r._fullLayout,s=a._size,l,f,h;kb.init({element:e.node(),gd:r,prepFn:function(){l=e.attr("transform"),JT(e)},moveFn:function(v,m){e.attr("transform",l+ju(v,m)),f=kb.align((i?t._uFrac:t._vFrac)+v/s.w,i?t._thickFrac:t._lenFrac,0,1,t.xanchor),h=kb.align((i?t._vFrac:1-t._uFrac)-m/s.h,i?t._lenFrac:t._thickFrac,0,1,t.yanchor);var _=kb.getCursor(f,h,t.xanchor,t.yanchor);JT(e,_)},doneFn:function(){if(JT(e),f!==void 0&&h!==void 0){var v={};v[t._propPrefix+"x"]=f,v[t._propPrefix+"y"]=h,t._traceIndex!==void 0?$U.call("_guiRestyle",r,v,t._traceIndex):$U.call("_guiRelayout",r,v)}}})}function fve(e,t,r){var i=t._levels,a=[],s=[],l,f,h=i.end+i.size/100,v=i.size,m=1.001*r[0]-.001*r[1],_=1.001*r[1]-.001*r[0];for(f=0;f<1e5&&(l=i.start+f*v,!(v>0?l>=h:l<=h));f++)l>m&&l<_&&a.push(l);if(t._fillgradient)s=[0];else if(typeof t._fillcolor=="function"){var T=t._filllevels;if(T)for(h=T.end+T.size/100,v=T.size,f=0;f<1e5&&(l=T.start+f*v,!(v>0?l>=h:l<=h));f++)l>r[0]&&l{"use strict";oV.exports={moduleType:"component",name:"colorbar",attributes:V_(),supplyDefaults:e5(),draw:nV().draw,hasColorbar:Hw()}});var uV=me((Vxe,lV)=>{"use strict";lV.exports={moduleType:"component",name:"legend",layoutAttributes:J5(),supplyLayoutDefaults:$5(),draw:h4(),style:l4()}});var cV=me((Hxe,fV)=>{"use strict";fV.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var vV=me((Gxe,hV)=>{"use strict";hV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var eA=me((Zxe,yV)=>{"use strict";var hve=la(),mV=Bt(),$T=mV.extendFlat,dV=mV.extendDeep;function pV(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function vve(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}yV.exports=function(t,r){var i,a=t.data,s=t.layout,l=dV([],a),f=dV({},s,pV(r.tileClass)),h=t._context||{};if(r.width&&(f.width=r.width),r.height&&(f.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){f.annotations=[];var v=Object.keys(f);for(i=0;i{"use strict";var dve=C_().EventEmitter,pve=la(),mve=Bt(),gV=Dd(),yve=eA(),gve=Fx(),_ve=qx();function xve(e,t){var r=new dve,i=yve(e,{format:"png"}),a=i.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function s(){var f=gV.getDelay(a._fullLayout);setTimeout(function(){var h=gve(a),v=document.createElement("canvas");v.id=mve.randstr(),r=_ve({format:t.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:v,emitter:r,svg:h}),r.clean=function(){a&&document.body.removeChild(a)}},f)}var l=gV.getRedrawFunc(a);return pve.call("_doPlot",a,i.data,i.layout,i.config).then(l).then(s).catch(function(f){r.emit("error",f)}),r}_V.exports=xve});var TV=me((Wxe,wV)=>{"use strict";var bV=Dd(),bve={getDelay:bV.getDelay,getRedrawFunc:bV.getRedrawFunc,clone:eA(),toSVG:Fx(),svgToImg:qx(),toImage:xV(),downloadImage:E6()};wV.exports=bve});var MV=me(Pc=>{"use strict";Pc.version=G1().version;y7();ok();var wve=la(),n1=Pc.register=wve.register,rA=EF(),AV=Object.keys(rA);for(Eb=0;Eb{"use strict";SV.exports=MV()});var aA=me((Kxe,LV)=>{"use strict";var Tve=nl().hovertemplateAttrs,Ave=nl().texttemplateAttrs,Mve=px(),Vf=kc(),Sve=ms(),CV=xc(),kve=hc().dash,Vd=mn().extendFlat,Cve=il().overrideAll,lu=Vf.marker,EV=Vf.line,Eve=lu.line,Jxe=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");LV.exports=Cve({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:Vd({},Vf.mode,{dflt:"markers"}),text:Vd({},Vf.text,{}),texttemplate:Ave({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:Vd({},Vf.hovertext,{}),textfont:Vf.textfont,textposition:Vf.textposition,line:{color:EV.color,width:EV.width,dash:kve},connectgaps:Vf.connectgaps,marker:Vd({symbol:lu.symbol,opacity:lu.opacity,angle:lu.angle,angleref:Vd({},lu.angleref,{values:["previous","up","north"]}),standoff:lu.standoff,size:lu.size,sizeref:lu.sizeref,sizemin:lu.sizemin,sizemode:lu.sizemode,colorbar:lu.colorbar,line:Vd({width:Eve.width},CV("marker.line")),gradient:lu.gradient},CV("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Mve(),selected:Vf.selected,unselected:Vf.unselected,hoverinfo:Vd({},Sve.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:Tve()},"calc","nested")});var zc=me((Qxe,qV)=>{"use strict";var Lve=g_(),DV="1.13.4",RV='\xA9 OpenStreetMap contributors',PV=['\xA9 Carto',RV].join(" "),zV=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),Dve=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),FV={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:RV,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:PV,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:PV,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:zV,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:zV,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:Dve,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},IV=Lve(FV);qV.exports={requiredVersion:DV,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:FV,styleValuesNonMapbox:IV,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+DV+"."].join(` +`)};function X(ye){return ye.map(ae).join(y)}function ae(ye){return P.test(ye)?'"'+ye.replace(/\"/g,'""')+'"':ye}return U},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Kn,vu,Vi,pl,Qd=this[Ae(this,"requestAnimationFrame")]||function(y){setTimeout(y,17)};e.timer=function(){qc.apply(this,arguments)};function qc(y,M,P){var N=arguments.length;N<2&&(M=0),N<3&&(P=Date.now());var U=P+M,Z={c:y,t:U,n:null};return vu?vu.n=Z:Kn=Z,vu=Z,Vi||(pl=clearTimeout(pl),Vi=1,Qd(Nc)),Z}function Nc(){var y=hv(),M=vv()-y;M>24?(isFinite(M)&&(clearTimeout(pl),pl=setTimeout(Nc,M)),Vi=0):(Vi=1,Qd(Nc))}e.timer.flush=function(){hv(),vv()};function hv(){for(var y=Date.now(),M=Kn;M;)y>=M.t&&M.c(y-M.t)&&(M.c=null),M=M.n;return y}function vv(){for(var y,M=Kn,P=1/0;M;)M.c?(M.t=0;--X)Ie.push(U[ye[Pe[X]][2]]);for(X=+Qe;X1&&Ua(y[P[N-2]],y[P[N-1]],y[U])<=0;)--N;P[N++]=U}return P.slice(0,N)}function Ku(y,M){return y[0]-M[0]||y[1]-M[1]}e.geom.polygon=function(y){return We(y,Zf),y};var Zf=e.geom.polygon.prototype=[];Zf.area=function(){for(var y=-1,M=this.length,P,N=this[M-1],U=0;++yGe)X=X.L;else if($=M-sn(X,P),$>Ge){if(!X.R){N=X;break}X=X.R}else{Z>-Ge?(N=X.P,U=X):$>-Ge?(N=X,U=X.N):N=U=X;break}var ae=oo(y);if(pu.insert(N,ae),!(!N&&!U)){if(N===U){wa(N),U=oo(N.site),pu.insert(ae,U),ae.edge=U.edge=Ws(N.site,ae.site),kr(N),kr(U);return}if(!U){ae.edge=Ws(N.site,ae.site);return}wa(N),wa(U);var ye=N.site,_e=ye.x,Pe=ye.y,De=y.x-_e,Qe=y.y-Pe,st=U.site,Ie=st.x-_e,Ve=st.y-Pe,Ke=2*(De*Ve-Qe*Ie),ct=De*De+Qe*Qe,ot=Ie*Ie+Ve*Ve,je={x:(Ve*ct-Qe*ot)/Ke+_e,y:(De*ot-Ie*ct)/Ke+Pe};fs(U.edge,ye,st,je),ae.edge=Ws(ye,y,null,je),U.edge=Ws(y,st,null,je),kr(N),kr(U)}}function mu(y,M){var P=y.site,N=P.x,U=P.y,Z=U-M;if(!Z)return N;var $=y.P;if(!$)return-1/0;P=$.site;var X=P.x,ae=P.y,ye=ae-M;if(!ye)return X;var _e=X-N,Pe=1/Z-1/ye,De=_e/ye;return Pe?(-De+Math.sqrt(De*De-2*Pe*(_e*_e/(-2*ye)-ae+ye/2+U-Z/2)))/Pe+N:(N+X)/2}function sn(y,M){var P=y.N;if(P)return mu(P,M);var N=y.site;return N.y===M?N.x:1/0}function gl(y){this.site=y,this.edges=[]}gl.prototype.prepare=function(){for(var y=this.edges,M=y.length,P;M--;)P=y[M].edge,(!P.b||!P.a)&&y.splice(M,1);return y.sort($u),y.length};function bs(y){for(var M=y[0][0],P=y[1][0],N=y[0][1],U=y[1][1],Z,$,X,ae,ye=Go,_e=ye.length,Pe,De,Qe,st,Ie,Ve;_e--;)if(Pe=ye[_e],!(!Pe||!Pe.prepare()))for(Qe=Pe.edges,st=Qe.length,De=0;DeGe||z(ae-$)>Ge)&&(Qe.splice(De,0,new xl(yu(Pe.site,Ve,z(X-M)Ge?{x:M,y:z(Z-M)Ge?{x:z($-U)Ge?{x:P,y:z(Z-P)Ge?{x:z($-N)=-bt)){var De=ae*ae+ye*ye,Qe=_e*_e+Ve*Ve,st=(Ve*De-ye*Qe)/Pe,Ie=(ae*Qe-_e*De)/Pe,Ve=Ie+X,Ke=pv.pop()||new ef;Ke.arc=y,Ke.site=U,Ke.x=st+$,Ke.y=Ve+Math.sqrt(st*st+Ie*Ie),Ke.cy=Ve,y.circle=Ke;for(var ct=null,ot=Qu._;ot;)if(Ke.y0)){if(Ie/=Qe,Qe<0){if(Ie0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}if(Ie=P-X,!(!Qe&&Ie<0)){if(Ie/=Qe,Qe<0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}else if(Qe>0){if(Ie0)){if(Ie/=st,st<0){if(Ie0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}if(Ie=N-ae,!(!st&&Ie<0)){if(Ie/=st,st<0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}else if(st>0){if(Ie0&&(U.a={x:X+Pe*Qe,y:ae+Pe*st}),De<1&&(U.b={x:X+De*Qe,y:ae+De*st}),U}}}}}}function ws(y){for(var M=yl,P=Ta(y[0][0],y[0][1],y[1][0],y[1][1]),N=M.length,U;N--;)U=M[N],(!_l(U,y)||!P(U)||z(U.a.x-U.b.x)=Z)return;if(_e>De){if(!N)N={x:st,y:$};else if(N.y>=X)return;P={x:st,y:X}}else{if(!N)N={x:st,y:X};else if(N.y<$)return;P={x:st,y:$}}}else if(Ve=(_e-De)/(Qe-Pe),Ke=Ie-Ve*st,Ve<-1||Ve>1)if(_e>De){if(!N)N={x:($-Ke)/Ve,y:$};else if(N.y>=X)return;P={x:(X-Ke)/Ve,y:X}}else{if(!N)N={x:(X-Ke)/Ve,y:X};else if(N.y<$)return;P={x:($-Ke)/Ve,y:$}}else if(Pe=Z)return;P={x:Z,y:Ve*Z+Ke}}else{if(!N)N={x:Z,y:Ve*Z+Ke};else if(N.x=_e&&Ke.x<=De&&Ke.y>=Pe&&Ke.y<=Qe?[[_e,Qe],[De,Qe],[De,Pe],[_e,Pe]]:[];ct.point=ae[Ie]}),ye}function X(ae){return ae.map(function(ye,_e){return{x:Math.round(N(ye,_e)/Ge)*Ge,y:Math.round(U(ye,_e)/Ge)*Ge,i:_e}})}return $.links=function(ae){return gu(X(ae)).edges.filter(function(ye){return ye.l&&ye.r}).map(function(ye){return{source:ae[ye.l.i],target:ae[ye.r.i]}})},$.triangles=function(ae){var ye=[];return gu(X(ae)).cells.forEach(function(_e,Pe){for(var De=_e.site,Qe=_e.edges.sort($u),st=-1,Ie=Qe.length,Ve,Ke,ct=Qe[Ie-1].edge,ot=ct.l===De?ct.r:ct.l;++stot&&(ot=_e.x),_e.y>je&&(je=_e.y),Qe.push(_e.x),st.push(_e.y);else for(Ie=0;Ieot&&(ot=Ht),nr>je&&(je=nr),Qe.push(Ht),st.push(nr)}var cr=ot-Ke,ur=je-ct;cr>ur?je=ct+cr:ot=Ke+ur;function Dr(Ur,Kr,Na,ri,ei,Xt,Jr,oa){if(!(isNaN(Na)||isNaN(ri)))if(Ur.leaf){var sa=Ur.x,Pi=Ur.y;if(sa!=null)if(z(sa-Na)+z(Pi-ri)<.01)Ir(Ur,Kr,Na,ri,ei,Xt,Jr,oa);else{var Hi=Ur.point;Ur.x=Ur.y=Ur.point=null,Ir(Ur,Hi,sa,Pi,ei,Xt,Jr,oa),Ir(Ur,Kr,Na,ri,ei,Xt,Jr,oa)}else Ur.x=Na,Ur.y=ri,Ur.point=Kr}else Ir(Ur,Kr,Na,ri,ei,Xt,Jr,oa)}function Ir(Ur,Kr,Na,ri,ei,Xt,Jr,oa){var sa=(ei+Jr)*.5,Pi=(Xt+oa)*.5,Hi=Na>=sa,tn=ri>=Pi,wi=tn<<1|Hi;Ur.leaf=!1,Ur=Ur.nodes[wi]||(Ur.nodes[wi]=xn()),Hi?ei=sa:Jr=sa,tn?Xt=Pi:oa=Pi,Dr(Ur,Kr,Na,ri,ei,Xt,Jr,oa)}var ta=xn();if(ta.add=function(Ur){Dr(ta,Ur,+Pe(Ur,++Ie),+De(Ur,Ie),Ke,ct,ot,je)},ta.visit=function(Ur){zn(Ur,ta,Ke,ct,ot,je)},ta.find=function(Ur){return rp(ta,Ur[0],Ur[1],Ke,ct,ot,je)},Ie=-1,M==null){for(;++IeZ||De>$||Qe=Ht,ur=P>=nr,Dr=ur<<1|cr,Ir=Dr+4;DrP&&(Z=M.slice(P,Z),X[$]?X[$]+=Z:X[++$]=Z),(N=N[0])===(U=U[0])?X[$]?X[$]+=U:X[++$]=U:(X[++$]=null,ae.push({i:$,x:Eo(N,U)})),P=Xf.lastIndex;return P=0&&!(N=e.interpolators[P](y,M)););return N}e.interpolators=[function(y,M){var P=typeof M;return(P==="string"?si.has(M.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(M)?tf:Zo:M instanceof ga?tf:Array.isArray(M)?Yo:P==="object"&&isNaN(M)?ln:Eo)(y,M)}],e.interpolateArray=Yo;function Yo(y,M){var P=[],N=[],U=y.length,Z=M.length,$=Math.min(y.length,M.length),X;for(X=0;X<$;++X)P.push(un(y[X],M[X]));for(;X=0?y.slice(0,M):y,N=M>=0?y.slice(M+1):"in";return P=km.get(P)||Xs,N=Wo.get(N)||Se,Cm(N(P.apply(null,t.call(arguments,1))))};function Cm(y){return function(M){return M<=0?0:M>=1?1:y(M)}}function js(y){return function(M){return 1-y(1-M)}}function In(y){return function(M){return .5*(M<.5?y(2*M):2-y(2-2*M))}}function Em(y){return y*y}function bl(y){return y*y*y}function wl(y){if(y<=0)return 0;if(y>=1)return 1;var M=y*y,P=M*y;return 4*(y<.5?P:3*(y-M)+P-.75)}function gv(y){return function(M){return Math.pow(M,y)}}function Lm(y){return 1-Math.cos(y*pr)}function Dm(y){return Math.pow(2,10*(y-1))}function Oc(y){return 1-Math.sqrt(1-y*y)}function Pm(y,M){var P;return arguments.length<2&&(M=.45),arguments.length?P=M/yr*Math.asin(1/y):(y=1,P=M/4),function(N){return 1+y*Math.pow(2,-10*N)*Math.sin((N-P)*yr/M)}}function zm(y){return y||(y=1.70158),function(M){return M*M*((y+1)*M-y)}}function Im(y){return y<1/2.75?7.5625*y*y:y<2/2.75?7.5625*(y-=1.5/2.75)*y+.75:y<2.5/2.75?7.5625*(y-=2.25/2.75)*y+.9375:7.5625*(y-=2.625/2.75)*y+.984375}e.interpolateHcl=_v;function _v(y,M){y=e.hcl(y),M=e.hcl(M);var P=y.h,N=y.c,U=y.l,Z=M.h-P,$=M.c-N,X=M.l-U;return isNaN($)&&($=0,N=isNaN(N)?M.c:N),isNaN(Z)?(Z=0,P=isNaN(P)?M.h:P):Z>180?Z-=360:Z<-180&&(Z+=360),function(ae){return Ne(P+Z*ae,N+$*ae,U+X*ae)+""}}e.interpolateHsl=Rm;function Rm(y,M){y=e.hsl(y),M=e.hsl(M);var P=y.h,N=y.s,U=y.l,Z=M.h-P,$=M.s-N,X=M.l-U;return isNaN($)&&($=0,N=isNaN(N)?M.s:N),isNaN(Z)?(Z=0,P=isNaN(P)?M.h:P):Z>180?Z-=360:Z<-180&&(Z+=360),function(ae){return se(P+Z*ae,N+$*ae,U+X*ae)+""}}e.interpolateLab=Fm;function Fm(y,M){y=e.lab(y),M=e.lab(M);var P=y.l,N=y.a,U=y.b,Z=M.l-P,$=M.a-N,X=M.b-U;return function(ae){return Yt(P+Z*ae,N+$*ae,U+X*ae)+""}}e.interpolateRound=xv;function xv(y,M){return M-=y,function(P){return Math.round(y+M*P)}}e.transform=function(y){var M=i.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(P){if(P!=null){M.setAttribute("transform",P);var N=M.transform.baseVal.consolidate()}return new ap(N?N.matrix:wv)})(y)};function ap(y){var M=[y.a,y.b],P=[y.c,y.d],N=bv(M),U=ip(M,P),Z=bv(qm(P,M,-U))||0;M[0]*P[1]180?M+=360:M-y>180&&(y+=360),N.push({i:P.push(_u(P)+"rotate(",null,")")-2,x:Eo(y,M)})):M&&P.push(_u(P)+"rotate("+M+")")}function op(y,M,P,N){y!==M?N.push({i:P.push(_u(P)+"skewX(",null,")")-2,x:Eo(y,M)}):M&&P.push(_u(P)+"skewX("+M+")")}function sp(y,M,P,N){if(y[0]!==M[0]||y[1]!==M[1]){var U=P.push(_u(P)+"scale(",null,",",null,")");N.push({i:U-4,x:Eo(y[0],M[0])},{i:U-2,x:Eo(y[1],M[1])})}else(M[0]!==1||M[1]!==1)&&P.push(_u(P)+"scale("+M+")")}function lp(y,M){var P=[],N=[];return y=e.transform(y),M=e.transform(M),np(y.translate,M.translate,P,N),Nm(y.rotate,M.rotate,P,N),op(y.skew,M.skew,P,N),sp(y.scale,M.scale,P,N),y=M=null,function(U){for(var Z=-1,$=N.length,X;++Z<$;)P[(X=N[Z]).i]=X.x(U);return P.join("")}}function Bm(y,M){return M=(M-=y=+y)||1/M,function(P){return(P-y)/M}}function hs(y,M){return M=(M-=y=+y)||1/M,function(P){return Math.max(0,Math.min(1,(P-y)/M))}}e.layout={},e.layout.bundle=function(){return function(y){for(var M=[],P=-1,N=y.length;++P0?Z=je:(P.c=null,P.t=NaN,P=null,M.end({type:"end",alpha:Z=0})):je>0&&(M.start({type:"start",alpha:Z=je}),P=qc(y.tick)),y):Z},y.start=function(){var je,Ht=Qe.length,nr=st.length,cr=N[0],ur=N[1],Dr,Ir;for(je=0;je=0;)Z.push(_e=ye[ae]),_e.parent=X,_e.depth=X.depth+1;P&&(X.value=0),X.children=ye}else P&&(X.value=+P.call(N,X,X.depth)||0),delete X.children;return vs(U,function(Pe){var De,Qe;y&&(De=Pe.children)&&De.sort(y),P&&(Qe=Pe.parent)&&(Qe.value+=Pe.value)}),$}return N.sort=function(U){return arguments.length?(y=U,N):y},N.children=function(U){return arguments.length?(M=U,N):M},N.value=function(U){return arguments.length?(P=U,N):P},N.revalue=function(U){return P&&(rf(U,function(Z){Z.children&&(Z.value=0)}),vs(U,function(Z){var $;Z.children||(Z.value=+P.call(N,Z,Z.depth)||0),($=Z.parent)&&($.value+=Z.value)})),U},N};function Sl(y,M){return e.rebind(y,M,"sort","children","value"),y.nodes=y,y.links=cp,y}function rf(y,M){for(var P=[y];(y=P.pop())!=null;)if(M(y),(U=y.children)&&(N=U.length))for(var N,U;--N>=0;)P.push(U[N])}function vs(y,M){for(var P=[y],N=[];(y=P.pop())!=null;)if(N.push(y),($=y.children)&&(Z=$.length))for(var U=-1,Z,$;++UU&&(U=X),N.push(X)}for($=0;$N&&(P=M,N=U);return P}function Ni(y){return y.reduce(Gm,0)}function Gm(y,M){return y+M[1]}e.layout.histogram=function(){var y=!0,M=Number,P=dp,N=Zc;function U(Z,De){for(var X=[],ae=Z.map(M,this),ye=P.call(this,ae,De),_e=N.call(this,ye,ae,De),Pe,De=-1,Qe=ae.length,st=_e.length-1,Ie=y?1:1/Qe,Ve;++De0)for(De=-1;++De=ye[0]&&Ve<=ye[1]&&(Pe=X[e.bisect(_e,Ve,1,st)-1],Pe.y+=Ie,Pe.push(Z[De]));return X}return U.value=function(Z){return arguments.length?(M=Z,U):M},U.range=function(Z){return arguments.length?(P=fa(Z),U):P},U.bins=function(Z){return arguments.length?(N=typeof Z=="number"?function($){return kv($,Z)}:fa(Z),U):N},U.frequency=function(Z){return arguments.length?(y=!!Z,U):y},U};function Zc(y,M){return kv(y,Math.ceil(Math.log(M.length)/Math.LN2+1))}function kv(y,M){for(var P=-1,N=+y[0],U=(y[1]-N)/M,Z=[];++P<=M;)Z[P]=U*P+N;return Z}function dp(y){return[e.min(y),e.max(y)]}e.layout.pack=function(){var y=e.layout.hierarchy().sort(nf),M=0,P=[1,1],N;function U(Z,$){var X=y.call(this,Z,$),ae=X[0],ye=P[0],_e=P[1],Pe=N==null?Math.sqrt:typeof N=="function"?N:function(){return N};if(ae.x=ae.y=0,vs(ae,function(Qe){Qe.r=+Pe(Qe.value)}),vs(ae,Jf),M){var De=M*(N?1:Math.max(2*ae.r/ye,2*ae.r/_e))/2;vs(ae,function(Qe){Qe.r+=De}),vs(ae,Jf),vs(ae,function(Qe){Qe.r-=De})}return Cl(ae,ye/2,_e/2,N?1:1/Math.max(2*ae.r/ye,2*ae.r/_e)),X}return U.size=function(Z){return arguments.length?(P=Z,U):P},U.radius=function(Z){return arguments.length?(N=Z==null||typeof Z=="function"?Z:+Z,U):N},U.padding=function(Z){return arguments.length?(M=+Z,U):M},Sl(U,y)};function nf(y,M){return y.value-M.value}function xu(y,M){var P=y._pack_next;y._pack_next=M,M._pack_prev=y,M._pack_next=P,P._pack_prev=M}function Cv(y,M){y._pack_next=M,M._pack_prev=y}function bn(y,M){var P=M.x-y.x,N=M.y-y.y,U=y.r+M.r;return .999*U*U>P*P+N*N}function Jf(y){if(!(M=y.children)||!(De=M.length))return;var M,P=1/0,N=-1/0,U=1/0,Z=-1/0,$,X,ae,ye,_e,Pe,De;function Qe(je){P=Math.min(je.x-je.r,P),N=Math.max(je.x+je.r,N),U=Math.min(je.y-je.r,U),Z=Math.max(je.y+je.r,Z)}if(M.forEach(Js),$=M[0],$.x=-$.r,$.y=0,Qe($),De>1&&(X=M[1],X.x=X.r,X.y=0,Qe(X),De>2))for(ae=M[2],El($,X,ae),Qe(ae),xu($,ae),$._pack_prev=ae,xu(ae,X),X=$._pack_next,ye=3;yeVe.x&&(Ve=Ht),Ht.depth>Ke.depth&&(Ke=Ht)});var ct=M(Ie,Ve)/2-Ie.x,ot=P[0]/(Ve.x+M(Ve,Ie)/2+ct),je=P[1]/(Ke.depth||1);rf(Qe,function(Ht){Ht.x=(Ht.x+ct)*ot,Ht.y=Ht.depth*je})}return De}function Z(_e){for(var Pe={A:null,children:[_e]},De=[Pe],Qe;(Qe=De.pop())!=null;)for(var st=Qe.children,Ie,Ve=0,Ke=st.length;Ve0&&(Ll(Zm(Ie,_e,De),_e,Ht),Ke+=Ht,ct+=Ht),ot+=Ie.m,Ke+=Qe.m,je+=Ve.m,ct+=st.m;Ie&&!Ss(st)&&(st.t=Ie,st.m+=ot-ct),Qe&&!Ms(Ve)&&(Ve.t=Qe,Ve.m+=Ke-je,De=_e)}return De}function ye(_e){_e.x*=P[0],_e.y=_e.depth*P[1]}return U.separation=function(_e){return arguments.length?(M=_e,U):M},U.size=function(_e){return arguments.length?(N=(P=_e)==null?ye:null,U):N?null:P},U.nodeSize=function(_e){return arguments.length?(N=(P=_e)==null?null:ye,U):N?P:null},Sl(U,y)};function Ks(y,M){return y.parent==M.parent?1:2}function Ms(y){var M=y.children;return M.length?M[0]:y.t}function Ss(y){var M=y.children,P;return(P=M.length)?M[P-1]:y.t}function Ll(y,M,P){var N=P/(M.i-y.i);M.c-=N,M.s+=P,y.c+=N,M.z+=P,M.m+=P}function pp(y){for(var M=0,P=0,N=y.children,U=N.length,Z;--U>=0;)Z=N[U],Z.z+=M,Z.m+=M,M+=Z.s+(P+=Z.c)}function Zm(y,M,P){return y.a.parent===M.parent?y.a:P}e.layout.cluster=function(){var y=e.layout.hierarchy().sort(null).value(null),M=Ks,P=[1,1],N=!1;function U(Z,$){var X=y.call(this,Z,$),ae=X[0],ye,_e=0;vs(ae,function(Ie){var Ve=Ie.children;Ve&&Ve.length?(Ie.x=Wm(Ve),Ie.y=Ym(Ve)):(Ie.x=ye?_e+=M(Ie,ye):0,Ie.y=0,ye=Ie)});var Pe=mp(ae),De=yp(ae),Qe=Pe.x-M(Pe,De)/2,st=De.x+M(De,Pe)/2;return vs(ae,N?function(Ie){Ie.x=(Ie.x-ae.x)*P[0],Ie.y=(ae.y-Ie.y)*P[1]}:function(Ie){Ie.x=(Ie.x-Qe)/(st-Qe)*P[0],Ie.y=(1-(ae.y?Ie.y/ae.y:1))*P[1]}),X}return U.separation=function(Z){return arguments.length?(M=Z,U):M},U.size=function(Z){return arguments.length?(N=(P=Z)==null,U):N?null:P},U.nodeSize=function(Z){return arguments.length?(N=(P=Z)!=null,U):N?P:null},Sl(U,y)};function Ym(y){return 1+e.max(y,function(M){return M.y})}function Wm(y){return y.reduce(function(M,P){return M+P.x},0)/y.length}function mp(y){var M=y.children;return M&&M.length?mp(M[0]):y}function yp(y){var M=y.children,P;return M&&(P=M.length)?yp(M[P-1]):y}e.layout.treemap=function(){var y=e.layout.hierarchy(),M=Math.round,P=[1,1],N=null,U=Ev,Z=!1,$,X="squarify",ae=.5*(1+Math.sqrt(5));function ye(Ie,Ve){for(var Ke=-1,ct=Ie.length,ot,je;++Ke0;)ct.push(je=ot[ur-1]),ct.area+=je.area,X!=="squarify"||(nr=De(ct,cr))<=Ht?(ot.pop(),Ht=nr):(ct.area-=ct.pop().area,Qe(ct,cr,Ke,!1),cr=Math.min(Ke.dx,Ke.dy),ct.length=ct.area=0,Ht=1/0);ct.length&&(Qe(ct,cr,Ke,!0),ct.length=ct.area=0),Ve.forEach(_e)}}function Pe(Ie){var Ve=Ie.children;if(Ve&&Ve.length){var Ke=U(Ie),ct=Ve.slice(),ot,je=[];for(ye(ct,Ke.dx*Ke.dy/Ie.value),je.area=0;ot=ct.pop();)je.push(ot),je.area+=ot.area,ot.z!=null&&(Qe(je,ot.z?Ke.dx:Ke.dy,Ke,!ct.length),je.length=je.area=0);Ve.forEach(Pe)}}function De(Ie,Ve){for(var Ke=Ie.area,ct,ot=0,je=1/0,Ht=-1,nr=Ie.length;++Htot&&(ot=ct));return Ke*=Ke,Ve*=Ve,Ke?Math.max(Ve*ot*ae/Ke,Ke/(Ve*je*ae)):1/0}function Qe(Ie,Ve,Ke,ct){var ot=-1,je=Ie.length,Ht=Ke.x,nr=Ke.y,cr=Ve?M(Ie.area/Ve):0,ur;if(Ve==Ke.dx){for((ct||cr>Ke.dy)&&(cr=Ke.dy);++otKe.dx)&&(cr=Ke.dx);++ot1);return y+M*N*Math.sqrt(-2*Math.log(Z)/Z)}},logNormal:function(){var y=e.random.normal.apply(e,arguments);return function(){return Math.exp(y())}},bates:function(y){var M=e.random.irwinHall(y);return function(){return M()/y}},irwinHall:function(y){return function(){for(var M=0,P=0;P2?Xm:gp,ye=N?hs:Bm;return U=ae(y,M,ye,P),Z=ae(M,y,ye,un),X}function X(ae){return U(ae)}return X.invert=function(ae){return Z(ae)},X.domain=function(ae){return arguments.length?(y=ae.map(Number),$()):y},X.range=function(ae){return arguments.length?(M=ae,$()):M},X.rangeRound=function(ae){return X.range(ae).interpolate(xv)},X.clamp=function(ae){return arguments.length?(N=ae,$()):N},X.interpolate=function(ae){return arguments.length?(P=ae,$()):P},X.ticks=function(ae){return zv(y,ae)},X.tickFormat=function(ae,ye){return d3_scale_linearTickFormat(y,ae,ye)},X.nice=function(ae){return wp(y,ae),$()},X.copy=function(){return xp(y,M,P,N)},$()}function bp(y,M){return e.rebind(y,M,"range","rangeRound","interpolate","clamp")}function wp(y,M){return Dv(y,_p(Pv(y,M)[2])),Dv(y,_p(Pv(y,M)[2])),y}function Pv(y,M){M==null&&(M=10);var P=Kf(y),N=P[1]-P[0],U=Math.pow(10,Math.floor(Math.log(N/M)/Math.LN10)),Z=M/N*U;return Z<=.15?U*=10:Z<=.35?U*=5:Z<=.75&&(U*=2),P[0]=Math.ceil(P[0]/U)*U,P[1]=Math.floor(P[1]/U)*U+U*.5,P[2]=U,P}function zv(y,M){return e.range.apply(e,Pv(y,M))}var bu={s:1,g:1,p:1,r:1,e:1};function Dl(y){return-Math.floor(Math.log(y)/Math.LN10+.01)}function Qf(y,M){var P=Dl(M[2]);return y in bu?Math.abs(P-Dl(Math.max(z(M[0]),z(M[1]))))+ +(y!=="e"):P-(y==="%")*2}e.scale.log=function(){return Iv(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Iv(y,M,P,N){function U(X){return(P?Math.log(X<0?0:X):-Math.log(X>0?0:-X))/Math.log(M)}function Z(X){return P?Math.pow(M,X):-Math.pow(M,-X)}function $(X){return y(U(X))}return $.invert=function(X){return Z(y.invert(X))},$.domain=function(X){return arguments.length?(P=X[0]>=0,y.domain((N=X.map(Number)).map(U)),$):N},$.base=function(X){return arguments.length?(M=+X,y.domain(N.map(U)),$):M},$.nice=function(){var X=Dv(N.map(U),P?Math:Wc);return y.domain(X),N=X.map(Z),$},$.ticks=function(){var X=Kf(N),ae=[],ye=X[0],_e=X[1],Pe=Math.floor(U(ye)),De=Math.ceil(U(_e)),Qe=M%1?2:M;if(isFinite(De-Pe)){if(P){for(;Pe0;st--)ae.push(Z(Pe)*st);for(Pe=0;ae[Pe]_e;De--);ae=ae.slice(Pe,De)}return ae},$.copy=function(){return Iv(y.copy(),M,P,N)},bp($,y)}var Wc={floor:function(y){return-Math.ceil(-y)},ceil:function(y){return-Math.floor(-y)}};e.scale.pow=function(){return Xc(e.scale.linear(),1,[0,1])};function Xc(y,M,P){var N=jc(M),U=jc(1/M);function Z($){return y(N($))}return Z.invert=function($){return U(y.invert($))},Z.domain=function($){return arguments.length?(y.domain((P=$.map(Number)).map(N)),Z):P},Z.ticks=function($){return zv(P,$)},Z.tickFormat=function($,X){return d3_scale_linearTickFormat(P,$,X)},Z.nice=function($){return Z.domain(wp(P,$))},Z.exponent=function($){return arguments.length?(N=jc(M=$),U=jc(1/M),y.domain(P.map(N)),Z):M},Z.copy=function(){return Xc(y.copy(),M,P)},bp(Z,y)}function jc(y){return function(M){return M<0?-Math.pow(-M,y):Math.pow(M,y)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Pl([],{t:"range",a:[[]]})};function Pl(y,M){var P,N,U;function Z(X){return N[((P.get(X)||(M.t==="range"?P.set(X,y.push(X)):NaN))-1)%N.length]}function $(X,ae){return e.range(y.length).map(function(ye){return X+ae*ye})}return Z.domain=function(X){if(!arguments.length)return y;y=[],P=new I;for(var ae=-1,ye=X.length,_e;++ae0?P[Z-1]:y[0],ZDe?0:1;if(_e=xr)return ae(_e,st)+(ye?ae(ye,1-st):"")+"Z";var Ie,Ve,Ke,ct,ot=0,je=0,Ht,nr,cr,ur,Dr,Ir,ta,Ur,Kr=[];if((ct=(+$.apply(this,arguments)||0)/2)&&(Ke=N===zl?Math.sqrt(ye*ye+_e*_e):+N.apply(this,arguments),st||(je*=-1),_e&&(je=qi(Ke/_e*Math.sin(ct))),ye&&(ot=qi(Ke/ye*Math.sin(ct)))),_e){Ht=_e*Math.cos(Pe+je),nr=_e*Math.sin(Pe+je),cr=_e*Math.cos(De-je),ur=_e*Math.sin(De-je);var Na=Math.abs(De-Pe-2*je)<=dt?0:1;if(je&&Il(Ht,nr,cr,ur)===st^Na){var ri=(Pe+De)/2;Ht=_e*Math.cos(ri),nr=_e*Math.sin(ri),cr=ur=null}}else Ht=nr=0;if(ye){Dr=ye*Math.cos(De-ot),Ir=ye*Math.sin(De-ot),ta=ye*Math.cos(Pe+ot),Ur=ye*Math.sin(Pe+ot);var ei=Math.abs(Pe-De+2*ot)<=dt?0:1;if(ot&&Il(Dr,Ir,ta,Ur)===1-st^ei){var Xt=(Pe+De)/2;Dr=ye*Math.cos(Xt),Ir=ye*Math.sin(Xt),ta=Ur=null}}else Dr=Ir=0;if(Qe>Ge&&(Ie=Math.min(Math.abs(_e-ye)/2,+P.apply(this,arguments)))>.001){Ve=ye<_e^st?0:1;var Jr=Ie,oa=Ie;if(Qe0?0:1}function Tu(y,M,P,N,U){var Z=y[0]-M[0],$=y[1]-M[1],X=(U?N:-N)/Math.sqrt(Z*Z+$*$),ae=X*$,ye=-X*Z,_e=y[0]+ae,Pe=y[1]+ye,De=M[0]+ae,Qe=M[1]+ye,st=(_e+De)/2,Ie=(Pe+Qe)/2,Ve=De-_e,Ke=Qe-Pe,ct=Ve*Ve+Ke*Ke,ot=P-N,je=_e*Qe-De*Pe,Ht=(Ke<0?-1:1)*Math.sqrt(Math.max(0,ot*ot*ct-je*je)),nr=(je*Ke-Ve*Ht)/ct,cr=(-je*Ve-Ke*Ht)/ct,ur=(je*Ke+Ve*Ht)/ct,Dr=(-je*Ve+Ke*Ht)/ct,Ir=nr-st,ta=cr-Ie,Ur=ur-st,Kr=Dr-Ie;return Ir*Ir+ta*ta>Ur*Ur+Kr*Kr&&(nr=ur,cr=Dr),[[nr-ae,cr-ye],[nr*P/ot,cr*P/ot]]}function ec(){return!0}function ks(y){var M=du,P=ml,N=ec,U=Xo,Z=U.key,$=.7;function X(ae){var ye=[],_e=[],Pe=-1,De=ae.length,Qe,st=fa(M),Ie=fa(P);function Ve(){ye.push("M",U(y(_e),$))}for(;++Pe1?y.join("L"):y+"Z"}function lf(y){return y.join("L")+"Z"}function Jm(y){for(var M=0,P=y.length,N=y[0],U=[N[0],",",N[1]];++M1&&U.push("H",N[0]),U.join("")}function uf(y){for(var M=0,P=y.length,N=y[0],U=[N[0],",",N[1]];++M1){X=M[1],Z=y[ae],ae++,N+="C"+(U[0]+$[0])+","+(U[1]+$[1])+","+(Z[0]-X[0])+","+(Z[1]-X[1])+","+Z[0]+","+Z[1];for(var ye=2;ye9&&(Z=P*3/Math.sqrt(Z),$[X]=Z*N,$[X+1]=Z*U));for(X=-1;++X<=ae;)Z=(y[Math.min(ae,X+1)][0]-y[Math.max(0,X-1)][0])/(6*(1+$[X]*$[X])),M.push([Z||0,$[X]*Z||0]);return M}function Lp(y){return y.length<3?Xo(y):y[0]+ff(y,ey(y))}e.svg.line.radial=function(){var y=ks(Bv);return y.radius=y.x,delete y.x,y.angle=y.y,delete y.y,y};function Bv(y){for(var M,P=-1,N=y.length,U,Z;++Pdt)+",1 "+Pe}function ye(_e,Pe,De,Qe){return"Q 0,0 "+Qe}return Z.radius=function(_e){return arguments.length?(P=fa(_e),Z):P},Z.source=function(_e){return arguments.length?(y=fa(_e),Z):y},Z.target=function(_e){return arguments.length?(M=fa(_e),Z):M},Z.startAngle=function(_e){return arguments.length?(N=fa(_e),Z):N},Z.endAngle=function(_e){return arguments.length?(U=fa(_e),Z):U},Z};function Dp(y){return y.radius}e.svg.diagonal=function(){var y=eh,M=Ov,P=Uv;function N(U,Z){var $=y.call(this,U,Z),X=M.call(this,U,Z),ae=($.y+X.y)/2,ye=[$,{x:$.x,y:ae},{x:X.x,y:ae},X];return ye=ye.map(P),"M"+ye[0]+"C"+ye[1]+" "+ye[2]+" "+ye[3]}return N.source=function(U){return arguments.length?(y=fa(U),N):y},N.target=function(U){return arguments.length?(M=fa(U),N):M},N.projection=function(U){return arguments.length?(P=U,N):P},N};function Uv(y){return[y.x,y.y]}e.svg.diagonal.radial=function(){var y=e.svg.diagonal(),M=Uv,P=y.projection;return y.projection=function(N){return arguments.length?P(Pp(M=N)):M},y};function Pp(y){return function(){var M=y.apply(this,arguments),P=M[0],N=M[1]-pr;return[P*Math.cos(N),P*Math.sin(N)]}}e.svg.symbol=function(){var y=df,M=zp;function P(N,U){return(rh.get(y.call(this,N,U))||th)(M.call(this,N,U))}return P.type=function(N){return arguments.length?(y=fa(N),P):y},P.size=function(N){return arguments.length?(M=fa(N),P):M},P};function zp(){return 64}function df(){return"circle"}function th(y){var M=Math.sqrt(y/dt);return"M0,"+M+"A"+M+","+M+" 0 1,1 0,"+-M+"A"+M+","+M+" 0 1,1 0,"+M+"Z"}var rh=e.map({circle:th,cross:function(y){var M=Math.sqrt(y/5)/2;return"M"+-3*M+","+-M+"H"+-M+"V"+-3*M+"H"+M+"V"+-M+"H"+3*M+"V"+M+"H"+M+"V"+3*M+"H"+-M+"V"+M+"H"+-3*M+"Z"},diamond:function(y){var M=Math.sqrt(y/(2*Vv)),P=M*Vv;return"M0,"+-M+"L"+P+",0 0,"+M+" "+-P+",0Z"},square:function(y){var M=Math.sqrt(y)/2;return"M"+-M+","+-M+"L"+M+","+-M+" "+M+","+M+" "+-M+","+M+"Z"},"triangle-down":function(y){var M=Math.sqrt(y/Mu),P=M*Mu/2;return"M0,"+P+"L"+M+","+-P+" "+-M+","+-P+"Z"},"triangle-up":function(y){var M=Math.sqrt(y/Mu),P=M*Mu/2;return"M0,"+-P+"L"+M+","+P+" "+-M+","+P+"Z"}});e.svg.symbolTypes=rh.keys();var Mu=Math.sqrt(3),Vv=Math.tan(30*Hr);vt.transition=function(y){for(var M=so||++Di,P=fi(y),N=[],U,Z,$=Es||{time:Date.now(),ease:wl,delay:0,duration:250},X=-1,ae=this.length;++X0;)Pe[--ct].call(y,Ke);if(Ve>=1)return $.event&&$.event.end.call(y,y.__data__,M),--Z.count?delete Z[N]:delete y[P],1}$||(X=U.time,ae=qc(De,0,X),$=Z[N]={tween:new I,time:X,timer:ae,delay:U.delay,duration:U.duration,ease:U.ease,index:M},U=null,++Z.count)}e.svg.axis=function(){var y=e.scale.linear(),M=Fl,P=6,N=6,U=3,Z=[10],$=null,X;function ae(ye){ye.each(function(){var _e=e.select(this),Pe=this.__chart__||y,De=this.__chart__=y.copy(),Qe=$==null?De.ticks?De.ticks.apply(De,Z):De.domain():$,st=X==null?De.tickFormat?De.tickFormat.apply(De,Z):Se:X,Ie=_e.selectAll(".tick").data(Qe,De),Ve=Ie.enter().insert("g",".domain").attr("class","tick").style("opacity",Ge),Ke=e.transition(Ie.exit()).style("opacity",Ge).remove(),ct=e.transition(Ie.order()).style("opacity",1),ot=Math.max(P,0)+U,je,Ht=Yc(De),nr=_e.selectAll(".domain").data([0]),cr=(nr.enter().append("path").attr("class","domain"),e.transition(nr));Ve.append("line"),Ve.append("text");var ur=Ve.select("line"),Dr=ct.select("line"),Ir=Ie.select("text").text(st),ta=Ve.select("text"),Ur=ct.select("text"),Kr=M==="top"||M==="left"?-1:1,Na,ri,ei,Xt;if(M==="bottom"||M==="top"?(je=mf,Na="x",ei="y",ri="x2",Xt="y2",Ir.attr("dy",Kr<0?"0em":".71em").style("text-anchor","middle"),cr.attr("d","M"+Ht[0]+","+Kr*N+"V0H"+Ht[1]+"V"+Kr*N)):(je=ql,Na="y",ei="x",ri="y2",Xt="x2",Ir.attr("dy",".32em").style("text-anchor",Kr<0?"end":"start"),cr.attr("d","M"+Kr*N+","+Ht[0]+"H0V"+Ht[1]+"H"+Kr*N)),ur.attr(Xt,Kr*P),ta.attr(ei,Kr*ot),Dr.attr(ri,0).attr(Xt,Kr*P),Ur.attr(Na,0).attr(ei,Kr*ot),De.rangeBand){var Jr=De,oa=Jr.rangeBand()/2;Pe=De=function(sa){return Jr(sa)+oa}}else Pe.rangeBand?Pe=De:Ke.call(je,De,Pe);Ve.call(je,Pe,De),ct.call(je,De,De)})}return ae.scale=function(ye){return arguments.length?(y=ye,ae):y},ae.orient=function(ye){return arguments.length?(M=ye in rc?ye+"":Fl,ae):M},ae.ticks=function(){return arguments.length?(Z=r(arguments),ae):Z},ae.tickValues=function(ye){return arguments.length?($=ye,ae):$},ae.tickFormat=function(ye){return arguments.length?(X=ye,ae):X},ae.tickSize=function(ye){var _e=arguments.length;return _e?(P=+ye,N=+arguments[_e-1],ae):P},ae.innerTickSize=function(ye){return arguments.length?(P=+ye,ae):P},ae.outerTickSize=function(ye){return arguments.length?(N=+ye,ae):N},ae.tickPadding=function(ye){return arguments.length?(U=+ye,ae):U},ae.tickSubdivide=function(){return arguments.length&&ae},ae};var Fl="bottom",rc={top:1,right:1,bottom:1,left:1};function mf(y,M,P){y.attr("transform",function(N){var U=M(N);return"translate("+(isFinite(U)?U:P(N))+",0)"})}function ql(y,M,P){y.attr("transform",function(N){var U=M(N);return"translate(0,"+(isFinite(U)?U:P(N))+")"})}e.svg.brush=function(){var y=it(_e,"brushstart","brush","brushend"),M=null,P=null,N=[0,0],U=[0,0],Z,$,X=!0,ae=!0,ye=nh[0];function _e(Ie){Ie.each(function(){var Ve=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",st).on("touchstart.brush",st),Ke=Ve.selectAll(".background").data([0]);Ke.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ve.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ct=Ve.selectAll(".resize").data(ye,Se);ct.exit().remove(),ct.enter().append("g").attr("class",function(nr){return"resize "+nr}).style("cursor",function(nr){return Ls[nr]}).append("rect").attr("x",function(nr){return/[ew]$/.test(nr)?-3:null}).attr("y",function(nr){return/^[ns]/.test(nr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ct.style("display",_e.empty()?"none":null);var ot=e.transition(Ve),je=e.transition(Ke),Ht;M&&(Ht=Yc(M),je.attr("x",Ht[0]).attr("width",Ht[1]-Ht[0]),De(ot)),P&&(Ht=Yc(P),je.attr("y",Ht[0]).attr("height",Ht[1]-Ht[0]),Qe(ot)),Pe(ot)})}_e.event=function(Ie){Ie.each(function(){var Ve=y.of(this,arguments),Ke={x:N,y:U,i:Z,j:$},ct=this.__chart__||Ke;this.__chart__=Ke,so?e.select(this).transition().each("start.brush",function(){Z=ct.i,$=ct.j,N=ct.x,U=ct.y,Ve({type:"brushstart"})}).tween("brush:brush",function(){var ot=Yo(N,Ke.x),je=Yo(U,Ke.y);return Z=$=null,function(Ht){N=Ke.x=ot(Ht),U=Ke.y=je(Ht),Ve({type:"brush",mode:"resize"})}}).each("end.brush",function(){Z=Ke.i,$=Ke.j,Ve({type:"brush",mode:"resize"}),Ve({type:"brushend"})}):(Ve({type:"brushstart"}),Ve({type:"brush",mode:"resize"}),Ve({type:"brushend"}))})};function Pe(Ie){Ie.selectAll(".resize").attr("transform",function(Ve){return"translate("+N[+/e$/.test(Ve)]+","+U[+/^s/.test(Ve)]+")"})}function De(Ie){Ie.select(".extent").attr("x",N[0]),Ie.selectAll(".extent,.n>rect,.s>rect").attr("width",N[1]-N[0])}function Qe(Ie){Ie.select(".extent").attr("y",U[0]),Ie.selectAll(".extent,.e>rect,.w>rect").attr("height",U[1]-U[0])}function st(){var Ie=this,Ve=e.select(e.event.target),Ke=y.of(Ie,arguments),ct=e.select(Ie),ot=Ve.datum(),je=!/^(n|s)$/.test(ot)&&M,Ht=!/^(e|w)$/.test(ot)&&P,nr=Ve.classed("extent"),cr=zr(Ie),ur,Dr=e.mouse(Ie),Ir,ta=e.select(s(Ie)).on("keydown.brush",Na).on("keyup.brush",ri);if(e.event.changedTouches?ta.on("touchmove.brush",ei).on("touchend.brush",Jr):ta.on("mousemove.brush",ei).on("mouseup.brush",Jr),ct.interrupt().selectAll("*").interrupt(),nr)Dr[0]=N[0]-Dr[0],Dr[1]=U[0]-Dr[1];else if(ot){var Ur=+/w$/.test(ot),Kr=+/^n/.test(ot);Ir=[N[1-Ur]-Dr[0],U[1-Kr]-Dr[1]],Dr[0]=N[Ur],Dr[1]=U[Kr]}else e.event.altKey&&(ur=Dr.slice());ct.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ve.style("cursor")),Ke({type:"brushstart"}),ei();function Na(){e.event.keyCode==32&&(nr||(ur=null,Dr[0]-=N[1],Dr[1]-=U[1],nr=2),$e())}function ri(){e.event.keyCode==32&&nr==2&&(Dr[0]+=N[1],Dr[1]+=U[1],nr=0,$e())}function ei(){var oa=e.mouse(Ie),sa=!1;Ir&&(oa[0]+=Ir[0],oa[1]+=Ir[1]),nr||(e.event.altKey?(ur||(ur=[(N[0]+N[1])/2,(U[0]+U[1])/2]),Dr[0]=N[+(oa[0]{(function(e,t){typeof X1=="object"&&typeof g7!="undefined"?t(X1):(e=e||self,t(e.d3=e.d3||{}))})(X1,function(e){"use strict";var t=new Date,r=new Date;function i(Be,ft,or,Cr){function Sr(Oe){return Be(Oe=arguments.length===0?new Date:new Date(+Oe)),Oe}return Sr.floor=function(Oe){return Be(Oe=new Date(+Oe)),Oe},Sr.ceil=function(Oe){return Be(Oe=new Date(Oe-1)),ft(Oe,1),Be(Oe),Oe},Sr.round=function(Oe){var yt=Sr(Oe),qt=Sr.ceil(Oe);return Oe-yt0))return Qt;do Qt.push(Vt=new Date(+Oe)),ft(Oe,qt),Be(Oe);while(Vt=yt)for(;Be(yt),!Oe(yt);)yt.setTime(yt-1)},function(yt,qt){if(yt>=yt)if(qt<0)for(;++qt<=0;)for(;ft(yt,-1),!Oe(yt););else for(;--qt>=0;)for(;ft(yt,1),!Oe(yt););})},or&&(Sr.count=function(Oe,yt){return t.setTime(+Oe),r.setTime(+yt),Be(t),Be(r),Math.floor(or(t,r))},Sr.every=function(Oe){return Oe=Math.floor(Oe),!isFinite(Oe)||!(Oe>0)?null:Oe>1?Sr.filter(Cr?function(yt){return Cr(yt)%Oe===0}:function(yt){return Sr.count(0,yt)%Oe===0}):Sr}),Sr}var a=i(function(){},function(Be,ft){Be.setTime(+Be+ft)},function(Be,ft){return ft-Be});a.every=function(Be){return Be=Math.floor(Be),!isFinite(Be)||!(Be>0)?null:Be>1?i(function(ft){ft.setTime(Math.floor(ft/Be)*Be)},function(ft,or){ft.setTime(+ft+or*Be)},function(ft,or){return(or-ft)/Be}):a};var s=a.range,l=1e3,f=6e4,h=36e5,v=864e5,m=6048e5,_=i(function(Be){Be.setTime(Be-Be.getMilliseconds())},function(Be,ft){Be.setTime(+Be+ft*l)},function(Be,ft){return(ft-Be)/l},function(Be){return Be.getUTCSeconds()}),T=_.range,S=i(function(Be){Be.setTime(Be-Be.getMilliseconds()-Be.getSeconds()*l)},function(Be,ft){Be.setTime(+Be+ft*f)},function(Be,ft){return(ft-Be)/f},function(Be){return Be.getMinutes()}),C=S.range,E=i(function(Be){Be.setTime(Be-Be.getMilliseconds()-Be.getSeconds()*l-Be.getMinutes()*f)},function(Be,ft){Be.setTime(+Be+ft*h)},function(Be,ft){return(ft-Be)/h},function(Be){return Be.getHours()}),L=E.range,z=i(function(Be){Be.setHours(0,0,0,0)},function(Be,ft){Be.setDate(Be.getDate()+ft)},function(Be,ft){return(ft-Be-(ft.getTimezoneOffset()-Be.getTimezoneOffset())*f)/v},function(Be){return Be.getDate()-1}),B=z.range;function q(Be){return i(function(ft){ft.setDate(ft.getDate()-(ft.getDay()+7-Be)%7),ft.setHours(0,0,0,0)},function(ft,or){ft.setDate(ft.getDate()+or*7)},function(ft,or){return(or-ft-(or.getTimezoneOffset()-ft.getTimezoneOffset())*f)/m})}var I=q(0),O=q(1),H=q(2),V=q(3),W=q(4),J=q(5),te=q(6),ne=I.range,oe=O.range,fe=H.range,ve=V.range,Se=W.range,Me=J.range,Ae=te.range,we=i(function(Be){Be.setDate(1),Be.setHours(0,0,0,0)},function(Be,ft){Be.setMonth(Be.getMonth()+ft)},function(Be,ft){return ft.getMonth()-Be.getMonth()+(ft.getFullYear()-Be.getFullYear())*12},function(Be){return Be.getMonth()}),Te=we.range,Ce=i(function(Be){Be.setMonth(0,1),Be.setHours(0,0,0,0)},function(Be,ft){Be.setFullYear(Be.getFullYear()+ft)},function(Be,ft){return ft.getFullYear()-Be.getFullYear()},function(Be){return Be.getFullYear()});Ce.every=function(Be){return!isFinite(Be=Math.floor(Be))||!(Be>0)?null:i(function(ft){ft.setFullYear(Math.floor(ft.getFullYear()/Be)*Be),ft.setMonth(0,1),ft.setHours(0,0,0,0)},function(ft,or){ft.setFullYear(ft.getFullYear()+or*Be)})};var Le=Ce.range,$e=i(function(Be){Be.setUTCSeconds(0,0)},function(Be,ft){Be.setTime(+Be+ft*f)},function(Be,ft){return(ft-Be)/f},function(Be){return Be.getUTCMinutes()}),lt=$e.range,it=i(function(Be){Be.setUTCMinutes(0,0,0)},function(Be,ft){Be.setTime(+Be+ft*h)},function(Be,ft){return(ft-Be)/h},function(Be){return Be.getUTCHours()}),gt=it.range,We=i(function(Be){Be.setUTCHours(0,0,0,0)},function(Be,ft){Be.setUTCDate(Be.getUTCDate()+ft)},function(Be,ft){return(ft-Be)/v},function(Be){return Be.getUTCDate()-1}),Et=We.range;function nt(Be){return i(function(ft){ft.setUTCDate(ft.getUTCDate()-(ft.getUTCDay()+7-Be)%7),ft.setUTCHours(0,0,0,0)},function(ft,or){ft.setUTCDate(ft.getUTCDate()+or*7)},function(ft,or){return(or-ft)/m})}var wt=nt(0),xt=nt(1),vt=nt(2),de=nt(3),ze=nt(4),pe=nt(5),at=nt(6),mt=wt.range,Xe=xt.range,Ft=vt.range,Lt=de.range,Tt=ze.range,It=pe.range,Gt=at.range,Ct=i(function(Be){Be.setUTCDate(1),Be.setUTCHours(0,0,0,0)},function(Be,ft){Be.setUTCMonth(Be.getUTCMonth()+ft)},function(Be,ft){return ft.getUTCMonth()-Be.getUTCMonth()+(ft.getUTCFullYear()-Be.getUTCFullYear())*12},function(Be){return Be.getUTCMonth()}),Mt=Ct.range,Ut=i(function(Be){Be.setUTCMonth(0,1),Be.setUTCHours(0,0,0,0)},function(Be,ft){Be.setUTCFullYear(Be.getUTCFullYear()+ft)},function(Be,ft){return ft.getUTCFullYear()-Be.getUTCFullYear()},function(Be){return Be.getUTCFullYear()});Ut.every=function(Be){return!isFinite(Be=Math.floor(Be))||!(Be>0)?null:i(function(ft){ft.setUTCFullYear(Math.floor(ft.getUTCFullYear()/Be)*Be),ft.setUTCMonth(0,1),ft.setUTCHours(0,0,0,0)},function(ft,or){ft.setUTCFullYear(ft.getUTCFullYear()+or*Be)})};var Ot=Ut.range;e.timeDay=z,e.timeDays=B,e.timeFriday=J,e.timeFridays=Me,e.timeHour=E,e.timeHours=L,e.timeInterval=i,e.timeMillisecond=a,e.timeMilliseconds=s,e.timeMinute=S,e.timeMinutes=C,e.timeMonday=O,e.timeMondays=oe,e.timeMonth=we,e.timeMonths=Te,e.timeSaturday=te,e.timeSaturdays=Ae,e.timeSecond=_,e.timeSeconds=T,e.timeSunday=I,e.timeSundays=ne,e.timeThursday=W,e.timeThursdays=Se,e.timeTuesday=H,e.timeTuesdays=fe,e.timeWednesday=V,e.timeWednesdays=ve,e.timeWeek=I,e.timeWeeks=ne,e.timeYear=Ce,e.timeYears=Le,e.utcDay=We,e.utcDays=Et,e.utcFriday=pe,e.utcFridays=It,e.utcHour=it,e.utcHours=gt,e.utcMillisecond=a,e.utcMilliseconds=s,e.utcMinute=$e,e.utcMinutes=lt,e.utcMonday=xt,e.utcMondays=Xe,e.utcMonth=Ct,e.utcMonths=Mt,e.utcSaturday=at,e.utcSaturdays=Gt,e.utcSecond=_,e.utcSeconds=T,e.utcSunday=wt,e.utcSundays=mt,e.utcThursday=ze,e.utcThursdays=Tt,e.utcTuesday=vt,e.utcTuesdays=Ft,e.utcWednesday=de,e.utcWednesdays=Lt,e.utcWeek=wt,e.utcWeeks=mt,e.utcYear=Ut,e.utcYears=Ot,Object.defineProperty(e,"__esModule",{value:!0})})});var s0=me((j1,_7)=>{(function(e,t){typeof j1=="object"&&typeof _7!="undefined"?t(j1,q3()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(j1,function(e,t){"use strict";function r(Fe){if(0<=Fe.y&&Fe.y<100){var Ge=new Date(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L);return Ge.setFullYear(Fe.y),Ge}return new Date(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L)}function i(Fe){if(0<=Fe.y&&Fe.y<100){var Ge=new Date(Date.UTC(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L));return Ge.setUTCFullYear(Fe.y),Ge}return new Date(Date.UTC(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L))}function a(Fe,Ge,bt){return{y:Fe,m:Ge,d:bt,H:0,M:0,S:0,L:0}}function s(Fe){var Ge=Fe.dateTime,bt=Fe.date,dt=Fe.time,yr=Fe.periods,xr=Fe.days,pr=Fe.shortDays,Hr=Fe.months,pa=Fe.shortMonths,Ea=T(yr),Ua=S(yr),Ki=T(xr),qi=S(xr),vi=T(pr),Ti=S(pr),$i=T(Hr),on=S(Hr),Ei=T(pa),ma=S(pa),Gr={a:Dt,A:Rt,b:$t,B:Yt,c:null,d:we,e:we,f:lt,H:Te,I:Ce,j:Le,L:$e,m:it,M:gt,p:Tr,q:Yr,Q:yt,s:qt,S:We,u:Et,U:nt,V:wt,w:xt,W:vt,x:null,X:null,y:de,Y:ze,Z:pe,"%":Oe},$a={a:Br,A:ca,b:ua,B:qa,c:null,d:at,e:at,f:Tt,H:mt,I:Xe,j:Ft,L:Lt,m:It,M:Gt,p:ii,q:Wr,Q:yt,s:qt,S:Ct,u:Mt,U:Ut,V:Ot,w:Be,W:ft,x:null,X:null,y:or,Y:Cr,Z:Sr,"%":Oe},Zr={a:se,A:ce,b:Ee,B:Ne,c:rt,d:W,e:W,f:ve,H:te,I:te,j:J,L:fe,m:V,M:ne,p:ee,q:H,Q:Me,s:Ae,S:oe,u:E,U:L,V:z,w:C,W:B,x:He,X:pt,y:I,Y:q,Z:O,"%":Se};Gr.x=di(bt,Gr),Gr.X=di(dt,Gr),Gr.c=di(Ge,Gr),$a.x=di(bt,$a),$a.X=di(dt,$a),$a.c=di(Ge,$a);function di(dr,ea){return function(_a){var ir=[],Ai=-1,Ca=0,si=dr.length,fa,Pn,Co;for(_a instanceof Date||(_a=new Date(+_a));++Ai53)return null;"w"in ir||(ir.w=1),"Z"in ir?(Ca=i(a(ir.y,0,1)),si=Ca.getUTCDay(),Ca=si>4||si===0?t.utcMonday.ceil(Ca):t.utcMonday(Ca),Ca=t.utcDay.offset(Ca,(ir.V-1)*7),ir.y=Ca.getUTCFullYear(),ir.m=Ca.getUTCMonth(),ir.d=Ca.getUTCDate()+(ir.w+6)%7):(Ca=r(a(ir.y,0,1)),si=Ca.getDay(),Ca=si>4||si===0?t.timeMonday.ceil(Ca):t.timeMonday(Ca),Ca=t.timeDay.offset(Ca,(ir.V-1)*7),ir.y=Ca.getFullYear(),ir.m=Ca.getMonth(),ir.d=Ca.getDate()+(ir.w+6)%7)}else("W"in ir||"U"in ir)&&("w"in ir||(ir.w="u"in ir?ir.u%7:"W"in ir?1:0),si="Z"in ir?i(a(ir.y,0,1)).getUTCDay():r(a(ir.y,0,1)).getDay(),ir.m=0,ir.d="W"in ir?(ir.w+6)%7+ir.W*7-(si+5)%7:ir.w+ir.U*7-(si+6)%7);return"Z"in ir?(ir.H+=ir.Z/100|0,ir.M+=ir.Z%100,i(ir)):r(ir)}}function le(dr,ea,_a,ir){for(var Ai=0,Ca=ea.length,si=_a.length,fa,Pn;Ai=si)return-1;if(fa=ea.charCodeAt(Ai++),fa===37){if(fa=ea.charAt(Ai++),Pn=Zr[fa in l?ea.charAt(Ai++):fa],!Pn||(ir=Pn(dr,_a,ir))<0)return-1}else if(fa!=_a.charCodeAt(ir++))return-1}return ir}function ee(dr,ea,_a){var ir=Ea.exec(ea.slice(_a));return ir?(dr.p=Ua[ir[0].toLowerCase()],_a+ir[0].length):-1}function se(dr,ea,_a){var ir=vi.exec(ea.slice(_a));return ir?(dr.w=Ti[ir[0].toLowerCase()],_a+ir[0].length):-1}function ce(dr,ea,_a){var ir=Ki.exec(ea.slice(_a));return ir?(dr.w=qi[ir[0].toLowerCase()],_a+ir[0].length):-1}function Ee(dr,ea,_a){var ir=Ei.exec(ea.slice(_a));return ir?(dr.m=ma[ir[0].toLowerCase()],_a+ir[0].length):-1}function Ne(dr,ea,_a){var ir=$i.exec(ea.slice(_a));return ir?(dr.m=on[ir[0].toLowerCase()],_a+ir[0].length):-1}function rt(dr,ea,_a){return le(dr,Ge,ea,_a)}function He(dr,ea,_a){return le(dr,bt,ea,_a)}function pt(dr,ea,_a){return le(dr,dt,ea,_a)}function Dt(dr){return pr[dr.getDay()]}function Rt(dr){return xr[dr.getDay()]}function $t(dr){return pa[dr.getMonth()]}function Yt(dr){return Hr[dr.getMonth()]}function Tr(dr){return yr[+(dr.getHours()>=12)]}function Yr(dr){return 1+~~(dr.getMonth()/3)}function Br(dr){return pr[dr.getUTCDay()]}function ca(dr){return xr[dr.getUTCDay()]}function ua(dr){return pa[dr.getUTCMonth()]}function qa(dr){return Hr[dr.getUTCMonth()]}function ii(dr){return yr[+(dr.getUTCHours()>=12)]}function Wr(dr){return 1+~~(dr.getUTCMonth()/3)}return{format:function(dr){var ea=di(dr+="",Gr);return ea.toString=function(){return dr},ea},parse:function(dr){var ea=ga(dr+="",!1);return ea.toString=function(){return dr},ea},utcFormat:function(dr){var ea=di(dr+="",$a);return ea.toString=function(){return dr},ea},utcParse:function(dr){var ea=ga(dr+="",!0);return ea.toString=function(){return dr},ea}}}var l={"-":"",_:" ",0:"0"},f=/^\s*\d+/,h=/^%/,v=/[\\^$*+?|[\]().{}]/g;function m(Fe,Ge,bt){var dt=Fe<0?"-":"",yr=(dt?-Fe:Fe)+"",xr=yr.length;return dt+(xr68?1900:2e3),bt+dt[0].length):-1}function O(Fe,Ge,bt){var dt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ge.slice(bt,bt+6));return dt?(Fe.Z=dt[1]?0:-(dt[2]+(dt[3]||"00")),bt+dt[0].length):-1}function H(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+1));return dt?(Fe.q=dt[0]*3-3,bt+dt[0].length):-1}function V(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+2));return dt?(Fe.m=dt[0]-1,bt+dt[0].length):-1}function W(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+2));return dt?(Fe.d=+dt[0],bt+dt[0].length):-1}function J(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+3));return dt?(Fe.m=0,Fe.d=+dt[0],bt+dt[0].length):-1}function te(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+2));return dt?(Fe.H=+dt[0],bt+dt[0].length):-1}function ne(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+2));return dt?(Fe.M=+dt[0],bt+dt[0].length):-1}function oe(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+2));return dt?(Fe.S=+dt[0],bt+dt[0].length):-1}function fe(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+3));return dt?(Fe.L=+dt[0],bt+dt[0].length):-1}function ve(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt,bt+6));return dt?(Fe.L=Math.floor(dt[0]/1e3),bt+dt[0].length):-1}function Se(Fe,Ge,bt){var dt=h.exec(Ge.slice(bt,bt+1));return dt?bt+dt[0].length:-1}function Me(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt));return dt?(Fe.Q=+dt[0],bt+dt[0].length):-1}function Ae(Fe,Ge,bt){var dt=f.exec(Ge.slice(bt));return dt?(Fe.s=+dt[0],bt+dt[0].length):-1}function we(Fe,Ge){return m(Fe.getDate(),Ge,2)}function Te(Fe,Ge){return m(Fe.getHours(),Ge,2)}function Ce(Fe,Ge){return m(Fe.getHours()%12||12,Ge,2)}function Le(Fe,Ge){return m(1+t.timeDay.count(t.timeYear(Fe),Fe),Ge,3)}function $e(Fe,Ge){return m(Fe.getMilliseconds(),Ge,3)}function lt(Fe,Ge){return $e(Fe,Ge)+"000"}function it(Fe,Ge){return m(Fe.getMonth()+1,Ge,2)}function gt(Fe,Ge){return m(Fe.getMinutes(),Ge,2)}function We(Fe,Ge){return m(Fe.getSeconds(),Ge,2)}function Et(Fe){var Ge=Fe.getDay();return Ge===0?7:Ge}function nt(Fe,Ge){return m(t.timeSunday.count(t.timeYear(Fe)-1,Fe),Ge,2)}function wt(Fe,Ge){var bt=Fe.getDay();return Fe=bt>=4||bt===0?t.timeThursday(Fe):t.timeThursday.ceil(Fe),m(t.timeThursday.count(t.timeYear(Fe),Fe)+(t.timeYear(Fe).getDay()===4),Ge,2)}function xt(Fe){return Fe.getDay()}function vt(Fe,Ge){return m(t.timeMonday.count(t.timeYear(Fe)-1,Fe),Ge,2)}function de(Fe,Ge){return m(Fe.getFullYear()%100,Ge,2)}function ze(Fe,Ge){return m(Fe.getFullYear()%1e4,Ge,4)}function pe(Fe){var Ge=Fe.getTimezoneOffset();return(Ge>0?"-":(Ge*=-1,"+"))+m(Ge/60|0,"0",2)+m(Ge%60,"0",2)}function at(Fe,Ge){return m(Fe.getUTCDate(),Ge,2)}function mt(Fe,Ge){return m(Fe.getUTCHours(),Ge,2)}function Xe(Fe,Ge){return m(Fe.getUTCHours()%12||12,Ge,2)}function Ft(Fe,Ge){return m(1+t.utcDay.count(t.utcYear(Fe),Fe),Ge,3)}function Lt(Fe,Ge){return m(Fe.getUTCMilliseconds(),Ge,3)}function Tt(Fe,Ge){return Lt(Fe,Ge)+"000"}function It(Fe,Ge){return m(Fe.getUTCMonth()+1,Ge,2)}function Gt(Fe,Ge){return m(Fe.getUTCMinutes(),Ge,2)}function Ct(Fe,Ge){return m(Fe.getUTCSeconds(),Ge,2)}function Mt(Fe){var Ge=Fe.getUTCDay();return Ge===0?7:Ge}function Ut(Fe,Ge){return m(t.utcSunday.count(t.utcYear(Fe)-1,Fe),Ge,2)}function Ot(Fe,Ge){var bt=Fe.getUTCDay();return Fe=bt>=4||bt===0?t.utcThursday(Fe):t.utcThursday.ceil(Fe),m(t.utcThursday.count(t.utcYear(Fe),Fe)+(t.utcYear(Fe).getUTCDay()===4),Ge,2)}function Be(Fe){return Fe.getUTCDay()}function ft(Fe,Ge){return m(t.utcMonday.count(t.utcYear(Fe)-1,Fe),Ge,2)}function or(Fe,Ge){return m(Fe.getUTCFullYear()%100,Ge,2)}function Cr(Fe,Ge){return m(Fe.getUTCFullYear()%1e4,Ge,4)}function Sr(){return"+0000"}function Oe(){return"%"}function yt(Fe){return+Fe}function qt(Fe){return Math.floor(+Fe/1e3)}var Qt;Vt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Vt(Fe){return Qt=s(Fe),e.timeFormat=Qt.format,e.timeParse=Qt.parse,e.utcFormat=Qt.utcFormat,e.utcParse=Qt.utcParse,Qt}var tr="%Y-%m-%dT%H:%M:%S.%LZ";function ar(Fe){return Fe.toISOString()}var zr=Date.prototype.toISOString?ar:e.utcFormat(tr);function lr(Fe){var Ge=new Date(Fe);return isNaN(Ge)?null:Ge}var At=+new Date("2000-01-01T00:00:00.000Z")?lr:e.utcParse(tr);e.isoFormat=zr,e.isoParse=At,e.timeFormatDefaultLocale=Vt,e.timeFormatLocale=s,Object.defineProperty(e,"__esModule",{value:!0})})});var N3=me((J1,x7)=>{(function(e,t){typeof J1=="object"&&typeof x7!="undefined"?t(J1):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(J1,function(e){"use strict";function t(V){return Math.abs(V=Math.round(V))>=1e21?V.toLocaleString("en").replace(/,/g,""):V.toString(10)}function r(V,W){if((J=(V=W?V.toExponential(W-1):V.toExponential()).indexOf("e"))<0)return null;var J,te=V.slice(0,J);return[te.length>1?te[0]+te.slice(2):te,+V.slice(J+1)]}function i(V){return V=r(Math.abs(V)),V?V[1]:NaN}function a(V,W){return function(J,te){for(var ne=J.length,oe=[],fe=0,ve=V[0],Se=0;ne>0&&ve>0&&(Se+ve+1>te&&(ve=Math.max(1,te-Se)),oe.push(J.substring(ne-=ve,ne+ve)),!((Se+=ve+1)>te));)ve=V[fe=(fe+1)%V.length];return oe.reverse().join(W)}}function s(V){return function(W){return W.replace(/[0-9]/g,function(J){return V[+J]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function f(V){if(!(W=l.exec(V)))throw new Error("invalid format: "+V);var W;return new h({fill:W[1],align:W[2],sign:W[3],symbol:W[4],zero:W[5],width:W[6],comma:W[7],precision:W[8]&&W[8].slice(1),trim:W[9],type:W[10]})}f.prototype=h.prototype;function h(V){this.fill=V.fill===void 0?" ":V.fill+"",this.align=V.align===void 0?">":V.align+"",this.sign=V.sign===void 0?"-":V.sign+"",this.symbol=V.symbol===void 0?"":V.symbol+"",this.zero=!!V.zero,this.width=V.width===void 0?void 0:+V.width,this.comma=!!V.comma,this.precision=V.precision===void 0?void 0:+V.precision,this.trim=!!V.trim,this.type=V.type===void 0?"":V.type+""}h.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function v(V){e:for(var W=V.length,J=1,te=-1,ne;J0&&(te=0);break}return te>0?V.slice(0,te)+V.slice(ne+1):V}var m;function _(V,W){var J=r(V,W);if(!J)return V+"";var te=J[0],ne=J[1],oe=ne-(m=Math.max(-8,Math.min(8,Math.floor(ne/3)))*3)+1,fe=te.length;return oe===fe?te:oe>fe?te+new Array(oe-fe+1).join("0"):oe>0?te.slice(0,oe)+"."+te.slice(oe):"0."+new Array(1-oe).join("0")+r(V,Math.max(0,W+oe-1))[0]}function T(V,W){var J=r(V,W);if(!J)return V+"";var te=J[0],ne=J[1];return ne<0?"0."+new Array(-ne).join("0")+te:te.length>ne+1?te.slice(0,ne+1)+"."+te.slice(ne+1):te+new Array(ne-te.length+2).join("0")}var S={"%":function(V,W){return(V*100).toFixed(W)},b:function(V){return Math.round(V).toString(2)},c:function(V){return V+""},d:t,e:function(V,W){return V.toExponential(W)},f:function(V,W){return V.toFixed(W)},g:function(V,W){return V.toPrecision(W)},o:function(V){return Math.round(V).toString(8)},p:function(V,W){return T(V*100,W)},r:T,s:_,X:function(V){return Math.round(V).toString(16).toUpperCase()},x:function(V){return Math.round(V).toString(16)}};function C(V){return V}var E=Array.prototype.map,L=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function z(V){var W=V.grouping===void 0||V.thousands===void 0?C:a(E.call(V.grouping,Number),V.thousands+""),J=V.currency===void 0?"":V.currency[0]+"",te=V.currency===void 0?"":V.currency[1]+"",ne=V.decimal===void 0?".":V.decimal+"",oe=V.numerals===void 0?C:s(E.call(V.numerals,String)),fe=V.percent===void 0?"%":V.percent+"",ve=V.minus===void 0?"-":V.minus+"",Se=V.nan===void 0?"NaN":V.nan+"";function Me(we){we=f(we);var Te=we.fill,Ce=we.align,Le=we.sign,$e=we.symbol,lt=we.zero,it=we.width,gt=we.comma,We=we.precision,Et=we.trim,nt=we.type;nt==="n"?(gt=!0,nt="g"):S[nt]||(We===void 0&&(We=12),Et=!0,nt="g"),(lt||Te==="0"&&Ce==="=")&&(lt=!0,Te="0",Ce="=");var wt=$e==="$"?J:$e==="#"&&/[boxX]/.test(nt)?"0"+nt.toLowerCase():"",xt=$e==="$"?te:/[%p]/.test(nt)?fe:"",vt=S[nt],de=/[defgprs%]/.test(nt);We=We===void 0?6:/[gprs]/.test(nt)?Math.max(1,Math.min(21,We)):Math.max(0,Math.min(20,We));function ze(pe){var at=wt,mt=xt,Xe,Ft,Lt;if(nt==="c")mt=vt(pe)+mt,pe="";else{pe=+pe;var Tt=pe<0||1/pe<0;if(pe=isNaN(pe)?Se:vt(Math.abs(pe),We),Et&&(pe=v(pe)),Tt&&+pe==0&&Le!=="+"&&(Tt=!1),at=(Tt?Le==="("?Le:ve:Le==="-"||Le==="("?"":Le)+at,mt=(nt==="s"?L[8+m/3]:"")+mt+(Tt&&Le==="("?")":""),de){for(Xe=-1,Ft=pe.length;++XeLt||Lt>57){mt=(Lt===46?ne+pe.slice(Xe+1):pe.slice(Xe))+mt,pe=pe.slice(0,Xe);break}}}gt&&!lt&&(pe=W(pe,1/0));var It=at.length+pe.length+mt.length,Gt=It>1)+at+pe+mt+Gt.slice(It);break;default:pe=Gt+at+pe+mt;break}return oe(pe)}return ze.toString=function(){return we+""},ze}function Ae(we,Te){var Ce=Me((we=f(we),we.type="f",we)),Le=Math.max(-8,Math.min(8,Math.floor(i(Te)/3)))*3,$e=Math.pow(10,-Le),lt=L[8+Le/3];return function(it){return Ce($e*it)+lt}}return{format:Me,formatPrefix:Ae}}var B;q({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function q(V){return B=z(V),e.format=B.format,e.formatPrefix=B.formatPrefix,B}function I(V){return Math.max(0,-i(Math.abs(V)))}function O(V,W){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(i(W)/3)))*3-i(Math.abs(V)))}function H(V,W){return V=Math.abs(V),W=Math.abs(W)-V,Math.max(0,i(W)-i(V))+1}e.FormatSpecifier=h,e.formatDefaultLocale=q,e.formatLocale=z,e.formatSpecifier=f,e.precisionFixed=I,e.precisionPrefix=O,e.precisionRound=H,Object.defineProperty(e,"__esModule",{value:!0})})});var w7=me((bme,b7)=>{"use strict";b7.exports=function(e){for(var t=e.length,r,i=0;i13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var Da=me((wme,T7)=>{"use strict";var KX=w7();T7.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&KX(r))return!1}else if(t!=="number")return!1;return e-e<1}});var Zi=me((Tme,A7)=>{"use strict";A7.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var B3=me((K1,M7)=>{(function(e,t){typeof K1=="object"&&typeof M7!="undefined"?t(K1):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(K1,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),i=0;i>2],m+=t[(f[h]&3)<<4|f[h+1]>>4],m+=t[(f[h+1]&15)<<2|f[h+2]>>6],m+=t[f[h+2]&63];return v%3===2?m=m.substring(0,m.length-1)+"=":v%3===1&&(m=m.substring(0,m.length-2)+"=="),m},s=function(l){var f=l.length*.75,h=l.length,v,m=0,_,T,S,C;l[l.length-1]==="="&&(f--,l[l.length-2]==="="&&f--);var E=new ArrayBuffer(f),L=new Uint8Array(E);for(v=0;v>4,L[m++]=(T&15)<<4|S>>2,L[m++]=(S&3)<<6|C&63;return E};e.decode=s,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var cc=me((Ame,S7)=>{"use strict";S7.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var al=me(Pu=>{"use strict";var QX=B3().decode,$X=cc(),O3=Array.isArray,ej=ArrayBuffer,tj=DataView;function k7(e){return ej.isView(e)&&!(e instanceof tj)}Pu.isTypedArray=k7;function Q1(e){return O3(e)||k7(e)}Pu.isArrayOrTypedArray=Q1;function rj(e){return!Q1(e[0])}Pu.isArray1D=rj;Pu.ensureArray=function(e,t){return O3(e)||(e=[]),e.length=t,e};var fo={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};fo.uint8c=fo.u1c;fo.uint8=fo.u1;fo.int8=fo.i1;fo.uint16=fo.u2;fo.int16=fo.i2;fo.uint32=fo.u4;fo.int32=fo.i4;fo.float32=fo.f4;fo.float64=fo.f8;function U3(e){return e.constructor===ArrayBuffer}Pu.isArrayBuffer=U3;Pu.decodeTypedArraySpec=function(e){var t=[],r=aj(e),i=r.dtype,a=fo[i];if(!a)throw new Error('Error in dtype: "'+i+'"');var s=a.BYTES_PER_ELEMENT,l=r.bdata;U3(l)||(l=QX(l));var f=r.shape===void 0?[l.byteLength/s]:(""+r.shape).split(",");f.reverse();var h=f.length,v,m,_=+f[0],T=s*_,S=0;if(h===1)t=new a(l);else if(h===2)for(v=+f[1],m=0;m{"use strict";var E7=Da(),H3=al().isArrayOrTypedArray;z7.exports=function(t,r){if(E7(r))r=String(r);else if(typeof r!="string"||r.substr(r.length-4)==="[-1]")throw"bad property string";var i=r.split("."),a,s,l,f;for(f=0;f{"use strict";var l0=Ty(),lj=/^\w*$/,uj=0,I7=1,$1=2,R7=3,$v=4;F7.exports=function(t,r,i,a){i=i||"name",a=a||"value";var s,l,f,h={};r&&r.length?(f=l0(t,r),l=f.get()):l=t,r=r||"";var v={};if(l)for(s=0;s2)return h[S]=h[S]|$1,_.set(T,null);if(m){for(s=S;s{"use strict";var fj=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,cj=/^[^\.\[\]]+$/;N7.exports=function(e,t){for(;t;){var r=e.match(fj);if(r)e=r[1];else if(e.match(cj))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var e_=me((Eme,O7)=>{"use strict";var hj=Da();O7.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var i=Math.log(Math.min(r[0],r[1]))/Math.LN10;return hj(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var H7=me((Lme,V7)=>{"use strict";var U7=al().isArrayOrTypedArray,Ay=cc();V7.exports=function e(t,r){for(var i in r){var a=r[i],s=t[i];if(s!==a)if(i.charAt(0)==="_"||typeof a=="function"){if(i in t)continue;t[i]=a}else if(U7(a)&&U7(s)&&Ay(a[0])){if(i==="customdata"||i==="ids")continue;for(var l=Math.min(a.length,s.length),f=0;f{"use strict";function vj(e,t){var r=e%t;return r<0?r+t:r}function dj(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}G7.exports={mod:vj,modHalf:dj}});var Tf=me((Pme,t_)=>{(function(e){var t=/^\s+/,r=/\s+$/,i=0,a=e.round,s=e.min,l=e.max,f=e.random;function h(de,ze){if(de=de||"",ze=ze||{},de instanceof h)return de;if(!(this instanceof h))return new h(de,ze);var pe=v(de);this._originalInput=de,this._r=pe.r,this._g=pe.g,this._b=pe.b,this._a=pe.a,this._roundA=a(100*this._a)/100,this._format=ze.format||pe.format,this._gradientType=ze.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=pe.ok,this._tc_id=i++}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var de=this.toRgb();return(de.r*299+de.g*587+de.b*114)/1e3},getLuminance:function(){var de=this.toRgb(),ze,pe,at,mt,Xe,Ft;return ze=de.r/255,pe=de.g/255,at=de.b/255,ze<=.03928?mt=ze/12.92:mt=e.pow((ze+.055)/1.055,2.4),pe<=.03928?Xe=pe/12.92:Xe=e.pow((pe+.055)/1.055,2.4),at<=.03928?Ft=at/12.92:Ft=e.pow((at+.055)/1.055,2.4),.2126*mt+.7152*Xe+.0722*Ft},setAlpha:function(de){return this._a=we(de),this._roundA=a(100*this._a)/100,this},toHsv:function(){var de=S(this._r,this._g,this._b);return{h:de.h*360,s:de.s,v:de.v,a:this._a}},toHsvString:function(){var de=S(this._r,this._g,this._b),ze=a(de.h*360),pe=a(de.s*100),at=a(de.v*100);return this._a==1?"hsv("+ze+", "+pe+"%, "+at+"%)":"hsva("+ze+", "+pe+"%, "+at+"%, "+this._roundA+")"},toHsl:function(){var de=_(this._r,this._g,this._b);return{h:de.h*360,s:de.s,l:de.l,a:this._a}},toHslString:function(){var de=_(this._r,this._g,this._b),ze=a(de.h*360),pe=a(de.s*100),at=a(de.l*100);return this._a==1?"hsl("+ze+", "+pe+"%, "+at+"%)":"hsla("+ze+", "+pe+"%, "+at+"%, "+this._roundA+")"},toHex:function(de){return E(this._r,this._g,this._b,de)},toHexString:function(de){return"#"+this.toHex(de)},toHex8:function(de){return L(this._r,this._g,this._b,this._a,de)},toHex8String:function(de){return"#"+this.toHex8(de)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(Te(this._r,255)*100)+"%",g:a(Te(this._g,255)*100)+"%",b:a(Te(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(Te(this._r,255)*100)+"%, "+a(Te(this._g,255)*100)+"%, "+a(Te(this._b,255)*100)+"%)":"rgba("+a(Te(this._r,255)*100)+"%, "+a(Te(this._g,255)*100)+"%, "+a(Te(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Me[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(de){var ze="#"+z(this._r,this._g,this._b,this._a),pe=ze,at=this._gradientType?"GradientType = 1, ":"";if(de){var mt=h(de);pe="#"+z(mt._r,mt._g,mt._b,mt._a)}return"progid:DXImageTransform.Microsoft.gradient("+at+"startColorstr="+ze+",endColorstr="+pe+")"},toString:function(de){var ze=!!de;de=de||this._format;var pe=!1,at=this._a<1&&this._a>=0,mt=!ze&&at&&(de==="hex"||de==="hex6"||de==="hex3"||de==="hex4"||de==="hex8"||de==="name");return mt?de==="name"&&this._a===0?this.toName():this.toRgbString():(de==="rgb"&&(pe=this.toRgbString()),de==="prgb"&&(pe=this.toPercentageRgbString()),(de==="hex"||de==="hex6")&&(pe=this.toHexString()),de==="hex3"&&(pe=this.toHexString(!0)),de==="hex4"&&(pe=this.toHex8String(!0)),de==="hex8"&&(pe=this.toHex8String()),de==="name"&&(pe=this.toName()),de==="hsl"&&(pe=this.toHslString()),de==="hsv"&&(pe=this.toHsvString()),pe||this.toHexString())},clone:function(){return h(this.toString())},_applyModification:function(de,ze){var pe=de.apply(null,[this].concat([].slice.call(ze)));return this._r=pe._r,this._g=pe._g,this._b=pe._b,this.setAlpha(pe._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(H,arguments)},darken:function(){return this._applyModification(V,arguments)},desaturate:function(){return this._applyModification(B,arguments)},saturate:function(){return this._applyModification(q,arguments)},greyscale:function(){return this._applyModification(I,arguments)},spin:function(){return this._applyModification(W,arguments)},_applyCombination:function(de,ze){return de.apply(null,[this].concat([].slice.call(ze)))},analogous:function(){return this._applyCombination(fe,arguments)},complement:function(){return this._applyCombination(J,arguments)},monochromatic:function(){return this._applyCombination(ve,arguments)},splitcomplement:function(){return this._applyCombination(oe,arguments)},triad:function(){return this._applyCombination(te,arguments)},tetrad:function(){return this._applyCombination(ne,arguments)}},h.fromRatio=function(de,ze){if(typeof de=="object"){var pe={};for(var at in de)de.hasOwnProperty(at)&&(at==="a"?pe[at]=de[at]:pe[at]=gt(de[at]));de=pe}return h(de,ze)};function v(de){var ze={r:0,g:0,b:0},pe=1,at=null,mt=null,Xe=null,Ft=!1,Lt=!1;return typeof de=="string"&&(de=xt(de)),typeof de=="object"&&(wt(de.r)&&wt(de.g)&&wt(de.b)?(ze=m(de.r,de.g,de.b),Ft=!0,Lt=String(de.r).substr(-1)==="%"?"prgb":"rgb"):wt(de.h)&&wt(de.s)&&wt(de.v)?(at=gt(de.s),mt=gt(de.v),ze=C(de.h,at,mt),Ft=!0,Lt="hsv"):wt(de.h)&&wt(de.s)&&wt(de.l)&&(at=gt(de.s),Xe=gt(de.l),ze=T(de.h,at,Xe),Ft=!0,Lt="hsl"),de.hasOwnProperty("a")&&(pe=de.a)),pe=we(pe),{ok:Ft,format:de.format||Lt,r:s(255,l(ze.r,0)),g:s(255,l(ze.g,0)),b:s(255,l(ze.b,0)),a:pe}}function m(de,ze,pe){return{r:Te(de,255)*255,g:Te(ze,255)*255,b:Te(pe,255)*255}}function _(de,ze,pe){de=Te(de,255),ze=Te(ze,255),pe=Te(pe,255);var at=l(de,ze,pe),mt=s(de,ze,pe),Xe,Ft,Lt=(at+mt)/2;if(at==mt)Xe=Ft=0;else{var Tt=at-mt;switch(Ft=Lt>.5?Tt/(2-at-mt):Tt/(at+mt),at){case de:Xe=(ze-pe)/Tt+(ze1&&(Ct-=1),Ct<1/6?It+(Gt-It)*6*Ct:Ct<1/2?Gt:Ct<2/3?It+(Gt-It)*(2/3-Ct)*6:It}if(ze===0)at=mt=Xe=pe;else{var Lt=pe<.5?pe*(1+ze):pe+ze-pe*ze,Tt=2*pe-Lt;at=Ft(Tt,Lt,de+1/3),mt=Ft(Tt,Lt,de),Xe=Ft(Tt,Lt,de-1/3)}return{r:at*255,g:mt*255,b:Xe*255}}function S(de,ze,pe){de=Te(de,255),ze=Te(ze,255),pe=Te(pe,255);var at=l(de,ze,pe),mt=s(de,ze,pe),Xe,Ft,Lt=at,Tt=at-mt;if(Ft=at===0?0:Tt/at,at==mt)Xe=0;else{switch(at){case de:Xe=(ze-pe)/Tt+(ze>1)+720)%360;--ze;)at.h=(at.h+mt)%360,Xe.push(h(at));return Xe}function ve(de,ze){ze=ze||6;for(var pe=h(de).toHsv(),at=pe.h,mt=pe.s,Xe=pe.v,Ft=[],Lt=1/ze;ze--;)Ft.push(h({h:at,s:mt,v:Xe})),Xe=(Xe+Lt)%1;return Ft}h.mix=function(de,ze,pe){pe=pe===0?0:pe||50;var at=h(de).toRgb(),mt=h(ze).toRgb(),Xe=pe/100,Ft={r:(mt.r-at.r)*Xe+at.r,g:(mt.g-at.g)*Xe+at.g,b:(mt.b-at.b)*Xe+at.b,a:(mt.a-at.a)*Xe+at.a};return h(Ft)},h.readability=function(de,ze){var pe=h(de),at=h(ze);return(e.max(pe.getLuminance(),at.getLuminance())+.05)/(e.min(pe.getLuminance(),at.getLuminance())+.05)},h.isReadable=function(de,ze,pe){var at=h.readability(de,ze),mt,Xe;switch(Xe=!1,mt=vt(pe),mt.level+mt.size){case"AAsmall":case"AAAlarge":Xe=at>=4.5;break;case"AAlarge":Xe=at>=3;break;case"AAAsmall":Xe=at>=7;break}return Xe},h.mostReadable=function(de,ze,pe){var at=null,mt=0,Xe,Ft,Lt,Tt;pe=pe||{},Ft=pe.includeFallbackColors,Lt=pe.level,Tt=pe.size;for(var It=0;Itmt&&(mt=Xe,at=h(ze[It]));return h.isReadable(de,at,{level:Lt,size:Tt})||!Ft?at:(pe.includeFallbackColors=!1,h.mostReadable(de,["#fff","#000"],pe))};var Se=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Me=h.hexNames=Ae(Se);function Ae(de){var ze={};for(var pe in de)de.hasOwnProperty(pe)&&(ze[de[pe]]=pe);return ze}function we(de){return de=parseFloat(de),(isNaN(de)||de<0||de>1)&&(de=1),de}function Te(de,ze){$e(de)&&(de="100%");var pe=lt(de);return de=s(ze,l(0,parseFloat(de))),pe&&(de=parseInt(de*ze,10)/100),e.abs(de-ze)<1e-6?1:de%ze/parseFloat(ze)}function Ce(de){return s(1,l(0,de))}function Le(de){return parseInt(de,16)}function $e(de){return typeof de=="string"&&de.indexOf(".")!=-1&&parseFloat(de)===1}function lt(de){return typeof de=="string"&&de.indexOf("%")!=-1}function it(de){return de.length==1?"0"+de:""+de}function gt(de){return de<=1&&(de=de*100+"%"),de}function We(de){return e.round(parseFloat(de)*255).toString(16)}function Et(de){return Le(de)/255}var nt=function(){var de="[-\\+]?\\d+%?",ze="[-\\+]?\\d*\\.\\d+%?",pe="(?:"+ze+")|(?:"+de+")",at="[\\s|\\(]+("+pe+")[,|\\s]+("+pe+")[,|\\s]+("+pe+")\\s*\\)?",mt="[\\s|\\(]+("+pe+")[,|\\s]+("+pe+")[,|\\s]+("+pe+")[,|\\s]+("+pe+")\\s*\\)?";return{CSS_UNIT:new RegExp(pe),rgb:new RegExp("rgb"+at),rgba:new RegExp("rgba"+mt),hsl:new RegExp("hsl"+at),hsla:new RegExp("hsla"+mt),hsv:new RegExp("hsv"+at),hsva:new RegExp("hsva"+mt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function wt(de){return!!nt.CSS_UNIT.exec(de)}function xt(de){de=de.replace(t,"").replace(r,"").toLowerCase();var ze=!1;if(Se[de])de=Se[de],ze=!0;else if(de=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var pe;return(pe=nt.rgb.exec(de))?{r:pe[1],g:pe[2],b:pe[3]}:(pe=nt.rgba.exec(de))?{r:pe[1],g:pe[2],b:pe[3],a:pe[4]}:(pe=nt.hsl.exec(de))?{h:pe[1],s:pe[2],l:pe[3]}:(pe=nt.hsla.exec(de))?{h:pe[1],s:pe[2],l:pe[3],a:pe[4]}:(pe=nt.hsv.exec(de))?{h:pe[1],s:pe[2],v:pe[3]}:(pe=nt.hsva.exec(de))?{h:pe[1],s:pe[2],v:pe[3],a:pe[4]}:(pe=nt.hex8.exec(de))?{r:Le(pe[1]),g:Le(pe[2]),b:Le(pe[3]),a:Et(pe[4]),format:ze?"name":"hex8"}:(pe=nt.hex6.exec(de))?{r:Le(pe[1]),g:Le(pe[2]),b:Le(pe[3]),format:ze?"name":"hex"}:(pe=nt.hex4.exec(de))?{r:Le(pe[1]+""+pe[1]),g:Le(pe[2]+""+pe[2]),b:Le(pe[3]+""+pe[3]),a:Et(pe[4]+""+pe[4]),format:ze?"name":"hex8"}:(pe=nt.hex3.exec(de))?{r:Le(pe[1]+""+pe[1]),g:Le(pe[2]+""+pe[2]),b:Le(pe[3]+""+pe[3]),format:ze?"name":"hex"}:!1}function vt(de){var ze,pe;return de=de||{level:"AA",size:"small"},ze=(de.level||"AA").toUpperCase(),pe=(de.size||"small").toLowerCase(),ze!=="AA"&&ze!=="AAA"&&(ze="AA"),pe!=="small"&&pe!=="large"&&(pe="small"),{level:ze,size:pe}}typeof t_!="undefined"&&t_.exports?t_.exports=h:window.tinycolor=h})(Math)});var mn=me(ky=>{"use strict";var Z7=cc(),My=Array.isArray;function pj(e,t){var r,i;for(r=0;r{"use strict";Y7.exports=function(e){var t=e.variantValues,r=e.editType,i=e.colorEditType;i===void 0&&(i=r);var a={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var s={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:i},weight:a,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(s.size.dflt="auto"),e.autoColor&&(s.color.dflt="auto"),e.arrayOk&&(s.family.arrayOk=!0,s.weight.arrayOk=!0,s.style.arrayOk=!0,e.noFontVariant||(s.variant.arrayOk=!0),e.noFontTextcase||(s.textcase.arrayOk=!0),e.noFontLineposition||(s.lineposition.arrayOk=!0),e.noFontShadow||(s.shadow.arrayOk=!0),s.size.arrayOk=!0,s.color.arrayOk=!0),s}});var Cy=me((Rme,W7)=>{"use strict";W7.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var f0=me((Fme,J7)=>{"use strict";var X7=Cy(),j7=qo(),G3=j7({editType:"none"});G3.family.dflt=X7.HOVERFONT;G3.size.dflt=X7.HOVERFONTSIZE;J7.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:G3,grouptitlefont:j7({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var r_=me((qme,K7)=>{"use strict";var mj=qo(),Ey=f0().hoverlabel,Ly=mn().extendFlat;K7.exports={hoverlabel:{bgcolor:Ly({},Ey.bgcolor,{arrayOk:!0}),bordercolor:Ly({},Ey.bordercolor,{arrayOk:!0}),font:mj({arrayOk:!0,editType:"none"}),align:Ly({},Ey.align,{arrayOk:!0}),namelength:Ly({},Ey.namelength,{arrayOk:!0}),showarrow:Ly({},Ey.showarrow),editType:"none"}}});var ys=me((Nme,Q7)=>{"use strict";var yj=qo(),gj=r_();Q7.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:yj({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:gj.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var ed=me((Bme,t8)=>{"use strict";var _j=Tf(),a_={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},$7=a_.RdBu;function xj(e,t){if(t||(t=$7),!e)return t;function r(){try{e=a_[e]||JSON.parse(e)}catch(i){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),e8(e)?e:t}function e8(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";td.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];td.defaultLine="#444";td.lightLine="#eee";td.background="#fff";td.borderLine="#BEC8D9";td.lightFraction=100*10/11});var Oa=me((Ume,r8)=>{"use strict";var Rs=Tf(),wj=Da(),Tj=al().isTypedArray,$n=r8.exports={},i_=Af();$n.defaults=i_.defaults;var Aj=$n.defaultLine=i_.defaultLine;$n.lightLine=i_.lightLine;var Y3=$n.background=i_.background;$n.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};$n.rgb=function(e){return $n.tinyRGB(Rs(e))};$n.opacity=function(e){return e?Rs(e).getAlpha():0};$n.addOpacity=function(e,t){var r=Rs(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};$n.combine=function(e,t){var r=Rs(e).toRgb();if(r.a===1)return Rs(e).toRgbString();var i=Rs(t||Y3).toRgb(),a=i.a===1?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},s={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return Rs(s).toRgbString()};$n.interpolate=function(e,t,r){var i=Rs(e).toRgb(),a=Rs(t).toRgb(),s={r:r*i.r+(1-r)*a.r,g:r*i.g+(1-r)*a.g,b:r*i.b+(1-r)*a.b};return Rs(s).toRgbString()};$n.contrast=function(e,t,r){var i=Rs(e);i.getAlpha()!==1&&(i=Rs($n.combine(e,Y3)));var a=i.isDark()?t?i.lighten(t):Y3:r?i.darken(r):Aj;return a.toString()};$n.stroke=function(e,t){var r=Rs(t);e.style({stroke:$n.tinyRGB(r),"stroke-opacity":r.getAlpha()})};$n.fill=function(e,t){var r=Rs(t);e.style({fill:$n.tinyRGB(r),"fill-opacity":r.getAlpha()})};$n.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,i,a,s;for(r=0;r=0)))return e;if(s===3)i[s]>1&&(i[s]=1);else if(i[s]>=1)return e}var l=Math.round(i[0]*255)+", "+Math.round(i[1]*255)+", "+Math.round(i[2]*255);return a?"rgba("+l+", "+i[3]+")":"rgb("+l+")"}});var n_=me((Vme,a8)=>{"use strict";a8.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var c0=me(i8=>{"use strict";i8.counter=function(e,t,r,i){var a=(t||"")+(r?"":"$"),s=i===!1?"":"^";return e==="xy"?new RegExp(s+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(s+e+"([2-9]|[1-9][0-9]+)?"+a)}});var l8=me(Fs=>{"use strict";var W3=Da(),n8=Tf(),o8=mn().extendFlat,Mj=ys(),Sj=ed(),kj=Oa(),Cj=n_().DESELECTDIM,h0=Ty(),s8=c0().counter,Ej=u0().modHalf,Mf=al().isArrayOrTypedArray,bh=al().isTypedArraySpec,wh=al().decodeTypedArraySpec;Fs.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(Mf(e)?e:bh(e)?wh(e):r)}},enumerated:{coerceFunction:function(e,t,r,i){i.coerceNumber&&(e=+e),i.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,i=0;ii.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}bh(e)&&(e=wh(e)),e%1||!W3(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,i){if(typeof e!="string"){var a=typeof e=="number";i.strict===!0||!a?t.set(r):t.set(String(e))}else i.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){bh(e)&&(e=wh(e)),n8(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function i(a){return n8(a).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(i)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(Sj.get(e,r))}},angle:{coerceFunction:function(e,t,r){bh(e)&&(e=wh(e)),e==="auto"?t.set("auto"):W3(e)?t.set(Ej(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,i){var a=i.regex||s8(r);if(typeof e=="string"&&a.test(e)){t.set(e);return}t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!s8(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var a=e.split("+"),s=0;s{"use strict";var u8={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},f8={};function c8(e,t){for(var r in e){var i=e[r];i.valType?t[r]=i.dflt:(t[r]||(t[r]={}),c8(i,t[r]))}}c8(u8,f8);h8.exports={configAttributes:u8,dfltConfig:f8}});var j3=me((Yme,v8)=>{"use strict";var X3=Ja(),Lj=Da(),Dy=[];v8.exports=function(e,t){if(Dy.indexOf(e)!==-1)return;Dy.push(e);var r=1e3;Lj(t)?r=t:t==="long"&&(r=3e3);var i=X3.select("body").selectAll(".plotly-notifier").data([0]);i.enter().append("div").classed("plotly-notifier",!0);var a=i.selectAll(".notifier-note").data(Dy);function s(l){l.duration(700).style("opacity",0).each("end",function(f){var h=Dy.indexOf(f);h!==-1&&Dy.splice(h,1),X3.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var f=X3.select(this);f.append("button").classed("notifier-close",!0).html("×").on("click",function(){f.transition().call(s)});for(var h=f.append("p"),v=l.split(//g),m=0;m{"use strict";var v0=rd().dfltConfig,J3=j3(),K3=d8.exports={};K3.log=function(){var e;if(v0.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};K3.warn=function(){var e;if(v0.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};K3.error=function(){var e;if(v0.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var s_=me((Xme,p8)=>{"use strict";p8.exports=function(){}});var Q3=me((jme,m8)=>{"use strict";m8.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),a=0;a{y8.exports=Dj;function Dj(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var x8=me((Kme,_8)=>{_8.exports=Pj;function Pj(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var w8=me((Qme,b8)=>{b8.exports=zj;function zj(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var $3=me(($me,T8)=>{T8.exports=Ij;function Ij(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var M8=me((eye,A8)=>{A8.exports=Rj;function Rj(e,t){if(e===t){var r=t[1],i=t[2],a=t[3],s=t[6],l=t[7],f=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=s,e[11]=t[14],e[12]=a,e[13]=l,e[14]=f}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var k8=me((tye,S8)=>{S8.exports=Fj;function Fj(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],f=t[5],h=t[6],v=t[7],m=t[8],_=t[9],T=t[10],S=t[11],C=t[12],E=t[13],L=t[14],z=t[15],B=r*f-i*l,q=r*h-a*l,I=r*v-s*l,O=i*h-a*f,H=i*v-s*f,V=a*v-s*h,W=m*E-_*C,J=m*L-T*C,te=m*z-S*C,ne=_*L-T*E,oe=_*z-S*E,fe=T*z-S*L,ve=B*fe-q*oe+I*ne+O*te-H*J+V*W;return ve?(ve=1/ve,e[0]=(f*fe-h*oe+v*ne)*ve,e[1]=(a*oe-i*fe-s*ne)*ve,e[2]=(E*V-L*H+z*O)*ve,e[3]=(T*H-_*V-S*O)*ve,e[4]=(h*te-l*fe-v*J)*ve,e[5]=(r*fe-a*te+s*J)*ve,e[6]=(L*I-C*V-z*q)*ve,e[7]=(m*V-T*I+S*q)*ve,e[8]=(l*oe-f*te+v*W)*ve,e[9]=(i*te-r*oe-s*W)*ve,e[10]=(C*H-E*I+z*B)*ve,e[11]=(_*I-m*H-S*B)*ve,e[12]=(f*J-l*ne-h*W)*ve,e[13]=(r*ne-i*J+a*W)*ve,e[14]=(E*q-C*O-L*B)*ve,e[15]=(m*O-_*q+T*B)*ve,e):null}});var E8=me((rye,C8)=>{C8.exports=qj;function qj(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],f=t[5],h=t[6],v=t[7],m=t[8],_=t[9],T=t[10],S=t[11],C=t[12],E=t[13],L=t[14],z=t[15];return e[0]=f*(T*z-S*L)-_*(h*z-v*L)+E*(h*S-v*T),e[1]=-(i*(T*z-S*L)-_*(a*z-s*L)+E*(a*S-s*T)),e[2]=i*(h*z-v*L)-f*(a*z-s*L)+E*(a*v-s*h),e[3]=-(i*(h*S-v*T)-f*(a*S-s*T)+_*(a*v-s*h)),e[4]=-(l*(T*z-S*L)-m*(h*z-v*L)+C*(h*S-v*T)),e[5]=r*(T*z-S*L)-m*(a*z-s*L)+C*(a*S-s*T),e[6]=-(r*(h*z-v*L)-l*(a*z-s*L)+C*(a*v-s*h)),e[7]=r*(h*S-v*T)-l*(a*S-s*T)+m*(a*v-s*h),e[8]=l*(_*z-S*E)-m*(f*z-v*E)+C*(f*S-v*_),e[9]=-(r*(_*z-S*E)-m*(i*z-s*E)+C*(i*S-s*_)),e[10]=r*(f*z-v*E)-l*(i*z-s*E)+C*(i*v-s*f),e[11]=-(r*(f*S-v*_)-l*(i*S-s*_)+m*(i*v-s*f)),e[12]=-(l*(_*L-T*E)-m*(f*L-h*E)+C*(f*T-h*_)),e[13]=r*(_*L-T*E)-m*(i*L-a*E)+C*(i*T-a*_),e[14]=-(r*(f*L-h*E)-l*(i*L-a*E)+C*(i*h-a*f)),e[15]=r*(f*T-h*_)-l*(i*T-a*_)+m*(i*h-a*f),e}});var D8=me((aye,L8)=>{L8.exports=Nj;function Nj(e){var t=e[0],r=e[1],i=e[2],a=e[3],s=e[4],l=e[5],f=e[6],h=e[7],v=e[8],m=e[9],_=e[10],T=e[11],S=e[12],C=e[13],E=e[14],L=e[15],z=t*l-r*s,B=t*f-i*s,q=t*h-a*s,I=r*f-i*l,O=r*h-a*l,H=i*h-a*f,V=v*C-m*S,W=v*E-_*S,J=v*L-T*S,te=m*E-_*C,ne=m*L-T*C,oe=_*L-T*E;return z*oe-B*ne+q*te+I*J-O*W+H*V}});var z8=me((iye,P8)=>{P8.exports=Bj;function Bj(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],f=t[4],h=t[5],v=t[6],m=t[7],_=t[8],T=t[9],S=t[10],C=t[11],E=t[12],L=t[13],z=t[14],B=t[15],q=r[0],I=r[1],O=r[2],H=r[3];return e[0]=q*i+I*f+O*_+H*E,e[1]=q*a+I*h+O*T+H*L,e[2]=q*s+I*v+O*S+H*z,e[3]=q*l+I*m+O*C+H*B,q=r[4],I=r[5],O=r[6],H=r[7],e[4]=q*i+I*f+O*_+H*E,e[5]=q*a+I*h+O*T+H*L,e[6]=q*s+I*v+O*S+H*z,e[7]=q*l+I*m+O*C+H*B,q=r[8],I=r[9],O=r[10],H=r[11],e[8]=q*i+I*f+O*_+H*E,e[9]=q*a+I*h+O*T+H*L,e[10]=q*s+I*v+O*S+H*z,e[11]=q*l+I*m+O*C+H*B,q=r[12],I=r[13],O=r[14],H=r[15],e[12]=q*i+I*f+O*_+H*E,e[13]=q*a+I*h+O*T+H*L,e[14]=q*s+I*v+O*S+H*z,e[15]=q*l+I*m+O*C+H*B,e}});var R8=me((nye,I8)=>{I8.exports=Oj;function Oj(e,t,r){var i=r[0],a=r[1],s=r[2],l,f,h,v,m,_,T,S,C,E,L,z;return t===e?(e[12]=t[0]*i+t[4]*a+t[8]*s+t[12],e[13]=t[1]*i+t[5]*a+t[9]*s+t[13],e[14]=t[2]*i+t[6]*a+t[10]*s+t[14],e[15]=t[3]*i+t[7]*a+t[11]*s+t[15]):(l=t[0],f=t[1],h=t[2],v=t[3],m=t[4],_=t[5],T=t[6],S=t[7],C=t[8],E=t[9],L=t[10],z=t[11],e[0]=l,e[1]=f,e[2]=h,e[3]=v,e[4]=m,e[5]=_,e[6]=T,e[7]=S,e[8]=C,e[9]=E,e[10]=L,e[11]=z,e[12]=l*i+m*a+C*s+t[12],e[13]=f*i+_*a+E*s+t[13],e[14]=h*i+T*a+L*s+t[14],e[15]=v*i+S*a+z*s+t[15]),e}});var q8=me((oye,F8)=>{F8.exports=Uj;function Uj(e,t,r){var i=r[0],a=r[1],s=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var B8=me((sye,N8)=>{N8.exports=Vj;function Vj(e,t,r,i){var a=i[0],s=i[1],l=i[2],f=Math.sqrt(a*a+s*s+l*l),h,v,m,_,T,S,C,E,L,z,B,q,I,O,H,V,W,J,te,ne,oe,fe,ve,Se;return Math.abs(f)<1e-6?null:(f=1/f,a*=f,s*=f,l*=f,h=Math.sin(r),v=Math.cos(r),m=1-v,_=t[0],T=t[1],S=t[2],C=t[3],E=t[4],L=t[5],z=t[6],B=t[7],q=t[8],I=t[9],O=t[10],H=t[11],V=a*a*m+v,W=s*a*m+l*h,J=l*a*m-s*h,te=a*s*m-l*h,ne=s*s*m+v,oe=l*s*m+a*h,fe=a*l*m+s*h,ve=s*l*m-a*h,Se=l*l*m+v,e[0]=_*V+E*W+q*J,e[1]=T*V+L*W+I*J,e[2]=S*V+z*W+O*J,e[3]=C*V+B*W+H*J,e[4]=_*te+E*ne+q*oe,e[5]=T*te+L*ne+I*oe,e[6]=S*te+z*ne+O*oe,e[7]=C*te+B*ne+H*oe,e[8]=_*fe+E*ve+q*Se,e[9]=T*fe+L*ve+I*Se,e[10]=S*fe+z*ve+O*Se,e[11]=C*fe+B*ve+H*Se,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var U8=me((lye,O8)=>{O8.exports=Hj;function Hj(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[4],l=t[5],f=t[6],h=t[7],v=t[8],m=t[9],_=t[10],T=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*a+v*i,e[5]=l*a+m*i,e[6]=f*a+_*i,e[7]=h*a+T*i,e[8]=v*a-s*i,e[9]=m*a-l*i,e[10]=_*a-f*i,e[11]=T*a-h*i,e}});var H8=me((uye,V8)=>{V8.exports=Gj;function Gj(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],f=t[2],h=t[3],v=t[8],m=t[9],_=t[10],T=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a-v*i,e[1]=l*a-m*i,e[2]=f*a-_*i,e[3]=h*a-T*i,e[8]=s*i+v*a,e[9]=l*i+m*a,e[10]=f*i+_*a,e[11]=h*i+T*a,e}});var Z8=me((fye,G8)=>{G8.exports=Zj;function Zj(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],f=t[2],h=t[3],v=t[4],m=t[5],_=t[6],T=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a+v*i,e[1]=l*a+m*i,e[2]=f*a+_*i,e[3]=h*a+T*i,e[4]=v*a-s*i,e[5]=m*a-l*i,e[6]=_*a-f*i,e[7]=T*a-h*i,e}});var W8=me((cye,Y8)=>{Y8.exports=Yj;function Yj(e,t,r){var i,a,s,l=r[0],f=r[1],h=r[2],v=Math.sqrt(l*l+f*f+h*h);return Math.abs(v)<1e-6?null:(v=1/v,l*=v,f*=v,h*=v,i=Math.sin(t),a=Math.cos(t),s=1-a,e[0]=l*l*s+a,e[1]=f*l*s+h*i,e[2]=h*l*s-f*i,e[3]=0,e[4]=l*f*s-h*i,e[5]=f*f*s+a,e[6]=h*f*s+l*i,e[7]=0,e[8]=l*h*s+f*i,e[9]=f*h*s-l*i,e[10]=h*h*s+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var j8=me((hye,X8)=>{X8.exports=Wj;function Wj(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],f=i+i,h=a+a,v=s+s,m=i*f,_=i*h,T=i*v,S=a*h,C=a*v,E=s*v,L=l*f,z=l*h,B=l*v;return e[0]=1-(S+E),e[1]=_+B,e[2]=T-z,e[3]=0,e[4]=_-B,e[5]=1-(m+E),e[6]=C+L,e[7]=0,e[8]=T+z,e[9]=C-L,e[10]=1-(m+S),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var K8=me((vye,J8)=>{J8.exports=Xj;function Xj(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var $8=me((dye,Q8)=>{Q8.exports=jj;function jj(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var tS=me((pye,eS)=>{eS.exports=Jj;function Jj(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var aS=me((mye,rS)=>{rS.exports=Kj;function Kj(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var nS=me((yye,iS)=>{iS.exports=Qj;function Qj(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var sS=me((gye,oS)=>{oS.exports=$j;function $j(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=r+r,f=i+i,h=a+a,v=r*l,m=i*l,_=i*f,T=a*l,S=a*f,C=a*h,E=s*l,L=s*f,z=s*h;return e[0]=1-_-C,e[1]=m+z,e[2]=T-L,e[3]=0,e[4]=m-z,e[5]=1-v-C,e[6]=S+E,e[7]=0,e[8]=T+L,e[9]=S-E,e[10]=1-v-_,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var uS=me((_ye,lS)=>{lS.exports=eJ;function eJ(e,t,r,i,a,s,l){var f=1/(r-t),h=1/(a-i),v=1/(s-l);return e[0]=s*2*f,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s*2*h,e[6]=0,e[7]=0,e[8]=(r+t)*f,e[9]=(a+i)*h,e[10]=(l+s)*v,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*s*2*v,e[15]=0,e}});var cS=me((xye,fS)=>{fS.exports=tJ;function tJ(e,t,r,i,a){var s=1/Math.tan(t/2),l=1/(i-a);return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+i)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*i*l,e[15]=0,e}});var vS=me((bye,hS)=>{hS.exports=rJ;function rJ(e,t,r,i){var a=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),l=Math.tan(t.leftDegrees*Math.PI/180),f=Math.tan(t.rightDegrees*Math.PI/180),h=2/(l+f),v=2/(a+s);return e[0]=h,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=v,e[6]=0,e[7]=0,e[8]=-((l-f)*h*.5),e[9]=(a-s)*v*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e}});var pS=me((wye,dS)=>{dS.exports=aJ;function aJ(e,t,r,i,a,s,l){var f=1/(t-r),h=1/(i-a),v=1/(s-l);return e[0]=-2*f,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*h,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*v,e[11]=0,e[12]=(t+r)*f,e[13]=(a+i)*h,e[14]=(l+s)*v,e[15]=1,e}});var yS=me((Tye,mS)=>{var iJ=$3();mS.exports=nJ;function nJ(e,t,r,i){var a,s,l,f,h,v,m,_,T,S,C=t[0],E=t[1],L=t[2],z=i[0],B=i[1],q=i[2],I=r[0],O=r[1],H=r[2];return Math.abs(C-I)<1e-6&&Math.abs(E-O)<1e-6&&Math.abs(L-H)<1e-6?iJ(e):(m=C-I,_=E-O,T=L-H,S=1/Math.sqrt(m*m+_*_+T*T),m*=S,_*=S,T*=S,a=B*T-q*_,s=q*m-z*T,l=z*_-B*m,S=Math.sqrt(a*a+s*s+l*l),S?(S=1/S,a*=S,s*=S,l*=S):(a=0,s=0,l=0),f=_*l-T*s,h=T*a-m*l,v=m*s-_*a,S=Math.sqrt(f*f+h*h+v*v),S?(S=1/S,f*=S,h*=S,v*=S):(f=0,h=0,v=0),e[0]=a,e[1]=f,e[2]=m,e[3]=0,e[4]=s,e[5]=h,e[6]=_,e[7]=0,e[8]=l,e[9]=v,e[10]=T,e[11]=0,e[12]=-(a*C+s*E+l*L),e[13]=-(f*C+h*E+v*L),e[14]=-(m*C+_*E+T*L),e[15]=1,e)}});var _S=me((Aye,gS)=>{gS.exports=oJ;function oJ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var ew=me((Mye,xS)=>{xS.exports={create:g8(),clone:x8(),copy:w8(),identity:$3(),transpose:M8(),invert:k8(),adjoint:E8(),determinant:D8(),multiply:z8(),translate:R8(),scale:q8(),rotate:B8(),rotateX:U8(),rotateY:H8(),rotateZ:Z8(),fromRotation:W8(),fromRotationTranslation:j8(),fromScaling:K8(),fromTranslation:$8(),fromXRotation:tS(),fromYRotation:aS(),fromZRotation:nS(),fromQuat:sS(),frustum:uS(),perspective:cS(),perspectiveFromFieldOfView:vS(),ortho:pS(),lookAt:yS(),str:_S()}});var l_=me(Cn=>{"use strict";var sJ=ew();Cn.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var lJ=Ja(),bS=Th(),uJ=l_(),fJ=ew();function cJ(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function hJ(e){var t=lJ.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function wS(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function vJ(e,t){TS("global",e,t)}function TS(e,t,r){var i="plotly.js-style-"+e,a=document.getElementById(i);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",i),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var s=a.sheet;s?s.insertRule?s.insertRule(t+"{"+r+"}",0):s.addRule?s.addRule(t,r,0):bS.warn("addStyleRule failed"):bS.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function dJ(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&wS(r)}function pJ(e,t,r,i,a,s){var l=i.split(":"),f=a.split(":"),h="data-btn-style-event-added";s||(s=document),s.querySelectorAll(e).forEach(function(v){v.getAttribute(h)||(v.addEventListener("mouseenter",function(){var m=this.querySelector(r);m&&(m.style[l[0]]=l[1])}),v.addEventListener("mouseleave",function(){var m=this.querySelector(r);m&&(t&&this.matches(t)?m.style[l[0]]=l[1]:m.style[f[0]]=f[1])}),v.setAttribute(h,!0))})}function mJ(e){var t=MS(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(i){var a=AS(i);if(a){var s=uJ.convertCssMatrix(a);r=fJ.multiply(r,r,s)}}),r}function AS(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(i){return+i})}function MS(e){for(var t=[];yJ(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function yJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function gJ(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}SS.exports={getGraphDiv:cJ,isPlotDiv:hJ,removeElement:wS,addStyleRule:vJ,addRelatedStyleRule:TS,deleteRelatedStyleRule:dJ,setStyleOnHover:pJ,getFullTransformMatrix:mJ,getElementTransformMatrix:AS,getElementAndAncestors:MS,equalDomRects:gJ}});var zy=me((Cye,kS)=>{"use strict";kS.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var il=me((Eye,IS)=>{"use strict";var ES=mn().extendFlat,_J=cc(),LS={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},DS={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},xJ=LS.flags.slice().concat(["fullReplot"]),bJ=DS.flags.slice().concat("layoutReplot");IS.exports={traces:LS,layout:DS,traceFlags:function(){return CS(xJ)},layoutFlags:function(){return CS(bJ)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var i=r.split("+"),a=0;a{"use strict";tw.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};tw.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var rw=me((Dye,RS)=>{"use strict";RS.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var nl=me(Iy=>{"use strict";var FS=rw(),wJ=FS.FORMAT_LINK,TJ=FS.DATE_FORMAT_LINK;function AJ(e){var t=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(t?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,wJ,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,TJ,"for details on the date formatting syntax."].join(" ")}Iy.templateFormatStringDescription=AJ;function aw(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var i=[],a=0;a{"use strict";function Ah(e,t){return t?t.d2l(e):e}function qS(e,t){return t?t.l2d(e):e}function MJ(e){return e.x0}function SJ(e){return e.x1}function kJ(e){return e.y0}function CJ(e){return e.y1}function NS(e){return e.x0shift||0}function BS(e){return e.x1shift||0}function OS(e){return e.y0shift||0}function US(e){return e.y1shift||0}function u_(e,t){return Ah(e.x1,t)+BS(e)-Ah(e.x0,t)-NS(e)}function f_(e,t,r){return Ah(e.y1,r)+US(e)-Ah(e.y0,r)-OS(e)}function EJ(e,t){return Math.abs(u_(e,t))}function LJ(e,t,r){return Math.abs(f_(e,t,r))}function DJ(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(u_(e,t),2)+Math.pow(f_(e,t,r),2))}function PJ(e,t){return qS((Ah(e.x1,t)+BS(e)+Ah(e.x0,t)+NS(e))/2,t)}function zJ(e,t,r){return qS((Ah(e.y1,r)+US(e)+Ah(e.y0,r)+OS(e))/2,r)}function IJ(e,t,r){return e.type!=="line"?void 0:f_(e,t,r)/u_(e,t)}VS.exports={x0:MJ,x1:SJ,y0:kJ,y1:CJ,slope:IJ,dx:u_,dy:f_,width:EJ,height:LJ,length:DJ,xcenter:PJ,ycenter:zJ}});var ZS=me((Iye,GS)=>{"use strict";var RJ=il().overrideAll,ad=ys(),HS=qo(),FJ=hc().dash,Mh=mn().extendFlat,qJ=nl().shapeTexttemplateAttrs,NJ=c_();GS.exports=RJ({newshape:{visible:Mh({},ad.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Mh({},ad.legend,{}),legendgroup:Mh({},ad.legendgroup,{}),legendgrouptitle:{text:Mh({},ad.legendgrouptitle.text,{}),font:HS({})},legendrank:Mh({},ad.legendrank,{}),legendwidth:Mh({},ad.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Mh({},FJ,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Mh({},ad.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:qJ({newshape:!0},{keys:Object.keys(NJ)}),font:HS({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var WS=me((Rye,YS)=>{"use strict";var BJ=hc().dash,OJ=mn().extendFlat;YS.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:OJ({},BJ,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var h_=me((Fye,XS)=>{"use strict";XS.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var d0=me((qye,QS)=>{"use strict";var iw=qo(),UJ=zy(),v_=Af(),jS=ZS(),JS=WS(),VJ=h_(),KS=mn().extendFlat,d_=iw({editType:"calc"});d_.family.dflt='"Open Sans", verdana, arial, sans-serif';d_.size.dflt=12;d_.color.dflt=v_.defaultLine;QS.exports={font:d_,title:{text:{valType:"string",editType:"layoutstyle"},font:iw({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:iw({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:KS(VJ({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:v_.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:v_.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:v_.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:jS.newshape,activeshape:jS.activeshape,newselection:JS.newselection,activeselection:JS.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:KS({},UJ.transition,{editType:"none"})}});var $S=me(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var la=me(Pa=>{"use strict";var p0=Th(),e9=s_(),t9=Q3(),HJ=cc(),GJ=Py().addStyleRule,r9=mn(),ZJ=ys(),YJ=d0(),WJ=r9.extendFlat,nw=r9.extendDeepAll;Pa.modules={};Pa.allCategories={};Pa.allTypes=[];Pa.subplotsRegistry={};Pa.componentsRegistry={};Pa.layoutArrayContainers=[];Pa.layoutArrayRegexes=[];Pa.traceLayoutAttributes={};Pa.localeRegistry={};Pa.apiMethodRegistry={};Pa.collectableSubplotTypes=null;Pa.register=function(t){if(Pa.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var $J=s0().timeFormat,v9=Da(),ow=Th(),kh=u0().mod,g0=Zi(),Gl=g0.BADNUM,qs=g0.ONEDAY,Ry=g0.ONEHOUR,Sh=g0.ONEMIN,y0=g0.ONESEC,Fy=g0.EPOCHJD,vc=la(),s9=s0().utcFormat,eK=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,tK=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,l9=new Date().getFullYear()-70;function dc(e){return e&&vc.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}En.dateTick0=function(e,t){var r=rK(e,!!t);if(t<2)return r;var i=En.dateTime2ms(r,e);return i+=qs*(t-1),En.ms2DateTime(i,0,e)};function rK(e,t){return dc(e)?t?vc.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:vc.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}En.dfltRange=function(e){return dc(e)?vc.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};En.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var m_,y_;En.dateTime2ms=function(e,t){if(En.isJSDate(e)){var r=e.getTimezoneOffset()*Sh,i=(e.getUTCMinutes()-e.getMinutes())*Sh+(e.getUTCSeconds()-e.getSeconds())*y0+(e.getUTCMilliseconds()-e.getMilliseconds());if(i){var a=3*Sh;r=r-a/2+kh(i-r+a/2,a)}return e=Number(e)-r,e>=m_&&e<=y_?e:Gl}if(typeof e!="string"&&typeof e!="number")return Gl;e=String(e);var s=dc(t),l=e.charAt(0);s&&(l==="G"||l==="g")&&(e=e.substr(1),t="");var f=s&&t.substr(0,7)==="chinese",h=e.match(f?tK:eK);if(!h)return Gl;var v=h[1],m=h[3]||"1",_=Number(h[5]||1),T=Number(h[7]||0),S=Number(h[9]||0),C=Number(h[11]||0);if(s){if(v.length===2)return Gl;v=Number(v);var E;try{var L=vc.getComponentMethod("calendars","getCal")(t);if(f){var z=m.charAt(m.length-1)==="i";m=parseInt(m,10),E=L.newDate(v,L.toMonthIndex(v,m,z),_)}else E=L.newDate(v,Number(m),_)}catch(q){return Gl}return E?(E.toJD()-Fy)*qs+T*Ry+S*Sh+C*y0:Gl}v.length===2?v=(Number(v)+2e3-l9)%100+l9:v=Number(v),m-=1;var B=new Date(Date.UTC(2e3,m,_,T,S));return B.setUTCFullYear(v),B.getUTCMonth()!==m||B.getUTCDate()!==_?Gl:B.getTime()+C*y0};m_=En.MIN_MS=En.dateTime2ms("-9999");y_=En.MAX_MS=En.dateTime2ms("9999-12-31 23:59:59.9999");En.isDateTime=function(e,t){return En.dateTime2ms(e,t)!==Gl};function m0(e,t){return String(e+Math.pow(10,t)).substr(1)}var p_=90*qs,u9=3*Ry,f9=5*Sh;En.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=m_&&e<=y_))return Gl;t||(t=0);var i=Math.floor(kh(e+.05,1)*10),a=Math.round(e-i/10),s,l,f,h,v,m;if(dc(r)){var _=Math.floor(a/qs)+Fy,T=Math.floor(kh(e,qs));try{s=vc.getComponentMethod("calendars","getCal")(r).fromJD(_).formatDate("yyyy-mm-dd")}catch(S){s=s9("G%Y-%m-%d")(new Date(a))}if(s.charAt(0)==="-")for(;s.length<11;)s="-0"+s.substr(1);else for(;s.length<10;)s="0"+s;l=t=m_+qs&&e<=y_-qs))return Gl;var t=Math.floor(kh(e+.05,1)*10),r=new Date(Math.round(e-t/10)),i=$J("%Y-%m-%d")(r),a=r.getHours(),s=r.getMinutes(),l=r.getSeconds(),f=r.getUTCMilliseconds()*10+t;return d9(i,a,s,l,f)};function d9(e,t,r,i,a){if((t||r||i||a)&&(e+=" "+m0(t,2)+":"+m0(r,2),(i||a)&&(e+=":"+m0(i,2),a))){for(var s=4;a%10===0;)s-=1,a/=10;e+="."+m0(a,s)}return e}En.cleanDate=function(e,t,r){if(e===Gl)return t;if(En.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(dc(r))return ow.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=En.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!En.isDateTime(e,r))return ow.error("unrecognized date",e),t;return e};var aK=/%\d?f/g,iK=/%h/g,nK={1:"1",2:"1",3:"2",4:"2"};function c9(e,t,r,i){e=e.replace(aK,function(s){var l=Math.min(+s.charAt(1)||6,6),f=(t/1e3%1+2).toFixed(l).substr(2).replace(/0+$/,"")||"0";return f});var a=new Date(Math.floor(t+.05));if(e=e.replace(iK,function(){return nK[r("%q")(a)]}),dc(i))try{e=vc.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(s){return"Invalid"}return r(e)(a)}var oK=[59,59.9,59.99,59.999,59.9999];function sK(e,t){var r=kh(e+.05,qs),i=m0(Math.floor(r/Ry),2)+":"+m0(kh(Math.floor(r/Sh),60),2);if(t!=="M"){v9(t)||(t=0);var a=Math.min(kh(e/y0,60),oK[t]),s=(100+a).toFixed(t).substr(1);t>0&&(s=s.replace(/0+$/,"").replace(/[\.]$/,"")),i+=":"+s}return i}En.formatDate=function(e,t,r,i,a,s){if(a=dc(a)&&a,!t)if(r==="y")t=s.year;else if(r==="m")t=s.month;else if(r==="d")t=s.dayMonth+` +`+s.year;else return sK(e,r)+` +`+c9(s.dayMonthYear,e,i,a);return c9(t,e,i,a)};var h9=3*qs;En.incrementMonth=function(e,t,r){r=dc(r)&&r;var i=kh(e,qs);if(e=Math.round(e-i),r)try{var a=Math.round(e/qs)+Fy,s=vc.getComponentMethod("calendars","getCal")(r),l=s.fromJD(a);return t%12?s.add(l,t,"m"):s.add(l,t/12,"y"),(l.toJD()-Fy)*qs+i}catch(h){ow.error("invalid ms "+e+" in calendar "+r)}var f=new Date(e+h9);return f.setUTCMonth(f.getUTCMonth()+t)+i-h9};En.findExactDates=function(e,t){for(var r=0,i=0,a=0,s=0,l,f,h=dc(t)&&vc.getComponentMethod("calendars","getCal")(t),v=0;v{"use strict";m9.exports=function(t){return t}});var lw=me(pc=>{"use strict";var lK=Da(),uK=Th(),fK=g_(),cK=Zi().BADNUM,sw=1e-9;pc.findBin=function(e,t,r){if(lK(t.start))return r?Math.ceil((e-t.start)/t.size-sw)-1:Math.floor((e-t.start)/t.size+sw);var i=0,a=t.length,s=0,l=a>1?(t[a-1]-t[0])/(a-1):1,f,h;for(l>=0?h=r?hK:vK:h=r?pK:dK,e+=l*sw*(r?-1:1)*(l>=0?1:-1);i90&&uK.log("Long binary search..."),i-1};function hK(e,t){return et}function pK(e,t){return e>=t}pc.sorterAsc=function(e,t){return e-t};pc.sorterDes=function(e,t){return t-e};pc.distinctVals=function(e){var t=e.slice();t.sort(pc.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===cK;r--);for(var i=t[r]-t[0]||1,a=i/(r||1)/1e4,s=[],l,f=0;f<=r;f++){var h=t[f],v=h-l;l===void 0?(s.push(h),l=h):v>a&&(i=Math.min(i,v),s.push(h),l=h)}return{vals:s,minDiff:i}};pc.roundUp=function(e,t,r){for(var i=0,a=t.length-1,s,l=0,f=r?0:1,h=r?1:0,v=r?Math.ceil:Math.floor;i0&&(i=1),r&&i)return e.sort(t)}return i?e:e.reverse()};pc.findIndexOfMin=function(e,t){t=t||fK;for(var r=1/0,i,a=0;a{"use strict";y9.exports=function(t){return Object.keys(t).sort()}});var g9=me(Ln=>{"use strict";var qy=Da(),mK=al().isArrayOrTypedArray;Ln.aggNums=function(e,t,r,i){var a,s;if((!i||i>r.length)&&(i=r.length),qy(t)||(t=!1),mK(r[0])){for(s=new Array(i),a=0;ae.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var T9=me((Yye,w9)=>{"use strict";var _9=u0(),uw=_9.mod,yK=_9.modHalf,Ny=Math.PI,Ch=2*Ny;function gK(e){return e/180*Ny}function _K(e){return e/Ny*180}function fw(e){return Math.abs(e[1]-e[0])>Ch-1e-14}function x9(e,t){return yK(t-e,Ch)}function xK(e,t){return Math.abs(x9(e,t))}function b9(e,t){if(fw(t))return!0;var r,i;t[0]i&&(i+=Ch);var a=uw(e,Ch),s=a+Ch;return a>=r&&a<=i||s>=r&&s<=i}function bK(e,t,r,i){if(!b9(t,i))return!1;var a,s;return r[0]=a&&e<=s}function cw(e,t,r,i,a,s,l){a=a||0,s=s||0;var f=fw([r,i]),h,v,m,_,T;f?(h=0,v=Ny,m=Ch):r{"use strict";id.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};id.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};id.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};id.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};id.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};id.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var k9=me(nd=>{"use strict";var hw=u0().mod;nd.segmentsIntersect=S9;function S9(e,t,r,i,a,s,l,f){var h=r-e,v=a-e,m=l-a,_=i-t,T=s-t,S=f-s,C=h*S-m*_;if(C===0)return null;var E=(v*S-m*T)/C,L=(v*_-h*T)/C;return L<0||L>1||E<0||E>1?null:{x:e+h*E,y:t+_*E}}nd.segmentDistance=function(t,r,i,a,s,l,f,h){if(S9(t,r,i,a,s,l,f,h))return 0;var v=i-t,m=a-r,_=f-s,T=h-l,S=v*v+m*m,C=_*_+T*T,E=Math.min(x_(v,m,S,s-t,l-r),x_(v,m,S,f-t,h-r),x_(_,T,C,t-s,r-l),x_(_,T,C,i-s,a-l));return Math.sqrt(E)};function x_(e,t,r,i,a){var s=i*e+a*t;if(s<0)return i*i+a*a;if(s>r){var l=i-e,f=a-t;return l*l+f*f}else{var h=i*t-a*e;return h*h/r}}var b_,vw,M9;nd.getTextLocation=function(t,r,i,a){if((t!==vw||a!==M9)&&(b_={},vw=t,M9=a),b_[i])return b_[i];var s=t.getPointAtLength(hw(i-a/2,r)),l=t.getPointAtLength(hw(i+a/2,r)),f=Math.atan((l.y-s.y)/(l.x-s.x)),h=t.getPointAtLength(hw(i,r)),v=(h.x*4+s.x+l.x)/6,m=(h.y*4+s.y+l.y)/6,_={x:v,y:m,theta:f};return b_[i]=_,_};nd.clearLocationCache=function(){vw=null};nd.getVisibleSegment=function(t,r,i){var a=r.left,s=r.right,l=r.top,f=r.bottom,h=0,v=t.getTotalLength(),m=v,_,T;function S(E){var L=t.getPointAtLength(E);E===0?_=L:E===v&&(T=L);var z=L.xs?L.x-s:0,B=L.yf?L.y-f:0;return Math.sqrt(z*z+B*B)}for(var C=S(h);C;){if(h+=C+i,h>m)return;C=S(h)}for(C=S(m);C;){if(m-=C+i,h>m)return;C=S(m)}return{min:h,max:m,len:m-h,total:v,isClosed:h===0&&m===v&&Math.abs(_.x-T.x)<.1&&Math.abs(_.y-T.y)<.1}};nd.findPointOnPath=function(t,r,i,a){a=a||{};for(var s=a.pathLength||t.getTotalLength(),l=a.tolerance||.001,f=a.iterationLimit||30,h=t.getPointAtLength(0)[i]>t.getPointAtLength(s)[i]?-1:1,v=0,m=0,_=s,T,S,C;v0?_=T:m=T,v++}return S}});var w_=me(By=>{"use strict";var mc={};By.throttle=function(t,r,i){var a=mc[t],s=Date.now();if(!a){for(var l in mc)mc[l].tsa.ts+r){f();return}a.timer=setTimeout(function(){f(),a.timer=null},r)};By.done=function(e){var t=mc[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var i=t.onDone;t.onDone=function(){i&&i(),r(),t.onDone=null}})};By.clear=function(e){if(e)C9(mc[e]),delete mc[e];else for(var t in mc)By.clear(t)};function C9(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var L9=me((Jye,E9)=>{"use strict";E9.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var D9=me((Kye,T_)=>{"use strict";T_.exports=dw;T_.exports.isMobile=dw;T_.exports.default=dw;var MK=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,SK=/CrOS/,kK=/android|ipad|playbook|silk/i;function dw(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=MK.test(t)&&!SK.test(t)||!!e.tablet&&kK.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var z9=me((Qye,P9)=>{"use strict";var CK=Da(),EK=D9();P9.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=LK(),typeof r!="string")return!0;var i=EK({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!i)for(var a=r.split(" "),s=1;s-1;f--){var h=a[f];if(h.substr(0,8)==="Version/"){var v=h.substr(8).split(".")[0];if(CK(v)&&(v=+v),v>=13)return!0}}}return i};function LK(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var R9=me(($ye,I9)=>{"use strict";var DK=Ja();I9.exports=function(t,r,i){var a=t.selectAll("g."+i.replace(/\s/g,".")).data(r,function(l){return l[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",i),a.order();var s=t.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(l){l[0][s]=DK.select(this)}),a}});var q9=me((ege,F9)=>{"use strict";var PK=la();F9.exports=function(t,r){for(var i=t._context.locale,a=0;a<2;a++){for(var s=t._context.locales,l=0;l<2;l++){var f=(s[i]||{}).dictionary;if(f){var h=f[r];if(h)return h}s=PK.localeRegistry}var v=i.split("-")[0];if(v===i)break;i=v}return r}});var B9=me((tge,N9)=>{"use strict";N9.exports=function(t){for(var r={},i=[],a=0,s=0;s{"use strict";O9.exports=function(t){for(var r=RK(t)?IK:zK,i=[],a=0;a{"use strict";V9.exports=function(t,r){if(!r)return t;var i=1/Math.abs(r),a=i>1?(i*t+i*r)/i:t+r,s=String(a).length;if(s>16){var l=String(r).length,f=String(t).length;if(s>=f+l){var h=parseFloat(a).toPrecision(12);h.indexOf("e+")===-1&&(a=+h)}}return a}});var Z9=me((ige,G9)=>{"use strict";var FK=Da(),qK=Zi().BADNUM,NK=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;G9.exports=function(t){return typeof t=="string"&&(t=t.replace(NK,"")),FK(t)?Number(t):qK}});var Bt=me((nge,ik)=>{"use strict";var Oy=Ja(),BK=s0().utcFormat,OK=N3().format,K9=Da(),Q9=Zi(),$9=Q9.FP_SAFE,UK=-$9,Y9=Q9.BADNUM,tt=ik.exports={};tt.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var W9={};tt.warnBadFormat=function(e){var t=String(e);W9[t]||(W9[t]=1,tt.warn('encountered bad format: "'+t+'"'))};tt.noFormat=function(e){return String(e)};tt.numberFormat=function(e){var t;try{t=OK(tt.adjustFormat(e))}catch(r){return tt.warnBadFormat(e),tt.noFormat}return t};tt.nestedProperty=Ty();tt.keyedContainer=q7();tt.relativeAttr=B7();tt.isPlainObject=cc();tt.toLogRange=e_();tt.relinkPrivateKeys=H7();var Eh=al();tt.isArrayBuffer=Eh.isArrayBuffer;tt.isTypedArray=Eh.isTypedArray;tt.isArrayOrTypedArray=Eh.isArrayOrTypedArray;tt.isArray1D=Eh.isArray1D;tt.ensureArray=Eh.ensureArray;tt.concat=Eh.concat;tt.maxRowLength=Eh.maxRowLength;tt.minRowLength=Eh.minRowLength;var ek=u0();tt.mod=ek.mod;tt.modHalf=ek.modHalf;var Lh=l8();tt.valObjectMeta=Lh.valObjectMeta;tt.coerce=Lh.coerce;tt.coerce2=Lh.coerce2;tt.coerceFont=Lh.coerceFont;tt.coercePattern=Lh.coercePattern;tt.coerceHoverinfo=Lh.coerceHoverinfo;tt.coerceSelectionMarkerOpacity=Lh.coerceSelectionMarkerOpacity;tt.validate=Lh.validate;var ol=p9();tt.dateTime2ms=ol.dateTime2ms;tt.isDateTime=ol.isDateTime;tt.ms2DateTime=ol.ms2DateTime;tt.ms2DateTimeLocal=ol.ms2DateTimeLocal;tt.cleanDate=ol.cleanDate;tt.isJSDate=ol.isJSDate;tt.formatDate=ol.formatDate;tt.incrementMonth=ol.incrementMonth;tt.dateTick0=ol.dateTick0;tt.dfltRange=ol.dfltRange;tt.findExactDates=ol.findExactDates;tt.MIN_MS=ol.MIN_MS;tt.MAX_MS=ol.MAX_MS;var od=lw();tt.findBin=od.findBin;tt.sorterAsc=od.sorterAsc;tt.sorterDes=od.sorterDes;tt.distinctVals=od.distinctVals;tt.roundUp=od.roundUp;tt.sort=od.sort;tt.findIndexOfMin=od.findIndexOfMin;tt.sortObjectKeys=__();var yc=g9();tt.aggNums=yc.aggNums;tt.len=yc.len;tt.mean=yc.mean;tt.geometricMean=yc.geometricMean;tt.median=yc.median;tt.midRange=yc.midRange;tt.variance=yc.variance;tt.stdev=yc.stdev;tt.interp=yc.interp;var zu=l_();tt.init2dArray=zu.init2dArray;tt.transposeRagged=zu.transposeRagged;tt.dot=zu.dot;tt.translationMatrix=zu.translationMatrix;tt.rotationMatrix=zu.rotationMatrix;tt.rotationXYMatrix=zu.rotationXYMatrix;tt.apply3DTransform=zu.apply3DTransform;tt.apply2DTransform=zu.apply2DTransform;tt.apply2DTransform2=zu.apply2DTransform2;tt.convertCssMatrix=zu.convertCssMatrix;tt.inverseTransformMatrix=zu.inverseTransformMatrix;var Sf=T9();tt.deg2rad=Sf.deg2rad;tt.rad2deg=Sf.rad2deg;tt.angleDelta=Sf.angleDelta;tt.angleDist=Sf.angleDist;tt.isFullCircle=Sf.isFullCircle;tt.isAngleInsideSector=Sf.isAngleInsideSector;tt.isPtInsideSector=Sf.isPtInsideSector;tt.pathArc=Sf.pathArc;tt.pathSector=Sf.pathSector;tt.pathAnnulus=Sf.pathAnnulus;var x0=A9();tt.isLeftAnchor=x0.isLeftAnchor;tt.isCenterAnchor=x0.isCenterAnchor;tt.isRightAnchor=x0.isRightAnchor;tt.isTopAnchor=x0.isTopAnchor;tt.isMiddleAnchor=x0.isMiddleAnchor;tt.isBottomAnchor=x0.isBottomAnchor;var b0=k9();tt.segmentsIntersect=b0.segmentsIntersect;tt.segmentDistance=b0.segmentDistance;tt.getTextLocation=b0.getTextLocation;tt.clearLocationCache=b0.clearLocationCache;tt.getVisibleSegment=b0.getVisibleSegment;tt.findPointOnPath=b0.findPointOnPath;var S_=mn();tt.extendFlat=S_.extendFlat;tt.extendDeep=S_.extendDeep;tt.extendDeepAll=S_.extendDeepAll;tt.extendDeepNoArrays=S_.extendDeepNoArrays;var pw=Th();tt.log=pw.log;tt.warn=pw.warn;tt.error=pw.error;var VK=c0();tt.counterRegex=VK.counter;var mw=w_();tt.throttle=mw.throttle;tt.throttleDone=mw.done;tt.clearThrottle=mw.clear;var Iu=Py();tt.getGraphDiv=Iu.getGraphDiv;tt.isPlotDiv=Iu.isPlotDiv;tt.removeElement=Iu.removeElement;tt.addStyleRule=Iu.addStyleRule;tt.addRelatedStyleRule=Iu.addRelatedStyleRule;tt.deleteRelatedStyleRule=Iu.deleteRelatedStyleRule;tt.setStyleOnHover=Iu.setStyleOnHover;tt.getFullTransformMatrix=Iu.getFullTransformMatrix;tt.getElementTransformMatrix=Iu.getElementTransformMatrix;tt.getElementAndAncestors=Iu.getElementAndAncestors;tt.equalDomRects=Iu.equalDomRects;tt.clearResponsive=L9();tt.preserveDrawingBuffer=z9();tt.makeTraceGroups=R9();tt._=q9();tt.notifier=j3();tt.filterUnique=B9();tt.filterVisible=U9();tt.pushUnique=Q3();tt.increment=H9();tt.cleanNumber=Z9();tt.ensureNumber=function(t){return K9(t)?(t=Number(t),t>$9||t=t?!1:K9(e)&&e>=0&&e%1===0};tt.noop=s_();tt.identity=g_();tt.repeat=function(e,t){for(var r=new Array(t),i=0;ir?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};tt.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};tt.simpleMap=function(e,t,r,i,a){for(var s=e.length,l=new Array(s),f=0;f=Math.pow(2,r)?a>10?(tt.warn("randstr failed uniqueness"),l):e(t,r,i,(a||0)+1):l};tt.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(i){i[t]=e,r[i.name]=i,r.optionList.push(i)},r["_"+t]=e,r};tt.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,i=2*r,a=2*t-1,s=new Array(a),l=new Array(r),f,h,v,m;for(f=0;f=i&&(v-=i*Math.floor(v/i)),v<0?v=-1-v:v>=r&&(v=i-1-v),m+=e[v]*s[h];l[f]=m}return l};tt.syncOrAsync=function(e,t,r){var i,a;function s(){return tt.syncOrAsync(e,t,r)}for(;e.length;)if(a=e.splice(0,1)[0],i=a(t),i&&i.then)return i.then(s);return r&&r(t)};tt.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};tt.noneOrAll=function(e,t,r){if(e){var i=!1,a=!0,s,l;for(s=0;s0?a:0})};tt.fillArray=function(e,t,r,i){if(i=i||tt.identity,tt.isArrayOrTypedArray(e))for(var a=0;aZK.test(window.navigator.userAgent);var YK=/Firefox\/(\d+)\.\d+/;tt.getFirefoxVersion=function(){var e=YK.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};tt.isD3Selection=function(e){return e instanceof Oy.selection};tt.ensureSingle=function(e,t,r,i){var a=e.select(t+(r?"."+r:""));if(a.size())return a;var s=e.append(t);return r&&s.classed(r,!0),i&&s.call(i),s};tt.ensureSingleById=function(e,t,r,i){var a=e.select(t+"#"+r);if(a.size())return a;var s=e.append(t).attr("id",r);return i&&s.call(i),s};tt.objectFromPath=function(e,t){for(var r=e.split("."),i,a=i={},s=0;s1?a+l[1]:"";if(s&&(l.length>1||f.length>4||r))for(;i.test(f);)f=f.replace(i,"$1"+s+"$2");return f+h};tt.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var ak=/^\w*$/;tt.templateString=function(e,t){var r={};return e.replace(tt.TEMPLATE_STRING_REGEX,function(i,a){var s;return ak.test(a)?s=t[a]:(r[a]=r[a]||tt.nestedProperty(t,a).get,s=r[a](!0)),s!==void 0?s:""})};var jK={max:10,count:0,name:"hovertemplate"};tt.hovertemplateString=function(){return yw.apply(jK,arguments)};var JK={max:10,count:0,name:"texttemplate"};tt.texttemplateString=function(){return yw.apply(JK,arguments)};var KK=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function QK(e){var t=e.match(KK);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var $K={max:10,count:0,name:"texttemplate",parseMultDiv:!0};tt.texttemplateStringForShapes=function(){return yw.apply($K,arguments)};var X9=/^[:|\|]/;function yw(e,t,r){var i=this,a=arguments;return t||(t={}),e.replace(tt.TEMPLATE_STRING_REGEX,function(s,l,f){var h=l==="xother"||l==="yother",v=l==="_xother"||l==="_yother",m=l==="_xother_"||l==="_yother_",_=l==="xother_"||l==="yother_",T=h||v||_||m,S=l;(v||m)&&(S=S.substring(1)),(_||m)&&(S=S.substring(0,S.length-1));var C=null,E=null;if(i.parseMultDiv){var L=QK(S);S=L.key,C=L.op,E=L.number}var z;if(T){if(z=t[S],z===void 0)return""}else{var B,q;for(q=3;q=M_&&l<=j9,v=f>=M_&&f<=j9;if(h&&(i=10*i+l-M_),v&&(a=10*a+f-M_),!h||!v){if(i!==a)return i-a;if(l!==f)return l-f}}return a-i};var _0=2e9;tt.seedPseudoRandom=function(){_0=2e9};tt.pseudoRandom=function(){var e=_0;return _0=(69069*_0+1)%4294967296,Math.abs(_0-e)<429496729?tt.pseudoRandom():_0/4294967296};tt.fillText=function(e,t,r){var i=Array.isArray(r)?function(l){r.push(l)}:function(l){r.text=l},a=tt.extractOption(e,t,"htx","hovertext");if(tt.isValidTextValue(a))return i(a);var s=tt.extractOption(e,t,"tx","text");if(tt.isValidTextValue(s))return i(s)};tt.isValidTextValue=function(e){return e||e===0};tt.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",i=0;i1&&(v=1):v=0,tt.strTranslate(a-v*(r+l),s-v*(i+f))+tt.strScale(v)+(h?"rotate("+h+(t?"":" "+r+" "+i)+")":"")};tt.setTransormAndDisplay=function(e,t){e.attr("transform",tt.getTextTransform(t)),e.style("display",t.scale?null:"none")};tt.ensureUniformFontSize=function(e,t){var r=tt.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};tt.join2=function(e,t,r){var i=e.length;return i>1?e.slice(0,-1).join(t)+r+e[i-1]:e.join(t)};tt.bigFont=function(e){return Math.round(1.2*e)};var J9=tt.getFirefoxVersion(),eQ=J9!==null&&J9<86;tt.getPositionFromD3Event=function(){return eQ?[Oy.event.layerX,Oy.event.layerY]:[Oy.event.offsetX,Oy.event.offsetY]}});var sk=me(()=>{"use strict";var tQ=Bt(),nk={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(gw in nk)ok=gw.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),tQ.addStyleRule(ok,nk[gw]);var ok,gw});var _w=me((lge,lk)=>{lk.exports=!0});var bw=me((uge,uk)=>{"use strict";var rQ=_w(),xw;typeof window.matchMedia=="function"?xw=!window.matchMedia("(hover: none)").matches:xw=rQ;uk.exports=xw});var E_=me((fge,ww)=>{"use strict";var w0=typeof Reflect=="object"?Reflect:null,fk=w0&&typeof w0.apply=="function"?w0.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},k_;w0&&typeof w0.ownKeys=="function"?k_=w0.ownKeys:Object.getOwnPropertySymbols?k_=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:k_=function(t){return Object.getOwnPropertyNames(t)};function aQ(e){console&&console.warn&&console.warn(e)}var hk=Number.isNaN||function(t){return t!==t};function Yi(){Yi.init.call(this)}ww.exports=Yi;ww.exports.once=sQ;Yi.EventEmitter=Yi;Yi.prototype._events=void 0;Yi.prototype._eventsCount=0;Yi.prototype._maxListeners=void 0;var ck=10;function C_(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Yi,"defaultMaxListeners",{enumerable:!0,get:function(){return ck},set:function(e){if(typeof e!="number"||e<0||hk(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ck=e}});Yi.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Yi.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||hk(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function vk(e){return e._maxListeners===void 0?Yi.defaultMaxListeners:e._maxListeners}Yi.prototype.getMaxListeners=function(){return vk(this)};Yi.prototype.emit=function(t){for(var r=[],i=1;i0&&(l=r[0]),l instanceof Error)throw l;var f=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw f.context=l,f}var h=s[t];if(h===void 0)return!1;if(typeof h=="function")fk(h,this,r);else for(var v=h.length,m=gk(h,v),i=0;i0&&l.length>a&&!l.warned){l.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=l.length,aQ(f)}return e}Yi.prototype.addListener=function(t,r){return dk(this,t,r,!1)};Yi.prototype.on=Yi.prototype.addListener;Yi.prototype.prependListener=function(t,r){return dk(this,t,r,!0)};function iQ(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function pk(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=iQ.bind(i);return a.listener=r,i.wrapFn=a,a}Yi.prototype.once=function(t,r){return C_(r),this.on(t,pk(this,t,r)),this};Yi.prototype.prependOnceListener=function(t,r){return C_(r),this.prependListener(t,pk(this,t,r)),this};Yi.prototype.removeListener=function(t,r){var i,a,s,l,f;if(C_(r),a=this._events,a===void 0)return this;if(i=a[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(s=-1,l=i.length-1;l>=0;l--)if(i[l]===r||i[l].listener===r){f=i[l].listener,s=l;break}if(s<0)return this;s===0?i.shift():nQ(i,s),i.length===1&&(a[t]=i[0]),a.removeListener!==void 0&&this.emit("removeListener",t,f||r)}return this};Yi.prototype.off=Yi.prototype.removeListener;Yi.prototype.removeAllListeners=function(t){var r,i,a;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var s=Object.keys(i),l;for(a=0;a=0;a--)this.removeListener(t,r[a]);return this};function mk(e,t,r){var i=e._events;if(i===void 0)return[];var a=i[t];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?oQ(a):gk(a,a.length)}Yi.prototype.listeners=function(t){return mk(this,t,!0)};Yi.prototype.rawListeners=function(t){return mk(this,t,!1)};Yi.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):yk.call(e,t)};Yi.prototype.listenerCount=yk;function yk(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Yi.prototype.eventNames=function(){return this._eventsCount>0?k_(this._events):[]};function gk(e,t){for(var r=new Array(t),i=0;i{"use strict";var Tw=E_().EventEmitter,uQ={init:function(e){if(e._ev instanceof Tw)return e;var t=new Tw,r=new Tw;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(i,a){t.emit(i,a),r.emit(i,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var i,a=e._ev;if(!a)return;var s=a._events[t];if(!s)return;function l(h){if(h.listener){if(a.removeListener(t,h.listener),!h.fired)return h.fired=!0,h.listener.apply(a,[r])}else return h.apply(a,[r])}s=Array.isArray(s)?s:[s];var f;for(f=0;f{"use strict";var bk=Bt(),fQ=rd().dfltConfig;function cQ(e,t){for(var r=[],i,a=0;afQ.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};gc.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};gc.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};gc.undo=function(t){var r,i;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i{"use strict";Ak.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var M0=me(Wn=>{"use strict";var Zl=la(),Vy=Bt(),D_=ys(),Mw=d0(),hQ=Aw(),vQ=zy(),dQ=rd().configAttributes,Mk=il(),Ru=Vy.extendDeepAll,T0=Vy.isPlainObject,pQ=Vy.isArrayOrTypedArray,P_=Vy.nestedProperty,mQ=Vy.valObjectMeta,Sw="_isSubplotObj",z_="_isLinkedToArray",yQ="_arrayAttrRegexps",kk="_deprecated",kw=[Sw,z_,yQ,kk];Wn.IS_SUBPLOT_OBJ=Sw;Wn.IS_LINKED_TO_ARRAY=z_;Wn.DEPRECATED=kk;Wn.UNDERSCORE_ATTRS=kw;Wn.get=function(){var e={};return Zl.allTypes.forEach(function(t){e[t]=_Q(t)}),{defs:{valObjects:mQ,metaKeys:kw.concat(["description","role","editType","impliedEdits"]),editType:{traces:Mk.traces,layout:Mk.layout},impliedEdits:{}},traces:e,layout:xQ(),frames:bQ(),animation:A0(vQ),config:A0(dQ)}};Wn.crawl=function(e,t,r,i){var a=r||0;i=i||"",Object.keys(e).forEach(function(s){var l=e[s];if(kw.indexOf(s)===-1){var f=(i?i+".":"")+s;t(l,s,e,a,f),!Wn.isValObject(l)&&T0(l)&&s!=="impliedEdits"&&Wn.crawl(l,t,a+1,f)}})};Wn.isValObject=function(e){return e&&e.valType!==void 0};Wn.findArrayAttributes=function(e){var t=[],r=[],i=[],a,s;function l(h,v,m,_){r=r.slice(0,_).concat([v]),i=i.slice(0,_).concat([h&&h._isLinkedToArray]);var T=h&&(h.valType==="data_array"||h.arrayOk===!0)&&!(r[_-1]==="colorbar"&&(v==="ticktext"||v==="tickvals"));T&&f(a,0,"")}function f(h,v,m){var _=h[r[v]],T=m+r[v];if(v===r.length-1)pQ(_)&&t.push(s+T);else if(i[v]){if(Array.isArray(_))for(var S=0;S<_.length;S++)T0(_[S])&&f(_[S],v+1,T+"["+S+"].")}else T0(_)&&f(_,v+1,T+".")}return a=e,s="",Wn.crawl(D_,l),e._module&&e._module.attributes&&Wn.crawl(e._module.attributes,l),t};Wn.getTraceValObject=function(e,t){var r=t[0],i=1,a,s,l=e._module;if(l||(l=(Zl.modules[e.type||D_.type.dflt]||{})._module),!l)return!1;if(a=l.attributes,s=a&&a[r],!s){var f=l.basePlotModule;f&&f.attributes&&(s=f.attributes[r])}return s||(s=D_[r]),Ck(s,t,i)};Wn.getLayoutValObject=function(e,t){var r=gQ(e,t[0]);return Ck(r,t,1)};function gQ(e,t){var r,i,a,s,l=e._basePlotModules;if(l){var f;for(r=0;r=s.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var l=t[r];if(!L_(l))return!1;e=s[a][l]}else e=s[a]}else e=s}}return e}function L_(e){return e===Math.round(e)&&e>=0}function _Q(e){var t,r;t=Zl.modules[e]._module,r=t.basePlotModule;var i={};i.type=null;var a=Ru({},D_),s=Ru({},t.attributes);Wn.crawl(s,function(h,v,m,_,T){P_(a,T).set(void 0),h===void 0&&P_(s,T).set(void 0)}),Ru(i,a),Zl.traceIs(e,"noOpacity")&&delete i.opacity,Zl.traceIs(e,"showLegend")||(delete i.showlegend,delete i.legendgroup),Zl.traceIs(e,"noHover")&&(delete i.hoverinfo,delete i.hoverlabel),t.selectPoints||delete i.selectedpoints,Ru(i,s),r.attributes&&Ru(i,r.attributes),i.type=e;var l={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:A0(i)};if(t.layoutAttributes){var f={};Ru(f,t.layoutAttributes),l.layoutAttributes=A0(f)}return t.animatable||Wn.crawl(l,function(h){Wn.isValObject(h)&&"anim"in h&&delete h.anim}),l}function xQ(){var e={},t,r;Ru(e,Mw);for(t in Zl.subplotsRegistry)if(r=Zl.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var i=0;i{"use strict";var S0=Bt(),SQ=ys(),Dh="templateitemname",Cw={name:{valType:"string",editType:"none"}};Cw[Dh]={valType:"string",editType:"calc"};sd.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=Cw.name,t[Dh]=Cw[Dh],t};sd.traceTemplater=function(e){var t={},r,i;for(r in e)i=e[r],Array.isArray(i)&&i.length&&(t[r]=0);function a(s){r=S0.coerce(s,{},SQ,"type");var l={type:r,_template:null};if(r in t){i=e[r];var f=t[r]%i.length;t[r]++,l._template=i[f]}return l}return{newTrace:a}};sd.newContainer=function(e,t,r){var i=e._template,a=i&&(i[t]||r&&i[r]);S0.isPlainObject(a)||(a=null);var s=e[t]={_template:a};return s};sd.arrayTemplater=function(e,t,r){var i=e._template,a=i&&i[Lk(t)],s=i&&i[t];(!Array.isArray(s)||!s.length)&&(s=[]);var l={};function f(v){var m={name:v.name,_input:v},_=m[Dh]=v[Dh];if(!Ek(_))return m._template=a,m;for(var T=0;T=i&&(r._input||{})._templateitemname;s&&(a=i);var l=t+"["+a+"]",f;function h(){f={},s&&(f[l]={},f[l][Dh]=s)}h();function v(S,C){f[S]=C}function m(S,C){s?S0.nestedProperty(f[l],S).set(C):f[l+"."+S]=C}function _(){var S=f;return h(),S}function T(S,C){S&&m(S,C);var E=_();for(var L in E)S0.nestedProperty(e,L).set(E[L])}return{modifyBase:v,modifyItem:m,getUpdateObj:_,applyUpdate:T}}});var Ao=me((mge,Dk)=>{"use strict";var Hy=c0().counter;Dk.exports={idRegex:{x:Hy("x","( domain)?"),y:Hy("y","( domain)?")},attrRegex:Hy("[xy]axis"),xAxisMatch:Hy("xaxis"),yAxisMatch:Hy("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Xn=me(Ns=>{"use strict";var kQ=la(),Ew=Ao();Ns.id2name=function(t){if(!(typeof t!="string"||!t.match(Ew.AX_ID_PATTERN))){var r=t.split(" ")[0].substr(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Ns.name2id=function(t){if(t.match(Ew.AX_NAME_PATTERN)){var r=t.substr(5);return r==="1"&&(r=""),t.charAt(0)+r}};Ns.cleanId=function(t,r,i){var a=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(Ew.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(a&&!i)){var s=t.split(" ")[0].substr(1).replace(/^0+/,"");return s==="1"&&(s=""),t.charAt(0)+s+(a&&i?" domain":"")}};Ns.list=function(e,t,r){var i=e._fullLayout;if(!i)return[];var a=Ns.listIds(e,t),s=new Array(a.length),l;for(l=0;li?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)};Ns.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Pk(e,t){if(t&&t.length){for(var r=0;r{"use strict";function CQ(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function EQ(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}zk.exports={clearOutlineControllers:CQ,clearOutline:EQ}});var I_=me((_ge,Ik)=>{"use strict";Ik.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var q_=me(F_=>{"use strict";var R_=la(),xge=Ao().SUBPLOT_PATTERN;F_.getSubplotCalcData=function(e,t,r){var i=R_.subplotsRegistry[t];if(!i)return[];for(var a=i.attr,s=[],l=0;l{"use strict";var LQ=la(),k0=Bt();ld.manageCommandObserver=function(e,t,r,i){var a={},s=!0;t&&t._commandObserver&&(a=t._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var l=ld.hasSimpleAPICommandBindings(e,r,a.lookupTable);if(t&&t._commandObserver){if(l)return a;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,a}if(l){Rk(e,l,a.cache),a.check=function(){if(s){var m=Rk(e,l,a.cache);return m.changed&&i&&a.lookupTable[m.value]!==void 0&&(a.disable(),Promise.resolve(i({value:m.value,type:l.type,prop:l.prop,traces:l.traces,index:a.lookupTable[m.value]})).then(a.enable,a.enable)),m.changed}};for(var f=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],h=0;h0?".":"")+a;k0.isPlainObject(s)?Lw(s,t,l,i+1):t(l,a,s)}})}});var eo=me((Tge,Qk)=>{"use strict";var Zk=Ja(),PQ=s0().timeFormatLocale,zQ=N3().formatLocale,Gy=Da(),IQ=B3(),ai=la(),Yk=M0(),RQ=Ri(),Lr=Bt(),Wk=Oa(),Bk=Zi().BADNUM,Bs=Xn(),FQ=Ph().clearOutline,qQ=I_(),Dw=zy(),NQ=Aw(),BQ=q_().getModuleCalcData,Ok=Lr.relinkPrivateKeys,ud=Lr._,mr=Qk.exports={};Lr.extendFlat(mr,ai);mr.attributes=ys();mr.attributes.type.values=mr.allTypes;mr.fontAttrs=qo();mr.layoutAttributes=d0();var B_=Nk();mr.executeAPICommand=B_.executeAPICommand;mr.computeAPICommandBindings=B_.computeAPICommandBindings;mr.manageCommandObserver=B_.manageCommandObserver;mr.hasSimpleAPICommandBindings=B_.hasSimpleAPICommandBindings;mr.redrawText=function(e){return e=Lr.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(ai.getComponentMethod("annotations","draw")(e),ai.getComponentMethod("legend","draw")(e),ai.getComponentMethod("colorbar","draw")(e),t(mr.previousPromises(e)))},300)})};mr.resize=function(e){e=Lr.getGraphDiv(e);var t,r=new Promise(function(i,a){(!e||Lr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=i,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Lr.isHidden(e)){i(e);return}delete e.layout.width,delete e.layout.height;var s=e.changed;e.autoplay=!0,ai.call("relayout",e,{autosize:!0}).then(function(){e.changed=s,e._resolveResize===i&&(delete e._resolveResize,i(e))})},100)});return t&&t(r),r};mr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};mr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=Lr.ensureSingle(t._paper,"text","js-plot-link-container",function(h){h.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Wk.defaultLine,"pointer-events":"all"}).each(function(){var v=Zk.select(this);v.append("tspan").classed("js-link-to-tool",!0),v.append("tspan").classed("js-link-spacer",!0),v.append("tspan").classed("js-sourcelinks",!0)})}),i=r.node(),a={y:t._paper.attr("height")-9};document.body.contains(i)&&i.getComputedTextLength()>=t.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=t._paper.attr("width")-7),r.attr(a);var s=r.select(".js-link-to-tool"),l=r.select(".js-link-spacer"),f=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&OQ(e,s),l.text(s.text()&&f.text()?" - ":"")}};function OQ(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){mr.sendDataToCloud(e)});else{var i=window.location.pathname.split("/"),a=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+i[2].split(".")[0]+"/"+i[1]+a})}}mr.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=Zk.select(e).append("div").attr("id","hiddenform").style("display","none"),i=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),a=i.append("input").attr({type:"text",name:"data"});return a.node().value=mr.graphJson(e,!1,"keepdata"),i.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var UQ=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],VQ=["year","month","dayMonth","dayMonthYear"];mr.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,i=e._fullLayout||{};if(i._skipDefaults){delete i._skipDefaults;return}var a=e._fullLayout={},s=e.layout||{},l=e._fullData||[],f=e._fullData=[],h=e.data||[],v=e.calcdata||[],m=e._context||{},_;e._transitionData||mr.createTransitionData(e),a._dfltTitle={plot:ud(e,"Click to enter Plot title"),subtitle:ud(e,"Click to enter Plot subtitle"),x:ud(e,"Click to enter X axis title"),y:ud(e,"Click to enter Y axis title"),colorbar:ud(e,"Click to enter Colorscale title"),annotation:ud(e,"new text")},a._traceWord=ud(e,"trace");var T=Uk(e,UQ);if(a._mapboxAccessToken=m.mapboxAccessToken,i._initialAutoSizeIsDone){var S=i.width,C=i.height;mr.supplyLayoutGlobalDefaults(s,a,T),s.width||(a.width=S),s.height||(a.height=C),mr.sanitizeMargins(a)}else{mr.supplyLayoutGlobalDefaults(s,a,T);var E=!s.width||!s.height,L=a.autosize,z=m.autosizable,B=E&&(L||z);B?mr.plotAutoSize(e,s,a):E&&mr.sanitizeMargins(a),!L&&E&&(s.width=a.width,s.height=a.height)}a._d3locale=ZQ(T,a.separators),a._extraFormat=Uk(e,VQ),a._initialAutoSizeIsDone=!0,a._dataLength=h.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var q=a._subplots=GQ(),I=a._splomAxes={x:{},y:{}},O=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=HQ(l,h),mr.supplyDataDefaults(h,f,s,a);var H=Object.keys(I.x),V=Object.keys(I.y);if(H.length>1&&V.length>1){for(ai.getComponentMethod("grid","sizeDefaults")(s,a),_=0;_15&&V.length>15&&a.shapes.length===0&&a.images.length===0,mr.linkSubplots(f,a,l,i),mr.cleanPlot(f,a,l,i);var oe=!!(i._has&&i._has("cartesian")),fe=!!(a._has&&a._has("cartesian")),ve=oe,Se=fe;ve&&!Se?i._bgLayer.remove():Se&&!ve&&(a._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&FQ({_fullLayout:i}),YQ(f,a),Ok(a,i),ai.getComponentMethod("colorscale","crossTraceDefaults")(f,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var Me=a._tracePreGUI,Ae={},we;for(we in Me)Ae[we]="old";for(_=0;_0){var m=1-2*s;l=Math.round(m*l),f=Math.round(m*f)}}var _=mr.layoutAttributes.width.min,T=mr.layoutAttributes.height.min;l<_&&(l=_),f1,C=!r.height&&Math.abs(i.height-f)>1;(C||S)&&(S&&(i.width=l),C&&(i.height=f)),t._initialAutoSize||(t._initialAutoSize={width:l,height:f}),mr.sanitizeMargins(i)};mr.supplyLayoutModuleDefaults=function(e,t,r,i){var a=ai.componentsRegistry,s=t._basePlotModules,l,f,h,v=ai.subplotsRegistry.cartesian;for(l in a)h=a[l],h.includeBasePlot&&h.includeBasePlot(e,t);s.length||s.push(v),t._has("cartesian")&&(ai.getComponentMethod("grid","contentDefaults")(e,t),v.finalizeSubplots(e,t));for(var m in t._subplots)t._subplots[m].sort(Lr.subplotSort);for(f=0;f1&&(r.l/=L,r.r/=L)}if(T){var z=(r.t+r.b)/T;z>1&&(r.t/=z,r.b/=z)}var B=r.xl!==void 0?r.xl:r.x,q=r.xr!==void 0?r.xr:r.x,I=r.yt!==void 0?r.yt:r.y,O=r.yb!==void 0?r.yb:r.y;S[t]={l:{val:B,size:r.l+E},r:{val:q,size:r.r+E},b:{val:O,size:r.b+E},t:{val:I,size:r.t+E}},C[t]=1}if(!i._replotting)return mr.doAutoMargin(e)}};function XQ(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Bs.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}mr.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,i=t.height;t._size||(t._size={}),Xk(t);var a=t._size,s=t.margin,l={t:0,b:0,l:0,r:0},f=Lr.extendFlat({},a),h=s.l,v=s.r,m=s.t,_=s.b,T=t._pushmargin,S=t._pushmarginIds,C=t.minreducedwidth,E=t.minreducedheight;if(s.autoexpand!==!1){for(var L in T)S[L]||delete T[L];var z=e._fullLayout._reservedMargin;for(var B in z)for(var q in z[B]){var I=z[B][q];l[q]=Math.max(l[q],I)}T.base={l:{val:0,size:h},r:{val:1,size:v},t:{val:1,size:m},b:{val:0,size:_}};for(var O in l){var H=0;for(var V in T)V!=="base"&&Gy(T[V][O].size)&&(H=T[V][O].size>H?T[V][O].size:H);var W=Math.max(0,s[O]-H);l[O]=Math.max(0,l[O]-W)}for(var J in T){var te=T[J].l||{},ne=T[J].b||{},oe=te.val,fe=te.size,ve=ne.val,Se=ne.size,Me=r-l.r-l.l,Ae=i-l.t-l.b;for(var we in T){if(Gy(fe)&&T[we].r){var Te=T[we].r.val,Ce=T[we].r.size;if(Te>oe){var Le=(fe*Te+(Ce-Me)*oe)/(Te-oe),$e=(Ce*(1-oe)+(fe-Me)*(1-Te))/(Te-oe);Le+$e>h+v&&(h=Le,v=$e)}}if(Gy(Se)&&T[we].t){var lt=T[we].t.val,it=T[we].t.size;if(lt>ve){var gt=(Se*lt+(it-Ae)*ve)/(lt-ve),We=(it*(1-ve)+(Se-Ae)*(1-lt))/(lt-ve);gt+We>_+m&&(_=gt,m=We)}}}}}var Et=Lr.constrain(r-s.l-s.r,jk,C),nt=Lr.constrain(i-s.t-s.b,Jk,E),wt=Math.max(0,r-Et),xt=Math.max(0,i-nt);if(wt){var vt=(h+v)/wt;vt>1&&(h/=vt,v/=vt)}if(xt){var de=(_+m)/xt;de>1&&(_/=de,m/=de)}if(a.l=Math.round(h)+l.l,a.r=Math.round(v)+l.r,a.t=Math.round(m)+l.t,a.b=Math.round(_)+l.b,a.p=Math.round(s.pad),a.w=Math.round(r)-a.l-a.r,a.h=Math.round(i)-a.t-a.b,!t._replotting&&(mr.didMarginChange(f,a)||XQ(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var ze=3*(1+Object.keys(S).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};mr.graphJson=function(e,t,r,i,a,s){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&mr.supplyDefaults(e);var l=a?e._fullData:e.data,f=a?e._fullLayout:e.layout,h=(e._transitionData||{})._frames;function v(T,S){if(typeof T=="function")return S?"_function_":null;if(Lr.isPlainObject(T)){var C={},E;return Object.keys(T).sort().forEach(function(q){if(["_","["].indexOf(q.charAt(0))===-1){if(typeof T[q]=="function"){S&&(C[q]="_function");return}if(r==="keepdata"){if(q.substr(q.length-3)==="src")return}else if(r==="keepstream"){if(E=T[q+"src"],typeof E=="string"&&E.indexOf(":")>0&&!Lr.isPlainObject(T.stream))return}else if(r!=="keepall"&&(E=T[q+"src"],typeof E=="string"&&E.indexOf(":")>0))return;C[q]=v(T[q],S)}}),C}var L=Array.isArray(T),z=Lr.isTypedArray(T);if((L||z)&&T.dtype&&T.shape){var B=T.bdata;return v({dtype:T.dtype,shape:T.shape,bdata:Lr.isArrayBuffer(B)?IQ.encode(B):B},S)}return L?T.map(function(q){return v(q,S)}):z?Lr.simpleMap(T,Lr.identity):Lr.isJSDate(T)?Lr.ms2DateTimeLocal(+T):T}var m={data:(l||[]).map(function(T){var S=v(T);return t&&delete S.fit,S})};if(!t&&(m.layout=v(f),a)){var _=f._size;m.layout.computed={margin:{b:_.b,l:_.l,r:_.r,t:_.t}}}return h&&(m.frames=v(h)),s&&(m.config=v(e._context,!0)),i==="object"?m:JSON.stringify(m)};mr.modifyFrames=function(e,t){var r,i,a,s=e._transitionData._frames,l=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){i=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return ai.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var T=0,S=0;function C(){return T++,function(){S++,!i&&S===T&&f(_)}}r.runFn(C),setTimeout(C())})}function f(_){if(e._transitionData)return s(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return ai.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(_)}function h(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var v=[mr.previousPromises,h,r.prepareFn,mr.rehover,mr.reselect,l],m=Lr.syncOrAsync(v,e);return(!m||!m.then)&&(m=Promise.resolve()),m.then(function(){return e})}mr.doCalcdata=function(e,t){var r=Bs.list(e),i=e._fullData,a=e._fullLayout,s,l,f,h,v=new Array(i.length),m=(e.calcdata||[]).slice();for(e.calcdata=v,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},f=0;f=0;h--)if(O[h].enabled){s._indexToPoints=O[h]._indexToPoints;break}l&&l.calc&&(I=l.calc(e,s))}(!Array.isArray(I)||!I[0])&&(I=[{x:Bk,y:Bk}]),I[0].t||(I[0].t={}),I[0].trace=s,v[B]=I}}for(Hk(r,i,a),f=0;f{"use strict";fd.xmlns="http://www.w3.org/2000/xmlns/";fd.svg="http://www.w3.org/2000/svg";fd.xlink="http://www.w3.org/1999/xlink";fd.svgAttrs={xmlns:fd.svg,"xmlns:xlink":fd.xlink}});var ts=me((Mge,$k)=>{"use strict";$k.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var co=me(Yl=>{"use strict";var Nn=Ja(),_c=Bt(),QQ=_c.strTranslate,Pw=zh(),$Q=ts().LINE_SPACING,e$=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Yl.convertToTspans=function(e,t,r){var i=e.text(),a=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&i.match(e$),s=Nn.select(e.node().parentNode);if(s.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",s.selectAll("svg."+l).remove(),s.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":i,"data-math":"N"});function f(){s.empty()||(l=e.attr("class")+"-math",s.select("svg."+l).remove()),e.text("").style("white-space","pre");var h=v$(e.node(),i);h&&e.style("pointer-events","all"),Yl.positionText(e),r&&r.call(e)}return a?(t&&t._promises||[]).push(new Promise(function(h){e.style("display","none");var v=parseInt(e.node().style.fontSize,10),m={fontSize:v};i$(a[2],m,function(_,T,S){s.selectAll("svg."+l).remove(),s.selectAll("g."+l+"-group").remove();var C=_&&_.select("svg");if(!C||!C.node()){f(),h();return}var E=s.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":i,"data-math":"Y"});E.node().appendChild(C.node()),T&&T.node()&&C.node().insertBefore(T.node().cloneNode(!0),C.node().firstChild);var L=S.width,z=S.height;C.attr({class:l,height:z,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var B=e.node().style.fill||"black",q=C.select("g");q.attr({fill:B,stroke:B});var I=q.node().getBoundingClientRect(),O=I.width,H=I.height;(O>L||H>z)&&(C.style("overflow","hidden"),I=C.node().getBoundingClientRect(),O=I.width,H=I.height);var V=+e.attr("x"),W=+e.attr("y"),J=v||e.node().getBoundingClientRect().height,te=-J/4;if(l[0]==="y")E.attr({transform:"rotate("+[-90,V,W]+")"+QQ(-O/2,te-H/2)});else if(l[0]==="l")W=te-H/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)V=0,W=te;else{var ne=e.attr("text-anchor");V=V-O*(ne==="middle"?.5:ne==="end"?1:0),W=W+te-H/2}C.attr({x:V,y:W}),r&&r.call(e,E),h(E)})})):f(),e};var t$=/(<|<|<)/g,r$=/(>|>|>)/g;function a$(e){return e.replace(t$,"\\lt ").replace(r$,"\\gt ")}var eC=[["$","$"],["\\(","\\)"]];function i$(e,t,r){var i=parseInt((MathJax.version||"").split(".")[0]);if(i!==2&&i!==3){_c.warn("No MathJax version:",MathJax.version);return}var a,s,l,f,h=function(){return s=_c.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:eC},displayAlign:"left"})},v=function(){s=_c.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=eC},m=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},_=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},T=function(){var B="math-output-"+_c.randstr({},64);f=Nn.select("body").append("div").attr({id:B}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(a$(e));var q=f.node();return i===2?MathJax.Hub.Typeset(q):MathJax.typeset([q])},S=function(){var B=f.select(i===2?".MathJax_SVG":".MathJax"),q=!B.empty()&&f.select("svg").node();if(!q)_c.log("There was an error in the tex syntax.",e),r();else{var I=q.getBoundingClientRect(),O;i===2?O=Nn.select("body").select("#MathJax_SVG_glyphs"):O=B.select("defs"),r(B,O,I)}f.remove()},C=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},E=function(){a!=="svg"&&(MathJax.config.startup.output=a)},L=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(s)},z=function(){MathJax.config=s};i===2?MathJax.Hub.Queue(h,m,T,S,C,L):i===3&&(v(),_(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){T(),S(),E(),z()}))}var iC={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},n$={sub:"0.3em",sup:"-0.6em"},o$={sub:"-0.21em",sup:"0.42em"},tC="\u200B",rC=["http:","https:","mailto:","",void 0,":"],nC=Yl.NEWLINES=/(\r\n?|\n)/g,Iw=/(<[^<>]*>)/,Rw=/<(\/?)([^ >]*)(\s+(.*))?>/i,s$=//i;Yl.BR_TAG_ALL=//gi;var oC=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,sC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,lC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,l$=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function cd(e,t){if(!e)return null;var r=e.match(t),i=r&&(r[3]||r[4]);return i&&O_(i)}var u$=/(^|;)\s*color:/;Yl.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,i=t.allowedTags!==void 0?t.allowedTags:["br"],a="...",s=a.length,l=e.split(Iw),f=[],h="",v=0,m=0;ms?f.push(_.substr(0,E-s)+a):f.push(_.substr(0,E));break}h=""}}return f.join("")};var f$={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},c$=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function O_(e){return e.replace(c$,function(t,r){var i;return r.charAt(0)==="#"?i=h$(r.charAt(1)==="x"?parseInt(r.substr(2),16):parseInt(r.substr(1),10)):i=f$[r],i||t})}Yl.convertEntities=O_;function h$(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function v$(e,t){t=t.replace(nC," ");var r=!1,i=[],a,s=-1;function l(){s++;var H=document.createElementNS(Pw.svg,"tspan");Nn.select(H).attr({class:"line",dy:s*$Q+"em"}),e.appendChild(H),a=H;var V=i;if(i=[{node:H}],V.length>1)for(var W=1;W.",t);return}var V=i.pop();H!==V.type&&_c.log("Start tag <"+V.type+"> doesnt match end tag <"+H+">. Pretending it did match.",t),a=i[i.length-1].node}var m=s$.test(t);m?l():(a=e,i=[{node:e}]);for(var _=t.split(Iw),T=0;T<_.length;T++){var S=_[T],C=S.match(Rw),E=C&&C[2].toLowerCase(),L=iC[E];if(E==="br")l();else if(L===void 0)h(a,O_(S));else if(C[1])v(E);else{var z=C[4],B={type:E},q=cd(z,oC);if(q?(q=q.replace(u$,"$1 fill:"),L&&(q+=";"+L)):L&&(q=L),q&&(B.style=q),E==="a"){r=!0;var I=cd(z,sC);if(I){var O=uC(I);O&&(B.href=O,B.target=cd(z,lC)||"_blank",B.popup=cd(z,l$))}}f(B)}}return r}function uC(e){var t=encodeURI(decodeURI(e)),r=document.createElement("a"),i=document.createElement("a");r.href=e,i.href=t;var a=r.protocol,s=i.protocol;return rC.indexOf(a)!==-1&&rC.indexOf(s)!==-1?t:""}Yl.sanitizeHTML=function(t){t=t.replace(nC," ");for(var r=document.createElement("p"),i=r,a=[],s=t.split(Iw),l=0;l{"use strict";var d$=Ja(),V_=Tf(),Yy=Da(),U_=Bt(),fC=Oa(),p$=ed().isValid;function m$(e,t,r){var i=t?U_.nestedProperty(e,t).get()||{}:e,a=i[r||"color"];a&&a._inputArray&&(a=a._inputArray);var s=!1;if(U_.isArrayOrTypedArray(a)){for(var l=0;l=0;i--,a++){var s=e[i];r[a]=[1-s[0],s[1]]}return r}function mC(e,t){t=t||{};for(var r=e.domain,i=e.range,a=i.length,s=new Array(a),l=0;l{"use strict";var gC=rw(),g$=gC.FORMAT_LINK,_$=gC.DATE_FORMAT_LINK;function x$(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Fw:_C)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Fw(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+g$+"."].join(" ")}function _C(e,t){return Fw(e,t)+[" And for dates see: "+_$+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}xC.exports={axisHoverFormat:x$,descriptionOnlyNumbers:Fw,descriptionWithDates:_C}});var Fu=me((Lge,qC)=>{"use strict";var bC=qo(),C0=Af(),FC=hc().dash,Bw=mn().extendFlat,wC=Ri().templatedArray,Ege=nl().templateFormatStringDescription,TC=qw().descriptionWithDates,b$=Zi().ONEDAY,Cf=Ao(),w$=Cf.HOUR_PATTERN,T$=Cf.WEEKDAY_PATTERN,Nw={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},A$=Bw({},Nw,{values:Nw.values.slice().concat(["sync"])});function AC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var MC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},SC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},kC={valType:"data_array",editType:"ticks"},CC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function EC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function LC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var DC={valType:"color",dflt:C0.defaultLine,editType:"ticks"},PC={valType:"color",dflt:C0.lightLine,editType:"ticks"};function zC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var IC=Bw({},FC,{editType:"ticks"}),RC={valType:"boolean",editType:"ticks"};qC.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:C0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:bC({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Cf.idRegex.x.toString(),Cf.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Cf.idRegex.x.toString(),Cf.idRegex.y.toString()],editType:"calc"},rangebreaks:wC("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[T$,w$,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:b$},editType:"calc"}),tickmode:A$,nticks:AC(),tick0:MC,dtick:SC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:kC,ticktext:{valType:"data_array",editType:"ticks"},ticks:CC,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:EC(),tickwidth:LC(),tickcolor:DC,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Bw({},FC,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:bC({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:TC("tick label")},tickformatstops:wC("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:TC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:C0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:RC,gridcolor:PC,gridwidth:zC(),griddash:IC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:C0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:C0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Cf.idRegex.x.toString(),Cf.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Cf.idRegex.x.toString(),Cf.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Nw,nticks:AC("minor"),tick0:MC,dtick:SC,tickvals:kC,ticks:CC,ticklen:EC("minor"),tickwidth:LC("minor"),tickcolor:DC,gridcolor:PC,gridwidth:zC("minor"),griddash:IC,showgrid:RC,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var H_=me((Dge,OC)=>{"use strict";var Wi=Fu(),NC=qo(),BC=mn().extendFlat,M$=il().overrideAll;OC.exports=M$({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Wi.linecolor,outlinewidth:Wi.linewidth,bordercolor:Wi.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Wi.minor.tickmode,nticks:Wi.nticks,tick0:Wi.tick0,dtick:Wi.dtick,tickvals:Wi.tickvals,ticktext:Wi.ticktext,ticks:BC({},Wi.ticks,{dflt:""}),ticklabeloverflow:BC({},Wi.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Wi.ticklen,tickwidth:Wi.tickwidth,tickcolor:Wi.tickcolor,ticklabelstep:Wi.ticklabelstep,showticklabels:Wi.showticklabels,labelalias:Wi.labelalias,tickfont:NC({}),tickangle:Wi.tickangle,tickformat:Wi.tickformat,tickformatstops:Wi.tickformatstops,tickprefix:Wi.tickprefix,showtickprefix:Wi.showtickprefix,ticksuffix:Wi.ticksuffix,showticksuffix:Wi.showticksuffix,separatethousands:Wi.separatethousands,exponentformat:Wi.exponentformat,minexponent:Wi.minexponent,showexponent:Wi.showexponent,title:{text:{valType:"string"},font:NC({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var xc=me((zge,VC)=>{"use strict";var S$=H_(),k$=c0().counter,C$=__(),UC=ed().scales,Pge=C$(UC);function G_(e){return"`"+e+"`"}VC.exports=function(t,r){t=t||"",r=r||{};var i=r.cLetter||"c",a="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,s="noScale"in r?r.noScale:t==="marker.line",l="showScaleDflt"in r?r.showScaleDflt:i==="z",f=typeof r.colorscaleDflt=="string"?UC[r.colorscaleDflt]:null,h=r.editTypeOverride||"",v=t?t+".":"",m,_;"colorAttr"in r?(m=r.colorAttr,_=r.colorAttr):(m={z:"z",c:"color"}[i],_="in "+G_(v+m));var T=a?" Has an effect only if "+_+" is set to a numerical array.":"",S=i+"auto",C=i+"min",E=i+"max",L=i+"mid",z=G_(v+S),B=G_(v+C),q=G_(v+E),I=B+" and "+q,O={};O[C]=O[E]=void 0;var H={};H[S]=!1;var V={};return m==="color"&&(V.color={valType:"color",arrayOk:!0,editType:h||"style"},r.anim&&(V.color.anim=!0)),V[S]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:O},V[C]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},V[E]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},V[L]={valType:"number",dflt:null,editType:"calc",impliedEdits:O},V.colorscale={valType:"colorscale",editType:"calc",dflt:f,impliedEdits:{autocolorscale:!1}},V.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},V.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(V.showscale={valType:"boolean",dflt:l,editType:"calc"},V.colorbar=S$),r.noColorAxis||(V.coloraxis={valType:"subplotid",regex:k$("coloraxis"),dflt:null,editType:"calc"}),V}});var Uw=me((Ige,HC)=>{"use strict";var E$=mn().extendFlat,L$=xc(),Ow=ed().scales;HC.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Ow.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Ow.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Ow.RdBu,editType:"calc"}},coloraxis:E$({_isSubplotObj:!0,editType:"calc"},L$("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Vw=me((Rge,GC)=>{"use strict";var D$=Bt();GC.exports=function(t){return D$.isPlainObject(t.colorbar)}});var Zw=me(Gw=>{"use strict";var Hw=Da(),ZC=Bt(),YC=Zi(),P$=YC.ONEDAY,z$=YC.ONEWEEK;Gw.dtick=function(e,t){var r=t==="log",i=t==="date",a=t==="category",s=i?P$:1;if(!e)return s;if(Hw(e))return e=Number(e),e<=0?s:a?Math.max(1,Math.round(e)):i?Math.max(.1,e):e;if(typeof e!="string"||!(i||r))return s;var l=e.charAt(0),f=e.substr(1);return f=Hw(f)?Number(f):0,f<=0||!(i&&l==="M"&&f===Math.round(f)||r&&l==="L"||r&&l==="D"&&(f===1||f===2))?s:e};Gw.tick0=function(e,t,r,i){if(t==="date")return ZC.cleanDate(e,ZC.dateTick0(r,i%z$===0?1:0));if(!(i==="D1"||i==="D2"))return Hw(e)?Number(e):0}});var Yw=me((qge,XC)=>{"use strict";var WC=Zw(),I$=Bt().isArrayOrTypedArray,R$=al().isTypedArraySpec,F$=al().decodeTypedArraySpec;XC.exports=function(t,r,i,a,s){s||(s={});var l=s.isMinor,f=l?t.minor||{}:t,h=l?r.minor:r,v=l?"minor.":"";function m(B){var q=f[B];return R$(q)&&(q=F$(q)),q!==void 0?q:(h._template||{})[B]}var _=m("tick0"),T=m("dtick"),S=m("tickvals"),C=I$(S)?"array":T?"linear":"auto",E=i(v+"tickmode",C);if(E==="auto"||E==="sync")i(v+"nticks");else if(E==="linear"){var L=h.dtick=WC.dtick(T,a);h.tick0=WC.tick0(_,a,r.calendar,L)}else if(a!=="multicategory"){var z=i(v+"tickvals");z===void 0?h.tickmode="auto":l||i("ticktext")}}});var Xw=me((Nge,JC)=>{"use strict";var Ww=Bt(),jC=Fu();JC.exports=function(t,r,i,a){var s=a.isMinor,l=s?t.minor||{}:t,f=s?r.minor:r,h=s?jC.minor:jC,v=s?"minor.":"",m=Ww.coerce2(l,f,h,"ticklen",s?(r.ticklen||5)*.6:void 0),_=Ww.coerce2(l,f,h,"tickwidth",s?r.tickwidth||1:void 0),T=Ww.coerce2(l,f,h,"tickcolor",(s?r.tickcolor:void 0)||f.color),S=i(v+"ticks",!s&&a.outerTicks||m||_||T?"outside":"");S||(delete f.ticklen,delete f.tickwidth,delete f.tickcolor)}});var jw=me((Bge,KC)=>{"use strict";KC.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],i=r.filter(function(s){return t[s]!==void 0}),a=function(s){return t[s]===t[i[0]]};if(i.every(a)||i.length===1)return t[i[0]]}});var Wl=me((Oge,QC)=>{"use strict";var Z_=Bt(),q$=Ri();QC.exports=function(t,r,i){var a=i.name,s=i.inclusionAttr||"visible",l=r[a],f=Z_.isArrayOrTypedArray(t[a])?t[a]:[],h=r[a]=[],v=q$.arrayTemplater(r,a,s),m,_;for(m=0;m{"use strict";var Jw=Bt(),N$=Oa().contrast,$C=Fu(),B$=jw(),O$=Wl();eE.exports=function(t,r,i,a,s){s||(s={});var l=i("labelalias");Jw.isPlainObject(l)||delete r.labelalias;var f=B$(t),h=i("showticklabels");if(h){s.noTicklabelshift||i("ticklabelshift"),s.noTicklabelstandoff||i("ticklabelstandoff");var v=s.font||{},m=r.color,_=r.ticklabelposition||"",T=_.indexOf("inside")!==-1?N$(s.bgColor):m&&m!==$C.color.dflt?m:v.color;if(Jw.coerceFont(i,"tickfont",v,{overrideDflt:{color:T}}),!s.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&i("ticklabelstep"),!s.noAng){var S=i("tickangle");!s.noAutotickangles&&S==="auto"&&i("autotickangles")}if(a!=="category"){var C=i("tickformat");O$(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:U$}),r.tickformatstops.length||delete r.tickformatstops,!s.noExp&&!C&&a!=="date"&&(i("showexponent",f),i("exponentformat"),i("minexponent"),i("separatethousands"))}!s.noMinorloglabels&&a==="log"&&i("minorloglabels")}};function U$(e,t){function r(a,s){return Jw.coerce(e,t,$C.tickformatstops,a,s)}var i=r("enabled");i&&(r("dtickrange"),r("value"))}});var Qw=me((Vge,tE)=>{"use strict";var V$=jw();tE.exports=function(t,r,i,a,s){s||(s={});var l=s.tickSuffixDflt,f=V$(t),h=i("tickprefix");h&&i("showtickprefix",f);var v=i("ticksuffix",l);v&&i("showticksuffix",f)}});var $w=me((Hge,rE)=>{"use strict";var Ih=Bt(),H$=Ri(),G$=Yw(),Z$=Xw(),Y$=Kw(),W$=Qw(),X$=H_();rE.exports=function(t,r,i){var a=H$.newContainer(r,"colorbar"),s=t.colorbar||{};function l(ne,oe){return Ih.coerce(s,a,X$,ne,oe)}var f=i.margin||{t:0,b:0,l:0,r:0},h=i.width-f.l-f.r,v=i.height-f.t-f.b,m=l("orientation"),_=m==="v",T=l("thicknessmode");l("thickness",T==="fraction"?30/(_?h:v):30);var S=l("lenmode");l("len",S==="fraction"?1:_?v:h);var C=l("yref"),E=l("xref"),L=C==="paper",z=E==="paper",B,q,I,O="left";_?(I="middle",O=z?"left":"right",B=z?1.02:1,q=.5):(I=L?"bottom":"top",O="center",B=.5,q=L?1.02:1),Ih.coerce(s,a,{x:{valType:"number",min:z?-2:0,max:z?3:1,dflt:B}},"x"),Ih.coerce(s,a,{y:{valType:"number",min:L?-2:0,max:L?3:1,dflt:q}},"y"),l("xanchor",O),l("xpad"),l("yanchor",I),l("ypad"),Ih.noneOrAll(s,a,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var H=Ih.coerce(s,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:_?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",H.indexOf("inside")!==-1?"hide past domain":"hide past div"),G$(s,a,l,"linear");var V=i.font,W={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:V};H.indexOf("inside")!==-1&&(W.bgColor="black"),W$(s,a,l,"linear",W),Y$(s,a,l,"linear",W),Z$(s,a,l,"linear",W),l("title.text",i._dfltTitle.colorbar);var J=a.showticklabels?a.tickfont:V,te=Ih.extendFlat({},V,{family:J.family,size:Ih.bigFont(J.size)});Ih.coerceFont(l,"title.font",te),l("title.side",_?"top":"right")}});var hd=me((Gge,nE)=>{"use strict";var aE=Da(),t5=Bt(),j$=Vw(),J$=$w(),iE=ed().isValid,K$=la().traceIs;function e5(e,t){var r=t.slice(0,t.length-1);return t?t5.nestedProperty(e,r).get()||{}:e}nE.exports=function e(t,r,i,a,s){var l=s.prefix,f=s.cLetter,h="_module"in r,v=e5(t,l),m=e5(r,l),_=e5(r._template||{},l)||{},T=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,i,a,s)};if(h){var S=i._colorAxes||{},C=a(l+"coloraxis");if(C){var E=K$(r,"contour")&&t5.nestedProperty(r,"contours.coloring").get()||"heatmap",L=S[C];L?(L[2].push(T),L[0]!==E&&(L[0]=!1,t5.warn(["Ignoring coloraxis:",C,"setting","as it is linked to incompatible colorscales."].join(" ")))):S[C]=[E,r,[T]];return}}var z=v[f+"min"],B=v[f+"max"],q=aE(z)&&aE(B)&&z{"use strict";var oE=Bt(),Q$=Ri(),sE=Uw(),$$=hd();lE.exports=function(t,r){function i(_,T){return oE.coerce(t,r,sE,_,T)}i("colorscale.sequential"),i("colorscale.sequentialminus"),i("colorscale.diverging");var a=r._colorAxes,s,l;function f(_,T){return oE.coerce(s,l,sE.coloraxis,_,T)}for(var h in a){var v=a[h];if(v[0])s=t[h]||{},l=Q$.newContainer(r,h,"coloraxis"),l._name=h,$$(s,l,r,f,{prefix:"",cLetter:"c"});else{for(var m=0;m{"use strict";var eee=Bt(),tee=kf().hasColorscale,ree=kf().extractOpts;fE.exports=function(t,r){function i(m,_){var T=m["_"+_];T!==void 0&&(m[_]=T)}function a(m,_){var T=_.container?eee.nestedProperty(m,_.container).get():m;if(T)if(T.coloraxis)T._colorAx=r[T.coloraxis];else{var S=ree(T),C=S.auto;(C||S.min===void 0)&&i(T,_.min),(C||S.max===void 0)&&i(T,_.max),S.autocolorscale&&i(T,"colorscale")}}for(var s=0;s{"use strict";var hE=Da(),r5=Bt(),aee=kf().extractOpts;vE.exports=function(t,r,i){var a=t._fullLayout,s=i.vals,l=i.containerStr,f=l?r5.nestedProperty(r,l).get():r,h=aee(f),v=h.auto!==!1,m=h.min,_=h.max,T=h.mid,S=function(){return r5.aggNums(Math.min,null,s)},C=function(){return r5.aggNums(Math.max,null,s)};if(m===void 0?m=S():v&&(f._colorAx&&hE(m)?m=Math.min(m,S()):m=S()),_===void 0?_=C():v&&(f._colorAx&&hE(_)?_=Math.max(_,C()):_=C()),v&&T!==void 0&&(_-T>T-m?m=T-(_-T):_-T=0?E=a.colorscale.sequential:E=a.colorscale.sequentialminus,h._sync("colorscale",E)}}});var L0=me((Xge,dE)=>{"use strict";var Y_=ed(),E0=kf();dE.exports={moduleType:"component",name:"colorscale",attributes:xc(),layoutAttributes:Uw(),supplyLayoutDefaults:uE(),handleDefaults:hd(),crossTraceDefaults:cE(),calc:Wy(),scales:Y_.scales,defaultScale:Y_.defaultScale,getScale:Y_.get,isValidScale:Y_.isValid,hasColorscale:E0.hasColorscale,extractOpts:E0.extractOpts,extractScale:E0.extractScale,flipScale:E0.flipScale,makeColorScaleFunc:E0.makeColorScaleFunc,makeColorScaleFuncFromTrace:E0.makeColorScaleFuncFromTrace}});var rs=me((jge,mE)=>{"use strict";var pE=Bt(),iee=al().isTypedArraySpec;mE.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return pE.isPlainObject(t)&&(pE.isArrayOrTypedArray(t.size)||iee(t.size))}}});var a5=me((Jge,yE)=>{"use strict";var nee=Da();yE.exports=function(t,r){r||(r=2);var i=t.marker,a=i.sizeref||1,s=i.sizemin||0,l=i.sizemode==="area"?function(f){return Math.sqrt(f/a)}:function(f){return f/a};return function(f){var h=l(f/r);return nee(h)&&h>0?Math.max(h,s):0}}});var bc=me(No=>{"use strict";var gE=Bt();No.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};No.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],i=e.yaxes||[],a=0;a=0&&r.index{bE.exports=fee;var i5={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},uee=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function fee(e){var t=[];return e.replace(uee,function(r,i,a){var s=i.toLowerCase();for(a=hee(a),s=="m"&&a.length>2&&(t.push([i].concat(a.splice(0,2))),s="l",i=i=="m"?"l":"L");;){if(a.length==i5[s])return a.unshift(i),t.push(a);if(a.length{"use strict";var vee=n5(),sr=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},ha="M0,0Z",wE=Math.sqrt(2),Rh=Math.sqrt(3),o5=Math.PI,s5=Math.cos,l5=Math.sin;kE.exports={circle:{n:0,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a="M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z";return r?da(t,r,a):a}},square:{n:1,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")}},diamond:{n:2,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.3,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"Z")}},cross:{n:3,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.4,2),a=sr(e*1.2,2);return da(t,r,"M"+a+","+i+"H"+i+"V"+a+"H-"+i+"V"+i+"H-"+a+"V-"+i+"H-"+i+"V-"+a+"H"+i+"V-"+i+"H"+a+"Z")}},x:{n:4,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.8/wE,2),a="l"+i+","+i,s="l"+i+",-"+i,l="l-"+i+",-"+i,f="l-"+i+","+i;return da(t,r,"M0,"+i+a+s+l+s+l+f+l+f+a+f+a+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M-"+i+","+a+"H"+i+"L0,-"+s+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M-"+i+",-"+a+"H"+i+"L0,"+s+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M"+a+",-"+i+"V"+i+"L-"+s+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M-"+a+",-"+i+"V"+i+"L"+s+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M-"+a+",-"+i+"H"+i+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M"+i+",-"+a+"V"+i+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M"+a+","+i+"H-"+i+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M-"+i+","+a+"V-"+i+"H"+a+"Z")}},pentagon:{n:13,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.951,2),a=sr(e*.588,2),s=sr(-e,2),l=sr(e*-.309,2),f=sr(e*.809,2);return da(t,r,"M"+i+","+l+"L"+a+","+f+"H-"+a+"L-"+i+","+l+"L0,"+s+"Z")}},hexagon:{n:14,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e/2,2),s=sr(e*Rh/2,2);return da(t,r,"M"+s+",-"+a+"V"+a+"L0,"+i+"L-"+s+","+a+"V-"+a+"L0,-"+i+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e/2,2),s=sr(e*Rh/2,2);return da(t,r,"M-"+a+","+s+"H"+a+"L"+i+",0L"+a+",-"+s+"H-"+a+"L-"+i+",0Z")}},octagon:{n:16,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.924,2),a=sr(e*.383,2);return da(t,r,"M-"+a+",-"+i+"H"+a+"L"+i+",-"+a+"V"+a+"L"+a+","+i+"H-"+a+"L-"+i+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,t,r){if(va(t))return ha;var i=e*1.4,a=sr(i*.225,2),s=sr(i*.951,2),l=sr(i*.363,2),f=sr(i*.588,2),h=sr(-i,2),v=sr(i*-.309,2),m=sr(i*.118,2),_=sr(i*.809,2),T=sr(i*.382,2);return da(t,r,"M"+a+","+v+"H"+s+"L"+l+","+m+"L"+f+","+_+"L0,"+T+"L-"+f+","+_+"L-"+l+","+m+"L-"+s+","+v+"H-"+a+"L0,"+h+"Z")}},hexagram:{n:18,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.66,2),a=sr(e*.38,2),s=sr(e*.76,2);return da(t,r,"M-"+s+",0l-"+a+",-"+i+"h"+s+"l"+a+",-"+i+"l"+a+","+i+"h"+s+"l-"+a+","+i+"l"+a+","+i+"h-"+s+"l-"+a+","+i+"l-"+a+",-"+i+"h-"+s+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(va(t))return ha;var i=sr(e*Rh*.8,2),a=sr(e*.8,2),s=sr(e*1.6,2),l=sr(e*4,2),f="A "+l+","+l+" 0 0 1 ";return da(t,r,"M-"+i+","+a+f+i+","+a+f+"0,-"+s+f+"-"+i+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(va(t))return ha;var i=sr(e*Rh*.8,2),a=sr(e*.8,2),s=sr(e*1.6,2),l=sr(e*4,2),f="A "+l+","+l+" 0 0 1 ";return da(t,r,"M"+i+",-"+a+f+"-"+i+",-"+a+f+"0,"+s+f+i+",-"+a+"Z")}},"star-square":{n:21,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.1,2),a=sr(e*2,2),s="A "+a+","+a+" 0 0 1 ";return da(t,r,"M-"+i+",-"+i+s+"-"+i+","+i+s+i+","+i+s+i+",-"+i+s+"-"+i+",-"+i+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2),a=sr(e*1.9,2),s="A "+a+","+a+" 0 0 1 ";return da(t,r,"M-"+i+",0"+s+"0,"+i+s+i+",0"+s+"0,-"+i+s+"-"+i+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.7,2),a=sr(e*1.4,2);return da(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2),a=sr(e*.7,2);return da(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"H-"+i+"L"+i+",-"+i+"H-"+i+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"V-"+i+"L-"+i+","+i+"V-"+i+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e/wE,2);return da(t,r,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.3,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM0,-"+i+"V"+i+"M-"+i+",0H"+i)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.3,2),a=sr(e*.65,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*.85,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(va(t))return ha;var i=sr(e/2,2),a=sr(e,2);return da(t,r,"M"+i+","+a+"V-"+a+"M"+(i-a)+",-"+a+"V"+a+"M"+a+","+i+"H-"+a+"M-"+a+","+(i-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M-"+i+","+s+"L0,0M"+i+","+s+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M-"+i+",-"+s+"L0,0M"+i+",-"+s+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M"+s+","+i+"L0,0M"+s+",-"+i+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M-"+s+","+i+"L0,0M-"+s+",-"+i+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2);return da(t,r,"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2);return da(t,r,"M0,"+i+"V-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M0,0L-"+i+",-"+a+"H"+i+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,0L"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,0L-"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+",-"+a+"H"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,-"+a+"V"+a+"M0,0L"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,-"+a+"V"+a+"M0,0L-"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(va(t))return ha;var i=o5/2.5,a=2*e*s5(i),s=2*e*l5(i);return da(t,r,"M0,0L"+-a+","+s+"L"+a+","+s+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(va(t))return ha;var i=o5/4,a=2*e*s5(i),s=2*e*l5(i);return da(t,r,"M0,0L"+-a+","+s+"A "+2*e+","+2*e+" 0 0 1 "+a+","+s+"Z")},backoff:.4,noDot:!0}};function va(e){return e===null}var TE,AE,ME,SE;function da(e,t,r){if((!e||e%360===0)&&!t)return r;if(ME===e&&SE===t&&TE===r)return AE;ME=e,SE=t,TE=r;function i(L,z){var B=s5(L),q=l5(L),I=z[0],O=z[1]+(t||0);return[I*B-O*q,I*q+O*B]}for(var a=e/180*o5,s=0,l=0,f=vee(r),h="",v=0;v{"use strict";var to=Ja(),xi=Bt(),dee=xi.numberFormat,md=Da(),d5=Tf(),X_=la(),Mo=Oa(),pee=L0(),jy=xi.strTranslate,j_=co(),mee=zh(),yee=ts(),gee=yee.LINE_SPACING,NE=n_().DESELECTDIM,_ee=rs(),xee=a5(),bee=bc().appendArrayPointValue,gr=XE.exports={};gr.font=function(e,t){var r=t.variant,i=t.style,a=t.weight,s=t.color,l=t.size,f=t.family,h=t.shadow,v=t.lineposition,m=t.textcase;f&&e.style("font-family",f),l+1&&e.style("font-size",l+"px"),s&&e.call(Mo.fill,s),a&&e.style("font-weight",a),i&&e.style("font-style",i),r&&e.style("font-variant",r),m&&e.style("text-transform",u5(Tee(m))),h&&e.style("text-shadow",h==="auto"?j_.makeTextShadow(Mo.contrast(s)):u5(h)),v&&e.style("text-decoration-line",u5(Aee(v)))};function u5(e){return e==="none"?void 0:e}var wee={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Tee(e){return wee[e]}function Aee(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}gr.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};gr.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};gr.setRect=function(e,t,r,i,a){e.call(gr.setPosition,t,r).call(gr.setSize,i,a)};gr.translatePoint=function(e,t,r,i){var a=r.c2p(e.x),s=i.c2p(e.y);if(md(a)&&md(s)&&t.node())t.node().nodeName==="text"?t.attr("x",a).attr("y",s):t.attr("transform",jy(a,s));else return!1;return!0};gr.translatePoints=function(e,t,r){e.each(function(i){var a=to.select(this);gr.translatePoint(i,a,t,r)})};gr.hideOutsideRangePoint=function(e,t,r,i,a,s){t.attr("display",r.isPtWithinRange(e,a)&&i.isPtWithinRange(e,s)?null:"none")};gr.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,i=t.yaxis;e.each(function(a){var s=a[0].trace,l=s.xcalendar,f=s.ycalendar,h=X_.traceIs(s,"bar-like")?".bartext":".point,.textpoint";e.selectAll(h).each(function(v){gr.hideOutsideRangePoint(v,to.select(this),r,i,l,f)})})}};gr.crispRound=function(e,t,r){return!t||!md(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};gr.singleLineStyle=function(e,t,r,i,a){t.style("fill","none");var s=(((e||[])[0]||{}).trace||{}).line||{},l=r||s.width||0,f=a||s.dash||"";Mo.stroke(t,i||s.color),gr.dashLine(t,f,l)};gr.lineGroupStyle=function(e,t,r,i){e.style("fill","none").each(function(a){var s=(((a||[])[0]||{}).trace||{}).line||{},l=t||s.width||0,f=i||s.dash||"";to.select(this).call(Mo.stroke,r||s.color).call(gr.dashLine,f,l)})};gr.dashLine=function(e,t,r){r=+r||0,t=gr.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};gr.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function BE(e,t,r,i){var a=t.fillpattern,s=t.fillgradient,l=gr.getPatternAttr,f=a&&(l(a.shape,0,"")||l(a.path,0,""));if(f){var h=l(a.bgcolor,0,null),v=l(a.fgcolor,0,null),m=a.fgopacity,_=l(a.size,0,8),T=l(a.solidity,0,.3),S=t.uid;gr.pattern(e,"point",r,S,f,_,T,void 0,a.fillmode,h,v,m)}else if(s&&s.type!=="none"){var C=s.type,E="scatterfill-"+t.uid;if(i&&(E="legendfill-"+t.uid),!i&&(s.start!==void 0||s.stop!==void 0)){var L,z;C==="horizontal"?(L={x:s.start,y:0},z={x:s.stop,y:0}):C==="vertical"&&(L={x:0,y:s.start},z={x:0,y:s.stop}),L.x=t._xA.c2p(L.x===void 0?t._extremes.x.min[0].val:L.x,!0),L.y=t._yA.c2p(L.y===void 0?t._extremes.y.min[0].val:L.y,!0),z.x=t._xA.c2p(z.x===void 0?t._extremes.x.max[0].val:z.x,!0),z.y=t._yA.c2p(z.y===void 0?t._extremes.y.max[0].val:z.y,!0),e.call(VE,r,E,"linear",s.colorscale,"fill",L,z,!0,!1)}else C==="horizontal"&&(C=C+"reversed"),e.call(gr.gradient,r,E,C,s.colorscale,"fill")}else t.fillcolor&&e.call(Mo.fill,t.fillcolor)}gr.singleFillStyle=function(e,t){var r=to.select(e.node()),i=r.data(),a=((i[0]||[])[0]||{}).trace||{};BE(e,a,t,!1)};gr.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(i){var a=to.select(this);i[0].trace&&BE(a,i[0].trace,t,r)})};var EE=CE();gr.symbolNames=[];gr.symbolFuncs=[];gr.symbolBackOffs=[];gr.symbolNeedLines={};gr.symbolNoDot={};gr.symbolNoFill={};gr.symbolList=[];Object.keys(EE).forEach(function(e){var t=EE[e],r=t.n;gr.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),gr.symbolNames[r]=e,gr.symbolFuncs[r]=t.f,gr.symbolBackOffs[r]=t.backoff||0,t.needLine&&(gr.symbolNeedLines[r]=!0),t.noDot?gr.symbolNoDot[r]=!0:gr.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(gr.symbolNoFill[r]=!0)});var Mee=gr.symbolNames.length,See="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";gr.symbolNumber=function(e){if(md(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=gr.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=Mee||e>=400?0:Math.floor(Math.max(e,0))};function OE(e,t,r,i){var a=e%100;return gr.symbolFuncs[a](t,r,i)+(e>=200?See:"")}var LE=dee("~f"),UE={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};gr.gradient=function(e,t,r,i,a,s){var l=UE[i];return VE(e,t,r,l.type,a,s,l.start,l.stop,!1,l.reversed)};function VE(e,t,r,i,a,s,l,f,h,v){var m=a.length,_;i==="linear"?_={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:f.x,y2:f.y,gradientUnits:h?"userSpaceOnUse":"objectBoundingBox"},reversed:v}:i==="radial"&&(_={node:"radialGradient",reversed:v});for(var T=new Array(m),S=0;S=0&&e.i===void 0&&(e.i=s.i),t.style("opacity",i.selectedOpacityFn?i.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),i.ms2mrc){var h;e.ms==="various"||l.size==="various"?h=3:h=i.ms2mrc(e.ms),e.mrc=h,i.selectedSizeFn&&(h=e.mrc=i.selectedSizeFn(e));var v=gr.symbolNumber(e.mx||l.symbol)||0;e.om=v%200>=100;var m=y5(e,r),_=m5(e,r);t.attr("d",OE(v,h,m,_))}var T=!1,S,C,E;if(e.so)E=f.outlierwidth,C=f.outliercolor,S=l.outliercolor;else{var L=(f||{}).width;E=(e.mlw+1||L+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?C=e.mlcc=i.lineScale(e.mlc):xi.isArrayOrTypedArray(f.color)?C=Mo.defaultLine:C=f.color,xi.isArrayOrTypedArray(l.color)&&(S=Mo.defaultLine,T=!0),"mc"in e?S=e.mcc=i.markerScale(e.mc):S=l.color||l.colors||"rgba(0,0,0,0)",i.selectedColorFn&&(S=i.selectedColorFn(e))}if(e.om)t.call(Mo.stroke,S).style({"stroke-width":(E||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:E)+"px");var z=l.gradient,B=e.mgt;B?T=!0:B=z&&z.type,xi.isArrayOrTypedArray(B)&&(B=B[0],UE[B]||(B=0));var q=l.pattern,I=gr.getPatternAttr,O=q&&(I(q.shape,e.i,"")||I(q.path,e.i,""));if(B&&B!=="none"){var H=e.mgc;H?T=!0:H=z.color;var V=r.uid;T&&(V+="-"+e.i),gr.gradient(t,a,V,B,[[0,H],[1,S]],"fill")}else if(O){var W=!1,J=q.fgcolor;!J&&s&&s.color&&(J=s.color,W=!0);var te=I(J,e.i,s&&s.color||null),ne=I(q.bgcolor,e.i,null),oe=q.fgopacity,fe=I(q.size,e.i,8),ve=I(q.solidity,e.i,.3);W=W||e.mcc||xi.isArrayOrTypedArray(q.shape)||xi.isArrayOrTypedArray(q.path)||xi.isArrayOrTypedArray(q.bgcolor)||xi.isArrayOrTypedArray(q.fgcolor)||xi.isArrayOrTypedArray(q.size)||xi.isArrayOrTypedArray(q.solidity);var Se=r.uid;W&&(Se+="-"+e.i),gr.pattern(t,"point",a,Se,O,fe,ve,e.mcc,q.fillmode,ne,te,oe)}else xi.isArrayOrTypedArray(S)?Mo.fill(t,S[e.i]):Mo.fill(t,S);E&&Mo.stroke(t,C)}};gr.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=gr.tryColorscale(r,""),t.lineScale=gr.tryColorscale(r,"line"),X_.traceIs(e,"symbols")&&(t.ms2mrc=_ee.isBubble(e)?xee(e):function(){return(r.size||6)/2}),e.selectedpoints&&xi.extendFlat(t,gr.makeSelectedPointStyleFns(e)),t};gr.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.marker||{},s=r.marker||{},l=i.marker||{},f=a.opacity,h=s.opacity,v=l.opacity,m=h!==void 0,_=v!==void 0;(xi.isArrayOrTypedArray(f)||m||_)&&(t.selectedOpacityFn=function(I){var O=I.mo===void 0?a.opacity:I.mo;return I.selected?m?h:O:_?v:NE*O});var T=a.color,S=s.color,C=l.color;(S||C)&&(t.selectedColorFn=function(I){var O=I.mcc||T;return I.selected?S||O:C||O});var E=a.size,L=s.size,z=l.size,B=L!==void 0,q=z!==void 0;return X_.traceIs(e,"symbols")&&(B||q)&&(t.selectedSizeFn=function(I){var O=I.mrc||E/2;return I.selected?B?L/2:O:q?z/2:O}),t};gr.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.textfont||{},s=r.textfont||{},l=i.textfont||{},f=a.color,h=s.color,v=l.color;return t.selectedTextColorFn=function(m){var _=m.tc||f;return m.selected?h||_:v||(h?_:Mo.addOpacity(_,NE))},t};gr.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=gr.makeSelectedPointStyleFns(t),i=t.marker||{},a=[];r.selectedOpacityFn&&a.push(function(s,l){s.style("opacity",r.selectedOpacityFn(l))}),r.selectedColorFn&&a.push(function(s,l){Mo.fill(s,r.selectedColorFn(l))}),r.selectedSizeFn&&a.push(function(s,l){var f=l.mx||i.symbol||0,h=r.selectedSizeFn(l);s.attr("d",OE(gr.symbolNumber(f),h,y5(l,t),m5(l,t))),l.mrc2=h}),a.length&&e.each(function(s){for(var l=to.select(this),f=0;f0?r:0}gr.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var a=gr.makeSelectedTextStyleFns(t);i=a.selectedTextColorFn}var s=t.texttemplate,l=r._fullLayout;e.each(function(f){var h=to.select(this),v=s?xi.extractOption(f,t,"txt","texttemplate"):xi.extractOption(f,t,"tx","text");if(!v&&v!==0){h.remove();return}if(s){var m=t._module.formatLabels,_=m?m(f,t,l):{},T={};bee(T,t,f.i);var S=t._meta||{};v=xi.texttemplateString(v,_,l._d3locale,T,f,S)}var C=f.tp||t.textposition,E=GE(f,t),L=i?i(f):f.tc||t.textfont.color;h.call(gr.font,{family:f.tf||t.textfont.family,weight:f.tw||t.textfont.weight,style:f.ty||t.textfont.style,variant:f.tv||t.textfont.variant,textcase:f.tC||t.textfont.textcase,lineposition:f.tE||t.textfont.lineposition,shadow:f.tS||t.textfont.shadow,size:E,color:L}).text(v).call(j_.convertToTspans,r).call(HE,C,E,f.mrc)})}};gr.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=gr.makeSelectedTextStyleFns(t);e.each(function(i){var a=to.select(this),s=r.selectedTextColorFn(i),l=i.tp||t.textposition,f=GE(i,t);Mo.fill(a,s);var h=X_.traceIs(t,"bar-like");HE(a,l,f,i.mrc2||i.mrc,h)})}};var DE=.5;gr.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],i=[],a;for(a=1;a=h||I>=m&&I<=h)&&(O<=_&&O>=v||O>=_&&O<=v)&&(e=[I,O])}return e}gr.applyBackoff=WE;gr.makeTester=function(){var e=xi.ensureSingleById(to.select("body"),"svg","js-plotly-tester",function(r){r.attr(mee.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=xi.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});gr.tester=e,gr.testref=t};gr.savedBBoxes={};var c5=0,Eee=1e4;gr.bBox=function(e,t,r){r||(r=PE(e));var i;if(r){if(i=gr.savedBBoxes[r],i)return xi.extendFlat({},i)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(r=PE(a),r){var s=+a.getAttribute("x")||0,l=+a.getAttribute("y")||0,f=a.getAttribute("transform");if(!f){var h=gr.bBox(a,!1,r);return s&&(h.left+=s,h.right+=s),l&&(h.top+=l,h.bottom+=l),h}if(r+="~"+s+"~"+l+"~"+f,i=gr.savedBBoxes[r],i)return xi.extendFlat({},i)}}var v,m;t?v=e:(m=gr.tester.node(),v=e.cloneNode(!0),m.appendChild(v)),to.select(v).attr("transform",null).call(j_.positionText,0,0);var _=v.getBoundingClientRect(),T=gr.testref.node().getBoundingClientRect();t||m.removeChild(v);var S={height:_.height,width:_.width,left:_.left-T.left,top:_.top-T.top,right:_.right-T.left,bottom:_.bottom-T.top};return c5>=Eee&&(gr.savedBBoxes={},c5=0),r&&(gr.savedBBoxes[r]=S),c5++,xi.extendFlat({},S)};function PE(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}gr.setClipUrl=function(e,t,r){e.attr("clip-path",p5(t,r))};function p5(e,t){if(!e)return null;var r=t._context,i=r._exportedPlot?"":r._baseUrl||"";return i?"url('"+i+"#"+e+"')":"url(#"+e+")"}gr.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(s,l,f){return[l,f].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};gr.setTranslate=function(e,t,r){var i=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",s=e.attr?"attr":"setAttribute",l=e[a]("transform")||"";return t=t||0,r=r||0,l=l.replace(i,"").trim(),l+=jy(t,r),l=l.trim(),e[s]("transform",l),l};gr.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(s,l,f){return[l,f].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};gr.setScale=function(e,t,r){var i=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",s=e.attr?"attr":"setAttribute",l=e[a]("transform")||"";return t=t||1,r=r||1,l=l.replace(i,"").trim(),l+="scale("+t+","+r+")",l=l.trim(),e[s]("transform",l),l};var Lee=/\s*sc.*/;gr.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var i=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(Lee,"");a+=i,a=a.trim(),this.setAttribute("transform",a)})}};var Dee=/translate\([^)]*\)\s*$/;gr.setTextPointsScale=function(e,t,r){e&&e.each(function(){var i,a=to.select(this),s=a.select("text");if(s.node()){var l=parseFloat(s.attr("x")||0),f=parseFloat(s.attr("y")||0),h=(a.attr("transform")||"").match(Dee);t===1&&r===1?i=[]:i=[jy(l,f),"scale("+t+","+r+")",jy(-l,-f)],h&&i.push(h),a.attr("transform",i.join(""))}})};function m5(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}gr.getMarkerStandoff=m5;var Xy=Math.atan2,vd=Math.cos,P0=Math.sin;function zE(e,t){var r=t[0],i=t[1];return[r*vd(e)-i*P0(e),r*P0(e)+i*vd(e)]}var IE,RE,FE,qE,h5,v5;function y5(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||xi.isArrayOrTypedArray(r))&&(r=0));var i,a,s=t.marker.angleref;if(s==="previous"||s==="north"){if(t._geo){var l=t._geo.project(e.lonlat);i=l[0],a=l[1]}else{var f=t._xA,h=t._yA;if(f&&h)i=f.c2p(e.x),a=h.c2p(e.y);else return 90}if(t._geo){var v=e.lonlat[0],m=e.lonlat[1],_=t._geo.project([v,m+1e-5]),T=t._geo.project([v+1e-5,m]),S=Xy(T[1]-a,T[0]-i),C=Xy(_[1]-a,_[0]-i),E;if(s==="north")E=r/180*Math.PI;else if(s==="previous"){var L=v/180*Math.PI,z=m/180*Math.PI,B=IE/180*Math.PI,q=RE/180*Math.PI,I=B-L,O=vd(q)*P0(I),H=P0(q)*vd(z)-vd(q)*P0(z)*vd(I);E=-Xy(O,H)-Math.PI,IE=v,RE=m}var V=zE(S,[vd(E),0]),W=zE(C,[P0(E),0]);r=Xy(V[1]+W[1],V[0]+W[0])/Math.PI*180,s==="previous"&&!(v5===t.uid&&e.i===h5+1)&&(r=null)}if(s==="previous"&&!t._geo)if(v5===t.uid&&e.i===h5+1&&md(i)&&md(a)){var J=i-FE,te=a-qE,ne=t.line&&t.line.shape||"",oe=ne.slice(ne.length-1);oe==="h"&&(te=0),oe==="v"&&(J=0),r+=Xy(te,J)/Math.PI*180+90}else r=null}return FE=i,qE=a,h5=e.i,v5=t.uid,r}gr.getMarkerAngle=y5});var Jy=me((t1e,QE)=>{"use strict";var z0=Ja(),Pee=Da(),zee=eo(),g5=la(),yd=Bt(),jE=yd.strTranslate,J_=bi(),K_=Oa(),I0=co(),JE=n_(),Iee=ts().OPPOSITE_SIDE,KE=/ [XY][0-9]* /,_5=1.6,x5=1.6;function Ree(e,t,r){var i=e._fullLayout,a=r.propContainer,s=r.propName,l=r.placeholder,f=r.traceIndex,h=r.avoid||{},v=r.attributes,m=r.transform,_=r.containerGroup,T=1,S=a.title,C=(S&&S.text?S.text:"").trim(),E=!1,L=S&&S.font?S.font:{},z=L.family,B=L.size,q=L.color,I=L.weight,O=L.style,H=L.variant,V=L.textcase,W=L.lineposition,J=L.shadow,te=r.subtitlePropName,ne=!!te,oe=r.subtitlePlaceholder,fe=(a.title||{}).subtitle||{text:"",font:{}},ve=(fe.text||"").trim(),Se=!1,Me=1,Ae=fe.font,we=Ae.family,Te=Ae.size,Ce=Ae.color,Le=Ae.weight,$e=Ae.style,lt=Ae.variant,it=Ae.textcase,gt=Ae.lineposition,We=Ae.shadow,Et;s==="title.text"?Et="titleText":s.indexOf("axis")!==-1?Et="axisTitleText":s.indexOf("colorbar")!==-1&&(Et="colorbarTitleText");var nt=e._context.edits[Et];function wt(Gt,Ct){return Gt===void 0||Ct===void 0?!1:Gt.replace(KE," % ")===Ct.replace(KE," % ")}C===""?T=0:wt(C,l)&&(nt||(C=""),T=.2,E=!0),ne&&(ve===""?Me=0:wt(ve,oe)&&(nt||(ve=""),Me=.2,Se=!0)),r._meta?C=yd.templateString(C,r._meta):i._meta&&(C=yd.templateString(C,i._meta));var xt=C||ve||nt,vt;_||(_=yd.ensureSingle(i._infolayer,"g","g-"+t),vt=i._hColorbarMoveTitle);var de=_.selectAll("text."+t).data(xt?[0]:[]);de.enter().append("text"),de.text(C).attr("class",t),de.exit().remove();var ze=null,pe=t+"-subtitle",at=ve||nt;if(ne&&(ze=_.selectAll("text."+pe).data(at?[0]:[]),ze.enter().append("text"),ze.text(ve).attr("class",pe),ze.exit().remove()),!xt)return _;function mt(Gt,Ct){yd.syncOrAsync([Xe,Ft],{title:Gt,subtitle:Ct})}function Xe(Gt){var Ct=Gt.title,Mt=Gt.subtitle,Ut;!m&&vt&&(m={}),m?(Ut="",m.rotate&&(Ut+="rotate("+[m.rotate,v.x,v.y]+")"),(m.offset||vt)&&(Ut+=jE(0,(m.offset||0)-(vt||0)))):Ut=null,Ct.attr("transform",Ut);function Ot(Oe){if(Oe){var yt=z0.select(Oe.node().parentNode).select("."+pe);if(!yt.empty()){var qt=Oe.node().getBBox();if(qt.height){var Qt=qt.y+qt.height+_5*Te;yt.attr("y",Qt)}}}}if(Ct.style("opacity",T*K_.opacity(q)).call(J_.font,{color:K_.rgb(q),size:z0.round(B,2),family:z,weight:I,style:O,variant:H,textcase:V,shadow:J,lineposition:W}).attr(v).call(I0.convertToTspans,e,Ot),Mt&&!Mt.empty()){var Be=_.select("."+t+"-math-group"),ft=Ct.node().getBBox(),or=Be.node()?Be.node().getBBox():void 0,Cr=or?or.y+or.height+_5*Te:ft.y+ft.height+x5*Te,Sr=yd.extendFlat({},v,{y:Cr});Mt.attr("transform",Ut),Mt.style("opacity",Me*K_.opacity(Ce)).call(J_.font,{color:K_.rgb(Ce),size:z0.round(Te,2),family:we,weight:Le,style:$e,variant:lt,textcase:it,shadow:We,lineposition:gt}).attr(Sr).call(I0.convertToTspans,e)}return zee.previousPromises(e)}function Ft(Gt){var Ct=Gt.title,Mt=z0.select(Ct.node().parentNode);if(h&&h.selection&&h.side&&C){Mt.attr("transform",null);var Ut=Iee[h.side],Ot=h.side==="left"||h.side==="top"?-1:1,Be=Pee(h.pad)?h.pad:2,ft=J_.bBox(Mt.node()),or={t:0,b:0,l:0,r:0},Cr=e._fullLayout._reservedMargin;for(var Sr in Cr)for(var Oe in Cr[Sr]){var yt=Cr[Sr][Oe];or[Oe]=Math.max(or[Oe],yt)}var qt={left:or.l,top:or.t,right:i.width-or.r,bottom:i.height-or.b},Qt=h.maxShift||Ot*(qt[h.side]-ft[h.side]),Vt=0;if(Qt<0)Vt=Qt;else{var tr=h.offsetLeft||0,ar=h.offsetTop||0;ft.left-=tr,ft.right-=tr,ft.top-=ar,ft.bottom-=ar,h.selection.each(function(){var lr=J_.bBox(this);yd.bBoxIntersect(ft,lr,Be)&&(Vt=Math.max(Vt,Ot*(lr[h.side]-ft[Ut])+Be))}),Vt=Math.min(Qt,Vt),a._titleScoot=Math.abs(Vt)}if(Vt>0||Qt<0){var zr={left:[-Vt,0],right:[Vt,0],top:[0,-Vt],bottom:[0,Vt]}[h.side];Mt.attr("transform",jE(zr[0],zr[1]))}}}de.call(mt,ze);function Lt(Gt,Ct){Gt.text(Ct).on("mouseover.opacity",function(){z0.select(this).transition().duration(JE.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){z0.select(this).transition().duration(JE.HIDE_PLACEHOLDER).style("opacity",0)})}if(nt&&(C?de.on(".opacity",null):(Lt(de,l),E=!0),de.call(I0.makeEditable,{gd:e}).on("edit",function(Gt){f!==void 0?g5.call("_guiRestyle",e,s,Gt,f):g5.call("_guiRelayout",e,s,Gt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(mt)}).on("input",function(Gt){this.text(Gt||" ").call(I0.positionText,v.x,v.y)}),ne)){if(ne&&!C){var Tt=de.node().getBBox(),It=Tt.y+Tt.height+x5*Te;ze.attr("y",It)}ve?ze.on(".opacity",null):(Lt(ze,oe),Se=!0),ze.call(I0.makeEditable,{gd:e}).on("edit",function(Gt){g5.call("_guiRelayout",e,"title.subtitle.text",Gt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(mt)}).on("input",function(Gt){this.text(Gt||" ").call(I0.positionText,ze.attr("x"),ze.attr("y"))})}return de.classed("js-placeholder",E),ze&&!ze.empty()&&ze.classed("js-placeholder",Se),_}QE.exports={draw:Ree,SUBTITLE_PADDING_EM:x5,SUBTITLE_PADDING_MATHJAX_EM:_5}});var n2=me((r1e,aL)=>{"use strict";var Fee=Ja(),qee=s0().utcFormat,Fi=Bt(),Nee=Fi.numberFormat,Ef=Da(),Fh=Fi.cleanNumber,Bee=Fi.ms2DateTime,$E=Fi.dateTime2ms,Lf=Fi.ensureNumber,eL=Fi.isArrayOrTypedArray,qh=Zi(),Q_=qh.FP_SAFE,qu=qh.BADNUM,Oee=qh.LOG_CLIP,Uee=qh.ONEWEEK,$_=qh.ONEDAY,e2=qh.ONEHOUR,tL=qh.ONEMIN,rL=qh.ONESEC,t2=Xn(),i2=Ao(),r2=i2.HOUR_PATTERN,a2=i2.WEEKDAY_PATTERN;function Ky(e){return Math.pow(10,e)}function b5(e){return e!=null}aL.exports=function(t,r){r=r||{};var i=t._id||"x",a=i.charAt(0);function s(I,O){if(I>0)return Math.log(I)/Math.LN10;if(I<=0&&O&&t.range&&t.range.length===2){var H=t.range[0],V=t.range[1];return .5*(H+V-2*Oee*Math.abs(H-V))}else return qu}function l(I,O,H,V){if((V||{}).msUTC&&Ef(I))return+I;var W=$E(I,H||t.calendar);if(W===qu)if(Ef(I)){I=+I;var J=Math.floor(Fi.mod(I+.05,1)*10),te=Math.round(I-J/10);W=$E(new Date(te))+J/10}else return qu;return W}function f(I,O,H){return Bee(I,O,H||t.calendar)}function h(I){return t._categories[Math.round(I)]}function v(I){if(b5(I)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[I]!==void 0)return t._categoriesMap[I];t._categories.push(typeof I=="number"?String(I):I);var O=t._categories.length-1;return t._categoriesMap[I]=O,O}return qu}function m(I,O){for(var H=new Array(O),V=0;Vt.range[1]&&(H=!H);for(var V=H?-1:1,W=V*I,J=0,te=0;teoe)J=te+1;else{J=W<(ne+oe)/2?te:te+1;break}}var fe=t._B[J]||0;return isFinite(fe)?C(I,t._m2,fe):0},z=function(I){var O=t._rangebreaks.length;if(!O)return E(I,t._m,t._b);for(var H=0,V=0;Vt._rangebreaks[V].pmax&&(H=V+1);return E(I,t._m2,t._B[H])}}t.c2l=t.type==="log"?s:Lf,t.l2c=t.type==="log"?Ky:Lf,t.l2p=L,t.p2l=z,t.c2p=t.type==="log"?function(I,O){return L(s(I,O))}:L,t.p2c=t.type==="log"?function(I){return Ky(z(I))}:z,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=Fh,t.c2d=t.c2r=t.l2d=t.l2r=Lf,t.d2p=t.r2p=function(I){return t.l2p(Fh(I))},t.p2d=t.p2r=z,t.cleanPos=Lf):t.type==="log"?(t.d2r=t.d2l=function(I,O){return s(Fh(I),O)},t.r2d=t.r2c=function(I){return Ky(Fh(I))},t.d2c=t.r2l=Fh,t.c2d=t.l2r=Lf,t.c2r=s,t.l2d=Ky,t.d2p=function(I,O){return t.l2p(t.d2r(I,O))},t.p2d=function(I){return Ky(z(I))},t.r2p=function(I){return t.l2p(Fh(I))},t.p2r=z,t.cleanPos=Lf):t.type==="date"?(t.d2r=t.r2d=Fi.identity,t.d2c=t.r2c=t.d2l=t.r2l=l,t.c2d=t.c2r=t.l2d=t.l2r=f,t.d2p=t.r2p=function(I,O,H){return t.l2p(l(I,0,H))},t.p2d=t.p2r=function(I,O,H){return f(z(I),O,H)},t.cleanPos=function(I){return Fi.cleanDate(I,qu,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=v,t.r2d=t.c2d=t.l2d=h,t.d2r=t.d2l_noadd=T,t.r2c=function(I){var O=S(I);return O!==void 0?O:t.fraction2r(.5)},t.l2r=t.c2r=Lf,t.r2l=S,t.d2p=function(I){return t.l2p(t.r2c(I))},t.p2d=function(I){return h(z(I))},t.r2p=t.d2p,t.p2r=z,t.cleanPos=function(I){return typeof I=="string"&&I!==""?I:Lf(I)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=h,t.d2r=t.d2l_noadd=T,t.r2c=function(I){var O=T(I);return O!==void 0?O:t.fraction2r(.5)},t.r2c_just_indices=_,t.l2r=t.c2r=Lf,t.r2l=T,t.d2p=function(I){return t.l2p(t.r2c(I))},t.p2d=function(I){return h(z(I))},t.r2p=t.d2p,t.p2r=z,t.cleanPos=function(I){return Array.isArray(I)||typeof I=="string"&&I!==""?I:Lf(I)},t.setupMultiCategory=function(I){var O=t._traceIndices,H,V,W=t._matchGroup;if(W&&t._categories.length===0){for(var J in W)if(J!==i){var te=r[t2.id2name(J)];O=O.concat(te._traceIndices)}}var ne=[[0,{}],[0,{}]],oe=[];for(H=0;Hte[1]&&(V[J?0:1]=H),V[0]===V[1]){var ne=t.l2r(O),oe=t.l2r(H);if(O!==void 0){var fe=ne+1;H!==void 0&&(fe=Math.min(fe,oe)),V[J?1:0]=fe}if(H!==void 0){var ve=oe+1;O!==void 0&&(ve=Math.max(ve,ne)),V[J?0:1]=ve}}}},t.cleanRange=function(I,O){t._cleanRange(I,O),t.limitRange(I)},t._cleanRange=function(I,O){O||(O={}),I||(I="range");var H=Fi.nestedProperty(t,I).get(),V,W;if(t.type==="date"?W=Fi.dfltRange(t.calendar):a==="y"?W=i2.DFLTRANGEY:t._name==="realaxis"?W=[0,1]:W=O.dfltRange||i2.DFLTRANGEX,W=W.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(W[0]=0),!H||H.length!==2){Fi.nestedProperty(t,I).set(W);return}var J=H[0]===null,te=H[1]===null;for(t.type==="date"&&!t.autorange&&(H[0]=Fi.cleanDate(H[0],qu,t.calendar),H[1]=Fi.cleanDate(H[1],qu,t.calendar)),V=0;V<2;V++)if(t.type==="date"){if(!Fi.isDateTime(H[V],t.calendar)){t[I]=W;break}if(t.r2l(H[0])===t.r2l(H[1])){var ne=Fi.constrain(t.r2l(H[0]),Fi.MIN_MS+1e3,Fi.MAX_MS-1e3);H[0]=t.l2r(ne-1e3),H[1]=t.l2r(ne+1e3);break}}else{if(!Ef(H[V]))if(!(J||te)&&Ef(H[1-V]))H[V]=H[1-V]*(V?10:.1);else{t[I]=W;break}if(H[V]<-Q_?H[V]=-Q_:H[V]>Q_&&(H[V]=Q_),H[0]===H[1]){var oe=Math.max(1,Math.abs(H[0]*1e-6));H[0]-=oe,H[1]+=oe}}},t.setScale=function(I){var O=r._size;if(t.overlaying){var H=t2.getFromId({_fullLayout:r},t.overlaying);t.domain=H.domain}var V=I&&t._r?"_r":"range",W=t.calendar;t.cleanRange(V);var J=t.r2l(t[V][0],W),te=t.r2l(t[V][1],W),ne=a==="y";if(ne?(t._offset=O.t+(1-t.domain[1])*O.h,t._length=O.h*(t.domain[1]-t.domain[0]),t._m=t._length/(J-te),t._b=-t._m*te):(t._offset=O.l+t.domain[0]*O.w,t._length=O.w*(t.domain[1]-t.domain[0]),t._m=t._length/(te-J),t._b=-t._m*J),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var oe,fe;if(t._rangebreaks=t.locateBreaks(Math.min(J,te),Math.max(J,te)),t._rangebreaks.length){for(oe=0;oete&&(ve=!ve),ve&&t._rangebreaks.reverse();var Se=ve?-1:1;for(t._m2=Se*t._length/(Math.abs(te-J)-t._lBreaks),t._B.push(-t._m2*(ne?te:J)),oe=0;oeW&&(W+=7,JW&&(W+=24,J=V&&J=V&&I=We.min&&($eWe.max&&(We.max=lt),it=!1)}it&&te.push({min:$e,max:lt})}};for(H=0;H{"use strict";var iL=Da(),w5=Bt(),Vee=Zi().BADNUM,o2=w5.isArrayOrTypedArray,Hee=w5.isDateTime,Gee=w5.cleanNumber,nL=Math.round;sL.exports=function(t,r,i){var a=t,s=i.noMultiCategory;if(o2(a)&&!a.length)return"-";if(!s&&jee(a))return"multicategory";if(s&&Array.isArray(a[0])){for(var l=[],f=0;fs*2}function oL(e){return Math.max(1,(e-1)/1e3)}function Xee(e,t){for(var r=e.length,i=oL(r),a=0,s=0,l={},f=0;fa*2}function jee(e){return o2(e[0])&&o2(e[1])}});var Qy=me((i1e,pL)=>{"use strict";var Jee=Ja(),cL=Da(),Nh=Bt(),s2=Zi().FP_SAFE,Kee=la(),Qee=bi(),hL=Xn(),$ee=hL.getFromId,ete=hL.isLinked;pL.exports={applyAutorangeOptions:dL,getAutoRange:A5,makePadFn:M5,doAutoRange:rte,findExtremes:ate,concatExtremes:C5};function A5(e,t){var r,i,a=[],s=e._fullLayout,l=M5(s,t,0),f=M5(s,t,1),h=C5(e,t),v=h.min,m=h.max;if(v.length===0||m.length===0)return Nh.simpleMap(t.range,t.r2l);var _=v[0].val,T=m[0].val;for(r=1;r0&&(te=q-l(H)-f(V),te>I?ne/te>O&&(W=H,J=V,O=ne/te):ne/q>O&&(W={val:H.val,nopad:1},J={val:V.val,nopad:1},O=ne/q));function oe(Ae,we){return Math.max(Ae,f(we))}if(_===T){var fe=_-1,ve=_+1;if(z)if(_===0)a=[0,1];else{var Se=(_>0?m:v).reduce(oe,0),Me=_/(1-Math.min(.5,Se/q));a=_>0?[0,Me]:[Me,0]}else B?a=[Math.max(0,fe),Math.max(1,ve)]:a=[fe,ve]}else z?(W.val>=0&&(W={val:0,nopad:1}),J.val<=0&&(J={val:0,nopad:1})):B&&(W.val-O*l(W)<0&&(W={val:0,nopad:1}),J.val<=0&&(J={val:1,nopad:1})),O=(J.val-W.val-lL(t,H.val,V.val))/(q-l(W)-f(J)),a=[W.val-O*l(W),J.val+O*f(J)];return a=dL(a,t),t.limitRange&&t.limitRange(),C&&a.reverse(),Nh.simpleMap(a,t.l2r||Number)}function lL(e,t,r){var i=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,r),s=0;s0?r.ppadplus:r.ppadminus)||r.ppad||0),H=I((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),V=I(r.vpadplus||r.vpad),W=I(r.vpadminus||r.vpad);if(!v){if(B=1/0,q=-1/0,h)for(_=0;_0&&(B=T),T>q&&T-s2&&(B=T),T>q&&T=ne;_--)te(_);return{min:i,max:a,opts:r}}function S5(e,t,r,i){vL(e,t,r,i,ite)}function k5(e,t,r,i){vL(e,t,r,i,nte)}function vL(e,t,r,i,a){for(var s=i.tozero,l=i.extrapad,f=!0,h=0;h=r&&(v.extrapad||!l)){f=!1;break}else a(t,v.val)&&v.pad<=r&&(l||!v.extrapad)&&(e.splice(h,1),h--)}if(f){var m=s&&t===0;e.push({val:t,pad:m?0:r,extrapad:m?!1:l})}}function fL(e){return cL(e)&&Math.abs(e)=t}function ote(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&l2(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&l2(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function ste(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&l2(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&l2(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function l2(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=h&&(s=h,r=h),l<=h&&(l=h,i=h)}}return r=ote(r,t),i=ste(i,t),[r,i]}});var Xi=me((n1e,NL)=>{"use strict";var Xl=Ja(),Bn=Da(),R0=eo(),eg=la(),$r=Bt(),F0=$r.strTranslate,gd=co(),lte=Jy(),tg=Oa(),sl=bi(),ute=Fu(),mL=Zw(),So=Zi(),fte=So.ONEMAXYEAR,c2=So.ONEAVGYEAR,h2=So.ONEMINYEAR,cte=So.ONEMAXQUARTER,P5=So.ONEAVGQUARTER,v2=So.ONEMINQUARTER,hte=So.ONEMAXMONTH,q0=So.ONEAVGMONTH,d2=So.ONEMINMONTH,ll=So.ONEWEEK,as=So.ONEDAY,Bh=as/2,Pf=So.ONEHOUR,rg=So.ONEMIN,p2=So.ONESEC,vte=So.ONEMILLI,dte=So.ONEMICROSEC,_d=So.MINUS_SIGN,y2=So.BADNUM,z5={K:"zeroline"},I5={K:"gridline",L:"path"},R5={K:"minor-gridline",L:"path"},kL={K:"tick",L:"path"},yL={K:"tick",L:"text"},gL={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},g2=ts(),$y=g2.MID_SHIFT,xd=g2.CAP_SHIFT,ag=g2.LINE_SPACING,pte=g2.OPPOSITE_SIDE,m2=3,Kt=NL.exports={};Kt.setConvert=n2();var mte=T5(),wc=Xn(),yte=wc.idSort,gte=wc.isLinked;Kt.id2name=wc.id2name;Kt.name2id=wc.name2id;Kt.cleanId=wc.cleanId;Kt.list=wc.list;Kt.listIds=wc.listIds;Kt.getFromId=wc.getFromId;Kt.getFromTrace=wc.getFromTrace;var CL=Qy();Kt.getAutoRange=CL.getAutoRange;Kt.findExtremes=CL.findExtremes;var _te=1e-4;function B5(e){var t=(e[1]-e[0])*_te;return[e[0]-t,e[1]+t]}Kt.coerceRef=function(e,t,r,i,a,s){var l=i.charAt(i.length-1),f=r._fullLayout._subplots[l+"axis"],h=i+"ref",v={};return a||(a=f[0]||(typeof s=="string"?s:s[0])),s||(s=a),f=f.concat(f.map(function(m){return m+" domain"})),v[h]={valType:"enumerated",values:f.concat(s?typeof s=="string"?[s]:s:[]),dflt:a},$r.coerce(e,t,v,h)};Kt.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Kt.coercePosition=function(e,t,r,i,a,s){var l,f,h=Kt.getRefType(i);if(h!=="range")l=$r.ensureNumber,f=r(a,s);else{var v=Kt.getFromId(t,i);s=v.fraction2r(s),f=r(a,s),l=v.cleanPos}e[a]=l(f)};Kt.cleanPosition=function(e,t,r){var i=r==="paper"||r==="pixel"?$r.ensureNumber:Kt.getFromId(t,r).cleanPos;return i(e)};Kt.redrawComponents=function(e,t){t=t||Kt.listIds(e);var r=e._fullLayout;function i(a,s,l,f){for(var h=eg.getComponentMethod(a,s),v={},m=0;m2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Kt.saveRangeInitial=function(e,t){for(var r=Kt.list(e,"",!0),i=!1,a=0;a_*.3||v(i)||v(a))){var T=r.dtick/2;e+=e+Tl){var f=Number(r.substr(1));s.exactYears>l&&f%12===0?e=Kt.tickIncrement(e,"M6","reverse")+as*1.5:s.exactMonths>l?e=Kt.tickIncrement(e,"M1","reverse")+as*15.5:e-=Bh;var h=Kt.tickIncrement(e,r);if(h<=i)return h}return e}Kt.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var i=t.dtick&&Bn(t._tmin),a;if(i){var s=Kt.tickIncrement(t._tmin,t.dtick,!0);a=[t._tmin,s*.99+t._tmin*.01]}else{var l=$r.simpleMap(t.range,t.r2l);a=[l[0],.8*l[0]+.2*l[1]]}if(e.range=$r.simpleMap(a,t.l2r),e._isMinor=!0,Kt.prepTicks(e,r),i){var f=Bn(t.dtick),h=Bn(e.dtick),v=f?t.dtick:+t.dtick.substring(1),m=h?e.dtick:+e.dtick.substring(1);f&&h?E5(v,m)?v===2*ll&&m===2*as&&(e.dtick=ll):v===2*ll&&m===3*as?e.dtick=ll:v===ll&&!(t._input.minor||{}).nticks?e.dtick=as:bL(v/m,2.5)?e.dtick=v/2:e.dtick=v:String(t.dtick).charAt(0)==="M"?h?e.dtick="M1":E5(v,m)?v>=12&&m===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?E5(v,m)||(e.dtick=bL(v/m,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function E5(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function bL(e,t){return Math.abs(e/t-1)<.001}Kt.prepTicks=function(e,t){var r=$r.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var i=e.nticks,a;i||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?$r.bigFont(e.tickfont.size||12):15,i=e._length/a):(a=e._id.charAt(0)==="y"?40:80,i=$r.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(i*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,Kt.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(s=i-1,l=i):(s=i,l=i);var f=e[s].value,h=e[l].value,v=Math.abs(h-f),m=r||v,_=0;m>=h2?v>=h2&&v<=fte?_=v:_=c2:r===P5&&m>=v2?v>=v2&&v<=cte?_=v:_=P5:m>=d2?v>=d2&&v<=hte?_=v:_=q0:r===ll&&m>=ll?_=ll:m>=as?_=as:r===Bh&&m>=Bh?_=Bh:r===Pf&&m>=Pf&&(_=Pf);var T;_>=v&&(_=v,T=!0);var S=a+_;if(t.rangebreaks&&_>0){for(var C=84,E=0,L=0;Lll&&(_=v)}(_>0||i===0)&&(e[i].periodX=a+_/2)}}Kt.calcTicks=function(t,r){for(var i=t.type,a=t.calendar,s=t.ticklabelstep,l=t.ticklabelmode==="period",f=t.range[0]>t.range[1],h=!t.ticklabelindex||$r.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],v=$r.simpleMap(t.range,t.r2l,void 0,void 0,r),m=v[1]=(q?0:1);I--){var O=!I;I?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var H=I?t:$r.extendFlat({},t,t.minor);if(O?Kt.prepMinorTicks(H,t,r):Kt.prepTicks(H,r),H.tickmode==="array"){I?(L=[],C=wL(t,!O)):(z=[],E=wL(t,!O));continue}if(H.tickmode==="sync"){L=[],C=Mte(t);continue}var V=B5(v),W=V[0],J=V[1],te=Bn(H.dtick),ne=i==="log"&&!(te||H.dtick.charAt(0)==="L"),oe=Kt.tickFirst(H,r);if(I){if(t._tmin=oe,oe=J:ve<=J;ve=Kt.tickIncrement(ve,Ae,m,a)){if(I&&Se++,H.rangebreaks&&!m){if(ve=T)break}if(L.length>S||ve===fe)break;fe=ve;var we={value:ve};I?(ne&&ve!==(ve|0)&&(we.simpleLabel=!0),s>1&&Se%s&&(we.skipLabel=!0),L.push(we)):(we.minor=!0,z.push(we))}}if(!z||z.length<2)h=!1;else{var Te=(z[1].value-z[0].value)*(f?-1:1);Jte(Te,t.tickformat)||(h=!1)}if(!h)B=L;else{var Ce=L.concat(z);l&&L.length&&(Ce=Ce.slice(1)),Ce=Ce.sort(function(It,Gt){return It.value-Gt.value}).filter(function(It,Gt,Ct){return Gt===0||It.value!==Ct[Gt-1].value});var Le=Ce.map(function(It,Gt){return It.minor===void 0&&!It.skipLabel?Gt:null}).filter(function(It){return It!==null});Le.forEach(function(It){h.map(function(Gt){var Ct=It+Gt;Ct>=0&&Ct-1;xt--){if(L[xt].drop){L.splice(xt,1);continue}L[xt].value=D5(L[xt].value,t);var pe=t.c2p(L[xt].value);(vt?ze>pe-de:zeT||Mt<_)&&(Mt>T&&(Ct.periodX=T),Mt<_&&(Ct.periodX=_),mt(Ct))),Ct}var Ft;for(xt=0;xta&&Tc2)t/=c2,i=a(10),e.dtick="M"+12*Df(t,i,u2);else if(s>q0)t/=q0,e.dtick="M"+Df(t,1,TL);else if(s>as){if(e.dtick=Df(t,as,e._hasDayOfWeekBreaks?[1,2,7,14]:Ste),!r){var l=Kt.getTickFormat(e),f=e.ticklabelmode==="period";f&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=$r.dateTick0(e.calendar,2):e.tick0=$r.dateTick0(e.calendar,1),f&&(e._dowTick0=e.tick0)}}else s>Pf?e.dtick=Df(t,Pf,TL):s>rg?e.dtick=Df(t,rg,AL):s>p2?e.dtick=Df(t,p2,AL):(i=a(10),e.dtick=Df(t,i,u2))}else if(e.type==="log"){e.tick0=0;var h=$r.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(h[1]-h[0])<1){var v=1.5*Math.abs((h[1]-h[0])/t);t=Math.abs(Math.pow(10,h[1])-Math.pow(10,h[0]))/v,i=a(10),e.dtick="L"+Df(t,i,u2)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):H5(e)?(e.tick0=0,i=1,e.dtick=Df(t,i,kte)):(e.tick0=0,i=a(10),e.dtick=Df(t,i,u2));if(e.dtick===0&&(e.dtick=1),!Bn(e.dtick)&&typeof e.dtick!="string"){var m=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(m)}};function PL(e){var t=e.dtick;if(e._tickexponent=0,!Bn(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),i=e.l2r(r).replace(/(^-|i)/g,""),a=i.length;if(String(t).charAt(0)==="M")a>10||i.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=as&&a<=10||t>=as*15)e._tickround="d";else if(t>=rg&&a<=16||t>=Pf)e._tickround="M";else if(t>=p2&&a<=19||t>=rg)e._tickround="S";else{var s=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(a,s)-20,e._tickround<0&&(e._tickround=4)}}else if(Bn(t)||t.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Bn(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var f=Math.max(Math.abs(l[0]),Math.abs(l[1])),h=Math.floor(Math.log(f)/Math.LN10+.01),v=e.minexponent===void 0?3:e.minexponent;Math.abs(h)>v&&(N0(e.exponentformat)&&e.exponentformat!=="SI extended"&&!O5(h)||N0(e.exponentformat)&&e.exponentformat==="SI extended"&&!U5(h)?e._tickexponent=3*Math.round((h-1)/3):e._tickexponent=h)}else e._tickround=null}Kt.tickIncrement=function(e,t,r,i){var a=r?-1:1;if(Bn(t))return $r.increment(e,a*t);var s=t.charAt(0),l=a*Number(t.substr(1));if(s==="M")return $r.incrementMonth(e,l,i);if(s==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(s==="D"){var f=t==="D2"?DL:LL,h=e+a*.01,v=$r.roundUp($r.mod(h,1),f,r);return Math.floor(h)+Math.log(Xl.round(Math.pow(10,v),1))/Math.LN10}throw"unrecognized dtick "+String(t)};Kt.tickFirst=function(e,t){var r=e.r2l||Number,i=$r.simpleMap(e.range,r,void 0,void 0,t),a=i[1]=0&&z<=e._length?L:null};if(s&&$r.isArrayOrTypedArray(e.ticktext)){var _=$r.simpleMap(e.range,e.r2l),T=(Math.abs(_[1]-_[0])-(e._lBreaks||0))/1e4;for(v=0;v"+f;else{var v=ng(e),m=e._trueSide||e.side;(!v&&m==="top"||v&&m==="bottom")&&(l+="
")}t.text=l}function Ete(e,t,r,i,a){var s=e.dtick,l=t.x,f=e.tickformat,h=typeof s=="string"&&s.charAt(0);if(a==="never"&&(a=""),i&&h!=="L"&&(s="L3",h="L"),f||h==="L")t.text=ig(Math.pow(10,l),e,a,i);else if(Bn(s)||h==="D"&&(e.minorloglabels==="complete"||$r.mod(l+.01,1)<.1)){var v;e.minorloglabels==="complete"&&!($r.mod(l+.01,1)<.1)&&(v=!0,t.fontSize*=.75);var m=Math.pow(10,l).toExponential(0),_=m.split("e"),T=+_[1],S=Math.abs(T),C=e.exponentformat;C==="power"||N0(C)&&C!=="SI extended"&&O5(T)||N0(C)&&C==="SI extended"&&U5(T)?(t.text=_[0],S>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),T!==0&&T!==1&&(t.text+=""+(T>0?"":_d)+S+""),t.fontSize*=1.25):(C==="e"||C==="E")&&S>2?t.text=_[0]+C+(T>0?"+":_d)+S:(t.text=ig(Math.pow(10,l),e,"","fakehover"),s==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(h==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,$r.mod(l,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(s);if(e.dtick==="D1"){var E=String(t.text).charAt(0);(E==="0"||E==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(l<0?.5:.25)))}}function Lte(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function Dte(e,t,r){var i=Math.round(t.x),a=e._categories[i]||[],s=a[1]===void 0?"":String(a[1]),l=a[0]===void 0?"":String(a[0]);r?t.text=l+" - "+s:(t.text=s,t.text2=l)}function Pte(e,t,r,i,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=ig(t.x,e,a,i)}function zte(e,t,r,i,a){if(e.thetaunit==="radians"&&!r){var s=t.x/180;if(s===0)t.text="0";else{var l=Ite(s);if(l[1]>=100)t.text=ig($r.deg2rad(t.x),e,a,i);else{var f=t.x<0;l[1]===1?l[0]===1?t.text="\u03C0":t.text=l[0]+"\u03C0":t.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),f&&(t.text=_d+t.text)}}}else t.text=ig(t.x,e,a,i)}function Ite(e){function t(f,h){return Math.abs(f-h)<=1e-6}function r(f,h){return t(h,0)?f:r(h,f%h)}function i(f){for(var h=1;!t(Math.round(f*h)/h,f);)h*=10;return h}var a=i(e),s=e*a,l=Math.abs(r(s,a));return[Math.round(s/l),Math.round(a/l)]}var IL=["f","p","n","\u03BC","m","","k","M","G","T"],Rte=["q","r","y","z","a",...IL,"P","E","Z","Y","R","Q"],N0=e=>["SI","SI extended","B"].includes(e);function O5(e){return e>14||e<-15}function U5(e){return e>32||e<-30}function Fte(e,t){return N0(t)?!!(t==="SI extended"&&U5(e)||t!=="SI extended"&&O5(e)):!1}function ig(e,t,r,i){var a=e<0,s=t._tickround,l=r||t.exponentformat||"B",f=t._tickexponent,h=Kt.getTickFormat(t),v=t.separatethousands;if(i){var m={exponentformat:l,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Bn(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};PL(m),s=(Number(m._tickround)||0)+4,f=m._tickexponent,t.hoverformat&&(h=t.hoverformat)}if(h)return t._numFormat(h)(e).replace(/-/g,_d);var _=Math.pow(10,-s)/2;if(l==="none"&&(f=0),e=Math.abs(e),e<_)e="0",a=!1;else{if(e+=_,f&&(e*=Math.pow(10,-f),s+=f),s===0)e=String(Math.floor(e));else if(s<0){e=String(Math.round(e)),e=e.substr(0,e.length+s);for(var T=s;T<0;T++)e+="0"}else{e=String(e);var S=e.indexOf(".")+1;S&&(e=e.substr(0,S+s).replace(/\.?0+$/,""))}e=$r.numSeparate(e,t._separators,v)}if(f&&l!=="hide"){Fte(f,l)&&(l="power");var C;f<0?C=_d+-f:l!=="power"?C="+"+f:C=String(f),l==="e"||l==="E"?e+=l+C:l==="power"?e+="\xD710"+C+"":l==="B"&&f===9?e+="B":N0(l)&&(e+=l==="SI extended"?Rte[f/3+10]:IL[f/3+5])}return a?_d+e:e}Kt.getTickFormat=function(e){var t;function r(h){return typeof h!="string"?h:Number(h.replace("M",""))*q0}function i(h,v){var m=["L","D"];if(typeof h==typeof v){if(typeof h=="number")return h-v;var _=m.indexOf(h.charAt(0)),T=m.indexOf(v.charAt(0));return _===T?Number(h.replace(/(L|D)/g,""))-Number(v.replace(/(L|D)/g,"")):_-T}else return typeof h=="number"?1:-1}function a(h,v,m){var _=m||function(C){return C},T=v[0],S=v[1];return(!T&&typeof T!="number"||_(T)<=_(h))&&(!S&&typeof S!="number"||_(S)>=_(h))}function s(h,v){var m=v[0]===null,_=v[1]===null,T=i(h,v[0])>=0,S=i(h,v[1])<=0;return(m||T)&&(_||S)}var l,f;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&a.unshift(a.splice(m,1).shift())}});var f={false:{left:0,right:0}};return $r.syncOrAsync(a.map(function(h){return function(){if(h){var v=Kt.getFromId(e,h);r||(r={}),r.axShifts=f,r.overlayingShiftedAx=l;var m=Kt.drawOne(e,v,r);return v._shiftPusher&&N5(v,v._fullDepth||0,f,!0),v._r=v.range.slice(),v._rl=$r.simpleMap(v._r,v.r2l),m}}}))};Kt.drawOne=function(e,t,r){r=r||{};var i=r.axShifts||{},a=r.overlayingShiftedAx||[],s,l,f;t.setScale();var h=e._fullLayout,v=t._id,m=v.charAt(0),_=Kt.counterLetter(v),T=h._plots[t._mainSubplot],S=t.zerolinelayer==="above traces";if(!T)return;if(t._shiftPusher=t.autoshift||a.indexOf(t._id)!==-1||a.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var C=t.linewidth/2||0;t.ticks==="inside"&&(C+=t.ticklen),N5(t,C,i,!0),N5(t,t.shift||0,i,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=jte(t,i));var E=T[m+"axislayer"],L=t._mainLinePosition,z=L+=t._shift,B=t._mainMirrorPosition,q=t._vals=Kt.calcTicks(t),I=[t.mirror,z,B].join("_");for(s=0;s0?Mt.bottom-Gt:0,Ct))));var ft=0,or=0;if(t._shiftPusher&&(ft=Math.max(Ct,Mt.height>0?Tt==="l"?Gt-Mt.left:Mt.right-Gt:0),t.title.text!==h._dfltTitle[m]&&(or=(t._titleStandoff||0)+(t._titleScoot||0),Tt==="l"&&(or+=SL(t))),t._fullDepth=Math.max(ft,or)),t.automargin){Ut={x:0,y:0,r:0,l:0,t:0,b:0};var Cr=[0,1],Sr=typeof t._shift=="number"?t._shift:0;if(m==="x"){if(Tt==="b"?Ut[Tt]=t._depth:(Ut[Tt]=t._depth=Math.max(Mt.width>0?Gt-Mt.top:0,Ct),Cr.reverse()),Mt.width>0){var Oe=Mt.right-(t._offset+t._length);Oe>0&&(Ut.xr=1,Ut.r=Oe);var yt=t._offset-Mt.left;yt>0&&(Ut.xl=0,Ut.l=yt)}}else if(Tt==="l"?(t._depth=Math.max(Mt.height>0?Gt-Mt.left:0,Ct),Ut[Tt]=t._depth-Sr):(t._depth=Math.max(Mt.height>0?Mt.right-Gt:0,Ct),Ut[Tt]=t._depth+Sr,Cr.reverse()),Mt.height>0){var qt=Mt.bottom-(t._offset+t._length);qt>0&&(Ut.yb=0,Ut.b=qt);var Qt=t._offset-Mt.top;Qt>0&&(Ut.yt=1,Ut.t=Qt)}Ut[_]=t.anchor==="free"?t.position:t._anchorAxis.domain[Cr[0]],t.title.text!==h._dfltTitle[m]&&(Ut[Tt]+=SL(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Ot={x:0,y:0,r:0,l:0,t:0,b:0},Ot[It]=t.linewidth,t.mirror&&t.mirror!==!0&&(Ot[It]+=Ct),t.mirror===!0||t.mirror==="ticks"?Ot[_]=t._anchorAxis.domain[Cr[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Ot[_]=[t._counterDomainMin,t._counterDomainMax][Cr[1]]))}Lt&&(Be=eg.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(ML(Ut,t.automargin),ML(Ot,t.automargin)),R0.autoMargin(e,V5(t),Ut),R0.autoMargin(e,FL(t),Ot),R0.autoMargin(e,qL(t),Be)}),$r.syncOrAsync(Xe)}};function ML(e,t){if(e){var r=Object.keys(gL).reduce(function(i,a){return t.indexOf(a)!==-1&&gL[a].forEach(function(s){i[s]=1}),i},{});Object.keys(e).forEach(function(i){r[i]||(i.length===1?e[i]=0:delete e[i])})}}function qte(e,t){var r=[],i,a=function(s,l){var f=s.xbnd[l];f!==null&&r.push($r.extendFlat({},s,{x:f}))};if(t.length){for(i=0;ie.range[1],f=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,h=!f;if(r){var v=l?-1:1;r=r*v}if(i){var m=e.side,_=f&&(m==="top"||m==="left")||h&&(m==="bottom"||m==="right")?1:-1;i=i*_}return e._id.charAt(0)==="x"?function(T){return F0(a+e._offset+e.l2p(F5(T))+r,s+i)}:function(T){return F0(s+i,a+e._offset+e.l2p(F5(T))+r)}};function F5(e){return e.periodX!==void 0?e.periodX:e.x}function Ute(e){var t=e.ticklabelposition||"",r=e.tickson||"",i=function(C){return t.indexOf(C)!==-1},a=i("top"),s=i("left"),l=i("right"),f=i("bottom"),h=i("inside"),v=r!=="boundaries"&&(f||s||a||l);if(!v&&!h)return[0,0];var m=e.side,_=v?(e.tickwidth||0)/2:0,T=m2,S=e.tickfont?e.tickfont.size:12;return(f||a)&&(_+=S*xd,T+=(e.linewidth||0)/2),(s||l)&&(_+=(e.linewidth||0)/2,T+=m2),h&&m==="top"&&(T-=S*(1-xd)),(s||a)&&(_=-_),(m==="bottom"||m==="right")&&(T=-T),[v?_:0,h?T:0]}Kt.makeTickPath=function(e,t,r,i){i||(i={});var a=i.minor;if(a&&!e.minor)return"";var s=i.len!==void 0?i.len:a?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),f=(e.linewidth||1)/2;return l==="x"?"M0,"+(t+f*r)+"v"+s*r:"M"+(t+f*r)+",0h"+s*r};Kt.makeLabelFns=function(e,t,r){var i=e.ticklabelposition||"",a=e.tickson||"",s=function(fe){return i.indexOf(fe)!==-1},l=s("top"),f=s("left"),h=s("right"),v=s("bottom"),m=a!=="boundaries"&&(v||f||l||h),_=s("inside"),T=i==="inside"&&e.ticks==="inside"||!_&&e.ticks==="outside"&&a!=="boundaries",S=0,C=0,E=T?e.ticklen:0;if(_?E*=-1:m&&(E=0),T&&(S+=E,r)){var L=$r.deg2rad(r);S=E*Math.cos(L)+1,C=E*Math.sin(L)}e.showticklabels&&(T||e.showline)&&(S+=.2*e.tickfont.size),S+=(e.linewidth||1)/2*(_?-1:1);var z={labelStandoff:S,labelShift:C},B,q,I,O,H=0,V=e.side,W=e._id.charAt(0),J=e.tickangle,te;if(W==="x")te=!_&&V==="bottom"||_&&V==="top",O=te?1:-1,_&&(O*=-1),B=C*O,q=t+S*O,I=te?1:-.2,Math.abs(J)===90&&(_?I+=$y:J===-90&&V==="bottom"?I=xd:J===90&&V==="top"?I=$y:I=.5,H=$y/2*(J/90)),z.xFn=function(fe){return fe.dx+B+H*fe.fontSize},z.yFn=function(fe){return fe.dy+q+fe.fontSize*I},z.anchorFn=function(fe,ve){if(m){if(f)return"end";if(h)return"start"}return!Bn(ve)||ve===0||ve===180?"middle":ve*O<0!==_?"end":"start"},z.heightFn=function(fe,ve,Se){return ve<-60||ve>60?-.5*Se:e.side==="top"!==_?-Se:0};else if(W==="y"){if(te=!_&&V==="left"||_&&V==="right",O=te?1:-1,_&&(O*=-1),B=S,q=C*O,I=0,!_&&Math.abs(J)===90&&(J===-90&&V==="left"||J===90&&V==="right"?I=xd:I=.5),_){var ne=Bn(J)?+J:0;if(ne!==0){var oe=$r.deg2rad(ne);H=Math.abs(Math.sin(oe))*xd*O,I=0}}z.xFn=function(fe){return fe.dx+t-(B+fe.fontSize*I)*O+H*fe.fontSize},z.yFn=function(fe){return fe.dy+q+fe.fontSize*$y},z.anchorFn=function(fe,ve){return Bn(ve)&&Math.abs(ve)===90?"middle":te?"end":"start"},z.heightFn=function(fe,ve,Se){return e.side==="right"&&(ve*=-1),ve<-30?-Se:ve<30?-.5*Se:0}}return z};function _2(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Kt.drawTicks=function(e,t,r){r=r||{};var i=t._id+"tick",a=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(t.ticks?r.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),s=r.layer.selectAll("path."+i).data(a,_2);s.exit().remove(),s.enter().append("path").classed(i,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(l){return tg.stroke(Xl.select(this),l.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(l){return sl.crispRound(e,l.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),x2(t,[kL]),s.attr("transform",r.transFn)};Kt.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var i=t._id+"grid",a=t.minor&&t.minor.showgrid,s=a?r.vals.filter(function(z){return z.minor}):[],l=t.showgrid?r.vals.filter(function(z){return!z.minor}):[],f=r.counterAxis;if(f&&Kt.shouldShowZeroLine(e,t,f))for(var h=t.tickmode==="array",v=0;v=0;C--){var E=C?T:S;if(E){var L=E.selectAll("path."+i).data(C?l:s,_2);L.exit().remove(),L.enter().append("path").classed(i,1).classed("crisp",r.crisp!==!1),L.attr("transform",r.transFn).attr("d",r.path).each(function(z){return tg.stroke(Xl.select(this),z.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(z){return sl.dashStyle(z.minor?t.minor.griddash:t.griddash,z.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(z){return(z.minor?_:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&L.attr("d",r.path)}}x2(t,[I5,R5])}};Kt.drawZeroLine=function(e,t,r){r=r||r;var i=t._id+"zl",a=Kt.shouldShowZeroLine(e,t,r.counterAxis),s=r.layer.selectAll("path."+i).data(a?[{x:0,id:t._id}]:[]);s.exit().remove(),s.enter().append("path").classed(i,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(l,f){return yte(l.id,f.id)})}),s.attr("transform",r.transFn).attr("d",r.path).call(tg.stroke,t.zerolinecolor||tg.defaultLine).style("stroke-width",sl.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),x2(t,[z5])};Kt.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,a=t._id,s=t.zerolinelayer==="above traces",l=r.cls||a+"tick",f=r.vals.filter(function(Te){return Te.text}),h=r.labelFns,v=r.secondary?0:t.tickangle,m=(t._prevTickAngles||{})[l],_=r.layer.selectAll("g."+l).data(t.showticklabels?f:[],_2),T=[];_.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(Te){var Ce=Xl.select(this),Le=e._promises.length;Ce.call(gd.positionText,h.xFn(Te),h.yFn(Te)).call(sl.font,{family:Te.font,size:Te.fontSize,color:Te.fontColor,weight:Te.fontWeight,style:Te.fontStyle,variant:Te.fontVariant,textcase:Te.fontTextcase,lineposition:Te.fontLineposition,shadow:Te.fontShadow}).text(Te.text).call(gd.convertToTspans,e),e._promises[Le]?T.push(e._promises.pop().then(function(){S(Ce,v)})):S(Ce,v)}),x2(t,[yL]),_.exit().remove(),r.repositionOnUpdate&&_.each(function(Te){Xl.select(this).select("text").call(gd.positionText,h.xFn(Te),h.yFn(Te))});function S(Te,Ce){Te.each(function(Le){var $e=Xl.select(this),lt=$e.select(".text-math-group"),it=h.anchorFn(Le,Ce),gt=r.transFn.call($e.node(),Le)+(Bn(Ce)&&+Ce!=0?" rotate("+Ce+","+h.xFn(Le)+","+(h.yFn(Le)-Le.fontSize/2)+")":""),We=gd.lineCount($e),Et=ag*Le.fontSize,nt=h.heightFn(Le,Bn(Ce)?+Ce:0,(We-1)*Et);if(nt&&(gt+=F0(0,nt)),lt.empty()){var wt=$e.select("text");wt.attr({transform:gt,"text-anchor":it}),wt.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var xt=sl.bBox(lt.node()).width,vt=xt*{end:-.5,start:.5}[it];lt.attr("transform",gt+F0(vt,0))}})}t._adjustTickLabelsOverflow=function(){var Te=t.ticklabeloverflow;if(!(!Te||Te==="allow")){var Ce=Te.indexOf("hide")!==-1,Le=t._id.charAt(0)==="x",$e=0,lt=Le?e._fullLayout.width:e._fullLayout.height;if(Te.indexOf("domain")!==-1){var it=$r.simpleMap(t.range,t.r2l);$e=t.l2p(it[0])+t._offset,lt=t.l2p(it[1])+t._offset}var gt=Math.min($e,lt),We=Math.max($e,lt),Et=t.side,nt=1/0,wt=-1/0;_.each(function(ze){var pe=Xl.select(this),at=pe.select(".text-math-group");if(at.empty()){var mt=sl.bBox(pe.node()),Xe=0;Le?(mt.right>We||mt.leftWe||mt.top+(t.tickangle?0:ze.fontSize/4)t["_visibleLabelMin_"+it._id]?pe.style("display","none"):We.K==="tick"&&!gt&&pe.node().style.display!=="none"&&pe.style("display",null)})})})})},S(_,m+1?m:v);function C(){return T.length&&Promise.all(T)}var E=null;function L(){if(S(_,v),f.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){E=t.autotickangles[0];var Te=0,Ce=[],Le,$e=1;_.each(function(Ut){Te=Math.max(Te,Ut.fontSize);var Ot=t.l2p(Ut.x),Be=q5(this),ft=sl.bBox(Be.node());$e=Math.max($e,gd.lineCount(Be)),Ce.push({top:0,bottom:10,height:10,left:Ot-ft.width/2,right:Ot+ft.width/2+2,width:ft.width+2})});var lt=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,it=f.length,gt=Math.abs((f[it-1].x-f[0].x)*t._m)/(it-1),We=lt?gt/2:gt,Et=lt?t.ticklen:Te*1.25*$e,nt=Math.sqrt(Math.pow(We,2)+Math.pow(Et,2)),wt=We/nt,xt=t.autotickangles.map(function(Ut){return Ut*Math.PI/180}),vt=xt.find(function(Ut){return Math.abs(Math.cos(Ut))<=wt});vt===void 0&&(vt=xt.reduce(function(Ut,Ot){return Math.abs(Math.cos(Ut))Me*Se&&(oe=Se,J[W]=te[W]=fe[W])}var Ae=Math.abs(oe-ne);Ae-O>0?(Ae-=O,O*=1+O/Ae):O=0,t._id.charAt(0)!=="y"&&(O=-O),J[V]=q.p2r(q.r2p(te[V])+H*O),q.autorange==="min"||q.autorange==="max reversed"?(J[0]=null,q._rangeInitial0=void 0,q._rangeInitial1=void 0):(q.autorange==="max"||q.autorange==="min reversed")&&(J[1]=null,q._rangeInitial0=void 0,q._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[q._name+".range"]=J}var we=$r.syncOrAsync(z);return we&&we.then&&e._promises.push(we),we};function Vte(e,t,r){var i=t._id+"divider",a=r.vals,s=r.layer.selectAll("path."+i).data(a,_2);s.exit().remove(),s.enter().insert("path",":first-child").classed(i,1).classed("crisp",1).call(tg.stroke,t.dividercolor).style("stroke-width",sl.crispRound(e,t.dividerwidth,1)+"px"),s.attr("transform",r.transFn).attr("d",r.path)}Kt.getPxPosition=function(e,t){var r=e._fullLayout._size,i=t._id.charAt(0),a=t.side,s;if(t.anchor!=="free"?s=t._anchorAxis:i==="x"?s={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:i==="y"&&(s={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),a==="top"||a==="left")return s._offset;if(a==="bottom"||a==="right")return s._offset+s._length};function SL(e){var t=e.title.font.size,r=(e.title.text.match(gd.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(xd+r*ag):r?t*(r+1)*ag:t}function Hte(e,t){var r=e._fullLayout,i=t._id,a=i.charAt(0),s=t.title.font.size,l,f=(t.title.text.match(gd.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?l=t._depth+t.title.standoff+s*xd:(t.side==="top"||t.side==="left")&&(l=t._depth+t.title.standoff+s*($y+f*ag));else{var h=ng(t);if(t.type==="multicategory")l=t._depth;else{var v=1.5*s;h&&(v=.5*s,t.ticks==="outside"&&(v+=t.ticklen)),l=10+v+(t.linewidth?t.linewidth-1:0)}h||(a==="x"?l+=t.side==="top"?s*(t.showticklabels?1:0):s*(t.showticklabels?1.5:.5):l+=t.side==="right"?s*(t.showticklabels?1:.5):s*(t.showticklabels?.5:0))}var m=Kt.getPxPosition(e,t),_,T,S;a==="x"?(T=t._offset+t._length/2,S=t.side==="top"?m-l:m+l):(S=t._offset+t._length/2,T=t.side==="right"?m+l:m-l,_={rotate:"-90",offset:0});var C;if(t.type!=="multicategory"){var E=t._selections[t._id+"tick"];if(C={selection:E,side:t.side},E&&E.node()&&E.node().parentNode){var L=sl.getTranslate(E.node().parentNode);C.offsetLeft=L.x,C.offsetTop=L.y}t.title.hasOwnProperty("standoff")&&(C.pad=0)}return t._titleStandoff=l,lte.draw(e,i+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[a],avoid:C,transform:_,attributes:{x:T,y:S,"text-anchor":"middle"}})}Kt.shouldShowZeroLine=function(e,t,r){var i=$r.simpleMap(t.range,t.r2l);return i[0]*i[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===y2)&&(RL(t,0)||!Gte(e,t,r,i)||Zte(e,t))};Kt.clipEnds=function(e,t){return t.filter(function(r){return RL(e,r.x)})};function RL(e,t){var r=e.l2p(t);return r>1&&r1)for(a=1;a=a.min&&e=dte:/%L/.test(t)?e>=vte:/%[SX]/.test(t)?e>=p2:/%M/.test(t)?e>=rg:/%[HI]/.test(t)?e>=Pf:/%p/.test(t)?e>=Bh:/%[Aadejuwx]/.test(t)?e>=as:/%[UVW]/.test(t)?e>=ll:/%[Bbm]/.test(t)?e>=d2:/%[q]/.test(t)?e>=v2:/%[Yy]/.test(t)?e>=h2:!0}});var OL=me((o1e,BL)=>{"use strict";BL.exports=function(t,r,i){var a,s;if(i){var l=r==="reversed"||r==="min reversed"||r==="max reversed";a=i[l?1:0],s=i[l?0:1]}var f=t("autorangeoptions.minallowed",s===null?a:void 0),h=t("autorangeoptions.maxallowed",a===null?s:void 0);f===void 0&&t("autorangeoptions.clipmin"),h===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var G5=me((s1e,UL)=>{"use strict";var Kte=OL();UL.exports=function(t,r,i,a){var s=r._template||{},l=r.type||s.type||"-";i("minallowed"),i("maxallowed");var f=i("range");if(!f){var h;!a.noInsiderange&&l!=="log"&&(h=i("insiderange"),h&&(h[0]===null||h[1]===null)&&(r.insiderange=!1,h=void 0),h&&(f=i("range",h)))}var v=r.getAutorangeDflt(f,a),m=i("autorange",v),_;f&&(f[0]===null&&f[1]===null||(f[0]===null||f[1]===null)&&(m==="reversed"||m===!0)||f[0]!==null&&(m==="min"||m==="max reversed")||f[1]!==null&&(m==="max"||m==="min reversed"))&&(f=void 0,delete r.range,r.autorange=!0,_=!0),_||(v=r.getAutorangeDflt(f,a),m=i("autorange",v)),m&&(Kte(i,m,f),(l==="linear"||l==="-")&&i("rangemode")),r.cleanRange()}});var HL=me((l1e,VL)=>{var Qte={left:0,top:0};VL.exports=$te;function $te(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var i=e.clientX||0,a=e.clientY||0,s=ere(t);return r[0]=i-s.left,r[1]=a-s.top,r}function ere(e){return e===window||e===document||e===document.body?Qte:e.getBoundingClientRect()}});var Z5=me((u1e,GL)=>{"use strict";var tre=_w();function rre(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}GL.exports=tre&&rre()});var YL=me((f1e,ZL)=>{"use strict";ZL.exports=function(t,r,i,a,s){var l=(t-i)/(a-i),f=l+r/(a-i),h=(l+f)/2;return s==="left"||s==="bottom"?l:s==="center"||s==="middle"?h:s==="right"||s==="top"?f:l<2/3-h?l:f>4/3-h?f:h}});var jL=me((c1e,XL)=>{"use strict";var WL=Bt(),are=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];XL.exports=function(t,r,i,a){return i==="left"?t=0:i==="center"?t=1:i==="right"?t=2:t=WL.constrain(Math.floor(t*3),0,2),a==="bottom"?r=0:a==="middle"?r=1:a==="top"?r=2:r=WL.constrain(Math.floor(r*3),0,2),are[r][t]}});var KL=me((h1e,JL)=>{"use strict";var ire=Uy(),nre=w_(),ore=Py().getGraphDiv,sre=Cy(),Y5=JL.exports={};Y5.wrapped=function(e,t,r){e=ore(e),e._fullLayout&&nre.clear(e._fullLayout._uid+sre.HOVERID),Y5.raw(e,t,r)};Y5.raw=function(t,r){var i=t._fullLayout,a=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&ire.triggerHandler(t,"plotly_beforehover",r)===!1)&&(i._hoverlayer.selectAll("g").remove(),i._hoverlayer.selectAll("line").remove(),i._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&a&&t.emit("plotly_unhover",{event:r,points:a}))}});var jl=me((v1e,tD)=>{"use strict";var lre=HL(),W5=bw(),ure=Z5(),fre=Bt().removeElement,cre=Ao(),bd=tD.exports={};bd.align=YL();bd.getCursor=jL();var $L=KL();bd.unhover=$L.wrapped;bd.unhoverRaw=$L.raw;bd.init=function(t){var r=t.gd,i=1,a=r._context.doubleClickDelay,s=t.element,l,f,h,v,m,_,T,S;r._mouseDownTime||(r._mouseDownTime=0),s.style.pointerEvents="all",s.onmousedown=L,ure?(s._ontouchstart&&s.removeEventListener("touchstart",s._ontouchstart),s._ontouchstart=L,s.addEventListener("touchstart",L,{passive:!1})):s.ontouchstart=L;function C(q,I,O){return Math.abs(q)a&&(i=Math.max(i-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var I;_.target===T?I=_:(I={target:T,srcElement:T,toElement:T},Object.keys(_).concat(Object.keys(_.__proto__)).forEach(O=>{var H=_[O];!I[O]&&typeof H!="function"&&(I[O]=H)})),t.clickFn&&t.clickFn(i,I),S||T.dispatchEvent(new MouseEvent("click",q))}r._dragging=!1,r._dragged=!1}};function eD(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}bd.coverSlip=eD;function QL(e){return lre(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Oh=me((d1e,rD)=>{"use strict";rD.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(i){i.indexOf("cursor-")===0&&t.classed(i,!1)}),r&&t.classed("cursor-"+r,!0)}});var nD=me((p1e,iD)=>{"use strict";var X5=Oh(),og="data-savedcursor",aD="!!";iD.exports=function(t,r){var i=t.attr(og);if(r){if(!i){for(var a=(t.attr("class")||"").split(" "),s=0;s{"use strict";var j5=qo(),hre=Af();oD.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:hre.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:j5({editType:"legend"}),grouptitlefont:j5({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:j5({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var w2=me(b2=>{"use strict";b2.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};b2.isVertical=function(t){return t.orientation!=="h"};b2.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var $5=me((g1e,sD)=>{"use strict";var K5=la(),ul=Bt(),vre=Ri(),dre=ys(),pre=J5(),mre=d0(),Q5=w2();function yre(e,t,r,i){var a=t[e]||{},s=vre.newContainer(r,e);function l(Ae,we){return ul.coerce(a,s,pre,Ae,we)}var f=ul.coerceFont(l,"font",r.font);l("bgcolor",r.paper_bgcolor),l("bordercolor");var h=l("visible");if(h){for(var v,m=function(Ae,we){var Te=v._input,Ce=v;return ul.coerce(Te,Ce,dre,Ae,we)},_=r.font||{},T=ul.coerceFont(l,"grouptitlefont",_,{overrideDflt:{size:Math.round(_.size*1.1)}}),S=0,C=!1,E="normal",L=(r.shapes||[]).filter(function(Ae){return Ae.showlegend}),z=i.concat(L).filter(function(Ae){return e===(Ae.legend||"legend")}),B=0;B(e==="legend"?1:0));if(I===!1&&(r[e]=void 0),!(I===!1&&!a.uirevision)&&(l("uirevision",r.uirevision),I!==!1)){l("borderwidth");var O=l("orientation"),H=l("yref"),V=l("xref"),W=O==="h",J=H==="paper",te=V==="paper",ne,oe,fe,ve="left";W?(ne=0,K5.getComponentMethod("rangeslider","isVisible")(t.xaxis)?J?(oe=1.1,fe="bottom"):(oe=1,fe="top"):J?(oe=-.1,fe="top"):(oe=0,fe="bottom")):(oe=1,fe="auto",te?ne=1.02:(ne=1,ve="right")),ul.coerce(a,s,{x:{valType:"number",editType:"legend",min:te?-2:0,max:te?3:1,dflt:ne}},"x"),ul.coerce(a,s,{y:{valType:"number",editType:"legend",min:J?-2:0,max:J?3:1,dflt:oe}},"y"),l("traceorder",E),Q5.isGrouped(r[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",ve),l("yanchor",fe),l("maxheight"),l("valign"),ul.noneOrAll(a,s,["x","y"]);var Se=l("title.text");if(Se){l("title.side",W?"left":"top");var Me=ul.extendFlat({},f,{size:ul.bigFont(f.size)});ul.coerceFont(l,"title.font",Me)}}}}sD.exports=function(t,r,i){var a,s=i.slice(),l=r.shapes;if(l)for(a=0;a{"use strict";var B0=la(),t4=Bt(),gre=t4.pushUnique,e4=!0;lD.exports=function(t,r,i){var a=r._fullLayout;if(r._dragged||r._editing)return;var s=a.legend.itemclick,l=a.legend.itemdoubleclick,f=a.legend.groupclick;i===1&&s==="toggle"&&l==="toggleothers"&&e4&&r.data&&r._context.showTips&&t4.notifier(t4._(r,"Double-click on legend to isolate one trace"),"long"),e4=!1;var h;if(i===1?h=s:i===2&&(h=l),!h)return;var v=f==="togglegroup",m=a.hiddenlabels?a.hiddenlabels.slice():[],_=t.data()[0][0];if(_.groupTitle&&_.noClick)return;var T=r._fullData,S=(a.shapes||[]).filter(function(It){return It.showlegend}),C=T.concat(S),E=_.trace;E._isShape&&(E=E._fullInput);var L=E.legendgroup,z,B,q,I,O,H,V={},W=[],J=[],te=[];function ne(It,Gt){var Ct=W.indexOf(It),Mt=V.visible;return Mt||(Mt=V.visible=[]),W.indexOf(It)===-1&&(W.push(It),Ct=W.length-1),Mt[Ct]=Gt,Ct}var oe=(a.shapes||[]).map(function(It){return It._input}),fe=!1;function ve(It,Gt){oe[It].visible=Gt,fe=!0}function Se(It,Gt){if(!(_.groupTitle&&!v)){var Ct=It._fullInput||It,Mt=Ct._isShape,Ut=Ct.index;Ut===void 0&&(Ut=Ct._index);var Ot=Ct.visible===!1?!1:Gt;Mt?ve(Ut,Ot):ne(Ut,Ot)}}var Me=E.legend,Ae=E._fullInput,we=Ae&&Ae._isShape;if(!we&&B0.traceIs(E,"pie-like")){var Te=_.label,Ce=m.indexOf(Te);if(h==="toggle")Ce===-1?m.push(Te):m.splice(Ce,1);else if(h==="toggleothers"){var Le=Ce!==-1,$e=[];for(z=0;z{"use strict";fD.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var vD=me((b1e,hD)=>{"use strict";var cD=la(),a4=w2();hD.exports=function(t,r,i){var a=r._inHover,s=a4.isGrouped(r),l=a4.isReversed(r),f={},h=[],v=!1,m={},_=0,T=0,S,C;function E(Ae,we,Te){if(r.visible!==!1&&!(i&&Ae!==r._id))if(we===""||!a4.isGrouped(r)){var Ce="~~i"+_;h.push(Ce),f[Ce]=[Te],_++}else h.indexOf(we)===-1?(h.push(we),v=!0,f[we]=[Te]):f[we].push(Te)}for(S=0;Ste&&(J=te)}V[S][0]._groupMinRank=J,V[S][0]._preGroupSort=S}var ne=function(Ae,we){return Ae[0]._groupMinRank-we[0]._groupMinRank||Ae[0]._preGroupSort-we[0]._preGroupSort},oe=function(Ae,we){return Ae.trace.legendrank-we.trace.legendrank||Ae._preSort-we._preSort};for(V.forEach(function(Ae,we){Ae[0]._preGroupSort=we}),V.sort(ne),S=0;S{"use strict";var T2=Bt();function dD(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}wd.formatPiePercent=function(t,r){var i=dD((t*100).toPrecision(3));return T2.numSeparate(i,r)+"%"};wd.formatPieValue=function(t,r){var i=dD(t.toPrecision(10));return T2.numSeparate(i,r)};wd.getFirstFilled=function(t,r){if(T2.isArrayOrTypedArray(t))for(var i=0;i{"use strict";var _re=bi(),xre=Oa();pD.exports=function(t,r,i,a){var s=i.marker.pattern;s&&s.shape?_re.pointStyle(t,i,a,r):xre.fill(t,r.color)}});var xD=me((A1e,_D)=>{"use strict";var yD=Oa(),gD=i4().castOption,bre=mD();_D.exports=function(t,r,i,a){var s=i.marker.line,l=gD(s.color,r.pts)||yD.defaultLine,f=gD(s.width,r.pts)||0;t.call(bre,r,i,a).style("stroke-width",f).call(yD.stroke,l)}});var l4=me((M1e,SD)=>{"use strict";var is=Ja(),n4=la(),Bo=Bt(),bD=Bo.strTranslate,fl=bi(),Jl=Oa(),o4=kf().extractOpts,A2=rs(),wre=xD(),Tre=i4().castOption,Are=r4(),wD=12,TD=5,Td=2,Mre=10,O0=5;SD.exports=function(t,r,i){var a=r._fullLayout;i||(i=a.legend);var s=i.itemsizing==="constant",l=i.itemwidth,f=(l+Are.itemGap*2)/2,h=bD(f,0),v=function(V,W,J,te){var ne;if(V+1)ne=V;else if(W&&W.width>0)ne=W.width;else return 0;return s?te:Math.min(ne,J)};t.each(function(V){var W=is.select(this),J=Bo.ensureSingle(W,"g","layers");J.style("opacity",V[0].trace.opacity);var te=i.indentation,ne=i.valign,oe=V[0].lineHeight,fe=V[0].height;if(ne==="middle"&&te===0||!oe||!fe)J.attr("transform",null);else{var ve={top:1,bottom:-1}[ne],Se=ve*(.5*(oe-fe+3))||0,Me=i.indentation;J.attr("transform",bD(Me,Se))}var Ae=J.selectAll("g.legendfill").data([V]);Ae.enter().append("g").classed("legendfill",!0);var we=J.selectAll("g.legendlines").data([V]);we.enter().append("g").classed("legendlines",!0);var Te=J.selectAll("g.legendsymbols").data([V]);Te.enter().append("g").classed("legendsymbols",!0),Te.selectAll("g.legendpoints").data([V]).enter().append("g").classed("legendpoints",!0)}).each(H).each(T).each(C).each(S).each(L).each(I).each(q).each(m).each(_).each(z).each(B);function m(V){var W=AD(V),J=W.showFill,te=W.showLine,ne=W.showGradientLine,oe=W.showGradientFill,fe=W.anyFill,ve=W.anyLine,Se=V[0],Me=Se.trace,Ae,we,Te=o4(Me),Ce=Te.colorscale,Le=Te.reversescale,$e=function(wt){if(wt.size())if(J)fl.fillGroupStyle(wt,r,!0);else{var xt="legendfill-"+Me.uid;fl.gradient(wt,r,xt,s4(Le),Ce,"fill")}},lt=function(wt){if(wt.size()){var xt="legendline-"+Me.uid;fl.lineGroupStyle(wt),fl.gradient(wt,r,xt,s4(Le),Ce,"stroke")}},it=A2.hasMarkers(Me)||!fe?"M5,0":ve?"M5,-2":"M5,-3",gt=is.select(this),We=gt.select(".legendfill").selectAll("path").data(J||oe?[V]:[]);if(We.enter().append("path").classed("js-fill",!0),We.exit().remove(),We.attr("d",it+"h"+l+"v6h-"+l+"z").call($e),te||ne){var Et=v(void 0,Me.line,Mre,TD);we=Bo.minExtend(Me,{line:{width:Et}}),Ae=[Bo.minExtend(Se,{trace:we})]}var nt=gt.select(".legendlines").selectAll("path").data(te||ne?[Ae]:[]);nt.enter().append("path").classed("js-line",!0),nt.exit().remove(),nt.attr("d",it+(ne?"l"+l+",0.0001":"h"+l)).call(te?fl.lineGroupStyle:lt)}function _(V){var W=AD(V),J=W.anyFill,te=W.anyLine,ne=W.showLine,oe=W.showMarker,fe=V[0],ve=fe.trace,Se=!oe&&!te&&!J&&A2.hasText(ve),Me,Ae;function we(We,Et,nt,wt){var xt=Bo.nestedProperty(ve,We).get(),vt=Bo.isArrayOrTypedArray(xt)&&Et?Et(xt):xt;if(s&&vt&&wt!==void 0&&(vt=wt),nt){if(vtnt[1])return nt[1]}return vt}function Te(We){return fe._distinct&&fe.index&&We[fe.index]?We[fe.index]:We[0]}if(oe||Se||ne){var Ce={},Le={};if(oe){Ce.mc=we("marker.color",Te),Ce.mx=we("marker.symbol",Te),Ce.mo=we("marker.opacity",Bo.mean,[.2,1]),Ce.mlc=we("marker.line.color",Te),Ce.mlw=we("marker.line.width",Bo.mean,[0,5],Td),Le.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var $e=we("marker.size",Bo.mean,[2,16],wD);Ce.ms=$e,Le.marker.size=$e}ne&&(Le.line={width:we("line.width",Te,[0,10],TD)}),Se&&(Ce.tx="Aa",Ce.tp=we("textposition",Te),Ce.ts=10,Ce.tc=we("textfont.color",Te),Ce.tf=we("textfont.family",Te),Ce.tw=we("textfont.weight",Te),Ce.ty=we("textfont.style",Te),Ce.tv=we("textfont.variant",Te),Ce.tC=we("textfont.textcase",Te),Ce.tE=we("textfont.lineposition",Te),Ce.tS=we("textfont.shadow",Te)),Me=[Bo.minExtend(fe,Ce)],Ae=Bo.minExtend(ve,Le),Ae.selectedpoints=null,Ae.texttemplate=null}var lt=is.select(this).select("g.legendpoints"),it=lt.selectAll("path.scatterpts").data(oe?Me:[]);it.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",h),it.exit().remove(),it.call(fl.pointStyle,Ae,r),oe&&(Me[0].mrc=3);var gt=lt.selectAll("g.pointtext").data(Se?Me:[]);gt.enter().append("g").classed("pointtext",!0).append("text").attr("transform",h),gt.exit().remove(),gt.selectAll("text").call(fl.textPointStyle,Ae,r)}function T(V){var W=V[0].trace,J=W.type==="waterfall";if(V[0]._distinct&&J){var te=V[0].trace[V[0].dir].marker;return V[0].mc=te.color,V[0].mlw=te.line.width,V[0].mlc=te.line.color,E(V,this,"waterfall")}var ne=[];W.visible&&J&&(ne=V[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var oe=is.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(ne);oe.enter().append("path").classed("legendwaterfall",!0).attr("transform",h).style("stroke-miterlimit",1),oe.exit().remove(),oe.each(function(fe){var ve=is.select(this),Se=W[fe[0]].marker,Me=v(void 0,Se.line,O0,Td);ve.attr("d",fe[1]).style("stroke-width",Me+"px").call(Jl.fill,Se.color),Me&&ve.call(Jl.stroke,Se.line.color)})}function S(V){E(V,this)}function C(V){E(V,this,"funnel")}function E(V,W,J){var te=V[0].trace,ne=te.marker||{},oe=ne.line||{},fe=ne.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",ve=J?te.visible&&te.type===J:n4.traceIs(te,"bar"),Se=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(ve?[V]:[]);Se.enter().append("path").classed("legend"+J,!0).attr("d",fe).attr("transform",h),Se.exit().remove(),Se.each(function(Me){var Ae=is.select(this),we=Me[0],Te=v(we.mlw,ne.line,O0,Td);Ae.style("stroke-width",Te+"px");var Ce=we.mcc;if(!i._inHover&&"mc"in we){var Le=o4(ne),$e=Le.mid;$e===void 0&&($e=(Le.max+Le.min)/2),Ce=fl.tryColorscale(ne,"")($e)}var lt=Ce||we.mc||ne.color,it=ne.pattern,gt=fl.getPatternAttr,We=it&&(gt(it.shape,0,"")||gt(it.path,0,""));if(We){var Et=gt(it.bgcolor,0,null),nt=gt(it.fgcolor,0,null),wt=it.fgopacity,xt=MD(it.size,8,10),vt=MD(it.solidity,.5,1),de="legend-"+te.uid;Ae.call(fl.pattern,"legend",r,de,We,xt,vt,Ce,it.fillmode,Et,nt,wt)}else Ae.call(Jl.fill,lt);Te&&Jl.stroke(Ae,we.mlc||oe.color)})}function L(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendbox").data(W.visible&&n4.traceIs(W,"box-violin")?[V]:[]);J.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",h),J.exit().remove(),J.each(function(){var te=is.select(this);if((W.boxpoints==="all"||W.points==="all")&&Jl.opacity(W.fillcolor)===0&&Jl.opacity((W.line||{}).color)===0){var ne=Bo.minExtend(W,{marker:{size:s?wD:Bo.constrain(W.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});J.call(fl.pointStyle,ne,r)}else{var oe=v(void 0,W.line,O0,Td);te.style("stroke-width",oe+"px").call(Jl.fill,W.fillcolor),oe&&Jl.stroke(te,W.line.color)}})}function z(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(W.visible&&W.type==="candlestick"?[V,V]:[]);J.enter().append("path").classed("legendcandle",!0).attr("d",function(te,ne){return ne?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",h).style("stroke-miterlimit",1),J.exit().remove(),J.each(function(te,ne){var oe=is.select(this),fe=W[ne?"increasing":"decreasing"],ve=v(void 0,fe.line,O0,Td);oe.style("stroke-width",ve+"px").call(Jl.fill,fe.fillcolor),ve&&Jl.stroke(oe,fe.line.color)})}function B(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(W.visible&&W.type==="ohlc"?[V,V]:[]);J.enter().append("path").classed("legendohlc",!0).attr("d",function(te,ne){return ne?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",h).style("stroke-miterlimit",1),J.exit().remove(),J.each(function(te,ne){var oe=is.select(this),fe=W[ne?"increasing":"decreasing"],ve=v(void 0,fe.line,O0,Td);oe.style("fill","none").call(fl.dashLine,fe.line.dash,ve),ve&&Jl.stroke(oe,fe.line.color)})}function q(V){O(V,this,"pie")}function I(V){O(V,this,"funnelarea")}function O(V,W,J){var te=V[0],ne=te.trace,oe=J?ne.visible&&ne.type===J:n4.traceIs(ne,J),fe=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(oe?[V]:[]);if(fe.enter().append("path").classed("legend"+J,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",h),fe.exit().remove(),fe.size()){var ve=ne.marker||{},Se=v(Tre(ve.line.width,te.pts),ve.line,O0,Td),Me="pieLike",Ae=Bo.minExtend(ne,{marker:{line:{width:Se}}},Me),we=Bo.minExtend(te,{trace:Ae},Me);wre(fe,we,Ae,r)}}function H(V){var W=V[0].trace,J,te=[];if(W.visible)switch(W.type){case"histogram2d":case"heatmap":te=[["M-15,-2V4H15V-2Z"]],J=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":te=[["M-6,-6V6H6V-6Z"]],J=!0;break;case"densitymapbox":case"densitymap":te=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],J="radial";break;case"cone":te=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],J=!1;break;case"streamtube":te=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],J=!1;break;case"surface":te=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],J=!0;break;case"mesh3d":te=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],J=!1;break;case"volume":te=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],J=!0;break;case"isosurface":te=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],J=!1;break}var ne=is.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(te);ne.enter().append("path").classed("legend3dandfriends",!0).attr("transform",h).style("stroke-miterlimit",1),ne.exit().remove(),ne.each(function(oe,fe){var ve=is.select(this),Se=o4(W),Me=Se.colorscale,Ae=Se.reversescale,we=function($e){if($e.size()){var lt="legendfill-"+W.uid;fl.gradient($e,r,lt,s4(Ae,J==="radial"),Me,"fill")}},Te;if(Me){if(!J){var Le=Me.length;Te=fe===0?Me[Ae?Le-1:0][1]:fe===1?Me[Ae?0:Le-1][1]:Me[Math.floor((Le-1)/2)][1]}}else{var Ce=W.vertexcolor||W.facecolor||W.color;Te=Bo.isArrayOrTypedArray(Ce)?Ce[fe]||Ce[0]:Ce}ve.attr("d",oe[0]),Te?ve.call(Jl.fill,Te):ve.call(we)})}};function s4(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function AD(e){var t=e[0].trace,r=t.contours,i=A2.hasLines(t),a=A2.hasMarkers(t),s=t.visible&&t.fill&&t.fill!=="none",l=!1,f=!1;if(r){var h=r.coloring;h==="lines"?l=!0:i=h==="none"||h==="heatmap"||r.showlines,r.type==="constraint"?s=r._operation!=="=":(h==="fill"||h==="heatmap")&&(f=!0)}return{showMarker:a,showLine:i,showFill:s,showGradientLine:l,showGradientFill:f,anyLine:i||l,anyFill:s||f}}function MD(e,t,r){return e&&Bo.isArrayOrTypedArray(e)?t:e>r?r:e}});var h4=me((S1e,FD)=>{"use strict";var Os=Ja(),On=Bt(),f4=eo(),H0=la(),kD=Uy(),u4=jl(),Un=bi(),S2=Oa(),Ad=co(),CD=uD(),jn=r4(),c4=ts(),ID=c4.LINE_SPACING,V0=c4.FROM_TL,ED=c4.FROM_BR,LD=vD(),Sre=l4(),DD=w2(),U0=1,kre=/^legend[0-9]*$/;FD.exports=function(t,r){if(r)PD(t,r);else{var i=t._fullLayout,a=i._legends,s=i._infolayer.selectAll('[class^="legend"]');s.each(function(){var v=Os.select(this),m=v.attr("class"),_=m.split(" ")[0];_.match(kre)&&a.indexOf(_)===-1&&v.remove()});for(var l=0;l1)}var C=i.hiddenlabels||[];if(!f&&(!i.showlegend||!h.length))return l.selectAll("."+a).remove(),i._topdefs.select("#"+s).remove(),f4.autoMargin(e,a);var E=On.ensureSingle(l,"g",a,function(W){f||W.attr("pointer-events","all")}),L=On.ensureSingleById(i._topdefs,"clipPath",s,function(W){W.append("rect")}),z=On.ensureSingle(E,"rect","bg",function(W){W.attr("shape-rendering","crispEdges")});z.call(S2.stroke,r.bordercolor).call(S2.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var B=On.ensureSingle(E,"g","scrollbox"),q=r.title;r._titleWidth=0,r._titleHeight=0;var I;q.text?(I=On.ensureSingle(B,"text",a+"titletext"),I.attr("text-anchor","start").call(Un.font,q.font).text(q.text),k2(I,B,e,r,U0)):B.selectAll("."+a+"titletext").remove();var O=On.ensureSingle(E,"rect","scrollbar",function(W){W.attr(jn.scrollBarEnterAttrs).call(S2.fill,jn.scrollBarColor)}),H=B.selectAll("g.groups").data(h);H.enter().append("g").attr("class","groups"),H.exit().remove();var V=H.selectAll("g.traces").data(On.identity);V.enter().append("g").attr("class","traces"),V.exit().remove(),V.style("opacity",function(W){var J=W[0].trace;return H0.traceIs(J,"pie-like")?C.indexOf(W[0].label)!==-1?.5:1:J.visible==="legendonly"?.5:1}).each(function(){Os.select(this).call(Ere,e,r)}).call(Sre,e,r).each(function(){f||Os.select(this).call(Lre,e,a)}),On.syncOrAsync([f4.previousPromises,function(){return zre(e,H,V,r)},function(){var W=i._size,J=r.borderwidth,te=r.xref==="paper",ne=r.yref==="paper";if(q.text&&Cre(I,r,J),!f){var oe,fe;te?oe=W.l+W.w*r.x-V0[C2(r)]*r._width:oe=i.width*r.x-V0[C2(r)]*r._width,ne?fe=W.t+W.h*(1-r.y)-V0[E2(r)]*r._effHeight:fe=i.height*(1-r.y)-V0[E2(r)]*r._effHeight;var ve=Ire(e,a,oe,fe);if(ve)return;if(i.margin.autoexpand){var Se=oe,Me=fe;oe=te?On.constrain(oe,0,i.width-r._width):Se,fe=ne?On.constrain(fe,0,i.height-r._effHeight):Me,oe!==Se&&On.log("Constrain "+a+".x to make legend fit inside graph"),fe!==Me&&On.log("Constrain "+a+".y to make legend fit inside graph")}Un.setTranslate(E,oe,fe)}if(O.on(".drag",null),E.on("wheel",null),f||r._height<=r._maxHeight||e._context.staticPlot){var Ae=r._effHeight;f&&(Ae=r._height),z.attr({width:r._width-J,height:Ae-J,x:J/2,y:J/2}),Un.setTranslate(B,0,0),L.select("rect").attr({width:r._width-2*J,height:Ae-2*J,x:J,y:J}),Un.setClipUrl(B,s,e),Un.setRect(O,0,0,0,0),delete r._scrollY}else{var we=Math.max(jn.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),Te=r._effHeight-we-2*jn.scrollBarMargin,Ce=r._height-r._effHeight,Le=Te/Ce,$e=Math.min(r._scrollY||0,Ce);z.attr({width:r._width-2*J+jn.scrollBarWidth+jn.scrollBarMargin,height:r._effHeight-J,x:J/2,y:J/2}),L.select("rect").attr({width:r._width-2*J+jn.scrollBarWidth+jn.scrollBarMargin,height:r._effHeight-2*J,x:J,y:J+$e}),Un.setClipUrl(B,s,e),xt($e,we,Le),E.on("wheel",function(){$e=On.constrain(r._scrollY+Os.event.deltaY/Te*Ce,0,Ce),xt($e,we,Le),$e!==0&&$e!==Ce&&Os.event.preventDefault()});var lt,it,gt,We=function(at,mt,Xe){var Ft=(Xe-mt)/Le+at;return On.constrain(Ft,0,Ce)},Et=function(at,mt,Xe){var Ft=(mt-Xe)/Le+at;return On.constrain(Ft,0,Ce)},nt=Os.behavior.drag().on("dragstart",function(){var at=Os.event.sourceEvent;at.type==="touchstart"?lt=at.changedTouches[0].clientY:lt=at.clientY,gt=$e}).on("drag",function(){var at=Os.event.sourceEvent;at.buttons===2||at.ctrlKey||(at.type==="touchmove"?it=at.changedTouches[0].clientY:it=at.clientY,$e=We(gt,lt,it),xt($e,we,Le))});O.call(nt);var wt=Os.behavior.drag().on("dragstart",function(){var at=Os.event.sourceEvent;at.type==="touchstart"&&(lt=at.changedTouches[0].clientY,gt=$e)}).on("drag",function(){var at=Os.event.sourceEvent;at.type==="touchmove"&&(it=at.changedTouches[0].clientY,$e=Et(gt,lt,it),xt($e,we,Le))});B.call(wt)}function xt(at,mt,Xe){r._scrollY=e._fullLayout[a]._scrollY=at,Un.setTranslate(B,0,-at),Un.setRect(O,r._width,jn.scrollBarMargin+at*Xe,jn.scrollBarWidth,mt),L.select("rect").attr("y",J+at)}if(e._context.edits.legendPosition){var vt,de,ze,pe;E.classed("cursor-move",!0),u4.init({element:E.node(),gd:e,prepFn:function(at){if(at.target!==O.node()){var mt=Un.getTranslate(E);ze=mt.x,pe=mt.y}},moveFn:function(at,mt){if(ze!==void 0&&pe!==void 0){var Xe=ze+at,Ft=pe+mt;Un.setTranslate(E,Xe,Ft),vt=u4.align(Xe,r._width,W.l,W.l+W.w,r.xanchor),de=u4.align(Ft+r._height,-r._height,W.t+W.h,W.t,r.yanchor)}},doneFn:function(){if(vt!==void 0&&de!==void 0){var at={};at[a+".x"]=vt,at[a+".y"]=de,H0.call("_guiRelayout",e,at)}},clickFn:function(at,mt){var Xe=l.selectAll("g.traces").filter(function(){var Ft=this.getBoundingClientRect();return mt.clientX>=Ft.left&&mt.clientX<=Ft.right&&mt.clientY>=Ft.top&&mt.clientY<=Ft.bottom});Xe.size()>0&&RD(e,E,Xe,at,mt)}})}}],e)}}function M2(e,t,r){var i=e[0],a=i.width,s=t.entrywidthmode,l=i.trace.legendwidth||t.entrywidth;return s==="fraction"?t._maxWidth*l:r+(l||a)}function RD(e,t,r,i,a){var s=r.data()[0][0].trace,l={event:a,node:r.node(),curveNumber:s.index,expandedIndex:s.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};s._group&&(l.group=s._group),H0.traceIs(s,"pie-like")&&(l.label=r.datum()[0].label);var f=kD.triggerHandler(e,"plotly_legendclick",l);if(i===1){if(f===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&CD(r,e,i)},e._context.doubleClickDelay)}else if(i===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var h=kD.triggerHandler(e,"plotly_legenddoubleclick",l);h!==!1&&f!==!1&&CD(r,e,i)}}function Ere(e,t,r){var i=L2(r),a=e.data()[0][0],s=a.trace,l=H0.traceIs(s,"pie-like"),f=!r._inHover&&t._context.edits.legendText&&!l,h=r._maxNameLength,v,m;a.groupTitle?(v=a.groupTitle.text,m=a.groupTitle.font):(m=r.font,r.entries?v=a.text:(v=l?a.label:s.name,s._meta&&(v=On.templateString(v,s._meta))));var _=On.ensureSingle(e,"text",i+"text");_.attr("text-anchor","start").call(Un.font,m).text(f?zD(v,h):v);var T=r.indentation+r.itemwidth+jn.itemGap*2;Ad.positionText(_,T,0),f?_.call(Ad.makeEditable,{gd:t,text:v}).call(k2,e,t,r).on("edit",function(S){this.text(zD(S,h)).call(k2,e,t,r);var C=a.trace._fullInput||{},E={};return E.name=S,C._isShape?H0.call("_guiRelayout",t,"shapes["+s.index+"].name",E.name):H0.call("_guiRestyle",t,E,s.index)}):k2(_,e,t,r)}function zD(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var i=r-e.length;i>0;i--)e+=" ";return e}function Lre(e,t,r){var i=t._context.doubleClickDelay,a,s=1,l=On.ensureSingle(e,"rect",r+"toggle",function(f){t._context.staticPlot||f.style("cursor","pointer").attr("pointer-events","all"),f.call(S2.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){a=new Date().getTime(),a-t._legendMouseDownTimei&&(s=Math.max(s-1,1)),RD(t,f,e,s,Os.event)}}))}function k2(e,t,r,i,a){i._inHover&&e.attr("data-notex",!0),Ad.convertToTspans(e,r,function(){Dre(t,r,i,a)})}function Dre(e,t,r,i){var a=e.data()[0][0];if(!r._inHover&&a&&!a.trace.showlegend){e.remove();return}var s=e.select("g[class*=math-group]"),l=s.node(),f=L2(r);r||(r=t._fullLayout[f]);var h=r.borderwidth,v;i===U0?v=r.title.font:a.groupTitle?v=a.groupTitle.font:v=r.font;var m=v.size*ID,_,T;if(l){var S=Un.bBox(l);_=S.height,T=S.width,i===U0?Un.setTranslate(s,h,h+_*.75):Un.setTranslate(s,0,_*.25)}else{var C="."+f+(i===U0?"title":"")+"text",E=e.select(C),L=Ad.lineCount(E),z=E.node();if(_=m*L,T=z?Un.bBox(z).width:0,i===U0)r.title.side==="left"&&(T+=jn.itemGap*2),Ad.positionText(E,h+jn.titlePad,h+m);else{var B=jn.itemGap*2+r.indentation+r.itemwidth;a.groupTitle&&(B=jn.itemGap,T-=r.indentation+r.itemwidth),Ad.positionText(E,B,-m*((L-1)/2-.3))}}i===U0?(r._titleWidth=T,r._titleHeight=_):(a.lineHeight=m,a.height=Math.max(_,16)+3,a.width=T)}function Pre(e){var t=0,r=0,i=e.title.side;return i&&(i.indexOf("left")!==-1&&(t=e._titleWidth),i.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function zre(e,t,r,i){var a=e._fullLayout,s=L2(i);i||(i=a[s]);var l=a._size,f=DD.isVertical(i),h=DD.isGrouped(i),v=i.entrywidthmode==="fraction",m=i.borderwidth,_=2*m,T=jn.itemGap,S=i.indentation+i.itemwidth+T*2,C=2*(m+T),E=E2(i),L=i.y<0||i.y===0&&E==="top",z=i.y>1||i.y===1&&E==="bottom",B=i.tracegroupgap,q={};let{orientation:I,yref:O}=i,{maxheight:H}=i,V=L||z||I!=="v"||O!=="paper";H||(H=V?.5:1);let W=V?a.height:l.h;i._maxHeight=Math.max(H>1?H:H*W,30);var J=0;i._width=0,i._height=0;var te=Pre(i);if(f)r.each(function(xt){var vt=xt[0].height;Un.setTranslate(this,m+te[0],m+te[1]+i._height+vt/2+T),i._height+=vt,i._width=Math.max(i._width,xt[0].width)}),J=S+i._width,i._width+=T+S+_,i._height+=C,h&&(t.each(function(xt,vt){Un.setTranslate(this,0,vt*i.tracegroupgap)}),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var ne=C2(i),oe=i.x<0||i.x===0&&ne==="right",fe=i.x>1||i.x===1&&ne==="left",ve=z||L,Se=a.width/2;i._maxWidth=Math.max(oe?ve&&ne==="left"?l.l+l.w:Se:fe?ve&&ne==="right"?l.r+l.w:Se:l.w,2*S);var Me=0,Ae=0;r.each(function(xt){var vt=M2(xt,i,S);Me=Math.max(Me,vt),Ae+=vt}),J=null;var we=0;if(h){var Te=0,Ce=0,Le=0;t.each(function(){var xt=0,vt=0;Os.select(this).selectAll("g.traces").each(function(ze){var pe=M2(ze,i,S),at=ze[0].height;Un.setTranslate(this,te[0],te[1]+m+T+at/2+vt),vt+=at,xt=Math.max(xt,pe),q[ze[0].trace.legendgroup]=xt});var de=xt+T;Ce>0&&de+m+Ce>i._maxWidth?(we=Math.max(we,Ce),Ce=0,Le+=Te+B,Te=vt):Te=Math.max(Te,vt),Un.setTranslate(this,Ce,Le),Ce+=de}),i._width=Math.max(we,Ce)+m,i._height=Le+Te+C}else{var $e=r.size(),lt=Ae+_+($e-1)*T=i._maxWidth&&(we=Math.max(we,Et),gt=0,We+=it,i._height+=it,it=0),Un.setTranslate(this,te[0]+m+gt,te[1]+m+We+vt/2+T),Et=gt+de+T,gt+=ze,it=Math.max(it,vt)}),lt?(i._width=gt+_,i._height=it+C):(i._width=Math.max(we,Et)+_,i._height+=it+C)}}i._width=Math.ceil(Math.max(i._width+te[0],i._titleWidth+2*(m+jn.titlePad))),i._height=Math.ceil(Math.max(i._height+te[1],i._titleHeight+2*(m+jn.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var nt=e._context.edits,wt=nt.legendText||nt.legendPosition;r.each(function(xt){var vt=Os.select(this).select("."+s+"toggle"),de=xt[0].height,ze=xt[0].trace.legendgroup,pe=M2(xt,i,S);h&&ze!==""&&(pe=q[ze]);var at=wt?S:J||pe;!f&&!v&&(at+=T/2),Un.setRect(vt,0,-de/2,at,de)})}function Ire(e,t,r,i){var a=e._fullLayout,s=a[t],l=C2(s),f=E2(s),h=s.xref==="paper",v=s.yref==="paper";e._fullLayout._reservedMargin[t]={};var m=s.y<.5?"b":"t",_=s.x<.5?"l":"r",T={r:a.width-r,l:r+s._width,b:a.height-i,t:i+s._effHeight};if(h&&v)return f4.autoMargin(e,t,{x:s.x,y:s.y,l:s._width*V0[l],r:s._width*ED[l],b:s._effHeight*ED[f],t:s._effHeight*V0[f]});h?e._fullLayout._reservedMargin[t][m]=T[m]:v||s.orientation==="v"?e._fullLayout._reservedMargin[t][_]=T[_]:e._fullLayout._reservedMargin[t][m]=T[m]}function C2(e){return On.isRightAnchor(e)?"right":On.isCenterAnchor(e)?"center":"left"}function E2(e){return On.isBottomAnchor(e)?"bottom":On.isMiddleAnchor(e)?"middle":"top"}function L2(e){return e._id||"legend"}});var m4=me(p4=>{"use strict";var Md=Ja(),Tc=Da(),qD=Tf(),hn=Bt(),Rre=hn.pushUnique,v4=hn.strTranslate,Fre=hn.strRotate,qre=Uy(),Kl=co(),Nre=nD(),zf=bi(),ro=Oa(),D2=jl(),If=Xi(),Bre=Ao().zindexSeparator,Z0=la(),Nu=bc(),Sd=Cy(),Ore=$5(),Ure=h4(),ZD=Sd.YANGLE,d4=Math.PI*ZD/180,Vre=1/Math.sin(d4),Hre=Math.cos(d4),Gre=Math.sin(d4),ji=Sd.HOVERARROWSIZE,Fa=Sd.HOVERTEXTPAD,ND={box:!0,ohlc:!0,violin:!0,candlestick:!0},Zre={scatter:!0,scattergl:!0,splom:!0};function BD(e,t){return e.distance-t.distance}p4.hover=function(t,r,i,a){t=hn.getGraphDiv(t);var s=r.target;hn.throttle(t._fullLayout._uid+Sd.HOVERID,Sd.HOVERMINTIME,function(){Yre(t,r,i,a,s)})};p4.loneHover=function(t,r){var i=!0;Array.isArray(t)||(i=!1,t=[t]);var a=r.gd,s=JD(a),l=KD(a),f=t.map(function(L){var z=L._x0||L.x0||L.x||0,B=L._x1||L.x1||L.x||0,q=L._y0||L.y0||L.y||0,I=L._y1||L.y1||L.y||0,O=L.eventData;if(O){var H=Math.min(z,B),V=Math.max(z,B),W=Math.min(q,I),J=Math.max(q,I),te=L.trace;if(Z0.traceIs(te,"gl3d")){var ne=a._fullLayout[te.scene]._scene.container,oe=ne.offsetLeft,fe=ne.offsetTop;H+=oe,V+=oe,W+=fe,J+=fe}O.bbox={x0:H+l,x1:V+l,y0:W+s,y1:J+s},r.inOut_bbox&&r.inOut_bbox.push(O.bbox)}else O=!1;return{color:L.color||ro.defaultLine,x0:L.x0||L.x||0,x1:L.x1||L.x||0,y0:L.y0||L.y||0,y1:L.y1||L.y||0,xLabel:L.xLabel,yLabel:L.yLabel,zLabel:L.zLabel,text:L.text,name:L.name,idealAlign:L.idealAlign,borderColor:L.borderColor,fontFamily:L.fontFamily,fontSize:L.fontSize,fontColor:L.fontColor,fontWeight:L.fontWeight,fontStyle:L.fontStyle,fontVariant:L.fontVariant,nameLength:L.nameLength,textAlign:L.textAlign,trace:L.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:L.hovertemplate||!1,hovertemplateLabels:L.hovertemplateLabels||!1,eventData:O}}),h=!1,v=WD(f,{gd:a,hovermode:"closest",rotateLabels:h,bgColor:r.bgColor||ro.background,container:Md.select(r.container),outerContainer:r.outerContainer||r.container}),m=v.hoverLabels,_=5,T=0,S=0;m.sort(function(L,z){return L.y0-z.y0}).each(function(L,z){var B=L.y0-L.by/2;B-_V[0]._length||pe<0||pe>W[0]._length)return D2.unhoverRaw(e,t)}if(t.pointerX=ze+V[0]._offset,t.pointerY=pe+W[0]._offset,"xval"in t?Me=Nu.flat(s,t.xval):Me=Nu.p2c(V,ze),"yval"in t?Ae=Nu.flat(s,t.yval):Ae=Nu.p2c(W,pe),!Tc(Me[0])||!Tc(Ae[0]))return hn.warn("Fx.hover failed",t,e),D2.unhoverRaw(e,t)}var Xe=1/0;function Ft(Gr,$a){for(Te=0;Tent&&(ve.splice(0,nt),Xe=ve[0].distance),_&&fe!==0&&ve.length===0){Et.distance=fe,Et.index=!1;var ee=Le._module.hoverPoints(Et,gt,We,"closest",{hoverLayer:f._hoverlayer});if(ee&&(ee=ee.filter(function(He){return He.spikeDistance<=fe})),ee&&ee.length){var se,ce=ee.filter(function(He){return He.xa.showspikes&&He.xa.spikesnap!=="hovered data"});if(ce.length){var Ee=ce[0];Tc(Ee.x0)&&Tc(Ee.y0)&&(se=Tt(Ee),(!wt.vLinePoint||wt.vLinePoint.spikeDistance>se.spikeDistance)&&(wt.vLinePoint=se))}var Ne=ee.filter(function(He){return He.ya.showspikes&&He.ya.spikesnap!=="hovered data"});if(Ne.length){var rt=Ne[0];Tc(rt.x0)&&Tc(rt.y0)&&(se=Tt(rt),(!wt.hLinePoint||wt.hLinePoint.spikeDistance>se.spikeDistance)&&(wt.hLinePoint=se))}}}}}Ft();function Lt(Gr,$a,Zr){for(var di=null,ga=1/0,le,ee=0;ee0&&Math.abs(Gr.distance)yt-1;lr--)zr(ve[lr]);ve=Vt,Mt()}var At=e._hoverdata,Fe=[],Ge=JD(e),bt=KD(e);for(we=0;we1||ve.length>1)||T==="closest"&&xt&&ve.length>1,$i=ro.combine(f.plot_bgcolor||ro.background,f.paper_bgcolor),on=WD(ve,{gd:e,hovermode:T,rotateLabels:Ti,bgColor:$i,container:f._hoverlayer,outerContainer:f._paper.node(),commonLabelOpts:f.hoverlabel,hoverdistance:f.hoverdistance}),Ei=on.hoverLabels;if(Nu.isUnifiedHover(T)||(Xre(Ei,Ti,f,on.commonLabelBoundingBox),jD(Ei,Ti,f._invScaleX,f._invScaleY)),a&&a.tagName){var ma=Z0.getComponentMethod("annotations","hasClickToShow")(e,Fe);Nre(Md.select(a),ma?"pointer":"")}!a||i||!Kre(e,t,At)||(At&&e.emit("plotly_unhover",{event:t,points:At}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:V,yaxes:W,xvals:Me,yvals:Ae}))}function YD(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Wre=/([\s\S]*)<\/extra>/;function WD(e,t){var r=t.gd,i=r._fullLayout,a=t.hovermode,s=t.rotateLabels,l=t.bgColor,f=t.container,h=t.outerContainer,v=t.commonLabelOpts||{};if(e.length===0)return[[]];var m=t.fontFamily||Sd.HOVERFONT,_=t.fontSize||Sd.HOVERFONTSIZE,T=t.fontWeight||i.font.weight,S=t.fontStyle||i.font.style,C=t.fontVariant||i.font.variant,E=t.fontTextcase||i.font.textcase,L=t.fontLineposition||i.font.lineposition,z=t.fontShadow||i.font.shadow,B=e[0],q=B.xa,I=B.ya,O=a.charAt(0),H=O+"Label",V=B[H];if(V===void 0&&q.type==="multicategory")for(var W=0;Wi.width-bt&&(dt=i.width-bt),yt.attr("d","M"+(At-dt)+",0L"+(At-dt+ji)+","+Ge+ji+"H"+bt+"v"+Ge+(Fa*2+lr.height)+"H"+-bt+"V"+Ge+ji+"H"+(At-dt-ji)+"Z"),At=dt,Te.minX=At-bt,Te.maxX=At+bt,q.side==="top"?(Te.minY=Fe-(Fa*2+lr.height),Te.maxY=Fe-Fa):(Te.minY=Fe+Fa,Te.maxY=Fe+(Fa*2+lr.height))}else{var yr,xr,pr;I.side==="right"?(yr="start",xr=1,pr="",At=q._offset+q._length):(yr="end",xr=-1,pr="-",At=q._offset),Fe=I._offset+(B.y0+B.y1)/2,qt.attr("text-anchor",yr),yt.attr("d","M0,0L"+pr+ji+","+ji+"V"+(Fa+lr.height/2)+"h"+pr+(Fa*2+lr.width)+"V-"+(Fa+lr.height/2)+"H"+pr+ji+"V-"+ji+"Z"),Te.minY=Fe-(Fa+lr.height/2),Te.maxY=Fe+(Fa+lr.height/2),I.side==="right"?(Te.minX=At+ji,Te.maxX=At+ji+(Fa*2+lr.width)):(Te.minX=At-ji-(Fa*2+lr.width),Te.maxX=At-ji);var Hr=lr.height/2,pa=te-lr.top-Hr,Ea="clip"+i._uid+"commonlabel"+I._id,Ua;if(At=0?or=Ut:Ot+Xe=0?or=Ot:Be+Xe=0?Cr=Ct:Mt+Ft=0?Cr=Mt:ft+Ft=0,(Oe.idealAlign==="top"||!vi)&&Ti?(pr-=pa/2,Oe.anchor="end"):vi?(pr+=pa/2,Oe.anchor="start"):Oe.anchor="middle",Oe.crossPos=pr;else{if(Oe.pos=pr,vi=xr+Hr/2+qi<=ne,Ti=xr-Hr/2-qi>=0,(Oe.idealAlign==="left"||!vi)&&Ti)xr-=Hr/2,Oe.anchor="end";else if(vi)xr+=Hr/2,Oe.anchor="start";else{Oe.anchor="middle";var $i=qi/2,on=xr+$i-ne,Ei=xr-$i;on>0&&(xr-=on),Ei<0&&(xr+=-Ei)}Oe.crossPos=xr}Fe.attr("text-anchor",Oe.anchor),bt&&Ge.attr("text-anchor",Oe.anchor),yt.attr("transform",v4(xr,pr)+(s?Fre(ZD):""))}),{hoverLabels:Sr,commonLabelBoundingBox:Te}}function OD(e,t,r,i,a,s){var l="",f="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=hn.templateString(e.name,e.trace._meta)),l=HD(e.name,e.nameLength));var h=r.charAt(0),v=h==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(f+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(f+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(f+=(f?"z: ":"")+e.zLabel)):t&&e[h+"Label"]===a?f=e[v+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(f=e.yLabel):e.yLabel===void 0?f=e.xLabel:f="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(f+=(f?"
":"")+e.text),e.extraText!==void 0&&(f+=(f?"
":"")+e.extraText),s&&f===""&&!e.hovertemplate&&(l===""&&s.remove(),f=l);var m=e.hovertemplate||!1;if(m){var _=e.hovertemplateLabels||e;e[h+"Label"]!==a&&(_[h+"other"]=_[h+"Val"],_[h+"otherLabel"]=_[h+"Label"]),f=hn.hovertemplateString(m,_,i._d3locale,e.eventData[0]||{},e.trace._meta),f=f.replace(Wre,function(T,S){return l=HD(S,e.nameLength),""})}return[f,l]}function Xre(e,t,r,i){var a=t?"xa":"ya",s=t?"ya":"xa",l=0,f=1,h=e.size(),v=new Array(h),m=0,_=i.minX,T=i.maxX,S=i.minY,C=i.maxY,E=function(Me){return Me*r._invScaleX},L=function(Me){return Me*r._invScaleY};e.each(function(Me){var Ae=Me[a],we=Me[s],Te=Ae._id.charAt(0)==="x",Ce=Ae.range;m===0&&Ce&&Ce[0]>Ce[1]!==Te&&(f=-1);var Le=0,$e=Te?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var lt=XD(Me,t),it=Me.anchor,gt=it==="end"?-1:1,We,Et;if(it==="middle")We=Me.crossPos+(Te?L(lt.y-Me.by/2):E(Me.bx/2+Me.tx2width/2)),Et=We+(Te?L(Me.by):E(Me.bx));else if(Te)We=Me.crossPos+L(ji+lt.y)-L(Me.by/2-ji),Et=We+L(Me.by);else{var nt=E(gt*ji+lt.x),wt=nt+E(gt*Me.bx);We=Me.crossPos+Math.min(nt,wt),Et=Me.crossPos+Math.max(nt,wt)}Te?S!==void 0&&C!==void 0&&Math.min(Et,C)-Math.max(We,S)>1&&(we.side==="left"?(Le=we._mainLinePosition,$e=r.width):$e=we._mainLinePosition):_!==void 0&&T!==void 0&&Math.min(Et,T)-Math.max(We,_)>1&&(we.side==="top"?(Le=we._mainLinePosition,$e=r.height):$e=we._mainLinePosition)}v[m++]=[{datum:Me,traceIndex:Me.trace.index,dp:0,pos:Me.pos,posref:Me.posref,size:Me.by*(Te?Vre:1)/2,pmin:Le,pmax:$e}]}),v.sort(function(Me,Ae){return Me[0].posref-Ae[0].posref||f*(Ae[0].traceIndex-Me[0].traceIndex)});var z,B,q,I,O,H,V;function W(Me){var Ae=Me[0],we=Me[Me.length-1];if(B=Ae.pmin-Ae.pos-Ae.dp+Ae.size,q=we.pos+we.dp+we.size-Ae.pmax,B>.01){for(O=Me.length-1;O>=0;O--)Me[O].dp+=B;z=!1}if(!(q<.01)){if(B<-.01){for(O=Me.length-1;O>=0;O--)Me[O].dp-=q;z=!1}if(z){var Te=0;for(I=0;IAe.pmax&&Te++;for(I=Me.length-1;I>=0&&!(Te<=0);I--)H=Me[I],H.pos>Ae.pmax-1&&(H.del=!0,Te--);for(I=0;I=0;O--)Me[O].dp-=q;for(I=Me.length-1;I>=0&&!(Te<=0);I--)H=Me[I],H.pos+H.dp+H.size>Ae.pmax&&(H.del=!0,Te--)}}}for(;!z&&l<=h;){for(l++,z=!0,I=0;I.01){for(O=te.length-1;O>=0;O--)te[O].dp+=B;for(J.push.apply(J,te),v.splice(I+1,1),V=0,O=J.length-1;O>=0;O--)V+=J[O].dp;for(q=V/J.length,O=J.length-1;O>=0;O--)J[O].dp-=q;z=!1}else I++}v.forEach(W)}for(I=v.length-1;I>=0;I--){var fe=v[I];for(O=fe.length-1;O>=0;O--){var ve=fe[O],Se=ve.datum;Se.offset=ve.dp,Se.del=ve.del}}}function XD(e,t){var r=0,i=e.offset;return t&&(i*=-Gre,r=e.offset*Hre),{x:r,y:i}}function jre(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(ji+Fa),i=r+t*(e.txwidth+Fa),a=e.anchor==="middle";return a&&(r-=e.tx2width/2,i+=e.txwidth/2+Fa),{alignShift:t,textShiftX:r,text2ShiftX:i}}function jD(e,t,r,i){var a=function(l){return l*r},s=function(l){return l*i};e.each(function(l){var f=Md.select(this);if(l.del)return f.remove();var h=f.select("text.nums"),v=l.anchor,m=v==="end"?-1:1,_=jre(l),T=XD(l,t),S=T.x,C=T.y,E=v==="middle",L="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,z;E?z="M-"+a(l.bx/2+l.tx2width/2)+","+s(C-l.by/2)+"h"+a(l.bx)+"v"+s(l.by)+"h-"+a(l.bx)+"Z":L?z="M0,0L"+a(m*ji+S)+","+s(ji+C)+"v"+s(l.by/2-ji)+"h"+a(m*l.bx)+"v-"+s(l.by)+"H"+a(m*ji+S)+"V"+s(C-ji)+"Z":z="M"+a(m*ji+S)+","+s(C-l.by/2)+"h"+a(m*l.bx)+"v"+s(l.by)+"h"+a(-m*l.bx)+"Z",f.select("path").attr("d",z);var B=S+_.textShiftX,q=C+l.ty0-l.by/2+Fa,I=l.textAlign||"auto";I!=="auto"&&(I==="left"&&v!=="start"?(h.attr("text-anchor","start"),B=E?-l.bx/2-l.tx2width/2+Fa:-l.bx-Fa):I==="right"&&v!=="end"&&(h.attr("text-anchor","end"),B=E?l.bx/2-l.tx2width/2-Fa:l.bx+Fa)),h.call(Kl.positionText,a(B),s(q)),l.tx2width&&(f.select("text.name").call(Kl.positionText,a(_.text2ShiftX+_.alignShift*Fa+S),s(C+l.ty0-l.by/2+Fa)),f.select("rect").call(zf.setRect,a(_.text2ShiftX+(_.alignShift-1)*l.tx2width/2+S),s(C-l.by/2-1),a(l.tx2width),s(l.by+2)))})}function Jre(e,t){var r=e.index,i=e.trace||{},a=e.cd[0],s=e.cd[r]||{};function l(T){return T||Tc(T)&&T===0}var f=Array.isArray(r)?function(T,S){var C=hn.castOption(a,r,T);return l(C)?C:hn.extractOption({},i,"",S)}:function(T,S){return hn.extractOption(s,i,T,S)};function h(T,S,C){var E=f(S,C);l(E)&&(e[T]=E)}if(h("hoverinfo","hi","hoverinfo"),h("bgcolor","hbg","hoverlabel.bgcolor"),h("borderColor","hbc","hoverlabel.bordercolor"),h("fontFamily","htf","hoverlabel.font.family"),h("fontSize","hts","hoverlabel.font.size"),h("fontColor","htc","hoverlabel.font.color"),h("fontWeight","htw","hoverlabel.font.weight"),h("fontStyle","hty","hoverlabel.font.style"),h("fontVariant","htv","hoverlabel.font.variant"),h("nameLength","hnl","hoverlabel.namelength"),h("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&i.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=hn.constrain(e.x0,0,e.xa._length),e.x1=hn.constrain(e.x1,0,e.xa._length),e.y0=hn.constrain(e.y0,0,e.ya._length),e.y1=hn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:If.hoverLabelText(e.xa,e.xLabelVal,i.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:If.hoverLabelText(e.ya,e.yLabelVal,i.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var v=If.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+v+" / -"+If.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+v,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var m=If.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+m+" / -"+If.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+m,t==="y"&&(e.distance+=1)}var _=e.hoverinfo||e.trace.hoverinfo;return _&&_!=="all"&&(_=Array.isArray(_)?_:_.split("+"),_.indexOf("x")===-1&&(e.xLabel=void 0),_.indexOf("y")===-1&&(e.yLabel=void 0),_.indexOf("z")===-1&&(e.zLabel=void 0),_.indexOf("text")===-1&&(e.text=void 0),_.indexOf("name")===-1&&(e.name=void 0)),e}function UD(e,t,r){var i=r.container,a=r.fullLayout,s=a._size,l=r.event,f=!!t.hLinePoint,h=!!t.vLinePoint,v,m;if(i.selectAll(".spikeline").remove(),!!(h||f)){var _=ro.combine(a.plot_bgcolor,a.paper_bgcolor);if(f){var T=t.hLinePoint,S,C;v=T&&T.xa,m=T&&T.ya;var E=m.spikesnap;E==="cursor"?(S=l.pointerX,C=l.pointerY):(S=v._offset+T.x,C=m._offset+T.y);var L=qD.readability(T.color,_)<1.5?ro.contrast(_):T.color,z=m.spikemode,B=m.spikethickness,q=m.spikecolor||L,I=If.getPxPosition(e,m),O,H;if(z.indexOf("toaxis")!==-1||z.indexOf("across")!==-1){if(z.indexOf("toaxis")!==-1&&(O=I,H=S),z.indexOf("across")!==-1){var V=m._counterDomainMin,W=m._counterDomainMax;m.anchor==="free"&&(V=Math.min(V,m.position),W=Math.max(W,m.position)),O=s.l+V*s.w,H=s.l+W*s.w}i.insert("line",":first-child").attr({x1:O,x2:H,y1:C,y2:C,"stroke-width":B,stroke:q,"stroke-dasharray":zf.dashStyle(m.spikedash,B)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:O,x2:H,y1:C,y2:C,"stroke-width":B+2,stroke:_}).classed("spikeline",!0).classed("crisp",!0)}z.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:I+(m.side!=="right"?B:-B),cy:C,r:B,fill:q}).classed("spikeline",!0)}if(h){var J=t.vLinePoint,te,ne;v=J&&J.xa,m=J&&J.ya;var oe=v.spikesnap;oe==="cursor"?(te=l.pointerX,ne=l.pointerY):(te=v._offset+J.x,ne=m._offset+J.y);var fe=qD.readability(J.color,_)<1.5?ro.contrast(_):J.color,ve=v.spikemode,Se=v.spikethickness,Me=v.spikecolor||fe,Ae=If.getPxPosition(e,v),we,Te;if(ve.indexOf("toaxis")!==-1||ve.indexOf("across")!==-1){if(ve.indexOf("toaxis")!==-1&&(we=Ae,Te=ne),ve.indexOf("across")!==-1){var Ce=v._counterDomainMin,Le=v._counterDomainMax;v.anchor==="free"&&(Ce=Math.min(Ce,v.position),Le=Math.max(Le,v.position)),we=s.t+(1-Le)*s.h,Te=s.t+(1-Ce)*s.h}i.insert("line",":first-child").attr({x1:te,x2:te,y1:we,y2:Te,"stroke-width":Se,stroke:Me,"stroke-dasharray":zf.dashStyle(v.spikedash,Se)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:te,x2:te,y1:we,y2:Te,"stroke-width":Se+2,stroke:_}).classed("spikeline",!0).classed("crisp",!0)}ve.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:te,cy:Ae-(v.side!=="top"?Se:-Se),r:Se,fill:Me}).classed("spikeline",!0)}}}function Kre(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var i=r.length-1;i>=0;i--){var a=r[i],s=e._hoverdata[i];if(a.curveNumber!==s.curveNumber||String(a.pointNumber)!==String(s.pointNumber)||String(a.pointNumbers)!==String(s.pointNumbers)||a.binNumber!==s.binNumber)return!0}return!1}function VD(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function HD(e,t){return Kl.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Qre(e,t){for(var r=t.charAt(0),i=[],a=[],s=[],l=0;l{"use strict";var $re=Bt(),eae=Oa(),tae=bc().isUnifiedHover;QD.exports=function(t,r,i,a){a=a||{};var s=r.legend;function l(f){a.font[f]||(a.font[f]=s?r.legend.font[f]:r.font[f])}r&&tae(r.hovermode)&&(a.font||(a.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),s?(a.bgcolor||(a.bgcolor=eae.combine(r.legend.bgcolor,r.paper_bgcolor)),a.bordercolor||(a.bordercolor=r.legend.bordercolor)):a.bgcolor||(a.bgcolor=r.paper_bgcolor)),i("hoverlabel.bgcolor",a.bgcolor),i("hoverlabel.bordercolor",a.bordercolor),i("hoverlabel.namelength",a.namelength),i("hoverlabel.showarrow",a.showarrow),$re.coerceFont(i,"hoverlabel.font",a.font),i("hoverlabel.align",a.align)}});var eP=me((E1e,$D)=>{"use strict";var rae=Bt(),aae=P2(),iae=f0();$D.exports=function(t,r){function i(a,s){return rae.coerce(t,r,iae,a,s)}aae(t,r,i)}});var aP=me((L1e,rP)=>{"use strict";var tP=Bt(),nae=r_(),oae=P2();rP.exports=function(t,r,i,a){function s(f,h){return tP.coerce(t,r,nae,f,h)}var l=tP.extendFlat({},a.hoverlabel);r.hovertemplate&&(l.namelength=-1),oae(t,r,s,l)}});var y4=me((D1e,iP)=>{"use strict";var sae=Bt(),lae=f0();iP.exports=function(t,r){function i(a,s){return r[a]!==void 0?r[a]:sae.coerce(t,r,lae,a,s)}return i("clickmode"),i("hoversubplots"),i("hovermode")}});var sP=me((P1e,oP)=>{"use strict";var nP=Bt(),uae=f0(),fae=y4(),cae=P2();oP.exports=function(t,r){function i(m,_){return nP.coerce(t,r,uae,m,_)}var a=fae(t,r);a&&(i("hoverdistance"),i("spikedistance"));var s=i("dragmode");s==="select"&&i("selectdirection");var l=r._has("mapbox"),f=r._has("map"),h=r._has("geo"),v=r._basePlotModules.length;r.dragmode==="zoom"&&((l||f||h)&&v===1||(l||f)&&h&&v===2)&&(r.dragmode="pan"),cae(t,r,i),nP.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var fP=me((z1e,uP)=>{"use strict";var g4=Bt(),lP=la();uP.exports=function(t){var r=t.calcdata,i=t._fullLayout;function a(v){return function(m){return g4.coerceHoverinfo({hoverinfo:m},{_module:v._module},i)}}for(var s=0;s{"use strict";var vae=la(),dae=m4().hover;cP.exports=function(t,r,i){var a=vae.getComponentMethod("annotations","onClick")(t,t._hoverdata);i!==void 0&&dae(t,r,i,!0);function s(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(a&&a.then?a.then(s):s(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Rf=me((R1e,pP)=>{"use strict";var pae=Ja(),z2=Bt(),mae=jl(),sg=bc(),vP=f0(),dP=m4();pP.exports={moduleType:"component",name:"fx",constants:Cy(),schema:{layout:vP},attributes:r_(),layoutAttributes:vP,supplyLayoutGlobalDefaults:eP(),supplyDefaults:aP(),supplyLayoutDefaults:sP(),calc:fP(),getDistanceFunction:sg.getDistanceFunction,getClosest:sg.getClosest,inbox:sg.inbox,quadrature:sg.quadrature,appendArrayPointValue:sg.appendArrayPointValue,castHoverOption:gae,castHoverinfo:_ae,hover:dP.hover,unhover:mae.unhover,loneHover:dP.loneHover,loneUnhover:yae,click:hP()};function yae(e){var t=z2.isD3Selection(e)?e:pae.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function gae(e,t,r){return z2.castOption(e,t,"hoverlabel."+r)}function _ae(e,t,r){function i(a){return z2.coerceHoverinfo({hoverinfo:a},{_module:e._module},t)}return z2.castOption(e,r,"hoverinfo",i)}});var kd=me(Ac=>{"use strict";Ac.selectMode=function(e){return e==="lasso"||e==="select"};Ac.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ac.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Ac.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ac.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Ac.selectingOrDrawing=function(e){return Ac.freeMode(e)||Ac.rectMode(e)}});var I2=me((q1e,mP)=>{"use strict";mP.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(i){i.regl&&i.regl.clear({color:!0,depth:!0})})}});var R2=me((N1e,yP)=>{"use strict";yP.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var q2=me((B1e,gP)=>{"use strict";var F2=32;gP.exports={CIRCLE_SIDES:F2,i000:0,i090:F2/4,i180:F2/2,i270:F2/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var N2=me((O1e,xP)=>{"use strict";var xae=Bt().strTranslate;function _P(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function bae(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function wae(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return _P(e,r[t])}}function Tae(e){return xae(e.xaxis._offset,e.yaxis._offset)}xP.exports={p2r:_P,r2p:bae,axValue:wae,getTransform:Tae}});var Uh=me(Mc=>{"use strict";var Aae=n5(),TP=q2(),Y0=TP.CIRCLE_SIDES,_4=TP.SQRT2,AP=N2(),bP=AP.p2r,wP=AP.r2p,Mae=[0,3,4,5,6,1,2],Sae=[0,3,4,1,2];Mc.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",i=0;i0&&h{"use strict";var MP=Xn(),LP=kd(),kae=LP.drawMode,Cae=LP.openMode,W0=q2(),SP=W0.i000,kP=W0.i090,CP=W0.i180,EP=W0.i270,Eae=W0.cos45,Lae=W0.sin45,DP=N2(),O2=DP.p2r,Vh=DP.r2p,Dae=Ph(),Pae=Dae.clearOutline,U2=Uh(),zae=U2.readPaths,Iae=U2.writePaths,Rae=U2.ellipseOver,Fae=U2.fixDatesForPaths;function qae(e,t){if(e.length){var r=e[0][0];if(r){var i=t.gd,a=t.isActiveShape,s=t.dragmode,l=(i.layout||{}).shapes||[];if(!kae(s)&&a!==void 0){var f=i._fullLayout._activeShapeIndex;if(f{"use strict";var Nae=kd(),Bae=Nae.selectMode,Oae=Ph(),Uae=Oae.clearOutline,x4=Uh(),Vae=x4.readPaths,Hae=x4.writePaths,Gae=x4.fixDatesForPaths;IP.exports=function(t,r){if(t.length){var i=t[0][0];if(i){var a=i.getAttribute("d"),s=r.gd,l=s._fullLayout.newselection,f=r.plotinfo,h=f.xaxis,v=f.yaxis,m=r.isActiveSelection,_=r.dragmode,T=(s.layout||{}).selections||[];if(!Bae(_)&&m!==void 0){var S=s._fullLayout._activeSelectionIndex;if(S{"use strict";RP.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Hh=me(ho=>{"use strict";var Cd=ug(),FP=Bt(),H2=Xi();ho.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};ho.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};ho.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};ho.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};ho.extractPathCoords=function(e,t,r){var i=[],a=e.match(Cd.segmentRE);return a.forEach(function(s){var l=t[s.charAt(0)].drawn;if(l!==void 0){var f=s.substr(1).match(Cd.paramRE);if(!(!f||f.lengthS&&(E="X"),E});return v>S&&(C=C.replace(/[\s,]*X.*/,""),FP.log("Ignoring extra params in segment "+h)),m+C})}function fg(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var T4=me((Y1e,OP)=>{"use strict";var Yae=Bt(),X0=Xi(),qP=co(),NP=bi(),Wae=Uh().readPaths,w4=Hh(),Xae=w4.getPathString,BP=c_(),jae=ts().FROM_TL;OP.exports=function(t,r,i,a){if(a.selectAll(".shape-label").remove(),!!(i.label.text||i.label.texttemplate)){var s;if(i.label.texttemplate){var l={};if(i.type!=="path"){var f=X0.getFromId(t,i.xref),h=X0.getFromId(t,i.yref);for(var v in BP){var m=BP[v](i,f,h);m!==void 0&&(l[v]=m)}}s=Yae.texttemplateStringForShapes(i.label.texttemplate,{},t._fullLayout._d3locale,l)}else s=i.label.text;var _={"data-index":r},T=i.label.font,S={"data-notex":1},C=a.append("g").attr(_).classed("shape-label",!0),E=C.append("text").attr(S).classed("shape-label-text",!0).text(s),L,z,B,q;if(i.path){var I=Xae(t,i),O=Wae(I,t);L=1/0,B=1/0,z=-1/0,q=-1/0;for(var H=0;H=e?a=t-i:a=i-t,-180/Math.PI*Math.atan2(a,s)}function Kae(e,t,r,i,a,s,l){var f=a.label.textposition,h=a.label.textangle,v=a.label.padding,m=a.type,_=Math.PI/180*s,T=Math.sin(_),S=Math.cos(_),C=a.label.xanchor,E=a.label.yanchor,L,z,B,q;if(m==="line"){f==="start"?(L=e,z=t):f==="end"?(L=r,z=i):(L=(e+r)/2,z=(t+i)/2),C==="auto"&&(f==="start"?h==="auto"?r>e?C="left":re?C="right":re?C="right":re?C="left":r{"use strict";var Qae=Bt(),$ae=Qae.strTranslate,UP=jl(),GP=kd(),eie=GP.drawMode,ZP=GP.selectMode,YP=la(),VP=Oa(),Z2=q2(),tie=Z2.i000,rie=Z2.i090,aie=Z2.i180,iie=Z2.i270,nie=Ph(),WP=nie.clearOutlineControllers,M4=Uh(),G2=M4.pointsOnRectangle,A4=M4.pointsOnEllipse,oie=M4.writePaths,sie=V2().newShapes,lie=V2().createShapeObj,uie=b4(),fie=T4();XP.exports=function e(t,r,i,a){a||(a=0);var s=i.gd;function l(){e(t,r,i,a++),(A4(t[0])||i.hasText)&&f({redrawing:!0})}function f(Ae){var we={};i.isActiveShape!==void 0&&(i.isActiveShape=!1,we=sie(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,we=uie(r,i),s._fullLayout._reselect=!0),Object.keys(we).length&&YP.call((Ae||{}).redrawing?"relayout":"_guiRelayout",s,we)}var h=s._fullLayout,v=h._zoomlayer,m=i.dragmode,_=eie(m),T=ZP(m);(_||T)&&(s._fullLayout._outlining=!0),WP(s),r.attr("d",oie(t));var S,C,E,L,z;if(!a&&(i.isActiveShape||i.isActiveSelection)){z=cie([],t);var B=v.append("g").attr("class","outline-controllers");te(B),Me()}if(_&&i.hasText){var q=v.select(".label-temp"),I=lie(r,i,i.dragmode);fie(s,"label-temp",I,q)}function O(Ae){E=+Ae.srcElement.getAttribute("data-i"),L=+Ae.srcElement.getAttribute("data-j"),S[E][L].moveFn=H}function H(Ae,we){if(t.length){var Te=z[E][L][1],Ce=z[E][L][2],Le=t[E],$e=Le.length;if(G2(Le)){var lt=Ae,it=we;if(i.isActiveSelection){var gt=HP(Le,L);gt[1]===Le[L][1]?it=0:lt=0}for(var We=0;We<$e;We++)if(We!==L){var Et=Le[We];Et[1]===Le[L][1]&&(Et[1]=Te+lt),Et[2]===Le[L][2]&&(Et[2]=Ce+it)}if(Le[L][1]=Te+lt,Le[L][2]=Ce+it,!G2(Le))for(var nt=0;nt<$e;nt++)for(var wt=0;wt1&&!(Ae.length===2&&Ae[1][0]==="Z")&&(L===0&&(Ae[0][0]="M"),t[E]=Ae,l(),f())}}function J(Ae,we){if(Ae===2){E=+we.srcElement.getAttribute("data-i"),L=+we.srcElement.getAttribute("data-j");var Te=t[E];!G2(Te)&&!A4(Te)&&W()}}function te(Ae){S=[];for(var we=0;we{"use strict";var vie=Ja(),ez=la(),jP=Bt(),j0=Xi(),die=Uh().readPaths,pie=Y2(),X2=T4(),tz=Ph().clearOutlineControllers,S4=Oa(),C4=bi(),mie=Ri().arrayEditor,JP=jl(),KP=Oh(),Ed=ug(),Us=Hh(),k4=Us.getPathString;iz.exports={draw:E4,drawOne:rz,eraseActiveShape:_ie,drawLabel:X2};function E4(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var i=t._plots[r].shapelayer;i&&(i.selectAll("path").remove(),i.selectAll("text").remove())}for(var a=0;al&&Gt>f&&!Lt.shiftKey?JP.getCursor(Ct/It,1-Mt/Gt):"move";KP(t,Ut),Et=Ut.split("-")[0]}}function vt(Lt){W2(e)||(h&&(z=Le(r.xanchor)),v&&(B=$e(r.yanchor)),r.type==="path"?ne=r.path:(S=h?r.x0:Le(r.x0),C=v?r.y0:$e(r.y0),E=h?r.x1:Le(r.x1),L=v?r.y1:$e(r.y1)),SL?(q=C,V="y0",I=L,W="y1"):(q=L,V="y1",I=C,W="y0"),xt(Lt),mt(a,r),Ft(t,r,e),We.moveFn=Et==="move"?pe:at,We.altKey=Lt.altKey)}function de(){W2(e)||(KP(t),Xe(a),az(t,e,r),ez.call("_guiRelayout",e,s.getUpdateObj()))}function ze(){W2(e)||Xe(a)}function pe(Lt,Tt){if(r.type==="path"){var It=function(Mt){return Mt},Gt=It,Ct=It;h?T("xanchor",r.xanchor=lt(z+Lt)):(Gt=function(Ut){return lt(Le(Ut)+Lt)},fe&&fe.type==="date"&&(Gt=Us.encodeDate(Gt))),v?T("yanchor",r.yanchor=it(B+Tt)):(Ct=function(Ut){return it($e(Ut)+Tt)},Se&&Se.type==="date"&&(Ct=Us.encodeDate(Ct))),T("path",r.path=QP(ne,Gt,Ct))}else h?T("xanchor",r.xanchor=lt(z+Lt)):(T("x0",r.x0=lt(S+Lt)),T("x1",r.x1=lt(E+Lt))),v?T("yanchor",r.yanchor=it(B+Tt)):(T("y0",r.y0=it(C+Tt)),T("y1",r.y1=it(L+Tt)));t.attr("d",k4(e,r)),mt(a,r),X2(e,i,r,oe)}function at(Lt,Tt){if(_){var It=function(tr){return tr},Gt=It,Ct=It;h?T("xanchor",r.xanchor=lt(z+Lt)):(Gt=function(ar){return lt(Le(ar)+Lt)},fe&&fe.type==="date"&&(Gt=Us.encodeDate(Gt))),v?T("yanchor",r.yanchor=it(B+Tt)):(Ct=function(ar){return it($e(ar)+Tt)},Se&&Se.type==="date"&&(Ct=Us.encodeDate(Ct))),T("path",r.path=QP(ne,Gt,Ct))}else if(m){if(Et==="resize-over-start-point"){var Mt=S+Lt,Ut=v?C-Tt:C+Tt;T("x0",r.x0=h?Mt:lt(Mt)),T("y0",r.y0=v?Ut:it(Ut))}else if(Et==="resize-over-end-point"){var Ot=E+Lt,Be=v?L-Tt:L+Tt;T("x1",r.x1=h?Ot:lt(Ot)),T("y1",r.y1=v?Be:it(Be))}}else{var ft=function(tr){return Et.indexOf(tr)!==-1},or=ft("n"),Cr=ft("s"),Sr=ft("w"),Oe=ft("e"),yt=or?q+Tt:q,qt=Cr?I+Tt:I,Qt=Sr?O+Lt:O,Vt=Oe?H+Lt:H;v&&(or&&(yt=q-Tt),Cr&&(qt=I-Tt)),(!v&&qt-yt>f||v&&yt-qt>f)&&(T(V,r[V]=v?yt:it(yt)),T(W,r[W]=v?qt:it(qt))),Vt-Qt>l&&(T(J,r[J]=h?Qt:lt(Qt)),T(te,r[te]=h?Vt:lt(Vt)))}t.attr("d",k4(e,r)),mt(a,r),X2(e,i,r,oe)}function mt(Lt,Tt){(h||v)&&It();function It(){var Gt=Tt.type!=="path",Ct=Lt.selectAll(".visual-cue").data([0]),Mt=1;Ct.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Mt}).classed("visual-cue",!0);var Ut=Le(h?Tt.xanchor:jP.midRange(Gt?[Tt.x0,Tt.x1]:Us.extractPathCoords(Tt.path,Ed.paramIsX))),Ot=$e(v?Tt.yanchor:jP.midRange(Gt?[Tt.y0,Tt.y1]:Us.extractPathCoords(Tt.path,Ed.paramIsY)));if(Ut=Us.roundPositionForSharpStrokeRendering(Ut,Mt),Ot=Us.roundPositionForSharpStrokeRendering(Ot,Mt),h&&v){var Be="M"+(Ut-1-Mt)+","+(Ot-1-Mt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ct.attr("d",Be)}else if(h){var ft="M"+(Ut-1-Mt)+","+(Ot-9-Mt)+"v18 h2 v-18 Z";Ct.attr("d",ft)}else{var or="M"+(Ut-9-Mt)+","+(Ot-1-Mt)+"h18 v2 h-18 Z";Ct.attr("d",or)}}}function Xe(Lt){Lt.selectAll(".visual-cue").remove()}function Ft(Lt,Tt,It){var Gt=Tt.xref,Ct=Tt.yref,Mt=j0.getFromId(It,Gt),Ut=j0.getFromId(It,Ct),Ot="";Gt!=="paper"&&!Mt.autorange&&(Ot+=Gt),Ct!=="paper"&&!Ut.autorange&&(Ot+=Ct),C4.setClipUrl(Lt,Ot?"clip"+It._fullLayout._uid+Ot:null,It)}}function QP(e,t,r){return e.replace(Ed.segmentRE,function(i){var a=0,s=i.charAt(0),l=Ed.paramIsX[s],f=Ed.paramIsY[s],h=Ed.numParams[s],v=i.substr(1).replace(Ed.paramRE,function(m){return a>=h||(l[a]?m=t(m):f[a]&&(m=r(m)),a++),m});return s+v})}function gie(e,t){if(j2(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){$P(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=$P,E4(e)}}}function $P(e){if(j2(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(tz(e),delete e._fullLayout._activeShapeIndex,E4(e))}}function _ie(e){if(j2(e)){tz(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var Ql=la(),nz=eo(),oz=Xn(),Ka=R2(),xie=J2().eraseActiveShape,K2=Bt(),za=K2._,Qa=vz.exports={};Qa.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?za(e,"Download plot as a PNG"):za(e,"Download plot")},icon:Ka.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};K2.notifier(za(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(i){i in t&&(r[i]=t[i])}),Ql.call("downloadImage",e,r).then(function(i){K2.notifier(za(e,"Snapshot succeeded")+" - "+i,"long")}).catch(function(){K2.notifier(za(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Qa.sendDataToCloud={name:"sendDataToCloud",title:function(e){return za(e,"Edit in Chart Studio")},icon:Ka.disk,click:function(e){nz.sendDataToCloud(e)}};Qa.editInChartStudio={name:"editInChartStudio",title:function(e){return za(e,"Edit in Chart Studio")},icon:Ka.pencil,click:function(e){nz.sendDataToCloud(e)}};Qa.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return za(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ka.zoombox,click:ns};Qa.pan2d={name:"pan2d",_cat:"pan",title:function(e){return za(e,"Pan")},attr:"dragmode",val:"pan",icon:Ka.pan,click:ns};Qa.select2d={name:"select2d",_cat:"select",title:function(e){return za(e,"Box Select")},attr:"dragmode",val:"select",icon:Ka.selectbox,click:ns};Qa.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return za(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ka.lasso,click:ns};Qa.drawclosedpath={name:"drawclosedpath",title:function(e){return za(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ka.drawclosedpath,click:ns};Qa.drawopenpath={name:"drawopenpath",title:function(e){return za(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ka.drawopenpath,click:ns};Qa.drawline={name:"drawline",title:function(e){return za(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ka.drawline,click:ns};Qa.drawrect={name:"drawrect",title:function(e){return za(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ka.drawrect,click:ns};Qa.drawcircle={name:"drawcircle",title:function(e){return za(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ka.drawcircle,click:ns};Qa.eraseshape={name:"eraseshape",title:function(e){return za(e,"Erase active shape")},icon:Ka.eraseshape,click:xie};Qa.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return za(e,"Zoom in")},attr:"zoom",val:"in",icon:Ka.zoom_plus,click:ns};Qa.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return za(e,"Zoom out")},attr:"zoom",val:"out",icon:Ka.zoom_minus,click:ns};Qa.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return za(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ka.autoscale,click:ns};Qa.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return za(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ka.home,click:ns};Qa.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return za(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ka.tooltip_basic,gravity:"ne",click:ns};Qa.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return za(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ka.tooltip_compare,gravity:"ne",click:ns};function ns(e,t){var r=t.currentTarget,i=r.getAttribute("data-attr"),a=r.getAttribute("data-val")||!0,s=e._fullLayout,l={},f=oz.list(e,null,!0),h=s._cartesianSpikesEnabled,v,m;if(i==="zoom"){var _=a==="in"?.5:2,T=(1+_)/2,S=(1-_)/2,C,E;for(m=0;m{"use strict";var dz=P4(),Tie=Object.keys(dz),pz=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],mz=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(pz),K0=[],Aie=function(e){if(mz.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();K0.indexOf(t)===-1&&K0.push(t),K0.indexOf(r)===-1&&K0.push(r)}};Tie.forEach(function(e){Aie(dz[e])});K0.sort();yz.exports={DRAW_MODES:pz,backButtons:mz,foreButtons:K0}});var I4=me((Q1e,gz)=>{"use strict";var K1e=z4();gz.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var xz=me(($1e,_z)=>{"use strict";var Mie=Bt(),cg=Oa(),Sie=Ri(),kie=I4();_z.exports=function(t,r){var i=t.modebar||{},a=Sie.newContainer(r,"modebar");function s(f,h){return Mie.coerce(i,a,kie,f,h)}s("orientation"),s("bgcolor",cg.addOpacity(r.paper_bgcolor,.5));var l=cg.contrast(cg.rgb(r.modebar.bgcolor));s("color",cg.addOpacity(l,.3)),s("activecolor",cg.addOpacity(l,.7)),s("uirevision",r.uirevision),s("add"),s("remove")}});var Az=me((e_e,Tz)=>{"use strict";var R4=Ja(),Cie=Da(),$2=Bt(),bz=R2(),Eie=Z1().version,Lie=new DOMParser;function wz(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ff=wz.prototype;Ff.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,i=this.graphInfo._fullLayout,a="modebar-"+i._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),i.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var s=i.modebar,l="#"+a+" .modebar-group";document.querySelectorAll(l).forEach(function(_){_.style.backgroundColor=s.bgcolor});var f=!this.hasButtons(t),h=this.hasLogo!==r.displaylogo,v=this.locale!==r.locale;if(this.locale=r.locale,(f||h||v)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var m=this.getLogo();r.watermark&&(m.className=m.className+" watermark"),i.modebar.orientation==="v"?this.element.insertBefore(m,this.element.childNodes[0]):this.element.appendChild(m),this.hasLogo=!0}this.updateActiveButton(),$2.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+s.activecolor,"fill: "+s.color,this.element)};Ff.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var i=t.createGroup();r.forEach(function(a){var s=a.name;if(!s)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(s)!==-1)throw new Error("button name '"+s+"' is taken");t.buttonsNames.push(s);var l=t.createButton(a);t.buttonElements.push(l),i.appendChild(l)}),t.element.appendChild(i)})};Ff.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Ff.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var i=e.title;i===void 0?i=e.name:typeof i=="function"&&(i=i(this.graphInfo)),(i||i===0)&&(r.setAttribute("data-title",i),r.setAttribute("aria-label",i)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),r.setAttribute("data-val",a));var s=e.click;if(typeof s!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(f){e.click(t.graphInfo,f),t.updateActiveButton(f.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&R4.select(r).classed("active",!0);var l=e.icon;return typeof l=="function"?r.appendChild(l()):r.appendChild(this.createIcon(l||bz.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Ff.createIcon=function(e){var t=Cie(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",i;if(e.path){i=document.createElementNS(r,"svg"),i.setAttribute("viewBox",[0,0,e.width,t].join(" ")),i.setAttribute("class","icon");var a=document.createElementNS(r,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),i.appendChild(a)}if(e.svg){var s=Lie.parseFromString(e.svg,"application/xml");i=s.childNodes[0]}return i.setAttribute("height","1em"),i.setAttribute("width","1em"),i};Ff.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(i){var a=i.getAttribute("data-val")||!0,s=i.getAttribute("data-attr"),l=i.getAttribute("data-toggle")==="true",f=R4.select(i),h=function(_,T){var S=t.modebar,C=_.querySelector(".icon path");C&&(T||_.matches(":hover")?C.style.fill=S.activecolor:C.style.fill=S.color)};if(l){if(s===r){var v=!f.classed("active");f.classed("active",v),h(i,v)}}else{var m=s===null?s:$2.nestedProperty(t,s).get();f.classed("active",m===a),h(i,m===a)}})};Ff.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var zie=Xn(),Mz=rs(),F4=la(),Iie=bc().isUnifiedHover,Rie=Az(),ex=P4(),Fie=z4().DRAW_MODES,qie=Bt().extendDeep;Sz.exports=function(t){var r=t._fullLayout,i=t._context,a=r._modeBar;if(!i.displayModeBar&&!i.watermark){a&&(a.destroy(),delete r._modeBar);return}if(!Array.isArray(i.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(i.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var s=i.modeBarButtons,l;Array.isArray(s)&&s.length?l=Hie(s):!i.displayModeBar&&i.watermark?l=[]:l=Nie(t),a?a.update(t,l):r._modeBar=Rie(t,l)};function Nie(e){var t=e._fullLayout,r=e._fullData,i=e._context;function a(we,Te){if(typeof Te=="string"){if(Te.toLowerCase()===we.toLowerCase())return!0}else{var Ce=Te.name,Le=Te._cat||Te.name;if(Ce===we||Le===we.toLowerCase())return!0}return!1}var s=t.modebar.add;typeof s=="string"&&(s=[s]);var l=t.modebar.remove;typeof l=="string"&&(l=[l]);var f=i.modeBarButtonsToAdd.concat(s.filter(function(we){for(var Te=0;Te1?(te=["toggleHover"],ne=["resetViews"]):_?(J=["zoomInGeo","zoomOutGeo"],te=["hoverClosestGeo"],ne=["resetGeo"]):m?(te=["hoverClosest3d"],ne=["resetCameraDefault3d","resetCameraLastSave3d"]):E?(J=["zoomInMapbox","zoomOutMapbox"],te=["toggleHover"],ne=["resetViewMapbox"]):L?(J=["zoomInMap","zoomOutMap"],te=["toggleHover"],ne=["resetViewMap"]):T?te=["hoverClosestPie"]:q?(te=["hoverClosestCartesian","hoverCompareCartesian"],ne=["resetViewSankey"]):te=["toggleHover"],v&&te.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Uie(r)||O)&&(te=[]),v&&!I&&(J=["zoomIn2d","zoomOut2d","autoScale2d"],ne[0]!=="resetViews"&&(ne=["resetScale2d"])),m?oe=["zoom3d","pan3d","orbitRotation","tableRotation"]:v&&!I||C?oe=["zoom2d","pan2d"]:E||L||_?oe=["pan2d"]:z&&(oe=["zoom2d"]),Oie(r)&&oe.push("select2d","lasso2d");var fe=[],ve=function(we){fe.indexOf(we)===-1&&te.indexOf(we)!==-1&&fe.push(we)};if(Array.isArray(f)){for(var Se=[],Me=0;Me{"use strict";Cz.exports={moduleType:"component",name:"modebar",layoutAttributes:I4(),supplyLayoutDefaults:xz(),manage:kz()}});var N4=me((a_e,Ez)=>{"use strict";var Gie=ts().FROM_BL;Ez.exports=function(t,r,i){i===void 0&&(i=Gie[t.constraintoward||"center"]);var a=[t.r2l(t.range[0]),t.r2l(t.range[1])],s=a[0]+(a[1]-a[0])*i;t.range=t._input.range=[t.l2r(s+(a[0]-s)*r),t.l2r(s+(a[1]-s)*r)],t.setScale()}});var vg=me(hg=>{"use strict";var Ld=Bt(),B4=Qy(),Bu=Xn().id2name,Zie=Fu(),Lz=N4(),Yie=n2(),Wie=Zi().ALMOST_EQUAL,Xie=ts().FROM_BL;hg.handleDefaults=function(e,t,r){var i=r.axIds,a=r.axHasImage,s=t._axisConstraintGroups=[],l=t._axisMatchGroups=[],f,h,v,m,_,T,S,C;for(f=0;fs?r.substr(s):i.substr(a))+l}function Jie(e,t){for(var r=t._size,i=r.h/r.w,a={},s=Object.keys(e),l=0;lWie*C&&!B)){for(s=0;soe&&Cete&&(te=Ce);var $e=(te-J)/(2*ne);_/=$e,J=h.l2r(J),te=h.l2r(te),h.range=h._input.range=H{"use strict";var rx=Ja(),os=la(),cl=eo(),$l=Bt(),V4=co(),H4=I2(),dg=Oa(),Q0=bi(),Iz=Jy(),Bz=q4(),pg=Xi(),Sc=ts(),Oz=vg(),Kie=Oz.enforce,Qie=Oz.clean,Rz=Qy().doAutoRange,Uz="start",$ie="middle",Vz="end",ene=Ao().zindexSeparator;ao.layoutStyles=function(e){return $l.syncOrAsync([cl.doAutoMargin,rne],e)};function tne(e,t,r){for(var i=0;i=e[1]||a[1]<=e[0])&&s[0]t[0])return!0}return!1}function rne(e){var t=e._fullLayout,r=t._size,i=r.p,a=pg.list(e,"",!0),s,l,f,h,v,m;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(Q0.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),ao.drawMainTitle(e),Bz.manage(e),!t._has("cartesian"))return cl.previousPromises(e);function _(vt,de,ze){var pe=vt._lw/2;if(vt._id.charAt(0)==="x"){if(de){if(ze==="top")return de._offset-i-pe}else return r.t+r.h*(1-(vt.position||0))+pe%1;return de._offset+de._length+i+pe}if(de){if(ze==="right")return de._offset+de._length+i+pe}else return r.l+r.w*(vt.position||0)+pe%1;return de._offset-i-pe}for(s=0;s0){one(e,s,v,h),f.attr({x:l,y:s,"text-anchor":i,dy:Nz(t.yanchor)}).call(V4.positionText,l,s);var m=(t.text.match(V4.BR_TAG_ALL)||[]).length;if(m){var _=Sc.LINE_SPACING*m+Sc.MID_SHIFT;t.y===0&&(_=-_),f.selectAll(".line").each(function(){var L=+this.getAttribute("dy").slice(0,-2)-_+"em";this.setAttribute("dy",L)})}var T=rx.select(e).selectAll(".gtitle-subtitle");if(T.node()){var S=f.node().getBBox(),C=S.y+S.height,E=C+Iz.SUBTITLE_PADDING_EM*t.subtitle.font.size;T.attr({x:l,y:E,"text-anchor":i,dy:Nz(t.yanchor)}).call(V4.positionText,l,E)}}}};function ane(e,t,r,i,a){var s=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=$l.isTopAnchor(t)?i:i-a,f=r==="b"?s-l:l;return $l.isTopAnchor(t)&&r==="t"||$l.isBottomAnchor(t)&&r==="b"?!1:f.5?"t":"b",l=e._fullLayout.margin[s],f=0;return t.yref==="paper"?f=r+t.pad.t+t.pad.b:t.yref==="container"&&(f=ine(s,i,a,e._fullLayout.height,r)+t.pad.t+t.pad.b),f>l?f:0}function one(e,t,r,i){var a="title.automargin",s=e._fullLayout.title,l=s.y>.5?"t":"b",f={x:s.x,y:s.y,t:0,b:0},h={};s.yref==="paper"&&ane(e,s,l,t,i)?f[l]=r:s.yref==="container"&&(h[l]=r,e._fullLayout._reservedMargin[a]=h),cl.allowAutoMargin(e,a),cl.autoMargin(e,a,f)}function sne(e,t){var r=e.title,i=e._size,a=0;switch(t===Uz?a=r.pad.l:t===Vz&&(a=-r.pad.r),r.xref){case"paper":return i.l+i.w*r.x+a;case"container":default:return e.width*r.x+a}}function lne(e,t){var r=e.title,i=e._size,a=0;if(t==="0em"||!t?a=-r.pad.b:t===Sc.CAP_SHIFT+"em"&&(a=r.pad.t),r.y==="auto")return i.t/2;switch(r.yref){case"paper":return i.t+i.h-i.h*r.y+a;case"container":default:return e.height-e.height*r.y+a}}function Nz(e){return e==="top"?Sc.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Sc.MID_SHIFT+"em"}function une(e){var t=e.title,r=$ie;return $l.isRightAnchor(t)?r=Vz:$l.isLeftAnchor(t)&&(r=Uz),r}function fne(e){var t=e.title,r="0em";return $l.isTopAnchor(t)?r=Sc.CAP_SHIFT+"em":$l.isMiddleAnchor(t)&&(r=Sc.MID_SHIFT+"em"),r}ao.doTraceStyle=function(e){var t=e.calcdata,r=[],i;for(i=0;i{"use strict";var cne=Uh().readPaths,hne=Y2(),Hz=Ph().clearOutlineControllers,G4=Oa(),Gz=bi(),vne=Ri().arrayEditor,Zz=Hh(),dne=Zz.getPathString;Wz.exports={draw:ix,drawOne:Yz,activateLastSelection:yne};function ix(e){var t=e._fullLayout;Hz(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var i=t._plots[r].selectionLayer;i&&i.selectAll("path").remove()}for(var a=0;a=0;L--){var z=l.append("path").attr(h).style("opacity",L?.1:v).call(G4.stroke,_).call(G4.fill,m).call(Gz.dashLine,L?"solid":S,L?4+T:T);if(pne(z,e,i),C){var B=vne(e.layout,"selections",i);z.style({cursor:"move"});var q={element:z.node(),plotinfo:a,gd:e,editHelpers:B,isActiveSelection:!0},I=cne(f,e);hne(I,z,q)}else z.style("pointer-events",L?"all":"none");E[L]=z}var O=E[0],H=E[1];H.node().addEventListener("click",function(){return mne(e,O)})}}function pne(e,t,r){var i=r.xref+r.yref;Gz.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function mne(e,t){if(nx(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeSelectionIndex){Z4(e);return}e._fullLayout._activeSelectionIndex=i,e._fullLayout._deactivateSelection=Z4,ix(e)}}}function yne(e){if(nx(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=Z4,ix(e)}}function Z4(e){if(nx(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Hz(e),delete e._fullLayout._activeSelectionIndex,ix(e))}}});var jz=me((s_e,Xz)=>{function gne(){var e,t=0,r=!1;function i(a,s){return e.list.push({type:a,data:s?JSON.parse(JSON.stringify(s)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(a,s){return i("check",{seg1:a,seg2:s})},segmentChop:function(a,s){return i("div_seg",{seg:a,pt:s}),i("chop",{seg:a,pt:s})},statusRemove:function(a){return i("pop_seg",{seg:a})},segmentUpdate:function(a){return i("seg_update",{seg:a})},segmentNew:function(a,s){return i("new_seg",{seg:a,primary:s})},segmentRemove:function(a){return i("rem_seg",{seg:a})},tempStatus:function(a,s,l){return i("temp_status",{seg:a,above:s,below:l})},rewind:function(a){return i("rewind",{seg:a})},status:function(a,s,l){return i("status",{seg:a,above:s,below:l})},vert:function(a){return a===r?e:(r=a,i("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),i("log",{txt:a})},reset:function(){return i("reset")},selected:function(a){return i("selected",{segs:a})},chainStart:function(a){return i("chain_start",{seg:a})},chainRemoveHead:function(a,s){return i("chain_rem_head",{index:a,pt:s})},chainRemoveTail:function(a,s){return i("chain_rem_tail",{index:a,pt:s})},chainNew:function(a,s){return i("chain_new",{pt1:a,pt2:s})},chainMatch:function(a){return i("chain_match",{index:a})},chainClose:function(a){return i("chain_close",{index:a})},chainAddHead:function(a,s){return i("chain_add_head",{index:a,pt:s})},chainAddTail:function(a,s){return i("chain_add_tail",{index:a,pt:s})},chainConnect:function(a,s){return i("chain_con",{index1:a,index2:s})},chainReverse:function(a){return i("chain_rev",{index:a})},chainJoin:function(a,s){return i("chain_join",{index1:a,index2:s})},done:function(){return i("done")}},e}Xz.exports=gne});var Kz=me((l_e,Jz)=>{function _ne(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,i,a){var s=i[0],l=i[1],f=a[0],h=a[1],v=r[0],m=r[1];return(f-s)*(m-l)-(h-l)*(v-s)>=-e},pointBetween:function(r,i,a){var s=r[1]-i[1],l=a[0]-i[0],f=r[0]-i[0],h=a[1]-i[1],v=f*l+s*h;if(v-e)},pointsSameX:function(r,i){return Math.abs(r[0]-i[0])e!=f-s>e&&(l-m)*(s-_)/(f-_)+m-a>e&&(h=!h),l=m,f=_}return h}};return t}Jz.exports=_ne});var $z=me((u_e,Qz)=>{var xne={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var i=e.root,a=e.root.next;a!==null;){if(r(a)){t.prev=a.prev,t.next=a,a.prev.next=t,a.prev=t;return}i=a,a=a.next}i.next=t,t.prev=i,t.next=null},findTransition:function(t){for(var r=e.root,i=e.root.next;i!==null&&!t(i);)r=i,i=i.next;return{before:r===e.root?null:r,after:i,insert:function(a){return a.prev=r,a.next=i,r.next=a,i!==null&&(i.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};Qz.exports=xne});var tI=me((f_e,eI)=>{var mg=$z();function bne(e,t,r){function i(C,E){return{id:r?r.segmentId():-1,start:C,end:E,myFill:{above:null,below:null},otherFill:null}}function a(C,E,L){return{id:r?r.segmentId():-1,start:C,end:E,myFill:{above:L.myFill.above,below:L.myFill.below},otherFill:null}}var s=mg.create();function l(C,E,L,z,B,q){var I=t.pointsCompare(E,B);return I!==0?I:t.pointsSame(L,q)?0:C!==z?C?1:-1:t.pointAboveOrOnLine(L,z?B:q,z?q:B)?1:-1}function f(C,E){s.insertBefore(C,function(L){var z=l(C.isStart,C.pt,E,L.isStart,L.pt,L.other.pt);return z<0})}function h(C,E){var L=mg.node({isStart:!0,pt:C.start,seg:C,primary:E,other:null,status:null});return f(L,C.end),L}function v(C,E,L){var z=mg.node({isStart:!1,pt:E.end,seg:E,primary:L,other:C,status:null});C.other=z,f(z,C.pt)}function m(C,E){var L=h(C,E);return v(L,C,E),L}function _(C,E){r&&r.segmentChop(C.seg,E),C.other.remove(),C.seg.end=E,C.other.pt=E,f(C.other,C.pt)}function T(C,E){var L=a(E,C.seg.end,C.seg);return _(C,E),m(L,C.primary)}function S(C,E){var L=mg.create();function z(Se,Me){var Ae=Se.seg.start,we=Se.seg.end,Te=Me.seg.start,Ce=Me.seg.end;return t.pointsCollinear(Ae,Te,Ce)?t.pointsCollinear(we,Te,Ce)||t.pointAboveOrOnLine(we,Te,Ce)?1:-1:t.pointAboveOrOnLine(Ae,Te,Ce)?1:-1}function B(Se){return L.findTransition(function(Me){var Ae=z(Se,Me.ev);return Ae>0})}function q(Se,Me){var Ae=Se.seg,we=Me.seg,Te=Ae.start,Ce=Ae.end,Le=we.start,$e=we.end;r&&r.checkIntersection(Ae,we);var lt=t.linesIntersect(Te,Ce,Le,$e);if(lt===!1){if(!t.pointsCollinear(Te,Ce,Le)||t.pointsSame(Te,$e)||t.pointsSame(Ce,Le))return!1;var it=t.pointsSame(Te,Le),gt=t.pointsSame(Ce,$e);if(it&>)return Me;var We=!it&&t.pointBetween(Te,Le,$e),Et=!gt&&t.pointBetween(Ce,Le,$e);if(it)return Et?T(Me,Ce):T(Se,$e),Me;We&&(gt||(Et?T(Me,Ce):T(Se,$e)),T(Me,Te))}else lt.alongA===0&&(lt.alongB===-1?T(Se,Le):lt.alongB===0?T(Se,lt.pt):lt.alongB===1&&T(Se,$e)),lt.alongB===0&&(lt.alongA===-1?T(Me,Te):lt.alongA===0?T(Me,lt.pt):lt.alongA===1&&T(Me,Ce));return!1}for(var I=[];!s.isEmpty();){var O=s.getHead();if(r&&r.vert(O.pt[0]),O.isStart){let Se=function(){if(V){var Me=q(O,V);if(Me)return Me}return W?q(O,W):!1};var ve=Se;r&&r.segmentNew(O.seg,O.primary);var H=B(O),V=H.before?H.before.ev:null,W=H.after?H.after.ev:null;r&&r.tempStatus(O.seg,V?V.seg:!1,W?W.seg:!1);var J=Se();if(J){if(e){var te;O.seg.myFill.below===null?te=!0:te=O.seg.myFill.above!==O.seg.myFill.below,te&&(J.seg.myFill.above=!J.seg.myFill.above)}else J.seg.otherFill=O.seg.myFill;r&&r.segmentUpdate(J.seg),O.other.remove(),O.remove()}if(s.getHead()!==O){r&&r.rewind(O.seg);continue}if(e){var te;O.seg.myFill.below===null?te=!0:te=O.seg.myFill.above!==O.seg.myFill.below,W?O.seg.myFill.below=W.seg.myFill.above:O.seg.myFill.below=C,te?O.seg.myFill.above=!O.seg.myFill.below:O.seg.myFill.above=O.seg.myFill.below}else if(O.seg.otherFill===null){var ne;W?O.primary===W.primary?ne=W.seg.otherFill.above:ne=W.seg.myFill.above:ne=O.primary?E:C,O.seg.otherFill={above:ne,below:ne}}r&&r.status(O.seg,V?V.seg:!1,W?W.seg:!1),O.other.status=H.insert(mg.node({ev:O}))}else{var oe=O.status;if(oe===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(L.exists(oe.prev)&&L.exists(oe.next)&&q(oe.prev.ev,oe.next.ev),r&&r.statusRemove(oe.ev.seg),oe.remove(),!O.primary){var fe=O.seg.myFill;O.seg.myFill=O.seg.otherFill,O.seg.otherFill=fe}I.push(O.seg)}s.getHead().remove()}return r&&r.done(),I}return e?{addRegion:function(C){for(var E,L=C[C.length-1],z=0;z{function wne(e,t,r){var i=[],a=[];return e.forEach(function(s){var l=s.start,f=s.end;if(t.pointsSame(l,f)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(s);var h={index:0,matches_head:!1,matches_pt1:!1},v={index:0,matches_head:!1,matches_pt1:!1},m=h;function _(ve,Se,Me){return m.index=ve,m.matches_head=Se,m.matches_pt1=Me,m===h?(m=v,!1):(m=null,!0)}for(var T=0;T{function yg(e,t,r){var i=[];return e.forEach(function(a){var s=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);t[s]!==0&&i.push({id:r?r.segmentId():-1,start:a.start,end:a.end,myFill:{above:t[s]===1,below:t[s]===2},otherFill:null})}),r&&r.selected(i),i}var Tne={union:function(e,t){return yg(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return yg(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return yg(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return yg(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return yg(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};iI.exports=Tne});var sI=me((v_e,oI)=>{var Ane={toPolygon:function(e,t){function r(s){if(s.length<=0)return e.segments({inverted:!1,regions:[]});function l(v){var m=v.slice(0,v.length-1);return e.segments({inverted:!1,regions:[m]})}for(var f=l(s[0]),h=1;h{var Mne=jz(),Sne=Kz(),lI=tI(),kne=aI(),gg=nI(),uI=sI(),eu=!1,_g=Sne(),Vs;Vs={buildLog:function(e){return e===!0?eu=Mne():e===!1&&(eu=!1),eu===!1?!1:eu.list},epsilon:function(e){return _g.epsilon(e)},segments:function(e){var t=lI(!0,_g,eu);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=lI(!1,_g,eu);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:gg.union(e.combined,eu),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:gg.intersect(e.combined,eu),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:gg.difference(e.combined,eu),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:gg.differenceRev(e.combined,eu),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:gg.xor(e.combined,eu),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:kne(e.segments,_g,eu),inverted:e.inverted}},polygonFromGeoJSON:function(e){return uI.toPolygon(Vs,e)},polygonToGeoJSON:function(e){return uI.fromPolygon(Vs,_g,e)},union:function(e,t){return xg(e,t,Vs.selectUnion)},intersect:function(e,t){return xg(e,t,Vs.selectIntersect)},difference:function(e,t){return xg(e,t,Vs.selectDifference)},differenceRev:function(e,t){return xg(e,t,Vs.selectDifferenceRev)},xor:function(e,t){return xg(e,t,Vs.selectXor)}};function xg(e,t,r){var i=Vs.segments(e),a=Vs.segments(t),s=Vs.combine(i,a),l=r(s);return Vs.polygon(l)}typeof window=="object"&&(window.PolyBool=Vs);fI.exports=Vs});var vI=me((p_e,hI)=>{hI.exports=function(t,r,i,a){var s=t[0],l=t[1],f=!1;i===void 0&&(i=0),a===void 0&&(a=r.length);for(var h=a-i,v=0,m=h-1;vl!=C>l&&s<(S-_)*(l-T)/(C-T)+_;E&&(f=!f)}return f}});var lx=me((m_e,dI)=>{"use strict";var W4=l_().dot,ox=Zi().BADNUM,sx=dI.exports={};sx.tester=function(t){var r=t.slice(),i=r[0][0],a=i,s=r[0][1],l=s,f;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),f=1;fa||z===ox||zl||E&&v(C))}function _(C,E){var L=C[0],z=C[1];if(L===ox||La||z===ox||zl)return!1;var B=r.length,q=r[0][0],I=r[0][1],O=0,H,V,W,J,te;for(H=1;HMath.max(V,q)||z>Math.max(W,I)))if(zf||Math.abs(W4(_,v))>a)return!0;return!1};sx.filter=function(t,r){var i=[t[0]],a=0,s=0;function l(h){t.push(h);var v=i.length,m=a;i.splice(s+1);for(var _=m+1;_1){var f=t.pop();l(f)}return{addPt:l,raw:t,filtered:i}}});var mI=me((y_e,pI)=>{"use strict";pI.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var NI=me((g_e,qI)=>{"use strict";var yI=cI(),Cne=vI(),Tg=la(),Ene=bi().dashStyle,bg=Oa(),Lne=Rf(),Dne=bc().makeEventData,Cg=kd(),Pne=Cg.freeMode,zne=Cg.rectMode,Ag=Cg.drawMode,K4=Cg.openMode,Q4=Cg.selectMode,gI=Hh(),_I=ug(),AI=Y2(),MI=Ph().clearOutline,SI=Uh(),X4=SI.handleEllipse,Ine=SI.readPaths,Rne=V2().newShapes,Fne=b4(),qne=Y4().activateLastSelection,fx=Bt(),Nne=fx.sorterAsc,kI=lx(),wg=w_(),tu=Xn().getFromId,Bne=I2(),One=ax().redrawReglTraces,cx=mI(),qf=cx.MINSELECT,Une=kI.filter,$4=kI.tester,e6=N2(),xI=e6.p2r,Vne=e6.axValue,Hne=e6.getTransform;function t6(e){return e.subplot!==void 0}function Gne(e,t,r,i,a){var s=!t6(i),l=Pne(a),f=zne(a),h=K4(a),v=Ag(a),m=Q4(a),_=a==="drawline",T=a==="drawcircle",S=_||T,C=i.gd,E=C._fullLayout,L=m&&E.newselection.mode==="immediate"&&s,z=E._zoomlayer,B=i.element.getBoundingClientRect(),q=i.plotinfo,I=Hne(q),O=t-B.left,H=r-B.top;E._calcInverseTransform(C);var V=fx.apply3DTransform(E._invTransform)(O,H);O=V[0],H=V[1];var W=E._invScaleX,J=E._invScaleY,te=O,ne=H,oe="M"+O+","+H,fe=i.xaxes[0],ve=i.yaxes[0],Se=fe._length,Me=ve._length,Ae=e.altKey&&!(Ag(a)&&h),we,Te,Ce,Le,$e,lt,it;EI(e,C,i),l&&(we=Une([[O,H]],cx.BENDPX));var gt=z.selectAll("path.select-outline-"+q.id).data([1]),We=v?E.newshape:E.newselection;v&&(i.hasText=We.label.text||We.label.texttemplate);var Et=v&&!h?We.fillcolor:"rgba(0,0,0,0)",nt=We.line.color||(s?bg.contrast(C._fullLayout.plot_bgcolor):"#7f7f7f");gt.enter().append("path").attr("class","select-outline select-outline-"+q.id).style({opacity:v?We.opacity/2:1,"stroke-dasharray":Ene(We.line.dash,We.line.width),"stroke-width":We.line.width+"px","shape-rendering":"crispEdges"}).call(bg.stroke,nt).call(bg.fill,Et).attr("fill-rule","evenodd").classed("cursor-move",!!v).attr("transform",I).attr("d",oe+"Z");var wt=z.append("path").attr("class","zoombox-corners").style({fill:bg.background,stroke:bg.defaultLine,"stroke-width":1}).attr("transform",I).attr("d","M0,0Z");if(v&&i.hasText){var xt=z.select(".label-temp");xt.empty()&&(xt=z.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var vt=E._uid+cx.SELECTID,de=[],ze=hx(C,i.xaxes,i.yaxes,i.subplot);L&&!e.shiftKey&&(i._clearSubplotSelections=function(){if(s){var at=fe._id,mt=ve._id;II(C,at,mt,ze);for(var Xe=(C.layout||{}).selections||[],Ft=[],Lt=!1,Tt=0;Tt=0){C._fullLayout._deactivateShape(C);return}if(!v){var Xe=E.clickmode;wg.done(vt).then(function(){if(wg.clear(vt),at===2){for(gt.remove(),$e=0;$e-1&&CI(mt,C,i.xaxes,i.yaxes,i.subplot,i,gt),Xe==="event"&&kg(C,void 0);Lne.click(C,mt,q.id)}).catch(fx.error)}},i.doneFn=function(){wt.remove(),wg.done(vt).then(function(){wg.clear(vt),!L&&Le&&i.selectionDefs&&(Le.subtract=Ae,i.selectionDefs.push(Le),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,Ce)),(L||v)&&Mg(i,L),i.doneFnCompleted&&i.doneFnCompleted(de),m&&kg(C,it)}).catch(fx.error)}}function CI(e,t,r,i,a,s,l){var f=t._hoverdata,h=t._fullLayout,v=h.clickmode,m=v.indexOf("event")>-1,_=[],T,S,C,E,L,z,B,q,I,O;if(jne(f)){EI(e,t,s),T=hx(t,r,i,a);var H=Jne(f,T),V=H.pointNumbers.length>0;if(V?Kne(T,H):Qne(T)&&(B=wI(H))){for(l&&l.remove(),O=0;O=0}function Xne(e){return e._fullLayout._activeSelectionIndex>=0}function Mg(e,t){var r=e.dragmode,i=e.plotinfo,a=e.gd;Wne(a)&&a._fullLayout._deactivateShape(a),Xne(a)&&a._fullLayout._deactivateSelection(a);var s=a._fullLayout,l=s._zoomlayer,f=Ag(r),h=Q4(r);if(f||h){var v=l.selectAll(".select-outline-"+i.id);if(v&&a._fullLayout._outlining){var m;f&&(m=Rne(v,e)),m&&Tg.call("_guiRelayout",a,{shapes:m});var _;h&&!t6(e)&&(_=Fne(v,e)),_&&(a._fullLayout._noEmitSelectedAtStart=!0,Tg.call("_guiRelayout",a,{selections:_}).then(function(){t&&qne(a)})),a._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function bI(e){return e._id}function hx(e,t,r,i){if(!e.calcdata)return[];var a=[],s=t.map(bI),l=r.map(bI),f,h,v;for(v=0;v0,s=a?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(s)>-1:!1}function Kne(e,t){var r=[],i,a,s,l;for(l=0;l0&&r.push(i);if(r.length===1&&(s=r[0]===t.searchInfo,s&&(a=t.searchInfo.cd[0].trace,a.selectedpoints.length===t.pointNumbers.length))){for(l=0;l1||(t+=i.selectedpoints.length,t>1)))return!1;return t===1}function Sg(e,t,r){var i;for(i=0;i-1&&t;if(!l&&t){var at=TI(e,!0);if(at.length){var mt=at[0].xref,Xe=at[0].yref;if(mt&&Xe){var Ft=RI(at),Lt=FI([tu(e,mt,"x"),tu(e,Xe,"y")]);Lt(de,Ft)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:pe&&kg(e,de),T._reselect=!1}if(!l&&T._deselect){var Tt=T._deselect;f=Tt.xref,h=Tt.yref,toe(f,h,m)||II(e,f,h,i),pe&&(de.points.length?kg(e,de):i6(e)),T._deselect=!1}return{eventData:de,selectionTesters:r}}function eoe(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";BI.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Eg=me((x_e,OI)=>{"use strict";OI.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var $0=me((w_e,HI)=>{"use strict";var UI=n6(),VI=qo(),vx=Ao(),ooe=Ri().templatedArray,b_e=Eg();HI.exports=ooe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:VI({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:UI.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:UI.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",vx.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",vx.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",vx.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",vx.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:VI({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var dx=me((T_e,GI)=>{"use strict";GI.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var px=me((A_e,ZI)=>{"use strict";ZI.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var kc=me((M_e,KI)=>{"use strict";var YI=qw().axisHoverFormat,soe=nl().texttemplateAttrs,loe=nl().hovertemplateAttrs,WI=xc(),uoe=qo(),foe=hc().dash,coe=hc().pattern,hoe=bi(),voe=dx(),mx=mn().extendFlat,doe=px();function XI(e){return{valType:"any",dflt:0,editType:"calc"}}function jI(e){return{valType:"any",editType:"calc"}}function JI(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}KI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:XI("x"),yperiod:XI("y"),xperiod0:jI("x0"),yperiod0:jI("y0"),xperiodalignment:JI("x"),yperiodalignment:JI("y"),xhoverformat:YI("x"),yhoverformat:YI("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:soe({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:loe({},{keys:voe.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:mx({},foe,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:doe(!0),fillgradient:mx({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:coe,marker:mx({symbol:{valType:"enumerated",values:hoe.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:mx({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},WI("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},WI("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:uoe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var o6=me((k_e,eR)=>{"use strict";var QI=$0(),$I=kc().line,poe=hc().dash,yx=mn().extendFlat,moe=il().overrideAll,yoe=Ri().templatedArray,S_e=Eg();eR.exports=moe(yoe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:yx({},QI.xref,{}),yref:yx({},QI.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:$I.color,width:yx({},$I.width,{min:1,dflt:1}),dash:yx({},poe,{dflt:"dot"})}}),"arraydraw","from-root")});var iR=me((C_e,aR)=>{"use strict";var tR=Bt(),gx=Xi(),goe=Wl(),_oe=o6(),rR=Hh();aR.exports=function(t,r){goe(t,r,{name:"selections",handleItemDefaults:xoe});for(var i=r.selections,a=0;a{"use strict";nR.exports=function(t,r,i){i("newselection.mode");var a=i("newselection.line.width");a&&(i("newselection.line.color"),i("newselection.line.dash")),i("activeselection.fillcolor"),i("activeselection.opacity")}});var Lg=me((L_e,uR)=>{"use strict";var boe=la(),sR=Bt(),lR=Xn();uR.exports=function(t){return function(i,a){var s=i[t];if(Array.isArray(s))for(var l=boe.subplotsRegistry.cartesian,f=l.idRegex,h=a._subplots,v=h.xaxis,m=h.yaxis,_=h.cartesian,T=a._has("cartesian"),S=0;S{"use strict";var fR=Y4(),Dg=NI();cR.exports={moduleType:"component",name:"selections",layoutAttributes:o6(),supplyLayoutDefaults:iR(),supplyDrawNewSelectionDefaults:oR(),includeBasePlot:Lg()("selections"),draw:fR.draw,drawOne:fR.drawOne,reselect:Dg.reselect,prepSelect:Dg.prepSelect,clearOutline:Dg.clearOutline,clearSelectionsCache:Dg.clearSelectionsCache,selectOnClick:Dg.selectOnClick}});var PR=me((P_e,DR)=>{"use strict";var c6=Ja(),ru=Bt(),hR=ru.numberFormat,woe=Tf(),Toe=Z5(),_x=la(),bR=ru.strTranslate,Aoe=co(),vR=Oa(),Zh=bi(),Moe=Rf(),dR=Xi(),Soe=Oh(),koe=jl(),wR=kd(),xx=wR.selectingOrDrawing,Coe=wR.freeMode,Eoe=ts().FROM_TL,Loe=I2(),Doe=ax().redrawReglTraces,Poe=eo(),l6=Xn().getFromId,zoe=Nf().prepSelect,Ioe=Nf().clearOutline,Roe=Nf().selectOnClick,s6=N4(),h6=Ao(),pR=h6.MINDRAG,gs=h6.MINZOOM,mR=!0;function Foe(e,t,r,i,a,s,l,f){var h=e._fullLayout._zoomlayer,v=l+f==="nsew",m=(l+f).length===1,_,T,S,C,E,L,z,B,q,I,O,H,V,W,J,te,ne,oe,fe,ve,Se,Me,Ae;r+=t.yaxis._shift;function we(){if(_=t.xaxis,T=t.yaxis,q=_._length,I=T._length,z=_._offset,B=T._offset,S={},S[_._id]=_,C={},C[T._id]=T,l&&f)for(var Oe=t.overlays,yt=0;yt=0){qt._fullLayout._deactivateShape(qt);return}var Qt=qt._fullLayout.clickmode;if(f6(qt),Oe===2&&!m&&Ot(),v)Qt.indexOf("select")>-1&&Roe(yt,qt,E,L,t.id,Le),Qt.indexOf("event")>-1&&Moe.click(qt,yt,t.id);else if(Oe===1&&m){var Vt=l?T:_,tr=l==="s"||f==="w"?0:1,ar=Vt._name+".range["+tr+"]",zr=qoe(Vt,tr),lr="left",At="middle";if(Vt.fixedrange)return;l?(At=l==="n"?"top":"bottom",Vt.side==="right"&&(lr="right")):f==="e"&&(lr="right"),qt._context.showAxisRangeEntryBoxes&&c6.select(Ce).call(Aoe.makeEditable,{gd:qt,immediate:!0,background:qt._fullLayout.paper_bgcolor,text:String(zr),fill:Vt.tickfont?Vt.tickfont.color:"#444",horizontalAlign:lr,verticalAlign:At}).on("edit",function(Fe){var Ge=Vt.d2r(Fe);Ge!==void 0&&_x.call("_guiRelayout",qt,ar,Ge)})}}koe.init(Le);var it,gt,We,Et,nt,wt,xt,vt,de,ze;function pe(Oe,yt,qt){var Qt=Ce.getBoundingClientRect();it=yt-Qt.left,gt=qt-Qt.top,e._fullLayout._calcInverseTransform(e);var Vt=ru.apply3DTransform(e._fullLayout._invTransform)(it,gt);it=Vt[0],gt=Vt[1],We={l:it,r:it,w:0,t:gt,b:gt,h:0},Et=e._hmpixcount?e._hmlumcount/e._hmpixcount:woe(e._fullLayout.plot_bgcolor).getLuminance(),nt="M0,0H"+q+"V"+I+"H0V0",wt=!1,xt="xy",ze=!1,vt=MR(h,Et,z,B,nt),de=SR(h,z,B)}function at(Oe,yt){if(e._transitioningWithDuration)return!1;var qt=Math.max(0,Math.min(q,Me*Oe+it)),Qt=Math.max(0,Math.min(I,Ae*yt+gt)),Vt=Math.abs(qt-it),tr=Math.abs(Qt-gt);We.l=Math.min(it,qt),We.r=Math.max(it,qt),We.t=Math.min(gt,Qt),We.b=Math.max(gt,Qt);function ar(){xt="",We.r=We.l,We.t=We.b,de.attr("d","M0,0Z")}if(O.isSubplotConstrained)Vt>gs||tr>gs?(xt="xy",Vt/q>tr/I?(tr=Vt*I/q,gt>Qt?We.t=gt-tr:We.b=gt+tr):(Vt=tr*q/I,it>qt?We.l=it-Vt:We.r=it+Vt),de.attr("d",bx(We))):ar();else if(H.isSubplotConstrained)if(Vt>gs||tr>gs){xt="xy";var zr=Math.min(We.l/q,(I-We.b)/I),lr=Math.max(We.r/q,(I-We.t)/I);We.l=zr*q,We.r=lr*q,We.b=(1-zr)*I,We.t=(1-lr)*I,de.attr("d",bx(We))}else ar();else!W||tr0){var Fe;if(H.isSubplotConstrained||!V&&W.length===1){for(Fe=0;Fe1&&(ar.maxallowed!==void 0&&te===(ar.range[0]1&&(zr.maxallowed!==void 0&&ne===(zr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Boe(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function MR(e,t,r,i,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",bR(r,i)).attr("d",a+"Z")}function SR(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:vR.background,stroke:vR.defaultLine,"stroke-width":1,opacity:0}).attr("transform",bR(t,r)).attr("d","M0,0Z")}function kR(e,t,r,i,a,s){e.attr("d",i+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),CR(e,t,a,s)}function CR(e,t,r,i){r||(e.transition().style("fill",i>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function f6(e){c6.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ER(e){mR&&e.data&&e._context.showTips&&(ru.notifier(ru._(e,"Double-click to zoom back out"),"long"),mR=!1)}function Ooe(e,t){return"M"+(e.l-.5)+","+(t-gs-.5)+"h-3v"+(2*gs+1)+"h3ZM"+(e.r+.5)+","+(t-gs-.5)+"h3v"+(2*gs+1)+"h-3Z"}function Uoe(e,t){return"M"+(t-gs-.5)+","+(e.t-.5)+"v-3h"+(2*gs+1)+"v3ZM"+(t-gs-.5)+","+(e.b+.5)+"v3h"+(2*gs+1)+"v-3Z"}function bx(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,gs)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function _R(e,t,r,i,a){for(var s=!1,l={},f={},h,v,m,_,T=(a||{}).xaHash,S=(a||{}).yaHash,C=0;C{"use strict";var Voe=Ja(),wx=Rf(),Hoe=jl(),Goe=Oh(),Ou=PR().makeDragBox,io=Ao().DRAGGERSIZE;Tx.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Voe.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var i=Object.keys(r._plots||{}).sort(function(s,l){if((r._plots[s].mainplot&&!0)===(r._plots[l].mainplot&&!0)){var f=s.split("y"),h=l.split("y");return f[0]===h[0]?Number(f[1]||1)-Number(h[1]||1):Number(f[0]||1)-Number(h[0]||1)}return r._plots[s].mainplot?1:-1});i.forEach(function(s){var l=r._plots[s],f=l.xaxis,h=l.yaxis;if(!l.mainplot){var v=Ou(t,l,f._offset,h._offset,f._length,h._length,"ns","ew");v.onmousemove=function(T){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===s&&t._fullLayout._plots[s]&&wx.hover(t,T,s)},wx.hover(t,T,s),t._fullLayout._lasthover=v,t._fullLayout._hoversubplot=s},v.onmouseout=function(T){t._dragging||(t._fullLayout._hoversubplot=null,Hoe.unhover(t,T))},t._context.showAxisDragHandles&&(Ou(t,l,f._offset-io,h._offset-io,io,io,"n","w"),Ou(t,l,f._offset+f._length,h._offset-io,io,io,"n","e"),Ou(t,l,f._offset-io,h._offset+h._length,io,io,"s","w"),Ou(t,l,f._offset+f._length,h._offset+h._length,io,io,"s","e"))}if(t._context.showAxisDragHandles){if(s===f._mainSubplot){var m=f._mainLinePosition;f.side==="top"&&(m-=io),Ou(t,l,f._offset+f._length*.1,m,f._length*.8,io,"","ew"),Ou(t,l,f._offset,m,f._length*.1,io,"","w"),Ou(t,l,f._offset+f._length*.9,m,f._length*.1,io,"","e")}if(s===h._mainSubplot){var _=h._mainLinePosition;h.side!=="right"&&(_-=io),Ou(t,l,_,h._offset+h._length*.1,io,h._length*.8,"ns",""),Ou(t,l,_,h._offset+h._length*.9,io,h._length*.1,"s",""),Ou(t,l,_,h._offset,io,h._length*.1,"n","")}}});var a=r._hoverlayer.node();a.onmousemove=function(s){s.target=t._fullLayout._lasthover,wx.hover(t,s,r._hoversubplot)},a.onclick=function(s){s.target=t._fullLayout._lasthover,wx.click(t,s)},a.onmousedown=function(s){t._fullLayout._lasthover.onmousedown(s)},Tx.updateFx(t)}};Tx.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Goe(t._draggers,r)}});var RR=me((I_e,IR)=>{"use strict";var zR=la();IR.exports=function(t){for(var r=zR.layoutArrayContainers,i=zR.layoutArrayRegexes,a=t.split("[")[0],s,l,f=0;f{"use strict";var Zoe=cc(),d6=s_(),Pg=Th(),Yoe=lw().sorterAsc,p6=la();zg.containerArrayMatch=RR();var Woe=zg.isAddVal=function(t){return t==="add"||Zoe(t)},FR=zg.isRemoveVal=function(t){return t===null||t==="remove"};zg.applyContainerArrayChanges=function(t,r,i,a,s){var l=r.astr,f=p6.getComponentMethod(l,"supplyLayoutDefaults"),h=p6.getComponentMethod(l,"draw"),v=p6.getComponentMethod(l,"drawOne"),m=a.replot||a.recalc||f===d6||h===d6,_=t.layout,T=t._fullLayout;if(i[""]){Object.keys(i).length>1&&Pg.warn("Full array edits are incompatible with other edits",l);var S=i[""][""];if(FR(S))r.set(null);else if(Array.isArray(S))r.set(S);else return Pg.warn("Unrecognized full array edit value",l,S),!0;return m?!1:(f(_,T),h(t),!0)}var C=Object.keys(i).map(Number).sort(Yoe),E=r.get(),L=E||[],z=s(T,l).get(),B=[],q=-1,I=L.length,O,H,V,W,J,te,ne,oe;for(O=0;OL.length-(ne?0:1)){Pg.warn("index out of range",l,V);continue}if(te!==void 0)J.length>1&&Pg.warn("Insertion & removal are incompatible with edits to the same index.",l,V),FR(te)?B.push(V):ne?(te==="add"&&(te={}),L.splice(V,0,te),z&&z.splice(V,0,{})):Pg.warn("Unrecognized full object edit value",l,V,te),q===-1&&(q=V);else for(H=0;H=0;O--)L.splice(B[O],1),z&&z.splice(B[O],1);if(L.length?E||r.set(L):r.set(null),m)return!1;if(f(_,T),v!==d6){var fe;if(q===-1)fe=C;else{for(I=Math.max(L.length,I),fe=[],O=0;O=q));O++)fe.push(V);for(O=q;O{"use strict";var UR=Da(),VR=la(),ss=Bt(),Ig=eo(),HR=Xn(),GR=Oa(),Rg=HR.cleanId,Xoe=HR.getFromTrace,m6=VR.traceIs,joe=["x","y","z"];au.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ss.log("Clearing previous rejected promises from queue."),e._promises=[]};au.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(Ig.subplotsRegistry.cartesian||{}).attrRegex,a=(Ig.subplotsRegistry.polar||{}).attrRegex,s=(Ig.subplotsRegistry.ternary||{}).attrRegex,l=(Ig.subplotsRegistry.gl3d||{}).attrRegex,f=Object.keys(e);for(t=0;t3?(L.x=1.02,L.xanchor="left"):L.x<-2&&(L.x=-.02,L.xanchor="right"),L.y>3?(L.y=1.02,L.yanchor="bottom"):L.y<-2&&(L.y=-.02,L.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),GR.clean(e),e.template&&e.template.layout&&au.cleanLayout(e.template.layout),e};function em(e,t){var r=e[t],i=t.charAt(0);r&&r!=="paper"&&(e[t]=Rg(r,i,!0))}au.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}au.hasParent=function(e,t){for(var r=OR(t);r;){if(r in e)return!0;r=OR(r)}return!1};au.clearAxisTypes=function(e,t,r){for(var i=0;i{let r=(...i)=>i.every(a=>ss.isPlainObject(a))||i.every(a=>Array.isArray(a));if([e,t].every(i=>Array.isArray(i))){if(e.length!==t.length)return!1;for(let i=0;iss.isPlainObject(i))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e){if(i.startsWith("_"))continue;let a=e[i],s=t[i];if(a!==s&&!(r(a,s)?y6(a,s):!1))return!1}return!0}return!1};au.collectionsAreEqual=y6});var T6=me(Ga=>{"use strict";var kx=Ja(),Qoe=Da(),$oe=bw(),_r=Bt(),Oi=_r.nestedProperty,x6=Uy(),_s=Tk(),iu=la(),Ix=M0(),ra=eo(),ls=Xi(),ese=G5(),tse=Fu(),g6=bi(),rse=Oa(),ase=v6().initInteractions,ise=zh(),nse=Nf().clearOutline,JR=rd().dfltConfig,Mx=qR(),Dn=ZR(),hi=ax(),Yh=il(),ose=Ao().AX_NAME_PATTERN,_6=0,YR=5;function sse(e,t,r,i){var a;if(e=_r.getGraphDiv(e),x6.init(e),_r.isPlainObject(t)){var s=t;t=s.data,r=s.layout,i=s.config,a=s.frames}var l=x6.triggerHandler(e,"plotly_beforeplot",[t,r,i]);if(l===!1)return Promise.reject();!t&&!r&&!_r.isPlotDiv(e)&&_r.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function f(){if(a)return Ga.addFrames(e,a)}QR(e,i),r||(r={}),kx.select(e).classed("js-plotly-plot",!0),g6.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var h=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Dn.cleanData(t),h?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||h)&&(e.layout=Dn.cleanLayout(r)),ra.supplyDefaults(e);var v=e._fullLayout,m=v._has("cartesian");v._replotting=!0,(h||v._shouldCreateBgLayer)&&(Lse(e),v._shouldCreateBgLayer&&delete v._shouldCreateBgLayer),g6.initGradients(e),g6.initPatterns(e),h&&ls.saveShowSpikeInitial(e);var _=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;_&&ra.doCalcdata(e);for(var T=0;T=e.data.length||a<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(a,i+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+r+" must be unique.")}}function $R(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),Ex(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Ex(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function hse(e,t,r){var i,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),i=0;i=0&&m<_.length?_.splice(0,_.length-m):[];return[_,T]}var s=eF(e,t,r,i,a),l=Ga.redraw(e),f=[e,s.update,r,s.maxPoints];return _s.add(e,Ga.prependTraces,f,rF,arguments),l}function aF(e,t,r,i){e=_r.getGraphDiv(e);function a(h,v,m){var _,T;if(_r.isTypedArray(h))if(m<=0){var S=new h.constructor(0),C=tF(v,h);m<0?(_=C,T=S):(_=S,T=C)}else if(_=new h.constructor(m),T=new h.constructor(h.length+v.length-m),m===v.length)_.set(v),T.set(h);else if(m=0&&m<_.length?_.splice(m,_.length):[];return[_,T]}var s=eF(e,t,r,i,a),l=Ga.redraw(e),f=[e,s.update,r,s.maxPoints];return _s.add(e,Ga.extendTraces,f,aF,arguments),l}function iF(e,t,r){e=_r.getGraphDiv(e);var i=[],a=Ga.deleteTraces,s=iF,l=[e,i],f=[e,t],h,v;for(hse(e,t,r),Array.isArray(t)||(t=[t]),t=t.map(function(m){return _r.extendFlat({},m)}),Dn.cleanData(t),h=0;h0&&typeof W.parts[ne]!="string";)ne--;var oe=W.parts[ne],fe=W.parts[ne-1]+"."+oe,ve=W.parts.slice(0,ne).join("."),Se=Oi(e.layout,ve).get(),Me=Oi(i,ve).get(),Ae=W.get();if(J!==void 0){z[V]=J,B[V]=oe==="reverse"?J:Cc(Ae);var we=Ix.getLayoutValObject(i,W.parts);if(we&&we.impliedEdits&&J!==null)for(var Te in we.impliedEdits)q(_r.relativeAttr(V,Te),we.impliedEdits[Te]);if(["width","height"].indexOf(V)!==-1)if(J){q("autosize",null);var Ce=V==="height"?"width":"height";q(Ce,i[Ce])}else i[V]=e._initialAutoSize[V];else if(V==="autosize")q("width",J?null:i.width),q("height",J?null:i.height);else if(fe.match(lF))H(fe),Oi(i,ve+"._inputRange").set(null);else if(fe.match(uF)){H(fe),Oi(i,ve+"._inputRange").set(null);var Le=Oi(i,ve).get();Le._inputDomain&&(Le._input.domain=Le._inputDomain.slice())}else fe.match(mse)&&Oi(i,ve+"._inputDomain").set(null);if(oe==="type"){O=Se;var $e=Me.type==="linear"&&J==="log",lt=Me.type==="log"&&J==="linear";if($e||lt){if(!O||!O.range)q(ve+".autorange",!0);else if(Me.autorange)$e&&(O.range=O.range[1]>O.range[0]?[1,2]:[2,1]);else{var it=O.range[0],gt=O.range[1];$e?(it<=0&><=0&&q(ve+".autorange",!0),it<=0?it=gt/1e6:gt<=0&&(gt=it/1e6),q(ve+".range[0]",Math.log(it)/Math.LN10),q(ve+".range[1]",Math.log(gt)/Math.LN10)):(q(ve+".range[0]",Math.pow(10,it)),q(ve+".range[1]",Math.pow(10,gt)))}Array.isArray(i._subplots.polar)&&i._subplots.polar.length&&i[W.parts[0]]&&W.parts[1]==="radialaxis"&&delete i[W.parts[0]]._subplot.viewInitial["radialaxis.range"],iu.getComponentMethod("annotations","convertCoords")(e,Me,J,q),iu.getComponentMethod("images","convertCoords")(e,Me,J,q)}else q(ve+".autorange",!0),q(ve+".range",null);Oi(i,ve+"._inputRange").set(null)}else if(oe.match(ose)){var We=Oi(i,V).get(),Et=(J||{}).type;(!Et||Et==="-")&&(Et="linear"),iu.getComponentMethod("annotations","convertCoords")(e,We,Et,q),iu.getComponentMethod("images","convertCoords")(e,We,Et,q)}var nt=Mx.containerArrayMatch(V);if(nt){m=nt.array,_=nt.index;var wt=nt.property,xt=we||{editType:"calc"};_!==""&&wt===""&&(Mx.isAddVal(J)?B[V]=null:Mx.isRemoveVal(J)?B[V]=(Oi(r,m).get()||[])[_]:_r.warn("unrecognized full object value",t)),Yh.update(L,xt),v[m]||(v[m]={});var vt=v[m][_];vt||(vt=v[m][_]={}),vt[wt]=J,delete t[V]}else oe==="reverse"?(Se.range?Se.range.reverse():(q(ve+".autorange",!0),Se.range=[1,0]),Me.autorange?L.calc=!0:L.plot=!0):(V==="dragmode"&&(J===!1&&Ae!==!1||J!==!1&&Ae===!1)||i._has("scatter-like")&&i._has("regl")&&V==="dragmode"&&(J==="lasso"||J==="select")&&!(Ae==="lasso"||Ae==="select")?L.plot=!0:we?Yh.update(L,we):L.calc=!0,W.set(J))}}for(m in v){var de=Mx.applyContainerArrayChanges(e,s(r,m),v[m],L,s);de||(L.plot=!0)}for(var ze in I){O=ls.getFromId(e,ze);var pe=O&&O._constraintGroup;if(pe){L.calc=!0;for(var at in pe)I[at]||(ls.getFromId(e,at)._constraintShrinkable=!0)}}(cF(e)||t.height||t.width)&&(L.plot=!0);var mt=i.shapes;for(_=0;_1;)if(i.pop(),r=Oi(t,i.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function _se(e,t){for(var r=0;r[ve,e._ev.listeners(ve)]);s=Ga.newPlot(e,t,r,i).then(()=>{for(let[ve,Se]of fe)Se.forEach(Me=>e.on(ve,Me));return Ga.react(e,t,r,i)})}else{e.data=t||[],Dn.cleanData(e.data),e.layout=r||{},Dn.cleanLayout(e.layout),bse(e.data,e.layout,f,h),ra.supplyDefaults(e,{skipUpdateCalc:!0});var _=e._fullData,T=e._fullLayout,S=T.datarevision===void 0,C=T.transition,E=Ase(e,h,T,S,C),L=E.newDataRevision,z=Tse(e,f,_,S,C,L);if(cF(e)&&(E.layoutReplot=!0),z.calc||E.calc){e.calcdata=void 0;for(var B=Object.getOwnPropertyNames(T),q=0;q(m||e.emit("plotly_react",{config:i,data:t,layout:r}),e))}function Tse(e,t,r,i,a,s){var l=t.length===r.length;if(!a&&!l)return{fullReplot:!0,calc:!0};var f=Yh.traceFlags();f.arrays={},f.nChanges=0,f.nChangesAnim=0;var h,v;function m(S){var C=Ix.getTraceValObject(v,S);return!v._module.animatable&&C.anim&&(C.anim=!1),C}var _={getValObject:m,flags:f,immutable:i,transition:a,newDataRevision:s,gd:e},T={};for(h=0;h=a.length?a[0]:a[v]:a}function f(v){return Array.isArray(s)?v>=s.length?s[0]:s[v]:s}function h(v,m){var _=0;return function(){if(v&&++_===m)return v()}}return new Promise(function(v,m){function _(){if(i._frameQueue.length!==0){for(;i._frameQueue.length;){var oe=i._frameQueue.pop();oe.onInterrupt&&oe.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function T(oe){if(oe.length!==0){for(var fe=0;fei._timeToNext&&C()};oe()}var L=0;function z(oe){return Array.isArray(a)?L>=a.length?oe.transitionOpts=a[L]:oe.transitionOpts=a[0]:oe.transitionOpts=a,L++,oe}var B,q,I=[],O=t==null,H=Array.isArray(t),V=!O&&!H&&_r.isPlainObject(t);if(V)I.push({type:"object",data:z(_r.extendFlat({},t))});else if(O||["string","number"].indexOf(typeof t)!==-1)for(B=0;B0&&tete)&&ne.push(q);I=ne}}I.length>0?T(I):(e.emit("plotly_animated"),v())})}function Sse(e,t,r){if(e=_r.getGraphDiv(e),t==null)return Promise.resolve();if(!_r.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var i,a,s,l,f=e._transitionData._frames,h=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var v=f.length+t.length*2,m=[],_={};for(i=t.length-1;i>=0;i--)if(_r.isPlainObject(t[i])){var T=t[i].name,S=(h[T]||_[T]||{}).name,C=t[i].name,E=h[S]||_[S];S&&C&&typeof C=="number"&&E&&_6W.index?-1:V.index=0;i--){if(a=m[i].frame,typeof a.name=="number"&&_r.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;h[a.name="frame "+e._transitionData._counter++];);if(h[a.name]){for(s=0;s=0;r--)i=t[r],s.push({type:"delete",index:i}),l.unshift({type:"insert",index:i,value:a[i]});var f=ra.modifyFrames,h=ra.modifyFrames,v=[e,l],m=[e,s];return _s&&_s.add(e,f,v,h,m),ra.modifyFrames(e,s)}function Cse(e){e=_r.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return ra.cleanPlot([],{},r,t),ra.purge(e),x6.purge(e),t._container&&t._container.remove(),delete e._context,e}function Ese(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!_r.equalDomRects(r,t._lastBBox)){var i=t._invTransform=_r.inverseTransformMatrix(_r.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(i[0][0]*i[0][0]+i[0][1]*i[0][1]+i[0][2]*i[0][2]),t._invScaleY=Math.sqrt(i[1][0]*i[1][0]+i[1][1]*i[1][1]+i[1][2]*i[1][2]),t._lastBBox=r}}function Lse(e){var t=kx.select(e),r=e._fullLayout;if(r._calcInverseTransform=Ese,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var i={};kx.selectAll("defs").each(function(){this.id&&(i[this.id.split("-")[1]]=1)}),r._uid=_r.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(ise.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var a=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=a.append("g").classed("imagelayer",!0),r._shapeLowerLayer=a.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var s=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=s.append("g").classed("imagelayer",!0),r._shapeUpperLayer=s.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Ga.animate=Mse;Ga.addFrames=Sse;Ga.deleteFrames=kse;Ga.addTraces=iF;Ga.deleteTraces=nF;Ga.extendTraces=rF;Ga.moveTraces=b6;Ga.prependTraces=aF;Ga.newPlot=cse;Ga._doPlot=sse;Ga.purge=Cse;Ga.react=wse;Ga.redraw=fse;Ga.relayout=Fg;Ga.restyle=Lx;Ga.setPlotConfig=lse;Ga.update=Px;Ga._guiRelayout=w6(Fg);Ga._guiRestyle=w6(Lx);Ga._guiUpdate=w6(Px);Ga._storeDirectGUIEdit=pse});var Dd=me(Bf=>{"use strict";var Dse=la();Bf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Bf.getRedrawFunc=function(e){return function(){Dse.getComponentMethod("colorbar","draw")(e)}};Bf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Bf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var hF=window.URL||window.webkitURL;Bf.createObjectURL=function(e){return hF.createObjectURL(e)};Bf.revokeObjectURL=function(e){return hF.revokeObjectURL(e)};Bf.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=Pse(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Bf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Pse(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),a=0;a{"use strict";var M6=Ja(),B_e=Bt(),zse=bi(),Ise=Oa(),O_e=zh(),A6=/"/g,Ng="TOBESTRIPPED",Rse=new RegExp('("'+Ng+")|("+Ng+'")',"g");function Fse(e){var t=M6.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(i){return i==="<"?"<":i==="&rt;"?">":i.indexOf("<")!==-1||i.indexOf(">")!==-1?"":t.html(i).text()});return t.remove(),r}function qse(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}vF.exports=function(t,r,i){var a=t._fullLayout,s=a._paper,l=a._toppaper,f=a.width,h=a.height,v;s.insert("rect",":first-child").call(zse.setRect,0,0,f,h).call(Ise.fill,a.paper_bgcolor);var m=a._basePlotModules||[];for(v=0;v{"use strict";var Nse=Bt(),Bse=E_().EventEmitter,Bg=Dd();function Ose(e){var t=e.emitter||new Bse,r=new Promise(function(i,a){var s=window.Image,l=e.svg,f=e.format||"png",h=e.canvas,v=e.scale||1,m=e.width||300,_=e.height||150,T=v*m,S=v*_,C=h.getContext("2d",{willReadFrequently:!0}),E=new s,L,z;f==="svg"||Nse.isSafari()?z=Bg.encodeSVG(l):(L=Bg.createBlob(l,"svg"),z=Bg.createObjectURL(L)),h.width=T,h.height=S,E.onload=function(){var B;switch(L=null,Bg.revokeObjectURL(z),f!=="svg"&&C.drawImage(E,0,0,T,S),f){case"jpeg":B=h.toDataURL("image/jpeg");break;case"png":B=h.toDataURL("image/png");break;case"webp":B=h.toDataURL("image/webp");break;case"svg":B=z;break;default:var q="Image format is not jpeg, png, svg or webp.";if(a(new Error(q)),!e.promise)return t.emit("error",q)}i(B),e.promise||t.emit("success",B)},E.onerror=function(B){if(L=null,Bg.revokeObjectURL(z),a(B),!e.promise)return t.emit("error",B)},E.src=z});return e.promise?r:t}dF.exports=Ose});var k6=me((H_e,yF)=>{"use strict";var pF=Da(),mF=T6(),Use=eo(),Of=Bt(),Og=Dd(),Vse=Fx(),Hse=qx(),Gse=Z1().version,S6={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Zse(e,t){t=t||{};var r,i,a,s;Of.isPlainObject(e)?(r=e.data||[],i=e.layout||{},a=e.config||{},s={}):(e=Of.getGraphDiv(e),r=Of.extendDeep([],e.data),i=Of.extendDeep({},e.layout),a=e._context,s=e._fullLayout||{});function l(H){return!(H in t)||Of.validate(t[H],S6[H])}if(!l("width")&&t.width!==null||!l("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Of.join2(S6.format.values,", "," or ")+".");var f={};function h(H,V){return Of.coerce(t,f,S6,H,V)}var v=h("format"),m=h("width"),_=h("height"),T=h("scale"),S=h("setBackground"),C=h("imageDataOnly"),E=document.createElement("div");E.style.position="absolute",E.style.left="-5000px",document.body.appendChild(E);var L=Of.extendFlat({},i);m?L.width=m:t.width===null&&pF(s.width)&&(L.width=s.width),_?L.height=_:t.height===null&&pF(s.height)&&(L.height=s.height);var z=Of.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:S}),B=Og.getRedrawFunc(E);function q(){return new Promise(function(H){setTimeout(H,Og.getDelay(E._fullLayout))})}function I(){return new Promise(function(H,V){var W=Vse(E,v,T),J=E._fullLayout.width,te=E._fullLayout.height;function ne(){mF.purge(E),document.body.removeChild(E)}if(v==="full-json"){var oe=Use.graphJson(E,!1,"keepdata","object",!0,!0);return oe.version=Gse,oe=JSON.stringify(oe),ne(),H(C?oe:Og.encodeJSON(oe))}if(ne(),v==="svg")return H(C?W:Og.encodeSVG(W));var fe=document.createElement("canvas");fe.id=Of.randstr(),Hse({format:v,width:J,height:te,scale:T,canvas:fe,svg:W,promise:!0}).then(H).catch(V)})}function O(H){return C?H.replace(Og.IMAGE_URL_PREFIX,""):H}return new Promise(function(H,V){mF.newPlot(E,r,L,z).then(B).then(q).then(I).then(function(W){H(O(W))}).catch(function(W){V(W)})})}yF.exports=Zse});var xF=me((G_e,_F)=>{"use strict";var nu=Bt(),Yse=eo(),Wse=M0(),Xse=rd().dfltConfig,Uu=nu.isPlainObject,zd=Array.isArray,C6=nu.isArrayOrTypedArray;_F.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=Wse.get(),a=[],s={_context:nu.extendFlat({},Xse)},l,f;zd(t)?(s.data=nu.extendDeep([],t),l=t):(s.data=[],l=[],a.push(no("array","data"))),Uu(r)?(s.layout=nu.extendDeep({},r),f=r):(s.layout={},f={},arguments.length>1&&a.push(no("object","layout"))),Yse.supplyDefaults(s);for(var h=s._fullData,v=l.length,m=0;m_.length&&i.push(no("unused",a,v.concat(_.length)));var z=_.length,B=Array.isArray(L);B&&(z=Math.min(z,L.length));var q,I,O,H,V;if(T.dimensions===2)for(I=0;I_[I].length&&i.push(no("unused",a,v.concat(I,_[I].length)));var W=_[I].length;for(q=0;q<(B?Math.min(W,L[I].length):W);q++)O=B?L[I][q]:L,H=m[I][q],V=_[I][q],nu.validate(H,O)?V!==H&&V!==+H&&i.push(no("dynamic",a,v.concat(I,q),H,V)):i.push(no("value",a,v.concat(I,q),H))}else i.push(no("array",a,v.concat(I),m[I]));else for(I=0;I{"use strict";var tle=Bt(),Bx=Dd();function rle(e,t,r){var i=document.createElement("a"),a="download"in i,s=new Promise(function(l,f){var h,v;if(a)return h=Bx.createBlob(e,r),v=Bx.createObjectURL(h),i.href=v,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),Bx.revokeObjectURL(v),h=null,l(t);if(tle.isSafari()){var m=r==="svg"?",":";base64,";return Bx.octetStream(m+encodeURIComponent(e)),l(t)}f(new Error("download error"))});return s}bF.exports=rle});var E6=me((W_e,AF)=>{"use strict";var TF=Bt(),ale=k6(),ile=wF(),Y_e=Dd();function nle(e,t){var r;return TF.isPlainObject(e)||(r=TF.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(i,a){r&&r._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var s=ale(e,t),l=t.filename||e.fn||"newplot";l+="."+t.format.replace("-","."),s.then(function(f){return r&&(r._snapshotInProgress=!1),ile(f,l,t.format)}).then(function(f){i(f)}).catch(function(f){r&&(r._snapshotInProgress=!1),a(f)})})}AF.exports=nle});var EF=me(L6=>{"use strict";var Hs=Bt(),Gs=Hs.isPlainObject,MF=M0(),SF=eo(),ole=ys(),kF=Ri(),CF=rd().dfltConfig;L6.makeTemplate=function(e){e=Hs.isPlainObject(e)?e:Hs.getGraphDiv(e),e=Hs.extendDeep({_context:CF},{data:e.data,layout:e.layout}),SF.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach(function(S){var C={};Ug(S,C,lle.bind(null,S));var E=Hs.coerce(S,{},ole,"type"),L=i.data[E];L||(L=i.data[E]=[]),L.push(C)}),Ug(r,i.layout,sle.bind(null,r)),delete i.layout.template;var a=r.template;if(Gs(a)){var s=a.layout,l,f,h,v,m,_;Gs(s)&&Ox(s,i.layout);var T=a.data;if(Gs(T)){for(f in i.data)if(h=T[f],Array.isArray(h)){for(m=i.data[f],_=m.length,v=h.length,l=0;l<_;l++)Ox(h[l%v],m[l]);for(l=_;lz?l.push({code:"unused",traceType:S,templateCount:L,dataCount:z}):z>L&&l.push({code:"reused",traceType:S,templateCount:L,dataCount:z})}}function B(q,I){for(var O in q)if(O.charAt(0)!=="_"){var H=q[O],V=ou(q,O,I);Gs(H)?(Array.isArray(q)&&H._template===!1&&H.templateitemname&&l.push({code:"missing",path:V,templateitemname:H.templateitemname}),B(H,V)):Array.isArray(H)&&ule(H)&&B(H,V)}}if(B({data:h,layout:f},""),l.length)return l.map(fle)};function ule(e){for(var t=0;t{"use strict";var Jn=T6();Ji._doPlot=Jn._doPlot;Ji.newPlot=Jn.newPlot;Ji.restyle=Jn.restyle;Ji.relayout=Jn.relayout;Ji.redraw=Jn.redraw;Ji.update=Jn.update;Ji._guiRestyle=Jn._guiRestyle;Ji._guiRelayout=Jn._guiRelayout;Ji._guiUpdate=Jn._guiUpdate;Ji._storeDirectGUIEdit=Jn._storeDirectGUIEdit;Ji.react=Jn.react;Ji.extendTraces=Jn.extendTraces;Ji.prependTraces=Jn.prependTraces;Ji.addTraces=Jn.addTraces;Ji.deleteTraces=Jn.deleteTraces;Ji.moveTraces=Jn.moveTraces;Ji.purge=Jn.purge;Ji.addFrames=Jn.addFrames;Ji.deleteFrames=Jn.deleteFrames;Ji.animate=Jn.animate;Ji.setPlotConfig=Jn.setPlotConfig;var cle=Py().getGraphDiv,hle=J2().eraseActiveShape;Ji.deleteActiveShape=function(e){return hle(cle(e))};Ji.toImage=k6();Ji.validate=xF();Ji.downloadImage=E6();var LF=EF();Ji.makeTemplate=LF.makeTemplate;Ji.validateTemplate=LF.validateTemplate});var zF=me((J_e,PF)=>{"use strict";var D6=Bt(),vle=la();PF.exports=function(t,r,i,a){var s=a("x"),l=a("y"),f,h=vle.getComponentMethod("calendars","handleTraceDefaults");if(h(t,r,["x","y"],i),s){var v=D6.minRowLength(s);l?f=Math.min(v,D6.minRowLength(l)):(f=v,a("y0"),a("dy"))}else{if(!l)return 0;f=D6.minRowLength(l),a("x0"),a("dx")}return r._length=f,f}});var qF=me((K_e,FF)=>{"use strict";var IF=Bt().dateTick0,dle=Zi(),ple=dle.ONEWEEK;function RF(e,t){return e%ple===0?IF(t,1):IF(t,0)}FF.exports=function(t,r,i,a,s){if(s||(s={x:!0,y:!0}),s.x){var l=a("xperiod");l&&(a("xperiod0",RF(l,r.xcalendar)),a("xperiodalignment"))}if(s.y){var f=a("yperiod");f&&(a("yperiod0",RF(f,r.ycalendar)),a("yperiodalignment"))}}});var OF=me((Q_e,BF)=>{"use strict";var NF=["orientation","groupnorm","stackgaps"];BF.exports=function(t,r,i,a){var s=i._scatterStackOpts,l=a("stackgroup");if(l){var f=r.xaxis+r.yaxis,h=s[f];h||(h=s[f]={});var v=h[l],m=!1;v?v.traces.push(r):(v=h[l]={traceIndices:[],traces:[r]},m=!0);for(var _={orientation:r.x&&!r.y?"h":"v"},T=0;T{"use strict";var UF=Oa(),VF=kf().hasColorscale,HF=hd(),mle=rs();GF.exports=function(t,r,i,a,s,l){var f=mle.isBubble(t),h=(t.line||{}).color,v;if(l=l||{},h&&(i=h),s("marker.symbol"),s("marker.opacity",f?.7:1),s("marker.size"),l.noAngle||(s("marker.angle"),l.noAngleRef||s("marker.angleref"),l.noStandOff||s("marker.standoff")),s("marker.color",i),VF(t,"marker")&&HF(t,r,a,s,{prefix:"marker.",cLetter:"c"}),l.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),l.noLine||(h&&!Array.isArray(h)&&r.marker.color!==h?v=h:f?v=UF.background:v=UF.defaultLine,s("marker.line.color",v),VF(t,"marker.line")&&HF(t,r,a,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",f?1:0)),f&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),l.gradient){var m=s("marker.gradient.type");m!=="none"&&s("marker.gradient.color")}}});var z6=me((e2e,ZF)=>{"use strict";var yle=Bt().isArrayOrTypedArray,gle=kf().hasColorscale,_le=hd();ZF.exports=function(t,r,i,a,s,l){l||(l={});var f=(t.marker||{}).color;if(f&&f._inputArray&&(f=f._inputArray),s("line.color",i),gle(t,"line"))_le(t,r,a,s,{prefix:"line.",cLetter:"c"});else{var h=(yle(f)?!1:f)||i;s("line.color",h)}s("line.width"),l.noDash||s("line.dash"),l.backoff&&s("line.backoff")}});var WF=me((t2e,YF)=>{"use strict";YF.exports=function(t,r,i){var a=i("line.shape");a==="spline"&&i("line.smoothing")}});var I6=me((r2e,XF)=>{"use strict";var xle=Bt();XF.exports=function(e,t,r,i,a){a=a||{},i("textposition"),xle.coerceFont(i,"textfont",a.font||r.font,a),a.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var R6=me((a2e,JF)=>{"use strict";var Vx=Oa(),jF=Bt().isArrayOrTypedArray;function ble(e){for(var t=Vx.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var KF=Bt(),wle=la(),Tle=kc(),Ale=dx(),tm=rs(),Mle=zF(),Sle=qF(),kle=OF(),Cle=P6(),Ele=z6(),QF=WF(),Lle=I6(),Dle=R6(),Ple=Bt().coercePattern;$F.exports=function(t,r,i,a){function s(S,C){return KF.coerce(t,r,Tle,S,C)}var l=Mle(t,r,a,s);if(l||(r.visible=!1),!!r.visible){Sle(t,r,a,s),s("xhoverformat"),s("yhoverformat"),s("zorder");var f=kle(t,r,a,s);a.scattermode==="group"&&r.orientation===void 0&&s("orientation","v");var h=!f&&l{"use strict";var zle=vg().getAxisGroup;tq.exports=function(t,r,i,a,s){var l=r.orientation,f=r[{v:"x",h:"y"}[l]+"axis"],h=zle(i,f)+l,v=i._alignmentOpts||{},m=a("alignmentgroup"),_=v[h];_||(_=v[h]={});var T=_[m];T?T.traces.push(r):T=_[m]={traces:[r],alignmentIndex:Object.keys(_).length,offsetGroups:{}};var S=a("offsetgroup")||"",C=T.offsetGroups,E=C[S];r._offsetIndex=0,(s!=="group"||S)&&(E||(E=C[S]={offsetIndex:Object.keys(C).length}),r._offsetIndex=E.offsetIndex)}});var iq=me((o2e,aq)=>{"use strict";var Ile=Bt(),Rle=rq(),Fle=kc();aq.exports=function(t,r){var i,a,s,l=r.scattermode;function f(T){return Ile.coerce(a._input,a,Fle,T)}if(r.scattermode==="group")for(s=0;s=0;m--){var _=t[m];if(_.type==="scatter"&&_.xaxis===h.xaxis&&_.yaxis===h.yaxis){_.opacity=void 0;break}}}}}});var oq=me((s2e,nq)=>{"use strict";var qle=Bt(),Nle=I_();nq.exports=function(e,t){function r(a,s){return qle.coerce(e,t,Nle,a,s)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var uq=me((l2e,lq)=>{"use strict";var Ble=Da(),sq=Bt(),Ole=sq.dateTime2ms,Hx=sq.incrementMonth,Ule=Zi(),Vle=Ule.ONEAVGMONTH;lq.exports=function(t,r,i,a){if(r.type!=="date")return{vals:a};var s=t[i+"periodalignment"];if(!s)return{vals:a};var l=t[i+"period"],f;if(Ble(l)){if(l=+l,l<=0)return{vals:a}}else if(typeof l=="string"&&l.charAt(0)==="M"){var h=+l.substring(1);if(h>0&&Math.round(h)===h)f=h;else return{vals:a}}for(var v=r.calendar,m=s==="start",_=s==="end",T=t[i+"period0"],S=Ole(T,v)||0,C=[],E=[],L=[],z=a.length,B=0;Bq;)H=Hx(H,-f,v);for(;H<=q;)H=Hx(H,f,v);O=Hx(H,-f,v)}else{for(I=Math.round((q-S)/l),H=S+I*l;H>q;)H-=l;for(;H<=q;)H+=l;O=H-l}C[B]=m?O:_?H:(O+H)/2,E[B]=O,L[B]=H}return{vals:C,starts:E,ends:L}}});var N6=me((u2e,cq)=>{"use strict";var F6=kf().hasColorscale,q6=Wy(),fq=rs();cq.exports=function(t,r){fq.hasLines(r)&&F6(r,"line")&&q6(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),fq.hasMarkers(r)&&(F6(r,"marker")&&q6(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),F6(r,"marker.line")&&q6(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Vg=me((f2e,hq)=>{"use strict";var yn=Bt();hq.exports=function(t,r){for(var i=0;i{"use strict";var vq=Bt();dq.exports=function(t,r){vq.isArrayOrTypedArray(r.selectedpoints)&&vq.tagSelected(t,r)}});var H6=me((h2e,bq)=>{"use strict";var pq=Da(),O6=Bt(),Hg=Xi(),mq=uq(),B6=Zi().BADNUM,U6=rs(),Hle=N6(),Gle=Vg(),Zle=Gx();function Yle(e,t){var r=e._fullLayout,i=t._xA=Hg.getFromId(e,t.xaxis||"x","x"),a=t._yA=Hg.getFromId(e,t.yaxis||"y","y"),s=i.makeCalcdata(t,"x"),l=a.makeCalcdata(t,"y"),f=mq(t,i,"x",s),h=mq(t,a,"y",l),v=f.vals,m=h.vals,_=t._length,T=new Array(_),S=t.ids,C=V6(t,r,i,a),E=!1,L,z,B,q,I,O;_q(r,t);var H="x",V="y",W;if(C)O6.pushUnique(C.traceIndices,t.index),L=C.orientation==="v",L?(V="s",W="x"):(H="s",W="y"),I=C.stackgaps==="interpolate";else{var J=gq(t,_);yq(e,t,i,a,v,m,J)}var te=!!t.xperiodalignment,ne=!!t.yperiodalignment;for(z=0;z<_;z++){var oe=T[z]={},fe=pq(v[z]),ve=pq(m[z]);fe&&ve?(oe[H]=v[z],oe[V]=m[z],te&&(oe.orig_x=s[z],oe.xEnd=f.ends[z],oe.xStart=f.starts[z]),ne&&(oe.orig_y=l[z],oe.yEnd=h.ends[z],oe.yStart=h.starts[z])):C&&(L?fe:ve)?(oe[W]=L?v[z]:m[z],oe.gap=!0,I?(oe.s=B6,E=!0):oe.s=0):oe[H]=oe[V]=B6,S&&(oe.id=String(S[z]))}if(Gle(T,t),Hle(e,t),Zle(T,t),C){for(z=0;zz&&T[q].gap;)q--;for(O=T[q].s,B=T.length-1;B>q;B--)T[B].s=O;for(;z{"use strict";wq.exports=Zx;var Wle=Bt().distinctVals;function Zx(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,i=t.posAxis._id.charAt(0),a=[],s=0;s{"use strict";var su=Da(),Wh=Bt().isArrayOrTypedArray,rm=Zi().BADNUM,Xle=la(),Gg=Xi(),jle=vg().getAxisGroup,Yx=Tq();function Jle(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,f=[],h=[],v=0;vh+l||!su(f))}for(var m=0;m{"use strict";var Eq=H6(),Lq=Cq().setGroupPositions;function lue(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,f=[],h=[],v=0;vJ[m]&&m{"use strict";var fue=bi(),Fq=Zi(),Zg=Fq.BADNUM,qq=Fq.LOG_CLIP,zq=qq+.5,Iq=qq-.5,Wx=Bt(),cue=Wx.segmentsIntersect,Rq=Wx.constrain,j6=dx();Nq.exports=function(t,r){var i=r.trace||{},a=r.xaxis,s=r.yaxis,l=a.type==="log",f=s.type==="log",h=a._length,v=s._length,m=r.backoff,_=i.marker,T=r.connectGaps,S=r.baseTolerance,C=r.shape,E=C==="linear",L=i.fill&&i.fill!=="none",z=[],B=j6.minTolerance,q=t.length,I=new Array(q),O=0,H,V,W,J,te,ne,oe,fe,ve,Se,Me,Ae,we,Te,Ce,Le;function $e(At){var Fe=t[At];if(!Fe)return!1;var Ge=r.linearized?a.l2p(Fe.x):a.c2p(Fe.x),bt=r.linearized?s.l2p(Fe.y):s.c2p(Fe.y);if(Ge===Zg){if(l&&(Ge=a.c2p(Fe.x,!0)),Ge===Zg)return!1;f&&bt===Zg&&(Ge*=Math.abs(a._m*v*(a._m>0?zq:Iq)/(s._m*h*(s._m>0?zq:Iq)))),Ge*=1e3}if(bt===Zg){if(f&&(bt=s.c2p(Fe.y,!0)),bt===Zg)return!1;bt*=1e3}return[Ge,bt]}function lt(At,Fe,Ge,bt){var dt=Ge-At,yr=bt-Fe,xr=.5-At,pr=.5-Fe,Hr=dt*dt+yr*yr,pa=dt*xr+yr*pr;if(pa>0&&pa1||Math.abs(xr.y-Ge[0][1])>1)&&(xr=[xr.x,xr.y],bt&&Et(xr,At)xt||At[1]de)return[Rq(At[0],wt,xt),Rq(At[1],vt,de)]}function Gt(At,Fe){if(At[0]===Fe[0]&&(At[0]===wt||At[0]===xt)||At[1]===Fe[1]&&(At[1]===vt||At[1]===de))return!0}function Ct(At,Fe){var Ge=[],bt=It(At),dt=It(Fe);return bt&&dt&&Gt(bt,dt)||(bt&&Ge.push(bt),dt&&Ge.push(dt)),Ge}function Mt(At,Fe,Ge){return function(bt,dt){var yr=It(bt),xr=It(dt),pr=[];if(yr&&xr&&Gt(yr,xr))return pr;yr&&pr.push(yr),xr&&pr.push(xr);var Hr=2*Wx.constrain((bt[At]+dt[At])/2,Fe,Ge)-((yr||bt)[At]+(xr||dt)[At]);if(Hr){var pa;yr&&xr?pa=Hr>0==yr[At]>xr[At]?yr:xr:pa=yr||xr,pa[At]+=Hr}return pr}}var Ut;C==="linear"||C==="spline"?Ut=Tt:C==="hv"||C==="vh"?Ut=Ct:C==="hvh"?Ut=Mt(0,wt,xt):C==="vhv"&&(Ut=Mt(1,vt,de));function Ot(At,Fe){var Ge=Fe[0]-At[0],bt=(Fe[1]-At[1])/Ge,dt=(At[1]*Fe[0]-Fe[1]*At[0])/Ge;return dt>0?[bt>0?wt:xt,de]:[bt>0?xt:wt,vt]}function Be(At){var Fe=At[0],Ge=At[1],bt=Fe===I[O-1][0],dt=Ge===I[O-1][1];if(!(bt&&dt))if(O>1){var yr=Fe===I[O-2][0],xr=Ge===I[O-2][1];bt&&(Fe===wt||Fe===xt)&&yr?xr?O--:I[O-1]=At:dt&&(Ge===vt||Ge===de)&&xr?yr?O--:I[O-1]=At:I[O++]=At}else I[O++]=At}function ft(At){I[O-1][0]!==At[0]&&I[O-1][1]!==At[1]&&Be([mt,Xe]),Be(At),Ft=null,mt=Xe=0}var or=Wx.isArrayOrTypedArray(_);function Cr(At){if(At&&m&&(At.i=H,At.d=t,At.trace=i,At.marker=or?_[At.i]:_,At.backoff=m),it=At[0]/h,gt=At[1]/v,pe=At[0]xt?xt:0,at=At[1]de?de:0,pe||at){if(!O)I[O++]=[pe||At[0],at||At[1]];else if(Ft){var Fe=Ut(Ft,At);Fe.length>1&&(ft(Fe[0]),I[O++]=Fe[1])}else Lt=Ut(I[O-1],At)[0],I[O++]=Lt;var Ge=I[O-1];pe&&at&&(Ge[0]!==pe||Ge[1]!==at)?(Ft&&(mt!==pe&&Xe!==at?Be(mt&&Xe?Ot(Ft,At):[mt||pe,Xe||at]):mt&&Xe&&Be([mt,Xe])),Be([pe,at])):mt-pe&&Xe-at&&Be([pe||mt,at||Xe]),Ft=At,mt=pe,Xe=at}else Ft&&ft(Ut(Ft,At)[0]),I[O++]=At}for(H=0;HWe(ne,Sr))break;W=ne,we=ve[0]*fe[0]+ve[1]*fe[1],we>Me?(Me=we,J=ne,oe=!1):we=t.length||!ne)break;Cr(ne),V=ne}}Ft&&Be([mt||Ft[0],Xe||Ft[1]]),z.push(I.slice(0,O))}var Oe=C.slice(C.length-1);if(m&&Oe!=="h"&&Oe!=="v"){for(var yt=!1,qt=-1,Qt=[],Vt=0;Vt{"use strict";var Oq={tonextx:1,tonexty:1,tonext:1};Uq.exports=function(t,r,i){var a,s,l,f,h,v={},m=!1,_=-1,T=0,S=-1;for(s=0;s=0?h=S:(h=S=T,T++),h<_&&(m=!0),a._groupIndex=_=h;var C=i.slice();m&&C.sort(function(L,z){var B=L[0].trace,q=z[0].trace;return B._groupIndex-q._groupIndex||B.index-q.index});var E={};for(s=0;s{"use strict";var Vu=Ja(),hue=la(),Yg=Bt(),im=Yg.ensureSingle,Gq=Yg.identity,gn=bi(),nm=rs(),vue=Bq(),due=Vq(),Xx=lx().tester;Zq.exports=function(t,r,i,a,s,l){var f,h,v=!s,m=!!s&&s.duration>0,_=due(t,r,i);if(f=a.selectAll("g.trace").data(_,function(S){return S[0].trace.uid}),f.enter().append("g").attr("class",function(S){return"trace scatter trace"+S[0].trace.uid}).style("stroke-miterlimit",2),f.order(),pue(t,f,r),m){l&&(h=l());var T=Vu.transition().duration(s.duration).ease(s.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()});T.each(function(){a.selectAll("g.trace").each(function(S,C){Hq(t,C,r,S,_,this,s)})})}else f.each(function(S,C){Hq(t,C,r,S,_,this,s)});v&&f.exit().remove(),a.selectAll("path:not([d])").remove()};function pue(e,t,r){t.each(function(i){var a=im(Vu.select(this),"g","fills");gn.setClipUrl(a,r.layerClipId,e);var s=i[0].trace,l=[];s._ownfill&&l.push("_ownFill"),s._nexttrace&&l.push("_nextFill");var f=a.selectAll("g").data(l,Gq);f.enter().append("g"),f.exit().each(function(h){s[h]=null}).remove(),f.order().each(function(h){s[h]=im(Vu.select(this),"path","js-fill")})})}function Hq(e,t,r,i,a,s,l){var f=e._context.staticPlot,h;mue(e,t,r,i,a);var v=!!l&&l.duration>0;function m(Mt){return v?Mt.transition():Mt}var _=r.xaxis,T=r.yaxis,S=i[0].trace,C=S.line,E=Vu.select(s),L=im(E,"g","errorbars"),z=im(E,"g","lines"),B=im(E,"g","points"),q=im(E,"g","text");if(hue.getComponentMethod("errorbars","plot")(e,L,r,l),S.visible!==!0)return;m(E).style("opacity",S.opacity);var I,O,H=S.fill.charAt(S.fill.length-1);H!=="x"&&H!=="y"&&(H="");var V,W;H==="y"?(V=1,W=T.c2p(0,!0)):H==="x"&&(V=0,W=_.c2p(0,!0)),i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=E;var J="",te=[],ne=S._prevtrace,oe=null,fe=null;ne&&(J=ne._prevRevpath||"",O=ne._nextFill,te=ne._ownPolygons,oe=ne._fillsegments,fe=ne._fillElement);var ve,Se,Me="",Ae="",we,Te,Ce,Le,$e,lt,it=[];S._polygons=[];var gt=[],We=[],Et=Yg.noop;if(I=S._ownFill,nm.hasLines(S)||S.fill!=="none"){O&&O.datum(i),["hv","vh","hvh","vhv"].indexOf(C.shape)!==-1?(we=gn.steps(C.shape),Te=gn.steps(C.shape.split("").reverse().join(""))):C.shape==="spline"?we=Te=function(Mt){var Ut=Mt[Mt.length-1];return Mt.length>1&&Mt[0][0]===Ut[0]&&Mt[0][1]===Ut[1]?gn.smoothclosed(Mt.slice(1),C.smoothing):gn.smoothopen(Mt,C.smoothing)}:we=Te=function(Mt){return"M"+Mt.join("L")},Ce=function(Mt){return Te(Mt.reverse())},We=vue(i,{xaxis:_,yaxis:T,trace:S,connectGaps:S.connectgaps,baseTolerance:Math.max(C.width||1,3)/4,shape:C.shape,backoff:C.backoff,simplify:C.simplify,fill:S.fill}),gt=new Array(We.length);var nt=0;for(h=0;h=f[0]&&E.x<=f[1]&&E.y>=h[0]&&E.y<=h[1]}),T=Math.ceil(_.length/m),S=0;a.forEach(function(E,L){var z=E[0].trace;nm.hasMarkers(z)&&z.marker.maxdisplayed>0&&L{"use strict";Wq.exports={container:"marker",min:"cmin",max:"cmax"}});var jq=me((x2e,Xq)=>{"use strict";var jx=Xi();Xq.exports=function(t,r,i){var a={},s={_fullLayout:i},l=jx.getFromTrace(s,r,"x"),f=jx.getFromTrace(s,r,"y"),h=t.orig_x;h===void 0&&(h=t.x);var v=t.orig_y;return v===void 0&&(v=t.y),a.xLabel=jx.tickText(l,l.c2l(h),!0).text,a.yLabel=jx.tickText(f,f.c2l(v),!0).text,a}});var eT=me((b2e,Jq)=>{"use strict";var K6=Ja(),om=bi(),yue=la();function gue(e){var t=K6.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var i=K6.select(this),a=r.trace||r[0].trace;Q6(i,a,e)}),t.selectAll("g.text").each(function(r){var i=K6.select(this),a=r.trace||r[0].trace;$6(i,a,e)}),t.selectAll("g.trace path.js-line").call(om.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(om.fillGroupStyle,e,!1),yue.getComponentMethod("errorbars","style")(t)}function Q6(e,t,r){om.pointStyle(e.selectAll("path.point"),t,r)}function $6(e,t,r){om.textPointStyle(e.selectAll("text"),t,r)}function _ue(e,t,r){var i=t[0].trace;i.selectedpoints?(om.selectedPointStyle(r.selectAll("path.point"),i),om.selectedTextStyle(r.selectAll("text"),i)):(Q6(r,i,e),$6(r,i,e))}Jq.exports={style:gue,stylePoints:Q6,styleText:$6,styleOnSelect:_ue}});var tT=me((w2e,Kq)=>{"use strict";var sm=Oa(),xue=rs();Kq.exports=function(t,r){var i,a;if(t.mode==="lines")return i=t.line.color,i&&sm.opacity(i)?i:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var s=r.mcc||(t.marker||{}).color,l=r.mlcc||((t.marker||{}).line||{}).color;return a=s&&sm.opacity(s)?s:l&&sm.opacity(l)&&(r.mlw||((t.marker||{}).line||{}).width)?l:"",a?sm.opacity(a)<.3?sm.addOpacity(a,.3):a:(i=(t.line||{}).color,i&&sm.opacity(i)&&xue.hasLines(t)&&t.line.width?i:t.fillcolor)}});var eN=me((T2e,$q)=>{"use strict";var Jx=Bt(),Qq=Rf(),bue=la(),wue=tT(),rT=Oa(),Tue=Jx.fillText;$q.exports=function(t,r,i,a){var s=t.cd,l=s[0].trace,f=t.xa,h=t.ya,v=f.c2p(r),m=h.c2p(i),_=[v,m],T=l.hoveron||"",S=l.mode.indexOf("markers")!==-1?3:.5,C=!!l.xperiodalignment,E=!!l.yperiodalignment;if(T.indexOf("points")!==-1){var L=function(Ae){if(C){var we=f.c2p(Ae.xStart),Te=f.c2p(Ae.xEnd);return v>=Math.min(we,Te)&&v<=Math.max(we,Te)?0:1/0}var Ce=Math.max(3,Ae.mrc||0),Le=1-1/Ce,$e=Math.abs(f.c2p(Ae.x)-v);return $e=Math.min(we,Te)&&m<=Math.max(we,Te)?0:1/0}var Ce=Math.max(3,Ae.mrc||0),Le=1-1/Ce,$e=Math.abs(h.c2p(Ae.y)-m);return $eit!=de>=it&&(wt=Et[We-1][0],xt=Et[We][0],de-vt&&(nt=wt+(xt-wt)*(it-vt)/(de-vt),Ce=Math.min(Ce,nt),Le=Math.max(Le,nt)));return Ce=Math.max(Ce,0),Le=Math.min(Le,f._length),{x0:Ce,x1:Le,y0:it,y1:it}}if(T.indexOf("fills")!==-1&&l._fillElement){var ve=oe(l._fillElement)&&!oe(l._fillExclusionElement);if(ve){var Se=fe(l._polygons);Se===null&&(Se={x0:_[0],x1:_[0],y0:_[1],y1:_[1]});var Me=rT.defaultLine;return rT.opacity(l.fillcolor)?Me=l.fillcolor:rT.opacity((l.line||{}).color)&&(Me=l.line.color),Jx.extendFlat(t,{distance:t.maxHoverDistance,x0:Se.x0,x1:Se.x1,y0:Se.y0,y1:Se.y1,color:Me,hovertemplate:!1}),delete t.index,l.text&&!Jx.isArrayOrTypedArray(l.text)?t.text=String(l.text):t.text=l.name,[t]}}}});var aN=me((A2e,rN)=>{"use strict";var tN=rs();rN.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f=i[0].trace,h,v,m,_,T=!tN.hasMarkers(f)&&!tN.hasText(f);if(T)return[];if(r===!1)for(h=0;h{"use strict";iN.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var uN=me((S2e,lN)=>{"use strict";var Wg=la().traceIs,aT=T5();lN.exports=function(t,r,i,a){i("autotypenumbers",a.autotypenumbersDflt);var s=i("type",(a.splomStash||{}).type);s==="-"&&(Aue(r,a.data),r.type==="-"?r.type="linear":t.type=r.type)};function Aue(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),a;r.indexOf("scene")!==-1&&(r=i);var s=Mue(t,r,i);if(s){if(s.type==="histogram"&&i==={v:"y",h:"x"}[s.orientation||"v"]){e.type="linear";return}var l=i+"calendar",f=s[l],h={noMultiCategory:!Wg(s,"cartesian")||Wg(s,"noMultiCategory")};if(s.type==="box"&&s._hasPreCompStats&&i==={h:"x",v:"y"}[s.orientation||"v"]&&(h.noMultiCategory=!0),h.autotypenumbers=e.autotypenumbers,sN(s,i)){var v=oN(s),m=[];for(a=0;a0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(sN(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}function oN(e){return{v:"x",h:"y"}[e.orientation||"v"]}function sN(e,t){var r=oN(e),i=Wg(e,"box-violin"),a=Wg(e._fullInput||{},"candlestick");return i&&!a&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var cN=me((k2e,fN)=>{"use strict";var Sue=al().isTypedArraySpec;function kue(e,t){var r=t.dataAttr||e._id.charAt(0),i={},a,s,l;if(t.axData)a=t.axData;else for(a=[],s=0;s0||Sue(s),f;l&&(f="array");var h=i("categoryorder",f),v;h==="array"&&(v=i("categoryarray")),!l&&h==="array"&&(h=r.categoryorder="trace"),h==="trace"?r._initialCategories=[]:h==="array"?r._initialCategories=v.slice():(v=kue(r,a).sort(),h==="category ascending"?r._initialCategories=v:h==="category descending"&&(r._initialCategories=v.reverse()))}}});var dN=me((C2e,vN)=>{"use strict";var hN=Tf().mix,Cue=Af(),Eue=Bt();vN.exports=function(t,r,i,a){a=a||{};var s=a.dfltColor;function l(W,J){return Eue.coerce2(t,r,a.attributes,W,J)}var f=l("linecolor",s),h=l("linewidth"),v=i("showline",a.showLine||!!f||!!h);v||(delete r.linecolor,delete r.linewidth);var m=hN(s,a.bgColor,a.blend||Cue.lightFraction).toRgbString(),_=l("gridcolor",m),T=l("gridwidth"),S=l("griddash"),C=i("showgrid",a.showGrid||!!_||!!T||!!S);if(C||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),a.hasMinor){var E=hN(r.gridcolor,a.bgColor,67).toRgbString(),L=l("minor.gridcolor",E),z=l("minor.gridwidth",r.gridwidth||1),B=l("minor.griddash",r.griddash||"solid"),q=i("minor.showgrid",!!L||!!z||!!B);q||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!a.noZeroLine){var I=l("zerolinelayer"),O=l("zerolinecolor",s),H=l("zerolinewidth"),V=i("zeroline",a.showGrid||!!O||!!H);V||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var nT=me((E2e,xN)=>{"use strict";var pN=Da(),Lue=la(),Xg=Bt(),Due=Ri(),Pue=Wl(),iT=Fu(),mN=Yw(),yN=Xw(),zue=Kw(),Iue=Qw(),Rue=cN(),Fue=dN(),que=G5(),gN=n2(),Kx=Ao().WEEKDAY_PATTERN,Nue=Ao().HOUR_PATTERN;xN.exports=function(t,r,i,a,s){var l=a.letter,f=a.font||{},h=a.splomStash||{},v=i("visible",!a.visibleDflt),m=r._template||{},_=r.type||m.type||"-",T;if(_==="date"){var S=Lue.getComponentMethod("calendars","handleDefaults");S(t,r,"calendar",a.calendar),a.noTicklabelmode||(T=i("ticklabelmode"))}!a.noTicklabelindex&&(_==="date"||_==="linear")&&i("ticklabelindex");var C="";(!a.noTicklabelposition||_==="multicategory")&&(C=Xg.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:T==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||i("ticklabeloverflow",C.indexOf("inside")!==-1?"hide past domain":_==="category"||_==="multicategory"?"allow":"hide past div"),gN(r,s),que(t,r,i,a),Rue(t,r,i,a),a.noHover||(_!=="category"&&i("hoverformat"),a.noUnifiedhovertitle||i("unifiedhovertitle.text"));var E=i("color"),L=E!==iT.color.dflt?E:f.color,z=h.label||s._dfltTitle[l];if(Iue(t,r,i,_,a),!v)return r;i("title.text",z),Xg.coerceFont(i,"title.font",f,{overrideDflt:{size:Xg.bigFont(f.size),color:L}}),mN(t,r,i,_);var B=a.hasMinor;if(B&&(Due.newContainer(r,"minor"),mN(t,r,i,_,{isMinor:!0})),zue(t,r,i,_,a),yN(t,r,i,a),B){var q=a.isMinor;a.isMinor=!0,yN(t,r,i,a),a.isMinor=q}Fue(t,r,i,{dfltColor:E,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:B,attributes:iT}),B&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&i("mirror");var I=_==="multicategory";if(!a.noTickson&&(_==="category"||I)&&(r.ticks||r.showgrid)&&(I?(i("tickson","boundaries"),delete r.ticklabelposition):i("tickson")),I){var O=i("showdividers");O&&(i("dividercolor"),i("dividerwidth"))}if(_==="date")if(Pue(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Bue}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var H=0;H=2){var l="",f,h;if(s.length===2){for(f=0;f<2;f++)if(h=_N(s[f]),h){l=Kx;break}}var v=i("pattern",l);if(v===Kx)for(f=0;f<2;f++)h=_N(s[f]),h&&(t.bounds[f]=s[f]=h-1);if(v)for(f=0;f<2;f++)switch(h=s[f],v){case Kx:if(!pN(h)){t.enabled=!1;return}if(h=+h,h!==Math.floor(h)||h<0||h>=7){t.enabled=!1;return}t.bounds[f]=s[f]=h;break;case Nue:if(!pN(h)){t.enabled=!1;return}if(h=+h,h<0||h>24){t.enabled=!1;return}t.bounds[f]=s[f]=h;break}if(r.autorange===!1){var m=r.range;if(m[0]m[1]){t.enabled=!1;return}}else if(s[0]>m[0]&&s[1]{"use strict";var Uue=Da(),Qx=Bt();bN.exports=function(t,r,i,a){var s=a.counterAxes||[],l=a.overlayableAxes||[],f=a.letter,h=a.grid,v=a.overlayingDomain,m,_,T,S,C,E;h&&(_=h._domains[f][h._axisMap[r._id]],m=h._anchors[r._id],_&&(T=h[f+"side"].split(" ")[0],S=h.domain[f][T==="right"||T==="top"?1:0])),_=_||[0,1],m=m||(Uue(t.position)?"free":s[0]||"free"),T=T||(f==="x"?"bottom":"left"),S=S||0,C=0,E=!1;var L=Qx.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(s),dflt:m}},"anchor"),z=Qx.coerce(t,r,{side:{valType:"enumerated",values:f==="x"?["bottom","top"]:["left","right"],dflt:T}},"side");if(L==="free"){if(f==="y"){var B=i("autoshift");B&&(S=z==="left"?v[0]:v[1],E=r.automargin?r.automargin:!0,C=z==="left"?-3:3),i("shift",C)}i("position",S)}i("automargin",E);var q=!1;if(l.length&&(q=Qx.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!q){var I=i("domain",_);I[0]>I[1]-1/4096&&(r.domain=_),Qx.noneOrAll(t.domain,r.domain,_),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var LN=me((D2e,EN)=>{"use strict";var Id=Bt(),wN=Oa(),Vue=bc().isUnifiedHover,Hue=y4(),TN=Ri(),Gue=d0(),AN=Fu(),Zue=uN(),MN=nT(),Yue=vg(),SN=oT(),lT=Xn(),Uf=lT.id2name,kN=lT.name2id,Wue=Ao().AX_ID_PATTERN,CN=la(),$x=CN.traceIs,sT=CN.getComponentMethod;function eb(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}EN.exports=function(t,r,i){var a=r.autotypenumbers,s={},l={},f={},h={},v={},m={},_={},T={},S={},C={},E,L;for(E=0;E{"use strict";var Xue=Ja(),DN=la(),tb=Bt(),hl=bi(),rb=Xi();PN.exports=function(t,r,i,a){var s=t._fullLayout;if(r.length===0){rb.redrawComponents(t);return}function l(L){var z=L.xaxis,B=L.yaxis;s._defs.select("#"+L.clipId+"> rect").call(hl.setTranslate,0,0).call(hl.setScale,1,1),L.plot.call(hl.setTranslate,z._offset,B._offset).call(hl.setScale,1,1);var q=L.plot.selectAll(".scatterlayer .trace");q.selectAll(".point").call(hl.setPointGroupScale,1,1),q.selectAll(".textpoint").call(hl.setTextPointsScale,1,1),q.call(hl.hideOutsideRangePoints,L)}function f(L,z){var B=L.plotinfo,q=B.xaxis,I=B.yaxis,O=q._length,H=I._length,V=!!L.xr1,W=!!L.yr1,J=[];if(V){var te=tb.simpleMap(L.xr0,q.r2l),ne=tb.simpleMap(L.xr1,q.r2l),oe=te[1]-te[0],fe=ne[1]-ne[0];J[0]=(te[0]*(1-z)+z*ne[0]-te[0])/(te[1]-te[0])*O,J[2]=O*(1-z+z*fe/oe),q.range[0]=q.l2r(te[0]*(1-z)+z*ne[0]),q.range[1]=q.l2r(te[1]*(1-z)+z*ne[1])}else J[0]=0,J[2]=O;if(W){var ve=tb.simpleMap(L.yr0,I.r2l),Se=tb.simpleMap(L.yr1,I.r2l),Me=ve[1]-ve[0],Ae=Se[1]-Se[0];J[1]=(ve[1]*(1-z)+z*Se[1]-ve[1])/(ve[0]-ve[1])*H,J[3]=H*(1-z+z*Ae/Me),I.range[0]=q.l2r(ve[0]*(1-z)+z*Se[0]),I.range[1]=I.l2r(ve[1]*(1-z)+z*Se[1])}else J[1]=0,J[3]=H;rb.drawOne(t,q,{skipTitle:!0}),rb.drawOne(t,I,{skipTitle:!0}),rb.redrawComponents(t,[q._id,I._id]);var we=V?O/J[2]:1,Te=W?H/J[3]:1,Ce=V?J[0]:0,Le=W?J[1]:0,$e=V?J[0]/J[2]*O:0,lt=W?J[1]/J[3]*H:0,it=q._offset-$e,gt=I._offset-lt;B.clipRect.call(hl.setTranslate,Ce,Le).call(hl.setScale,1/we,1/Te),B.plot.call(hl.setTranslate,it,gt).call(hl.setScale,we,Te),hl.setPointGroupScale(B.zoomScalePts,1/we,1/Te),hl.setTextPointsScale(B.zoomScaleTxt,1/we,1/Te)}var h;a&&(h=a());function v(){for(var L={},z=0;zi.duration?(v(),S=window.cancelAnimationFrame(E)):S=window.requestAnimationFrame(E)}return _=Date.now(),S=window.requestAnimationFrame(E),Promise.resolve()}});var uT=me(Oo=>{"use strict";var ib=Ja(),IN=la(),Rd=Bt(),jue=eo(),Jue=bi(),RN=q_().getModuleCalcData,Xh=Xn(),Hu=Ao(),Kue=zh(),ni=Rd.ensureSingle;function ab(e,t,r){return Rd.ensureSingle(e,t,r,function(i){i.datum(r)})}var Fd=Hu.zindexSeparator;Oo.name="cartesian";Oo.attr=["xaxis","yaxis"];Oo.idRoot=["x","y"];Oo.idRegex=Hu.idRegex;Oo.attrRegex=Hu.attrRegex;Oo.attributes=nN();Oo.layoutAttributes=Fu();Oo.supplyLayoutDefaults=LN();Oo.transitionAxes=zN();Oo.finalizeSubplots=function(e,t){var r=t._subplots,i=r.xaxis,a=r.yaxis,s=r.cartesian,l=s,f={},h={},v,m,_;for(v=0;v0){var S=T.id;if(S.indexOf(Fd)!==-1)continue;S+=Fd+(v+1),T=Rd.extendFlat({},T,{id:S,plot:a._cartesianlayer.selectAll(".subplot").select("."+S)})}for(var C=[],E,L=0;L1&&(O+=Fd+I),q.push(f+O),l=0;l1,_=t.mainplotinfo;if(!t.mainplot||m)if(v)t.xlines=ni(i,"path","xlines-above"),t.ylines=ni(i,"path","ylines-above"),t.xaxislayer=ni(i,"g","xaxislayer-above"),t.yaxislayer=ni(i,"g","yaxislayer-above");else{if(!l){var T=ni(i,"g","layer-subplot");t.shapelayer=ni(T,"g","shapelayer"),t.imagelayer=ni(T,"g","imagelayer"),_&&m?(t.minorGridlayer=_.minorGridlayer,t.gridlayer=_.gridlayer,t.zerolinelayer=_.zerolinelayer):(t.minorGridlayer=ni(i,"g","minor-gridlayer"),t.gridlayer=ni(i,"g","gridlayer"),t.zerolinelayer=ni(i,"g","zerolinelayer"));var S=ni(i,"g","layer-between");t.shapelayerBetween=ni(S,"g","shapelayer"),t.imagelayerBetween=ni(S,"g","imagelayer"),ni(i,"path","xlines-below"),ni(i,"path","ylines-below"),t.overlinesBelow=ni(i,"g","overlines-below"),ni(i,"g","xaxislayer-below"),ni(i,"g","yaxislayer-below"),t.overaxesBelow=ni(i,"g","overaxes-below")}t.overplot=ni(i,"g","overplot"),t.plot=ni(t.overplot,"g",a),_&&m?t.zerolinelayerAbove=_.zerolinelayerAbove:t.zerolinelayerAbove=ni(i,"g","zerolinelayer-above"),l||(t.xlines=ni(i,"path","xlines-above"),t.ylines=ni(i,"path","ylines-above"),t.overlinesAbove=ni(i,"g","overlines-above"),ni(i,"g","xaxislayer-above"),ni(i,"g","yaxislayer-above"),t.overaxesAbove=ni(i,"g","overaxes-above"),t.xlines=i.select(".xlines-"+f),t.ylines=i.select(".ylines-"+h),t.xaxislayer=i.select(".xaxislayer-"+f),t.yaxislayer=i.select(".yaxislayer-"+h))}else{var C=_.plotgroup,E=a+"-x",L=a+"-y";t.minorGridlayer=_.minorGridlayer,t.gridlayer=_.gridlayer,t.zerolinelayer=_.zerolinelayer,t.zerolinelayerAbove=_.zerolinelayerAbove,ni(_.overlinesBelow,"path",E),ni(_.overlinesBelow,"path",L),ni(_.overaxesBelow,"g",E),ni(_.overaxesBelow,"g",L),t.plot=ni(_.overplot,"g",a),ni(_.overlinesAbove,"path",E),ni(_.overlinesAbove,"path",L),ni(_.overaxesAbove,"g",E),ni(_.overaxesAbove,"g",L),t.xlines=C.select(".overlines-"+f).select("."+E),t.ylines=C.select(".overlines-"+h).select("."+L),t.xaxislayer=C.select(".overaxes-"+f).select("."+E),t.yaxislayer=C.select(".overaxes-"+h).select("."+L)}l||(v||(ab(t.minorGridlayer,"g",t.xaxis._id),ab(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(z){return z[0]}).sort(Xh.idSort),ab(t.gridlayer,"g",t.xaxis._id),ab(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(z){return z[0]}).sort(Xh.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function NN(e,t){if(e){var r={};e.each(function(h){var v=h[0],m=ib.select(this);m.remove(),BN(v,t),r[v]=!0});for(var i in t._plots)for(var a=t._plots[i],s=a.overlays||[],l=0;l{"use strict";var nb=rs();ON.exports={hasLines:nb.hasLines,hasMarkers:nb.hasMarkers,hasText:nb.hasText,isBubble:nb.isBubble,attributes:kc(),layoutAttributes:I_(),supplyDefaults:eq(),crossTraceDefaults:iq(),supplyLayoutDefaults:oq(),calc:H6().calc,crossTraceCalc:Pq(),arraysToCalcdata:Vg(),plot:Yq(),colorbar:J6(),formatLabels:jq(),style:eT().style,styleOnSelect:eT().styleOnSelect,hoverPoints:eN(),selectPoints:aN(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:uT(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var GN=me((R2e,HN)=>{"use strict";var $ue=Ja(),efe=Oa(),VN=n6(),fT=Bt(),tfe=fT.strScale,rfe=fT.strRotate,afe=fT.strTranslate;HN.exports=function(t,r,i){var a=t.node(),s=VN[i.arrowhead||0],l=VN[i.startarrowhead||0],f=(i.arrowwidth||1)*(i.arrowsize||1),h=(i.arrowwidth||1)*(i.startarrowsize||1),v=r.indexOf("start")>=0,m=r.indexOf("end")>=0,_=s.backoff*f+i.standoff,T=l.backoff*h+i.startstandoff,S,C,E,L;if(a.nodeName==="line"){S={x:+t.attr("x1"),y:+t.attr("y1")},C={x:+t.attr("x2"),y:+t.attr("y2")};var z=S.x-C.x,B=S.y-C.y;if(E=Math.atan2(B,z),L=E+Math.PI,_&&T&&_+T>Math.sqrt(z*z+B*B)){ve();return}if(_){if(_*_>z*z+B*B){ve();return}var q=_*Math.cos(E),I=_*Math.sin(E);C.x+=q,C.y+=I,t.attr({x2:C.x,y2:C.y})}if(T){if(T*T>z*z+B*B){ve();return}var O=T*Math.cos(E),H=T*Math.sin(E);S.x-=O,S.y-=H,t.attr({x1:S.x,y1:S.y})}}else if(a.nodeName==="path"){var V=a.getTotalLength(),W="";if(V<_+T){ve();return}var J=a.getPointAtLength(0),te=a.getPointAtLength(.1);E=Math.atan2(J.y-te.y,J.x-te.x),S=a.getPointAtLength(Math.min(T,V)),W="0px,"+T+"px,";var ne=a.getPointAtLength(V),oe=a.getPointAtLength(V-.1);L=Math.atan2(ne.y-oe.y,ne.x-oe.x),C=a.getPointAtLength(Math.max(0,V-_));var fe=W?T+_:_;W+=V-fe+"px,"+V+"px",t.style("stroke-dasharray",W)}function ve(){t.style("stroke-dasharray","0px,100px")}function Se(Me,Ae,we,Te){Me.path&&(Me.noRotate&&(we=0),$ue.select(a.parentNode).append("path").attr({class:t.attr("class"),d:Me.path,transform:afe(Ae.x,Ae.y)+rfe(we*180/Math.PI)+tfe(Te)}).style({fill:efe.rgb(i.arrowcolor),"stroke-width":0}))}v&&Se(l,S,E,h),m&&Se(s,C,L,f)}});var ob=me((F2e,jN)=>{"use strict";var ZN=Ja(),cT=la(),ife=eo(),Jh=Bt(),hT=Jh.strTranslate,Jg=Xi(),qd=Oa(),Ec=bi(),YN=Rf(),vT=co(),dT=Oh(),jg=jl(),nfe=Ri().arrayEditor,ofe=GN();jN.exports={draw:sfe,drawOne:WN,drawRaw:XN};function sfe(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?dt="right":dt="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[dt]}for(var vt=!1,de=["x","y"],ze=0;ze1)&&(mt===at?(Sr=Xe.r2fraction(t["a"+pe]),(Sr<0||Sr>1)&&(vt=!0)):vt=!0),Ut=Xe._offset+Xe.r2p(t[pe]),ft=.5}else{var Oe=Cr==="domain";pe==="x"?(Be=t[pe],Ut=Oe?Xe._offset+Xe._length*Be:Ut=f.l+f.w*Be):(Be=1-t[pe],Ut=Oe?Xe._offset+Xe._length*Be:Ut=f.t+f.h*Be),ft=t.showarrow?.5:Be}if(t.showarrow){Mt.head=Ut;var yt=t["a"+pe];if(or=Lt*xt(.5,t.xanchor)-Tt*xt(.5,t.yanchor),mt===at){var qt=Jg.getRefType(mt);qt==="domain"?(pe==="y"&&(yt=1-yt),Mt.tail=Xe._offset+Xe._length*yt):qt==="paper"?pe==="y"?(yt=1-yt,Mt.tail=f.t+f.h*yt):Mt.tail=f.l+f.w*yt:Mt.tail=Xe._offset+Xe.r2p(yt),Ot=or}else Mt.tail=Ut+yt,Ot=or+yt;Mt.text=Mt.tail+or;var Qt=l[pe==="x"?"width":"height"];if(at==="paper"&&(Mt.head=Jh.constrain(Mt.head,1,Qt-1)),mt==="pixel"){var Vt=-Math.max(Mt.tail-3,Mt.text),tr=Math.min(Mt.tail+3,Mt.text)-Qt;Vt>0?(Mt.tail+=Vt,Mt.text+=Vt):tr>0&&(Mt.tail-=tr,Mt.text-=tr)}Mt.tail+=Ct,Mt.head+=Ct}else or=It*xt(ft,Gt),Ot=or,Mt.text=Ut+or;Mt.text+=Ct,or+=Ct,Ot+=Ct,t["_"+pe+"padplus"]=It/2+Ot,t["_"+pe+"padminus"]=It/2-Ot,t["_"+pe+"size"]=It,t["_"+pe+"shift"]=or}if(vt){V.remove();return}var ar=0,zr=0;if(t.align!=="left"&&(ar=(We-it)*(t.align==="center"?.5:1)),t.valign!=="top"&&(zr=(Et-gt)*(t.valign==="middle"?.5:1)),$e)Le.select("svg").attr({x:te+ar-1,y:te+zr}).call(Ec.setClipUrl,oe?E:null,e);else{var lr=te+zr-lt.top,At=te+ar-lt.left;Me.call(vT.positionText,At,lr).call(Ec.setClipUrl,oe?E:null,e)}fe.select("rect").call(Ec.setRect,te,te,We,Et),ne.call(Ec.setRect,W/2,W/2,nt-W,wt-W),V.call(Ec.setTranslate,Math.round(L.x.text-nt/2),Math.round(L.y.text-wt/2)),q.attr({transform:"rotate("+z+","+L.x.text+","+L.y.text+")"});var Fe=function(bt,dt){B.selectAll(".annotation-arrow-g").remove();var yr=L.x.head,xr=L.y.head,pr=L.x.tail+bt,Hr=L.y.tail+dt,pa=L.x.text+bt,Ea=L.y.text+dt,Ua=Jh.rotationXYMatrix(z,pa,Ea),Ki=Jh.apply2DTransform(Ua),qi=Jh.apply2DTransform2(Ua),vi=+ne.attr("width"),Ti=+ne.attr("height"),$i=pa-.5*vi,on=$i+vi,Ei=Ea-.5*Ti,ma=Ei+Ti,Gr=[[$i,Ei,$i,ma],[$i,ma,on,ma],[on,ma,on,Ei],[on,Ei,$i,Ei]].map(qi);if(!Gr.reduce(function(He,pt){return He^!!Jh.segmentsIntersect(yr,xr,yr+1e6,xr+1e6,pt[0],pt[1],pt[2],pt[3])},!1)){Gr.forEach(function(He){var pt=Jh.segmentsIntersect(pr,Hr,yr,xr,He[0],He[1],He[2],He[3]);pt&&(pr=pt.x,Hr=pt.y)});var $a=t.arrowwidth,Zr=t.arrowcolor,di=t.arrowside,ga=B.append("g").style({opacity:qd.opacity(Zr)}).classed("annotation-arrow-g",!0),le=ga.append("path").attr("d","M"+pr+","+Hr+"L"+yr+","+xr).style("stroke-width",$a+"px").call(qd.stroke,qd.rgb(Zr));if(ofe(le,di,t),h.annotationPosition&&le.node().parentNode&&!i){var ee=yr,se=xr;if(t.standoff){var ce=Math.sqrt(Math.pow(yr-pr,2)+Math.pow(xr-Hr,2));ee+=t.standoff*(pr-yr)/ce,se+=t.standoff*(Hr-xr)/ce}var Ee=ga.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(pr-ee)+","+(Hr-se),transform:hT(ee,se)}).style("stroke-width",$a+6+"px").call(qd.stroke,"rgba(0,0,0,0)").call(qd.fill,"rgba(0,0,0,0)"),Ne,rt;jg.init({element:Ee.node(),gd:e,prepFn:function(){var He=Ec.getTranslate(V);Ne=He.x,rt=He.y,a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0)},moveFn:function(He,pt){var Dt=Ki(Ne,rt),Rt=Dt[0]+He,$t=Dt[1]+pt;V.call(Ec.setTranslate,Rt,$t),S("x",jh(a,He,"x",f,t)),S("y",jh(s,pt,"y",f,t)),t.axref===t.xref&&S("ax",jh(a,He,"ax",f,t)),t.ayref===t.yref&&S("ay",jh(s,pt,"ay",f,t)),ga.attr("transform",hT(He,pt)),q.attr({transform:"rotate("+z+","+Rt+","+$t+")"})},doneFn:function(){cT.call("_guiRelayout",e,C());var He=document.querySelector(".js-notes-box-panel");He&&He.redraw(He.selectedObj)}})}}};if(t.showarrow&&Fe(0,0),I){var Ge;jg.init({element:V.node(),gd:e,prepFn:function(){Ge=q.attr("transform")},moveFn:function(bt,dt){var yr="pointer";if(t.showarrow)t.axref===t.xref?S("ax",jh(a,bt,"ax",f,t)):S("ax",t.ax+bt),t.ayref===t.yref?S("ay",jh(s,dt,"ay",f.w,t)):S("ay",t.ay+dt),Fe(bt,dt);else{if(i)return;var xr,pr;if(a)xr=jh(a,bt,"x",f,t);else{var Hr=t._xsize/f.w,pa=t.x+(t._xshift-t.xshift)/f.w-Hr/2;xr=jg.align(pa+bt/f.w,Hr,0,1,t.xanchor)}if(s)pr=jh(s,dt,"y",f,t);else{var Ea=t._ysize/f.h,Ua=t.y-(t._yshift+t.yshift)/f.h-Ea/2;pr=jg.align(Ua-dt/f.h,Ea,0,1,t.yanchor)}S("x",xr),S("y",pr),(!a||!s)&&(yr=jg.getCursor(a?.5:xr,s?.5:pr,t.xanchor,t.yanchor))}q.attr({transform:hT(bt,dt)+Ge}),dT(V,yr)},clickFn:function(bt,dt){t.captureevents&&e.emit("plotly_clickannotation",H(dt))},doneFn:function(){dT(V),cT.call("_guiRelayout",e,C());var bt=document.querySelector(".js-notes-box-panel");bt&&bt.redraw(bt.selectedObj)}})}}h.annotationText?Me.call(vT.makeEditable,{delegate:V,gd:e}).call(Ae).on("edit",function(Te){t.text=Te,this.call(Ae),S("text",Te),a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0),cT.call("_guiRelayout",e,C())}):Me.call(Ae)}});var tB=me((q2e,eB)=>{"use strict";var JN=Bt(),lfe=la(),KN=Ri().arrayEditor;eB.exports={hasClickToShow:ufe,onClick:ffe};function ufe(e,t){var r=$N(e,t);return r.on.length>0||r.explicitOff.length>0}function ffe(e,t){var r=$N(e,t),i=r.on,a=r.off.concat(r.explicitOff),s={},l=e._fullLayout.annotations,f,h;if(i.length||a.length){for(f=0;f{"use strict";var pT=Bt(),lm=Oa();rB.exports=function(t,r,i,a){a("opacity");var s=a("bgcolor"),l=a("bordercolor"),f=lm.opacity(l);a("borderpad");var h=a("borderwidth"),v=a("showarrow");a("text",v?" ":i._dfltTitle.annotation),a("textangle"),pT.coerceFont(a,"font",i.font),a("width"),a("align");var m=a("height");if(m&&a("valign"),v){var _=a("arrowside"),T,S;_.indexOf("end")!==-1&&(T=a("arrowhead"),S=a("arrowsize")),_.indexOf("start")!==-1&&(a("startarrowhead",T),a("startarrowsize",S)),a("arrowcolor",f?r.bordercolor:lm.defaultLine),a("arrowwidth",(f&&h||1)*2),a("standoff"),a("startstandoff")}var C=a("hovertext"),E=i.hoverlabel||{};if(C){var L=a("hoverlabel.bgcolor",E.bgcolor||(lm.opacity(s)?lm.rgb(s):lm.defaultLine)),z=a("hoverlabel.bordercolor",E.bordercolor||lm.contrast(L)),B=pT.extendFlat({},E.font);B.color||(B.color=z),pT.coerceFont(a,"hoverlabel.font",B)}a("captureevents",!!C)}});var iB=me((B2e,aB)=>{"use strict";var yT=Bt(),Nd=Xi(),cfe=Wl(),hfe=mT(),vfe=$0();aB.exports=function(t,r){cfe(t,r,{name:"annotations",handleItemDefaults:dfe})};function dfe(e,t,r){function i(q,I){return yT.coerce(e,t,vfe,q,I)}var a=i("visible"),s=i("clicktoshow");if(a||s){hfe(e,t,r,i);for(var l=t.showarrow,f=["x","y"],h=[-10,-30],v={_fullLayout:r},m=0;m<2;m++){var _=f[m],T=Nd.coerceRef(e,t,v,_,"","paper");if(T!=="paper"){var S=Nd.getFromId(v,T);S._annIndices.push(t._index)}if(Nd.coercePosition(t,v,i,T,_,.5),l){var C="a"+_,E=Nd.coerceRef(e,t,v,C,"pixel",["pixel","paper"]);E!=="pixel"&&E!==T&&(E=t[C]="pixel");var L=E==="pixel"?h[m]:.4;Nd.coercePosition(t,v,i,E,C,L)}i(_+"anchor"),i(_+"shift")}if(yT.noneOrAll(e,t,["x","y"]),l&&yT.noneOrAll(e,t,["ax","ay"]),s){var z=i("xclick"),B=i("yclick");t._xclick=z===void 0?t.x:Nd.cleanPosition(z,v,t.xref),t._yclick=B===void 0?t.y:Nd.cleanPosition(B,v,t.yref)}}}});var sB=me((O2e,oB)=>{"use strict";var gT=Bt(),Bd=Xi(),pfe=ob().draw;oB.exports=function(t){var r=t._fullLayout,i=gT.filterVisible(r.annotations);if(i.length&&t._fullData.length)return gT.syncOrAsync([pfe,mfe],t)};function mfe(e){var t=e._fullLayout;gT.filterVisible(t.annotations).forEach(function(r){var i=Bd.getFromId(e,r.xref),a=Bd.getFromId(e,r.yref),s=Bd.getRefType(r.xref),l=Bd.getRefType(r.yref);r._extremes={},s==="range"&&nB(r,i),l==="range"&&nB(r,a)})}function nB(e,t){var r=t._id,i=r.charAt(0),a=e[i],s=e["a"+i],l=e[i+"ref"],f=e["a"+i+"ref"],h=e["_"+i+"padplus"],v=e["_"+i+"padminus"],m={x:1,y:-1}[i]*e[i+"shift"],_=3*e.arrowsize*e.arrowwidth||0,T=_+m,S=_-m,C=3*e.startarrowsize*e.arrowwidth||0,E=C+m,L=C-m,z;if(f===l){var B=Bd.findExtremes(t,[t.r2c(a)],{ppadplus:T,ppadminus:S}),q=Bd.findExtremes(t,[t.r2c(s)],{ppadplus:Math.max(h,E),ppadminus:Math.max(v,L)});z={min:[B.min[0],q.min[0]],max:[B.max[0],q.max[0]]}}else E=s?E+s:E,L=s?L-s:L,z=Bd.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(h,T,E),ppadminus:Math.max(v,S,L)});e._extremes[r]=z}});var uB=me((U2e,lB)=>{"use strict";var yfe=Da(),gfe=e_();lB.exports=function(t,r,i,a){r=r||{};var s=i==="log"&&r.type==="linear",l=i==="linear"&&r.type==="log";if(!(s||l))return;var f=t._fullLayout.annotations,h=r._id.charAt(0),v,m;function _(S){var C=v[S],E=null;s?E=gfe(C,r.range):E=Math.pow(10,C),yfe(E)||(E=null),a(m+S,E)}for(var T=0;T{"use strict";var _T=ob(),fB=tB();cB.exports={moduleType:"component",name:"annotations",layoutAttributes:$0(),supplyLayoutDefaults:iB(),includeBasePlot:Lg()("annotations"),calcAutorange:sB(),draw:_T.draw,drawOne:_T.drawOne,drawRaw:_T.drawRaw,hasClickToShow:fB.hasClickToShow,onClick:fB.onClick,convertCoords:uB()}});var sb=me((H2e,vB)=>{"use strict";var Ui=$0(),_fe=il().overrideAll,xfe=Ri().templatedArray;vB.exports=_fe(xfe("annotation",{visible:Ui.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Ui.xanchor,xshift:Ui.xshift,yanchor:Ui.yanchor,yshift:Ui.yshift,text:Ui.text,textangle:Ui.textangle,font:Ui.font,width:Ui.width,height:Ui.height,opacity:Ui.opacity,align:Ui.align,valign:Ui.valign,bgcolor:Ui.bgcolor,bordercolor:Ui.bordercolor,borderpad:Ui.borderpad,borderwidth:Ui.borderwidth,showarrow:Ui.showarrow,arrowcolor:Ui.arrowcolor,arrowhead:Ui.arrowhead,startarrowhead:Ui.startarrowhead,arrowside:Ui.arrowside,arrowsize:Ui.arrowsize,startarrowsize:Ui.startarrowsize,arrowwidth:Ui.arrowwidth,standoff:Ui.standoff,startstandoff:Ui.startstandoff,hovertext:Ui.hovertext,hoverlabel:Ui.hoverlabel,captureevents:Ui.captureevents}),"calc","from-root")});var pB=me((G2e,dB)=>{"use strict";var xT=Bt(),bfe=Xi(),wfe=Wl(),Tfe=mT(),Afe=sb();dB.exports=function(t,r,i){wfe(t,r,{name:"annotations",handleItemDefaults:Mfe,fullLayout:i.fullLayout})};function Mfe(e,t,r,i){function a(f,h){return xT.coerce(e,t,Afe,f,h)}function s(f){var h=f+"axis",v={_fullLayout:{}};return v._fullLayout[h]=r[h],bfe.coercePosition(t,v,a,f,f,.5)}var l=a("visible");l&&(Tfe(e,t,i.fullLayout,a),s("x"),s("y"),s("z"),xT.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",a("ax",-10),a("ay",-30),xT.noneOrAll(e,t,["ax","ay"])))}});var _B=me((Z2e,gB)=>{"use strict";var mB=Bt(),yB=Xi();gB.exports=function(t){for(var r=t.fullSceneLayout,i=r.annotations,a=0;a{"use strict";function bT(e,t){var r=[0,0,0,0],i,a;for(i=0;i<4;++i)for(a=0;a<4;++a)r[a]+=e[4*i+a]*t[i];return r}function kfe(e,t){var r=bT(e.projection,bT(e.view,bT(e.model,[t[0],t[1],t[2],1])));return r}xB.exports=kfe});var TB=me((W2e,wB)=>{"use strict";var Cfe=ob().drawRaw,Efe=bB(),Lfe=["x","y","z"];wB.exports=function(t){for(var r=t.fullSceneLayout,i=t.dataScale,a=r.annotations,s=0;s1){f=!0;break}}f?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+s+'"]').remove():(l._pdata=Efe(t.glplot.cameraParams,[r.xaxis.r2l(l.x)*i[0],r.yaxis.r2l(l.y)*i[1],r.zaxis.r2l(l.z)*i[2]]),Cfe(t.graphDiv,l,s,t.id,l._xa,l._ya))}}});var SB=me((X2e,MB)=>{"use strict";var Dfe=la(),AB=Bt();MB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:sb()}}},layoutAttributes:sb(),handleDefaults:pB(),includeBasePlot:Pfe,convert:_B(),draw:TB()};function Pfe(e,t){var r=Dfe.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,a=Object.keys(e),s=0;s{"use strict";var kB=$0(),CB=qo(),EB=kc().line,zfe=hc().dash,Gu=mn().extendFlat,Ife=Ri().templatedArray,j2e=Eg(),um=ys(),Rfe=nl().shapeTexttemplateAttrs,Ffe=c_();LB.exports=Ife("shape",{visible:Gu({},um.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Gu({},um.legend,{editType:"calc+arraydraw"}),legendgroup:Gu({},um.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Gu({},um.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:CB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Gu({},um.legendrank,{editType:"calc+arraydraw"}),legendwidth:Gu({},um.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Gu({},kB.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Gu({},kB.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Gu({},EB.color,{editType:"arraydraw"}),width:Gu({},EB.width,{editType:"calc+arraydraw"}),dash:Gu({},zfe,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Rfe({},{keys:Object.keys(Ffe)}),font:CB({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var zB=me((K2e,PB)=>{"use strict";var Kg=Bt(),fm=Xi(),qfe=Wl(),Nfe=wT(),DB=Hh();PB.exports=function(t,r){qfe(t,r,{name:"shapes",handleItemDefaults:Ofe})};function Bfe(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function Ofe(e,t,r){function i(Te,Ce){return Kg.coerce(e,t,Nfe,Te,Ce)}t._isShape=!0;var a=i("visible");if(a){var s=i("showlegend");s&&(i("legend"),i("legendwidth"),i("legendgroup"),i("legendgrouptitle.text"),Kg.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var l=i("path"),f=l?"path":"rect",h=i("type",f),v=h!=="path";v&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule");var m=i("line.width");m&&(i("line.color"),i("line.dash"));for(var _=i("xsizemode"),T=i("ysizemode"),S=["x","y"],C=0;C<2;C++){var E=S[C],L=E+"anchor",z=E==="x"?_:T,B={_fullLayout:r},q,I,O,H=fm.coerceRef(e,t,B,E,void 0,"paper"),V=fm.getRefType(H);if(V==="range"?(q=fm.getFromId(B,H),q._shapeIndices.push(t._index),O=DB.rangeToShapePosition(q),I=DB.shapePositionToRange(q),(q.type==="category"||q.type==="multicategory")&&(i(E+"0shift"),i(E+"1shift"))):I=O=Kg.identity,v){var W=.25,J=.75,te=E+"0",ne=E+"1",oe=e[te],fe=e[ne];e[te]=I(e[te],!0),e[ne]=I(e[ne],!0),z==="pixel"?(i(te,0),i(ne,10)):(fm.coercePosition(t,B,i,H,te,W),fm.coercePosition(t,B,i,H,ne,J)),t[te]=O(t[te]),t[ne]=O(t[ne]),e[te]=oe,e[ne]=fe}if(z==="pixel"){var ve=e[L];e[L]=I(e[L],!0),fm.coercePosition(t,B,i,H,L,.25),t[L]=O(t[L]),e[L]=ve}}v&&Kg.noneOrAll(e,t,["x0","x1","y0","y1"]);var Se=h==="line",Me,Ae;if(v&&(Me=i("label.texttemplate")),Me||(Ae=i("label.text")),Ae||Me){i("label.textangle");var we=i("label.textposition",Se?"middle":"middle center");i("label.xanchor"),i("label.yanchor",Bfe(Se,we)),i("label.padding"),Kg.coerceFont(i,"label.font",r.font)}}}});var FB=me((Q2e,RB)=>{"use strict";var Ufe=Oa(),IB=Bt();function Vfe(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}RB.exports=function(t,r,i){i("newshape.visible"),i("newshape.name"),i("newshape.showlegend"),i("newshape.legend"),i("newshape.legendwidth"),i("newshape.legendgroup"),i("newshape.legendgrouptitle.text"),IB.coerceFont(i,"newshape.legendgrouptitle.font"),i("newshape.legendrank"),i("newshape.drawdirection"),i("newshape.layer"),i("newshape.fillcolor"),i("newshape.fillrule"),i("newshape.opacity");var a=i("newshape.line.width");if(a){var s=(t||{}).plot_bgcolor||"#FFF";i("newshape.line.color",Ufe.contrast(s)),i("newshape.line.dash")}var l=t.dragmode==="drawline",f=i("newshape.label.text"),h=i("newshape.label.texttemplate");if(f||h){i("newshape.label.textangle");var v=i("newshape.label.textposition",l?"middle":"middle center");i("newshape.label.xanchor"),i("newshape.label.yanchor",Vfe(l,v)),i("newshape.label.padding"),IB.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var UB=me(($2e,OB)=>{"use strict";var TT=Bt(),cm=Xi(),hm=ug(),NB=Hh();OB.exports=function(t){var r=t._fullLayout,i=TT.filterVisible(r.shapes);if(!(!i.length||!t._fullData.length))for(var a=0;a0?v+l:l;return{ppad:l,ppadplus:f?_:T,ppadminus:f?T:_}}else return{ppad:l}}function qB(e,t,r){var i=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",s,l,f=0,h=0,v=a?e.r2c:e.d2c,m=t[i+"sizemode"]==="scaled";if(m?(s=t[i+"0"],l=t[i+"1"],a&&(f=t[i+"0shift"],h=t[i+"1shift"])):(s=t[i+"anchor"],l=t[i+"anchor"]),s!==void 0)return[v(s)+f,v(l)+h];if(t.path){var _=1/0,T=-1/0,S=t.path.match(hm.segmentRE),C,E,L,z,B;for(e.type==="date"&&(v=NB.decodeDate(v)),C=0;CT&&(T=B)));if(T>=_)return[_,T]}}});var GB=me((exe,HB)=>{"use strict";var VB=J2();HB.exports={moduleType:"component",name:"shapes",layoutAttributes:wT(),supplyLayoutDefaults:zB(),supplyDrawNewShapeDefaults:FB(),includeBasePlot:Lg()("shapes"),calcAutorange:UB(),draw:VB.draw,drawOne:VB.drawOne}});var AT=me((rxe,YB)=>{"use strict";var ZB=Ao(),Zfe=Ri().templatedArray,txe=Eg();YB.exports=Zfe("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",ZB.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",ZB.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var XB=me((axe,WB)=>{"use strict";var Yfe=Bt(),MT=Xi(),Wfe=Wl(),Xfe=AT(),jfe="images";WB.exports=function(t,r){var i={name:jfe,handleItemDefaults:Jfe};Wfe(t,r,i)};function Jfe(e,t,r){function i(T,S){return Yfe.coerce(e,t,Xfe,T,S)}var a=i("source"),s=i("visible",!!a);if(!s)return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var l={_fullLayout:r},f=["x","y"],h=0;h<2;h++){var v=f[h],m=MT.coerceRef(e,t,l,v,"paper",void 0);if(m!=="paper"){var _=MT.getFromId(l,m);_._imgIndices.push(t._index)}MT.coercePosition(t,l,i,m,v,0)}return t}});var QB=me((ixe,KB)=>{"use strict";var jB=Ja(),Kfe=bi(),vm=Xi(),JB=Xn(),Qfe=zh();KB.exports=function(t){var r=t._fullLayout,i=[],a={},s=[],l,f;for(f=0;f{"use strict";var $B=Da(),$fe=e_();eO.exports=function(t,r,i,a){r=r||{};var s=i==="log"&&r.type==="linear",l=i==="linear"&&r.type==="log";if(s||l){for(var f=t._fullLayout.images,h=r._id.charAt(0),v,m,_=0;_{"use strict";rO.exports={moduleType:"component",name:"images",layoutAttributes:AT(),supplyLayoutDefaults:XB(),includeBasePlot:Lg()("images"),draw:QB(),convertCoords:tO()}});var lb=me((sxe,iO)=>{"use strict";iO.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var ST=me((lxe,oO)=>{"use strict";var ece=qo(),tce=Af(),rce=mn().extendFlat,ace=il().overrideAll,ice=h_(),nO=Ri().templatedArray,nce=nO("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});oO.exports=ace(nO("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:nce,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:rce(ice({editType:"arraydraw"}),{}),font:ece({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:tce.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var fO=me((uxe,uO)=>{"use strict";var ub=Bt(),sO=Wl(),lO=ST(),oce=lb(),sce=oce.name,lce=lO.buttons;uO.exports=function(t,r){var i={name:sce,handleItemDefaults:uce};sO(t,r,i)};function uce(e,t,r){function i(l,f){return ub.coerce(e,t,lO,l,f)}var a=sO(e,t,{name:"buttons",handleItemDefaults:fce}),s=i("visible",a.length>0);s&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),ub.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),ub.coerceFont(i,"font",r.font),i("bgcolor",r.paper_bgcolor),i("bordercolor"),i("borderwidth"))}function fce(e,t){function r(a,s){return ub.coerce(e,t,lce,a,s)}var i=r("visible",e.method==="skip"||Array.isArray(e.args));i&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var vO=me((fxe,hO)=>{"use strict";hO.exports=nn;var Zu=Ja(),cO=Oa(),dm=bi(),fb=Bt();function nn(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}nn.barWidth=2;nn.barLength=20;nn.barRadius=2;nn.barPad=1;nn.barColor="#808BA4";nn.prototype.enable=function(t,r,i){var a=this.gd._fullLayout,s=a.width,l=a.height;this.position=t;var f=this.position.l,h=this.position.w,v=this.position.t,m=this.position.h,_=this.position.direction,T=_==="down",S=_==="left",C=_==="right",E=_==="up",L=h,z=m,B,q,I,O;!T&&!S&&!C&&!E&&(this.position.direction="down",T=!0);var H=T||E;H?(B=f,q=B+L,T?(I=v,O=Math.min(I+z,l),z=O-I):(O=v+z,I=Math.max(O-z,0),z=O-I)):(I=v,O=I+z,S?(q=f+L,B=Math.max(q-L,0),L=q-B):(B=f,q=Math.min(B+L,s),L=q-B)),this._box={l:B,t:I,w:L,h:z};var V=h>L,W=nn.barLength+2*nn.barPad,J=nn.barWidth+2*nn.barPad,te=f,ne=v+m;ne+J>l&&(ne=l-J);var oe=this.container.selectAll("rect.scrollbar-horizontal").data(V?[0]:[]);oe.exit().on(".drag",null).remove(),oe.enter().append("rect").classed("scrollbar-horizontal",!0).call(cO.fill,nn.barColor),V?(this.hbar=oe.attr({rx:nn.barRadius,ry:nn.barRadius,x:te,y:ne,width:W,height:J}),this._hbarXMin=te+W/2,this._hbarTranslateMax=L-W):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var fe=m>z,ve=nn.barWidth+2*nn.barPad,Se=nn.barLength+2*nn.barPad,Me=f+h,Ae=v;Me+ve>s&&(Me=s-ve);var we=this.container.selectAll("rect.scrollbar-vertical").data(fe?[0]:[]);we.exit().on(".drag",null).remove(),we.enter().append("rect").classed("scrollbar-vertical",!0).call(cO.fill,nn.barColor),fe?(this.vbar=we.attr({rx:nn.barRadius,ry:nn.barRadius,x:Me,y:Ae,width:ve,height:Se}),this._vbarYMin=Ae+Se/2,this._vbarTranslateMax=z-Se):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var Te=this.id,Ce=B-.5,Le=fe?q+ve+.5:q+.5,$e=I-.5,lt=V?O+J+.5:O+.5,it=a._topdefs.selectAll("#"+Te).data(V||fe?[0]:[]);if(it.exit().remove(),it.enter().append("clipPath").attr("id",Te).append("rect"),V||fe?(this._clipRect=it.select("rect").attr({x:Math.floor(Ce),y:Math.floor($e),width:Math.ceil(Le)-Math.floor(Ce),height:Math.ceil(lt)-Math.floor($e)}),this.container.call(dm.setClipUrl,Te,this.gd),this.bg.attr({x:f,y:v,width:h,height:m})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(dm.setClipUrl,null),delete this._clipRect),V||fe){var gt=Zu.behavior.drag().on("dragstart",function(){Zu.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(gt);var We=Zu.behavior.drag().on("dragstart",function(){Zu.event.sourceEvent.preventDefault(),Zu.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));V&&this.hbar.on(".drag",null).call(We),fe&&this.vbar.on(".drag",null).call(We)}this.setTranslate(r,i)};nn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(dm.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};nn.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Zu.event.dx),this.vbar&&(r-=Zu.event.dy),this.setTranslate(t,r)};nn.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Zu.event.deltaY),this.vbar&&(r+=Zu.event.deltaY),this.setTranslate(t,r)};nn.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var i=t+this._hbarXMin,a=i+this._hbarTranslateMax,s=fb.constrain(Zu.event.x,i,a),l=(s-i)/(a-i),f=this.position.w-this._box.w;t=l*f}if(this.vbar){var h=r+this._vbarYMin,v=h+this._vbarTranslateMax,m=fb.constrain(Zu.event.y,h,v),_=(m-h)/(v-h),T=this.position.h-this._box.h;r=_*T}this.setTranslate(t,r)};nn.prototype.setTranslate=function(t,r){var i=this.position.w-this._box.w,a=this.position.h-this._box.h;if(t=fb.constrain(t||0,0,i),r=fb.constrain(r||0,0,a),this.translateX=t,this.translateY=r,this.container.call(dm.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var s=t/i;this.hbar.call(dm.setTranslate,t+s*this._hbarTranslateMax,r)}if(this.vbar){var l=r/a;this.vbar.call(dm.setTranslate,t,r+l*this._vbarTranslateMax)}}});var TO=me((cxe,wO)=>{"use strict";var pm=Ja(),Qg=eo(),$g=Oa(),mm=bi(),vl=Bt(),cb=co(),cce=Ri().arrayEditor,pO=ts().LINE_SPACING,aa=lb(),hce=vO();wO.exports=function(t){var r=t._fullLayout,i=vl.filterVisible(r[aa.name]);function a(T){Qg.autoMargin(t,xO(T))}var s=r._menulayer.selectAll("g."+aa.containerClassName).data(i.length>0?[0]:[]);if(s.enter().append("g").classed(aa.containerClassName,!0).style("cursor","pointer"),s.exit().each(function(){pm.select(this).selectAll("g."+aa.headerGroupClassName).each(a)}).remove(),i.length!==0){var l=s.selectAll("g."+aa.headerGroupClassName).data(i,vce);l.enter().append("g").classed(aa.headerGroupClassName,!0);for(var f=vl.ensureSingle(s,"g",aa.dropdownButtonGroupClassName,function(T){T.style("pointer-events","all")}),h=0;h{"use strict";var xce=lb();AO.exports={moduleType:"component",name:xce.name,layoutAttributes:ST(),supplyLayoutDefaults:fO(),draw:TO()}});var t1=me((vxe,SO)=>{"use strict";SO.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var LT=me((dxe,EO)=>{"use strict";var kO=qo(),bce=h_(),wce=mn().extendDeepAll,Tce=il().overrideAll,Ace=zy(),CO=Ri().templatedArray,Od=t1(),Mce=CO("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});EO.exports=Tce(CO("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Mce,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:wce(bce({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Ace.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:kO({})},font:kO({}),activebgcolor:{valType:"color",dflt:Od.gripBgActiveColor},bgcolor:{valType:"color",dflt:Od.railBgColor},bordercolor:{valType:"color",dflt:Od.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Od.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Od.tickLength},tickcolor:{valType:"color",dflt:Od.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Od.minorTickLength}}),"arraydraw","from-root")});var zO=me((pxe,PO)=>{"use strict";var ym=Bt(),LO=Wl(),DO=LT(),Sce=t1(),kce=Sce.name,Cce=DO.steps;PO.exports=function(t,r){LO(t,r,{name:kce,handleItemDefaults:Ece})};function Ece(e,t,r){function i(_,T){return ym.coerce(e,t,DO,_,T)}for(var a=LO(e,t,{name:"steps",handleItemDefaults:Lce}),s=0,l=0;l{"use strict";var Yu=Ja(),hb=eo(),Kh=Oa(),Wu=bi(),dl=Bt(),Dce=dl.strTranslate,r1=co(),Pce=Ri().arrayEditor,ba=t1(),zT=ts(),FO=zT.LINE_SPACING,DT=zT.FROM_TL,PT=zT.FROM_BR;VO.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,a=zce(i,t),s=i._infolayer.selectAll("g."+ba.containerClassName).data(a.length>0?[0]:[]);s.enter().append("g").classed(ba.containerClassName,!0).style("cursor",r?null:"ew-resize");function l(m){m._commandObserver&&(m._commandObserver.remove(),delete m._commandObserver),hb.autoMargin(t,qO(m))}if(s.exit().each(function(){Yu.select(this).selectAll("g."+ba.groupClassName).each(l)}).remove(),a.length!==0){var f=s.selectAll("g."+ba.groupClassName).data(a,Ice);f.enter().append("g").classed(ba.groupClassName,!0),f.exit().each(l).remove();for(var h=0;h0&&(f=f.transition().duration(t.transition.duration).ease(t.transition.easing)),f.attr("transform",Dce(l-ba.gripWidth*.5,t._dims.currentValueTotalHeight))}}function IT(e,t){var r=e._dims;return r.inputAreaStart+ba.stepInset+(r.inputAreaLength-2*ba.stepInset)*Math.min(1,Math.max(0,t))}function RO(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-ba.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*ba.stepInset-2*r.inputAreaStart)))}function Uce(e,t,r){var i=r._dims,a=dl.ensureSingle(e,"rect",ba.railTouchRectClass,function(s){s.call(OO,t,e,r).style("pointer-events","all")});a.attr({width:i.inputAreaLength,height:Math.max(i.inputAreaWidth,ba.tickOffset+r.ticklen+i.labelHeight)}).call(Kh.fill,r.bgcolor).attr("opacity",0),Wu.setTranslate(a,0,i.currentValueTotalHeight)}function Vce(e,t){var r=t._dims,i=r.inputAreaLength-ba.railInset*2,a=dl.ensureSingle(e,"rect",ba.railRectClass);a.attr({width:i,height:ba.railWidth,rx:ba.railRadius,ry:ba.railRadius,"shape-rendering":"crispEdges"}).call(Kh.stroke,t.bordercolor).call(Kh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Wu.setTranslate(a,ba.railInset,(r.inputAreaWidth-ba.railWidth)*.5+r.currentValueTotalHeight)}});var ZO=me((yxe,GO)=>{"use strict";var Hce=t1();GO.exports={moduleType:"component",name:Hce.name,layoutAttributes:LT(),supplyLayoutDefaults:zO(),draw:HO()}});var db=me((gxe,WO)=>{"use strict";var YO=Af();WO.exports={bgcolor:{valType:"color",dflt:YO.background,editType:"plot"},bordercolor:{valType:"color",dflt:YO.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var RT=me((_xe,XO)=>{"use strict";XO.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var pb=me((xxe,jO)=>{"use strict";jO.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var QO=me(yb=>{"use strict";var Gce=Xn(),Zce=co(),JO=pb(),Yce=ts().LINE_SPACING,mb=JO.name;function KO(e){var t=e&&e[mb];return t&&t.visible}yb.isVisible=KO;yb.makeData=function(e){for(var t=Gce.list({_fullLayout:e},"x",!0),r=e.margin,i=[],a=0;a{"use strict";var gb=Bt(),$O=Ri(),eU=Xn(),Wce=db(),Xce=RT();tU.exports=function(t,r,i){var a=t[i],s=r[i];if(!(a.rangeslider||r._requestRangeslider[s._id]))return;gb.isPlainObject(a.rangeslider)||(a.rangeslider={});var l=a.rangeslider,f=$O.newContainer(s,"rangeslider");function h(O,H){return gb.coerce(l,f,Wce,O,H)}var v,m;function _(O,H){return gb.coerce(v,m,Xce,O,H)}var T=h("visible");if(T){h("bgcolor",r.plot_bgcolor),h("bordercolor"),h("borderwidth"),h("thickness"),h("autorange",!s.isValidRange(l.range)),h("range");var S=r._subplots;if(S)for(var C=S.cartesian.filter(function(O){return O.substr(0,O.indexOf("y"))===eU.name2id(i)}).map(function(O){return O.substr(O.indexOf("y"),O.length)}),E=gb.simpleMap(C,eU.id2name),L=0;L{"use strict";var jce=Xn().list,Jce=Qy().getAutoRange,Kce=pb();aU.exports=function(t){for(var r=jce(t,"x",!0),i=0;i{"use strict";var _b=Ja(),Qce=la(),$ce=eo(),_n=Bt(),xb=_n.strTranslate,oU=bi(),Qh=Oa(),ehe=Jy(),the=uT(),FT=Xn(),rhe=jl(),ahe=Oh(),Ia=pb();sU.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=we.max)Me=ne[Ae+1];else if(Se=we.pmax)Me=ne[Ae+1];else if(Se0?e.touches[0].clientX:0}function ihe(e,t,r,i){if(t._context.staticPlot)return;var a=e.select("rect."+Ia.slideBoxClassName).node(),s=e.select("rect."+Ia.grabAreaMinClassName).node(),l=e.select("rect."+Ia.grabAreaMaxClassName).node();function f(){var h=_b.event,v=h.target,m=nU(h),_=m-e.node().getBoundingClientRect().left,T=i.d2p(r._rl[0]),S=i.d2p(r._rl[1]),C=rhe.coverSlip();this.addEventListener("touchmove",E),this.addEventListener("touchend",L),C.addEventListener("mousemove",E),C.addEventListener("mouseup",L);function E(z){var B=nU(z),q=+B-m,I,O,H;switch(v){case a:if(H="ew-resize",T+q>r._length||S+q<0)return;I=T+q,O=S+q;break;case s:if(H="col-resize",T+q>r._length)return;I=T+q,O=S;break;case l:if(H="col-resize",S+q<0)return;I=T,O=S+q;break;default:H="ew-resize",I=_,O=_+q;break}if(O{"use strict";var dhe=Bt(),phe=db(),mhe=RT(),qT=QO();uU.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:dhe.extendFlat({},phe,{yaxis:mhe})}}},layoutAttributes:db(),handleDefaults:rU(),calcAutorange:iU(),draw:lU(),isVisible:qT.isVisible,makeData:qT.makeData,autoMarginOpts:qT.autoMarginOpts}});var bb=me((Sxe,hU)=>{"use strict";var yhe=qo(),cU=Af(),ghe=Ri().templatedArray,_he=ghe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});hU.exports={visible:{valType:"boolean",editType:"plot"},buttons:_he,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:yhe({editType:"plot"}),bgcolor:{valType:"color",dflt:cU.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:cU.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var NT=me((kxe,vU)=>{"use strict";vU.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var mU=me((Cxe,pU)=>{"use strict";var wb=Bt(),xhe=Oa(),bhe=Ri(),whe=Wl(),dU=bb(),BT=NT();pU.exports=function(t,r,i,a,s){var l=t.rangeselector||{},f=bhe.newContainer(r,"rangeselector");function h(S,C){return wb.coerce(l,f,dU,S,C)}var v=whe(l,f,{name:"buttons",handleItemDefaults:The,calendar:s}),m=h("visible",v.length>0);if(m){var _=Ahe(r,i,a);h("x",_[0]),h("y",_[1]),wb.noneOrAll(t,r,["x","y"]),h("xanchor"),h("yanchor"),wb.coerceFont(h,"font",i.font);var T=h("bgcolor");h("activecolor",xhe.contrast(T,BT.lightAmount,BT.darkAmount)),h("bordercolor"),h("borderwidth")}};function The(e,t,r,i){var a=i.calendar;function s(h,v){return wb.coerce(e,t,dU.buttons,h,v)}var l=s("visible");if(l){var f=s("step");f!=="all"&&(a&&a!=="gregorian"&&(f==="month"||f==="year")?t.stepmode="backward":s("stepmode"),s("count")),s("label")}}function Ahe(e,t,r){for(var i=r.filter(function(f){return t[f].anchor===e._id}),a=0,s=0;s{"use strict";var Mhe=q3(),She=Bt().titleCase;yU.exports=function(t,r){var i=t._name,a={};if(r.step==="all")a[i+".autorange"]=!0;else{var s=khe(t,r);a[i+".range[0]"]=s[0],a[i+".range[1]"]=s[1]}return a};function khe(e,t){var r=e.range,i=new Date(e.r2l(r[1])),a=t.step,s=Mhe["utc"+She(a)],l=t.count,f;switch(t.stepmode){case"backward":f=e.l2r(+s.offset(i,-l));break;case"todate":var h=s.offset(i,-l);f=e.l2r(+s.ceil(h));break}var v=r[1];return[f,v]}});var SU=me((Lxe,MU)=>{"use strict";var Ab=Ja(),Che=la(),Ehe=eo(),_U=Oa(),AU=bi(),Lc=Bt(),xU=Lc.strTranslate,Tb=co(),Lhe=Xn(),VT=ts(),bU=VT.LINE_SPACING,wU=VT.FROM_TL,TU=VT.FROM_BR,UT=NT(),Dhe=gU();MU.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(Phe(t),zhe);i.enter().append("g").classed("rangeselector",!0),i.exit().remove(),i.style({cursor:"pointer","pointer-events":"all"}),i.each(function(a){var s=Ab.select(this),l=a,f=l.rangeselector,h=s.selectAll("g.button").data(Lc.filterVisible(f.buttons));h.enter().append("g").classed("button",!0),h.exit().remove(),h.each(function(v){var m=Ab.select(this),_=Dhe(l,v);v._isActive=Ihe(l,v,_),m.call(OT,f,v),m.call(Fhe,f,v,t),m.on("click",function(){t._dragged||Che.call("_guiRelayout",t,_)}),m.on("mouseover",function(){v._isHovered=!0,m.call(OT,f,v)}),m.on("mouseout",function(){v._isHovered=!1,m.call(OT,f,v)})}),Nhe(t,h,f,l._name,s)})};function Phe(e){for(var t=Lhe.list(e,"x",!0),r=[],i=0;i{"use strict";kU.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:bb()}}},layoutAttributes:bb(),handleDefaults:mU(),draw:SU()}});var Mb=me(HT=>{"use strict";var EU=mn().extendFlat;HT.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},i=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",s=t.description?" "+t.description:"",l={x:EU({},r,{}),y:EU({},r,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};HT.defaults=function(e,t,r,i){var a=i&&i.x||[0,1],s=i&&i.y||[0,1],l=t.grid;if(l){var f=r("domain.column");f!==void 0&&(f{"use strict";var Bhe=Bt(),Ohe=c0().counter,Uhe=Mb().attributes,LU=Ao().idRegex,Vhe=Ri(),GT={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Ohe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[LU.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[LU.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Uhe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Sb(e,t,r){var i=t[r+"axes"],a=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(i))return i;if(a.length)return a}function Hhe(e,t){var r=e.grid||{},i=Sb(t,r,"x"),a=Sb(t,r,"y");if(!e.grid&&!i&&!a)return;var s=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),l=Array.isArray(i),f=Array.isArray(a),h=l&&i!==r.xaxes&&f&&a!==r.yaxes,v,m;s?(v=r.subplots.length,m=r.subplots[0].length):(f&&(v=a.length),l&&(m=i.length));var _=Vhe.newContainer(t,"grid");function T(H,V){return Bhe.coerce(r,_,GT,H,V)}var S=T("rows",v),C=T("columns",m);if(!(S*C>1)){delete t.grid;return}if(!s&&!l&&!f){var E=T("pattern")==="independent";E&&(s=!0)}_._hasSubplotGrid=s;var L=T("roworder"),z=L==="top to bottom",B=s?.2:.1,q=s?.3:.1,I,O;h&&t._splomGridDflt&&(I=t._splomGridDflt.xside,O=t._splomGridDflt.yside),_._domains={x:DU("x",T,B,I,C),y:DU("y",T,q,O,S,z)}}function DU(e,t,r,i,a,s){var l=t(e+"gap",r),f=t("domain."+e);t(e+"side",i);for(var h=new Array(a),v=f[0],m=(f[1]-v)/(a-l),_=m*(1-l),T=0;T{"use strict";RU.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var NU=me((Rxe,qU)=>{"use strict";var FU=Da(),Zhe=la(),Yhe=Bt(),Whe=Ri(),Xhe=ZT();qU.exports=function(e,t,r,i){var a="error_"+i.axis,s=Whe.newContainer(t,a),l=e[a]||{};function f(C,E){return Yhe.coerce(l,s,Xhe,C,E)}var h=l.array!==void 0||l.value!==void 0||l.type==="sqrt",v=f("visible",h);if(v!==!1){var m=f("type","array"in l?"data":"percent"),_=!0;m!=="sqrt"&&(_=f("symmetric",!((m==="data"?"arrayminus":"valueminus")in l))),m==="data"?(f("array"),f("traceref"),_||(f("arrayminus"),f("tracerefminus"))):(m==="percent"||m==="constant")&&(f("value"),_||f("valueminus"));var T="copy_"+i.inherit+"style";if(i.inherit){var S=t["error_"+i.inherit];(S||{}).visible&&f(T,!(l.color||FU(l.thickness)||FU(l.width)))}(!i.inherit||!s[T])&&(f("color",r),f("thickness"),f("width",Zhe.traceIs(t,"gl3d")?0:4))}}});var YT=me((Fxe,OU)=>{"use strict";OU.exports=function(t){var r=t.type,i=t.symmetric;if(r==="data"){var a=t.array||[];if(i)return function(v,m){var _=+a[m];return[_,_]};var s=t.arrayminus||[];return function(v,m){var _=+a[m],T=+s[m];return!isNaN(_)||!isNaN(T)?[T||0,_||0]:[NaN,NaN]}}else{var l=BU(r,t.value),f=BU(r,t.valueminus);return i||t.valueminus===void 0?function(v){var m=l(v);return[m,m]}:function(v){return[f(v),l(v)]}}};function BU(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var HU=me((qxe,VU)=>{"use strict";var WT=Da(),jhe=la(),XT=Xi(),Jhe=Bt(),Khe=YT();VU.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var GU=Ja(),$h=Da(),Qhe=bi(),$he=rs();ZU.exports=function(t,r,i,a){var s,l=i.xaxis,f=i.yaxis,h=a&&a.duration>0,v=t._context.staticPlot;r.each(function(m){var _=m[0].trace,T=_.error_x||{},S=_.error_y||{},C;_.ids&&(C=function(B){return B.id});var E=$he.hasMarkers(_)&&_.marker.maxdisplayed>0;!S.visible&&!T.visible&&(m=[]);var L=GU.select(this).selectAll("g.errorbar").data(m,C);if(L.exit().remove(),!!m.length){T.visible||L.selectAll("path.xerror").remove(),S.visible||L.selectAll("path.yerror").remove(),L.style("opacity",1);var z=L.enter().append("g").classed("errorbar",!0);h&&z.style("opacity",0).transition().duration(a.duration).style("opacity",1),Qhe.setClipUrl(L,i.layerClipId,t),L.each(function(B){var q=GU.select(this),I=eve(B,l,f);if(!(E&&!B.vis)){var O,H=q.select("path.yerror");if(S.visible&&$h(I.x)&&$h(I.yh)&&$h(I.ys)){var V=S.width;O="M"+(I.x-V)+","+I.yh+"h"+2*V+"m-"+V+",0V"+I.ys,I.noYS||(O+="m-"+V+",0h"+2*V),s=!H.size(),s?H=q.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("yerror",!0):h&&(H=H.transition().duration(a.duration).ease(a.easing)),H.attr("d",O)}else H.remove();var W=q.select("path.xerror");if(T.visible&&$h(I.y)&&$h(I.xh)&&$h(I.xs)){var J=(T.copy_ystyle?S:T).width;O="M"+I.xh+","+(I.y-J)+"v"+2*J+"m0,-"+J+"H"+I.xs,I.noXS||(O+="m0,-"+J+"v"+2*J),s=!W.size(),s?W=q.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("xerror",!0):h&&(W=W.transition().duration(a.duration).ease(a.easing)),W.attr("d",O)}else W.remove()}})}})};function eve(e,t,r){var i={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(i.yh=r.c2p(e.yh),i.ys=r.c2p(e.ys),$h(i.ys)||(i.noYS=!0,i.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(i.xh=t.c2p(e.xh),i.xs=t.c2p(e.xs),$h(i.xs)||(i.noXS=!0,i.xs=t.c2p(e.xs,!0))),i}});var jU=me((Bxe,XU)=>{"use strict";var tve=Ja(),WU=Oa();XU.exports=function(t){t.each(function(r){var i=r[0].trace,a=i.error_y||{},s=i.error_x||{},l=tve.select(this);l.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(WU.stroke,a.color),s.copy_ystyle&&(s=a),l.selectAll("path.xerror").style("stroke-width",s.thickness+"px").call(WU.stroke,s.color)})}});var QU=me((Oxe,KU)=>{"use strict";var a1=Bt(),JU=il().overrideAll,i1=ZT(),Ud={error_x:a1.extendFlat({},i1),error_y:a1.extendFlat({},i1)};delete Ud.error_x.copy_zstyle;delete Ud.error_y.copy_zstyle;delete Ud.error_y.copy_ystyle;var n1={error_x:a1.extendFlat({},i1),error_y:a1.extendFlat({},i1),error_z:a1.extendFlat({},i1)};delete n1.error_x.copy_ystyle;delete n1.error_y.copy_ystyle;delete n1.error_z.copy_ystyle;delete n1.error_z.copy_zstyle;KU.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ud,bar:Ud,histogram:Ud,scatter3d:JU(n1,"calc","nested"),scattergl:JU(Ud,"calc","nested")}},supplyDefaults:NU(),calc:HU(),makeComputeError:YT(),plot:YU(),style:jU(),hoverInfo:rve};function rve(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var eV=me((Uxe,$U)=>{"use strict";$U.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var sV=me((Vxe,oV)=>{"use strict";var ev=Ja(),jT=Tf(),Cb=eo(),tV=la(),Dc=Xi(),kb=jl(),lu=Bt(),ju=lu.strTranslate,nV=mn().extendFlat,JT=Oh(),Xu=bi(),KT=Oa(),ave=Jy(),ive=co(),nve=kf().flipScale,ove=nT(),sve=oT(),lve=Fu(),QT=ts(),rV=QT.LINE_SPACING,aV=QT.FROM_TL,iV=QT.FROM_BR,Qi=eV().cn;function uve(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Qi.colorbar).data(fve(e),function(i){return i._id});r.enter().append("g").attr("class",function(i){return i._id}).classed(Qi.colorbar,!0),r.each(function(i){var a=ev.select(this);lu.ensureSingle(a,"rect",Qi.cbbg),lu.ensureSingle(a,"g",Qi.cbfills),lu.ensureSingle(a,"g",Qi.cblines),lu.ensureSingle(a,"g",Qi.cbaxis,function(l){l.classed(Qi.crisp,!0)}),lu.ensureSingle(a,"g",Qi.cbtitleunshift,function(l){l.append("g").classed(Qi.cbtitle,!0)}),lu.ensureSingle(a,"rect",Qi.cboutline);var s=cve(a,i,e);s&&s.then&&(e._promises||[]).push(s),e._context.edits.colorbarPosition&&hve(a,i,e)}),r.exit().each(function(i){Cb.autoMargin(e,i._id)}).remove(),r.order()}function fve(e){var t=e._fullLayout,r=e.calcdata,i=[],a,s,l,f;function h(q){return nV(q,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function v(){typeof f.calc=="function"?f.calc(e,l,a):(a._fillgradient=s.reversescale?nve(s.colorscale):s.colorscale,a._zrange=[s[f.min],s[f.max]])}for(var m=0;m1){var ze=Math.pow(10,Math.floor(Math.log(de)/Math.LN10));xt*=ze*lu.roundUp(de/ze,[2,5,10]),(Math.abs(oe.start)/oe.size+1e-6)%1<2e-6&&(nt.tick0=0)}nt.dtick=xt}nt.domain=i?[We+C/I.h,We+Te-C/I.h]:[We+S/I.w,We+Te-S/I.w],nt.setScale(),e.attr("transform",ju(Math.round(I.l),Math.round(I.t)));var pe=e.select("."+Qi.cbtitleunshift).attr("transform",ju(-Math.round(I.l),-Math.round(I.t))),at=nt.ticklabelposition,mt=nt.title.font.size,Xe=e.select("."+Qi.cbaxis),Ft,Lt=0,Tt=0;function It(Ot,Be){var ft={propContainer:nt,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:q._dfltTitle.colorbar,containerGroup:e.select("."+Qi.cbtitle)},or=Ot.charAt(0)==="h"?Ot.substr(1):"h"+Ot;e.selectAll("."+or+",."+or+"-math-group").remove(),ave.draw(r,Ot,nV(ft,Be||{}))}function Gt(){if(i&&wt||!i&&!wt){var Ot,Be;W==="top"&&(Ot=S+I.l+Ce*E,Be=C+I.t+Le*(1-We-Te)+3+mt*.75),W==="bottom"&&(Ot=S+I.l+Ce*E,Be=C+I.t+Le*(1-We)-3-mt*.25),W==="right"&&(Be=C+I.t+Le*L+3+mt*.75,Ot=S+I.l+Ce*We),It(nt._id+"title",{attributes:{x:Ot,y:Be,"text-anchor":i?"start":"middle"}})}}function Ct(){if(i&&!wt||!i&&wt){var Ot=nt.position||0,Be=nt._offset+nt._length/2,ft,or;if(W==="right")or=Be,ft=I.l+Ce*Ot+10+mt*(nt.showticklabels?1:.5);else if(ft=Be,W==="bottom"&&(or=I.t+Le*Ot+10+(at.indexOf("inside")===-1?nt.tickfont.size:0)+(nt.ticks!=="inside"&&t.ticklen||0)),W==="top"){var Cr=V.text.split("
").length;or=I.t+Le*Ot+10-Me-rV*mt*Cr}It((i?"h":"v")+nt._id+"title",{avoid:{selection:ev.select(r).selectAll("g."+nt._id+"tick"),side:W,offsetTop:i?0:I.t,offsetLeft:i?I.l:0,maxShift:i?q.width:q.height},attributes:{x:ft,y:or,"text-anchor":"middle"},transform:{rotate:i?-90:0,offset:0}})}}function Mt(){if(!i&&!wt||i&&wt){var Ot=e.select("."+Qi.cbtitle),Be=Ot.select("text"),ft=[-h/2,h/2],or=Ot.select(".h"+nt._id+"title-math-group").node(),Cr=15.6;Be.node()&&(Cr=parseInt(Be.node().style.fontSize,10)*rV);var Sr;if(or?(Sr=Xu.bBox(or),Tt=Sr.width,Lt=Sr.height,Lt>Cr&&(ft[1]-=(Lt-Cr)/2)):Be.node()&&!Be.classed(Qi.jsPlaceholder)&&(Sr=Xu.bBox(Be.node()),Tt=Sr.width,Lt=Sr.height),i){if(Lt){if(Lt+=5,W==="top")nt.domain[1]-=Lt/I.h,ft[1]*=-1;else{nt.domain[0]+=Lt/I.h;var Oe=ive.lineCount(Be);ft[1]+=(1-Oe)*Cr}Ot.attr("transform",ju(ft[0],ft[1])),nt.setScale()}}else Tt&&(W==="right"&&(nt.domain[0]+=(Tt+mt/2)/I.w),Ot.attr("transform",ju(ft[0],ft[1])),nt.setScale())}e.selectAll("."+Qi.cbfills+",."+Qi.cblines).attr("transform",i?ju(0,Math.round(I.h*(1-nt.domain[1]))):ju(Math.round(I.w*nt.domain[0]),0)),Xe.attr("transform",i?ju(0,Math.round(-I.t)):ju(Math.round(-I.l),0));var yt=e.select("."+Qi.cbfills).selectAll("rect."+Qi.cbfill).attr("style","").data(ve);yt.enter().append("rect").classed(Qi.cbfill,!0).attr("style",""),yt.exit().remove();var qt=J.map(nt.c2p).map(Math.round).sort(function(zr,lr){return zr-lr});yt.each(function(zr,lr){var At=[lr===0?J[0]:(ve[lr]+ve[lr-1])/2,lr===ve.length-1?J[1]:(ve[lr]+ve[lr+1])/2].map(nt.c2p).map(Math.round);i&&(At[1]=lu.constrain(At[1]+(At[1]>At[0])?1:-1,qt[0],qt[1]));var Fe=ev.select(this).attr(i?"x":"y",$e).attr(i?"y":"x",ev.min(At)).attr(i?"width":"height",Math.max(Me,2)).attr(i?"height":"width",Math.max(ev.max(At)-ev.min(At),2));if(t._fillgradient)Xu.gradient(Fe,r,t._id,i?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Ge=ne(zr).replace("e-","");Fe.attr("fill",jT(Ge).toHexString())}});var Qt=e.select("."+Qi.cblines).selectAll("path."+Qi.cbline).data(H.color&&H.width?Se:[]);Qt.enter().append("path").classed(Qi.cbline,!0),Qt.exit().remove(),Qt.each(function(zr){var lr=$e,At=Math.round(nt.c2p(zr))+H.width/2%1;ev.select(this).attr("d","M"+(i?lr+","+At:At+","+lr)+(i?"h":"v")+Me).call(Xu.lineGroupStyle,H.width,te(zr),H.dash)}),Xe.selectAll("g."+nt._id+"tick,path").remove();var Vt=$e+Me+(h||0)/2-(t.ticks==="outside"?1:0),tr=Dc.calcTicks(nt),ar=Dc.getTickSigns(nt)[2];return Dc.drawTicks(r,nt,{vals:nt.ticks==="inside"?Dc.clipEnds(nt,tr):tr,layer:Xe,path:Dc.makeTickPath(nt,Vt,ar),transFn:Dc.makeTransTickFn(nt)}),Dc.drawLabels(r,nt,{vals:tr,layer:Xe,transFn:Dc.makeTransTickLabelFn(nt),labelFns:Dc.makeLabelFns(nt,Vt)})}function Ut(){var Ot,Be=Me+h/2;at.indexOf("inside")===-1&&(Ot=Xu.bBox(Xe.node()),Be+=i?Ot.width:Ot.height),Ft=pe.select("text");var ft=0,or=i&&W==="top",Cr=!i&&W==="right",Sr=0;if(Ft.node()&&!Ft.classed(Qi.jsPlaceholder)){var Oe,yt=pe.select(".h"+nt._id+"title-math-group").node();yt&&(i&&wt||!i&&!wt)?(Ot=Xu.bBox(yt),ft=Ot.width,Oe=Ot.height):(Ot=Xu.bBox(pe.node()),ft=Ot.right-I.l-(i?$e:Et),Oe=Ot.bottom-I.t-(i?Et:$e),!i&&W==="top"&&(Be+=Ot.height,Sr=Ot.height)),Cr&&(Ft.attr("transform",ju(ft/2+mt/2,0)),ft*=2),Be=Math.max(Be,i?ft:Oe)}var qt=(i?S:C)*2+Be+v+h/2,Qt=0;!i&&V.text&&T==="bottom"&&L<=0&&(Qt=qt/2,qt+=Qt,Sr+=Qt),q._hColorbarMoveTitle=Qt,q._hColorbarMoveCBTitle=Sr;var Vt=v+h,tr=(i?$e:Et)-Vt/2-(i?S:0),ar=(i?Et:$e)-(i?we:C+Sr-Qt);e.select("."+Qi.cbbg).attr("x",tr).attr("y",ar).attr(i?"width":"height",Math.max(qt-Qt,2)).attr(i?"height":"width",Math.max(we+Vt,2)).call(KT.fill,m).call(KT.stroke,t.bordercolor).style("stroke-width",v);var zr=Cr?Math.max(ft-10,0):0;e.selectAll("."+Qi.cboutline).attr("x",(i?$e:Et+S)+zr).attr("y",(i?Et+C-we:$e)+(or?Lt:0)).attr(i?"width":"height",Math.max(Me,2)).attr(i?"height":"width",Math.max(we-(i?2*C+Lt:2*S+zr),2)).call(KT.stroke,t.outlinecolor).style({fill:"none","stroke-width":h});var lr=i?lt*qt:0,At=i?0:(1-it)*qt-Sr;if(lr=B?I.l-lr:-lr,At=z?I.t-At:-At,e.attr("transform",ju(lr,At)),!i&&(v||jT(m).getAlpha()&&!jT.equals(q.paper_bgcolor,m))){var Fe=Xe.selectAll("text"),Ge=Fe[0].length,bt=e.select("."+Qi.cbbg).node(),dt=Xu.bBox(bt),yr=Xu.getTranslate(e),xr=2;Fe.each(function($i,on){var Ei=0,ma=Ge-1;if(on===Ei||on===ma){var Gr=Xu.bBox(this),$a=Xu.getTranslate(this),Zr;if(on===ma){var di=Gr.right+$a.x,ga=dt.right+yr.x+Et-v-xr+E;Zr=ga-di,Zr>0&&(Zr=0)}else if(on===Ei){var le=Gr.left+$a.x,ee=dt.left+yr.x+Et+v+xr;Zr=ee-le,Zr<0&&(Zr=0)}Zr&&(Ge<3?this.setAttribute("transform","translate("+Zr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var pr={},Hr=aV[_],pa=iV[_],Ea=aV[T],Ua=iV[T],Ki=qt-Me;i?(s==="pixels"?(pr.y=L,pr.t=we*Ea,pr.b=we*Ua):(pr.t=pr.b=0,pr.yt=L+a*Ea,pr.yb=L-a*Ua),f==="pixels"?(pr.x=E,pr.l=qt*Hr,pr.r=qt*pa):(pr.l=Ki*Hr,pr.r=Ki*pa,pr.xl=E-l*Hr,pr.xr=E+l*pa)):(s==="pixels"?(pr.x=E,pr.l=we*Hr,pr.r=we*pa):(pr.l=pr.r=0,pr.xl=E+a*Hr,pr.xr=E-a*pa),f==="pixels"?(pr.y=1-L,pr.t=qt*Ea,pr.b=qt*Ua):(pr.t=Ki*Ea,pr.b=Ki*Ua,pr.yt=L-l*Ea,pr.yb=L+l*Ua));var qi=t.y<.5?"b":"t",vi=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Ti={r:q.width-tr-lr,l:tr+pr.r,b:q.height-ar-At,t:ar+pr.b};B&&z?Cb.autoMargin(r,t._id,pr):B?r._fullLayout._reservedMargin[t._id][qi]=Ti[qi]:z||i?r._fullLayout._reservedMargin[t._id][vi]=Ti[vi]:r._fullLayout._reservedMargin[t._id][qi]=Ti[qi]}return lu.syncOrAsync([Cb.previousPromises,Gt,Mt,Ct,Cb.previousPromises,Ut],r)}function hve(e,t,r){var i=t.orientation==="v",a=r._fullLayout,s=a._size,l,f,h;kb.init({element:e.node(),gd:r,prepFn:function(){l=e.attr("transform"),JT(e)},moveFn:function(v,m){e.attr("transform",l+ju(v,m)),f=kb.align((i?t._uFrac:t._vFrac)+v/s.w,i?t._thickFrac:t._lenFrac,0,1,t.xanchor),h=kb.align((i?t._vFrac:1-t._uFrac)-m/s.h,i?t._lenFrac:t._thickFrac,0,1,t.yanchor);var _=kb.getCursor(f,h,t.xanchor,t.yanchor);JT(e,_)},doneFn:function(){if(JT(e),f!==void 0&&h!==void 0){var v={};v[t._propPrefix+"x"]=f,v[t._propPrefix+"y"]=h,t._traceIndex!==void 0?tV.call("_guiRestyle",r,v,t._traceIndex):tV.call("_guiRelayout",r,v)}}})}function vve(e,t,r){var i=t._levels,a=[],s=[],l,f,h=i.end+i.size/100,v=i.size,m=1.001*r[0]-.001*r[1],_=1.001*r[1]-.001*r[0];for(f=0;f<1e5&&(l=i.start+f*v,!(v>0?l>=h:l<=h));f++)l>m&&l<_&&a.push(l);if(t._fillgradient)s=[0];else if(typeof t._fillcolor=="function"){var T=t._filllevels;if(T)for(h=T.end+T.size/100,v=T.size,f=0;f<1e5&&(l=T.start+f*v,!(v>0?l>=h:l<=h));f++)l>r[0]&&l{"use strict";lV.exports={moduleType:"component",name:"colorbar",attributes:H_(),supplyDefaults:$w(),draw:sV().draw,hasColorbar:Vw()}});var cV=me((Gxe,fV)=>{"use strict";fV.exports={moduleType:"component",name:"legend",layoutAttributes:J5(),supplyLayoutDefaults:$5(),draw:h4(),style:l4()}});var vV=me((Zxe,hV)=>{"use strict";hV.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var pV=me((Yxe,dV)=>{"use strict";dV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var eA=me((Wxe,_V)=>{"use strict";var pve=la(),gV=Bt(),$T=gV.extendFlat,mV=gV.extendDeep;function yV(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function mve(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}_V.exports=function(t,r){var i,a=t.data,s=t.layout,l=mV([],a),f=mV({},s,yV(r.tileClass)),h=t._context||{};if(r.width&&(f.width=r.width),r.height&&(f.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){f.annotations=[];var v=Object.keys(f);for(i=0;i{"use strict";var yve=E_().EventEmitter,gve=la(),_ve=Bt(),xV=Dd(),xve=eA(),bve=Fx(),wve=qx();function Tve(e,t){var r=new yve,i=xve(e,{format:"png"}),a=i.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function s(){var f=xV.getDelay(a._fullLayout);setTimeout(function(){var h=bve(a),v=document.createElement("canvas");v.id=_ve.randstr(),r=wve({format:t.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:v,emitter:r,svg:h}),r.clean=function(){a&&document.body.removeChild(a)}},f)}var l=xV.getRedrawFunc(a);return gve.call("_doPlot",a,i.data,i.layout,i.config).then(l).then(s).catch(function(f){r.emit("error",f)}),r}bV.exports=Tve});var MV=me((jxe,AV)=>{"use strict";var TV=Dd(),Ave={getDelay:TV.getDelay,getRedrawFunc:TV.getRedrawFunc,clone:eA(),toSVG:Fx(),svgToImg:qx(),toImage:wV(),downloadImage:E6()};AV.exports=Ave});var kV=me(Pc=>{"use strict";Pc.version=Z1().version;y7();sk();var Mve=la(),o1=Pc.register=Mve.register,rA=DF(),SV=Object.keys(rA);for(Eb=0;Eb{"use strict";CV.exports=kV()});var aA=me(($xe,PV)=>{"use strict";var Sve=nl().hovertemplateAttrs,kve=nl().texttemplateAttrs,Cve=px(),Vf=kc(),Eve=ys(),LV=xc(),Lve=hc().dash,Vd=mn().extendFlat,Dve=il().overrideAll,uu=Vf.marker,DV=Vf.line,Pve=uu.line,Qxe=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");PV.exports=Dve({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:Vd({},Vf.mode,{dflt:"markers"}),text:Vd({},Vf.text,{}),texttemplate:kve({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:Vd({},Vf.hovertext,{}),textfont:Vf.textfont,textposition:Vf.textposition,line:{color:DV.color,width:DV.width,dash:Lve},connectgaps:Vf.connectgaps,marker:Vd({symbol:uu.symbol,opacity:uu.opacity,angle:uu.angle,angleref:Vd({},uu.angleref,{values:["previous","up","north"]}),standoff:uu.standoff,size:uu.size,sizeref:uu.sizeref,sizemin:uu.sizemin,sizemode:uu.sizemode,colorbar:uu.colorbar,line:Vd({width:Pve.width},LV("marker.line")),gradient:uu.gradient},LV("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Cve(),selected:Vf.selected,unselected:Vf.unselected,hoverinfo:Vd({},Eve.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:Sve()},"calc","nested")});var zc=me((ebe,BV)=>{"use strict";var zve=__(),zV="1.13.4",qV='\xA9 OpenStreetMap contributors',IV=['\xA9 Carto',qV].join(" "),RV=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),Ive=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),NV={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:qV,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:IV,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:IV,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:RV,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:RV,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:Ive,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},FV=zve(NV);BV.exports={requiredVersion:zV,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:NV,styleValuesNonMapbox:FV,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+zV+"."].join(` `),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` -`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",IV.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` +`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",FV.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` `),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` -`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var o1=me(($xe,UV)=>{"use strict";var NV=Bt(),BV=Oa().defaultLine,Pve=Mb().attributes,zve=qo(),Ive=kc().textposition,Rve=il().overrideAll,Fve=Ri().templatedArray,iA=zc(),OV=zve({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});OV.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var qve=UV.exports=Rve({_arrayAttrRegexps:[NV.counterRegex("mapbox",".layers",!0)],domain:Pve({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:iA.styleValuesMapbox.concat(iA.styleValuesNonMapbox),dflt:iA.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:Fve("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:BV},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:BV}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:OV,textposition:NV.extendFlat({},Ive,{arrayOk:!1})}})},"plot","from-root");qve.uirevision={valType:"any",editType:"none"}});var Db=me((ebe,GV)=>{"use strict";var Nve=nl().hovertemplateAttrs,Bve=nl().texttemplateAttrs,Ove=px(),s1=aA(),gm=kc(),VV=o1(),Uve=ms(),Vve=xc(),Hd=mn().extendFlat,Hve=il().overrideAll,Gve=o1(),HV=s1.line,_m=s1.marker;GV.exports=Hve({lon:s1.lon,lat:s1.lat,cluster:{enabled:{valType:"boolean"},maxzoom:Hd({},Gve.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:Hd({},_m.opacity,{dflt:1})},mode:Hd({},gm.mode,{dflt:"markers"}),text:Hd({},gm.text,{}),texttemplate:Bve({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:Hd({},gm.hovertext,{}),line:{color:HV.color,width:HV.width},connectgaps:gm.connectgaps,marker:Hd({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:_m.opacity,size:_m.size,sizeref:_m.sizeref,sizemin:_m.sizemin,sizemode:_m.sizemode},Vve("marker")),fill:s1.fill,fillcolor:Ove(),textfont:VV.layers.symbol.textfont,textposition:VV.layers.symbol.textposition,below:{valType:"string"},selected:{marker:gm.selected.marker},unselected:{marker:gm.unselected.marker},hoverinfo:Hd({},Uve.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:Nve()},"calc","nested")});var nA=me((tbe,ZV)=>{"use strict";var Zve=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];ZV.exports={isSupportedFont:function(e){return Zve.indexOf(e)!==-1}}});var XV=me((rbe,WV)=>{"use strict";var l1=Bt(),oA=rs(),Yve=P6(),Wve=z6(),Xve=I6(),jve=R6(),YV=Db(),Jve=nA().isSupportedFont;WV.exports=function(t,r,i,a){function s(I,B){return l1.coerce(t,r,YV,I,B)}function l(I,B){return l1.coerce2(t,r,YV,I,B)}var f=Kve(t,r,s);if(!f){r.visible=!1;return}if(s("text"),s("texttemplate"),s("hovertext"),s("hovertemplate"),s("mode"),s("below"),oA.hasMarkers(r)){Yve(t,r,i,a,s,{noLine:!0,noAngle:!0}),s("marker.allowoverlap"),s("marker.angle");var h=r.marker;h.symbol!=="circle"&&(l1.isArrayOrTypedArray(h.size)&&(h.size=h.size[0]),l1.isArrayOrTypedArray(h.color)&&(h.color=h.color[0]))}oA.hasLines(r)&&(Wve(t,r,i,a,s,{noDash:!0}),s("connectgaps"));var v=l("cluster.maxzoom"),m=l("cluster.step"),_=l("cluster.color",r.marker&&r.marker.color||i),T=l("cluster.size"),S=l("cluster.opacity"),C=v!==!1||m!==!1||_!==!1||T!==!1||S!==!1,D=s("cluster.enabled",C);if(D||oA.hasText(r)){var E=a.font.family;Xve(t,r,a,s,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:Jve(E)?E:"Open Sans Regular",weight:a.font.weight,style:a.font.style,size:a.font.size,color:a.font.color}})}s("fill"),r.fill!=="none"&&jve(t,r,i,s),l1.coerceSelectionMarkerOpacity(r,s)};function Kve(e,t,r){var i=r("lon")||[],a=r("lat")||[],s=Math.min(i.length,a.length);return t._length=s,s}});var sA=me((abe,JV)=>{"use strict";var jV=Xi();JV.exports=function(t,r,i){var a={},s=i[r.subplot]._subplot,l=s.mockAxis,f=t.lonlat;return a.lonLabel=jV.tickText(l,l.c2l(f[0]),!0).text,a.latLabel=jV.tickText(l,l.c2l(f[1]),!0).text,a}});var tH=me((ibe,eH)=>{"use strict";var lA=Da(),KV=Zi().BADNUM,Qve=N6(),$ve=Ug(),ede=Gx(),tde=Bt().isArrayOrTypedArray,QV=Bt()._;function $V(e){return e&&typeof e=="string"}eH.exports=function(t,r){var i=tde(r.locations),a=i?r.locations.length:r._length,s=new Array(a),l;r.geojson?l=function(T){return $V(T)||lA(T)}:l=$V;for(var f=0;f{"use strict";var rde=Zi().BADNUM;u1.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,i=[],a=[],s=0;s0&&(i.push(a),a=[])}return a.length>0&&i.push(a),i};u1.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};u1.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{"use strict";var rH=Bt();aH.exports=function(t,r){var i=t.split(" "),a=i[0],s=i[1],l=rH.isArrayOrTypedArray(r)?rH.mean(r):r,f=.5+l/100,h=1.5+l/100,v=["",""],m=[0,0];switch(a){case"top":v[0]="top",m[1]=-h;break;case"bottom":v[0]="bottom",m[1]=h;break}switch(s){case"left":v[1]="right",m[0]=-f;break;case"right":v[1]="left",m[0]=f;break}var _;return v[0]&&v[1]?_=v.join("-"):v[0]?_=v[0]:v[1]?_=v[1]:_="center",{anchor:_,offset:m}}});var uH=me((sbe,lH)=>{"use strict";var oH=Da(),ko=Bt(),ade=Zi().BADNUM,Ib=Pb(),iH=L0(),ide=bi(),nde=i5(),Rb=rs(),ode=nA().isSupportedFont,sde=uA(),lde=bc().appendArrayPointValue,ude=co().NEWLINES,fde=co().BR_TAG_ALL;lH.exports=function(t,r){var i=r[0].trace,a=i.visible===!0&&i._length!==0,s=i.fill!=="none",l=Rb.hasLines(i),f=Rb.hasMarkers(i),h=Rb.hasText(i),v=f&&i.marker.symbol==="circle",m=f&&i.marker.symbol!=="circle",_=i.cluster&&i.cluster.enabled,T=zb("fill"),S=zb("line"),C=zb("circle"),D=zb("symbol"),E={fill:T,line:S,circle:C,symbol:D};if(!a)return E;var I;if((s||l)&&(I=Ib.calcTraceToLineCoords(r)),s&&(T.geojson=Ib.makePolygon(I),T.layout.visibility="visible",ko.extendFlat(T.paint,{"fill-color":i.fillcolor})),l&&(S.geojson=Ib.makeLine(I),S.layout.visibility="visible",ko.extendFlat(S.paint,{"line-width":i.line.width,"line-color":i.line.color,"line-opacity":i.opacity})),v){var B=cde(r);C.geojson=B.geojson,C.layout.visibility="visible",_&&(C.filter=["!",["has","point_count"]],E.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":cA(i.cluster.color,i.cluster.step),"circle-radius":cA(i.cluster.size,i.cluster.step),"circle-opacity":cA(i.cluster.opacity,i.cluster.step)}},E.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":nH(i),"text-size":12}}),ko.extendFlat(C.paint,{"circle-color":B.mcc,"circle-radius":B.mrc,"circle-opacity":B.mo})}if(v&&_&&(C.filter=["!",["has","point_count"]]),(m||h)&&(D.geojson=hde(r,t),ko.extendFlat(D.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),m&&(ko.extendFlat(D.layout,{"icon-size":i.marker.size/10}),"angle"in i.marker&&i.marker.angle!=="auto"&&ko.extendFlat(D.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),D.layout["icon-allow-overlap"]=i.marker.allowoverlap,ko.extendFlat(D.paint,{"icon-opacity":i.opacity*i.marker.opacity,"icon-color":i.marker.color})),h)){var q=(i.marker||{}).size,z=sde(i.textposition,q);ko.extendFlat(D.layout,{"text-size":i.textfont.size,"text-anchor":z.anchor,"text-offset":z.offset,"text-font":nH(i)}),ko.extendFlat(D.paint,{"text-color":i.textfont.color,"text-opacity":i.opacity})}return E};function zb(e){return{type:e,geojson:Ib.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function cde(e){var t=e[0].trace,r=t.marker,i=t.selectedpoints,a=ko.isArrayOrTypedArray(r.color),s=ko.isArrayOrTypedArray(r.size),l=ko.isArrayOrTypedArray(r.opacity),f;function h(q){return t.opacity*q}function v(q){return q/2}var m;a&&(iH.hasColorscale(t,"marker")?m=iH.makeColorScaleFuncFromTrace(r):m=ko.identity);var _;s&&(_=nde(t));var T;l&&(T=function(q){var z=oH(q)?+ko.constrain(q,0,1):0;return h(z)});var S=[];for(f=0;f850?f+=" Black":a>750?f+=" Extra Bold":a>650?f+=" Bold":a>550?f+=" Semi Bold":a>450?f+=" Medium":a>350?f+=" Regular":a>250?f+=" Light":a>150?f+=" Extra Light":f+=" Thin"):s.slice(0,2).join(" ")==="Open Sans"?(f="Open Sans",a>750?f+=" Extrabold":a>650?f+=" Bold":a>550?f+=" Semibold":a>350?f+=" Regular":f+=" Light"):s.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(f="Klokantech Noto Sans",s[3]==="CJK"&&(f+=" CJK"),f+=a>500?" Bold":" Regular")),l&&(f+=" Italic"),f==="Open Sans Regular Italic"?f="Open Sans Italic":f==="Open Sans Regular Bold"?f="Open Sans Bold":f==="Open Sans Regular Bold Italic"?f="Open Sans Bold Italic":f==="Klokantech Noto Sans Regular Italic"&&(f="Klokantech Noto Sans Italic"),ode(f)||(f=r);var h=f.split(", ");return h}});var vH=me((lbe,hH)=>{"use strict";var vde=Bt(),fH=uH(),xm=zc().traceLayerPrefix,uu={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function cH(e,t,r,i){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=i,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:xm+t+"-fill",line:xm+t+"-line",circle:xm+t+"-circle",symbol:xm+t+"-symbol",cluster:xm+t+"-cluster",clusterCount:xm+t+"-cluster-count"},this.below=null}var f1=cH.prototype;f1.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&vde.extendFlat(i,{cluster:!0,clusterMaxZoom:r.maxzoom});var a=this.subplot.map.getSource(this.sourceIds[e]);a?a.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],i)};f1.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};f1.addLayer=function(e,t,r){var i={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(i.filter=t.filter);for(var a=this.layerIds[e],s,l=this.subplot.getMapLayers(),f=0;f=0;O--){var H=z[O];a.removeLayer(v.layerIds[H])}q||a.removeSource(v.sourceIds.circle)}function T(q){for(var z=uu.nonCluster,O=0;O=0;O--){var H=z[O];a.removeLayer(v.layerIds[H]),q||a.removeSource(v.sourceIds[H])}}function C(q){h?_(q):S(q)}function D(q){f?m(q):T(q)}function E(){for(var q=f?uu.cluster:uu.nonCluster,z=0;z=0;i--){var a=r[i];t.removeLayer(this.layerIds[a]),t.removeSource(this.sourceIds[a])}};hH.exports=function(t,r){var i=r[0].trace,a=i.cluster&&i.cluster.enabled,s=i.visible!==!0,l=new cH(t,i.uid,a,s),f=fH(t.gd,r),h=l.below=t.belowLookup["trace-"+i.uid],v,m,_;if(a)for(l.addSource("circle",f.circle,i.cluster),v=0;v{"use strict";var dde=Rf(),hA=Bt(),pde=tT(),mde=hA.fillText,yde=Zi().BADNUM,gde=zc().traceLayerPrefix;function _de(e,t,r){var i=e.cd,a=i[0].trace,s=e.xa,l=e.ya,f=e.subplot,h=[],v=gde+a.uid+"-circle",m=a.cluster&&a.cluster.enabled;if(m){var _=f.map.queryRenderedFeatures(null,{layers:[v]});h=_.map(function(W){return W.id})}var T=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),S=T*360,C=t-S;function D(W){var J=W.lonlat;if(J[0]===yde||m&&h.indexOf(W.i+1)===-1)return 1/0;var te=hA.modHalf(J[0],360),ne=J[1],oe=f.project([te,ne]),fe=oe.x-s.c2p([C,ne]),ve=oe.y-l.c2p([te,r]),Me=Math.max(3,W.mrc||0);return Math.max(Math.sqrt(fe*fe+ve*ve)-Me,1-3/Me)}if(dde.getClosest(i,D,e),e.index!==!1){var E=i[e.index],I=E.lonlat,B=[hA.modHalf(I[0],360)+S,I[1]],q=s.c2p(B),z=l.c2p(B),O=E.mrc||1;e.x0=q-O,e.x1=q+O,e.y0=z-O,e.y1=z+O;var H={};H[a.subplot]={_subplot:f};var V=a._module.formatLabels(E,a,H);return e.lonLabel=V.lonLabel,e.latLabel=V.latLabel,e.color=pde(a,E),e.extraText=dH(a,E,i[0].t.labels),e.hovertemplate=a.hovertemplate,[e]}}function dH(e,t,r){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i.split("+"),s=a.indexOf("all")!==-1,l=a.indexOf("lon")!==-1,f=a.indexOf("lat")!==-1,h=t.lonlat,v=[];function m(_){return _+"\xB0"}return s||l&&f?v.push("("+m(h[1])+", "+m(h[0])+")"):l?v.push(r.lon+m(h[0])):f&&v.push(r.lat+m(h[1])),(s||a.indexOf("text")!==-1)&&mde(t,e,v),v.join("
")}pH.exports={hoverPoints:_de,getExtraText:dH}});var yH=me((fbe,mH)=>{"use strict";mH.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var _H=me((cbe,gH)=>{"use strict";var xde=Bt(),bde=rs(),wde=Zi().BADNUM;gH.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f=i[0].trace,h;if(!bde.hasMarkers(f))return[];if(r===!1)for(h=0;h{(function(e,t){typeof vA=="object"&&typeof dA!="undefined"?dA.exports=t():(e=e||self,e.mapboxgl=t())})(vA,function(){"use strict";var e,t,r;function i(a,s){if(!e)e=s;else if(!t)t=s;else{var l="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",f={};e(f),r=s(f),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([l],{type:"text/javascript"})))}}return i(["exports"],function(a){"use strict";function s(n,o){return o={exports:{}},n(o,o.exports),o.exports}var l="1.13.4",f=h;function h(n,o,u,p){this.cx=3*n,this.bx=3*(u-n)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*o,this.by=3*(p-o)-this.cy,this.ay=1-this.cy-this.by,this.p1x=n,this.p1y=p,this.p2x=u,this.p2y=p}h.prototype.sampleCurveX=function(n){return((this.ax*n+this.bx)*n+this.cx)*n},h.prototype.sampleCurveY=function(n){return((this.ay*n+this.by)*n+this.cy)*n},h.prototype.sampleCurveDerivativeX=function(n){return(3*this.ax*n+2*this.bx)*n+this.cx},h.prototype.solveCurveX=function(n,o){typeof o=="undefined"&&(o=1e-6);var u,p,x,A,k;for(x=n,k=0;k<8;k++){if(A=this.sampleCurveX(x)-n,Math.abs(A)p)return p;for(;uA?u=x:p=x,x=(p-u)*.5+u}return x},h.prototype.solve=function(n,o){return this.sampleCurveY(this.solveCurveX(n,o))};var v=m;function m(n,o){this.x=n,this.y=o}m.prototype={clone:function(){return new m(this.x,this.y)},add:function(n){return this.clone()._add(n)},sub:function(n){return this.clone()._sub(n)},multByPoint:function(n){return this.clone()._multByPoint(n)},divByPoint:function(n){return this.clone()._divByPoint(n)},mult:function(n){return this.clone()._mult(n)},div:function(n){return this.clone()._div(n)},rotate:function(n){return this.clone()._rotate(n)},rotateAround:function(n,o){return this.clone()._rotateAround(n,o)},matMult:function(n){return this.clone()._matMult(n)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(n){return this.x===n.x&&this.y===n.y},dist:function(n){return Math.sqrt(this.distSqr(n))},distSqr:function(n){var o=n.x-this.x,u=n.y-this.y;return o*o+u*u},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(n){return Math.atan2(this.y-n.y,this.x-n.x)},angleWith:function(n){return this.angleWithSep(n.x,n.y)},angleWithSep:function(n,o){return Math.atan2(this.x*o-this.y*n,this.x*n+this.y*o)},_matMult:function(n){var o=n[0]*this.x+n[1]*this.y,u=n[2]*this.x+n[3]*this.y;return this.x=o,this.y=u,this},_add:function(n){return this.x+=n.x,this.y+=n.y,this},_sub:function(n){return this.x-=n.x,this.y-=n.y,this},_mult:function(n){return this.x*=n,this.y*=n,this},_div:function(n){return this.x/=n,this.y/=n,this},_multByPoint:function(n){return this.x*=n.x,this.y*=n.y,this},_divByPoint:function(n){return this.x/=n.x,this.y/=n.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var n=this.y;return this.y=this.x,this.x=-n,this},_rotate:function(n){var o=Math.cos(n),u=Math.sin(n),p=o*this.x-u*this.y,x=u*this.x+o*this.y;return this.x=p,this.y=x,this},_rotateAround:function(n,o){var u=Math.cos(n),p=Math.sin(n),x=o.x+u*(this.x-o.x)-p*(this.y-o.y),A=o.y+p*(this.x-o.x)+u*(this.y-o.y);return this.x=x,this.y=A,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},m.convert=function(n){return n instanceof m?n:Array.isArray(n)?new m(n[0],n[1]):n};var _=typeof self!="undefined"?self:{};function T(n,o){if(Array.isArray(n)){if(!Array.isArray(o)||n.length!==o.length)return!1;for(var u=0;u=1)return 1;var o=n*n,u=o*n;return 4*(n<.5?u:3*(n-o)+u-.75)}function D(n,o,u,p){var x=new f(n,o,u,p);return function(A){return x.solve(A)}}var E=D(.25,.1,.25,1);function I(n,o,u){return Math.min(u,Math.max(o,n))}function B(n,o,u){var p=u-o,x=((n-o)%p+p)%p+o;return x===o?u:x}function q(n,o,u){if(!n.length)return u(null,[]);var p=n.length,x=new Array(n.length),A=null;n.forEach(function(k,F){o(k,function(Y,j){Y&&(A=Y),x[F]=j,--p===0&&u(A,x)})})}function z(n){var o=[];for(var u in n)o.push(n[u]);return o}function O(n,o){var u=[];for(var p in n)p in o||u.push(p);return u}function H(n){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];for(var p=0,x=o;p>o/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,n)}return n()}function ne(n){return n<=1?1:Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function oe(n){return n?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(n):!1}function fe(n,o){n.forEach(function(u){o[u]&&(o[u]=o[u].bind(o))})}function ve(n,o){return n.indexOf(o,n.length-o.length)!==-1}function Me(n,o,u){var p={};for(var x in n)p[x]=o.call(u||this,n[x],x,n);return p}function Se(n,o,u){var p={};for(var x in n)o.call(u||this,n[x],x,n)&&(p[x]=n[x]);return p}function Ae(n){return Array.isArray(n)?n.map(Ae):typeof n=="object"&&n?Me(n,Ae):n}function we(n,o){for(var u=0;u=0)return!0;return!1}var Te={};function Ce(n){Te[n]||(typeof console!="undefined"&&console.warn(n),Te[n]=!0)}function Le(n,o,u){return(u.y-n.y)*(o.x-n.x)>(o.y-n.y)*(u.x-n.x)}function $e(n){for(var o=0,u=0,p=n.length,x=p-1,A=void 0,k=void 0;u@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,u={};if(n.replace(o,function(x,A,k,F){var Y=k||F;return u[A]=Y?Y.toLowerCase():!0,""}),u["max-age"]){var p=parseInt(u["max-age"],10);isNaN(p)?delete u["max-age"]:u["max-age"]=p}return u}var We=null;function Et(n){if(We==null){var o=n.navigator?n.navigator.userAgent:null;We=!!n.safari||!!(o&&(/\b(iPad|iPhone|iPod)\b/.test(o)||o.match("Safari")&&!o.match("Chrome")))}return We}function nt(n){try{var o=_[n];return o.setItem("_mapbox_test_",1),o.removeItem("_mapbox_test_"),!0}catch(u){return!1}}function wt(n){return _.btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,function(o,u){return String.fromCharCode(+("0x"+u))}))}function xt(n){return decodeURIComponent(_.atob(n).split("").map(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var vt=_.performance&&_.performance.now?_.performance.now.bind(_.performance):Date.now.bind(Date),de=_.requestAnimationFrame||_.mozRequestAnimationFrame||_.webkitRequestAnimationFrame||_.msRequestAnimationFrame,ze=_.cancelAnimationFrame||_.mozCancelAnimationFrame||_.webkitCancelAnimationFrame||_.msCancelAnimationFrame,pe,rt,mt={now:vt,frame:function(o){var u=de(o);return{cancel:function(){return ze(u)}}},getImageData:function(o,u){u===void 0&&(u=0);var p=_.document.createElement("canvas"),x=p.getContext("2d");if(!x)throw new Error("failed to create canvas 2d context");return p.width=o.width,p.height=o.height,x.drawImage(o,0,0,o.width,o.height),x.getImageData(-u,-u,o.width+2*u,o.height+2*u)},resolveURL:function(o){return pe||(pe=_.document.createElement("a")),pe.href=o,pe.href},hardwareConcurrency:_.navigator&&_.navigator.hardwareConcurrency||4,get devicePixelRatio(){return _.devicePixelRatio},get prefersReducedMotion(){return _.matchMedia?(rt==null&&(rt=_.matchMedia("(prefers-reduced-motion: reduce)")),rt.matches):!1}},Xe={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Ft={supported:!1,testSupport:Ct},Lt,Tt=!1,It,Gt=!1;_.document&&(It=_.document.createElement("img"),It.onload=function(){Lt&&Mt(Lt),Lt=null,Gt=!0},It.onerror=function(){Tt=!0,Lt=null},It.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Ct(n){Tt||!It||(Gt?Mt(n):Lt=n)}function Mt(n){var o=n.createTexture();n.bindTexture(n.TEXTURE_2D,o);try{if(n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,It),n.isContextLost())return;Ft.supported=!0}catch(u){}n.deleteTexture(o),Tt=!0}var Ut="01";function Ot(){for(var n="1",o="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",u="",p=0;p<10;p++)u+=o[Math.floor(Math.random()*62)];var x=12*60*60*1e3,A=[n,Ut,u].join(""),k=Date.now()+x;return{token:A,tokenExpiresAt:k}}var Be=function(o,u){this._transformRequestFn=o,this._customAccessToken=u,this._createSkuToken()};Be.prototype._createSkuToken=function(){var o=Ot();this._skuToken=o.token,this._skuTokenExpiresAt=o.tokenExpiresAt},Be.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Be.prototype.transformRequest=function(o,u){return this._transformRequestFn?this._transformRequestFn(o,u)||{url:o}:{url:o}},Be.prototype.normalizeStyleURL=function(o,u){if(!ft(o))return o;var p=qt(o);return p.path="/styles/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||u)},Be.prototype.normalizeGlyphsURL=function(o,u){if(!ft(o))return o;var p=qt(o);return p.path="/fonts/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||u)},Be.prototype.normalizeSourceURL=function(o,u){if(!ft(o))return o;var p=qt(o);return p.path="/v4/"+p.authority+".json",p.params.push("secure"),this._makeAPIURL(p,this._customAccessToken||u)},Be.prototype.normalizeSpriteURL=function(o,u,p,x){var A=qt(o);return ft(o)?(A.path="/styles/v1"+A.path+"/sprite"+u+p,this._makeAPIURL(A,this._customAccessToken||x)):(A.path+=""+u+p,Qt(A))},Be.prototype.normalizeTileURL=function(o,u){if(this._isSkuTokenExpired()&&this._createSkuToken(),o&&!ft(o))return o;var p=qt(o),x=/(\.(png|jpg)\d*)(?=$)/,A=/^.+\/v4\//,k=mt.devicePixelRatio>=2||u===512?"@2x":"",F=Ft.supported?".webp":"$1";p.path=p.path.replace(x,""+k+F),p.path=p.path.replace(A,"/"),p.path="/v4"+p.path;var Y=this._customAccessToken||Oe(p.params)||Xe.ACCESS_TOKEN;return Xe.REQUIRE_ACCESS_TOKEN&&Y&&this._skuToken&&p.params.push("sku="+this._skuToken),this._makeAPIURL(p,Y)},Be.prototype.canonicalizeTileURL=function(o,u){var p="/v4/",x=/\.[\w]+$/,A=qt(o);if(!A.path.match(/(^\/v4\/)/)||!A.path.match(x))return o;var k="mapbox://tiles/";k+=A.path.replace(p,"");var F=A.params;return u&&(F=F.filter(function(Y){return!Y.match(/^access_token=/)})),F.length&&(k+="?"+F.join("&")),k},Be.prototype.canonicalizeTileset=function(o,u){for(var p=u?ft(u):!1,x=[],A=0,k=o.tiles||[];A=0&&o.params.splice(A,1)}if(x.path!=="/"&&(o.path=""+x.path+o.path),!Xe.REQUIRE_ACCESS_TOKEN)return Qt(o);if(u=u||Xe.ACCESS_TOKEN,!u)throw new Error("An API access token is required to use Mapbox GL. "+p);if(u[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+p);return o.params=o.params.filter(function(k){return k.indexOf("access_token")===-1}),o.params.push("access_token="+u),Qt(o)};function ft(n){return n.indexOf("mapbox:")===0}var or=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Cr(n){return or.test(n)}function Sr(n){return n.indexOf("sku=")>0&&Cr(n)}function Oe(n){for(var o=0,u=n;o=1&&_.localStorage.setItem(u,JSON.stringify(this.eventData))}catch(x){Ce("Unable to write to LocalStorage")}},ar.prototype.processRequests=function(o){},ar.prototype.postEvent=function(o,u,p,x){var A=this;if(Xe.EVENTS_URL){var k=qt(Xe.EVENTS_URL);k.params.push("access_token="+(x||Xe.ACCESS_TOKEN||""));var F={event:this.type,created:new Date(o).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:l,skuId:Ut,userId:this.anonId},Y=u?H(F,u):F,j={url:Qt(k),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Y])};this.pendingRequest=He(j,function(Q){A.pendingRequest=null,p(Q),A.saveEventData(),A.processRequests(x)})}},ar.prototype.queueRequest=function(o,u){this.queue.push(o),this.processRequests(u)};var zr=function(n){function o(){n.call(this,"map.load"),this.success={},this.skuToken=""}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.postMapLoadEvent=function(p,x,A,k){this.skuToken=A,(Xe.EVENTS_URL&&k||Xe.ACCESS_TOKEN&&Array.isArray(p)&&p.some(function(F){return ft(F)||Cr(F)}))&&this.queueRequest({id:x,timestamp:Date.now()},k)},o.prototype.processRequests=function(p){var x=this;if(!(this.pendingRequest||this.queue.length===0)){var A=this.queue.shift(),k=A.id,F=A.timestamp;k&&this.success[k]||(this.anonId||this.fetchEventData(),oe(this.anonId)||(this.anonId=te()),this.postEvent(F,{skuToken:this.skuToken},function(Y){Y||k&&(x.success[k]=!0)},p))}},o}(ar),lr=function(n){function o(u){n.call(this,"appUserTurnstile"),this._customAccessToken=u}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.postTurnstileEvent=function(p,x){Xe.EVENTS_URL&&Xe.ACCESS_TOKEN&&Array.isArray(p)&&p.some(function(A){return ft(A)||Cr(A)})&&this.queueRequest(Date.now(),x)},o.prototype.processRequests=function(p){var x=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var A=tr(Xe.ACCESS_TOKEN),k=A?A.u:Xe.ACCESS_TOKEN,F=k!==this.eventData.tokenU;oe(this.anonId)||(this.anonId=te(),F=!0);var Y=this.queue.shift();if(this.eventData.lastSuccess){var j=new Date(this.eventData.lastSuccess),Q=new Date(Y),ie=(Y-this.eventData.lastSuccess)/(24*60*60*1e3);F=F||ie>=1||ie<-1||j.getDate()!==Q.getDate()}else F=!0;if(!F)return this.processRequests();this.postEvent(Y,{"enabled.telemetry":!1},function(ge){ge||(x.eventData.lastSuccess=Y,x.eventData.tokenU=k)},p)}},o}(ar),At=new lr,Fe=At.postTurnstileEvent.bind(At),Ge=new zr,bt=Ge.postMapLoadEvent.bind(Ge),dt="mapbox-tiles",gr=500,xr=50,mr=1e3*60*7,Hr;function pa(){_.caches&&!Hr&&(Hr=_.caches.open(dt))}var Ea;function Ua(n,o){if(Ea===void 0)try{new Response(new ReadableStream),Ea=!0}catch(u){Ea=!1}Ea?o(n.body):n.blob().then(o)}function Ki(n,o,u){if(pa(),!!Hr){var p={status:o.status,statusText:o.statusText,headers:new _.Headers};o.headers.forEach(function(k,F){return p.headers.set(F,k)});var x=gt(o.headers.get("Cache-Control")||"");if(!x["no-store"]){x["max-age"]&&p.headers.set("Expires",new Date(u+x["max-age"]*1e3).toUTCString());var A=new Date(p.headers.get("Expires")).getTime()-u;ADate.now()&&!u["no-cache"]}var $i=1/0;function on(n){$i++,$i>xr&&(n.getActor().send("enforceCacheSizeLimit",gr),$i=0)}function Ei(n){pa(),Hr&&Hr.then(function(o){o.keys().then(function(u){for(var p=0;p=200&&u.status<300||u.status===0)&&u.response!==null){var x=u.response;if(n.type==="json")try{x=JSON.parse(u.response)}catch(A){return o(A)}o(null,x,u.getResponseHeader("Cache-Control"),u.getResponseHeader("Expires"))}else o(new ga(u.statusText,u.status,n.url))},u.send(n.body),{cancel:function(){return u.abort()}}}var Ee=function(n,o){if(!ee(n.url)){if(_.fetch&&_.Request&&_.AbortController&&_.Request.prototype.hasOwnProperty("signal"))return se(n,o);if(it()&&self.worker&&self.worker.actor){var u=!0;return self.worker.actor.send("getResource",n,o,void 0,u)}}return ce(n,o)},Ne=function(n,o){return Ee(H(n,{type:"json"}),o)},at=function(n,o){return Ee(H(n,{type:"arrayBuffer"}),o)},He=function(n,o){return Ee(H(n,{method:"POST"}),o)};function pt(n){var o=_.document.createElement("a");return o.href=n,o.protocol===_.document.location.protocol&&o.host===_.document.location.host}var Dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Rt(n,o,u,p){var x=new _.Image,A=_.URL;x.onload=function(){o(null,x),A.revokeObjectURL(x.src),x.onload=null,_.requestAnimationFrame(function(){x.src=Dt})},x.onerror=function(){return o(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var k=new _.Blob([new Uint8Array(n)],{type:"image/png"});x.cacheControl=u,x.expires=p,x.src=n.byteLength?A.createObjectURL(k):Dt}function $t(n,o){var u=new _.Blob([new Uint8Array(n)],{type:"image/png"});_.createImageBitmap(u).then(function(p){o(null,p)}).catch(function(p){o(new Error("Could not load image because of "+p.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Yt,Tr,Yr=function(){Yt=[],Tr=0};Yr();var Br=function(n,o){if(Ft.supported&&(n.headers||(n.headers={}),n.headers.accept="image/webp,*/*"),Tr>=Xe.MAX_PARALLEL_IMAGE_REQUESTS){var u={requestParameters:n,callback:o,cancelled:!1,cancel:function(){this.cancelled=!0}};return Yt.push(u),u}Tr++;var p=!1,x=function(){if(!p)for(p=!0,Tr--;Yt.length&&Tr0||this._oneTimeListeners&&this._oneTimeListeners[o]&&this._oneTimeListeners[o].length>0||this._eventedParent&&this._eventedParent.listens(o)},dr.prototype.setEventedParent=function(o,u){return this._eventedParent=o,this._eventedParentData=u,this};var ea=8,_a={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},ir={"*":{type:"source"}},Ai=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Ca={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},si={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},fa={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Dn={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Co={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},_s={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Za={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Kn=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],hu={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Vi={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},pl={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Qd={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},qc={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Nc={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},hv={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},vv={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},vu={type:"array",value:"*"},ml={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},$d={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},Ku={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},Zf={type:"array",value:"*",minimum:1},en={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},Ho=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],mo={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},yl={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Go={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},du={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},ep={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},dv={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Qu={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},pv={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},mv={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},oo={"*":{type:"string"}},Wt={$version:ea,$root:_a,sources:ir,source:Ai,source_vector:Ca,source_raster:si,source_raster_dem:fa,source_geojson:Dn,source_video:Co,source_image:_s,layer:Za,layout:Kn,layout_background:hu,layout_fill:Vi,layout_circle:pl,layout_heatmap:Qd,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:qc,layout_symbol:Nc,layout_raster:hv,layout_hillshade:vv,filter:vu,filter_operator:ml,geometry_type:$d,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:Ku,expression:Zf,light:en,paint:Ho,paint_fill:mo,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:yl,paint_circle:Go,paint_heatmap:du,paint_symbol:ep,paint_raster:dv,paint_hillshade:Qu,paint_background:pv,transition:mv,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:oo},Or=function(o,u,p,x){this.message=(o?o+": ":"")+p,x&&(this.identifier=x),u!=null&&u.__line__&&(this.line=u.__line__)};function tp(n){var o=n.key,u=n.value;return u?[new Or(o,u,"constants have been deprecated as of v8")]:[]}function pu(n){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];for(var p=0,x=o;p":n.itemType.kind==="value"?"array":"array<"+o+">"}else return n.kind}var ws=[ef,kr,wa,Ta,bs,us,_l,yo(Ma),xl];function fs(n,o){if(o.kind==="error")return null;if(n.kind==="array"){if(o.kind==="array"&&(o.N===0&&o.itemType.kind==="value"||!fs(n.itemType,o.itemType))&&(typeof n.N!="number"||n.N===o.N))return null}else{if(n.kind===o.kind)return null;if(n.kind==="value")for(var u=0,p=ws;u255?255:j}function x(j){return j<0?0:j>1?1:j}function A(j){return j[j.length-1]==="%"?p(parseFloat(j)/100*255):p(parseInt(j))}function k(j){return j[j.length-1]==="%"?x(parseFloat(j)/100):x(parseFloat(j))}function F(j,Q,ie){return ie<0?ie+=1:ie>1&&(ie-=1),ie*6<1?j+(Q-j)*ie*6:ie*2<1?Q:ie*3<2?j+(Q-j)*(2/3-ie)*6:j}function Y(j){var Q=j.replace(/ /g,"").toLowerCase();if(Q in u)return u[Q].slice();if(Q[0]==="#"){if(Q.length===4){var ie=parseInt(Q.substr(1),16);return ie>=0&&ie<=4095?[(ie&3840)>>4|(ie&3840)>>8,ie&240|(ie&240)>>4,ie&15|(ie&15)<<4,1]:null}else if(Q.length===7){var ie=parseInt(Q.substr(1),16);return ie>=0&&ie<=16777215?[(ie&16711680)>>16,(ie&65280)>>8,ie&255,1]:null}return null}var ge=Q.indexOf("("),he=Q.indexOf(")");if(ge!==-1&&he+1===Q.length){var ke=Q.substr(0,ge),qe=Q.substr(ge+1,he-(ge+1)).split(","),ut=1;switch(ke){case"rgba":if(qe.length!==4)return null;ut=k(qe.pop());case"rgb":return qe.length!==3?null:[A(qe[0]),A(qe[1]),A(qe[2]),ut];case"hsla":if(qe.length!==4)return null;ut=k(qe.pop());case"hsl":if(qe.length!==3)return null;var et=(parseFloat(qe[0])%360+360)%360/360,kt=k(qe[1]),_t=k(qe[2]),St=_t<=.5?_t*(kt+1):_t+kt-_t*kt,zt=_t*2-St;return[p(F(zt,St,et+1/3)*255),p(F(zt,St,et)*255),p(F(zt,St,et-1/3)*255),ut];default:return null}}return null}try{o.parseCSSColor=Y}catch(j){}}),Yf=Mm.parseCSSColor,oi=function(o,u,p,x){x===void 0&&(x=1),this.r=o,this.g=u,this.b=p,this.a=x};oi.parse=function(o){if(o){if(o instanceof oi)return o;if(typeof o=="string"){var u=Yf(o);if(u)return new oi(u[0]/255*u[3],u[1]/255*u[3],u[2]/255*u[3],u[3])}}},oi.prototype.toString=function(){var o=this.toArray(),u=o[0],p=o[1],x=o[2],A=o[3];return"rgba("+Math.round(u)+","+Math.round(p)+","+Math.round(x)+","+A+")"},oi.prototype.toArray=function(){var o=this,u=o.r,p=o.g,x=o.b,A=o.a;return A===0?[0,0,0,0]:[u*255/A,p*255/A,x*255/A,A]},oi.black=new oi(0,0,0,1),oi.white=new oi(1,1,1,1),oi.transparent=new oi(0,0,0,0),oi.red=new oi(1,0,0,1);var Wf=function(o,u,p){o?this.sensitivity=u?"variant":"case":this.sensitivity=u?"accent":"base",this.locale=p,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Wf.prototype.compare=function(o,u){return this.collator.compare(o,u)},Wf.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var yv=function(o,u,p,x,A){this.text=o,this.image=u,this.scale=p,this.fontStack=x,this.textColor=A},xn=function(o){this.sections=o};xn.fromString=function(o){return new xn([new yv(o,null,null,null,null)])},xn.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(o){return o.text.length!==0||o.image&&o.image.name.length!==0})},xn.factory=function(o){return o instanceof xn?o:xn.fromString(o)},xn.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(o){return o.text}).join("")},xn.prototype.serialize=function(){for(var o=["format"],u=0,p=this.sections;u=0&&n<=255&&typeof o=="number"&&o>=0&&o<=255&&typeof u=="number"&&u>=0&&u<=255)){var x=typeof p=="number"?[n,o,u,p]:[n,o,u];return"Invalid rgba value ["+x.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof p=="undefined"||typeof p=="number"&&p>=0&&p<=1?null:"Invalid rgba value ["+[n,o,u,p].join(", ")+"]: 'a' must be between 0 and 1."}function tf(n){if(n===null)return!0;if(typeof n=="string")return!0;if(typeof n=="boolean")return!0;if(typeof n=="number")return!0;if(n instanceof oi)return!0;if(n instanceof Wf)return!0;if(n instanceof xn)return!0;if(n instanceof Pn)return!0;if(Array.isArray(n)){for(var o=0,u=n;o2){var F=o[1];if(typeof F!="string"||!(F in Xf)||F==="object")return u.error('The item type argument of "array" must be one of string, number, boolean',1);k=Xf[F],p++}else k=Ma;var Y;if(o.length>3){if(o[2]!==null&&(typeof o[2]!="number"||o[2]<0||o[2]!==Math.floor(o[2])))return u.error('The length argument to "array" must be a positive integer literal',2);Y=o[2],p++}x=yo(k,Y)}else x=Xf[A];for(var j=[];p1)&&u.push(x)}}return u.concat(this.args.map(function(A){return A.serialize()}))};var Yo=function(o){this.type=us,this.sections=o};Yo.parse=function(o,u){if(o.length<2)return u.error("Expected at least one argument.");var p=o[1];if(!Array.isArray(p)&&typeof p=="object")return u.error("First argument must be an image or text section.");for(var x=[],A=!1,k=1;k<=o.length-1;++k){var F=o[k];if(A&&typeof F=="object"&&!Array.isArray(F)){A=!1;var Y=null;if(F["font-scale"]&&(Y=u.parse(F["font-scale"],1,kr),!Y))return null;var j=null;if(F["text-font"]&&(j=u.parse(F["text-font"],1,yo(wa)),!j))return null;var Q=null;if(F["text-color"]&&(Q=u.parse(F["text-color"],1,bs),!Q))return null;var ie=x[x.length-1];ie.scale=Y,ie.font=j,ie.textColor=Q}else{var ge=u.parse(o[k],1,Ma);if(!ge)return null;var he=ge.type.kind;if(he!=="string"&&he!=="value"&&he!=="null"&&he!=="resolvedImage")return u.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");A=!0,x.push({content:ge,scale:null,font:null,textColor:null})}}return new Yo(x)},Yo.prototype.evaluate=function(o){var u=function(p){var x=p.content.evaluate(o);return ln(x)===xl?new yv("",x,null,null,null):new yv(Eo(x),null,p.scale?p.scale.evaluate(o):null,p.font?p.font.evaluate(o).join(","):null,p.textColor?p.textColor.evaluate(o):null)};return new xn(this.sections.map(u))},Yo.prototype.eachChild=function(o){for(var u=0,p=this.sections;u-1),p},Xs.prototype.eachChild=function(o){o(this.input)},Xs.prototype.outputDefined=function(){return!1},Xs.prototype.serialize=function(){return["image",this.input.serialize()]};var Sm={"to-boolean":Ta,"to-color":bs,"to-number":kr,"to-string":wa},Wo=function(o,u){this.type=o,this.args=u};Wo.parse=function(o,u){if(o.length<2)return u.error("Expected at least one argument.");var p=o[0];if((p==="to-boolean"||p==="to-string")&&o.length!==2)return u.error("Expected one argument.");for(var x=Sm[p],A=[],k=1;k4?p="Invalid rbga value "+JSON.stringify(u)+": expected an array containing either three or four numeric values.":p=rp(u[0],u[1],u[2],u[3]),!p))return new oi(u[0]/255,u[1]/255,u[2]/255,u[3])}throw new vn(p||"Could not parse color from value '"+(typeof u=="string"?u:String(JSON.stringify(u)))+"'")}else if(this.type.kind==="number"){for(var Y=null,j=0,Q=this.args;j=o[2]||n[1]<=o[1]||n[3]>=o[3])}function Dm(n,o){var u=Em(n[0]),p=Lm(n[1]),x=Math.pow(2,o.z);return[Math.round(u*x*wl),Math.round(p*x*wl)]}function Pm(n,o,u){var p=n[0]-o[0],x=n[1]-o[1],A=n[0]-u[0],k=n[1]-u[1];return p*k-A*x===0&&p*A<=0&&x*k<=0}function zm(n,o,u){return o[1]>n[1]!=u[1]>n[1]&&n[0]<(u[0]-o[0])*(n[1]-o[1])/(u[1]-o[1])+o[0]}function _v(n,o){for(var u=!1,p=0,x=o.length;p0&&ie<0||Q<0&&ie>0}function ap(n,o,u,p){var x=[o[0]-n[0],o[1]-n[1]],A=[p[0]-u[0],p[1]-u[1]];return Rm(A,x)===0?!1:!!(xv(n,o,u,p)&&xv(u,p,n,o))}function ip(n,o,u){for(var p=0,x=u;pu[2]){var x=p*.5,A=n[0]-u[0]>x?-p:u[0]-n[0]>x?p:0;A===0&&(A=n[0]-u[2]>x?-p:u[2]-n[0]>x?p:0),n[0]+=A}gv(o,n)}function qm(n){n[0]=n[1]=1/0,n[2]=n[3]=-1/0}function op(n,o,u,p){for(var x=Math.pow(2,p.z)*wl,A=[p.x*wl,p.y*wl],k=[],F=0,Y=n;F=0)return!1;var u=!0;return n.eachChild(function(p){u&&!Vc(p,o)&&(u=!1)}),u}var Al=function(o,u){this.type=u.type,this.name=o,this.boundExpression=u};Al.parse=function(o,u){if(o.length!==2||typeof o[1]!="string")return u.error("'var' expression requires exactly one string literal argument.");var p=o[1];return u.scope.has(p)?new Al(p,u.scope.get(p)):u.error('Unknown variable "'+p+'". Make sure "'+p+'" has been bound in an enclosing "let" expression before using it.',1)},Al.prototype.evaluate=function(o){return this.boundExpression.evaluate(o)},Al.prototype.eachChild=function(){},Al.prototype.outputDefined=function(){return!1},Al.prototype.serialize=function(){return["var",this.name]};var Ml=function(o,u,p,x,A){u===void 0&&(u=[]),x===void 0&&(x=new $u),A===void 0&&(A=[]),this.registry=o,this.path=u,this.key=u.map(function(k){return"["+k+"]"}).join(""),this.scope=x,this.errors=A,this.expectedType=p};Ml.prototype.parse=function(o,u,p,x,A){return A===void 0&&(A={}),u?this.concat(u,p,x)._parse(o,A):this._parse(o,A)},Ml.prototype._parse=function(o,u){(o===null||typeof o=="string"||typeof o=="boolean"||typeof o=="number")&&(o=["literal",o]);function p(Q,ie,ge){return ge==="assert"?new un(ie,[Q]):ge==="coerce"?new Wo(ie,[Q]):Q}if(Array.isArray(o)){if(o.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var x=o[0];if(typeof x!="string")return this.error("Expression name must be a string, but found "+typeof x+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var A=this.registry[x];if(A){var k=A.parse(o,this);if(!k)return null;if(this.expectedType){var F=this.expectedType,Y=k.type;if((F.kind==="string"||F.kind==="number"||F.kind==="boolean"||F.kind==="object"||F.kind==="array")&&Y.kind==="value")k=p(k,F,u.typeAnnotation||"assert");else if((F.kind==="color"||F.kind==="formatted"||F.kind==="resolvedImage")&&(Y.kind==="value"||Y.kind==="string"))k=p(k,F,u.typeAnnotation||"coerce");else if(this.checkSubtype(F,Y))return null}if(!(k instanceof Zo)&&k.type.kind!=="resolvedImage"&&Tv(k)){var j=new js;try{k=new Zo(k.type,k.evaluate(j))}catch(Q){return this.error(Q.message),null}}return k}return this.error('Unknown expression "'+x+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof o=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof o=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof o+" instead.")},Ml.prototype.concat=function(o,u,p){var x=typeof o=="number"?this.path.concat(o):this.path,A=p?this.scope.concat(p):this.scope;return new Ml(this.registry,x,u||null,A,this.errors)},Ml.prototype.error=function(o){for(var u=[],p=arguments.length-1;p-- >0;)u[p]=arguments[p+1];var x=""+this.key+u.map(function(A){return"["+A+"]"}).join("");this.errors.push(new xs(x,o))},Ml.prototype.checkSubtype=function(o,u){var p=fs(o,u);return p&&this.error(p),p};function Tv(n){if(n instanceof Al)return Tv(n.boundExpression);if(n instanceof zn&&n.name==="error")return!1;if(n instanceof bl)return!1;if(n instanceof cs)return!1;var o=n instanceof Wo||n instanceof un,u=!0;return n.eachChild(function(p){o?u=u&&Tv(p):u=u&&p instanceof Zo}),u?Uc(n)&&Vc(n,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Hc(n,o){for(var u=n.length-1,p=0,x=u,A=0,k,F;p<=x;)if(A=Math.floor((p+x)/2),k=n[A],F=n[A+1],k<=o){if(A===u||oo)x=A-1;else throw new vn("Input is not a number.");return 0}var Ts=function(o,u,p){this.type=o,this.input=u,this.labels=[],this.outputs=[];for(var x=0,A=p;x=F)return u.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',j);var ie=u.parse(Y,Q,A);if(!ie)return null;A=A||ie.type,x.push([F,ie])}return new Ts(A,p,x)},Ts.prototype.evaluate=function(o){var u=this.labels,p=this.outputs;if(u.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=u[0])return p[0].evaluate(o);var A=u.length;if(x>=u[A-1])return p[A-1].evaluate(o);var k=Hc(u,x);return p[k].evaluate(o)},Ts.prototype.eachChild=function(o){o(this.input);for(var u=0,p=this.outputs;u0&&o.push(this.labels[u]),o.push(this.outputs[u].serialize());return o};function dn(n,o,u){return n*(1-u)+o*u}function Bm(n,o,u){return new oi(dn(n.r,o.r,u),dn(n.g,o.g,u),dn(n.b,o.b,u),dn(n.a,o.a,u))}function Om(n,o,u){return n.map(function(p,x){return dn(p,o[x],u)})}var Sl=Object.freeze({__proto__:null,number:dn,color:Bm,array:Om}),rf=.95047,hs=1,up=1.08883,fp=4/29,af=6/29,cp=3*af*af,hp=af*af*af,Um=Math.PI/180,Vm=180/Math.PI;function Av(n){return n>hp?Math.pow(n,1/3):n/cp+fp}function Mv(n){return n>af?n*n*n:cp*(n-fp)}function Sv(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function jf(n){return n/=255,n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Gc(n){var o=jf(n.r),u=jf(n.g),p=jf(n.b),x=Av((.4124564*o+.3575761*u+.1804375*p)/rf),A=Av((.2126729*o+.7151522*u+.072175*p)/hs),k=Av((.0193339*o+.119192*u+.9503041*p)/up);return{l:116*A-16,a:500*(x-A),b:200*(A-k),alpha:n.a}}function vp(n){var o=(n.l+16)/116,u=isNaN(n.a)?o:o+n.a/500,p=isNaN(n.b)?o:o-n.b/200;return o=hs*Mv(o),u=rf*Mv(u),p=up*Mv(p),new oi(Sv(3.2404542*u-1.5371385*o-.4985314*p),Sv(-.969266*u+1.8760108*o+.041556*p),Sv(.0556434*u-.2040259*o+1.0572252*p),n.alpha)}function Ni(n,o,u){return{l:dn(n.l,o.l,u),a:dn(n.a,o.a,u),b:dn(n.b,o.b,u),alpha:dn(n.alpha,o.alpha,u)}}function Hm(n){var o=Gc(n),u=o.l,p=o.a,x=o.b,A=Math.atan2(x,p)*Vm;return{h:A<0?A+360:A,c:Math.sqrt(p*p+x*x),l:u,alpha:n.a}}function Zc(n){var o=n.h*Um,u=n.c,p=n.l;return vp({l:p,a:Math.cos(o)*u,b:Math.sin(o)*u,alpha:n.alpha})}function kv(n,o,u){var p=o-n;return n+u*(p>180||p<-180?p-360*Math.round(p/360):p)}function dp(n,o,u){return{h:kv(n.h,o.h,u),c:dn(n.c,o.c,u),l:dn(n.l,o.l,u),alpha:dn(n.alpha,o.alpha,u)}}var nf={forward:Gc,reverse:vp,interpolate:Ni},_u={forward:Hm,reverse:Zc,interpolate:dp},Cv=Object.freeze({__proto__:null,lab:nf,hcl:_u}),bn=function(o,u,p,x,A){this.type=o,this.operator=u,this.interpolation=p,this.input=x,this.labels=[],this.outputs=[];for(var k=0,F=A;k1}))return u.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);x={name:"cubic-bezier",controlPoints:Y}}else return u.error("Unknown interpolation type "+String(x[0]),1,0);if(o.length-1<4)return u.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if((o.length-1)%2!==0)return u.error("Expected an even number of arguments.");if(A=u.parse(A,2,kr),!A)return null;var j=[],Q=null;p==="interpolate-hcl"||p==="interpolate-lab"?Q=bs:u.expectedType&&u.expectedType.kind!=="value"&&(Q=u.expectedType);for(var ie=0;ie=ge)return u.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ke);var ut=u.parse(he,qe,Q);if(!ut)return null;Q=Q||ut.type,j.push([ge,ut])}return Q.kind!=="number"&&Q.kind!=="color"&&!(Q.kind==="array"&&Q.itemType.kind==="number"&&typeof Q.N=="number")?u.error("Type "+Li(Q)+" is not interpolatable."):new bn(Q,p,x,A,j)},bn.prototype.evaluate=function(o){var u=this.labels,p=this.outputs;if(u.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=u[0])return p[0].evaluate(o);var A=u.length;if(x>=u[A-1])return p[A-1].evaluate(o);var k=Hc(u,x),F=u[k],Y=u[k+1],j=bn.interpolationFactor(this.interpolation,x,F,Y),Q=p[k].evaluate(o),ie=p[k+1].evaluate(o);return this.operator==="interpolate"?Sl[this.type.kind.toLowerCase()](Q,ie,j):this.operator==="interpolate-hcl"?_u.reverse(_u.interpolate(_u.forward(Q),_u.forward(ie),j)):nf.reverse(nf.interpolate(nf.forward(Q),nf.forward(ie),j))},bn.prototype.eachChild=function(o){o(this.input);for(var u=0,p=this.outputs;u=p.length)throw new vn("Array index out of bounds: "+u+" > "+(p.length-1)+".");if(u!==Math.floor(u))throw new vn("Array index must be an integer, but found "+u+" instead.");return p[u]},Cl.prototype.eachChild=function(o){o(this.index),o(this.input)},Cl.prototype.outputDefined=function(){return!1},Cl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var El=function(o,u){this.type=Ta,this.needle=o,this.haystack=u};El.parse=function(o,u){if(o.length!==3)return u.error("Expected 2 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Ma),x=u.parse(o[2],2,Ma);return!p||!x?null:Bc(p.type,[Ta,wa,kr,ef,Ma])?new El(p,x):u.error("Expected first argument to be of type boolean, string, number or null, but found "+Li(p.type)+" instead")},El.prototype.evaluate=function(o){var u=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!p)return!1;if(!yu(u,["boolean","string","number","null"]))throw new vn("Expected first argument to be of type boolean, string, number or null, but found "+Li(ln(u))+" instead.");if(!yu(p,["string","array"]))throw new vn("Expected second argument to be of type array or string, but found "+Li(ln(p))+" instead.");return p.indexOf(u)>=0},El.prototype.eachChild=function(o){o(this.needle),o(this.haystack)},El.prototype.outputDefined=function(){return!0},El.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ks=function(o,u,p){this.type=kr,this.needle=o,this.haystack=u,this.fromIndex=p};Ks.parse=function(o,u){if(o.length<=2||o.length>=5)return u.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Ma),x=u.parse(o[2],2,Ma);if(!p||!x)return null;if(!Bc(p.type,[Ta,wa,kr,ef,Ma]))return u.error("Expected first argument to be of type boolean, string, number or null, but found "+Li(p.type)+" instead");if(o.length===4){var A=u.parse(o[3],3,kr);return A?new Ks(p,x,A):null}else return new Ks(p,x)},Ks.prototype.evaluate=function(o){var u=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!yu(u,["boolean","string","number","null"]))throw new vn("Expected first argument to be of type boolean, string, number or null, but found "+Li(ln(u))+" instead.");if(!yu(p,["string","array"]))throw new vn("Expected second argument to be of type array or string, but found "+Li(ln(p))+" instead.");if(this.fromIndex){var x=this.fromIndex.evaluate(o);return p.indexOf(u,x)}return p.indexOf(u)},Ks.prototype.eachChild=function(o){o(this.needle),o(this.haystack),this.fromIndex&&o(this.fromIndex)},Ks.prototype.outputDefined=function(){return!1},Ks.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var o=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),o]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var As=function(o,u,p,x,A,k){this.inputType=o,this.type=u,this.input=p,this.cases=x,this.outputs=A,this.otherwise=k};As.parse=function(o,u){if(o.length<5)return u.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if(o.length%2!==1)return u.error("Expected an even number of arguments.");var p,x;u.expectedType&&u.expectedType.kind!=="value"&&(x=u.expectedType);for(var A={},k=[],F=2;FNumber.MAX_SAFE_INTEGER)return Q.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof he=="number"&&Math.floor(he)!==he)return Q.error("Numeric branch labels must be integer values.");if(!p)p=ln(he);else if(Q.checkSubtype(p,ln(he)))return null;if(typeof A[String(he)]!="undefined")return Q.error("Branch labels must be unique.");A[String(he)]=k.length}var ke=u.parse(j,F,x);if(!ke)return null;x=x||ke.type,k.push(ke)}var qe=u.parse(o[1],1,Ma);if(!qe)return null;var ut=u.parse(o[o.length-1],o.length-1,x);return!ut||qe.type.kind!=="value"&&u.concat(1).checkSubtype(p,qe.type)?null:new As(p,x,qe,A,k,ut)},As.prototype.evaluate=function(o){var u=this.input.evaluate(o),p=ln(u)===this.inputType&&this.outputs[this.cases[u]]||this.otherwise;return p.evaluate(o)},As.prototype.eachChild=function(o){o(this.input),this.outputs.forEach(o),o(this.otherwise)},As.prototype.outputDefined=function(){return this.outputs.every(function(o){return o.outputDefined()})&&this.otherwise.outputDefined()},As.prototype.serialize=function(){for(var o=this,u=["match",this.input.serialize()],p=Object.keys(this.cases).sort(),x=[],A={},k=0,F=p;k=5)return u.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Ma),x=u.parse(o[2],2,kr);if(!p||!x)return null;if(!Bc(p.type,[yo(Ma),wa,Ma]))return u.error("Expected first argument to be of type array or string, but found "+Li(p.type)+" instead");if(o.length===4){var A=u.parse(o[3],3,kr);return A?new Ll(p.type,p,x,A):null}else return new Ll(p.type,p,x)},Ll.prototype.evaluate=function(o){var u=this.input.evaluate(o),p=this.beginIndex.evaluate(o);if(!yu(u,["string","array"]))throw new vn("Expected first argument to be of type array or string, but found "+Li(ln(u))+" instead.");if(this.endIndex){var x=this.endIndex.evaluate(o);return u.slice(p,x)}return u.slice(p)},Ll.prototype.eachChild=function(o){o(this.input),o(this.beginIndex),this.endIndex&&o(this.endIndex)},Ll.prototype.outputDefined=function(){return!1},Ll.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var o=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),o]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function pp(n,o){return n==="=="||n==="!="?o.kind==="boolean"||o.kind==="string"||o.kind==="number"||o.kind==="null"||o.kind==="value":o.kind==="string"||o.kind==="number"||o.kind==="value"}function Gm(n,o,u){return o===u}function Zm(n,o,u){return o!==u}function Ym(n,o,u){return ou}function yp(n,o,u){return o<=u}function Ev(n,o,u){return o>=u}function Lv(n,o,u,p){return p.compare(o,u)===0}function Kf(n,o,u,p){return!Lv(n,o,u,p)}function Yc(n,o,u,p){return p.compare(o,u)<0}function gp(n,o,u,p){return p.compare(o,u)>0}function Dv(n,o,u,p){return p.compare(o,u)<=0}function _p(n,o,u,p){return p.compare(o,u)>=0}function of(n,o,u){var p=n!=="=="&&n!=="!=";return function(){function x(A,k,F){this.type=Ta,this.lhs=A,this.rhs=k,this.collator=F,this.hasUntypedArgument=A.type.kind==="value"||k.type.kind==="value"}return x.parse=function(k,F){if(k.length!==3&&k.length!==4)return F.error("Expected two or three arguments.");var Y=k[0],j=F.parse(k[1],1,Ma);if(!j)return null;if(!pp(Y,j.type))return F.concat(1).error('"'+Y+`" comparisons are not supported for type '`+Li(j.type)+"'.");var Q=F.parse(k[2],2,Ma);if(!Q)return null;if(!pp(Y,Q.type))return F.concat(2).error('"'+Y+`" comparisons are not supported for type '`+Li(Q.type)+"'.");if(j.type.kind!==Q.type.kind&&j.type.kind!=="value"&&Q.type.kind!=="value")return F.error("Cannot compare types '"+Li(j.type)+"' and '"+Li(Q.type)+"'.");p&&(j.type.kind==="value"&&Q.type.kind!=="value"?j=new un(Q.type,[j]):j.type.kind!=="value"&&Q.type.kind==="value"&&(Q=new un(j.type,[Q])));var ie=null;if(k.length===4){if(j.type.kind!=="string"&&Q.type.kind!=="string"&&j.type.kind!=="value"&&Q.type.kind!=="value")return F.error("Cannot use collator to compare non-string types.");if(ie=F.parse(k[3],3,mu),!ie)return null}return new x(j,Q,ie)},x.prototype.evaluate=function(k){var F=this.lhs.evaluate(k),Y=this.rhs.evaluate(k);if(p&&this.hasUntypedArgument){var j=ln(F),Q=ln(Y);if(j.kind!==Q.kind||!(j.kind==="string"||j.kind==="number"))throw new vn('Expected arguments for "'+n+'" to be (string, string) or (number, number), but found ('+j.kind+", "+Q.kind+") instead.")}if(this.collator&&!p&&this.hasUntypedArgument){var ie=ln(F),ge=ln(Y);if(ie.kind!=="string"||ge.kind!=="string")return o(k,F,Y)}return this.collator?u(k,F,Y,this.collator.evaluate(k)):o(k,F,Y)},x.prototype.eachChild=function(k){k(this.lhs),k(this.rhs),this.collator&&k(this.collator)},x.prototype.outputDefined=function(){return!0},x.prototype.serialize=function(){var k=[n];return this.eachChild(function(F){k.push(F.serialize())}),k},x}()}var Wm=of("==",Gm,Lv),xp=of("!=",Zm,Kf),bp=of("<",Ym,Yc),wp=of(">",mp,gp),Pv=of("<=",yp,Dv),zv=of(">=",Ev,_p),xu=function(o,u,p,x,A){this.type=wa,this.number=o,this.locale=u,this.currency=p,this.minFractionDigits=x,this.maxFractionDigits=A};xu.parse=function(o,u){if(o.length!==3)return u.error("Expected two arguments.");var p=u.parse(o[1],1,kr);if(!p)return null;var x=o[2];if(typeof x!="object"||Array.isArray(x))return u.error("NumberFormat options argument must be an object.");var A=null;if(x.locale&&(A=u.parse(x.locale,1,wa),!A))return null;var k=null;if(x.currency&&(k=u.parse(x.currency,1,wa),!k))return null;var F=null;if(x["min-fraction-digits"]&&(F=u.parse(x["min-fraction-digits"],1,kr),!F))return null;var Y=null;return x["max-fraction-digits"]&&(Y=u.parse(x["max-fraction-digits"],1,kr),!Y)?null:new xu(p,A,k,F,Y)},xu.prototype.evaluate=function(o){return new Intl.NumberFormat(this.locale?this.locale.evaluate(o):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(o):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(o):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(o):void 0}).format(this.number.evaluate(o))},xu.prototype.eachChild=function(o){o(this.number),this.locale&&o(this.locale),this.currency&&o(this.currency),this.minFractionDigits&&o(this.minFractionDigits),this.maxFractionDigits&&o(this.maxFractionDigits)},xu.prototype.outputDefined=function(){return!1},xu.prototype.serialize=function(){var o={};return this.locale&&(o.locale=this.locale.serialize()),this.currency&&(o.currency=this.currency.serialize()),this.minFractionDigits&&(o["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(o["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),o]};var Dl=function(o){this.type=kr,this.input=o};Dl.parse=function(o,u){if(o.length!==2)return u.error("Expected 1 argument, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1);return p?p.type.kind!=="array"&&p.type.kind!=="string"&&p.type.kind!=="value"?u.error("Expected argument of type string or array, but found "+Li(p.type)+" instead."):new Dl(p):null},Dl.prototype.evaluate=function(o){var u=this.input.evaluate(o);if(typeof u=="string")return u.length;if(Array.isArray(u))return u.length;throw new vn("Expected value to be of type string or array, but found "+Li(ln(u))+" instead.")},Dl.prototype.eachChild=function(o){o(this.input)},Dl.prototype.outputDefined=function(){return!1},Dl.prototype.serialize=function(){var o=["length"];return this.eachChild(function(u){o.push(u.serialize())}),o};var Qf={"==":Wm,"!=":xp,">":wp,"<":bp,">=":zv,"<=":Pv,array:un,at:Cl,boolean:un,case:Ms,coalesce:Js,collator:bl,format:Yo,image:Xs,in:El,"index-of":Ks,interpolate:bn,"interpolate-hcl":bn,"interpolate-lab":bn,length:Dl,let:kl,literal:Zo,match:As,number:un,"number-format":xu,object:un,slice:Ll,step:Ts,string:un,"to-boolean":Wo,"to-color":Wo,"to-number":Wo,"to-string":Wo,var:Al,within:cs};function Iv(n,o){var u=o[0],p=o[1],x=o[2],A=o[3];u=u.evaluate(n),p=p.evaluate(n),x=x.evaluate(n);var k=A?A.evaluate(n):1,F=rp(u,p,x,k);if(F)throw new vn(F);return new oi(u/255*k,p/255*k,x/255*k,k)}function Wc(n,o){return n in o}function Xc(n,o){var u=o[n];return typeof u=="undefined"?null:u}function jc(n,o,u,p){for(;u<=p;){var x=u+p>>1;if(o[x]===n)return!0;o[x]>n?p=x-1:u=x+1}return!1}function Pl(n){return{type:n}}zn.register(Qf,{error:[Ws,[wa],function(n,o){var u=o[0];throw new vn(u.evaluate(n))}],typeof:[wa,[Ma],function(n,o){var u=o[0];return Li(ln(u.evaluate(n)))}],"to-rgba":[yo(kr,4),[bs],function(n,o){var u=o[0];return u.evaluate(n).toArray()}],rgb:[bs,[kr,kr,kr],Iv],rgba:[bs,[kr,kr,kr,kr],Iv],has:{type:Ta,overloads:[[[wa],function(n,o){var u=o[0];return Wc(u.evaluate(n),n.properties())}],[[wa,_l],function(n,o){var u=o[0],p=o[1];return Wc(u.evaluate(n),p.evaluate(n))}]]},get:{type:Ma,overloads:[[[wa],function(n,o){var u=o[0];return Xc(u.evaluate(n),n.properties())}],[[wa,_l],function(n,o){var u=o[0],p=o[1];return Xc(u.evaluate(n),p.evaluate(n))}]]},"feature-state":[Ma,[wa],function(n,o){var u=o[0];return Xc(u.evaluate(n),n.featureState||{})}],properties:[_l,[],function(n){return n.properties()}],"geometry-type":[wa,[],function(n){return n.geometryType()}],id:[Ma,[],function(n){return n.id()}],zoom:[kr,[],function(n){return n.globals.zoom}],"heatmap-density":[kr,[],function(n){return n.globals.heatmapDensity||0}],"line-progress":[kr,[],function(n){return n.globals.lineProgress||0}],accumulated:[Ma,[],function(n){return n.globals.accumulated===void 0?null:n.globals.accumulated}],"+":[kr,Pl(kr),function(n,o){for(var u=0,p=0,x=o;p":[Ta,[wa,Ma],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x>A}],"filter-id->":[Ta,[Ma],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p>x}],"filter-<=":[Ta,[wa,Ma],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x<=A}],"filter-id-<=":[Ta,[Ma],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p<=x}],"filter->=":[Ta,[wa,Ma],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x>=A}],"filter-id->=":[Ta,[Ma],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p>=x}],"filter-has":[Ta,[Ma],function(n,o){var u=o[0];return u.value in n.properties()}],"filter-has-id":[Ta,[],function(n){return n.id()!==null&&n.id()!==void 0}],"filter-type-in":[Ta,[yo(wa)],function(n,o){var u=o[0];return u.value.indexOf(n.geometryType())>=0}],"filter-id-in":[Ta,[yo(Ma)],function(n,o){var u=o[0];return u.value.indexOf(n.id())>=0}],"filter-in-small":[Ta,[wa,yo(Ma)],function(n,o){var u=o[0],p=o[1];return p.value.indexOf(n.properties()[u.value])>=0}],"filter-in-large":[Ta,[wa,yo(Ma)],function(n,o){var u=o[0],p=o[1];return jc(n.properties()[u.value],p.value,0,p.value.length-1)}],all:{type:Ta,overloads:[[[Ta,Ta],function(n,o){var u=o[0],p=o[1];return u.evaluate(n)&&p.evaluate(n)}],[Pl(Ta),function(n,o){for(var u=0,p=o;u-1}function Kc(n){return!!n.expression&&n.expression.interpolated}function pi(n){return n instanceof Number?"number":n instanceof String?"string":n instanceof Boolean?"boolean":Array.isArray(n)?"array":n===null?"null":typeof n}function $f(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Ap(n){return n}function Mp(n,o){var u=o.type==="color",p=n.stops&&typeof n.stops[0][0]=="object",x=p||n.property!==void 0,A=p||!x,k=n.type||(Kc(o)?"exponential":"interval");if(u&&(n=pu({},n),n.stops&&(n.stops=n.stops.map(function(fr){return[fr[0],oi.parse(fr[1])]})),n.default?n.default=oi.parse(n.default):n.default=oi.parse(o.default)),n.colorSpace&&n.colorSpace!=="rgb"&&!Cv[n.colorSpace])throw new Error("Unknown color space: "+n.colorSpace);var F,Y,j;if(k==="exponential")F=Rv;else if(k==="interval")F=kp;else if(k==="categorical"){F=Sp,Y=Object.create(null);for(var Q=0,ie=n.stops;Q=n.stops[p-1][0])return n.stops[p-1][1];var x=Hc(n.stops.map(function(A){return A[0]}),u);return n.stops[x][1]}function Rv(n,o,u){var p=n.base!==void 0?n.base:1;if(pi(u)!=="number")return zl(n.default,o.default);var x=n.stops.length;if(x===1||u<=n.stops[0][0])return n.stops[0][1];if(u>=n.stops[x-1][0])return n.stops[x-1][1];var A=Hc(n.stops.map(function(ie){return ie[0]}),u),k=Xm(u,p,n.stops[A][0],n.stops[A+1][0]),F=n.stops[A][1],Y=n.stops[A+1][1],j=Sl[o.type]||Ap;if(n.colorSpace&&n.colorSpace!=="rgb"){var Q=Cv[n.colorSpace];j=function(ie,ge){return Q.reverse(Q.interpolate(Q.forward(ie),Q.forward(ge),k))}}return typeof F.evaluate=="function"?{evaluate:function(){for(var ge=[],he=arguments.length;he--;)ge[he]=arguments[he];var ke=F.evaluate.apply(void 0,ge),qe=Y.evaluate.apply(void 0,ge);if(!(ke===void 0||qe===void 0))return j(ke,qe,k)}}:j(F,Y,k)}function Cp(n,o,u){return o.type==="color"?u=oi.parse(u):o.type==="formatted"?u=xn.fromString(u.toString()):o.type==="resolvedImage"?u=Pn.fromString(u.toString()):pi(u)!==o.type&&(o.type!=="enum"||!o.values[u])&&(u=void 0),zl(u,n.default,o.default)}function Xm(n,o,u,p){var x=p-u,A=n-u;return x===0?0:o===1?A/x:(Math.pow(o,A)-1)/(Math.pow(o,x)-1)}var Il=function(o,u){this.expression=o,this._warningHistory={},this._evaluator=new js,this._defaultValue=u?Jm(u):null,this._enumValues=u&&u.type==="enum"?u.values:null};Il.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._evaluator.globals=o,this._evaluator.feature=u,this._evaluator.featureState=p,this._evaluator.canonical=x,this._evaluator.availableImages=A||null,this._evaluator.formattedSection=k,this.expression.evaluate(this._evaluator)},Il.prototype.evaluate=function(o,u,p,x,A,k){this._evaluator.globals=o,this._evaluator.feature=u||null,this._evaluator.featureState=p||null,this._evaluator.canonical=x,this._evaluator.availableImages=A||null,this._evaluator.formattedSection=k||null;try{var F=this.expression.evaluate(this._evaluator);if(F==null||typeof F=="number"&&F!==F)return this._defaultValue;if(this._enumValues&&!(F in this._enumValues))throw new vn("Expected value to be one of "+Object.keys(this._enumValues).map(function(Y){return JSON.stringify(Y)}).join(", ")+", but found "+JSON.stringify(F)+" instead.");return F}catch(Y){return this._warningHistory[Y.message]||(this._warningHistory[Y.message]=!0,typeof console!="undefined"&&console.warn(Y.message)),this._defaultValue}};function wu(n){return Array.isArray(n)&&n.length>0&&typeof n[0]=="string"&&n[0]in Qf}function ec(n,o){var u=new Ml(Qf,[],o?Fv(o):void 0),p=u.parse(n,void 0,void 0,void 0,o&&o.type==="string"?{typeAnnotation:"coerce"}:void 0);return p?Jc(new Il(p,o)):bu(u.errors)}var Ss=function(o,u){this.kind=o,this._styleExpression=u,this.isStateDependent=o!=="constant"&&!Tl(u.expression)};Ss.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,u,p,x,A,k)},Ss.prototype.evaluate=function(o,u,p,x,A,k){return this._styleExpression.evaluate(o,u,p,x,A,k)};var ks=function(o,u,p,x){this.kind=o,this.zoomStops=p,this._styleExpression=u,this.isStateDependent=o!=="camera"&&!Tl(u.expression),this.interpolationType=x};ks.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,u,p,x,A,k)},ks.prototype.evaluate=function(o,u,p,x,A,k){return this._styleExpression.evaluate(o,u,p,x,A,k)},ks.prototype.interpolationFactor=function(o,u,p){return this.interpolationType?bn.interpolationFactor(this.interpolationType,o,u,p):0};function Xo(n,o){if(n=ec(n,o),n.result==="error")return n;var u=n.value.expression,p=Uc(u);if(!p&&!sf(o))return bu([new xs("","data expressions not supported")]);var x=Vc(u,["zoom"]);if(!x&&!Tp(o))return bu([new xs("","zoom expressions not supported")]);var A=uf(u);if(!A&&!x)return bu([new xs("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(A instanceof xs)return bu([A]);if(A instanceof bn&&!Kc(o))return bu([new xs("",'"interpolate" expressions cannot be used with this property')]);if(!A)return Jc(p?new Ss("constant",n.value):new Ss("source",n.value));var k=A instanceof bn?A.interpolation:void 0;return Jc(p?new ks("camera",n.value,A.labels,k):new ks("composite",n.value,A.labels,k))}var lf=function(o,u){this._parameters=o,this._specification=u,pu(this,Mp(this._parameters,this._specification))};lf.deserialize=function(o){return new lf(o._parameters,o._specification)},lf.serialize=function(o){return{_parameters:o._parameters,_specification:o._specification}};function jm(n,o){if($f(n))return new lf(n,o);if(wu(n)){var u=Xo(n,o);if(u.result==="error")throw new Error(u.value.map(function(x){return x.key+": "+x.message}).join(", "));return u.value}else{var p=n;return typeof n=="string"&&o.type==="color"&&(p=oi.parse(n)),{kind:"constant",evaluate:function(){return p}}}}function uf(n){var o=null;if(n instanceof kl)o=uf(n.result);else if(n instanceof Js)for(var u=0,p=n.args;up.maximum?[new Or(o,u,u+" is greater than the maximum value "+p.maximum)]:[]}function Qc(n){var o=n.valueSpec,u=sn(n.value.type),p,x={},A,k,F=u!=="categorical"&&n.value.property===void 0,Y=!F,j=pi(n.value.stops)==="array"&&pi(n.value.stops[0])==="array"&&pi(n.value.stops[0][0])==="object",Q=vs({key:n.key,value:n.value,valueSpec:n.styleSpec.function,style:n.style,styleSpec:n.styleSpec,objectElementValidators:{stops:ie,default:ke}});return u==="identity"&&F&&Q.push(new Or(n.key,n.value,'missing required property "property"')),u!=="identity"&&!n.value.stops&&Q.push(new Or(n.key,n.value,'missing required property "stops"')),u==="exponential"&&n.valueSpec.expression&&!Kc(n.valueSpec)&&Q.push(new Or(n.key,n.value,"exponential functions not supported")),n.styleSpec.$version>=8&&(Y&&!sf(n.valueSpec)?Q.push(new Or(n.key,n.value,"property functions not supported")):F&&!Tp(n.valueSpec)&&Q.push(new Or(n.key,n.value,"zoom functions not supported"))),(u==="categorical"||j)&&n.value.property===void 0&&Q.push(new Or(n.key,n.value,'"property" property is required')),Q;function ie(qe){if(u==="identity")return[new Or(qe.key,qe.value,'identity function may not have a "stops" property')];var ut=[],et=qe.value;return ut=ut.concat(qv({key:qe.key,value:et,valueSpec:qe.valueSpec,style:qe.style,styleSpec:qe.styleSpec,arrayElementValidator:ge})),pi(et)==="array"&&et.length===0&&ut.push(new Or(qe.key,et,"array must have at least one stop")),ut}function ge(qe){var ut=[],et=qe.value,kt=qe.key;if(pi(et)!=="array")return[new Or(kt,et,"array expected, "+pi(et)+" found")];if(et.length!==2)return[new Or(kt,et,"array length 2 expected, length "+et.length+" found")];if(j){if(pi(et[0])!=="object")return[new Or(kt,et,"object expected, "+pi(et[0])+" found")];if(et[0].zoom===void 0)return[new Or(kt,et,"object stop key must have zoom")];if(et[0].value===void 0)return[new Or(kt,et,"object stop key must have value")];if(k&&k>sn(et[0].zoom))return[new Or(kt,et[0].zoom,"stop zoom values must appear in ascending order")];sn(et[0].zoom)!==k&&(k=sn(et[0].zoom),A=void 0,x={}),ut=ut.concat(vs({key:kt+"[0]",value:et[0],valueSpec:{zoom:{}},style:qe.style,styleSpec:qe.styleSpec,objectElementValidators:{zoom:ff,value:he}}))}else ut=ut.concat(he({key:kt+"[0]",value:et[0],valueSpec:{},style:qe.style,styleSpec:qe.styleSpec},et));return wu(gl(et[1]))?ut.concat([new Or(kt+"[1]",et[1],"expressions are not allowed in function stops.")]):ut.concat(li({key:kt+"[1]",value:et[1],valueSpec:o,style:qe.style,styleSpec:qe.styleSpec}))}function he(qe,ut){var et=pi(qe.value),kt=sn(qe.value),_t=qe.value!==null?qe.value:ut;if(!p)p=et;else if(et!==p)return[new Or(qe.key,_t,et+" stop domain type must match previous stop domain type "+p)];if(et!=="number"&&et!=="string"&&et!=="boolean")return[new Or(qe.key,_t,"stop domain value must be a number, string, or boolean")];if(et!=="number"&&u!=="categorical"){var St="number expected, "+et+" found";return sf(o)&&u===void 0&&(St+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Or(qe.key,_t,St)]}return u==="categorical"&&et==="number"&&(!isFinite(kt)||Math.floor(kt)!==kt)?[new Or(qe.key,_t,"integer expected, found "+kt)]:u!=="categorical"&&et==="number"&&A!==void 0&&kt=2&&n[1]!=="$id"&&n[1]!=="$type";case"in":return n.length>=3&&(typeof n[1]!="string"||Array.isArray(n[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return n.length!==3||Array.isArray(n[1])||Array.isArray(n[2]);case"any":case"all":for(var o=0,u=n.slice(1);oo?1:0}function hf(n){if(!Array.isArray(n))return!1;if(n[0]==="within")return!0;for(var o=1;o"||o==="<="||o===">="?Nv(n[1],n[2],o):o==="any"?$m(n.slice(1)):o==="all"?["all"].concat(n.slice(1).map(vf)):o==="none"?["all"].concat(n.slice(1).map(vf).map(tc)):o==="in"?Lp(n[1],n.slice(2)):o==="!in"?tc(Lp(n[1],n.slice(2))):o==="has"?Bv(n[1]):o==="!has"?tc(Bv(n[1])):o==="within"?n:!0;return u}function Nv(n,o,u){switch(n){case"$type":return["filter-type-"+u,o];case"$id":return["filter-id-"+u,o];default:return["filter-"+u,n,o]}}function $m(n){return["any"].concat(n.map(vf))}function Lp(n,o){if(o.length===0)return!1;switch(n){case"$type":return["filter-type-in",["literal",o]];case"$id":return["filter-id-in",["literal",o]];default:return o.length>200&&!o.some(function(u){return typeof u!=typeof o[0]})?["filter-in-large",n,["literal",o.sort(Rl)]]:["filter-in-small",n,["literal",o]]}}function Bv(n){switch(n){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",n]}}function tc(n){return["!",n]}function eh(n){return go(gl(n.value))?Tu(pu({},n,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Ov(n)}function Ov(n){var o=n.value,u=n.key;if(pi(o)!=="array")return[new Or(u,o,"array expected, "+pi(o)+" found")];var p=n.styleSpec,x,A=[];if(o.length<1)return[new Or(u,o,"filter array must have at least 1 element")];switch(A=A.concat($c({key:u+"[0]",value:o[0],valueSpec:p.filter_operator,style:n.style,styleSpec:n.styleSpec})),sn(o[0])){case"<":case"<=":case">":case">=":o.length>=2&&sn(o[1])==="$type"&&A.push(new Or(u,o,'"$type" cannot be use with operator "'+o[0]+'"'));case"==":case"!=":o.length!==3&&A.push(new Or(u,o,'filter array for operator "'+o[0]+'" must have 3 elements'));case"in":case"!in":o.length>=2&&(x=pi(o[1]),x!=="string"&&A.push(new Or(u+"[1]",o[1],"string expected, "+x+" found")));for(var k=2;k=Q[he+0]&&p>=Q[he+1])?(k[ge]=!0,A.push(j[ge])):k[ge]=!1}}},Es.prototype._forEachCell=function(n,o,u,p,x,A,k,F){for(var Y=this._convertToCellCoord(n),j=this._convertToCellCoord(o),Q=this._convertToCellCoord(u),ie=this._convertToCellCoord(p),ge=Y;ge<=Q;ge++)for(var he=j;he<=ie;he++){var ke=this.d*he+ge;if(!(F&&!F(this._convertFromCellCoord(ge),this._convertFromCellCoord(he),this._convertFromCellCoord(ge+1),this._convertFromCellCoord(he+1)))&&x.call(this,n,o,u,p,ke,A,k,F))return}},Es.prototype._convertFromCellCoord=function(n){return(n-this.padding)/this.scale},Es.prototype._convertToCellCoord=function(n){return Math.max(0,Math.min(this.d-1,Math.floor(n*this.scale)+this.padding))},Es.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var n=this.cells,o=ql+this.cells.length+1+1,u=0,p=0;p=0)){var ie=n[Q];j[Q]=Nl[Y].shallow.indexOf(Q)>=0?ie:U(ie,o)}n instanceof Error&&(j.message=n.message)}if(j.$name)throw new Error("$name property is reserved for worker serialization logic.");return Y!=="Object"&&(j.$name=Y),j}throw new Error("can't serialize object of type "+typeof n)}function Z(n){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp||P(n)||N(n)||ArrayBuffer.isView(n)||n instanceof nh)return n;if(Array.isArray(n))return n.map(Z);if(typeof n=="object"){var o=n.$name||"Object",u=Nl[o],p=u.klass;if(!p)throw new Error("can't deserialize unregistered class "+o);if(p.deserialize)return p.deserialize(n);for(var x=Object.create(p.prototype),A=0,k=Object.keys(n);A=0?Y:Z(Y)}}return x}throw new Error("can't deserialize object of type "+typeof n)}var $=function(){this.first=!0};$.prototype.update=function(o,u){var p=Math.floor(o);return this.first?(this.first=!1,this.lastIntegerZoom=p,this.lastIntegerZoomTime=0,this.lastZoom=o,this.lastFloorZoom=p,!0):(this.lastFloorZoom>p?(this.lastIntegerZoom=p+1,this.lastIntegerZoomTime=u):this.lastFloorZoom=128&&n<=255},Arabic:function(n){return n>=1536&&n<=1791},"Arabic Supplement":function(n){return n>=1872&&n<=1919},"Arabic Extended-A":function(n){return n>=2208&&n<=2303},"Hangul Jamo":function(n){return n>=4352&&n<=4607},"Unified Canadian Aboriginal Syllabics":function(n){return n>=5120&&n<=5759},Khmer:function(n){return n>=6016&&n<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(n){return n>=6320&&n<=6399},"General Punctuation":function(n){return n>=8192&&n<=8303},"Letterlike Symbols":function(n){return n>=8448&&n<=8527},"Number Forms":function(n){return n>=8528&&n<=8591},"Miscellaneous Technical":function(n){return n>=8960&&n<=9215},"Control Pictures":function(n){return n>=9216&&n<=9279},"Optical Character Recognition":function(n){return n>=9280&&n<=9311},"Enclosed Alphanumerics":function(n){return n>=9312&&n<=9471},"Geometric Shapes":function(n){return n>=9632&&n<=9727},"Miscellaneous Symbols":function(n){return n>=9728&&n<=9983},"Miscellaneous Symbols and Arrows":function(n){return n>=11008&&n<=11263},"CJK Radicals Supplement":function(n){return n>=11904&&n<=12031},"Kangxi Radicals":function(n){return n>=12032&&n<=12255},"Ideographic Description Characters":function(n){return n>=12272&&n<=12287},"CJK Symbols and Punctuation":function(n){return n>=12288&&n<=12351},Hiragana:function(n){return n>=12352&&n<=12447},Katakana:function(n){return n>=12448&&n<=12543},Bopomofo:function(n){return n>=12544&&n<=12591},"Hangul Compatibility Jamo":function(n){return n>=12592&&n<=12687},Kanbun:function(n){return n>=12688&&n<=12703},"Bopomofo Extended":function(n){return n>=12704&&n<=12735},"CJK Strokes":function(n){return n>=12736&&n<=12783},"Katakana Phonetic Extensions":function(n){return n>=12784&&n<=12799},"Enclosed CJK Letters and Months":function(n){return n>=12800&&n<=13055},"CJK Compatibility":function(n){return n>=13056&&n<=13311},"CJK Unified Ideographs Extension A":function(n){return n>=13312&&n<=19903},"Yijing Hexagram Symbols":function(n){return n>=19904&&n<=19967},"CJK Unified Ideographs":function(n){return n>=19968&&n<=40959},"Yi Syllables":function(n){return n>=40960&&n<=42127},"Yi Radicals":function(n){return n>=42128&&n<=42191},"Hangul Jamo Extended-A":function(n){return n>=43360&&n<=43391},"Hangul Syllables":function(n){return n>=44032&&n<=55215},"Hangul Jamo Extended-B":function(n){return n>=55216&&n<=55295},"Private Use Area":function(n){return n>=57344&&n<=63743},"CJK Compatibility Ideographs":function(n){return n>=63744&&n<=64255},"Arabic Presentation Forms-A":function(n){return n>=64336&&n<=65023},"Vertical Forms":function(n){return n>=65040&&n<=65055},"CJK Compatibility Forms":function(n){return n>=65072&&n<=65103},"Small Form Variants":function(n){return n>=65104&&n<=65135},"Arabic Presentation Forms-B":function(n){return n>=65136&&n<=65279},"Halfwidth and Fullwidth Forms":function(n){return n>=65280&&n<=65519}};function ae(n){for(var o=0,u=n;o=65097&&n<=65103)||X["CJK Compatibility Ideographs"](n)||X["CJK Compatibility"](n)||X["CJK Radicals Supplement"](n)||X["CJK Strokes"](n)||X["CJK Symbols and Punctuation"](n)&&!(n>=12296&&n<=12305)&&!(n>=12308&&n<=12319)&&n!==12336||X["CJK Unified Ideographs Extension A"](n)||X["CJK Unified Ideographs"](n)||X["Enclosed CJK Letters and Months"](n)||X["Hangul Compatibility Jamo"](n)||X["Hangul Jamo Extended-A"](n)||X["Hangul Jamo Extended-B"](n)||X["Hangul Jamo"](n)||X["Hangul Syllables"](n)||X.Hiragana(n)||X["Ideographic Description Characters"](n)||X.Kanbun(n)||X["Kangxi Radicals"](n)||X["Katakana Phonetic Extensions"](n)||X.Katakana(n)&&n!==12540||X["Halfwidth and Fullwidth Forms"](n)&&n!==65288&&n!==65289&&n!==65293&&!(n>=65306&&n<=65310)&&n!==65339&&n!==65341&&n!==65343&&!(n>=65371&&n<=65503)&&n!==65507&&!(n>=65512&&n<=65519)||X["Small Form Variants"](n)&&!(n>=65112&&n<=65118)&&!(n>=65123&&n<=65126)||X["Unified Canadian Aboriginal Syllabics"](n)||X["Unified Canadian Aboriginal Syllabics Extended"](n)||X["Vertical Forms"](n)||X["Yijing Hexagram Symbols"](n)||X["Yi Syllables"](n)||X["Yi Radicals"](n))}function Qe(n){return!!(X["Latin-1 Supplement"](n)&&(n===167||n===169||n===174||n===177||n===188||n===189||n===190||n===215||n===247)||X["General Punctuation"](n)&&(n===8214||n===8224||n===8225||n===8240||n===8241||n===8251||n===8252||n===8258||n===8263||n===8264||n===8265||n===8273)||X["Letterlike Symbols"](n)||X["Number Forms"](n)||X["Miscellaneous Technical"](n)&&(n>=8960&&n<=8967||n>=8972&&n<=8991||n>=8996&&n<=9e3||n===9003||n>=9085&&n<=9114||n>=9150&&n<=9165||n===9167||n>=9169&&n<=9179||n>=9186&&n<=9215)||X["Control Pictures"](n)&&n!==9251||X["Optical Character Recognition"](n)||X["Enclosed Alphanumerics"](n)||X["Geometric Shapes"](n)||X["Miscellaneous Symbols"](n)&&!(n>=9754&&n<=9759)||X["Miscellaneous Symbols and Arrows"](n)&&(n>=11026&&n<=11055||n>=11088&&n<=11097||n>=11192&&n<=11243)||X["CJK Symbols and Punctuation"](n)||X.Katakana(n)||X["Private Use Area"](n)||X["CJK Compatibility Forms"](n)||X["Small Form Variants"](n)||X["Halfwidth and Fullwidth Forms"](n)||n===8734||n===8756||n===8757||n>=9984&&n<=10087||n>=10102&&n<=10131||n===65532||n===65533)}function st(n){return!(De(n)||Qe(n))}function Ie(n){return X.Arabic(n)||X["Arabic Supplement"](n)||X["Arabic Extended-A"](n)||X["Arabic Presentation Forms-A"](n)||X["Arabic Presentation Forms-B"](n)}function Ve(n){return n>=1424&&n<=2303||X["Arabic Presentation Forms-A"](n)||X["Arabic Presentation Forms-B"](n)}function Ke(n,o){return!(!o&&Ve(n)||n>=2304&&n<=3583||n>=3840&&n<=4255||X.Khmer(n))}function ct(n){for(var o=0,u=n;o-1&&(nr=je.error),Ht&&Ht(n)};function Dr(){Ir.fire(new ii("pluginStateChange",{pluginStatus:nr,pluginURL:cr}))}var Ir=new dr,ta=function(){return nr},Ur=function(n){return n({pluginStatus:nr,pluginURL:cr}),Ir.on("pluginStateChange",n),n},Kr=function(n,o,u){if(u===void 0&&(u=!1),nr===je.deferred||nr===je.loading||nr===je.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");cr=mt.resolveURL(n),nr=je.deferred,Ht=o,Dr(),u||Na()},Na=function(){if(nr!==je.deferred||!cr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");nr=je.loading,Dr(),cr&&at({url:cr},function(n){n?ur(n):(nr=je.loaded,Dr())})},ri={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return nr===je.loaded||ri.applyArabicShaping!=null},isLoading:function(){return nr===je.loading},setState:function(o){nr=o.pluginStatus,cr=o.pluginURL},isParsed:function(){return ri.applyArabicShaping!=null&&ri.processBidirectionalText!=null&&ri.processStyledBidirectionalText!=null},getPluginURL:function(){return cr}},ei=function(){!ri.isLoading()&&!ri.isLoaded()&&ta()==="deferred"&&Na()},Xt=function(o,u){this.zoom=o,u?(this.now=u.now,this.fadeDuration=u.fadeDuration,this.zoomHistory=u.zoomHistory,this.transition=u.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new $,this.transition={})};Xt.prototype.isSupportedScript=function(o){return ot(o,ri.isLoaded())},Xt.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Xt.prototype.getCrossfadeParameters=function(){var o=this.zoom,u=o-Math.floor(o),p=this.crossFadingFactor();return o>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:u+(1-u)*p}:{fromScale:.5,toScale:1,t:1-(1-p)*u}};var Jr=function(o,u){this.property=o,this.value=u,this.expression=jm(u===void 0?o.specification.default:u,o.specification)};Jr.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Jr.prototype.possiblyEvaluate=function(o,u,p){return this.property.possiblyEvaluate(this,o,u,p)};var oa=function(o){this.property=o,this.value=new Jr(o,void 0)};oa.prototype.transitioned=function(o,u){return new Pi(this.property,this.value,u,H({},o.transition,this.transition),o.now)},oa.prototype.untransitioned=function(){return new Pi(this.property,this.value,null,{},0)};var sa=function(o){this._properties=o,this._values=Object.create(o.defaultTransitionablePropertyValues)};sa.prototype.getValue=function(o){return Ae(this._values[o].value.value)},sa.prototype.setValue=function(o,u){this._values.hasOwnProperty(o)||(this._values[o]=new oa(this._values[o].property)),this._values[o].value=new Jr(this._values[o].property,u===null?void 0:Ae(u))},sa.prototype.getTransition=function(o){return Ae(this._values[o].transition)},sa.prototype.setTransition=function(o,u){this._values.hasOwnProperty(o)||(this._values[o]=new oa(this._values[o].property)),this._values[o].transition=Ae(u)||void 0},sa.prototype.serialize=function(){for(var o={},u=0,p=Object.keys(this._values);uthis.end)return this.prior=null,A;if(this.value.isDataDriven())return this.prior=null,A;if(xk.zoomHistory.lastIntegerZoom?{from:p,to:x}:{from:A,to:x}},o.prototype.interpolate=function(p){return p},o}(Vr),Mi=function(o){this.specification=o};Mi.prototype.possiblyEvaluate=function(o,u,p,x){if(o.value!==void 0)if(o.expression.kind==="constant"){var A=o.expression.evaluate(u,null,{},p,x);return this._calculate(A,A,A,u)}else return this._calculate(o.expression.evaluate(new Xt(Math.floor(u.zoom-1),u)),o.expression.evaluate(new Xt(Math.floor(u.zoom),u)),o.expression.evaluate(new Xt(Math.floor(u.zoom+1),u)),u)},Mi.prototype._calculate=function(o,u,p,x){var A=x.zoom;return A>x.zoomHistory.lastIntegerZoom?{from:o,to:u}:{from:p,to:u}},Mi.prototype.interpolate=function(o){return o};var lo=function(o){this.specification=o};lo.prototype.possiblyEvaluate=function(o,u,p,x){return!!o.expression.evaluate(u,null,{},p,x)},lo.prototype.interpolate=function(){return!1};var In=function(o){this.properties=o,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var u in o){var p=o[u];p.specification.overridable&&this.overridableProperties.push(u);var x=this.defaultPropertyValues[u]=new Jr(p,void 0),A=this.defaultTransitionablePropertyValues[u]=new oa(p);this.defaultTransitioningPropertyValues[u]=A.untransitioned(),this.defaultPossiblyEvaluatedValues[u]=x.possiblyEvaluate({})}};y("DataDrivenProperty",Vr),y("DataConstantProperty",wr),y("CrossFadedDataDrivenProperty",Bi),y("CrossFadedProperty",Mi),y("ColorRampProperty",lo);var pn="-transition",mi=function(n){function o(u,p){if(n.call(this),this.id=u.id,this.type=u.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},u.type!=="custom"&&(u=u,this.metadata=u.metadata,this.minzoom=u.minzoom,this.maxzoom=u.maxzoom,u.type!=="background"&&(this.source=u.source,this.sourceLayer=u["source-layer"],this.filter=u.filter),p.layout&&(this._unevaluatedLayout=new tn(p.layout)),p.paint)){this._transitionablePaint=new sa(p.paint);for(var x in u.paint)this.setPaintProperty(x,u.paint[x],{validate:!1});for(var A in u.layout)this.setLayoutProperty(A,u.layout[A],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new wn(p.paint)}}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},o.prototype.getLayoutProperty=function(p){return p==="visibility"?this.visibility:this._unevaluatedLayout.getValue(p)},o.prototype.setLayoutProperty=function(p,x,A){if(A===void 0&&(A={}),x!=null){var k="layers."+this.id+".layout."+p;if(this._validate(Fl,k,p,x,A))return}if(p==="visibility"){this.visibility=x;return}this._unevaluatedLayout.setValue(p,x)},o.prototype.getPaintProperty=function(p){return ve(p,pn)?this._transitionablePaint.getTransition(p.slice(0,-pn.length)):this._transitionablePaint.getValue(p)},o.prototype.setPaintProperty=function(p,x,A){if(A===void 0&&(A={}),x!=null){var k="layers."+this.id+".paint."+p;if(this._validate(ih,k,p,x,A))return!1}if(ve(p,pn))return this._transitionablePaint.setTransition(p.slice(0,-pn.length),x||void 0),!1;var F=this._transitionablePaint._values[p],Y=F.property.specification["property-type"]==="cross-faded-data-driven",j=F.value.isDataDriven(),Q=F.value;this._transitionablePaint.setValue(p,x),this._handleSpecialPaintPropertyUpdate(p);var ie=this._transitionablePaint._values[p].value,ge=ie.isDataDriven();return ge||j||Y||this._handleOverridablePaintPropertyUpdate(p,Q,ie)},o.prototype._handleSpecialPaintPropertyUpdate=function(p){},o.prototype._handleOverridablePaintPropertyUpdate=function(p,x,A){return!1},o.prototype.isHidden=function(p){return this.minzoom&&p=this.maxzoom?!0:this.visibility==="none"},o.prototype.updateTransitions=function(p){this._transitioningPaint=this._transitionablePaint.transitioned(p,this._transitioningPaint)},o.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},o.prototype.recalculate=function(p,x){p.getCrossfadeParameters&&(this._crossfadeParameters=p.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(p,void 0,x)),this.paint=this._transitioningPaint.possiblyEvaluate(p,void 0,x)},o.prototype.serialize=function(){var p={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(p.layout=p.layout||{},p.layout.visibility=this.visibility),Se(p,function(x,A){return x!==void 0&&!(A==="layout"&&!Object.keys(x).length)&&!(A==="paint"&&!Object.keys(x).length)})},o.prototype._validate=function(p,x,A,k,F){return F===void 0&&(F={}),F&&F.validate===!1?!1:rc(this,p.call(ti,{key:x,layerType:this.type,objectKey:A,value:k,styleSpec:Wt,style:{glyphs:!0,sprite:!0}}))},o.prototype.is3D=function(){return!1},o.prototype.isTileClipped=function(){return!1},o.prototype.hasOffscreenPass=function(){return!1},o.prototype.resize=function(){},o.prototype.isStateDependent=function(){for(var p in this.paint._values){var x=this.paint.get(p);if(!(!(x instanceof wi)||!sf(x.property.specification))&&(x.value.kind==="source"||x.value.kind==="composite")&&x.value.isStateDependent)return!0}return!1},o}(dr),jo={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},uo=function(o,u){this._structArray=o,this._pos1=u*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},ci=128,gf=5,Aa=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Aa.serialize=function(o,u){return o._trim(),u&&(o.isTransferred=!0,u.push(o.arrayBuffer)),{length:o.length,arrayBuffer:o.arrayBuffer}},Aa.deserialize=function(o){var u=Object.create(this.prototype);return u.arrayBuffer=o.arrayBuffer,u.length=o.length,u.capacity=o.arrayBuffer.byteLength/u.bytesPerElement,u._refreshViews(),u},Aa.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Aa.prototype.clear=function(){this.length=0},Aa.prototype.resize=function(o){this.reserve(o),this.length=o},Aa.prototype.reserve=function(o){if(o>this.capacity){this.capacity=Math.max(o,Math.floor(this.capacity*gf),ci),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var u=this.uint8;this._refreshViews(),u&&this.uint8.set(u)}},Aa.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function ui(n,o){o===void 0&&(o=1);var u=0,p=0,x=n.map(function(k){var F=Bl(k.type),Y=u=Hv(u,Math.max(o,F)),j=k.components||1;return p=Math.max(p,F),u+=F*j,{name:k.name,type:k.type,components:j,offset:Y}}),A=Hv(u,Math.max(p,o));return{members:x,size:A,alignment:o}}function Bl(n){return jo[n].BYTES_PER_ELEMENT}function Hv(n,o){return Math.ceil(n/o)*o}var ac=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.int16[k+0]=x,this.int16[k+1]=A,p},o}(Aa);ac.prototype.bytesPerElement=4,y("StructArrayLayout2i4",ac);var ey=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*4;return this.int16[Y+0]=x,this.int16[Y+1]=A,this.int16[Y+2]=k,this.int16[Y+3]=F,p},o}(Aa);ey.prototype.bytesPerElement=8,y("StructArrayLayout4i8",ey);var _f=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*6;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.int16[Q+2]=k,this.int16[Q+3]=F,this.int16[Q+4]=Y,this.int16[Q+5]=j,p},o}(Aa);_f.prototype.bytesPerElement=12,y("StructArrayLayout2i4i12",_f);var oh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*4,ie=p*8;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.uint8[ie+4]=k,this.uint8[ie+5]=F,this.uint8[ie+6]=Y,this.uint8[ie+7]=j,p},o}(Aa);oh.prototype.bytesPerElement=8,y("StructArrayLayout2i4ub8",oh);var sh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.float32[k+0]=x,this.float32[k+1]=A,p},o}(Aa);sh.prototype.bytesPerElement=8,y("StructArrayLayout2f8",sh);var Lo=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge){var he=this.length;return this.resize(he+1),this.emplace(he,p,x,A,k,F,Y,j,Q,ie,ge)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he){var ke=p*10;return this.uint16[ke+0]=x,this.uint16[ke+1]=A,this.uint16[ke+2]=k,this.uint16[ke+3]=F,this.uint16[ke+4]=Y,this.uint16[ke+5]=j,this.uint16[ke+6]=Q,this.uint16[ke+7]=ie,this.uint16[ke+8]=ge,this.uint16[ke+9]=he,p},o}(Aa);Lo.prototype.bytesPerElement=20,y("StructArrayLayout10ui20",Lo);var xf=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke){var qe=this.length;return this.resize(qe+1),this.emplace(qe,p,x,A,k,F,Y,j,Q,ie,ge,he,ke)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe){var ut=p*12;return this.int16[ut+0]=x,this.int16[ut+1]=A,this.int16[ut+2]=k,this.int16[ut+3]=F,this.uint16[ut+4]=Y,this.uint16[ut+5]=j,this.uint16[ut+6]=Q,this.uint16[ut+7]=ie,this.int16[ut+8]=ge,this.int16[ut+9]=he,this.int16[ut+10]=ke,this.int16[ut+11]=qe,p},o}(Aa);xf.prototype.bytesPerElement=24,y("StructArrayLayout4i4ui4i24",xf);var ty=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.float32[F+0]=x,this.float32[F+1]=A,this.float32[F+2]=k,p},o}(Aa);ty.prototype.bytesPerElement=12,y("StructArrayLayout3f12",ty);var ry=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.uint32[A+0]=x,p},o}(Aa);ry.prototype.bytesPerElement=4,y("StructArrayLayout1ul4",ry);var Gv=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie){var ge=this.length;return this.resize(ge+1),this.emplace(ge,p,x,A,k,F,Y,j,Q,ie)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge){var he=p*10,ke=p*5;return this.int16[he+0]=x,this.int16[he+1]=A,this.int16[he+2]=k,this.int16[he+3]=F,this.int16[he+4]=Y,this.int16[he+5]=j,this.uint32[ke+3]=Q,this.uint16[he+8]=ie,this.uint16[he+9]=ge,p},o}(Aa);Gv.prototype.bytesPerElement=20,y("StructArrayLayout6i1ul2ui20",Gv);var Rp=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*6;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.int16[Q+2]=k,this.int16[Q+3]=F,this.int16[Q+4]=Y,this.int16[Q+5]=j,p},o}(Aa);Rp.prototype.bytesPerElement=12,y("StructArrayLayout2i2i2i12",Rp);var Mu=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F){var Y=this.length;return this.resize(Y+1),this.emplace(Y,p,x,A,k,F)},o.prototype.emplace=function(p,x,A,k,F,Y){var j=p*4,Q=p*8;return this.float32[j+0]=x,this.float32[j+1]=A,this.float32[j+2]=k,this.int16[Q+6]=F,this.int16[Q+7]=Y,p},o}(Aa);Mu.prototype.bytesPerElement=16,y("StructArrayLayout2f1f2i16",Mu);var Jo=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*12,j=p*3;return this.uint8[Y+0]=x,this.uint8[Y+1]=A,this.float32[j+1]=k,this.float32[j+2]=F,p},o}(Aa);Jo.prototype.bytesPerElement=12,y("StructArrayLayout2ub2f12",Jo);var Su=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.uint16[F+0]=x,this.uint16[F+1]=A,this.uint16[F+2]=k,p},o}(Aa);Su.prototype.bytesPerElement=6,y("StructArrayLayout3ui6",Su);var Zv=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t){var St=this.length;return this.resize(St+1),this.emplace(St,p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t,St){var zt=p*24,jt=p*12,vr=p*48;return this.int16[zt+0]=x,this.int16[zt+1]=A,this.uint16[zt+2]=k,this.uint16[zt+3]=F,this.uint32[jt+2]=Y,this.uint32[jt+3]=j,this.uint32[jt+4]=Q,this.uint16[zt+10]=ie,this.uint16[zt+11]=ge,this.uint16[zt+12]=he,this.float32[jt+7]=ke,this.float32[jt+8]=qe,this.uint8[vr+36]=ut,this.uint8[vr+37]=et,this.uint8[vr+38]=kt,this.uint32[jt+10]=_t,this.int16[zt+22]=St,p},o}(Aa);Zv.prototype.bytesPerElement=48,y("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Zv);var Fp=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t,St,zt,jt,vr,fr,Rr,Mr,Pr,Qr,Fr,Nr){var ya=this.length;return this.resize(ya+1),this.emplace(ya,p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t,St,zt,jt,vr,fr,Rr,Mr,Pr,Qr,Fr,Nr)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t,St,zt,jt,vr,fr,Rr,Mr,Pr,Qr,Fr,Nr,ya){var jr=p*34,Wa=p*17;return this.int16[jr+0]=x,this.int16[jr+1]=A,this.int16[jr+2]=k,this.int16[jr+3]=F,this.int16[jr+4]=Y,this.int16[jr+5]=j,this.int16[jr+6]=Q,this.int16[jr+7]=ie,this.uint16[jr+8]=ge,this.uint16[jr+9]=he,this.uint16[jr+10]=ke,this.uint16[jr+11]=qe,this.uint16[jr+12]=ut,this.uint16[jr+13]=et,this.uint16[jr+14]=kt,this.uint16[jr+15]=_t,this.uint16[jr+16]=St,this.uint16[jr+17]=zt,this.uint16[jr+18]=jt,this.uint16[jr+19]=vr,this.uint16[jr+20]=fr,this.uint16[jr+21]=Rr,this.uint16[jr+22]=Mr,this.uint32[Wa+12]=Pr,this.float32[Wa+13]=Qr,this.float32[Wa+14]=Fr,this.float32[Wa+15]=Nr,this.float32[Wa+16]=ya,p},o}(Aa);Fp.prototype.bytesPerElement=68,y("StructArrayLayout8i15ui1ul4f68",Fp);var lh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.float32[A+0]=x,p},o}(Aa);lh.prototype.bytesPerElement=4,y("StructArrayLayout1f4",lh);var ay=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.int16[F+0]=x,this.int16[F+1]=A,this.int16[F+2]=k,p},o}(Aa);ay.prototype.bytesPerElement=6,y("StructArrayLayout3i6",ay);var bf=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*2,Y=p*4;return this.uint32[F+0]=x,this.uint16[Y+2]=A,this.uint16[Y+3]=k,p},o}(Aa);bf.prototype.bytesPerElement=8,y("StructArrayLayout1ul2ui8",bf);var Yv=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.uint16[k+0]=x,this.uint16[k+1]=A,p},o}(Aa);Yv.prototype.bytesPerElement=4,y("StructArrayLayout2ui4",Yv);var uh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.uint16[A+0]=x,p},o}(Aa);uh.prototype.bytesPerElement=2,y("StructArrayLayout1ui2",uh);var ic=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*4;return this.float32[Y+0]=x,this.float32[Y+1]=A,this.float32[Y+2]=k,this.float32[Y+3]=F,p},o}(Aa);ic.prototype.bytesPerElement=16,y("StructArrayLayout4f16",ic);var y1=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return u.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},u.x1.get=function(){return this._structArray.int16[this._pos2+2]},u.y1.get=function(){return this._structArray.int16[this._pos2+3]},u.x2.get=function(){return this._structArray.int16[this._pos2+4]},u.y2.get=function(){return this._structArray.int16[this._pos2+5]},u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.anchorPoint.get=function(){return new v(this.anchorPointX,this.anchorPointY)},Object.defineProperties(o.prototype,u),o}(uo);y1.prototype.size=20;var iy=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new y1(this,p)},o}(Gv);y("CollisionBoxArray",iy);var nc=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},u.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},u.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},u.segment.get=function(){return this._structArray.uint16[this._pos2+10]},u.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},u.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},u.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},u.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},u.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},u.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},u.placedOrientation.set=function(p){this._structArray.uint8[this._pos1+37]=p},u.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},u.hidden.set=function(p){this._structArray.uint8[this._pos1+38]=p},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+10]=p},u.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(o.prototype,u),o}(uo);nc.prototype.size=48;var ny=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new nc(this,p)},o}(Zv);y("PlacedSymbolArray",ny);var fh=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},u.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},u.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},u.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},u.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},u.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},u.key.get=function(){return this._structArray.uint16[this._pos2+8]},u.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},u.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},u.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},u.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},u.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},u.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},u.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},u.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},u.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},u.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},u.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},u.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},u.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+12]=p},u.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},u.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},u.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},u.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(o.prototype,u),o}(uo);fh.prototype.size=68;var g1=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new fh(this,p)},o}(Fp);y("SymbolInstanceArray",g1);var _1=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getoffsetX=function(p){return this.float32[p*1+0]},o}(lh);y("GlyphOffsetArray",_1);var Qs=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getx=function(p){return this.int16[p*3+0]},o.prototype.gety=function(p){return this.int16[p*3+1]},o.prototype.gettileUnitDistanceFromAnchor=function(p){return this.int16[p*3+2]},o}(ay);y("SymbolLineVertexArray",Qs);var x1=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(o.prototype,u),o}(uo);x1.prototype.size=8;var b1=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new x1(this,p)},o}(bf);y("FeatureIndexArray",b1);var s3=ui([{name:"a_pos",components:2,type:"Int16"}],4),w1=s3.members,Tn=function(o){o===void 0&&(o=[]),this.segments=o};Tn.prototype.prepareSegment=function(o,u,p,x){var A=this.segments[this.segments.length-1];return o>Tn.MAX_VERTEX_ARRAY_LENGTH&&Ce("Max vertices per segment is "+Tn.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+o),(!A||A.vertexLength+o>Tn.MAX_VERTEX_ARRAY_LENGTH||A.sortKey!==x)&&(A={vertexOffset:u.length,primitiveOffset:p.length,vertexLength:0,primitiveLength:0},x!==void 0&&(A.sortKey=x),this.segments.push(A)),A},Tn.prototype.get=function(){return this.segments},Tn.prototype.destroy=function(){for(var o=0,u=this.segments;o>>16)*Y&65535)<<16)&4294967295,Q=Q<<15|Q>>>17,Q=(Q&65535)*j+(((Q>>>16)*j&65535)<<16)&4294967295,k^=Q,k=k<<13|k>>>19,F=(k&65535)*5+(((k>>>16)*5&65535)<<16)&4294967295,k=(F&65535)+27492+(((F>>>16)+58964&65535)<<16);switch(Q=0,x){case 3:Q^=(u.charCodeAt(ie+2)&255)<<16;case 2:Q^=(u.charCodeAt(ie+1)&255)<<8;case 1:Q^=u.charCodeAt(ie)&255,Q=(Q&65535)*Y+(((Q>>>16)*Y&65535)<<16)&4294967295,Q=Q<<15|Q>>>17,Q=(Q&65535)*j+(((Q>>>16)*j&65535)<<16)&4294967295,k^=Q}return k^=u.length,k^=k>>>16,k=(k&65535)*2246822507+(((k>>>16)*2246822507&65535)<<16)&4294967295,k^=k>>>13,k=(k&65535)*3266489909+(((k>>>16)*3266489909&65535)<<16)&4294967295,k^=k>>>16,k>>>0}n.exports=o}),d=s(function(n){function o(u,p){for(var x=u.length,A=p^x,k=0,F;x>=4;)F=u.charCodeAt(k)&255|(u.charCodeAt(++k)&255)<<8|(u.charCodeAt(++k)&255)<<16|(u.charCodeAt(++k)&255)<<24,F=(F&65535)*1540483477+(((F>>>16)*1540483477&65535)<<16),F^=F>>>24,F=(F&65535)*1540483477+(((F>>>16)*1540483477&65535)<<16),A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16)^F,x-=4,++k;switch(x){case 3:A^=(u.charCodeAt(k+2)&255)<<16;case 2:A^=(u.charCodeAt(k+1)&255)<<8;case 1:A^=u.charCodeAt(k)&255,A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16)}return A^=A>>>13,A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16),A^=A>>>15,A>>>0}n.exports=o}),w=b,L=b,R=d;w.murmur3=L,w.murmur2=R;var G=function(){this.ids=[],this.positions=[],this.indexed=!1};G.prototype.add=function(o,u,p,x){this.ids.push(re(o)),this.positions.push(u,p,x)},G.prototype.getPositions=function(o){for(var u=re(o),p=0,x=this.ids.length-1;p>1;this.ids[A]>=u?x=A:p=A+1}for(var k=[];this.ids[p]===u;){var F=this.positions[3*p],Y=this.positions[3*p+1],j=this.positions[3*p+2];k.push({index:F,start:Y,end:j}),p++}return k},G.serialize=function(o,u){var p=new Float64Array(o.ids),x=new Uint32Array(o.positions);return ue(p,x,0,p.length-1),u&&u.push(p.buffer,x.buffer),{ids:p,positions:x}},G.deserialize=function(o){var u=new G;return u.ids=o.ids,u.positions=o.positions,u.indexed=!0,u};var K=Math.pow(2,53)-1;function re(n){var o=+n;return!isNaN(o)&&o<=K?o:w(String(n))}function ue(n,o,u,p){for(;u>1],A=u-1,k=p+1;;){do A++;while(n[A]x);if(A>=k)break;be(n,A,k),be(o,3*A,3*k),be(o,3*A+1,3*k+1),be(o,3*A+2,3*k+2)}k-uk.x+1||Yk.y+1)&&Ce("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return u}function Si(n,o){return{type:n.type,id:n.id,properties:n.properties,geometry:o?Va(n):[]}}function La(n,o,u,p,x){n.emplaceBack(o*2+(p+1)/2,u*2+(x+1)/2)}var yi=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new ac,this.indexArray=new Su,this.segments=new Tn,this.programConfigurations=new Ar(o.layers,o.zoom),this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};yi.prototype.populate=function(o,u,p){var x=this.layers[0],A=[],k=null;x.type==="circle"&&(k=x.layout.get("circle-sort-key"));for(var F=0,Y=o;F=qr||ge<0||ge>=qr)){var he=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,o.sortKey),ke=he.vertexLength;La(this.layoutVertexArray,ie,ge,-1,-1),La(this.layoutVertexArray,ie,ge,1,-1),La(this.layoutVertexArray,ie,ge,1,1),La(this.layoutVertexArray,ie,ge,-1,1),this.indexArray.emplaceBack(ke,ke+1,ke+2),this.indexArray.emplaceBack(ke,ke+3,ke+2),he.vertexLength+=4,he.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,o,p,{},x)},y("CircleBucket",yi,{omit:["layers"]});function na(n,o){for(var u=0;u=3){for(var A=0;A1){if(Ds(n,o))return!0;for(var p=0;p1?n.distSqr(u):n.distSqr(u.sub(o)._mult(x)._add(o))}function Ul(n,o){for(var u=!1,p,x,A,k=0;ko.y!=A.y>o.y&&o.x<(A.x-x.x)*(o.y-x.y)/(A.y-x.y)+x.x&&(u=!u)}return u}function Do(n,o){for(var u=!1,p=0,x=n.length-1;po.y!=k.y>o.y&&o.x<(k.x-A.x)*(o.y-A.y)/(k.y-A.y)+A.x&&(u=!u)}return u}function Vl(n,o,u,p,x){for(var A=0,k=n;A=F.x&&x>=F.y)return!0}var Y=[new v(o,u),new v(o,x),new v(p,x),new v(p,u)];if(n.length>2)for(var j=0,Q=Y;jx.x&&o.x>x.x||n.yx.y&&o.y>x.y)return!1;var A=Le(n,o,u[0]);return A!==Le(n,o,u[1])||A!==Le(n,o,u[2])||A!==Le(n,o,u[3])}function Po(n,o,u){var p=o.paint.get(n).value;return p.kind==="constant"?p.value:u.programConfigurations.get(o.id).getMaxValue(n)}function el(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function ku(n,o,u,p,x){if(!o[0]&&!o[1])return n;var A=v.convert(o)._mult(x);u==="viewport"&&A._rotate(-p);for(var k=[],F=0;F0&&(A=1/Math.sqrt(A)),n[0]=o[0]*A,n[1]=o[1]*A,n[2]=o[2]*A,n}function KZ(n,o){return n[0]*o[0]+n[1]*o[1]+n[2]*o[2]}function QZ(n,o,u){var p=o[0],x=o[1],A=o[2],k=u[0],F=u[1],Y=u[2];return n[0]=x*Y-A*F,n[1]=A*k-p*Y,n[2]=p*F-x*k,n}function $Z(n,o,u){var p=o[0],x=o[1],A=o[2];return n[0]=p*u[0]+x*u[3]+A*u[6],n[1]=p*u[1]+x*u[4]+A*u[7],n[2]=p*u[2]+x*u[5]+A*u[8],n}var eY=c3,nme=function(){var n=Xv();return function(o,u,p,x,A,k){var F,Y;for(u||(u=3),p||(p=0),x?Y=Math.min(x*u+p,o.length):Y=o.length,F=p;Fn.width||x.height>n.height||u.x>n.width-x.width||u.y>n.height-x.height)throw new RangeError("out of range source coordinates for image copy");if(x.width>o.width||x.height>o.height||p.x>o.width-x.width||p.y>o.height-x.height)throw new RangeError("out of range destination coordinates for image copy");for(var k=n.data,F=o.data,Y=0;Y80*u){F=j=n[0],Y=Q=n[1];for(var ke=u;kej&&(j=ie),ge>Q&&(Q=ge);he=Math.max(j-F,Q-Y),he=he!==0?1/he:0}return ly(A,k,u,F,Y,he),k}function cM(n,o,u,p,x){var A,k;if(x===g3(n,o,u,p)>0)for(A=o;A=o;A-=p)k=dM(A,n[A],n[A+1],k);return k&&M1(k,k.next)&&(fy(k),k=k.next),k}function ph(n,o){if(!n)return n;o||(o=n);var u=n,p;do if(p=!1,!u.steiner&&(M1(u,u.next)||An(u.prev,u,u.next)===0)){if(fy(u),u=o=u.prev,u===u.next)break;p=!0}else u=u.next;while(p||u!==o);return o}function ly(n,o,u,p,x,A,k){if(n){!k&&A&&kY(n,p,x,A);for(var F=n,Y,j;n.prev!==n.next;){if(Y=n.prev,j=n.next,A?_Y(n,p,x,A):gY(n)){o.push(Y.i/u),o.push(n.i/u),o.push(j.i/u),fy(n),n=j.next,F=j.next;continue}if(n=j,n===F){k?k===1?(n=xY(ph(n),o,u),ly(n,o,u,p,x,A,2)):k===2&&bY(n,o,u,p,x,A):ly(ph(n),o,u,p,x,A,1);break}}}}function gY(n){var o=n.prev,u=n,p=n.next;if(An(o,u,p)>=0)return!1;for(var x=n.next.next;x!==n.prev;){if(Gp(o.x,o.y,u.x,u.y,p.x,p.y,x.x,x.y)&&An(x.prev,x,x.next)>=0)return!1;x=x.next}return!0}function _Y(n,o,u,p){var x=n.prev,A=n,k=n.next;if(An(x,A,k)>=0)return!1;for(var F=x.xA.x?x.x>k.x?x.x:k.x:A.x>k.x?A.x:k.x,Q=x.y>A.y?x.y>k.y?x.y:k.y:A.y>k.y?A.y:k.y,ie=m3(F,Y,o,u,p),ge=m3(j,Q,o,u,p),he=n.prevZ,ke=n.nextZ;he&&he.z>=ie&&ke&&ke.z<=ge;){if(he!==n.prev&&he!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,he.x,he.y)&&An(he.prev,he,he.next)>=0||(he=he.prevZ,ke!==n.prev&&ke!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,ke.x,ke.y)&&An(ke.prev,ke,ke.next)>=0))return!1;ke=ke.nextZ}for(;he&&he.z>=ie;){if(he!==n.prev&&he!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,he.x,he.y)&&An(he.prev,he,he.next)>=0)return!1;he=he.prevZ}for(;ke&&ke.z<=ge;){if(ke!==n.prev&&ke!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,ke.x,ke.y)&&An(ke.prev,ke,ke.next)>=0)return!1;ke=ke.nextZ}return!0}function xY(n,o,u){var p=n;do{var x=p.prev,A=p.next.next;!M1(x,A)&&hM(x,p,p.next,A)&&uy(x,A)&&uy(A,x)&&(o.push(x.i/u),o.push(p.i/u),o.push(A.i/u),fy(p),fy(p.next),p=n=A),p=p.next}while(p!==n);return ph(p)}function bY(n,o,u,p,x,A){var k=n;do{for(var F=k.next.next;F!==k.prev;){if(k.i!==F.i&&LY(k,F)){var Y=vM(k,F);k=ph(k,k.next),Y=ph(Y,Y.next),ly(k,o,u,p,x,A),ly(Y,o,u,p,x,A);return}F=F.next}k=k.next}while(k!==n)}function wY(n,o,u,p){var x=[],A,k,F,Y,j;for(A=0,k=o.length;A=u.next.y&&u.next.y!==u.y){var F=u.x+(x-u.y)*(u.next.x-u.x)/(u.next.y-u.y);if(F<=p&&F>A){if(A=F,F===p){if(x===u.y)return u;if(x===u.next.y)return u.next}k=u.x=u.x&&u.x>=j&&p!==u.x&&Gp(xk.x||u.x===k.x&&SY(k,u)))&&(k=u,ie=ge)),u=u.next;while(u!==Y);return k}function SY(n,o){return An(n.prev,n,o.prev)<0&&An(o.next,n,n.next)<0}function kY(n,o,u,p){var x=n;do x.z===null&&(x.z=m3(x.x,x.y,o,u,p)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next;while(x!==n);x.prevZ.nextZ=null,x.prevZ=null,CY(x)}function CY(n){var o,u,p,x,A,k,F,Y,j=1;do{for(u=n,n=null,A=null,k=0;u;){for(k++,p=u,F=0,o=0;o0||Y>0&&p;)F!==0&&(Y===0||!p||u.z<=p.z)?(x=u,u=u.nextZ,F--):(x=p,p=p.nextZ,Y--),A?A.nextZ=x:n=x,x.prevZ=A,A=x;u=p}A.nextZ=null,j*=2}while(k>1);return n}function m3(n,o,u,p,x){return n=32767*(n-u)*x,o=32767*(o-p)*x,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,n|o<<1}function EY(n){var o=n,u=n;do(o.x=0&&(n-k)*(p-F)-(u-k)*(o-F)>=0&&(u-k)*(A-F)-(x-k)*(p-F)>=0}function LY(n,o){return n.next.i!==o.i&&n.prev.i!==o.i&&!DY(n,o)&&(uy(n,o)&&uy(o,n)&&PY(n,o)&&(An(n.prev,n,o.prev)||An(n,o.prev,o))||M1(n,o)&&An(n.prev,n,n.next)>0&&An(o.prev,o,o.next)>0)}function An(n,o,u){return(o.y-n.y)*(u.x-o.x)-(o.x-n.x)*(u.y-o.y)}function M1(n,o){return n.x===o.x&&n.y===o.y}function hM(n,o,u,p){var x=k1(An(n,o,u)),A=k1(An(n,o,p)),k=k1(An(u,p,n)),F=k1(An(u,p,o));return!!(x!==A&&k!==F||x===0&&S1(n,u,o)||A===0&&S1(n,p,o)||k===0&&S1(u,n,p)||F===0&&S1(u,o,p))}function S1(n,o,u){return o.x<=Math.max(n.x,u.x)&&o.x>=Math.min(n.x,u.x)&&o.y<=Math.max(n.y,u.y)&&o.y>=Math.min(n.y,u.y)}function k1(n){return n>0?1:n<0?-1:0}function DY(n,o){var u=n;do{if(u.i!==n.i&&u.next.i!==n.i&&u.i!==o.i&&u.next.i!==o.i&&hM(u,u.next,n,o))return!0;u=u.next}while(u!==n);return!1}function uy(n,o){return An(n.prev,n,n.next)<0?An(n,o,n.next)>=0&&An(n,n.prev,o)>=0:An(n,o,n.prev)<0||An(n,n.next,o)<0}function PY(n,o){var u=n,p=!1,x=(n.x+o.x)/2,A=(n.y+o.y)/2;do u.y>A!=u.next.y>A&&u.next.y!==u.y&&x<(u.next.x-u.x)*(A-u.y)/(u.next.y-u.y)+u.x&&(p=!p),u=u.next;while(u!==n);return p}function vM(n,o){var u=new y3(n.i,n.x,n.y),p=new y3(o.i,o.x,o.y),x=n.next,A=o.prev;return n.next=o,o.prev=n,u.next=x,x.prev=u,p.next=u,u.prev=p,A.next=p,p.prev=A,p}function dM(n,o,u,p){var x=new y3(n,o,u);return p?(x.next=p.next,x.prev=p,p.next.prev=x,p.next=x):(x.prev=x,x.next=x),x}function fy(n){n.next.prev=n.prev,n.prev.next=n.next,n.prevZ&&(n.prevZ.nextZ=n.nextZ),n.nextZ&&(n.nextZ.prevZ=n.prevZ)}function y3(n,o,u){this.i=n,this.x=o,this.y=u,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}A1.deviation=function(n,o,u,p){var x=o&&o.length,A=x?o[0]*u:n.length,k=Math.abs(g3(n,0,A,u));if(x)for(var F=0,Y=o.length;F0&&(p+=n[x-1].length,u.holes.push(p))}return u},p3.default=yY;function zY(n,o,u,p,x){pM(n,o,u||0,p||n.length-1,x||IY)}function pM(n,o,u,p,x){for(;p>u;){if(p-u>600){var A=p-u+1,k=o-u+1,F=Math.log(A),Y=.5*Math.exp(2*F/3),j=.5*Math.sqrt(F*Y*(A-Y)/A)*(k-A/2<0?-1:1),Q=Math.max(u,Math.floor(o-k*Y/A+j)),ie=Math.min(p,Math.floor(o+(A-k)*Y/A+j));pM(n,o,Q,ie,x)}var ge=n[o],he=u,ke=p;for(cy(n,u,o),x(n[p],ge)>0&&cy(n,u,p);he0;)ke--}x(n[u],ge)===0?cy(n,u,ke):(ke++,cy(n,ke,p)),ke<=o&&(u=ke+1),o<=ke&&(p=ke-1)}}function cy(n,o,u){var p=n[o];n[o]=n[u],n[u]=p}function IY(n,o){return no?1:0}function _3(n,o){var u=n.length;if(u<=1)return[n];for(var p=[],x,A,k=0;k1)for(var Y=0;Y>3}if(p--,u===1||u===2)x+=n.readSVarint(),A+=n.readSVarint(),u===1&&(F&&k.push(F),F=[]),F.push(new v(x,A));else if(u===7)F&&F.push(F[0].clone());else throw new Error("unknown command "+u)}return F&&k.push(F),k},Zp.prototype.bbox=function(){var n=this._pbf;n.pos=this._geometry;for(var o=n.readVarint()+n.pos,u=1,p=0,x=0,A=0,k=1/0,F=-1/0,Y=1/0,j=-1/0;n.pos>3}if(p--,u===1||u===2)x+=n.readSVarint(),A+=n.readSVarint(),xF&&(F=x),Aj&&(j=A);else if(u!==7)throw new Error("unknown command "+u)}return[k,Y,F,j]},Zp.prototype.toGeoJSON=function(n,o,u){var p=this.extent*Math.pow(2,u),x=this.extent*n,A=this.extent*o,k=this.loadGeometry(),F=Zp.types[this.type],Y,j;function Q(he){for(var ke=0;ke>3;o=p===1?n.readString():p===2?n.readFloat():p===3?n.readDouble():p===4?n.readVarint64():p===5?n.readVarint():p===6?n.readSVarint():p===7?n.readBoolean():null}return o}gM.prototype.feature=function(n){if(n<0||n>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[n];var o=this._pbf.readVarint()+this._pbf.pos;return new mM(this._pbf,o,this.extent,this._keys,this._values)};var jY=JY;function JY(n,o){this.layers=n.readFields(KY,{},o)}function KY(n,o,u){if(n===3){var p=new yM(u,u.readVarint()+u.pos);p.length&&(o[p.name]=p)}}var QY=jY,$Y=mM,eW=yM,Yp={VectorTile:QY,VectorTileFeature:$Y,VectorTileLayer:eW},tW=Yp.VectorTileFeature.types,rW=500,w3=Math.pow(2,13);function hy(n,o,u,p,x,A,k,F){n.emplaceBack(o,u,Math.floor(p*w3)*2+k,x*w3*2,A*w3*2,Math.round(F))}var Eu=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new _f,this.indexArray=new Su,this.programConfigurations=new Ar(o.layers,o.zoom),this.segments=new Tn,this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};Eu.prototype.populate=function(o,u,p){this.features=[],this.hasPattern=x3("fill-extrusion",this.layers,u);for(var x=0,A=o;x=1){var St=ut[kt-1];if(!aW(_t,St)){he.vertexLength+4>Tn.MAX_VERTEX_ARRAY_LENGTH&&(he=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var zt=_t.sub(St)._perp()._unit(),jt=St.dist(_t);et+jt>32768&&(et=0),hy(this.layoutVertexArray,_t.x,_t.y,zt.x,zt.y,0,0,et),hy(this.layoutVertexArray,_t.x,_t.y,zt.x,zt.y,0,1,et),et+=jt,hy(this.layoutVertexArray,St.x,St.y,zt.x,zt.y,0,0,et),hy(this.layoutVertexArray,St.x,St.y,zt.x,zt.y,0,1,et);var vr=he.vertexLength;this.indexArray.emplaceBack(vr,vr+2,vr+1),this.indexArray.emplaceBack(vr+1,vr+2,vr+3),he.vertexLength+=4,he.primitiveLength+=2}}}}if(he.vertexLength+j>Tn.MAX_VERTEX_ARRAY_LENGTH&&(he=this.segments.prepareSegment(j,this.layoutVertexArray,this.indexArray)),tW[o.type]==="Polygon"){for(var fr=[],Rr=[],Mr=he.vertexLength,Pr=0,Qr=Y;Prqr)||n.y===o.y&&(n.y<0||n.y>qr)}function iW(n){return n.every(function(o){return o.x<0})||n.every(function(o){return o.x>qr})||n.every(function(o){return o.y<0})||n.every(function(o){return o.y>qr})}var nW=new In({"fill-extrusion-opacity":new wr(Wt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Vr(Wt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new wr(Wt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new wr(Wt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Bi(Wt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Vr(Wt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Vr(Wt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new wr(Wt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),oW={paint:nW},sW=function(n){function o(u){n.call(this,u,oW)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.createBucket=function(p){return new Eu(p)},o.prototype.queryRadius=function(){return el(this.paint.get("fill-extrusion-translate"))},o.prototype.is3D=function(){return!0},o.prototype.queryIntersectsFeature=function(p,x,A,k,F,Y,j,Q){var ie=ku(p,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),Y.angle,j),ge=this.paint.get("fill-extrusion-height").evaluate(x,A),he=this.paint.get("fill-extrusion-base").evaluate(x,A),ke=fW(ie,Q,Y,0),qe=uW(k,he,ge,Q),ut=qe[0],et=qe[1];return lW(ut,et,ke)},o}(mi);function vy(n,o){return n.x*o.x+n.y*o.y}function _M(n,o){if(n.length===1){for(var u=0,p=o[u++],x;!x||p.equals(x);)if(x=o[u++],!x)return 1/0;for(;u=2&&o[j-1].equals(o[j-2]);)j--;for(var Q=0;Q0;if(fr&&kt>Q){var Mr=he.dist(ke);if(Mr>2*ie){var Pr=he.sub(he.sub(ke)._mult(ie/Mr)._round());this.updateDistance(ke,Pr),this.addCurrentVertex(Pr,ut,0,0,ge),ke=Pr}}var Qr=ke&&qe,Fr=Qr?p:Y?"butt":x;if(Qr&&Fr==="round"&&(jtA&&(Fr="bevel"),Fr==="bevel"&&(jt>2&&(Fr="flipbevel"),jt100)_t=et.mult(-1);else{var Nr=jt*ut.add(et).mag()/ut.sub(et).mag();_t._perp()._mult(Nr*(Rr?-1:1))}this.addCurrentVertex(he,_t,0,0,ge),this.addCurrentVertex(he,_t.mult(-1),0,0,ge)}else if(Fr==="bevel"||Fr==="fakeround"){var ya=-Math.sqrt(jt*jt-1),jr=Rr?ya:0,Wa=Rr?0:ya;if(ke&&this.addCurrentVertex(he,ut,jr,Wa,ge),Fr==="fakeround")for(var _i=Math.round(vr*180/Math.PI/gW),Xa=1;Xa<_i;Xa++){var ja=Xa/_i;if(ja!==.5){var Ha=ja-.5,ki=1.0904+St*(-3.2452+St*(3.55645-St*1.43519)),Ii=.848013+St*(-1.06021+St*.215638);ja=ja+ja*Ha*(ja-1)*(ki*Ha*Ha+Ii)}var an=et.sub(ut)._mult(ja)._add(ut)._unit()._mult(Rr?-1:1);this.addHalfVertex(he,an.x,an.y,!1,Rr,0,ge)}qe&&this.addCurrentVertex(he,et,-jr,-Wa,ge)}else if(Fr==="butt")this.addCurrentVertex(he,_t,0,0,ge);else if(Fr==="square"){var cn=ke?1:-1;this.addCurrentVertex(he,_t,cn,cn,ge)}else Fr==="round"&&(ke&&(this.addCurrentVertex(he,ut,0,0,ge),this.addCurrentVertex(he,ut,1,1,ge,!0)),qe&&(this.addCurrentVertex(he,et,-1,-1,ge,!0),this.addCurrentVertex(he,et,0,0,ge)));if(fr&&kt2*ie){var kn=he.add(qe.sub(he)._mult(ie/Zn)._round());this.updateDistance(he,kn),this.addCurrentVertex(kn,et,0,0,ge),he=kn}}}}},zo.prototype.addCurrentVertex=function(o,u,p,x,A,k){k===void 0&&(k=!1);var F=u.x+u.y*p,Y=u.y-u.x*p,j=-u.x+u.y*x,Q=-u.y-u.x*x;this.addHalfVertex(o,F,Y,k,!1,p,A),this.addHalfVertex(o,j,Q,k,!0,-x,A),this.distance>wM/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(o,u,p,x,A,k))},zo.prototype.addHalfVertex=function(o,u,p,x,A,k,F){var Y=o.x,j=o.y,Q=this.lineClips?this.scaledDistance*(wM-1):this.scaledDistance,ie=Q*bM;if(this.layoutVertexArray.emplaceBack((Y<<1)+(x?1:0),(j<<1)+(A?1:0),Math.round(xM*u)+128,Math.round(xM*p)+128,(k===0?0:k<0?-1:1)+1|(ie&63)<<2,ie>>6),this.lineClips){var ge=this.scaledDistance-this.lineClips.start,he=this.lineClips.end-this.lineClips.start,ke=ge/he;this.layoutVertexArray2.emplaceBack(ke,this.lineClipsArray.length)}var qe=F.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,qe),F.primitiveLength++),A?this.e2=qe:this.e1=qe},zo.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},zo.prototype.updateDistance=function(o,u){this.distance+=o.dist(u),this.updateScaledDistance()},y("LineBucket",zo,{omit:["layers","patternFeatures"]});var xW=new In({"line-cap":new wr(Wt.layout_line["line-cap"]),"line-join":new Vr(Wt.layout_line["line-join"]),"line-miter-limit":new wr(Wt.layout_line["line-miter-limit"]),"line-round-limit":new wr(Wt.layout_line["line-round-limit"]),"line-sort-key":new Vr(Wt.layout_line["line-sort-key"])}),bW=new In({"line-opacity":new Vr(Wt.paint_line["line-opacity"]),"line-color":new Vr(Wt.paint_line["line-color"]),"line-translate":new wr(Wt.paint_line["line-translate"]),"line-translate-anchor":new wr(Wt.paint_line["line-translate-anchor"]),"line-width":new Vr(Wt.paint_line["line-width"]),"line-gap-width":new Vr(Wt.paint_line["line-gap-width"]),"line-offset":new Vr(Wt.paint_line["line-offset"]),"line-blur":new Vr(Wt.paint_line["line-blur"]),"line-dasharray":new Mi(Wt.paint_line["line-dasharray"]),"line-pattern":new Bi(Wt.paint_line["line-pattern"]),"line-gradient":new lo(Wt.paint_line["line-gradient"])}),TM={paint:bW,layout:xW},wW=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.possiblyEvaluate=function(p,x){return x=new Xt(Math.floor(x.zoom),{now:x.now,fadeDuration:x.fadeDuration,zoomHistory:x.zoomHistory,transition:x.transition}),n.prototype.possiblyEvaluate.call(this,p,x)},o.prototype.evaluate=function(p,x,A,k){return x=H({},x,{zoom:Math.floor(x.zoom)}),n.prototype.evaluate.call(this,p,x,A,k)},o}(Vr),AM=new wW(TM.paint.properties["line-width"].specification);AM.useIntegerZoom=!0;var TW=function(n){function o(u){n.call(this,u,TM),this.gradientVersion=0}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._handleSpecialPaintPropertyUpdate=function(p){if(p==="line-gradient"){var x=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=x._styleExpression.expression instanceof Ts,this.gradientVersion=(this.gradientVersion+1)%S}},o.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},o.prototype.recalculate=function(p,x){n.prototype.recalculate.call(this,p,x),this.paint._values["line-floorwidth"]=AM.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,p)},o.prototype.createBucket=function(p){return new zo(p)},o.prototype.queryRadius=function(p){var x=p,A=MM(Po("line-width",this,x),Po("line-gap-width",this,x)),k=Po("line-offset",this,x);return A/2+Math.abs(k)+el(this.paint.get("line-translate"))},o.prototype.queryIntersectsFeature=function(p,x,A,k,F,Y,j){var Q=ku(p,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Y.angle,j),ie=j/2*MM(this.paint.get("line-width").evaluate(x,A),this.paint.get("line-gap-width").evaluate(x,A)),ge=this.paint.get("line-offset").evaluate(x,A);return ge&&(k=AW(k,ge*j)),Rn(Q,k,ie)},o.prototype.isTileClipped=function(){return!0},o}(mi);function MM(n,o){return o>0?o+2*n:n}function AW(n,o){for(var u=[],p=new v(0,0),x=0;x":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function PW(n){for(var o="",u=0;u>1,Q=-7,ie=u?x-1:0,ge=u?-1:1,he=n[o+ie];for(ie+=ge,A=he&(1<<-Q)-1,he>>=-Q,Q+=F;Q>0;A=A*256+n[o+ie],ie+=ge,Q-=8);for(k=A&(1<<-Q)-1,A>>=-Q,Q+=p;Q>0;k=k*256+n[o+ie],ie+=ge,Q-=8);if(A===0)A=1-j;else{if(A===Y)return k?NaN:(he?-1:1)*(1/0);k=k+Math.pow(2,p),A=A-j}return(he?-1:1)*k*Math.pow(2,A-p)},IW=function(n,o,u,p,x,A){var k,F,Y,j=A*8-x-1,Q=(1<>1,ge=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,he=p?0:A-1,ke=p?1:-1,qe=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(F=isNaN(o)?1:0,k=Q):(k=Math.floor(Math.log(o)/Math.LN2),o*(Y=Math.pow(2,-k))<1&&(k--,Y*=2),k+ie>=1?o+=ge/Y:o+=ge*Math.pow(2,1-ie),o*Y>=2&&(k++,Y/=2),k+ie>=Q?(F=0,k=Q):k+ie>=1?(F=(o*Y-1)*Math.pow(2,x),k=k+ie):(F=o*Math.pow(2,ie-1)*Math.pow(2,x),k=0));x>=8;n[u+he]=F&255,he+=ke,F/=256,x-=8);for(k=k<0;n[u+he]=k&255,he+=ke,k/=256,j-=8);n[u+he-ke]|=qe*128},C1={read:zW,write:IW},E1=zi;function zi(n){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(n)?n:new Uint8Array(n||0),this.pos=0,this.type=0,this.length=this.buf.length}zi.Varint=0,zi.Fixed64=1,zi.Bytes=2,zi.Fixed32=5;var T3=65536*65536,kM=1/T3,RW=12,CM=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");zi.prototype={destroy:function(){this.buf=null},readFields:function(n,o,u){for(u=u||this.length;this.pos>3,A=this.pos;this.type=p&7,n(x,o,this),this.pos===A&&this.skip(p)}return o},readMessage:function(n,o){return this.readFields(n,o,this.readVarint()+this.pos)},readFixed32:function(){var n=L1(this.buf,this.pos);return this.pos+=4,n},readSFixed32:function(){var n=LM(this.buf,this.pos);return this.pos+=4,n},readFixed64:function(){var n=L1(this.buf,this.pos)+L1(this.buf,this.pos+4)*T3;return this.pos+=8,n},readSFixed64:function(){var n=L1(this.buf,this.pos)+LM(this.buf,this.pos+4)*T3;return this.pos+=8,n},readFloat:function(){var n=C1.read(this.buf,this.pos,!0,23,4);return this.pos+=4,n},readDouble:function(){var n=C1.read(this.buf,this.pos,!0,52,8);return this.pos+=8,n},readVarint:function(n){var o=this.buf,u,p;return p=o[this.pos++],u=p&127,p<128||(p=o[this.pos++],u|=(p&127)<<7,p<128)||(p=o[this.pos++],u|=(p&127)<<14,p<128)||(p=o[this.pos++],u|=(p&127)<<21,p<128)?u:(p=o[this.pos],u|=(p&15)<<28,FW(u,n,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var n=this.readVarint();return n%2===1?(n+1)/-2:n/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var n=this.readVarint()+this.pos,o=this.pos;return this.pos=n,n-o>=RW&&CM?JW(this.buf,o,n):jW(this.buf,o,n)},readBytes:function(){var n=this.readVarint()+this.pos,o=this.buf.subarray(this.pos,n);return this.pos=n,o},readPackedVarint:function(n,o){if(this.type!==zi.Bytes)return n.push(this.readVarint(o));var u=sc(this);for(n=n||[];this.pos127;);else if(o===zi.Bytes)this.pos=this.readVarint()+this.pos;else if(o===zi.Fixed32)this.pos+=4;else if(o===zi.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+o)},writeTag:function(n,o){this.writeVarint(n<<3|o)},realloc:function(n){for(var o=this.length||16;o268435455||n<0){qW(n,this);return}this.realloc(4),this.buf[this.pos++]=n&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=n>>>7&127)))},writeSVarint:function(n){this.writeVarint(n<0?-n*2-1:n*2)},writeBoolean:function(n){this.writeVarint(!!n)},writeString:function(n){n=String(n),this.realloc(n.length*4),this.pos++;var o=this.pos;this.pos=KW(this.buf,n,this.pos);var u=this.pos-o;u>=128&&EM(o,u,this),this.pos=o-1,this.writeVarint(u),this.pos+=u},writeFloat:function(n){this.realloc(4),C1.write(this.buf,n,this.pos,!0,23,4),this.pos+=4},writeDouble:function(n){this.realloc(8),C1.write(this.buf,n,this.pos,!0,52,8),this.pos+=8},writeBytes:function(n){var o=n.length;this.writeVarint(o),this.realloc(o);for(var u=0;u=128&&EM(u,p,this),this.pos=u-1,this.writeVarint(p),this.pos+=p},writeMessage:function(n,o,u){this.writeTag(n,zi.Bytes),this.writeRawMessage(o,u)},writePackedVarint:function(n,o){o.length&&this.writeMessage(n,OW,o)},writePackedSVarint:function(n,o){o.length&&this.writeMessage(n,UW,o)},writePackedBoolean:function(n,o){o.length&&this.writeMessage(n,GW,o)},writePackedFloat:function(n,o){o.length&&this.writeMessage(n,VW,o)},writePackedDouble:function(n,o){o.length&&this.writeMessage(n,HW,o)},writePackedFixed32:function(n,o){o.length&&this.writeMessage(n,ZW,o)},writePackedSFixed32:function(n,o){o.length&&this.writeMessage(n,YW,o)},writePackedFixed64:function(n,o){o.length&&this.writeMessage(n,WW,o)},writePackedSFixed64:function(n,o){o.length&&this.writeMessage(n,XW,o)},writeBytesField:function(n,o){this.writeTag(n,zi.Bytes),this.writeBytes(o)},writeFixed32Field:function(n,o){this.writeTag(n,zi.Fixed32),this.writeFixed32(o)},writeSFixed32Field:function(n,o){this.writeTag(n,zi.Fixed32),this.writeSFixed32(o)},writeFixed64Field:function(n,o){this.writeTag(n,zi.Fixed64),this.writeFixed64(o)},writeSFixed64Field:function(n,o){this.writeTag(n,zi.Fixed64),this.writeSFixed64(o)},writeVarintField:function(n,o){this.writeTag(n,zi.Varint),this.writeVarint(o)},writeSVarintField:function(n,o){this.writeTag(n,zi.Varint),this.writeSVarint(o)},writeStringField:function(n,o){this.writeTag(n,zi.Bytes),this.writeString(o)},writeFloatField:function(n,o){this.writeTag(n,zi.Fixed32),this.writeFloat(o)},writeDoubleField:function(n,o){this.writeTag(n,zi.Fixed64),this.writeDouble(o)},writeBooleanField:function(n,o){this.writeVarintField(n,!!o)}};function FW(n,o,u){var p=u.buf,x,A;if(A=p[u.pos++],x=(A&112)>>4,A<128||(A=p[u.pos++],x|=(A&127)<<3,A<128)||(A=p[u.pos++],x|=(A&127)<<10,A<128)||(A=p[u.pos++],x|=(A&127)<<17,A<128)||(A=p[u.pos++],x|=(A&127)<<24,A<128)||(A=p[u.pos++],x|=(A&1)<<31,A<128))return Wp(n,x,o);throw new Error("Expected varint not more than 10 bytes")}function sc(n){return n.type===zi.Bytes?n.readVarint()+n.pos:n.pos+1}function Wp(n,o,u){return u?o*4294967296+(n>>>0):(o>>>0)*4294967296+(n>>>0)}function qW(n,o){var u,p;if(n>=0?(u=n%4294967296|0,p=n/4294967296|0):(u=~(-n%4294967296),p=~(-n/4294967296),u^4294967295?u=u+1|0:(u=0,p=p+1|0)),n>=18446744073709552e3||n<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");o.realloc(10),NW(u,p,o),BW(p,o)}function NW(n,o,u){u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos]=n&127}function BW(n,o){var u=(n&7)<<4;o.buf[o.pos++]|=u|((n>>>=3)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127)))))}function EM(n,o,u){var p=o<=16383?1:o<=2097151?2:o<=268435455?3:Math.floor(Math.log(o)/(Math.LN2*7));u.realloc(p);for(var x=u.pos-1;x>=n;x--)u.buf[x+p]=u.buf[x]}function OW(n,o){for(var u=0;u>>8,n[u+2]=o>>>16,n[u+3]=o>>>24}function LM(n,o){return(n[o]|n[o+1]<<8|n[o+2]<<16)+(n[o+3]<<24)}function jW(n,o,u){for(var p="",x=o;x239?4:A>223?3:A>191?2:1;if(x+F>u)break;var Y,j,Q;F===1?A<128&&(k=A):F===2?(Y=n[x+1],(Y&192)===128&&(k=(A&31)<<6|Y&63,k<=127&&(k=null))):F===3?(Y=n[x+1],j=n[x+2],(Y&192)===128&&(j&192)===128&&(k=(A&15)<<12|(Y&63)<<6|j&63,(k<=2047||k>=55296&&k<=57343)&&(k=null))):F===4&&(Y=n[x+1],j=n[x+2],Q=n[x+3],(Y&192)===128&&(j&192)===128&&(Q&192)===128&&(k=(A&15)<<18|(Y&63)<<12|(j&63)<<6|Q&63,(k<=65535||k>=1114112)&&(k=null))),k===null?(k=65533,F=1):k>65535&&(k-=65536,p+=String.fromCharCode(k>>>10&1023|55296),k=56320|k&1023),p+=String.fromCharCode(k),x+=F}return p}function JW(n,o,u){return CM.decode(n.subarray(o,u))}function KW(n,o,u){for(var p=0,x,A;p55295&&x<57344)if(A)if(x<56320){n[u++]=239,n[u++]=191,n[u++]=189,A=x;continue}else x=A-55296<<10|x-56320|65536,A=null;else{x>56319||p+1===o.length?(n[u++]=239,n[u++]=191,n[u++]=189):A=x;continue}else A&&(n[u++]=239,n[u++]=191,n[u++]=189,A=null);x<128?n[u++]=x:(x<2048?n[u++]=x>>6|192:(x<65536?n[u++]=x>>12|224:(n[u++]=x>>18|240,n[u++]=x>>12&63|128),n[u++]=x>>6&63|128),n[u++]=x&63|128)}return u}var A3=3;function QW(n,o,u){n===1&&u.readMessage($W,o)}function $W(n,o,u){if(n===3){var p=u.readMessage(eX,{}),x=p.id,A=p.bitmap,k=p.width,F=p.height,Y=p.left,j=p.top,Q=p.advance;o.push({id:x,bitmap:new jv({width:k+2*A3,height:F+2*A3},A),metrics:{width:k,height:F,left:Y,top:j,advance:Q}})}}function eX(n,o,u){n===1?o.id=u.readVarint():n===2?o.bitmap=u.readBytes():n===3?o.width=u.readVarint():n===4?o.height=u.readVarint():n===5?o.left=u.readSVarint():n===6?o.top=u.readSVarint():n===7&&(o.advance=u.readVarint())}function tX(n){return new E1(n).readFields(QW,[])}var DM=A3;function PM(n){for(var o=0,u=0,p=0,x=n;p=0;he--){var ke=F[he];if(!(ge.w>ke.w||ge.h>ke.h)){if(ge.x=ke.x,ge.y=ke.y,j=Math.max(j,ge.y+ge.h),Y=Math.max(Y,ge.x+ge.w),ge.w===ke.w&&ge.h===ke.h){var qe=F.pop();he=0&&x>=o&&wf[this.text.charCodeAt(x)];x--)p--;this.text=this.text.substring(o,p),this.sectionIndex=this.sectionIndex.slice(o,p)},bo.prototype.substring=function(o,u){var p=new bo;return p.text=this.text.substring(o,u),p.sectionIndex=this.sectionIndex.slice(o,u),p.sections=this.sections,p},bo.prototype.toString=function(){return this.text},bo.prototype.getMaxScale=function(){var o=this;return this.sectionIndex.reduce(function(u,p){return Math.max(u,o.sections[p].scale)},0)},bo.prototype.addTextSection=function(o,u){this.text+=o.text,this.sections.push(jp.forText(o.scale,o.fontStack||u));for(var p=this.sections.length-1,x=0;x=IM?null:++this.imageSectionID:(this.imageSectionID=zM,this.imageSectionID)};function aX(n,o){for(var u=[],p=n.text,x=0,A=0,k=o;A=0,Q=0,ie=0;ie0&&kn>Rr&&(Rr=kn)}else{var ja=u[Pr.fontStack],Ha=ja&&ja[Fr];if(Ha&&Ha.rect)jr=Ha.rect,ya=Ha.metrics;else{var ki=o[Pr.fontStack],Ii=ki&&ki[Fr];if(!Ii)continue;ya=Ii.metrics}Nr=(zt-Pr.scale)*Qn}Xa?(n.verticalizable=!0,fr.push({glyph:Fr,imageName:Wa,x:ge,y:he+Nr,vertical:Xa,scale:Pr.scale,fontStack:Pr.fontStack,sectionIndex:Qr,metrics:ya,rect:jr}),ge+=_i*Pr.scale+j):(fr.push({glyph:Fr,imageName:Wa,x:ge,y:he+Nr,vertical:Xa,scale:Pr.scale,fontStack:Pr.fontStack,sectionIndex:Qr,metrics:ya,rect:jr}),ge+=ya.advance*Pr.scale+j)}if(fr.length!==0){var wo=ge-j;ke=Math.max(wo,ke),sX(fr,0,fr.length-1,ut,Rr)}ge=0;var To=A*zt+Rr;vr.lineOffset=Math.max(Rr,jt),he+=To,qe=Math.max(To,qe),++et}var Yn=he-yy,Io=S3(k),Ro=Io.horizontalAlign,Fn=Io.verticalAlign;lX(n.positionedLines,ut,Ro,Fn,ke,qe,A,Yn,x.length),n.top+=-Fn*Yn,n.bottom=n.top+Yn,n.left+=-Ro*ke,n.right=n.left+ke}function sX(n,o,u,p,x){if(!(!p&&!x))for(var A=n[u],k=A.metrics.advance*A.scale,F=(n[u].x+k)*p,Y=o;Y<=u;Y++)n[Y].x-=F,n[Y].y+=x}function lX(n,o,u,p,x,A,k,F,Y){var j=(o-u)*x,Q=0;A!==k?Q=-F*p-yy:Q=(-p*Y+.5)*k;for(var ie=0,ge=n;ie-u/2;){if(k--,k<0)return!1;F-=n[k].dist(A),A=n[k]}F+=n[k].dist(n[k+1]),k++;for(var Y=[],j=0;Fp;)j-=Y.shift().angleDelta;if(j>x)return!1;k++,F+=ie.dist(ge)}return!0}function HM(n){for(var o=0,u=0;uj){var ke=(j-Y)/he,qe=dn(ie.x,ge.x,ke),ut=dn(ie.y,ge.y,ke),et=new Jp(qe,ut,ge.angleTo(ie),Q);return et._round(),!k||VM(n,et,F,k,o)?et:void 0}Y+=he}}function hX(n,o,u,p,x,A,k,F,Y){var j=GM(p,A,k),Q=ZM(p,x),ie=Q*k,ge=n[0].x===0||n[0].x===Y||n[0].y===0||n[0].y===Y;o-ie=0&&St=0&&zt=0&&ge+j<=Q){var jt=new Jp(St,zt,kt,ke);jt._round(),(!p||VM(n,jt,A,p,x))&&he.push(jt)}}ie+=et}return!F&&!he.length&&!k&&(he=YM(n,ie/2,u,p,x,A,k,!0,Y)),he}function WM(n,o,u,p,x){for(var A=[],k=0;k=p&&ie.x>=p)&&(Q.x>=p?Q=new v(p,Q.y+(ie.y-Q.y)*((p-Q.x)/(ie.x-Q.x)))._round():ie.x>=p&&(ie=new v(p,Q.y+(ie.y-Q.y)*((p-Q.x)/(ie.x-Q.x)))._round()),!(Q.y>=x&&ie.y>=x)&&(Q.y>=x?Q=new v(Q.x+(ie.x-Q.x)*((x-Q.y)/(ie.y-Q.y)),x)._round():ie.y>=x&&(ie=new v(Q.x+(ie.x-Q.x)*((x-Q.y)/(ie.y-Q.y)),x)._round()),(!Y||!Q.equals(Y[Y.length-1]))&&(Y=[Q],A.push(Y)),Y.push(ie)))))}return A}var Kp=ds;function XM(n,o,u,p){var x=[],A=n.image,k=A.pixelRatio,F=A.paddedRect.w-2*Kp,Y=A.paddedRect.h-2*Kp,j=n.right-n.left,Q=n.bottom-n.top,ie=A.stretchX||[[0,F]],ge=A.stretchY||[[0,Y]],he=function(ja,Ha){return ja+Ha[1]-Ha[0]},ke=ie.reduce(he,0),qe=ge.reduce(he,0),ut=F-ke,et=Y-qe,kt=0,_t=ke,St=0,zt=qe,jt=0,vr=ut,fr=0,Rr=et;if(A.content&&p){var Mr=A.content;kt=z1(ie,0,Mr[0]),St=z1(ge,0,Mr[1]),_t=z1(ie,Mr[0],Mr[2]),zt=z1(ge,Mr[1],Mr[3]),jt=Mr[0]-kt,fr=Mr[1]-St,vr=Mr[2]-Mr[0]-_t,Rr=Mr[3]-Mr[1]-zt}var Pr=function(ja,Ha,ki,Ii){var an=I1(ja.stretch-kt,_t,j,n.left),cn=R1(ja.fixed-jt,vr,ja.stretch,ke),Zn=I1(Ha.stretch-St,zt,Q,n.top),kn=R1(Ha.fixed-fr,Rr,Ha.stretch,qe),wo=I1(ki.stretch-kt,_t,j,n.left),To=R1(ki.fixed-jt,vr,ki.stretch,ke),Yn=I1(Ii.stretch-St,zt,Q,n.top),Io=R1(Ii.fixed-fr,Rr,Ii.stretch,qe),Ro=new v(an,Zn),Fn=new v(wo,Zn),Fo=new v(wo,Yn),zs=new v(an,Yn),fc=new v(cn/k,kn/k),gh=new v(To/k,Io/k),_h=o*Math.PI/180;if(_h){var xh=Math.sin(_h),n0=Math.cos(_h),Hl=[n0,-xh,xh,n0];Ro._matMult(Hl),Fn._matMult(Hl),zs._matMult(Hl),Fo._matMult(Hl)}var U1=ja.stretch+ja.fixed,R3=ki.stretch+ki.fixed,V1=Ha.stretch+Ha.fixed,F3=Ii.stretch+Ii.fixed,rl={x:A.paddedRect.x+Kp+U1,y:A.paddedRect.y+Kp+V1,w:R3-U1,h:F3-V1},o0=vr/k/j,H1=Rr/k/Q;return{tl:Ro,tr:Fn,bl:zs,br:Fo,tex:rl,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:fc,pixelOffsetBR:gh,minFontScaleX:o0,minFontScaleY:H1,isSDF:u}};if(!p||!A.stretchX&&!A.stretchY)x.push(Pr({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:F+1},{fixed:0,stretch:Y+1}));else for(var Qr=jM(ie,ut,ke),Fr=jM(ge,et,qe),Nr=0;Nr0&&(ke=Math.max(10,ke),this.circleDiameter=ke)}else{var qe=k.top*F-Y,ut=k.bottom*F+Y,et=k.left*F-Y,kt=k.right*F+Y,_t=k.collisionPadding;if(_t&&(et-=_t[0]*F,qe-=_t[1]*F,kt+=_t[2]*F,ut+=_t[3]*F),Q){var St=new v(et,qe),zt=new v(kt,qe),jt=new v(et,ut),vr=new v(kt,ut),fr=Q*Math.PI/180;St._rotate(fr),zt._rotate(fr),jt._rotate(fr),vr._rotate(fr),et=Math.min(St.x,zt.x,jt.x,vr.x),kt=Math.max(St.x,zt.x,jt.x,vr.x),qe=Math.min(St.y,zt.y,jt.y,vr.y),ut=Math.max(St.y,zt.y,jt.y,vr.y)}o.emplaceBack(u.x,u.y,et,qe,kt,ut,p,x,A)}this.boxEndIndex=o.length},Qp=function(o,u){if(o===void 0&&(o=[]),u===void 0&&(u=dX),this.data=o,this.length=this.data.length,this.compare=u,this.length>0)for(var p=(this.length>>1)-1;p>=0;p--)this._down(p)};Qp.prototype.push=function(o){this.data.push(o),this.length++,this._up(this.length-1)},Qp.prototype.pop=function(){if(this.length!==0){var o=this.data[0],u=this.data.pop();return this.length--,this.length>0&&(this.data[0]=u,this._down(0)),o}},Qp.prototype.peek=function(){return this.data[0]},Qp.prototype._up=function(o){for(var u=this,p=u.data,x=u.compare,A=p[o];o>0;){var k=o-1>>1,F=p[k];if(x(A,F)>=0)break;p[o]=F,o=k}p[o]=A},Qp.prototype._down=function(o){for(var u=this,p=u.data,x=u.compare,A=this.length>>1,k=p[o];o=0)break;p[o]=Y,o=F}p[o]=k};function dX(n,o){return no?1:0}function pX(n,o,u){o===void 0&&(o=1),u===void 0&&(u=!1);for(var p=1/0,x=1/0,A=-1/0,k=-1/0,F=n[0],Y=0;YA)&&(A=j.x),(!Y||j.y>k)&&(k=j.y)}var Q=A-p,ie=k-x,ge=Math.min(Q,ie),he=ge/2,ke=new Qp([],mX);if(ge===0)return new v(p,x);for(var qe=p;qeet.d||!et.d)&&(et=_t,u&&console.log("found best %d after %d probes",Math.round(1e4*_t.d)/1e4,kt)),!(_t.max-et.d<=o)&&(he=_t.h/2,ke.push(new $p(_t.p.x-he,_t.p.y-he,he,n)),ke.push(new $p(_t.p.x+he,_t.p.y-he,he,n)),ke.push(new $p(_t.p.x-he,_t.p.y+he,he,n)),ke.push(new $p(_t.p.x+he,_t.p.y+he,he,n)),kt+=4)}return u&&(console.log("num probes: "+kt),console.log("best distance: "+et.d)),et.p}function mX(n,o){return o.max-n.max}function $p(n,o,u,p){this.p=new v(n,o),this.h=u,this.d=yX(this.p,p),this.max=this.d+this.h*Math.SQRT2}function yX(n,o){for(var u=!1,p=1/0,x=0;xn.y!=Q.y>n.y&&n.x<(Q.x-j.x)*(n.y-j.y)/(Q.y-j.y)+j.x&&(u=!u),p=Math.min(p,oc(n,j,Q))}return(u?1:-1)*Math.sqrt(p)}function gX(n){for(var o=0,u=0,p=0,x=n[0],A=0,k=x.length,F=k-1;A=qr||Hl.y<0||Hl.y>=qr||bX(n,Hl,n0,u,p,x,Fr,n.layers[0],n.collisionBoxArray,o.index,o.sourceLayerIndex,n.index,et,zt,fr,Y,_t,jt,Rr,he,o,A,j,Q,k)};if(Mr==="line")for(var ya=0,jr=WM(o.geometry,0,0,qr,qr);ya1){var Zn=cX(cn,vr,u.vertical||ke,p,qe,kt);Zn&&Nr(cn,Zn)}}else if(o.type==="Polygon")for(var kn=0,wo=_3(o.geometry,0);knmh&&Ce(n.layerIds[0]+': Value for "text-size" is >= '+gy+'. Reduce your "text-size".')):ut.kind==="composite"&&(et=[Lu*he.compositeTextSizes[0].evaluate(k,{},ke),Lu*he.compositeTextSizes[1].evaluate(k,{},ke)],(et[0]>mh||et[1]>mh)&&Ce(n.layerIds[0]+': Value for "text-size" is >= '+gy+'. Reduce your "text-size".')),n.addSymbols(n.text,qe,et,F,A,k,j,o,Y.lineStartIndex,Y.lineLength,ge,ke);for(var kt=0,_t=Q;kt<_t.length;kt+=1){var St=_t[kt];ie[St]=n.text.placedSymbolArray.length-1}return qe.length*4}function QM(n){for(var o in n)return n[o];return null}function bX(n,o,u,p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t,St,zt,jt,vr,fr){var Rr,Mr=n.addToLineVertexArray(o,u),Pr,Qr,Fr,Nr,ya=0,jr=0,Wa=0,_i=0,Xa=-1,ja=-1,Ha={},ki=w(""),Ii=0,an=0;if(F._unevaluatedLayout.getValue("text-radial-offset")===void 0?(Rr=F.layout.get("text-offset").evaluate(St,{},vr).map(function(by){return by*Qn}),Ii=Rr[0],an=Rr[1]):(Ii=F.layout.get("text-radial-offset").evaluate(St,{},vr)*Qn,an=C3),n.allowVerticalPlacement&&p.vertical){var cn=F.layout.get("text-rotate").evaluate(St,{},vr),Zn=cn+90,kn=p.vertical;Fr=new F1(Y,o,j,Q,ie,kn,ge,he,ke,Zn),k&&(Nr=new F1(Y,o,j,Q,ie,k,ut,et,ke,Zn))}if(x){var wo=F.layout.get("icon-rotate").evaluate(St,{}),To=F.layout.get("icon-text-fit")!=="none",Yn=XM(x,wo,jt,To),Io=k?XM(k,wo,jt,To):void 0;Qr=new F1(Y,o,j,Q,ie,x,ut,et,!1,wo),ya=Yn.length*4;var Ro=n.iconSizeData,Fn=null;Ro.kind==="source"?(Fn=[Lu*F.layout.get("icon-size").evaluate(St,{})],Fn[0]>mh&&Ce(n.layerIds[0]+': Value for "icon-size" is >= '+gy+'. Reduce your "icon-size".')):Ro.kind==="composite"&&(Fn=[Lu*zt.compositeIconSizes[0].evaluate(St,{},vr),Lu*zt.compositeIconSizes[1].evaluate(St,{},vr)],(Fn[0]>mh||Fn[1]>mh)&&Ce(n.layerIds[0]+': Value for "icon-size" is >= '+gy+'. Reduce your "icon-size".')),n.addSymbols(n.icon,Yn,Fn,_t,kt,St,!1,o,Mr.lineStartIndex,Mr.lineLength,-1,vr),Xa=n.icon.placedSymbolArray.length-1,Io&&(jr=Io.length*4,n.addSymbols(n.icon,Io,Fn,_t,kt,St,Ps.vertical,o,Mr.lineStartIndex,Mr.lineLength,-1,vr),ja=n.icon.placedSymbolArray.length-1)}for(var Fo in p.horizontal){var zs=p.horizontal[Fo];if(!Pr){ki=w(zs.text);var fc=F.layout.get("text-rotate").evaluate(St,{},vr);Pr=new F1(Y,o,j,Q,ie,zs,ge,he,ke,fc)}var gh=zs.positionedLines.length===1;if(Wa+=KM(n,o,zs,A,F,ke,St,qe,Mr,p.vertical?Ps.horizontal:Ps.horizontalOnly,gh?Object.keys(p.horizontal):[Fo],Ha,Xa,zt,vr),gh)break}p.vertical&&(_i+=KM(n,o,p.vertical,A,F,ke,St,qe,Mr,Ps.vertical,["vertical"],Ha,ja,zt,vr));var _h=Pr?Pr.boxStartIndex:n.collisionBoxArray.length,xh=Pr?Pr.boxEndIndex:n.collisionBoxArray.length,n0=Fr?Fr.boxStartIndex:n.collisionBoxArray.length,Hl=Fr?Fr.boxEndIndex:n.collisionBoxArray.length,U1=Qr?Qr.boxStartIndex:n.collisionBoxArray.length,R3=Qr?Qr.boxEndIndex:n.collisionBoxArray.length,V1=Nr?Nr.boxStartIndex:n.collisionBoxArray.length,F3=Nr?Nr.boxEndIndex:n.collisionBoxArray.length,rl=-1,o0=function(by,d7){return by&&by.circleDiameter?Math.max(by.circleDiameter,d7):d7};rl=o0(Pr,rl),rl=o0(Fr,rl),rl=o0(Qr,rl),rl=o0(Nr,rl);var H1=rl>-1?1:0;H1&&(rl*=fr/Qn),n.glyphOffsetArray.length>=gi.MAX_GLYPHS&&Ce("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),St.sortKey!==void 0&&n.addToSortKeyRanges(n.symbolInstances.length,St.sortKey),n.symbolInstances.emplaceBack(o.x,o.y,Ha.right>=0?Ha.right:-1,Ha.center>=0?Ha.center:-1,Ha.left>=0?Ha.left:-1,Ha.vertical||-1,Xa,ja,ki,_h,xh,n0,Hl,U1,R3,V1,F3,j,Wa,_i,ya,jr,H1,0,ge,Ii,an,rl)}function wX(n,o,u,p){var x=n.compareText;if(!(o in x))x[o]=[];else for(var A=x[o],k=A.length-1;k>=0;k--)if(p.dist(A[k])0)&&(k.value.kind!=="constant"||k.value.value.length>0),Q=Y.value.kind!=="constant"||!!Y.value.value||Object.keys(Y.parameters).length>0,ie=A.get("symbol-sort-key");if(this.features=[],!(!j&&!Q)){for(var ge=u.iconDependencies,he=u.glyphDependencies,ke=u.availableImages,qe=new Xt(this.zoom),ut=0,et=o;ut=0;for(var _i=0,Xa=Rr.sections;_i=0;Y--)k[Y]={x:u[Y].x,y:u[Y].y,tileUnitDistanceFromAnchor:A},Y>0&&(A+=u[Y-1].dist(u[Y]));for(var j=0;j0},gi.prototype.hasIconData=function(){return this.icon.segments.get().length>0},gi.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},gi.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},gi.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},gi.prototype.addIndicesForPlacedSymbol=function(o,u){for(var p=o.placedSymbolArray.get(u),x=p.vertexStartIndex+p.numGlyphs*4,A=p.vertexStartIndex;A1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(o),this.sortedAngle=o,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var p=0,x=this.symbolInstanceIndexes;p=0&&j.indexOf(F)===Y&&u.addIndicesForPlacedSymbol(u.text,F)}),k.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,k.verticalPlacedTextSymbolIndex),k.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,k.placedIconSymbolIndex),k.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,k.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},y("SymbolBucket",gi,{omit:["layers","collisionBoxArray","features","compareText"]}),gi.MAX_GLYPHS=65535,gi.addDynamicAttributes=L3;function SX(n,o){return o.replace(/{([^{}]+)}/g,function(u,p){return p in n?String(n[p]):""})}var kX=new In({"symbol-placement":new wr(Wt.layout_symbol["symbol-placement"]),"symbol-spacing":new wr(Wt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new wr(Wt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Vr(Wt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new wr(Wt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new wr(Wt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new wr(Wt.layout_symbol["icon-ignore-placement"]),"icon-optional":new wr(Wt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new wr(Wt.layout_symbol["icon-rotation-alignment"]),"icon-size":new Vr(Wt.layout_symbol["icon-size"]),"icon-text-fit":new wr(Wt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new wr(Wt.layout_symbol["icon-text-fit-padding"]),"icon-image":new Vr(Wt.layout_symbol["icon-image"]),"icon-rotate":new Vr(Wt.layout_symbol["icon-rotate"]),"icon-padding":new wr(Wt.layout_symbol["icon-padding"]),"icon-keep-upright":new wr(Wt.layout_symbol["icon-keep-upright"]),"icon-offset":new Vr(Wt.layout_symbol["icon-offset"]),"icon-anchor":new Vr(Wt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new wr(Wt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new wr(Wt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new wr(Wt.layout_symbol["text-rotation-alignment"]),"text-field":new Vr(Wt.layout_symbol["text-field"]),"text-font":new Vr(Wt.layout_symbol["text-font"]),"text-size":new Vr(Wt.layout_symbol["text-size"]),"text-max-width":new Vr(Wt.layout_symbol["text-max-width"]),"text-line-height":new wr(Wt.layout_symbol["text-line-height"]),"text-letter-spacing":new Vr(Wt.layout_symbol["text-letter-spacing"]),"text-justify":new Vr(Wt.layout_symbol["text-justify"]),"text-radial-offset":new Vr(Wt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new wr(Wt.layout_symbol["text-variable-anchor"]),"text-anchor":new Vr(Wt.layout_symbol["text-anchor"]),"text-max-angle":new wr(Wt.layout_symbol["text-max-angle"]),"text-writing-mode":new wr(Wt.layout_symbol["text-writing-mode"]),"text-rotate":new Vr(Wt.layout_symbol["text-rotate"]),"text-padding":new wr(Wt.layout_symbol["text-padding"]),"text-keep-upright":new wr(Wt.layout_symbol["text-keep-upright"]),"text-transform":new Vr(Wt.layout_symbol["text-transform"]),"text-offset":new Vr(Wt.layout_symbol["text-offset"]),"text-allow-overlap":new wr(Wt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new wr(Wt.layout_symbol["text-ignore-placement"]),"text-optional":new wr(Wt.layout_symbol["text-optional"])}),CX=new In({"icon-opacity":new Vr(Wt.paint_symbol["icon-opacity"]),"icon-color":new Vr(Wt.paint_symbol["icon-color"]),"icon-halo-color":new Vr(Wt.paint_symbol["icon-halo-color"]),"icon-halo-width":new Vr(Wt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Vr(Wt.paint_symbol["icon-halo-blur"]),"icon-translate":new wr(Wt.paint_symbol["icon-translate"]),"icon-translate-anchor":new wr(Wt.paint_symbol["icon-translate-anchor"]),"text-opacity":new Vr(Wt.paint_symbol["text-opacity"]),"text-color":new Vr(Wt.paint_symbol["text-color"],{runtimeType:bs,getOverride:function(n){return n.textColor},hasOverride:function(n){return!!n.textColor}}),"text-halo-color":new Vr(Wt.paint_symbol["text-halo-color"]),"text-halo-width":new Vr(Wt.paint_symbol["text-halo-width"]),"text-halo-blur":new Vr(Wt.paint_symbol["text-halo-blur"]),"text-translate":new wr(Wt.paint_symbol["text-translate"]),"text-translate-anchor":new wr(Wt.paint_symbol["text-translate-anchor"])}),D3={paint:CX,layout:kX},r0=function(o){this.type=o.property.overrides?o.property.overrides.runtimeType:ef,this.defaultValue=o};r0.prototype.evaluate=function(o){if(o.formattedSection){var u=this.defaultValue.property.overrides;if(u&&u.hasOverride(o.formattedSection))return u.getOverride(o.formattedSection)}return o.feature&&o.featureState?this.defaultValue.evaluate(o.feature,o.featureState):this.defaultValue.property.specification.default},r0.prototype.eachChild=function(o){if(!this.defaultValue.isConstant()){var u=this.defaultValue.value;o(u._styleExpression.expression)}},r0.prototype.outputDefined=function(){return!1},r0.prototype.serialize=function(){return null},y("FormatSectionOverride",r0,{omit:["defaultValue"]});var EX=function(n){function o(u){n.call(this,u,D3)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.recalculate=function(p,x){if(n.prototype.recalculate.call(this,p,x),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var A=this.layout.get("text-writing-mode");if(A){for(var k=[],F=0,Y=A;F",targetMapId:x,sourceMapId:k.mapId})}}},a0.prototype.receive=function(o){var u=o.data,p=u.id;if(p&&!(u.targetMapId&&this.mapId!==u.targetMapId))if(u.type===""){delete this.tasks[p];var x=this.cancelCallbacks[p];delete this.cancelCallbacks[p],x&&x()}else it()||u.mustQueue?(this.tasks[p]=u,this.taskQueue.push(p),this.invoker.trigger()):this.processTask(p,u)},a0.prototype.process=function(){if(this.taskQueue.length){var o=this.taskQueue.shift(),u=this.tasks[o];delete this.tasks[o],this.taskQueue.length&&this.invoker.trigger(),u&&this.processTask(o,u)}},a0.prototype.processTask=function(o,u){var p=this;if(u.type===""){var x=this.callbacks[o];delete this.callbacks[o],x&&(u.error?x(Z(u.error)):x(null,Z(u.data)))}else{var A=!1,k=Et(this.globalScope)?void 0:[],F=u.hasCallback?function(ge,he){A=!0,delete p.cancelCallbacks[o],p.target.postMessage({id:o,type:"",sourceMapId:p.mapId,error:ge?U(ge):null,data:U(he,k)},k)}:function(ge){A=!0},Y=null,j=Z(u.data);if(this.parent[u.type])Y=this.parent[u.type](u.sourceMapId,j,F);else if(this.parent.getWorkerSource){var Q=u.type.split("."),ie=this.parent.getWorkerSource(u.sourceMapId,Q[0],j.source);Y=ie[Q[1]](j,F)}else F(new Error("Could not find function "+u.type));!A&&Y&&Y.cancel&&(this.cancelCallbacks[o]=Y.cancel)}},a0.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function OX(n,o,u){o=Math.pow(2,u)-o-1;var p=a7(n*256,o*256,u),x=a7((n+1)*256,(o+1)*256,u);return p[0]+","+p[1]+","+x[0]+","+x[1]}function a7(n,o,u){var p=2*Math.PI*6378137/256/Math.pow(2,u),x=n*p-2*Math.PI*6378137/2,A=o*p-2*Math.PI*6378137/2;return[x,A]}var Mn=function(o,u){o&&(u?this.setSouthWest(o).setNorthEast(u):o.length===4?this.setSouthWest([o[0],o[1]]).setNorthEast([o[2],o[3]]):this.setSouthWest(o[0]).setNorthEast(o[1]))};Mn.prototype.setNorthEast=function(o){return this._ne=o instanceof Gi?new Gi(o.lng,o.lat):Gi.convert(o),this},Mn.prototype.setSouthWest=function(o){return this._sw=o instanceof Gi?new Gi(o.lng,o.lat):Gi.convert(o),this},Mn.prototype.extend=function(o){var u=this._sw,p=this._ne,x,A;if(o instanceof Gi)x=o,A=o;else if(o instanceof Mn){if(x=o._sw,A=o._ne,!x||!A)return this}else{if(Array.isArray(o))if(o.length===4||o.every(Array.isArray)){var k=o;return this.extend(Mn.convert(k))}else{var F=o;return this.extend(Gi.convert(F))}return this}return!u&&!p?(this._sw=new Gi(x.lng,x.lat),this._ne=new Gi(A.lng,A.lat)):(u.lng=Math.min(x.lng,u.lng),u.lat=Math.min(x.lat,u.lat),p.lng=Math.max(A.lng,p.lng),p.lat=Math.max(A.lat,p.lat)),this},Mn.prototype.getCenter=function(){return new Gi((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Mn.prototype.getSouthWest=function(){return this._sw},Mn.prototype.getNorthEast=function(){return this._ne},Mn.prototype.getNorthWest=function(){return new Gi(this.getWest(),this.getNorth())},Mn.prototype.getSouthEast=function(){return new Gi(this.getEast(),this.getSouth())},Mn.prototype.getWest=function(){return this._sw.lng},Mn.prototype.getSouth=function(){return this._sw.lat},Mn.prototype.getEast=function(){return this._ne.lng},Mn.prototype.getNorth=function(){return this._ne.lat},Mn.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Mn.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Mn.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Mn.prototype.contains=function(o){var u=Gi.convert(o),p=u.lng,x=u.lat,A=this._sw.lat<=x&&x<=this._ne.lat,k=this._sw.lng<=p&&p<=this._ne.lng;return this._sw.lng>this._ne.lng&&(k=this._sw.lng>=p&&p>=this._ne.lng),A&&k},Mn.convert=function(o){return!o||o instanceof Mn?o:new Mn(o)};var i7=63710088e-1,Gi=function(o,u){if(isNaN(o)||isNaN(u))throw new Error("Invalid LngLat object: ("+o+", "+u+")");if(this.lng=+o,this.lat=+u,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Gi.prototype.wrap=function(){return new Gi(B(this.lng,-180,180),this.lat)},Gi.prototype.toArray=function(){return[this.lng,this.lat]},Gi.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Gi.prototype.distanceTo=function(o){var u=Math.PI/180,p=this.lat*u,x=o.lat*u,A=Math.sin(p)*Math.sin(x)+Math.cos(p)*Math.cos(x)*Math.cos((o.lng-this.lng)*u),k=i7*Math.acos(Math.min(A,1));return k},Gi.prototype.toBounds=function(o){o===void 0&&(o=0);var u=40075017,p=360*o/u,x=p/Math.cos(Math.PI/180*this.lat);return new Mn(new Gi(this.lng-x,this.lat-p),new Gi(this.lng+x,this.lat+p))},Gi.convert=function(o){if(o instanceof Gi)return o;if(Array.isArray(o)&&(o.length===2||o.length===3))return new Gi(Number(o[0]),Number(o[1]));if(!Array.isArray(o)&&typeof o=="object"&&o!==null)return new Gi(Number("lng"in o?o.lng:o.lon),Number(o.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var n7=2*Math.PI*i7;function o7(n){return n7*Math.cos(n*Math.PI/180)}function s7(n){return(180+n)/360}function l7(n){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n*Math.PI/360)))/360}function u7(n,o){return n/o7(o)}function UX(n){return n*360-180}function z3(n){var o=180-n*360;return 360/Math.PI*Math.atan(Math.exp(o*Math.PI/180))-90}function VX(n,o){return n*o7(z3(o))}function HX(n){return 1/Math.cos(n*Math.PI/180)}var Kv=function(o,u,p){p===void 0&&(p=0),this.x=+o,this.y=+u,this.z=+p};Kv.fromLngLat=function(o,u){u===void 0&&(u=0);var p=Gi.convert(o);return new Kv(s7(p.lng),l7(p.lat),u7(u,p.lat))},Kv.prototype.toLngLat=function(){return new Gi(UX(this.x),z3(this.y))},Kv.prototype.toAltitude=function(){return VX(this.z,this.y)},Kv.prototype.meterInMercatorCoordinateUnits=function(){return 1/n7*HX(z3(this.y))};var Qv=function(o,u,p){this.z=o,this.x=u,this.y=p,this.key=xy(0,o,o,u,p)};Qv.prototype.equals=function(o){return this.z===o.z&&this.x===o.x&&this.y===o.y},Qv.prototype.url=function(o,u){var p=OX(this.x,this.y,this.z),x=GX(this.z,this.x,this.y);return o[(this.x+this.y)%o.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(u==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",x).replace("{bbox-epsg-3857}",p)},Qv.prototype.getTilePoint=function(o){var u=Math.pow(2,this.z);return new v((o.x*u-this.x)*qr,(o.y*u-this.y)*qr)},Qv.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var f7=function(o,u){this.wrap=o,this.canonical=u,this.key=xy(o,u.z,u.z,u.x,u.y)},Sn=function(o,u,p,x,A){this.overscaledZ=o,this.wrap=u,this.canonical=new Qv(p,+x,+A),this.key=xy(u,o,p,x,A)};Sn.prototype.equals=function(o){return this.overscaledZ===o.overscaledZ&&this.wrap===o.wrap&&this.canonical.equals(o.canonical)},Sn.prototype.scaledTo=function(o){var u=this.canonical.z-o;return o>this.canonical.z?new Sn(o,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Sn(o,this.wrap,o,this.canonical.x>>u,this.canonical.y>>u)},Sn.prototype.calculateScaledKey=function(o,u){var p=this.canonical.z-o;return o>this.canonical.z?xy(this.wrap*+u,o,this.canonical.z,this.canonical.x,this.canonical.y):xy(this.wrap*+u,o,o,this.canonical.x>>p,this.canonical.y>>p)},Sn.prototype.isChildOf=function(o){if(o.wrap!==this.wrap)return!1;var u=this.canonical.z-o.canonical.z;return o.overscaledZ===0||o.overscaledZ>u&&o.canonical.y===this.canonical.y>>u},Sn.prototype.children=function(o){if(this.overscaledZ>=o)return[new Sn(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var u=this.canonical.z+1,p=this.canonical.x*2,x=this.canonical.y*2;return[new Sn(u,this.wrap,u,p,x),new Sn(u,this.wrap,u,p+1,x),new Sn(u,this.wrap,u,p,x+1),new Sn(u,this.wrap,u,p+1,x+1)]},Sn.prototype.isLessThan=function(o){return this.wrapo.wrap?!1:this.overscaledZo.overscaledZ?!1:this.canonical.xo.canonical.x?!1:this.canonical.y0;A--)x=1<=this.dim+1||u<-1||u>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(u+1)*this.stride+(o+1)},lc.prototype._unpackMapbox=function(o,u,p){return(o*256*256+u*256+p)/10-1e4},lc.prototype._unpackTerrarium=function(o,u,p){return o*256+u+p/256-32768},lc.prototype.getPixels=function(){return new es({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},lc.prototype.backfillBorder=function(o,u,p){if(this.dim!==o.dim)throw new Error("dem dimension mismatch");var x=u*this.dim,A=u*this.dim+this.dim,k=p*this.dim,F=p*this.dim+this.dim;switch(u){case-1:x=A-1;break;case 1:A=x+1;break}switch(p){case-1:k=F-1;break;case 1:F=k+1;break}for(var Y=-u*this.dim,j=-p*this.dim,Q=k;Q=0&&ie[3]>=0&&Y.insert(F,ie[0],ie[1],ie[2],ie[3])}},uc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Yp.VectorTile(new E1(this.rawTileData)).layers,this.sourceLayerCoder=new B1(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},uc.prototype.query=function(o,u,p,x){var A=this;this.loadVTLayers();for(var k=o.params||{},F=qr/o.tileSize/o.scale,Y=cf(k.filter),j=o.queryGeometry,Q=o.queryPadding*F,ie=h7(j),ge=this.grid.query(ie.minX-Q,ie.minY-Q,ie.maxX+Q,ie.maxY+Q),he=h7(o.cameraQueryGeometry),ke=this.grid3D.query(he.minX-Q,he.minY-Q,he.maxX+Q,he.maxY+Q,function(jt,vr,fr,Rr){return Vl(o.cameraQueryGeometry,jt-Q,vr-Q,fr+Q,Rr+Q)}),qe=0,ut=ke;qex)A=!1;else if(!u)A=!0;else if(this.expirationTime=ea.maxzoom)&&ea.visibility!=="none"){T(dr,this.zoom,ce);var _a=Dt[ea.id]=ea.createBucket({index:pt.bucketLayerIDs.length,layers:dr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Yr,sourceID:this.source});_a.populate(Br,Rt,this.tileID.canonical),pt.bucketLayerIDs.push(dr.map(function(Za){return Za.id}))}}}}var ir,Ai,Ca,si,fa=a.mapObject(Rt.glyphDependencies,function(Za){return Object.keys(Za).map(Number)});Object.keys(fa).length?Ee.send("getGlyphs",{uid:this.uid,stacks:fa},function(Za,Kn){ir||(ir=Za,Ai=Kn,_s.call(at))}):Ai={};var Dn=Object.keys(Rt.iconDependencies);Dn.length?Ee.send("getImages",{icons:Dn,source:this.source,tileID:this.tileID,type:"icons"},function(Za,Kn){ir||(ir=Za,Ca=Kn,_s.call(at))}):Ca={};var Co=Object.keys(Rt.patternDependencies);Co.length?Ee.send("getImages",{icons:Co,source:this.source,tileID:this.tileID,type:"patterns"},function(Za,Kn){ir||(ir=Za,si=Kn,_s.call(at))}):si={},_s.call(this);function _s(){if(ir)return Ne(ir);if(Ai&&Ca&&si){var Za=new m(Ai),Kn=new a.ImageAtlas(Ca,si);for(var hu in Dt){var Vi=Dt[hu];Vi instanceof a.SymbolBucket?(T(Vi.layers,this.zoom,ce),a.performSymbolLayout(Vi,Ai,Za.positions,Ca,Kn.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Vi.hasPattern&&(Vi instanceof a.LineBucket||Vi instanceof a.FillBucket||Vi instanceof a.FillExtrusionBucket)&&(T(Vi.layers,this.zoom,ce),Vi.addFeatures(Rt,this.tileID.canonical,Kn.patternPositions))}this.status="done",Ne(null,{buckets:a.values(Dt).filter(function(pl){return!pl.isEmpty()}),featureIndex:pt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Za.image,imageAtlas:Kn,glyphMap:this.returnDependencies?Ai:null,iconMap:this.returnDependencies?Ca:null,glyphPositions:this.returnDependencies?Za.positions:null})}}};function T(le,ee,se){for(var ce=new a.EvaluationParameters(ee),Ee=0,Ne=le;Ee=0!=!!ee&&le.reverse()}var O=a.vectorTile.VectorTileFeature.prototype.toGeoJSON,H=function(ee){this._feature=ee,this.extent=a.EXTENT,this.type=ee.type,this.properties=ee.tags,"id"in ee&&!isNaN(ee.id)&&(this.id=parseInt(ee.id,10))};H.prototype.loadGeometry=function(){if(this._feature.type===1){for(var ee=[],se=0,ce=this._feature.geometry;se>31}function it(le,ee){for(var se=le.loadGeometry(),ce=le.type,Ee=0,Ne=0,at=se.length,He=0;He>1;Et(le,ee,at,ce,Ee,Ne%2),We(le,ee,se,ce,at-1,Ne+1),We(le,ee,se,at+1,Ee,Ne+1)}}function Et(le,ee,se,ce,Ee,Ne){for(;Ee>ce;){if(Ee-ce>600){var at=Ee-ce+1,He=se-ce+1,pt=Math.log(at),Dt=.5*Math.exp(2*pt/3),Rt=.5*Math.sqrt(pt*Dt*(at-Dt)/at)*(He-at/2<0?-1:1),$t=Math.max(ce,Math.floor(se-He*Dt/at+Rt)),Yt=Math.min(Ee,Math.floor(se+(at-He)*Dt/at+Rt));Et(le,ee,se,$t,Yt,Ne)}var Tr=ee[2*se+Ne],Yr=ce,Br=Ee;for(nt(le,ee,ce,se),ee[2*Ee+Ne]>Tr&&nt(le,ee,ce,Ee);YrTr;)Br--}ee[2*ce+Ne]===Tr?nt(le,ee,ce,Br):(Br++,nt(le,ee,Br,Ee)),Br<=se&&(ce=Br+1),se<=Br&&(Ee=Br-1)}}function nt(le,ee,se,ce){wt(le,se,ce),wt(ee,2*se,2*ce),wt(ee,2*se+1,2*ce+1)}function wt(le,ee,se){var ce=le[ee];le[ee]=le[se],le[se]=ce}function xt(le,ee,se,ce,Ee,Ne,at){for(var He=[0,le.length-1,0],pt=[],Dt,Rt;He.length;){var $t=He.pop(),Yt=He.pop(),Tr=He.pop();if(Yt-Tr<=at){for(var Yr=Tr;Yr<=Yt;Yr++)Dt=ee[2*Yr],Rt=ee[2*Yr+1],Dt>=se&&Dt<=Ee&&Rt>=ce&&Rt<=Ne&&pt.push(le[Yr]);continue}var Br=Math.floor((Tr+Yt)/2);Dt=ee[2*Br],Rt=ee[2*Br+1],Dt>=se&&Dt<=Ee&&Rt>=ce&&Rt<=Ne&&pt.push(le[Br]);var ca=($t+1)%2;($t===0?se<=Dt:ce<=Rt)&&(He.push(Tr),He.push(Br-1),He.push(ca)),($t===0?Ee>=Dt:Ne>=Rt)&&(He.push(Br+1),He.push(Yt),He.push(ca))}return pt}function vt(le,ee,se,ce,Ee,Ne){for(var at=[0,le.length-1,0],He=[],pt=Ee*Ee;at.length;){var Dt=at.pop(),Rt=at.pop(),$t=at.pop();if(Rt-$t<=Ne){for(var Yt=$t;Yt<=Rt;Yt++)de(ee[2*Yt],ee[2*Yt+1],se,ce)<=pt&&He.push(le[Yt]);continue}var Tr=Math.floor(($t+Rt)/2),Yr=ee[2*Tr],Br=ee[2*Tr+1];de(Yr,Br,se,ce)<=pt&&He.push(le[Tr]);var ca=(Dt+1)%2;(Dt===0?se-Ee<=Yr:ce-Ee<=Br)&&(at.push($t),at.push(Tr-1),at.push(ca)),(Dt===0?se+Ee>=Yr:ce+Ee>=Br)&&(at.push(Tr+1),at.push(Rt),at.push(ca))}return He}function de(le,ee,se,ce){var Ee=le-se,Ne=ee-ce;return Ee*Ee+Ne*Ne}var ze=function(le){return le[0]},pe=function(le){return le[1]},rt=function(ee,se,ce,Ee,Ne){se===void 0&&(se=ze),ce===void 0&&(ce=pe),Ee===void 0&&(Ee=64),Ne===void 0&&(Ne=Float64Array),this.nodeSize=Ee,this.points=ee;for(var at=ee.length<65536?Uint16Array:Uint32Array,He=this.ids=new at(ee.length),pt=this.coords=new Ne(ee.length*2),Dt=0;Dt=Ee;Rt--){var $t=+Date.now();pt=this._cluster(pt,Rt),this.trees[Rt]=new rt(pt,Be,ft,at,Float32Array),ce&&console.log("z%d: %d clusters in %dms",Rt,pt.length,+Date.now()-$t)}return ce&&console.timeEnd("total time"),this},Xe.prototype.getClusters=function(ee,se){var ce=((ee[0]+180)%360+360)%360-180,Ee=Math.max(-90,Math.min(90,ee[1])),Ne=ee[2]===180?180:((ee[2]+180)%360+360)%360-180,at=Math.max(-90,Math.min(90,ee[3]));if(ee[2]-ee[0]>=360)ce=-180,Ne=180;else if(ce>Ne){var He=this.getClusters([ce,Ee,180,at],se),pt=this.getClusters([-180,Ee,Ne,at],se);return He.concat(pt)}for(var Dt=this.trees[this._limitZoom(se)],Rt=Dt.range(Gt(ce),Ct(at),Gt(Ne),Ct(Ee)),$t=[],Yt=0,Tr=Rt;Ytse&&(Br+=ii.numPoints||1)}if(Br>=pt){for(var Wr=$t.x*Yr,dr=$t.y*Yr,ea=He&&Yr>1?this._map($t,!0):null,_a=(Rt<<5)+(se+1)+this.points.length,ir=0,Ai=Tr;ir1)for(var Dn=0,Co=Tr;Dn>5},Xe.prototype._getOriginZoom=function(ee){return(ee-this.points.length)%32},Xe.prototype._map=function(ee,se){if(ee.numPoints)return se?Ot({},ee.properties):ee.properties;var ce=this.points[ee.index].properties,Ee=this.options.map(ce);return se&&Ee===ce?Ot({},Ee):Ee};function Ft(le,ee,se,ce,Ee){return{x:le,y:ee,zoom:1/0,id:se,parentId:-1,numPoints:ce,properties:Ee}}function Lt(le,ee){var se=le.geometry.coordinates,ce=se[0],Ee=se[1];return{x:Gt(ce),y:Ct(Ee),zoom:1/0,index:ee,parentId:-1}}function Tt(le){return{type:"Feature",id:le.id,properties:It(le),geometry:{type:"Point",coordinates:[Mt(le.x),Ut(le.y)]}}}function It(le){var ee=le.numPoints,se=ee>=1e4?Math.round(ee/1e3)+"k":ee>=1e3?Math.round(ee/100)/10+"k":ee;return Ot(Ot({},le.properties),{cluster:!0,cluster_id:le.id,point_count:ee,point_count_abbreviated:se})}function Gt(le){return le/360+.5}function Ct(le){var ee=Math.sin(le*Math.PI/180),se=.5-.25*Math.log((1+ee)/(1-ee))/Math.PI;return se<0?0:se>1?1:se}function Mt(le){return(le-.5)*360}function Ut(le){var ee=(180-le*360)*Math.PI/180;return 360*Math.atan(Math.exp(ee))/Math.PI-90}function Ot(le,ee){for(var se in ee)le[se]=ee[se];return le}function Be(le){return le.x}function ft(le){return le.y}function or(le,ee,se,ce){for(var Ee=ce,Ne=se-ee>>1,at=se-ee,He,pt=le[ee],Dt=le[ee+1],Rt=le[se],$t=le[se+1],Yt=ee+3;YtEe)He=Yt,Ee=Tr;else if(Tr===Ee){var Yr=Math.abs(Yt-Ne);Yrce&&(He-ee>3&&or(le,ee,He,ce),le[He+2]=Ee,se-He>3&&or(le,He,se,ce))}function Cr(le,ee,se,ce,Ee,Ne){var at=Ee-se,He=Ne-ce;if(at!==0||He!==0){var pt=((le-se)*at+(ee-ce)*He)/(at*at+He*He);pt>1?(se=Ee,ce=Ne):pt>0&&(se+=at*pt,ce+=He*pt)}return at=le-se,He=ee-ce,at*at+He*He}function Sr(le,ee,se,ce){var Ee={id:typeof le=="undefined"?null:le,type:ee,geometry:se,tags:ce,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Oe(Ee),Ee}function Oe(le){var ee=le.geometry,se=le.type;if(se==="Point"||se==="MultiPoint"||se==="LineString")yt(le,ee);else if(se==="Polygon"||se==="MultiLineString")for(var ce=0;ce0&&(ce?at+=(Ee*Dt-pt*Ne)/2:at+=Math.sqrt(Math.pow(pt-Ee,2)+Math.pow(Dt-Ne,2))),Ee=pt,Ne=Dt}var Rt=ee.length-3;ee[2]=1,or(ee,0,Rt,se),ee[Rt+2]=1,ee.size=Math.abs(at),ee.start=0,ee.end=ee.size}function ar(le,ee,se,ce){for(var Ee=0;Ee1?1:se}function At(le,ee,se,ce,Ee,Ne,at,He){if(se/=ee,ce/=ee,Ne>=se&&at=ce)return null;for(var pt=[],Dt=0;Dt=se&&Yr=ce)continue;var Br=[];if(Yt==="Point"||Yt==="MultiPoint")Fe($t,Br,se,ce,Ee);else if(Yt==="LineString")Ge($t,Br,se,ce,Ee,!1,He.lineMetrics);else if(Yt==="MultiLineString")dt($t,Br,se,ce,Ee,!1);else if(Yt==="Polygon")dt($t,Br,se,ce,Ee,!0);else if(Yt==="MultiPolygon")for(var ca=0;ca<$t.length;ca++){var ua=[];dt($t[ca],ua,se,ce,Ee,!0),ua.length&&Br.push(ua)}if(Br.length){if(He.lineMetrics&&Yt==="LineString"){for(ca=0;ca=se&&at<=ce&&(ee.push(le[Ne]),ee.push(le[Ne+1]),ee.push(le[Ne+2]))}}function Ge(le,ee,se,ce,Ee,Ne,at){for(var He=bt(le),pt=Ee===0?xr:mr,Dt=le.start,Rt,$t,Yt=0;Ytse&&($t=pt(He,Tr,Yr,ca,ua,se),at&&(He.start=Dt+Rt*$t)):qa>ce?ii=se&&($t=pt(He,Tr,Yr,ca,ua,se),Wr=!0),ii>ce&&qa<=ce&&($t=pt(He,Tr,Yr,ca,ua,ce),Wr=!0),!Ne&&Wr&&(at&&(He.end=Dt+Rt*$t),ee.push(He),He=bt(le)),at&&(Dt+=Rt)}var dr=le.length-3;Tr=le[dr],Yr=le[dr+1],Br=le[dr+2],qa=Ee===0?Tr:Yr,qa>=se&&qa<=ce&&gr(He,Tr,Yr,Br),dr=He.length-3,Ne&&dr>=3&&(He[dr]!==He[0]||He[dr+1]!==He[1])&&gr(He,He[0],He[1],He[2]),He.length&&ee.push(He)}function bt(le){var ee=[];return ee.size=le.size,ee.start=le.start,ee.end=le.end,ee}function dt(le,ee,se,ce,Ee,Ne){for(var at=0;atat.maxX&&(at.maxX=Rt),$t>at.maxY&&(at.maxY=$t)}return at}function vi(le,ee,se,ce){var Ee=ee.geometry,Ne=ee.type,at=[];if(Ne==="Point"||Ne==="MultiPoint")for(var He=0;He0&&ee.size<(Ee?at:ce)){se.numPoints+=ee.length/3;return}for(var He=[],pt=0;ptat)&&(se.numSimplified++,He.push(ee[pt]),He.push(ee[pt+1])),se.numPoints++;Ee&&$i(He,Ne),le.push(He)}function $i(le,ee){for(var se=0,ce=0,Ee=le.length,Ne=Ee-2;ce0===ee)for(ce=0,Ee=le.length;ce24)throw new Error("maxZoom should be in the 0-24 range");if(ee.promoteId&&ee.generateId)throw new Error("promoteId and generateId cannot be used together.");var ce=qt(le,ee);this.tiles={},this.tileCoords=[],se&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",ee.indexMaxZoom,ee.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),ce=Hr(ce,ee),ce.length&&this.splitTile(ce,0,0,0),se&&(ce.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Ei.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Ei.prototype.splitTile=function(le,ee,se,ce,Ee,Ne,at){for(var He=[le,ee,se,ce],pt=this.options,Dt=pt.debug;He.length;){ce=He.pop(),se=He.pop(),ee=He.pop(),le=He.pop();var Rt=1<1&&console.time("creation"),Yt=this.tiles[$t]=qi(le,ee,se,ce,pt),this.tileCoords.push({z:ee,x:se,y:ce}),Dt)){Dt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",ee,se,ce,Yt.numFeatures,Yt.numPoints,Yt.numSimplified),console.timeEnd("creation"));var Tr="z"+ee;this.stats[Tr]=(this.stats[Tr]||0)+1,this.total++}if(Yt.source=le,Ee){if(ee===pt.maxZoom||ee===Ee)continue;var Yr=1<1&&console.time("clipping");var Br=.5*pt.buffer/pt.extent,ca=.5-Br,ua=.5+Br,qa=1+Br,ii,Wr,dr,ea,_a,ir;ii=Wr=dr=ea=null,_a=At(le,Rt,se-Br,se+ua,0,Yt.minX,Yt.maxX,pt),ir=At(le,Rt,se+ca,se+qa,0,Yt.minX,Yt.maxX,pt),le=null,_a&&(ii=At(_a,Rt,ce-Br,ce+ua,1,Yt.minY,Yt.maxY,pt),Wr=At(_a,Rt,ce+ca,ce+qa,1,Yt.minY,Yt.maxY,pt),_a=null),ir&&(dr=At(ir,Rt,ce-Br,ce+ua,1,Yt.minY,Yt.maxY,pt),ea=At(ir,Rt,ce+ca,ce+qa,1,Yt.minY,Yt.maxY,pt),ir=null),Dt>1&&console.timeEnd("clipping"),He.push(ii||[],ee+1,se*2,ce*2),He.push(Wr||[],ee+1,se*2,ce*2+1),He.push(dr||[],ee+1,se*2+1,ce*2),He.push(ea||[],ee+1,se*2+1,ce*2+1)}}},Ei.prototype.getTile=function(le,ee,se){var ce=this.options,Ee=ce.extent,Ne=ce.debug;if(le<0||le>24)return null;var at=1<1&&console.log("drilling down to z%d-%d-%d",le,ee,se);for(var pt=le,Dt=ee,Rt=se,$t;!$t&&pt>0;)pt--,Dt=Math.floor(Dt/2),Rt=Math.floor(Rt/2),$t=this.tiles[ma(pt,Dt,Rt)];return!$t||!$t.source?null:(Ne>1&&console.log("found parent tile z%d-%d-%d",pt,Dt,Rt),Ne>1&&console.time("drilling down"),this.splitTile($t.source,pt,Dt,Rt,le,ee,se),Ne>1&&console.timeEnd("drilling down"),this.tiles[He]?Ua(this.tiles[He],Ee):null)};function ma(le,ee,se){return((1<=0?0:g.button},l.remove=function(g){g.parentNode&&g.parentNode.removeChild(g)};function D(g,c,b){var d,w,L,R=a.browser.devicePixelRatio>1?"@2x":"",G=a.getJSON(c.transformRequest(c.normalizeSpriteURL(g,R,".json"),a.ResourceType.SpriteJSON),function(ue,be){G=null,L||(L=ue,d=be,re())}),K=a.getImage(c.transformRequest(c.normalizeSpriteURL(g,R,".png"),a.ResourceType.SpriteImage),function(ue,be){K=null,L||(L=ue,w=be,re())});function re(){if(L)b(L);else if(d&&w){var ue=a.browser.getImageData(w),be={};for(var xe in d){var Re=d[xe],Ye=Re.width,Ze=Re.height,Ue=Re.x,Je=Re.y,ht=Re.sdf,Pt=Re.pixelRatio,Nt=Re.stretchX,Jt=Re.stretchY,er=Re.content,Zt=new a.RGBAImage({width:Ye,height:Ze});a.RGBAImage.copy(ue,Zt,{x:Ue,y:Je},{x:0,y:0},{width:Ye,height:Ze}),be[xe]={data:Zt,pixelRatio:Pt,sdf:ht,stretchX:Nt,stretchY:Jt,content:er}}b(null,be)}}return{cancel:function(){G&&(G.cancel(),G=null),K&&(K.cancel(),K=null)}}}function E(g){var c=g.userImage;if(c&&c.render){var b=c.render();if(b)return g.data.replace(new Uint8Array(c.data.buffer)),!0}return!1}var I=1,B=function(g){function c(){g.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.RGBAImage({width:1,height:1}),this.dirty=!0}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.isLoaded=function(){return this.loaded},c.prototype.setLoaded=function(d){if(this.loaded!==d&&(this.loaded=d,d)){for(var w=0,L=this.requestors;w=0?1.2:1))}V.prototype.draw=function(g){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(g,this.buffer,this.middle);for(var c=this.ctx.getImageData(0,0,this.size,this.size),b=new Uint8ClampedArray(this.size*this.size),d=0;d65535){ue(new Error("glyphs > 65535 not supported"));return}if(Re.ranges[Ze]){ue(null,{stack:be,id:xe,glyph:Ye});return}var Ue=Re.requests[Ze];Ue||(Ue=Re.requests[Ze]=[],te.loadGlyphRange(be,Ze,d.url,d.requestManager,function(Je,ht){if(ht){for(var Pt in ht)d._doesCharSupportLocalGlyph(+Pt)||(Re.glyphs[+Pt]=ht[+Pt]);Re.ranges[Ze]=!0}for(var Nt=0,Jt=Ue;Nt1&&(re=c[++K]);var be=Math.abs(ue-re.left),xe=Math.abs(ue-re.right),Re=Math.min(be,xe),Ye=void 0,Ze=L/d*(w+1);if(re.isDash){var Ue=w-Math.abs(Ze);Ye=Math.sqrt(Re*Re+Ue*Ue)}else Ye=w-Math.sqrt(Re*Re+Ze*Ze);this.data[G+ue]=Math.max(0,Math.min(255,Ye+128))}},Me.prototype.addRegularDash=function(c){for(var b=c.length-1;b>=0;--b){var d=c[b],w=c[b+1];d.zeroLength?c.splice(b,1):w&&w.isDash===d.isDash&&(w.left=d.left,c.splice(b,1))}var L=c[0],R=c[c.length-1];L.isDash===R.isDash&&(L.left=R.left-this.width,R.right=L.right+this.width);for(var G=this.width*this.nextRow,K=0,re=c[K],ue=0;ue1&&(re=c[++K]);var be=Math.abs(ue-re.left),xe=Math.abs(ue-re.right),Re=Math.min(be,xe),Ye=re.isDash?Re:-Re;this.data[G+ue]=Math.max(0,Math.min(255,Ye+128))}},Me.prototype.addDash=function(c,b){var d=b?7:0,w=2*d+1;if(this.nextRow+w>this.height)return a.warnOnce("LineAtlas out of space"),null;for(var L=0,R=0;R=d.minX&&c.x=d.minY&&c.y0&&(ue[new a.OverscaledTileID(d.overscaledZ,G,w.z,R,w.y-1).key]={backfilled:!1},ue[new a.OverscaledTileID(d.overscaledZ,d.wrap,w.z,w.x,w.y-1).key]={backfilled:!1},ue[new a.OverscaledTileID(d.overscaledZ,re,w.z,K,w.y-1).key]={backfilled:!1}),w.y+10&&(L.resourceTiming=d._resourceTiming,d._resourceTiming=[]),d.fire(new a.Event("data",L))})},c.prototype.onAdd=function(d){this.map=d,this.load()},c.prototype.setData=function(d){var w=this;return this._data=d,this.fire(new a.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(L){if(L){w.fire(new a.ErrorEvent(L));return}var R={dataType:"source",sourceDataType:"content"};w._collectResourceTiming&&w._resourceTiming&&w._resourceTiming.length>0&&(R.resourceTiming=w._resourceTiming,w._resourceTiming=[]),w.fire(new a.Event("data",R))}),this},c.prototype.getClusterExpansionZoom=function(d,w){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:d,source:this.id},w),this},c.prototype.getClusterChildren=function(d,w){return this.actor.send("geojson.getClusterChildren",{clusterId:d,source:this.id},w),this},c.prototype.getClusterLeaves=function(d,w,L,R){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:d,limit:w,offset:L},R),this},c.prototype._updateWorkerData=function(d){var w=this;this._loaded=!1;var L=a.extend({},this.workerOptions),R=this._data;typeof R=="string"?(L.request=this.map._requestManager.transformRequest(a.browser.resolveURL(R),a.ResourceType.Source),L.request.collectResourceTiming=this._collectResourceTiming):L.data=JSON.stringify(R),this.actor.send(this.type+".loadData",L,function(G,K){w._removed||K&&K.abandoned||(w._loaded=!0,K&&K.resourceTiming&&K.resourceTiming[w.id]&&(w._resourceTiming=K.resourceTiming[w.id].slice(0)),w.actor.send(w.type+".coalesce",{source:L.source},null),d(G))})},c.prototype.loaded=function(){return this._loaded},c.prototype.loadTile=function(d,w){var L=this,R=d.actor?"reloadTile":"loadTile";d.actor=this.actor;var G={type:this.type,uid:d.uid,tileID:d.tileID,zoom:d.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:a.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};d.request=this.actor.send(R,G,function(K,re){return delete d.request,d.unloadVectorData(),d.aborted?w(null):K?w(K):(d.loadVectorData(re,L.map.painter,R==="reloadTile"),w(null))})},c.prototype.abortTile=function(d){d.request&&(d.request.cancel(),delete d.request),d.aborted=!0},c.prototype.unloadTile=function(d){d.unloadVectorData(),this.actor.send("removeTile",{uid:d.uid,type:this.type,source:this.id})},c.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},c.prototype.serialize=function(){return a.extend({},this._options,{type:this.type,data:this._data})},c.prototype.hasTransition=function(){return!1},c}(a.Evented),lt=a.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),it=function(g){function c(b,d,w,L){g.call(this),this.id=b,this.dispatcher=w,this.coordinates=d.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(L),this.options=d}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.load=function(d,w){var L=this;this._loaded=!1,this.fire(new a.Event("dataloading",{dataType:"source"})),this.url=this.options.url,a.getImage(this.map._requestManager.transformRequest(this.url,a.ResourceType.Image),function(R,G){L._loaded=!0,R?L.fire(new a.ErrorEvent(R)):G&&(L.image=G,d&&(L.coordinates=d),w&&w(),L._finishLoading())})},c.prototype.loaded=function(){return this._loaded},c.prototype.updateImage=function(d){var w=this;return!this.image||!d.url?this:(this.options.url=d.url,this.load(d.coordinates,function(){w.texture=null}),this)},c.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})))},c.prototype.onAdd=function(d){this.map=d,this.load()},c.prototype.setCoordinates=function(d){var w=this;this.coordinates=d;var L=d.map(a.MercatorCoordinate.fromLngLat);this.tileID=gt(L),this.minzoom=this.maxzoom=this.tileID.z;var R=L.map(function(G){return w.tileID.getTilePoint(G)._round()});return this._boundsArray=new a.StructArrayLayout4i8,this._boundsArray.emplaceBack(R[0].x,R[0].y,0,0),this._boundsArray.emplaceBack(R[1].x,R[1].y,a.EXTENT,0),this._boundsArray.emplaceBack(R[3].x,R[3].y,0,a.EXTENT),this._boundsArray.emplaceBack(R[2].x,R[2].y,a.EXTENT,a.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"})),this},c.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var d=this.map.painter.context,w=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new a.Texture(d,this.image,w.RGBA),this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE));for(var L in this.tiles){var R=this.tiles[L];R.state!=="loaded"&&(R.state="loaded",R.texture=this.texture)}}},c.prototype.loadTile=function(d,w){this.tileID&&this.tileID.equals(d.tileID.canonical)?(this.tiles[String(d.tileID.wrap)]=d,d.buckets={},w(null)):(d.state="errored",w(null))},c.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},c.prototype.hasTransition=function(){return!1},c}(a.Evented);function gt(g){for(var c=1/0,b=1/0,d=-1/0,w=-1/0,L=0,R=g;Lw.end(0)?this.fire(new a.ErrorEvent(new a.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+w.start(0)+" and "+w.end(0)+"-second mark."))):this.video.currentTime=d}},c.prototype.getVideo=function(){return this.video},c.prototype.onAdd=function(d){this.map||(this.map=d,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},c.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var d=this.map.painter.context,w=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE),w.texSubImage2D(w.TEXTURE_2D,0,0,0,w.RGBA,w.UNSIGNED_BYTE,this.video)):(this.texture=new a.Texture(d,this.video,w.RGBA),this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE));for(var L in this.tiles){var R=this.tiles[L];R.state!=="loaded"&&(R.state="loaded",R.texture=this.texture)}}},c.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},c.prototype.hasTransition=function(){return this.video&&!this.video.paused},c}(it),Et=function(g){function c(b,d,w,L){g.call(this,b,d,w,L),d.coordinates?(!Array.isArray(d.coordinates)||d.coordinates.length!==4||d.coordinates.some(function(R){return!Array.isArray(R)||R.length!==2||R.some(function(G){return typeof G!="number"})}))&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'missing required property "coordinates"'))),d.animate&&typeof d.animate!="boolean"&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'optional "animate" property must be a boolean value'))),d.canvas?typeof d.canvas!="string"&&!(d.canvas instanceof a.window.HTMLCanvasElement)&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'missing required property "canvas"'))),this.options=d,this.animate=d.animate!==void 0?d.animate:!0}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof a.window.HTMLCanvasElement?this.options.canvas:a.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new a.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},c.prototype.getCanvas=function(){return this.canvas},c.prototype.onAdd=function(d){this.map=d,this.load(),this.canvas&&this.animate&&this.play()},c.prototype.onRemove=function(){this.pause()},c.prototype.prepare=function(){var d=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,d=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,d=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var w=this.map.painter.context,L=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(d||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new a.Texture(w,this.canvas,L.RGBA,{premultiply:!0});for(var R in this.tiles){var G=this.tiles[R];G.state!=="loaded"&&(G.state="loaded",G.texture=this.texture)}}},c.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},c.prototype.hasTransition=function(){return this._playing},c.prototype._hasInvalidDimensions=function(){for(var d=0,w=[this.canvas.width,this.canvas.height];dthis.max){var G=this._getAndRemoveByKey(this.order[0]);G&&this.onRemove(G)}return this},Lt.prototype.has=function(c){return c.wrapped().key in this.data},Lt.prototype.getAndRemove=function(c){return this.has(c)?this._getAndRemoveByKey(c.wrapped().key):null},Lt.prototype._getAndRemoveByKey=function(c){var b=this.data[c].shift();return b.timeout&&clearTimeout(b.timeout),this.data[c].length===0&&delete this.data[c],this.order.splice(this.order.indexOf(c),1),b.value},Lt.prototype.getByKey=function(c){var b=this.data[c];return b?b[0].value:null},Lt.prototype.get=function(c){if(!this.has(c))return null;var b=this.data[c.wrapped().key][0];return b.value},Lt.prototype.remove=function(c,b){if(!this.has(c))return this;var d=c.wrapped().key,w=b===void 0?0:this.data[d].indexOf(b),L=this.data[d][w];return this.data[d].splice(w,1),L.timeout&&clearTimeout(L.timeout),this.data[d].length===0&&delete this.data[d],this.onRemove(L.value),this.order.splice(this.order.indexOf(d),1),this},Lt.prototype.setMaxSize=function(c){for(this.max=c;this.order.length>this.max;){var b=this._getAndRemoveByKey(this.order[0]);b&&this.onRemove(b)}return this},Lt.prototype.filter=function(c){var b=[];for(var d in this.data)for(var w=0,L=this.data[d];w1||(Math.abs(be)>1&&(Math.abs(be+Re)===1?be+=Re:Math.abs(be-Re)===1&&(be-=Re)),!(!ue.dem||!re.dem)&&(re.dem.backfillBorder(ue.dem,be,xe),re.neighboringTiles&&re.neighboringTiles[Ye]&&(re.neighboringTiles[Ye].backfilled=!0)))}},c.prototype.getTile=function(d){return this.getTileByID(d.key)},c.prototype.getTileByID=function(d){return this._tiles[d]},c.prototype._retainLoadedChildren=function(d,w,L,R){for(var G in this._tiles){var K=this._tiles[G];if(!(R[G]||!K.hasData()||K.tileID.overscaledZ<=w||K.tileID.overscaledZ>L)){for(var re=K.tileID;K&&K.tileID.overscaledZ>w+1;){var ue=K.tileID.scaledTo(K.tileID.overscaledZ-1);K=this._tiles[ue.key],K&&K.hasData()&&(re=ue)}for(var be=re;be.overscaledZ>w;)if(be=be.scaledTo(be.overscaledZ-1),d[be.key]){R[re.key]=re;break}}}},c.prototype.findLoadedParent=function(d,w){if(d.key in this._loadedParentTiles){var L=this._loadedParentTiles[d.key];return L&&L.tileID.overscaledZ>=w?L:null}for(var R=d.overscaledZ-1;R>=w;R--){var G=d.scaledTo(R),K=this._getLoadedTile(G);if(K)return K}},c.prototype._getLoadedTile=function(d){var w=this._tiles[d.key];if(w&&w.hasData())return w;var L=this._cache.getByKey(d.wrapped().key);return L},c.prototype.updateCacheSize=function(d){var w=Math.ceil(d.width/this._source.tileSize)+1,L=Math.ceil(d.height/this._source.tileSize)+1,R=w*L,G=5,K=Math.floor(R*G),re=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,K):K;this._cache.setMaxSize(re)},c.prototype.handleWrapJump=function(d){var w=this._prevLng===void 0?d:this._prevLng,L=d-w,R=L/360,G=Math.round(R);if(this._prevLng=d,G){var K={};for(var re in this._tiles){var ue=this._tiles[re];ue.tileID=ue.tileID.unwrapTo(ue.tileID.wrap+G),K[ue.tileID.key]=ue}this._tiles=K;for(var be in this._timers)clearTimeout(this._timers[be]),delete this._timers[be];for(var xe in this._tiles){var Re=this._tiles[xe];this._setTileReloadTimer(xe,Re)}}},c.prototype.update=function(d){var w=this;if(this.transform=d,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(d),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var L;this.used?this._source.tileID?L=d.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(br){return new a.OverscaledTileID(br.canonical.z,br.wrap,br.canonical.z,br.canonical.x,br.canonical.y)}):(L=d.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(L=L.filter(function(br){return w._source.hasTile(br)}))):L=[];var R=d.coveringZoomLevel(this._source),G=Math.max(R-c.maxOverzooming,this._source.minzoom),K=Math.max(R+c.maxUnderzooming,this._source.minzoom),re=this._updateRetainedTiles(L,R);if(pt(this._source.type)){for(var ue={},be={},xe=Object.keys(re),Re=0,Ye=xe;Rethis._source.maxzoom){var ht=Ue.children(this._source.maxzoom)[0],Pt=this.getTile(ht);if(Pt&&Pt.hasData()){L[ht.key]=ht;continue}}else{var Nt=Ue.children(this._source.maxzoom);if(L[Nt[0].key]&&L[Nt[1].key]&&L[Nt[2].key]&&L[Nt[3].key])continue}for(var Jt=Je.wasRequested(),er=Ue.overscaledZ-1;er>=G;--er){var Zt=Ue.scaledTo(er);if(R[Zt.key]||(R[Zt.key]=!0,Je=this.getTile(Zt),!Je&&Jt&&(Je=this._addTile(Zt)),Je&&(L[Zt.key]=Zt,Jt=Je.wasRequested(),Je.hasData())))break}}}return L},c.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var d in this._tiles){for(var w=[],L=void 0,R=this._tiles[d].tileID;R.overscaledZ>0;){if(R.key in this._loadedParentTiles){L=this._loadedParentTiles[R.key];break}w.push(R.key);var G=R.scaledTo(R.overscaledZ-1);if(L=this._getLoadedTile(G),L)break;R=G}for(var K=0,re=w;K0)&&(w.hasData()&&w.state!=="reloading"?this._cache.add(w.tileID,w,w.getExpiryTimeout()):(w.aborted=!0,this._abortTile(w),this._unloadTile(w))))},c.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var d in this._tiles)this._removeTile(d);this._cache.reset()},c.prototype.tilesIn=function(d,w,L){var R=this,G=[],K=this.transform;if(!K)return G;for(var re=L?K.getCameraQueryGeometry(d):d,ue=d.map(function(er){return K.pointCoordinate(er)}),be=re.map(function(er){return K.pointCoordinate(er)}),xe=this.getIds(),Re=1/0,Ye=1/0,Ze=-1/0,Ue=-1/0,Je=0,ht=be;Je=0&&Er[1].y+br>=0){var Ar=ue.map(function(Ra){return rr.getTilePoint(Ra)}),Xr=be.map(function(Ra){return rr.getTilePoint(Ra)});G.push({tile:Zt,tileID:rr,queryGeometry:Ar,cameraQueryGeometry:Xr,scale:hr})}}},Jt=0;Jt=a.browser.now())return!0}return!1},c.prototype.setFeatureState=function(d,w,L){d=d||"_geojsonTileLayer",this._state.updateState(d,w,L)},c.prototype.removeFeatureState=function(d,w,L){d=d||"_geojsonTileLayer",this._state.removeFeatureState(d,w,L)},c.prototype.getFeatureState=function(d,w){return d=d||"_geojsonTileLayer",this._state.getState(d,w)},c.prototype.setDependencies=function(d,w,L){var R=this._tiles[d];R&&R.setDependencies(w,L)},c.prototype.reloadTilesForDependencies=function(d,w){for(var L in this._tiles){var R=this._tiles[L];R.hasDependency(d,w)&&this._reloadTile(L,"reloading")}this._cache.filter(function(G){return!G.hasDependency(d,w)})},c}(a.Evented);at.maxOverzooming=10,at.maxUnderzooming=3;function He(g,c){var b=Math.abs(g.wrap*2)-+(g.wrap<0),d=Math.abs(c.wrap*2)-+(c.wrap<0);return g.overscaledZ-c.overscaledZ||d-b||c.canonical.y-g.canonical.y||c.canonical.x-g.canonical.x}function pt(g){return g==="raster"||g==="image"||g==="video"}function Dt(){return new a.window.Worker(Tn.workerUrl)}var Rt="mapboxgl_preloaded_worker_pool",$t=function(){this.active={}};$t.prototype.acquire=function(c){if(!this.workers)for(this.workers=[];this.workers.length<$t.workerCount;)this.workers.push(new Dt);return this.active[c]=!0,this.workers.slice()},$t.prototype.release=function(c){delete this.active[c],this.numActive()===0&&(this.workers.forEach(function(b){b.terminate()}),this.workers=null)},$t.prototype.isPreloaded=function(){return!!this.active[Rt]},$t.prototype.numActive=function(){return Object.keys(this.active).length};var Yt=Math.floor(a.browser.hardwareConcurrency/2);$t.workerCount=Math.max(Math.min(Yt,6),1);var Tr;function Yr(){return Tr||(Tr=new $t),Tr}function Br(){var g=Yr();g.acquire(Rt)}function ca(){var g=Tr;g&&(g.isPreloaded()&&g.numActive()===1?(g.release(Rt),Tr=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))}function ua(g,c){var b={};for(var d in g)d!=="ref"&&(b[d]=g[d]);return a.refProperties.forEach(function(w){w in c&&(b[w]=c[w])}),b}function qa(g){g=g.slice();for(var c=Object.create(null),b=0;b0?(w-R)/G:0;return this.points[L].mult(1-K).add(this.points[b].mult(K))};var Za=function(c,b,d){var w=this.boxCells=[],L=this.circleCells=[];this.xCellCount=Math.ceil(c/d),this.yCellCount=Math.ceil(b/d);for(var R=0;Rthis.width||w<0||b>this.height)return L?!1:[];var G=[];if(c<=0&&b<=0&&this.width<=d&&this.height<=w){if(L)return!0;for(var K=0;K0:G}},Za.prototype._queryCircle=function(c,b,d,w,L){var R=c-d,G=c+d,K=b-d,re=b+d;if(G<0||R>this.width||re<0||K>this.height)return w?!1:[];var ue=[],be={hitTest:w,circle:{x:c,y:b,radius:d},seenUids:{box:{},circle:{}}};return this._forEachCell(R,K,G,re,this._queryCellCircle,ue,be,L),w?ue.length>0:ue},Za.prototype.query=function(c,b,d,w,L){return this._query(c,b,d,w,!1,L)},Za.prototype.hitTest=function(c,b,d,w,L){return this._query(c,b,d,w,!0,L)},Za.prototype.hitTestCircle=function(c,b,d,w){return this._queryCircle(c,b,d,!0,w)},Za.prototype._queryCell=function(c,b,d,w,L,R,G,K){var re=G.seenUids,ue=this.boxCells[L];if(ue!==null)for(var be=this.bboxes,xe=0,Re=ue;xe=be[Ze+0]&&w>=be[Ze+1]&&(!K||K(this.boxKeys[Ye]))){if(G.hitTest)return R.push(!0),!0;R.push({key:this.boxKeys[Ye],x1:be[Ze],y1:be[Ze+1],x2:be[Ze+2],y2:be[Ze+3]})}}}var Ue=this.circleCells[L];if(Ue!==null)for(var Je=this.circles,ht=0,Pt=Ue;htG*G+K*K},Za.prototype._circleAndRectCollide=function(c,b,d,w,L,R,G){var K=(R-w)/2,re=Math.abs(c-(w+K));if(re>K+d)return!1;var ue=(G-L)/2,be=Math.abs(b-(L+ue));if(be>ue+d)return!1;if(re<=K||be<=ue)return!0;var xe=re-K,Re=be-ue;return xe*xe+Re*Re<=d*d};function Kn(g,c,b,d,w){var L=a.create();return c?(a.scale(L,L,[1/w,1/w,1]),b||a.rotateZ(L,L,d.angle)):a.multiply(L,d.labelPlaneMatrix,g),L}function hu(g,c,b,d,w){if(c){var L=a.clone(g);return a.scale(L,L,[w,w,1]),b||a.rotateZ(L,L,-d.angle),L}else return d.glCoordMatrix}function Vi(g,c){var b=[g.x,g.y,0,1];Zf(b,b,c);var d=b[3];return{point:new a.Point(b[0]/d,b[1]/d),signedDistanceFromCamera:d}}function pl(g,c){return .5+.5*(g/c)}function Qd(g,c){var b=g[0]/g[3],d=g[1]/g[3],w=b>=-c[0]&&b<=c[0]&&d>=-c[1]&&d<=c[1];return w}function qc(g,c,b,d,w,L,R,G){var K=d?g.textSizeData:g.iconSizeData,re=a.evaluateSizeForZoom(K,b.transform.zoom),ue=[256/b.width*2+1,256/b.height*2+1],be=d?g.text.dynamicLayoutVertexArray:g.icon.dynamicLayoutVertexArray;be.clear();for(var xe=g.lineVertexArray,Re=d?g.text.placedSymbolArray:g.icon.placedSymbolArray,Ye=b.transform.width/b.transform.height,Ze=!1,Ue=0;UeL)return{useVertical:!0}}return(g===a.WritingMode.vertical?c.yb.x)?{needsFlipping:!0}:null}function vv(g,c,b,d,w,L,R,G,K,re,ue,be,xe,Re){var Ye=c/24,Ze=g.lineOffsetX*Ye,Ue=g.lineOffsetY*Ye,Je;if(g.numGlyphs>1){var ht=g.glyphStartIndex+g.numGlyphs,Pt=g.lineStartIndex,Nt=g.lineStartIndex+g.lineLength,Jt=Nc(Ye,G,Ze,Ue,b,ue,be,g,K,L,xe);if(!Jt)return{notEnoughRoom:!0};var er=Vi(Jt.first.point,R).point,Zt=Vi(Jt.last.point,R).point;if(d&&!b){var rr=hv(g.writingMode,er,Zt,Re);if(rr)return rr}Je=[Jt.first];for(var hr=g.glyphStartIndex+1;hr0?Xr.point:vu(be,Ar,br,1,w),xa=hv(g.writingMode,br,Ra,Re);if(xa)return xa}var qr=ml(Ye*G.getoffsetX(g.glyphStartIndex),Ze,Ue,b,ue,be,g.segment,g.lineStartIndex,g.lineStartIndex+g.lineLength,K,L,xe);if(!qr)return{notEnoughRoom:!0};Je=[qr]}for(var Sa=0,ia=Je;Sa0?1:-1,Ye=0;d&&(Re*=-1,Ye=Math.PI),Re<0&&(Ye+=Math.PI);for(var Ze=Re>0?G+R:G+R+1,Ue=w,Je=w,ht=0,Pt=0,Nt=Math.abs(xe),Jt=[];ht+Pt<=Nt;){if(Ze+=Re,Ze=K)return null;if(Je=Ue,Jt.push(Ue),Ue=be[Ze],Ue===void 0){var er=new a.Point(re.getx(Ze),re.gety(Ze)),Zt=Vi(er,ue);if(Zt.signedDistanceFromCamera>0)Ue=be[Ze]=Zt.point;else{var rr=Ze-Re,hr=ht===0?L:new a.Point(re.getx(rr),re.gety(rr));Ue=vu(hr,er,Je,Nt-ht+1,ue)}}ht+=Pt,Pt=Je.dist(Ue)}var br=(Nt-ht)/Pt,Er=Ue.sub(Je),Ar=Er.mult(br)._add(Je);Ar._add(Er._unit()._perp()._mult(b*Re));var Xr=Ye+Math.atan2(Ue.y-Je.y,Ue.x-Je.x);return Jt.push(Ar),{point:Ar,angle:Xr,path:Jt}}var $d=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Ku(g,c){for(var b=0;b=1;Ya--)ia.push(qr.path[Ya]);for(var Va=1;Va0){for(var na=ia[0].clone(),Ba=ia[0].clone(),rn=1;rn=Xr.x&&Ba.x<=Ra.x&&na.y>=Xr.y&&Ba.y<=Ra.y?yi=[ia]:Ba.xRa.x||Ba.yRa.y?yi=[]:yi=a.clipLine([ia],Xr.x,Xr.y,Ra.x,Ra.y)}for(var Rn=0,Ls=yi;Rn=this.screenRightBoundary||wthis.screenBottomBoundary},Ho.prototype.isInsideGrid=function(c,b,d,w){return d>=0&&c=0&&b0){var Nt;return this.prevPlacement&&this.prevPlacement.variableOffsets[xe.crossTileID]&&this.prevPlacement.placements[xe.crossTileID]&&this.prevPlacement.placements[xe.crossTileID].text&&(Nt=this.prevPlacement.variableOffsets[xe.crossTileID].anchor),this.variableOffsets[xe.crossTileID]={textOffset:Ue,width:d,height:w,anchor:c,textBoxScale:L,prevAnchor:Nt},this.markUsedJustification(Re,c,xe,Ye),Re.allowVerticalPlacement&&(this.markUsedOrientation(Re,Ye,xe),this.placedOrientations[xe.crossTileID]=Ye),{shift:Je,placedGlyphBoxes:ht}}},oo.prototype.placeLayerBucketPart=function(c,b,d){var w=this,L=c.parameters,R=L.bucket,G=L.layout,K=L.posMatrix,re=L.textLabelPlaneMatrix,ue=L.labelToScreenMatrix,be=L.textPixelRatio,xe=L.holdingForFade,Re=L.collisionBoxArray,Ye=L.partiallyEvaluatedTextSize,Ze=L.collisionGroup,Ue=G.get("text-optional"),Je=G.get("icon-optional"),ht=G.get("text-allow-overlap"),Pt=G.get("icon-allow-overlap"),Nt=G.get("text-rotation-alignment")==="map",Jt=G.get("text-pitch-alignment")==="map",er=G.get("icon-text-fit")!=="none",Zt=G.get("symbol-z-order")==="viewport-y",rr=ht&&(Pt||!R.hasIconData()||Je),hr=Pt&&(ht||!R.hasTextData()||Ue);!R.collisionArrays&&Re&&R.deserializeCollisionBoxes(Re);var br=function(qr,Sa){if(!b[qr.crossTileID]){if(xe){w.placements[qr.crossTileID]=new du(!1,!1,!1);return}var ia=!1,Ya=!1,Va=!0,Si=null,La={box:null,offscreen:null},yi={box:null,offscreen:null},na=null,Ba=null,rn=null,Rn=0,Ls=0,Ds=0;Sa.textFeatureIndex?Rn=Sa.textFeatureIndex:qr.useRuntimeCollisionCircles&&(Rn=qr.featureIndex),Sa.verticalTextFeatureIndex&&(Ls=Sa.verticalTextFeatureIndex);var $s=Sa.textBox;if($s){var Ol=function(fn){var Qo=a.WritingMode.horizontal;if(R.allowVerticalPlacement&&!fn&&w.prevPlacement){var $o=w.prevPlacement.placedOrientations[qr.crossTileID];$o&&(w.placedOrientations[qr.crossTileID]=$o,Qo=$o,w.markUsedOrientation(R,Qo,qr))}return Qo},oc=function(fn,Qo){if(R.allowVerticalPlacement&&qr.numVerticalGlyphVertices>0&&Sa.verticalTextBox)for(var $o=0,Vp=R.writingModes;$o0&&(Ko=Ko.filter(function(fn){return fn!==Po.anchor}),Ko.unshift(Po.anchor))}var el=function(fn,Qo,$o){for(var Vp=fn.x2-fn.x1,oy=fn.y2-fn.y1,l3=qr.textBoxScale,u3=er&&!Pt?Qo:null,Xv={box:[],offscreen:!1},f3=ht?Ko.length*2:Ko.length,Hp=0;Hp=Ko.length,sy=w.attemptAnchorPlacement(c3,fn,Vp,oy,l3,Nt,Jt,be,K,Ze,h3,qr,R,$o,u3);if(sy&&(Xv=sy.placedGlyphBoxes,Xv&&Xv.box&&Xv.box.length)){ia=!0,Si=sy.shift;break}}return Xv},ku=function(){return el($s,Sa.iconBox,a.WritingMode.horizontal)},tl=function(){var fn=Sa.verticalTextBox,Qo=La&&La.box&&La.box.length;return R.allowVerticalPlacement&&!Qo&&qr.numVerticalGlyphVertices>0&&fn?el(fn,Sa.verticalIconBox,a.WritingMode.vertical):{box:null,offscreen:null}};oc(ku,tl),La&&(ia=La.box,Va=La.offscreen);var qp=Ol(La&&La.box);if(!ia&&w.prevPlacement){var ch=w.prevPlacement.variableOffsets[qr.crossTileID];ch&&(w.variableOffsets[qr.crossTileID]=ch,w.markUsedJustification(R,ch.anchor,qr,qp))}}else{var Ul=function(fn,Qo){var $o=w.collisionIndex.placeCollisionBox(fn,ht,be,K,Ze.predicate);return $o&&$o.box&&$o.box.length&&(w.markUsedOrientation(R,Qo,qr),w.placedOrientations[qr.crossTileID]=Qo),$o},Do=function(){return Ul($s,a.WritingMode.horizontal)},Vl=function(){var fn=Sa.verticalTextBox;return R.allowVerticalPlacement&&qr.numVerticalGlyphVertices>0&&fn?Ul(fn,a.WritingMode.vertical):{box:null,offscreen:null}};oc(Do,Vl),Ol(La&&La.box&&La.box.length)}}if(na=La,ia=na&&na.box&&na.box.length>0,Va=na&&na.offscreen,qr.useRuntimeCollisionCircles){var Hn=R.text.placedSymbolArray.get(qr.centerJustifiedTextSymbolIndex),Np=a.evaluateSizeForFeature(R.textSizeData,Ye,Hn),Wv=G.get("text-padding"),xo=qr.collisionCircleDiameter;Ba=w.collisionIndex.placeCollisionCircles(ht,Hn,R.lineVertexArray,R.glyphOffsetArray,Np,K,re,ue,d,Jt,Ze.predicate,xo,Wv),ia=ht||Ba.circles.length>0&&!Ba.collisionDetected,Va=Va&&Ba.offscreen}if(Sa.iconFeatureIndex&&(Ds=Sa.iconFeatureIndex),Sa.iconBox){var hh=function(fn){var Qo=er&&Si?mv(fn,Si.x,Si.y,Nt,Jt,w.transform.angle):fn;return w.collisionIndex.placeCollisionBox(Qo,Pt,be,K,Ze.predicate)};yi&&yi.box&&yi.box.length&&Sa.verticalIconBox?(rn=hh(Sa.verticalIconBox),Ya=rn.box.length>0):(rn=hh(Sa.iconBox),Ya=rn.box.length>0),Va=Va&&rn.offscreen}var Bp=Ue||qr.numHorizontalGlyphVertices===0&&qr.numVerticalGlyphVertices===0,Op=Je||qr.numIconVertices===0;if(!Bp&&!Op?Ya=ia=Ya&&ia:Op?Bp||(Ya=Ya&&ia):ia=Ya&&ia,ia&&na&&na.box&&(yi&&yi.box&&Ls?w.collisionIndex.insertCollisionBox(na.box,G.get("text-ignore-placement"),R.bucketInstanceId,Ls,Ze.ID):w.collisionIndex.insertCollisionBox(na.box,G.get("text-ignore-placement"),R.bucketInstanceId,Rn,Ze.ID)),Ya&&rn&&w.collisionIndex.insertCollisionBox(rn.box,G.get("icon-ignore-placement"),R.bucketInstanceId,Ds,Ze.ID),Ba&&(ia&&w.collisionIndex.insertCollisionCircles(Ba.circles,G.get("text-ignore-placement"),R.bucketInstanceId,Rn,Ze.ID),d)){var Up=R.bucketInstanceId,vh=w.collisionCircleArrays[Up];vh===void 0&&(vh=w.collisionCircleArrays[Up]=new ep);for(var dh=0;dh=0;--Ar){var Xr=Er[Ar];br(R.symbolInstances.get(Xr),R.collisionArrays[Xr])}else for(var Ra=c.symbolInstanceStart;Ra=0&&(R>=0&&ue!==R?c.text.placedSymbolArray.get(ue).crossTileID=0:c.text.placedSymbolArray.get(ue).crossTileID=d.crossTileID)}},oo.prototype.markUsedOrientation=function(c,b,d){for(var w=b===a.WritingMode.horizontal||b===a.WritingMode.horizontalOnly?b:0,L=b===a.WritingMode.vertical?b:0,R=[d.leftJustifiedTextSymbolIndex,d.centerJustifiedTextSymbolIndex,d.rightJustifiedTextSymbolIndex],G=0,K=R;G0||Jt>0,br=Pt.numIconVertices>0,Er=w.placedOrientations[Pt.crossTileID],Ar=Er===a.WritingMode.vertical,Xr=Er===a.WritingMode.horizontal||Er===a.WritingMode.horizontalOnly;if(hr){var Ra=ef(rr.text),xa=Ar?kr:Ra;Ye(c.text,Nt,xa);var qr=Xr?kr:Ra;Ye(c.text,Jt,qr);var Sa=rr.text.isHidden();[Pt.rightJustifiedTextSymbolIndex,Pt.centerJustifiedTextSymbolIndex,Pt.leftJustifiedTextSymbolIndex].forEach(function(Ds){Ds>=0&&(c.text.placedSymbolArray.get(Ds).hidden=Sa||Ar?1:0)}),Pt.verticalPlacedTextSymbolIndex>=0&&(c.text.placedSymbolArray.get(Pt.verticalPlacedTextSymbolIndex).hidden=Sa||Xr?1:0);var ia=w.variableOffsets[Pt.crossTileID];ia&&w.markUsedJustification(c,ia.anchor,Pt,Er);var Ya=w.placedOrientations[Pt.crossTileID];Ya&&(w.markUsedJustification(c,"left",Pt,Ya),w.markUsedOrientation(c,Ya,Pt))}if(br){var Va=ef(rr.icon),Si=!(xe&&Pt.verticalPlacedIconSymbolIndex&&Ar);if(Pt.placedIconSymbolIndex>=0){var La=Si?Va:kr;Ye(c.icon,Pt.numIconVertices,La),c.icon.placedSymbolArray.get(Pt.placedIconSymbolIndex).hidden=rr.icon.isHidden()}if(Pt.verticalPlacedIconSymbolIndex>=0){var yi=Si?kr:Va;Ye(c.icon,Pt.numVerticalIconVertices,yi),c.icon.placedSymbolArray.get(Pt.verticalPlacedIconSymbolIndex).hidden=rr.icon.isHidden()}}if(c.hasIconCollisionBoxData()||c.hasTextCollisionBoxData()){var na=c.collisionArrays[ht];if(na){var Ba=new a.Point(0,0);if(na.textBox||na.verticalTextBox){var rn=!0;if(re){var Rn=w.variableOffsets[er];Rn?(Ba=pv(Rn.anchor,Rn.width,Rn.height,Rn.textOffset,Rn.textBoxScale),ue&&Ba._rotate(be?w.transform.angle:-w.transform.angle)):rn=!1}na.textBox&&Wt(c.textCollisionBox.collisionVertexArray,rr.text.placed,!rn||Ar,Ba.x,Ba.y),na.verticalTextBox&&Wt(c.textCollisionBox.collisionVertexArray,rr.text.placed,!rn||Xr,Ba.x,Ba.y)}var Ls=!!(!Xr&&na.verticalIconBox);na.iconBox&&Wt(c.iconCollisionBox.collisionVertexArray,rr.icon.placed,Ls,xe?Ba.x:0,xe?Ba.y:0),na.verticalIconBox&&Wt(c.iconCollisionBox.collisionVertexArray,rr.icon.placed,!Ls,xe?Ba.x:0,xe?Ba.y:0)}}},Ue=0;Uec},oo.prototype.setStale=function(){this.stale=!0};function Wt(g,c,b,d,w){g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0)}var Or=Math.pow(2,25),tp=Math.pow(2,24),pu=Math.pow(2,17),sn=Math.pow(2,16),gl=Math.pow(2,9),xs=Math.pow(2,8),$u=Math.pow(2,1);function ef(g){if(g.opacity===0&&!g.placed)return 0;if(g.opacity===1&&g.placed)return 4294967295;var c=g.placed?1:0,b=Math.floor(g.opacity*127);return b*Or+c*tp+b*pu+c*sn+b*gl+c*xs+b*$u+c}var kr=0,wa=function(c){this._sortAcrossTiles=c.layout.get("symbol-z-order")!=="viewport-y"&&c.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};wa.prototype.continuePlacement=function(c,b,d,w,L){for(var R=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var G=c[this._currentPlacementIndex],K=b[G],re=this.placement.collisionIndex.transform.zoom;if(K.type==="symbol"&&(!K.minzoom||K.minzoom<=re)&&(!K.maxzoom||K.maxzoom>re)){this._inProgressLayer||(this._inProgressLayer=new wa(K));var ue=this._inProgressLayer.continuePlacement(d[K.source],this.placement,this._showCollisionBoxes,K,R);if(ue)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Ta.prototype.commit=function(c){return this.placement.commit(c),this.placement};var bs=512/a.EXTENT/2,_l=function(c,b,d){this.tileID=c,this.indexedSymbolInstances={},this.bucketInstanceId=d;for(var w=0;wc.overscaledZ)for(var re in K){var ue=K[re];ue.tileID.isChildOf(c)&&ue.findMatches(b.symbolInstances,c,R)}else{var be=c.scaledTo(Number(G)),xe=K[be.key];xe&&xe.findMatches(b.symbolInstances,c,R)}}for(var Re=0;Re0)throw new Error("Unimplemented: "+R.map(function(G){return G.command}).join(", ")+".");return L.forEach(function(G){G.command!=="setTransition"&&w[G.command].apply(w,G.args)}),this.stylesheet=d,!0},c.prototype.addImage=function(d,w){if(this.getImage(d))return this.fire(new a.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(d,w),this._afterImageUpdated(d)},c.prototype.updateImage=function(d,w){this.imageManager.updateImage(d,w)},c.prototype.getImage=function(d){return this.imageManager.getImage(d)},c.prototype.removeImage=function(d){if(!this.getImage(d))return this.fire(new a.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(d),this._afterImageUpdated(d)},c.prototype._afterImageUpdated=function(d){this._availableImages=this.imageManager.listImages(),this._changedImages[d]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new a.Event("data",{dataType:"style"}))},c.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},c.prototype.addSource=function(d,w,L){var R=this;if(L===void 0&&(L={}),this._checkLoaded(),this.sourceCaches[d]!==void 0)throw new Error("There is already a source with this ID");if(!w.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(w).join(", ")+".");var G=["vector","raster","geojson","video","image"],K=G.indexOf(w.type)>=0;if(!(K&&this._validate(a.validateStyle.source,"sources."+d,w,null,L))){this.map&&this.map._collectResourceTiming&&(w.collectResourceTiming=!0);var re=this.sourceCaches[d]=new at(d,w,this.dispatcher);re.style=this,re.setEventedParent(this,function(){return{isSourceLoaded:R.loaded(),source:re.serialize(),sourceId:d}}),re.onAdd(this.map),this._changed=!0}},c.prototype.removeSource=function(d){if(this._checkLoaded(),this.sourceCaches[d]===void 0)throw new Error("There is no source with this ID");for(var w in this._layers)if(this._layers[w].source===d)return this.fire(new a.ErrorEvent(new Error('Source "'+d+'" cannot be removed while layer "'+w+'" is using it.')));var L=this.sourceCaches[d];delete this.sourceCaches[d],delete this._updatedSources[d],L.fire(new a.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:d})),L.setEventedParent(null),L.clearTiles(),L.onRemove&&L.onRemove(this.map),this._changed=!0},c.prototype.setGeoJSONSourceData=function(d,w){this._checkLoaded();var L=this.sourceCaches[d].getSource();L.setData(w),this._changed=!0},c.prototype.getSource=function(d){return this.sourceCaches[d]&&this.sourceCaches[d].getSource()},c.prototype.addLayer=function(d,w,L){L===void 0&&(L={}),this._checkLoaded();var R=d.id;if(this.getLayer(R)){this.fire(new a.ErrorEvent(new Error('Layer with id "'+R+'" already exists on this map')));return}var G;if(d.type==="custom"){if(us(this,a.validateCustomStyleLayer(d)))return;G=a.createStyleLayer(d)}else{if(typeof d.source=="object"&&(this.addSource(R,d.source),d=a.clone$1(d),d=a.extend(d,{source:R})),this._validate(a.validateStyle.layer,"layers."+R,d,{arrayIndex:-1},L))return;G=a.createStyleLayer(d),this._validateLayer(G),G.setEventedParent(this,{layer:{id:R}}),this._serializedLayers[G.id]=G.serialize()}var K=w?this._order.indexOf(w):this._order.length;if(w&&K===-1){this.fire(new a.ErrorEvent(new Error('Layer with id "'+w+'" does not exist on this map.')));return}if(this._order.splice(K,0,R),this._layerOrderChanged=!0,this._layers[R]=G,this._removedLayers[R]&&G.source&&G.type!=="custom"){var re=this._removedLayers[R];delete this._removedLayers[R],re.type!==G.type?this._updatedSources[G.source]="clear":(this._updatedSources[G.source]="reload",this.sourceCaches[G.source].pause())}this._updateLayer(G),G.onAdd&&G.onAdd(this.map)},c.prototype.moveLayer=function(d,w){this._checkLoaded(),this._changed=!0;var L=this._layers[d];if(!L){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be moved.")));return}if(d!==w){var R=this._order.indexOf(d);this._order.splice(R,1);var G=w?this._order.indexOf(w):this._order.length;if(w&&G===-1){this.fire(new a.ErrorEvent(new Error('Layer with id "'+w+'" does not exist on this map.')));return}this._order.splice(G,0,d),this._layerOrderChanged=!0}},c.prototype.removeLayer=function(d){this._checkLoaded();var w=this._layers[d];if(!w){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be removed.")));return}w.setEventedParent(null);var L=this._order.indexOf(d);this._order.splice(L,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[d]=w,delete this._layers[d],delete this._serializedLayers[d],delete this._updatedLayers[d],delete this._updatedPaintProps[d],w.onRemove&&w.onRemove(this.map)},c.prototype.getLayer=function(d){return this._layers[d]},c.prototype.hasLayer=function(d){return d in this._layers},c.prototype.setLayerZoomRange=function(d,w,L){this._checkLoaded();var R=this.getLayer(d);if(!R){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot have zoom extent.")));return}R.minzoom===w&&R.maxzoom===L||(w!=null&&(R.minzoom=w),L!=null&&(R.maxzoom=L),this._updateLayer(R))},c.prototype.setFilter=function(d,w,L){L===void 0&&(L={}),this._checkLoaded();var R=this.getLayer(d);if(!R){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be filtered.")));return}if(!a.deepEqual(R.filter,w)){if(w==null){R.filter=void 0,this._updateLayer(R);return}this._validate(a.validateStyle.filter,"layers."+R.id+".filter",w,null,L)||(R.filter=a.clone$1(w),this._updateLayer(R))}},c.prototype.getFilter=function(d){return a.clone$1(this.getLayer(d).filter)},c.prototype.setLayoutProperty=function(d,w,L,R){R===void 0&&(R={}),this._checkLoaded();var G=this.getLayer(d);if(!G){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be styled.")));return}a.deepEqual(G.getLayoutProperty(w),L)||(G.setLayoutProperty(w,L,R),this._updateLayer(G))},c.prototype.getLayoutProperty=function(d,w){var L=this.getLayer(d);if(!L){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style.")));return}return L.getLayoutProperty(w)},c.prototype.setPaintProperty=function(d,w,L,R){R===void 0&&(R={}),this._checkLoaded();var G=this.getLayer(d);if(!G){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be styled.")));return}if(!a.deepEqual(G.getPaintProperty(w),L)){var K=G.setPaintProperty(w,L,R);K&&this._updateLayer(G),this._changed=!0,this._updatedPaintProps[d]=!0}},c.prototype.getPaintProperty=function(d,w){return this.getLayer(d).getPaintProperty(w)},c.prototype.setFeatureState=function(d,w){this._checkLoaded();var L=d.source,R=d.sourceLayer,G=this.sourceCaches[L];if(G===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+L+"' does not exist in the map's style.")));return}var K=G.getSource().type;if(K==="geojson"&&R){this.fire(new a.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(K==="vector"&&!R){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}d.id===void 0&&this.fire(new a.ErrorEvent(new Error("The feature id parameter must be provided."))),G.setFeatureState(R,d.id,w)},c.prototype.removeFeatureState=function(d,w){this._checkLoaded();var L=d.source,R=this.sourceCaches[L];if(R===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+L+"' does not exist in the map's style.")));return}var G=R.getSource().type,K=G==="vector"?d.sourceLayer:void 0;if(G==="vector"&&!K){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(w&&typeof d.id!="string"&&typeof d.id!="number"){this.fire(new a.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}R.removeFeatureState(K,d.id,w)},c.prototype.getFeatureState=function(d){this._checkLoaded();var w=d.source,L=d.sourceLayer,R=this.sourceCaches[w];if(R===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+w+"' does not exist in the map's style.")));return}var G=R.getSource().type;if(G==="vector"&&!L){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return d.id===void 0&&this.fire(new a.ErrorEvent(new Error("The feature id parameter must be provided."))),R.getFeatureState(L,d.id)},c.prototype.getTransition=function(){return a.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},c.prototype.serialize=function(){return a.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:a.mapObject(this.sourceCaches,function(d){return d.serialize()}),layers:this._serializeLayers(this._order)},function(d){return d!==void 0})},c.prototype._updateLayer=function(d){this._updatedLayers[d.id]=!0,d.source&&!this._updatedSources[d.source]&&this.sourceCaches[d.source].getSource().type!=="raster"&&(this._updatedSources[d.source]="reload",this.sourceCaches[d.source].pause()),this._changed=!0},c.prototype._flattenAndSortRenderedFeatures=function(d){for(var w=this,L=function(Xr){return w._layers[Xr].type==="fill-extrusion"},R={},G=[],K=this._order.length-1;K>=0;K--){var re=this._order[K];if(L(re)){R[re]=K;for(var ue=0,be=d;ue=0;ht--){var Pt=this._order[ht];if(L(Pt))for(var Nt=G.length-1;Nt>=0;Nt--){var Jt=G[Nt].feature;if(R[Jt.layer.id] .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var s1=me((tbe,HV)=>{"use strict";var OV=Bt(),UV=Oa().defaultLine,Rve=Mb().attributes,Fve=qo(),qve=kc().textposition,Nve=il().overrideAll,Bve=Ri().templatedArray,iA=zc(),VV=Fve({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});VV.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var Ove=HV.exports=Nve({_arrayAttrRegexps:[OV.counterRegex("mapbox",".layers",!0)],domain:Rve({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:iA.styleValuesMapbox.concat(iA.styleValuesNonMapbox),dflt:iA.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:Bve("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:UV},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:UV}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:VV,textposition:OV.extendFlat({},qve,{arrayOk:!1})}})},"plot","from-root");Ove.uirevision={valType:"any",editType:"none"}});var Db=me((rbe,YV)=>{"use strict";var Uve=nl().hovertemplateAttrs,Vve=nl().texttemplateAttrs,Hve=px(),l1=aA(),_m=kc(),GV=s1(),Gve=ys(),Zve=xc(),Hd=mn().extendFlat,Yve=il().overrideAll,Wve=s1(),ZV=l1.line,xm=l1.marker;YV.exports=Yve({lon:l1.lon,lat:l1.lat,cluster:{enabled:{valType:"boolean"},maxzoom:Hd({},Wve.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:Hd({},xm.opacity,{dflt:1})},mode:Hd({},_m.mode,{dflt:"markers"}),text:Hd({},_m.text,{}),texttemplate:Vve({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:Hd({},_m.hovertext,{}),line:{color:ZV.color,width:ZV.width},connectgaps:_m.connectgaps,marker:Hd({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:xm.opacity,size:xm.size,sizeref:xm.sizeref,sizemin:xm.sizemin,sizemode:xm.sizemode},Zve("marker")),fill:l1.fill,fillcolor:Hve(),textfont:GV.layers.symbol.textfont,textposition:GV.layers.symbol.textposition,below:{valType:"string"},selected:{marker:_m.selected.marker},unselected:{marker:_m.unselected.marker},hoverinfo:Hd({},Gve.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:Uve()},"calc","nested")});var nA=me((abe,WV)=>{"use strict";var Xve=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];WV.exports={isSupportedFont:function(e){return Xve.indexOf(e)!==-1}}});var JV=me((ibe,jV)=>{"use strict";var u1=Bt(),oA=rs(),jve=P6(),Jve=z6(),Kve=I6(),Qve=R6(),XV=Db(),$ve=nA().isSupportedFont;jV.exports=function(t,r,i,a){function s(z,B){return u1.coerce(t,r,XV,z,B)}function l(z,B){return u1.coerce2(t,r,XV,z,B)}var f=ede(t,r,s);if(!f){r.visible=!1;return}if(s("text"),s("texttemplate"),s("hovertext"),s("hovertemplate"),s("mode"),s("below"),oA.hasMarkers(r)){jve(t,r,i,a,s,{noLine:!0,noAngle:!0}),s("marker.allowoverlap"),s("marker.angle");var h=r.marker;h.symbol!=="circle"&&(u1.isArrayOrTypedArray(h.size)&&(h.size=h.size[0]),u1.isArrayOrTypedArray(h.color)&&(h.color=h.color[0]))}oA.hasLines(r)&&(Jve(t,r,i,a,s,{noDash:!0}),s("connectgaps"));var v=l("cluster.maxzoom"),m=l("cluster.step"),_=l("cluster.color",r.marker&&r.marker.color||i),T=l("cluster.size"),S=l("cluster.opacity"),C=v!==!1||m!==!1||_!==!1||T!==!1||S!==!1,E=s("cluster.enabled",C);if(E||oA.hasText(r)){var L=a.font.family;Kve(t,r,a,s,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:$ve(L)?L:"Open Sans Regular",weight:a.font.weight,style:a.font.style,size:a.font.size,color:a.font.color}})}s("fill"),r.fill!=="none"&&Qve(t,r,i,s),u1.coerceSelectionMarkerOpacity(r,s)};function ede(e,t,r){var i=r("lon")||[],a=r("lat")||[],s=Math.min(i.length,a.length);return t._length=s,s}});var sA=me((nbe,QV)=>{"use strict";var KV=Xi();QV.exports=function(t,r,i){var a={},s=i[r.subplot]._subplot,l=s.mockAxis,f=t.lonlat;return a.lonLabel=KV.tickText(l,l.c2l(f[0]),!0).text,a.latLabel=KV.tickText(l,l.c2l(f[1]),!0).text,a}});var aH=me((obe,rH)=>{"use strict";var lA=Da(),$V=Zi().BADNUM,tde=N6(),rde=Vg(),ade=Gx(),ide=Bt().isArrayOrTypedArray,eH=Bt()._;function tH(e){return e&&typeof e=="string"}rH.exports=function(t,r){var i=ide(r.locations),a=i?r.locations.length:r._length,s=new Array(a),l;r.geojson?l=function(T){return tH(T)||lA(T)}:l=tH;for(var f=0;f{"use strict";var nde=Zi().BADNUM;f1.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,i=[],a=[],s=0;s0&&(i.push(a),a=[])}return a.length>0&&i.push(a),i};f1.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};f1.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{"use strict";var iH=Bt();nH.exports=function(t,r){var i=t.split(" "),a=i[0],s=i[1],l=iH.isArrayOrTypedArray(r)?iH.mean(r):r,f=.5+l/100,h=1.5+l/100,v=["",""],m=[0,0];switch(a){case"top":v[0]="top",m[1]=-h;break;case"bottom":v[0]="bottom",m[1]=h;break}switch(s){case"left":v[1]="right",m[0]=-f;break;case"right":v[1]="left",m[0]=f;break}var _;return v[0]&&v[1]?_=v.join("-"):v[0]?_=v[0]:v[1]?_=v[1]:_="center",{anchor:_,offset:m}}});var cH=me((ube,fH)=>{"use strict";var lH=Da(),ko=Bt(),ode=Zi().BADNUM,Ib=Pb(),oH=L0(),sde=bi(),lde=a5(),Rb=rs(),ude=nA().isSupportedFont,fde=uA(),cde=bc().appendArrayPointValue,hde=co().NEWLINES,vde=co().BR_TAG_ALL;fH.exports=function(t,r){var i=r[0].trace,a=i.visible===!0&&i._length!==0,s=i.fill!=="none",l=Rb.hasLines(i),f=Rb.hasMarkers(i),h=Rb.hasText(i),v=f&&i.marker.symbol==="circle",m=f&&i.marker.symbol!=="circle",_=i.cluster&&i.cluster.enabled,T=zb("fill"),S=zb("line"),C=zb("circle"),E=zb("symbol"),L={fill:T,line:S,circle:C,symbol:E};if(!a)return L;var z;if((s||l)&&(z=Ib.calcTraceToLineCoords(r)),s&&(T.geojson=Ib.makePolygon(z),T.layout.visibility="visible",ko.extendFlat(T.paint,{"fill-color":i.fillcolor})),l&&(S.geojson=Ib.makeLine(z),S.layout.visibility="visible",ko.extendFlat(S.paint,{"line-width":i.line.width,"line-color":i.line.color,"line-opacity":i.opacity})),v){var B=dde(r);C.geojson=B.geojson,C.layout.visibility="visible",_&&(C.filter=["!",["has","point_count"]],L.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":cA(i.cluster.color,i.cluster.step),"circle-radius":cA(i.cluster.size,i.cluster.step),"circle-opacity":cA(i.cluster.opacity,i.cluster.step)}},L.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":sH(i),"text-size":12}}),ko.extendFlat(C.paint,{"circle-color":B.mcc,"circle-radius":B.mrc,"circle-opacity":B.mo})}if(v&&_&&(C.filter=["!",["has","point_count"]]),(m||h)&&(E.geojson=pde(r,t),ko.extendFlat(E.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),m&&(ko.extendFlat(E.layout,{"icon-size":i.marker.size/10}),"angle"in i.marker&&i.marker.angle!=="auto"&&ko.extendFlat(E.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),E.layout["icon-allow-overlap"]=i.marker.allowoverlap,ko.extendFlat(E.paint,{"icon-opacity":i.opacity*i.marker.opacity,"icon-color":i.marker.color})),h)){var q=(i.marker||{}).size,I=fde(i.textposition,q);ko.extendFlat(E.layout,{"text-size":i.textfont.size,"text-anchor":I.anchor,"text-offset":I.offset,"text-font":sH(i)}),ko.extendFlat(E.paint,{"text-color":i.textfont.color,"text-opacity":i.opacity})}return L};function zb(e){return{type:e,geojson:Ib.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function dde(e){var t=e[0].trace,r=t.marker,i=t.selectedpoints,a=ko.isArrayOrTypedArray(r.color),s=ko.isArrayOrTypedArray(r.size),l=ko.isArrayOrTypedArray(r.opacity),f;function h(q){return t.opacity*q}function v(q){return q/2}var m;a&&(oH.hasColorscale(t,"marker")?m=oH.makeColorScaleFuncFromTrace(r):m=ko.identity);var _;s&&(_=lde(t));var T;l&&(T=function(q){var I=lH(q)?+ko.constrain(q,0,1):0;return h(I)});var S=[];for(f=0;f850?f+=" Black":a>750?f+=" Extra Bold":a>650?f+=" Bold":a>550?f+=" Semi Bold":a>450?f+=" Medium":a>350?f+=" Regular":a>250?f+=" Light":a>150?f+=" Extra Light":f+=" Thin"):s.slice(0,2).join(" ")==="Open Sans"?(f="Open Sans",a>750?f+=" Extrabold":a>650?f+=" Bold":a>550?f+=" Semibold":a>350?f+=" Regular":f+=" Light"):s.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(f="Klokantech Noto Sans",s[3]==="CJK"&&(f+=" CJK"),f+=a>500?" Bold":" Regular")),l&&(f+=" Italic"),f==="Open Sans Regular Italic"?f="Open Sans Italic":f==="Open Sans Regular Bold"?f="Open Sans Bold":f==="Open Sans Regular Bold Italic"?f="Open Sans Bold Italic":f==="Klokantech Noto Sans Regular Italic"&&(f="Klokantech Noto Sans Italic"),ude(f)||(f=r);var h=f.split(", ");return h}});var pH=me((fbe,dH)=>{"use strict";var mde=Bt(),hH=cH(),bm=zc().traceLayerPrefix,fu={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function vH(e,t,r,i){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=i,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:bm+t+"-fill",line:bm+t+"-line",circle:bm+t+"-circle",symbol:bm+t+"-symbol",cluster:bm+t+"-cluster",clusterCount:bm+t+"-cluster-count"},this.below=null}var c1=vH.prototype;c1.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&mde.extendFlat(i,{cluster:!0,clusterMaxZoom:r.maxzoom});var a=this.subplot.map.getSource(this.sourceIds[e]);a?a.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],i)};c1.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};c1.addLayer=function(e,t,r){var i={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(i.filter=t.filter);for(var a=this.layerIds[e],s,l=this.subplot.getMapLayers(),f=0;f=0;O--){var H=I[O];a.removeLayer(v.layerIds[H])}q||a.removeSource(v.sourceIds.circle)}function T(q){for(var I=fu.nonCluster,O=0;O=0;O--){var H=I[O];a.removeLayer(v.layerIds[H]),q||a.removeSource(v.sourceIds[H])}}function C(q){h?_(q):S(q)}function E(q){f?m(q):T(q)}function L(){for(var q=f?fu.cluster:fu.nonCluster,I=0;I=0;i--){var a=r[i];t.removeLayer(this.layerIds[a]),t.removeSource(this.sourceIds[a])}};dH.exports=function(t,r){var i=r[0].trace,a=i.cluster&&i.cluster.enabled,s=i.visible!==!0,l=new vH(t,i.uid,a,s),f=hH(t.gd,r),h=l.below=t.belowLookup["trace-"+i.uid],v,m,_;if(a)for(l.addSource("circle",f.circle,i.cluster),v=0;v{"use strict";var yde=Rf(),hA=Bt(),gde=tT(),_de=hA.fillText,xde=Zi().BADNUM,bde=zc().traceLayerPrefix;function wde(e,t,r){var i=e.cd,a=i[0].trace,s=e.xa,l=e.ya,f=e.subplot,h=[],v=bde+a.uid+"-circle",m=a.cluster&&a.cluster.enabled;if(m){var _=f.map.queryRenderedFeatures(null,{layers:[v]});h=_.map(function(W){return W.id})}var T=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),S=T*360,C=t-S;function E(W){var J=W.lonlat;if(J[0]===xde||m&&h.indexOf(W.i+1)===-1)return 1/0;var te=hA.modHalf(J[0],360),ne=J[1],oe=f.project([te,ne]),fe=oe.x-s.c2p([C,ne]),ve=oe.y-l.c2p([te,r]),Se=Math.max(3,W.mrc||0);return Math.max(Math.sqrt(fe*fe+ve*ve)-Se,1-3/Se)}if(yde.getClosest(i,E,e),e.index!==!1){var L=i[e.index],z=L.lonlat,B=[hA.modHalf(z[0],360)+S,z[1]],q=s.c2p(B),I=l.c2p(B),O=L.mrc||1;e.x0=q-O,e.x1=q+O,e.y0=I-O,e.y1=I+O;var H={};H[a.subplot]={_subplot:f};var V=a._module.formatLabels(L,a,H);return e.lonLabel=V.lonLabel,e.latLabel=V.latLabel,e.color=gde(a,L),e.extraText=mH(a,L,i[0].t.labels),e.hovertemplate=a.hovertemplate,[e]}}function mH(e,t,r){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i.split("+"),s=a.indexOf("all")!==-1,l=a.indexOf("lon")!==-1,f=a.indexOf("lat")!==-1,h=t.lonlat,v=[];function m(_){return _+"\xB0"}return s||l&&f?v.push("("+m(h[1])+", "+m(h[0])+")"):l?v.push(r.lon+m(h[0])):f&&v.push(r.lat+m(h[1])),(s||a.indexOf("text")!==-1)&&_de(t,e,v),v.join("
")}yH.exports={hoverPoints:wde,getExtraText:mH}});var _H=me((hbe,gH)=>{"use strict";gH.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var bH=me((vbe,xH)=>{"use strict";var Tde=Bt(),Ade=rs(),Mde=Zi().BADNUM;xH.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f=i[0].trace,h;if(!Ade.hasMarkers(f))return[];if(r===!1)for(h=0;h{(function(e,t){typeof vA=="object"&&typeof dA!="undefined"?dA.exports=t():(e=e||self,e.mapboxgl=t())})(vA,function(){"use strict";var e,t,r;function i(a,s){if(!e)e=s;else if(!t)t=s;else{var l="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",f={};e(f),r=s(f),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([l],{type:"text/javascript"})))}}return i(["exports"],function(a){"use strict";function s(n,o){return o={exports:{}},n(o,o.exports),o.exports}var l="1.13.4",f=h;function h(n,o,u,p){this.cx=3*n,this.bx=3*(u-n)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*o,this.by=3*(p-o)-this.cy,this.ay=1-this.cy-this.by,this.p1x=n,this.p1y=p,this.p2x=u,this.p2y=p}h.prototype.sampleCurveX=function(n){return((this.ax*n+this.bx)*n+this.cx)*n},h.prototype.sampleCurveY=function(n){return((this.ay*n+this.by)*n+this.cy)*n},h.prototype.sampleCurveDerivativeX=function(n){return(3*this.ax*n+2*this.bx)*n+this.cx},h.prototype.solveCurveX=function(n,o){typeof o=="undefined"&&(o=1e-6);var u,p,x,A,k;for(x=n,k=0;k<8;k++){if(A=this.sampleCurveX(x)-n,Math.abs(A)p)return p;for(;uA?u=x:p=x,x=(p-u)*.5+u}return x},h.prototype.solve=function(n,o){return this.sampleCurveY(this.solveCurveX(n,o))};var v=m;function m(n,o){this.x=n,this.y=o}m.prototype={clone:function(){return new m(this.x,this.y)},add:function(n){return this.clone()._add(n)},sub:function(n){return this.clone()._sub(n)},multByPoint:function(n){return this.clone()._multByPoint(n)},divByPoint:function(n){return this.clone()._divByPoint(n)},mult:function(n){return this.clone()._mult(n)},div:function(n){return this.clone()._div(n)},rotate:function(n){return this.clone()._rotate(n)},rotateAround:function(n,o){return this.clone()._rotateAround(n,o)},matMult:function(n){return this.clone()._matMult(n)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(n){return this.x===n.x&&this.y===n.y},dist:function(n){return Math.sqrt(this.distSqr(n))},distSqr:function(n){var o=n.x-this.x,u=n.y-this.y;return o*o+u*u},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(n){return Math.atan2(this.y-n.y,this.x-n.x)},angleWith:function(n){return this.angleWithSep(n.x,n.y)},angleWithSep:function(n,o){return Math.atan2(this.x*o-this.y*n,this.x*n+this.y*o)},_matMult:function(n){var o=n[0]*this.x+n[1]*this.y,u=n[2]*this.x+n[3]*this.y;return this.x=o,this.y=u,this},_add:function(n){return this.x+=n.x,this.y+=n.y,this},_sub:function(n){return this.x-=n.x,this.y-=n.y,this},_mult:function(n){return this.x*=n,this.y*=n,this},_div:function(n){return this.x/=n,this.y/=n,this},_multByPoint:function(n){return this.x*=n.x,this.y*=n.y,this},_divByPoint:function(n){return this.x/=n.x,this.y/=n.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var n=this.y;return this.y=this.x,this.x=-n,this},_rotate:function(n){var o=Math.cos(n),u=Math.sin(n),p=o*this.x-u*this.y,x=u*this.x+o*this.y;return this.x=p,this.y=x,this},_rotateAround:function(n,o){var u=Math.cos(n),p=Math.sin(n),x=o.x+u*(this.x-o.x)-p*(this.y-o.y),A=o.y+p*(this.x-o.x)+u*(this.y-o.y);return this.x=x,this.y=A,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},m.convert=function(n){return n instanceof m?n:Array.isArray(n)?new m(n[0],n[1]):n};var _=typeof self!="undefined"?self:{};function T(n,o){if(Array.isArray(n)){if(!Array.isArray(o)||n.length!==o.length)return!1;for(var u=0;u=1)return 1;var o=n*n,u=o*n;return 4*(n<.5?u:3*(n-o)+u-.75)}function E(n,o,u,p){var x=new f(n,o,u,p);return function(A){return x.solve(A)}}var L=E(.25,.1,.25,1);function z(n,o,u){return Math.min(u,Math.max(o,n))}function B(n,o,u){var p=u-o,x=((n-o)%p+p)%p+o;return x===o?u:x}function q(n,o,u){if(!n.length)return u(null,[]);var p=n.length,x=new Array(n.length),A=null;n.forEach(function(k,F){o(k,function(Y,j){Y&&(A=Y),x[F]=j,--p===0&&u(A,x)})})}function I(n){var o=[];for(var u in n)o.push(n[u]);return o}function O(n,o){var u=[];for(var p in n)p in o||u.push(p);return u}function H(n){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];for(var p=0,x=o;p>o/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,n)}return n()}function ne(n){return n<=1?1:Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function oe(n){return n?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(n):!1}function fe(n,o){n.forEach(function(u){o[u]&&(o[u]=o[u].bind(o))})}function ve(n,o){return n.indexOf(o,n.length-o.length)!==-1}function Se(n,o,u){var p={};for(var x in n)p[x]=o.call(u||this,n[x],x,n);return p}function Me(n,o,u){var p={};for(var x in n)o.call(u||this,n[x],x,n)&&(p[x]=n[x]);return p}function Ae(n){return Array.isArray(n)?n.map(Ae):typeof n=="object"&&n?Se(n,Ae):n}function we(n,o){for(var u=0;u=0)return!0;return!1}var Te={};function Ce(n){Te[n]||(typeof console!="undefined"&&console.warn(n),Te[n]=!0)}function Le(n,o,u){return(u.y-n.y)*(o.x-n.x)>(o.y-n.y)*(u.x-n.x)}function $e(n){for(var o=0,u=0,p=n.length,x=p-1,A=void 0,k=void 0;u@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,u={};if(n.replace(o,function(x,A,k,F){var Y=k||F;return u[A]=Y?Y.toLowerCase():!0,""}),u["max-age"]){var p=parseInt(u["max-age"],10);isNaN(p)?delete u["max-age"]:u["max-age"]=p}return u}var We=null;function Et(n){if(We==null){var o=n.navigator?n.navigator.userAgent:null;We=!!n.safari||!!(o&&(/\b(iPad|iPhone|iPod)\b/.test(o)||o.match("Safari")&&!o.match("Chrome")))}return We}function nt(n){try{var o=_[n];return o.setItem("_mapbox_test_",1),o.removeItem("_mapbox_test_"),!0}catch(u){return!1}}function wt(n){return _.btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,function(o,u){return String.fromCharCode(+("0x"+u))}))}function xt(n){return decodeURIComponent(_.atob(n).split("").map(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var vt=_.performance&&_.performance.now?_.performance.now.bind(_.performance):Date.now.bind(Date),de=_.requestAnimationFrame||_.mozRequestAnimationFrame||_.webkitRequestAnimationFrame||_.msRequestAnimationFrame,ze=_.cancelAnimationFrame||_.mozCancelAnimationFrame||_.webkitCancelAnimationFrame||_.msCancelAnimationFrame,pe,at,mt={now:vt,frame:function(o){var u=de(o);return{cancel:function(){return ze(u)}}},getImageData:function(o,u){u===void 0&&(u=0);var p=_.document.createElement("canvas"),x=p.getContext("2d");if(!x)throw new Error("failed to create canvas 2d context");return p.width=o.width,p.height=o.height,x.drawImage(o,0,0,o.width,o.height),x.getImageData(-u,-u,o.width+2*u,o.height+2*u)},resolveURL:function(o){return pe||(pe=_.document.createElement("a")),pe.href=o,pe.href},hardwareConcurrency:_.navigator&&_.navigator.hardwareConcurrency||4,get devicePixelRatio(){return _.devicePixelRatio},get prefersReducedMotion(){return _.matchMedia?(at==null&&(at=_.matchMedia("(prefers-reduced-motion: reduce)")),at.matches):!1}},Xe={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Ft={supported:!1,testSupport:Ct},Lt,Tt=!1,It,Gt=!1;_.document&&(It=_.document.createElement("img"),It.onload=function(){Lt&&Mt(Lt),Lt=null,Gt=!0},It.onerror=function(){Tt=!0,Lt=null},It.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Ct(n){Tt||!It||(Gt?Mt(n):Lt=n)}function Mt(n){var o=n.createTexture();n.bindTexture(n.TEXTURE_2D,o);try{if(n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,It),n.isContextLost())return;Ft.supported=!0}catch(u){}n.deleteTexture(o),Tt=!0}var Ut="01";function Ot(){for(var n="1",o="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",u="",p=0;p<10;p++)u+=o[Math.floor(Math.random()*62)];var x=12*60*60*1e3,A=[n,Ut,u].join(""),k=Date.now()+x;return{token:A,tokenExpiresAt:k}}var Be=function(o,u){this._transformRequestFn=o,this._customAccessToken=u,this._createSkuToken()};Be.prototype._createSkuToken=function(){var o=Ot();this._skuToken=o.token,this._skuTokenExpiresAt=o.tokenExpiresAt},Be.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Be.prototype.transformRequest=function(o,u){return this._transformRequestFn?this._transformRequestFn(o,u)||{url:o}:{url:o}},Be.prototype.normalizeStyleURL=function(o,u){if(!ft(o))return o;var p=qt(o);return p.path="/styles/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||u)},Be.prototype.normalizeGlyphsURL=function(o,u){if(!ft(o))return o;var p=qt(o);return p.path="/fonts/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||u)},Be.prototype.normalizeSourceURL=function(o,u){if(!ft(o))return o;var p=qt(o);return p.path="/v4/"+p.authority+".json",p.params.push("secure"),this._makeAPIURL(p,this._customAccessToken||u)},Be.prototype.normalizeSpriteURL=function(o,u,p,x){var A=qt(o);return ft(o)?(A.path="/styles/v1"+A.path+"/sprite"+u+p,this._makeAPIURL(A,this._customAccessToken||x)):(A.path+=""+u+p,Qt(A))},Be.prototype.normalizeTileURL=function(o,u){if(this._isSkuTokenExpired()&&this._createSkuToken(),o&&!ft(o))return o;var p=qt(o),x=/(\.(png|jpg)\d*)(?=$)/,A=/^.+\/v4\//,k=mt.devicePixelRatio>=2||u===512?"@2x":"",F=Ft.supported?".webp":"$1";p.path=p.path.replace(x,""+k+F),p.path=p.path.replace(A,"/"),p.path="/v4"+p.path;var Y=this._customAccessToken||Oe(p.params)||Xe.ACCESS_TOKEN;return Xe.REQUIRE_ACCESS_TOKEN&&Y&&this._skuToken&&p.params.push("sku="+this._skuToken),this._makeAPIURL(p,Y)},Be.prototype.canonicalizeTileURL=function(o,u){var p="/v4/",x=/\.[\w]+$/,A=qt(o);if(!A.path.match(/(^\/v4\/)/)||!A.path.match(x))return o;var k="mapbox://tiles/";k+=A.path.replace(p,"");var F=A.params;return u&&(F=F.filter(function(Y){return!Y.match(/^access_token=/)})),F.length&&(k+="?"+F.join("&")),k},Be.prototype.canonicalizeTileset=function(o,u){for(var p=u?ft(u):!1,x=[],A=0,k=o.tiles||[];A=0&&o.params.splice(A,1)}if(x.path!=="/"&&(o.path=""+x.path+o.path),!Xe.REQUIRE_ACCESS_TOKEN)return Qt(o);if(u=u||Xe.ACCESS_TOKEN,!u)throw new Error("An API access token is required to use Mapbox GL. "+p);if(u[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+p);return o.params=o.params.filter(function(k){return k.indexOf("access_token")===-1}),o.params.push("access_token="+u),Qt(o)};function ft(n){return n.indexOf("mapbox:")===0}var or=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Cr(n){return or.test(n)}function Sr(n){return n.indexOf("sku=")>0&&Cr(n)}function Oe(n){for(var o=0,u=n;o=1&&_.localStorage.setItem(u,JSON.stringify(this.eventData))}catch(x){Ce("Unable to write to LocalStorage")}},ar.prototype.processRequests=function(o){},ar.prototype.postEvent=function(o,u,p,x){var A=this;if(Xe.EVENTS_URL){var k=qt(Xe.EVENTS_URL);k.params.push("access_token="+(x||Xe.ACCESS_TOKEN||""));var F={event:this.type,created:new Date(o).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:l,skuId:Ut,userId:this.anonId},Y=u?H(F,u):F,j={url:Qt(k),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Y])};this.pendingRequest=He(j,function(Q){A.pendingRequest=null,p(Q),A.saveEventData(),A.processRequests(x)})}},ar.prototype.queueRequest=function(o,u){this.queue.push(o),this.processRequests(u)};var zr=function(n){function o(){n.call(this,"map.load"),this.success={},this.skuToken=""}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.postMapLoadEvent=function(p,x,A,k){this.skuToken=A,(Xe.EVENTS_URL&&k||Xe.ACCESS_TOKEN&&Array.isArray(p)&&p.some(function(F){return ft(F)||Cr(F)}))&&this.queueRequest({id:x,timestamp:Date.now()},k)},o.prototype.processRequests=function(p){var x=this;if(!(this.pendingRequest||this.queue.length===0)){var A=this.queue.shift(),k=A.id,F=A.timestamp;k&&this.success[k]||(this.anonId||this.fetchEventData(),oe(this.anonId)||(this.anonId=te()),this.postEvent(F,{skuToken:this.skuToken},function(Y){Y||k&&(x.success[k]=!0)},p))}},o}(ar),lr=function(n){function o(u){n.call(this,"appUserTurnstile"),this._customAccessToken=u}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.postTurnstileEvent=function(p,x){Xe.EVENTS_URL&&Xe.ACCESS_TOKEN&&Array.isArray(p)&&p.some(function(A){return ft(A)||Cr(A)})&&this.queueRequest(Date.now(),x)},o.prototype.processRequests=function(p){var x=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var A=tr(Xe.ACCESS_TOKEN),k=A?A.u:Xe.ACCESS_TOKEN,F=k!==this.eventData.tokenU;oe(this.anonId)||(this.anonId=te(),F=!0);var Y=this.queue.shift();if(this.eventData.lastSuccess){var j=new Date(this.eventData.lastSuccess),Q=new Date(Y),ie=(Y-this.eventData.lastSuccess)/(24*60*60*1e3);F=F||ie>=1||ie<-1||j.getDate()!==Q.getDate()}else F=!0;if(!F)return this.processRequests();this.postEvent(Y,{"enabled.telemetry":!1},function(ge){ge||(x.eventData.lastSuccess=Y,x.eventData.tokenU=k)},p)}},o}(ar),At=new lr,Fe=At.postTurnstileEvent.bind(At),Ge=new zr,bt=Ge.postMapLoadEvent.bind(Ge),dt="mapbox-tiles",yr=500,xr=50,pr=1e3*60*7,Hr;function pa(){_.caches&&!Hr&&(Hr=_.caches.open(dt))}var Ea;function Ua(n,o){if(Ea===void 0)try{new Response(new ReadableStream),Ea=!0}catch(u){Ea=!1}Ea?o(n.body):n.blob().then(o)}function Ki(n,o,u){if(pa(),!!Hr){var p={status:o.status,statusText:o.statusText,headers:new _.Headers};o.headers.forEach(function(k,F){return p.headers.set(F,k)});var x=gt(o.headers.get("Cache-Control")||"");if(!x["no-store"]){x["max-age"]&&p.headers.set("Expires",new Date(u+x["max-age"]*1e3).toUTCString());var A=new Date(p.headers.get("Expires")).getTime()-u;ADate.now()&&!u["no-cache"]}var $i=1/0;function on(n){$i++,$i>xr&&(n.getActor().send("enforceCacheSizeLimit",yr),$i=0)}function Ei(n){pa(),Hr&&Hr.then(function(o){o.keys().then(function(u){for(var p=0;p=200&&u.status<300||u.status===0)&&u.response!==null){var x=u.response;if(n.type==="json")try{x=JSON.parse(u.response)}catch(A){return o(A)}o(null,x,u.getResponseHeader("Cache-Control"),u.getResponseHeader("Expires"))}else o(new ga(u.statusText,u.status,n.url))},u.send(n.body),{cancel:function(){return u.abort()}}}var Ee=function(n,o){if(!ee(n.url)){if(_.fetch&&_.Request&&_.AbortController&&_.Request.prototype.hasOwnProperty("signal"))return se(n,o);if(it()&&self.worker&&self.worker.actor){var u=!0;return self.worker.actor.send("getResource",n,o,void 0,u)}}return ce(n,o)},Ne=function(n,o){return Ee(H(n,{type:"json"}),o)},rt=function(n,o){return Ee(H(n,{type:"arrayBuffer"}),o)},He=function(n,o){return Ee(H(n,{method:"POST"}),o)};function pt(n){var o=_.document.createElement("a");return o.href=n,o.protocol===_.document.location.protocol&&o.host===_.document.location.host}var Dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Rt(n,o,u,p){var x=new _.Image,A=_.URL;x.onload=function(){o(null,x),A.revokeObjectURL(x.src),x.onload=null,_.requestAnimationFrame(function(){x.src=Dt})},x.onerror=function(){return o(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var k=new _.Blob([new Uint8Array(n)],{type:"image/png"});x.cacheControl=u,x.expires=p,x.src=n.byteLength?A.createObjectURL(k):Dt}function $t(n,o){var u=new _.Blob([new Uint8Array(n)],{type:"image/png"});_.createImageBitmap(u).then(function(p){o(null,p)}).catch(function(p){o(new Error("Could not load image because of "+p.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Yt,Tr,Yr=function(){Yt=[],Tr=0};Yr();var Br=function(n,o){if(Ft.supported&&(n.headers||(n.headers={}),n.headers.accept="image/webp,*/*"),Tr>=Xe.MAX_PARALLEL_IMAGE_REQUESTS){var u={requestParameters:n,callback:o,cancelled:!1,cancel:function(){this.cancelled=!0}};return Yt.push(u),u}Tr++;var p=!1,x=function(){if(!p)for(p=!0,Tr--;Yt.length&&Tr0||this._oneTimeListeners&&this._oneTimeListeners[o]&&this._oneTimeListeners[o].length>0||this._eventedParent&&this._eventedParent.listens(o)},dr.prototype.setEventedParent=function(o,u){return this._eventedParent=o,this._eventedParentData=u,this};var ea=8,_a={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},ir={"*":{type:"source"}},Ai=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Ca={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},si={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},fa={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Pn={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Co={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},xs={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Za={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Kn=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],vu={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Vi={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},pl={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Qd={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},qc={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Nc={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},hv={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},vv={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},du={type:"array",value:"*"},ml={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},$d={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},Ku={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},Zf={type:"array",value:"*",minimum:1},en={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},Ho=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],mo={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},yl={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Go={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},pu={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},ep={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},dv={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Qu={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},pv={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},mv={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},oo={"*":{type:"string"}},Wt={$version:ea,$root:_a,sources:ir,source:Ai,source_vector:Ca,source_raster:si,source_raster_dem:fa,source_geojson:Pn,source_video:Co,source_image:xs,layer:Za,layout:Kn,layout_background:vu,layout_fill:Vi,layout_circle:pl,layout_heatmap:Qd,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:qc,layout_symbol:Nc,layout_raster:hv,layout_hillshade:vv,filter:du,filter_operator:ml,geometry_type:$d,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:Ku,expression:Zf,light:en,paint:Ho,paint_fill:mo,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:yl,paint_circle:Go,paint_heatmap:pu,paint_symbol:ep,paint_raster:dv,paint_hillshade:Qu,paint_background:pv,transition:mv,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:oo},Or=function(o,u,p,x){this.message=(o?o+": ":"")+p,x&&(this.identifier=x),u!=null&&u.__line__&&(this.line=u.__line__)};function tp(n){var o=n.key,u=n.value;return u?[new Or(o,u,"constants have been deprecated as of v8")]:[]}function mu(n){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];for(var p=0,x=o;p":n.itemType.kind==="value"?"array":"array<"+o+">"}else return n.kind}var Ts=[ef,kr,wa,Ta,ws,fs,_l,yo(Ma),xl];function cs(n,o){if(o.kind==="error")return null;if(n.kind==="array"){if(o.kind==="array"&&(o.N===0&&o.itemType.kind==="value"||!cs(n.itemType,o.itemType))&&(typeof n.N!="number"||n.N===o.N))return null}else{if(n.kind===o.kind)return null;if(n.kind==="value")for(var u=0,p=Ts;u255?255:j}function x(j){return j<0?0:j>1?1:j}function A(j){return j[j.length-1]==="%"?p(parseFloat(j)/100*255):p(parseInt(j))}function k(j){return j[j.length-1]==="%"?x(parseFloat(j)/100):x(parseFloat(j))}function F(j,Q,ie){return ie<0?ie+=1:ie>1&&(ie-=1),ie*6<1?j+(Q-j)*ie*6:ie*2<1?Q:ie*3<2?j+(Q-j)*(2/3-ie)*6:j}function Y(j){var Q=j.replace(/ /g,"").toLowerCase();if(Q in u)return u[Q].slice();if(Q[0]==="#"){if(Q.length===4){var ie=parseInt(Q.substr(1),16);return ie>=0&&ie<=4095?[(ie&3840)>>4|(ie&3840)>>8,ie&240|(ie&240)>>4,ie&15|(ie&15)<<4,1]:null}else if(Q.length===7){var ie=parseInt(Q.substr(1),16);return ie>=0&&ie<=16777215?[(ie&16711680)>>16,(ie&65280)>>8,ie&255,1]:null}return null}var ge=Q.indexOf("("),he=Q.indexOf(")");if(ge!==-1&&he+1===Q.length){var ke=Q.substr(0,ge),qe=Q.substr(ge+1,he-(ge+1)).split(","),ut=1;switch(ke){case"rgba":if(qe.length!==4)return null;ut=k(qe.pop());case"rgb":return qe.length!==3?null:[A(qe[0]),A(qe[1]),A(qe[2]),ut];case"hsla":if(qe.length!==4)return null;ut=k(qe.pop());case"hsl":if(qe.length!==3)return null;var et=(parseFloat(qe[0])%360+360)%360/360,kt=k(qe[1]),_t=k(qe[2]),St=_t<=.5?_t*(kt+1):_t+kt-_t*kt,zt=_t*2-St;return[p(F(zt,St,et+1/3)*255),p(F(zt,St,et)*255),p(F(zt,St,et-1/3)*255),ut];default:return null}}return null}try{o.parseCSSColor=Y}catch(j){}}),Yf=Sm.parseCSSColor,oi=function(o,u,p,x){x===void 0&&(x=1),this.r=o,this.g=u,this.b=p,this.a=x};oi.parse=function(o){if(o){if(o instanceof oi)return o;if(typeof o=="string"){var u=Yf(o);if(u)return new oi(u[0]/255*u[3],u[1]/255*u[3],u[2]/255*u[3],u[3])}}},oi.prototype.toString=function(){var o=this.toArray(),u=o[0],p=o[1],x=o[2],A=o[3];return"rgba("+Math.round(u)+","+Math.round(p)+","+Math.round(x)+","+A+")"},oi.prototype.toArray=function(){var o=this,u=o.r,p=o.g,x=o.b,A=o.a;return A===0?[0,0,0,0]:[u*255/A,p*255/A,x*255/A,A]},oi.black=new oi(0,0,0,1),oi.white=new oi(1,1,1,1),oi.transparent=new oi(0,0,0,0),oi.red=new oi(1,0,0,1);var Wf=function(o,u,p){o?this.sensitivity=u?"variant":"case":this.sensitivity=u?"accent":"base",this.locale=p,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Wf.prototype.compare=function(o,u){return this.collator.compare(o,u)},Wf.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var yv=function(o,u,p,x,A){this.text=o,this.image=u,this.scale=p,this.fontStack=x,this.textColor=A},xn=function(o){this.sections=o};xn.fromString=function(o){return new xn([new yv(o,null,null,null,null)])},xn.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(o){return o.text.length!==0||o.image&&o.image.name.length!==0})},xn.factory=function(o){return o instanceof xn?o:xn.fromString(o)},xn.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(o){return o.text}).join("")},xn.prototype.serialize=function(){for(var o=["format"],u=0,p=this.sections;u=0&&n<=255&&typeof o=="number"&&o>=0&&o<=255&&typeof u=="number"&&u>=0&&u<=255)){var x=typeof p=="number"?[n,o,u,p]:[n,o,u];return"Invalid rgba value ["+x.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof p=="undefined"||typeof p=="number"&&p>=0&&p<=1?null:"Invalid rgba value ["+[n,o,u,p].join(", ")+"]: 'a' must be between 0 and 1."}function tf(n){if(n===null)return!0;if(typeof n=="string")return!0;if(typeof n=="boolean")return!0;if(typeof n=="number")return!0;if(n instanceof oi)return!0;if(n instanceof Wf)return!0;if(n instanceof xn)return!0;if(n instanceof zn)return!0;if(Array.isArray(n)){for(var o=0,u=n;o2){var F=o[1];if(typeof F!="string"||!(F in Xf)||F==="object")return u.error('The item type argument of "array" must be one of string, number, boolean',1);k=Xf[F],p++}else k=Ma;var Y;if(o.length>3){if(o[2]!==null&&(typeof o[2]!="number"||o[2]<0||o[2]!==Math.floor(o[2])))return u.error('The length argument to "array" must be a positive integer literal',2);Y=o[2],p++}x=yo(k,Y)}else x=Xf[A];for(var j=[];p1)&&u.push(x)}}return u.concat(this.args.map(function(A){return A.serialize()}))};var Yo=function(o){this.type=fs,this.sections=o};Yo.parse=function(o,u){if(o.length<2)return u.error("Expected at least one argument.");var p=o[1];if(!Array.isArray(p)&&typeof p=="object")return u.error("First argument must be an image or text section.");for(var x=[],A=!1,k=1;k<=o.length-1;++k){var F=o[k];if(A&&typeof F=="object"&&!Array.isArray(F)){A=!1;var Y=null;if(F["font-scale"]&&(Y=u.parse(F["font-scale"],1,kr),!Y))return null;var j=null;if(F["text-font"]&&(j=u.parse(F["text-font"],1,yo(wa)),!j))return null;var Q=null;if(F["text-color"]&&(Q=u.parse(F["text-color"],1,ws),!Q))return null;var ie=x[x.length-1];ie.scale=Y,ie.font=j,ie.textColor=Q}else{var ge=u.parse(o[k],1,Ma);if(!ge)return null;var he=ge.type.kind;if(he!=="string"&&he!=="value"&&he!=="null"&&he!=="resolvedImage")return u.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");A=!0,x.push({content:ge,scale:null,font:null,textColor:null})}}return new Yo(x)},Yo.prototype.evaluate=function(o){var u=function(p){var x=p.content.evaluate(o);return ln(x)===xl?new yv("",x,null,null,null):new yv(Eo(x),null,p.scale?p.scale.evaluate(o):null,p.font?p.font.evaluate(o).join(","):null,p.textColor?p.textColor.evaluate(o):null)};return new xn(this.sections.map(u))},Yo.prototype.eachChild=function(o){for(var u=0,p=this.sections;u-1),p},Xs.prototype.eachChild=function(o){o(this.input)},Xs.prototype.outputDefined=function(){return!1},Xs.prototype.serialize=function(){return["image",this.input.serialize()]};var km={"to-boolean":Ta,"to-color":ws,"to-number":kr,"to-string":wa},Wo=function(o,u){this.type=o,this.args=u};Wo.parse=function(o,u){if(o.length<2)return u.error("Expected at least one argument.");var p=o[0];if((p==="to-boolean"||p==="to-string")&&o.length!==2)return u.error("Expected one argument.");for(var x=km[p],A=[],k=1;k4?p="Invalid rbga value "+JSON.stringify(u)+": expected an array containing either three or four numeric values.":p=rp(u[0],u[1],u[2],u[3]),!p))return new oi(u[0]/255,u[1]/255,u[2]/255,u[3])}throw new vn(p||"Could not parse color from value '"+(typeof u=="string"?u:String(JSON.stringify(u)))+"'")}else if(this.type.kind==="number"){for(var Y=null,j=0,Q=this.args;j=o[2]||n[1]<=o[1]||n[3]>=o[3])}function Pm(n,o){var u=Lm(n[0]),p=Dm(n[1]),x=Math.pow(2,o.z);return[Math.round(u*x*wl),Math.round(p*x*wl)]}function zm(n,o,u){var p=n[0]-o[0],x=n[1]-o[1],A=n[0]-u[0],k=n[1]-u[1];return p*k-A*x===0&&p*A<=0&&x*k<=0}function Im(n,o,u){return o[1]>n[1]!=u[1]>n[1]&&n[0]<(u[0]-o[0])*(n[1]-o[1])/(u[1]-o[1])+o[0]}function _v(n,o){for(var u=!1,p=0,x=o.length;p0&&ie<0||Q<0&&ie>0}function ap(n,o,u,p){var x=[o[0]-n[0],o[1]-n[1]],A=[p[0]-u[0],p[1]-u[1]];return Fm(A,x)===0?!1:!!(xv(n,o,u,p)&&xv(u,p,n,o))}function ip(n,o,u){for(var p=0,x=u;pu[2]){var x=p*.5,A=n[0]-u[0]>x?-p:u[0]-n[0]>x?p:0;A===0&&(A=n[0]-u[2]>x?-p:u[2]-n[0]>x?p:0),n[0]+=A}gv(o,n)}function Nm(n){n[0]=n[1]=1/0,n[2]=n[3]=-1/0}function op(n,o,u,p){for(var x=Math.pow(2,p.z)*wl,A=[p.x*wl,p.y*wl],k=[],F=0,Y=n;F=0)return!1;var u=!0;return n.eachChild(function(p){u&&!Vc(p,o)&&(u=!1)}),u}var Al=function(o,u){this.type=u.type,this.name=o,this.boundExpression=u};Al.parse=function(o,u){if(o.length!==2||typeof o[1]!="string")return u.error("'var' expression requires exactly one string literal argument.");var p=o[1];return u.scope.has(p)?new Al(p,u.scope.get(p)):u.error('Unknown variable "'+p+'". Make sure "'+p+'" has been bound in an enclosing "let" expression before using it.',1)},Al.prototype.evaluate=function(o){return this.boundExpression.evaluate(o)},Al.prototype.eachChild=function(){},Al.prototype.outputDefined=function(){return!1},Al.prototype.serialize=function(){return["var",this.name]};var Ml=function(o,u,p,x,A){u===void 0&&(u=[]),x===void 0&&(x=new $u),A===void 0&&(A=[]),this.registry=o,this.path=u,this.key=u.map(function(k){return"["+k+"]"}).join(""),this.scope=x,this.errors=A,this.expectedType=p};Ml.prototype.parse=function(o,u,p,x,A){return A===void 0&&(A={}),u?this.concat(u,p,x)._parse(o,A):this._parse(o,A)},Ml.prototype._parse=function(o,u){(o===null||typeof o=="string"||typeof o=="boolean"||typeof o=="number")&&(o=["literal",o]);function p(Q,ie,ge){return ge==="assert"?new un(ie,[Q]):ge==="coerce"?new Wo(ie,[Q]):Q}if(Array.isArray(o)){if(o.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var x=o[0];if(typeof x!="string")return this.error("Expression name must be a string, but found "+typeof x+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var A=this.registry[x];if(A){var k=A.parse(o,this);if(!k)return null;if(this.expectedType){var F=this.expectedType,Y=k.type;if((F.kind==="string"||F.kind==="number"||F.kind==="boolean"||F.kind==="object"||F.kind==="array")&&Y.kind==="value")k=p(k,F,u.typeAnnotation||"assert");else if((F.kind==="color"||F.kind==="formatted"||F.kind==="resolvedImage")&&(Y.kind==="value"||Y.kind==="string"))k=p(k,F,u.typeAnnotation||"coerce");else if(this.checkSubtype(F,Y))return null}if(!(k instanceof Zo)&&k.type.kind!=="resolvedImage"&&Tv(k)){var j=new js;try{k=new Zo(k.type,k.evaluate(j))}catch(Q){return this.error(Q.message),null}}return k}return this.error('Unknown expression "'+x+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof o=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof o=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof o+" instead.")},Ml.prototype.concat=function(o,u,p){var x=typeof o=="number"?this.path.concat(o):this.path,A=p?this.scope.concat(p):this.scope;return new Ml(this.registry,x,u||null,A,this.errors)},Ml.prototype.error=function(o){for(var u=[],p=arguments.length-1;p-- >0;)u[p]=arguments[p+1];var x=""+this.key+u.map(function(A){return"["+A+"]"}).join("");this.errors.push(new bs(x,o))},Ml.prototype.checkSubtype=function(o,u){var p=cs(o,u);return p&&this.error(p),p};function Tv(n){if(n instanceof Al)return Tv(n.boundExpression);if(n instanceof In&&n.name==="error")return!1;if(n instanceof bl)return!1;if(n instanceof hs)return!1;var o=n instanceof Wo||n instanceof un,u=!0;return n.eachChild(function(p){o?u=u&&Tv(p):u=u&&p instanceof Zo}),u?Uc(n)&&Vc(n,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Hc(n,o){for(var u=n.length-1,p=0,x=u,A=0,k,F;p<=x;)if(A=Math.floor((p+x)/2),k=n[A],F=n[A+1],k<=o){if(A===u||oo)x=A-1;else throw new vn("Input is not a number.");return 0}var As=function(o,u,p){this.type=o,this.input=u,this.labels=[],this.outputs=[];for(var x=0,A=p;x=F)return u.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',j);var ie=u.parse(Y,Q,A);if(!ie)return null;A=A||ie.type,x.push([F,ie])}return new As(A,p,x)},As.prototype.evaluate=function(o){var u=this.labels,p=this.outputs;if(u.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=u[0])return p[0].evaluate(o);var A=u.length;if(x>=u[A-1])return p[A-1].evaluate(o);var k=Hc(u,x);return p[k].evaluate(o)},As.prototype.eachChild=function(o){o(this.input);for(var u=0,p=this.outputs;u0&&o.push(this.labels[u]),o.push(this.outputs[u].serialize());return o};function dn(n,o,u){return n*(1-u)+o*u}function Om(n,o,u){return new oi(dn(n.r,o.r,u),dn(n.g,o.g,u),dn(n.b,o.b,u),dn(n.a,o.a,u))}function Um(n,o,u){return n.map(function(p,x){return dn(p,o[x],u)})}var Sl=Object.freeze({__proto__:null,number:dn,color:Om,array:Um}),rf=.95047,vs=1,up=1.08883,fp=4/29,af=6/29,cp=3*af*af,hp=af*af*af,Vm=Math.PI/180,Hm=180/Math.PI;function Av(n){return n>hp?Math.pow(n,1/3):n/cp+fp}function Mv(n){return n>af?n*n*n:cp*(n-fp)}function Sv(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function jf(n){return n/=255,n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Gc(n){var o=jf(n.r),u=jf(n.g),p=jf(n.b),x=Av((.4124564*o+.3575761*u+.1804375*p)/rf),A=Av((.2126729*o+.7151522*u+.072175*p)/vs),k=Av((.0193339*o+.119192*u+.9503041*p)/up);return{l:116*A-16,a:500*(x-A),b:200*(A-k),alpha:n.a}}function vp(n){var o=(n.l+16)/116,u=isNaN(n.a)?o:o+n.a/500,p=isNaN(n.b)?o:o-n.b/200;return o=vs*Mv(o),u=rf*Mv(u),p=up*Mv(p),new oi(Sv(3.2404542*u-1.5371385*o-.4985314*p),Sv(-.969266*u+1.8760108*o+.041556*p),Sv(.0556434*u-.2040259*o+1.0572252*p),n.alpha)}function Ni(n,o,u){return{l:dn(n.l,o.l,u),a:dn(n.a,o.a,u),b:dn(n.b,o.b,u),alpha:dn(n.alpha,o.alpha,u)}}function Gm(n){var o=Gc(n),u=o.l,p=o.a,x=o.b,A=Math.atan2(x,p)*Hm;return{h:A<0?A+360:A,c:Math.sqrt(p*p+x*x),l:u,alpha:n.a}}function Zc(n){var o=n.h*Vm,u=n.c,p=n.l;return vp({l:p,a:Math.cos(o)*u,b:Math.sin(o)*u,alpha:n.alpha})}function kv(n,o,u){var p=o-n;return n+u*(p>180||p<-180?p-360*Math.round(p/360):p)}function dp(n,o,u){return{h:kv(n.h,o.h,u),c:dn(n.c,o.c,u),l:dn(n.l,o.l,u),alpha:dn(n.alpha,o.alpha,u)}}var nf={forward:Gc,reverse:vp,interpolate:Ni},xu={forward:Gm,reverse:Zc,interpolate:dp},Cv=Object.freeze({__proto__:null,lab:nf,hcl:xu}),bn=function(o,u,p,x,A){this.type=o,this.operator=u,this.interpolation=p,this.input=x,this.labels=[],this.outputs=[];for(var k=0,F=A;k1}))return u.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);x={name:"cubic-bezier",controlPoints:Y}}else return u.error("Unknown interpolation type "+String(x[0]),1,0);if(o.length-1<4)return u.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if((o.length-1)%2!==0)return u.error("Expected an even number of arguments.");if(A=u.parse(A,2,kr),!A)return null;var j=[],Q=null;p==="interpolate-hcl"||p==="interpolate-lab"?Q=ws:u.expectedType&&u.expectedType.kind!=="value"&&(Q=u.expectedType);for(var ie=0;ie=ge)return u.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ke);var ut=u.parse(he,qe,Q);if(!ut)return null;Q=Q||ut.type,j.push([ge,ut])}return Q.kind!=="number"&&Q.kind!=="color"&&!(Q.kind==="array"&&Q.itemType.kind==="number"&&typeof Q.N=="number")?u.error("Type "+Li(Q)+" is not interpolatable."):new bn(Q,p,x,A,j)},bn.prototype.evaluate=function(o){var u=this.labels,p=this.outputs;if(u.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=u[0])return p[0].evaluate(o);var A=u.length;if(x>=u[A-1])return p[A-1].evaluate(o);var k=Hc(u,x),F=u[k],Y=u[k+1],j=bn.interpolationFactor(this.interpolation,x,F,Y),Q=p[k].evaluate(o),ie=p[k+1].evaluate(o);return this.operator==="interpolate"?Sl[this.type.kind.toLowerCase()](Q,ie,j):this.operator==="interpolate-hcl"?xu.reverse(xu.interpolate(xu.forward(Q),xu.forward(ie),j)):nf.reverse(nf.interpolate(nf.forward(Q),nf.forward(ie),j))},bn.prototype.eachChild=function(o){o(this.input);for(var u=0,p=this.outputs;u=p.length)throw new vn("Array index out of bounds: "+u+" > "+(p.length-1)+".");if(u!==Math.floor(u))throw new vn("Array index must be an integer, but found "+u+" instead.");return p[u]},Cl.prototype.eachChild=function(o){o(this.index),o(this.input)},Cl.prototype.outputDefined=function(){return!1},Cl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var El=function(o,u){this.type=Ta,this.needle=o,this.haystack=u};El.parse=function(o,u){if(o.length!==3)return u.error("Expected 2 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Ma),x=u.parse(o[2],2,Ma);return!p||!x?null:Bc(p.type,[Ta,wa,kr,ef,Ma])?new El(p,x):u.error("Expected first argument to be of type boolean, string, number or null, but found "+Li(p.type)+" instead")},El.prototype.evaluate=function(o){var u=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!p)return!1;if(!gu(u,["boolean","string","number","null"]))throw new vn("Expected first argument to be of type boolean, string, number or null, but found "+Li(ln(u))+" instead.");if(!gu(p,["string","array"]))throw new vn("Expected second argument to be of type array or string, but found "+Li(ln(p))+" instead.");return p.indexOf(u)>=0},El.prototype.eachChild=function(o){o(this.needle),o(this.haystack)},El.prototype.outputDefined=function(){return!0},El.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ks=function(o,u,p){this.type=kr,this.needle=o,this.haystack=u,this.fromIndex=p};Ks.parse=function(o,u){if(o.length<=2||o.length>=5)return u.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Ma),x=u.parse(o[2],2,Ma);if(!p||!x)return null;if(!Bc(p.type,[Ta,wa,kr,ef,Ma]))return u.error("Expected first argument to be of type boolean, string, number or null, but found "+Li(p.type)+" instead");if(o.length===4){var A=u.parse(o[3],3,kr);return A?new Ks(p,x,A):null}else return new Ks(p,x)},Ks.prototype.evaluate=function(o){var u=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!gu(u,["boolean","string","number","null"]))throw new vn("Expected first argument to be of type boolean, string, number or null, but found "+Li(ln(u))+" instead.");if(!gu(p,["string","array"]))throw new vn("Expected second argument to be of type array or string, but found "+Li(ln(p))+" instead.");if(this.fromIndex){var x=this.fromIndex.evaluate(o);return p.indexOf(u,x)}return p.indexOf(u)},Ks.prototype.eachChild=function(o){o(this.needle),o(this.haystack),this.fromIndex&&o(this.fromIndex)},Ks.prototype.outputDefined=function(){return!1},Ks.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var o=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),o]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Ms=function(o,u,p,x,A,k){this.inputType=o,this.type=u,this.input=p,this.cases=x,this.outputs=A,this.otherwise=k};Ms.parse=function(o,u){if(o.length<5)return u.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if(o.length%2!==1)return u.error("Expected an even number of arguments.");var p,x;u.expectedType&&u.expectedType.kind!=="value"&&(x=u.expectedType);for(var A={},k=[],F=2;FNumber.MAX_SAFE_INTEGER)return Q.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof he=="number"&&Math.floor(he)!==he)return Q.error("Numeric branch labels must be integer values.");if(!p)p=ln(he);else if(Q.checkSubtype(p,ln(he)))return null;if(typeof A[String(he)]!="undefined")return Q.error("Branch labels must be unique.");A[String(he)]=k.length}var ke=u.parse(j,F,x);if(!ke)return null;x=x||ke.type,k.push(ke)}var qe=u.parse(o[1],1,Ma);if(!qe)return null;var ut=u.parse(o[o.length-1],o.length-1,x);return!ut||qe.type.kind!=="value"&&u.concat(1).checkSubtype(p,qe.type)?null:new Ms(p,x,qe,A,k,ut)},Ms.prototype.evaluate=function(o){var u=this.input.evaluate(o),p=ln(u)===this.inputType&&this.outputs[this.cases[u]]||this.otherwise;return p.evaluate(o)},Ms.prototype.eachChild=function(o){o(this.input),this.outputs.forEach(o),o(this.otherwise)},Ms.prototype.outputDefined=function(){return this.outputs.every(function(o){return o.outputDefined()})&&this.otherwise.outputDefined()},Ms.prototype.serialize=function(){for(var o=this,u=["match",this.input.serialize()],p=Object.keys(this.cases).sort(),x=[],A={},k=0,F=p;k=5)return u.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Ma),x=u.parse(o[2],2,kr);if(!p||!x)return null;if(!Bc(p.type,[yo(Ma),wa,Ma]))return u.error("Expected first argument to be of type array or string, but found "+Li(p.type)+" instead");if(o.length===4){var A=u.parse(o[3],3,kr);return A?new Ll(p.type,p,x,A):null}else return new Ll(p.type,p,x)},Ll.prototype.evaluate=function(o){var u=this.input.evaluate(o),p=this.beginIndex.evaluate(o);if(!gu(u,["string","array"]))throw new vn("Expected first argument to be of type array or string, but found "+Li(ln(u))+" instead.");if(this.endIndex){var x=this.endIndex.evaluate(o);return u.slice(p,x)}return u.slice(p)},Ll.prototype.eachChild=function(o){o(this.input),o(this.beginIndex),this.endIndex&&o(this.endIndex)},Ll.prototype.outputDefined=function(){return!1},Ll.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var o=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),o]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function pp(n,o){return n==="=="||n==="!="?o.kind==="boolean"||o.kind==="string"||o.kind==="number"||o.kind==="null"||o.kind==="value":o.kind==="string"||o.kind==="number"||o.kind==="value"}function Zm(n,o,u){return o===u}function Ym(n,o,u){return o!==u}function Wm(n,o,u){return ou}function yp(n,o,u){return o<=u}function Ev(n,o,u){return o>=u}function Lv(n,o,u,p){return p.compare(o,u)===0}function Kf(n,o,u,p){return!Lv(n,o,u,p)}function Yc(n,o,u,p){return p.compare(o,u)<0}function gp(n,o,u,p){return p.compare(o,u)>0}function Dv(n,o,u,p){return p.compare(o,u)<=0}function _p(n,o,u,p){return p.compare(o,u)>=0}function of(n,o,u){var p=n!=="=="&&n!=="!=";return function(){function x(A,k,F){this.type=Ta,this.lhs=A,this.rhs=k,this.collator=F,this.hasUntypedArgument=A.type.kind==="value"||k.type.kind==="value"}return x.parse=function(k,F){if(k.length!==3&&k.length!==4)return F.error("Expected two or three arguments.");var Y=k[0],j=F.parse(k[1],1,Ma);if(!j)return null;if(!pp(Y,j.type))return F.concat(1).error('"'+Y+`" comparisons are not supported for type '`+Li(j.type)+"'.");var Q=F.parse(k[2],2,Ma);if(!Q)return null;if(!pp(Y,Q.type))return F.concat(2).error('"'+Y+`" comparisons are not supported for type '`+Li(Q.type)+"'.");if(j.type.kind!==Q.type.kind&&j.type.kind!=="value"&&Q.type.kind!=="value")return F.error("Cannot compare types '"+Li(j.type)+"' and '"+Li(Q.type)+"'.");p&&(j.type.kind==="value"&&Q.type.kind!=="value"?j=new un(Q.type,[j]):j.type.kind!=="value"&&Q.type.kind==="value"&&(Q=new un(j.type,[Q])));var ie=null;if(k.length===4){if(j.type.kind!=="string"&&Q.type.kind!=="string"&&j.type.kind!=="value"&&Q.type.kind!=="value")return F.error("Cannot use collator to compare non-string types.");if(ie=F.parse(k[3],3,yu),!ie)return null}return new x(j,Q,ie)},x.prototype.evaluate=function(k){var F=this.lhs.evaluate(k),Y=this.rhs.evaluate(k);if(p&&this.hasUntypedArgument){var j=ln(F),Q=ln(Y);if(j.kind!==Q.kind||!(j.kind==="string"||j.kind==="number"))throw new vn('Expected arguments for "'+n+'" to be (string, string) or (number, number), but found ('+j.kind+", "+Q.kind+") instead.")}if(this.collator&&!p&&this.hasUntypedArgument){var ie=ln(F),ge=ln(Y);if(ie.kind!=="string"||ge.kind!=="string")return o(k,F,Y)}return this.collator?u(k,F,Y,this.collator.evaluate(k)):o(k,F,Y)},x.prototype.eachChild=function(k){k(this.lhs),k(this.rhs),this.collator&&k(this.collator)},x.prototype.outputDefined=function(){return!0},x.prototype.serialize=function(){var k=[n];return this.eachChild(function(F){k.push(F.serialize())}),k},x}()}var Xm=of("==",Zm,Lv),xp=of("!=",Ym,Kf),bp=of("<",Wm,Yc),wp=of(">",mp,gp),Pv=of("<=",yp,Dv),zv=of(">=",Ev,_p),bu=function(o,u,p,x,A){this.type=wa,this.number=o,this.locale=u,this.currency=p,this.minFractionDigits=x,this.maxFractionDigits=A};bu.parse=function(o,u){if(o.length!==3)return u.error("Expected two arguments.");var p=u.parse(o[1],1,kr);if(!p)return null;var x=o[2];if(typeof x!="object"||Array.isArray(x))return u.error("NumberFormat options argument must be an object.");var A=null;if(x.locale&&(A=u.parse(x.locale,1,wa),!A))return null;var k=null;if(x.currency&&(k=u.parse(x.currency,1,wa),!k))return null;var F=null;if(x["min-fraction-digits"]&&(F=u.parse(x["min-fraction-digits"],1,kr),!F))return null;var Y=null;return x["max-fraction-digits"]&&(Y=u.parse(x["max-fraction-digits"],1,kr),!Y)?null:new bu(p,A,k,F,Y)},bu.prototype.evaluate=function(o){return new Intl.NumberFormat(this.locale?this.locale.evaluate(o):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(o):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(o):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(o):void 0}).format(this.number.evaluate(o))},bu.prototype.eachChild=function(o){o(this.number),this.locale&&o(this.locale),this.currency&&o(this.currency),this.minFractionDigits&&o(this.minFractionDigits),this.maxFractionDigits&&o(this.maxFractionDigits)},bu.prototype.outputDefined=function(){return!1},bu.prototype.serialize=function(){var o={};return this.locale&&(o.locale=this.locale.serialize()),this.currency&&(o.currency=this.currency.serialize()),this.minFractionDigits&&(o["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(o["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),o]};var Dl=function(o){this.type=kr,this.input=o};Dl.parse=function(o,u){if(o.length!==2)return u.error("Expected 1 argument, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1);return p?p.type.kind!=="array"&&p.type.kind!=="string"&&p.type.kind!=="value"?u.error("Expected argument of type string or array, but found "+Li(p.type)+" instead."):new Dl(p):null},Dl.prototype.evaluate=function(o){var u=this.input.evaluate(o);if(typeof u=="string")return u.length;if(Array.isArray(u))return u.length;throw new vn("Expected value to be of type string or array, but found "+Li(ln(u))+" instead.")},Dl.prototype.eachChild=function(o){o(this.input)},Dl.prototype.outputDefined=function(){return!1},Dl.prototype.serialize=function(){var o=["length"];return this.eachChild(function(u){o.push(u.serialize())}),o};var Qf={"==":Xm,"!=":xp,">":wp,"<":bp,">=":zv,"<=":Pv,array:un,at:Cl,boolean:un,case:Ss,coalesce:Js,collator:bl,format:Yo,image:Xs,in:El,"index-of":Ks,interpolate:bn,"interpolate-hcl":bn,"interpolate-lab":bn,length:Dl,let:kl,literal:Zo,match:Ms,number:un,"number-format":bu,object:un,slice:Ll,step:As,string:un,"to-boolean":Wo,"to-color":Wo,"to-number":Wo,"to-string":Wo,var:Al,within:hs};function Iv(n,o){var u=o[0],p=o[1],x=o[2],A=o[3];u=u.evaluate(n),p=p.evaluate(n),x=x.evaluate(n);var k=A?A.evaluate(n):1,F=rp(u,p,x,k);if(F)throw new vn(F);return new oi(u/255*k,p/255*k,x/255*k,k)}function Wc(n,o){return n in o}function Xc(n,o){var u=o[n];return typeof u=="undefined"?null:u}function jc(n,o,u,p){for(;u<=p;){var x=u+p>>1;if(o[x]===n)return!0;o[x]>n?p=x-1:u=x+1}return!1}function Pl(n){return{type:n}}In.register(Qf,{error:[Ws,[wa],function(n,o){var u=o[0];throw new vn(u.evaluate(n))}],typeof:[wa,[Ma],function(n,o){var u=o[0];return Li(ln(u.evaluate(n)))}],"to-rgba":[yo(kr,4),[ws],function(n,o){var u=o[0];return u.evaluate(n).toArray()}],rgb:[ws,[kr,kr,kr],Iv],rgba:[ws,[kr,kr,kr,kr],Iv],has:{type:Ta,overloads:[[[wa],function(n,o){var u=o[0];return Wc(u.evaluate(n),n.properties())}],[[wa,_l],function(n,o){var u=o[0],p=o[1];return Wc(u.evaluate(n),p.evaluate(n))}]]},get:{type:Ma,overloads:[[[wa],function(n,o){var u=o[0];return Xc(u.evaluate(n),n.properties())}],[[wa,_l],function(n,o){var u=o[0],p=o[1];return Xc(u.evaluate(n),p.evaluate(n))}]]},"feature-state":[Ma,[wa],function(n,o){var u=o[0];return Xc(u.evaluate(n),n.featureState||{})}],properties:[_l,[],function(n){return n.properties()}],"geometry-type":[wa,[],function(n){return n.geometryType()}],id:[Ma,[],function(n){return n.id()}],zoom:[kr,[],function(n){return n.globals.zoom}],"heatmap-density":[kr,[],function(n){return n.globals.heatmapDensity||0}],"line-progress":[kr,[],function(n){return n.globals.lineProgress||0}],accumulated:[Ma,[],function(n){return n.globals.accumulated===void 0?null:n.globals.accumulated}],"+":[kr,Pl(kr),function(n,o){for(var u=0,p=0,x=o;p":[Ta,[wa,Ma],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x>A}],"filter-id->":[Ta,[Ma],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p>x}],"filter-<=":[Ta,[wa,Ma],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x<=A}],"filter-id-<=":[Ta,[Ma],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p<=x}],"filter->=":[Ta,[wa,Ma],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x>=A}],"filter-id->=":[Ta,[Ma],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p>=x}],"filter-has":[Ta,[Ma],function(n,o){var u=o[0];return u.value in n.properties()}],"filter-has-id":[Ta,[],function(n){return n.id()!==null&&n.id()!==void 0}],"filter-type-in":[Ta,[yo(wa)],function(n,o){var u=o[0];return u.value.indexOf(n.geometryType())>=0}],"filter-id-in":[Ta,[yo(Ma)],function(n,o){var u=o[0];return u.value.indexOf(n.id())>=0}],"filter-in-small":[Ta,[wa,yo(Ma)],function(n,o){var u=o[0],p=o[1];return p.value.indexOf(n.properties()[u.value])>=0}],"filter-in-large":[Ta,[wa,yo(Ma)],function(n,o){var u=o[0],p=o[1];return jc(n.properties()[u.value],p.value,0,p.value.length-1)}],all:{type:Ta,overloads:[[[Ta,Ta],function(n,o){var u=o[0],p=o[1];return u.evaluate(n)&&p.evaluate(n)}],[Pl(Ta),function(n,o){for(var u=0,p=o;u-1}function Kc(n){return!!n.expression&&n.expression.interpolated}function pi(n){return n instanceof Number?"number":n instanceof String?"string":n instanceof Boolean?"boolean":Array.isArray(n)?"array":n===null?"null":typeof n}function $f(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Ap(n){return n}function Mp(n,o){var u=o.type==="color",p=n.stops&&typeof n.stops[0][0]=="object",x=p||n.property!==void 0,A=p||!x,k=n.type||(Kc(o)?"exponential":"interval");if(u&&(n=mu({},n),n.stops&&(n.stops=n.stops.map(function(fr){return[fr[0],oi.parse(fr[1])]})),n.default?n.default=oi.parse(n.default):n.default=oi.parse(o.default)),n.colorSpace&&n.colorSpace!=="rgb"&&!Cv[n.colorSpace])throw new Error("Unknown color space: "+n.colorSpace);var F,Y,j;if(k==="exponential")F=Rv;else if(k==="interval")F=kp;else if(k==="categorical"){F=Sp,Y=Object.create(null);for(var Q=0,ie=n.stops;Q=n.stops[p-1][0])return n.stops[p-1][1];var x=Hc(n.stops.map(function(A){return A[0]}),u);return n.stops[x][1]}function Rv(n,o,u){var p=n.base!==void 0?n.base:1;if(pi(u)!=="number")return zl(n.default,o.default);var x=n.stops.length;if(x===1||u<=n.stops[0][0])return n.stops[0][1];if(u>=n.stops[x-1][0])return n.stops[x-1][1];var A=Hc(n.stops.map(function(ie){return ie[0]}),u),k=jm(u,p,n.stops[A][0],n.stops[A+1][0]),F=n.stops[A][1],Y=n.stops[A+1][1],j=Sl[o.type]||Ap;if(n.colorSpace&&n.colorSpace!=="rgb"){var Q=Cv[n.colorSpace];j=function(ie,ge){return Q.reverse(Q.interpolate(Q.forward(ie),Q.forward(ge),k))}}return typeof F.evaluate=="function"?{evaluate:function(){for(var ge=[],he=arguments.length;he--;)ge[he]=arguments[he];var ke=F.evaluate.apply(void 0,ge),qe=Y.evaluate.apply(void 0,ge);if(!(ke===void 0||qe===void 0))return j(ke,qe,k)}}:j(F,Y,k)}function Cp(n,o,u){return o.type==="color"?u=oi.parse(u):o.type==="formatted"?u=xn.fromString(u.toString()):o.type==="resolvedImage"?u=zn.fromString(u.toString()):pi(u)!==o.type&&(o.type!=="enum"||!o.values[u])&&(u=void 0),zl(u,n.default,o.default)}function jm(n,o,u,p){var x=p-u,A=n-u;return x===0?0:o===1?A/x:(Math.pow(o,A)-1)/(Math.pow(o,x)-1)}var Il=function(o,u){this.expression=o,this._warningHistory={},this._evaluator=new js,this._defaultValue=u?Km(u):null,this._enumValues=u&&u.type==="enum"?u.values:null};Il.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._evaluator.globals=o,this._evaluator.feature=u,this._evaluator.featureState=p,this._evaluator.canonical=x,this._evaluator.availableImages=A||null,this._evaluator.formattedSection=k,this.expression.evaluate(this._evaluator)},Il.prototype.evaluate=function(o,u,p,x,A,k){this._evaluator.globals=o,this._evaluator.feature=u||null,this._evaluator.featureState=p||null,this._evaluator.canonical=x,this._evaluator.availableImages=A||null,this._evaluator.formattedSection=k||null;try{var F=this.expression.evaluate(this._evaluator);if(F==null||typeof F=="number"&&F!==F)return this._defaultValue;if(this._enumValues&&!(F in this._enumValues))throw new vn("Expected value to be one of "+Object.keys(this._enumValues).map(function(Y){return JSON.stringify(Y)}).join(", ")+", but found "+JSON.stringify(F)+" instead.");return F}catch(Y){return this._warningHistory[Y.message]||(this._warningHistory[Y.message]=!0,typeof console!="undefined"&&console.warn(Y.message)),this._defaultValue}};function Tu(n){return Array.isArray(n)&&n.length>0&&typeof n[0]=="string"&&n[0]in Qf}function ec(n,o){var u=new Ml(Qf,[],o?Fv(o):void 0),p=u.parse(n,void 0,void 0,void 0,o&&o.type==="string"?{typeAnnotation:"coerce"}:void 0);return p?Jc(new Il(p,o)):wu(u.errors)}var ks=function(o,u){this.kind=o,this._styleExpression=u,this.isStateDependent=o!=="constant"&&!Tl(u.expression)};ks.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,u,p,x,A,k)},ks.prototype.evaluate=function(o,u,p,x,A,k){return this._styleExpression.evaluate(o,u,p,x,A,k)};var Cs=function(o,u,p,x){this.kind=o,this.zoomStops=p,this._styleExpression=u,this.isStateDependent=o!=="camera"&&!Tl(u.expression),this.interpolationType=x};Cs.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,u,p,x,A,k)},Cs.prototype.evaluate=function(o,u,p,x,A,k){return this._styleExpression.evaluate(o,u,p,x,A,k)},Cs.prototype.interpolationFactor=function(o,u,p){return this.interpolationType?bn.interpolationFactor(this.interpolationType,o,u,p):0};function Xo(n,o){if(n=ec(n,o),n.result==="error")return n;var u=n.value.expression,p=Uc(u);if(!p&&!sf(o))return wu([new bs("","data expressions not supported")]);var x=Vc(u,["zoom"]);if(!x&&!Tp(o))return wu([new bs("","zoom expressions not supported")]);var A=uf(u);if(!A&&!x)return wu([new bs("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(A instanceof bs)return wu([A]);if(A instanceof bn&&!Kc(o))return wu([new bs("",'"interpolate" expressions cannot be used with this property')]);if(!A)return Jc(p?new ks("constant",n.value):new ks("source",n.value));var k=A instanceof bn?A.interpolation:void 0;return Jc(p?new Cs("camera",n.value,A.labels,k):new Cs("composite",n.value,A.labels,k))}var lf=function(o,u){this._parameters=o,this._specification=u,mu(this,Mp(this._parameters,this._specification))};lf.deserialize=function(o){return new lf(o._parameters,o._specification)},lf.serialize=function(o){return{_parameters:o._parameters,_specification:o._specification}};function Jm(n,o){if($f(n))return new lf(n,o);if(Tu(n)){var u=Xo(n,o);if(u.result==="error")throw new Error(u.value.map(function(x){return x.key+": "+x.message}).join(", "));return u.value}else{var p=n;return typeof n=="string"&&o.type==="color"&&(p=oi.parse(n)),{kind:"constant",evaluate:function(){return p}}}}function uf(n){var o=null;if(n instanceof kl)o=uf(n.result);else if(n instanceof Js)for(var u=0,p=n.args;up.maximum?[new Or(o,u,u+" is greater than the maximum value "+p.maximum)]:[]}function Qc(n){var o=n.valueSpec,u=sn(n.value.type),p,x={},A,k,F=u!=="categorical"&&n.value.property===void 0,Y=!F,j=pi(n.value.stops)==="array"&&pi(n.value.stops[0])==="array"&&pi(n.value.stops[0][0])==="object",Q=ds({key:n.key,value:n.value,valueSpec:n.styleSpec.function,style:n.style,styleSpec:n.styleSpec,objectElementValidators:{stops:ie,default:ke}});return u==="identity"&&F&&Q.push(new Or(n.key,n.value,'missing required property "property"')),u!=="identity"&&!n.value.stops&&Q.push(new Or(n.key,n.value,'missing required property "stops"')),u==="exponential"&&n.valueSpec.expression&&!Kc(n.valueSpec)&&Q.push(new Or(n.key,n.value,"exponential functions not supported")),n.styleSpec.$version>=8&&(Y&&!sf(n.valueSpec)?Q.push(new Or(n.key,n.value,"property functions not supported")):F&&!Tp(n.valueSpec)&&Q.push(new Or(n.key,n.value,"zoom functions not supported"))),(u==="categorical"||j)&&n.value.property===void 0&&Q.push(new Or(n.key,n.value,'"property" property is required')),Q;function ie(qe){if(u==="identity")return[new Or(qe.key,qe.value,'identity function may not have a "stops" property')];var ut=[],et=qe.value;return ut=ut.concat(qv({key:qe.key,value:et,valueSpec:qe.valueSpec,style:qe.style,styleSpec:qe.styleSpec,arrayElementValidator:ge})),pi(et)==="array"&&et.length===0&&ut.push(new Or(qe.key,et,"array must have at least one stop")),ut}function ge(qe){var ut=[],et=qe.value,kt=qe.key;if(pi(et)!=="array")return[new Or(kt,et,"array expected, "+pi(et)+" found")];if(et.length!==2)return[new Or(kt,et,"array length 2 expected, length "+et.length+" found")];if(j){if(pi(et[0])!=="object")return[new Or(kt,et,"object expected, "+pi(et[0])+" found")];if(et[0].zoom===void 0)return[new Or(kt,et,"object stop key must have zoom")];if(et[0].value===void 0)return[new Or(kt,et,"object stop key must have value")];if(k&&k>sn(et[0].zoom))return[new Or(kt,et[0].zoom,"stop zoom values must appear in ascending order")];sn(et[0].zoom)!==k&&(k=sn(et[0].zoom),A=void 0,x={}),ut=ut.concat(ds({key:kt+"[0]",value:et[0],valueSpec:{zoom:{}},style:qe.style,styleSpec:qe.styleSpec,objectElementValidators:{zoom:ff,value:he}}))}else ut=ut.concat(he({key:kt+"[0]",value:et[0],valueSpec:{},style:qe.style,styleSpec:qe.styleSpec},et));return Tu(gl(et[1]))?ut.concat([new Or(kt+"[1]",et[1],"expressions are not allowed in function stops.")]):ut.concat(li({key:kt+"[1]",value:et[1],valueSpec:o,style:qe.style,styleSpec:qe.styleSpec}))}function he(qe,ut){var et=pi(qe.value),kt=sn(qe.value),_t=qe.value!==null?qe.value:ut;if(!p)p=et;else if(et!==p)return[new Or(qe.key,_t,et+" stop domain type must match previous stop domain type "+p)];if(et!=="number"&&et!=="string"&&et!=="boolean")return[new Or(qe.key,_t,"stop domain value must be a number, string, or boolean")];if(et!=="number"&&u!=="categorical"){var St="number expected, "+et+" found";return sf(o)&&u===void 0&&(St+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Or(qe.key,_t,St)]}return u==="categorical"&&et==="number"&&(!isFinite(kt)||Math.floor(kt)!==kt)?[new Or(qe.key,_t,"integer expected, found "+kt)]:u!=="categorical"&&et==="number"&&A!==void 0&&kt=2&&n[1]!=="$id"&&n[1]!=="$type";case"in":return n.length>=3&&(typeof n[1]!="string"||Array.isArray(n[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return n.length!==3||Array.isArray(n[1])||Array.isArray(n[2]);case"any":case"all":for(var o=0,u=n.slice(1);oo?1:0}function hf(n){if(!Array.isArray(n))return!1;if(n[0]==="within")return!0;for(var o=1;o"||o==="<="||o===">="?Nv(n[1],n[2],o):o==="any"?ey(n.slice(1)):o==="all"?["all"].concat(n.slice(1).map(vf)):o==="none"?["all"].concat(n.slice(1).map(vf).map(tc)):o==="in"?Lp(n[1],n.slice(2)):o==="!in"?tc(Lp(n[1],n.slice(2))):o==="has"?Bv(n[1]):o==="!has"?tc(Bv(n[1])):o==="within"?n:!0;return u}function Nv(n,o,u){switch(n){case"$type":return["filter-type-"+u,o];case"$id":return["filter-id-"+u,o];default:return["filter-"+u,n,o]}}function ey(n){return["any"].concat(n.map(vf))}function Lp(n,o){if(o.length===0)return!1;switch(n){case"$type":return["filter-type-in",["literal",o]];case"$id":return["filter-id-in",["literal",o]];default:return o.length>200&&!o.some(function(u){return typeof u!=typeof o[0]})?["filter-in-large",n,["literal",o.sort(Rl)]]:["filter-in-small",n,["literal",o]]}}function Bv(n){switch(n){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",n]}}function tc(n){return["!",n]}function eh(n){return go(gl(n.value))?Au(mu({},n,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Ov(n)}function Ov(n){var o=n.value,u=n.key;if(pi(o)!=="array")return[new Or(u,o,"array expected, "+pi(o)+" found")];var p=n.styleSpec,x,A=[];if(o.length<1)return[new Or(u,o,"filter array must have at least 1 element")];switch(A=A.concat($c({key:u+"[0]",value:o[0],valueSpec:p.filter_operator,style:n.style,styleSpec:n.styleSpec})),sn(o[0])){case"<":case"<=":case">":case">=":o.length>=2&&sn(o[1])==="$type"&&A.push(new Or(u,o,'"$type" cannot be use with operator "'+o[0]+'"'));case"==":case"!=":o.length!==3&&A.push(new Or(u,o,'filter array for operator "'+o[0]+'" must have 3 elements'));case"in":case"!in":o.length>=2&&(x=pi(o[1]),x!=="string"&&A.push(new Or(u+"[1]",o[1],"string expected, "+x+" found")));for(var k=2;k=Q[he+0]&&p>=Q[he+1])?(k[ge]=!0,A.push(j[ge])):k[ge]=!1}}},Ls.prototype._forEachCell=function(n,o,u,p,x,A,k,F){for(var Y=this._convertToCellCoord(n),j=this._convertToCellCoord(o),Q=this._convertToCellCoord(u),ie=this._convertToCellCoord(p),ge=Y;ge<=Q;ge++)for(var he=j;he<=ie;he++){var ke=this.d*he+ge;if(!(F&&!F(this._convertFromCellCoord(ge),this._convertFromCellCoord(he),this._convertFromCellCoord(ge+1),this._convertFromCellCoord(he+1)))&&x.call(this,n,o,u,p,ke,A,k,F))return}},Ls.prototype._convertFromCellCoord=function(n){return(n-this.padding)/this.scale},Ls.prototype._convertToCellCoord=function(n){return Math.max(0,Math.min(this.d-1,Math.floor(n*this.scale)+this.padding))},Ls.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var n=this.cells,o=ql+this.cells.length+1+1,u=0,p=0;p=0)){var ie=n[Q];j[Q]=Nl[Y].shallow.indexOf(Q)>=0?ie:U(ie,o)}n instanceof Error&&(j.message=n.message)}if(j.$name)throw new Error("$name property is reserved for worker serialization logic.");return Y!=="Object"&&(j.$name=Y),j}throw new Error("can't serialize object of type "+typeof n)}function Z(n){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp||P(n)||N(n)||ArrayBuffer.isView(n)||n instanceof nh)return n;if(Array.isArray(n))return n.map(Z);if(typeof n=="object"){var o=n.$name||"Object",u=Nl[o],p=u.klass;if(!p)throw new Error("can't deserialize unregistered class "+o);if(p.deserialize)return p.deserialize(n);for(var x=Object.create(p.prototype),A=0,k=Object.keys(n);A=0?Y:Z(Y)}}return x}throw new Error("can't deserialize object of type "+typeof n)}var $=function(){this.first=!0};$.prototype.update=function(o,u){var p=Math.floor(o);return this.first?(this.first=!1,this.lastIntegerZoom=p,this.lastIntegerZoomTime=0,this.lastZoom=o,this.lastFloorZoom=p,!0):(this.lastFloorZoom>p?(this.lastIntegerZoom=p+1,this.lastIntegerZoomTime=u):this.lastFloorZoom=128&&n<=255},Arabic:function(n){return n>=1536&&n<=1791},"Arabic Supplement":function(n){return n>=1872&&n<=1919},"Arabic Extended-A":function(n){return n>=2208&&n<=2303},"Hangul Jamo":function(n){return n>=4352&&n<=4607},"Unified Canadian Aboriginal Syllabics":function(n){return n>=5120&&n<=5759},Khmer:function(n){return n>=6016&&n<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(n){return n>=6320&&n<=6399},"General Punctuation":function(n){return n>=8192&&n<=8303},"Letterlike Symbols":function(n){return n>=8448&&n<=8527},"Number Forms":function(n){return n>=8528&&n<=8591},"Miscellaneous Technical":function(n){return n>=8960&&n<=9215},"Control Pictures":function(n){return n>=9216&&n<=9279},"Optical Character Recognition":function(n){return n>=9280&&n<=9311},"Enclosed Alphanumerics":function(n){return n>=9312&&n<=9471},"Geometric Shapes":function(n){return n>=9632&&n<=9727},"Miscellaneous Symbols":function(n){return n>=9728&&n<=9983},"Miscellaneous Symbols and Arrows":function(n){return n>=11008&&n<=11263},"CJK Radicals Supplement":function(n){return n>=11904&&n<=12031},"Kangxi Radicals":function(n){return n>=12032&&n<=12255},"Ideographic Description Characters":function(n){return n>=12272&&n<=12287},"CJK Symbols and Punctuation":function(n){return n>=12288&&n<=12351},Hiragana:function(n){return n>=12352&&n<=12447},Katakana:function(n){return n>=12448&&n<=12543},Bopomofo:function(n){return n>=12544&&n<=12591},"Hangul Compatibility Jamo":function(n){return n>=12592&&n<=12687},Kanbun:function(n){return n>=12688&&n<=12703},"Bopomofo Extended":function(n){return n>=12704&&n<=12735},"CJK Strokes":function(n){return n>=12736&&n<=12783},"Katakana Phonetic Extensions":function(n){return n>=12784&&n<=12799},"Enclosed CJK Letters and Months":function(n){return n>=12800&&n<=13055},"CJK Compatibility":function(n){return n>=13056&&n<=13311},"CJK Unified Ideographs Extension A":function(n){return n>=13312&&n<=19903},"Yijing Hexagram Symbols":function(n){return n>=19904&&n<=19967},"CJK Unified Ideographs":function(n){return n>=19968&&n<=40959},"Yi Syllables":function(n){return n>=40960&&n<=42127},"Yi Radicals":function(n){return n>=42128&&n<=42191},"Hangul Jamo Extended-A":function(n){return n>=43360&&n<=43391},"Hangul Syllables":function(n){return n>=44032&&n<=55215},"Hangul Jamo Extended-B":function(n){return n>=55216&&n<=55295},"Private Use Area":function(n){return n>=57344&&n<=63743},"CJK Compatibility Ideographs":function(n){return n>=63744&&n<=64255},"Arabic Presentation Forms-A":function(n){return n>=64336&&n<=65023},"Vertical Forms":function(n){return n>=65040&&n<=65055},"CJK Compatibility Forms":function(n){return n>=65072&&n<=65103},"Small Form Variants":function(n){return n>=65104&&n<=65135},"Arabic Presentation Forms-B":function(n){return n>=65136&&n<=65279},"Halfwidth and Fullwidth Forms":function(n){return n>=65280&&n<=65519}};function ae(n){for(var o=0,u=n;o=65097&&n<=65103)||X["CJK Compatibility Ideographs"](n)||X["CJK Compatibility"](n)||X["CJK Radicals Supplement"](n)||X["CJK Strokes"](n)||X["CJK Symbols and Punctuation"](n)&&!(n>=12296&&n<=12305)&&!(n>=12308&&n<=12319)&&n!==12336||X["CJK Unified Ideographs Extension A"](n)||X["CJK Unified Ideographs"](n)||X["Enclosed CJK Letters and Months"](n)||X["Hangul Compatibility Jamo"](n)||X["Hangul Jamo Extended-A"](n)||X["Hangul Jamo Extended-B"](n)||X["Hangul Jamo"](n)||X["Hangul Syllables"](n)||X.Hiragana(n)||X["Ideographic Description Characters"](n)||X.Kanbun(n)||X["Kangxi Radicals"](n)||X["Katakana Phonetic Extensions"](n)||X.Katakana(n)&&n!==12540||X["Halfwidth and Fullwidth Forms"](n)&&n!==65288&&n!==65289&&n!==65293&&!(n>=65306&&n<=65310)&&n!==65339&&n!==65341&&n!==65343&&!(n>=65371&&n<=65503)&&n!==65507&&!(n>=65512&&n<=65519)||X["Small Form Variants"](n)&&!(n>=65112&&n<=65118)&&!(n>=65123&&n<=65126)||X["Unified Canadian Aboriginal Syllabics"](n)||X["Unified Canadian Aboriginal Syllabics Extended"](n)||X["Vertical Forms"](n)||X["Yijing Hexagram Symbols"](n)||X["Yi Syllables"](n)||X["Yi Radicals"](n))}function Qe(n){return!!(X["Latin-1 Supplement"](n)&&(n===167||n===169||n===174||n===177||n===188||n===189||n===190||n===215||n===247)||X["General Punctuation"](n)&&(n===8214||n===8224||n===8225||n===8240||n===8241||n===8251||n===8252||n===8258||n===8263||n===8264||n===8265||n===8273)||X["Letterlike Symbols"](n)||X["Number Forms"](n)||X["Miscellaneous Technical"](n)&&(n>=8960&&n<=8967||n>=8972&&n<=8991||n>=8996&&n<=9e3||n===9003||n>=9085&&n<=9114||n>=9150&&n<=9165||n===9167||n>=9169&&n<=9179||n>=9186&&n<=9215)||X["Control Pictures"](n)&&n!==9251||X["Optical Character Recognition"](n)||X["Enclosed Alphanumerics"](n)||X["Geometric Shapes"](n)||X["Miscellaneous Symbols"](n)&&!(n>=9754&&n<=9759)||X["Miscellaneous Symbols and Arrows"](n)&&(n>=11026&&n<=11055||n>=11088&&n<=11097||n>=11192&&n<=11243)||X["CJK Symbols and Punctuation"](n)||X.Katakana(n)||X["Private Use Area"](n)||X["CJK Compatibility Forms"](n)||X["Small Form Variants"](n)||X["Halfwidth and Fullwidth Forms"](n)||n===8734||n===8756||n===8757||n>=9984&&n<=10087||n>=10102&&n<=10131||n===65532||n===65533)}function st(n){return!(De(n)||Qe(n))}function Ie(n){return X.Arabic(n)||X["Arabic Supplement"](n)||X["Arabic Extended-A"](n)||X["Arabic Presentation Forms-A"](n)||X["Arabic Presentation Forms-B"](n)}function Ve(n){return n>=1424&&n<=2303||X["Arabic Presentation Forms-A"](n)||X["Arabic Presentation Forms-B"](n)}function Ke(n,o){return!(!o&&Ve(n)||n>=2304&&n<=3583||n>=3840&&n<=4255||X.Khmer(n))}function ct(n){for(var o=0,u=n;o-1&&(nr=je.error),Ht&&Ht(n)};function Dr(){Ir.fire(new ii("pluginStateChange",{pluginStatus:nr,pluginURL:cr}))}var Ir=new dr,ta=function(){return nr},Ur=function(n){return n({pluginStatus:nr,pluginURL:cr}),Ir.on("pluginStateChange",n),n},Kr=function(n,o,u){if(u===void 0&&(u=!1),nr===je.deferred||nr===je.loading||nr===je.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");cr=mt.resolveURL(n),nr=je.deferred,Ht=o,Dr(),u||Na()},Na=function(){if(nr!==je.deferred||!cr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");nr=je.loading,Dr(),cr&&rt({url:cr},function(n){n?ur(n):(nr=je.loaded,Dr())})},ri={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return nr===je.loaded||ri.applyArabicShaping!=null},isLoading:function(){return nr===je.loading},setState:function(o){nr=o.pluginStatus,cr=o.pluginURL},isParsed:function(){return ri.applyArabicShaping!=null&&ri.processBidirectionalText!=null&&ri.processStyledBidirectionalText!=null},getPluginURL:function(){return cr}},ei=function(){!ri.isLoading()&&!ri.isLoaded()&&ta()==="deferred"&&Na()},Xt=function(o,u){this.zoom=o,u?(this.now=u.now,this.fadeDuration=u.fadeDuration,this.zoomHistory=u.zoomHistory,this.transition=u.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new $,this.transition={})};Xt.prototype.isSupportedScript=function(o){return ot(o,ri.isLoaded())},Xt.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Xt.prototype.getCrossfadeParameters=function(){var o=this.zoom,u=o-Math.floor(o),p=this.crossFadingFactor();return o>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:u+(1-u)*p}:{fromScale:.5,toScale:1,t:1-(1-p)*u}};var Jr=function(o,u){this.property=o,this.value=u,this.expression=Jm(u===void 0?o.specification.default:u,o.specification)};Jr.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Jr.prototype.possiblyEvaluate=function(o,u,p){return this.property.possiblyEvaluate(this,o,u,p)};var oa=function(o){this.property=o,this.value=new Jr(o,void 0)};oa.prototype.transitioned=function(o,u){return new Pi(this.property,this.value,u,H({},o.transition,this.transition),o.now)},oa.prototype.untransitioned=function(){return new Pi(this.property,this.value,null,{},0)};var sa=function(o){this._properties=o,this._values=Object.create(o.defaultTransitionablePropertyValues)};sa.prototype.getValue=function(o){return Ae(this._values[o].value.value)},sa.prototype.setValue=function(o,u){this._values.hasOwnProperty(o)||(this._values[o]=new oa(this._values[o].property)),this._values[o].value=new Jr(this._values[o].property,u===null?void 0:Ae(u))},sa.prototype.getTransition=function(o){return Ae(this._values[o].transition)},sa.prototype.setTransition=function(o,u){this._values.hasOwnProperty(o)||(this._values[o]=new oa(this._values[o].property)),this._values[o].transition=Ae(u)||void 0},sa.prototype.serialize=function(){for(var o={},u=0,p=Object.keys(this._values);uthis.end)return this.prior=null,A;if(this.value.isDataDriven())return this.prior=null,A;if(xk.zoomHistory.lastIntegerZoom?{from:p,to:x}:{from:A,to:x}},o.prototype.interpolate=function(p){return p},o}(Vr),Mi=function(o){this.specification=o};Mi.prototype.possiblyEvaluate=function(o,u,p,x){if(o.value!==void 0)if(o.expression.kind==="constant"){var A=o.expression.evaluate(u,null,{},p,x);return this._calculate(A,A,A,u)}else return this._calculate(o.expression.evaluate(new Xt(Math.floor(u.zoom-1),u)),o.expression.evaluate(new Xt(Math.floor(u.zoom),u)),o.expression.evaluate(new Xt(Math.floor(u.zoom+1),u)),u)},Mi.prototype._calculate=function(o,u,p,x){var A=x.zoom;return A>x.zoomHistory.lastIntegerZoom?{from:o,to:u}:{from:p,to:u}},Mi.prototype.interpolate=function(o){return o};var lo=function(o){this.specification=o};lo.prototype.possiblyEvaluate=function(o,u,p,x){return!!o.expression.evaluate(u,null,{},p,x)},lo.prototype.interpolate=function(){return!1};var Rn=function(o){this.properties=o,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var u in o){var p=o[u];p.specification.overridable&&this.overridableProperties.push(u);var x=this.defaultPropertyValues[u]=new Jr(p,void 0),A=this.defaultTransitionablePropertyValues[u]=new oa(p);this.defaultTransitioningPropertyValues[u]=A.untransitioned(),this.defaultPossiblyEvaluatedValues[u]=x.possiblyEvaluate({})}};y("DataDrivenProperty",Vr),y("DataConstantProperty",wr),y("CrossFadedDataDrivenProperty",Bi),y("CrossFadedProperty",Mi),y("ColorRampProperty",lo);var pn="-transition",mi=function(n){function o(u,p){if(n.call(this),this.id=u.id,this.type=u.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},u.type!=="custom"&&(u=u,this.metadata=u.metadata,this.minzoom=u.minzoom,this.maxzoom=u.maxzoom,u.type!=="background"&&(this.source=u.source,this.sourceLayer=u["source-layer"],this.filter=u.filter),p.layout&&(this._unevaluatedLayout=new tn(p.layout)),p.paint)){this._transitionablePaint=new sa(p.paint);for(var x in u.paint)this.setPaintProperty(x,u.paint[x],{validate:!1});for(var A in u.layout)this.setLayoutProperty(A,u.layout[A],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new wn(p.paint)}}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},o.prototype.getLayoutProperty=function(p){return p==="visibility"?this.visibility:this._unevaluatedLayout.getValue(p)},o.prototype.setLayoutProperty=function(p,x,A){if(A===void 0&&(A={}),x!=null){var k="layers."+this.id+".layout."+p;if(this._validate(Fl,k,p,x,A))return}if(p==="visibility"){this.visibility=x;return}this._unevaluatedLayout.setValue(p,x)},o.prototype.getPaintProperty=function(p){return ve(p,pn)?this._transitionablePaint.getTransition(p.slice(0,-pn.length)):this._transitionablePaint.getValue(p)},o.prototype.setPaintProperty=function(p,x,A){if(A===void 0&&(A={}),x!=null){var k="layers."+this.id+".paint."+p;if(this._validate(ih,k,p,x,A))return!1}if(ve(p,pn))return this._transitionablePaint.setTransition(p.slice(0,-pn.length),x||void 0),!1;var F=this._transitionablePaint._values[p],Y=F.property.specification["property-type"]==="cross-faded-data-driven",j=F.value.isDataDriven(),Q=F.value;this._transitionablePaint.setValue(p,x),this._handleSpecialPaintPropertyUpdate(p);var ie=this._transitionablePaint._values[p].value,ge=ie.isDataDriven();return ge||j||Y||this._handleOverridablePaintPropertyUpdate(p,Q,ie)},o.prototype._handleSpecialPaintPropertyUpdate=function(p){},o.prototype._handleOverridablePaintPropertyUpdate=function(p,x,A){return!1},o.prototype.isHidden=function(p){return this.minzoom&&p=this.maxzoom?!0:this.visibility==="none"},o.prototype.updateTransitions=function(p){this._transitioningPaint=this._transitionablePaint.transitioned(p,this._transitioningPaint)},o.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},o.prototype.recalculate=function(p,x){p.getCrossfadeParameters&&(this._crossfadeParameters=p.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(p,void 0,x)),this.paint=this._transitioningPaint.possiblyEvaluate(p,void 0,x)},o.prototype.serialize=function(){var p={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(p.layout=p.layout||{},p.layout.visibility=this.visibility),Me(p,function(x,A){return x!==void 0&&!(A==="layout"&&!Object.keys(x).length)&&!(A==="paint"&&!Object.keys(x).length)})},o.prototype._validate=function(p,x,A,k,F){return F===void 0&&(F={}),F&&F.validate===!1?!1:rc(this,p.call(ti,{key:x,layerType:this.type,objectKey:A,value:k,styleSpec:Wt,style:{glyphs:!0,sprite:!0}}))},o.prototype.is3D=function(){return!1},o.prototype.isTileClipped=function(){return!1},o.prototype.hasOffscreenPass=function(){return!1},o.prototype.resize=function(){},o.prototype.isStateDependent=function(){for(var p in this.paint._values){var x=this.paint.get(p);if(!(!(x instanceof wi)||!sf(x.property.specification))&&(x.value.kind==="source"||x.value.kind==="composite")&&x.value.isStateDependent)return!0}return!1},o}(dr),jo={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},uo=function(o,u){this._structArray=o,this._pos1=u*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},ci=128,gf=5,Aa=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Aa.serialize=function(o,u){return o._trim(),u&&(o.isTransferred=!0,u.push(o.arrayBuffer)),{length:o.length,arrayBuffer:o.arrayBuffer}},Aa.deserialize=function(o){var u=Object.create(this.prototype);return u.arrayBuffer=o.arrayBuffer,u.length=o.length,u.capacity=o.arrayBuffer.byteLength/u.bytesPerElement,u._refreshViews(),u},Aa.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Aa.prototype.clear=function(){this.length=0},Aa.prototype.resize=function(o){this.reserve(o),this.length=o},Aa.prototype.reserve=function(o){if(o>this.capacity){this.capacity=Math.max(o,Math.floor(this.capacity*gf),ci),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var u=this.uint8;this._refreshViews(),u&&this.uint8.set(u)}},Aa.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function ui(n,o){o===void 0&&(o=1);var u=0,p=0,x=n.map(function(k){var F=Bl(k.type),Y=u=Hv(u,Math.max(o,F)),j=k.components||1;return p=Math.max(p,F),u+=F*j,{name:k.name,type:k.type,components:j,offset:Y}}),A=Hv(u,Math.max(p,o));return{members:x,size:A,alignment:o}}function Bl(n){return jo[n].BYTES_PER_ELEMENT}function Hv(n,o){return Math.ceil(n/o)*o}var ac=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.int16[k+0]=x,this.int16[k+1]=A,p},o}(Aa);ac.prototype.bytesPerElement=4,y("StructArrayLayout2i4",ac);var ty=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*4;return this.int16[Y+0]=x,this.int16[Y+1]=A,this.int16[Y+2]=k,this.int16[Y+3]=F,p},o}(Aa);ty.prototype.bytesPerElement=8,y("StructArrayLayout4i8",ty);var _f=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*6;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.int16[Q+2]=k,this.int16[Q+3]=F,this.int16[Q+4]=Y,this.int16[Q+5]=j,p},o}(Aa);_f.prototype.bytesPerElement=12,y("StructArrayLayout2i4i12",_f);var oh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*4,ie=p*8;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.uint8[ie+4]=k,this.uint8[ie+5]=F,this.uint8[ie+6]=Y,this.uint8[ie+7]=j,p},o}(Aa);oh.prototype.bytesPerElement=8,y("StructArrayLayout2i4ub8",oh);var sh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.float32[k+0]=x,this.float32[k+1]=A,p},o}(Aa);sh.prototype.bytesPerElement=8,y("StructArrayLayout2f8",sh);var Lo=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge){var he=this.length;return this.resize(he+1),this.emplace(he,p,x,A,k,F,Y,j,Q,ie,ge)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he){var ke=p*10;return this.uint16[ke+0]=x,this.uint16[ke+1]=A,this.uint16[ke+2]=k,this.uint16[ke+3]=F,this.uint16[ke+4]=Y,this.uint16[ke+5]=j,this.uint16[ke+6]=Q,this.uint16[ke+7]=ie,this.uint16[ke+8]=ge,this.uint16[ke+9]=he,p},o}(Aa);Lo.prototype.bytesPerElement=20,y("StructArrayLayout10ui20",Lo);var xf=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke){var qe=this.length;return this.resize(qe+1),this.emplace(qe,p,x,A,k,F,Y,j,Q,ie,ge,he,ke)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe){var ut=p*12;return this.int16[ut+0]=x,this.int16[ut+1]=A,this.int16[ut+2]=k,this.int16[ut+3]=F,this.uint16[ut+4]=Y,this.uint16[ut+5]=j,this.uint16[ut+6]=Q,this.uint16[ut+7]=ie,this.int16[ut+8]=ge,this.int16[ut+9]=he,this.int16[ut+10]=ke,this.int16[ut+11]=qe,p},o}(Aa);xf.prototype.bytesPerElement=24,y("StructArrayLayout4i4ui4i24",xf);var ry=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.float32[F+0]=x,this.float32[F+1]=A,this.float32[F+2]=k,p},o}(Aa);ry.prototype.bytesPerElement=12,y("StructArrayLayout3f12",ry);var ay=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.uint32[A+0]=x,p},o}(Aa);ay.prototype.bytesPerElement=4,y("StructArrayLayout1ul4",ay);var Gv=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie){var ge=this.length;return this.resize(ge+1),this.emplace(ge,p,x,A,k,F,Y,j,Q,ie)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge){var he=p*10,ke=p*5;return this.int16[he+0]=x,this.int16[he+1]=A,this.int16[he+2]=k,this.int16[he+3]=F,this.int16[he+4]=Y,this.int16[he+5]=j,this.uint32[ke+3]=Q,this.uint16[he+8]=ie,this.uint16[he+9]=ge,p},o}(Aa);Gv.prototype.bytesPerElement=20,y("StructArrayLayout6i1ul2ui20",Gv);var Rp=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*6;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.int16[Q+2]=k,this.int16[Q+3]=F,this.int16[Q+4]=Y,this.int16[Q+5]=j,p},o}(Aa);Rp.prototype.bytesPerElement=12,y("StructArrayLayout2i2i2i12",Rp);var Su=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F){var Y=this.length;return this.resize(Y+1),this.emplace(Y,p,x,A,k,F)},o.prototype.emplace=function(p,x,A,k,F,Y){var j=p*4,Q=p*8;return this.float32[j+0]=x,this.float32[j+1]=A,this.float32[j+2]=k,this.int16[Q+6]=F,this.int16[Q+7]=Y,p},o}(Aa);Su.prototype.bytesPerElement=16,y("StructArrayLayout2f1f2i16",Su);var Jo=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*12,j=p*3;return this.uint8[Y+0]=x,this.uint8[Y+1]=A,this.float32[j+1]=k,this.float32[j+2]=F,p},o}(Aa);Jo.prototype.bytesPerElement=12,y("StructArrayLayout2ub2f12",Jo);var ku=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.uint16[F+0]=x,this.uint16[F+1]=A,this.uint16[F+2]=k,p},o}(Aa);ku.prototype.bytesPerElement=6,y("StructArrayLayout3ui6",ku);var Zv=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t){var St=this.length;return this.resize(St+1),this.emplace(St,p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t,St){var zt=p*24,jt=p*12,vr=p*48;return this.int16[zt+0]=x,this.int16[zt+1]=A,this.uint16[zt+2]=k,this.uint16[zt+3]=F,this.uint32[jt+2]=Y,this.uint32[jt+3]=j,this.uint32[jt+4]=Q,this.uint16[zt+10]=ie,this.uint16[zt+11]=ge,this.uint16[zt+12]=he,this.float32[jt+7]=ke,this.float32[jt+8]=qe,this.uint8[vr+36]=ut,this.uint8[vr+37]=et,this.uint8[vr+38]=kt,this.uint32[jt+10]=_t,this.int16[zt+22]=St,p},o}(Aa);Zv.prototype.bytesPerElement=48,y("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Zv);var Fp=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t,St,zt,jt,vr,fr,Rr,Mr,Pr,Qr,Fr,Nr){var ya=this.length;return this.resize(ya+1),this.emplace(ya,p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t,St,zt,jt,vr,fr,Rr,Mr,Pr,Qr,Fr,Nr)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t,St,zt,jt,vr,fr,Rr,Mr,Pr,Qr,Fr,Nr,ya){var jr=p*34,Wa=p*17;return this.int16[jr+0]=x,this.int16[jr+1]=A,this.int16[jr+2]=k,this.int16[jr+3]=F,this.int16[jr+4]=Y,this.int16[jr+5]=j,this.int16[jr+6]=Q,this.int16[jr+7]=ie,this.uint16[jr+8]=ge,this.uint16[jr+9]=he,this.uint16[jr+10]=ke,this.uint16[jr+11]=qe,this.uint16[jr+12]=ut,this.uint16[jr+13]=et,this.uint16[jr+14]=kt,this.uint16[jr+15]=_t,this.uint16[jr+16]=St,this.uint16[jr+17]=zt,this.uint16[jr+18]=jt,this.uint16[jr+19]=vr,this.uint16[jr+20]=fr,this.uint16[jr+21]=Rr,this.uint16[jr+22]=Mr,this.uint32[Wa+12]=Pr,this.float32[Wa+13]=Qr,this.float32[Wa+14]=Fr,this.float32[Wa+15]=Nr,this.float32[Wa+16]=ya,p},o}(Aa);Fp.prototype.bytesPerElement=68,y("StructArrayLayout8i15ui1ul4f68",Fp);var lh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.float32[A+0]=x,p},o}(Aa);lh.prototype.bytesPerElement=4,y("StructArrayLayout1f4",lh);var iy=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.int16[F+0]=x,this.int16[F+1]=A,this.int16[F+2]=k,p},o}(Aa);iy.prototype.bytesPerElement=6,y("StructArrayLayout3i6",iy);var bf=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*2,Y=p*4;return this.uint32[F+0]=x,this.uint16[Y+2]=A,this.uint16[Y+3]=k,p},o}(Aa);bf.prototype.bytesPerElement=8,y("StructArrayLayout1ul2ui8",bf);var Yv=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.uint16[k+0]=x,this.uint16[k+1]=A,p},o}(Aa);Yv.prototype.bytesPerElement=4,y("StructArrayLayout2ui4",Yv);var uh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.uint16[A+0]=x,p},o}(Aa);uh.prototype.bytesPerElement=2,y("StructArrayLayout1ui2",uh);var ic=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*4;return this.float32[Y+0]=x,this.float32[Y+1]=A,this.float32[Y+2]=k,this.float32[Y+3]=F,p},o}(Aa);ic.prototype.bytesPerElement=16,y("StructArrayLayout4f16",ic);var g1=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return u.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},u.x1.get=function(){return this._structArray.int16[this._pos2+2]},u.y1.get=function(){return this._structArray.int16[this._pos2+3]},u.x2.get=function(){return this._structArray.int16[this._pos2+4]},u.y2.get=function(){return this._structArray.int16[this._pos2+5]},u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.anchorPoint.get=function(){return new v(this.anchorPointX,this.anchorPointY)},Object.defineProperties(o.prototype,u),o}(uo);g1.prototype.size=20;var ny=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new g1(this,p)},o}(Gv);y("CollisionBoxArray",ny);var nc=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},u.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},u.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},u.segment.get=function(){return this._structArray.uint16[this._pos2+10]},u.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},u.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},u.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},u.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},u.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},u.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},u.placedOrientation.set=function(p){this._structArray.uint8[this._pos1+37]=p},u.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},u.hidden.set=function(p){this._structArray.uint8[this._pos1+38]=p},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+10]=p},u.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(o.prototype,u),o}(uo);nc.prototype.size=48;var oy=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new nc(this,p)},o}(Zv);y("PlacedSymbolArray",oy);var fh=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},u.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},u.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},u.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},u.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},u.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},u.key.get=function(){return this._structArray.uint16[this._pos2+8]},u.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},u.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},u.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},u.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},u.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},u.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},u.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},u.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},u.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},u.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},u.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},u.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},u.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+12]=p},u.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},u.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},u.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},u.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(o.prototype,u),o}(uo);fh.prototype.size=68;var _1=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new fh(this,p)},o}(Fp);y("SymbolInstanceArray",_1);var x1=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getoffsetX=function(p){return this.float32[p*1+0]},o}(lh);y("GlyphOffsetArray",x1);var Qs=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getx=function(p){return this.int16[p*3+0]},o.prototype.gety=function(p){return this.int16[p*3+1]},o.prototype.gettileUnitDistanceFromAnchor=function(p){return this.int16[p*3+2]},o}(iy);y("SymbolLineVertexArray",Qs);var b1=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(o.prototype,u),o}(uo);b1.prototype.size=8;var w1=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new b1(this,p)},o}(bf);y("FeatureIndexArray",w1);var s3=ui([{name:"a_pos",components:2,type:"Int16"}],4),T1=s3.members,Tn=function(o){o===void 0&&(o=[]),this.segments=o};Tn.prototype.prepareSegment=function(o,u,p,x){var A=this.segments[this.segments.length-1];return o>Tn.MAX_VERTEX_ARRAY_LENGTH&&Ce("Max vertices per segment is "+Tn.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+o),(!A||A.vertexLength+o>Tn.MAX_VERTEX_ARRAY_LENGTH||A.sortKey!==x)&&(A={vertexOffset:u.length,primitiveOffset:p.length,vertexLength:0,primitiveLength:0},x!==void 0&&(A.sortKey=x),this.segments.push(A)),A},Tn.prototype.get=function(){return this.segments},Tn.prototype.destroy=function(){for(var o=0,u=this.segments;o>>16)*Y&65535)<<16)&4294967295,Q=Q<<15|Q>>>17,Q=(Q&65535)*j+(((Q>>>16)*j&65535)<<16)&4294967295,k^=Q,k=k<<13|k>>>19,F=(k&65535)*5+(((k>>>16)*5&65535)<<16)&4294967295,k=(F&65535)+27492+(((F>>>16)+58964&65535)<<16);switch(Q=0,x){case 3:Q^=(u.charCodeAt(ie+2)&255)<<16;case 2:Q^=(u.charCodeAt(ie+1)&255)<<8;case 1:Q^=u.charCodeAt(ie)&255,Q=(Q&65535)*Y+(((Q>>>16)*Y&65535)<<16)&4294967295,Q=Q<<15|Q>>>17,Q=(Q&65535)*j+(((Q>>>16)*j&65535)<<16)&4294967295,k^=Q}return k^=u.length,k^=k>>>16,k=(k&65535)*2246822507+(((k>>>16)*2246822507&65535)<<16)&4294967295,k^=k>>>13,k=(k&65535)*3266489909+(((k>>>16)*3266489909&65535)<<16)&4294967295,k^=k>>>16,k>>>0}n.exports=o}),d=s(function(n){function o(u,p){for(var x=u.length,A=p^x,k=0,F;x>=4;)F=u.charCodeAt(k)&255|(u.charCodeAt(++k)&255)<<8|(u.charCodeAt(++k)&255)<<16|(u.charCodeAt(++k)&255)<<24,F=(F&65535)*1540483477+(((F>>>16)*1540483477&65535)<<16),F^=F>>>24,F=(F&65535)*1540483477+(((F>>>16)*1540483477&65535)<<16),A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16)^F,x-=4,++k;switch(x){case 3:A^=(u.charCodeAt(k+2)&255)<<16;case 2:A^=(u.charCodeAt(k+1)&255)<<8;case 1:A^=u.charCodeAt(k)&255,A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16)}return A^=A>>>13,A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16),A^=A>>>15,A>>>0}n.exports=o}),w=b,D=b,R=d;w.murmur3=D,w.murmur2=R;var G=function(){this.ids=[],this.positions=[],this.indexed=!1};G.prototype.add=function(o,u,p,x){this.ids.push(re(o)),this.positions.push(u,p,x)},G.prototype.getPositions=function(o){for(var u=re(o),p=0,x=this.ids.length-1;p>1;this.ids[A]>=u?x=A:p=A+1}for(var k=[];this.ids[p]===u;){var F=this.positions[3*p],Y=this.positions[3*p+1],j=this.positions[3*p+2];k.push({index:F,start:Y,end:j}),p++}return k},G.serialize=function(o,u){var p=new Float64Array(o.ids),x=new Uint32Array(o.positions);return ue(p,x,0,p.length-1),u&&u.push(p.buffer,x.buffer),{ids:p,positions:x}},G.deserialize=function(o){var u=new G;return u.ids=o.ids,u.positions=o.positions,u.indexed=!0,u};var K=Math.pow(2,53)-1;function re(n){var o=+n;return!isNaN(o)&&o<=K?o:w(String(n))}function ue(n,o,u,p){for(;u>1],A=u-1,k=p+1;;){do A++;while(n[A]x);if(A>=k)break;be(n,A,k),be(o,3*A,3*k),be(o,3*A+1,3*k+1),be(o,3*A+2,3*k+2)}k-uk.x+1||Yk.y+1)&&Ce("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return u}function Si(n,o){return{type:n.type,id:n.id,properties:n.properties,geometry:o?Va(n):[]}}function La(n,o,u,p,x){n.emplaceBack(o*2+(p+1)/2,u*2+(x+1)/2)}var yi=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new ac,this.indexArray=new ku,this.segments=new Tn,this.programConfigurations=new Ar(o.layers,o.zoom),this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};yi.prototype.populate=function(o,u,p){var x=this.layers[0],A=[],k=null;x.type==="circle"&&(k=x.layout.get("circle-sort-key"));for(var F=0,Y=o;F=qr||ge<0||ge>=qr)){var he=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,o.sortKey),ke=he.vertexLength;La(this.layoutVertexArray,ie,ge,-1,-1),La(this.layoutVertexArray,ie,ge,1,-1),La(this.layoutVertexArray,ie,ge,1,1),La(this.layoutVertexArray,ie,ge,-1,1),this.indexArray.emplaceBack(ke,ke+1,ke+2),this.indexArray.emplaceBack(ke,ke+3,ke+2),he.vertexLength+=4,he.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,o,p,{},x)},y("CircleBucket",yi,{omit:["layers"]});function na(n,o){for(var u=0;u=3){for(var A=0;A1){if(Ps(n,o))return!0;for(var p=0;p1?n.distSqr(u):n.distSqr(u.sub(o)._mult(x)._add(o))}function Ul(n,o){for(var u=!1,p,x,A,k=0;ko.y!=A.y>o.y&&o.x<(A.x-x.x)*(o.y-x.y)/(A.y-x.y)+x.x&&(u=!u)}return u}function Do(n,o){for(var u=!1,p=0,x=n.length-1;po.y!=k.y>o.y&&o.x<(k.x-A.x)*(o.y-A.y)/(k.y-A.y)+A.x&&(u=!u)}return u}function Vl(n,o,u,p,x){for(var A=0,k=n;A=F.x&&x>=F.y)return!0}var Y=[new v(o,u),new v(o,x),new v(p,x),new v(p,u)];if(n.length>2)for(var j=0,Q=Y;jx.x&&o.x>x.x||n.yx.y&&o.y>x.y)return!1;var A=Le(n,o,u[0]);return A!==Le(n,o,u[1])||A!==Le(n,o,u[2])||A!==Le(n,o,u[3])}function Po(n,o,u){var p=o.paint.get(n).value;return p.kind==="constant"?p.value:u.programConfigurations.get(o.id).getMaxValue(n)}function el(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function Cu(n,o,u,p,x){if(!o[0]&&!o[1])return n;var A=v.convert(o)._mult(x);u==="viewport"&&A._rotate(-p);for(var k=[],F=0;F0&&(A=1/Math.sqrt(A)),n[0]=o[0]*A,n[1]=o[1]*A,n[2]=o[2]*A,n}function $Z(n,o){return n[0]*o[0]+n[1]*o[1]+n[2]*o[2]}function eY(n,o,u){var p=o[0],x=o[1],A=o[2],k=u[0],F=u[1],Y=u[2];return n[0]=x*Y-A*F,n[1]=A*k-p*Y,n[2]=p*F-x*k,n}function tY(n,o,u){var p=o[0],x=o[1],A=o[2];return n[0]=p*u[0]+x*u[3]+A*u[6],n[1]=p*u[1]+x*u[4]+A*u[7],n[2]=p*u[2]+x*u[5]+A*u[8],n}var rY=c3,lme=function(){var n=Xv();return function(o,u,p,x,A,k){var F,Y;for(u||(u=3),p||(p=0),x?Y=Math.min(x*u+p,o.length):Y=o.length,F=p;Fn.width||x.height>n.height||u.x>n.width-x.width||u.y>n.height-x.height)throw new RangeError("out of range source coordinates for image copy");if(x.width>o.width||x.height>o.height||p.x>o.width-x.width||p.y>o.height-x.height)throw new RangeError("out of range destination coordinates for image copy");for(var k=n.data,F=o.data,Y=0;Y80*u){F=j=n[0],Y=Q=n[1];for(var ke=u;kej&&(j=ie),ge>Q&&(Q=ge);he=Math.max(j-F,Q-Y),he=he!==0?1/he:0}return uy(A,k,u,F,Y,he),k}function cM(n,o,u,p,x){var A,k;if(x===g3(n,o,u,p)>0)for(A=o;A=o;A-=p)k=dM(A,n[A],n[A+1],k);return k&&S1(k,k.next)&&(cy(k),k=k.next),k}function ph(n,o){if(!n)return n;o||(o=n);var u=n,p;do if(p=!1,!u.steiner&&(S1(u,u.next)||An(u.prev,u,u.next)===0)){if(cy(u),u=o=u.prev,u===u.next)break;p=!0}else u=u.next;while(p||u!==o);return o}function uy(n,o,u,p,x,A,k){if(n){!k&&A&&EY(n,p,x,A);for(var F=n,Y,j;n.prev!==n.next;){if(Y=n.prev,j=n.next,A?bY(n,p,x,A):xY(n)){o.push(Y.i/u),o.push(n.i/u),o.push(j.i/u),cy(n),n=j.next,F=j.next;continue}if(n=j,n===F){k?k===1?(n=wY(ph(n),o,u),uy(n,o,u,p,x,A,2)):k===2&&TY(n,o,u,p,x,A):uy(ph(n),o,u,p,x,A,1);break}}}}function xY(n){var o=n.prev,u=n,p=n.next;if(An(o,u,p)>=0)return!1;for(var x=n.next.next;x!==n.prev;){if(Gp(o.x,o.y,u.x,u.y,p.x,p.y,x.x,x.y)&&An(x.prev,x,x.next)>=0)return!1;x=x.next}return!0}function bY(n,o,u,p){var x=n.prev,A=n,k=n.next;if(An(x,A,k)>=0)return!1;for(var F=x.xA.x?x.x>k.x?x.x:k.x:A.x>k.x?A.x:k.x,Q=x.y>A.y?x.y>k.y?x.y:k.y:A.y>k.y?A.y:k.y,ie=m3(F,Y,o,u,p),ge=m3(j,Q,o,u,p),he=n.prevZ,ke=n.nextZ;he&&he.z>=ie&&ke&&ke.z<=ge;){if(he!==n.prev&&he!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,he.x,he.y)&&An(he.prev,he,he.next)>=0||(he=he.prevZ,ke!==n.prev&&ke!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,ke.x,ke.y)&&An(ke.prev,ke,ke.next)>=0))return!1;ke=ke.nextZ}for(;he&&he.z>=ie;){if(he!==n.prev&&he!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,he.x,he.y)&&An(he.prev,he,he.next)>=0)return!1;he=he.prevZ}for(;ke&&ke.z<=ge;){if(ke!==n.prev&&ke!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,ke.x,ke.y)&&An(ke.prev,ke,ke.next)>=0)return!1;ke=ke.nextZ}return!0}function wY(n,o,u){var p=n;do{var x=p.prev,A=p.next.next;!S1(x,A)&&hM(x,p,p.next,A)&&fy(x,A)&&fy(A,x)&&(o.push(x.i/u),o.push(p.i/u),o.push(A.i/u),cy(p),cy(p.next),p=n=A),p=p.next}while(p!==n);return ph(p)}function TY(n,o,u,p,x,A){var k=n;do{for(var F=k.next.next;F!==k.prev;){if(k.i!==F.i&&PY(k,F)){var Y=vM(k,F);k=ph(k,k.next),Y=ph(Y,Y.next),uy(k,o,u,p,x,A),uy(Y,o,u,p,x,A);return}F=F.next}k=k.next}while(k!==n)}function AY(n,o,u,p){var x=[],A,k,F,Y,j;for(A=0,k=o.length;A=u.next.y&&u.next.y!==u.y){var F=u.x+(x-u.y)*(u.next.x-u.x)/(u.next.y-u.y);if(F<=p&&F>A){if(A=F,F===p){if(x===u.y)return u;if(x===u.next.y)return u.next}k=u.x=u.x&&u.x>=j&&p!==u.x&&Gp(xk.x||u.x===k.x&&CY(k,u)))&&(k=u,ie=ge)),u=u.next;while(u!==Y);return k}function CY(n,o){return An(n.prev,n,o.prev)<0&&An(o.next,n,n.next)<0}function EY(n,o,u,p){var x=n;do x.z===null&&(x.z=m3(x.x,x.y,o,u,p)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next;while(x!==n);x.prevZ.nextZ=null,x.prevZ=null,LY(x)}function LY(n){var o,u,p,x,A,k,F,Y,j=1;do{for(u=n,n=null,A=null,k=0;u;){for(k++,p=u,F=0,o=0;o0||Y>0&&p;)F!==0&&(Y===0||!p||u.z<=p.z)?(x=u,u=u.nextZ,F--):(x=p,p=p.nextZ,Y--),A?A.nextZ=x:n=x,x.prevZ=A,A=x;u=p}A.nextZ=null,j*=2}while(k>1);return n}function m3(n,o,u,p,x){return n=32767*(n-u)*x,o=32767*(o-p)*x,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,n|o<<1}function DY(n){var o=n,u=n;do(o.x=0&&(n-k)*(p-F)-(u-k)*(o-F)>=0&&(u-k)*(A-F)-(x-k)*(p-F)>=0}function PY(n,o){return n.next.i!==o.i&&n.prev.i!==o.i&&!zY(n,o)&&(fy(n,o)&&fy(o,n)&&IY(n,o)&&(An(n.prev,n,o.prev)||An(n,o.prev,o))||S1(n,o)&&An(n.prev,n,n.next)>0&&An(o.prev,o,o.next)>0)}function An(n,o,u){return(o.y-n.y)*(u.x-o.x)-(o.x-n.x)*(u.y-o.y)}function S1(n,o){return n.x===o.x&&n.y===o.y}function hM(n,o,u,p){var x=C1(An(n,o,u)),A=C1(An(n,o,p)),k=C1(An(u,p,n)),F=C1(An(u,p,o));return!!(x!==A&&k!==F||x===0&&k1(n,u,o)||A===0&&k1(n,p,o)||k===0&&k1(u,n,p)||F===0&&k1(u,o,p))}function k1(n,o,u){return o.x<=Math.max(n.x,u.x)&&o.x>=Math.min(n.x,u.x)&&o.y<=Math.max(n.y,u.y)&&o.y>=Math.min(n.y,u.y)}function C1(n){return n>0?1:n<0?-1:0}function zY(n,o){var u=n;do{if(u.i!==n.i&&u.next.i!==n.i&&u.i!==o.i&&u.next.i!==o.i&&hM(u,u.next,n,o))return!0;u=u.next}while(u!==n);return!1}function fy(n,o){return An(n.prev,n,n.next)<0?An(n,o,n.next)>=0&&An(n,n.prev,o)>=0:An(n,o,n.prev)<0||An(n,n.next,o)<0}function IY(n,o){var u=n,p=!1,x=(n.x+o.x)/2,A=(n.y+o.y)/2;do u.y>A!=u.next.y>A&&u.next.y!==u.y&&x<(u.next.x-u.x)*(A-u.y)/(u.next.y-u.y)+u.x&&(p=!p),u=u.next;while(u!==n);return p}function vM(n,o){var u=new y3(n.i,n.x,n.y),p=new y3(o.i,o.x,o.y),x=n.next,A=o.prev;return n.next=o,o.prev=n,u.next=x,x.prev=u,p.next=u,u.prev=p,A.next=p,p.prev=A,p}function dM(n,o,u,p){var x=new y3(n,o,u);return p?(x.next=p.next,x.prev=p,p.next.prev=x,p.next=x):(x.prev=x,x.next=x),x}function cy(n){n.next.prev=n.prev,n.prev.next=n.next,n.prevZ&&(n.prevZ.nextZ=n.nextZ),n.nextZ&&(n.nextZ.prevZ=n.prevZ)}function y3(n,o,u){this.i=n,this.x=o,this.y=u,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}M1.deviation=function(n,o,u,p){var x=o&&o.length,A=x?o[0]*u:n.length,k=Math.abs(g3(n,0,A,u));if(x)for(var F=0,Y=o.length;F0&&(p+=n[x-1].length,u.holes.push(p))}return u},p3.default=_Y;function RY(n,o,u,p,x){pM(n,o,u||0,p||n.length-1,x||FY)}function pM(n,o,u,p,x){for(;p>u;){if(p-u>600){var A=p-u+1,k=o-u+1,F=Math.log(A),Y=.5*Math.exp(2*F/3),j=.5*Math.sqrt(F*Y*(A-Y)/A)*(k-A/2<0?-1:1),Q=Math.max(u,Math.floor(o-k*Y/A+j)),ie=Math.min(p,Math.floor(o+(A-k)*Y/A+j));pM(n,o,Q,ie,x)}var ge=n[o],he=u,ke=p;for(hy(n,u,o),x(n[p],ge)>0&&hy(n,u,p);he0;)ke--}x(n[u],ge)===0?hy(n,u,ke):(ke++,hy(n,ke,p)),ke<=o&&(u=ke+1),o<=ke&&(p=ke-1)}}function hy(n,o,u){var p=n[o];n[o]=n[u],n[u]=p}function FY(n,o){return no?1:0}function _3(n,o){var u=n.length;if(u<=1)return[n];for(var p=[],x,A,k=0;k1)for(var Y=0;Y>3}if(p--,u===1||u===2)x+=n.readSVarint(),A+=n.readSVarint(),u===1&&(F&&k.push(F),F=[]),F.push(new v(x,A));else if(u===7)F&&F.push(F[0].clone());else throw new Error("unknown command "+u)}return F&&k.push(F),k},Zp.prototype.bbox=function(){var n=this._pbf;n.pos=this._geometry;for(var o=n.readVarint()+n.pos,u=1,p=0,x=0,A=0,k=1/0,F=-1/0,Y=1/0,j=-1/0;n.pos>3}if(p--,u===1||u===2)x+=n.readSVarint(),A+=n.readSVarint(),xF&&(F=x),Aj&&(j=A);else if(u!==7)throw new Error("unknown command "+u)}return[k,Y,F,j]},Zp.prototype.toGeoJSON=function(n,o,u){var p=this.extent*Math.pow(2,u),x=this.extent*n,A=this.extent*o,k=this.loadGeometry(),F=Zp.types[this.type],Y,j;function Q(he){for(var ke=0;ke>3;o=p===1?n.readString():p===2?n.readFloat():p===3?n.readDouble():p===4?n.readVarint64():p===5?n.readVarint():p===6?n.readSVarint():p===7?n.readBoolean():null}return o}gM.prototype.feature=function(n){if(n<0||n>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[n];var o=this._pbf.readVarint()+this._pbf.pos;return new mM(this._pbf,o,this.extent,this._keys,this._values)};var KY=QY;function QY(n,o){this.layers=n.readFields($Y,{},o)}function $Y(n,o,u){if(n===3){var p=new yM(u,u.readVarint()+u.pos);p.length&&(o[p.name]=p)}}var eW=KY,tW=mM,rW=yM,Yp={VectorTile:eW,VectorTileFeature:tW,VectorTileLayer:rW},aW=Yp.VectorTileFeature.types,iW=500,w3=Math.pow(2,13);function vy(n,o,u,p,x,A,k,F){n.emplaceBack(o,u,Math.floor(p*w3)*2+k,x*w3*2,A*w3*2,Math.round(F))}var Lu=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new _f,this.indexArray=new ku,this.programConfigurations=new Ar(o.layers,o.zoom),this.segments=new Tn,this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};Lu.prototype.populate=function(o,u,p){this.features=[],this.hasPattern=x3("fill-extrusion",this.layers,u);for(var x=0,A=o;x=1){var St=ut[kt-1];if(!nW(_t,St)){he.vertexLength+4>Tn.MAX_VERTEX_ARRAY_LENGTH&&(he=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var zt=_t.sub(St)._perp()._unit(),jt=St.dist(_t);et+jt>32768&&(et=0),vy(this.layoutVertexArray,_t.x,_t.y,zt.x,zt.y,0,0,et),vy(this.layoutVertexArray,_t.x,_t.y,zt.x,zt.y,0,1,et),et+=jt,vy(this.layoutVertexArray,St.x,St.y,zt.x,zt.y,0,0,et),vy(this.layoutVertexArray,St.x,St.y,zt.x,zt.y,0,1,et);var vr=he.vertexLength;this.indexArray.emplaceBack(vr,vr+2,vr+1),this.indexArray.emplaceBack(vr+1,vr+2,vr+3),he.vertexLength+=4,he.primitiveLength+=2}}}}if(he.vertexLength+j>Tn.MAX_VERTEX_ARRAY_LENGTH&&(he=this.segments.prepareSegment(j,this.layoutVertexArray,this.indexArray)),aW[o.type]==="Polygon"){for(var fr=[],Rr=[],Mr=he.vertexLength,Pr=0,Qr=Y;Prqr)||n.y===o.y&&(n.y<0||n.y>qr)}function oW(n){return n.every(function(o){return o.x<0})||n.every(function(o){return o.x>qr})||n.every(function(o){return o.y<0})||n.every(function(o){return o.y>qr})}var sW=new Rn({"fill-extrusion-opacity":new wr(Wt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Vr(Wt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new wr(Wt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new wr(Wt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Bi(Wt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Vr(Wt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Vr(Wt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new wr(Wt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),lW={paint:sW},uW=function(n){function o(u){n.call(this,u,lW)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.createBucket=function(p){return new Lu(p)},o.prototype.queryRadius=function(){return el(this.paint.get("fill-extrusion-translate"))},o.prototype.is3D=function(){return!0},o.prototype.queryIntersectsFeature=function(p,x,A,k,F,Y,j,Q){var ie=Cu(p,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),Y.angle,j),ge=this.paint.get("fill-extrusion-height").evaluate(x,A),he=this.paint.get("fill-extrusion-base").evaluate(x,A),ke=hW(ie,Q,Y,0),qe=cW(k,he,ge,Q),ut=qe[0],et=qe[1];return fW(ut,et,ke)},o}(mi);function dy(n,o){return n.x*o.x+n.y*o.y}function _M(n,o){if(n.length===1){for(var u=0,p=o[u++],x;!x||p.equals(x);)if(x=o[u++],!x)return 1/0;for(;u=2&&o[j-1].equals(o[j-2]);)j--;for(var Q=0;Q0;if(fr&&kt>Q){var Mr=he.dist(ke);if(Mr>2*ie){var Pr=he.sub(he.sub(ke)._mult(ie/Mr)._round());this.updateDistance(ke,Pr),this.addCurrentVertex(Pr,ut,0,0,ge),ke=Pr}}var Qr=ke&&qe,Fr=Qr?p:Y?"butt":x;if(Qr&&Fr==="round"&&(jtA&&(Fr="bevel"),Fr==="bevel"&&(jt>2&&(Fr="flipbevel"),jt100)_t=et.mult(-1);else{var Nr=jt*ut.add(et).mag()/ut.sub(et).mag();_t._perp()._mult(Nr*(Rr?-1:1))}this.addCurrentVertex(he,_t,0,0,ge),this.addCurrentVertex(he,_t.mult(-1),0,0,ge)}else if(Fr==="bevel"||Fr==="fakeround"){var ya=-Math.sqrt(jt*jt-1),jr=Rr?ya:0,Wa=Rr?0:ya;if(ke&&this.addCurrentVertex(he,ut,jr,Wa,ge),Fr==="fakeround")for(var _i=Math.round(vr*180/Math.PI/xW),Xa=1;Xa<_i;Xa++){var ja=Xa/_i;if(ja!==.5){var Ha=ja-.5,ki=1.0904+St*(-3.2452+St*(3.55645-St*1.43519)),Ii=.848013+St*(-1.06021+St*.215638);ja=ja+ja*Ha*(ja-1)*(ki*Ha*Ha+Ii)}var an=et.sub(ut)._mult(ja)._add(ut)._unit()._mult(Rr?-1:1);this.addHalfVertex(he,an.x,an.y,!1,Rr,0,ge)}qe&&this.addCurrentVertex(he,et,-jr,-Wa,ge)}else if(Fr==="butt")this.addCurrentVertex(he,_t,0,0,ge);else if(Fr==="square"){var cn=ke?1:-1;this.addCurrentVertex(he,_t,cn,cn,ge)}else Fr==="round"&&(ke&&(this.addCurrentVertex(he,ut,0,0,ge),this.addCurrentVertex(he,ut,1,1,ge,!0)),qe&&(this.addCurrentVertex(he,et,-1,-1,ge,!0),this.addCurrentVertex(he,et,0,0,ge)));if(fr&&kt2*ie){var kn=he.add(qe.sub(he)._mult(ie/Zn)._round());this.updateDistance(he,kn),this.addCurrentVertex(kn,et,0,0,ge),he=kn}}}}},zo.prototype.addCurrentVertex=function(o,u,p,x,A,k){k===void 0&&(k=!1);var F=u.x+u.y*p,Y=u.y-u.x*p,j=-u.x+u.y*x,Q=-u.y-u.x*x;this.addHalfVertex(o,F,Y,k,!1,p,A),this.addHalfVertex(o,j,Q,k,!0,-x,A),this.distance>wM/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(o,u,p,x,A,k))},zo.prototype.addHalfVertex=function(o,u,p,x,A,k,F){var Y=o.x,j=o.y,Q=this.lineClips?this.scaledDistance*(wM-1):this.scaledDistance,ie=Q*bM;if(this.layoutVertexArray.emplaceBack((Y<<1)+(x?1:0),(j<<1)+(A?1:0),Math.round(xM*u)+128,Math.round(xM*p)+128,(k===0?0:k<0?-1:1)+1|(ie&63)<<2,ie>>6),this.lineClips){var ge=this.scaledDistance-this.lineClips.start,he=this.lineClips.end-this.lineClips.start,ke=ge/he;this.layoutVertexArray2.emplaceBack(ke,this.lineClipsArray.length)}var qe=F.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,qe),F.primitiveLength++),A?this.e2=qe:this.e1=qe},zo.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},zo.prototype.updateDistance=function(o,u){this.distance+=o.dist(u),this.updateScaledDistance()},y("LineBucket",zo,{omit:["layers","patternFeatures"]});var wW=new Rn({"line-cap":new wr(Wt.layout_line["line-cap"]),"line-join":new Vr(Wt.layout_line["line-join"]),"line-miter-limit":new wr(Wt.layout_line["line-miter-limit"]),"line-round-limit":new wr(Wt.layout_line["line-round-limit"]),"line-sort-key":new Vr(Wt.layout_line["line-sort-key"])}),TW=new Rn({"line-opacity":new Vr(Wt.paint_line["line-opacity"]),"line-color":new Vr(Wt.paint_line["line-color"]),"line-translate":new wr(Wt.paint_line["line-translate"]),"line-translate-anchor":new wr(Wt.paint_line["line-translate-anchor"]),"line-width":new Vr(Wt.paint_line["line-width"]),"line-gap-width":new Vr(Wt.paint_line["line-gap-width"]),"line-offset":new Vr(Wt.paint_line["line-offset"]),"line-blur":new Vr(Wt.paint_line["line-blur"]),"line-dasharray":new Mi(Wt.paint_line["line-dasharray"]),"line-pattern":new Bi(Wt.paint_line["line-pattern"]),"line-gradient":new lo(Wt.paint_line["line-gradient"])}),TM={paint:TW,layout:wW},AW=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.possiblyEvaluate=function(p,x){return x=new Xt(Math.floor(x.zoom),{now:x.now,fadeDuration:x.fadeDuration,zoomHistory:x.zoomHistory,transition:x.transition}),n.prototype.possiblyEvaluate.call(this,p,x)},o.prototype.evaluate=function(p,x,A,k){return x=H({},x,{zoom:Math.floor(x.zoom)}),n.prototype.evaluate.call(this,p,x,A,k)},o}(Vr),AM=new AW(TM.paint.properties["line-width"].specification);AM.useIntegerZoom=!0;var MW=function(n){function o(u){n.call(this,u,TM),this.gradientVersion=0}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._handleSpecialPaintPropertyUpdate=function(p){if(p==="line-gradient"){var x=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=x._styleExpression.expression instanceof As,this.gradientVersion=(this.gradientVersion+1)%S}},o.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},o.prototype.recalculate=function(p,x){n.prototype.recalculate.call(this,p,x),this.paint._values["line-floorwidth"]=AM.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,p)},o.prototype.createBucket=function(p){return new zo(p)},o.prototype.queryRadius=function(p){var x=p,A=MM(Po("line-width",this,x),Po("line-gap-width",this,x)),k=Po("line-offset",this,x);return A/2+Math.abs(k)+el(this.paint.get("line-translate"))},o.prototype.queryIntersectsFeature=function(p,x,A,k,F,Y,j){var Q=Cu(p,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Y.angle,j),ie=j/2*MM(this.paint.get("line-width").evaluate(x,A),this.paint.get("line-gap-width").evaluate(x,A)),ge=this.paint.get("line-offset").evaluate(x,A);return ge&&(k=SW(k,ge*j)),Fn(Q,k,ie)},o.prototype.isTileClipped=function(){return!0},o}(mi);function MM(n,o){return o>0?o+2*n:n}function SW(n,o){for(var u=[],p=new v(0,0),x=0;x":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function IW(n){for(var o="",u=0;u>1,Q=-7,ie=u?x-1:0,ge=u?-1:1,he=n[o+ie];for(ie+=ge,A=he&(1<<-Q)-1,he>>=-Q,Q+=F;Q>0;A=A*256+n[o+ie],ie+=ge,Q-=8);for(k=A&(1<<-Q)-1,A>>=-Q,Q+=p;Q>0;k=k*256+n[o+ie],ie+=ge,Q-=8);if(A===0)A=1-j;else{if(A===Y)return k?NaN:(he?-1:1)*(1/0);k=k+Math.pow(2,p),A=A-j}return(he?-1:1)*k*Math.pow(2,A-p)},FW=function(n,o,u,p,x,A){var k,F,Y,j=A*8-x-1,Q=(1<>1,ge=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,he=p?0:A-1,ke=p?1:-1,qe=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(F=isNaN(o)?1:0,k=Q):(k=Math.floor(Math.log(o)/Math.LN2),o*(Y=Math.pow(2,-k))<1&&(k--,Y*=2),k+ie>=1?o+=ge/Y:o+=ge*Math.pow(2,1-ie),o*Y>=2&&(k++,Y/=2),k+ie>=Q?(F=0,k=Q):k+ie>=1?(F=(o*Y-1)*Math.pow(2,x),k=k+ie):(F=o*Math.pow(2,ie-1)*Math.pow(2,x),k=0));x>=8;n[u+he]=F&255,he+=ke,F/=256,x-=8);for(k=k<0;n[u+he]=k&255,he+=ke,k/=256,j-=8);n[u+he-ke]|=qe*128},E1={read:RW,write:FW},L1=zi;function zi(n){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(n)?n:new Uint8Array(n||0),this.pos=0,this.type=0,this.length=this.buf.length}zi.Varint=0,zi.Fixed64=1,zi.Bytes=2,zi.Fixed32=5;var T3=65536*65536,kM=1/T3,qW=12,CM=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");zi.prototype={destroy:function(){this.buf=null},readFields:function(n,o,u){for(u=u||this.length;this.pos>3,A=this.pos;this.type=p&7,n(x,o,this),this.pos===A&&this.skip(p)}return o},readMessage:function(n,o){return this.readFields(n,o,this.readVarint()+this.pos)},readFixed32:function(){var n=D1(this.buf,this.pos);return this.pos+=4,n},readSFixed32:function(){var n=LM(this.buf,this.pos);return this.pos+=4,n},readFixed64:function(){var n=D1(this.buf,this.pos)+D1(this.buf,this.pos+4)*T3;return this.pos+=8,n},readSFixed64:function(){var n=D1(this.buf,this.pos)+LM(this.buf,this.pos+4)*T3;return this.pos+=8,n},readFloat:function(){var n=E1.read(this.buf,this.pos,!0,23,4);return this.pos+=4,n},readDouble:function(){var n=E1.read(this.buf,this.pos,!0,52,8);return this.pos+=8,n},readVarint:function(n){var o=this.buf,u,p;return p=o[this.pos++],u=p&127,p<128||(p=o[this.pos++],u|=(p&127)<<7,p<128)||(p=o[this.pos++],u|=(p&127)<<14,p<128)||(p=o[this.pos++],u|=(p&127)<<21,p<128)?u:(p=o[this.pos],u|=(p&15)<<28,NW(u,n,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var n=this.readVarint();return n%2===1?(n+1)/-2:n/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var n=this.readVarint()+this.pos,o=this.pos;return this.pos=n,n-o>=qW&&CM?QW(this.buf,o,n):KW(this.buf,o,n)},readBytes:function(){var n=this.readVarint()+this.pos,o=this.buf.subarray(this.pos,n);return this.pos=n,o},readPackedVarint:function(n,o){if(this.type!==zi.Bytes)return n.push(this.readVarint(o));var u=sc(this);for(n=n||[];this.pos127;);else if(o===zi.Bytes)this.pos=this.readVarint()+this.pos;else if(o===zi.Fixed32)this.pos+=4;else if(o===zi.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+o)},writeTag:function(n,o){this.writeVarint(n<<3|o)},realloc:function(n){for(var o=this.length||16;o268435455||n<0){BW(n,this);return}this.realloc(4),this.buf[this.pos++]=n&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=n>>>7&127)))},writeSVarint:function(n){this.writeVarint(n<0?-n*2-1:n*2)},writeBoolean:function(n){this.writeVarint(!!n)},writeString:function(n){n=String(n),this.realloc(n.length*4),this.pos++;var o=this.pos;this.pos=$W(this.buf,n,this.pos);var u=this.pos-o;u>=128&&EM(o,u,this),this.pos=o-1,this.writeVarint(u),this.pos+=u},writeFloat:function(n){this.realloc(4),E1.write(this.buf,n,this.pos,!0,23,4),this.pos+=4},writeDouble:function(n){this.realloc(8),E1.write(this.buf,n,this.pos,!0,52,8),this.pos+=8},writeBytes:function(n){var o=n.length;this.writeVarint(o),this.realloc(o);for(var u=0;u=128&&EM(u,p,this),this.pos=u-1,this.writeVarint(p),this.pos+=p},writeMessage:function(n,o,u){this.writeTag(n,zi.Bytes),this.writeRawMessage(o,u)},writePackedVarint:function(n,o){o.length&&this.writeMessage(n,VW,o)},writePackedSVarint:function(n,o){o.length&&this.writeMessage(n,HW,o)},writePackedBoolean:function(n,o){o.length&&this.writeMessage(n,YW,o)},writePackedFloat:function(n,o){o.length&&this.writeMessage(n,GW,o)},writePackedDouble:function(n,o){o.length&&this.writeMessage(n,ZW,o)},writePackedFixed32:function(n,o){o.length&&this.writeMessage(n,WW,o)},writePackedSFixed32:function(n,o){o.length&&this.writeMessage(n,XW,o)},writePackedFixed64:function(n,o){o.length&&this.writeMessage(n,jW,o)},writePackedSFixed64:function(n,o){o.length&&this.writeMessage(n,JW,o)},writeBytesField:function(n,o){this.writeTag(n,zi.Bytes),this.writeBytes(o)},writeFixed32Field:function(n,o){this.writeTag(n,zi.Fixed32),this.writeFixed32(o)},writeSFixed32Field:function(n,o){this.writeTag(n,zi.Fixed32),this.writeSFixed32(o)},writeFixed64Field:function(n,o){this.writeTag(n,zi.Fixed64),this.writeFixed64(o)},writeSFixed64Field:function(n,o){this.writeTag(n,zi.Fixed64),this.writeSFixed64(o)},writeVarintField:function(n,o){this.writeTag(n,zi.Varint),this.writeVarint(o)},writeSVarintField:function(n,o){this.writeTag(n,zi.Varint),this.writeSVarint(o)},writeStringField:function(n,o){this.writeTag(n,zi.Bytes),this.writeString(o)},writeFloatField:function(n,o){this.writeTag(n,zi.Fixed32),this.writeFloat(o)},writeDoubleField:function(n,o){this.writeTag(n,zi.Fixed64),this.writeDouble(o)},writeBooleanField:function(n,o){this.writeVarintField(n,!!o)}};function NW(n,o,u){var p=u.buf,x,A;if(A=p[u.pos++],x=(A&112)>>4,A<128||(A=p[u.pos++],x|=(A&127)<<3,A<128)||(A=p[u.pos++],x|=(A&127)<<10,A<128)||(A=p[u.pos++],x|=(A&127)<<17,A<128)||(A=p[u.pos++],x|=(A&127)<<24,A<128)||(A=p[u.pos++],x|=(A&1)<<31,A<128))return Wp(n,x,o);throw new Error("Expected varint not more than 10 bytes")}function sc(n){return n.type===zi.Bytes?n.readVarint()+n.pos:n.pos+1}function Wp(n,o,u){return u?o*4294967296+(n>>>0):(o>>>0)*4294967296+(n>>>0)}function BW(n,o){var u,p;if(n>=0?(u=n%4294967296|0,p=n/4294967296|0):(u=~(-n%4294967296),p=~(-n/4294967296),u^4294967295?u=u+1|0:(u=0,p=p+1|0)),n>=18446744073709552e3||n<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");o.realloc(10),OW(u,p,o),UW(p,o)}function OW(n,o,u){u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos]=n&127}function UW(n,o){var u=(n&7)<<4;o.buf[o.pos++]|=u|((n>>>=3)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127)))))}function EM(n,o,u){var p=o<=16383?1:o<=2097151?2:o<=268435455?3:Math.floor(Math.log(o)/(Math.LN2*7));u.realloc(p);for(var x=u.pos-1;x>=n;x--)u.buf[x+p]=u.buf[x]}function VW(n,o){for(var u=0;u>>8,n[u+2]=o>>>16,n[u+3]=o>>>24}function LM(n,o){return(n[o]|n[o+1]<<8|n[o+2]<<16)+(n[o+3]<<24)}function KW(n,o,u){for(var p="",x=o;x239?4:A>223?3:A>191?2:1;if(x+F>u)break;var Y,j,Q;F===1?A<128&&(k=A):F===2?(Y=n[x+1],(Y&192)===128&&(k=(A&31)<<6|Y&63,k<=127&&(k=null))):F===3?(Y=n[x+1],j=n[x+2],(Y&192)===128&&(j&192)===128&&(k=(A&15)<<12|(Y&63)<<6|j&63,(k<=2047||k>=55296&&k<=57343)&&(k=null))):F===4&&(Y=n[x+1],j=n[x+2],Q=n[x+3],(Y&192)===128&&(j&192)===128&&(Q&192)===128&&(k=(A&15)<<18|(Y&63)<<12|(j&63)<<6|Q&63,(k<=65535||k>=1114112)&&(k=null))),k===null?(k=65533,F=1):k>65535&&(k-=65536,p+=String.fromCharCode(k>>>10&1023|55296),k=56320|k&1023),p+=String.fromCharCode(k),x+=F}return p}function QW(n,o,u){return CM.decode(n.subarray(o,u))}function $W(n,o,u){for(var p=0,x,A;p55295&&x<57344)if(A)if(x<56320){n[u++]=239,n[u++]=191,n[u++]=189,A=x;continue}else x=A-55296<<10|x-56320|65536,A=null;else{x>56319||p+1===o.length?(n[u++]=239,n[u++]=191,n[u++]=189):A=x;continue}else A&&(n[u++]=239,n[u++]=191,n[u++]=189,A=null);x<128?n[u++]=x:(x<2048?n[u++]=x>>6|192:(x<65536?n[u++]=x>>12|224:(n[u++]=x>>18|240,n[u++]=x>>12&63|128),n[u++]=x>>6&63|128),n[u++]=x&63|128)}return u}var A3=3;function eX(n,o,u){n===1&&u.readMessage(tX,o)}function tX(n,o,u){if(n===3){var p=u.readMessage(rX,{}),x=p.id,A=p.bitmap,k=p.width,F=p.height,Y=p.left,j=p.top,Q=p.advance;o.push({id:x,bitmap:new jv({width:k+2*A3,height:F+2*A3},A),metrics:{width:k,height:F,left:Y,top:j,advance:Q}})}}function rX(n,o,u){n===1?o.id=u.readVarint():n===2?o.bitmap=u.readBytes():n===3?o.width=u.readVarint():n===4?o.height=u.readVarint():n===5?o.left=u.readSVarint():n===6?o.top=u.readSVarint():n===7&&(o.advance=u.readVarint())}function aX(n){return new L1(n).readFields(eX,[])}var DM=A3;function PM(n){for(var o=0,u=0,p=0,x=n;p=0;he--){var ke=F[he];if(!(ge.w>ke.w||ge.h>ke.h)){if(ge.x=ke.x,ge.y=ke.y,j=Math.max(j,ge.y+ge.h),Y=Math.max(Y,ge.x+ge.w),ge.w===ke.w&&ge.h===ke.h){var qe=F.pop();he=0&&x>=o&&wf[this.text.charCodeAt(x)];x--)p--;this.text=this.text.substring(o,p),this.sectionIndex=this.sectionIndex.slice(o,p)},bo.prototype.substring=function(o,u){var p=new bo;return p.text=this.text.substring(o,u),p.sectionIndex=this.sectionIndex.slice(o,u),p.sections=this.sections,p},bo.prototype.toString=function(){return this.text},bo.prototype.getMaxScale=function(){var o=this;return this.sectionIndex.reduce(function(u,p){return Math.max(u,o.sections[p].scale)},0)},bo.prototype.addTextSection=function(o,u){this.text+=o.text,this.sections.push(jp.forText(o.scale,o.fontStack||u));for(var p=this.sections.length-1,x=0;x=IM?null:++this.imageSectionID:(this.imageSectionID=zM,this.imageSectionID)};function nX(n,o){for(var u=[],p=n.text,x=0,A=0,k=o;A=0,Q=0,ie=0;ie0&&kn>Rr&&(Rr=kn)}else{var ja=u[Pr.fontStack],Ha=ja&&ja[Fr];if(Ha&&Ha.rect)jr=Ha.rect,ya=Ha.metrics;else{var ki=o[Pr.fontStack],Ii=ki&&ki[Fr];if(!Ii)continue;ya=Ii.metrics}Nr=(zt-Pr.scale)*Qn}Xa?(n.verticalizable=!0,fr.push({glyph:Fr,imageName:Wa,x:ge,y:he+Nr,vertical:Xa,scale:Pr.scale,fontStack:Pr.fontStack,sectionIndex:Qr,metrics:ya,rect:jr}),ge+=_i*Pr.scale+j):(fr.push({glyph:Fr,imageName:Wa,x:ge,y:he+Nr,vertical:Xa,scale:Pr.scale,fontStack:Pr.fontStack,sectionIndex:Qr,metrics:ya,rect:jr}),ge+=ya.advance*Pr.scale+j)}if(fr.length!==0){var wo=ge-j;ke=Math.max(wo,ke),uX(fr,0,fr.length-1,ut,Rr)}ge=0;var To=A*zt+Rr;vr.lineOffset=Math.max(Rr,jt),he+=To,qe=Math.max(To,qe),++et}var Yn=he-gy,Io=S3(k),Ro=Io.horizontalAlign,qn=Io.verticalAlign;fX(n.positionedLines,ut,Ro,qn,ke,qe,A,Yn,x.length),n.top+=-qn*Yn,n.bottom=n.top+Yn,n.left+=-Ro*ke,n.right=n.left+ke}function uX(n,o,u,p,x){if(!(!p&&!x))for(var A=n[u],k=A.metrics.advance*A.scale,F=(n[u].x+k)*p,Y=o;Y<=u;Y++)n[Y].x-=F,n[Y].y+=x}function fX(n,o,u,p,x,A,k,F,Y){var j=(o-u)*x,Q=0;A!==k?Q=-F*p-gy:Q=(-p*Y+.5)*k;for(var ie=0,ge=n;ie-u/2;){if(k--,k<0)return!1;F-=n[k].dist(A),A=n[k]}F+=n[k].dist(n[k+1]),k++;for(var Y=[],j=0;Fp;)j-=Y.shift().angleDelta;if(j>x)return!1;k++,F+=ie.dist(ge)}return!0}function HM(n){for(var o=0,u=0;uj){var ke=(j-Y)/he,qe=dn(ie.x,ge.x,ke),ut=dn(ie.y,ge.y,ke),et=new Jp(qe,ut,ge.angleTo(ie),Q);return et._round(),!k||VM(n,et,F,k,o)?et:void 0}Y+=he}}function dX(n,o,u,p,x,A,k,F,Y){var j=GM(p,A,k),Q=ZM(p,x),ie=Q*k,ge=n[0].x===0||n[0].x===Y||n[0].y===0||n[0].y===Y;o-ie=0&&St=0&&zt=0&&ge+j<=Q){var jt=new Jp(St,zt,kt,ke);jt._round(),(!p||VM(n,jt,A,p,x))&&he.push(jt)}}ie+=et}return!F&&!he.length&&!k&&(he=YM(n,ie/2,u,p,x,A,k,!0,Y)),he}function WM(n,o,u,p,x){for(var A=[],k=0;k=p&&ie.x>=p)&&(Q.x>=p?Q=new v(p,Q.y+(ie.y-Q.y)*((p-Q.x)/(ie.x-Q.x)))._round():ie.x>=p&&(ie=new v(p,Q.y+(ie.y-Q.y)*((p-Q.x)/(ie.x-Q.x)))._round()),!(Q.y>=x&&ie.y>=x)&&(Q.y>=x?Q=new v(Q.x+(ie.x-Q.x)*((x-Q.y)/(ie.y-Q.y)),x)._round():ie.y>=x&&(ie=new v(Q.x+(ie.x-Q.x)*((x-Q.y)/(ie.y-Q.y)),x)._round()),(!Y||!Q.equals(Y[Y.length-1]))&&(Y=[Q],A.push(Y)),Y.push(ie)))))}return A}var Kp=ps;function XM(n,o,u,p){var x=[],A=n.image,k=A.pixelRatio,F=A.paddedRect.w-2*Kp,Y=A.paddedRect.h-2*Kp,j=n.right-n.left,Q=n.bottom-n.top,ie=A.stretchX||[[0,F]],ge=A.stretchY||[[0,Y]],he=function(ja,Ha){return ja+Ha[1]-Ha[0]},ke=ie.reduce(he,0),qe=ge.reduce(he,0),ut=F-ke,et=Y-qe,kt=0,_t=ke,St=0,zt=qe,jt=0,vr=ut,fr=0,Rr=et;if(A.content&&p){var Mr=A.content;kt=I1(ie,0,Mr[0]),St=I1(ge,0,Mr[1]),_t=I1(ie,Mr[0],Mr[2]),zt=I1(ge,Mr[1],Mr[3]),jt=Mr[0]-kt,fr=Mr[1]-St,vr=Mr[2]-Mr[0]-_t,Rr=Mr[3]-Mr[1]-zt}var Pr=function(ja,Ha,ki,Ii){var an=R1(ja.stretch-kt,_t,j,n.left),cn=F1(ja.fixed-jt,vr,ja.stretch,ke),Zn=R1(Ha.stretch-St,zt,Q,n.top),kn=F1(Ha.fixed-fr,Rr,Ha.stretch,qe),wo=R1(ki.stretch-kt,_t,j,n.left),To=F1(ki.fixed-jt,vr,ki.stretch,ke),Yn=R1(Ii.stretch-St,zt,Q,n.top),Io=F1(Ii.fixed-fr,Rr,Ii.stretch,qe),Ro=new v(an,Zn),qn=new v(wo,Zn),Fo=new v(wo,Yn),Is=new v(an,Yn),fc=new v(cn/k,kn/k),gh=new v(To/k,Io/k),_h=o*Math.PI/180;if(_h){var xh=Math.sin(_h),n0=Math.cos(_h),Hl=[n0,-xh,xh,n0];Ro._matMult(Hl),qn._matMult(Hl),Is._matMult(Hl),Fo._matMult(Hl)}var V1=ja.stretch+ja.fixed,R3=ki.stretch+ki.fixed,H1=Ha.stretch+Ha.fixed,F3=Ii.stretch+Ii.fixed,rl={x:A.paddedRect.x+Kp+V1,y:A.paddedRect.y+Kp+H1,w:R3-V1,h:F3-H1},o0=vr/k/j,G1=Rr/k/Q;return{tl:Ro,tr:qn,bl:Is,br:Fo,tex:rl,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:fc,pixelOffsetBR:gh,minFontScaleX:o0,minFontScaleY:G1,isSDF:u}};if(!p||!A.stretchX&&!A.stretchY)x.push(Pr({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:F+1},{fixed:0,stretch:Y+1}));else for(var Qr=jM(ie,ut,ke),Fr=jM(ge,et,qe),Nr=0;Nr0&&(ke=Math.max(10,ke),this.circleDiameter=ke)}else{var qe=k.top*F-Y,ut=k.bottom*F+Y,et=k.left*F-Y,kt=k.right*F+Y,_t=k.collisionPadding;if(_t&&(et-=_t[0]*F,qe-=_t[1]*F,kt+=_t[2]*F,ut+=_t[3]*F),Q){var St=new v(et,qe),zt=new v(kt,qe),jt=new v(et,ut),vr=new v(kt,ut),fr=Q*Math.PI/180;St._rotate(fr),zt._rotate(fr),jt._rotate(fr),vr._rotate(fr),et=Math.min(St.x,zt.x,jt.x,vr.x),kt=Math.max(St.x,zt.x,jt.x,vr.x),qe=Math.min(St.y,zt.y,jt.y,vr.y),ut=Math.max(St.y,zt.y,jt.y,vr.y)}o.emplaceBack(u.x,u.y,et,qe,kt,ut,p,x,A)}this.boxEndIndex=o.length},Qp=function(o,u){if(o===void 0&&(o=[]),u===void 0&&(u=mX),this.data=o,this.length=this.data.length,this.compare=u,this.length>0)for(var p=(this.length>>1)-1;p>=0;p--)this._down(p)};Qp.prototype.push=function(o){this.data.push(o),this.length++,this._up(this.length-1)},Qp.prototype.pop=function(){if(this.length!==0){var o=this.data[0],u=this.data.pop();return this.length--,this.length>0&&(this.data[0]=u,this._down(0)),o}},Qp.prototype.peek=function(){return this.data[0]},Qp.prototype._up=function(o){for(var u=this,p=u.data,x=u.compare,A=p[o];o>0;){var k=o-1>>1,F=p[k];if(x(A,F)>=0)break;p[o]=F,o=k}p[o]=A},Qp.prototype._down=function(o){for(var u=this,p=u.data,x=u.compare,A=this.length>>1,k=p[o];o=0)break;p[o]=Y,o=F}p[o]=k};function mX(n,o){return no?1:0}function yX(n,o,u){o===void 0&&(o=1),u===void 0&&(u=!1);for(var p=1/0,x=1/0,A=-1/0,k=-1/0,F=n[0],Y=0;YA)&&(A=j.x),(!Y||j.y>k)&&(k=j.y)}var Q=A-p,ie=k-x,ge=Math.min(Q,ie),he=ge/2,ke=new Qp([],gX);if(ge===0)return new v(p,x);for(var qe=p;qeet.d||!et.d)&&(et=_t,u&&console.log("found best %d after %d probes",Math.round(1e4*_t.d)/1e4,kt)),!(_t.max-et.d<=o)&&(he=_t.h/2,ke.push(new $p(_t.p.x-he,_t.p.y-he,he,n)),ke.push(new $p(_t.p.x+he,_t.p.y-he,he,n)),ke.push(new $p(_t.p.x-he,_t.p.y+he,he,n)),ke.push(new $p(_t.p.x+he,_t.p.y+he,he,n)),kt+=4)}return u&&(console.log("num probes: "+kt),console.log("best distance: "+et.d)),et.p}function gX(n,o){return o.max-n.max}function $p(n,o,u,p){this.p=new v(n,o),this.h=u,this.d=_X(this.p,p),this.max=this.d+this.h*Math.SQRT2}function _X(n,o){for(var u=!1,p=1/0,x=0;xn.y!=Q.y>n.y&&n.x<(Q.x-j.x)*(n.y-j.y)/(Q.y-j.y)+j.x&&(u=!u),p=Math.min(p,oc(n,j,Q))}return(u?1:-1)*Math.sqrt(p)}function xX(n){for(var o=0,u=0,p=0,x=n[0],A=0,k=x.length,F=k-1;A=qr||Hl.y<0||Hl.y>=qr||TX(n,Hl,n0,u,p,x,Fr,n.layers[0],n.collisionBoxArray,o.index,o.sourceLayerIndex,n.index,et,zt,fr,Y,_t,jt,Rr,he,o,A,j,Q,k)};if(Mr==="line")for(var ya=0,jr=WM(o.geometry,0,0,qr,qr);ya1){var Zn=vX(cn,vr,u.vertical||ke,p,qe,kt);Zn&&Nr(cn,Zn)}}else if(o.type==="Polygon")for(var kn=0,wo=_3(o.geometry,0);knmh&&Ce(n.layerIds[0]+': Value for "text-size" is >= '+_y+'. Reduce your "text-size".')):ut.kind==="composite"&&(et=[Du*he.compositeTextSizes[0].evaluate(k,{},ke),Du*he.compositeTextSizes[1].evaluate(k,{},ke)],(et[0]>mh||et[1]>mh)&&Ce(n.layerIds[0]+': Value for "text-size" is >= '+_y+'. Reduce your "text-size".')),n.addSymbols(n.text,qe,et,F,A,k,j,o,Y.lineStartIndex,Y.lineLength,ge,ke);for(var kt=0,_t=Q;kt<_t.length;kt+=1){var St=_t[kt];ie[St]=n.text.placedSymbolArray.length-1}return qe.length*4}function QM(n){for(var o in n)return n[o];return null}function TX(n,o,u,p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t,St,zt,jt,vr,fr){var Rr,Mr=n.addToLineVertexArray(o,u),Pr,Qr,Fr,Nr,ya=0,jr=0,Wa=0,_i=0,Xa=-1,ja=-1,Ha={},ki=w(""),Ii=0,an=0;if(F._unevaluatedLayout.getValue("text-radial-offset")===void 0?(Rr=F.layout.get("text-offset").evaluate(St,{},vr).map(function(wy){return wy*Qn}),Ii=Rr[0],an=Rr[1]):(Ii=F.layout.get("text-radial-offset").evaluate(St,{},vr)*Qn,an=C3),n.allowVerticalPlacement&&p.vertical){var cn=F.layout.get("text-rotate").evaluate(St,{},vr),Zn=cn+90,kn=p.vertical;Fr=new q1(Y,o,j,Q,ie,kn,ge,he,ke,Zn),k&&(Nr=new q1(Y,o,j,Q,ie,k,ut,et,ke,Zn))}if(x){var wo=F.layout.get("icon-rotate").evaluate(St,{}),To=F.layout.get("icon-text-fit")!=="none",Yn=XM(x,wo,jt,To),Io=k?XM(k,wo,jt,To):void 0;Qr=new q1(Y,o,j,Q,ie,x,ut,et,!1,wo),ya=Yn.length*4;var Ro=n.iconSizeData,qn=null;Ro.kind==="source"?(qn=[Du*F.layout.get("icon-size").evaluate(St,{})],qn[0]>mh&&Ce(n.layerIds[0]+': Value for "icon-size" is >= '+_y+'. Reduce your "icon-size".')):Ro.kind==="composite"&&(qn=[Du*zt.compositeIconSizes[0].evaluate(St,{},vr),Du*zt.compositeIconSizes[1].evaluate(St,{},vr)],(qn[0]>mh||qn[1]>mh)&&Ce(n.layerIds[0]+': Value for "icon-size" is >= '+_y+'. Reduce your "icon-size".')),n.addSymbols(n.icon,Yn,qn,_t,kt,St,!1,o,Mr.lineStartIndex,Mr.lineLength,-1,vr),Xa=n.icon.placedSymbolArray.length-1,Io&&(jr=Io.length*4,n.addSymbols(n.icon,Io,qn,_t,kt,St,zs.vertical,o,Mr.lineStartIndex,Mr.lineLength,-1,vr),ja=n.icon.placedSymbolArray.length-1)}for(var Fo in p.horizontal){var Is=p.horizontal[Fo];if(!Pr){ki=w(Is.text);var fc=F.layout.get("text-rotate").evaluate(St,{},vr);Pr=new q1(Y,o,j,Q,ie,Is,ge,he,ke,fc)}var gh=Is.positionedLines.length===1;if(Wa+=KM(n,o,Is,A,F,ke,St,qe,Mr,p.vertical?zs.horizontal:zs.horizontalOnly,gh?Object.keys(p.horizontal):[Fo],Ha,Xa,zt,vr),gh)break}p.vertical&&(_i+=KM(n,o,p.vertical,A,F,ke,St,qe,Mr,zs.vertical,["vertical"],Ha,ja,zt,vr));var _h=Pr?Pr.boxStartIndex:n.collisionBoxArray.length,xh=Pr?Pr.boxEndIndex:n.collisionBoxArray.length,n0=Fr?Fr.boxStartIndex:n.collisionBoxArray.length,Hl=Fr?Fr.boxEndIndex:n.collisionBoxArray.length,V1=Qr?Qr.boxStartIndex:n.collisionBoxArray.length,R3=Qr?Qr.boxEndIndex:n.collisionBoxArray.length,H1=Nr?Nr.boxStartIndex:n.collisionBoxArray.length,F3=Nr?Nr.boxEndIndex:n.collisionBoxArray.length,rl=-1,o0=function(wy,d7){return wy&&wy.circleDiameter?Math.max(wy.circleDiameter,d7):d7};rl=o0(Pr,rl),rl=o0(Fr,rl),rl=o0(Qr,rl),rl=o0(Nr,rl);var G1=rl>-1?1:0;G1&&(rl*=fr/Qn),n.glyphOffsetArray.length>=gi.MAX_GLYPHS&&Ce("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),St.sortKey!==void 0&&n.addToSortKeyRanges(n.symbolInstances.length,St.sortKey),n.symbolInstances.emplaceBack(o.x,o.y,Ha.right>=0?Ha.right:-1,Ha.center>=0?Ha.center:-1,Ha.left>=0?Ha.left:-1,Ha.vertical||-1,Xa,ja,ki,_h,xh,n0,Hl,V1,R3,H1,F3,j,Wa,_i,ya,jr,G1,0,ge,Ii,an,rl)}function AX(n,o,u,p){var x=n.compareText;if(!(o in x))x[o]=[];else for(var A=x[o],k=A.length-1;k>=0;k--)if(p.dist(A[k])0)&&(k.value.kind!=="constant"||k.value.value.length>0),Q=Y.value.kind!=="constant"||!!Y.value.value||Object.keys(Y.parameters).length>0,ie=A.get("symbol-sort-key");if(this.features=[],!(!j&&!Q)){for(var ge=u.iconDependencies,he=u.glyphDependencies,ke=u.availableImages,qe=new Xt(this.zoom),ut=0,et=o;ut=0;for(var _i=0,Xa=Rr.sections;_i=0;Y--)k[Y]={x:u[Y].x,y:u[Y].y,tileUnitDistanceFromAnchor:A},Y>0&&(A+=u[Y-1].dist(u[Y]));for(var j=0;j0},gi.prototype.hasIconData=function(){return this.icon.segments.get().length>0},gi.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},gi.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},gi.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},gi.prototype.addIndicesForPlacedSymbol=function(o,u){for(var p=o.placedSymbolArray.get(u),x=p.vertexStartIndex+p.numGlyphs*4,A=p.vertexStartIndex;A1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(o),this.sortedAngle=o,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var p=0,x=this.symbolInstanceIndexes;p=0&&j.indexOf(F)===Y&&u.addIndicesForPlacedSymbol(u.text,F)}),k.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,k.verticalPlacedTextSymbolIndex),k.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,k.placedIconSymbolIndex),k.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,k.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},y("SymbolBucket",gi,{omit:["layers","collisionBoxArray","features","compareText"]}),gi.MAX_GLYPHS=65535,gi.addDynamicAttributes=L3;function CX(n,o){return o.replace(/{([^{}]+)}/g,function(u,p){return p in n?String(n[p]):""})}var EX=new Rn({"symbol-placement":new wr(Wt.layout_symbol["symbol-placement"]),"symbol-spacing":new wr(Wt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new wr(Wt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Vr(Wt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new wr(Wt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new wr(Wt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new wr(Wt.layout_symbol["icon-ignore-placement"]),"icon-optional":new wr(Wt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new wr(Wt.layout_symbol["icon-rotation-alignment"]),"icon-size":new Vr(Wt.layout_symbol["icon-size"]),"icon-text-fit":new wr(Wt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new wr(Wt.layout_symbol["icon-text-fit-padding"]),"icon-image":new Vr(Wt.layout_symbol["icon-image"]),"icon-rotate":new Vr(Wt.layout_symbol["icon-rotate"]),"icon-padding":new wr(Wt.layout_symbol["icon-padding"]),"icon-keep-upright":new wr(Wt.layout_symbol["icon-keep-upright"]),"icon-offset":new Vr(Wt.layout_symbol["icon-offset"]),"icon-anchor":new Vr(Wt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new wr(Wt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new wr(Wt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new wr(Wt.layout_symbol["text-rotation-alignment"]),"text-field":new Vr(Wt.layout_symbol["text-field"]),"text-font":new Vr(Wt.layout_symbol["text-font"]),"text-size":new Vr(Wt.layout_symbol["text-size"]),"text-max-width":new Vr(Wt.layout_symbol["text-max-width"]),"text-line-height":new wr(Wt.layout_symbol["text-line-height"]),"text-letter-spacing":new Vr(Wt.layout_symbol["text-letter-spacing"]),"text-justify":new Vr(Wt.layout_symbol["text-justify"]),"text-radial-offset":new Vr(Wt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new wr(Wt.layout_symbol["text-variable-anchor"]),"text-anchor":new Vr(Wt.layout_symbol["text-anchor"]),"text-max-angle":new wr(Wt.layout_symbol["text-max-angle"]),"text-writing-mode":new wr(Wt.layout_symbol["text-writing-mode"]),"text-rotate":new Vr(Wt.layout_symbol["text-rotate"]),"text-padding":new wr(Wt.layout_symbol["text-padding"]),"text-keep-upright":new wr(Wt.layout_symbol["text-keep-upright"]),"text-transform":new Vr(Wt.layout_symbol["text-transform"]),"text-offset":new Vr(Wt.layout_symbol["text-offset"]),"text-allow-overlap":new wr(Wt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new wr(Wt.layout_symbol["text-ignore-placement"]),"text-optional":new wr(Wt.layout_symbol["text-optional"])}),LX=new Rn({"icon-opacity":new Vr(Wt.paint_symbol["icon-opacity"]),"icon-color":new Vr(Wt.paint_symbol["icon-color"]),"icon-halo-color":new Vr(Wt.paint_symbol["icon-halo-color"]),"icon-halo-width":new Vr(Wt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Vr(Wt.paint_symbol["icon-halo-blur"]),"icon-translate":new wr(Wt.paint_symbol["icon-translate"]),"icon-translate-anchor":new wr(Wt.paint_symbol["icon-translate-anchor"]),"text-opacity":new Vr(Wt.paint_symbol["text-opacity"]),"text-color":new Vr(Wt.paint_symbol["text-color"],{runtimeType:ws,getOverride:function(n){return n.textColor},hasOverride:function(n){return!!n.textColor}}),"text-halo-color":new Vr(Wt.paint_symbol["text-halo-color"]),"text-halo-width":new Vr(Wt.paint_symbol["text-halo-width"]),"text-halo-blur":new Vr(Wt.paint_symbol["text-halo-blur"]),"text-translate":new wr(Wt.paint_symbol["text-translate"]),"text-translate-anchor":new wr(Wt.paint_symbol["text-translate-anchor"])}),D3={paint:LX,layout:EX},r0=function(o){this.type=o.property.overrides?o.property.overrides.runtimeType:ef,this.defaultValue=o};r0.prototype.evaluate=function(o){if(o.formattedSection){var u=this.defaultValue.property.overrides;if(u&&u.hasOverride(o.formattedSection))return u.getOverride(o.formattedSection)}return o.feature&&o.featureState?this.defaultValue.evaluate(o.feature,o.featureState):this.defaultValue.property.specification.default},r0.prototype.eachChild=function(o){if(!this.defaultValue.isConstant()){var u=this.defaultValue.value;o(u._styleExpression.expression)}},r0.prototype.outputDefined=function(){return!1},r0.prototype.serialize=function(){return null},y("FormatSectionOverride",r0,{omit:["defaultValue"]});var DX=function(n){function o(u){n.call(this,u,D3)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.recalculate=function(p,x){if(n.prototype.recalculate.call(this,p,x),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var A=this.layout.get("text-writing-mode");if(A){for(var k=[],F=0,Y=A;F",targetMapId:x,sourceMapId:k.mapId})}}},a0.prototype.receive=function(o){var u=o.data,p=u.id;if(p&&!(u.targetMapId&&this.mapId!==u.targetMapId))if(u.type===""){delete this.tasks[p];var x=this.cancelCallbacks[p];delete this.cancelCallbacks[p],x&&x()}else it()||u.mustQueue?(this.tasks[p]=u,this.taskQueue.push(p),this.invoker.trigger()):this.processTask(p,u)},a0.prototype.process=function(){if(this.taskQueue.length){var o=this.taskQueue.shift(),u=this.tasks[o];delete this.tasks[o],this.taskQueue.length&&this.invoker.trigger(),u&&this.processTask(o,u)}},a0.prototype.processTask=function(o,u){var p=this;if(u.type===""){var x=this.callbacks[o];delete this.callbacks[o],x&&(u.error?x(Z(u.error)):x(null,Z(u.data)))}else{var A=!1,k=Et(this.globalScope)?void 0:[],F=u.hasCallback?function(ge,he){A=!0,delete p.cancelCallbacks[o],p.target.postMessage({id:o,type:"",sourceMapId:p.mapId,error:ge?U(ge):null,data:U(he,k)},k)}:function(ge){A=!0},Y=null,j=Z(u.data);if(this.parent[u.type])Y=this.parent[u.type](u.sourceMapId,j,F);else if(this.parent.getWorkerSource){var Q=u.type.split("."),ie=this.parent.getWorkerSource(u.sourceMapId,Q[0],j.source);Y=ie[Q[1]](j,F)}else F(new Error("Could not find function "+u.type));!A&&Y&&Y.cancel&&(this.cancelCallbacks[o]=Y.cancel)}},a0.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function VX(n,o,u){o=Math.pow(2,u)-o-1;var p=a7(n*256,o*256,u),x=a7((n+1)*256,(o+1)*256,u);return p[0]+","+p[1]+","+x[0]+","+x[1]}function a7(n,o,u){var p=2*Math.PI*6378137/256/Math.pow(2,u),x=n*p-2*Math.PI*6378137/2,A=o*p-2*Math.PI*6378137/2;return[x,A]}var Mn=function(o,u){o&&(u?this.setSouthWest(o).setNorthEast(u):o.length===4?this.setSouthWest([o[0],o[1]]).setNorthEast([o[2],o[3]]):this.setSouthWest(o[0]).setNorthEast(o[1]))};Mn.prototype.setNorthEast=function(o){return this._ne=o instanceof Gi?new Gi(o.lng,o.lat):Gi.convert(o),this},Mn.prototype.setSouthWest=function(o){return this._sw=o instanceof Gi?new Gi(o.lng,o.lat):Gi.convert(o),this},Mn.prototype.extend=function(o){var u=this._sw,p=this._ne,x,A;if(o instanceof Gi)x=o,A=o;else if(o instanceof Mn){if(x=o._sw,A=o._ne,!x||!A)return this}else{if(Array.isArray(o))if(o.length===4||o.every(Array.isArray)){var k=o;return this.extend(Mn.convert(k))}else{var F=o;return this.extend(Gi.convert(F))}return this}return!u&&!p?(this._sw=new Gi(x.lng,x.lat),this._ne=new Gi(A.lng,A.lat)):(u.lng=Math.min(x.lng,u.lng),u.lat=Math.min(x.lat,u.lat),p.lng=Math.max(A.lng,p.lng),p.lat=Math.max(A.lat,p.lat)),this},Mn.prototype.getCenter=function(){return new Gi((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Mn.prototype.getSouthWest=function(){return this._sw},Mn.prototype.getNorthEast=function(){return this._ne},Mn.prototype.getNorthWest=function(){return new Gi(this.getWest(),this.getNorth())},Mn.prototype.getSouthEast=function(){return new Gi(this.getEast(),this.getSouth())},Mn.prototype.getWest=function(){return this._sw.lng},Mn.prototype.getSouth=function(){return this._sw.lat},Mn.prototype.getEast=function(){return this._ne.lng},Mn.prototype.getNorth=function(){return this._ne.lat},Mn.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Mn.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Mn.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Mn.prototype.contains=function(o){var u=Gi.convert(o),p=u.lng,x=u.lat,A=this._sw.lat<=x&&x<=this._ne.lat,k=this._sw.lng<=p&&p<=this._ne.lng;return this._sw.lng>this._ne.lng&&(k=this._sw.lng>=p&&p>=this._ne.lng),A&&k},Mn.convert=function(o){return!o||o instanceof Mn?o:new Mn(o)};var i7=63710088e-1,Gi=function(o,u){if(isNaN(o)||isNaN(u))throw new Error("Invalid LngLat object: ("+o+", "+u+")");if(this.lng=+o,this.lat=+u,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Gi.prototype.wrap=function(){return new Gi(B(this.lng,-180,180),this.lat)},Gi.prototype.toArray=function(){return[this.lng,this.lat]},Gi.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Gi.prototype.distanceTo=function(o){var u=Math.PI/180,p=this.lat*u,x=o.lat*u,A=Math.sin(p)*Math.sin(x)+Math.cos(p)*Math.cos(x)*Math.cos((o.lng-this.lng)*u),k=i7*Math.acos(Math.min(A,1));return k},Gi.prototype.toBounds=function(o){o===void 0&&(o=0);var u=40075017,p=360*o/u,x=p/Math.cos(Math.PI/180*this.lat);return new Mn(new Gi(this.lng-x,this.lat-p),new Gi(this.lng+x,this.lat+p))},Gi.convert=function(o){if(o instanceof Gi)return o;if(Array.isArray(o)&&(o.length===2||o.length===3))return new Gi(Number(o[0]),Number(o[1]));if(!Array.isArray(o)&&typeof o=="object"&&o!==null)return new Gi(Number("lng"in o?o.lng:o.lon),Number(o.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var n7=2*Math.PI*i7;function o7(n){return n7*Math.cos(n*Math.PI/180)}function s7(n){return(180+n)/360}function l7(n){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n*Math.PI/360)))/360}function u7(n,o){return n/o7(o)}function HX(n){return n*360-180}function z3(n){var o=180-n*360;return 360/Math.PI*Math.atan(Math.exp(o*Math.PI/180))-90}function GX(n,o){return n*o7(z3(o))}function ZX(n){return 1/Math.cos(n*Math.PI/180)}var Kv=function(o,u,p){p===void 0&&(p=0),this.x=+o,this.y=+u,this.z=+p};Kv.fromLngLat=function(o,u){u===void 0&&(u=0);var p=Gi.convert(o);return new Kv(s7(p.lng),l7(p.lat),u7(u,p.lat))},Kv.prototype.toLngLat=function(){return new Gi(HX(this.x),z3(this.y))},Kv.prototype.toAltitude=function(){return GX(this.z,this.y)},Kv.prototype.meterInMercatorCoordinateUnits=function(){return 1/n7*ZX(z3(this.y))};var Qv=function(o,u,p){this.z=o,this.x=u,this.y=p,this.key=by(0,o,o,u,p)};Qv.prototype.equals=function(o){return this.z===o.z&&this.x===o.x&&this.y===o.y},Qv.prototype.url=function(o,u){var p=VX(this.x,this.y,this.z),x=YX(this.z,this.x,this.y);return o[(this.x+this.y)%o.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(u==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",x).replace("{bbox-epsg-3857}",p)},Qv.prototype.getTilePoint=function(o){var u=Math.pow(2,this.z);return new v((o.x*u-this.x)*qr,(o.y*u-this.y)*qr)},Qv.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var f7=function(o,u){this.wrap=o,this.canonical=u,this.key=by(o,u.z,u.z,u.x,u.y)},Sn=function(o,u,p,x,A){this.overscaledZ=o,this.wrap=u,this.canonical=new Qv(p,+x,+A),this.key=by(u,o,p,x,A)};Sn.prototype.equals=function(o){return this.overscaledZ===o.overscaledZ&&this.wrap===o.wrap&&this.canonical.equals(o.canonical)},Sn.prototype.scaledTo=function(o){var u=this.canonical.z-o;return o>this.canonical.z?new Sn(o,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Sn(o,this.wrap,o,this.canonical.x>>u,this.canonical.y>>u)},Sn.prototype.calculateScaledKey=function(o,u){var p=this.canonical.z-o;return o>this.canonical.z?by(this.wrap*+u,o,this.canonical.z,this.canonical.x,this.canonical.y):by(this.wrap*+u,o,o,this.canonical.x>>p,this.canonical.y>>p)},Sn.prototype.isChildOf=function(o){if(o.wrap!==this.wrap)return!1;var u=this.canonical.z-o.canonical.z;return o.overscaledZ===0||o.overscaledZ>u&&o.canonical.y===this.canonical.y>>u},Sn.prototype.children=function(o){if(this.overscaledZ>=o)return[new Sn(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var u=this.canonical.z+1,p=this.canonical.x*2,x=this.canonical.y*2;return[new Sn(u,this.wrap,u,p,x),new Sn(u,this.wrap,u,p+1,x),new Sn(u,this.wrap,u,p,x+1),new Sn(u,this.wrap,u,p+1,x+1)]},Sn.prototype.isLessThan=function(o){return this.wrapo.wrap?!1:this.overscaledZo.overscaledZ?!1:this.canonical.xo.canonical.x?!1:this.canonical.y0;A--)x=1<=this.dim+1||u<-1||u>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(u+1)*this.stride+(o+1)},lc.prototype._unpackMapbox=function(o,u,p){return(o*256*256+u*256+p)/10-1e4},lc.prototype._unpackTerrarium=function(o,u,p){return o*256+u+p/256-32768},lc.prototype.getPixels=function(){return new es({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},lc.prototype.backfillBorder=function(o,u,p){if(this.dim!==o.dim)throw new Error("dem dimension mismatch");var x=u*this.dim,A=u*this.dim+this.dim,k=p*this.dim,F=p*this.dim+this.dim;switch(u){case-1:x=A-1;break;case 1:A=x+1;break}switch(p){case-1:k=F-1;break;case 1:F=k+1;break}for(var Y=-u*this.dim,j=-p*this.dim,Q=k;Q=0&&ie[3]>=0&&Y.insert(F,ie[0],ie[1],ie[2],ie[3])}},uc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Yp.VectorTile(new L1(this.rawTileData)).layers,this.sourceLayerCoder=new O1(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},uc.prototype.query=function(o,u,p,x){var A=this;this.loadVTLayers();for(var k=o.params||{},F=qr/o.tileSize/o.scale,Y=cf(k.filter),j=o.queryGeometry,Q=o.queryPadding*F,ie=h7(j),ge=this.grid.query(ie.minX-Q,ie.minY-Q,ie.maxX+Q,ie.maxY+Q),he=h7(o.cameraQueryGeometry),ke=this.grid3D.query(he.minX-Q,he.minY-Q,he.maxX+Q,he.maxY+Q,function(jt,vr,fr,Rr){return Vl(o.cameraQueryGeometry,jt-Q,vr-Q,fr+Q,Rr+Q)}),qe=0,ut=ke;qex)A=!1;else if(!u)A=!0;else if(this.expirationTime=ea.maxzoom)&&ea.visibility!=="none"){T(dr,this.zoom,ce);var _a=Dt[ea.id]=ea.createBucket({index:pt.bucketLayerIDs.length,layers:dr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Yr,sourceID:this.source});_a.populate(Br,Rt,this.tileID.canonical),pt.bucketLayerIDs.push(dr.map(function(Za){return Za.id}))}}}}var ir,Ai,Ca,si,fa=a.mapObject(Rt.glyphDependencies,function(Za){return Object.keys(Za).map(Number)});Object.keys(fa).length?Ee.send("getGlyphs",{uid:this.uid,stacks:fa},function(Za,Kn){ir||(ir=Za,Ai=Kn,xs.call(rt))}):Ai={};var Pn=Object.keys(Rt.iconDependencies);Pn.length?Ee.send("getImages",{icons:Pn,source:this.source,tileID:this.tileID,type:"icons"},function(Za,Kn){ir||(ir=Za,Ca=Kn,xs.call(rt))}):Ca={};var Co=Object.keys(Rt.patternDependencies);Co.length?Ee.send("getImages",{icons:Co,source:this.source,tileID:this.tileID,type:"patterns"},function(Za,Kn){ir||(ir=Za,si=Kn,xs.call(rt))}):si={},xs.call(this);function xs(){if(ir)return Ne(ir);if(Ai&&Ca&&si){var Za=new m(Ai),Kn=new a.ImageAtlas(Ca,si);for(var vu in Dt){var Vi=Dt[vu];Vi instanceof a.SymbolBucket?(T(Vi.layers,this.zoom,ce),a.performSymbolLayout(Vi,Ai,Za.positions,Ca,Kn.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Vi.hasPattern&&(Vi instanceof a.LineBucket||Vi instanceof a.FillBucket||Vi instanceof a.FillExtrusionBucket)&&(T(Vi.layers,this.zoom,ce),Vi.addFeatures(Rt,this.tileID.canonical,Kn.patternPositions))}this.status="done",Ne(null,{buckets:a.values(Dt).filter(function(pl){return!pl.isEmpty()}),featureIndex:pt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Za.image,imageAtlas:Kn,glyphMap:this.returnDependencies?Ai:null,iconMap:this.returnDependencies?Ca:null,glyphPositions:this.returnDependencies?Za.positions:null})}}};function T(le,ee,se){for(var ce=new a.EvaluationParameters(ee),Ee=0,Ne=le;Ee=0!=!!ee&&le.reverse()}var O=a.vectorTile.VectorTileFeature.prototype.toGeoJSON,H=function(ee){this._feature=ee,this.extent=a.EXTENT,this.type=ee.type,this.properties=ee.tags,"id"in ee&&!isNaN(ee.id)&&(this.id=parseInt(ee.id,10))};H.prototype.loadGeometry=function(){if(this._feature.type===1){for(var ee=[],se=0,ce=this._feature.geometry;se>31}function it(le,ee){for(var se=le.loadGeometry(),ce=le.type,Ee=0,Ne=0,rt=se.length,He=0;He>1;Et(le,ee,rt,ce,Ee,Ne%2),We(le,ee,se,ce,rt-1,Ne+1),We(le,ee,se,rt+1,Ee,Ne+1)}}function Et(le,ee,se,ce,Ee,Ne){for(;Ee>ce;){if(Ee-ce>600){var rt=Ee-ce+1,He=se-ce+1,pt=Math.log(rt),Dt=.5*Math.exp(2*pt/3),Rt=.5*Math.sqrt(pt*Dt*(rt-Dt)/rt)*(He-rt/2<0?-1:1),$t=Math.max(ce,Math.floor(se-He*Dt/rt+Rt)),Yt=Math.min(Ee,Math.floor(se+(rt-He)*Dt/rt+Rt));Et(le,ee,se,$t,Yt,Ne)}var Tr=ee[2*se+Ne],Yr=ce,Br=Ee;for(nt(le,ee,ce,se),ee[2*Ee+Ne]>Tr&&nt(le,ee,ce,Ee);YrTr;)Br--}ee[2*ce+Ne]===Tr?nt(le,ee,ce,Br):(Br++,nt(le,ee,Br,Ee)),Br<=se&&(ce=Br+1),se<=Br&&(Ee=Br-1)}}function nt(le,ee,se,ce){wt(le,se,ce),wt(ee,2*se,2*ce),wt(ee,2*se+1,2*ce+1)}function wt(le,ee,se){var ce=le[ee];le[ee]=le[se],le[se]=ce}function xt(le,ee,se,ce,Ee,Ne,rt){for(var He=[0,le.length-1,0],pt=[],Dt,Rt;He.length;){var $t=He.pop(),Yt=He.pop(),Tr=He.pop();if(Yt-Tr<=rt){for(var Yr=Tr;Yr<=Yt;Yr++)Dt=ee[2*Yr],Rt=ee[2*Yr+1],Dt>=se&&Dt<=Ee&&Rt>=ce&&Rt<=Ne&&pt.push(le[Yr]);continue}var Br=Math.floor((Tr+Yt)/2);Dt=ee[2*Br],Rt=ee[2*Br+1],Dt>=se&&Dt<=Ee&&Rt>=ce&&Rt<=Ne&&pt.push(le[Br]);var ca=($t+1)%2;($t===0?se<=Dt:ce<=Rt)&&(He.push(Tr),He.push(Br-1),He.push(ca)),($t===0?Ee>=Dt:Ne>=Rt)&&(He.push(Br+1),He.push(Yt),He.push(ca))}return pt}function vt(le,ee,se,ce,Ee,Ne){for(var rt=[0,le.length-1,0],He=[],pt=Ee*Ee;rt.length;){var Dt=rt.pop(),Rt=rt.pop(),$t=rt.pop();if(Rt-$t<=Ne){for(var Yt=$t;Yt<=Rt;Yt++)de(ee[2*Yt],ee[2*Yt+1],se,ce)<=pt&&He.push(le[Yt]);continue}var Tr=Math.floor(($t+Rt)/2),Yr=ee[2*Tr],Br=ee[2*Tr+1];de(Yr,Br,se,ce)<=pt&&He.push(le[Tr]);var ca=(Dt+1)%2;(Dt===0?se-Ee<=Yr:ce-Ee<=Br)&&(rt.push($t),rt.push(Tr-1),rt.push(ca)),(Dt===0?se+Ee>=Yr:ce+Ee>=Br)&&(rt.push(Tr+1),rt.push(Rt),rt.push(ca))}return He}function de(le,ee,se,ce){var Ee=le-se,Ne=ee-ce;return Ee*Ee+Ne*Ne}var ze=function(le){return le[0]},pe=function(le){return le[1]},at=function(ee,se,ce,Ee,Ne){se===void 0&&(se=ze),ce===void 0&&(ce=pe),Ee===void 0&&(Ee=64),Ne===void 0&&(Ne=Float64Array),this.nodeSize=Ee,this.points=ee;for(var rt=ee.length<65536?Uint16Array:Uint32Array,He=this.ids=new rt(ee.length),pt=this.coords=new Ne(ee.length*2),Dt=0;Dt=Ee;Rt--){var $t=+Date.now();pt=this._cluster(pt,Rt),this.trees[Rt]=new at(pt,Be,ft,rt,Float32Array),ce&&console.log("z%d: %d clusters in %dms",Rt,pt.length,+Date.now()-$t)}return ce&&console.timeEnd("total time"),this},Xe.prototype.getClusters=function(ee,se){var ce=((ee[0]+180)%360+360)%360-180,Ee=Math.max(-90,Math.min(90,ee[1])),Ne=ee[2]===180?180:((ee[2]+180)%360+360)%360-180,rt=Math.max(-90,Math.min(90,ee[3]));if(ee[2]-ee[0]>=360)ce=-180,Ne=180;else if(ce>Ne){var He=this.getClusters([ce,Ee,180,rt],se),pt=this.getClusters([-180,Ee,Ne,rt],se);return He.concat(pt)}for(var Dt=this.trees[this._limitZoom(se)],Rt=Dt.range(Gt(ce),Ct(rt),Gt(Ne),Ct(Ee)),$t=[],Yt=0,Tr=Rt;Ytse&&(Br+=ii.numPoints||1)}if(Br>=pt){for(var Wr=$t.x*Yr,dr=$t.y*Yr,ea=He&&Yr>1?this._map($t,!0):null,_a=(Rt<<5)+(se+1)+this.points.length,ir=0,Ai=Tr;ir1)for(var Pn=0,Co=Tr;Pn>5},Xe.prototype._getOriginZoom=function(ee){return(ee-this.points.length)%32},Xe.prototype._map=function(ee,se){if(ee.numPoints)return se?Ot({},ee.properties):ee.properties;var ce=this.points[ee.index].properties,Ee=this.options.map(ce);return se&&Ee===ce?Ot({},Ee):Ee};function Ft(le,ee,se,ce,Ee){return{x:le,y:ee,zoom:1/0,id:se,parentId:-1,numPoints:ce,properties:Ee}}function Lt(le,ee){var se=le.geometry.coordinates,ce=se[0],Ee=se[1];return{x:Gt(ce),y:Ct(Ee),zoom:1/0,index:ee,parentId:-1}}function Tt(le){return{type:"Feature",id:le.id,properties:It(le),geometry:{type:"Point",coordinates:[Mt(le.x),Ut(le.y)]}}}function It(le){var ee=le.numPoints,se=ee>=1e4?Math.round(ee/1e3)+"k":ee>=1e3?Math.round(ee/100)/10+"k":ee;return Ot(Ot({},le.properties),{cluster:!0,cluster_id:le.id,point_count:ee,point_count_abbreviated:se})}function Gt(le){return le/360+.5}function Ct(le){var ee=Math.sin(le*Math.PI/180),se=.5-.25*Math.log((1+ee)/(1-ee))/Math.PI;return se<0?0:se>1?1:se}function Mt(le){return(le-.5)*360}function Ut(le){var ee=(180-le*360)*Math.PI/180;return 360*Math.atan(Math.exp(ee))/Math.PI-90}function Ot(le,ee){for(var se in ee)le[se]=ee[se];return le}function Be(le){return le.x}function ft(le){return le.y}function or(le,ee,se,ce){for(var Ee=ce,Ne=se-ee>>1,rt=se-ee,He,pt=le[ee],Dt=le[ee+1],Rt=le[se],$t=le[se+1],Yt=ee+3;YtEe)He=Yt,Ee=Tr;else if(Tr===Ee){var Yr=Math.abs(Yt-Ne);Yrce&&(He-ee>3&&or(le,ee,He,ce),le[He+2]=Ee,se-He>3&&or(le,He,se,ce))}function Cr(le,ee,se,ce,Ee,Ne){var rt=Ee-se,He=Ne-ce;if(rt!==0||He!==0){var pt=((le-se)*rt+(ee-ce)*He)/(rt*rt+He*He);pt>1?(se=Ee,ce=Ne):pt>0&&(se+=rt*pt,ce+=He*pt)}return rt=le-se,He=ee-ce,rt*rt+He*He}function Sr(le,ee,se,ce){var Ee={id:typeof le=="undefined"?null:le,type:ee,geometry:se,tags:ce,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Oe(Ee),Ee}function Oe(le){var ee=le.geometry,se=le.type;if(se==="Point"||se==="MultiPoint"||se==="LineString")yt(le,ee);else if(se==="Polygon"||se==="MultiLineString")for(var ce=0;ce0&&(ce?rt+=(Ee*Dt-pt*Ne)/2:rt+=Math.sqrt(Math.pow(pt-Ee,2)+Math.pow(Dt-Ne,2))),Ee=pt,Ne=Dt}var Rt=ee.length-3;ee[2]=1,or(ee,0,Rt,se),ee[Rt+2]=1,ee.size=Math.abs(rt),ee.start=0,ee.end=ee.size}function ar(le,ee,se,ce){for(var Ee=0;Ee1?1:se}function At(le,ee,se,ce,Ee,Ne,rt,He){if(se/=ee,ce/=ee,Ne>=se&&rt=ce)return null;for(var pt=[],Dt=0;Dt=se&&Yr=ce)continue;var Br=[];if(Yt==="Point"||Yt==="MultiPoint")Fe($t,Br,se,ce,Ee);else if(Yt==="LineString")Ge($t,Br,se,ce,Ee,!1,He.lineMetrics);else if(Yt==="MultiLineString")dt($t,Br,se,ce,Ee,!1);else if(Yt==="Polygon")dt($t,Br,se,ce,Ee,!0);else if(Yt==="MultiPolygon")for(var ca=0;ca<$t.length;ca++){var ua=[];dt($t[ca],ua,se,ce,Ee,!0),ua.length&&Br.push(ua)}if(Br.length){if(He.lineMetrics&&Yt==="LineString"){for(ca=0;ca=se&&rt<=ce&&(ee.push(le[Ne]),ee.push(le[Ne+1]),ee.push(le[Ne+2]))}}function Ge(le,ee,se,ce,Ee,Ne,rt){for(var He=bt(le),pt=Ee===0?xr:pr,Dt=le.start,Rt,$t,Yt=0;Ytse&&($t=pt(He,Tr,Yr,ca,ua,se),rt&&(He.start=Dt+Rt*$t)):qa>ce?ii=se&&($t=pt(He,Tr,Yr,ca,ua,se),Wr=!0),ii>ce&&qa<=ce&&($t=pt(He,Tr,Yr,ca,ua,ce),Wr=!0),!Ne&&Wr&&(rt&&(He.end=Dt+Rt*$t),ee.push(He),He=bt(le)),rt&&(Dt+=Rt)}var dr=le.length-3;Tr=le[dr],Yr=le[dr+1],Br=le[dr+2],qa=Ee===0?Tr:Yr,qa>=se&&qa<=ce&&yr(He,Tr,Yr,Br),dr=He.length-3,Ne&&dr>=3&&(He[dr]!==He[0]||He[dr+1]!==He[1])&&yr(He,He[0],He[1],He[2]),He.length&&ee.push(He)}function bt(le){var ee=[];return ee.size=le.size,ee.start=le.start,ee.end=le.end,ee}function dt(le,ee,se,ce,Ee,Ne){for(var rt=0;rtrt.maxX&&(rt.maxX=Rt),$t>rt.maxY&&(rt.maxY=$t)}return rt}function vi(le,ee,se,ce){var Ee=ee.geometry,Ne=ee.type,rt=[];if(Ne==="Point"||Ne==="MultiPoint")for(var He=0;He0&&ee.size<(Ee?rt:ce)){se.numPoints+=ee.length/3;return}for(var He=[],pt=0;ptrt)&&(se.numSimplified++,He.push(ee[pt]),He.push(ee[pt+1])),se.numPoints++;Ee&&$i(He,Ne),le.push(He)}function $i(le,ee){for(var se=0,ce=0,Ee=le.length,Ne=Ee-2;ce0===ee)for(ce=0,Ee=le.length;ce24)throw new Error("maxZoom should be in the 0-24 range");if(ee.promoteId&&ee.generateId)throw new Error("promoteId and generateId cannot be used together.");var ce=qt(le,ee);this.tiles={},this.tileCoords=[],se&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",ee.indexMaxZoom,ee.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),ce=Hr(ce,ee),ce.length&&this.splitTile(ce,0,0,0),se&&(ce.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Ei.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Ei.prototype.splitTile=function(le,ee,se,ce,Ee,Ne,rt){for(var He=[le,ee,se,ce],pt=this.options,Dt=pt.debug;He.length;){ce=He.pop(),se=He.pop(),ee=He.pop(),le=He.pop();var Rt=1<1&&console.time("creation"),Yt=this.tiles[$t]=qi(le,ee,se,ce,pt),this.tileCoords.push({z:ee,x:se,y:ce}),Dt)){Dt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",ee,se,ce,Yt.numFeatures,Yt.numPoints,Yt.numSimplified),console.timeEnd("creation"));var Tr="z"+ee;this.stats[Tr]=(this.stats[Tr]||0)+1,this.total++}if(Yt.source=le,Ee){if(ee===pt.maxZoom||ee===Ee)continue;var Yr=1<1&&console.time("clipping");var Br=.5*pt.buffer/pt.extent,ca=.5-Br,ua=.5+Br,qa=1+Br,ii,Wr,dr,ea,_a,ir;ii=Wr=dr=ea=null,_a=At(le,Rt,se-Br,se+ua,0,Yt.minX,Yt.maxX,pt),ir=At(le,Rt,se+ca,se+qa,0,Yt.minX,Yt.maxX,pt),le=null,_a&&(ii=At(_a,Rt,ce-Br,ce+ua,1,Yt.minY,Yt.maxY,pt),Wr=At(_a,Rt,ce+ca,ce+qa,1,Yt.minY,Yt.maxY,pt),_a=null),ir&&(dr=At(ir,Rt,ce-Br,ce+ua,1,Yt.minY,Yt.maxY,pt),ea=At(ir,Rt,ce+ca,ce+qa,1,Yt.minY,Yt.maxY,pt),ir=null),Dt>1&&console.timeEnd("clipping"),He.push(ii||[],ee+1,se*2,ce*2),He.push(Wr||[],ee+1,se*2,ce*2+1),He.push(dr||[],ee+1,se*2+1,ce*2),He.push(ea||[],ee+1,se*2+1,ce*2+1)}}},Ei.prototype.getTile=function(le,ee,se){var ce=this.options,Ee=ce.extent,Ne=ce.debug;if(le<0||le>24)return null;var rt=1<1&&console.log("drilling down to z%d-%d-%d",le,ee,se);for(var pt=le,Dt=ee,Rt=se,$t;!$t&&pt>0;)pt--,Dt=Math.floor(Dt/2),Rt=Math.floor(Rt/2),$t=this.tiles[ma(pt,Dt,Rt)];return!$t||!$t.source?null:(Ne>1&&console.log("found parent tile z%d-%d-%d",pt,Dt,Rt),Ne>1&&console.time("drilling down"),this.splitTile($t.source,pt,Dt,Rt,le,ee,se),Ne>1&&console.timeEnd("drilling down"),this.tiles[He]?Ua(this.tiles[He],Ee):null)};function ma(le,ee,se){return((1<=0?0:g.button},l.remove=function(g){g.parentNode&&g.parentNode.removeChild(g)};function E(g,c,b){var d,w,D,R=a.browser.devicePixelRatio>1?"@2x":"",G=a.getJSON(c.transformRequest(c.normalizeSpriteURL(g,R,".json"),a.ResourceType.SpriteJSON),function(ue,be){G=null,D||(D=ue,d=be,re())}),K=a.getImage(c.transformRequest(c.normalizeSpriteURL(g,R,".png"),a.ResourceType.SpriteImage),function(ue,be){K=null,D||(D=ue,w=be,re())});function re(){if(D)b(D);else if(d&&w){var ue=a.browser.getImageData(w),be={};for(var xe in d){var Re=d[xe],Ye=Re.width,Ze=Re.height,Ue=Re.x,Je=Re.y,ht=Re.sdf,Pt=Re.pixelRatio,Nt=Re.stretchX,Jt=Re.stretchY,er=Re.content,Zt=new a.RGBAImage({width:Ye,height:Ze});a.RGBAImage.copy(ue,Zt,{x:Ue,y:Je},{x:0,y:0},{width:Ye,height:Ze}),be[xe]={data:Zt,pixelRatio:Pt,sdf:ht,stretchX:Nt,stretchY:Jt,content:er}}b(null,be)}}return{cancel:function(){G&&(G.cancel(),G=null),K&&(K.cancel(),K=null)}}}function L(g){var c=g.userImage;if(c&&c.render){var b=c.render();if(b)return g.data.replace(new Uint8Array(c.data.buffer)),!0}return!1}var z=1,B=function(g){function c(){g.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.RGBAImage({width:1,height:1}),this.dirty=!0}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.isLoaded=function(){return this.loaded},c.prototype.setLoaded=function(d){if(this.loaded!==d&&(this.loaded=d,d)){for(var w=0,D=this.requestors;w=0?1.2:1))}V.prototype.draw=function(g){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(g,this.buffer,this.middle);for(var c=this.ctx.getImageData(0,0,this.size,this.size),b=new Uint8ClampedArray(this.size*this.size),d=0;d65535){ue(new Error("glyphs > 65535 not supported"));return}if(Re.ranges[Ze]){ue(null,{stack:be,id:xe,glyph:Ye});return}var Ue=Re.requests[Ze];Ue||(Ue=Re.requests[Ze]=[],te.loadGlyphRange(be,Ze,d.url,d.requestManager,function(Je,ht){if(ht){for(var Pt in ht)d._doesCharSupportLocalGlyph(+Pt)||(Re.glyphs[+Pt]=ht[+Pt]);Re.ranges[Ze]=!0}for(var Nt=0,Jt=Ue;Nt1&&(re=c[++K]);var be=Math.abs(ue-re.left),xe=Math.abs(ue-re.right),Re=Math.min(be,xe),Ye=void 0,Ze=D/d*(w+1);if(re.isDash){var Ue=w-Math.abs(Ze);Ye=Math.sqrt(Re*Re+Ue*Ue)}else Ye=w-Math.sqrt(Re*Re+Ze*Ze);this.data[G+ue]=Math.max(0,Math.min(255,Ye+128))}},Se.prototype.addRegularDash=function(c){for(var b=c.length-1;b>=0;--b){var d=c[b],w=c[b+1];d.zeroLength?c.splice(b,1):w&&w.isDash===d.isDash&&(w.left=d.left,c.splice(b,1))}var D=c[0],R=c[c.length-1];D.isDash===R.isDash&&(D.left=R.left-this.width,R.right=D.right+this.width);for(var G=this.width*this.nextRow,K=0,re=c[K],ue=0;ue1&&(re=c[++K]);var be=Math.abs(ue-re.left),xe=Math.abs(ue-re.right),Re=Math.min(be,xe),Ye=re.isDash?Re:-Re;this.data[G+ue]=Math.max(0,Math.min(255,Ye+128))}},Se.prototype.addDash=function(c,b){var d=b?7:0,w=2*d+1;if(this.nextRow+w>this.height)return a.warnOnce("LineAtlas out of space"),null;for(var D=0,R=0;R=d.minX&&c.x=d.minY&&c.y0&&(ue[new a.OverscaledTileID(d.overscaledZ,G,w.z,R,w.y-1).key]={backfilled:!1},ue[new a.OverscaledTileID(d.overscaledZ,d.wrap,w.z,w.x,w.y-1).key]={backfilled:!1},ue[new a.OverscaledTileID(d.overscaledZ,re,w.z,K,w.y-1).key]={backfilled:!1}),w.y+10&&(D.resourceTiming=d._resourceTiming,d._resourceTiming=[]),d.fire(new a.Event("data",D))})},c.prototype.onAdd=function(d){this.map=d,this.load()},c.prototype.setData=function(d){var w=this;return this._data=d,this.fire(new a.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(D){if(D){w.fire(new a.ErrorEvent(D));return}var R={dataType:"source",sourceDataType:"content"};w._collectResourceTiming&&w._resourceTiming&&w._resourceTiming.length>0&&(R.resourceTiming=w._resourceTiming,w._resourceTiming=[]),w.fire(new a.Event("data",R))}),this},c.prototype.getClusterExpansionZoom=function(d,w){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:d,source:this.id},w),this},c.prototype.getClusterChildren=function(d,w){return this.actor.send("geojson.getClusterChildren",{clusterId:d,source:this.id},w),this},c.prototype.getClusterLeaves=function(d,w,D,R){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:d,limit:w,offset:D},R),this},c.prototype._updateWorkerData=function(d){var w=this;this._loaded=!1;var D=a.extend({},this.workerOptions),R=this._data;typeof R=="string"?(D.request=this.map._requestManager.transformRequest(a.browser.resolveURL(R),a.ResourceType.Source),D.request.collectResourceTiming=this._collectResourceTiming):D.data=JSON.stringify(R),this.actor.send(this.type+".loadData",D,function(G,K){w._removed||K&&K.abandoned||(w._loaded=!0,K&&K.resourceTiming&&K.resourceTiming[w.id]&&(w._resourceTiming=K.resourceTiming[w.id].slice(0)),w.actor.send(w.type+".coalesce",{source:D.source},null),d(G))})},c.prototype.loaded=function(){return this._loaded},c.prototype.loadTile=function(d,w){var D=this,R=d.actor?"reloadTile":"loadTile";d.actor=this.actor;var G={type:this.type,uid:d.uid,tileID:d.tileID,zoom:d.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:a.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};d.request=this.actor.send(R,G,function(K,re){return delete d.request,d.unloadVectorData(),d.aborted?w(null):K?w(K):(d.loadVectorData(re,D.map.painter,R==="reloadTile"),w(null))})},c.prototype.abortTile=function(d){d.request&&(d.request.cancel(),delete d.request),d.aborted=!0},c.prototype.unloadTile=function(d){d.unloadVectorData(),this.actor.send("removeTile",{uid:d.uid,type:this.type,source:this.id})},c.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},c.prototype.serialize=function(){return a.extend({},this._options,{type:this.type,data:this._data})},c.prototype.hasTransition=function(){return!1},c}(a.Evented),lt=a.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),it=function(g){function c(b,d,w,D){g.call(this),this.id=b,this.dispatcher=w,this.coordinates=d.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(D),this.options=d}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.load=function(d,w){var D=this;this._loaded=!1,this.fire(new a.Event("dataloading",{dataType:"source"})),this.url=this.options.url,a.getImage(this.map._requestManager.transformRequest(this.url,a.ResourceType.Image),function(R,G){D._loaded=!0,R?D.fire(new a.ErrorEvent(R)):G&&(D.image=G,d&&(D.coordinates=d),w&&w(),D._finishLoading())})},c.prototype.loaded=function(){return this._loaded},c.prototype.updateImage=function(d){var w=this;return!this.image||!d.url?this:(this.options.url=d.url,this.load(d.coordinates,function(){w.texture=null}),this)},c.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})))},c.prototype.onAdd=function(d){this.map=d,this.load()},c.prototype.setCoordinates=function(d){var w=this;this.coordinates=d;var D=d.map(a.MercatorCoordinate.fromLngLat);this.tileID=gt(D),this.minzoom=this.maxzoom=this.tileID.z;var R=D.map(function(G){return w.tileID.getTilePoint(G)._round()});return this._boundsArray=new a.StructArrayLayout4i8,this._boundsArray.emplaceBack(R[0].x,R[0].y,0,0),this._boundsArray.emplaceBack(R[1].x,R[1].y,a.EXTENT,0),this._boundsArray.emplaceBack(R[3].x,R[3].y,0,a.EXTENT),this._boundsArray.emplaceBack(R[2].x,R[2].y,a.EXTENT,a.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"})),this},c.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var d=this.map.painter.context,w=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new a.Texture(d,this.image,w.RGBA),this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE));for(var D in this.tiles){var R=this.tiles[D];R.state!=="loaded"&&(R.state="loaded",R.texture=this.texture)}}},c.prototype.loadTile=function(d,w){this.tileID&&this.tileID.equals(d.tileID.canonical)?(this.tiles[String(d.tileID.wrap)]=d,d.buckets={},w(null)):(d.state="errored",w(null))},c.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},c.prototype.hasTransition=function(){return!1},c}(a.Evented);function gt(g){for(var c=1/0,b=1/0,d=-1/0,w=-1/0,D=0,R=g;Dw.end(0)?this.fire(new a.ErrorEvent(new a.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+w.start(0)+" and "+w.end(0)+"-second mark."))):this.video.currentTime=d}},c.prototype.getVideo=function(){return this.video},c.prototype.onAdd=function(d){this.map||(this.map=d,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},c.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var d=this.map.painter.context,w=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE),w.texSubImage2D(w.TEXTURE_2D,0,0,0,w.RGBA,w.UNSIGNED_BYTE,this.video)):(this.texture=new a.Texture(d,this.video,w.RGBA),this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE));for(var D in this.tiles){var R=this.tiles[D];R.state!=="loaded"&&(R.state="loaded",R.texture=this.texture)}}},c.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},c.prototype.hasTransition=function(){return this.video&&!this.video.paused},c}(it),Et=function(g){function c(b,d,w,D){g.call(this,b,d,w,D),d.coordinates?(!Array.isArray(d.coordinates)||d.coordinates.length!==4||d.coordinates.some(function(R){return!Array.isArray(R)||R.length!==2||R.some(function(G){return typeof G!="number"})}))&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'missing required property "coordinates"'))),d.animate&&typeof d.animate!="boolean"&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'optional "animate" property must be a boolean value'))),d.canvas?typeof d.canvas!="string"&&!(d.canvas instanceof a.window.HTMLCanvasElement)&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'missing required property "canvas"'))),this.options=d,this.animate=d.animate!==void 0?d.animate:!0}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof a.window.HTMLCanvasElement?this.options.canvas:a.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new a.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},c.prototype.getCanvas=function(){return this.canvas},c.prototype.onAdd=function(d){this.map=d,this.load(),this.canvas&&this.animate&&this.play()},c.prototype.onRemove=function(){this.pause()},c.prototype.prepare=function(){var d=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,d=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,d=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var w=this.map.painter.context,D=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(d||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new a.Texture(w,this.canvas,D.RGBA,{premultiply:!0});for(var R in this.tiles){var G=this.tiles[R];G.state!=="loaded"&&(G.state="loaded",G.texture=this.texture)}}},c.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},c.prototype.hasTransition=function(){return this._playing},c.prototype._hasInvalidDimensions=function(){for(var d=0,w=[this.canvas.width,this.canvas.height];dthis.max){var G=this._getAndRemoveByKey(this.order[0]);G&&this.onRemove(G)}return this},Lt.prototype.has=function(c){return c.wrapped().key in this.data},Lt.prototype.getAndRemove=function(c){return this.has(c)?this._getAndRemoveByKey(c.wrapped().key):null},Lt.prototype._getAndRemoveByKey=function(c){var b=this.data[c].shift();return b.timeout&&clearTimeout(b.timeout),this.data[c].length===0&&delete this.data[c],this.order.splice(this.order.indexOf(c),1),b.value},Lt.prototype.getByKey=function(c){var b=this.data[c];return b?b[0].value:null},Lt.prototype.get=function(c){if(!this.has(c))return null;var b=this.data[c.wrapped().key][0];return b.value},Lt.prototype.remove=function(c,b){if(!this.has(c))return this;var d=c.wrapped().key,w=b===void 0?0:this.data[d].indexOf(b),D=this.data[d][w];return this.data[d].splice(w,1),D.timeout&&clearTimeout(D.timeout),this.data[d].length===0&&delete this.data[d],this.onRemove(D.value),this.order.splice(this.order.indexOf(d),1),this},Lt.prototype.setMaxSize=function(c){for(this.max=c;this.order.length>this.max;){var b=this._getAndRemoveByKey(this.order[0]);b&&this.onRemove(b)}return this},Lt.prototype.filter=function(c){var b=[];for(var d in this.data)for(var w=0,D=this.data[d];w1||(Math.abs(be)>1&&(Math.abs(be+Re)===1?be+=Re:Math.abs(be-Re)===1&&(be-=Re)),!(!ue.dem||!re.dem)&&(re.dem.backfillBorder(ue.dem,be,xe),re.neighboringTiles&&re.neighboringTiles[Ye]&&(re.neighboringTiles[Ye].backfilled=!0)))}},c.prototype.getTile=function(d){return this.getTileByID(d.key)},c.prototype.getTileByID=function(d){return this._tiles[d]},c.prototype._retainLoadedChildren=function(d,w,D,R){for(var G in this._tiles){var K=this._tiles[G];if(!(R[G]||!K.hasData()||K.tileID.overscaledZ<=w||K.tileID.overscaledZ>D)){for(var re=K.tileID;K&&K.tileID.overscaledZ>w+1;){var ue=K.tileID.scaledTo(K.tileID.overscaledZ-1);K=this._tiles[ue.key],K&&K.hasData()&&(re=ue)}for(var be=re;be.overscaledZ>w;)if(be=be.scaledTo(be.overscaledZ-1),d[be.key]){R[re.key]=re;break}}}},c.prototype.findLoadedParent=function(d,w){if(d.key in this._loadedParentTiles){var D=this._loadedParentTiles[d.key];return D&&D.tileID.overscaledZ>=w?D:null}for(var R=d.overscaledZ-1;R>=w;R--){var G=d.scaledTo(R),K=this._getLoadedTile(G);if(K)return K}},c.prototype._getLoadedTile=function(d){var w=this._tiles[d.key];if(w&&w.hasData())return w;var D=this._cache.getByKey(d.wrapped().key);return D},c.prototype.updateCacheSize=function(d){var w=Math.ceil(d.width/this._source.tileSize)+1,D=Math.ceil(d.height/this._source.tileSize)+1,R=w*D,G=5,K=Math.floor(R*G),re=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,K):K;this._cache.setMaxSize(re)},c.prototype.handleWrapJump=function(d){var w=this._prevLng===void 0?d:this._prevLng,D=d-w,R=D/360,G=Math.round(R);if(this._prevLng=d,G){var K={};for(var re in this._tiles){var ue=this._tiles[re];ue.tileID=ue.tileID.unwrapTo(ue.tileID.wrap+G),K[ue.tileID.key]=ue}this._tiles=K;for(var be in this._timers)clearTimeout(this._timers[be]),delete this._timers[be];for(var xe in this._tiles){var Re=this._tiles[xe];this._setTileReloadTimer(xe,Re)}}},c.prototype.update=function(d){var w=this;if(this.transform=d,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(d),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var D;this.used?this._source.tileID?D=d.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(br){return new a.OverscaledTileID(br.canonical.z,br.wrap,br.canonical.z,br.canonical.x,br.canonical.y)}):(D=d.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(D=D.filter(function(br){return w._source.hasTile(br)}))):D=[];var R=d.coveringZoomLevel(this._source),G=Math.max(R-c.maxOverzooming,this._source.minzoom),K=Math.max(R+c.maxUnderzooming,this._source.minzoom),re=this._updateRetainedTiles(D,R);if(pt(this._source.type)){for(var ue={},be={},xe=Object.keys(re),Re=0,Ye=xe;Rethis._source.maxzoom){var ht=Ue.children(this._source.maxzoom)[0],Pt=this.getTile(ht);if(Pt&&Pt.hasData()){D[ht.key]=ht;continue}}else{var Nt=Ue.children(this._source.maxzoom);if(D[Nt[0].key]&&D[Nt[1].key]&&D[Nt[2].key]&&D[Nt[3].key])continue}for(var Jt=Je.wasRequested(),er=Ue.overscaledZ-1;er>=G;--er){var Zt=Ue.scaledTo(er);if(R[Zt.key]||(R[Zt.key]=!0,Je=this.getTile(Zt),!Je&&Jt&&(Je=this._addTile(Zt)),Je&&(D[Zt.key]=Zt,Jt=Je.wasRequested(),Je.hasData())))break}}}return D},c.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var d in this._tiles){for(var w=[],D=void 0,R=this._tiles[d].tileID;R.overscaledZ>0;){if(R.key in this._loadedParentTiles){D=this._loadedParentTiles[R.key];break}w.push(R.key);var G=R.scaledTo(R.overscaledZ-1);if(D=this._getLoadedTile(G),D)break;R=G}for(var K=0,re=w;K0)&&(w.hasData()&&w.state!=="reloading"?this._cache.add(w.tileID,w,w.getExpiryTimeout()):(w.aborted=!0,this._abortTile(w),this._unloadTile(w))))},c.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var d in this._tiles)this._removeTile(d);this._cache.reset()},c.prototype.tilesIn=function(d,w,D){var R=this,G=[],K=this.transform;if(!K)return G;for(var re=D?K.getCameraQueryGeometry(d):d,ue=d.map(function(er){return K.pointCoordinate(er)}),be=re.map(function(er){return K.pointCoordinate(er)}),xe=this.getIds(),Re=1/0,Ye=1/0,Ze=-1/0,Ue=-1/0,Je=0,ht=be;Je=0&&Er[1].y+br>=0){var Ar=ue.map(function(Ra){return rr.getTilePoint(Ra)}),Xr=be.map(function(Ra){return rr.getTilePoint(Ra)});G.push({tile:Zt,tileID:rr,queryGeometry:Ar,cameraQueryGeometry:Xr,scale:hr})}}},Jt=0;Jt=a.browser.now())return!0}return!1},c.prototype.setFeatureState=function(d,w,D){d=d||"_geojsonTileLayer",this._state.updateState(d,w,D)},c.prototype.removeFeatureState=function(d,w,D){d=d||"_geojsonTileLayer",this._state.removeFeatureState(d,w,D)},c.prototype.getFeatureState=function(d,w){return d=d||"_geojsonTileLayer",this._state.getState(d,w)},c.prototype.setDependencies=function(d,w,D){var R=this._tiles[d];R&&R.setDependencies(w,D)},c.prototype.reloadTilesForDependencies=function(d,w){for(var D in this._tiles){var R=this._tiles[D];R.hasDependency(d,w)&&this._reloadTile(D,"reloading")}this._cache.filter(function(G){return!G.hasDependency(d,w)})},c}(a.Evented);rt.maxOverzooming=10,rt.maxUnderzooming=3;function He(g,c){var b=Math.abs(g.wrap*2)-+(g.wrap<0),d=Math.abs(c.wrap*2)-+(c.wrap<0);return g.overscaledZ-c.overscaledZ||d-b||c.canonical.y-g.canonical.y||c.canonical.x-g.canonical.x}function pt(g){return g==="raster"||g==="image"||g==="video"}function Dt(){return new a.window.Worker(Tn.workerUrl)}var Rt="mapboxgl_preloaded_worker_pool",$t=function(){this.active={}};$t.prototype.acquire=function(c){if(!this.workers)for(this.workers=[];this.workers.length<$t.workerCount;)this.workers.push(new Dt);return this.active[c]=!0,this.workers.slice()},$t.prototype.release=function(c){delete this.active[c],this.numActive()===0&&(this.workers.forEach(function(b){b.terminate()}),this.workers=null)},$t.prototype.isPreloaded=function(){return!!this.active[Rt]},$t.prototype.numActive=function(){return Object.keys(this.active).length};var Yt=Math.floor(a.browser.hardwareConcurrency/2);$t.workerCount=Math.max(Math.min(Yt,6),1);var Tr;function Yr(){return Tr||(Tr=new $t),Tr}function Br(){var g=Yr();g.acquire(Rt)}function ca(){var g=Tr;g&&(g.isPreloaded()&&g.numActive()===1?(g.release(Rt),Tr=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))}function ua(g,c){var b={};for(var d in g)d!=="ref"&&(b[d]=g[d]);return a.refProperties.forEach(function(w){w in c&&(b[w]=c[w])}),b}function qa(g){g=g.slice();for(var c=Object.create(null),b=0;b0?(w-R)/G:0;return this.points[D].mult(1-K).add(this.points[b].mult(K))};var Za=function(c,b,d){var w=this.boxCells=[],D=this.circleCells=[];this.xCellCount=Math.ceil(c/d),this.yCellCount=Math.ceil(b/d);for(var R=0;Rthis.width||w<0||b>this.height)return D?!1:[];var G=[];if(c<=0&&b<=0&&this.width<=d&&this.height<=w){if(D)return!0;for(var K=0;K0:G}},Za.prototype._queryCircle=function(c,b,d,w,D){var R=c-d,G=c+d,K=b-d,re=b+d;if(G<0||R>this.width||re<0||K>this.height)return w?!1:[];var ue=[],be={hitTest:w,circle:{x:c,y:b,radius:d},seenUids:{box:{},circle:{}}};return this._forEachCell(R,K,G,re,this._queryCellCircle,ue,be,D),w?ue.length>0:ue},Za.prototype.query=function(c,b,d,w,D){return this._query(c,b,d,w,!1,D)},Za.prototype.hitTest=function(c,b,d,w,D){return this._query(c,b,d,w,!0,D)},Za.prototype.hitTestCircle=function(c,b,d,w){return this._queryCircle(c,b,d,!0,w)},Za.prototype._queryCell=function(c,b,d,w,D,R,G,K){var re=G.seenUids,ue=this.boxCells[D];if(ue!==null)for(var be=this.bboxes,xe=0,Re=ue;xe=be[Ze+0]&&w>=be[Ze+1]&&(!K||K(this.boxKeys[Ye]))){if(G.hitTest)return R.push(!0),!0;R.push({key:this.boxKeys[Ye],x1:be[Ze],y1:be[Ze+1],x2:be[Ze+2],y2:be[Ze+3]})}}}var Ue=this.circleCells[D];if(Ue!==null)for(var Je=this.circles,ht=0,Pt=Ue;htG*G+K*K},Za.prototype._circleAndRectCollide=function(c,b,d,w,D,R,G){var K=(R-w)/2,re=Math.abs(c-(w+K));if(re>K+d)return!1;var ue=(G-D)/2,be=Math.abs(b-(D+ue));if(be>ue+d)return!1;if(re<=K||be<=ue)return!0;var xe=re-K,Re=be-ue;return xe*xe+Re*Re<=d*d};function Kn(g,c,b,d,w){var D=a.create();return c?(a.scale(D,D,[1/w,1/w,1]),b||a.rotateZ(D,D,d.angle)):a.multiply(D,d.labelPlaneMatrix,g),D}function vu(g,c,b,d,w){if(c){var D=a.clone(g);return a.scale(D,D,[w,w,1]),b||a.rotateZ(D,D,-d.angle),D}else return d.glCoordMatrix}function Vi(g,c){var b=[g.x,g.y,0,1];Zf(b,b,c);var d=b[3];return{point:new a.Point(b[0]/d,b[1]/d),signedDistanceFromCamera:d}}function pl(g,c){return .5+.5*(g/c)}function Qd(g,c){var b=g[0]/g[3],d=g[1]/g[3],w=b>=-c[0]&&b<=c[0]&&d>=-c[1]&&d<=c[1];return w}function qc(g,c,b,d,w,D,R,G){var K=d?g.textSizeData:g.iconSizeData,re=a.evaluateSizeForZoom(K,b.transform.zoom),ue=[256/b.width*2+1,256/b.height*2+1],be=d?g.text.dynamicLayoutVertexArray:g.icon.dynamicLayoutVertexArray;be.clear();for(var xe=g.lineVertexArray,Re=d?g.text.placedSymbolArray:g.icon.placedSymbolArray,Ye=b.transform.width/b.transform.height,Ze=!1,Ue=0;UeD)return{useVertical:!0}}return(g===a.WritingMode.vertical?c.yb.x)?{needsFlipping:!0}:null}function vv(g,c,b,d,w,D,R,G,K,re,ue,be,xe,Re){var Ye=c/24,Ze=g.lineOffsetX*Ye,Ue=g.lineOffsetY*Ye,Je;if(g.numGlyphs>1){var ht=g.glyphStartIndex+g.numGlyphs,Pt=g.lineStartIndex,Nt=g.lineStartIndex+g.lineLength,Jt=Nc(Ye,G,Ze,Ue,b,ue,be,g,K,D,xe);if(!Jt)return{notEnoughRoom:!0};var er=Vi(Jt.first.point,R).point,Zt=Vi(Jt.last.point,R).point;if(d&&!b){var rr=hv(g.writingMode,er,Zt,Re);if(rr)return rr}Je=[Jt.first];for(var hr=g.glyphStartIndex+1;hr0?Xr.point:du(be,Ar,br,1,w),xa=hv(g.writingMode,br,Ra,Re);if(xa)return xa}var qr=ml(Ye*G.getoffsetX(g.glyphStartIndex),Ze,Ue,b,ue,be,g.segment,g.lineStartIndex,g.lineStartIndex+g.lineLength,K,D,xe);if(!qr)return{notEnoughRoom:!0};Je=[qr]}for(var Sa=0,ia=Je;Sa0?1:-1,Ye=0;d&&(Re*=-1,Ye=Math.PI),Re<0&&(Ye+=Math.PI);for(var Ze=Re>0?G+R:G+R+1,Ue=w,Je=w,ht=0,Pt=0,Nt=Math.abs(xe),Jt=[];ht+Pt<=Nt;){if(Ze+=Re,Ze=K)return null;if(Je=Ue,Jt.push(Ue),Ue=be[Ze],Ue===void 0){var er=new a.Point(re.getx(Ze),re.gety(Ze)),Zt=Vi(er,ue);if(Zt.signedDistanceFromCamera>0)Ue=be[Ze]=Zt.point;else{var rr=Ze-Re,hr=ht===0?D:new a.Point(re.getx(rr),re.gety(rr));Ue=du(hr,er,Je,Nt-ht+1,ue)}}ht+=Pt,Pt=Je.dist(Ue)}var br=(Nt-ht)/Pt,Er=Ue.sub(Je),Ar=Er.mult(br)._add(Je);Ar._add(Er._unit()._perp()._mult(b*Re));var Xr=Ye+Math.atan2(Ue.y-Je.y,Ue.x-Je.x);return Jt.push(Ar),{point:Ar,angle:Xr,path:Jt}}var $d=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Ku(g,c){for(var b=0;b=1;Ya--)ia.push(qr.path[Ya]);for(var Va=1;Va0){for(var na=ia[0].clone(),Ba=ia[0].clone(),rn=1;rn=Xr.x&&Ba.x<=Ra.x&&na.y>=Xr.y&&Ba.y<=Ra.y?yi=[ia]:Ba.xRa.x||Ba.yRa.y?yi=[]:yi=a.clipLine([ia],Xr.x,Xr.y,Ra.x,Ra.y)}for(var Fn=0,Ds=yi;Fn=this.screenRightBoundary||wthis.screenBottomBoundary},Ho.prototype.isInsideGrid=function(c,b,d,w){return d>=0&&c=0&&b0){var Nt;return this.prevPlacement&&this.prevPlacement.variableOffsets[xe.crossTileID]&&this.prevPlacement.placements[xe.crossTileID]&&this.prevPlacement.placements[xe.crossTileID].text&&(Nt=this.prevPlacement.variableOffsets[xe.crossTileID].anchor),this.variableOffsets[xe.crossTileID]={textOffset:Ue,width:d,height:w,anchor:c,textBoxScale:D,prevAnchor:Nt},this.markUsedJustification(Re,c,xe,Ye),Re.allowVerticalPlacement&&(this.markUsedOrientation(Re,Ye,xe),this.placedOrientations[xe.crossTileID]=Ye),{shift:Je,placedGlyphBoxes:ht}}},oo.prototype.placeLayerBucketPart=function(c,b,d){var w=this,D=c.parameters,R=D.bucket,G=D.layout,K=D.posMatrix,re=D.textLabelPlaneMatrix,ue=D.labelToScreenMatrix,be=D.textPixelRatio,xe=D.holdingForFade,Re=D.collisionBoxArray,Ye=D.partiallyEvaluatedTextSize,Ze=D.collisionGroup,Ue=G.get("text-optional"),Je=G.get("icon-optional"),ht=G.get("text-allow-overlap"),Pt=G.get("icon-allow-overlap"),Nt=G.get("text-rotation-alignment")==="map",Jt=G.get("text-pitch-alignment")==="map",er=G.get("icon-text-fit")!=="none",Zt=G.get("symbol-z-order")==="viewport-y",rr=ht&&(Pt||!R.hasIconData()||Je),hr=Pt&&(ht||!R.hasTextData()||Ue);!R.collisionArrays&&Re&&R.deserializeCollisionBoxes(Re);var br=function(qr,Sa){if(!b[qr.crossTileID]){if(xe){w.placements[qr.crossTileID]=new pu(!1,!1,!1);return}var ia=!1,Ya=!1,Va=!0,Si=null,La={box:null,offscreen:null},yi={box:null,offscreen:null},na=null,Ba=null,rn=null,Fn=0,Ds=0,Ps=0;Sa.textFeatureIndex?Fn=Sa.textFeatureIndex:qr.useRuntimeCollisionCircles&&(Fn=qr.featureIndex),Sa.verticalTextFeatureIndex&&(Ds=Sa.verticalTextFeatureIndex);var $s=Sa.textBox;if($s){var Ol=function(fn){var Qo=a.WritingMode.horizontal;if(R.allowVerticalPlacement&&!fn&&w.prevPlacement){var $o=w.prevPlacement.placedOrientations[qr.crossTileID];$o&&(w.placedOrientations[qr.crossTileID]=$o,Qo=$o,w.markUsedOrientation(R,Qo,qr))}return Qo},oc=function(fn,Qo){if(R.allowVerticalPlacement&&qr.numVerticalGlyphVertices>0&&Sa.verticalTextBox)for(var $o=0,Vp=R.writingModes;$o0&&(Ko=Ko.filter(function(fn){return fn!==Po.anchor}),Ko.unshift(Po.anchor))}var el=function(fn,Qo,$o){for(var Vp=fn.x2-fn.x1,sy=fn.y2-fn.y1,l3=qr.textBoxScale,u3=er&&!Pt?Qo:null,Xv={box:[],offscreen:!1},f3=ht?Ko.length*2:Ko.length,Hp=0;Hp=Ko.length,ly=w.attemptAnchorPlacement(c3,fn,Vp,sy,l3,Nt,Jt,be,K,Ze,h3,qr,R,$o,u3);if(ly&&(Xv=ly.placedGlyphBoxes,Xv&&Xv.box&&Xv.box.length)){ia=!0,Si=ly.shift;break}}return Xv},Cu=function(){return el($s,Sa.iconBox,a.WritingMode.horizontal)},tl=function(){var fn=Sa.verticalTextBox,Qo=La&&La.box&&La.box.length;return R.allowVerticalPlacement&&!Qo&&qr.numVerticalGlyphVertices>0&&fn?el(fn,Sa.verticalIconBox,a.WritingMode.vertical):{box:null,offscreen:null}};oc(Cu,tl),La&&(ia=La.box,Va=La.offscreen);var qp=Ol(La&&La.box);if(!ia&&w.prevPlacement){var ch=w.prevPlacement.variableOffsets[qr.crossTileID];ch&&(w.variableOffsets[qr.crossTileID]=ch,w.markUsedJustification(R,ch.anchor,qr,qp))}}else{var Ul=function(fn,Qo){var $o=w.collisionIndex.placeCollisionBox(fn,ht,be,K,Ze.predicate);return $o&&$o.box&&$o.box.length&&(w.markUsedOrientation(R,Qo,qr),w.placedOrientations[qr.crossTileID]=Qo),$o},Do=function(){return Ul($s,a.WritingMode.horizontal)},Vl=function(){var fn=Sa.verticalTextBox;return R.allowVerticalPlacement&&qr.numVerticalGlyphVertices>0&&fn?Ul(fn,a.WritingMode.vertical):{box:null,offscreen:null}};oc(Do,Vl),Ol(La&&La.box&&La.box.length)}}if(na=La,ia=na&&na.box&&na.box.length>0,Va=na&&na.offscreen,qr.useRuntimeCollisionCircles){var Hn=R.text.placedSymbolArray.get(qr.centerJustifiedTextSymbolIndex),Np=a.evaluateSizeForFeature(R.textSizeData,Ye,Hn),Wv=G.get("text-padding"),xo=qr.collisionCircleDiameter;Ba=w.collisionIndex.placeCollisionCircles(ht,Hn,R.lineVertexArray,R.glyphOffsetArray,Np,K,re,ue,d,Jt,Ze.predicate,xo,Wv),ia=ht||Ba.circles.length>0&&!Ba.collisionDetected,Va=Va&&Ba.offscreen}if(Sa.iconFeatureIndex&&(Ps=Sa.iconFeatureIndex),Sa.iconBox){var hh=function(fn){var Qo=er&&Si?mv(fn,Si.x,Si.y,Nt,Jt,w.transform.angle):fn;return w.collisionIndex.placeCollisionBox(Qo,Pt,be,K,Ze.predicate)};yi&&yi.box&&yi.box.length&&Sa.verticalIconBox?(rn=hh(Sa.verticalIconBox),Ya=rn.box.length>0):(rn=hh(Sa.iconBox),Ya=rn.box.length>0),Va=Va&&rn.offscreen}var Bp=Ue||qr.numHorizontalGlyphVertices===0&&qr.numVerticalGlyphVertices===0,Op=Je||qr.numIconVertices===0;if(!Bp&&!Op?Ya=ia=Ya&&ia:Op?Bp||(Ya=Ya&&ia):ia=Ya&&ia,ia&&na&&na.box&&(yi&&yi.box&&Ds?w.collisionIndex.insertCollisionBox(na.box,G.get("text-ignore-placement"),R.bucketInstanceId,Ds,Ze.ID):w.collisionIndex.insertCollisionBox(na.box,G.get("text-ignore-placement"),R.bucketInstanceId,Fn,Ze.ID)),Ya&&rn&&w.collisionIndex.insertCollisionBox(rn.box,G.get("icon-ignore-placement"),R.bucketInstanceId,Ps,Ze.ID),Ba&&(ia&&w.collisionIndex.insertCollisionCircles(Ba.circles,G.get("text-ignore-placement"),R.bucketInstanceId,Fn,Ze.ID),d)){var Up=R.bucketInstanceId,vh=w.collisionCircleArrays[Up];vh===void 0&&(vh=w.collisionCircleArrays[Up]=new ep);for(var dh=0;dh=0;--Ar){var Xr=Er[Ar];br(R.symbolInstances.get(Xr),R.collisionArrays[Xr])}else for(var Ra=c.symbolInstanceStart;Ra=0&&(R>=0&&ue!==R?c.text.placedSymbolArray.get(ue).crossTileID=0:c.text.placedSymbolArray.get(ue).crossTileID=d.crossTileID)}},oo.prototype.markUsedOrientation=function(c,b,d){for(var w=b===a.WritingMode.horizontal||b===a.WritingMode.horizontalOnly?b:0,D=b===a.WritingMode.vertical?b:0,R=[d.leftJustifiedTextSymbolIndex,d.centerJustifiedTextSymbolIndex,d.rightJustifiedTextSymbolIndex],G=0,K=R;G0||Jt>0,br=Pt.numIconVertices>0,Er=w.placedOrientations[Pt.crossTileID],Ar=Er===a.WritingMode.vertical,Xr=Er===a.WritingMode.horizontal||Er===a.WritingMode.horizontalOnly;if(hr){var Ra=ef(rr.text),xa=Ar?kr:Ra;Ye(c.text,Nt,xa);var qr=Xr?kr:Ra;Ye(c.text,Jt,qr);var Sa=rr.text.isHidden();[Pt.rightJustifiedTextSymbolIndex,Pt.centerJustifiedTextSymbolIndex,Pt.leftJustifiedTextSymbolIndex].forEach(function(Ps){Ps>=0&&(c.text.placedSymbolArray.get(Ps).hidden=Sa||Ar?1:0)}),Pt.verticalPlacedTextSymbolIndex>=0&&(c.text.placedSymbolArray.get(Pt.verticalPlacedTextSymbolIndex).hidden=Sa||Xr?1:0);var ia=w.variableOffsets[Pt.crossTileID];ia&&w.markUsedJustification(c,ia.anchor,Pt,Er);var Ya=w.placedOrientations[Pt.crossTileID];Ya&&(w.markUsedJustification(c,"left",Pt,Ya),w.markUsedOrientation(c,Ya,Pt))}if(br){var Va=ef(rr.icon),Si=!(xe&&Pt.verticalPlacedIconSymbolIndex&&Ar);if(Pt.placedIconSymbolIndex>=0){var La=Si?Va:kr;Ye(c.icon,Pt.numIconVertices,La),c.icon.placedSymbolArray.get(Pt.placedIconSymbolIndex).hidden=rr.icon.isHidden()}if(Pt.verticalPlacedIconSymbolIndex>=0){var yi=Si?kr:Va;Ye(c.icon,Pt.numVerticalIconVertices,yi),c.icon.placedSymbolArray.get(Pt.verticalPlacedIconSymbolIndex).hidden=rr.icon.isHidden()}}if(c.hasIconCollisionBoxData()||c.hasTextCollisionBoxData()){var na=c.collisionArrays[ht];if(na){var Ba=new a.Point(0,0);if(na.textBox||na.verticalTextBox){var rn=!0;if(re){var Fn=w.variableOffsets[er];Fn?(Ba=pv(Fn.anchor,Fn.width,Fn.height,Fn.textOffset,Fn.textBoxScale),ue&&Ba._rotate(be?w.transform.angle:-w.transform.angle)):rn=!1}na.textBox&&Wt(c.textCollisionBox.collisionVertexArray,rr.text.placed,!rn||Ar,Ba.x,Ba.y),na.verticalTextBox&&Wt(c.textCollisionBox.collisionVertexArray,rr.text.placed,!rn||Xr,Ba.x,Ba.y)}var Ds=!!(!Xr&&na.verticalIconBox);na.iconBox&&Wt(c.iconCollisionBox.collisionVertexArray,rr.icon.placed,Ds,xe?Ba.x:0,xe?Ba.y:0),na.verticalIconBox&&Wt(c.iconCollisionBox.collisionVertexArray,rr.icon.placed,!Ds,xe?Ba.x:0,xe?Ba.y:0)}}},Ue=0;Uec},oo.prototype.setStale=function(){this.stale=!0};function Wt(g,c,b,d,w){g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0)}var Or=Math.pow(2,25),tp=Math.pow(2,24),mu=Math.pow(2,17),sn=Math.pow(2,16),gl=Math.pow(2,9),bs=Math.pow(2,8),$u=Math.pow(2,1);function ef(g){if(g.opacity===0&&!g.placed)return 0;if(g.opacity===1&&g.placed)return 4294967295;var c=g.placed?1:0,b=Math.floor(g.opacity*127);return b*Or+c*tp+b*mu+c*sn+b*gl+c*bs+b*$u+c}var kr=0,wa=function(c){this._sortAcrossTiles=c.layout.get("symbol-z-order")!=="viewport-y"&&c.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};wa.prototype.continuePlacement=function(c,b,d,w,D){for(var R=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var G=c[this._currentPlacementIndex],K=b[G],re=this.placement.collisionIndex.transform.zoom;if(K.type==="symbol"&&(!K.minzoom||K.minzoom<=re)&&(!K.maxzoom||K.maxzoom>re)){this._inProgressLayer||(this._inProgressLayer=new wa(K));var ue=this._inProgressLayer.continuePlacement(d[K.source],this.placement,this._showCollisionBoxes,K,R);if(ue)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Ta.prototype.commit=function(c){return this.placement.commit(c),this.placement};var ws=512/a.EXTENT/2,_l=function(c,b,d){this.tileID=c,this.indexedSymbolInstances={},this.bucketInstanceId=d;for(var w=0;wc.overscaledZ)for(var re in K){var ue=K[re];ue.tileID.isChildOf(c)&&ue.findMatches(b.symbolInstances,c,R)}else{var be=c.scaledTo(Number(G)),xe=K[be.key];xe&&xe.findMatches(b.symbolInstances,c,R)}}for(var Re=0;Re0)throw new Error("Unimplemented: "+R.map(function(G){return G.command}).join(", ")+".");return D.forEach(function(G){G.command!=="setTransition"&&w[G.command].apply(w,G.args)}),this.stylesheet=d,!0},c.prototype.addImage=function(d,w){if(this.getImage(d))return this.fire(new a.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(d,w),this._afterImageUpdated(d)},c.prototype.updateImage=function(d,w){this.imageManager.updateImage(d,w)},c.prototype.getImage=function(d){return this.imageManager.getImage(d)},c.prototype.removeImage=function(d){if(!this.getImage(d))return this.fire(new a.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(d),this._afterImageUpdated(d)},c.prototype._afterImageUpdated=function(d){this._availableImages=this.imageManager.listImages(),this._changedImages[d]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new a.Event("data",{dataType:"style"}))},c.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},c.prototype.addSource=function(d,w,D){var R=this;if(D===void 0&&(D={}),this._checkLoaded(),this.sourceCaches[d]!==void 0)throw new Error("There is already a source with this ID");if(!w.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(w).join(", ")+".");var G=["vector","raster","geojson","video","image"],K=G.indexOf(w.type)>=0;if(!(K&&this._validate(a.validateStyle.source,"sources."+d,w,null,D))){this.map&&this.map._collectResourceTiming&&(w.collectResourceTiming=!0);var re=this.sourceCaches[d]=new rt(d,w,this.dispatcher);re.style=this,re.setEventedParent(this,function(){return{isSourceLoaded:R.loaded(),source:re.serialize(),sourceId:d}}),re.onAdd(this.map),this._changed=!0}},c.prototype.removeSource=function(d){if(this._checkLoaded(),this.sourceCaches[d]===void 0)throw new Error("There is no source with this ID");for(var w in this._layers)if(this._layers[w].source===d)return this.fire(new a.ErrorEvent(new Error('Source "'+d+'" cannot be removed while layer "'+w+'" is using it.')));var D=this.sourceCaches[d];delete this.sourceCaches[d],delete this._updatedSources[d],D.fire(new a.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:d})),D.setEventedParent(null),D.clearTiles(),D.onRemove&&D.onRemove(this.map),this._changed=!0},c.prototype.setGeoJSONSourceData=function(d,w){this._checkLoaded();var D=this.sourceCaches[d].getSource();D.setData(w),this._changed=!0},c.prototype.getSource=function(d){return this.sourceCaches[d]&&this.sourceCaches[d].getSource()},c.prototype.addLayer=function(d,w,D){D===void 0&&(D={}),this._checkLoaded();var R=d.id;if(this.getLayer(R)){this.fire(new a.ErrorEvent(new Error('Layer with id "'+R+'" already exists on this map')));return}var G;if(d.type==="custom"){if(fs(this,a.validateCustomStyleLayer(d)))return;G=a.createStyleLayer(d)}else{if(typeof d.source=="object"&&(this.addSource(R,d.source),d=a.clone$1(d),d=a.extend(d,{source:R})),this._validate(a.validateStyle.layer,"layers."+R,d,{arrayIndex:-1},D))return;G=a.createStyleLayer(d),this._validateLayer(G),G.setEventedParent(this,{layer:{id:R}}),this._serializedLayers[G.id]=G.serialize()}var K=w?this._order.indexOf(w):this._order.length;if(w&&K===-1){this.fire(new a.ErrorEvent(new Error('Layer with id "'+w+'" does not exist on this map.')));return}if(this._order.splice(K,0,R),this._layerOrderChanged=!0,this._layers[R]=G,this._removedLayers[R]&&G.source&&G.type!=="custom"){var re=this._removedLayers[R];delete this._removedLayers[R],re.type!==G.type?this._updatedSources[G.source]="clear":(this._updatedSources[G.source]="reload",this.sourceCaches[G.source].pause())}this._updateLayer(G),G.onAdd&&G.onAdd(this.map)},c.prototype.moveLayer=function(d,w){this._checkLoaded(),this._changed=!0;var D=this._layers[d];if(!D){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be moved.")));return}if(d!==w){var R=this._order.indexOf(d);this._order.splice(R,1);var G=w?this._order.indexOf(w):this._order.length;if(w&&G===-1){this.fire(new a.ErrorEvent(new Error('Layer with id "'+w+'" does not exist on this map.')));return}this._order.splice(G,0,d),this._layerOrderChanged=!0}},c.prototype.removeLayer=function(d){this._checkLoaded();var w=this._layers[d];if(!w){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be removed.")));return}w.setEventedParent(null);var D=this._order.indexOf(d);this._order.splice(D,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[d]=w,delete this._layers[d],delete this._serializedLayers[d],delete this._updatedLayers[d],delete this._updatedPaintProps[d],w.onRemove&&w.onRemove(this.map)},c.prototype.getLayer=function(d){return this._layers[d]},c.prototype.hasLayer=function(d){return d in this._layers},c.prototype.setLayerZoomRange=function(d,w,D){this._checkLoaded();var R=this.getLayer(d);if(!R){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot have zoom extent.")));return}R.minzoom===w&&R.maxzoom===D||(w!=null&&(R.minzoom=w),D!=null&&(R.maxzoom=D),this._updateLayer(R))},c.prototype.setFilter=function(d,w,D){D===void 0&&(D={}),this._checkLoaded();var R=this.getLayer(d);if(!R){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be filtered.")));return}if(!a.deepEqual(R.filter,w)){if(w==null){R.filter=void 0,this._updateLayer(R);return}this._validate(a.validateStyle.filter,"layers."+R.id+".filter",w,null,D)||(R.filter=a.clone$1(w),this._updateLayer(R))}},c.prototype.getFilter=function(d){return a.clone$1(this.getLayer(d).filter)},c.prototype.setLayoutProperty=function(d,w,D,R){R===void 0&&(R={}),this._checkLoaded();var G=this.getLayer(d);if(!G){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be styled.")));return}a.deepEqual(G.getLayoutProperty(w),D)||(G.setLayoutProperty(w,D,R),this._updateLayer(G))},c.prototype.getLayoutProperty=function(d,w){var D=this.getLayer(d);if(!D){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style.")));return}return D.getLayoutProperty(w)},c.prototype.setPaintProperty=function(d,w,D,R){R===void 0&&(R={}),this._checkLoaded();var G=this.getLayer(d);if(!G){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be styled.")));return}if(!a.deepEqual(G.getPaintProperty(w),D)){var K=G.setPaintProperty(w,D,R);K&&this._updateLayer(G),this._changed=!0,this._updatedPaintProps[d]=!0}},c.prototype.getPaintProperty=function(d,w){return this.getLayer(d).getPaintProperty(w)},c.prototype.setFeatureState=function(d,w){this._checkLoaded();var D=d.source,R=d.sourceLayer,G=this.sourceCaches[D];if(G===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+D+"' does not exist in the map's style.")));return}var K=G.getSource().type;if(K==="geojson"&&R){this.fire(new a.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(K==="vector"&&!R){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}d.id===void 0&&this.fire(new a.ErrorEvent(new Error("The feature id parameter must be provided."))),G.setFeatureState(R,d.id,w)},c.prototype.removeFeatureState=function(d,w){this._checkLoaded();var D=d.source,R=this.sourceCaches[D];if(R===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+D+"' does not exist in the map's style.")));return}var G=R.getSource().type,K=G==="vector"?d.sourceLayer:void 0;if(G==="vector"&&!K){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(w&&typeof d.id!="string"&&typeof d.id!="number"){this.fire(new a.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}R.removeFeatureState(K,d.id,w)},c.prototype.getFeatureState=function(d){this._checkLoaded();var w=d.source,D=d.sourceLayer,R=this.sourceCaches[w];if(R===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+w+"' does not exist in the map's style.")));return}var G=R.getSource().type;if(G==="vector"&&!D){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return d.id===void 0&&this.fire(new a.ErrorEvent(new Error("The feature id parameter must be provided."))),R.getFeatureState(D,d.id)},c.prototype.getTransition=function(){return a.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},c.prototype.serialize=function(){return a.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:a.mapObject(this.sourceCaches,function(d){return d.serialize()}),layers:this._serializeLayers(this._order)},function(d){return d!==void 0})},c.prototype._updateLayer=function(d){this._updatedLayers[d.id]=!0,d.source&&!this._updatedSources[d.source]&&this.sourceCaches[d.source].getSource().type!=="raster"&&(this._updatedSources[d.source]="reload",this.sourceCaches[d.source].pause()),this._changed=!0},c.prototype._flattenAndSortRenderedFeatures=function(d){for(var w=this,D=function(Xr){return w._layers[Xr].type==="fill-extrusion"},R={},G=[],K=this._order.length-1;K>=0;K--){var re=this._order[K];if(D(re)){R[re]=K;for(var ue=0,be=d;ue=0;ht--){var Pt=this._order[ht];if(D(Pt))for(var Nt=G.length-1;Nt>=0;Nt--){var Jt=G[Nt].feature;if(R[Jt.layer.id] 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 ? a_pos -: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`,Pm=`#ifdef GL_ES +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`,zm=`#ifdef GL_ES precision highp float; #endif uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,zm="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",_v=`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +}`,Im="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",_v=`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; #define PI 3.141592653589793 void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,Im="uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}",Rm=`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +}`,Rm="uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}",Fm=`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -322,7 +322,7 @@ vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,Fm=` +}`,qm=` #define scale 0.015873016 #define LINE_DISTANCE_SCALE 2.0 attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; @@ -363,7 +363,7 @@ float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_rati #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,gu=` +}`,_u=` #define scale 0.015873016 #define LINE_DISTANCE_SCALE 2.0 attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; @@ -386,7 +386,7 @@ float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;f #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,qm="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",op=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +}`,Nm="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",op=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize lowp float opacity @@ -417,7 +417,7 @@ float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scal #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,Nm=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; +}`,Bm=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color #pragma mapbox: define lowp float opacity @@ -431,7 +431,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`,cs=`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`,hs=`#define SDF_PX 8.0 #define SDF 1.0 #define ICON 0.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; @@ -468,7 +468,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Tl=Ni(Bc,yu),Vc=Ni(Mm,Yf),Al=Ni(oi,Wf),Ml=Ni(yv,xn),Tv=Ni(Pn,rp),Hc=Ni(tf,ln),Ts=Ni(Eo,Zo),dn=Ni(vn,Xf),Bm=Ni(un,Yo),Om=Ni(Xs,Sm),Sl=Ni(Wo,km),rf=Ni(js,zn),hs=Ni(Cm,bl),up=Ni(wl,gv),fp=Ni(Em,Lm),af=Ni(Oc,Dm),cp=Ni(Pm,zm),hp=Ni(_v,Im),Um=Ni(Rm,xv),Vm=Ni(ap,ip),Av=Ni(bv,Fm),Mv=Ni(wv,gu),Sv=Ni(np,qm),jf=Ni(op,sp),Gc=Ni(lp,Nm),vp=Ni(cs,Uc);function Ni(g,c){var b=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,d=c.match(/attribute ([\w]+) ([\w]+)/g),w=g.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),L=c.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),R=L?L.concat(w):w,G={};return g=g.replace(b,function(K,re,ue,be,xe){return G[xe]=!0,re==="define"?` +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Tl=Ni(Bc,gu),Vc=Ni(Sm,Yf),Al=Ni(oi,Wf),Ml=Ni(yv,xn),Tv=Ni(zn,rp),Hc=Ni(tf,ln),As=Ni(Eo,Zo),dn=Ni(vn,Xf),Om=Ni(un,Yo),Um=Ni(Xs,km),Sl=Ni(Wo,Cm),rf=Ni(js,In),vs=Ni(Em,bl),up=Ni(wl,gv),fp=Ni(Lm,Dm),af=Ni(Oc,Pm),cp=Ni(zm,Im),hp=Ni(_v,Rm),Vm=Ni(Fm,xv),Hm=Ni(ap,ip),Av=Ni(bv,qm),Mv=Ni(wv,_u),Sv=Ni(np,Nm),jf=Ni(op,sp),Gc=Ni(lp,Bm),vp=Ni(hs,Uc);function Ni(g,c){var b=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,d=c.match(/attribute ([\w]+) ([\w]+)/g),w=g.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),D=c.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),R=D?D.concat(w):w,G={};return g=g.replace(b,function(K,re,ue,be,xe){return G[xe]=!0,re==="define"?` #ifndef HAS_UNIFORM_u_`+xe+` varying `+ue+" "+be+" "+xe+`; #else @@ -517,9 +517,9 @@ uniform `+ue+" "+be+" u_"+xe+`; #else `+ue+" "+be+" "+xe+" = u_"+xe+`; #endif -`}),{fragmentSource:g,vertexSource:c,staticAttributes:d,staticUniforms:R}}var Hm=Object.freeze({__proto__:null,prelude:Tl,background:Vc,backgroundPattern:Al,circle:Ml,clippingMask:Tv,heatmap:Hc,heatmapTexture:Ts,collisionBox:dn,collisionCircle:Bm,debug:Om,fill:Sl,fillOutline:rf,fillOutlinePattern:hs,fillPattern:up,fillExtrusion:fp,fillExtrusionPattern:af,hillshadePrepare:cp,hillshade:hp,line:Um,lineGradient:Vm,linePattern:Av,lineSDF:Mv,raster:Sv,symbolIcon:jf,symbolSDF:Gc,symbolTextAndIcon:vp}),Zc=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Zc.prototype.bind=function(c,b,d,w,L,R,G,K){this.context=c;for(var re=this.boundPaintVertexBuffers.length!==w.length,ue=0;!re&&ue>16,G>>16],u_pixel_coord_lower:[R&65535,G&65535]}}function _u(g,c,b,d){var w=b.imageManager.getPattern(g.from.toString()),L=b.imageManager.getPattern(g.to.toString()),R=b.imageManager.getPixelSize(),G=R.width,K=R.height,re=Math.pow(2,d.tileID.overscaledZ),ue=d.tileSize*Math.pow(2,b.transform.tileZoom)/re,be=ue*(d.tileID.canonical.x+d.tileID.wrap*re),xe=ue*d.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:w.tl,u_pattern_br_a:w.br,u_pattern_tl_b:L.tl,u_pattern_br_b:L.br,u_texsize:[G,K],u_mix:c.t,u_pattern_size_a:w.displaySize,u_pattern_size_b:L.displaySize,u_scale_a:c.fromScale,u_scale_b:c.toScale,u_tile_units_to_pixels:1/mo(d,1,b.transform.tileZoom),u_pixel_coord_upper:[be>>16,xe>>16],u_pixel_coord_lower:[be&65535,xe&65535]}}var Cv=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_lightpos:new a.Uniform3f(g,c.u_lightpos),u_lightintensity:new a.Uniform1f(g,c.u_lightintensity),u_lightcolor:new a.Uniform3f(g,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(g,c.u_vertical_gradient),u_opacity:new a.Uniform1f(g,c.u_opacity)}},bn=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_lightpos:new a.Uniform3f(g,c.u_lightpos),u_lightintensity:new a.Uniform1f(g,c.u_lightintensity),u_lightcolor:new a.Uniform3f(g,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(g,c.u_vertical_gradient),u_height_factor:new a.Uniform1f(g,c.u_height_factor),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade),u_opacity:new a.Uniform1f(g,c.u_opacity)}},Jf=function(g,c,b,d){var w=c.style.light,L=w.properties.get("position"),R=[L.x,L.y,L.z],G=a.create$1();w.properties.get("anchor")==="viewport"&&a.fromRotation(G,-c.transform.angle),a.transformMat3(R,R,G);var K=w.properties.get("color");return{u_matrix:g,u_lightpos:R,u_lightintensity:w.properties.get("intensity"),u_lightcolor:[K.r,K.g,K.b],u_vertical_gradient:+b,u_opacity:d}},Js=function(g,c,b,d,w,L,R){return a.extend(Jf(g,c,b,d),nf(L,c,R),{u_height_factor:-Math.pow(2,w.overscaledZ)/R.tileSize/8})},kl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},Cl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},El=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world)}},Ks=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},As=function(g){return{u_matrix:g}},Ms=function(g,c,b,d){return a.extend(As(g),nf(b,c,d))},Ll=function(g,c){return{u_matrix:g,u_world:c}},pp=function(g,c,b,d,w){return a.extend(Ms(g,c,b,d),{u_world:w})},Gm=function(g,c){return{u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_scale_with_map:new a.Uniform1i(g,c.u_scale_with_map),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_extrude_scale:new a.Uniform2f(g,c.u_extrude_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},Zm=function(g,c,b,d){var w=g.transform,L,R;if(d.paint.get("circle-pitch-alignment")==="map"){var G=mo(b,1,w.zoom);L=!0,R=[G,G]}else L=!1,R=w.pixelsToGLUnits;return{u_camera_to_center_distance:w.cameraToCenterDistance,u_scale_with_map:+(d.paint.get("circle-pitch-scale")==="map"),u_matrix:g.translatePosMatrix(c.posMatrix,b,d.paint.get("circle-translate"),d.paint.get("circle-translate-anchor")),u_pitch_with_map:+L,u_device_pixel_ratio:a.browser.devicePixelRatio,u_extrude_scale:R}},Ym=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pixels_to_tile_units:new a.Uniform1f(g,c.u_pixels_to_tile_units),u_extrude_scale:new a.Uniform2f(g,c.u_extrude_scale),u_overscale_factor:new a.Uniform1f(g,c.u_overscale_factor)}},mp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_inv_matrix:new a.UniformMatrix4f(g,c.u_inv_matrix),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_viewport_size:new a.Uniform2f(g,c.u_viewport_size)}},yp=function(g,c,b){var d=mo(b,1,c.zoom),w=Math.pow(2,c.zoom-b.tileID.overscaledZ),L=b.tileID.overscaleFactor();return{u_matrix:g,u_camera_to_center_distance:c.cameraToCenterDistance,u_pixels_to_tile_units:d,u_extrude_scale:[c.pixelsToGLUnits[0]/(d*w),c.pixelsToGLUnits[1]/(d*w)],u_overscale_factor:L}},Ev=function(g,c,b){return{u_matrix:g,u_inv_matrix:c,u_camera_to_center_distance:b.cameraToCenterDistance,u_viewport_size:[b.width,b.height]}},Lv=function(g,c){return{u_color:new a.UniformColor(g,c.u_color),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_overlay:new a.Uniform1i(g,c.u_overlay),u_overlay_scale:new a.Uniform1f(g,c.u_overlay_scale)}},Kf=function(g,c,b){return b===void 0&&(b=1),{u_matrix:g,u_color:c,u_overlay:0,u_overlay_scale:b}},Yc=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},gp=function(g){return{u_matrix:g}},Dv=function(g,c){return{u_extrude_scale:new a.Uniform1f(g,c.u_extrude_scale),u_intensity:new a.Uniform1f(g,c.u_intensity),u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},_p=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world),u_image:new a.Uniform1i(g,c.u_image),u_color_ramp:new a.Uniform1i(g,c.u_color_ramp),u_opacity:new a.Uniform1f(g,c.u_opacity)}},of=function(g,c,b,d){return{u_matrix:g,u_extrude_scale:mo(c,1,b),u_intensity:d}},Wm=function(g,c,b,d){var w=a.create();a.ortho(w,0,g.width,g.height,0,0,1);var L=g.context.gl;return{u_matrix:w,u_world:[L.drawingBufferWidth,L.drawingBufferHeight],u_image:b,u_color_ramp:d,u_opacity:c.paint.get("heatmap-opacity")}},xp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_latrange:new a.Uniform2f(g,c.u_latrange),u_light:new a.Uniform2f(g,c.u_light),u_shadow:new a.UniformColor(g,c.u_shadow),u_highlight:new a.UniformColor(g,c.u_highlight),u_accent:new a.UniformColor(g,c.u_accent)}},bp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_dimension:new a.Uniform2f(g,c.u_dimension),u_zoom:new a.Uniform1f(g,c.u_zoom),u_unpack:new a.Uniform4f(g,c.u_unpack)}},wp=function(g,c,b){var d=b.paint.get("hillshade-shadow-color"),w=b.paint.get("hillshade-highlight-color"),L=b.paint.get("hillshade-accent-color"),R=b.paint.get("hillshade-illumination-direction")*(Math.PI/180);b.paint.get("hillshade-illumination-anchor")==="viewport"&&(R-=g.transform.angle);var G=!g.options.moving;return{u_matrix:g.transform.calculatePosMatrix(c.tileID.toUnwrapped(),G),u_image:0,u_latrange:zv(g,c.tileID),u_light:[b.paint.get("hillshade-exaggeration"),R],u_shadow:d,u_highlight:w,u_accent:L}},Pv=function(g,c){var b=c.stride,d=a.create();return a.ortho(d,0,a.EXTENT,-a.EXTENT,0,0,1),a.translate(d,d,[0,-a.EXTENT,0]),{u_matrix:d,u_image:1,u_dimension:[b,b],u_zoom:g.overscaledZ,u_unpack:c.getUnpackVector()}};function zv(g,c){var b=Math.pow(2,c.canonical.z),d=c.canonical.y;return[new a.MercatorCoordinate(0,d/b).toLngLat().lat,new a.MercatorCoordinate(0,(d+1)/b).toLngLat().lat]}var xu=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels)}},Dl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_image:new a.Uniform1i(g,c.u_image),u_image_height:new a.Uniform1f(g,c.u_image_height)}},Qf=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_texsize:new a.Uniform2f(g,c.u_texsize),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_image:new a.Uniform1i(g,c.u_image),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},Iv=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_patternscale_a:new a.Uniform2f(g,c.u_patternscale_a),u_patternscale_b:new a.Uniform2f(g,c.u_patternscale_b),u_sdfgamma:new a.Uniform1f(g,c.u_sdfgamma),u_image:new a.Uniform1i(g,c.u_image),u_tex_y_a:new a.Uniform1f(g,c.u_tex_y_a),u_tex_y_b:new a.Uniform1f(g,c.u_tex_y_b),u_mix:new a.Uniform1f(g,c.u_mix)}},Wc=function(g,c,b){var d=g.transform;return{u_matrix:bu(g,c,b),u_ratio:1/mo(c,1,d.zoom),u_device_pixel_ratio:a.browser.devicePixelRatio,u_units_to_pixels:[1/d.pixelsToGLUnits[0],1/d.pixelsToGLUnits[1]]}},Xc=function(g,c,b,d){return a.extend(Wc(g,c,b),{u_image:0,u_image_height:d})},jc=function(g,c,b,d){var w=g.transform,L=Jc(c,w);return{u_matrix:bu(g,c,b),u_texsize:c.imageAtlasTexture.size,u_ratio:1/mo(c,1,w.zoom),u_device_pixel_ratio:a.browser.devicePixelRatio,u_image:0,u_scale:[L,d.fromScale,d.toScale],u_fade:d.t,u_units_to_pixels:[1/w.pixelsToGLUnits[0],1/w.pixelsToGLUnits[1]]}},Pl=function(g,c,b,d,w){var L=g.transform,R=g.lineAtlas,G=Jc(c,L),K=b.layout.get("line-cap")==="round",re=R.getDash(d.from,K),ue=R.getDash(d.to,K),be=re.width*w.fromScale,xe=ue.width*w.toScale;return a.extend(Wc(g,c,b),{u_patternscale_a:[G/be,-re.height/2],u_patternscale_b:[G/xe,-ue.height/2],u_sdfgamma:R.width/(Math.min(be,xe)*256*a.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:re.y,u_tex_y_b:ue.y,u_mix:w.t})};function Jc(g,c){return 1/mo(g,1,c.tileZoom)}function bu(g,c,b){return g.translatePosMatrix(c.tileID.posMatrix,c,b.paint.get("line-translate"),b.paint.get("line-translate-anchor"))}var sf=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_tl_parent:new a.Uniform2f(g,c.u_tl_parent),u_scale_parent:new a.Uniform1f(g,c.u_scale_parent),u_buffer_scale:new a.Uniform1f(g,c.u_buffer_scale),u_fade_t:new a.Uniform1f(g,c.u_fade_t),u_opacity:new a.Uniform1f(g,c.u_opacity),u_image0:new a.Uniform1i(g,c.u_image0),u_image1:new a.Uniform1i(g,c.u_image1),u_brightness_low:new a.Uniform1f(g,c.u_brightness_low),u_brightness_high:new a.Uniform1f(g,c.u_brightness_high),u_saturation_factor:new a.Uniform1f(g,c.u_saturation_factor),u_contrast_factor:new a.Uniform1f(g,c.u_contrast_factor),u_spin_weights:new a.Uniform3f(g,c.u_spin_weights)}},Tp=function(g,c,b,d,w){return{u_matrix:g,u_tl_parent:c,u_scale_parent:b,u_buffer_scale:1,u_fade_t:d.mix,u_opacity:d.opacity*w.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:w.paint.get("raster-brightness-min"),u_brightness_high:w.paint.get("raster-brightness-max"),u_saturation_factor:$f(w.paint.get("raster-saturation")),u_contrast_factor:pi(w.paint.get("raster-contrast")),u_spin_weights:Kc(w.paint.get("raster-hue-rotate"))}};function Kc(g){g*=Math.PI/180;var c=Math.sin(g),b=Math.cos(g);return[(2*b+1)/3,(-Math.sqrt(3)*c-b+1)/3,(Math.sqrt(3)*c-b+1)/3]}function pi(g){return g>0?1/(1-g):1+g}function $f(g){return g>0?1-1/(1.001-g):-g}var Ap=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texture:new a.Uniform1i(g,c.u_texture)}},Mp=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texture:new a.Uniform1i(g,c.u_texture),u_gamma_scale:new a.Uniform1f(g,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_is_halo:new a.Uniform1i(g,c.u_is_halo)}},zl=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texsize_icon:new a.Uniform2f(g,c.u_texsize_icon),u_texture:new a.Uniform1i(g,c.u_texture),u_texture_icon:new a.Uniform1i(g,c.u_texture_icon),u_gamma_scale:new a.Uniform1f(g,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_is_halo:new a.Uniform1i(g,c.u_is_halo)}},Sp=function(g,c,b,d,w,L,R,G,K,re){var ue=w.transform;return{u_is_size_zoom_constant:+(g==="constant"||g==="source"),u_is_size_feature_constant:+(g==="constant"||g==="camera"),u_size_t:c?c.uSizeT:0,u_size:c?c.uSize:0,u_camera_to_center_distance:ue.cameraToCenterDistance,u_pitch:ue.pitch/360*2*Math.PI,u_rotate_symbol:+b,u_aspect_ratio:ue.width/ue.height,u_fade_change:w.options.fadeDuration?w.symbolFadeChange:1,u_matrix:L,u_label_plane_matrix:R,u_coord_matrix:G,u_is_text:+K,u_pitch_with_map:+d,u_texsize:re,u_texture:0}},kp=function(g,c,b,d,w,L,R,G,K,re,ue){var be=w.transform;return a.extend(Sp(g,c,b,d,w,L,R,G,K,re),{u_gamma_scale:d?Math.cos(be._pitch)*be.cameraToCenterDistance:1,u_device_pixel_ratio:a.browser.devicePixelRatio,u_is_halo:+ue})},Rv=function(g,c,b,d,w,L,R,G,K,re){return a.extend(kp(g,c,b,d,w,L,R,G,!0,K,!0),{u_texsize_icon:re,u_texture_icon:1})},Cp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_opacity:new a.Uniform1f(g,c.u_opacity),u_color:new a.UniformColor(g,c.u_color)}},Xm=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_opacity:new a.Uniform1f(g,c.u_opacity),u_image:new a.Uniform1i(g,c.u_image),u_pattern_tl_a:new a.Uniform2f(g,c.u_pattern_tl_a),u_pattern_br_a:new a.Uniform2f(g,c.u_pattern_br_a),u_pattern_tl_b:new a.Uniform2f(g,c.u_pattern_tl_b),u_pattern_br_b:new a.Uniform2f(g,c.u_pattern_br_b),u_texsize:new a.Uniform2f(g,c.u_texsize),u_mix:new a.Uniform1f(g,c.u_mix),u_pattern_size_a:new a.Uniform2f(g,c.u_pattern_size_a),u_pattern_size_b:new a.Uniform2f(g,c.u_pattern_size_b),u_scale_a:new a.Uniform1f(g,c.u_scale_a),u_scale_b:new a.Uniform1f(g,c.u_scale_b),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_tile_units_to_pixels:new a.Uniform1f(g,c.u_tile_units_to_pixels)}},Il=function(g,c,b){return{u_matrix:g,u_opacity:c,u_color:b}},wu=function(g,c,b,d,w,L){return a.extend(_u(d,L,b,w),{u_matrix:g,u_opacity:c})},ec={fillExtrusion:Cv,fillExtrusionPattern:bn,fill:kl,fillPattern:Cl,fillOutline:El,fillOutlinePattern:Ks,circle:Gm,collisionBox:Ym,collisionCircle:mp,debug:Lv,clippingMask:Yc,heatmap:Dv,heatmapTexture:_p,hillshade:xp,hillshadePrepare:bp,line:xu,lineGradient:Dl,linePattern:Qf,lineSDF:Iv,raster:sf,symbolIcon:Ap,symbolSDF:Mp,symbolTextAndIcon:zl,background:Cp,backgroundPattern:Xm},Ss;function ks(g,c,b,d,w,L,R){for(var G=g.context,K=G.gl,re=g.useProgram("collisionBox"),ue=[],be=0,xe=0,Re=0;Re0){var Nt=a.create(),Jt=Je;a.mul(Nt,Ue.placementInvProjMatrix,g.transform.glCoordMatrix),a.mul(Nt,Nt,Ue.placementViewportMatrix),ue.push({circleArray:Pt,circleOffset:xe,transform:Jt,invTransform:Nt}),be+=Pt.length/4,xe=be}ht&&re.draw(G,K.LINES,ma.disabled,Zr.disabled,g.colorModeForRenderPass(),Ee.disabled,yp(Je,g.transform,Ze),b.id,ht.layoutVertexBuffer,ht.indexBuffer,ht.segments,null,g.transform.zoom,null,null,ht.collisionVertexBuffer)}}if(!(!R||!ue.length)){var er=g.useProgram("collisionCircle"),Zt=new a.StructArrayLayout2f1f2i16;Zt.resize(be*4),Zt._trim();for(var rr=0,hr=0,br=ue;hr=0&&(Ye[Ue.associatedIconIndex]={shiftedAnchor:Xr,angle:Ra})}}if(ue){Re.clear();for(var qr=g.icon.placedSymbolArray,Sa=0;Sa0){var R=a.browser.now(),G=(R-g.timeAdded)/L,K=c?(R-c.timeAdded)/L:-1,re=b.getSource(),ue=w.coveringZoomLevel({tileSize:re.tileSize,roundZoom:re.roundZoom}),be=!c||Math.abs(c.tileID.overscaledZ-ue)>Math.abs(g.tileID.overscaledZ-ue),xe=be&&g.refreshedUponExpiration?1:a.clamp(be?G:1-K,0,1);return g.refreshedUponExpiration&&G>=1&&(g.refreshedUponExpiration=!1),c?{opacity:1,mix:1-xe}:{opacity:xe,mix:0}}else return{opacity:1,mix:0}}function tc(g,c,b){var d=b.paint.get("background-color"),w=b.paint.get("background-opacity");if(w!==0){var L=g.context,R=L.gl,G=g.transform,K=G.tileSize,re=b.paint.get("background-pattern");if(!g.isPatternMissing(re)){var ue=!re&&d.a===1&&w===1&&g.opaquePassEnabledForLayer()?"opaque":"translucent";if(g.renderPass===ue){var be=Zr.disabled,xe=g.depthModeForSublayer(0,ue==="opaque"?ma.ReadWrite:ma.ReadOnly),Re=g.colorModeForRenderPass(),Ye=g.useProgram(re?"backgroundPattern":"background"),Ze=G.coveringTiles({tileSize:K});re&&(L.activeTexture.set(R.TEXTURE0),g.imageManager.bind(g.context));for(var Ue=b.getCrossfadeParameters(),Je=0,ht=Ze;Je "+b.overscaledZ);var Je=Ue+" "+Re+"kb";Ip(g,Je),R.draw(d,w.TRIANGLES,G,K,ee.alphaBlended,Ee.disabled,Kf(L,a.Color.transparent,Ze),ue,g.debugBuffer,g.quadTriangleIndexBuffer,g.debugSegments)}function Ip(g,c){g.initDebugOverlayCanvas();var b=g.debugOverlayCanvas,d=g.context.gl,w=g.debugOverlayCanvas.getContext("2d");w.clearRect(0,0,b.width,b.height),w.shadowColor="white",w.shadowBlur=2,w.lineWidth=1.5,w.strokeStyle="white",w.textBaseline="top",w.font="bold 36px Open Sans, sans-serif",w.fillText(c,5,5),w.strokeText(c,5,5),g.debugOverlayTexture.update(b),g.debugOverlayTexture.bind(d.LINEAR,d.CLAMP_TO_EDGE)}function pf(g,c,b){var d=g.context,w=b.implementation;if(g.renderPass==="offscreen"){var L=w.prerender;L&&(g.setCustomLayerDefaults(),d.setColorMode(g.colorModeForRenderPass()),L.call(w,d.gl,g.transform.customLayerMatrix()),d.setDirty(),g.setBaseState())}else if(g.renderPass==="translucent"){g.setCustomLayerDefaults(),d.setColorMode(g.colorModeForRenderPass()),d.setStencilMode(Zr.disabled);var R=w.renderingMode==="3d"?new ma(g.context.gl.LEQUAL,ma.ReadWrite,g.depthRangeFor3D):g.depthModeForSublayer(0,ma.ReadOnly);d.setDepthMode(R),w.render(d.gl,g.transform.customLayerMatrix()),d.setDirty(),g.setBaseState(),d.bindFramebuffer.set(null)}}var li={symbol:jm,circle:Qc,heatmap:Tu,line:go,fill:Ep,"fill-extrusion":Rl,hillshade:vf,raster:Lp,background:tc,debug:Vv,custom:pf},Di=function(c,b){this.context=new Ne(c),this.transform=b,this._tileTextures={},this.setup(),this.numSublayers=at.maxUnderzooming+at.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new mu,this.gpuTimers={}};Di.prototype.resize=function(c,b){if(this.width=c*a.browser.devicePixelRatio,this.height=b*a.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var d=0,w=this.style._order;d256&&this.clearStencil(),d.setColorMode(ee.disabled),d.setDepthMode(ma.disabled);var L=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var R=0,G=b;R256&&this.clearStencil();var c=this.nextStencilID++,b=this.context.gl;return new Zr({func:b.NOTEQUAL,mask:255},c,255,b.KEEP,b.KEEP,b.REPLACE)},Di.prototype.stencilModeForClipping=function(c){var b=this.context.gl;return new Zr({func:b.EQUAL,mask:255},this._tileClippingMaskIDs[c.key],0,b.KEEP,b.KEEP,b.REPLACE)},Di.prototype.stencilConfigForOverlap=function(c){var b,d=this.context.gl,w=c.sort(function(re,ue){return ue.overscaledZ-re.overscaledZ}),L=w[w.length-1].overscaledZ,R=w[0].overscaledZ-L+1;if(R>1){this.currentStencilSource=void 0,this.nextStencilID+R>256&&this.clearStencil();for(var G={},K=0;K=0;this.currentLayer--){var Nt=this.style._layers[w[this.currentLayer]],Jt=L[Nt.source],er=K[Nt.source];this._renderTileClippingMasks(Nt,er),this.renderLayer(this,Jt,Nt,er)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?b.pop():null},Di.prototype.isPatternMissing=function(c){if(!c)return!1;if(!c.from||!c.to)return!0;var b=this.imageManager.getPattern(c.from.toString()),d=this.imageManager.getPattern(c.to.toString());return!b||!d},Di.prototype.useProgram=function(c,b){this.cache=this.cache||{};var d=""+c+(b?b.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[d]||(this.cache[d]=new dp(this.context,c,Hm[c],b,ec[c],this._showOverdrawInspector)),this.cache[d]},Di.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Di.prototype.setBaseState=function(){var c=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(c.FUNC_ADD)},Di.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=a.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var c=this.context.gl;this.debugOverlayTexture=new a.Texture(this.context,this.debugOverlayCanvas,c.RGBA)}},Di.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var so=function(c,b){this.points=c,this.planes=b};so.fromInvProjectionMatrix=function(c,b,d){var w=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],L=Math.pow(2,d),R=w.map(function(re){return a.transformMat4([],re,c)}).map(function(re){return a.scale$1([],re,1/re[3]/b*L)}),G=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],K=G.map(function(re){var ue=a.sub([],R[re[0]],R[re[1]]),be=a.sub([],R[re[2]],R[re[1]]),xe=a.normalize([],a.cross([],ue,be)),Re=-a.dot(xe,R[re[1]]);return xe.concat(Re)});return new so(R,K)};var Cs=function(c,b){this.min=c,this.max=b,this.center=a.scale$2([],a.add([],this.min,this.max),.5)};Cs.prototype.quadrant=function(c){for(var b=[c%2===0,c<2],d=a.clone$2(this.min),w=a.clone$2(this.max),L=0;L=0;if(R===0)return 0;R!==b.length&&(d=!1)}if(d)return 2;for(var K=0;K<3;K++){for(var re=Number.MAX_VALUE,ue=-Number.MAX_VALUE,be=0;bethis.max[K]-this.min[K])return 0}return 1};var _o=function(c,b,d,w){if(c===void 0&&(c=0),b===void 0&&(b=0),d===void 0&&(d=0),w===void 0&&(w=0),isNaN(c)||c<0||isNaN(b)||b<0||isNaN(d)||d<0||isNaN(w)||w<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=c,this.bottom=b,this.left=d,this.right=w};_o.prototype.interpolate=function(c,b,d){return b.top!=null&&c.top!=null&&(this.top=a.number(c.top,b.top,d)),b.bottom!=null&&c.bottom!=null&&(this.bottom=a.number(c.bottom,b.bottom,d)),b.left!=null&&c.left!=null&&(this.left=a.number(c.left,b.left,d)),b.right!=null&&c.right!=null&&(this.right=a.number(c.right,b.right,d)),this},_o.prototype.getCenter=function(c,b){var d=a.clamp((this.left+c-this.right)/2,0,c),w=a.clamp((this.top+b-this.bottom)/2,0,b);return new a.Point(d,w)},_o.prototype.equals=function(c){return this.top===c.top&&this.bottom===c.bottom&&this.left===c.left&&this.right===c.right},_o.prototype.clone=function(){return new _o(this.top,this.bottom,this.left,this.right)},_o.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var ti=function(c,b,d,w,L){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=L===void 0?!0:L,this._minZoom=c||0,this._maxZoom=b||22,this._minPitch=d==null?0:d,this._maxPitch=w==null?60:w,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new _o,this._posMatrixCache={},this._alignedPosMatrixCache={}},fi={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};ti.prototype.clone=function(){var c=new ti(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return c.tileSize=this.tileSize,c.latRange=this.latRange,c.width=this.width,c.height=this.height,c._center=this._center,c.zoom=this.zoom,c.angle=this.angle,c._fov=this._fov,c._pitch=this._pitch,c._unmodified=this._unmodified,c._edgeInsets=this._edgeInsets.clone(),c._calcMatrices(),c},fi.minZoom.get=function(){return this._minZoom},fi.minZoom.set=function(g){this._minZoom!==g&&(this._minZoom=g,this.zoom=Math.max(this.zoom,g))},fi.maxZoom.get=function(){return this._maxZoom},fi.maxZoom.set=function(g){this._maxZoom!==g&&(this._maxZoom=g,this.zoom=Math.min(this.zoom,g))},fi.minPitch.get=function(){return this._minPitch},fi.minPitch.set=function(g){this._minPitch!==g&&(this._minPitch=g,this.pitch=Math.max(this.pitch,g))},fi.maxPitch.get=function(){return this._maxPitch},fi.maxPitch.set=function(g){this._maxPitch!==g&&(this._maxPitch=g,this.pitch=Math.min(this.pitch,g))},fi.renderWorldCopies.get=function(){return this._renderWorldCopies},fi.renderWorldCopies.set=function(g){g===void 0?g=!0:g===null&&(g=!1),this._renderWorldCopies=g},fi.worldSize.get=function(){return this.tileSize*this.scale},fi.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},fi.size.get=function(){return new a.Point(this.width,this.height)},fi.bearing.get=function(){return-this.angle/Math.PI*180},fi.bearing.set=function(g){var c=-a.wrap(g,-180,180)*Math.PI/180;this.angle!==c&&(this._unmodified=!1,this.angle=c,this._calcMatrices(),this.rotationMatrix=a.create$2(),a.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},fi.pitch.get=function(){return this._pitch/Math.PI*180},fi.pitch.set=function(g){var c=a.clamp(g,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==c&&(this._unmodified=!1,this._pitch=c,this._calcMatrices())},fi.fov.get=function(){return this._fov/Math.PI*180},fi.fov.set=function(g){g=Math.max(.01,Math.min(60,g)),this._fov!==g&&(this._unmodified=!1,this._fov=g/180*Math.PI,this._calcMatrices())},fi.zoom.get=function(){return this._zoom},fi.zoom.set=function(g){var c=Math.min(Math.max(g,this.minZoom),this.maxZoom);this._zoom!==c&&(this._unmodified=!1,this._zoom=c,this.scale=this.zoomScale(c),this.tileZoom=Math.floor(c),this.zoomFraction=c-this.tileZoom,this._constrain(),this._calcMatrices())},fi.center.get=function(){return this._center},fi.center.set=function(g){g.lat===this._center.lat&&g.lng===this._center.lng||(this._unmodified=!1,this._center=g,this._constrain(),this._calcMatrices())},fi.padding.get=function(){return this._edgeInsets.toJSON()},fi.padding.set=function(g){this._edgeInsets.equals(g)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,g,1),this._calcMatrices())},fi.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},ti.prototype.isPaddingEqual=function(c){return this._edgeInsets.equals(c)},ti.prototype.interpolatePadding=function(c,b,d){this._unmodified=!1,this._edgeInsets.interpolate(c,b,d),this._constrain(),this._calcMatrices()},ti.prototype.coveringZoomLevel=function(c){var b=(c.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/c.tileSize));return Math.max(0,b)},ti.prototype.getVisibleUnwrappedCoordinates=function(c){var b=[new a.UnwrappedTileID(0,c)];if(this._renderWorldCopies)for(var d=this.pointCoordinate(new a.Point(0,0)),w=this.pointCoordinate(new a.Point(this.width,0)),L=this.pointCoordinate(new a.Point(this.width,this.height)),R=this.pointCoordinate(new a.Point(0,this.height)),G=Math.floor(Math.min(d.x,w.x,L.x,R.x)),K=Math.floor(Math.max(d.x,w.x,L.x,R.x)),re=1,ue=G-re;ue<=K+re;ue++)ue!==0&&b.push(new a.UnwrappedTileID(ue,c));return b},ti.prototype.coveringTiles=function(c){var b=this.coveringZoomLevel(c),d=b;if(c.minzoom!==void 0&&bc.maxzoom&&(b=c.maxzoom);var w=a.MercatorCoordinate.fromLngLat(this.center),L=Math.pow(2,b),R=[L*w.x,L*w.y,0],G=so.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,b),K=c.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(K=b);var re=3,ue=function(Ar){return{aabb:new Cs([Ar*L,0,0],[(Ar+1)*L,L,0]),zoom:0,x:0,y:0,wrap:Ar,fullyVisible:!1}},be=[],xe=[],Re=b,Ye=c.reparseOverscaled?d:b;if(this._renderWorldCopies)for(var Ze=1;Ze<=3;Ze++)be.push(ue(-Ze)),be.push(ue(Ze));for(be.push(ue(0));be.length>0;){var Ue=be.pop(),Je=Ue.x,ht=Ue.y,Pt=Ue.fullyVisible;if(!Pt){var Nt=Ue.aabb.intersects(G);if(Nt===0)continue;Pt=Nt===2}var Jt=Ue.aabb.distanceX(R),er=Ue.aabb.distanceY(R),Zt=Math.max(Math.abs(Jt),Math.abs(er)),rr=re+(1<rr&&Ue.zoom>=K){xe.push({tileID:new a.OverscaledTileID(Ue.zoom===Re?Ye:Ue.zoom,Ue.wrap,Ue.zoom,Je,ht),distanceSq:a.sqrLen([R[0]-.5-Je,R[1]-.5-ht])});continue}for(var hr=0;hr<4;hr++){var br=(Je<<1)+hr%2,Er=(ht<<1)+(hr>>1);be.push({aabb:Ue.aabb.quadrant(hr),zoom:Ue.zoom+1,x:br,y:Er,wrap:Ue.wrap,fullyVisible:Pt})}}return xe.sort(function(Ar,Xr){return Ar.distanceSq-Xr.distanceSq}).map(function(Ar){return Ar.tileID})},ti.prototype.resize=function(c,b){this.width=c,this.height=b,this.pixelsToGLUnits=[2/c,-2/b],this._constrain(),this._calcMatrices()},fi.unmodified.get=function(){return this._unmodified},ti.prototype.zoomScale=function(c){return Math.pow(2,c)},ti.prototype.scaleZoom=function(c){return Math.log(c)/Math.LN2},ti.prototype.project=function(c){var b=a.clamp(c.lat,-this.maxValidLatitude,this.maxValidLatitude);return new a.Point(a.mercatorXfromLng(c.lng)*this.worldSize,a.mercatorYfromLat(b)*this.worldSize)},ti.prototype.unproject=function(c){return new a.MercatorCoordinate(c.x/this.worldSize,c.y/this.worldSize).toLngLat()},fi.point.get=function(){return this.project(this.center)},ti.prototype.setLocationAtPoint=function(c,b){var d=this.pointCoordinate(b),w=this.pointCoordinate(this.centerPoint),L=this.locationCoordinate(c),R=new a.MercatorCoordinate(L.x-(d.x-w.x),L.y-(d.y-w.y));this.center=this.coordinateLocation(R),this._renderWorldCopies&&(this.center=this.center.wrap())},ti.prototype.locationPoint=function(c){return this.coordinatePoint(this.locationCoordinate(c))},ti.prototype.pointLocation=function(c){return this.coordinateLocation(this.pointCoordinate(c))},ti.prototype.locationCoordinate=function(c){return a.MercatorCoordinate.fromLngLat(c)},ti.prototype.coordinateLocation=function(c){return c.toLngLat()},ti.prototype.pointCoordinate=function(c){var b=0,d=[c.x,c.y,0,1],w=[c.x,c.y,1,1];a.transformMat4(d,d,this.pixelMatrixInverse),a.transformMat4(w,w,this.pixelMatrixInverse);var L=d[3],R=w[3],G=d[0]/L,K=w[0]/R,re=d[1]/L,ue=w[1]/R,be=d[2]/L,xe=w[2]/R,Re=be===xe?0:(b-be)/(xe-be);return new a.MercatorCoordinate(a.number(G,K,Re)/this.worldSize,a.number(re,ue,Re)/this.worldSize)},ti.prototype.coordinatePoint=function(c){var b=[c.x*this.worldSize,c.y*this.worldSize,0,1];return a.transformMat4(b,b,this.pixelMatrix),new a.Point(b[0]/b[3],b[1]/b[3])},ti.prototype.getBounds=function(){return new a.LngLatBounds().extend(this.pointLocation(new a.Point(0,0))).extend(this.pointLocation(new a.Point(this.width,0))).extend(this.pointLocation(new a.Point(this.width,this.height))).extend(this.pointLocation(new a.Point(0,this.height)))},ti.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new a.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},ti.prototype.setMaxBounds=function(c){c?(this.lngRange=[c.getWest(),c.getEast()],this.latRange=[c.getSouth(),c.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},ti.prototype.calculatePosMatrix=function(c,b){b===void 0&&(b=!1);var d=c.key,w=b?this._alignedPosMatrixCache:this._posMatrixCache;if(w[d])return w[d];var L=c.canonical,R=this.worldSize/this.zoomScale(L.z),G=L.x+Math.pow(2,L.z)*c.wrap,K=a.identity(new Float64Array(16));return a.translate(K,K,[G*R,L.y*R,0]),a.scale(K,K,[R/a.EXTENT,R/a.EXTENT,1]),a.multiply(K,b?this.alignedProjMatrix:this.projMatrix,K),w[d]=new Float32Array(K),w[d]},ti.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},ti.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var c=-90,b=90,d=-180,w=180,L,R,G,K,re=this.size,ue=this._unmodified;if(this.latRange){var be=this.latRange;c=a.mercatorYfromLat(be[1])*this.worldSize,b=a.mercatorYfromLat(be[0])*this.worldSize,L=b-cb&&(K=b-Ue)}if(this.lngRange){var Je=Re.x,ht=re.x/2;Je-htw&&(G=w-ht)}(G!==void 0||K!==void 0)&&(this.center=this.unproject(new a.Point(G!==void 0?G:Re.x,K!==void 0?K:Re.y))),this._unmodified=ue,this._constraining=!1}},ti.prototype._calcMatrices=function(){if(this.height){var c=this._fov/2,b=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(c)*this.height;var d=Math.PI/2+this._pitch,w=this._fov*(.5+b.y/this.height),L=Math.sin(w)*this.cameraToCenterDistance/Math.sin(a.clamp(Math.PI-d-w,.01,Math.PI-.01)),R=this.point,G=R.x,K=R.y,re=Math.cos(Math.PI/2-this._pitch)*L+this.cameraToCenterDistance,ue=re*1.01,be=this.height/50,xe=new Float64Array(16);a.perspective(xe,this._fov,this.width/this.height,be,ue),xe[8]=-b.x*2/this.width,xe[9]=b.y*2/this.height,a.scale(xe,xe,[1,-1,1]),a.translate(xe,xe,[0,0,-this.cameraToCenterDistance]),a.rotateX(xe,xe,this._pitch),a.rotateZ(xe,xe,this.angle),a.translate(xe,xe,[-G,-K,0]),this.mercatorMatrix=a.scale([],xe,[this.worldSize,this.worldSize,this.worldSize]),a.scale(xe,xe,[1,1,a.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=xe,this.invProjMatrix=a.invert([],this.projMatrix);var Re=this.width%2/2,Ye=this.height%2/2,Ze=Math.cos(this.angle),Ue=Math.sin(this.angle),Je=G-Math.round(G)+Ze*Re+Ue*Ye,ht=K-Math.round(K)+Ze*Ye+Ue*Re,Pt=new Float64Array(xe);if(a.translate(Pt,Pt,[Je>.5?Je-1:Je,ht>.5?ht-1:ht,0]),this.alignedProjMatrix=Pt,xe=a.create(),a.scale(xe,xe,[this.width/2,-this.height/2,1]),a.translate(xe,xe,[1,-1,0]),this.labelPlaneMatrix=xe,xe=a.create(),a.scale(xe,xe,[1,-1,1]),a.translate(xe,xe,[-1,-1,0]),a.scale(xe,xe,[2/this.width,2/this.height,1]),this.glCoordMatrix=xe,this.pixelMatrix=a.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),xe=a.invert(new Float64Array(16),this.pixelMatrix),!xe)throw new Error("failed to invert matrix");this.pixelMatrixInverse=xe,this._posMatrixCache={},this._alignedPosMatrixCache={}}},ti.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var c=this.pointCoordinate(new a.Point(0,0)),b=[c.x*this.worldSize,c.y*this.worldSize,0,1],d=a.transformMat4(b,b,this.pixelMatrix);return d[3]/this.cameraToCenterDistance},ti.prototype.getCameraPoint=function(){var c=this._pitch,b=Math.tan(c)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.Point(0,b))},ti.prototype.getCameraQueryGeometry=function(c){var b=this.getCameraPoint();if(c.length===1)return[c[0],b];for(var d=b.x,w=b.y,L=b.x,R=b.y,G=0,K=c;G=3&&!c.some(function(d){return isNaN(d)})){var b=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(c[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:b,pitch:+(c[4]||0)}),!0}return!1},Fl.prototype._updateHashUnthrottled=function(){var c=a.window.location.href.replace(/(#.+)?$/,this.getHashString());try{a.window.history.replaceState(a.window.history.state,null,c)}catch(b){}};var rc={linearity:.3,easing:a.bezier(0,0,.3,1)},mf=a.extend({deceleration:2500,maxSpeed:1400},rc),ql=a.extend({deceleration:20,maxSpeed:1400},rc),Es=a.extend({deceleration:1e3,maxSpeed:360},rc),nh=a.extend({deceleration:1e3,maxSpeed:90},rc),yf=function(c){this._map=c,this.clear()};yf.prototype.clear=function(){this._inertiaBuffer=[]},yf.prototype.record=function(c){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:a.browser.now(),settings:c})},yf.prototype._drainInertiaBuffer=function(){for(var c=this._inertiaBuffer,b=a.browser.now(),d=160;c.length>0&&b-c[0].time>d;)c.shift()},yf.prototype._onMoveEnd=function(c){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var b={zoom:0,bearing:0,pitch:0,pan:new a.Point(0,0),pinchAround:void 0,around:void 0},d=0,w=this._inertiaBuffer;d=this._clickTolerance||this._map.fire(new M(c.type,this._map,c))},U.prototype.dblclick=function(c){return this._firePreventable(new M(c.type,this._map,c))},U.prototype.mouseover=function(c){this._map.fire(new M(c.type,this._map,c))},U.prototype.mouseout=function(c){this._map.fire(new M(c.type,this._map,c))},U.prototype.touchstart=function(c){return this._firePreventable(new P(c.type,this._map,c))},U.prototype.touchmove=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype.touchend=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype.touchcancel=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype._firePreventable=function(c){if(this._map.fire(c),c.defaultPrevented)return{}},U.prototype.isEnabled=function(){return!0},U.prototype.isActive=function(){return!1},U.prototype.enable=function(){},U.prototype.disable=function(){};var Z=function(c){this._map=c};Z.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Z.prototype.mousemove=function(c){this._map.fire(new M(c.type,this._map,c))},Z.prototype.mousedown=function(){this._delayContextMenu=!0},Z.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new M("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Z.prototype.contextmenu=function(c){this._delayContextMenu?this._contextMenuEvent=c:this._map.fire(new M(c.type,this._map,c)),this._map.listens("contextmenu")&&c.preventDefault()},Z.prototype.isEnabled=function(){return!0},Z.prototype.isActive=function(){return!1},Z.prototype.enable=function(){},Z.prototype.disable=function(){};var $=function(c,b){this._map=c,this._el=c.getCanvasContainer(),this._container=c.getContainer(),this._clickTolerance=b.clickTolerance||1};$.prototype.isEnabled=function(){return!!this._enabled},$.prototype.isActive=function(){return!!this._active},$.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},$.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},$.prototype.mousedown=function(c,b){this.isEnabled()&&c.shiftKey&&c.button===0&&(l.disableDrag(),this._startPos=this._lastPos=b,this._active=!0)},$.prototype.mousemoveWindow=function(c,b){if(this._active){var d=b;if(!(this._lastPos.equals(d)||!this._box&&d.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=c.timeStamp),d.length===this.numTouches&&(this.centroid=ae(b),this.touches=X(d,b)))},De.prototype.touchmove=function(c,b,d){if(!(this.aborted||!this.centroid)){var w=X(d,b);for(var L in this.touches){var R=this.touches[L],G=w[L];(!G||G.dist(R)>Pe)&&(this.aborted=!0)}}},De.prototype.touchend=function(c,b,d){if((!this.centroid||c.timeStamp-this.startTime>_e)&&(this.aborted=!0),d.length===0){var w=!this.aborted&&this.centroid;if(this.reset(),w)return w}};var Qe=function(c){this.singleTap=new De(c),this.numTaps=c.numTaps,this.reset()};Qe.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Qe.prototype.touchstart=function(c,b,d){this.singleTap.touchstart(c,b,d)},Qe.prototype.touchmove=function(c,b,d){this.singleTap.touchmove(c,b,d)},Qe.prototype.touchend=function(c,b,d){var w=this.singleTap.touchend(c,b,d);if(w){var L=c.timeStamp-this.lastTime0&&(this._active=!0);var w=X(d,b),L=new a.Point(0,0),R=new a.Point(0,0),G=0;for(var K in w){var re=w[K],ue=this._touches[K];ue&&(L._add(re),R._add(re.sub(ue)),G++,w[K]=re)}if(this._touches=w,!(GMath.abs(g.x)}var Xt=100,Jr=function(g){function c(){g.apply(this,arguments)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.reset=function(){g.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},c.prototype._start=function(d){this._lastPoints=d,ei(d[0].sub(d[1]))&&(this._valid=!1)},c.prototype._move=function(d,w,L){var R=d[0].sub(this._lastPoints[0]),G=d[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(R,G,L.timeStamp),!!this._valid){this._lastPoints=d,this._active=!0;var K=(R.y+G.y)/2,re=-.5;return{pitchDelta:K*re}}},c.prototype.gestureBeginsVertically=function(d,w,L){if(this._valid!==void 0)return this._valid;var R=2,G=d.mag()>=R,K=w.mag()>=R;if(!(!G&&!K)){if(!G||!K)return this._firstMove===void 0&&(this._firstMove=L),L-this._firstMove0==w.y>0;return ei(d)&&ei(w)&&re}},c}(ur),oa={panStep:100,bearingStep:15,pitchStep:10},sa=function(){var c=oa;this._panStep=c.panStep,this._bearingStep=c.bearingStep,this._pitchStep=c.pitchStep,this._rotationDisabled=!1};sa.prototype.reset=function(){this._active=!1},sa.prototype.keydown=function(c){var b=this;if(!(c.altKey||c.ctrlKey||c.metaKey)){var d=0,w=0,L=0,R=0,G=0;switch(c.keyCode){case 61:case 107:case 171:case 187:d=1;break;case 189:case 109:case 173:d=-1;break;case 37:c.shiftKey?w=-1:(c.preventDefault(),R=-1);break;case 39:c.shiftKey?w=1:(c.preventDefault(),R=1);break;case 38:c.shiftKey?L=1:(c.preventDefault(),G=-1);break;case 40:c.shiftKey?L=-1:(c.preventDefault(),G=1);break;default:return}return this._rotationDisabled&&(w=0,L=0),{cameraAnimation:function(K){var re=K.getZoom();K.easeTo({duration:300,easeId:"keyboardHandler",easing:Pi,zoom:d?Math.round(re)+d*(c.shiftKey?2:1):re,bearing:K.getBearing()+w*b._bearingStep,pitch:K.getPitch()+L*b._pitchStep,offset:[-R*b._panStep,-G*b._panStep],center:K.getCenter()},{originalEvent:c})}}}},sa.prototype.enable=function(){this._enabled=!0},sa.prototype.disable=function(){this._enabled=!1,this.reset()},sa.prototype.isEnabled=function(){return this._enabled},sa.prototype.isActive=function(){return this._active},sa.prototype.disableRotation=function(){this._rotationDisabled=!0},sa.prototype.enableRotation=function(){this._rotationDisabled=!1};function Pi(g){return g*(2-g)}var Hi=4.000244140625,tn=1/100,wi=1/450,wn=2,wr=function(c,b){this._map=c,this._el=c.getCanvasContainer(),this._handler=b,this._delta=0,this._defaultZoomRate=tn,this._wheelZoomRate=wi,a.bindAll(["_onTimeout"],this)};wr.prototype.setZoomRate=function(c){this._defaultZoomRate=c},wr.prototype.setWheelZoomRate=function(c){this._wheelZoomRate=c},wr.prototype.isEnabled=function(){return!!this._enabled},wr.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},wr.prototype.isZooming=function(){return!!this._zooming},wr.prototype.enable=function(c){this.isEnabled()||(this._enabled=!0,this._aroundCenter=c&&c.around==="center")},wr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},wr.prototype.wheel=function(c){if(this.isEnabled()){var b=c.deltaMode===a.window.WheelEvent.DOM_DELTA_LINE?c.deltaY*40:c.deltaY,d=a.browser.now(),w=d-(this._lastWheelEventTime||0);this._lastWheelEventTime=d,b!==0&&b%Hi===0?this._type="wheel":b!==0&&Math.abs(b)<4?this._type="trackpad":w>400?(this._type=null,this._lastValue=b,this._timeout=setTimeout(this._onTimeout,40,c)):this._type||(this._type=Math.abs(w*b)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,b+=this._lastValue)),c.shiftKey&&b&&(b=b/4),this._type&&(this._lastWheelEvent=c,this._delta-=b,this._active||this._start(c)),c.preventDefault()}},wr.prototype._onTimeout=function(c){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(c)},wr.prototype._start=function(c){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var b=l.mousePos(this._el,c);this._around=a.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(b)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},wr.prototype.renderFrame=function(){var c=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var b=this._map.transform;if(this._delta!==0){var d=this._type==="wheel"&&Math.abs(this._delta)>Hi?this._wheelZoomRate:this._defaultZoomRate,w=wn/(1+Math.exp(-Math.abs(this._delta*d)));this._delta<0&&w!==0&&(w=1/w);var L=typeof this._targetZoom=="number"?b.zoomScale(this._targetZoom):b.scale;this._targetZoom=Math.min(b.maxZoom,Math.max(b.minZoom,b.scaleZoom(L*w))),this._type==="wheel"&&(this._startZoom=b.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var R=typeof this._targetZoom=="number"?this._targetZoom:b.zoom,G=this._startZoom,K=this._easing,re=!1,ue;if(this._type==="wheel"&&G&&K){var be=Math.min((a.browser.now()-this._lastWheelEventTime)/200,1),xe=K(be);ue=a.number(G,R,xe),be<1?this._frameId||(this._frameId=!0):re=!0}else ue=R,re=!0;return this._active=!0,re&&(this._active=!1,this._finishTimeout=setTimeout(function(){c._zooming=!1,c._handler._triggerRenderFrame(),delete c._targetZoom,delete c._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!re,zoomDelta:ue-b.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},wr.prototype._smoothOutEasing=function(c){var b=a.ease;if(this._prevEase){var d=this._prevEase,w=(a.browser.now()-d.start)/d.duration,L=d.easing(w+.01)-d.easing(w),R=.27/Math.sqrt(L*L+1e-4)*.01,G=Math.sqrt(.27*.27-R*R);b=a.bezier(R,G,.25,1)}return this._prevEase={start:a.browser.now(),duration:c,easing:b},b},wr.prototype.reset=function(){this._active=!1};var Vr=function(c,b){this._clickZoom=c,this._tapZoom=b};Vr.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Vr.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Vr.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Vr.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Bi=function(){this.reset()};Bi.prototype.reset=function(){this._active=!1},Bi.prototype.dblclick=function(c,b){return c.preventDefault(),{cameraAnimation:function(d){d.easeTo({duration:300,zoom:d.getZoom()+(c.shiftKey?-1:1),around:d.unproject(b)},{originalEvent:c})}}},Bi.prototype.enable=function(){this._enabled=!0},Bi.prototype.disable=function(){this._enabled=!1,this.reset()},Bi.prototype.isEnabled=function(){return this._enabled},Bi.prototype.isActive=function(){return this._active};var Mi=function(){this._tap=new Qe({numTouches:1,numTaps:1}),this.reset()};Mi.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Mi.prototype.touchstart=function(c,b,d){this._swipePoint||(this._tapTime&&c.timeStamp-this._tapTime>ye&&this.reset(),this._tapTime?d.length>0&&(this._swipePoint=b[0],this._swipeTouch=d[0].identifier):this._tap.touchstart(c,b,d))},Mi.prototype.touchmove=function(c,b,d){if(!this._tapTime)this._tap.touchmove(c,b,d);else if(this._swipePoint){if(d[0].identifier!==this._swipeTouch)return;var w=b[0],L=w.y-this._swipePoint.y;return this._swipePoint=w,c.preventDefault(),this._active=!0,{zoomDelta:L/128}}},Mi.prototype.touchend=function(c,b,d){if(this._tapTime)this._swipePoint&&d.length===0&&this.reset();else{var w=this._tap.touchend(c,b,d);w&&(this._tapTime=c.timeStamp)}},Mi.prototype.touchcancel=function(){this.reset()},Mi.prototype.enable=function(){this._enabled=!0},Mi.prototype.disable=function(){this._enabled=!1,this.reset()},Mi.prototype.isEnabled=function(){return this._enabled},Mi.prototype.isActive=function(){return this._active};var lo=function(c,b,d){this._el=c,this._mousePan=b,this._touchPan=d};lo.prototype.enable=function(c){this._inertiaOptions=c||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},lo.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},lo.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},lo.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var In=function(c,b,d){this._pitchWithRotate=c.pitchWithRotate,this._mouseRotate=b,this._mousePitch=d};In.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},In.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},In.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},In.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var pn=function(c,b,d,w){this._el=c,this._touchZoom=b,this._touchRotate=d,this._tapDragZoom=w,this._rotationDisabled=!1,this._enabled=!0};pn.prototype.enable=function(c){this._touchZoom.enable(c),this._rotationDisabled||this._touchRotate.enable(c),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},pn.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},pn.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},pn.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},pn.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},pn.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var mi=function(g){return g.zoom||g.drag||g.pitch||g.rotate},jo=function(g){function c(){g.apply(this,arguments)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c}(a.Event);function uo(g){return g.panDelta&&g.panDelta.mag()||g.zoomDelta||g.bearingDelta||g.pitchDelta}var ci=function(c,b){this._map=c,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new yf(c),this._bearingSnap=b.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(b),a.bindAll(["handleEvent","handleWindowEvent"],this);var d=this._el;this._listeners=[[d,"touchstart",{passive:!0}],[d,"touchmove",{passive:!1}],[d,"touchend",void 0],[d,"touchcancel",void 0],[d,"mousedown",void 0],[d,"mousemove",void 0],[d,"mouseup",void 0],[a.window.document,"mousemove",{capture:!0}],[a.window.document,"mouseup",void 0],[d,"mouseover",void 0],[d,"mouseout",void 0],[d,"dblclick",void 0],[d,"click",void 0],[d,"keydown",{capture:!1}],[d,"keyup",void 0],[d,"wheel",{passive:!1}],[d,"contextmenu",void 0],[a.window,"blur",void 0]];for(var w=0,L=this._listeners;wG?Math.min(2,Jt):Math.max(.5,Jt),Ar=Math.pow(Er,1-hr),Xr=R.unproject(Pt.add(Nt.mult(hr*Ar)).mult(br));R.setLocationAtPoint(R.renderWorldCopies?Xr.wrap():Xr,Ue)}L._fireMoveEvents(w)},function(hr){L._afterEase(w,hr)},d),this},c.prototype._prepareEase=function(d,w,L){L===void 0&&(L={}),this._moving=!0,!w&&!L.moving&&this.fire(new a.Event("movestart",d)),this._zooming&&!L.zooming&&this.fire(new a.Event("zoomstart",d)),this._rotating&&!L.rotating&&this.fire(new a.Event("rotatestart",d)),this._pitching&&!L.pitching&&this.fire(new a.Event("pitchstart",d))},c.prototype._fireMoveEvents=function(d){this.fire(new a.Event("move",d)),this._zooming&&this.fire(new a.Event("zoom",d)),this._rotating&&this.fire(new a.Event("rotate",d)),this._pitching&&this.fire(new a.Event("pitch",d))},c.prototype._afterEase=function(d,w){if(!(this._easeId&&w&&this._easeId===w)){delete this._easeId;var L=this._zooming,R=this._rotating,G=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,L&&this.fire(new a.Event("zoomend",d)),R&&this.fire(new a.Event("rotateend",d)),G&&this.fire(new a.Event("pitchend",d)),this.fire(new a.Event("moveend",d))}},c.prototype.flyTo=function(d,w){var L=this;if(!d.essential&&a.browser.prefersReducedMotion){var R=a.pick(d,["center","zoom","bearing","pitch","around"]);return this.jumpTo(R,w)}this.stop(),d=a.extend({offset:[0,0],speed:1.2,curve:1.42,easing:a.ease},d);var G=this.transform,K=this.getZoom(),re=this.getBearing(),ue=this.getPitch(),be=this.getPadding(),xe="zoom"in d?a.clamp(+d.zoom,G.minZoom,G.maxZoom):K,Re="bearing"in d?this._normalizeBearing(d.bearing,re):re,Ye="pitch"in d?+d.pitch:ue,Ze="padding"in d?d.padding:G.padding,Ue=G.zoomScale(xe-K),Je=a.Point.convert(d.offset),ht=G.centerPoint.add(Je),Pt=G.pointLocation(ht),Nt=a.LngLat.convert(d.center||Pt);this._normalizeCenter(Nt);var Jt=G.project(Pt),er=G.project(Nt).sub(Jt),Zt=d.curve,rr=Math.max(G.width,G.height),hr=rr/Ue,br=er.mag();if("minZoom"in d){var Er=a.clamp(Math.min(d.minZoom,K,xe),G.minZoom,G.maxZoom),Ar=rr/G.zoomScale(Er-K);Zt=Math.sqrt(Ar/br*2)}var Xr=Zt*Zt;function Ra(na){var Ba=(hr*hr-rr*rr+(na?-1:1)*Xr*Xr*br*br)/(2*(na?hr:rr)*Xr*br);return Math.log(Math.sqrt(Ba*Ba+1)-Ba)}function xa(na){return(Math.exp(na)-Math.exp(-na))/2}function qr(na){return(Math.exp(na)+Math.exp(-na))/2}function Sa(na){return xa(na)/qr(na)}var ia=Ra(0),Ya=function(na){return qr(ia)/qr(ia+Zt*na)},Va=function(na){return rr*((qr(ia)*Sa(ia+Zt*na)-xa(ia))/Xr)/br},Si=(Ra(1)-ia)/Zt;if(Math.abs(br)<1e-6||!isFinite(Si)){if(Math.abs(rr-hr)<1e-6)return this.easeTo(d,w);var La=hrd.maxDuration&&(d.duration=0),this._zooming=!0,this._rotating=re!==Re,this._pitching=Ye!==ue,this._padding=!G.isPaddingEqual(Ze),this._prepareEase(w,!1),this._ease(function(na){var Ba=na*Si,rn=1/Ya(Ba);G.zoom=na===1?xe:K+G.scaleZoom(rn),L._rotating&&(G.bearing=a.number(re,Re,na)),L._pitching&&(G.pitch=a.number(ue,Ye,na)),L._padding&&(G.interpolatePadding(be,Ze,na),ht=G.centerPoint.add(Je));var Rn=na===1?Nt:G.unproject(Jt.add(er.mult(Va(Ba))).mult(rn));G.setLocationAtPoint(G.renderWorldCopies?Rn.wrap():Rn,ht),L._fireMoveEvents(w)},function(){return L._afterEase(w)},d),this},c.prototype.isEasing=function(){return!!this._easeFrameId},c.prototype.stop=function(){return this._stop()},c.prototype._stop=function(d,w){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var L=this._onEaseEnd;delete this._onEaseEnd,L.call(this,w)}if(!d){var R=this.handlers;R&&R.stop(!1)}return this},c.prototype._ease=function(d,w,L){L.animate===!1||L.duration===0?(d(1),w()):(this._easeStart=a.browser.now(),this._easeOptions=L,this._onEaseFrame=d,this._onEaseEnd=w,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},c.prototype._renderFrameCallback=function(){var d=Math.min((a.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(d)),d<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},c.prototype._normalizeBearing=function(d,w){d=a.wrap(d,-180,180);var L=Math.abs(d-w);return Math.abs(d-360-w)180?-360:L<-180?360:0}},c}(a.Evented),Aa=function(c){c===void 0&&(c={}),this.options=c,a.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Aa.prototype.getDefaultPosition=function(){return"bottom-right"},Aa.prototype.onAdd=function(c){var b=this.options&&this.options.compact;return this._map=c,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=l.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=l.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),b&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),b===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Aa.prototype.onRemove=function(){l.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Aa.prototype._setElementTitle=function(c,b){var d=this._map._getUIString("AttributionControl."+b);c.title=d,c.setAttribute("aria-label",d)},Aa.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Aa.prototype._updateEditLink=function(){var c=this._editLink;c||(c=this._editLink=this._container.querySelector(".mapbox-improve-map"));var b=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||a.config.ACCESS_TOKEN}];if(c){var d=b.reduce(function(w,L,R){return L.value&&(w+=L.key+"="+L.value+(R=0)return!1;return!0});var G=c.join(" | ");G!==this._attribHTML&&(this._attribHTML=G,c.length?(this._innerContainer.innerHTML=G,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Aa.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var ui=function(){a.bindAll(["_updateLogo"],this),a.bindAll(["_updateCompact"],this)};ui.prototype.onAdd=function(c){this._map=c,this._container=l.create("div","mapboxgl-ctrl");var b=l.create("a","mapboxgl-ctrl-logo");return b.target="_blank",b.rel="noopener nofollow",b.href="https://www.mapbox.com/",b.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),b.setAttribute("rel","noopener nofollow"),this._container.appendChild(b),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},ui.prototype.onRemove=function(){l.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},ui.prototype.getDefaultPosition=function(){return"bottom-left"},ui.prototype._updateLogo=function(c){(!c||c.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},ui.prototype._logoRequired=function(){if(this._map.style){var c=this._map.style.sourceCaches;for(var b in c){var d=c[b].getSource();if(d.mapbox_logo)return!0}return!1}},ui.prototype._updateCompact=function(){var c=this._container.children;if(c.length){var b=c[0];this._map.getCanvasContainer().offsetWidth<250?b.classList.add("mapboxgl-compact"):b.classList.remove("mapboxgl-compact")}};var Bl=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Bl.prototype.add=function(c){var b=++this._id,d=this._queue;return d.push({callback:c,id:b,cancelled:!1}),b},Bl.prototype.remove=function(c){for(var b=this._currentlyRunning,d=b?this._queue.concat(b):this._queue,w=0,L=d;wd.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(d.minPitch!=null&&d.maxPitch!=null&&d.minPitch>d.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(d.minPitch!=null&&d.minPitchxf)throw new Error("maxPitch must be less than or equal to "+xf);var L=new ti(d.minZoom,d.maxZoom,d.minPitch,d.maxPitch,d.renderWorldCopies);if(g.call(this,L,d),this._interactive=d.interactive,this._maxTileCacheSize=d.maxTileCacheSize,this._failIfMajorPerformanceCaveat=d.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=d.preserveDrawingBuffer,this._antialias=d.antialias,this._trackResize=d.trackResize,this._bearingSnap=d.bearingSnap,this._refreshExpiredTiles=d.refreshExpiredTiles,this._fadeDuration=d.fadeDuration,this._crossSourceCollisions=d.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=d.collectResourceTiming,this._renderTaskQueue=new Bl,this._controls=[],this._mapId=a.uniqueId(),this._locale=a.extend({},Hv,d.locale),this._clickTolerance=d.clickTolerance,this._requestManager=new a.RequestManager(d.transformRequest,d.accessToken),typeof d.container=="string"){if(this._container=a.window.document.getElementById(d.container),!this._container)throw new Error("Container '"+d.container+"' not found.")}else if(d.container instanceof ey)this._container=d.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(d.maxBounds&&this.setMaxBounds(d.maxBounds),a.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return w._update(!1)}),this.on("moveend",function(){return w._update(!1)}),this.on("zoom",function(){return w._update(!0)}),typeof a.window!="undefined"&&(a.window.addEventListener("online",this._onWindowOnline,!1),a.window.addEventListener("resize",this._onWindowResize,!1),a.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new ci(this,d);var R=typeof d.hash=="string"&&d.hash||void 0;this._hash=d.hash&&new Fl(R).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:d.center,zoom:d.zoom,bearing:d.bearing,pitch:d.pitch}),d.bounds&&(this.resize(),this.fitBounds(d.bounds,a.extend({},d.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=d.localIdeographFontFamily,d.style&&this.setStyle(d.style,{localIdeographFontFamily:d.localIdeographFontFamily}),d.attributionControl&&this.addControl(new Aa({customAttribution:d.customAttribution})),this.addControl(new ui,d.logoPosition),this.on("style.load",function(){w.transform.unmodified&&w.jumpTo(w.style.stylesheet)}),this.on("data",function(G){w._update(G.dataType==="style"),w.fire(new a.Event(G.dataType+"data",G))}),this.on("dataloading",function(G){w.fire(new a.Event(G.dataType+"dataloading",G))})}g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c;var b={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return c.prototype._getMapId=function(){return this._mapId},c.prototype.addControl=function(w,L){if(L===void 0&&(w.getDefaultPosition?L=w.getDefaultPosition():L="top-right"),!w||!w.onAdd)return this.fire(new a.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var R=w.onAdd(this);this._controls.push(w);var G=this._controlPositions[L];return L.indexOf("bottom")!==-1?G.insertBefore(R,G.firstChild):G.appendChild(R),this},c.prototype.removeControl=function(w){if(!w||!w.onRemove)return this.fire(new a.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var L=this._controls.indexOf(w);return L>-1&&this._controls.splice(L,1),w.onRemove(this),this},c.prototype.hasControl=function(w){return this._controls.indexOf(w)>-1},c.prototype.resize=function(w){var L=this._containerDimensions(),R=L[0],G=L[1];this._resizeCanvas(R,G),this.transform.resize(R,G),this.painter.resize(R,G);var K=!this._moving;return K&&(this.stop(),this.fire(new a.Event("movestart",w)).fire(new a.Event("move",w))),this.fire(new a.Event("resize",w)),K&&this.fire(new a.Event("moveend",w)),this},c.prototype.getBounds=function(){return this.transform.getBounds()},c.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},c.prototype.setMaxBounds=function(w){return this.transform.setMaxBounds(a.LngLatBounds.convert(w)),this._update()},c.prototype.setMinZoom=function(w){if(w=w==null?oh:w,w>=oh&&w<=this.transform.maxZoom)return this.transform.minZoom=w,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=w,this._update(),this.getZoom()>w&&this.setZoom(w),this;throw new Error("maxZoom must be greater than the current minZoom")},c.prototype.getMaxZoom=function(){return this.transform.maxZoom},c.prototype.setMinPitch=function(w){if(w=w==null?Lo:w,w=Lo&&w<=this.transform.maxPitch)return this.transform.minPitch=w,this._update(),this.getPitch()xf)throw new Error("maxPitch must be less than or equal to "+xf);if(w>=this.transform.minPitch)return this.transform.maxPitch=w,this._update(),this.getPitch()>w&&this.setPitch(w),this;throw new Error("maxPitch must be greater than the current minPitch")},c.prototype.getMaxPitch=function(){return this.transform.maxPitch},c.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},c.prototype.setRenderWorldCopies=function(w){return this.transform.renderWorldCopies=w,this._update()},c.prototype.project=function(w){return this.transform.locationPoint(a.LngLat.convert(w))},c.prototype.unproject=function(w){return this.transform.pointLocation(a.Point.convert(w))},c.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},c.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},c.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},c.prototype._createDelegatedListener=function(w,L,R){var G=this,K;if(w==="mouseenter"||w==="mouseover"){var re=!1,ue=function(Ue){var Je=G.getLayer(L)?G.queryRenderedFeatures(Ue.point,{layers:[L]}):[];Je.length?re||(re=!0,R.call(G,new M(w,G,Ue.originalEvent,{features:Je}))):re=!1},be=function(){re=!1};return{layer:L,listener:R,delegates:{mousemove:ue,mouseout:be}}}else if(w==="mouseleave"||w==="mouseout"){var xe=!1,Re=function(Ue){var Je=G.getLayer(L)?G.queryRenderedFeatures(Ue.point,{layers:[L]}):[];Je.length?xe=!0:xe&&(xe=!1,R.call(G,new M(w,G,Ue.originalEvent)))},Ye=function(Ue){xe&&(xe=!1,R.call(G,new M(w,G,Ue.originalEvent)))};return{layer:L,listener:R,delegates:{mousemove:Re,mouseout:Ye}}}else{var Ze=function(Ue){var Je=G.getLayer(L)?G.queryRenderedFeatures(Ue.point,{layers:[L]}):[];Je.length&&(Ue.features=Je,R.call(G,Ue),delete Ue.features)};return{layer:L,listener:R,delegates:(K={},K[w]=Ze,K)}}},c.prototype.on=function(w,L,R){if(R===void 0)return g.prototype.on.call(this,w,L);var G=this._createDelegatedListener(w,L,R);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[w]=this._delegatedListeners[w]||[],this._delegatedListeners[w].push(G);for(var K in G.delegates)this.on(K,G.delegates[K]);return this},c.prototype.once=function(w,L,R){if(R===void 0)return g.prototype.once.call(this,w,L);var G=this._createDelegatedListener(w,L,R);for(var K in G.delegates)this.once(K,G.delegates[K]);return this},c.prototype.off=function(w,L,R){var G=this;if(R===void 0)return g.prototype.off.call(this,w,L);var K=function(re){for(var ue=re[w],be=0;be180;){var R=b.locationPoint(g);if(R.x>=0&&R.y>=0&&R.x<=b.width&&R.y<=b.height)break;g.lng>b.center.lng?g.lng-=360:g.lng+=360}return g}var Zv={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Fp(g,c,b){var d=g.classList;for(var w in Zv)d.remove("mapboxgl-"+b+"-anchor-"+w);d.add("mapboxgl-"+b+"-anchor-"+c)}var lh=function(g){function c(b,d){if(g.call(this),(b instanceof a.window.HTMLElement||d)&&(b=a.extend({element:b},d)),a.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=b&&b.anchor||"center",this._color=b&&b.color||"#3FB1CE",this._scale=b&&b.scale||1,this._draggable=b&&b.draggable||!1,this._clickTolerance=b&&b.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=b&&b.rotation||0,this._rotationAlignment=b&&b.rotationAlignment||"auto",this._pitchAlignment=b&&b.pitchAlignment&&b.pitchAlignment!=="auto"?b.pitchAlignment:this._rotationAlignment,!b||!b.element){this._defaultMarker=!0,this._element=l.create("div"),this._element.setAttribute("aria-label","Map marker");var w=l.createNS("http://www.w3.org/2000/svg","svg"),L=41,R=27;w.setAttributeNS(null,"display","block"),w.setAttributeNS(null,"height",L+"px"),w.setAttributeNS(null,"width",R+"px"),w.setAttributeNS(null,"viewBox","0 0 "+R+" "+L);var G=l.createNS("http://www.w3.org/2000/svg","g");G.setAttributeNS(null,"stroke","none"),G.setAttributeNS(null,"stroke-width","1"),G.setAttributeNS(null,"fill","none"),G.setAttributeNS(null,"fill-rule","evenodd");var K=l.createNS("http://www.w3.org/2000/svg","g");K.setAttributeNS(null,"fill-rule","nonzero");var re=l.createNS("http://www.w3.org/2000/svg","g");re.setAttributeNS(null,"transform","translate(3.0, 29.0)"),re.setAttributeNS(null,"fill","#000000");for(var ue=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],be=0,xe=ue;be=w}this._isDragging&&(this._pos=d.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.Event("dragstart"))),this.fire(new a.Event("drag")))},c.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.Event("dragend")),this._state="inactive"},c.prototype._addDragHandler=function(d){this._element.contains(d.originalEvent.target)&&(d.preventDefault(),this._positionDelta=d.point.sub(this._pos).add(this._offset),this._pointerdownPos=d.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},c.prototype.setDraggable=function(d){return this._draggable=!!d,this._map&&(d?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},c.prototype.isDraggable=function(){return this._draggable},c.prototype.setRotation=function(d){return this._rotation=d||0,this._update(),this},c.prototype.getRotation=function(){return this._rotation},c.prototype.setRotationAlignment=function(d){return this._rotationAlignment=d||"auto",this._update(),this},c.prototype.getRotationAlignment=function(){return this._rotationAlignment},c.prototype.setPitchAlignment=function(d){return this._pitchAlignment=d&&d!=="auto"?d:this._rotationAlignment,this._update(),this},c.prototype.getPitchAlignment=function(){return this._pitchAlignment},c}(a.Evented),ay={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},bf;function Yv(g){bf!==void 0?g(bf):a.window.navigator.permissions!==void 0?a.window.navigator.permissions.query({name:"geolocation"}).then(function(c){bf=c.state!=="denied",g(bf)}):(bf=!!a.window.navigator.geolocation,g(bf))}var uh=0,ic=!1,y1=function(g){function c(b){g.call(this),this.options=a.extend({},ay,b),a.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.onAdd=function(d){return this._map=d,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),Yv(this._setupUI),this._container},c.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),l.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,uh=0,ic=!1},c.prototype._isOutOfMapMaxBounds=function(d){var w=this._map.getMaxBounds(),L=d.coords;return w&&(L.longitudew.getEast()||L.latitudew.getNorth())},c.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},c.prototype._onSuccess=function(d){if(this._map){if(this._isOutOfMapMaxBounds(d)){this._setErrorState(),this.fire(new a.Event("outofmaxbounds",d)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=d,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(d),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(d),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("geolocate",d)),this._finish()}},c.prototype._updateCamera=function(d){var w=new a.LngLat(d.coords.longitude,d.coords.latitude),L=d.coords.accuracy,R=this._map.getBearing(),G=a.extend({bearing:R},this.options.fitBoundsOptions);this._map.fitBounds(w.toBounds(L),G,{geolocateSource:!0})},c.prototype._updateMarker=function(d){if(d){var w=new a.LngLat(d.coords.longitude,d.coords.latitude);this._accuracyCircleMarker.setLngLat(w).addTo(this._map),this._userLocationDotMarker.setLngLat(w).addTo(this._map),this._accuracy=d.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},c.prototype._updateCircleRadius=function(){var d=this._map._container.clientHeight/2,w=this._map.unproject([0,d]),L=this._map.unproject([1,d]),R=w.distanceTo(L),G=Math.ceil(2*this._accuracy/R);this._circleElement.style.width=G+"px",this._circleElement.style.height=G+"px"},c.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},c.prototype._onError=function(d){if(this._map){if(this.options.trackUserLocation)if(d.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var w=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=w,this._geolocateButton.setAttribute("aria-label",w),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(d.code===3&&ic)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("error",d)),this._finish()}},c.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},c.prototype._setupUI=function(d){var w=this;if(this._container.addEventListener("contextmenu",function(G){return G.preventDefault()}),this._geolocateButton=l.create("button","mapboxgl-ctrl-geolocate",this._container),l.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",d===!1){a.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var L=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=L,this._geolocateButton.setAttribute("aria-label",L)}else{var R=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=R,this._geolocateButton.setAttribute("aria-label",R)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=l.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new lh(this._dotElement),this._circleElement=l.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new lh({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(G){var K=G.originalEvent&&G.originalEvent.type==="resize";!G.geolocateSource&&w._watchState==="ACTIVE_LOCK"&&!K&&(w._watchState="BACKGROUND",w._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),w._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),w.fire(new a.Event("trackuserlocationend")))})},c.prototype.trigger=function(){if(!this._setup)return a.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":uh--,ic=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new a.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),uh++;var d;uh>1?(d={maximumAge:6e5,timeout:0},ic=!0):(d=this.options.positionOptions,ic=!1),this._geolocationWatchID=a.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,d)}}else a.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},c.prototype._clearWatch=function(){a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},c}(a.Evented),iy={maxWidth:100,unit:"metric"},nc=function(c){this.options=a.extend({},iy,c),a.bindAll(["_onMove","setUnit"],this)};nc.prototype.getDefaultPosition=function(){return"bottom-left"},nc.prototype._onMove=function(){ny(this._map,this._container,this.options)},nc.prototype.onAdd=function(c){return this._map=c,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",c.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},nc.prototype.onRemove=function(){l.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},nc.prototype.setUnit=function(c){this.options.unit=c,ny(this._map,this._container,this.options)};function ny(g,c,b){var d=b&&b.maxWidth||100,w=g._container.clientHeight/2,L=g.unproject([0,w]),R=g.unproject([d,w]),G=L.distanceTo(R);if(b&&b.unit==="imperial"){var K=3.2808*G;if(K>5280){var re=K/5280;fh(c,d,re,g._getUIString("ScaleControl.Miles"))}else fh(c,d,K,g._getUIString("ScaleControl.Feet"))}else if(b&&b.unit==="nautical"){var ue=G/1852;fh(c,d,ue,g._getUIString("ScaleControl.NauticalMiles"))}else G>=1e3?fh(c,d,G/1e3,g._getUIString("ScaleControl.Kilometers")):fh(c,d,G,g._getUIString("ScaleControl.Meters"))}function fh(g,c,b,d){var w=_1(b),L=w/b;g.style.width=c*L+"px",g.innerHTML=w+" "+d}function g1(g){var c=Math.pow(10,Math.ceil(-Math.log(g)/Math.LN10));return Math.round(g*c)/c}function _1(g){var c=Math.pow(10,(""+Math.floor(g)).length-1),b=g/c;return b=b>=10?10:b>=5?5:b>=3?3:b>=2?2:b>=1?1:g1(b),c*b}var Qs=function(c){this._fullscreen=!1,c&&c.container&&(c.container instanceof a.window.HTMLElement?this._container=c.container:a.warnOnce("Full screen control 'container' must be a DOM element.")),a.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in a.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in a.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in a.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in a.window.document&&(this._fullscreenchange="MSFullscreenChange")};Qs.prototype.onAdd=function(c){return this._map=c,this._container||(this._container=this._map.getContainer()),this._controlContainer=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",a.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Qs.prototype.onRemove=function(){l.remove(this._controlContainer),this._map=null,a.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Qs.prototype._checkFullscreenSupport=function(){return!!(a.window.document.fullscreenEnabled||a.window.document.mozFullScreenEnabled||a.window.document.msFullscreenEnabled||a.window.document.webkitFullscreenEnabled)},Qs.prototype._setupUI=function(){var c=this._fullscreenButton=l.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);l.create("span","mapboxgl-ctrl-icon",c).setAttribute("aria-hidden",!0),c.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),a.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Qs.prototype._updateTitle=function(){var c=this._getTitle();this._fullscreenButton.setAttribute("aria-label",c),this._fullscreenButton.title=c},Qs.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Qs.prototype._isFullscreen=function(){return this._fullscreen},Qs.prototype._changeIcon=function(){var c=a.window.document.fullscreenElement||a.window.document.mozFullScreenElement||a.window.document.webkitFullscreenElement||a.window.document.msFullscreenElement;c===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Qs.prototype._onClickFullscreen=function(){this._isFullscreen()?a.window.document.exitFullscreen?a.window.document.exitFullscreen():a.window.document.mozCancelFullScreen?a.window.document.mozCancelFullScreen():a.window.document.msExitFullscreen?a.window.document.msExitFullscreen():a.window.document.webkitCancelFullScreen&&a.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var x1={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},b1=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),s3=function(g){function c(b){g.call(this),this.options=a.extend(Object.create(x1),b),a.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.addTo=function(d){return this._map&&this.remove(),this._map=d,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new a.Event("open")),this},c.prototype.isOpen=function(){return!!this._map},c.prototype.remove=function(){return this._content&&l.remove(this._content),this._container&&(l.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new a.Event("close")),this},c.prototype.getLngLat=function(){return this._lngLat},c.prototype.setLngLat=function(d){return this._lngLat=a.LngLat.convert(d),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},c.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},c.prototype.getElement=function(){return this._container},c.prototype.setText=function(d){return this.setDOMContent(a.window.document.createTextNode(d))},c.prototype.setHTML=function(d){var w=a.window.document.createDocumentFragment(),L=a.window.document.createElement("body"),R;for(L.innerHTML=d;R=L.firstChild,!!R;)w.appendChild(R);return this.setDOMContent(w)},c.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},c.prototype.setMaxWidth=function(d){return this.options.maxWidth=d,this._update(),this},c.prototype.setDOMContent=function(d){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=l.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(d),this._createCloseButton(),this._update(),this._focusFirstElement(),this},c.prototype.addClassName=function(d){this._container&&this._container.classList.add(d)},c.prototype.removeClassName=function(d){this._container&&this._container.classList.remove(d)},c.prototype.setOffset=function(d){return this.options.offset=d,this._update(),this},c.prototype.toggleClassName=function(d){if(this._container)return this._container.classList.toggle(d)},c.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=l.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},c.prototype._onMouseUp=function(d){this._update(d.point)},c.prototype._onMouseMove=function(d){this._update(d.point)},c.prototype._onDrag=function(d){this._update(d.point)},c.prototype._update=function(d){var w=this,L=this._lngLat||this._trackPointer;if(!(!this._map||!L||!this._content)&&(this._container||(this._container=l.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=l.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Re){return w._container.classList.add(Re)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Su(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!d))){var R=this._pos=this._trackPointer&&d?d:this._map.project(this._lngLat),G=this.options.anchor,K=w1(this.options.offset);if(!G){var re=this._container.offsetWidth,ue=this._container.offsetHeight,be;R.y+K.bottom.ythis._map.transform.height-ue?be=["bottom"]:be=[],R.xthis._map.transform.width-re/2&&be.push("right"),be.length===0?G="bottom":G=be.join("-")}var xe=R.add(K[G]).round();l.setTransform(this._container,Zv[G]+" translate("+xe.x+"px,"+xe.y+"px)"),Fp(this._container,G,"popup")}},c.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var d=this._container.querySelector(b1);d&&d.focus()}},c.prototype._onClose=function(){this.remove()},c}(a.Evented);function w1(g){if(g)if(typeof g=="number"){var c=Math.round(Math.sqrt(.5*Math.pow(g,2)));return{center:new a.Point(0,0),top:new a.Point(0,g),"top-left":new a.Point(c,c),"top-right":new a.Point(-c,c),bottom:new a.Point(0,-g),"bottom-left":new a.Point(c,-c),"bottom-right":new a.Point(-c,-c),left:new a.Point(g,0),right:new a.Point(-g,0)}}else if(g instanceof a.Point||Array.isArray(g)){var b=a.Point.convert(g);return{center:b,top:b,"top-left":b,"top-right":b,bottom:b,"bottom-left":b,"bottom-right":b,left:b,right:b}}else return{center:a.Point.convert(g.center||[0,0]),top:a.Point.convert(g.top||[0,0]),"top-left":a.Point.convert(g["top-left"]||[0,0]),"top-right":a.Point.convert(g["top-right"]||[0,0]),bottom:a.Point.convert(g.bottom||[0,0]),"bottom-left":a.Point.convert(g["bottom-left"]||[0,0]),"bottom-right":a.Point.convert(g["bottom-right"]||[0,0]),left:a.Point.convert(g.left||[0,0]),right:a.Point.convert(g.right||[0,0])};else return w1(new a.Point(0,0))}var Tn={version:a.version,supported:s,setRTLTextPlugin:a.setRTLTextPlugin,getRTLTextPluginStatus:a.getRTLTextPluginStatus,Map:ry,NavigationControl:Mu,GeolocateControl:y1,AttributionControl:Aa,ScaleControl:nc,FullscreenControl:Qs,Popup:s3,Marker:lh,Style:ws,LngLat:a.LngLat,LngLatBounds:a.LngLatBounds,Point:a.Point,MercatorCoordinate:a.MercatorCoordinate,Evented:a.Evented,config:a.config,prewarm:Br,clearPrewarmedResources:ca,get accessToken(){return a.config.ACCESS_TOKEN},set accessToken(g){a.config.ACCESS_TOKEN=g},get baseApiUrl(){return a.config.API_URL},set baseApiUrl(g){a.config.API_URL=g},get workerCount(){return $t.workerCount},set workerCount(g){$t.workerCount=g},get maxParallelImageRequests(){return a.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(g){a.config.MAX_PARALLEL_IMAGE_REQUESTS=g},clearStorage:function(c){a.clearTileCache(c)},workerUrl:""};return Tn}),r})});var bH=me((hbe,xH)=>{xH.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var Ob=me(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});var Zs=63710088e-1,yA={centimeters:Zs*100,centimetres:Zs*100,degrees:360/(2*Math.PI),feet:Zs*3.28084,inches:Zs*39.37,kilometers:Zs/1e3,kilometres:Zs/1e3,meters:Zs,metres:Zs,miles:Zs/1609.344,millimeters:Zs*1e3,millimetres:Zs*1e3,nauticalmiles:Zs/1852,radians:1,yards:Zs*1.0936},mA={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function tv(e,t,r={}){let i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function Tde(e,t,r={}){switch(e){case"Point":return gA(t).geometry;case"LineString":return xA(t).geometry;case"Polygon":return _A(t).geometry;case"MultiPoint":return TH(t).geometry;case"MultiLineString":return wH(t).geometry;case"MultiPolygon":return AH(t).geometry;default:throw new Error(e+" is invalid")}}function gA(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Nb(e[0])||!Nb(e[1]))throw new Error("coordinates must contain numbers");return tv({type:"Point",coordinates:e},t,r)}function Ade(e,t,r={}){return Bb(e.map(i=>gA(i,t)),r)}function _A(e,t,r={}){for(let a of e){if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(a[a.length-1].length!==a[0].length)throw new Error("First and last Position are not equivalent.");for(let s=0;s_A(i,t)),r)}function xA(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return tv({type:"LineString",coordinates:e},t,r)}function Sde(e,t,r={}){return Bb(e.map(i=>xA(i,t)),r)}function Bb(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function wH(e,t,r={}){return tv({type:"MultiLineString",coordinates:e},t,r)}function TH(e,t,r={}){return tv({type:"MultiPoint",coordinates:e},t,r)}function AH(e,t,r={}){return tv({type:"MultiPolygon",coordinates:e},t,r)}function kde(e,t,r={}){return tv({type:"GeometryCollection",geometries:e},t,r)}function Cde(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function MH(e,t="kilometers"){let r=yA[t];if(!r)throw new Error(t+" units is invalid");return e*r}function bA(e,t="kilometers"){let r=yA[t];if(!r)throw new Error(t+" units is invalid");return e/r}function Ede(e,t){return SH(bA(e,t))}function Lde(e){let t=e%360;return t<0&&(t+=360),t}function Dde(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function SH(e){return e%(2*Math.PI)*180/Math.PI}function Pde(e){return e%360*Math.PI/180}function zde(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return MH(bA(e,t),r)}function Ide(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let i=mA[t];if(!i)throw new Error("invalid original units");let a=mA[r];if(!a)throw new Error("invalid final units");return e/i*a}function Nb(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Rde(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Fde(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!Nb(t))throw new Error("bbox must only contain numbers")})}function qde(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}Ci.areaFactors=mA;Ci.azimuthToBearing=Dde;Ci.bearingToAzimuth=Lde;Ci.convertArea=Ide;Ci.convertLength=zde;Ci.degreesToRadians=Pde;Ci.earthRadius=Zs;Ci.factors=yA;Ci.feature=tv;Ci.featureCollection=Bb;Ci.geometry=Tde;Ci.geometryCollection=kde;Ci.isNumber=Nb;Ci.isObject=Rde;Ci.lengthToDegrees=Ede;Ci.lengthToRadians=bA;Ci.lineString=xA;Ci.lineStrings=Sde;Ci.multiLineString=wH;Ci.multiPoint=TH;Ci.multiPolygon=AH;Ci.point=gA;Ci.points=Ade;Ci.polygon=_A;Ci.polygons=Mde;Ci.radiansToDegrees=SH;Ci.radiansToLength=MH;Ci.round=Cde;Ci.validateBBox=Fde;Ci.validateId=qde});var Vb=me(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});var ls=Ob();function c1(e,t,r){if(e!==null)for(var i,a,s,l,f,h,v,m=0,_=0,T,S=e.type,C=S==="FeatureCollection",D=S==="Feature",E=C?e.features.length:1,I=0;Ih||C>v||D>m){f=_,h=i,v=C,m=D,s=0;return}var E=ls.lineString.call(void 0,[f,_],r.properties);if(t(E,i,a,D,s)===!1)return!1;s++,f=_})===!1)return!1}}})}function Gde(e,t,r){var i=r,a=!1;return EH(e,function(s,l,f,h,v){a===!1&&r===void 0?i=s:i=t(i,s,l,f,h,v),a=!0}),i}function LH(e,t){if(!e)throw new Error("geojson is required");Ub(e,function(r,i,a){if(r.geometry!==null){var s=r.geometry.type,l=r.geometry.coordinates;switch(s){case"LineString":if(t(r,i,a,0,0)===!1)return!1;break;case"Polygon":for(var f=0;f{"use strict";Object.defineProperty(Hb,"__esModule",{value:!0});var DH=Ob(),Xde=Vb();function IH(e){return Xde.geomReduce.call(void 0,e,(t,r)=>t+jde(r),0)}function jde(e){let t=0,r;switch(e.type){case"Polygon":return PH(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(zH(e[0]));for(let r=1;r=t?(i+2)%t:i+2],f=a[0]*TA,h=s[1]*TA,v=l[0]*TA;r+=(v-f)*Math.sin(h),i++}return r*Jde}var Kde=IH;Hb.area=IH;Hb.default=Kde});var qH=me(Gb=>{"use strict";Object.defineProperty(Gb,"__esModule",{value:!0});var Qde=Ob(),$de=Vb();function FH(e,t={}){let r=0,i=0,a=0;return $de.coordEach.call(void 0,e,function(s){r+=s[0],i+=s[1],a++},!0),Qde.point.call(void 0,[r/a,i/a],t.properties)}var epe=FH;Gb.centroid=FH;Gb.default=epe});var BH=me(Zb=>{"use strict";Object.defineProperty(Zb,"__esModule",{value:!0});var tpe=Vb();function NH(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return tpe.coordEach.call(void 0,e,i=>{r[0]>i[0]&&(r[0]=i[0]),r[1]>i[1]&&(r[1]=i[1]),r[2]{"use strict";var ape=Ja(),VH=bH(),{area:ipe}=RH(),{centroid:npe}=qH(),{bbox:ope}=BH(),OH=y_(),bm=Th(),spe=cc(),lpe=wy(),Yb=lx(),UH=Object.keys(VH),upe={"ISO-3":OH,"USA-states":OH,"country names":fpe};function fpe(e){for(var t=0;t0&&m[_+1][0]<0)return _;return null}switch(i==="RUS"||i==="FJI"?s=function(m){var _;if(v(m)===null)_=m;else for(_=new Array(m.length),h=0;h_?T[S++]=[m[h][0]+360,m[h][1]]:h===_?(T[S++]=m[h],T[S++]=[m[h][0],-90]):T[S++]=m[h];var C=Yb.tester(T);C.pts.pop(),a.push(C)}:s=function(m){a.push(Yb.tester(m))},t.type){case"MultiPolygon":for(l=0;l0?C.properties.ct=dpe(C):C.properties.ct=[NaN,NaN],T.fIn=m,T.fOut=C,a.push(C)}else bm.log(["Location",T.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete i[_]}switch(r.type){case"FeatureCollection":var h=r.features;for(s=0;sa&&(a=f,r=l)}else r=t;return npe(r).geometry.coordinates}function ppe(e){var t=window.PlotlyGeoAssets||{},r=[];function i(h){return new Promise(function(v,m){ape.json(h,function(_,T){if(_){delete t[h];var S=_.status===404?'GeoJSON at URL "'+h+'" does not exist.':"Unexpected error while fetching from "+h;return m(new Error(S))}return t[h]=T,v(T)})})}function a(h){return new Promise(function(v,m){var _=0,T=setInterval(function(){if(t[h]&&t[h]!=="pending")return clearInterval(T),v(t[h]);if(_>100)return clearInterval(T),m("Unexpected error while fetching from "+h);_++},50)})}for(var s=0;s{"use strict";var Gd=Bt(),ype=co().sanitizeHTML,gpe=uA(),ZH=zc();function YH(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=ZH.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var fu=YH.prototype;fu.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=Wb(t)};fu.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};fu.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};fu.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};fu.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};fu.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};fu.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!Wb(e)){var r=_pe(e);t.addSource(this.idSource,r)}};fu.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function WH(e){var t={},r={};switch(e.type){case"circle":Gd.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":Gd.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":Gd.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,a=gpe(i.textposition,i.iconsize);Gd.extendFlat(t,{"icon-image":i.icon+"-15","icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":a.anchor,"text-offset":a.offset,"symbol-placement":i.placement}),Gd.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":Gd.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function _pe(e){var t=e.sourcetype,r=e.source,i={type:t},a;return t==="geojson"?a="data":t==="vector"?a=typeof r=="string"?"url":"tiles":t==="raster"?(a="tiles",i.tileSize=256):t==="image"&&(a="url",i.coordinates=e.coordinates),i[a]=r,e.sourceattribution&&(i.attribution=ype(e.sourceattribution)),i}XH.exports=function(t,r,i){var a=new YH(t,r);return a.update(i),a}});var iG=me((xbe,aG)=>{"use strict";var MA=pA(),SA=Bt(),$H=AA(),JH=la(),xpe=Xi(),bpe=jl(),Xb=Rf(),eG=kd(),wpe=eG.drawMode,Tpe=eG.selectMode,Ape=Nf().prepSelect,Mpe=Nf().clearOutline,Spe=Nf().clearSelectionsCache,kpe=Nf().selectOnClick,rv=zc(),Cpe=jH();function tG(e,t){this.id=t,this.gd=e;var r=e._fullLayout,i=e._context;this.container=r._glcontainer.node(),this.isStatic=i.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Vn=tG.prototype;Vn.plot=function(e,t,r){var i=this,a=t[i.id];i.map&&a.accesstoken!==i.accessToken&&(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]);var s;i.map?s=new Promise(function(l,f){i.updateMap(e,t,l,f)}):s=new Promise(function(l,f){i.createMap(e,t,l,f)}),r.push(s)};Vn.createMap=function(e,t,r,i){var a=this,s=t[a.id],l=a.styleObj=rG(s.style,t);a.accessToken=s.accesstoken;var f=s.bounds,h=f?[[f.west,f.south],[f.east,f.north]]:null,v=a.map=new MA.Map({container:a.div,style:l.style,center:kA(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,maxBounds:h,interactive:!a.isStatic,preserveDrawingBuffer:a.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new MA.AttributionControl({compact:!0}));v._canvas.style.left="0px",v._canvas.style.top="0px",a.rejectOnError(i),a.isStatic||a.initFx(e,t);var m=[];m.push(new Promise(function(_){v.once("load",_)})),m=m.concat($H.fetchTraceGeoData(e)),Promise.all(m).then(function(){a.fillBelowLookup(e,t),a.updateData(e),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};Vn.updateMap=function(e,t,r,i){var a=this,s=a.map,l=t[this.id];a.rejectOnError(i);var f=[],h=rG(l.style,t);JSON.stringify(a.styleObj)!==JSON.stringify(h)&&(a.styleObj=h,s.setStyle(h.style),a.traceHash={},f.push(new Promise(function(v){s.once("styledata",v)}))),f=f.concat($H.fetchTraceGeoData(e)),Promise.all(f).then(function(){a.fillBelowLookup(e,t),a.updateData(e),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};Vn.fillBelowLookup=function(e,t){var r=t[this.id],i=r.layers,a,s,l=this.belowLookup={},f=!1;for(a=0;a1)for(a=0;a-1&&kpe(h.originalEvent,i,[r.xaxis],[r.yaxis],r.id,f),v.indexOf("event")>-1&&Xb.click(i,h.originalEvent)}}};Vn.updateFx=function(e){var t=this,r=t.map,i=t.gd;if(t.isStatic)return;function a(h){var v=t.map.unproject(h);return[v.lng,v.lat]}var s=e.dragmode,l;l=function(h,v){if(v.isRect){var m=h.range={};m[t.id]=[a([v.xmin,v.ymin]),a([v.xmax,v.ymax])]}else{var _=h.lassoPoints={};_[t.id]=v.map(a)}};var f=t.dragOptions;t.dragOptions=SA.extendDeep(f||{},{dragmode:e.dragmode,element:t.div,gd:i,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:l},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),Tpe(s)||wpe(s)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(h,v,m){Ape(h,v,m,t.dragOptions,s)},bpe.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Vn.updateFramework=function(e){var t=e[this.id].domain,r=e._size,i=this.div.style;i.width=r.w*(t.x[1]-t.x[0])+"px",i.height=r.h*(t.y[1]-t.y[0])+"px",i.left=r.l+t.x[0]*r.w+"px",i.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Vn.updateLayers=function(e){var t=e[this.id],r=t.layers,i=this.layerList,a;if(r.length!==i.length){for(a=0;a{"use strict";var Epe=Bt(),Lpe=Ri(),Dpe=Mb().defaults;nG.exports=function(t,r,i,a){var s=a.type,l=a.attributes,f=a.handleDefaults,h=a.partition||"x",v=r._subplots[s],m=v.length,_=m&&v[0].replace(/\d+$/,""),T,S;function C(B,q){return Epe.coerce(T,S,l,B,q)}for(var D=0;D{"use strict";var CA=Bt(),Ppe=oG(),zpe=Wl(),sG=o1();lG.exports=function(t,r,i){Ppe(t,r,i,{type:"mapbox",attributes:sG,handleDefaults:Ipe,partition:"y",accessToken:r._mapboxAccessToken})};function Ipe(e,t,r,i){r("accesstoken",i.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var a=r("bounds.west"),s=r("bounds.east"),l=r("bounds.south"),f=r("bounds.north");(a===void 0||s===void 0||l===void 0||f===void 0)&&delete t.bounds,zpe(e,t,{name:"layers",handleItemDefaults:Rpe}),t._input=e}function Rpe(e,t){function r(h,v){return CA.coerce(e,t,sG.layers,h,v)}var i=r("visible");if(i){var a=r("sourcetype"),s=a==="raster"||a==="image";r("source"),r("sourceattribution"),a==="vector"&&r("sourcelayer"),a==="image"&&r("coordinates");var l;s&&(l="raster");var f=r("type",l);s&&f!=="raster"&&(f=t.type="raster",CA.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),f==="circle"&&r("circle.radius"),f==="line"&&(r("line.width"),r("line.dash")),f==="fill"&&r("fill.outlinecolor"),f==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),CA.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var jb=me(Ys=>{"use strict";var fG=pA(),Ju=Bt(),EA=Ju.strTranslate,Fpe=Ju.strScale,qpe=F_().getSubplotCalcData,Npe=zh(),Bpe=Ja(),cG=bi(),Ope=co(),Upe=iG(),av="mapbox",Hf=Ys.constants=zc();Ys.name=av;Ys.attr="subplot";Ys.idRoot=av;Ys.idRegex=Ys.attrRegex=Ju.counterRegex(av);var Vpe=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Ys.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Ys.layoutAttributes=o1();Ys.supplyLayoutDefaults=uG();var hG=!0;Ys.plot=function(t){hG&&(hG=!1,Ju.warn(Vpe));var r=t._fullLayout,i=t.calcdata,a=r._subplots[av];if(fG.version!==Hf.requiredVersion)throw new Error(Hf.wrongVersionErrorMsg);var s=Hpe(t,a);fG.accessToken=s;for(var l=0;lI/2){var B=S.split("|").join("
");D.text(B).attr("data-unformatted",B).call(Ope.convertToTspans,e),E=cG.bBox(D.node())}D.attr("transform",EA(-3,-E.height+8)),C.insert("rect",".static-attribution").attr({x:-E.width-6,y:-E.height-3,width:E.width+6,height:E.height+3,fill:"rgba(255, 255, 255, 0.75)"});var q=1;E.width+6>I&&(q=I/(E.width+6));var z=[i.l+i.w*l.x[1],i.t+i.h*(1-l.y[0])];C.attr("transform",EA(z[0],z[1])+Fpe(q))}};function Hpe(e,t){var r=e._fullLayout,i=e._context;if(i.mapboxAccessToken==="")return"";for(var a=[],s=[],l=!1,f=!1,h=0;h1&&Ju.warn(Hf.multipleTokensErrorMsg),a[0]):(s.length&&Ju.log(["Listed mapbox access token(s)",s.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function vG(e){return typeof e=="string"&&(Hf.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Ys.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[av],i=0;i{"use strict";var Abe=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");dG.exports={attributes:Db(),supplyDefaults:XV(),colorbar:J6(),formatLabels:sA(),calc:tH(),plot:vH(),hoverPoints:qb().hoverPoints,eventData:yH(),selectPoints:_H(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:jb(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var yG=me((Sbe,mG)=>{"use strict";mG.exports=pG()});var LA=me((kbe,xG)=>{"use strict";var Gpe=nl().hovertemplateAttrs,nv=aA(),Zpe=xc(),gG=ms(),Ype=Af().defaultLine,iv=mn().extendFlat,_G=nv.marker.line;xG.exports=iv({locations:{valType:"data_array",editType:"calc"},locationmode:nv.locationmode,z:{valType:"data_array",editType:"calc"},geojson:iv({},nv.geojson,{}),featureidkey:nv.featureidkey,text:iv({},nv.text,{}),hovertext:iv({},nv.hovertext,{}),marker:{line:{color:iv({},_G.color,{dflt:Ype}),width:iv({},_G.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:nv.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:nv.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:iv({},gG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Gpe(),showlegend:iv({},gG.showlegend,{dflt:!1})},Zpe("",{cLetter:"z",editTypeOverride:"calc"}))});var DA=me((Cbe,bG)=>{"use strict";var Ic=LA(),Wpe=xc(),Xpe=nl().hovertemplateAttrs,jpe=ms(),ov=mn().extendFlat;bG.exports=ov({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:ov({},Ic.featureidkey,{}),below:{valType:"string",editType:"plot"},text:Ic.text,hovertext:Ic.hovertext,marker:{line:{color:ov({},Ic.marker.line.color,{editType:"plot"}),width:ov({},Ic.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:ov({},Ic.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:ov({},Ic.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:ov({},Ic.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:Ic.hoverinfo,hovertemplate:Xpe({},{keys:["properties"]}),showlegend:ov({},jpe.showlegend,{dflt:!1})},Wpe("",{cLetter:"z",editTypeOverride:"calc"}))});var TG=me((Ebe,wG)=>{"use strict";var h1=Bt(),Jpe=hd(),Kpe=DA();wG.exports=function(t,r,i,a){function s(m,_){return h1.coerce(t,r,Kpe,m,_)}var l=s("locations"),f=s("z"),h=s("geojson");if(!h1.isArrayOrTypedArray(l)||!l.length||!h1.isArrayOrTypedArray(f)||!f.length||!(typeof h=="string"&&h!==""||h1.isPlainObject(h))){r.visible=!1;return}s("featureidkey"),r._length=Math.min(l.length,f.length),s("below"),s("text"),s("hovertext"),s("hovertemplate");var v=s("marker.line.width");v&&s("marker.line.color"),s("marker.opacity"),Jpe(t,r,a,s,{prefix:"",cLetter:"z"}),h1.coerceSelectionMarkerOpacity(r,s)}});var PA=me((Lbe,AG)=>{"use strict";AG.exports={min:"zmin",max:"zmax"}});var CG=me((Dbe,kG)=>{"use strict";var MG=Da(),Qpe=Zi().BADNUM,$pe=Yy(),e0e=Ug(),t0e=Gx();function SG(e){return e&&typeof e=="string"}kG.exports=function(t,r){var i=r._length,a=new Array(i),s;r.geojson?s=function(m){return SG(m)||MG(m)}:s=SG;for(var l=0;l{"use strict";var r0e=Da(),Rc=Bt(),a0e=L0(),i0e=bi(),n0e=Pb().makeBlank,EG=AA();function o0e(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,i={layout:{visibility:"none"},paint:{}},a={layout:{visibility:"none"},paint:{}},s=t._opts={fill:i,line:a,geojson:n0e()};if(!r)return s;var l=EG.extractTraceFeature(e);if(!l)return s;var f=a0e.makeColorScaleFuncFromTrace(t),h=t.marker,v=h.line||{},m;Rc.isArrayOrTypedArray(h.opacity)&&(m=function(B){var q=B.mo;return r0e(q)?+Rc.constrain(q,0,1):0});var _;Rc.isArrayOrTypedArray(v.color)&&(_=function(B){return B.mlc});var T;Rc.isArrayOrTypedArray(v.width)&&(T=function(B){return B.mlw});for(var S=0;S{"use strict";var zG=zA().convert,s0e=zA().convertOnSelect,PG=zc().traceLayerPrefix;function IG(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",PG+t+"-fill"],["line",PG+t+"-line"]],this.below=null}var wm=IG.prototype;wm.update=function(e){this._update(zG(e)),e[0].trace._glTrace=this};wm.updateOnSelect=function(e){this._update(s0e(e))};wm._update=function(e){var t=this.subplot,r=this.layerList,i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(e,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};wm.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};RG.exports=function(t,r){var i=r[0].trace,a=new IG(t,i.uid),s=a.sourceId,l=zG(r),f=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,f),r[0].trace._glTrace=a,a}});var NG=me((Ibe,qG)=>{"use strict";var l0e=Xi(),u0e=LA(),f0e=Bt().fillText;qG.exports=function(t,r,i){var a=t.cd,s=a[0].trace,l=t.subplot,f,h,v,m,_=[r,i],T=[r+360,i];for(h=0;h")}}});var OG=me((Rbe,BG)=>{"use strict";BG.exports=function(t,r,i,a,s){t.location=r.location,t.z=r.z;var l=a[s];return l.fIn&&l.fIn.properties&&(t.properties=l.fIn.properties),t.ct=l.ct,t}});var VG=me((Fbe,UG)=>{"use strict";UG.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f,h,v,m,_;if(r===!1)for(f=0;f{"use strict";var qbe=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");HG.exports={attributes:DA(),supplyDefaults:TG(),colorbar:PA(),calc:CG(),plot:FG(),hoverPoints:NG(),eventData:OG(),selectPoints:VG(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),i=r.length-2;i>=0;i--){var a=r[i].id;if(typeof a=="string"&&a.indexOf("water")===0){for(var s=i+1;s{"use strict";ZG.exports=GG()});var RA=me((Obe,XG)=>{"use strict";var h0e=xc(),v0e=nl().hovertemplateAttrs,WG=ms(),Jb=Db(),IA=mn().extendFlat;XG.exports=IA({lon:Jb.lon,lat:Jb.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:Jb.text,hovertext:Jb.hovertext,hoverinfo:IA({},WG.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:v0e(),showlegend:IA({},WG.showlegend,{dflt:!1})},h0e("",{cLetter:"z",editTypeOverride:"calc"}))});var JG=me((Ube,jG)=>{"use strict";var d0e=Bt(),p0e=hd(),m0e=RA();jG.exports=function(t,r,i,a){function s(v,m){return d0e.coerce(t,r,m0e,v,m)}var l=s("lon")||[],f=s("lat")||[],h=Math.min(l.length,f.length);if(!h){r.visible=!1;return}r._length=h,s("z"),s("radius"),s("below"),s("text"),s("hovertext"),s("hovertemplate"),p0e(t,r,a,s,{prefix:"",cLetter:"z"})}});var $G=me((Vbe,QG)=>{"use strict";var FA=Da(),y0e=Bt().isArrayOrTypedArray,qA=Zi().BADNUM,g0e=Yy(),KG=Bt()._;QG.exports=function(t,r){for(var i=r._length,a=new Array(i),s=r.z,l=y0e(s)&&s.length,f=0;f{"use strict";var _0e=Da(),NA=Bt(),eZ=Oa(),tZ=L0(),rZ=Zi().BADNUM,x0e=Pb().makeBlank;aZ.exports=function(t){var r=t[0].trace,i=r.visible===!0&&r._length!==0,a={layout:{visibility:"none"},paint:{}},s=r._opts={heatmap:a,geojson:x0e()};if(!i)return s;var l=[],f,h=r.z,v=r.radius,m=NA.isArrayOrTypedArray(h)&&h.length,_=NA.isArrayOrTypedArray(v);for(f=0;f0?+v[f]:0),l.push({type:"Feature",geometry:{type:"Point",coordinates:S},properties:C})}}var E=tZ.extractOpts(r),I=E.reversescale?tZ.flipScale(E.colorscale):E.colorscale,B=I[0][1],q=eZ.opacity(B)<1?B:eZ.addOpacity(B,0),z=["interpolate",["linear"],["heatmap-density"],0,q];for(f=1;f{"use strict";var nZ=iZ(),b0e=zc().traceLayerPrefix;function oZ(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",b0e+t+"-heatmap"]],this.below=null}var Kb=oZ.prototype;Kb.update=function(e){var t=this.subplot,r=this.layerList,i=nZ(e),a=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&&(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var s=0;s=0;r--)e.removeLayer(t[r][1])};Kb.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};sZ.exports=function(t,r){var i=r[0].trace,a=new oZ(t,i.uid),s=a.sourceId,l=nZ(r),f=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,f),a}});var fZ=me((Zbe,uZ)=>{"use strict";var w0e=Xi(),T0e=qb().hoverPoints,A0e=qb().getExtraText;uZ.exports=function(t,r,i){var a=T0e(t,r,i);if(a){var s=a[0],l=s.cd,f=l[0].trace,h=l[s.index];if(delete s.color,"z"in h){var v=s.subplot.mockAxis;s.z=h.z,s.zLabel=w0e.tickText(v,v.c2l(h.z),"hover").text}return s.extraText=A0e(f,h,l[0].t.labels),[s]}}});var hZ=me((Ybe,cZ)=>{"use strict";cZ.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var dZ=me((Xbe,vZ)=>{"use strict";var Wbe=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");vZ.exports={attributes:RA(),supplyDefaults:JG(),colorbar:PA(),formatLabels:sA(),calc:$G(),plot:lZ(),hoverPoints:fZ(),eventData:hZ(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";pZ.exports=dZ()});var Uo=me((Jbe,gZ)=>{"use strict";var yZ=Object.getOwnPropertySymbols,M0e=Object.prototype.hasOwnProperty,S0e=Object.prototype.propertyIsEnumerable;function k0e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function C0e(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(i.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(s){a[s]=s}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(s){return!1}}gZ.exports=C0e()?Object.assign:function(e,t){for(var r,i=k0e(e),a,s=1;s{var $b=Uo();function _Z(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}$b(_Z.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,i,a){return i=(e!=null&&e.year?e.calendar():typeof i=="string"?this.instance(i,a):i)||this.instance(),i.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var i="",a=0;r>0;){var s=r%10;i=(s===0?"":e[s]+t[a])+i,a++,r=Math.floor(r/10)}return i.indexOf(e[1]+t[1])===0&&(i=i.substr(1)),i||e[0]}}});function BA(e,t,r,i){if(this._calendar=e,this._year=t,this._month=r,this._day=i,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(ka.local.invalidDate||ka.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Qb(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}$b(BA.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(ka.local.invalidDate||ka.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(ka.local.differentCalendars||ka.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Qb(Math.abs(this.year()),4)+"-"+Qb(this.month(),2)+"-"+Qb(this.day(),2)}});function OA(){this.shortYearCutoff="+10"}$b(OA.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new BA(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+Qb(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,ka.local.invalidMonth||ka.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,ka.local.invalidMonth||ka.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var i=this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate);return i.toJD()-this.newDate(i.year(),this.fromMonthOfYear(i.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(i))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var i=e.toJD()+t*(r==="w"?this.daysInWeek():1),a=e.calendar().fromJD(i);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var s=e.year()+(r==="y"?t:0),l=e.monthOfYear()+(r==="m"?t:0),a=e.day(),f=function(m){for(;l_-1+m.minMonth;)s++,l-=_,_=m.monthsInYear(s)};r==="y"?(e.month()!==this.fromMonthOfYear(s,l)&&(l=this.newDate(s,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(s)),a=Math.min(a,this.daysInMonth(s,this.fromMonthOfYear(s,l)))):r==="m"&&(f(this),a=Math.min(a,this.daysInMonth(s,this.fromMonthOfYear(s,l))));var h=[s,this.fromMonthOfYear(s,l),a];return this._validateLevel--,h}catch(v){throw this._validateLevel--,v}},_correctAdd:function(e,t,r,i){if(!this.hasYearZero&&(i==="y"||i==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[i],s=r<0?-1:1;t=this._add(e,r*a[0]+s*a[1],a[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,ka.local.invalidDate||ka.regionalOptions[""].invalidDate);var i=r==="y"?t:e.year(),a=r==="m"?t:e.month(),s=r==="d"?t:e.day();return(r==="y"||r==="m")&&(s=Math.min(s,this.daysInMonth(i,a))),e.date(i,a,s)},isValid:function(e,t,r){this._validateLevel++;var i=this.hasYearZero||e!==0;if(i){var a=this.newDate(e,t,this.minDay);i=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),v=a-(h>2.5?4716:4715);return v<=0&&v--,this.newDate(v,h,f)},toJSDate:function(e,t,r){var i=this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),a=new Date(i.year(),i.month()-1,i.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var ka=xZ.exports=new _Z;ka.cdate=BA;ka.baseCalendar=OA;ka.calendars.gregorian=UA});var bZ=me(()=>{var VA=Uo(),po=Vo();VA(po.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});po.local=po.regionalOptions[""];VA(po.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});VA(po.baseCalendar.prototype,{UNIX_EPOCH:po.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:po.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw po.local.invalidFormat||po.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var i=r.dayNamesShort||this.local.dayNamesShort,a=r.dayNames||this.local.dayNames,s=r.monthNumbers||this.local.monthNumbers,l=r.monthNamesShort||this.local.monthNamesShort,f=r.monthNames||this.local.monthNames,h=r.calculateWeek||this.local.calculateWeek,v=function(z,O){for(var H=1;q+H1},m=function(z,O,H,V){var W=""+O;if(v(z,V))for(;W.length1},B=function(oe,fe){var ve=I(oe,fe),Me=[2,3,ve?4:2,ve?4:2,10,11,20]["oyYJ@!".indexOf(oe)+1],Se=new RegExp("^-?\\d{1,"+Me+"}"),Ae=t.substring(W).match(Se);if(!Ae)throw(po.local.missingNumberAt||po.regionalOptions[""].missingNumberAt).replace(/\{0\}/,W);return W+=Ae[0].length,parseInt(Ae[0],10)},q=this,z=function(){if(typeof f=="function"){I("m");var oe=f.call(q,t.substring(W));return W+=oe.length,oe}return B("m")},O=function(oe,fe,ve,Me){for(var Se=I(oe,Me)?ve:fe,Ae=0;Ae-1){T=1,S=C;for(var ne=this.daysInMonth(_,T);S>ne;ne=this.daysInMonth(_,T))T++,S-=ne}return m>-1?this.fromJD(m):this.newDate(_,T,S)},determineDate:function(e,t,r,i,a){r&&typeof r!="object"&&(a=i,i=r,r=null),typeof i!="string"&&(a=i,i="");var s=this,l=function(f){try{return s.parseDate(i,f,a)}catch(_){}f=f.toLowerCase();for(var h=(f.match(/^c/)&&r?r.newDate():null)||s.today(),v=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,m=v.exec(f);m;)h.add(parseInt(m[1],10),m[2]||"d"),m=v.exec(f);return h};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:s.today().add(e,"d"):s.newDate(e),e}})});var wZ=me(()=>{var sv=Vo(),E0e=Uo(),HA=sv.instance();function e3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}e3.prototype=new sv.baseCalendar;E0e(e3.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(D0e);return r?r[0]:""}var i=this._validateYear(e),a=e.month(),s=""+this.toChineseMonth(i,a);return t&&s.length<2&&(s="0"+s),this.isIntercalaryMonth(i,a)&&(s+="i"),s},monthNames:function(e){if(typeof e=="string"){var t=e.match(P0e);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),s=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(r,i)&&(s="\u95F0"+s),s},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(z0e);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),s=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(r,i)&&(s="\u95F0"+s),s},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),i;if(isNaN(r))t[0]==="\u95F0"&&(i=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var a=t[t.length-1];i=a==="i"||a==="I"}var s=this.toMonthIndex(e,r,i);return s},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var i=this.intercalaryMonth(e),a=r&&t!==i;if(a||t<1||t>12)throw sv.local.invalidMonth.replace(/\{0\}/,this.local.name);var s;return i?!r&&t<=i?s=t-1:s=t:s=t-1,s},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),i=r?12:11;if(t<0||t>i)throw sv.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var i=this._validateYear(e,sv.local.invalidyear),a=uv[i-uv[0]],s=a>>9&4095,l=a>>5&15,f=a&31,h;h=HA.newDate(s,l,f),h.add(4-(h.dayOfWeek()||7),"d");var v=this.toJD(e,t,r)-h.toJD();return 1+Math.floor(v/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=lv[e-lv[0]],i=r>>13,a=i?12:11;if(t>a)throw sv.local.invalidMonth.replace(/\{0\}/,this.local.name);var s=r&1<<12-t?30:29;return s},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,s,r,sv.local.invalidDate);e=this._validateYear(i.year()),t=i.month(),r=i.day();var a=this.isIntercalaryMonth(e,t),s=this.toChineseMonth(e,t),l=R0e(e,s,r,a);return HA.toJD(l.year,l.month,l.day)},fromJD:function(e){var t=HA.fromJD(e),r=I0e(t.year(),t.month(),t.day()),i=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,i,r.day)},fromString:function(e){var t=e.match(L0e),r=this._validateYear(+t[1]),i=+t[2],a=!!t[3],s=this.toMonthIndex(r,i,a),l=+t[4];return this.newDate(r,s,l)},add:function(e,t,r){var i=e.year(),a=e.month(),s=this.isIntercalaryMonth(i,a),l=this.toChineseMonth(i,a),f=Object.getPrototypeOf(e3.prototype).add.call(this,e,t,r);if(r==="y"){var h=f.year(),v=f.month(),m=this.isIntercalaryMonth(h,l),_=s&&m?this.toMonthIndex(h,l,!0):this.toMonthIndex(h,l,!1);_!==v&&f.month(_)}return f}});var L0e=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,D0e=/^\d?\d[iI]?/m,P0e=/^闰?十?[一二三四五六七八九]?月/m,z0e=/^闰?十?[一二三四五六七八九]?/m;sv.calendars.chinese=e3;var lv=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],uv=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function I0e(e,t,r,i){var a,s;if(typeof e=="object")a=e,s=t||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var f=typeof t=="number"&&t>=1&&t<=12;if(!f)throw new Error("Solar month outside range 1 - 12");var h=typeof r=="number"&&r>=1&&r<=31;if(!h)throw new Error("Solar day outside range 1 - 31");a={year:e,month:t,day:r},s=i||{}}var v=uv[a.year-uv[0]],m=a.year<<9|a.month<<5|a.day;s.year=m>=v?a.year:a.year-1,v=uv[s.year-uv[0]];var _=v>>9&4095,T=v>>5&15,S=v&31,C,D=new Date(_,T-1,S),E=new Date(a.year,a.month-1,a.day);C=Math.round((E-D)/(24*3600*1e3));var I=lv[s.year-lv[0]],B;for(B=0;B<13;B++){var q=I&1<<12-B?30:29;if(C>13;return!z||B=1888&&e<=2111;if(!f)throw new Error("Lunar year outside range 1888-2111");var h=typeof t=="number"&&t>=1&&t<=12;if(!h)throw new Error("Lunar month outside range 1 - 12");var v=typeof r=="number"&&r>=1&&r<=30;if(!v)throw new Error("Lunar day outside range 1 - 30");var m;typeof i=="object"?(m=!1,s=i):(m=!!i,s=a||{}),l={year:e,month:t,day:r,isIntercalary:m}}var _;_=l.day-1;var T=lv[l.year-lv[0]],S=T>>13,C;S&&(l.month>S||l.isIntercalary)?C=l.month:C=l.month-1;for(var D=0;D>9&4095,q=I>>5&15,z=I&31,O=new Date(B,q-1,z+_);return s.year=O.getFullYear(),s.month=1+O.getMonth(),s.day=O.getDate(),s}});var TZ=me(()=>{var Zd=Vo(),F0e=Uo();function GA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}GA.prototype=new Zd.baseCalendar;F0e(GA.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Zd.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Zd.local.invalidYear||Zd.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Zd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,Zd.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});Zd.calendars.coptic=GA});var AZ=me(()=>{var Fc=Vo(),q0e=Uo();function ZA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ZA.prototype=new Fc.baseCalendar;q0e(ZA.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fc.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fc.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fc.local.invalidYear),400},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Fc.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Fc.local.invalidDate);return(i.day()+1)%8},weekDay:function(e,t,r){var i=this.dayOfWeek(e,t,r);return i>=2&&i<=6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,Fc.local.invalidDate);return{century:N0e[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(e,t,r){var i=this._validate(e,t,r,Fc.local.invalidDate);return e=i.year()+(i.year()<0?1:0),t=i.month(),r=i.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,i=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,i)}});var N0e={20:"Fruitbat",21:"Anchovy"};Fc.calendars.discworld=ZA});var MZ=me(()=>{var Yd=Vo(),B0e=Uo();function YA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}YA.prototype=new Yd.baseCalendar;B0e(YA.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Yd.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yd.local.invalidYear||Yd.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Yd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,Yd.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});Yd.calendars.ethiopian=YA});var SZ=me(()=>{var fv=Vo(),O0e=Uo();function WA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}WA.prototype=new fv.baseCalendar;O0e(WA.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,fv.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,t3(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,fv.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,fv.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,fv.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&t3(this.daysInYear(e),10)===5?30:t===9&&t3(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,fv.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(e,t,r){var i=this._validate(e,t,r,fv.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=e<=0?e+1:e,s=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(t<7){for(var l=7;l<=this.monthsInYear(e);l++)s+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});function t3(e,t){return e-t*Math.floor(e/t)}fv.calendars.hebrew=WA});var kZ=me(()=>{var v1=Vo(),U0e=Uo();function XA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}XA.prototype=new v1.baseCalendar;U0e(XA.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,v1.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,v1.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,v1.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});v1.calendars.islamic=XA});var CZ=me(()=>{var d1=Vo(),V0e=Uo();function jA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}jA.prototype=new d1.baseCalendar;V0e(jA.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,d1.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(4-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,d1.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,d1.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,i=Math.floor((r-122.1)/365.25),a=Math.floor(365.25*i),s=Math.floor((r-a)/30.6001),l=s-Math.floor(s<14?1:13),f=i-Math.floor(l>2?4716:4715),h=r-a-Math.floor(30.6001*s);return f<=0&&f--,this.newDate(f,l,h)}});d1.calendars.julian=jA});var LZ=me(()=>{var cu=Vo(),H0e=Uo();function KA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}KA.prototype=new cu.baseCalendar;H0e(KA.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var i=Math.floor(e/20);return r+"."+i+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&i<0)throw"Invalid Mayan year";t=t*20+i}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,cu.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,cu.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,cu.local.invalidDate);return i.day()},weekDay:function(e,t,r){return this._validate(e,t,r,cu.local.invalidDate),!0},extraInfo:function(e,t,r){var i=this._validate(e,t,r,cu.local.invalidDate),a=i.toJD(),s=this._toHaab(a),l=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[s[0]-1],haabMonth:s[0],haabDay:s[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=JA(e+8+17*20,365);return[Math.floor(t/20)+1,JA(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[EZ(e+20,20),EZ(e+4,13)]},toJD:function(e,t,r){var i=this._validate(e,t,r,cu.local.invalidDate);return i.day()+i.month()*20+i.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),i=e%20;return this.newDate(t,r,i)}});function JA(e,t){return e-t*Math.floor(e/t)}function EZ(e,t){return JA(e-1,t)+1}cu.calendars.mayan=KA});var PZ=me(()=>{var Wd=Vo(),G0e=Uo();function QA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}QA.prototype=new Wd.baseCalendar;var DZ=Wd.instance("gregorian");G0e(QA.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Wd.local.invalidYear||Wd.regionalOptions[""].invalidYear);return DZ.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(1-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Wd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,Wd.local.invalidMonth),a=i.year();a<0&&a++;for(var s=i.day(),l=1;l=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,i=1;r>this.daysInMonth(t,i);)r-=this.daysInMonth(t,i),i++;return this.newDate(t,i,r)}});Wd.calendars.nanakshahi=QA});var zZ=me(()=>{var Xd=Vo(),Z0e=Uo();function $A(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}$A.prototype=new Xd.baseCalendar;Z0e($A.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Xd.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,i=this.minMonth;i<=12;i++)r+=this.NEPALI_CALENDAR_DATA[e][i];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Xd.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var i=this._validate(e,t,r,Xd.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=Xd.instance(),s=0,l=t,f=e;this._createMissingCalendarData(e);var h=e-(l>9||l===9&&r>=this.NEPALI_CALENDAR_DATA[f][0]?56:57);for(t!==9&&(s=r,l--);l!==9;)l<=0&&(l=12,f--),s+=this.NEPALI_CALENDAR_DATA[f][l],l--;return t===9?(s+=r-this.NEPALI_CALENDAR_DATA[f][0],s<0&&(s+=a.daysInYear(h))):s+=this.NEPALI_CALENDAR_DATA[f][9]-this.NEPALI_CALENDAR_DATA[f][0],a.newDate(h,1,1).add(s,"d").toJD()},fromJD:function(e){var t=Xd.instance(),r=t.fromJD(e),i=r.year(),a=r.dayOfYear(),s=i+56;this._createMissingCalendarData(s);for(var l=9,f=this.NEPALI_CALENDAR_DATA[s][0],h=this.NEPALI_CALENDAR_DATA[s][l]-f+1;a>h;)l++,l>12&&(l=1,s++),h+=this.NEPALI_CALENDAR_DATA[s][l];var v=this.NEPALI_CALENDAR_DATA[s][l]-(h-a);return this.newDate(s,l,v)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var Tm=Vo(),Y0e=Uo();function a3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function r3(e){var t=e-475;e<0&&t++;var r=.242197,i=r*t,a=r*(t+1),s=i-Math.floor(i),l=a-Math.floor(a);return s>l}a3.prototype=new Tm.baseCalendar;Y0e(a3.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Tm.local.invalidYear);return r3(t.year())},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-((i.dayOfWeek()+1)%7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Tm.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,Tm.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=0;if(e>0)for(var s=1;s0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,r3(r)?30:29)&&(r++,r===0&&r++);var i=e-this.toJD(r,1,1)+1,a=i<=186?Math.ceil(i/31):Math.ceil((i-6)/30),s=e-this.toJD(r,a,1)+1;return this.newDate(r,a,s)}});Tm.calendars.persian=a3;Tm.calendars.jalali=a3});var RZ=me(()=>{var jd=Vo(),W0e=Uo(),i3=jd.instance();function eM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}eM.prototype=new jd.baseCalendar;W0e(eM.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,jd.local.invalidYear),r=this._t2gYear(t.year());return i3.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,jd.local.invalidYear),a=this._t2gYear(i.year());return i3.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,jd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,jd.local.invalidDate),a=this._t2gYear(i.year());return i3.toJD(a,i.month(),i.day())},fromJD:function(e){var t=i3.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});jd.calendars.taiwan=eM});var FZ=me(()=>{var Jd=Vo(),X0e=Uo(),n3=Jd.instance();function tM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}tM.prototype=new Jd.baseCalendar;X0e(tM.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Jd.local.invalidYear),r=this._t2gYear(t.year());return n3.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,Jd.local.invalidYear),a=this._t2gYear(i.year());return n3.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Jd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,Jd.local.invalidDate),a=this._t2gYear(i.year());return n3.toJD(a,i.month(),i.day())},fromJD:function(e){var t=n3.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Jd.calendars.thai=tM});var qZ=me(()=>{var Kd=Vo(),j0e=Uo();function rM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}rM.prototype=new Kd.baseCalendar;j0e(rM.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Kd.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Kd.local.invalidMonth),i=r.toJD()-24e5+.5,a=0,s=0;si)return cv[a]-cv[a-1];a++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,Kd.local.invalidDate),a=12*(i.year()-1)+i.month()-15292,s=i.day()+cv[a-1]-1;return s+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,i=0;it);i++)r++;var a=r+15292,s=Math.floor((a-1)/12),l=s+1,f=a-12*s,h=t-cv[r-1]+1;return this.newDate(l,f,h)},isValid:function(e,t,r){var i=Kd.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(e=e.year!=null?e.year:e,i=e>=1276&&e<=1500),i},_validate:function(e,t,r,i){var a=Kd.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\{0\}/,this.local.name);return a}});Kd.calendars.ummalqura=rM;var cv=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var BZ=me((C3e,NZ)=>{"use strict";NZ.exports=Vo();bZ();wZ();TZ();AZ();MZ();SZ();kZ();CZ();LZ();PZ();zZ();IZ();RZ();FZ();qZ()});var YZ=me((E3e,ZZ)=>{"use strict";var UZ=BZ(),p1=Bt(),VZ=Zi(),J0e=VZ.EPOCHJD,K0e=VZ.ONEDAY,nM={valType:"enumerated",values:p1.sortObjectKeys(UZ.calendars),editType:"calc",dflt:"gregorian"},HZ=function(e,t,r,i){var a={};return a[r]=nM,p1.coerce(e,t,a,r,i)},Q0e=function(e,t,r,i){for(var a=0;a{"use strict";WZ.exports=YZ()});var ime=me((D3e,JZ)=>{var jZ=kV();jZ.register([yG(),YG(),mZ(),XZ()]);JZ.exports=jZ});return ime();})(); +`),Jt=G.createShader(G.FRAGMENT_SHADER);if(G.isContextLost()){this.failedToCreate=!0;return}G.shaderSource(Jt,Pt),G.compileShader(Jt),G.attachShader(this.program,Jt);var er=G.createShader(G.VERTEX_SHADER);if(G.isContextLost()){this.failedToCreate=!0;return}G.shaderSource(er,Nt),G.compileShader(er),G.attachShader(this.program,er),this.attributes={};var Zt={};this.numAttributes=ue.length;for(var rr=0;rr>16,G>>16],u_pixel_coord_lower:[R&65535,G&65535]}}function xu(g,c,b,d){var w=b.imageManager.getPattern(g.from.toString()),D=b.imageManager.getPattern(g.to.toString()),R=b.imageManager.getPixelSize(),G=R.width,K=R.height,re=Math.pow(2,d.tileID.overscaledZ),ue=d.tileSize*Math.pow(2,b.transform.tileZoom)/re,be=ue*(d.tileID.canonical.x+d.tileID.wrap*re),xe=ue*d.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:w.tl,u_pattern_br_a:w.br,u_pattern_tl_b:D.tl,u_pattern_br_b:D.br,u_texsize:[G,K],u_mix:c.t,u_pattern_size_a:w.displaySize,u_pattern_size_b:D.displaySize,u_scale_a:c.fromScale,u_scale_b:c.toScale,u_tile_units_to_pixels:1/mo(d,1,b.transform.tileZoom),u_pixel_coord_upper:[be>>16,xe>>16],u_pixel_coord_lower:[be&65535,xe&65535]}}var Cv=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_lightpos:new a.Uniform3f(g,c.u_lightpos),u_lightintensity:new a.Uniform1f(g,c.u_lightintensity),u_lightcolor:new a.Uniform3f(g,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(g,c.u_vertical_gradient),u_opacity:new a.Uniform1f(g,c.u_opacity)}},bn=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_lightpos:new a.Uniform3f(g,c.u_lightpos),u_lightintensity:new a.Uniform1f(g,c.u_lightintensity),u_lightcolor:new a.Uniform3f(g,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(g,c.u_vertical_gradient),u_height_factor:new a.Uniform1f(g,c.u_height_factor),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade),u_opacity:new a.Uniform1f(g,c.u_opacity)}},Jf=function(g,c,b,d){var w=c.style.light,D=w.properties.get("position"),R=[D.x,D.y,D.z],G=a.create$1();w.properties.get("anchor")==="viewport"&&a.fromRotation(G,-c.transform.angle),a.transformMat3(R,R,G);var K=w.properties.get("color");return{u_matrix:g,u_lightpos:R,u_lightintensity:w.properties.get("intensity"),u_lightcolor:[K.r,K.g,K.b],u_vertical_gradient:+b,u_opacity:d}},Js=function(g,c,b,d,w,D,R){return a.extend(Jf(g,c,b,d),nf(D,c,R),{u_height_factor:-Math.pow(2,w.overscaledZ)/R.tileSize/8})},kl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},Cl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},El=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world)}},Ks=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},Ms=function(g){return{u_matrix:g}},Ss=function(g,c,b,d){return a.extend(Ms(g),nf(b,c,d))},Ll=function(g,c){return{u_matrix:g,u_world:c}},pp=function(g,c,b,d,w){return a.extend(Ss(g,c,b,d),{u_world:w})},Zm=function(g,c){return{u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_scale_with_map:new a.Uniform1i(g,c.u_scale_with_map),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_extrude_scale:new a.Uniform2f(g,c.u_extrude_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},Ym=function(g,c,b,d){var w=g.transform,D,R;if(d.paint.get("circle-pitch-alignment")==="map"){var G=mo(b,1,w.zoom);D=!0,R=[G,G]}else D=!1,R=w.pixelsToGLUnits;return{u_camera_to_center_distance:w.cameraToCenterDistance,u_scale_with_map:+(d.paint.get("circle-pitch-scale")==="map"),u_matrix:g.translatePosMatrix(c.posMatrix,b,d.paint.get("circle-translate"),d.paint.get("circle-translate-anchor")),u_pitch_with_map:+D,u_device_pixel_ratio:a.browser.devicePixelRatio,u_extrude_scale:R}},Wm=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pixels_to_tile_units:new a.Uniform1f(g,c.u_pixels_to_tile_units),u_extrude_scale:new a.Uniform2f(g,c.u_extrude_scale),u_overscale_factor:new a.Uniform1f(g,c.u_overscale_factor)}},mp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_inv_matrix:new a.UniformMatrix4f(g,c.u_inv_matrix),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_viewport_size:new a.Uniform2f(g,c.u_viewport_size)}},yp=function(g,c,b){var d=mo(b,1,c.zoom),w=Math.pow(2,c.zoom-b.tileID.overscaledZ),D=b.tileID.overscaleFactor();return{u_matrix:g,u_camera_to_center_distance:c.cameraToCenterDistance,u_pixels_to_tile_units:d,u_extrude_scale:[c.pixelsToGLUnits[0]/(d*w),c.pixelsToGLUnits[1]/(d*w)],u_overscale_factor:D}},Ev=function(g,c,b){return{u_matrix:g,u_inv_matrix:c,u_camera_to_center_distance:b.cameraToCenterDistance,u_viewport_size:[b.width,b.height]}},Lv=function(g,c){return{u_color:new a.UniformColor(g,c.u_color),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_overlay:new a.Uniform1i(g,c.u_overlay),u_overlay_scale:new a.Uniform1f(g,c.u_overlay_scale)}},Kf=function(g,c,b){return b===void 0&&(b=1),{u_matrix:g,u_color:c,u_overlay:0,u_overlay_scale:b}},Yc=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},gp=function(g){return{u_matrix:g}},Dv=function(g,c){return{u_extrude_scale:new a.Uniform1f(g,c.u_extrude_scale),u_intensity:new a.Uniform1f(g,c.u_intensity),u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},_p=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world),u_image:new a.Uniform1i(g,c.u_image),u_color_ramp:new a.Uniform1i(g,c.u_color_ramp),u_opacity:new a.Uniform1f(g,c.u_opacity)}},of=function(g,c,b,d){return{u_matrix:g,u_extrude_scale:mo(c,1,b),u_intensity:d}},Xm=function(g,c,b,d){var w=a.create();a.ortho(w,0,g.width,g.height,0,0,1);var D=g.context.gl;return{u_matrix:w,u_world:[D.drawingBufferWidth,D.drawingBufferHeight],u_image:b,u_color_ramp:d,u_opacity:c.paint.get("heatmap-opacity")}},xp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_latrange:new a.Uniform2f(g,c.u_latrange),u_light:new a.Uniform2f(g,c.u_light),u_shadow:new a.UniformColor(g,c.u_shadow),u_highlight:new a.UniformColor(g,c.u_highlight),u_accent:new a.UniformColor(g,c.u_accent)}},bp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_dimension:new a.Uniform2f(g,c.u_dimension),u_zoom:new a.Uniform1f(g,c.u_zoom),u_unpack:new a.Uniform4f(g,c.u_unpack)}},wp=function(g,c,b){var d=b.paint.get("hillshade-shadow-color"),w=b.paint.get("hillshade-highlight-color"),D=b.paint.get("hillshade-accent-color"),R=b.paint.get("hillshade-illumination-direction")*(Math.PI/180);b.paint.get("hillshade-illumination-anchor")==="viewport"&&(R-=g.transform.angle);var G=!g.options.moving;return{u_matrix:g.transform.calculatePosMatrix(c.tileID.toUnwrapped(),G),u_image:0,u_latrange:zv(g,c.tileID),u_light:[b.paint.get("hillshade-exaggeration"),R],u_shadow:d,u_highlight:w,u_accent:D}},Pv=function(g,c){var b=c.stride,d=a.create();return a.ortho(d,0,a.EXTENT,-a.EXTENT,0,0,1),a.translate(d,d,[0,-a.EXTENT,0]),{u_matrix:d,u_image:1,u_dimension:[b,b],u_zoom:g.overscaledZ,u_unpack:c.getUnpackVector()}};function zv(g,c){var b=Math.pow(2,c.canonical.z),d=c.canonical.y;return[new a.MercatorCoordinate(0,d/b).toLngLat().lat,new a.MercatorCoordinate(0,(d+1)/b).toLngLat().lat]}var bu=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels)}},Dl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_image:new a.Uniform1i(g,c.u_image),u_image_height:new a.Uniform1f(g,c.u_image_height)}},Qf=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_texsize:new a.Uniform2f(g,c.u_texsize),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_image:new a.Uniform1i(g,c.u_image),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},Iv=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_patternscale_a:new a.Uniform2f(g,c.u_patternscale_a),u_patternscale_b:new a.Uniform2f(g,c.u_patternscale_b),u_sdfgamma:new a.Uniform1f(g,c.u_sdfgamma),u_image:new a.Uniform1i(g,c.u_image),u_tex_y_a:new a.Uniform1f(g,c.u_tex_y_a),u_tex_y_b:new a.Uniform1f(g,c.u_tex_y_b),u_mix:new a.Uniform1f(g,c.u_mix)}},Wc=function(g,c,b){var d=g.transform;return{u_matrix:wu(g,c,b),u_ratio:1/mo(c,1,d.zoom),u_device_pixel_ratio:a.browser.devicePixelRatio,u_units_to_pixels:[1/d.pixelsToGLUnits[0],1/d.pixelsToGLUnits[1]]}},Xc=function(g,c,b,d){return a.extend(Wc(g,c,b),{u_image:0,u_image_height:d})},jc=function(g,c,b,d){var w=g.transform,D=Jc(c,w);return{u_matrix:wu(g,c,b),u_texsize:c.imageAtlasTexture.size,u_ratio:1/mo(c,1,w.zoom),u_device_pixel_ratio:a.browser.devicePixelRatio,u_image:0,u_scale:[D,d.fromScale,d.toScale],u_fade:d.t,u_units_to_pixels:[1/w.pixelsToGLUnits[0],1/w.pixelsToGLUnits[1]]}},Pl=function(g,c,b,d,w){var D=g.transform,R=g.lineAtlas,G=Jc(c,D),K=b.layout.get("line-cap")==="round",re=R.getDash(d.from,K),ue=R.getDash(d.to,K),be=re.width*w.fromScale,xe=ue.width*w.toScale;return a.extend(Wc(g,c,b),{u_patternscale_a:[G/be,-re.height/2],u_patternscale_b:[G/xe,-ue.height/2],u_sdfgamma:R.width/(Math.min(be,xe)*256*a.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:re.y,u_tex_y_b:ue.y,u_mix:w.t})};function Jc(g,c){return 1/mo(g,1,c.tileZoom)}function wu(g,c,b){return g.translatePosMatrix(c.tileID.posMatrix,c,b.paint.get("line-translate"),b.paint.get("line-translate-anchor"))}var sf=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_tl_parent:new a.Uniform2f(g,c.u_tl_parent),u_scale_parent:new a.Uniform1f(g,c.u_scale_parent),u_buffer_scale:new a.Uniform1f(g,c.u_buffer_scale),u_fade_t:new a.Uniform1f(g,c.u_fade_t),u_opacity:new a.Uniform1f(g,c.u_opacity),u_image0:new a.Uniform1i(g,c.u_image0),u_image1:new a.Uniform1i(g,c.u_image1),u_brightness_low:new a.Uniform1f(g,c.u_brightness_low),u_brightness_high:new a.Uniform1f(g,c.u_brightness_high),u_saturation_factor:new a.Uniform1f(g,c.u_saturation_factor),u_contrast_factor:new a.Uniform1f(g,c.u_contrast_factor),u_spin_weights:new a.Uniform3f(g,c.u_spin_weights)}},Tp=function(g,c,b,d,w){return{u_matrix:g,u_tl_parent:c,u_scale_parent:b,u_buffer_scale:1,u_fade_t:d.mix,u_opacity:d.opacity*w.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:w.paint.get("raster-brightness-min"),u_brightness_high:w.paint.get("raster-brightness-max"),u_saturation_factor:$f(w.paint.get("raster-saturation")),u_contrast_factor:pi(w.paint.get("raster-contrast")),u_spin_weights:Kc(w.paint.get("raster-hue-rotate"))}};function Kc(g){g*=Math.PI/180;var c=Math.sin(g),b=Math.cos(g);return[(2*b+1)/3,(-Math.sqrt(3)*c-b+1)/3,(Math.sqrt(3)*c-b+1)/3]}function pi(g){return g>0?1/(1-g):1+g}function $f(g){return g>0?1-1/(1.001-g):-g}var Ap=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texture:new a.Uniform1i(g,c.u_texture)}},Mp=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texture:new a.Uniform1i(g,c.u_texture),u_gamma_scale:new a.Uniform1f(g,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_is_halo:new a.Uniform1i(g,c.u_is_halo)}},zl=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texsize_icon:new a.Uniform2f(g,c.u_texsize_icon),u_texture:new a.Uniform1i(g,c.u_texture),u_texture_icon:new a.Uniform1i(g,c.u_texture_icon),u_gamma_scale:new a.Uniform1f(g,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_is_halo:new a.Uniform1i(g,c.u_is_halo)}},Sp=function(g,c,b,d,w,D,R,G,K,re){var ue=w.transform;return{u_is_size_zoom_constant:+(g==="constant"||g==="source"),u_is_size_feature_constant:+(g==="constant"||g==="camera"),u_size_t:c?c.uSizeT:0,u_size:c?c.uSize:0,u_camera_to_center_distance:ue.cameraToCenterDistance,u_pitch:ue.pitch/360*2*Math.PI,u_rotate_symbol:+b,u_aspect_ratio:ue.width/ue.height,u_fade_change:w.options.fadeDuration?w.symbolFadeChange:1,u_matrix:D,u_label_plane_matrix:R,u_coord_matrix:G,u_is_text:+K,u_pitch_with_map:+d,u_texsize:re,u_texture:0}},kp=function(g,c,b,d,w,D,R,G,K,re,ue){var be=w.transform;return a.extend(Sp(g,c,b,d,w,D,R,G,K,re),{u_gamma_scale:d?Math.cos(be._pitch)*be.cameraToCenterDistance:1,u_device_pixel_ratio:a.browser.devicePixelRatio,u_is_halo:+ue})},Rv=function(g,c,b,d,w,D,R,G,K,re){return a.extend(kp(g,c,b,d,w,D,R,G,!0,K,!0),{u_texsize_icon:re,u_texture_icon:1})},Cp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_opacity:new a.Uniform1f(g,c.u_opacity),u_color:new a.UniformColor(g,c.u_color)}},jm=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_opacity:new a.Uniform1f(g,c.u_opacity),u_image:new a.Uniform1i(g,c.u_image),u_pattern_tl_a:new a.Uniform2f(g,c.u_pattern_tl_a),u_pattern_br_a:new a.Uniform2f(g,c.u_pattern_br_a),u_pattern_tl_b:new a.Uniform2f(g,c.u_pattern_tl_b),u_pattern_br_b:new a.Uniform2f(g,c.u_pattern_br_b),u_texsize:new a.Uniform2f(g,c.u_texsize),u_mix:new a.Uniform1f(g,c.u_mix),u_pattern_size_a:new a.Uniform2f(g,c.u_pattern_size_a),u_pattern_size_b:new a.Uniform2f(g,c.u_pattern_size_b),u_scale_a:new a.Uniform1f(g,c.u_scale_a),u_scale_b:new a.Uniform1f(g,c.u_scale_b),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_tile_units_to_pixels:new a.Uniform1f(g,c.u_tile_units_to_pixels)}},Il=function(g,c,b){return{u_matrix:g,u_opacity:c,u_color:b}},Tu=function(g,c,b,d,w,D){return a.extend(xu(d,D,b,w),{u_matrix:g,u_opacity:c})},ec={fillExtrusion:Cv,fillExtrusionPattern:bn,fill:kl,fillPattern:Cl,fillOutline:El,fillOutlinePattern:Ks,circle:Zm,collisionBox:Wm,collisionCircle:mp,debug:Lv,clippingMask:Yc,heatmap:Dv,heatmapTexture:_p,hillshade:xp,hillshadePrepare:bp,line:bu,lineGradient:Dl,linePattern:Qf,lineSDF:Iv,raster:sf,symbolIcon:Ap,symbolSDF:Mp,symbolTextAndIcon:zl,background:Cp,backgroundPattern:jm},ks;function Cs(g,c,b,d,w,D,R){for(var G=g.context,K=G.gl,re=g.useProgram("collisionBox"),ue=[],be=0,xe=0,Re=0;Re0){var Nt=a.create(),Jt=Je;a.mul(Nt,Ue.placementInvProjMatrix,g.transform.glCoordMatrix),a.mul(Nt,Nt,Ue.placementViewportMatrix),ue.push({circleArray:Pt,circleOffset:xe,transform:Jt,invTransform:Nt}),be+=Pt.length/4,xe=be}ht&&re.draw(G,K.LINES,ma.disabled,Zr.disabled,g.colorModeForRenderPass(),Ee.disabled,yp(Je,g.transform,Ze),b.id,ht.layoutVertexBuffer,ht.indexBuffer,ht.segments,null,g.transform.zoom,null,null,ht.collisionVertexBuffer)}}if(!(!R||!ue.length)){var er=g.useProgram("collisionCircle"),Zt=new a.StructArrayLayout2f1f2i16;Zt.resize(be*4),Zt._trim();for(var rr=0,hr=0,br=ue;hr=0&&(Ye[Ue.associatedIconIndex]={shiftedAnchor:Xr,angle:Ra})}}if(ue){Re.clear();for(var qr=g.icon.placedSymbolArray,Sa=0;Sa0){var R=a.browser.now(),G=(R-g.timeAdded)/D,K=c?(R-c.timeAdded)/D:-1,re=b.getSource(),ue=w.coveringZoomLevel({tileSize:re.tileSize,roundZoom:re.roundZoom}),be=!c||Math.abs(c.tileID.overscaledZ-ue)>Math.abs(g.tileID.overscaledZ-ue),xe=be&&g.refreshedUponExpiration?1:a.clamp(be?G:1-K,0,1);return g.refreshedUponExpiration&&G>=1&&(g.refreshedUponExpiration=!1),c?{opacity:1,mix:1-xe}:{opacity:xe,mix:0}}else return{opacity:1,mix:0}}function tc(g,c,b){var d=b.paint.get("background-color"),w=b.paint.get("background-opacity");if(w!==0){var D=g.context,R=D.gl,G=g.transform,K=G.tileSize,re=b.paint.get("background-pattern");if(!g.isPatternMissing(re)){var ue=!re&&d.a===1&&w===1&&g.opaquePassEnabledForLayer()?"opaque":"translucent";if(g.renderPass===ue){var be=Zr.disabled,xe=g.depthModeForSublayer(0,ue==="opaque"?ma.ReadWrite:ma.ReadOnly),Re=g.colorModeForRenderPass(),Ye=g.useProgram(re?"backgroundPattern":"background"),Ze=G.coveringTiles({tileSize:K});re&&(D.activeTexture.set(R.TEXTURE0),g.imageManager.bind(g.context));for(var Ue=b.getCrossfadeParameters(),Je=0,ht=Ze;Je "+b.overscaledZ);var Je=Ue+" "+Re+"kb";Ip(g,Je),R.draw(d,w.TRIANGLES,G,K,ee.alphaBlended,Ee.disabled,Kf(D,a.Color.transparent,Ze),ue,g.debugBuffer,g.quadTriangleIndexBuffer,g.debugSegments)}function Ip(g,c){g.initDebugOverlayCanvas();var b=g.debugOverlayCanvas,d=g.context.gl,w=g.debugOverlayCanvas.getContext("2d");w.clearRect(0,0,b.width,b.height),w.shadowColor="white",w.shadowBlur=2,w.lineWidth=1.5,w.strokeStyle="white",w.textBaseline="top",w.font="bold 36px Open Sans, sans-serif",w.fillText(c,5,5),w.strokeText(c,5,5),g.debugOverlayTexture.update(b),g.debugOverlayTexture.bind(d.LINEAR,d.CLAMP_TO_EDGE)}function pf(g,c,b){var d=g.context,w=b.implementation;if(g.renderPass==="offscreen"){var D=w.prerender;D&&(g.setCustomLayerDefaults(),d.setColorMode(g.colorModeForRenderPass()),D.call(w,d.gl,g.transform.customLayerMatrix()),d.setDirty(),g.setBaseState())}else if(g.renderPass==="translucent"){g.setCustomLayerDefaults(),d.setColorMode(g.colorModeForRenderPass()),d.setStencilMode(Zr.disabled);var R=w.renderingMode==="3d"?new ma(g.context.gl.LEQUAL,ma.ReadWrite,g.depthRangeFor3D):g.depthModeForSublayer(0,ma.ReadOnly);d.setDepthMode(R),w.render(d.gl,g.transform.customLayerMatrix()),d.setDirty(),g.setBaseState(),d.bindFramebuffer.set(null)}}var li={symbol:Jm,circle:Qc,heatmap:Au,line:go,fill:Ep,"fill-extrusion":Rl,hillshade:vf,raster:Lp,background:tc,debug:Vv,custom:pf},Di=function(c,b){this.context=new Ne(c),this.transform=b,this._tileTextures={},this.setup(),this.numSublayers=rt.maxUnderzooming+rt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new yu,this.gpuTimers={}};Di.prototype.resize=function(c,b){if(this.width=c*a.browser.devicePixelRatio,this.height=b*a.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var d=0,w=this.style._order;d256&&this.clearStencil(),d.setColorMode(ee.disabled),d.setDepthMode(ma.disabled);var D=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var R=0,G=b;R256&&this.clearStencil();var c=this.nextStencilID++,b=this.context.gl;return new Zr({func:b.NOTEQUAL,mask:255},c,255,b.KEEP,b.KEEP,b.REPLACE)},Di.prototype.stencilModeForClipping=function(c){var b=this.context.gl;return new Zr({func:b.EQUAL,mask:255},this._tileClippingMaskIDs[c.key],0,b.KEEP,b.KEEP,b.REPLACE)},Di.prototype.stencilConfigForOverlap=function(c){var b,d=this.context.gl,w=c.sort(function(re,ue){return ue.overscaledZ-re.overscaledZ}),D=w[w.length-1].overscaledZ,R=w[0].overscaledZ-D+1;if(R>1){this.currentStencilSource=void 0,this.nextStencilID+R>256&&this.clearStencil();for(var G={},K=0;K=0;this.currentLayer--){var Nt=this.style._layers[w[this.currentLayer]],Jt=D[Nt.source],er=K[Nt.source];this._renderTileClippingMasks(Nt,er),this.renderLayer(this,Jt,Nt,er)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?b.pop():null},Di.prototype.isPatternMissing=function(c){if(!c)return!1;if(!c.from||!c.to)return!0;var b=this.imageManager.getPattern(c.from.toString()),d=this.imageManager.getPattern(c.to.toString());return!b||!d},Di.prototype.useProgram=function(c,b){this.cache=this.cache||{};var d=""+c+(b?b.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[d]||(this.cache[d]=new dp(this.context,c,Gm[c],b,ec[c],this._showOverdrawInspector)),this.cache[d]},Di.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Di.prototype.setBaseState=function(){var c=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(c.FUNC_ADD)},Di.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=a.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var c=this.context.gl;this.debugOverlayTexture=new a.Texture(this.context,this.debugOverlayCanvas,c.RGBA)}},Di.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var so=function(c,b){this.points=c,this.planes=b};so.fromInvProjectionMatrix=function(c,b,d){var w=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],D=Math.pow(2,d),R=w.map(function(re){return a.transformMat4([],re,c)}).map(function(re){return a.scale$1([],re,1/re[3]/b*D)}),G=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],K=G.map(function(re){var ue=a.sub([],R[re[0]],R[re[1]]),be=a.sub([],R[re[2]],R[re[1]]),xe=a.normalize([],a.cross([],ue,be)),Re=-a.dot(xe,R[re[1]]);return xe.concat(Re)});return new so(R,K)};var Es=function(c,b){this.min=c,this.max=b,this.center=a.scale$2([],a.add([],this.min,this.max),.5)};Es.prototype.quadrant=function(c){for(var b=[c%2===0,c<2],d=a.clone$2(this.min),w=a.clone$2(this.max),D=0;D=0;if(R===0)return 0;R!==b.length&&(d=!1)}if(d)return 2;for(var K=0;K<3;K++){for(var re=Number.MAX_VALUE,ue=-Number.MAX_VALUE,be=0;bethis.max[K]-this.min[K])return 0}return 1};var _o=function(c,b,d,w){if(c===void 0&&(c=0),b===void 0&&(b=0),d===void 0&&(d=0),w===void 0&&(w=0),isNaN(c)||c<0||isNaN(b)||b<0||isNaN(d)||d<0||isNaN(w)||w<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=c,this.bottom=b,this.left=d,this.right=w};_o.prototype.interpolate=function(c,b,d){return b.top!=null&&c.top!=null&&(this.top=a.number(c.top,b.top,d)),b.bottom!=null&&c.bottom!=null&&(this.bottom=a.number(c.bottom,b.bottom,d)),b.left!=null&&c.left!=null&&(this.left=a.number(c.left,b.left,d)),b.right!=null&&c.right!=null&&(this.right=a.number(c.right,b.right,d)),this},_o.prototype.getCenter=function(c,b){var d=a.clamp((this.left+c-this.right)/2,0,c),w=a.clamp((this.top+b-this.bottom)/2,0,b);return new a.Point(d,w)},_o.prototype.equals=function(c){return this.top===c.top&&this.bottom===c.bottom&&this.left===c.left&&this.right===c.right},_o.prototype.clone=function(){return new _o(this.top,this.bottom,this.left,this.right)},_o.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var ti=function(c,b,d,w,D){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=D===void 0?!0:D,this._minZoom=c||0,this._maxZoom=b||22,this._minPitch=d==null?0:d,this._maxPitch=w==null?60:w,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new _o,this._posMatrixCache={},this._alignedPosMatrixCache={}},fi={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};ti.prototype.clone=function(){var c=new ti(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return c.tileSize=this.tileSize,c.latRange=this.latRange,c.width=this.width,c.height=this.height,c._center=this._center,c.zoom=this.zoom,c.angle=this.angle,c._fov=this._fov,c._pitch=this._pitch,c._unmodified=this._unmodified,c._edgeInsets=this._edgeInsets.clone(),c._calcMatrices(),c},fi.minZoom.get=function(){return this._minZoom},fi.minZoom.set=function(g){this._minZoom!==g&&(this._minZoom=g,this.zoom=Math.max(this.zoom,g))},fi.maxZoom.get=function(){return this._maxZoom},fi.maxZoom.set=function(g){this._maxZoom!==g&&(this._maxZoom=g,this.zoom=Math.min(this.zoom,g))},fi.minPitch.get=function(){return this._minPitch},fi.minPitch.set=function(g){this._minPitch!==g&&(this._minPitch=g,this.pitch=Math.max(this.pitch,g))},fi.maxPitch.get=function(){return this._maxPitch},fi.maxPitch.set=function(g){this._maxPitch!==g&&(this._maxPitch=g,this.pitch=Math.min(this.pitch,g))},fi.renderWorldCopies.get=function(){return this._renderWorldCopies},fi.renderWorldCopies.set=function(g){g===void 0?g=!0:g===null&&(g=!1),this._renderWorldCopies=g},fi.worldSize.get=function(){return this.tileSize*this.scale},fi.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},fi.size.get=function(){return new a.Point(this.width,this.height)},fi.bearing.get=function(){return-this.angle/Math.PI*180},fi.bearing.set=function(g){var c=-a.wrap(g,-180,180)*Math.PI/180;this.angle!==c&&(this._unmodified=!1,this.angle=c,this._calcMatrices(),this.rotationMatrix=a.create$2(),a.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},fi.pitch.get=function(){return this._pitch/Math.PI*180},fi.pitch.set=function(g){var c=a.clamp(g,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==c&&(this._unmodified=!1,this._pitch=c,this._calcMatrices())},fi.fov.get=function(){return this._fov/Math.PI*180},fi.fov.set=function(g){g=Math.max(.01,Math.min(60,g)),this._fov!==g&&(this._unmodified=!1,this._fov=g/180*Math.PI,this._calcMatrices())},fi.zoom.get=function(){return this._zoom},fi.zoom.set=function(g){var c=Math.min(Math.max(g,this.minZoom),this.maxZoom);this._zoom!==c&&(this._unmodified=!1,this._zoom=c,this.scale=this.zoomScale(c),this.tileZoom=Math.floor(c),this.zoomFraction=c-this.tileZoom,this._constrain(),this._calcMatrices())},fi.center.get=function(){return this._center},fi.center.set=function(g){g.lat===this._center.lat&&g.lng===this._center.lng||(this._unmodified=!1,this._center=g,this._constrain(),this._calcMatrices())},fi.padding.get=function(){return this._edgeInsets.toJSON()},fi.padding.set=function(g){this._edgeInsets.equals(g)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,g,1),this._calcMatrices())},fi.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},ti.prototype.isPaddingEqual=function(c){return this._edgeInsets.equals(c)},ti.prototype.interpolatePadding=function(c,b,d){this._unmodified=!1,this._edgeInsets.interpolate(c,b,d),this._constrain(),this._calcMatrices()},ti.prototype.coveringZoomLevel=function(c){var b=(c.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/c.tileSize));return Math.max(0,b)},ti.prototype.getVisibleUnwrappedCoordinates=function(c){var b=[new a.UnwrappedTileID(0,c)];if(this._renderWorldCopies)for(var d=this.pointCoordinate(new a.Point(0,0)),w=this.pointCoordinate(new a.Point(this.width,0)),D=this.pointCoordinate(new a.Point(this.width,this.height)),R=this.pointCoordinate(new a.Point(0,this.height)),G=Math.floor(Math.min(d.x,w.x,D.x,R.x)),K=Math.floor(Math.max(d.x,w.x,D.x,R.x)),re=1,ue=G-re;ue<=K+re;ue++)ue!==0&&b.push(new a.UnwrappedTileID(ue,c));return b},ti.prototype.coveringTiles=function(c){var b=this.coveringZoomLevel(c),d=b;if(c.minzoom!==void 0&&bc.maxzoom&&(b=c.maxzoom);var w=a.MercatorCoordinate.fromLngLat(this.center),D=Math.pow(2,b),R=[D*w.x,D*w.y,0],G=so.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,b),K=c.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(K=b);var re=3,ue=function(Ar){return{aabb:new Es([Ar*D,0,0],[(Ar+1)*D,D,0]),zoom:0,x:0,y:0,wrap:Ar,fullyVisible:!1}},be=[],xe=[],Re=b,Ye=c.reparseOverscaled?d:b;if(this._renderWorldCopies)for(var Ze=1;Ze<=3;Ze++)be.push(ue(-Ze)),be.push(ue(Ze));for(be.push(ue(0));be.length>0;){var Ue=be.pop(),Je=Ue.x,ht=Ue.y,Pt=Ue.fullyVisible;if(!Pt){var Nt=Ue.aabb.intersects(G);if(Nt===0)continue;Pt=Nt===2}var Jt=Ue.aabb.distanceX(R),er=Ue.aabb.distanceY(R),Zt=Math.max(Math.abs(Jt),Math.abs(er)),rr=re+(1<rr&&Ue.zoom>=K){xe.push({tileID:new a.OverscaledTileID(Ue.zoom===Re?Ye:Ue.zoom,Ue.wrap,Ue.zoom,Je,ht),distanceSq:a.sqrLen([R[0]-.5-Je,R[1]-.5-ht])});continue}for(var hr=0;hr<4;hr++){var br=(Je<<1)+hr%2,Er=(ht<<1)+(hr>>1);be.push({aabb:Ue.aabb.quadrant(hr),zoom:Ue.zoom+1,x:br,y:Er,wrap:Ue.wrap,fullyVisible:Pt})}}return xe.sort(function(Ar,Xr){return Ar.distanceSq-Xr.distanceSq}).map(function(Ar){return Ar.tileID})},ti.prototype.resize=function(c,b){this.width=c,this.height=b,this.pixelsToGLUnits=[2/c,-2/b],this._constrain(),this._calcMatrices()},fi.unmodified.get=function(){return this._unmodified},ti.prototype.zoomScale=function(c){return Math.pow(2,c)},ti.prototype.scaleZoom=function(c){return Math.log(c)/Math.LN2},ti.prototype.project=function(c){var b=a.clamp(c.lat,-this.maxValidLatitude,this.maxValidLatitude);return new a.Point(a.mercatorXfromLng(c.lng)*this.worldSize,a.mercatorYfromLat(b)*this.worldSize)},ti.prototype.unproject=function(c){return new a.MercatorCoordinate(c.x/this.worldSize,c.y/this.worldSize).toLngLat()},fi.point.get=function(){return this.project(this.center)},ti.prototype.setLocationAtPoint=function(c,b){var d=this.pointCoordinate(b),w=this.pointCoordinate(this.centerPoint),D=this.locationCoordinate(c),R=new a.MercatorCoordinate(D.x-(d.x-w.x),D.y-(d.y-w.y));this.center=this.coordinateLocation(R),this._renderWorldCopies&&(this.center=this.center.wrap())},ti.prototype.locationPoint=function(c){return this.coordinatePoint(this.locationCoordinate(c))},ti.prototype.pointLocation=function(c){return this.coordinateLocation(this.pointCoordinate(c))},ti.prototype.locationCoordinate=function(c){return a.MercatorCoordinate.fromLngLat(c)},ti.prototype.coordinateLocation=function(c){return c.toLngLat()},ti.prototype.pointCoordinate=function(c){var b=0,d=[c.x,c.y,0,1],w=[c.x,c.y,1,1];a.transformMat4(d,d,this.pixelMatrixInverse),a.transformMat4(w,w,this.pixelMatrixInverse);var D=d[3],R=w[3],G=d[0]/D,K=w[0]/R,re=d[1]/D,ue=w[1]/R,be=d[2]/D,xe=w[2]/R,Re=be===xe?0:(b-be)/(xe-be);return new a.MercatorCoordinate(a.number(G,K,Re)/this.worldSize,a.number(re,ue,Re)/this.worldSize)},ti.prototype.coordinatePoint=function(c){var b=[c.x*this.worldSize,c.y*this.worldSize,0,1];return a.transformMat4(b,b,this.pixelMatrix),new a.Point(b[0]/b[3],b[1]/b[3])},ti.prototype.getBounds=function(){return new a.LngLatBounds().extend(this.pointLocation(new a.Point(0,0))).extend(this.pointLocation(new a.Point(this.width,0))).extend(this.pointLocation(new a.Point(this.width,this.height))).extend(this.pointLocation(new a.Point(0,this.height)))},ti.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new a.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},ti.prototype.setMaxBounds=function(c){c?(this.lngRange=[c.getWest(),c.getEast()],this.latRange=[c.getSouth(),c.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},ti.prototype.calculatePosMatrix=function(c,b){b===void 0&&(b=!1);var d=c.key,w=b?this._alignedPosMatrixCache:this._posMatrixCache;if(w[d])return w[d];var D=c.canonical,R=this.worldSize/this.zoomScale(D.z),G=D.x+Math.pow(2,D.z)*c.wrap,K=a.identity(new Float64Array(16));return a.translate(K,K,[G*R,D.y*R,0]),a.scale(K,K,[R/a.EXTENT,R/a.EXTENT,1]),a.multiply(K,b?this.alignedProjMatrix:this.projMatrix,K),w[d]=new Float32Array(K),w[d]},ti.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},ti.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var c=-90,b=90,d=-180,w=180,D,R,G,K,re=this.size,ue=this._unmodified;if(this.latRange){var be=this.latRange;c=a.mercatorYfromLat(be[1])*this.worldSize,b=a.mercatorYfromLat(be[0])*this.worldSize,D=b-cb&&(K=b-Ue)}if(this.lngRange){var Je=Re.x,ht=re.x/2;Je-htw&&(G=w-ht)}(G!==void 0||K!==void 0)&&(this.center=this.unproject(new a.Point(G!==void 0?G:Re.x,K!==void 0?K:Re.y))),this._unmodified=ue,this._constraining=!1}},ti.prototype._calcMatrices=function(){if(this.height){var c=this._fov/2,b=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(c)*this.height;var d=Math.PI/2+this._pitch,w=this._fov*(.5+b.y/this.height),D=Math.sin(w)*this.cameraToCenterDistance/Math.sin(a.clamp(Math.PI-d-w,.01,Math.PI-.01)),R=this.point,G=R.x,K=R.y,re=Math.cos(Math.PI/2-this._pitch)*D+this.cameraToCenterDistance,ue=re*1.01,be=this.height/50,xe=new Float64Array(16);a.perspective(xe,this._fov,this.width/this.height,be,ue),xe[8]=-b.x*2/this.width,xe[9]=b.y*2/this.height,a.scale(xe,xe,[1,-1,1]),a.translate(xe,xe,[0,0,-this.cameraToCenterDistance]),a.rotateX(xe,xe,this._pitch),a.rotateZ(xe,xe,this.angle),a.translate(xe,xe,[-G,-K,0]),this.mercatorMatrix=a.scale([],xe,[this.worldSize,this.worldSize,this.worldSize]),a.scale(xe,xe,[1,1,a.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=xe,this.invProjMatrix=a.invert([],this.projMatrix);var Re=this.width%2/2,Ye=this.height%2/2,Ze=Math.cos(this.angle),Ue=Math.sin(this.angle),Je=G-Math.round(G)+Ze*Re+Ue*Ye,ht=K-Math.round(K)+Ze*Ye+Ue*Re,Pt=new Float64Array(xe);if(a.translate(Pt,Pt,[Je>.5?Je-1:Je,ht>.5?ht-1:ht,0]),this.alignedProjMatrix=Pt,xe=a.create(),a.scale(xe,xe,[this.width/2,-this.height/2,1]),a.translate(xe,xe,[1,-1,0]),this.labelPlaneMatrix=xe,xe=a.create(),a.scale(xe,xe,[1,-1,1]),a.translate(xe,xe,[-1,-1,0]),a.scale(xe,xe,[2/this.width,2/this.height,1]),this.glCoordMatrix=xe,this.pixelMatrix=a.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),xe=a.invert(new Float64Array(16),this.pixelMatrix),!xe)throw new Error("failed to invert matrix");this.pixelMatrixInverse=xe,this._posMatrixCache={},this._alignedPosMatrixCache={}}},ti.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var c=this.pointCoordinate(new a.Point(0,0)),b=[c.x*this.worldSize,c.y*this.worldSize,0,1],d=a.transformMat4(b,b,this.pixelMatrix);return d[3]/this.cameraToCenterDistance},ti.prototype.getCameraPoint=function(){var c=this._pitch,b=Math.tan(c)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.Point(0,b))},ti.prototype.getCameraQueryGeometry=function(c){var b=this.getCameraPoint();if(c.length===1)return[c[0],b];for(var d=b.x,w=b.y,D=b.x,R=b.y,G=0,K=c;G=3&&!c.some(function(d){return isNaN(d)})){var b=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(c[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:b,pitch:+(c[4]||0)}),!0}return!1},Fl.prototype._updateHashUnthrottled=function(){var c=a.window.location.href.replace(/(#.+)?$/,this.getHashString());try{a.window.history.replaceState(a.window.history.state,null,c)}catch(b){}};var rc={linearity:.3,easing:a.bezier(0,0,.3,1)},mf=a.extend({deceleration:2500,maxSpeed:1400},rc),ql=a.extend({deceleration:20,maxSpeed:1400},rc),Ls=a.extend({deceleration:1e3,maxSpeed:360},rc),nh=a.extend({deceleration:1e3,maxSpeed:90},rc),yf=function(c){this._map=c,this.clear()};yf.prototype.clear=function(){this._inertiaBuffer=[]},yf.prototype.record=function(c){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:a.browser.now(),settings:c})},yf.prototype._drainInertiaBuffer=function(){for(var c=this._inertiaBuffer,b=a.browser.now(),d=160;c.length>0&&b-c[0].time>d;)c.shift()},yf.prototype._onMoveEnd=function(c){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var b={zoom:0,bearing:0,pitch:0,pan:new a.Point(0,0),pinchAround:void 0,around:void 0},d=0,w=this._inertiaBuffer;d=this._clickTolerance||this._map.fire(new M(c.type,this._map,c))},U.prototype.dblclick=function(c){return this._firePreventable(new M(c.type,this._map,c))},U.prototype.mouseover=function(c){this._map.fire(new M(c.type,this._map,c))},U.prototype.mouseout=function(c){this._map.fire(new M(c.type,this._map,c))},U.prototype.touchstart=function(c){return this._firePreventable(new P(c.type,this._map,c))},U.prototype.touchmove=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype.touchend=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype.touchcancel=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype._firePreventable=function(c){if(this._map.fire(c),c.defaultPrevented)return{}},U.prototype.isEnabled=function(){return!0},U.prototype.isActive=function(){return!1},U.prototype.enable=function(){},U.prototype.disable=function(){};var Z=function(c){this._map=c};Z.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Z.prototype.mousemove=function(c){this._map.fire(new M(c.type,this._map,c))},Z.prototype.mousedown=function(){this._delayContextMenu=!0},Z.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new M("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Z.prototype.contextmenu=function(c){this._delayContextMenu?this._contextMenuEvent=c:this._map.fire(new M(c.type,this._map,c)),this._map.listens("contextmenu")&&c.preventDefault()},Z.prototype.isEnabled=function(){return!0},Z.prototype.isActive=function(){return!1},Z.prototype.enable=function(){},Z.prototype.disable=function(){};var $=function(c,b){this._map=c,this._el=c.getCanvasContainer(),this._container=c.getContainer(),this._clickTolerance=b.clickTolerance||1};$.prototype.isEnabled=function(){return!!this._enabled},$.prototype.isActive=function(){return!!this._active},$.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},$.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},$.prototype.mousedown=function(c,b){this.isEnabled()&&c.shiftKey&&c.button===0&&(l.disableDrag(),this._startPos=this._lastPos=b,this._active=!0)},$.prototype.mousemoveWindow=function(c,b){if(this._active){var d=b;if(!(this._lastPos.equals(d)||!this._box&&d.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=c.timeStamp),d.length===this.numTouches&&(this.centroid=ae(b),this.touches=X(d,b)))},De.prototype.touchmove=function(c,b,d){if(!(this.aborted||!this.centroid)){var w=X(d,b);for(var D in this.touches){var R=this.touches[D],G=w[D];(!G||G.dist(R)>Pe)&&(this.aborted=!0)}}},De.prototype.touchend=function(c,b,d){if((!this.centroid||c.timeStamp-this.startTime>_e)&&(this.aborted=!0),d.length===0){var w=!this.aborted&&this.centroid;if(this.reset(),w)return w}};var Qe=function(c){this.singleTap=new De(c),this.numTaps=c.numTaps,this.reset()};Qe.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Qe.prototype.touchstart=function(c,b,d){this.singleTap.touchstart(c,b,d)},Qe.prototype.touchmove=function(c,b,d){this.singleTap.touchmove(c,b,d)},Qe.prototype.touchend=function(c,b,d){var w=this.singleTap.touchend(c,b,d);if(w){var D=c.timeStamp-this.lastTime0&&(this._active=!0);var w=X(d,b),D=new a.Point(0,0),R=new a.Point(0,0),G=0;for(var K in w){var re=w[K],ue=this._touches[K];ue&&(D._add(re),R._add(re.sub(ue)),G++,w[K]=re)}if(this._touches=w,!(GMath.abs(g.x)}var Xt=100,Jr=function(g){function c(){g.apply(this,arguments)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.reset=function(){g.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},c.prototype._start=function(d){this._lastPoints=d,ei(d[0].sub(d[1]))&&(this._valid=!1)},c.prototype._move=function(d,w,D){var R=d[0].sub(this._lastPoints[0]),G=d[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(R,G,D.timeStamp),!!this._valid){this._lastPoints=d,this._active=!0;var K=(R.y+G.y)/2,re=-.5;return{pitchDelta:K*re}}},c.prototype.gestureBeginsVertically=function(d,w,D){if(this._valid!==void 0)return this._valid;var R=2,G=d.mag()>=R,K=w.mag()>=R;if(!(!G&&!K)){if(!G||!K)return this._firstMove===void 0&&(this._firstMove=D),D-this._firstMove0==w.y>0;return ei(d)&&ei(w)&&re}},c}(ur),oa={panStep:100,bearingStep:15,pitchStep:10},sa=function(){var c=oa;this._panStep=c.panStep,this._bearingStep=c.bearingStep,this._pitchStep=c.pitchStep,this._rotationDisabled=!1};sa.prototype.reset=function(){this._active=!1},sa.prototype.keydown=function(c){var b=this;if(!(c.altKey||c.ctrlKey||c.metaKey)){var d=0,w=0,D=0,R=0,G=0;switch(c.keyCode){case 61:case 107:case 171:case 187:d=1;break;case 189:case 109:case 173:d=-1;break;case 37:c.shiftKey?w=-1:(c.preventDefault(),R=-1);break;case 39:c.shiftKey?w=1:(c.preventDefault(),R=1);break;case 38:c.shiftKey?D=1:(c.preventDefault(),G=-1);break;case 40:c.shiftKey?D=-1:(c.preventDefault(),G=1);break;default:return}return this._rotationDisabled&&(w=0,D=0),{cameraAnimation:function(K){var re=K.getZoom();K.easeTo({duration:300,easeId:"keyboardHandler",easing:Pi,zoom:d?Math.round(re)+d*(c.shiftKey?2:1):re,bearing:K.getBearing()+w*b._bearingStep,pitch:K.getPitch()+D*b._pitchStep,offset:[-R*b._panStep,-G*b._panStep],center:K.getCenter()},{originalEvent:c})}}}},sa.prototype.enable=function(){this._enabled=!0},sa.prototype.disable=function(){this._enabled=!1,this.reset()},sa.prototype.isEnabled=function(){return this._enabled},sa.prototype.isActive=function(){return this._active},sa.prototype.disableRotation=function(){this._rotationDisabled=!0},sa.prototype.enableRotation=function(){this._rotationDisabled=!1};function Pi(g){return g*(2-g)}var Hi=4.000244140625,tn=1/100,wi=1/450,wn=2,wr=function(c,b){this._map=c,this._el=c.getCanvasContainer(),this._handler=b,this._delta=0,this._defaultZoomRate=tn,this._wheelZoomRate=wi,a.bindAll(["_onTimeout"],this)};wr.prototype.setZoomRate=function(c){this._defaultZoomRate=c},wr.prototype.setWheelZoomRate=function(c){this._wheelZoomRate=c},wr.prototype.isEnabled=function(){return!!this._enabled},wr.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},wr.prototype.isZooming=function(){return!!this._zooming},wr.prototype.enable=function(c){this.isEnabled()||(this._enabled=!0,this._aroundCenter=c&&c.around==="center")},wr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},wr.prototype.wheel=function(c){if(this.isEnabled()){var b=c.deltaMode===a.window.WheelEvent.DOM_DELTA_LINE?c.deltaY*40:c.deltaY,d=a.browser.now(),w=d-(this._lastWheelEventTime||0);this._lastWheelEventTime=d,b!==0&&b%Hi===0?this._type="wheel":b!==0&&Math.abs(b)<4?this._type="trackpad":w>400?(this._type=null,this._lastValue=b,this._timeout=setTimeout(this._onTimeout,40,c)):this._type||(this._type=Math.abs(w*b)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,b+=this._lastValue)),c.shiftKey&&b&&(b=b/4),this._type&&(this._lastWheelEvent=c,this._delta-=b,this._active||this._start(c)),c.preventDefault()}},wr.prototype._onTimeout=function(c){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(c)},wr.prototype._start=function(c){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var b=l.mousePos(this._el,c);this._around=a.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(b)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},wr.prototype.renderFrame=function(){var c=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var b=this._map.transform;if(this._delta!==0){var d=this._type==="wheel"&&Math.abs(this._delta)>Hi?this._wheelZoomRate:this._defaultZoomRate,w=wn/(1+Math.exp(-Math.abs(this._delta*d)));this._delta<0&&w!==0&&(w=1/w);var D=typeof this._targetZoom=="number"?b.zoomScale(this._targetZoom):b.scale;this._targetZoom=Math.min(b.maxZoom,Math.max(b.minZoom,b.scaleZoom(D*w))),this._type==="wheel"&&(this._startZoom=b.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var R=typeof this._targetZoom=="number"?this._targetZoom:b.zoom,G=this._startZoom,K=this._easing,re=!1,ue;if(this._type==="wheel"&&G&&K){var be=Math.min((a.browser.now()-this._lastWheelEventTime)/200,1),xe=K(be);ue=a.number(G,R,xe),be<1?this._frameId||(this._frameId=!0):re=!0}else ue=R,re=!0;return this._active=!0,re&&(this._active=!1,this._finishTimeout=setTimeout(function(){c._zooming=!1,c._handler._triggerRenderFrame(),delete c._targetZoom,delete c._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!re,zoomDelta:ue-b.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},wr.prototype._smoothOutEasing=function(c){var b=a.ease;if(this._prevEase){var d=this._prevEase,w=(a.browser.now()-d.start)/d.duration,D=d.easing(w+.01)-d.easing(w),R=.27/Math.sqrt(D*D+1e-4)*.01,G=Math.sqrt(.27*.27-R*R);b=a.bezier(R,G,.25,1)}return this._prevEase={start:a.browser.now(),duration:c,easing:b},b},wr.prototype.reset=function(){this._active=!1};var Vr=function(c,b){this._clickZoom=c,this._tapZoom=b};Vr.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Vr.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Vr.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Vr.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Bi=function(){this.reset()};Bi.prototype.reset=function(){this._active=!1},Bi.prototype.dblclick=function(c,b){return c.preventDefault(),{cameraAnimation:function(d){d.easeTo({duration:300,zoom:d.getZoom()+(c.shiftKey?-1:1),around:d.unproject(b)},{originalEvent:c})}}},Bi.prototype.enable=function(){this._enabled=!0},Bi.prototype.disable=function(){this._enabled=!1,this.reset()},Bi.prototype.isEnabled=function(){return this._enabled},Bi.prototype.isActive=function(){return this._active};var Mi=function(){this._tap=new Qe({numTouches:1,numTaps:1}),this.reset()};Mi.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Mi.prototype.touchstart=function(c,b,d){this._swipePoint||(this._tapTime&&c.timeStamp-this._tapTime>ye&&this.reset(),this._tapTime?d.length>0&&(this._swipePoint=b[0],this._swipeTouch=d[0].identifier):this._tap.touchstart(c,b,d))},Mi.prototype.touchmove=function(c,b,d){if(!this._tapTime)this._tap.touchmove(c,b,d);else if(this._swipePoint){if(d[0].identifier!==this._swipeTouch)return;var w=b[0],D=w.y-this._swipePoint.y;return this._swipePoint=w,c.preventDefault(),this._active=!0,{zoomDelta:D/128}}},Mi.prototype.touchend=function(c,b,d){if(this._tapTime)this._swipePoint&&d.length===0&&this.reset();else{var w=this._tap.touchend(c,b,d);w&&(this._tapTime=c.timeStamp)}},Mi.prototype.touchcancel=function(){this.reset()},Mi.prototype.enable=function(){this._enabled=!0},Mi.prototype.disable=function(){this._enabled=!1,this.reset()},Mi.prototype.isEnabled=function(){return this._enabled},Mi.prototype.isActive=function(){return this._active};var lo=function(c,b,d){this._el=c,this._mousePan=b,this._touchPan=d};lo.prototype.enable=function(c){this._inertiaOptions=c||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},lo.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},lo.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},lo.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Rn=function(c,b,d){this._pitchWithRotate=c.pitchWithRotate,this._mouseRotate=b,this._mousePitch=d};Rn.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Rn.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Rn.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Rn.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var pn=function(c,b,d,w){this._el=c,this._touchZoom=b,this._touchRotate=d,this._tapDragZoom=w,this._rotationDisabled=!1,this._enabled=!0};pn.prototype.enable=function(c){this._touchZoom.enable(c),this._rotationDisabled||this._touchRotate.enable(c),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},pn.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},pn.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},pn.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},pn.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},pn.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var mi=function(g){return g.zoom||g.drag||g.pitch||g.rotate},jo=function(g){function c(){g.apply(this,arguments)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c}(a.Event);function uo(g){return g.panDelta&&g.panDelta.mag()||g.zoomDelta||g.bearingDelta||g.pitchDelta}var ci=function(c,b){this._map=c,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new yf(c),this._bearingSnap=b.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(b),a.bindAll(["handleEvent","handleWindowEvent"],this);var d=this._el;this._listeners=[[d,"touchstart",{passive:!0}],[d,"touchmove",{passive:!1}],[d,"touchend",void 0],[d,"touchcancel",void 0],[d,"mousedown",void 0],[d,"mousemove",void 0],[d,"mouseup",void 0],[a.window.document,"mousemove",{capture:!0}],[a.window.document,"mouseup",void 0],[d,"mouseover",void 0],[d,"mouseout",void 0],[d,"dblclick",void 0],[d,"click",void 0],[d,"keydown",{capture:!1}],[d,"keyup",void 0],[d,"wheel",{passive:!1}],[d,"contextmenu",void 0],[a.window,"blur",void 0]];for(var w=0,D=this._listeners;wG?Math.min(2,Jt):Math.max(.5,Jt),Ar=Math.pow(Er,1-hr),Xr=R.unproject(Pt.add(Nt.mult(hr*Ar)).mult(br));R.setLocationAtPoint(R.renderWorldCopies?Xr.wrap():Xr,Ue)}D._fireMoveEvents(w)},function(hr){D._afterEase(w,hr)},d),this},c.prototype._prepareEase=function(d,w,D){D===void 0&&(D={}),this._moving=!0,!w&&!D.moving&&this.fire(new a.Event("movestart",d)),this._zooming&&!D.zooming&&this.fire(new a.Event("zoomstart",d)),this._rotating&&!D.rotating&&this.fire(new a.Event("rotatestart",d)),this._pitching&&!D.pitching&&this.fire(new a.Event("pitchstart",d))},c.prototype._fireMoveEvents=function(d){this.fire(new a.Event("move",d)),this._zooming&&this.fire(new a.Event("zoom",d)),this._rotating&&this.fire(new a.Event("rotate",d)),this._pitching&&this.fire(new a.Event("pitch",d))},c.prototype._afterEase=function(d,w){if(!(this._easeId&&w&&this._easeId===w)){delete this._easeId;var D=this._zooming,R=this._rotating,G=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,D&&this.fire(new a.Event("zoomend",d)),R&&this.fire(new a.Event("rotateend",d)),G&&this.fire(new a.Event("pitchend",d)),this.fire(new a.Event("moveend",d))}},c.prototype.flyTo=function(d,w){var D=this;if(!d.essential&&a.browser.prefersReducedMotion){var R=a.pick(d,["center","zoom","bearing","pitch","around"]);return this.jumpTo(R,w)}this.stop(),d=a.extend({offset:[0,0],speed:1.2,curve:1.42,easing:a.ease},d);var G=this.transform,K=this.getZoom(),re=this.getBearing(),ue=this.getPitch(),be=this.getPadding(),xe="zoom"in d?a.clamp(+d.zoom,G.minZoom,G.maxZoom):K,Re="bearing"in d?this._normalizeBearing(d.bearing,re):re,Ye="pitch"in d?+d.pitch:ue,Ze="padding"in d?d.padding:G.padding,Ue=G.zoomScale(xe-K),Je=a.Point.convert(d.offset),ht=G.centerPoint.add(Je),Pt=G.pointLocation(ht),Nt=a.LngLat.convert(d.center||Pt);this._normalizeCenter(Nt);var Jt=G.project(Pt),er=G.project(Nt).sub(Jt),Zt=d.curve,rr=Math.max(G.width,G.height),hr=rr/Ue,br=er.mag();if("minZoom"in d){var Er=a.clamp(Math.min(d.minZoom,K,xe),G.minZoom,G.maxZoom),Ar=rr/G.zoomScale(Er-K);Zt=Math.sqrt(Ar/br*2)}var Xr=Zt*Zt;function Ra(na){var Ba=(hr*hr-rr*rr+(na?-1:1)*Xr*Xr*br*br)/(2*(na?hr:rr)*Xr*br);return Math.log(Math.sqrt(Ba*Ba+1)-Ba)}function xa(na){return(Math.exp(na)-Math.exp(-na))/2}function qr(na){return(Math.exp(na)+Math.exp(-na))/2}function Sa(na){return xa(na)/qr(na)}var ia=Ra(0),Ya=function(na){return qr(ia)/qr(ia+Zt*na)},Va=function(na){return rr*((qr(ia)*Sa(ia+Zt*na)-xa(ia))/Xr)/br},Si=(Ra(1)-ia)/Zt;if(Math.abs(br)<1e-6||!isFinite(Si)){if(Math.abs(rr-hr)<1e-6)return this.easeTo(d,w);var La=hrd.maxDuration&&(d.duration=0),this._zooming=!0,this._rotating=re!==Re,this._pitching=Ye!==ue,this._padding=!G.isPaddingEqual(Ze),this._prepareEase(w,!1),this._ease(function(na){var Ba=na*Si,rn=1/Ya(Ba);G.zoom=na===1?xe:K+G.scaleZoom(rn),D._rotating&&(G.bearing=a.number(re,Re,na)),D._pitching&&(G.pitch=a.number(ue,Ye,na)),D._padding&&(G.interpolatePadding(be,Ze,na),ht=G.centerPoint.add(Je));var Fn=na===1?Nt:G.unproject(Jt.add(er.mult(Va(Ba))).mult(rn));G.setLocationAtPoint(G.renderWorldCopies?Fn.wrap():Fn,ht),D._fireMoveEvents(w)},function(){return D._afterEase(w)},d),this},c.prototype.isEasing=function(){return!!this._easeFrameId},c.prototype.stop=function(){return this._stop()},c.prototype._stop=function(d,w){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var D=this._onEaseEnd;delete this._onEaseEnd,D.call(this,w)}if(!d){var R=this.handlers;R&&R.stop(!1)}return this},c.prototype._ease=function(d,w,D){D.animate===!1||D.duration===0?(d(1),w()):(this._easeStart=a.browser.now(),this._easeOptions=D,this._onEaseFrame=d,this._onEaseEnd=w,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},c.prototype._renderFrameCallback=function(){var d=Math.min((a.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(d)),d<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},c.prototype._normalizeBearing=function(d,w){d=a.wrap(d,-180,180);var D=Math.abs(d-w);return Math.abs(d-360-w)180?-360:D<-180?360:0}},c}(a.Evented),Aa=function(c){c===void 0&&(c={}),this.options=c,a.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Aa.prototype.getDefaultPosition=function(){return"bottom-right"},Aa.prototype.onAdd=function(c){var b=this.options&&this.options.compact;return this._map=c,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=l.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=l.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),b&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),b===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Aa.prototype.onRemove=function(){l.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Aa.prototype._setElementTitle=function(c,b){var d=this._map._getUIString("AttributionControl."+b);c.title=d,c.setAttribute("aria-label",d)},Aa.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Aa.prototype._updateEditLink=function(){var c=this._editLink;c||(c=this._editLink=this._container.querySelector(".mapbox-improve-map"));var b=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||a.config.ACCESS_TOKEN}];if(c){var d=b.reduce(function(w,D,R){return D.value&&(w+=D.key+"="+D.value+(R=0)return!1;return!0});var G=c.join(" | ");G!==this._attribHTML&&(this._attribHTML=G,c.length?(this._innerContainer.innerHTML=G,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Aa.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var ui=function(){a.bindAll(["_updateLogo"],this),a.bindAll(["_updateCompact"],this)};ui.prototype.onAdd=function(c){this._map=c,this._container=l.create("div","mapboxgl-ctrl");var b=l.create("a","mapboxgl-ctrl-logo");return b.target="_blank",b.rel="noopener nofollow",b.href="https://www.mapbox.com/",b.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),b.setAttribute("rel","noopener nofollow"),this._container.appendChild(b),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},ui.prototype.onRemove=function(){l.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},ui.prototype.getDefaultPosition=function(){return"bottom-left"},ui.prototype._updateLogo=function(c){(!c||c.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},ui.prototype._logoRequired=function(){if(this._map.style){var c=this._map.style.sourceCaches;for(var b in c){var d=c[b].getSource();if(d.mapbox_logo)return!0}return!1}},ui.prototype._updateCompact=function(){var c=this._container.children;if(c.length){var b=c[0];this._map.getCanvasContainer().offsetWidth<250?b.classList.add("mapboxgl-compact"):b.classList.remove("mapboxgl-compact")}};var Bl=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Bl.prototype.add=function(c){var b=++this._id,d=this._queue;return d.push({callback:c,id:b,cancelled:!1}),b},Bl.prototype.remove=function(c){for(var b=this._currentlyRunning,d=b?this._queue.concat(b):this._queue,w=0,D=d;wd.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(d.minPitch!=null&&d.maxPitch!=null&&d.minPitch>d.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(d.minPitch!=null&&d.minPitchxf)throw new Error("maxPitch must be less than or equal to "+xf);var D=new ti(d.minZoom,d.maxZoom,d.minPitch,d.maxPitch,d.renderWorldCopies);if(g.call(this,D,d),this._interactive=d.interactive,this._maxTileCacheSize=d.maxTileCacheSize,this._failIfMajorPerformanceCaveat=d.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=d.preserveDrawingBuffer,this._antialias=d.antialias,this._trackResize=d.trackResize,this._bearingSnap=d.bearingSnap,this._refreshExpiredTiles=d.refreshExpiredTiles,this._fadeDuration=d.fadeDuration,this._crossSourceCollisions=d.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=d.collectResourceTiming,this._renderTaskQueue=new Bl,this._controls=[],this._mapId=a.uniqueId(),this._locale=a.extend({},Hv,d.locale),this._clickTolerance=d.clickTolerance,this._requestManager=new a.RequestManager(d.transformRequest,d.accessToken),typeof d.container=="string"){if(this._container=a.window.document.getElementById(d.container),!this._container)throw new Error("Container '"+d.container+"' not found.")}else if(d.container instanceof ty)this._container=d.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(d.maxBounds&&this.setMaxBounds(d.maxBounds),a.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return w._update(!1)}),this.on("moveend",function(){return w._update(!1)}),this.on("zoom",function(){return w._update(!0)}),typeof a.window!="undefined"&&(a.window.addEventListener("online",this._onWindowOnline,!1),a.window.addEventListener("resize",this._onWindowResize,!1),a.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new ci(this,d);var R=typeof d.hash=="string"&&d.hash||void 0;this._hash=d.hash&&new Fl(R).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:d.center,zoom:d.zoom,bearing:d.bearing,pitch:d.pitch}),d.bounds&&(this.resize(),this.fitBounds(d.bounds,a.extend({},d.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=d.localIdeographFontFamily,d.style&&this.setStyle(d.style,{localIdeographFontFamily:d.localIdeographFontFamily}),d.attributionControl&&this.addControl(new Aa({customAttribution:d.customAttribution})),this.addControl(new ui,d.logoPosition),this.on("style.load",function(){w.transform.unmodified&&w.jumpTo(w.style.stylesheet)}),this.on("data",function(G){w._update(G.dataType==="style"),w.fire(new a.Event(G.dataType+"data",G))}),this.on("dataloading",function(G){w.fire(new a.Event(G.dataType+"dataloading",G))})}g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c;var b={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return c.prototype._getMapId=function(){return this._mapId},c.prototype.addControl=function(w,D){if(D===void 0&&(w.getDefaultPosition?D=w.getDefaultPosition():D="top-right"),!w||!w.onAdd)return this.fire(new a.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var R=w.onAdd(this);this._controls.push(w);var G=this._controlPositions[D];return D.indexOf("bottom")!==-1?G.insertBefore(R,G.firstChild):G.appendChild(R),this},c.prototype.removeControl=function(w){if(!w||!w.onRemove)return this.fire(new a.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var D=this._controls.indexOf(w);return D>-1&&this._controls.splice(D,1),w.onRemove(this),this},c.prototype.hasControl=function(w){return this._controls.indexOf(w)>-1},c.prototype.resize=function(w){var D=this._containerDimensions(),R=D[0],G=D[1];this._resizeCanvas(R,G),this.transform.resize(R,G),this.painter.resize(R,G);var K=!this._moving;return K&&(this.stop(),this.fire(new a.Event("movestart",w)).fire(new a.Event("move",w))),this.fire(new a.Event("resize",w)),K&&this.fire(new a.Event("moveend",w)),this},c.prototype.getBounds=function(){return this.transform.getBounds()},c.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},c.prototype.setMaxBounds=function(w){return this.transform.setMaxBounds(a.LngLatBounds.convert(w)),this._update()},c.prototype.setMinZoom=function(w){if(w=w==null?oh:w,w>=oh&&w<=this.transform.maxZoom)return this.transform.minZoom=w,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=w,this._update(),this.getZoom()>w&&this.setZoom(w),this;throw new Error("maxZoom must be greater than the current minZoom")},c.prototype.getMaxZoom=function(){return this.transform.maxZoom},c.prototype.setMinPitch=function(w){if(w=w==null?Lo:w,w=Lo&&w<=this.transform.maxPitch)return this.transform.minPitch=w,this._update(),this.getPitch()xf)throw new Error("maxPitch must be less than or equal to "+xf);if(w>=this.transform.minPitch)return this.transform.maxPitch=w,this._update(),this.getPitch()>w&&this.setPitch(w),this;throw new Error("maxPitch must be greater than the current minPitch")},c.prototype.getMaxPitch=function(){return this.transform.maxPitch},c.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},c.prototype.setRenderWorldCopies=function(w){return this.transform.renderWorldCopies=w,this._update()},c.prototype.project=function(w){return this.transform.locationPoint(a.LngLat.convert(w))},c.prototype.unproject=function(w){return this.transform.pointLocation(a.Point.convert(w))},c.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},c.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},c.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},c.prototype._createDelegatedListener=function(w,D,R){var G=this,K;if(w==="mouseenter"||w==="mouseover"){var re=!1,ue=function(Ue){var Je=G.getLayer(D)?G.queryRenderedFeatures(Ue.point,{layers:[D]}):[];Je.length?re||(re=!0,R.call(G,new M(w,G,Ue.originalEvent,{features:Je}))):re=!1},be=function(){re=!1};return{layer:D,listener:R,delegates:{mousemove:ue,mouseout:be}}}else if(w==="mouseleave"||w==="mouseout"){var xe=!1,Re=function(Ue){var Je=G.getLayer(D)?G.queryRenderedFeatures(Ue.point,{layers:[D]}):[];Je.length?xe=!0:xe&&(xe=!1,R.call(G,new M(w,G,Ue.originalEvent)))},Ye=function(Ue){xe&&(xe=!1,R.call(G,new M(w,G,Ue.originalEvent)))};return{layer:D,listener:R,delegates:{mousemove:Re,mouseout:Ye}}}else{var Ze=function(Ue){var Je=G.getLayer(D)?G.queryRenderedFeatures(Ue.point,{layers:[D]}):[];Je.length&&(Ue.features=Je,R.call(G,Ue),delete Ue.features)};return{layer:D,listener:R,delegates:(K={},K[w]=Ze,K)}}},c.prototype.on=function(w,D,R){if(R===void 0)return g.prototype.on.call(this,w,D);var G=this._createDelegatedListener(w,D,R);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[w]=this._delegatedListeners[w]||[],this._delegatedListeners[w].push(G);for(var K in G.delegates)this.on(K,G.delegates[K]);return this},c.prototype.once=function(w,D,R){if(R===void 0)return g.prototype.once.call(this,w,D);var G=this._createDelegatedListener(w,D,R);for(var K in G.delegates)this.once(K,G.delegates[K]);return this},c.prototype.off=function(w,D,R){var G=this;if(R===void 0)return g.prototype.off.call(this,w,D);var K=function(re){for(var ue=re[w],be=0;be180;){var R=b.locationPoint(g);if(R.x>=0&&R.y>=0&&R.x<=b.width&&R.y<=b.height)break;g.lng>b.center.lng?g.lng-=360:g.lng+=360}return g}var Zv={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Fp(g,c,b){var d=g.classList;for(var w in Zv)d.remove("mapboxgl-"+b+"-anchor-"+w);d.add("mapboxgl-"+b+"-anchor-"+c)}var lh=function(g){function c(b,d){if(g.call(this),(b instanceof a.window.HTMLElement||d)&&(b=a.extend({element:b},d)),a.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=b&&b.anchor||"center",this._color=b&&b.color||"#3FB1CE",this._scale=b&&b.scale||1,this._draggable=b&&b.draggable||!1,this._clickTolerance=b&&b.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=b&&b.rotation||0,this._rotationAlignment=b&&b.rotationAlignment||"auto",this._pitchAlignment=b&&b.pitchAlignment&&b.pitchAlignment!=="auto"?b.pitchAlignment:this._rotationAlignment,!b||!b.element){this._defaultMarker=!0,this._element=l.create("div"),this._element.setAttribute("aria-label","Map marker");var w=l.createNS("http://www.w3.org/2000/svg","svg"),D=41,R=27;w.setAttributeNS(null,"display","block"),w.setAttributeNS(null,"height",D+"px"),w.setAttributeNS(null,"width",R+"px"),w.setAttributeNS(null,"viewBox","0 0 "+R+" "+D);var G=l.createNS("http://www.w3.org/2000/svg","g");G.setAttributeNS(null,"stroke","none"),G.setAttributeNS(null,"stroke-width","1"),G.setAttributeNS(null,"fill","none"),G.setAttributeNS(null,"fill-rule","evenodd");var K=l.createNS("http://www.w3.org/2000/svg","g");K.setAttributeNS(null,"fill-rule","nonzero");var re=l.createNS("http://www.w3.org/2000/svg","g");re.setAttributeNS(null,"transform","translate(3.0, 29.0)"),re.setAttributeNS(null,"fill","#000000");for(var ue=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],be=0,xe=ue;be=w}this._isDragging&&(this._pos=d.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.Event("dragstart"))),this.fire(new a.Event("drag")))},c.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.Event("dragend")),this._state="inactive"},c.prototype._addDragHandler=function(d){this._element.contains(d.originalEvent.target)&&(d.preventDefault(),this._positionDelta=d.point.sub(this._pos).add(this._offset),this._pointerdownPos=d.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},c.prototype.setDraggable=function(d){return this._draggable=!!d,this._map&&(d?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},c.prototype.isDraggable=function(){return this._draggable},c.prototype.setRotation=function(d){return this._rotation=d||0,this._update(),this},c.prototype.getRotation=function(){return this._rotation},c.prototype.setRotationAlignment=function(d){return this._rotationAlignment=d||"auto",this._update(),this},c.prototype.getRotationAlignment=function(){return this._rotationAlignment},c.prototype.setPitchAlignment=function(d){return this._pitchAlignment=d&&d!=="auto"?d:this._rotationAlignment,this._update(),this},c.prototype.getPitchAlignment=function(){return this._pitchAlignment},c}(a.Evented),iy={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},bf;function Yv(g){bf!==void 0?g(bf):a.window.navigator.permissions!==void 0?a.window.navigator.permissions.query({name:"geolocation"}).then(function(c){bf=c.state!=="denied",g(bf)}):(bf=!!a.window.navigator.geolocation,g(bf))}var uh=0,ic=!1,g1=function(g){function c(b){g.call(this),this.options=a.extend({},iy,b),a.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.onAdd=function(d){return this._map=d,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),Yv(this._setupUI),this._container},c.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),l.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,uh=0,ic=!1},c.prototype._isOutOfMapMaxBounds=function(d){var w=this._map.getMaxBounds(),D=d.coords;return w&&(D.longitudew.getEast()||D.latitudew.getNorth())},c.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},c.prototype._onSuccess=function(d){if(this._map){if(this._isOutOfMapMaxBounds(d)){this._setErrorState(),this.fire(new a.Event("outofmaxbounds",d)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=d,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(d),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(d),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("geolocate",d)),this._finish()}},c.prototype._updateCamera=function(d){var w=new a.LngLat(d.coords.longitude,d.coords.latitude),D=d.coords.accuracy,R=this._map.getBearing(),G=a.extend({bearing:R},this.options.fitBoundsOptions);this._map.fitBounds(w.toBounds(D),G,{geolocateSource:!0})},c.prototype._updateMarker=function(d){if(d){var w=new a.LngLat(d.coords.longitude,d.coords.latitude);this._accuracyCircleMarker.setLngLat(w).addTo(this._map),this._userLocationDotMarker.setLngLat(w).addTo(this._map),this._accuracy=d.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},c.prototype._updateCircleRadius=function(){var d=this._map._container.clientHeight/2,w=this._map.unproject([0,d]),D=this._map.unproject([1,d]),R=w.distanceTo(D),G=Math.ceil(2*this._accuracy/R);this._circleElement.style.width=G+"px",this._circleElement.style.height=G+"px"},c.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},c.prototype._onError=function(d){if(this._map){if(this.options.trackUserLocation)if(d.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var w=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=w,this._geolocateButton.setAttribute("aria-label",w),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(d.code===3&&ic)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("error",d)),this._finish()}},c.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},c.prototype._setupUI=function(d){var w=this;if(this._container.addEventListener("contextmenu",function(G){return G.preventDefault()}),this._geolocateButton=l.create("button","mapboxgl-ctrl-geolocate",this._container),l.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",d===!1){a.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var D=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=D,this._geolocateButton.setAttribute("aria-label",D)}else{var R=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=R,this._geolocateButton.setAttribute("aria-label",R)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=l.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new lh(this._dotElement),this._circleElement=l.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new lh({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(G){var K=G.originalEvent&&G.originalEvent.type==="resize";!G.geolocateSource&&w._watchState==="ACTIVE_LOCK"&&!K&&(w._watchState="BACKGROUND",w._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),w._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),w.fire(new a.Event("trackuserlocationend")))})},c.prototype.trigger=function(){if(!this._setup)return a.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":uh--,ic=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new a.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),uh++;var d;uh>1?(d={maximumAge:6e5,timeout:0},ic=!0):(d=this.options.positionOptions,ic=!1),this._geolocationWatchID=a.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,d)}}else a.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},c.prototype._clearWatch=function(){a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},c}(a.Evented),ny={maxWidth:100,unit:"metric"},nc=function(c){this.options=a.extend({},ny,c),a.bindAll(["_onMove","setUnit"],this)};nc.prototype.getDefaultPosition=function(){return"bottom-left"},nc.prototype._onMove=function(){oy(this._map,this._container,this.options)},nc.prototype.onAdd=function(c){return this._map=c,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",c.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},nc.prototype.onRemove=function(){l.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},nc.prototype.setUnit=function(c){this.options.unit=c,oy(this._map,this._container,this.options)};function oy(g,c,b){var d=b&&b.maxWidth||100,w=g._container.clientHeight/2,D=g.unproject([0,w]),R=g.unproject([d,w]),G=D.distanceTo(R);if(b&&b.unit==="imperial"){var K=3.2808*G;if(K>5280){var re=K/5280;fh(c,d,re,g._getUIString("ScaleControl.Miles"))}else fh(c,d,K,g._getUIString("ScaleControl.Feet"))}else if(b&&b.unit==="nautical"){var ue=G/1852;fh(c,d,ue,g._getUIString("ScaleControl.NauticalMiles"))}else G>=1e3?fh(c,d,G/1e3,g._getUIString("ScaleControl.Kilometers")):fh(c,d,G,g._getUIString("ScaleControl.Meters"))}function fh(g,c,b,d){var w=x1(b),D=w/b;g.style.width=c*D+"px",g.innerHTML=w+" "+d}function _1(g){var c=Math.pow(10,Math.ceil(-Math.log(g)/Math.LN10));return Math.round(g*c)/c}function x1(g){var c=Math.pow(10,(""+Math.floor(g)).length-1),b=g/c;return b=b>=10?10:b>=5?5:b>=3?3:b>=2?2:b>=1?1:_1(b),c*b}var Qs=function(c){this._fullscreen=!1,c&&c.container&&(c.container instanceof a.window.HTMLElement?this._container=c.container:a.warnOnce("Full screen control 'container' must be a DOM element.")),a.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in a.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in a.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in a.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in a.window.document&&(this._fullscreenchange="MSFullscreenChange")};Qs.prototype.onAdd=function(c){return this._map=c,this._container||(this._container=this._map.getContainer()),this._controlContainer=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",a.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Qs.prototype.onRemove=function(){l.remove(this._controlContainer),this._map=null,a.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Qs.prototype._checkFullscreenSupport=function(){return!!(a.window.document.fullscreenEnabled||a.window.document.mozFullScreenEnabled||a.window.document.msFullscreenEnabled||a.window.document.webkitFullscreenEnabled)},Qs.prototype._setupUI=function(){var c=this._fullscreenButton=l.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);l.create("span","mapboxgl-ctrl-icon",c).setAttribute("aria-hidden",!0),c.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),a.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Qs.prototype._updateTitle=function(){var c=this._getTitle();this._fullscreenButton.setAttribute("aria-label",c),this._fullscreenButton.title=c},Qs.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Qs.prototype._isFullscreen=function(){return this._fullscreen},Qs.prototype._changeIcon=function(){var c=a.window.document.fullscreenElement||a.window.document.mozFullScreenElement||a.window.document.webkitFullscreenElement||a.window.document.msFullscreenElement;c===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Qs.prototype._onClickFullscreen=function(){this._isFullscreen()?a.window.document.exitFullscreen?a.window.document.exitFullscreen():a.window.document.mozCancelFullScreen?a.window.document.mozCancelFullScreen():a.window.document.msExitFullscreen?a.window.document.msExitFullscreen():a.window.document.webkitCancelFullScreen&&a.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var b1={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},w1=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),s3=function(g){function c(b){g.call(this),this.options=a.extend(Object.create(b1),b),a.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.addTo=function(d){return this._map&&this.remove(),this._map=d,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new a.Event("open")),this},c.prototype.isOpen=function(){return!!this._map},c.prototype.remove=function(){return this._content&&l.remove(this._content),this._container&&(l.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new a.Event("close")),this},c.prototype.getLngLat=function(){return this._lngLat},c.prototype.setLngLat=function(d){return this._lngLat=a.LngLat.convert(d),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},c.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},c.prototype.getElement=function(){return this._container},c.prototype.setText=function(d){return this.setDOMContent(a.window.document.createTextNode(d))},c.prototype.setHTML=function(d){var w=a.window.document.createDocumentFragment(),D=a.window.document.createElement("body"),R;for(D.innerHTML=d;R=D.firstChild,!!R;)w.appendChild(R);return this.setDOMContent(w)},c.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},c.prototype.setMaxWidth=function(d){return this.options.maxWidth=d,this._update(),this},c.prototype.setDOMContent=function(d){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=l.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(d),this._createCloseButton(),this._update(),this._focusFirstElement(),this},c.prototype.addClassName=function(d){this._container&&this._container.classList.add(d)},c.prototype.removeClassName=function(d){this._container&&this._container.classList.remove(d)},c.prototype.setOffset=function(d){return this.options.offset=d,this._update(),this},c.prototype.toggleClassName=function(d){if(this._container)return this._container.classList.toggle(d)},c.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=l.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},c.prototype._onMouseUp=function(d){this._update(d.point)},c.prototype._onMouseMove=function(d){this._update(d.point)},c.prototype._onDrag=function(d){this._update(d.point)},c.prototype._update=function(d){var w=this,D=this._lngLat||this._trackPointer;if(!(!this._map||!D||!this._content)&&(this._container||(this._container=l.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=l.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Re){return w._container.classList.add(Re)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=ku(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!d))){var R=this._pos=this._trackPointer&&d?d:this._map.project(this._lngLat),G=this.options.anchor,K=T1(this.options.offset);if(!G){var re=this._container.offsetWidth,ue=this._container.offsetHeight,be;R.y+K.bottom.ythis._map.transform.height-ue?be=["bottom"]:be=[],R.xthis._map.transform.width-re/2&&be.push("right"),be.length===0?G="bottom":G=be.join("-")}var xe=R.add(K[G]).round();l.setTransform(this._container,Zv[G]+" translate("+xe.x+"px,"+xe.y+"px)"),Fp(this._container,G,"popup")}},c.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var d=this._container.querySelector(w1);d&&d.focus()}},c.prototype._onClose=function(){this.remove()},c}(a.Evented);function T1(g){if(g)if(typeof g=="number"){var c=Math.round(Math.sqrt(.5*Math.pow(g,2)));return{center:new a.Point(0,0),top:new a.Point(0,g),"top-left":new a.Point(c,c),"top-right":new a.Point(-c,c),bottom:new a.Point(0,-g),"bottom-left":new a.Point(c,-c),"bottom-right":new a.Point(-c,-c),left:new a.Point(g,0),right:new a.Point(-g,0)}}else if(g instanceof a.Point||Array.isArray(g)){var b=a.Point.convert(g);return{center:b,top:b,"top-left":b,"top-right":b,bottom:b,"bottom-left":b,"bottom-right":b,left:b,right:b}}else return{center:a.Point.convert(g.center||[0,0]),top:a.Point.convert(g.top||[0,0]),"top-left":a.Point.convert(g["top-left"]||[0,0]),"top-right":a.Point.convert(g["top-right"]||[0,0]),bottom:a.Point.convert(g.bottom||[0,0]),"bottom-left":a.Point.convert(g["bottom-left"]||[0,0]),"bottom-right":a.Point.convert(g["bottom-right"]||[0,0]),left:a.Point.convert(g.left||[0,0]),right:a.Point.convert(g.right||[0,0])};else return T1(new a.Point(0,0))}var Tn={version:a.version,supported:s,setRTLTextPlugin:a.setRTLTextPlugin,getRTLTextPluginStatus:a.getRTLTextPluginStatus,Map:ay,NavigationControl:Su,GeolocateControl:g1,AttributionControl:Aa,ScaleControl:nc,FullscreenControl:Qs,Popup:s3,Marker:lh,Style:Ts,LngLat:a.LngLat,LngLatBounds:a.LngLatBounds,Point:a.Point,MercatorCoordinate:a.MercatorCoordinate,Evented:a.Evented,config:a.config,prewarm:Br,clearPrewarmedResources:ca,get accessToken(){return a.config.ACCESS_TOKEN},set accessToken(g){a.config.ACCESS_TOKEN=g},get baseApiUrl(){return a.config.API_URL},set baseApiUrl(g){a.config.API_URL=g},get workerCount(){return $t.workerCount},set workerCount(g){$t.workerCount=g},get maxParallelImageRequests(){return a.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(g){a.config.MAX_PARALLEL_IMAGE_REQUESTS=g},clearStorage:function(c){a.clearTileCache(c)},workerUrl:""};return Tn}),r})});var TH=me((dbe,wH)=>{wH.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var Ob=me(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});var Zs=63710088e-1,yA={centimeters:Zs*100,centimetres:Zs*100,degrees:360/(2*Math.PI),feet:Zs*3.28084,inches:Zs*39.37,kilometers:Zs/1e3,kilometres:Zs/1e3,meters:Zs,metres:Zs,miles:Zs/1609.344,millimeters:Zs*1e3,millimetres:Zs*1e3,nauticalmiles:Zs/1852,radians:1,yards:Zs*1.0936},mA={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function tv(e,t,r={}){let i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function Sde(e,t,r={}){switch(e){case"Point":return gA(t).geometry;case"LineString":return xA(t).geometry;case"Polygon":return _A(t).geometry;case"MultiPoint":return MH(t).geometry;case"MultiLineString":return AH(t).geometry;case"MultiPolygon":return SH(t).geometry;default:throw new Error(e+" is invalid")}}function gA(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Nb(e[0])||!Nb(e[1]))throw new Error("coordinates must contain numbers");return tv({type:"Point",coordinates:e},t,r)}function kde(e,t,r={}){return Bb(e.map(i=>gA(i,t)),r)}function _A(e,t,r={}){for(let a of e){if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(a[a.length-1].length!==a[0].length)throw new Error("First and last Position are not equivalent.");for(let s=0;s_A(i,t)),r)}function xA(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return tv({type:"LineString",coordinates:e},t,r)}function Ede(e,t,r={}){return Bb(e.map(i=>xA(i,t)),r)}function Bb(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function AH(e,t,r={}){return tv({type:"MultiLineString",coordinates:e},t,r)}function MH(e,t,r={}){return tv({type:"MultiPoint",coordinates:e},t,r)}function SH(e,t,r={}){return tv({type:"MultiPolygon",coordinates:e},t,r)}function Lde(e,t,r={}){return tv({type:"GeometryCollection",geometries:e},t,r)}function Dde(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function kH(e,t="kilometers"){let r=yA[t];if(!r)throw new Error(t+" units is invalid");return e*r}function bA(e,t="kilometers"){let r=yA[t];if(!r)throw new Error(t+" units is invalid");return e/r}function Pde(e,t){return CH(bA(e,t))}function zde(e){let t=e%360;return t<0&&(t+=360),t}function Ide(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function CH(e){return e%(2*Math.PI)*180/Math.PI}function Rde(e){return e%360*Math.PI/180}function Fde(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return kH(bA(e,t),r)}function qde(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let i=mA[t];if(!i)throw new Error("invalid original units");let a=mA[r];if(!a)throw new Error("invalid final units");return e/i*a}function Nb(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Nde(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Bde(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!Nb(t))throw new Error("bbox must only contain numbers")})}function Ode(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}Ci.areaFactors=mA;Ci.azimuthToBearing=Ide;Ci.bearingToAzimuth=zde;Ci.convertArea=qde;Ci.convertLength=Fde;Ci.degreesToRadians=Rde;Ci.earthRadius=Zs;Ci.factors=yA;Ci.feature=tv;Ci.featureCollection=Bb;Ci.geometry=Sde;Ci.geometryCollection=Lde;Ci.isNumber=Nb;Ci.isObject=Nde;Ci.lengthToDegrees=Pde;Ci.lengthToRadians=bA;Ci.lineString=xA;Ci.lineStrings=Ede;Ci.multiLineString=AH;Ci.multiPoint=MH;Ci.multiPolygon=SH;Ci.point=gA;Ci.points=kde;Ci.polygon=_A;Ci.polygons=Cde;Ci.radiansToDegrees=CH;Ci.radiansToLength=kH;Ci.round=Dde;Ci.validateBBox=Bde;Ci.validateId=Ode});var Vb=me(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});var us=Ob();function h1(e,t,r){if(e!==null)for(var i,a,s,l,f,h,v,m=0,_=0,T,S=e.type,C=S==="FeatureCollection",E=S==="Feature",L=C?e.features.length:1,z=0;zh||C>v||E>m){f=_,h=i,v=C,m=E,s=0;return}var L=us.lineString.call(void 0,[f,_],r.properties);if(t(L,i,a,E,s)===!1)return!1;s++,f=_})===!1)return!1}}})}function Wde(e,t,r){var i=r,a=!1;return DH(e,function(s,l,f,h,v){a===!1&&r===void 0?i=s:i=t(i,s,l,f,h,v),a=!0}),i}function PH(e,t){if(!e)throw new Error("geojson is required");Ub(e,function(r,i,a){if(r.geometry!==null){var s=r.geometry.type,l=r.geometry.coordinates;switch(s){case"LineString":if(t(r,i,a,0,0)===!1)return!1;break;case"Polygon":for(var f=0;f{"use strict";Object.defineProperty(Hb,"__esModule",{value:!0});var zH=Ob(),Kde=Vb();function FH(e){return Kde.geomReduce.call(void 0,e,(t,r)=>t+Qde(r),0)}function Qde(e){let t=0,r;switch(e.type){case"Polygon":return IH(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(RH(e[0]));for(let r=1;r=t?(i+2)%t:i+2],f=a[0]*TA,h=s[1]*TA,v=l[0]*TA;r+=(v-f)*Math.sin(h),i++}return r*$de}var epe=FH;Hb.area=FH;Hb.default=epe});var BH=me(Gb=>{"use strict";Object.defineProperty(Gb,"__esModule",{value:!0});var tpe=Ob(),rpe=Vb();function NH(e,t={}){let r=0,i=0,a=0;return rpe.coordEach.call(void 0,e,function(s){r+=s[0],i+=s[1],a++},!0),tpe.point.call(void 0,[r/a,i/a],t.properties)}var ape=NH;Gb.centroid=NH;Gb.default=ape});var UH=me(Zb=>{"use strict";Object.defineProperty(Zb,"__esModule",{value:!0});var ipe=Vb();function OH(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return ipe.coordEach.call(void 0,e,i=>{r[0]>i[0]&&(r[0]=i[0]),r[1]>i[1]&&(r[1]=i[1]),r[2]{"use strict";var ope=Ja(),GH=TH(),{area:spe}=qH(),{centroid:lpe}=BH(),{bbox:upe}=UH(),VH=g_(),wm=Th(),fpe=cc(),cpe=Ty(),Yb=lx(),HH=Object.keys(GH),hpe={"ISO-3":VH,"USA-states":VH,"country names":vpe};function vpe(e){for(var t=0;t0&&m[_+1][0]<0)return _;return null}switch(i==="RUS"||i==="FJI"?s=function(m){var _;if(v(m)===null)_=m;else for(_=new Array(m.length),h=0;h_?T[S++]=[m[h][0]+360,m[h][1]]:h===_?(T[S++]=m[h],T[S++]=[m[h][0],-90]):T[S++]=m[h];var C=Yb.tester(T);C.pts.pop(),a.push(C)}:s=function(m){a.push(Yb.tester(m))},t.type){case"MultiPolygon":for(l=0;l0?C.properties.ct=ype(C):C.properties.ct=[NaN,NaN],T.fIn=m,T.fOut=C,a.push(C)}else wm.log(["Location",T.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete i[_]}switch(r.type){case"FeatureCollection":var h=r.features;for(s=0;sa&&(a=f,r=l)}else r=t;return lpe(r).geometry.coordinates}function gpe(e){var t=window.PlotlyGeoAssets||{},r=[];function i(h){return new Promise(function(v,m){ope.json(h,function(_,T){if(_){delete t[h];var S=_.status===404?'GeoJSON at URL "'+h+'" does not exist.':"Unexpected error while fetching from "+h;return m(new Error(S))}return t[h]=T,v(T)})})}function a(h){return new Promise(function(v,m){var _=0,T=setInterval(function(){if(t[h]&&t[h]!=="pending")return clearInterval(T),v(t[h]);if(_>100)return clearInterval(T),m("Unexpected error while fetching from "+h);_++},50)})}for(var s=0;s{"use strict";var Gd=Bt(),xpe=co().sanitizeHTML,bpe=uA(),WH=zc();function XH(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=WH.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var cu=XH.prototype;cu.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=Wb(t)};cu.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};cu.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};cu.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};cu.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};cu.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};cu.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!Wb(e)){var r=wpe(e);t.addSource(this.idSource,r)}};cu.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function jH(e){var t={},r={};switch(e.type){case"circle":Gd.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":Gd.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":Gd.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,a=bpe(i.textposition,i.iconsize);Gd.extendFlat(t,{"icon-image":i.icon+"-15","icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":a.anchor,"text-offset":a.offset,"symbol-placement":i.placement}),Gd.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":Gd.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function wpe(e){var t=e.sourcetype,r=e.source,i={type:t},a;return t==="geojson"?a="data":t==="vector"?a=typeof r=="string"?"url":"tiles":t==="raster"?(a="tiles",i.tileSize=256):t==="image"&&(a="url",i.coordinates=e.coordinates),i[a]=r,e.sourceattribution&&(i.attribution=xpe(e.sourceattribution)),i}JH.exports=function(t,r,i){var a=new XH(t,r);return a.update(i),a}});var oG=me((wbe,nG)=>{"use strict";var MA=pA(),SA=Bt(),tG=AA(),QH=la(),Tpe=Xi(),Ape=jl(),Xb=Rf(),rG=kd(),Mpe=rG.drawMode,Spe=rG.selectMode,kpe=Nf().prepSelect,Cpe=Nf().clearOutline,Epe=Nf().clearSelectionsCache,Lpe=Nf().selectOnClick,rv=zc(),Dpe=KH();function aG(e,t){this.id=t,this.gd=e;var r=e._fullLayout,i=e._context;this.container=r._glcontainer.node(),this.isStatic=i.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Vn=aG.prototype;Vn.plot=function(e,t,r){var i=this,a=t[i.id];i.map&&a.accesstoken!==i.accessToken&&(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]);var s;i.map?s=new Promise(function(l,f){i.updateMap(e,t,l,f)}):s=new Promise(function(l,f){i.createMap(e,t,l,f)}),r.push(s)};Vn.createMap=function(e,t,r,i){var a=this,s=t[a.id],l=a.styleObj=iG(s.style,t);a.accessToken=s.accesstoken;var f=s.bounds,h=f?[[f.west,f.south],[f.east,f.north]]:null,v=a.map=new MA.Map({container:a.div,style:l.style,center:kA(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,maxBounds:h,interactive:!a.isStatic,preserveDrawingBuffer:a.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new MA.AttributionControl({compact:!0}));v._canvas.style.left="0px",v._canvas.style.top="0px",a.rejectOnError(i),a.isStatic||a.initFx(e,t);var m=[];m.push(new Promise(function(_){v.once("load",_)})),m=m.concat(tG.fetchTraceGeoData(e)),Promise.all(m).then(function(){a.fillBelowLookup(e,t),a.updateData(e),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};Vn.updateMap=function(e,t,r,i){var a=this,s=a.map,l=t[this.id];a.rejectOnError(i);var f=[],h=iG(l.style,t);JSON.stringify(a.styleObj)!==JSON.stringify(h)&&(a.styleObj=h,s.setStyle(h.style),a.traceHash={},f.push(new Promise(function(v){s.once("styledata",v)}))),f=f.concat(tG.fetchTraceGeoData(e)),Promise.all(f).then(function(){a.fillBelowLookup(e,t),a.updateData(e),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};Vn.fillBelowLookup=function(e,t){var r=t[this.id],i=r.layers,a,s,l=this.belowLookup={},f=!1;for(a=0;a1)for(a=0;a-1&&Lpe(h.originalEvent,i,[r.xaxis],[r.yaxis],r.id,f),v.indexOf("event")>-1&&Xb.click(i,h.originalEvent)}}};Vn.updateFx=function(e){var t=this,r=t.map,i=t.gd;if(t.isStatic)return;function a(h){var v=t.map.unproject(h);return[v.lng,v.lat]}var s=e.dragmode,l;l=function(h,v){if(v.isRect){var m=h.range={};m[t.id]=[a([v.xmin,v.ymin]),a([v.xmax,v.ymax])]}else{var _=h.lassoPoints={};_[t.id]=v.map(a)}};var f=t.dragOptions;t.dragOptions=SA.extendDeep(f||{},{dragmode:e.dragmode,element:t.div,gd:i,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:l},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),Spe(s)||Mpe(s)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(h,v,m){kpe(h,v,m,t.dragOptions,s)},Ape.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Vn.updateFramework=function(e){var t=e[this.id].domain,r=e._size,i=this.div.style;i.width=r.w*(t.x[1]-t.x[0])+"px",i.height=r.h*(t.y[1]-t.y[0])+"px",i.left=r.l+t.x[0]*r.w+"px",i.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Vn.updateLayers=function(e){var t=e[this.id],r=t.layers,i=this.layerList,a;if(r.length!==i.length){for(a=0;a{"use strict";var Ppe=Bt(),zpe=Ri(),Ipe=Mb().defaults;sG.exports=function(t,r,i,a){var s=a.type,l=a.attributes,f=a.handleDefaults,h=a.partition||"x",v=r._subplots[s],m=v.length,_=m&&v[0].replace(/\d+$/,""),T,S;function C(B,q){return Ppe.coerce(T,S,l,B,q)}for(var E=0;E{"use strict";var CA=Bt(),Rpe=lG(),Fpe=Wl(),uG=s1();fG.exports=function(t,r,i){Rpe(t,r,i,{type:"mapbox",attributes:uG,handleDefaults:qpe,partition:"y",accessToken:r._mapboxAccessToken})};function qpe(e,t,r,i){r("accesstoken",i.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var a=r("bounds.west"),s=r("bounds.east"),l=r("bounds.south"),f=r("bounds.north");(a===void 0||s===void 0||l===void 0||f===void 0)&&delete t.bounds,Fpe(e,t,{name:"layers",handleItemDefaults:Npe}),t._input=e}function Npe(e,t){function r(h,v){return CA.coerce(e,t,uG.layers,h,v)}var i=r("visible");if(i){var a=r("sourcetype"),s=a==="raster"||a==="image";r("source"),r("sourceattribution"),a==="vector"&&r("sourcelayer"),a==="image"&&r("coordinates");var l;s&&(l="raster");var f=r("type",l);s&&f!=="raster"&&(f=t.type="raster",CA.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),f==="circle"&&r("circle.radius"),f==="line"&&(r("line.width"),r("line.dash")),f==="fill"&&r("fill.outlinecolor"),f==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),CA.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var jb=me(Ys=>{"use strict";var hG=pA(),Ju=Bt(),EA=Ju.strTranslate,Bpe=Ju.strScale,Ope=q_().getSubplotCalcData,Upe=zh(),Vpe=Ja(),vG=bi(),Hpe=co(),Gpe=oG(),av="mapbox",Hf=Ys.constants=zc();Ys.name=av;Ys.attr="subplot";Ys.idRoot=av;Ys.idRegex=Ys.attrRegex=Ju.counterRegex(av);var Zpe=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Ys.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Ys.layoutAttributes=s1();Ys.supplyLayoutDefaults=cG();var dG=!0;Ys.plot=function(t){dG&&(dG=!1,Ju.warn(Zpe));var r=t._fullLayout,i=t.calcdata,a=r._subplots[av];if(hG.version!==Hf.requiredVersion)throw new Error(Hf.wrongVersionErrorMsg);var s=Ype(t,a);hG.accessToken=s;for(var l=0;lz/2){var B=S.split("|").join("
");E.text(B).attr("data-unformatted",B).call(Hpe.convertToTspans,e),L=vG.bBox(E.node())}E.attr("transform",EA(-3,-L.height+8)),C.insert("rect",".static-attribution").attr({x:-L.width-6,y:-L.height-3,width:L.width+6,height:L.height+3,fill:"rgba(255, 255, 255, 0.75)"});var q=1;L.width+6>z&&(q=z/(L.width+6));var I=[i.l+i.w*l.x[1],i.t+i.h*(1-l.y[0])];C.attr("transform",EA(I[0],I[1])+Bpe(q))}};function Ype(e,t){var r=e._fullLayout,i=e._context;if(i.mapboxAccessToken==="")return"";for(var a=[],s=[],l=!1,f=!1,h=0;h1&&Ju.warn(Hf.multipleTokensErrorMsg),a[0]):(s.length&&Ju.log(["Listed mapbox access token(s)",s.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function pG(e){return typeof e=="string"&&(Hf.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Ys.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[av],i=0;i{"use strict";var Sbe=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");mG.exports={attributes:Db(),supplyDefaults:JV(),colorbar:J6(),formatLabels:sA(),calc:aH(),plot:pH(),hoverPoints:qb().hoverPoints,eventData:_H(),selectPoints:bH(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:jb(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var _G=me((Cbe,gG)=>{"use strict";gG.exports=yG()});var LA=me((Ebe,wG)=>{"use strict";var Wpe=nl().hovertemplateAttrs,nv=aA(),Xpe=xc(),xG=ys(),jpe=Af().defaultLine,iv=mn().extendFlat,bG=nv.marker.line;wG.exports=iv({locations:{valType:"data_array",editType:"calc"},locationmode:nv.locationmode,z:{valType:"data_array",editType:"calc"},geojson:iv({},nv.geojson,{}),featureidkey:nv.featureidkey,text:iv({},nv.text,{}),hovertext:iv({},nv.hovertext,{}),marker:{line:{color:iv({},bG.color,{dflt:jpe}),width:iv({},bG.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:nv.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:nv.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:iv({},xG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Wpe(),showlegend:iv({},xG.showlegend,{dflt:!1})},Xpe("",{cLetter:"z",editTypeOverride:"calc"}))});var DA=me((Lbe,TG)=>{"use strict";var Ic=LA(),Jpe=xc(),Kpe=nl().hovertemplateAttrs,Qpe=ys(),ov=mn().extendFlat;TG.exports=ov({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:ov({},Ic.featureidkey,{}),below:{valType:"string",editType:"plot"},text:Ic.text,hovertext:Ic.hovertext,marker:{line:{color:ov({},Ic.marker.line.color,{editType:"plot"}),width:ov({},Ic.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:ov({},Ic.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:ov({},Ic.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:ov({},Ic.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:Ic.hoverinfo,hovertemplate:Kpe({},{keys:["properties"]}),showlegend:ov({},Qpe.showlegend,{dflt:!1})},Jpe("",{cLetter:"z",editTypeOverride:"calc"}))});var MG=me((Dbe,AG)=>{"use strict";var v1=Bt(),$pe=hd(),e0e=DA();AG.exports=function(t,r,i,a){function s(m,_){return v1.coerce(t,r,e0e,m,_)}var l=s("locations"),f=s("z"),h=s("geojson");if(!v1.isArrayOrTypedArray(l)||!l.length||!v1.isArrayOrTypedArray(f)||!f.length||!(typeof h=="string"&&h!==""||v1.isPlainObject(h))){r.visible=!1;return}s("featureidkey"),r._length=Math.min(l.length,f.length),s("below"),s("text"),s("hovertext"),s("hovertemplate");var v=s("marker.line.width");v&&s("marker.line.color"),s("marker.opacity"),$pe(t,r,a,s,{prefix:"",cLetter:"z"}),v1.coerceSelectionMarkerOpacity(r,s)}});var PA=me((Pbe,SG)=>{"use strict";SG.exports={min:"zmin",max:"zmax"}});var LG=me((zbe,EG)=>{"use strict";var kG=Da(),t0e=Zi().BADNUM,r0e=Wy(),a0e=Vg(),i0e=Gx();function CG(e){return e&&typeof e=="string"}EG.exports=function(t,r){var i=r._length,a=new Array(i),s;r.geojson?s=function(m){return CG(m)||kG(m)}:s=CG;for(var l=0;l{"use strict";var n0e=Da(),Rc=Bt(),o0e=L0(),s0e=bi(),l0e=Pb().makeBlank,DG=AA();function u0e(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,i={layout:{visibility:"none"},paint:{}},a={layout:{visibility:"none"},paint:{}},s=t._opts={fill:i,line:a,geojson:l0e()};if(!r)return s;var l=DG.extractTraceFeature(e);if(!l)return s;var f=o0e.makeColorScaleFuncFromTrace(t),h=t.marker,v=h.line||{},m;Rc.isArrayOrTypedArray(h.opacity)&&(m=function(B){var q=B.mo;return n0e(q)?+Rc.constrain(q,0,1):0});var _;Rc.isArrayOrTypedArray(v.color)&&(_=function(B){return B.mlc});var T;Rc.isArrayOrTypedArray(v.width)&&(T=function(B){return B.mlw});for(var S=0;S{"use strict";var RG=zA().convert,f0e=zA().convertOnSelect,IG=zc().traceLayerPrefix;function FG(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",IG+t+"-fill"],["line",IG+t+"-line"]],this.below=null}var Tm=FG.prototype;Tm.update=function(e){this._update(RG(e)),e[0].trace._glTrace=this};Tm.updateOnSelect=function(e){this._update(f0e(e))};Tm._update=function(e){var t=this.subplot,r=this.layerList,i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(e,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};Tm.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};qG.exports=function(t,r){var i=r[0].trace,a=new FG(t,i.uid),s=a.sourceId,l=RG(r),f=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,f),r[0].trace._glTrace=a,a}});var OG=me((Fbe,BG)=>{"use strict";var c0e=Xi(),h0e=LA(),v0e=Bt().fillText;BG.exports=function(t,r,i){var a=t.cd,s=a[0].trace,l=t.subplot,f,h,v,m,_=[r,i],T=[r+360,i];for(h=0;h")}}});var VG=me((qbe,UG)=>{"use strict";UG.exports=function(t,r,i,a,s){t.location=r.location,t.z=r.z;var l=a[s];return l.fIn&&l.fIn.properties&&(t.properties=l.fIn.properties),t.ct=l.ct,t}});var GG=me((Nbe,HG)=>{"use strict";HG.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f,h,v,m,_;if(r===!1)for(f=0;f{"use strict";var Bbe=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");ZG.exports={attributes:DA(),supplyDefaults:MG(),colorbar:PA(),calc:LG(),plot:NG(),hoverPoints:OG(),eventData:VG(),selectPoints:GG(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),i=r.length-2;i>=0;i--){var a=r[i].id;if(typeof a=="string"&&a.indexOf("water")===0){for(var s=i+1;s{"use strict";WG.exports=YG()});var RA=me((Vbe,JG)=>{"use strict";var p0e=xc(),m0e=nl().hovertemplateAttrs,jG=ys(),Jb=Db(),IA=mn().extendFlat;JG.exports=IA({lon:Jb.lon,lat:Jb.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:Jb.text,hovertext:Jb.hovertext,hoverinfo:IA({},jG.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:m0e(),showlegend:IA({},jG.showlegend,{dflt:!1})},p0e("",{cLetter:"z",editTypeOverride:"calc"}))});var QG=me((Hbe,KG)=>{"use strict";var y0e=Bt(),g0e=hd(),_0e=RA();KG.exports=function(t,r,i,a){function s(v,m){return y0e.coerce(t,r,_0e,v,m)}var l=s("lon")||[],f=s("lat")||[],h=Math.min(l.length,f.length);if(!h){r.visible=!1;return}r._length=h,s("z"),s("radius"),s("below"),s("text"),s("hovertext"),s("hovertemplate"),g0e(t,r,a,s,{prefix:"",cLetter:"z"})}});var tZ=me((Gbe,eZ)=>{"use strict";var FA=Da(),x0e=Bt().isArrayOrTypedArray,qA=Zi().BADNUM,b0e=Wy(),$G=Bt()._;eZ.exports=function(t,r){for(var i=r._length,a=new Array(i),s=r.z,l=x0e(s)&&s.length,f=0;f{"use strict";var w0e=Da(),NA=Bt(),rZ=Oa(),aZ=L0(),iZ=Zi().BADNUM,T0e=Pb().makeBlank;nZ.exports=function(t){var r=t[0].trace,i=r.visible===!0&&r._length!==0,a={layout:{visibility:"none"},paint:{}},s=r._opts={heatmap:a,geojson:T0e()};if(!i)return s;var l=[],f,h=r.z,v=r.radius,m=NA.isArrayOrTypedArray(h)&&h.length,_=NA.isArrayOrTypedArray(v);for(f=0;f0?+v[f]:0),l.push({type:"Feature",geometry:{type:"Point",coordinates:S},properties:C})}}var L=aZ.extractOpts(r),z=L.reversescale?aZ.flipScale(L.colorscale):L.colorscale,B=z[0][1],q=rZ.opacity(B)<1?B:rZ.addOpacity(B,0),I=["interpolate",["linear"],["heatmap-density"],0,q];for(f=1;f{"use strict";var sZ=oZ(),A0e=zc().traceLayerPrefix;function lZ(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",A0e+t+"-heatmap"]],this.below=null}var Kb=lZ.prototype;Kb.update=function(e){var t=this.subplot,r=this.layerList,i=sZ(e),a=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&&(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var s=0;s=0;r--)e.removeLayer(t[r][1])};Kb.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};uZ.exports=function(t,r){var i=r[0].trace,a=new lZ(t,i.uid),s=a.sourceId,l=sZ(r),f=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,f),a}});var hZ=me((Wbe,cZ)=>{"use strict";var M0e=Xi(),S0e=qb().hoverPoints,k0e=qb().getExtraText;cZ.exports=function(t,r,i){var a=S0e(t,r,i);if(a){var s=a[0],l=s.cd,f=l[0].trace,h=l[s.index];if(delete s.color,"z"in h){var v=s.subplot.mockAxis;s.z=h.z,s.zLabel=M0e.tickText(v,v.c2l(h.z),"hover").text}return s.extraText=k0e(f,h,l[0].t.labels),[s]}}});var dZ=me((Xbe,vZ)=>{"use strict";vZ.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var mZ=me((Jbe,pZ)=>{"use strict";var jbe=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");pZ.exports={attributes:RA(),supplyDefaults:QG(),colorbar:PA(),formatLabels:sA(),calc:tZ(),plot:fZ(),hoverPoints:hZ(),eventData:dZ(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";yZ.exports=mZ()});var Uo=me((Qbe,xZ)=>{"use strict";var _Z=Object.getOwnPropertySymbols,C0e=Object.prototype.hasOwnProperty,E0e=Object.prototype.propertyIsEnumerable;function L0e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function D0e(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(i.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(s){a[s]=s}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(s){return!1}}xZ.exports=D0e()?Object.assign:function(e,t){for(var r,i=L0e(e),a,s=1;s{var $b=Uo();function bZ(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}$b(bZ.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,i,a){return i=(e!=null&&e.year?e.calendar():typeof i=="string"?this.instance(i,a):i)||this.instance(),i.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var i="",a=0;r>0;){var s=r%10;i=(s===0?"":e[s]+t[a])+i,a++,r=Math.floor(r/10)}return i.indexOf(e[1]+t[1])===0&&(i=i.substr(1)),i||e[0]}}});function BA(e,t,r,i){if(this._calendar=e,this._year=t,this._month=r,this._day=i,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(ka.local.invalidDate||ka.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Qb(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}$b(BA.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(ka.local.invalidDate||ka.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(ka.local.differentCalendars||ka.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Qb(Math.abs(this.year()),4)+"-"+Qb(this.month(),2)+"-"+Qb(this.day(),2)}});function OA(){this.shortYearCutoff="+10"}$b(OA.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new BA(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+Qb(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,ka.local.invalidMonth||ka.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,ka.local.invalidMonth||ka.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var i=this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate);return i.toJD()-this.newDate(i.year(),this.fromMonthOfYear(i.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(i))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var i=e.toJD()+t*(r==="w"?this.daysInWeek():1),a=e.calendar().fromJD(i);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var s=e.year()+(r==="y"?t:0),l=e.monthOfYear()+(r==="m"?t:0),a=e.day(),f=function(m){for(;l_-1+m.minMonth;)s++,l-=_,_=m.monthsInYear(s)};r==="y"?(e.month()!==this.fromMonthOfYear(s,l)&&(l=this.newDate(s,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(s)),a=Math.min(a,this.daysInMonth(s,this.fromMonthOfYear(s,l)))):r==="m"&&(f(this),a=Math.min(a,this.daysInMonth(s,this.fromMonthOfYear(s,l))));var h=[s,this.fromMonthOfYear(s,l),a];return this._validateLevel--,h}catch(v){throw this._validateLevel--,v}},_correctAdd:function(e,t,r,i){if(!this.hasYearZero&&(i==="y"||i==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[i],s=r<0?-1:1;t=this._add(e,r*a[0]+s*a[1],a[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,ka.local.invalidDate||ka.regionalOptions[""].invalidDate);var i=r==="y"?t:e.year(),a=r==="m"?t:e.month(),s=r==="d"?t:e.day();return(r==="y"||r==="m")&&(s=Math.min(s,this.daysInMonth(i,a))),e.date(i,a,s)},isValid:function(e,t,r){this._validateLevel++;var i=this.hasYearZero||e!==0;if(i){var a=this.newDate(e,t,this.minDay);i=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),v=a-(h>2.5?4716:4715);return v<=0&&v--,this.newDate(v,h,f)},toJSDate:function(e,t,r){var i=this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),a=new Date(i.year(),i.month()-1,i.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var ka=wZ.exports=new bZ;ka.cdate=BA;ka.baseCalendar=OA;ka.calendars.gregorian=UA});var TZ=me(()=>{var VA=Uo(),po=Vo();VA(po.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});po.local=po.regionalOptions[""];VA(po.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});VA(po.baseCalendar.prototype,{UNIX_EPOCH:po.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:po.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw po.local.invalidFormat||po.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var i=r.dayNamesShort||this.local.dayNamesShort,a=r.dayNames||this.local.dayNames,s=r.monthNumbers||this.local.monthNumbers,l=r.monthNamesShort||this.local.monthNamesShort,f=r.monthNames||this.local.monthNames,h=r.calculateWeek||this.local.calculateWeek,v=function(I,O){for(var H=1;q+H1},m=function(I,O,H,V){var W=""+O;if(v(I,V))for(;W.length1},B=function(oe,fe){var ve=z(oe,fe),Se=[2,3,ve?4:2,ve?4:2,10,11,20]["oyYJ@!".indexOf(oe)+1],Me=new RegExp("^-?\\d{1,"+Se+"}"),Ae=t.substring(W).match(Me);if(!Ae)throw(po.local.missingNumberAt||po.regionalOptions[""].missingNumberAt).replace(/\{0\}/,W);return W+=Ae[0].length,parseInt(Ae[0],10)},q=this,I=function(){if(typeof f=="function"){z("m");var oe=f.call(q,t.substring(W));return W+=oe.length,oe}return B("m")},O=function(oe,fe,ve,Se){for(var Me=z(oe,Se)?ve:fe,Ae=0;Ae-1){T=1,S=C;for(var ne=this.daysInMonth(_,T);S>ne;ne=this.daysInMonth(_,T))T++,S-=ne}return m>-1?this.fromJD(m):this.newDate(_,T,S)},determineDate:function(e,t,r,i,a){r&&typeof r!="object"&&(a=i,i=r,r=null),typeof i!="string"&&(a=i,i="");var s=this,l=function(f){try{return s.parseDate(i,f,a)}catch(_){}f=f.toLowerCase();for(var h=(f.match(/^c/)&&r?r.newDate():null)||s.today(),v=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,m=v.exec(f);m;)h.add(parseInt(m[1],10),m[2]||"d"),m=v.exec(f);return h};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:s.today().add(e,"d"):s.newDate(e),e}})});var AZ=me(()=>{var sv=Vo(),P0e=Uo(),HA=sv.instance();function e3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}e3.prototype=new sv.baseCalendar;P0e(e3.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(I0e);return r?r[0]:""}var i=this._validateYear(e),a=e.month(),s=""+this.toChineseMonth(i,a);return t&&s.length<2&&(s="0"+s),this.isIntercalaryMonth(i,a)&&(s+="i"),s},monthNames:function(e){if(typeof e=="string"){var t=e.match(R0e);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),s=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(r,i)&&(s="\u95F0"+s),s},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(F0e);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),s=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(r,i)&&(s="\u95F0"+s),s},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),i;if(isNaN(r))t[0]==="\u95F0"&&(i=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var a=t[t.length-1];i=a==="i"||a==="I"}var s=this.toMonthIndex(e,r,i);return s},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var i=this.intercalaryMonth(e),a=r&&t!==i;if(a||t<1||t>12)throw sv.local.invalidMonth.replace(/\{0\}/,this.local.name);var s;return i?!r&&t<=i?s=t-1:s=t:s=t-1,s},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),i=r?12:11;if(t<0||t>i)throw sv.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var i=this._validateYear(e,sv.local.invalidyear),a=uv[i-uv[0]],s=a>>9&4095,l=a>>5&15,f=a&31,h;h=HA.newDate(s,l,f),h.add(4-(h.dayOfWeek()||7),"d");var v=this.toJD(e,t,r)-h.toJD();return 1+Math.floor(v/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=lv[e-lv[0]],i=r>>13,a=i?12:11;if(t>a)throw sv.local.invalidMonth.replace(/\{0\}/,this.local.name);var s=r&1<<12-t?30:29;return s},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,s,r,sv.local.invalidDate);e=this._validateYear(i.year()),t=i.month(),r=i.day();var a=this.isIntercalaryMonth(e,t),s=this.toChineseMonth(e,t),l=N0e(e,s,r,a);return HA.toJD(l.year,l.month,l.day)},fromJD:function(e){var t=HA.fromJD(e),r=q0e(t.year(),t.month(),t.day()),i=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,i,r.day)},fromString:function(e){var t=e.match(z0e),r=this._validateYear(+t[1]),i=+t[2],a=!!t[3],s=this.toMonthIndex(r,i,a),l=+t[4];return this.newDate(r,s,l)},add:function(e,t,r){var i=e.year(),a=e.month(),s=this.isIntercalaryMonth(i,a),l=this.toChineseMonth(i,a),f=Object.getPrototypeOf(e3.prototype).add.call(this,e,t,r);if(r==="y"){var h=f.year(),v=f.month(),m=this.isIntercalaryMonth(h,l),_=s&&m?this.toMonthIndex(h,l,!0):this.toMonthIndex(h,l,!1);_!==v&&f.month(_)}return f}});var z0e=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,I0e=/^\d?\d[iI]?/m,R0e=/^闰?十?[一二三四五六七八九]?月/m,F0e=/^闰?十?[一二三四五六七八九]?/m;sv.calendars.chinese=e3;var lv=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],uv=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function q0e(e,t,r,i){var a,s;if(typeof e=="object")a=e,s=t||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var f=typeof t=="number"&&t>=1&&t<=12;if(!f)throw new Error("Solar month outside range 1 - 12");var h=typeof r=="number"&&r>=1&&r<=31;if(!h)throw new Error("Solar day outside range 1 - 31");a={year:e,month:t,day:r},s=i||{}}var v=uv[a.year-uv[0]],m=a.year<<9|a.month<<5|a.day;s.year=m>=v?a.year:a.year-1,v=uv[s.year-uv[0]];var _=v>>9&4095,T=v>>5&15,S=v&31,C,E=new Date(_,T-1,S),L=new Date(a.year,a.month-1,a.day);C=Math.round((L-E)/(24*3600*1e3));var z=lv[s.year-lv[0]],B;for(B=0;B<13;B++){var q=z&1<<12-B?30:29;if(C>13;return!I||B=1888&&e<=2111;if(!f)throw new Error("Lunar year outside range 1888-2111");var h=typeof t=="number"&&t>=1&&t<=12;if(!h)throw new Error("Lunar month outside range 1 - 12");var v=typeof r=="number"&&r>=1&&r<=30;if(!v)throw new Error("Lunar day outside range 1 - 30");var m;typeof i=="object"?(m=!1,s=i):(m=!!i,s=a||{}),l={year:e,month:t,day:r,isIntercalary:m}}var _;_=l.day-1;var T=lv[l.year-lv[0]],S=T>>13,C;S&&(l.month>S||l.isIntercalary)?C=l.month:C=l.month-1;for(var E=0;E>9&4095,q=z>>5&15,I=z&31,O=new Date(B,q-1,I+_);return s.year=O.getFullYear(),s.month=1+O.getMonth(),s.day=O.getDate(),s}});var MZ=me(()=>{var Zd=Vo(),B0e=Uo();function GA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}GA.prototype=new Zd.baseCalendar;B0e(GA.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Zd.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Zd.local.invalidYear||Zd.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Zd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,Zd.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});Zd.calendars.coptic=GA});var SZ=me(()=>{var Fc=Vo(),O0e=Uo();function ZA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ZA.prototype=new Fc.baseCalendar;O0e(ZA.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fc.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fc.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fc.local.invalidYear),400},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Fc.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Fc.local.invalidDate);return(i.day()+1)%8},weekDay:function(e,t,r){var i=this.dayOfWeek(e,t,r);return i>=2&&i<=6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,Fc.local.invalidDate);return{century:U0e[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(e,t,r){var i=this._validate(e,t,r,Fc.local.invalidDate);return e=i.year()+(i.year()<0?1:0),t=i.month(),r=i.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,i=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,i)}});var U0e={20:"Fruitbat",21:"Anchovy"};Fc.calendars.discworld=ZA});var kZ=me(()=>{var Yd=Vo(),V0e=Uo();function YA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}YA.prototype=new Yd.baseCalendar;V0e(YA.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Yd.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yd.local.invalidYear||Yd.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Yd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,Yd.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});Yd.calendars.ethiopian=YA});var CZ=me(()=>{var fv=Vo(),H0e=Uo();function WA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}WA.prototype=new fv.baseCalendar;H0e(WA.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,fv.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,t3(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,fv.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,fv.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,fv.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&t3(this.daysInYear(e),10)===5?30:t===9&&t3(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,fv.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(e,t,r){var i=this._validate(e,t,r,fv.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=e<=0?e+1:e,s=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(t<7){for(var l=7;l<=this.monthsInYear(e);l++)s+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});function t3(e,t){return e-t*Math.floor(e/t)}fv.calendars.hebrew=WA});var EZ=me(()=>{var d1=Vo(),G0e=Uo();function XA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}XA.prototype=new d1.baseCalendar;G0e(XA.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,d1.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,d1.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,d1.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});d1.calendars.islamic=XA});var LZ=me(()=>{var p1=Vo(),Z0e=Uo();function jA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}jA.prototype=new p1.baseCalendar;Z0e(jA.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,p1.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(4-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,p1.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,p1.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,i=Math.floor((r-122.1)/365.25),a=Math.floor(365.25*i),s=Math.floor((r-a)/30.6001),l=s-Math.floor(s<14?1:13),f=i-Math.floor(l>2?4716:4715),h=r-a-Math.floor(30.6001*s);return f<=0&&f--,this.newDate(f,l,h)}});p1.calendars.julian=jA});var PZ=me(()=>{var hu=Vo(),Y0e=Uo();function KA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}KA.prototype=new hu.baseCalendar;Y0e(KA.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,hu.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,hu.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var i=Math.floor(e/20);return r+"."+i+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&i<0)throw"Invalid Mayan year";t=t*20+i}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,hu.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,hu.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,hu.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,hu.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,hu.local.invalidDate);return i.day()},weekDay:function(e,t,r){return this._validate(e,t,r,hu.local.invalidDate),!0},extraInfo:function(e,t,r){var i=this._validate(e,t,r,hu.local.invalidDate),a=i.toJD(),s=this._toHaab(a),l=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[s[0]-1],haabMonth:s[0],haabDay:s[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=JA(e+8+17*20,365);return[Math.floor(t/20)+1,JA(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[DZ(e+20,20),DZ(e+4,13)]},toJD:function(e,t,r){var i=this._validate(e,t,r,hu.local.invalidDate);return i.day()+i.month()*20+i.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),i=e%20;return this.newDate(t,r,i)}});function JA(e,t){return e-t*Math.floor(e/t)}function DZ(e,t){return JA(e-1,t)+1}hu.calendars.mayan=KA});var IZ=me(()=>{var Wd=Vo(),W0e=Uo();function QA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}QA.prototype=new Wd.baseCalendar;var zZ=Wd.instance("gregorian");W0e(QA.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Wd.local.invalidYear||Wd.regionalOptions[""].invalidYear);return zZ.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(1-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Wd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,Wd.local.invalidMonth),a=i.year();a<0&&a++;for(var s=i.day(),l=1;l=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,i=1;r>this.daysInMonth(t,i);)r-=this.daysInMonth(t,i),i++;return this.newDate(t,i,r)}});Wd.calendars.nanakshahi=QA});var RZ=me(()=>{var Xd=Vo(),X0e=Uo();function $A(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}$A.prototype=new Xd.baseCalendar;X0e($A.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Xd.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,i=this.minMonth;i<=12;i++)r+=this.NEPALI_CALENDAR_DATA[e][i];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Xd.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var i=this._validate(e,t,r,Xd.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=Xd.instance(),s=0,l=t,f=e;this._createMissingCalendarData(e);var h=e-(l>9||l===9&&r>=this.NEPALI_CALENDAR_DATA[f][0]?56:57);for(t!==9&&(s=r,l--);l!==9;)l<=0&&(l=12,f--),s+=this.NEPALI_CALENDAR_DATA[f][l],l--;return t===9?(s+=r-this.NEPALI_CALENDAR_DATA[f][0],s<0&&(s+=a.daysInYear(h))):s+=this.NEPALI_CALENDAR_DATA[f][9]-this.NEPALI_CALENDAR_DATA[f][0],a.newDate(h,1,1).add(s,"d").toJD()},fromJD:function(e){var t=Xd.instance(),r=t.fromJD(e),i=r.year(),a=r.dayOfYear(),s=i+56;this._createMissingCalendarData(s);for(var l=9,f=this.NEPALI_CALENDAR_DATA[s][0],h=this.NEPALI_CALENDAR_DATA[s][l]-f+1;a>h;)l++,l>12&&(l=1,s++),h+=this.NEPALI_CALENDAR_DATA[s][l];var v=this.NEPALI_CALENDAR_DATA[s][l]-(h-a);return this.newDate(s,l,v)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var Am=Vo(),j0e=Uo();function a3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function r3(e){var t=e-475;e<0&&t++;var r=.242197,i=r*t,a=r*(t+1),s=i-Math.floor(i),l=a-Math.floor(a);return s>l}a3.prototype=new Am.baseCalendar;j0e(a3.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Am.local.invalidYear);return r3(t.year())},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-((i.dayOfWeek()+1)%7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Am.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,Am.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=0;if(e>0)for(var s=1;s0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,r3(r)?30:29)&&(r++,r===0&&r++);var i=e-this.toJD(r,1,1)+1,a=i<=186?Math.ceil(i/31):Math.ceil((i-6)/30),s=e-this.toJD(r,a,1)+1;return this.newDate(r,a,s)}});Am.calendars.persian=a3;Am.calendars.jalali=a3});var qZ=me(()=>{var jd=Vo(),J0e=Uo(),i3=jd.instance();function eM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}eM.prototype=new jd.baseCalendar;J0e(eM.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,jd.local.invalidYear),r=this._t2gYear(t.year());return i3.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,jd.local.invalidYear),a=this._t2gYear(i.year());return i3.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,jd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,jd.local.invalidDate),a=this._t2gYear(i.year());return i3.toJD(a,i.month(),i.day())},fromJD:function(e){var t=i3.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});jd.calendars.taiwan=eM});var NZ=me(()=>{var Jd=Vo(),K0e=Uo(),n3=Jd.instance();function tM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}tM.prototype=new Jd.baseCalendar;K0e(tM.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Jd.local.invalidYear),r=this._t2gYear(t.year());return n3.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,Jd.local.invalidYear),a=this._t2gYear(i.year());return n3.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Jd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,Jd.local.invalidDate),a=this._t2gYear(i.year());return n3.toJD(a,i.month(),i.day())},fromJD:function(e){var t=n3.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Jd.calendars.thai=tM});var BZ=me(()=>{var Kd=Vo(),Q0e=Uo();function rM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}rM.prototype=new Kd.baseCalendar;Q0e(rM.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Kd.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Kd.local.invalidMonth),i=r.toJD()-24e5+.5,a=0,s=0;si)return cv[a]-cv[a-1];a++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,Kd.local.invalidDate),a=12*(i.year()-1)+i.month()-15292,s=i.day()+cv[a-1]-1;return s+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,i=0;it);i++)r++;var a=r+15292,s=Math.floor((a-1)/12),l=s+1,f=a-12*s,h=t-cv[r-1]+1;return this.newDate(l,f,h)},isValid:function(e,t,r){var i=Kd.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(e=e.year!=null?e.year:e,i=e>=1276&&e<=1500),i},_validate:function(e,t,r,i){var a=Kd.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\{0\}/,this.local.name);return a}});Kd.calendars.ummalqura=rM;var cv=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var UZ=me((L3e,OZ)=>{"use strict";OZ.exports=Vo();TZ();AZ();MZ();SZ();kZ();CZ();EZ();LZ();PZ();IZ();RZ();FZ();qZ();NZ();BZ()});var XZ=me((D3e,WZ)=>{"use strict";var HZ=UZ(),m1=Bt(),GZ=Zi(),$0e=GZ.EPOCHJD,eme=GZ.ONEDAY,nM={valType:"enumerated",values:m1.sortObjectKeys(HZ.calendars),editType:"calc",dflt:"gregorian"},ZZ=function(e,t,r,i){var a={};return a[r]=nM,m1.coerce(e,t,a,r,i)},tme=function(e,t,r,i){for(var a=0;a{"use strict";jZ.exports=XZ()});var sme=me((z3e,QZ)=>{var KZ=EV();KZ.register([_G(),XG(),gZ(),JZ()]);QZ.exports=KZ});return sme();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-strict.js b/dist/plotly-strict.js index c105f7f3e92..e7163c6672a 100644 --- a/dist/plotly-strict.js +++ b/dist/plotly-strict.js @@ -1,5 +1,5 @@ /** -* plotly.js (strict) v3.1.1 +* plotly.js (strict) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -69,7 +69,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.1"; + exports.version = "3.1.2"; } }); @@ -13798,9 +13798,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -21473,7 +21473,7 @@ var Plotly = (() => { }, exponentformat: { valType: "enumerated", - values: ["none", "e", "E", "power", "SI", "B"], + values: ["none", "e", "E", "power", "SI", "B", "SI extended"], dflt: "B", editType: "ticks" }, @@ -25059,7 +25059,7 @@ var Plotly = (() => { var subtitleEnabled = !!subtitleProp; var subtitlePlaceholder = options.subtitlePlaceholder; var subtitle = (cont.title || {}).subtitle || { text: "", font: {} }; - var subtitleTxt = subtitle.text.trim(); + var subtitleTxt = (subtitle.text || "").trim(); var subtitleIsPlaceholder = false; var subtitleOpacity = 1; var subtitleFont = subtitle.font; @@ -25113,7 +25113,7 @@ var Plotly = (() => { var subtitleEl = null; var subtitleClass = titleClass + "-subtitle"; var subtitleElShouldExist = subtitleTxt || editable; - if (subtitleEnabled && subtitleElShouldExist) { + if (subtitleEnabled) { subtitleEl = group.selectAll("text." + subtitleClass).data(subtitleElShouldExist ? [0] : []); subtitleEl.enter().append("text"); subtitleEl.text(subtitleTxt).attr("class", subtitleClass); @@ -25164,7 +25164,7 @@ var Plotly = (() => { shadow: fontShadow, lineposition: fontLineposition }).attr(attributes).call(svgTextUtils.convertToTspans, gd, adjustSubtitlePosition); - if (subtitleEl2) { + if (subtitleEl2 && !subtitleEl2.empty()) { var titleElMathGroup = group.select("." + titleClass + "-math-group"); var titleElBbox2 = titleEl.node().getBBox(); var titleElMathBbox = titleElMathGroup.node() ? titleElMathGroup.node().getBBox() : void 0; @@ -25285,7 +25285,7 @@ var Plotly = (() => { } } el.classed("js-placeholder", titleIsPlaceholder); - if (subtitleEl) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); + if (subtitleEl && !subtitleEl.empty()) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); return group; } module.exports = { @@ -27604,7 +27604,7 @@ var Plotly = (() => { var rangeexp = Math.floor(Math.log(maxend) / Math.LN10 + 0.01); var minexponent = ax.minexponent === void 0 ? 3 : ax.minexponent; if (Math.abs(rangeexp) > minexponent) { - if (isSIFormat(ax.exponentformat) && !beyondSI(rangeexp)) { + if (isSIFormat(ax.exponentformat) && ax.exponentformat !== "SI extended" && !beyondSI(rangeexp) || isSIFormat(ax.exponentformat) && ax.exponentformat === "SI extended" && !beyondSIExtended(rangeexp)) { ax._tickexponent = 3 * Math.round((rangeexp - 1) / 3); } else ax._tickexponent = rangeexp; } @@ -27828,7 +27828,7 @@ var Plotly = (() => { var p = +parts[1]; var absP = Math.abs(p); var exponentFormat = ax.exponentformat; - if (exponentFormat === "power" || isSIFormat(exponentFormat) && beyondSI(p)) { + if (exponentFormat === "power" || isSIFormat(exponentFormat) && exponentFormat !== "SI extended" && beyondSI(p) || isSIFormat(exponentFormat) && exponentFormat === "SI extended" && beyondSIExtended(p)) { out.text = parts[0]; if (absP > 0) out.text += "x10"; if (out.text === "1x10") out.text = "10"; @@ -27944,12 +27944,20 @@ var Plotly = (() => { ]; } var SIPREFIXES = ["f", "p", "n", "\u03BC", "m", "", "k", "M", "G", "T"]; - function isSIFormat(exponentFormat) { - return exponentFormat === "SI" || exponentFormat === "B"; - } + var SIPREFIXES_EXTENDED = ["q", "r", "y", "z", "a", ...SIPREFIXES, "P", "E", "Z", "Y", "R", "Q"]; + var isSIFormat = (exponentFormat) => ["SI", "SI extended", "B"].includes(exponentFormat); function beyondSI(exponent) { return exponent > 14 || exponent < -15; } + function beyondSIExtended(exponent) { + return exponent > 32 || exponent < -30; + } + function shouldSwitchSIToPowerFormat(exponent, exponentFormat) { + if (!isSIFormat(exponentFormat)) return false; + if (exponentFormat === "SI extended" && beyondSIExtended(exponent)) return true; + if (exponentFormat !== "SI extended" && beyondSI(exponent)) return true; + return false; + } function numFormat(v, ax, fmtoverride, hover) { var isNeg = v < 0; var tickRound = ax._tickround; @@ -27997,7 +28005,7 @@ var Plotly = (() => { v = Lib.numSeparate(v, ax._separators, separatethousands); } if (exponent && exponentFormat !== "hide") { - if (isSIFormat(exponentFormat) && beyondSI(exponent)) exponentFormat = "power"; + if (shouldSwitchSIToPowerFormat(exponent, exponentFormat)) exponentFormat = "power"; var signedExponent; if (exponent < 0) signedExponent = MINUS_SIGN + -exponent; else if (exponentFormat !== "power") signedExponent = "+" + exponent; @@ -28009,7 +28017,7 @@ var Plotly = (() => { } else if (exponentFormat === "B" && exponent === 9) { v += "B"; } else if (isSIFormat(exponentFormat)) { - v += SIPREFIXES[exponent / 3 + 5]; + v += exponentFormat === "SI extended" ? SIPREFIXES_EXTENDED[exponent / 3 + 10] : SIPREFIXES[exponent / 3 + 5]; } } if (isNeg) return MINUS_SIGN + v; @@ -30294,9 +30302,11 @@ var Plotly = (() => { return Lib.coerce(traceIn, traceOut, plotsAttrs, attr, dflt); }; var globalFont = layoutOut.font || {}; - var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { overrideDflt: { - size: Math.round(globalFont.size * 1.1) - } }); + var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { + overrideDflt: { + size: Math.round(globalFont.size * 1.1) + } + }); var legendTraceCount = 0; var legendReallyHasATrace = false; var defaultOrder = "normal"; @@ -30443,7 +30453,7 @@ var Plotly = (() => { for (i = 0; i < legends.length; i++) { var legendId = legends[i]; groupDefaults(legendId, layoutIn, layoutOut, allLegendsData); - if (layoutOut[legendId] && layoutOut[legendId].visible) { + if (layoutOut[legendId]) { layoutOut[legendId]._id = legendId; } layoutOut._legends.push(legendId); @@ -36061,7 +36071,7 @@ var Plotly = (() => { } } function setClipPath(shapePath, gd, shapeOptions) { - var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][1-9]* *domain/g, ""); + var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][0-9]* *domain/g, ""); Drawing.setClipUrl( shapePath, clipAxes ? "clip" + gd._fullLayout._uid + clipAxes : null, @@ -43906,7 +43916,6 @@ var Plotly = (() => { "src/plot_api/helpers.js"(exports) { "use strict"; var isNumeric = require_fast_isnumeric(); - var m4FromQuat = require_fromQuat(); var Registry = require_registry(); var Lib = require_lib(); var Plots = require_plots(); @@ -43915,6 +43924,7 @@ var Plotly = (() => { var cleanId = AxisIds.cleanId; var getFromTrace = AxisIds.getFromTrace; var traceIs = Registry.traceIs; + var AX_LETTERS = ["x", "y", "z"]; exports.clearPromiseQueue = function(gd) { if (Array.isArray(gd._promises) && gd._promises.length > 0) { Lib.log("Clearing previous rejected promises from queue."); @@ -44081,12 +44091,7 @@ var Plotly = (() => { var increasingName = cleanFinanceDir(trace.increasing); var decreasingName = cleanFinanceDir(trace.decreasing); if (increasingName !== false && decreasingName !== false) { - var newName = commonPrefix( - increasingName, - decreasingName, - increasingShowlegend, - decreasingShowlegend - ); + var newName = commonPrefix(increasingName, decreasingName, increasingShowlegend, decreasingShowlegend); if (newName) trace.name = newName; } else if ((increasingName || decreasingName) && !trace.name) { trace.name = increasingName || decreasingName; @@ -44216,12 +44221,11 @@ var Plotly = (() => { } return false; }; - var axLetters = ["x", "y", "z"]; exports.clearAxisTypes = function(gd, traces, layoutUpdate) { for (var i = 0; i < traces.length; i++) { var trace = gd._fullData[i]; for (var j = 0; j < 3; j++) { - var ax = getFromTrace(gd, trace, axLetters[j]); + var ax = getFromTrace(gd, trace, AX_LETTERS[j]); if (ax && ax.type !== "log") { var axAttr = ax._name; var sceneName = ax._id.substr(1); @@ -44237,6 +44241,35 @@ var Plotly = (() => { } } }; + var collectionsAreEqual = (collection1, collection2) => { + const isArrayOrObject = (...vals) => vals.every((v) => Lib.isPlainObject(v)) || vals.every((v) => Array.isArray(v)); + if ([collection1, collection2].every((a) => Array.isArray(a))) { + if (collection1.length !== collection2.length) return false; + for (let i = 0; i < collection1.length; i++) { + const oldVal = collection1[i]; + const newVal = collection2[i]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } else if ([collection1, collection2].every((a) => Lib.isPlainObject(a))) { + if (Object.keys(collection1).length !== Object.keys(collection2).length) return false; + for (const k in collection1) { + if (k.startsWith("_")) continue; + const oldVal = collection1[k]; + const newVal = collection2[k]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } + return false; + }; + exports.collectionsAreEqual = collectionsAreEqual; } }); @@ -44344,21 +44377,28 @@ var Plotly = (() => { } } if (!fullLayout._glcanvas && fullLayout._has("gl")) { - fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data([{ - key: "contextLayer", - context: true, - pick: false - }, { - key: "focusLayer", - context: false, - pick: false - }, { - key: "pickLayer", - context: false, - pick: true - }], function(d) { - return d.key; - }); + fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data( + [ + { + key: "contextLayer", + context: true, + pick: false + }, + { + key: "focusLayer", + context: false, + pick: false + }, + { + key: "pickLayer", + context: false, + pick: true + } + ], + function(d) { + return d.key; + } + ); fullLayout._glcanvas.enter().append("canvas").attr("class", function(d) { return "gl-canvas gl-canvas-" + d.key.replace("Layer", ""); }).style({ @@ -44416,21 +44456,21 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([ - marginPushers, - subroutines.layoutStyles - ], gd); + return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); } function positionAndAutorange() { if (!recalc) { doAutoRangeAndConstraints(); return; } - return Lib.syncOrAsync([ - Registry.getComponentMethod("shapes", "calcAutorange"), - Registry.getComponentMethod("annotations", "calcAutorange"), - doAutoRangeAndConstraints - ], gd); + return Lib.syncOrAsync( + [ + Registry.getComponentMethod("shapes", "calcAutorange"), + Registry.getComponentMethod("annotations", "calcAutorange"), + doAutoRangeAndConstraints + ], + gd + ); } function doAutoRangeAndConstraints() { if (gd._transitioning) return; @@ -44441,28 +44481,19 @@ var Plotly = (() => { function drawAxes() { return Axes.draw(gd, graphWasEmpty ? "" : "redraw"); } - var seq = [ - Plots.previousPromises, - addFrames2, - drawFramework, - marginPushers, - marginPushersAgain - ]; + var seq = [Plots.previousPromises, addFrames2, drawFramework, marginPushers, marginPushersAgain]; if (hasCartesian) seq.push(positionAndAutorange); seq.push(subroutines.layoutStyles); if (hasCartesian) { - seq.push( - drawAxes, - function insideTickLabelsAutorange(gd2) { - var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; - if (insideTickLabelsUpdaterange) { - gd2._fullLayout._insideTickLabelsUpdaterange = void 0; - return relayout(gd2, insideTickLabelsUpdaterange).then(function() { - Axes.saveRangeInitial(gd2, true); - }); - } + seq.push(drawAxes, function insideTickLabelsAutorange(gd2) { + var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; + if (insideTickLabelsUpdaterange) { + gd2._fullLayout._insideTickLabelsUpdaterange = void 0; + return relayout(gd2, insideTickLabelsUpdaterange).then(function() { + Axes.saveRangeInitial(gd2, true); + }); } - ); + }); } seq.push( subroutines.drawData, @@ -44668,7 +44699,7 @@ var Plotly = (() => { } for (i = 0; i < traces.length; i++) { value = traces[i]; - if (typeof value !== "object" || (Array.isArray(value) || value === null)) { + if (typeof value !== "object" || Array.isArray(value) || value === null) { throw new Error("all values in traces array must be non-array objects"); } } @@ -44676,9 +44707,7 @@ var Plotly = (() => { newIndices = [newIndices]; } if (typeof newIndices !== "undefined" && newIndices.length !== traces.length) { - throw new Error( - "if indices is specified, traces.length must equal indices.length" - ); + throw new Error("if indices is specified, traces.length must equal indices.length"); } } function assertExtendTracesArgs(gd, update2, indices, maxPoints) { @@ -44698,7 +44727,9 @@ var Plotly = (() => { throw new Error("attribute " + key + " must be an array of length equal to indices array length"); } if (maxPointsIsObject && (!(key in maxPoints) || !Array.isArray(maxPoints[key]) || maxPoints[key].length !== update2[key].length)) { - throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object"); + throw new Error( + "when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object" + ); } } } @@ -44988,18 +45019,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - restyle, - [gd, specs.undoit, specs.traces], - restyle, - [gd, specs.redoit, specs.traces] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, restyle, [gd, specs.undoit, specs.traces], restyle, [gd, specs.redoit, specs.traces]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(); return plotDone.then(function() { @@ -45166,7 +45187,11 @@ var Plotly = (() => { var topOrBottom = orient === "top" || orient === "bottom"; if (finalPart === "thicknessmode") { var thicknorm = topOrBottom ? gs.h : gs.w; - doextra(prefixDot + "thickness", innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), i); + doextra( + prefixDot + "thickness", + innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), + i + ); } else { var lennorm = topOrBottom ? gs.w : gs.h; doextra(prefixDot + "len", innerContFull.len * (newVal === "fraction" ? 1 / lennorm : lennorm), i); @@ -45189,12 +45214,7 @@ var Plotly = (() => { } } undoit[ai][i] = undefinedToNull(oldVal); - var swapAttrs = [ - "swapxy", - "swapxyaxes", - "orientation", - "orientationaxes" - ]; + var swapAttrs = ["swapxy", "swapxyaxes", "orientation", "orientationaxes"]; if (swapAttrs.indexOf(ai) !== -1) { if (ai === "orientation") { param.set(newVal); @@ -45291,18 +45311,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - relayout, - [gd, specs.undoit], - relayout, - [gd, specs.redoit] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, relayout, [gd, specs.undoit], relayout, [gd, specs.redoit]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45542,7 +45552,7 @@ var Plotly = (() => { } else { if (ai === "dragmode" && (vi === false && vOld !== false || vi !== false && vOld === false)) { flags.plot = true; - } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && (ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select"))) { + } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select")) { flags.plot = true; } else if (valObject) editTypes.update(flags, valObject); else flags.calc = true; @@ -45629,18 +45639,13 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, update, [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], update, [ gd, - update, - [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], - update, - [gd, restyleSpecs.redoit, relayoutSpecs.redoit, restyleSpecs.traces] - ); + restyleSpecs.redoit, + relayoutSpecs.redoit, + restyleSpecs.traces + ]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45862,10 +45867,10 @@ var Plotly = (() => { } var configChanged = false; if (config) { - var oldConfig = Lib.extendDeep({}, gd._context); + const oldConfig = Lib.extendDeepAll({}, gd._context); gd._context = void 0; setPlotContext(gd, config); - configChanged = diffConfig(oldConfig, gd._context); + configChanged = !helpers.collectionsAreEqual(oldConfig, gd._context); } if (configChanged) { const eventListeners = gd._ev.eventNames().map((name3) => [name3, gd._ev.listeners(name3)]); @@ -45949,11 +45954,7 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); } @@ -46170,38 +46171,6 @@ var Plotly = (() => { } } } - function diffConfig(oldConfig, newConfig) { - var key; - for (key in oldConfig) { - if (key.charAt(0) === "_") continue; - var oldVal = oldConfig[key]; - var newVal = newConfig[key]; - if (oldVal !== newVal) { - if (Lib.isPlainObject(oldVal) && Lib.isPlainObject(newVal)) { - if (diffConfig(oldVal, newVal)) { - return true; - } - } else if (Array.isArray(oldVal) && Array.isArray(newVal)) { - if (oldVal.length !== newVal.length) { - return true; - } - for (var i = 0; i < oldVal.length; i++) { - if (oldVal[i] !== newVal[i]) { - if (Lib.isPlainObject(oldVal[i]) && Lib.isPlainObject(newVal[i])) { - if (diffConfig(oldVal[i], newVal[i])) { - return true; - } - } else { - return true; - } - } - } - } else { - return true; - } - } - } - } function animate(gd, frameOrGroupNameOrFrameList, animationOpts) { gd = Lib.getGraphDiv(gd); if (!Lib.isPlotDiv(gd)) { @@ -46470,9 +46439,13 @@ var Plotly = (() => { var collisionPresent = _frameHash[name2] || _frameHashLocal[name2]; if (name2 && newName && typeof newName === "number" && collisionPresent && numericNameWarningCount < numericNameWarningCountLimit) { numericNameWarningCount++; - Lib.warn('addFrames: overwriting frame "' + (_frameHash[name2] || _frameHashLocal[name2]).name + '" with a frame whose name of type "number" also equates to "' + name2 + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'); + Lib.warn( + 'addFrames: overwriting frame "' + (_frameHash[name2] || _frameHashLocal[name2]).name + '" with a frame whose name of type "number" also equates to "' + name2 + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.' + ); if (numericNameWarningCount === numericNameWarningCountLimit) { - Lib.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed."); + Lib.warn( + "addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed." + ); } } _frameHashLocal[lookupName] = { name: lookupName }; @@ -46492,7 +46465,9 @@ var Plotly = (() => { for (i = insertions.length - 1; i >= 0; i--) { frame = insertions[i].frame; if (typeof frame.name === "number") { - Lib.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"); + Lib.warn( + "Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings" + ); } if (!frame.name) { while (_frameHash[frame.name = "frame " + gd._transitionData._counter++]) ; @@ -56531,7 +56506,7 @@ var Plotly = (() => { if (axisOpts.side === "bottom") { Titles.draw(gd, axisOpts._id + "title", { propContainer: axisOpts, - propName: axisOpts._name + ".title", + propName: axisOpts._name + ".title.text", placeholder: fullLayout._dfltTitle.x, attributes: { x: axisOpts._offset + axisOpts._length / 2, @@ -58354,7 +58329,7 @@ var Plotly = (() => { function drawTitle(titleClass, titleOpts) { var dfltTitleOpts = { propContainer: ax, - propName: opts._propPrefix + "title", + propName: opts._propPrefix + "title.text", traceIndex: opts._traceIndex, _meta: opts._meta, placeholder: fullLayout._dfltTitle.colorbar, @@ -68433,7 +68408,7 @@ var Plotly = (() => { var bpad = (baxis.showticklabels ? baxis.tickfont.size : 0) + (baxis.ticks === "outside" ? baxis.ticklen : 0) + 3; layers["a-title"] = Titles.draw(gd, "a" + titlesuffix, { propContainer: aaxis, - propName: _this.id + ".aaxis.title", + propName: _this.id + ".aaxis.title.text", placeholder: _(gd, "Click to enter Component A title"), attributes: { x: _this.x0 + _this.w / 2, @@ -68443,7 +68418,7 @@ var Plotly = (() => { }); layers["b-title"] = Titles.draw(gd, "b" + titlesuffix, { propContainer: baxis, - propName: _this.id + ".baxis.title", + propName: _this.id + ".baxis.title.text", placeholder: _(gd, "Click to enter Component B title"), attributes: { x: _this.x0 - bpad, @@ -68453,7 +68428,7 @@ var Plotly = (() => { }); layers["c-title"] = Titles.draw(gd, "c" + titlesuffix, { propContainer: caxis, - propName: _this.id + ".caxis.title", + propName: _this.id + ".caxis.title.text", placeholder: _(gd, "Click to enter Component C title"), attributes: { x: _this.x0 + _this.w + bpad, @@ -273639,7 +273614,7 @@ uniform ${i3} ${a3} u_${s3}; }, exponentformat: { valType: "enumerated", - values: ["none", "e", "E", "power", "SI", "B"], + values: ["none", "e", "E", "power", "SI", "B", "SI extended"], dflt: "B", editType: "calc" }, @@ -278246,7 +278221,7 @@ uniform ${i3} ${a3} u_${s3}; var y = cy - radius / 2 * sina + pad * cosa; _this.layers["radial-axis-title"] = Titles.draw(gd, titleClass, { propContainer: radialLayout, - propName: _this.id + ".radialaxis.title", + propName: _this.id + ".radialaxis.title.text", placeholder: _(gd, "Click to enter radial axis title"), attributes: { x, diff --git a/dist/plotly-strict.min.js b/dist/plotly-strict.min.js index ece210f469a..91df52e883e 100644 --- a/dist/plotly-strict.min.js +++ b/dist/plotly-strict.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (strict - minified) v3.1.1 +* plotly.js (strict - minified) v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,39 +12,39 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var Mtt=Object.create;var EM=Object.defineProperty,Ett=Object.defineProperties,ktt=Object.getOwnPropertyDescriptor,Ctt=Object.getOwnPropertyDescriptors,Ltt=Object.getOwnPropertyNames,mee=Object.getOwnPropertySymbols,Ptt=Object.getPrototypeOf,gee=Object.prototype.hasOwnProperty,ztt=Object.prototype.propertyIsEnumerable;var yee=(e,t,r)=>t in e?EM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_ee=(e,t)=>{for(var r in t||(t={}))gee.call(t,r)&&yee(e,r,t[r]);if(mee)for(var r of mee(t))ztt.call(t,r)&&yee(e,r,t[r]);return e},xee=(e,t)=>Ett(e,Ctt(t));var tc=(e,t)=>()=>(e&&(t=e(e=0)),t);var Te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bee=(e,t)=>{for(var r in t)EM(e,r,{get:t[r],enumerable:!0})},wee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ltt(t))!gee.call(e,i)&&i!==r&&EM(e,i,{get:()=>t[i],enumerable:!(n=ktt(t,i))||n.enumerable});return e};var Itt=(e,t,r)=>(r=e!=null?Mtt(Ptt(e)):{},wee(t||!e||!e.__esModule?EM(r,"default",{value:e,enumerable:!0}):r,e)),ab=e=>wee(EM({},"__esModule",{value:!0}),e);var oL=Te(Aee=>{"use strict";Aee.version="3.1.1"});var See=Te((Tee,sL)=>{(function(t,r,n){r[t]=r[t]||n(),typeof sL!="undefined"&&sL.exports&&(sL.exports=r[t])})("Promise",typeof window!="undefined"?window:Tee,function(){"use strict";var t,r,n,i=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(k,E,T,L){return Object.defineProperty(k,E,{value:T,writable:!0,configurable:L!==!1})}}catch(v){t=function(E,T,L){return E[T]=L,E}}n=function(){var k,E,T;function L(_,C){this.fn=_,this.self=C,this.next=void 0}return{add:function(C,M){T=new L(C,M),E?E.next=T:k=T,E=T,T=void 0},drain:function(){var C=k;for(k=E=r=void 0;C;)C.fn.call(C.self),C=C.next}}}();function o(v,k){n.add(v,k),r||(r=a(n.drain))}function s(v){var k,E=typeof v;return v!=null&&(E=="object"||E=="function")&&(k=v.then),typeof k=="function"?k:!1}function u(){for(var v=0;v0&&o(u,E))}catch(T){c.call(new d(E),T)}}}function c(v){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=v,k.state=2,k.chain.length>0&&o(u,k))}function h(v,k,E,T){for(var L=0;L{(function(){var e={version:"3.8.2"},t=[].slice,r=function(Z){return t.call(Z)},n=self.document;function i(Z){return Z&&(Z.ownerDocument||Z.document||Z).documentElement}function a(Z){return Z&&(Z.ownerDocument&&Z.ownerDocument.defaultView||Z.document&&Z||Z.defaultView)}if(n)try{r(n.documentElement.childNodes)[0].nodeType}catch(Z){r=function(se){for(var ze=se.length,Xe=new Array(ze);ze--;)Xe[ze]=se[ze];return Xe}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(Z){var o=this.Element.prototype,s=o.setAttribute,u=o.setAttributeNS,l=this.CSSStyleDeclaration.prototype,f=l.setProperty;o.setAttribute=function(se,ze){s.call(this,se,ze+"")},o.setAttributeNS=function(se,ze,Xe){u.call(this,se,ze,Xe+"")},l.setProperty=function(se,ze,Xe){f.call(this,se,ze+"",Xe)}}e.ascending=c;function c(Z,se){return Zse?1:Z>=se?0:NaN}e.descending=function(Z,se){return seZ?1:se>=Z?0:NaN},e.min=function(Z,se){var ze=-1,Xe=Z.length,Qe,ot;if(arguments.length===1){for(;++ze=ot){Qe=ot;break}for(;++zeot&&(Qe=ot)}else{for(;++ze=ot){Qe=ot;break}for(;++zeot&&(Qe=ot)}return Qe},e.max=function(Z,se){var ze=-1,Xe=Z.length,Qe,ot;if(arguments.length===1){for(;++ze=ot){Qe=ot;break}for(;++zeQe&&(Qe=ot)}else{for(;++ze=ot){Qe=ot;break}for(;++zeQe&&(Qe=ot)}return Qe},e.extent=function(Z,se){var ze=-1,Xe=Z.length,Qe,ot,jt;if(arguments.length===1){for(;++ze=ot){Qe=jt=ot;break}for(;++zeot&&(Qe=ot),jt=ot){Qe=jt=ot;break}for(;++zeot&&(Qe=ot),jt1)return jt/(cr-1)},e.deviation=function(){var Z=e.variance.apply(this,arguments);return Z&&Math.sqrt(Z)};function p(Z){return{left:function(se,ze,Xe,Qe){for(arguments.length<3&&(Xe=0),arguments.length<4&&(Qe=se.length);Xe>>1;Z(se[ot],ze)<0?Xe=ot+1:Qe=ot}return Xe},right:function(se,ze,Xe,Qe){for(arguments.length<3&&(Xe=0),arguments.length<4&&(Qe=se.length);Xe>>1;Z(se[ot],ze)>0?Qe=ot:Xe=ot+1}return Xe}}}var x=p(c);e.bisectLeft=x.left,e.bisect=e.bisectRight=x.right,e.bisector=function(Z){return p(Z.length===1?function(se,ze){return c(Z(se),ze)}:Z)},e.shuffle=function(Z,se,ze){(Xe=arguments.length)<3&&(ze=Z.length,Xe<2&&(se=0));for(var Xe=ze-se,Qe,ot;Xe;)ot=Math.random()*Xe--|0,Qe=Z[Xe+se],Z[Xe+se]=Z[ot+se],Z[ot+se]=Qe;return Z},e.permute=function(Z,se){for(var ze=se.length,Xe=new Array(ze);ze--;)Xe[ze]=Z[se[ze]];return Xe},e.pairs=function(Z){for(var se=0,ze=Z.length-1,Xe,Qe=Z[0],ot=new Array(ze<0?0:ze);se=0;)for(jt=Z[se],ze=jt.length;--ze>=0;)ot[--Qe]=jt[ze];return ot};var v=Math.abs;e.range=function(Z,se,ze){if(arguments.length<3&&(ze=1,arguments.length<2&&(se=Z,Z=0)),(se-Z)/ze===1/0)throw new Error("infinite range");var Xe=[],Qe=k(v(ze)),ot=-1,jt;if(Z*=Qe,se*=Qe,ze*=Qe,ze<0)for(;(jt=Z+ze*++ot)>se;)Xe.push(jt/Qe);else for(;(jt=Z+ze*++ot)=se.length)return Qe?Qe.call(Z,cr):Xe?cr.sort(Xe):cr;for(var zr=-1,ui=cr.length,$r=se[Cr++],Oi,fn,vi,zi=new T,Xi;++zr=se.length)return _t;var Cr=[],zr=ze[cr++];return _t.forEach(function(ui,$r){Cr.push({key:ui,values:jt($r,cr)})}),zr?Cr.sort(function(ui,$r){return zr(ui.key,$r.key)}):Cr}return Z.map=function(_t,cr){return ot(cr,_t,0)},Z.entries=function(_t){return jt(ot(e.map,_t,0),0)},Z.key=function(_t){return se.push(_t),Z},Z.sortKeys=function(_t){return ze[se.length-1]=_t,Z},Z.sortValues=function(_t){return Xe=_t,Z},Z.rollup=function(_t){return Qe=_t,Z},Z},e.set=function(Z){var se=new U;if(Z)for(var ze=0,Xe=Z.length;ze=0&&(Xe=Z.slice(ze+1),Z=Z.slice(0,ze)),Z)return arguments.length<2?this[Z].on(Xe):this[Z].on(Xe,se);if(arguments.length===2){if(se==null)for(Z in this)this.hasOwnProperty(Z)&&this[Z].on(Xe,null);return this}};function ae(Z){var se=[],ze=new T;function Xe(){for(var Qe=se,ot=-1,jt=Qe.length,_t;++ot=0&&(ze=Z.slice(0,se))!=="xmlns"&&(Z=Z.slice(se+1)),Ye.hasOwnProperty(ze)?{space:Ye[ze],local:Z}:Z}},Fe.attr=function(Z,se){if(arguments.length<2){if(typeof Z=="string"){var ze=this.node();return Z=e.ns.qualify(Z),Z.local?ze.getAttributeNS(Z.space,Z.local):ze.getAttribute(Z)}for(se in Z)this.each(nt(se,Z[se]));return this}return this.each(nt(Z,se))};function nt(Z,se){Z=e.ns.qualify(Z);function ze(){this.removeAttribute(Z)}function Xe(){this.removeAttributeNS(Z.space,Z.local)}function Qe(){this.setAttribute(Z,se)}function ot(){this.setAttributeNS(Z.space,Z.local,se)}function jt(){var cr=se.apply(this,arguments);cr==null?this.removeAttribute(Z):this.setAttribute(Z,cr)}function _t(){var cr=se.apply(this,arguments);cr==null?this.removeAttributeNS(Z.space,Z.local):this.setAttributeNS(Z.space,Z.local,cr)}return se==null?Z.local?Xe:ze:typeof se=="function"?Z.local?_t:jt:Z.local?ot:Qe}function gt(Z){return Z.trim().replace(/\s+/g," ")}Fe.classed=function(Z,se){if(arguments.length<2){if(typeof Z=="string"){var ze=this.node(),Xe=(Z=it(Z)).length,Qe=-1;if(se=ze.classList){for(;++Qe=0;)(ot=ze[Xe])&&(Qe&&Qe!==ot.nextSibling&&Qe.parentNode.insertBefore(ot,Qe),Qe=ot);return this},Fe.sort=function(Z){Z=at.apply(this,arguments);for(var se=-1,ze=this.length;++se=se&&(se=Qe+1);!(cr=jt[se])&&++se<_t;);return cr}}e.select=function(Z){var se;return typeof Z=="string"?(se=[Ee(Z,n)],se.parentNode=n.documentElement):(se=[Z],se.parentNode=i(Z)),ke([se])},e.selectAll=function(Z){var se;return typeof Z=="string"?(se=r(Me(Z,n)),se.parentNode=n.documentElement):(se=r(Z),se.parentNode=null),ke([se])},Fe.on=function(Z,se,ze){var Xe=arguments.length;if(Xe<3){if(typeof Z!="string"){Xe<2&&(se=!1);for(ze in Z)this.each(rt(ze,Z[ze],se));return this}if(Xe<2)return(Xe=this.node()["__on"+Z])&&Xe._;ze=!1}return this.each(rt(Z,se,ze))};function rt(Z,se,ze){var Xe="__on"+Z,Qe=Z.indexOf("."),ot=zt;Qe>0&&(Z=Z.slice(0,Qe));var jt=$e.get(Z);jt&&(Z=jt,ot=Yt);function _t(){var zr=this[Xe];zr&&(this.removeEventListener(Z,zr,zr.$),delete this[Xe])}function cr(){var zr=ot(se,r(arguments));_t.call(this),this.addEventListener(Z,this[Xe]=zr,zr.$=ze),zr._=se}function Cr(){var zr=new RegExp("^__on([^.]+)"+e.requote(Z)+"$"),ui;for(var $r in this)if(ui=$r.match(zr)){var Oi=this[$r];this.removeEventListener(ui[1],Oi,Oi.$),delete this[$r]}}return Qe?se?cr:_t:se?W:Cr}var $e=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&$e.forEach(function(Z){"on"+Z in n&&$e.remove(Z)});function zt(Z,se){return function(ze){var Xe=e.event;e.event=ze,se[0]=this.__data__;try{Z.apply(this,se)}finally{e.event=Xe}}}function Yt(Z,se){var ze=zt(Z,se);return function(Xe){var Qe=this,ot=Xe.relatedTarget;(!ot||ot!==Qe&&!(ot.compareDocumentPosition(Qe)&8))&&ze.call(Qe,Xe)}}var hr,yr=0;function br(Z){var se=".dragsuppress-"+ ++yr,ze="click"+se,Xe=e.select(a(Z)).on("touchmove"+se,be).on("dragstart"+se,be).on("selectstart"+se,be);if(hr==null&&(hr="onselectstart"in Z?!1:H(Z.style,"userSelect")),hr){var Qe=i(Z).style,ot=Qe[hr];Qe[hr]="none"}return function(jt){if(Xe.on(se,null),hr&&(Qe[hr]=ot),jt){var _t=function(){Xe.on(ze,null)};Xe.on(ze,function(){be(),_t()},!0),setTimeout(_t,0)}}}e.mouse=function(Z){return Ie(Z,Pe())};var Ut=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ie(Z,se){se.changedTouches&&(se=se.changedTouches[0]);var ze=Z.ownerSVGElement||Z;if(ze.createSVGPoint){var Xe=ze.createSVGPoint();if(Ut<0){var Qe=a(Z);if(Qe.scrollX||Qe.scrollY){ze=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var ot=ze[0][0].getScreenCTM();Ut=!(ot.f||ot.e),ze.remove()}}return Ut?(Xe.x=se.pageX,Xe.y=se.pageY):(Xe.x=se.clientX,Xe.y=se.clientY),Xe=Xe.matrixTransform(Z.getScreenCTM().inverse()),[Xe.x,Xe.y]}var jt=Z.getBoundingClientRect();return[se.clientX-jt.left-Z.clientLeft,se.clientY-jt.top-Z.clientTop]}e.touch=function(Z,se,ze){if(arguments.length<3&&(ze=se,se=Pe().changedTouches),se){for(var Xe=0,Qe=se.length,ot;Xe0?1:Z<0?-1:0}function Pt(Z,se,ze){return(se[0]-Z[0])*(ze[1]-Z[1])-(se[1]-Z[1])*(ze[0]-Z[0])}function rr(Z){return Z>1?0:Z<-1?De:Math.acos(Z)}function Hr(Z){return Z>1?fe:Z<-1?-fe:Math.asin(Z)}function Dr(Z){return((Z=Math.exp(Z))-1/Z)/2}function Mr(Z){return((Z=Math.exp(Z))+1/Z)/2}function Fr(Z){return((Z=Math.exp(2*Z))-1)/(Z+1)}function di(Z){return(Z=Math.sin(Z/2))*Z}var Di=Math.SQRT2,Ii=2,Ci=4;e.interpolateZoom=function(Z,se){var ze=Z[0],Xe=Z[1],Qe=Z[2],ot=se[0],jt=se[1],_t=se[2],cr=ot-ze,Cr=jt-Xe,zr=cr*cr+Cr*Cr,ui,$r;if(zr0&&(ds=ds.transition().duration(jt)),ds.call(sn.event)}function El(){zi&&zi.domain(vi.range().map(function(ds){return(ds-Z.x)/Z.k}).map(vi.invert)),pn&&pn.domain(Xi.range().map(function(ds){return(ds-Z.y)/Z.k}).map(Xi.invert))}function Pl(ds){_t++||ds({type:"zoomstart"})}function pu(ds){El(),ds({type:"zoom",scale:Z.k,translate:[Z.x,Z.y]})}function Il(ds){--_t||(ds({type:"zoomend"}),ze=null)}function fu(){var ds=this,Wl=fn.of(ds,arguments),Au=0,Tu=e.select(a(ds)).on(Cr,Ef).on(zr,vf),uf=bi(e.mouse(ds)),df=br(ds);Us.call(ds),Pl(Wl);function Ef(){Au=1,Xo(e.mouse(ds),uf),pu(Wl)}function vf(){Tu.on(Cr,null).on(zr,null),df(Au),Il(Wl)}}function Zu(){var ds=this,Wl=fn.of(ds,arguments),Au={},Tu=0,uf,df=".zoom-"+e.event.changedTouches[0].identifier,Ef="touchmove"+df,vf="touchend"+df,fc=[],Be=e.select(ds),qt=br(ds);Qr(),Pl(Wl),Be.on(cr,null).on($r,Qr);function ar(){var pi=e.touches(ds);return uf=Z.k,pi.forEach(function(on){on.identifier in Au&&(Au[on.identifier]=bi(on))}),pi}function Qr(){var pi=e.event.target;e.select(pi).on(Ef,mi).on(vf,fi),fc.push(pi);for(var on=e.event.changedTouches,Bn=0,Ln=on.length;Bn1){var ua=wn[0],Hn=wn[1],Ni=ua[0]-Hn[0],Wr=ua[1]-Hn[1];Tu=Ni*Ni+Wr*Wr}}function mi(){var pi=e.touches(ds),on,Bn,Ln,wn;Us.call(ds);for(var Ls=0,ua=pi.length;Ls1?1:se,ze=ze<0?0:ze>1?1:ze,Qe=ze<=.5?ze*(1+se):ze+se-ze*se,Xe=2*ze-Qe;function ot(_t){return _t>360?_t-=360:_t<0&&(_t+=360),_t<60?Xe+(Qe-Xe)*_t/60:_t<180?Qe:_t<240?Xe+(Qe-Xe)*(240-_t)/60:Xe}function jt(_t){return Math.round(ot(_t)*255)}return new Bi(jt(Z+120),jt(Z),jt(Z-120))}e.hcl=Wt;function Wt(Z,se,ze){return this instanceof Wt?(this.h=+Z,this.c=+se,void(this.l=+ze)):arguments.length<2?Z instanceof Wt?new Wt(Z.h,Z.c,Z.l):Z instanceof Ur?ti(Z.l,Z.a,Z.b):ti((Z=Xr((Z=e.rgb(Z)).r,Z.g,Z.b)).l,Z.a,Z.b):new Wt(Z,se,ze)}var _r=Wt.prototype=new Gi;_r.brighter=function(Z){return new Wt(this.h,this.c,Math.min(100,this.l+Ir*(arguments.length?Z:1)))},_r.darker=function(Z){return new Wt(this.h,this.c,Math.max(0,this.l-Ir*(arguments.length?Z:1)))},_r.rgb=function(){return Lr(this.h,this.c,this.l).rgb()};function Lr(Z,se,ze){return isNaN(Z)&&(Z=0),isNaN(se)&&(se=0),new Ur(ze,Math.cos(Z*=pe)*se,Math.sin(Z)*se)}e.lab=Ur;function Ur(Z,se,ze){return this instanceof Ur?(this.l=+Z,this.a=+se,void(this.b=+ze)):arguments.length<2?Z instanceof Ur?new Ur(Z.l,Z.a,Z.b):Z instanceof Wt?Lr(Z.h,Z.c,Z.l):Xr((Z=Bi(Z)).r,Z.g,Z.b):new Ur(Z,se,ze)}var Ir=18,Gr=.95047,jr=1,yi=1.08883,Ei=Ur.prototype=new Gi;Ei.brighter=function(Z){return new Ur(Math.min(100,this.l+Ir*(arguments.length?Z:1)),this.a,this.b)},Ei.darker=function(Z){return new Ur(Math.max(0,this.l-Ir*(arguments.length?Z:1)),this.a,this.b)},Ei.rgb=function(){return Vi(this.l,this.a,this.b)};function Vi(Z,se,ze){var Xe=(Z+16)/116,Qe=Xe+se/500,ot=Xe-ze/200;return Qe=en(Qe)*Gr,Xe=en(Xe)*jr,ot=en(ot)*yi,new Bi(oi(3.2404542*Qe-1.5371385*Xe-.4985314*ot),oi(-.969266*Qe+1.8760108*Xe+.041556*ot),oi(.0556434*Qe-.2040259*Xe+1.0572252*ot))}function ti(Z,se,ze){return Z>0?new Wt(Math.atan2(ze,se)*dt,Math.sqrt(se*se+ze*ze),Z):new Wt(NaN,NaN,Z)}function en(Z){return Z>.206893034?Z*Z*Z:(Z-4/29)/7.787037}function Yr(Z){return Z>.008856?Math.pow(Z,1/3):7.787037*Z+4/29}function oi(Z){return Math.round(255*(Z<=.00304?12.92*Z:1.055*Math.pow(Z,1/2.4)-.055))}e.rgb=Bi;function Bi(Z,se,ze){return this instanceof Bi?(this.r=~~Z,this.g=~~se,void(this.b=~~ze)):arguments.length<2?Z instanceof Bi?new Bi(Z.r,Z.g,Z.b):xn(""+Z,Bi,Vt):new Bi(Z,se,ze)}function an(Z){return new Bi(Z>>16,Z>>8&255,Z&255)}function rn(Z){return an(Z)+""}var Fi=Bi.prototype=new Gi;Fi.brighter=function(Z){Z=Math.pow(.7,arguments.length?Z:1);var se=this.r,ze=this.g,Xe=this.b,Qe=30;return!se&&!ze&&!Xe?new Bi(Qe,Qe,Qe):(se&&se>4,Xe=Xe>>4|Xe,Qe=cr&240,Qe=Qe>>4|Qe,ot=cr&15,ot=ot<<4|ot):Z.length===7&&(Xe=(cr&16711680)>>16,Qe=(cr&65280)>>8,ot=cr&255)),se(Xe,Qe,ot))}function xi(Z,se,ze){var Xe=Math.min(Z/=255,se/=255,ze/=255),Qe=Math.max(Z,se,ze),ot=Qe-Xe,jt,_t,cr=(Qe+Xe)/2;return ot?(_t=cr<.5?ot/(Qe+Xe):ot/(2-Qe-Xe),Z==Qe?jt=(se-ze)/ot+(se0&&cr<1?0:jt),new Bt(jt,_t,cr)}function Xr(Z,se,ze){Z=ft(Z),se=ft(se),ze=ft(ze);var Xe=Yr((.4124564*Z+.3575761*se+.1804375*ze)/Gr),Qe=Yr((.2126729*Z+.7151522*se+.072175*ze)/jr),ot=Yr((.0193339*Z+.119192*se+.9503041*ze)/yi);return Ur(116*Qe-16,500*(Xe-Qe),200*(Qe-ot))}function ft(Z){return(Z/=255)<=.04045?Z/12.92:Math.pow((Z+.055)/1.055,2.4)}function tr(Z){var se=parseFloat(Z);return Z.charAt(Z.length-1)==="%"?Math.round(se*2.55):se}var pr=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});pr.forEach(function(Z,se){pr.set(Z,an(se))});function gr(Z){return typeof Z=="function"?Z:function(){return Z}}e.functor=gr,e.xhr=Zr(G);function Zr(Z){return function(se,ze,Xe){return arguments.length===2&&typeof ze=="function"&&(Xe=ze,ze=null),Ai(se,ze,Z,Xe)}}function Ai(Z,se,ze,Xe){var Qe={},ot=e.dispatch("beforesend","progress","load","error"),jt={},_t=new XMLHttpRequest,cr=null;self.XDomainRequest&&!("withCredentials"in _t)&&/^(http(s)?:)?\/\//.test(Z)&&(_t=new XDomainRequest),"onload"in _t?_t.onload=_t.onerror=Cr:_t.onreadystatechange=function(){_t.readyState>3&&Cr()};function Cr(){var zr=_t.status,ui;if(!zr&&ni(_t)||zr>=200&&zr<300||zr===304){try{ui=ze.call(Qe,_t)}catch($r){ot.error.call(Qe,$r);return}ot.load.call(Qe,ui)}else ot.error.call(Qe,_t)}return _t.onprogress=function(zr){var ui=e.event;e.event=zr;try{ot.progress.call(Qe,_t)}finally{e.event=ui}},Qe.header=function(zr,ui){return zr=(zr+"").toLowerCase(),arguments.length<2?jt[zr]:(ui==null?delete jt[zr]:jt[zr]=ui+"",Qe)},Qe.mimeType=function(zr){return arguments.length?(se=zr==null?null:zr+"",Qe):se},Qe.responseType=function(zr){return arguments.length?(cr=zr,Qe):cr},Qe.response=function(zr){return ze=zr,Qe},["get","post"].forEach(function(zr){Qe[zr]=function(){return Qe.send.apply(Qe,[zr].concat(r(arguments)))}}),Qe.send=function(zr,ui,$r){if(arguments.length===2&&typeof ui=="function"&&($r=ui,ui=null),_t.open(zr,Z,!0),se!=null&&!("accept"in jt)&&(jt.accept=se+",*/*"),_t.setRequestHeader)for(var Oi in jt)_t.setRequestHeader(Oi,jt[Oi]);return se!=null&&_t.overrideMimeType&&_t.overrideMimeType(se),cr!=null&&(_t.responseType=cr),$r!=null&&Qe.on("error",$r).on("load",function(fn){$r(null,fn)}),ot.beforesend.call(Qe,_t),_t.send(ui==null?null:ui),Qe},Qe.abort=function(){return _t.abort(),Qe},e.rebind(Qe,ot,"on"),Xe==null?Qe:Qe.get(Qi(Xe))}function Qi(Z){return Z.length===1?function(se,ze){Z(se==null?ze:null)}:Z}function ni(Z){var se=Z.responseType;return se&&se!=="text"?Z.response:Z.responseText}e.dsv=function(Z,se){var ze=new RegExp('["'+Z+` +"use strict";var Plotly=(()=>{var ktt=Object.create;var kM=Object.defineProperty,Ctt=Object.defineProperties,Ltt=Object.getOwnPropertyDescriptor,Ptt=Object.getOwnPropertyDescriptors,ztt=Object.getOwnPropertyNames,mee=Object.getOwnPropertySymbols,Itt=Object.getPrototypeOf,gee=Object.prototype.hasOwnProperty,Rtt=Object.prototype.propertyIsEnumerable;var yee=(e,t,r)=>t in e?kM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_ee=(e,t)=>{for(var r in t||(t={}))gee.call(t,r)&&yee(e,r,t[r]);if(mee)for(var r of mee(t))Rtt.call(t,r)&&yee(e,r,t[r]);return e},xee=(e,t)=>Ctt(e,Ptt(t));var tc=(e,t)=>()=>(e&&(t=e(e=0)),t);var Te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bee=(e,t)=>{for(var r in t)kM(e,r,{get:t[r],enumerable:!0})},wee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ztt(t))!gee.call(e,i)&&i!==r&&kM(e,i,{get:()=>t[i],enumerable:!(n=Ltt(t,i))||n.enumerable});return e};var Dtt=(e,t,r)=>(r=e!=null?ktt(Itt(e)):{},wee(t||!e||!e.__esModule?kM(r,"default",{value:e,enumerable:!0}):r,e)),ab=e=>wee(kM({},"__esModule",{value:!0}),e);var sL=Te(Aee=>{"use strict";Aee.version="3.1.2"});var See=Te((Tee,lL)=>{(function(t,r,n){r[t]=r[t]||n(),typeof lL!="undefined"&&lL.exports&&(lL.exports=r[t])})("Promise",typeof window!="undefined"?window:Tee,function(){"use strict";var t,r,n,i=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(k,E,T,L){return Object.defineProperty(k,E,{value:T,writable:!0,configurable:L!==!1})}}catch(v){t=function(E,T,L){return E[T]=L,E}}n=function(){var k,E,T;function L(x,C){this.fn=x,this.self=C,this.next=void 0}return{add:function(C,M){T=new L(C,M),E?E.next=T:k=T,E=T,T=void 0},drain:function(){var C=k;for(k=E=r=void 0;C;)C.fn.call(C.self),C=C.next}}}();function o(v,k){n.add(v,k),r||(r=a(n.drain))}function s(v){var k,E=typeof v;return v!=null&&(E=="object"||E=="function")&&(k=v.then),typeof k=="function"?k:!1}function u(){for(var v=0;v0&&o(u,E))}catch(T){c.call(new d(E),T)}}}function c(v){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=v,k.state=2,k.chain.length>0&&o(u,k))}function h(v,k,E,T){for(var L=0;L{(function(){var e={version:"3.8.2"},t=[].slice,r=function(Z){return t.call(Z)},n=self.document;function i(Z){return Z&&(Z.ownerDocument||Z.document||Z).documentElement}function a(Z){return Z&&(Z.ownerDocument&&Z.ownerDocument.defaultView||Z.document&&Z||Z.defaultView)}if(n)try{r(n.documentElement.childNodes)[0].nodeType}catch(Z){r=function(se){for(var ze=se.length,Xe=new Array(ze);ze--;)Xe[ze]=se[ze];return Xe}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(Z){var o=this.Element.prototype,s=o.setAttribute,u=o.setAttributeNS,l=this.CSSStyleDeclaration.prototype,f=l.setProperty;o.setAttribute=function(se,ze){s.call(this,se,ze+"")},o.setAttributeNS=function(se,ze,Xe){u.call(this,se,ze,Xe+"")},l.setProperty=function(se,ze,Xe){f.call(this,se,ze+"",Xe)}}e.ascending=c;function c(Z,se){return Zse?1:Z>=se?0:NaN}e.descending=function(Z,se){return seZ?1:se>=Z?0:NaN},e.min=function(Z,se){var ze=-1,Xe=Z.length,Qe,ot;if(arguments.length===1){for(;++ze=ot){Qe=ot;break}for(;++zeot&&(Qe=ot)}else{for(;++ze=ot){Qe=ot;break}for(;++zeot&&(Qe=ot)}return Qe},e.max=function(Z,se){var ze=-1,Xe=Z.length,Qe,ot;if(arguments.length===1){for(;++ze=ot){Qe=ot;break}for(;++zeQe&&(Qe=ot)}else{for(;++ze=ot){Qe=ot;break}for(;++zeQe&&(Qe=ot)}return Qe},e.extent=function(Z,se){var ze=-1,Xe=Z.length,Qe,ot,jt;if(arguments.length===1){for(;++ze=ot){Qe=jt=ot;break}for(;++zeot&&(Qe=ot),jt=ot){Qe=jt=ot;break}for(;++zeot&&(Qe=ot),jt1)return jt/(cr-1)},e.deviation=function(){var Z=e.variance.apply(this,arguments);return Z&&Math.sqrt(Z)};function p(Z){return{left:function(se,ze,Xe,Qe){for(arguments.length<3&&(Xe=0),arguments.length<4&&(Qe=se.length);Xe>>1;Z(se[ot],ze)<0?Xe=ot+1:Qe=ot}return Xe},right:function(se,ze,Xe,Qe){for(arguments.length<3&&(Xe=0),arguments.length<4&&(Qe=se.length);Xe>>1;Z(se[ot],ze)>0?Qe=ot:Xe=ot+1}return Xe}}}var _=p(c);e.bisectLeft=_.left,e.bisect=e.bisectRight=_.right,e.bisector=function(Z){return p(Z.length===1?function(se,ze){return c(Z(se),ze)}:Z)},e.shuffle=function(Z,se,ze){(Xe=arguments.length)<3&&(ze=Z.length,Xe<2&&(se=0));for(var Xe=ze-se,Qe,ot;Xe;)ot=Math.random()*Xe--|0,Qe=Z[Xe+se],Z[Xe+se]=Z[ot+se],Z[ot+se]=Qe;return Z},e.permute=function(Z,se){for(var ze=se.length,Xe=new Array(ze);ze--;)Xe[ze]=Z[se[ze]];return Xe},e.pairs=function(Z){for(var se=0,ze=Z.length-1,Xe,Qe=Z[0],ot=new Array(ze<0?0:ze);se=0;)for(jt=Z[se],ze=jt.length;--ze>=0;)ot[--Qe]=jt[ze];return ot};var v=Math.abs;e.range=function(Z,se,ze){if(arguments.length<3&&(ze=1,arguments.length<2&&(se=Z,Z=0)),(se-Z)/ze===1/0)throw new Error("infinite range");var Xe=[],Qe=k(v(ze)),ot=-1,jt;if(Z*=Qe,se*=Qe,ze*=Qe,ze<0)for(;(jt=Z+ze*++ot)>se;)Xe.push(jt/Qe);else for(;(jt=Z+ze*++ot)=se.length)return Qe?Qe.call(Z,cr):Xe?cr.sort(Xe):cr;for(var zr=-1,ui=cr.length,$r=se[Cr++],Oi,fn,vi,zi=new T,Xi;++zr=se.length)return _t;var Cr=[],zr=ze[cr++];return _t.forEach(function(ui,$r){Cr.push({key:ui,values:jt($r,cr)})}),zr?Cr.sort(function(ui,$r){return zr(ui.key,$r.key)}):Cr}return Z.map=function(_t,cr){return ot(cr,_t,0)},Z.entries=function(_t){return jt(ot(e.map,_t,0),0)},Z.key=function(_t){return se.push(_t),Z},Z.sortKeys=function(_t){return ze[se.length-1]=_t,Z},Z.sortValues=function(_t){return Xe=_t,Z},Z.rollup=function(_t){return Qe=_t,Z},Z},e.set=function(Z){var se=new U;if(Z)for(var ze=0,Xe=Z.length;ze=0&&(Xe=Z.slice(ze+1),Z=Z.slice(0,ze)),Z)return arguments.length<2?this[Z].on(Xe):this[Z].on(Xe,se);if(arguments.length===2){if(se==null)for(Z in this)this.hasOwnProperty(Z)&&this[Z].on(Xe,null);return this}};function ae(Z){var se=[],ze=new T;function Xe(){for(var Qe=se,ot=-1,jt=Qe.length,_t;++ot=0&&(ze=Z.slice(0,se))!=="xmlns"&&(Z=Z.slice(se+1)),Ke.hasOwnProperty(ze)?{space:Ke[ze],local:Z}:Z}},Fe.attr=function(Z,se){if(arguments.length<2){if(typeof Z=="string"){var ze=this.node();return Z=e.ns.qualify(Z),Z.local?ze.getAttributeNS(Z.space,Z.local):ze.getAttribute(Z)}for(se in Z)this.each(nt(se,Z[se]));return this}return this.each(nt(Z,se))};function nt(Z,se){Z=e.ns.qualify(Z);function ze(){this.removeAttribute(Z)}function Xe(){this.removeAttributeNS(Z.space,Z.local)}function Qe(){this.setAttribute(Z,se)}function ot(){this.setAttributeNS(Z.space,Z.local,se)}function jt(){var cr=se.apply(this,arguments);cr==null?this.removeAttribute(Z):this.setAttribute(Z,cr)}function _t(){var cr=se.apply(this,arguments);cr==null?this.removeAttributeNS(Z.space,Z.local):this.setAttributeNS(Z.space,Z.local,cr)}return se==null?Z.local?Xe:ze:typeof se=="function"?Z.local?_t:jt:Z.local?ot:Qe}function gt(Z){return Z.trim().replace(/\s+/g," ")}Fe.classed=function(Z,se){if(arguments.length<2){if(typeof Z=="string"){var ze=this.node(),Xe=(Z=it(Z)).length,Qe=-1;if(se=ze.classList){for(;++Qe=0;)(ot=ze[Xe])&&(Qe&&Qe!==ot.nextSibling&&Qe.parentNode.insertBefore(ot,Qe),Qe=ot);return this},Fe.sort=function(Z){Z=at.apply(this,arguments);for(var se=-1,ze=this.length;++se=se&&(se=Qe+1);!(cr=jt[se])&&++se<_t;);return cr}}e.select=function(Z){var se;return typeof Z=="string"?(se=[Ee(Z,n)],se.parentNode=n.documentElement):(se=[Z],se.parentNode=i(Z)),ke([se])},e.selectAll=function(Z){var se;return typeof Z=="string"?(se=r(Me(Z,n)),se.parentNode=n.documentElement):(se=r(Z),se.parentNode=null),ke([se])},Fe.on=function(Z,se,ze){var Xe=arguments.length;if(Xe<3){if(typeof Z!="string"){Xe<2&&(se=!1);for(ze in Z)this.each(rt(ze,Z[ze],se));return this}if(Xe<2)return(Xe=this.node()["__on"+Z])&&Xe._;ze=!1}return this.each(rt(Z,se,ze))};function rt(Z,se,ze){var Xe="__on"+Z,Qe=Z.indexOf("."),ot=zt;Qe>0&&(Z=Z.slice(0,Qe));var jt=$e.get(Z);jt&&(Z=jt,ot=Yt);function _t(){var zr=this[Xe];zr&&(this.removeEventListener(Z,zr,zr.$),delete this[Xe])}function cr(){var zr=ot(se,r(arguments));_t.call(this),this.addEventListener(Z,this[Xe]=zr,zr.$=ze),zr._=se}function Cr(){var zr=new RegExp("^__on([^.]+)"+e.requote(Z)+"$"),ui;for(var $r in this)if(ui=$r.match(zr)){var Oi=this[$r];this.removeEventListener(ui[1],Oi,Oi.$),delete this[$r]}}return Qe?se?cr:_t:se?W:Cr}var $e=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&$e.forEach(function(Z){"on"+Z in n&&$e.remove(Z)});function zt(Z,se){return function(ze){var Xe=e.event;e.event=ze,se[0]=this.__data__;try{Z.apply(this,se)}finally{e.event=Xe}}}function Yt(Z,se){var ze=zt(Z,se);return function(Xe){var Qe=this,ot=Xe.relatedTarget;(!ot||ot!==Qe&&!(ot.compareDocumentPosition(Qe)&8))&&ze.call(Qe,Xe)}}var hr,yr=0;function br(Z){var se=".dragsuppress-"+ ++yr,ze="click"+se,Xe=e.select(a(Z)).on("touchmove"+se,be).on("dragstart"+se,be).on("selectstart"+se,be);if(hr==null&&(hr="onselectstart"in Z?!1:H(Z.style,"userSelect")),hr){var Qe=i(Z).style,ot=Qe[hr];Qe[hr]="none"}return function(jt){if(Xe.on(se,null),hr&&(Qe[hr]=ot),jt){var _t=function(){Xe.on(ze,null)};Xe.on(ze,function(){be(),_t()},!0),setTimeout(_t,0)}}}e.mouse=function(Z){return Ie(Z,Pe())};var Ut=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ie(Z,se){se.changedTouches&&(se=se.changedTouches[0]);var ze=Z.ownerSVGElement||Z;if(ze.createSVGPoint){var Xe=ze.createSVGPoint();if(Ut<0){var Qe=a(Z);if(Qe.scrollX||Qe.scrollY){ze=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var ot=ze[0][0].getScreenCTM();Ut=!(ot.f||ot.e),ze.remove()}}return Ut?(Xe.x=se.pageX,Xe.y=se.pageY):(Xe.x=se.clientX,Xe.y=se.clientY),Xe=Xe.matrixTransform(Z.getScreenCTM().inverse()),[Xe.x,Xe.y]}var jt=Z.getBoundingClientRect();return[se.clientX-jt.left-Z.clientLeft,se.clientY-jt.top-Z.clientTop]}e.touch=function(Z,se,ze){if(arguments.length<3&&(ze=se,se=Pe().changedTouches),se){for(var Xe=0,Qe=se.length,ot;Xe0?1:Z<0?-1:0}function Pt(Z,se,ze){return(se[0]-Z[0])*(ze[1]-Z[1])-(se[1]-Z[1])*(ze[0]-Z[0])}function rr(Z){return Z>1?0:Z<-1?De:Math.acos(Z)}function Hr(Z){return Z>1?fe:Z<-1?-fe:Math.asin(Z)}function Dr(Z){return((Z=Math.exp(Z))-1/Z)/2}function Mr(Z){return((Z=Math.exp(Z))+1/Z)/2}function Fr(Z){return((Z=Math.exp(2*Z))-1)/(Z+1)}function di(Z){return(Z=Math.sin(Z/2))*Z}var Di=Math.SQRT2,Ii=2,Ci=4;e.interpolateZoom=function(Z,se){var ze=Z[0],Xe=Z[1],Qe=Z[2],ot=se[0],jt=se[1],_t=se[2],cr=ot-ze,Cr=jt-Xe,zr=cr*cr+Cr*Cr,ui,$r;if(zr0&&(ds=ds.transition().duration(jt)),ds.call(sn.event)}function El(){zi&&zi.domain(vi.range().map(function(ds){return(ds-Z.x)/Z.k}).map(vi.invert)),pn&&pn.domain(Xi.range().map(function(ds){return(ds-Z.y)/Z.k}).map(Xi.invert))}function Pl(ds){_t++||ds({type:"zoomstart"})}function pu(ds){El(),ds({type:"zoom",scale:Z.k,translate:[Z.x,Z.y]})}function Il(ds){--_t||(ds({type:"zoomend"}),ze=null)}function fu(){var ds=this,Wl=fn.of(ds,arguments),Au=0,Tu=e.select(a(ds)).on(Cr,Ef).on(zr,vf),uf=bi(e.mouse(ds)),df=br(ds);Us.call(ds),Pl(Wl);function Ef(){Au=1,Xo(e.mouse(ds),uf),pu(Wl)}function vf(){Tu.on(Cr,null).on(zr,null),df(Au),Il(Wl)}}function Zu(){var ds=this,Wl=fn.of(ds,arguments),Au={},Tu=0,uf,df=".zoom-"+e.event.changedTouches[0].identifier,Ef="touchmove"+df,vf="touchend"+df,fc=[],Be=e.select(ds),qt=br(ds);Qr(),Pl(Wl),Be.on(cr,null).on($r,Qr);function ar(){var pi=e.touches(ds);return uf=Z.k,pi.forEach(function(on){on.identifier in Au&&(Au[on.identifier]=bi(on))}),pi}function Qr(){var pi=e.event.target;e.select(pi).on(Ef,mi).on(vf,fi),fc.push(pi);for(var on=e.event.changedTouches,Bn=0,Ln=on.length;Bn1){var ua=wn[0],Hn=wn[1],Ni=ua[0]-Hn[0],Wr=ua[1]-Hn[1];Tu=Ni*Ni+Wr*Wr}}function mi(){var pi=e.touches(ds),on,Bn,Ln,wn;Us.call(ds);for(var Ls=0,ua=pi.length;Ls1?1:se,ze=ze<0?0:ze>1?1:ze,Qe=ze<=.5?ze*(1+se):ze+se-ze*se,Xe=2*ze-Qe;function ot(_t){return _t>360?_t-=360:_t<0&&(_t+=360),_t<60?Xe+(Qe-Xe)*_t/60:_t<180?Qe:_t<240?Xe+(Qe-Xe)*(240-_t)/60:Xe}function jt(_t){return Math.round(ot(_t)*255)}return new Bi(jt(Z+120),jt(Z),jt(Z-120))}e.hcl=Wt;function Wt(Z,se,ze){return this instanceof Wt?(this.h=+Z,this.c=+se,void(this.l=+ze)):arguments.length<2?Z instanceof Wt?new Wt(Z.h,Z.c,Z.l):Z instanceof Ur?ti(Z.l,Z.a,Z.b):ti((Z=Xr((Z=e.rgb(Z)).r,Z.g,Z.b)).l,Z.a,Z.b):new Wt(Z,se,ze)}var _r=Wt.prototype=new Gi;_r.brighter=function(Z){return new Wt(this.h,this.c,Math.min(100,this.l+Ir*(arguments.length?Z:1)))},_r.darker=function(Z){return new Wt(this.h,this.c,Math.max(0,this.l-Ir*(arguments.length?Z:1)))},_r.rgb=function(){return Lr(this.h,this.c,this.l).rgb()};function Lr(Z,se,ze){return isNaN(Z)&&(Z=0),isNaN(se)&&(se=0),new Ur(ze,Math.cos(Z*=pe)*se,Math.sin(Z)*se)}e.lab=Ur;function Ur(Z,se,ze){return this instanceof Ur?(this.l=+Z,this.a=+se,void(this.b=+ze)):arguments.length<2?Z instanceof Ur?new Ur(Z.l,Z.a,Z.b):Z instanceof Wt?Lr(Z.h,Z.c,Z.l):Xr((Z=Bi(Z)).r,Z.g,Z.b):new Ur(Z,se,ze)}var Ir=18,Gr=.95047,jr=1,yi=1.08883,Ei=Ur.prototype=new Gi;Ei.brighter=function(Z){return new Ur(Math.min(100,this.l+Ir*(arguments.length?Z:1)),this.a,this.b)},Ei.darker=function(Z){return new Ur(Math.max(0,this.l-Ir*(arguments.length?Z:1)),this.a,this.b)},Ei.rgb=function(){return Vi(this.l,this.a,this.b)};function Vi(Z,se,ze){var Xe=(Z+16)/116,Qe=Xe+se/500,ot=Xe-ze/200;return Qe=en(Qe)*Gr,Xe=en(Xe)*jr,ot=en(ot)*yi,new Bi(oi(3.2404542*Qe-1.5371385*Xe-.4985314*ot),oi(-.969266*Qe+1.8760108*Xe+.041556*ot),oi(.0556434*Qe-.2040259*Xe+1.0572252*ot))}function ti(Z,se,ze){return Z>0?new Wt(Math.atan2(ze,se)*dt,Math.sqrt(se*se+ze*ze),Z):new Wt(NaN,NaN,Z)}function en(Z){return Z>.206893034?Z*Z*Z:(Z-4/29)/7.787037}function Yr(Z){return Z>.008856?Math.pow(Z,1/3):7.787037*Z+4/29}function oi(Z){return Math.round(255*(Z<=.00304?12.92*Z:1.055*Math.pow(Z,1/2.4)-.055))}e.rgb=Bi;function Bi(Z,se,ze){return this instanceof Bi?(this.r=~~Z,this.g=~~se,void(this.b=~~ze)):arguments.length<2?Z instanceof Bi?new Bi(Z.r,Z.g,Z.b):xn(""+Z,Bi,Vt):new Bi(Z,se,ze)}function an(Z){return new Bi(Z>>16,Z>>8&255,Z&255)}function rn(Z){return an(Z)+""}var Fi=Bi.prototype=new Gi;Fi.brighter=function(Z){Z=Math.pow(.7,arguments.length?Z:1);var se=this.r,ze=this.g,Xe=this.b,Qe=30;return!se&&!ze&&!Xe?new Bi(Qe,Qe,Qe):(se&&se>4,Xe=Xe>>4|Xe,Qe=cr&240,Qe=Qe>>4|Qe,ot=cr&15,ot=ot<<4|ot):Z.length===7&&(Xe=(cr&16711680)>>16,Qe=(cr&65280)>>8,ot=cr&255)),se(Xe,Qe,ot))}function xi(Z,se,ze){var Xe=Math.min(Z/=255,se/=255,ze/=255),Qe=Math.max(Z,se,ze),ot=Qe-Xe,jt,_t,cr=(Qe+Xe)/2;return ot?(_t=cr<.5?ot/(Qe+Xe):ot/(2-Qe-Xe),Z==Qe?jt=(se-ze)/ot+(se0&&cr<1?0:jt),new Bt(jt,_t,cr)}function Xr(Z,se,ze){Z=ft(Z),se=ft(se),ze=ft(ze);var Xe=Yr((.4124564*Z+.3575761*se+.1804375*ze)/Gr),Qe=Yr((.2126729*Z+.7151522*se+.072175*ze)/jr),ot=Yr((.0193339*Z+.119192*se+.9503041*ze)/yi);return Ur(116*Qe-16,500*(Xe-Qe),200*(Qe-ot))}function ft(Z){return(Z/=255)<=.04045?Z/12.92:Math.pow((Z+.055)/1.055,2.4)}function tr(Z){var se=parseFloat(Z);return Z.charAt(Z.length-1)==="%"?Math.round(se*2.55):se}var pr=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});pr.forEach(function(Z,se){pr.set(Z,an(se))});function gr(Z){return typeof Z=="function"?Z:function(){return Z}}e.functor=gr,e.xhr=Zr(G);function Zr(Z){return function(se,ze,Xe){return arguments.length===2&&typeof ze=="function"&&(Xe=ze,ze=null),Ai(se,ze,Z,Xe)}}function Ai(Z,se,ze,Xe){var Qe={},ot=e.dispatch("beforesend","progress","load","error"),jt={},_t=new XMLHttpRequest,cr=null;self.XDomainRequest&&!("withCredentials"in _t)&&/^(http(s)?:)?\/\//.test(Z)&&(_t=new XDomainRequest),"onload"in _t?_t.onload=_t.onerror=Cr:_t.onreadystatechange=function(){_t.readyState>3&&Cr()};function Cr(){var zr=_t.status,ui;if(!zr&&ni(_t)||zr>=200&&zr<300||zr===304){try{ui=ze.call(Qe,_t)}catch($r){ot.error.call(Qe,$r);return}ot.load.call(Qe,ui)}else ot.error.call(Qe,_t)}return _t.onprogress=function(zr){var ui=e.event;e.event=zr;try{ot.progress.call(Qe,_t)}finally{e.event=ui}},Qe.header=function(zr,ui){return zr=(zr+"").toLowerCase(),arguments.length<2?jt[zr]:(ui==null?delete jt[zr]:jt[zr]=ui+"",Qe)},Qe.mimeType=function(zr){return arguments.length?(se=zr==null?null:zr+"",Qe):se},Qe.responseType=function(zr){return arguments.length?(cr=zr,Qe):cr},Qe.response=function(zr){return ze=zr,Qe},["get","post"].forEach(function(zr){Qe[zr]=function(){return Qe.send.apply(Qe,[zr].concat(r(arguments)))}}),Qe.send=function(zr,ui,$r){if(arguments.length===2&&typeof ui=="function"&&($r=ui,ui=null),_t.open(zr,Z,!0),se!=null&&!("accept"in jt)&&(jt.accept=se+",*/*"),_t.setRequestHeader)for(var Oi in jt)_t.setRequestHeader(Oi,jt[Oi]);return se!=null&&_t.overrideMimeType&&_t.overrideMimeType(se),cr!=null&&(_t.responseType=cr),$r!=null&&Qe.on("error",$r).on("load",function(fn){$r(null,fn)}),ot.beforesend.call(Qe,_t),_t.send(ui==null?null:ui),Qe},Qe.abort=function(){return _t.abort(),Qe},e.rebind(Qe,ot,"on"),Xe==null?Qe:Qe.get(Qi(Xe))}function Qi(Z){return Z.length===1?function(se,ze){Z(se==null?ze:null)}:Z}function ni(Z){var se=Z.responseType;return se&&se!=="text"?Z.response:Z.responseText}e.dsv=function(Z,se){var ze=new RegExp('["'+Z+` ]`),Xe=Z.charCodeAt(0);function Qe(Cr,zr,ui){arguments.length<3&&(ui=zr,zr=null);var $r=Ai(Cr,se,zr==null?ot:jt(zr),ui);return $r.row=function(Oi){return arguments.length?$r.response((zr=Oi)==null?ot:jt(Oi)):zr},$r}function ot(Cr){return Qe.parse(Cr.responseText)}function jt(Cr){return function(zr){return Qe.parse(zr.responseText,Cr)}}Qe.parse=function(Cr,zr){var ui;return Qe.parseRows(Cr,function($r,Oi){if(ui)return ui($r,Oi-1);var fn=function(vi){for(var zi={},Xi=$r.length,pn=0;pn=fn)return $r;if(pn)return pn=!1,ui;var xo=vi;if(Cr.charCodeAt(xo)===34){for(var no=xo;no++24?(isFinite(se)&&(clearTimeout(Un),Un=setTimeout(oa,se)),Mn=0):(Mn=1,Ga(oa))}e.timer.flush=function(){ka(),so()};function ka(){for(var Z=Date.now(),se=Zi;se;)Z>=se.t&&se.c(Z-se.t)&&(se.c=null),se=se.n;return Z}function so(){for(var Z,se=Zi,ze=1/0;se;)se.c?(se.t=0;--_t)vi.push(Qe[Cr[ui[_t]][2]]);for(_t=+Oi;_t<$r.length-fn;++_t)vi.push(Qe[Cr[$r[_t]][2]]);return vi}return Xe.x=function(Qe){return arguments.length?(se=Qe,Xe):se},Xe.y=function(Qe){return arguments.length?(ze=Qe,Xe):ze},Xe};function Yo(Z){for(var se=Z.length,ze=[0,1],Xe=2,Qe=2;Qe1&&Pt(Z[ze[Xe-2]],Z[ze[Xe-1]],Z[Qe])<=0;)--Xe;ze[Xe++]=Qe}return ze.slice(0,Xe)}function fa(Z,se){return Z[0]-se[0]||Z[1]-se[1]}e.geom.polygon=function(Z){return te(Z,kn),Z};var kn=e.geom.polygon.prototype=[];kn.area=function(){for(var Z=-1,se=this.length,ze,Xe=this[se-1],Qe=0;++ZOe)_t=_t.L;else if(jt=se-Sn(_t,ze),jt>Oe){if(!_t.R){Xe=_t;break}_t=_t.R}else{ot>-Oe?(Xe=_t.P,Qe=_t):jt>-Oe?(Xe=_t,Qe=_t.N):Xe=Qe=_t;break}var cr=Po(Z);if(fo.insert(Xe,cr),!(!Xe&&!Qe)){if(Xe===Qe){Sa(Xe),Qe=Po(Xe.site),fo.insert(cr,Qe),cr.edge=Qe.edge=vo(Xe.site,cr.site),Wi(Xe),Wi(Qe);return}if(!Qe){cr.edge=vo(Xe.site,cr.site);return}Sa(Xe),Sa(Qe);var Cr=Xe.site,zr=Cr.x,ui=Cr.y,$r=Z.x-zr,Oi=Z.y-ui,fn=Qe.site,vi=fn.x-zr,zi=fn.y-ui,Xi=2*($r*zi-Oi*vi),pn=$r*$r+Oi*Oi,sn=vi*vi+zi*zi,bi={x:(zi*pn-Oi*sn)/Xi+zr,y:($r*sn-vi*pn)/Xi+ui};ps(Qe.edge,Cr,fn,bi),cr.edge=vo(Cr,Z,null,bi),Qe.edge=vo(Z,fn,null,bi),Wi(Xe),Wi(Qe)}}function Ha(Z,se){var ze=Z.site,Xe=ze.x,Qe=ze.y,ot=Qe-se;if(!ot)return Xe;var jt=Z.P;if(!jt)return-1/0;ze=jt.site;var _t=ze.x,cr=ze.y,Cr=cr-se;if(!Cr)return _t;var zr=_t-Xe,ui=1/ot-1/Cr,$r=zr/Cr;return ui?(-$r+Math.sqrt($r*$r-2*ui*(zr*zr/(-2*Cr)-cr+Cr/2+Qe-ot/2)))/ui+Xe:(Xe+_t)/2}function Sn(Z,se){var ze=Z.N;if(ze)return Ha(ze,se);var Xe=Z.site;return Xe.y===se?Xe.x:1/0}function ao(Z){this.site=Z,this.edges=[]}ao.prototype.prepare=function(){for(var Z=this.edges,se=Z.length,ze;se--;)ze=Z[se].edge,(!ze.b||!ze.a)&&Z.splice(se,1);return Z.sort(Ko),Z.length};function Ba(Z){for(var se=Z[0][0],ze=Z[1][0],Xe=Z[0][1],Qe=Z[1][1],ot,jt,_t,cr,Cr=$a,zr=Cr.length,ui,$r,Oi,fn,vi,zi;zr--;)if(ui=Cr[zr],!(!ui||!ui.prepare()))for(Oi=ui.edges,fn=Oi.length,$r=0;$rOe||v(cr-jt)>Oe)&&(Oi.splice($r,0,new co(As(ui.site,zi,v(_t-se)Oe?{x:se,y:v(ot-se)Oe?{x:v(jt-Qe)Oe?{x:ze,y:v(ot-ze)Oe?{x:v(jt-Xe)=-Re)){var $r=cr*cr+Cr*Cr,Oi=zr*zr+zi*zi,fn=(zi*$r-Cr*Oi)/ui,vi=(cr*Oi-zr*$r)/ui,zi=vi+_t,Xi=ws.pop()||new Qo;Xi.arc=Z,Xi.site=Qe,Xi.x=fn+jt,Xi.y=zi+Math.sqrt(fn*fn+vi*vi),Xi.cy=zi,Z.circle=Xi;for(var pn=null,sn=wa._;sn;)if(Xi.y0)){if(vi/=Oi,Oi<0){if(vi0){if(vi>$r)return;vi>ui&&(ui=vi)}if(vi=ze-_t,!(!Oi&&vi<0)){if(vi/=Oi,Oi<0){if(vi>$r)return;vi>ui&&(ui=vi)}else if(Oi>0){if(vi0)){if(vi/=fn,fn<0){if(vi0){if(vi>$r)return;vi>ui&&(ui=vi)}if(vi=Xe-cr,!(!fn&&vi<0)){if(vi/=fn,fn<0){if(vi>$r)return;vi>ui&&(ui=vi)}else if(fn>0){if(vi0&&(Qe.a={x:_t+ui*Oi,y:cr+ui*fn}),$r<1&&(Qe.b={x:_t+$r*Oi,y:cr+$r*fn}),Qe}}}}}}function vn(Z){for(var se=ls,ze=Qa(Z[0][0],Z[0][1],Z[1][0],Z[1][1]),Xe=se.length,Qe;Xe--;)Qe=se[Xe],(!da(Qe,Z)||!ze(Qe)||v(Qe.a.x-Qe.b.x)=ot)return;if(zr>$r){if(!Xe)Xe={x:fn,y:jt};else if(Xe.y>=_t)return;ze={x:fn,y:_t}}else{if(!Xe)Xe={x:fn,y:_t};else if(Xe.y1)if(zr>$r){if(!Xe)Xe={x:(jt-Xi)/zi,y:jt};else if(Xe.y>=_t)return;ze={x:(_t-Xi)/zi,y:_t}}else{if(!Xe)Xe={x:(_t-Xi)/zi,y:_t};else if(Xe.y=ot)return;ze={x:ot,y:zi*ot+Xi}}else{if(!Xe)Xe={x:ot,y:zi*ot+Xi};else if(Xe.x=zr&&Xi.x<=$r&&Xi.y>=ui&&Xi.y<=Oi?[[zr,Oi],[$r,Oi],[$r,ui],[zr,ui]]:[];pn.point=cr[vi]}),Cr}function _t(cr){return cr.map(function(Cr,zr){return{x:Math.round(Xe(Cr,zr)/Oe)*Oe,y:Math.round(Qe(Cr,zr)/Oe)*Oe,i:zr}})}return jt.links=function(cr){return qs(_t(cr)).edges.filter(function(Cr){return Cr.l&&Cr.r}).map(function(Cr){return{source:cr[Cr.l.i],target:cr[Cr.r.i]}})},jt.triangles=function(cr){var Cr=[];return qs(_t(cr)).cells.forEach(function(zr,ui){for(var $r=zr.site,Oi=zr.edges.sort(Ko),fn=-1,vi=Oi.length,zi,Xi,pn=Oi[vi-1].edge,sn=pn.l===$r?pn.r:pn.l;++fnsn&&(sn=zr.x),zr.y>bi&&(bi=zr.y),Oi.push(zr.x),fn.push(zr.y);else for(vi=0;visn&&(sn=xo),no>bi&&(bi=no),Oi.push(xo),fn.push(no)}var Xo=sn-Xi,js=bi-pn;Xo>js?bi=pn+Xo:sn=Xi+js;function El(Il,fu,Zu,Gu,rf,ds,Wl,Au){if(!(isNaN(Zu)||isNaN(Gu)))if(Il.leaf){var Tu=Il.x,uf=Il.y;if(Tu!=null)if(v(Tu-Zu)+v(uf-Gu)<.01)Pl(Il,fu,Zu,Gu,rf,ds,Wl,Au);else{var df=Il.point;Il.x=Il.y=Il.point=null,Pl(Il,df,Tu,uf,rf,ds,Wl,Au),Pl(Il,fu,Zu,Gu,rf,ds,Wl,Au)}else Il.x=Zu,Il.y=Gu,Il.point=fu}else Pl(Il,fu,Zu,Gu,rf,ds,Wl,Au)}function Pl(Il,fu,Zu,Gu,rf,ds,Wl,Au){var Tu=(rf+Wl)*.5,uf=(ds+Au)*.5,df=Zu>=Tu,Ef=Gu>=uf,vf=Ef<<1|df;Il.leaf=!1,Il=Il.nodes[vf]||(Il.nodes[vf]=_n()),df?rf=Tu:Wl=Tu,Ef?ds=uf:Au=uf,El(Il,fu,Zu,Gu,rf,ds,Wl,Au)}var pu=_n();if(pu.add=function(Il){El(pu,Il,+ui(Il,++vi),+$r(Il,vi),Xi,pn,sn,bi)},pu.visit=function(Il){Vn(Il,pu,Xi,pn,sn,bi)},pu.find=function(Il){return wo(pu,Il[0],Il[1],Xi,pn,sn,bi)},vi=-1,se==null){for(;++viot||$r>jt||Oi=xo,js=ze>=no,El=js<<1|Xo,Pl=El+4;Elze&&(ot=se.slice(ze,ot),_t[jt]?_t[jt]+=ot:_t[++jt]=ot),(Xe=Xe[0])===(Qe=Qe[0])?_t[jt]?_t[jt]+=Qe:_t[++jt]=Qe:(_t[++jt]=null,cr.push({i:jt,x:un(Xe,Qe)})),ze=qn.lastIndex;return ze=0&&!(Xe=e.interpolators[ze](Z,se)););return Xe}e.interpolators=[function(Z,se){var ze=typeof se;return(ze==="string"?pr.has(se.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(se)?Ra:$n:se instanceof Gi?Ra:Array.isArray(se)?Ja:ze==="object"&&isNaN(se)?Xn:un)(Z,se)}],e.interpolateArray=Ja;function Ja(Z,se){var ze=[],Xe=[],Qe=Z.length,ot=se.length,jt=Math.min(Z.length,se.length),_t;for(_t=0;_t=0?Z.slice(0,se):Z,Xe=se>=0?Z.slice(se+1):"in";return ze=eo.get(ze)||lo,Xe=sa.get(Xe)||G,es(Xe(ze.apply(null,t.call(arguments,1))))};function es(Z){return function(se){return se<=0?0:se>=1?1:Z(se)}}function Na(Z){return function(se){return 1-Z(1-se)}}function tn(Z){return function(se){return .5*(se<.5?Z(2*se):2-Z(2-2*se))}}function Pa(Z){return Z*Z}function to(Z){return Z*Z*Z}function yo(Z){if(Z<=0)return 0;if(Z>=1)return 1;var se=Z*Z,ze=se*Z;return 4*(Z<.5?ze:3*(Z-se)+ze-.75)}function Jo(Z){return function(se){return Math.pow(se,Z)}}function Ao(Z){return 1-Math.cos(Z*fe)}function Dn(Z){return Math.pow(2,10*(Z-1))}function _a(Z){return 1-Math.sqrt(1-Z*Z)}function Ws(Z,se){var ze;return arguments.length<2&&(se=.45),arguments.length?ze=se/ct*Math.asin(1/Z):(Z=1,ze=se/4),function(Xe){return 1+Z*Math.pow(2,-10*Xe)*Math.sin((Xe-ze)*ct/se)}}function Ca(Z){return Z||(Z=1.70158),function(se){return se*se*((Z+1)*se-Z)}}function Es(Z){return Z<1/2.75?7.5625*Z*Z:Z<2/2.75?7.5625*(Z-=1.5/2.75)*Z+.75:Z<2.5/2.75?7.5625*(Z-=2.25/2.75)*Z+.9375:7.5625*(Z-=2.625/2.75)*Z+.984375}e.interpolateHcl=Ts;function Ts(Z,se){Z=e.hcl(Z),se=e.hcl(se);var ze=Z.h,Xe=Z.c,Qe=Z.l,ot=se.h-ze,jt=se.c-Xe,_t=se.l-Qe;return isNaN(jt)&&(jt=0,Xe=isNaN(Xe)?se.c:Xe),isNaN(ot)?(ot=0,ze=isNaN(ze)?se.h:ze):ot>180?ot-=360:ot<-180&&(ot+=360),function(cr){return Lr(ze+ot*cr,Xe+jt*cr,Qe+_t*cr)+""}}e.interpolateHsl=Ho;function Ho(Z,se){Z=e.hsl(Z),se=e.hsl(se);var ze=Z.h,Xe=Z.s,Qe=Z.l,ot=se.h-ze,jt=se.s-Xe,_t=se.l-Qe;return isNaN(jt)&&(jt=0,Xe=isNaN(Xe)?se.s:Xe),isNaN(ot)?(ot=0,ze=isNaN(ze)?se.h:ze):ot>180?ot-=360:ot<-180&&(ot+=360),function(cr){return Vt(ze+ot*cr,Xe+jt*cr,Qe+_t*cr)+""}}e.interpolateLab=Wa;function Wa(Z,se){Z=e.lab(Z),se=e.lab(se);var ze=Z.l,Xe=Z.a,Qe=Z.b,ot=se.l-ze,jt=se.a-Xe,_t=se.b-Qe;return function(cr){return Vi(ze+ot*cr,Xe+jt*cr,Qe+_t*cr)+""}}e.interpolateRound=To;function To(Z,se){return se-=Z,function(ze){return Math.round(Z+se*ze)}}e.transform=function(Z){var se=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(ze){if(ze!=null){se.setAttribute("transform",ze);var Xe=se.transform.baseVal.consolidate()}return new ts(Xe?Xe.matrix:Bo)})(Z)};function ts(Z){var se=[Z.a,Z.b],ze=[Z.c,Z.d],Xe=qa(se),Qe=Wo(se,ze),ot=qa(ln(ze,se,-Qe))||0;se[0]*ze[1]180?se+=360:se-Z>180&&(Z+=360),Xe.push({i:ze.push(ko(ze)+"rotate(",null,")")-2,x:un(Z,se)})):se&&ze.push(ko(ze)+"rotate("+se+")")}function ea(Z,se,ze,Xe){Z!==se?Xe.push({i:ze.push(ko(ze)+"skewX(",null,")")-2,x:un(Z,se)}):se&&ze.push(ko(ze)+"skewX("+se+")")}function rs(Z,se,ze,Xe){if(Z[0]!==se[0]||Z[1]!==se[1]){var Qe=ze.push(ko(ze)+"scale(",null,",",null,")");Xe.push({i:Qe-4,x:un(Z[0],se[0])},{i:Qe-2,x:un(Z[1],se[1])})}else(se[0]!==1||se[1]!==1)&&ze.push(ko(ze)+"scale("+se+")")}function $s(Z,se){var ze=[],Xe=[];return Z=e.transform(Z),se=e.transform(se),oo(Z.translate,se.translate,ze,Xe),za(Z.rotate,se.rotate,ze,Xe),ea(Z.skew,se.skew,ze,Xe),rs(Z.scale,se.scale,ze,Xe),Z=se=null,function(Qe){for(var ot=-1,jt=Xe.length,_t;++ot0?ot=bi:(ze.c=null,ze.t=NaN,ze=null,se.end({type:"end",alpha:ot=0})):bi>0&&(se.start({type:"start",alpha:ot=bi}),ze=ma(Z.tick)),Z):ot},Z.start=function(){var bi,xo=Oi.length,no=fn.length,Xo=Xe[0],js=Xe[1],El,Pl;for(bi=0;bi=0;)ot.push(zr=Cr[cr]),zr.parent=_t,zr.depth=_t.depth+1;ze&&(_t.value=0),_t.children=Cr}else ze&&(_t.value=+ze.call(Xe,_t,_t.depth)||0),delete _t.children;return Oo(Qe,function(ui){var $r,Oi;Z&&($r=ui.children)&&$r.sort(Z),ze&&(Oi=ui.parent)&&(Oi.value+=ui.value)}),jt}return Xe.sort=function(Qe){return arguments.length?(Z=Qe,Xe):Z},Xe.children=function(Qe){return arguments.length?(se=Qe,Xe):se},Xe.value=function(Qe){return arguments.length?(ze=Qe,Xe):ze},Xe.revalue=function(Qe){return ze&&(Jn(Qe,function(ot){ot.children&&(ot.value=0)}),Oo(Qe,function(ot){var jt;ot.children||(ot.value=+ze.call(Xe,ot,ot.depth)||0),(jt=ot.parent)&&(jt.value+=ot.value)})),Qe},Xe};function Ea(Z,se){return e.rebind(Z,se,"sort","children","value"),Z.nodes=Z,Z.links=zs,Z}function Jn(Z,se){for(var ze=[Z];(Z=ze.pop())!=null;)if(se(Z),(Qe=Z.children)&&(Xe=Qe.length))for(var Xe,Qe;--Xe>=0;)ze.push(Qe[Xe])}function Oo(Z,se){for(var ze=[Z],Xe=[];(Z=ze.pop())!=null;)if(Xe.push(Z),(jt=Z.children)&&(ot=jt.length))for(var Qe=-1,ot,jt;++QeQe&&(Qe=_t),Xe.push(_t)}for(jt=0;jtXe&&(ze=se,Xe=Qe);return ze}function zo(Z){return Z.reduce(io,0)}function io(Z,se){return Z+se[1]}e.layout.histogram=function(){var Z=!0,se=Number,ze=vs,Xe=Io;function Qe(ot,$r){for(var _t=[],cr=ot.map(se,this),Cr=ze.call(this,cr,$r),zr=Xe.call(this,Cr,cr,$r),ui,$r=-1,Oi=cr.length,fn=zr.length-1,vi=Z?1:1/Oi,zi;++$r0)for($r=-1;++$r=Cr[0]&&zi<=Cr[1]&&(ui=_t[e.bisect(zr,zi,1,fn)-1],ui.y+=vi,ui.push(ot[$r]));return _t}return Qe.value=function(ot){return arguments.length?(se=ot,Qe):se},Qe.range=function(ot){return arguments.length?(ze=gr(ot),Qe):ze},Qe.bins=function(ot){return arguments.length?(Xe=typeof ot=="number"?function(jt){return Da(jt,ot)}:gr(ot),Qe):Xe},Qe.frequency=function(ot){return arguments.length?(Z=!!ot,Qe):Z},Qe};function Io(Z,se){return Da(Z,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Da(Z,se){for(var ze=-1,Xe=+Z[0],Qe=(Z[1]-Xe)/se,ot=[];++ze<=se;)ot[ze]=Qe*ze+Xe;return ot}function vs(Z){return[e.min(Z),e.max(Z)]}e.layout.pack=function(){var Z=e.layout.hierarchy().sort(fs),se=0,ze=[1,1],Xe;function Qe(ot,jt){var _t=Z.call(this,ot,jt),cr=_t[0],Cr=ze[0],zr=ze[1],ui=Xe==null?Math.sqrt:typeof Xe=="function"?Xe:function(){return Xe};if(cr.x=cr.y=0,Oo(cr,function(Oi){Oi.r=+ui(Oi.value)}),Oo(cr,Ro),se){var $r=se*(Xe?1:Math.max(2*cr.r/Cr,2*cr.r/zr))/2;Oo(cr,function(Oi){Oi.r+=$r}),Oo(cr,Ro),Oo(cr,function(Oi){Oi.r-=$r})}return hl(cr,Cr/2,zr/2,Xe?1:1/Math.max(2*cr.r/Cr,2*cr.r/zr)),_t}return Qe.size=function(ot){return arguments.length?(ze=ot,Qe):ze},Qe.radius=function(ot){return arguments.length?(Xe=ot==null||typeof ot=="function"?ot:+ot,Qe):Xe},Qe.padding=function(ot){return arguments.length?(se=+ot,Qe):se},Ea(Qe,Z)};function fs(Z,se){return Z.value-se.value}function cl(Z,se){var ze=Z._pack_next;Z._pack_next=se,se._pack_prev=Z,se._pack_next=ze,ze._pack_prev=se}function el(Z,se){Z._pack_next=se,se._pack_prev=Z}function Hs(Z,se){var ze=se.x-Z.x,Xe=se.y-Z.y,Qe=Z.r+se.r;return .999*Qe*Qe>ze*ze+Xe*Xe}function Ro(Z){if(!(se=Z.children)||!($r=se.length))return;var se,ze=1/0,Xe=-1/0,Qe=1/0,ot=-1/0,jt,_t,cr,Cr,zr,ui,$r;function Oi(bi){ze=Math.min(bi.x-bi.r,ze),Xe=Math.max(bi.x+bi.r,Xe),Qe=Math.min(bi.y-bi.r,Qe),ot=Math.max(bi.y+bi.r,ot)}if(se.forEach(tl),jt=se[0],jt.x=-jt.r,jt.y=0,Oi(jt),$r>1&&(_t=se[1],_t.x=_t.r,_t.y=0,Oi(_t),$r>2))for(cr=se[2],Fa(jt,_t,cr),Oi(cr),cl(jt,cr),jt._pack_prev=cr,cl(cr,_t),_t=jt._pack_next,Cr=3;Cr<$r;Cr++){Fa(jt,_t,cr=se[Cr]);var fn=0,vi=1,zi=1;for(zr=_t._pack_next;zr!==_t;zr=zr._pack_next,vi++)if(Hs(zr,cr)){fn=1;break}if(fn==1)for(ui=jt._pack_prev;ui!==zr._pack_prev&&!Hs(ui,cr);ui=ui._pack_prev,zi++);fn?(vizi.x&&(zi=xo),xo.depth>Xi.depth&&(Xi=xo)});var pn=se(vi,zi)/2-vi.x,sn=ze[0]/(zi.x+se(zi,vi)/2+pn),bi=ze[1]/(Xi.depth||1);Jn(Oi,function(xo){xo.x=(xo.x+pn)*sn,xo.y=xo.depth*bi})}return $r}function ot(zr){for(var ui={A:null,children:[zr]},$r=[ui],Oi;(Oi=$r.pop())!=null;)for(var fn=Oi.children,vi,zi=0,Xi=fn.length;zi0&&(Is(At(vi,zr,$r),zr,xo),Xi+=xo,pn+=xo),sn+=vi.m,Xi+=Oi.m,bi+=zi.m,pn+=fn.m;vi&&!Rs(fn)&&(fn.t=vi,fn.m+=sn-pn),Oi&&!jo(zi)&&(zi.t=Oi,zi.m+=Xi-bi,$r=zr)}return $r}function Cr(zr){zr.x*=ze[0],zr.y=zr.depth*ze[1]}return Qe.separation=function(zr){return arguments.length?(se=zr,Qe):se},Qe.size=function(zr){return arguments.length?(Xe=(ze=zr)==null?Cr:null,Qe):Xe?null:ze},Qe.nodeSize=function(zr){return arguments.length?(Xe=(ze=zr)==null?null:Cr,Qe):Xe?ze:null},Ea(Qe,Z)};function Ms(Z,se){return Z.parent==se.parent?1:2}function jo(Z){var se=Z.children;return se.length?se[0]:Z.t}function Rs(Z){var se=Z.children,ze;return(ze=se.length)?se[ze-1]:Z.t}function Is(Z,se,ze){var Xe=ze/(se.i-Z.i);se.c-=Xe,se.s+=ze,Z.c+=Xe,se.z+=ze,se.m+=ze}function Bs(Z){for(var se=0,ze=0,Xe=Z.children,Qe=Xe.length,ot;--Qe>=0;)ot=Xe[Qe],ot.z+=se,ot.m+=se,se+=ot.s+(ze+=ot.c)}function At(Z,se,ze){return Z.a.parent===se.parent?Z.a:ze}e.layout.cluster=function(){var Z=e.layout.hierarchy().sort(null).value(null),se=Ms,ze=[1,1],Xe=!1;function Qe(ot,jt){var _t=Z.call(this,ot,jt),cr=_t[0],Cr,zr=0;Oo(cr,function(vi){var zi=vi.children;zi&&zi.length?(vi.x=wr(zi),vi.y=Gt(zi)):(vi.x=Cr?zr+=se(vi,Cr):0,vi.y=0,Cr=vi)});var ui=mr(cr),$r=Or(cr),Oi=ui.x-se(ui,$r)/2,fn=$r.x+se($r,ui)/2;return Oo(cr,Xe?function(vi){vi.x=(vi.x-cr.x)*ze[0],vi.y=(cr.y-vi.y)*ze[1]}:function(vi){vi.x=(vi.x-Oi)/(fn-Oi)*ze[0],vi.y=(1-(cr.y?vi.y/cr.y:1))*ze[1]}),_t}return Qe.separation=function(ot){return arguments.length?(se=ot,Qe):se},Qe.size=function(ot){return arguments.length?(Xe=(ze=ot)==null,Qe):Xe?null:ze},Qe.nodeSize=function(ot){return arguments.length?(Xe=(ze=ot)!=null,Qe):Xe?ze:null},Ea(Qe,Z)};function Gt(Z){return 1+e.max(Z,function(se){return se.y})}function wr(Z){return Z.reduce(function(se,ze){return se+ze.x},0)/Z.length}function mr(Z){var se=Z.children;return se&&se.length?mr(se[0]):Z}function Or(Z){var se=Z.children,ze;return se&&(ze=se.length)?Or(se[ze-1]):Z}e.layout.treemap=function(){var Z=e.layout.hierarchy(),se=Math.round,ze=[1,1],Xe=null,Qe=gi,ot=!1,jt,_t="squarify",cr=.5*(1+Math.sqrt(5));function Cr(vi,zi){for(var Xi=-1,pn=vi.length,sn,bi;++Xi0;)pn.push(bi=sn[js-1]),pn.area+=bi.area,_t!=="squarify"||(no=$r(pn,Xo))<=xo?(sn.pop(),xo=no):(pn.area-=pn.pop().area,Oi(pn,Xo,Xi,!1),Xo=Math.min(Xi.dx,Xi.dy),pn.length=pn.area=0,xo=1/0);pn.length&&(Oi(pn,Xo,Xi,!0),pn.length=pn.area=0),zi.forEach(zr)}}function ui(vi){var zi=vi.children;if(zi&&zi.length){var Xi=Qe(vi),pn=zi.slice(),sn,bi=[];for(Cr(pn,Xi.dx*Xi.dy/vi.value),bi.area=0;sn=pn.pop();)bi.push(sn),bi.area+=sn.area,sn.z!=null&&(Oi(bi,sn.z?Xi.dx:Xi.dy,Xi,!pn.length),bi.length=bi.area=0);zi.forEach(ui)}}function $r(vi,zi){for(var Xi=vi.area,pn,sn=0,bi=1/0,xo=-1,no=vi.length;++xosn&&(sn=pn));return Xi*=Xi,zi*=zi,Xi?Math.max(zi*sn*cr/Xi,Xi/(zi*bi*cr)):1/0}function Oi(vi,zi,Xi,pn){var sn=-1,bi=vi.length,xo=Xi.x,no=Xi.y,Xo=zi?se(vi.area/zi):0,js;if(zi==Xi.dx){for((pn||Xo>Xi.dy)&&(Xo=Xi.dy);++snXi.dx)&&(Xo=Xi.dx);++sn1);return Z+se*Xe*Math.sqrt(-2*Math.log(ot)/ot)}},logNormal:function(){var Z=e.random.normal.apply(e,arguments);return function(){return Math.exp(Z())}},bates:function(Z){var se=e.random.irwinHall(Z);return function(){return se()/Z}},irwinHall:function(Z){return function(){for(var se=0,ze=0;ze2?Si:Fn,Cr=Xe?Ds:us;return Qe=cr(Z,se,Cr,ze),ot=cr(se,Z,Cr,Eo),_t}function _t(cr){return Qe(cr)}return _t.invert=function(cr){return ot(cr)},_t.domain=function(cr){return arguments.length?(Z=cr.map(Number),jt()):Z},_t.range=function(cr){return arguments.length?(se=cr,jt()):se},_t.rangeRound=function(cr){return _t.range(cr).interpolate(To)},_t.clamp=function(cr){return arguments.length?(Xe=cr,jt()):Xe},_t.interpolate=function(cr){return arguments.length?(ze=cr,jt()):ze},_t.ticks=function(cr){return pa(Z,cr)},_t.tickFormat=function(cr,Cr){return d3_scale_linearTickFormat(Z,cr,Cr)},_t.nice=function(cr){return ya(Z,cr),jt()},_t.copy=function(){return Gn(Z,se,ze,Xe)},jt()}function ta(Z,se){return e.rebind(Z,se,"range","rangeRound","interpolate","clamp")}function ya(Z,se){return Pi(Z,hi(ia(Z,se)[2])),Pi(Z,hi(ia(Z,se)[2])),Z}function ia(Z,se){se==null&&(se=10);var ze=ki(Z),Xe=ze[1]-ze[0],Qe=Math.pow(10,Math.floor(Math.log(Xe/se)/Math.LN10)),ot=se/Xe*Qe;return ot<=.15?Qe*=10:ot<=.35?Qe*=5:ot<=.75&&(Qe*=2),ze[0]=Math.ceil(ze[0]/Qe)*Qe,ze[1]=Math.floor(ze[1]/Qe)*Qe+Qe*.5,ze[2]=Qe,ze}function pa(Z,se){return e.range.apply(e,ia(Z,se))}var va={s:1,g:1,p:1,r:1,e:1};function zn(Z){return-Math.floor(Math.log(Z)/Math.LN10+.01)}function is(Z,se){var ze=zn(se[2]);return Z in va?Math.abs(ze-zn(Math.max(v(se[0]),v(se[1]))))+ +(Z!=="e"):ze-(Z==="%")*2}e.scale.log=function(){return Cs(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Cs(Z,se,ze,Xe){function Qe(_t){return(ze?Math.log(_t<0?0:_t):-Math.log(_t>0?0:-_t))/Math.log(se)}function ot(_t){return ze?Math.pow(se,_t):-Math.pow(se,-_t)}function jt(_t){return Z(Qe(_t))}return jt.invert=function(_t){return ot(Z.invert(_t))},jt.domain=function(_t){return arguments.length?(ze=_t[0]>=0,Z.domain((Xe=_t.map(Number)).map(Qe)),jt):Xe},jt.base=function(_t){return arguments.length?(se=+_t,Z.domain(Xe.map(Qe)),jt):se},jt.nice=function(){var _t=Pi(Xe.map(Qe),ze?Math:Ks);return Z.domain(_t),Xe=_t.map(ot),jt},jt.ticks=function(){var _t=ki(Xe),cr=[],Cr=_t[0],zr=_t[1],ui=Math.floor(Qe(Cr)),$r=Math.ceil(Qe(zr)),Oi=se%1?2:se;if(isFinite($r-ui)){if(ze){for(;ui<$r;ui++)for(var fn=1;fn0;fn--)cr.push(ot(ui)*fn);for(ui=0;cr[ui]zr;$r--);cr=cr.slice(ui,$r)}return cr},jt.copy=function(){return Cs(Z.copy(),se,ze,Xe)},ta(jt,Z)}var Ks={floor:function(Z){return-Math.ceil(-Z)},ceil:function(Z){return-Math.floor(-Z)}};e.scale.pow=function(){return dl(e.scale.linear(),1,[0,1])};function dl(Z,se,ze){var Xe=xl(se),Qe=xl(1/se);function ot(jt){return Z(Xe(jt))}return ot.invert=function(jt){return Qe(Z.invert(jt))},ot.domain=function(jt){return arguments.length?(Z.domain((ze=jt.map(Number)).map(Xe)),ot):ze},ot.ticks=function(jt){return pa(ze,jt)},ot.tickFormat=function(jt,_t){return d3_scale_linearTickFormat(ze,jt,_t)},ot.nice=function(jt){return ot.domain(ya(ze,jt))},ot.exponent=function(jt){return arguments.length?(Xe=xl(se=jt),Qe=xl(1/se),Z.domain(ze.map(Xe)),ot):se},ot.copy=function(){return dl(Z.copy(),se,ze)},ta(ot,Z)}function xl(Z){return function(se){return se<0?-Math.pow(-se,Z):Math.pow(se,Z)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Ol([],{t:"range",a:[[]]})};function Ol(Z,se){var ze,Xe,Qe;function ot(_t){return Xe[((ze.get(_t)||(se.t==="range"?ze.set(_t,Z.push(_t)):NaN))-1)%Xe.length]}function jt(_t,cr){return e.range(Z.length).map(function(Cr){return _t+cr*Cr})}return ot.domain=function(_t){if(!arguments.length)return Z;Z=[],ze=new T;for(var cr=-1,Cr=_t.length,zr;++cr0?ze[ot-1]:Z[0],ot$r?0:1;if(zr=ge)return cr(zr,fn)+(Cr?cr(Cr,1-fn):"")+"Z";var vi,zi,Xi,pn,sn=0,bi=0,xo,no,Xo,js,El,Pl,pu,Il,fu=[];if((pn=(+jt.apply(this,arguments)||0)/2)&&(Xi=Xe===ll?Math.sqrt(Cr*Cr+zr*zr):+Xe.apply(this,arguments),fn||(bi*=-1),zr&&(bi=Hr(Xi/zr*Math.sin(pn))),Cr&&(sn=Hr(Xi/Cr*Math.sin(pn)))),zr){xo=zr*Math.cos(ui+bi),no=zr*Math.sin(ui+bi),Xo=zr*Math.cos($r-bi),js=zr*Math.sin($r-bi);var Zu=Math.abs($r-ui-2*bi)<=De?0:1;if(bi&&Ll(xo,no,Xo,js)===fn^Zu){var Gu=(ui+$r)/2;xo=zr*Math.cos(Gu),no=zr*Math.sin(Gu),Xo=js=null}}else xo=no=0;if(Cr){El=Cr*Math.cos($r-sn),Pl=Cr*Math.sin($r-sn),pu=Cr*Math.cos(ui+sn),Il=Cr*Math.sin(ui+sn);var rf=Math.abs(ui-$r+2*sn)<=De?0:1;if(sn&&Ll(El,Pl,pu,Il)===1-fn^rf){var ds=(ui+$r)/2;El=Cr*Math.cos(ds),Pl=Cr*Math.sin(ds),pu=Il=null}}else El=Pl=0;if(Oi>Oe&&(vi=Math.min(Math.abs(zr-Cr)/2,+ze.apply(this,arguments)))>.001){zi=Cr0?0:1}function ms(Z,se,ze,Xe,Qe){var ot=Z[0]-se[0],jt=Z[1]-se[1],_t=(Qe?Xe:-Xe)/Math.sqrt(ot*ot+jt*jt),cr=_t*jt,Cr=-_t*ot,zr=Z[0]+cr,ui=Z[1]+Cr,$r=se[0]+cr,Oi=se[1]+Cr,fn=(zr+$r)/2,vi=(ui+Oi)/2,zi=$r-zr,Xi=Oi-ui,pn=zi*zi+Xi*Xi,sn=ze-Xe,bi=zr*Oi-$r*ui,xo=(Xi<0?-1:1)*Math.sqrt(Math.max(0,sn*sn*pn-bi*bi)),no=(bi*Xi-zi*xo)/pn,Xo=(-bi*zi-Xi*xo)/pn,js=(bi*Xi+zi*xo)/pn,El=(-bi*zi+Xi*xo)/pn,Pl=no-fn,pu=Xo-vi,Il=js-fn,fu=El-vi;return Pl*Pl+pu*pu>Il*Il+fu*fu&&(no=js,Xo=El),[[no-cr,Xo-Cr],[no*ze/sn,Xo*ze/sn]]}function Os(){return!0}function Xl(Z){var se=Kr,ze=Ia,Xe=Os,Qe=Ul,ot=Qe.key,jt=.7;function _t(cr){var Cr=[],zr=[],ui=-1,$r=cr.length,Oi,fn=gr(se),vi=gr(ze);function zi(){Cr.push("M",Qe(Z(zr),jt))}for(;++ui<$r;)Xe.call(this,Oi=cr[ui],ui)?zr.push([+fn.call(this,Oi,ui),+vi.call(this,Oi,ui)]):zr.length&&(zi(),zr=[]);return zr.length&&zi(),Cr.length?Cr.join(""):null}return _t.x=function(cr){return arguments.length?(se=cr,_t):se},_t.y=function(cr){return arguments.length?(ze=cr,_t):ze},_t.defined=function(cr){return arguments.length?(Xe=cr,_t):Xe},_t.interpolate=function(cr){return arguments.length?(typeof cr=="function"?ot=Qe=cr:ot=(Qe=Gl.get(cr)||Ul).key,_t):ot},_t.tension=function(cr){return arguments.length?(jt=cr,_t):jt},_t}e.svg.line=function(){return Xl(G)};var Gl=e.map({linear:Ul,"linear-closed":le,step:w,"step-before":q,"step-after":Q,basis:Ft,"basis-open":ir,"basis-closed":or,bundle:kr,cardinal:Ge,"cardinal-open":ee,"cardinal-closed":ue,monotone:Ht});Gl.forEach(function(Z,se){se.key=Z,se.closed=/-closed$/.test(Z)});function Ul(Z){return Z.length>1?Z.join("L"):Z+"Z"}function le(Z){return Z.join("L")+"Z"}function w(Z){for(var se=0,ze=Z.length,Xe=Z[0],Qe=[Xe[0],",",Xe[1]];++se1&&Qe.push("H",Xe[0]),Qe.join("")}function q(Z){for(var se=0,ze=Z.length,Xe=Z[0],Qe=[Xe[0],",",Xe[1]];++se1){_t=se[1],ot=Z[cr],cr++,Xe+="C"+(Qe[0]+jt[0])+","+(Qe[1]+jt[1])+","+(ot[0]-_t[0])+","+(ot[1]-_t[1])+","+ot[0]+","+ot[1];for(var Cr=2;Cr9&&(ot=ze*3/Math.sqrt(ot),jt[_t]=ot*Xe,jt[_t+1]=ot*Qe));for(_t=-1;++_t<=cr;)ot=(Z[Math.min(cr,_t+1)][0]-Z[Math.max(0,_t-1)][0])/(6*(1+jt[_t]*jt[_t])),se.push([ot||0,jt[_t]*ot||0]);return se}function Ht(Z){return Z.length<3?Ul(Z):Z[0]+et(Z,pt(Z))}e.svg.line.radial=function(){var Z=Xl(nr);return Z.radius=Z.x,delete Z.x,Z.angle=Z.y,delete Z.y,Z};function nr(Z){for(var se,ze=-1,Xe=Z.length,Qe,ot;++zeDe)+",1 "+ui}function Cr(zr,ui,$r,Oi){return"Q 0,0 "+Oi}return ot.radius=function(zr){return arguments.length?(ze=gr(zr),ot):ze},ot.source=function(zr){return arguments.length?(Z=gr(zr),ot):Z},ot.target=function(zr){return arguments.length?(se=gr(zr),ot):se},ot.startAngle=function(zr){return arguments.length?(Xe=gr(zr),ot):Xe},ot.endAngle=function(zr){return arguments.length?(Qe=gr(zr),ot):Qe},ot};function ri(Z){return Z.radius}e.svg.diagonal=function(){var Z=Ar,se=Rr,ze=si;function Xe(Qe,ot){var jt=Z.call(this,Qe,ot),_t=se.call(this,Qe,ot),cr=(jt.y+_t.y)/2,Cr=[jt,{x:jt.x,y:cr},{x:_t.x,y:cr},_t];return Cr=Cr.map(ze),"M"+Cr[0]+"C"+Cr[1]+" "+Cr[2]+" "+Cr[3]}return Xe.source=function(Qe){return arguments.length?(Z=gr(Qe),Xe):Z},Xe.target=function(Qe){return arguments.length?(se=gr(Qe),Xe):se},Xe.projection=function(Qe){return arguments.length?(ze=Qe,Xe):ze},Xe};function si(Z){return[Z.x,Z.y]}e.svg.diagonal.radial=function(){var Z=e.svg.diagonal(),se=si,ze=Z.projection;return Z.projection=function(Xe){return arguments.length?ze(Mi(se=Xe)):se},Z};function Mi(Z){return function(){var se=Z.apply(this,arguments),ze=se[0],Xe=se[1]-fe;return[ze*Math.cos(Xe),ze*Math.sin(Xe)]}}e.svg.symbol=function(){var Z=Zn,se=hn;function ze(Xe,Qe){return(Ua.get(Z.call(this,Xe,Qe))||Yn)(se.call(this,Xe,Qe))}return ze.type=function(Xe){return arguments.length?(Z=gr(Xe),ze):Z},ze.size=function(Xe){return arguments.length?(se=gr(Xe),ze):se},ze};function hn(){return 64}function Zn(){return"circle"}function Yn(Z){var se=Math.sqrt(Z/De);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var Ua=e.map({circle:Yn,cross:function(Z){var se=Math.sqrt(Z/5)/2;return"M"+-3*se+","+-se+"H"+-se+"V"+-3*se+"H"+se+"V"+-se+"H"+3*se+"V"+se+"H"+se+"V"+3*se+"H"+-se+"V"+se+"H"+-3*se+"Z"},diamond:function(Z){var se=Math.sqrt(Z/(2*vl)),ze=se*vl;return"M0,"+-se+"L"+ze+",0 0,"+se+" "+-ze+",0Z"},square:function(Z){var se=Math.sqrt(Z)/2;return"M"+-se+","+-se+"L"+se+","+-se+" "+se+","+se+" "+-se+","+se+"Z"},"triangle-down":function(Z){var se=Math.sqrt(Z/Fo),ze=se*Fo/2;return"M0,"+ze+"L"+se+","+-ze+" "+-se+","+-ze+"Z"},"triangle-up":function(Z){var se=Math.sqrt(Z/Fo),ze=se*Fo/2;return"M0,"+-ze+"L"+se+","+ze+" "+-se+","+ze+"Z"}});e.svg.symbolTypes=Ua.keys();var Fo=Math.sqrt(3),vl=Math.tan(30*pe);Fe.transition=function(Z){for(var se=ql||++Yl,ze=tu(Z),Xe=[],Qe,ot,jt=ou||{time:Date.now(),ease:yo,delay:0,duration:250},_t=-1,cr=this.length;++_t0;)ui[--pn].call(Z,Xi);if(zi>=1)return jt.event&&jt.event.end.call(Z,Z.__data__,se),--ot.count?delete ot[Xe]:delete Z[ze],1}jt||(_t=Qe.time,cr=ma($r,0,_t),jt=ot[Xe]={tween:new T,time:_t,timer:cr,delay:Qe.delay,duration:Qe.duration,ease:Qe.ease,index:se},Qe=null,++ot.count)}e.svg.axis=function(){var Z=e.scale.linear(),se=Qu,ze=6,Xe=6,Qe=3,ot=[10],jt=null,_t;function cr(Cr){Cr.each(function(){var zr=e.select(this),ui=this.__chart__||Z,$r=this.__chart__=Z.copy(),Oi=jt==null?$r.ticks?$r.ticks.apply($r,ot):$r.domain():jt,fn=_t==null?$r.tickFormat?$r.tickFormat.apply($r,ot):G:_t,vi=zr.selectAll(".tick").data(Oi,$r),zi=vi.enter().insert("g",".domain").attr("class","tick").style("opacity",Oe),Xi=e.transition(vi.exit()).style("opacity",Oe).remove(),pn=e.transition(vi.order()).style("opacity",1),sn=Math.max(ze,0)+Qe,bi,xo=Ji($r),no=zr.selectAll(".domain").data([0]),Xo=(no.enter().append("path").attr("class","domain"),e.transition(no));zi.append("line"),zi.append("text");var js=zi.select("line"),El=pn.select("line"),Pl=vi.select("text").text(fn),pu=zi.select("text"),Il=pn.select("text"),fu=se==="top"||se==="left"?-1:1,Zu,Gu,rf,ds;if(se==="bottom"||se==="top"?(bi=ju,Zu="x",rf="y",Gu="x2",ds="y2",Pl.attr("dy",fu<0?"0em":".71em").style("text-anchor","middle"),Xo.attr("d","M"+xo[0]+","+fu*Xe+"V0H"+xo[1]+"V"+fu*Xe)):(bi=Xu,Zu="y",rf="x",Gu="y2",ds="x2",Pl.attr("dy",".32em").style("text-anchor",fu<0?"end":"start"),Xo.attr("d","M"+fu*Xe+","+xo[0]+"H0V"+xo[1]+"H"+fu*Xe)),js.attr(ds,fu*ze),pu.attr(rf,fu*sn),El.attr(Gu,0).attr(ds,fu*ze),Il.attr(Zu,0).attr(rf,fu*sn),$r.rangeBand){var Wl=$r,Au=Wl.rangeBand()/2;ui=$r=function(Tu){return Wl(Tu)+Au}}else ui.rangeBand?ui=$r:Xi.call(bi,$r,ui);zi.call(bi,ui,$r),pn.call(bi,$r,$r)})}return cr.scale=function(Cr){return arguments.length?(Z=Cr,cr):Z},cr.orient=function(Cr){return arguments.length?(se=Cr in Ju?Cr+"":Qu,cr):se},cr.ticks=function(){return arguments.length?(ot=r(arguments),cr):ot},cr.tickValues=function(Cr){return arguments.length?(jt=Cr,cr):jt},cr.tickFormat=function(Cr){return arguments.length?(_t=Cr,cr):_t},cr.tickSize=function(Cr){var zr=arguments.length;return zr?(ze=+Cr,Xe=+arguments[zr-1],cr):ze},cr.innerTickSize=function(Cr){return arguments.length?(ze=+Cr,cr):ze},cr.outerTickSize=function(Cr){return arguments.length?(Xe=+Cr,cr):Xe},cr.tickPadding=function(Cr){return arguments.length?(Qe=+Cr,cr):Qe},cr.tickSubdivide=function(){return arguments.length&&cr},cr};var Qu="bottom",Ju={top:1,right:1,bottom:1,left:1};function ju(Z,se,ze){Z.attr("transform",function(Xe){var Qe=se(Xe);return"translate("+(isFinite(Qe)?Qe:ze(Xe))+",0)"})}function Xu(Z,se,ze){Z.attr("transform",function(Xe){var Qe=se(Xe);return"translate(0,"+(isFinite(Qe)?Qe:ze(Xe))+")"})}e.svg.brush=function(){var Z=Ce(zr,"brushstart","brush","brushend"),se=null,ze=null,Xe=[0,0],Qe=[0,0],ot,jt,_t=!0,cr=!0,Cr=xf[0];function zr(vi){vi.each(function(){var zi=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",fn).on("touchstart.brush",fn),Xi=zi.selectAll(".background").data([0]);Xi.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),zi.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var pn=zi.selectAll(".resize").data(Cr,G);pn.exit().remove(),pn.enter().append("g").attr("class",function(no){return"resize "+no}).style("cursor",function(no){return lf[no]}).append("rect").attr("x",function(no){return/[ew]$/.test(no)?-3:null}).attr("y",function(no){return/^[ns]/.test(no)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),pn.style("display",zr.empty()?"none":null);var sn=e.transition(zi),bi=e.transition(Xi),xo;se&&(xo=Ji(se),bi.attr("x",xo[0]).attr("width",xo[1]-xo[0]),$r(sn)),ze&&(xo=Ji(ze),bi.attr("y",xo[0]).attr("height",xo[1]-xo[0]),Oi(sn)),ui(sn)})}zr.event=function(vi){vi.each(function(){var zi=Z.of(this,arguments),Xi={x:Xe,y:Qe,i:ot,j:jt},pn=this.__chart__||Xi;this.__chart__=Xi,ql?e.select(this).transition().each("start.brush",function(){ot=pn.i,jt=pn.j,Xe=pn.x,Qe=pn.y,zi({type:"brushstart"})}).tween("brush:brush",function(){var sn=Ja(Xe,Xi.x),bi=Ja(Qe,Xi.y);return ot=jt=null,function(xo){Xe=Xi.x=sn(xo),Qe=Xi.y=bi(xo),zi({type:"brush",mode:"resize"})}}).each("end.brush",function(){ot=Xi.i,jt=Xi.j,zi({type:"brush",mode:"resize"}),zi({type:"brushend"})}):(zi({type:"brushstart"}),zi({type:"brush",mode:"resize"}),zi({type:"brushend"}))})};function ui(vi){vi.selectAll(".resize").attr("transform",function(zi){return"translate("+Xe[+/e$/.test(zi)]+","+Qe[+/^s/.test(zi)]+")"})}function $r(vi){vi.select(".extent").attr("x",Xe[0]),vi.selectAll(".extent,.n>rect,.s>rect").attr("width",Xe[1]-Xe[0])}function Oi(vi){vi.select(".extent").attr("y",Qe[0]),vi.selectAll(".extent,.e>rect,.w>rect").attr("height",Qe[1]-Qe[0])}function fn(){var vi=this,zi=e.select(e.event.target),Xi=Z.of(vi,arguments),pn=e.select(vi),sn=zi.datum(),bi=!/^(n|s)$/.test(sn)&&se,xo=!/^(e|w)$/.test(sn)&&ze,no=zi.classed("extent"),Xo=br(vi),js,El=e.mouse(vi),Pl,pu=e.select(a(vi)).on("keydown.brush",Zu).on("keyup.brush",Gu);if(e.event.changedTouches?pu.on("touchmove.brush",rf).on("touchend.brush",Wl):pu.on("mousemove.brush",rf).on("mouseup.brush",Wl),pn.interrupt().selectAll("*").interrupt(),no)El[0]=Xe[0]-El[0],El[1]=Qe[0]-El[1];else if(sn){var Il=+/w$/.test(sn),fu=+/^n/.test(sn);Pl=[Xe[1-Il]-El[0],Qe[1-fu]-El[1]],El[0]=Xe[Il],El[1]=Qe[fu]}else e.event.altKey&&(js=El.slice());pn.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",zi.style("cursor")),Xi({type:"brushstart"}),rf();function Zu(){e.event.keyCode==32&&(no||(js=null,El[0]-=Xe[1],El[1]-=Qe[1],no=2),be())}function Gu(){e.event.keyCode==32&&no==2&&(El[0]+=Xe[1],El[1]+=Qe[1],no=0,be())}function rf(){var Au=e.mouse(vi),Tu=!1;Pl&&(Au[0]+=Pl[0],Au[1]+=Pl[1]),no||(e.event.altKey?(js||(js=[(Xe[0]+Xe[1])/2,(Qe[0]+Qe[1])/2]),El[0]=Xe[+(Au[0]{(function(e,t){typeof uL=="object"&&typeof Mee!="undefined"?t(uL):(e=e||self,t(e.d3=e.d3||{}))})(uL,function(e){"use strict";var t=new Date,r=new Date;function n(Ae,at,wt,vt){function st(Ue){return Ae(Ue=arguments.length===0?new Date:new Date(+Ue)),Ue}return st.floor=function(Ue){return Ae(Ue=new Date(+Ue)),Ue},st.ceil=function(Ue){return Ae(Ue=new Date(Ue-1)),at(Ue,1),Ae(Ue),Ue},st.round=function(Ue){var rt=st(Ue),$e=st.ceil(Ue);return Ue-rt<$e-Ue?rt:$e},st.offset=function(Ue,rt){return at(Ue=new Date(+Ue),rt==null?1:Math.floor(rt)),Ue},st.range=function(Ue,rt,$e){var zt=[],Yt;if(Ue=st.ceil(Ue),$e=$e==null?1:Math.floor($e),!(Ue0))return zt;do zt.push(Yt=new Date(+Ue)),at(Ue,$e),Ae(Ue);while(Yt=rt)for(;Ae(rt),!Ue(rt);)rt.setTime(rt-1)},function(rt,$e){if(rt>=rt)if($e<0)for(;++$e<=0;)for(;at(rt,-1),!Ue(rt););else for(;--$e>=0;)for(;at(rt,1),!Ue(rt););})},wt&&(st.count=function(Ue,rt){return t.setTime(+Ue),r.setTime(+rt),Ae(t),Ae(r),Math.floor(wt(t,r))},st.every=function(Ue){return Ue=Math.floor(Ue),!isFinite(Ue)||!(Ue>0)?null:Ue>1?st.filter(vt?function(rt){return vt(rt)%Ue===0}:function(rt){return st.count(0,rt)%Ue===0}):st}),st}var i=n(function(){},function(Ae,at){Ae.setTime(+Ae+at)},function(Ae,at){return at-Ae});i.every=function(Ae){return Ae=Math.floor(Ae),!isFinite(Ae)||!(Ae>0)?null:Ae>1?n(function(at){at.setTime(Math.floor(at/Ae)*Ae)},function(at,wt){at.setTime(+at+wt*Ae)},function(at,wt){return(wt-at)/Ae}):i};var a=i.range,o=1e3,s=6e4,u=36e5,l=864e5,f=6048e5,c=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds())},function(Ae,at){Ae.setTime(+Ae+at*o)},function(Ae,at){return(at-Ae)/o},function(Ae){return Ae.getUTCSeconds()}),h=c.range,d=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o)},function(Ae,at){Ae.setTime(+Ae+at*s)},function(Ae,at){return(at-Ae)/s},function(Ae){return Ae.getMinutes()}),p=d.range,x=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o-Ae.getMinutes()*s)},function(Ae,at){Ae.setTime(+Ae+at*u)},function(Ae,at){return(at-Ae)/u},function(Ae){return Ae.getHours()}),b=x.range,v=n(function(Ae){Ae.setHours(0,0,0,0)},function(Ae,at){Ae.setDate(Ae.getDate()+at)},function(Ae,at){return(at-Ae-(at.getTimezoneOffset()-Ae.getTimezoneOffset())*s)/l},function(Ae){return Ae.getDate()-1}),k=v.range;function E(Ae){return n(function(at){at.setDate(at.getDate()-(at.getDay()+7-Ae)%7),at.setHours(0,0,0,0)},function(at,wt){at.setDate(at.getDate()+wt*7)},function(at,wt){return(wt-at-(wt.getTimezoneOffset()-at.getTimezoneOffset())*s)/f})}var T=E(0),L=E(1),_=E(2),C=E(3),M=E(4),m=E(5),P=E(6),A=T.range,B=L.range,F=_.range,U=C.range,G=M.range,j=m.range,H=P.range,N=n(function(Ae){Ae.setDate(1),Ae.setHours(0,0,0,0)},function(Ae,at){Ae.setMonth(Ae.getMonth()+at)},function(Ae,at){return at.getMonth()-Ae.getMonth()+(at.getFullYear()-Ae.getFullYear())*12},function(Ae){return Ae.getMonth()}),W=N.range,re=n(function(Ae){Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,at){Ae.setFullYear(Ae.getFullYear()+at)},function(Ae,at){return at.getFullYear()-Ae.getFullYear()},function(Ae){return Ae.getFullYear()});re.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(at){at.setFullYear(Math.floor(at.getFullYear()/Ae)*Ae),at.setMonth(0,1),at.setHours(0,0,0,0)},function(at,wt){at.setFullYear(at.getFullYear()+wt*Ae)})};var ae=re.range,be=n(function(Ae){Ae.setUTCSeconds(0,0)},function(Ae,at){Ae.setTime(+Ae+at*s)},function(Ae,at){return(at-Ae)/s},function(Ae){return Ae.getUTCMinutes()}),Pe=be.range,Ce=n(function(Ae){Ae.setUTCMinutes(0,0,0)},function(Ae,at){Ae.setTime(+Ae+at*u)},function(Ae,at){return(at-Ae)/u},function(Ae){return Ae.getUTCHours()}),de=Ce.range,te=n(function(Ae){Ae.setUTCHours(0,0,0,0)},function(Ae,at){Ae.setUTCDate(Ae.getUTCDate()+at)},function(Ae,at){return(at-Ae)/l},function(Ae){return Ae.getUTCDate()-1}),ke=te.range;function Ee(Ae){return n(function(at){at.setUTCDate(at.getUTCDate()-(at.getUTCDay()+7-Ae)%7),at.setUTCHours(0,0,0,0)},function(at,wt){at.setUTCDate(at.getUTCDate()+wt*7)},function(at,wt){return(wt-at)/f})}var Me=Ee(0),Ne=Ee(1),Fe=Ee(2),ye=Ee(3),Ve=Ee(4),ce=Ee(5),Ye=Ee(6),nt=Me.range,gt=Ne.range,Nt=Fe.range,it=ye.range,Ke=Ve.range,kt=ce.range,Tt=Ye.range,St=n(function(Ae){Ae.setUTCDate(1),Ae.setUTCHours(0,0,0,0)},function(Ae,at){Ae.setUTCMonth(Ae.getUTCMonth()+at)},function(Ae,at){return at.getUTCMonth()-Ae.getUTCMonth()+(at.getUTCFullYear()-Ae.getUTCFullYear())*12},function(Ae){return Ae.getUTCMonth()}),Dt=St.range,Zt=n(function(Ae){Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,at){Ae.setUTCFullYear(Ae.getUTCFullYear()+at)},function(Ae,at){return at.getUTCFullYear()-Ae.getUTCFullYear()},function(Ae){return Ae.getUTCFullYear()});Zt.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(at){at.setUTCFullYear(Math.floor(at.getUTCFullYear()/Ae)*Ae),at.setUTCMonth(0,1),at.setUTCHours(0,0,0,0)},function(at,wt){at.setUTCFullYear(at.getUTCFullYear()+wt*Ae)})};var Et=Zt.range;e.timeDay=v,e.timeDays=k,e.timeFriday=m,e.timeFridays=j,e.timeHour=x,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=L,e.timeMondays=B,e.timeMonth=N,e.timeMonths=W,e.timeSaturday=P,e.timeSaturdays=H,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=T,e.timeSundays=A,e.timeThursday=M,e.timeThursdays=G,e.timeTuesday=_,e.timeTuesdays=F,e.timeWednesday=C,e.timeWednesdays=U,e.timeWeek=T,e.timeWeeks=A,e.timeYear=re,e.timeYears=ae,e.utcDay=te,e.utcDays=ke,e.utcFriday=ce,e.utcFridays=kt,e.utcHour=Ce,e.utcHours=de,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=be,e.utcMinutes=Pe,e.utcMonday=Ne,e.utcMondays=gt,e.utcMonth=St,e.utcMonths=Dt,e.utcSaturday=Ye,e.utcSaturdays=Tt,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=Me,e.utcSundays=nt,e.utcThursday=Ve,e.utcThursdays=Ke,e.utcTuesday=Fe,e.utcTuesdays=Nt,e.utcWednesday=ye,e.utcWednesdays=it,e.utcWeek=Me,e.utcWeeks=nt,e.utcYear=Zt,e.utcYears=Et,Object.defineProperty(e,"__esModule",{value:!0})})});var e3=Te((fL,Eee)=>{(function(e,t){typeof fL=="object"&&typeof Eee!="undefined"?t(fL,E9()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(fL,function(e,t){"use strict";function r(xe){if(0<=xe.y&&xe.y<100){var Oe=new Date(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L);return Oe.setFullYear(xe.y),Oe}return new Date(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L)}function n(xe){if(0<=xe.y&&xe.y<100){var Oe=new Date(Date.UTC(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L));return Oe.setUTCFullYear(xe.y),Oe}return new Date(Date.UTC(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L))}function i(xe,Oe,Re){return{y:xe,m:Oe,d:Re,H:0,M:0,S:0,L:0}}function a(xe){var Oe=xe.dateTime,Re=xe.date,De=xe.time,ct=xe.periods,ge=xe.days,fe=xe.shortDays,pe=xe.months,dt=xe.shortMonths,It=h(ct),Pt=d(ct),rr=h(ge),Hr=d(ge),Dr=h(fe),Mr=d(fe),Fr=h(pe),di=d(pe),Di=h(dt),Ii=d(dt),Ci={a:jr,A:yi,b:Ei,B:Vi,c:null,d:N,e:N,f:Pe,H:W,I:re,j:ae,L:be,m:Ce,M:de,p:ti,q:en,Q:rt,s:$e,S:te,u:ke,U:Ee,V:Me,w:Ne,W:Fe,x:null,X:null,y:ye,Y:Ve,Z:ce,"%":Ue},nn={a:Yr,A:oi,b:Bi,B:an,c:null,d:Ye,e:Ye,f:Ke,H:nt,I:gt,j:Nt,L:it,m:kt,M:Tt,p:rn,q:Fi,Q:rt,s:$e,S:St,u:Dt,U:Zt,V:Et,w:Ae,W:at,x:null,X:null,y:wt,Y:vt,Z:st,"%":Ue},ii={a:Vt,A:Wt,b:_r,B:Lr,c:Ur,d:M,e:M,f:U,H:P,I:P,j:m,L:F,m:C,M:A,p:yt,q:_,Q:j,s:H,S:B,u:x,U:b,V:v,w:p,W:k,x:Ir,X:Gr,y:T,Y:E,Z:L,"%":G};Ci.x=wi(Re,Ci),Ci.X=wi(De,Ci),Ci.c=wi(Oe,Ci),nn.x=wi(Re,nn),nn.X=wi(De,nn),nn.c=wi(Oe,nn);function wi(Ri,xn){return function(xi){var Xr=[],ft=-1,tr=0,pr=Ri.length,gr,Zr,Ai;for(xi instanceof Date||(xi=new Date(+xi));++ft53)return null;"w"in Xr||(Xr.w=1),"Z"in Xr?(tr=n(i(Xr.y,0,1)),pr=tr.getUTCDay(),tr=pr>4||pr===0?t.utcMonday.ceil(tr):t.utcMonday(tr),tr=t.utcDay.offset(tr,(Xr.V-1)*7),Xr.y=tr.getUTCFullYear(),Xr.m=tr.getUTCMonth(),Xr.d=tr.getUTCDate()+(Xr.w+6)%7):(tr=r(i(Xr.y,0,1)),pr=tr.getDay(),tr=pr>4||pr===0?t.timeMonday.ceil(tr):t.timeMonday(tr),tr=t.timeDay.offset(tr,(Xr.V-1)*7),Xr.y=tr.getFullYear(),Xr.m=tr.getMonth(),Xr.d=tr.getDate()+(Xr.w+6)%7)}else("W"in Xr||"U"in Xr)&&("w"in Xr||(Xr.w="u"in Xr?Xr.u%7:"W"in Xr?1:0),pr="Z"in Xr?n(i(Xr.y,0,1)).getUTCDay():r(i(Xr.y,0,1)).getDay(),Xr.m=0,Xr.d="W"in Xr?(Xr.w+6)%7+Xr.W*7-(pr+5)%7:Xr.w+Xr.U*7-(pr+6)%7);return"Z"in Xr?(Xr.H+=Xr.Z/100|0,Xr.M+=Xr.Z%100,n(Xr)):r(Xr)}}function Bt(Ri,xn,xi,Xr){for(var ft=0,tr=xn.length,pr=xi.length,gr,Zr;ft=pr)return-1;if(gr=xn.charCodeAt(ft++),gr===37){if(gr=xn.charAt(ft++),Zr=ii[gr in o?xn.charAt(ft++):gr],!Zr||(Xr=Zr(Ri,xi,Xr))<0)return-1}else if(gr!=xi.charCodeAt(Xr++))return-1}return Xr}function yt(Ri,xn,xi){var Xr=It.exec(xn.slice(xi));return Xr?(Ri.p=Pt[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Vt(Ri,xn,xi){var Xr=Dr.exec(xn.slice(xi));return Xr?(Ri.w=Mr[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Wt(Ri,xn,xi){var Xr=rr.exec(xn.slice(xi));return Xr?(Ri.w=Hr[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function _r(Ri,xn,xi){var Xr=Di.exec(xn.slice(xi));return Xr?(Ri.m=Ii[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Lr(Ri,xn,xi){var Xr=Fr.exec(xn.slice(xi));return Xr?(Ri.m=di[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Ur(Ri,xn,xi){return Bt(Ri,Oe,xn,xi)}function Ir(Ri,xn,xi){return Bt(Ri,Re,xn,xi)}function Gr(Ri,xn,xi){return Bt(Ri,De,xn,xi)}function jr(Ri){return fe[Ri.getDay()]}function yi(Ri){return ge[Ri.getDay()]}function Ei(Ri){return dt[Ri.getMonth()]}function Vi(Ri){return pe[Ri.getMonth()]}function ti(Ri){return ct[+(Ri.getHours()>=12)]}function en(Ri){return 1+~~(Ri.getMonth()/3)}function Yr(Ri){return fe[Ri.getUTCDay()]}function oi(Ri){return ge[Ri.getUTCDay()]}function Bi(Ri){return dt[Ri.getUTCMonth()]}function an(Ri){return pe[Ri.getUTCMonth()]}function rn(Ri){return ct[+(Ri.getUTCHours()>=12)]}function Fi(Ri){return 1+~~(Ri.getUTCMonth()/3)}return{format:function(Ri){var xn=wi(Ri+="",Ci);return xn.toString=function(){return Ri},xn},parse:function(Ri){var xn=Gi(Ri+="",!1);return xn.toString=function(){return Ri},xn},utcFormat:function(Ri){var xn=wi(Ri+="",nn);return xn.toString=function(){return Ri},xn},utcParse:function(Ri){var xn=Gi(Ri+="",!0);return xn.toString=function(){return Ri},xn}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,u=/^%/,l=/[\\^$*+?|[\]().{}]/g;function f(xe,Oe,Re){var De=xe<0?"-":"",ct=(De?-xe:xe)+"",ge=ct.length;return De+(ge68?1900:2e3),Re+De[0].length):-1}function L(xe,Oe,Re){var De=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Oe.slice(Re,Re+6));return De?(xe.Z=De[1]?0:-(De[2]+(De[3]||"00")),Re+De[0].length):-1}function _(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+1));return De?(xe.q=De[0]*3-3,Re+De[0].length):-1}function C(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+2));return De?(xe.m=De[0]-1,Re+De[0].length):-1}function M(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+2));return De?(xe.d=+De[0],Re+De[0].length):-1}function m(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+3));return De?(xe.m=0,xe.d=+De[0],Re+De[0].length):-1}function P(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+2));return De?(xe.H=+De[0],Re+De[0].length):-1}function A(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+2));return De?(xe.M=+De[0],Re+De[0].length):-1}function B(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+2));return De?(xe.S=+De[0],Re+De[0].length):-1}function F(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+3));return De?(xe.L=+De[0],Re+De[0].length):-1}function U(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+6));return De?(xe.L=Math.floor(De[0]/1e3),Re+De[0].length):-1}function G(xe,Oe,Re){var De=u.exec(Oe.slice(Re,Re+1));return De?Re+De[0].length:-1}function j(xe,Oe,Re){var De=s.exec(Oe.slice(Re));return De?(xe.Q=+De[0],Re+De[0].length):-1}function H(xe,Oe,Re){var De=s.exec(Oe.slice(Re));return De?(xe.s=+De[0],Re+De[0].length):-1}function N(xe,Oe){return f(xe.getDate(),Oe,2)}function W(xe,Oe){return f(xe.getHours(),Oe,2)}function re(xe,Oe){return f(xe.getHours()%12||12,Oe,2)}function ae(xe,Oe){return f(1+t.timeDay.count(t.timeYear(xe),xe),Oe,3)}function be(xe,Oe){return f(xe.getMilliseconds(),Oe,3)}function Pe(xe,Oe){return be(xe,Oe)+"000"}function Ce(xe,Oe){return f(xe.getMonth()+1,Oe,2)}function de(xe,Oe){return f(xe.getMinutes(),Oe,2)}function te(xe,Oe){return f(xe.getSeconds(),Oe,2)}function ke(xe){var Oe=xe.getDay();return Oe===0?7:Oe}function Ee(xe,Oe){return f(t.timeSunday.count(t.timeYear(xe)-1,xe),Oe,2)}function Me(xe,Oe){var Re=xe.getDay();return xe=Re>=4||Re===0?t.timeThursday(xe):t.timeThursday.ceil(xe),f(t.timeThursday.count(t.timeYear(xe),xe)+(t.timeYear(xe).getDay()===4),Oe,2)}function Ne(xe){return xe.getDay()}function Fe(xe,Oe){return f(t.timeMonday.count(t.timeYear(xe)-1,xe),Oe,2)}function ye(xe,Oe){return f(xe.getFullYear()%100,Oe,2)}function Ve(xe,Oe){return f(xe.getFullYear()%1e4,Oe,4)}function ce(xe){var Oe=xe.getTimezoneOffset();return(Oe>0?"-":(Oe*=-1,"+"))+f(Oe/60|0,"0",2)+f(Oe%60,"0",2)}function Ye(xe,Oe){return f(xe.getUTCDate(),Oe,2)}function nt(xe,Oe){return f(xe.getUTCHours(),Oe,2)}function gt(xe,Oe){return f(xe.getUTCHours()%12||12,Oe,2)}function Nt(xe,Oe){return f(1+t.utcDay.count(t.utcYear(xe),xe),Oe,3)}function it(xe,Oe){return f(xe.getUTCMilliseconds(),Oe,3)}function Ke(xe,Oe){return it(xe,Oe)+"000"}function kt(xe,Oe){return f(xe.getUTCMonth()+1,Oe,2)}function Tt(xe,Oe){return f(xe.getUTCMinutes(),Oe,2)}function St(xe,Oe){return f(xe.getUTCSeconds(),Oe,2)}function Dt(xe){var Oe=xe.getUTCDay();return Oe===0?7:Oe}function Zt(xe,Oe){return f(t.utcSunday.count(t.utcYear(xe)-1,xe),Oe,2)}function Et(xe,Oe){var Re=xe.getUTCDay();return xe=Re>=4||Re===0?t.utcThursday(xe):t.utcThursday.ceil(xe),f(t.utcThursday.count(t.utcYear(xe),xe)+(t.utcYear(xe).getUTCDay()===4),Oe,2)}function Ae(xe){return xe.getUTCDay()}function at(xe,Oe){return f(t.utcMonday.count(t.utcYear(xe)-1,xe),Oe,2)}function wt(xe,Oe){return f(xe.getUTCFullYear()%100,Oe,2)}function vt(xe,Oe){return f(xe.getUTCFullYear()%1e4,Oe,4)}function st(){return"+0000"}function Ue(){return"%"}function rt(xe){return+xe}function $e(xe){return Math.floor(+xe/1e3)}var zt;Yt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Yt(xe){return zt=a(xe),e.timeFormat=zt.format,e.timeParse=zt.parse,e.utcFormat=zt.utcFormat,e.utcParse=zt.utcParse,zt}var hr="%Y-%m-%dT%H:%M:%S.%LZ";function yr(xe){return xe.toISOString()}var br=Date.prototype.toISOString?yr:e.utcFormat(hr);function Ut(xe){var Oe=new Date(xe);return isNaN(Oe)?null:Oe}var Ie=+new Date("2000-01-01T00:00:00.000Z")?Ut:e.utcParse(hr);e.isoFormat=br,e.isoParse=Ie,e.timeFormatDefaultLocale=Yt,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var k9=Te((cL,kee)=>{(function(e,t){typeof cL=="object"&&typeof kee!="undefined"?t(cL):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(cL,function(e){"use strict";function t(C){return Math.abs(C=Math.round(C))>=1e21?C.toLocaleString("en").replace(/,/g,""):C.toString(10)}function r(C,M){if((m=(C=M?C.toExponential(M-1):C.toExponential()).indexOf("e"))<0)return null;var m,P=C.slice(0,m);return[P.length>1?P[0]+P.slice(2):P,+C.slice(m+1)]}function n(C){return C=r(Math.abs(C)),C?C[1]:NaN}function i(C,M){return function(m,P){for(var A=m.length,B=[],F=0,U=C[0],G=0;A>0&&U>0&&(G+U+1>P&&(U=Math.max(1,P-G)),B.push(m.substring(A-=U,A+U)),!((G+=U+1)>P));)U=C[F=(F+1)%C.length];return B.reverse().join(M)}}function a(C){return function(M){return M.replace(/[0-9]/g,function(m){return C[+m]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(C){if(!(M=o.exec(C)))throw new Error("invalid format: "+C);var M;return new u({fill:M[1],align:M[2],sign:M[3],symbol:M[4],zero:M[5],width:M[6],comma:M[7],precision:M[8]&&M[8].slice(1),trim:M[9],type:M[10]})}s.prototype=u.prototype;function u(C){this.fill=C.fill===void 0?" ":C.fill+"",this.align=C.align===void 0?">":C.align+"",this.sign=C.sign===void 0?"-":C.sign+"",this.symbol=C.symbol===void 0?"":C.symbol+"",this.zero=!!C.zero,this.width=C.width===void 0?void 0:+C.width,this.comma=!!C.comma,this.precision=C.precision===void 0?void 0:+C.precision,this.trim=!!C.trim,this.type=C.type===void 0?"":C.type+""}u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function l(C){e:for(var M=C.length,m=1,P=-1,A;m0&&(P=0);break}return P>0?C.slice(0,P)+C.slice(A+1):C}var f;function c(C,M){var m=r(C,M);if(!m)return C+"";var P=m[0],A=m[1],B=A-(f=Math.max(-8,Math.min(8,Math.floor(A/3)))*3)+1,F=P.length;return B===F?P:B>F?P+new Array(B-F+1).join("0"):B>0?P.slice(0,B)+"."+P.slice(B):"0."+new Array(1-B).join("0")+r(C,Math.max(0,M+B-1))[0]}function h(C,M){var m=r(C,M);if(!m)return C+"";var P=m[0],A=m[1];return A<0?"0."+new Array(-A).join("0")+P:P.length>A+1?P.slice(0,A+1)+"."+P.slice(A+1):P+new Array(A-P.length+2).join("0")}var d={"%":function(C,M){return(C*100).toFixed(M)},b:function(C){return Math.round(C).toString(2)},c:function(C){return C+""},d:t,e:function(C,M){return C.toExponential(M)},f:function(C,M){return C.toFixed(M)},g:function(C,M){return C.toPrecision(M)},o:function(C){return Math.round(C).toString(8)},p:function(C,M){return h(C*100,M)},r:h,s:c,X:function(C){return Math.round(C).toString(16).toUpperCase()},x:function(C){return Math.round(C).toString(16)}};function p(C){return C}var x=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function v(C){var M=C.grouping===void 0||C.thousands===void 0?p:i(x.call(C.grouping,Number),C.thousands+""),m=C.currency===void 0?"":C.currency[0]+"",P=C.currency===void 0?"":C.currency[1]+"",A=C.decimal===void 0?".":C.decimal+"",B=C.numerals===void 0?p:a(x.call(C.numerals,String)),F=C.percent===void 0?"%":C.percent+"",U=C.minus===void 0?"-":C.minus+"",G=C.nan===void 0?"NaN":C.nan+"";function j(N){N=s(N);var W=N.fill,re=N.align,ae=N.sign,be=N.symbol,Pe=N.zero,Ce=N.width,de=N.comma,te=N.precision,ke=N.trim,Ee=N.type;Ee==="n"?(de=!0,Ee="g"):d[Ee]||(te===void 0&&(te=12),ke=!0,Ee="g"),(Pe||W==="0"&&re==="=")&&(Pe=!0,W="0",re="=");var Me=be==="$"?m:be==="#"&&/[boxX]/.test(Ee)?"0"+Ee.toLowerCase():"",Ne=be==="$"?P:/[%p]/.test(Ee)?F:"",Fe=d[Ee],ye=/[defgprs%]/.test(Ee);te=te===void 0?6:/[gprs]/.test(Ee)?Math.max(1,Math.min(21,te)):Math.max(0,Math.min(20,te));function Ve(ce){var Ye=Me,nt=Ne,gt,Nt,it;if(Ee==="c")nt=Fe(ce)+nt,ce="";else{ce=+ce;var Ke=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Fe(Math.abs(ce),te),ke&&(ce=l(ce)),Ke&&+ce==0&&ae!=="+"&&(Ke=!1),Ye=(Ke?ae==="("?ae:U:ae==="-"||ae==="("?"":ae)+Ye,nt=(Ee==="s"?b[8+f/3]:"")+nt+(Ke&&ae==="("?")":""),ye){for(gt=-1,Nt=ce.length;++gtit||it>57){nt=(it===46?A+ce.slice(gt+1):ce.slice(gt))+nt,ce=ce.slice(0,gt);break}}}de&&!Pe&&(ce=M(ce,1/0));var kt=Ye.length+ce.length+nt.length,Tt=kt>1)+Ye+ce+nt+Tt.slice(kt);break;default:ce=Tt+Ye+ce+nt;break}return B(ce)}return Ve.toString=function(){return N+""},Ve}function H(N,W){var re=j((N=s(N),N.type="f",N)),ae=Math.max(-8,Math.min(8,Math.floor(n(W)/3)))*3,be=Math.pow(10,-ae),Pe=b[8+ae/3];return function(Ce){return re(be*Ce)+Pe}}return{format:j,formatPrefix:H}}var k;E({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function E(C){return k=v(C),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function T(C){return Math.max(0,-n(Math.abs(C)))}function L(C,M){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(M)/3)))*3-n(Math.abs(C)))}function _(C,M){return C=Math.abs(C),M=Math.abs(M)-C,Math.max(0,n(M)-n(C))+1}e.FormatSpecifier=u,e.formatDefaultLocale=E,e.formatLocale=v,e.formatSpecifier=s,e.precisionFixed=T,e.precisionPrefix=L,e.precisionRound=_,Object.defineProperty(e,"__esModule",{value:!0})})});var Lee=Te((Rrr,Cee)=>{"use strict";Cee.exports=function(e){for(var t=e.length,r,n=0;n13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var ku=Te((Drr,Pee)=>{"use strict";var Rtt=Lee();Pee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Rtt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var nf=Te((Frr,zee)=>{"use strict";zee.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var C9=Te((hL,Iee)=>{(function(e,t){typeof hL=="object"&&typeof Iee!="undefined"?t(hL):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(hL,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=t[(s[u]&3)<<4|s[u+1]>>4],f+=t[(s[u+1]&15)<<2|s[u+2]>>6],f+=t[s[u+2]&63];return l%3===2?f=f.substring(0,f.length-1)+"=":l%3===1&&(f=f.substring(0,f.length-2)+"=="),f},a=function(o){var s=o.length*.75,u=o.length,l,f=0,c,h,d,p;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var x=new ArrayBuffer(s),b=new Uint8Array(x);for(l=0;l>4,b[f++]=(h&15)<<4|d>>2,b[f++]=(d&3)<<6|p&63;return x};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var mg=Te((Brr,Ree)=>{"use strict";Ree.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var mp=Te(ym=>{"use strict";var Dtt=C9().decode,Ftt=mg(),L9=Array.isArray,Btt=ArrayBuffer,Ott=DataView;function Dee(e){return Btt.isView(e)&&!(e instanceof Ott)}ym.isTypedArray=Dee;function dL(e){return L9(e)||Dee(e)}ym.isArrayOrTypedArray=dL;function qtt(e){return!dL(e[0])}ym.isArray1D=qtt;ym.ensureArray=function(e,t){return L9(e)||(e=[]),e.length=t,e};var zd={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};zd.uint8c=zd.u1c;zd.uint8=zd.u1;zd.int8=zd.i1;zd.uint16=zd.u2;zd.int16=zd.i2;zd.uint32=zd.u4;zd.int32=zd.i4;zd.float32=zd.f4;zd.float64=zd.f8;function P9(e){return e.constructor===ArrayBuffer}ym.isArrayBuffer=P9;ym.decodeTypedArraySpec=function(e){var t=[],r=Ntt(e),n=r.dtype,i=zd[n];if(!i)throw new Error('Error in dtype: "'+n+'"');var a=i.BYTES_PER_ELEMENT,o=r.bdata;P9(o)||(o=Dtt(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var u=s.length,l,f,c=+s[0],h=a*c,d=0;if(u===1)t=new i(o);else if(u===2)for(l=+s[1],f=0;f{"use strict";var Bee=ku(),I9=mp().isArrayOrTypedArray;Uee.exports=function(t,r){if(Bee(r))r=String(r);else if(typeof r!="string"||r.substr(r.length-4)==="[-1]")throw"bad property string";var n=r.split("."),i,a,o,s;for(s=0;s{"use strict";var t3=kM(),Wtt=/^\w*$/,jtt=0,Vee=1,pL=2,Gee=3,ob=4;Hee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,u={};r&&r.length?(s=t3(t,r),o=s.get()):o=t,r=r||"";var l={};if(o)for(a=0;a2)return u[d]=u[d]|pL,c.set(h,null);if(f){for(a=d;a{"use strict";var Xtt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Ztt=/^[^\.\[\]]+$/;jee.exports=function(e,t){for(;t;){var r=e.match(Xtt);if(r)e=r[1];else if(e.match(Ztt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var vL=Te((Vrr,Zee)=>{"use strict";var Ytt=ku();Zee.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return Ytt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var Jee=Te((Grr,Kee)=>{"use strict";var Yee=mp().isArrayOrTypedArray,CM=mg();Kee.exports=function e(t,r){for(var n in r){var i=r[n],a=t[n];if(a!==i)if(n.charAt(0)==="_"||typeof i=="function"){if(n in t)continue;t[n]=i}else if(Yee(i)&&Yee(a)&&CM(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function Ktt(e,t){var r=e%t;return r<0?r+t:r}function Jtt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}$ee.exports={mod:Ktt,modHalf:Jtt}});var cd=Te((Wrr,mL)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function u(ye,Ve){if(ye=ye||"",Ve=Ve||{},ye instanceof u)return ye;if(!(this instanceof u))return new u(ye,Ve);var ce=l(ye);this._originalInput=ye,this._r=ce.r,this._g=ce.g,this._b=ce.b,this._a=ce.a,this._roundA=i(100*this._a)/100,this._format=Ve.format||ce.format,this._gradientType=Ve.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=ce.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ye=this.toRgb();return(ye.r*299+ye.g*587+ye.b*114)/1e3},getLuminance:function(){var ye=this.toRgb(),Ve,ce,Ye,nt,gt,Nt;return Ve=ye.r/255,ce=ye.g/255,Ye=ye.b/255,Ve<=.03928?nt=Ve/12.92:nt=e.pow((Ve+.055)/1.055,2.4),ce<=.03928?gt=ce/12.92:gt=e.pow((ce+.055)/1.055,2.4),Ye<=.03928?Nt=Ye/12.92:Nt=e.pow((Ye+.055)/1.055,2.4),.2126*nt+.7152*gt+.0722*Nt},setAlpha:function(ye){return this._a=N(ye),this._roundA=i(100*this._a)/100,this},toHsv:function(){var ye=d(this._r,this._g,this._b);return{h:ye.h*360,s:ye.s,v:ye.v,a:this._a}},toHsvString:function(){var ye=d(this._r,this._g,this._b),Ve=i(ye.h*360),ce=i(ye.s*100),Ye=i(ye.v*100);return this._a==1?"hsv("+Ve+", "+ce+"%, "+Ye+"%)":"hsva("+Ve+", "+ce+"%, "+Ye+"%, "+this._roundA+")"},toHsl:function(){var ye=c(this._r,this._g,this._b);return{h:ye.h*360,s:ye.s,l:ye.l,a:this._a}},toHslString:function(){var ye=c(this._r,this._g,this._b),Ve=i(ye.h*360),ce=i(ye.s*100),Ye=i(ye.l*100);return this._a==1?"hsl("+Ve+", "+ce+"%, "+Ye+"%)":"hsla("+Ve+", "+ce+"%, "+Ye+"%, "+this._roundA+")"},toHex:function(ye){return x(this._r,this._g,this._b,ye)},toHexString:function(ye){return"#"+this.toHex(ye)},toHex8:function(ye){return b(this._r,this._g,this._b,this._a,ye)},toHex8String:function(ye){return"#"+this.toHex8(ye)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(W(this._r,255)*100)+"%",g:i(W(this._g,255)*100)+"%",b:i(W(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(W(this._r,255)*100)+"%, "+i(W(this._g,255)*100)+"%, "+i(W(this._b,255)*100)+"%)":"rgba("+i(W(this._r,255)*100)+"%, "+i(W(this._g,255)*100)+"%, "+i(W(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:j[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(ye){var Ve="#"+v(this._r,this._g,this._b,this._a),ce=Ve,Ye=this._gradientType?"GradientType = 1, ":"";if(ye){var nt=u(ye);ce="#"+v(nt._r,nt._g,nt._b,nt._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ye+"startColorstr="+Ve+",endColorstr="+ce+")"},toString:function(ye){var Ve=!!ye;ye=ye||this._format;var ce=!1,Ye=this._a<1&&this._a>=0,nt=!Ve&&Ye&&(ye==="hex"||ye==="hex6"||ye==="hex3"||ye==="hex4"||ye==="hex8"||ye==="name");return nt?ye==="name"&&this._a===0?this.toName():this.toRgbString():(ye==="rgb"&&(ce=this.toRgbString()),ye==="prgb"&&(ce=this.toPercentageRgbString()),(ye==="hex"||ye==="hex6")&&(ce=this.toHexString()),ye==="hex3"&&(ce=this.toHexString(!0)),ye==="hex4"&&(ce=this.toHex8String(!0)),ye==="hex8"&&(ce=this.toHex8String()),ye==="name"&&(ce=this.toName()),ye==="hsl"&&(ce=this.toHslString()),ye==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(ye,Ve){var ce=ye.apply(null,[this].concat([].slice.call(Ve)));return this._r=ce._r,this._g=ce._g,this._b=ce._b,this.setAlpha(ce._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(ye,Ve){return ye.apply(null,[this].concat([].slice.call(Ve)))},analogous:function(){return this._applyCombination(F,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(B,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},u.fromRatio=function(ye,Ve){if(typeof ye=="object"){var ce={};for(var Ye in ye)ye.hasOwnProperty(Ye)&&(Ye==="a"?ce[Ye]=ye[Ye]:ce[Ye]=de(ye[Ye]));ye=ce}return u(ye,Ve)};function l(ye){var Ve={r:0,g:0,b:0},ce=1,Ye=null,nt=null,gt=null,Nt=!1,it=!1;return typeof ye=="string"&&(ye=Ne(ye)),typeof ye=="object"&&(Me(ye.r)&&Me(ye.g)&&Me(ye.b)?(Ve=f(ye.r,ye.g,ye.b),Nt=!0,it=String(ye.r).substr(-1)==="%"?"prgb":"rgb"):Me(ye.h)&&Me(ye.s)&&Me(ye.v)?(Ye=de(ye.s),nt=de(ye.v),Ve=p(ye.h,Ye,nt),Nt=!0,it="hsv"):Me(ye.h)&&Me(ye.s)&&Me(ye.l)&&(Ye=de(ye.s),gt=de(ye.l),Ve=h(ye.h,Ye,gt),Nt=!0,it="hsl"),ye.hasOwnProperty("a")&&(ce=ye.a)),ce=N(ce),{ok:Nt,format:ye.format||it,r:a(255,o(Ve.r,0)),g:a(255,o(Ve.g,0)),b:a(255,o(Ve.b,0)),a:ce}}function f(ye,Ve,ce){return{r:W(ye,255)*255,g:W(Ve,255)*255,b:W(ce,255)*255}}function c(ye,Ve,ce){ye=W(ye,255),Ve=W(Ve,255),ce=W(ce,255);var Ye=o(ye,Ve,ce),nt=a(ye,Ve,ce),gt,Nt,it=(Ye+nt)/2;if(Ye==nt)gt=Nt=0;else{var Ke=Ye-nt;switch(Nt=it>.5?Ke/(2-Ye-nt):Ke/(Ye+nt),Ye){case ye:gt=(Ve-ce)/Ke+(Ve1&&(St-=1),St<1/6?kt+(Tt-kt)*6*St:St<1/2?Tt:St<2/3?kt+(Tt-kt)*(2/3-St)*6:kt}if(Ve===0)Ye=nt=gt=ce;else{var it=ce<.5?ce*(1+Ve):ce+Ve-ce*Ve,Ke=2*ce-it;Ye=Nt(Ke,it,ye+1/3),nt=Nt(Ke,it,ye),gt=Nt(Ke,it,ye-1/3)}return{r:Ye*255,g:nt*255,b:gt*255}}function d(ye,Ve,ce){ye=W(ye,255),Ve=W(Ve,255),ce=W(ce,255);var Ye=o(ye,Ve,ce),nt=a(ye,Ve,ce),gt,Nt,it=Ye,Ke=Ye-nt;if(Nt=Ye===0?0:Ke/Ye,Ye==nt)gt=0;else{switch(Ye){case ye:gt=(Ve-ce)/Ke+(Ve>1)+720)%360;--Ve;)Ye.h=(Ye.h+nt)%360,gt.push(u(Ye));return gt}function U(ye,Ve){Ve=Ve||6;for(var ce=u(ye).toHsv(),Ye=ce.h,nt=ce.s,gt=ce.v,Nt=[],it=1/Ve;Ve--;)Nt.push(u({h:Ye,s:nt,v:gt})),gt=(gt+it)%1;return Nt}u.mix=function(ye,Ve,ce){ce=ce===0?0:ce||50;var Ye=u(ye).toRgb(),nt=u(Ve).toRgb(),gt=ce/100,Nt={r:(nt.r-Ye.r)*gt+Ye.r,g:(nt.g-Ye.g)*gt+Ye.g,b:(nt.b-Ye.b)*gt+Ye.b,a:(nt.a-Ye.a)*gt+Ye.a};return u(Nt)},u.readability=function(ye,Ve){var ce=u(ye),Ye=u(Ve);return(e.max(ce.getLuminance(),Ye.getLuminance())+.05)/(e.min(ce.getLuminance(),Ye.getLuminance())+.05)},u.isReadable=function(ye,Ve,ce){var Ye=u.readability(ye,Ve),nt,gt;switch(gt=!1,nt=Fe(ce),nt.level+nt.size){case"AAsmall":case"AAAlarge":gt=Ye>=4.5;break;case"AAlarge":gt=Ye>=3;break;case"AAAsmall":gt=Ye>=7;break}return gt},u.mostReadable=function(ye,Ve,ce){var Ye=null,nt=0,gt,Nt,it,Ke;ce=ce||{},Nt=ce.includeFallbackColors,it=ce.level,Ke=ce.size;for(var kt=0;ktnt&&(nt=gt,Ye=u(Ve[kt]));return u.isReadable(ye,Ye,{level:it,size:Ke})||!Nt?Ye:(ce.includeFallbackColors=!1,u.mostReadable(ye,["#fff","#000"],ce))};var G=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=u.hexNames=H(G);function H(ye){var Ve={};for(var ce in ye)ye.hasOwnProperty(ce)&&(Ve[ye[ce]]=ce);return Ve}function N(ye){return ye=parseFloat(ye),(isNaN(ye)||ye<0||ye>1)&&(ye=1),ye}function W(ye,Ve){be(ye)&&(ye="100%");var ce=Pe(ye);return ye=a(Ve,o(0,parseFloat(ye))),ce&&(ye=parseInt(ye*Ve,10)/100),e.abs(ye-Ve)<1e-6?1:ye%Ve/parseFloat(Ve)}function re(ye){return a(1,o(0,ye))}function ae(ye){return parseInt(ye,16)}function be(ye){return typeof ye=="string"&&ye.indexOf(".")!=-1&&parseFloat(ye)===1}function Pe(ye){return typeof ye=="string"&&ye.indexOf("%")!=-1}function Ce(ye){return ye.length==1?"0"+ye:""+ye}function de(ye){return ye<=1&&(ye=ye*100+"%"),ye}function te(ye){return e.round(parseFloat(ye)*255).toString(16)}function ke(ye){return ae(ye)/255}var Ee=function(){var ye="[-\\+]?\\d+%?",Ve="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+Ve+")|(?:"+ye+")",Ye="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",nt="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+Ye),rgba:new RegExp("rgba"+nt),hsl:new RegExp("hsl"+Ye),hsla:new RegExp("hsla"+nt),hsv:new RegExp("hsv"+Ye),hsva:new RegExp("hsva"+nt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Me(ye){return!!Ee.CSS_UNIT.exec(ye)}function Ne(ye){ye=ye.replace(t,"").replace(r,"").toLowerCase();var Ve=!1;if(G[ye])ye=G[ye],Ve=!0;else if(ye=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=Ee.rgb.exec(ye))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=Ee.rgba.exec(ye))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=Ee.hsl.exec(ye))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=Ee.hsla.exec(ye))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=Ee.hsv.exec(ye))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=Ee.hsva.exec(ye))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=Ee.hex8.exec(ye))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),a:ke(ce[4]),format:Ve?"name":"hex8"}:(ce=Ee.hex6.exec(ye))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),format:Ve?"name":"hex"}:(ce=Ee.hex4.exec(ye))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),a:ke(ce[4]+""+ce[4]),format:Ve?"name":"hex8"}:(ce=Ee.hex3.exec(ye))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),format:Ve?"name":"hex"}:!1}function Fe(ye){var Ve,ce;return ye=ye||{level:"AA",size:"small"},Ve=(ye.level||"AA").toUpperCase(),ce=(ye.size||"small").toLowerCase(),Ve!=="AA"&&Ve!=="AAA"&&(Ve="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:Ve,size:ce}}typeof mL!="undefined"&&mL.exports?mL.exports=u:window.tinycolor=u})(Math)});var Su=Te(zM=>{"use strict";var Qee=mg(),LM=Array.isArray;function $tt(e,t){var r,n;for(r=0;r{"use strict";ete.exports=function(e){var t=e.variantValues,r=e.editType,n=e.colorEditType;n===void 0&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:n},weight:i,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var IM=Te((Zrr,tte)=>{"use strict";tte.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var q1=Te((Yrr,nte)=>{"use strict";var rte=IM(),ite=gc(),R9=ite({editType:"none"});R9.family.dflt=rte.HOVERFONT;R9.size.dflt=rte.HOVERFONTSIZE;nte.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:R9,grouptitlefont:ite({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var i3=Te((Krr,ate)=>{"use strict";var Qtt=gc(),RM=q1().hoverlabel,DM=Su().extendFlat;ate.exports={hoverlabel:{bgcolor:DM({},RM.bgcolor,{arrayOk:!0}),bordercolor:DM({},RM.bordercolor,{arrayOk:!0}),font:Qtt({arrayOk:!0,editType:"none"}),align:DM({},RM.align,{arrayOk:!0}),namelength:DM({},RM.namelength,{arrayOk:!0}),showarrow:DM({},RM.showarrow),editType:"none"}}});var Gf=Te((Jrr,ote)=>{"use strict";var ert=gc(),trt=i3();ote.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:ert({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:trt.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var sb=Te(($rr,ute)=>{"use strict";var rrt=cd(),yL={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},ste=yL.RdBu;function irt(e,t){if(t||(t=ste),!e)return t;function r(){try{e=yL[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),lte(e)?e:t}function lte(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";lb.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];lb.defaultLine="#444";lb.lightLine="#eee";lb.background="#fff";lb.borderLine="#BEC8D9";lb.lightFraction=100*10/11});var jl=Te((eir,fte)=>{"use strict";var _v=cd(),art=ku(),ort=mp().isTypedArray,hd=fte.exports={},gL=Ih();hd.defaults=gL.defaults;var srt=hd.defaultLine=gL.defaultLine;hd.lightLine=gL.lightLine;var F9=hd.background=gL.background;hd.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};hd.rgb=function(e){return hd.tinyRGB(_v(e))};hd.opacity=function(e){return e?_v(e).getAlpha():0};hd.addOpacity=function(e,t){var r=_v(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};hd.combine=function(e,t){var r=_v(e).toRgb();if(r.a===1)return _v(e).toRgbString();var n=_v(t||F9).toRgb(),i=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return _v(a).toRgbString()};hd.interpolate=function(e,t,r){var n=_v(e).toRgb(),i=_v(t).toRgb(),a={r:r*n.r+(1-r)*i.r,g:r*n.g+(1-r)*i.g,b:r*n.b+(1-r)*i.b};return _v(a).toRgbString()};hd.contrast=function(e,t,r){var n=_v(e);n.getAlpha()!==1&&(n=_v(hd.combine(e,F9)));var i=n.isDark()?t?n.lighten(t):F9:r?n.darken(r):srt;return i.toString()};hd.stroke=function(e,t){var r=_v(t);e.style({stroke:hd.tinyRGB(r),"stroke-opacity":r.getAlpha()})};hd.fill=function(e,t){var r=_v(t);e.style({fill:hd.tinyRGB(r),"fill-opacity":r.getAlpha()})};hd.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,n,i,a;for(r=0;r=0)))return e;if(a===3)n[a]>1&&(n[a]=1);else if(n[a]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return i?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var N1=Te((tir,cte)=>{"use strict";cte.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var n3=Te(hte=>{"use strict";hte.counter=function(e,t,r,n){var i=(t||"")+(r?"":"$"),a=n===!1?"":"^";return e==="xy"?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+e+"([2-9]|[1-9][0-9]+)?"+i)}});var mte=Te(xv=>{"use strict";var B9=ku(),dte=cd(),pte=Su().extendFlat,lrt=Gf(),urt=sb(),frt=jl(),crt=N1().DESELECTDIM,a3=kM(),vte=n3().counter,hrt=r3().modHalf,dy=mp().isArrayOrTypedArray,U1=mp().isTypedArraySpec,V1=mp().decodeTypedArraySpec;xv.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(dy(e)?e:U1(e)?V1(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;nn.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}U1(e)&&(e=V1(e)),e%1||!B9(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if(typeof e!="string"){var i=typeof e=="number";n.strict===!0||!i?t.set(r):t.set(String(e))}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){U1(e)&&(e=V1(e)),dte(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return dte(i).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(n)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(urt.get(e,r))}},angle:{coerceFunction:function(e,t,r){U1(e)&&(e=V1(e)),e==="auto"?t.set("auto"):B9(e)?t.set(hrt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||vte(r);if(typeof e=="string"&&i.test(e)){t.set(e);return}t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!vte(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var i=e.split("+"),a=0;a{"use strict";var yte={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},gte={};function _te(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),_te(n,t[r]))}}_te(yte,gte);xte.exports={configAttributes:yte,dfltConfig:gte}});var q9=Te((air,bte)=>{"use strict";var O9=Jl(),drt=ku(),FM=[];bte.exports=function(e,t){if(FM.indexOf(e)!==-1)return;FM.push(e);var r=1e3;drt(t)?r=t:t==="long"&&(r=3e3);var n=O9.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(FM);function a(o){o.duration(700).style("opacity",0).each("end",function(s){var u=FM.indexOf(s);u!==-1&&FM.splice(u,1),O9.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var s=O9.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(a)});for(var u=s.append("p"),l=o.split(//g),f=0;f{"use strict";var o3=ub().dfltConfig,N9=q9(),U9=wte.exports={};U9.log=function(){var e;if(o3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};U9.warn=function(){var e;if(o3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};U9.error=function(){var e;if(o3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var xL=Te((sir,Ate)=>{"use strict";Ate.exports=function(){}});var V9=Te((lir,Tte)=>{"use strict";Tte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{Ste.exports=prt;function prt(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var kte=Te((fir,Ete)=>{Ete.exports=vrt;function vrt(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var Lte=Te((cir,Cte)=>{Cte.exports=mrt;function mrt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var G9=Te((hir,Pte)=>{Pte.exports=yrt;function yrt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Ite=Te((dir,zte)=>{zte.exports=grt;function grt(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var Dte=Te((pir,Rte)=>{Rte.exports=_rt;function _rt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],x=t[13],b=t[14],v=t[15],k=r*s-n*o,E=r*u-i*o,T=r*l-a*o,L=n*u-i*s,_=n*l-a*s,C=i*l-a*u,M=f*x-c*p,m=f*b-h*p,P=f*v-d*p,A=c*b-h*x,B=c*v-d*x,F=h*v-d*b,U=k*F-E*B+T*A+L*P-_*m+C*M;return U?(U=1/U,e[0]=(s*F-u*B+l*A)*U,e[1]=(i*B-n*F-a*A)*U,e[2]=(x*C-b*_+v*L)*U,e[3]=(h*_-c*C-d*L)*U,e[4]=(u*P-o*F-l*m)*U,e[5]=(r*F-i*P+a*m)*U,e[6]=(b*T-p*C-v*E)*U,e[7]=(f*C-h*T+d*E)*U,e[8]=(o*B-s*P+l*M)*U,e[9]=(n*P-r*B-a*M)*U,e[10]=(p*_-x*T+v*k)*U,e[11]=(c*T-f*_-d*k)*U,e[12]=(s*m-o*A-u*M)*U,e[13]=(r*A-n*m+i*M)*U,e[14]=(x*E-p*L-b*k)*U,e[15]=(f*L-c*E+h*k)*U,e):null}});var Bte=Te((vir,Fte)=>{Fte.exports=xrt;function xrt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],x=t[13],b=t[14],v=t[15];return e[0]=s*(h*v-d*b)-c*(u*v-l*b)+x*(u*d-l*h),e[1]=-(n*(h*v-d*b)-c*(i*v-a*b)+x*(i*d-a*h)),e[2]=n*(u*v-l*b)-s*(i*v-a*b)+x*(i*l-a*u),e[3]=-(n*(u*d-l*h)-s*(i*d-a*h)+c*(i*l-a*u)),e[4]=-(o*(h*v-d*b)-f*(u*v-l*b)+p*(u*d-l*h)),e[5]=r*(h*v-d*b)-f*(i*v-a*b)+p*(i*d-a*h),e[6]=-(r*(u*v-l*b)-o*(i*v-a*b)+p*(i*l-a*u)),e[7]=r*(u*d-l*h)-o*(i*d-a*h)+f*(i*l-a*u),e[8]=o*(c*v-d*x)-f*(s*v-l*x)+p*(s*d-l*c),e[9]=-(r*(c*v-d*x)-f*(n*v-a*x)+p*(n*d-a*c)),e[10]=r*(s*v-l*x)-o*(n*v-a*x)+p*(n*l-a*s),e[11]=-(r*(s*d-l*c)-o*(n*d-a*c)+f*(n*l-a*s)),e[12]=-(o*(c*b-h*x)-f*(s*b-u*x)+p*(s*h-u*c)),e[13]=r*(c*b-h*x)-f*(n*b-i*x)+p*(n*h-i*c),e[14]=-(r*(s*b-u*x)-o*(n*b-i*x)+p*(n*u-i*s)),e[15]=r*(s*h-u*c)-o*(n*h-i*c)+f*(n*u-i*s),e}});var qte=Te((mir,Ote)=>{Ote.exports=brt;function brt(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],f=e[9],c=e[10],h=e[11],d=e[12],p=e[13],x=e[14],b=e[15],v=t*o-r*a,k=t*s-n*a,E=t*u-i*a,T=r*s-n*o,L=r*u-i*o,_=n*u-i*s,C=l*p-f*d,M=l*x-c*d,m=l*b-h*d,P=f*x-c*p,A=f*b-h*p,B=c*b-h*x;return v*B-k*A+E*P+T*m-L*M+_*C}});var Ute=Te((yir,Nte)=>{Nte.exports=wrt;function wrt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],f=t[7],c=t[8],h=t[9],d=t[10],p=t[11],x=t[12],b=t[13],v=t[14],k=t[15],E=r[0],T=r[1],L=r[2],_=r[3];return e[0]=E*n+T*s+L*c+_*x,e[1]=E*i+T*u+L*h+_*b,e[2]=E*a+T*l+L*d+_*v,e[3]=E*o+T*f+L*p+_*k,E=r[4],T=r[5],L=r[6],_=r[7],e[4]=E*n+T*s+L*c+_*x,e[5]=E*i+T*u+L*h+_*b,e[6]=E*a+T*l+L*d+_*v,e[7]=E*o+T*f+L*p+_*k,E=r[8],T=r[9],L=r[10],_=r[11],e[8]=E*n+T*s+L*c+_*x,e[9]=E*i+T*u+L*h+_*b,e[10]=E*a+T*l+L*d+_*v,e[11]=E*o+T*f+L*p+_*k,E=r[12],T=r[13],L=r[14],_=r[15],e[12]=E*n+T*s+L*c+_*x,e[13]=E*i+T*u+L*h+_*b,e[14]=E*a+T*l+L*d+_*v,e[15]=E*o+T*f+L*p+_*k,e}});var Gte=Te((gir,Vte)=>{Vte.exports=Art;function Art(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,u,l,f,c,h,d,p,x,b,v;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],u=t[2],l=t[3],f=t[4],c=t[5],h=t[6],d=t[7],p=t[8],x=t[9],b=t[10],v=t[11],e[0]=o,e[1]=s,e[2]=u,e[3]=l,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=x,e[10]=b,e[11]=v,e[12]=o*n+f*i+p*a+t[12],e[13]=s*n+c*i+x*a+t[13],e[14]=u*n+h*i+b*a+t[14],e[15]=l*n+d*i+v*a+t[15]),e}});var Wte=Te((_ir,Hte)=>{Hte.exports=Trt;function Trt(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var Xte=Te((xir,jte)=>{jte.exports=Srt;function Srt(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,u=Math.sin(r),l=Math.cos(r),f=1-l,c=t[0],h=t[1],d=t[2],p=t[3],x=t[4],b=t[5],v=t[6],k=t[7],E=t[8],T=t[9],L=t[10],_=t[11],C=i*i*f+l,M=a*i*f+o*u,m=o*i*f-a*u,P=i*a*f-o*u,A=a*a*f+l,B=o*a*f+i*u,F=i*o*f+a*u,U=a*o*f-i*u,G=o*o*f+l,e[0]=c*C+x*M+E*m,e[1]=h*C+b*M+T*m,e[2]=d*C+v*M+L*m,e[3]=p*C+k*M+_*m,e[4]=c*P+x*A+E*B,e[5]=h*P+b*A+T*B,e[6]=d*P+v*A+L*B,e[7]=p*P+k*A+_*B,e[8]=c*F+x*U+E*G,e[9]=h*F+b*U+T*G,e[10]=d*F+v*U+L*G,e[11]=p*F+k*U+_*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var Yte=Te((bir,Zte)=>{Zte.exports=Mrt;function Mrt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],u=t[7],l=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+l*n,e[5]=o*i+f*n,e[6]=s*i+c*n,e[7]=u*i+h*n,e[8]=l*i-a*n,e[9]=f*i-o*n,e[10]=c*i-s*n,e[11]=h*i-u*n,e}});var Jte=Te((wir,Kte)=>{Kte.exports=Ert;function Ert(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],u=t[3],l=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-l*n,e[1]=o*i-f*n,e[2]=s*i-c*n,e[3]=u*i-h*n,e[8]=a*n+l*i,e[9]=o*n+f*i,e[10]=s*n+c*i,e[11]=u*n+h*i,e}});var Qte=Te((Air,$te)=>{$te.exports=krt;function krt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],u=t[3],l=t[4],f=t[5],c=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+l*n,e[1]=o*i+f*n,e[2]=s*i+c*n,e[3]=u*i+h*n,e[4]=l*i-a*n,e[5]=f*i-o*n,e[6]=c*i-s*n,e[7]=h*i-u*n,e}});var tre=Te((Tir,ere)=>{ere.exports=Crt;function Crt(e,t,r){var n,i,a,o=r[0],s=r[1],u=r[2],l=Math.sqrt(o*o+s*s+u*u);return Math.abs(l)<1e-6?null:(l=1/l,o*=l,s*=l,u*=l,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+u*n,e[2]=u*o*a-s*n,e[3]=0,e[4]=o*s*a-u*n,e[5]=s*s*a+i,e[6]=u*s*a+o*n,e[7]=0,e[8]=o*u*a+s*n,e[9]=s*u*a-o*n,e[10]=u*u*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var ire=Te((Sir,rre)=>{rre.exports=Lrt;function Lrt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,u=i+i,l=a+a,f=n*s,c=n*u,h=n*l,d=i*u,p=i*l,x=a*l,b=o*s,v=o*u,k=o*l;return e[0]=1-(d+x),e[1]=c+k,e[2]=h-v,e[3]=0,e[4]=c-k,e[5]=1-(f+x),e[6]=p+b,e[7]=0,e[8]=h+v,e[9]=p-b,e[10]=1-(f+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var are=Te((Mir,nre)=>{nre.exports=Prt;function Prt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var sre=Te((Eir,ore)=>{ore.exports=zrt;function zrt(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var ure=Te((kir,lre)=>{lre.exports=Irt;function Irt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var cre=Te((Cir,fre)=>{fre.exports=Rrt;function Rrt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var dre=Te((Lir,hre)=>{hre.exports=Drt;function Drt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var H9=Te((Pir,pre)=>{pre.exports=Frt;function Frt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,u=i+i,l=r*o,f=n*o,c=n*s,h=i*o,d=i*s,p=i*u,x=a*o,b=a*s,v=a*u;return e[0]=1-c-p,e[1]=f+v,e[2]=h-b,e[3]=0,e[4]=f-v,e[5]=1-l-p,e[6]=d+x,e[7]=0,e[8]=h+b,e[9]=d-x,e[10]=1-l-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var mre=Te((zir,vre)=>{vre.exports=Brt;function Brt(e,t,r,n,i,a,o){var s=1/(r-t),u=1/(i-n),l=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*u,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*u,e[10]=(o+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*l,e[15]=0,e}});var gre=Te((Iir,yre)=>{yre.exports=Ort;function Ort(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}});var xre=Te((Rir,_re)=>{_re.exports=qrt;function qrt(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),u=2/(o+s),l=2/(i+a);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=l,e[6]=0,e[7]=0,e[8]=-((o-s)*u*.5),e[9]=(i-a)*l*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}});var wre=Te((Dir,bre)=>{bre.exports=Nrt;function Nrt(e,t,r,n,i,a,o){var s=1/(t-r),u=1/(n-i),l=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*l,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*u,e[14]=(o+a)*l,e[15]=1,e}});var Tre=Te((Fir,Are)=>{var Urt=G9();Are.exports=Vrt;function Vrt(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p=t[0],x=t[1],b=t[2],v=n[0],k=n[1],E=n[2],T=r[0],L=r[1],_=r[2];return Math.abs(p-T)<1e-6&&Math.abs(x-L)<1e-6&&Math.abs(b-_)<1e-6?Urt(e):(f=p-T,c=x-L,h=b-_,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,i=k*h-E*c,a=E*f-v*h,o=v*c-k*f,d=Math.sqrt(i*i+a*a+o*o),d?(d=1/d,i*=d,a*=d,o*=d):(i=0,a=0,o=0),s=c*o-h*a,u=h*i-f*o,l=f*a-c*i,d=Math.sqrt(s*s+u*u+l*l),d?(d=1/d,s*=d,u*=d,l*=d):(s=0,u=0,l=0),e[0]=i,e[1]=s,e[2]=f,e[3]=0,e[4]=a,e[5]=u,e[6]=c,e[7]=0,e[8]=o,e[9]=l,e[10]=h,e[11]=0,e[12]=-(i*p+a*x+o*b),e[13]=-(s*p+u*x+l*b),e[14]=-(f*p+c*x+h*b),e[15]=1,e)}});var Mre=Te((Bir,Sre)=>{Sre.exports=Grt;function Grt(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var W9=Te((Oir,Ere)=>{Ere.exports={create:Mte(),clone:kte(),copy:Lte(),identity:G9(),transpose:Ite(),invert:Dte(),adjoint:Bte(),determinant:qte(),multiply:Ute(),translate:Gte(),scale:Wte(),rotate:Xte(),rotateX:Yte(),rotateY:Jte(),rotateZ:Qte(),fromRotation:tre(),fromRotationTranslation:ire(),fromScaling:are(),fromTranslation:sre(),fromXRotation:ure(),fromYRotation:cre(),fromZRotation:dre(),fromQuat:H9(),frustum:mre(),perspective:gre(),perspectiveFromFieldOfView:xre(),ortho:wre(),lookAt:Tre(),str:Mre()}});var bL=Te(xh=>{"use strict";var Hrt=W9();xh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var Wrt=Jl(),kre=G1(),jrt=bL(),Xrt=W9();function Zrt(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Yrt(e){var t=Wrt.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function Cre(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function Krt(e,t){Lre("global",e,t)}function Lre(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);if(!(i&&i.matches(".no-inline-styles"))){i||(i=document.createElement("style"),i.setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):kre.warn("addStyleRule failed"):kre.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Jrt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&Cre(r)}function $rt(e,t,r,n,i,a){var o=n.split(":"),s=i.split(":"),u="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(l){l.getAttribute(u)||(l.addEventListener("mouseenter",function(){var f=this.querySelector(r);f&&(f.style[o[0]]=o[1])}),l.addEventListener("mouseleave",function(){var f=this.querySelector(r);f&&(t&&this.matches(t)?f.style[o[0]]=o[1]:f.style[s[0]]=s[1])}),l.setAttribute(u,!0))})}function Qrt(e){var t=zre(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(n){var i=Pre(n);if(i){var a=jrt.convertCssMatrix(i);r=Xrt.multiply(r,r,a)}}),r}function Pre(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function zre(e){for(var t=[];eit(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function eit(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function tit(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}Ire.exports={getGraphDiv:Zrt,isPlotDiv:Yrt,removeElement:Cre,addStyleRule:Krt,addRelatedStyleRule:Lre,deleteRelatedStyleRule:Jrt,setStyleOnHover:$rt,getFullTransformMatrix:Qrt,getElementTransformMatrix:Pre,getElementAndAncestors:zre,equalDomRects:tit}});var OM=Te((Uir,Rre)=>{"use strict";Rre.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Sc=Te((Vir,Ure)=>{"use strict";var Fre=Su().extendFlat,rit=mg(),Bre={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Ore={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},iit=Bre.flags.slice().concat(["fullReplot"]),nit=Ore.flags.slice().concat("layoutReplot");Ure.exports={traces:Bre,layout:Ore,traceFlags:function(){return Dre(iit)},layoutFlags:function(){return Dre(nit)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";j9.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};j9.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var X9=Te((Hir,Vre)=>{"use strict";Vre.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Nu=Te(qM=>{"use strict";var Gre=X9(),ait=Gre.FORMAT_LINK,oit=Gre.DATE_FORMAT_LINK;function sit(e){var t=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(t?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,ait,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,oit,"for details on the date formatting syntax."].join(" ")}qM.templateFormatStringDescription=sit;function Z9(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var n=[],i=0;i{"use strict";function H1(e,t){return t?t.d2l(e):e}function Hre(e,t){return t?t.l2d(e):e}function lit(e){return e.x0}function uit(e){return e.x1}function fit(e){return e.y0}function cit(e){return e.y1}function Wre(e){return e.x0shift||0}function jre(e){return e.x1shift||0}function Xre(e){return e.y0shift||0}function Zre(e){return e.y1shift||0}function wL(e,t){return H1(e.x1,t)+jre(e)-H1(e.x0,t)-Wre(e)}function AL(e,t,r){return H1(e.y1,r)+Zre(e)-H1(e.y0,r)-Xre(e)}function hit(e,t){return Math.abs(wL(e,t))}function dit(e,t,r){return Math.abs(AL(e,t,r))}function pit(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(wL(e,t),2)+Math.pow(AL(e,t,r),2))}function vit(e,t){return Hre((H1(e.x1,t)+jre(e)+H1(e.x0,t)+Wre(e))/2,t)}function mit(e,t,r){return Hre((H1(e.y1,r)+Zre(e)+H1(e.y0,r)+Xre(e))/2,r)}function yit(e,t,r){return e.type!=="line"?void 0:AL(e,t,r)/wL(e,t)}Yre.exports={x0:lit,x1:uit,y0:fit,y1:cit,slope:yit,dx:wL,dy:AL,width:hit,height:dit,length:pit,xcenter:vit,ycenter:mit}});var $re=Te((Xir,Jre)=>{"use strict";var git=Sc().overrideAll,fb=Gf(),Kre=gc(),_it=Id().dash,W1=Su().extendFlat,xit=Nu().shapeTexttemplateAttrs,bit=TL();Jre.exports=git({newshape:{visible:W1({},fb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:W1({},fb.legend,{}),legendgroup:W1({},fb.legendgroup,{}),legendgrouptitle:{text:W1({},fb.legendgrouptitle.text,{}),font:Kre({})},legendrank:W1({},fb.legendrank,{}),legendwidth:W1({},fb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:W1({},_it,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:W1({},fb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:xit({newshape:!0},{keys:Object.keys(bit)}),font:Kre({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var eie=Te((Zir,Qre)=>{"use strict";var wit=Id().dash,Ait=Su().extendFlat;Qre.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:Ait({},wit,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var SL=Te((Yir,tie)=>{"use strict";tie.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var s3=Te((Kir,aie)=>{"use strict";var Y9=gc(),Tit=OM(),ML=Ih(),rie=$re(),iie=eie(),Sit=SL(),nie=Su().extendFlat,EL=Y9({editType:"calc"});EL.family.dflt='"Open Sans", verdana, arial, sans-serif';EL.size.dflt=12;EL.color.dflt=ML.defaultLine;aie.exports={font:EL,title:{text:{valType:"string",editType:"layoutstyle"},font:Y9({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Y9({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:nie(Sit({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:ML.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:ML.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:ML.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:rie.newshape,activeshape:rie.activeshape,newselection:iie.newselection,activeselection:iie.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:nie({},Tit.transition,{editType:"none"})}});var oie=Te(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var $l=Te(Tf=>{"use strict";var l3=G1(),sie=xL(),lie=V9(),Mit=mg(),Eit=BM().addStyleRule,uie=Su(),kit=Gf(),Cit=s3(),Lit=uie.extendFlat,K9=uie.extendDeepAll;Tf.modules={};Tf.allCategories={};Tf.allTypes=[];Tf.subplotsRegistry={};Tf.componentsRegistry={};Tf.layoutArrayContainers=[];Tf.layoutArrayRegexes=[];Tf.traceLayoutAttributes={};Tf.localeRegistry={};Tf.apiMethodRegistry={};Tf.collectableSubplotTypes=null;Tf.register=function(t){if(Tf.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var Fit=e3().timeFormat,xie=ku(),J9=G1(),X1=r3().mod,c3=nf(),_0=c3.BADNUM,bv=c3.ONEDAY,NM=c3.ONEHOUR,j1=c3.ONEMIN,f3=c3.ONESEC,UM=c3.EPOCHJD,yg=$l(),pie=e3().utcFormat,Bit=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Oit=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,vie=new Date().getFullYear()-70;function gg(e){return e&&yg.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}bh.dateTick0=function(e,t){var r=qit(e,!!t);if(t<2)return r;var n=bh.dateTime2ms(r,e);return n+=bv*(t-1),bh.ms2DateTime(n,0,e)};function qit(e,t){return gg(e)?t?yg.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:yg.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}bh.dfltRange=function(e){return gg(e)?yg.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};bh.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var CL,LL;bh.dateTime2ms=function(e,t){if(bh.isJSDate(e)){var r=e.getTimezoneOffset()*j1,n=(e.getUTCMinutes()-e.getMinutes())*j1+(e.getUTCSeconds()-e.getSeconds())*f3+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var i=3*j1;r=r-i/2+X1(n-r+i/2,i)}return e=Number(e)-r,e>=CL&&e<=LL?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=gg(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.substr(1),t="");var s=a&&t.substr(0,7)==="chinese",u=e.match(s?Oit:Bit);if(!u)return _0;var l=u[1],f=u[3]||"1",c=Number(u[5]||1),h=Number(u[7]||0),d=Number(u[9]||0),p=Number(u[11]||0);if(a){if(l.length===2)return _0;l=Number(l);var x;try{var b=yg.getComponentMethod("calendars","getCal")(t);if(s){var v=f.charAt(f.length-1)==="i";f=parseInt(f,10),x=b.newDate(l,b.toMonthIndex(l,f,v),c)}else x=b.newDate(l,Number(f),c)}catch(E){return _0}return x?(x.toJD()-UM)*bv+h*NM+d*j1+p*f3:_0}l.length===2?l=(Number(l)+2e3-vie)%100+vie:l=Number(l),f-=1;var k=new Date(Date.UTC(2e3,f,c,h,d));return k.setUTCFullYear(l),k.getUTCMonth()!==f||k.getUTCDate()!==c?_0:k.getTime()+p*f3};CL=bh.MIN_MS=bh.dateTime2ms("-9999");LL=bh.MAX_MS=bh.dateTime2ms("9999-12-31 23:59:59.9999");bh.isDateTime=function(e,t){return bh.dateTime2ms(e,t)!==_0};function u3(e,t){return String(e+Math.pow(10,t)).substr(1)}var kL=90*bv,mie=3*NM,yie=5*j1;bh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=CL&&e<=LL))return _0;t||(t=0);var n=Math.floor(X1(e+.05,1)*10),i=Math.round(e-n/10),a,o,s,u,l,f;if(gg(r)){var c=Math.floor(i/bv)+UM,h=Math.floor(X1(e,bv));try{a=yg.getComponentMethod("calendars","getCal")(r).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){a=pie("G%Y-%m-%d")(new Date(i))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;o=t=CL+bv&&e<=LL-bv))return _0;var t=Math.floor(X1(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=Fit("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return bie(n,i,a,o,s)};function bie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+u3(t,2)+":"+u3(r,2),(n||i)&&(e+=":"+u3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+u3(i,a)}return e}bh.cleanDate=function(e,t,r){if(e===_0)return t;if(bh.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(gg(r))return J9.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=bh.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!bh.isDateTime(e,r))return J9.error("unrecognized date",e),t;return e};var Nit=/%\d?f/g,Uit=/%h/g,Vit={1:"1",2:"1",3:"2",4:"2"};function gie(e,t,r,n){e=e.replace(Nit,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return s});var i=new Date(Math.floor(t+.05));if(e=e.replace(Uit,function(){return Vit[r("%q")(i)]}),gg(n))try{e=yg.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var Git=[59,59.9,59.99,59.999,59.9999];function Hit(e,t){var r=X1(e+.05,bv),n=u3(Math.floor(r/NM),2)+":"+u3(X1(Math.floor(r/j1),60),2);if(t!=="M"){xie(t)||(t=0);var i=Math.min(X1(e/f3,60),Git[t]),a=(100+i).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}bh.formatDate=function(e,t,r,n,i,a){if(i=gg(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` -`+a.year;else return Hit(e,r)+` -`+gie(a.dayMonthYear,e,n,i);return gie(t,e,n,i)};var _ie=3*bv;bh.incrementMonth=function(e,t,r){r=gg(r)&&r;var n=X1(e,bv);if(e=Math.round(e-n),r)try{var i=Math.round(e/bv)+UM,a=yg.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-UM)*bv+n}catch(u){J9.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+_ie);return s.setUTCMonth(s.getUTCMonth()+t)+n-_ie};bh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,u=gg(t)&&yg.getComponentMethod("calendars","getCal")(t),l=0;l{"use strict";Aie.exports=function(t){return t}});var PL=Te(_g=>{"use strict";var Wit=ku(),jit=G1(),Xit=VM(),Zit=nf().BADNUM,$9=1e-9;_g.findBin=function(e,t,r){if(Wit(t.start))return r?Math.ceil((e-t.start)/t.size-$9)-1:Math.floor((e-t.start)/t.size+$9);var n=0,i=t.length,a=0,o=i>1?(t[i-1]-t[0])/(i-1):1,s,u;for(o>=0?u=r?Yit:Kit:u=r?$it:Jit,e+=o*$9*(r?-1:1)*(o>=0?1:-1);n90&&jit.log("Long binary search..."),n-1};function Yit(e,t){return et}function $it(e,t){return e>=t}_g.sorterAsc=function(e,t){return e-t};_g.sorterDes=function(e,t){return t-e};_g.distinctVals=function(e){var t=e.slice();t.sort(_g.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===Zit;r--);for(var n=t[r]-t[0]||1,i=n/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var u=t[s],l=u-o;o===void 0?(a.push(u),o=u):l>i&&(n=Math.min(n,l),a.push(u),o=u)}return{vals:a,minDiff:n}};_g.roundUp=function(e,t,r){for(var n=0,i=t.length-1,a,o=0,s=r?0:1,u=r?1:0,l=r?Math.ceil:Math.floor;n0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()};_g.findIndexOfMin=function(e,t){t=t||Xit;for(var r=1/0,n,i=0;i{"use strict";Tie.exports=function(t){return Object.keys(t).sort()}});var Sie=Te(wh=>{"use strict";var GM=ku(),Qit=mp().isArrayOrTypedArray;wh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),GM(t)||(t=!1),Qit(r[0])){for(a=new Array(n),i=0;ie.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var Lie=Te((anr,Cie)=>{"use strict";var Mie=r3(),Q9=Mie.mod,ent=Mie.modHalf,HM=Math.PI,Y1=2*HM;function tnt(e){return e/180*HM}function rnt(e){return e/HM*180}function eq(e){return Math.abs(e[1]-e[0])>Y1-1e-14}function Eie(e,t){return ent(t-e,Y1)}function int(e,t){return Math.abs(Eie(e,t))}function kie(e,t){if(eq(t))return!0;var r,n;t[0]n&&(n+=Y1);var i=Q9(e,Y1),a=i+Y1;return i>=r&&i<=n||a>=r&&a<=n}function nnt(e,t,r,n){if(!kie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function tq(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=eq([r,n]),u,l,f,c,h;s?(u=0,l=HM,f=Y1):r{"use strict";cb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};cb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};cb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};cb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};cb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};cb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Rie=Te(hb=>{"use strict";var rq=r3().mod;hb.segmentsIntersect=Iie;function Iie(e,t,r,n,i,a,o,s){var u=r-e,l=i-e,f=o-i,c=n-t,h=a-t,d=s-a,p=u*d-f*c;if(p===0)return null;var x=(l*d-f*h)/p,b=(l*c-u*h)/p;return b<0||b>1||x<0||x>1?null:{x:e+u*x,y:t+c*x}}hb.segmentDistance=function(t,r,n,i,a,o,s,u){if(Iie(t,r,n,i,a,o,s,u))return 0;var l=n-t,f=i-r,c=s-a,h=u-o,d=l*l+f*f,p=c*c+h*h,x=Math.min(zL(l,f,d,a-t,o-r),zL(l,f,d,s-t,u-r),zL(c,h,p,t-a,r-o),zL(c,h,p,n-a,i-o));return Math.sqrt(x)};function zL(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}else{var u=n*t-i*e;return u*u/r}}var IL,iq,zie;hb.getTextLocation=function(t,r,n,i){if((t!==iq||i!==zie)&&(IL={},iq=t,zie=i),IL[n])return IL[n];var a=t.getPointAtLength(rq(n-i/2,r)),o=t.getPointAtLength(rq(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),u=t.getPointAtLength(rq(n,r)),l=(u.x*4+a.x+o.x)/6,f=(u.y*4+a.y+o.y)/6,c={x:l,y:f,theta:s};return IL[n]=c,c};hb.clearLocationCache=function(){iq=null};hb.getVisibleSegment=function(t,r,n){var i=r.left,a=r.right,o=r.top,s=r.bottom,u=0,l=t.getTotalLength(),f=l,c,h;function d(x){var b=t.getPointAtLength(x);x===0?c=b:x===l&&(h=b);var v=b.xa?b.x-a:0,k=b.ys?b.y-s:0;return Math.sqrt(v*v+k*k)}for(var p=d(u);p;){if(u+=p+n,u>f)return;p=d(u)}for(p=d(f);p;){if(f-=p+n,u>f)return;p=d(f)}return{min:u,max:f,len:f-u,total:l,isClosed:u===0&&f===l&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};hb.findPointOnPath=function(t,r,n,i){i=i||{};for(var a=i.pathLength||t.getTotalLength(),o=i.tolerance||.001,s=i.iterationLimit||30,u=t.getPointAtLength(0)[n]>t.getPointAtLength(a)[n]?-1:1,l=0,f=0,c=a,h,d,p;l0?c=h:f=h,l++}return d}});var RL=Te(WM=>{"use strict";var xg={};WM.throttle=function(t,r,n){var i=xg[t],a=Date.now();if(!i){for(var o in xg)xg[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};WM.done=function(e){var t=xg[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};WM.clear=function(e){if(e)Die(xg[e]),delete xg[e];else for(var t in xg)WM.clear(t)};function Die(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Bie=Te((unr,Fie)=>{"use strict";Fie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Oie=Te((fnr,DL)=>{"use strict";DL.exports=nq;DL.exports.isMobile=nq;DL.exports.default=nq;var lnt=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,unt=/CrOS/,fnt=/android|ipad|playbook|silk/i;function nq(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=lnt.test(t)&&!unt.test(t)||!!e.tablet&&fnt.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var Nie=Te((cnr,qie)=>{"use strict";var cnt=ku(),hnt=Oie();qie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=dnt(),typeof r!="string")return!0;var n=hnt({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var i=r.split(" "),a=1;a-1;s--){var u=i[s];if(u.substr(0,8)==="Version/"){var l=u.substr(8).split(".")[0];if(cnt(l)&&(l=+l),l>=13)return!0}}}return n};function dnt(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Vie=Te((hnr,Uie)=>{"use strict";var pnt=Jl();Uie.exports=function(t,r,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each(function(o){o[0][a]=pnt.select(this)}),i}});var Hie=Te((dnr,Gie)=>{"use strict";var vnt=$l();Gie.exports=function(t,r){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var u=s[r];if(u)return u}a=vnt.localeRegistry}var l=n.split("-")[0];if(l===n)break;n=l}return r}});var aq=Te((pnr,Wie)=>{"use strict";Wie.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";jie.exports=function(t){for(var r=gnt(t)?ynt:mnt,n=[],i=0;i{"use strict";Zie.exports=function(t,r){if(!r)return t;var n=1/Math.abs(r),i=n>1?(n*t+n*r)/n:t+r,a=String(i).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var u=parseFloat(i).toPrecision(12);u.indexOf("e+")===-1&&(i=+u)}}return i}});var Jie=Te((ynr,Kie)=>{"use strict";var _nt=ku(),xnt=nf().BADNUM,bnt=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Kie.exports=function(t){return typeof t=="string"&&(t=t.replace(bnt,"")),_nt(t)?Number(t):xnt}});var ei=Te((gnr,fne)=>{"use strict";var jM=Jl(),wnt=e3().utcFormat,Ant=k9().format,ine=ku(),nne=nf(),ane=nne.FP_SAFE,Tnt=-ane,$ie=nne.BADNUM,An=fne.exports={};An.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var Qie={};An.warnBadFormat=function(e){var t=String(e);Qie[t]||(Qie[t]=1,An.warn('encountered bad format: "'+t+'"'))};An.noFormat=function(e){return String(e)};An.numberFormat=function(e){var t;try{t=Ant(An.adjustFormat(e))}catch(r){return An.warnBadFormat(e),An.noFormat}return t};An.nestedProperty=kM();An.keyedContainer=Wee();An.relativeAttr=Xee();An.isPlainObject=mg();An.toLogRange=vL();An.relinkPrivateKeys=Jee();var K1=mp();An.isArrayBuffer=K1.isArrayBuffer;An.isTypedArray=K1.isTypedArray;An.isArrayOrTypedArray=K1.isArrayOrTypedArray;An.isArray1D=K1.isArray1D;An.ensureArray=K1.ensureArray;An.concat=K1.concat;An.maxRowLength=K1.maxRowLength;An.minRowLength=K1.minRowLength;var one=r3();An.mod=one.mod;An.modHalf=one.modHalf;var J1=mte();An.valObjectMeta=J1.valObjectMeta;An.coerce=J1.coerce;An.coerce2=J1.coerce2;An.coerceFont=J1.coerceFont;An.coercePattern=J1.coercePattern;An.coerceHoverinfo=J1.coerceHoverinfo;An.coerceSelectionMarkerOpacity=J1.coerceSelectionMarkerOpacity;An.validate=J1.validate;var Wv=wie();An.dateTime2ms=Wv.dateTime2ms;An.isDateTime=Wv.isDateTime;An.ms2DateTime=Wv.ms2DateTime;An.ms2DateTimeLocal=Wv.ms2DateTimeLocal;An.cleanDate=Wv.cleanDate;An.isJSDate=Wv.isJSDate;An.formatDate=Wv.formatDate;An.incrementMonth=Wv.incrementMonth;An.dateTick0=Wv.dateTick0;An.dfltRange=Wv.dfltRange;An.findExactDates=Wv.findExactDates;An.MIN_MS=Wv.MIN_MS;An.MAX_MS=Wv.MAX_MS;var db=PL();An.findBin=db.findBin;An.sorterAsc=db.sorterAsc;An.sorterDes=db.sorterDes;An.distinctVals=db.distinctVals;An.roundUp=db.roundUp;An.sort=db.sort;An.findIndexOfMin=db.findIndexOfMin;An.sortObjectKeys=Z1();var bg=Sie();An.aggNums=bg.aggNums;An.len=bg.len;An.mean=bg.mean;An.geometricMean=bg.geometricMean;An.median=bg.median;An.midRange=bg.midRange;An.variance=bg.variance;An.stdev=bg.stdev;An.interp=bg.interp;var gm=bL();An.init2dArray=gm.init2dArray;An.transposeRagged=gm.transposeRagged;An.dot=gm.dot;An.translationMatrix=gm.translationMatrix;An.rotationMatrix=gm.rotationMatrix;An.rotationXYMatrix=gm.rotationXYMatrix;An.apply3DTransform=gm.apply3DTransform;An.apply2DTransform=gm.apply2DTransform;An.apply2DTransform2=gm.apply2DTransform2;An.convertCssMatrix=gm.convertCssMatrix;An.inverseTransformMatrix=gm.inverseTransformMatrix;var py=Lie();An.deg2rad=py.deg2rad;An.rad2deg=py.rad2deg;An.angleDelta=py.angleDelta;An.angleDist=py.angleDist;An.isFullCircle=py.isFullCircle;An.isAngleInsideSector=py.isAngleInsideSector;An.isPtInsideSector=py.isPtInsideSector;An.pathArc=py.pathArc;An.pathSector=py.pathSector;An.pathAnnulus=py.pathAnnulus;var d3=Pie();An.isLeftAnchor=d3.isLeftAnchor;An.isCenterAnchor=d3.isCenterAnchor;An.isRightAnchor=d3.isRightAnchor;An.isTopAnchor=d3.isTopAnchor;An.isMiddleAnchor=d3.isMiddleAnchor;An.isBottomAnchor=d3.isBottomAnchor;var p3=Rie();An.segmentsIntersect=p3.segmentsIntersect;An.segmentDistance=p3.segmentDistance;An.getTextLocation=p3.getTextLocation;An.clearLocationCache=p3.clearLocationCache;An.getVisibleSegment=p3.getVisibleSegment;An.findPointOnPath=p3.findPointOnPath;var OL=Su();An.extendFlat=OL.extendFlat;An.extendDeep=OL.extendDeep;An.extendDeepAll=OL.extendDeepAll;An.extendDeepNoArrays=OL.extendDeepNoArrays;var oq=G1();An.log=oq.log;An.warn=oq.warn;An.error=oq.error;var Snt=n3();An.counterRegex=Snt.counter;var sq=RL();An.throttle=sq.throttle;An.throttleDone=sq.done;An.clearThrottle=sq.clear;var _m=BM();An.getGraphDiv=_m.getGraphDiv;An.isPlotDiv=_m.isPlotDiv;An.removeElement=_m.removeElement;An.addStyleRule=_m.addStyleRule;An.addRelatedStyleRule=_m.addRelatedStyleRule;An.deleteRelatedStyleRule=_m.deleteRelatedStyleRule;An.setStyleOnHover=_m.setStyleOnHover;An.getFullTransformMatrix=_m.getFullTransformMatrix;An.getElementTransformMatrix=_m.getElementTransformMatrix;An.getElementAndAncestors=_m.getElementAndAncestors;An.equalDomRects=_m.equalDomRects;An.clearResponsive=Bie();An.preserveDrawingBuffer=Nie();An.makeTraceGroups=Vie();An._=Hie();An.notifier=q9();An.filterUnique=aq();An.filterVisible=Xie();An.pushUnique=V9();An.increment=Yie();An.cleanNumber=Jie();An.ensureNumber=function(t){return ine(t)?(t=Number(t),t>ane||t=t?!1:ine(e)&&e>=0&&e%1===0};An.noop=xL();An.identity=VM();An.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};An.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};An.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(An.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};An.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r};An.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,i=2*t-1,a=new Array(i),o=new Array(r),s,u,l,f;for(s=0;s=n&&(l-=n*Math.floor(l/n)),l<0?l=-1-l:l>=r&&(l=n-1-l),f+=e[l]*a[u];o[s]=f}return o};An.syncOrAsync=function(e,t,r){var n,i;function a(){return An.syncOrAsync(e,t,r)}for(;e.length;)if(i=e.splice(0,1)[0],n=i(t),n&&n.then)return n.then(a);return r&&r(t)};An.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};An.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};An.fillArray=function(e,t,r,n){if(n=n||An.identity,An.isArrayOrTypedArray(e))for(var i=0;iknt.test(window.navigator.userAgent);var Cnt=/Firefox\/(\d+)\.\d+/;An.getFirefoxVersion=function(){var e=Cnt.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};An.isD3Selection=function(e){return e instanceof jM.selection};An.ensureSingle=function(e,t,r,n){var i=e.select(t+(r?"."+r:""));if(i.size())return i;var a=e.append(t);return r&&a.classed(r,!0),n&&a.call(n),a};An.ensureSingleById=function(e,t,r,n){var i=e.select(t+"#"+r);if(i.size())return i;var a=e.append(t).attr("id",r);return n&&a.call(n),a};An.objectFromPath=function(e,t){for(var r=e.split("."),n,i=n={},a=0;a1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+u};An.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var une=/^\w*$/;An.templateString=function(e,t){var r={};return e.replace(An.TEMPLATE_STRING_REGEX,function(n,i){var a;return une.test(i)?a=t[i]:(r[i]=r[i]||An.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var znt={max:10,count:0,name:"hovertemplate"};An.hovertemplateString=function(){return lq.apply(znt,arguments)};var Int={max:10,count:0,name:"texttemplate"};An.texttemplateString=function(){return lq.apply(Int,arguments)};var Rnt=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Dnt(e){var t=e.match(Rnt);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var Fnt={max:10,count:0,name:"texttemplate",parseMultDiv:!0};An.texttemplateStringForShapes=function(){return lq.apply(Fnt,arguments)};var ene=/^[:|\|]/;function lq(e,t,r){var n=this,i=arguments;return t||(t={}),e.replace(An.TEMPLATE_STRING_REGEX,function(a,o,s){var u=o==="xother"||o==="yother",l=o==="_xother"||o==="_yother",f=o==="_xother_"||o==="_yother_",c=o==="xother_"||o==="yother_",h=u||l||c||f,d=o;(l||f)&&(d=d.substring(1)),(c||f)&&(d=d.substring(0,d.length-1));var p=null,x=null;if(n.parseMultDiv){var b=Dnt(d);d=b.key,p=b.op,x=b.number}var v;if(h){if(v=t[d],v===void 0)return""}else{var k,E;for(E=3;E=BL&&o<=tne,l=s>=BL&&s<=tne;if(u&&(n=10*n+o-BL),l&&(i=10*i+s-BL),!u||!l){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var h3=2e9;An.seedPseudoRandom=function(){h3=2e9};An.pseudoRandom=function(){var e=h3;return h3=(69069*h3+1)%4294967296,Math.abs(h3-e)<429496729?An.pseudoRandom():h3/4294967296};An.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=An.extractOption(e,t,"htx","hovertext");if(An.isValidTextValue(i))return n(i);var a=An.extractOption(e,t,"tx","text");if(An.isValidTextValue(a))return n(a)};An.isValidTextValue=function(e){return e||e===0};An.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(l=1):l=0,An.strTranslate(i-l*(r+o),a-l*(n+s))+An.strScale(l)+(u?"rotate("+u+(t?"":" "+r+" "+n)+")":"")};An.setTransormAndDisplay=function(e,t){e.attr("transform",An.getTextTransform(t)),e.style("display",t.scale?null:"none")};An.ensureUniformFontSize=function(e,t){var r=An.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};An.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)};An.bigFont=function(e){return Math.round(1.2*e)};var rne=An.getFirefoxVersion(),Bnt=rne!==null&&rne<86;An.getPositionFromD3Event=function(){return Bnt?[jM.event.layerX,jM.event.layerY]:[jM.event.offsetX,jM.event.offsetY]}});var dne=Te(()=>{"use strict";var Ont=ei(),cne={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(uq in cne)hne=uq.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Ont.addStyleRule(hne,cne[uq]);var hne,uq});var fq=Te((bnr,pne)=>{pne.exports=!0});var hq=Te((wnr,vne)=>{"use strict";var qnt=fq(),cq;typeof window.matchMedia=="function"?cq=!window.matchMedia("(hover: none)").matches:cq=qnt;vne.exports=cq});var pb=Te((Anr,dq)=>{"use strict";var v3=typeof Reflect=="object"?Reflect:null,mne=v3&&typeof v3.apply=="function"?v3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},qL;v3&&typeof v3.ownKeys=="function"?qL=v3.ownKeys:Object.getOwnPropertySymbols?qL=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:qL=function(t){return Object.getOwnPropertyNames(t)};function Nnt(e){console&&console.warn&&console.warn(e)}var gne=Number.isNaN||function(t){return t!==t};function qc(){qc.init.call(this)}dq.exports=qc;dq.exports.once=Hnt;qc.EventEmitter=qc;qc.prototype._events=void 0;qc.prototype._eventsCount=0;qc.prototype._maxListeners=void 0;var yne=10;function NL(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(qc,"defaultMaxListeners",{enumerable:!0,get:function(){return yne},set:function(e){if(typeof e!="number"||e<0||gne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");yne=e}});qc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};qc.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||gne(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function _ne(e){return e._maxListeners===void 0?qc.defaultMaxListeners:e._maxListeners}qc.prototype.getMaxListeners=function(){return _ne(this)};qc.prototype.emit=function(t){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=a[t];if(u===void 0)return!1;if(typeof u=="function")mne(u,this,r);else for(var l=u.length,f=Tne(u,l),n=0;n0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,Nnt(s)}return e}qc.prototype.addListener=function(t,r){return xne(this,t,r,!1)};qc.prototype.on=qc.prototype.addListener;qc.prototype.prependListener=function(t,r){return xne(this,t,r,!0)};function Unt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function bne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Unt.bind(n);return i.listener=r,n.wrapFn=i,i}qc.prototype.once=function(t,r){return NL(r),this.on(t,bne(this,t,r)),this};qc.prototype.prependOnceListener=function(t,r){return NL(r),this.prependListener(t,bne(this,t,r)),this};qc.prototype.removeListener=function(t,r){var n,i,a,o,s;if(NL(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():Vnt(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};qc.prototype.off=qc.prototype.removeListener;qc.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(t,r[i]);return this};function wne(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?Gnt(i):Tne(i,i.length)}qc.prototype.listeners=function(t){return wne(this,t,!0)};qc.prototype.rawListeners=function(t){return wne(this,t,!1)};qc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Ane.call(e,t)};qc.prototype.listenerCount=Ane;function Ane(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}qc.prototype.eventNames=function(){return this._eventsCount>0?qL(this._events):[]};function Tne(e,t){for(var r=new Array(t),n=0;n{"use strict";var pq=pb().EventEmitter,jnt={init:function(e){if(e._ev instanceof pq)return e;var t=new pq,r=new pq;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,i){t.emit(n,i),r.emit(n,i)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var n,i=e._ev;if(!i)return;var a=i._events[t];if(!a)return;function o(u){if(u.listener){if(i.removeListener(t,u.listener),!u.fired)return u.fired=!0,u.listener.apply(i,[r])}else return u.apply(i,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var Ene=ei(),Xnt=ub().dfltConfig;function Znt(e,t){for(var r=[],n,i=0;iXnt.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};wg.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};wg.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};wg.undo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n{"use strict";Lne.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var _3=Te($h=>{"use strict";var x0=$l(),XM=ei(),VL=Gf(),mq=s3(),Ynt=vq(),Knt=OM(),Jnt=ub().configAttributes,Pne=Sc(),xm=XM.extendDeepAll,y3=XM.isPlainObject,$nt=XM.isArrayOrTypedArray,GL=XM.nestedProperty,Qnt=XM.valObjectMeta,yq="_isSubplotObj",HL="_isLinkedToArray",eat="_arrayAttrRegexps",Ine="_deprecated",gq=[yq,HL,eat,Ine];$h.IS_SUBPLOT_OBJ=yq;$h.IS_LINKED_TO_ARRAY=HL;$h.DEPRECATED=Ine;$h.UNDERSCORE_ATTRS=gq;$h.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=rat(t)}),{defs:{valObjects:Qnt,metaKeys:gq.concat(["description","role","editType","impliedEdits"]),editType:{traces:Pne.traces,layout:Pne.layout},impliedEdits:{}},traces:e,layout:iat(),frames:nat(),animation:g3(Knt),config:g3(Jnt)}};$h.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(gq.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!$h.isValObject(o)&&y3(o)&&a!=="impliedEdits"&&$h.crawl(o,t,i+1,s)}})};$h.isValObject=function(e){return e&&e.valType!==void 0};$h.findArrayAttributes=function(e){var t=[],r=[],n=[],i,a;function o(u,l,f,c){r=r.slice(0,c).concat([l]),n=n.slice(0,c).concat([u&&u._isLinkedToArray]);var h=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(r[c-1]==="colorbar"&&(l==="ticktext"||l==="tickvals"));h&&s(i,0,"")}function s(u,l,f){var c=u[r[l]],h=f+r[l];if(l===r.length-1)$nt(c)&&t.push(a+h);else if(n[l]){if(Array.isArray(c))for(var d=0;d=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!UL(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function UL(e){return e===Math.round(e)&&e>=0}function rat(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=xm({},VL),a=xm({},t.attributes);$h.crawl(a,function(u,l,f,c,h){GL(i,h).set(void 0),u===void 0&&GL(a,h).set(void 0)}),xm(n,i),x0.traceIs(e,"noOpacity")&&delete n.opacity,x0.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),x0.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),t.selectPoints||delete n.selectedpoints,xm(n,a),r.attributes&&xm(n,r.attributes),n.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:g3(n)};if(t.layoutAttributes){var s={};xm(s,t.layoutAttributes),o.layoutAttributes=g3(s)}return t.animatable||$h.crawl(o,function(u){$h.isValObject(u)&&"anim"in u&&delete u.anim}),o}function iat(){var e={},t,r;xm(e,mq);for(t in x0.subplotsRegistry)if(r=x0.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var n=0;n{"use strict";var x3=ei(),uat=Gf(),$1="templateitemname",_q={name:{valType:"string",editType:"none"}};_q[$1]={valType:"string",editType:"calc"};vb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=_q.name,t[$1]=_q[$1],t};vb.traceTemplater=function(e){var t={},r,n;for(r in e)n=e[r],Array.isArray(n)&&n.length&&(t[r]=0);function i(a){r=x3.coerce(a,{},uat,"type");var o={type:r,_template:null};if(r in t){n=e[r];var s=t[r]%n.length;t[r]++,o._template=n[s]}return o}return{newTrace:i}};vb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);x3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};vb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Fne(t)],a=n&&n[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(l){var f={name:l.name,_input:l},c=f[$1]=l[$1];if(!Dne(c))return f._template=i,f;for(var h=0;h=n&&(r._input||{})._templateitemname;a&&(i=n);var o=t+"["+i+"]",s;function u(){s={},a&&(s[o]={},s[o][$1]=a)}u();function l(d,p){s[d]=p}function f(d,p){a?x3.nestedProperty(s[o],d).set(p):s[o+"."+d]=p}function c(){var d=s;return u(),d}function h(d,p){d&&f(d,p);var x=c();for(var b in x)x3.nestedProperty(e,b).set(x[b])}return{modifyBase:l,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var dd=Te((Cnr,Bne)=>{"use strict";var ZM=n3().counter;Bne.exports={idRegex:{x:ZM("x","( domain)?"),y:ZM("y","( domain)?")},attrRegex:ZM("[xy]axis"),xAxisMatch:ZM("xaxis"),yAxisMatch:ZM("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Wc=Te(wv=>{"use strict";var fat=$l(),xq=dd();wv.id2name=function(t){if(!(typeof t!="string"||!t.match(xq.AX_ID_PATTERN))){var r=t.split(" ")[0].substr(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};wv.name2id=function(t){if(t.match(xq.AX_NAME_PATTERN)){var r=t.substr(5);return r==="1"&&(r=""),t.charAt(0)+r}};wv.cleanId=function(t,r,n){var i=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(xq.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(i&&!n)){var a=t.split(" ")[0].substr(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(i&&n?" domain":"")}};wv.list=function(e,t,r){var n=e._fullLayout;if(!n)return[];var i=wv.listIds(e,t),a=new Array(i.length),o;for(o=0;on?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)};wv.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function One(e,t){if(t&&t.length){for(var r=0;r{"use strict";function cat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function hat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}qne.exports={clearOutlineControllers:cat,clearOutline:hat}});var WL=Te((znr,Nne)=>{"use strict";Nne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Rd=Te(XL=>{"use strict";var jL=$l(),Inr=dd().SUBPLOT_PATTERN;XL.getSubplotCalcData=function(e,t,r){var n=jL.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var dat=$l(),b3=ei();mb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=mb.hasSimpleAPICommandBindings(e,r,i.lookupTable);if(t&&t._commandObserver){if(o)return i;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,i}if(o){Une(e,o,i.cache),i.check=function(){if(a){var f=Une(e,o,i.cache);return f.changed&&n&&i.lookupTable[f.value]!==void 0&&(i.disable(),Promise.resolve(n({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:i.lookupTable[f.value]})).then(i.enable,i.enable)),f.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0?".":"")+i;b3.isPlainObject(a)?bq(a,t,o,n+1):t(o,i,a)}})}});var Cc=Te((Fnr,nae)=>{"use strict";var Jne=Jl(),vat=e3().timeFormatLocale,mat=k9().formatLocale,YM=ku(),yat=C9(),Hf=$l(),$ne=_3(),gat=Pf(),nu=ei(),Qne=jl(),Wne=nf().BADNUM,Av=Wc(),_at=Q1().clearOutline,xat=WL(),wq=OM(),bat=vq(),wat=Rd().getModuleCalcData,jne=nu.relinkPrivateKeys,yb=nu._,Nl=nae.exports={};nu.extendFlat(Nl,Hf);Nl.attributes=Gf();Nl.attributes.type.values=Nl.allTypes;Nl.fontAttrs=gc();Nl.layoutAttributes=s3();var YL=Hne();Nl.executeAPICommand=YL.executeAPICommand;Nl.computeAPICommandBindings=YL.computeAPICommandBindings;Nl.manageCommandObserver=YL.manageCommandObserver;Nl.hasSimpleAPICommandBindings=YL.hasSimpleAPICommandBindings;Nl.redrawText=function(e){return e=nu.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Hf.getComponentMethod("annotations","draw")(e),Hf.getComponentMethod("legend","draw")(e),Hf.getComponentMethod("colorbar","draw")(e),t(Nl.previousPromises(e)))},300)})};Nl.resize=function(e){e=nu.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||nu.isHidden(e))&&i(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||nu.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Hf.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r};Nl.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Nl.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=nu.ensureSingle(t._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Qne.defaultLine,"pointer-events":"all"}).each(function(){var l=Jne.select(this);l.append("tspan").classed("js-link-to-tool",!0),l.append("tspan").classed("js-link-spacer",!0),l.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var a=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Aat(e,a),o.text(a.text()&&s.text()?" - ":"")}};function Aat(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){Nl.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}Nl.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=Jne.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),i=n.append("input").attr({type:"text",name:"data"});return i.node().value=Nl.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var Tat=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Sat=["year","month","dayMonth","dayMonthYear"];Nl.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var i=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],u=e.data||[],l=e.calcdata||[],f=e._context||{},c;e._transitionData||Nl.createTransitionData(e),i._dfltTitle={plot:yb(e,"Click to enter Plot title"),subtitle:yb(e,"Click to enter Plot subtitle"),x:yb(e,"Click to enter X axis title"),y:yb(e,"Click to enter Y axis title"),colorbar:yb(e,"Click to enter Colorscale title"),annotation:yb(e,"new text")},i._traceWord=yb(e,"trace");var h=Xne(e,Tat);if(i._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,p=n.height;Nl.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=p),Nl.sanitizeMargins(i)}else{Nl.supplyLayoutGlobalDefaults(a,i,h);var x=!a.width||!a.height,b=i.autosize,v=f.autosizable,k=x&&(b||v);k?Nl.plotAutoSize(e,a,i):x&&Nl.sanitizeMargins(i),!b&&x&&(a.width=i.width,a.height=i.height)}i._d3locale=kat(h,i.separators),i._extraFormat=Xne(e,Sat),i._initialAutoSizeIsDone=!0,i._dataLength=u.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var E=i._subplots=Eat(),T=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=Mat(o,u),Nl.supplyDataDefaults(u,s,a,i);var _=Object.keys(T.x),C=Object.keys(T.y);if(_.length>1&&C.length>1){for(Hf.getComponentMethod("grid","sizeDefaults")(a,i),c=0;c<_.length;c++)nu.pushUnique(E.xaxis,_[c]);for(c=0;c15&&C.length>15&&i.shapes.length===0&&i.images.length===0,Nl.linkSubplots(s,i,o,n),Nl.cleanPlot(s,i,o,n);var B=!!(n._has&&n._has("cartesian")),F=!!(i._has&&i._has("cartesian")),U=B,G=F;U&&!G?n._bgLayer.remove():G&&!U&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&_at({_fullLayout:n}),Cat(s,i),jne(i,n),Hf.getComponentMethod("colorscale","crossTraceDefaults")(s,i),i._preGUI||(i._preGUI={}),i._tracePreGUI||(i._tracePreGUI={});var j=i._tracePreGUI,H={},N;for(N in j)H[N]="old";for(c=0;c0){var f=1-2*a;o=Math.round(f*o),s=Math.round(f*s)}}var c=Nl.layoutAttributes.width.min,h=Nl.layoutAttributes.height.min;o1,p=!r.height&&Math.abs(n.height-s)>1;(p||d)&&(d&&(n.width=o),p&&(n.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),Nl.sanitizeMargins(n)};Nl.supplyLayoutModuleDefaults=function(e,t,r,n){var i=Hf.componentsRegistry,a=t._basePlotModules,o,s,u,l=Hf.subplotsRegistry.cartesian;for(o in i)u=i[o],u.includeBasePlot&&u.includeBasePlot(e,t);a.length||a.push(l),t._has("cartesian")&&(Hf.getComponentMethod("grid","contentDefaults")(e,t),l.finalizeSubplots(e,t));for(var f in t._subplots)t._subplots[f].sort(nu.subplotSort);for(s=0;s1&&(r.l/=b,r.r/=b)}if(h){var v=(r.t+r.b)/h;v>1&&(r.t/=v,r.b/=v)}var k=r.xl!==void 0?r.xl:r.x,E=r.xr!==void 0?r.xr:r.x,T=r.yt!==void 0?r.yt:r.y,L=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:k,size:r.l+x},r:{val:E,size:r.r+x},b:{val:L,size:r.b+x},t:{val:T,size:r.t+x}},p[t]=1}if(!n._replotting)return Nl.doAutoMargin(e)}};function Pat(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Av.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}Nl.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),eae(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=nu.extendFlat({},i),u=a.l,l=a.r,f=a.t,c=a.b,h=t._pushmargin,d=t._pushmarginIds,p=t.minreducedwidth,x=t.minreducedheight;if(a.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var v=e._fullLayout._reservedMargin;for(var k in v)for(var E in v[k]){var T=v[k][E];o[E]=Math.max(o[E],T)}h.base={l:{val:0,size:u},r:{val:1,size:l},t:{val:1,size:f},b:{val:0,size:c}};for(var L in o){var _=0;for(var C in h)C!=="base"&&YM(h[C][L].size)&&(_=h[C][L].size>_?h[C][L].size:_);var M=Math.max(0,a[L]-_);o[L]=Math.max(0,o[L]-M)}for(var m in h){var P=h[m].l||{},A=h[m].b||{},B=P.val,F=P.size,U=A.val,G=A.size,j=r-o.r-o.l,H=n-o.t-o.b;for(var N in h){if(YM(F)&&h[N].r){var W=h[N].r.val,re=h[N].r.size;if(W>B){var ae=(F*W+(re-j)*B)/(W-B),be=(re*(1-B)+(F-j)*(1-W))/(W-B);ae+be>u+l&&(u=ae,l=be)}}if(YM(G)&&h[N].t){var Pe=h[N].t.val,Ce=h[N].t.size;if(Pe>U){var de=(G*Pe+(Ce-H)*U)/(Pe-U),te=(Ce*(1-U)+(G-H)*(1-Pe))/(Pe-U);de+te>c+f&&(c=de,f=te)}}}}}var ke=nu.constrain(r-a.l-a.r,tae,p),Ee=nu.constrain(n-a.t-a.b,rae,x),Me=Math.max(0,r-ke),Ne=Math.max(0,n-Ee);if(Me){var Fe=(u+l)/Me;Fe>1&&(u/=Fe,l/=Fe)}if(Ne){var ye=(c+f)/Ne;ye>1&&(c/=ye,f/=ye)}if(i.l=Math.round(u)+o.l,i.r=Math.round(l)+o.r,i.t=Math.round(f)+o.t,i.b=Math.round(c)+o.b,i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&(Nl.didMarginChange(s,i)||Pat(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Ve=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};Nl.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&Nl.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,u=(e._transitionData||{})._frames;function l(h,d){if(typeof h=="function")return d?"_function_":null;if(nu.isPlainObject(h)){var p={},x;return Object.keys(h).sort().forEach(function(E){if(["_","["].indexOf(E.charAt(0))===-1){if(typeof h[E]=="function"){d&&(p[E]="_function");return}if(r==="keepdata"){if(E.substr(E.length-3)==="src")return}else if(r==="keepstream"){if(x=h[E+"src"],typeof x=="string"&&x.indexOf(":")>0&&!nu.isPlainObject(h.stream))return}else if(r!=="keepall"&&(x=h[E+"src"],typeof x=="string"&&x.indexOf(":")>0))return;p[E]=l(h[E],d)}}),p}var b=Array.isArray(h),v=nu.isTypedArray(h);if((b||v)&&h.dtype&&h.shape){var k=h.bdata;return l({dtype:h.dtype,shape:h.shape,bdata:nu.isArrayBuffer(k)?yat.encode(k):k},d)}return b?h.map(function(E){return l(E,d)}):v?nu.simpleMap(h,nu.identity):nu.isJSDate(h)?nu.ms2DateTimeLocal(+h):h}var f={data:(o||[]).map(function(h){var d=l(h);return t&&delete d.fit,d})};if(!t&&(f.layout=l(s),i)){var c=s._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return u&&(f.frames=l(u)),a&&(f.config=l(e._context,!0)),n==="object"?f:JSON.stringify(f)};Nl.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Hf.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function p(){return h++,function(){d++,!n&&d===h&&s(c)}}r.runFn(p),setTimeout(p())})}function s(c){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Hf.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function u(){if(e._transitionData)return e._transitioning=!1,i(e._transitionData._interruptCallbacks)}var l=[Nl.previousPromises,u,r.prepareFn,Nl.rehover,Nl.reselect,o],f=nu.syncOrAsync(l,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Nl.doCalcdata=function(e,t){var r=Av.list(e),n=e._fullData,i=e._fullLayout,a,o,s,u,l=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=l,i._numBoxes=0,i._numViolins=0,i._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,i._piecolormap={},i._sunburstcolormap={},i._treemapcolormap={},i._iciclecolormap={},i._funnelareacolormap={},s=0;s=0;u--)if(L[u].enabled){a._indexToPoints=L[u]._indexToPoints;break}o&&o.calc&&(T=o.calc(e,a))}(!Array.isArray(T)||!T[0])&&(T=[{x:Wne,y:Wne}]),T[0].t||(T[0].t={}),T[0].trace=a,l[k]=T}}for(Yne(r,n,i),s=0;s{"use strict";gb.xmlns="http://www.w3.org/2000/xmlns/";gb.svg="http://www.w3.org/2000/svg";gb.xlink="http://www.w3.org/1999/xlink";gb.svgAttrs={xmlns:gb.svg,"xmlns:xlink":gb.xlink}});var Qh=Te((Onr,aae)=>{"use strict";aae.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Xf=Te(b0=>{"use strict";var Rh=Jl(),Ag=ei(),Dat=Ag.strTranslate,Aq=jv(),Fat=Qh().LINE_SPACING,Bat=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(Bat),a=Rh.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var u=Kat(e.node(),n);u&&e.style("pointer-events","all"),b0.positionText(e),r&&r.call(e)}return i?(t&&t._promises||[]).push(new Promise(function(u){e.style("display","none");var l=parseInt(e.node().style.fontSize,10),f={fontSize:l};Uat(i[2],f,function(c,h,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){s(),u();return}var x=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});x.node().appendChild(p.node()),h&&h.node()&&p.node().insertBefore(h.node().cloneNode(!0),p.node().firstChild);var b=d.width,v=d.height;p.attr({class:o,height:v,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var k=e.node().style.fill||"black",E=p.select("g");E.attr({fill:k,stroke:k});var T=E.node().getBoundingClientRect(),L=T.width,_=T.height;(L>b||_>v)&&(p.style("overflow","hidden"),T=p.node().getBoundingClientRect(),L=T.width,_=T.height);var C=+e.attr("x"),M=+e.attr("y"),m=l||e.node().getBoundingClientRect().height,P=-m/4;if(o[0]==="y")x.attr({transform:"rotate("+[-90,C,M]+")"+Dat(-L/2,P-_/2)});else if(o[0]==="l")M=P-_/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)C=0,M=P;else{var A=e.attr("text-anchor");C=C-L*(A==="middle"?.5:A==="end"?1:0),M=M+P-_/2}p.attr({x:C,y:M}),r&&r.call(e,x),u(x)})})):s(),e};var Oat=/(<|<|<)/g,qat=/(>|>|>)/g;function Nat(e){return e.replace(Oat,"\\lt ").replace(qat,"\\gt ")}var oae=[["$","$"],["\\(","\\)"]];function Uat(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Ag.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,u=function(){return a=Ag.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:oae},displayAlign:"left"})},l=function(){a=Ag.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=oae},f=function(){if(i=MathJax.Hub.config.menuSettings.renderer,i!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){i=MathJax.config.startup.output,i!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var k="math-output-"+Ag.randstr({},64);s=Rh.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(Nat(e));var E=s.node();return n===2?MathJax.Hub.Typeset(E):MathJax.typeset([E])},d=function(){var k=s.select(n===2?".MathJax_SVG":".MathJax"),E=!k.empty()&&s.select("svg").node();if(!E)Ag.log("There was an error in the tex syntax.",e),r();else{var T=E.getBoundingClientRect(),L;n===2?L=Rh.select("body").select("#MathJax_SVG_glyphs"):L=k.select("defs"),r(k,L,T)}s.remove()},p=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},x=function(){i!=="svg"&&(MathJax.config.startup.output=i)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(a)},v=function(){MathJax.config=a};n===2?MathJax.Hub.Queue(u,f,h,d,p,b):n===3&&(l(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),x(),v()}))}var fae={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Vat={sub:"0.3em",sup:"-0.6em"},Gat={sub:"-0.21em",sup:"0.42em"},sae="\u200B",lae=["http:","https:","mailto:","",void 0,":"],cae=b0.NEWLINES=/(\r\n?|\n)/g,Sq=/(<[^<>]*>)/,Mq=/<(\/?)([^ >]*)(\s+(.*))?>/i,Hat=//i;b0.BR_TAG_ALL=//gi;var hae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,dae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,pae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Wat=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _b(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&KL(n)}var jat=/(^|;)\s*color:/;b0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,n=t.allowedTags!==void 0?t.allowedTags:["br"],i="...",a=i.length,o=e.split(Sq),s=[],u="",l=0,f=0;fa?s.push(c.substr(0,x-a)+i):s.push(c.substr(0,x));break}u=""}}return s.join("")};var Xat={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Zat=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function KL(e){return e.replace(Zat,function(t,r){var n;return r.charAt(0)==="#"?n=Yat(r.charAt(1)==="x"?parseInt(r.substr(2),16):parseInt(r.substr(1),10)):n=Xat[r],n||t})}b0.convertEntities=KL;function Yat(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function Kat(e,t){t=t.replace(cae," ");var r=!1,n=[],i,a=-1;function o(){a++;var _=document.createElementNS(Aq.svg,"tspan");Rh.select(_).attr({class:"line",dy:a*Fat+"em"}),e.appendChild(_),i=_;var C=n;if(n=[{node:_}],C.length>1)for(var M=1;M.",t);return}var C=n.pop();_!==C.type&&Ag.log("Start tag <"+C.type+"> doesnt match end tag <"+_+">. Pretending it did match.",t),i=n[n.length-1].node}var f=Hat.test(t);f?o():(i=e,n=[{node:e}]);for(var c=t.split(Sq),h=0;h{"use strict";var Jat=Jl(),$L=cd(),JM=ku(),JL=ei(),mae=jl(),$at=sb().isValid;function Qat(e,t,r){var n=t?JL.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if(JL.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function wae(e,t){t=t||{};for(var r=e.domain,n=e.range,i=n.length,a=new Array(i),o=0;o{"use strict";var Tae=X9(),tot=Tae.FORMAT_LINK,rot=Tae.DATE_FORMAT_LINK;function iot(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Eq:Sae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Eq(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+tot+"."].join(" ")}function Sae(e,t){return Eq(e,t)+[" And for dates see: "+rot+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Mae.exports={axisHoverFormat:iot,descriptionOnlyNumbers:Eq,descriptionWithDates:Sae}});var Dd=Te((Gnr,Gae)=>{"use strict";var Eae=gc(),w3=Ih(),Vae=Id().dash,Cq=Su().extendFlat,kae=Pf().templatedArray,Vnr=Nu().templateFormatStringDescription,Cae=jc().descriptionWithDates,not=nf().ONEDAY,vy=dd(),aot=vy.HOUR_PATTERN,oot=vy.WEEKDAY_PATTERN,kq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},sot=Cq({},kq,{values:kq.values.slice().concat(["sync"])});function Lae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var Pae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},zae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Iae={valType:"data_array",editType:"ticks"},Rae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Dae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Fae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Bae={valType:"color",dflt:w3.defaultLine,editType:"ticks"},Oae={valType:"color",dflt:w3.lightLine,editType:"ticks"};function qae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Nae=Cq({},Vae,{editType:"ticks"}),Uae={valType:"boolean",editType:"ticks"};Gae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Eae({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[vy.idRegex.x.toString(),vy.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[vy.idRegex.x.toString(),vy.idRegex.y.toString()],editType:"calc"},rangebreaks:kae("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[oot,aot,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:not},editType:"calc"}),tickmode:sot,nticks:Lae(),tick0:Pae,dtick:zae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Iae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Rae,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Dae(),tickwidth:Fae(),tickcolor:Bae,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Cq({},Vae,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:Eae({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Cae("tick label")},tickformatstops:kae("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Cae("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:w3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Uae,gridcolor:Oae,gridwidth:qae(),griddash:Nae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",vy.idRegex.x.toString(),vy.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",vy.idRegex.x.toString(),vy.idRegex.y.toString()],editType:"plot"},minor:{tickmode:kq,nticks:Lae("minor"),tick0:Pae,dtick:zae,tickvals:Iae,ticks:Rae,ticklen:Dae("minor"),tickwidth:Fae("minor"),tickcolor:Bae,gridcolor:Oae,gridwidth:qae("minor"),griddash:Nae,showgrid:Uae,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var QL=Te((Hnr,jae)=>{"use strict";var Nc=Dd(),Hae=gc(),Wae=Su().extendFlat,lot=Sc().overrideAll;jae.exports=lot({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Nc.linecolor,outlinewidth:Nc.linewidth,bordercolor:Nc.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Nc.minor.tickmode,nticks:Nc.nticks,tick0:Nc.tick0,dtick:Nc.dtick,tickvals:Nc.tickvals,ticktext:Nc.ticktext,ticks:Wae({},Nc.ticks,{dflt:""}),ticklabeloverflow:Wae({},Nc.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Nc.ticklen,tickwidth:Nc.tickwidth,tickcolor:Nc.tickcolor,ticklabelstep:Nc.ticklabelstep,showticklabels:Nc.showticklabels,labelalias:Nc.labelalias,tickfont:Hae({}),tickangle:Nc.tickangle,tickformat:Nc.tickformat,tickformatstops:Nc.tickformatstops,tickprefix:Nc.tickprefix,showtickprefix:Nc.showtickprefix,ticksuffix:Nc.ticksuffix,showticksuffix:Nc.showticksuffix,separatethousands:Nc.separatethousands,exponentformat:Nc.exponentformat,minexponent:Nc.minexponent,showexponent:Nc.showexponent,title:{text:{valType:"string"},font:Hae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var nc=Te((jnr,Zae)=>{"use strict";var uot=QL(),fot=n3().counter,cot=Z1(),Xae=sb().scales,Wnr=cot(Xae);function eP(e){return"`"+e+"`"}Zae.exports=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",i="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",s=typeof r.colorscaleDflt=="string"?Xae[r.colorscaleDflt]:null,u=r.editTypeOverride||"",l=t?t+".":"",f,c;"colorAttr"in r?(f=r.colorAttr,c=r.colorAttr):(f={z:"z",c:"color"}[n],c="in "+eP(l+f));var h=i?" Has an effect only if "+c+" is set to a numerical array.":"",d=n+"auto",p=n+"min",x=n+"max",b=n+"mid",v=eP(l+d),k=eP(l+p),E=eP(l+x),T=k+" and "+E,L={};L[p]=L[x]=void 0;var _={};_[d]=!1;var C={};return f==="color"&&(C.color={valType:"color",arrayOk:!0,editType:u||"style"},r.anim&&(C.color.anim=!0)),C[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:L},C[p]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:_},C[x]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:_},C[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:L},C.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},C.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},C.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(C.showscale={valType:"boolean",dflt:o,editType:"calc"},C.colorbar=uot),r.noColorAxis||(C.coloraxis={valType:"subplotid",regex:fot("coloraxis"),dflt:null,editType:"calc"}),C}});var Pq=Te((Xnr,Yae)=>{"use strict";var hot=Su().extendFlat,dot=nc(),Lq=sb().scales;Yae.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Lq.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Lq.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Lq.RdBu,editType:"calc"}},coloraxis:hot({_isSubplotObj:!0,editType:"calc"},dot("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var zq=Te((Znr,Kae)=>{"use strict";var pot=ei();Kae.exports=function(t){return pot.isPlainObject(t.colorbar)}});var Dq=Te(Rq=>{"use strict";var Iq=ku(),Jae=ei(),$ae=nf(),vot=$ae.ONEDAY,mot=$ae.ONEWEEK;Rq.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?vot:1;if(!e)return a;if(Iq(e))return e=Number(e),e<=0?a:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return a;var o=e.charAt(0),s=e.substr(1);return s=Iq(s)?Number(s):0,s<=0||!(n&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};Rq.tick0=function(e,t,r,n){if(t==="date")return Jae.cleanDate(e,Jae.dateTick0(r,n%mot===0?1:0));if(!(n==="D1"||n==="D2"))return Iq(e)?Number(e):0}});var xb=Te((Knr,eoe)=>{"use strict";var Qae=Dq(),yot=ei().isArrayOrTypedArray,got=mp().isTypedArraySpec,_ot=mp().decodeTypedArraySpec;eoe.exports=function(t,r,n,i,a){a||(a={});var o=a.isMinor,s=o?t.minor||{}:t,u=o?r.minor:r,l=o?"minor.":"";function f(k){var E=s[k];return got(E)&&(E=_ot(E)),E!==void 0?E:(u._template||{})[k]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=yot(d)?"array":h?"linear":"auto",x=n(l+"tickmode",p);if(x==="auto"||x==="sync")n(l+"nticks");else if(x==="linear"){var b=u.dtick=Qae.dtick(h,i);u.tick0=Qae.tick0(c,i,r.calendar,b)}else if(i!=="multicategory"){var v=n(l+"tickvals");v===void 0?u.tickmode="auto":o||n("ticktext")}}});var A3=Te((Jnr,roe)=>{"use strict";var Fq=ei(),toe=Dd();roe.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,u=a?toe.minor:toe,l=a?"minor.":"",f=Fq.coerce2(o,s,u,"ticklen",a?(r.ticklen||5)*.6:void 0),c=Fq.coerce2(o,s,u,"tickwidth",a?r.tickwidth||1:void 0),h=Fq.coerce2(o,s,u,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=n(l+"ticks",!a&&i.outerTicks||f||c||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var Bq=Te(($nr,ioe)=>{"use strict";ioe.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(a){return t[a]!==void 0}),i=function(a){return t[a]===t[n[0]]};if(n.every(i)||n.length===1)return t[n[0]]}});var Jd=Te((Qnr,noe)=>{"use strict";var tP=ei(),xot=Pf();noe.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=tP.isArrayOrTypedArray(t[i])?t[i]:[],u=r[i]=[],l=xot.arrayTemplater(r,i,a),f,c;for(f=0;f{"use strict";var Oq=ei(),bot=jl().contrast,aoe=Dd(),wot=Bq(),Aot=Jd();ooe.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");Oq.isPlainObject(o)||delete r.labelalias;var s=wot(t),u=n("showticklabels");if(u){a.noTicklabelshift||n("ticklabelshift"),a.noTicklabelstandoff||n("ticklabelstandoff");var l=a.font||{},f=r.color,c=r.ticklabelposition||"",h=c.indexOf("inside")!==-1?bot(a.bgColor):f&&f!==aoe.color.dflt?f:l.color;if(Oq.coerceFont(n,"tickfont",l,{overrideDflt:{color:h}}),!a.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!a.noAng){var d=n("tickangle");!a.noAutotickangles&&d==="auto"&&n("autotickangles")}if(i!=="category"){var p=n("tickformat");Aot(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Tot}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!p&&i!=="date"&&(n("showexponent",s),n("exponentformat"),n("minexponent"),n("separatethousands"))}!a.noMinorloglabels&&i==="log"&&n("minorloglabels")}};function Tot(e,t){function r(i,a){return Oq.coerce(e,t,aoe.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var t_=Te((tar,soe)=>{"use strict";var Sot=Bq();soe.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=Sot(t),u=n("tickprefix");u&&n("showtickprefix",s);var l=n("ticksuffix",o);l&&n("showticksuffix",s)}});var qq=Te((rar,loe)=>{"use strict";var r_=ei(),Mot=Pf(),Eot=xb(),kot=A3(),Cot=e_(),Lot=t_(),Pot=QL();loe.exports=function(t,r,n){var i=Mot.newContainer(r,"colorbar"),a=t.colorbar||{};function o(A,B){return r_.coerce(a,i,Pot,A,B)}var s=n.margin||{t:0,b:0,l:0,r:0},u=n.width-s.l-s.r,l=n.height-s.t-s.b,f=o("orientation"),c=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(c?u:l):30);var d=o("lenmode");o("len",d==="fraction"?1:c?l:u);var p=o("yref"),x=o("xref"),b=p==="paper",v=x==="paper",k,E,T,L="left";c?(T="middle",L=v?"left":"right",k=v?1.02:1,E=.5):(T=b?"bottom":"top",L="center",k=.5,E=b?1.02:1),r_.coerce(a,i,{x:{valType:"number",min:v?-2:0,max:v?3:1,dflt:k}},"x"),r_.coerce(a,i,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:E}},"y"),o("xanchor",L),o("xpad"),o("yanchor",T),o("ypad"),r_.noneOrAll(a,i,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var _=r_.coerce(a,i,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",_.indexOf("inside")!==-1?"hide past domain":"hide past div"),Eot(a,i,o,"linear");var C=n.font,M={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:C};_.indexOf("inside")!==-1&&(M.bgColor="black"),Lot(a,i,o,"linear",M),Cot(a,i,o,"linear",M),kot(a,i,o,"linear",M),o("title.text",n._dfltTitle.colorbar);var m=i.showticklabels?i.tickfont:C,P=r_.extendFlat({},C,{family:m.family,size:r_.bigFont(m.size)});r_.coerceFont(o,"title.font",P),o("title.side",c?"top":"right")}});var ed=Te((iar,coe)=>{"use strict";var uoe=ku(),Uq=ei(),zot=zq(),Iot=qq(),foe=sb().isValid,Rot=$l().traceIs;function Nq(e,t){var r=t.slice(0,t.length-1);return t?Uq.nestedProperty(e,r).get()||{}:e}coe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,u="_module"in r,l=Nq(t,o),f=Nq(r,o),c=Nq(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,n,i,a)};if(u){var d=n._colorAxes||{},p=i(o+"coloraxis");if(p){var x=Rot(r,"contour")&&Uq.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[p];b?(b[2].push(h),b[0]!==x&&(b[0]=!1,Uq.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[x,r,[h]];return}}var v=l[s+"min"],k=l[s+"max"],E=uoe(v)&&uoe(k)&&v{"use strict";var hoe=ei(),Dot=Pf(),doe=Pq(),Fot=ed();poe.exports=function(t,r){function n(c,h){return hoe.coerce(t,r,doe,c,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(c,h){return hoe.coerce(a,o,doe.coloraxis,c,h)}for(var u in i){var l=i[u];if(l[0])a=t[u]||{},o=Dot.newContainer(r,u,"coloraxis"),o._name=u,Fot(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var Bot=ei(),Oot=yp().hasColorscale,qot=yp().extractOpts;moe.exports=function(t,r){function n(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function i(f,c){var h=c.container?Bot.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=qot(h),p=d.auto;(p||d.min===void 0)&&n(h,c.min),(p||d.max===void 0)&&n(h,c.max),d.autocolorscale&&n(h,"colorscale")}}for(var a=0;a{"use strict";var goe=ku(),Vq=ei(),Not=yp().extractOpts;_oe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?Vq.nestedProperty(r,o).get():r,u=Not(s),l=u.auto!==!1,f=u.min,c=u.max,h=u.mid,d=function(){return Vq.aggNums(Math.min,null,a)},p=function(){return Vq.aggNums(Math.max,null,a)};if(f===void 0?f=d():l&&(s._colorAx&&goe(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():l&&(s._colorAx&&goe(c)?c=Math.max(c,p()):c=p()),l&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?x=i.colorscale.sequential:x=i.colorscale.sequentialminus,u._sync("colorscale",x)}}});var _c=Te((sar,xoe)=>{"use strict";var rP=sb(),T3=yp();xoe.exports={moduleType:"component",name:"colorscale",attributes:nc(),layoutAttributes:Pq(),supplyLayoutDefaults:voe(),handleDefaults:ed(),crossTraceDefaults:yoe(),calc:gp(),scales:rP.scales,defaultScale:rP.defaultScale,getScale:rP.get,isValidScale:rP.isValid,hasColorscale:T3.hasColorscale,extractOpts:T3.extractOpts,extractScale:T3.extractScale,flipScale:T3.flipScale,makeColorScaleFunc:T3.makeColorScaleFunc,makeColorScaleFuncFromTrace:T3.makeColorScaleFuncFromTrace}});var lc=Te((lar,woe)=>{"use strict";var boe=ei(),Uot=mp().isTypedArraySpec;woe.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return boe.isPlainObject(t)&&(boe.isArrayOrTypedArray(t.size)||Uot(t.size))}}});var S3=Te((uar,Aoe)=>{"use strict";var Vot=ku();Aoe.exports=function(t,r){r||(r=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(s){return Math.sqrt(s/i)}:function(s){return s/i};return function(s){var u=o(s/r);return Vot(u)&&u>0?Math.max(u,a):0}}});var rv=Te(_p=>{"use strict";var Toe=ei();_p.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};_p.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],n=e.yaxes||[],i=0;i=0&&r.index{Eoe.exports=Xot;var Gq={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},jot=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Xot(e){var t=[];return e.replace(jot,function(r,n,i){var a=n.toLowerCase();for(i=Yot(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Gq[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var Kot=$M(),wl=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},af="M0,0Z",koe=Math.sqrt(2),i_=Math.sqrt(3),Hq=Math.PI,Wq=Math.cos,jq=Math.sin;Ioe.exports={circle:{n:0,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?sf(t,r,i):i}},square:{n:1,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.3,2);return sf(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(of(t))return af;var n=wl(e*.4,2),i=wl(e*1.2,2);return sf(t,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(e,t,r){if(of(t))return af;var n=wl(e*.8/koe,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return sf(t,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/i_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M-"+n+","+i+"H"+n+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/i_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M-"+n+",-"+i+"H"+n+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/i_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M"+i+",-"+n+"V"+n+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/i_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M-"+i+",-"+n+"V"+n+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(e,t,r){if(of(t))return af;var n=wl(e*.951,2),i=wl(e*.588,2),a=wl(-e,2),o=wl(e*-.309,2),s=wl(e*.809,2);return sf(t,r,"M"+n+","+o+"L"+i+","+s+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e/2,2),a=wl(e*i_/2,2);return sf(t,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e/2,2),a=wl(e*i_/2,2);return sf(t,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(of(t))return af;var n=wl(e*.924,2),i=wl(e*.383,2);return sf(t,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(e,t,r){if(of(t))return af;var n=e*1.4,i=wl(n*.225,2),a=wl(n*.951,2),o=wl(n*.363,2),s=wl(n*.588,2),u=wl(-n,2),l=wl(n*-.309,2),f=wl(n*.118,2),c=wl(n*.809,2),h=wl(n*.382,2);return sf(t,r,"M"+i+","+l+"H"+a+"L"+o+","+f+"L"+s+","+c+"L0,"+h+"L-"+s+","+c+"L-"+o+","+f+"L-"+a+","+l+"H-"+i+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,t,r){if(of(t))return af;var n=wl(e*.66,2),i=wl(e*.38,2),a=wl(e*.76,2);return sf(t,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(of(t))return af;var n=wl(e*i_*.8,2),i=wl(e*.8,2),a=wl(e*1.6,2),o=wl(e*4,2),s="A "+o+","+o+" 0 0 1 ";return sf(t,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(of(t))return af;var n=wl(e*i_*.8,2),i=wl(e*.8,2),a=wl(e*1.6,2),o=wl(e*4,2),s="A "+o+","+o+" 0 0 1 ";return sf(t,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.1,2),i=wl(e*2,2),a="A "+i+","+i+" 0 0 1 ";return sf(t,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2),i=wl(e*1.9,2),a="A "+i+","+i+" 0 0 1 ";return sf(t,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(of(t))return af;var n=wl(e*.7,2),i=wl(e*1.4,2);return sf(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2),i=wl(e*.7,2);return sf(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e/koe,2);return sf(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.3,2);return sf(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.3,2),i=wl(e*.65,2);return sf(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*.85,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(of(t))return af;var n=wl(e/2,2),i=wl(e,2);return sf(t,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2);return sf(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2);return sf(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M0,0L-"+n+",-"+i+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+i+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(of(t))return af;var n=Hq/2.5,i=2*e*Wq(n),a=2*e*jq(n);return sf(t,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(of(t))return af;var n=Hq/4,i=2*e*Wq(n),a=2*e*jq(n);return sf(t,r,"M0,0L"+-i+","+a+"A "+2*e+","+2*e+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}};function of(e){return e===null}var Coe,Loe,Poe,zoe;function sf(e,t,r){if((!e||e%360===0)&&!t)return r;if(Poe===e&&zoe===t&&Coe===r)return Loe;Poe=e,zoe=t,Coe=r;function n(b,v){var k=Wq(b),E=jq(b),T=v[0],L=v[1]+(t||0);return[T*k-L*E,T*E+L*k]}for(var i=e/180*Hq,a=0,o=0,s=Kot(r),u="",l=0;l{"use strict";var pd=Jl(),uc=ei(),Jot=uc.numberFormat,Tb=ku(),$q=cd(),nP=$l(),$d=jl(),$ot=_c(),e5=uc.strTranslate,aP=Xf(),Qot=jv(),est=Qh(),tst=est.LINE_SPACING,Hoe=N1().DESELECTDIM,rst=lc(),ist=S3(),nst=rv().appendArrayPointValue,Hl=ese.exports={};Hl.font=function(e,t){var r=t.variant,n=t.style,i=t.weight,a=t.color,o=t.size,s=t.family,u=t.shadow,l=t.lineposition,f=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call($d.fill,a),i&&e.style("font-weight",i),n&&e.style("font-style",n),r&&e.style("font-variant",r),f&&e.style("text-transform",Xq(ost(f))),u&&e.style("text-shadow",u==="auto"?aP.makeTextShadow($d.contrast(a)):Xq(u)),l&&e.style("text-decoration-line",Xq(sst(l)))};function Xq(e){return e==="none"?void 0:e}var ast={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function ost(e){return ast[e]}function sst(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Hl.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Hl.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Hl.setRect=function(e,t,r,n,i){e.call(Hl.setPosition,t,r).call(Hl.setSize,n,i)};Hl.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),a=n.c2p(e.y);if(Tb(i)&&Tb(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",e5(i,a));else return!1;return!0};Hl.translatePoints=function(e,t,r){e.each(function(n){var i=pd.select(this);Hl.translatePoint(n,i,t,r)})};Hl.hideOutsideRangePoint=function(e,t,r,n,i,a){t.attr("display",r.isPtWithinRange(e,i)&&n.isPtWithinRange(e,a)?null:"none")};Hl.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each(function(i){var a=i[0].trace,o=a.xcalendar,s=a.ycalendar,u=nP.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(l){Hl.hideOutsideRangePoint(l,pd.select(this),r,n,o,s)})})}};Hl.crispRound=function(e,t,r){return!t||!Tb(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Hl.singleLineStyle=function(e,t,r,n,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";$d.stroke(t,n||a.color),Hl.dashLine(t,s,o)};Hl.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each(function(i){var a=(((i||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=n||a.dash||"";pd.select(this).call($d.stroke,r||a.color).call(Hl.dashLine,s,o)})};Hl.dashLine=function(e,t,r){r=+r||0,t=Hl.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Hl.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function Woe(e,t,r,n){var i=t.fillpattern,a=t.fillgradient,o=Hl.getPatternAttr,s=i&&(o(i.shape,0,"")||o(i.path,0,""));if(s){var u=o(i.bgcolor,0,null),l=o(i.fgcolor,0,null),f=i.fgopacity,c=o(i.size,0,8),h=o(i.solidity,0,.3),d=t.uid;Hl.pattern(e,"point",r,d,s,c,h,void 0,i.fillmode,u,l,f)}else if(a&&a.type!=="none"){var p=a.type,x="scatterfill-"+t.uid;if(n&&(x="legendfill-"+t.uid),!n&&(a.start!==void 0||a.stop!==void 0)){var b,v;p==="horizontal"?(b={x:a.start,y:0},v={x:a.stop,y:0}):p==="vertical"&&(b={x:0,y:a.start},v={x:0,y:a.stop}),b.x=t._xA.c2p(b.x===void 0?t._extremes.x.min[0].val:b.x,!0),b.y=t._yA.c2p(b.y===void 0?t._extremes.y.min[0].val:b.y,!0),v.x=t._xA.c2p(v.x===void 0?t._extremes.x.max[0].val:v.x,!0),v.y=t._yA.c2p(v.y===void 0?t._extremes.y.max[0].val:v.y,!0),e.call(Zoe,r,x,"linear",a.colorscale,"fill",b,v,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Hl.gradient,r,x,p,a.colorscale,"fill")}else t.fillcolor&&e.call($d.fill,t.fillcolor)}Hl.singleFillStyle=function(e,t){var r=pd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};Woe(e,i,t,!1)};Hl.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(n){var i=pd.select(this);n[0].trace&&Woe(i,n[0].trace,t,r)})};var Doe=Roe();Hl.symbolNames=[];Hl.symbolFuncs=[];Hl.symbolBackOffs=[];Hl.symbolNeedLines={};Hl.symbolNoDot={};Hl.symbolNoFill={};Hl.symbolList=[];Object.keys(Doe).forEach(function(e){var t=Doe[e],r=t.n;Hl.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Hl.symbolNames[r]=e,Hl.symbolFuncs[r]=t.f,Hl.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Hl.symbolNeedLines[r]=!0),t.noDot?Hl.symbolNoDot[r]=!0:Hl.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Hl.symbolNoFill[r]=!0)});var lst=Hl.symbolNames.length,ust="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Hl.symbolNumber=function(e){if(Tb(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Hl.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=lst||e>=400?0:Math.floor(Math.max(e,0))};function joe(e,t,r,n){var i=e%100;return Hl.symbolFuncs[i](t,r,n)+(e>=200?ust:"")}var Foe=Jot("~f"),Xoe={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Hl.gradient=function(e,t,r,n,i,a){var o=Xoe[n];return Zoe(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function Zoe(e,t,r,n,i,a,o,s,u,l){var f=i.length,c;n==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:l}:n==="radial"&&(c={node:"radialGradient",reversed:l});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||o.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var l=Hl.symbolNumber(e.mx||o.symbol)||0;e.om=l%200>=100;var f=tN(e,r),c=eN(e,r);t.attr("d",joe(l,u,f,c))}var h=!1,d,p,x;if(e.so)x=s.outlierwidth,p=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;x=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=n.lineScale(e.mlc):uc.isArrayOrTypedArray(s.color)?p=$d.defaultLine:p=s.color,uc.isArrayOrTypedArray(o.color)&&(d=$d.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}if(e.om)t.call($d.stroke,d).style({"stroke-width":(x||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:x)+"px");var v=o.gradient,k=e.mgt;k?h=!0:k=v&&v.type,uc.isArrayOrTypedArray(k)&&(k=k[0],Xoe[k]||(k=0));var E=o.pattern,T=Hl.getPatternAttr,L=E&&(T(E.shape,e.i,"")||T(E.path,e.i,""));if(k&&k!=="none"){var _=e.mgc;_?h=!0:_=v.color;var C=r.uid;h&&(C+="-"+e.i),Hl.gradient(t,i,C,k,[[0,_],[1,d]],"fill")}else if(L){var M=!1,m=E.fgcolor;!m&&a&&a.color&&(m=a.color,M=!0);var P=T(m,e.i,a&&a.color||null),A=T(E.bgcolor,e.i,null),B=E.fgopacity,F=T(E.size,e.i,8),U=T(E.solidity,e.i,.3);M=M||e.mcc||uc.isArrayOrTypedArray(E.shape)||uc.isArrayOrTypedArray(E.path)||uc.isArrayOrTypedArray(E.bgcolor)||uc.isArrayOrTypedArray(E.fgcolor)||uc.isArrayOrTypedArray(E.size)||uc.isArrayOrTypedArray(E.solidity);var G=r.uid;M&&(G+="-"+e.i),Hl.pattern(t,"point",i,G,L,F,U,e.mcc,E.fillmode,A,P,B)}else uc.isArrayOrTypedArray(d)?$d.fill(t,d[e.i]):$d.fill(t,d);x&&$d.stroke(t,p)}};Hl.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Hl.tryColorscale(r,""),t.lineScale=Hl.tryColorscale(r,"line"),nP.traceIs(e,"symbols")&&(t.ms2mrc=rst.isBubble(e)?ist(e):function(){return(r.size||6)/2}),e.selectedpoints&&uc.extendFlat(t,Hl.makeSelectedPointStyleFns(e)),t};Hl.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},a=r.marker||{},o=n.marker||{},s=i.opacity,u=a.opacity,l=o.opacity,f=u!==void 0,c=l!==void 0;(uc.isArrayOrTypedArray(s)||f||c)&&(t.selectedOpacityFn=function(T){var L=T.mo===void 0?i.opacity:T.mo;return T.selected?f?u:L:c?l:Hoe*L});var h=i.color,d=a.color,p=o.color;(d||p)&&(t.selectedColorFn=function(T){var L=T.mcc||h;return T.selected?d||L:p||L});var x=i.size,b=a.size,v=o.size,k=b!==void 0,E=v!==void 0;return nP.traceIs(e,"symbols")&&(k||E)&&(t.selectedSizeFn=function(T){var L=T.mrc||x/2;return T.selected?k?b/2:L:E?v/2:L}),t};Hl.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,u=a.color,l=o.color;return t.selectedTextColorFn=function(f){var c=f.tc||s;return f.selected?u||c:l||(u?c:$d.addOpacity(c,Hoe))},t};Hl.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Hl.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&i.push(function(a,o){$d.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&i.push(function(a,o){var s=o.mx||n.symbol||0,u=r.selectedSizeFn(o);a.attr("d",joe(Hl.symbolNumber(s),u,tN(o,t),eN(o,t))),o.mrc2=u}),i.length&&e.each(function(a){for(var o=pd.select(this),s=0;s0?r:0}Hl.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=Hl.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var u=pd.select(this),l=a?uc.extractOption(s,t,"txt","texttemplate"):uc.extractOption(s,t,"tx","text");if(!l&&l!==0){u.remove();return}if(a){var f=t._module.formatLabels,c=f?f(s,t,o):{},h={};nst(h,t,s.i);var d=t._meta||{};l=uc.texttemplateString(l,c,o._d3locale,h,s,d)}var p=s.tp||t.textposition,x=Koe(s,t),b=n?n(s):s.tc||t.textfont.color;u.call(Hl.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:x,color:b}).text(l).call(aP.convertToTspans,r).call(Yoe,p,x,s.mrc)})}};Hl.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Hl.makeSelectedTextStyleFns(t);e.each(function(n){var i=pd.select(this),a=r.selectedTextColorFn(n),o=n.tp||t.textposition,s=Koe(n,t);$d.fill(i,a);var u=nP.traceIs(t,"bar-like");Yoe(i,o,s,n.mrc2||n.mrc,u)})}};var Boe=.5;Hl.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],i;for(i=1;i=u||T>=f&&T<=u)&&(L<=c&&L>=l||L>=c&&L<=l)&&(e=[T,L])}return e}Hl.applyBackoff=Qoe;Hl.makeTester=function(){var e=uc.ensureSingleById(pd.select("body"),"svg","js-plotly-tester",function(r){r.attr(Qot.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=uc.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Hl.tester=e,Hl.testref=t};Hl.savedBBoxes={};var Yq=0,hst=1e4;Hl.bBox=function(e,t,r){r||(r=Ooe(e));var n;if(r){if(n=Hl.savedBBoxes[r],n)return uc.extendFlat({},n)}else if(e.childNodes.length===1){var i=e.childNodes[0];if(r=Ooe(i),r){var a=+i.getAttribute("x")||0,o=+i.getAttribute("y")||0,s=i.getAttribute("transform");if(!s){var u=Hl.bBox(i,!1,r);return a&&(u.left+=a,u.right+=a),o&&(u.top+=o,u.bottom+=o),u}if(r+="~"+a+"~"+o+"~"+s,n=Hl.savedBBoxes[r],n)return uc.extendFlat({},n)}}var l,f;t?l=e:(f=Hl.tester.node(),l=e.cloneNode(!0),f.appendChild(l)),pd.select(l).attr("transform",null).call(aP.positionText,0,0);var c=l.getBoundingClientRect(),h=Hl.testref.node().getBoundingClientRect();t||f.removeChild(l);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return Yq>=hst&&(Hl.savedBBoxes={},Yq=0),r&&(Hl.savedBBoxes[r]=d),Yq++,uc.extendFlat({},d)};function Ooe(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Hl.setClipUrl=function(e,t,r){e.attr("clip-path",Qq(t,r))};function Qq(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Hl.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}};Hl.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=e5(t,r),o=o.trim(),e[a]("transform",o),o};Hl.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}};Hl.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var dst=/\s*sc.*/;Hl.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var i=(this.getAttribute("transform")||"").replace(dst,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var pst=/translate\([^)]*\)\s*$/;Hl.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,i=pd.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),u=(i.attr("transform")||"").match(pst);t===1&&r===1?n=[]:n=[e5(o,s),"scale("+t+","+r+")",e5(-o,-s)],u&&n.push(u),i.attr("transform",n.join(""))}})};function eN(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Hl.getMarkerStandoff=eN;var QM=Math.atan2,bb=Math.cos,E3=Math.sin;function qoe(e,t){var r=t[0],n=t[1];return[r*bb(e)-n*E3(e),r*E3(e)+n*bb(e)]}var Noe,Uoe,Voe,Goe,Kq,Jq;function tN(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||uc.isArrayOrTypedArray(r))&&(r=0));var n,i,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],i=o[1]}else{var s=t._xA,u=t._yA;if(s&&u)n=s.c2p(e.x),i=u.c2p(e.y);else return 90}if(t._geo){var l=e.lonlat[0],f=e.lonlat[1],c=t._geo.project([l,f+1e-5]),h=t._geo.project([l+1e-5,f]),d=QM(h[1]-i,h[0]-n),p=QM(c[1]-i,c[0]-n),x;if(a==="north")x=r/180*Math.PI;else if(a==="previous"){var b=l/180*Math.PI,v=f/180*Math.PI,k=Noe/180*Math.PI,E=Uoe/180*Math.PI,T=k-b,L=bb(E)*E3(T),_=E3(E)*bb(v)-bb(E)*E3(v)*bb(T);x=-QM(L,_)-Math.PI,Noe=l,Uoe=f}var C=qoe(d,[bb(x),0]),M=qoe(p,[E3(x),0]);r=QM(C[1]+M[1],C[0]+M[0])/Math.PI*180,a==="previous"&&!(Jq===t.uid&&e.i===Kq+1)&&(r=null)}if(a==="previous"&&!t._geo)if(Jq===t.uid&&e.i===Kq+1&&Tb(n)&&Tb(i)){var m=n-Voe,P=i-Goe,A=t.line&&t.line.shape||"",B=A.slice(A.length-1);B==="h"&&(P=0),B==="v"&&(m=0),r+=QM(P,m)/Math.PI*180+90}else r=null}return Voe=n,Goe=i,Kq=e.i,Jq=t.uid,r}Hl.getMarkerAngle=tN});var Mb=Te((par,nse)=>{"use strict";var k3=Jl(),vst=ku(),mst=Cc(),rN=$l(),Sb=ei(),tse=Sb.strTranslate,oP=Mu(),sP=jl(),C3=Xf(),rse=N1(),yst=Qh().OPPOSITE_SIDE,ise=/ [XY][0-9]* /,iN=1.6,nN=1.6;function gst(e,t,r){var n=e._fullLayout,i=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,u=r.avoid||{},l=r.attributes,f=r.transform,c=r.containerGroup,h=1,d=i.title,p=(d&&d.text?d.text:"").trim(),x=!1,b=d&&d.font?d.font:{},v=b.family,k=b.size,E=b.color,T=b.weight,L=b.style,_=b.variant,C=b.textcase,M=b.lineposition,m=b.shadow,P=r.subtitlePropName,A=!!P,B=r.subtitlePlaceholder,F=(i.title||{}).subtitle||{text:"",font:{}},U=F.text.trim(),G=!1,j=1,H=F.font,N=H.family,W=H.size,re=H.color,ae=H.weight,be=H.style,Pe=H.variant,Ce=H.textcase,de=H.lineposition,te=H.shadow,ke;a==="title.text"?ke="titleText":a.indexOf("axis")!==-1?ke="axisTitleText":a.indexOf("colorbar")!==-1&&(ke="colorbarTitleText");var Ee=e._context.edits[ke];function Me(Tt,St){return Tt===void 0||St===void 0?!1:Tt.replace(ise," % ")===St.replace(ise," % ")}p===""?h=0:Me(p,o)&&(Ee||(p=""),h=.2,x=!0),A&&(U===""?j=0:Me(U,B)&&(Ee||(U=""),j=.2,G=!0)),r._meta?p=Sb.templateString(p,r._meta):n._meta&&(p=Sb.templateString(p,n._meta));var Ne=p||U||Ee,Fe;c||(c=Sb.ensureSingle(n._infolayer,"g","g-"+t),Fe=n._hColorbarMoveTitle);var ye=c.selectAll("text."+t).data(Ne?[0]:[]);ye.enter().append("text"),ye.text(p).attr("class",t),ye.exit().remove();var Ve=null,ce=t+"-subtitle",Ye=U||Ee;if(A&&Ye&&(Ve=c.selectAll("text."+ce).data(Ye?[0]:[]),Ve.enter().append("text"),Ve.text(U).attr("class",ce),Ve.exit().remove()),!Ne)return c;function nt(Tt,St){Sb.syncOrAsync([gt,Nt],{title:Tt,subtitle:St})}function gt(Tt){var St=Tt.title,Dt=Tt.subtitle,Zt;!f&&Fe&&(f={}),f?(Zt="",f.rotate&&(Zt+="rotate("+[f.rotate,l.x,l.y]+")"),(f.offset||Fe)&&(Zt+=tse(0,(f.offset||0)-(Fe||0)))):Zt=null,St.attr("transform",Zt);function Et(Ue){if(Ue){var rt=k3.select(Ue.node().parentNode).select("."+ce);if(!rt.empty()){var $e=Ue.node().getBBox();if($e.height){var zt=$e.y+$e.height+iN*W;rt.attr("y",zt)}}}}if(St.style("opacity",h*sP.opacity(E)).call(oP.font,{color:sP.rgb(E),size:k3.round(k,2),family:v,weight:T,style:L,variant:_,textcase:C,shadow:m,lineposition:M}).attr(l).call(C3.convertToTspans,e,Et),Dt){var Ae=c.select("."+t+"-math-group"),at=St.node().getBBox(),wt=Ae.node()?Ae.node().getBBox():void 0,vt=wt?wt.y+wt.height+iN*W:at.y+at.height+nN*W,st=Sb.extendFlat({},l,{y:vt});Dt.attr("transform",Zt),Dt.style("opacity",j*sP.opacity(re)).call(oP.font,{color:sP.rgb(re),size:k3.round(W,2),family:N,weight:ae,style:be,variant:Pe,textcase:Ce,shadow:te,lineposition:de}).attr(st).call(C3.convertToTspans,e)}return mst.previousPromises(e)}function Nt(Tt){var St=Tt.title,Dt=k3.select(St.node().parentNode);if(u&&u.selection&&u.side&&p){Dt.attr("transform",null);var Zt=yst[u.side],Et=u.side==="left"||u.side==="top"?-1:1,Ae=vst(u.pad)?u.pad:2,at=oP.bBox(Dt.node()),wt={t:0,b:0,l:0,r:0},vt=e._fullLayout._reservedMargin;for(var st in vt)for(var Ue in vt[st]){var rt=vt[st][Ue];wt[Ue]=Math.max(wt[Ue],rt)}var $e={left:wt.l,top:wt.t,right:n.width-wt.r,bottom:n.height-wt.b},zt=u.maxShift||Et*($e[u.side]-at[u.side]),Yt=0;if(zt<0)Yt=zt;else{var hr=u.offsetLeft||0,yr=u.offsetTop||0;at.left-=hr,at.right-=hr,at.top-=yr,at.bottom-=yr,u.selection.each(function(){var Ut=oP.bBox(this);Sb.bBoxIntersect(at,Ut,Ae)&&(Yt=Math.max(Yt,Et*(Ut[u.side]-at[Zt])+Ae))}),Yt=Math.min(zt,Yt),i._titleScoot=Math.abs(Yt)}if(Yt>0||zt<0){var br={left:[-Yt,0],right:[Yt,0],top:[0,-Yt],bottom:[0,Yt]}[u.side];Dt.attr("transform",tse(br[0],br[1]))}}}ye.call(nt,Ve);function it(Tt,St){Tt.text(St).on("mouseover.opacity",function(){k3.select(this).transition().duration(rse.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){k3.select(this).transition().duration(rse.HIDE_PLACEHOLDER).style("opacity",0)})}if(Ee&&(p?ye.on(".opacity",null):(it(ye,o),x=!0),ye.call(C3.makeEditable,{gd:e}).on("edit",function(Tt){s!==void 0?rN.call("_guiRestyle",e,a,Tt,s):rN.call("_guiRelayout",e,a,Tt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(nt)}).on("input",function(Tt){this.text(Tt||" ").call(C3.positionText,l.x,l.y)}),A)){if(A&&!p){var Ke=ye.node().getBBox(),kt=Ke.y+Ke.height+nN*W;Ve.attr("y",kt)}U?Ve.on(".opacity",null):(it(Ve,B),G=!0),Ve.call(C3.makeEditable,{gd:e}).on("edit",function(Tt){rN.call("_guiRelayout",e,"title.subtitle.text",Tt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(nt)}).on("input",function(Tt){this.text(Tt||" ").call(C3.positionText,Ve.attr("x"),Ve.attr("y"))})}return ye.classed("js-placeholder",x),Ve&&Ve.classed("js-placeholder",G),c}nse.exports={draw:gst,SUBTITLE_PADDING_EM:nN,SUBTITLE_PADDING_MATHJAX_EM:iN}});var gy=Te((mar,use)=>{"use strict";var _st=Jl(),xst=e3().utcFormat,Mc=ei(),bst=Mc.numberFormat,my=ku(),n_=Mc.cleanNumber,wst=Mc.ms2DateTime,ase=Mc.dateTime2ms,yy=Mc.ensureNumber,ose=Mc.isArrayOrTypedArray,a_=nf(),lP=a_.FP_SAFE,bm=a_.BADNUM,Ast=a_.LOG_CLIP,Tst=a_.ONEWEEK,uP=a_.ONEDAY,fP=a_.ONEHOUR,sse=a_.ONEMIN,lse=a_.ONESEC,cP=Wc(),pP=dd(),hP=pP.HOUR_PATTERN,dP=pP.WEEKDAY_PATTERN;function t5(e){return Math.pow(10,e)}function aN(e){return e!=null}use.exports=function(t,r){r=r||{};var n=t._id||"x",i=n.charAt(0);function a(T,L){if(T>0)return Math.log(T)/Math.LN10;if(T<=0&&L&&t.range&&t.range.length===2){var _=t.range[0],C=t.range[1];return .5*(_+C-2*Ast*Math.abs(_-C))}else return bm}function o(T,L,_,C){if((C||{}).msUTC&&my(T))return+T;var M=ase(T,_||t.calendar);if(M===bm)if(my(T)){T=+T;var m=Math.floor(Mc.mod(T+.05,1)*10),P=Math.round(T-m/10);M=ase(new Date(P))+m/10}else return bm;return M}function s(T,L,_){return wst(T,L,_||t.calendar)}function u(T){return t._categories[Math.round(T)]}function l(T){if(aN(T)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[T]!==void 0)return t._categoriesMap[T];t._categories.push(typeof T=="number"?String(T):T);var L=t._categories.length-1;return t._categoriesMap[T]=L,L}return bm}function f(T,L){for(var _=new Array(L),C=0;Ct.range[1]&&(_=!_);for(var C=_?-1:1,M=C*T,m=0,P=0;PB)m=P+1;else{m=M<(A+B)/2?P:P+1;break}}var F=t._B[m]||0;return isFinite(F)?p(T,t._m2,F):0},v=function(T){var L=t._rangebreaks.length;if(!L)return x(T,t._m,t._b);for(var _=0,C=0;Ct._rangebreaks[C].pmax&&(_=C+1);return x(T,t._m2,t._B[_])}}t.c2l=t.type==="log"?a:yy,t.l2c=t.type==="log"?t5:yy,t.l2p=b,t.p2l=v,t.c2p=t.type==="log"?function(T,L){return b(a(T,L))}:b,t.p2c=t.type==="log"?function(T){return t5(v(T))}:v,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=n_,t.c2d=t.c2r=t.l2d=t.l2r=yy,t.d2p=t.r2p=function(T){return t.l2p(n_(T))},t.p2d=t.p2r=v,t.cleanPos=yy):t.type==="log"?(t.d2r=t.d2l=function(T,L){return a(n_(T),L)},t.r2d=t.r2c=function(T){return t5(n_(T))},t.d2c=t.r2l=n_,t.c2d=t.l2r=yy,t.c2r=a,t.l2d=t5,t.d2p=function(T,L){return t.l2p(t.d2r(T,L))},t.p2d=function(T){return t5(v(T))},t.r2p=function(T){return t.l2p(n_(T))},t.p2r=v,t.cleanPos=yy):t.type==="date"?(t.d2r=t.r2d=Mc.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(T,L,_){return t.l2p(o(T,0,_))},t.p2d=t.p2r=function(T,L,_){return s(v(T),L,_)},t.cleanPos=function(T){return Mc.cleanDate(T,bm,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=l,t.r2d=t.c2d=t.l2d=u,t.d2r=t.d2l_noadd=h,t.r2c=function(T){var L=d(T);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=yy,t.r2l=d,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return u(v(T))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(T){return typeof T=="string"&&T!==""?T:yy(T)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=u,t.d2r=t.d2l_noadd=h,t.r2c=function(T){var L=h(T);return L!==void 0?L:t.fraction2r(.5)},t.r2c_just_indices=c,t.l2r=t.c2r=yy,t.r2l=h,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return u(v(T))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(T){return Array.isArray(T)||typeof T=="string"&&T!==""?T:yy(T)},t.setupMultiCategory=function(T){var L=t._traceIndices,_,C,M=t._matchGroup;if(M&&t._categories.length===0){for(var m in M)if(m!==n){var P=r[cP.id2name(m)];L=L.concat(P._traceIndices)}}var A=[[0,{}],[0,{}]],B=[];for(_=0;_P[1]&&(C[m?0:1]=_),C[0]===C[1]){var A=t.l2r(L),B=t.l2r(_);if(L!==void 0){var F=A+1;_!==void 0&&(F=Math.min(F,B)),C[m?1:0]=F}if(_!==void 0){var U=B+1;L!==void 0&&(U=Math.max(U,A)),C[m?0:1]=U}}}},t.cleanRange=function(T,L){t._cleanRange(T,L),t.limitRange(T)},t._cleanRange=function(T,L){L||(L={}),T||(T="range");var _=Mc.nestedProperty(t,T).get(),C,M;if(t.type==="date"?M=Mc.dfltRange(t.calendar):i==="y"?M=pP.DFLTRANGEY:t._name==="realaxis"?M=[0,1]:M=L.dfltRange||pP.DFLTRANGEX,M=M.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(M[0]=0),!_||_.length!==2){Mc.nestedProperty(t,T).set(M);return}var m=_[0]===null,P=_[1]===null;for(t.type==="date"&&!t.autorange&&(_[0]=Mc.cleanDate(_[0],bm,t.calendar),_[1]=Mc.cleanDate(_[1],bm,t.calendar)),C=0;C<2;C++)if(t.type==="date"){if(!Mc.isDateTime(_[C],t.calendar)){t[T]=M;break}if(t.r2l(_[0])===t.r2l(_[1])){var A=Mc.constrain(t.r2l(_[0]),Mc.MIN_MS+1e3,Mc.MAX_MS-1e3);_[0]=t.l2r(A-1e3),_[1]=t.l2r(A+1e3);break}}else{if(!my(_[C]))if(!(m||P)&&my(_[1-C]))_[C]=_[1-C]*(C?10:.1);else{t[T]=M;break}if(_[C]<-lP?_[C]=-lP:_[C]>lP&&(_[C]=lP),_[0]===_[1]){var B=Math.max(1,Math.abs(_[0]*1e-6));_[0]-=B,_[1]+=B}}},t.setScale=function(T){var L=r._size;if(t.overlaying){var _=cP.getFromId({_fullLayout:r},t.overlaying);t.domain=_.domain}var C=T&&t._r?"_r":"range",M=t.calendar;t.cleanRange(C);var m=t.r2l(t[C][0],M),P=t.r2l(t[C][1],M),A=i==="y";if(A?(t._offset=L.t+(1-t.domain[1])*L.h,t._length=L.h*(t.domain[1]-t.domain[0]),t._m=t._length/(m-P),t._b=-t._m*P):(t._offset=L.l+t.domain[0]*L.w,t._length=L.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-m),t._b=-t._m*m),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var B,F;if(t._rangebreaks=t.locateBreaks(Math.min(m,P),Math.max(m,P)),t._rangebreaks.length){for(B=0;BP&&(U=!U),U&&t._rangebreaks.reverse();var G=U?-1:1;for(t._m2=G*t._length/(Math.abs(P-m)-t._lBreaks),t._B.push(-t._m2*(A?P:m)),B=0;BM&&(M+=7,mM&&(M+=24,m=C&&m=C&&T=te.min&&(bete.max&&(te.max=Pe),Ce=!1)}Ce&&P.push({min:be,max:Pe})}};for(_=0;_{"use strict";var fse=ku(),oN=ei(),Sst=nf().BADNUM,vP=oN.isArrayOrTypedArray,Mst=oN.isDateTime,Est=oN.cleanNumber,cse=Math.round;dse.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(vP(i)&&!i.length)return"-";if(!a&&zst(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function hse(e){return Math.max(1,(e-1)/1e3)}function Pst(e,t){for(var r=e.length,n=hse(r),i=0,a=0,o={},s=0;si*2}function zst(e){return vP(e[0])&&vP(e[1])}});var wm=Te((gar,bse)=>{"use strict";var Ist=Jl(),yse=ku(),o_=ei(),mP=nf().FP_SAFE,Rst=$l(),Dst=Mu(),gse=Wc(),Fst=gse.getFromId,Bst=gse.isLinked;bse.exports={applyAutorangeOptions:xse,getAutoRange:sN,makePadFn:lN,doAutoRange:qst,findExtremes:Nst,concatExtremes:cN};function sN(e,t){var r,n,i=[],a=e._fullLayout,o=lN(a,t,0),s=lN(a,t,1),u=cN(e,t),l=u.min,f=u.max;if(l.length===0||f.length===0)return o_.simpleMap(t.range,t.r2l);var c=l[0].val,h=f[0].val;for(r=1;r0&&(P=E-o(_)-s(C),P>T?A/P>L&&(M=_,m=C,L=A/P):A/E>L&&(M={val:_.val,nopad:1},m={val:C.val,nopad:1},L=A/E));function B(H,N){return Math.max(H,s(N))}if(c===h){var F=c-1,U=c+1;if(v)if(c===0)i=[0,1];else{var G=(c>0?f:l).reduce(B,0),j=c/(1-Math.min(.5,G/E));i=c>0?[0,j]:[j,0]}else k?i=[Math.max(0,F),Math.max(1,U)]:i=[F,U]}else v?(M.val>=0&&(M={val:0,nopad:1}),m.val<=0&&(m={val:0,nopad:1})):k&&(M.val-L*o(M)<0&&(M={val:0,nopad:1}),m.val<=0&&(m={val:1,nopad:1})),L=(m.val-M.val-pse(t,_.val,C.val))/(E-o(M)-s(m)),i=[M.val-L*o(M),m.val+L*s(m)];return i=xse(i,t),t.limitRange&&t.limitRange(),p&&i.reverse(),o_.simpleMap(i,t.l2r||Number)}function pse(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),_=T((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),C=T(r.vpadplus||r.vpad),M=T(r.vpadminus||r.vpad);if(!l){if(k=1/0,E=-1/0,u)for(c=0;c0&&(k=h),h>E&&h-mP&&(k=h),h>E&&h=A;c--)P(c);return{min:n,max:i,opts:r}}function uN(e,t,r,n){_se(e,t,r,n,Ust)}function fN(e,t,r,n){_se(e,t,r,n,Vst)}function _se(e,t,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,u=0;u=r&&(l.extrapad||!o)){s=!1;break}else i(t,l.val)&&l.pad<=r&&(o||!l.extrapad)&&(e.splice(u,1),u--)}if(s){var f=a&&t===0;e.push({val:t,pad:f?0:r,extrapad:f?!1:o})}}function mse(e){return yse(e)&&Math.abs(e)=t}function Gst(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&yP(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&yP(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function Hst(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&yP(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&yP(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function yP(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=u&&(a=u,r=u),o<=u&&(o=u,n=u)}}return r=Gst(r,t),n=Hst(n,t),[r,n]}});var wu=Te((_ar,Gse)=>{"use strict";var w0=Jl(),Dh=ku(),P3=Cc(),i5=$l(),Ou=ei(),z3=Ou.strTranslate,Eb=Xf(),Wst=Mb(),n5=jl(),Xv=Mu(),jst=Dd(),wse=Dq(),Qd=nf(),Xst=Qd.ONEMAXYEAR,xP=Qd.ONEAVGYEAR,bP=Qd.ONEMINYEAR,Zst=Qd.ONEMAXQUARTER,vN=Qd.ONEAVGQUARTER,wP=Qd.ONEMINQUARTER,Yst=Qd.ONEMAXMONTH,I3=Qd.ONEAVGMONTH,AP=Qd.ONEMINMONTH,Zv=Qd.ONEWEEK,Fp=Qd.ONEDAY,s_=Fp/2,xy=Qd.ONEHOUR,a5=Qd.ONEMIN,TP=Qd.ONESEC,Kst=Qd.ONEMILLI,Jst=Qd.ONEMICROSEC,kb=Qd.MINUS_SIGN,EP=Qd.BADNUM,mN={K:"zeroline"},yN={K:"gridline",L:"path"},gN={K:"minor-gridline",L:"path"},Ise={K:"tick",L:"path"},Ase={K:"tick",L:"text"},Tse={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},kP=Qh(),r5=kP.MID_SHIFT,Cb=kP.CAP_SHIFT,o5=kP.LINE_SPACING,$st=kP.OPPOSITE_SIDE,SP=3,al=Gse.exports={};al.setConvert=gy();var Qst=L3(),Tg=Wc(),elt=Tg.idSort,tlt=Tg.isLinked;al.id2name=Tg.id2name;al.name2id=Tg.name2id;al.cleanId=Tg.cleanId;al.list=Tg.list;al.listIds=Tg.listIds;al.getFromId=Tg.getFromId;al.getFromTrace=Tg.getFromTrace;var Rse=wm();al.getAutoRange=Rse.getAutoRange;al.findExtremes=Rse.findExtremes;var rlt=1e-4;function wN(e){var t=(e[1]-e[0])*rlt;return[e[0]-t,e[1]+t]}al.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],u=n+"ref",l={};return i||(i=s[0]||(typeof a=="string"?a:a[0])),a||(a=i),s=s.concat(s.map(function(f){return f+" domain"})),l[u]={valType:"enumerated",values:s.concat(a?typeof a=="string"?[a]:a:[]),dflt:i},Ou.coerce(e,t,l,u)};al.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};al.coercePosition=function(e,t,r,n,i,a){var o,s,u=al.getRefType(n);if(u!=="range")o=Ou.ensureNumber,s=r(i,a);else{var l=al.getFromId(t,n);a=l.fraction2r(a),s=r(i,a),o=l.cleanPos}e[i]=o(s)};al.cleanPosition=function(e,t,r){var n=r==="paper"||r==="pixel"?Ou.ensureNumber:al.getFromId(t,r).cleanPos;return n(e)};al.redrawComponents=function(e,t){t=t||al.listIds(e);var r=e._fullLayout;function n(i,a,o,s){for(var u=i5.getComponentMethod(i,a),l={},f=0;f2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};al.saveRangeInitial=function(e,t){for(var r=al.list(e,"",!0),n=!1,i=0;ic*.3||l(n)||l(i))){var h=r.dtick/2;e+=e+ho){var s=Number(r.substr(1));a.exactYears>o&&s%12===0?e=al.tickIncrement(e,"M6","reverse")+Fp*1.5:a.exactMonths>o?e=al.tickIncrement(e,"M1","reverse")+Fp*15.5:e-=s_;var u=al.tickIncrement(e,r);if(u<=n)return u}return e}al.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var n=t.dtick&&Dh(t._tmin),i;if(n){var a=al.tickIncrement(t._tmin,t.dtick,!0);i=[t._tmin,a*.99+t._tmin*.01]}else{var o=Ou.simpleMap(t.range,t.r2l);i=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Ou.simpleMap(i,t.l2r),e._isMinor=!0,al.prepTicks(e,r),n){var s=Dh(t.dtick),u=Dh(e.dtick),l=s?t.dtick:+t.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);s&&u?hN(l,f)?l===2*Zv&&f===2*Fp&&(e.dtick=Zv):l===2*Zv&&f===3*Fp?e.dtick=Zv:l===Zv&&!(t._input.minor||{}).nticks?e.dtick=Fp:Ese(l/f,2.5)?e.dtick=l/2:e.dtick=l:String(t.dtick).charAt(0)==="M"?u?e.dtick="M1":hN(l,f)?l>=12&&f===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?hN(l,f)||(e.dtick=Ese(l/f,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function hN(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function Ese(e,t){return Math.abs(e/t-1)<.001}al.prepTicks=function(e,t){var r=Ou.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,i;n||(e.type==="category"||e.type==="multicategory"?(i=e.tickfont?Ou.bigFont(e.tickfont.size||12):15,n=e._length/i):(i=e._id.charAt(0)==="y"?40:80,n=Ou.constrain(e._length/i,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,al.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=n-1,o=n):(a=n,o=n);var s=e[a].value,u=e[o].value,l=Math.abs(u-s),f=r||l,c=0;f>=bP?l>=bP&&l<=Xst?c=l:c=xP:r===vN&&f>=wP?l>=wP&&l<=Zst?c=l:c=vN:f>=AP?l>=AP&&l<=Yst?c=l:c=I3:r===Zv&&f>=Zv?c=Zv:f>=Fp?c=Fp:r===s_&&f>=s_?c=s_:r===xy&&f>=xy&&(c=xy);var h;c>=l&&(c=l,h=!0);var d=i+c;if(t.rangebreaks&&c>0){for(var p=84,x=0,b=0;bZv&&(c=l)}(c>0||n===0)&&(e[n].periodX=i+c/2)}}al.calcTicks=function(t,r){for(var n=t.type,i=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],u=!t.ticklabelindex||Ou.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],l=Ou.simpleMap(t.range,t.r2l,void 0,void 0,r),f=l[1]=(E?0:1);T--){var L=!T;T?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var _=T?t:Ou.extendFlat({},t,t.minor);if(L?al.prepMinorTicks(_,t,r):al.prepTicks(_,r),_.tickmode==="array"){T?(b=[],p=kse(t,!L)):(v=[],x=kse(t,!L));continue}if(_.tickmode==="sync"){b=[],p=llt(t);continue}var C=wN(l),M=C[0],m=C[1],P=Dh(_.dtick),A=n==="log"&&!(P||_.dtick.charAt(0)==="L"),B=al.tickFirst(_,r);if(T){if(t._tmin=B,B=m:U<=m;U=al.tickIncrement(U,H,f,i)){if(T&&G++,_.rangebreaks&&!f){if(U=h)break}if(b.length>d||U===F)break;F=U;var N={value:U};T?(A&&U!==(U|0)&&(N.simpleLabel=!0),a>1&&G%a&&(N.skipLabel=!0),b.push(N)):(N.minor=!0,v.push(N))}}if(!v||v.length<2)u=!1;else{var W=(v[1].value-v[0].value)*(s?-1:1);zlt(W,t.tickformat)||(u=!1)}if(!u)k=b;else{var re=b.concat(v);o&&b.length&&(re=re.slice(1)),re=re.sort(function(kt,Tt){return kt.value-Tt.value}).filter(function(kt,Tt,St){return Tt===0||kt.value!==St[Tt-1].value});var ae=re.map(function(kt,Tt){return kt.minor===void 0&&!kt.skipLabel?Tt:null}).filter(function(kt){return kt!==null});ae.forEach(function(kt){u.map(function(Tt){var St=kt+Tt;St>=0&&St-1;Ne--){if(b[Ne].drop){b.splice(Ne,1);continue}b[Ne].value=pN(b[Ne].value,t);var ce=t.c2p(b[Ne].value);(Fe?Ve>ce-ye:Veh||Dth&&(St.periodX=h),Dti&&hxP)t/=xP,n=i(10),e.dtick="M"+12*_y(t,n,gP);else if(a>I3)t/=I3,e.dtick="M"+_y(t,1,Cse);else if(a>Fp){if(e.dtick=_y(t,Fp,e._hasDayOfWeekBreaks?[1,2,7,14]:ult),!r){var o=al.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Ou.dateTick0(e.calendar,2):e.tick0=Ou.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>xy?e.dtick=_y(t,xy,Cse):a>a5?e.dtick=_y(t,a5,Lse):a>TP?e.dtick=_y(t,TP,Lse):(n=i(10),e.dtick=_y(t,n,gP))}else if(e.type==="log"){e.tick0=0;var u=Ou.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(u[1]-u[0])<1){var l=1.5*Math.abs((u[1]-u[0])/t);t=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/l,n=i(10),e.dtick="L"+_y(t,n,gP)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):SN(e)?(e.tick0=0,n=1,e.dtick=_y(t,n,flt)):(e.tick0=0,n=i(10),e.dtick=_y(t,n,gP));if(e.dtick===0&&(e.dtick=1),!Dh(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function Ose(e){var t=e.dtick;if(e._tickexponent=0,!Dh(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if(String(t).charAt(0)==="M")i>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=Fp&&i<=10||t>=Fp*15)e._tickround="d";else if(t>=a5&&i<=16||t>=xy)e._tickround="M";else if(t>=TP&&i<=19||t>=a5)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(Dh(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);Dh(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),u=Math.floor(Math.log(s)/Math.LN10+.01),l=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>l&&(MP(e.exponentformat)&&!AN(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}al.tickIncrement=function(e,t,r,n){var i=r?-1:1;if(Dh(t))return Ou.increment(e,i*t);var a=t.charAt(0),o=i*Number(t.substr(1));if(a==="M")return Ou.incrementMonth(e,o,n);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?Bse:Fse,u=e+i*.01,l=Ou.roundUp(Ou.mod(u,1),s,r);return Math.floor(u)+Math.log(w0.round(Math.pow(10,l),1))/Math.LN10}throw"unrecognized dtick "+String(t)};al.tickFirst=function(e,t){var r=e.r2l||Number,n=Ou.simpleMap(e.range,r,void 0,void 0,t),i=n[1]=0&&v<=e._length?b:null};if(a&&Ou.isArrayOrTypedArray(e.ticktext)){var c=Ou.simpleMap(e.range,e.r2l),h=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(l=0;l"+s;else{var l=l5(e),f=e._trueSide||e.side;(!l&&f==="top"||l&&f==="bottom")&&(o+="
")}t.text=o}function hlt(e,t,r,n,i){var a=e.dtick,o=t.x,s=e.tickformat,u=typeof a=="string"&&a.charAt(0);if(i==="never"&&(i=""),n&&u!=="L"&&(a="L3",u="L"),s||u==="L")t.text=s5(Math.pow(10,o),e,i,n);else if(Dh(a)||u==="D"&&(e.minorloglabels==="complete"||Ou.mod(o+.01,1)<.1)){var l;e.minorloglabels==="complete"&&!(Ou.mod(o+.01,1)<.1)&&(l=!0,t.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),p=e.exponentformat;p==="power"||MP(p)&&AN(h)?(t.text=c[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":kb)+d+""),t.fontSize*=1.25):(p==="e"||p==="E")&&d>2?t.text=c[0]+p+(h>0?"+":kb)+d:(t.text=s5(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(u==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Ou.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var x=String(t.text).charAt(0);(x==="0"||x==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function dlt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function plt(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=i[1]===void 0?"":String(i[1]),o=i[0]===void 0?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function vlt(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=s5(t.x,e,i,n)}function mlt(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=ylt(a);if(o[1]>=100)t.text=s5(Ou.deg2rad(t.x),e,i,n);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=kb+t.text)}}}else t.text=s5(t.x,e,i,n)}function ylt(e){function t(s,u){return Math.abs(s-u)<=1e-6}function r(s,u){return t(u,0)?s:r(u,s%u)}function n(s){for(var u=1;!t(Math.round(s*u)/u,s);)u*=10;return u}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}var glt=["f","p","n","\u03BC","m","","k","M","G","T"];function MP(e){return e==="SI"||e==="B"}function AN(e){return e>14||e<-15}function s5(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,u=al.getTickFormat(t),l=t.separatethousands;if(n){var f={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Dh(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};Ose(f),a=(Number(f._tickround)||0)+4,s=f._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,kb);var c=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+p+"":o==="B"&&s===9?e+="B":MP(o)&&(e+=glt[s/3+5])}return i?kb+e:e}al.getTickFormat=function(e){var t;function r(u){return typeof u!="string"?u:Number(u.replace("M",""))*I3}function n(u,l){var f=["L","D"];if(typeof u==typeof l){if(typeof u=="number")return u-l;var c=f.indexOf(u.charAt(0)),h=f.indexOf(l.charAt(0));return c===h?Number(u.replace(/(L|D)/g,""))-Number(l.replace(/(L|D)/g,"")):c-h}else return typeof u=="number"?1:-1}function i(u,l,f){var c=f||function(p){return p},h=l[0],d=l[1];return(!h&&typeof h!="number"||c(h)<=c(u))&&(!d&&typeof d!="number"||c(d)>=c(u))}function a(u,l){var f=l[0]===null,c=l[1]===null,h=n(u,l[0])>=0,d=n(u,l[1])<=0;return(f||h)&&(c||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&i.unshift(i.splice(f,1).shift())}});var s={false:{left:0,right:0}};return Ou.syncOrAsync(i.map(function(u){return function(){if(u){var l=al.getFromId(e,u);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var f=al.drawOne(e,l,r);return l._shiftPusher&&bN(l,l._fullDepth||0,s,!0),l._r=l.range.slice(),l._rl=Ou.simpleMap(l._r,l.r2l),f}}}))};al.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},i=r.overlayingShiftedAx||[],a,o,s;t.setScale();var u=e._fullLayout,l=t._id,f=l.charAt(0),c=al.counterLetter(l),h=u._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||i.indexOf(t._id)!==-1||i.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var p=t.linewidth/2||0;t.ticks==="inside"&&(p+=t.ticklen),bN(t,p,n,!0),bN(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Plt(t,n));var x=h[f+"axislayer"],b=t._mainLinePosition,v=b+=t._shift,k=t._mainMirrorPosition,E=t._vals=al.calcTicks(t),T=[t.mirror,v,k].join("_");for(a=0;a0?Dt.bottom-Tt:0,St))));var at=0,wt=0;if(t._shiftPusher&&(at=Math.max(St,Dt.height>0?Ke==="l"?Tt-Dt.left:Dt.right-Tt:0),t.title.text!==u._dfltTitle[f]&&(wt=(t._titleStandoff||0)+(t._titleScoot||0),Ke==="l"&&(wt+=zse(t))),t._fullDepth=Math.max(at,wt)),t.automargin){Zt={x:0,y:0,r:0,l:0,t:0,b:0};var vt=[0,1],st=typeof t._shift=="number"?t._shift:0;if(f==="x"){if(Ke==="b"?Zt[Ke]=t._depth:(Zt[Ke]=t._depth=Math.max(Dt.width>0?Tt-Dt.top:0,St),vt.reverse()),Dt.width>0){var Ue=Dt.right-(t._offset+t._length);Ue>0&&(Zt.xr=1,Zt.r=Ue);var rt=t._offset-Dt.left;rt>0&&(Zt.xl=0,Zt.l=rt)}}else if(Ke==="l"?(t._depth=Math.max(Dt.height>0?Tt-Dt.left:0,St),Zt[Ke]=t._depth-st):(t._depth=Math.max(Dt.height>0?Dt.right-Tt:0,St),Zt[Ke]=t._depth+st,vt.reverse()),Dt.height>0){var $e=Dt.bottom-(t._offset+t._length);$e>0&&(Zt.yb=0,Zt.b=$e);var zt=t._offset-Dt.top;zt>0&&(Zt.yt=1,Zt.t=zt)}Zt[c]=t.anchor==="free"?t.position:t._anchorAxis.domain[vt[0]],t.title.text!==u._dfltTitle[f]&&(Zt[Ke]+=zse(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Et={x:0,y:0,r:0,l:0,t:0,b:0},Et[kt]=t.linewidth,t.mirror&&t.mirror!==!0&&(Et[kt]+=St),t.mirror===!0||t.mirror==="ticks"?Et[c]=t._anchorAxis.domain[vt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Et[c]=[t._counterDomainMin,t._counterDomainMax][vt[1]]))}it&&(Ae=i5.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(Pse(Zt,t.automargin),Pse(Et,t.automargin)),P3.autoMargin(e,TN(t),Zt),P3.autoMargin(e,Use(t),Et),P3.autoMargin(e,Vse(t),Ae)}),Ou.syncOrAsync(gt)}};function Pse(e,t){if(e){var r=Object.keys(Tse).reduce(function(n,i){return t.indexOf(i)!==-1&&Tse[i].forEach(function(a){n[a]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function _lt(e,t){var r=[],n,i=function(a,o){var s=a.xbnd[o];s!==null&&r.push(Ou.extendFlat({},a,{x:s}))};if(t.length){for(n=0;ne.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!s;if(r){var l=o?-1:1;r=r*l}if(n){var f=e.side,c=s&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*c}return e._id.charAt(0)==="x"?function(h){return z3(i+e._offset+e.l2p(_N(h))+r,a+n)}:function(h){return z3(a+n,i+e._offset+e.l2p(_N(h))+r)}};function _N(e){return e.periodX!==void 0?e.periodX:e.x}function Alt(e){var t=e.ticklabelposition||"",r=e.tickson||"",n=function(p){return t.indexOf(p)!==-1},i=n("top"),a=n("left"),o=n("right"),s=n("bottom"),u=n("inside"),l=r!=="boundaries"&&(s||a||i||o);if(!l&&!u)return[0,0];var f=e.side,c=l?(e.tickwidth||0)/2:0,h=SP,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(c+=d*Cb,h+=(e.linewidth||0)/2),(a||o)&&(c+=(e.linewidth||0)/2,h+=SP),u&&f==="top"&&(h-=d*(1-Cb)),(a||i)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[l?c:0,u?h:0]}al.makeTickPath=function(e,t,r,n){n||(n={});var i=n.minor;if(i&&!e.minor)return"";var a=n.len!==void 0?n.len:i?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};al.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(F){return n.indexOf(F)!==-1},o=a("top"),s=a("left"),u=a("right"),l=a("bottom"),f=i!=="boundaries"&&(l||s||o||u),c=a("inside"),h=n==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&i!=="boundaries",d=0,p=0,x=h?e.ticklen:0;if(c?x*=-1:f&&(x=0),h&&(d+=x,r)){var b=Ou.deg2rad(r);d=x*Math.cos(b)+1,p=x*Math.sin(b)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var v={labelStandoff:d,labelShift:p},k,E,T,L,_=0,C=e.side,M=e._id.charAt(0),m=e.tickangle,P;if(M==="x")P=!c&&C==="bottom"||c&&C==="top",L=P?1:-1,c&&(L*=-1),k=p*L,E=t+d*L,T=P?1:-.2,Math.abs(m)===90&&(c?T+=r5:m===-90&&C==="bottom"?T=Cb:m===90&&C==="top"?T=r5:T=.5,_=r5/2*(m/90)),v.xFn=function(F){return F.dx+k+_*F.fontSize},v.yFn=function(F){return F.dy+E+F.fontSize*T},v.anchorFn=function(F,U){if(f){if(s)return"end";if(u)return"start"}return!Dh(U)||U===0||U===180?"middle":U*L<0!==c?"end":"start"},v.heightFn=function(F,U,G){return U<-60||U>60?-.5*G:e.side==="top"!==c?-G:0};else if(M==="y"){if(P=!c&&C==="left"||c&&C==="right",L=P?1:-1,c&&(L*=-1),k=d,E=p*L,T=0,!c&&Math.abs(m)===90&&(m===-90&&C==="left"||m===90&&C==="right"?T=Cb:T=.5),c){var A=Dh(m)?+m:0;if(A!==0){var B=Ou.deg2rad(A);_=Math.abs(Math.sin(B))*Cb*L,T=0}}v.xFn=function(F){return F.dx+t-(k+F.fontSize*T)*L+_*F.fontSize},v.yFn=function(F){return F.dy+E+F.fontSize*r5},v.anchorFn=function(F,U){return Dh(U)&&Math.abs(U)===90?"middle":P?"end":"start"},v.heightFn=function(F,U,G){return e.side==="right"&&(U*=-1),U<-30?-G:U<30?-.5*G:0}}return v};function CP(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}al.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+n).data(i,CP);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return n5.stroke(w0.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Xv.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),LP(t,[Ise]),a.attr("transform",r.transFn)};al.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?r.vals.filter(function(v){return v.minor}):[],o=t.showgrid?r.vals.filter(function(v){return!v.minor}):[],s=r.counterAxis;if(s&&al.shouldShowZeroLine(e,t,s))for(var u=t.tickmode==="array",l=0;l=0;p--){var x=p?h:d;if(x){var b=x.selectAll("path."+n).data(p?o:a,CP);b.exit().remove(),b.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(v){return n5.stroke(w0.select(this),v.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(v){return Xv.dashStyle(v.minor?t.minor.griddash:t.griddash,v.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(v){return(v.minor?c:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}LP(t,[yN,gN])}};al.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=al.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return elt(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(n5.stroke,t.zerolinecolor||n5.defaultLine).style("stroke-width",Xv.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),LP(t,[mN])};al.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,i=t._id,a=t.zerolinelayer==="above traces",o=r.cls||i+"tick",s=r.vals.filter(function(W){return W.text}),u=r.labelFns,l=r.secondary?0:t.tickangle,f=(t._prevTickAngles||{})[o],c=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],CP),h=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(W){var re=w0.select(this),ae=e._promises.length;re.call(Eb.positionText,u.xFn(W),u.yFn(W)).call(Xv.font,{family:W.font,size:W.fontSize,color:W.fontColor,weight:W.fontWeight,style:W.fontStyle,variant:W.fontVariant,textcase:W.fontTextcase,lineposition:W.fontLineposition,shadow:W.fontShadow}).text(W.text).call(Eb.convertToTspans,e),e._promises[ae]?h.push(e._promises.pop().then(function(){d(re,l)})):d(re,l)}),LP(t,[Ase]),c.exit().remove(),r.repositionOnUpdate&&c.each(function(W){w0.select(this).select("text").call(Eb.positionText,u.xFn(W),u.yFn(W))});function d(W,re){W.each(function(ae){var be=w0.select(this),Pe=be.select(".text-math-group"),Ce=u.anchorFn(ae,re),de=r.transFn.call(be.node(),ae)+(Dh(re)&&+re!=0?" rotate("+re+","+u.xFn(ae)+","+(u.yFn(ae)-ae.fontSize/2)+")":""),te=Eb.lineCount(be),ke=o5*ae.fontSize,Ee=u.heightFn(ae,Dh(re)?+re:0,(te-1)*ke);if(Ee&&(de+=z3(0,Ee)),Pe.empty()){var Me=be.select("text");Me.attr({transform:de,"text-anchor":Ce}),Me.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Ne=Xv.bBox(Pe.node()).width,Fe=Ne*{end:-.5,start:.5}[Ce];Pe.attr("transform",de+z3(Fe,0))}})}t._adjustTickLabelsOverflow=function(){var W=t.ticklabeloverflow;if(!(!W||W==="allow")){var re=W.indexOf("hide")!==-1,ae=t._id.charAt(0)==="x",be=0,Pe=ae?e._fullLayout.width:e._fullLayout.height;if(W.indexOf("domain")!==-1){var Ce=Ou.simpleMap(t.range,t.r2l);be=t.l2p(Ce[0])+t._offset,Pe=t.l2p(Ce[1])+t._offset}var de=Math.min(be,Pe),te=Math.max(be,Pe),ke=t.side,Ee=1/0,Me=-1/0;c.each(function(Ve){var ce=w0.select(this),Ye=ce.select(".text-math-group");if(Ye.empty()){var nt=Xv.bBox(ce.node()),gt=0;ae?(nt.right>te||nt.leftte||nt.top+(t.tickangle?0:Ve.fontSize/4)t["_visibleLabelMin_"+Ce._id]?ce.style("display","none"):te.K==="tick"&&!de&&ce.node().style.display!=="none"&&ce.style("display",null)})})})})},d(c,f+1?f:l);function p(){return h.length&&Promise.all(h)}var x=null;function b(){if(d(c,l),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){x=t.autotickangles[0];var W=0,re=[],ae,be=1;c.each(function(Zt){W=Math.max(W,Zt.fontSize);var Et=t.l2p(Zt.x),Ae=xN(this),at=Xv.bBox(Ae.node());be=Math.max(be,Eb.lineCount(Ae)),re.push({top:0,bottom:10,height:10,left:Et-at.width/2,right:Et+at.width/2+2,width:at.width+2})});var Pe=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Ce=s.length,de=Math.abs((s[Ce-1].x-s[0].x)*t._m)/(Ce-1),te=Pe?de/2:de,ke=Pe?t.ticklen:W*1.25*be,Ee=Math.sqrt(Math.pow(te,2)+Math.pow(ke,2)),Me=te/Ee,Ne=t.autotickangles.map(function(Zt){return Zt*Math.PI/180}),Fe=Ne.find(function(Zt){return Math.abs(Math.cos(Zt))<=Me});Fe===void 0&&(Fe=Ne.reduce(function(Zt,Et){return Math.abs(Math.cos(Zt))j*G&&(B=G,m[M]=P[M]=F[M])}var H=Math.abs(B-A);H-L>0?(H-=L,L*=1+L/H):L=0,t._id.charAt(0)!=="y"&&(L=-L),m[C]=E.p2r(E.r2p(P[C])+_*L),E.autorange==="min"||E.autorange==="max reversed"?(m[0]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0):(E.autorange==="max"||E.autorange==="min reversed")&&(m[1]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[E._name+".range"]=m}var N=Ou.syncOrAsync(v);return N&&N.then&&e._promises.push(N),N};function Tlt(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,CP);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(n5.stroke,t.dividercolor).style("stroke-width",Xv.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}al.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),i=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:n==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),i==="top"||i==="left")return a._offset;if(i==="bottom"||i==="right")return a._offset+a._length};function zse(e){var t=e.title.font.size,r=(e.title.text.match(Eb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(Cb+r*o5):r?t*(r+1)*o5:t}function Slt(e,t){var r=e._fullLayout,n=t._id,i=n.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(Eb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*Cb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(r5+s*o5));else{var u=l5(t);if(t.type==="multicategory")o=t._depth;else{var l=1.5*a;u&&(l=.5*a,t.ticks==="outside"&&(l+=t.ticklen)),o=10+l+(t.linewidth?t.linewidth-1:0)}u||(i==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var f=al.getPxPosition(e,t),c,h,d;i==="x"?(h=t._offset+t._length/2,d=t.side==="top"?f-o:f+o):(d=t._offset+t._length/2,h=t.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(t.type!=="multicategory"){var x=t._selections[t._id+"tick"];if(p={selection:x,side:t.side},x&&x.node()&&x.node().parentNode){var b=Xv.getTranslate(x.node().parentNode);p.offsetLeft=b.x,p.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return t._titleStandoff=o,Wst.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:p,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}al.shouldShowZeroLine=function(e,t,r){var n=Ou.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===EP)&&(Nse(t,0)||!Mlt(e,t,r,n)||Elt(e,t))};al.clipEnds=function(e,t){return t.filter(function(r){return Nse(e,r.x)})};function Nse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=Jst:/%L/.test(t)?e>=Kst:/%[SX]/.test(t)?e>=TP:/%M/.test(t)?e>=a5:/%[HI]/.test(t)?e>=xy:/%p/.test(t)?e>=s_:/%[Aadejuwx]/.test(t)?e>=Fp:/%[UVW]/.test(t)?e>=Zv:/%[Bbm]/.test(t)?e>=AP:/%[q]/.test(t)?e>=wP:/%[Yy]/.test(t)?e>=bP:!0}});var MN=Te((xar,Hse)=>{"use strict";Hse.exports=function(t,r,n){var i,a;if(n){var o=r==="reversed"||r==="min reversed"||r==="max reversed";i=n[o?1:0],a=n[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?i:void 0),u=t("autorangeoptions.maxallowed",i===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),u===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var EN=Te((bar,Wse)=>{"use strict";var Ilt=MN();Wse.exports=function(t,r,n,i){var a=r._template||{},o=r.type||a.type||"-";n("minallowed"),n("maxallowed");var s=n("range");if(!s){var u;!i.noInsiderange&&o!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(r.insiderange=!1,u=void 0),u&&(s=n("range",u)))}var l=r.getAutorangeDflt(s,i),f=n("autorange",l),c;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(f==="reversed"||f===!0)||s[0]!==null&&(f==="min"||f==="max reversed")||s[1]!==null&&(f==="max"||f==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,c=!0),c||(l=r.getAutorangeDflt(s,i),f=n("autorange",l)),f&&(Ilt(n,f,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var Xse=Te((war,jse)=>{var Rlt={left:0,top:0};jse.exports=Dlt;function Dlt(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=Flt(t);return r[0]=n-a.left,r[1]=i-a.top,r}function Flt(e){return e===window||e===document||e===document.body?Rlt:e.getBoundingClientRect()}});var PP=Te((Aar,Zse)=>{"use strict";var Blt=fq();function Olt(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}Zse.exports=Blt&&Olt()});var Kse=Te((Tar,Yse)=>{"use strict";Yse.exports=function(t,r,n,i,a){var o=(t-n)/(i-n),s=o+r/(i-n),u=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?u:a==="right"||a==="top"?s:o<2/3-u?o:s>4/3-u?s:u}});var Qse=Te((Sar,$se)=>{"use strict";var Jse=ei(),qlt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];$se.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=Jse.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=Jse.constrain(Math.floor(r*3),0,2),qlt[r][t]}});var tle=Te((Mar,ele)=>{"use strict";var Nlt=m3(),Ult=RL(),Vlt=BM().getGraphDiv,Glt=IM(),kN=ele.exports={};kN.wrapped=function(e,t,r){e=Vlt(e),e._fullLayout&&Ult.clear(e._fullLayout._uid+Glt.HOVERID),kN.raw(e,t,r)};kN.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&Nlt.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&i&&t.emit("plotly_unhover",{event:r,points:i}))}});var xp=Te((Ear,ale)=>{"use strict";var Hlt=Xse(),CN=hq(),Wlt=PP(),jlt=ei().removeElement,Xlt=dd(),Lb=ale.exports={};Lb.align=Kse();Lb.getCursor=Qse();var ile=tle();Lb.unhover=ile.wrapped;Lb.unhoverRaw=ile.raw;Lb.init=function(t){var r=t.gd,n=1,i=r._context.doubleClickDelay,a=t.element,o,s,u,l,f,c,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=b,Wlt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function p(E,T,L){return Math.abs(E)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var T;c.target===h?T=c:(T={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(L=>{var _=c[L];!T[L]&&typeof _!="function"&&(T[L]=_)})),t.clickFn&&t.clickFn(n,T),d||h.dispatchEvent(new MouseEvent("click",E))}r._dragging=!1,r._dragged=!1}};function nle(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Lb.coverSlip=nle;function rle(e){return Hlt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Am=Te((kar,ole)=>{"use strict";ole.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)}});var ule=Te((Car,lle)=>{"use strict";var LN=Am(),u5="data-savedcursor",sle="!!";lle.exports=function(t,r){var n=t.attr(u5);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var PN=gc(),Zlt=Ih();fle.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Zlt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:PN({editType:"legend"}),grouptitlefont:PN({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:PN({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var IP=Te(zP=>{"use strict";zP.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};zP.isVertical=function(t){return t.orientation!=="h"};zP.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var DN=Te((zar,cle)=>{"use strict";var IN=$l(),Yv=ei(),Ylt=Pf(),Klt=Gf(),Jlt=zN(),$lt=s3(),RN=IP();function Qlt(e,t,r,n){var i=t[e]||{},a=Ylt.newContainer(r,e);function o(H,N){return Yv.coerce(i,a,Jlt,H,N)}var s=Yv.coerceFont(o,"font",r.font);o("bgcolor",r.paper_bgcolor),o("bordercolor");var u=o("visible");if(u){for(var l,f=function(H,N){var W=l._input,re=l;return Yv.coerce(W,re,Klt,H,N)},c=r.font||{},h=Yv.coerceFont(o,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,x="normal",b=(r.shapes||[]).filter(function(H){return H.showlegend}),v=n.concat(b).filter(function(H){return e===(H.legend||"legend")}),k=0;k(e==="legend"?1:0));if(T===!1&&(r[e]=void 0),!(T===!1&&!i.uirevision)&&(o("uirevision",r.uirevision),T!==!1)){o("borderwidth");var L=o("orientation"),_=o("yref"),C=o("xref"),M=L==="h",m=_==="paper",P=C==="paper",A,B,F,U="left";M?(A=0,IN.getComponentMethod("rangeslider","isVisible")(t.xaxis)?m?(B=1.1,F="bottom"):(B=1,F="top"):m?(B=-.1,F="top"):(B=0,F="bottom")):(B=1,F="auto",P?A=1.02:(A=1,U="right")),Yv.coerce(i,a,{x:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:A}},"x"),Yv.coerce(i,a,{y:{valType:"number",editType:"legend",min:m?-2:0,max:m?3:1,dflt:B}},"y"),o("traceorder",x),RN.isGrouped(r[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",U),o("yanchor",F),o("maxheight"),o("valign"),Yv.noneOrAll(i,a,["x","y"]);var G=o("title.text");if(G){o("title.side",M?"left":"top");var j=Yv.extendFlat({},s,{size:Yv.bigFont(s.size)});Yv.coerceFont(o,"title.font",j)}}}}cle.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var R3=$l(),BN=ei(),eut=BN.pushUnique,FN=!0;hle.exports=function(t,r,n){var i=r._fullLayout;if(r._dragged||r._editing)return;var a=i.legend.itemclick,o=i.legend.itemdoubleclick,s=i.legend.groupclick;n===1&&a==="toggle"&&o==="toggleothers"&&FN&&r.data&&r._context.showTips&&BN.notifier(BN._(r,"Double-click on legend to isolate one trace"),"long"),FN=!1;var u;if(n===1?u=a:n===2&&(u=o),!u)return;var l=s==="togglegroup",f=i.hiddenlabels?i.hiddenlabels.slice():[],c=t.data()[0][0];if(c.groupTitle&&c.noClick)return;var h=r._fullData,d=(i.shapes||[]).filter(function(kt){return kt.showlegend}),p=h.concat(d),x=c.trace;x._isShape&&(x=x._fullInput);var b=x.legendgroup,v,k,E,T,L,_,C={},M=[],m=[],P=[];function A(kt,Tt){var St=M.indexOf(kt),Dt=C.visible;return Dt||(Dt=C.visible=[]),M.indexOf(kt)===-1&&(M.push(kt),St=M.length-1),Dt[St]=Tt,St}var B=(i.shapes||[]).map(function(kt){return kt._input}),F=!1;function U(kt,Tt){B[kt].visible=Tt,F=!0}function G(kt,Tt){if(!(c.groupTitle&&!l)){var St=kt._fullInput||kt,Dt=St._isShape,Zt=St.index;Zt===void 0&&(Zt=St._index);var Et=St.visible===!1?!1:Tt;Dt?U(Zt,Et):A(Zt,Et)}}var j=x.legend,H=x._fullInput,N=H&&H._isShape;if(!N&&R3.traceIs(x,"pie-like")){var W=c.label,re=f.indexOf(W);if(u==="toggle")re===-1?f.push(W):f.splice(re,1);else if(u==="toggleothers"){var ae=re!==-1,be=[];for(v=0;v{"use strict";ple.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var yle=Te((Dar,mle)=>{"use strict";var vle=$l(),qN=IP();mle.exports=function(t,r,n){var i=r._inHover,a=qN.isGrouped(r),o=qN.isReversed(r),s={},u=[],l=!1,f={},c=0,h=0,d,p;function x(H,N,W){if(r.visible!==!1&&!(n&&H!==r._id))if(N===""||!qN.isGrouped(r)){var re="~~i"+c;u.push(re),s[re]=[W],c++}else u.indexOf(N)===-1?(u.push(N),l=!0,s[N]=[W]):s[N].push(W)}for(d=0;dP&&(m=P)}C[d][0]._groupMinRank=m,C[d][0]._preGroupSort=d}var A=function(H,N){return H[0]._groupMinRank-N[0]._groupMinRank||H[0]._preGroupSort-N[0]._preGroupSort},B=function(H,N){return H.trace.legendrank-N.trace.legendrank||H._preSort-N._preSort};for(C.forEach(function(H,N){H[0]._preGroupSort=N}),C.sort(A),d=0;d{"use strict";var RP=ei();function gle(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Pb.formatPiePercent=function(t,r){var n=gle((t*100).toPrecision(3));return RP.numSeparate(n,r)+"%"};Pb.formatPieValue=function(t,r){var n=gle(t.toPrecision(10));return RP.numSeparate(n,r)};Pb.getFirstFilled=function(t,r){if(RP.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var tut=Mu(),rut=jl();_le.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?tut.pointStyle(t,n,i,r):rut.fill(t,r.color)}});var D3=Te((Oar,Ale)=>{"use strict";var ble=jl(),wle=l_().castOption,iut=xle();Ale.exports=function(t,r,n,i){var a=n.marker.line,o=wle(a.color,r.pts)||ble.defaultLine,s=wle(a.width,r.pts)||0;t.call(iut,r,n,i).style("stroke-width",s).call(ble.stroke,o)}});var GN=Te((qar,Cle)=>{"use strict";var Bp=Jl(),NN=$l(),bp=ei(),Tle=bp.strTranslate,Kv=Mu(),A0=jl(),UN=yp().extractOpts,DP=lc(),nut=D3(),aut=l_().castOption,out=ON(),Sle=12,Mle=5,zb=2,sut=10,F3=5;Cle.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+out.itemGap*2)/2,u=Tle(s,0),l=function(C,M,m,P){var A;if(C+1)A=C;else if(M&&M.width>0)A=M.width;else return 0;return a?P:Math.min(A,m)};t.each(function(C){var M=Bp.select(this),m=bp.ensureSingle(M,"g","layers");m.style("opacity",C[0].trace.opacity);var P=n.indentation,A=n.valign,B=C[0].lineHeight,F=C[0].height;if(A==="middle"&&P===0||!B||!F)m.attr("transform",null);else{var U={top:1,bottom:-1}[A],G=U*(.5*(B-F+3))||0,j=n.indentation;m.attr("transform",Tle(j,G))}var H=m.selectAll("g.legendfill").data([C]);H.enter().append("g").classed("legendfill",!0);var N=m.selectAll("g.legendlines").data([C]);N.enter().append("g").classed("legendlines",!0);var W=m.selectAll("g.legendsymbols").data([C]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([C]).enter().append("g").classed("legendpoints",!0)}).each(_).each(h).each(p).each(d).each(b).each(T).each(E).each(f).each(c).each(v).each(k);function f(C){var M=Ele(C),m=M.showFill,P=M.showLine,A=M.showGradientLine,B=M.showGradientFill,F=M.anyFill,U=M.anyLine,G=C[0],j=G.trace,H,N,W=UN(j),re=W.colorscale,ae=W.reversescale,be=function(Me){if(Me.size())if(m)Kv.fillGroupStyle(Me,r,!0);else{var Ne="legendfill-"+j.uid;Kv.gradient(Me,r,Ne,VN(ae),re,"fill")}},Pe=function(Me){if(Me.size()){var Ne="legendline-"+j.uid;Kv.lineGroupStyle(Me),Kv.gradient(Me,r,Ne,VN(ae),re,"stroke")}},Ce=DP.hasMarkers(j)||!F?"M5,0":U?"M5,-2":"M5,-3",de=Bp.select(this),te=de.select(".legendfill").selectAll("path").data(m||B?[C]:[]);if(te.enter().append("path").classed("js-fill",!0),te.exit().remove(),te.attr("d",Ce+"h"+o+"v6h-"+o+"z").call(be),P||A){var ke=l(void 0,j.line,sut,Mle);N=bp.minExtend(j,{line:{width:ke}}),H=[bp.minExtend(G,{trace:N})]}var Ee=de.select(".legendlines").selectAll("path").data(P||A?[H]:[]);Ee.enter().append("path").classed("js-line",!0),Ee.exit().remove(),Ee.attr("d",Ce+(A?"l"+o+",0.0001":"h"+o)).call(P?Kv.lineGroupStyle:Pe)}function c(C){var M=Ele(C),m=M.anyFill,P=M.anyLine,A=M.showLine,B=M.showMarker,F=C[0],U=F.trace,G=!B&&!P&&!m&&DP.hasText(U),j,H;function N(te,ke,Ee,Me){var Ne=bp.nestedProperty(U,te).get(),Fe=bp.isArrayOrTypedArray(Ne)&&ke?ke(Ne):Ne;if(a&&Fe&&Me!==void 0&&(Fe=Me),Ee){if(FeEe[1])return Ee[1]}return Fe}function W(te){return F._distinct&&F.index&&te[F.index]?te[F.index]:te[0]}if(B||G||A){var re={},ae={};if(B){re.mc=N("marker.color",W),re.mx=N("marker.symbol",W),re.mo=N("marker.opacity",bp.mean,[.2,1]),re.mlc=N("marker.line.color",W),re.mlw=N("marker.line.width",bp.mean,[0,5],zb),ae.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var be=N("marker.size",bp.mean,[2,16],Sle);re.ms=be,ae.marker.size=be}A&&(ae.line={width:N("line.width",W,[0,10],Mle)}),G&&(re.tx="Aa",re.tp=N("textposition",W),re.ts=10,re.tc=N("textfont.color",W),re.tf=N("textfont.family",W),re.tw=N("textfont.weight",W),re.ty=N("textfont.style",W),re.tv=N("textfont.variant",W),re.tC=N("textfont.textcase",W),re.tE=N("textfont.lineposition",W),re.tS=N("textfont.shadow",W)),j=[bp.minExtend(F,re)],H=bp.minExtend(U,ae),H.selectedpoints=null,H.texttemplate=null}var Pe=Bp.select(this).select("g.legendpoints"),Ce=Pe.selectAll("path.scatterpts").data(B?j:[]);Ce.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),Ce.exit().remove(),Ce.call(Kv.pointStyle,H,r),B&&(j[0].mrc=3);var de=Pe.selectAll("g.pointtext").data(G?j:[]);de.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),de.exit().remove(),de.selectAll("text").call(Kv.textPointStyle,H,r)}function h(C){var M=C[0].trace,m=M.type==="waterfall";if(C[0]._distinct&&m){var P=C[0].trace[C[0].dir].marker;return C[0].mc=P.color,C[0].mlw=P.line.width,C[0].mlc=P.line.color,x(C,this,"waterfall")}var A=[];M.visible&&m&&(A=C[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var B=Bp.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(A);B.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(F){var U=Bp.select(this),G=M[F[0]].marker,j=l(void 0,G.line,F3,zb);U.attr("d",F[1]).style("stroke-width",j+"px").call(A0.fill,G.color),j&&U.call(A0.stroke,G.line.color)})}function d(C){x(C,this)}function p(C){x(C,this,"funnel")}function x(C,M,m){var P=C[0].trace,A=P.marker||{},B=A.line||{},F=A.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",U=m?P.visible&&P.type===m:NN.traceIs(P,"bar"),G=Bp.select(M).select("g.legendpoints").selectAll("path.legend"+m).data(U?[C]:[]);G.enter().append("path").classed("legend"+m,!0).attr("d",F).attr("transform",u),G.exit().remove(),G.each(function(j){var H=Bp.select(this),N=j[0],W=l(N.mlw,A.line,F3,zb);H.style("stroke-width",W+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var ae=UN(A),be=ae.mid;be===void 0&&(be=(ae.max+ae.min)/2),re=Kv.tryColorscale(A,"")(be)}var Pe=re||N.mc||A.color,Ce=A.pattern,de=Kv.getPatternAttr,te=Ce&&(de(Ce.shape,0,"")||de(Ce.path,0,""));if(te){var ke=de(Ce.bgcolor,0,null),Ee=de(Ce.fgcolor,0,null),Me=Ce.fgopacity,Ne=kle(Ce.size,8,10),Fe=kle(Ce.solidity,.5,1),ye="legend-"+P.uid;H.call(Kv.pattern,"legend",r,ye,te,Ne,Fe,re,Ce.fillmode,ke,Ee,Me)}else H.call(A0.fill,Pe);W&&A0.stroke(H,N.mlc||B.color)})}function b(C){var M=C[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendbox").data(M.visible&&NN.traceIs(M,"box-violin")?[C]:[]);m.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),m.exit().remove(),m.each(function(){var P=Bp.select(this);if((M.boxpoints==="all"||M.points==="all")&&A0.opacity(M.fillcolor)===0&&A0.opacity((M.line||{}).color)===0){var A=bp.minExtend(M,{marker:{size:a?Sle:bp.constrain(M.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});m.call(Kv.pointStyle,A,r)}else{var B=l(void 0,M.line,F3,zb);P.style("stroke-width",B+"px").call(A0.fill,M.fillcolor),B&&A0.stroke(P,M.line.color)}})}function v(C){var M=C[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(M.visible&&M.type==="candlestick"?[C,C]:[]);m.enter().append("path").classed("legendcandle",!0).attr("d",function(P,A){return A?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),m.exit().remove(),m.each(function(P,A){var B=Bp.select(this),F=M[A?"increasing":"decreasing"],U=l(void 0,F.line,F3,zb);B.style("stroke-width",U+"px").call(A0.fill,F.fillcolor),U&&A0.stroke(B,F.line.color)})}function k(C){var M=C[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(M.visible&&M.type==="ohlc"?[C,C]:[]);m.enter().append("path").classed("legendohlc",!0).attr("d",function(P,A){return A?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),m.exit().remove(),m.each(function(P,A){var B=Bp.select(this),F=M[A?"increasing":"decreasing"],U=l(void 0,F.line,F3,zb);B.style("fill","none").call(Kv.dashLine,F.line.dash,U),U&&A0.stroke(B,F.line.color)})}function E(C){L(C,this,"pie")}function T(C){L(C,this,"funnelarea")}function L(C,M,m){var P=C[0],A=P.trace,B=m?A.visible&&A.type===m:NN.traceIs(A,m),F=Bp.select(M).select("g.legendpoints").selectAll("path.legend"+m).data(B?[C]:[]);if(F.enter().append("path").classed("legend"+m,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),F.exit().remove(),F.size()){var U=A.marker||{},G=l(aut(U.line.width,P.pts),U.line,F3,zb),j="pieLike",H=bp.minExtend(A,{marker:{line:{width:G}}},j),N=bp.minExtend(P,{trace:H},j);nut(F,N,H,r)}}function _(C){var M=C[0].trace,m,P=[];if(M.visible)switch(M.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],m=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],m=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],m="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],m=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],m=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],m=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],m=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],m=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],m=!1;break}var A=Bp.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);A.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),A.exit().remove(),A.each(function(B,F){var U=Bp.select(this),G=UN(M),j=G.colorscale,H=G.reversescale,N=function(be){if(be.size()){var Pe="legendfill-"+M.uid;Kv.gradient(be,r,Pe,VN(H,m==="radial"),j,"fill")}},W;if(j){if(!m){var ae=j.length;W=F===0?j[H?ae-1:0][1]:F===1?j[H?0:ae-1][1]:j[Math.floor((ae-1)/2)][1]}}else{var re=M.vertexcolor||M.facecolor||M.color;W=bp.isArrayOrTypedArray(re)?re[F]||re[0]:re}U.attr("d",B[0]),W?U.call(A0.fill,W):U.call(N)})}};function VN(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function Ele(e){var t=e[0].trace,r=t.contours,n=DP.hasLines(t),i=DP.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var u=r.coloring;u==="lines"?o=!0:n=u==="none"||u==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(u==="fill"||u==="heatmap")&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function kle(e,t,r){return e&&bp.isArrayOrTypedArray(e)?t:e>r?r:e}});var XN=Te((Nar,qle)=>{"use strict";var Tv=Jl(),Fh=ei(),WN=Cc(),q3=$l(),Lle=m3(),HN=xp(),Bh=Mu(),BP=jl(),Ib=Xf(),Ple=dle(),td=ON(),jN=Qh(),Ble=jN.LINE_SPACING,O3=jN.FROM_TL,zle=jN.FROM_BR,Ile=yle(),lut=GN(),Rle=IP(),B3=1,uut=/^legend[0-9]*$/;qle.exports=function(t,r){if(r)Dle(t,r);else{var n=t._fullLayout,i=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var l=Tv.select(this),f=l.attr("class"),c=f.split(" ")[0];c.match(uut)&&i.indexOf(c)===-1&&l.remove()});for(var o=0;o1)}var p=n.hiddenlabels||[];if(!s&&(!n.showlegend||!u.length))return o.selectAll("."+i).remove(),n._topdefs.select("#"+a).remove(),WN.autoMargin(e,i);var x=Fh.ensureSingle(o,"g",i,function(M){s||M.attr("pointer-events","all")}),b=Fh.ensureSingleById(n._topdefs,"clipPath",a,function(M){M.append("rect")}),v=Fh.ensureSingle(x,"rect","bg",function(M){M.attr("shape-rendering","crispEdges")});v.call(BP.stroke,r.bordercolor).call(BP.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var k=Fh.ensureSingle(x,"g","scrollbox"),E=r.title;r._titleWidth=0,r._titleHeight=0;var T;E.text?(T=Fh.ensureSingle(k,"text",i+"titletext"),T.attr("text-anchor","start").call(Bh.font,E.font).text(E.text),OP(T,k,e,r,B3)):k.selectAll("."+i+"titletext").remove();var L=Fh.ensureSingle(x,"rect","scrollbar",function(M){M.attr(td.scrollBarEnterAttrs).call(BP.fill,td.scrollBarColor)}),_=k.selectAll("g.groups").data(u);_.enter().append("g").attr("class","groups"),_.exit().remove();var C=_.selectAll("g.traces").data(Fh.identity);C.enter().append("g").attr("class","traces"),C.exit().remove(),C.style("opacity",function(M){var m=M[0].trace;return q3.traceIs(m,"pie-like")?p.indexOf(M[0].label)!==-1?.5:1:m.visible==="legendonly"?.5:1}).each(function(){Tv.select(this).call(cut,e,r)}).call(lut,e,r).each(function(){s||Tv.select(this).call(hut,e,i)}),Fh.syncOrAsync([WN.previousPromises,function(){return vut(e,_,C,r)},function(){var M=n._size,m=r.borderwidth,P=r.xref==="paper",A=r.yref==="paper";if(E.text&&fut(T,r,m),!s){var B,F;P?B=M.l+M.w*r.x-O3[qP(r)]*r._width:B=n.width*r.x-O3[qP(r)]*r._width,A?F=M.t+M.h*(1-r.y)-O3[NP(r)]*r._effHeight:F=n.height*(1-r.y)-O3[NP(r)]*r._effHeight;var U=mut(e,i,B,F);if(U)return;if(n.margin.autoexpand){var G=B,j=F;B=P?Fh.constrain(B,0,n.width-r._width):G,F=A?Fh.constrain(F,0,n.height-r._effHeight):j,B!==G&&Fh.log("Constrain "+i+".x to make legend fit inside graph"),F!==j&&Fh.log("Constrain "+i+".y to make legend fit inside graph")}Bh.setTranslate(x,B,F)}if(L.on(".drag",null),x.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var H=r._effHeight;s&&(H=r._height),v.attr({width:r._width-m,height:H-m,x:m/2,y:m/2}),Bh.setTranslate(k,0,0),b.select("rect").attr({width:r._width-2*m,height:H-2*m,x:m,y:m}),Bh.setClipUrl(k,a,e),Bh.setRect(L,0,0,0,0),delete r._scrollY}else{var N=Math.max(td.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),W=r._effHeight-N-2*td.scrollBarMargin,re=r._height-r._effHeight,ae=W/re,be=Math.min(r._scrollY||0,re);v.attr({width:r._width-2*m+td.scrollBarWidth+td.scrollBarMargin,height:r._effHeight-m,x:m/2,y:m/2}),b.select("rect").attr({width:r._width-2*m+td.scrollBarWidth+td.scrollBarMargin,height:r._effHeight-2*m,x:m,y:m+be}),Bh.setClipUrl(k,a,e),Ne(be,N,ae),x.on("wheel",function(){be=Fh.constrain(r._scrollY+Tv.event.deltaY/W*re,0,re),Ne(be,N,ae),be!==0&&be!==re&&Tv.event.preventDefault()});var Pe,Ce,de,te=function(Ye,nt,gt){var Nt=(gt-nt)/ae+Ye;return Fh.constrain(Nt,0,re)},ke=function(Ye,nt,gt){var Nt=(nt-gt)/ae+Ye;return Fh.constrain(Nt,0,re)},Ee=Tv.behavior.drag().on("dragstart",function(){var Ye=Tv.event.sourceEvent;Ye.type==="touchstart"?Pe=Ye.changedTouches[0].clientY:Pe=Ye.clientY,de=be}).on("drag",function(){var Ye=Tv.event.sourceEvent;Ye.buttons===2||Ye.ctrlKey||(Ye.type==="touchmove"?Ce=Ye.changedTouches[0].clientY:Ce=Ye.clientY,be=te(de,Pe,Ce),Ne(be,N,ae))});L.call(Ee);var Me=Tv.behavior.drag().on("dragstart",function(){var Ye=Tv.event.sourceEvent;Ye.type==="touchstart"&&(Pe=Ye.changedTouches[0].clientY,de=be)}).on("drag",function(){var Ye=Tv.event.sourceEvent;Ye.type==="touchmove"&&(Ce=Ye.changedTouches[0].clientY,be=ke(de,Pe,Ce),Ne(be,N,ae))});k.call(Me)}function Ne(Ye,nt,gt){r._scrollY=e._fullLayout[i]._scrollY=Ye,Bh.setTranslate(k,0,-Ye),Bh.setRect(L,r._width,td.scrollBarMargin+Ye*gt,td.scrollBarWidth,nt),b.select("rect").attr("y",m+Ye)}if(e._context.edits.legendPosition){var Fe,ye,Ve,ce;x.classed("cursor-move",!0),HN.init({element:x.node(),gd:e,prepFn:function(Ye){if(Ye.target!==L.node()){var nt=Bh.getTranslate(x);Ve=nt.x,ce=nt.y}},moveFn:function(Ye,nt){if(Ve!==void 0&&ce!==void 0){var gt=Ve+Ye,Nt=ce+nt;Bh.setTranslate(x,gt,Nt),Fe=HN.align(gt,r._width,M.l,M.l+M.w,r.xanchor),ye=HN.align(Nt+r._height,-r._height,M.t+M.h,M.t,r.yanchor)}},doneFn:function(){if(Fe!==void 0&&ye!==void 0){var Ye={};Ye[i+".x"]=Fe,Ye[i+".y"]=ye,q3.call("_guiRelayout",e,Ye)}},clickFn:function(Ye,nt){var gt=o.selectAll("g.traces").filter(function(){var Nt=this.getBoundingClientRect();return nt.clientX>=Nt.left&&nt.clientX<=Nt.right&&nt.clientY>=Nt.top&&nt.clientY<=Nt.bottom});gt.size()>0&&Ole(e,x,gt,Ye,nt)}})}}],e)}}function FP(e,t,r){var n=e[0],i=n.width,a=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||i)}function Ole(e,t,r,n,i){var a=r.data()[0][0].trace,o={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};a._group&&(o.group=a._group),q3.traceIs(a,"pie-like")&&(o.label=r.datum()[0].label);var s=Lle.triggerHandler(e,"plotly_legendclick",o);if(n===1){if(s===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&Ple(r,e,n)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var u=Lle.triggerHandler(e,"plotly_legenddoubleclick",o);u!==!1&&s!==!1&&Ple(r,e,n)}}function cut(e,t,r){var n=UP(r),i=e.data()[0][0],a=i.trace,o=q3.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,u=r._maxNameLength,l,f;i.groupTitle?(l=i.groupTitle.text,f=i.groupTitle.font):(f=r.font,r.entries?l=i.text:(l=o?i.label:a.name,a._meta&&(l=Fh.templateString(l,a._meta))));var c=Fh.ensureSingle(e,"text",n+"text");c.attr("text-anchor","start").call(Bh.font,f).text(s?Fle(l,u):l);var h=r.indentation+r.itemwidth+td.itemGap*2;Ib.positionText(c,h,0),s?c.call(Ib.makeEditable,{gd:t,text:l}).call(OP,e,t,r).on("edit",function(d){this.text(Fle(d,u)).call(OP,e,t,r);var p=i.trace._fullInput||{},x={};return x.name=d,p._isShape?q3.call("_guiRelayout",t,"shapes["+a.index+"].name",x.name):q3.call("_guiRestyle",t,x,a.index)}):OP(c,e,t,r)}function Fle(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function hut(e,t,r){var n=t._context.doubleClickDelay,i,a=1,o=Fh.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(BP.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){i=new Date().getTime(),i-t._legendMouseDownTimen&&(a=Math.max(a-1,1)),Ole(t,s,e,a,Tv.event)}}))}function OP(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Ib.convertToTspans(e,r,function(){dut(t,r,n,i)})}function dut(e,t,r,n){var i=e.data()[0][0];if(!r._inHover&&i&&!i.trace.showlegend){e.remove();return}var a=e.select("g[class*=math-group]"),o=a.node(),s=UP(r);r||(r=t._fullLayout[s]);var u=r.borderwidth,l;n===B3?l=r.title.font:i.groupTitle?l=i.groupTitle.font:l=r.font;var f=l.size*Ble,c,h;if(o){var d=Bh.bBox(o);c=d.height,h=d.width,n===B3?Bh.setTranslate(a,u,u+c*.75):Bh.setTranslate(a,0,c*.25)}else{var p="."+s+(n===B3?"title":"")+"text",x=e.select(p),b=Ib.lineCount(x),v=x.node();if(c=f*b,h=v?Bh.bBox(v).width:0,n===B3)r.title.side==="left"&&(h+=td.itemGap*2),Ib.positionText(x,u+td.titlePad,u+f);else{var k=td.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(k=td.itemGap,h-=r.indentation+r.itemwidth),Ib.positionText(x,k,-f*((b-1)/2-.3))}}n===B3?(r._titleWidth=h,r._titleHeight=c):(i.lineHeight=f,i.height=Math.max(c,16)+3,i.width=h)}function put(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function vut(e,t,r,n){var i=e._fullLayout,a=UP(n);n||(n=i[a]);var o=i._size,s=Rle.isVertical(n),u=Rle.isGrouped(n),l=n.entrywidthmode==="fraction",f=n.borderwidth,c=2*f,h=td.itemGap,d=n.indentation+n.itemwidth+h*2,p=2*(f+h),x=NP(n),b=n.y<0||n.y===0&&x==="top",v=n.y>1||n.y===1&&x==="bottom",k=n.tracegroupgap,E={};let{orientation:T,yref:L}=n,{maxheight:_}=n,C=b||v||T!=="v"||L!=="paper";_||(_=C?.5:1);let M=C?i.height:o.h;n._maxHeight=Math.max(_>1?_:_*M,30);var m=0;n._width=0,n._height=0;var P=put(n);if(s)r.each(function(Ne){var Fe=Ne[0].height;Bh.setTranslate(this,f+P[0],f+P[1]+n._height+Fe/2+h),n._height+=Fe,n._width=Math.max(n._width,Ne[0].width)}),m=d+n._width,n._width+=h+d+c,n._height+=p,u&&(t.each(function(Ne,Fe){Bh.setTranslate(this,0,Fe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var A=qP(n),B=n.x<0||n.x===0&&A==="right",F=n.x>1||n.x===1&&A==="left",U=v||b,G=i.width/2;n._maxWidth=Math.max(B?U&&A==="left"?o.l+o.w:G:F?U&&A==="right"?o.r+o.w:G:o.w,2*d);var j=0,H=0;r.each(function(Ne){var Fe=FP(Ne,n,d);j=Math.max(j,Fe),H+=Fe}),m=null;var N=0;if(u){var W=0,re=0,ae=0;t.each(function(){var Ne=0,Fe=0;Tv.select(this).selectAll("g.traces").each(function(Ve){var ce=FP(Ve,n,d),Ye=Ve[0].height;Bh.setTranslate(this,P[0],P[1]+f+h+Ye/2+Fe),Fe+=Ye,Ne=Math.max(Ne,ce),E[Ve[0].trace.legendgroup]=Ne});var ye=Ne+h;re>0&&ye+f+re>n._maxWidth?(N=Math.max(N,re),re=0,ae+=W+k,W=Fe):W=Math.max(W,Fe),Bh.setTranslate(this,re,ae),re+=ye}),n._width=Math.max(N,re)+f,n._height=ae+W+p}else{var be=r.size(),Pe=H+c+(be-1)*h=n._maxWidth&&(N=Math.max(N,ke),de=0,te+=Ce,n._height+=Ce,Ce=0),Bh.setTranslate(this,P[0]+f+de,P[1]+f+te+Fe/2+h),ke=de+ye+h,de+=Ve,Ce=Math.max(Ce,Fe)}),Pe?(n._width=de+c,n._height=Ce+p):(n._width=Math.max(N,ke)+c,n._height+=Ce+p)}}n._width=Math.ceil(Math.max(n._width+P[0],n._titleWidth+2*(f+td.titlePad))),n._height=Math.ceil(Math.max(n._height+P[1],n._titleHeight+2*(f+td.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Ee=e._context.edits,Me=Ee.legendText||Ee.legendPosition;r.each(function(Ne){var Fe=Tv.select(this).select("."+a+"toggle"),ye=Ne[0].height,Ve=Ne[0].trace.legendgroup,ce=FP(Ne,n,d);u&&Ve!==""&&(ce=E[Ve]);var Ye=Me?d:m||ce;!s&&!l&&(Ye+=h/2),Bh.setRect(Fe,0,-ye/2,Ye,ye)})}function mut(e,t,r,n){var i=e._fullLayout,a=i[t],o=qP(a),s=NP(a),u=a.xref==="paper",l=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var f=a.y<.5?"b":"t",c=a.x<.5?"l":"r",h={r:i.width-r,l:r+a._width,b:i.height-n,t:n+a._effHeight};if(u&&l)return WN.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*O3[o],r:a._width*zle[o],b:a._effHeight*zle[s],t:a._effHeight*O3[s]});u?e._fullLayout._reservedMargin[t][f]=h[f]:l||a.orientation==="v"?e._fullLayout._reservedMargin[t][c]=h[c]:e._fullLayout._reservedMargin[t][f]=h[f]}function qP(e){return Fh.isRightAnchor(e)?"right":Fh.isCenterAnchor(e)?"center":"left"}function NP(e){return Fh.isBottomAnchor(e)?"bottom":Fh.isMiddleAnchor(e)?"middle":"top"}function UP(e){return e._id||"legend"}});var JN=Te(KN=>{"use strict";var Rb=Jl(),Sg=ku(),Nle=cd(),nh=ei(),yut=nh.pushUnique,ZN=nh.strTranslate,gut=nh.strRotate,_ut=m3(),T0=Xf(),xut=ule(),by=Mu(),vd=jl(),VP=xp(),wy=wu(),but=dd().zindexSeparator,U3=$l(),Tm=rv(),Db=IM(),wut=DN(),Aut=XN(),Zle=Db.YANGLE,YN=Math.PI*Zle/180,Tut=1/Math.sin(YN),Sut=Math.cos(YN),Mut=Math.sin(YN),Uc=Db.HOVERARROWSIZE,Cf=Db.HOVERTEXTPAD,Ule={box:!0,ohlc:!0,violin:!0,candlestick:!0},Eut={scatter:!0,scattergl:!0,splom:!0};function Vle(e,t){return e.distance-t.distance}KN.hover=function(t,r,n,i){t=nh.getGraphDiv(t);var a=r.target;nh.throttle(t._fullLayout._uid+Db.HOVERID,Db.HOVERMINTIME,function(){kut(t,r,n,i,a)})};KN.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=Qle(i),o=eue(i),s=t.map(function(b){var v=b._x0||b.x0||b.x||0,k=b._x1||b.x1||b.x||0,E=b._y0||b.y0||b.y||0,T=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var _=Math.min(v,k),C=Math.max(v,k),M=Math.min(E,T),m=Math.max(E,T),P=b.trace;if(U3.traceIs(P,"gl3d")){var A=i._fullLayout[P.scene]._scene.container,B=A.offsetLeft,F=A.offsetTop;_+=B,C+=B,M+=F,m+=F}L.bbox={x0:_+o,x1:C+o,y0:M+a,y1:m+a},r.inOut_bbox&&r.inOut_bbox.push(L.bbox)}else L=!1;return{color:b.color||vd.defaultLine,x0:b.x0||b.x||0,x1:b.x1||b.x||0,y0:b.y0||b.y||0,y1:b.y1||b.y||0,xLabel:b.xLabel,yLabel:b.yLabel,zLabel:b.zLabel,text:b.text,name:b.name,idealAlign:b.idealAlign,borderColor:b.borderColor,fontFamily:b.fontFamily,fontSize:b.fontSize,fontColor:b.fontColor,fontWeight:b.fontWeight,fontStyle:b.fontStyle,fontVariant:b.fontVariant,nameLength:b.nameLength,textAlign:b.textAlign,trace:b.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:b.hovertemplate||!1,hovertemplateLabels:b.hovertemplateLabels||!1,eventData:L}}),u=!1,l=Kle(s,{gd:i,hovermode:"closest",rotateLabels:u,bgColor:r.bgColor||vd.background,container:Rb.select(r.container),outerContainer:r.outerContainer||r.container}),f=l.hoverLabels,c=5,h=0,d=0;f.sort(function(b,v){return b.y0-v.y0}).each(function(b,v){var k=b.y0-b.by/2;k-cC[0]._length||ce<0||ce>M[0]._length)return VP.unhoverRaw(e,t)}if(t.pointerX=Ve+C[0]._offset,t.pointerY=ce+M[0]._offset,"xval"in t?j=Tm.flat(a,t.xval):j=Tm.p2c(C,Ve),"yval"in t?H=Tm.flat(a,t.yval):H=Tm.p2c(M,ce),!Sg(j[0])||!Sg(H[0]))return nh.warn("Fx.hover failed",t,e),VP.unhoverRaw(e,t)}var gt=1/0;function Nt(Ci,nn){for(W=0;WEe&&(U.splice(0,Ee),gt=U[0].distance),c&&F!==0&&U.length===0){ke.distance=F,ke.index=!1;var yt=ae._module.hoverPoints(ke,de,te,"closest",{hoverLayer:s._hoverlayer});if(yt&&(yt=yt.filter(function(Ir){return Ir.spikeDistance<=F})),yt&&yt.length){var Vt,Wt=yt.filter(function(Ir){return Ir.xa.showspikes&&Ir.xa.spikesnap!=="hovered data"});if(Wt.length){var _r=Wt[0];Sg(_r.x0)&&Sg(_r.y0)&&(Vt=Ke(_r),(!Me.vLinePoint||Me.vLinePoint.spikeDistance>Vt.spikeDistance)&&(Me.vLinePoint=Vt))}var Lr=yt.filter(function(Ir){return Ir.ya.showspikes&&Ir.ya.spikesnap!=="hovered data"});if(Lr.length){var Ur=Lr[0];Sg(Ur.x0)&&Sg(Ur.y0)&&(Vt=Ke(Ur),(!Me.hLinePoint||Me.hLinePoint.spikeDistance>Vt.spikeDistance)&&(Me.hLinePoint=Vt))}}}}}Nt();function it(Ci,nn,ii){for(var wi=null,Gi=1/0,Bt,yt=0;yt0&&Math.abs(Ci.distance)rt-1;Ut--)br(U[Ut]);U=Yt,Dt()}var Ie=e._hoverdata,xe=[],Oe=Qle(e),Re=eue(e);for(N=0;N1||U.length>1)||h==="closest"&&Ne&&U.length>1,Fr=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),di=Kle(U,{gd:e,hovermode:h,rotateLabels:Mr,bgColor:Fr,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),Di=di.hoverLabels;if(Tm.isUnifiedHover(h)||(Lut(Di,Mr,s,di.commonLabelBoundingBox),$le(Di,Mr,s._invScaleX,s._invScaleY)),i&&i.tagName){var Ii=U3.getComponentMethod("annotations","hasClickToShow")(e,xe);xut(Rb.select(i),Ii?"pointer":"")}!i||n||!Iut(e,t,Ie)||(Ie&&e.emit("plotly_unhover",{event:t,points:Ie}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:C,yaxes:M,xvals:j,yvals:H}))}function Yle(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Cut=/([\s\S]*)<\/extra>/;function Kle(e,t){var r=t.gd,n=r._fullLayout,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,u=t.outerContainer,l=t.commonLabelOpts||{};if(e.length===0)return[[]];var f=t.fontFamily||Db.HOVERFONT,c=t.fontSize||Db.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,p=t.fontVariant||n.font.variant,x=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,v=t.fontShadow||n.font.shadow,k=e[0],E=k.xa,T=k.ya,L=i.charAt(0),_=L+"Label",C=k[_];if(C===void 0&&E.type==="multicategory")for(var M=0;Mn.width-Re&&(De=n.width-Re),rt.attr("d","M"+(Ie-De)+",0L"+(Ie-De+Uc)+","+Oe+Uc+"H"+Re+"v"+Oe+(Cf*2+Ut.height)+"H"+-Re+"V"+Oe+Uc+"H"+(Ie-De-Uc)+"Z"),Ie=De,W.minX=Ie-Re,W.maxX=Ie+Re,E.side==="top"?(W.minY=xe-(Cf*2+Ut.height),W.maxY=xe-Cf):(W.minY=xe+Cf,W.maxY=xe+(Cf*2+Ut.height))}else{var ct,ge,fe;T.side==="right"?(ct="start",ge=1,fe="",Ie=E._offset+E._length):(ct="end",ge=-1,fe="-",Ie=E._offset),xe=T._offset+(k.y0+k.y1)/2,$e.attr("text-anchor",ct),rt.attr("d","M0,0L"+fe+Uc+","+Uc+"V"+(Cf+Ut.height/2)+"h"+fe+(Cf*2+Ut.width)+"V-"+(Cf+Ut.height/2)+"H"+fe+Uc+"V-"+Uc+"Z"),W.minY=xe-(Cf+Ut.height/2),W.maxY=xe+(Cf+Ut.height/2),T.side==="right"?(W.minX=Ie+Uc,W.maxX=Ie+Uc+(Cf*2+Ut.width)):(W.minX=Ie-Uc-(Cf*2+Ut.width),W.maxX=Ie-Uc);var pe=Ut.height/2,dt=P-Ut.top-pe,It="clip"+n._uid+"commonlabel"+T._id,Pt;if(Ie=0?wt=Zt:Et+gt=0?wt=Et:Ae+gt=0?vt=St:Dt+Nt=0?vt=Dt:at+Nt=0,(Ue.idealAlign==="top"||!Dr)&&Mr?(fe-=dt/2,Ue.anchor="end"):Dr?(fe+=dt/2,Ue.anchor="start"):Ue.anchor="middle",Ue.crossPos=fe;else{if(Ue.pos=fe,Dr=ge+pe/2+Hr<=A,Mr=ge-pe/2-Hr>=0,(Ue.idealAlign==="left"||!Dr)&&Mr)ge-=pe/2,Ue.anchor="end";else if(Dr)ge+=pe/2,Ue.anchor="start";else{Ue.anchor="middle";var Fr=Hr/2,di=ge+Fr-A,Di=ge-Fr;di>0&&(ge-=di),Di<0&&(ge+=-Di)}Ue.crossPos=ge}xe.attr("text-anchor",Ue.anchor),Re&&Oe.attr("text-anchor",Ue.anchor),rt.attr("transform",ZN(ge,fe)+(a?gut(Zle):""))}),{hoverLabels:st,commonLabelBoundingBox:W}}function Gle(e,t,r,n,i,a){var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=nh.templateString(e.name,e.trace._meta)),o=jle(e.name,e.nameLength));var u=r.charAt(0),l=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[u+"Label"]===i?s=e[l+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o);var f=e.hovertemplate||!1;if(f){var c=e.hovertemplateLabels||e;e[u+"Label"]!==i&&(c[u+"other"]=c[u+"Val"],c[u+"otherLabel"]=c[u+"Label"]),s=nh.hovertemplateString(f,c,n._d3locale,e.eventData[0]||{},e.trace._meta),s=s.replace(Cut,function(h,d){return o=jle(d,e.nameLength),""})}return[s,o]}function Lut(e,t,r,n){var i=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,u=e.size(),l=new Array(u),f=0,c=n.minX,h=n.maxX,d=n.minY,p=n.maxY,x=function(j){return j*r._invScaleX},b=function(j){return j*r._invScaleY};e.each(function(j){var H=j[i],N=j[a],W=H._id.charAt(0)==="x",re=H.range;f===0&&re&&re[0]>re[1]!==W&&(s=-1);var ae=0,be=W?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Pe=Jle(j,t),Ce=j.anchor,de=Ce==="end"?-1:1,te,ke;if(Ce==="middle")te=j.crossPos+(W?b(Pe.y-j.by/2):x(j.bx/2+j.tx2width/2)),ke=te+(W?b(j.by):x(j.bx));else if(W)te=j.crossPos+b(Uc+Pe.y)-b(j.by/2-Uc),ke=te+b(j.by);else{var Ee=x(de*Uc+Pe.x),Me=Ee+x(de*j.bx);te=j.crossPos+Math.min(Ee,Me),ke=j.crossPos+Math.max(Ee,Me)}W?d!==void 0&&p!==void 0&&Math.min(ke,p)-Math.max(te,d)>1&&(N.side==="left"?(ae=N._mainLinePosition,be=r.width):be=N._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(ke,h)-Math.max(te,c)>1&&(N.side==="top"?(ae=N._mainLinePosition,be=r.height):be=N._mainLinePosition)}l[f++]=[{datum:j,traceIndex:j.trace.index,dp:0,pos:j.pos,posref:j.posref,size:j.by*(W?Tut:1)/2,pmin:ae,pmax:be}]}),l.sort(function(j,H){return j[0].posref-H[0].posref||s*(H[0].traceIndex-j[0].traceIndex)});var v,k,E,T,L,_,C;function M(j){var H=j[0],N=j[j.length-1];if(k=H.pmin-H.pos-H.dp+H.size,E=N.pos+N.dp+N.size-H.pmax,k>.01){for(L=j.length-1;L>=0;L--)j[L].dp+=k;v=!1}if(!(E<.01)){if(k<-.01){for(L=j.length-1;L>=0;L--)j[L].dp-=E;v=!1}if(v){var W=0;for(T=0;TH.pmax&&W++;for(T=j.length-1;T>=0&&!(W<=0);T--)_=j[T],_.pos>H.pmax-1&&(_.del=!0,W--);for(T=0;T=0;L--)j[L].dp-=E;for(T=j.length-1;T>=0&&!(W<=0);T--)_=j[T],_.pos+_.dp+_.size>H.pmax&&(_.del=!0,W--)}}}for(;!v&&o<=u;){for(o++,v=!0,T=0;T.01){for(L=P.length-1;L>=0;L--)P[L].dp+=k;for(m.push.apply(m,P),l.splice(T+1,1),C=0,L=m.length-1;L>=0;L--)C+=m[L].dp;for(E=C/m.length,L=m.length-1;L>=0;L--)m[L].dp-=E;v=!1}else T++}l.forEach(M)}for(T=l.length-1;T>=0;T--){var F=l[T];for(L=F.length-1;L>=0;L--){var U=F[L],G=U.datum;G.offset=U.dp,G.del=U.del}}}function Jle(e,t){var r=0,n=e.offset;return t&&(n*=-Mut,r=e.offset*Sut),{x:r,y:n}}function Put(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Uc+Cf),n=r+t*(e.txwidth+Cf),i=e.anchor==="middle";return i&&(r-=e.tx2width/2,n+=e.txwidth/2+Cf),{alignShift:t,textShiftX:r,text2ShiftX:n}}function $le(e,t,r,n){var i=function(o){return o*r},a=function(o){return o*n};e.each(function(o){var s=Rb.select(this);if(o.del)return s.remove();var u=s.select("text.nums"),l=o.anchor,f=l==="end"?-1:1,c=Put(o),h=Jle(o,t),d=h.x,p=h.y,x=l==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,v;x?v="M-"+i(o.bx/2+o.tx2width/2)+","+a(p-o.by/2)+"h"+i(o.bx)+"v"+a(o.by)+"h-"+i(o.bx)+"Z":b?v="M0,0L"+i(f*Uc+d)+","+a(Uc+p)+"v"+a(o.by/2-Uc)+"h"+i(f*o.bx)+"v-"+a(o.by)+"H"+i(f*Uc+d)+"V"+a(p-Uc)+"Z":v="M"+i(f*Uc+d)+","+a(p-o.by/2)+"h"+i(f*o.bx)+"v"+a(o.by)+"h"+i(-f*o.bx)+"Z",s.select("path").attr("d",v);var k=d+c.textShiftX,E=p+o.ty0-o.by/2+Cf,T=o.textAlign||"auto";T!=="auto"&&(T==="left"&&l!=="start"?(u.attr("text-anchor","start"),k=x?-o.bx/2-o.tx2width/2+Cf:-o.bx-Cf):T==="right"&&l!=="end"&&(u.attr("text-anchor","end"),k=x?o.bx/2-o.tx2width/2-Cf:o.bx+Cf)),u.call(T0.positionText,i(k),a(E)),o.tx2width&&(s.select("text.name").call(T0.positionText,i(c.text2ShiftX+c.alignShift*Cf+d),a(p+o.ty0-o.by/2+Cf)),s.select("rect").call(by.setRect,i(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),a(p-o.by/2-1),i(o.tx2width),a(o.by+2)))})}function zut(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Sg(h)&&h===0}var s=Array.isArray(r)?function(h,d){var p=nh.castOption(i,r,h);return o(p)?p:nh.extractOption({},n,"",d)}:function(h,d){return nh.extractOption(a,n,h,d)};function u(h,d,p){var x=s(d,p);o(x)&&(e[h]=x)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=nh.constrain(e.x0,0,e.xa._length),e.x1=nh.constrain(e.x1,0,e.xa._length),e.y0=nh.constrain(e.y0,0,e.ya._length),e.y1=nh.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:wy.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:wy.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var l=wy.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+l+" / -"+wy.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+l,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=wy.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+wy.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,t==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function Hle(e,t,r){var n=r.container,i=r.fullLayout,a=i._size,o=r.event,s=!!t.hLinePoint,u=!!t.vLinePoint,l,f;if(n.selectAll(".spikeline").remove(),!!(u||s)){var c=vd.combine(i.plot_bgcolor,i.paper_bgcolor);if(s){var h=t.hLinePoint,d,p;l=h&&h.xa,f=h&&h.ya;var x=f.spikesnap;x==="cursor"?(d=o.pointerX,p=o.pointerY):(d=l._offset+h.x,p=f._offset+h.y);var b=Nle.readability(h.color,c)<1.5?vd.contrast(c):h.color,v=f.spikemode,k=f.spikethickness,E=f.spikecolor||b,T=wy.getPxPosition(e,f),L,_;if(v.indexOf("toaxis")!==-1||v.indexOf("across")!==-1){if(v.indexOf("toaxis")!==-1&&(L=T,_=d),v.indexOf("across")!==-1){var C=f._counterDomainMin,M=f._counterDomainMax;f.anchor==="free"&&(C=Math.min(C,f.position),M=Math.max(M,f.position)),L=a.l+C*a.w,_=a.l+M*a.w}n.insert("line",":first-child").attr({x1:L,x2:_,y1:p,y2:p,"stroke-width":k,stroke:E,"stroke-dasharray":by.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:L,x2:_,y1:p,y2:p,"stroke-width":k+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}v.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:T+(f.side!=="right"?k:-k),cy:p,r:k,fill:E}).classed("spikeline",!0)}if(u){var m=t.vLinePoint,P,A;l=m&&m.xa,f=m&&m.ya;var B=l.spikesnap;B==="cursor"?(P=o.pointerX,A=o.pointerY):(P=l._offset+m.x,A=f._offset+m.y);var F=Nle.readability(m.color,c)<1.5?vd.contrast(c):m.color,U=l.spikemode,G=l.spikethickness,j=l.spikecolor||F,H=wy.getPxPosition(e,l),N,W;if(U.indexOf("toaxis")!==-1||U.indexOf("across")!==-1){if(U.indexOf("toaxis")!==-1&&(N=H,W=A),U.indexOf("across")!==-1){var re=l._counterDomainMin,ae=l._counterDomainMax;l.anchor==="free"&&(re=Math.min(re,l.position),ae=Math.max(ae,l.position)),N=a.t+(1-ae)*a.h,W=a.t+(1-re)*a.h}n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:W,"stroke-width":G,stroke:j,"stroke-dasharray":by.dashStyle(l.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:W,"stroke-width":G+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}U.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:P,cy:H-(l.side!=="top"?G:-G),r:G,fill:j}).classed("spikeline",!0)}}}function Iut(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers)||i.binNumber!==a.binNumber)return!0}return!1}function Wle(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function jle(e,t){return T0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Rut(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;o{"use strict";var Dut=ei(),Fut=jl(),But=rv().isUnifiedHover;tue.exports=function(t,r,n,i){i=i||{};var a=r.legend;function o(s){i.font[s]||(i.font[s]=a?r.legend.font[s]:r.font[s])}r&&But(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=Fut.combine(r.legend.bgcolor,r.paper_bgcolor)),i.bordercolor||(i.bordercolor=r.legend.bordercolor)):i.bgcolor||(i.bgcolor=r.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),n("hoverlabel.showarrow",i.showarrow),Dut.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var iue=Te((Gar,rue)=>{"use strict";var Out=ei(),qut=f5(),Nut=q1();rue.exports=function(t,r){function n(i,a){return Out.coerce(t,r,Nut,i,a)}qut(t,r,n)}});var oue=Te((Har,aue)=>{"use strict";var nue=ei(),Uut=i3(),Vut=f5();aue.exports=function(t,r,n,i){function a(s,u){return nue.coerce(t,r,Uut,s,u)}var o=nue.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),Vut(t,r,a,o)}});var $N=Te((War,sue)=>{"use strict";var Gut=ei(),Hut=q1();sue.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:Gut.coerce(t,r,Hut,i,a)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var fue=Te((jar,uue)=>{"use strict";var lue=ei(),Wut=q1(),jut=$N(),Xut=f5();uue.exports=function(t,r){function n(f,c){return lue.coerce(t,r,Wut,f,c)}var i=jut(t,r);i&&(n("hoverdistance"),n("spikedistance"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=r._has("mapbox"),s=r._has("map"),u=r._has("geo"),l=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s||u)&&l===1||(o||s)&&u&&l===2)&&(r.dragmode="pan"),Xut(t,r,n),lue.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var due=Te((Xar,hue)=>{"use strict";var QN=ei(),cue=$l();hue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(l){return function(f){return QN.coerceHoverinfo({hoverinfo:f},{_module:l._module},n)}}for(var a=0;a{"use strict";var Yut=$l(),Kut=JN().hover;pue.exports=function(t,r,n){var i=Yut.getComponentMethod("annotations","onClick")(t,t._hoverdata);n!==void 0&&Kut(t,r,n,!0);function a(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(i&&i.then?i.then(a):a(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Xc=Te((Yar,gue)=>{"use strict";var Jut=Jl(),GP=ei(),$ut=xp(),c5=rv(),mue=q1(),yue=JN();gue.exports={moduleType:"component",name:"fx",constants:IM(),schema:{layout:mue},attributes:i3(),layoutAttributes:mue,supplyLayoutGlobalDefaults:iue(),supplyDefaults:oue(),supplyLayoutDefaults:fue(),calc:due(),getDistanceFunction:c5.getDistanceFunction,getClosest:c5.getClosest,inbox:c5.inbox,quadrature:c5.quadrature,appendArrayPointValue:c5.appendArrayPointValue,castHoverOption:eft,castHoverinfo:tft,hover:yue.hover,unhover:$ut.unhover,loneHover:yue.loneHover,loneUnhover:Qut,click:vue()};function Qut(e){var t=GP.isD3Selection(e)?e:Jut.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function eft(e,t,r){return GP.castOption(e,t,"hoverlabel."+r)}function tft(e,t,r){function n(i){return GP.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return GP.castOption(e,r,"hoverinfo",n)}});var Sm=Te(Mg=>{"use strict";Mg.selectMode=function(e){return e==="lasso"||e==="select"};Mg.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Mg.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Mg.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Mg.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Mg.selectingOrDrawing=function(e){return Mg.freeMode(e)||Mg.rectMode(e)}});var h5=Te((Jar,_ue)=>{"use strict";_ue.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var HP=Te(($ar,xue)=>{"use strict";xue.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var jP=Te((Qar,bue)=>{"use strict";var WP=32;bue.exports={CIRCLE_SIDES:WP,i000:0,i090:WP/4,i180:WP/2,i270:WP/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var XP=Te((eor,Aue)=>{"use strict";var rft=ei().strTranslate;function wue(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function ift(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function nft(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return wue(e,r[t])}}function aft(e){return rft(e.xaxis._offset,e.yaxis._offset)}Aue.exports={p2r:wue,r2p:ift,axValue:nft,getTransform:aft}});var u_=Te(Eg=>{"use strict";var oft=$M(),Mue=jP(),V3=Mue.CIRCLE_SIDES,e7=Mue.SQRT2,Eue=XP(),Tue=Eue.p2r,Sue=Eue.r2p,sft=[0,3,4,5,6,1,2],lft=[0,3,4,1,2];Eg.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&u{"use strict";var kue=Wc(),Iue=Sm(),uft=Iue.drawMode,fft=Iue.openMode,G3=jP(),Cue=G3.i000,Lue=G3.i090,Pue=G3.i180,zue=G3.i270,cft=G3.cos45,hft=G3.sin45,Rue=XP(),YP=Rue.p2r,f_=Rue.r2p,dft=Q1(),pft=dft.clearOutline,KP=u_(),vft=KP.readPaths,mft=KP.writePaths,yft=KP.ellipseOver,gft=KP.fixDatesForPaths;function _ft(e,t){if(e.length){var r=e[0][0];if(r){var n=t.gd,i=t.isActiveShape,a=t.dragmode,o=(n.layout||{}).shapes||[];if(!uft(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var xft=Sm(),bft=xft.selectMode,wft=Q1(),Aft=wft.clearOutline,t7=u_(),Tft=t7.readPaths,Sft=t7.writePaths,Mft=t7.fixDatesForPaths;Bue.exports=function(t,r){if(t.length){var n=t[0][0];if(n){var i=n.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,u=s.xaxis,l=s.yaxis,f=r.isActiveSelection,c=r.dragmode,h=(a.layout||{}).selections||[];if(!bft(c)&&f!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Oue.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var c_=Te(Fd=>{"use strict";var Fb=p5(),que=ei(),$P=wu();Fd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Fd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Fd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Fd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Fd.extractPathCoords=function(e,t,r){var n=[],i=e.match(Fb.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.substr(1).match(Fb.paramRE);if(!(!s||s.lengthd&&(x="X"),x});return l>d&&(p=p.replace(/[\s,]*X.*/,""),que.log("Ignoring extra params in segment "+u)),f+p})}function v5(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var n7=Te((oor,Gue)=>{"use strict";var kft=ei(),H3=wu(),Nue=Xf(),Uue=Mu(),Cft=u_().readPaths,i7=c_(),Lft=i7.getPathString,Vue=TL(),Pft=Qh().FROM_TL;Gue.exports=function(t,r,n,i){if(i.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var s=H3.getFromId(t,n.xref),u=H3.getFromId(t,n.yref);for(var l in Vue){var f=Vue[l](n,s,u);f!==void 0&&(o[l]=f)}}a=kft.texttemplateStringForShapes(n.label.texttemplate,{},t._fullLayout._d3locale,o)}else a=n.label.text;var c={"data-index":r},h=n.label.font,d={"data-notex":1},p=i.append("g").attr(c).classed("shape-label",!0),x=p.append("text").attr(d).classed("shape-label-text",!0).text(a),b,v,k,E;if(n.path){var T=Lft(t,n),L=Cft(T,t);b=1/0,k=1/0,v=-1/0,E=-1/0;for(var _=0;_=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function Ift(e,t,r,n,i,a,o){var s=i.label.textposition,u=i.label.textangle,l=i.label.padding,f=i.type,c=Math.PI/180*a,h=Math.sin(c),d=Math.cos(c),p=i.label.xanchor,x=i.label.yanchor,b,v,k,E;if(f==="line"){s==="start"?(b=e,v=t):s==="end"?(b=r,v=n):(b=(e+r)/2,v=(t+n)/2),p==="auto"&&(s==="start"?u==="auto"?r>e?p="left":re?p="right":re?p="right":re?p="left":r{"use strict";var Rft=ei(),Dft=Rft.strTranslate,Hue=xp(),Xue=Sm(),Fft=Xue.drawMode,Zue=Xue.selectMode,Yue=$l(),Wue=jl(),ez=jP(),Bft=ez.i000,Oft=ez.i090,qft=ez.i180,Nft=ez.i270,Uft=Q1(),Kue=Uft.clearOutlineControllers,o7=u_(),QP=o7.pointsOnRectangle,a7=o7.pointsOnEllipse,Vft=o7.writePaths,Gft=JP().newShapes,Hft=JP().createShapeObj,Wft=r7(),jft=n7();Jue.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(a7(t[0])||n.hasText)&&s({redrawing:!0})}function s(H){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=Gft(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=Wft(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&Yue.call((H||{}).redrawing?"relayout":"_guiRelayout",a,N)}var u=a._fullLayout,l=u._zoomlayer,f=n.dragmode,c=Fft(f),h=Zue(f);(c||h)&&(a._fullLayout._outlining=!0),Kue(a),r.attr("d",Vft(t));var d,p,x,b,v;if(!i&&(n.isActiveShape||n.isActiveSelection)){v=Xft([],t);var k=l.append("g").attr("class","outline-controllers");P(k),j()}if(c&&n.hasText){var E=l.select(".label-temp"),T=Hft(r,n,n.dragmode);jft(a,"label-temp",T,E)}function L(H){x=+H.srcElement.getAttribute("data-i"),b=+H.srcElement.getAttribute("data-j"),d[x][b].moveFn=_}function _(H,N){if(t.length){var W=v[x][b][1],re=v[x][b][2],ae=t[x],be=ae.length;if(QP(ae)){var Pe=H,Ce=N;if(n.isActiveSelection){var de=jue(ae,b);de[1]===ae[b][1]?Ce=0:Pe=0}for(var te=0;te1&&!(H.length===2&&H[1][0]==="Z")&&(b===0&&(H[0][0]="M"),t[x]=H,o(),s())}}function m(H,N){if(H===2){x=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var W=t[x];!QP(W)&&!a7(W)&&M()}}function P(H){d=[];for(var N=0;N{"use strict";var Yft=Jl(),ife=$l(),$ue=ei(),W3=wu(),Kft=u_().readPaths,Jft=tz(),iz=n7(),nfe=Q1().clearOutlineControllers,s7=jl(),u7=Mu(),$ft=Pf().arrayEditor,Que=xp(),efe=Am(),Bb=p5(),Sv=c_(),l7=Sv.getPathString;sfe.exports={draw:f7,drawOne:afe,eraseActiveShape:tct,drawLabel:iz};function f7(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;io&&Tt>s&&!it.shiftKey?Que.getCursor(St/kt,1-Dt/Tt):"move";efe(t,Zt),ke=Zt.split("-")[0]}}function Fe(it){rz(e)||(u&&(v=ae(r.xanchor)),l&&(k=be(r.yanchor)),r.type==="path"?A=r.path:(d=u?r.x0:ae(r.x0),p=l?r.y0:be(r.y0),x=u?r.x1:ae(r.x1),b=l?r.y1:be(r.y1)),db?(E=p,C="y0",T=b,M="y1"):(E=b,C="y1",T=p,M="y0"),Ne(it),nt(i,r),Nt(t,r,e),te.moveFn=ke==="move"?ce:Ye,te.altKey=it.altKey)}function ye(){rz(e)||(efe(t),gt(i),ofe(t,e,r),ife.call("_guiRelayout",e,a.getUpdateObj()))}function Ve(){rz(e)||gt(i)}function ce(it,Ke){if(r.type==="path"){var kt=function(Dt){return Dt},Tt=kt,St=kt;u?h("xanchor",r.xanchor=Pe(v+it)):(Tt=function(Zt){return Pe(ae(Zt)+it)},F&&F.type==="date"&&(Tt=Sv.encodeDate(Tt))),l?h("yanchor",r.yanchor=Ce(k+Ke)):(St=function(Zt){return Ce(be(Zt)+Ke)},G&&G.type==="date"&&(St=Sv.encodeDate(St))),h("path",r.path=tfe(A,Tt,St))}else u?h("xanchor",r.xanchor=Pe(v+it)):(h("x0",r.x0=Pe(d+it)),h("x1",r.x1=Pe(x+it))),l?h("yanchor",r.yanchor=Ce(k+Ke)):(h("y0",r.y0=Ce(p+Ke)),h("y1",r.y1=Ce(b+Ke)));t.attr("d",l7(e,r)),nt(i,r),iz(e,n,r,B)}function Ye(it,Ke){if(c){var kt=function(hr){return hr},Tt=kt,St=kt;u?h("xanchor",r.xanchor=Pe(v+it)):(Tt=function(yr){return Pe(ae(yr)+it)},F&&F.type==="date"&&(Tt=Sv.encodeDate(Tt))),l?h("yanchor",r.yanchor=Ce(k+Ke)):(St=function(yr){return Ce(be(yr)+Ke)},G&&G.type==="date"&&(St=Sv.encodeDate(St))),h("path",r.path=tfe(A,Tt,St))}else if(f){if(ke==="resize-over-start-point"){var Dt=d+it,Zt=l?p-Ke:p+Ke;h("x0",r.x0=u?Dt:Pe(Dt)),h("y0",r.y0=l?Zt:Ce(Zt))}else if(ke==="resize-over-end-point"){var Et=x+it,Ae=l?b-Ke:b+Ke;h("x1",r.x1=u?Et:Pe(Et)),h("y1",r.y1=l?Ae:Ce(Ae))}}else{var at=function(hr){return ke.indexOf(hr)!==-1},wt=at("n"),vt=at("s"),st=at("w"),Ue=at("e"),rt=wt?E+Ke:E,$e=vt?T+Ke:T,zt=st?L+it:L,Yt=Ue?_+it:_;l&&(wt&&(rt=E-Ke),vt&&($e=T-Ke)),(!l&&$e-rt>s||l&&rt-$e>s)&&(h(C,r[C]=l?rt:Ce(rt)),h(M,r[M]=l?$e:Ce($e))),Yt-zt>o&&(h(m,r[m]=u?zt:Pe(zt)),h(P,r[P]=u?Yt:Pe(Yt)))}t.attr("d",l7(e,r)),nt(i,r),iz(e,n,r,B)}function nt(it,Ke){(u||l)&&kt();function kt(){var Tt=Ke.type!=="path",St=it.selectAll(".visual-cue").data([0]),Dt=1;St.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Dt}).classed("visual-cue",!0);var Zt=ae(u?Ke.xanchor:$ue.midRange(Tt?[Ke.x0,Ke.x1]:Sv.extractPathCoords(Ke.path,Bb.paramIsX))),Et=be(l?Ke.yanchor:$ue.midRange(Tt?[Ke.y0,Ke.y1]:Sv.extractPathCoords(Ke.path,Bb.paramIsY)));if(Zt=Sv.roundPositionForSharpStrokeRendering(Zt,Dt),Et=Sv.roundPositionForSharpStrokeRendering(Et,Dt),u&&l){var Ae="M"+(Zt-1-Dt)+","+(Et-1-Dt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";St.attr("d",Ae)}else if(u){var at="M"+(Zt-1-Dt)+","+(Et-9-Dt)+"v18 h2 v-18 Z";St.attr("d",at)}else{var wt="M"+(Zt-9-Dt)+","+(Et-1-Dt)+"h18 v2 h-18 Z";St.attr("d",wt)}}}function gt(it){it.selectAll(".visual-cue").remove()}function Nt(it,Ke,kt){var Tt=Ke.xref,St=Ke.yref,Dt=W3.getFromId(kt,Tt),Zt=W3.getFromId(kt,St),Et="";Tt!=="paper"&&!Dt.autorange&&(Et+=Tt),St!=="paper"&&!Zt.autorange&&(Et+=St),u7.setClipUrl(it,Et?"clip"+kt._fullLayout._uid+Et:null,kt)}}function tfe(e,t,r){return e.replace(Bb.segmentRE,function(n){var i=0,a=n.charAt(0),o=Bb.paramIsX[a],s=Bb.paramIsY[a],u=Bb.numParams[a],l=n.substr(1).replace(Bb.paramRE,function(f){return i>=u||(o[i]?f=t(f):s[i]&&(f=r(f)),i++),f});return a+l})}function ect(e,t){if(nz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){rfe(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=rfe,f7(e)}}}function rfe(e){if(nz(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(nfe(e),delete e._fullLayout._activeShapeIndex,f7(e))}}function tct(e){if(nz(e)){nfe(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var S0=$l(),lfe=Cc(),ufe=Wc(),Bf=HP(),rct=az().eraseActiveShape,oz=ei(),Sf=oz._,Of=mfe.exports={};Of.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?Sf(e,"Download plot as a PNG"):Sf(e,"Download plot")},icon:Bf.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};oz.notifier(Sf(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){oz.notifier(Sf(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){oz.notifier(Sf(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Of.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Sf(e,"Edit in Chart Studio")},icon:Bf.disk,click:function(e){lfe.sendDataToCloud(e)}};Of.editInChartStudio={name:"editInChartStudio",title:function(e){return Sf(e,"Edit in Chart Studio")},icon:Bf.pencil,click:function(e){lfe.sendDataToCloud(e)}};Of.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Sf(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Bf.zoombox,click:Op};Of.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Sf(e,"Pan")},attr:"dragmode",val:"pan",icon:Bf.pan,click:Op};Of.select2d={name:"select2d",_cat:"select",title:function(e){return Sf(e,"Box Select")},attr:"dragmode",val:"select",icon:Bf.selectbox,click:Op};Of.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Sf(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Bf.lasso,click:Op};Of.drawclosedpath={name:"drawclosedpath",title:function(e){return Sf(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Bf.drawclosedpath,click:Op};Of.drawopenpath={name:"drawopenpath",title:function(e){return Sf(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Bf.drawopenpath,click:Op};Of.drawline={name:"drawline",title:function(e){return Sf(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Bf.drawline,click:Op};Of.drawrect={name:"drawrect",title:function(e){return Sf(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Bf.drawrect,click:Op};Of.drawcircle={name:"drawcircle",title:function(e){return Sf(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Bf.drawcircle,click:Op};Of.eraseshape={name:"eraseshape",title:function(e){return Sf(e,"Erase active shape")},icon:Bf.eraseshape,click:rct};Of.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Sf(e,"Zoom in")},attr:"zoom",val:"in",icon:Bf.zoom_plus,click:Op};Of.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Sf(e,"Zoom out")},attr:"zoom",val:"out",icon:Bf.zoom_minus,click:Op};Of.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Sf(e,"Autoscale")},attr:"zoom",val:"auto",icon:Bf.autoscale,click:Op};Of.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Sf(e,"Reset axes")},attr:"zoom",val:"reset",icon:Bf.home,click:Op};Of.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Sf(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Bf.tooltip_basic,gravity:"ne",click:Op};Of.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Sf(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Bf.tooltip_compare,gravity:"ne",click:Op};function Op(e,t){var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=ufe.list(e,null,!0),u=a._cartesianSpikesEnabled,l,f;if(n==="zoom"){var c=i==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,p,x;for(f=0;f{"use strict";var yfe=d7(),act=Object.keys(yfe),gfe=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],_fe=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(gfe),X3=[],oct=function(e){if(_fe.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();X3.indexOf(t)===-1&&X3.push(t),X3.indexOf(r)===-1&&X3.push(r)}};act.forEach(function(e){oct(yfe[e])});X3.sort();xfe.exports={DRAW_MODES:gfe,backButtons:_fe,foreButtons:X3}});var v7=Te((dor,bfe)=>{"use strict";var hor=p7();bfe.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var Afe=Te((por,wfe)=>{"use strict";var sct=ei(),m5=jl(),lct=Pf(),uct=v7();wfe.exports=function(t,r){var n=t.modebar||{},i=lct.newContainer(r,"modebar");function a(s,u){return sct.coerce(n,i,uct,s,u)}a("orientation"),a("bgcolor",m5.addOpacity(r.paper_bgcolor,.5));var o=m5.contrast(m5.rgb(r.modebar.bgcolor));a("color",m5.addOpacity(o,.3)),a("activecolor",m5.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var Efe=Te((vor,Mfe)=>{"use strict";var m7=Jl(),fct=ku(),lz=ei(),Tfe=HP(),cct=oL().version,hct=new DOMParser;function Sfe(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ay=Sfe.prototype;Ay.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this.element.setAttribute("role","toolbar"),this._uid=i,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=n.modebar,o="#"+i+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),u=this.hasLogo!==r.displaylogo,l=this.locale!==r.locale;if(this.locale=r.locale,(s||u||l)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),lz.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Ay.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var n=t.createGroup();r.forEach(function(i){var a=i.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(i);t.buttonElements.push(o),n.appendChild(o)}),t.element.appendChild(n)})};Ay.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Ay.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(r.setAttribute("data-title",n),r.setAttribute("aria-label",n)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var i=e.val;i!==void 0&&(typeof i=="function"&&(i=i(this.graphInfo)),r.setAttribute("data-val",i));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&m7.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||Tfe.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Ay.createIcon=function(e){var t=fct(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(r,"svg"),n.setAttribute("viewBox",[0,0,e.width,t].join(" ")),n.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):e.ascent!==void 0&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(i)}if(e.svg){var a=hct.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Ay.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var i=n.getAttribute("data-val")||!0,a=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",s=m7.select(n),u=function(c,h){var d=t.modebar,p=c.querySelector(".icon path");p&&(h||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(a===r){var l=!s.classed("active");s.classed("active",l),u(n,l)}}else{var f=a===null?a:lz.nestedProperty(t,a).get();s.classed("active",f===i),u(n,f===i)}})};Ay.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var vct=Wc(),kfe=lc(),y7=$l(),mct=rv().isUnifiedHover,yct=Efe(),uz=d7(),gct=p7().DRAW_MODES,_ct=ei().extendDeep;Cfe.exports=function(t){var r=t._fullLayout,n=t._context,i=r._modeBar;if(!n.displayModeBar&&!n.watermark){i&&(i.destroy(),delete r._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=Sct(a):!n.displayModeBar&&n.watermark?o=[]:o=xct(t),i?i.update(t,o):r._modeBar=yct(t,o)};function xct(e){var t=e._fullLayout,r=e._fullData,n=e._context;function i(N,W){if(typeof W=="string"){if(W.toLowerCase()===N.toLowerCase())return!0}else{var re=W.name,ae=W._cat||W.name;if(re===N||ae===N.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=n.modeBarButtonsToAdd.concat(a.filter(function(N){for(var W=0;W1?(P=["toggleHover"],A=["resetViews"]):c?(m=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],A=["resetGeo"]):f?(P=["hoverClosest3d"],A=["resetCameraDefault3d","resetCameraLastSave3d"]):x?(m=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],A=["resetViewMapbox"]):b?(m=["zoomInMap","zoomOutMap"],P=["toggleHover"],A=["resetViewMap"]):h?P=["hoverClosestPie"]:E?(P=["hoverClosestCartesian","hoverCompareCartesian"],A=["resetViewSankey"]):P=["toggleHover"],l&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Act(r)||L)&&(P=[]),l&&!T&&(m=["zoomIn2d","zoomOut2d","autoScale2d"],A[0]!=="resetViews"&&(A=["resetScale2d"])),f?B=["zoom3d","pan3d","orbitRotation","tableRotation"]:l&&!T||p?B=["zoom2d","pan2d"]:x||b||c?B=["pan2d"]:v&&(B=["zoom2d"]),wct(r)&&B.push("select2d","lasso2d");var F=[],U=function(N){F.indexOf(N)===-1&&P.indexOf(N)!==-1&&F.push(N)};if(Array.isArray(s)){for(var G=[],j=0;j{"use strict";Pfe.exports={moduleType:"component",name:"modebar",layoutAttributes:v7(),supplyLayoutDefaults:Afe(),manage:Lfe()}});var _7=Te((gor,zfe)=>{"use strict";var Mct=Qh().FROM_BL;zfe.exports=function(t,r,n){n===void 0&&(n=Mct[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*r),t.l2r(a+(i[1]-a)*r)],t.setScale()}});var qb=Te(y5=>{"use strict";var Ob=ei(),x7=wm(),Mm=Wc().id2name,Ect=Dd(),Ife=_7(),kct=gy(),Cct=nf().ALMOST_EQUAL,Lct=Qh().FROM_BL;y5.handleDefaults=function(e,t,r){var n=r.axIds,i=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,u,l,f,c,h,d,p;for(s=0;sa?r.substr(a):n.substr(i))+o}function zct(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;oCct*p&&!k)){for(a=0;aB&&reP&&(P=re);var be=(P-m)/(2*A);c/=be,m=u.l2r(m),P=u.l2r(P),u.range=u._input.range=_{"use strict";var cz=Jl(),qp=$l(),Jv=Cc(),M0=ei(),A7=Xf(),T7=h5(),g5=jl(),Z3=Mu(),Bfe=Mb(),Vfe=g7(),_5=wu(),kg=Qh(),Gfe=qb(),Ict=Gfe.enforce,Rct=Gfe.clean,Ofe=wm().doAutoRange,Hfe="start",Dct="middle",Wfe="end",Fct=dd().zindexSeparator;md.layoutStyles=function(e){return M0.syncOrAsync([Jv.doAutoMargin,Oct],e)};function Bct(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function Oct(e){var t=e._fullLayout,r=t._size,n=r.p,i=_5.list(e,"",!0),a,o,s,u,l,f;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(Z3.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),md.drawMainTitle(e),Vfe.manage(e),!t._has("cartesian"))return Jv.previousPromises(e);function c(Fe,ye,Ve){var ce=Fe._lw/2;if(Fe._id.charAt(0)==="x"){if(ye){if(Ve==="top")return ye._offset-n-ce}else return r.t+r.h*(1-(Fe.position||0))+ce%1;return ye._offset+ye._length+n+ce}if(ye){if(Ve==="right")return ye._offset+ye._length+n+ce}else return r.l+r.w*(Fe.position||0)+ce%1;return ye._offset-n-ce}for(a=0;a0){Vct(e,a,l,u),s.attr({x:o,y:a,"text-anchor":n,dy:Ufe(t.yanchor)}).call(A7.positionText,o,a);var f=(t.text.match(A7.BR_TAG_ALL)||[]).length;if(f){var c=kg.LINE_SPACING*f+kg.MID_SHIFT;t.y===0&&(c=-c),s.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",b)})}var h=cz.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),p=d.y+d.height,x=p+Bfe.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:x,"text-anchor":n,dy:Ufe(t.yanchor)}).call(A7.positionText,o,x)}}}};function qct(e,t,r,n,i){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=M0.isTopAnchor(t)?n:n-i,s=r==="b"?a-o:o;return M0.isTopAnchor(t)&&r==="t"||M0.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=Nct(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function Vct(e,t,r,n){var i="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},u={};a.yref==="paper"&&qct(e,a,o,t,n)?s[o]=r:a.yref==="container"&&(u[o]=r,e._fullLayout._reservedMargin[i]=u),Jv.allowAutoMargin(e,i),Jv.autoMargin(e,i,s)}function Gct(e,t){var r=e.title,n=e._size,i=0;switch(t===Hfe?i=r.pad.l:t===Wfe&&(i=-r.pad.r),r.xref){case"paper":return n.l+n.w*r.x+i;case"container":default:return e.width*r.x+i}}function Hct(e,t){var r=e.title,n=e._size,i=0;if(t==="0em"||!t?i=-r.pad.b:t===kg.CAP_SHIFT+"em"&&(i=r.pad.t),r.y==="auto")return n.t/2;switch(r.yref){case"paper":return n.t+n.h-n.h*r.y+i;case"container":default:return e.height-e.height*r.y+i}}function Ufe(e){return e==="top"?kg.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":kg.MID_SHIFT+"em"}function Wct(e){var t=e.title,r=Dct;return M0.isRightAnchor(t)?r=Wfe:M0.isLeftAnchor(t)&&(r=Hfe),r}function jct(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=kg.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=kg.MID_SHIFT+"em"),r}md.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var Xct=u_().readPaths,Zct=tz(),jfe=Q1().clearOutlineControllers,S7=jl(),Xfe=Mu(),Yct=Pf().arrayEditor,Zfe=c_(),Kct=Zfe.getPathString;Kfe.exports={draw:hz,drawOne:Yfe,activateLastSelection:Qct};function hz(e){var t=e._fullLayout;jfe(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i=0;b--){var v=o.append("path").attr(u).style("opacity",b?.1:l).call(S7.stroke,c).call(S7.fill,f).call(Xfe.dashLine,b?"solid":d,b?4+h:h);if(Jct(v,e,n),p){var k=Yct(e.layout,"selections",n);v.style({cursor:"move"});var E={element:v.node(),plotinfo:i,gd:e,editHelpers:k,isActiveSelection:!0},T=Xct(s,e);Zct(T,v,E)}else v.style("pointer-events",b?"all":"none");x[b]=v}var L=x[0],_=x[1];_.node().addEventListener("click",function(){return $ct(e,L)})}}function Jct(e,t,r){var n=r.xref+r.yref;Xfe.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function $ct(e,t){if(dz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){M7(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=M7,hz(e)}}}function Qct(e){if(dz(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=M7,hz(e)}}function M7(e){if(dz(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(jfe(e),delete e._fullLayout._activeSelectionIndex,hz(e))}}});var $fe=Te((wor,Jfe)=>{function eht(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}Jfe.exports=eht});var ece=Te((Aor,Qfe)=>{function tht(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],s=i[0],u=i[1],l=r[0],f=r[1];return(s-a)*(f-o)-(u-o)*(l-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],u=i[1]-n[1],l=s*o+a*u;if(l-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])e!=s-a>e&&(o-f)*(a-c)/(s-c)+f-i>e&&(u=!u),o=f,s=c}return u}};return t}Qfe.exports=tht});var rce=Te((Tor,tce)=>{var rht={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};tce.exports=rht});var nce=Te((Sor,ice)=>{var b5=rce();function iht(e,t,r){function n(p,x){return{id:r?r.segmentId():-1,start:p,end:x,myFill:{above:null,below:null},otherFill:null}}function i(p,x,b){return{id:r?r.segmentId():-1,start:p,end:x,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=b5.create();function o(p,x,b,v,k,E){var T=t.pointsCompare(x,k);return T!==0?T:t.pointsSame(b,E)?0:p!==v?p?1:-1:t.pointAboveOrOnLine(b,v?k:E,v?E:k)?1:-1}function s(p,x){a.insertBefore(p,function(b){var v=o(p.isStart,p.pt,x,b.isStart,b.pt,b.other.pt);return v<0})}function u(p,x){var b=b5.node({isStart:!0,pt:p.start,seg:p,primary:x,other:null,status:null});return s(b,p.end),b}function l(p,x,b){var v=b5.node({isStart:!1,pt:x.end,seg:x,primary:b,other:p,status:null});p.other=v,s(v,p.pt)}function f(p,x){var b=u(p,x);return l(b,p,x),b}function c(p,x){r&&r.segmentChop(p.seg,x),p.other.remove(),p.seg.end=x,p.other.pt=x,s(p.other,p.pt)}function h(p,x){var b=i(x,p.seg.end,p.seg);return c(p,x),f(b,p.primary)}function d(p,x){var b=b5.create();function v(G,j){var H=G.seg.start,N=G.seg.end,W=j.seg.start,re=j.seg.end;return t.pointsCollinear(H,W,re)?t.pointsCollinear(N,W,re)||t.pointAboveOrOnLine(N,W,re)?1:-1:t.pointAboveOrOnLine(H,W,re)?1:-1}function k(G){return b.findTransition(function(j){var H=v(G,j.ev);return H>0})}function E(G,j){var H=G.seg,N=j.seg,W=H.start,re=H.end,ae=N.start,be=N.end;r&&r.checkIntersection(H,N);var Pe=t.linesIntersect(W,re,ae,be);if(Pe===!1){if(!t.pointsCollinear(W,re,ae)||t.pointsSame(W,be)||t.pointsSame(re,ae))return!1;var Ce=t.pointsSame(W,ae),de=t.pointsSame(re,be);if(Ce&&de)return j;var te=!Ce&&t.pointBetween(W,ae,be),ke=!de&&t.pointBetween(re,ae,be);if(Ce)return ke?h(j,re):h(G,be),j;te&&(de||(ke?h(j,re):h(G,be)),h(j,W))}else Pe.alongA===0&&(Pe.alongB===-1?h(G,ae):Pe.alongB===0?h(G,Pe.pt):Pe.alongB===1&&h(G,be)),Pe.alongB===0&&(Pe.alongA===-1?h(j,W):Pe.alongA===0?h(j,Pe.pt):Pe.alongA===1&&h(j,re));return!1}for(var T=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let G=function(){if(C){var j=E(L,C);if(j)return j}return M?E(L,M):!1};var U=G;r&&r.segmentNew(L.seg,L.primary);var _=k(L),C=_.before?_.before.ev:null,M=_.after?_.after.ev:null;r&&r.tempStatus(L.seg,C?C.seg:!1,M?M.seg:!1);var m=G();if(m){if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,P&&(m.seg.myFill.above=!m.seg.myFill.above)}else m.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(m.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,M?L.seg.myFill.below=M.seg.myFill.above:L.seg.myFill.below=p,P?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var A;M?L.primary===M.primary?A=M.seg.otherFill.above:A=M.seg.myFill.above:A=L.primary?x:p,L.seg.otherFill={above:A,below:A}}r&&r.status(L.seg,C?C.seg:!1,M?M.seg:!1),L.other.status=_.insert(b5.node({ev:L}))}else{var B=L.status;if(B===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(B.prev)&&b.exists(B.next)&&E(B.prev.ev,B.next.ev),r&&r.statusRemove(B.ev.seg),B.remove(),!L.primary){var F=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=F}T.push(L.seg)}a.getHead().remove()}return r&&r.done(),T}return e?{addRegion:function(p){for(var x,b=p[p.length-1],v=0;v{function nht(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var u={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},f=u;function c(U,G,j){return f.index=U,f.matches_head=G,f.matches_pt1=j,f===u?(f=l,!1):(f=null,!0)}for(var h=0;h{function w5(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var aht={union:function(e,t){return w5(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return w5(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return w5(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return w5(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return w5(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};sce.exports=aht});var fce=Te((kor,uce)=>{var oht={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(l){var f=l.slice(0,l.length-1);return e.segments({inverted:!1,regions:[f]})}for(var s=o(a[0]),u=1;u{var sht=$fe(),lht=ece(),cce=nce(),uht=oce(),A5=lce(),hce=fce(),E0=!1,T5=lht(),Mv;Mv={buildLog:function(e){return e===!0?E0=sht():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return T5.epsilon(e)},segments:function(e){var t=cce(!0,T5,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=cce(!1,T5,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:A5.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:A5.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:A5.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:A5.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:A5.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:uht(e.segments,T5,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return hce.toPolygon(Mv,e)},polygonToGeoJSON:function(e){return hce.fromPolygon(Mv,T5,e)},union:function(e,t){return S5(e,t,Mv.selectUnion)},intersect:function(e,t){return S5(e,t,Mv.selectIntersect)},difference:function(e,t){return S5(e,t,Mv.selectDifference)},differenceRev:function(e,t){return S5(e,t,Mv.selectDifferenceRev)},xor:function(e,t){return S5(e,t,Mv.selectXor)}};function S5(e,t,r){var n=Mv.segments(e),i=Mv.segments(t),a=Mv.combine(n,i),o=r(a);return Mv.polygon(o)}typeof window=="object"&&(window.PolyBool=Mv);dce.exports=Mv});var mce=Te((Lor,vce)=>{vce.exports=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var u=i-n,l=0,f=u-1;lo!=p>o&&a<(d-c)*(o-h)/(p-h)+c;x&&(s=!s)}return s}});var M5=Te((Por,yce)=>{"use strict";var k7=bL().dot,pz=nf().BADNUM,vz=yce.exports={};vz.tester=function(t){var r=t.slice(),n=r[0][0],i=n,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;si||v===pz||vo||x&&l(p))}function c(p,x){var b=p[0],v=p[1];if(b===pz||bi||v===pz||vo)return!1;var k=r.length,E=r[0][0],T=r[0][1],L=0,_,C,M,m,P;for(_=1;_Math.max(C,E)||v>Math.max(M,T)))if(vs||Math.abs(k7(c,l))>i)return!0;return!1};vz.filter=function(t,r){var n=[t[0]],i=0,a=0;function o(u){t.push(u);var l=n.length,f=i;n.splice(a+1);for(var c=f+1;c1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:n}}});var _ce=Te((zor,gce)=>{"use strict";gce.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Uce=Te((Ior,Nce)=>{"use strict";var xce=pce(),fht=mce(),C5=$l(),cht=Mu().dashStyle,E5=jl(),hht=Xc(),dht=rv().makeEventData,R5=Sm(),pht=R5.freeMode,vht=R5.rectMode,L5=R5.drawMode,z7=R5.openMode,I7=R5.selectMode,bce=c_(),wce=p5(),Ece=tz(),kce=Q1().clearOutline,Cce=u_(),C7=Cce.handleEllipse,mht=Cce.readPaths,yht=JP().newShapes,ght=r7(),_ht=E7().activateLastSelection,yz=ei(),xht=yz.sorterAsc,Lce=M5(),k5=RL(),k0=Wc().getFromId,bht=h5(),wht=x5().redrawReglTraces,gz=_ce(),Ty=gz.MINSELECT,Aht=Lce.filter,R7=Lce.tester,D7=XP(),Ace=D7.p2r,Tht=D7.axValue,Sht=D7.getTransform;function F7(e){return e.subplot!==void 0}function Mht(e,t,r,n,i){var a=!F7(n),o=pht(i),s=vht(i),u=z7(i),l=L5(i),f=I7(i),c=i==="drawline",h=i==="drawcircle",d=c||h,p=n.gd,x=p._fullLayout,b=f&&x.newselection.mode==="immediate"&&a,v=x._zoomlayer,k=n.element.getBoundingClientRect(),E=n.plotinfo,T=Sht(E),L=t-k.left,_=r-k.top;x._calcInverseTransform(p);var C=yz.apply3DTransform(x._invTransform)(L,_);L=C[0],_=C[1];var M=x._invScaleX,m=x._invScaleY,P=L,A=_,B="M"+L+","+_,F=n.xaxes[0],U=n.yaxes[0],G=F._length,j=U._length,H=e.altKey&&!(L5(i)&&u),N,W,re,ae,be,Pe,Ce;zce(e,p,n),o&&(N=Aht([[L,_]],gz.BENDPX));var de=v.selectAll("path.select-outline-"+E.id).data([1]),te=l?x.newshape:x.newselection;l&&(n.hasText=te.label.text||te.label.texttemplate);var ke=l&&!u?te.fillcolor:"rgba(0,0,0,0)",Ee=te.line.color||(a?E5.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");de.enter().append("path").attr("class","select-outline select-outline-"+E.id).style({opacity:l?te.opacity/2:1,"stroke-dasharray":cht(te.line.dash,te.line.width),"stroke-width":te.line.width+"px","shape-rendering":"crispEdges"}).call(E5.stroke,Ee).call(E5.fill,ke).attr("fill-rule","evenodd").classed("cursor-move",!!l).attr("transform",T).attr("d",B+"Z");var Me=v.append("path").attr("class","zoombox-corners").style({fill:E5.background,stroke:E5.defaultLine,"stroke-width":1}).attr("transform",T).attr("d","M0,0Z");if(l&&n.hasText){var Ne=v.select(".label-temp");Ne.empty()&&(Ne=v.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Fe=x._uid+gz.SELECTID,ye=[],Ve=_z(p,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var Ye=F._id,nt=U._id;Bce(p,Ye,nt,Ve);for(var gt=(p.layout||{}).selections||[],Nt=[],it=!1,Ke=0;Ke=0){p._fullLayout._deactivateShape(p);return}if(!l){var gt=x.clickmode;k5.done(Fe).then(function(){if(k5.clear(Fe),Ye===2){for(de.remove(),be=0;be-1&&Pce(nt,p,n.xaxes,n.yaxes,n.subplot,n,de),gt==="event"&&I5(p,void 0);hht.click(p,nt,E.id)}).catch(yz.error)}},n.doneFn=function(){Me.remove(),k5.done(Fe).then(function(){k5.clear(Fe),!b&&ae&&n.selectionDefs&&(ae.subtract=H,n.selectionDefs.push(ae),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,re)),(b||l)&&P5(n,b),n.doneFnCompleted&&n.doneFnCompleted(ye),f&&I5(p,Ce)}).catch(yz.error)}}function Pce(e,t,r,n,i,a,o){var s=t._hoverdata,u=t._fullLayout,l=u.clickmode,f=l.indexOf("event")>-1,c=[],h,d,p,x,b,v,k,E,T,L;if(Pht(s)){zce(e,t,a),h=_z(t,r,n,i);var _=zht(s,h),C=_.pointNumbers.length>0;if(C?Iht(h,_):Rht(h)&&(k=Sce(_))){for(o&&o.remove(),L=0;L=0}function Lht(e){return e._fullLayout._activeSelectionIndex>=0}function P5(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;Cht(i)&&i._fullLayout._deactivateShape(i),Lht(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=L5(r),u=I7(r);if(s||u){var l=o.selectAll(".select-outline-"+n.id);if(l&&i._fullLayout._outlining){var f;s&&(f=yht(l,e)),f&&C5.call("_guiRelayout",i,{shapes:f});var c;u&&!F7(e)&&(c=ght(l,e)),c&&(i._fullLayout._noEmitSelectedAtStart=!0,C5.call("_guiRelayout",i,{selections:c}).then(function(){t&&_ht(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function Tce(e){return e._id}function _z(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(Tce),o=r.map(Tce),s,u,l;for(l=0;l0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function Iht(e,t){var r=[],n,i,a,o;for(o=0;o0&&r.push(n);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(i=t.searchInfo.cd[0].trace,i.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function z5(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var Ye=Mce(e,!0);if(Ye.length){var nt=Ye[0].xref,gt=Ye[0].yref;if(nt&>){var Nt=Oce(Ye),it=qce([k0(e,nt,"x"),k0(e,gt,"y")]);it(ye,Nt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&I5(e,ye),h._reselect=!1}if(!o&&h._deselect){var Ke=h._deselect;s=Ke.xref,u=Ke.yref,Bht(s,u,f)||Bce(e,s,u,n),ce&&(ye.points.length?I5(e,ye):q7(e)),h._deselect=!1}return{eventData:ye,selectionTesters:r}}function Fht(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";Vce.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var D5=Te((Dor,Gce)=>{"use strict";Gce.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Nb=Te((Bor,jce)=>{"use strict";var Hce=N7(),Wce=gc(),xz=dd(),Vht=Pf().templatedArray,For=D5();jce.exports=Vht("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Wce({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Hce.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Hce.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",xz.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",xz.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",xz.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",xz.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Wce({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Sy=Te((Oor,Xce)=>{"use strict";Xce.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Em=Te((qor,Zce)=>{"use strict";Zce.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var Zc=Te((Nor,ehe)=>{"use strict";var Yce=jc().axisHoverFormat,Ght=Nu().texttemplateAttrs,Hht=Nu().hovertemplateAttrs,Kce=nc(),Wht=gc(),jht=Id().dash,Xht=Id().pattern,Zht=Mu(),Yht=Sy(),bz=Su().extendFlat,Kht=Em();function Jce(e){return{valType:"any",dflt:0,editType:"calc"}}function $ce(e){return{valType:"any",editType:"calc"}}function Qce(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}ehe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Jce("x"),yperiod:Jce("y"),xperiod0:$ce("x0"),yperiod0:$ce("y0"),xperiodalignment:Qce("x"),yperiodalignment:Qce("y"),xhoverformat:Yce("x"),yhoverformat:Yce("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Ght({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Hht({},{keys:Yht.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:bz({},jht,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Kht(!0),fillgradient:bz({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Xht,marker:bz({symbol:{valType:"enumerated",values:Zht.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:bz({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},Kce("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Kce("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Wht({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var U7=Te((Vor,ihe)=>{"use strict";var the=Nb(),rhe=Zc().line,Jht=Id().dash,wz=Su().extendFlat,$ht=Sc().overrideAll,Qht=Pf().templatedArray,Uor=D5();ihe.exports=$ht(Qht("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:wz({},the.xref,{}),yref:wz({},the.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:rhe.color,width:wz({},rhe.width,{min:1,dflt:1}),dash:wz({},Jht,{dflt:"dot"})}}),"arraydraw","from-root")});var she=Te((Gor,ohe)=>{"use strict";var nhe=ei(),Az=wu(),edt=Jd(),tdt=U7(),ahe=c_();ohe.exports=function(t,r){edt(t,r,{name:"selections",handleItemDefaults:rdt});for(var n=r.selections,i=0;i{"use strict";lhe.exports=function(t,r,n){n("newselection.mode");var i=n("newselection.line.width");i&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var F5=Te((Wor,hhe)=>{"use strict";var idt=$l(),fhe=ei(),che=Wc();hhe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=idt.subplotsRegistry.cartesian,s=o.idRegex,u=i._subplots,l=u.xaxis,f=u.yaxis,c=u.cartesian,h=i._has("cartesian"),d=0;d{"use strict";var dhe=E7(),B5=Uce();phe.exports={moduleType:"component",name:"selections",layoutAttributes:U7(),supplyLayoutDefaults:she(),supplyDrawNewSelectionDefaults:uhe(),includeBasePlot:F5()("selections"),draw:dhe.draw,drawOne:dhe.drawOne,reselect:B5.reselect,prepSelect:B5.prepSelect,clearOutline:B5.clearOutline,clearSelectionsCache:B5.clearSelectionsCache,selectOnClick:B5.selectOnClick}});var Z7=Te((Xor,Rhe)=>{"use strict";var j7=Jl(),C0=ei(),vhe=C0.numberFormat,ndt=cd(),adt=PP(),Tz=$l(),The=C0.strTranslate,odt=Xf(),mhe=jl(),d_=Mu(),sdt=Xc(),yhe=wu(),ldt=Am(),udt=xp(),She=Sm(),Sz=She.selectingOrDrawing,fdt=She.freeMode,cdt=Qh().FROM_TL,hdt=h5(),ddt=x5().redrawReglTraces,pdt=Cc(),G7=Wc().getFromId,vdt=ah().prepSelect,mdt=ah().clearOutline,ydt=ah().selectOnClick,V7=_7(),X7=dd(),ghe=X7.MINDRAG,iv=X7.MINZOOM,_he=!0;function gdt(e,t,r,n,i,a,o,s){var u=e._fullLayout._zoomlayer,l=o+s==="nsew",f=(o+s).length===1,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G,j,H;r+=t.yaxis._shift;function N(){if(c=t.xaxis,h=t.yaxis,E=c._length,T=h._length,v=c._offset,k=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,o&&s)for(var Ue=t.overlays,rt=0;rt=0){$e._fullLayout._deactivateShape($e);return}var zt=$e._fullLayout.clickmode;if(W7($e),Ue===2&&!f&&Et(),l)zt.indexOf("select")>-1&&ydt(rt,$e,x,b,t.id,ae),zt.indexOf("event")>-1&&sdt.click($e,rt,t.id);else if(Ue===1&&f){var Yt=o?h:c,hr=o==="s"||s==="w"?0:1,yr=Yt._name+".range["+hr+"]",br=_dt(Yt,hr),Ut="left",Ie="middle";if(Yt.fixedrange)return;o?(Ie=o==="n"?"top":"bottom",Yt.side==="right"&&(Ut="right")):s==="e"&&(Ut="right"),$e._context.showAxisRangeEntryBoxes&&j7.select(re).call(odt.makeEditable,{gd:$e,immediate:!0,background:$e._fullLayout.paper_bgcolor,text:String(br),fill:Yt.tickfont?Yt.tickfont.color:"#444",horizontalAlign:Ut,verticalAlign:Ie}).on("edit",function(xe){var Oe=Yt.d2r(xe);Oe!==void 0&&Tz.call("_guiRelayout",$e,yr,Oe)})}}udt.init(ae);var Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve;function ce(Ue,rt,$e){var zt=re.getBoundingClientRect();Ce=rt-zt.left,de=$e-zt.top,e._fullLayout._calcInverseTransform(e);var Yt=C0.apply3DTransform(e._fullLayout._invTransform)(Ce,de);Ce=Yt[0],de=Yt[1],te={l:Ce,r:Ce,w:0,t:de,b:de,h:0},ke=e._hmpixcount?e._hmlumcount/e._hmpixcount:ndt(e._fullLayout.plot_bgcolor).getLuminance(),Ee="M0,0H"+E+"V"+T+"H0V0",Me=!1,Ne="xy",Ve=!1,Fe=khe(u,ke,v,k,Ee),ye=Che(u,v,k)}function Ye(Ue,rt){if(e._transitioningWithDuration)return!1;var $e=Math.max(0,Math.min(E,j*Ue+Ce)),zt=Math.max(0,Math.min(T,H*rt+de)),Yt=Math.abs($e-Ce),hr=Math.abs(zt-de);te.l=Math.min(Ce,$e),te.r=Math.max(Ce,$e),te.t=Math.min(de,zt),te.b=Math.max(de,zt);function yr(){Ne="",te.r=te.l,te.t=te.b,ye.attr("d","M0,0Z")}if(L.isSubplotConstrained)Yt>iv||hr>iv?(Ne="xy",Yt/E>hr/T?(hr=Yt*T/E,de>zt?te.t=de-hr:te.b=de+hr):(Yt=hr*E/T,Ce>$e?te.l=Ce-Yt:te.r=Ce+Yt),ye.attr("d",Mz(te))):yr();else if(_.isSubplotConstrained)if(Yt>iv||hr>iv){Ne="xy";var br=Math.min(te.l/E,(T-te.b)/T),Ut=Math.max(te.r/E,(T-te.t)/T);te.l=br*E,te.r=Ut*E,te.b=(1-br)*T,te.t=(1-Ut)*T,ye.attr("d",Mz(te))}else yr();else!M||hr0){var xe;if(_.isSubplotConstrained||!C&&M.length===1){for(xe=0;xe1&&(yr.maxallowed!==void 0&&P===(yr.range[0]1&&(br.maxallowed!==void 0&&A===(br.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function bdt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function khe(e,t,r,n,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",The(r,n)).attr("d",i+"Z")}function Che(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:mhe.background,stroke:mhe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",The(t,r)).attr("d","M0,0Z")}function Lhe(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),Phe(e,t,i,a)}function Phe(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function W7(e){j7.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function zhe(e){_he&&e.data&&e._context.showTips&&(C0.notifier(C0._(e,"Double-click to zoom back out"),"long"),_he=!1)}function wdt(e,t){return"M"+(e.l-.5)+","+(t-iv-.5)+"h-3v"+(2*iv+1)+"h3ZM"+(e.r+.5)+","+(t-iv-.5)+"h3v"+(2*iv+1)+"h-3Z"}function Adt(e,t){return"M"+(t-iv-.5)+","+(e.t-.5)+"v-3h"+(2*iv+1)+"v3ZM"+(t-iv-.5)+","+(e.b+.5)+"v3h"+(2*iv+1)+"v-3Z"}function Mz(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,iv)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function whe(e,t,r,n,i){for(var a=!1,o={},s={},u,l,f,c,h=(i||{}).xaHash,d=(i||{}).yaHash,p=0;p{"use strict";var Tdt=Jl(),Ez=Xc(),Sdt=xp(),Mdt=Am(),km=Z7().makeDragBox,yd=dd().DRAGGERSIZE;kz.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Tdt.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var n=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),u=o.split("y");return s[0]===u[0]?Number(s[1]||1)-Number(u[1]||1):Number(s[0]||1)-Number(u[0]||1)}return r._plots[a].mainplot?1:-1});n.forEach(function(a){var o=r._plots[a],s=o.xaxis,u=o.yaxis;if(!o.mainplot){var l=km(t,o,s._offset,u._offset,s._length,u._length,"ns","ew");l.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&Ez.hover(t,h,a)},Ez.hover(t,h,a),t._fullLayout._lasthover=l,t._fullLayout._hoversubplot=a},l.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,Sdt.unhover(t,h))},t._context.showAxisDragHandles&&(km(t,o,s._offset-yd,u._offset-yd,yd,yd,"n","w"),km(t,o,s._offset+s._length,u._offset-yd,yd,yd,"n","e"),km(t,o,s._offset-yd,u._offset+u._length,yd,yd,"s","w"),km(t,o,s._offset+s._length,u._offset+u._length,yd,yd,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var f=s._mainLinePosition;s.side==="top"&&(f-=yd),km(t,o,s._offset+s._length*.1,f,s._length*.8,yd,"","ew"),km(t,o,s._offset,f,s._length*.1,yd,"","w"),km(t,o,s._offset+s._length*.9,f,s._length*.1,yd,"","e")}if(a===u._mainSubplot){var c=u._mainLinePosition;u.side!=="right"&&(c-=yd),km(t,o,c,u._offset+u._length*.1,yd,u._length*.8,"ns",""),km(t,o,c,u._offset+u._length*.9,yd,u._length*.1,"s",""),km(t,o,c,u._offset,yd,u._length*.1,"n","")}}});var i=r._hoverlayer.node();i.onmousemove=function(a){a.target=t._fullLayout._lasthover,Ez.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,Ez.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},kz.updateFx(t)}};kz.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Mdt(t._draggers,r)}});var Bhe=Te((Yor,Fhe)=>{"use strict";var Dhe=$l();Fhe.exports=function(t){for(var r=Dhe.layoutArrayContainers,n=Dhe.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var Edt=mg(),K7=xL(),O5=G1(),kdt=PL().sorterAsc,J7=$l();q5.containerArrayMatch=Bhe();var Cdt=q5.isAddVal=function(t){return t==="add"||Edt(t)},Ohe=q5.isRemoveVal=function(t){return t===null||t==="remove"};q5.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=J7.getComponentMethod(o,"supplyLayoutDefaults"),u=J7.getComponentMethod(o,"draw"),l=J7.getComponentMethod(o,"drawOne"),f=i.replot||i.recalc||s===K7||u===K7,c=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&O5.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(Ohe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return O5.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(s(c,h),u(t),!0)}var p=Object.keys(n).map(Number).sort(kdt),x=r.get(),b=x||[],v=a(h,o).get(),k=[],E=-1,T=b.length,L,_,C,M,m,P,A,B;for(L=0;Lb.length-(A?0:1)){O5.warn("index out of range",o,C);continue}if(P!==void 0)m.length>1&&O5.warn("Insertion & removal are incompatible with edits to the same index.",o,C),Ohe(P)?k.push(C):A?(P==="add"&&(P={}),b.splice(C,0,P),v&&v.splice(C,0,{})):O5.warn("Unrecognized full object edit value",o,C,P),E===-1&&(E=C);else for(_=0;_=0;L--)b.splice(k[L],1),v&&v.splice(k[L],1);if(b.length?x||r.set(b):r.set(null),f)return!1;if(s(c,h),l!==K7){var F;if(E===-1)F=p;else{for(T=Math.max(b.length,T),F=[],L=0;L=E));L++)F.push(C);for(L=E;L{"use strict";var Ghe=ku(),Jor=H9(),Hhe=$l(),Ev=ei(),N5=Cc(),Whe=Wc(),jhe=jl(),U5=Whe.cleanId,Ldt=Whe.getFromTrace,$7=Hhe.traceIs;Cm.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ev.log("Clearing previous rejected promises from queue."),e._promises=[]};Cm.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(N5.subplotsRegistry.cartesian||{}).attrRegex,i=(N5.subplotsRegistry.polar||{}).attrRegex,a=(N5.subplotsRegistry.ternary||{}).attrRegex,o=(N5.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),jhe.clean(e),e.template&&e.template.layout&&Cm.cleanLayout(e.template.layout),e};function Y3(e,t){var r=e[t],n=t.charAt(0);r&&r!=="paper"&&(e[t]=U5(r,n,!0))}Cm.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}Cm.hasParent=function(e,t){for(var r=Vhe(t);r;){if(r in e)return!0;r=Vhe(r)}return!1};var Idt=["x","y","z"];Cm.clearAxisTypes=function(e,t,r){for(var n=0;n{"use strict";var zz=Jl(),Rdt=ku(),Ddt=hq(),Bl=ei(),Lc=Bl.nestedProperty,tU=m3(),nv=Cne(),L0=$l(),qz=_3(),Uu=Cc(),Np=wu(),Fdt=EN(),Bdt=Dd(),Q7=Mu(),Odt=jl(),qdt=Y7().initInteractions,Ndt=jv(),Udt=ah().clearOutline,$he=ub().dfltConfig,Lz=qhe(),Oh=Xhe(),ac=x5(),p_=Sc(),Vdt=dd().AX_NAME_PATTERN,eU=0,Zhe=5;function Gdt(e,t,r,n){var i;if(e=Bl.getGraphDiv(e),tU.init(e),Bl.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=tU.triggerHandler(e,"plotly_beforeplot",[t,r,n]);if(o===!1)return Promise.reject();!t&&!r&&!Bl.isPlotDiv(e)&&Bl.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(i)return If.addFrames(e,i)}ede(e,n),r||(r={}),zz.select(e).classed("js-plotly-plot",!0),Q7.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Oh.cleanData(t),u?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||u)&&(e.layout=Oh.cleanLayout(r)),Uu.supplyDefaults(e);var l=e._fullLayout,f=l._has("cartesian");l._replotting=!0,(u||l._shouldCreateBgLayer)&&(hpt(e),l._shouldCreateBgLayer&&delete l._shouldCreateBgLayer),Q7.initGradients(e),Q7.initPatterns(e),u&&Np.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Uu.doCalcdata(e);for(var h=0;h=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function tde(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),Rz(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Rz(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function Zdt(e,t,r){var n,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&f=0&&f0&&typeof M.parts[A]!="string";)A--;var B=M.parts[A],F=M.parts[A-1]+"."+B,U=M.parts.slice(0,A).join("."),G=Lc(e.layout,U).get(),j=Lc(n,U).get(),H=M.get();if(m!==void 0){v[C]=m,k[C]=B==="reverse"?m:Cg(H);var N=qz.getLayoutValObject(n,M.parts);if(N&&N.impliedEdits&&m!==null)for(var W in N.impliedEdits)E(Bl.relativeAttr(C,W),N.impliedEdits[W]);if(["width","height"].indexOf(C)!==-1)if(m){E("autosize",null);var re=C==="height"?"width":"height";E(re,n[re])}else n[C]=e._initialAutoSize[C];else if(C==="autosize")E("width",m?null:n.width),E("height",m?null:n.height);else if(F.match(fde))_(F),Lc(n,U+"._inputRange").set(null);else if(F.match(cde)){_(F),Lc(n,U+"._inputRange").set(null);var ae=Lc(n,U).get();ae._inputDomain&&(ae._input.domain=ae._inputDomain.slice())}else F.match($dt)&&Lc(n,U+"._inputDomain").set(null);if(B==="type"){L=G;var be=j.type==="linear"&&m==="log",Pe=j.type==="log"&&m==="linear";if(be||Pe){if(!L||!L.range)E(U+".autorange",!0);else if(j.autorange)be&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var Ce=L.range[0],de=L.range[1];be?(Ce<=0&&de<=0&&E(U+".autorange",!0),Ce<=0?Ce=de/1e6:de<=0&&(de=Ce/1e6),E(U+".range[0]",Math.log(Ce)/Math.LN10),E(U+".range[1]",Math.log(de)/Math.LN10)):(E(U+".range[0]",Math.pow(10,Ce)),E(U+".range[1]",Math.pow(10,de)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[M.parts[0]]&&M.parts[1]==="radialaxis"&&delete n[M.parts[0]]._subplot.viewInitial["radialaxis.range"],L0.getComponentMethod("annotations","convertCoords")(e,j,m,E),L0.getComponentMethod("images","convertCoords")(e,j,m,E)}else E(U+".autorange",!0),E(U+".range",null);Lc(n,U+"._inputRange").set(null)}else if(B.match(Vdt)){var te=Lc(n,C).get(),ke=(m||{}).type;(!ke||ke==="-")&&(ke="linear"),L0.getComponentMethod("annotations","convertCoords")(e,te,ke,E),L0.getComponentMethod("images","convertCoords")(e,te,ke,E)}var Ee=Lz.containerArrayMatch(C);if(Ee){f=Ee.array,c=Ee.index;var Me=Ee.property,Ne=N||{editType:"calc"};c!==""&&Me===""&&(Lz.isAddVal(m)?k[C]=null:Lz.isRemoveVal(m)?k[C]=(Lc(r,f).get()||[])[c]:Bl.warn("unrecognized full object value",t)),p_.update(b,Ne),l[f]||(l[f]={});var Fe=l[f][c];Fe||(Fe=l[f][c]={}),Fe[Me]=m,delete t[C]}else B==="reverse"?(G.range?G.range.reverse():(E(U+".autorange",!0),G.range=[1,0]),j.autorange?b.calc=!0:b.plot=!0):(C==="dragmode"&&(m===!1&&H!==!1||m!==!1&&H===!1)||n._has("scatter-like")&&n._has("regl")&&C==="dragmode"&&(m==="lasso"||m==="select")&&!(H==="lasso"||H==="select")?b.plot=!0:N?p_.update(b,N):b.calc=!0,M.set(m))}}for(f in l){var ye=Lz.applyContainerArrayChanges(e,a(r,f),l[f],b,a);ye||(b.plot=!0)}for(var Ve in T){L=Np.getFromId(e,Ve);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var Ye in ce)T[Ye]||(Np.getFromId(e,Ye)._constraintShrinkable=!0)}}(dde(e)||t.height||t.width)&&(b.plot=!0);var nt=n.shapes;for(c=0;c1;)if(n.pop(),r=Lc(t,n.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function tpt(e,t){for(var r=0;r[G,e._ev.listeners(G)]);a=If.newPlot(e,t,r,n).then(()=>{for(let[G,j]of U)j.forEach(H=>e.on(G,H));return If.react(e,t,r,n)})}else{e.data=t||[],Oh.cleanData(e.data),e.layout=r||{},Oh.cleanLayout(e.layout),ipt(e.data,e.layout,s,u),Uu.supplyDefaults(e,{skipUpdateCalc:!0});var h=e._fullData,d=e._fullLayout,p=d.datarevision===void 0,x=d.transition,b=opt(e,u,d,p,x),v=b.newDataRevision,k=apt(e,s,h,p,x,v);if(dde(e)&&(b.layoutReplot=!0),k.calc||b.calc){e.calcdata=void 0;for(var E=Object.getOwnPropertyNames(d),T=0;T(f||e.emit("plotly_react",{config:n,data:t,layout:r}),e))}function apt(e,t,r,n,i,a){var o=t.length===r.length;if(!i&&!o)return{fullReplot:!0,calc:!0};var s=p_.traceFlags();s.arrays={},s.nChanges=0,s.nChangesAnim=0;var u,l;function f(d){var p=qz.getTraceValObject(l,d);return!l._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:s,immutable:n,transition:i,newDataRevision:a,gd:e},h={};for(u=0;u=i.length?i[0]:i[l]:i}function s(l){return Array.isArray(a)?l>=a.length?a[0]:a[l]:a}function u(l,f){var c=0;return function(){if(l&&++c===f)return l()}}return new Promise(function(l,f){function c(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var B=n._frameQueue.pop();B.onInterrupt&&B.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(B){if(B.length!==0){for(var F=0;Fn._timeToNext&&p()};B()}var b=0;function v(B){return Array.isArray(i)?b>=i.length?B.transitionOpts=i[b]:B.transitionOpts=i[0]:B.transitionOpts=i,b++,B}var k,E,T=[],L=t==null,_=Array.isArray(t),C=!L&&!_&&Bl.isPlainObject(t);if(C)T.push({type:"object",data:v(Bl.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(k=0;k0&&PP)&&A.push(E);T=A}}T.length>0?h(T):(e.emit("plotly_animated"),l())})}function lpt(e,t,r){if(e=Bl.getGraphDiv(e),t==null)return Promise.resolve();if(!Bl.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,i,a,o,s=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var l=s.length+t.length*2,f=[],c={};for(n=t.length-1;n>=0;n--)if(Bl.isPlainObject(t[n])){var h=t[n].name,d=(u[h]||c[h]||{}).name,p=t[n].name,x=u[d]||c[d];d&&p&&typeof p=="number"&&x&&eUM.index?-1:C.index=0;n--){if(i=f[n].frame,typeof i.name=="number"&&Bl.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;u[i.name="frame "+e._transitionData._counter++];);if(u[i.name]){for(a=0;a=0;r--)n=t[r],a.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:i[n]});var s=Uu.modifyFrames,u=Uu.modifyFrames,l=[e,o],f=[e,a];return nv&&nv.add(e,s,l,u,f),Uu.modifyFrames(e,a)}function fpt(e){e=Bl.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return Uu.cleanPlot([],{},r,t),Uu.purge(e),tU.purge(e),t._container&&t._container.remove(),delete e._context,e}function cpt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!Bl.equalDomRects(r,t._lastBBox)){var n=t._invTransform=Bl.inverseTransformMatrix(Bl.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}function hpt(e){var t=zz.select(e),r=e._fullLayout;if(r._calcInverseTransform=cpt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var n={};zz.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=Bl.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(Ndt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}If.animate=spt;If.addFrames=lpt;If.deleteFrames=upt;If.addTraces=ode;If.deleteTraces=sde;If.extendTraces=nde;If.moveTraces=rU;If.prependTraces=ade;If.newPlot=Xdt;If._doPlot=Gdt;If.purge=fpt;If.react=npt;If.redraw=jdt;If.relayout=V5;If.restyle=Dz;If.setPlotConfig=Hdt;If.update=Bz;If._guiRelayout=nU(V5);If._guiRestyle=nU(Dz);If._guiUpdate=nU(Bz);If._storeDirectGUIEdit=Jdt});var Lg=Te(My=>{"use strict";var dpt=$l();My.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};My.getRedrawFunc=function(e){return function(){dpt.getComponentMethod("colorbar","draw")(e)}};My.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};My.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var pde=window.URL||window.webkitURL;My.createObjectURL=function(e){return pde.createObjectURL(e)};My.revokeObjectURL=function(e){return pde.revokeObjectURL(e)};My.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=ppt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};My.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function ppt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var oU=Jl(),tsr=ei(),vpt=Mu(),mpt=jl(),rsr=jv(),aU=/"/g,H5="TOBESTRIPPED",ypt=new RegExp('("'+H5+")|("+H5+'")',"g");function gpt(e){var t=oU.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":t.html(n).text()});return t.remove(),r}function _pt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}vde.exports=function(t,r,n){var i=t._fullLayout,a=i._paper,o=i._toppaper,s=i.width,u=i.height,l;a.insert("rect",":first-child").call(vpt.setRect,0,0,s,u).call(mpt.fill,i.paper_bgcolor);var f=i._basePlotModules||[];for(l=0;l{"use strict";var xpt=ei(),bpt=pb().EventEmitter,W5=Lg();function wpt(e){var t=e.emitter||new bpt,r=new Promise(function(n,i){var a=window.Image,o=e.svg,s=e.format||"png",u=e.canvas,l=e.scale||1,f=e.width||300,c=e.height||150,h=l*f,d=l*c,p=u.getContext("2d",{willReadFrequently:!0}),x=new a,b,v;s==="svg"||xpt.isSafari()?v=W5.encodeSVG(o):(b=W5.createBlob(o,"svg"),v=W5.createObjectURL(b)),u.width=h,u.height=d,x.onload=function(){var k;switch(b=null,W5.revokeObjectURL(v),s!=="svg"&&p.drawImage(x,0,0,h,d),s){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=v;break;default:var E="Image format is not jpeg, png, svg or webp.";if(i(new Error(E)),!e.promise)return t.emit("error",E)}n(k),e.promise||t.emit("success",k)},x.onerror=function(k){if(b=null,W5.revokeObjectURL(v),i(k),!e.promise)return t.emit("error",k)},x.src=v});return e.promise?r:t}mde.exports=wpt});var lU=Te((asr,_de)=>{"use strict";var yde=ku(),gde=Uz(),Apt=Cc(),Ey=ei(),j5=Lg(),Tpt=Vz(),Spt=Gz(),Mpt=oL().version,sU={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Ept(e,t){t=t||{};var r,n,i,a;Ey.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Ey.getGraphDiv(e),r=Ey.extendDeep([],e.data),n=Ey.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(_){return!(_ in t)||Ey.validate(t[_],sU[_])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Ey.join2(sU.format.values,", "," or ")+".");var s={};function u(_,C){return Ey.coerce(t,s,sU,_,C)}var l=u("format"),f=u("width"),c=u("height"),h=u("scale"),d=u("setBackground"),p=u("imageDataOnly"),x=document.createElement("div");x.style.position="absolute",x.style.left="-5000px",document.body.appendChild(x);var b=Ey.extendFlat({},n);f?b.width=f:t.width===null&&yde(a.width)&&(b.width=a.width),c?b.height=c:t.height===null&&yde(a.height)&&(b.height=a.height);var v=Ey.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),k=j5.getRedrawFunc(x);function E(){return new Promise(function(_){setTimeout(_,j5.getDelay(x._fullLayout))})}function T(){return new Promise(function(_,C){var M=Tpt(x,l,h),m=x._fullLayout.width,P=x._fullLayout.height;function A(){gde.purge(x),document.body.removeChild(x)}if(l==="full-json"){var B=Apt.graphJson(x,!1,"keepdata","object",!0,!0);return B.version=Mpt,B=JSON.stringify(B),A(),_(p?B:j5.encodeJSON(B))}if(A(),l==="svg")return _(p?M:j5.encodeSVG(M));var F=document.createElement("canvas");F.id=Ey.randstr(),Spt({format:l,width:m,height:P,scale:h,canvas:F,svg:M,promise:!0}).then(_).catch(C)})}function L(_){return p?_.replace(j5.IMAGE_URL_PREFIX,""):_}return new Promise(function(_,C){gde.newPlot(x,r,b,v).then(k).then(E).then(T).then(function(M){_(L(M))}).catch(function(M){C(M)})})}_de.exports=Ept});var wde=Te((osr,bde)=>{"use strict";var P0=ei(),kpt=Cc(),Cpt=_3(),Lpt=ub().dfltConfig,Lm=P0.isPlainObject,Vb=Array.isArray,uU=P0.isArrayOrTypedArray;bde.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=Cpt.get(),i=[],a={_context:P0.extendFlat({},Lpt)},o,s;Vb(t)?(a.data=P0.extendDeep([],t),o=t):(a.data=[],o=[],i.push(gd("array","data"))),Lm(r)?(a.layout=P0.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&i.push(gd("object","layout"))),kpt.supplyDefaults(a);for(var u=a._fullData,l=o.length,f=0;fc.length&&n.push(gd("unused",i,l.concat(c.length)));var v=c.length,k=Array.isArray(b);k&&(v=Math.min(v,b.length));var E,T,L,_,C;if(h.dimensions===2)for(T=0;Tc[T].length&&n.push(gd("unused",i,l.concat(T,c[T].length)));var M=c[T].length;for(E=0;E<(k?Math.min(M,b[T].length):M);E++)L=k?b[T][E]:b,_=f[T][E],C=c[T][E],P0.validate(_,L)?C!==_&&C!==+_&&n.push(gd("dynamic",i,l.concat(T,E),_,C)):n.push(gd("value",i,l.concat(T,E),_))}else n.push(gd("array",i,l.concat(T),f[T]));else for(T=0;T{"use strict";var Bpt=ei(),Wz=Lg();function Opt(e,t,r){var n=document.createElement("a"),i="download"in n,a=new Promise(function(o,s){var u,l;if(i)return u=Wz.createBlob(e,r),l=Wz.createObjectURL(u),n.href=l,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),Wz.revokeObjectURL(l),u=null,o(t);if(Bpt.isSafari()){var f=r==="svg"?",":";base64,";return Wz.octetStream(f+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}Ade.exports=Opt});var fU=Te((usr,Mde)=>{"use strict";var Sde=ei(),qpt=lU(),Npt=Tde(),lsr=Lg();function Upt(e,t){var r;return Sde.isPlainObject(e)||(r=Sde.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(n,i){r&&r._snapshotInProgress&&i(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var a=qpt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),Npt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}Mde.exports=Upt});var Pde=Te(cU=>{"use strict";var kv=ei(),Cv=kv.isPlainObject,Ede=_3(),kde=Cc(),Vpt=Gf(),Cde=Pf(),Lde=ub().dfltConfig;cU.makeTemplate=function(e){e=kv.isPlainObject(e)?e:kv.getGraphDiv(e),e=kv.extendDeep({_context:Lde},{data:e.data,layout:e.layout}),kde.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var n={data:{},layout:{}};t.forEach(function(d){var p={};X5(d,p,Hpt.bind(null,d));var x=kv.coerce(d,{},Vpt,"type"),b=n.data[x];b||(b=n.data[x]=[]),b.push(p)}),X5(r,n.layout,Gpt.bind(null,r)),delete n.layout.template;var i=r.template;if(Cv(i)){var a=i.layout,o,s,u,l,f,c;Cv(a)&&jz(a,n.layout);var h=i.data;if(Cv(h)){for(s in n.data)if(u=h[s],Array.isArray(u)){for(f=n.data[s],c=f.length,l=u.length,o=0;ov?o.push({code:"unused",traceType:d,templateCount:b,dataCount:v}):v>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:v})}}function k(E,T){for(var L in E)if(L.charAt(0)!=="_"){var _=E[L],C=z0(E,L,T);Cv(_)?(Array.isArray(E)&&_._template===!1&&_.templateitemname&&o.push({code:"missing",path:C,templateitemname:_.templateitemname}),k(_,C)):Array.isArray(_)&&Wpt(_)&&k(_,C)}}if(k({data:u,layout:s},""),o.length)return o.map(jpt)};function Wpt(e){for(var t=0;t{"use strict";var rd=Uz();Vc._doPlot=rd._doPlot;Vc.newPlot=rd.newPlot;Vc.restyle=rd.restyle;Vc.relayout=rd.relayout;Vc.redraw=rd.redraw;Vc.update=rd.update;Vc._guiRestyle=rd._guiRestyle;Vc._guiRelayout=rd._guiRelayout;Vc._guiUpdate=rd._guiUpdate;Vc._storeDirectGUIEdit=rd._storeDirectGUIEdit;Vc.react=rd.react;Vc.extendTraces=rd.extendTraces;Vc.prependTraces=rd.prependTraces;Vc.addTraces=rd.addTraces;Vc.deleteTraces=rd.deleteTraces;Vc.moveTraces=rd.moveTraces;Vc.purge=rd.purge;Vc.addFrames=rd.addFrames;Vc.deleteFrames=rd.deleteFrames;Vc.animate=rd.animate;Vc.setPlotConfig=rd.setPlotConfig;var Xpt=BM().getGraphDiv,Zpt=az().eraseActiveShape;Vc.deleteActiveShape=function(e){return Zpt(Xpt(e))};Vc.toImage=lU();Vc.validate=wde();Vc.downloadImage=fU();var zde=Pde();Vc.makeTemplate=zde.makeTemplate;Vc.validateTemplate=zde.validateTemplate});var K3=Te((hsr,Rde)=>{"use strict";var hU=ei(),Ypt=$l();Rde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,u=Ypt.getComponentMethod("calendars","handleTraceDefaults");if(u(t,r,["x","y"],n),a){var l=hU.minRowLength(a);o?s=Math.min(l,hU.minRowLength(o)):(s=l,i("y0"),i("dy"))}else{if(!o)return 0;s=hU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Pm=Te((dsr,Bde)=>{"use strict";var Dde=ei().dateTick0,Kpt=nf(),Jpt=Kpt.ONEWEEK;function Fde(e,t){return e%Jpt===0?Dde(t,1):Dde(t,0)}Bde.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Fde(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Fde(s,r.ycalendar)),i("yperiodalignment"))}}});var Nde=Te((psr,qde)=>{"use strict";var Ode=["orientation","groupnorm","stackgaps"];qde.exports=function(t,r,n,i){var a=n._scatterStackOpts,o=i("stackgroup");if(o){var s=r.xaxis+r.yaxis,u=a[s];u||(u=a[s]={});var l=u[o],f=!1;l?l.traces.push(r):(l=u[o]={traceIndices:[],traces:[r]},f=!0);for(var c={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var Ude=jl(),Vde=yp().hasColorscale,Gde=ed(),$pt=lc();Hde.exports=function(t,r,n,i,a,o){var s=$pt.isBubble(t),u=(t.line||{}).color,l;if(o=o||{},u&&(n=u),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",n),Vde(t,"marker")&&Gde(t,r,i,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(u&&!Array.isArray(u)&&r.marker.color!==u?l=u:s?l=Ude.background:l=Ude.defaultLine,a("marker.line.color",l),Vde(t,"marker.line")&&Gde(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0)),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var f=a("marker.gradient.type");f!=="none"&&a("marker.gradient.color")}}});var I0=Te((msr,Wde)=>{"use strict";var Qpt=ei().isArrayOrTypedArray,evt=yp().hasColorscale,tvt=ed();Wde.exports=function(t,r,n,i,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",n),evt(t,"line"))tvt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var u=(Qpt(s)?!1:s)||n;a("line.color",u)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var J3=Te((ysr,jde)=>{"use strict";jde.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var R0=Te((gsr,Xde)=>{"use strict";var rvt=ei();Xde.exports=function(e,t,r,n,i){i=i||{},n("textposition"),rvt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var zm=Te((_sr,Yde)=>{"use strict";var Zz=jl(),Zde=ei().isArrayOrTypedArray;function ivt(e){for(var t=Zz.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var Kde=ei(),nvt=$l(),avt=Zc(),ovt=Sy(),$3=lc(),svt=K3(),lvt=Pm(),uvt=Nde(),fvt=$v(),cvt=I0(),Jde=J3(),hvt=R0(),dvt=zm(),pvt=ei().coercePattern;$de.exports=function(t,r,n,i){function a(d,p){return Kde.coerce(t,r,avt,d,p)}var o=svt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){lvt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=uvt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var u=!s&&o{"use strict";var vvt=qb().getAxisGroup;epe.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],u=vvt(n,s)+o,l=n._alignmentOpts||{},f=i("alignmentgroup"),c=l[u];c||(c=l[u]={});var h=c[f];h?h.traces.push(r):h=c[f]={traces:[r],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=i("offsetgroup")||"",p=h.offsetGroups,x=p[d];r._offsetIndex=0,(a!=="group"||d)&&(x||(x=p[d]={offsetIndex:Object.keys(p).length}),r._offsetIndex=x.offsetIndex)}});var dU=Te((wsr,tpe)=>{"use strict";var mvt=ei(),yvt=Gb(),gvt=Zc();tpe.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return mvt.coerce(i._input,i,gvt,h)}if(r.scattermode==="group")for(a=0;a=0;f--){var c=t[f];if(c.type==="scatter"&&c.xaxis===u.xaxis&&c.yaxis===u.yaxis){c.opacity=void 0;break}}}}}});var ipe=Te((Asr,rpe)=>{"use strict";var _vt=ei(),xvt=WL();rpe.exports=function(e,t){function r(i,a){return _vt.coerce(e,t,xvt,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var Im=Te((Tsr,ape)=>{"use strict";var bvt=ku(),npe=ei(),wvt=npe.dateTime2ms,Yz=npe.incrementMonth,Avt=nf(),Tvt=Avt.ONEAVGMONTH;ape.exports=function(t,r,n,i){if(r.type!=="date")return{vals:i};var a=t[n+"periodalignment"];if(!a)return{vals:i};var o=t[n+"period"],s;if(bvt(o)){if(o=+o,o<=0)return{vals:i}}else if(typeof o=="string"&&o.charAt(0)==="M"){var u=+o.substring(1);if(u>0&&Math.round(u)===u)s=u;else return{vals:i}}for(var l=r.calendar,f=a==="start",c=a==="end",h=t[n+"period0"],d=wvt(h,l)||0,p=[],x=[],b=[],v=i.length,k=0;kE;)_=Yz(_,-s,l);for(;_<=E;)_=Yz(_,s,l);L=Yz(_,-s,l)}else{for(T=Math.round((E-d)/o),_=d+T*o;_>E;)_-=o;for(;_<=E;)_+=o;L=_-o}p[k]=f?L:c?_:(L+_)/2,x[k]=L,b[k]=_}return{vals:p,starts:x,ends:b}}});var D0=Te((Ssr,spe)=>{"use strict";var pU=yp().hasColorscale,vU=gp(),ope=lc();spe.exports=function(t,r){ope.hasLines(r)&&pU(r,"line")&&vU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),ope.hasMarkers(r)&&(pU(r,"marker")&&vU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),pU(r,"marker.line")&&vU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var ky=Te((Msr,lpe)=>{"use strict";var ch=ei();lpe.exports=function(t,r){for(var n=0;n{"use strict";var upe=ei();fpe.exports=function(t,r){upe.isArrayOrTypedArray(r.selectedpoints)&&upe.tagSelected(t,r)}});var B0=Te((ksr,ype)=>{"use strict";var cpe=ku(),yU=ei(),Z5=wu(),hpe=Im(),mU=nf().BADNUM,gU=lc(),Svt=D0(),Mvt=ky(),Evt=F0();function kvt(e,t){var r=e._fullLayout,n=t._xA=Z5.getFromId(e,t.xaxis||"x","x"),i=t._yA=Z5.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=hpe(t,n,"x",a),u=hpe(t,i,"y",o),l=s.vals,f=u.vals,c=t._length,h=new Array(c),d=t.ids,p=_U(t,r,n,i),x=!1,b,v,k,E,T,L;vpe(r,t);var _="x",C="y",M;if(p)yU.pushUnique(p.traceIndices,t.index),b=p.orientation==="v",b?(C="s",M="x"):(_="s",M="y"),T=p.stackgaps==="interpolate";else{var m=ppe(t,c);dpe(e,t,n,i,l,f,m)}var P=!!t.xperiodalignment,A=!!t.yperiodalignment;for(v=0;vv&&h[E].gap;)E--;for(L=h[E].s,k=h.length-1;k>E;k--)h[k].s=L;for(;v{"use strict";gpe.exports=Kz;var Cvt=ei().distinctVals;function Kz(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,n=t.posAxis._id.charAt(0),i=[],a=0;a{"use strict";var O0=ku(),v_=ei().isArrayOrTypedArray,Q3=nf().BADNUM,Lvt=$l(),Y5=wu(),Pvt=qb().getAxisGroup,Jz=_pe();function zvt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],u=[],l=0;lu+o||!O0(s))}for(var f=0;f{"use strict";var Tpe=B0(),Spe=Hb().setGroupPositions;function Hvt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],u=[],l=0;lm[f]&&f{"use strict";var jvt=Mu(),Ppe=nf(),K5=Ppe.BADNUM,zpe=Ppe.LOG_CLIP,kpe=zpe+.5,Cpe=zpe-.5,$z=ei(),Xvt=$z.segmentsIntersect,Lpe=$z.constrain,SU=Sy();Ipe.exports=function(t,r){var n=r.trace||{},i=r.xaxis,a=r.yaxis,o=i.type==="log",s=a.type==="log",u=i._length,l=a._length,f=r.backoff,c=n.marker,h=r.connectGaps,d=r.baseTolerance,p=r.shape,x=p==="linear",b=n.fill&&n.fill!=="none",v=[],k=SU.minTolerance,E=t.length,T=new Array(E),L=0,_,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae;function be(Ie){var xe=t[Ie];if(!xe)return!1;var Oe=r.linearized?i.l2p(xe.x):i.c2p(xe.x),Re=r.linearized?a.l2p(xe.y):a.c2p(xe.y);if(Oe===K5){if(o&&(Oe=i.c2p(xe.x,!0)),Oe===K5)return!1;s&&Re===K5&&(Oe*=Math.abs(i._m*l*(i._m>0?kpe:Cpe)/(a._m*u*(a._m>0?kpe:Cpe)))),Oe*=1e3}if(Re===K5){if(s&&(Re=a.c2p(xe.y,!0)),Re===K5)return!1;Re*=1e3}return[Oe,Re]}function Pe(Ie,xe,Oe,Re){var De=Oe-Ie,ct=Re-xe,ge=.5-Ie,fe=.5-xe,pe=De*De+ct*ct,dt=De*ge+ct*fe;if(dt>0&&dt1||Math.abs(ge.y-Oe[0][1])>1)&&(ge=[ge.x,ge.y],Re&&ke(ge,Ie)Ne||Ie[1]ye)return[Lpe(Ie[0],Me,Ne),Lpe(Ie[1],Fe,ye)]}function Tt(Ie,xe){if(Ie[0]===xe[0]&&(Ie[0]===Me||Ie[0]===Ne)||Ie[1]===xe[1]&&(Ie[1]===Fe||Ie[1]===ye))return!0}function St(Ie,xe){var Oe=[],Re=kt(Ie),De=kt(xe);return Re&&De&&Tt(Re,De)||(Re&&Oe.push(Re),De&&Oe.push(De)),Oe}function Dt(Ie,xe,Oe){return function(Re,De){var ct=kt(Re),ge=kt(De),fe=[];if(ct&&ge&&Tt(ct,ge))return fe;ct&&fe.push(ct),ge&&fe.push(ge);var pe=2*$z.constrain((Re[Ie]+De[Ie])/2,xe,Oe)-((ct||Re)[Ie]+(ge||De)[Ie]);if(pe){var dt;ct&&ge?dt=pe>0==ct[Ie]>ge[Ie]?ct:ge:dt=ct||ge,dt[Ie]+=pe}return fe}}var Zt;p==="linear"||p==="spline"?Zt=Ke:p==="hv"||p==="vh"?Zt=St:p==="hvh"?Zt=Dt(0,Me,Ne):p==="vhv"&&(Zt=Dt(1,Fe,ye));function Et(Ie,xe){var Oe=xe[0]-Ie[0],Re=(xe[1]-Ie[1])/Oe,De=(Ie[1]*xe[0]-xe[1]*Ie[0])/Oe;return De>0?[Re>0?Me:Ne,ye]:[Re>0?Ne:Me,Fe]}function Ae(Ie){var xe=Ie[0],Oe=Ie[1],Re=xe===T[L-1][0],De=Oe===T[L-1][1];if(!(Re&&De))if(L>1){var ct=xe===T[L-2][0],ge=Oe===T[L-2][1];Re&&(xe===Me||xe===Ne)&&ct?ge?L--:T[L-1]=Ie:De&&(Oe===Fe||Oe===ye)&&ge?ct?L--:T[L-1]=Ie:T[L++]=Ie}else T[L++]=Ie}function at(Ie){T[L-1][0]!==Ie[0]&&T[L-1][1]!==Ie[1]&&Ae([nt,gt]),Ae(Ie),Nt=null,nt=gt=0}var wt=$z.isArrayOrTypedArray(c);function vt(Ie){if(Ie&&f&&(Ie.i=_,Ie.d=t,Ie.trace=n,Ie.marker=wt?c[Ie.i]:c,Ie.backoff=f),Ce=Ie[0]/u,de=Ie[1]/l,ce=Ie[0]Ne?Ne:0,Ye=Ie[1]ye?ye:0,ce||Ye){if(!L)T[L++]=[ce||Ie[0],Ye||Ie[1]];else if(Nt){var xe=Zt(Nt,Ie);xe.length>1&&(at(xe[0]),T[L++]=xe[1])}else it=Zt(T[L-1],Ie)[0],T[L++]=it;var Oe=T[L-1];ce&&Ye&&(Oe[0]!==ce||Oe[1]!==Ye)?(Nt&&(nt!==ce&>!==Ye?Ae(nt&>?Et(Nt,Ie):[nt||ce,gt||Ye]):nt&>&&Ae([nt,gt])),Ae([ce,Ye])):nt-ce&>-Ye&&Ae([ce||nt,Ye||gt]),Nt=Ie,nt=ce,gt=Ye}else Nt&&at(Zt(Nt,Ie)[0]),T[L++]=Ie}for(_=0;_te(A,st))break;M=A,N=U[0]*F[0]+U[1]*F[1],N>j?(j=N,m=A,B=!1):N=t.length||!A)break;vt(A),C=A}}Nt&&Ae([nt||Nt[0],gt||Nt[1]]),v.push(T.slice(0,L))}var Ue=p.slice(p.length-1);if(f&&Ue!=="h"&&Ue!=="v"){for(var rt=!1,$e=-1,zt=[],Yt=0;Yt{"use strict";var Rpe={tonextx:1,tonexty:1,tonext:1};Dpe.exports=function(t,r,n){var i,a,o,s,u,l={},f=!1,c=-1,h=0,d=-1;for(a=0;a=0?u=d:(u=d=h,h++),u{"use strict";var Rm=Jl(),Zvt=$l(),J5=ei(),tA=J5.ensureSingle,Bpe=J5.identity,hh=Mu(),rA=lc(),Yvt=MU(),Kvt=EU(),Qz=M5().tester;Ope.exports=function(t,r,n,i,a,o){var s,u,l=!a,f=!!a&&a.duration>0,c=Kvt(t,r,n);if(s=i.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),Jvt(t,s,r),f){o&&(u=o());var h=Rm.transition().duration(a.duration).ease(a.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});h.each(function(){i.selectAll("g.trace").each(function(d,p){Fpe(t,p,r,d,c,this,a)})})}else s.each(function(d,p){Fpe(t,p,r,d,c,this,a)});l&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function Jvt(e,t,r){t.each(function(n){var i=tA(Rm.select(this),"g","fills");hh.setClipUrl(i,r.layerClipId,e);var a=n[0].trace,o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=i.selectAll("g").data(o,Bpe);s.enter().append("g"),s.exit().each(function(u){a[u]=null}).remove(),s.order().each(function(u){a[u]=tA(Rm.select(this),"path","js-fill")})})}function Fpe(e,t,r,n,i,a,o){var s=e._context.staticPlot,u;$vt(e,t,r,n,i);var l=!!o&&o.duration>0;function f(Dt){return l?Dt.transition():Dt}var c=r.xaxis,h=r.yaxis,d=n[0].trace,p=d.line,x=Rm.select(a),b=tA(x,"g","errorbars"),v=tA(x,"g","lines"),k=tA(x,"g","points"),E=tA(x,"g","text");if(Zvt.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;f(x).style("opacity",d.opacity);var T,L,_=d.fill.charAt(d.fill.length-1);_!=="x"&&_!=="y"&&(_="");var C,M;_==="y"?(C=1,M=h.c2p(0,!0)):_==="x"&&(C=0,M=c.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=x;var m="",P=[],A=d._prevtrace,B=null,F=null;A&&(m=A._prevRevpath||"",L=A._nextFill,P=A._ownPolygons,B=A._fillsegments,F=A._fillElement);var U,G,j="",H="",N,W,re,ae,be,Pe,Ce=[];d._polygons=[];var de=[],te=[],ke=J5.noop;if(T=d._ownFill,rA.hasLines(d)||d.fill!=="none"){L&&L.datum(n),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(N=hh.steps(p.shape),W=hh.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?N=W=function(Dt){var Zt=Dt[Dt.length-1];return Dt.length>1&&Dt[0][0]===Zt[0]&&Dt[0][1]===Zt[1]?hh.smoothclosed(Dt.slice(1),p.smoothing):hh.smoothopen(Dt,p.smoothing)}:N=W=function(Dt){return"M"+Dt.join("L")},re=function(Dt){return W(Dt.reverse())},te=Yvt(n,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),de=new Array(te.length);var Ee=0;for(u=0;u=s[0]&&x.x<=s[1]&&x.y>=u[0]&&x.y<=u[1]}),h=Math.ceil(c.length/f),d=0;i.forEach(function(x,b){var v=x[0].trace;rA.hasMarkers(v)&&v.marker.maxdisplayed>0&&b{"use strict";qpe.exports={container:"marker",min:"cmin",max:"cmax"}});var tI=Te((Fsr,Npe)=>{"use strict";var eI=wu();Npe.exports=function(t,r,n){var i={},a={_fullLayout:n},o=eI.getFromTrace(a,r,"x"),s=eI.getFromTrace(a,r,"y"),u=t.orig_x;u===void 0&&(u=t.x);var l=t.orig_y;return l===void 0&&(l=t.y),i.xLabel=eI.tickText(o,o.c2l(u),!0).text,i.yLabel=eI.tickText(s,s.c2l(l),!0).text,i}});var av=Te((Bsr,Upe)=>{"use strict";var kU=Jl(),nA=Mu(),Qvt=$l();function e0t(e){var t=kU.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var n=kU.select(this),i=r.trace||r[0].trace;CU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=kU.select(this),i=r.trace||r[0].trace;LU(n,i,e)}),t.selectAll("g.trace path.js-line").call(nA.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(nA.fillGroupStyle,e,!1),Qvt.getComponentMethod("errorbars","style")(t)}function CU(e,t,r){nA.pointStyle(e.selectAll("path.point"),t,r)}function LU(e,t,r){nA.textPointStyle(e.selectAll("text"),t,r)}function t0t(e,t,r){var n=t[0].trace;n.selectedpoints?(nA.selectedPointStyle(r.selectAll("path.point"),n),nA.selectedTextStyle(r.selectAll("text"),n)):(CU(r,n,e),LU(r,n,e))}Upe.exports={style:e0t,stylePoints:CU,styleText:LU,styleOnSelect:t0t}});var oA=Te((Osr,Vpe)=>{"use strict";var aA=jl(),r0t=lc();Vpe.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&aA.opacity(n)?n:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return i=a&&aA.opacity(a)?a:o&&aA.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?aA.opacity(i)<.3?aA.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&aA.opacity(n)&&r0t.hasLines(t)&&t.line.width?n:t.fillcolor)}});var sA=Te((qsr,Hpe)=>{"use strict";var rI=ei(),Gpe=Xc(),i0t=$l(),n0t=oA(),PU=jl(),a0t=rI.fillText;Hpe.exports=function(t,r,n,i){var a=t.cd,o=a[0].trace,s=t.xa,u=t.ya,l=s.c2p(r),f=u.c2p(n),c=[l,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,x=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(H){if(p){var N=s.c2p(H.xStart),W=s.c2p(H.xEnd);return l>=Math.min(N,W)&&l<=Math.max(N,W)?0:1/0}var re=Math.max(3,H.mrc||0),ae=1-1/re,be=Math.abs(s.c2p(H.x)-l);return be=Math.min(N,W)&&f<=Math.max(N,W)?0:1/0}var re=Math.max(3,H.mrc||0),ae=1-1/re,be=Math.abs(u.c2p(H.y)-f);return beCe!=ye>=Ce&&(Me=ke[te-1][0],Ne=ke[te][0],ye-Fe&&(Ee=Me+(Ne-Me)*(Ce-Fe)/(ye-Fe),re=Math.min(re,Ee),ae=Math.max(ae,Ee)));return re=Math.max(re,0),ae=Math.min(ae,s._length),{x0:re,x1:ae,y0:Ce,y1:Ce}}if(h.indexOf("fills")!==-1&&o._fillElement){var U=B(o._fillElement)&&!B(o._fillExclusionElement);if(U){var G=F(o._polygons);G===null&&(G={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var j=PU.defaultLine;return PU.opacity(o.fillcolor)?j=o.fillcolor:PU.opacity((o.line||{}).color)&&(j=o.line.color),rI.extendFlat(t,{distance:t.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:j,hovertemplate:!1}),delete t.index,o.text&&!rI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var lA=Te((Nsr,jpe)=>{"use strict";var Wpe=lc();jpe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u,l,f,c,h=!Wpe.hasMarkers(s)&&!Wpe.hasText(s);if(h)return[];if(r===!1)for(u=0;u{"use strict";Xpe.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var IU=Te((Vsr,Jpe)=>{"use strict";var $5=$l().traceIs,zU=L3();Jpe.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(o0t(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function o0t(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=s0t(t,r,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=n+"calendar",s=a[o],u={noMultiCategory:!$5(a,"cartesian")||$5(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,Kpe(a,n)){var l=Ype(a),f=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(Kpe(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function Ype(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Kpe(e,t){var r=Ype(e),n=$5(e,"box-violin"),i=$5(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var iI=Te((Gsr,$pe)=>{"use strict";var l0t=mp().isTypedArraySpec;function u0t(e,t){var r=t.dataAttr||e._id.charAt(0),n={},i,a,o;if(t.axData)i=t.axData;else for(i=[],a=0;a0||l0t(a),s;o&&(s="array");var u=n("categoryorder",s),l;u==="array"&&(l=n("categoryarray")),!o&&u==="array"&&(u=r.categoryorder="trace"),u==="trace"?r._initialCategories=[]:u==="array"?r._initialCategories=l.slice():(l=u0t(r,i).sort(),u==="category ascending"?r._initialCategories=l:u==="category descending"&&(r._initialCategories=l.reverse()))}}});var Q5=Te((Hsr,eve)=>{"use strict";var Qpe=cd().mix,f0t=Ih(),c0t=ei();eve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(M,m){return c0t.coerce2(t,r,i.attributes,M,m)}var s=o("linecolor",a),u=o("linewidth"),l=n("showline",i.showLine||!!s||!!u);l||(delete r.linecolor,delete r.linewidth);var f=Qpe(a,i.bgColor,i.blend||f0t.lightFraction).toRgbString(),c=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),p=n("showgrid",i.showGrid||!!c||!!h||!!d);if(p||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),i.hasMinor){var x=Qpe(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",x),v=o("minor.gridwidth",r.gridwidth||1),k=o("minor.griddash",r.griddash||"solid"),E=n("minor.showgrid",!!b||!!v||!!k);E||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!i.noZeroLine){var T=o("zerolinelayer"),L=o("zerolinecolor",a),_=o("zerolinewidth"),C=n("zeroline",i.showGrid||!!L||!!_);C||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var tE=Te((Wsr,ove)=>{"use strict";var tve=ku(),h0t=$l(),eE=ei(),d0t=Pf(),p0t=Jd(),RU=Dd(),rve=xb(),ive=A3(),v0t=e_(),m0t=t_(),y0t=iI(),g0t=Q5(),_0t=EN(),nve=gy(),nI=dd().WEEKDAY_PATTERN,x0t=dd().HOUR_PATTERN;ove.exports=function(t,r,n,i,a){var o=i.letter,s=i.font||{},u=i.splomStash||{},l=n("visible",!i.visibleDflt),f=r._template||{},c=r.type||f.type||"-",h;if(c==="date"){var d=h0t.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",i.calendar),i.noTicklabelmode||(h=n("ticklabelmode"))}!i.noTicklabelindex&&(c==="date"||c==="linear")&&n("ticklabelindex");var p="";(!i.noTicklabelposition||c==="multicategory")&&(p=eE.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),i.noTicklabeloverflow||n("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),nve(r,a),_0t(t,r,n,i),y0t(t,r,n,i),i.noHover||(c!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var x=n("color"),b=x!==RU.color.dflt?x:s.color,v=u.label||a._dfltTitle[o];if(m0t(t,r,n,c,i),!l)return r;n("title.text",v),eE.coerceFont(n,"title.font",s,{overrideDflt:{size:eE.bigFont(s.size),color:b}}),rve(t,r,n,c);var k=i.hasMinor;if(k&&(d0t.newContainer(r,"minor"),rve(t,r,n,c,{isMinor:!0})),v0t(t,r,n,c,i),ive(t,r,n,i),k){var E=i.isMinor;i.isMinor=!0,ive(t,r,n,i),i.isMinor=E}g0t(t,r,n,{dfltColor:x,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:k,attributes:RU}),k&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var T=c==="multicategory";if(!i.noTickson&&(c==="category"||T)&&(r.ticks||r.showgrid)&&(T?(n("tickson","boundaries"),delete r.ticklabelposition):n("tickson")),T){var L=n("showdividers");L&&(n("dividercolor"),n("dividerwidth"))}if(c==="date")if(p0t(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:b0t}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var _=0;_=2){var o="",s,u;if(a.length===2){for(s=0;s<2;s++)if(u=ave(a[s]),u){o=nI;break}}var l=n("pattern",o);if(l===nI)for(s=0;s<2;s++)u=ave(a[s]),u&&(t.bounds[s]=a[s]=u-1);if(l)for(s=0;s<2;s++)switch(u=a[s],l){case nI:if(!tve(u)){t.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){t.enabled=!1;return}t.bounds[s]=a[s]=u;break;case x0t:if(!tve(u)){t.enabled=!1;return}if(u=+u,u<0||u>24){t.enabled=!1;return}t.bounds[s]=a[s]=u;break}if(r.autorange===!1){var f=r.range;if(f[0]f[1]){t.enabled=!1;return}}else if(a[0]>f[0]&&a[1]{"use strict";var A0t=ku(),aI=ei();sve.exports=function(t,r,n,i){var a=i.counterAxes||[],o=i.overlayableAxes||[],s=i.letter,u=i.grid,l=i.overlayingDomain,f,c,h,d,p,x;u&&(c=u._domains[s][u._axisMap[r._id]],f=u._anchors[r._id],c&&(h=u[s+"side"].split(" ")[0],d=u.domain[s][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(A0t(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,p=0,x=!1;var b=aI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:f}},"anchor"),v=aI.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(s==="y"){var k=n("autoshift");k&&(d=v==="left"?l[0]:l[1],x=r.automargin?r.automargin:!0,p=v==="left"?-3:3),n("shift",p)}n("position",d)}n("automargin",x);var E=!1;if(o.length&&(E=aI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!E){var T=n("domain",c);T[0]>T[1]-1/4096&&(r.domain=c),aI.noneOrAll(t.domain,r.domain,c),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var mve=Te((Xsr,vve)=>{"use strict";var Wb=ei(),lve=jl(),T0t=rv().isUnifiedHover,S0t=$N(),uve=Pf(),M0t=s3(),fve=Dd(),E0t=IU(),cve=tE(),k0t=qb(),hve=oI(),FU=Wc(),Cy=FU.id2name,dve=FU.name2id,C0t=dd().AX_ID_PATTERN,pve=$l(),sI=pve.traceIs,DU=pve.getComponentMethod;function lI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}vve.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},u={},l={},f={},c={},h={},d={},p={},x,b;for(x=0;x{"use strict";var L0t=Jl(),yve=$l(),uI=ei(),Qv=Mu(),fI=wu();gve.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){fI.redrawComponents(t);return}function o(b){var v=b.xaxis,k=b.yaxis;a._defs.select("#"+b.clipId+"> rect").call(Qv.setTranslate,0,0).call(Qv.setScale,1,1),b.plot.call(Qv.setTranslate,v._offset,k._offset).call(Qv.setScale,1,1);var E=b.plot.selectAll(".scatterlayer .trace");E.selectAll(".point").call(Qv.setPointGroupScale,1,1),E.selectAll(".textpoint").call(Qv.setTextPointsScale,1,1),E.call(Qv.hideOutsideRangePoints,b)}function s(b,v){var k=b.plotinfo,E=k.xaxis,T=k.yaxis,L=E._length,_=T._length,C=!!b.xr1,M=!!b.yr1,m=[];if(C){var P=uI.simpleMap(b.xr0,E.r2l),A=uI.simpleMap(b.xr1,E.r2l),B=P[1]-P[0],F=A[1]-A[0];m[0]=(P[0]*(1-v)+v*A[0]-P[0])/(P[1]-P[0])*L,m[2]=L*(1-v+v*F/B),E.range[0]=E.l2r(P[0]*(1-v)+v*A[0]),E.range[1]=E.l2r(P[1]*(1-v)+v*A[1])}else m[0]=0,m[2]=L;if(M){var U=uI.simpleMap(b.yr0,T.r2l),G=uI.simpleMap(b.yr1,T.r2l),j=U[1]-U[0],H=G[1]-G[0];m[1]=(U[1]*(1-v)+v*G[1]-U[1])/(U[0]-U[1])*_,m[3]=_*(1-v+v*H/j),T.range[0]=E.l2r(U[0]*(1-v)+v*G[0]),T.range[1]=T.l2r(U[1]*(1-v)+v*G[1])}else m[1]=0,m[3]=_;fI.drawOne(t,E,{skipTitle:!0}),fI.drawOne(t,T,{skipTitle:!0}),fI.redrawComponents(t,[E._id,T._id]);var N=C?L/m[2]:1,W=M?_/m[3]:1,re=C?m[0]:0,ae=M?m[1]:0,be=C?m[0]/m[2]*L:0,Pe=M?m[1]/m[3]*_:0,Ce=E._offset-be,de=T._offset-Pe;k.clipRect.call(Qv.setTranslate,re,ae).call(Qv.setScale,1/N,1/W),k.plot.call(Qv.setTranslate,Ce,de).call(Qv.setScale,N,W),Qv.setPointGroupScale(k.zoomScalePts,1/N,1/W),Qv.setTextPointsScale(k.zoomScaleTxt,1/N,1/W)}var u;i&&(u=i());function l(){for(var b={},v=0;vn.duration?(l(),d=window.cancelAnimationFrame(x)):d=window.requestAnimationFrame(x)}return c=Date.now(),d=window.requestAnimationFrame(x),Promise.resolve()}});var Ah=Te(wp=>{"use strict";var hI=Jl(),xve=$l(),jb=ei(),P0t=Cc(),z0t=Mu(),bve=Rd().getModuleCalcData,m_=Wc(),Dm=dd(),I0t=jv(),Zf=jb.ensureSingle;function cI(e,t,r){return jb.ensureSingle(e,t,r,function(n){n.datum(r)})}var Xb=Dm.zindexSeparator;wp.name="cartesian";wp.attr=["xaxis","yaxis"];wp.idRoot=["x","y"];wp.idRegex=Dm.idRegex;wp.attrRegex=Dm.attrRegex;wp.attributes=Zpe();wp.layoutAttributes=Dd();wp.supplyLayoutDefaults=mve();wp.transitionAxes=_ve();wp.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,i=r.yaxis,a=r.cartesian,o=a,s={},u={},l,f,c;for(l=0;l0){var d=h.id;if(d.indexOf(Xb)!==-1)continue;d+=Xb+(l+1),h=jb.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],x,b=0;b1&&(L+=Xb+T),E.push(s+L),o=0;o1,c=t.mainplotinfo;if(!t.mainplot||f)if(l)t.xlines=Zf(n,"path","xlines-above"),t.ylines=Zf(n,"path","ylines-above"),t.xaxislayer=Zf(n,"g","xaxislayer-above"),t.yaxislayer=Zf(n,"g","yaxislayer-above");else{if(!o){var h=Zf(n,"g","layer-subplot");t.shapelayer=Zf(h,"g","shapelayer"),t.imagelayer=Zf(h,"g","imagelayer"),c&&f?(t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer):(t.minorGridlayer=Zf(n,"g","minor-gridlayer"),t.gridlayer=Zf(n,"g","gridlayer"),t.zerolinelayer=Zf(n,"g","zerolinelayer"));var d=Zf(n,"g","layer-between");t.shapelayerBetween=Zf(d,"g","shapelayer"),t.imagelayerBetween=Zf(d,"g","imagelayer"),Zf(n,"path","xlines-below"),Zf(n,"path","ylines-below"),t.overlinesBelow=Zf(n,"g","overlines-below"),Zf(n,"g","xaxislayer-below"),Zf(n,"g","yaxislayer-below"),t.overaxesBelow=Zf(n,"g","overaxes-below")}t.overplot=Zf(n,"g","overplot"),t.plot=Zf(t.overplot,"g",i),c&&f?t.zerolinelayerAbove=c.zerolinelayerAbove:t.zerolinelayerAbove=Zf(n,"g","zerolinelayer-above"),o||(t.xlines=Zf(n,"path","xlines-above"),t.ylines=Zf(n,"path","ylines-above"),t.overlinesAbove=Zf(n,"g","overlines-above"),Zf(n,"g","xaxislayer-above"),Zf(n,"g","yaxislayer-above"),t.overaxesAbove=Zf(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+s),t.ylines=n.select(".ylines-"+u),t.xaxislayer=n.select(".xaxislayer-"+s),t.yaxislayer=n.select(".yaxislayer-"+u))}else{var p=c.plotgroup,x=i+"-x",b=i+"-y";t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer,t.zerolinelayerAbove=c.zerolinelayerAbove,Zf(c.overlinesBelow,"path",x),Zf(c.overlinesBelow,"path",b),Zf(c.overaxesBelow,"g",x),Zf(c.overaxesBelow,"g",b),t.plot=Zf(c.overplot,"g",i),Zf(c.overlinesAbove,"path",x),Zf(c.overlinesAbove,"path",b),Zf(c.overaxesAbove,"g",x),Zf(c.overaxesAbove,"g",b),t.xlines=p.select(".overlines-"+s).select("."+x),t.ylines=p.select(".overlines-"+u).select("."+b),t.xaxislayer=p.select(".overaxes-"+s).select("."+x),t.yaxislayer=p.select(".overaxes-"+u).select("."+b)}o||(l||(cI(t.minorGridlayer,"g",t.xaxis._id),cI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(v){return v[0]}).sort(m_.idSort),cI(t.gridlayer,"g",t.xaxis._id),cI(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(v){return v[0]}).sort(m_.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function Tve(e,t){if(e){var r={};e.each(function(u){var l=u[0],f=hI.select(this);f.remove(),Sve(l,t),r[l]=!0});for(var n in t._plots)for(var i=t._plots[n],a=i.overlays||[],o=0;o{"use strict";var dI=lc();Mve.exports={hasLines:dI.hasLines,hasMarkers:dI.hasMarkers,hasText:dI.hasText,isBubble:dI.isBubble,attributes:Zc(),layoutAttributes:WL(),supplyDefaults:Qde(),crossTraceDefaults:dU(),supplyLayoutDefaults:ipe(),calc:B0().calc,crossTraceCalc:Epe(),arraysToCalcdata:ky(),plot:iA(),colorbar:ep(),formatLabels:tI(),style:av().style,styleOnSelect:av().styleOnSelect,hoverPoints:sA(),selectPoints:lA(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Ah(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Lve=Te((Jsr,Cve)=>{"use strict";var D0t=Jl(),F0t=jl(),kve=N7(),BU=ei(),B0t=BU.strScale,O0t=BU.strRotate,q0t=BU.strTranslate;Cve.exports=function(t,r,n){var i=t.node(),a=kve[n.arrowhead||0],o=kve[n.startarrowhead||0],s=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),l=r.indexOf("start")>=0,f=r.indexOf("end")>=0,c=a.backoff*s+n.standoff,h=o.backoff*u+n.startstandoff,d,p,x,b;if(i.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},p={x:+t.attr("x2"),y:+t.attr("y2")};var v=d.x-p.x,k=d.y-p.y;if(x=Math.atan2(k,v),b=x+Math.PI,c&&h&&c+h>Math.sqrt(v*v+k*k)){U();return}if(c){if(c*c>v*v+k*k){U();return}var E=c*Math.cos(x),T=c*Math.sin(x);p.x+=E,p.y+=T,t.attr({x2:p.x,y2:p.y})}if(h){if(h*h>v*v+k*k){U();return}var L=h*Math.cos(x),_=h*Math.sin(x);d.x-=L,d.y-=_,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var C=i.getTotalLength(),M="";if(C{"use strict";var Pve=Jl(),OU=$l(),N0t=Cc(),g_=ei(),qU=g_.strTranslate,iE=wu(),Zb=jl(),Pg=Mu(),zve=Xc(),NU=Xf(),UU=Am(),rE=xp(),U0t=Pf().arrayEditor,V0t=Lve();Dve.exports={draw:G0t,drawOne:Ive,drawRaw:Rve};function G0t(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?De="right":De="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[De]}for(var Fe=!1,ye=["x","y"],Ve=0;Ve1)&&(nt===Ye?(st=gt.r2fraction(t["a"+ce]),(st<0||st>1)&&(Fe=!0)):Fe=!0),Zt=gt._offset+gt.r2p(t[ce]),at=.5}else{var Ue=vt==="domain";ce==="x"?(Ae=t[ce],Zt=Ue?gt._offset+gt._length*Ae:Zt=s.l+s.w*Ae):(Ae=1-t[ce],Zt=Ue?gt._offset+gt._length*Ae:Zt=s.t+s.h*Ae),at=t.showarrow?.5:Ae}if(t.showarrow){Dt.head=Zt;var rt=t["a"+ce];if(wt=it*Ne(.5,t.xanchor)-Ke*Ne(.5,t.yanchor),nt===Ye){var $e=iE.getRefType(nt);$e==="domain"?(ce==="y"&&(rt=1-rt),Dt.tail=gt._offset+gt._length*rt):$e==="paper"?ce==="y"?(rt=1-rt,Dt.tail=s.t+s.h*rt):Dt.tail=s.l+s.w*rt:Dt.tail=gt._offset+gt.r2p(rt),Et=wt}else Dt.tail=Zt+rt,Et=wt+rt;Dt.text=Dt.tail+wt;var zt=o[ce==="x"?"width":"height"];if(Ye==="paper"&&(Dt.head=g_.constrain(Dt.head,1,zt-1)),nt==="pixel"){var Yt=-Math.max(Dt.tail-3,Dt.text),hr=Math.min(Dt.tail+3,Dt.text)-zt;Yt>0?(Dt.tail+=Yt,Dt.text+=Yt):hr>0&&(Dt.tail-=hr,Dt.text-=hr)}Dt.tail+=St,Dt.head+=St}else wt=kt*Ne(at,Tt),Et=wt,Dt.text=Zt+wt;Dt.text+=St,wt+=St,Et+=St,t["_"+ce+"padplus"]=kt/2+Et,t["_"+ce+"padminus"]=kt/2-Et,t["_"+ce+"size"]=kt,t["_"+ce+"shift"]=wt}if(Fe){C.remove();return}var yr=0,br=0;if(t.align!=="left"&&(yr=(te-Ce)*(t.align==="center"?.5:1)),t.valign!=="top"&&(br=(ke-de)*(t.valign==="middle"?.5:1)),be)ae.select("svg").attr({x:P+yr-1,y:P+br}).call(Pg.setClipUrl,B?x:null,e);else{var Ut=P+br-Pe.top,Ie=P+yr-Pe.left;j.call(NU.positionText,Ie,Ut).call(Pg.setClipUrl,B?x:null,e)}F.select("rect").call(Pg.setRect,P,P,te,ke),A.call(Pg.setRect,M/2,M/2,Ee-M,Me-M),C.call(Pg.setTranslate,Math.round(b.x.text-Ee/2),Math.round(b.y.text-Me/2)),E.attr({transform:"rotate("+v+","+b.x.text+","+b.y.text+")"});var xe=function(Re,De){k.selectAll(".annotation-arrow-g").remove();var ct=b.x.head,ge=b.y.head,fe=b.x.tail+Re,pe=b.y.tail+De,dt=b.x.text+Re,It=b.y.text+De,Pt=g_.rotationXYMatrix(v,dt,It),rr=g_.apply2DTransform(Pt),Hr=g_.apply2DTransform2(Pt),Dr=+A.attr("width"),Mr=+A.attr("height"),Fr=dt-.5*Dr,di=Fr+Dr,Di=It-.5*Mr,Ii=Di+Mr,Ci=[[Fr,Di,Fr,Ii],[Fr,Ii,di,Ii],[di,Ii,di,Di],[di,Di,Fr,Di]].map(Hr);if(!Ci.reduce(function(Ir,Gr){return Ir^!!g_.segmentsIntersect(ct,ge,ct+1e6,ge+1e6,Gr[0],Gr[1],Gr[2],Gr[3])},!1)){Ci.forEach(function(Ir){var Gr=g_.segmentsIntersect(fe,pe,ct,ge,Ir[0],Ir[1],Ir[2],Ir[3]);Gr&&(fe=Gr.x,pe=Gr.y)});var nn=t.arrowwidth,ii=t.arrowcolor,wi=t.arrowside,Gi=k.append("g").style({opacity:Zb.opacity(ii)}).classed("annotation-arrow-g",!0),Bt=Gi.append("path").attr("d","M"+fe+","+pe+"L"+ct+","+ge).style("stroke-width",nn+"px").call(Zb.stroke,Zb.rgb(ii));if(V0t(Bt,wi,t),u.annotationPosition&&Bt.node().parentNode&&!n){var yt=ct,Vt=ge;if(t.standoff){var Wt=Math.sqrt(Math.pow(ct-fe,2)+Math.pow(ge-pe,2));yt+=t.standoff*(fe-ct)/Wt,Vt+=t.standoff*(pe-ge)/Wt}var _r=Gi.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(fe-yt)+","+(pe-Vt),transform:qU(yt,Vt)}).style("stroke-width",nn+6+"px").call(Zb.stroke,"rgba(0,0,0,0)").call(Zb.fill,"rgba(0,0,0,0)"),Lr,Ur;rE.init({element:_r.node(),gd:e,prepFn:function(){var Ir=Pg.getTranslate(C);Lr=Ir.x,Ur=Ir.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function(Ir,Gr){var jr=rr(Lr,Ur),yi=jr[0]+Ir,Ei=jr[1]+Gr;C.call(Pg.setTranslate,yi,Ei),d("x",y_(i,Ir,"x",s,t)),d("y",y_(a,Gr,"y",s,t)),t.axref===t.xref&&d("ax",y_(i,Ir,"ax",s,t)),t.ayref===t.yref&&d("ay",y_(a,Gr,"ay",s,t)),Gi.attr("transform",qU(Ir,Gr)),E.attr({transform:"rotate("+v+","+yi+","+Ei+")"})},doneFn:function(){OU.call("_guiRelayout",e,p());var Ir=document.querySelector(".js-notes-box-panel");Ir&&Ir.redraw(Ir.selectedObj)}})}}};if(t.showarrow&&xe(0,0),T){var Oe;rE.init({element:C.node(),gd:e,prepFn:function(){Oe=E.attr("transform")},moveFn:function(Re,De){var ct="pointer";if(t.showarrow)t.axref===t.xref?d("ax",y_(i,Re,"ax",s,t)):d("ax",t.ax+Re),t.ayref===t.yref?d("ay",y_(a,De,"ay",s.w,t)):d("ay",t.ay+De),xe(Re,De);else{if(n)return;var ge,fe;if(i)ge=y_(i,Re,"x",s,t);else{var pe=t._xsize/s.w,dt=t.x+(t._xshift-t.xshift)/s.w-pe/2;ge=rE.align(dt+Re/s.w,pe,0,1,t.xanchor)}if(a)fe=y_(a,De,"y",s,t);else{var It=t._ysize/s.h,Pt=t.y-(t._yshift+t.yshift)/s.h-It/2;fe=rE.align(Pt-De/s.h,It,0,1,t.yanchor)}d("x",ge),d("y",fe),(!i||!a)&&(ct=rE.getCursor(i?.5:ge,a?.5:fe,t.xanchor,t.yanchor))}E.attr({transform:qU(Re,De)+Oe}),UU(C,ct)},clickFn:function(Re,De){t.captureevents&&e.emit("plotly_clickannotation",_(De))},doneFn:function(){UU(C),OU.call("_guiRelayout",e,p());var Re=document.querySelector(".js-notes-box-panel");Re&&Re.redraw(Re.selectedObj)}})}}u.annotationText?j.call(NU.makeEditable,{delegate:C,gd:e}).call(H).on("edit",function(W){t.text=W,this.call(H),d("text",W),i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),OU.call("_guiRelayout",e,p())}):j.call(H)}});var Uve=Te((Qsr,Nve)=>{"use strict";var Fve=ei(),H0t=$l(),Bve=Pf().arrayEditor;Nve.exports={hasClickToShow:W0t,onClick:j0t};function W0t(e,t){var r=qve(e,t);return r.on.length>0||r.explicitOff.length>0}function j0t(e,t){var r=qve(e,t),n=r.on,i=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,u;if(n.length||i.length){for(s=0;s{"use strict";var VU=ei(),uA=jl();Vve.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=uA.opacity(o);i("borderpad");var u=i("borderwidth"),l=i("showarrow");i("text",l?" ":n._dfltTitle.annotation),i("textangle"),VU.coerceFont(i,"font",n.font),i("width"),i("align");var f=i("height");if(f&&i("valign"),l){var c=i("arrowside"),h,d;c.indexOf("end")!==-1&&(h=i("arrowhead"),d=i("arrowsize")),c.indexOf("start")!==-1&&(i("startarrowhead",h),i("startarrowsize",d)),i("arrowcolor",s?r.bordercolor:uA.defaultLine),i("arrowwidth",(s&&u||1)*2),i("standoff"),i("startstandoff")}var p=i("hovertext"),x=n.hoverlabel||{};if(p){var b=i("hoverlabel.bgcolor",x.bgcolor||(uA.opacity(a)?uA.rgb(a):uA.defaultLine)),v=i("hoverlabel.bordercolor",x.bordercolor||uA.contrast(b)),k=VU.extendFlat({},x.font);k.color||(k.color=v),VU.coerceFont(i,"hoverlabel.font",k)}i("captureevents",!!p)}});var Hve=Te((tlr,Gve)=>{"use strict";var HU=ei(),Yb=wu(),X0t=Jd(),Z0t=GU(),Y0t=Nb();Gve.exports=function(t,r){X0t(t,r,{name:"annotations",handleItemDefaults:K0t})};function K0t(e,t,r){function n(E,T){return HU.coerce(e,t,Y0t,E,T)}var i=n("visible"),a=n("clicktoshow");if(i||a){Z0t(e,t,r,n);for(var o=t.showarrow,s=["x","y"],u=[-10,-30],l={_fullLayout:r},f=0;f<2;f++){var c=s[f],h=Yb.coerceRef(e,t,l,c,"","paper");if(h!=="paper"){var d=Yb.getFromId(l,h);d._annIndices.push(t._index)}if(Yb.coercePosition(t,l,n,h,c,.5),o){var p="a"+c,x=Yb.coerceRef(e,t,l,p,"pixel",["pixel","paper"]);x!=="pixel"&&x!==h&&(x=t[p]="pixel");var b=x==="pixel"?u[f]:.4;Yb.coercePosition(t,l,n,x,p,b)}n(c+"anchor"),n(c+"shift")}if(HU.noneOrAll(e,t,["x","y"]),o&&HU.noneOrAll(e,t,["ax","ay"]),a){var v=n("xclick"),k=n("yclick");t._xclick=v===void 0?t.x:Yb.cleanPosition(v,l,t.xref),t._yclick=k===void 0?t.y:Yb.cleanPosition(k,l,t.yref)}}}});var Xve=Te((rlr,jve)=>{"use strict";var WU=ei(),Kb=wu(),J0t=pI().draw;jve.exports=function(t){var r=t._fullLayout,n=WU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return WU.syncOrAsync([J0t,$0t],t)};function $0t(e){var t=e._fullLayout;WU.filterVisible(t.annotations).forEach(function(r){var n=Kb.getFromId(e,r.xref),i=Kb.getFromId(e,r.yref),a=Kb.getRefType(r.xref),o=Kb.getRefType(r.yref);r._extremes={},a==="range"&&Wve(r,n),o==="range"&&Wve(r,i)})}function Wve(e,t){var r=t._id,n=r.charAt(0),i=e[n],a=e["a"+n],o=e[n+"ref"],s=e["a"+n+"ref"],u=e["_"+n+"padplus"],l=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,x=p+f,b=p-f,v;if(s===o){var k=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),E=Kb.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(u,x),ppadminus:Math.max(l,b)});v={min:[k.min[0],E.min[0]],max:[k.max[0],E.max[0]]}}else x=a?x+a:x,b=a?b-a:b,v=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(u,h,x),ppadminus:Math.max(l,d,b)});e._extremes[r]=v}});var Yve=Te((ilr,Zve)=>{"use strict";var Q0t=ku(),emt=vL();Zve.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,u=r._id.charAt(0),l,f;function c(d){var p=l[d],x=null;a?x=emt(p,r.range):x=Math.pow(10,p),Q0t(x)||(x=null),i(f+d,x)}for(var h=0;h{"use strict";var jU=pI(),Kve=Uve();Jve.exports={moduleType:"component",name:"annotations",layoutAttributes:Nb(),supplyLayoutDefaults:Hve(),includeBasePlot:F5()("annotations"),calcAutorange:Xve(),draw:jU.draw,drawOne:jU.drawOne,drawRaw:jU.drawRaw,hasClickToShow:Kve.hasClickToShow,onClick:Kve.onClick,convertCoords:Yve()}});var vI=Te((alr,Qve)=>{"use strict";var Pc=Nb(),tmt=Sc().overrideAll,rmt=Pf().templatedArray;Qve.exports=tmt(rmt("annotation",{visible:Pc.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Pc.xanchor,xshift:Pc.xshift,yanchor:Pc.yanchor,yshift:Pc.yshift,text:Pc.text,textangle:Pc.textangle,font:Pc.font,width:Pc.width,height:Pc.height,opacity:Pc.opacity,align:Pc.align,valign:Pc.valign,bgcolor:Pc.bgcolor,bordercolor:Pc.bordercolor,borderpad:Pc.borderpad,borderwidth:Pc.borderwidth,showarrow:Pc.showarrow,arrowcolor:Pc.arrowcolor,arrowhead:Pc.arrowhead,startarrowhead:Pc.startarrowhead,arrowside:Pc.arrowside,arrowsize:Pc.arrowsize,startarrowsize:Pc.startarrowsize,arrowwidth:Pc.arrowwidth,standoff:Pc.standoff,startstandoff:Pc.startstandoff,hovertext:Pc.hovertext,hoverlabel:Pc.hoverlabel,captureevents:Pc.captureevents}),"calc","from-root")});var t0e=Te((olr,e0e)=>{"use strict";var XU=ei(),imt=wu(),nmt=Jd(),amt=GU(),omt=vI();e0e.exports=function(t,r,n){nmt(t,r,{name:"annotations",handleItemDefaults:smt,fullLayout:n.fullLayout})};function smt(e,t,r,n){function i(s,u){return XU.coerce(e,t,omt,s,u)}function a(s){var u=s+"axis",l={_fullLayout:{}};return l._fullLayout[u]=r[u],imt.coercePosition(t,l,i,s,s,.5)}var o=i("visible");o&&(amt(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),XU.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",i("ax",-10),i("ay",-30),XU.noneOrAll(e,t,["ax","ay"])))}});var a0e=Te((slr,n0e)=>{"use strict";var r0e=ei(),i0e=wu();n0e.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function ZU(e,t){var r=[0,0,0,0],n,i;for(n=0;n<4;++n)for(i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function umt(e,t){var r=ZU(e.projection,ZU(e.view,ZU(e.model,[t[0],t[1],t[2],1])));return r}o0e.exports=umt});var l0e=Te((ulr,s0e)=>{"use strict";var fmt=pI().drawRaw,cmt=YU(),hmt=["x","y","z"];s0e.exports=function(t){for(var r=t.fullSceneLayout,n=t.dataScale,i=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=cmt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),fmt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var c0e=Te((flr,f0e)=>{"use strict";var dmt=$l(),u0e=ei();f0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:vI()}}},layoutAttributes:vI(),handleDefaults:t0e(),includeBasePlot:pmt,convert:a0e(),draw:l0e()};function pmt(e,t){var r=dmt.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var h0e=Nb(),d0e=gc(),p0e=Zc().line,vmt=Id().dash,Fm=Su().extendFlat,mmt=Pf().templatedArray,clr=D5(),fA=Gf(),ymt=Nu().shapeTexttemplateAttrs,gmt=TL();v0e.exports=mmt("shape",{visible:Fm({},fA.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Fm({},fA.legend,{editType:"calc+arraydraw"}),legendgroup:Fm({},fA.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Fm({},fA.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:d0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Fm({},fA.legendrank,{editType:"calc+arraydraw"}),legendwidth:Fm({},fA.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Fm({},h0e.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Fm({},h0e.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Fm({},p0e.color,{editType:"arraydraw"}),width:Fm({},p0e.width,{editType:"calc+arraydraw"}),dash:Fm({},vmt,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:ymt({},{keys:Object.keys(gmt)}),font:d0e({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var g0e=Te((dlr,y0e)=>{"use strict";var nE=ei(),cA=wu(),_mt=Jd(),xmt=KU(),m0e=c_();y0e.exports=function(t,r){_mt(t,r,{name:"shapes",handleItemDefaults:wmt})};function bmt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function wmt(e,t,r){function n(W,re){return nE.coerce(e,t,xmt,W,re)}t._isShape=!0;var i=n("visible");if(i){var a=n("showlegend");a&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),nE.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),s=o?"path":"rect",u=n("type",s),l=u!=="path";l&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));for(var c=n("xsizemode"),h=n("ysizemode"),d=["x","y"],p=0;p<2;p++){var x=d[p],b=x+"anchor",v=x==="x"?c:h,k={_fullLayout:r},E,T,L,_=cA.coerceRef(e,t,k,x,void 0,"paper"),C=cA.getRefType(_);if(C==="range"?(E=cA.getFromId(k,_),E._shapeIndices.push(t._index),L=m0e.rangeToShapePosition(E),T=m0e.shapePositionToRange(E),(E.type==="category"||E.type==="multicategory")&&(n(x+"0shift"),n(x+"1shift"))):T=L=nE.identity,l){var M=.25,m=.75,P=x+"0",A=x+"1",B=e[P],F=e[A];e[P]=T(e[P],!0),e[A]=T(e[A],!0),v==="pixel"?(n(P,0),n(A,10)):(cA.coercePosition(t,k,n,_,P,M),cA.coercePosition(t,k,n,_,A,m)),t[P]=L(t[P]),t[A]=L(t[A]),e[P]=B,e[A]=F}if(v==="pixel"){var U=e[b];e[b]=T(e[b],!0),cA.coercePosition(t,k,n,_,b,.25),t[b]=L(t[b]),e[b]=U}}l&&nE.noneOrAll(e,t,["x0","x1","y0","y1"]);var G=u==="line",j,H;if(l&&(j=n("label.texttemplate")),j||(H=n("label.text")),H||j){n("label.textangle");var N=n("label.textposition",G?"middle":"middle center");n("label.xanchor"),n("label.yanchor",bmt(G,N)),n("label.padding"),nE.coerceFont(n,"label.font",r.font)}}}});var b0e=Te((plr,x0e)=>{"use strict";var Amt=jl(),_0e=ei();function Tmt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}x0e.exports=function(t,r,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),_0e.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var i=n("newshape.line.width");if(i){var a=(t||{}).plot_bgcolor||"#FFF";n("newshape.line.color",Amt.contrast(a)),n("newshape.line.dash")}var o=t.dragmode==="drawline",s=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(s||u){n("newshape.label.textangle");var l=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",Tmt(o,l)),n("newshape.label.padding"),_0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var M0e=Te((vlr,S0e)=>{"use strict";var JU=ei(),hA=wu(),dA=p5(),A0e=c_();S0e.exports=function(t){var r=t._fullLayout,n=JU.filterVisible(r.shapes);if(!(!n.length||!t._fullData.length))for(var i=0;i0?l+o:o;return{ppad:o,ppadplus:s?c:h,ppadminus:s?h:c}}else return{ppad:o}}function w0e(e,t,r){var n=e._id.charAt(0)==="x"?"x":"y",i=e.type==="category"||e.type==="multicategory",a,o,s=0,u=0,l=i?e.r2c:e.d2c,f=t[n+"sizemode"]==="scaled";if(f?(a=t[n+"0"],o=t[n+"1"],i&&(s=t[n+"0shift"],u=t[n+"1shift"])):(a=t[n+"anchor"],o=t[n+"anchor"]),a!==void 0)return[l(a)+s,l(o)+u];if(t.path){var c=1/0,h=-1/0,d=t.path.match(dA.segmentRE),p,x,b,v,k;for(e.type==="date"&&(l=A0e.decodeDate(l)),p=0;ph&&(h=k)));if(h>=c)return[c,h]}}});var C0e=Te((mlr,k0e)=>{"use strict";var E0e=az();k0e.exports={moduleType:"component",name:"shapes",layoutAttributes:KU(),supplyLayoutDefaults:g0e(),supplyDrawNewShapeDefaults:b0e(),includeBasePlot:F5()("shapes"),calcAutorange:M0e(),draw:E0e.draw,drawOne:E0e.drawOne}});var $U=Te((glr,P0e)=>{"use strict";var L0e=dd(),Emt=Pf().templatedArray,ylr=D5();P0e.exports=Emt("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",L0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",L0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var I0e=Te((_lr,z0e)=>{"use strict";var kmt=ei(),QU=wu(),Cmt=Jd(),Lmt=$U(),Pmt="images";z0e.exports=function(t,r){var n={name:Pmt,handleItemDefaults:zmt};Cmt(t,r,n)};function zmt(e,t,r){function n(h,d){return kmt.coerce(e,t,Lmt,h,d)}var i=n("source"),a=n("visible",!!i);if(!a)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},s=["x","y"],u=0;u<2;u++){var l=s[u],f=QU.coerceRef(e,t,o,l,"paper",void 0);if(f!=="paper"){var c=QU.getFromId(o,f);c._imgIndices.push(t._index)}QU.coercePosition(t,o,n,f,l,0)}return t}});var B0e=Te((xlr,F0e)=>{"use strict";var R0e=Jl(),Imt=Mu(),pA=wu(),D0e=Wc(),Rmt=jv();F0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var O0e=ku(),Dmt=vL();q0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,u=r._id.charAt(0),l,f,c=0;c{"use strict";U0e.exports={moduleType:"component",name:"images",layoutAttributes:$U(),supplyLayoutDefaults:I0e(),includeBasePlot:F5()("images"),draw:B0e(),convertCoords:N0e()}});var mI=Te((Alr,G0e)=>{"use strict";G0e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var eV=Te((Tlr,W0e)=>{"use strict";var Fmt=gc(),Bmt=Ih(),Omt=Su().extendFlat,qmt=Sc().overrideAll,Nmt=SL(),H0e=Pf().templatedArray,Umt=H0e("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});W0e.exports=qmt(H0e("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Umt,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Omt(Nmt({editType:"arraydraw"}),{}),font:Fmt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Bmt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var Y0e=Te((Slr,Z0e)=>{"use strict";var yI=ei(),j0e=Jd(),X0e=eV(),Vmt=mI(),Gmt=Vmt.name,Hmt=X0e.buttons;Z0e.exports=function(t,r){var n={name:Gmt,handleItemDefaults:Wmt};j0e(t,r,n)};function Wmt(e,t,r){function n(o,s){return yI.coerce(e,t,X0e,o,s)}var i=j0e(e,t,{name:"buttons",handleItemDefaults:jmt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),yI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),yI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function jmt(e,t){function r(i,a){return yI.coerce(e,t,Hmt,i,a)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var $0e=Te((Mlr,J0e)=>{"use strict";J0e.exports=Qc;var Bm=Jl(),K0e=jl(),vA=Mu(),gI=ei();function Qc(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Qc.barWidth=2;Qc.barLength=20;Qc.barRadius=2;Qc.barPad=1;Qc.barColor="#808BA4";Qc.prototype.enable=function(t,r,n){var i=this.gd._fullLayout,a=i.width,o=i.height;this.position=t;var s=this.position.l,u=this.position.w,l=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",p=c==="right",x=c==="up",b=u,v=f,k,E,T,L;!h&&!d&&!p&&!x&&(this.position.direction="down",h=!0);var _=h||x;_?(k=s,E=k+b,h?(T=l,L=Math.min(T+v,o),v=L-T):(L=l+v,T=Math.max(L-v,0),v=L-T)):(T=l,L=T+v,d?(E=s+b,k=Math.max(E-b,0),b=E-k):(k=s,E=Math.min(k+b,a),b=E-k)),this._box={l:k,t:T,w:b,h:v};var C=u>b,M=Qc.barLength+2*Qc.barPad,m=Qc.barWidth+2*Qc.barPad,P=s,A=l+f;A+m>o&&(A=o-m);var B=this.container.selectAll("rect.scrollbar-horizontal").data(C?[0]:[]);B.exit().on(".drag",null).remove(),B.enter().append("rect").classed("scrollbar-horizontal",!0).call(K0e.fill,Qc.barColor),C?(this.hbar=B.attr({rx:Qc.barRadius,ry:Qc.barRadius,x:P,y:A,width:M,height:m}),this._hbarXMin=P+M/2,this._hbarTranslateMax=b-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var F=f>v,U=Qc.barWidth+2*Qc.barPad,G=Qc.barLength+2*Qc.barPad,j=s+u,H=l;j+U>a&&(j=a-U);var N=this.container.selectAll("rect.scrollbar-vertical").data(F?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(K0e.fill,Qc.barColor),F?(this.vbar=N.attr({rx:Qc.barRadius,ry:Qc.barRadius,x:j,y:H,width:U,height:G}),this._vbarYMin=H+G/2,this._vbarTranslateMax=v-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var W=this.id,re=k-.5,ae=F?E+U+.5:E+.5,be=T-.5,Pe=C?L+m+.5:L+.5,Ce=i._topdefs.selectAll("#"+W).data(C||F?[0]:[]);if(Ce.exit().remove(),Ce.enter().append("clipPath").attr("id",W).append("rect"),C||F?(this._clipRect=Ce.select("rect").attr({x:Math.floor(re),y:Math.floor(be),width:Math.ceil(ae)-Math.floor(re),height:Math.ceil(Pe)-Math.floor(be)}),this.container.call(vA.setClipUrl,W,this.gd),this.bg.attr({x:s,y:l,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vA.setClipUrl,null),delete this._clipRect),C||F){var de=Bm.behavior.drag().on("dragstart",function(){Bm.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(de);var te=Bm.behavior.drag().on("dragstart",function(){Bm.event.sourceEvent.preventDefault(),Bm.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));C&&this.hbar.on(".drag",null).call(te),F&&this.vbar.on(".drag",null).call(te)}this.setTranslate(r,n)};Qc.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vA.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Qc.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Bm.event.dx),this.vbar&&(r-=Bm.event.dy),this.setTranslate(t,r)};Qc.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Bm.event.deltaY),this.vbar&&(r+=Bm.event.deltaY),this.setTranslate(t,r)};Qc.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax,a=gI.constrain(Bm.event.x,n,i),o=(a-n)/(i-n),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var u=r+this._vbarYMin,l=u+this._vbarTranslateMax,f=gI.constrain(Bm.event.y,u,l),c=(f-u)/(l-u),h=this.position.h-this._box.h;r=c*h}this.setTranslate(t,r)};Qc.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,i=this.position.h-this._box.h;if(t=gI.constrain(t||0,0,n),r=gI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(vA.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/n;this.hbar.call(vA.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(vA.setTranslate,t,r+o*this._vbarTranslateMax)}}});var lme=Te((Elr,sme)=>{"use strict";var mA=Jl(),aE=Cc(),oE=jl(),yA=Mu(),e0=ei(),_I=Xf(),Xmt=Pf().arrayEditor,eme=Qh().LINE_SPACING,Vu=mI(),Zmt=$0e();sme.exports=function(t){var r=t._fullLayout,n=e0.filterVisible(r[Vu.name]);function i(h){aE.autoMargin(t,ame(h))}var a=r._menulayer.selectAll("g."+Vu.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(Vu.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){mA.select(this).selectAll("g."+Vu.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+Vu.headerGroupClassName).data(n,Ymt);o.enter().append("g").classed(Vu.headerGroupClassName,!0);for(var s=e0.ensureSingle(a,"g",Vu.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),u=0;u{"use strict";var ryt=mI();ume.exports={moduleType:"component",name:ryt.name,layoutAttributes:eV(),supplyLayoutDefaults:Y0e(),draw:lme()}});var lE=Te((Clr,cme)=>{"use strict";cme.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var nV=Te((Llr,pme)=>{"use strict";var hme=gc(),iyt=SL(),nyt=Su().extendDeepAll,ayt=Sc().overrideAll,oyt=OM(),dme=Pf().templatedArray,Jb=lE(),syt=dme("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});pme.exports=ayt(dme("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:syt,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:nyt(iyt({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:oyt.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:hme({})},font:hme({}),activebgcolor:{valType:"color",dflt:Jb.gripBgActiveColor},bgcolor:{valType:"color",dflt:Jb.railBgColor},bordercolor:{valType:"color",dflt:Jb.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Jb.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Jb.tickLength},tickcolor:{valType:"color",dflt:Jb.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Jb.minorTickLength}}),"arraydraw","from-root")});var gme=Te((Plr,yme)=>{"use strict";var gA=ei(),vme=Jd(),mme=nV(),lyt=lE(),uyt=lyt.name,fyt=mme.steps;yme.exports=function(t,r){vme(t,r,{name:uyt,handleItemDefaults:cyt})};function cyt(e,t,r){function n(c,h){return gA.coerce(e,t,mme,c,h)}for(var i=vme(e,t,{name:"steps",handleItemDefaults:hyt}),a=0,o=0;o{"use strict";var Om=Jl(),xI=Cc(),__=jl(),qm=Mu(),t0=ei(),dyt=t0.strTranslate,uE=Xf(),pyt=Pf().arrayEditor,pf=lE(),sV=Qh(),bme=sV.LINE_SPACING,aV=sV.FROM_TL,oV=sV.FROM_BR;Eme.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=vyt(n,t),a=n._infolayer.selectAll("g."+pf.containerClassName).data(i.length>0?[0]:[]);a.enter().append("g").classed(pf.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),xI.autoMargin(t,wme(f))}if(a.exit().each(function(){Om.select(this).selectAll("g."+pf.groupClassName).each(o)}).remove(),i.length!==0){var s=a.selectAll("g."+pf.groupClassName).data(i,myt);s.enter().append("g").classed(pf.groupClassName,!0),s.exit().each(o).remove();for(var u=0;u0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",dyt(o-pf.gripWidth*.5,t._dims.currentValueTotalHeight))}}function lV(e,t){var r=e._dims;return r.inputAreaStart+pf.stepInset+(r.inputAreaLength-2*pf.stepInset)*Math.min(1,Math.max(0,t))}function xme(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-pf.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*pf.stepInset-2*r.inputAreaStart)))}function Ayt(e,t,r){var n=r._dims,i=t0.ensureSingle(e,"rect",pf.railTouchRectClass,function(a){a.call(Sme,t,e,r).style("pointer-events","all")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,pf.tickOffset+r.ticklen+n.labelHeight)}).call(__.fill,r.bgcolor).attr("opacity",0),qm.setTranslate(i,0,n.currentValueTotalHeight)}function Tyt(e,t){var r=t._dims,n=r.inputAreaLength-pf.railInset*2,i=t0.ensureSingle(e,"rect",pf.railRectClass);i.attr({width:n,height:pf.railWidth,rx:pf.railRadius,ry:pf.railRadius,"shape-rendering":"crispEdges"}).call(__.stroke,t.bordercolor).call(__.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),qm.setTranslate(i,pf.railInset,(r.inputAreaWidth-pf.railWidth)*.5+r.currentValueTotalHeight)}});var Lme=Te((Ilr,Cme)=>{"use strict";var Syt=lE();Cme.exports={moduleType:"component",name:Syt.name,layoutAttributes:nV(),supplyLayoutDefaults:gme(),draw:kme()}});var wI=Te((Rlr,zme)=>{"use strict";var Pme=Ih();zme.exports={bgcolor:{valType:"color",dflt:Pme.background,editType:"plot"},bordercolor:{valType:"color",dflt:Pme.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var uV=Te((Dlr,Ime)=>{"use strict";Ime.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var AI=Te((Flr,Rme)=>{"use strict";Rme.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Bme=Te(SI=>{"use strict";var Myt=Wc(),Eyt=Xf(),Dme=AI(),kyt=Qh().LINE_SPACING,TI=Dme.name;function Fme(e){var t=e&&e[TI];return t&&t.visible}SI.isVisible=Fme;SI.makeData=function(e){for(var t=Myt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var MI=ei(),Ome=Pf(),qme=Wc(),Cyt=wI(),Lyt=uV();Nme.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;MI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=Ome.newContainer(a,"rangeslider");function u(L,_){return MI.coerce(o,s,Cyt,L,_)}var l,f;function c(L,_){return MI.coerce(l,f,Lyt,L,_)}var h=u("visible");if(h){u("bgcolor",r.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!a.isValidRange(o.range)),u("range");var d=r._subplots;if(d)for(var p=d.cartesian.filter(function(L){return L.substr(0,L.indexOf("y"))===qme.name2id(n)}).map(function(L){return L.substr(L.indexOf("y"),L.length)}),x=MI.simpleMap(p,qme.id2name),b=0;b{"use strict";var Pyt=Wc().list,zyt=wm().getAutoRange,Iyt=AI();Vme.exports=function(t){for(var r=Pyt(t,"x",!0),n=0;n{"use strict";var EI=Jl(),Ryt=$l(),Dyt=Cc(),dh=ei(),kI=dh.strTranslate,Wme=Mu(),x_=jl(),Fyt=Mb(),Byt=Ah(),fV=Wc(),Oyt=xp(),qyt=Am(),Mf=AI();jme.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)j=A[H+1];else if(G=N.pmax)j=A[H+1];else if(G0?e.touches[0].clientX:0}function Nyt(e,t,r,n){if(t._context.staticPlot)return;var i=e.select("rect."+Mf.slideBoxClassName).node(),a=e.select("rect."+Mf.grabAreaMinClassName).node(),o=e.select("rect."+Mf.grabAreaMaxClassName).node();function s(){var u=EI.event,l=u.target,f=Hme(u),c=f-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),p=Oyt.coverSlip();this.addEventListener("touchmove",x),this.addEventListener("touchend",b),p.addEventListener("mousemove",x),p.addEventListener("mouseup",b);function x(v){var k=Hme(v),E=+k-f,T,L,_;switch(l){case i:if(_="ew-resize",h+E>r._length||d+E<0)return;T=h+E,L=d+E;break;case a:if(_="col-resize",h+E>r._length)return;T=h+E,L=d;break;case o:if(_="col-resize",d+E<0)return;T=h,L=d+E;break;default:_="ew-resize",T=c,L=c+E;break}if(L{"use strict";var Kyt=ei(),Jyt=wI(),$yt=uV(),cV=Bme();Zme.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Kyt.extendFlat({},Jyt,{yaxis:$yt})}}},layoutAttributes:wI(),handleDefaults:Ume(),calcAutorange:Gme(),draw:Xme(),isVisible:cV.isVisible,makeData:cV.makeData,autoMarginOpts:cV.autoMarginOpts}});var CI=Te((Vlr,Jme)=>{"use strict";var Qyt=gc(),Kme=Ih(),egt=Pf().templatedArray,tgt=egt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});Jme.exports={visible:{valType:"boolean",editType:"plot"},buttons:tgt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Qyt({editType:"plot"}),bgcolor:{valType:"color",dflt:Kme.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Kme.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var hV=Te((Glr,$me)=>{"use strict";$me.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var tye=Te((Hlr,eye)=>{"use strict";var LI=ei(),rgt=jl(),igt=Pf(),ngt=Jd(),Qme=CI(),dV=hV();eye.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=igt.newContainer(r,"rangeselector");function u(d,p){return LI.coerce(o,s,Qme,d,p)}var l=ngt(o,s,{name:"buttons",handleItemDefaults:agt,calendar:a}),f=u("visible",l.length>0);if(f){var c=ogt(r,n,i);u("x",c[0]),u("y",c[1]),LI.noneOrAll(t,r,["x","y"]),u("xanchor"),u("yanchor"),LI.coerceFont(u,"font",n.font);var h=u("bgcolor");u("activecolor",rgt.contrast(h,dV.lightAmount,dV.darkAmount)),u("bordercolor"),u("borderwidth")}};function agt(e,t,r,n){var i=n.calendar;function a(u,l){return LI.coerce(e,t,Qme.buttons,u,l)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(i&&i!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function ogt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var sgt=E9(),lgt=ei().titleCase;rye.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=ugt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function ugt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=sgt["utc"+lgt(i)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(n,-o));break;case"todate":var u=a.offset(n,-o);s=e.l2r(+a.ceil(u));break}var l=r[1];return[s,l]}});var cye=Te((jlr,fye)=>{"use strict";var zI=Jl(),fgt=$l(),cgt=Cc(),nye=jl(),uye=Mu(),zg=ei(),aye=zg.strTranslate,PI=Xf(),hgt=Wc(),mV=Qh(),oye=mV.LINE_SPACING,sye=mV.FROM_TL,lye=mV.FROM_BR,vV=hV(),dgt=iye();fye.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(pgt(t),vgt);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=zI.select(this),o=i,s=o.rangeselector,u=a.selectAll("g.button").data(zg.filterVisible(s.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(l){var f=zI.select(this),c=dgt(o,l);l._isActive=mgt(o,l,c),f.call(pV,s,l),f.call(ggt,s,l,t),f.on("click",function(){t._dragged||fgt.call("_guiRelayout",t,c)}),f.on("mouseover",function(){l._isHovered=!0,f.call(pV,s,l)}),f.on("mouseout",function(){l._isHovered=!1,f.call(pV,s,l)})}),xgt(t,u,s,o._name,a)})};function pgt(e){for(var t=hgt.list(e,"x",!0),r=[],n=0;n{"use strict";hye.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:CI()}}},layoutAttributes:CI(),handleDefaults:tye(),draw:cye()}});var zc=Te(yV=>{"use strict";var pye=Su().extendFlat;yV.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",o={x:pye({},r,{}),y:pye({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};yV.defaults=function(e,t,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var bgt=ei(),wgt=n3().counter,Agt=zc().attributes,vye=dd().idRegex,Tgt=Pf(),gV={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[wgt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[vye.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[vye.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Agt({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function II(e,t,r){var n=t[r+"axes"],i=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(n))return n;if(i.length)return i}function Sgt(e,t){var r=e.grid||{},n=II(t,r,"x"),i=II(t,r,"y");if(!e.grid&&!n&&!i)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(n),s=Array.isArray(i),u=o&&n!==r.xaxes&&s&&i!==r.yaxes,l,f;a?(l=r.subplots.length,f=r.subplots[0].length):(s&&(l=i.length),o&&(f=n.length));var c=Tgt.newContainer(t,"grid");function h(_,C){return bgt.coerce(r,c,gV,_,C)}var d=h("rows",l),p=h("columns",f);if(!(d*p>1)){delete t.grid;return}if(!a&&!o&&!s){var x=h("pattern")==="independent";x&&(a=!0)}c._hasSubplotGrid=a;var b=h("roworder"),v=b==="top to bottom",k=a?.2:.1,E=a?.3:.1,T,L;u&&t._splomGridDflt&&(T=t._splomGridDflt.xside,L=t._splomGridDflt.yside),c._domains={x:mye("x",h,k,T,p),y:mye("y",h,E,L,d,v)}}function mye(e,t,r,n,i,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",n);for(var u=new Array(i),l=s[0],f=(s[1]-l)/(i-o),c=f*(1-o),h=0;h{"use strict";_ye.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var wye=Te((Jlr,bye)=>{"use strict";var xye=ku(),Egt=$l(),kgt=ei(),Cgt=Pf(),Lgt=xV();bye.exports=function(e,t,r,n){var i="error_"+n.axis,a=Cgt.newContainer(t,i),o=e[i]||{};function s(p,x){return kgt.coerce(o,a,Lgt,p,x)}var u=o.array!==void 0||o.value!==void 0||o.type==="sqrt",l=s("visible",u);if(l!==!1){var f=s("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=s("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(s("array"),s("traceref"),c||(s("arrayminus"),s("tracerefminus"))):(f==="percent"||f==="constant")&&(s("value"),c||s("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=t["error_"+n.inherit];(d||{}).visible&&s(h,!(o.color||xye(o.thickness)||xye(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",Egt.traceIs(t,"gl3d")?0:4))}}});var bV=Te(($lr,Tye)=>{"use strict";Tye.exports=function(t){var r=t.type,n=t.symmetric;if(r==="data"){var i=t.array||[];if(n)return function(l,f){var c=+i[f];return[c,c]};var a=t.arrayminus||[];return function(l,f){var c=+i[f],h=+a[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var o=Aye(r,t.value),s=Aye(r,t.valueminus);return n||t.valueminus===void 0?function(l){var f=o(l);return[f,f]}:function(l){return[s(l),o(l)]}}};function Aye(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var Eye=Te((Qlr,Mye)=>{"use strict";var wV=ku(),Pgt=$l(),AV=wu(),zgt=ei(),Igt=bV();Mye.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var kye=Jl(),b_=ku(),Rgt=Mu(),Dgt=lc();Cye.exports=function(t,r,n,i){var a,o=n.xaxis,s=n.yaxis,u=i&&i.duration>0,l=t._context.staticPlot;r.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(k){return k.id});var x=Dgt.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var b=kye.select(this).selectAll("g.errorbar").data(f,p);if(b.exit().remove(),!!f.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var v=b.enter().append("g").classed("errorbar",!0);u&&v.style("opacity",0).transition().duration(i.duration).style("opacity",1),Rgt.setClipUrl(b,n.layerClipId,t),b.each(function(k){var E=kye.select(this),T=Fgt(k,o,s);if(!(x&&!k.vis)){var L,_=E.select("path.yerror");if(d.visible&&b_(T.x)&&b_(T.yh)&&b_(T.ys)){var C=d.width;L="M"+(T.x-C)+","+T.yh+"h"+2*C+"m-"+C+",0V"+T.ys,T.noYS||(L+="m-"+C+",0h"+2*C),a=!_.size(),a?_=E.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("yerror",!0):u&&(_=_.transition().duration(i.duration).ease(i.easing)),_.attr("d",L)}else _.remove();var M=E.select("path.xerror");if(h.visible&&b_(T.y)&&b_(T.xh)&&b_(T.xs)){var m=(h.copy_ystyle?d:h).width;L="M"+T.xh+","+(T.y-m)+"v"+2*m+"m0,-"+m+"H"+T.xs,T.noXS||(L+="m0,-"+m+"v"+2*m),a=!M.size(),a?M=E.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("xerror",!0):u&&(M=M.transition().duration(i.duration).ease(i.easing)),M.attr("d",L)}else M.remove()}})}})};function Fgt(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),b_(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),b_(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}});var Iye=Te((tur,zye)=>{"use strict";var Bgt=Jl(),Pye=jl();zye.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=Bgt.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(Pye.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(Pye.stroke,a.color)})}});var Fye=Te((rur,Dye)=>{"use strict";var fE=ei(),Rye=Sc().overrideAll,cE=xV(),$b={error_x:fE.extendFlat({},cE),error_y:fE.extendFlat({},cE)};delete $b.error_x.copy_zstyle;delete $b.error_y.copy_zstyle;delete $b.error_y.copy_ystyle;var hE={error_x:fE.extendFlat({},cE),error_y:fE.extendFlat({},cE),error_z:fE.extendFlat({},cE)};delete hE.error_x.copy_ystyle;delete hE.error_y.copy_ystyle;delete hE.error_z.copy_ystyle;delete hE.error_z.copy_zstyle;Dye.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:$b,bar:$b,histogram:$b,scatter3d:Rye(hE,"calc","nested"),scattergl:Rye($b,"calc","nested")}},supplyDefaults:wye(),calc:Eye(),makeComputeError:bV(),plot:Lye(),style:Iye(),hoverInfo:Ogt};function Ogt(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var Oye=Te((iur,Bye)=>{"use strict";Bye.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Wye=Te((nur,Hye)=>{"use strict";var w_=Jl(),TV=cd(),DI=Cc(),qye=$l(),Ig=wu(),RI=xp(),q0=ei(),Um=q0.strTranslate,Gye=Su().extendFlat,SV=Am(),Nm=Mu(),MV=jl(),qgt=Mb(),Ngt=Xf(),Ugt=yp().flipScale,Vgt=tE(),Ggt=oI(),Hgt=Dd(),EV=Qh(),Nye=EV.LINE_SPACING,Uye=EV.FROM_TL,Vye=EV.FROM_BR,Yc=Oye().cn;function Wgt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Yc.colorbar).data(jgt(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(Yc.colorbar,!0),r.each(function(n){var i=w_.select(this);q0.ensureSingle(i,"rect",Yc.cbbg),q0.ensureSingle(i,"g",Yc.cbfills),q0.ensureSingle(i,"g",Yc.cblines),q0.ensureSingle(i,"g",Yc.cbaxis,function(o){o.classed(Yc.crisp,!0)}),q0.ensureSingle(i,"g",Yc.cbtitleunshift,function(o){o.append("g").classed(Yc.cbtitle,!0)}),q0.ensureSingle(i,"rect",Yc.cboutline);var a=Xgt(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&Zgt(i,n,e)}),r.exit().each(function(n){DI.autoMargin(e,n._id)}).remove(),r.order()}function jgt(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function u(E){return Gye(E,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function l(){typeof s.calc=="function"?s.calc(e,o,i):(i._fillgradient=a.reversescale?Ugt(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var f=0;f1){var Ve=Math.pow(10,Math.floor(Math.log(ye)/Math.LN10));Ne*=Ve*q0.roundUp(ye/Ve,[2,5,10]),(Math.abs(B.start)/B.size+1e-6)%1<2e-6&&(Ee.tick0=0)}Ee.dtick=Ne}Ee.domain=n?[te+p/T.h,te+W-p/T.h]:[te+d/T.w,te+W-d/T.w],Ee.setScale(),e.attr("transform",Um(Math.round(T.l),Math.round(T.t)));var ce=e.select("."+Yc.cbtitleunshift).attr("transform",Um(-Math.round(T.l),-Math.round(T.t))),Ye=Ee.ticklabelposition,nt=Ee.title.font.size,gt=e.select("."+Yc.cbaxis),Nt,it=0,Ke=0;function kt(Et,Ae){var at={propContainer:Ee,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:E._dfltTitle.colorbar,containerGroup:e.select("."+Yc.cbtitle)},wt=Et.charAt(0)==="h"?Et.substr(1):"h"+Et;e.selectAll("."+wt+",."+wt+"-math-group").remove(),qgt.draw(r,Et,Gye(at,Ae||{}))}function Tt(){if(n&&Me||!n&&!Me){var Et,Ae;M==="top"&&(Et=d+T.l+re*x,Ae=p+T.t+ae*(1-te-W)+3+nt*.75),M==="bottom"&&(Et=d+T.l+re*x,Ae=p+T.t+ae*(1-te)-3-nt*.25),M==="right"&&(Ae=p+T.t+ae*b+3+nt*.75,Et=d+T.l+re*te),kt(Ee._id+"title",{attributes:{x:Et,y:Ae,"text-anchor":n?"start":"middle"}})}}function St(){if(n&&!Me||!n&&Me){var Et=Ee.position||0,Ae=Ee._offset+Ee._length/2,at,wt;if(M==="right")wt=Ae,at=T.l+re*Et+10+nt*(Ee.showticklabels?1:.5);else if(at=Ae,M==="bottom"&&(wt=T.t+ae*Et+10+(Ye.indexOf("inside")===-1?Ee.tickfont.size:0)+(Ee.ticks!=="inside"&&t.ticklen||0)),M==="top"){var vt=C.text.split("
").length;wt=T.t+ae*Et+10-j-Nye*nt*vt}kt((n?"h":"v")+Ee._id+"title",{avoid:{selection:w_.select(r).selectAll("g."+Ee._id+"tick"),side:M,offsetTop:n?0:T.t,offsetLeft:n?T.l:0,maxShift:n?E.width:E.height},attributes:{x:at,y:wt,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Dt(){if(!n&&!Me||n&&Me){var Et=e.select("."+Yc.cbtitle),Ae=Et.select("text"),at=[-u/2,u/2],wt=Et.select(".h"+Ee._id+"title-math-group").node(),vt=15.6;Ae.node()&&(vt=parseInt(Ae.node().style.fontSize,10)*Nye);var st;if(wt?(st=Nm.bBox(wt),Ke=st.width,it=st.height,it>vt&&(at[1]-=(it-vt)/2)):Ae.node()&&!Ae.classed(Yc.jsPlaceholder)&&(st=Nm.bBox(Ae.node()),Ke=st.width,it=st.height),n){if(it){if(it+=5,M==="top")Ee.domain[1]-=it/T.h,at[1]*=-1;else{Ee.domain[0]+=it/T.h;var Ue=Ngt.lineCount(Ae);at[1]+=(1-Ue)*vt}Et.attr("transform",Um(at[0],at[1])),Ee.setScale()}}else Ke&&(M==="right"&&(Ee.domain[0]+=(Ke+nt/2)/T.w),Et.attr("transform",Um(at[0],at[1])),Ee.setScale())}e.selectAll("."+Yc.cbfills+",."+Yc.cblines).attr("transform",n?Um(0,Math.round(T.h*(1-Ee.domain[1]))):Um(Math.round(T.w*Ee.domain[0]),0)),gt.attr("transform",n?Um(0,Math.round(-T.t)):Um(Math.round(-T.l),0));var rt=e.select("."+Yc.cbfills).selectAll("rect."+Yc.cbfill).attr("style","").data(U);rt.enter().append("rect").classed(Yc.cbfill,!0).attr("style",""),rt.exit().remove();var $e=m.map(Ee.c2p).map(Math.round).sort(function(br,Ut){return br-Ut});rt.each(function(br,Ut){var Ie=[Ut===0?m[0]:(U[Ut]+U[Ut-1])/2,Ut===U.length-1?m[1]:(U[Ut]+U[Ut+1])/2].map(Ee.c2p).map(Math.round);n&&(Ie[1]=q0.constrain(Ie[1]+(Ie[1]>Ie[0])?1:-1,$e[0],$e[1]));var xe=w_.select(this).attr(n?"x":"y",be).attr(n?"y":"x",w_.min(Ie)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(w_.max(Ie)-w_.min(Ie),2));if(t._fillgradient)Nm.gradient(xe,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Oe=A(br).replace("e-","");xe.attr("fill",TV(Oe).toHexString())}});var zt=e.select("."+Yc.cblines).selectAll("path."+Yc.cbline).data(_.color&&_.width?G:[]);zt.enter().append("path").classed(Yc.cbline,!0),zt.exit().remove(),zt.each(function(br){var Ut=be,Ie=Math.round(Ee.c2p(br))+_.width/2%1;w_.select(this).attr("d","M"+(n?Ut+","+Ie:Ie+","+Ut)+(n?"h":"v")+j).call(Nm.lineGroupStyle,_.width,P(br),_.dash)}),gt.selectAll("g."+Ee._id+"tick,path").remove();var Yt=be+j+(u||0)/2-(t.ticks==="outside"?1:0),hr=Ig.calcTicks(Ee),yr=Ig.getTickSigns(Ee)[2];return Ig.drawTicks(r,Ee,{vals:Ee.ticks==="inside"?Ig.clipEnds(Ee,hr):hr,layer:gt,path:Ig.makeTickPath(Ee,Yt,yr),transFn:Ig.makeTransTickFn(Ee)}),Ig.drawLabels(r,Ee,{vals:hr,layer:gt,transFn:Ig.makeTransTickLabelFn(Ee),labelFns:Ig.makeLabelFns(Ee,Yt)})}function Zt(){var Et,Ae=j+u/2;Ye.indexOf("inside")===-1&&(Et=Nm.bBox(gt.node()),Ae+=n?Et.width:Et.height),Nt=ce.select("text");var at=0,wt=n&&M==="top",vt=!n&&M==="right",st=0;if(Nt.node()&&!Nt.classed(Yc.jsPlaceholder)){var Ue,rt=ce.select(".h"+Ee._id+"title-math-group").node();rt&&(n&&Me||!n&&!Me)?(Et=Nm.bBox(rt),at=Et.width,Ue=Et.height):(Et=Nm.bBox(ce.node()),at=Et.right-T.l-(n?be:ke),Ue=Et.bottom-T.t-(n?ke:be),!n&&M==="top"&&(Ae+=Et.height,st=Et.height)),vt&&(Nt.attr("transform",Um(at/2+nt/2,0)),at*=2),Ae=Math.max(Ae,n?at:Ue)}var $e=(n?d:p)*2+Ae+l+u/2,zt=0;!n&&C.text&&h==="bottom"&&b<=0&&(zt=$e/2,$e+=zt,st+=zt),E._hColorbarMoveTitle=zt,E._hColorbarMoveCBTitle=st;var Yt=l+u,hr=(n?be:ke)-Yt/2-(n?d:0),yr=(n?ke:be)-(n?N:p+st-zt);e.select("."+Yc.cbbg).attr("x",hr).attr("y",yr).attr(n?"width":"height",Math.max($e-zt,2)).attr(n?"height":"width",Math.max(N+Yt,2)).call(MV.fill,f).call(MV.stroke,t.bordercolor).style("stroke-width",l);var br=vt?Math.max(at-10,0):0;e.selectAll("."+Yc.cboutline).attr("x",(n?be:ke+d)+br).attr("y",(n?ke+p-N:be)+(wt?it:0)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(N-(n?2*p+it:2*d+br),2)).call(MV.stroke,t.outlinecolor).style({fill:"none","stroke-width":u});var Ut=n?Pe*$e:0,Ie=n?0:(1-Ce)*$e-st;if(Ut=k?T.l-Ut:-Ut,Ie=v?T.t-Ie:-Ie,e.attr("transform",Um(Ut,Ie)),!n&&(l||TV(f).getAlpha()&&!TV.equals(E.paper_bgcolor,f))){var xe=gt.selectAll("text"),Oe=xe[0].length,Re=e.select("."+Yc.cbbg).node(),De=Nm.bBox(Re),ct=Nm.getTranslate(e),ge=2;xe.each(function(Fr,di){var Di=0,Ii=Oe-1;if(di===Di||di===Ii){var Ci=Nm.bBox(this),nn=Nm.getTranslate(this),ii;if(di===Ii){var wi=Ci.right+nn.x,Gi=De.right+ct.x+ke-l-ge+x;ii=Gi-wi,ii>0&&(ii=0)}else if(di===Di){var Bt=Ci.left+nn.x,yt=De.left+ct.x+ke+l+ge;ii=yt-Bt,ii<0&&(ii=0)}ii&&(Oe<3?this.setAttribute("transform","translate("+ii+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var fe={},pe=Uye[c],dt=Vye[c],It=Uye[h],Pt=Vye[h],rr=$e-j;n?(a==="pixels"?(fe.y=b,fe.t=N*It,fe.b=N*Pt):(fe.t=fe.b=0,fe.yt=b+i*It,fe.yb=b-i*Pt),s==="pixels"?(fe.x=x,fe.l=$e*pe,fe.r=$e*dt):(fe.l=rr*pe,fe.r=rr*dt,fe.xl=x-o*pe,fe.xr=x+o*dt)):(a==="pixels"?(fe.x=x,fe.l=N*pe,fe.r=N*dt):(fe.l=fe.r=0,fe.xl=x+i*pe,fe.xr=x-i*dt),s==="pixels"?(fe.y=1-b,fe.t=$e*It,fe.b=$e*Pt):(fe.t=rr*It,fe.b=rr*Pt,fe.yt=b-o*It,fe.yb=b+o*Pt));var Hr=t.y<.5?"b":"t",Dr=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Mr={r:E.width-hr-Ut,l:hr+fe.r,b:E.height-yr-Ie,t:yr+fe.b};k&&v?DI.autoMargin(r,t._id,fe):k?r._fullLayout._reservedMargin[t._id][Hr]=Mr[Hr]:v||n?r._fullLayout._reservedMargin[t._id][Dr]=Mr[Dr]:r._fullLayout._reservedMargin[t._id][Hr]=Mr[Hr]}return q0.syncOrAsync([DI.previousPromises,Tt,Dt,St,DI.previousPromises,Zt],r)}function Zgt(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,u;RI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),SV(e)},moveFn:function(l,f){e.attr("transform",o+Um(l,f)),s=RI.align((n?t._uFrac:t._vFrac)+l/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),u=RI.align((n?t._vFrac:1-t._uFrac)-f/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var c=RI.getCursor(s,u,t.xanchor,t.yanchor);SV(e,c)},doneFn:function(){if(SV(e),s!==void 0&&u!==void 0){var l={};l[t._propPrefix+"x"]=s,l[t._propPrefix+"y"]=u,t._traceIndex!==void 0?qye.call("_guiRestyle",r,l,t._traceIndex):qye.call("_guiRelayout",r,l)}}})}function Ygt(e,t,r){var n=t._levels,i=[],a=[],o,s,u=n.end+n.size/100,l=n.size,f=1.001*r[0]-.001*r[1],c=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=n.start+s*l,!(l>0?o>=u:o<=u));s++)o>f&&o0?o>=u:o<=u));s++)o>r[0]&&o{"use strict";jye.exports={moduleType:"component",name:"colorbar",attributes:QL(),supplyDefaults:qq(),draw:Wye().draw,hasColorbar:zq()}});var Yye=Te((our,Zye)=>{"use strict";Zye.exports={moduleType:"component",name:"legend",layoutAttributes:zN(),supplyLayoutDefaults:DN(),draw:XN(),style:GN()}});var Jye=Te((sur,Kye)=>{"use strict";Kye.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var Qye=Te((lur,$ye)=>{"use strict";$ye.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var CV=Te((uur,ige)=>{"use strict";var Jgt=$l(),rge=ei(),kV=rge.extendFlat,ege=rge.extendDeep;function tge(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function $gt(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}ige.exports=function(t,r){var n,i=t.data,a=t.layout,o=ege([],i),s=ege({},a,tge(r.tileClass)),u=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var l=Object.keys(s);for(n=0;n{"use strict";var Qgt=pb().EventEmitter,e1t=$l(),t1t=ei(),nge=Lg(),r1t=CV(),i1t=Vz(),n1t=Gz();function a1t(e,t){var r=new Qgt,n=r1t(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=nge.getDelay(i._fullLayout);setTimeout(function(){var u=i1t(i),l=document.createElement("canvas");l.id=t1t.randstr(),r=n1t({format:t.format,width:i._fullLayout.width,height:i._fullLayout.height,canvas:l,emitter:r,svg:u}),r.clean=function(){i&&document.body.removeChild(i)}},s)}var o=nge.getRedrawFunc(i);return e1t.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}age.exports=a1t});var uge=Te((cur,lge)=>{"use strict";var sge=Lg(),o1t={getDelay:sge.getDelay,getRedrawFunc:sge.getRedrawFunc,clone:CV(),toSVG:Vz(),svgToImg:Gz(),toImage:oge(),downloadImage:fU()};lge.exports=o1t});var cge=Te(Rg=>{"use strict";Rg.version=oL().version;See();dne();var s1t=$l(),dE=Rg.register=s1t.register,PV=Ide(),fge=Object.keys(PV);for(FI=0;FI{"use strict";hge.exports=cge()});var Qb=Te((pur,pge)=>{"use strict";pge.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Ly=Te((vur,gge)=>{"use strict";var oh=Zc(),vge=jc().axisHoverFormat,l1t=Nu().hovertemplateAttrs,u1t=Nu().texttemplateAttrs,yge=nc(),f1t=gc(),mge=Qb(),c1t=Id().pattern,e2=Su().extendFlat,zV=f1t({editType:"calc",arrayOk:!0,colorEditType:"style"}),h1t=oh.marker,d1t=h1t.line,p1t=e2({},d1t.width,{dflt:0}),v1t=e2({width:p1t,editType:"calc"},yge("marker.line")),m1t=e2({line:v1t,editType:"calc"},yge("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:c1t,cornerradius:{valType:"any",editType:"calc"}});gge.exports={x:oh.x,x0:oh.x0,dx:oh.dx,y:oh.y,y0:oh.y0,dy:oh.dy,xperiod:oh.xperiod,yperiod:oh.yperiod,xperiod0:oh.xperiod0,yperiod0:oh.yperiod0,xperiodalignment:oh.xperiodalignment,yperiodalignment:oh.yperiodalignment,xhoverformat:vge("x"),yhoverformat:vge("y"),text:oh.text,texttemplate:u1t({editType:"plot"},{keys:mge.eventDataKeys}),hovertext:oh.hovertext,hovertemplate:l1t({},{keys:mge.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:e2({},zV,{}),insidetextfont:e2({},zV,{}),outsidetextfont:e2({},zV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:e2({},oh.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:m1t,offsetgroup:oh.offsetgroup,alignmentgroup:oh.alignmentgroup,selected:{marker:{opacity:oh.selected.marker.opacity,color:oh.selected.marker.color,editType:"style"},textfont:oh.selected.textfont,editType:"style"},unselected:{marker:{opacity:oh.unselected.marker.opacity,color:oh.unselected.marker.color,editType:"style"},textfont:oh.unselected.textfont,editType:"style"},zorder:oh.zorder}});var OI=Te((mur,_ge)=>{"use strict";_ge.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var qI=Te((yur,wge)=>{"use strict";var y1t=jl(),xge=yp().hasColorscale,bge=ed(),g1t=ei().coercePattern;wge.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=xge(t,"marker");s&&bge(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",y1t.defaultLine),xge(t,"marker.line")&&bge(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),g1t(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var r0=Te((gur,kge)=>{"use strict";var Age=ku(),xA=ei(),Tge=jl(),_1t=$l(),x1t=K3(),b1t=Pm(),w1t=qI(),A1t=Gb(),Sge=Ly(),NI=xA.coerceFont;function T1t(e,t,r,n){function i(l,f){return xA.coerce(e,t,Sge,l,f)}var a=x1t(e,t,n,i);if(!a){t.visible=!1;return}b1t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");Ege(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),w1t(e,t,i,r,n);var s=(t.marker.line||{}).color,u=_1t.getComponentMethod("errorbars","supplyDefaults");u(e,t,s||Tge.defaultLine,{axis:"y"}),u(e,t,s||Tge.defaultLine,{axis:"x",inherit:"y"}),xA.coerceSelectionMarkerOpacity(t,i)}function S1t(e,t){var r,n;function i(s,u){return xA.coerce(n._input,n,Sge,s,u)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&Age(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function Ege(e,t,r,n,i,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,u=a.moduleHasConstrain!==!1,l=a.moduleHasCliponaxis!==!1,f=a.moduleHasTextangle!==!1,c=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(i)||i==="auto",p=d||i==="inside",x=d||i==="outside";if(p||x){var b=NI(n,"textfont",r.font),v=xA.extendFlat({},b),k=e.textfont&&e.textfont.color,E=!k;if(E&&delete v.color,NI(n,"insidetextfont",v),h){var T=xA.extendFlat({},b);E&&delete T.color,NI(n,"pathbar.textfont",T)}x&&NI(n,"outsidetextfont",b),o&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),u&&n("constraintext"),l&&n("cliponaxis"),f&&n("textangle"),n("texttemplate")}p&&c&&n("insidetextanchor")}kge.exports={supplyDefaults:T1t,crossTraceDefaults:S1t,handleText:Ege,validateCornerradius:Mge}});var IV=Te((_ur,Cge)=>{"use strict";var M1t=$l(),E1t=wu(),k1t=ei(),C1t=OI(),L1t=r0().validateCornerradius;Cge.exports=function(e,t,r){function n(x,b){return k1t.coerce(e,t,C1t,x,b)}for(var i=!1,a=!1,o=!1,s={},u=n("barmode"),l=u==="group",f=0;f0&&!s[h]&&(o=!0),s[h]=!0),c.visible&&c.type==="histogram"){var d=E1t.getFromId({_fullLayout:t},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!i){delete t.barmode;return}u!=="overlay"&&n("barnorm"),n("bargap",a&&!o?0:.2),n("bargroupgap");var p=n("barcornerradius");t.barcornerradius=L1t(p)}});var pE=Te((xur,Lge)=>{"use strict";var bA=ei();Lge.exports=function(t,r){for(var n=0;n{"use strict";var Pge=wu(),zge=Im(),Ige=yp().hasColorscale,Rge=gp(),P1t=pE(),z1t=F0();Dge.exports=function(t,r){var n=Pge.getFromId(t,r.xaxis||"x"),i=Pge.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f,c={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=n.makeCalcdata(r,"x",c),s=i.makeCalcdata(r,"y"),u=zge(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y",c),s=n.makeCalcdata(r,"x"),u=zge(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),p=0;p{"use strict";var I1t=Jl(),R1t=ei();function D1t(e,t,r){var n=e._fullLayout,i=n["_"+r+"Text_minsize"];if(i){var a=n.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var u=s.transform;if(u){u.scale=a&&u.hide?0:i/u.fontSize;var l=I1t.select(this).select("text");R1t.setTransormAndDisplay(l,u)}})}}function F1t(e,t,r){if(r.uniformtext.mode){var n=Bge(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var O1t=ku(),q1t=cd(),qge=ei().isArrayOrTypedArray;t2.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};t2.coerceNumber=function(e,t,r){if(O1t(t)){t=+t;var n=e.min,i=e.max,a=n!==void 0&&ti;if(!a)return t}return r!==void 0?r:e.dflt};t2.coerceColor=function(e,t,r){return q1t(t).isValid()?t:r!==void 0?r:e.dflt};t2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};t2.getValue=function(e,t){var r;return qge(e)?t{"use strict";var vE=Jl(),N1t=jl(),mE=Mu(),Nge=ei(),Uge=$l(),Vge=Ap().resizeText,RV=Ly(),U1t=RV.textfont,V1t=RV.insidetextfont,G1t=RV.outsidetextfont,tp=UI();function H1t(e){var t=vE.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");Vge(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",function(i){return i[0].trace.opacity}).each(function(i){(n.barmode==="stack"&&r>1||n.bargap===0&&n.bargroupgap===0&&!i[0].trace.marker.line.width)&&vE.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=vE.select(this),o=i[0].trace;Gge(a,o,e)}),Uge.getComponentMethod("errorbars","style")(t)}function Gge(e,t,r){mE.pointStyle(e.selectAll("path"),t,r),Hge(e,t,r)}function Hge(e,t,r){e.selectAll("text").each(function(n){var i=vE.select(this),a=Nge.ensureUniformFontSize(r,Wge(i,n,t,r));mE.font(i,a)})}function W1t(e,t,r){var n=t[0].trace;n.selectedpoints?j1t(r,n,e):(Gge(r,n,e),Uge.getComponentMethod("errorbars","style")(r))}function j1t(e,t,r){mE.selectedPointStyle(e.selectAll("path"),t),X1t(e.selectAll("text"),t,r)}function X1t(e,t,r){e.each(function(n){var i=vE.select(this),a;if(n.selected){a=Nge.ensureUniformFontSize(r,Wge(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),mE.font(i,a)}else mE.selectedTextStyle(i,t)})}function Wge(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=Yge(t,r);a=Xge(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=Zge(r,t.i,i));return a}function jge(e,t,r){return DV(U1t,e.textfont,t,r)}function Xge(e,t,r,n){var i=jge(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(i={color:N1t.contrast(n),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),DV(V1t,e.insidetextfont,t,i)}function Zge(e,t,r){var n=jge(e,t,r);return DV(G1t,e.outsidetextfont,t,n)}function DV(e,t,r,n){t=t||{};var i=tp.getValue(t.family,r),a=tp.getValue(t.size,r),o=tp.getValue(t.color,r),s=tp.getValue(t.weight,r),u=tp.getValue(t.style,r),l=tp.getValue(t.variant,r),f=tp.getValue(t.textcase,r),c=tp.getValue(t.lineposition,r),h=tp.getValue(t.shadow,r);return{family:tp.coerceString(e.family,i,n.family),size:tp.coerceNumber(e.size,a,n.size),color:tp.coerceColor(e.color,o,n.color),weight:tp.coerceString(e.weight,s,n.weight),style:tp.coerceString(e.style,u,n.style),variant:tp.coerceString(e.variant,l,n.variant),textcase:tp.coerceString(e.variant,f,n.textcase),lineposition:tp.coerceString(e.variant,c,n.lineposition),shadow:tp.coerceString(e.variant,h,n.shadow)}}function Yge(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}Kge.exports={style:H1t,styleTextPoints:Hge,styleOnSelect:W1t,getInsideTextFont:Xge,getOutsideTextFont:Zge,getBarColor:Yge,resizeText:Vge}});var i2=Te((Sur,n1e)=>{"use strict";var VI=Jl(),GI=ku(),Bd=ei(),Z1t=Xf(),Y1t=jl(),A_=Mu(),K1t=$l(),HI=wu().tickText,Jge=Ap(),J1t=Jge.recordMinTextSize,$1t=Jge.clearMinTextSize,FV=N0(),wA=UI(),Q1t=Qb(),$ge=Ly(),e_t=$ge.text,t_t=$ge.textposition,r_t=rv().appendArrayPointValue,Up=Q1t.TEXTPAD;function i_t(e){return e.id}function n_t(e){if(e.ids)return i_t}function BV(e){return(e>0)-(e<0)}function Py(e,t){return e0}function o_t(e,t,r,n,i,a){var o=t.xaxis,s=t.yaxis,u=e._fullLayout,l=e._context.staticPlot;i||(i={mode:u.barmode,norm:u.barmode,gap:u.bargap,groupgap:u.bargroupgap},$1t("bar",u));var f=Bd.makeTraceGroups(n,r,"trace bars").each(function(c){var h=VI.select(this),d=c[0].trace,p=c[0].t,x=d.type==="waterfall",b=d.type==="funnel",v=d.type==="histogram",k=d.type==="bar",E=k||b,T=0;x&&d.connector.visible&&d.connector.mode==="between"&&(T=d.connector.line.width/2);var L=d.orientation==="h",_=e1e(i),C=Bd.ensureSingle(h,"g","points"),M=n_t(d),m=C.selectAll("g.point").data(Bd.identity,M);m.enter().append("g").classed("point",!0),m.exit().remove(),m.each(function(A,B){var F=VI.select(this),U=a_t(A,o,s,L),G=U[0][0],j=U[0][1],H=U[1][0],N=U[1][1],W=(L?j-G:N-H)===0;W&&E&&wA.getLineWidth(d,A)&&(W=!1),W||(W=!GI(G)||!GI(j)||!GI(H)||!GI(N)),A.isBlank=W,W&&(L?j=G:N=H),T&&!W&&(L?(G-=Py(G,j)*T,j+=Py(G,j)*T):(H-=Py(H,N)*T,N+=Py(H,N)*T));var re,ae;if(d.type==="waterfall"){if(!W){var be=d[A.dir].marker;re=be.line.width,ae=be.color}}else re=wA.getLineWidth(d,A),ae=A.mc||d.marker.color;function Pe(Ae){var at=VI.round(re/2%1,2);return i.gap===0&&i.groupgap===0?VI.round(Math.round(Ae)-at,2):Ae}function Ce(Ae,at,wt){return wt&&Ae===at?Ae:Math.abs(Ae-at)>=2?Pe(Ae):Ae>at?Math.ceil(Ae):Math.floor(Ae)}var de=Y1t.opacity(ae),te=de<1||re>.01?Pe:Ce;e._context.staticPlot||(G=te(G,j,L),j=te(j,G,L),H=te(H,N,!L),N=te(N,H,!L));var ke=L?o.c2p:s.c2p,Ee;A.s0>0?Ee=A._sMax:A.s0<0?Ee=A._sMin:Ee=A.s1>0?A._sMax:A._sMin;function Me(Ae,at){if(!Ae)return 0;var wt=Math.abs(L?N-H:j-G),vt=Math.abs(L?j-G:N-H),st=te(Math.abs(ke(Ee,!0)-ke(0,!0))),Ue=A.hasB?Math.min(wt/2,vt/2):Math.min(wt/2,st),rt;if(at==="%"){var $e=Math.min(50,Ae);rt=wt*($e/100)}else rt=Ae;return te(Math.max(Math.min(rt,Ue),0))}var Ne=k||v?Me(p.cornerradiusvalue,p.cornerradiusform):0,Fe,ye,Ve="M"+G+","+H+"V"+N+"H"+j+"V"+H+"Z",ce=0;if(Ne&&A.s){var Ye=BV(A.s0)===0||BV(A.s)===BV(A.s0)?A.s1:A.s0;if(ce=te(A.hasB?0:Math.abs(ke(Ee,!0)-ke(Ye,!0))),ce0?Math.sqrt(ce*(2*Ne-ce)):0,kt=nt>0?Math.max:Math.min;Fe="M"+G+","+H+"V"+(N-it*gt)+"H"+kt(j-(Ne-ce)*nt,G)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+j+","+(N-Ne*gt-Ke)+"V"+(H+Ne*gt+Ke)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+kt(j-(Ne-ce)*nt,G)+","+(H+it*gt)+"Z"}else if(A.hasB)Fe="M"+(G+Ne*nt)+","+H+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+G+","+(H+Ne*gt)+"V"+(N-Ne*gt)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+(G+Ne*nt)+","+N+"H"+(j-Ne*nt)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+j+","+(N-Ne*gt)+"V"+(H+Ne*gt)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+(j-Ne*nt)+","+H+"Z";else{ye=Math.abs(N-H)+ce;var Tt=ye0?Math.sqrt(ce*(2*Ne-ce)):0,Dt=gt>0?Math.max:Math.min;Fe="M"+(G+Tt*nt)+","+H+"V"+Dt(N-(Ne-ce)*gt,H)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+(G+Ne*nt-St)+","+N+"H"+(j-Ne*nt+St)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+(j-Tt*nt)+","+Dt(N-(Ne-ce)*gt,H)+"V"+H+"Z"}}else Fe=Ve}else Fe=Ve;var Zt=Qge(Bd.ensureSingle(F,"path"),u,i,a);if(Zt.style("vector-effect",l?"none":"non-scaling-stroke").attr("d",isNaN((j-G)*(N-H))||W&&e._context.staticPlot?"M0,0Z":Fe).call(A_.setClipUrl,t.layerClipId,e),!u.uniformtext.mode&&_){var Et=A_.makePointStyleFns(d);A_.singlePointStyle(A,Zt,d,Et,e)}s_t(e,t,F,c,B,G,j,H,N,Ne,ce,i,a),t.layerClipId&&A_.hideOutsideRangePoint(A,F.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;A_.setClipUrl(h,P?null:t.layerClipId,e)});K1t.getComponentMethod("errorbars","plot")(e,f,t,i)}function s_t(e,t,r,n,i,a,o,s,u,l,f,c,h){var d=t.xaxis,p=t.yaxis,x=e._fullLayout,b;function v(ye,Ve,ce){var Ye=Bd.ensureSingle(ye,"text").text(Ve).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(A_.font,ce).call(Z1t.convertToTspans,e);return Ye}var k=n[0].trace,E=k.orientation==="h",T=f_t(x,n,i,d,p);b=c_t(k,i);var L=c.mode==="stack"||c.mode==="relative",_=n[i],C=!L||_._outmost,M=_.hasB,m=l&&l-f>Up;if(!T||b==="none"||(_.isBlank||a===o||s===u)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=x.font,A=FV.getBarColor(n[i],k),B=FV.getInsideTextFont(k,i,P,A),F=FV.getOutsideTextFont(k,i,P),U=k.insidetextanchor||"end",G=r.datum();E?d.type==="log"&&G.s0<=0&&(d.range[0]0&&Pe>0,te;m?M?te=r2(N-2*l,W,be,Pe,E)||r2(N,W-2*l,be,Pe,E):E?te=r2(N-(l-f),W,be,Pe,E)||r2(N,W-2*(l-f),be,Pe,E):te=r2(N,W-(l-f),be,Pe,E)||r2(N-2*(l-f),W,be,Pe,E):te=r2(N,W,be,Pe,E),de&&te?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){Ce=Bd.ensureUniformFontSize(e,b==="outside"?F:B),re=v(r,T,Ce);var ke=re.attr("transform");if(re.attr("transform",""),ae=A_.bBox(re.node()),be=ae.width,Pe=ae.height,re.attr("transform",ke),be<=0||Pe<=0){re.remove();return}}var Ee=k.textangle,Me,Ne;b==="outside"?(Ne=k.constraintext==="both"||k.constraintext==="outside",Me=u_t(a,o,s,u,ae,{isHorizontal:E,constrained:Ne,angle:Ee})):(Ne=k.constraintext==="both"||k.constraintext==="inside",Me=i1e(a,o,s,u,ae,{isHorizontal:E,constrained:Ne,angle:Ee,anchor:U,hasB:M,r:l,overhead:f})),Me.fontSize=Ce.size,J1t(k.type==="histogram"?"bar":k.type,Me,x),_.transform=Me;var Fe=Qge(re,x,c,h);Bd.setTransormAndDisplay(Fe,Me)}function r2(e,t,r,n,i){if(e<0||t<0)return!1;var a=r<=e&&n<=t,o=r<=t&&n<=e,s=i?e>=r*(t/n):t>=n*(e/r);return a||o||s}function t1e(e){return e==="auto"?0:e}function r1e(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function i1e(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,u=a.angle||0,l=a.anchor,f=l==="end",c=l==="start",h=a.leftToRight||0,d=(h+1)/2,p=1-d,x=a.hasB,b=a.r,v=a.overhead,k=i.width,E=i.height,T=Math.abs(t-e),L=Math.abs(n-r),_=T>2*Up&&L>2*Up?Up:0;T-=2*_,L-=2*_;var C=t1e(u);u==="auto"&&!(k<=T&&E<=L)&&(k>T||E>L)&&(!(k>L||E>T)||kUp){var A=l_t(e,t,r,n,M,b,v,o,x);m=A.scale,P=A.pad}else m=1,s&&(m=Math.min(1,T/M.x,L/M.y)),P=0;var B=i.left*p+i.right*d,F=(i.top+i.bottom)/2,U=(e+Up)*p+(t-Up)*d,G=(r+n)/2,j=0,H=0;if(c||f){var N=(o?M.x:M.y)/2;b&&(f||x)&&(_+=P);var W=o?Py(e,t):Py(r,n);o?c?(U=e+W*_,j=-W*N):(U=t-W*_,j=W*N):c?(G=r+W*_,H=-W*N):(G=n-W*_,H=W*N)}return{textX:B,textY:F,targetX:U,targetY:G,anchorX:j,anchorY:H,scale:m,rotate:C}}function l_t(e,t,r,n,i,a,o,s,u){var l=Math.max(0,Math.abs(t-e)-2*Up),f=Math.max(0,Math.abs(n-r)-2*Up),c=a-Up,h=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=u?c*2:s?c-o:2*h,p=u?c*2:s?2*h:c-o,x,b,v,k,E;return i.y/i.x>=f/(l-d)?k=f/i.y:i.y/i.x<=(f-p)/l?k=l/i.x:!u&&s?(x=i.x*i.x+i.y*i.y/4,b=-2*i.x*(l-c)-i.y*(f/2-c),v=(l-c)*(l-c)+(f/2-c)*(f/2-c)-c*c,k=(-b+Math.sqrt(b*b-4*x*v))/(2*x)):u?(x=(i.x*i.x+i.y*i.y)/4,b=-i.x*(l/2-c)-i.y*(f/2-c),v=(l/2-c)*(l/2-c)+(f/2-c)*(f/2-c)-c*c,k=(-b+Math.sqrt(b*b-4*x*v))/(2*x)):(x=i.x*i.x/4+i.y*i.y,b=-i.x*(l/2-c)-2*i.y*(f-c),v=(l/2-c)*(l/2-c)+(f-c)*(f-c)-c*c,k=(-b+Math.sqrt(b*b-4*x*v))/(2*x)),k=Math.min(1,k),s?E=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-i.y*k)/2)*(c-(f-i.y*k)/2)))-o):E=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(l-i.x*k)/2)*(c-(l-i.x*k)/2)))-o),{scale:k,pad:E}}function u_t(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,u=a.angle||0,l=i.width,f=i.height,c=Math.abs(t-e),h=Math.abs(n-r),d;o?d=h>2*Up?Up:0:d=c>2*Up?Up:0;var p=1;s&&(p=o?Math.min(1,h/f):Math.min(1,c/l));var x=t1e(u),b=r1e(i,x),v=(o?b.x:b.y)/2,k=(i.left+i.right)/2,E=(i.top+i.bottom)/2,T=(e+t)/2,L=(r+n)/2,_=0,C=0,M=o?Py(t,e):Py(r,n);return o?(T=t-M*d,_=M*v):(L=n+M*d,C=-M*v),{textX:k,textY:E,targetX:T,targetY:L,anchorX:_,anchorY:C,scale:p,rotate:x}}function f_t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=h_t(e,t,r,n,i):a.textinfo?s=d_t(t,r,n,i):s=wA.getValue(a.text,r),wA.coerceString(e_t,s)}function c_t(e,t){var r=wA.getValue(e.textposition,t);return wA.coerceEnumerated(t_t,r)}function h_t(e,t,r,n,i){var a=t[0].trace,o=Bd.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",u=a.type==="waterfall",l=a.type==="funnel",f=a.orientation==="h",c,h,d,p;f?(c="y",h=i,d="x",p=n):(c="x",h=n,d="y",p=i);function x(_){return HI(h,h.c2l(_),!0).text}function b(_){return HI(p,p.c2l(_),!0).text}var v=t[r],k={};k.label=v.p,k.labelLabel=k[c+"Label"]=x(v.p);var E=Bd.castOption(a,v.i,"text");(E===0||E)&&(k.text=E),k.value=v.s,k.valueLabel=k[d+"Label"]=b(v.s);var T={};r_t(T,a,v.i),(s||T.x===void 0)&&(T.x=f?k.value:k.label),(s||T.y===void 0)&&(T.y=f?k.label:k.value),(s||T.xLabel===void 0)&&(T.xLabel=f?k.valueLabel:k.labelLabel),(s||T.yLabel===void 0)&&(T.yLabel=f?k.labelLabel:k.valueLabel),u&&(k.delta=+v.rawS||v.s,k.deltaLabel=b(k.delta),k.final=v.v,k.finalLabel=b(k.final),k.initial=k.final-k.delta,k.initialLabel=b(k.initial)),l&&(k.value=v.s,k.valueLabel=b(k.value),k.percentInitial=v.begR,k.percentInitialLabel=Bd.formatPercent(v.begR),k.percentPrevious=v.difR,k.percentPreviousLabel=Bd.formatPercent(v.difR),k.percentTotal=v.sumR,k.percenTotalLabel=Bd.formatPercent(v.sumR));var L=Bd.castOption(a,v.i,"customdata");return L&&(k.customdata=L),Bd.texttemplateString(o,k,e._d3locale,T,k,a._meta||{})}function d_t(e,t,r,n){var i=e[0].trace,a=i.orientation==="h",o=i.type==="waterfall",s=i.type==="funnel";function u(L){var _=a?n:r;return HI(_,L,!0).text}function l(L){var _=a?r:n;return HI(_,+L,!0).text}var f=i.textinfo,c=e[t],h=f.split("+"),d=[],p,x=function(L){return h.indexOf(L)!==-1};if(x("label")&&d.push(u(e[t].p)),x("text")&&(p=Bd.castOption(i,c.i,"text"),(p===0||p)&&d.push(p)),o){var b=+c.rawS||c.s,v=c.v,k=v-b;x("initial")&&d.push(l(k)),x("delta")&&d.push(l(b)),x("final")&&d.push(l(v))}if(s){x("value")&&d.push(l(c.s));var E=0;x("percent initial")&&E++,x("percent previous")&&E++,x("percent total")&&E++;var T=E>1;x("percent initial")&&(p=Bd.formatPercent(c.begR),T&&(p+=" of initial"),d.push(p)),x("percent previous")&&(p=Bd.formatPercent(c.difR),T&&(p+=" of previous"),d.push(p)),x("percent total")&&(p=Bd.formatPercent(c.sumR),T&&(p+=" of total"),d.push(p))}return d.join("
")}n1e.exports={plot:o_t,toMoveInsideBar:i1e}});var AA=Te((Mur,l1e)=>{"use strict";var yE=Xc(),p_t=$l(),a1e=jl(),v_t=ei().fillText,m_t=UI().getLineWidth,OV=wu().hoverLabelText,y_t=nf().BADNUM;function g_t(e,t,r,n,i){var a=o1e(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,u=o[a.index];return a.color=s1e(s,u),p_t.getComponentMethod("errorbars","hoverInfo")(u,s,a),[a]}}function o1e(e,t,r,n,i){var a=e.cd,o=a[0].trace,s=a[0].t,u=n==="closest",l=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,h,d,p,x,b,v,k;o.orientation==="h"?(h=r,d=t,p="y",x="x",b=G,v=B):(h=t,d=r,p="x",x="y",v=G,b=B);var E=o[p+"period"],T=u||E;function L(te){return C(te,-1)}function _(te){return C(te,1)}function C(te,ke){var Ee=te.w;return te[p]+ke*Ee/2}function M(te){return te[p+"End"]-te[p+"Start"]}var m=u?L:E?function(te){return te.p-M(te)/2}:function(te){return Math.min(L(te),te.p-s.bardelta/2)},P=u?_:E?function(te){return te.p+M(te)/2}:function(te){return Math.max(_(te),te.p+s.bardelta/2)};function A(te,ke,Ee){return i.finiteRange&&(Ee=0),yE.inbox(te-h,ke-h,Ee+Math.min(1,Math.abs(ke-te)/k)-1)}function B(te){return A(m(te),P(te),f)}function F(te){return A(L(te),_(te),c)}function U(te){var ke=te[x];if(l){var Ee=Math.abs(te.rawS)||0;d>0?ke+=Ee:d<0&&(ke-=Ee)}return ke}function G(te){var ke=d,Ee=te.b,Me=U(te);return yE.inbox(Ee-ke,Me-ke,f+(Me-ke)/(Me-Ee)-1)}function j(te){var ke=d,Ee=te.b,Me=U(te);return yE.inbox(Ee-ke,Me-ke,c+(Me-ke)/(Me-Ee)-1)}var H=e[p+"a"],N=e[x+"a"];k=Math.abs(H.r2c(H.range[1])-H.r2c(H.range[0]));function W(te){return(b(te)+v(te))/2}var re=yE.getDistanceFunction(n,b,v,W);if(yE.getClosest(a,re,e),e.index!==!1&&a[e.index].p!==y_t){T||(m=function(te){return Math.min(L(te),te.p-s.bargroupwidth/2)},P=function(te){return Math.max(_(te),te.p+s.bargroupwidth/2)});var ae=e.index,be=a[ae],Pe=o.base?be.b+be.s:be.s;e[x+"0"]=e[x+"1"]=N.c2p(be[x],!0),e[x+"LabelVal"]=Pe;var Ce=s.extents[s.extents.round(be.p)];e[p+"0"]=H.c2p(u?m(be):Ce[0],!0),e[p+"1"]=H.c2p(u?P(be):Ce[1],!0);var de=be.orig_p!==void 0;return e[p+"LabelVal"]=de?be.orig_p:be.p,e.labelLabel=OV(H,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=OV(N,e[x+"LabelVal"],o[x+"hoverformat"]),e.baseLabel=OV(N,be.b,o[x+"hoverformat"]),e.spikeDistance=(j(be)+F(be))/2,e[p+"Spike"]=H.c2p(be.p,!0),v_t(be,o,e),e.hovertemplate=o.hovertemplate,e}}function s1e(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=m_t(e,t);if(a1e.opacity(r))return r;if(a1e.opacity(n)&&i)return n}l1e.exports={hoverPoints:g_t,hoverOnBars:o1e,getTraceColor:s1e}});var f1e=Te((Eur,u1e)=>{"use strict";u1e.exports=function(t,r,n){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var TA=Te((kur,c1e)=>{"use strict";c1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=n[0].trace,s=o.type==="funnel",u=o.orientation==="h",l=[],f;if(r===!1)for(f=0;f{"use strict";h1e.exports={attributes:Ly(),layoutAttributes:OI(),supplyDefaults:r0().supplyDefaults,crossTraceDefaults:r0().crossTraceDefaults,supplyLayoutDefaults:IV(),calc:Fge(),crossTraceCalc:Hb().crossTraceCalc,colorbar:ep(),arraysToCalcdata:pE(),plot:i2().plot,style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:AA().hoverPoints,eventData:f1e(),selectPoints:TA(),moduleType:"trace",name:"bar",basePlotModule:Ah(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var v1e=Te((Lur,p1e)=>{"use strict";p1e.exports=d1e()});var gE=Te((Pur,_1e)=>{"use strict";var x_t=Em(),U0=Zc(),m1e=Ly(),b_t=Ih(),y1e=jc().axisHoverFormat,w_t=Nu().hovertemplateAttrs,Dg=Su().extendFlat,SA=U0.marker,g1e=SA.line;_1e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:U0.xperiod,yperiod:U0.yperiod,xperiod0:U0.xperiod0,yperiod0:U0.yperiod0,xperiodalignment:U0.xperiodalignment,yperiodalignment:U0.yperiodalignment,xhoverformat:y1e("x"),yhoverformat:y1e("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Dg({},SA.symbol,{arrayOk:!1,editType:"plot"}),opacity:Dg({},SA.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Dg({},SA.angle,{arrayOk:!1,editType:"calc"}),size:Dg({},SA.size,{arrayOk:!1,editType:"calc"}),color:Dg({},SA.color,{arrayOk:!1,editType:"style"}),line:{color:Dg({},g1e.color,{arrayOk:!1,dflt:b_t.defaultLine,editType:"style"}),width:Dg({},g1e.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:x_t(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:m1e.offsetgroup,alignmentgroup:m1e.alignmentgroup,selected:{marker:U0.selected.marker,editType:"style"},unselected:{marker:U0.unselected.marker,editType:"style"},text:Dg({},U0.text,{}),hovertext:Dg({},U0.hovertext,{}),hovertemplate:w_t({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:U0.zorder}});var _E=Te((zur,x1e)=>{"use strict";x1e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var bE=Te((Iur,T1e)=>{"use strict";var V0=ei(),A_t=$l(),T_t=jl(),S_t=Pm(),M_t=Gb(),b1e=L3(),xE=gE();function E_t(e,t,r,n){function i(p,x){return V0.coerce(e,t,xE,p,x)}if(w1e(e,t,i,n),t.visible!==!1){S_t(e,t,n,i),i("xhoverformat"),i("yhoverformat");var a=t._hasPreCompStats;a&&(i("lowerfence"),i("upperfence")),i("line.color",(e.marker||{}).color||r),i("line.width"),i("fillcolor",T_t.addOpacity(t.line.color,.5));var o=!1;if(a){var s=i("mean"),u=i("sd");s&&s.length&&(o=!0,u&&u.length&&(o="sd"))}i("whiskerwidth");var l=i("sizemode"),f;l==="quartiles"&&(f=i("boxmean",o)),i("showwhiskers",l==="quartiles"),(l==="sd"||f==="sd")&&i("sdmultiple"),i("width"),i("quartilemethod");var c=!1;if(a){var h=i("notchspan");h&&h.length&&(c=!0)}else V0.validate(e.notchwidth,xE.notchwidth)&&(c=!0);var d=i("notched",c);d&&i("notchwidth"),A1e(e,t,i,{prefix:"box"}),i("zorder")}}function w1e(e,t,r,n){function i(P){var A=0;return P&&P.length&&(A+=1,V0.isArrayOrTypedArray(P[0])&&P[0].length&&(A+=1)),A}function a(P){return V0.validate(e[P],xE[P])}var o=r("y"),s=r("x"),u;if(t.type==="box"){var l=r("q1"),f=r("median"),c=r("q3");t._hasPreCompStats=l&&l.length&&f&&f.length&&c&&c.length,u=Math.min(V0.minRowLength(l),V0.minRowLength(f),V0.minRowLength(c))}var h=i(o),d=i(s),p=h&&V0.minRowLength(o),x=d&&V0.minRowLength(s),b=n.calendar,v={autotypenumbers:n.autotypenumbers},k,E;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var T=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!T?k="h":k="v",E=u;break;case"10":k="v",E=Math.min(u,x);break;case"20":k="h",E=Math.min(u,s.length);break;case"01":k="h",E=Math.min(u,p);break;case"02":k="v",E=Math.min(u,o.length);break;case"12":k="v",E=Math.min(u,x,o.length);break;case"21":k="h",E=Math.min(u,s.length,p);break;case"11":E=0;break;case"22":var _=!1,C;for(C=0;C0?(k="v",d>0?E=Math.min(x,p):E=Math.min(p)):d>0?(k="h",E=Math.min(x)):E=0;if(!E){t.visible=!1;return}t._length=E;var M=r("orientation",k);t._hasPreCompStats?M==="v"&&d===0?(r("x0",0),r("dx",1)):M==="h"&&h===0&&(r("y0",0),r("dy",1)):M==="v"&&d===0?r("x0"):M==="h"&&h===0&&r("y0");var m=A_t.getComponentMethod("calendars","handleTraceDefaults");m(e,t,["x","y"],n)}function A1e(e,t,r,n){var i=n.prefix,a=V0.coerce2(e,t,xE,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var u=r(i+"points",s);u?(r("jitter",u==="all"?.3:0),r("pointpos",u==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),u==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var l=r("hoveron");(l==="all"||l.indexOf("points")!==-1)&&r("hovertemplate"),V0.coerceSelectionMarkerOpacity(t,r)}function k_t(e,t){var r,n;function i(u){return V0.coerce(n._input,n,xE,u)}for(var a=0;a{"use strict";var C_t=$l(),L_t=ei(),P_t=_E();function S1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var NV=ku(),jI=wu(),I_t=Im(),Th=ei(),i0=nf().BADNUM,Fg=Th._;D1e.exports=function(t,r){var n=t._fullLayout,i=jI.getFromId(t,r.xaxis||"x"),a=jI.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",u,l,f,c,h,d,p;r.orientation==="h"?(f=i,c="x",h=a,d="y",p=!!r.yperiodalignment):(f=a,c="y",h=i,d="x",p=!!r.xperiodalignment);var x=R_t(r,d,h,n[s]),b=x[0],v=x[1],k=Th.distinctVals(b,h),E=k.vals,T=k.minDiff/2,L,_,C,M,m,P,A=(r.boxpoints||r.points)==="all"?Th.identity:function(Nt){return Nt.vL.uf};if(r._hasPreCompStats){var B=r[c],F=function(Nt){return f.d2c((r[Nt]||[])[u])},U=1/0,G=-1/0;for(u=0;u=L.q1&&L.q3>=L.med){var H=F("lowerfence");L.lf=H!==i0&&H<=L.q1?H:L1e(L,C,M);var N=F("upperfence");L.uf=N!==i0&&N>=L.q3?N:P1e(L,C,M);var W=F("mean");L.mean=W!==i0?W:M?Th.mean(C,M):(L.q1+L.q3)/2;var re=F("sd");L.sd=W!==i0&&re>=0?re:M?Th.stdev(C,M,L.mean):L.q3-L.q1,L.lo=z1e(L),L.uo=I1e(L);var ae=F("notchspan");ae=ae!==i0&&ae>0?ae:R1e(L,M),L.ln=L.med-ae,L.un=L.med+ae;var be=L.lf,Pe=L.uf;r.boxpoints&&C.length&&(be=Math.min(be,C[0]),Pe=Math.max(Pe,C[M-1])),r.notched&&(be=Math.min(be,L.ln),Pe=Math.max(Pe,L.un)),L.min=be,L.max=Pe}else{Th.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` -`));var Ce;L.med!==i0?Ce=L.med:L.q1!==i0?L.q3!==i0?Ce=(L.q1+L.q3)/2:Ce=L.q1:L.q3!==i0?Ce=L.q3:Ce=0,L.med=Ce,L.q1=L.q3=Ce,L.lf=L.uf=Ce,L.mean=L.sd=Ce,L.ln=L.un=Ce,L.min=L.max=Ce}U=Math.min(U,L.min),G=Math.max(G,L.max),L.pts2=_.filter(A),o.push(L)}}r._extremes[f._id]=jI.findExtremes(f,[U,G],{padded:!0})}else{var de=f.makeCalcdata(r,c),te=D_t(E,T),ke=E.length,Ee=F_t(ke);for(u=0;u=0&&Me0){if(L={},L.pos=L[d]=E[u],_=L.pts=Ee[u].sort(k1e),C=L[c]=_.map(C1e),M=C.length,L.min=C[0],L.max=C[M-1],L.mean=Th.mean(C,M),L.sd=Th.stdev(C,M,L.mean)*r.sdmultiple,L.med=Th.interp(C,.5),M%2&&(Ve||ce)){var Ye,nt;Ve?(Ye=C.slice(0,M/2),nt=C.slice(M/2+1)):ce&&(Ye=C.slice(0,M/2+1),nt=C.slice(M/2)),L.q1=Th.interp(Ye,.5),L.q3=Th.interp(nt,.5)}else L.q1=Th.interp(C,.25),L.q3=Th.interp(C,.75);L.lf=L1e(L,C,M),L.uf=P1e(L,C,M),L.lo=z1e(L),L.uo=I1e(L);var gt=R1e(L,M);L.ln=L.med-gt,L.un=L.med+gt,Ne=Math.min(Ne,L.ln),Fe=Math.max(Fe,L.un),L.pts2=_.filter(A),o.push(L)}r.notched&&Th.isTypedArray(de)&&(de=Array.from(de)),r._extremes[f._id]=jI.findExtremes(f,r.notched?de.concat([Ne,Fe]):de,{padded:!0})}return B_t(o,r),o.length>0?(o[0].t={num:n[s],dPos:T,posLetter:d,valLetter:c,labels:{med:Fg(t,"median:"),min:Fg(t,"min:"),q1:Fg(t,"q1:"),q3:Fg(t,"q3:"),max:Fg(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?Fg(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):Fg(t,"mean:"),lf:Fg(t,"lower fence:"),uf:Fg(t,"upper fence:")}},n[s]++,o):[{t:{empty:!0}}]};function R_t(e,t,r,n){var i=t in e,a=t+"0"in e,o="d"+t in e;if(i||a&&o){var s=r.makeCalcdata(e,t),u=I_t(e,r,t,s).vals;return[u,s]}var l;a?l=e[t+"0"]:"name"in e&&(r.type==="category"||NV(e.name)&&["linear","log"].indexOf(r.type)!==-1||Th.isDateTime(e.name)&&r.type==="date")?l=e.name:l=n;for(var f=r.type==="multicategory"?r.r2c_just_indices(l):r.d2c(l,0,e[t+"calendar"]),c=e._length,h=new Array(c),d=0;d{"use strict";var F1e=wu(),O_t=ei(),q_t=qb().getAxisGroup,B1e=["v","h"];function N_t(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,k=1-a[e+"gap"],E=1-a[e+"groupgap"];for(u=0;u0;if(C==="positive"?(N=M*(_?1:.5),ae=re,W=ae=P):C==="negative"?(N=ae=P,W=M*(_?1:.5),be=re):(N=W=M,ae=be=re),Ee){var Me=T.pointpos,Ne=T.jitter,Fe=T.marker.size/2,ye=0;Me+Ne>=0&&(ye=re*(Me+Ne),ye>N?(ke=!0,de=Fe,Pe=ye):ye>ae&&(de=Fe,Pe=N)),ye<=N&&(Pe=N);var Ve=0;Me-Ne<=0&&(Ve=-re*(Me-Ne),Ve>W?(ke=!0,te=Fe,Ce=Ve):Ve>be&&(te=Fe,Ce=W)),Ve<=W&&(Ce=W)}else Pe=N,Ce=W;var ce=new Array(f.length);for(l=0;l{"use strict";var MA=Jl(),n2=ei(),U_t=Mu(),N1e=5,V_t=.01;function G_t(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;n2.makeTraceGroups(n,r,"trace boxes").each(function(s){var u=MA.select(this),l=s[0],f=l.t,c=l.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){u.remove();return}var h,d;c.orientation==="h"?(h=o,d=a):(h=a,d=o),U1e(u,{pos:h,val:d},c,f,i),V1e(u,{x:a,y:o},c,f),G1e(u,{pos:h,val:d},c,f)})}function U1e(e,t,r,n,i){var a=r.orientation==="h",o=t.val,s=t.pos,u=!!s.rangebreaks,l=n.bPos,f=n.wdPos||0,c=n.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,p=r.notched||!1,x=p?1-2*r.notchwidth:1,b,v;Array.isArray(n.bdPos)?(b=n.bdPos[0],v=n.bdPos[1]):(b=n.bdPos,v=n.bdPos);var k=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?n2.identity:[]);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),k.exit().remove(),k.each(function(E){if(E.empty)return MA.select(this).attr("d","M0,0Z");var T=s.c2l(E.pos+l,!0),L=s.l2p(T-b)+c,_=s.l2p(T+v)+c,C=u?(L+_)/2:s.l2p(T)+c,M=r.whiskerwidth,m=u?L*M+(1-M)*C:s.l2p(T-f)+c,P=u?_*M+(1-M)*C:s.l2p(T+f)+c,A=s.l2p(T-b*x)+c,B=s.l2p(T+v*x)+c,F=r.sizemode==="sd",U=o.c2p(F?E.mean-E.sd:E.q1,!0),G=F?o.c2p(E.mean+E.sd,!0):o.c2p(E.q3,!0),j=n2.constrain(F?o.c2p(E.mean,!0):o.c2p(E.med,!0),Math.min(U,G)+1,Math.max(U,G)-1),H=E.lf===void 0||r.boxpoints===!1||F,N=o.c2p(H?E.min:E.lf,!0),W=o.c2p(H?E.max:E.uf,!0),re=o.c2p(E.ln,!0),ae=o.c2p(E.un,!0);a?MA.select(this).attr("d","M"+j+","+A+"V"+B+"M"+U+","+L+"V"+_+(p?"H"+re+"L"+j+","+B+"L"+ae+","+_:"")+"H"+G+"V"+L+(p?"H"+ae+"L"+j+","+A+"L"+re+","+L:"")+"Z"+(d?"M"+U+","+C+"H"+N+"M"+G+","+C+"H"+W+(h===0?"":"M"+N+","+m+"V"+P+"M"+W+","+m+"V"+P):"")):MA.select(this).attr("d","M"+A+","+j+"H"+B+"M"+L+","+U+"H"+_+(p?"V"+re+"L"+B+","+j+"L"+_+","+ae:"")+"V"+G+"H"+L+(p?"V"+ae+"L"+A+","+j+"L"+L+","+re:"")+"Z"+(d?"M"+C+","+U+"V"+N+"M"+C+","+G+"V"+W+(h===0?"":"M"+m+","+N+"H"+P+"M"+m+","+W+"H"+P):""))})}function V1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,u=r.boxpoints||r.points;n2.seedPseudoRandom();var l=function(h){return h.forEach(function(d){d.t=n,d.trace=r}),h},f=e.selectAll("g.points").data(u?l:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(h){var d,p=h.pts2,x=Math.max((h.max-h.min)/10,h.q3-h.q1),b=x*1e-9,v=x*V_t,k=[],E=0,T;if(r.jitter){if(x===0)for(E=1,k=new Array(p.length),d=0;dh.lo&&(P.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(U_t.translatePoints,i,a)}function G1e(e,t,r,n){var i=t.val,a=t.pos,o=!!a.rangebreaks,s=n.bPos,u=n.bPosPxOffset||0,l=r.boxmean||(r.meanline||{}).visible,f,c;Array.isArray(n.bdPos)?(f=n.bdPos[0],c=n.bdPos[1]):(f=n.bdPos,c=n.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?n2.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var p=a.c2l(d.pos+s,!0),x=a.l2p(p-f)+u,b=a.l2p(p+c)+u,v=o?(x+b)/2:a.l2p(p)+u,k=i.c2p(d.mean,!0),E=i.c2p(d.mean-d.sd,!0),T=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?MA.select(this).attr("d","M"+k+","+x+"V"+b+(l==="sd"?"m0,0L"+E+","+v+"L"+k+","+x+"L"+T+","+v+"Z":"")):MA.select(this).attr("d","M"+x+","+k+"H"+b+(l==="sd"?"m0,0L"+v+","+E+"L"+x+","+k+"L"+v+","+T+"Z":""))})}H1e.exports={plot:G_t,plotBoxAndWhiskers:U1e,plotPoints:V1e,plotBoxMean:G1e}});var YI=Te((Our,W1e)=>{"use strict";var VV=Jl(),GV=jl(),HV=Mu();function H_t(e,t,r){var n=r||VV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=VV.select(this),o=i[0].trace,s=o.line.width;function u(c,h,d,p){c.style("stroke-width",h+"px").call(GV.stroke,d).call(GV.fill,p)}var l=a.selectAll("path.box");if(o.type==="candlestick")l.each(function(c){if(!c.empty){var h=VV.select(this),d=o[c.dir];u(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{u(l,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(GV.stroke,o.line.color);var f=a.selectAll("path.point");HV.pointStyle(f,o,e)}})}function W_t(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?HV.selectedPointStyle(i,n):HV.pointStyle(i,n,e)}W1e.exports={style:H_t,styleOnSelect:W_t}});var jV=Te((qur,Y1e)=>{"use strict";var j_t=wu(),WV=ei(),T_=Xc(),j1e=jl(),X_t=WV.fillText;function Z_t(e,t,r,n){var i=e.cd,a=i[0].trace,o=a.hoveron,s=[],u;return o.indexOf("boxes")!==-1&&(s=s.concat(X1e(e,t,r,n))),o.indexOf("points")!==-1&&(u=Z1e(e,t,r)),n==="closest"?u?[u]:s:(u&&s.push(u),s)}function X1e(e,t,r,n){var i=e.cd,a=e.xa,o=e.ya,s=i[0].trace,u=i[0].t,l=s.type==="violin",f,c,h,d,p,x,b,v,k,E,T,L=u.bdPos,_,C,M=u.wHover,m=function(Fe){return h.c2l(Fe.pos)+u.bPos-h.c2l(x)};l&&s.side!=="both"?(s.side==="positive"&&(k=function(Fe){var ye=m(Fe);return T_.inbox(ye,ye+M,E)},_=L,C=0),s.side==="negative"&&(k=function(Fe){var ye=m(Fe);return T_.inbox(ye-M,ye,E)},_=0,C=L)):(k=function(Fe){var ye=m(Fe);return T_.inbox(ye-M,ye+M,E)},_=C=L);var P;l?P=function(Fe){return T_.inbox(Fe.span[0]-p,Fe.span[1]-p,E)}:P=function(Fe){return T_.inbox(Fe.min-p,Fe.max-p,E)},s.orientation==="h"?(p=t,x=r,b=P,v=k,f="y",h=o,c="x",d=a):(p=r,x=t,b=k,v=P,f="x",h=a,c="y",d=o);var A=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));E=e.maxHoverDistance-A,T=e.maxSpikeDistance-A;function B(Fe){return(b(Fe)+v(Fe))/2}var F=T_.getDistanceFunction(n,b,v,B);if(T_.getClosest(i,F,e),e.index===!1)return[];var U=i[e.index],G=s.line.color,j=(s.marker||{}).color;j1e.opacity(G)&&s.line.width?e.color=G:j1e.opacity(j)&&s.boxpoints?e.color=j:e.color=s.fillcolor,e[f+"0"]=h.c2p(U.pos+u.bPos-C,!0),e[f+"1"]=h.c2p(U.pos+u.bPos+_,!0),e[f+"LabelVal"]=U.orig_p!==void 0?U.orig_p:U.pos;var H=f+"Spike";e.spikeDistance=B(U)*T/E,e[H]=h.c2p(U.pos,!0);var N=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,W=s.boxpoints||s.points,re=W&&N?["max","uf","q3","med","mean","q1","lf","min"]:W&&!N?["max","uf","q3","med","q1","lf","min"]:!W&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],ae=d.range[1]{"use strict";K1e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var XV=Te((Uur,$1e)=>{"use strict";$1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u;if(r===!1)for(s=0;s{"use strict";Q1e.exports={attributes:gE(),layoutAttributes:_E(),supplyDefaults:bE().supplyDefaults,crossTraceDefaults:bE().crossTraceDefaults,supplyLayoutDefaults:WI().supplyLayoutDefaults,calc:UV(),crossTraceCalc:XI().crossTraceCalc,plot:ZI().plot,style:YI().style,styleOnSelect:YI().styleOnSelect,hoverPoints:jV().hoverPoints,eventData:J1e(),selectPoints:XV(),moduleType:"trace",name:"box",basePlotModule:Ah(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var r_e=Te((Gur,t_e)=>{"use strict";t_e.exports=e_e()});var EA=Te((Hur,i_e)=>{"use strict";var n0=Zc(),Y_t=Gf(),K_t=gc(),ZV=jc().axisHoverFormat,J_t=Nu().hovertemplateAttrs,$_t=Nu().texttemplateAttrs,Q_t=nc(),Lv=Su().extendFlat;i_e.exports=Lv({z:{valType:"data_array",editType:"calc"},x:Lv({},n0.x,{impliedEdits:{xtype:"array"}}),x0:Lv({},n0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Lv({},n0.dx,{impliedEdits:{xtype:"scaled"}}),y:Lv({},n0.y,{impliedEdits:{ytype:"array"}}),y0:Lv({},n0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Lv({},n0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Lv({},n0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Lv({},n0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Lv({},n0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Lv({},n0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Lv({},n0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Lv({},n0.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:ZV("x"),yhoverformat:ZV("y"),zhoverformat:ZV("z",1),hovertemplate:J_t(),texttemplate:$_t({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:K_t({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Lv({},Y_t.showlegend,{dflt:!1}),zorder:n0.zorder},Q_t("",{cLetter:"z",autoColorDflt:!1}))});var JI=Te((Wur,a_e)=>{"use strict";var ext=ku(),KI=ei(),txt=$l();a_e.exports=function(t,r,n,i,a,o){var s=n("z");a=a||"x",o=o||"y";var u,l;if(s===void 0||!s.length)return 0;if(KI.isArray1D(s)){u=n(a),l=n(o);var f=KI.minRowLength(u),c=KI.minRowLength(l);if(f===0||c===0)return 0;r._length=Math.min(f,c,s.length)}else{if(u=n_e(a,n),l=n_e(o,n),!rxt(s))return 0;n("transpose"),r._length=null}var h=txt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function n_e(e,t){var r=t(e),n=r?t(e+"type","array"):"scaled";return n==="scaled"&&(t(e+"0"),t("d"+e)),r}function rxt(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var o_e=ei();s_e.exports=function(t,r){t("texttemplate");var n=o_e.extendFlat({},r.font,{color:"auto",size:"auto"});o_e.coerceFont(t,"textfont",n)}});var YV=Te((Xur,l_e)=>{"use strict";l_e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var c_e=Te((Zur,f_e)=>{"use strict";var u_e=ei(),ixt=JI(),nxt=wE(),axt=Pm(),oxt=YV(),sxt=ed(),lxt=EA();f_e.exports=function(t,r,n,i){function a(s,u){return u_e.coerce(t,r,lxt,s,u)}var o=ixt(t,r,a,i);if(!o){r.visible=!1;return}axt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),nxt(a,i),oxt(t,r,a,i),a("hoverongaps"),a("connectgaps",u_e.isArray1D(r.z)&&r.zsmooth!==!1),sxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var KV=Te((Yur,h_e)=>{"use strict";var kA=ku();h_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return kA(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return kA(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(kA(i))if(i=Number(i),kA(r[e])){if(r[e]>i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0},max:function(e,t,r,n){var i=n[t];if(kA(i))if(i=Number(i),kA(r[e])){if(r[e]{"use strict";d_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";p_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var CA=nf(),a2=CA.ONEAVGYEAR,v_e=CA.ONEAVGMONTH,QI=CA.ONEDAY,m_e=CA.ONEHOUR,y_e=CA.ONEMIN,g_e=CA.ONESEC,__e=wu().tickIncrement;w_e.exports=function(t,r,n,i,a){var o=-1.1*r,s=-.1*r,u=t-s,l=n[0],f=n[1],c=Math.min($I(l+s,l+u,i,a),$I(f+s,f+u,i,a)),h=Math.min($I(l+o,l+s,i,a),$I(f+o,f+s,i,a)),d,p;if(c>h&&hQI){var x=d===a2?1:6,b=d===a2?"M12":"M1";return function(v,k){var E=i.c2d(v,a2,a),T=E.indexOf("-",x);T>0&&(E=E.substr(0,T));var L=i.d2c(E,0,a);if(Lg_e?e>QI?e>a2*1.1?a2:e>v_e*1.1?v_e:QI:e>m_e?m_e:e>y_e?y_e:g_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function uxt(e,t,r,n,i,a){if(n&&e>QI){var o=b_e(t,i,a),s=b_e(r,i,a),u=e===a2?0:1;return o[u]!==s[u]}return Math.floor(r/e)-Math.floor(t/e)>.1}function b_e(e,t,r){var n=t.c2d(e,a2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var rG=Te((Qur,E_e)=>{"use strict";var eG=ku(),Vp=ei(),A_e=$l(),G0=wu(),{hasColorscale:T_e}=yp(),S_e=gp(),fxt=pE(),M_e=KV(),cxt=JV(),hxt=$V(),dxt=QV();function pxt(e,t){var r=[],n=[],i=t.orientation==="h",a=G0.getFromId(e,i?t.yaxis:t.xaxis),o=i?"y":"x",s={x:"y",y:"x"}[o],u=t[o+"calendar"],l=t.cumulative,f,c=tG(e,t,a,o),h=c[0],d=c[1],p=typeof h.size=="string",x=[],b=p?x:h,v=[],k=[],E=[],T=0,L=t.histnorm,_=t.histfunc,C=L.indexOf("density")!==-1,M,m,P;l.enabled&&C&&(L=L.replace(/ ?density$/,""),C=!1);var A=_==="max"||_==="min",B=A?null:0,F=M_e.count,U=cxt[L],G=!1,j=function(ye){return a.r2c(ye,0,u)},H;for(Vp.isArrayOrTypedArray(t[s])&&_!=="count"&&(H=t[s],G=_==="avg",F=M_e[_]),f=j(h.start),m=j(h.end)+(f-G0.tickIncrement(f,h.size,!1,u))/1e6;f=0&&P=Me;f--)if(n[f]){Ne=f;break}for(f=Me;f<=Ne;f++)if(eG(r[f])&&eG(n[f])){var Fe={p:r[f],s:n[f],b:0};l.enabled||(Fe.pts=E[f],ae?Fe.ph0=Fe.ph1=E[f].length?d[E[f][0]]:r[f]:(t._computePh=!0,Fe.ph0=te(x[f]),Fe.ph1=te(x[f+1],!0))),Ee.push(Fe)}return Ee.length===1&&(Ee[0].width1=G0.tickIncrement(Ee[0].p,h.size,!1,u)-Ee[0].p),T_e(t,"marker")&&S_e(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),T_e(t,"marker.line")&&S_e(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),fxt(Ee,t),Vp.isArrayOrTypedArray(t.selectedpoints)&&Vp.tagSelected(Ee,t,Ce),Ee}function tG(e,t,r,n,i){var a=n+"bins",o=e._fullLayout,s=t["_"+n+"bingroup"],u=o._histogramBinOpts[s],l=o.barmode==="overlay",f,c,h,d,p,x,b,v=function(de){return r.r2c(de,0,d)},k=function(de){return r.c2r(de,0,d)},E=r.type==="date"?function(de){return de||de===0?Vp.cleanDate(de,null,d):null}:function(de){return eG(de)?Number(de):null};function T(de,te,ke){te[de+"Found"]?(te[de]=E(te[de]),te[de]===null&&(te[de]=ke[de])):(x[de]=te[de]=ke[de],Vp.nestedProperty(c[0],a+"."+de).set(ke[de]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{c=u.traces;var L=[],_=!0,C=!1,M=!1;for(f=0;fr.r2l(H)&&(W=G0.tickIncrement(W,u.size,!0,d)),F.start=r.l2r(W),j||Vp.nestedProperty(t,a+".start").set(F.start)}var re=u.end,ae=r.r2l(B.end),be=ae!==void 0;if((u.endFound||be)&&ae!==r.r2l(re)){var Pe=be?ae:Vp.aggNums(Math.max,null,p);F.end=r.l2r(Pe),be||Vp.nestedProperty(t,a+".start").set(F.end)}var Ce="autobin"+n;return t._input[Ce]===!1&&(t._input[a]=Vp.extendFlat({},t[a]||{}),delete t._input[Ce],delete t[Ce]),[F,p]}function vxt(e,t,r,n,i){var a=e._fullLayout,o=mxt(e,t),s=!1,u=1/0,l=[t],f,c,h;for(f=0;f=0;n--)s(n);else if(t==="increasing"){for(n=1;n=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}E_e.exports={calc:pxt,calcAllAutoBins:tG}});var D_e=Te((efr,R_e)=>{"use strict";var k_e=ei(),LA=wu(),C_e=KV(),gxt=JV(),_xt=$V(),xxt=QV(),L_e=rG().calcAllAutoBins;R_e.exports=function(t,r){var n=LA.getFromId(t,r.xaxis),i=LA.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(Ue){return n.r2c(Ue,0,a)},u=function(Ue){return i.r2c(Ue,0,o)},l=function(Ue){return n.c2r(Ue,0,a)},f=function(Ue){return i.c2r(Ue,0,o)},c,h,d,p,x=L_e(t,r,n,"x"),b=x[0],v=x[1],k=L_e(t,r,i,"y"),E=k[0],T=k[1],L=r._length;v.length>L&&v.splice(L,v.length-L),T.length>L&&T.splice(L,T.length-L);var _=[],C=[],M=[],m=typeof b.size=="string",P=typeof E.size=="string",A=[],B=[],F=m?A:b,U=P?B:E,G=0,j=[],H=[],N=r.histnorm,W=r.histfunc,re=N.indexOf("density")!==-1,ae=W==="max"||W==="min",be=ae?null:0,Pe=C_e.count,Ce=gxt[N],de=!1,te=[],ke=[],Ee="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";Ee&&W!=="count"&&(de=W==="avg",Pe=C_e[W]);var Me=b.size,Ne=s(b.start),Fe=s(b.end)+(Ne-LA.tickIncrement(Ne,Me,!1,a))/1e6;for(c=Ne;c=0&&d=0&&p{"use strict";var zy=ei(),F_e=nf().BADNUM,B_e=Im();O_e.exports=function(t,r,n,i,a,o){var s=t._length,u=r.makeCalcdata(t,i),l=n.makeCalcdata(t,a);u=B_e(t,r,i,u).vals,l=B_e(t,n,a,l).vals;var f=t.text,c=f!==void 0&&zy.isArray1D(f),h=t.hovertext,d=h!==void 0&&zy.isArray1D(h),p,x,b=zy.distinctVals(u),v=b.vals,k=zy.distinctVals(l),E=k.vals,T=[],L,_,C=E.length,M=v.length;for(p=0;p{"use strict";var bxt=ku(),wxt=ei(),tR=nf().BADNUM;q_e.exports=function(t,r,n,i){var a,o,s,u,l,f;function c(v){if(bxt(v))return+v}if(r&&r.transpose){for(a=0,l=0;l{"use strict";var Axt=ei(),N_e=.01,Txt=[[-1,0],[1,0],[0,-1],[0,1]];function Sxt(e){return .5-.25*Math.min(1,e*.5)}V_e.exports=function(t,r){var n=1,i;for(U_e(t,r),i=0;iN_e;i++)n=U_e(t,r,Sxt(n));return n>N_e&&Axt.log("interp2d didn't converge quickly",n),t};function U_e(e,t,r){var n=0,i,a,o,s,u,l,f,c,h,d,p,x,b;for(s=0;sx&&(n=Math.max(n,Math.abs(e[a][o]-p)/(b-x))))}return n}});var nR=Te((nfr,G_e)=>{"use strict";var Mxt=ei().maxRowLength;G_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],u=Mxt(t),l,f,c,h,d,p,x,b;for(f=0;f=0;d--)h=i[d],f=h[0],c=h[1],p=((n[[f-1,c]]||s)[2]+(n[[f+1,c]]||s)[2]+(n[[f,c-1]]||s)[2]+(n[[f,c+1]]||s)[2])/20,p&&(x[h]=[f,c,p],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in x)n[h]=x[h],r.push(x[h])}return r.sort(function(v,k){return k[2]-v[2]})}});var iG=Te((afr,j_e)=>{"use strict";var H_e=$l(),W_e=ei().isArrayOrTypedArray;j_e.exports=function(t,r,n,i,a,o){var s=[],u=H_e.traceIs(t,"contour"),l=H_e.traceIs(t,"histogram"),f,c,h,d=W_e(r)&&r.length>1;if(d&&!l&&o.type!=="category"){var p=r.length;if(p<=a){if(u)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var X_e=$l(),nG=ei(),aR=wu(),Z_e=Im(),Ext=D_e(),kxt=gp(),Cxt=eR(),Lxt=rR(),Pxt=iR(),zxt=nR(),oR=iG(),aG=nf().BADNUM;K_e.exports=function(t,r){var n=aR.getFromId(t,r.xaxis||"x"),i=aR.getFromId(t,r.yaxis||"y"),a=X_e.traceIs(r,"contour"),o=X_e.traceIs(r,"histogram"),s=a?"best":r.zsmooth,u,l,f,c,h,d,p,x,b,v,k;if(n._minDtick=0,i._minDtick=0,o)k=Ext(t,r),c=k.orig_x,u=k.x,l=k.x0,f=k.dx,x=k.orig_y,h=k.y,d=k.y0,p=k.dy,b=k.z;else{var E=r.z;nG.isArray1D(E)?(Cxt(r,n,i,"x","y",["z"]),u=r._x,h=r._y,E=r._z):(c=r.x?n.makeCalcdata(r,"x"):[],x=r.y?i.makeCalcdata(r,"y"):[],u=Z_e(r,n,"x",c).vals,h=Z_e(r,i,"y",x).vals,r._x=u,r._y=h),l=r.x0,f=r.dx,d=r.y0,p=r.dy,b=Lxt(E,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=Ixt(u,h,b),o||(u=Y_e(u),h=Y_e(h),r._x=u,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=zxt(b),Pxt(b,r._emptypoints));function T(F){s=r._input.zsmooth=r.zsmooth=!1,nG.warn('cannot use zsmooth: "fast": '+F)}function L(F){if(F.length>1){var U=(F[F.length-1]-F[0])/(F.length-1),G=Math.abs(U/100);for(v=0;vG)return!1}return!0}r._islinear=!1,n.type==="log"||i.type==="log"?s==="fast"&&T("log axis found"):L(u)?L(h)?r._islinear=!0:s==="fast"&&T("y scale is not linear"):s==="fast"&&T("x scale is not linear");var _=nG.maxRowLength(b),C=r.xtype==="scaled"?"":u,M=oR(r,C,l,f,_,n),m=r.ytype==="scaled"?"":h,P=oR(r,m,d,p,b.length,i);r._extremes[n._id]=aR.findExtremes(n,M),r._extremes[i._id]=aR.findExtremes(i,P);var A={x:M,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&c&&(A.orig_x=c),r.yperiodalignment&&x&&(A.orig_y=x),C&&C.length===M.length-1&&(A.xCenter=C),m&&m.length===P.length-1&&(A.yCenter=m),o&&(A.xRanges=k.xRanges,A.yRanges=k.yRanges,A.pts=k.pts),a||kxt(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var B={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};A.xfill=oR(B,C,l,f,_,n),A.yfill=oR(B,m,d,p,b.length,i)}return[A]};function Y_e(e){for(var t=[],r=e.length,n=0;n{"use strict";lR.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];lR.STYLE=lR.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var sG=Te((lfr,$_e)=>{"use strict";var J_e=uR(),Rxt=Mu(),oG=ei(),PA=null;function Dxt(){if(PA!==null)return PA;PA=!1;var e=oG.isSafari()||oG.isMacWKWebView()||oG.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(J_e.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")PA=t.some(function(o){return r.apply(null,o)});else{var n=Rxt.tester.append("image").attr("style",J_e.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;PA=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return PA}$_e.exports=Dxt});var fR=Te((ufr,sxe)=>{"use strict";var Q_e=Jl(),Fxt=cd(),Bxt=$l(),Oxt=Mu(),qxt=wu(),H0=ei(),exe=Xf(),Nxt=tI(),Uxt=jl(),Vxt=_c().extractOpts,Gxt=_c().makeColorScaleFuncFromTrace,Hxt=jv(),Wxt=Qh(),lG=Wxt.LINE_SPACING,jxt=sG(),Xxt=uR().STYLE,axe="heatmap-label";function oxe(e){return e.selectAll("g."+axe)}function txe(e){oxe(e).remove()}sxe.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;H0.makeTraceGroups(n,r,"hm").each(function(o){var s=Q_e.select(this),u=o[0],l=u.trace,f=l.xgap||0,c=l.ygap||0,h=u.z,d=u.x,p=u.y,x=u.xCenter,b=u.yCenter,v=Bxt.traceIs(l,"contour"),k=v?"best":l.zsmooth,E=h.length,T=H0.maxRowLength(h),L=!1,_=!1,C,M,m,P,A,B,F,U;for(B=0;C===void 0&&B0;)M=i.c2p(d[B]),B--;for(M0;)A=a.c2p(p[B]),B--;A=i._length||M<=0||P>=a._length||A<=0;if(W){var re=s.selectAll("image").data([]);re.exit().remove(),txe(s);return}var ae,be;G==="fast"?(ae=T,be=E):(ae=H,be=N);var Pe=document.createElement("canvas");Pe.width=ae,Pe.height=be;var Ce=Pe.getContext("2d",{willReadFrequently:!0}),de=Gxt(l,{noNumericCheck:!0,returnArray:!0}),te,ke;G==="fast"?(te=L?function(Ei){return T-1-Ei}:H0.identity,ke=_?function(Ei){return E-1-Ei}:H0.identity):(te=function(Ei){return H0.constrain(Math.round(i.c2p(d[Ei])-C),0,H)},ke=function(Ei){return H0.constrain(Math.round(a.c2p(p[Ei])-P),0,N)});var Ee=ke(0),Me=[Ee,Ee],Ne=L?0:1,Fe=_?0:1,ye=0,Ve=0,ce=0,Ye=0,nt,gt,Nt,it,Ke;function kt(Ei,Vi){if(Ei!==void 0){var ti=de(Ei);return ti[0]=Math.round(ti[0]),ti[1]=Math.round(ti[1]),ti[2]=Math.round(ti[2]),ye+=Vi,Ve+=ti[0]*Vi,ce+=ti[1]*Vi,Ye+=ti[2]*Vi,ti}return[0,0,0,0]}function Tt(Ei,Vi,ti,en){var Yr=Ei[ti.bin0];if(Yr===void 0)return kt(void 0,1);var oi=Ei[ti.bin1],Bi=Vi[ti.bin0],an=Vi[ti.bin1],rn=oi-Yr||0,Fi=Bi-Yr||0,Ri;return oi===void 0?an===void 0?Ri=0:Bi===void 0?Ri=2*(an-Yr):Ri=(2*an-Bi-Yr)*2/3:an===void 0?Bi===void 0?Ri=0:Ri=(2*Yr-oi-Bi)*2/3:Bi===void 0?Ri=(2*an-oi-Yr)*2/3:Ri=an+Yr-oi-Bi,kt(Yr+ti.frac*rn+en.frac*(Fi+ti.frac*Ri))}if(G!=="default"){var St=0,Dt;try{Dt=new Uint8Array(ae*be*4)}catch(Ei){Dt=new Array(ae*be*4)}if(G==="smooth"){var Zt=x||d,Et=b||p,Ae=new Array(Zt.length),at=new Array(Et.length),wt=new Array(H),vt=x?ixe:rxe,st=b?ixe:rxe,Ue,rt,$e;for(B=0;Brr||rr>a._length))for(F=pe;FDr||Dr>i._length)){var Mr=Nxt({x:Hr,y:Pt},l,e._fullLayout);Mr.x=Hr,Mr.y=Pt;var Fr=u.z[B][F];Fr===void 0?(Mr.z="",Mr.zLabel=""):(Mr.z=Fr,Mr.zLabel=qxt.tickText(Re,Fr,"hover").text);var di=u.text&&u.text[B]&&u.text[B][F];(di===void 0||di===!1)&&(di=""),Mr.text=di;var Di=H0.texttemplateString(xe,Mr,e._fullLayout._d3locale,Mr,l._meta||{});if(Di){var Ii=Di.split("
"),Ci=Ii.length,nn=0;for(U=0;U{"use strict";lxe.exports={min:"zmin",max:"zmax"}});var cR=Te((cfr,uxe)=>{"use strict";var Zxt=Jl();uxe.exports=function(t){Zxt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var dR=Te((hfr,cxe)=>{"use strict";var fxe=Xc(),AE=ei(),hR=AE.isArrayOrTypedArray,Yxt=wu(),Kxt=_c().extractOpts;cxe.exports=function(t,r,n,i,a){a||(a={});var o=a.isContour,s=t.cd[0],u=s.trace,l=t.xa,f=t.ya,c=s.x,h=s.y,d=s.z,p=s.xCenter,x=s.yCenter,b=s.zmask,v=u.zhoverformat,k=c,E=h,T,L,_,C;if(t.index!==!1){try{_=Math.round(t.index[1]),C=Math.round(t.index[0])}catch(re){AE.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(_<0||_>=d[0].length||C<0||C>d.length)return}else{if(fxe.inbox(r-c[0],r-c[c.length-1],0)>0||fxe.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var M;for(k=[2*c[0]-c[1]],M=1;M{"use strict";hxe.exports={attributes:EA(),supplyDefaults:c_e(),calc:sR(),plot:fR(),colorbar:S_(),style:cR(),hoverPoints:dR(),moduleType:"trace",name:"heatmap",basePlotModule:Ah(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var vxe=Te((pfr,pxe)=>{"use strict";pxe.exports=dxe()});var uG=Te((vfr,mxe)=>{"use strict";mxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var gxe=Te((mfr,yxe)=>{"use strict";yxe.exports={eventDataKeys:["binNumber"]}});var pR=Te((yfr,bxe)=>{"use strict";var Pv=Ly(),_xe=jc().axisHoverFormat,Jxt=Nu().hovertemplateAttrs,$xt=Nu().texttemplateAttrs,fG=gc(),xxe=uG(),Qxt=gxe(),cG=Su().extendFlat;bxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:_xe("x"),yhoverformat:_xe("y"),text:cG({},Pv.text,{}),hovertext:cG({},Pv.hovertext,{}),orientation:Pv.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:xxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:xxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:Jxt({},{keys:Qxt.eventDataKeys}),texttemplate:$xt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:cG({},Pv.textposition,{arrayOk:!1}),textfont:fG({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:fG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:fG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Pv.insidetextanchor,textangle:Pv.textangle,cliponaxis:Pv.cliponaxis,constraintext:Pv.constraintext,marker:Pv.marker,offsetgroup:Pv.offsetgroup,alignmentgroup:Pv.alignmentgroup,selected:Pv.selected,unselected:Pv.unselected,zorder:Pv.zorder}});var Sxe=Te((gfr,Txe)=>{"use strict";var wxe=$l(),TE=ei(),Axe=jl(),ebt=r0().handleText,tbt=qI(),rbt=pR();Txe.exports=function(t,r,n,i){function a(k,E){return TE.coerce(t,r,rbt,k,E)}var o=a("x"),s=a("y"),u=a("cumulative.enabled");u&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var l=a("textposition");ebt(t,r,i,a,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat");var f=a("orientation",s&&!o?"h":"v"),c=f==="v"?"x":"y",h=f==="v"?"y":"x",d=o&&s?Math.min(TE.minRowLength(o)&&TE.minRowLength(s)):TE.minRowLength(r[c]||[]);if(!d){r.visible=!1;return}r._length=d;var p=wxe.getComponentMethod("calendars","handleTraceDefaults");p(t,r,["x","y"],i);var x=r[h];x&&a("histfunc"),a("histnorm"),a("autobin"+c),tbt(t,r,a,n,i),TE.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,v=wxe.getComponentMethod("errorbars","supplyDefaults");v(t,r,b||Axe.defaultLine,{axis:"y"}),v(t,r,b||Axe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var mR=Te((_fr,kxe)=>{"use strict";var SE=ei(),ibt=Wc(),vR=$l().traceIs,nbt=Gb(),abt=r0().validateCornerradius,Mxe=SE.nestedProperty,hG=qb().getAxisGroup,Exe=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],obt=["x","y"];kxe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,u,l,f,c,h,d;function p(G,j){return SE.coerce(s._input,s,s._module.attributes,G,j)}function x(G){return G.orientation==="v"?"x":"y"}function b(G,j){var H=ibt.getFromTrace({_fullLayout:r},G,j);return H.type}function v(G,j,H){var N=G.uid+"__"+H;j||(j=N);var W=b(G,H),re=G[H+"calendar"]||"",ae=n[j],be=!0;ae&&(W===ae.axType&&re===ae.calendar?(be=!1,ae.traces.push(G),ae.dirs.push(H)):(j=N,W!==ae.axType&&SE.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+W,"axis","with bins on","type:"+ae.axType,"axis."].join(" ")),re!==ae.calendar&&SE.warn(["Attempted to group the bins of trace",G.index,"set with a",re,"calendar","with bins",ae.calendar?"on a "+ae.calendar+" calendar":"w/o a set calendar"].join(" ")))),be&&(n[j]={traces:[G],dirs:[H],axType:W,calendar:G[H+"calendar"]||""}),G["_"+H+"bingroup"]=j}for(c=0;c{"use strict";var sbt=AA().hoverPoints,lbt=wu().hoverLabelText;Cxe.exports=function(t,r,n,i,a){var o=sbt(t,r,n,i,a);if(o){t=o[0];var s=t.cd[t.index],u=t.cd[0].trace;if(!u.cumulative.enabled){var l=u.orientation==="h"?"y":"x";t[l+"Label"]=lbt(t[l+"a"],[s.ph0,s.ph1],u[l+"hoverformat"])}return o}}});var dG=Te((bfr,Pxe)=>{"use strict";Pxe.exports=function(t,r,n,i,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(n.cumulative||{}).enabled){var o=Array.isArray(a)?i[0].pts[a[0]][a[1]]:i[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex;var s;if(n._indexToPoints){s=[];for(var u=0;u{"use strict";zxe.exports={attributes:pR(),layoutAttributes:OI(),supplyDefaults:Sxe(),crossTraceDefaults:mR(),supplyLayoutDefaults:IV(),calc:rG().calc,crossTraceCalc:Hb().crossTraceCalc,plot:i2().plot,layerName:"barlayer",style:N0().style,styleOnSelect:N0().styleOnSelect,colorbar:ep(),hoverPoints:Lxe(),selectPoints:TA(),eventData:dG(),moduleType:"trace",name:"histogram",basePlotModule:Ah(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Dxe=Te((Afr,Rxe)=>{"use strict";Rxe.exports=Ixe()});var gR=Te((Tfr,Bxe)=>{"use strict";var Vm=pR(),Fxe=uG(),yR=EA(),ubt=Gf(),pG=jc().axisHoverFormat,fbt=Nu().hovertemplateAttrs,cbt=Nu().texttemplateAttrs,hbt=nc(),ME=Su().extendFlat;Bxe.exports=ME({x:Vm.x,y:Vm.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Vm.histnorm,histfunc:Vm.histfunc,nbinsx:Vm.nbinsx,xbins:Fxe("x"),nbinsy:Vm.nbinsy,ybins:Fxe("y"),autobinx:Vm.autobinx,autobiny:Vm.autobiny,bingroup:ME({},Vm.bingroup,{}),xbingroup:ME({},Vm.bingroup,{}),ybingroup:ME({},Vm.bingroup,{}),xgap:yR.xgap,ygap:yR.ygap,zsmooth:yR.zsmooth,xhoverformat:pG("x"),yhoverformat:pG("y"),zhoverformat:pG("z",1),hovertemplate:fbt({},{keys:"z"}),texttemplate:cbt({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:yR.textfont,showlegend:ME({},ubt.showlegend,{dflt:!1})},hbt("",{cLetter:"z",autoColorDflt:!1}))});var vG=Te((Sfr,qxe)=>{"use strict";var dbt=$l(),Oxe=ei();qxe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Oxe.minRowLength(a),u=Oxe.minRowLength(o);if(!s||!u){r.visible=!1;return}r._length=Math.min(s,u);var l=dbt.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y"],i);var f=n("z")||n("marker.color");f&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}});var Uxe=Te((Mfr,Nxe)=>{"use strict";var pbt=ei(),vbt=vG(),mbt=YV(),ybt=ed(),gbt=wE(),_bt=gR();Nxe.exports=function(t,r,n,i){function a(o,s){return pbt.coerce(t,r,_bt,o,s)}vbt(t,r,a,i),r.visible!==!1&&(mbt(t,r,a,i),ybt(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),gbt(a,i),a("xhoverformat"),a("yhoverformat"))}});var Hxe=Te((Efr,Gxe)=>{"use strict";var xbt=dR(),Vxe=wu().hoverLabelText;Gxe.exports=function(t,r,n,i,a){var o=xbt(t,r,n,i,a);if(o){t=o[0];var s=t.index,u=s[0],l=s[1],f=t.cd[0],c=f.trace,h=f.xRanges[l],d=f.yRanges[u];return t.xLabel=Vxe(t.xa,[h[0],h[1]],c.xhoverformat),t.yLabel=Vxe(t.ya,[d[0],d[1]],c.yhoverformat),o}}});var jxe=Te((kfr,Wxe)=>{"use strict";Wxe.exports={attributes:gR(),supplyDefaults:Uxe(),crossTraceDefaults:mR(),calc:sR(),plot:fR(),layerName:"heatmaplayer",colorbar:S_(),style:cR(),hoverPoints:Hxe(),eventData:dG(),moduleType:"trace",name:"histogram2d",basePlotModule:Ah(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var Zxe=Te((Cfr,Xxe)=>{"use strict";Xxe.exports=jxe()});var _R=Te((Lfr,Yxe)=>{"use strict";Yxe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var EE=Te((Pfr,Qxe)=>{"use strict";var id=EA(),xR=Zc(),Jxe=jc(),mG=Jxe.axisHoverFormat,bbt=Jxe.descriptionOnlyNumbers,wbt=nc(),Abt=Id().dash,Tbt=gc(),zA=Su().extendFlat,$xe=_R(),Sbt=$xe.COMPARISON_OPS2,Mbt=$xe.INTERVAL_OPS,Kxe=xR.line;Qxe.exports=zA({z:id.z,x:id.x,x0:id.x0,dx:id.dx,y:id.y,y0:id.y0,dy:id.dy,xperiod:id.xperiod,yperiod:id.yperiod,xperiod0:xR.xperiod0,yperiod0:xR.yperiod0,xperiodalignment:id.xperiodalignment,yperiodalignment:id.yperiodalignment,text:id.text,hovertext:id.hovertext,transpose:id.transpose,xtype:id.xtype,ytype:id.ytype,xhoverformat:mG("x"),yhoverformat:mG("y"),zhoverformat:mG("z",1),hovertemplate:id.hovertemplate,texttemplate:zA({},id.texttemplate,{}),textfont:zA({},id.textfont,{}),hoverongaps:id.hoverongaps,connectgaps:zA({},id.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:Tbt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:bbt("contour label")},operation:{valType:"enumerated",values:[].concat(Sbt).concat(Mbt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:zA({},Kxe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:Abt,smoothing:zA({},Kxe.smoothing,{}),editType:"plot"},zorder:xR.zorder},wbt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var gG=Te((zfr,tbe)=>{"use strict";var Gp=gR(),Bg=EE(),Ebt=nc(),yG=jc().axisHoverFormat,ebe=Su().extendFlat;tbe.exports=ebe({x:Gp.x,y:Gp.y,z:Gp.z,marker:Gp.marker,histnorm:Gp.histnorm,histfunc:Gp.histfunc,nbinsx:Gp.nbinsx,xbins:Gp.xbins,nbinsy:Gp.nbinsy,ybins:Gp.ybins,autobinx:Gp.autobinx,autobiny:Gp.autobiny,bingroup:Gp.bingroup,xbingroup:Gp.xbingroup,ybingroup:Gp.ybingroup,autocontour:Bg.autocontour,ncontours:Bg.ncontours,contours:Bg.contours,line:{color:Bg.line.color,width:ebe({},Bg.line.width,{dflt:.5}),dash:Bg.line.dash,smoothing:Bg.line.smoothing,editType:"plot"},xhoverformat:yG("x"),yhoverformat:yG("y"),zhoverformat:yG("z",1),hovertemplate:Gp.hovertemplate,texttemplate:Bg.texttemplate,textfont:Bg.textfont},Ebt("",{cLetter:"z",editTypeOverride:"calc"}))});var bR=Te((Ifr,rbe)=>{"use strict";rbe.exports=function(t,r,n,i){var a=i("contours.start"),o=i("contours.end"),s=a===!1||o===!1,u=n("contours.size"),l;s?l=r.autocontour=!0:l=n("autocontour",!1),(l||!u)&&n("ncontours")}});var _G=Te((Rfr,ibe)=>{"use strict";var kbt=ei();ibe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;kbt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var wR=Te((Dfr,nbe)=>{"use strict";var Cbt=ed(),Lbt=_G();nbe.exports=function(t,r,n,i,a){var o=n("contours.coloring"),s,u="";o==="fill"&&(s=n("contours.showlines")),s!==!1&&(o!=="lines"&&(u=n("line.color","#000")),n("line.width",.5),n("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,Cbt(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),Lbt(n,i,u,a)}});var lbe=Te((Ffr,sbe)=>{"use strict";var abe=ei(),Pbt=vG(),zbt=bR(),Ibt=wR(),Rbt=wE(),obe=gG();sbe.exports=function(t,r,n,i){function a(s,u){return abe.coerce(t,r,obe,s,u)}function o(s){return abe.coerce2(t,r,obe,s)}Pbt(t,r,a,i),r.visible!==!1&&(zbt(t,r,a,o),Ibt(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),r.contours&&r.contours.coloring==="heatmap"&&Rbt(a,i))}});var wG=Te((Bfr,fbe)=>{"use strict";var bG=wu(),xG=ei();fbe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=xG.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=xG.aggNums(Math.max,null,r));var o=ube(i,a,t.ncontours);n.size=o.dtick,n.start=bG.tickFirst(o),o.range.reverse(),n.end=bG.tickFirst(o),n.start===i&&(n.start+=n.size),n.end===a&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),t._input.contours||(t._input.contours={}),xG.extendFlat(t._input.contours,{start:n.start,end:n.end,size:n.size}),t._input.autocontour=!0}else if(n.type!=="constraint"){var s=n.start,u=n.end,l=t._input.contours;if(s>u&&(n.start=l.start=u,u=n.end=l.end=s,s=n.start),!(n.size>0)){var f;s===u?f=1:f=ube(s,u,t.ncontours).dtick,l.size=n.size=f}}};function ube(e,t,r){var n={type:"linear",range:[e,t]};return bG.autoTicks(n,(t-e)/(r||15)),n}});var kE=Te((Ofr,cbe)=>{"use strict";cbe.exports=function(t){return t.end+t.size/1e6}});var AG=Te((qfr,dbe)=>{"use strict";var hbe=_c(),Dbt=sR(),Fbt=wG(),Bbt=kE();dbe.exports=function(t,r){var n=Dbt(t,r),i=n[0].z;Fbt(r,i);var a=r.contours,o=hbe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var u=a.start,l=Bbt(a),f=a.size||1,c=Math.floor((l-u)/f)+1;isFinite(f)||(f=1,c=1);var h=u-f/2,d=h+c*f;s=[h,d]}else s=i;return hbe.calc(t,r,{vals:s,cLetter:"z"}),n}});var CE=Te((Nfr,pbe)=>{"use strict";pbe.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var TG=Te((Ufr,vbe)=>{"use strict";var AR=CE();vbe.exports=function(t){var r=t[0].z,n=r.length,i=r[0].length,a=n===2||i===2,o,s,u,l,f,c,h,d,p;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var n=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>n?r===5?713:1114:r===5?104:208}return r===15?0:r}});var SG=Te((Vfr,gbe)=>{"use strict";var TR=ei(),IA=CE();gbe.exports=function(t,r,n){var i,a,o,s,u;for(r=r||.01,n=n||.01,o=0;o20?(o=IA.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=IA.SADDLEREMAINDER[o]):delete e.crossings[a],s=IA.NEWDELTA[o],!s){TR.log("Found bad marching index:",o,t,e.level);break}u.push(ybe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),LE(u[u.length-1],u[u.length-2],n,i)&&u.pop();var p=s[0]&&(t[0]<0||t[0]>f-2)||s[1]&&(t[1]<0||t[1]>l-2),x=t[0]===c[0]&&t[1]===c[1]&&s[0]===h[0]&&s[1]===h[1];if(x||r&&p)break;o=e.crossings[a]}d===1e4&&TR.log("Infinite loop in contour?");var b=LE(u[0],u[u.length-1],n,i),v=0,k=.2*e.smoothing,E=[],T=0,L,_,C,M,m,P,A,B,F,U,G;for(d=1;d=T;d--)if(L=E[d],L=T&&L+E[_]B&&F--,e.edgepaths[F]=G.concat(u,U));break}W||(e.edgepaths[B]=u.concat(U))}for(B=0;B20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:IA.BOTTOMSTART.indexOf(e)!==-1?i=1:IA.LEFTSTART.indexOf(e)!==-1?n=1:IA.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function ybe(e,t,r){var n=t[0]+Math.max(r[0],0),i=t[1]+Math.max(r[1],0),a=e.z[i][n],o=e.xaxis,s=e.yaxis;if(r[1]){var u=(e.level-a)/(e.z[i][n+1]-a),l=(u!==1?(1-u)*o.c2l(e.x[n]):0)+(u!==0?u*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(l),!0),s.c2p(e.y[i],!0),n+u,i]}else{var f=(e.level-a)/(e.z[i+1][n]-a),c=(f!==1?(1-f)*s.c2l(e.y[i]):0)+(f!==0?f*s.c2l(e.y[i+1]):0);return[o.c2p(e.x[n],!0),s.c2p(s.l2c(c),!0),n,i+f]}}});var wbe=Te((Gfr,bbe)=>{"use strict";var MG=_R(),Ubt=ku();bbe.exports={"[]":_be("[]"),"][":_be("]["),">":EG(">"),"<":EG("<"),"=":EG("=")};function xbe(e,t){var r=Array.isArray(t),n;function i(a){return Ubt(a)?+a:null}return MG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):MG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:MG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function _be(e){return function(t){t=xbe(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function EG(e){return function(t){return t=xbe(e,t),{start:t,end:1/0,size:1/0}}}});var kG=Te((Hfr,Tbe)=>{"use strict";var Abe=ei(),Vbt=wbe(),Gbt=kE();Tbe.exports=function(t,r,n){for(var i=t.type==="constraint"?Vbt[t._operation](t.value):t,a=i.size,o=[],s=Gbt(i),u=n.trace._carpetTrace,l=u?{xaxis:u.aaxis,yaxis:u.baxis,x:n.a,y:n.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:n.x,y:n.y},f=i.start;f1e3){Abe.warn("Too many contours, clipping at 1000",t);break}return o}});var CG=Te((Wfr,Mbe)=>{"use strict";var RA=ei();Mbe.exports=function(e,t){var r,n,i,a=function(u){return u.reverse()},o=function(u){return u};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&RA.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";Ebe.exports=function(e,t){var r=e[0],n=r.z,i;switch(t.type){case"levels":var a=Math.min(n[0][0],n[0][1]);for(i=0;io.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,u=r.y.length,l=-1/0,f=1/0;for(i=0;i":c>l&&(r.prefixBoundary=!0);break;case"<":(cl||r.starts.length&&d===f)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),hl&&(r.prefixBoundary=!0);break}break}}});var SR=Te(Hp=>{"use strict";var zE=Jl(),Od=ei(),Og=Mu(),Hbt=_c(),Lbe=Xf(),kbe=wu(),Cbe=gy(),Wbt=fR(),Pbe=TG(),zbe=SG(),jbt=kG(),Xbt=CG(),Ibe=LG(),PE=CE(),Iy=PE.LABELOPTIMIZER;Hp.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;Od.makeTraceGroups(i,n,"contour").each(function(s){var u=zE.select(this),l=s[0],f=l.trace,c=l.x,h=l.y,d=f.contours,p=jbt(d,r,l),x=Od.ensureSingle(u,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),Wbt(t,r,b,x),Pbe(p),zbe(p);var v=a.c2p(c[0],!0),k=a.c2p(c[c.length-1],!0),E=o.c2p(h[0],!0),T=o.c2p(h[h.length-1],!0),L=[[v,T],[k,T],[k,E],[v,E]],_=p;d.type==="constraint"&&(_=Xbt(p,d._operation)),Zbt(u,L,d),Ybt(u,_,L,d),Kbt(u,p,t,l,d),$bt(u,r,t,l,L)})};function Zbt(e,t,r){var n=Od.ensureSingle(e,"g","contourbg"),i=n.selectAll("path").data(r.coloring==="fill"?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function Ybt(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&Ibe(t,n);var o=Od.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(u){var l=(u.prefixBoundary?a:"")+Rbe(u,r);l?zE.select(this).attr("d",l).style("stroke","none"):zE.select(this).remove()})}function Rbe(e,t){var r="",n=0,i=e.edgepaths.map(function(v,k){return k}),a=!0,o,s,u,l,f,c;function h(v){return Math.abs(v[1]-t[0][1])<.01}function d(v){return Math.abs(v[1]-t[2][1])<.01}function p(v){return Math.abs(v[0]-t[0][0])<.01}function x(v){return Math.abs(v[0]-t[2][0])<.01}for(;i.length;){for(c=Og.smoothopen(e.edgepaths[n],e.smoothing),r+=a?c:c.replace(/^M/,"L"),i.splice(i.indexOf(n),1),o=e.edgepaths[n][e.edgepaths[n].length-1],l=-1,u=0;u<4;u++){if(!o){Od.log("Missing end?",n,e);break}for(h(o)&&!x(o)?s=t[1]:p(o)?s=t[0]:d(o)?s=t[3]:x(o)&&(s=t[2]),f=0;f=0&&(s=b,l=f):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-b[1])<.01&&(b[0]-o[0])*(s[0]-b[0])>=0&&(s=b,l=f):Od.log("endpt to newendpt is not vert. or horz.",o,s,b)}if(o=s,l>=0)break;r+="L"+s}if(l===e.edgepaths.length){Od.log("unclosed perimeter path");break}n=l,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nIy.MAXCOST*2)break;h&&(s/=2),o=l-s/2,u=o+s*1.5}if(c<=Iy.MAXCOST)return f};function Jbt(e,t,r,n){var i=t.width/2,a=t.height/2,o=e.x,s=e.y,u=e.theta,l=Math.cos(u)*i,f=Math.sin(u)*i,c=(o>n.center?n.right-o:o-n.left)/(l+Math.abs(Math.sin(u)*a)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(f)+Math.cos(u)*a);if(c<1||h<1)return 1/0;var d=Iy.EDGECOST*(1/(c-1)+1/(h-1));d+=Iy.ANGLECOST*u*u;for(var p=o-l,x=s-f,b=o+l,v=s+f,k=0;k{"use strict";var e2t=Jl(),PG=_c(),t2t=kE();Dbe.exports=function(t){var r=t.contours,n=r.start,i=t2t(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,u=PG.extractOpts(t);isFinite(a)||(a=1,o=1);var l=u.reversescale?PG.flipScale(u.colorscale):u.colorscale,f=l.length,c=new Array(f),h=new Array(f),d,p,x=u.min,b=u.max;if(r.coloring==="heatmap"){for(p=0;p=b)&&(n<=x&&(n=x),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),p=0;px&&(c.unshift(x),h.unshift(h[0])),c[c.length-1]{"use strict";var MR=Jl(),Fbe=Mu(),r2t=cR(),i2t=zG();Bbe.exports=function(t){var r=MR.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=MR.select(this),a=n[0].trace,o=a.contours,s=a.line,u=o.size||1,l=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",h=!f&&o.coloring==="fill",d=c||h?i2t(a):null;i.selectAll("g.contourlevel").each(function(b){MR.select(this).selectAll("path").call(Fbe.lineGroupStyle,s.width,c?d(b.level):s.color,s.dash)});var p=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Fbe.font(MR.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(b.level):s.color)})}),f)i.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var x;i.selectAll("g.contourfill path").style("fill",function(b){return x===void 0&&(x=b.level),d(b.level+.5*u)}),x===void 0&&(x=l),i.selectAll("g.contourbg path").style("fill",d(x-.5*u))}}),r2t(t)}});var kR=Te((Kfr,qbe)=>{"use strict";var Obe=_c(),n2t=zG(),a2t=kE();function o2t(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=n2t(t,{isColorbar:!0});if(o==="heatmap"){var u=Obe.extractOpts(t);r._fillgradient=u.reversescale?Obe.flipScale(u.colorscale):u.colorscale,r._zrange=[u.min,u.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:i.color,width:n.showlines!==!1?i.width:0,dash:i.dash},r._levels={start:n.start,end:a2t(n),size:a}}qbe.exports={min:"zmin",max:"zmax",calc:o2t}});var IG=Te((Jfr,Nbe)=>{"use strict";var CR=jl(),s2t=dR();Nbe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=s2t(t,r,n,i,a);return o&&o.forEach(function(s){var u=s.trace;u.contours.type==="constraint"&&(u.fillcolor&&CR.opacity(u.fillcolor)?s.color=CR.addOpacity(u.fillcolor,1):u.contours.showlines&&CR.opacity(u.line.color)&&(s.color=CR.addOpacity(u.line.color,1)))}),o}});var Vbe=Te(($fr,Ube)=>{"use strict";Ube.exports={attributes:gG(),supplyDefaults:lbe(),crossTraceDefaults:mR(),calc:AG(),plot:SR().plot,layerName:"contourlayer",style:ER(),colorbar:kR(),hoverPoints:IG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Ah(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Hbe=Te((Qfr,Gbe)=>{"use strict";Gbe.exports=Vbe()});var RG=Te((ecr,Kbe)=>{"use strict";var Wbe=ku(),l2t=_G(),Zbe=jl(),jbe=Zbe.addOpacity,u2t=Zbe.opacity,Ybe=_R(),Xbe=ei().isArrayOrTypedArray,f2t=Ybe.CONSTRAINT_REDUCTION,c2t=Ybe.COMPARISON_OPS2;Kbe.exports=function(t,r,n,i,a,o){var s=r.contours,u,l,f,c=n("contours.operation");if(s._operation=f2t[c],h2t(n,s),c==="="?u=s.showlines=!0:(u=n("contours.showlines"),f=n("fillcolor",jbe((t.line||{}).color||a,.5))),u){var h=f&&u2t(f)?jbe(r.fillcolor,1):a;l=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),l2t(n,i,l,o)};function h2t(e,t){var r;c2t.indexOf(t.operation)===-1?(e("contours.value",[0,1]),Xbe(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:Wbe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),Wbe(t.value)||(Xbe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var Qbe=Te((tcr,$be)=>{"use strict";var DG=ei(),d2t=JI(),p2t=Pm(),v2t=RG(),m2t=bR(),y2t=wR(),g2t=wE(),Jbe=EE();$be.exports=function(t,r,n,i){function a(l,f){return DG.coerce(t,r,Jbe,l,f)}function o(l){return DG.coerce2(t,r,Jbe,l)}var s=d2t(t,r,a,i);if(!s){r.visible=!1;return}p2t(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate");var u=a("contours.type")==="constraint";a("connectgaps",DG.isArray1D(r.z)),u?v2t(t,r,a,i,n):(m2t(t,r,a,o),y2t(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&g2t(a,i),a("zorder")}});var t2e=Te((rcr,e2e)=>{"use strict";e2e.exports={attributes:EE(),supplyDefaults:Qbe(),calc:AG(),plot:SR().plot,style:ER(),colorbar:kR(),hoverPoints:IG(),moduleType:"trace",name:"contour",basePlotModule:Ah(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var i2e=Te((icr,r2e)=>{"use strict";r2e.exports=t2e()});var FG=Te((ncr,a2e)=>{"use strict";var _2t=Nu().hovertemplateAttrs,x2t=Nu().texttemplateAttrs,b2t=Em(),a0=Zc(),w2t=Gf(),n2e=nc(),A2t=Id().dash,M_=Su().extendFlat,W0=a0.marker,IE=a0.line,T2t=W0.line;a2e.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:M_({},a0.mode,{dflt:"markers"}),text:M_({},a0.text,{}),texttemplate:x2t({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:M_({},a0.hovertext,{}),line:{color:IE.color,width:IE.width,dash:A2t,backoff:IE.backoff,shape:M_({},IE.shape,{values:["linear","spline"]}),smoothing:IE.smoothing,editType:"calc"},connectgaps:a0.connectgaps,cliponaxis:a0.cliponaxis,fill:M_({},a0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:b2t(),marker:M_({symbol:W0.symbol,opacity:W0.opacity,angle:W0.angle,angleref:W0.angleref,standoff:W0.standoff,maxdisplayed:W0.maxdisplayed,size:W0.size,sizeref:W0.sizeref,sizemin:W0.sizemin,sizemode:W0.sizemode,line:M_({width:T2t.width,editType:"calc"},n2e("marker.line")),gradient:W0.gradient,editType:"calc"},n2e("marker")),textfont:a0.textfont,textposition:a0.textposition,selected:a0.selected,unselected:a0.unselected,hoverinfo:M_({},w2t.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:a0.hoveron,hovertemplate:_2t()}});var u2e=Te((acr,l2e)=>{"use strict";var o2e=ei(),S2t=Sy(),DA=lc(),M2t=$v(),E2t=I0(),s2e=J3(),k2t=R0(),C2t=zm(),L2t=FG();l2e.exports=function(t,r,n,i){function a(h,d){return o2e.coerce(t,r,L2t,h,d)}var o=a("a"),s=a("b"),u=a("c"),l;if(o?(l=o.length,s?(l=Math.min(l,s.length),u&&(l=Math.min(l,u.length))):u?l=Math.min(l,u.length):l=0):s&&u&&(l=Math.min(s.length,u.length)),!l){r.visible=!1;return}r._length=l,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&a("hovertemplate");var f=l{"use strict";var BG=wu();f2e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=BG.tickText(a.aaxis,t.a,!0).text,i.bLabel=BG.tickText(a.baxis,t.b,!0).text,i.cLabel=BG.tickText(a.caxis,t.c,!0).text,i}});var v2e=Te((scr,p2e)=>{"use strict";var OG=ku(),P2t=D0(),z2t=ky(),I2t=F0(),R2t=B0().calcMarkerSize,h2e=["a","b","c"],d2e={a:["b","c"],b:["a","c"],c:["a","b"]};p2e.exports=function(t,r){var n=t._fullLayout[r.subplot],i=n.sum,a=r.sum||i,o={a:r.a,b:r.b,c:r.c},s=r.ids,u,l,f,c,h,d;for(u=0;u{"use strict";var D2t=iA();m2e.exports=function(t,r,n){var i=r.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},u=r.layers.frontplot.select("g.scatterlayer"),l=0;l{"use strict";var F2t=sA();g2e.exports=function(t,r,n,i){var a=F2t(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,u=t.xa._length,l=u*s/2,f=u-l;return o.x0=Math.max(Math.min(o.x0,f),l),o.x1=Math.max(Math.min(o.x1,f),l),a}var c=o.cd[o.index],h=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[h.subplot]={_subplot:d};var x=h._module.formatLabels(c,h,p);o.aLabel=x.aLabel,o.bLabel=x.bLabel,o.cLabel=x.cLabel;var b=c.hi||h.hoverinfo,v=[];function k(T,L){v.push(T._hovertitle+": "+L)}if(!h.hovertemplate){var E=b.split("+");E.indexOf("all")!==-1&&(E=["a","b","c"]),E.indexOf("a")!==-1&&k(d.aaxis,o.aLabel),E.indexOf("b")!==-1&&k(d.baxis,o.bLabel),E.indexOf("c")!==-1&&k(d.caxis,o.cLabel)}return o.extraText=v.join("
"),o.hovertemplate=h.hovertemplate,a}});var b2e=Te((fcr,x2e)=>{"use strict";x2e.exports=function(t,r,n,i,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i[a]){var o=i[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var z2e=Te((ccr,P2e)=>{"use strict";var E2e=Jl(),B2t=cd(),qG=$l(),qg=ei(),Ry=qg.strTranslate,LR=qg._,BA=jl(),PR=Mu(),RE=gy(),NG=Su().extendFlat,O2t=Cc(),E_=wu(),w2e=xp(),A2e=Xc(),k2e=Sm(),T2e=k2e.freeMode,q2t=k2e.rectMode,UG=Mb(),N2t=ah().prepSelect,U2t=ah().selectOnClick,V2t=ah().clearOutline,G2t=ah().clearSelectionsCache,C2e=dd();function L2e(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}P2e.exports=L2e;var Dy=L2e.prototype;Dy.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Dy.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;aFA*l?(v=l,b=v*FA):(b=u,v=b/FA),k=o*b/u,E=s*v/l,p=t.l+t.w*i-b/2,x=t.t+t.h*(1-a)-v/2,r.x0=p,r.y0=x,r.w=b,r.h=v,r.sum=f,r.xaxis={type:"linear",range:[c+2*d-f,f-c-2*h],domain:[i-k/2,i+k/2],_id:"x"},RE(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(U){return U.a>=r.aaxis.range[0]&&U.a<=r.aaxis.range[1]&&U.b>=r.baxis.range[1]&&U.b<=r.baxis.range[0]&&U.c>=r.caxis.range[1]&&U.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[c,f-h-d],domain:[a-E/2,a+E/2],_id:"y"},RE(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var T=r.yaxis.domain[0],L=r.aaxis=NG({},e.aaxis,{range:[c,f-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[T,T+E*FA],anchor:"free",position:0,_id:"y",_length:b});RE(L,r.graphDiv._fullLayout),L.setScale();var _=r.baxis=NG({},e.baxis,{range:[f-c-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});RE(_,r.graphDiv._fullLayout),_.setScale();var C=r.caxis=NG({},e.caxis,{range:[f-c-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[T,T+E*FA],anchor:"free",position:0,_id:"y",_length:b});RE(C,r.graphDiv._fullLayout),C.setScale();var M="M"+p+","+(x+v)+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDef.select("path").attr("d",M),r.layers.plotbg.select("path").attr("d",M);var m="M0,"+v+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDefRelative.select("path").attr("d",m);var P=Ry(p,x);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var A=Ry(p-_._offset,x+v);r.layers.baxis.attr("transform",A),r.layers.bgrid.attr("transform",A);var B=Ry(p+b/2,x)+"rotate(30)"+Ry(0,-L._offset);r.layers.aaxis.attr("transform",B),r.layers.agrid.attr("transform",B);var F=Ry(p+b/2,x)+"rotate(-30)"+Ry(0,-C._offset);r.layers.caxis.attr("transform",F),r.layers.cgrid.attr("transform",F),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+p+","+(x+v)+"l"+b/2+",-"+v:"M0,0").call(BA.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",_.showline?"M"+p+","+(x+v)+"h"+b:"M0,0").call(BA.stroke,_.linecolor||"#000").style("stroke-width",(_.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",C.showline?"M"+(p+b/2)+","+x+"l"+b/2+","+v:"M0,0").call(BA.stroke,C.linecolor||"#000").style("stroke-width",(C.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),PR.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Dy.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.substr(7)+"title",i=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var u=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),l=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;i["a-title"]=UG.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title",placeholder:LR(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-u,"text-anchor":"middle"}}),i["b-title"]=UG.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title",placeholder:LR(r,"Click to enter Component B title"),attributes:{x:t.x0-l,y:t.y0+t.h+o.title.font.size*.83+l,"text-anchor":"middle"}}),i["c-title"]=UG.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title",placeholder:LR(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+l,y:t.y0+t.h+s.title.font.size*.83+l,"text-anchor":"middle"}})}};Dy.drawAx=function(e){var t=this,r=t.graphDiv,n=e._name,i=n.charAt(0),a=e._id,o=t.layers[n],s=30,u=i+"tickLayout",l=H2t(e);t[u]!==l&&(o.selectAll("."+a+"tick").remove(),t[u]=l),e.setScale();var f=E_.calcTicks(e),c=E_.clipEnds(e,f),h=E_.makeTransTickFn(e),d=E_.getTickSigns(e)[2],p=qg.deg2rad(s),x=d*(e.linewidth||1)/2,b=d*e.ticklen,v=t.w,k=t.h,E=i==="b"?"M0,"+x+"l"+Math.sin(p)*b+","+Math.cos(p)*b:"M"+x+",0l"+Math.cos(p)*b+","+-Math.sin(p)*b,T={a:"M0,0l"+k+",-"+v/2,b:"M0,0l-"+v/2+",-"+k,c:"M0,0l-"+k+","+v/2}[i];E_.drawTicks(r,e,{vals:e.ticks==="inside"?c:f,layer:o,path:E,transFn:h,crisp:!1}),E_.drawGrid(r,e,{vals:c,layer:t.layers[i+"grid"],path:T,transFn:h,crisp:!1}),E_.drawLabels(r,e,{vals:f,layer:o,transFn:h,labelFns:E_.makeLabelFns(e,0,s)})};function H2t(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var _d=C2e.MINZOOM/2+.87,W2t="m-0.87,.5h"+_d+"v3h-"+(_d+5.2)+"l"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l2.6,1.5l-"+_d/2+","+_d*.87+"Z",j2t="m0.87,.5h-"+_d+"v3h"+(_d+5.2)+"l-"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l-2.6,1.5l"+_d/2+","+_d*.87+"Z",X2t="m0,1l"+_d/2+","+_d*.87+"l2.6,-1.5l-"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l-"+(_d/2+2.6)+","+(_d*.87+4.5)+"l2.6,1.5l"+_d/2+",-"+_d*.87+"Z",Z2t="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",S2e=!0;Dy.clearOutline=function(){G2t(this.dragOptions),V2t(this.dragOptions.gd)};Dy.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,n=r._fullLayout._zoomlayer,i,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(A,B,F){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],i=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var U=e.dragOptions.dragmode=r._fullLayout.dragmode;T2e(U)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,U==="zoom"?(e.dragOptions.moveFn=_,e.dragOptions.clickFn=v,e.dragOptions.doneFn=C,k(A,B,F)):U==="pan"?(e.dragOptions.moveFn=m,e.dragOptions.clickFn=v,e.dragOptions.doneFn=P,M(),e.clearOutline(r)):(q2t(U)||T2e(U))&&N2t(A,B,F,e.dragOptions,U)}};var o,s,u,l,f,c,h,d,p,x;function b(A){var B={};return B[e.id+".aaxis.min"]=A.a,B[e.id+".baxis.min"]=A.b,B[e.id+".caxis.min"]=A.c,B}function v(A,B){var F=r._fullLayout.clickmode;M2e(r),A===2&&(r.emit("plotly_doubleclick",null),qG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),F.indexOf("select")>-1&&A===1&&U2t(B,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),F.indexOf("event")>-1&&A2e.click(r,B,e.id)}function k(A,B,F){var U=t.getBoundingClientRect();o=B-U.left,s=F-U.top,r._fullLayout._calcInverseTransform(r);var G=r._fullLayout._invTransform,j=qg.apply3DTransform(G)(o,s);o=j[0],s=j[1],u={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=u,l=e.aaxis.range[1]-u.a,c=B2t(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=n.append("path").attr("class","zoombox").attr("transform",Ry(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),x=n.append("path").attr("class","zoombox-corners").attr("transform",Ry(e.x0,e.y0)).style({fill:BA.background,stroke:BA.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function E(A,B){return 1-B/e.h}function T(A,B){return 1-(A+(e.h-B)/Math.sqrt(3))/e.w}function L(A,B){return(A-(e.h-B)/Math.sqrt(3))/e.w}function _(A,B){var F=o+A*i,U=s+B*a,G=Math.max(0,Math.min(1,E(o,s),E(F,U))),j=Math.max(0,Math.min(1,T(o,s),T(F,U))),H=Math.max(0,Math.min(1,L(o,s),L(F,U))),N=(G/2+H)*e.w,W=(1-G/2-j)*e.w,re=(N+W)/2,ae=W-N,be=(1-G)*e.h,Pe=be-ae/FA;ae.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),x.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(f))}function C(){M2e(r),f!==u&&(qG.call("_guiRelayout",r,b(f)),S2e&&r.data&&r._context.showTips&&(qg.notifier(LR(r,"Double-click to zoom back out"),"long"),S2e=!1))}function M(){u={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=u}function m(A,B){var F=A/e.xaxis._m,U=B/e.yaxis._m;f={a:u.a-U,b:u.b+(F+U)/2,c:u.c-(F-U)/2};var G=[f.a,f.b,f.c].sort(qg.sorterAsc),j={a:G.indexOf(f.a),b:G.indexOf(f.b),c:G.indexOf(f.c)};G[0]<0&&(G[1]+G[0]/2<0?(G[2]+=G[0]+G[1],G[0]=G[1]=0):(G[2]+=G[0]/2,G[1]+=G[0]/2,G[0]=0),f={a:G[j.a],b:G[j.b],c:G[j.c]},B=(u.a-f.a)*e.yaxis._m,A=(u.c-f.c-u.b+f.b)*e.xaxis._m);var H=Ry(e.x0+A,e.y0+B);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",H);var N=Ry(-A,-B);e.clipDefRelative.select("path").attr("transform",N),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(PR.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(f))}function P(){qG.call("_guiRelayout",r,b(f))}t.onmousemove=function(A){A2e.hover(r,A,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(A){r._dragging||w2e.unhover(r,A)},w2e.init(this.dragOptions)};function M2e(e){E2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var HG=Te((hcr,I2e)=>{"use strict";var Y2t=Ih(),K2t=zc().attributes,Kf=Dd(),J2t=Sc().overrideAll,VG=Su().extendFlat,GG={title:{text:Kf.title.text,font:Kf.title.font},color:Kf.color,tickmode:Kf.minor.tickmode,nticks:VG({},Kf.nticks,{dflt:6,min:1}),tick0:Kf.tick0,dtick:Kf.dtick,tickvals:Kf.tickvals,ticktext:Kf.ticktext,ticks:Kf.ticks,ticklen:Kf.ticklen,tickwidth:Kf.tickwidth,tickcolor:Kf.tickcolor,ticklabelstep:Kf.ticklabelstep,showticklabels:Kf.showticklabels,labelalias:Kf.labelalias,showtickprefix:Kf.showtickprefix,tickprefix:Kf.tickprefix,showticksuffix:Kf.showticksuffix,ticksuffix:Kf.ticksuffix,showexponent:Kf.showexponent,exponentformat:Kf.exponentformat,minexponent:Kf.minexponent,separatethousands:Kf.separatethousands,tickfont:Kf.tickfont,tickangle:Kf.tickangle,tickformat:Kf.tickformat,tickformatstops:Kf.tickformatstops,hoverformat:Kf.hoverformat,showline:VG({},Kf.showline,{dflt:!0}),linecolor:Kf.linecolor,linewidth:Kf.linewidth,showgrid:VG({},Kf.showgrid,{dflt:!0}),gridcolor:Kf.gridcolor,gridwidth:Kf.gridwidth,griddash:Kf.griddash,layer:Kf.layer,min:{valType:"number",dflt:0,min:0}},zR=I2e.exports=J2t({domain:K2t({name:"ternary"}),bgcolor:{valType:"color",dflt:Y2t.background},sum:{valType:"number",dflt:1,min:0},aaxis:GG,baxis:GG,caxis:GG},"plot","from-root");zR.uirevision={valType:"any",editType:"none"};zR.aaxis.uirevision=zR.baxis.uirevision=zR.caxis.uirevision={valType:"any",editType:"none"}});var k_=Te((dcr,R2e)=>{"use strict";var $2t=ei(),Q2t=Pf(),ewt=zc().defaults;R2e.exports=function(t,r,n,i){var a=i.type,o=i.attributes,s=i.handleDefaults,u=i.partition||"x",l=r._subplots[a],f=l.length,c=f&&l[0].replace(/\d+$/,""),h,d;function p(k,E){return $2t.coerce(h,d,o,k,E)}for(var x=0;x{"use strict";var twt=jl(),rwt=Pf(),IR=ei(),iwt=k_(),nwt=e_(),awt=t_(),owt=A3(),swt=xb(),lwt=Q5(),F2e=HG(),D2e=["aaxis","baxis","caxis"];B2e.exports=function(t,r,n){iwt(t,r,n,{type:"ternary",attributes:F2e,handleDefaults:uwt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function uwt(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=twt.combine(i,n.paper_bgcolor);for(var o,s,u,l=0;l=a&&(f.min=0,c.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function fwt(e,t,r,n){var i=F2e[t._name];function a(d,p){return IR.coerce(e,t,i,d,p)}a("uirevision",n.uirevision),t.type="linear";var o=a("color"),s=o!==i.color.dflt?o:r.font.color,u=t._name,l=u.charAt(0).toUpperCase(),f="Component "+l,c=a("title.text",f);t._hovertitle=c===f?c:l,IR.coerceFont(a,"title.font",r.font,{overrideDflt:{size:IR.bigFont(r.font.size),color:s}}),a("min"),swt(e,t,a,"linear"),awt(e,t,a,"linear"),nwt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),owt(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(IR.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),lwt(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var q2e=Te(j0=>{"use strict";var cwt=z2e(),hwt=Rd().getSubplotCalcData,dwt=ei().counterRegex,OA="ternary";j0.name=OA;var pwt=j0.attr="subplot";j0.idRoot=OA;j0.idRegex=j0.attrRegex=dwt(OA);var vwt=j0.attributes={};vwt[pwt]={valType:"subplotid",dflt:"ternary",editType:"calc"};j0.layoutAttributes=HG();j0.supplyLayoutDefaults=O2e();j0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[OA],a=0;a{"use strict";N2e.exports={attributes:FG(),supplyDefaults:u2e(),colorbar:ep(),formatLabels:c2e(),calc:v2e(),plot:y2e(),style:av().style,styleOnSelect:av().styleOnSelect,hoverPoints:_2e(),selectPoints:lA(),eventData:b2e(),moduleType:"trace",name:"scatterternary",basePlotModule:q2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var G2e=Te((ycr,V2e)=>{"use strict";V2e.exports=U2e()});var WG=Te((gcr,W2e)=>{"use strict";var nd=gE(),qA=Su().extendFlat,H2e=jc().axisHoverFormat;W2e.exports={y:nd.y,x:nd.x,x0:nd.x0,y0:nd.y0,xhoverformat:H2e("x"),yhoverformat:H2e("y"),name:qA({},nd.name,{}),orientation:qA({},nd.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:nd.fillcolor,points:qA({},nd.boxpoints,{}),jitter:qA({},nd.jitter,{}),pointpos:qA({},nd.pointpos,{}),width:qA({},nd.width,{}),marker:nd.marker,text:nd.text,hovertext:nd.hovertext,hovertemplate:nd.hovertemplate,quartilemethod:nd.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:nd.offsetgroup,alignmentgroup:nd.alignmentgroup,selected:nd.selected,unselected:nd.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:nd.zorder}});var ZG=Te((_cr,j2e)=>{"use strict";var jG=_E(),XG=ei().extendFlat;j2e.exports={violinmode:XG({},jG.boxmode,{}),violingap:XG({},jG.boxgap,{}),violingroupgap:XG({},jG.boxgroupgap,{})}});var J2e=Te((xcr,K2e)=>{"use strict";var X2e=ei(),mwt=jl(),Z2e=bE(),Y2e=WG();K2e.exports=function(t,r,n,i){function a(L,_){return X2e.coerce(t,r,Y2e,L,_)}function o(L,_){return X2e.coerce2(t,r,Y2e,L,_)}if(Z2e.handleSampleDefaults(t,r,a,i),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var u=a("span"),l;Array.isArray(u)&&(l="manual"),a("spanmode",l);var f=a("line.color",(t.marker||{}).color||n),c=a("line.width"),h=a("fillcolor",mwt.addOpacity(r.line.color,.5));Z2e.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",h),x=o("box.line.color",f),b=o("box.line.width",c),v=a("box.visible",!!(d||p||x||b));v||(r.box={visible:!1});var k=o("meanline.color",f),E=o("meanline.width",c),T=a("meanline.visible",!!(k||E));T||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var Q2e=Te((bcr,$2e)=>{"use strict";var ywt=ei(),gwt=ZG(),_wt=WI();$2e.exports=function(t,r,n){function i(a,o){return ywt.coerce(t,r,gwt,a,o)}_wt._supply(t,r,n,i,"violin")}});var RR=Te(o2=>{"use strict";var xwt=ei(),bwt={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};o2.makeKDE=function(e,t,r){var n=r.length,i=bwt.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var u=0,l=0;l{"use strict";var YG=ei(),KG=wu(),wwt=UV(),ewe=RR(),Awt=nf().BADNUM;twe.exports=function(t,r){var n=wwt(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=KG.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,u=0,l=0,f=0;f{"use strict";var Ewt=XI().setPositionOffset,iwe=["v","h"];nwe.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var JG=Jl(),$G=ei(),kwt=Mu(),QG=ZI(),Cwt=MU(),Lwt=RR();owe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,u=r.yaxis;function l(f,c){var h=Cwt(f,{xaxis:s,yaxis:u,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return kwt.smoothopen(h[0],1)}$G.makeTraceGroups(i,n,"trace violins").each(function(f){var c=JG.select(this),h=f[0],d=h.t,p=h.trace;if(p.visible!==!0||d.empty){c.remove();return}var x=d.bPos,b=d.bdPos,v=r[d.valLetter+"axis"],k=r[d.posLetter+"axis"],E=p.side==="both",T=E||p.side==="positive",L=E||p.side==="negative",_=c.selectAll("path.violin").data($G.identity);_.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),_.exit().remove(),_.each(function(U){var G=JG.select(this),j=U.density,H=j.length,N=k.c2l(U.pos+x,!0),W=k.l2p(N),re;if(p.width)re=d.maxKDE/b;else{var ae=o._violinScaleGroupStats[p.scalegroup];re=p.scalemode==="count"?ae.maxKDE/b*(ae.maxCount/U.pts.length):ae.maxKDE/b}var be,Pe,Ce,de,te,ke,Ee;if(T){for(ke=new Array(H),de=0;de{"use strict";var lwe=Jl(),NA=jl(),Pwt=av().stylePoints;uwe.exports=function(t){var r=lwe.select(t).selectAll("g.trace.violins");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=n[0].trace,a=lwe.select(this),o=i.box||{},s=o.line||{},u=i.meanline||{},l=u.width;a.selectAll("path.violin").style("stroke-width",i.line.width+"px").call(NA.stroke,i.line.color).call(NA.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(NA.stroke,s.color).call(NA.fill,o.fillcolor);var f={"stroke-width":l+"px","stroke-dasharray":2*l+"px,"+l+"px"};a.selectAll("path.mean").style(f).call(NA.stroke,u.color),a.selectAll("path.meanline").style(f).call(NA.stroke,u.color),Pwt(a,i,t)})}});var pwe=Te((Ecr,dwe)=>{"use strict";var zwt=jl(),eH=ei(),Iwt=wu(),cwe=jV(),hwe=RR();dwe.exports=function(t,r,n,i,a){a||(a={});var o=a.hoverLayer,s=t.cd,u=s[0].trace,l=u.hoveron,f=l.indexOf("violins")!==-1,c=l.indexOf("kde")!==-1,h=[],d,p;if(f||c){var x=cwe.hoverOnBoxes(t,r,n,i);if(c&&x.length>0){var b=t.xa,v=t.ya,k,E,T,L,_;u.orientation==="h"?(_=r,k="y",T=v,E="x",L=b):(_=n,k="x",T=b,E="y",L=v);var C=s[t.index];if(_>=C.span[0]&&_<=C.span[1]){var M=eH.extendFlat({},t),m=L.c2p(_,!0),P=hwe.getKdeValue(C,u,_),A=hwe.getPositionOnKdePath(C,u,m),B=T._offset,F=T._length;M[k+"0"]=A[0],M[k+"1"]=A[1],M[E+"0"]=M[E+"1"]=m,M[E+"Label"]=E+": "+Iwt.hoverLabelText(L,_,u[E+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var U=0,G=0;G{"use strict";vwe.exports={attributes:WG(),layoutAttributes:ZG(),supplyDefaults:J2e(),crossTraceDefaults:bE().crossTraceDefaults,supplyLayoutDefaults:Q2e(),calc:rwe(),crossTraceCalc:awe(),plot:swe(),style:fwe(),styleOnSelect:av().styleOnSelect,hoverPoints:pwe(),selectPoints:XV(),moduleType:"trace",name:"violin",basePlotModule:Ah(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var gwe=Te((Ccr,ywe)=>{"use strict";ywe.exports=mwe()});var xwe=Te((Lcr,_we)=>{"use strict";_we.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var rH=Te((Pcr,Awe)=>{"use strict";var Fc=Ly(),tH=Zc().line,Rwt=Gf(),bwe=jc().axisHoverFormat,Dwt=Nu().hovertemplateAttrs,Fwt=Nu().texttemplateAttrs,wwe=xwe(),Ng=Su().extendFlat,Bwt=jl();Awe.exports={x:Fc.x,x0:Fc.x0,dx:Fc.dx,y:Fc.y,y0:Fc.y0,dy:Fc.dy,xperiod:Fc.xperiod,yperiod:Fc.yperiod,xperiod0:Fc.xperiod0,yperiod0:Fc.yperiod0,xperiodalignment:Fc.xperiodalignment,yperiodalignment:Fc.yperiodalignment,xhoverformat:bwe("x"),yhoverformat:bwe("y"),hovertext:Fc.hovertext,hovertemplate:Dwt({},{keys:wwe.eventDataKeys}),hoverinfo:Ng({},Rwt.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:Fwt({editType:"plot"},{keys:wwe.eventDataKeys.concat(["label","value"])}),text:Fc.text,textposition:Fc.textposition,insidetextanchor:Ng({},Fc.insidetextanchor,{dflt:"middle"}),textangle:Ng({},Fc.textangle,{dflt:0}),textfont:Fc.textfont,insidetextfont:Fc.insidetextfont,outsidetextfont:Fc.outsidetextfont,constraintext:Fc.constraintext,cliponaxis:Fc.cliponaxis,orientation:Ng({},Fc.orientation,{}),offset:Ng({},Fc.offset,{arrayOk:!1}),width:Ng({},Fc.width,{arrayOk:!1}),marker:Owt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Ng({},tH.color,{dflt:Bwt.defaultLine}),width:Ng({},tH.width,{dflt:0,editType:"plot"}),dash:tH.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Fc.offsetgroup,alignmentgroup:Fc.alignmentgroup,zorder:Fc.zorder};function Owt(){var e=Ng({},Fc.marker);return delete e.pattern,delete e.cornerradius,e}});var iH=Te((zcr,Twe)=>{"use strict";Twe.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var aH=Te((Icr,Mwe)=>{"use strict";var DR=ei(),qwt=Gb(),Nwt=r0().handleText,Uwt=K3(),Vwt=Pm(),Swe=rH(),nH=jl();function Gwt(e,t,r,n){function i(c,h){return DR.coerce(e,t,Swe,c,h)}var a=Uwt(e,t,n,i);if(!a){t.visible=!1;return}Vwt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("orientation",t.y&&!t.x?"v":"h"),i("offset"),i("width");var o=i("text");i("hovertext"),i("hovertemplate");var s=i("textposition");Nwt(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",DR.isArrayOrTypedArray(o)?"text+value":"value");var u=i("marker.color",r);i("marker.line.color",nH.defaultLine),i("marker.line.width");var l=i("connector.visible");if(l){i("connector.fillcolor",Hwt(u));var f=i("connector.line.width");f&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function Hwt(e){var t=DR.isArrayOrTypedArray(e)?"#000":e;return nH.addOpacity(t,.5*nH.opacity(t))}function Wwt(e,t){var r,n;function i(o){return DR.coerce(n._input,n,Swe,o)}for(var a=0;a{"use strict";var jwt=ei(),Xwt=iH();Ewe.exports=function(e,t,r){var n=!1;function i(s,u){return jwt.coerce(e,t,Xwt,s,u)}for(var a=0;a{"use strict";var UA=ei();Cwe.exports=function(t,r){for(var n=0;n{"use strict";var Pwe=wu(),zwe=Im(),Zwt=Lwe(),Ywt=F0(),DE=nf().BADNUM;Iwe.exports=function(t,r){var n=Pwe.getFromId(t,r.xaxis||"x"),i=Pwe.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f,c,h;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),u=zwe(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=zwe(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;var d=Math.min(o.length,a.length),p=new Array(d);for(r._base=[],c=0;c{"use strict";var Dwe=Hb().setGroupPositions;Fwe.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,u=[],l=[],f=[],c,h;for(h=0;h{"use strict";var FR=Jl(),L_=ei(),Owe=Mu(),C_=nf().BADNUM,Kwt=i2(),Jwt=Ap().clearMinTextSize;Nwe.exports=function(t,r,n,i){var a=t._fullLayout;Jwt("funnel",a),$wt(t,r,n,i),Qwt(t,r,n,i),Kwt.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function $wt(e,t,r,n){var i=t.xaxis,a=t.yaxis;L_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=FR.select(this),u=o[0].trace,l=L_.ensureSingle(s,"g","regions");if(!u.connector||!u.connector.visible){l.remove();return}var f=u.orientation==="h",c=l.selectAll("g.region").data(L_.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var x=qwe(d,i,a,f),b=x[0],v=x[1],k="";b[0]!==C_&&v[0]!==C_&&b[1]!==C_&&v[1]!==C_&&b[2]!==C_&&v[2]!==C_&&b[3]!==C_&&v[3]!==C_&&(f?k+="M"+b[0]+","+v[1]+"L"+b[2]+","+v[2]+"H"+b[3]+"L"+b[1]+","+v[1]+"Z":k+="M"+b[1]+","+v[1]+"L"+b[2]+","+v[3]+"V"+v[2]+"L"+b[1]+","+v[0]+"Z"),k===""&&(k="M0,0Z"),L_.ensureSingle(FR.select(this),"path").attr("d",k).call(Owe.setClipUrl,t.layerClipId,e)}})})}function Qwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;L_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=FR.select(this),u=o[0].trace,l=L_.ensureSingle(s,"g","lines");if(!u.connector||!u.connector.visible||!u.connector.line.width){l.remove();return}var f=u.orientation==="h",c=l.selectAll("g.line").data(L_.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var x=qwe(d,i,a,f),b=x[0],v=x[1],k="";b[3]!==void 0&&v[3]!==void 0&&(f?(k+="M"+b[0]+","+v[1]+"L"+b[2]+","+v[2],k+="M"+b[1]+","+v[1]+"L"+b[3]+","+v[2]):(k+="M"+b[1]+","+v[1]+"L"+b[2]+","+v[3],k+="M"+b[1]+","+v[0]+"L"+b[2]+","+v[2])),k===""&&(k="M0,0Z"),L_.ensureSingle(FR.select(this),"path").attr("d",k).call(Owe.setClipUrl,t.layerClipId,e)}})})}function qwe(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}});var Hwe=Te((qcr,Gwe)=>{"use strict";var FE=Jl(),Vwe=Mu(),sH=jl(),e3t=N1().DESELECTDIM,t3t=N0(),r3t=Ap().resizeText,i3t=t3t.styleTextPoints;function n3t(e,t,r){var n=r||FE.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");r3t(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=FE.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var u=o.marker;FE.select(this).call(sH.fill,s.mc||u.color).call(sH.stroke,s.mlc||u.line.color).call(Vwe.dashLine,u.line.dash,s.mlw||u.line.width).style("opacity",o.selectedpoints&&!s.selected?e3t:1)}}),i3t(a,o,e),a.selectAll(".regions").each(function(){FE.select(this).selectAll("path").style("stroke-width",0).call(sH.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;Vwe.lineGroupStyle(FE.select(this).selectAll("path"),s.width,s.color,s.dash)})})}Gwe.exports={style:n3t}});var Xwe=Te((Ncr,jwe)=>{"use strict";var Wwe=jl().opacity,a3t=AA().hoverOnBars,lH=ei().formatPercent;jwe.exports=function(t,r,n,i,a){var o=a3t(t,r,n,i,a);if(o){var s=o.cd,u=s[0].trace,l=u.orientation==="h",f=o.index,c=s[f],h=l?"x":"y";o[h+"LabelVal"]=c.s,o.percentInitial=c.begR,o.percentInitialLabel=lH(c.begR,1),o.percentPrevious=c.difR,o.percentPreviousLabel=lH(c.difR,1),o.percentTotal=c.sumR,o.percentTotalLabel=lH(c.sumR,1);var d=c.hi||u.hoverinfo,p=[];if(d&&d!=="none"&&d!=="skip"){var x=d==="all",b=d.split("+"),v=function(k){return x||b.indexOf(k)!==-1};v("percent initial")&&p.push(o.percentInitialLabel+" of initial"),v("percent previous")&&p.push(o.percentPreviousLabel+" of previous"),v("percent total")&&p.push(o.percentTotalLabel+" of total")}return o.extraText=p.join("
"),o.color=o3t(u,c),[o]}};function o3t(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(Wwe(n))return n;if(Wwe(i)&&a)return i}});var Ywe=Te((Ucr,Zwe)=>{"use strict";Zwe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var Jwe=Te((Vcr,Kwe)=>{"use strict";Kwe.exports={attributes:rH(),layoutAttributes:iH(),supplyDefaults:aH().supplyDefaults,crossTraceDefaults:aH().crossTraceDefaults,supplyLayoutDefaults:kwe(),calc:Rwe(),crossTraceCalc:Bwe(),plot:Uwe(),style:Hwe().style,hoverPoints:Xwe(),eventData:Ywe(),selectPoints:TA(),moduleType:"trace",name:"funnel",basePlotModule:Ah(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var Qwe=Te((Gcr,$we)=>{"use strict";$we.exports=Jwe()});var t3e=Te((Hcr,e3e)=>{"use strict";e3e.exports={eventDataKeys:["initial","delta","final"]}});var cH=Te((Wcr,n3e)=>{"use strict";var Ec=Ly(),uH=Zc().line,s3t=Gf(),r3e=jc().axisHoverFormat,l3t=Nu().hovertemplateAttrs,u3t=Nu().texttemplateAttrs,i3e=t3e(),VA=Su().extendFlat,f3t=jl();function fH(e){return{marker:{color:VA({},Ec.marker.color,{arrayOk:!1,editType:"style"}),line:{color:VA({},Ec.marker.line.color,{arrayOk:!1,editType:"style"}),width:VA({},Ec.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}n3e.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:Ec.x,x0:Ec.x0,dx:Ec.dx,y:Ec.y,y0:Ec.y0,dy:Ec.dy,xperiod:Ec.xperiod,yperiod:Ec.yperiod,xperiod0:Ec.xperiod0,yperiod0:Ec.yperiod0,xperiodalignment:Ec.xperiodalignment,yperiodalignment:Ec.yperiodalignment,xhoverformat:r3e("x"),yhoverformat:r3e("y"),hovertext:Ec.hovertext,hovertemplate:l3t({},{keys:i3e.eventDataKeys}),hoverinfo:VA({},s3t.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:u3t({editType:"plot"},{keys:i3e.eventDataKeys.concat(["label"])}),text:Ec.text,textposition:Ec.textposition,insidetextanchor:Ec.insidetextanchor,textangle:Ec.textangle,textfont:Ec.textfont,insidetextfont:Ec.insidetextfont,outsidetextfont:Ec.outsidetextfont,constraintext:Ec.constraintext,cliponaxis:Ec.cliponaxis,orientation:Ec.orientation,offset:Ec.offset,width:Ec.width,increasing:fH("increasing"),decreasing:fH("decreasing"),totals:fH("intermediate sums and total"),connector:{line:{color:VA({},uH.color,{dflt:f3t.defaultLine}),width:VA({},uH.width,{editType:"plot"}),dash:uH.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Ec.offsetgroup,alignmentgroup:Ec.alignmentgroup,zorder:Ec.zorder}});var hH=Te((jcr,a3e)=>{"use strict";a3e.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var GA=Te((Xcr,o3e)=>{"use strict";o3e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var pH=Te((Zcr,f3e)=>{"use strict";var s3e=ei(),c3t=Gb(),h3t=r0().handleText,d3t=K3(),p3t=Pm(),l3e=cH(),v3t=jl(),u3e=GA(),m3t=u3e.INCREASING.COLOR,y3t=u3e.DECREASING.COLOR,g3t="#4499FF";function dH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",v3t.defaultLine),e(t+".marker.line.width")}function _3t(e,t,r,n){function i(l,f){return s3e.coerce(e,t,l3e,l,f)}var a=d3t(e,t,n,i);if(!a){t.visible=!1;return}p3t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("measure"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");h3t(e,t,n,i,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(i("texttemplate"),t.texttemplate||i("textinfo")),dH(i,"increasing",m3t),dH(i,"decreasing",y3t),dH(i,"totals",g3t);var s=i("connector.visible");if(s){i("connector.mode");var u=i("connector.line.width");u&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function x3t(e,t){var r,n;function i(o){return s3e.coerce(n._input,n,l3e,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var b3t=ei(),w3t=hH();c3e.exports=function(e,t,r){var n=!1;function i(s,u){return b3t.coerce(e,t,w3t,s,u)}for(var a=0;a{"use strict";var d3e=wu(),p3e=Im(),v3e=ei().mergeArray,A3t=F0(),m3e=nf().BADNUM;function vH(e){return e==="a"||e==="absolute"}function mH(e){return e==="t"||e==="total"}y3e.exports=function(t,r){var n=d3e.getFromId(t,r.xaxis||"x"),i=d3e.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),u=p3e(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=p3e(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;for(var c=Math.min(o.length,a.length),h=new Array(c),d=0,p,x=!1,b=0;b{"use strict";var _3e=Hb().setGroupPositions;x3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,u=[],l=[],f=[],c,h;for(h=0;h{"use strict";var w3e=Jl(),BR=ei(),T3t=Mu(),HA=nf().BADNUM,S3t=i2(),M3t=Ap().clearMinTextSize;A3e.exports=function(t,r,n,i){var a=t._fullLayout;M3t("waterfall",a),S3t.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),E3t(t,r,n,i)};function E3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;BR.makeTraceGroups(n,r,"trace bars").each(function(o){var s=w3e.select(this),u=o[0].trace,l=BR.ensureSingle(s,"g","lines");if(!u.connector||!u.connector.visible){l.remove();return}var f=u.orientation==="h",c=u.connector.mode,h=l.selectAll("g.line").data(BR.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(p,x){if(!(x!==d-1&&!p.cNext)){var b=k3t(p,i,a,f),v=b[0],k=b[1],E="";v[0]!==HA&&k[0]!==HA&&v[1]!==HA&&k[1]!==HA&&(c==="spanning"&&!p.isSum&&x>0&&(f?E+="M"+v[0]+","+k[1]+"V"+k[0]:E+="M"+v[1]+","+k[0]+"H"+v[0]),c!=="between"&&(p.isSum||x{"use strict";var OR=Jl(),S3e=Mu(),M3e=jl(),C3t=N1().DESELECTDIM,L3t=N0(),P3t=Ap().resizeText,z3t=L3t.styleTextPoints;function I3t(e,t,r){var n=r||OR.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");P3t(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=OR.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var u=o[s.dir].marker;OR.select(this).call(M3e.fill,u.color).call(M3e.stroke,u.line.color).call(S3e.dashLine,u.line.dash,u.line.width).style("opacity",o.selectedpoints&&!s.selected?C3t:1)}}),z3t(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;S3e.lineGroupStyle(OR.select(this).selectAll("path"),s.width,s.color,s.dash)})})}E3e.exports={style:I3t}});var I3e=Te((ehr,z3e)=>{"use strict";var R3t=wu().hoverLabelText,C3e=jl().opacity,D3t=AA().hoverOnBars,L3e=GA(),P3e={increasing:L3e.INCREASING.SYMBOL,decreasing:L3e.DECREASING.SYMBOL};z3e.exports=function(t,r,n,i,a){var o=D3t(t,r,n,i,a);if(!o)return;var s=o.cd,u=s[0].trace,l=u.orientation==="h",f=l?"x":"y",c=l?t.xa:t.ya;function h(_){return R3t(c,_,u[f+"hoverformat"])}var d=o.index,p=s[d],x=p.isSum?p.b+p.s:p.rawS;o.initial=p.b+p.s-x,o.delta=x,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=x<0?"("+b+")":b,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var v=p.hi||u.hoverinfo,k=[];if(v&&v!=="none"&&v!=="skip"){var E=v==="all",T=v.split("+"),L=function(_){return E||T.indexOf(_)!==-1};p.isSum||(L("final")&&(l?!L("x"):!L("y"))&&k.push(o.finalLabel),L("delta")&&(x<0?k.push(o.deltaLabel+" "+P3e.decreasing):k.push(o.deltaLabel+" "+P3e.increasing)),L("initial")&&k.push("Initial: "+o.initialLabel))}return k.length&&(o.extraText=k.join("
")),o.color=F3t(u,p),[o]};function F3t(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(C3e(n))return n;if(C3e(i)&&a)return i}});var D3e=Te((thr,R3e)=>{"use strict";R3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var B3e=Te((rhr,F3e)=>{"use strict";F3e.exports={attributes:cH(),layoutAttributes:hH(),supplyDefaults:pH().supplyDefaults,crossTraceDefaults:pH().crossTraceDefaults,supplyLayoutDefaults:h3e(),calc:g3e(),crossTraceCalc:b3e(),plot:T3e(),style:k3e().style,hoverPoints:I3e(),eventData:D3e(),selectPoints:TA(),moduleType:"trace",name:"waterfall",basePlotModule:Ah(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var q3e=Te((ihr,O3e)=>{"use strict";O3e.exports=B3e()});var WA=Te((nhr,N3e)=>{"use strict";N3e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}}});var yH=Te((ahr,V3e)=>{"use strict";var B3t=Gf(),O3t=Zc().zorder,q3t=Nu().hovertemplateAttrs,U3e=Su().extendFlat,N3t=WA().colormodel,OE=["rgb","rgba","rgba256","hsl","hsla"],U3t=[],V3t=[];for(jA=0;jA{"use strict";var G3t=ei(),H3t=yH(),G3e=WA(),W3t=Lg().IMAGE_URL_PREFIX;H3e.exports=function(t,r){function n(o,s){return G3t.coerce(t,r,H3t,o,s)}n("source"),r.source&&!r.source.match(W3t)&&delete r.source,r._hasSource=!!r.source;var i=n("z");if(r._hasZ=!(i===void 0||!i.length||!i[0]||!i[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}n("x0"),n("y0"),n("dx"),n("dy");var a;r._hasZ?(n("colormodel","rgb"),a=G3e.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=G3e.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),n("zsmooth"),n("text"),n("hovertext"),n("hovertemplate"),r._length=null,n("zorder")}});var Ug=Te((shr,gH)=>{typeof Object.create=="function"?gH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:gH.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var _H=Te((lhr,j3e)=>{j3e.exports=pb().EventEmitter});var Y3e=Te(qR=>{"use strict";qR.byteLength=X3t;qR.toByteArray=Y3t;qR.fromByteArray=$3t;var Fy=[],X0=[],j3t=typeof Uint8Array!="undefined"?Uint8Array:Array,xH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(s2=0,X3e=xH.length;s20)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function X3t(e){var t=Z3e(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Z3t(e,t,r){return(t+r)*3/4-r}function Y3t(e){var t,r=Z3e(e),n=r[0],i=r[1],a=new j3t(Z3t(e,n,i)),o=0,s=i>0?n-4:n,u;for(u=0;u>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=X0[e.charCodeAt(u)]<<2|X0[e.charCodeAt(u+1)]>>4,a[o++]=t&255),i===1&&(t=X0[e.charCodeAt(u)]<<10|X0[e.charCodeAt(u+1)]<<4|X0[e.charCodeAt(u+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function K3t(e){return Fy[e>>18&63]+Fy[e>>12&63]+Fy[e>>6&63]+Fy[e&63]}function J3t(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(Fy[t>>2]+Fy[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Fy[t>>10]+Fy[t>>4&63]+Fy[t<<2&63]+"=")),i.join("")}});var K3e=Te(bH=>{bH.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,u=(1<>1,f=-7,c=r?i-1:0,h=r?-1:1,d=e[t+c];for(c+=h,a=d&(1<<-f)-1,d>>=-f,f+=s;f>0;a=a*256+e[t+c],c+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=o*256+e[t+c],c+=h,f-=8);if(a===0)a=1-l;else{if(a===u)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(d?-1:1)*o*Math.pow(2,a-n)};bH.write=function(e,t,r,n,i,a){var o,s,u,l=a*8-i-1,f=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+c>=1?t+=h/u:t+=h*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=f?(s=0,o=f):o+c>=1?(s=(t*u-1)*Math.pow(2,i),o=o+c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=s&255,d+=p,s/=256,i-=8);for(o=o<0;e[r+d]=o&255,d+=p,o/=256,l-=8);e[r+d-p]|=x*128}});var u2=Te(KA=>{"use strict";var wH=Y3e(),ZA=K3e(),J3e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;KA.Buffer=ol;KA.SlowBuffer=nAt;KA.INSPECT_MAX_BYTES=50;var NR=2147483647;KA.kMaxLength=NR;ol.TYPED_ARRAY_SUPPORT=Q3t();!ol.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Q3t(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(ol.prototype,"parent",{enumerable:!0,get:function(){if(ol.isBuffer(this))return this.buffer}});Object.defineProperty(ol.prototype,"offset",{enumerable:!0,get:function(){if(ol.isBuffer(this))return this.byteOffset}});function Vg(e){if(e>NR)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ol.prototype),t}function ol(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return MH(e)}return tAe(e,t,r)}ol.poolSize=8192;function tAe(e,t,r){if(typeof e=="string")return tAt(e,t);if(ArrayBuffer.isView(e))return rAt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(By(e,ArrayBuffer)||e&&By(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(By(e,SharedArrayBuffer)||e&&By(e.buffer,SharedArrayBuffer)))return TH(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return ol.from(n,t,r);let i=iAt(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ol.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}ol.from=function(e,t,r){return tAe(e,t,r)};Object.setPrototypeOf(ol.prototype,Uint8Array.prototype);Object.setPrototypeOf(ol,Uint8Array);function rAe(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function eAt(e,t,r){return rAe(e),e<=0?Vg(e):t!==void 0?typeof r=="string"?Vg(e).fill(t,r):Vg(e).fill(t):Vg(e)}ol.alloc=function(e,t,r){return eAt(e,t,r)};function MH(e){return rAe(e),Vg(e<0?0:EH(e)|0)}ol.allocUnsafe=function(e){return MH(e)};ol.allocUnsafeSlow=function(e){return MH(e)};function tAt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ol.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=iAe(e,t)|0,n=Vg(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function AH(e){let t=e.length<0?0:EH(e.length)|0,r=Vg(t);for(let n=0;n=NR)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+NR.toString(16)+" bytes");return e|0}function nAt(e){return+e!=e&&(e=0),ol.alloc(+e)}ol.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ol.prototype};ol.compare=function(t,r){if(By(t,Uint8Array)&&(t=ol.from(t,t.offset,t.byteLength)),By(r,Uint8Array)&&(r=ol.from(r,r.offset,r.byteLength)),!ol.isBuffer(t)||!ol.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);ai.length?(ol.isBuffer(o)||(o=ol.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ol.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function iAe(e,t){if(ol.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||By(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return SH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return hAe(e).length;default:if(i)return n?-1:SH(e).length;t=(""+t).toLowerCase(),i=!0}}ol.byteLength=iAe;function aAt(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return vAt(this,t,r);case"utf8":case"utf-8":return aAe(this,t,r);case"ascii":return dAt(this,t,r);case"latin1":case"binary":return pAt(this,t,r);case"base64":return cAt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mAt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ol.prototype._isBuffer=!0;function l2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ol.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};J3e&&(ol.prototype[J3e]=ol.prototype.inspect);ol.prototype.compare=function(t,r,n,i,a){if(By(t,Uint8Array)&&(t=ol.from(t,t.offset,t.byteLength)),!ol.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,s=n-r,u=Math.min(o,s),l=this.slice(i,a),f=t.slice(r,n);for(let c=0;c2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,CH(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ol.from(t,n)),ol.isBuffer(t))return t.length===0?-1:$3e(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):$3e(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function $3e(e,t,r,n,i){let a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function u(f,c){return a===1?f[c]:f.readUInt16BE(c*a)}let l;if(i){let f=-1;for(l=r;lo&&(r=o-s),l=r;l>=0;l--){let f=!0;for(let c=0;ci&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return oAt(this,t,r,n);case"utf8":case"utf-8":return sAt(this,t,r,n);case"ascii":case"latin1":case"binary":return lAt(this,t,r,n);case"base64":return uAt(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fAt(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ol.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function cAt(e,t,r){return t===0&&r===e.length?wH.fromByteArray(e):wH.fromByteArray(e.slice(t,r))}function aAe(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let u,l,f,c;switch(s){case 1:a<128&&(o=a);break;case 2:u=e[i+1],(u&192)===128&&(c=(a&31)<<6|u&63,c>127&&(o=c));break;case 3:u=e[i+1],l=e[i+2],(u&192)===128&&(l&192)===128&&(c=(a&15)<<12|(u&63)<<6|l&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:u=e[i+1],l=e[i+2],f=e[i+3],(u&192)===128&&(l&192)===128&&(f&192)===128&&(c=(a&15)<<18|(u&63)<<12|(l&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return hAt(n)}var Q3e=4096;function hAt(e){let t=e.length;if(t<=Q3e)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let a=t;an&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}ol.prototype.readUintLE=ol.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||rp(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||rp(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ol.prototype.readUint8=ol.prototype.readUInt8=function(t,r){return t=t>>>0,r||rp(t,1,this.length),this[t]};ol.prototype.readUint16LE=ol.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||rp(t,2,this.length),this[t]|this[t+1]<<8};ol.prototype.readUint16BE=ol.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||rp(t,2,this.length),this[t]<<8|this[t+1]};ol.prototype.readUint32LE=ol.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ol.prototype.readUint32BE=ol.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ol.prototype.readBigUInt64LE=P_(function(t){t=t>>>0,YA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&qE(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<>>0,YA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&qE(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,r=r>>>0,n||rp(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};ol.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||rp(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};ol.prototype.readInt8=function(t,r){return t=t>>>0,r||rp(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ol.prototype.readInt16LE=function(t,r){t=t>>>0,r||rp(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ol.prototype.readInt16BE=function(t,r){t=t>>>0,r||rp(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ol.prototype.readInt32LE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ol.prototype.readInt32BE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ol.prototype.readBigInt64LE=P_(function(t){t=t>>>0,YA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&qE(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,YA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&qE(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||rp(t,4,this.length),ZA.read(this,t,!0,23,4)};ol.prototype.readFloatBE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),ZA.read(this,t,!1,23,4)};ol.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||rp(t,8,this.length),ZA.read(this,t,!0,52,8)};ol.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||rp(t,8,this.length),ZA.read(this,t,!1,52,8)};function zv(e,t,r,n,i,a){if(!ol.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}ol.prototype.writeUintLE=ol.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;zv(this,t,r,n,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;zv(this,t,r,n,s,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};ol.prototype.writeUint8=ol.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,1,255,0),this[r]=t&255,r+1};ol.prototype.writeUint16LE=ol.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};ol.prototype.writeUint16BE=ol.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};ol.prototype.writeUint32LE=ol.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};ol.prototype.writeUint32BE=ol.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function oAe(e,t,r,n,i){cAe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function sAe(e,t,r,n,i){cAe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}ol.prototype.writeBigUInt64LE=P_(function(t,r=0){return oAe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ol.prototype.writeBigUInt64BE=P_(function(t,r=0){return sAe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ol.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let u=Math.pow(2,8*n-1);zv(this,t,r,n,u-1,-u)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+n};ol.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let u=Math.pow(2,8*n-1);zv(this,t,r,n,u-1,-u)}let a=n-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+n};ol.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};ol.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};ol.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};ol.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};ol.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};ol.prototype.writeBigInt64LE=P_(function(t,r=0){return oAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ol.prototype.writeBigInt64BE=P_(function(t,r=0){return sAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function lAe(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function uAe(e,t,r,n,i){return t=+t,r=r>>>0,i||lAe(e,t,r,4,34028234663852886e22,-34028234663852886e22),ZA.write(e,t,r,n,23,4),r+4}ol.prototype.writeFloatLE=function(t,r,n){return uAe(this,t,r,!0,n)};ol.prototype.writeFloatBE=function(t,r,n){return uAe(this,t,r,!1,n)};function fAe(e,t,r,n,i){return t=+t,r=r>>>0,i||lAe(e,t,r,8,17976931348623157e292,-17976931348623157e292),ZA.write(e,t,r,n,52,8),r+8}ol.prototype.writeDoubleLE=function(t,r,n){return fAe(this,t,r,!0,n)};ol.prototype.writeDoubleBE=function(t,r,n){return fAe(this,t,r,!1,n)};ol.prototype.copy=function(t,r,n,i){if(!ol.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?i=eAe(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=eAe(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function eAe(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function yAt(e,t,r){YA(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&qE(t,e.length-(r+1))}function cAe(e,t,r,n,i,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new XA.ERR_OUT_OF_RANGE("value",s,e)}yAt(n,i,a)}function YA(e,t){if(typeof e!="number")throw new XA.ERR_INVALID_ARG_TYPE(t,"number",e)}function qE(e,t,r){throw Math.floor(e)!==e?(YA(e,r),new XA.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new XA.ERR_BUFFER_OUT_OF_BOUNDS:new XA.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var gAt=/[^+/0-9A-Za-z-_]/g;function _At(e){if(e=e.split("=")[0],e=e.trim().replace(gAt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function SH(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function xAt(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function hAe(e){return wH.toByteArray(_At(e))}function UR(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function By(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function CH(e){return e!==e}var wAt=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function P_(e){return typeof BigInt=="undefined"?AAt:e}function AAt(){throw new Error("BigInt not supported")}});var VR=Te((dhr,dAe)=>{"use strict";dAe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var NE=Te((phr,pAe)=>{"use strict";var TAt=VR();pAe.exports=function(){return TAt()&&!!Symbol.toStringTag}});var LH=Te((vhr,vAe)=>{"use strict";vAe.exports=Object});var yAe=Te((mhr,mAe)=>{"use strict";mAe.exports=Error});var _Ae=Te((yhr,gAe)=>{"use strict";gAe.exports=EvalError});var bAe=Te((ghr,xAe)=>{"use strict";xAe.exports=RangeError});var AAe=Te((_hr,wAe)=>{"use strict";wAe.exports=ReferenceError});var PH=Te((xhr,TAe)=>{"use strict";TAe.exports=SyntaxError});var JA=Te((bhr,SAe)=>{"use strict";SAe.exports=TypeError});var EAe=Te((whr,MAe)=>{"use strict";MAe.exports=URIError});var CAe=Te((Ahr,kAe)=>{"use strict";kAe.exports=Math.abs});var PAe=Te((Thr,LAe)=>{"use strict";LAe.exports=Math.floor});var IAe=Te((Shr,zAe)=>{"use strict";zAe.exports=Math.max});var DAe=Te((Mhr,RAe)=>{"use strict";RAe.exports=Math.min});var BAe=Te((Ehr,FAe)=>{"use strict";FAe.exports=Math.pow});var qAe=Te((khr,OAe)=>{"use strict";OAe.exports=Math.round});var UAe=Te((Chr,NAe)=>{"use strict";NAe.exports=Number.isNaN||function(t){return t!==t}});var GAe=Te((Lhr,VAe)=>{"use strict";var SAt=UAe();VAe.exports=function(t){return SAt(t)||t===0?t:t<0?-1:1}});var WAe=Te((Phr,HAe)=>{"use strict";HAe.exports=Object.getOwnPropertyDescriptor});var f2=Te((zhr,jAe)=>{"use strict";var GR=WAe();if(GR)try{GR([],"length")}catch(e){GR=null}jAe.exports=GR});var UE=Te((Ihr,XAe)=>{"use strict";var HR=Object.defineProperty||!1;if(HR)try{HR({},"a",{value:1})}catch(e){HR=!1}XAe.exports=HR});var KAe=Te((Rhr,YAe)=>{"use strict";var ZAe=typeof Symbol!="undefined"&&Symbol,MAt=VR();YAe.exports=function(){return typeof ZAe!="function"||typeof Symbol!="function"||typeof ZAe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:MAt()}});var zH=Te((Dhr,JAe)=>{"use strict";JAe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var IH=Te((Fhr,$Ae)=>{"use strict";var EAt=LH();$Ae.exports=EAt.getPrototypeOf||null});var tTe=Te((Bhr,eTe)=>{"use strict";var kAt="Function.prototype.bind called on incompatible ",CAt=Object.prototype.toString,LAt=Math.max,PAt="[object Function]",QAe=function(t,r){for(var n=[],i=0;i{"use strict";var RAt=tTe();rTe.exports=Function.prototype.bind||RAt});var WR=Te((qhr,iTe)=>{"use strict";iTe.exports=Function.prototype.call});var RH=Te((Nhr,nTe)=>{"use strict";nTe.exports=Function.prototype.apply});var oTe=Te((Uhr,aTe)=>{"use strict";aTe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var lTe=Te((Vhr,sTe)=>{"use strict";var DAt=$A(),FAt=RH(),BAt=WR(),OAt=oTe();sTe.exports=OAt||DAt.call(BAt,FAt)});var fTe=Te((Ghr,uTe)=>{"use strict";var qAt=$A(),NAt=JA(),UAt=WR(),VAt=lTe();uTe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new NAt("a function is required");return VAt(qAt,UAt,t)}});var mTe=Te((Hhr,vTe)=>{"use strict";var GAt=fTe(),cTe=f2(),dTe;try{dTe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var DH=!!dTe&&cTe&&cTe(Object.prototype,"__proto__"),pTe=Object,hTe=pTe.getPrototypeOf;vTe.exports=DH&&typeof DH.get=="function"?GAt([DH.get]):typeof hTe=="function"?function(t){return hTe(t==null?t:pTe(t))}:!1});var bTe=Te((Whr,xTe)=>{"use strict";var yTe=zH(),gTe=IH(),_Te=mTe();xTe.exports=yTe?function(t){return yTe(t)}:gTe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return gTe(t)}:_Te?function(t){return _Te(t)}:null});var ATe=Te((jhr,wTe)=>{"use strict";var HAt=Function.prototype.call,WAt=Object.prototype.hasOwnProperty,jAt=$A();wTe.exports=jAt.call(HAt,WAt)});var ZR=Te((Xhr,CTe)=>{"use strict";var Jf,XAt=LH(),ZAt=yAe(),YAt=_Ae(),KAt=bAe(),JAt=AAe(),rT=PH(),tT=JA(),$At=EAe(),QAt=CAe(),eTt=PAe(),tTt=IAe(),rTt=DAe(),iTt=BAe(),nTt=qAe(),aTt=GAe(),ETe=Function,FH=function(e){try{return ETe('"use strict"; return ('+e+").constructor;")()}catch(t){}},VE=f2(),oTt=UE(),BH=function(){throw new tT},sTt=VE?function(){try{return arguments.callee,BH}catch(e){try{return VE(arguments,"callee").get}catch(t){return BH}}}():BH,QA=KAe()(),ip=bTe(),lTt=IH(),uTt=zH(),kTe=RH(),GE=WR(),eT={},fTt=typeof Uint8Array=="undefined"||!ip?Jf:ip(Uint8Array),c2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Jf:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Jf:ArrayBuffer,"%ArrayIteratorPrototype%":QA&&ip?ip([][Symbol.iterator]()):Jf,"%AsyncFromSyncIteratorPrototype%":Jf,"%AsyncFunction%":eT,"%AsyncGenerator%":eT,"%AsyncGeneratorFunction%":eT,"%AsyncIteratorPrototype%":eT,"%Atomics%":typeof Atomics=="undefined"?Jf:Atomics,"%BigInt%":typeof BigInt=="undefined"?Jf:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Jf:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Jf:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Jf:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ZAt,"%eval%":eval,"%EvalError%":YAt,"%Float16Array%":typeof Float16Array=="undefined"?Jf:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Jf:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Jf:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Jf:FinalizationRegistry,"%Function%":ETe,"%GeneratorFunction%":eT,"%Int8Array%":typeof Int8Array=="undefined"?Jf:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Jf:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Jf:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":QA&&ip?ip(ip([][Symbol.iterator]())):Jf,"%JSON%":typeof JSON=="object"?JSON:Jf,"%Map%":typeof Map=="undefined"?Jf:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!QA||!ip?Jf:ip(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":XAt,"%Object.getOwnPropertyDescriptor%":VE,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Jf:Promise,"%Proxy%":typeof Proxy=="undefined"?Jf:Proxy,"%RangeError%":KAt,"%ReferenceError%":JAt,"%Reflect%":typeof Reflect=="undefined"?Jf:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Jf:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!QA||!ip?Jf:ip(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Jf:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":QA&&ip?ip(""[Symbol.iterator]()):Jf,"%Symbol%":QA?Symbol:Jf,"%SyntaxError%":rT,"%ThrowTypeError%":sTt,"%TypedArray%":fTt,"%TypeError%":tT,"%Uint8Array%":typeof Uint8Array=="undefined"?Jf:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Jf:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Jf:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Jf:Uint32Array,"%URIError%":$At,"%WeakMap%":typeof WeakMap=="undefined"?Jf:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Jf:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Jf:WeakSet,"%Function.prototype.call%":GE,"%Function.prototype.apply%":kTe,"%Object.defineProperty%":oTt,"%Object.getPrototypeOf%":lTt,"%Math.abs%":QAt,"%Math.floor%":eTt,"%Math.max%":tTt,"%Math.min%":rTt,"%Math.pow%":iTt,"%Math.round%":nTt,"%Math.sign%":aTt,"%Reflect.getPrototypeOf%":uTt};if(ip)try{null.error}catch(e){TTe=ip(ip(e)),c2["%Error.prototype%"]=TTe}var TTe,cTt=function e(t){var r;if(t==="%AsyncFunction%")r=FH("async function () {}");else if(t==="%GeneratorFunction%")r=FH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=FH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&ip&&(r=ip(i.prototype))}return c2[t]=r,r},STe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},HE=$A(),jR=ATe(),hTt=HE.call(GE,Array.prototype.concat),dTt=HE.call(kTe,Array.prototype.splice),MTe=HE.call(GE,String.prototype.replace),XR=HE.call(GE,String.prototype.slice),pTt=HE.call(GE,RegExp.prototype.exec),vTt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mTt=/\\(\\)?/g,yTt=function(t){var r=XR(t,0,1),n=XR(t,-1);if(r==="%"&&n!=="%")throw new rT("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new rT("invalid intrinsic syntax, expected opening `%`");var i=[];return MTe(t,vTt,function(a,o,s,u){i[i.length]=s?MTe(u,mTt,"$1"):o||a}),i},gTt=function(t,r){var n=t,i;if(jR(STe,n)&&(i=STe[n],n="%"+i[0]+"%"),jR(c2,n)){var a=c2[n];if(a===eT&&(a=cTt(n)),typeof a=="undefined"&&!r)throw new tT("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new rT("intrinsic "+t+" does not exist!")};CTe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new tT("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new tT('"allowMissing" argument must be a boolean');if(pTt(/^%?[^%]*%?$/,t)===null)throw new rT("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=yTt(t),i=n.length>0?n[0]:"",a=gTt("%"+i+"%",r),o=a.name,s=a.value,u=!1,l=a.alias;l&&(i=l[0],dTt(n,hTt([0,1],l)));for(var f=1,c=!0;f=n.length){var x=VE(s,h);c=!!x,c&&"get"in x&&!("originalValue"in x.get)?s=x.get:s=s[h]}else c=jR(s,h),s=s[h];c&&!u&&(c2[o]=s)}}return s}});var ITe=Te((Zhr,zTe)=>{"use strict";var LTe=UE(),_Tt=PH(),iT=JA(),PTe=f2();zTe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new iT("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new iT("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new iT("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new iT("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new iT("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new iT("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!PTe&&PTe(t,r);if(LTe)LTe(t,r,{configurable:o===null&&u?u.configurable:!o,enumerable:i===null&&u?u.enumerable:!i,value:n,writable:a===null&&u?u.writable:!a});else if(s||!i&&!a&&!o)t[r]=n;else throw new _Tt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var qH=Te((Yhr,DTe)=>{"use strict";var OH=UE(),RTe=function(){return!!OH};RTe.hasArrayLengthDefineBug=function(){if(!OH)return null;try{return OH([],"length",{value:1}).length!==1}catch(t){return!0}};DTe.exports=RTe});var NTe=Te((Khr,qTe)=>{"use strict";var xTt=ZR(),FTe=ITe(),bTt=qH()(),BTe=f2(),OTe=JA(),wTt=xTt("%Math.floor%");qTe.exports=function(t,r){if(typeof t!="function")throw new OTe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||wTt(r)!==r)throw new OTe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&BTe){var o=BTe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(bTt?FTe(t,"length",r,!0,!0):FTe(t,"length",r)),t}});var WE=Te((Jhr,YR)=>{"use strict";var NH=$A(),KR=ZR(),ATt=NTe(),TTt=JA(),GTe=KR("%Function.prototype.apply%"),HTe=KR("%Function.prototype.call%"),WTe=KR("%Reflect.apply%",!0)||NH.call(HTe,GTe),UTe=UE(),STt=KR("%Math.max%");YR.exports=function(t){if(typeof t!="function")throw new TTt("a function is required");var r=WTe(NH,HTe,arguments);return ATt(r,1+STt(0,t.length-(arguments.length-1)),!0)};var VTe=function(){return WTe(NH,GTe,arguments)};UTe?UTe(YR.exports,"apply",{value:VTe}):YR.exports.apply=VTe});var nT=Te(($hr,ZTe)=>{"use strict";var jTe=ZR(),XTe=WE(),MTt=XTe(jTe("String.prototype.indexOf"));ZTe.exports=function(t,r){var n=jTe(t,!!r);return typeof n=="function"&&MTt(t,".prototype.")>-1?XTe(n):n}});var JTe=Te((Qhr,KTe)=>{"use strict";var ETt=NE()(),kTt=nT(),UH=kTt("Object.prototype.toString"),JR=function(t){return ETt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:UH(t)==="[object Arguments]"},YTe=function(t){return JR(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&UH(t)!=="[object Array]"&&UH(t.callee)==="[object Function]"},CTt=function(){return JR(arguments)}();JR.isLegacyArguments=YTe;KTe.exports=CTt?JR:YTe});var eSe=Te((edr,QTe)=>{"use strict";var LTt=Object.prototype.toString,PTt=Function.prototype.toString,zTt=/^\s*(?:function)?\*/,$Te=NE()(),VH=Object.getPrototypeOf,ITt=function(){if(!$Te)return!1;try{return Function("return function*() {}")()}catch(e){}},GH;QTe.exports=function(t){if(typeof t!="function")return!1;if(zTt.test(PTt.call(t)))return!0;if(!$Te){var r=LTt.call(t);return r==="[object GeneratorFunction]"}if(!VH)return!1;if(typeof GH=="undefined"){var n=ITt();GH=n?VH(n):!1}return VH(t)===GH}});var nSe=Te((tdr,iSe)=>{"use strict";var rSe=Function.prototype.toString,aT=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,WH,$R;if(typeof aT=="function"&&typeof Object.defineProperty=="function")try{WH=Object.defineProperty({},"length",{get:function(){throw $R}}),$R={},aT(function(){throw 42},null,WH)}catch(e){e!==$R&&(aT=null)}else aT=null;var RTt=/^\s*class\b/,jH=function(t){try{var r=rSe.call(t);return RTt.test(r)}catch(n){return!1}},HH=function(t){try{return jH(t)?!1:(rSe.call(t),!0)}catch(r){return!1}},QR=Object.prototype.toString,DTt="[object Object]",FTt="[object Function]",BTt="[object GeneratorFunction]",OTt="[object HTMLAllCollection]",qTt="[object HTML document.all class]",NTt="[object HTMLCollection]",UTt=typeof Symbol=="function"&&!!Symbol.toStringTag,VTt=!(0 in[,]),XH=function(){return!1};typeof document=="object"&&(tSe=document.all,QR.call(tSe)===QR.call(document.all)&&(XH=function(t){if((VTt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=QR.call(t);return(r===OTt||r===qTt||r===NTt||r===DTt)&&t("")==null}catch(n){}return!1}));var tSe;iSe.exports=aT?function(t){if(XH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{aT(t,null,WH)}catch(r){if(r!==$R)return!1}return!jH(t)&&HH(t)}:function(t){if(XH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(UTt)return HH(t);if(jH(t))return!1;var r=QR.call(t);return r!==FTt&&r!==BTt&&!/^\[object HTML/.test(r)?!1:HH(t)}});var ZH=Te((rdr,oSe)=>{"use strict";var GTt=nSe(),HTt=Object.prototype.toString,aSe=Object.prototype.hasOwnProperty,WTt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),HTt.call(t)==="[object Array]"?WTt(t,r,i):typeof t=="string"?jTt(t,r,i):XTt(t,r,i)};oSe.exports=ZTt});var KH=Te((idr,sSe)=>{"use strict";var YH=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],YTt=typeof globalThis=="undefined"?window:globalThis;sSe.exports=function(){for(var t=[],r=0;r{"use strict";var tD=ZH(),KTt=KH(),lSe=WE(),QH=nT(),eD=f2(),JTt=QH("Object.prototype.toString"),fSe=NE()(),uSe=typeof globalThis=="undefined"?window:globalThis,$H=KTt(),eW=QH("String.prototype.slice"),JH=Object.getPrototypeOf,$Tt=QH("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:eSt(t)}return eD?QTt(t):null}});var gSe=Te((adr,ySe)=>{"use strict";var dSe=ZH(),tSt=KH(),rW=nT(),rSt=rW("Object.prototype.toString"),pSe=NE()(),iD=f2(),iSt=typeof globalThis=="undefined"?window:globalThis,vSe=tSt(),nSt=rW("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return iD?oSt(t):!1}});var aW=Te($f=>{"use strict";var sSt=JTe(),lSt=eSe(),Gm=hSe(),_Se=gSe();function oT(e){return e.call.bind(e)}var xSe=typeof BigInt!="undefined",bSe=typeof Symbol!="undefined",Z0=oT(Object.prototype.toString),uSt=oT(Number.prototype.valueOf),fSt=oT(String.prototype.valueOf),cSt=oT(Boolean.prototype.valueOf);xSe&&(wSe=oT(BigInt.prototype.valueOf));var wSe;bSe&&(ASe=oT(Symbol.prototype.valueOf));var ASe;function XE(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}$f.isArgumentsObject=sSt;$f.isGeneratorFunction=lSt;$f.isTypedArray=_Se;function hSt(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}$f.isPromise=hSt;function dSt(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):_Se(e)||SSe(e)}$f.isArrayBufferView=dSt;function pSt(e){return Gm(e)==="Uint8Array"}$f.isUint8Array=pSt;function vSt(e){return Gm(e)==="Uint8ClampedArray"}$f.isUint8ClampedArray=vSt;function mSt(e){return Gm(e)==="Uint16Array"}$f.isUint16Array=mSt;function ySt(e){return Gm(e)==="Uint32Array"}$f.isUint32Array=ySt;function gSt(e){return Gm(e)==="Int8Array"}$f.isInt8Array=gSt;function _St(e){return Gm(e)==="Int16Array"}$f.isInt16Array=_St;function xSt(e){return Gm(e)==="Int32Array"}$f.isInt32Array=xSt;function bSt(e){return Gm(e)==="Float32Array"}$f.isFloat32Array=bSt;function wSt(e){return Gm(e)==="Float64Array"}$f.isFloat64Array=wSt;function ASt(e){return Gm(e)==="BigInt64Array"}$f.isBigInt64Array=ASt;function TSt(e){return Gm(e)==="BigUint64Array"}$f.isBigUint64Array=TSt;function nD(e){return Z0(e)==="[object Map]"}nD.working=typeof Map!="undefined"&&nD(new Map);function SSt(e){return typeof Map=="undefined"?!1:nD.working?nD(e):e instanceof Map}$f.isMap=SSt;function aD(e){return Z0(e)==="[object Set]"}aD.working=typeof Set!="undefined"&&aD(new Set);function MSt(e){return typeof Set=="undefined"?!1:aD.working?aD(e):e instanceof Set}$f.isSet=MSt;function oD(e){return Z0(e)==="[object WeakMap]"}oD.working=typeof WeakMap!="undefined"&&oD(new WeakMap);function ESt(e){return typeof WeakMap=="undefined"?!1:oD.working?oD(e):e instanceof WeakMap}$f.isWeakMap=ESt;function nW(e){return Z0(e)==="[object WeakSet]"}nW.working=typeof WeakSet!="undefined"&&nW(new WeakSet);function kSt(e){return nW(e)}$f.isWeakSet=kSt;function sD(e){return Z0(e)==="[object ArrayBuffer]"}sD.working=typeof ArrayBuffer!="undefined"&&sD(new ArrayBuffer);function TSe(e){return typeof ArrayBuffer=="undefined"?!1:sD.working?sD(e):e instanceof ArrayBuffer}$f.isArrayBuffer=TSe;function lD(e){return Z0(e)==="[object DataView]"}lD.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&lD(new DataView(new ArrayBuffer(1),0,1));function SSe(e){return typeof DataView=="undefined"?!1:lD.working?lD(e):e instanceof DataView}$f.isDataView=SSe;var iW=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function jE(e){return Z0(e)==="[object SharedArrayBuffer]"}function MSe(e){return typeof iW=="undefined"?!1:(typeof jE.working=="undefined"&&(jE.working=jE(new iW)),jE.working?jE(e):e instanceof iW)}$f.isSharedArrayBuffer=MSe;function CSt(e){return Z0(e)==="[object AsyncFunction]"}$f.isAsyncFunction=CSt;function LSt(e){return Z0(e)==="[object Map Iterator]"}$f.isMapIterator=LSt;function PSt(e){return Z0(e)==="[object Set Iterator]"}$f.isSetIterator=PSt;function zSt(e){return Z0(e)==="[object Generator]"}$f.isGeneratorObject=zSt;function ISt(e){return Z0(e)==="[object WebAssembly.Module]"}$f.isWebAssemblyCompiledModule=ISt;function ESe(e){return XE(e,uSt)}$f.isNumberObject=ESe;function kSe(e){return XE(e,fSt)}$f.isStringObject=kSe;function CSe(e){return XE(e,cSt)}$f.isBooleanObject=CSe;function LSe(e){return xSe&&XE(e,wSe)}$f.isBigIntObject=LSe;function PSe(e){return bSe&&XE(e,ASe)}$f.isSymbolObject=PSe;function RSt(e){return ESe(e)||kSe(e)||CSe(e)||LSe(e)||PSe(e)}$f.isBoxedPrimitive=RSt;function DSt(e){return typeof Uint8Array!="undefined"&&(TSe(e)||MSe(e))}$f.isAnyArrayBuffer=DSt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty($f,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var oW=Te((sdr,zSe)=>{zSe.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var hW=Te(Qf=>{var ISe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(u){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),fW(t)?r.showHidden=t:t&&Qf._extend(r,t),d2(r.showHidden)&&(r.showHidden=!1),d2(r.depth)&&(r.depth=2),d2(r.colors)&&(r.colors=!1),d2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=BSt),hD(r,e,r.depth)}Qf.inspect=z_;z_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};z_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function BSt(e,t){var r=z_.styles[t];return r?"\x1B["+z_.colors[r][0]+"m"+e+"\x1B["+z_.colors[r][1]+"m":e}function OSt(e,t){return e}function qSt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function hD(e,t,r){if(e.customInspect&&t&&cD(t.inspect)&&t.inspect!==Qf.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return vD(n)||(n=hD(e,n,r)),n}var i=NSt(e,t);if(i)return i;var a=Object.keys(t),o=qSt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),YE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return sW(t);if(a.length===0){if(cD(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(ZE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(dD(t))return e.stylize(Date.prototype.toString.call(t),"date");if(YE(t))return sW(t)}var u="",l=!1,f=["{","}"];if(DSe(t)&&(l=!0,f=["[","]"]),cD(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(ZE(t)&&(u=" "+RegExp.prototype.toString.call(t)),dD(t)&&(u=" "+Date.prototype.toUTCString.call(t)),YE(t)&&(u=" "+sW(t)),a.length===0&&(!l||t.length==0))return f[0]+u+f[1];if(r<0)return ZE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return l?h=USt(e,t,r,o,a):h=a.map(function(d){return uW(e,t,r,o,d,l)}),e.seen.pop(),VSt(h,u,f)}function NSt(e,t){if(d2(t))return e.stylize("undefined","undefined");if(vD(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(FSe(t))return e.stylize(""+t,"number");if(fW(t))return e.stylize(""+t,"boolean");if(pD(t))return e.stylize("null","null")}function sW(e){return"["+Error.prototype.toString.call(e)+"]"}function USt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o24?(isFinite(se)&&(clearTimeout(Un),Un=setTimeout(oa,se)),Mn=0):(Mn=1,Ga(oa))}e.timer.flush=function(){ka(),so()};function ka(){for(var Z=Date.now(),se=Zi;se;)Z>=se.t&&se.c(Z-se.t)&&(se.c=null),se=se.n;return Z}function so(){for(var Z,se=Zi,ze=1/0;se;)se.c?(se.t=0;--_t)vi.push(Qe[Cr[ui[_t]][2]]);for(_t=+Oi;_t<$r.length-fn;++_t)vi.push(Qe[Cr[$r[_t]][2]]);return vi}return Xe.x=function(Qe){return arguments.length?(se=Qe,Xe):se},Xe.y=function(Qe){return arguments.length?(ze=Qe,Xe):ze},Xe};function Yo(Z){for(var se=Z.length,ze=[0,1],Xe=2,Qe=2;Qe1&&Pt(Z[ze[Xe-2]],Z[ze[Xe-1]],Z[Qe])<=0;)--Xe;ze[Xe++]=Qe}return ze.slice(0,Xe)}function fa(Z,se){return Z[0]-se[0]||Z[1]-se[1]}e.geom.polygon=function(Z){return te(Z,kn),Z};var kn=e.geom.polygon.prototype=[];kn.area=function(){for(var Z=-1,se=this.length,ze,Xe=this[se-1],Qe=0;++ZOe)_t=_t.L;else if(jt=se-Sn(_t,ze),jt>Oe){if(!_t.R){Xe=_t;break}_t=_t.R}else{ot>-Oe?(Xe=_t.P,Qe=_t):jt>-Oe?(Xe=_t,Qe=_t.N):Xe=Qe=_t;break}var cr=Po(Z);if(fo.insert(Xe,cr),!(!Xe&&!Qe)){if(Xe===Qe){Sa(Xe),Qe=Po(Xe.site),fo.insert(cr,Qe),cr.edge=Qe.edge=vo(Xe.site,cr.site),Wi(Xe),Wi(Qe);return}if(!Qe){cr.edge=vo(Xe.site,cr.site);return}Sa(Xe),Sa(Qe);var Cr=Xe.site,zr=Cr.x,ui=Cr.y,$r=Z.x-zr,Oi=Z.y-ui,fn=Qe.site,vi=fn.x-zr,zi=fn.y-ui,Xi=2*($r*zi-Oi*vi),pn=$r*$r+Oi*Oi,sn=vi*vi+zi*zi,bi={x:(zi*pn-Oi*sn)/Xi+zr,y:($r*sn-vi*pn)/Xi+ui};ps(Qe.edge,Cr,fn,bi),cr.edge=vo(Cr,Z,null,bi),Qe.edge=vo(Z,fn,null,bi),Wi(Xe),Wi(Qe)}}function Ha(Z,se){var ze=Z.site,Xe=ze.x,Qe=ze.y,ot=Qe-se;if(!ot)return Xe;var jt=Z.P;if(!jt)return-1/0;ze=jt.site;var _t=ze.x,cr=ze.y,Cr=cr-se;if(!Cr)return _t;var zr=_t-Xe,ui=1/ot-1/Cr,$r=zr/Cr;return ui?(-$r+Math.sqrt($r*$r-2*ui*(zr*zr/(-2*Cr)-cr+Cr/2+Qe-ot/2)))/ui+Xe:(Xe+_t)/2}function Sn(Z,se){var ze=Z.N;if(ze)return Ha(ze,se);var Xe=Z.site;return Xe.y===se?Xe.x:1/0}function ao(Z){this.site=Z,this.edges=[]}ao.prototype.prepare=function(){for(var Z=this.edges,se=Z.length,ze;se--;)ze=Z[se].edge,(!ze.b||!ze.a)&&Z.splice(se,1);return Z.sort(Ko),Z.length};function Ba(Z){for(var se=Z[0][0],ze=Z[1][0],Xe=Z[0][1],Qe=Z[1][1],ot,jt,_t,cr,Cr=$a,zr=Cr.length,ui,$r,Oi,fn,vi,zi;zr--;)if(ui=Cr[zr],!(!ui||!ui.prepare()))for(Oi=ui.edges,fn=Oi.length,$r=0;$rOe||v(cr-jt)>Oe)&&(Oi.splice($r,0,new co(As(ui.site,zi,v(_t-se)Oe?{x:se,y:v(ot-se)Oe?{x:v(jt-Qe)Oe?{x:ze,y:v(ot-ze)Oe?{x:v(jt-Xe)=-Re)){var $r=cr*cr+Cr*Cr,Oi=zr*zr+zi*zi,fn=(zi*$r-Cr*Oi)/ui,vi=(cr*Oi-zr*$r)/ui,zi=vi+_t,Xi=ws.pop()||new Qo;Xi.arc=Z,Xi.site=Qe,Xi.x=fn+jt,Xi.y=zi+Math.sqrt(fn*fn+vi*vi),Xi.cy=zi,Z.circle=Xi;for(var pn=null,sn=wa._;sn;)if(Xi.y0)){if(vi/=Oi,Oi<0){if(vi0){if(vi>$r)return;vi>ui&&(ui=vi)}if(vi=ze-_t,!(!Oi&&vi<0)){if(vi/=Oi,Oi<0){if(vi>$r)return;vi>ui&&(ui=vi)}else if(Oi>0){if(vi0)){if(vi/=fn,fn<0){if(vi0){if(vi>$r)return;vi>ui&&(ui=vi)}if(vi=Xe-cr,!(!fn&&vi<0)){if(vi/=fn,fn<0){if(vi>$r)return;vi>ui&&(ui=vi)}else if(fn>0){if(vi0&&(Qe.a={x:_t+ui*Oi,y:cr+ui*fn}),$r<1&&(Qe.b={x:_t+$r*Oi,y:cr+$r*fn}),Qe}}}}}}function vn(Z){for(var se=ls,ze=Qa(Z[0][0],Z[0][1],Z[1][0],Z[1][1]),Xe=se.length,Qe;Xe--;)Qe=se[Xe],(!da(Qe,Z)||!ze(Qe)||v(Qe.a.x-Qe.b.x)=ot)return;if(zr>$r){if(!Xe)Xe={x:fn,y:jt};else if(Xe.y>=_t)return;ze={x:fn,y:_t}}else{if(!Xe)Xe={x:fn,y:_t};else if(Xe.y1)if(zr>$r){if(!Xe)Xe={x:(jt-Xi)/zi,y:jt};else if(Xe.y>=_t)return;ze={x:(_t-Xi)/zi,y:_t}}else{if(!Xe)Xe={x:(_t-Xi)/zi,y:_t};else if(Xe.y=ot)return;ze={x:ot,y:zi*ot+Xi}}else{if(!Xe)Xe={x:ot,y:zi*ot+Xi};else if(Xe.x=zr&&Xi.x<=$r&&Xi.y>=ui&&Xi.y<=Oi?[[zr,Oi],[$r,Oi],[$r,ui],[zr,ui]]:[];pn.point=cr[vi]}),Cr}function _t(cr){return cr.map(function(Cr,zr){return{x:Math.round(Xe(Cr,zr)/Oe)*Oe,y:Math.round(Qe(Cr,zr)/Oe)*Oe,i:zr}})}return jt.links=function(cr){return qs(_t(cr)).edges.filter(function(Cr){return Cr.l&&Cr.r}).map(function(Cr){return{source:cr[Cr.l.i],target:cr[Cr.r.i]}})},jt.triangles=function(cr){var Cr=[];return qs(_t(cr)).cells.forEach(function(zr,ui){for(var $r=zr.site,Oi=zr.edges.sort(Ko),fn=-1,vi=Oi.length,zi,Xi,pn=Oi[vi-1].edge,sn=pn.l===$r?pn.r:pn.l;++fnsn&&(sn=zr.x),zr.y>bi&&(bi=zr.y),Oi.push(zr.x),fn.push(zr.y);else for(vi=0;visn&&(sn=xo),no>bi&&(bi=no),Oi.push(xo),fn.push(no)}var Xo=sn-Xi,js=bi-pn;Xo>js?bi=pn+Xo:sn=Xi+js;function El(Il,fu,Zu,Gu,rf,ds,Wl,Au){if(!(isNaN(Zu)||isNaN(Gu)))if(Il.leaf){var Tu=Il.x,uf=Il.y;if(Tu!=null)if(v(Tu-Zu)+v(uf-Gu)<.01)Pl(Il,fu,Zu,Gu,rf,ds,Wl,Au);else{var df=Il.point;Il.x=Il.y=Il.point=null,Pl(Il,df,Tu,uf,rf,ds,Wl,Au),Pl(Il,fu,Zu,Gu,rf,ds,Wl,Au)}else Il.x=Zu,Il.y=Gu,Il.point=fu}else Pl(Il,fu,Zu,Gu,rf,ds,Wl,Au)}function Pl(Il,fu,Zu,Gu,rf,ds,Wl,Au){var Tu=(rf+Wl)*.5,uf=(ds+Au)*.5,df=Zu>=Tu,Ef=Gu>=uf,vf=Ef<<1|df;Il.leaf=!1,Il=Il.nodes[vf]||(Il.nodes[vf]=_n()),df?rf=Tu:Wl=Tu,Ef?ds=uf:Au=uf,El(Il,fu,Zu,Gu,rf,ds,Wl,Au)}var pu=_n();if(pu.add=function(Il){El(pu,Il,+ui(Il,++vi),+$r(Il,vi),Xi,pn,sn,bi)},pu.visit=function(Il){Vn(Il,pu,Xi,pn,sn,bi)},pu.find=function(Il){return wo(pu,Il[0],Il[1],Xi,pn,sn,bi)},vi=-1,se==null){for(;++viot||$r>jt||Oi=xo,js=ze>=no,El=js<<1|Xo,Pl=El+4;Elze&&(ot=se.slice(ze,ot),_t[jt]?_t[jt]+=ot:_t[++jt]=ot),(Xe=Xe[0])===(Qe=Qe[0])?_t[jt]?_t[jt]+=Qe:_t[++jt]=Qe:(_t[++jt]=null,cr.push({i:jt,x:un(Xe,Qe)})),ze=qn.lastIndex;return ze=0&&!(Xe=e.interpolators[ze](Z,se)););return Xe}e.interpolators=[function(Z,se){var ze=typeof se;return(ze==="string"?pr.has(se.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(se)?Ra:$n:se instanceof Gi?Ra:Array.isArray(se)?Ja:ze==="object"&&isNaN(se)?Xn:un)(Z,se)}],e.interpolateArray=Ja;function Ja(Z,se){var ze=[],Xe=[],Qe=Z.length,ot=se.length,jt=Math.min(Z.length,se.length),_t;for(_t=0;_t=0?Z.slice(0,se):Z,Xe=se>=0?Z.slice(se+1):"in";return ze=eo.get(ze)||lo,Xe=sa.get(Xe)||G,es(Xe(ze.apply(null,t.call(arguments,1))))};function es(Z){return function(se){return se<=0?0:se>=1?1:Z(se)}}function Na(Z){return function(se){return 1-Z(1-se)}}function tn(Z){return function(se){return .5*(se<.5?Z(2*se):2-Z(2-2*se))}}function Pa(Z){return Z*Z}function to(Z){return Z*Z*Z}function yo(Z){if(Z<=0)return 0;if(Z>=1)return 1;var se=Z*Z,ze=se*Z;return 4*(Z<.5?ze:3*(Z-se)+ze-.75)}function Jo(Z){return function(se){return Math.pow(se,Z)}}function Ao(Z){return 1-Math.cos(Z*fe)}function Dn(Z){return Math.pow(2,10*(Z-1))}function _a(Z){return 1-Math.sqrt(1-Z*Z)}function Ws(Z,se){var ze;return arguments.length<2&&(se=.45),arguments.length?ze=se/ct*Math.asin(1/Z):(Z=1,ze=se/4),function(Xe){return 1+Z*Math.pow(2,-10*Xe)*Math.sin((Xe-ze)*ct/se)}}function Ca(Z){return Z||(Z=1.70158),function(se){return se*se*((Z+1)*se-Z)}}function Es(Z){return Z<1/2.75?7.5625*Z*Z:Z<2/2.75?7.5625*(Z-=1.5/2.75)*Z+.75:Z<2.5/2.75?7.5625*(Z-=2.25/2.75)*Z+.9375:7.5625*(Z-=2.625/2.75)*Z+.984375}e.interpolateHcl=Ts;function Ts(Z,se){Z=e.hcl(Z),se=e.hcl(se);var ze=Z.h,Xe=Z.c,Qe=Z.l,ot=se.h-ze,jt=se.c-Xe,_t=se.l-Qe;return isNaN(jt)&&(jt=0,Xe=isNaN(Xe)?se.c:Xe),isNaN(ot)?(ot=0,ze=isNaN(ze)?se.h:ze):ot>180?ot-=360:ot<-180&&(ot+=360),function(cr){return Lr(ze+ot*cr,Xe+jt*cr,Qe+_t*cr)+""}}e.interpolateHsl=Ho;function Ho(Z,se){Z=e.hsl(Z),se=e.hsl(se);var ze=Z.h,Xe=Z.s,Qe=Z.l,ot=se.h-ze,jt=se.s-Xe,_t=se.l-Qe;return isNaN(jt)&&(jt=0,Xe=isNaN(Xe)?se.s:Xe),isNaN(ot)?(ot=0,ze=isNaN(ze)?se.h:ze):ot>180?ot-=360:ot<-180&&(ot+=360),function(cr){return Vt(ze+ot*cr,Xe+jt*cr,Qe+_t*cr)+""}}e.interpolateLab=Wa;function Wa(Z,se){Z=e.lab(Z),se=e.lab(se);var ze=Z.l,Xe=Z.a,Qe=Z.b,ot=se.l-ze,jt=se.a-Xe,_t=se.b-Qe;return function(cr){return Vi(ze+ot*cr,Xe+jt*cr,Qe+_t*cr)+""}}e.interpolateRound=To;function To(Z,se){return se-=Z,function(ze){return Math.round(Z+se*ze)}}e.transform=function(Z){var se=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(ze){if(ze!=null){se.setAttribute("transform",ze);var Xe=se.transform.baseVal.consolidate()}return new ts(Xe?Xe.matrix:Bo)})(Z)};function ts(Z){var se=[Z.a,Z.b],ze=[Z.c,Z.d],Xe=qa(se),Qe=Wo(se,ze),ot=qa(ln(ze,se,-Qe))||0;se[0]*ze[1]180?se+=360:se-Z>180&&(Z+=360),Xe.push({i:ze.push(ko(ze)+"rotate(",null,")")-2,x:un(Z,se)})):se&&ze.push(ko(ze)+"rotate("+se+")")}function ea(Z,se,ze,Xe){Z!==se?Xe.push({i:ze.push(ko(ze)+"skewX(",null,")")-2,x:un(Z,se)}):se&&ze.push(ko(ze)+"skewX("+se+")")}function rs(Z,se,ze,Xe){if(Z[0]!==se[0]||Z[1]!==se[1]){var Qe=ze.push(ko(ze)+"scale(",null,",",null,")");Xe.push({i:Qe-4,x:un(Z[0],se[0])},{i:Qe-2,x:un(Z[1],se[1])})}else(se[0]!==1||se[1]!==1)&&ze.push(ko(ze)+"scale("+se+")")}function $s(Z,se){var ze=[],Xe=[];return Z=e.transform(Z),se=e.transform(se),oo(Z.translate,se.translate,ze,Xe),za(Z.rotate,se.rotate,ze,Xe),ea(Z.skew,se.skew,ze,Xe),rs(Z.scale,se.scale,ze,Xe),Z=se=null,function(Qe){for(var ot=-1,jt=Xe.length,_t;++ot0?ot=bi:(ze.c=null,ze.t=NaN,ze=null,se.end({type:"end",alpha:ot=0})):bi>0&&(se.start({type:"start",alpha:ot=bi}),ze=ma(Z.tick)),Z):ot},Z.start=function(){var bi,xo=Oi.length,no=fn.length,Xo=Xe[0],js=Xe[1],El,Pl;for(bi=0;bi=0;)ot.push(zr=Cr[cr]),zr.parent=_t,zr.depth=_t.depth+1;ze&&(_t.value=0),_t.children=Cr}else ze&&(_t.value=+ze.call(Xe,_t,_t.depth)||0),delete _t.children;return Oo(Qe,function(ui){var $r,Oi;Z&&($r=ui.children)&&$r.sort(Z),ze&&(Oi=ui.parent)&&(Oi.value+=ui.value)}),jt}return Xe.sort=function(Qe){return arguments.length?(Z=Qe,Xe):Z},Xe.children=function(Qe){return arguments.length?(se=Qe,Xe):se},Xe.value=function(Qe){return arguments.length?(ze=Qe,Xe):ze},Xe.revalue=function(Qe){return ze&&(Jn(Qe,function(ot){ot.children&&(ot.value=0)}),Oo(Qe,function(ot){var jt;ot.children||(ot.value=+ze.call(Xe,ot,ot.depth)||0),(jt=ot.parent)&&(jt.value+=ot.value)})),Qe},Xe};function Ea(Z,se){return e.rebind(Z,se,"sort","children","value"),Z.nodes=Z,Z.links=zs,Z}function Jn(Z,se){for(var ze=[Z];(Z=ze.pop())!=null;)if(se(Z),(Qe=Z.children)&&(Xe=Qe.length))for(var Xe,Qe;--Xe>=0;)ze.push(Qe[Xe])}function Oo(Z,se){for(var ze=[Z],Xe=[];(Z=ze.pop())!=null;)if(Xe.push(Z),(jt=Z.children)&&(ot=jt.length))for(var Qe=-1,ot,jt;++QeQe&&(Qe=_t),Xe.push(_t)}for(jt=0;jtXe&&(ze=se,Xe=Qe);return ze}function zo(Z){return Z.reduce(io,0)}function io(Z,se){return Z+se[1]}e.layout.histogram=function(){var Z=!0,se=Number,ze=vs,Xe=Io;function Qe(ot,$r){for(var _t=[],cr=ot.map(se,this),Cr=ze.call(this,cr,$r),zr=Xe.call(this,Cr,cr,$r),ui,$r=-1,Oi=cr.length,fn=zr.length-1,vi=Z?1:1/Oi,zi;++$r0)for($r=-1;++$r=Cr[0]&&zi<=Cr[1]&&(ui=_t[e.bisect(zr,zi,1,fn)-1],ui.y+=vi,ui.push(ot[$r]));return _t}return Qe.value=function(ot){return arguments.length?(se=ot,Qe):se},Qe.range=function(ot){return arguments.length?(ze=gr(ot),Qe):ze},Qe.bins=function(ot){return arguments.length?(Xe=typeof ot=="number"?function(jt){return Da(jt,ot)}:gr(ot),Qe):Xe},Qe.frequency=function(ot){return arguments.length?(Z=!!ot,Qe):Z},Qe};function Io(Z,se){return Da(Z,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Da(Z,se){for(var ze=-1,Xe=+Z[0],Qe=(Z[1]-Xe)/se,ot=[];++ze<=se;)ot[ze]=Qe*ze+Xe;return ot}function vs(Z){return[e.min(Z),e.max(Z)]}e.layout.pack=function(){var Z=e.layout.hierarchy().sort(fs),se=0,ze=[1,1],Xe;function Qe(ot,jt){var _t=Z.call(this,ot,jt),cr=_t[0],Cr=ze[0],zr=ze[1],ui=Xe==null?Math.sqrt:typeof Xe=="function"?Xe:function(){return Xe};if(cr.x=cr.y=0,Oo(cr,function(Oi){Oi.r=+ui(Oi.value)}),Oo(cr,Ro),se){var $r=se*(Xe?1:Math.max(2*cr.r/Cr,2*cr.r/zr))/2;Oo(cr,function(Oi){Oi.r+=$r}),Oo(cr,Ro),Oo(cr,function(Oi){Oi.r-=$r})}return hl(cr,Cr/2,zr/2,Xe?1:1/Math.max(2*cr.r/Cr,2*cr.r/zr)),_t}return Qe.size=function(ot){return arguments.length?(ze=ot,Qe):ze},Qe.radius=function(ot){return arguments.length?(Xe=ot==null||typeof ot=="function"?ot:+ot,Qe):Xe},Qe.padding=function(ot){return arguments.length?(se=+ot,Qe):se},Ea(Qe,Z)};function fs(Z,se){return Z.value-se.value}function cl(Z,se){var ze=Z._pack_next;Z._pack_next=se,se._pack_prev=Z,se._pack_next=ze,ze._pack_prev=se}function el(Z,se){Z._pack_next=se,se._pack_prev=Z}function Hs(Z,se){var ze=se.x-Z.x,Xe=se.y-Z.y,Qe=Z.r+se.r;return .999*Qe*Qe>ze*ze+Xe*Xe}function Ro(Z){if(!(se=Z.children)||!($r=se.length))return;var se,ze=1/0,Xe=-1/0,Qe=1/0,ot=-1/0,jt,_t,cr,Cr,zr,ui,$r;function Oi(bi){ze=Math.min(bi.x-bi.r,ze),Xe=Math.max(bi.x+bi.r,Xe),Qe=Math.min(bi.y-bi.r,Qe),ot=Math.max(bi.y+bi.r,ot)}if(se.forEach(tl),jt=se[0],jt.x=-jt.r,jt.y=0,Oi(jt),$r>1&&(_t=se[1],_t.x=_t.r,_t.y=0,Oi(_t),$r>2))for(cr=se[2],Fa(jt,_t,cr),Oi(cr),cl(jt,cr),jt._pack_prev=cr,cl(cr,_t),_t=jt._pack_next,Cr=3;Cr<$r;Cr++){Fa(jt,_t,cr=se[Cr]);var fn=0,vi=1,zi=1;for(zr=_t._pack_next;zr!==_t;zr=zr._pack_next,vi++)if(Hs(zr,cr)){fn=1;break}if(fn==1)for(ui=jt._pack_prev;ui!==zr._pack_prev&&!Hs(ui,cr);ui=ui._pack_prev,zi++);fn?(vizi.x&&(zi=xo),xo.depth>Xi.depth&&(Xi=xo)});var pn=se(vi,zi)/2-vi.x,sn=ze[0]/(zi.x+se(zi,vi)/2+pn),bi=ze[1]/(Xi.depth||1);Jn(Oi,function(xo){xo.x=(xo.x+pn)*sn,xo.y=xo.depth*bi})}return $r}function ot(zr){for(var ui={A:null,children:[zr]},$r=[ui],Oi;(Oi=$r.pop())!=null;)for(var fn=Oi.children,vi,zi=0,Xi=fn.length;zi0&&(Is(At(vi,zr,$r),zr,xo),Xi+=xo,pn+=xo),sn+=vi.m,Xi+=Oi.m,bi+=zi.m,pn+=fn.m;vi&&!Rs(fn)&&(fn.t=vi,fn.m+=sn-pn),Oi&&!jo(zi)&&(zi.t=Oi,zi.m+=Xi-bi,$r=zr)}return $r}function Cr(zr){zr.x*=ze[0],zr.y=zr.depth*ze[1]}return Qe.separation=function(zr){return arguments.length?(se=zr,Qe):se},Qe.size=function(zr){return arguments.length?(Xe=(ze=zr)==null?Cr:null,Qe):Xe?null:ze},Qe.nodeSize=function(zr){return arguments.length?(Xe=(ze=zr)==null?null:Cr,Qe):Xe?ze:null},Ea(Qe,Z)};function Ms(Z,se){return Z.parent==se.parent?1:2}function jo(Z){var se=Z.children;return se.length?se[0]:Z.t}function Rs(Z){var se=Z.children,ze;return(ze=se.length)?se[ze-1]:Z.t}function Is(Z,se,ze){var Xe=ze/(se.i-Z.i);se.c-=Xe,se.s+=ze,Z.c+=Xe,se.z+=ze,se.m+=ze}function Bs(Z){for(var se=0,ze=0,Xe=Z.children,Qe=Xe.length,ot;--Qe>=0;)ot=Xe[Qe],ot.z+=se,ot.m+=se,se+=ot.s+(ze+=ot.c)}function At(Z,se,ze){return Z.a.parent===se.parent?Z.a:ze}e.layout.cluster=function(){var Z=e.layout.hierarchy().sort(null).value(null),se=Ms,ze=[1,1],Xe=!1;function Qe(ot,jt){var _t=Z.call(this,ot,jt),cr=_t[0],Cr,zr=0;Oo(cr,function(vi){var zi=vi.children;zi&&zi.length?(vi.x=wr(zi),vi.y=Gt(zi)):(vi.x=Cr?zr+=se(vi,Cr):0,vi.y=0,Cr=vi)});var ui=mr(cr),$r=Or(cr),Oi=ui.x-se(ui,$r)/2,fn=$r.x+se($r,ui)/2;return Oo(cr,Xe?function(vi){vi.x=(vi.x-cr.x)*ze[0],vi.y=(cr.y-vi.y)*ze[1]}:function(vi){vi.x=(vi.x-Oi)/(fn-Oi)*ze[0],vi.y=(1-(cr.y?vi.y/cr.y:1))*ze[1]}),_t}return Qe.separation=function(ot){return arguments.length?(se=ot,Qe):se},Qe.size=function(ot){return arguments.length?(Xe=(ze=ot)==null,Qe):Xe?null:ze},Qe.nodeSize=function(ot){return arguments.length?(Xe=(ze=ot)!=null,Qe):Xe?ze:null},Ea(Qe,Z)};function Gt(Z){return 1+e.max(Z,function(se){return se.y})}function wr(Z){return Z.reduce(function(se,ze){return se+ze.x},0)/Z.length}function mr(Z){var se=Z.children;return se&&se.length?mr(se[0]):Z}function Or(Z){var se=Z.children,ze;return se&&(ze=se.length)?Or(se[ze-1]):Z}e.layout.treemap=function(){var Z=e.layout.hierarchy(),se=Math.round,ze=[1,1],Xe=null,Qe=gi,ot=!1,jt,_t="squarify",cr=.5*(1+Math.sqrt(5));function Cr(vi,zi){for(var Xi=-1,pn=vi.length,sn,bi;++Xi0;)pn.push(bi=sn[js-1]),pn.area+=bi.area,_t!=="squarify"||(no=$r(pn,Xo))<=xo?(sn.pop(),xo=no):(pn.area-=pn.pop().area,Oi(pn,Xo,Xi,!1),Xo=Math.min(Xi.dx,Xi.dy),pn.length=pn.area=0,xo=1/0);pn.length&&(Oi(pn,Xo,Xi,!0),pn.length=pn.area=0),zi.forEach(zr)}}function ui(vi){var zi=vi.children;if(zi&&zi.length){var Xi=Qe(vi),pn=zi.slice(),sn,bi=[];for(Cr(pn,Xi.dx*Xi.dy/vi.value),bi.area=0;sn=pn.pop();)bi.push(sn),bi.area+=sn.area,sn.z!=null&&(Oi(bi,sn.z?Xi.dx:Xi.dy,Xi,!pn.length),bi.length=bi.area=0);zi.forEach(ui)}}function $r(vi,zi){for(var Xi=vi.area,pn,sn=0,bi=1/0,xo=-1,no=vi.length;++xosn&&(sn=pn));return Xi*=Xi,zi*=zi,Xi?Math.max(zi*sn*cr/Xi,Xi/(zi*bi*cr)):1/0}function Oi(vi,zi,Xi,pn){var sn=-1,bi=vi.length,xo=Xi.x,no=Xi.y,Xo=zi?se(vi.area/zi):0,js;if(zi==Xi.dx){for((pn||Xo>Xi.dy)&&(Xo=Xi.dy);++snXi.dx)&&(Xo=Xi.dx);++sn1);return Z+se*Xe*Math.sqrt(-2*Math.log(ot)/ot)}},logNormal:function(){var Z=e.random.normal.apply(e,arguments);return function(){return Math.exp(Z())}},bates:function(Z){var se=e.random.irwinHall(Z);return function(){return se()/Z}},irwinHall:function(Z){return function(){for(var se=0,ze=0;ze2?Si:Fn,Cr=Xe?Ds:us;return Qe=cr(Z,se,Cr,ze),ot=cr(se,Z,Cr,Eo),_t}function _t(cr){return Qe(cr)}return _t.invert=function(cr){return ot(cr)},_t.domain=function(cr){return arguments.length?(Z=cr.map(Number),jt()):Z},_t.range=function(cr){return arguments.length?(se=cr,jt()):se},_t.rangeRound=function(cr){return _t.range(cr).interpolate(To)},_t.clamp=function(cr){return arguments.length?(Xe=cr,jt()):Xe},_t.interpolate=function(cr){return arguments.length?(ze=cr,jt()):ze},_t.ticks=function(cr){return pa(Z,cr)},_t.tickFormat=function(cr,Cr){return d3_scale_linearTickFormat(Z,cr,Cr)},_t.nice=function(cr){return ya(Z,cr),jt()},_t.copy=function(){return Gn(Z,se,ze,Xe)},jt()}function ta(Z,se){return e.rebind(Z,se,"range","rangeRound","interpolate","clamp")}function ya(Z,se){return Pi(Z,hi(ia(Z,se)[2])),Pi(Z,hi(ia(Z,se)[2])),Z}function ia(Z,se){se==null&&(se=10);var ze=ki(Z),Xe=ze[1]-ze[0],Qe=Math.pow(10,Math.floor(Math.log(Xe/se)/Math.LN10)),ot=se/Xe*Qe;return ot<=.15?Qe*=10:ot<=.35?Qe*=5:ot<=.75&&(Qe*=2),ze[0]=Math.ceil(ze[0]/Qe)*Qe,ze[1]=Math.floor(ze[1]/Qe)*Qe+Qe*.5,ze[2]=Qe,ze}function pa(Z,se){return e.range.apply(e,ia(Z,se))}var va={s:1,g:1,p:1,r:1,e:1};function zn(Z){return-Math.floor(Math.log(Z)/Math.LN10+.01)}function is(Z,se){var ze=zn(se[2]);return Z in va?Math.abs(ze-zn(Math.max(v(se[0]),v(se[1]))))+ +(Z!=="e"):ze-(Z==="%")*2}e.scale.log=function(){return Cs(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Cs(Z,se,ze,Xe){function Qe(_t){return(ze?Math.log(_t<0?0:_t):-Math.log(_t>0?0:-_t))/Math.log(se)}function ot(_t){return ze?Math.pow(se,_t):-Math.pow(se,-_t)}function jt(_t){return Z(Qe(_t))}return jt.invert=function(_t){return ot(Z.invert(_t))},jt.domain=function(_t){return arguments.length?(ze=_t[0]>=0,Z.domain((Xe=_t.map(Number)).map(Qe)),jt):Xe},jt.base=function(_t){return arguments.length?(se=+_t,Z.domain(Xe.map(Qe)),jt):se},jt.nice=function(){var _t=Pi(Xe.map(Qe),ze?Math:Ks);return Z.domain(_t),Xe=_t.map(ot),jt},jt.ticks=function(){var _t=ki(Xe),cr=[],Cr=_t[0],zr=_t[1],ui=Math.floor(Qe(Cr)),$r=Math.ceil(Qe(zr)),Oi=se%1?2:se;if(isFinite($r-ui)){if(ze){for(;ui<$r;ui++)for(var fn=1;fn0;fn--)cr.push(ot(ui)*fn);for(ui=0;cr[ui]zr;$r--);cr=cr.slice(ui,$r)}return cr},jt.copy=function(){return Cs(Z.copy(),se,ze,Xe)},ta(jt,Z)}var Ks={floor:function(Z){return-Math.ceil(-Z)},ceil:function(Z){return-Math.floor(-Z)}};e.scale.pow=function(){return dl(e.scale.linear(),1,[0,1])};function dl(Z,se,ze){var Xe=xl(se),Qe=xl(1/se);function ot(jt){return Z(Xe(jt))}return ot.invert=function(jt){return Qe(Z.invert(jt))},ot.domain=function(jt){return arguments.length?(Z.domain((ze=jt.map(Number)).map(Xe)),ot):ze},ot.ticks=function(jt){return pa(ze,jt)},ot.tickFormat=function(jt,_t){return d3_scale_linearTickFormat(ze,jt,_t)},ot.nice=function(jt){return ot.domain(ya(ze,jt))},ot.exponent=function(jt){return arguments.length?(Xe=xl(se=jt),Qe=xl(1/se),Z.domain(ze.map(Xe)),ot):se},ot.copy=function(){return dl(Z.copy(),se,ze)},ta(ot,Z)}function xl(Z){return function(se){return se<0?-Math.pow(-se,Z):Math.pow(se,Z)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Bl([],{t:"range",a:[[]]})};function Bl(Z,se){var ze,Xe,Qe;function ot(_t){return Xe[((ze.get(_t)||(se.t==="range"?ze.set(_t,Z.push(_t)):NaN))-1)%Xe.length]}function jt(_t,cr){return e.range(Z.length).map(function(Cr){return _t+cr*Cr})}return ot.domain=function(_t){if(!arguments.length)return Z;Z=[],ze=new T;for(var cr=-1,Cr=_t.length,zr;++cr0?ze[ot-1]:Z[0],ot$r?0:1;if(zr=ge)return cr(zr,fn)+(Cr?cr(Cr,1-fn):"")+"Z";var vi,zi,Xi,pn,sn=0,bi=0,xo,no,Xo,js,El,Pl,pu,Il,fu=[];if((pn=(+jt.apply(this,arguments)||0)/2)&&(Xi=Xe===ll?Math.sqrt(Cr*Cr+zr*zr):+Xe.apply(this,arguments),fn||(bi*=-1),zr&&(bi=Hr(Xi/zr*Math.sin(pn))),Cr&&(sn=Hr(Xi/Cr*Math.sin(pn)))),zr){xo=zr*Math.cos(ui+bi),no=zr*Math.sin(ui+bi),Xo=zr*Math.cos($r-bi),js=zr*Math.sin($r-bi);var Zu=Math.abs($r-ui-2*bi)<=De?0:1;if(bi&&Ll(xo,no,Xo,js)===fn^Zu){var Gu=(ui+$r)/2;xo=zr*Math.cos(Gu),no=zr*Math.sin(Gu),Xo=js=null}}else xo=no=0;if(Cr){El=Cr*Math.cos($r-sn),Pl=Cr*Math.sin($r-sn),pu=Cr*Math.cos(ui+sn),Il=Cr*Math.sin(ui+sn);var rf=Math.abs(ui-$r+2*sn)<=De?0:1;if(sn&&Ll(El,Pl,pu,Il)===1-fn^rf){var ds=(ui+$r)/2;El=Cr*Math.cos(ds),Pl=Cr*Math.sin(ds),pu=Il=null}}else El=Pl=0;if(Oi>Oe&&(vi=Math.min(Math.abs(zr-Cr)/2,+ze.apply(this,arguments)))>.001){zi=Cr0?0:1}function ms(Z,se,ze,Xe,Qe){var ot=Z[0]-se[0],jt=Z[1]-se[1],_t=(Qe?Xe:-Xe)/Math.sqrt(ot*ot+jt*jt),cr=_t*jt,Cr=-_t*ot,zr=Z[0]+cr,ui=Z[1]+Cr,$r=se[0]+cr,Oi=se[1]+Cr,fn=(zr+$r)/2,vi=(ui+Oi)/2,zi=$r-zr,Xi=Oi-ui,pn=zi*zi+Xi*Xi,sn=ze-Xe,bi=zr*Oi-$r*ui,xo=(Xi<0?-1:1)*Math.sqrt(Math.max(0,sn*sn*pn-bi*bi)),no=(bi*Xi-zi*xo)/pn,Xo=(-bi*zi-Xi*xo)/pn,js=(bi*Xi+zi*xo)/pn,El=(-bi*zi+Xi*xo)/pn,Pl=no-fn,pu=Xo-vi,Il=js-fn,fu=El-vi;return Pl*Pl+pu*pu>Il*Il+fu*fu&&(no=js,Xo=El),[[no-cr,Xo-Cr],[no*ze/sn,Xo*ze/sn]]}function Os(){return!0}function Xl(Z){var se=Kr,ze=Ia,Xe=Os,Qe=Nl,ot=Qe.key,jt=.7;function _t(cr){var Cr=[],zr=[],ui=-1,$r=cr.length,Oi,fn=gr(se),vi=gr(ze);function zi(){Cr.push("M",Qe(Z(zr),jt))}for(;++ui<$r;)Xe.call(this,Oi=cr[ui],ui)?zr.push([+fn.call(this,Oi,ui),+vi.call(this,Oi,ui)]):zr.length&&(zi(),zr=[]);return zr.length&&zi(),Cr.length?Cr.join(""):null}return _t.x=function(cr){return arguments.length?(se=cr,_t):se},_t.y=function(cr){return arguments.length?(ze=cr,_t):ze},_t.defined=function(cr){return arguments.length?(Xe=cr,_t):Xe},_t.interpolate=function(cr){return arguments.length?(typeof cr=="function"?ot=Qe=cr:ot=(Qe=Vl.get(cr)||Nl).key,_t):ot},_t.tension=function(cr){return arguments.length?(jt=cr,_t):jt},_t}e.svg.line=function(){return Xl(G)};var Vl=e.map({linear:Nl,"linear-closed":le,step:w,"step-before":q,"step-after":Q,basis:Ft,"basis-open":ir,"basis-closed":or,bundle:kr,cardinal:Ge,"cardinal-open":ee,"cardinal-closed":ue,monotone:Ht});Vl.forEach(function(Z,se){se.key=Z,se.closed=/-closed$/.test(Z)});function Nl(Z){return Z.length>1?Z.join("L"):Z+"Z"}function le(Z){return Z.join("L")+"Z"}function w(Z){for(var se=0,ze=Z.length,Xe=Z[0],Qe=[Xe[0],",",Xe[1]];++se1&&Qe.push("H",Xe[0]),Qe.join("")}function q(Z){for(var se=0,ze=Z.length,Xe=Z[0],Qe=[Xe[0],",",Xe[1]];++se1){_t=se[1],ot=Z[cr],cr++,Xe+="C"+(Qe[0]+jt[0])+","+(Qe[1]+jt[1])+","+(ot[0]-_t[0])+","+(ot[1]-_t[1])+","+ot[0]+","+ot[1];for(var Cr=2;Cr9&&(ot=ze*3/Math.sqrt(ot),jt[_t]=ot*Xe,jt[_t+1]=ot*Qe));for(_t=-1;++_t<=cr;)ot=(Z[Math.min(cr,_t+1)][0]-Z[Math.max(0,_t-1)][0])/(6*(1+jt[_t]*jt[_t])),se.push([ot||0,jt[_t]*ot||0]);return se}function Ht(Z){return Z.length<3?Nl(Z):Z[0]+et(Z,pt(Z))}e.svg.line.radial=function(){var Z=Xl(nr);return Z.radius=Z.x,delete Z.x,Z.angle=Z.y,delete Z.y,Z};function nr(Z){for(var se,ze=-1,Xe=Z.length,Qe,ot;++zeDe)+",1 "+ui}function Cr(zr,ui,$r,Oi){return"Q 0,0 "+Oi}return ot.radius=function(zr){return arguments.length?(ze=gr(zr),ot):ze},ot.source=function(zr){return arguments.length?(Z=gr(zr),ot):Z},ot.target=function(zr){return arguments.length?(se=gr(zr),ot):se},ot.startAngle=function(zr){return arguments.length?(Xe=gr(zr),ot):Xe},ot.endAngle=function(zr){return arguments.length?(Qe=gr(zr),ot):Qe},ot};function ri(Z){return Z.radius}e.svg.diagonal=function(){var Z=Ar,se=Rr,ze=si;function Xe(Qe,ot){var jt=Z.call(this,Qe,ot),_t=se.call(this,Qe,ot),cr=(jt.y+_t.y)/2,Cr=[jt,{x:jt.x,y:cr},{x:_t.x,y:cr},_t];return Cr=Cr.map(ze),"M"+Cr[0]+"C"+Cr[1]+" "+Cr[2]+" "+Cr[3]}return Xe.source=function(Qe){return arguments.length?(Z=gr(Qe),Xe):Z},Xe.target=function(Qe){return arguments.length?(se=gr(Qe),Xe):se},Xe.projection=function(Qe){return arguments.length?(ze=Qe,Xe):ze},Xe};function si(Z){return[Z.x,Z.y]}e.svg.diagonal.radial=function(){var Z=e.svg.diagonal(),se=si,ze=Z.projection;return Z.projection=function(Xe){return arguments.length?ze(Mi(se=Xe)):se},Z};function Mi(Z){return function(){var se=Z.apply(this,arguments),ze=se[0],Xe=se[1]-fe;return[ze*Math.cos(Xe),ze*Math.sin(Xe)]}}e.svg.symbol=function(){var Z=Zn,se=hn;function ze(Xe,Qe){return(Ua.get(Z.call(this,Xe,Qe))||Yn)(se.call(this,Xe,Qe))}return ze.type=function(Xe){return arguments.length?(Z=gr(Xe),ze):Z},ze.size=function(Xe){return arguments.length?(se=gr(Xe),ze):se},ze};function hn(){return 64}function Zn(){return"circle"}function Yn(Z){var se=Math.sqrt(Z/De);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var Ua=e.map({circle:Yn,cross:function(Z){var se=Math.sqrt(Z/5)/2;return"M"+-3*se+","+-se+"H"+-se+"V"+-3*se+"H"+se+"V"+-se+"H"+3*se+"V"+se+"H"+se+"V"+3*se+"H"+-se+"V"+se+"H"+-3*se+"Z"},diamond:function(Z){var se=Math.sqrt(Z/(2*vl)),ze=se*vl;return"M0,"+-se+"L"+ze+",0 0,"+se+" "+-ze+",0Z"},square:function(Z){var se=Math.sqrt(Z)/2;return"M"+-se+","+-se+"L"+se+","+-se+" "+se+","+se+" "+-se+","+se+"Z"},"triangle-down":function(Z){var se=Math.sqrt(Z/Fo),ze=se*Fo/2;return"M0,"+ze+"L"+se+","+-ze+" "+-se+","+-ze+"Z"},"triangle-up":function(Z){var se=Math.sqrt(Z/Fo),ze=se*Fo/2;return"M0,"+-ze+"L"+se+","+ze+" "+-se+","+ze+"Z"}});e.svg.symbolTypes=Ua.keys();var Fo=Math.sqrt(3),vl=Math.tan(30*pe);Fe.transition=function(Z){for(var se=Ol||++Yl,ze=tu(Z),Xe=[],Qe,ot,jt=ou||{time:Date.now(),ease:yo,delay:0,duration:250},_t=-1,cr=this.length;++_t0;)ui[--pn].call(Z,Xi);if(zi>=1)return jt.event&&jt.event.end.call(Z,Z.__data__,se),--ot.count?delete ot[Xe]:delete Z[ze],1}jt||(_t=Qe.time,cr=ma($r,0,_t),jt=ot[Xe]={tween:new T,time:_t,timer:cr,delay:Qe.delay,duration:Qe.duration,ease:Qe.ease,index:se},Qe=null,++ot.count)}e.svg.axis=function(){var Z=e.scale.linear(),se=Qu,ze=6,Xe=6,Qe=3,ot=[10],jt=null,_t;function cr(Cr){Cr.each(function(){var zr=e.select(this),ui=this.__chart__||Z,$r=this.__chart__=Z.copy(),Oi=jt==null?$r.ticks?$r.ticks.apply($r,ot):$r.domain():jt,fn=_t==null?$r.tickFormat?$r.tickFormat.apply($r,ot):G:_t,vi=zr.selectAll(".tick").data(Oi,$r),zi=vi.enter().insert("g",".domain").attr("class","tick").style("opacity",Oe),Xi=e.transition(vi.exit()).style("opacity",Oe).remove(),pn=e.transition(vi.order()).style("opacity",1),sn=Math.max(ze,0)+Qe,bi,xo=Ji($r),no=zr.selectAll(".domain").data([0]),Xo=(no.enter().append("path").attr("class","domain"),e.transition(no));zi.append("line"),zi.append("text");var js=zi.select("line"),El=pn.select("line"),Pl=vi.select("text").text(fn),pu=zi.select("text"),Il=pn.select("text"),fu=se==="top"||se==="left"?-1:1,Zu,Gu,rf,ds;if(se==="bottom"||se==="top"?(bi=ju,Zu="x",rf="y",Gu="x2",ds="y2",Pl.attr("dy",fu<0?"0em":".71em").style("text-anchor","middle"),Xo.attr("d","M"+xo[0]+","+fu*Xe+"V0H"+xo[1]+"V"+fu*Xe)):(bi=Xu,Zu="y",rf="x",Gu="y2",ds="x2",Pl.attr("dy",".32em").style("text-anchor",fu<0?"end":"start"),Xo.attr("d","M"+fu*Xe+","+xo[0]+"H0V"+xo[1]+"H"+fu*Xe)),js.attr(ds,fu*ze),pu.attr(rf,fu*sn),El.attr(Gu,0).attr(ds,fu*ze),Il.attr(Zu,0).attr(rf,fu*sn),$r.rangeBand){var Wl=$r,Au=Wl.rangeBand()/2;ui=$r=function(Tu){return Wl(Tu)+Au}}else ui.rangeBand?ui=$r:Xi.call(bi,$r,ui);zi.call(bi,ui,$r),pn.call(bi,$r,$r)})}return cr.scale=function(Cr){return arguments.length?(Z=Cr,cr):Z},cr.orient=function(Cr){return arguments.length?(se=Cr in Ju?Cr+"":Qu,cr):se},cr.ticks=function(){return arguments.length?(ot=r(arguments),cr):ot},cr.tickValues=function(Cr){return arguments.length?(jt=Cr,cr):jt},cr.tickFormat=function(Cr){return arguments.length?(_t=Cr,cr):_t},cr.tickSize=function(Cr){var zr=arguments.length;return zr?(ze=+Cr,Xe=+arguments[zr-1],cr):ze},cr.innerTickSize=function(Cr){return arguments.length?(ze=+Cr,cr):ze},cr.outerTickSize=function(Cr){return arguments.length?(Xe=+Cr,cr):Xe},cr.tickPadding=function(Cr){return arguments.length?(Qe=+Cr,cr):Qe},cr.tickSubdivide=function(){return arguments.length&&cr},cr};var Qu="bottom",Ju={top:1,right:1,bottom:1,left:1};function ju(Z,se,ze){Z.attr("transform",function(Xe){var Qe=se(Xe);return"translate("+(isFinite(Qe)?Qe:ze(Xe))+",0)"})}function Xu(Z,se,ze){Z.attr("transform",function(Xe){var Qe=se(Xe);return"translate(0,"+(isFinite(Qe)?Qe:ze(Xe))+")"})}e.svg.brush=function(){var Z=Ce(zr,"brushstart","brush","brushend"),se=null,ze=null,Xe=[0,0],Qe=[0,0],ot,jt,_t=!0,cr=!0,Cr=xf[0];function zr(vi){vi.each(function(){var zi=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",fn).on("touchstart.brush",fn),Xi=zi.selectAll(".background").data([0]);Xi.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),zi.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var pn=zi.selectAll(".resize").data(Cr,G);pn.exit().remove(),pn.enter().append("g").attr("class",function(no){return"resize "+no}).style("cursor",function(no){return lf[no]}).append("rect").attr("x",function(no){return/[ew]$/.test(no)?-3:null}).attr("y",function(no){return/^[ns]/.test(no)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),pn.style("display",zr.empty()?"none":null);var sn=e.transition(zi),bi=e.transition(Xi),xo;se&&(xo=Ji(se),bi.attr("x",xo[0]).attr("width",xo[1]-xo[0]),$r(sn)),ze&&(xo=Ji(ze),bi.attr("y",xo[0]).attr("height",xo[1]-xo[0]),Oi(sn)),ui(sn)})}zr.event=function(vi){vi.each(function(){var zi=Z.of(this,arguments),Xi={x:Xe,y:Qe,i:ot,j:jt},pn=this.__chart__||Xi;this.__chart__=Xi,Ol?e.select(this).transition().each("start.brush",function(){ot=pn.i,jt=pn.j,Xe=pn.x,Qe=pn.y,zi({type:"brushstart"})}).tween("brush:brush",function(){var sn=Ja(Xe,Xi.x),bi=Ja(Qe,Xi.y);return ot=jt=null,function(xo){Xe=Xi.x=sn(xo),Qe=Xi.y=bi(xo),zi({type:"brush",mode:"resize"})}}).each("end.brush",function(){ot=Xi.i,jt=Xi.j,zi({type:"brush",mode:"resize"}),zi({type:"brushend"})}):(zi({type:"brushstart"}),zi({type:"brush",mode:"resize"}),zi({type:"brushend"}))})};function ui(vi){vi.selectAll(".resize").attr("transform",function(zi){return"translate("+Xe[+/e$/.test(zi)]+","+Qe[+/^s/.test(zi)]+")"})}function $r(vi){vi.select(".extent").attr("x",Xe[0]),vi.selectAll(".extent,.n>rect,.s>rect").attr("width",Xe[1]-Xe[0])}function Oi(vi){vi.select(".extent").attr("y",Qe[0]),vi.selectAll(".extent,.e>rect,.w>rect").attr("height",Qe[1]-Qe[0])}function fn(){var vi=this,zi=e.select(e.event.target),Xi=Z.of(vi,arguments),pn=e.select(vi),sn=zi.datum(),bi=!/^(n|s)$/.test(sn)&&se,xo=!/^(e|w)$/.test(sn)&&ze,no=zi.classed("extent"),Xo=br(vi),js,El=e.mouse(vi),Pl,pu=e.select(a(vi)).on("keydown.brush",Zu).on("keyup.brush",Gu);if(e.event.changedTouches?pu.on("touchmove.brush",rf).on("touchend.brush",Wl):pu.on("mousemove.brush",rf).on("mouseup.brush",Wl),pn.interrupt().selectAll("*").interrupt(),no)El[0]=Xe[0]-El[0],El[1]=Qe[0]-El[1];else if(sn){var Il=+/w$/.test(sn),fu=+/^n/.test(sn);Pl=[Xe[1-Il]-El[0],Qe[1-fu]-El[1]],El[0]=Xe[Il],El[1]=Qe[fu]}else e.event.altKey&&(js=El.slice());pn.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",zi.style("cursor")),Xi({type:"brushstart"}),rf();function Zu(){e.event.keyCode==32&&(no||(js=null,El[0]-=Xe[1],El[1]-=Qe[1],no=2),be())}function Gu(){e.event.keyCode==32&&no==2&&(El[0]+=Xe[1],El[1]+=Qe[1],no=0,be())}function rf(){var Au=e.mouse(vi),Tu=!1;Pl&&(Au[0]+=Pl[0],Au[1]+=Pl[1]),no||(e.event.altKey?(js||(js=[(Xe[0]+Xe[1])/2,(Qe[0]+Qe[1])/2]),El[0]=Xe[+(Au[0]{(function(e,t){typeof fL=="object"&&typeof Mee!="undefined"?t(fL):(e=e||self,t(e.d3=e.d3||{}))})(fL,function(e){"use strict";var t=new Date,r=new Date;function n(Ae,at,wt,vt){function st(Ue){return Ae(Ue=arguments.length===0?new Date:new Date(+Ue)),Ue}return st.floor=function(Ue){return Ae(Ue=new Date(+Ue)),Ue},st.ceil=function(Ue){return Ae(Ue=new Date(Ue-1)),at(Ue,1),Ae(Ue),Ue},st.round=function(Ue){var rt=st(Ue),$e=st.ceil(Ue);return Ue-rt<$e-Ue?rt:$e},st.offset=function(Ue,rt){return at(Ue=new Date(+Ue),rt==null?1:Math.floor(rt)),Ue},st.range=function(Ue,rt,$e){var zt=[],Yt;if(Ue=st.ceil(Ue),$e=$e==null?1:Math.floor($e),!(Ue0))return zt;do zt.push(Yt=new Date(+Ue)),at(Ue,$e),Ae(Ue);while(Yt=rt)for(;Ae(rt),!Ue(rt);)rt.setTime(rt-1)},function(rt,$e){if(rt>=rt)if($e<0)for(;++$e<=0;)for(;at(rt,-1),!Ue(rt););else for(;--$e>=0;)for(;at(rt,1),!Ue(rt););})},wt&&(st.count=function(Ue,rt){return t.setTime(+Ue),r.setTime(+rt),Ae(t),Ae(r),Math.floor(wt(t,r))},st.every=function(Ue){return Ue=Math.floor(Ue),!isFinite(Ue)||!(Ue>0)?null:Ue>1?st.filter(vt?function(rt){return vt(rt)%Ue===0}:function(rt){return st.count(0,rt)%Ue===0}):st}),st}var i=n(function(){},function(Ae,at){Ae.setTime(+Ae+at)},function(Ae,at){return at-Ae});i.every=function(Ae){return Ae=Math.floor(Ae),!isFinite(Ae)||!(Ae>0)?null:Ae>1?n(function(at){at.setTime(Math.floor(at/Ae)*Ae)},function(at,wt){at.setTime(+at+wt*Ae)},function(at,wt){return(wt-at)/Ae}):i};var a=i.range,o=1e3,s=6e4,u=36e5,l=864e5,f=6048e5,c=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds())},function(Ae,at){Ae.setTime(+Ae+at*o)},function(Ae,at){return(at-Ae)/o},function(Ae){return Ae.getUTCSeconds()}),h=c.range,d=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o)},function(Ae,at){Ae.setTime(+Ae+at*s)},function(Ae,at){return(at-Ae)/s},function(Ae){return Ae.getMinutes()}),p=d.range,_=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o-Ae.getMinutes()*s)},function(Ae,at){Ae.setTime(+Ae+at*u)},function(Ae,at){return(at-Ae)/u},function(Ae){return Ae.getHours()}),b=_.range,v=n(function(Ae){Ae.setHours(0,0,0,0)},function(Ae,at){Ae.setDate(Ae.getDate()+at)},function(Ae,at){return(at-Ae-(at.getTimezoneOffset()-Ae.getTimezoneOffset())*s)/l},function(Ae){return Ae.getDate()-1}),k=v.range;function E(Ae){return n(function(at){at.setDate(at.getDate()-(at.getDay()+7-Ae)%7),at.setHours(0,0,0,0)},function(at,wt){at.setDate(at.getDate()+wt*7)},function(at,wt){return(wt-at-(wt.getTimezoneOffset()-at.getTimezoneOffset())*s)/f})}var T=E(0),L=E(1),x=E(2),C=E(3),M=E(4),m=E(5),P=E(6),A=T.range,B=L.range,F=x.range,U=C.range,G=M.range,j=m.range,H=P.range,N=n(function(Ae){Ae.setDate(1),Ae.setHours(0,0,0,0)},function(Ae,at){Ae.setMonth(Ae.getMonth()+at)},function(Ae,at){return at.getMonth()-Ae.getMonth()+(at.getFullYear()-Ae.getFullYear())*12},function(Ae){return Ae.getMonth()}),W=N.range,re=n(function(Ae){Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,at){Ae.setFullYear(Ae.getFullYear()+at)},function(Ae,at){return at.getFullYear()-Ae.getFullYear()},function(Ae){return Ae.getFullYear()});re.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(at){at.setFullYear(Math.floor(at.getFullYear()/Ae)*Ae),at.setMonth(0,1),at.setHours(0,0,0,0)},function(at,wt){at.setFullYear(at.getFullYear()+wt*Ae)})};var ae=re.range,be=n(function(Ae){Ae.setUTCSeconds(0,0)},function(Ae,at){Ae.setTime(+Ae+at*s)},function(Ae,at){return(at-Ae)/s},function(Ae){return Ae.getUTCMinutes()}),Pe=be.range,Ce=n(function(Ae){Ae.setUTCMinutes(0,0,0)},function(Ae,at){Ae.setTime(+Ae+at*u)},function(Ae,at){return(at-Ae)/u},function(Ae){return Ae.getUTCHours()}),de=Ce.range,te=n(function(Ae){Ae.setUTCHours(0,0,0,0)},function(Ae,at){Ae.setUTCDate(Ae.getUTCDate()+at)},function(Ae,at){return(at-Ae)/l},function(Ae){return Ae.getUTCDate()-1}),ke=te.range;function Ee(Ae){return n(function(at){at.setUTCDate(at.getUTCDate()-(at.getUTCDay()+7-Ae)%7),at.setUTCHours(0,0,0,0)},function(at,wt){at.setUTCDate(at.getUTCDate()+wt*7)},function(at,wt){return(wt-at)/f})}var Me=Ee(0),Ne=Ee(1),Fe=Ee(2),ye=Ee(3),Ve=Ee(4),ce=Ee(5),Ke=Ee(6),nt=Me.range,gt=Ne.range,Nt=Fe.range,it=ye.range,Ye=Ve.range,kt=ce.range,Tt=Ke.range,St=n(function(Ae){Ae.setUTCDate(1),Ae.setUTCHours(0,0,0,0)},function(Ae,at){Ae.setUTCMonth(Ae.getUTCMonth()+at)},function(Ae,at){return at.getUTCMonth()-Ae.getUTCMonth()+(at.getUTCFullYear()-Ae.getUTCFullYear())*12},function(Ae){return Ae.getUTCMonth()}),Rt=St.range,Zt=n(function(Ae){Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,at){Ae.setUTCFullYear(Ae.getUTCFullYear()+at)},function(Ae,at){return at.getUTCFullYear()-Ae.getUTCFullYear()},function(Ae){return Ae.getUTCFullYear()});Zt.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(at){at.setUTCFullYear(Math.floor(at.getUTCFullYear()/Ae)*Ae),at.setUTCMonth(0,1),at.setUTCHours(0,0,0,0)},function(at,wt){at.setUTCFullYear(at.getUTCFullYear()+wt*Ae)})};var Et=Zt.range;e.timeDay=v,e.timeDays=k,e.timeFriday=m,e.timeFridays=j,e.timeHour=_,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=L,e.timeMondays=B,e.timeMonth=N,e.timeMonths=W,e.timeSaturday=P,e.timeSaturdays=H,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=T,e.timeSundays=A,e.timeThursday=M,e.timeThursdays=G,e.timeTuesday=x,e.timeTuesdays=F,e.timeWednesday=C,e.timeWednesdays=U,e.timeWeek=T,e.timeWeeks=A,e.timeYear=re,e.timeYears=ae,e.utcDay=te,e.utcDays=ke,e.utcFriday=ce,e.utcFridays=kt,e.utcHour=Ce,e.utcHours=de,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=be,e.utcMinutes=Pe,e.utcMonday=Ne,e.utcMondays=gt,e.utcMonth=St,e.utcMonths=Rt,e.utcSaturday=Ke,e.utcSaturdays=Tt,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=Me,e.utcSundays=nt,e.utcThursday=Ve,e.utcThursdays=Ye,e.utcTuesday=Fe,e.utcTuesdays=Nt,e.utcWednesday=ye,e.utcWednesdays=it,e.utcWeek=Me,e.utcWeeks=nt,e.utcYear=Zt,e.utcYears=Et,Object.defineProperty(e,"__esModule",{value:!0})})});var e3=Te((cL,Eee)=>{(function(e,t){typeof cL=="object"&&typeof Eee!="undefined"?t(cL,E9()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(cL,function(e,t){"use strict";function r(xe){if(0<=xe.y&&xe.y<100){var Oe=new Date(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L);return Oe.setFullYear(xe.y),Oe}return new Date(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L)}function n(xe){if(0<=xe.y&&xe.y<100){var Oe=new Date(Date.UTC(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L));return Oe.setUTCFullYear(xe.y),Oe}return new Date(Date.UTC(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L))}function i(xe,Oe,Re){return{y:xe,m:Oe,d:Re,H:0,M:0,S:0,L:0}}function a(xe){var Oe=xe.dateTime,Re=xe.date,De=xe.time,ct=xe.periods,ge=xe.days,fe=xe.shortDays,pe=xe.months,dt=xe.shortMonths,It=h(ct),Pt=d(ct),rr=h(ge),Hr=d(ge),Dr=h(fe),Mr=d(fe),Fr=h(pe),di=d(pe),Di=h(dt),Ii=d(dt),Ci={a:jr,A:yi,b:Ei,B:Vi,c:null,d:N,e:N,f:Pe,H:W,I:re,j:ae,L:be,m:Ce,M:de,p:ti,q:en,Q:rt,s:$e,S:te,u:ke,U:Ee,V:Me,w:Ne,W:Fe,x:null,X:null,y:ye,Y:Ve,Z:ce,"%":Ue},nn={a:Yr,A:oi,b:Bi,B:an,c:null,d:Ke,e:Ke,f:Ye,H:nt,I:gt,j:Nt,L:it,m:kt,M:Tt,p:rn,q:Fi,Q:rt,s:$e,S:St,u:Rt,U:Zt,V:Et,w:Ae,W:at,x:null,X:null,y:wt,Y:vt,Z:st,"%":Ue},ii={a:Vt,A:Wt,b:_r,B:Lr,c:Ur,d:M,e:M,f:U,H:P,I:P,j:m,L:F,m:C,M:A,p:yt,q:x,Q:j,s:H,S:B,u:_,U:b,V:v,w:p,W:k,x:Ir,X:Gr,y:T,Y:E,Z:L,"%":G};Ci.x=wi(Re,Ci),Ci.X=wi(De,Ci),Ci.c=wi(Oe,Ci),nn.x=wi(Re,nn),nn.X=wi(De,nn),nn.c=wi(Oe,nn);function wi(Ri,xn){return function(xi){var Xr=[],ft=-1,tr=0,pr=Ri.length,gr,Zr,Ai;for(xi instanceof Date||(xi=new Date(+xi));++ft53)return null;"w"in Xr||(Xr.w=1),"Z"in Xr?(tr=n(i(Xr.y,0,1)),pr=tr.getUTCDay(),tr=pr>4||pr===0?t.utcMonday.ceil(tr):t.utcMonday(tr),tr=t.utcDay.offset(tr,(Xr.V-1)*7),Xr.y=tr.getUTCFullYear(),Xr.m=tr.getUTCMonth(),Xr.d=tr.getUTCDate()+(Xr.w+6)%7):(tr=r(i(Xr.y,0,1)),pr=tr.getDay(),tr=pr>4||pr===0?t.timeMonday.ceil(tr):t.timeMonday(tr),tr=t.timeDay.offset(tr,(Xr.V-1)*7),Xr.y=tr.getFullYear(),Xr.m=tr.getMonth(),Xr.d=tr.getDate()+(Xr.w+6)%7)}else("W"in Xr||"U"in Xr)&&("w"in Xr||(Xr.w="u"in Xr?Xr.u%7:"W"in Xr?1:0),pr="Z"in Xr?n(i(Xr.y,0,1)).getUTCDay():r(i(Xr.y,0,1)).getDay(),Xr.m=0,Xr.d="W"in Xr?(Xr.w+6)%7+Xr.W*7-(pr+5)%7:Xr.w+Xr.U*7-(pr+6)%7);return"Z"in Xr?(Xr.H+=Xr.Z/100|0,Xr.M+=Xr.Z%100,n(Xr)):r(Xr)}}function Bt(Ri,xn,xi,Xr){for(var ft=0,tr=xn.length,pr=xi.length,gr,Zr;ft=pr)return-1;if(gr=xn.charCodeAt(ft++),gr===37){if(gr=xn.charAt(ft++),Zr=ii[gr in o?xn.charAt(ft++):gr],!Zr||(Xr=Zr(Ri,xi,Xr))<0)return-1}else if(gr!=xi.charCodeAt(Xr++))return-1}return Xr}function yt(Ri,xn,xi){var Xr=It.exec(xn.slice(xi));return Xr?(Ri.p=Pt[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Vt(Ri,xn,xi){var Xr=Dr.exec(xn.slice(xi));return Xr?(Ri.w=Mr[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Wt(Ri,xn,xi){var Xr=rr.exec(xn.slice(xi));return Xr?(Ri.w=Hr[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function _r(Ri,xn,xi){var Xr=Di.exec(xn.slice(xi));return Xr?(Ri.m=Ii[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Lr(Ri,xn,xi){var Xr=Fr.exec(xn.slice(xi));return Xr?(Ri.m=di[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Ur(Ri,xn,xi){return Bt(Ri,Oe,xn,xi)}function Ir(Ri,xn,xi){return Bt(Ri,Re,xn,xi)}function Gr(Ri,xn,xi){return Bt(Ri,De,xn,xi)}function jr(Ri){return fe[Ri.getDay()]}function yi(Ri){return ge[Ri.getDay()]}function Ei(Ri){return dt[Ri.getMonth()]}function Vi(Ri){return pe[Ri.getMonth()]}function ti(Ri){return ct[+(Ri.getHours()>=12)]}function en(Ri){return 1+~~(Ri.getMonth()/3)}function Yr(Ri){return fe[Ri.getUTCDay()]}function oi(Ri){return ge[Ri.getUTCDay()]}function Bi(Ri){return dt[Ri.getUTCMonth()]}function an(Ri){return pe[Ri.getUTCMonth()]}function rn(Ri){return ct[+(Ri.getUTCHours()>=12)]}function Fi(Ri){return 1+~~(Ri.getUTCMonth()/3)}return{format:function(Ri){var xn=wi(Ri+="",Ci);return xn.toString=function(){return Ri},xn},parse:function(Ri){var xn=Gi(Ri+="",!1);return xn.toString=function(){return Ri},xn},utcFormat:function(Ri){var xn=wi(Ri+="",nn);return xn.toString=function(){return Ri},xn},utcParse:function(Ri){var xn=Gi(Ri+="",!0);return xn.toString=function(){return Ri},xn}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,u=/^%/,l=/[\\^$*+?|[\]().{}]/g;function f(xe,Oe,Re){var De=xe<0?"-":"",ct=(De?-xe:xe)+"",ge=ct.length;return De+(ge68?1900:2e3),Re+De[0].length):-1}function L(xe,Oe,Re){var De=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Oe.slice(Re,Re+6));return De?(xe.Z=De[1]?0:-(De[2]+(De[3]||"00")),Re+De[0].length):-1}function x(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+1));return De?(xe.q=De[0]*3-3,Re+De[0].length):-1}function C(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+2));return De?(xe.m=De[0]-1,Re+De[0].length):-1}function M(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+2));return De?(xe.d=+De[0],Re+De[0].length):-1}function m(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+3));return De?(xe.m=0,xe.d=+De[0],Re+De[0].length):-1}function P(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+2));return De?(xe.H=+De[0],Re+De[0].length):-1}function A(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+2));return De?(xe.M=+De[0],Re+De[0].length):-1}function B(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+2));return De?(xe.S=+De[0],Re+De[0].length):-1}function F(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+3));return De?(xe.L=+De[0],Re+De[0].length):-1}function U(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+6));return De?(xe.L=Math.floor(De[0]/1e3),Re+De[0].length):-1}function G(xe,Oe,Re){var De=u.exec(Oe.slice(Re,Re+1));return De?Re+De[0].length:-1}function j(xe,Oe,Re){var De=s.exec(Oe.slice(Re));return De?(xe.Q=+De[0],Re+De[0].length):-1}function H(xe,Oe,Re){var De=s.exec(Oe.slice(Re));return De?(xe.s=+De[0],Re+De[0].length):-1}function N(xe,Oe){return f(xe.getDate(),Oe,2)}function W(xe,Oe){return f(xe.getHours(),Oe,2)}function re(xe,Oe){return f(xe.getHours()%12||12,Oe,2)}function ae(xe,Oe){return f(1+t.timeDay.count(t.timeYear(xe),xe),Oe,3)}function be(xe,Oe){return f(xe.getMilliseconds(),Oe,3)}function Pe(xe,Oe){return be(xe,Oe)+"000"}function Ce(xe,Oe){return f(xe.getMonth()+1,Oe,2)}function de(xe,Oe){return f(xe.getMinutes(),Oe,2)}function te(xe,Oe){return f(xe.getSeconds(),Oe,2)}function ke(xe){var Oe=xe.getDay();return Oe===0?7:Oe}function Ee(xe,Oe){return f(t.timeSunday.count(t.timeYear(xe)-1,xe),Oe,2)}function Me(xe,Oe){var Re=xe.getDay();return xe=Re>=4||Re===0?t.timeThursday(xe):t.timeThursday.ceil(xe),f(t.timeThursday.count(t.timeYear(xe),xe)+(t.timeYear(xe).getDay()===4),Oe,2)}function Ne(xe){return xe.getDay()}function Fe(xe,Oe){return f(t.timeMonday.count(t.timeYear(xe)-1,xe),Oe,2)}function ye(xe,Oe){return f(xe.getFullYear()%100,Oe,2)}function Ve(xe,Oe){return f(xe.getFullYear()%1e4,Oe,4)}function ce(xe){var Oe=xe.getTimezoneOffset();return(Oe>0?"-":(Oe*=-1,"+"))+f(Oe/60|0,"0",2)+f(Oe%60,"0",2)}function Ke(xe,Oe){return f(xe.getUTCDate(),Oe,2)}function nt(xe,Oe){return f(xe.getUTCHours(),Oe,2)}function gt(xe,Oe){return f(xe.getUTCHours()%12||12,Oe,2)}function Nt(xe,Oe){return f(1+t.utcDay.count(t.utcYear(xe),xe),Oe,3)}function it(xe,Oe){return f(xe.getUTCMilliseconds(),Oe,3)}function Ye(xe,Oe){return it(xe,Oe)+"000"}function kt(xe,Oe){return f(xe.getUTCMonth()+1,Oe,2)}function Tt(xe,Oe){return f(xe.getUTCMinutes(),Oe,2)}function St(xe,Oe){return f(xe.getUTCSeconds(),Oe,2)}function Rt(xe){var Oe=xe.getUTCDay();return Oe===0?7:Oe}function Zt(xe,Oe){return f(t.utcSunday.count(t.utcYear(xe)-1,xe),Oe,2)}function Et(xe,Oe){var Re=xe.getUTCDay();return xe=Re>=4||Re===0?t.utcThursday(xe):t.utcThursday.ceil(xe),f(t.utcThursday.count(t.utcYear(xe),xe)+(t.utcYear(xe).getUTCDay()===4),Oe,2)}function Ae(xe){return xe.getUTCDay()}function at(xe,Oe){return f(t.utcMonday.count(t.utcYear(xe)-1,xe),Oe,2)}function wt(xe,Oe){return f(xe.getUTCFullYear()%100,Oe,2)}function vt(xe,Oe){return f(xe.getUTCFullYear()%1e4,Oe,4)}function st(){return"+0000"}function Ue(){return"%"}function rt(xe){return+xe}function $e(xe){return Math.floor(+xe/1e3)}var zt;Yt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Yt(xe){return zt=a(xe),e.timeFormat=zt.format,e.timeParse=zt.parse,e.utcFormat=zt.utcFormat,e.utcParse=zt.utcParse,zt}var hr="%Y-%m-%dT%H:%M:%S.%LZ";function yr(xe){return xe.toISOString()}var br=Date.prototype.toISOString?yr:e.utcFormat(hr);function Ut(xe){var Oe=new Date(xe);return isNaN(Oe)?null:Oe}var Ie=+new Date("2000-01-01T00:00:00.000Z")?Ut:e.utcParse(hr);e.isoFormat=br,e.isoParse=Ie,e.timeFormatDefaultLocale=Yt,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var k9=Te((hL,kee)=>{(function(e,t){typeof hL=="object"&&typeof kee!="undefined"?t(hL):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(hL,function(e){"use strict";function t(C){return Math.abs(C=Math.round(C))>=1e21?C.toLocaleString("en").replace(/,/g,""):C.toString(10)}function r(C,M){if((m=(C=M?C.toExponential(M-1):C.toExponential()).indexOf("e"))<0)return null;var m,P=C.slice(0,m);return[P.length>1?P[0]+P.slice(2):P,+C.slice(m+1)]}function n(C){return C=r(Math.abs(C)),C?C[1]:NaN}function i(C,M){return function(m,P){for(var A=m.length,B=[],F=0,U=C[0],G=0;A>0&&U>0&&(G+U+1>P&&(U=Math.max(1,P-G)),B.push(m.substring(A-=U,A+U)),!((G+=U+1)>P));)U=C[F=(F+1)%C.length];return B.reverse().join(M)}}function a(C){return function(M){return M.replace(/[0-9]/g,function(m){return C[+m]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(C){if(!(M=o.exec(C)))throw new Error("invalid format: "+C);var M;return new u({fill:M[1],align:M[2],sign:M[3],symbol:M[4],zero:M[5],width:M[6],comma:M[7],precision:M[8]&&M[8].slice(1),trim:M[9],type:M[10]})}s.prototype=u.prototype;function u(C){this.fill=C.fill===void 0?" ":C.fill+"",this.align=C.align===void 0?">":C.align+"",this.sign=C.sign===void 0?"-":C.sign+"",this.symbol=C.symbol===void 0?"":C.symbol+"",this.zero=!!C.zero,this.width=C.width===void 0?void 0:+C.width,this.comma=!!C.comma,this.precision=C.precision===void 0?void 0:+C.precision,this.trim=!!C.trim,this.type=C.type===void 0?"":C.type+""}u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function l(C){e:for(var M=C.length,m=1,P=-1,A;m0&&(P=0);break}return P>0?C.slice(0,P)+C.slice(A+1):C}var f;function c(C,M){var m=r(C,M);if(!m)return C+"";var P=m[0],A=m[1],B=A-(f=Math.max(-8,Math.min(8,Math.floor(A/3)))*3)+1,F=P.length;return B===F?P:B>F?P+new Array(B-F+1).join("0"):B>0?P.slice(0,B)+"."+P.slice(B):"0."+new Array(1-B).join("0")+r(C,Math.max(0,M+B-1))[0]}function h(C,M){var m=r(C,M);if(!m)return C+"";var P=m[0],A=m[1];return A<0?"0."+new Array(-A).join("0")+P:P.length>A+1?P.slice(0,A+1)+"."+P.slice(A+1):P+new Array(A-P.length+2).join("0")}var d={"%":function(C,M){return(C*100).toFixed(M)},b:function(C){return Math.round(C).toString(2)},c:function(C){return C+""},d:t,e:function(C,M){return C.toExponential(M)},f:function(C,M){return C.toFixed(M)},g:function(C,M){return C.toPrecision(M)},o:function(C){return Math.round(C).toString(8)},p:function(C,M){return h(C*100,M)},r:h,s:c,X:function(C){return Math.round(C).toString(16).toUpperCase()},x:function(C){return Math.round(C).toString(16)}};function p(C){return C}var _=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function v(C){var M=C.grouping===void 0||C.thousands===void 0?p:i(_.call(C.grouping,Number),C.thousands+""),m=C.currency===void 0?"":C.currency[0]+"",P=C.currency===void 0?"":C.currency[1]+"",A=C.decimal===void 0?".":C.decimal+"",B=C.numerals===void 0?p:a(_.call(C.numerals,String)),F=C.percent===void 0?"%":C.percent+"",U=C.minus===void 0?"-":C.minus+"",G=C.nan===void 0?"NaN":C.nan+"";function j(N){N=s(N);var W=N.fill,re=N.align,ae=N.sign,be=N.symbol,Pe=N.zero,Ce=N.width,de=N.comma,te=N.precision,ke=N.trim,Ee=N.type;Ee==="n"?(de=!0,Ee="g"):d[Ee]||(te===void 0&&(te=12),ke=!0,Ee="g"),(Pe||W==="0"&&re==="=")&&(Pe=!0,W="0",re="=");var Me=be==="$"?m:be==="#"&&/[boxX]/.test(Ee)?"0"+Ee.toLowerCase():"",Ne=be==="$"?P:/[%p]/.test(Ee)?F:"",Fe=d[Ee],ye=/[defgprs%]/.test(Ee);te=te===void 0?6:/[gprs]/.test(Ee)?Math.max(1,Math.min(21,te)):Math.max(0,Math.min(20,te));function Ve(ce){var Ke=Me,nt=Ne,gt,Nt,it;if(Ee==="c")nt=Fe(ce)+nt,ce="";else{ce=+ce;var Ye=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Fe(Math.abs(ce),te),ke&&(ce=l(ce)),Ye&&+ce==0&&ae!=="+"&&(Ye=!1),Ke=(Ye?ae==="("?ae:U:ae==="-"||ae==="("?"":ae)+Ke,nt=(Ee==="s"?b[8+f/3]:"")+nt+(Ye&&ae==="("?")":""),ye){for(gt=-1,Nt=ce.length;++gtit||it>57){nt=(it===46?A+ce.slice(gt+1):ce.slice(gt))+nt,ce=ce.slice(0,gt);break}}}de&&!Pe&&(ce=M(ce,1/0));var kt=Ke.length+ce.length+nt.length,Tt=kt>1)+Ke+ce+nt+Tt.slice(kt);break;default:ce=Tt+Ke+ce+nt;break}return B(ce)}return Ve.toString=function(){return N+""},Ve}function H(N,W){var re=j((N=s(N),N.type="f",N)),ae=Math.max(-8,Math.min(8,Math.floor(n(W)/3)))*3,be=Math.pow(10,-ae),Pe=b[8+ae/3];return function(Ce){return re(be*Ce)+Pe}}return{format:j,formatPrefix:H}}var k;E({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function E(C){return k=v(C),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function T(C){return Math.max(0,-n(Math.abs(C)))}function L(C,M){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(M)/3)))*3-n(Math.abs(C)))}function x(C,M){return C=Math.abs(C),M=Math.abs(M)-C,Math.max(0,n(M)-n(C))+1}e.FormatSpecifier=u,e.formatDefaultLocale=E,e.formatLocale=v,e.formatSpecifier=s,e.precisionFixed=T,e.precisionPrefix=L,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})})});var Lee=Te((Brr,Cee)=>{"use strict";Cee.exports=function(e){for(var t=e.length,r,n=0;n13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var ku=Te((Orr,Pee)=>{"use strict";var Ftt=Lee();Pee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Ftt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var nf=Te((qrr,zee)=>{"use strict";zee.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var C9=Te((dL,Iee)=>{(function(e,t){typeof dL=="object"&&typeof Iee!="undefined"?t(dL):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(dL,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=t[(s[u]&3)<<4|s[u+1]>>4],f+=t[(s[u+1]&15)<<2|s[u+2]>>6],f+=t[s[u+2]&63];return l%3===2?f=f.substring(0,f.length-1)+"=":l%3===1&&(f=f.substring(0,f.length-2)+"=="),f},a=function(o){var s=o.length*.75,u=o.length,l,f=0,c,h,d,p;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var _=new ArrayBuffer(s),b=new Uint8Array(_);for(l=0;l>4,b[f++]=(h&15)<<4|d>>2,b[f++]=(d&3)<<6|p&63;return _};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var mg=Te((Nrr,Ree)=>{"use strict";Ree.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var mp=Te(gm=>{"use strict";var Btt=C9().decode,Ott=mg(),L9=Array.isArray,qtt=ArrayBuffer,Ntt=DataView;function Dee(e){return qtt.isView(e)&&!(e instanceof Ntt)}gm.isTypedArray=Dee;function pL(e){return L9(e)||Dee(e)}gm.isArrayOrTypedArray=pL;function Utt(e){return!pL(e[0])}gm.isArray1D=Utt;gm.ensureArray=function(e,t){return L9(e)||(e=[]),e.length=t,e};var zd={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};zd.uint8c=zd.u1c;zd.uint8=zd.u1;zd.int8=zd.i1;zd.uint16=zd.u2;zd.int16=zd.i2;zd.uint32=zd.u4;zd.int32=zd.i4;zd.float32=zd.f4;zd.float64=zd.f8;function P9(e){return e.constructor===ArrayBuffer}gm.isArrayBuffer=P9;gm.decodeTypedArraySpec=function(e){var t=[],r=Vtt(e),n=r.dtype,i=zd[n];if(!i)throw new Error('Error in dtype: "'+n+'"');var a=i.BYTES_PER_ELEMENT,o=r.bdata;P9(o)||(o=Btt(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var u=s.length,l,f,c=+s[0],h=a*c,d=0;if(u===1)t=new i(o);else if(u===2)for(l=+s[1],f=0;f{"use strict";var Bee=ku(),I9=mp().isArrayOrTypedArray;Uee.exports=function(t,r){if(Bee(r))r=String(r);else if(typeof r!="string"||r.substr(r.length-4)==="[-1]")throw"bad property string";var n=r.split("."),i,a,o,s;for(s=0;s{"use strict";var t3=CM(),Xtt=/^\w*$/,Ztt=0,Vee=1,vL=2,Gee=3,ob=4;Hee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,u={};r&&r.length?(s=t3(t,r),o=s.get()):o=t,r=r||"";var l={};if(o)for(a=0;a2)return u[d]=u[d]|vL,c.set(h,null);if(f){for(a=d;a{"use strict";var Ytt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Ktt=/^[^\.\[\]]+$/;jee.exports=function(e,t){for(;t;){var r=e.match(Ytt);if(r)e=r[1];else if(e.match(Ktt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var mL=Te((Wrr,Zee)=>{"use strict";var Jtt=ku();Zee.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return Jtt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var Jee=Te((jrr,Kee)=>{"use strict";var Yee=mp().isArrayOrTypedArray,LM=mg();Kee.exports=function e(t,r){for(var n in r){var i=r[n],a=t[n];if(a!==i)if(n.charAt(0)==="_"||typeof i=="function"){if(n in t)continue;t[n]=i}else if(Yee(i)&&Yee(a)&&LM(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function $tt(e,t){var r=e%t;return r<0?r+t:r}function Qtt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}$ee.exports={mod:$tt,modHalf:Qtt}});var cd=Te((Zrr,yL)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function u(ye,Ve){if(ye=ye||"",Ve=Ve||{},ye instanceof u)return ye;if(!(this instanceof u))return new u(ye,Ve);var ce=l(ye);this._originalInput=ye,this._r=ce.r,this._g=ce.g,this._b=ce.b,this._a=ce.a,this._roundA=i(100*this._a)/100,this._format=Ve.format||ce.format,this._gradientType=Ve.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=ce.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ye=this.toRgb();return(ye.r*299+ye.g*587+ye.b*114)/1e3},getLuminance:function(){var ye=this.toRgb(),Ve,ce,Ke,nt,gt,Nt;return Ve=ye.r/255,ce=ye.g/255,Ke=ye.b/255,Ve<=.03928?nt=Ve/12.92:nt=e.pow((Ve+.055)/1.055,2.4),ce<=.03928?gt=ce/12.92:gt=e.pow((ce+.055)/1.055,2.4),Ke<=.03928?Nt=Ke/12.92:Nt=e.pow((Ke+.055)/1.055,2.4),.2126*nt+.7152*gt+.0722*Nt},setAlpha:function(ye){return this._a=N(ye),this._roundA=i(100*this._a)/100,this},toHsv:function(){var ye=d(this._r,this._g,this._b);return{h:ye.h*360,s:ye.s,v:ye.v,a:this._a}},toHsvString:function(){var ye=d(this._r,this._g,this._b),Ve=i(ye.h*360),ce=i(ye.s*100),Ke=i(ye.v*100);return this._a==1?"hsv("+Ve+", "+ce+"%, "+Ke+"%)":"hsva("+Ve+", "+ce+"%, "+Ke+"%, "+this._roundA+")"},toHsl:function(){var ye=c(this._r,this._g,this._b);return{h:ye.h*360,s:ye.s,l:ye.l,a:this._a}},toHslString:function(){var ye=c(this._r,this._g,this._b),Ve=i(ye.h*360),ce=i(ye.s*100),Ke=i(ye.l*100);return this._a==1?"hsl("+Ve+", "+ce+"%, "+Ke+"%)":"hsla("+Ve+", "+ce+"%, "+Ke+"%, "+this._roundA+")"},toHex:function(ye){return _(this._r,this._g,this._b,ye)},toHexString:function(ye){return"#"+this.toHex(ye)},toHex8:function(ye){return b(this._r,this._g,this._b,this._a,ye)},toHex8String:function(ye){return"#"+this.toHex8(ye)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(W(this._r,255)*100)+"%",g:i(W(this._g,255)*100)+"%",b:i(W(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(W(this._r,255)*100)+"%, "+i(W(this._g,255)*100)+"%, "+i(W(this._b,255)*100)+"%)":"rgba("+i(W(this._r,255)*100)+"%, "+i(W(this._g,255)*100)+"%, "+i(W(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:j[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(ye){var Ve="#"+v(this._r,this._g,this._b,this._a),ce=Ve,Ke=this._gradientType?"GradientType = 1, ":"";if(ye){var nt=u(ye);ce="#"+v(nt._r,nt._g,nt._b,nt._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ke+"startColorstr="+Ve+",endColorstr="+ce+")"},toString:function(ye){var Ve=!!ye;ye=ye||this._format;var ce=!1,Ke=this._a<1&&this._a>=0,nt=!Ve&&Ke&&(ye==="hex"||ye==="hex6"||ye==="hex3"||ye==="hex4"||ye==="hex8"||ye==="name");return nt?ye==="name"&&this._a===0?this.toName():this.toRgbString():(ye==="rgb"&&(ce=this.toRgbString()),ye==="prgb"&&(ce=this.toPercentageRgbString()),(ye==="hex"||ye==="hex6")&&(ce=this.toHexString()),ye==="hex3"&&(ce=this.toHexString(!0)),ye==="hex4"&&(ce=this.toHex8String(!0)),ye==="hex8"&&(ce=this.toHex8String()),ye==="name"&&(ce=this.toName()),ye==="hsl"&&(ce=this.toHslString()),ye==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(ye,Ve){var ce=ye.apply(null,[this].concat([].slice.call(Ve)));return this._r=ce._r,this._g=ce._g,this._b=ce._b,this.setAlpha(ce._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(ye,Ve){return ye.apply(null,[this].concat([].slice.call(Ve)))},analogous:function(){return this._applyCombination(F,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(B,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},u.fromRatio=function(ye,Ve){if(typeof ye=="object"){var ce={};for(var Ke in ye)ye.hasOwnProperty(Ke)&&(Ke==="a"?ce[Ke]=ye[Ke]:ce[Ke]=de(ye[Ke]));ye=ce}return u(ye,Ve)};function l(ye){var Ve={r:0,g:0,b:0},ce=1,Ke=null,nt=null,gt=null,Nt=!1,it=!1;return typeof ye=="string"&&(ye=Ne(ye)),typeof ye=="object"&&(Me(ye.r)&&Me(ye.g)&&Me(ye.b)?(Ve=f(ye.r,ye.g,ye.b),Nt=!0,it=String(ye.r).substr(-1)==="%"?"prgb":"rgb"):Me(ye.h)&&Me(ye.s)&&Me(ye.v)?(Ke=de(ye.s),nt=de(ye.v),Ve=p(ye.h,Ke,nt),Nt=!0,it="hsv"):Me(ye.h)&&Me(ye.s)&&Me(ye.l)&&(Ke=de(ye.s),gt=de(ye.l),Ve=h(ye.h,Ke,gt),Nt=!0,it="hsl"),ye.hasOwnProperty("a")&&(ce=ye.a)),ce=N(ce),{ok:Nt,format:ye.format||it,r:a(255,o(Ve.r,0)),g:a(255,o(Ve.g,0)),b:a(255,o(Ve.b,0)),a:ce}}function f(ye,Ve,ce){return{r:W(ye,255)*255,g:W(Ve,255)*255,b:W(ce,255)*255}}function c(ye,Ve,ce){ye=W(ye,255),Ve=W(Ve,255),ce=W(ce,255);var Ke=o(ye,Ve,ce),nt=a(ye,Ve,ce),gt,Nt,it=(Ke+nt)/2;if(Ke==nt)gt=Nt=0;else{var Ye=Ke-nt;switch(Nt=it>.5?Ye/(2-Ke-nt):Ye/(Ke+nt),Ke){case ye:gt=(Ve-ce)/Ye+(Ve1&&(St-=1),St<1/6?kt+(Tt-kt)*6*St:St<1/2?Tt:St<2/3?kt+(Tt-kt)*(2/3-St)*6:kt}if(Ve===0)Ke=nt=gt=ce;else{var it=ce<.5?ce*(1+Ve):ce+Ve-ce*Ve,Ye=2*ce-it;Ke=Nt(Ye,it,ye+1/3),nt=Nt(Ye,it,ye),gt=Nt(Ye,it,ye-1/3)}return{r:Ke*255,g:nt*255,b:gt*255}}function d(ye,Ve,ce){ye=W(ye,255),Ve=W(Ve,255),ce=W(ce,255);var Ke=o(ye,Ve,ce),nt=a(ye,Ve,ce),gt,Nt,it=Ke,Ye=Ke-nt;if(Nt=Ke===0?0:Ye/Ke,Ke==nt)gt=0;else{switch(Ke){case ye:gt=(Ve-ce)/Ye+(Ve>1)+720)%360;--Ve;)Ke.h=(Ke.h+nt)%360,gt.push(u(Ke));return gt}function U(ye,Ve){Ve=Ve||6;for(var ce=u(ye).toHsv(),Ke=ce.h,nt=ce.s,gt=ce.v,Nt=[],it=1/Ve;Ve--;)Nt.push(u({h:Ke,s:nt,v:gt})),gt=(gt+it)%1;return Nt}u.mix=function(ye,Ve,ce){ce=ce===0?0:ce||50;var Ke=u(ye).toRgb(),nt=u(Ve).toRgb(),gt=ce/100,Nt={r:(nt.r-Ke.r)*gt+Ke.r,g:(nt.g-Ke.g)*gt+Ke.g,b:(nt.b-Ke.b)*gt+Ke.b,a:(nt.a-Ke.a)*gt+Ke.a};return u(Nt)},u.readability=function(ye,Ve){var ce=u(ye),Ke=u(Ve);return(e.max(ce.getLuminance(),Ke.getLuminance())+.05)/(e.min(ce.getLuminance(),Ke.getLuminance())+.05)},u.isReadable=function(ye,Ve,ce){var Ke=u.readability(ye,Ve),nt,gt;switch(gt=!1,nt=Fe(ce),nt.level+nt.size){case"AAsmall":case"AAAlarge":gt=Ke>=4.5;break;case"AAlarge":gt=Ke>=3;break;case"AAAsmall":gt=Ke>=7;break}return gt},u.mostReadable=function(ye,Ve,ce){var Ke=null,nt=0,gt,Nt,it,Ye;ce=ce||{},Nt=ce.includeFallbackColors,it=ce.level,Ye=ce.size;for(var kt=0;ktnt&&(nt=gt,Ke=u(Ve[kt]));return u.isReadable(ye,Ke,{level:it,size:Ye})||!Nt?Ke:(ce.includeFallbackColors=!1,u.mostReadable(ye,["#fff","#000"],ce))};var G=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=u.hexNames=H(G);function H(ye){var Ve={};for(var ce in ye)ye.hasOwnProperty(ce)&&(Ve[ye[ce]]=ce);return Ve}function N(ye){return ye=parseFloat(ye),(isNaN(ye)||ye<0||ye>1)&&(ye=1),ye}function W(ye,Ve){be(ye)&&(ye="100%");var ce=Pe(ye);return ye=a(Ve,o(0,parseFloat(ye))),ce&&(ye=parseInt(ye*Ve,10)/100),e.abs(ye-Ve)<1e-6?1:ye%Ve/parseFloat(Ve)}function re(ye){return a(1,o(0,ye))}function ae(ye){return parseInt(ye,16)}function be(ye){return typeof ye=="string"&&ye.indexOf(".")!=-1&&parseFloat(ye)===1}function Pe(ye){return typeof ye=="string"&&ye.indexOf("%")!=-1}function Ce(ye){return ye.length==1?"0"+ye:""+ye}function de(ye){return ye<=1&&(ye=ye*100+"%"),ye}function te(ye){return e.round(parseFloat(ye)*255).toString(16)}function ke(ye){return ae(ye)/255}var Ee=function(){var ye="[-\\+]?\\d+%?",Ve="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+Ve+")|(?:"+ye+")",Ke="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",nt="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+Ke),rgba:new RegExp("rgba"+nt),hsl:new RegExp("hsl"+Ke),hsla:new RegExp("hsla"+nt),hsv:new RegExp("hsv"+Ke),hsva:new RegExp("hsva"+nt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Me(ye){return!!Ee.CSS_UNIT.exec(ye)}function Ne(ye){ye=ye.replace(t,"").replace(r,"").toLowerCase();var Ve=!1;if(G[ye])ye=G[ye],Ve=!0;else if(ye=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=Ee.rgb.exec(ye))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=Ee.rgba.exec(ye))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=Ee.hsl.exec(ye))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=Ee.hsla.exec(ye))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=Ee.hsv.exec(ye))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=Ee.hsva.exec(ye))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=Ee.hex8.exec(ye))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),a:ke(ce[4]),format:Ve?"name":"hex8"}:(ce=Ee.hex6.exec(ye))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),format:Ve?"name":"hex"}:(ce=Ee.hex4.exec(ye))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),a:ke(ce[4]+""+ce[4]),format:Ve?"name":"hex8"}:(ce=Ee.hex3.exec(ye))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),format:Ve?"name":"hex"}:!1}function Fe(ye){var Ve,ce;return ye=ye||{level:"AA",size:"small"},Ve=(ye.level||"AA").toUpperCase(),ce=(ye.size||"small").toLowerCase(),Ve!=="AA"&&Ve!=="AAA"&&(Ve="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:Ve,size:ce}}typeof yL!="undefined"&&yL.exports?yL.exports=u:window.tinycolor=u})(Math)});var Su=Te(IM=>{"use strict";var Qee=mg(),PM=Array.isArray;function ert(e,t){var r,n;for(r=0;r{"use strict";ete.exports=function(e){var t=e.variantValues,r=e.editType,n=e.colorEditType;n===void 0&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:n},weight:i,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var RM=Te((Jrr,tte)=>{"use strict";tte.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var q1=Te(($rr,nte)=>{"use strict";var rte=RM(),ite=gc(),R9=ite({editType:"none"});R9.family.dflt=rte.HOVERFONT;R9.size.dflt=rte.HOVERFONTSIZE;nte.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:R9,grouptitlefont:ite({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var i3=Te((Qrr,ate)=>{"use strict";var trt=gc(),DM=q1().hoverlabel,FM=Su().extendFlat;ate.exports={hoverlabel:{bgcolor:FM({},DM.bgcolor,{arrayOk:!0}),bordercolor:FM({},DM.bordercolor,{arrayOk:!0}),font:trt({arrayOk:!0,editType:"none"}),align:FM({},DM.align,{arrayOk:!0}),namelength:FM({},DM.namelength,{arrayOk:!0}),showarrow:FM({},DM.showarrow),editType:"none"}}});var Gf=Te((eir,ote)=>{"use strict";var rrt=gc(),irt=i3();ote.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:rrt({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:irt.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var sb=Te((tir,ute)=>{"use strict";var nrt=cd(),gL={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},ste=gL.RdBu;function art(e,t){if(t||(t=ste),!e)return t;function r(){try{e=gL[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),lte(e)?e:t}function lte(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";lb.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];lb.defaultLine="#444";lb.lightLine="#eee";lb.background="#fff";lb.borderLine="#BEC8D9";lb.lightFraction=100*10/11});var jl=Te((iir,fte)=>{"use strict";var xv=cd(),srt=ku(),lrt=mp().isTypedArray,hd=fte.exports={},_L=Rh();hd.defaults=_L.defaults;var urt=hd.defaultLine=_L.defaultLine;hd.lightLine=_L.lightLine;var F9=hd.background=_L.background;hd.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};hd.rgb=function(e){return hd.tinyRGB(xv(e))};hd.opacity=function(e){return e?xv(e).getAlpha():0};hd.addOpacity=function(e,t){var r=xv(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};hd.combine=function(e,t){var r=xv(e).toRgb();if(r.a===1)return xv(e).toRgbString();var n=xv(t||F9).toRgb(),i=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return xv(a).toRgbString()};hd.interpolate=function(e,t,r){var n=xv(e).toRgb(),i=xv(t).toRgb(),a={r:r*n.r+(1-r)*i.r,g:r*n.g+(1-r)*i.g,b:r*n.b+(1-r)*i.b};return xv(a).toRgbString()};hd.contrast=function(e,t,r){var n=xv(e);n.getAlpha()!==1&&(n=xv(hd.combine(e,F9)));var i=n.isDark()?t?n.lighten(t):F9:r?n.darken(r):urt;return i.toString()};hd.stroke=function(e,t){var r=xv(t);e.style({stroke:hd.tinyRGB(r),"stroke-opacity":r.getAlpha()})};hd.fill=function(e,t){var r=xv(t);e.style({fill:hd.tinyRGB(r),"fill-opacity":r.getAlpha()})};hd.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,n,i,a;for(r=0;r=0)))return e;if(a===3)n[a]>1&&(n[a]=1);else if(n[a]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return i?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var N1=Te((nir,cte)=>{"use strict";cte.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var n3=Te(hte=>{"use strict";hte.counter=function(e,t,r,n){var i=(t||"")+(r?"":"$"),a=n===!1?"":"^";return e==="xy"?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+e+"([2-9]|[1-9][0-9]+)?"+i)}});var mte=Te(bv=>{"use strict";var B9=ku(),dte=cd(),pte=Su().extendFlat,frt=Gf(),crt=sb(),hrt=jl(),drt=N1().DESELECTDIM,a3=CM(),vte=n3().counter,prt=r3().modHalf,dy=mp().isArrayOrTypedArray,U1=mp().isTypedArraySpec,V1=mp().decodeTypedArraySpec;bv.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(dy(e)?e:U1(e)?V1(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;nn.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}U1(e)&&(e=V1(e)),e%1||!B9(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if(typeof e!="string"){var i=typeof e=="number";n.strict===!0||!i?t.set(r):t.set(String(e))}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){U1(e)&&(e=V1(e)),dte(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return dte(i).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(n)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(crt.get(e,r))}},angle:{coerceFunction:function(e,t,r){U1(e)&&(e=V1(e)),e==="auto"?t.set("auto"):B9(e)?t.set(prt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||vte(r);if(typeof e=="string"&&i.test(e)){t.set(e);return}t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!vte(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var i=e.split("+"),a=0;a{"use strict";var yte={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},gte={};function _te(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),_te(n,t[r]))}}_te(yte,gte);xte.exports={configAttributes:yte,dfltConfig:gte}});var q9=Te((lir,bte)=>{"use strict";var O9=Jl(),vrt=ku(),BM=[];bte.exports=function(e,t){if(BM.indexOf(e)!==-1)return;BM.push(e);var r=1e3;vrt(t)?r=t:t==="long"&&(r=3e3);var n=O9.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(BM);function a(o){o.duration(700).style("opacity",0).each("end",function(s){var u=BM.indexOf(s);u!==-1&&BM.splice(u,1),O9.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var s=O9.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(a)});for(var u=s.append("p"),l=o.split(//g),f=0;f{"use strict";var o3=ub().dfltConfig,N9=q9(),U9=wte.exports={};U9.log=function(){var e;if(o3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};U9.warn=function(){var e;if(o3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};U9.error=function(){var e;if(o3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var bL=Te((fir,Ate)=>{"use strict";Ate.exports=function(){}});var V9=Te((cir,Tte)=>{"use strict";Tte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{Ste.exports=mrt;function mrt(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var kte=Te((dir,Ete)=>{Ete.exports=yrt;function yrt(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var Lte=Te((pir,Cte)=>{Cte.exports=grt;function grt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var G9=Te((vir,Pte)=>{Pte.exports=_rt;function _rt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Ite=Te((mir,zte)=>{zte.exports=xrt;function xrt(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var Dte=Te((yir,Rte)=>{Rte.exports=brt;function brt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],_=t[13],b=t[14],v=t[15],k=r*s-n*o,E=r*u-i*o,T=r*l-a*o,L=n*u-i*s,x=n*l-a*s,C=i*l-a*u,M=f*_-c*p,m=f*b-h*p,P=f*v-d*p,A=c*b-h*_,B=c*v-d*_,F=h*v-d*b,U=k*F-E*B+T*A+L*P-x*m+C*M;return U?(U=1/U,e[0]=(s*F-u*B+l*A)*U,e[1]=(i*B-n*F-a*A)*U,e[2]=(_*C-b*x+v*L)*U,e[3]=(h*x-c*C-d*L)*U,e[4]=(u*P-o*F-l*m)*U,e[5]=(r*F-i*P+a*m)*U,e[6]=(b*T-p*C-v*E)*U,e[7]=(f*C-h*T+d*E)*U,e[8]=(o*B-s*P+l*M)*U,e[9]=(n*P-r*B-a*M)*U,e[10]=(p*x-_*T+v*k)*U,e[11]=(c*T-f*x-d*k)*U,e[12]=(s*m-o*A-u*M)*U,e[13]=(r*A-n*m+i*M)*U,e[14]=(_*E-p*L-b*k)*U,e[15]=(f*L-c*E+h*k)*U,e):null}});var Bte=Te((gir,Fte)=>{Fte.exports=wrt;function wrt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],_=t[13],b=t[14],v=t[15];return e[0]=s*(h*v-d*b)-c*(u*v-l*b)+_*(u*d-l*h),e[1]=-(n*(h*v-d*b)-c*(i*v-a*b)+_*(i*d-a*h)),e[2]=n*(u*v-l*b)-s*(i*v-a*b)+_*(i*l-a*u),e[3]=-(n*(u*d-l*h)-s*(i*d-a*h)+c*(i*l-a*u)),e[4]=-(o*(h*v-d*b)-f*(u*v-l*b)+p*(u*d-l*h)),e[5]=r*(h*v-d*b)-f*(i*v-a*b)+p*(i*d-a*h),e[6]=-(r*(u*v-l*b)-o*(i*v-a*b)+p*(i*l-a*u)),e[7]=r*(u*d-l*h)-o*(i*d-a*h)+f*(i*l-a*u),e[8]=o*(c*v-d*_)-f*(s*v-l*_)+p*(s*d-l*c),e[9]=-(r*(c*v-d*_)-f*(n*v-a*_)+p*(n*d-a*c)),e[10]=r*(s*v-l*_)-o*(n*v-a*_)+p*(n*l-a*s),e[11]=-(r*(s*d-l*c)-o*(n*d-a*c)+f*(n*l-a*s)),e[12]=-(o*(c*b-h*_)-f*(s*b-u*_)+p*(s*h-u*c)),e[13]=r*(c*b-h*_)-f*(n*b-i*_)+p*(n*h-i*c),e[14]=-(r*(s*b-u*_)-o*(n*b-i*_)+p*(n*u-i*s)),e[15]=r*(s*h-u*c)-o*(n*h-i*c)+f*(n*u-i*s),e}});var qte=Te((_ir,Ote)=>{Ote.exports=Art;function Art(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],f=e[9],c=e[10],h=e[11],d=e[12],p=e[13],_=e[14],b=e[15],v=t*o-r*a,k=t*s-n*a,E=t*u-i*a,T=r*s-n*o,L=r*u-i*o,x=n*u-i*s,C=l*p-f*d,M=l*_-c*d,m=l*b-h*d,P=f*_-c*p,A=f*b-h*p,B=c*b-h*_;return v*B-k*A+E*P+T*m-L*M+x*C}});var Ute=Te((xir,Nte)=>{Nte.exports=Trt;function Trt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],f=t[7],c=t[8],h=t[9],d=t[10],p=t[11],_=t[12],b=t[13],v=t[14],k=t[15],E=r[0],T=r[1],L=r[2],x=r[3];return e[0]=E*n+T*s+L*c+x*_,e[1]=E*i+T*u+L*h+x*b,e[2]=E*a+T*l+L*d+x*v,e[3]=E*o+T*f+L*p+x*k,E=r[4],T=r[5],L=r[6],x=r[7],e[4]=E*n+T*s+L*c+x*_,e[5]=E*i+T*u+L*h+x*b,e[6]=E*a+T*l+L*d+x*v,e[7]=E*o+T*f+L*p+x*k,E=r[8],T=r[9],L=r[10],x=r[11],e[8]=E*n+T*s+L*c+x*_,e[9]=E*i+T*u+L*h+x*b,e[10]=E*a+T*l+L*d+x*v,e[11]=E*o+T*f+L*p+x*k,E=r[12],T=r[13],L=r[14],x=r[15],e[12]=E*n+T*s+L*c+x*_,e[13]=E*i+T*u+L*h+x*b,e[14]=E*a+T*l+L*d+x*v,e[15]=E*o+T*f+L*p+x*k,e}});var Gte=Te((bir,Vte)=>{Vte.exports=Srt;function Srt(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,u,l,f,c,h,d,p,_,b,v;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],u=t[2],l=t[3],f=t[4],c=t[5],h=t[6],d=t[7],p=t[8],_=t[9],b=t[10],v=t[11],e[0]=o,e[1]=s,e[2]=u,e[3]=l,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=_,e[10]=b,e[11]=v,e[12]=o*n+f*i+p*a+t[12],e[13]=s*n+c*i+_*a+t[13],e[14]=u*n+h*i+b*a+t[14],e[15]=l*n+d*i+v*a+t[15]),e}});var Wte=Te((wir,Hte)=>{Hte.exports=Mrt;function Mrt(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var Xte=Te((Air,jte)=>{jte.exports=Ert;function Ert(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),u,l,f,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,u=Math.sin(r),l=Math.cos(r),f=1-l,c=t[0],h=t[1],d=t[2],p=t[3],_=t[4],b=t[5],v=t[6],k=t[7],E=t[8],T=t[9],L=t[10],x=t[11],C=i*i*f+l,M=a*i*f+o*u,m=o*i*f-a*u,P=i*a*f-o*u,A=a*a*f+l,B=o*a*f+i*u,F=i*o*f+a*u,U=a*o*f-i*u,G=o*o*f+l,e[0]=c*C+_*M+E*m,e[1]=h*C+b*M+T*m,e[2]=d*C+v*M+L*m,e[3]=p*C+k*M+x*m,e[4]=c*P+_*A+E*B,e[5]=h*P+b*A+T*B,e[6]=d*P+v*A+L*B,e[7]=p*P+k*A+x*B,e[8]=c*F+_*U+E*G,e[9]=h*F+b*U+T*G,e[10]=d*F+v*U+L*G,e[11]=p*F+k*U+x*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var Yte=Te((Tir,Zte)=>{Zte.exports=krt;function krt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],u=t[7],l=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+l*n,e[5]=o*i+f*n,e[6]=s*i+c*n,e[7]=u*i+h*n,e[8]=l*i-a*n,e[9]=f*i-o*n,e[10]=c*i-s*n,e[11]=h*i-u*n,e}});var Jte=Te((Sir,Kte)=>{Kte.exports=Crt;function Crt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],u=t[3],l=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-l*n,e[1]=o*i-f*n,e[2]=s*i-c*n,e[3]=u*i-h*n,e[8]=a*n+l*i,e[9]=o*n+f*i,e[10]=s*n+c*i,e[11]=u*n+h*i,e}});var Qte=Te((Mir,$te)=>{$te.exports=Lrt;function Lrt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],u=t[3],l=t[4],f=t[5],c=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+l*n,e[1]=o*i+f*n,e[2]=s*i+c*n,e[3]=u*i+h*n,e[4]=l*i-a*n,e[5]=f*i-o*n,e[6]=c*i-s*n,e[7]=h*i-u*n,e}});var tre=Te((Eir,ere)=>{ere.exports=Prt;function Prt(e,t,r){var n,i,a,o=r[0],s=r[1],u=r[2],l=Math.sqrt(o*o+s*s+u*u);return Math.abs(l)<1e-6?null:(l=1/l,o*=l,s*=l,u*=l,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+u*n,e[2]=u*o*a-s*n,e[3]=0,e[4]=o*s*a-u*n,e[5]=s*s*a+i,e[6]=u*s*a+o*n,e[7]=0,e[8]=o*u*a+s*n,e[9]=s*u*a-o*n,e[10]=u*u*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var ire=Te((kir,rre)=>{rre.exports=zrt;function zrt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,u=i+i,l=a+a,f=n*s,c=n*u,h=n*l,d=i*u,p=i*l,_=a*l,b=o*s,v=o*u,k=o*l;return e[0]=1-(d+_),e[1]=c+k,e[2]=h-v,e[3]=0,e[4]=c-k,e[5]=1-(f+_),e[6]=p+b,e[7]=0,e[8]=h+v,e[9]=p-b,e[10]=1-(f+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var are=Te((Cir,nre)=>{nre.exports=Irt;function Irt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var sre=Te((Lir,ore)=>{ore.exports=Rrt;function Rrt(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var ure=Te((Pir,lre)=>{lre.exports=Drt;function Drt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var cre=Te((zir,fre)=>{fre.exports=Frt;function Frt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var dre=Te((Iir,hre)=>{hre.exports=Brt;function Brt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var vre=Te((Rir,pre)=>{pre.exports=Ort;function Ort(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,u=i+i,l=r*o,f=n*o,c=n*s,h=i*o,d=i*s,p=i*u,_=a*o,b=a*s,v=a*u;return e[0]=1-c-p,e[1]=f+v,e[2]=h-b,e[3]=0,e[4]=f-v,e[5]=1-l-p,e[6]=d+_,e[7]=0,e[8]=h+b,e[9]=d-_,e[10]=1-l-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var yre=Te((Dir,mre)=>{mre.exports=qrt;function qrt(e,t,r,n,i,a,o){var s=1/(r-t),u=1/(i-n),l=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*u,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*u,e[10]=(o+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*l,e[15]=0,e}});var _re=Te((Fir,gre)=>{gre.exports=Nrt;function Nrt(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}});var bre=Te((Bir,xre)=>{xre.exports=Urt;function Urt(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),u=2/(o+s),l=2/(i+a);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=l,e[6]=0,e[7]=0,e[8]=-((o-s)*u*.5),e[9]=(i-a)*l*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}});var Are=Te((Oir,wre)=>{wre.exports=Vrt;function Vrt(e,t,r,n,i,a,o){var s=1/(t-r),u=1/(n-i),l=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*l,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*u,e[14]=(o+a)*l,e[15]=1,e}});var Sre=Te((qir,Tre)=>{var Grt=G9();Tre.exports=Hrt;function Hrt(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p=t[0],_=t[1],b=t[2],v=n[0],k=n[1],E=n[2],T=r[0],L=r[1],x=r[2];return Math.abs(p-T)<1e-6&&Math.abs(_-L)<1e-6&&Math.abs(b-x)<1e-6?Grt(e):(f=p-T,c=_-L,h=b-x,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,i=k*h-E*c,a=E*f-v*h,o=v*c-k*f,d=Math.sqrt(i*i+a*a+o*o),d?(d=1/d,i*=d,a*=d,o*=d):(i=0,a=0,o=0),s=c*o-h*a,u=h*i-f*o,l=f*a-c*i,d=Math.sqrt(s*s+u*u+l*l),d?(d=1/d,s*=d,u*=d,l*=d):(s=0,u=0,l=0),e[0]=i,e[1]=s,e[2]=f,e[3]=0,e[4]=a,e[5]=u,e[6]=c,e[7]=0,e[8]=o,e[9]=l,e[10]=h,e[11]=0,e[12]=-(i*p+a*_+o*b),e[13]=-(s*p+u*_+l*b),e[14]=-(f*p+c*_+h*b),e[15]=1,e)}});var Ere=Te((Nir,Mre)=>{Mre.exports=Wrt;function Wrt(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var H9=Te((Uir,kre)=>{kre.exports={create:Mte(),clone:kte(),copy:Lte(),identity:G9(),transpose:Ite(),invert:Dte(),adjoint:Bte(),determinant:qte(),multiply:Ute(),translate:Gte(),scale:Wte(),rotate:Xte(),rotateX:Yte(),rotateY:Jte(),rotateZ:Qte(),fromRotation:tre(),fromRotationTranslation:ire(),fromScaling:are(),fromTranslation:sre(),fromXRotation:ure(),fromYRotation:cre(),fromZRotation:dre(),fromQuat:vre(),frustum:yre(),perspective:_re(),perspectiveFromFieldOfView:bre(),ortho:Are(),lookAt:Sre(),str:Ere()}});var wL=Te(xh=>{"use strict";var jrt=H9();xh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var Xrt=Jl(),Cre=G1(),Zrt=wL(),Yrt=H9();function Krt(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Jrt(e){var t=Xrt.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function Lre(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function $rt(e,t){Pre("global",e,t)}function Pre(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);if(!(i&&i.matches(".no-inline-styles"))){i||(i=document.createElement("style"),i.setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):Cre.warn("addStyleRule failed"):Cre.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Qrt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&Lre(r)}function eit(e,t,r,n,i,a){var o=n.split(":"),s=i.split(":"),u="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(l){l.getAttribute(u)||(l.addEventListener("mouseenter",function(){var f=this.querySelector(r);f&&(f.style[o[0]]=o[1])}),l.addEventListener("mouseleave",function(){var f=this.querySelector(r);f&&(t&&this.matches(t)?f.style[o[0]]=o[1]:f.style[s[0]]=s[1])}),l.setAttribute(u,!0))})}function tit(e){var t=Ire(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(n){var i=zre(n);if(i){var a=Zrt.convertCssMatrix(i);r=Yrt.multiply(r,r,a)}}),r}function zre(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function Ire(e){for(var t=[];rit(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function rit(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function iit(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}Rre.exports={getGraphDiv:Krt,isPlotDiv:Jrt,removeElement:Lre,addStyleRule:$rt,addRelatedStyleRule:Pre,deleteRelatedStyleRule:Qrt,setStyleOnHover:eit,getFullTransformMatrix:tit,getElementTransformMatrix:zre,getElementAndAncestors:Ire,equalDomRects:iit}});var qM=Te((Hir,Dre)=>{"use strict";Dre.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Sc=Te((Wir,Vre)=>{"use strict";var Bre=Su().extendFlat,nit=mg(),Ore={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},qre={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},ait=Ore.flags.slice().concat(["fullReplot"]),oit=qre.flags.slice().concat("layoutReplot");Vre.exports={traces:Ore,layout:qre,traceFlags:function(){return Fre(ait)},layoutFlags:function(){return Fre(oit)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";W9.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};W9.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var j9=Te((Xir,Gre)=>{"use strict";Gre.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Nu=Te(NM=>{"use strict";var Hre=j9(),sit=Hre.FORMAT_LINK,lit=Hre.DATE_FORMAT_LINK;function uit(e){var t=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(t?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,sit,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,lit,"for details on the date formatting syntax."].join(" ")}NM.templateFormatStringDescription=uit;function X9(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var n=[],i=0;i{"use strict";function H1(e,t){return t?t.d2l(e):e}function Wre(e,t){return t?t.l2d(e):e}function fit(e){return e.x0}function cit(e){return e.x1}function hit(e){return e.y0}function dit(e){return e.y1}function jre(e){return e.x0shift||0}function Xre(e){return e.x1shift||0}function Zre(e){return e.y0shift||0}function Yre(e){return e.y1shift||0}function AL(e,t){return H1(e.x1,t)+Xre(e)-H1(e.x0,t)-jre(e)}function TL(e,t,r){return H1(e.y1,r)+Yre(e)-H1(e.y0,r)-Zre(e)}function pit(e,t){return Math.abs(AL(e,t))}function vit(e,t,r){return Math.abs(TL(e,t,r))}function mit(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(AL(e,t),2)+Math.pow(TL(e,t,r),2))}function yit(e,t){return Wre((H1(e.x1,t)+Xre(e)+H1(e.x0,t)+jre(e))/2,t)}function git(e,t,r){return Wre((H1(e.y1,r)+Yre(e)+H1(e.y0,r)+Zre(e))/2,r)}function _it(e,t,r){return e.type!=="line"?void 0:TL(e,t,r)/AL(e,t)}Kre.exports={x0:fit,x1:cit,y0:hit,y1:dit,slope:_it,dx:AL,dy:TL,width:pit,height:vit,length:mit,xcenter:yit,ycenter:git}});var Qre=Te((Kir,$re)=>{"use strict";var xit=Sc().overrideAll,fb=Gf(),Jre=gc(),bit=Id().dash,W1=Su().extendFlat,wit=Nu().shapeTexttemplateAttrs,Ait=SL();$re.exports=xit({newshape:{visible:W1({},fb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:W1({},fb.legend,{}),legendgroup:W1({},fb.legendgroup,{}),legendgrouptitle:{text:W1({},fb.legendgrouptitle.text,{}),font:Jre({})},legendrank:W1({},fb.legendrank,{}),legendwidth:W1({},fb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:W1({},bit,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:W1({},fb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:wit({newshape:!0},{keys:Object.keys(Ait)}),font:Jre({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var tie=Te((Jir,eie)=>{"use strict";var Tit=Id().dash,Sit=Su().extendFlat;eie.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:Sit({},Tit,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var ML=Te(($ir,rie)=>{"use strict";rie.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var s3=Te((Qir,oie)=>{"use strict";var Z9=gc(),Mit=qM(),EL=Rh(),iie=Qre(),nie=tie(),Eit=ML(),aie=Su().extendFlat,kL=Z9({editType:"calc"});kL.family.dflt='"Open Sans", verdana, arial, sans-serif';kL.size.dflt=12;kL.color.dflt=EL.defaultLine;oie.exports={font:kL,title:{text:{valType:"string",editType:"layoutstyle"},font:Z9({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Z9({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:aie(Eit({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:EL.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:EL.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:EL.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:iie.newshape,activeshape:iie.activeshape,newselection:nie.newselection,activeselection:nie.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:aie({},Mit.transition,{editType:"none"})}});var sie=Te(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var $l=Te(Tf=>{"use strict";var l3=G1(),lie=bL(),uie=V9(),kit=mg(),Cit=OM().addStyleRule,fie=Su(),Lit=Gf(),Pit=s3(),zit=fie.extendFlat,Y9=fie.extendDeepAll;Tf.modules={};Tf.allCategories={};Tf.allTypes=[];Tf.subplotsRegistry={};Tf.componentsRegistry={};Tf.layoutArrayContainers=[];Tf.layoutArrayRegexes=[];Tf.traceLayoutAttributes={};Tf.localeRegistry={};Tf.apiMethodRegistry={};Tf.collectableSubplotTypes=null;Tf.register=function(t){if(Tf.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var Oit=e3().timeFormat,bie=ku(),K9=G1(),X1=r3().mod,c3=nf(),_0=c3.BADNUM,wv=c3.ONEDAY,UM=c3.ONEHOUR,j1=c3.ONEMIN,f3=c3.ONESEC,VM=c3.EPOCHJD,yg=$l(),vie=e3().utcFormat,qit=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Nit=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,mie=new Date().getFullYear()-70;function gg(e){return e&&yg.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}bh.dateTick0=function(e,t){var r=Uit(e,!!t);if(t<2)return r;var n=bh.dateTime2ms(r,e);return n+=wv*(t-1),bh.ms2DateTime(n,0,e)};function Uit(e,t){return gg(e)?t?yg.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:yg.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}bh.dfltRange=function(e){return gg(e)?yg.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};bh.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var LL,PL;bh.dateTime2ms=function(e,t){if(bh.isJSDate(e)){var r=e.getTimezoneOffset()*j1,n=(e.getUTCMinutes()-e.getMinutes())*j1+(e.getUTCSeconds()-e.getSeconds())*f3+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var i=3*j1;r=r-i/2+X1(n-r+i/2,i)}return e=Number(e)-r,e>=LL&&e<=PL?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=gg(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.substr(1),t="");var s=a&&t.substr(0,7)==="chinese",u=e.match(s?Nit:qit);if(!u)return _0;var l=u[1],f=u[3]||"1",c=Number(u[5]||1),h=Number(u[7]||0),d=Number(u[9]||0),p=Number(u[11]||0);if(a){if(l.length===2)return _0;l=Number(l);var _;try{var b=yg.getComponentMethod("calendars","getCal")(t);if(s){var v=f.charAt(f.length-1)==="i";f=parseInt(f,10),_=b.newDate(l,b.toMonthIndex(l,f,v),c)}else _=b.newDate(l,Number(f),c)}catch(E){return _0}return _?(_.toJD()-VM)*wv+h*UM+d*j1+p*f3:_0}l.length===2?l=(Number(l)+2e3-mie)%100+mie:l=Number(l),f-=1;var k=new Date(Date.UTC(2e3,f,c,h,d));return k.setUTCFullYear(l),k.getUTCMonth()!==f||k.getUTCDate()!==c?_0:k.getTime()+p*f3};LL=bh.MIN_MS=bh.dateTime2ms("-9999");PL=bh.MAX_MS=bh.dateTime2ms("9999-12-31 23:59:59.9999");bh.isDateTime=function(e,t){return bh.dateTime2ms(e,t)!==_0};function u3(e,t){return String(e+Math.pow(10,t)).substr(1)}var CL=90*wv,yie=3*UM,gie=5*j1;bh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=LL&&e<=PL))return _0;t||(t=0);var n=Math.floor(X1(e+.05,1)*10),i=Math.round(e-n/10),a,o,s,u,l,f;if(gg(r)){var c=Math.floor(i/wv)+VM,h=Math.floor(X1(e,wv));try{a=yg.getComponentMethod("calendars","getCal")(r).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){a=vie("G%Y-%m-%d")(new Date(i))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;o=t=LL+wv&&e<=PL-wv))return _0;var t=Math.floor(X1(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=Oit("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return wie(n,i,a,o,s)};function wie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+u3(t,2)+":"+u3(r,2),(n||i)&&(e+=":"+u3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+u3(i,a)}return e}bh.cleanDate=function(e,t,r){if(e===_0)return t;if(bh.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(gg(r))return K9.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=bh.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!bh.isDateTime(e,r))return K9.error("unrecognized date",e),t;return e};var Vit=/%\d?f/g,Git=/%h/g,Hit={1:"1",2:"1",3:"2",4:"2"};function _ie(e,t,r,n){e=e.replace(Vit,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return s});var i=new Date(Math.floor(t+.05));if(e=e.replace(Git,function(){return Hit[r("%q")(i)]}),gg(n))try{e=yg.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var Wit=[59,59.9,59.99,59.999,59.9999];function jit(e,t){var r=X1(e+.05,wv),n=u3(Math.floor(r/UM),2)+":"+u3(X1(Math.floor(r/j1),60),2);if(t!=="M"){bie(t)||(t=0);var i=Math.min(X1(e/f3,60),Wit[t]),a=(100+i).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}bh.formatDate=function(e,t,r,n,i,a){if(i=gg(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` +`+a.year;else return jit(e,r)+` +`+_ie(a.dayMonthYear,e,n,i);return _ie(t,e,n,i)};var xie=3*wv;bh.incrementMonth=function(e,t,r){r=gg(r)&&r;var n=X1(e,wv);if(e=Math.round(e-n),r)try{var i=Math.round(e/wv)+VM,a=yg.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-VM)*wv+n}catch(u){K9.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+xie);return s.setUTCMonth(s.getUTCMonth()+t)+n-xie};bh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,u=gg(t)&&yg.getComponentMethod("calendars","getCal")(t),l=0;l{"use strict";Tie.exports=function(t){return t}});var zL=Te(_g=>{"use strict";var Xit=ku(),Zit=G1(),Yit=GM(),Kit=nf().BADNUM,J9=1e-9;_g.findBin=function(e,t,r){if(Xit(t.start))return r?Math.ceil((e-t.start)/t.size-J9)-1:Math.floor((e-t.start)/t.size+J9);var n=0,i=t.length,a=0,o=i>1?(t[i-1]-t[0])/(i-1):1,s,u;for(o>=0?u=r?Jit:$it:u=r?ent:Qit,e+=o*J9*(r?-1:1)*(o>=0?1:-1);n90&&Zit.log("Long binary search..."),n-1};function Jit(e,t){return et}function ent(e,t){return e>=t}_g.sorterAsc=function(e,t){return e-t};_g.sorterDes=function(e,t){return t-e};_g.distinctVals=function(e){var t=e.slice();t.sort(_g.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===Kit;r--);for(var n=t[r]-t[0]||1,i=n/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var u=t[s],l=u-o;o===void 0?(a.push(u),o=u):l>i&&(n=Math.min(n,l),a.push(u),o=u)}return{vals:a,minDiff:n}};_g.roundUp=function(e,t,r){for(var n=0,i=t.length-1,a,o=0,s=r?0:1,u=r?1:0,l=r?Math.ceil:Math.floor;n0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()};_g.findIndexOfMin=function(e,t){t=t||Yit;for(var r=1/0,n,i=0;i{"use strict";Sie.exports=function(t){return Object.keys(t).sort()}});var Mie=Te(wh=>{"use strict";var HM=ku(),tnt=mp().isArrayOrTypedArray;wh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),HM(t)||(t=!1),tnt(r[0])){for(a=new Array(n),i=0;ie.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var Pie=Te((lnr,Lie)=>{"use strict";var Eie=r3(),$9=Eie.mod,rnt=Eie.modHalf,WM=Math.PI,Y1=2*WM;function int(e){return e/180*WM}function nnt(e){return e/WM*180}function Q9(e){return Math.abs(e[1]-e[0])>Y1-1e-14}function kie(e,t){return rnt(t-e,Y1)}function ant(e,t){return Math.abs(kie(e,t))}function Cie(e,t){if(Q9(t))return!0;var r,n;t[0]n&&(n+=Y1);var i=$9(e,Y1),a=i+Y1;return i>=r&&i<=n||a>=r&&a<=n}function ont(e,t,r,n){if(!Cie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function eq(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=Q9([r,n]),u,l,f,c,h;s?(u=0,l=WM,f=Y1):r{"use strict";cb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};cb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};cb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};cb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};cb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};cb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Die=Te(hb=>{"use strict";var tq=r3().mod;hb.segmentsIntersect=Rie;function Rie(e,t,r,n,i,a,o,s){var u=r-e,l=i-e,f=o-i,c=n-t,h=a-t,d=s-a,p=u*d-f*c;if(p===0)return null;var _=(l*d-f*h)/p,b=(l*c-u*h)/p;return b<0||b>1||_<0||_>1?null:{x:e+u*_,y:t+c*_}}hb.segmentDistance=function(t,r,n,i,a,o,s,u){if(Rie(t,r,n,i,a,o,s,u))return 0;var l=n-t,f=i-r,c=s-a,h=u-o,d=l*l+f*f,p=c*c+h*h,_=Math.min(IL(l,f,d,a-t,o-r),IL(l,f,d,s-t,u-r),IL(c,h,p,t-a,r-o),IL(c,h,p,n-a,i-o));return Math.sqrt(_)};function IL(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}else{var u=n*t-i*e;return u*u/r}}var RL,rq,Iie;hb.getTextLocation=function(t,r,n,i){if((t!==rq||i!==Iie)&&(RL={},rq=t,Iie=i),RL[n])return RL[n];var a=t.getPointAtLength(tq(n-i/2,r)),o=t.getPointAtLength(tq(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),u=t.getPointAtLength(tq(n,r)),l=(u.x*4+a.x+o.x)/6,f=(u.y*4+a.y+o.y)/6,c={x:l,y:f,theta:s};return RL[n]=c,c};hb.clearLocationCache=function(){rq=null};hb.getVisibleSegment=function(t,r,n){var i=r.left,a=r.right,o=r.top,s=r.bottom,u=0,l=t.getTotalLength(),f=l,c,h;function d(_){var b=t.getPointAtLength(_);_===0?c=b:_===l&&(h=b);var v=b.xa?b.x-a:0,k=b.ys?b.y-s:0;return Math.sqrt(v*v+k*k)}for(var p=d(u);p;){if(u+=p+n,u>f)return;p=d(u)}for(p=d(f);p;){if(f-=p+n,u>f)return;p=d(f)}return{min:u,max:f,len:f-u,total:l,isClosed:u===0&&f===l&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};hb.findPointOnPath=function(t,r,n,i){i=i||{};for(var a=i.pathLength||t.getTotalLength(),o=i.tolerance||.001,s=i.iterationLimit||30,u=t.getPointAtLength(0)[n]>t.getPointAtLength(a)[n]?-1:1,l=0,f=0,c=a,h,d,p;l0?c=h:f=h,l++}return d}});var DL=Te(jM=>{"use strict";var xg={};jM.throttle=function(t,r,n){var i=xg[t],a=Date.now();if(!i){for(var o in xg)xg[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};jM.done=function(e){var t=xg[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};jM.clear=function(e){if(e)Fie(xg[e]),delete xg[e];else for(var t in xg)jM.clear(t)};function Fie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Oie=Te((hnr,Bie)=>{"use strict";Bie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var qie=Te((dnr,FL)=>{"use strict";FL.exports=iq;FL.exports.isMobile=iq;FL.exports.default=iq;var fnt=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,cnt=/CrOS/,hnt=/android|ipad|playbook|silk/i;function iq(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=fnt.test(t)&&!cnt.test(t)||!!e.tablet&&hnt.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var Uie=Te((pnr,Nie)=>{"use strict";var dnt=ku(),pnt=qie();Nie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=vnt(),typeof r!="string")return!0;var n=pnt({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var i=r.split(" "),a=1;a-1;s--){var u=i[s];if(u.substr(0,8)==="Version/"){var l=u.substr(8).split(".")[0];if(dnt(l)&&(l=+l),l>=13)return!0}}}return n};function vnt(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Gie=Te((vnr,Vie)=>{"use strict";var mnt=Jl();Vie.exports=function(t,r,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each(function(o){o[0][a]=mnt.select(this)}),i}});var Wie=Te((mnr,Hie)=>{"use strict";var ynt=$l();Hie.exports=function(t,r){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var u=s[r];if(u)return u}a=ynt.localeRegistry}var l=n.split("-")[0];if(l===n)break;n=l}return r}});var nq=Te((ynr,jie)=>{"use strict";jie.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";Xie.exports=function(t){for(var r=xnt(t)?_nt:gnt,n=[],i=0;i{"use strict";Yie.exports=function(t,r){if(!r)return t;var n=1/Math.abs(r),i=n>1?(n*t+n*r)/n:t+r,a=String(i).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var u=parseFloat(i).toPrecision(12);u.indexOf("e+")===-1&&(i=+u)}}return i}});var $ie=Te((xnr,Jie)=>{"use strict";var bnt=ku(),wnt=nf().BADNUM,Ant=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Jie.exports=function(t){return typeof t=="string"&&(t=t.replace(Ant,"")),bnt(t)?Number(t):wnt}});var ei=Te((bnr,cne)=>{"use strict";var XM=Jl(),Tnt=e3().utcFormat,Snt=k9().format,nne=ku(),ane=nf(),one=ane.FP_SAFE,Mnt=-one,Qie=ane.BADNUM,An=cne.exports={};An.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var ene={};An.warnBadFormat=function(e){var t=String(e);ene[t]||(ene[t]=1,An.warn('encountered bad format: "'+t+'"'))};An.noFormat=function(e){return String(e)};An.numberFormat=function(e){var t;try{t=Snt(An.adjustFormat(e))}catch(r){return An.warnBadFormat(e),An.noFormat}return t};An.nestedProperty=CM();An.keyedContainer=Wee();An.relativeAttr=Xee();An.isPlainObject=mg();An.toLogRange=mL();An.relinkPrivateKeys=Jee();var K1=mp();An.isArrayBuffer=K1.isArrayBuffer;An.isTypedArray=K1.isTypedArray;An.isArrayOrTypedArray=K1.isArrayOrTypedArray;An.isArray1D=K1.isArray1D;An.ensureArray=K1.ensureArray;An.concat=K1.concat;An.maxRowLength=K1.maxRowLength;An.minRowLength=K1.minRowLength;var sne=r3();An.mod=sne.mod;An.modHalf=sne.modHalf;var J1=mte();An.valObjectMeta=J1.valObjectMeta;An.coerce=J1.coerce;An.coerce2=J1.coerce2;An.coerceFont=J1.coerceFont;An.coercePattern=J1.coercePattern;An.coerceHoverinfo=J1.coerceHoverinfo;An.coerceSelectionMarkerOpacity=J1.coerceSelectionMarkerOpacity;An.validate=J1.validate;var Wv=Aie();An.dateTime2ms=Wv.dateTime2ms;An.isDateTime=Wv.isDateTime;An.ms2DateTime=Wv.ms2DateTime;An.ms2DateTimeLocal=Wv.ms2DateTimeLocal;An.cleanDate=Wv.cleanDate;An.isJSDate=Wv.isJSDate;An.formatDate=Wv.formatDate;An.incrementMonth=Wv.incrementMonth;An.dateTick0=Wv.dateTick0;An.dfltRange=Wv.dfltRange;An.findExactDates=Wv.findExactDates;An.MIN_MS=Wv.MIN_MS;An.MAX_MS=Wv.MAX_MS;var db=zL();An.findBin=db.findBin;An.sorterAsc=db.sorterAsc;An.sorterDes=db.sorterDes;An.distinctVals=db.distinctVals;An.roundUp=db.roundUp;An.sort=db.sort;An.findIndexOfMin=db.findIndexOfMin;An.sortObjectKeys=Z1();var bg=Mie();An.aggNums=bg.aggNums;An.len=bg.len;An.mean=bg.mean;An.geometricMean=bg.geometricMean;An.median=bg.median;An.midRange=bg.midRange;An.variance=bg.variance;An.stdev=bg.stdev;An.interp=bg.interp;var _m=wL();An.init2dArray=_m.init2dArray;An.transposeRagged=_m.transposeRagged;An.dot=_m.dot;An.translationMatrix=_m.translationMatrix;An.rotationMatrix=_m.rotationMatrix;An.rotationXYMatrix=_m.rotationXYMatrix;An.apply3DTransform=_m.apply3DTransform;An.apply2DTransform=_m.apply2DTransform;An.apply2DTransform2=_m.apply2DTransform2;An.convertCssMatrix=_m.convertCssMatrix;An.inverseTransformMatrix=_m.inverseTransformMatrix;var py=Pie();An.deg2rad=py.deg2rad;An.rad2deg=py.rad2deg;An.angleDelta=py.angleDelta;An.angleDist=py.angleDist;An.isFullCircle=py.isFullCircle;An.isAngleInsideSector=py.isAngleInsideSector;An.isPtInsideSector=py.isPtInsideSector;An.pathArc=py.pathArc;An.pathSector=py.pathSector;An.pathAnnulus=py.pathAnnulus;var d3=zie();An.isLeftAnchor=d3.isLeftAnchor;An.isCenterAnchor=d3.isCenterAnchor;An.isRightAnchor=d3.isRightAnchor;An.isTopAnchor=d3.isTopAnchor;An.isMiddleAnchor=d3.isMiddleAnchor;An.isBottomAnchor=d3.isBottomAnchor;var p3=Die();An.segmentsIntersect=p3.segmentsIntersect;An.segmentDistance=p3.segmentDistance;An.getTextLocation=p3.getTextLocation;An.clearLocationCache=p3.clearLocationCache;An.getVisibleSegment=p3.getVisibleSegment;An.findPointOnPath=p3.findPointOnPath;var qL=Su();An.extendFlat=qL.extendFlat;An.extendDeep=qL.extendDeep;An.extendDeepAll=qL.extendDeepAll;An.extendDeepNoArrays=qL.extendDeepNoArrays;var aq=G1();An.log=aq.log;An.warn=aq.warn;An.error=aq.error;var Ent=n3();An.counterRegex=Ent.counter;var oq=DL();An.throttle=oq.throttle;An.throttleDone=oq.done;An.clearThrottle=oq.clear;var xm=OM();An.getGraphDiv=xm.getGraphDiv;An.isPlotDiv=xm.isPlotDiv;An.removeElement=xm.removeElement;An.addStyleRule=xm.addStyleRule;An.addRelatedStyleRule=xm.addRelatedStyleRule;An.deleteRelatedStyleRule=xm.deleteRelatedStyleRule;An.setStyleOnHover=xm.setStyleOnHover;An.getFullTransformMatrix=xm.getFullTransformMatrix;An.getElementTransformMatrix=xm.getElementTransformMatrix;An.getElementAndAncestors=xm.getElementAndAncestors;An.equalDomRects=xm.equalDomRects;An.clearResponsive=Oie();An.preserveDrawingBuffer=Uie();An.makeTraceGroups=Gie();An._=Wie();An.notifier=q9();An.filterUnique=nq();An.filterVisible=Zie();An.pushUnique=V9();An.increment=Kie();An.cleanNumber=$ie();An.ensureNumber=function(t){return nne(t)?(t=Number(t),t>one||t=t?!1:nne(e)&&e>=0&&e%1===0};An.noop=bL();An.identity=GM();An.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};An.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};An.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(An.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};An.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r};An.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,i=2*t-1,a=new Array(i),o=new Array(r),s,u,l,f;for(s=0;s=n&&(l-=n*Math.floor(l/n)),l<0?l=-1-l:l>=r&&(l=n-1-l),f+=e[l]*a[u];o[s]=f}return o};An.syncOrAsync=function(e,t,r){var n,i;function a(){return An.syncOrAsync(e,t,r)}for(;e.length;)if(i=e.splice(0,1)[0],n=i(t),n&&n.then)return n.then(a);return r&&r(t)};An.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};An.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};An.fillArray=function(e,t,r,n){if(n=n||An.identity,An.isArrayOrTypedArray(e))for(var i=0;iLnt.test(window.navigator.userAgent);var Pnt=/Firefox\/(\d+)\.\d+/;An.getFirefoxVersion=function(){var e=Pnt.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};An.isD3Selection=function(e){return e instanceof XM.selection};An.ensureSingle=function(e,t,r,n){var i=e.select(t+(r?"."+r:""));if(i.size())return i;var a=e.append(t);return r&&a.classed(r,!0),n&&a.call(n),a};An.ensureSingleById=function(e,t,r,n){var i=e.select(t+"#"+r);if(i.size())return i;var a=e.append(t).attr("id",r);return n&&a.call(n),a};An.objectFromPath=function(e,t){for(var r=e.split("."),n,i=n={},a=0;a1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+u};An.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var fne=/^\w*$/;An.templateString=function(e,t){var r={};return e.replace(An.TEMPLATE_STRING_REGEX,function(n,i){var a;return fne.test(i)?a=t[i]:(r[i]=r[i]||An.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var Rnt={max:10,count:0,name:"hovertemplate"};An.hovertemplateString=function(){return sq.apply(Rnt,arguments)};var Dnt={max:10,count:0,name:"texttemplate"};An.texttemplateString=function(){return sq.apply(Dnt,arguments)};var Fnt=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Bnt(e){var t=e.match(Fnt);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var Ont={max:10,count:0,name:"texttemplate",parseMultDiv:!0};An.texttemplateStringForShapes=function(){return sq.apply(Ont,arguments)};var tne=/^[:|\|]/;function sq(e,t,r){var n=this,i=arguments;return t||(t={}),e.replace(An.TEMPLATE_STRING_REGEX,function(a,o,s){var u=o==="xother"||o==="yother",l=o==="_xother"||o==="_yother",f=o==="_xother_"||o==="_yother_",c=o==="xother_"||o==="yother_",h=u||l||c||f,d=o;(l||f)&&(d=d.substring(1)),(c||f)&&(d=d.substring(0,d.length-1));var p=null,_=null;if(n.parseMultDiv){var b=Bnt(d);d=b.key,p=b.op,_=b.number}var v;if(h){if(v=t[d],v===void 0)return""}else{var k,E;for(E=3;E=OL&&o<=rne,l=s>=OL&&s<=rne;if(u&&(n=10*n+o-OL),l&&(i=10*i+s-OL),!u||!l){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var h3=2e9;An.seedPseudoRandom=function(){h3=2e9};An.pseudoRandom=function(){var e=h3;return h3=(69069*h3+1)%4294967296,Math.abs(h3-e)<429496729?An.pseudoRandom():h3/4294967296};An.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=An.extractOption(e,t,"htx","hovertext");if(An.isValidTextValue(i))return n(i);var a=An.extractOption(e,t,"tx","text");if(An.isValidTextValue(a))return n(a)};An.isValidTextValue=function(e){return e||e===0};An.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(l=1):l=0,An.strTranslate(i-l*(r+o),a-l*(n+s))+An.strScale(l)+(u?"rotate("+u+(t?"":" "+r+" "+n)+")":"")};An.setTransormAndDisplay=function(e,t){e.attr("transform",An.getTextTransform(t)),e.style("display",t.scale?null:"none")};An.ensureUniformFontSize=function(e,t){var r=An.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};An.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)};An.bigFont=function(e){return Math.round(1.2*e)};var ine=An.getFirefoxVersion(),qnt=ine!==null&&ine<86;An.getPositionFromD3Event=function(){return qnt?[XM.event.layerX,XM.event.layerY]:[XM.event.offsetX,XM.event.offsetY]}});var pne=Te(()=>{"use strict";var Nnt=ei(),hne={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(lq in hne)dne=lq.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Nnt.addStyleRule(dne,hne[lq]);var dne,lq});var uq=Te((Tnr,vne)=>{vne.exports=!0});var cq=Te((Snr,mne)=>{"use strict";var Unt=uq(),fq;typeof window.matchMedia=="function"?fq=!window.matchMedia("(hover: none)").matches:fq=Unt;mne.exports=fq});var pb=Te((Mnr,hq)=>{"use strict";var v3=typeof Reflect=="object"?Reflect:null,yne=v3&&typeof v3.apply=="function"?v3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},NL;v3&&typeof v3.ownKeys=="function"?NL=v3.ownKeys:Object.getOwnPropertySymbols?NL=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:NL=function(t){return Object.getOwnPropertyNames(t)};function Vnt(e){console&&console.warn&&console.warn(e)}var _ne=Number.isNaN||function(t){return t!==t};function qc(){qc.init.call(this)}hq.exports=qc;hq.exports.once=jnt;qc.EventEmitter=qc;qc.prototype._events=void 0;qc.prototype._eventsCount=0;qc.prototype._maxListeners=void 0;var gne=10;function UL(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(qc,"defaultMaxListeners",{enumerable:!0,get:function(){return gne},set:function(e){if(typeof e!="number"||e<0||_ne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");gne=e}});qc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};qc.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||_ne(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function xne(e){return e._maxListeners===void 0?qc.defaultMaxListeners:e._maxListeners}qc.prototype.getMaxListeners=function(){return xne(this)};qc.prototype.emit=function(t){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=a[t];if(u===void 0)return!1;if(typeof u=="function")yne(u,this,r);else for(var l=u.length,f=Sne(u,l),n=0;n0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,Vnt(s)}return e}qc.prototype.addListener=function(t,r){return bne(this,t,r,!1)};qc.prototype.on=qc.prototype.addListener;qc.prototype.prependListener=function(t,r){return bne(this,t,r,!0)};function Gnt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function wne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Gnt.bind(n);return i.listener=r,n.wrapFn=i,i}qc.prototype.once=function(t,r){return UL(r),this.on(t,wne(this,t,r)),this};qc.prototype.prependOnceListener=function(t,r){return UL(r),this.prependListener(t,wne(this,t,r)),this};qc.prototype.removeListener=function(t,r){var n,i,a,o,s;if(UL(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():Hnt(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};qc.prototype.off=qc.prototype.removeListener;qc.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(t,r[i]);return this};function Ane(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?Wnt(i):Sne(i,i.length)}qc.prototype.listeners=function(t){return Ane(this,t,!0)};qc.prototype.rawListeners=function(t){return Ane(this,t,!1)};qc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Tne.call(e,t)};qc.prototype.listenerCount=Tne;function Tne(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}qc.prototype.eventNames=function(){return this._eventsCount>0?NL(this._events):[]};function Sne(e,t){for(var r=new Array(t),n=0;n{"use strict";var dq=pb().EventEmitter,Znt={init:function(e){if(e._ev instanceof dq)return e;var t=new dq,r=new dq;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,i){t.emit(n,i),r.emit(n,i)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var n,i=e._ev;if(!i)return;var a=i._events[t];if(!a)return;function o(u){if(u.listener){if(i.removeListener(t,u.listener),!u.fired)return u.fired=!0,u.listener.apply(i,[r])}else return u.apply(i,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var kne=ei(),Ynt=ub().dfltConfig;function Knt(e,t){for(var r=[],n,i=0;iYnt.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};wg.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};wg.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};wg.undo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n{"use strict";Pne.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var _3=Te($h=>{"use strict";var x0=$l(),ZM=ei(),GL=Gf(),vq=s3(),Jnt=pq(),$nt=qM(),Qnt=ub().configAttributes,zne=Sc(),bm=ZM.extendDeepAll,y3=ZM.isPlainObject,eat=ZM.isArrayOrTypedArray,HL=ZM.nestedProperty,tat=ZM.valObjectMeta,mq="_isSubplotObj",WL="_isLinkedToArray",rat="_arrayAttrRegexps",Rne="_deprecated",yq=[mq,WL,rat,Rne];$h.IS_SUBPLOT_OBJ=mq;$h.IS_LINKED_TO_ARRAY=WL;$h.DEPRECATED=Rne;$h.UNDERSCORE_ATTRS=yq;$h.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=nat(t)}),{defs:{valObjects:tat,metaKeys:yq.concat(["description","role","editType","impliedEdits"]),editType:{traces:zne.traces,layout:zne.layout},impliedEdits:{}},traces:e,layout:aat(),frames:oat(),animation:g3($nt),config:g3(Qnt)}};$h.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(yq.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!$h.isValObject(o)&&y3(o)&&a!=="impliedEdits"&&$h.crawl(o,t,i+1,s)}})};$h.isValObject=function(e){return e&&e.valType!==void 0};$h.findArrayAttributes=function(e){var t=[],r=[],n=[],i,a;function o(u,l,f,c){r=r.slice(0,c).concat([l]),n=n.slice(0,c).concat([u&&u._isLinkedToArray]);var h=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(r[c-1]==="colorbar"&&(l==="ticktext"||l==="tickvals"));h&&s(i,0,"")}function s(u,l,f){var c=u[r[l]],h=f+r[l];if(l===r.length-1)eat(c)&&t.push(a+h);else if(n[l]){if(Array.isArray(c))for(var d=0;d=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!VL(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function VL(e){return e===Math.round(e)&&e>=0}function nat(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=bm({},GL),a=bm({},t.attributes);$h.crawl(a,function(u,l,f,c,h){HL(i,h).set(void 0),u===void 0&&HL(a,h).set(void 0)}),bm(n,i),x0.traceIs(e,"noOpacity")&&delete n.opacity,x0.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),x0.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),t.selectPoints||delete n.selectedpoints,bm(n,a),r.attributes&&bm(n,r.attributes),n.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:g3(n)};if(t.layoutAttributes){var s={};bm(s,t.layoutAttributes),o.layoutAttributes=g3(s)}return t.animatable||$h.crawl(o,function(u){$h.isValObject(u)&&"anim"in u&&delete u.anim}),o}function aat(){var e={},t,r;bm(e,vq);for(t in x0.subplotsRegistry)if(r=x0.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var n=0;n{"use strict";var x3=ei(),cat=Gf(),$1="templateitemname",gq={name:{valType:"string",editType:"none"}};gq[$1]={valType:"string",editType:"calc"};vb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=gq.name,t[$1]=gq[$1],t};vb.traceTemplater=function(e){var t={},r,n;for(r in e)n=e[r],Array.isArray(n)&&n.length&&(t[r]=0);function i(a){r=x3.coerce(a,{},cat,"type");var o={type:r,_template:null};if(r in t){n=e[r];var s=t[r]%n.length;t[r]++,o._template=n[s]}return o}return{newTrace:i}};vb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);x3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};vb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Bne(t)],a=n&&n[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(l){var f={name:l.name,_input:l},c=f[$1]=l[$1];if(!Fne(c))return f._template=i,f;for(var h=0;h=n&&(r._input||{})._templateitemname;a&&(i=n);var o=t+"["+i+"]",s;function u(){s={},a&&(s[o]={},s[o][$1]=a)}u();function l(d,p){s[d]=p}function f(d,p){a?x3.nestedProperty(s[o],d).set(p):s[o+"."+d]=p}function c(){var d=s;return u(),d}function h(d,p){d&&f(d,p);var _=c();for(var b in _)x3.nestedProperty(e,b).set(_[b])}return{modifyBase:l,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var dd=Te((znr,One)=>{"use strict";var YM=n3().counter;One.exports={idRegex:{x:YM("x","( domain)?"),y:YM("y","( domain)?")},attrRegex:YM("[xy]axis"),xAxisMatch:YM("xaxis"),yAxisMatch:YM("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Wc=Te(Av=>{"use strict";var hat=$l(),_q=dd();Av.id2name=function(t){if(!(typeof t!="string"||!t.match(_q.AX_ID_PATTERN))){var r=t.split(" ")[0].substr(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Av.name2id=function(t){if(t.match(_q.AX_NAME_PATTERN)){var r=t.substr(5);return r==="1"&&(r=""),t.charAt(0)+r}};Av.cleanId=function(t,r,n){var i=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(_q.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(i&&!n)){var a=t.split(" ")[0].substr(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(i&&n?" domain":"")}};Av.list=function(e,t,r){var n=e._fullLayout;if(!n)return[];var i=Av.listIds(e,t),a=new Array(i.length),o;for(o=0;on?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)};Av.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function qne(e,t){if(t&&t.length){for(var r=0;r{"use strict";function dat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function pat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Nne.exports={clearOutlineControllers:dat,clearOutline:pat}});var jL=Te((Dnr,Une)=>{"use strict";Une.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Rd=Te(ZL=>{"use strict";var XL=$l(),Fnr=dd().SUBPLOT_PATTERN;ZL.getSubplotCalcData=function(e,t,r){var n=XL.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var vat=$l(),b3=ei();mb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=mb.hasSimpleAPICommandBindings(e,r,i.lookupTable);if(t&&t._commandObserver){if(o)return i;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,i}if(o){Vne(e,o,i.cache),i.check=function(){if(a){var f=Vne(e,o,i.cache);return f.changed&&n&&i.lookupTable[f.value]!==void 0&&(i.disable(),Promise.resolve(n({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:i.lookupTable[f.value]})).then(i.enable,i.enable)),f.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0?".":"")+i;b3.isPlainObject(a)?xq(a,t,o,n+1):t(o,i,a)}})}});var Cc=Te((qnr,aae)=>{"use strict";var $ne=Jl(),yat=e3().timeFormatLocale,gat=k9().formatLocale,KM=ku(),_at=C9(),Hf=$l(),Qne=_3(),xat=Pf(),nu=ei(),eae=jl(),jne=nf().BADNUM,Tv=Wc(),bat=Q1().clearOutline,wat=jL(),bq=qM(),Aat=pq(),Tat=Rd().getModuleCalcData,Xne=nu.relinkPrivateKeys,yb=nu._,ql=aae.exports={};nu.extendFlat(ql,Hf);ql.attributes=Gf();ql.attributes.type.values=ql.allTypes;ql.fontAttrs=gc();ql.layoutAttributes=s3();var KL=Wne();ql.executeAPICommand=KL.executeAPICommand;ql.computeAPICommandBindings=KL.computeAPICommandBindings;ql.manageCommandObserver=KL.manageCommandObserver;ql.hasSimpleAPICommandBindings=KL.hasSimpleAPICommandBindings;ql.redrawText=function(e){return e=nu.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Hf.getComponentMethod("annotations","draw")(e),Hf.getComponentMethod("legend","draw")(e),Hf.getComponentMethod("colorbar","draw")(e),t(ql.previousPromises(e)))},300)})};ql.resize=function(e){e=nu.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||nu.isHidden(e))&&i(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||nu.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Hf.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r};ql.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};ql.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=nu.ensureSingle(t._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:eae.defaultLine,"pointer-events":"all"}).each(function(){var l=$ne.select(this);l.append("tspan").classed("js-link-to-tool",!0),l.append("tspan").classed("js-link-spacer",!0),l.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var a=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Sat(e,a),o.text(a.text()&&s.text()?" - ":"")}};function Sat(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){ql.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}ql.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=$ne.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),i=n.append("input").attr({type:"text",name:"data"});return i.node().value=ql.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var Mat=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Eat=["year","month","dayMonth","dayMonthYear"];ql.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var i=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],u=e.data||[],l=e.calcdata||[],f=e._context||{},c;e._transitionData||ql.createTransitionData(e),i._dfltTitle={plot:yb(e,"Click to enter Plot title"),subtitle:yb(e,"Click to enter Plot subtitle"),x:yb(e,"Click to enter X axis title"),y:yb(e,"Click to enter Y axis title"),colorbar:yb(e,"Click to enter Colorscale title"),annotation:yb(e,"new text")},i._traceWord=yb(e,"trace");var h=Zne(e,Mat);if(i._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,p=n.height;ql.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=p),ql.sanitizeMargins(i)}else{ql.supplyLayoutGlobalDefaults(a,i,h);var _=!a.width||!a.height,b=i.autosize,v=f.autosizable,k=_&&(b||v);k?ql.plotAutoSize(e,a,i):_&&ql.sanitizeMargins(i),!b&&_&&(a.width=i.width,a.height=i.height)}i._d3locale=Lat(h,i.separators),i._extraFormat=Zne(e,Eat),i._initialAutoSizeIsDone=!0,i._dataLength=u.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var E=i._subplots=Cat(),T=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=kat(o,u),ql.supplyDataDefaults(u,s,a,i);var x=Object.keys(T.x),C=Object.keys(T.y);if(x.length>1&&C.length>1){for(Hf.getComponentMethod("grid","sizeDefaults")(a,i),c=0;c15&&C.length>15&&i.shapes.length===0&&i.images.length===0,ql.linkSubplots(s,i,o,n),ql.cleanPlot(s,i,o,n);var B=!!(n._has&&n._has("cartesian")),F=!!(i._has&&i._has("cartesian")),U=B,G=F;U&&!G?n._bgLayer.remove():G&&!U&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&bat({_fullLayout:n}),Pat(s,i),Xne(i,n),Hf.getComponentMethod("colorscale","crossTraceDefaults")(s,i),i._preGUI||(i._preGUI={}),i._tracePreGUI||(i._tracePreGUI={});var j=i._tracePreGUI,H={},N;for(N in j)H[N]="old";for(c=0;c0){var f=1-2*a;o=Math.round(f*o),s=Math.round(f*s)}}var c=ql.layoutAttributes.width.min,h=ql.layoutAttributes.height.min;o1,p=!r.height&&Math.abs(n.height-s)>1;(p||d)&&(d&&(n.width=o),p&&(n.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),ql.sanitizeMargins(n)};ql.supplyLayoutModuleDefaults=function(e,t,r,n){var i=Hf.componentsRegistry,a=t._basePlotModules,o,s,u,l=Hf.subplotsRegistry.cartesian;for(o in i)u=i[o],u.includeBasePlot&&u.includeBasePlot(e,t);a.length||a.push(l),t._has("cartesian")&&(Hf.getComponentMethod("grid","contentDefaults")(e,t),l.finalizeSubplots(e,t));for(var f in t._subplots)t._subplots[f].sort(nu.subplotSort);for(s=0;s1&&(r.l/=b,r.r/=b)}if(h){var v=(r.t+r.b)/h;v>1&&(r.t/=v,r.b/=v)}var k=r.xl!==void 0?r.xl:r.x,E=r.xr!==void 0?r.xr:r.x,T=r.yt!==void 0?r.yt:r.y,L=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:k,size:r.l+_},r:{val:E,size:r.r+_},b:{val:L,size:r.b+_},t:{val:T,size:r.t+_}},p[t]=1}if(!n._replotting)return ql.doAutoMargin(e)}};function Iat(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Tv.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}ql.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),tae(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=nu.extendFlat({},i),u=a.l,l=a.r,f=a.t,c=a.b,h=t._pushmargin,d=t._pushmarginIds,p=t.minreducedwidth,_=t.minreducedheight;if(a.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var v=e._fullLayout._reservedMargin;for(var k in v)for(var E in v[k]){var T=v[k][E];o[E]=Math.max(o[E],T)}h.base={l:{val:0,size:u},r:{val:1,size:l},t:{val:1,size:f},b:{val:0,size:c}};for(var L in o){var x=0;for(var C in h)C!=="base"&&KM(h[C][L].size)&&(x=h[C][L].size>x?h[C][L].size:x);var M=Math.max(0,a[L]-x);o[L]=Math.max(0,o[L]-M)}for(var m in h){var P=h[m].l||{},A=h[m].b||{},B=P.val,F=P.size,U=A.val,G=A.size,j=r-o.r-o.l,H=n-o.t-o.b;for(var N in h){if(KM(F)&&h[N].r){var W=h[N].r.val,re=h[N].r.size;if(W>B){var ae=(F*W+(re-j)*B)/(W-B),be=(re*(1-B)+(F-j)*(1-W))/(W-B);ae+be>u+l&&(u=ae,l=be)}}if(KM(G)&&h[N].t){var Pe=h[N].t.val,Ce=h[N].t.size;if(Pe>U){var de=(G*Pe+(Ce-H)*U)/(Pe-U),te=(Ce*(1-U)+(G-H)*(1-Pe))/(Pe-U);de+te>c+f&&(c=de,f=te)}}}}}var ke=nu.constrain(r-a.l-a.r,rae,p),Ee=nu.constrain(n-a.t-a.b,iae,_),Me=Math.max(0,r-ke),Ne=Math.max(0,n-Ee);if(Me){var Fe=(u+l)/Me;Fe>1&&(u/=Fe,l/=Fe)}if(Ne){var ye=(c+f)/Ne;ye>1&&(c/=ye,f/=ye)}if(i.l=Math.round(u)+o.l,i.r=Math.round(l)+o.r,i.t=Math.round(f)+o.t,i.b=Math.round(c)+o.b,i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&(ql.didMarginChange(s,i)||Iat(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Ve=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};ql.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&ql.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,u=(e._transitionData||{})._frames;function l(h,d){if(typeof h=="function")return d?"_function_":null;if(nu.isPlainObject(h)){var p={},_;return Object.keys(h).sort().forEach(function(E){if(["_","["].indexOf(E.charAt(0))===-1){if(typeof h[E]=="function"){d&&(p[E]="_function");return}if(r==="keepdata"){if(E.substr(E.length-3)==="src")return}else if(r==="keepstream"){if(_=h[E+"src"],typeof _=="string"&&_.indexOf(":")>0&&!nu.isPlainObject(h.stream))return}else if(r!=="keepall"&&(_=h[E+"src"],typeof _=="string"&&_.indexOf(":")>0))return;p[E]=l(h[E],d)}}),p}var b=Array.isArray(h),v=nu.isTypedArray(h);if((b||v)&&h.dtype&&h.shape){var k=h.bdata;return l({dtype:h.dtype,shape:h.shape,bdata:nu.isArrayBuffer(k)?_at.encode(k):k},d)}return b?h.map(function(E){return l(E,d)}):v?nu.simpleMap(h,nu.identity):nu.isJSDate(h)?nu.ms2DateTimeLocal(+h):h}var f={data:(o||[]).map(function(h){var d=l(h);return t&&delete d.fit,d})};if(!t&&(f.layout=l(s),i)){var c=s._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return u&&(f.frames=l(u)),a&&(f.config=l(e._context,!0)),n==="object"?f:JSON.stringify(f)};ql.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Hf.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function p(){return h++,function(){d++,!n&&d===h&&s(c)}}r.runFn(p),setTimeout(p())})}function s(c){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Hf.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function u(){if(e._transitionData)return e._transitioning=!1,i(e._transitionData._interruptCallbacks)}var l=[ql.previousPromises,u,r.prepareFn,ql.rehover,ql.reselect,o],f=nu.syncOrAsync(l,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}ql.doCalcdata=function(e,t){var r=Tv.list(e),n=e._fullData,i=e._fullLayout,a,o,s,u,l=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=l,i._numBoxes=0,i._numViolins=0,i._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,i._piecolormap={},i._sunburstcolormap={},i._treemapcolormap={},i._iciclecolormap={},i._funnelareacolormap={},s=0;s=0;u--)if(L[u].enabled){a._indexToPoints=L[u]._indexToPoints;break}o&&o.calc&&(T=o.calc(e,a))}(!Array.isArray(T)||!T[0])&&(T=[{x:jne,y:jne}]),T[0].t||(T[0].t={}),T[0].trace=a,l[k]=T}}for(Kne(r,n,i),s=0;s{"use strict";gb.xmlns="http://www.w3.org/2000/xmlns/";gb.svg="http://www.w3.org/2000/svg";gb.xlink="http://www.w3.org/1999/xlink";gb.svgAttrs={xmlns:gb.svg,"xmlns:xlink":gb.xlink}});var Qh=Te((Unr,oae)=>{"use strict";oae.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Xf=Te(b0=>{"use strict";var Dh=Jl(),Ag=ei(),Bat=Ag.strTranslate,wq=jv(),Oat=Qh().LINE_SPACING,qat=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(qat),a=Dh.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var u=$at(e.node(),n);u&&e.style("pointer-events","all"),b0.positionText(e),r&&r.call(e)}return i?(t&&t._promises||[]).push(new Promise(function(u){e.style("display","none");var l=parseInt(e.node().style.fontSize,10),f={fontSize:l};Gat(i[2],f,function(c,h,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){s(),u();return}var _=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});_.node().appendChild(p.node()),h&&h.node()&&p.node().insertBefore(h.node().cloneNode(!0),p.node().firstChild);var b=d.width,v=d.height;p.attr({class:o,height:v,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var k=e.node().style.fill||"black",E=p.select("g");E.attr({fill:k,stroke:k});var T=E.node().getBoundingClientRect(),L=T.width,x=T.height;(L>b||x>v)&&(p.style("overflow","hidden"),T=p.node().getBoundingClientRect(),L=T.width,x=T.height);var C=+e.attr("x"),M=+e.attr("y"),m=l||e.node().getBoundingClientRect().height,P=-m/4;if(o[0]==="y")_.attr({transform:"rotate("+[-90,C,M]+")"+Bat(-L/2,P-x/2)});else if(o[0]==="l")M=P-x/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)C=0,M=P;else{var A=e.attr("text-anchor");C=C-L*(A==="middle"?.5:A==="end"?1:0),M=M+P-x/2}p.attr({x:C,y:M}),r&&r.call(e,_),u(_)})})):s(),e};var Nat=/(<|<|<)/g,Uat=/(>|>|>)/g;function Vat(e){return e.replace(Nat,"\\lt ").replace(Uat,"\\gt ")}var sae=[["$","$"],["\\(","\\)"]];function Gat(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Ag.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,u=function(){return a=Ag.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:sae},displayAlign:"left"})},l=function(){a=Ag.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=sae},f=function(){if(i=MathJax.Hub.config.menuSettings.renderer,i!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){i=MathJax.config.startup.output,i!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var k="math-output-"+Ag.randstr({},64);s=Dh.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(Vat(e));var E=s.node();return n===2?MathJax.Hub.Typeset(E):MathJax.typeset([E])},d=function(){var k=s.select(n===2?".MathJax_SVG":".MathJax"),E=!k.empty()&&s.select("svg").node();if(!E)Ag.log("There was an error in the tex syntax.",e),r();else{var T=E.getBoundingClientRect(),L;n===2?L=Dh.select("body").select("#MathJax_SVG_glyphs"):L=k.select("defs"),r(k,L,T)}s.remove()},p=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},_=function(){i!=="svg"&&(MathJax.config.startup.output=i)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(a)},v=function(){MathJax.config=a};n===2?MathJax.Hub.Queue(u,f,h,d,p,b):n===3&&(l(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),_(),v()}))}var cae={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Hat={sub:"0.3em",sup:"-0.6em"},Wat={sub:"-0.21em",sup:"0.42em"},lae="\u200B",uae=["http:","https:","mailto:","",void 0,":"],hae=b0.NEWLINES=/(\r\n?|\n)/g,Tq=/(<[^<>]*>)/,Sq=/<(\/?)([^ >]*)(\s+(.*))?>/i,jat=//i;b0.BR_TAG_ALL=//gi;var dae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,pae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,vae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Xat=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _b(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&JL(n)}var Zat=/(^|;)\s*color:/;b0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,n=t.allowedTags!==void 0?t.allowedTags:["br"],i="...",a=i.length,o=e.split(Tq),s=[],u="",l=0,f=0;fa?s.push(c.substr(0,_-a)+i):s.push(c.substr(0,_));break}u=""}}return s.join("")};var Yat={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Kat=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function JL(e){return e.replace(Kat,function(t,r){var n;return r.charAt(0)==="#"?n=Jat(r.charAt(1)==="x"?parseInt(r.substr(2),16):parseInt(r.substr(1),10)):n=Yat[r],n||t})}b0.convertEntities=JL;function Jat(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function $at(e,t){t=t.replace(hae," ");var r=!1,n=[],i,a=-1;function o(){a++;var x=document.createElementNS(wq.svg,"tspan");Dh.select(x).attr({class:"line",dy:a*Oat+"em"}),e.appendChild(x),i=x;var C=n;if(n=[{node:x}],C.length>1)for(var M=1;M.",t);return}var C=n.pop();x!==C.type&&Ag.log("Start tag <"+C.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),i=n[n.length-1].node}var f=jat.test(t);f?o():(i=e,n=[{node:e}]);for(var c=t.split(Tq),h=0;h{"use strict";var Qat=Jl(),QL=cd(),$M=ku(),$L=ei(),yae=jl(),eot=sb().isValid;function tot(e,t,r){var n=t?$L.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if($L.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function Aae(e,t){t=t||{};for(var r=e.domain,n=e.range,i=n.length,a=new Array(i),o=0;o{"use strict";var Sae=j9(),iot=Sae.FORMAT_LINK,not=Sae.DATE_FORMAT_LINK;function aot(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Mq:Mae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Mq(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+iot+"."].join(" ")}function Mae(e,t){return Mq(e,t)+[" And for dates see: "+not+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Eae.exports={axisHoverFormat:aot,descriptionOnlyNumbers:Mq,descriptionWithDates:Mae}});var Dd=Te((jnr,Hae)=>{"use strict";var kae=gc(),w3=Rh(),Gae=Id().dash,kq=Su().extendFlat,Cae=Pf().templatedArray,Wnr=Nu().templateFormatStringDescription,Lae=jc().descriptionWithDates,oot=nf().ONEDAY,vy=dd(),sot=vy.HOUR_PATTERN,lot=vy.WEEKDAY_PATTERN,Eq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},uot=kq({},Eq,{values:Eq.values.slice().concat(["sync"])});function Pae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var zae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Iae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Rae={valType:"data_array",editType:"ticks"},Dae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Fae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Bae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Oae={valType:"color",dflt:w3.defaultLine,editType:"ticks"},qae={valType:"color",dflt:w3.lightLine,editType:"ticks"};function Nae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Uae=kq({},Gae,{editType:"ticks"}),Vae={valType:"boolean",editType:"ticks"};Hae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:kae({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[vy.idRegex.x.toString(),vy.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[vy.idRegex.x.toString(),vy.idRegex.y.toString()],editType:"calc"},rangebreaks:Cae("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[lot,sot,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:oot},editType:"calc"}),tickmode:uot,nticks:Pae(),tick0:zae,dtick:Iae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Rae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Dae,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Fae(),tickwidth:Bae(),tickcolor:Oae,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:kq({},Gae,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:kae({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Lae("tick label")},tickformatstops:Cae("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Lae("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:w3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Vae,gridcolor:qae,gridwidth:Nae(),griddash:Uae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",vy.idRegex.x.toString(),vy.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",vy.idRegex.x.toString(),vy.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Eq,nticks:Pae("minor"),tick0:zae,dtick:Iae,tickvals:Rae,ticks:Dae,ticklen:Fae("minor"),tickwidth:Bae("minor"),tickcolor:Oae,gridcolor:qae,gridwidth:Nae("minor"),griddash:Uae,showgrid:Vae,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var eP=Te((Xnr,Xae)=>{"use strict";var Nc=Dd(),Wae=gc(),jae=Su().extendFlat,fot=Sc().overrideAll;Xae.exports=fot({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Nc.linecolor,outlinewidth:Nc.linewidth,bordercolor:Nc.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Nc.minor.tickmode,nticks:Nc.nticks,tick0:Nc.tick0,dtick:Nc.dtick,tickvals:Nc.tickvals,ticktext:Nc.ticktext,ticks:jae({},Nc.ticks,{dflt:""}),ticklabeloverflow:jae({},Nc.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Nc.ticklen,tickwidth:Nc.tickwidth,tickcolor:Nc.tickcolor,ticklabelstep:Nc.ticklabelstep,showticklabels:Nc.showticklabels,labelalias:Nc.labelalias,tickfont:Wae({}),tickangle:Nc.tickangle,tickformat:Nc.tickformat,tickformatstops:Nc.tickformatstops,tickprefix:Nc.tickprefix,showtickprefix:Nc.showtickprefix,ticksuffix:Nc.ticksuffix,showticksuffix:Nc.showticksuffix,separatethousands:Nc.separatethousands,exponentformat:Nc.exponentformat,minexponent:Nc.minexponent,showexponent:Nc.showexponent,title:{text:{valType:"string"},font:Wae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var nc=Te((Ynr,Yae)=>{"use strict";var cot=eP(),hot=n3().counter,dot=Z1(),Zae=sb().scales,Znr=dot(Zae);function tP(e){return"`"+e+"`"}Yae.exports=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",i="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",s=typeof r.colorscaleDflt=="string"?Zae[r.colorscaleDflt]:null,u=r.editTypeOverride||"",l=t?t+".":"",f,c;"colorAttr"in r?(f=r.colorAttr,c=r.colorAttr):(f={z:"z",c:"color"}[n],c="in "+tP(l+f));var h=i?" Has an effect only if "+c+" is set to a numerical array.":"",d=n+"auto",p=n+"min",_=n+"max",b=n+"mid",v=tP(l+d),k=tP(l+p),E=tP(l+_),T=k+" and "+E,L={};L[p]=L[_]=void 0;var x={};x[d]=!1;var C={};return f==="color"&&(C.color={valType:"color",arrayOk:!0,editType:u||"style"},r.anim&&(C.color.anim=!0)),C[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:L},C[p]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:x},C[_]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:x},C[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:L},C.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},C.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},C.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(C.showscale={valType:"boolean",dflt:o,editType:"calc"},C.colorbar=cot),r.noColorAxis||(C.coloraxis={valType:"subplotid",regex:hot("coloraxis"),dflt:null,editType:"calc"}),C}});var Lq=Te((Knr,Kae)=>{"use strict";var pot=Su().extendFlat,vot=nc(),Cq=sb().scales;Kae.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Cq.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Cq.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Cq.RdBu,editType:"calc"}},coloraxis:pot({_isSubplotObj:!0,editType:"calc"},vot("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Pq=Te((Jnr,Jae)=>{"use strict";var mot=ei();Jae.exports=function(t){return mot.isPlainObject(t.colorbar)}});var Rq=Te(Iq=>{"use strict";var zq=ku(),$ae=ei(),Qae=nf(),yot=Qae.ONEDAY,got=Qae.ONEWEEK;Iq.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?yot:1;if(!e)return a;if(zq(e))return e=Number(e),e<=0?a:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return a;var o=e.charAt(0),s=e.substr(1);return s=zq(s)?Number(s):0,s<=0||!(n&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};Iq.tick0=function(e,t,r,n){if(t==="date")return $ae.cleanDate(e,$ae.dateTick0(r,n%got===0?1:0));if(!(n==="D1"||n==="D2"))return zq(e)?Number(e):0}});var xb=Te((Qnr,toe)=>{"use strict";var eoe=Rq(),_ot=ei().isArrayOrTypedArray,xot=mp().isTypedArraySpec,bot=mp().decodeTypedArraySpec;toe.exports=function(t,r,n,i,a){a||(a={});var o=a.isMinor,s=o?t.minor||{}:t,u=o?r.minor:r,l=o?"minor.":"";function f(k){var E=s[k];return xot(E)&&(E=bot(E)),E!==void 0?E:(u._template||{})[k]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=_ot(d)?"array":h?"linear":"auto",_=n(l+"tickmode",p);if(_==="auto"||_==="sync")n(l+"nticks");else if(_==="linear"){var b=u.dtick=eoe.dtick(h,i);u.tick0=eoe.tick0(c,i,r.calendar,b)}else if(i!=="multicategory"){var v=n(l+"tickvals");v===void 0?u.tickmode="auto":o||n("ticktext")}}});var A3=Te((ear,ioe)=>{"use strict";var Dq=ei(),roe=Dd();ioe.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,u=a?roe.minor:roe,l=a?"minor.":"",f=Dq.coerce2(o,s,u,"ticklen",a?(r.ticklen||5)*.6:void 0),c=Dq.coerce2(o,s,u,"tickwidth",a?r.tickwidth||1:void 0),h=Dq.coerce2(o,s,u,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=n(l+"ticks",!a&&i.outerTicks||f||c||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var Fq=Te((tar,noe)=>{"use strict";noe.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(a){return t[a]!==void 0}),i=function(a){return t[a]===t[n[0]]};if(n.every(i)||n.length===1)return t[n[0]]}});var Jd=Te((rar,aoe)=>{"use strict";var rP=ei(),wot=Pf();aoe.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=rP.isArrayOrTypedArray(t[i])?t[i]:[],u=r[i]=[],l=wot.arrayTemplater(r,i,a),f,c;for(f=0;f{"use strict";var Bq=ei(),Aot=jl().contrast,ooe=Dd(),Tot=Fq(),Sot=Jd();soe.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");Bq.isPlainObject(o)||delete r.labelalias;var s=Tot(t),u=n("showticklabels");if(u){a.noTicklabelshift||n("ticklabelshift"),a.noTicklabelstandoff||n("ticklabelstandoff");var l=a.font||{},f=r.color,c=r.ticklabelposition||"",h=c.indexOf("inside")!==-1?Aot(a.bgColor):f&&f!==ooe.color.dflt?f:l.color;if(Bq.coerceFont(n,"tickfont",l,{overrideDflt:{color:h}}),!a.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!a.noAng){var d=n("tickangle");!a.noAutotickangles&&d==="auto"&&n("autotickangles")}if(i!=="category"){var p=n("tickformat");Sot(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Mot}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!p&&i!=="date"&&(n("showexponent",s),n("exponentformat"),n("minexponent"),n("separatethousands"))}!a.noMinorloglabels&&i==="log"&&n("minorloglabels")}};function Mot(e,t){function r(i,a){return Bq.coerce(e,t,ooe.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var t_=Te((nar,loe)=>{"use strict";var Eot=Fq();loe.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=Eot(t),u=n("tickprefix");u&&n("showtickprefix",s);var l=n("ticksuffix",o);l&&n("showticksuffix",s)}});var Oq=Te((aar,uoe)=>{"use strict";var r_=ei(),kot=Pf(),Cot=xb(),Lot=A3(),Pot=e_(),zot=t_(),Iot=eP();uoe.exports=function(t,r,n){var i=kot.newContainer(r,"colorbar"),a=t.colorbar||{};function o(A,B){return r_.coerce(a,i,Iot,A,B)}var s=n.margin||{t:0,b:0,l:0,r:0},u=n.width-s.l-s.r,l=n.height-s.t-s.b,f=o("orientation"),c=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(c?u:l):30);var d=o("lenmode");o("len",d==="fraction"?1:c?l:u);var p=o("yref"),_=o("xref"),b=p==="paper",v=_==="paper",k,E,T,L="left";c?(T="middle",L=v?"left":"right",k=v?1.02:1,E=.5):(T=b?"bottom":"top",L="center",k=.5,E=b?1.02:1),r_.coerce(a,i,{x:{valType:"number",min:v?-2:0,max:v?3:1,dflt:k}},"x"),r_.coerce(a,i,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:E}},"y"),o("xanchor",L),o("xpad"),o("yanchor",T),o("ypad"),r_.noneOrAll(a,i,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var x=r_.coerce(a,i,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",x.indexOf("inside")!==-1?"hide past domain":"hide past div"),Cot(a,i,o,"linear");var C=n.font,M={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:C};x.indexOf("inside")!==-1&&(M.bgColor="black"),zot(a,i,o,"linear",M),Pot(a,i,o,"linear",M),Lot(a,i,o,"linear",M),o("title.text",n._dfltTitle.colorbar);var m=i.showticklabels?i.tickfont:C,P=r_.extendFlat({},C,{family:m.family,size:r_.bigFont(m.size)});r_.coerceFont(o,"title.font",P),o("title.side",c?"top":"right")}});var ed=Te((oar,hoe)=>{"use strict";var foe=ku(),Nq=ei(),Rot=Pq(),Dot=Oq(),coe=sb().isValid,Fot=$l().traceIs;function qq(e,t){var r=t.slice(0,t.length-1);return t?Nq.nestedProperty(e,r).get()||{}:e}hoe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,u="_module"in r,l=qq(t,o),f=qq(r,o),c=qq(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,n,i,a)};if(u){var d=n._colorAxes||{},p=i(o+"coloraxis");if(p){var _=Fot(r,"contour")&&Nq.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[p];b?(b[2].push(h),b[0]!==_&&(b[0]=!1,Nq.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[_,r,[h]];return}}var v=l[s+"min"],k=l[s+"max"],E=foe(v)&&foe(k)&&v{"use strict";var doe=ei(),Bot=Pf(),poe=Lq(),Oot=ed();voe.exports=function(t,r){function n(c,h){return doe.coerce(t,r,poe,c,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(c,h){return doe.coerce(a,o,poe.coloraxis,c,h)}for(var u in i){var l=i[u];if(l[0])a=t[u]||{},o=Bot.newContainer(r,u,"coloraxis"),o._name=u,Oot(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var qot=ei(),Not=yp().hasColorscale,Uot=yp().extractOpts;yoe.exports=function(t,r){function n(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function i(f,c){var h=c.container?qot.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=Uot(h),p=d.auto;(p||d.min===void 0)&&n(h,c.min),(p||d.max===void 0)&&n(h,c.max),d.autocolorscale&&n(h,"colorscale")}}for(var a=0;a{"use strict";var _oe=ku(),Uq=ei(),Vot=yp().extractOpts;xoe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?Uq.nestedProperty(r,o).get():r,u=Vot(s),l=u.auto!==!1,f=u.min,c=u.max,h=u.mid,d=function(){return Uq.aggNums(Math.min,null,a)},p=function(){return Uq.aggNums(Math.max,null,a)};if(f===void 0?f=d():l&&(s._colorAx&&_oe(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():l&&(s._colorAx&&_oe(c)?c=Math.max(c,p()):c=p()),l&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?_=i.colorscale.sequential:_=i.colorscale.sequentialminus,u._sync("colorscale",_)}}});var _c=Te((far,boe)=>{"use strict";var iP=sb(),T3=yp();boe.exports={moduleType:"component",name:"colorscale",attributes:nc(),layoutAttributes:Lq(),supplyLayoutDefaults:moe(),handleDefaults:ed(),crossTraceDefaults:goe(),calc:gp(),scales:iP.scales,defaultScale:iP.defaultScale,getScale:iP.get,isValidScale:iP.isValid,hasColorscale:T3.hasColorscale,extractOpts:T3.extractOpts,extractScale:T3.extractScale,flipScale:T3.flipScale,makeColorScaleFunc:T3.makeColorScaleFunc,makeColorScaleFuncFromTrace:T3.makeColorScaleFuncFromTrace}});var lc=Te((car,Aoe)=>{"use strict";var woe=ei(),Got=mp().isTypedArraySpec;Aoe.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return woe.isPlainObject(t)&&(woe.isArrayOrTypedArray(t.size)||Got(t.size))}}});var S3=Te((har,Toe)=>{"use strict";var Hot=ku();Toe.exports=function(t,r){r||(r=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(s){return Math.sqrt(s/i)}:function(s){return s/i};return function(s){var u=o(s/r);return Hot(u)&&u>0?Math.max(u,a):0}}});var iv=Te(_p=>{"use strict";var Soe=ei();_p.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};_p.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],n=e.yaxes||[],i=0;i=0&&r.index{koe.exports=Yot;var Vq={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Zot=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Yot(e){var t=[];return e.replace(Zot,function(r,n,i){var a=n.toLowerCase();for(i=Jot(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Vq[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var $ot=QM(),wl=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},af="M0,0Z",Coe=Math.sqrt(2),i_=Math.sqrt(3),Gq=Math.PI,Hq=Math.cos,Wq=Math.sin;Roe.exports={circle:{n:0,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?sf(t,r,i):i}},square:{n:1,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.3,2);return sf(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(of(t))return af;var n=wl(e*.4,2),i=wl(e*1.2,2);return sf(t,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(e,t,r){if(of(t))return af;var n=wl(e*.8/Coe,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return sf(t,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/i_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M-"+n+","+i+"H"+n+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/i_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M-"+n+",-"+i+"H"+n+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/i_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M"+i+",-"+n+"V"+n+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/i_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M-"+i+",-"+n+"V"+n+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(e,t,r){if(of(t))return af;var n=wl(e*.951,2),i=wl(e*.588,2),a=wl(-e,2),o=wl(e*-.309,2),s=wl(e*.809,2);return sf(t,r,"M"+n+","+o+"L"+i+","+s+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e/2,2),a=wl(e*i_/2,2);return sf(t,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e/2,2),a=wl(e*i_/2,2);return sf(t,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(of(t))return af;var n=wl(e*.924,2),i=wl(e*.383,2);return sf(t,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(e,t,r){if(of(t))return af;var n=e*1.4,i=wl(n*.225,2),a=wl(n*.951,2),o=wl(n*.363,2),s=wl(n*.588,2),u=wl(-n,2),l=wl(n*-.309,2),f=wl(n*.118,2),c=wl(n*.809,2),h=wl(n*.382,2);return sf(t,r,"M"+i+","+l+"H"+a+"L"+o+","+f+"L"+s+","+c+"L0,"+h+"L-"+s+","+c+"L-"+o+","+f+"L-"+a+","+l+"H-"+i+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,t,r){if(of(t))return af;var n=wl(e*.66,2),i=wl(e*.38,2),a=wl(e*.76,2);return sf(t,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(of(t))return af;var n=wl(e*i_*.8,2),i=wl(e*.8,2),a=wl(e*1.6,2),o=wl(e*4,2),s="A "+o+","+o+" 0 0 1 ";return sf(t,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(of(t))return af;var n=wl(e*i_*.8,2),i=wl(e*.8,2),a=wl(e*1.6,2),o=wl(e*4,2),s="A "+o+","+o+" 0 0 1 ";return sf(t,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.1,2),i=wl(e*2,2),a="A "+i+","+i+" 0 0 1 ";return sf(t,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2),i=wl(e*1.9,2),a="A "+i+","+i+" 0 0 1 ";return sf(t,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(of(t))return af;var n=wl(e*.7,2),i=wl(e*1.4,2);return sf(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2),i=wl(e*.7,2);return sf(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e/Coe,2);return sf(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.3,2);return sf(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.3,2),i=wl(e*.65,2);return sf(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*.85,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(of(t))return af;var n=wl(e/2,2),i=wl(e,2);return sf(t,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2);return sf(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2);return sf(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M0,0L-"+n+",-"+i+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+i+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(of(t))return af;var n=Gq/2.5,i=2*e*Hq(n),a=2*e*Wq(n);return sf(t,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(of(t))return af;var n=Gq/4,i=2*e*Hq(n),a=2*e*Wq(n);return sf(t,r,"M0,0L"+-i+","+a+"A "+2*e+","+2*e+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}};function of(e){return e===null}var Loe,Poe,zoe,Ioe;function sf(e,t,r){if((!e||e%360===0)&&!t)return r;if(zoe===e&&Ioe===t&&Loe===r)return Poe;zoe=e,Ioe=t,Loe=r;function n(b,v){var k=Hq(b),E=Wq(b),T=v[0],L=v[1]+(t||0);return[T*k-L*E,T*E+L*k]}for(var i=e/180*Gq,a=0,o=0,s=$ot(r),u="",l=0;l{"use strict";var pd=Jl(),uc=ei(),Qot=uc.numberFormat,Tb=ku(),Jq=cd(),aP=$l(),$d=jl(),est=_c(),t5=uc.strTranslate,oP=Xf(),tst=jv(),rst=Qh(),ist=rst.LINE_SPACING,Woe=N1().DESELECTDIM,nst=lc(),ast=S3(),ost=iv().appendArrayPointValue,Gl=tse.exports={};Gl.font=function(e,t){var r=t.variant,n=t.style,i=t.weight,a=t.color,o=t.size,s=t.family,u=t.shadow,l=t.lineposition,f=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call($d.fill,a),i&&e.style("font-weight",i),n&&e.style("font-style",n),r&&e.style("font-variant",r),f&&e.style("text-transform",jq(lst(f))),u&&e.style("text-shadow",u==="auto"?oP.makeTextShadow($d.contrast(a)):jq(u)),l&&e.style("text-decoration-line",jq(ust(l)))};function jq(e){return e==="none"?void 0:e}var sst={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function lst(e){return sst[e]}function ust(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Gl.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Gl.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Gl.setRect=function(e,t,r,n,i){e.call(Gl.setPosition,t,r).call(Gl.setSize,n,i)};Gl.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),a=n.c2p(e.y);if(Tb(i)&&Tb(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",t5(i,a));else return!1;return!0};Gl.translatePoints=function(e,t,r){e.each(function(n){var i=pd.select(this);Gl.translatePoint(n,i,t,r)})};Gl.hideOutsideRangePoint=function(e,t,r,n,i,a){t.attr("display",r.isPtWithinRange(e,i)&&n.isPtWithinRange(e,a)?null:"none")};Gl.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each(function(i){var a=i[0].trace,o=a.xcalendar,s=a.ycalendar,u=aP.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(l){Gl.hideOutsideRangePoint(l,pd.select(this),r,n,o,s)})})}};Gl.crispRound=function(e,t,r){return!t||!Tb(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Gl.singleLineStyle=function(e,t,r,n,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";$d.stroke(t,n||a.color),Gl.dashLine(t,s,o)};Gl.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each(function(i){var a=(((i||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=n||a.dash||"";pd.select(this).call($d.stroke,r||a.color).call(Gl.dashLine,s,o)})};Gl.dashLine=function(e,t,r){r=+r||0,t=Gl.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Gl.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function joe(e,t,r,n){var i=t.fillpattern,a=t.fillgradient,o=Gl.getPatternAttr,s=i&&(o(i.shape,0,"")||o(i.path,0,""));if(s){var u=o(i.bgcolor,0,null),l=o(i.fgcolor,0,null),f=i.fgopacity,c=o(i.size,0,8),h=o(i.solidity,0,.3),d=t.uid;Gl.pattern(e,"point",r,d,s,c,h,void 0,i.fillmode,u,l,f)}else if(a&&a.type!=="none"){var p=a.type,_="scatterfill-"+t.uid;if(n&&(_="legendfill-"+t.uid),!n&&(a.start!==void 0||a.stop!==void 0)){var b,v;p==="horizontal"?(b={x:a.start,y:0},v={x:a.stop,y:0}):p==="vertical"&&(b={x:0,y:a.start},v={x:0,y:a.stop}),b.x=t._xA.c2p(b.x===void 0?t._extremes.x.min[0].val:b.x,!0),b.y=t._yA.c2p(b.y===void 0?t._extremes.y.min[0].val:b.y,!0),v.x=t._xA.c2p(v.x===void 0?t._extremes.x.max[0].val:v.x,!0),v.y=t._yA.c2p(v.y===void 0?t._extremes.y.max[0].val:v.y,!0),e.call(Yoe,r,_,"linear",a.colorscale,"fill",b,v,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Gl.gradient,r,_,p,a.colorscale,"fill")}else t.fillcolor&&e.call($d.fill,t.fillcolor)}Gl.singleFillStyle=function(e,t){var r=pd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};joe(e,i,t,!1)};Gl.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(n){var i=pd.select(this);n[0].trace&&joe(i,n[0].trace,t,r)})};var Foe=Doe();Gl.symbolNames=[];Gl.symbolFuncs=[];Gl.symbolBackOffs=[];Gl.symbolNeedLines={};Gl.symbolNoDot={};Gl.symbolNoFill={};Gl.symbolList=[];Object.keys(Foe).forEach(function(e){var t=Foe[e],r=t.n;Gl.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Gl.symbolNames[r]=e,Gl.symbolFuncs[r]=t.f,Gl.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Gl.symbolNeedLines[r]=!0),t.noDot?Gl.symbolNoDot[r]=!0:Gl.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Gl.symbolNoFill[r]=!0)});var fst=Gl.symbolNames.length,cst="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Gl.symbolNumber=function(e){if(Tb(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Gl.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=fst||e>=400?0:Math.floor(Math.max(e,0))};function Xoe(e,t,r,n){var i=e%100;return Gl.symbolFuncs[i](t,r,n)+(e>=200?cst:"")}var Boe=Qot("~f"),Zoe={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Gl.gradient=function(e,t,r,n,i,a){var o=Zoe[n];return Yoe(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function Yoe(e,t,r,n,i,a,o,s,u,l){var f=i.length,c;n==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:l}:n==="radial"&&(c={node:"radialGradient",reversed:l});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||o.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var l=Gl.symbolNumber(e.mx||o.symbol)||0;e.om=l%200>=100;var f=eN(e,r),c=Qq(e,r);t.attr("d",Xoe(l,u,f,c))}var h=!1,d,p,_;if(e.so)_=s.outlierwidth,p=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;_=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=n.lineScale(e.mlc):uc.isArrayOrTypedArray(s.color)?p=$d.defaultLine:p=s.color,uc.isArrayOrTypedArray(o.color)&&(d=$d.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}if(e.om)t.call($d.stroke,d).style({"stroke-width":(_||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:_)+"px");var v=o.gradient,k=e.mgt;k?h=!0:k=v&&v.type,uc.isArrayOrTypedArray(k)&&(k=k[0],Zoe[k]||(k=0));var E=o.pattern,T=Gl.getPatternAttr,L=E&&(T(E.shape,e.i,"")||T(E.path,e.i,""));if(k&&k!=="none"){var x=e.mgc;x?h=!0:x=v.color;var C=r.uid;h&&(C+="-"+e.i),Gl.gradient(t,i,C,k,[[0,x],[1,d]],"fill")}else if(L){var M=!1,m=E.fgcolor;!m&&a&&a.color&&(m=a.color,M=!0);var P=T(m,e.i,a&&a.color||null),A=T(E.bgcolor,e.i,null),B=E.fgopacity,F=T(E.size,e.i,8),U=T(E.solidity,e.i,.3);M=M||e.mcc||uc.isArrayOrTypedArray(E.shape)||uc.isArrayOrTypedArray(E.path)||uc.isArrayOrTypedArray(E.bgcolor)||uc.isArrayOrTypedArray(E.fgcolor)||uc.isArrayOrTypedArray(E.size)||uc.isArrayOrTypedArray(E.solidity);var G=r.uid;M&&(G+="-"+e.i),Gl.pattern(t,"point",i,G,L,F,U,e.mcc,E.fillmode,A,P,B)}else uc.isArrayOrTypedArray(d)?$d.fill(t,d[e.i]):$d.fill(t,d);_&&$d.stroke(t,p)}};Gl.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Gl.tryColorscale(r,""),t.lineScale=Gl.tryColorscale(r,"line"),aP.traceIs(e,"symbols")&&(t.ms2mrc=nst.isBubble(e)?ast(e):function(){return(r.size||6)/2}),e.selectedpoints&&uc.extendFlat(t,Gl.makeSelectedPointStyleFns(e)),t};Gl.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},a=r.marker||{},o=n.marker||{},s=i.opacity,u=a.opacity,l=o.opacity,f=u!==void 0,c=l!==void 0;(uc.isArrayOrTypedArray(s)||f||c)&&(t.selectedOpacityFn=function(T){var L=T.mo===void 0?i.opacity:T.mo;return T.selected?f?u:L:c?l:Woe*L});var h=i.color,d=a.color,p=o.color;(d||p)&&(t.selectedColorFn=function(T){var L=T.mcc||h;return T.selected?d||L:p||L});var _=i.size,b=a.size,v=o.size,k=b!==void 0,E=v!==void 0;return aP.traceIs(e,"symbols")&&(k||E)&&(t.selectedSizeFn=function(T){var L=T.mrc||_/2;return T.selected?k?b/2:L:E?v/2:L}),t};Gl.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,u=a.color,l=o.color;return t.selectedTextColorFn=function(f){var c=f.tc||s;return f.selected?u||c:l||(u?c:$d.addOpacity(c,Woe))},t};Gl.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Gl.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&i.push(function(a,o){$d.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&i.push(function(a,o){var s=o.mx||n.symbol||0,u=r.selectedSizeFn(o);a.attr("d",Xoe(Gl.symbolNumber(s),u,eN(o,t),Qq(o,t))),o.mrc2=u}),i.length&&e.each(function(a){for(var o=pd.select(this),s=0;s0?r:0}Gl.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=Gl.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var u=pd.select(this),l=a?uc.extractOption(s,t,"txt","texttemplate"):uc.extractOption(s,t,"tx","text");if(!l&&l!==0){u.remove();return}if(a){var f=t._module.formatLabels,c=f?f(s,t,o):{},h={};ost(h,t,s.i);var d=t._meta||{};l=uc.texttemplateString(l,c,o._d3locale,h,s,d)}var p=s.tp||t.textposition,_=Joe(s,t),b=n?n(s):s.tc||t.textfont.color;u.call(Gl.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:_,color:b}).text(l).call(oP.convertToTspans,r).call(Koe,p,_,s.mrc)})}};Gl.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Gl.makeSelectedTextStyleFns(t);e.each(function(n){var i=pd.select(this),a=r.selectedTextColorFn(n),o=n.tp||t.textposition,s=Joe(n,t);$d.fill(i,a);var u=aP.traceIs(t,"bar-like");Koe(i,o,s,n.mrc2||n.mrc,u)})}};var Ooe=.5;Gl.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],i;for(i=1;i=u||T>=f&&T<=u)&&(L<=c&&L>=l||L>=c&&L<=l)&&(e=[T,L])}return e}Gl.applyBackoff=ese;Gl.makeTester=function(){var e=uc.ensureSingleById(pd.select("body"),"svg","js-plotly-tester",function(r){r.attr(tst.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=uc.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Gl.tester=e,Gl.testref=t};Gl.savedBBoxes={};var Zq=0,pst=1e4;Gl.bBox=function(e,t,r){r||(r=qoe(e));var n;if(r){if(n=Gl.savedBBoxes[r],n)return uc.extendFlat({},n)}else if(e.childNodes.length===1){var i=e.childNodes[0];if(r=qoe(i),r){var a=+i.getAttribute("x")||0,o=+i.getAttribute("y")||0,s=i.getAttribute("transform");if(!s){var u=Gl.bBox(i,!1,r);return a&&(u.left+=a,u.right+=a),o&&(u.top+=o,u.bottom+=o),u}if(r+="~"+a+"~"+o+"~"+s,n=Gl.savedBBoxes[r],n)return uc.extendFlat({},n)}}var l,f;t?l=e:(f=Gl.tester.node(),l=e.cloneNode(!0),f.appendChild(l)),pd.select(l).attr("transform",null).call(oP.positionText,0,0);var c=l.getBoundingClientRect(),h=Gl.testref.node().getBoundingClientRect();t||f.removeChild(l);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return Zq>=pst&&(Gl.savedBBoxes={},Zq=0),r&&(Gl.savedBBoxes[r]=d),Zq++,uc.extendFlat({},d)};function qoe(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Gl.setClipUrl=function(e,t,r){e.attr("clip-path",$q(t,r))};function $q(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Gl.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}};Gl.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=t5(t,r),o=o.trim(),e[a]("transform",o),o};Gl.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}};Gl.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var vst=/\s*sc.*/;Gl.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var i=(this.getAttribute("transform")||"").replace(vst,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var mst=/translate\([^)]*\)\s*$/;Gl.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,i=pd.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),u=(i.attr("transform")||"").match(mst);t===1&&r===1?n=[]:n=[t5(o,s),"scale("+t+","+r+")",t5(-o,-s)],u&&n.push(u),i.attr("transform",n.join(""))}})};function Qq(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Gl.getMarkerStandoff=Qq;var e5=Math.atan2,bb=Math.cos,E3=Math.sin;function Noe(e,t){var r=t[0],n=t[1];return[r*bb(e)-n*E3(e),r*E3(e)+n*bb(e)]}var Uoe,Voe,Goe,Hoe,Yq,Kq;function eN(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||uc.isArrayOrTypedArray(r))&&(r=0));var n,i,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],i=o[1]}else{var s=t._xA,u=t._yA;if(s&&u)n=s.c2p(e.x),i=u.c2p(e.y);else return 90}if(t._geo){var l=e.lonlat[0],f=e.lonlat[1],c=t._geo.project([l,f+1e-5]),h=t._geo.project([l+1e-5,f]),d=e5(h[1]-i,h[0]-n),p=e5(c[1]-i,c[0]-n),_;if(a==="north")_=r/180*Math.PI;else if(a==="previous"){var b=l/180*Math.PI,v=f/180*Math.PI,k=Uoe/180*Math.PI,E=Voe/180*Math.PI,T=k-b,L=bb(E)*E3(T),x=E3(E)*bb(v)-bb(E)*E3(v)*bb(T);_=-e5(L,x)-Math.PI,Uoe=l,Voe=f}var C=Noe(d,[bb(_),0]),M=Noe(p,[E3(_),0]);r=e5(C[1]+M[1],C[0]+M[0])/Math.PI*180,a==="previous"&&!(Kq===t.uid&&e.i===Yq+1)&&(r=null)}if(a==="previous"&&!t._geo)if(Kq===t.uid&&e.i===Yq+1&&Tb(n)&&Tb(i)){var m=n-Goe,P=i-Hoe,A=t.line&&t.line.shape||"",B=A.slice(A.length-1);B==="h"&&(P=0),B==="v"&&(m=0),r+=e5(P,m)/Math.PI*180+90}else r=null}return Goe=n,Hoe=i,Yq=e.i,Kq=t.uid,r}Gl.getMarkerAngle=eN});var Mb=Te((gar,ase)=>{"use strict";var k3=Jl(),yst=ku(),gst=Cc(),tN=$l(),Sb=ei(),rse=Sb.strTranslate,sP=Mu(),lP=jl(),C3=Xf(),ise=N1(),_st=Qh().OPPOSITE_SIDE,nse=/ [XY][0-9]* /,rN=1.6,iN=1.6;function xst(e,t,r){var n=e._fullLayout,i=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,u=r.avoid||{},l=r.attributes,f=r.transform,c=r.containerGroup,h=1,d=i.title,p=(d&&d.text?d.text:"").trim(),_=!1,b=d&&d.font?d.font:{},v=b.family,k=b.size,E=b.color,T=b.weight,L=b.style,x=b.variant,C=b.textcase,M=b.lineposition,m=b.shadow,P=r.subtitlePropName,A=!!P,B=r.subtitlePlaceholder,F=(i.title||{}).subtitle||{text:"",font:{}},U=(F.text||"").trim(),G=!1,j=1,H=F.font,N=H.family,W=H.size,re=H.color,ae=H.weight,be=H.style,Pe=H.variant,Ce=H.textcase,de=H.lineposition,te=H.shadow,ke;a==="title.text"?ke="titleText":a.indexOf("axis")!==-1?ke="axisTitleText":a.indexOf("colorbar")!==-1&&(ke="colorbarTitleText");var Ee=e._context.edits[ke];function Me(Tt,St){return Tt===void 0||St===void 0?!1:Tt.replace(nse," % ")===St.replace(nse," % ")}p===""?h=0:Me(p,o)&&(Ee||(p=""),h=.2,_=!0),A&&(U===""?j=0:Me(U,B)&&(Ee||(U=""),j=.2,G=!0)),r._meta?p=Sb.templateString(p,r._meta):n._meta&&(p=Sb.templateString(p,n._meta));var Ne=p||U||Ee,Fe;c||(c=Sb.ensureSingle(n._infolayer,"g","g-"+t),Fe=n._hColorbarMoveTitle);var ye=c.selectAll("text."+t).data(Ne?[0]:[]);ye.enter().append("text"),ye.text(p).attr("class",t),ye.exit().remove();var Ve=null,ce=t+"-subtitle",Ke=U||Ee;if(A&&(Ve=c.selectAll("text."+ce).data(Ke?[0]:[]),Ve.enter().append("text"),Ve.text(U).attr("class",ce),Ve.exit().remove()),!Ne)return c;function nt(Tt,St){Sb.syncOrAsync([gt,Nt],{title:Tt,subtitle:St})}function gt(Tt){var St=Tt.title,Rt=Tt.subtitle,Zt;!f&&Fe&&(f={}),f?(Zt="",f.rotate&&(Zt+="rotate("+[f.rotate,l.x,l.y]+")"),(f.offset||Fe)&&(Zt+=rse(0,(f.offset||0)-(Fe||0)))):Zt=null,St.attr("transform",Zt);function Et(Ue){if(Ue){var rt=k3.select(Ue.node().parentNode).select("."+ce);if(!rt.empty()){var $e=Ue.node().getBBox();if($e.height){var zt=$e.y+$e.height+rN*W;rt.attr("y",zt)}}}}if(St.style("opacity",h*lP.opacity(E)).call(sP.font,{color:lP.rgb(E),size:k3.round(k,2),family:v,weight:T,style:L,variant:x,textcase:C,shadow:m,lineposition:M}).attr(l).call(C3.convertToTspans,e,Et),Rt&&!Rt.empty()){var Ae=c.select("."+t+"-math-group"),at=St.node().getBBox(),wt=Ae.node()?Ae.node().getBBox():void 0,vt=wt?wt.y+wt.height+rN*W:at.y+at.height+iN*W,st=Sb.extendFlat({},l,{y:vt});Rt.attr("transform",Zt),Rt.style("opacity",j*lP.opacity(re)).call(sP.font,{color:lP.rgb(re),size:k3.round(W,2),family:N,weight:ae,style:be,variant:Pe,textcase:Ce,shadow:te,lineposition:de}).attr(st).call(C3.convertToTspans,e)}return gst.previousPromises(e)}function Nt(Tt){var St=Tt.title,Rt=k3.select(St.node().parentNode);if(u&&u.selection&&u.side&&p){Rt.attr("transform",null);var Zt=_st[u.side],Et=u.side==="left"||u.side==="top"?-1:1,Ae=yst(u.pad)?u.pad:2,at=sP.bBox(Rt.node()),wt={t:0,b:0,l:0,r:0},vt=e._fullLayout._reservedMargin;for(var st in vt)for(var Ue in vt[st]){var rt=vt[st][Ue];wt[Ue]=Math.max(wt[Ue],rt)}var $e={left:wt.l,top:wt.t,right:n.width-wt.r,bottom:n.height-wt.b},zt=u.maxShift||Et*($e[u.side]-at[u.side]),Yt=0;if(zt<0)Yt=zt;else{var hr=u.offsetLeft||0,yr=u.offsetTop||0;at.left-=hr,at.right-=hr,at.top-=yr,at.bottom-=yr,u.selection.each(function(){var Ut=sP.bBox(this);Sb.bBoxIntersect(at,Ut,Ae)&&(Yt=Math.max(Yt,Et*(Ut[u.side]-at[Zt])+Ae))}),Yt=Math.min(zt,Yt),i._titleScoot=Math.abs(Yt)}if(Yt>0||zt<0){var br={left:[-Yt,0],right:[Yt,0],top:[0,-Yt],bottom:[0,Yt]}[u.side];Rt.attr("transform",rse(br[0],br[1]))}}}ye.call(nt,Ve);function it(Tt,St){Tt.text(St).on("mouseover.opacity",function(){k3.select(this).transition().duration(ise.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){k3.select(this).transition().duration(ise.HIDE_PLACEHOLDER).style("opacity",0)})}if(Ee&&(p?ye.on(".opacity",null):(it(ye,o),_=!0),ye.call(C3.makeEditable,{gd:e}).on("edit",function(Tt){s!==void 0?tN.call("_guiRestyle",e,a,Tt,s):tN.call("_guiRelayout",e,a,Tt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(nt)}).on("input",function(Tt){this.text(Tt||" ").call(C3.positionText,l.x,l.y)}),A)){if(A&&!p){var Ye=ye.node().getBBox(),kt=Ye.y+Ye.height+iN*W;Ve.attr("y",kt)}U?Ve.on(".opacity",null):(it(Ve,B),G=!0),Ve.call(C3.makeEditable,{gd:e}).on("edit",function(Tt){tN.call("_guiRelayout",e,"title.subtitle.text",Tt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(nt)}).on("input",function(Tt){this.text(Tt||" ").call(C3.positionText,Ve.attr("x"),Ve.attr("y"))})}return ye.classed("js-placeholder",_),Ve&&!Ve.empty()&&Ve.classed("js-placeholder",G),c}ase.exports={draw:xst,SUBTITLE_PADDING_EM:iN,SUBTITLE_PADDING_MATHJAX_EM:rN}});var gy=Te((_ar,fse)=>{"use strict";var bst=Jl(),wst=e3().utcFormat,Mc=ei(),Ast=Mc.numberFormat,my=ku(),n_=Mc.cleanNumber,Tst=Mc.ms2DateTime,ose=Mc.dateTime2ms,yy=Mc.ensureNumber,sse=Mc.isArrayOrTypedArray,a_=nf(),uP=a_.FP_SAFE,wm=a_.BADNUM,Sst=a_.LOG_CLIP,Mst=a_.ONEWEEK,fP=a_.ONEDAY,cP=a_.ONEHOUR,lse=a_.ONEMIN,use=a_.ONESEC,hP=Wc(),vP=dd(),dP=vP.HOUR_PATTERN,pP=vP.WEEKDAY_PATTERN;function r5(e){return Math.pow(10,e)}function nN(e){return e!=null}fse.exports=function(t,r){r=r||{};var n=t._id||"x",i=n.charAt(0);function a(T,L){if(T>0)return Math.log(T)/Math.LN10;if(T<=0&&L&&t.range&&t.range.length===2){var x=t.range[0],C=t.range[1];return .5*(x+C-2*Sst*Math.abs(x-C))}else return wm}function o(T,L,x,C){if((C||{}).msUTC&&my(T))return+T;var M=ose(T,x||t.calendar);if(M===wm)if(my(T)){T=+T;var m=Math.floor(Mc.mod(T+.05,1)*10),P=Math.round(T-m/10);M=ose(new Date(P))+m/10}else return wm;return M}function s(T,L,x){return Tst(T,L,x||t.calendar)}function u(T){return t._categories[Math.round(T)]}function l(T){if(nN(T)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[T]!==void 0)return t._categoriesMap[T];t._categories.push(typeof T=="number"?String(T):T);var L=t._categories.length-1;return t._categoriesMap[T]=L,L}return wm}function f(T,L){for(var x=new Array(L),C=0;Ct.range[1]&&(x=!x);for(var C=x?-1:1,M=C*T,m=0,P=0;PB)m=P+1;else{m=M<(A+B)/2?P:P+1;break}}var F=t._B[m]||0;return isFinite(F)?p(T,t._m2,F):0},v=function(T){var L=t._rangebreaks.length;if(!L)return _(T,t._m,t._b);for(var x=0,C=0;Ct._rangebreaks[C].pmax&&(x=C+1);return _(T,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:yy,t.l2c=t.type==="log"?r5:yy,t.l2p=b,t.p2l=v,t.c2p=t.type==="log"?function(T,L){return b(a(T,L))}:b,t.p2c=t.type==="log"?function(T){return r5(v(T))}:v,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=n_,t.c2d=t.c2r=t.l2d=t.l2r=yy,t.d2p=t.r2p=function(T){return t.l2p(n_(T))},t.p2d=t.p2r=v,t.cleanPos=yy):t.type==="log"?(t.d2r=t.d2l=function(T,L){return a(n_(T),L)},t.r2d=t.r2c=function(T){return r5(n_(T))},t.d2c=t.r2l=n_,t.c2d=t.l2r=yy,t.c2r=a,t.l2d=r5,t.d2p=function(T,L){return t.l2p(t.d2r(T,L))},t.p2d=function(T){return r5(v(T))},t.r2p=function(T){return t.l2p(n_(T))},t.p2r=v,t.cleanPos=yy):t.type==="date"?(t.d2r=t.r2d=Mc.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(T,L,x){return t.l2p(o(T,0,x))},t.p2d=t.p2r=function(T,L,x){return s(v(T),L,x)},t.cleanPos=function(T){return Mc.cleanDate(T,wm,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=l,t.r2d=t.c2d=t.l2d=u,t.d2r=t.d2l_noadd=h,t.r2c=function(T){var L=d(T);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=yy,t.r2l=d,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return u(v(T))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(T){return typeof T=="string"&&T!==""?T:yy(T)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=u,t.d2r=t.d2l_noadd=h,t.r2c=function(T){var L=h(T);return L!==void 0?L:t.fraction2r(.5)},t.r2c_just_indices=c,t.l2r=t.c2r=yy,t.r2l=h,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return u(v(T))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(T){return Array.isArray(T)||typeof T=="string"&&T!==""?T:yy(T)},t.setupMultiCategory=function(T){var L=t._traceIndices,x,C,M=t._matchGroup;if(M&&t._categories.length===0){for(var m in M)if(m!==n){var P=r[hP.id2name(m)];L=L.concat(P._traceIndices)}}var A=[[0,{}],[0,{}]],B=[];for(x=0;xP[1]&&(C[m?0:1]=x),C[0]===C[1]){var A=t.l2r(L),B=t.l2r(x);if(L!==void 0){var F=A+1;x!==void 0&&(F=Math.min(F,B)),C[m?1:0]=F}if(x!==void 0){var U=B+1;L!==void 0&&(U=Math.max(U,A)),C[m?0:1]=U}}}},t.cleanRange=function(T,L){t._cleanRange(T,L),t.limitRange(T)},t._cleanRange=function(T,L){L||(L={}),T||(T="range");var x=Mc.nestedProperty(t,T).get(),C,M;if(t.type==="date"?M=Mc.dfltRange(t.calendar):i==="y"?M=vP.DFLTRANGEY:t._name==="realaxis"?M=[0,1]:M=L.dfltRange||vP.DFLTRANGEX,M=M.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(M[0]=0),!x||x.length!==2){Mc.nestedProperty(t,T).set(M);return}var m=x[0]===null,P=x[1]===null;for(t.type==="date"&&!t.autorange&&(x[0]=Mc.cleanDate(x[0],wm,t.calendar),x[1]=Mc.cleanDate(x[1],wm,t.calendar)),C=0;C<2;C++)if(t.type==="date"){if(!Mc.isDateTime(x[C],t.calendar)){t[T]=M;break}if(t.r2l(x[0])===t.r2l(x[1])){var A=Mc.constrain(t.r2l(x[0]),Mc.MIN_MS+1e3,Mc.MAX_MS-1e3);x[0]=t.l2r(A-1e3),x[1]=t.l2r(A+1e3);break}}else{if(!my(x[C]))if(!(m||P)&&my(x[1-C]))x[C]=x[1-C]*(C?10:.1);else{t[T]=M;break}if(x[C]<-uP?x[C]=-uP:x[C]>uP&&(x[C]=uP),x[0]===x[1]){var B=Math.max(1,Math.abs(x[0]*1e-6));x[0]-=B,x[1]+=B}}},t.setScale=function(T){var L=r._size;if(t.overlaying){var x=hP.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain}var C=T&&t._r?"_r":"range",M=t.calendar;t.cleanRange(C);var m=t.r2l(t[C][0],M),P=t.r2l(t[C][1],M),A=i==="y";if(A?(t._offset=L.t+(1-t.domain[1])*L.h,t._length=L.h*(t.domain[1]-t.domain[0]),t._m=t._length/(m-P),t._b=-t._m*P):(t._offset=L.l+t.domain[0]*L.w,t._length=L.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-m),t._b=-t._m*m),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var B,F;if(t._rangebreaks=t.locateBreaks(Math.min(m,P),Math.max(m,P)),t._rangebreaks.length){for(B=0;BP&&(U=!U),U&&t._rangebreaks.reverse();var G=U?-1:1;for(t._m2=G*t._length/(Math.abs(P-m)-t._lBreaks),t._B.push(-t._m2*(A?P:m)),B=0;BM&&(M+=7,mM&&(M+=24,m=C&&m=C&&T=te.min&&(bete.max&&(te.max=Pe),Ce=!1)}Ce&&P.push({min:be,max:Pe})}};for(x=0;x{"use strict";var cse=ku(),aN=ei(),Est=nf().BADNUM,mP=aN.isArrayOrTypedArray,kst=aN.isDateTime,Cst=aN.cleanNumber,hse=Math.round;pse.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(mP(i)&&!i.length)return"-";if(!a&&Rst(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function dse(e){return Math.max(1,(e-1)/1e3)}function Ist(e,t){for(var r=e.length,n=dse(r),i=0,a=0,o={},s=0;si*2}function Rst(e){return mP(e[0])&&mP(e[1])}});var Am=Te((bar,wse)=>{"use strict";var Dst=Jl(),gse=ku(),o_=ei(),yP=nf().FP_SAFE,Fst=$l(),Bst=Mu(),_se=Wc(),Ost=_se.getFromId,qst=_se.isLinked;wse.exports={applyAutorangeOptions:bse,getAutoRange:oN,makePadFn:sN,doAutoRange:Ust,findExtremes:Vst,concatExtremes:fN};function oN(e,t){var r,n,i=[],a=e._fullLayout,o=sN(a,t,0),s=sN(a,t,1),u=fN(e,t),l=u.min,f=u.max;if(l.length===0||f.length===0)return o_.simpleMap(t.range,t.r2l);var c=l[0].val,h=f[0].val;for(r=1;r0&&(P=E-o(x)-s(C),P>T?A/P>L&&(M=x,m=C,L=A/P):A/E>L&&(M={val:x.val,nopad:1},m={val:C.val,nopad:1},L=A/E));function B(H,N){return Math.max(H,s(N))}if(c===h){var F=c-1,U=c+1;if(v)if(c===0)i=[0,1];else{var G=(c>0?f:l).reduce(B,0),j=c/(1-Math.min(.5,G/E));i=c>0?[0,j]:[j,0]}else k?i=[Math.max(0,F),Math.max(1,U)]:i=[F,U]}else v?(M.val>=0&&(M={val:0,nopad:1}),m.val<=0&&(m={val:0,nopad:1})):k&&(M.val-L*o(M)<0&&(M={val:0,nopad:1}),m.val<=0&&(m={val:1,nopad:1})),L=(m.val-M.val-vse(t,x.val,C.val))/(E-o(M)-s(m)),i=[M.val-L*o(M),m.val+L*s(m)];return i=bse(i,t),t.limitRange&&t.limitRange(),p&&i.reverse(),o_.simpleMap(i,t.l2r||Number)}function vse(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),x=T((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),C=T(r.vpadplus||r.vpad),M=T(r.vpadminus||r.vpad);if(!l){if(k=1/0,E=-1/0,u)for(c=0;c0&&(k=h),h>E&&h-yP&&(k=h),h>E&&h=A;c--)P(c);return{min:n,max:i,opts:r}}function lN(e,t,r,n){xse(e,t,r,n,Gst)}function uN(e,t,r,n){xse(e,t,r,n,Hst)}function xse(e,t,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,u=0;u=r&&(l.extrapad||!o)){s=!1;break}else i(t,l.val)&&l.pad<=r&&(o||!l.extrapad)&&(e.splice(u,1),u--)}if(s){var f=a&&t===0;e.push({val:t,pad:f?0:r,extrapad:f?!1:o})}}function yse(e){return gse(e)&&Math.abs(e)=t}function Wst(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&gP(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&gP(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function jst(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&gP(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&gP(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function gP(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=u&&(a=u,r=u),o<=u&&(o=u,n=u)}}return r=Wst(r,t),n=jst(n,t),[r,n]}});var wu=Te((war,Wse)=>{"use strict";var w0=Jl(),Fh=ku(),P3=Cc(),n5=$l(),Ou=ei(),z3=Ou.strTranslate,Eb=Xf(),Xst=Mb(),a5=jl(),Xv=Mu(),Zst=Dd(),Ase=Rq(),Qd=nf(),Yst=Qd.ONEMAXYEAR,bP=Qd.ONEAVGYEAR,wP=Qd.ONEMINYEAR,Kst=Qd.ONEMAXQUARTER,pN=Qd.ONEAVGQUARTER,AP=Qd.ONEMINQUARTER,Jst=Qd.ONEMAXMONTH,I3=Qd.ONEAVGMONTH,TP=Qd.ONEMINMONTH,Zv=Qd.ONEWEEK,Fp=Qd.ONEDAY,s_=Fp/2,xy=Qd.ONEHOUR,o5=Qd.ONEMIN,SP=Qd.ONESEC,$st=Qd.ONEMILLI,Qst=Qd.ONEMICROSEC,kb=Qd.MINUS_SIGN,EP=Qd.BADNUM,vN={K:"zeroline"},mN={K:"gridline",L:"path"},yN={K:"minor-gridline",L:"path"},Rse={K:"tick",L:"path"},Tse={K:"tick",L:"text"},Sse={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},kP=Qh(),i5=kP.MID_SHIFT,Cb=kP.CAP_SHIFT,s5=kP.LINE_SPACING,elt=kP.OPPOSITE_SIDE,MP=3,al=Wse.exports={};al.setConvert=gy();var tlt=L3(),Tg=Wc(),rlt=Tg.idSort,ilt=Tg.isLinked;al.id2name=Tg.id2name;al.name2id=Tg.name2id;al.cleanId=Tg.cleanId;al.list=Tg.list;al.listIds=Tg.listIds;al.getFromId=Tg.getFromId;al.getFromTrace=Tg.getFromTrace;var Dse=Am();al.getAutoRange=Dse.getAutoRange;al.findExtremes=Dse.findExtremes;var nlt=1e-4;function bN(e){var t=(e[1]-e[0])*nlt;return[e[0]-t,e[1]+t]}al.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],u=n+"ref",l={};return i||(i=s[0]||(typeof a=="string"?a:a[0])),a||(a=i),s=s.concat(s.map(function(f){return f+" domain"})),l[u]={valType:"enumerated",values:s.concat(a?typeof a=="string"?[a]:a:[]),dflt:i},Ou.coerce(e,t,l,u)};al.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};al.coercePosition=function(e,t,r,n,i,a){var o,s,u=al.getRefType(n);if(u!=="range")o=Ou.ensureNumber,s=r(i,a);else{var l=al.getFromId(t,n);a=l.fraction2r(a),s=r(i,a),o=l.cleanPos}e[i]=o(s)};al.cleanPosition=function(e,t,r){var n=r==="paper"||r==="pixel"?Ou.ensureNumber:al.getFromId(t,r).cleanPos;return n(e)};al.redrawComponents=function(e,t){t=t||al.listIds(e);var r=e._fullLayout;function n(i,a,o,s){for(var u=n5.getComponentMethod(i,a),l={},f=0;f2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};al.saveRangeInitial=function(e,t){for(var r=al.list(e,"",!0),n=!1,i=0;ic*.3||l(n)||l(i))){var h=r.dtick/2;e+=e+ho){var s=Number(r.substr(1));a.exactYears>o&&s%12===0?e=al.tickIncrement(e,"M6","reverse")+Fp*1.5:a.exactMonths>o?e=al.tickIncrement(e,"M1","reverse")+Fp*15.5:e-=s_;var u=al.tickIncrement(e,r);if(u<=n)return u}return e}al.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var n=t.dtick&&Fh(t._tmin),i;if(n){var a=al.tickIncrement(t._tmin,t.dtick,!0);i=[t._tmin,a*.99+t._tmin*.01]}else{var o=Ou.simpleMap(t.range,t.r2l);i=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Ou.simpleMap(i,t.l2r),e._isMinor=!0,al.prepTicks(e,r),n){var s=Fh(t.dtick),u=Fh(e.dtick),l=s?t.dtick:+t.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);s&&u?cN(l,f)?l===2*Zv&&f===2*Fp&&(e.dtick=Zv):l===2*Zv&&f===3*Fp?e.dtick=Zv:l===Zv&&!(t._input.minor||{}).nticks?e.dtick=Fp:kse(l/f,2.5)?e.dtick=l/2:e.dtick=l:String(t.dtick).charAt(0)==="M"?u?e.dtick="M1":cN(l,f)?l>=12&&f===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?cN(l,f)||(e.dtick=kse(l/f,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function cN(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function kse(e,t){return Math.abs(e/t-1)<.001}al.prepTicks=function(e,t){var r=Ou.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,i;n||(e.type==="category"||e.type==="multicategory"?(i=e.tickfont?Ou.bigFont(e.tickfont.size||12):15,n=e._length/i):(i=e._id.charAt(0)==="y"?40:80,n=Ou.constrain(e._length/i,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,al.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=n-1,o=n):(a=n,o=n);var s=e[a].value,u=e[o].value,l=Math.abs(u-s),f=r||l,c=0;f>=wP?l>=wP&&l<=Yst?c=l:c=bP:r===pN&&f>=AP?l>=AP&&l<=Kst?c=l:c=pN:f>=TP?l>=TP&&l<=Jst?c=l:c=I3:r===Zv&&f>=Zv?c=Zv:f>=Fp?c=Fp:r===s_&&f>=s_?c=s_:r===xy&&f>=xy&&(c=xy);var h;c>=l&&(c=l,h=!0);var d=i+c;if(t.rangebreaks&&c>0){for(var p=84,_=0,b=0;bZv&&(c=l)}(c>0||n===0)&&(e[n].periodX=i+c/2)}}al.calcTicks=function(t,r){for(var n=t.type,i=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],u=!t.ticklabelindex||Ou.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],l=Ou.simpleMap(t.range,t.r2l,void 0,void 0,r),f=l[1]=(E?0:1);T--){var L=!T;T?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var x=T?t:Ou.extendFlat({},t,t.minor);if(L?al.prepMinorTicks(x,t,r):al.prepTicks(x,r),x.tickmode==="array"){T?(b=[],p=Cse(t,!L)):(v=[],_=Cse(t,!L));continue}if(x.tickmode==="sync"){b=[],p=flt(t);continue}var C=bN(l),M=C[0],m=C[1],P=Fh(x.dtick),A=n==="log"&&!(P||x.dtick.charAt(0)==="L"),B=al.tickFirst(x,r);if(T){if(t._tmin=B,B=m:U<=m;U=al.tickIncrement(U,H,f,i)){if(T&&G++,x.rangebreaks&&!f){if(U=h)break}if(b.length>d||U===F)break;F=U;var N={value:U};T?(A&&U!==(U|0)&&(N.simpleLabel=!0),a>1&&G%a&&(N.skipLabel=!0),b.push(N)):(N.minor=!0,v.push(N))}}if(!v||v.length<2)u=!1;else{var W=(v[1].value-v[0].value)*(s?-1:1);Dlt(W,t.tickformat)||(u=!1)}if(!u)k=b;else{var re=b.concat(v);o&&b.length&&(re=re.slice(1)),re=re.sort(function(kt,Tt){return kt.value-Tt.value}).filter(function(kt,Tt,St){return Tt===0||kt.value!==St[Tt-1].value});var ae=re.map(function(kt,Tt){return kt.minor===void 0&&!kt.skipLabel?Tt:null}).filter(function(kt){return kt!==null});ae.forEach(function(kt){u.map(function(Tt){var St=kt+Tt;St>=0&&St-1;Ne--){if(b[Ne].drop){b.splice(Ne,1);continue}b[Ne].value=dN(b[Ne].value,t);var ce=t.c2p(b[Ne].value);(Fe?Ve>ce-ye:Veh||Rth&&(St.periodX=h),Rti&&hbP)t/=bP,n=i(10),e.dtick="M"+12*_y(t,n,_P);else if(a>I3)t/=I3,e.dtick="M"+_y(t,1,Lse);else if(a>Fp){if(e.dtick=_y(t,Fp,e._hasDayOfWeekBreaks?[1,2,7,14]:clt),!r){var o=al.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Ou.dateTick0(e.calendar,2):e.tick0=Ou.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>xy?e.dtick=_y(t,xy,Lse):a>o5?e.dtick=_y(t,o5,Pse):a>SP?e.dtick=_y(t,SP,Pse):(n=i(10),e.dtick=_y(t,n,_P))}else if(e.type==="log"){e.tick0=0;var u=Ou.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(u[1]-u[0])<1){var l=1.5*Math.abs((u[1]-u[0])/t);t=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/l,n=i(10),e.dtick="L"+_y(t,n,_P)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):SN(e)?(e.tick0=0,n=1,e.dtick=_y(t,n,hlt)):(e.tick0=0,n=i(10),e.dtick=_y(t,n,_P));if(e.dtick===0&&(e.dtick=1),!Fh(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function qse(e){var t=e.dtick;if(e._tickexponent=0,!Fh(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if(String(t).charAt(0)==="M")i>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=Fp&&i<=10||t>=Fp*15)e._tickround="d";else if(t>=o5&&i<=16||t>=xy)e._tickround="M";else if(t>=SP&&i<=19||t>=o5)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(Fh(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);Fh(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),u=Math.floor(Math.log(s)/Math.LN10+.01),l=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>l&&(R3(e.exponentformat)&&e.exponentformat!=="SI extended"&&!wN(u)||R3(e.exponentformat)&&e.exponentformat==="SI extended"&&!AN(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}al.tickIncrement=function(e,t,r,n){var i=r?-1:1;if(Fh(t))return Ou.increment(e,i*t);var a=t.charAt(0),o=i*Number(t.substr(1));if(a==="M")return Ou.incrementMonth(e,o,n);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?Ose:Bse,u=e+i*.01,l=Ou.roundUp(Ou.mod(u,1),s,r);return Math.floor(u)+Math.log(w0.round(Math.pow(10,l),1))/Math.LN10}throw"unrecognized dtick "+String(t)};al.tickFirst=function(e,t){var r=e.r2l||Number,n=Ou.simpleMap(e.range,r,void 0,void 0,t),i=n[1]=0&&v<=e._length?b:null};if(a&&Ou.isArrayOrTypedArray(e.ticktext)){var c=Ou.simpleMap(e.range,e.r2l),h=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(l=0;l"+s;else{var l=u5(e),f=e._trueSide||e.side;(!l&&f==="top"||l&&f==="bottom")&&(o+="
")}t.text=o}function plt(e,t,r,n,i){var a=e.dtick,o=t.x,s=e.tickformat,u=typeof a=="string"&&a.charAt(0);if(i==="never"&&(i=""),n&&u!=="L"&&(a="L3",u="L"),s||u==="L")t.text=l5(Math.pow(10,o),e,i,n);else if(Fh(a)||u==="D"&&(e.minorloglabels==="complete"||Ou.mod(o+.01,1)<.1)){var l;e.minorloglabels==="complete"&&!(Ou.mod(o+.01,1)<.1)&&(l=!0,t.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),p=e.exponentformat;p==="power"||R3(p)&&p!=="SI extended"&&wN(h)||R3(p)&&p==="SI extended"&&AN(h)?(t.text=c[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":kb)+d+""),t.fontSize*=1.25):(p==="e"||p==="E")&&d>2?t.text=c[0]+p+(h>0?"+":kb)+d:(t.text=l5(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(u==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Ou.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var _=String(t.text).charAt(0);(_==="0"||_==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function vlt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function mlt(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=i[1]===void 0?"":String(i[1]),o=i[0]===void 0?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function ylt(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=l5(t.x,e,i,n)}function glt(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=_lt(a);if(o[1]>=100)t.text=l5(Ou.deg2rad(t.x),e,i,n);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=kb+t.text)}}}else t.text=l5(t.x,e,i,n)}function _lt(e){function t(s,u){return Math.abs(s-u)<=1e-6}function r(s,u){return t(u,0)?s:r(u,s%u)}function n(s){for(var u=1;!t(Math.round(s*u)/u,s);)u*=10;return u}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}var Use=["f","p","n","\u03BC","m","","k","M","G","T"],xlt=["q","r","y","z","a",...Use,"P","E","Z","Y","R","Q"],R3=e=>["SI","SI extended","B"].includes(e);function wN(e){return e>14||e<-15}function AN(e){return e>32||e<-30}function blt(e,t){return R3(t)?!!(t==="SI extended"&&AN(e)||t!=="SI extended"&&wN(e)):!1}function l5(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,u=al.getTickFormat(t),l=t.separatethousands;if(n){var f={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Fh(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};qse(f),a=(Number(f._tickround)||0)+4,s=f._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,kb);var c=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+p+"":o==="B"&&s===9?e+="B":R3(o)&&(e+=o==="SI extended"?xlt[s/3+10]:Use[s/3+5])}return i?kb+e:e}al.getTickFormat=function(e){var t;function r(u){return typeof u!="string"?u:Number(u.replace("M",""))*I3}function n(u,l){var f=["L","D"];if(typeof u==typeof l){if(typeof u=="number")return u-l;var c=f.indexOf(u.charAt(0)),h=f.indexOf(l.charAt(0));return c===h?Number(u.replace(/(L|D)/g,""))-Number(l.replace(/(L|D)/g,"")):c-h}else return typeof u=="number"?1:-1}function i(u,l,f){var c=f||function(p){return p},h=l[0],d=l[1];return(!h&&typeof h!="number"||c(h)<=c(u))&&(!d&&typeof d!="number"||c(d)>=c(u))}function a(u,l){var f=l[0]===null,c=l[1]===null,h=n(u,l[0])>=0,d=n(u,l[1])<=0;return(f||h)&&(c||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&i.unshift(i.splice(f,1).shift())}});var s={false:{left:0,right:0}};return Ou.syncOrAsync(i.map(function(u){return function(){if(u){var l=al.getFromId(e,u);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var f=al.drawOne(e,l,r);return l._shiftPusher&&xN(l,l._fullDepth||0,s,!0),l._r=l.range.slice(),l._rl=Ou.simpleMap(l._r,l.r2l),f}}}))};al.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},i=r.overlayingShiftedAx||[],a,o,s;t.setScale();var u=e._fullLayout,l=t._id,f=l.charAt(0),c=al.counterLetter(l),h=u._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||i.indexOf(t._id)!==-1||i.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var p=t.linewidth/2||0;t.ticks==="inside"&&(p+=t.ticklen),xN(t,p,n,!0),xN(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Rlt(t,n));var _=h[f+"axislayer"],b=t._mainLinePosition,v=b+=t._shift,k=t._mainMirrorPosition,E=t._vals=al.calcTicks(t),T=[t.mirror,v,k].join("_");for(a=0;a0?Rt.bottom-Tt:0,St))));var at=0,wt=0;if(t._shiftPusher&&(at=Math.max(St,Rt.height>0?Ye==="l"?Tt-Rt.left:Rt.right-Tt:0),t.title.text!==u._dfltTitle[f]&&(wt=(t._titleStandoff||0)+(t._titleScoot||0),Ye==="l"&&(wt+=Ise(t))),t._fullDepth=Math.max(at,wt)),t.automargin){Zt={x:0,y:0,r:0,l:0,t:0,b:0};var vt=[0,1],st=typeof t._shift=="number"?t._shift:0;if(f==="x"){if(Ye==="b"?Zt[Ye]=t._depth:(Zt[Ye]=t._depth=Math.max(Rt.width>0?Tt-Rt.top:0,St),vt.reverse()),Rt.width>0){var Ue=Rt.right-(t._offset+t._length);Ue>0&&(Zt.xr=1,Zt.r=Ue);var rt=t._offset-Rt.left;rt>0&&(Zt.xl=0,Zt.l=rt)}}else if(Ye==="l"?(t._depth=Math.max(Rt.height>0?Tt-Rt.left:0,St),Zt[Ye]=t._depth-st):(t._depth=Math.max(Rt.height>0?Rt.right-Tt:0,St),Zt[Ye]=t._depth+st,vt.reverse()),Rt.height>0){var $e=Rt.bottom-(t._offset+t._length);$e>0&&(Zt.yb=0,Zt.b=$e);var zt=t._offset-Rt.top;zt>0&&(Zt.yt=1,Zt.t=zt)}Zt[c]=t.anchor==="free"?t.position:t._anchorAxis.domain[vt[0]],t.title.text!==u._dfltTitle[f]&&(Zt[Ye]+=Ise(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Et={x:0,y:0,r:0,l:0,t:0,b:0},Et[kt]=t.linewidth,t.mirror&&t.mirror!==!0&&(Et[kt]+=St),t.mirror===!0||t.mirror==="ticks"?Et[c]=t._anchorAxis.domain[vt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Et[c]=[t._counterDomainMin,t._counterDomainMax][vt[1]]))}it&&(Ae=n5.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(zse(Zt,t.automargin),zse(Et,t.automargin)),P3.autoMargin(e,TN(t),Zt),P3.autoMargin(e,Gse(t),Et),P3.autoMargin(e,Hse(t),Ae)}),Ou.syncOrAsync(gt)}};function zse(e,t){if(e){var r=Object.keys(Sse).reduce(function(n,i){return t.indexOf(i)!==-1&&Sse[i].forEach(function(a){n[a]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function wlt(e,t){var r=[],n,i=function(a,o){var s=a.xbnd[o];s!==null&&r.push(Ou.extendFlat({},a,{x:s}))};if(t.length){for(n=0;ne.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!s;if(r){var l=o?-1:1;r=r*l}if(n){var f=e.side,c=s&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*c}return e._id.charAt(0)==="x"?function(h){return z3(i+e._offset+e.l2p(gN(h))+r,a+n)}:function(h){return z3(a+n,i+e._offset+e.l2p(gN(h))+r)}};function gN(e){return e.periodX!==void 0?e.periodX:e.x}function Mlt(e){var t=e.ticklabelposition||"",r=e.tickson||"",n=function(p){return t.indexOf(p)!==-1},i=n("top"),a=n("left"),o=n("right"),s=n("bottom"),u=n("inside"),l=r!=="boundaries"&&(s||a||i||o);if(!l&&!u)return[0,0];var f=e.side,c=l?(e.tickwidth||0)/2:0,h=MP,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(c+=d*Cb,h+=(e.linewidth||0)/2),(a||o)&&(c+=(e.linewidth||0)/2,h+=MP),u&&f==="top"&&(h-=d*(1-Cb)),(a||i)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[l?c:0,u?h:0]}al.makeTickPath=function(e,t,r,n){n||(n={});var i=n.minor;if(i&&!e.minor)return"";var a=n.len!==void 0?n.len:i?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};al.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(F){return n.indexOf(F)!==-1},o=a("top"),s=a("left"),u=a("right"),l=a("bottom"),f=i!=="boundaries"&&(l||s||o||u),c=a("inside"),h=n==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&i!=="boundaries",d=0,p=0,_=h?e.ticklen:0;if(c?_*=-1:f&&(_=0),h&&(d+=_,r)){var b=Ou.deg2rad(r);d=_*Math.cos(b)+1,p=_*Math.sin(b)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var v={labelStandoff:d,labelShift:p},k,E,T,L,x=0,C=e.side,M=e._id.charAt(0),m=e.tickangle,P;if(M==="x")P=!c&&C==="bottom"||c&&C==="top",L=P?1:-1,c&&(L*=-1),k=p*L,E=t+d*L,T=P?1:-.2,Math.abs(m)===90&&(c?T+=i5:m===-90&&C==="bottom"?T=Cb:m===90&&C==="top"?T=i5:T=.5,x=i5/2*(m/90)),v.xFn=function(F){return F.dx+k+x*F.fontSize},v.yFn=function(F){return F.dy+E+F.fontSize*T},v.anchorFn=function(F,U){if(f){if(s)return"end";if(u)return"start"}return!Fh(U)||U===0||U===180?"middle":U*L<0!==c?"end":"start"},v.heightFn=function(F,U,G){return U<-60||U>60?-.5*G:e.side==="top"!==c?-G:0};else if(M==="y"){if(P=!c&&C==="left"||c&&C==="right",L=P?1:-1,c&&(L*=-1),k=d,E=p*L,T=0,!c&&Math.abs(m)===90&&(m===-90&&C==="left"||m===90&&C==="right"?T=Cb:T=.5),c){var A=Fh(m)?+m:0;if(A!==0){var B=Ou.deg2rad(A);x=Math.abs(Math.sin(B))*Cb*L,T=0}}v.xFn=function(F){return F.dx+t-(k+F.fontSize*T)*L+x*F.fontSize},v.yFn=function(F){return F.dy+E+F.fontSize*i5},v.anchorFn=function(F,U){return Fh(U)&&Math.abs(U)===90?"middle":P?"end":"start"},v.heightFn=function(F,U,G){return e.side==="right"&&(U*=-1),U<-30?-G:U<30?-.5*G:0}}return v};function CP(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}al.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+n).data(i,CP);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return a5.stroke(w0.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Xv.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),LP(t,[Rse]),a.attr("transform",r.transFn)};al.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?r.vals.filter(function(v){return v.minor}):[],o=t.showgrid?r.vals.filter(function(v){return!v.minor}):[],s=r.counterAxis;if(s&&al.shouldShowZeroLine(e,t,s))for(var u=t.tickmode==="array",l=0;l=0;p--){var _=p?h:d;if(_){var b=_.selectAll("path."+n).data(p?o:a,CP);b.exit().remove(),b.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(v){return a5.stroke(w0.select(this),v.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(v){return Xv.dashStyle(v.minor?t.minor.griddash:t.griddash,v.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(v){return(v.minor?c:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}LP(t,[mN,yN])}};al.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=al.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return rlt(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(a5.stroke,t.zerolinecolor||a5.defaultLine).style("stroke-width",Xv.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),LP(t,[vN])};al.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,i=t._id,a=t.zerolinelayer==="above traces",o=r.cls||i+"tick",s=r.vals.filter(function(W){return W.text}),u=r.labelFns,l=r.secondary?0:t.tickangle,f=(t._prevTickAngles||{})[o],c=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],CP),h=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(W){var re=w0.select(this),ae=e._promises.length;re.call(Eb.positionText,u.xFn(W),u.yFn(W)).call(Xv.font,{family:W.font,size:W.fontSize,color:W.fontColor,weight:W.fontWeight,style:W.fontStyle,variant:W.fontVariant,textcase:W.fontTextcase,lineposition:W.fontLineposition,shadow:W.fontShadow}).text(W.text).call(Eb.convertToTspans,e),e._promises[ae]?h.push(e._promises.pop().then(function(){d(re,l)})):d(re,l)}),LP(t,[Tse]),c.exit().remove(),r.repositionOnUpdate&&c.each(function(W){w0.select(this).select("text").call(Eb.positionText,u.xFn(W),u.yFn(W))});function d(W,re){W.each(function(ae){var be=w0.select(this),Pe=be.select(".text-math-group"),Ce=u.anchorFn(ae,re),de=r.transFn.call(be.node(),ae)+(Fh(re)&&+re!=0?" rotate("+re+","+u.xFn(ae)+","+(u.yFn(ae)-ae.fontSize/2)+")":""),te=Eb.lineCount(be),ke=s5*ae.fontSize,Ee=u.heightFn(ae,Fh(re)?+re:0,(te-1)*ke);if(Ee&&(de+=z3(0,Ee)),Pe.empty()){var Me=be.select("text");Me.attr({transform:de,"text-anchor":Ce}),Me.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Ne=Xv.bBox(Pe.node()).width,Fe=Ne*{end:-.5,start:.5}[Ce];Pe.attr("transform",de+z3(Fe,0))}})}t._adjustTickLabelsOverflow=function(){var W=t.ticklabeloverflow;if(!(!W||W==="allow")){var re=W.indexOf("hide")!==-1,ae=t._id.charAt(0)==="x",be=0,Pe=ae?e._fullLayout.width:e._fullLayout.height;if(W.indexOf("domain")!==-1){var Ce=Ou.simpleMap(t.range,t.r2l);be=t.l2p(Ce[0])+t._offset,Pe=t.l2p(Ce[1])+t._offset}var de=Math.min(be,Pe),te=Math.max(be,Pe),ke=t.side,Ee=1/0,Me=-1/0;c.each(function(Ve){var ce=w0.select(this),Ke=ce.select(".text-math-group");if(Ke.empty()){var nt=Xv.bBox(ce.node()),gt=0;ae?(nt.right>te||nt.leftte||nt.top+(t.tickangle?0:Ve.fontSize/4)t["_visibleLabelMin_"+Ce._id]?ce.style("display","none"):te.K==="tick"&&!de&&ce.node().style.display!=="none"&&ce.style("display",null)})})})})},d(c,f+1?f:l);function p(){return h.length&&Promise.all(h)}var _=null;function b(){if(d(c,l),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){_=t.autotickangles[0];var W=0,re=[],ae,be=1;c.each(function(Zt){W=Math.max(W,Zt.fontSize);var Et=t.l2p(Zt.x),Ae=_N(this),at=Xv.bBox(Ae.node());be=Math.max(be,Eb.lineCount(Ae)),re.push({top:0,bottom:10,height:10,left:Et-at.width/2,right:Et+at.width/2+2,width:at.width+2})});var Pe=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Ce=s.length,de=Math.abs((s[Ce-1].x-s[0].x)*t._m)/(Ce-1),te=Pe?de/2:de,ke=Pe?t.ticklen:W*1.25*be,Ee=Math.sqrt(Math.pow(te,2)+Math.pow(ke,2)),Me=te/Ee,Ne=t.autotickangles.map(function(Zt){return Zt*Math.PI/180}),Fe=Ne.find(function(Zt){return Math.abs(Math.cos(Zt))<=Me});Fe===void 0&&(Fe=Ne.reduce(function(Zt,Et){return Math.abs(Math.cos(Zt))j*G&&(B=G,m[M]=P[M]=F[M])}var H=Math.abs(B-A);H-L>0?(H-=L,L*=1+L/H):L=0,t._id.charAt(0)!=="y"&&(L=-L),m[C]=E.p2r(E.r2p(P[C])+x*L),E.autorange==="min"||E.autorange==="max reversed"?(m[0]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0):(E.autorange==="max"||E.autorange==="min reversed")&&(m[1]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[E._name+".range"]=m}var N=Ou.syncOrAsync(v);return N&&N.then&&e._promises.push(N),N};function Elt(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,CP);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(a5.stroke,t.dividercolor).style("stroke-width",Xv.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}al.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),i=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:n==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),i==="top"||i==="left")return a._offset;if(i==="bottom"||i==="right")return a._offset+a._length};function Ise(e){var t=e.title.font.size,r=(e.title.text.match(Eb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(Cb+r*s5):r?t*(r+1)*s5:t}function klt(e,t){var r=e._fullLayout,n=t._id,i=n.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(Eb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*Cb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(i5+s*s5));else{var u=u5(t);if(t.type==="multicategory")o=t._depth;else{var l=1.5*a;u&&(l=.5*a,t.ticks==="outside"&&(l+=t.ticklen)),o=10+l+(t.linewidth?t.linewidth-1:0)}u||(i==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var f=al.getPxPosition(e,t),c,h,d;i==="x"?(h=t._offset+t._length/2,d=t.side==="top"?f-o:f+o):(d=t._offset+t._length/2,h=t.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(t.type!=="multicategory"){var _=t._selections[t._id+"tick"];if(p={selection:_,side:t.side},_&&_.node()&&_.node().parentNode){var b=Xv.getTranslate(_.node().parentNode);p.offsetLeft=b.x,p.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return t._titleStandoff=o,Xst.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:p,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}al.shouldShowZeroLine=function(e,t,r){var n=Ou.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===EP)&&(Vse(t,0)||!Clt(e,t,r,n)||Llt(e,t))};al.clipEnds=function(e,t){return t.filter(function(r){return Vse(e,r.x)})};function Vse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=Qst:/%L/.test(t)?e>=$st:/%[SX]/.test(t)?e>=SP:/%M/.test(t)?e>=o5:/%[HI]/.test(t)?e>=xy:/%p/.test(t)?e>=s_:/%[Aadejuwx]/.test(t)?e>=Fp:/%[UVW]/.test(t)?e>=Zv:/%[Bbm]/.test(t)?e>=TP:/%[q]/.test(t)?e>=AP:/%[Yy]/.test(t)?e>=wP:!0}});var MN=Te((Aar,jse)=>{"use strict";jse.exports=function(t,r,n){var i,a;if(n){var o=r==="reversed"||r==="min reversed"||r==="max reversed";i=n[o?1:0],a=n[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?i:void 0),u=t("autorangeoptions.maxallowed",i===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),u===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var EN=Te((Tar,Xse)=>{"use strict";var Flt=MN();Xse.exports=function(t,r,n,i){var a=r._template||{},o=r.type||a.type||"-";n("minallowed"),n("maxallowed");var s=n("range");if(!s){var u;!i.noInsiderange&&o!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(r.insiderange=!1,u=void 0),u&&(s=n("range",u)))}var l=r.getAutorangeDflt(s,i),f=n("autorange",l),c;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(f==="reversed"||f===!0)||s[0]!==null&&(f==="min"||f==="max reversed")||s[1]!==null&&(f==="max"||f==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,c=!0),c||(l=r.getAutorangeDflt(s,i),f=n("autorange",l)),f&&(Flt(n,f,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var Yse=Te((Sar,Zse)=>{var Blt={left:0,top:0};Zse.exports=Olt;function Olt(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=qlt(t);return r[0]=n-a.left,r[1]=i-a.top,r}function qlt(e){return e===window||e===document||e===document.body?Blt:e.getBoundingClientRect()}});var PP=Te((Mar,Kse)=>{"use strict";var Nlt=uq();function Ult(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}Kse.exports=Nlt&&Ult()});var $se=Te((Ear,Jse)=>{"use strict";Jse.exports=function(t,r,n,i,a){var o=(t-n)/(i-n),s=o+r/(i-n),u=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?u:a==="right"||a==="top"?s:o<2/3-u?o:s>4/3-u?s:u}});var tle=Te((kar,ele)=>{"use strict";var Qse=ei(),Vlt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];ele.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=Qse.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=Qse.constrain(Math.floor(r*3),0,2),Vlt[r][t]}});var ile=Te((Car,rle)=>{"use strict";var Glt=m3(),Hlt=DL(),Wlt=OM().getGraphDiv,jlt=RM(),kN=rle.exports={};kN.wrapped=function(e,t,r){e=Wlt(e),e._fullLayout&&Hlt.clear(e._fullLayout._uid+jlt.HOVERID),kN.raw(e,t,r)};kN.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&Glt.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&i&&t.emit("plotly_unhover",{event:r,points:i}))}});var xp=Te((Lar,sle)=>{"use strict";var Xlt=Yse(),CN=cq(),Zlt=PP(),Ylt=ei().removeElement,Klt=dd(),Lb=sle.exports={};Lb.align=$se();Lb.getCursor=tle();var ale=ile();Lb.unhover=ale.wrapped;Lb.unhoverRaw=ale.raw;Lb.init=function(t){var r=t.gd,n=1,i=r._context.doubleClickDelay,a=t.element,o,s,u,l,f,c,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=b,Zlt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function p(E,T,L){return Math.abs(E)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var T;c.target===h?T=c:(T={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(L=>{var x=c[L];!T[L]&&typeof x!="function"&&(T[L]=x)})),t.clickFn&&t.clickFn(n,T),d||h.dispatchEvent(new MouseEvent("click",E))}r._dragging=!1,r._dragged=!1}};function ole(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Lb.coverSlip=ole;function nle(e){return Xlt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Tm=Te((Par,lle)=>{"use strict";lle.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)}});var cle=Te((zar,fle)=>{"use strict";var LN=Tm(),f5="data-savedcursor",ule="!!";fle.exports=function(t,r){var n=t.attr(f5);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var PN=gc(),Jlt=Rh();hle.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Jlt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:PN({editType:"legend"}),grouptitlefont:PN({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:PN({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var IP=Te(zP=>{"use strict";zP.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};zP.isVertical=function(t){return t.orientation!=="h"};zP.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var DN=Te((Dar,dle)=>{"use strict";var IN=$l(),Yv=ei(),$lt=Pf(),Qlt=Gf(),eut=zN(),tut=s3(),RN=IP();function rut(e,t,r,n){var i=t[e]||{},a=$lt.newContainer(r,e);function o(H,N){return Yv.coerce(i,a,eut,H,N)}var s=Yv.coerceFont(o,"font",r.font);o("bgcolor",r.paper_bgcolor),o("bordercolor");var u=o("visible");if(u){for(var l,f=function(H,N){var W=l._input,re=l;return Yv.coerce(W,re,Qlt,H,N)},c=r.font||{},h=Yv.coerceFont(o,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,_="normal",b=(r.shapes||[]).filter(function(H){return H.showlegend}),v=n.concat(b).filter(function(H){return e===(H.legend||"legend")}),k=0;k(e==="legend"?1:0));if(T===!1&&(r[e]=void 0),!(T===!1&&!i.uirevision)&&(o("uirevision",r.uirevision),T!==!1)){o("borderwidth");var L=o("orientation"),x=o("yref"),C=o("xref"),M=L==="h",m=x==="paper",P=C==="paper",A,B,F,U="left";M?(A=0,IN.getComponentMethod("rangeslider","isVisible")(t.xaxis)?m?(B=1.1,F="bottom"):(B=1,F="top"):m?(B=-.1,F="top"):(B=0,F="bottom")):(B=1,F="auto",P?A=1.02:(A=1,U="right")),Yv.coerce(i,a,{x:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:A}},"x"),Yv.coerce(i,a,{y:{valType:"number",editType:"legend",min:m?-2:0,max:m?3:1,dflt:B}},"y"),o("traceorder",_),RN.isGrouped(r[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",U),o("yanchor",F),o("maxheight"),o("valign"),Yv.noneOrAll(i,a,["x","y"]);var G=o("title.text");if(G){o("title.side",M?"left":"top");var j=Yv.extendFlat({},s,{size:Yv.bigFont(s.size)});Yv.coerceFont(o,"title.font",j)}}}}dle.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var D3=$l(),BN=ei(),iut=BN.pushUnique,FN=!0;ple.exports=function(t,r,n){var i=r._fullLayout;if(r._dragged||r._editing)return;var a=i.legend.itemclick,o=i.legend.itemdoubleclick,s=i.legend.groupclick;n===1&&a==="toggle"&&o==="toggleothers"&&FN&&r.data&&r._context.showTips&&BN.notifier(BN._(r,"Double-click on legend to isolate one trace"),"long"),FN=!1;var u;if(n===1?u=a:n===2&&(u=o),!u)return;var l=s==="togglegroup",f=i.hiddenlabels?i.hiddenlabels.slice():[],c=t.data()[0][0];if(c.groupTitle&&c.noClick)return;var h=r._fullData,d=(i.shapes||[]).filter(function(kt){return kt.showlegend}),p=h.concat(d),_=c.trace;_._isShape&&(_=_._fullInput);var b=_.legendgroup,v,k,E,T,L,x,C={},M=[],m=[],P=[];function A(kt,Tt){var St=M.indexOf(kt),Rt=C.visible;return Rt||(Rt=C.visible=[]),M.indexOf(kt)===-1&&(M.push(kt),St=M.length-1),Rt[St]=Tt,St}var B=(i.shapes||[]).map(function(kt){return kt._input}),F=!1;function U(kt,Tt){B[kt].visible=Tt,F=!0}function G(kt,Tt){if(!(c.groupTitle&&!l)){var St=kt._fullInput||kt,Rt=St._isShape,Zt=St.index;Zt===void 0&&(Zt=St._index);var Et=St.visible===!1?!1:Tt;Rt?U(Zt,Et):A(Zt,Et)}}var j=_.legend,H=_._fullInput,N=H&&H._isShape;if(!N&&D3.traceIs(_,"pie-like")){var W=c.label,re=f.indexOf(W);if(u==="toggle")re===-1?f.push(W):f.splice(re,1);else if(u==="toggleothers"){var ae=re!==-1,be=[];for(v=0;v{"use strict";mle.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var _le=Te((Oar,gle)=>{"use strict";var yle=$l(),qN=IP();gle.exports=function(t,r,n){var i=r._inHover,a=qN.isGrouped(r),o=qN.isReversed(r),s={},u=[],l=!1,f={},c=0,h=0,d,p;function _(H,N,W){if(r.visible!==!1&&!(n&&H!==r._id))if(N===""||!qN.isGrouped(r)){var re="~~i"+c;u.push(re),s[re]=[W],c++}else u.indexOf(N)===-1?(u.push(N),l=!0,s[N]=[W]):s[N].push(W)}for(d=0;dP&&(m=P)}C[d][0]._groupMinRank=m,C[d][0]._preGroupSort=d}var A=function(H,N){return H[0]._groupMinRank-N[0]._groupMinRank||H[0]._preGroupSort-N[0]._preGroupSort},B=function(H,N){return H.trace.legendrank-N.trace.legendrank||H._preSort-N._preSort};for(C.forEach(function(H,N){H[0]._preGroupSort=N}),C.sort(A),d=0;d{"use strict";var RP=ei();function xle(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Pb.formatPiePercent=function(t,r){var n=xle((t*100).toPrecision(3));return RP.numSeparate(n,r)+"%"};Pb.formatPieValue=function(t,r){var n=xle(t.toPrecision(10));return RP.numSeparate(n,r)};Pb.getFirstFilled=function(t,r){if(RP.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var nut=Mu(),aut=jl();ble.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?nut.pointStyle(t,n,i,r):aut.fill(t,r.color)}});var F3=Te((Uar,Sle)=>{"use strict";var Ale=jl(),Tle=l_().castOption,out=wle();Sle.exports=function(t,r,n,i){var a=n.marker.line,o=Tle(a.color,r.pts)||Ale.defaultLine,s=Tle(a.width,r.pts)||0;t.call(out,r,n,i).style("stroke-width",s).call(Ale.stroke,o)}});var GN=Te((Var,Ple)=>{"use strict";var Bp=Jl(),NN=$l(),bp=ei(),Mle=bp.strTranslate,Kv=Mu(),A0=jl(),UN=yp().extractOpts,DP=lc(),sut=F3(),lut=l_().castOption,uut=ON(),Ele=12,kle=5,zb=2,fut=10,B3=5;Ple.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+uut.itemGap*2)/2,u=Mle(s,0),l=function(C,M,m,P){var A;if(C+1)A=C;else if(M&&M.width>0)A=M.width;else return 0;return a?P:Math.min(A,m)};t.each(function(C){var M=Bp.select(this),m=bp.ensureSingle(M,"g","layers");m.style("opacity",C[0].trace.opacity);var P=n.indentation,A=n.valign,B=C[0].lineHeight,F=C[0].height;if(A==="middle"&&P===0||!B||!F)m.attr("transform",null);else{var U={top:1,bottom:-1}[A],G=U*(.5*(B-F+3))||0,j=n.indentation;m.attr("transform",Mle(j,G))}var H=m.selectAll("g.legendfill").data([C]);H.enter().append("g").classed("legendfill",!0);var N=m.selectAll("g.legendlines").data([C]);N.enter().append("g").classed("legendlines",!0);var W=m.selectAll("g.legendsymbols").data([C]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([C]).enter().append("g").classed("legendpoints",!0)}).each(x).each(h).each(p).each(d).each(b).each(T).each(E).each(f).each(c).each(v).each(k);function f(C){var M=Cle(C),m=M.showFill,P=M.showLine,A=M.showGradientLine,B=M.showGradientFill,F=M.anyFill,U=M.anyLine,G=C[0],j=G.trace,H,N,W=UN(j),re=W.colorscale,ae=W.reversescale,be=function(Me){if(Me.size())if(m)Kv.fillGroupStyle(Me,r,!0);else{var Ne="legendfill-"+j.uid;Kv.gradient(Me,r,Ne,VN(ae),re,"fill")}},Pe=function(Me){if(Me.size()){var Ne="legendline-"+j.uid;Kv.lineGroupStyle(Me),Kv.gradient(Me,r,Ne,VN(ae),re,"stroke")}},Ce=DP.hasMarkers(j)||!F?"M5,0":U?"M5,-2":"M5,-3",de=Bp.select(this),te=de.select(".legendfill").selectAll("path").data(m||B?[C]:[]);if(te.enter().append("path").classed("js-fill",!0),te.exit().remove(),te.attr("d",Ce+"h"+o+"v6h-"+o+"z").call(be),P||A){var ke=l(void 0,j.line,fut,kle);N=bp.minExtend(j,{line:{width:ke}}),H=[bp.minExtend(G,{trace:N})]}var Ee=de.select(".legendlines").selectAll("path").data(P||A?[H]:[]);Ee.enter().append("path").classed("js-line",!0),Ee.exit().remove(),Ee.attr("d",Ce+(A?"l"+o+",0.0001":"h"+o)).call(P?Kv.lineGroupStyle:Pe)}function c(C){var M=Cle(C),m=M.anyFill,P=M.anyLine,A=M.showLine,B=M.showMarker,F=C[0],U=F.trace,G=!B&&!P&&!m&&DP.hasText(U),j,H;function N(te,ke,Ee,Me){var Ne=bp.nestedProperty(U,te).get(),Fe=bp.isArrayOrTypedArray(Ne)&&ke?ke(Ne):Ne;if(a&&Fe&&Me!==void 0&&(Fe=Me),Ee){if(FeEe[1])return Ee[1]}return Fe}function W(te){return F._distinct&&F.index&&te[F.index]?te[F.index]:te[0]}if(B||G||A){var re={},ae={};if(B){re.mc=N("marker.color",W),re.mx=N("marker.symbol",W),re.mo=N("marker.opacity",bp.mean,[.2,1]),re.mlc=N("marker.line.color",W),re.mlw=N("marker.line.width",bp.mean,[0,5],zb),ae.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var be=N("marker.size",bp.mean,[2,16],Ele);re.ms=be,ae.marker.size=be}A&&(ae.line={width:N("line.width",W,[0,10],kle)}),G&&(re.tx="Aa",re.tp=N("textposition",W),re.ts=10,re.tc=N("textfont.color",W),re.tf=N("textfont.family",W),re.tw=N("textfont.weight",W),re.ty=N("textfont.style",W),re.tv=N("textfont.variant",W),re.tC=N("textfont.textcase",W),re.tE=N("textfont.lineposition",W),re.tS=N("textfont.shadow",W)),j=[bp.minExtend(F,re)],H=bp.minExtend(U,ae),H.selectedpoints=null,H.texttemplate=null}var Pe=Bp.select(this).select("g.legendpoints"),Ce=Pe.selectAll("path.scatterpts").data(B?j:[]);Ce.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),Ce.exit().remove(),Ce.call(Kv.pointStyle,H,r),B&&(j[0].mrc=3);var de=Pe.selectAll("g.pointtext").data(G?j:[]);de.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),de.exit().remove(),de.selectAll("text").call(Kv.textPointStyle,H,r)}function h(C){var M=C[0].trace,m=M.type==="waterfall";if(C[0]._distinct&&m){var P=C[0].trace[C[0].dir].marker;return C[0].mc=P.color,C[0].mlw=P.line.width,C[0].mlc=P.line.color,_(C,this,"waterfall")}var A=[];M.visible&&m&&(A=C[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var B=Bp.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(A);B.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(F){var U=Bp.select(this),G=M[F[0]].marker,j=l(void 0,G.line,B3,zb);U.attr("d",F[1]).style("stroke-width",j+"px").call(A0.fill,G.color),j&&U.call(A0.stroke,G.line.color)})}function d(C){_(C,this)}function p(C){_(C,this,"funnel")}function _(C,M,m){var P=C[0].trace,A=P.marker||{},B=A.line||{},F=A.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",U=m?P.visible&&P.type===m:NN.traceIs(P,"bar"),G=Bp.select(M).select("g.legendpoints").selectAll("path.legend"+m).data(U?[C]:[]);G.enter().append("path").classed("legend"+m,!0).attr("d",F).attr("transform",u),G.exit().remove(),G.each(function(j){var H=Bp.select(this),N=j[0],W=l(N.mlw,A.line,B3,zb);H.style("stroke-width",W+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var ae=UN(A),be=ae.mid;be===void 0&&(be=(ae.max+ae.min)/2),re=Kv.tryColorscale(A,"")(be)}var Pe=re||N.mc||A.color,Ce=A.pattern,de=Kv.getPatternAttr,te=Ce&&(de(Ce.shape,0,"")||de(Ce.path,0,""));if(te){var ke=de(Ce.bgcolor,0,null),Ee=de(Ce.fgcolor,0,null),Me=Ce.fgopacity,Ne=Lle(Ce.size,8,10),Fe=Lle(Ce.solidity,.5,1),ye="legend-"+P.uid;H.call(Kv.pattern,"legend",r,ye,te,Ne,Fe,re,Ce.fillmode,ke,Ee,Me)}else H.call(A0.fill,Pe);W&&A0.stroke(H,N.mlc||B.color)})}function b(C){var M=C[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendbox").data(M.visible&&NN.traceIs(M,"box-violin")?[C]:[]);m.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),m.exit().remove(),m.each(function(){var P=Bp.select(this);if((M.boxpoints==="all"||M.points==="all")&&A0.opacity(M.fillcolor)===0&&A0.opacity((M.line||{}).color)===0){var A=bp.minExtend(M,{marker:{size:a?Ele:bp.constrain(M.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});m.call(Kv.pointStyle,A,r)}else{var B=l(void 0,M.line,B3,zb);P.style("stroke-width",B+"px").call(A0.fill,M.fillcolor),B&&A0.stroke(P,M.line.color)}})}function v(C){var M=C[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(M.visible&&M.type==="candlestick"?[C,C]:[]);m.enter().append("path").classed("legendcandle",!0).attr("d",function(P,A){return A?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),m.exit().remove(),m.each(function(P,A){var B=Bp.select(this),F=M[A?"increasing":"decreasing"],U=l(void 0,F.line,B3,zb);B.style("stroke-width",U+"px").call(A0.fill,F.fillcolor),U&&A0.stroke(B,F.line.color)})}function k(C){var M=C[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(M.visible&&M.type==="ohlc"?[C,C]:[]);m.enter().append("path").classed("legendohlc",!0).attr("d",function(P,A){return A?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),m.exit().remove(),m.each(function(P,A){var B=Bp.select(this),F=M[A?"increasing":"decreasing"],U=l(void 0,F.line,B3,zb);B.style("fill","none").call(Kv.dashLine,F.line.dash,U),U&&A0.stroke(B,F.line.color)})}function E(C){L(C,this,"pie")}function T(C){L(C,this,"funnelarea")}function L(C,M,m){var P=C[0],A=P.trace,B=m?A.visible&&A.type===m:NN.traceIs(A,m),F=Bp.select(M).select("g.legendpoints").selectAll("path.legend"+m).data(B?[C]:[]);if(F.enter().append("path").classed("legend"+m,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),F.exit().remove(),F.size()){var U=A.marker||{},G=l(lut(U.line.width,P.pts),U.line,B3,zb),j="pieLike",H=bp.minExtend(A,{marker:{line:{width:G}}},j),N=bp.minExtend(P,{trace:H},j);sut(F,N,H,r)}}function x(C){var M=C[0].trace,m,P=[];if(M.visible)switch(M.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],m=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],m=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],m="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],m=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],m=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],m=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],m=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],m=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],m=!1;break}var A=Bp.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);A.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),A.exit().remove(),A.each(function(B,F){var U=Bp.select(this),G=UN(M),j=G.colorscale,H=G.reversescale,N=function(be){if(be.size()){var Pe="legendfill-"+M.uid;Kv.gradient(be,r,Pe,VN(H,m==="radial"),j,"fill")}},W;if(j){if(!m){var ae=j.length;W=F===0?j[H?ae-1:0][1]:F===1?j[H?0:ae-1][1]:j[Math.floor((ae-1)/2)][1]}}else{var re=M.vertexcolor||M.facecolor||M.color;W=bp.isArrayOrTypedArray(re)?re[F]||re[0]:re}U.attr("d",B[0]),W?U.call(A0.fill,W):U.call(N)})}};function VN(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function Cle(e){var t=e[0].trace,r=t.contours,n=DP.hasLines(t),i=DP.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var u=r.coloring;u==="lines"?o=!0:n=u==="none"||u==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(u==="fill"||u==="heatmap")&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function Lle(e,t,r){return e&&bp.isArrayOrTypedArray(e)?t:e>r?r:e}});var XN=Te((Gar,Ule)=>{"use strict";var Sv=Jl(),Bh=ei(),WN=Cc(),N3=$l(),zle=m3(),HN=xp(),Oh=Mu(),BP=jl(),Ib=Xf(),Ile=vle(),td=ON(),jN=Qh(),qle=jN.LINE_SPACING,q3=jN.FROM_TL,Rle=jN.FROM_BR,Dle=_le(),cut=GN(),Fle=IP(),O3=1,hut=/^legend[0-9]*$/;Ule.exports=function(t,r){if(r)Ble(t,r);else{var n=t._fullLayout,i=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var l=Sv.select(this),f=l.attr("class"),c=f.split(" ")[0];c.match(hut)&&i.indexOf(c)===-1&&l.remove()});for(var o=0;o1)}var p=n.hiddenlabels||[];if(!s&&(!n.showlegend||!u.length))return o.selectAll("."+i).remove(),n._topdefs.select("#"+a).remove(),WN.autoMargin(e,i);var _=Bh.ensureSingle(o,"g",i,function(M){s||M.attr("pointer-events","all")}),b=Bh.ensureSingleById(n._topdefs,"clipPath",a,function(M){M.append("rect")}),v=Bh.ensureSingle(_,"rect","bg",function(M){M.attr("shape-rendering","crispEdges")});v.call(BP.stroke,r.bordercolor).call(BP.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var k=Bh.ensureSingle(_,"g","scrollbox"),E=r.title;r._titleWidth=0,r._titleHeight=0;var T;E.text?(T=Bh.ensureSingle(k,"text",i+"titletext"),T.attr("text-anchor","start").call(Oh.font,E.font).text(E.text),OP(T,k,e,r,O3)):k.selectAll("."+i+"titletext").remove();var L=Bh.ensureSingle(_,"rect","scrollbar",function(M){M.attr(td.scrollBarEnterAttrs).call(BP.fill,td.scrollBarColor)}),x=k.selectAll("g.groups").data(u);x.enter().append("g").attr("class","groups"),x.exit().remove();var C=x.selectAll("g.traces").data(Bh.identity);C.enter().append("g").attr("class","traces"),C.exit().remove(),C.style("opacity",function(M){var m=M[0].trace;return N3.traceIs(m,"pie-like")?p.indexOf(M[0].label)!==-1?.5:1:m.visible==="legendonly"?.5:1}).each(function(){Sv.select(this).call(put,e,r)}).call(cut,e,r).each(function(){s||Sv.select(this).call(vut,e,i)}),Bh.syncOrAsync([WN.previousPromises,function(){return gut(e,x,C,r)},function(){var M=n._size,m=r.borderwidth,P=r.xref==="paper",A=r.yref==="paper";if(E.text&&dut(T,r,m),!s){var B,F;P?B=M.l+M.w*r.x-q3[qP(r)]*r._width:B=n.width*r.x-q3[qP(r)]*r._width,A?F=M.t+M.h*(1-r.y)-q3[NP(r)]*r._effHeight:F=n.height*(1-r.y)-q3[NP(r)]*r._effHeight;var U=_ut(e,i,B,F);if(U)return;if(n.margin.autoexpand){var G=B,j=F;B=P?Bh.constrain(B,0,n.width-r._width):G,F=A?Bh.constrain(F,0,n.height-r._effHeight):j,B!==G&&Bh.log("Constrain "+i+".x to make legend fit inside graph"),F!==j&&Bh.log("Constrain "+i+".y to make legend fit inside graph")}Oh.setTranslate(_,B,F)}if(L.on(".drag",null),_.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var H=r._effHeight;s&&(H=r._height),v.attr({width:r._width-m,height:H-m,x:m/2,y:m/2}),Oh.setTranslate(k,0,0),b.select("rect").attr({width:r._width-2*m,height:H-2*m,x:m,y:m}),Oh.setClipUrl(k,a,e),Oh.setRect(L,0,0,0,0),delete r._scrollY}else{var N=Math.max(td.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),W=r._effHeight-N-2*td.scrollBarMargin,re=r._height-r._effHeight,ae=W/re,be=Math.min(r._scrollY||0,re);v.attr({width:r._width-2*m+td.scrollBarWidth+td.scrollBarMargin,height:r._effHeight-m,x:m/2,y:m/2}),b.select("rect").attr({width:r._width-2*m+td.scrollBarWidth+td.scrollBarMargin,height:r._effHeight-2*m,x:m,y:m+be}),Oh.setClipUrl(k,a,e),Ne(be,N,ae),_.on("wheel",function(){be=Bh.constrain(r._scrollY+Sv.event.deltaY/W*re,0,re),Ne(be,N,ae),be!==0&&be!==re&&Sv.event.preventDefault()});var Pe,Ce,de,te=function(Ke,nt,gt){var Nt=(gt-nt)/ae+Ke;return Bh.constrain(Nt,0,re)},ke=function(Ke,nt,gt){var Nt=(nt-gt)/ae+Ke;return Bh.constrain(Nt,0,re)},Ee=Sv.behavior.drag().on("dragstart",function(){var Ke=Sv.event.sourceEvent;Ke.type==="touchstart"?Pe=Ke.changedTouches[0].clientY:Pe=Ke.clientY,de=be}).on("drag",function(){var Ke=Sv.event.sourceEvent;Ke.buttons===2||Ke.ctrlKey||(Ke.type==="touchmove"?Ce=Ke.changedTouches[0].clientY:Ce=Ke.clientY,be=te(de,Pe,Ce),Ne(be,N,ae))});L.call(Ee);var Me=Sv.behavior.drag().on("dragstart",function(){var Ke=Sv.event.sourceEvent;Ke.type==="touchstart"&&(Pe=Ke.changedTouches[0].clientY,de=be)}).on("drag",function(){var Ke=Sv.event.sourceEvent;Ke.type==="touchmove"&&(Ce=Ke.changedTouches[0].clientY,be=ke(de,Pe,Ce),Ne(be,N,ae))});k.call(Me)}function Ne(Ke,nt,gt){r._scrollY=e._fullLayout[i]._scrollY=Ke,Oh.setTranslate(k,0,-Ke),Oh.setRect(L,r._width,td.scrollBarMargin+Ke*gt,td.scrollBarWidth,nt),b.select("rect").attr("y",m+Ke)}if(e._context.edits.legendPosition){var Fe,ye,Ve,ce;_.classed("cursor-move",!0),HN.init({element:_.node(),gd:e,prepFn:function(Ke){if(Ke.target!==L.node()){var nt=Oh.getTranslate(_);Ve=nt.x,ce=nt.y}},moveFn:function(Ke,nt){if(Ve!==void 0&&ce!==void 0){var gt=Ve+Ke,Nt=ce+nt;Oh.setTranslate(_,gt,Nt),Fe=HN.align(gt,r._width,M.l,M.l+M.w,r.xanchor),ye=HN.align(Nt+r._height,-r._height,M.t+M.h,M.t,r.yanchor)}},doneFn:function(){if(Fe!==void 0&&ye!==void 0){var Ke={};Ke[i+".x"]=Fe,Ke[i+".y"]=ye,N3.call("_guiRelayout",e,Ke)}},clickFn:function(Ke,nt){var gt=o.selectAll("g.traces").filter(function(){var Nt=this.getBoundingClientRect();return nt.clientX>=Nt.left&&nt.clientX<=Nt.right&&nt.clientY>=Nt.top&&nt.clientY<=Nt.bottom});gt.size()>0&&Nle(e,_,gt,Ke,nt)}})}}],e)}}function FP(e,t,r){var n=e[0],i=n.width,a=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||i)}function Nle(e,t,r,n,i){var a=r.data()[0][0].trace,o={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};a._group&&(o.group=a._group),N3.traceIs(a,"pie-like")&&(o.label=r.datum()[0].label);var s=zle.triggerHandler(e,"plotly_legendclick",o);if(n===1){if(s===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&Ile(r,e,n)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var u=zle.triggerHandler(e,"plotly_legenddoubleclick",o);u!==!1&&s!==!1&&Ile(r,e,n)}}function put(e,t,r){var n=UP(r),i=e.data()[0][0],a=i.trace,o=N3.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,u=r._maxNameLength,l,f;i.groupTitle?(l=i.groupTitle.text,f=i.groupTitle.font):(f=r.font,r.entries?l=i.text:(l=o?i.label:a.name,a._meta&&(l=Bh.templateString(l,a._meta))));var c=Bh.ensureSingle(e,"text",n+"text");c.attr("text-anchor","start").call(Oh.font,f).text(s?Ole(l,u):l);var h=r.indentation+r.itemwidth+td.itemGap*2;Ib.positionText(c,h,0),s?c.call(Ib.makeEditable,{gd:t,text:l}).call(OP,e,t,r).on("edit",function(d){this.text(Ole(d,u)).call(OP,e,t,r);var p=i.trace._fullInput||{},_={};return _.name=d,p._isShape?N3.call("_guiRelayout",t,"shapes["+a.index+"].name",_.name):N3.call("_guiRestyle",t,_,a.index)}):OP(c,e,t,r)}function Ole(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function vut(e,t,r){var n=t._context.doubleClickDelay,i,a=1,o=Bh.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(BP.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){i=new Date().getTime(),i-t._legendMouseDownTimen&&(a=Math.max(a-1,1)),Nle(t,s,e,a,Sv.event)}}))}function OP(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Ib.convertToTspans(e,r,function(){mut(t,r,n,i)})}function mut(e,t,r,n){var i=e.data()[0][0];if(!r._inHover&&i&&!i.trace.showlegend){e.remove();return}var a=e.select("g[class*=math-group]"),o=a.node(),s=UP(r);r||(r=t._fullLayout[s]);var u=r.borderwidth,l;n===O3?l=r.title.font:i.groupTitle?l=i.groupTitle.font:l=r.font;var f=l.size*qle,c,h;if(o){var d=Oh.bBox(o);c=d.height,h=d.width,n===O3?Oh.setTranslate(a,u,u+c*.75):Oh.setTranslate(a,0,c*.25)}else{var p="."+s+(n===O3?"title":"")+"text",_=e.select(p),b=Ib.lineCount(_),v=_.node();if(c=f*b,h=v?Oh.bBox(v).width:0,n===O3)r.title.side==="left"&&(h+=td.itemGap*2),Ib.positionText(_,u+td.titlePad,u+f);else{var k=td.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(k=td.itemGap,h-=r.indentation+r.itemwidth),Ib.positionText(_,k,-f*((b-1)/2-.3))}}n===O3?(r._titleWidth=h,r._titleHeight=c):(i.lineHeight=f,i.height=Math.max(c,16)+3,i.width=h)}function yut(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function gut(e,t,r,n){var i=e._fullLayout,a=UP(n);n||(n=i[a]);var o=i._size,s=Fle.isVertical(n),u=Fle.isGrouped(n),l=n.entrywidthmode==="fraction",f=n.borderwidth,c=2*f,h=td.itemGap,d=n.indentation+n.itemwidth+h*2,p=2*(f+h),_=NP(n),b=n.y<0||n.y===0&&_==="top",v=n.y>1||n.y===1&&_==="bottom",k=n.tracegroupgap,E={};let{orientation:T,yref:L}=n,{maxheight:x}=n,C=b||v||T!=="v"||L!=="paper";x||(x=C?.5:1);let M=C?i.height:o.h;n._maxHeight=Math.max(x>1?x:x*M,30);var m=0;n._width=0,n._height=0;var P=yut(n);if(s)r.each(function(Ne){var Fe=Ne[0].height;Oh.setTranslate(this,f+P[0],f+P[1]+n._height+Fe/2+h),n._height+=Fe,n._width=Math.max(n._width,Ne[0].width)}),m=d+n._width,n._width+=h+d+c,n._height+=p,u&&(t.each(function(Ne,Fe){Oh.setTranslate(this,0,Fe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var A=qP(n),B=n.x<0||n.x===0&&A==="right",F=n.x>1||n.x===1&&A==="left",U=v||b,G=i.width/2;n._maxWidth=Math.max(B?U&&A==="left"?o.l+o.w:G:F?U&&A==="right"?o.r+o.w:G:o.w,2*d);var j=0,H=0;r.each(function(Ne){var Fe=FP(Ne,n,d);j=Math.max(j,Fe),H+=Fe}),m=null;var N=0;if(u){var W=0,re=0,ae=0;t.each(function(){var Ne=0,Fe=0;Sv.select(this).selectAll("g.traces").each(function(Ve){var ce=FP(Ve,n,d),Ke=Ve[0].height;Oh.setTranslate(this,P[0],P[1]+f+h+Ke/2+Fe),Fe+=Ke,Ne=Math.max(Ne,ce),E[Ve[0].trace.legendgroup]=Ne});var ye=Ne+h;re>0&&ye+f+re>n._maxWidth?(N=Math.max(N,re),re=0,ae+=W+k,W=Fe):W=Math.max(W,Fe),Oh.setTranslate(this,re,ae),re+=ye}),n._width=Math.max(N,re)+f,n._height=ae+W+p}else{var be=r.size(),Pe=H+c+(be-1)*h=n._maxWidth&&(N=Math.max(N,ke),de=0,te+=Ce,n._height+=Ce,Ce=0),Oh.setTranslate(this,P[0]+f+de,P[1]+f+te+Fe/2+h),ke=de+ye+h,de+=Ve,Ce=Math.max(Ce,Fe)}),Pe?(n._width=de+c,n._height=Ce+p):(n._width=Math.max(N,ke)+c,n._height+=Ce+p)}}n._width=Math.ceil(Math.max(n._width+P[0],n._titleWidth+2*(f+td.titlePad))),n._height=Math.ceil(Math.max(n._height+P[1],n._titleHeight+2*(f+td.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Ee=e._context.edits,Me=Ee.legendText||Ee.legendPosition;r.each(function(Ne){var Fe=Sv.select(this).select("."+a+"toggle"),ye=Ne[0].height,Ve=Ne[0].trace.legendgroup,ce=FP(Ne,n,d);u&&Ve!==""&&(ce=E[Ve]);var Ke=Me?d:m||ce;!s&&!l&&(Ke+=h/2),Oh.setRect(Fe,0,-ye/2,Ke,ye)})}function _ut(e,t,r,n){var i=e._fullLayout,a=i[t],o=qP(a),s=NP(a),u=a.xref==="paper",l=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var f=a.y<.5?"b":"t",c=a.x<.5?"l":"r",h={r:i.width-r,l:r+a._width,b:i.height-n,t:n+a._effHeight};if(u&&l)return WN.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*q3[o],r:a._width*Rle[o],b:a._effHeight*Rle[s],t:a._effHeight*q3[s]});u?e._fullLayout._reservedMargin[t][f]=h[f]:l||a.orientation==="v"?e._fullLayout._reservedMargin[t][c]=h[c]:e._fullLayout._reservedMargin[t][f]=h[f]}function qP(e){return Bh.isRightAnchor(e)?"right":Bh.isCenterAnchor(e)?"center":"left"}function NP(e){return Bh.isBottomAnchor(e)?"bottom":Bh.isMiddleAnchor(e)?"middle":"top"}function UP(e){return e._id||"legend"}});var JN=Te(KN=>{"use strict";var Rb=Jl(),Sg=ku(),Vle=cd(),nh=ei(),xut=nh.pushUnique,ZN=nh.strTranslate,but=nh.strRotate,wut=m3(),T0=Xf(),Aut=cle(),by=Mu(),vd=jl(),VP=xp(),wy=wu(),Tut=dd().zindexSeparator,V3=$l(),Sm=iv(),Db=RM(),Sut=DN(),Mut=XN(),Kle=Db.YANGLE,YN=Math.PI*Kle/180,Eut=1/Math.sin(YN),kut=Math.cos(YN),Cut=Math.sin(YN),Uc=Db.HOVERARROWSIZE,Cf=Db.HOVERTEXTPAD,Gle={box:!0,ohlc:!0,violin:!0,candlestick:!0},Lut={scatter:!0,scattergl:!0,splom:!0};function Hle(e,t){return e.distance-t.distance}KN.hover=function(t,r,n,i){t=nh.getGraphDiv(t);var a=r.target;nh.throttle(t._fullLayout._uid+Db.HOVERID,Db.HOVERMINTIME,function(){Put(t,r,n,i,a)})};KN.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=tue(i),o=rue(i),s=t.map(function(b){var v=b._x0||b.x0||b.x||0,k=b._x1||b.x1||b.x||0,E=b._y0||b.y0||b.y||0,T=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var x=Math.min(v,k),C=Math.max(v,k),M=Math.min(E,T),m=Math.max(E,T),P=b.trace;if(V3.traceIs(P,"gl3d")){var A=i._fullLayout[P.scene]._scene.container,B=A.offsetLeft,F=A.offsetTop;x+=B,C+=B,M+=F,m+=F}L.bbox={x0:x+o,x1:C+o,y0:M+a,y1:m+a},r.inOut_bbox&&r.inOut_bbox.push(L.bbox)}else L=!1;return{color:b.color||vd.defaultLine,x0:b.x0||b.x||0,x1:b.x1||b.x||0,y0:b.y0||b.y||0,y1:b.y1||b.y||0,xLabel:b.xLabel,yLabel:b.yLabel,zLabel:b.zLabel,text:b.text,name:b.name,idealAlign:b.idealAlign,borderColor:b.borderColor,fontFamily:b.fontFamily,fontSize:b.fontSize,fontColor:b.fontColor,fontWeight:b.fontWeight,fontStyle:b.fontStyle,fontVariant:b.fontVariant,nameLength:b.nameLength,textAlign:b.textAlign,trace:b.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:b.hovertemplate||!1,hovertemplateLabels:b.hovertemplateLabels||!1,eventData:L}}),u=!1,l=$le(s,{gd:i,hovermode:"closest",rotateLabels:u,bgColor:r.bgColor||vd.background,container:Rb.select(r.container),outerContainer:r.outerContainer||r.container}),f=l.hoverLabels,c=5,h=0,d=0;f.sort(function(b,v){return b.y0-v.y0}).each(function(b,v){var k=b.y0-b.by/2;k-cC[0]._length||ce<0||ce>M[0]._length)return VP.unhoverRaw(e,t)}if(t.pointerX=Ve+C[0]._offset,t.pointerY=ce+M[0]._offset,"xval"in t?j=Sm.flat(a,t.xval):j=Sm.p2c(C,Ve),"yval"in t?H=Sm.flat(a,t.yval):H=Sm.p2c(M,ce),!Sg(j[0])||!Sg(H[0]))return nh.warn("Fx.hover failed",t,e),VP.unhoverRaw(e,t)}var gt=1/0;function Nt(Ci,nn){for(W=0;WEe&&(U.splice(0,Ee),gt=U[0].distance),c&&F!==0&&U.length===0){ke.distance=F,ke.index=!1;var yt=ae._module.hoverPoints(ke,de,te,"closest",{hoverLayer:s._hoverlayer});if(yt&&(yt=yt.filter(function(Ir){return Ir.spikeDistance<=F})),yt&&yt.length){var Vt,Wt=yt.filter(function(Ir){return Ir.xa.showspikes&&Ir.xa.spikesnap!=="hovered data"});if(Wt.length){var _r=Wt[0];Sg(_r.x0)&&Sg(_r.y0)&&(Vt=Ye(_r),(!Me.vLinePoint||Me.vLinePoint.spikeDistance>Vt.spikeDistance)&&(Me.vLinePoint=Vt))}var Lr=yt.filter(function(Ir){return Ir.ya.showspikes&&Ir.ya.spikesnap!=="hovered data"});if(Lr.length){var Ur=Lr[0];Sg(Ur.x0)&&Sg(Ur.y0)&&(Vt=Ye(Ur),(!Me.hLinePoint||Me.hLinePoint.spikeDistance>Vt.spikeDistance)&&(Me.hLinePoint=Vt))}}}}}Nt();function it(Ci,nn,ii){for(var wi=null,Gi=1/0,Bt,yt=0;yt0&&Math.abs(Ci.distance)rt-1;Ut--)br(U[Ut]);U=Yt,Rt()}var Ie=e._hoverdata,xe=[],Oe=tue(e),Re=rue(e);for(N=0;N1||U.length>1)||h==="closest"&&Ne&&U.length>1,Fr=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),di=$le(U,{gd:e,hovermode:h,rotateLabels:Mr,bgColor:Fr,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),Di=di.hoverLabels;if(Sm.isUnifiedHover(h)||(Iut(Di,Mr,s,di.commonLabelBoundingBox),eue(Di,Mr,s._invScaleX,s._invScaleY)),i&&i.tagName){var Ii=V3.getComponentMethod("annotations","hasClickToShow")(e,xe);Aut(Rb.select(i),Ii?"pointer":"")}!i||n||!Fut(e,t,Ie)||(Ie&&e.emit("plotly_unhover",{event:t,points:Ie}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:C,yaxes:M,xvals:j,yvals:H}))}function Jle(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var zut=/([\s\S]*)<\/extra>/;function $le(e,t){var r=t.gd,n=r._fullLayout,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,u=t.outerContainer,l=t.commonLabelOpts||{};if(e.length===0)return[[]];var f=t.fontFamily||Db.HOVERFONT,c=t.fontSize||Db.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,p=t.fontVariant||n.font.variant,_=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,v=t.fontShadow||n.font.shadow,k=e[0],E=k.xa,T=k.ya,L=i.charAt(0),x=L+"Label",C=k[x];if(C===void 0&&E.type==="multicategory")for(var M=0;Mn.width-Re&&(De=n.width-Re),rt.attr("d","M"+(Ie-De)+",0L"+(Ie-De+Uc)+","+Oe+Uc+"H"+Re+"v"+Oe+(Cf*2+Ut.height)+"H"+-Re+"V"+Oe+Uc+"H"+(Ie-De-Uc)+"Z"),Ie=De,W.minX=Ie-Re,W.maxX=Ie+Re,E.side==="top"?(W.minY=xe-(Cf*2+Ut.height),W.maxY=xe-Cf):(W.minY=xe+Cf,W.maxY=xe+(Cf*2+Ut.height))}else{var ct,ge,fe;T.side==="right"?(ct="start",ge=1,fe="",Ie=E._offset+E._length):(ct="end",ge=-1,fe="-",Ie=E._offset),xe=T._offset+(k.y0+k.y1)/2,$e.attr("text-anchor",ct),rt.attr("d","M0,0L"+fe+Uc+","+Uc+"V"+(Cf+Ut.height/2)+"h"+fe+(Cf*2+Ut.width)+"V-"+(Cf+Ut.height/2)+"H"+fe+Uc+"V-"+Uc+"Z"),W.minY=xe-(Cf+Ut.height/2),W.maxY=xe+(Cf+Ut.height/2),T.side==="right"?(W.minX=Ie+Uc,W.maxX=Ie+Uc+(Cf*2+Ut.width)):(W.minX=Ie-Uc-(Cf*2+Ut.width),W.maxX=Ie-Uc);var pe=Ut.height/2,dt=P-Ut.top-pe,It="clip"+n._uid+"commonlabel"+T._id,Pt;if(Ie=0?wt=Zt:Et+gt=0?wt=Et:Ae+gt=0?vt=St:Rt+Nt=0?vt=Rt:at+Nt=0,(Ue.idealAlign==="top"||!Dr)&&Mr?(fe-=dt/2,Ue.anchor="end"):Dr?(fe+=dt/2,Ue.anchor="start"):Ue.anchor="middle",Ue.crossPos=fe;else{if(Ue.pos=fe,Dr=ge+pe/2+Hr<=A,Mr=ge-pe/2-Hr>=0,(Ue.idealAlign==="left"||!Dr)&&Mr)ge-=pe/2,Ue.anchor="end";else if(Dr)ge+=pe/2,Ue.anchor="start";else{Ue.anchor="middle";var Fr=Hr/2,di=ge+Fr-A,Di=ge-Fr;di>0&&(ge-=di),Di<0&&(ge+=-Di)}Ue.crossPos=ge}xe.attr("text-anchor",Ue.anchor),Re&&Oe.attr("text-anchor",Ue.anchor),rt.attr("transform",ZN(ge,fe)+(a?but(Kle):""))}),{hoverLabels:st,commonLabelBoundingBox:W}}function Wle(e,t,r,n,i,a){var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=nh.templateString(e.name,e.trace._meta)),o=Zle(e.name,e.nameLength));var u=r.charAt(0),l=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[u+"Label"]===i?s=e[l+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o);var f=e.hovertemplate||!1;if(f){var c=e.hovertemplateLabels||e;e[u+"Label"]!==i&&(c[u+"other"]=c[u+"Val"],c[u+"otherLabel"]=c[u+"Label"]),s=nh.hovertemplateString(f,c,n._d3locale,e.eventData[0]||{},e.trace._meta),s=s.replace(zut,function(h,d){return o=Zle(d,e.nameLength),""})}return[s,o]}function Iut(e,t,r,n){var i=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,u=e.size(),l=new Array(u),f=0,c=n.minX,h=n.maxX,d=n.minY,p=n.maxY,_=function(j){return j*r._invScaleX},b=function(j){return j*r._invScaleY};e.each(function(j){var H=j[i],N=j[a],W=H._id.charAt(0)==="x",re=H.range;f===0&&re&&re[0]>re[1]!==W&&(s=-1);var ae=0,be=W?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Pe=Qle(j,t),Ce=j.anchor,de=Ce==="end"?-1:1,te,ke;if(Ce==="middle")te=j.crossPos+(W?b(Pe.y-j.by/2):_(j.bx/2+j.tx2width/2)),ke=te+(W?b(j.by):_(j.bx));else if(W)te=j.crossPos+b(Uc+Pe.y)-b(j.by/2-Uc),ke=te+b(j.by);else{var Ee=_(de*Uc+Pe.x),Me=Ee+_(de*j.bx);te=j.crossPos+Math.min(Ee,Me),ke=j.crossPos+Math.max(Ee,Me)}W?d!==void 0&&p!==void 0&&Math.min(ke,p)-Math.max(te,d)>1&&(N.side==="left"?(ae=N._mainLinePosition,be=r.width):be=N._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(ke,h)-Math.max(te,c)>1&&(N.side==="top"?(ae=N._mainLinePosition,be=r.height):be=N._mainLinePosition)}l[f++]=[{datum:j,traceIndex:j.trace.index,dp:0,pos:j.pos,posref:j.posref,size:j.by*(W?Eut:1)/2,pmin:ae,pmax:be}]}),l.sort(function(j,H){return j[0].posref-H[0].posref||s*(H[0].traceIndex-j[0].traceIndex)});var v,k,E,T,L,x,C;function M(j){var H=j[0],N=j[j.length-1];if(k=H.pmin-H.pos-H.dp+H.size,E=N.pos+N.dp+N.size-H.pmax,k>.01){for(L=j.length-1;L>=0;L--)j[L].dp+=k;v=!1}if(!(E<.01)){if(k<-.01){for(L=j.length-1;L>=0;L--)j[L].dp-=E;v=!1}if(v){var W=0;for(T=0;TH.pmax&&W++;for(T=j.length-1;T>=0&&!(W<=0);T--)x=j[T],x.pos>H.pmax-1&&(x.del=!0,W--);for(T=0;T=0;L--)j[L].dp-=E;for(T=j.length-1;T>=0&&!(W<=0);T--)x=j[T],x.pos+x.dp+x.size>H.pmax&&(x.del=!0,W--)}}}for(;!v&&o<=u;){for(o++,v=!0,T=0;T.01){for(L=P.length-1;L>=0;L--)P[L].dp+=k;for(m.push.apply(m,P),l.splice(T+1,1),C=0,L=m.length-1;L>=0;L--)C+=m[L].dp;for(E=C/m.length,L=m.length-1;L>=0;L--)m[L].dp-=E;v=!1}else T++}l.forEach(M)}for(T=l.length-1;T>=0;T--){var F=l[T];for(L=F.length-1;L>=0;L--){var U=F[L],G=U.datum;G.offset=U.dp,G.del=U.del}}}function Qle(e,t){var r=0,n=e.offset;return t&&(n*=-Cut,r=e.offset*kut),{x:r,y:n}}function Rut(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Uc+Cf),n=r+t*(e.txwidth+Cf),i=e.anchor==="middle";return i&&(r-=e.tx2width/2,n+=e.txwidth/2+Cf),{alignShift:t,textShiftX:r,text2ShiftX:n}}function eue(e,t,r,n){var i=function(o){return o*r},a=function(o){return o*n};e.each(function(o){var s=Rb.select(this);if(o.del)return s.remove();var u=s.select("text.nums"),l=o.anchor,f=l==="end"?-1:1,c=Rut(o),h=Qle(o,t),d=h.x,p=h.y,_=l==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,v;_?v="M-"+i(o.bx/2+o.tx2width/2)+","+a(p-o.by/2)+"h"+i(o.bx)+"v"+a(o.by)+"h-"+i(o.bx)+"Z":b?v="M0,0L"+i(f*Uc+d)+","+a(Uc+p)+"v"+a(o.by/2-Uc)+"h"+i(f*o.bx)+"v-"+a(o.by)+"H"+i(f*Uc+d)+"V"+a(p-Uc)+"Z":v="M"+i(f*Uc+d)+","+a(p-o.by/2)+"h"+i(f*o.bx)+"v"+a(o.by)+"h"+i(-f*o.bx)+"Z",s.select("path").attr("d",v);var k=d+c.textShiftX,E=p+o.ty0-o.by/2+Cf,T=o.textAlign||"auto";T!=="auto"&&(T==="left"&&l!=="start"?(u.attr("text-anchor","start"),k=_?-o.bx/2-o.tx2width/2+Cf:-o.bx-Cf):T==="right"&&l!=="end"&&(u.attr("text-anchor","end"),k=_?o.bx/2-o.tx2width/2-Cf:o.bx+Cf)),u.call(T0.positionText,i(k),a(E)),o.tx2width&&(s.select("text.name").call(T0.positionText,i(c.text2ShiftX+c.alignShift*Cf+d),a(p+o.ty0-o.by/2+Cf)),s.select("rect").call(by.setRect,i(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),a(p-o.by/2-1),i(o.tx2width),a(o.by+2)))})}function Dut(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Sg(h)&&h===0}var s=Array.isArray(r)?function(h,d){var p=nh.castOption(i,r,h);return o(p)?p:nh.extractOption({},n,"",d)}:function(h,d){return nh.extractOption(a,n,h,d)};function u(h,d,p){var _=s(d,p);o(_)&&(e[h]=_)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=nh.constrain(e.x0,0,e.xa._length),e.x1=nh.constrain(e.x1,0,e.xa._length),e.y0=nh.constrain(e.y0,0,e.ya._length),e.y1=nh.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:wy.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:wy.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var l=wy.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+l+" / -"+wy.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+l,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=wy.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+wy.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,t==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function jle(e,t,r){var n=r.container,i=r.fullLayout,a=i._size,o=r.event,s=!!t.hLinePoint,u=!!t.vLinePoint,l,f;if(n.selectAll(".spikeline").remove(),!!(u||s)){var c=vd.combine(i.plot_bgcolor,i.paper_bgcolor);if(s){var h=t.hLinePoint,d,p;l=h&&h.xa,f=h&&h.ya;var _=f.spikesnap;_==="cursor"?(d=o.pointerX,p=o.pointerY):(d=l._offset+h.x,p=f._offset+h.y);var b=Vle.readability(h.color,c)<1.5?vd.contrast(c):h.color,v=f.spikemode,k=f.spikethickness,E=f.spikecolor||b,T=wy.getPxPosition(e,f),L,x;if(v.indexOf("toaxis")!==-1||v.indexOf("across")!==-1){if(v.indexOf("toaxis")!==-1&&(L=T,x=d),v.indexOf("across")!==-1){var C=f._counterDomainMin,M=f._counterDomainMax;f.anchor==="free"&&(C=Math.min(C,f.position),M=Math.max(M,f.position)),L=a.l+C*a.w,x=a.l+M*a.w}n.insert("line",":first-child").attr({x1:L,x2:x,y1:p,y2:p,"stroke-width":k,stroke:E,"stroke-dasharray":by.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:L,x2:x,y1:p,y2:p,"stroke-width":k+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}v.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:T+(f.side!=="right"?k:-k),cy:p,r:k,fill:E}).classed("spikeline",!0)}if(u){var m=t.vLinePoint,P,A;l=m&&m.xa,f=m&&m.ya;var B=l.spikesnap;B==="cursor"?(P=o.pointerX,A=o.pointerY):(P=l._offset+m.x,A=f._offset+m.y);var F=Vle.readability(m.color,c)<1.5?vd.contrast(c):m.color,U=l.spikemode,G=l.spikethickness,j=l.spikecolor||F,H=wy.getPxPosition(e,l),N,W;if(U.indexOf("toaxis")!==-1||U.indexOf("across")!==-1){if(U.indexOf("toaxis")!==-1&&(N=H,W=A),U.indexOf("across")!==-1){var re=l._counterDomainMin,ae=l._counterDomainMax;l.anchor==="free"&&(re=Math.min(re,l.position),ae=Math.max(ae,l.position)),N=a.t+(1-ae)*a.h,W=a.t+(1-re)*a.h}n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:W,"stroke-width":G,stroke:j,"stroke-dasharray":by.dashStyle(l.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:W,"stroke-width":G+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}U.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:P,cy:H-(l.side!=="top"?G:-G),r:G,fill:j}).classed("spikeline",!0)}}}function Fut(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers)||i.binNumber!==a.binNumber)return!0}return!1}function Xle(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function Zle(e,t){return T0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function But(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;o{"use strict";var Out=ei(),qut=jl(),Nut=iv().isUnifiedHover;iue.exports=function(t,r,n,i){i=i||{};var a=r.legend;function o(s){i.font[s]||(i.font[s]=a?r.legend.font[s]:r.font[s])}r&&Nut(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=qut.combine(r.legend.bgcolor,r.paper_bgcolor)),i.bordercolor||(i.bordercolor=r.legend.bordercolor)):i.bgcolor||(i.bgcolor=r.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),n("hoverlabel.showarrow",i.showarrow),Out.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var aue=Te((jar,nue)=>{"use strict";var Uut=ei(),Vut=c5(),Gut=q1();nue.exports=function(t,r){function n(i,a){return Uut.coerce(t,r,Gut,i,a)}Vut(t,r,n)}});var lue=Te((Xar,sue)=>{"use strict";var oue=ei(),Hut=i3(),Wut=c5();sue.exports=function(t,r,n,i){function a(s,u){return oue.coerce(t,r,Hut,s,u)}var o=oue.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),Wut(t,r,a,o)}});var $N=Te((Zar,uue)=>{"use strict";var jut=ei(),Xut=q1();uue.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:jut.coerce(t,r,Xut,i,a)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var hue=Te((Yar,cue)=>{"use strict";var fue=ei(),Zut=q1(),Yut=$N(),Kut=c5();cue.exports=function(t,r){function n(f,c){return fue.coerce(t,r,Zut,f,c)}var i=Yut(t,r);i&&(n("hoverdistance"),n("spikedistance"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=r._has("mapbox"),s=r._has("map"),u=r._has("geo"),l=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s||u)&&l===1||(o||s)&&u&&l===2)&&(r.dragmode="pan"),Kut(t,r,n),fue.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var vue=Te((Kar,pue)=>{"use strict";var QN=ei(),due=$l();pue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(l){return function(f){return QN.coerceHoverinfo({hoverinfo:f},{_module:l._module},n)}}for(var a=0;a{"use strict";var $ut=$l(),Qut=JN().hover;mue.exports=function(t,r,n){var i=$ut.getComponentMethod("annotations","onClick")(t,t._hoverdata);n!==void 0&&Qut(t,r,n,!0);function a(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(i&&i.then?i.then(a):a(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Xc=Te(($ar,xue)=>{"use strict";var eft=Jl(),GP=ei(),tft=xp(),h5=iv(),gue=q1(),_ue=JN();xue.exports={moduleType:"component",name:"fx",constants:RM(),schema:{layout:gue},attributes:i3(),layoutAttributes:gue,supplyLayoutGlobalDefaults:aue(),supplyDefaults:lue(),supplyLayoutDefaults:hue(),calc:vue(),getDistanceFunction:h5.getDistanceFunction,getClosest:h5.getClosest,inbox:h5.inbox,quadrature:h5.quadrature,appendArrayPointValue:h5.appendArrayPointValue,castHoverOption:ift,castHoverinfo:nft,hover:_ue.hover,unhover:tft.unhover,loneHover:_ue.loneHover,loneUnhover:rft,click:yue()};function rft(e){var t=GP.isD3Selection(e)?e:eft.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function ift(e,t,r){return GP.castOption(e,t,"hoverlabel."+r)}function nft(e,t,r){function n(i){return GP.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return GP.castOption(e,r,"hoverinfo",n)}});var Mm=Te(Mg=>{"use strict";Mg.selectMode=function(e){return e==="lasso"||e==="select"};Mg.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Mg.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Mg.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Mg.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Mg.selectingOrDrawing=function(e){return Mg.freeMode(e)||Mg.rectMode(e)}});var d5=Te((eor,bue)=>{"use strict";bue.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var HP=Te((tor,wue)=>{"use strict";wue.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var jP=Te((ror,Aue)=>{"use strict";var WP=32;Aue.exports={CIRCLE_SIDES:WP,i000:0,i090:WP/4,i180:WP/2,i270:WP/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var XP=Te((ior,Sue)=>{"use strict";var aft=ei().strTranslate;function Tue(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function oft(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function sft(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return Tue(e,r[t])}}function lft(e){return aft(e.xaxis._offset,e.yaxis._offset)}Sue.exports={p2r:Tue,r2p:oft,axValue:sft,getTransform:lft}});var u_=Te(Eg=>{"use strict";var uft=QM(),kue=jP(),G3=kue.CIRCLE_SIDES,e7=kue.SQRT2,Cue=XP(),Mue=Cue.p2r,Eue=Cue.r2p,fft=[0,3,4,5,6,1,2],cft=[0,3,4,1,2];Eg.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&u{"use strict";var Lue=Wc(),Due=Mm(),hft=Due.drawMode,dft=Due.openMode,H3=jP(),Pue=H3.i000,zue=H3.i090,Iue=H3.i180,Rue=H3.i270,pft=H3.cos45,vft=H3.sin45,Fue=XP(),YP=Fue.p2r,f_=Fue.r2p,mft=Q1(),yft=mft.clearOutline,KP=u_(),gft=KP.readPaths,_ft=KP.writePaths,xft=KP.ellipseOver,bft=KP.fixDatesForPaths;function wft(e,t){if(e.length){var r=e[0][0];if(r){var n=t.gd,i=t.isActiveShape,a=t.dragmode,o=(n.layout||{}).shapes||[];if(!hft(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var Aft=Mm(),Tft=Aft.selectMode,Sft=Q1(),Mft=Sft.clearOutline,t7=u_(),Eft=t7.readPaths,kft=t7.writePaths,Cft=t7.fixDatesForPaths;que.exports=function(t,r){if(t.length){var n=t[0][0];if(n){var i=n.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,u=s.xaxis,l=s.yaxis,f=r.isActiveSelection,c=r.dragmode,h=(a.layout||{}).selections||[];if(!Tft(c)&&f!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Nue.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var c_=Te(Fd=>{"use strict";var Fb=v5(),Uue=ei(),$P=wu();Fd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Fd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Fd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Fd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Fd.extractPathCoords=function(e,t,r){var n=[],i=e.match(Fb.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.substr(1).match(Fb.paramRE);if(!(!s||s.lengthd&&(_="X"),_});return l>d&&(p=p.replace(/[\s,]*X.*/,""),Uue.log("Ignoring extra params in segment "+u)),f+p})}function m5(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var n7=Te((uor,Wue)=>{"use strict";var Pft=ei(),W3=wu(),Vue=Xf(),Gue=Mu(),zft=u_().readPaths,i7=c_(),Ift=i7.getPathString,Hue=SL(),Rft=Qh().FROM_TL;Wue.exports=function(t,r,n,i){if(i.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var s=W3.getFromId(t,n.xref),u=W3.getFromId(t,n.yref);for(var l in Hue){var f=Hue[l](n,s,u);f!==void 0&&(o[l]=f)}}a=Pft.texttemplateStringForShapes(n.label.texttemplate,{},t._fullLayout._d3locale,o)}else a=n.label.text;var c={"data-index":r},h=n.label.font,d={"data-notex":1},p=i.append("g").attr(c).classed("shape-label",!0),_=p.append("text").attr(d).classed("shape-label-text",!0).text(a),b,v,k,E;if(n.path){var T=Ift(t,n),L=zft(T,t);b=1/0,k=1/0,v=-1/0,E=-1/0;for(var x=0;x=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function Fft(e,t,r,n,i,a,o){var s=i.label.textposition,u=i.label.textangle,l=i.label.padding,f=i.type,c=Math.PI/180*a,h=Math.sin(c),d=Math.cos(c),p=i.label.xanchor,_=i.label.yanchor,b,v,k,E;if(f==="line"){s==="start"?(b=e,v=t):s==="end"?(b=r,v=n):(b=(e+r)/2,v=(t+n)/2),p==="auto"&&(s==="start"?u==="auto"?r>e?p="left":re?p="right":re?p="right":re?p="left":r{"use strict";var Bft=ei(),Oft=Bft.strTranslate,jue=xp(),Yue=Mm(),qft=Yue.drawMode,Kue=Yue.selectMode,Jue=$l(),Xue=jl(),ez=jP(),Nft=ez.i000,Uft=ez.i090,Vft=ez.i180,Gft=ez.i270,Hft=Q1(),$ue=Hft.clearOutlineControllers,o7=u_(),QP=o7.pointsOnRectangle,a7=o7.pointsOnEllipse,Wft=o7.writePaths,jft=JP().newShapes,Xft=JP().createShapeObj,Zft=r7(),Yft=n7();Que.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(a7(t[0])||n.hasText)&&s({redrawing:!0})}function s(H){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=jft(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=Zft(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&Jue.call((H||{}).redrawing?"relayout":"_guiRelayout",a,N)}var u=a._fullLayout,l=u._zoomlayer,f=n.dragmode,c=qft(f),h=Kue(f);(c||h)&&(a._fullLayout._outlining=!0),$ue(a),r.attr("d",Wft(t));var d,p,_,b,v;if(!i&&(n.isActiveShape||n.isActiveSelection)){v=Kft([],t);var k=l.append("g").attr("class","outline-controllers");P(k),j()}if(c&&n.hasText){var E=l.select(".label-temp"),T=Xft(r,n,n.dragmode);Yft(a,"label-temp",T,E)}function L(H){_=+H.srcElement.getAttribute("data-i"),b=+H.srcElement.getAttribute("data-j"),d[_][b].moveFn=x}function x(H,N){if(t.length){var W=v[_][b][1],re=v[_][b][2],ae=t[_],be=ae.length;if(QP(ae)){var Pe=H,Ce=N;if(n.isActiveSelection){var de=Zue(ae,b);de[1]===ae[b][1]?Ce=0:Pe=0}for(var te=0;te1&&!(H.length===2&&H[1][0]==="Z")&&(b===0&&(H[0][0]="M"),t[_]=H,o(),s())}}function m(H,N){if(H===2){_=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var W=t[_];!QP(W)&&!a7(W)&&M()}}function P(H){d=[];for(var N=0;N{"use strict";var $ft=Jl(),afe=$l(),efe=ei(),j3=wu(),Qft=u_().readPaths,ect=tz(),iz=n7(),ofe=Q1().clearOutlineControllers,s7=jl(),u7=Mu(),tct=Pf().arrayEditor,tfe=xp(),rfe=Tm(),Bb=v5(),Mv=c_(),l7=Mv.getPathString;ufe.exports={draw:f7,drawOne:sfe,eraseActiveShape:nct,drawLabel:iz};function f7(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;io&&Tt>s&&!it.shiftKey?tfe.getCursor(St/kt,1-Rt/Tt):"move";rfe(t,Zt),ke=Zt.split("-")[0]}}function Fe(it){rz(e)||(u&&(v=ae(r.xanchor)),l&&(k=be(r.yanchor)),r.type==="path"?A=r.path:(d=u?r.x0:ae(r.x0),p=l?r.y0:be(r.y0),_=u?r.x1:ae(r.x1),b=l?r.y1:be(r.y1)),d<_?(L=d,m="x0",x=_,P="x1"):(L=_,m="x1",x=d,P="x0"),!l&&pb?(E=p,C="y0",T=b,M="y1"):(E=b,C="y1",T=p,M="y0"),Ne(it),nt(i,r),Nt(t,r,e),te.moveFn=ke==="move"?ce:Ke,te.altKey=it.altKey)}function ye(){rz(e)||(rfe(t),gt(i),lfe(t,e,r),afe.call("_guiRelayout",e,a.getUpdateObj()))}function Ve(){rz(e)||gt(i)}function ce(it,Ye){if(r.type==="path"){var kt=function(Rt){return Rt},Tt=kt,St=kt;u?h("xanchor",r.xanchor=Pe(v+it)):(Tt=function(Zt){return Pe(ae(Zt)+it)},F&&F.type==="date"&&(Tt=Mv.encodeDate(Tt))),l?h("yanchor",r.yanchor=Ce(k+Ye)):(St=function(Zt){return Ce(be(Zt)+Ye)},G&&G.type==="date"&&(St=Mv.encodeDate(St))),h("path",r.path=ife(A,Tt,St))}else u?h("xanchor",r.xanchor=Pe(v+it)):(h("x0",r.x0=Pe(d+it)),h("x1",r.x1=Pe(_+it))),l?h("yanchor",r.yanchor=Ce(k+Ye)):(h("y0",r.y0=Ce(p+Ye)),h("y1",r.y1=Ce(b+Ye)));t.attr("d",l7(e,r)),nt(i,r),iz(e,n,r,B)}function Ke(it,Ye){if(c){var kt=function(hr){return hr},Tt=kt,St=kt;u?h("xanchor",r.xanchor=Pe(v+it)):(Tt=function(yr){return Pe(ae(yr)+it)},F&&F.type==="date"&&(Tt=Mv.encodeDate(Tt))),l?h("yanchor",r.yanchor=Ce(k+Ye)):(St=function(yr){return Ce(be(yr)+Ye)},G&&G.type==="date"&&(St=Mv.encodeDate(St))),h("path",r.path=ife(A,Tt,St))}else if(f){if(ke==="resize-over-start-point"){var Rt=d+it,Zt=l?p-Ye:p+Ye;h("x0",r.x0=u?Rt:Pe(Rt)),h("y0",r.y0=l?Zt:Ce(Zt))}else if(ke==="resize-over-end-point"){var Et=_+it,Ae=l?b-Ye:b+Ye;h("x1",r.x1=u?Et:Pe(Et)),h("y1",r.y1=l?Ae:Ce(Ae))}}else{var at=function(hr){return ke.indexOf(hr)!==-1},wt=at("n"),vt=at("s"),st=at("w"),Ue=at("e"),rt=wt?E+Ye:E,$e=vt?T+Ye:T,zt=st?L+it:L,Yt=Ue?x+it:x;l&&(wt&&(rt=E-Ye),vt&&($e=T-Ye)),(!l&&$e-rt>s||l&&rt-$e>s)&&(h(C,r[C]=l?rt:Ce(rt)),h(M,r[M]=l?$e:Ce($e))),Yt-zt>o&&(h(m,r[m]=u?zt:Pe(zt)),h(P,r[P]=u?Yt:Pe(Yt)))}t.attr("d",l7(e,r)),nt(i,r),iz(e,n,r,B)}function nt(it,Ye){(u||l)&&kt();function kt(){var Tt=Ye.type!=="path",St=it.selectAll(".visual-cue").data([0]),Rt=1;St.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Rt}).classed("visual-cue",!0);var Zt=ae(u?Ye.xanchor:efe.midRange(Tt?[Ye.x0,Ye.x1]:Mv.extractPathCoords(Ye.path,Bb.paramIsX))),Et=be(l?Ye.yanchor:efe.midRange(Tt?[Ye.y0,Ye.y1]:Mv.extractPathCoords(Ye.path,Bb.paramIsY)));if(Zt=Mv.roundPositionForSharpStrokeRendering(Zt,Rt),Et=Mv.roundPositionForSharpStrokeRendering(Et,Rt),u&&l){var Ae="M"+(Zt-1-Rt)+","+(Et-1-Rt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";St.attr("d",Ae)}else if(u){var at="M"+(Zt-1-Rt)+","+(Et-9-Rt)+"v18 h2 v-18 Z";St.attr("d",at)}else{var wt="M"+(Zt-9-Rt)+","+(Et-1-Rt)+"h18 v2 h-18 Z";St.attr("d",wt)}}}function gt(it){it.selectAll(".visual-cue").remove()}function Nt(it,Ye,kt){var Tt=Ye.xref,St=Ye.yref,Rt=j3.getFromId(kt,Tt),Zt=j3.getFromId(kt,St),Et="";Tt!=="paper"&&!Rt.autorange&&(Et+=Tt),St!=="paper"&&!Zt.autorange&&(Et+=St),u7.setClipUrl(it,Et?"clip"+kt._fullLayout._uid+Et:null,kt)}}function ife(e,t,r){return e.replace(Bb.segmentRE,function(n){var i=0,a=n.charAt(0),o=Bb.paramIsX[a],s=Bb.paramIsY[a],u=Bb.numParams[a],l=n.substr(1).replace(Bb.paramRE,function(f){return i>=u||(o[i]?f=t(f):s[i]&&(f=r(f)),i++),f});return a+l})}function ict(e,t){if(nz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){nfe(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=nfe,f7(e)}}}function nfe(e){if(nz(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(ofe(e),delete e._fullLayout._activeShapeIndex,f7(e))}}function nct(e){if(nz(e)){ofe(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var S0=$l(),ffe=Cc(),cfe=Wc(),Bf=HP(),act=az().eraseActiveShape,oz=ei(),Sf=oz._,Of=gfe.exports={};Of.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?Sf(e,"Download plot as a PNG"):Sf(e,"Download plot")},icon:Bf.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};oz.notifier(Sf(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){oz.notifier(Sf(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){oz.notifier(Sf(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Of.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Sf(e,"Edit in Chart Studio")},icon:Bf.disk,click:function(e){ffe.sendDataToCloud(e)}};Of.editInChartStudio={name:"editInChartStudio",title:function(e){return Sf(e,"Edit in Chart Studio")},icon:Bf.pencil,click:function(e){ffe.sendDataToCloud(e)}};Of.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Sf(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Bf.zoombox,click:Op};Of.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Sf(e,"Pan")},attr:"dragmode",val:"pan",icon:Bf.pan,click:Op};Of.select2d={name:"select2d",_cat:"select",title:function(e){return Sf(e,"Box Select")},attr:"dragmode",val:"select",icon:Bf.selectbox,click:Op};Of.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Sf(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Bf.lasso,click:Op};Of.drawclosedpath={name:"drawclosedpath",title:function(e){return Sf(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Bf.drawclosedpath,click:Op};Of.drawopenpath={name:"drawopenpath",title:function(e){return Sf(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Bf.drawopenpath,click:Op};Of.drawline={name:"drawline",title:function(e){return Sf(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Bf.drawline,click:Op};Of.drawrect={name:"drawrect",title:function(e){return Sf(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Bf.drawrect,click:Op};Of.drawcircle={name:"drawcircle",title:function(e){return Sf(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Bf.drawcircle,click:Op};Of.eraseshape={name:"eraseshape",title:function(e){return Sf(e,"Erase active shape")},icon:Bf.eraseshape,click:act};Of.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Sf(e,"Zoom in")},attr:"zoom",val:"in",icon:Bf.zoom_plus,click:Op};Of.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Sf(e,"Zoom out")},attr:"zoom",val:"out",icon:Bf.zoom_minus,click:Op};Of.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Sf(e,"Autoscale")},attr:"zoom",val:"auto",icon:Bf.autoscale,click:Op};Of.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Sf(e,"Reset axes")},attr:"zoom",val:"reset",icon:Bf.home,click:Op};Of.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Sf(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Bf.tooltip_basic,gravity:"ne",click:Op};Of.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Sf(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Bf.tooltip_compare,gravity:"ne",click:Op};function Op(e,t){var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=cfe.list(e,null,!0),u=a._cartesianSpikesEnabled,l,f;if(n==="zoom"){var c=i==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,p,_;for(f=0;f{"use strict";var _fe=d7(),lct=Object.keys(_fe),xfe=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],bfe=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(xfe),Z3=[],uct=function(e){if(bfe.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();Z3.indexOf(t)===-1&&Z3.push(t),Z3.indexOf(r)===-1&&Z3.push(r)}};lct.forEach(function(e){uct(_fe[e])});Z3.sort();wfe.exports={DRAW_MODES:xfe,backButtons:bfe,foreButtons:Z3}});var v7=Te((mor,Afe)=>{"use strict";var vor=p7();Afe.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var Sfe=Te((yor,Tfe)=>{"use strict";var fct=ei(),y5=jl(),cct=Pf(),hct=v7();Tfe.exports=function(t,r){var n=t.modebar||{},i=cct.newContainer(r,"modebar");function a(s,u){return fct.coerce(n,i,hct,s,u)}a("orientation"),a("bgcolor",y5.addOpacity(r.paper_bgcolor,.5));var o=y5.contrast(y5.rgb(r.modebar.bgcolor));a("color",y5.addOpacity(o,.3)),a("activecolor",y5.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var Cfe=Te((gor,kfe)=>{"use strict";var m7=Jl(),dct=ku(),lz=ei(),Mfe=HP(),pct=sL().version,vct=new DOMParser;function Efe(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ay=Efe.prototype;Ay.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this.element.setAttribute("role","toolbar"),this._uid=i,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=n.modebar,o="#"+i+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),u=this.hasLogo!==r.displaylogo,l=this.locale!==r.locale;if(this.locale=r.locale,(s||u||l)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),lz.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Ay.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var n=t.createGroup();r.forEach(function(i){var a=i.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(i);t.buttonElements.push(o),n.appendChild(o)}),t.element.appendChild(n)})};Ay.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Ay.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(r.setAttribute("data-title",n),r.setAttribute("aria-label",n)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var i=e.val;i!==void 0&&(typeof i=="function"&&(i=i(this.graphInfo)),r.setAttribute("data-val",i));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&m7.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||Mfe.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Ay.createIcon=function(e){var t=dct(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(r,"svg"),n.setAttribute("viewBox",[0,0,e.width,t].join(" ")),n.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):e.ascent!==void 0&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(i)}if(e.svg){var a=vct.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Ay.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var i=n.getAttribute("data-val")||!0,a=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",s=m7.select(n),u=function(c,h){var d=t.modebar,p=c.querySelector(".icon path");p&&(h||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(a===r){var l=!s.classed("active");s.classed("active",l),u(n,l)}}else{var f=a===null?a:lz.nestedProperty(t,a).get();s.classed("active",f===i),u(n,f===i)}})};Ay.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var gct=Wc(),Lfe=lc(),y7=$l(),_ct=iv().isUnifiedHover,xct=Cfe(),uz=d7(),bct=p7().DRAW_MODES,wct=ei().extendDeep;Pfe.exports=function(t){var r=t._fullLayout,n=t._context,i=r._modeBar;if(!n.displayModeBar&&!n.watermark){i&&(i.destroy(),delete r._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=kct(a):!n.displayModeBar&&n.watermark?o=[]:o=Act(t),i?i.update(t,o):r._modeBar=xct(t,o)};function Act(e){var t=e._fullLayout,r=e._fullData,n=e._context;function i(N,W){if(typeof W=="string"){if(W.toLowerCase()===N.toLowerCase())return!0}else{var re=W.name,ae=W._cat||W.name;if(re===N||ae===N.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=n.modeBarButtonsToAdd.concat(a.filter(function(N){for(var W=0;W1?(P=["toggleHover"],A=["resetViews"]):c?(m=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],A=["resetGeo"]):f?(P=["hoverClosest3d"],A=["resetCameraDefault3d","resetCameraLastSave3d"]):_?(m=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],A=["resetViewMapbox"]):b?(m=["zoomInMap","zoomOutMap"],P=["toggleHover"],A=["resetViewMap"]):h?P=["hoverClosestPie"]:E?(P=["hoverClosestCartesian","hoverCompareCartesian"],A=["resetViewSankey"]):P=["toggleHover"],l&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Mct(r)||L)&&(P=[]),l&&!T&&(m=["zoomIn2d","zoomOut2d","autoScale2d"],A[0]!=="resetViews"&&(A=["resetScale2d"])),f?B=["zoom3d","pan3d","orbitRotation","tableRotation"]:l&&!T||p?B=["zoom2d","pan2d"]:_||b||c?B=["pan2d"]:v&&(B=["zoom2d"]),Sct(r)&&B.push("select2d","lasso2d");var F=[],U=function(N){F.indexOf(N)===-1&&P.indexOf(N)!==-1&&F.push(N)};if(Array.isArray(s)){for(var G=[],j=0;j{"use strict";Ife.exports={moduleType:"component",name:"modebar",layoutAttributes:v7(),supplyLayoutDefaults:Sfe(),manage:zfe()}});var _7=Te((bor,Rfe)=>{"use strict";var Cct=Qh().FROM_BL;Rfe.exports=function(t,r,n){n===void 0&&(n=Cct[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*r),t.l2r(a+(i[1]-a)*r)],t.setScale()}});var qb=Te(g5=>{"use strict";var Ob=ei(),x7=Am(),Em=Wc().id2name,Lct=Dd(),Dfe=_7(),Pct=gy(),zct=nf().ALMOST_EQUAL,Ict=Qh().FROM_BL;g5.handleDefaults=function(e,t,r){var n=r.axIds,i=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,u,l,f,c,h,d,p;for(s=0;sa?r.substr(a):n.substr(i))+o}function Dct(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;ozct*p&&!k)){for(a=0;aB&&reP&&(P=re);var be=(P-m)/(2*A);c/=be,m=u.l2r(m),P=u.l2r(P),u.range=u._input.range=x{"use strict";var cz=Jl(),qp=$l(),Jv=Cc(),M0=ei(),A7=Xf(),T7=d5(),_5=jl(),Y3=Mu(),qfe=Mb(),Hfe=g7(),x5=wu(),kg=Qh(),Wfe=qb(),Fct=Wfe.enforce,Bct=Wfe.clean,Nfe=Am().doAutoRange,jfe="start",Oct="middle",Xfe="end",qct=dd().zindexSeparator;md.layoutStyles=function(e){return M0.syncOrAsync([Jv.doAutoMargin,Uct],e)};function Nct(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function Uct(e){var t=e._fullLayout,r=t._size,n=r.p,i=x5.list(e,"",!0),a,o,s,u,l,f;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(Y3.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),md.drawMainTitle(e),Hfe.manage(e),!t._has("cartesian"))return Jv.previousPromises(e);function c(Fe,ye,Ve){var ce=Fe._lw/2;if(Fe._id.charAt(0)==="x"){if(ye){if(Ve==="top")return ye._offset-n-ce}else return r.t+r.h*(1-(Fe.position||0))+ce%1;return ye._offset+ye._length+n+ce}if(ye){if(Ve==="right")return ye._offset+ye._length+n+ce}else return r.l+r.w*(Fe.position||0)+ce%1;return ye._offset-n-ce}for(a=0;a0){Wct(e,a,l,u),s.attr({x:o,y:a,"text-anchor":n,dy:Gfe(t.yanchor)}).call(A7.positionText,o,a);var f=(t.text.match(A7.BR_TAG_ALL)||[]).length;if(f){var c=kg.LINE_SPACING*f+kg.MID_SHIFT;t.y===0&&(c=-c),s.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",b)})}var h=cz.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),p=d.y+d.height,_=p+qfe.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:_,"text-anchor":n,dy:Gfe(t.yanchor)}).call(A7.positionText,o,_)}}}};function Vct(e,t,r,n,i){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=M0.isTopAnchor(t)?n:n-i,s=r==="b"?a-o:o;return M0.isTopAnchor(t)&&r==="t"||M0.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=Gct(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function Wct(e,t,r,n){var i="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},u={};a.yref==="paper"&&Vct(e,a,o,t,n)?s[o]=r:a.yref==="container"&&(u[o]=r,e._fullLayout._reservedMargin[i]=u),Jv.allowAutoMargin(e,i),Jv.autoMargin(e,i,s)}function jct(e,t){var r=e.title,n=e._size,i=0;switch(t===jfe?i=r.pad.l:t===Xfe&&(i=-r.pad.r),r.xref){case"paper":return n.l+n.w*r.x+i;case"container":default:return e.width*r.x+i}}function Xct(e,t){var r=e.title,n=e._size,i=0;if(t==="0em"||!t?i=-r.pad.b:t===kg.CAP_SHIFT+"em"&&(i=r.pad.t),r.y==="auto")return n.t/2;switch(r.yref){case"paper":return n.t+n.h-n.h*r.y+i;case"container":default:return e.height-e.height*r.y+i}}function Gfe(e){return e==="top"?kg.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":kg.MID_SHIFT+"em"}function Zct(e){var t=e.title,r=Oct;return M0.isRightAnchor(t)?r=Xfe:M0.isLeftAnchor(t)&&(r=jfe),r}function Yct(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=kg.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=kg.MID_SHIFT+"em"),r}md.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var Kct=u_().readPaths,Jct=tz(),Zfe=Q1().clearOutlineControllers,S7=jl(),Yfe=Mu(),$ct=Pf().arrayEditor,Kfe=c_(),Qct=Kfe.getPathString;$fe.exports={draw:hz,drawOne:Jfe,activateLastSelection:rht};function hz(e){var t=e._fullLayout;Zfe(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i=0;b--){var v=o.append("path").attr(u).style("opacity",b?.1:l).call(S7.stroke,c).call(S7.fill,f).call(Yfe.dashLine,b?"solid":d,b?4+h:h);if(eht(v,e,n),p){var k=$ct(e.layout,"selections",n);v.style({cursor:"move"});var E={element:v.node(),plotinfo:i,gd:e,editHelpers:k,isActiveSelection:!0},T=Kct(s,e);Jct(T,v,E)}else v.style("pointer-events",b?"all":"none");_[b]=v}var L=_[0],x=_[1];x.node().addEventListener("click",function(){return tht(e,L)})}}function eht(e,t,r){var n=r.xref+r.yref;Yfe.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function tht(e,t){if(dz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){M7(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=M7,hz(e)}}}function rht(e){if(dz(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=M7,hz(e)}}function M7(e){if(dz(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Zfe(e),delete e._fullLayout._activeSelectionIndex,hz(e))}}});var ece=Te((Sor,Qfe)=>{function iht(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}Qfe.exports=iht});var rce=Te((Mor,tce)=>{function nht(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],s=i[0],u=i[1],l=r[0],f=r[1];return(s-a)*(f-o)-(u-o)*(l-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],u=i[1]-n[1],l=s*o+a*u;if(l-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])e!=s-a>e&&(o-f)*(a-c)/(s-c)+f-i>e&&(u=!u),o=f,s=c}return u}};return t}tce.exports=nht});var nce=Te((Eor,ice)=>{var aht={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};ice.exports=aht});var oce=Te((kor,ace)=>{var w5=nce();function oht(e,t,r){function n(p,_){return{id:r?r.segmentId():-1,start:p,end:_,myFill:{above:null,below:null},otherFill:null}}function i(p,_,b){return{id:r?r.segmentId():-1,start:p,end:_,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=w5.create();function o(p,_,b,v,k,E){var T=t.pointsCompare(_,k);return T!==0?T:t.pointsSame(b,E)?0:p!==v?p?1:-1:t.pointAboveOrOnLine(b,v?k:E,v?E:k)?1:-1}function s(p,_){a.insertBefore(p,function(b){var v=o(p.isStart,p.pt,_,b.isStart,b.pt,b.other.pt);return v<0})}function u(p,_){var b=w5.node({isStart:!0,pt:p.start,seg:p,primary:_,other:null,status:null});return s(b,p.end),b}function l(p,_,b){var v=w5.node({isStart:!1,pt:_.end,seg:_,primary:b,other:p,status:null});p.other=v,s(v,p.pt)}function f(p,_){var b=u(p,_);return l(b,p,_),b}function c(p,_){r&&r.segmentChop(p.seg,_),p.other.remove(),p.seg.end=_,p.other.pt=_,s(p.other,p.pt)}function h(p,_){var b=i(_,p.seg.end,p.seg);return c(p,_),f(b,p.primary)}function d(p,_){var b=w5.create();function v(G,j){var H=G.seg.start,N=G.seg.end,W=j.seg.start,re=j.seg.end;return t.pointsCollinear(H,W,re)?t.pointsCollinear(N,W,re)||t.pointAboveOrOnLine(N,W,re)?1:-1:t.pointAboveOrOnLine(H,W,re)?1:-1}function k(G){return b.findTransition(function(j){var H=v(G,j.ev);return H>0})}function E(G,j){var H=G.seg,N=j.seg,W=H.start,re=H.end,ae=N.start,be=N.end;r&&r.checkIntersection(H,N);var Pe=t.linesIntersect(W,re,ae,be);if(Pe===!1){if(!t.pointsCollinear(W,re,ae)||t.pointsSame(W,be)||t.pointsSame(re,ae))return!1;var Ce=t.pointsSame(W,ae),de=t.pointsSame(re,be);if(Ce&&de)return j;var te=!Ce&&t.pointBetween(W,ae,be),ke=!de&&t.pointBetween(re,ae,be);if(Ce)return ke?h(j,re):h(G,be),j;te&&(de||(ke?h(j,re):h(G,be)),h(j,W))}else Pe.alongA===0&&(Pe.alongB===-1?h(G,ae):Pe.alongB===0?h(G,Pe.pt):Pe.alongB===1&&h(G,be)),Pe.alongB===0&&(Pe.alongA===-1?h(j,W):Pe.alongA===0?h(j,Pe.pt):Pe.alongA===1&&h(j,re));return!1}for(var T=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let G=function(){if(C){var j=E(L,C);if(j)return j}return M?E(L,M):!1};var U=G;r&&r.segmentNew(L.seg,L.primary);var x=k(L),C=x.before?x.before.ev:null,M=x.after?x.after.ev:null;r&&r.tempStatus(L.seg,C?C.seg:!1,M?M.seg:!1);var m=G();if(m){if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,P&&(m.seg.myFill.above=!m.seg.myFill.above)}else m.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(m.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,M?L.seg.myFill.below=M.seg.myFill.above:L.seg.myFill.below=p,P?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var A;M?L.primary===M.primary?A=M.seg.otherFill.above:A=M.seg.myFill.above:A=L.primary?_:p,L.seg.otherFill={above:A,below:A}}r&&r.status(L.seg,C?C.seg:!1,M?M.seg:!1),L.other.status=x.insert(w5.node({ev:L}))}else{var B=L.status;if(B===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(B.prev)&&b.exists(B.next)&&E(B.prev.ev,B.next.ev),r&&r.statusRemove(B.ev.seg),B.remove(),!L.primary){var F=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=F}T.push(L.seg)}a.getHead().remove()}return r&&r.done(),T}return e?{addRegion:function(p){for(var _,b=p[p.length-1],v=0;v{function sht(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var u={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},f=u;function c(U,G,j){return f.index=U,f.matches_head=G,f.matches_pt1=j,f===u?(f=l,!1):(f=null,!0)}for(var h=0;h{function A5(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var lht={union:function(e,t){return A5(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return A5(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return A5(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return A5(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return A5(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};uce.exports=lht});var hce=Te((Por,cce)=>{var uht={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(l){var f=l.slice(0,l.length-1);return e.segments({inverted:!1,regions:[f]})}for(var s=o(a[0]),u=1;u{var fht=ece(),cht=rce(),dce=oce(),hht=lce(),T5=fce(),pce=hce(),E0=!1,S5=cht(),Ev;Ev={buildLog:function(e){return e===!0?E0=fht():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return S5.epsilon(e)},segments:function(e){var t=dce(!0,S5,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=dce(!1,S5,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:T5.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:T5.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:T5.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:T5.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:T5.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:hht(e.segments,S5,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return pce.toPolygon(Ev,e)},polygonToGeoJSON:function(e){return pce.fromPolygon(Ev,S5,e)},union:function(e,t){return M5(e,t,Ev.selectUnion)},intersect:function(e,t){return M5(e,t,Ev.selectIntersect)},difference:function(e,t){return M5(e,t,Ev.selectDifference)},differenceRev:function(e,t){return M5(e,t,Ev.selectDifferenceRev)},xor:function(e,t){return M5(e,t,Ev.selectXor)}};function M5(e,t,r){var n=Ev.segments(e),i=Ev.segments(t),a=Ev.combine(n,i),o=r(a);return Ev.polygon(o)}typeof window=="object"&&(window.PolyBool=Ev);vce.exports=Ev});var gce=Te((Ior,yce)=>{yce.exports=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var u=i-n,l=0,f=u-1;lo!=p>o&&a<(d-c)*(o-h)/(p-h)+c;_&&(s=!s)}return s}});var E5=Te((Ror,_ce)=>{"use strict";var k7=wL().dot,pz=nf().BADNUM,vz=_ce.exports={};vz.tester=function(t){var r=t.slice(),n=r[0][0],i=n,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;si||v===pz||vo||_&&l(p))}function c(p,_){var b=p[0],v=p[1];if(b===pz||bi||v===pz||vo)return!1;var k=r.length,E=r[0][0],T=r[0][1],L=0,x,C,M,m,P;for(x=1;xMath.max(C,E)||v>Math.max(M,T)))if(vs||Math.abs(k7(c,l))>i)return!0;return!1};vz.filter=function(t,r){var n=[t[0]],i=0,a=0;function o(u){t.push(u);var l=n.length,f=i;n.splice(a+1);for(var c=f+1;c1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:n}}});var bce=Te((Dor,xce)=>{"use strict";xce.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Gce=Te((For,Vce)=>{"use strict";var wce=mce(),dht=gce(),L5=$l(),pht=Mu().dashStyle,k5=jl(),vht=Xc(),mht=iv().makeEventData,D5=Mm(),yht=D5.freeMode,ght=D5.rectMode,P5=D5.drawMode,z7=D5.openMode,I7=D5.selectMode,Ace=c_(),Tce=v5(),Cce=tz(),Lce=Q1().clearOutline,Pce=u_(),C7=Pce.handleEllipse,_ht=Pce.readPaths,xht=JP().newShapes,bht=r7(),wht=E7().activateLastSelection,yz=ei(),Aht=yz.sorterAsc,zce=E5(),C5=DL(),k0=Wc().getFromId,Tht=d5(),Sht=b5().redrawReglTraces,gz=bce(),Ty=gz.MINSELECT,Mht=zce.filter,R7=zce.tester,D7=XP(),Sce=D7.p2r,Eht=D7.axValue,kht=D7.getTransform;function F7(e){return e.subplot!==void 0}function Cht(e,t,r,n,i){var a=!F7(n),o=yht(i),s=ght(i),u=z7(i),l=P5(i),f=I7(i),c=i==="drawline",h=i==="drawcircle",d=c||h,p=n.gd,_=p._fullLayout,b=f&&_.newselection.mode==="immediate"&&a,v=_._zoomlayer,k=n.element.getBoundingClientRect(),E=n.plotinfo,T=kht(E),L=t-k.left,x=r-k.top;_._calcInverseTransform(p);var C=yz.apply3DTransform(_._invTransform)(L,x);L=C[0],x=C[1];var M=_._invScaleX,m=_._invScaleY,P=L,A=x,B="M"+L+","+x,F=n.xaxes[0],U=n.yaxes[0],G=F._length,j=U._length,H=e.altKey&&!(P5(i)&&u),N,W,re,ae,be,Pe,Ce;Rce(e,p,n),o&&(N=Mht([[L,x]],gz.BENDPX));var de=v.selectAll("path.select-outline-"+E.id).data([1]),te=l?_.newshape:_.newselection;l&&(n.hasText=te.label.text||te.label.texttemplate);var ke=l&&!u?te.fillcolor:"rgba(0,0,0,0)",Ee=te.line.color||(a?k5.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");de.enter().append("path").attr("class","select-outline select-outline-"+E.id).style({opacity:l?te.opacity/2:1,"stroke-dasharray":pht(te.line.dash,te.line.width),"stroke-width":te.line.width+"px","shape-rendering":"crispEdges"}).call(k5.stroke,Ee).call(k5.fill,ke).attr("fill-rule","evenodd").classed("cursor-move",!!l).attr("transform",T).attr("d",B+"Z");var Me=v.append("path").attr("class","zoombox-corners").style({fill:k5.background,stroke:k5.defaultLine,"stroke-width":1}).attr("transform",T).attr("d","M0,0Z");if(l&&n.hasText){var Ne=v.select(".label-temp");Ne.empty()&&(Ne=v.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Fe=_._uid+gz.SELECTID,ye=[],Ve=_z(p,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var Ke=F._id,nt=U._id;qce(p,Ke,nt,Ve);for(var gt=(p.layout||{}).selections||[],Nt=[],it=!1,Ye=0;Ye=0){p._fullLayout._deactivateShape(p);return}if(!l){var gt=_.clickmode;C5.done(Fe).then(function(){if(C5.clear(Fe),Ke===2){for(de.remove(),be=0;be-1&&Ice(nt,p,n.xaxes,n.yaxes,n.subplot,n,de),gt==="event"&&R5(p,void 0);vht.click(p,nt,E.id)}).catch(yz.error)}},n.doneFn=function(){Me.remove(),C5.done(Fe).then(function(){C5.clear(Fe),!b&&ae&&n.selectionDefs&&(ae.subtract=H,n.selectionDefs.push(ae),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,re)),(b||l)&&z5(n,b),n.doneFnCompleted&&n.doneFnCompleted(ye),f&&R5(p,Ce)}).catch(yz.error)}}function Ice(e,t,r,n,i,a,o){var s=t._hoverdata,u=t._fullLayout,l=u.clickmode,f=l.indexOf("event")>-1,c=[],h,d,p,_,b,v,k,E,T,L;if(Rht(s)){Rce(e,t,a),h=_z(t,r,n,i);var x=Dht(s,h),C=x.pointNumbers.length>0;if(C?Fht(h,x):Bht(h)&&(k=Ece(x))){for(o&&o.remove(),L=0;L=0}function Iht(e){return e._fullLayout._activeSelectionIndex>=0}function z5(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;zht(i)&&i._fullLayout._deactivateShape(i),Iht(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=P5(r),u=I7(r);if(s||u){var l=o.selectAll(".select-outline-"+n.id);if(l&&i._fullLayout._outlining){var f;s&&(f=xht(l,e)),f&&L5.call("_guiRelayout",i,{shapes:f});var c;u&&!F7(e)&&(c=bht(l,e)),c&&(i._fullLayout._noEmitSelectedAtStart=!0,L5.call("_guiRelayout",i,{selections:c}).then(function(){t&&wht(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function Mce(e){return e._id}function _z(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(Mce),o=r.map(Mce),s,u,l;for(l=0;l0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function Fht(e,t){var r=[],n,i,a,o;for(o=0;o0&&r.push(n);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(i=t.searchInfo.cd[0].trace,i.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function I5(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var Ke=kce(e,!0);if(Ke.length){var nt=Ke[0].xref,gt=Ke[0].yref;if(nt&>){var Nt=Nce(Ke),it=Uce([k0(e,nt,"x"),k0(e,gt,"y")]);it(ye,Nt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&R5(e,ye),h._reselect=!1}if(!o&&h._deselect){var Ye=h._deselect;s=Ye.xref,u=Ye.yref,Nht(s,u,f)||qce(e,s,u,n),ce&&(ye.points.length?R5(e,ye):q7(e)),h._deselect=!1}return{eventData:ye,selectionTesters:r}}function qht(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";Hce.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var F5=Te((Oor,Wce)=>{"use strict";Wce.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Nb=Te((Nor,Zce)=>{"use strict";var jce=N7(),Xce=gc(),xz=dd(),Wht=Pf().templatedArray,qor=F5();Zce.exports=Wht("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Xce({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:jce.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:jce.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",xz.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",xz.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",xz.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",xz.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Xce({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Sy=Te((Uor,Yce)=>{"use strict";Yce.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var km=Te((Vor,Kce)=>{"use strict";Kce.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var Zc=Te((Gor,rhe)=>{"use strict";var Jce=jc().axisHoverFormat,jht=Nu().texttemplateAttrs,Xht=Nu().hovertemplateAttrs,$ce=nc(),Zht=gc(),Yht=Id().dash,Kht=Id().pattern,Jht=Mu(),$ht=Sy(),bz=Su().extendFlat,Qht=km();function Qce(e){return{valType:"any",dflt:0,editType:"calc"}}function ehe(e){return{valType:"any",editType:"calc"}}function the(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}rhe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Qce("x"),yperiod:Qce("y"),xperiod0:ehe("x0"),yperiod0:ehe("y0"),xperiodalignment:the("x"),yperiodalignment:the("y"),xhoverformat:Jce("x"),yhoverformat:Jce("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:jht({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Xht({},{keys:$ht.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:bz({},Yht,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Qht(!0),fillgradient:bz({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Kht,marker:bz({symbol:{valType:"enumerated",values:Jht.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:bz({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},$ce("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},$ce("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Zht({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var U7=Te((Wor,ahe)=>{"use strict";var ihe=Nb(),nhe=Zc().line,edt=Id().dash,wz=Su().extendFlat,tdt=Sc().overrideAll,rdt=Pf().templatedArray,Hor=F5();ahe.exports=tdt(rdt("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:wz({},ihe.xref,{}),yref:wz({},ihe.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:nhe.color,width:wz({},nhe.width,{min:1,dflt:1}),dash:wz({},edt,{dflt:"dot"})}}),"arraydraw","from-root")});var uhe=Te((jor,lhe)=>{"use strict";var ohe=ei(),Az=wu(),idt=Jd(),ndt=U7(),she=c_();lhe.exports=function(t,r){idt(t,r,{name:"selections",handleItemDefaults:adt});for(var n=r.selections,i=0;i{"use strict";fhe.exports=function(t,r,n){n("newselection.mode");var i=n("newselection.line.width");i&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var B5=Te((Zor,phe)=>{"use strict";var odt=$l(),hhe=ei(),dhe=Wc();phe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=odt.subplotsRegistry.cartesian,s=o.idRegex,u=i._subplots,l=u.xaxis,f=u.yaxis,c=u.cartesian,h=i._has("cartesian"),d=0;d{"use strict";var vhe=E7(),O5=Gce();mhe.exports={moduleType:"component",name:"selections",layoutAttributes:U7(),supplyLayoutDefaults:uhe(),supplyDrawNewSelectionDefaults:che(),includeBasePlot:B5()("selections"),draw:vhe.draw,drawOne:vhe.drawOne,reselect:O5.reselect,prepSelect:O5.prepSelect,clearOutline:O5.clearOutline,clearSelectionsCache:O5.clearSelectionsCache,selectOnClick:O5.selectOnClick}});var Z7=Te((Kor,Fhe)=>{"use strict";var j7=Jl(),C0=ei(),yhe=C0.numberFormat,sdt=cd(),ldt=PP(),Tz=$l(),Mhe=C0.strTranslate,udt=Xf(),ghe=jl(),d_=Mu(),fdt=Xc(),_he=wu(),cdt=Tm(),hdt=xp(),Ehe=Mm(),Sz=Ehe.selectingOrDrawing,ddt=Ehe.freeMode,pdt=Qh().FROM_TL,vdt=d5(),mdt=b5().redrawReglTraces,ydt=Cc(),G7=Wc().getFromId,gdt=ah().prepSelect,_dt=ah().clearOutline,xdt=ah().selectOnClick,V7=_7(),X7=dd(),xhe=X7.MINDRAG,nv=X7.MINZOOM,bhe=!0;function bdt(e,t,r,n,i,a,o,s){var u=e._fullLayout._zoomlayer,l=o+s==="nsew",f=(o+s).length===1,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G,j,H;r+=t.yaxis._shift;function N(){if(c=t.xaxis,h=t.yaxis,E=c._length,T=h._length,v=c._offset,k=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,o&&s)for(var Ue=t.overlays,rt=0;rt=0){$e._fullLayout._deactivateShape($e);return}var zt=$e._fullLayout.clickmode;if(W7($e),Ue===2&&!f&&Et(),l)zt.indexOf("select")>-1&&xdt(rt,$e,_,b,t.id,ae),zt.indexOf("event")>-1&&fdt.click($e,rt,t.id);else if(Ue===1&&f){var Yt=o?h:c,hr=o==="s"||s==="w"?0:1,yr=Yt._name+".range["+hr+"]",br=wdt(Yt,hr),Ut="left",Ie="middle";if(Yt.fixedrange)return;o?(Ie=o==="n"?"top":"bottom",Yt.side==="right"&&(Ut="right")):s==="e"&&(Ut="right"),$e._context.showAxisRangeEntryBoxes&&j7.select(re).call(udt.makeEditable,{gd:$e,immediate:!0,background:$e._fullLayout.paper_bgcolor,text:String(br),fill:Yt.tickfont?Yt.tickfont.color:"#444",horizontalAlign:Ut,verticalAlign:Ie}).on("edit",function(xe){var Oe=Yt.d2r(xe);Oe!==void 0&&Tz.call("_guiRelayout",$e,yr,Oe)})}}hdt.init(ae);var Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve;function ce(Ue,rt,$e){var zt=re.getBoundingClientRect();Ce=rt-zt.left,de=$e-zt.top,e._fullLayout._calcInverseTransform(e);var Yt=C0.apply3DTransform(e._fullLayout._invTransform)(Ce,de);Ce=Yt[0],de=Yt[1],te={l:Ce,r:Ce,w:0,t:de,b:de,h:0},ke=e._hmpixcount?e._hmlumcount/e._hmpixcount:sdt(e._fullLayout.plot_bgcolor).getLuminance(),Ee="M0,0H"+E+"V"+T+"H0V0",Me=!1,Ne="xy",Ve=!1,Fe=Lhe(u,ke,v,k,Ee),ye=Phe(u,v,k)}function Ke(Ue,rt){if(e._transitioningWithDuration)return!1;var $e=Math.max(0,Math.min(E,j*Ue+Ce)),zt=Math.max(0,Math.min(T,H*rt+de)),Yt=Math.abs($e-Ce),hr=Math.abs(zt-de);te.l=Math.min(Ce,$e),te.r=Math.max(Ce,$e),te.t=Math.min(de,zt),te.b=Math.max(de,zt);function yr(){Ne="",te.r=te.l,te.t=te.b,ye.attr("d","M0,0Z")}if(L.isSubplotConstrained)Yt>nv||hr>nv?(Ne="xy",Yt/E>hr/T?(hr=Yt*T/E,de>zt?te.t=de-hr:te.b=de+hr):(Yt=hr*E/T,Ce>$e?te.l=Ce-Yt:te.r=Ce+Yt),ye.attr("d",Mz(te))):yr();else if(x.isSubplotConstrained)if(Yt>nv||hr>nv){Ne="xy";var br=Math.min(te.l/E,(T-te.b)/T),Ut=Math.max(te.r/E,(T-te.t)/T);te.l=br*E,te.r=Ut*E,te.b=(1-br)*T,te.t=(1-Ut)*T,ye.attr("d",Mz(te))}else yr();else!M||hr0){var xe;if(x.isSubplotConstrained||!C&&M.length===1){for(xe=0;xe<_.length;xe++)_[xe].range=_[xe]._r.slice(),V7(_[xe],1-rt/T);Ue=rt*E/T,Ut=Ue/2}if(x.isSubplotConstrained||!M&&C.length===1){for(xe=0;xe1&&(yr.maxallowed!==void 0&&P===(yr.range[0]1&&(br.maxallowed!==void 0&&A===(br.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Tdt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Lhe(e,t,r,n,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",Mhe(r,n)).attr("d",i+"Z")}function Phe(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:ghe.background,stroke:ghe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",Mhe(t,r)).attr("d","M0,0Z")}function zhe(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),Ihe(e,t,i,a)}function Ihe(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function W7(e){j7.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Rhe(e){bhe&&e.data&&e._context.showTips&&(C0.notifier(C0._(e,"Double-click to zoom back out"),"long"),bhe=!1)}function Sdt(e,t){return"M"+(e.l-.5)+","+(t-nv-.5)+"h-3v"+(2*nv+1)+"h3ZM"+(e.r+.5)+","+(t-nv-.5)+"h3v"+(2*nv+1)+"h-3Z"}function Mdt(e,t){return"M"+(t-nv-.5)+","+(e.t-.5)+"v-3h"+(2*nv+1)+"v3ZM"+(t-nv-.5)+","+(e.b+.5)+"v3h"+(2*nv+1)+"v-3Z"}function Mz(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,nv)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function The(e,t,r,n,i){for(var a=!1,o={},s={},u,l,f,c,h=(i||{}).xaHash,d=(i||{}).yaHash,p=0;p{"use strict";var Edt=Jl(),Ez=Xc(),kdt=xp(),Cdt=Tm(),Cm=Z7().makeDragBox,yd=dd().DRAGGERSIZE;kz.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Edt.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var n=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),u=o.split("y");return s[0]===u[0]?Number(s[1]||1)-Number(u[1]||1):Number(s[0]||1)-Number(u[0]||1)}return r._plots[a].mainplot?1:-1});n.forEach(function(a){var o=r._plots[a],s=o.xaxis,u=o.yaxis;if(!o.mainplot){var l=Cm(t,o,s._offset,u._offset,s._length,u._length,"ns","ew");l.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&Ez.hover(t,h,a)},Ez.hover(t,h,a),t._fullLayout._lasthover=l,t._fullLayout._hoversubplot=a},l.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,kdt.unhover(t,h))},t._context.showAxisDragHandles&&(Cm(t,o,s._offset-yd,u._offset-yd,yd,yd,"n","w"),Cm(t,o,s._offset+s._length,u._offset-yd,yd,yd,"n","e"),Cm(t,o,s._offset-yd,u._offset+u._length,yd,yd,"s","w"),Cm(t,o,s._offset+s._length,u._offset+u._length,yd,yd,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var f=s._mainLinePosition;s.side==="top"&&(f-=yd),Cm(t,o,s._offset+s._length*.1,f,s._length*.8,yd,"","ew"),Cm(t,o,s._offset,f,s._length*.1,yd,"","w"),Cm(t,o,s._offset+s._length*.9,f,s._length*.1,yd,"","e")}if(a===u._mainSubplot){var c=u._mainLinePosition;u.side!=="right"&&(c-=yd),Cm(t,o,c,u._offset+u._length*.1,yd,u._length*.8,"ns",""),Cm(t,o,c,u._offset+u._length*.9,yd,u._length*.1,"s",""),Cm(t,o,c,u._offset,yd,u._length*.1,"n","")}}});var i=r._hoverlayer.node();i.onmousemove=function(a){a.target=t._fullLayout._lasthover,Ez.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,Ez.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},kz.updateFx(t)}};kz.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Cdt(t._draggers,r)}});var qhe=Te(($or,Ohe)=>{"use strict";var Bhe=$l();Ohe.exports=function(t){for(var r=Bhe.layoutArrayContainers,n=Bhe.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var Ldt=mg(),K7=bL(),q5=G1(),Pdt=zL().sorterAsc,J7=$l();N5.containerArrayMatch=qhe();var zdt=N5.isAddVal=function(t){return t==="add"||Ldt(t)},Nhe=N5.isRemoveVal=function(t){return t===null||t==="remove"};N5.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=J7.getComponentMethod(o,"supplyLayoutDefaults"),u=J7.getComponentMethod(o,"draw"),l=J7.getComponentMethod(o,"drawOne"),f=i.replot||i.recalc||s===K7||u===K7,c=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&q5.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(Nhe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return q5.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(s(c,h),u(t),!0)}var p=Object.keys(n).map(Number).sort(Pdt),_=r.get(),b=_||[],v=a(h,o).get(),k=[],E=-1,T=b.length,L,x,C,M,m,P,A,B;for(L=0;Lb.length-(A?0:1)){q5.warn("index out of range",o,C);continue}if(P!==void 0)m.length>1&&q5.warn("Insertion & removal are incompatible with edits to the same index.",o,C),Nhe(P)?k.push(C):A?(P==="add"&&(P={}),b.splice(C,0,P),v&&v.splice(C,0,{})):q5.warn("Unrecognized full object edit value",o,C,P),E===-1&&(E=C);else for(x=0;x=0;L--)b.splice(k[L],1),v&&v.splice(k[L],1);if(b.length?_||r.set(b):r.set(null),f)return!1;if(s(c,h),l!==K7){var F;if(E===-1)F=p;else{for(T=Math.max(b.length,T),F=[],L=0;L=E));L++)F.push(C);for(L=E;L{"use strict";var Whe=ku(),jhe=$l(),Np=ei(),U5=Cc(),Xhe=Wc(),Zhe=jl(),V5=Xhe.cleanId,Idt=Xhe.getFromTrace,$7=jhe.traceIs,Rdt=["x","y","z"];L0.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Np.log("Clearing previous rejected promises from queue."),e._promises=[]};L0.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(U5.subplotsRegistry.cartesian||{}).attrRegex,i=(U5.subplotsRegistry.polar||{}).attrRegex,a=(U5.subplotsRegistry.ternary||{}).attrRegex,o=(U5.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),Zhe.clean(e),e.template&&e.template.layout&&L0.cleanLayout(e.template.layout),e};function K3(e,t){var r=e[t],n=t.charAt(0);r&&r!=="paper"&&(e[t]=V5(r,n,!0))}L0.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}L0.hasParent=function(e,t){for(var r=Hhe(t);r;){if(r in e)return!0;r=Hhe(r)}return!1};L0.clearAxisTypes=function(e,t,r){for(var n=0;n{let r=(...n)=>n.every(i=>Np.isPlainObject(i))||n.every(i=>Array.isArray(i));if([e,t].every(n=>Array.isArray(n))){if(e.length!==t.length)return!1;for(let n=0;nNp.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let i=e[n],a=t[n];if(i!==a&&!(r(i,a)?Q7(i,a):!1))return!1}return!0}return!1};L0.collectionsAreEqual=Q7});var Uz=Te(If=>{"use strict";var zz=Jl(),Bdt=ku(),Odt=cq(),Hl=ei(),Lc=Hl.nestedProperty,rU=m3(),av=Lne(),P0=$l(),qz=_3(),Uu=Cc(),Up=wu(),qdt=EN(),Ndt=Dd(),eU=Mu(),Udt=jl(),Vdt=Y7().initInteractions,Gdt=jv(),Hdt=ah().clearOutline,ede=ub().dfltConfig,Lz=Uhe(),Ah=Yhe(),ac=b5(),p_=Sc(),Wdt=dd().AX_NAME_PATTERN,tU=0,Khe=5;function jdt(e,t,r,n){var i;if(e=Hl.getGraphDiv(e),rU.init(e),Hl.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=rU.triggerHandler(e,"plotly_beforeplot",[t,r,n]);if(o===!1)return Promise.reject();!t&&!r&&!Hl.isPlotDiv(e)&&Hl.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(i)return If.addFrames(e,i)}rde(e,n),r||(r={}),zz.select(e).classed("js-plotly-plot",!0),eU.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Ah.cleanData(t),u?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||u)&&(e.layout=Ah.cleanLayout(r)),Uu.supplyDefaults(e);var l=e._fullLayout,f=l._has("cartesian");l._replotting=!0,(u||l._shouldCreateBgLayer)&&(vpt(e),l._shouldCreateBgLayer&&delete l._shouldCreateBgLayer),eU.initGradients(e),eU.initPatterns(e),u&&Up.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Uu.doCalcdata(e);for(var h=0;h=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function ide(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),Rz(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Rz(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function Jdt(e,t,r){var n,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&f=0&&f0&&typeof M.parts[A]!="string";)A--;var B=M.parts[A],F=M.parts[A-1]+"."+B,U=M.parts.slice(0,A).join("."),G=Lc(e.layout,U).get(),j=Lc(n,U).get(),H=M.get();if(m!==void 0){v[C]=m,k[C]=B==="reverse"?m:Cg(H);var N=qz.getLayoutValObject(n,M.parts);if(N&&N.impliedEdits&&m!==null)for(var W in N.impliedEdits)E(Hl.relativeAttr(C,W),N.impliedEdits[W]);if(["width","height"].indexOf(C)!==-1)if(m){E("autosize",null);var re=C==="height"?"width":"height";E(re,n[re])}else n[C]=e._initialAutoSize[C];else if(C==="autosize")E("width",m?null:n.width),E("height",m?null:n.height);else if(F.match(hde))x(F),Lc(n,U+"._inputRange").set(null);else if(F.match(dde)){x(F),Lc(n,U+"._inputRange").set(null);var ae=Lc(n,U).get();ae._inputDomain&&(ae._input.domain=ae._inputDomain.slice())}else F.match(tpt)&&Lc(n,U+"._inputDomain").set(null);if(B==="type"){L=G;var be=j.type==="linear"&&m==="log",Pe=j.type==="log"&&m==="linear";if(be||Pe){if(!L||!L.range)E(U+".autorange",!0);else if(j.autorange)be&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var Ce=L.range[0],de=L.range[1];be?(Ce<=0&&de<=0&&E(U+".autorange",!0),Ce<=0?Ce=de/1e6:de<=0&&(de=Ce/1e6),E(U+".range[0]",Math.log(Ce)/Math.LN10),E(U+".range[1]",Math.log(de)/Math.LN10)):(E(U+".range[0]",Math.pow(10,Ce)),E(U+".range[1]",Math.pow(10,de)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[M.parts[0]]&&M.parts[1]==="radialaxis"&&delete n[M.parts[0]]._subplot.viewInitial["radialaxis.range"],P0.getComponentMethod("annotations","convertCoords")(e,j,m,E),P0.getComponentMethod("images","convertCoords")(e,j,m,E)}else E(U+".autorange",!0),E(U+".range",null);Lc(n,U+"._inputRange").set(null)}else if(B.match(Wdt)){var te=Lc(n,C).get(),ke=(m||{}).type;(!ke||ke==="-")&&(ke="linear"),P0.getComponentMethod("annotations","convertCoords")(e,te,ke,E),P0.getComponentMethod("images","convertCoords")(e,te,ke,E)}var Ee=Lz.containerArrayMatch(C);if(Ee){f=Ee.array,c=Ee.index;var Me=Ee.property,Ne=N||{editType:"calc"};c!==""&&Me===""&&(Lz.isAddVal(m)?k[C]=null:Lz.isRemoveVal(m)?k[C]=(Lc(r,f).get()||[])[c]:Hl.warn("unrecognized full object value",t)),p_.update(b,Ne),l[f]||(l[f]={});var Fe=l[f][c];Fe||(Fe=l[f][c]={}),Fe[Me]=m,delete t[C]}else B==="reverse"?(G.range?G.range.reverse():(E(U+".autorange",!0),G.range=[1,0]),j.autorange?b.calc=!0:b.plot=!0):(C==="dragmode"&&(m===!1&&H!==!1||m!==!1&&H===!1)||n._has("scatter-like")&&n._has("regl")&&C==="dragmode"&&(m==="lasso"||m==="select")&&!(H==="lasso"||H==="select")?b.plot=!0:N?p_.update(b,N):b.calc=!0,M.set(m))}}for(f in l){var ye=Lz.applyContainerArrayChanges(e,a(r,f),l[f],b,a);ye||(b.plot=!0)}for(var Ve in T){L=Up.getFromId(e,Ve);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var Ke in ce)T[Ke]||(Up.getFromId(e,Ke)._constraintShrinkable=!0)}}(vde(e)||t.height||t.width)&&(b.plot=!0);var nt=n.shapes;for(c=0;c1;)if(n.pop(),r=Lc(t,n.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function npt(e,t){for(var r=0;r[U,e._ev.listeners(U)]);a=If.newPlot(e,t,r,n).then(()=>{for(let[U,G]of F)G.forEach(j=>e.on(U,j));return If.react(e,t,r,n)})}else{e.data=t||[],Ah.cleanData(e.data),e.layout=r||{},Ah.cleanLayout(e.layout),opt(e.data,e.layout,s,u),Uu.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,p=h.transition,_=upt(e,u,h,d,p),b=_.newDataRevision,v=lpt(e,s,c,d,p,b);if(vde(e)&&(_.layoutReplot=!0),v.calc||_.calc){e.calcdata=void 0;for(var k=Object.getOwnPropertyNames(h),E=0;E(f||e.emit("plotly_react",{config:n,data:t,layout:r}),e))}function lpt(e,t,r,n,i,a){var o=t.length===r.length;if(!i&&!o)return{fullReplot:!0,calc:!0};var s=p_.traceFlags();s.arrays={},s.nChanges=0,s.nChangesAnim=0;var u,l;function f(d){var p=qz.getTraceValObject(l,d);return!l._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:s,immutable:n,transition:i,newDataRevision:a,gd:e},h={};for(u=0;u=i.length?i[0]:i[l]:i}function s(l){return Array.isArray(a)?l>=a.length?a[0]:a[l]:a}function u(l,f){var c=0;return function(){if(l&&++c===f)return l()}}return new Promise(function(l,f){function c(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var B=n._frameQueue.pop();B.onInterrupt&&B.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(B){if(B.length!==0){for(var F=0;Fn._timeToNext&&p()};B()}var b=0;function v(B){return Array.isArray(i)?b>=i.length?B.transitionOpts=i[b]:B.transitionOpts=i[0]:B.transitionOpts=i,b++,B}var k,E,T=[],L=t==null,x=Array.isArray(t),C=!L&&!x&&Hl.isPlainObject(t);if(C)T.push({type:"object",data:v(Hl.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(k=0;k0&&PP)&&A.push(E);T=A}}T.length>0?h(T):(e.emit("plotly_animated"),l())})}function cpt(e,t,r){if(e=Hl.getGraphDiv(e),t==null)return Promise.resolve();if(!Hl.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,i,a,o,s=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var l=s.length+t.length*2,f=[],c={};for(n=t.length-1;n>=0;n--)if(Hl.isPlainObject(t[n])){var h=t[n].name,d=(u[h]||c[h]||{}).name,p=t[n].name,_=u[d]||c[d];d&&p&&typeof p=="number"&&_&&tUM.index?-1:C.index=0;n--){if(i=f[n].frame,typeof i.name=="number"&&Hl.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;u[i.name="frame "+e._transitionData._counter++];);if(u[i.name]){for(a=0;a=0;r--)n=t[r],a.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:i[n]});var s=Uu.modifyFrames,u=Uu.modifyFrames,l=[e,o],f=[e,a];return av&&av.add(e,s,l,u,f),Uu.modifyFrames(e,a)}function dpt(e){e=Hl.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return Uu.cleanPlot([],{},r,t),Uu.purge(e),rU.purge(e),t._container&&t._container.remove(),delete e._context,e}function ppt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!Hl.equalDomRects(r,t._lastBBox)){var n=t._invTransform=Hl.inverseTransformMatrix(Hl.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}function vpt(e){var t=zz.select(e),r=e._fullLayout;if(r._calcInverseTransform=ppt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var n={};zz.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=Hl.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(Gdt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}If.animate=fpt;If.addFrames=cpt;If.deleteFrames=hpt;If.addTraces=lde;If.deleteTraces=ude;If.extendTraces=ode;If.moveTraces=iU;If.prependTraces=sde;If.newPlot=Kdt;If._doPlot=jdt;If.purge=dpt;If.react=spt;If.redraw=Ydt;If.relayout=G5;If.restyle=Dz;If.setPlotConfig=Xdt;If.update=Bz;If._guiRelayout=nU(G5);If._guiRestyle=nU(Dz);If._guiUpdate=nU(Bz);If._storeDirectGUIEdit=ept});var Lg=Te(My=>{"use strict";var mpt=$l();My.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};My.getRedrawFunc=function(e){return function(){mpt.getComponentMethod("colorbar","draw")(e)}};My.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};My.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var mde=window.URL||window.webkitURL;My.createObjectURL=function(e){return mde.createObjectURL(e)};My.revokeObjectURL=function(e){return mde.revokeObjectURL(e)};My.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=ypt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};My.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function ypt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var oU=Jl(),isr=ei(),gpt=Mu(),_pt=jl(),nsr=jv(),aU=/"/g,W5="TOBESTRIPPED",xpt=new RegExp('("'+W5+")|("+W5+'")',"g");function bpt(e){var t=oU.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":t.html(n).text()});return t.remove(),r}function wpt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}yde.exports=function(t,r,n){var i=t._fullLayout,a=i._paper,o=i._toppaper,s=i.width,u=i.height,l;a.insert("rect",":first-child").call(gpt.setRect,0,0,s,u).call(_pt.fill,i.paper_bgcolor);var f=i._basePlotModules||[];for(l=0;l{"use strict";var Apt=ei(),Tpt=pb().EventEmitter,j5=Lg();function Spt(e){var t=e.emitter||new Tpt,r=new Promise(function(n,i){var a=window.Image,o=e.svg,s=e.format||"png",u=e.canvas,l=e.scale||1,f=e.width||300,c=e.height||150,h=l*f,d=l*c,p=u.getContext("2d",{willReadFrequently:!0}),_=new a,b,v;s==="svg"||Apt.isSafari()?v=j5.encodeSVG(o):(b=j5.createBlob(o,"svg"),v=j5.createObjectURL(b)),u.width=h,u.height=d,_.onload=function(){var k;switch(b=null,j5.revokeObjectURL(v),s!=="svg"&&p.drawImage(_,0,0,h,d),s){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=v;break;default:var E="Image format is not jpeg, png, svg or webp.";if(i(new Error(E)),!e.promise)return t.emit("error",E)}n(k),e.promise||t.emit("success",k)},_.onerror=function(k){if(b=null,j5.revokeObjectURL(v),i(k),!e.promise)return t.emit("error",k)},_.src=v});return e.promise?r:t}gde.exports=Spt});var lU=Te((ssr,bde)=>{"use strict";var _de=ku(),xde=Uz(),Mpt=Cc(),Ey=ei(),X5=Lg(),Ept=Vz(),kpt=Gz(),Cpt=sL().version,sU={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Lpt(e,t){t=t||{};var r,n,i,a;Ey.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Ey.getGraphDiv(e),r=Ey.extendDeep([],e.data),n=Ey.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||Ey.validate(t[x],sU[x])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Ey.join2(sU.format.values,", "," or ")+".");var s={};function u(x,C){return Ey.coerce(t,s,sU,x,C)}var l=u("format"),f=u("width"),c=u("height"),h=u("scale"),d=u("setBackground"),p=u("imageDataOnly"),_=document.createElement("div");_.style.position="absolute",_.style.left="-5000px",document.body.appendChild(_);var b=Ey.extendFlat({},n);f?b.width=f:t.width===null&&_de(a.width)&&(b.width=a.width),c?b.height=c:t.height===null&&_de(a.height)&&(b.height=a.height);var v=Ey.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),k=X5.getRedrawFunc(_);function E(){return new Promise(function(x){setTimeout(x,X5.getDelay(_._fullLayout))})}function T(){return new Promise(function(x,C){var M=Ept(_,l,h),m=_._fullLayout.width,P=_._fullLayout.height;function A(){xde.purge(_),document.body.removeChild(_)}if(l==="full-json"){var B=Mpt.graphJson(_,!1,"keepdata","object",!0,!0);return B.version=Cpt,B=JSON.stringify(B),A(),x(p?B:X5.encodeJSON(B))}if(A(),l==="svg")return x(p?M:X5.encodeSVG(M));var F=document.createElement("canvas");F.id=Ey.randstr(),kpt({format:l,width:m,height:P,scale:h,canvas:F,svg:M,promise:!0}).then(x).catch(C)})}function L(x){return p?x.replace(X5.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,C){xde.newPlot(_,r,b,v).then(k).then(E).then(T).then(function(M){x(L(M))}).catch(function(M){C(M)})})}bde.exports=Lpt});var Tde=Te((lsr,Ade)=>{"use strict";var z0=ei(),Ppt=Cc(),zpt=_3(),Ipt=ub().dfltConfig,Lm=z0.isPlainObject,Vb=Array.isArray,uU=z0.isArrayOrTypedArray;Ade.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=zpt.get(),i=[],a={_context:z0.extendFlat({},Ipt)},o,s;Vb(t)?(a.data=z0.extendDeep([],t),o=t):(a.data=[],o=[],i.push(gd("array","data"))),Lm(r)?(a.layout=z0.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&i.push(gd("object","layout"))),Ppt.supplyDefaults(a);for(var u=a._fullData,l=o.length,f=0;fc.length&&n.push(gd("unused",i,l.concat(c.length)));var v=c.length,k=Array.isArray(b);k&&(v=Math.min(v,b.length));var E,T,L,x,C;if(h.dimensions===2)for(T=0;Tc[T].length&&n.push(gd("unused",i,l.concat(T,c[T].length)));var M=c[T].length;for(E=0;E<(k?Math.min(M,b[T].length):M);E++)L=k?b[T][E]:b,x=f[T][E],C=c[T][E],z0.validate(x,L)?C!==x&&C!==+x&&n.push(gd("dynamic",i,l.concat(T,E),x,C)):n.push(gd("value",i,l.concat(T,E),x))}else n.push(gd("array",i,l.concat(T),f[T]));else for(T=0;T{"use strict";var Npt=ei(),Wz=Lg();function Upt(e,t,r){var n=document.createElement("a"),i="download"in n,a=new Promise(function(o,s){var u,l;if(i)return u=Wz.createBlob(e,r),l=Wz.createObjectURL(u),n.href=l,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),Wz.revokeObjectURL(l),u=null,o(t);if(Npt.isSafari()){var f=r==="svg"?",":";base64,";return Wz.octetStream(f+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}Sde.exports=Upt});var fU=Te((csr,kde)=>{"use strict";var Ede=ei(),Vpt=lU(),Gpt=Mde(),fsr=Lg();function Hpt(e,t){var r;return Ede.isPlainObject(e)||(r=Ede.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(n,i){r&&r._snapshotInProgress&&i(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var a=Vpt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),Gpt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}kde.exports=Hpt});var Ide=Te(cU=>{"use strict";var kv=ei(),Cv=kv.isPlainObject,Cde=_3(),Lde=Cc(),Wpt=Gf(),Pde=Pf(),zde=ub().dfltConfig;cU.makeTemplate=function(e){e=kv.isPlainObject(e)?e:kv.getGraphDiv(e),e=kv.extendDeep({_context:zde},{data:e.data,layout:e.layout}),Lde.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var n={data:{},layout:{}};t.forEach(function(d){var p={};Z5(d,p,Xpt.bind(null,d));var _=kv.coerce(d,{},Wpt,"type"),b=n.data[_];b||(b=n.data[_]=[]),b.push(p)}),Z5(r,n.layout,jpt.bind(null,r)),delete n.layout.template;var i=r.template;if(Cv(i)){var a=i.layout,o,s,u,l,f,c;Cv(a)&&jz(a,n.layout);var h=i.data;if(Cv(h)){for(s in n.data)if(u=h[s],Array.isArray(u)){for(f=n.data[s],c=f.length,l=u.length,o=0;ov?o.push({code:"unused",traceType:d,templateCount:b,dataCount:v}):v>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:v})}}function k(E,T){for(var L in E)if(L.charAt(0)!=="_"){var x=E[L],C=I0(E,L,T);Cv(x)?(Array.isArray(E)&&x._template===!1&&x.templateitemname&&o.push({code:"missing",path:C,templateitemname:x.templateitemname}),k(x,C)):Array.isArray(x)&&Zpt(x)&&k(x,C)}}if(k({data:u,layout:s},""),o.length)return o.map(Ypt)};function Zpt(e){for(var t=0;t{"use strict";var rd=Uz();Vc._doPlot=rd._doPlot;Vc.newPlot=rd.newPlot;Vc.restyle=rd.restyle;Vc.relayout=rd.relayout;Vc.redraw=rd.redraw;Vc.update=rd.update;Vc._guiRestyle=rd._guiRestyle;Vc._guiRelayout=rd._guiRelayout;Vc._guiUpdate=rd._guiUpdate;Vc._storeDirectGUIEdit=rd._storeDirectGUIEdit;Vc.react=rd.react;Vc.extendTraces=rd.extendTraces;Vc.prependTraces=rd.prependTraces;Vc.addTraces=rd.addTraces;Vc.deleteTraces=rd.deleteTraces;Vc.moveTraces=rd.moveTraces;Vc.purge=rd.purge;Vc.addFrames=rd.addFrames;Vc.deleteFrames=rd.deleteFrames;Vc.animate=rd.animate;Vc.setPlotConfig=rd.setPlotConfig;var Kpt=OM().getGraphDiv,Jpt=az().eraseActiveShape;Vc.deleteActiveShape=function(e){return Jpt(Kpt(e))};Vc.toImage=lU();Vc.validate=Tde();Vc.downloadImage=fU();var Rde=Ide();Vc.makeTemplate=Rde.makeTemplate;Vc.validateTemplate=Rde.validateTemplate});var J3=Te((psr,Fde)=>{"use strict";var hU=ei(),$pt=$l();Fde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,u=$pt.getComponentMethod("calendars","handleTraceDefaults");if(u(t,r,["x","y"],n),a){var l=hU.minRowLength(a);o?s=Math.min(l,hU.minRowLength(o)):(s=l,i("y0"),i("dy"))}else{if(!o)return 0;s=hU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Pm=Te((vsr,qde)=>{"use strict";var Bde=ei().dateTick0,Qpt=nf(),evt=Qpt.ONEWEEK;function Ode(e,t){return e%evt===0?Bde(t,1):Bde(t,0)}qde.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Ode(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Ode(s,r.ycalendar)),i("yperiodalignment"))}}});var Vde=Te((msr,Ude)=>{"use strict";var Nde=["orientation","groupnorm","stackgaps"];Ude.exports=function(t,r,n,i){var a=n._scatterStackOpts,o=i("stackgroup");if(o){var s=r.xaxis+r.yaxis,u=a[s];u||(u=a[s]={});var l=u[o],f=!1;l?l.traces.push(r):(l=u[o]={traceIndices:[],traces:[r]},f=!0);for(var c={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var Gde=jl(),Hde=yp().hasColorscale,Wde=ed(),tvt=lc();jde.exports=function(t,r,n,i,a,o){var s=tvt.isBubble(t),u=(t.line||{}).color,l;if(o=o||{},u&&(n=u),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",n),Hde(t,"marker")&&Wde(t,r,i,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(u&&!Array.isArray(u)&&r.marker.color!==u?l=u:s?l=Gde.background:l=Gde.defaultLine,a("marker.line.color",l),Hde(t,"marker.line")&&Wde(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0)),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var f=a("marker.gradient.type");f!=="none"&&a("marker.gradient.color")}}});var R0=Te((gsr,Xde)=>{"use strict";var rvt=ei().isArrayOrTypedArray,ivt=yp().hasColorscale,nvt=ed();Xde.exports=function(t,r,n,i,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",n),ivt(t,"line"))nvt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var u=(rvt(s)?!1:s)||n;a("line.color",u)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var $3=Te((_sr,Zde)=>{"use strict";Zde.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var D0=Te((xsr,Yde)=>{"use strict";var avt=ei();Yde.exports=function(e,t,r,n,i){i=i||{},n("textposition"),avt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var zm=Te((bsr,Jde)=>{"use strict";var Zz=jl(),Kde=ei().isArrayOrTypedArray;function ovt(e){for(var t=Zz.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var $de=ei(),svt=$l(),lvt=Zc(),uvt=Sy(),Q3=lc(),fvt=J3(),cvt=Pm(),hvt=Vde(),dvt=$v(),pvt=R0(),Qde=$3(),vvt=D0(),mvt=zm(),yvt=ei().coercePattern;epe.exports=function(t,r,n,i){function a(d,p){return $de.coerce(t,r,lvt,d,p)}var o=fvt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){cvt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=hvt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var u=!s&&o{"use strict";var gvt=qb().getAxisGroup;rpe.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],u=gvt(n,s)+o,l=n._alignmentOpts||{},f=i("alignmentgroup"),c=l[u];c||(c=l[u]={});var h=c[f];h?h.traces.push(r):h=c[f]={traces:[r],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=i("offsetgroup")||"",p=h.offsetGroups,_=p[d];r._offsetIndex=0,(a!=="group"||d)&&(_||(_=p[d]={offsetIndex:Object.keys(p).length}),r._offsetIndex=_.offsetIndex)}});var dU=Te((Tsr,ipe)=>{"use strict";var _vt=ei(),xvt=Gb(),bvt=Zc();ipe.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return _vt.coerce(i._input,i,bvt,h)}if(r.scattermode==="group")for(a=0;a=0;f--){var c=t[f];if(c.type==="scatter"&&c.xaxis===u.xaxis&&c.yaxis===u.yaxis){c.opacity=void 0;break}}}}}});var ape=Te((Ssr,npe)=>{"use strict";var wvt=ei(),Avt=jL();npe.exports=function(e,t){function r(i,a){return wvt.coerce(e,t,Avt,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var Im=Te((Msr,spe)=>{"use strict";var Tvt=ku(),ope=ei(),Svt=ope.dateTime2ms,Yz=ope.incrementMonth,Mvt=nf(),Evt=Mvt.ONEAVGMONTH;spe.exports=function(t,r,n,i){if(r.type!=="date")return{vals:i};var a=t[n+"periodalignment"];if(!a)return{vals:i};var o=t[n+"period"],s;if(Tvt(o)){if(o=+o,o<=0)return{vals:i}}else if(typeof o=="string"&&o.charAt(0)==="M"){var u=+o.substring(1);if(u>0&&Math.round(u)===u)s=u;else return{vals:i}}for(var l=r.calendar,f=a==="start",c=a==="end",h=t[n+"period0"],d=Svt(h,l)||0,p=[],_=[],b=[],v=i.length,k=0;kE;)x=Yz(x,-s,l);for(;x<=E;)x=Yz(x,s,l);L=Yz(x,-s,l)}else{for(T=Math.round((E-d)/o),x=d+T*o;x>E;)x-=o;for(;x<=E;)x+=o;L=x-o}p[k]=f?L:c?x:(L+x)/2,_[k]=L,b[k]=x}return{vals:p,starts:_,ends:b}}});var F0=Te((Esr,upe)=>{"use strict";var pU=yp().hasColorscale,vU=gp(),lpe=lc();upe.exports=function(t,r){lpe.hasLines(r)&&pU(r,"line")&&vU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),lpe.hasMarkers(r)&&(pU(r,"marker")&&vU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),pU(r,"marker.line")&&vU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var ky=Te((ksr,fpe)=>{"use strict";var ch=ei();fpe.exports=function(t,r){for(var n=0;n{"use strict";var cpe=ei();hpe.exports=function(t,r){cpe.isArrayOrTypedArray(r.selectedpoints)&&cpe.tagSelected(t,r)}});var O0=Te((Lsr,_pe)=>{"use strict";var dpe=ku(),yU=ei(),Y5=wu(),ppe=Im(),mU=nf().BADNUM,gU=lc(),kvt=F0(),Cvt=ky(),Lvt=B0();function Pvt(e,t){var r=e._fullLayout,n=t._xA=Y5.getFromId(e,t.xaxis||"x","x"),i=t._yA=Y5.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=ppe(t,n,"x",a),u=ppe(t,i,"y",o),l=s.vals,f=u.vals,c=t._length,h=new Array(c),d=t.ids,p=_U(t,r,n,i),_=!1,b,v,k,E,T,L;ype(r,t);var x="x",C="y",M;if(p)yU.pushUnique(p.traceIndices,t.index),b=p.orientation==="v",b?(C="s",M="x"):(x="s",M="y"),T=p.stackgaps==="interpolate";else{var m=mpe(t,c);vpe(e,t,n,i,l,f,m)}var P=!!t.xperiodalignment,A=!!t.yperiodalignment;for(v=0;vv&&h[E].gap;)E--;for(L=h[E].s,k=h.length-1;k>E;k--)h[k].s=L;for(;v{"use strict";xpe.exports=Kz;var zvt=ei().distinctVals;function Kz(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,n=t.posAxis._id.charAt(0),i=[],a=0;a{"use strict";var q0=ku(),v_=ei().isArrayOrTypedArray,eA=nf().BADNUM,Ivt=$l(),K5=wu(),Rvt=qb().getAxisGroup,Jz=bpe();function Dvt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],u=[],l=0;lu+o||!q0(s))}for(var f=0;f{"use strict";var Mpe=O0(),Epe=Hb().setGroupPositions;function Xvt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],u=[],l=0;lm[f]&&f{"use strict";var Yvt=Mu(),Ipe=nf(),J5=Ipe.BADNUM,Rpe=Ipe.LOG_CLIP,Lpe=Rpe+.5,Ppe=Rpe-.5,$z=ei(),Kvt=$z.segmentsIntersect,zpe=$z.constrain,SU=Sy();Dpe.exports=function(t,r){var n=r.trace||{},i=r.xaxis,a=r.yaxis,o=i.type==="log",s=a.type==="log",u=i._length,l=a._length,f=r.backoff,c=n.marker,h=r.connectGaps,d=r.baseTolerance,p=r.shape,_=p==="linear",b=n.fill&&n.fill!=="none",v=[],k=SU.minTolerance,E=t.length,T=new Array(E),L=0,x,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae;function be(Ie){var xe=t[Ie];if(!xe)return!1;var Oe=r.linearized?i.l2p(xe.x):i.c2p(xe.x),Re=r.linearized?a.l2p(xe.y):a.c2p(xe.y);if(Oe===J5){if(o&&(Oe=i.c2p(xe.x,!0)),Oe===J5)return!1;s&&Re===J5&&(Oe*=Math.abs(i._m*l*(i._m>0?Lpe:Ppe)/(a._m*u*(a._m>0?Lpe:Ppe)))),Oe*=1e3}if(Re===J5){if(s&&(Re=a.c2p(xe.y,!0)),Re===J5)return!1;Re*=1e3}return[Oe,Re]}function Pe(Ie,xe,Oe,Re){var De=Oe-Ie,ct=Re-xe,ge=.5-Ie,fe=.5-xe,pe=De*De+ct*ct,dt=De*ge+ct*fe;if(dt>0&&dt1||Math.abs(ge.y-Oe[0][1])>1)&&(ge=[ge.x,ge.y],Re&&ke(ge,Ie)Ne||Ie[1]ye)return[zpe(Ie[0],Me,Ne),zpe(Ie[1],Fe,ye)]}function Tt(Ie,xe){if(Ie[0]===xe[0]&&(Ie[0]===Me||Ie[0]===Ne)||Ie[1]===xe[1]&&(Ie[1]===Fe||Ie[1]===ye))return!0}function St(Ie,xe){var Oe=[],Re=kt(Ie),De=kt(xe);return Re&&De&&Tt(Re,De)||(Re&&Oe.push(Re),De&&Oe.push(De)),Oe}function Rt(Ie,xe,Oe){return function(Re,De){var ct=kt(Re),ge=kt(De),fe=[];if(ct&&ge&&Tt(ct,ge))return fe;ct&&fe.push(ct),ge&&fe.push(ge);var pe=2*$z.constrain((Re[Ie]+De[Ie])/2,xe,Oe)-((ct||Re)[Ie]+(ge||De)[Ie]);if(pe){var dt;ct&&ge?dt=pe>0==ct[Ie]>ge[Ie]?ct:ge:dt=ct||ge,dt[Ie]+=pe}return fe}}var Zt;p==="linear"||p==="spline"?Zt=Ye:p==="hv"||p==="vh"?Zt=St:p==="hvh"?Zt=Rt(0,Me,Ne):p==="vhv"&&(Zt=Rt(1,Fe,ye));function Et(Ie,xe){var Oe=xe[0]-Ie[0],Re=(xe[1]-Ie[1])/Oe,De=(Ie[1]*xe[0]-xe[1]*Ie[0])/Oe;return De>0?[Re>0?Me:Ne,ye]:[Re>0?Ne:Me,Fe]}function Ae(Ie){var xe=Ie[0],Oe=Ie[1],Re=xe===T[L-1][0],De=Oe===T[L-1][1];if(!(Re&&De))if(L>1){var ct=xe===T[L-2][0],ge=Oe===T[L-2][1];Re&&(xe===Me||xe===Ne)&&ct?ge?L--:T[L-1]=Ie:De&&(Oe===Fe||Oe===ye)&&ge?ct?L--:T[L-1]=Ie:T[L++]=Ie}else T[L++]=Ie}function at(Ie){T[L-1][0]!==Ie[0]&&T[L-1][1]!==Ie[1]&&Ae([nt,gt]),Ae(Ie),Nt=null,nt=gt=0}var wt=$z.isArrayOrTypedArray(c);function vt(Ie){if(Ie&&f&&(Ie.i=x,Ie.d=t,Ie.trace=n,Ie.marker=wt?c[Ie.i]:c,Ie.backoff=f),Ce=Ie[0]/u,de=Ie[1]/l,ce=Ie[0]Ne?Ne:0,Ke=Ie[1]ye?ye:0,ce||Ke){if(!L)T[L++]=[ce||Ie[0],Ke||Ie[1]];else if(Nt){var xe=Zt(Nt,Ie);xe.length>1&&(at(xe[0]),T[L++]=xe[1])}else it=Zt(T[L-1],Ie)[0],T[L++]=it;var Oe=T[L-1];ce&&Ke&&(Oe[0]!==ce||Oe[1]!==Ke)?(Nt&&(nt!==ce&>!==Ke?Ae(nt&>?Et(Nt,Ie):[nt||ce,gt||Ke]):nt&>&&Ae([nt,gt])),Ae([ce,Ke])):nt-ce&>-Ke&&Ae([ce||nt,Ke||gt]),Nt=Ie,nt=ce,gt=Ke}else Nt&&at(Zt(Nt,Ie)[0]),T[L++]=Ie}for(x=0;xte(A,st))break;M=A,N=U[0]*F[0]+U[1]*F[1],N>j?(j=N,m=A,B=!1):N=t.length||!A)break;vt(A),C=A}}Nt&&Ae([nt||Nt[0],gt||Nt[1]]),v.push(T.slice(0,L))}var Ue=p.slice(p.length-1);if(f&&Ue!=="h"&&Ue!=="v"){for(var rt=!1,$e=-1,zt=[],Yt=0;Yt{"use strict";var Fpe={tonextx:1,tonexty:1,tonext:1};Bpe.exports=function(t,r,n){var i,a,o,s,u,l={},f=!1,c=-1,h=0,d=-1;for(a=0;a=0?u=d:(u=d=h,h++),u{"use strict";var Rm=Jl(),Jvt=$l(),$5=ei(),rA=$5.ensureSingle,qpe=$5.identity,hh=Mu(),iA=lc(),$vt=MU(),Qvt=EU(),Qz=E5().tester;Npe.exports=function(t,r,n,i,a,o){var s,u,l=!a,f=!!a&&a.duration>0,c=Qvt(t,r,n);if(s=i.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),e0t(t,s,r),f){o&&(u=o());var h=Rm.transition().duration(a.duration).ease(a.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});h.each(function(){i.selectAll("g.trace").each(function(d,p){Ope(t,p,r,d,c,this,a)})})}else s.each(function(d,p){Ope(t,p,r,d,c,this,a)});l&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function e0t(e,t,r){t.each(function(n){var i=rA(Rm.select(this),"g","fills");hh.setClipUrl(i,r.layerClipId,e);var a=n[0].trace,o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=i.selectAll("g").data(o,qpe);s.enter().append("g"),s.exit().each(function(u){a[u]=null}).remove(),s.order().each(function(u){a[u]=rA(Rm.select(this),"path","js-fill")})})}function Ope(e,t,r,n,i,a,o){var s=e._context.staticPlot,u;t0t(e,t,r,n,i);var l=!!o&&o.duration>0;function f(Rt){return l?Rt.transition():Rt}var c=r.xaxis,h=r.yaxis,d=n[0].trace,p=d.line,_=Rm.select(a),b=rA(_,"g","errorbars"),v=rA(_,"g","lines"),k=rA(_,"g","points"),E=rA(_,"g","text");if(Jvt.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;f(_).style("opacity",d.opacity);var T,L,x=d.fill.charAt(d.fill.length-1);x!=="x"&&x!=="y"&&(x="");var C,M;x==="y"?(C=1,M=h.c2p(0,!0)):x==="x"&&(C=0,M=c.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=_;var m="",P=[],A=d._prevtrace,B=null,F=null;A&&(m=A._prevRevpath||"",L=A._nextFill,P=A._ownPolygons,B=A._fillsegments,F=A._fillElement);var U,G,j="",H="",N,W,re,ae,be,Pe,Ce=[];d._polygons=[];var de=[],te=[],ke=$5.noop;if(T=d._ownFill,iA.hasLines(d)||d.fill!=="none"){L&&L.datum(n),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(N=hh.steps(p.shape),W=hh.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?N=W=function(Rt){var Zt=Rt[Rt.length-1];return Rt.length>1&&Rt[0][0]===Zt[0]&&Rt[0][1]===Zt[1]?hh.smoothclosed(Rt.slice(1),p.smoothing):hh.smoothopen(Rt,p.smoothing)}:N=W=function(Rt){return"M"+Rt.join("L")},re=function(Rt){return W(Rt.reverse())},te=$vt(n,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),de=new Array(te.length);var Ee=0;for(u=0;u=s[0]&&_.x<=s[1]&&_.y>=u[0]&&_.y<=u[1]}),h=Math.ceil(c.length/f),d=0;i.forEach(function(_,b){var v=_[0].trace;iA.hasMarkers(v)&&v.marker.maxdisplayed>0&&b{"use strict";Upe.exports={container:"marker",min:"cmin",max:"cmax"}});var tI=Te((Osr,Vpe)=>{"use strict";var eI=wu();Vpe.exports=function(t,r,n){var i={},a={_fullLayout:n},o=eI.getFromTrace(a,r,"x"),s=eI.getFromTrace(a,r,"y"),u=t.orig_x;u===void 0&&(u=t.x);var l=t.orig_y;return l===void 0&&(l=t.y),i.xLabel=eI.tickText(o,o.c2l(u),!0).text,i.yLabel=eI.tickText(s,s.c2l(l),!0).text,i}});var ov=Te((qsr,Gpe)=>{"use strict";var kU=Jl(),aA=Mu(),r0t=$l();function i0t(e){var t=kU.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var n=kU.select(this),i=r.trace||r[0].trace;CU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=kU.select(this),i=r.trace||r[0].trace;LU(n,i,e)}),t.selectAll("g.trace path.js-line").call(aA.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(aA.fillGroupStyle,e,!1),r0t.getComponentMethod("errorbars","style")(t)}function CU(e,t,r){aA.pointStyle(e.selectAll("path.point"),t,r)}function LU(e,t,r){aA.textPointStyle(e.selectAll("text"),t,r)}function n0t(e,t,r){var n=t[0].trace;n.selectedpoints?(aA.selectedPointStyle(r.selectAll("path.point"),n),aA.selectedTextStyle(r.selectAll("text"),n)):(CU(r,n,e),LU(r,n,e))}Gpe.exports={style:i0t,stylePoints:CU,styleText:LU,styleOnSelect:n0t}});var sA=Te((Nsr,Hpe)=>{"use strict";var oA=jl(),a0t=lc();Hpe.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&oA.opacity(n)?n:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return i=a&&oA.opacity(a)?a:o&&oA.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?oA.opacity(i)<.3?oA.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&oA.opacity(n)&&a0t.hasLines(t)&&t.line.width?n:t.fillcolor)}});var lA=Te((Usr,jpe)=>{"use strict";var rI=ei(),Wpe=Xc(),o0t=$l(),s0t=sA(),PU=jl(),l0t=rI.fillText;jpe.exports=function(t,r,n,i){var a=t.cd,o=a[0].trace,s=t.xa,u=t.ya,l=s.c2p(r),f=u.c2p(n),c=[l,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,_=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(H){if(p){var N=s.c2p(H.xStart),W=s.c2p(H.xEnd);return l>=Math.min(N,W)&&l<=Math.max(N,W)?0:1/0}var re=Math.max(3,H.mrc||0),ae=1-1/re,be=Math.abs(s.c2p(H.x)-l);return be=Math.min(N,W)&&f<=Math.max(N,W)?0:1/0}var re=Math.max(3,H.mrc||0),ae=1-1/re,be=Math.abs(u.c2p(H.y)-f);return beCe!=ye>=Ce&&(Me=ke[te-1][0],Ne=ke[te][0],ye-Fe&&(Ee=Me+(Ne-Me)*(Ce-Fe)/(ye-Fe),re=Math.min(re,Ee),ae=Math.max(ae,Ee)));return re=Math.max(re,0),ae=Math.min(ae,s._length),{x0:re,x1:ae,y0:Ce,y1:Ce}}if(h.indexOf("fills")!==-1&&o._fillElement){var U=B(o._fillElement)&&!B(o._fillExclusionElement);if(U){var G=F(o._polygons);G===null&&(G={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var j=PU.defaultLine;return PU.opacity(o.fillcolor)?j=o.fillcolor:PU.opacity((o.line||{}).color)&&(j=o.line.color),rI.extendFlat(t,{distance:t.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:j,hovertemplate:!1}),delete t.index,o.text&&!rI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var uA=Te((Vsr,Zpe)=>{"use strict";var Xpe=lc();Zpe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u,l,f,c,h=!Xpe.hasMarkers(s)&&!Xpe.hasText(s);if(h)return[];if(r===!1)for(u=0;u{"use strict";Ype.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var IU=Te((Hsr,Qpe)=>{"use strict";var Q5=$l().traceIs,zU=L3();Qpe.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(u0t(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function u0t(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=f0t(t,r,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=n+"calendar",s=a[o],u={noMultiCategory:!Q5(a,"cartesian")||Q5(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,$pe(a,n)){var l=Jpe(a),f=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if($pe(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function Jpe(e){return{v:"x",h:"y"}[e.orientation||"v"]}function $pe(e,t){var r=Jpe(e),n=Q5(e,"box-violin"),i=Q5(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var iI=Te((Wsr,eve)=>{"use strict";var c0t=mp().isTypedArraySpec;function h0t(e,t){var r=t.dataAttr||e._id.charAt(0),n={},i,a,o;if(t.axData)i=t.axData;else for(i=[],a=0;a0||c0t(a),s;o&&(s="array");var u=n("categoryorder",s),l;u==="array"&&(l=n("categoryarray")),!o&&u==="array"&&(u=r.categoryorder="trace"),u==="trace"?r._initialCategories=[]:u==="array"?r._initialCategories=l.slice():(l=h0t(r,i).sort(),u==="category ascending"?r._initialCategories=l:u==="category descending"&&(r._initialCategories=l.reverse()))}}});var eE=Te((jsr,rve)=>{"use strict";var tve=cd().mix,d0t=Rh(),p0t=ei();rve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(M,m){return p0t.coerce2(t,r,i.attributes,M,m)}var s=o("linecolor",a),u=o("linewidth"),l=n("showline",i.showLine||!!s||!!u);l||(delete r.linecolor,delete r.linewidth);var f=tve(a,i.bgColor,i.blend||d0t.lightFraction).toRgbString(),c=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),p=n("showgrid",i.showGrid||!!c||!!h||!!d);if(p||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),i.hasMinor){var _=tve(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",_),v=o("minor.gridwidth",r.gridwidth||1),k=o("minor.griddash",r.griddash||"solid"),E=n("minor.showgrid",!!b||!!v||!!k);E||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!i.noZeroLine){var T=o("zerolinelayer"),L=o("zerolinecolor",a),x=o("zerolinewidth"),C=n("zeroline",i.showGrid||!!L||!!x);C||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var rE=Te((Xsr,lve)=>{"use strict";var ive=ku(),v0t=$l(),tE=ei(),m0t=Pf(),y0t=Jd(),RU=Dd(),nve=xb(),ave=A3(),g0t=e_(),_0t=t_(),x0t=iI(),b0t=eE(),w0t=EN(),ove=gy(),nI=dd().WEEKDAY_PATTERN,A0t=dd().HOUR_PATTERN;lve.exports=function(t,r,n,i,a){var o=i.letter,s=i.font||{},u=i.splomStash||{},l=n("visible",!i.visibleDflt),f=r._template||{},c=r.type||f.type||"-",h;if(c==="date"){var d=v0t.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",i.calendar),i.noTicklabelmode||(h=n("ticklabelmode"))}!i.noTicklabelindex&&(c==="date"||c==="linear")&&n("ticklabelindex");var p="";(!i.noTicklabelposition||c==="multicategory")&&(p=tE.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),i.noTicklabeloverflow||n("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),ove(r,a),w0t(t,r,n,i),x0t(t,r,n,i),i.noHover||(c!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var _=n("color"),b=_!==RU.color.dflt?_:s.color,v=u.label||a._dfltTitle[o];if(_0t(t,r,n,c,i),!l)return r;n("title.text",v),tE.coerceFont(n,"title.font",s,{overrideDflt:{size:tE.bigFont(s.size),color:b}}),nve(t,r,n,c);var k=i.hasMinor;if(k&&(m0t.newContainer(r,"minor"),nve(t,r,n,c,{isMinor:!0})),g0t(t,r,n,c,i),ave(t,r,n,i),k){var E=i.isMinor;i.isMinor=!0,ave(t,r,n,i),i.isMinor=E}b0t(t,r,n,{dfltColor:_,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:k,attributes:RU}),k&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var T=c==="multicategory";if(!i.noTickson&&(c==="category"||T)&&(r.ticks||r.showgrid)&&(T?(n("tickson","boundaries"),delete r.ticklabelposition):n("tickson")),T){var L=n("showdividers");L&&(n("dividercolor"),n("dividerwidth"))}if(c==="date")if(y0t(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:T0t}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var x=0;x=2){var o="",s,u;if(a.length===2){for(s=0;s<2;s++)if(u=sve(a[s]),u){o=nI;break}}var l=n("pattern",o);if(l===nI)for(s=0;s<2;s++)u=sve(a[s]),u&&(t.bounds[s]=a[s]=u-1);if(l)for(s=0;s<2;s++)switch(u=a[s],l){case nI:if(!ive(u)){t.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){t.enabled=!1;return}t.bounds[s]=a[s]=u;break;case A0t:if(!ive(u)){t.enabled=!1;return}if(u=+u,u<0||u>24){t.enabled=!1;return}t.bounds[s]=a[s]=u;break}if(r.autorange===!1){var f=r.range;if(f[0]f[1]){t.enabled=!1;return}}else if(a[0]>f[0]&&a[1]{"use strict";var M0t=ku(),aI=ei();uve.exports=function(t,r,n,i){var a=i.counterAxes||[],o=i.overlayableAxes||[],s=i.letter,u=i.grid,l=i.overlayingDomain,f,c,h,d,p,_;u&&(c=u._domains[s][u._axisMap[r._id]],f=u._anchors[r._id],c&&(h=u[s+"side"].split(" ")[0],d=u.domain[s][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(M0t(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,p=0,_=!1;var b=aI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:f}},"anchor"),v=aI.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(s==="y"){var k=n("autoshift");k&&(d=v==="left"?l[0]:l[1],_=r.automargin?r.automargin:!0,p=v==="left"?-3:3),n("shift",p)}n("position",d)}n("automargin",_);var E=!1;if(o.length&&(E=aI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!E){var T=n("domain",c);T[0]>T[1]-1/4096&&(r.domain=c),aI.noneOrAll(t.domain,r.domain,c),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var gve=Te((Ysr,yve)=>{"use strict";var Wb=ei(),fve=jl(),E0t=iv().isUnifiedHover,k0t=$N(),cve=Pf(),C0t=s3(),hve=Dd(),L0t=IU(),dve=rE(),P0t=qb(),pve=oI(),FU=Wc(),Cy=FU.id2name,vve=FU.name2id,z0t=dd().AX_ID_PATTERN,mve=$l(),sI=mve.traceIs,DU=mve.getComponentMethod;function lI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}yve.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},u={},l={},f={},c={},h={},d={},p={},_,b;for(_=0;_{"use strict";var I0t=Jl(),_ve=$l(),uI=ei(),Qv=Mu(),fI=wu();xve.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){fI.redrawComponents(t);return}function o(b){var v=b.xaxis,k=b.yaxis;a._defs.select("#"+b.clipId+"> rect").call(Qv.setTranslate,0,0).call(Qv.setScale,1,1),b.plot.call(Qv.setTranslate,v._offset,k._offset).call(Qv.setScale,1,1);var E=b.plot.selectAll(".scatterlayer .trace");E.selectAll(".point").call(Qv.setPointGroupScale,1,1),E.selectAll(".textpoint").call(Qv.setTextPointsScale,1,1),E.call(Qv.hideOutsideRangePoints,b)}function s(b,v){var k=b.plotinfo,E=k.xaxis,T=k.yaxis,L=E._length,x=T._length,C=!!b.xr1,M=!!b.yr1,m=[];if(C){var P=uI.simpleMap(b.xr0,E.r2l),A=uI.simpleMap(b.xr1,E.r2l),B=P[1]-P[0],F=A[1]-A[0];m[0]=(P[0]*(1-v)+v*A[0]-P[0])/(P[1]-P[0])*L,m[2]=L*(1-v+v*F/B),E.range[0]=E.l2r(P[0]*(1-v)+v*A[0]),E.range[1]=E.l2r(P[1]*(1-v)+v*A[1])}else m[0]=0,m[2]=L;if(M){var U=uI.simpleMap(b.yr0,T.r2l),G=uI.simpleMap(b.yr1,T.r2l),j=U[1]-U[0],H=G[1]-G[0];m[1]=(U[1]*(1-v)+v*G[1]-U[1])/(U[0]-U[1])*x,m[3]=x*(1-v+v*H/j),T.range[0]=E.l2r(U[0]*(1-v)+v*G[0]),T.range[1]=T.l2r(U[1]*(1-v)+v*G[1])}else m[1]=0,m[3]=x;fI.drawOne(t,E,{skipTitle:!0}),fI.drawOne(t,T,{skipTitle:!0}),fI.redrawComponents(t,[E._id,T._id]);var N=C?L/m[2]:1,W=M?x/m[3]:1,re=C?m[0]:0,ae=M?m[1]:0,be=C?m[0]/m[2]*L:0,Pe=M?m[1]/m[3]*x:0,Ce=E._offset-be,de=T._offset-Pe;k.clipRect.call(Qv.setTranslate,re,ae).call(Qv.setScale,1/N,1/W),k.plot.call(Qv.setTranslate,Ce,de).call(Qv.setScale,N,W),Qv.setPointGroupScale(k.zoomScalePts,1/N,1/W),Qv.setTextPointsScale(k.zoomScaleTxt,1/N,1/W)}var u;i&&(u=i());function l(){for(var b={},v=0;vn.duration?(l(),d=window.cancelAnimationFrame(_)):d=window.requestAnimationFrame(_)}return c=Date.now(),d=window.requestAnimationFrame(_),Promise.resolve()}});var Th=Te(wp=>{"use strict";var hI=Jl(),wve=$l(),jb=ei(),R0t=Cc(),D0t=Mu(),Ave=Rd().getModuleCalcData,m_=Wc(),Dm=dd(),F0t=jv(),Zf=jb.ensureSingle;function cI(e,t,r){return jb.ensureSingle(e,t,r,function(n){n.datum(r)})}var Xb=Dm.zindexSeparator;wp.name="cartesian";wp.attr=["xaxis","yaxis"];wp.idRoot=["x","y"];wp.idRegex=Dm.idRegex;wp.attrRegex=Dm.attrRegex;wp.attributes=Kpe();wp.layoutAttributes=Dd();wp.supplyLayoutDefaults=gve();wp.transitionAxes=bve();wp.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,i=r.yaxis,a=r.cartesian,o=a,s={},u={},l,f,c;for(l=0;l0){var d=h.id;if(d.indexOf(Xb)!==-1)continue;d+=Xb+(l+1),h=jb.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],_,b=0;b1&&(L+=Xb+T),E.push(s+L),o=0;o1,c=t.mainplotinfo;if(!t.mainplot||f)if(l)t.xlines=Zf(n,"path","xlines-above"),t.ylines=Zf(n,"path","ylines-above"),t.xaxislayer=Zf(n,"g","xaxislayer-above"),t.yaxislayer=Zf(n,"g","yaxislayer-above");else{if(!o){var h=Zf(n,"g","layer-subplot");t.shapelayer=Zf(h,"g","shapelayer"),t.imagelayer=Zf(h,"g","imagelayer"),c&&f?(t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer):(t.minorGridlayer=Zf(n,"g","minor-gridlayer"),t.gridlayer=Zf(n,"g","gridlayer"),t.zerolinelayer=Zf(n,"g","zerolinelayer"));var d=Zf(n,"g","layer-between");t.shapelayerBetween=Zf(d,"g","shapelayer"),t.imagelayerBetween=Zf(d,"g","imagelayer"),Zf(n,"path","xlines-below"),Zf(n,"path","ylines-below"),t.overlinesBelow=Zf(n,"g","overlines-below"),Zf(n,"g","xaxislayer-below"),Zf(n,"g","yaxislayer-below"),t.overaxesBelow=Zf(n,"g","overaxes-below")}t.overplot=Zf(n,"g","overplot"),t.plot=Zf(t.overplot,"g",i),c&&f?t.zerolinelayerAbove=c.zerolinelayerAbove:t.zerolinelayerAbove=Zf(n,"g","zerolinelayer-above"),o||(t.xlines=Zf(n,"path","xlines-above"),t.ylines=Zf(n,"path","ylines-above"),t.overlinesAbove=Zf(n,"g","overlines-above"),Zf(n,"g","xaxislayer-above"),Zf(n,"g","yaxislayer-above"),t.overaxesAbove=Zf(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+s),t.ylines=n.select(".ylines-"+u),t.xaxislayer=n.select(".xaxislayer-"+s),t.yaxislayer=n.select(".yaxislayer-"+u))}else{var p=c.plotgroup,_=i+"-x",b=i+"-y";t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer,t.zerolinelayerAbove=c.zerolinelayerAbove,Zf(c.overlinesBelow,"path",_),Zf(c.overlinesBelow,"path",b),Zf(c.overaxesBelow,"g",_),Zf(c.overaxesBelow,"g",b),t.plot=Zf(c.overplot,"g",i),Zf(c.overlinesAbove,"path",_),Zf(c.overlinesAbove,"path",b),Zf(c.overaxesAbove,"g",_),Zf(c.overaxesAbove,"g",b),t.xlines=p.select(".overlines-"+s).select("."+_),t.ylines=p.select(".overlines-"+u).select("."+b),t.xaxislayer=p.select(".overaxes-"+s).select("."+_),t.yaxislayer=p.select(".overaxes-"+u).select("."+b)}o||(l||(cI(t.minorGridlayer,"g",t.xaxis._id),cI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(v){return v[0]}).sort(m_.idSort),cI(t.gridlayer,"g",t.xaxis._id),cI(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(v){return v[0]}).sort(m_.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function Mve(e,t){if(e){var r={};e.each(function(u){var l=u[0],f=hI.select(this);f.remove(),Eve(l,t),r[l]=!0});for(var n in t._plots)for(var i=t._plots[n],a=i.overlays||[],o=0;o{"use strict";var dI=lc();kve.exports={hasLines:dI.hasLines,hasMarkers:dI.hasMarkers,hasText:dI.hasText,isBubble:dI.isBubble,attributes:Zc(),layoutAttributes:jL(),supplyDefaults:tpe(),crossTraceDefaults:dU(),supplyLayoutDefaults:ape(),calc:O0().calc,crossTraceCalc:Cpe(),arraysToCalcdata:ky(),plot:nA(),colorbar:ep(),formatLabels:tI(),style:ov().style,styleOnSelect:ov().styleOnSelect,hoverPoints:lA(),selectPoints:uA(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Th(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var zve=Te((Qsr,Pve)=>{"use strict";var O0t=Jl(),q0t=jl(),Lve=N7(),BU=ei(),N0t=BU.strScale,U0t=BU.strRotate,V0t=BU.strTranslate;Pve.exports=function(t,r,n){var i=t.node(),a=Lve[n.arrowhead||0],o=Lve[n.startarrowhead||0],s=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),l=r.indexOf("start")>=0,f=r.indexOf("end")>=0,c=a.backoff*s+n.standoff,h=o.backoff*u+n.startstandoff,d,p,_,b;if(i.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},p={x:+t.attr("x2"),y:+t.attr("y2")};var v=d.x-p.x,k=d.y-p.y;if(_=Math.atan2(k,v),b=_+Math.PI,c&&h&&c+h>Math.sqrt(v*v+k*k)){U();return}if(c){if(c*c>v*v+k*k){U();return}var E=c*Math.cos(_),T=c*Math.sin(_);p.x+=E,p.y+=T,t.attr({x2:p.x,y2:p.y})}if(h){if(h*h>v*v+k*k){U();return}var L=h*Math.cos(_),x=h*Math.sin(_);d.x-=L,d.y-=x,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var C=i.getTotalLength(),M="";if(C{"use strict";var Ive=Jl(),OU=$l(),G0t=Cc(),g_=ei(),qU=g_.strTranslate,nE=wu(),Zb=jl(),Pg=Mu(),Rve=Xc(),NU=Xf(),UU=Tm(),iE=xp(),H0t=Pf().arrayEditor,W0t=zve();Bve.exports={draw:j0t,drawOne:Dve,drawRaw:Fve};function j0t(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?De="right":De="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[De]}for(var Fe=!1,ye=["x","y"],Ve=0;Ve1)&&(nt===Ke?(st=gt.r2fraction(t["a"+ce]),(st<0||st>1)&&(Fe=!0)):Fe=!0),Zt=gt._offset+gt.r2p(t[ce]),at=.5}else{var Ue=vt==="domain";ce==="x"?(Ae=t[ce],Zt=Ue?gt._offset+gt._length*Ae:Zt=s.l+s.w*Ae):(Ae=1-t[ce],Zt=Ue?gt._offset+gt._length*Ae:Zt=s.t+s.h*Ae),at=t.showarrow?.5:Ae}if(t.showarrow){Rt.head=Zt;var rt=t["a"+ce];if(wt=it*Ne(.5,t.xanchor)-Ye*Ne(.5,t.yanchor),nt===Ke){var $e=nE.getRefType(nt);$e==="domain"?(ce==="y"&&(rt=1-rt),Rt.tail=gt._offset+gt._length*rt):$e==="paper"?ce==="y"?(rt=1-rt,Rt.tail=s.t+s.h*rt):Rt.tail=s.l+s.w*rt:Rt.tail=gt._offset+gt.r2p(rt),Et=wt}else Rt.tail=Zt+rt,Et=wt+rt;Rt.text=Rt.tail+wt;var zt=o[ce==="x"?"width":"height"];if(Ke==="paper"&&(Rt.head=g_.constrain(Rt.head,1,zt-1)),nt==="pixel"){var Yt=-Math.max(Rt.tail-3,Rt.text),hr=Math.min(Rt.tail+3,Rt.text)-zt;Yt>0?(Rt.tail+=Yt,Rt.text+=Yt):hr>0&&(Rt.tail-=hr,Rt.text-=hr)}Rt.tail+=St,Rt.head+=St}else wt=kt*Ne(at,Tt),Et=wt,Rt.text=Zt+wt;Rt.text+=St,wt+=St,Et+=St,t["_"+ce+"padplus"]=kt/2+Et,t["_"+ce+"padminus"]=kt/2-Et,t["_"+ce+"size"]=kt,t["_"+ce+"shift"]=wt}if(Fe){C.remove();return}var yr=0,br=0;if(t.align!=="left"&&(yr=(te-Ce)*(t.align==="center"?.5:1)),t.valign!=="top"&&(br=(ke-de)*(t.valign==="middle"?.5:1)),be)ae.select("svg").attr({x:P+yr-1,y:P+br}).call(Pg.setClipUrl,B?_:null,e);else{var Ut=P+br-Pe.top,Ie=P+yr-Pe.left;j.call(NU.positionText,Ie,Ut).call(Pg.setClipUrl,B?_:null,e)}F.select("rect").call(Pg.setRect,P,P,te,ke),A.call(Pg.setRect,M/2,M/2,Ee-M,Me-M),C.call(Pg.setTranslate,Math.round(b.x.text-Ee/2),Math.round(b.y.text-Me/2)),E.attr({transform:"rotate("+v+","+b.x.text+","+b.y.text+")"});var xe=function(Re,De){k.selectAll(".annotation-arrow-g").remove();var ct=b.x.head,ge=b.y.head,fe=b.x.tail+Re,pe=b.y.tail+De,dt=b.x.text+Re,It=b.y.text+De,Pt=g_.rotationXYMatrix(v,dt,It),rr=g_.apply2DTransform(Pt),Hr=g_.apply2DTransform2(Pt),Dr=+A.attr("width"),Mr=+A.attr("height"),Fr=dt-.5*Dr,di=Fr+Dr,Di=It-.5*Mr,Ii=Di+Mr,Ci=[[Fr,Di,Fr,Ii],[Fr,Ii,di,Ii],[di,Ii,di,Di],[di,Di,Fr,Di]].map(Hr);if(!Ci.reduce(function(Ir,Gr){return Ir^!!g_.segmentsIntersect(ct,ge,ct+1e6,ge+1e6,Gr[0],Gr[1],Gr[2],Gr[3])},!1)){Ci.forEach(function(Ir){var Gr=g_.segmentsIntersect(fe,pe,ct,ge,Ir[0],Ir[1],Ir[2],Ir[3]);Gr&&(fe=Gr.x,pe=Gr.y)});var nn=t.arrowwidth,ii=t.arrowcolor,wi=t.arrowside,Gi=k.append("g").style({opacity:Zb.opacity(ii)}).classed("annotation-arrow-g",!0),Bt=Gi.append("path").attr("d","M"+fe+","+pe+"L"+ct+","+ge).style("stroke-width",nn+"px").call(Zb.stroke,Zb.rgb(ii));if(W0t(Bt,wi,t),u.annotationPosition&&Bt.node().parentNode&&!n){var yt=ct,Vt=ge;if(t.standoff){var Wt=Math.sqrt(Math.pow(ct-fe,2)+Math.pow(ge-pe,2));yt+=t.standoff*(fe-ct)/Wt,Vt+=t.standoff*(pe-ge)/Wt}var _r=Gi.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(fe-yt)+","+(pe-Vt),transform:qU(yt,Vt)}).style("stroke-width",nn+6+"px").call(Zb.stroke,"rgba(0,0,0,0)").call(Zb.fill,"rgba(0,0,0,0)"),Lr,Ur;iE.init({element:_r.node(),gd:e,prepFn:function(){var Ir=Pg.getTranslate(C);Lr=Ir.x,Ur=Ir.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function(Ir,Gr){var jr=rr(Lr,Ur),yi=jr[0]+Ir,Ei=jr[1]+Gr;C.call(Pg.setTranslate,yi,Ei),d("x",y_(i,Ir,"x",s,t)),d("y",y_(a,Gr,"y",s,t)),t.axref===t.xref&&d("ax",y_(i,Ir,"ax",s,t)),t.ayref===t.yref&&d("ay",y_(a,Gr,"ay",s,t)),Gi.attr("transform",qU(Ir,Gr)),E.attr({transform:"rotate("+v+","+yi+","+Ei+")"})},doneFn:function(){OU.call("_guiRelayout",e,p());var Ir=document.querySelector(".js-notes-box-panel");Ir&&Ir.redraw(Ir.selectedObj)}})}}};if(t.showarrow&&xe(0,0),T){var Oe;iE.init({element:C.node(),gd:e,prepFn:function(){Oe=E.attr("transform")},moveFn:function(Re,De){var ct="pointer";if(t.showarrow)t.axref===t.xref?d("ax",y_(i,Re,"ax",s,t)):d("ax",t.ax+Re),t.ayref===t.yref?d("ay",y_(a,De,"ay",s.w,t)):d("ay",t.ay+De),xe(Re,De);else{if(n)return;var ge,fe;if(i)ge=y_(i,Re,"x",s,t);else{var pe=t._xsize/s.w,dt=t.x+(t._xshift-t.xshift)/s.w-pe/2;ge=iE.align(dt+Re/s.w,pe,0,1,t.xanchor)}if(a)fe=y_(a,De,"y",s,t);else{var It=t._ysize/s.h,Pt=t.y-(t._yshift+t.yshift)/s.h-It/2;fe=iE.align(Pt-De/s.h,It,0,1,t.yanchor)}d("x",ge),d("y",fe),(!i||!a)&&(ct=iE.getCursor(i?.5:ge,a?.5:fe,t.xanchor,t.yanchor))}E.attr({transform:qU(Re,De)+Oe}),UU(C,ct)},clickFn:function(Re,De){t.captureevents&&e.emit("plotly_clickannotation",x(De))},doneFn:function(){UU(C),OU.call("_guiRelayout",e,p());var Re=document.querySelector(".js-notes-box-panel");Re&&Re.redraw(Re.selectedObj)}})}}u.annotationText?j.call(NU.makeEditable,{delegate:C,gd:e}).call(H).on("edit",function(W){t.text=W,this.call(H),d("text",W),i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),OU.call("_guiRelayout",e,p())}):j.call(H)}});var Gve=Te((tlr,Vve)=>{"use strict";var Ove=ei(),X0t=$l(),qve=Pf().arrayEditor;Vve.exports={hasClickToShow:Z0t,onClick:Y0t};function Z0t(e,t){var r=Uve(e,t);return r.on.length>0||r.explicitOff.length>0}function Y0t(e,t){var r=Uve(e,t),n=r.on,i=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,u;if(n.length||i.length){for(s=0;s{"use strict";var VU=ei(),fA=jl();Hve.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=fA.opacity(o);i("borderpad");var u=i("borderwidth"),l=i("showarrow");i("text",l?" ":n._dfltTitle.annotation),i("textangle"),VU.coerceFont(i,"font",n.font),i("width"),i("align");var f=i("height");if(f&&i("valign"),l){var c=i("arrowside"),h,d;c.indexOf("end")!==-1&&(h=i("arrowhead"),d=i("arrowsize")),c.indexOf("start")!==-1&&(i("startarrowhead",h),i("startarrowsize",d)),i("arrowcolor",s?r.bordercolor:fA.defaultLine),i("arrowwidth",(s&&u||1)*2),i("standoff"),i("startstandoff")}var p=i("hovertext"),_=n.hoverlabel||{};if(p){var b=i("hoverlabel.bgcolor",_.bgcolor||(fA.opacity(a)?fA.rgb(a):fA.defaultLine)),v=i("hoverlabel.bordercolor",_.bordercolor||fA.contrast(b)),k=VU.extendFlat({},_.font);k.color||(k.color=v),VU.coerceFont(i,"hoverlabel.font",k)}i("captureevents",!!p)}});var jve=Te((ilr,Wve)=>{"use strict";var HU=ei(),Yb=wu(),K0t=Jd(),J0t=GU(),$0t=Nb();Wve.exports=function(t,r){K0t(t,r,{name:"annotations",handleItemDefaults:Q0t})};function Q0t(e,t,r){function n(E,T){return HU.coerce(e,t,$0t,E,T)}var i=n("visible"),a=n("clicktoshow");if(i||a){J0t(e,t,r,n);for(var o=t.showarrow,s=["x","y"],u=[-10,-30],l={_fullLayout:r},f=0;f<2;f++){var c=s[f],h=Yb.coerceRef(e,t,l,c,"","paper");if(h!=="paper"){var d=Yb.getFromId(l,h);d._annIndices.push(t._index)}if(Yb.coercePosition(t,l,n,h,c,.5),o){var p="a"+c,_=Yb.coerceRef(e,t,l,p,"pixel",["pixel","paper"]);_!=="pixel"&&_!==h&&(_=t[p]="pixel");var b=_==="pixel"?u[f]:.4;Yb.coercePosition(t,l,n,_,p,b)}n(c+"anchor"),n(c+"shift")}if(HU.noneOrAll(e,t,["x","y"]),o&&HU.noneOrAll(e,t,["ax","ay"]),a){var v=n("xclick"),k=n("yclick");t._xclick=v===void 0?t.x:Yb.cleanPosition(v,l,t.xref),t._yclick=k===void 0?t.y:Yb.cleanPosition(k,l,t.yref)}}}});var Yve=Te((nlr,Zve)=>{"use strict";var WU=ei(),Kb=wu(),emt=pI().draw;Zve.exports=function(t){var r=t._fullLayout,n=WU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return WU.syncOrAsync([emt,tmt],t)};function tmt(e){var t=e._fullLayout;WU.filterVisible(t.annotations).forEach(function(r){var n=Kb.getFromId(e,r.xref),i=Kb.getFromId(e,r.yref),a=Kb.getRefType(r.xref),o=Kb.getRefType(r.yref);r._extremes={},a==="range"&&Xve(r,n),o==="range"&&Xve(r,i)})}function Xve(e,t){var r=t._id,n=r.charAt(0),i=e[n],a=e["a"+n],o=e[n+"ref"],s=e["a"+n+"ref"],u=e["_"+n+"padplus"],l=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,_=p+f,b=p-f,v;if(s===o){var k=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),E=Kb.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(u,_),ppadminus:Math.max(l,b)});v={min:[k.min[0],E.min[0]],max:[k.max[0],E.max[0]]}}else _=a?_+a:_,b=a?b-a:b,v=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(u,h,_),ppadminus:Math.max(l,d,b)});e._extremes[r]=v}});var Jve=Te((alr,Kve)=>{"use strict";var rmt=ku(),imt=mL();Kve.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,u=r._id.charAt(0),l,f;function c(d){var p=l[d],_=null;a?_=imt(p,r.range):_=Math.pow(10,p),rmt(_)||(_=null),i(f+d,_)}for(var h=0;h{"use strict";var jU=pI(),$ve=Gve();Qve.exports={moduleType:"component",name:"annotations",layoutAttributes:Nb(),supplyLayoutDefaults:jve(),includeBasePlot:B5()("annotations"),calcAutorange:Yve(),draw:jU.draw,drawOne:jU.drawOne,drawRaw:jU.drawRaw,hasClickToShow:$ve.hasClickToShow,onClick:$ve.onClick,convertCoords:Jve()}});var vI=Te((slr,t0e)=>{"use strict";var Pc=Nb(),nmt=Sc().overrideAll,amt=Pf().templatedArray;t0e.exports=nmt(amt("annotation",{visible:Pc.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Pc.xanchor,xshift:Pc.xshift,yanchor:Pc.yanchor,yshift:Pc.yshift,text:Pc.text,textangle:Pc.textangle,font:Pc.font,width:Pc.width,height:Pc.height,opacity:Pc.opacity,align:Pc.align,valign:Pc.valign,bgcolor:Pc.bgcolor,bordercolor:Pc.bordercolor,borderpad:Pc.borderpad,borderwidth:Pc.borderwidth,showarrow:Pc.showarrow,arrowcolor:Pc.arrowcolor,arrowhead:Pc.arrowhead,startarrowhead:Pc.startarrowhead,arrowside:Pc.arrowside,arrowsize:Pc.arrowsize,startarrowsize:Pc.startarrowsize,arrowwidth:Pc.arrowwidth,standoff:Pc.standoff,startstandoff:Pc.startstandoff,hovertext:Pc.hovertext,hoverlabel:Pc.hoverlabel,captureevents:Pc.captureevents}),"calc","from-root")});var i0e=Te((llr,r0e)=>{"use strict";var XU=ei(),omt=wu(),smt=Jd(),lmt=GU(),umt=vI();r0e.exports=function(t,r,n){smt(t,r,{name:"annotations",handleItemDefaults:fmt,fullLayout:n.fullLayout})};function fmt(e,t,r,n){function i(s,u){return XU.coerce(e,t,umt,s,u)}function a(s){var u=s+"axis",l={_fullLayout:{}};return l._fullLayout[u]=r[u],omt.coercePosition(t,l,i,s,s,.5)}var o=i("visible");o&&(lmt(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),XU.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",i("ax",-10),i("ay",-30),XU.noneOrAll(e,t,["ax","ay"])))}});var s0e=Te((ulr,o0e)=>{"use strict";var n0e=ei(),a0e=wu();o0e.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function ZU(e,t){var r=[0,0,0,0],n,i;for(n=0;n<4;++n)for(i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function hmt(e,t){var r=ZU(e.projection,ZU(e.view,ZU(e.model,[t[0],t[1],t[2],1])));return r}l0e.exports=hmt});var f0e=Te((clr,u0e)=>{"use strict";var dmt=pI().drawRaw,pmt=YU(),vmt=["x","y","z"];u0e.exports=function(t){for(var r=t.fullSceneLayout,n=t.dataScale,i=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=pmt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),dmt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var d0e=Te((hlr,h0e)=>{"use strict";var mmt=$l(),c0e=ei();h0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:vI()}}},layoutAttributes:vI(),handleDefaults:i0e(),includeBasePlot:ymt,convert:s0e(),draw:f0e()};function ymt(e,t){var r=mmt.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var p0e=Nb(),v0e=gc(),m0e=Zc().line,gmt=Id().dash,Fm=Su().extendFlat,_mt=Pf().templatedArray,dlr=F5(),cA=Gf(),xmt=Nu().shapeTexttemplateAttrs,bmt=SL();y0e.exports=_mt("shape",{visible:Fm({},cA.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Fm({},cA.legend,{editType:"calc+arraydraw"}),legendgroup:Fm({},cA.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Fm({},cA.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:v0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Fm({},cA.legendrank,{editType:"calc+arraydraw"}),legendwidth:Fm({},cA.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Fm({},p0e.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Fm({},p0e.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Fm({},m0e.color,{editType:"arraydraw"}),width:Fm({},m0e.width,{editType:"calc+arraydraw"}),dash:Fm({},gmt,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:xmt({},{keys:Object.keys(bmt)}),font:v0e({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var x0e=Te((vlr,_0e)=>{"use strict";var aE=ei(),hA=wu(),wmt=Jd(),Amt=KU(),g0e=c_();_0e.exports=function(t,r){wmt(t,r,{name:"shapes",handleItemDefaults:Smt})};function Tmt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function Smt(e,t,r){function n(W,re){return aE.coerce(e,t,Amt,W,re)}t._isShape=!0;var i=n("visible");if(i){var a=n("showlegend");a&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),aE.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),s=o?"path":"rect",u=n("type",s),l=u!=="path";l&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));for(var c=n("xsizemode"),h=n("ysizemode"),d=["x","y"],p=0;p<2;p++){var _=d[p],b=_+"anchor",v=_==="x"?c:h,k={_fullLayout:r},E,T,L,x=hA.coerceRef(e,t,k,_,void 0,"paper"),C=hA.getRefType(x);if(C==="range"?(E=hA.getFromId(k,x),E._shapeIndices.push(t._index),L=g0e.rangeToShapePosition(E),T=g0e.shapePositionToRange(E),(E.type==="category"||E.type==="multicategory")&&(n(_+"0shift"),n(_+"1shift"))):T=L=aE.identity,l){var M=.25,m=.75,P=_+"0",A=_+"1",B=e[P],F=e[A];e[P]=T(e[P],!0),e[A]=T(e[A],!0),v==="pixel"?(n(P,0),n(A,10)):(hA.coercePosition(t,k,n,x,P,M),hA.coercePosition(t,k,n,x,A,m)),t[P]=L(t[P]),t[A]=L(t[A]),e[P]=B,e[A]=F}if(v==="pixel"){var U=e[b];e[b]=T(e[b],!0),hA.coercePosition(t,k,n,x,b,.25),t[b]=L(t[b]),e[b]=U}}l&&aE.noneOrAll(e,t,["x0","x1","y0","y1"]);var G=u==="line",j,H;if(l&&(j=n("label.texttemplate")),j||(H=n("label.text")),H||j){n("label.textangle");var N=n("label.textposition",G?"middle":"middle center");n("label.xanchor"),n("label.yanchor",Tmt(G,N)),n("label.padding"),aE.coerceFont(n,"label.font",r.font)}}}});var A0e=Te((mlr,w0e)=>{"use strict";var Mmt=jl(),b0e=ei();function Emt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}w0e.exports=function(t,r,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),b0e.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var i=n("newshape.line.width");if(i){var a=(t||{}).plot_bgcolor||"#FFF";n("newshape.line.color",Mmt.contrast(a)),n("newshape.line.dash")}var o=t.dragmode==="drawline",s=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(s||u){n("newshape.label.textangle");var l=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",Emt(o,l)),n("newshape.label.padding"),b0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var k0e=Te((ylr,E0e)=>{"use strict";var JU=ei(),dA=wu(),pA=v5(),S0e=c_();E0e.exports=function(t){var r=t._fullLayout,n=JU.filterVisible(r.shapes);if(!(!n.length||!t._fullData.length))for(var i=0;i0?l+o:o;return{ppad:o,ppadplus:s?c:h,ppadminus:s?h:c}}else return{ppad:o}}function T0e(e,t,r){var n=e._id.charAt(0)==="x"?"x":"y",i=e.type==="category"||e.type==="multicategory",a,o,s=0,u=0,l=i?e.r2c:e.d2c,f=t[n+"sizemode"]==="scaled";if(f?(a=t[n+"0"],o=t[n+"1"],i&&(s=t[n+"0shift"],u=t[n+"1shift"])):(a=t[n+"anchor"],o=t[n+"anchor"]),a!==void 0)return[l(a)+s,l(o)+u];if(t.path){var c=1/0,h=-1/0,d=t.path.match(pA.segmentRE),p,_,b,v,k;for(e.type==="date"&&(l=S0e.decodeDate(l)),p=0;ph&&(h=k)));if(h>=c)return[c,h]}}});var P0e=Te((glr,L0e)=>{"use strict";var C0e=az();L0e.exports={moduleType:"component",name:"shapes",layoutAttributes:KU(),supplyLayoutDefaults:x0e(),supplyDrawNewShapeDefaults:A0e(),includeBasePlot:B5()("shapes"),calcAutorange:k0e(),draw:C0e.draw,drawOne:C0e.drawOne}});var $U=Te((xlr,I0e)=>{"use strict";var z0e=dd(),Lmt=Pf().templatedArray,_lr=F5();I0e.exports=Lmt("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",z0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",z0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var D0e=Te((blr,R0e)=>{"use strict";var Pmt=ei(),QU=wu(),zmt=Jd(),Imt=$U(),Rmt="images";R0e.exports=function(t,r){var n={name:Rmt,handleItemDefaults:Dmt};zmt(t,r,n)};function Dmt(e,t,r){function n(h,d){return Pmt.coerce(e,t,Imt,h,d)}var i=n("source"),a=n("visible",!!i);if(!a)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},s=["x","y"],u=0;u<2;u++){var l=s[u],f=QU.coerceRef(e,t,o,l,"paper",void 0);if(f!=="paper"){var c=QU.getFromId(o,f);c._imgIndices.push(t._index)}QU.coercePosition(t,o,n,f,l,0)}return t}});var q0e=Te((wlr,O0e)=>{"use strict";var F0e=Jl(),Fmt=Mu(),vA=wu(),B0e=Wc(),Bmt=jv();O0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var N0e=ku(),Omt=mL();U0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,u=r._id.charAt(0),l,f,c=0;c{"use strict";G0e.exports={moduleType:"component",name:"images",layoutAttributes:$U(),supplyLayoutDefaults:D0e(),includeBasePlot:B5()("images"),draw:q0e(),convertCoords:V0e()}});var mI=Te((Slr,W0e)=>{"use strict";W0e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var eV=Te((Mlr,X0e)=>{"use strict";var qmt=gc(),Nmt=Rh(),Umt=Su().extendFlat,Vmt=Sc().overrideAll,Gmt=ML(),j0e=Pf().templatedArray,Hmt=j0e("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});X0e.exports=Vmt(j0e("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Hmt,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Umt(Gmt({editType:"arraydraw"}),{}),font:qmt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Nmt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var J0e=Te((Elr,K0e)=>{"use strict";var yI=ei(),Z0e=Jd(),Y0e=eV(),Wmt=mI(),jmt=Wmt.name,Xmt=Y0e.buttons;K0e.exports=function(t,r){var n={name:jmt,handleItemDefaults:Zmt};Z0e(t,r,n)};function Zmt(e,t,r){function n(o,s){return yI.coerce(e,t,Y0e,o,s)}var i=Z0e(e,t,{name:"buttons",handleItemDefaults:Ymt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),yI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),yI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Ymt(e,t){function r(i,a){return yI.coerce(e,t,Xmt,i,a)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var eme=Te((klr,Q0e)=>{"use strict";Q0e.exports=Qc;var Bm=Jl(),$0e=jl(),mA=Mu(),gI=ei();function Qc(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Qc.barWidth=2;Qc.barLength=20;Qc.barRadius=2;Qc.barPad=1;Qc.barColor="#808BA4";Qc.prototype.enable=function(t,r,n){var i=this.gd._fullLayout,a=i.width,o=i.height;this.position=t;var s=this.position.l,u=this.position.w,l=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",p=c==="right",_=c==="up",b=u,v=f,k,E,T,L;!h&&!d&&!p&&!_&&(this.position.direction="down",h=!0);var x=h||_;x?(k=s,E=k+b,h?(T=l,L=Math.min(T+v,o),v=L-T):(L=l+v,T=Math.max(L-v,0),v=L-T)):(T=l,L=T+v,d?(E=s+b,k=Math.max(E-b,0),b=E-k):(k=s,E=Math.min(k+b,a),b=E-k)),this._box={l:k,t:T,w:b,h:v};var C=u>b,M=Qc.barLength+2*Qc.barPad,m=Qc.barWidth+2*Qc.barPad,P=s,A=l+f;A+m>o&&(A=o-m);var B=this.container.selectAll("rect.scrollbar-horizontal").data(C?[0]:[]);B.exit().on(".drag",null).remove(),B.enter().append("rect").classed("scrollbar-horizontal",!0).call($0e.fill,Qc.barColor),C?(this.hbar=B.attr({rx:Qc.barRadius,ry:Qc.barRadius,x:P,y:A,width:M,height:m}),this._hbarXMin=P+M/2,this._hbarTranslateMax=b-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var F=f>v,U=Qc.barWidth+2*Qc.barPad,G=Qc.barLength+2*Qc.barPad,j=s+u,H=l;j+U>a&&(j=a-U);var N=this.container.selectAll("rect.scrollbar-vertical").data(F?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call($0e.fill,Qc.barColor),F?(this.vbar=N.attr({rx:Qc.barRadius,ry:Qc.barRadius,x:j,y:H,width:U,height:G}),this._vbarYMin=H+G/2,this._vbarTranslateMax=v-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var W=this.id,re=k-.5,ae=F?E+U+.5:E+.5,be=T-.5,Pe=C?L+m+.5:L+.5,Ce=i._topdefs.selectAll("#"+W).data(C||F?[0]:[]);if(Ce.exit().remove(),Ce.enter().append("clipPath").attr("id",W).append("rect"),C||F?(this._clipRect=Ce.select("rect").attr({x:Math.floor(re),y:Math.floor(be),width:Math.ceil(ae)-Math.floor(re),height:Math.ceil(Pe)-Math.floor(be)}),this.container.call(mA.setClipUrl,W,this.gd),this.bg.attr({x:s,y:l,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(mA.setClipUrl,null),delete this._clipRect),C||F){var de=Bm.behavior.drag().on("dragstart",function(){Bm.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(de);var te=Bm.behavior.drag().on("dragstart",function(){Bm.event.sourceEvent.preventDefault(),Bm.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));C&&this.hbar.on(".drag",null).call(te),F&&this.vbar.on(".drag",null).call(te)}this.setTranslate(r,n)};Qc.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(mA.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Qc.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Bm.event.dx),this.vbar&&(r-=Bm.event.dy),this.setTranslate(t,r)};Qc.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Bm.event.deltaY),this.vbar&&(r+=Bm.event.deltaY),this.setTranslate(t,r)};Qc.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax,a=gI.constrain(Bm.event.x,n,i),o=(a-n)/(i-n),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var u=r+this._vbarYMin,l=u+this._vbarTranslateMax,f=gI.constrain(Bm.event.y,u,l),c=(f-u)/(l-u),h=this.position.h-this._box.h;r=c*h}this.setTranslate(t,r)};Qc.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,i=this.position.h-this._box.h;if(t=gI.constrain(t||0,0,n),r=gI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(mA.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/n;this.hbar.call(mA.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(mA.setTranslate,t,r+o*this._vbarTranslateMax)}}});var fme=Te((Clr,ume)=>{"use strict";var yA=Jl(),oE=Cc(),sE=jl(),gA=Mu(),e0=ei(),_I=Xf(),Kmt=Pf().arrayEditor,rme=Qh().LINE_SPACING,Vu=mI(),Jmt=eme();ume.exports=function(t){var r=t._fullLayout,n=e0.filterVisible(r[Vu.name]);function i(h){oE.autoMargin(t,sme(h))}var a=r._menulayer.selectAll("g."+Vu.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(Vu.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){yA.select(this).selectAll("g."+Vu.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+Vu.headerGroupClassName).data(n,$mt);o.enter().append("g").classed(Vu.headerGroupClassName,!0);for(var s=e0.ensureSingle(a,"g",Vu.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),u=0;u{"use strict";var ayt=mI();cme.exports={moduleType:"component",name:ayt.name,layoutAttributes:eV(),supplyLayoutDefaults:J0e(),draw:fme()}});var uE=Te((Plr,dme)=>{"use strict";dme.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var nV=Te((zlr,mme)=>{"use strict";var pme=gc(),oyt=ML(),syt=Su().extendDeepAll,lyt=Sc().overrideAll,uyt=qM(),vme=Pf().templatedArray,Jb=uE(),fyt=vme("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});mme.exports=lyt(vme("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:fyt,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:syt(oyt({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:uyt.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:pme({})},font:pme({}),activebgcolor:{valType:"color",dflt:Jb.gripBgActiveColor},bgcolor:{valType:"color",dflt:Jb.railBgColor},bordercolor:{valType:"color",dflt:Jb.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Jb.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Jb.tickLength},tickcolor:{valType:"color",dflt:Jb.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Jb.minorTickLength}}),"arraydraw","from-root")});var xme=Te((Ilr,_me)=>{"use strict";var _A=ei(),yme=Jd(),gme=nV(),cyt=uE(),hyt=cyt.name,dyt=gme.steps;_me.exports=function(t,r){yme(t,r,{name:hyt,handleItemDefaults:pyt})};function pyt(e,t,r){function n(c,h){return _A.coerce(e,t,gme,c,h)}for(var i=yme(e,t,{name:"steps",handleItemDefaults:vyt}),a=0,o=0;o{"use strict";var Om=Jl(),xI=Cc(),__=jl(),qm=Mu(),t0=ei(),myt=t0.strTranslate,fE=Xf(),yyt=Pf().arrayEditor,pf=uE(),sV=Qh(),Ame=sV.LINE_SPACING,aV=sV.FROM_TL,oV=sV.FROM_BR;Cme.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=gyt(n,t),a=n._infolayer.selectAll("g."+pf.containerClassName).data(i.length>0?[0]:[]);a.enter().append("g").classed(pf.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),xI.autoMargin(t,Tme(f))}if(a.exit().each(function(){Om.select(this).selectAll("g."+pf.groupClassName).each(o)}).remove(),i.length!==0){var s=a.selectAll("g."+pf.groupClassName).data(i,_yt);s.enter().append("g").classed(pf.groupClassName,!0),s.exit().each(o).remove();for(var u=0;u0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",myt(o-pf.gripWidth*.5,t._dims.currentValueTotalHeight))}}function lV(e,t){var r=e._dims;return r.inputAreaStart+pf.stepInset+(r.inputAreaLength-2*pf.stepInset)*Math.min(1,Math.max(0,t))}function wme(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-pf.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*pf.stepInset-2*r.inputAreaStart)))}function Myt(e,t,r){var n=r._dims,i=t0.ensureSingle(e,"rect",pf.railTouchRectClass,function(a){a.call(Eme,t,e,r).style("pointer-events","all")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,pf.tickOffset+r.ticklen+n.labelHeight)}).call(__.fill,r.bgcolor).attr("opacity",0),qm.setTranslate(i,0,n.currentValueTotalHeight)}function Eyt(e,t){var r=t._dims,n=r.inputAreaLength-pf.railInset*2,i=t0.ensureSingle(e,"rect",pf.railRectClass);i.attr({width:n,height:pf.railWidth,rx:pf.railRadius,ry:pf.railRadius,"shape-rendering":"crispEdges"}).call(__.stroke,t.bordercolor).call(__.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),qm.setTranslate(i,pf.railInset,(r.inputAreaWidth-pf.railWidth)*.5+r.currentValueTotalHeight)}});var zme=Te((Dlr,Pme)=>{"use strict";var kyt=uE();Pme.exports={moduleType:"component",name:kyt.name,layoutAttributes:nV(),supplyLayoutDefaults:xme(),draw:Lme()}});var wI=Te((Flr,Rme)=>{"use strict";var Ime=Rh();Rme.exports={bgcolor:{valType:"color",dflt:Ime.background,editType:"plot"},bordercolor:{valType:"color",dflt:Ime.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var uV=Te((Blr,Dme)=>{"use strict";Dme.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var AI=Te((Olr,Fme)=>{"use strict";Fme.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var qme=Te(SI=>{"use strict";var Cyt=Wc(),Lyt=Xf(),Bme=AI(),Pyt=Qh().LINE_SPACING,TI=Bme.name;function Ome(e){var t=e&&e[TI];return t&&t.visible}SI.isVisible=Ome;SI.makeData=function(e){for(var t=Cyt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var MI=ei(),Nme=Pf(),Ume=Wc(),zyt=wI(),Iyt=uV();Vme.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;MI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=Nme.newContainer(a,"rangeslider");function u(L,x){return MI.coerce(o,s,zyt,L,x)}var l,f;function c(L,x){return MI.coerce(l,f,Iyt,L,x)}var h=u("visible");if(h){u("bgcolor",r.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!a.isValidRange(o.range)),u("range");var d=r._subplots;if(d)for(var p=d.cartesian.filter(function(L){return L.substr(0,L.indexOf("y"))===Ume.name2id(n)}).map(function(L){return L.substr(L.indexOf("y"),L.length)}),_=MI.simpleMap(p,Ume.id2name),b=0;b<_.length;b++){var v=_[b];l=o[v]||{},f=Nme.newContainer(s,v,"yaxis");var k=r[v],E;l.range&&k.isValidRange(l.range)&&(E="fixed");var T=c("rangemode",E);T!=="match"&&c("range",k.range.slice())}s._input=o}}});var Wme=Te((Ulr,Hme)=>{"use strict";var Ryt=Wc().list,Dyt=Am().getAutoRange,Fyt=AI();Hme.exports=function(t){for(var r=Ryt(t,"x",!0),n=0;n{"use strict";var EI=Jl(),Byt=$l(),Oyt=Cc(),dh=ei(),kI=dh.strTranslate,Xme=Mu(),x_=jl(),qyt=Mb(),Nyt=Th(),fV=Wc(),Uyt=xp(),Vyt=Tm(),Mf=AI();Zme.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)j=A[H+1];else if(G=N.pmax)j=A[H+1];else if(G0?e.touches[0].clientX:0}function Gyt(e,t,r,n){if(t._context.staticPlot)return;var i=e.select("rect."+Mf.slideBoxClassName).node(),a=e.select("rect."+Mf.grabAreaMinClassName).node(),o=e.select("rect."+Mf.grabAreaMaxClassName).node();function s(){var u=EI.event,l=u.target,f=jme(u),c=f-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),p=Uyt.coverSlip();this.addEventListener("touchmove",_),this.addEventListener("touchend",b),p.addEventListener("mousemove",_),p.addEventListener("mouseup",b);function _(v){var k=jme(v),E=+k-f,T,L,x;switch(l){case i:if(x="ew-resize",h+E>r._length||d+E<0)return;T=h+E,L=d+E;break;case a:if(x="col-resize",h+E>r._length)return;T=h+E,L=d;break;case o:if(x="col-resize",d+E<0)return;T=h,L=d+E;break;default:x="ew-resize",T=c,L=c+E;break}if(L{"use strict";var Qyt=ei(),egt=wI(),tgt=uV(),cV=qme();Kme.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Qyt.extendFlat({},egt,{yaxis:tgt})}}},layoutAttributes:wI(),handleDefaults:Gme(),calcAutorange:Wme(),draw:Yme(),isVisible:cV.isVisible,makeData:cV.makeData,autoMarginOpts:cV.autoMarginOpts}});var CI=Te((Hlr,Qme)=>{"use strict";var rgt=gc(),$me=Rh(),igt=Pf().templatedArray,ngt=igt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});Qme.exports={visible:{valType:"boolean",editType:"plot"},buttons:ngt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:rgt({editType:"plot"}),bgcolor:{valType:"color",dflt:$me.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:$me.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var hV=Te((Wlr,eye)=>{"use strict";eye.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var iye=Te((jlr,rye)=>{"use strict";var LI=ei(),agt=jl(),ogt=Pf(),sgt=Jd(),tye=CI(),dV=hV();rye.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=ogt.newContainer(r,"rangeselector");function u(d,p){return LI.coerce(o,s,tye,d,p)}var l=sgt(o,s,{name:"buttons",handleItemDefaults:lgt,calendar:a}),f=u("visible",l.length>0);if(f){var c=ugt(r,n,i);u("x",c[0]),u("y",c[1]),LI.noneOrAll(t,r,["x","y"]),u("xanchor"),u("yanchor"),LI.coerceFont(u,"font",n.font);var h=u("bgcolor");u("activecolor",agt.contrast(h,dV.lightAmount,dV.darkAmount)),u("bordercolor"),u("borderwidth")}};function lgt(e,t,r,n){var i=n.calendar;function a(u,l){return LI.coerce(e,t,tye.buttons,u,l)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(i&&i!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function ugt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var fgt=E9(),cgt=ei().titleCase;nye.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=hgt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function hgt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=fgt["utc"+cgt(i)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(n,-o));break;case"todate":var u=a.offset(n,-o);s=e.l2r(+a.ceil(u));break}var l=r[1];return[s,l]}});var dye=Te((Zlr,hye)=>{"use strict";var zI=Jl(),dgt=$l(),pgt=Cc(),oye=jl(),cye=Mu(),zg=ei(),sye=zg.strTranslate,PI=Xf(),vgt=Wc(),mV=Qh(),lye=mV.LINE_SPACING,uye=mV.FROM_TL,fye=mV.FROM_BR,vV=hV(),mgt=aye();hye.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(ygt(t),ggt);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=zI.select(this),o=i,s=o.rangeselector,u=a.selectAll("g.button").data(zg.filterVisible(s.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(l){var f=zI.select(this),c=mgt(o,l);l._isActive=_gt(o,l,c),f.call(pV,s,l),f.call(bgt,s,l,t),f.on("click",function(){t._dragged||dgt.call("_guiRelayout",t,c)}),f.on("mouseover",function(){l._isHovered=!0,f.call(pV,s,l)}),f.on("mouseout",function(){l._isHovered=!1,f.call(pV,s,l)})}),Agt(t,u,s,o._name,a)})};function ygt(e){for(var t=vgt.list(e,"x",!0),r=[],n=0;n{"use strict";pye.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:CI()}}},layoutAttributes:CI(),handleDefaults:iye(),draw:dye()}});var zc=Te(yV=>{"use strict";var mye=Su().extendFlat;yV.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",o={x:mye({},r,{}),y:mye({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};yV.defaults=function(e,t,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var Tgt=ei(),Sgt=n3().counter,Mgt=zc().attributes,yye=dd().idRegex,Egt=Pf(),gV={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Sgt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[yye.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[yye.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Mgt({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function II(e,t,r){var n=t[r+"axes"],i=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(n))return n;if(i.length)return i}function kgt(e,t){var r=e.grid||{},n=II(t,r,"x"),i=II(t,r,"y");if(!e.grid&&!n&&!i)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(n),s=Array.isArray(i),u=o&&n!==r.xaxes&&s&&i!==r.yaxes,l,f;a?(l=r.subplots.length,f=r.subplots[0].length):(s&&(l=i.length),o&&(f=n.length));var c=Egt.newContainer(t,"grid");function h(x,C){return Tgt.coerce(r,c,gV,x,C)}var d=h("rows",l),p=h("columns",f);if(!(d*p>1)){delete t.grid;return}if(!a&&!o&&!s){var _=h("pattern")==="independent";_&&(a=!0)}c._hasSubplotGrid=a;var b=h("roworder"),v=b==="top to bottom",k=a?.2:.1,E=a?.3:.1,T,L;u&&t._splomGridDflt&&(T=t._splomGridDflt.xside,L=t._splomGridDflt.yside),c._domains={x:gye("x",h,k,T,p),y:gye("y",h,E,L,d,v)}}function gye(e,t,r,n,i,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",n);for(var u=new Array(i),l=s[0],f=(s[1]-l)/(i-o),c=f*(1-o),h=0;h{"use strict";bye.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var Tye=Te((Qlr,Aye)=>{"use strict";var wye=ku(),Lgt=$l(),Pgt=ei(),zgt=Pf(),Igt=xV();Aye.exports=function(e,t,r,n){var i="error_"+n.axis,a=zgt.newContainer(t,i),o=e[i]||{};function s(p,_){return Pgt.coerce(o,a,Igt,p,_)}var u=o.array!==void 0||o.value!==void 0||o.type==="sqrt",l=s("visible",u);if(l!==!1){var f=s("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=s("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(s("array"),s("traceref"),c||(s("arrayminus"),s("tracerefminus"))):(f==="percent"||f==="constant")&&(s("value"),c||s("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=t["error_"+n.inherit];(d||{}).visible&&s(h,!(o.color||wye(o.thickness)||wye(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",Lgt.traceIs(t,"gl3d")?0:4))}}});var bV=Te((eur,Mye)=>{"use strict";Mye.exports=function(t){var r=t.type,n=t.symmetric;if(r==="data"){var i=t.array||[];if(n)return function(l,f){var c=+i[f];return[c,c]};var a=t.arrayminus||[];return function(l,f){var c=+i[f],h=+a[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var o=Sye(r,t.value),s=Sye(r,t.valueminus);return n||t.valueminus===void 0?function(l){var f=o(l);return[f,f]}:function(l){return[s(l),o(l)]}}};function Sye(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var Cye=Te((tur,kye)=>{"use strict";var wV=ku(),Rgt=$l(),AV=wu(),Dgt=ei(),Fgt=bV();kye.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var Lye=Jl(),b_=ku(),Bgt=Mu(),Ogt=lc();Pye.exports=function(t,r,n,i){var a,o=n.xaxis,s=n.yaxis,u=i&&i.duration>0,l=t._context.staticPlot;r.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(k){return k.id});var _=Ogt.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var b=Lye.select(this).selectAll("g.errorbar").data(f,p);if(b.exit().remove(),!!f.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var v=b.enter().append("g").classed("errorbar",!0);u&&v.style("opacity",0).transition().duration(i.duration).style("opacity",1),Bgt.setClipUrl(b,n.layerClipId,t),b.each(function(k){var E=Lye.select(this),T=qgt(k,o,s);if(!(_&&!k.vis)){var L,x=E.select("path.yerror");if(d.visible&&b_(T.x)&&b_(T.yh)&&b_(T.ys)){var C=d.width;L="M"+(T.x-C)+","+T.yh+"h"+2*C+"m-"+C+",0V"+T.ys,T.noYS||(L+="m-"+C+",0h"+2*C),a=!x.size(),a?x=E.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("yerror",!0):u&&(x=x.transition().duration(i.duration).ease(i.easing)),x.attr("d",L)}else x.remove();var M=E.select("path.xerror");if(h.visible&&b_(T.y)&&b_(T.xh)&&b_(T.xs)){var m=(h.copy_ystyle?d:h).width;L="M"+T.xh+","+(T.y-m)+"v"+2*m+"m0,-"+m+"H"+T.xs,T.noXS||(L+="m0,-"+m+"v"+2*m),a=!M.size(),a?M=E.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("xerror",!0):u&&(M=M.transition().duration(i.duration).ease(i.easing)),M.attr("d",L)}else M.remove()}})}})};function qgt(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),b_(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),b_(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}});var Dye=Te((iur,Rye)=>{"use strict";var Ngt=Jl(),Iye=jl();Rye.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=Ngt.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(Iye.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(Iye.stroke,a.color)})}});var Oye=Te((nur,Bye)=>{"use strict";var cE=ei(),Fye=Sc().overrideAll,hE=xV(),$b={error_x:cE.extendFlat({},hE),error_y:cE.extendFlat({},hE)};delete $b.error_x.copy_zstyle;delete $b.error_y.copy_zstyle;delete $b.error_y.copy_ystyle;var dE={error_x:cE.extendFlat({},hE),error_y:cE.extendFlat({},hE),error_z:cE.extendFlat({},hE)};delete dE.error_x.copy_ystyle;delete dE.error_y.copy_ystyle;delete dE.error_z.copy_ystyle;delete dE.error_z.copy_zstyle;Bye.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:$b,bar:$b,histogram:$b,scatter3d:Fye(dE,"calc","nested"),scattergl:Fye($b,"calc","nested")}},supplyDefaults:Tye(),calc:Cye(),makeComputeError:bV(),plot:zye(),style:Dye(),hoverInfo:Ugt};function Ugt(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var Nye=Te((aur,qye)=>{"use strict";qye.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Xye=Te((our,jye)=>{"use strict";var w_=Jl(),TV=cd(),DI=Cc(),Uye=$l(),Ig=wu(),RI=xp(),N0=ei(),Um=N0.strTranslate,Wye=Su().extendFlat,SV=Tm(),Nm=Mu(),MV=jl(),Vgt=Mb(),Ggt=Xf(),Hgt=yp().flipScale,Wgt=rE(),jgt=oI(),Xgt=Dd(),EV=Qh(),Vye=EV.LINE_SPACING,Gye=EV.FROM_TL,Hye=EV.FROM_BR,Yc=Nye().cn;function Zgt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Yc.colorbar).data(Ygt(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(Yc.colorbar,!0),r.each(function(n){var i=w_.select(this);N0.ensureSingle(i,"rect",Yc.cbbg),N0.ensureSingle(i,"g",Yc.cbfills),N0.ensureSingle(i,"g",Yc.cblines),N0.ensureSingle(i,"g",Yc.cbaxis,function(o){o.classed(Yc.crisp,!0)}),N0.ensureSingle(i,"g",Yc.cbtitleunshift,function(o){o.append("g").classed(Yc.cbtitle,!0)}),N0.ensureSingle(i,"rect",Yc.cboutline);var a=Kgt(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&Jgt(i,n,e)}),r.exit().each(function(n){DI.autoMargin(e,n._id)}).remove(),r.order()}function Ygt(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function u(E){return Wye(E,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function l(){typeof s.calc=="function"?s.calc(e,o,i):(i._fillgradient=a.reversescale?Hgt(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var f=0;f1){var Ve=Math.pow(10,Math.floor(Math.log(ye)/Math.LN10));Ne*=Ve*N0.roundUp(ye/Ve,[2,5,10]),(Math.abs(B.start)/B.size+1e-6)%1<2e-6&&(Ee.tick0=0)}Ee.dtick=Ne}Ee.domain=n?[te+p/T.h,te+W-p/T.h]:[te+d/T.w,te+W-d/T.w],Ee.setScale(),e.attr("transform",Um(Math.round(T.l),Math.round(T.t)));var ce=e.select("."+Yc.cbtitleunshift).attr("transform",Um(-Math.round(T.l),-Math.round(T.t))),Ke=Ee.ticklabelposition,nt=Ee.title.font.size,gt=e.select("."+Yc.cbaxis),Nt,it=0,Ye=0;function kt(Et,Ae){var at={propContainer:Ee,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:E._dfltTitle.colorbar,containerGroup:e.select("."+Yc.cbtitle)},wt=Et.charAt(0)==="h"?Et.substr(1):"h"+Et;e.selectAll("."+wt+",."+wt+"-math-group").remove(),Vgt.draw(r,Et,Wye(at,Ae||{}))}function Tt(){if(n&&Me||!n&&!Me){var Et,Ae;M==="top"&&(Et=d+T.l+re*_,Ae=p+T.t+ae*(1-te-W)+3+nt*.75),M==="bottom"&&(Et=d+T.l+re*_,Ae=p+T.t+ae*(1-te)-3-nt*.25),M==="right"&&(Ae=p+T.t+ae*b+3+nt*.75,Et=d+T.l+re*te),kt(Ee._id+"title",{attributes:{x:Et,y:Ae,"text-anchor":n?"start":"middle"}})}}function St(){if(n&&!Me||!n&&Me){var Et=Ee.position||0,Ae=Ee._offset+Ee._length/2,at,wt;if(M==="right")wt=Ae,at=T.l+re*Et+10+nt*(Ee.showticklabels?1:.5);else if(at=Ae,M==="bottom"&&(wt=T.t+ae*Et+10+(Ke.indexOf("inside")===-1?Ee.tickfont.size:0)+(Ee.ticks!=="inside"&&t.ticklen||0)),M==="top"){var vt=C.text.split("
").length;wt=T.t+ae*Et+10-j-Vye*nt*vt}kt((n?"h":"v")+Ee._id+"title",{avoid:{selection:w_.select(r).selectAll("g."+Ee._id+"tick"),side:M,offsetTop:n?0:T.t,offsetLeft:n?T.l:0,maxShift:n?E.width:E.height},attributes:{x:at,y:wt,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Rt(){if(!n&&!Me||n&&Me){var Et=e.select("."+Yc.cbtitle),Ae=Et.select("text"),at=[-u/2,u/2],wt=Et.select(".h"+Ee._id+"title-math-group").node(),vt=15.6;Ae.node()&&(vt=parseInt(Ae.node().style.fontSize,10)*Vye);var st;if(wt?(st=Nm.bBox(wt),Ye=st.width,it=st.height,it>vt&&(at[1]-=(it-vt)/2)):Ae.node()&&!Ae.classed(Yc.jsPlaceholder)&&(st=Nm.bBox(Ae.node()),Ye=st.width,it=st.height),n){if(it){if(it+=5,M==="top")Ee.domain[1]-=it/T.h,at[1]*=-1;else{Ee.domain[0]+=it/T.h;var Ue=Ggt.lineCount(Ae);at[1]+=(1-Ue)*vt}Et.attr("transform",Um(at[0],at[1])),Ee.setScale()}}else Ye&&(M==="right"&&(Ee.domain[0]+=(Ye+nt/2)/T.w),Et.attr("transform",Um(at[0],at[1])),Ee.setScale())}e.selectAll("."+Yc.cbfills+",."+Yc.cblines).attr("transform",n?Um(0,Math.round(T.h*(1-Ee.domain[1]))):Um(Math.round(T.w*Ee.domain[0]),0)),gt.attr("transform",n?Um(0,Math.round(-T.t)):Um(Math.round(-T.l),0));var rt=e.select("."+Yc.cbfills).selectAll("rect."+Yc.cbfill).attr("style","").data(U);rt.enter().append("rect").classed(Yc.cbfill,!0).attr("style",""),rt.exit().remove();var $e=m.map(Ee.c2p).map(Math.round).sort(function(br,Ut){return br-Ut});rt.each(function(br,Ut){var Ie=[Ut===0?m[0]:(U[Ut]+U[Ut-1])/2,Ut===U.length-1?m[1]:(U[Ut]+U[Ut+1])/2].map(Ee.c2p).map(Math.round);n&&(Ie[1]=N0.constrain(Ie[1]+(Ie[1]>Ie[0])?1:-1,$e[0],$e[1]));var xe=w_.select(this).attr(n?"x":"y",be).attr(n?"y":"x",w_.min(Ie)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(w_.max(Ie)-w_.min(Ie),2));if(t._fillgradient)Nm.gradient(xe,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Oe=A(br).replace("e-","");xe.attr("fill",TV(Oe).toHexString())}});var zt=e.select("."+Yc.cblines).selectAll("path."+Yc.cbline).data(x.color&&x.width?G:[]);zt.enter().append("path").classed(Yc.cbline,!0),zt.exit().remove(),zt.each(function(br){var Ut=be,Ie=Math.round(Ee.c2p(br))+x.width/2%1;w_.select(this).attr("d","M"+(n?Ut+","+Ie:Ie+","+Ut)+(n?"h":"v")+j).call(Nm.lineGroupStyle,x.width,P(br),x.dash)}),gt.selectAll("g."+Ee._id+"tick,path").remove();var Yt=be+j+(u||0)/2-(t.ticks==="outside"?1:0),hr=Ig.calcTicks(Ee),yr=Ig.getTickSigns(Ee)[2];return Ig.drawTicks(r,Ee,{vals:Ee.ticks==="inside"?Ig.clipEnds(Ee,hr):hr,layer:gt,path:Ig.makeTickPath(Ee,Yt,yr),transFn:Ig.makeTransTickFn(Ee)}),Ig.drawLabels(r,Ee,{vals:hr,layer:gt,transFn:Ig.makeTransTickLabelFn(Ee),labelFns:Ig.makeLabelFns(Ee,Yt)})}function Zt(){var Et,Ae=j+u/2;Ke.indexOf("inside")===-1&&(Et=Nm.bBox(gt.node()),Ae+=n?Et.width:Et.height),Nt=ce.select("text");var at=0,wt=n&&M==="top",vt=!n&&M==="right",st=0;if(Nt.node()&&!Nt.classed(Yc.jsPlaceholder)){var Ue,rt=ce.select(".h"+Ee._id+"title-math-group").node();rt&&(n&&Me||!n&&!Me)?(Et=Nm.bBox(rt),at=Et.width,Ue=Et.height):(Et=Nm.bBox(ce.node()),at=Et.right-T.l-(n?be:ke),Ue=Et.bottom-T.t-(n?ke:be),!n&&M==="top"&&(Ae+=Et.height,st=Et.height)),vt&&(Nt.attr("transform",Um(at/2+nt/2,0)),at*=2),Ae=Math.max(Ae,n?at:Ue)}var $e=(n?d:p)*2+Ae+l+u/2,zt=0;!n&&C.text&&h==="bottom"&&b<=0&&(zt=$e/2,$e+=zt,st+=zt),E._hColorbarMoveTitle=zt,E._hColorbarMoveCBTitle=st;var Yt=l+u,hr=(n?be:ke)-Yt/2-(n?d:0),yr=(n?ke:be)-(n?N:p+st-zt);e.select("."+Yc.cbbg).attr("x",hr).attr("y",yr).attr(n?"width":"height",Math.max($e-zt,2)).attr(n?"height":"width",Math.max(N+Yt,2)).call(MV.fill,f).call(MV.stroke,t.bordercolor).style("stroke-width",l);var br=vt?Math.max(at-10,0):0;e.selectAll("."+Yc.cboutline).attr("x",(n?be:ke+d)+br).attr("y",(n?ke+p-N:be)+(wt?it:0)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(N-(n?2*p+it:2*d+br),2)).call(MV.stroke,t.outlinecolor).style({fill:"none","stroke-width":u});var Ut=n?Pe*$e:0,Ie=n?0:(1-Ce)*$e-st;if(Ut=k?T.l-Ut:-Ut,Ie=v?T.t-Ie:-Ie,e.attr("transform",Um(Ut,Ie)),!n&&(l||TV(f).getAlpha()&&!TV.equals(E.paper_bgcolor,f))){var xe=gt.selectAll("text"),Oe=xe[0].length,Re=e.select("."+Yc.cbbg).node(),De=Nm.bBox(Re),ct=Nm.getTranslate(e),ge=2;xe.each(function(Fr,di){var Di=0,Ii=Oe-1;if(di===Di||di===Ii){var Ci=Nm.bBox(this),nn=Nm.getTranslate(this),ii;if(di===Ii){var wi=Ci.right+nn.x,Gi=De.right+ct.x+ke-l-ge+_;ii=Gi-wi,ii>0&&(ii=0)}else if(di===Di){var Bt=Ci.left+nn.x,yt=De.left+ct.x+ke+l+ge;ii=yt-Bt,ii<0&&(ii=0)}ii&&(Oe<3?this.setAttribute("transform","translate("+ii+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var fe={},pe=Gye[c],dt=Hye[c],It=Gye[h],Pt=Hye[h],rr=$e-j;n?(a==="pixels"?(fe.y=b,fe.t=N*It,fe.b=N*Pt):(fe.t=fe.b=0,fe.yt=b+i*It,fe.yb=b-i*Pt),s==="pixels"?(fe.x=_,fe.l=$e*pe,fe.r=$e*dt):(fe.l=rr*pe,fe.r=rr*dt,fe.xl=_-o*pe,fe.xr=_+o*dt)):(a==="pixels"?(fe.x=_,fe.l=N*pe,fe.r=N*dt):(fe.l=fe.r=0,fe.xl=_+i*pe,fe.xr=_-i*dt),s==="pixels"?(fe.y=1-b,fe.t=$e*It,fe.b=$e*Pt):(fe.t=rr*It,fe.b=rr*Pt,fe.yt=b-o*It,fe.yb=b+o*Pt));var Hr=t.y<.5?"b":"t",Dr=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Mr={r:E.width-hr-Ut,l:hr+fe.r,b:E.height-yr-Ie,t:yr+fe.b};k&&v?DI.autoMargin(r,t._id,fe):k?r._fullLayout._reservedMargin[t._id][Hr]=Mr[Hr]:v||n?r._fullLayout._reservedMargin[t._id][Dr]=Mr[Dr]:r._fullLayout._reservedMargin[t._id][Hr]=Mr[Hr]}return N0.syncOrAsync([DI.previousPromises,Tt,Rt,St,DI.previousPromises,Zt],r)}function Jgt(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,u;RI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),SV(e)},moveFn:function(l,f){e.attr("transform",o+Um(l,f)),s=RI.align((n?t._uFrac:t._vFrac)+l/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),u=RI.align((n?t._vFrac:1-t._uFrac)-f/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var c=RI.getCursor(s,u,t.xanchor,t.yanchor);SV(e,c)},doneFn:function(){if(SV(e),s!==void 0&&u!==void 0){var l={};l[t._propPrefix+"x"]=s,l[t._propPrefix+"y"]=u,t._traceIndex!==void 0?Uye.call("_guiRestyle",r,l,t._traceIndex):Uye.call("_guiRelayout",r,l)}}})}function $gt(e,t,r){var n=t._levels,i=[],a=[],o,s,u=n.end+n.size/100,l=n.size,f=1.001*r[0]-.001*r[1],c=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=n.start+s*l,!(l>0?o>=u:o<=u));s++)o>f&&o0?o>=u:o<=u));s++)o>r[0]&&o{"use strict";Zye.exports={moduleType:"component",name:"colorbar",attributes:eP(),supplyDefaults:Oq(),draw:Xye().draw,hasColorbar:Pq()}});var Jye=Te((lur,Kye)=>{"use strict";Kye.exports={moduleType:"component",name:"legend",layoutAttributes:zN(),supplyLayoutDefaults:DN(),draw:XN(),style:GN()}});var Qye=Te((uur,$ye)=>{"use strict";$ye.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var tge=Te((fur,ege)=>{"use strict";ege.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var CV=Te((cur,age)=>{"use strict";var e1t=$l(),nge=ei(),kV=nge.extendFlat,rge=nge.extendDeep;function ige(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function t1t(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}age.exports=function(t,r){var n,i=t.data,a=t.layout,o=rge([],i),s=rge({},a,ige(r.tileClass)),u=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var l=Object.keys(s);for(n=0;n{"use strict";var r1t=pb().EventEmitter,i1t=$l(),n1t=ei(),oge=Lg(),a1t=CV(),o1t=Vz(),s1t=Gz();function l1t(e,t){var r=new r1t,n=a1t(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=oge.getDelay(i._fullLayout);setTimeout(function(){var u=o1t(i),l=document.createElement("canvas");l.id=n1t.randstr(),r=s1t({format:t.format,width:i._fullLayout.width,height:i._fullLayout.height,canvas:l,emitter:r,svg:u}),r.clean=function(){i&&document.body.removeChild(i)}},s)}var o=oge.getRedrawFunc(i);return i1t.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}sge.exports=l1t});var cge=Te((dur,fge)=>{"use strict";var uge=Lg(),u1t={getDelay:uge.getDelay,getRedrawFunc:uge.getRedrawFunc,clone:CV(),toSVG:Vz(),svgToImg:Gz(),toImage:lge(),downloadImage:fU()};fge.exports=u1t});var dge=Te(Rg=>{"use strict";Rg.version=sL().version;See();pne();var f1t=$l(),pE=Rg.register=f1t.register,PV=Dde(),hge=Object.keys(PV);for(FI=0;FI{"use strict";pge.exports=dge()});var Qb=Te((mur,mge)=>{"use strict";mge.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Ly=Te((yur,xge)=>{"use strict";var oh=Zc(),yge=jc().axisHoverFormat,c1t=Nu().hovertemplateAttrs,h1t=Nu().texttemplateAttrs,_ge=nc(),d1t=gc(),gge=Qb(),p1t=Id().pattern,e2=Su().extendFlat,zV=d1t({editType:"calc",arrayOk:!0,colorEditType:"style"}),v1t=oh.marker,m1t=v1t.line,y1t=e2({},m1t.width,{dflt:0}),g1t=e2({width:y1t,editType:"calc"},_ge("marker.line")),_1t=e2({line:g1t,editType:"calc"},_ge("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:p1t,cornerradius:{valType:"any",editType:"calc"}});xge.exports={x:oh.x,x0:oh.x0,dx:oh.dx,y:oh.y,y0:oh.y0,dy:oh.dy,xperiod:oh.xperiod,yperiod:oh.yperiod,xperiod0:oh.xperiod0,yperiod0:oh.yperiod0,xperiodalignment:oh.xperiodalignment,yperiodalignment:oh.yperiodalignment,xhoverformat:yge("x"),yhoverformat:yge("y"),text:oh.text,texttemplate:h1t({editType:"plot"},{keys:gge.eventDataKeys}),hovertext:oh.hovertext,hovertemplate:c1t({},{keys:gge.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:e2({},zV,{}),insidetextfont:e2({},zV,{}),outsidetextfont:e2({},zV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:e2({},oh.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:_1t,offsetgroup:oh.offsetgroup,alignmentgroup:oh.alignmentgroup,selected:{marker:{opacity:oh.selected.marker.opacity,color:oh.selected.marker.color,editType:"style"},textfont:oh.selected.textfont,editType:"style"},unselected:{marker:{opacity:oh.unselected.marker.opacity,color:oh.unselected.marker.color,editType:"style"},textfont:oh.unselected.textfont,editType:"style"},zorder:oh.zorder}});var OI=Te((gur,bge)=>{"use strict";bge.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var qI=Te((_ur,Tge)=>{"use strict";var x1t=jl(),wge=yp().hasColorscale,Age=ed(),b1t=ei().coercePattern;Tge.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=wge(t,"marker");s&&Age(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",x1t.defaultLine),wge(t,"marker.line")&&Age(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),b1t(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var r0=Te((xur,Lge)=>{"use strict";var Sge=ku(),bA=ei(),Mge=jl(),w1t=$l(),A1t=J3(),T1t=Pm(),S1t=qI(),M1t=Gb(),Ege=Ly(),NI=bA.coerceFont;function E1t(e,t,r,n){function i(l,f){return bA.coerce(e,t,Ege,l,f)}var a=A1t(e,t,n,i);if(!a){t.visible=!1;return}T1t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");Cge(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),S1t(e,t,i,r,n);var s=(t.marker.line||{}).color,u=w1t.getComponentMethod("errorbars","supplyDefaults");u(e,t,s||Mge.defaultLine,{axis:"y"}),u(e,t,s||Mge.defaultLine,{axis:"x",inherit:"y"}),bA.coerceSelectionMarkerOpacity(t,i)}function k1t(e,t){var r,n;function i(s,u){return bA.coerce(n._input,n,Ege,s,u)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&Sge(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function Cge(e,t,r,n,i,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,u=a.moduleHasConstrain!==!1,l=a.moduleHasCliponaxis!==!1,f=a.moduleHasTextangle!==!1,c=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(i)||i==="auto",p=d||i==="inside",_=d||i==="outside";if(p||_){var b=NI(n,"textfont",r.font),v=bA.extendFlat({},b),k=e.textfont&&e.textfont.color,E=!k;if(E&&delete v.color,NI(n,"insidetextfont",v),h){var T=bA.extendFlat({},b);E&&delete T.color,NI(n,"pathbar.textfont",T)}_&&NI(n,"outsidetextfont",b),o&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),u&&n("constraintext"),l&&n("cliponaxis"),f&&n("textangle"),n("texttemplate")}p&&c&&n("insidetextanchor")}Lge.exports={supplyDefaults:E1t,crossTraceDefaults:k1t,handleText:Cge,validateCornerradius:kge}});var IV=Te((bur,Pge)=>{"use strict";var C1t=$l(),L1t=wu(),P1t=ei(),z1t=OI(),I1t=r0().validateCornerradius;Pge.exports=function(e,t,r){function n(_,b){return P1t.coerce(e,t,z1t,_,b)}for(var i=!1,a=!1,o=!1,s={},u=n("barmode"),l=u==="group",f=0;f0&&!s[h]&&(o=!0),s[h]=!0),c.visible&&c.type==="histogram"){var d=L1t.getFromId({_fullLayout:t},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!i){delete t.barmode;return}u!=="overlay"&&n("barnorm"),n("bargap",a&&!o?0:.2),n("bargroupgap");var p=n("barcornerradius");t.barcornerradius=I1t(p)}});var vE=Te((wur,zge)=>{"use strict";var wA=ei();zge.exports=function(t,r){for(var n=0;n{"use strict";var Ige=wu(),Rge=Im(),Dge=yp().hasColorscale,Fge=gp(),R1t=vE(),D1t=B0();Bge.exports=function(t,r){var n=Ige.getFromId(t,r.xaxis||"x"),i=Ige.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f,c={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=n.makeCalcdata(r,"x",c),s=i.makeCalcdata(r,"y"),u=Rge(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y",c),s=n.makeCalcdata(r,"x"),u=Rge(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),p=0;p{"use strict";var F1t=Jl(),B1t=ei();function O1t(e,t,r){var n=e._fullLayout,i=n["_"+r+"Text_minsize"];if(i){var a=n.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var u=s.transform;if(u){u.scale=a&&u.hide?0:i/u.fontSize;var l=F1t.select(this).select("text");B1t.setTransormAndDisplay(l,u)}})}}function q1t(e,t,r){if(r.uniformtext.mode){var n=qge(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var U1t=ku(),V1t=cd(),Uge=ei().isArrayOrTypedArray;t2.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};t2.coerceNumber=function(e,t,r){if(U1t(t)){t=+t;var n=e.min,i=e.max,a=n!==void 0&&ti;if(!a)return t}return r!==void 0?r:e.dflt};t2.coerceColor=function(e,t,r){return V1t(t).isValid()?t:r!==void 0?r:e.dflt};t2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};t2.getValue=function(e,t){var r;return Uge(e)?t{"use strict";var mE=Jl(),G1t=jl(),yE=Mu(),Vge=ei(),Gge=$l(),Hge=Ap().resizeText,RV=Ly(),H1t=RV.textfont,W1t=RV.insidetextfont,j1t=RV.outsidetextfont,tp=UI();function X1t(e){var t=mE.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");Hge(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",function(i){return i[0].trace.opacity}).each(function(i){(n.barmode==="stack"&&r>1||n.bargap===0&&n.bargroupgap===0&&!i[0].trace.marker.line.width)&&mE.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=mE.select(this),o=i[0].trace;Wge(a,o,e)}),Gge.getComponentMethod("errorbars","style")(t)}function Wge(e,t,r){yE.pointStyle(e.selectAll("path"),t,r),jge(e,t,r)}function jge(e,t,r){e.selectAll("text").each(function(n){var i=mE.select(this),a=Vge.ensureUniformFontSize(r,Xge(i,n,t,r));yE.font(i,a)})}function Z1t(e,t,r){var n=t[0].trace;n.selectedpoints?Y1t(r,n,e):(Wge(r,n,e),Gge.getComponentMethod("errorbars","style")(r))}function Y1t(e,t,r){yE.selectedPointStyle(e.selectAll("path"),t),K1t(e.selectAll("text"),t,r)}function K1t(e,t,r){e.each(function(n){var i=mE.select(this),a;if(n.selected){a=Vge.ensureUniformFontSize(r,Xge(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),yE.font(i,a)}else yE.selectedTextStyle(i,t)})}function Xge(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=Jge(t,r);a=Yge(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=Kge(r,t.i,i));return a}function Zge(e,t,r){return DV(H1t,e.textfont,t,r)}function Yge(e,t,r,n){var i=Zge(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(i={color:G1t.contrast(n),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),DV(W1t,e.insidetextfont,t,i)}function Kge(e,t,r){var n=Zge(e,t,r);return DV(j1t,e.outsidetextfont,t,n)}function DV(e,t,r,n){t=t||{};var i=tp.getValue(t.family,r),a=tp.getValue(t.size,r),o=tp.getValue(t.color,r),s=tp.getValue(t.weight,r),u=tp.getValue(t.style,r),l=tp.getValue(t.variant,r),f=tp.getValue(t.textcase,r),c=tp.getValue(t.lineposition,r),h=tp.getValue(t.shadow,r);return{family:tp.coerceString(e.family,i,n.family),size:tp.coerceNumber(e.size,a,n.size),color:tp.coerceColor(e.color,o,n.color),weight:tp.coerceString(e.weight,s,n.weight),style:tp.coerceString(e.style,u,n.style),variant:tp.coerceString(e.variant,l,n.variant),textcase:tp.coerceString(e.variant,f,n.textcase),lineposition:tp.coerceString(e.variant,c,n.lineposition),shadow:tp.coerceString(e.variant,h,n.shadow)}}function Jge(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}$ge.exports={style:X1t,styleTextPoints:jge,styleOnSelect:Z1t,getInsideTextFont:Yge,getOutsideTextFont:Kge,getBarColor:Jge,resizeText:Hge}});var i2=Te((Eur,o1e)=>{"use strict";var VI=Jl(),GI=ku(),Bd=ei(),J1t=Xf(),$1t=jl(),A_=Mu(),Q1t=$l(),HI=wu().tickText,Qge=Ap(),e_t=Qge.recordMinTextSize,t_t=Qge.clearMinTextSize,FV=U0(),AA=UI(),r_t=Qb(),e1e=Ly(),i_t=e1e.text,n_t=e1e.textposition,a_t=iv().appendArrayPointValue,Vp=r_t.TEXTPAD;function o_t(e){return e.id}function s_t(e){if(e.ids)return o_t}function BV(e){return(e>0)-(e<0)}function Py(e,t){return e0}function u_t(e,t,r,n,i,a){var o=t.xaxis,s=t.yaxis,u=e._fullLayout,l=e._context.staticPlot;i||(i={mode:u.barmode,norm:u.barmode,gap:u.bargap,groupgap:u.bargroupgap},t_t("bar",u));var f=Bd.makeTraceGroups(n,r,"trace bars").each(function(c){var h=VI.select(this),d=c[0].trace,p=c[0].t,_=d.type==="waterfall",b=d.type==="funnel",v=d.type==="histogram",k=d.type==="bar",E=k||b,T=0;_&&d.connector.visible&&d.connector.mode==="between"&&(T=d.connector.line.width/2);var L=d.orientation==="h",x=r1e(i),C=Bd.ensureSingle(h,"g","points"),M=s_t(d),m=C.selectAll("g.point").data(Bd.identity,M);m.enter().append("g").classed("point",!0),m.exit().remove(),m.each(function(A,B){var F=VI.select(this),U=l_t(A,o,s,L),G=U[0][0],j=U[0][1],H=U[1][0],N=U[1][1],W=(L?j-G:N-H)===0;W&&E&&AA.getLineWidth(d,A)&&(W=!1),W||(W=!GI(G)||!GI(j)||!GI(H)||!GI(N)),A.isBlank=W,W&&(L?j=G:N=H),T&&!W&&(L?(G-=Py(G,j)*T,j+=Py(G,j)*T):(H-=Py(H,N)*T,N+=Py(H,N)*T));var re,ae;if(d.type==="waterfall"){if(!W){var be=d[A.dir].marker;re=be.line.width,ae=be.color}}else re=AA.getLineWidth(d,A),ae=A.mc||d.marker.color;function Pe(Ae){var at=VI.round(re/2%1,2);return i.gap===0&&i.groupgap===0?VI.round(Math.round(Ae)-at,2):Ae}function Ce(Ae,at,wt){return wt&&Ae===at?Ae:Math.abs(Ae-at)>=2?Pe(Ae):Ae>at?Math.ceil(Ae):Math.floor(Ae)}var de=$1t.opacity(ae),te=de<1||re>.01?Pe:Ce;e._context.staticPlot||(G=te(G,j,L),j=te(j,G,L),H=te(H,N,!L),N=te(N,H,!L));var ke=L?o.c2p:s.c2p,Ee;A.s0>0?Ee=A._sMax:A.s0<0?Ee=A._sMin:Ee=A.s1>0?A._sMax:A._sMin;function Me(Ae,at){if(!Ae)return 0;var wt=Math.abs(L?N-H:j-G),vt=Math.abs(L?j-G:N-H),st=te(Math.abs(ke(Ee,!0)-ke(0,!0))),Ue=A.hasB?Math.min(wt/2,vt/2):Math.min(wt/2,st),rt;if(at==="%"){var $e=Math.min(50,Ae);rt=wt*($e/100)}else rt=Ae;return te(Math.max(Math.min(rt,Ue),0))}var Ne=k||v?Me(p.cornerradiusvalue,p.cornerradiusform):0,Fe,ye,Ve="M"+G+","+H+"V"+N+"H"+j+"V"+H+"Z",ce=0;if(Ne&&A.s){var Ke=BV(A.s0)===0||BV(A.s)===BV(A.s0)?A.s1:A.s0;if(ce=te(A.hasB?0:Math.abs(ke(Ee,!0)-ke(Ke,!0))),ce0?Math.sqrt(ce*(2*Ne-ce)):0,kt=nt>0?Math.max:Math.min;Fe="M"+G+","+H+"V"+(N-it*gt)+"H"+kt(j-(Ne-ce)*nt,G)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+j+","+(N-Ne*gt-Ye)+"V"+(H+Ne*gt+Ye)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+kt(j-(Ne-ce)*nt,G)+","+(H+it*gt)+"Z"}else if(A.hasB)Fe="M"+(G+Ne*nt)+","+H+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+G+","+(H+Ne*gt)+"V"+(N-Ne*gt)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+(G+Ne*nt)+","+N+"H"+(j-Ne*nt)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+j+","+(N-Ne*gt)+"V"+(H+Ne*gt)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+(j-Ne*nt)+","+H+"Z";else{ye=Math.abs(N-H)+ce;var Tt=ye0?Math.sqrt(ce*(2*Ne-ce)):0,Rt=gt>0?Math.max:Math.min;Fe="M"+(G+Tt*nt)+","+H+"V"+Rt(N-(Ne-ce)*gt,H)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+(G+Ne*nt-St)+","+N+"H"+(j-Ne*nt+St)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+(j-Tt*nt)+","+Rt(N-(Ne-ce)*gt,H)+"V"+H+"Z"}}else Fe=Ve}else Fe=Ve;var Zt=t1e(Bd.ensureSingle(F,"path"),u,i,a);if(Zt.style("vector-effect",l?"none":"non-scaling-stroke").attr("d",isNaN((j-G)*(N-H))||W&&e._context.staticPlot?"M0,0Z":Fe).call(A_.setClipUrl,t.layerClipId,e),!u.uniformtext.mode&&x){var Et=A_.makePointStyleFns(d);A_.singlePointStyle(A,Zt,d,Et,e)}f_t(e,t,F,c,B,G,j,H,N,Ne,ce,i,a),t.layerClipId&&A_.hideOutsideRangePoint(A,F.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;A_.setClipUrl(h,P?null:t.layerClipId,e)});Q1t.getComponentMethod("errorbars","plot")(e,f,t,i)}function f_t(e,t,r,n,i,a,o,s,u,l,f,c,h){var d=t.xaxis,p=t.yaxis,_=e._fullLayout,b;function v(ye,Ve,ce){var Ke=Bd.ensureSingle(ye,"text").text(Ve).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(A_.font,ce).call(J1t.convertToTspans,e);return Ke}var k=n[0].trace,E=k.orientation==="h",T=d_t(_,n,i,d,p);b=p_t(k,i);var L=c.mode==="stack"||c.mode==="relative",x=n[i],C=!L||x._outmost,M=x.hasB,m=l&&l-f>Vp;if(!T||b==="none"||(x.isBlank||a===o||s===u)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=_.font,A=FV.getBarColor(n[i],k),B=FV.getInsideTextFont(k,i,P,A),F=FV.getOutsideTextFont(k,i,P),U=k.insidetextanchor||"end",G=r.datum();E?d.type==="log"&&G.s0<=0&&(d.range[0]0&&Pe>0,te;m?M?te=r2(N-2*l,W,be,Pe,E)||r2(N,W-2*l,be,Pe,E):E?te=r2(N-(l-f),W,be,Pe,E)||r2(N,W-2*(l-f),be,Pe,E):te=r2(N,W-(l-f),be,Pe,E)||r2(N-2*(l-f),W,be,Pe,E):te=r2(N,W,be,Pe,E),de&&te?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){Ce=Bd.ensureUniformFontSize(e,b==="outside"?F:B),re=v(r,T,Ce);var ke=re.attr("transform");if(re.attr("transform",""),ae=A_.bBox(re.node()),be=ae.width,Pe=ae.height,re.attr("transform",ke),be<=0||Pe<=0){re.remove();return}}var Ee=k.textangle,Me,Ne;b==="outside"?(Ne=k.constraintext==="both"||k.constraintext==="outside",Me=h_t(a,o,s,u,ae,{isHorizontal:E,constrained:Ne,angle:Ee})):(Ne=k.constraintext==="both"||k.constraintext==="inside",Me=a1e(a,o,s,u,ae,{isHorizontal:E,constrained:Ne,angle:Ee,anchor:U,hasB:M,r:l,overhead:f})),Me.fontSize=Ce.size,e_t(k.type==="histogram"?"bar":k.type,Me,_),x.transform=Me;var Fe=t1e(re,_,c,h);Bd.setTransormAndDisplay(Fe,Me)}function r2(e,t,r,n,i){if(e<0||t<0)return!1;var a=r<=e&&n<=t,o=r<=t&&n<=e,s=i?e>=r*(t/n):t>=n*(e/r);return a||o||s}function i1e(e){return e==="auto"?0:e}function n1e(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function a1e(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,u=a.angle||0,l=a.anchor,f=l==="end",c=l==="start",h=a.leftToRight||0,d=(h+1)/2,p=1-d,_=a.hasB,b=a.r,v=a.overhead,k=i.width,E=i.height,T=Math.abs(t-e),L=Math.abs(n-r),x=T>2*Vp&&L>2*Vp?Vp:0;T-=2*x,L-=2*x;var C=i1e(u);u==="auto"&&!(k<=T&&E<=L)&&(k>T||E>L)&&(!(k>L||E>T)||kVp){var A=c_t(e,t,r,n,M,b,v,o,_);m=A.scale,P=A.pad}else m=1,s&&(m=Math.min(1,T/M.x,L/M.y)),P=0;var B=i.left*p+i.right*d,F=(i.top+i.bottom)/2,U=(e+Vp)*p+(t-Vp)*d,G=(r+n)/2,j=0,H=0;if(c||f){var N=(o?M.x:M.y)/2;b&&(f||_)&&(x+=P);var W=o?Py(e,t):Py(r,n);o?c?(U=e+W*x,j=-W*N):(U=t-W*x,j=W*N):c?(G=r+W*x,H=-W*N):(G=n-W*x,H=W*N)}return{textX:B,textY:F,targetX:U,targetY:G,anchorX:j,anchorY:H,scale:m,rotate:C}}function c_t(e,t,r,n,i,a,o,s,u){var l=Math.max(0,Math.abs(t-e)-2*Vp),f=Math.max(0,Math.abs(n-r)-2*Vp),c=a-Vp,h=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=u?c*2:s?c-o:2*h,p=u?c*2:s?2*h:c-o,_,b,v,k,E;return i.y/i.x>=f/(l-d)?k=f/i.y:i.y/i.x<=(f-p)/l?k=l/i.x:!u&&s?(_=i.x*i.x+i.y*i.y/4,b=-2*i.x*(l-c)-i.y*(f/2-c),v=(l-c)*(l-c)+(f/2-c)*(f/2-c)-c*c,k=(-b+Math.sqrt(b*b-4*_*v))/(2*_)):u?(_=(i.x*i.x+i.y*i.y)/4,b=-i.x*(l/2-c)-i.y*(f/2-c),v=(l/2-c)*(l/2-c)+(f/2-c)*(f/2-c)-c*c,k=(-b+Math.sqrt(b*b-4*_*v))/(2*_)):(_=i.x*i.x/4+i.y*i.y,b=-i.x*(l/2-c)-2*i.y*(f-c),v=(l/2-c)*(l/2-c)+(f-c)*(f-c)-c*c,k=(-b+Math.sqrt(b*b-4*_*v))/(2*_)),k=Math.min(1,k),s?E=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-i.y*k)/2)*(c-(f-i.y*k)/2)))-o):E=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(l-i.x*k)/2)*(c-(l-i.x*k)/2)))-o),{scale:k,pad:E}}function h_t(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,u=a.angle||0,l=i.width,f=i.height,c=Math.abs(t-e),h=Math.abs(n-r),d;o?d=h>2*Vp?Vp:0:d=c>2*Vp?Vp:0;var p=1;s&&(p=o?Math.min(1,h/f):Math.min(1,c/l));var _=i1e(u),b=n1e(i,_),v=(o?b.x:b.y)/2,k=(i.left+i.right)/2,E=(i.top+i.bottom)/2,T=(e+t)/2,L=(r+n)/2,x=0,C=0,M=o?Py(t,e):Py(r,n);return o?(T=t-M*d,x=M*v):(L=n+M*d,C=-M*v),{textX:k,textY:E,targetX:T,targetY:L,anchorX:x,anchorY:C,scale:p,rotate:_}}function d_t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=v_t(e,t,r,n,i):a.textinfo?s=m_t(t,r,n,i):s=AA.getValue(a.text,r),AA.coerceString(i_t,s)}function p_t(e,t){var r=AA.getValue(e.textposition,t);return AA.coerceEnumerated(n_t,r)}function v_t(e,t,r,n,i){var a=t[0].trace,o=Bd.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",u=a.type==="waterfall",l=a.type==="funnel",f=a.orientation==="h",c,h,d,p;f?(c="y",h=i,d="x",p=n):(c="x",h=n,d="y",p=i);function _(x){return HI(h,h.c2l(x),!0).text}function b(x){return HI(p,p.c2l(x),!0).text}var v=t[r],k={};k.label=v.p,k.labelLabel=k[c+"Label"]=_(v.p);var E=Bd.castOption(a,v.i,"text");(E===0||E)&&(k.text=E),k.value=v.s,k.valueLabel=k[d+"Label"]=b(v.s);var T={};a_t(T,a,v.i),(s||T.x===void 0)&&(T.x=f?k.value:k.label),(s||T.y===void 0)&&(T.y=f?k.label:k.value),(s||T.xLabel===void 0)&&(T.xLabel=f?k.valueLabel:k.labelLabel),(s||T.yLabel===void 0)&&(T.yLabel=f?k.labelLabel:k.valueLabel),u&&(k.delta=+v.rawS||v.s,k.deltaLabel=b(k.delta),k.final=v.v,k.finalLabel=b(k.final),k.initial=k.final-k.delta,k.initialLabel=b(k.initial)),l&&(k.value=v.s,k.valueLabel=b(k.value),k.percentInitial=v.begR,k.percentInitialLabel=Bd.formatPercent(v.begR),k.percentPrevious=v.difR,k.percentPreviousLabel=Bd.formatPercent(v.difR),k.percentTotal=v.sumR,k.percenTotalLabel=Bd.formatPercent(v.sumR));var L=Bd.castOption(a,v.i,"customdata");return L&&(k.customdata=L),Bd.texttemplateString(o,k,e._d3locale,T,k,a._meta||{})}function m_t(e,t,r,n){var i=e[0].trace,a=i.orientation==="h",o=i.type==="waterfall",s=i.type==="funnel";function u(L){var x=a?n:r;return HI(x,L,!0).text}function l(L){var x=a?r:n;return HI(x,+L,!0).text}var f=i.textinfo,c=e[t],h=f.split("+"),d=[],p,_=function(L){return h.indexOf(L)!==-1};if(_("label")&&d.push(u(e[t].p)),_("text")&&(p=Bd.castOption(i,c.i,"text"),(p===0||p)&&d.push(p)),o){var b=+c.rawS||c.s,v=c.v,k=v-b;_("initial")&&d.push(l(k)),_("delta")&&d.push(l(b)),_("final")&&d.push(l(v))}if(s){_("value")&&d.push(l(c.s));var E=0;_("percent initial")&&E++,_("percent previous")&&E++,_("percent total")&&E++;var T=E>1;_("percent initial")&&(p=Bd.formatPercent(c.begR),T&&(p+=" of initial"),d.push(p)),_("percent previous")&&(p=Bd.formatPercent(c.difR),T&&(p+=" of previous"),d.push(p)),_("percent total")&&(p=Bd.formatPercent(c.sumR),T&&(p+=" of total"),d.push(p))}return d.join("
")}o1e.exports={plot:u_t,toMoveInsideBar:a1e}});var TA=Te((kur,f1e)=>{"use strict";var gE=Xc(),y_t=$l(),s1e=jl(),g_t=ei().fillText,__t=UI().getLineWidth,OV=wu().hoverLabelText,x_t=nf().BADNUM;function b_t(e,t,r,n,i){var a=l1e(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,u=o[a.index];return a.color=u1e(s,u),y_t.getComponentMethod("errorbars","hoverInfo")(u,s,a),[a]}}function l1e(e,t,r,n,i){var a=e.cd,o=a[0].trace,s=a[0].t,u=n==="closest",l=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,h,d,p,_,b,v,k;o.orientation==="h"?(h=r,d=t,p="y",_="x",b=G,v=B):(h=t,d=r,p="x",_="y",v=G,b=B);var E=o[p+"period"],T=u||E;function L(te){return C(te,-1)}function x(te){return C(te,1)}function C(te,ke){var Ee=te.w;return te[p]+ke*Ee/2}function M(te){return te[p+"End"]-te[p+"Start"]}var m=u?L:E?function(te){return te.p-M(te)/2}:function(te){return Math.min(L(te),te.p-s.bardelta/2)},P=u?x:E?function(te){return te.p+M(te)/2}:function(te){return Math.max(x(te),te.p+s.bardelta/2)};function A(te,ke,Ee){return i.finiteRange&&(Ee=0),gE.inbox(te-h,ke-h,Ee+Math.min(1,Math.abs(ke-te)/k)-1)}function B(te){return A(m(te),P(te),f)}function F(te){return A(L(te),x(te),c)}function U(te){var ke=te[_];if(l){var Ee=Math.abs(te.rawS)||0;d>0?ke+=Ee:d<0&&(ke-=Ee)}return ke}function G(te){var ke=d,Ee=te.b,Me=U(te);return gE.inbox(Ee-ke,Me-ke,f+(Me-ke)/(Me-Ee)-1)}function j(te){var ke=d,Ee=te.b,Me=U(te);return gE.inbox(Ee-ke,Me-ke,c+(Me-ke)/(Me-Ee)-1)}var H=e[p+"a"],N=e[_+"a"];k=Math.abs(H.r2c(H.range[1])-H.r2c(H.range[0]));function W(te){return(b(te)+v(te))/2}var re=gE.getDistanceFunction(n,b,v,W);if(gE.getClosest(a,re,e),e.index!==!1&&a[e.index].p!==x_t){T||(m=function(te){return Math.min(L(te),te.p-s.bargroupwidth/2)},P=function(te){return Math.max(x(te),te.p+s.bargroupwidth/2)});var ae=e.index,be=a[ae],Pe=o.base?be.b+be.s:be.s;e[_+"0"]=e[_+"1"]=N.c2p(be[_],!0),e[_+"LabelVal"]=Pe;var Ce=s.extents[s.extents.round(be.p)];e[p+"0"]=H.c2p(u?m(be):Ce[0],!0),e[p+"1"]=H.c2p(u?P(be):Ce[1],!0);var de=be.orig_p!==void 0;return e[p+"LabelVal"]=de?be.orig_p:be.p,e.labelLabel=OV(H,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=OV(N,e[_+"LabelVal"],o[_+"hoverformat"]),e.baseLabel=OV(N,be.b,o[_+"hoverformat"]),e.spikeDistance=(j(be)+F(be))/2,e[p+"Spike"]=H.c2p(be.p,!0),g_t(be,o,e),e.hovertemplate=o.hovertemplate,e}}function u1e(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=__t(e,t);if(s1e.opacity(r))return r;if(s1e.opacity(n)&&i)return n}f1e.exports={hoverPoints:b_t,hoverOnBars:l1e,getTraceColor:u1e}});var h1e=Te((Cur,c1e)=>{"use strict";c1e.exports=function(t,r,n){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var SA=Te((Lur,d1e)=>{"use strict";d1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=n[0].trace,s=o.type==="funnel",u=o.orientation==="h",l=[],f;if(r===!1)for(f=0;f{"use strict";p1e.exports={attributes:Ly(),layoutAttributes:OI(),supplyDefaults:r0().supplyDefaults,crossTraceDefaults:r0().crossTraceDefaults,supplyLayoutDefaults:IV(),calc:Oge(),crossTraceCalc:Hb().crossTraceCalc,colorbar:ep(),arraysToCalcdata:vE(),plot:i2().plot,style:U0().style,styleOnSelect:U0().styleOnSelect,hoverPoints:TA().hoverPoints,eventData:h1e(),selectPoints:SA(),moduleType:"trace",name:"bar",basePlotModule:Th(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var y1e=Te((zur,m1e)=>{"use strict";m1e.exports=v1e()});var _E=Te((Iur,b1e)=>{"use strict";var A_t=km(),V0=Zc(),g1e=Ly(),T_t=Rh(),_1e=jc().axisHoverFormat,S_t=Nu().hovertemplateAttrs,Dg=Su().extendFlat,MA=V0.marker,x1e=MA.line;b1e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:V0.xperiod,yperiod:V0.yperiod,xperiod0:V0.xperiod0,yperiod0:V0.yperiod0,xperiodalignment:V0.xperiodalignment,yperiodalignment:V0.yperiodalignment,xhoverformat:_1e("x"),yhoverformat:_1e("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Dg({},MA.symbol,{arrayOk:!1,editType:"plot"}),opacity:Dg({},MA.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Dg({},MA.angle,{arrayOk:!1,editType:"calc"}),size:Dg({},MA.size,{arrayOk:!1,editType:"calc"}),color:Dg({},MA.color,{arrayOk:!1,editType:"style"}),line:{color:Dg({},x1e.color,{arrayOk:!1,dflt:T_t.defaultLine,editType:"style"}),width:Dg({},x1e.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:A_t(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:g1e.offsetgroup,alignmentgroup:g1e.alignmentgroup,selected:{marker:V0.selected.marker,editType:"style"},unselected:{marker:V0.unselected.marker,editType:"style"},text:Dg({},V0.text,{}),hovertext:Dg({},V0.hovertext,{}),hovertemplate:S_t({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:V0.zorder}});var xE=Te((Rur,w1e)=>{"use strict";w1e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var wE=Te((Dur,M1e)=>{"use strict";var G0=ei(),M_t=$l(),E_t=jl(),k_t=Pm(),C_t=Gb(),A1e=L3(),bE=_E();function L_t(e,t,r,n){function i(p,_){return G0.coerce(e,t,bE,p,_)}if(T1e(e,t,i,n),t.visible!==!1){k_t(e,t,n,i),i("xhoverformat"),i("yhoverformat");var a=t._hasPreCompStats;a&&(i("lowerfence"),i("upperfence")),i("line.color",(e.marker||{}).color||r),i("line.width"),i("fillcolor",E_t.addOpacity(t.line.color,.5));var o=!1;if(a){var s=i("mean"),u=i("sd");s&&s.length&&(o=!0,u&&u.length&&(o="sd"))}i("whiskerwidth");var l=i("sizemode"),f;l==="quartiles"&&(f=i("boxmean",o)),i("showwhiskers",l==="quartiles"),(l==="sd"||f==="sd")&&i("sdmultiple"),i("width"),i("quartilemethod");var c=!1;if(a){var h=i("notchspan");h&&h.length&&(c=!0)}else G0.validate(e.notchwidth,bE.notchwidth)&&(c=!0);var d=i("notched",c);d&&i("notchwidth"),S1e(e,t,i,{prefix:"box"}),i("zorder")}}function T1e(e,t,r,n){function i(P){var A=0;return P&&P.length&&(A+=1,G0.isArrayOrTypedArray(P[0])&&P[0].length&&(A+=1)),A}function a(P){return G0.validate(e[P],bE[P])}var o=r("y"),s=r("x"),u;if(t.type==="box"){var l=r("q1"),f=r("median"),c=r("q3");t._hasPreCompStats=l&&l.length&&f&&f.length&&c&&c.length,u=Math.min(G0.minRowLength(l),G0.minRowLength(f),G0.minRowLength(c))}var h=i(o),d=i(s),p=h&&G0.minRowLength(o),_=d&&G0.minRowLength(s),b=n.calendar,v={autotypenumbers:n.autotypenumbers},k,E;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var T=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!T?k="h":k="v",E=u;break;case"10":k="v",E=Math.min(u,_);break;case"20":k="h",E=Math.min(u,s.length);break;case"01":k="h",E=Math.min(u,p);break;case"02":k="v",E=Math.min(u,o.length);break;case"12":k="v",E=Math.min(u,_,o.length);break;case"21":k="h",E=Math.min(u,s.length,p);break;case"11":E=0;break;case"22":var x=!1,C;for(C=0;C0?(k="v",d>0?E=Math.min(_,p):E=Math.min(p)):d>0?(k="h",E=Math.min(_)):E=0;if(!E){t.visible=!1;return}t._length=E;var M=r("orientation",k);t._hasPreCompStats?M==="v"&&d===0?(r("x0",0),r("dx",1)):M==="h"&&h===0&&(r("y0",0),r("dy",1)):M==="v"&&d===0?r("x0"):M==="h"&&h===0&&r("y0");var m=M_t.getComponentMethod("calendars","handleTraceDefaults");m(e,t,["x","y"],n)}function S1e(e,t,r,n){var i=n.prefix,a=G0.coerce2(e,t,bE,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var u=r(i+"points",s);u?(r("jitter",u==="all"?.3:0),r("pointpos",u==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),u==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var l=r("hoveron");(l==="all"||l.indexOf("points")!==-1)&&r("hovertemplate"),G0.coerceSelectionMarkerOpacity(t,r)}function P_t(e,t){var r,n;function i(u){return G0.coerce(n._input,n,bE,u)}for(var a=0;a{"use strict";var z_t=$l(),I_t=ei(),R_t=xE();function E1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var NV=ku(),jI=wu(),F_t=Im(),Sh=ei(),i0=nf().BADNUM,Fg=Sh._;B1e.exports=function(t,r){var n=t._fullLayout,i=jI.getFromId(t,r.xaxis||"x"),a=jI.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",u,l,f,c,h,d,p;r.orientation==="h"?(f=i,c="x",h=a,d="y",p=!!r.yperiodalignment):(f=a,c="y",h=i,d="x",p=!!r.xperiodalignment);var _=B_t(r,d,h,n[s]),b=_[0],v=_[1],k=Sh.distinctVals(b,h),E=k.vals,T=k.minDiff/2,L,x,C,M,m,P,A=(r.boxpoints||r.points)==="all"?Sh.identity:function(Nt){return Nt.vL.uf};if(r._hasPreCompStats){var B=r[c],F=function(Nt){return f.d2c((r[Nt]||[])[u])},U=1/0,G=-1/0;for(u=0;u=L.q1&&L.q3>=L.med){var H=F("lowerfence");L.lf=H!==i0&&H<=L.q1?H:z1e(L,C,M);var N=F("upperfence");L.uf=N!==i0&&N>=L.q3?N:I1e(L,C,M);var W=F("mean");L.mean=W!==i0?W:M?Sh.mean(C,M):(L.q1+L.q3)/2;var re=F("sd");L.sd=W!==i0&&re>=0?re:M?Sh.stdev(C,M,L.mean):L.q3-L.q1,L.lo=R1e(L),L.uo=D1e(L);var ae=F("notchspan");ae=ae!==i0&&ae>0?ae:F1e(L,M),L.ln=L.med-ae,L.un=L.med+ae;var be=L.lf,Pe=L.uf;r.boxpoints&&C.length&&(be=Math.min(be,C[0]),Pe=Math.max(Pe,C[M-1])),r.notched&&(be=Math.min(be,L.ln),Pe=Math.max(Pe,L.un)),L.min=be,L.max=Pe}else{Sh.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` +`));var Ce;L.med!==i0?Ce=L.med:L.q1!==i0?L.q3!==i0?Ce=(L.q1+L.q3)/2:Ce=L.q1:L.q3!==i0?Ce=L.q3:Ce=0,L.med=Ce,L.q1=L.q3=Ce,L.lf=L.uf=Ce,L.mean=L.sd=Ce,L.ln=L.un=Ce,L.min=L.max=Ce}U=Math.min(U,L.min),G=Math.max(G,L.max),L.pts2=x.filter(A),o.push(L)}}r._extremes[f._id]=jI.findExtremes(f,[U,G],{padded:!0})}else{var de=f.makeCalcdata(r,c),te=O_t(E,T),ke=E.length,Ee=q_t(ke);for(u=0;u=0&&Me0){if(L={},L.pos=L[d]=E[u],x=L.pts=Ee[u].sort(L1e),C=L[c]=x.map(P1e),M=C.length,L.min=C[0],L.max=C[M-1],L.mean=Sh.mean(C,M),L.sd=Sh.stdev(C,M,L.mean)*r.sdmultiple,L.med=Sh.interp(C,.5),M%2&&(Ve||ce)){var Ke,nt;Ve?(Ke=C.slice(0,M/2),nt=C.slice(M/2+1)):ce&&(Ke=C.slice(0,M/2+1),nt=C.slice(M/2)),L.q1=Sh.interp(Ke,.5),L.q3=Sh.interp(nt,.5)}else L.q1=Sh.interp(C,.25),L.q3=Sh.interp(C,.75);L.lf=z1e(L,C,M),L.uf=I1e(L,C,M),L.lo=R1e(L),L.uo=D1e(L);var gt=F1e(L,M);L.ln=L.med-gt,L.un=L.med+gt,Ne=Math.min(Ne,L.ln),Fe=Math.max(Fe,L.un),L.pts2=x.filter(A),o.push(L)}r.notched&&Sh.isTypedArray(de)&&(de=Array.from(de)),r._extremes[f._id]=jI.findExtremes(f,r.notched?de.concat([Ne,Fe]):de,{padded:!0})}return N_t(o,r),o.length>0?(o[0].t={num:n[s],dPos:T,posLetter:d,valLetter:c,labels:{med:Fg(t,"median:"),min:Fg(t,"min:"),q1:Fg(t,"q1:"),q3:Fg(t,"q3:"),max:Fg(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?Fg(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):Fg(t,"mean:"),lf:Fg(t,"lower fence:"),uf:Fg(t,"upper fence:")}},n[s]++,o):[{t:{empty:!0}}]};function B_t(e,t,r,n){var i=t in e,a=t+"0"in e,o="d"+t in e;if(i||a&&o){var s=r.makeCalcdata(e,t),u=F_t(e,r,t,s).vals;return[u,s]}var l;a?l=e[t+"0"]:"name"in e&&(r.type==="category"||NV(e.name)&&["linear","log"].indexOf(r.type)!==-1||Sh.isDateTime(e.name)&&r.type==="date")?l=e.name:l=n;for(var f=r.type==="multicategory"?r.r2c_just_indices(l):r.d2c(l,0,e[t+"calendar"]),c=e._length,h=new Array(c),d=0;d{"use strict";var O1e=wu(),U_t=ei(),V_t=qb().getAxisGroup,q1e=["v","h"];function G_t(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,k=1-a[e+"gap"],E=1-a[e+"groupgap"];for(u=0;u0;if(C==="positive"?(N=M*(x?1:.5),ae=re,W=ae=P):C==="negative"?(N=ae=P,W=M*(x?1:.5),be=re):(N=W=M,ae=be=re),Ee){var Me=T.pointpos,Ne=T.jitter,Fe=T.marker.size/2,ye=0;Me+Ne>=0&&(ye=re*(Me+Ne),ye>N?(ke=!0,de=Fe,Pe=ye):ye>ae&&(de=Fe,Pe=N)),ye<=N&&(Pe=N);var Ve=0;Me-Ne<=0&&(Ve=-re*(Me-Ne),Ve>W?(ke=!0,te=Fe,Ce=Ve):Ve>be&&(te=Fe,Ce=W)),Ve<=W&&(Ce=W)}else Pe=N,Ce=W;var ce=new Array(f.length);for(l=0;l{"use strict";var EA=Jl(),n2=ei(),H_t=Mu(),V1e=5,W_t=.01;function j_t(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;n2.makeTraceGroups(n,r,"trace boxes").each(function(s){var u=EA.select(this),l=s[0],f=l.t,c=l.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){u.remove();return}var h,d;c.orientation==="h"?(h=o,d=a):(h=a,d=o),G1e(u,{pos:h,val:d},c,f,i),H1e(u,{x:a,y:o},c,f),W1e(u,{pos:h,val:d},c,f)})}function G1e(e,t,r,n,i){var a=r.orientation==="h",o=t.val,s=t.pos,u=!!s.rangebreaks,l=n.bPos,f=n.wdPos||0,c=n.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,p=r.notched||!1,_=p?1-2*r.notchwidth:1,b,v;Array.isArray(n.bdPos)?(b=n.bdPos[0],v=n.bdPos[1]):(b=n.bdPos,v=n.bdPos);var k=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?n2.identity:[]);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),k.exit().remove(),k.each(function(E){if(E.empty)return EA.select(this).attr("d","M0,0Z");var T=s.c2l(E.pos+l,!0),L=s.l2p(T-b)+c,x=s.l2p(T+v)+c,C=u?(L+x)/2:s.l2p(T)+c,M=r.whiskerwidth,m=u?L*M+(1-M)*C:s.l2p(T-f)+c,P=u?x*M+(1-M)*C:s.l2p(T+f)+c,A=s.l2p(T-b*_)+c,B=s.l2p(T+v*_)+c,F=r.sizemode==="sd",U=o.c2p(F?E.mean-E.sd:E.q1,!0),G=F?o.c2p(E.mean+E.sd,!0):o.c2p(E.q3,!0),j=n2.constrain(F?o.c2p(E.mean,!0):o.c2p(E.med,!0),Math.min(U,G)+1,Math.max(U,G)-1),H=E.lf===void 0||r.boxpoints===!1||F,N=o.c2p(H?E.min:E.lf,!0),W=o.c2p(H?E.max:E.uf,!0),re=o.c2p(E.ln,!0),ae=o.c2p(E.un,!0);a?EA.select(this).attr("d","M"+j+","+A+"V"+B+"M"+U+","+L+"V"+x+(p?"H"+re+"L"+j+","+B+"L"+ae+","+x:"")+"H"+G+"V"+L+(p?"H"+ae+"L"+j+","+A+"L"+re+","+L:"")+"Z"+(d?"M"+U+","+C+"H"+N+"M"+G+","+C+"H"+W+(h===0?"":"M"+N+","+m+"V"+P+"M"+W+","+m+"V"+P):"")):EA.select(this).attr("d","M"+A+","+j+"H"+B+"M"+L+","+U+"H"+x+(p?"V"+re+"L"+B+","+j+"L"+x+","+ae:"")+"V"+G+"H"+L+(p?"V"+ae+"L"+A+","+j+"L"+L+","+re:"")+"Z"+(d?"M"+C+","+U+"V"+N+"M"+C+","+G+"V"+W+(h===0?"":"M"+m+","+N+"H"+P+"M"+m+","+W+"H"+P):""))})}function H1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,u=r.boxpoints||r.points;n2.seedPseudoRandom();var l=function(h){return h.forEach(function(d){d.t=n,d.trace=r}),h},f=e.selectAll("g.points").data(u?l:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(h){var d,p=h.pts2,_=Math.max((h.max-h.min)/10,h.q3-h.q1),b=_*1e-9,v=_*W_t,k=[],E=0,T;if(r.jitter){if(_===0)for(E=1,k=new Array(p.length),d=0;dh.lo&&(P.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(H_t.translatePoints,i,a)}function W1e(e,t,r,n){var i=t.val,a=t.pos,o=!!a.rangebreaks,s=n.bPos,u=n.bPosPxOffset||0,l=r.boxmean||(r.meanline||{}).visible,f,c;Array.isArray(n.bdPos)?(f=n.bdPos[0],c=n.bdPos[1]):(f=n.bdPos,c=n.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?n2.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var p=a.c2l(d.pos+s,!0),_=a.l2p(p-f)+u,b=a.l2p(p+c)+u,v=o?(_+b)/2:a.l2p(p)+u,k=i.c2p(d.mean,!0),E=i.c2p(d.mean-d.sd,!0),T=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?EA.select(this).attr("d","M"+k+","+_+"V"+b+(l==="sd"?"m0,0L"+E+","+v+"L"+k+","+_+"L"+T+","+v+"Z":"")):EA.select(this).attr("d","M"+_+","+k+"H"+b+(l==="sd"?"m0,0L"+v+","+E+"L"+_+","+k+"L"+v+","+T+"Z":""))})}j1e.exports={plot:j_t,plotBoxAndWhiskers:G1e,plotPoints:H1e,plotBoxMean:W1e}});var YI=Te((Nur,X1e)=>{"use strict";var VV=Jl(),GV=jl(),HV=Mu();function X_t(e,t,r){var n=r||VV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=VV.select(this),o=i[0].trace,s=o.line.width;function u(c,h,d,p){c.style("stroke-width",h+"px").call(GV.stroke,d).call(GV.fill,p)}var l=a.selectAll("path.box");if(o.type==="candlestick")l.each(function(c){if(!c.empty){var h=VV.select(this),d=o[c.dir];u(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{u(l,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(GV.stroke,o.line.color);var f=a.selectAll("path.point");HV.pointStyle(f,o,e)}})}function Z_t(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?HV.selectedPointStyle(i,n):HV.pointStyle(i,n,e)}X1e.exports={style:X_t,styleOnSelect:Z_t}});var jV=Te((Uur,J1e)=>{"use strict";var Y_t=wu(),WV=ei(),T_=Xc(),Z1e=jl(),K_t=WV.fillText;function J_t(e,t,r,n){var i=e.cd,a=i[0].trace,o=a.hoveron,s=[],u;return o.indexOf("boxes")!==-1&&(s=s.concat(Y1e(e,t,r,n))),o.indexOf("points")!==-1&&(u=K1e(e,t,r)),n==="closest"?u?[u]:s:(u&&s.push(u),s)}function Y1e(e,t,r,n){var i=e.cd,a=e.xa,o=e.ya,s=i[0].trace,u=i[0].t,l=s.type==="violin",f,c,h,d,p,_,b,v,k,E,T,L=u.bdPos,x,C,M=u.wHover,m=function(Fe){return h.c2l(Fe.pos)+u.bPos-h.c2l(_)};l&&s.side!=="both"?(s.side==="positive"&&(k=function(Fe){var ye=m(Fe);return T_.inbox(ye,ye+M,E)},x=L,C=0),s.side==="negative"&&(k=function(Fe){var ye=m(Fe);return T_.inbox(ye-M,ye,E)},x=0,C=L)):(k=function(Fe){var ye=m(Fe);return T_.inbox(ye-M,ye+M,E)},x=C=L);var P;l?P=function(Fe){return T_.inbox(Fe.span[0]-p,Fe.span[1]-p,E)}:P=function(Fe){return T_.inbox(Fe.min-p,Fe.max-p,E)},s.orientation==="h"?(p=t,_=r,b=P,v=k,f="y",h=o,c="x",d=a):(p=r,_=t,b=k,v=P,f="x",h=a,c="y",d=o);var A=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));E=e.maxHoverDistance-A,T=e.maxSpikeDistance-A;function B(Fe){return(b(Fe)+v(Fe))/2}var F=T_.getDistanceFunction(n,b,v,B);if(T_.getClosest(i,F,e),e.index===!1)return[];var U=i[e.index],G=s.line.color,j=(s.marker||{}).color;Z1e.opacity(G)&&s.line.width?e.color=G:Z1e.opacity(j)&&s.boxpoints?e.color=j:e.color=s.fillcolor,e[f+"0"]=h.c2p(U.pos+u.bPos-C,!0),e[f+"1"]=h.c2p(U.pos+u.bPos+x,!0),e[f+"LabelVal"]=U.orig_p!==void 0?U.orig_p:U.pos;var H=f+"Spike";e.spikeDistance=B(U)*T/E,e[H]=h.c2p(U.pos,!0);var N=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,W=s.boxpoints||s.points,re=W&&N?["max","uf","q3","med","mean","q1","lf","min"]:W&&!N?["max","uf","q3","med","q1","lf","min"]:!W&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],ae=d.range[1]{"use strict";$1e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var XV=Te((Gur,e_e)=>{"use strict";e_e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u;if(r===!1)for(s=0;s{"use strict";t_e.exports={attributes:_E(),layoutAttributes:xE(),supplyDefaults:wE().supplyDefaults,crossTraceDefaults:wE().crossTraceDefaults,supplyLayoutDefaults:WI().supplyLayoutDefaults,calc:UV(),crossTraceCalc:XI().crossTraceCalc,plot:ZI().plot,style:YI().style,styleOnSelect:YI().styleOnSelect,hoverPoints:jV().hoverPoints,eventData:Q1e(),selectPoints:XV(),moduleType:"trace",name:"box",basePlotModule:Th(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var n_e=Te((Wur,i_e)=>{"use strict";i_e.exports=r_e()});var kA=Te((jur,a_e)=>{"use strict";var n0=Zc(),$_t=Gf(),Q_t=gc(),ZV=jc().axisHoverFormat,ext=Nu().hovertemplateAttrs,txt=Nu().texttemplateAttrs,rxt=nc(),Lv=Su().extendFlat;a_e.exports=Lv({z:{valType:"data_array",editType:"calc"},x:Lv({},n0.x,{impliedEdits:{xtype:"array"}}),x0:Lv({},n0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Lv({},n0.dx,{impliedEdits:{xtype:"scaled"}}),y:Lv({},n0.y,{impliedEdits:{ytype:"array"}}),y0:Lv({},n0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Lv({},n0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Lv({},n0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Lv({},n0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Lv({},n0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Lv({},n0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Lv({},n0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Lv({},n0.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:ZV("x"),yhoverformat:ZV("y"),zhoverformat:ZV("z",1),hovertemplate:ext(),texttemplate:txt({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:Q_t({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Lv({},$_t.showlegend,{dflt:!1}),zorder:n0.zorder},rxt("",{cLetter:"z",autoColorDflt:!1}))});var JI=Te((Xur,s_e)=>{"use strict";var ixt=ku(),KI=ei(),nxt=$l();s_e.exports=function(t,r,n,i,a,o){var s=n("z");a=a||"x",o=o||"y";var u,l;if(s===void 0||!s.length)return 0;if(KI.isArray1D(s)){u=n(a),l=n(o);var f=KI.minRowLength(u),c=KI.minRowLength(l);if(f===0||c===0)return 0;r._length=Math.min(f,c,s.length)}else{if(u=o_e(a,n),l=o_e(o,n),!axt(s))return 0;n("transpose"),r._length=null}var h=nxt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function o_e(e,t){var r=t(e),n=r?t(e+"type","array"):"scaled";return n==="scaled"&&(t(e+"0"),t("d"+e)),r}function axt(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var l_e=ei();u_e.exports=function(t,r){t("texttemplate");var n=l_e.extendFlat({},r.font,{color:"auto",size:"auto"});l_e.coerceFont(t,"textfont",n)}});var YV=Te((Yur,f_e)=>{"use strict";f_e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var d_e=Te((Kur,h_e)=>{"use strict";var c_e=ei(),oxt=JI(),sxt=AE(),lxt=Pm(),uxt=YV(),fxt=ed(),cxt=kA();h_e.exports=function(t,r,n,i){function a(s,u){return c_e.coerce(t,r,cxt,s,u)}var o=oxt(t,r,a,i);if(!o){r.visible=!1;return}lxt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),sxt(a,i),uxt(t,r,a,i),a("hoverongaps"),a("connectgaps",c_e.isArray1D(r.z)&&r.zsmooth!==!1),fxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var KV=Te((Jur,p_e)=>{"use strict";var CA=ku();p_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return CA(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return CA(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(CA(i))if(i=Number(i),CA(r[e])){if(r[e]>i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0},max:function(e,t,r,n){var i=n[t];if(CA(i))if(i=Number(i),CA(r[e])){if(r[e]{"use strict";v_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";m_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var LA=nf(),a2=LA.ONEAVGYEAR,y_e=LA.ONEAVGMONTH,QI=LA.ONEDAY,g_e=LA.ONEHOUR,__e=LA.ONEMIN,x_e=LA.ONESEC,b_e=wu().tickIncrement;T_e.exports=function(t,r,n,i,a){var o=-1.1*r,s=-.1*r,u=t-s,l=n[0],f=n[1],c=Math.min($I(l+s,l+u,i,a),$I(f+s,f+u,i,a)),h=Math.min($I(l+o,l+s,i,a),$I(f+o,f+s,i,a)),d,p;if(c>h&&hQI){var _=d===a2?1:6,b=d===a2?"M12":"M1";return function(v,k){var E=i.c2d(v,a2,a),T=E.indexOf("-",_);T>0&&(E=E.substr(0,T));var L=i.d2c(E,0,a);if(Lx_e?e>QI?e>a2*1.1?a2:e>y_e*1.1?y_e:QI:e>g_e?g_e:e>__e?__e:x_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function hxt(e,t,r,n,i,a){if(n&&e>QI){var o=A_e(t,i,a),s=A_e(r,i,a),u=e===a2?0:1;return o[u]!==s[u]}return Math.floor(r/e)-Math.floor(t/e)>.1}function A_e(e,t,r){var n=t.c2d(e,a2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var rG=Te((tfr,C_e)=>{"use strict";var eG=ku(),Gp=ei(),S_e=$l(),H0=wu(),{hasColorscale:M_e}=yp(),E_e=gp(),dxt=vE(),k_e=KV(),pxt=JV(),vxt=$V(),mxt=QV();function yxt(e,t){var r=[],n=[],i=t.orientation==="h",a=H0.getFromId(e,i?t.yaxis:t.xaxis),o=i?"y":"x",s={x:"y",y:"x"}[o],u=t[o+"calendar"],l=t.cumulative,f,c=tG(e,t,a,o),h=c[0],d=c[1],p=typeof h.size=="string",_=[],b=p?_:h,v=[],k=[],E=[],T=0,L=t.histnorm,x=t.histfunc,C=L.indexOf("density")!==-1,M,m,P;l.enabled&&C&&(L=L.replace(/ ?density$/,""),C=!1);var A=x==="max"||x==="min",B=A?null:0,F=k_e.count,U=pxt[L],G=!1,j=function(ye){return a.r2c(ye,0,u)},H;for(Gp.isArrayOrTypedArray(t[s])&&x!=="count"&&(H=t[s],G=x==="avg",F=k_e[x]),f=j(h.start),m=j(h.end)+(f-H0.tickIncrement(f,h.size,!1,u))/1e6;f=0&&P=Me;f--)if(n[f]){Ne=f;break}for(f=Me;f<=Ne;f++)if(eG(r[f])&&eG(n[f])){var Fe={p:r[f],s:n[f],b:0};l.enabled||(Fe.pts=E[f],ae?Fe.ph0=Fe.ph1=E[f].length?d[E[f][0]]:r[f]:(t._computePh=!0,Fe.ph0=te(_[f]),Fe.ph1=te(_[f+1],!0))),Ee.push(Fe)}return Ee.length===1&&(Ee[0].width1=H0.tickIncrement(Ee[0].p,h.size,!1,u)-Ee[0].p),M_e(t,"marker")&&E_e(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),M_e(t,"marker.line")&&E_e(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),dxt(Ee,t),Gp.isArrayOrTypedArray(t.selectedpoints)&&Gp.tagSelected(Ee,t,Ce),Ee}function tG(e,t,r,n,i){var a=n+"bins",o=e._fullLayout,s=t["_"+n+"bingroup"],u=o._histogramBinOpts[s],l=o.barmode==="overlay",f,c,h,d,p,_,b,v=function(de){return r.r2c(de,0,d)},k=function(de){return r.c2r(de,0,d)},E=r.type==="date"?function(de){return de||de===0?Gp.cleanDate(de,null,d):null}:function(de){return eG(de)?Number(de):null};function T(de,te,ke){te[de+"Found"]?(te[de]=E(te[de]),te[de]===null&&(te[de]=ke[de])):(_[de]=te[de]=ke[de],Gp.nestedProperty(c[0],a+"."+de).set(ke[de]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{c=u.traces;var L=[],x=!0,C=!1,M=!1;for(f=0;fr.r2l(H)&&(W=H0.tickIncrement(W,u.size,!0,d)),F.start=r.l2r(W),j||Gp.nestedProperty(t,a+".start").set(F.start)}var re=u.end,ae=r.r2l(B.end),be=ae!==void 0;if((u.endFound||be)&&ae!==r.r2l(re)){var Pe=be?ae:Gp.aggNums(Math.max,null,p);F.end=r.l2r(Pe),be||Gp.nestedProperty(t,a+".start").set(F.end)}var Ce="autobin"+n;return t._input[Ce]===!1&&(t._input[a]=Gp.extendFlat({},t[a]||{}),delete t._input[Ce],delete t[Ce]),[F,p]}function gxt(e,t,r,n,i){var a=e._fullLayout,o=_xt(e,t),s=!1,u=1/0,l=[t],f,c,h;for(f=0;f=0;n--)s(n);else if(t==="increasing"){for(n=1;n=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}C_e.exports={calc:yxt,calcAllAutoBins:tG}});var B_e=Te((rfr,F_e)=>{"use strict";var L_e=ei(),PA=wu(),P_e=KV(),bxt=JV(),wxt=$V(),Axt=QV(),z_e=rG().calcAllAutoBins;F_e.exports=function(t,r){var n=PA.getFromId(t,r.xaxis),i=PA.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(Ue){return n.r2c(Ue,0,a)},u=function(Ue){return i.r2c(Ue,0,o)},l=function(Ue){return n.c2r(Ue,0,a)},f=function(Ue){return i.c2r(Ue,0,o)},c,h,d,p,_=z_e(t,r,n,"x"),b=_[0],v=_[1],k=z_e(t,r,i,"y"),E=k[0],T=k[1],L=r._length;v.length>L&&v.splice(L,v.length-L),T.length>L&&T.splice(L,T.length-L);var x=[],C=[],M=[],m=typeof b.size=="string",P=typeof E.size=="string",A=[],B=[],F=m?A:b,U=P?B:E,G=0,j=[],H=[],N=r.histnorm,W=r.histfunc,re=N.indexOf("density")!==-1,ae=W==="max"||W==="min",be=ae?null:0,Pe=P_e.count,Ce=bxt[N],de=!1,te=[],ke=[],Ee="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";Ee&&W!=="count"&&(de=W==="avg",Pe=P_e[W]);var Me=b.size,Ne=s(b.start),Fe=s(b.end)+(Ne-PA.tickIncrement(Ne,Me,!1,a))/1e6;for(c=Ne;c=0&&d=0&&p{"use strict";var zy=ei(),O_e=nf().BADNUM,q_e=Im();N_e.exports=function(t,r,n,i,a,o){var s=t._length,u=r.makeCalcdata(t,i),l=n.makeCalcdata(t,a);u=q_e(t,r,i,u).vals,l=q_e(t,n,a,l).vals;var f=t.text,c=f!==void 0&&zy.isArray1D(f),h=t.hovertext,d=h!==void 0&&zy.isArray1D(h),p,_,b=zy.distinctVals(u),v=b.vals,k=zy.distinctVals(l),E=k.vals,T=[],L,x,C=E.length,M=v.length;for(p=0;p{"use strict";var Txt=ku(),Sxt=ei(),tR=nf().BADNUM;U_e.exports=function(t,r,n,i){var a,o,s,u,l,f;function c(v){if(Txt(v))return+v}if(r&&r.transpose){for(a=0,l=0;l{"use strict";var Mxt=ei(),V_e=.01,Ext=[[-1,0],[1,0],[0,-1],[0,1]];function kxt(e){return .5-.25*Math.min(1,e*.5)}H_e.exports=function(t,r){var n=1,i;for(G_e(t,r),i=0;iV_e;i++)n=G_e(t,r,kxt(n));return n>V_e&&Mxt.log("interp2d didn't converge quickly",n),t};function G_e(e,t,r){var n=0,i,a,o,s,u,l,f,c,h,d,p,_,b;for(s=0;s_&&(n=Math.max(n,Math.abs(e[a][o]-p)/(b-_))))}return n}});var nR=Te((ofr,W_e)=>{"use strict";var Cxt=ei().maxRowLength;W_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],u=Cxt(t),l,f,c,h,d,p,_,b;for(f=0;f=0;d--)h=i[d],f=h[0],c=h[1],p=((n[[f-1,c]]||s)[2]+(n[[f+1,c]]||s)[2]+(n[[f,c-1]]||s)[2]+(n[[f,c+1]]||s)[2])/20,p&&(_[h]=[f,c,p],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in _)n[h]=_[h],r.push(_[h])}return r.sort(function(v,k){return k[2]-v[2]})}});var iG=Te((sfr,Z_e)=>{"use strict";var j_e=$l(),X_e=ei().isArrayOrTypedArray;Z_e.exports=function(t,r,n,i,a,o){var s=[],u=j_e.traceIs(t,"contour"),l=j_e.traceIs(t,"histogram"),f,c,h,d=X_e(r)&&r.length>1;if(d&&!l&&o.type!=="category"){var p=r.length;if(p<=a){if(u)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var Y_e=$l(),nG=ei(),aR=wu(),K_e=Im(),Lxt=B_e(),Pxt=gp(),zxt=eR(),Ixt=rR(),Rxt=iR(),Dxt=nR(),oR=iG(),aG=nf().BADNUM;$_e.exports=function(t,r){var n=aR.getFromId(t,r.xaxis||"x"),i=aR.getFromId(t,r.yaxis||"y"),a=Y_e.traceIs(r,"contour"),o=Y_e.traceIs(r,"histogram"),s=a?"best":r.zsmooth,u,l,f,c,h,d,p,_,b,v,k;if(n._minDtick=0,i._minDtick=0,o)k=Lxt(t,r),c=k.orig_x,u=k.x,l=k.x0,f=k.dx,_=k.orig_y,h=k.y,d=k.y0,p=k.dy,b=k.z;else{var E=r.z;nG.isArray1D(E)?(zxt(r,n,i,"x","y",["z"]),u=r._x,h=r._y,E=r._z):(c=r.x?n.makeCalcdata(r,"x"):[],_=r.y?i.makeCalcdata(r,"y"):[],u=K_e(r,n,"x",c).vals,h=K_e(r,i,"y",_).vals,r._x=u,r._y=h),l=r.x0,f=r.dx,d=r.y0,p=r.dy,b=Ixt(E,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=Fxt(u,h,b),o||(u=J_e(u),h=J_e(h),r._x=u,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=Dxt(b),Rxt(b,r._emptypoints));function T(F){s=r._input.zsmooth=r.zsmooth=!1,nG.warn('cannot use zsmooth: "fast": '+F)}function L(F){if(F.length>1){var U=(F[F.length-1]-F[0])/(F.length-1),G=Math.abs(U/100);for(v=0;vG)return!1}return!0}r._islinear=!1,n.type==="log"||i.type==="log"?s==="fast"&&T("log axis found"):L(u)?L(h)?r._islinear=!0:s==="fast"&&T("y scale is not linear"):s==="fast"&&T("x scale is not linear");var x=nG.maxRowLength(b),C=r.xtype==="scaled"?"":u,M=oR(r,C,l,f,x,n),m=r.ytype==="scaled"?"":h,P=oR(r,m,d,p,b.length,i);r._extremes[n._id]=aR.findExtremes(n,M),r._extremes[i._id]=aR.findExtremes(i,P);var A={x:M,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&c&&(A.orig_x=c),r.yperiodalignment&&_&&(A.orig_y=_),C&&C.length===M.length-1&&(A.xCenter=C),m&&m.length===P.length-1&&(A.yCenter=m),o&&(A.xRanges=k.xRanges,A.yRanges=k.yRanges,A.pts=k.pts),a||Pxt(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var B={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};A.xfill=oR(B,C,l,f,x,n),A.yfill=oR(B,m,d,p,b.length,i)}return[A]};function J_e(e){for(var t=[],r=e.length,n=0;n{"use strict";lR.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];lR.STYLE=lR.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var sG=Te((ffr,exe)=>{"use strict";var Q_e=uR(),Bxt=Mu(),oG=ei(),zA=null;function Oxt(){if(zA!==null)return zA;zA=!1;var e=oG.isSafari()||oG.isMacWKWebView()||oG.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(Q_e.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")zA=t.some(function(o){return r.apply(null,o)});else{var n=Bxt.tester.append("image").attr("style",Q_e.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;zA=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return zA}exe.exports=Oxt});var fR=Te((cfr,uxe)=>{"use strict";var txe=Jl(),qxt=cd(),Nxt=$l(),Uxt=Mu(),Vxt=wu(),W0=ei(),rxe=Xf(),Gxt=tI(),Hxt=jl(),Wxt=_c().extractOpts,jxt=_c().makeColorScaleFuncFromTrace,Xxt=jv(),Zxt=Qh(),lG=Zxt.LINE_SPACING,Yxt=sG(),Kxt=uR().STYLE,sxe="heatmap-label";function lxe(e){return e.selectAll("g."+sxe)}function ixe(e){lxe(e).remove()}uxe.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;W0.makeTraceGroups(n,r,"hm").each(function(o){var s=txe.select(this),u=o[0],l=u.trace,f=l.xgap||0,c=l.ygap||0,h=u.z,d=u.x,p=u.y,_=u.xCenter,b=u.yCenter,v=Nxt.traceIs(l,"contour"),k=v?"best":l.zsmooth,E=h.length,T=W0.maxRowLength(h),L=!1,x=!1,C,M,m,P,A,B,F,U;for(B=0;C===void 0&&B0;)M=i.c2p(d[B]),B--;for(M0;)A=a.c2p(p[B]),B--;A=i._length||M<=0||P>=a._length||A<=0;if(W){var re=s.selectAll("image").data([]);re.exit().remove(),ixe(s);return}var ae,be;G==="fast"?(ae=T,be=E):(ae=H,be=N);var Pe=document.createElement("canvas");Pe.width=ae,Pe.height=be;var Ce=Pe.getContext("2d",{willReadFrequently:!0}),de=jxt(l,{noNumericCheck:!0,returnArray:!0}),te,ke;G==="fast"?(te=L?function(Ei){return T-1-Ei}:W0.identity,ke=x?function(Ei){return E-1-Ei}:W0.identity):(te=function(Ei){return W0.constrain(Math.round(i.c2p(d[Ei])-C),0,H)},ke=function(Ei){return W0.constrain(Math.round(a.c2p(p[Ei])-P),0,N)});var Ee=ke(0),Me=[Ee,Ee],Ne=L?0:1,Fe=x?0:1,ye=0,Ve=0,ce=0,Ke=0,nt,gt,Nt,it,Ye;function kt(Ei,Vi){if(Ei!==void 0){var ti=de(Ei);return ti[0]=Math.round(ti[0]),ti[1]=Math.round(ti[1]),ti[2]=Math.round(ti[2]),ye+=Vi,Ve+=ti[0]*Vi,ce+=ti[1]*Vi,Ke+=ti[2]*Vi,ti}return[0,0,0,0]}function Tt(Ei,Vi,ti,en){var Yr=Ei[ti.bin0];if(Yr===void 0)return kt(void 0,1);var oi=Ei[ti.bin1],Bi=Vi[ti.bin0],an=Vi[ti.bin1],rn=oi-Yr||0,Fi=Bi-Yr||0,Ri;return oi===void 0?an===void 0?Ri=0:Bi===void 0?Ri=2*(an-Yr):Ri=(2*an-Bi-Yr)*2/3:an===void 0?Bi===void 0?Ri=0:Ri=(2*Yr-oi-Bi)*2/3:Bi===void 0?Ri=(2*an-oi-Yr)*2/3:Ri=an+Yr-oi-Bi,kt(Yr+ti.frac*rn+en.frac*(Fi+ti.frac*Ri))}if(G!=="default"){var St=0,Rt;try{Rt=new Uint8Array(ae*be*4)}catch(Ei){Rt=new Array(ae*be*4)}if(G==="smooth"){var Zt=_||d,Et=b||p,Ae=new Array(Zt.length),at=new Array(Et.length),wt=new Array(H),vt=_?axe:nxe,st=b?axe:nxe,Ue,rt,$e;for(B=0;Brr||rr>a._length))for(F=pe;FDr||Dr>i._length)){var Mr=Gxt({x:Hr,y:Pt},l,e._fullLayout);Mr.x=Hr,Mr.y=Pt;var Fr=u.z[B][F];Fr===void 0?(Mr.z="",Mr.zLabel=""):(Mr.z=Fr,Mr.zLabel=Vxt.tickText(Re,Fr,"hover").text);var di=u.text&&u.text[B]&&u.text[B][F];(di===void 0||di===!1)&&(di=""),Mr.text=di;var Di=W0.texttemplateString(xe,Mr,e._fullLayout._d3locale,Mr,l._meta||{});if(Di){var Ii=Di.split("
"),Ci=Ii.length,nn=0;for(U=0;U{"use strict";fxe.exports={min:"zmin",max:"zmax"}});var cR=Te((dfr,cxe)=>{"use strict";var Jxt=Jl();cxe.exports=function(t){Jxt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var dR=Te((pfr,dxe)=>{"use strict";var hxe=Xc(),TE=ei(),hR=TE.isArrayOrTypedArray,$xt=wu(),Qxt=_c().extractOpts;dxe.exports=function(t,r,n,i,a){a||(a={});var o=a.isContour,s=t.cd[0],u=s.trace,l=t.xa,f=t.ya,c=s.x,h=s.y,d=s.z,p=s.xCenter,_=s.yCenter,b=s.zmask,v=u.zhoverformat,k=c,E=h,T,L,x,C;if(t.index!==!1){try{x=Math.round(t.index[1]),C=Math.round(t.index[0])}catch(re){TE.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(x<0||x>=d[0].length||C<0||C>d.length)return}else{if(hxe.inbox(r-c[0],r-c[c.length-1],0)>0||hxe.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var M;for(k=[2*c[0]-c[1]],M=1;M{"use strict";pxe.exports={attributes:kA(),supplyDefaults:d_e(),calc:sR(),plot:fR(),colorbar:S_(),style:cR(),hoverPoints:dR(),moduleType:"trace",name:"heatmap",basePlotModule:Th(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var yxe=Te((mfr,mxe)=>{"use strict";mxe.exports=vxe()});var uG=Te((yfr,gxe)=>{"use strict";gxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var xxe=Te((gfr,_xe)=>{"use strict";_xe.exports={eventDataKeys:["binNumber"]}});var pR=Te((_fr,Axe)=>{"use strict";var Pv=Ly(),bxe=jc().axisHoverFormat,ebt=Nu().hovertemplateAttrs,tbt=Nu().texttemplateAttrs,fG=gc(),wxe=uG(),rbt=xxe(),cG=Su().extendFlat;Axe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:bxe("x"),yhoverformat:bxe("y"),text:cG({},Pv.text,{}),hovertext:cG({},Pv.hovertext,{}),orientation:Pv.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:wxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:wxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:ebt({},{keys:rbt.eventDataKeys}),texttemplate:tbt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:cG({},Pv.textposition,{arrayOk:!1}),textfont:fG({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:fG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:fG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Pv.insidetextanchor,textangle:Pv.textangle,cliponaxis:Pv.cliponaxis,constraintext:Pv.constraintext,marker:Pv.marker,offsetgroup:Pv.offsetgroup,alignmentgroup:Pv.alignmentgroup,selected:Pv.selected,unselected:Pv.unselected,zorder:Pv.zorder}});var Exe=Te((xfr,Mxe)=>{"use strict";var Txe=$l(),SE=ei(),Sxe=jl(),ibt=r0().handleText,nbt=qI(),abt=pR();Mxe.exports=function(t,r,n,i){function a(k,E){return SE.coerce(t,r,abt,k,E)}var o=a("x"),s=a("y"),u=a("cumulative.enabled");u&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var l=a("textposition");ibt(t,r,i,a,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat");var f=a("orientation",s&&!o?"h":"v"),c=f==="v"?"x":"y",h=f==="v"?"y":"x",d=o&&s?Math.min(SE.minRowLength(o)&&SE.minRowLength(s)):SE.minRowLength(r[c]||[]);if(!d){r.visible=!1;return}r._length=d;var p=Txe.getComponentMethod("calendars","handleTraceDefaults");p(t,r,["x","y"],i);var _=r[h];_&&a("histfunc"),a("histnorm"),a("autobin"+c),nbt(t,r,a,n,i),SE.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,v=Txe.getComponentMethod("errorbars","supplyDefaults");v(t,r,b||Sxe.defaultLine,{axis:"y"}),v(t,r,b||Sxe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var mR=Te((bfr,Lxe)=>{"use strict";var ME=ei(),obt=Wc(),vR=$l().traceIs,sbt=Gb(),lbt=r0().validateCornerradius,kxe=ME.nestedProperty,hG=qb().getAxisGroup,Cxe=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],ubt=["x","y"];Lxe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,u,l,f,c,h,d;function p(G,j){return ME.coerce(s._input,s,s._module.attributes,G,j)}function _(G){return G.orientation==="v"?"x":"y"}function b(G,j){var H=obt.getFromTrace({_fullLayout:r},G,j);return H.type}function v(G,j,H){var N=G.uid+"__"+H;j||(j=N);var W=b(G,H),re=G[H+"calendar"]||"",ae=n[j],be=!0;ae&&(W===ae.axType&&re===ae.calendar?(be=!1,ae.traces.push(G),ae.dirs.push(H)):(j=N,W!==ae.axType&&ME.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+W,"axis","with bins on","type:"+ae.axType,"axis."].join(" ")),re!==ae.calendar&&ME.warn(["Attempted to group the bins of trace",G.index,"set with a",re,"calendar","with bins",ae.calendar?"on a "+ae.calendar+" calendar":"w/o a set calendar"].join(" ")))),be&&(n[j]={traces:[G],dirs:[H],axType:W,calendar:G[H+"calendar"]||""}),G["_"+H+"bingroup"]=j}for(c=0;c{"use strict";var fbt=TA().hoverPoints,cbt=wu().hoverLabelText;Pxe.exports=function(t,r,n,i,a){var o=fbt(t,r,n,i,a);if(o){t=o[0];var s=t.cd[t.index],u=t.cd[0].trace;if(!u.cumulative.enabled){var l=u.orientation==="h"?"y":"x";t[l+"Label"]=cbt(t[l+"a"],[s.ph0,s.ph1],u[l+"hoverformat"])}return o}}});var dG=Te((Afr,Ixe)=>{"use strict";Ixe.exports=function(t,r,n,i,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(n.cumulative||{}).enabled){var o=Array.isArray(a)?i[0].pts[a[0]][a[1]]:i[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex;var s;if(n._indexToPoints){s=[];for(var u=0;u{"use strict";Rxe.exports={attributes:pR(),layoutAttributes:OI(),supplyDefaults:Exe(),crossTraceDefaults:mR(),supplyLayoutDefaults:IV(),calc:rG().calc,crossTraceCalc:Hb().crossTraceCalc,plot:i2().plot,layerName:"barlayer",style:U0().style,styleOnSelect:U0().styleOnSelect,colorbar:ep(),hoverPoints:zxe(),selectPoints:SA(),eventData:dG(),moduleType:"trace",name:"histogram",basePlotModule:Th(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Bxe=Te((Sfr,Fxe)=>{"use strict";Fxe.exports=Dxe()});var gR=Te((Mfr,qxe)=>{"use strict";var Vm=pR(),Oxe=uG(),yR=kA(),hbt=Gf(),pG=jc().axisHoverFormat,dbt=Nu().hovertemplateAttrs,pbt=Nu().texttemplateAttrs,vbt=nc(),EE=Su().extendFlat;qxe.exports=EE({x:Vm.x,y:Vm.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Vm.histnorm,histfunc:Vm.histfunc,nbinsx:Vm.nbinsx,xbins:Oxe("x"),nbinsy:Vm.nbinsy,ybins:Oxe("y"),autobinx:Vm.autobinx,autobiny:Vm.autobiny,bingroup:EE({},Vm.bingroup,{}),xbingroup:EE({},Vm.bingroup,{}),ybingroup:EE({},Vm.bingroup,{}),xgap:yR.xgap,ygap:yR.ygap,zsmooth:yR.zsmooth,xhoverformat:pG("x"),yhoverformat:pG("y"),zhoverformat:pG("z",1),hovertemplate:dbt({},{keys:"z"}),texttemplate:pbt({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:yR.textfont,showlegend:EE({},hbt.showlegend,{dflt:!1})},vbt("",{cLetter:"z",autoColorDflt:!1}))});var vG=Te((Efr,Uxe)=>{"use strict";var mbt=$l(),Nxe=ei();Uxe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Nxe.minRowLength(a),u=Nxe.minRowLength(o);if(!s||!u){r.visible=!1;return}r._length=Math.min(s,u);var l=mbt.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y"],i);var f=n("z")||n("marker.color");f&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}});var Gxe=Te((kfr,Vxe)=>{"use strict";var ybt=ei(),gbt=vG(),_bt=YV(),xbt=ed(),bbt=AE(),wbt=gR();Vxe.exports=function(t,r,n,i){function a(o,s){return ybt.coerce(t,r,wbt,o,s)}gbt(t,r,a,i),r.visible!==!1&&(_bt(t,r,a,i),xbt(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),bbt(a,i),a("xhoverformat"),a("yhoverformat"))}});var jxe=Te((Cfr,Wxe)=>{"use strict";var Abt=dR(),Hxe=wu().hoverLabelText;Wxe.exports=function(t,r,n,i,a){var o=Abt(t,r,n,i,a);if(o){t=o[0];var s=t.index,u=s[0],l=s[1],f=t.cd[0],c=f.trace,h=f.xRanges[l],d=f.yRanges[u];return t.xLabel=Hxe(t.xa,[h[0],h[1]],c.xhoverformat),t.yLabel=Hxe(t.ya,[d[0],d[1]],c.yhoverformat),o}}});var Zxe=Te((Lfr,Xxe)=>{"use strict";Xxe.exports={attributes:gR(),supplyDefaults:Gxe(),crossTraceDefaults:mR(),calc:sR(),plot:fR(),layerName:"heatmaplayer",colorbar:S_(),style:cR(),hoverPoints:jxe(),eventData:dG(),moduleType:"trace",name:"histogram2d",basePlotModule:Th(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var Kxe=Te((Pfr,Yxe)=>{"use strict";Yxe.exports=Zxe()});var _R=Te((zfr,Jxe)=>{"use strict";Jxe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var kE=Te((Ifr,tbe)=>{"use strict";var id=kA(),xR=Zc(),Qxe=jc(),mG=Qxe.axisHoverFormat,Tbt=Qxe.descriptionOnlyNumbers,Sbt=nc(),Mbt=Id().dash,Ebt=gc(),IA=Su().extendFlat,ebe=_R(),kbt=ebe.COMPARISON_OPS2,Cbt=ebe.INTERVAL_OPS,$xe=xR.line;tbe.exports=IA({z:id.z,x:id.x,x0:id.x0,dx:id.dx,y:id.y,y0:id.y0,dy:id.dy,xperiod:id.xperiod,yperiod:id.yperiod,xperiod0:xR.xperiod0,yperiod0:xR.yperiod0,xperiodalignment:id.xperiodalignment,yperiodalignment:id.yperiodalignment,text:id.text,hovertext:id.hovertext,transpose:id.transpose,xtype:id.xtype,ytype:id.ytype,xhoverformat:mG("x"),yhoverformat:mG("y"),zhoverformat:mG("z",1),hovertemplate:id.hovertemplate,texttemplate:IA({},id.texttemplate,{}),textfont:IA({},id.textfont,{}),hoverongaps:id.hoverongaps,connectgaps:IA({},id.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:Ebt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:Tbt("contour label")},operation:{valType:"enumerated",values:[].concat(kbt).concat(Cbt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:IA({},$xe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:Mbt,smoothing:IA({},$xe.smoothing,{}),editType:"plot"},zorder:xR.zorder},Sbt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var gG=Te((Rfr,ibe)=>{"use strict";var Hp=gR(),Bg=kE(),Lbt=nc(),yG=jc().axisHoverFormat,rbe=Su().extendFlat;ibe.exports=rbe({x:Hp.x,y:Hp.y,z:Hp.z,marker:Hp.marker,histnorm:Hp.histnorm,histfunc:Hp.histfunc,nbinsx:Hp.nbinsx,xbins:Hp.xbins,nbinsy:Hp.nbinsy,ybins:Hp.ybins,autobinx:Hp.autobinx,autobiny:Hp.autobiny,bingroup:Hp.bingroup,xbingroup:Hp.xbingroup,ybingroup:Hp.ybingroup,autocontour:Bg.autocontour,ncontours:Bg.ncontours,contours:Bg.contours,line:{color:Bg.line.color,width:rbe({},Bg.line.width,{dflt:.5}),dash:Bg.line.dash,smoothing:Bg.line.smoothing,editType:"plot"},xhoverformat:yG("x"),yhoverformat:yG("y"),zhoverformat:yG("z",1),hovertemplate:Hp.hovertemplate,texttemplate:Bg.texttemplate,textfont:Bg.textfont},Lbt("",{cLetter:"z",editTypeOverride:"calc"}))});var bR=Te((Dfr,nbe)=>{"use strict";nbe.exports=function(t,r,n,i){var a=i("contours.start"),o=i("contours.end"),s=a===!1||o===!1,u=n("contours.size"),l;s?l=r.autocontour=!0:l=n("autocontour",!1),(l||!u)&&n("ncontours")}});var _G=Te((Ffr,abe)=>{"use strict";var Pbt=ei();abe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;Pbt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var wR=Te((Bfr,obe)=>{"use strict";var zbt=ed(),Ibt=_G();obe.exports=function(t,r,n,i,a){var o=n("contours.coloring"),s,u="";o==="fill"&&(s=n("contours.showlines")),s!==!1&&(o!=="lines"&&(u=n("line.color","#000")),n("line.width",.5),n("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,zbt(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),Ibt(n,i,u,a)}});var fbe=Te((Ofr,ube)=>{"use strict";var sbe=ei(),Rbt=vG(),Dbt=bR(),Fbt=wR(),Bbt=AE(),lbe=gG();ube.exports=function(t,r,n,i){function a(s,u){return sbe.coerce(t,r,lbe,s,u)}function o(s){return sbe.coerce2(t,r,lbe,s)}Rbt(t,r,a,i),r.visible!==!1&&(Dbt(t,r,a,o),Fbt(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),r.contours&&r.contours.coloring==="heatmap"&&Bbt(a,i))}});var wG=Te((qfr,hbe)=>{"use strict";var bG=wu(),xG=ei();hbe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=xG.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=xG.aggNums(Math.max,null,r));var o=cbe(i,a,t.ncontours);n.size=o.dtick,n.start=bG.tickFirst(o),o.range.reverse(),n.end=bG.tickFirst(o),n.start===i&&(n.start+=n.size),n.end===a&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),t._input.contours||(t._input.contours={}),xG.extendFlat(t._input.contours,{start:n.start,end:n.end,size:n.size}),t._input.autocontour=!0}else if(n.type!=="constraint"){var s=n.start,u=n.end,l=t._input.contours;if(s>u&&(n.start=l.start=u,u=n.end=l.end=s,s=n.start),!(n.size>0)){var f;s===u?f=1:f=cbe(s,u,t.ncontours).dtick,l.size=n.size=f}}};function cbe(e,t,r){var n={type:"linear",range:[e,t]};return bG.autoTicks(n,(t-e)/(r||15)),n}});var CE=Te((Nfr,dbe)=>{"use strict";dbe.exports=function(t){return t.end+t.size/1e6}});var AG=Te((Ufr,vbe)=>{"use strict";var pbe=_c(),Obt=sR(),qbt=wG(),Nbt=CE();vbe.exports=function(t,r){var n=Obt(t,r),i=n[0].z;qbt(r,i);var a=r.contours,o=pbe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var u=a.start,l=Nbt(a),f=a.size||1,c=Math.floor((l-u)/f)+1;isFinite(f)||(f=1,c=1);var h=u-f/2,d=h+c*f;s=[h,d]}else s=i;return pbe.calc(t,r,{vals:s,cLetter:"z"}),n}});var LE=Te((Vfr,mbe)=>{"use strict";mbe.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var TG=Te((Gfr,ybe)=>{"use strict";var AR=LE();ybe.exports=function(t){var r=t[0].z,n=r.length,i=r[0].length,a=n===2||i===2,o,s,u,l,f,c,h,d,p;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var n=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>n?r===5?713:1114:r===5?104:208}return r===15?0:r}});var SG=Te((Hfr,xbe)=>{"use strict";var TR=ei(),RA=LE();xbe.exports=function(t,r,n){var i,a,o,s,u;for(r=r||.01,n=n||.01,o=0;o20?(o=RA.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=RA.SADDLEREMAINDER[o]):delete e.crossings[a],s=RA.NEWDELTA[o],!s){TR.log("Found bad marching index:",o,t,e.level);break}u.push(_be(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),PE(u[u.length-1],u[u.length-2],n,i)&&u.pop();var p=s[0]&&(t[0]<0||t[0]>f-2)||s[1]&&(t[1]<0||t[1]>l-2),_=t[0]===c[0]&&t[1]===c[1]&&s[0]===h[0]&&s[1]===h[1];if(_||r&&p)break;o=e.crossings[a]}d===1e4&&TR.log("Infinite loop in contour?");var b=PE(u[0],u[u.length-1],n,i),v=0,k=.2*e.smoothing,E=[],T=0,L,x,C,M,m,P,A,B,F,U,G;for(d=1;d=T;d--)if(L=E[d],L=T&&L+E[x]B&&F--,e.edgepaths[F]=G.concat(u,U));break}W||(e.edgepaths[B]=u.concat(U))}for(B=0;B20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:RA.BOTTOMSTART.indexOf(e)!==-1?i=1:RA.LEFTSTART.indexOf(e)!==-1?n=1:RA.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function _be(e,t,r){var n=t[0]+Math.max(r[0],0),i=t[1]+Math.max(r[1],0),a=e.z[i][n],o=e.xaxis,s=e.yaxis;if(r[1]){var u=(e.level-a)/(e.z[i][n+1]-a),l=(u!==1?(1-u)*o.c2l(e.x[n]):0)+(u!==0?u*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(l),!0),s.c2p(e.y[i],!0),n+u,i]}else{var f=(e.level-a)/(e.z[i+1][n]-a),c=(f!==1?(1-f)*s.c2l(e.y[i]):0)+(f!==0?f*s.c2l(e.y[i+1]):0);return[o.c2p(e.x[n],!0),s.c2p(s.l2c(c),!0),n,i+f]}}});var Tbe=Te((Wfr,Abe)=>{"use strict";var MG=_R(),Hbt=ku();Abe.exports={"[]":bbe("[]"),"][":bbe("]["),">":EG(">"),"<":EG("<"),"=":EG("=")};function wbe(e,t){var r=Array.isArray(t),n;function i(a){return Hbt(a)?+a:null}return MG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):MG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:MG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function bbe(e){return function(t){t=wbe(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function EG(e){return function(t){return t=wbe(e,t),{start:t,end:1/0,size:1/0}}}});var kG=Te((jfr,Mbe)=>{"use strict";var Sbe=ei(),Wbt=Tbe(),jbt=CE();Mbe.exports=function(t,r,n){for(var i=t.type==="constraint"?Wbt[t._operation](t.value):t,a=i.size,o=[],s=jbt(i),u=n.trace._carpetTrace,l=u?{xaxis:u.aaxis,yaxis:u.baxis,x:n.a,y:n.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:n.x,y:n.y},f=i.start;f1e3){Sbe.warn("Too many contours, clipping at 1000",t);break}return o}});var CG=Te((Xfr,kbe)=>{"use strict";var DA=ei();kbe.exports=function(e,t){var r,n,i,a=function(u){return u.reverse()},o=function(u){return u};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&DA.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";Cbe.exports=function(e,t){var r=e[0],n=r.z,i;switch(t.type){case"levels":var a=Math.min(n[0][0],n[0][1]);for(i=0;io.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,u=r.y.length,l=-1/0,f=1/0;for(i=0;i":c>l&&(r.prefixBoundary=!0);break;case"<":(cl||r.starts.length&&d===f)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),hl&&(r.prefixBoundary=!0);break}break}}});var SR=Te(Wp=>{"use strict";var IE=Jl(),Od=ei(),Og=Mu(),Xbt=_c(),zbe=Xf(),Lbe=wu(),Pbe=gy(),Zbt=fR(),Ibe=TG(),Rbe=SG(),Ybt=kG(),Kbt=CG(),Dbe=LG(),zE=LE(),Iy=zE.LABELOPTIMIZER;Wp.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;Od.makeTraceGroups(i,n,"contour").each(function(s){var u=IE.select(this),l=s[0],f=l.trace,c=l.x,h=l.y,d=f.contours,p=Ybt(d,r,l),_=Od.ensureSingle(u,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),Zbt(t,r,b,_),Ibe(p),Rbe(p);var v=a.c2p(c[0],!0),k=a.c2p(c[c.length-1],!0),E=o.c2p(h[0],!0),T=o.c2p(h[h.length-1],!0),L=[[v,T],[k,T],[k,E],[v,E]],x=p;d.type==="constraint"&&(x=Kbt(p,d._operation)),Jbt(u,L,d),$bt(u,x,L,d),Qbt(u,p,t,l,d),t2t(u,r,t,l,L)})};function Jbt(e,t,r){var n=Od.ensureSingle(e,"g","contourbg"),i=n.selectAll("path").data(r.coloring==="fill"?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function $bt(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&Dbe(t,n);var o=Od.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(u){var l=(u.prefixBoundary?a:"")+Fbe(u,r);l?IE.select(this).attr("d",l).style("stroke","none"):IE.select(this).remove()})}function Fbe(e,t){var r="",n=0,i=e.edgepaths.map(function(v,k){return k}),a=!0,o,s,u,l,f,c;function h(v){return Math.abs(v[1]-t[0][1])<.01}function d(v){return Math.abs(v[1]-t[2][1])<.01}function p(v){return Math.abs(v[0]-t[0][0])<.01}function _(v){return Math.abs(v[0]-t[2][0])<.01}for(;i.length;){for(c=Og.smoothopen(e.edgepaths[n],e.smoothing),r+=a?c:c.replace(/^M/,"L"),i.splice(i.indexOf(n),1),o=e.edgepaths[n][e.edgepaths[n].length-1],l=-1,u=0;u<4;u++){if(!o){Od.log("Missing end?",n,e);break}for(h(o)&&!_(o)?s=t[1]:p(o)?s=t[0]:d(o)?s=t[3]:_(o)&&(s=t[2]),f=0;f=0&&(s=b,l=f):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-b[1])<.01&&(b[0]-o[0])*(s[0]-b[0])>=0&&(s=b,l=f):Od.log("endpt to newendpt is not vert. or horz.",o,s,b)}if(o=s,l>=0)break;r+="L"+s}if(l===e.edgepaths.length){Od.log("unclosed perimeter path");break}n=l,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nIy.MAXCOST*2)break;h&&(s/=2),o=l-s/2,u=o+s*1.5}if(c<=Iy.MAXCOST)return f};function e2t(e,t,r,n){var i=t.width/2,a=t.height/2,o=e.x,s=e.y,u=e.theta,l=Math.cos(u)*i,f=Math.sin(u)*i,c=(o>n.center?n.right-o:o-n.left)/(l+Math.abs(Math.sin(u)*a)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(f)+Math.cos(u)*a);if(c<1||h<1)return 1/0;var d=Iy.EDGECOST*(1/(c-1)+1/(h-1));d+=Iy.ANGLECOST*u*u;for(var p=o-l,_=s-f,b=o+l,v=s+f,k=0;k{"use strict";var i2t=Jl(),PG=_c(),n2t=CE();Bbe.exports=function(t){var r=t.contours,n=r.start,i=n2t(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,u=PG.extractOpts(t);isFinite(a)||(a=1,o=1);var l=u.reversescale?PG.flipScale(u.colorscale):u.colorscale,f=l.length,c=new Array(f),h=new Array(f),d,p,_=u.min,b=u.max;if(r.coloring==="heatmap"){for(p=0;p=b)&&(n<=_&&(n=_),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),p=0;p_&&(c.unshift(_),h.unshift(h[0])),c[c.length-1]{"use strict";var MR=Jl(),Obe=Mu(),a2t=cR(),o2t=zG();qbe.exports=function(t){var r=MR.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=MR.select(this),a=n[0].trace,o=a.contours,s=a.line,u=o.size||1,l=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",h=!f&&o.coloring==="fill",d=c||h?o2t(a):null;i.selectAll("g.contourlevel").each(function(b){MR.select(this).selectAll("path").call(Obe.lineGroupStyle,s.width,c?d(b.level):s.color,s.dash)});var p=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Obe.font(MR.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(b.level):s.color)})}),f)i.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var _;i.selectAll("g.contourfill path").style("fill",function(b){return _===void 0&&(_=b.level),d(b.level+.5*u)}),_===void 0&&(_=l),i.selectAll("g.contourbg path").style("fill",d(_-.5*u))}}),a2t(t)}});var kR=Te(($fr,Ube)=>{"use strict";var Nbe=_c(),s2t=zG(),l2t=CE();function u2t(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=s2t(t,{isColorbar:!0});if(o==="heatmap"){var u=Nbe.extractOpts(t);r._fillgradient=u.reversescale?Nbe.flipScale(u.colorscale):u.colorscale,r._zrange=[u.min,u.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:i.color,width:n.showlines!==!1?i.width:0,dash:i.dash},r._levels={start:n.start,end:l2t(n),size:a}}Ube.exports={min:"zmin",max:"zmax",calc:u2t}});var IG=Te((Qfr,Vbe)=>{"use strict";var CR=jl(),f2t=dR();Vbe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=f2t(t,r,n,i,a);return o&&o.forEach(function(s){var u=s.trace;u.contours.type==="constraint"&&(u.fillcolor&&CR.opacity(u.fillcolor)?s.color=CR.addOpacity(u.fillcolor,1):u.contours.showlines&&CR.opacity(u.line.color)&&(s.color=CR.addOpacity(u.line.color,1)))}),o}});var Hbe=Te((ecr,Gbe)=>{"use strict";Gbe.exports={attributes:gG(),supplyDefaults:fbe(),crossTraceDefaults:mR(),calc:AG(),plot:SR().plot,layerName:"contourlayer",style:ER(),colorbar:kR(),hoverPoints:IG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Th(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var jbe=Te((tcr,Wbe)=>{"use strict";Wbe.exports=Hbe()});var RG=Te((rcr,$be)=>{"use strict";var Xbe=ku(),c2t=_G(),Kbe=jl(),Zbe=Kbe.addOpacity,h2t=Kbe.opacity,Jbe=_R(),Ybe=ei().isArrayOrTypedArray,d2t=Jbe.CONSTRAINT_REDUCTION,p2t=Jbe.COMPARISON_OPS2;$be.exports=function(t,r,n,i,a,o){var s=r.contours,u,l,f,c=n("contours.operation");if(s._operation=d2t[c],v2t(n,s),c==="="?u=s.showlines=!0:(u=n("contours.showlines"),f=n("fillcolor",Zbe((t.line||{}).color||a,.5))),u){var h=f&&h2t(f)?Zbe(r.fillcolor,1):a;l=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),c2t(n,i,l,o)};function v2t(e,t){var r;p2t.indexOf(t.operation)===-1?(e("contours.value",[0,1]),Ybe(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:Xbe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),Xbe(t.value)||(Ybe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var t2e=Te((icr,e2e)=>{"use strict";var DG=ei(),m2t=JI(),y2t=Pm(),g2t=RG(),_2t=bR(),x2t=wR(),b2t=AE(),Qbe=kE();e2e.exports=function(t,r,n,i){function a(l,f){return DG.coerce(t,r,Qbe,l,f)}function o(l){return DG.coerce2(t,r,Qbe,l)}var s=m2t(t,r,a,i);if(!s){r.visible=!1;return}y2t(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate");var u=a("contours.type")==="constraint";a("connectgaps",DG.isArray1D(r.z)),u?g2t(t,r,a,i,n):(_2t(t,r,a,o),x2t(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&b2t(a,i),a("zorder")}});var i2e=Te((ncr,r2e)=>{"use strict";r2e.exports={attributes:kE(),supplyDefaults:t2e(),calc:AG(),plot:SR().plot,style:ER(),colorbar:kR(),hoverPoints:IG(),moduleType:"trace",name:"contour",basePlotModule:Th(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var a2e=Te((acr,n2e)=>{"use strict";n2e.exports=i2e()});var FG=Te((ocr,s2e)=>{"use strict";var w2t=Nu().hovertemplateAttrs,A2t=Nu().texttemplateAttrs,T2t=km(),a0=Zc(),S2t=Gf(),o2e=nc(),M2t=Id().dash,M_=Su().extendFlat,j0=a0.marker,RE=a0.line,E2t=j0.line;s2e.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:M_({},a0.mode,{dflt:"markers"}),text:M_({},a0.text,{}),texttemplate:A2t({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:M_({},a0.hovertext,{}),line:{color:RE.color,width:RE.width,dash:M2t,backoff:RE.backoff,shape:M_({},RE.shape,{values:["linear","spline"]}),smoothing:RE.smoothing,editType:"calc"},connectgaps:a0.connectgaps,cliponaxis:a0.cliponaxis,fill:M_({},a0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:T2t(),marker:M_({symbol:j0.symbol,opacity:j0.opacity,angle:j0.angle,angleref:j0.angleref,standoff:j0.standoff,maxdisplayed:j0.maxdisplayed,size:j0.size,sizeref:j0.sizeref,sizemin:j0.sizemin,sizemode:j0.sizemode,line:M_({width:E2t.width,editType:"calc"},o2e("marker.line")),gradient:j0.gradient,editType:"calc"},o2e("marker")),textfont:a0.textfont,textposition:a0.textposition,selected:a0.selected,unselected:a0.unselected,hoverinfo:M_({},S2t.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:a0.hoveron,hovertemplate:w2t()}});var c2e=Te((scr,f2e)=>{"use strict";var l2e=ei(),k2t=Sy(),FA=lc(),C2t=$v(),L2t=R0(),u2e=$3(),P2t=D0(),z2t=zm(),I2t=FG();f2e.exports=function(t,r,n,i){function a(h,d){return l2e.coerce(t,r,I2t,h,d)}var o=a("a"),s=a("b"),u=a("c"),l;if(o?(l=o.length,s?(l=Math.min(l,s.length),u&&(l=Math.min(l,u.length))):u?l=Math.min(l,u.length):l=0):s&&u&&(l=Math.min(s.length,u.length)),!l){r.visible=!1;return}r._length=l,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&a("hovertemplate");var f=l{"use strict";var BG=wu();h2e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=BG.tickText(a.aaxis,t.a,!0).text,i.bLabel=BG.tickText(a.baxis,t.b,!0).text,i.cLabel=BG.tickText(a.caxis,t.c,!0).text,i}});var y2e=Te((ucr,m2e)=>{"use strict";var OG=ku(),R2t=F0(),D2t=ky(),F2t=B0(),B2t=O0().calcMarkerSize,p2e=["a","b","c"],v2e={a:["b","c"],b:["a","c"],c:["a","b"]};m2e.exports=function(t,r){var n=t._fullLayout[r.subplot],i=n.sum,a=r.sum||i,o={a:r.a,b:r.b,c:r.c},s=r.ids,u,l,f,c,h,d;for(u=0;u{"use strict";var O2t=nA();g2e.exports=function(t,r,n){var i=r.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},u=r.layers.frontplot.select("g.scatterlayer"),l=0;l{"use strict";var q2t=lA();x2e.exports=function(t,r,n,i){var a=q2t(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,u=t.xa._length,l=u*s/2,f=u-l;return o.x0=Math.max(Math.min(o.x0,f),l),o.x1=Math.max(Math.min(o.x1,f),l),a}var c=o.cd[o.index],h=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[h.subplot]={_subplot:d};var _=h._module.formatLabels(c,h,p);o.aLabel=_.aLabel,o.bLabel=_.bLabel,o.cLabel=_.cLabel;var b=c.hi||h.hoverinfo,v=[];function k(T,L){v.push(T._hovertitle+": "+L)}if(!h.hovertemplate){var E=b.split("+");E.indexOf("all")!==-1&&(E=["a","b","c"]),E.indexOf("a")!==-1&&k(d.aaxis,o.aLabel),E.indexOf("b")!==-1&&k(d.baxis,o.bLabel),E.indexOf("c")!==-1&&k(d.caxis,o.cLabel)}return o.extraText=v.join("
"),o.hovertemplate=h.hovertemplate,a}});var A2e=Te((hcr,w2e)=>{"use strict";w2e.exports=function(t,r,n,i,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i[a]){var o=i[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var R2e=Te((dcr,I2e)=>{"use strict";var C2e=Jl(),N2t=cd(),qG=$l(),qg=ei(),Ry=qg.strTranslate,LR=qg._,OA=jl(),PR=Mu(),DE=gy(),NG=Su().extendFlat,U2t=Cc(),E_=wu(),T2e=xp(),S2e=Xc(),L2e=Mm(),M2e=L2e.freeMode,V2t=L2e.rectMode,UG=Mb(),G2t=ah().prepSelect,H2t=ah().selectOnClick,W2t=ah().clearOutline,j2t=ah().clearSelectionsCache,P2e=dd();function z2e(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}I2e.exports=z2e;var Dy=z2e.prototype;Dy.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Dy.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;aBA*l?(v=l,b=v*BA):(b=u,v=b/BA),k=o*b/u,E=s*v/l,p=t.l+t.w*i-b/2,_=t.t+t.h*(1-a)-v/2,r.x0=p,r.y0=_,r.w=b,r.h=v,r.sum=f,r.xaxis={type:"linear",range:[c+2*d-f,f-c-2*h],domain:[i-k/2,i+k/2],_id:"x"},DE(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(U){return U.a>=r.aaxis.range[0]&&U.a<=r.aaxis.range[1]&&U.b>=r.baxis.range[1]&&U.b<=r.baxis.range[0]&&U.c>=r.caxis.range[1]&&U.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[c,f-h-d],domain:[a-E/2,a+E/2],_id:"y"},DE(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var T=r.yaxis.domain[0],L=r.aaxis=NG({},e.aaxis,{range:[c,f-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[T,T+E*BA],anchor:"free",position:0,_id:"y",_length:b});DE(L,r.graphDiv._fullLayout),L.setScale();var x=r.baxis=NG({},e.baxis,{range:[f-c-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});DE(x,r.graphDiv._fullLayout),x.setScale();var C=r.caxis=NG({},e.caxis,{range:[f-c-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[T,T+E*BA],anchor:"free",position:0,_id:"y",_length:b});DE(C,r.graphDiv._fullLayout),C.setScale();var M="M"+p+","+(_+v)+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDef.select("path").attr("d",M),r.layers.plotbg.select("path").attr("d",M);var m="M0,"+v+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDefRelative.select("path").attr("d",m);var P=Ry(p,_);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var A=Ry(p-x._offset,_+v);r.layers.baxis.attr("transform",A),r.layers.bgrid.attr("transform",A);var B=Ry(p+b/2,_)+"rotate(30)"+Ry(0,-L._offset);r.layers.aaxis.attr("transform",B),r.layers.agrid.attr("transform",B);var F=Ry(p+b/2,_)+"rotate(-30)"+Ry(0,-C._offset);r.layers.caxis.attr("transform",F),r.layers.cgrid.attr("transform",F),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+p+","+(_+v)+"l"+b/2+",-"+v:"M0,0").call(OA.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+p+","+(_+v)+"h"+b:"M0,0").call(OA.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",C.showline?"M"+(p+b/2)+","+_+"l"+b/2+","+v:"M0,0").call(OA.stroke,C.linecolor||"#000").style("stroke-width",(C.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),PR.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Dy.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.substr(7)+"title",i=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var u=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),l=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;i["a-title"]=UG.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title.text",placeholder:LR(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-u,"text-anchor":"middle"}}),i["b-title"]=UG.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title.text",placeholder:LR(r,"Click to enter Component B title"),attributes:{x:t.x0-l,y:t.y0+t.h+o.title.font.size*.83+l,"text-anchor":"middle"}}),i["c-title"]=UG.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title.text",placeholder:LR(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+l,y:t.y0+t.h+s.title.font.size*.83+l,"text-anchor":"middle"}})}};Dy.drawAx=function(e){var t=this,r=t.graphDiv,n=e._name,i=n.charAt(0),a=e._id,o=t.layers[n],s=30,u=i+"tickLayout",l=X2t(e);t[u]!==l&&(o.selectAll("."+a+"tick").remove(),t[u]=l),e.setScale();var f=E_.calcTicks(e),c=E_.clipEnds(e,f),h=E_.makeTransTickFn(e),d=E_.getTickSigns(e)[2],p=qg.deg2rad(s),_=d*(e.linewidth||1)/2,b=d*e.ticklen,v=t.w,k=t.h,E=i==="b"?"M0,"+_+"l"+Math.sin(p)*b+","+Math.cos(p)*b:"M"+_+",0l"+Math.cos(p)*b+","+-Math.sin(p)*b,T={a:"M0,0l"+k+",-"+v/2,b:"M0,0l-"+v/2+",-"+k,c:"M0,0l-"+k+","+v/2}[i];E_.drawTicks(r,e,{vals:e.ticks==="inside"?c:f,layer:o,path:E,transFn:h,crisp:!1}),E_.drawGrid(r,e,{vals:c,layer:t.layers[i+"grid"],path:T,transFn:h,crisp:!1}),E_.drawLabels(r,e,{vals:f,layer:o,transFn:h,labelFns:E_.makeLabelFns(e,0,s)})};function X2t(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var _d=P2e.MINZOOM/2+.87,Z2t="m-0.87,.5h"+_d+"v3h-"+(_d+5.2)+"l"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l2.6,1.5l-"+_d/2+","+_d*.87+"Z",Y2t="m0.87,.5h-"+_d+"v3h"+(_d+5.2)+"l-"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l-2.6,1.5l"+_d/2+","+_d*.87+"Z",K2t="m0,1l"+_d/2+","+_d*.87+"l2.6,-1.5l-"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l-"+(_d/2+2.6)+","+(_d*.87+4.5)+"l2.6,1.5l"+_d/2+",-"+_d*.87+"Z",J2t="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",E2e=!0;Dy.clearOutline=function(){j2t(this.dragOptions),W2t(this.dragOptions.gd)};Dy.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,n=r._fullLayout._zoomlayer,i,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(A,B,F){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],i=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var U=e.dragOptions.dragmode=r._fullLayout.dragmode;M2e(U)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,U==="zoom"?(e.dragOptions.moveFn=x,e.dragOptions.clickFn=v,e.dragOptions.doneFn=C,k(A,B,F)):U==="pan"?(e.dragOptions.moveFn=m,e.dragOptions.clickFn=v,e.dragOptions.doneFn=P,M(),e.clearOutline(r)):(V2t(U)||M2e(U))&&G2t(A,B,F,e.dragOptions,U)}};var o,s,u,l,f,c,h,d,p,_;function b(A){var B={};return B[e.id+".aaxis.min"]=A.a,B[e.id+".baxis.min"]=A.b,B[e.id+".caxis.min"]=A.c,B}function v(A,B){var F=r._fullLayout.clickmode;k2e(r),A===2&&(r.emit("plotly_doubleclick",null),qG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),F.indexOf("select")>-1&&A===1&&H2t(B,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),F.indexOf("event")>-1&&S2e.click(r,B,e.id)}function k(A,B,F){var U=t.getBoundingClientRect();o=B-U.left,s=F-U.top,r._fullLayout._calcInverseTransform(r);var G=r._fullLayout._invTransform,j=qg.apply3DTransform(G)(o,s);o=j[0],s=j[1],u={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=u,l=e.aaxis.range[1]-u.a,c=N2t(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=n.append("path").attr("class","zoombox").attr("transform",Ry(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),_=n.append("path").attr("class","zoombox-corners").attr("transform",Ry(e.x0,e.y0)).style({fill:OA.background,stroke:OA.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function E(A,B){return 1-B/e.h}function T(A,B){return 1-(A+(e.h-B)/Math.sqrt(3))/e.w}function L(A,B){return(A-(e.h-B)/Math.sqrt(3))/e.w}function x(A,B){var F=o+A*i,U=s+B*a,G=Math.max(0,Math.min(1,E(o,s),E(F,U))),j=Math.max(0,Math.min(1,T(o,s),T(F,U))),H=Math.max(0,Math.min(1,L(o,s),L(F,U))),N=(G/2+H)*e.w,W=(1-G/2-j)*e.w,re=(N+W)/2,ae=W-N,be=(1-G)*e.h,Pe=be-ae/BA;ae.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),_.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(f))}function C(){k2e(r),f!==u&&(qG.call("_guiRelayout",r,b(f)),E2e&&r.data&&r._context.showTips&&(qg.notifier(LR(r,"Double-click to zoom back out"),"long"),E2e=!1))}function M(){u={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=u}function m(A,B){var F=A/e.xaxis._m,U=B/e.yaxis._m;f={a:u.a-U,b:u.b+(F+U)/2,c:u.c-(F-U)/2};var G=[f.a,f.b,f.c].sort(qg.sorterAsc),j={a:G.indexOf(f.a),b:G.indexOf(f.b),c:G.indexOf(f.c)};G[0]<0&&(G[1]+G[0]/2<0?(G[2]+=G[0]+G[1],G[0]=G[1]=0):(G[2]+=G[0]/2,G[1]+=G[0]/2,G[0]=0),f={a:G[j.a],b:G[j.b],c:G[j.c]},B=(u.a-f.a)*e.yaxis._m,A=(u.c-f.c-u.b+f.b)*e.xaxis._m);var H=Ry(e.x0+A,e.y0+B);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",H);var N=Ry(-A,-B);e.clipDefRelative.select("path").attr("transform",N),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(PR.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(f))}function P(){qG.call("_guiRelayout",r,b(f))}t.onmousemove=function(A){S2e.hover(r,A,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(A){r._dragging||T2e.unhover(r,A)},T2e.init(this.dragOptions)};function k2e(e){C2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var HG=Te((pcr,D2e)=>{"use strict";var $2t=Rh(),Q2t=zc().attributes,Kf=Dd(),ewt=Sc().overrideAll,VG=Su().extendFlat,GG={title:{text:Kf.title.text,font:Kf.title.font},color:Kf.color,tickmode:Kf.minor.tickmode,nticks:VG({},Kf.nticks,{dflt:6,min:1}),tick0:Kf.tick0,dtick:Kf.dtick,tickvals:Kf.tickvals,ticktext:Kf.ticktext,ticks:Kf.ticks,ticklen:Kf.ticklen,tickwidth:Kf.tickwidth,tickcolor:Kf.tickcolor,ticklabelstep:Kf.ticklabelstep,showticklabels:Kf.showticklabels,labelalias:Kf.labelalias,showtickprefix:Kf.showtickprefix,tickprefix:Kf.tickprefix,showticksuffix:Kf.showticksuffix,ticksuffix:Kf.ticksuffix,showexponent:Kf.showexponent,exponentformat:Kf.exponentformat,minexponent:Kf.minexponent,separatethousands:Kf.separatethousands,tickfont:Kf.tickfont,tickangle:Kf.tickangle,tickformat:Kf.tickformat,tickformatstops:Kf.tickformatstops,hoverformat:Kf.hoverformat,showline:VG({},Kf.showline,{dflt:!0}),linecolor:Kf.linecolor,linewidth:Kf.linewidth,showgrid:VG({},Kf.showgrid,{dflt:!0}),gridcolor:Kf.gridcolor,gridwidth:Kf.gridwidth,griddash:Kf.griddash,layer:Kf.layer,min:{valType:"number",dflt:0,min:0}},zR=D2e.exports=ewt({domain:Q2t({name:"ternary"}),bgcolor:{valType:"color",dflt:$2t.background},sum:{valType:"number",dflt:1,min:0},aaxis:GG,baxis:GG,caxis:GG},"plot","from-root");zR.uirevision={valType:"any",editType:"none"};zR.aaxis.uirevision=zR.baxis.uirevision=zR.caxis.uirevision={valType:"any",editType:"none"}});var k_=Te((vcr,F2e)=>{"use strict";var twt=ei(),rwt=Pf(),iwt=zc().defaults;F2e.exports=function(t,r,n,i){var a=i.type,o=i.attributes,s=i.handleDefaults,u=i.partition||"x",l=r._subplots[a],f=l.length,c=f&&l[0].replace(/\d+$/,""),h,d;function p(k,E){return twt.coerce(h,d,o,k,E)}for(var _=0;_{"use strict";var nwt=jl(),awt=Pf(),IR=ei(),owt=k_(),swt=e_(),lwt=t_(),uwt=A3(),fwt=xb(),cwt=eE(),O2e=HG(),B2e=["aaxis","baxis","caxis"];q2e.exports=function(t,r,n){owt(t,r,n,{type:"ternary",attributes:O2e,handleDefaults:hwt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function hwt(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=nwt.combine(i,n.paper_bgcolor);for(var o,s,u,l=0;l=a&&(f.min=0,c.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function dwt(e,t,r,n){var i=O2e[t._name];function a(d,p){return IR.coerce(e,t,i,d,p)}a("uirevision",n.uirevision),t.type="linear";var o=a("color"),s=o!==i.color.dflt?o:r.font.color,u=t._name,l=u.charAt(0).toUpperCase(),f="Component "+l,c=a("title.text",f);t._hovertitle=c===f?c:l,IR.coerceFont(a,"title.font",r.font,{overrideDflt:{size:IR.bigFont(r.font.size),color:s}}),a("min"),fwt(e,t,a,"linear"),lwt(e,t,a,"linear"),swt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),uwt(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(IR.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),cwt(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var U2e=Te(X0=>{"use strict";var pwt=R2e(),vwt=Rd().getSubplotCalcData,mwt=ei().counterRegex,qA="ternary";X0.name=qA;var ywt=X0.attr="subplot";X0.idRoot=qA;X0.idRegex=X0.attrRegex=mwt(qA);var gwt=X0.attributes={};gwt[ywt]={valType:"subplotid",dflt:"ternary",editType:"calc"};X0.layoutAttributes=HG();X0.supplyLayoutDefaults=N2e();X0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[qA],a=0;a{"use strict";V2e.exports={attributes:FG(),supplyDefaults:c2e(),colorbar:ep(),formatLabels:d2e(),calc:y2e(),plot:_2e(),style:ov().style,styleOnSelect:ov().styleOnSelect,hoverPoints:b2e(),selectPoints:uA(),eventData:A2e(),moduleType:"trace",name:"scatterternary",basePlotModule:U2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var W2e=Te((_cr,H2e)=>{"use strict";H2e.exports=G2e()});var WG=Te((xcr,X2e)=>{"use strict";var nd=_E(),NA=Su().extendFlat,j2e=jc().axisHoverFormat;X2e.exports={y:nd.y,x:nd.x,x0:nd.x0,y0:nd.y0,xhoverformat:j2e("x"),yhoverformat:j2e("y"),name:NA({},nd.name,{}),orientation:NA({},nd.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:nd.fillcolor,points:NA({},nd.boxpoints,{}),jitter:NA({},nd.jitter,{}),pointpos:NA({},nd.pointpos,{}),width:NA({},nd.width,{}),marker:nd.marker,text:nd.text,hovertext:nd.hovertext,hovertemplate:nd.hovertemplate,quartilemethod:nd.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:nd.offsetgroup,alignmentgroup:nd.alignmentgroup,selected:nd.selected,unselected:nd.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:nd.zorder}});var ZG=Te((bcr,Z2e)=>{"use strict";var jG=xE(),XG=ei().extendFlat;Z2e.exports={violinmode:XG({},jG.boxmode,{}),violingap:XG({},jG.boxgap,{}),violingroupgap:XG({},jG.boxgroupgap,{})}});var Q2e=Te((wcr,$2e)=>{"use strict";var Y2e=ei(),_wt=jl(),K2e=wE(),J2e=WG();$2e.exports=function(t,r,n,i){function a(L,x){return Y2e.coerce(t,r,J2e,L,x)}function o(L,x){return Y2e.coerce2(t,r,J2e,L,x)}if(K2e.handleSampleDefaults(t,r,a,i),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var u=a("span"),l;Array.isArray(u)&&(l="manual"),a("spanmode",l);var f=a("line.color",(t.marker||{}).color||n),c=a("line.width"),h=a("fillcolor",_wt.addOpacity(r.line.color,.5));K2e.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",h),_=o("box.line.color",f),b=o("box.line.width",c),v=a("box.visible",!!(d||p||_||b));v||(r.box={visible:!1});var k=o("meanline.color",f),E=o("meanline.width",c),T=a("meanline.visible",!!(k||E));T||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var twe=Te((Acr,ewe)=>{"use strict";var xwt=ei(),bwt=ZG(),wwt=WI();ewe.exports=function(t,r,n){function i(a,o){return xwt.coerce(t,r,bwt,a,o)}wwt._supply(t,r,n,i,"violin")}});var RR=Te(o2=>{"use strict";var Awt=ei(),Twt={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};o2.makeKDE=function(e,t,r){var n=r.length,i=Twt.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var u=0,l=0;l{"use strict";var YG=ei(),KG=wu(),Swt=UV(),rwe=RR(),Mwt=nf().BADNUM;iwe.exports=function(t,r){var n=Swt(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=KG.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,u=0,l=0,f=0;f{"use strict";var Lwt=XI().setPositionOffset,awe=["v","h"];owe.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var JG=Jl(),$G=ei(),Pwt=Mu(),QG=ZI(),zwt=MU(),Iwt=RR();lwe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,u=r.yaxis;function l(f,c){var h=zwt(f,{xaxis:s,yaxis:u,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return Pwt.smoothopen(h[0],1)}$G.makeTraceGroups(i,n,"trace violins").each(function(f){var c=JG.select(this),h=f[0],d=h.t,p=h.trace;if(p.visible!==!0||d.empty){c.remove();return}var _=d.bPos,b=d.bdPos,v=r[d.valLetter+"axis"],k=r[d.posLetter+"axis"],E=p.side==="both",T=E||p.side==="positive",L=E||p.side==="negative",x=c.selectAll("path.violin").data($G.identity);x.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),x.exit().remove(),x.each(function(U){var G=JG.select(this),j=U.density,H=j.length,N=k.c2l(U.pos+_,!0),W=k.l2p(N),re;if(p.width)re=d.maxKDE/b;else{var ae=o._violinScaleGroupStats[p.scalegroup];re=p.scalemode==="count"?ae.maxKDE/b*(ae.maxCount/U.pts.length):ae.maxKDE/b}var be,Pe,Ce,de,te,ke,Ee;if(T){for(ke=new Array(H),de=0;de{"use strict";var fwe=Jl(),UA=jl(),Rwt=ov().stylePoints;cwe.exports=function(t){var r=fwe.select(t).selectAll("g.trace.violins");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=n[0].trace,a=fwe.select(this),o=i.box||{},s=o.line||{},u=i.meanline||{},l=u.width;a.selectAll("path.violin").style("stroke-width",i.line.width+"px").call(UA.stroke,i.line.color).call(UA.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(UA.stroke,s.color).call(UA.fill,o.fillcolor);var f={"stroke-width":l+"px","stroke-dasharray":2*l+"px,"+l+"px"};a.selectAll("path.mean").style(f).call(UA.stroke,u.color),a.selectAll("path.meanline").style(f).call(UA.stroke,u.color),Rwt(a,i,t)})}});var mwe=Te((Ccr,vwe)=>{"use strict";var Dwt=jl(),eH=ei(),Fwt=wu(),dwe=jV(),pwe=RR();vwe.exports=function(t,r,n,i,a){a||(a={});var o=a.hoverLayer,s=t.cd,u=s[0].trace,l=u.hoveron,f=l.indexOf("violins")!==-1,c=l.indexOf("kde")!==-1,h=[],d,p;if(f||c){var _=dwe.hoverOnBoxes(t,r,n,i);if(c&&_.length>0){var b=t.xa,v=t.ya,k,E,T,L,x;u.orientation==="h"?(x=r,k="y",T=v,E="x",L=b):(x=n,k="x",T=b,E="y",L=v);var C=s[t.index];if(x>=C.span[0]&&x<=C.span[1]){var M=eH.extendFlat({},t),m=L.c2p(x,!0),P=pwe.getKdeValue(C,u,x),A=pwe.getPositionOnKdePath(C,u,m),B=T._offset,F=T._length;M[k+"0"]=A[0],M[k+"1"]=A[1],M[E+"0"]=M[E+"1"]=m,M[E+"Label"]=E+": "+Fwt.hoverLabelText(L,x,u[E+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var U=0,G=0;G<_.length;G++)if(_[G].attr==="med"){U=G;break}M.spikeDistance=_[U].spikeDistance;var j=k+"Spike";M[j]=_[U][j],_[U].spikeDistance=void 0,_[U][j]=void 0,M.hovertemplate=!1,h.push(M),p={},p[k+"1"]=eH.constrain(B+A[0],B,B+F),p[k+"2"]=eH.constrain(B+A[1],B,B+F),p[E+"1"]=p[E+"2"]=L._offset+m}}f&&(h=h.concat(_))}l.indexOf("points")!==-1&&(d=dwe.hoverOnPoints(t,r,n));var H=o.selectAll(".violinline-"+u.uid).data(p?[0]:[]);return H.enter().append("line").classed("violinline-"+u.uid,!0).attr("stroke-width",1.5),H.exit().remove(),H.attr(p).call(Dwt.stroke,t.color),i==="closest"?d?[d]:h:(d&&h.push(d),h)}});var gwe=Te((Lcr,ywe)=>{"use strict";ywe.exports={attributes:WG(),layoutAttributes:ZG(),supplyDefaults:Q2e(),crossTraceDefaults:wE().crossTraceDefaults,supplyLayoutDefaults:twe(),calc:nwe(),crossTraceCalc:swe(),plot:uwe(),style:hwe(),styleOnSelect:ov().styleOnSelect,hoverPoints:mwe(),selectPoints:XV(),moduleType:"trace",name:"violin",basePlotModule:Th(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var xwe=Te((Pcr,_we)=>{"use strict";_we.exports=gwe()});var wwe=Te((zcr,bwe)=>{"use strict";bwe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var rH=Te((Icr,Swe)=>{"use strict";var Fc=Ly(),tH=Zc().line,Bwt=Gf(),Awe=jc().axisHoverFormat,Owt=Nu().hovertemplateAttrs,qwt=Nu().texttemplateAttrs,Twe=wwe(),Ng=Su().extendFlat,Nwt=jl();Swe.exports={x:Fc.x,x0:Fc.x0,dx:Fc.dx,y:Fc.y,y0:Fc.y0,dy:Fc.dy,xperiod:Fc.xperiod,yperiod:Fc.yperiod,xperiod0:Fc.xperiod0,yperiod0:Fc.yperiod0,xperiodalignment:Fc.xperiodalignment,yperiodalignment:Fc.yperiodalignment,xhoverformat:Awe("x"),yhoverformat:Awe("y"),hovertext:Fc.hovertext,hovertemplate:Owt({},{keys:Twe.eventDataKeys}),hoverinfo:Ng({},Bwt.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:qwt({editType:"plot"},{keys:Twe.eventDataKeys.concat(["label","value"])}),text:Fc.text,textposition:Fc.textposition,insidetextanchor:Ng({},Fc.insidetextanchor,{dflt:"middle"}),textangle:Ng({},Fc.textangle,{dflt:0}),textfont:Fc.textfont,insidetextfont:Fc.insidetextfont,outsidetextfont:Fc.outsidetextfont,constraintext:Fc.constraintext,cliponaxis:Fc.cliponaxis,orientation:Ng({},Fc.orientation,{}),offset:Ng({},Fc.offset,{arrayOk:!1}),width:Ng({},Fc.width,{arrayOk:!1}),marker:Uwt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Ng({},tH.color,{dflt:Nwt.defaultLine}),width:Ng({},tH.width,{dflt:0,editType:"plot"}),dash:tH.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Fc.offsetgroup,alignmentgroup:Fc.alignmentgroup,zorder:Fc.zorder};function Uwt(){var e=Ng({},Fc.marker);return delete e.pattern,delete e.cornerradius,e}});var iH=Te((Rcr,Mwe)=>{"use strict";Mwe.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var aH=Te((Dcr,kwe)=>{"use strict";var DR=ei(),Vwt=Gb(),Gwt=r0().handleText,Hwt=J3(),Wwt=Pm(),Ewe=rH(),nH=jl();function jwt(e,t,r,n){function i(c,h){return DR.coerce(e,t,Ewe,c,h)}var a=Hwt(e,t,n,i);if(!a){t.visible=!1;return}Wwt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("orientation",t.y&&!t.x?"v":"h"),i("offset"),i("width");var o=i("text");i("hovertext"),i("hovertemplate");var s=i("textposition");Gwt(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",DR.isArrayOrTypedArray(o)?"text+value":"value");var u=i("marker.color",r);i("marker.line.color",nH.defaultLine),i("marker.line.width");var l=i("connector.visible");if(l){i("connector.fillcolor",Xwt(u));var f=i("connector.line.width");f&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function Xwt(e){var t=DR.isArrayOrTypedArray(e)?"#000":e;return nH.addOpacity(t,.5*nH.opacity(t))}function Zwt(e,t){var r,n;function i(o){return DR.coerce(n._input,n,Ewe,o)}for(var a=0;a{"use strict";var Ywt=ei(),Kwt=iH();Cwe.exports=function(e,t,r){var n=!1;function i(s,u){return Ywt.coerce(e,t,Kwt,s,u)}for(var a=0;a{"use strict";var VA=ei();Pwe.exports=function(t,r){for(var n=0;n{"use strict";var Iwe=wu(),Rwe=Im(),Jwt=zwe(),$wt=B0(),FE=nf().BADNUM;Dwe.exports=function(t,r){var n=Iwe.getFromId(t,r.xaxis||"x"),i=Iwe.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f,c,h;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),u=Rwe(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=Rwe(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;var d=Math.min(o.length,a.length),p=new Array(d);for(r._base=[],c=0;c{"use strict";var Bwe=Hb().setGroupPositions;Owe.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,u=[],l=[],f=[],c,h;for(h=0;h{"use strict";var FR=Jl(),L_=ei(),Nwe=Mu(),C_=nf().BADNUM,Qwt=i2(),e3t=Ap().clearMinTextSize;Vwe.exports=function(t,r,n,i){var a=t._fullLayout;e3t("funnel",a),t3t(t,r,n,i),r3t(t,r,n,i),Qwt.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function t3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;L_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=FR.select(this),u=o[0].trace,l=L_.ensureSingle(s,"g","regions");if(!u.connector||!u.connector.visible){l.remove();return}var f=u.orientation==="h",c=l.selectAll("g.region").data(L_.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var _=Uwe(d,i,a,f),b=_[0],v=_[1],k="";b[0]!==C_&&v[0]!==C_&&b[1]!==C_&&v[1]!==C_&&b[2]!==C_&&v[2]!==C_&&b[3]!==C_&&v[3]!==C_&&(f?k+="M"+b[0]+","+v[1]+"L"+b[2]+","+v[2]+"H"+b[3]+"L"+b[1]+","+v[1]+"Z":k+="M"+b[1]+","+v[1]+"L"+b[2]+","+v[3]+"V"+v[2]+"L"+b[1]+","+v[0]+"Z"),k===""&&(k="M0,0Z"),L_.ensureSingle(FR.select(this),"path").attr("d",k).call(Nwe.setClipUrl,t.layerClipId,e)}})})}function r3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;L_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=FR.select(this),u=o[0].trace,l=L_.ensureSingle(s,"g","lines");if(!u.connector||!u.connector.visible||!u.connector.line.width){l.remove();return}var f=u.orientation==="h",c=l.selectAll("g.line").data(L_.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var _=Uwe(d,i,a,f),b=_[0],v=_[1],k="";b[3]!==void 0&&v[3]!==void 0&&(f?(k+="M"+b[0]+","+v[1]+"L"+b[2]+","+v[2],k+="M"+b[1]+","+v[1]+"L"+b[3]+","+v[2]):(k+="M"+b[1]+","+v[1]+"L"+b[2]+","+v[3],k+="M"+b[1]+","+v[0]+"L"+b[2]+","+v[2])),k===""&&(k="M0,0Z"),L_.ensureSingle(FR.select(this),"path").attr("d",k).call(Nwe.setClipUrl,t.layerClipId,e)}})})}function Uwe(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}});var jwe=Te((Ucr,Wwe)=>{"use strict";var BE=Jl(),Hwe=Mu(),sH=jl(),i3t=N1().DESELECTDIM,n3t=U0(),a3t=Ap().resizeText,o3t=n3t.styleTextPoints;function s3t(e,t,r){var n=r||BE.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");a3t(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=BE.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var u=o.marker;BE.select(this).call(sH.fill,s.mc||u.color).call(sH.stroke,s.mlc||u.line.color).call(Hwe.dashLine,u.line.dash,s.mlw||u.line.width).style("opacity",o.selectedpoints&&!s.selected?i3t:1)}}),o3t(a,o,e),a.selectAll(".regions").each(function(){BE.select(this).selectAll("path").style("stroke-width",0).call(sH.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;Hwe.lineGroupStyle(BE.select(this).selectAll("path"),s.width,s.color,s.dash)})})}Wwe.exports={style:s3t}});var Ywe=Te((Vcr,Zwe)=>{"use strict";var Xwe=jl().opacity,l3t=TA().hoverOnBars,lH=ei().formatPercent;Zwe.exports=function(t,r,n,i,a){var o=l3t(t,r,n,i,a);if(o){var s=o.cd,u=s[0].trace,l=u.orientation==="h",f=o.index,c=s[f],h=l?"x":"y";o[h+"LabelVal"]=c.s,o.percentInitial=c.begR,o.percentInitialLabel=lH(c.begR,1),o.percentPrevious=c.difR,o.percentPreviousLabel=lH(c.difR,1),o.percentTotal=c.sumR,o.percentTotalLabel=lH(c.sumR,1);var d=c.hi||u.hoverinfo,p=[];if(d&&d!=="none"&&d!=="skip"){var _=d==="all",b=d.split("+"),v=function(k){return _||b.indexOf(k)!==-1};v("percent initial")&&p.push(o.percentInitialLabel+" of initial"),v("percent previous")&&p.push(o.percentPreviousLabel+" of previous"),v("percent total")&&p.push(o.percentTotalLabel+" of total")}return o.extraText=p.join("
"),o.color=u3t(u,c),[o]}};function u3t(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(Xwe(n))return n;if(Xwe(i)&&a)return i}});var Jwe=Te((Gcr,Kwe)=>{"use strict";Kwe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var Qwe=Te((Hcr,$we)=>{"use strict";$we.exports={attributes:rH(),layoutAttributes:iH(),supplyDefaults:aH().supplyDefaults,crossTraceDefaults:aH().crossTraceDefaults,supplyLayoutDefaults:Lwe(),calc:Fwe(),crossTraceCalc:qwe(),plot:Gwe(),style:jwe().style,hoverPoints:Ywe(),eventData:Jwe(),selectPoints:SA(),moduleType:"trace",name:"funnel",basePlotModule:Th(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var t3e=Te((Wcr,e3e)=>{"use strict";e3e.exports=Qwe()});var i3e=Te((jcr,r3e)=>{"use strict";r3e.exports={eventDataKeys:["initial","delta","final"]}});var cH=Te((Xcr,o3e)=>{"use strict";var Ec=Ly(),uH=Zc().line,f3t=Gf(),n3e=jc().axisHoverFormat,c3t=Nu().hovertemplateAttrs,h3t=Nu().texttemplateAttrs,a3e=i3e(),GA=Su().extendFlat,d3t=jl();function fH(e){return{marker:{color:GA({},Ec.marker.color,{arrayOk:!1,editType:"style"}),line:{color:GA({},Ec.marker.line.color,{arrayOk:!1,editType:"style"}),width:GA({},Ec.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}o3e.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:Ec.x,x0:Ec.x0,dx:Ec.dx,y:Ec.y,y0:Ec.y0,dy:Ec.dy,xperiod:Ec.xperiod,yperiod:Ec.yperiod,xperiod0:Ec.xperiod0,yperiod0:Ec.yperiod0,xperiodalignment:Ec.xperiodalignment,yperiodalignment:Ec.yperiodalignment,xhoverformat:n3e("x"),yhoverformat:n3e("y"),hovertext:Ec.hovertext,hovertemplate:c3t({},{keys:a3e.eventDataKeys}),hoverinfo:GA({},f3t.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:h3t({editType:"plot"},{keys:a3e.eventDataKeys.concat(["label"])}),text:Ec.text,textposition:Ec.textposition,insidetextanchor:Ec.insidetextanchor,textangle:Ec.textangle,textfont:Ec.textfont,insidetextfont:Ec.insidetextfont,outsidetextfont:Ec.outsidetextfont,constraintext:Ec.constraintext,cliponaxis:Ec.cliponaxis,orientation:Ec.orientation,offset:Ec.offset,width:Ec.width,increasing:fH("increasing"),decreasing:fH("decreasing"),totals:fH("intermediate sums and total"),connector:{line:{color:GA({},uH.color,{dflt:d3t.defaultLine}),width:GA({},uH.width,{editType:"plot"}),dash:uH.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Ec.offsetgroup,alignmentgroup:Ec.alignmentgroup,zorder:Ec.zorder}});var hH=Te((Zcr,s3e)=>{"use strict";s3e.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var HA=Te((Ycr,l3e)=>{"use strict";l3e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var pH=Te((Kcr,h3e)=>{"use strict";var u3e=ei(),p3t=Gb(),v3t=r0().handleText,m3t=J3(),y3t=Pm(),f3e=cH(),g3t=jl(),c3e=HA(),_3t=c3e.INCREASING.COLOR,x3t=c3e.DECREASING.COLOR,b3t="#4499FF";function dH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",g3t.defaultLine),e(t+".marker.line.width")}function w3t(e,t,r,n){function i(l,f){return u3e.coerce(e,t,f3e,l,f)}var a=m3t(e,t,n,i);if(!a){t.visible=!1;return}y3t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("measure"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");v3t(e,t,n,i,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(i("texttemplate"),t.texttemplate||i("textinfo")),dH(i,"increasing",_3t),dH(i,"decreasing",x3t),dH(i,"totals",b3t);var s=i("connector.visible");if(s){i("connector.mode");var u=i("connector.line.width");u&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function A3t(e,t){var r,n;function i(o){return u3e.coerce(n._input,n,f3e,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var T3t=ei(),S3t=hH();d3e.exports=function(e,t,r){var n=!1;function i(s,u){return T3t.coerce(e,t,S3t,s,u)}for(var a=0;a{"use strict";var v3e=wu(),m3e=Im(),y3e=ei().mergeArray,M3t=B0(),g3e=nf().BADNUM;function vH(e){return e==="a"||e==="absolute"}function mH(e){return e==="t"||e==="total"}_3e.exports=function(t,r){var n=v3e.getFromId(t,r.xaxis||"x"),i=v3e.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),u=m3e(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=m3e(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;for(var c=Math.min(o.length,a.length),h=new Array(c),d=0,p,_=!1,b=0;b{"use strict";var b3e=Hb().setGroupPositions;w3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,u=[],l=[],f=[],c,h;for(h=0;h{"use strict";var T3e=Jl(),BR=ei(),E3t=Mu(),WA=nf().BADNUM,k3t=i2(),C3t=Ap().clearMinTextSize;S3e.exports=function(t,r,n,i){var a=t._fullLayout;C3t("waterfall",a),k3t.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),L3t(t,r,n,i)};function L3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;BR.makeTraceGroups(n,r,"trace bars").each(function(o){var s=T3e.select(this),u=o[0].trace,l=BR.ensureSingle(s,"g","lines");if(!u.connector||!u.connector.visible){l.remove();return}var f=u.orientation==="h",c=u.connector.mode,h=l.selectAll("g.line").data(BR.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(p,_){if(!(_!==d-1&&!p.cNext)){var b=P3t(p,i,a,f),v=b[0],k=b[1],E="";v[0]!==WA&&k[0]!==WA&&v[1]!==WA&&k[1]!==WA&&(c==="spanning"&&!p.isSum&&_>0&&(f?E+="M"+v[0]+","+k[1]+"V"+k[0]:E+="M"+v[1]+","+k[0]+"H"+v[0]),c!=="between"&&(p.isSum||_{"use strict";var OR=Jl(),E3e=Mu(),k3e=jl(),z3t=N1().DESELECTDIM,I3t=U0(),R3t=Ap().resizeText,D3t=I3t.styleTextPoints;function F3t(e,t,r){var n=r||OR.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");R3t(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=OR.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var u=o[s.dir].marker;OR.select(this).call(k3e.fill,u.color).call(k3e.stroke,u.line.color).call(E3e.dashLine,u.line.dash,u.line.width).style("opacity",o.selectedpoints&&!s.selected?z3t:1)}}),D3t(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;E3e.lineGroupStyle(OR.select(this).selectAll("path"),s.width,s.color,s.dash)})})}C3e.exports={style:F3t}});var D3e=Te((rhr,R3e)=>{"use strict";var B3t=wu().hoverLabelText,P3e=jl().opacity,O3t=TA().hoverOnBars,z3e=HA(),I3e={increasing:z3e.INCREASING.SYMBOL,decreasing:z3e.DECREASING.SYMBOL};R3e.exports=function(t,r,n,i,a){var o=O3t(t,r,n,i,a);if(!o)return;var s=o.cd,u=s[0].trace,l=u.orientation==="h",f=l?"x":"y",c=l?t.xa:t.ya;function h(x){return B3t(c,x,u[f+"hoverformat"])}var d=o.index,p=s[d],_=p.isSum?p.b+p.s:p.rawS;o.initial=p.b+p.s-_,o.delta=_,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=_<0?"("+b+")":b,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var v=p.hi||u.hoverinfo,k=[];if(v&&v!=="none"&&v!=="skip"){var E=v==="all",T=v.split("+"),L=function(x){return E||T.indexOf(x)!==-1};p.isSum||(L("final")&&(l?!L("x"):!L("y"))&&k.push(o.finalLabel),L("delta")&&(_<0?k.push(o.deltaLabel+" "+I3e.decreasing):k.push(o.deltaLabel+" "+I3e.increasing)),L("initial")&&k.push("Initial: "+o.initialLabel))}return k.length&&(o.extraText=k.join("
")),o.color=q3t(u,p),[o]};function q3t(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(P3e(n))return n;if(P3e(i)&&a)return i}});var B3e=Te((ihr,F3e)=>{"use strict";F3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var q3e=Te((nhr,O3e)=>{"use strict";O3e.exports={attributes:cH(),layoutAttributes:hH(),supplyDefaults:pH().supplyDefaults,crossTraceDefaults:pH().crossTraceDefaults,supplyLayoutDefaults:p3e(),calc:x3e(),crossTraceCalc:A3e(),plot:M3e(),style:L3e().style,hoverPoints:D3e(),eventData:B3e(),selectPoints:SA(),moduleType:"trace",name:"waterfall",basePlotModule:Th(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var U3e=Te((ahr,N3e)=>{"use strict";N3e.exports=q3e()});var jA=Te((ohr,V3e)=>{"use strict";V3e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}}});var yH=Te((shr,H3e)=>{"use strict";var N3t=Gf(),U3t=Zc().zorder,V3t=Nu().hovertemplateAttrs,G3e=Su().extendFlat,G3t=jA().colormodel,qE=["rgb","rgba","rgba256","hsl","hsla"],H3t=[],W3t=[];for(XA=0;XA{"use strict";var j3t=ei(),X3t=yH(),W3e=jA(),Z3t=Lg().IMAGE_URL_PREFIX;j3e.exports=function(t,r){function n(o,s){return j3t.coerce(t,r,X3t,o,s)}n("source"),r.source&&!r.source.match(Z3t)&&delete r.source,r._hasSource=!!r.source;var i=n("z");if(r._hasZ=!(i===void 0||!i.length||!i[0]||!i[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}n("x0"),n("y0"),n("dx"),n("dy");var a;r._hasZ?(n("colormodel","rgb"),a=W3e.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=W3e.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),n("zsmooth"),n("text"),n("hovertext"),n("hovertemplate"),r._length=null,n("zorder")}});var Ug=Te((uhr,gH)=>{typeof Object.create=="function"?gH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:gH.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var _H=Te((fhr,Z3e)=>{Z3e.exports=pb().EventEmitter});var J3e=Te(qR=>{"use strict";qR.byteLength=K3t;qR.toByteArray=$3t;qR.fromByteArray=tAt;var Fy=[],Z0=[],Y3t=typeof Uint8Array!="undefined"?Uint8Array:Array,xH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(s2=0,Y3e=xH.length;s20)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function K3t(e){var t=K3e(e),r=t[0],n=t[1];return(r+n)*3/4-n}function J3t(e,t,r){return(t+r)*3/4-r}function $3t(e){var t,r=K3e(e),n=r[0],i=r[1],a=new Y3t(J3t(e,n,i)),o=0,s=i>0?n-4:n,u;for(u=0;u>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Z0[e.charCodeAt(u)]<<2|Z0[e.charCodeAt(u+1)]>>4,a[o++]=t&255),i===1&&(t=Z0[e.charCodeAt(u)]<<10|Z0[e.charCodeAt(u+1)]<<4|Z0[e.charCodeAt(u+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function Q3t(e){return Fy[e>>18&63]+Fy[e>>12&63]+Fy[e>>6&63]+Fy[e&63]}function eAt(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(Fy[t>>2]+Fy[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Fy[t>>10]+Fy[t>>4&63]+Fy[t<<2&63]+"=")),i.join("")}});var $3e=Te(bH=>{bH.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,u=(1<>1,f=-7,c=r?i-1:0,h=r?-1:1,d=e[t+c];for(c+=h,a=d&(1<<-f)-1,d>>=-f,f+=s;f>0;a=a*256+e[t+c],c+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=o*256+e[t+c],c+=h,f-=8);if(a===0)a=1-l;else{if(a===u)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(d?-1:1)*o*Math.pow(2,a-n)};bH.write=function(e,t,r,n,i,a){var o,s,u,l=a*8-i-1,f=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,_=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+c>=1?t+=h/u:t+=h*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=f?(s=0,o=f):o+c>=1?(s=(t*u-1)*Math.pow(2,i),o=o+c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=s&255,d+=p,s/=256,i-=8);for(o=o<0;e[r+d]=o&255,d+=p,o/=256,l-=8);e[r+d-p]|=_*128}});var u2=Te(JA=>{"use strict";var wH=J3e(),YA=$3e(),Q3e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;JA.Buffer=ol;JA.SlowBuffer=sAt;JA.INSPECT_MAX_BYTES=50;var NR=2147483647;JA.kMaxLength=NR;ol.TYPED_ARRAY_SUPPORT=rAt();!ol.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function rAt(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(ol.prototype,"parent",{enumerable:!0,get:function(){if(ol.isBuffer(this))return this.buffer}});Object.defineProperty(ol.prototype,"offset",{enumerable:!0,get:function(){if(ol.isBuffer(this))return this.byteOffset}});function Vg(e){if(e>NR)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ol.prototype),t}function ol(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return MH(e)}return iAe(e,t,r)}ol.poolSize=8192;function iAe(e,t,r){if(typeof e=="string")return nAt(e,t);if(ArrayBuffer.isView(e))return aAt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(By(e,ArrayBuffer)||e&&By(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(By(e,SharedArrayBuffer)||e&&By(e.buffer,SharedArrayBuffer)))return TH(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return ol.from(n,t,r);let i=oAt(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ol.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}ol.from=function(e,t,r){return iAe(e,t,r)};Object.setPrototypeOf(ol.prototype,Uint8Array.prototype);Object.setPrototypeOf(ol,Uint8Array);function nAe(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function iAt(e,t,r){return nAe(e),e<=0?Vg(e):t!==void 0?typeof r=="string"?Vg(e).fill(t,r):Vg(e).fill(t):Vg(e)}ol.alloc=function(e,t,r){return iAt(e,t,r)};function MH(e){return nAe(e),Vg(e<0?0:EH(e)|0)}ol.allocUnsafe=function(e){return MH(e)};ol.allocUnsafeSlow=function(e){return MH(e)};function nAt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ol.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=aAe(e,t)|0,n=Vg(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function AH(e){let t=e.length<0?0:EH(e.length)|0,r=Vg(t);for(let n=0;n=NR)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+NR.toString(16)+" bytes");return e|0}function sAt(e){return+e!=e&&(e=0),ol.alloc(+e)}ol.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ol.prototype};ol.compare=function(t,r){if(By(t,Uint8Array)&&(t=ol.from(t,t.offset,t.byteLength)),By(r,Uint8Array)&&(r=ol.from(r,r.offset,r.byteLength)),!ol.isBuffer(t)||!ol.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);ai.length?(ol.isBuffer(o)||(o=ol.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ol.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function aAe(e,t){if(ol.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||By(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return SH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return pAe(e).length;default:if(i)return n?-1:SH(e).length;t=(""+t).toLowerCase(),i=!0}}ol.byteLength=aAe;function lAt(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return gAt(this,t,r);case"utf8":case"utf-8":return sAe(this,t,r);case"ascii":return mAt(this,t,r);case"latin1":case"binary":return yAt(this,t,r);case"base64":return pAt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _At(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ol.prototype._isBuffer=!0;function l2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ol.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};Q3e&&(ol.prototype[Q3e]=ol.prototype.inspect);ol.prototype.compare=function(t,r,n,i,a){if(By(t,Uint8Array)&&(t=ol.from(t,t.offset,t.byteLength)),!ol.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,s=n-r,u=Math.min(o,s),l=this.slice(i,a),f=t.slice(r,n);for(let c=0;c2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,CH(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ol.from(t,n)),ol.isBuffer(t))return t.length===0?-1:eAe(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):eAe(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function eAe(e,t,r,n,i){let a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function u(f,c){return a===1?f[c]:f.readUInt16BE(c*a)}let l;if(i){let f=-1;for(l=r;lo&&(r=o-s),l=r;l>=0;l--){let f=!0;for(let c=0;ci&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return uAt(this,t,r,n);case"utf8":case"utf-8":return fAt(this,t,r,n);case"ascii":case"latin1":case"binary":return cAt(this,t,r,n);case"base64":return hAt(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dAt(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ol.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pAt(e,t,r){return t===0&&r===e.length?wH.fromByteArray(e):wH.fromByteArray(e.slice(t,r))}function sAe(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let u,l,f,c;switch(s){case 1:a<128&&(o=a);break;case 2:u=e[i+1],(u&192)===128&&(c=(a&31)<<6|u&63,c>127&&(o=c));break;case 3:u=e[i+1],l=e[i+2],(u&192)===128&&(l&192)===128&&(c=(a&15)<<12|(u&63)<<6|l&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:u=e[i+1],l=e[i+2],f=e[i+3],(u&192)===128&&(l&192)===128&&(f&192)===128&&(c=(a&15)<<18|(u&63)<<12|(l&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return vAt(n)}var tAe=4096;function vAt(e){let t=e.length;if(t<=tAe)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let a=t;an&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}ol.prototype.readUintLE=ol.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||rp(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||rp(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ol.prototype.readUint8=ol.prototype.readUInt8=function(t,r){return t=t>>>0,r||rp(t,1,this.length),this[t]};ol.prototype.readUint16LE=ol.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||rp(t,2,this.length),this[t]|this[t+1]<<8};ol.prototype.readUint16BE=ol.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||rp(t,2,this.length),this[t]<<8|this[t+1]};ol.prototype.readUint32LE=ol.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ol.prototype.readUint32BE=ol.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ol.prototype.readBigUInt64LE=P_(function(t){t=t>>>0,KA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&NE(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<>>0,KA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&NE(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,r=r>>>0,n||rp(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};ol.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||rp(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};ol.prototype.readInt8=function(t,r){return t=t>>>0,r||rp(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ol.prototype.readInt16LE=function(t,r){t=t>>>0,r||rp(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ol.prototype.readInt16BE=function(t,r){t=t>>>0,r||rp(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ol.prototype.readInt32LE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ol.prototype.readInt32BE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ol.prototype.readBigInt64LE=P_(function(t){t=t>>>0,KA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&NE(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,KA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&NE(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||rp(t,4,this.length),YA.read(this,t,!0,23,4)};ol.prototype.readFloatBE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),YA.read(this,t,!1,23,4)};ol.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||rp(t,8,this.length),YA.read(this,t,!0,52,8)};ol.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||rp(t,8,this.length),YA.read(this,t,!1,52,8)};function zv(e,t,r,n,i,a){if(!ol.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}ol.prototype.writeUintLE=ol.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;zv(this,t,r,n,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;zv(this,t,r,n,s,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};ol.prototype.writeUint8=ol.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,1,255,0),this[r]=t&255,r+1};ol.prototype.writeUint16LE=ol.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};ol.prototype.writeUint16BE=ol.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};ol.prototype.writeUint32LE=ol.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};ol.prototype.writeUint32BE=ol.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function lAe(e,t,r,n,i){dAe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function uAe(e,t,r,n,i){dAe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}ol.prototype.writeBigUInt64LE=P_(function(t,r=0){return lAe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ol.prototype.writeBigUInt64BE=P_(function(t,r=0){return uAe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ol.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let u=Math.pow(2,8*n-1);zv(this,t,r,n,u-1,-u)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+n};ol.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let u=Math.pow(2,8*n-1);zv(this,t,r,n,u-1,-u)}let a=n-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+n};ol.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};ol.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};ol.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};ol.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};ol.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};ol.prototype.writeBigInt64LE=P_(function(t,r=0){return lAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ol.prototype.writeBigInt64BE=P_(function(t,r=0){return uAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function fAe(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function cAe(e,t,r,n,i){return t=+t,r=r>>>0,i||fAe(e,t,r,4,34028234663852886e22,-34028234663852886e22),YA.write(e,t,r,n,23,4),r+4}ol.prototype.writeFloatLE=function(t,r,n){return cAe(this,t,r,!0,n)};ol.prototype.writeFloatBE=function(t,r,n){return cAe(this,t,r,!1,n)};function hAe(e,t,r,n,i){return t=+t,r=r>>>0,i||fAe(e,t,r,8,17976931348623157e292,-17976931348623157e292),YA.write(e,t,r,n,52,8),r+8}ol.prototype.writeDoubleLE=function(t,r,n){return hAe(this,t,r,!0,n)};ol.prototype.writeDoubleBE=function(t,r,n){return hAe(this,t,r,!1,n)};ol.prototype.copy=function(t,r,n,i){if(!ol.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?i=rAe(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=rAe(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function rAe(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function xAt(e,t,r){KA(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&NE(t,e.length-(r+1))}function dAe(e,t,r,n,i,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new ZA.ERR_OUT_OF_RANGE("value",s,e)}xAt(n,i,a)}function KA(e,t){if(typeof e!="number")throw new ZA.ERR_INVALID_ARG_TYPE(t,"number",e)}function NE(e,t,r){throw Math.floor(e)!==e?(KA(e,r),new ZA.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new ZA.ERR_BUFFER_OUT_OF_BOUNDS:new ZA.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var bAt=/[^+/0-9A-Za-z-_]/g;function wAt(e){if(e=e.split("=")[0],e=e.trim().replace(bAt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function SH(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function AAt(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function pAe(e){return wH.toByteArray(wAt(e))}function UR(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function By(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function CH(e){return e!==e}var SAt=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function P_(e){return typeof BigInt=="undefined"?MAt:e}function MAt(){throw new Error("BigInt not supported")}});var VR=Te((vhr,vAe)=>{"use strict";vAe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var UE=Te((mhr,mAe)=>{"use strict";var EAt=VR();mAe.exports=function(){return EAt()&&!!Symbol.toStringTag}});var LH=Te((yhr,yAe)=>{"use strict";yAe.exports=Object});var _Ae=Te((ghr,gAe)=>{"use strict";gAe.exports=Error});var bAe=Te((_hr,xAe)=>{"use strict";xAe.exports=EvalError});var AAe=Te((xhr,wAe)=>{"use strict";wAe.exports=RangeError});var SAe=Te((bhr,TAe)=>{"use strict";TAe.exports=ReferenceError});var PH=Te((whr,MAe)=>{"use strict";MAe.exports=SyntaxError});var $A=Te((Ahr,EAe)=>{"use strict";EAe.exports=TypeError});var CAe=Te((Thr,kAe)=>{"use strict";kAe.exports=URIError});var PAe=Te((Shr,LAe)=>{"use strict";LAe.exports=Math.abs});var IAe=Te((Mhr,zAe)=>{"use strict";zAe.exports=Math.floor});var DAe=Te((Ehr,RAe)=>{"use strict";RAe.exports=Math.max});var BAe=Te((khr,FAe)=>{"use strict";FAe.exports=Math.min});var qAe=Te((Chr,OAe)=>{"use strict";OAe.exports=Math.pow});var UAe=Te((Lhr,NAe)=>{"use strict";NAe.exports=Math.round});var GAe=Te((Phr,VAe)=>{"use strict";VAe.exports=Number.isNaN||function(t){return t!==t}});var WAe=Te((zhr,HAe)=>{"use strict";var kAt=GAe();HAe.exports=function(t){return kAt(t)||t===0?t:t<0?-1:1}});var XAe=Te((Ihr,jAe)=>{"use strict";jAe.exports=Object.getOwnPropertyDescriptor});var f2=Te((Rhr,ZAe)=>{"use strict";var GR=XAe();if(GR)try{GR([],"length")}catch(e){GR=null}ZAe.exports=GR});var VE=Te((Dhr,YAe)=>{"use strict";var HR=Object.defineProperty||!1;if(HR)try{HR({},"a",{value:1})}catch(e){HR=!1}YAe.exports=HR});var $Ae=Te((Fhr,JAe)=>{"use strict";var KAe=typeof Symbol!="undefined"&&Symbol,CAt=VR();JAe.exports=function(){return typeof KAe!="function"||typeof Symbol!="function"||typeof KAe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:CAt()}});var zH=Te((Bhr,QAe)=>{"use strict";QAe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var IH=Te((Ohr,eTe)=>{"use strict";var LAt=LH();eTe.exports=LAt.getPrototypeOf||null});var iTe=Te((qhr,rTe)=>{"use strict";var PAt="Function.prototype.bind called on incompatible ",zAt=Object.prototype.toString,IAt=Math.max,RAt="[object Function]",tTe=function(t,r){for(var n=[],i=0;i{"use strict";var BAt=iTe();nTe.exports=Function.prototype.bind||BAt});var WR=Te((Uhr,aTe)=>{"use strict";aTe.exports=Function.prototype.call});var RH=Te((Vhr,oTe)=>{"use strict";oTe.exports=Function.prototype.apply});var lTe=Te((Ghr,sTe)=>{"use strict";sTe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var fTe=Te((Hhr,uTe)=>{"use strict";var OAt=QA(),qAt=RH(),NAt=WR(),UAt=lTe();uTe.exports=UAt||OAt.call(NAt,qAt)});var hTe=Te((Whr,cTe)=>{"use strict";var VAt=QA(),GAt=$A(),HAt=WR(),WAt=fTe();cTe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new GAt("a function is required");return WAt(VAt,HAt,t)}});var gTe=Te((jhr,yTe)=>{"use strict";var jAt=hTe(),dTe=f2(),vTe;try{vTe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var DH=!!vTe&&dTe&&dTe(Object.prototype,"__proto__"),mTe=Object,pTe=mTe.getPrototypeOf;yTe.exports=DH&&typeof DH.get=="function"?jAt([DH.get]):typeof pTe=="function"?function(t){return pTe(t==null?t:mTe(t))}:!1});var ATe=Te((Xhr,wTe)=>{"use strict";var _Te=zH(),xTe=IH(),bTe=gTe();wTe.exports=_Te?function(t){return _Te(t)}:xTe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return xTe(t)}:bTe?function(t){return bTe(t)}:null});var STe=Te((Zhr,TTe)=>{"use strict";var XAt=Function.prototype.call,ZAt=Object.prototype.hasOwnProperty,YAt=QA();TTe.exports=YAt.call(XAt,ZAt)});var ZR=Te((Yhr,PTe)=>{"use strict";var Jf,KAt=LH(),JAt=_Ae(),$At=bAe(),QAt=AAe(),eTt=SAe(),iT=PH(),rT=$A(),tTt=CAe(),rTt=PAe(),iTt=IAe(),nTt=DAe(),aTt=BAe(),oTt=qAe(),sTt=UAe(),lTt=WAe(),CTe=Function,FH=function(e){try{return CTe('"use strict"; return ('+e+").constructor;")()}catch(t){}},GE=f2(),uTt=VE(),BH=function(){throw new rT},fTt=GE?function(){try{return arguments.callee,BH}catch(e){try{return GE(arguments,"callee").get}catch(t){return BH}}}():BH,eT=$Ae()(),ip=ATe(),cTt=IH(),hTt=zH(),LTe=RH(),HE=WR(),tT={},dTt=typeof Uint8Array=="undefined"||!ip?Jf:ip(Uint8Array),c2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Jf:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Jf:ArrayBuffer,"%ArrayIteratorPrototype%":eT&&ip?ip([][Symbol.iterator]()):Jf,"%AsyncFromSyncIteratorPrototype%":Jf,"%AsyncFunction%":tT,"%AsyncGenerator%":tT,"%AsyncGeneratorFunction%":tT,"%AsyncIteratorPrototype%":tT,"%Atomics%":typeof Atomics=="undefined"?Jf:Atomics,"%BigInt%":typeof BigInt=="undefined"?Jf:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Jf:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Jf:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Jf:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":JAt,"%eval%":eval,"%EvalError%":$At,"%Float16Array%":typeof Float16Array=="undefined"?Jf:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Jf:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Jf:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Jf:FinalizationRegistry,"%Function%":CTe,"%GeneratorFunction%":tT,"%Int8Array%":typeof Int8Array=="undefined"?Jf:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Jf:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Jf:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":eT&&ip?ip(ip([][Symbol.iterator]())):Jf,"%JSON%":typeof JSON=="object"?JSON:Jf,"%Map%":typeof Map=="undefined"?Jf:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!eT||!ip?Jf:ip(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":KAt,"%Object.getOwnPropertyDescriptor%":GE,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Jf:Promise,"%Proxy%":typeof Proxy=="undefined"?Jf:Proxy,"%RangeError%":QAt,"%ReferenceError%":eTt,"%Reflect%":typeof Reflect=="undefined"?Jf:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Jf:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!eT||!ip?Jf:ip(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Jf:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":eT&&ip?ip(""[Symbol.iterator]()):Jf,"%Symbol%":eT?Symbol:Jf,"%SyntaxError%":iT,"%ThrowTypeError%":fTt,"%TypedArray%":dTt,"%TypeError%":rT,"%Uint8Array%":typeof Uint8Array=="undefined"?Jf:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Jf:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Jf:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Jf:Uint32Array,"%URIError%":tTt,"%WeakMap%":typeof WeakMap=="undefined"?Jf:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Jf:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Jf:WeakSet,"%Function.prototype.call%":HE,"%Function.prototype.apply%":LTe,"%Object.defineProperty%":uTt,"%Object.getPrototypeOf%":cTt,"%Math.abs%":rTt,"%Math.floor%":iTt,"%Math.max%":nTt,"%Math.min%":aTt,"%Math.pow%":oTt,"%Math.round%":sTt,"%Math.sign%":lTt,"%Reflect.getPrototypeOf%":hTt};if(ip)try{null.error}catch(e){MTe=ip(ip(e)),c2["%Error.prototype%"]=MTe}var MTe,pTt=function e(t){var r;if(t==="%AsyncFunction%")r=FH("async function () {}");else if(t==="%GeneratorFunction%")r=FH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=FH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&ip&&(r=ip(i.prototype))}return c2[t]=r,r},ETe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},WE=QA(),jR=STe(),vTt=WE.call(HE,Array.prototype.concat),mTt=WE.call(LTe,Array.prototype.splice),kTe=WE.call(HE,String.prototype.replace),XR=WE.call(HE,String.prototype.slice),yTt=WE.call(HE,RegExp.prototype.exec),gTt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_Tt=/\\(\\)?/g,xTt=function(t){var r=XR(t,0,1),n=XR(t,-1);if(r==="%"&&n!=="%")throw new iT("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new iT("invalid intrinsic syntax, expected opening `%`");var i=[];return kTe(t,gTt,function(a,o,s,u){i[i.length]=s?kTe(u,_Tt,"$1"):o||a}),i},bTt=function(t,r){var n=t,i;if(jR(ETe,n)&&(i=ETe[n],n="%"+i[0]+"%"),jR(c2,n)){var a=c2[n];if(a===tT&&(a=pTt(n)),typeof a=="undefined"&&!r)throw new rT("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new iT("intrinsic "+t+" does not exist!")};PTe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new rT("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new rT('"allowMissing" argument must be a boolean');if(yTt(/^%?[^%]*%?$/,t)===null)throw new iT("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=xTt(t),i=n.length>0?n[0]:"",a=bTt("%"+i+"%",r),o=a.name,s=a.value,u=!1,l=a.alias;l&&(i=l[0],mTt(n,vTt([0,1],l)));for(var f=1,c=!0;f=n.length){var _=GE(s,h);c=!!_,c&&"get"in _&&!("originalValue"in _.get)?s=_.get:s=s[h]}else c=jR(s,h),s=s[h];c&&!u&&(c2[o]=s)}}return s}});var DTe=Te((Khr,RTe)=>{"use strict";var zTe=VE(),wTt=PH(),nT=$A(),ITe=f2();RTe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new nT("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new nT("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new nT("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new nT("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new nT("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new nT("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!ITe&&ITe(t,r);if(zTe)zTe(t,r,{configurable:o===null&&u?u.configurable:!o,enumerable:i===null&&u?u.enumerable:!i,value:n,writable:a===null&&u?u.writable:!a});else if(s||!i&&!a&&!o)t[r]=n;else throw new wTt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var qH=Te((Jhr,BTe)=>{"use strict";var OH=VE(),FTe=function(){return!!OH};FTe.hasArrayLengthDefineBug=function(){if(!OH)return null;try{return OH([],"length",{value:1}).length!==1}catch(t){return!0}};BTe.exports=FTe});var VTe=Te(($hr,UTe)=>{"use strict";var ATt=ZR(),OTe=DTe(),TTt=qH()(),qTe=f2(),NTe=$A(),STt=ATt("%Math.floor%");UTe.exports=function(t,r){if(typeof t!="function")throw new NTe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||STt(r)!==r)throw new NTe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&qTe){var o=qTe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(TTt?OTe(t,"length",r,!0,!0):OTe(t,"length",r)),t}});var jE=Te((Qhr,YR)=>{"use strict";var NH=QA(),KR=ZR(),MTt=VTe(),ETt=$A(),WTe=KR("%Function.prototype.apply%"),jTe=KR("%Function.prototype.call%"),XTe=KR("%Reflect.apply%",!0)||NH.call(jTe,WTe),GTe=VE(),kTt=KR("%Math.max%");YR.exports=function(t){if(typeof t!="function")throw new ETt("a function is required");var r=XTe(NH,jTe,arguments);return MTt(r,1+kTt(0,t.length-(arguments.length-1)),!0)};var HTe=function(){return XTe(NH,WTe,arguments)};GTe?GTe(YR.exports,"apply",{value:HTe}):YR.exports.apply=HTe});var aT=Te((edr,KTe)=>{"use strict";var ZTe=ZR(),YTe=jE(),CTt=YTe(ZTe("String.prototype.indexOf"));KTe.exports=function(t,r){var n=ZTe(t,!!r);return typeof n=="function"&&CTt(t,".prototype.")>-1?YTe(n):n}});var QTe=Te((tdr,$Te)=>{"use strict";var LTt=UE()(),PTt=aT(),UH=PTt("Object.prototype.toString"),JR=function(t){return LTt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:UH(t)==="[object Arguments]"},JTe=function(t){return JR(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&UH(t)!=="[object Array]"&&UH(t.callee)==="[object Function]"},zTt=function(){return JR(arguments)}();JR.isLegacyArguments=JTe;$Te.exports=zTt?JR:JTe});var rSe=Te((rdr,tSe)=>{"use strict";var ITt=Object.prototype.toString,RTt=Function.prototype.toString,DTt=/^\s*(?:function)?\*/,eSe=UE()(),VH=Object.getPrototypeOf,FTt=function(){if(!eSe)return!1;try{return Function("return function*() {}")()}catch(e){}},GH;tSe.exports=function(t){if(typeof t!="function")return!1;if(DTt.test(RTt.call(t)))return!0;if(!eSe){var r=ITt.call(t);return r==="[object GeneratorFunction]"}if(!VH)return!1;if(typeof GH=="undefined"){var n=FTt();GH=n?VH(n):!1}return VH(t)===GH}});var oSe=Te((idr,aSe)=>{"use strict";var nSe=Function.prototype.toString,oT=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,WH,$R;if(typeof oT=="function"&&typeof Object.defineProperty=="function")try{WH=Object.defineProperty({},"length",{get:function(){throw $R}}),$R={},oT(function(){throw 42},null,WH)}catch(e){e!==$R&&(oT=null)}else oT=null;var BTt=/^\s*class\b/,jH=function(t){try{var r=nSe.call(t);return BTt.test(r)}catch(n){return!1}},HH=function(t){try{return jH(t)?!1:(nSe.call(t),!0)}catch(r){return!1}},QR=Object.prototype.toString,OTt="[object Object]",qTt="[object Function]",NTt="[object GeneratorFunction]",UTt="[object HTMLAllCollection]",VTt="[object HTML document.all class]",GTt="[object HTMLCollection]",HTt=typeof Symbol=="function"&&!!Symbol.toStringTag,WTt=!(0 in[,]),XH=function(){return!1};typeof document=="object"&&(iSe=document.all,QR.call(iSe)===QR.call(document.all)&&(XH=function(t){if((WTt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=QR.call(t);return(r===UTt||r===VTt||r===GTt||r===OTt)&&t("")==null}catch(n){}return!1}));var iSe;aSe.exports=oT?function(t){if(XH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{oT(t,null,WH)}catch(r){if(r!==$R)return!1}return!jH(t)&&HH(t)}:function(t){if(XH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(HTt)return HH(t);if(jH(t))return!1;var r=QR.call(t);return r!==qTt&&r!==NTt&&!/^\[object HTML/.test(r)?!1:HH(t)}});var ZH=Te((ndr,lSe)=>{"use strict";var jTt=oSe(),XTt=Object.prototype.toString,sSe=Object.prototype.hasOwnProperty,ZTt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),XTt.call(t)==="[object Array]"?ZTt(t,r,i):typeof t=="string"?YTt(t,r,i):KTt(t,r,i)};lSe.exports=JTt});var KH=Te((adr,uSe)=>{"use strict";var YH=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],$Tt=typeof globalThis=="undefined"?window:globalThis;uSe.exports=function(){for(var t=[],r=0;r{"use strict";var tD=ZH(),QTt=KH(),fSe=jE(),QH=aT(),eD=f2(),eSt=QH("Object.prototype.toString"),hSe=UE()(),cSe=typeof globalThis=="undefined"?window:globalThis,$H=QTt(),eW=QH("String.prototype.slice"),JH=Object.getPrototypeOf,tSt=QH("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:iSt(t)}return eD?rSt(t):null}});var xSe=Te((sdr,_Se)=>{"use strict";var vSe=ZH(),nSt=KH(),rW=aT(),aSt=rW("Object.prototype.toString"),mSe=UE()(),iD=f2(),oSt=typeof globalThis=="undefined"?window:globalThis,ySe=nSt(),sSt=rW("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return iD?uSt(t):!1}});var aW=Te($f=>{"use strict";var fSt=QTe(),cSt=rSe(),Gm=pSe(),bSe=xSe();function sT(e){return e.call.bind(e)}var wSe=typeof BigInt!="undefined",ASe=typeof Symbol!="undefined",Y0=sT(Object.prototype.toString),hSt=sT(Number.prototype.valueOf),dSt=sT(String.prototype.valueOf),pSt=sT(Boolean.prototype.valueOf);wSe&&(TSe=sT(BigInt.prototype.valueOf));var TSe;ASe&&(SSe=sT(Symbol.prototype.valueOf));var SSe;function ZE(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}$f.isArgumentsObject=fSt;$f.isGeneratorFunction=cSt;$f.isTypedArray=bSe;function vSt(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}$f.isPromise=vSt;function mSt(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):bSe(e)||ESe(e)}$f.isArrayBufferView=mSt;function ySt(e){return Gm(e)==="Uint8Array"}$f.isUint8Array=ySt;function gSt(e){return Gm(e)==="Uint8ClampedArray"}$f.isUint8ClampedArray=gSt;function _St(e){return Gm(e)==="Uint16Array"}$f.isUint16Array=_St;function xSt(e){return Gm(e)==="Uint32Array"}$f.isUint32Array=xSt;function bSt(e){return Gm(e)==="Int8Array"}$f.isInt8Array=bSt;function wSt(e){return Gm(e)==="Int16Array"}$f.isInt16Array=wSt;function ASt(e){return Gm(e)==="Int32Array"}$f.isInt32Array=ASt;function TSt(e){return Gm(e)==="Float32Array"}$f.isFloat32Array=TSt;function SSt(e){return Gm(e)==="Float64Array"}$f.isFloat64Array=SSt;function MSt(e){return Gm(e)==="BigInt64Array"}$f.isBigInt64Array=MSt;function ESt(e){return Gm(e)==="BigUint64Array"}$f.isBigUint64Array=ESt;function nD(e){return Y0(e)==="[object Map]"}nD.working=typeof Map!="undefined"&&nD(new Map);function kSt(e){return typeof Map=="undefined"?!1:nD.working?nD(e):e instanceof Map}$f.isMap=kSt;function aD(e){return Y0(e)==="[object Set]"}aD.working=typeof Set!="undefined"&&aD(new Set);function CSt(e){return typeof Set=="undefined"?!1:aD.working?aD(e):e instanceof Set}$f.isSet=CSt;function oD(e){return Y0(e)==="[object WeakMap]"}oD.working=typeof WeakMap!="undefined"&&oD(new WeakMap);function LSt(e){return typeof WeakMap=="undefined"?!1:oD.working?oD(e):e instanceof WeakMap}$f.isWeakMap=LSt;function nW(e){return Y0(e)==="[object WeakSet]"}nW.working=typeof WeakSet!="undefined"&&nW(new WeakSet);function PSt(e){return nW(e)}$f.isWeakSet=PSt;function sD(e){return Y0(e)==="[object ArrayBuffer]"}sD.working=typeof ArrayBuffer!="undefined"&&sD(new ArrayBuffer);function MSe(e){return typeof ArrayBuffer=="undefined"?!1:sD.working?sD(e):e instanceof ArrayBuffer}$f.isArrayBuffer=MSe;function lD(e){return Y0(e)==="[object DataView]"}lD.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&lD(new DataView(new ArrayBuffer(1),0,1));function ESe(e){return typeof DataView=="undefined"?!1:lD.working?lD(e):e instanceof DataView}$f.isDataView=ESe;var iW=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function XE(e){return Y0(e)==="[object SharedArrayBuffer]"}function kSe(e){return typeof iW=="undefined"?!1:(typeof XE.working=="undefined"&&(XE.working=XE(new iW)),XE.working?XE(e):e instanceof iW)}$f.isSharedArrayBuffer=kSe;function zSt(e){return Y0(e)==="[object AsyncFunction]"}$f.isAsyncFunction=zSt;function ISt(e){return Y0(e)==="[object Map Iterator]"}$f.isMapIterator=ISt;function RSt(e){return Y0(e)==="[object Set Iterator]"}$f.isSetIterator=RSt;function DSt(e){return Y0(e)==="[object Generator]"}$f.isGeneratorObject=DSt;function FSt(e){return Y0(e)==="[object WebAssembly.Module]"}$f.isWebAssemblyCompiledModule=FSt;function CSe(e){return ZE(e,hSt)}$f.isNumberObject=CSe;function LSe(e){return ZE(e,dSt)}$f.isStringObject=LSe;function PSe(e){return ZE(e,pSt)}$f.isBooleanObject=PSe;function zSe(e){return wSe&&ZE(e,TSe)}$f.isBigIntObject=zSe;function ISe(e){return ASe&&ZE(e,SSe)}$f.isSymbolObject=ISe;function BSt(e){return CSe(e)||LSe(e)||PSe(e)||zSe(e)||ISe(e)}$f.isBoxedPrimitive=BSt;function OSt(e){return typeof Uint8Array!="undefined"&&(MSe(e)||kSe(e))}$f.isAnyArrayBuffer=OSt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty($f,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var oW=Te((udr,RSe)=>{RSe.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var hW=Te(Qf=>{var DSe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(u){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),fW(t)?r.showHidden=t:t&&Qf._extend(r,t),d2(r.showHidden)&&(r.showHidden=!1),d2(r.depth)&&(r.depth=2),d2(r.colors)&&(r.colors=!1),d2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=NSt),hD(r,e,r.depth)}Qf.inspect=z_;z_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};z_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function NSt(e,t){var r=z_.styles[t];return r?"\x1B["+z_.colors[r][0]+"m"+e+"\x1B["+z_.colors[r][1]+"m":e}function USt(e,t){return e}function VSt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function hD(e,t,r){if(e.customInspect&&t&&cD(t.inspect)&&t.inspect!==Qf.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return vD(n)||(n=hD(e,n,r)),n}var i=GSt(e,t);if(i)return i;var a=Object.keys(t),o=VSt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),KE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return sW(t);if(a.length===0){if(cD(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(YE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(dD(t))return e.stylize(Date.prototype.toString.call(t),"date");if(KE(t))return sW(t)}var u="",l=!1,f=["{","}"];if(BSe(t)&&(l=!0,f=["[","]"]),cD(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(YE(t)&&(u=" "+RegExp.prototype.toString.call(t)),dD(t)&&(u=" "+Date.prototype.toUTCString.call(t)),KE(t)&&(u=" "+sW(t)),a.length===0&&(!l||t.length==0))return f[0]+u+f[1];if(r<0)return YE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return l?h=HSt(e,t,r,o,a):h=a.map(function(d){return uW(e,t,r,o,d,l)}),e.seen.pop(),WSt(h,u,f)}function GSt(e,t){if(d2(t))return e.stylize("undefined","undefined");if(vD(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(OSe(t))return e.stylize(""+t,"number");if(fW(t))return e.stylize(""+t,"boolean");if(pD(t))return e.stylize("null","null")}function sW(e){return"["+Error.prototype.toString.call(e)+"]"}function HSt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(l){return" "+l}).join(` `).slice(2):s=` `+s.split(` `).map(function(l){return" "+l}).join(` -`))):s=e.stylize("[Circular]","special")),d2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function VSt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),d2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function WSt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` `)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}Qf.types=aW();function DSe(e){return Array.isArray(e)}Qf.isArray=DSe;function fW(e){return typeof e=="boolean"}Qf.isBoolean=fW;function pD(e){return e===null}Qf.isNull=pD;function GSt(e){return e==null}Qf.isNullOrUndefined=GSt;function FSe(e){return typeof e=="number"}Qf.isNumber=FSe;function vD(e){return typeof e=="string"}Qf.isString=vD;function HSt(e){return typeof e=="symbol"}Qf.isSymbol=HSt;function d2(e){return e===void 0}Qf.isUndefined=d2;function ZE(e){return sT(e)&&cW(e)==="[object RegExp]"}Qf.isRegExp=ZE;Qf.types.isRegExp=ZE;function sT(e){return typeof e=="object"&&e!==null}Qf.isObject=sT;function dD(e){return sT(e)&&cW(e)==="[object Date]"}Qf.isDate=dD;Qf.types.isDate=dD;function YE(e){return sT(e)&&(cW(e)==="[object Error]"||e instanceof Error)}Qf.isError=YE;Qf.types.isNativeError=YE;function cD(e){return typeof e=="function"}Qf.isFunction=cD;function WSt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}Qf.isPrimitive=WSt;Qf.isBuffer=oW();function cW(e){return Object.prototype.toString.call(e)}function lW(e){return e<10?"0"+e.toString(10):e.toString(10)}var jSt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function XSt(){var e=new Date,t=[lW(e.getHours()),lW(e.getMinutes()),lW(e.getSeconds())].join(":");return[e.getDate(),jSt[e.getMonth()],t].join(" ")}Qf.log=function(){console.log("%s - %s",XSt(),Qf.format.apply(Qf,arguments))};Qf.inherits=Ug();Qf._extend=function(e,t){if(!t||!sT(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function BSe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var h2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Qf.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(h2&&t[h2]){var r=t[h2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,h2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(u,l){n=u,i=l}),o=[],s=0;s{"use strict";function OSe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function KSt(e){for(var t=1;t0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return mD.alloc(0);for(var n=mD.allocUnsafe(r>>>0),i=this.head,a=0;i;)iMt(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=mD.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,s),r-=s,r===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:rMt,value:function(r,n){return dW(this,KSt({},n,{depth:0,customInspect:!1}))}}]),e}()});var vW=Te((fdr,GSe)=>{"use strict";function nMt(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(pW,this,e)):process.nextTick(pW,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(yD,r):(r._writableState.errorEmitted=!0,process.nextTick(VSe,r,a)):process.nextTick(VSe,r,a):t?(process.nextTick(yD,r),t(a)):process.nextTick(yD,r)}),this)}function VSe(e,t){pW(e,t),yD(e)}function yD(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function aMt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function pW(e,t){e.emit("error",t)}function oMt(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}GSe.exports={destroy:nMt,undestroy:aMt,errorOrDestroy:oMt}});var p2=Te((cdr,jSe)=>{"use strict";function sMt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var WSe={};function Y0(e,t,r){r||(r=Error);function n(a,o,s){return typeof t=="string"?t:t(a,o,s)}var i=function(a){sMt(o,a);function o(s,u,l){return a.call(this,n(s,u,l))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,WSe[e]=i}function HSe(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function lMt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function uMt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function fMt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Y0("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Y0("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&lMt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(uMt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(HSe(t,"type"));else{var a=fMt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(HSe(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Y0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Y0("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Y0("ERR_STREAM_PREMATURE_CLOSE","Premature close");Y0("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Y0("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Y0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Y0("ERR_STREAM_WRITE_AFTER_END","write after end");Y0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Y0("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Y0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");jSe.exports.codes=WSe});var mW=Te((hdr,XSe)=>{"use strict";var cMt=p2().codes.ERR_INVALID_OPT_VALUE;function hMt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function dMt(e,t,r,n){var i=hMt(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new cMt(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}XSe.exports={getHighWaterMark:dMt}});var YSe=Te((ddr,ZSe)=>{ZSe.exports=pMt;function pMt(e,t){if(yW("noDeprecation"))return e;var r=!1;function n(){if(!r){if(yW("throwDeprecation"))throw new Error(t);yW("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function yW(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var xW=Te((pdr,tMe)=>{"use strict";tMe.exports=qh;function JSe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){UMt(t,e)}}var lT;qh.WritableState=JE;var vMt={deprecate:YSe()},$Se=_H(),_D=u2().Buffer,mMt=window.Uint8Array||function(){};function yMt(e){return _D.from(e)}function gMt(e){return _D.isBuffer(e)||e instanceof mMt}var _W=vW(),_Mt=mW(),xMt=_Mt.getHighWaterMark,I_=p2().codes,bMt=I_.ERR_INVALID_ARG_TYPE,wMt=I_.ERR_METHOD_NOT_IMPLEMENTED,AMt=I_.ERR_MULTIPLE_CALLBACK,TMt=I_.ERR_STREAM_CANNOT_PIPE,SMt=I_.ERR_STREAM_DESTROYED,MMt=I_.ERR_STREAM_NULL_VALUES,EMt=I_.ERR_STREAM_WRITE_AFTER_END,kMt=I_.ERR_UNKNOWN_ENCODING,uT=_W.errorOrDestroy;Ug()(qh,$Se);function CMt(){}function JE(e,t,r){lT=lT||v2(),e=e||{},typeof r!="boolean"&&(r=t instanceof lT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=xMt(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){FMt(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new JSe(this)}JE.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(JE.prototype,"buffer",{get:vMt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var gD;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(gD=Function.prototype[Symbol.hasInstance],Object.defineProperty(qh,Symbol.hasInstance,{value:function(t){return gD.call(this,t)?!0:this!==qh?!1:t&&t._writableState instanceof JE}})):gD=function(t){return t instanceof this};function qh(e){lT=lT||v2();var t=this instanceof lT;if(!t&&!gD.call(qh,this))return new qh(e);this._writableState=new JE(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),$Se.call(this)}qh.prototype.pipe=function(){uT(this,new TMt)};function LMt(e,t){var r=new EMt;uT(e,r),process.nextTick(t,r)}function PMt(e,t,r,n){var i;return r===null?i=new MMt:typeof r!="string"&&!t.objectMode&&(i=new bMt("chunk",["string","Buffer"],r)),i?(uT(e,i),process.nextTick(n,i),!1):!0}qh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&gMt(e);return a&&!_D.isBuffer(e)&&(e=yMt(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=CMt),n.ending?LMt(this,r):(a||PMt(this,n,e,r))&&(n.pendingcb++,i=IMt(this,n,a,e,t,r)),i};qh.prototype.cork=function(){this._writableState.corked++};qh.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&QSe(this,e))};qh.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new kMt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(qh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function zMt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=_D.from(t,r)),t}Object.defineProperty(qh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function IMt(e,t,r,n,i,a){if(!r){var o=zMt(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length{"use strict";var VMt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};iMe.exports=Oy;var rMe=AW(),wW=xW();Ug()(Oy,rMe);for(bW=VMt(wW.prototype),xD=0;xD{var wD=u2(),qy=wD.Buffer;function nMe(e,t){for(var r in e)t[r]=e[r]}qy.from&&qy.alloc&&qy.allocUnsafe&&qy.allocUnsafeSlow?aMe.exports=wD:(nMe(wD,TW),TW.Buffer=m2);function m2(e,t,r){return qy(e,t,r)}m2.prototype=Object.create(qy.prototype);nMe(qy,m2);m2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return qy(e,t,r)};m2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=qy(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};m2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return qy(e)};m2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return wD.SlowBuffer(e)}});var EW=Te(lMe=>{"use strict";var MW=oMe().Buffer,sMe=MW.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function WMt(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function jMt(e){var t=WMt(e);if(typeof t!="string"&&(MW.isEncoding===sMe||!sMe(e)))throw new Error("Unknown encoding: "+e);return t||e}lMe.StringDecoder=$E;function $E(e){this.encoding=jMt(e);var t;switch(this.encoding){case"utf16le":this.text=$Mt,this.end=QMt,t=4;break;case"utf8":this.fillLast=YMt,t=4;break;case"base64":this.text=e5t,this.end=t5t,t=3;break;default:this.write=r5t,this.end=i5t;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=MW.allocUnsafe(t)}$E.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function XMt(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function ZMt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function YMt(e){var t=this.lastTotal-this.lastNeed,r=ZMt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function KMt(e,t){var r=XMt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function JMt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function $Mt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function QMt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function e5t(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function t5t(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function r5t(e){return e.toString(this.encoding)}function i5t(e){return e&&e.length?this.write(e):""}});var AD=Te((ydr,cMe)=>{"use strict";var uMe=p2().codes.ERR_STREAM_PREMATURE_CLOSE;function n5t(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";var TD;function R_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s5t=AD(),D_=Symbol("lastResolve"),y2=Symbol("lastReject"),QE=Symbol("error"),SD=Symbol("ended"),g2=Symbol("lastPromise"),kW=Symbol("handlePromise"),_2=Symbol("stream");function F_(e,t){return{value:e,done:t}}function l5t(e){var t=e[D_];if(t!==null){var r=e[_2].read();r!==null&&(e[g2]=null,e[D_]=null,e[y2]=null,t(F_(r,!1)))}}function u5t(e){process.nextTick(l5t,e)}function f5t(e,t){return function(r,n){e.then(function(){if(t[SD]){r(F_(void 0,!0));return}t[kW](r,n)},n)}}var c5t=Object.getPrototypeOf(function(){}),h5t=Object.setPrototypeOf((TD={get stream(){return this[_2]},next:function(){var t=this,r=this[QE];if(r!==null)return Promise.reject(r);if(this[SD])return Promise.resolve(F_(void 0,!0));if(this[_2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[QE]?s(t[QE]):o(F_(void 0,!0))})});var n=this[g2],i;if(n)i=new Promise(f5t(n,this));else{var a=this[_2].read();if(a!==null)return Promise.resolve(F_(a,!1));i=new Promise(this[kW])}return this[g2]=i,i}},R_(TD,Symbol.asyncIterator,function(){return this}),R_(TD,"return",function(){var t=this;return new Promise(function(r,n){t[_2].destroy(null,function(i){if(i){n(i);return}r(F_(void 0,!0))})})}),TD),c5t),d5t=function(t){var r,n=Object.create(h5t,(r={},R_(r,_2,{value:t,writable:!0}),R_(r,D_,{value:null,writable:!0}),R_(r,y2,{value:null,writable:!0}),R_(r,QE,{value:null,writable:!0}),R_(r,SD,{value:t._readableState.endEmitted,writable:!0}),R_(r,kW,{value:function(a,o){var s=n[_2].read();s?(n[g2]=null,n[D_]=null,n[y2]=null,a(F_(s,!1))):(n[D_]=a,n[y2]=o)},writable:!0}),r));return n[g2]=null,s5t(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[y2];a!==null&&(n[g2]=null,n[D_]=null,n[y2]=null,a(i)),n[QE]=i;return}var o=n[D_];o!==null&&(n[g2]=null,n[D_]=null,n[y2]=null,o(F_(void 0,!0))),n[SD]=!0}),t.on("readable",u5t.bind(null,n)),n};hMe.exports=d5t});var vMe=Te((_dr,pMe)=>{pMe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var AW=Te((bdr,SMe)=>{"use strict";SMe.exports=hc;var fT;hc.ReadableState=_Me;var xdr=pb().EventEmitter,gMe=function(t,r){return t.listeners(r).length},t4=_H(),MD=u2().Buffer,p5t=window.Uint8Array||function(){};function v5t(e){return MD.from(e)}function m5t(e){return MD.isBuffer(e)||e instanceof p5t}var CW=hW(),Yf;CW&&CW.debuglog?Yf=CW.debuglog("stream"):Yf=function(){};var y5t=USe(),FW=vW(),g5t=mW(),_5t=g5t.getHighWaterMark,ED=p2().codes,x5t=ED.ERR_INVALID_ARG_TYPE,b5t=ED.ERR_STREAM_PUSH_AFTER_EOF,w5t=ED.ERR_METHOD_NOT_IMPLEMENTED,A5t=ED.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,cT,LW,PW;Ug()(hc,t4);var e4=FW.errorOrDestroy,zW=["error","close","destroy","pause","resume"];function T5t(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function _Me(e,t,r){fT=fT||v2(),e=e||{},typeof r!="boolean"&&(r=t instanceof fT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=_5t(this,e,"readableHighWaterMark",r),this.buffer=new y5t,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(cT||(cT=EW().StringDecoder),this.decoder=new cT(e.encoding),this.encoding=e.encoding)}function hc(e){if(fT=fT||v2(),!(this instanceof hc))return new hc(e);var t=this instanceof fT;this._readableState=new _Me(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),t4.call(this)}Object.defineProperty(hc.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});hc.prototype.destroy=FW.destroy;hc.prototype._undestroy=FW.undestroy;hc.prototype._destroy=function(e,t){t(e)};hc.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=MD.from(e,t),t=""),n=!0),xMe(this,e,t,!1,n)};hc.prototype.unshift=function(e){return xMe(this,e,null,!0,!1)};function xMe(e,t,r,n,i){Yf("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,E5t(e,a);else{var o;if(i||(o=S5t(a,t)),o)e4(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==MD.prototype&&(t=v5t(t)),n)a.endEmitted?e4(e,new A5t):IW(e,a,t,!0);else if(a.ended)e4(e,new b5t);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?IW(e,a,t,!1):DW(e,a)):IW(e,a,t,!1)}else n||(a.reading=!1,DW(e,a))}return!a.ended&&(a.length=mMe?e=mMe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function yMe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=M5t(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}hc.prototype.read=function(e){Yf("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return Yf("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?RW(this):kD(this),null;if(e=yMe(e,t),e===0&&t.ended)return t.length===0&&RW(this),null;var n=t.needReadable;Yf("need readable",n),(t.length===0||t.length-e0?i=AMe(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&RW(this)),i!==null&&this.emit("data",i),i};function E5t(e,t){if(Yf("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?kD(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,bMe(e)))}}function kD(e){var t=e._readableState;Yf("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(Yf("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(bMe,e))}function bMe(e){var t=e._readableState;Yf("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,BW(e)}function DW(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(k5t,e,t))}function k5t(e,t){for(;!t.reading&&!t.ended&&(t.length1&&TMe(n.pipes,e)!==-1)&&!l&&(Yf("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){Yf("onerror",b),x(),e.removeListener("error",h),gMe(e,"error")===0&&e4(e,b)}T5t(e,"error",h);function d(){e.removeListener("finish",p),x()}e.once("close",d);function p(){Yf("onfinish"),e.removeListener("close",d),x()}e.once("finish",p);function x(){Yf("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(Yf("pipe resume"),r.resume()),e};function C5t(e){return function(){var r=e._readableState;Yf("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&gMe(e,"data")&&(r.flowing=!0,BW(e))}}hc.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Yf("on readable",n.length,n.reading),n.length?kD(this):n.reading||process.nextTick(L5t,this)),r};hc.prototype.addListener=hc.prototype.on;hc.prototype.removeListener=function(e,t){var r=t4.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(wMe,this),r};hc.prototype.removeAllListeners=function(e){var t=t4.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(wMe,this),t};function wMe(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L5t(e){Yf("readable nexttick read 0"),e.read(0)}hc.prototype.resume=function(){var e=this._readableState;return e.flowing||(Yf("resume"),e.flowing=!e.readableListening,P5t(this,e)),e.paused=!1,this};function P5t(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(z5t,e,t))}function z5t(e,t){Yf("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),BW(e),t.flowing&&!t.reading&&e.read(0)}hc.prototype.pause=function(){return Yf("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Yf("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function BW(e){var t=e._readableState;for(Yf("flow",t.flowing);t.flowing&&e.read()!==null;);}hc.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(Yf("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Yf("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(s){return function(){return e[s].apply(e,arguments)}}(i));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function RW(e){var t=e._readableState;Yf("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(I5t,t,e))}function I5t(e,t){if(Yf("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(hc.from=function(e,t){return PW===void 0&&(PW=vMe()),PW(hc,e,t)});function TMe(e,t){for(var r=0,n=e.length;r{"use strict";EMe.exports=Gg;var CD=p2().codes,R5t=CD.ERR_METHOD_NOT_IMPLEMENTED,D5t=CD.ERR_MULTIPLE_CALLBACK,F5t=CD.ERR_TRANSFORM_ALREADY_TRANSFORMING,B5t=CD.ERR_TRANSFORM_WITH_LENGTH_0,LD=v2();Ug()(Gg,LD);function O5t(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new D5t);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";CMe.exports=r4;var kMe=OW();Ug()(r4,kMe);function r4(e){if(!(this instanceof r4))return new r4(e);kMe.call(this,e)}r4.prototype._transform=function(e,t,r){r(null,e)}});var DMe=Te((Tdr,RMe)=>{"use strict";var qW;function N5t(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var IMe=p2().codes,U5t=IMe.ERR_MISSING_ARGS,V5t=IMe.ERR_STREAM_DESTROYED;function PMe(e){if(e)throw e}function G5t(e){return e.setHeader&&typeof e.abort=="function"}function H5t(e,t,r,n){n=N5t(n);var i=!1;e.on("close",function(){i=!0}),qW===void 0&&(qW=AD()),qW(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,G5t(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new V5t("pipe"))}}}function zMe(e){e()}function W5t(e,t){return e.pipe(t)}function j5t(e){return!e.length||typeof e[e.length-1]!="function"?PMe:e.pop()}function X5t(){for(var e=arguments.length,t=new Array(e),r=0;r0;return H5t(o,u,l,function(f){i||(i=f),f&&a.forEach(zMe),!u&&(a.forEach(zMe),n(i))})});return t.reduce(W5t)}RMe.exports=X5t});var BMe=Te((Sdr,FMe)=>{FMe.exports=K0;var NW=pb().EventEmitter,Z5t=Ug();Z5t(K0,NW);K0.Readable=AW();K0.Writable=xW();K0.Duplex=v2();K0.Transform=OW();K0.PassThrough=LMe();K0.finished=AD();K0.pipeline=DMe();K0.Stream=K0;function K0(){NW.call(this)}K0.prototype.pipe=function(e,t){var r=this;function n(f){e.writable&&e.write(f)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function u(f){if(l(),NW.listenerCount(this,"error")===0)throw f}r.on("error",u),e.on("error",u);function l(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}});var dT=Te(ec=>{var OMe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(u){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),HW(t)?r.showHidden=t:t&&ec._extend(r,t),b2(r.showHidden)&&(r.showHidden=!1),b2(r.depth)&&(r.depth=2),b2(r.colors)&&(r.colors=!1),b2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=K5t),RD(r,e,r.depth)}ec.inspect=B_;B_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};B_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function K5t(e,t){var r=B_.styles[t];return r?"\x1B["+B_.colors[r][0]+"m"+e+"\x1B["+B_.colors[r][1]+"m":e}function J5t(e,t){return e}function $5t(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function RD(e,t,r){if(e.customInspect&&t&&ID(t.inspect)&&t.inspect!==ec.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return BD(n)||(n=RD(e,n,r)),n}var i=Q5t(e,t);if(i)return i;var a=Object.keys(t),o=$5t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),n4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return UW(t);if(a.length===0){if(ID(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(i4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(DD(t))return e.stylize(Date.prototype.toString.call(t),"date");if(n4(t))return UW(t)}var u="",l=!1,f=["{","}"];if(NMe(t)&&(l=!0,f=["[","]"]),ID(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(i4(t)&&(u=" "+RegExp.prototype.toString.call(t)),DD(t)&&(u=" "+Date.prototype.toUTCString.call(t)),n4(t)&&(u=" "+UW(t)),a.length===0&&(!l||t.length==0))return f[0]+u+f[1];if(r<0)return i4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return l?h=eEt(e,t,r,o,a):h=a.map(function(d){return GW(e,t,r,o,d,l)}),e.seen.pop(),tEt(h,u,f)}function Q5t(e,t){if(b2(t))return e.stylize("undefined","undefined");if(BD(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(UMe(t))return e.stylize(""+t,"number");if(HW(t))return e.stylize(""+t,"boolean");if(FD(t))return e.stylize("null","null")}function UW(e){return"["+Error.prototype.toString.call(e)+"]"}function eEt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o{"use strict";function NSe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function QSt(e){for(var t=1;t0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return mD.alloc(0);for(var n=mD.allocUnsafe(r>>>0),i=this.head,a=0;i;)oMt(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=mD.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,s),r-=s,r===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:aMt,value:function(r,n){return dW(this,QSt({},n,{depth:0,customInspect:!1}))}}]),e}()});var vW=Te((hdr,WSe)=>{"use strict";function sMt(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(pW,this,e)):process.nextTick(pW,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(yD,r):(r._writableState.errorEmitted=!0,process.nextTick(HSe,r,a)):process.nextTick(HSe,r,a):t?(process.nextTick(yD,r),t(a)):process.nextTick(yD,r)}),this)}function HSe(e,t){pW(e,t),yD(e)}function yD(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function lMt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function pW(e,t){e.emit("error",t)}function uMt(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}WSe.exports={destroy:sMt,undestroy:lMt,errorOrDestroy:uMt}});var p2=Te((ddr,ZSe)=>{"use strict";function fMt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var XSe={};function K0(e,t,r){r||(r=Error);function n(a,o,s){return typeof t=="string"?t:t(a,o,s)}var i=function(a){fMt(o,a);function o(s,u,l){return a.call(this,n(s,u,l))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,XSe[e]=i}function jSe(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function cMt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function hMt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function dMt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}K0("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);K0("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&cMt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(hMt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(jSe(t,"type"));else{var a=dMt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(jSe(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);K0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");K0("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});K0("ERR_STREAM_PREMATURE_CLOSE","Premature close");K0("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});K0("ERR_MULTIPLE_CALLBACK","Callback called multiple times");K0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");K0("ERR_STREAM_WRITE_AFTER_END","write after end");K0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);K0("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);K0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ZSe.exports.codes=XSe});var mW=Te((pdr,YSe)=>{"use strict";var pMt=p2().codes.ERR_INVALID_OPT_VALUE;function vMt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function mMt(e,t,r,n){var i=vMt(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new pMt(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}YSe.exports={getHighWaterMark:mMt}});var JSe=Te((vdr,KSe)=>{KSe.exports=yMt;function yMt(e,t){if(yW("noDeprecation"))return e;var r=!1;function n(){if(!r){if(yW("throwDeprecation"))throw new Error(t);yW("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function yW(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var xW=Te((mdr,iMe)=>{"use strict";iMe.exports=qh;function QSe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){HMt(t,e)}}var uT;qh.WritableState=$E;var gMt={deprecate:JSe()},eMe=_H(),_D=u2().Buffer,_Mt=window.Uint8Array||function(){};function xMt(e){return _D.from(e)}function bMt(e){return _D.isBuffer(e)||e instanceof _Mt}var _W=vW(),wMt=mW(),AMt=wMt.getHighWaterMark,I_=p2().codes,TMt=I_.ERR_INVALID_ARG_TYPE,SMt=I_.ERR_METHOD_NOT_IMPLEMENTED,MMt=I_.ERR_MULTIPLE_CALLBACK,EMt=I_.ERR_STREAM_CANNOT_PIPE,kMt=I_.ERR_STREAM_DESTROYED,CMt=I_.ERR_STREAM_NULL_VALUES,LMt=I_.ERR_STREAM_WRITE_AFTER_END,PMt=I_.ERR_UNKNOWN_ENCODING,fT=_W.errorOrDestroy;Ug()(qh,eMe);function zMt(){}function $E(e,t,r){uT=uT||v2(),e=e||{},typeof r!="boolean"&&(r=t instanceof uT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=AMt(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){qMt(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new QSe(this)}$E.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty($E.prototype,"buffer",{get:gMt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var gD;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(gD=Function.prototype[Symbol.hasInstance],Object.defineProperty(qh,Symbol.hasInstance,{value:function(t){return gD.call(this,t)?!0:this!==qh?!1:t&&t._writableState instanceof $E}})):gD=function(t){return t instanceof this};function qh(e){uT=uT||v2();var t=this instanceof uT;if(!t&&!gD.call(qh,this))return new qh(e);this._writableState=new $E(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),eMe.call(this)}qh.prototype.pipe=function(){fT(this,new EMt)};function IMt(e,t){var r=new LMt;fT(e,r),process.nextTick(t,r)}function RMt(e,t,r,n){var i;return r===null?i=new CMt:typeof r!="string"&&!t.objectMode&&(i=new TMt("chunk",["string","Buffer"],r)),i?(fT(e,i),process.nextTick(n,i),!1):!0}qh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&bMt(e);return a&&!_D.isBuffer(e)&&(e=xMt(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=zMt),n.ending?IMt(this,r):(a||RMt(this,n,e,r))&&(n.pendingcb++,i=FMt(this,n,a,e,t,r)),i};qh.prototype.cork=function(){this._writableState.corked++};qh.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&tMe(this,e))};qh.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new PMt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(qh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function DMt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=_D.from(t,r)),t}Object.defineProperty(qh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function FMt(e,t,r,n,i,a){if(!r){var o=DMt(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length{"use strict";var WMt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};aMe.exports=Oy;var nMe=AW(),wW=xW();Ug()(Oy,nMe);for(bW=WMt(wW.prototype),xD=0;xD{var wD=u2(),qy=wD.Buffer;function oMe(e,t){for(var r in e)t[r]=e[r]}qy.from&&qy.alloc&&qy.allocUnsafe&&qy.allocUnsafeSlow?sMe.exports=wD:(oMe(wD,TW),TW.Buffer=m2);function m2(e,t,r){return qy(e,t,r)}m2.prototype=Object.create(qy.prototype);oMe(qy,m2);m2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return qy(e,t,r)};m2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=qy(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};m2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return qy(e)};m2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return wD.SlowBuffer(e)}});var EW=Te(fMe=>{"use strict";var MW=lMe().Buffer,uMe=MW.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ZMt(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function YMt(e){var t=ZMt(e);if(typeof t!="string"&&(MW.isEncoding===uMe||!uMe(e)))throw new Error("Unknown encoding: "+e);return t||e}fMe.StringDecoder=QE;function QE(e){this.encoding=YMt(e);var t;switch(this.encoding){case"utf16le":this.text=t5t,this.end=r5t,t=4;break;case"utf8":this.fillLast=$Mt,t=4;break;case"base64":this.text=i5t,this.end=n5t,t=3;break;default:this.write=a5t,this.end=o5t;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=MW.allocUnsafe(t)}QE.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function KMt(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function JMt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function $Mt(e){var t=this.lastTotal-this.lastNeed,r=JMt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function QMt(e,t){var r=KMt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function e5t(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function t5t(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function r5t(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function i5t(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function n5t(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function a5t(e){return e.toString(this.encoding)}function o5t(e){return e&&e.length?this.write(e):""}});var AD=Te((_dr,dMe)=>{"use strict";var cMe=p2().codes.ERR_STREAM_PREMATURE_CLOSE;function s5t(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";var TD;function R_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f5t=AD(),D_=Symbol("lastResolve"),y2=Symbol("lastReject"),e4=Symbol("error"),SD=Symbol("ended"),g2=Symbol("lastPromise"),kW=Symbol("handlePromise"),_2=Symbol("stream");function F_(e,t){return{value:e,done:t}}function c5t(e){var t=e[D_];if(t!==null){var r=e[_2].read();r!==null&&(e[g2]=null,e[D_]=null,e[y2]=null,t(F_(r,!1)))}}function h5t(e){process.nextTick(c5t,e)}function d5t(e,t){return function(r,n){e.then(function(){if(t[SD]){r(F_(void 0,!0));return}t[kW](r,n)},n)}}var p5t=Object.getPrototypeOf(function(){}),v5t=Object.setPrototypeOf((TD={get stream(){return this[_2]},next:function(){var t=this,r=this[e4];if(r!==null)return Promise.reject(r);if(this[SD])return Promise.resolve(F_(void 0,!0));if(this[_2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[e4]?s(t[e4]):o(F_(void 0,!0))})});var n=this[g2],i;if(n)i=new Promise(d5t(n,this));else{var a=this[_2].read();if(a!==null)return Promise.resolve(F_(a,!1));i=new Promise(this[kW])}return this[g2]=i,i}},R_(TD,Symbol.asyncIterator,function(){return this}),R_(TD,"return",function(){var t=this;return new Promise(function(r,n){t[_2].destroy(null,function(i){if(i){n(i);return}r(F_(void 0,!0))})})}),TD),p5t),m5t=function(t){var r,n=Object.create(v5t,(r={},R_(r,_2,{value:t,writable:!0}),R_(r,D_,{value:null,writable:!0}),R_(r,y2,{value:null,writable:!0}),R_(r,e4,{value:null,writable:!0}),R_(r,SD,{value:t._readableState.endEmitted,writable:!0}),R_(r,kW,{value:function(a,o){var s=n[_2].read();s?(n[g2]=null,n[D_]=null,n[y2]=null,a(F_(s,!1))):(n[D_]=a,n[y2]=o)},writable:!0}),r));return n[g2]=null,f5t(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[y2];a!==null&&(n[g2]=null,n[D_]=null,n[y2]=null,a(i)),n[e4]=i;return}var o=n[D_];o!==null&&(n[g2]=null,n[D_]=null,n[y2]=null,o(F_(void 0,!0))),n[SD]=!0}),t.on("readable",h5t.bind(null,n)),n};pMe.exports=m5t});var yMe=Te((bdr,mMe)=>{mMe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var AW=Te((Adr,EMe)=>{"use strict";EMe.exports=hc;var cT;hc.ReadableState=bMe;var wdr=pb().EventEmitter,xMe=function(t,r){return t.listeners(r).length},r4=_H(),MD=u2().Buffer,y5t=window.Uint8Array||function(){};function g5t(e){return MD.from(e)}function _5t(e){return MD.isBuffer(e)||e instanceof y5t}var CW=hW(),Yf;CW&&CW.debuglog?Yf=CW.debuglog("stream"):Yf=function(){};var x5t=GSe(),FW=vW(),b5t=mW(),w5t=b5t.getHighWaterMark,ED=p2().codes,A5t=ED.ERR_INVALID_ARG_TYPE,T5t=ED.ERR_STREAM_PUSH_AFTER_EOF,S5t=ED.ERR_METHOD_NOT_IMPLEMENTED,M5t=ED.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,hT,LW,PW;Ug()(hc,r4);var t4=FW.errorOrDestroy,zW=["error","close","destroy","pause","resume"];function E5t(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function bMe(e,t,r){cT=cT||v2(),e=e||{},typeof r!="boolean"&&(r=t instanceof cT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=w5t(this,e,"readableHighWaterMark",r),this.buffer=new x5t,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(hT||(hT=EW().StringDecoder),this.decoder=new hT(e.encoding),this.encoding=e.encoding)}function hc(e){if(cT=cT||v2(),!(this instanceof hc))return new hc(e);var t=this instanceof cT;this._readableState=new bMe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),r4.call(this)}Object.defineProperty(hc.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});hc.prototype.destroy=FW.destroy;hc.prototype._undestroy=FW.undestroy;hc.prototype._destroy=function(e,t){t(e)};hc.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=MD.from(e,t),t=""),n=!0),wMe(this,e,t,!1,n)};hc.prototype.unshift=function(e){return wMe(this,e,null,!0,!1)};function wMe(e,t,r,n,i){Yf("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,L5t(e,a);else{var o;if(i||(o=k5t(a,t)),o)t4(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==MD.prototype&&(t=g5t(t)),n)a.endEmitted?t4(e,new M5t):IW(e,a,t,!0);else if(a.ended)t4(e,new T5t);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?IW(e,a,t,!1):DW(e,a)):IW(e,a,t,!1)}else n||(a.reading=!1,DW(e,a))}return!a.ended&&(a.length=gMe?e=gMe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function _Me(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=C5t(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}hc.prototype.read=function(e){Yf("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return Yf("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?RW(this):kD(this),null;if(e=_Me(e,t),e===0&&t.ended)return t.length===0&&RW(this),null;var n=t.needReadable;Yf("need readable",n),(t.length===0||t.length-e0?i=SMe(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&RW(this)),i!==null&&this.emit("data",i),i};function L5t(e,t){if(Yf("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?kD(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,AMe(e)))}}function kD(e){var t=e._readableState;Yf("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(Yf("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(AMe,e))}function AMe(e){var t=e._readableState;Yf("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,BW(e)}function DW(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(P5t,e,t))}function P5t(e,t){for(;!t.reading&&!t.ended&&(t.length1&&MMe(n.pipes,e)!==-1)&&!l&&(Yf("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){Yf("onerror",b),_(),e.removeListener("error",h),xMe(e,"error")===0&&t4(e,b)}E5t(e,"error",h);function d(){e.removeListener("finish",p),_()}e.once("close",d);function p(){Yf("onfinish"),e.removeListener("close",d),_()}e.once("finish",p);function _(){Yf("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(Yf("pipe resume"),r.resume()),e};function z5t(e){return function(){var r=e._readableState;Yf("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&xMe(e,"data")&&(r.flowing=!0,BW(e))}}hc.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Yf("on readable",n.length,n.reading),n.length?kD(this):n.reading||process.nextTick(I5t,this)),r};hc.prototype.addListener=hc.prototype.on;hc.prototype.removeListener=function(e,t){var r=r4.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(TMe,this),r};hc.prototype.removeAllListeners=function(e){var t=r4.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(TMe,this),t};function TMe(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I5t(e){Yf("readable nexttick read 0"),e.read(0)}hc.prototype.resume=function(){var e=this._readableState;return e.flowing||(Yf("resume"),e.flowing=!e.readableListening,R5t(this,e)),e.paused=!1,this};function R5t(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(D5t,e,t))}function D5t(e,t){Yf("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),BW(e),t.flowing&&!t.reading&&e.read(0)}hc.prototype.pause=function(){return Yf("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Yf("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function BW(e){var t=e._readableState;for(Yf("flow",t.flowing);t.flowing&&e.read()!==null;);}hc.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(Yf("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Yf("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(s){return function(){return e[s].apply(e,arguments)}}(i));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function RW(e){var t=e._readableState;Yf("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(F5t,t,e))}function F5t(e,t){if(Yf("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(hc.from=function(e,t){return PW===void 0&&(PW=yMe()),PW(hc,e,t)});function MMe(e,t){for(var r=0,n=e.length;r{"use strict";CMe.exports=Gg;var CD=p2().codes,B5t=CD.ERR_METHOD_NOT_IMPLEMENTED,O5t=CD.ERR_MULTIPLE_CALLBACK,q5t=CD.ERR_TRANSFORM_ALREADY_TRANSFORMING,N5t=CD.ERR_TRANSFORM_WITH_LENGTH_0,LD=v2();Ug()(Gg,LD);function U5t(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new O5t);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";PMe.exports=i4;var LMe=OW();Ug()(i4,LMe);function i4(e){if(!(this instanceof i4))return new i4(e);LMe.call(this,e)}i4.prototype._transform=function(e,t,r){r(null,e)}});var BMe=Te((Mdr,FMe)=>{"use strict";var qW;function G5t(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var DMe=p2().codes,H5t=DMe.ERR_MISSING_ARGS,W5t=DMe.ERR_STREAM_DESTROYED;function IMe(e){if(e)throw e}function j5t(e){return e.setHeader&&typeof e.abort=="function"}function X5t(e,t,r,n){n=G5t(n);var i=!1;e.on("close",function(){i=!0}),qW===void 0&&(qW=AD()),qW(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,j5t(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new W5t("pipe"))}}}function RMe(e){e()}function Z5t(e,t){return e.pipe(t)}function Y5t(e){return!e.length||typeof e[e.length-1]!="function"?IMe:e.pop()}function K5t(){for(var e=arguments.length,t=new Array(e),r=0;r0;return X5t(o,u,l,function(f){i||(i=f),f&&a.forEach(RMe),!u&&(a.forEach(RMe),n(i))})});return t.reduce(Z5t)}FMe.exports=K5t});var qMe=Te((Edr,OMe)=>{OMe.exports=J0;var NW=pb().EventEmitter,J5t=Ug();J5t(J0,NW);J0.Readable=AW();J0.Writable=xW();J0.Duplex=v2();J0.Transform=OW();J0.PassThrough=zMe();J0.finished=AD();J0.pipeline=BMe();J0.Stream=J0;function J0(){NW.call(this)}J0.prototype.pipe=function(e,t){var r=this;function n(f){e.writable&&e.write(f)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function u(f){if(l(),NW.listenerCount(this,"error")===0)throw f}r.on("error",u),e.on("error",u);function l(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}});var pT=Te(ec=>{var NMe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(u){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),HW(t)?r.showHidden=t:t&&ec._extend(r,t),b2(r.showHidden)&&(r.showHidden=!1),b2(r.depth)&&(r.depth=2),b2(r.colors)&&(r.colors=!1),b2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=Q5t),RD(r,e,r.depth)}ec.inspect=B_;B_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};B_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Q5t(e,t){var r=B_.styles[t];return r?"\x1B["+B_.colors[r][0]+"m"+e+"\x1B["+B_.colors[r][1]+"m":e}function eEt(e,t){return e}function tEt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function RD(e,t,r){if(e.customInspect&&t&&ID(t.inspect)&&t.inspect!==ec.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return BD(n)||(n=RD(e,n,r)),n}var i=rEt(e,t);if(i)return i;var a=Object.keys(t),o=tEt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),a4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return UW(t);if(a.length===0){if(ID(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(n4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(DD(t))return e.stylize(Date.prototype.toString.call(t),"date");if(a4(t))return UW(t)}var u="",l=!1,f=["{","}"];if(VMe(t)&&(l=!0,f=["[","]"]),ID(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(n4(t)&&(u=" "+RegExp.prototype.toString.call(t)),DD(t)&&(u=" "+Date.prototype.toUTCString.call(t)),a4(t)&&(u=" "+UW(t)),a.length===0&&(!l||t.length==0))return f[0]+u+f[1];if(r<0)return n4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return l?h=iEt(e,t,r,o,a):h=a.map(function(d){return GW(e,t,r,o,d,l)}),e.seen.pop(),nEt(h,u,f)}function rEt(e,t){if(b2(t))return e.stylize("undefined","undefined");if(BD(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(GMe(t))return e.stylize(""+t,"number");if(HW(t))return e.stylize(""+t,"boolean");if(FD(t))return e.stylize("null","null")}function UW(e){return"["+Error.prototype.toString.call(e)+"]"}function iEt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(l){return" "+l}).join(` `).slice(2):s=` `+s.split(` `).map(function(l){return" "+l}).join(` -`))):s=e.stylize("[Circular]","special")),b2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function tEt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),b2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function nEt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` `)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}ec.types=aW();function NMe(e){return Array.isArray(e)}ec.isArray=NMe;function HW(e){return typeof e=="boolean"}ec.isBoolean=HW;function FD(e){return e===null}ec.isNull=FD;function rEt(e){return e==null}ec.isNullOrUndefined=rEt;function UMe(e){return typeof e=="number"}ec.isNumber=UMe;function BD(e){return typeof e=="string"}ec.isString=BD;function iEt(e){return typeof e=="symbol"}ec.isSymbol=iEt;function b2(e){return e===void 0}ec.isUndefined=b2;function i4(e){return hT(e)&&WW(e)==="[object RegExp]"}ec.isRegExp=i4;ec.types.isRegExp=i4;function hT(e){return typeof e=="object"&&e!==null}ec.isObject=hT;function DD(e){return hT(e)&&WW(e)==="[object Date]"}ec.isDate=DD;ec.types.isDate=DD;function n4(e){return hT(e)&&(WW(e)==="[object Error]"||e instanceof Error)}ec.isError=n4;ec.types.isNativeError=n4;function ID(e){return typeof e=="function"}ec.isFunction=ID;function nEt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ec.isPrimitive=nEt;ec.isBuffer=oW();function WW(e){return Object.prototype.toString.call(e)}function VW(e){return e<10?"0"+e.toString(10):e.toString(10)}var aEt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function oEt(){var e=new Date,t=[VW(e.getHours()),VW(e.getMinutes()),VW(e.getSeconds())].join(":");return[e.getDate(),aEt[e.getMonth()],t].join(" ")}ec.log=function(){console.log("%s - %s",oEt(),ec.format.apply(ec,arguments))};ec.inherits=Ug();ec._extend=function(e,t){if(!t||!hT(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function VMe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var x2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ec.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(x2&&t[x2]){var r=t[x2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,x2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(u,l){n=u,i=l}),o=[],s=0;s{"use strict";function O_(e){"@babel/helpers - typeof";return O_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O_(e)}function GMe(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function gEt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function _Et(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function xEt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}a4("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);a4("ERR_INVALID_ARG_TYPE",function(e,t,r){pT===void 0&&(pT=o4()),pT(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&gEt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(_Et(e," argument"))i="The ".concat(e," ").concat(n," ").concat(HMe(t,"type"));else{var a=xEt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(HMe(t,"type"))}return i+=". Received type ".concat(O_(r)),i},TypeError);a4("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";jW===void 0&&(jW=dT());var n=jW.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);a4("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(O_(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);a4("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);jMe.exports.codes=WMe});var r5e=Te((kdr,t5e)=>{"use strict";function XMe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ZMe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function PEt(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var Hm="",s4="",l4="",Tp="",w2={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},zEt=10;function JMe(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function u4(e){return JW(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function IEt(e,t,r){var n="",i="",a=0,o="",s=!1,u=u4(e),l=u.split(` -`),f=u4(t).split(` -`),c=0,h="";if(r==="strictEqual"&&Iv(e)==="object"&&Iv(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),l.length===1&&f.length===1&&l[0]!==f[0]){var d=l[0].length+f[0].length;if(d<=zEt){if((Iv(e)!=="object"||e===null)&&(Iv(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(w2[r],` + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}ec.types=aW();function VMe(e){return Array.isArray(e)}ec.isArray=VMe;function HW(e){return typeof e=="boolean"}ec.isBoolean=HW;function FD(e){return e===null}ec.isNull=FD;function aEt(e){return e==null}ec.isNullOrUndefined=aEt;function GMe(e){return typeof e=="number"}ec.isNumber=GMe;function BD(e){return typeof e=="string"}ec.isString=BD;function oEt(e){return typeof e=="symbol"}ec.isSymbol=oEt;function b2(e){return e===void 0}ec.isUndefined=b2;function n4(e){return dT(e)&&WW(e)==="[object RegExp]"}ec.isRegExp=n4;ec.types.isRegExp=n4;function dT(e){return typeof e=="object"&&e!==null}ec.isObject=dT;function DD(e){return dT(e)&&WW(e)==="[object Date]"}ec.isDate=DD;ec.types.isDate=DD;function a4(e){return dT(e)&&(WW(e)==="[object Error]"||e instanceof Error)}ec.isError=a4;ec.types.isNativeError=a4;function ID(e){return typeof e=="function"}ec.isFunction=ID;function sEt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ec.isPrimitive=sEt;ec.isBuffer=oW();function WW(e){return Object.prototype.toString.call(e)}function VW(e){return e<10?"0"+e.toString(10):e.toString(10)}var lEt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function uEt(){var e=new Date,t=[VW(e.getHours()),VW(e.getMinutes()),VW(e.getSeconds())].join(":");return[e.getDate(),lEt[e.getMonth()],t].join(" ")}ec.log=function(){console.log("%s - %s",uEt(),ec.format.apply(ec,arguments))};ec.inherits=Ug();ec._extend=function(e,t){if(!t||!dT(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function HMe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var x2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ec.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(x2&&t[x2]){var r=t[x2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,x2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(u,l){n=u,i=l}),o=[],s=0;s{"use strict";function O_(e){"@babel/helpers - typeof";return O_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O_(e)}function WMe(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function bEt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function wEt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function AEt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}o4("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);o4("ERR_INVALID_ARG_TYPE",function(e,t,r){vT===void 0&&(vT=s4()),vT(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&bEt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(wEt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(jMe(t,"type"));else{var a=AEt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(jMe(t,"type"))}return i+=". Received type ".concat(O_(r)),i},TypeError);o4("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";jW===void 0&&(jW=pT());var n=jW.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);o4("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(O_(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);o4("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);ZMe.exports.codes=XMe});var n5e=Te((Ldr,i5e)=>{"use strict";function YMe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function KMe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function REt(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var Hm="",l4="",u4="",Tp="",w2={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},DEt=10;function QMe(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function f4(e){return JW(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function FEt(e,t,r){var n="",i="",a=0,o="",s=!1,u=f4(e),l=u.split(` +`),f=f4(t).split(` +`),c=0,h="";if(r==="strictEqual"&&Iv(e)==="object"&&Iv(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),l.length===1&&f.length===1&&l[0]!==f[0]){var d=l[0].length+f[0].length;if(d<=DEt){if((Iv(e)!=="object"||e===null)&&(Iv(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(w2[r],` `)+"".concat(l[0]," !== ").concat(f[0],` `)}else if(r!=="strictEqualObject"){var p=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(h=` - `.concat(PEt(" ",c),"^"),c=0)}}}for(var x=l[l.length-1],b=f[f.length-1];x===b&&(c++<2?o=` - `.concat(x).concat(o):n=x,l.pop(),f.pop(),!(l.length===0||f.length===0));)x=l[l.length-1],b=f[f.length-1];var v=Math.max(l.length,f.length);if(v===0){var k=u.split(` + `.concat(REt(" ",c),"^"),c=0)}}}for(var _=l[l.length-1],b=f[f.length-1];_===b&&(c++<2?o=` + `.concat(_).concat(o):n=_,l.pop(),f.pop(),!(l.length===0||f.length===0));)_=l[l.length-1],b=f[f.length-1];var v=Math.max(l.length,f.length);if(v===0){var k=u.split(` `);if(k.length>30)for(k[26]="".concat(Hm,"...").concat(Tp);k.length>27;)k.pop();return"".concat(w2.notIdentical,` `).concat(k.join(` @@ -52,53 +52,53 @@ `)}c>3&&(o=` `.concat(Hm,"...").concat(Tp).concat(o),s=!0),n!==""&&(o=` `.concat(n).concat(o),n="");var E=0,T=w2[r]+` -`.concat(s4,"+ actual").concat(Tp," ").concat(l4,"- expected").concat(Tp),L=" ".concat(Hm,"...").concat(Tp," Lines skipped");for(c=0;c1&&c>2&&(_>4?(i+=` -`.concat(Hm,"...").concat(Tp),s=!0):_>3&&(i+=` +`.concat(l4,"+ actual").concat(Tp," ").concat(u4,"- expected").concat(Tp),L=" ".concat(Hm,"...").concat(Tp," Lines skipped");for(c=0;c1&&c>2&&(x>4?(i+=` +`.concat(Hm,"...").concat(Tp),s=!0):x>3&&(i+=` `.concat(f[c-2]),E++),i+=` `.concat(f[c-1]),E++),a=c,n+=` -`.concat(l4,"-").concat(Tp," ").concat(f[c]),E++;else if(f.length1&&c>2&&(_>4?(i+=` -`.concat(Hm,"...").concat(Tp),s=!0):_>3&&(i+=` +`.concat(u4,"-").concat(Tp," ").concat(f[c]),E++;else if(f.length1&&c>2&&(x>4?(i+=` +`.concat(Hm,"...").concat(Tp),s=!0):x>3&&(i+=` `.concat(l[c-2]),E++),i+=` `.concat(l[c-1]),E++),a=c,i+=` -`.concat(s4,"+").concat(Tp," ").concat(l[c]),E++;else{var C=f[c],M=l[c],m=M!==C&&(!KMe(M,",")||M.slice(0,-1)!==C);m&&KMe(C,",")&&C.slice(0,-1)===M&&(m=!1,M+=","),m?(_>1&&c>2&&(_>4?(i+=` -`.concat(Hm,"...").concat(Tp),s=!0):_>3&&(i+=` +`.concat(l4,"+").concat(Tp," ").concat(l[c]),E++;else{var C=f[c],M=l[c],m=M!==C&&(!$Me(M,",")||M.slice(0,-1)!==C);m&&$Me(C,",")&&C.slice(0,-1)===M&&(m=!1,M+=","),m?(x>1&&c>2&&(x>4?(i+=` +`.concat(Hm,"...").concat(Tp),s=!0):x>3&&(i+=` `.concat(l[c-2]),E++),i+=` `.concat(l[c-1]),E++),a=c,i+=` -`.concat(s4,"+").concat(Tp," ").concat(M),n+=` -`.concat(l4,"-").concat(Tp," ").concat(C),E+=2):(i+=n,n="",(_===1||c===0)&&(i+=` +`.concat(l4,"+").concat(Tp," ").concat(M),n+=` +`.concat(u4,"-").concat(Tp," ").concat(C),E+=2):(i+=n,n="",(x===1||c===0)&&(i+=` `.concat(M),E++))}if(E>20&&c30)for(d[26]="".concat(Hm,"...").concat(Tp);d.length>27;)d.pop();d.length===1?a=r.call(this,"".concat(h," ").concat(d[0])):a=r.call(this,"".concat(h,` `).concat(d.join(` `),` -`))}else{var p=u4(l),x="",b=w2[s];s==="notDeepEqual"||s==="notEqual"?(p="".concat(w2[s],` +`))}else{var p=f4(l),_="",b=w2[s];s==="notDeepEqual"||s==="notEqual"?(p="".concat(w2[s],` -`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(x="".concat(u4(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),x.length>512&&(x="".concat(x.slice(0,509),"...")),s==="deepEqual"||s==="equal"?p="".concat(b,` +`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(_="".concat(f4(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),s==="deepEqual"||s==="equal"?p="".concat(b,` `).concat(p,` should equal -`):x=" ".concat(s," ").concat(x)),a=r.call(this,"".concat(p).concat(x))}return Error.stackTraceLimit=c,a.generatedMessage=!o,Object.defineProperty(YW(a),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),a.code="ERR_ASSERTION",a.actual=l,a.expected=f,a.operator=s,Error.captureStackTrace&&Error.captureStackTrace(YW(a),u),a.stack,a.name="AssertionError",QMe(a)}return AEt(n,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return JW(this,ZMe(ZMe({},o),{},{customInspect:!1,depth:0}))}}]),n}(KW(Error),JW.custom);t5e.exports=REt});var $W=Te((Cdr,n5e)=>{"use strict";var i5e=Object.prototype.toString;n5e.exports=function(t){var r=i5e.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&i5e.call(t.callee)==="[object Function]"),n}});var d5e=Te((Ldr,h5e)=>{"use strict";var c5e;Object.keys||(h4=Object.prototype.hasOwnProperty,QW=Object.prototype.toString,a5e=$W(),ej=Object.prototype.propertyIsEnumerable,o5e=!ej.call({toString:null},"toString"),s5e=ej.call(function(){},"prototype"),d4=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ND=function(e){var t=e.constructor;return t&&t.prototype===e},l5e={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},u5e=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!l5e["$"+e]&&h4.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{ND(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),f5e=function(e){if(typeof window=="undefined"||!u5e)return ND(e);try{return ND(e)}catch(t){return!1}},c5e=function(t){var r=t!==null&&typeof t=="object",n=QW.call(t)==="[object Function]",i=a5e(t),a=r&&QW.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=s5e&&n;if(a&&t.length>0&&!h4.call(t,0))for(var u=0;u0)for(var l=0;l{"use strict";var DEt=Array.prototype.slice,FEt=$W(),p5e=Object.keys,UD=p5e?function(t){return p5e(t)}:d5e(),v5e=Object.keys;UD.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return FEt(n)?v5e(DEt.call(n)):v5e(n)})}else Object.keys=UD;return Object.keys||UD};m5e.exports=UD});var w5e=Te((zdr,b5e)=>{"use strict";var BEt=tj(),_5e=VR()(),x5e=nT(),y5e=Object,OEt=x5e("Array.prototype.push"),g5e=x5e("Object.prototype.propertyIsEnumerable"),qEt=_5e?Object.getOwnPropertySymbols:null;b5e.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=y5e(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var rj=w5e(),NEt=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var S5e=function(e){return e!==e};M5e.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||S5e(t)&&S5e(r))}});var VD=Te((Ddr,E5e)=>{"use strict";var VEt=ij();E5e.exports=function(){return typeof Object.is=="function"?Object.is:VEt}});var p4=Te((Fdr,P5e)=>{"use strict";var GEt=tj(),HEt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",WEt=Object.prototype.toString,jEt=Array.prototype.concat,k5e=Object.defineProperty,XEt=function(e){return typeof e=="function"&&WEt.call(e)==="[object Function]"},ZEt=qH()(),C5e=k5e&&ZEt,YEt=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!XEt(n)||!n())return}C5e?k5e(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},L5e=function(e,t){var r=arguments.length>2?arguments[2]:{},n=GEt(t);HEt&&(n=jEt.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var KEt=VD(),JEt=p4();z5e.exports=function(){var t=KEt();return JEt(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var B5e=Te((Odr,F5e)=>{"use strict";var $Et=p4(),QEt=WE(),e4t=ij(),R5e=VD(),t4t=I5e(),D5e=QEt(R5e(),Object);$Et(D5e,{getPolyfill:R5e,implementation:e4t,shim:t4t});F5e.exports=D5e});var nj=Te((qdr,O5e)=>{"use strict";O5e.exports=function(t){return t!==t}});var aj=Te((Ndr,q5e)=>{"use strict";var r4t=nj();q5e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r4t}});var U5e=Te((Udr,N5e)=>{"use strict";var i4t=p4(),n4t=aj();N5e.exports=function(){var t=n4t();return i4t(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var W5e=Te((Vdr,H5e)=>{"use strict";var a4t=WE(),o4t=p4(),s4t=nj(),V5e=aj(),l4t=U5e(),G5e=a4t(V5e(),Number);o4t(G5e,{getPolyfill:V5e,implementation:s4t,shim:l4t});H5e.exports=G5e});var cEe=Te((Gdr,fEe)=>{"use strict";function j5e(e,t){return h4t(e)||c4t(e,t)||f4t(e,t)||u4t()}function u4t(){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 f4t(e,t){if(e){if(typeof e=="string")return X5e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return X5e(e,t)}}function X5e(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function WD(e){return Object.keys(e).filter(b4t).concat(XD(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function oEe(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i{"use strict";function Wm(e){"@babel/helpers - typeof";return Wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wm(e)}function hEe(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{"use strict";var a5e=Object.prototype.toString;o5e.exports=function(t){var r=a5e.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&a5e.call(t.callee)==="[object Function]"),n}});var v5e=Te((zdr,p5e)=>{"use strict";var d5e;Object.keys||(d4=Object.prototype.hasOwnProperty,QW=Object.prototype.toString,s5e=$W(),ej=Object.prototype.propertyIsEnumerable,l5e=!ej.call({toString:null},"toString"),u5e=ej.call(function(){},"prototype"),p4=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ND=function(e){var t=e.constructor;return t&&t.prototype===e},f5e={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c5e=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!f5e["$"+e]&&d4.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{ND(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),h5e=function(e){if(typeof window=="undefined"||!c5e)return ND(e);try{return ND(e)}catch(t){return!1}},d5e=function(t){var r=t!==null&&typeof t=="object",n=QW.call(t)==="[object Function]",i=s5e(t),a=r&&QW.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=u5e&&n;if(a&&t.length>0&&!d4.call(t,0))for(var u=0;u0)for(var l=0;l{"use strict";var OEt=Array.prototype.slice,qEt=$W(),m5e=Object.keys,UD=m5e?function(t){return m5e(t)}:v5e(),y5e=Object.keys;UD.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return qEt(n)?y5e(OEt.call(n)):y5e(n)})}else Object.keys=UD;return Object.keys||UD};g5e.exports=UD});var T5e=Te((Rdr,A5e)=>{"use strict";var NEt=tj(),b5e=VR()(),w5e=aT(),_5e=Object,UEt=w5e("Array.prototype.push"),x5e=w5e("Object.prototype.propertyIsEnumerable"),VEt=b5e?Object.getOwnPropertySymbols:null;A5e.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=_5e(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var rj=T5e(),GEt=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var E5e=function(e){return e!==e};k5e.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||E5e(t)&&E5e(r))}});var VD=Te((Bdr,C5e)=>{"use strict";var WEt=ij();C5e.exports=function(){return typeof Object.is=="function"?Object.is:WEt}});var v4=Te((Odr,I5e)=>{"use strict";var jEt=tj(),XEt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",ZEt=Object.prototype.toString,YEt=Array.prototype.concat,L5e=Object.defineProperty,KEt=function(e){return typeof e=="function"&&ZEt.call(e)==="[object Function]"},JEt=qH()(),P5e=L5e&&JEt,$Et=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!KEt(n)||!n())return}P5e?L5e(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},z5e=function(e,t){var r=arguments.length>2?arguments[2]:{},n=jEt(t);XEt&&(n=YEt.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var QEt=VD(),e4t=v4();R5e.exports=function(){var t=QEt();return e4t(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var q5e=Te((Ndr,O5e)=>{"use strict";var t4t=v4(),r4t=jE(),i4t=ij(),F5e=VD(),n4t=D5e(),B5e=r4t(F5e(),Object);t4t(B5e,{getPolyfill:F5e,implementation:i4t,shim:n4t});O5e.exports=B5e});var nj=Te((Udr,N5e)=>{"use strict";N5e.exports=function(t){return t!==t}});var aj=Te((Vdr,U5e)=>{"use strict";var a4t=nj();U5e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:a4t}});var G5e=Te((Gdr,V5e)=>{"use strict";var o4t=v4(),s4t=aj();V5e.exports=function(){var t=s4t();return o4t(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var X5e=Te((Hdr,j5e)=>{"use strict";var l4t=jE(),u4t=v4(),f4t=nj(),H5e=aj(),c4t=G5e(),W5e=l4t(H5e(),Number);u4t(W5e,{getPolyfill:H5e,implementation:f4t,shim:c4t});j5e.exports=W5e});var dEe=Te((Wdr,hEe)=>{"use strict";function Z5e(e,t){return v4t(e)||p4t(e,t)||d4t(e,t)||h4t()}function h4t(){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 d4t(e,t){if(e){if(typeof e=="string")return Y5e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Y5e(e,t)}}function Y5e(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function WD(e){return Object.keys(e).filter(T4t).concat(XD(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function lEe(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i{"use strict";function Wm(e){"@babel/helpers - typeof";return Wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wm(e)}function pEe(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{var _4=1e3,x4=_4*60,b4=x4*60,w4=b4*24,X4t=w4*365.25;LEe.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Z4t(e);if(r==="number"&&isNaN(e)===!1)return t.long?K4t(e):Y4t(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Z4t(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*X4t;case"days":case"day":case"d":return r*w4;case"hours":case"hour":case"hrs":case"hr":case"h":return r*b4;case"minutes":case"minute":case"mins":case"min":case"m":return r*x4;case"seconds":case"second":case"secs":case"sec":case"s":return r*_4;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Y4t(e){return e>=w4?Math.round(e/w4)+"d":e>=b4?Math.round(e/b4)+"h":e>=x4?Math.round(e/x4)+"m":e>=_4?Math.round(e/_4)+"s":e+"ms"}function K4t(e){return t6(e,w4,"day")||t6(e,b4,"hour")||t6(e,x4,"minute")||t6(e,_4,"second")||e+" ms"}function t6(e,t,r){if(!(e{Ic=zEe.exports=hj.debug=hj.default=hj;Ic.coerce=tkt;Ic.disable=Q4t;Ic.enable=$4t;Ic.enabled=ekt;Ic.humanize=PEe();Ic.names=[];Ic.skips=[];Ic.formatters={};var cj;function J4t(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return Ic.colors[Math.abs(t)%Ic.colors.length]}function hj(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(cj||n);r.diff=i,r.prev=cj,r.curr=n,cj=n;for(var a=new Array(arguments.length),o=0;o{sv=DEe.exports=IEe();sv.log=nkt;sv.formatArgs=ikt;sv.save=akt;sv.load=REe;sv.useColors=rkt;sv.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:okt();sv.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function rkt(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}sv.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function ikt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+sv.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}}function nkt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function akt(e){try{e==null?sv.storage.removeItem("debug"):sv.storage.debug=e}catch(t){}}function REe(){var e;try{e=sv.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}sv.enable(REe());function okt(){try{return window.localStorage}catch(e){}}});var HEe=Te((jdr,GEe)=>{var mT=o4(),V_=FEe()("stream-parser");GEe.exports=lkt;var OEe=-1,r6=0,skt=1,qEe=2;function lkt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");V_("extending Parser into stream"),e._bytes=ukt,e._skipBytes=fkt,t&&(e._passthrough=ckt),t?e._transform=dkt:e._write=hkt}function A4(e){V_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=OEe,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function ukt(e,t){mT(!this._parserCallback,'there is already a "callback" set!'),mT(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||A4(this),V_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=r6}function fkt(e,t){mT(!this._parserCallback,'there is already a "callback" set!'),mT(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||A4(this),V_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=skt}function ckt(e,t){mT(!this._parserCallback,'There is already a "callback" set!'),mT(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||A4(this),V_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=qEe}function hkt(e,t,r){this._parserInit||A4(this),V_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),UEe(this,e,null,r)}function dkt(e,t,r){this._parserInit||A4(this),V_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),UEe(this,e,t,r)}function NEe(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return BEe(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return BEe(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return NEe(e,t.slice(i.length),r,n)}})}}function BEe(e,t,r,n){if(e._parserBytesLeft-=t.length,V_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===r6?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===qEe&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===r6&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==r6&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=OEe,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(VEe(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var UEe=VEe(NEe);function VEe(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var xc=Te(Hg=>{"use strict";var WEe=BMe().Transform,pkt=HEe();function T4(){WEe.call(this,{readableObjectMode:!0})}T4.prototype=Object.create(WEe.prototype);T4.prototype.constructor=T4;pkt(T4.prototype);Hg.ParserStream=T4;Hg.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var yT=xc().readUInt16BE,pj=xc().readUInt32BE;function S4(e,t){if(e.length<4+t)return null;var r=pj(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=yT(e,6),o=8,s=0;sa.width||i.width===a.width&&i.height>a.height?i:a}),r=e.reduce(function(i,a){return i.height>a.height||i.height===a.height&&i.width>a.width?i:a}),n;return t.width>r.height||t.width===r.height&&t.height>r.width?n=t:n=r,n}n6.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(_kt(e,t),!!t.sizes.length){var r=xkt(t.sizes),n=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?n=s[n]:(n=s[n],n=o[n],n=o[n])),a.type==="irot")for(var u=0;u{"use strict";function a6(e,t){var r=new Error(e);return r.code=t,r}function bkt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function Wg(e,t,r){this.input=e.subarray(t,r),this.start=t;var n=String.fromCharCode.apply(null,this.input.subarray(0,4));if(n!=="II*\0"&&n!=="MM\0*")throw a6("invalid TIFF signature","EBADDATA");this.big_endian=n[0]==="M"}Wg.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};Wg.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw a6("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};Wg.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw a6("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};Wg.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};Wg.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};Wg.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};Wg.prototype.scan_ifd=function(e,t,r){var n=this.read_uint16(t);t+=2;for(var i=0;ithis.input.length)throw a6("unexpected EOF","EBADDATA");for(var h=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:a,offset:h[0]}),c=!0);var b={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:l,data_offset:f+this.start,value:h,is_subifd_link:c};if(r(b)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};vj.exports.ExifParser=Wg;vj.exports.get_orientation=function(e){var t=0;try{return new Wg(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var ZEe=Te((Kdr,XEe)=>{"use strict";var wkt=xc().str2arr,Akt=xc().sliceEq,Tkt=xc().readUInt32BE,s6=jEe(),Skt=o6(),Mkt=wkt("ftyp");XEe.exports=function(e){if(Akt(e,4,Mkt)){var t=s6.unbox(e,0);if(t){var r=s6.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=s6.unbox(e,i);if(!a)break;if(i=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){n=a.data;break}}if(n){var o=s6.readSizeFromMeta(n);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var u=Tkt(e,o.exif_location.offset),l=e.slice(o.exif_location.offset+u+4,o.exif_location.offset+o.exif_location.length),f=Skt.get_orientation(l);f>0&&(s.orientation=f)}return s}}}}}}});var JEe=Te((Jdr,KEe)=>{"use strict";var Ekt=xc().str2arr,kkt=xc().sliceEq,YEe=xc().readUInt16LE,Ckt=Ekt("BM");KEe.exports=function(e){if(!(e.length<26)&&kkt(e,0,Ckt))return{width:YEe(e,18),height:YEe(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var r4e=Te(($dr,t4e)=>{"use strict";var e4e=xc().str2arr,$Ee=xc().sliceEq,QEe=xc().readUInt16LE,Lkt=e4e("GIF87a"),Pkt=e4e("GIF89a");t4e.exports=function(e){if(!(e.length<10)&&!(!$Ee(e,0,Lkt)&&!$Ee(e,0,Pkt)))return{width:QEe(e,6),height:QEe(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var a4e=Te((Qdr,n4e)=>{"use strict";var mj=xc().readUInt16LE,zkt=0,Ikt=1,i4e=16;n4e.exports=function(e){var t=mj(e,0),r=mj(e,2),n=mj(e,4);if(!(t!==zkt||r!==Ikt||!n)){for(var i=[],a={width:0,height:0},o=0;oa.width||u>a.height)&&(a=l)}return{width:a.width,height:a.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var s4e=Te((epr,o4e)=>{"use strict";var yj=xc().readUInt16BE,Rkt=xc().str2arr,Dkt=xc().sliceEq,Fkt=o6(),Bkt=Rkt("Exif\0\0");o4e.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],n;r===255;)r=e[t++];if(208<=r&&r<=217||r===1)n=0;else if(192<=r&&r<=254){if(e.length-t<2)return;n=yj(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&Dkt(e,t,Bkt)&&(i=Fkt.get_orientation(e.slice(t+6,t+n))),n>=5&&192<=r&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=i),a}t+=n}}});var h4e=Te((tpr,c4e)=>{"use strict";var f4e=xc().str2arr,l4e=xc().sliceEq,u4e=xc().readUInt32BE,Okt=f4e(`\x89PNG\r +`));var s=new U_({actual:e,expected:t,message:r,operator:i,stackStartFn:n});throw s.generatedMessage=o,s}}eh.match=function e(t,r,n){CEe(t,r,n,e,"match")};eh.doesNotMatch=function e(t,r,n){CEe(t,r,n,e,"doesNotMatch")};function LEe(){for(var e=arguments.length,t=new Array(e),r=0;r{var x4=1e3,b4=x4*60,w4=b4*60,A4=w4*24,K4t=A4*365.25;zEe.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return J4t(e);if(r==="number"&&isNaN(e)===!1)return t.long?Q4t(e):$4t(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function J4t(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*K4t;case"days":case"day":case"d":return r*A4;case"hours":case"hour":case"hrs":case"hr":case"h":return r*w4;case"minutes":case"minute":case"mins":case"min":case"m":return r*b4;case"seconds":case"second":case"secs":case"sec":case"s":return r*x4;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function $4t(e){return e>=A4?Math.round(e/A4)+"d":e>=w4?Math.round(e/w4)+"h":e>=b4?Math.round(e/b4)+"m":e>=x4?Math.round(e/x4)+"s":e+"ms"}function Q4t(e){return t6(e,A4,"day")||t6(e,w4,"hour")||t6(e,b4,"minute")||t6(e,x4,"second")||e+" ms"}function t6(e,t,r){if(!(e{Ic=REe.exports=hj.debug=hj.default=hj;Ic.coerce=nkt;Ic.disable=rkt;Ic.enable=tkt;Ic.enabled=ikt;Ic.humanize=IEe();Ic.names=[];Ic.skips=[];Ic.formatters={};var cj;function ekt(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return Ic.colors[Math.abs(t)%Ic.colors.length]}function hj(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(cj||n);r.diff=i,r.prev=cj,r.curr=n,cj=n;for(var a=new Array(arguments.length),o=0;o{lv=BEe.exports=DEe();lv.log=skt;lv.formatArgs=okt;lv.save=lkt;lv.load=FEe;lv.useColors=akt;lv.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:ukt();lv.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function akt(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}lv.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function okt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+lv.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}}function skt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function lkt(e){try{e==null?lv.storage.removeItem("debug"):lv.storage.debug=e}catch(t){}}function FEe(){var e;try{e=lv.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}lv.enable(FEe());function ukt(){try{return window.localStorage}catch(e){}}});var jEe=Te((Zdr,WEe)=>{var yT=s4(),V_=OEe()("stream-parser");WEe.exports=ckt;var NEe=-1,r6=0,fkt=1,UEe=2;function ckt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");V_("extending Parser into stream"),e._bytes=hkt,e._skipBytes=dkt,t&&(e._passthrough=pkt),t?e._transform=mkt:e._write=vkt}function T4(e){V_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=NEe,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function hkt(e,t){yT(!this._parserCallback,'there is already a "callback" set!'),yT(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||T4(this),V_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=r6}function dkt(e,t){yT(!this._parserCallback,'there is already a "callback" set!'),yT(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||T4(this),V_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=fkt}function pkt(e,t){yT(!this._parserCallback,'There is already a "callback" set!'),yT(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||T4(this),V_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=UEe}function vkt(e,t,r){this._parserInit||T4(this),V_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),GEe(this,e,null,r)}function mkt(e,t,r){this._parserInit||T4(this),V_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),GEe(this,e,t,r)}function VEe(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return qEe(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return qEe(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return VEe(e,t.slice(i.length),r,n)}})}}function qEe(e,t,r,n){if(e._parserBytesLeft-=t.length,V_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===r6?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===UEe&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===r6&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==r6&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=NEe,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(HEe(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var GEe=HEe(VEe);function HEe(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var xc=Te(Hg=>{"use strict";var XEe=qMe().Transform,ykt=jEe();function S4(){XEe.call(this,{readableObjectMode:!0})}S4.prototype=Object.create(XEe.prototype);S4.prototype.constructor=S4;ykt(S4.prototype);Hg.ParserStream=S4;Hg.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var gT=xc().readUInt16BE,pj=xc().readUInt32BE;function M4(e,t){if(e.length<4+t)return null;var r=pj(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=gT(e,6),o=8,s=0;sa.width||i.width===a.width&&i.height>a.height?i:a}),r=e.reduce(function(i,a){return i.height>a.height||i.height===a.height&&i.width>a.width?i:a}),n;return t.width>r.height||t.width===r.height&&t.height>r.width?n=t:n=r,n}n6.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(wkt(e,t),!!t.sizes.length){var r=Akt(t.sizes),n=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?n=s[n]:(n=s[n],n=o[n],n=o[n])),a.type==="irot")for(var u=0;u{"use strict";function a6(e,t){var r=new Error(e);return r.code=t,r}function Tkt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function Wg(e,t,r){this.input=e.subarray(t,r),this.start=t;var n=String.fromCharCode.apply(null,this.input.subarray(0,4));if(n!=="II*\0"&&n!=="MM\0*")throw a6("invalid TIFF signature","EBADDATA");this.big_endian=n[0]==="M"}Wg.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};Wg.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw a6("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};Wg.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw a6("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};Wg.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};Wg.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};Wg.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};Wg.prototype.scan_ifd=function(e,t,r){var n=this.read_uint16(t);t+=2;for(var i=0;ithis.input.length)throw a6("unexpected EOF","EBADDATA");for(var h=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:a,offset:h[0]}),c=!0);var b={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:l,data_offset:f+this.start,value:h,is_subifd_link:c};if(r(b)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};vj.exports.ExifParser=Wg;vj.exports.get_orientation=function(e){var t=0;try{return new Wg(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var KEe=Te(($dr,YEe)=>{"use strict";var Skt=xc().str2arr,Mkt=xc().sliceEq,Ekt=xc().readUInt32BE,s6=ZEe(),kkt=o6(),Ckt=Skt("ftyp");YEe.exports=function(e){if(Mkt(e,4,Ckt)){var t=s6.unbox(e,0);if(t){var r=s6.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=s6.unbox(e,i);if(!a)break;if(i=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){n=a.data;break}}if(n){var o=s6.readSizeFromMeta(n);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var u=Ekt(e,o.exif_location.offset),l=e.slice(o.exif_location.offset+u+4,o.exif_location.offset+o.exif_location.length),f=kkt.get_orientation(l);f>0&&(s.orientation=f)}return s}}}}}}});var QEe=Te((Qdr,$Ee)=>{"use strict";var Lkt=xc().str2arr,Pkt=xc().sliceEq,JEe=xc().readUInt16LE,zkt=Lkt("BM");$Ee.exports=function(e){if(!(e.length<26)&&Pkt(e,0,zkt))return{width:JEe(e,18),height:JEe(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var n4e=Te((epr,i4e)=>{"use strict";var r4e=xc().str2arr,e4e=xc().sliceEq,t4e=xc().readUInt16LE,Ikt=r4e("GIF87a"),Rkt=r4e("GIF89a");i4e.exports=function(e){if(!(e.length<10)&&!(!e4e(e,0,Ikt)&&!e4e(e,0,Rkt)))return{width:t4e(e,6),height:t4e(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var s4e=Te((tpr,o4e)=>{"use strict";var mj=xc().readUInt16LE,Dkt=0,Fkt=1,a4e=16;o4e.exports=function(e){var t=mj(e,0),r=mj(e,2),n=mj(e,4);if(!(t!==Dkt||r!==Fkt||!n)){for(var i=[],a={width:0,height:0},o=0;oa.width||u>a.height)&&(a=l)}return{width:a.width,height:a.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var u4e=Te((rpr,l4e)=>{"use strict";var yj=xc().readUInt16BE,Bkt=xc().str2arr,Okt=xc().sliceEq,qkt=o6(),Nkt=Bkt("Exif\0\0");l4e.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],n;r===255;)r=e[t++];if(208<=r&&r<=217||r===1)n=0;else if(192<=r&&r<=254){if(e.length-t<2)return;n=yj(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&Okt(e,t,Nkt)&&(i=qkt.get_orientation(e.slice(t+6,t+n))),n>=5&&192<=r&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=i),a}t+=n}}});var p4e=Te((ipr,d4e)=>{"use strict";var h4e=xc().str2arr,f4e=xc().sliceEq,c4e=xc().readUInt32BE,Ukt=h4e(`\x89PNG\r  -`),qkt=f4e("IHDR");c4e.exports=function(e){if(!(e.length<24)&&l4e(e,0,Okt)&&l4e(e,12,qkt))return{width:u4e(e,16),height:u4e(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var v4e=Te((rpr,p4e)=>{"use strict";var Nkt=xc().str2arr,Ukt=xc().sliceEq,d4e=xc().readUInt32BE,Vkt=Nkt("8BPS\0");p4e.exports=function(e){if(!(e.length<22)&&Ukt(e,0,Vkt))return{width:d4e(e,18),height:d4e(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var g4e=Te((ipr,y4e)=>{"use strict";function Gkt(e){return e===32||e===9||e===13||e===10}function gT(e){return typeof e=="number"&&isFinite(e)&&e>0}function Hkt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,jkt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,Xkt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,Zkt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,Ykt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,m4e=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function Kkt(e){var t=e.match(Xkt),r=e.match(Zkt),n=e.match(Ykt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Ny(e){return m4e.test(e)?e.match(m4e)[0]:"px"}y4e.exports=function(e){if(Hkt(e)){for(var t="",r=0;r{"use strict";var b4e=xc().str2arr,_4e=xc().sliceEq,Jkt=xc().readUInt16LE,$kt=xc().readUInt16BE,Qkt=xc().readUInt32LE,eCt=xc().readUInt32BE,tCt=b4e("II*\0"),rCt=b4e("MM\0*");function l6(e,t,r){return r?$kt(e,t):Jkt(e,t)}function gj(e,t,r){return r?eCt(e,t):Qkt(e,t)}function x4e(e,t,r){var n=l6(e,t+2,r),i=gj(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?l6(e,t+8,r):gj(e,t+8,r)}w4e.exports=function(e){if(!(e.length<8)&&!(!_4e(e,0,tCt)&&!_4e(e,0,rCt))){var t=e[0]===77,r=gj(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=l6(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var M4e=xc().str2arr,T4e=xc().sliceEq,S4e=xc().readUInt16LE,_j=xc().readUInt32LE,iCt=o6(),nCt=M4e("RIFF"),aCt=M4e("WEBP");function oCt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:S4e(e,t+6)&16383,height:S4e(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function sCt(e,t){if(e[t]===47){var r=_j(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function lCt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<e.length)){for(;t+8=10?r=r||oCt(e,t+8):a==="VP8L"&&o>=9?r=r||sCt(e,t+8):a==="VP8X"&&o>=10?r=r||lCt(e,t+8):a==="EXIF"&&(n=iCt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return n>0&&(r.orientation=n),r}}}});var L4e=Te((opr,C4e)=>{"use strict";C4e.exports={avif:ZEe(),bmp:JEe(),gif:r4e(),ico:a4e(),jpeg:s4e(),png:h4e(),psd:v4e(),svg:g4e(),tiff:A4e(),webp:k4e()}});var P4e=Te((spr,bj)=>{"use strict";var xj=L4e();function uCt(e){for(var t=Object.keys(xj),r=0;r{"use strict";var fCt=P4e(),cCt=Lg().IMAGE_URL_PREFIX,hCt=u2().Buffer;z4e.getImageSize=function(e){var t=e.replace(cCt,""),r=new hCt(t,"base64");return fCt(r)}});var F4e=Te((upr,D4e)=>{"use strict";var R4e=ei(),dCt=WA(),pCt=ku(),u6=wu(),vCt=ei().maxRowLength,mCt=I4e().getImageSize;D4e.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=vCt(r.z);else if(r._hasSource){var a=mCt(r.source);n=a.height,i=a.width}var o=u6.getFromId(t,r.xaxis||"x"),s=u6.getFromId(t,r.yaxis||"y"),u=o.d2c(r.x0)-r.dx/2,l=s.d2c(r.y0)-r.dy/2,f,c=[u,u+i*r.dx],h=[l,l+n*r.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var xCt=Jl(),A2=ei(),B4e=A2.strTranslate,bCt=jv(),wCt=WA(),ACt=sG(),TCt=uR().STYLE;O4e.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&ACt();A2.makeTraceGroups(i,n,"im").each(function(u){var l=xCt.select(this),f=u[0],c=f.trace,h=(c.zsmooth==="fast"||c.zsmooth===!1&&s)&&!c._hasZ&&c._hasSource&&a.type==="linear"&&o.type==="linear";c._realImage=h;var d=f.z,p=f.x0,x=f.y0,b=f.w,v=f.h,k=c.dx,E=c.dy,T,L,_,C,M,m;for(m=0;T===void 0&&m0;)L=a.c2p(p+m*k),m--;for(m=0;C===void 0&&m0;)M=o.c2p(x+m*E),m--;if(LW[0];if(re||ae){var be=T+A/2,Pe=C+B/2;H+="transform:"+B4e(be+"px",Pe+"px")+"scale("+(re?-1:1)+","+(ae?-1:1)+")"+B4e(-be+"px",-Pe+"px")+";"}}j.attr("style",H);var Ce=new Promise(function(de){if(c._hasZ)de();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===b&&c._canvas.el.height===v&&c._canvas.source===c.source)de();else{var te=document.createElement("canvas");te.width=b,te.height=v;var ke=te.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var Ee=c._image;Ee.onload=function(){ke.drawImage(Ee,0,0),c._canvas={el:te,source:c.source},de()},Ee.setAttribute("src",c.source)}}).then(function(){var de,te;if(c._hasZ)te=G(function(Me,Ne){var Fe=d[Ne][Me];return A2.isTypedArray(Fe)&&(Fe=Array.from(Fe)),Fe}),de=te.toDataURL("image/png");else if(c._hasSource)if(h)de=c.source;else{var ke=c._canvas.el.getContext("2d",{willReadFrequently:!0}),Ee=ke.getImageData(0,0,b,v).data;te=G(function(Me,Ne){var Fe=4*(Ne*b+Me);return[Ee[Fe],Ee[Fe+1],Ee[Fe+2],Ee[Fe+3]]}),de=te.toDataURL("image/png")}j.attr({"xlink:href":de,height:B,width:A,x:T,y:C})});t._promises.push(Ce)})}});var U4e=Te((cpr,N4e)=>{"use strict";var SCt=Jl();N4e.exports=function(t){SCt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var W4e=Te((hpr,H4e)=>{"use strict";var V4e=Xc(),G4e=ei(),f6=G4e.isArrayOrTypedArray,MCt=WA();H4e.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(V4e.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||V4e.inbox(n-i.y0,n-(i.y0+i.h*a.dy),0)>0)){var u=Math.floor((r-i.x0)/a.dx),l=Math.floor(Math.abs(n-i.y0)/a.dy),f;if(a._hasZ?f=i.z[l][u]:a._hasSource&&(f=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(u,l,1,1).data),!!f){var c=i.hi||a.hoverinfo,h;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var p=MCt.colormodel[a.colormodel],x=p.colormodel||a.colormodel,b=x.length,v=a._scaler(f),k=p.suffix,E=[];(a.hovertemplate||h)&&(E.push("["+[v[0]+k[0],v[1]+k[1],v[2]+k[2]].join(", ")),b===4&&E.push(", "+v[3]+k[3]),E.push("]"),E=E.join(""),t.extraText=x.toUpperCase()+": "+E);var T;f6(a.hovertext)&&f6(a.hovertext[l])?T=a.hovertext[l][u]:f6(a.text)&&f6(a.text[l])&&(T=a.text[l][u]);var L=s.c2p(i.y0+(l+.5)*a.dy),_=i.x0+(u+.5)*a.dx,C=i.y0+(l+.5)*a.dy,M="["+f.slice(0,a.colormodel.length).join(", ")+"]";return[G4e.extendFlat(t,{index:[l,u],x0:o.c2p(i.x0+u*a.dx),x1:o.c2p(i.x0+(u+1)*a.dx),y0:L,y1:L,color:v,xVal:_,xLabelVal:_,yVal:C,yLabelVal:C,zLabelVal:M,text:T,hovertemplateLabels:{zLabel:M,colorLabel:E,"color[0]Label":v[0]+k[0],"color[1]Label":v[1]+k[1],"color[2]Label":v[2]+k[2],"color[3]Label":v[3]+k[3]}})]}}}});var X4e=Te((dpr,j4e)=>{"use strict";j4e.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var Y4e=Te((ppr,Z4e)=>{"use strict";Z4e.exports={attributes:yH(),supplyDefaults:W3e(),calc:F4e(),plot:q4e(),style:U4e(),hoverPoints:W4e(),eventData:X4e(),moduleType:"trace",name:"image",basePlotModule:Ah(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var J4e=Te((vpr,K4e)=>{"use strict";K4e.exports=Y4e()});var T2=Te((mpr,$4e)=>{"use strict";var ECt=Gf(),kCt=zc().attributes,CCt=gc(),LCt=Ih(),PCt=Nu().hovertemplateAttrs,zCt=Nu().texttemplateAttrs,M4=Su().extendFlat,ICt=Id().pattern,c6=CCt({editType:"plot",arrayOk:!0,colorEditType:"plot"});$4e.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:LCt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:ICt,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:M4({},ECt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:PCt({},{keys:["label","color","value","percent","text"]}),texttemplate:zCt({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:M4({},c6,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:M4({},c6,{}),outsidetextfont:M4({},c6,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:M4({},c6,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:kCt({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var S2=Te((ypr,tke)=>{"use strict";var RCt=ku(),E4=ei(),DCt=T2(),FCt=zc().defaults,BCt=r0().handleText,OCt=ei().coercePattern;function Q4e(e,t){var r=E4.isArrayOrTypedArray(e),n=E4.isArrayOrTypedArray(t),i=Math.min(r?e.length:1/0,n?t.length:1/0);if(isFinite(i)||(i=0),i&&n){for(var a,o=0;o0){a=!0;break}}a||(i=0)}return{hasLabels:r,hasValues:n,len:i}}function eke(e,t,r,n,i){var a=n("marker.line.width");a&&n("marker.line.color",i?void 0:r.paper_bgcolor);var o=n("marker.colors");OCt(n,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function qCt(e,t,r,n){function i(k,E){return E4.coerce(e,t,DCt,k,E)}var a=i("labels"),o=i("values"),s=Q4e(a,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,eke(e,t,n,i,!0),i("scalegroup");var l=i("text"),f=i("texttemplate"),c;if(f||(c=i("textinfo",E4.isArrayOrTypedArray(l)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),f||c&&c!=="none"){var h=i("textposition");BCt(e,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",p=d||h==="outside";p&&i("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&i("insidetextorientation")}else c==="none"&&i("textposition","none");FCt(t,n,i);var x=i("hole"),b=i("title.text");if(b){var v=i("title.position",x?"middle center":"top center");!x&&v==="middle center"&&(t.title.position="top center"),E4.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}tke.exports={handleLabelsAndValues:Q4e,handleMarkerDefaults:eke,supplyDefaults:qCt}});var h6=Te((gpr,rke)=>{"use strict";rke.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var nke=Te((_pr,ike)=>{"use strict";var NCt=ei(),UCt=h6();ike.exports=function(t,r){function n(i,a){return NCt.coerce(t,r,UCt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var _T=Te((xpr,ske)=>{"use strict";var VCt=ku(),wj=cd(),GCt=jl(),HCt={};function WCt(e,t){var r=[],n=e._fullLayout,i=n.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,u=t._length,l=t._hasValues&&u,f,c;if(t.dlabel)for(a=new Array(u),f=0;f=0});var T=t.type==="funnelarea"?x:t.sort;return T&&r.sort(function(L,_){return _.v-L.v}),r[0]&&(r[0].vTotal=p),r}function ake(e){return function(r,n){return!r||(r=wj(r),!r.isValid())?!1:(r=GCt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function jCt(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,i=e.calcdata,a=n[r+"colorway"],o=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=oke(a,HCt));for(var s=0,u=0;u{"use strict";var XCt=rv().appendArrayMultiPointValues;lke.exports=function(t,r){var n={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(n.pointNumber=n.i=t.pts[0]),XCt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var m6=Te((wpr,Lke)=>{"use strict";var Rv=Jl(),ZCt=Cc(),d6=Xc(),vke=jl(),jg=Mu(),np=ei(),YCt=np.strScale,fke=np.strTranslate,Aj=Xf(),mke=Ap(),KCt=mke.recordMinTextSize,JCt=mke.clearMinTextSize,yke=Qb().TEXTPAD,Yu=l_(),p6=uke(),cke=ei().isValidTextValue;function $Ct(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;JCt("pie",n),xke(t,e),Eke(t,i);var a=np.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Rv.select(this),u=o[0],l=u.trace;sLt(o),s.attr("stroke-linejoin","round"),s.each(function(){var f=Rv.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],h=!1;f.each(function(T,L){if(T.hidden){Rv.select(this).selectAll("path,g").remove();return}T.pointNumber=T.i,T.curveNumber=l.index,c[T.pxmid[1]<0?0:1][T.pxmid[0]<0?0:1].push(T);var _=u.cx,C=u.cy,M=Rv.select(this),m=M.selectAll("path.surface").data([T]);if(m.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),M.call(gke,e,o),l.pull){var P=+Yu.castOption(l.pull,T.pts)||0;P>0&&(_+=P*T.pxmid[0],C+=P*T.pxmid[1])}T.cxFinal=_,T.cyFinal=C;function A(N,W,re,ae){var be=ae*(W[0]-N[0]),Pe=ae*(W[1]-N[1]);return"a"+ae*u.r+","+ae*u.r+" 0 "+T.largeArc+(re?" 1 ":" 0 ")+be+","+Pe}var B=l.hole;if(T.v===u.vTotal){var F="M"+(_+T.px0[0])+","+(C+T.px0[1])+A(T.px0,T.pxmid,!0,1)+A(T.pxmid,T.px0,!0,1)+"Z";B?m.attr("d","M"+(_+B*T.px0[0])+","+(C+B*T.px0[1])+A(T.px0,T.pxmid,!1,B)+A(T.pxmid,T.px0,!1,B)+"Z"+F):m.attr("d",F)}else{var U=A(T.px0,T.px1,!0,1);if(B){var G=1-B;m.attr("d","M"+(_+B*T.px1[0])+","+(C+B*T.px1[1])+A(T.px1,T.px0,!1,B)+"l"+G*T.px0[0]+","+G*T.px0[1]+U+"Z")}else m.attr("d","M"+_+","+C+"l"+T.px0[0]+","+T.px0[1]+U+"Z")}kke(e,T,u);var j=Yu.castOption(l.textposition,T.pts),H=M.selectAll("g.slicetext").data(T.text&&j!=="none"?[0]:[]);H.enter().append("g").classed("slicetext",!0),H.exit().remove(),H.each(function(){var N=np.ensureSingle(Rv.select(this),"text","",function(te){te.attr("data-notex",1)}),W=np.ensureUniformFontSize(e,j==="outside"?eLt(l,T,n.font):_ke(l,T,n.font));N.text(T.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(jg.font,W).call(Aj.convertToTspans,e);var re=jg.bBox(N.node()),ae;if(j==="outside")ae=pke(re,T);else if(ae=bke(re,T,u),j==="auto"&&ae.scale<1){var be=np.ensureUniformFontSize(e,l.outsidetextfont);N.call(jg.font,be),re=jg.bBox(N.node()),ae=pke(re,T)}var Pe=ae.textPosAngle,Ce=Pe===void 0?T.pxmid:v6(u.r,Pe);if(ae.targetX=_+Ce[0]*ae.rCenter+(ae.x||0),ae.targetY=C+Ce[1]*ae.rCenter+(ae.y||0),Cke(ae,re),ae.outside){var de=ae.targetY;T.yLabelMin=de-re.height/2,T.yLabelMid=de,T.yLabelMax=de+re.height/2,T.labelExtraX=0,T.labelExtraY=0,h=!0}ae.fontSize=W.size,KCt(l.type,ae,n),o[L].transform=ae,np.setTransormAndDisplay(N,ae)})});var d=Rv.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var T=np.ensureSingle(Rv.select(this),"text","",function(C){C.attr("data-notex",1)}),L=l.title.text;l._meta&&(L=np.templateString(L,l._meta)),T.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(jg.font,l.title.font).call(Aj.convertToTspans,e);var _;l.title.position==="middle center"?_=iLt(u):_=Ske(u,i),T.attr("transform",fke(_.x,_.y)+YCt(Math.min(1,_.scale))+fke(_.tx,_.ty))}),h&&aLt(c,l),QCt(f,l),h&&l.automargin){var p=jg.bBox(s.node()),x=l.domain,b=i.w*(x.x[1]-x.x[0]),v=i.h*(x.y[1]-x.y[0]),k=(.5*b-u.r)/i.w,E=(.5*v-u.r)/i.h;ZCt.autoMargin(e,"pie."+l.uid+".automargin",{xl:x.x[0]-k,xr:x.x[1]+k,yb:x.y[0]-E,yt:x.y[1]+E,l:Math.max(u.cx-u.r-p.left,0),r:Math.max(p.right-(u.cx+u.r),0),b:Math.max(p.bottom-(u.cy+u.r),0),t:Math.max(u.cy-u.r-p.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Rv.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function QCt(e,t){e.each(function(r){var n=Rv.select(this);if(!r.labelExtraX&&!r.labelExtraY){n.select("path.textline").remove();return}var i=n.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,np.setTransormAndDisplay(i,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,u=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var l=r.labelExtraX*r.pxmid[1]/r.pxmid[0],f=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(l)>Math.abs(f)?s+="l"+f*r.pxmid[0]/r.pxmid[1]+","+f+"H"+(a+r.labelExtraX+u):s+="l"+r.labelExtraX+","+l+"v"+(f-l)+"h"+u}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+u;np.ensureSingle(n,"path","textline").call(vke.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function gke(e,t,r){var n=r[0],i=n.cx,a=n.cy,o=n.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(u){var l=t._fullLayout,f=t._fullData[o.index];if(!(t._dragging||l.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=d6.castHoverinfo({hoverinfo:[Yu.castOption(c,u.pts)],_module:o._module},l,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var h=u.rInscribed||0,d=i+u.pxmid[0]*(1-h),p=a+u.pxmid[1]*(1-h),x=l.separators,b=[];if(c&&c.indexOf("label")!==-1&&b.push(u.label),u.text=Yu.castOption(f.hovertext||f.text,u.pts),c&&c.indexOf("text")!==-1){var v=u.text;np.isValidTextValue(v)&&b.push(v)}u.value=u.v,u.valueLabel=Yu.formatPieValue(u.v,x),c&&c.indexOf("value")!==-1&&b.push(u.valueLabel),u.percent=u.v/n.vTotal,u.percentLabel=Yu.formatPiePercent(u.percent,x),c&&c.indexOf("percent")!==-1&&b.push(u.percentLabel);var k=f.hoverlabel,E=k.font,T=[];d6.loneHover({trace:o,x0:d-h*n.r,x1:d+h*n.r,y:p,_x0:s?i+u.TL[0]:d-h*n.r,_x1:s?i+u.TR[0]:d+h*n.r,_y0:s?a+u.TL[1]:p-h*n.r,_y1:s?a+u.BL[1]:p+h*n.r,text:b.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:u.pxmid[0]<0?"left":"right",color:Yu.castOption(k.bgcolor,u.pts)||u.color,borderColor:Yu.castOption(k.bordercolor,u.pts),fontFamily:Yu.castOption(E.family,u.pts),fontSize:Yu.castOption(E.size,u.pts),fontColor:Yu.castOption(E.color,u.pts),nameLength:Yu.castOption(k.namelength,u.pts),textAlign:Yu.castOption(k.align,u.pts),hovertemplate:Yu.castOption(f.hovertemplate,u.pts),hovertemplateLabels:u,eventData:[p6(u,f)]},{container:l._hoverlayer.node(),outerContainer:l._paper.node(),gd:t,inOut_bbox:T}),u.bbox=T[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[p6(u,f)],event:Rv.event})}}),e.on("mouseout",function(u){var l=t._fullLayout,f=t._fullData[o.index],c=Rv.select(this).datum();o._hasHoverEvent&&(u.originalEvent=Rv.event,t.emit("plotly_unhover",{points:[p6(c,f)],event:Rv.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(d6.loneUnhover(l._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(u){var l=t._fullLayout,f=t._fullData[o.index];t._dragging||l.hovermode===!1||(t._hoverdata=[p6(u,f)],d6.click(t,Rv.event))})}function eLt(e,t,r){var n=Yu.castOption(e.outsidetextfont.color,t.pts)||Yu.castOption(e.textfont.color,t.pts)||r.color,i=Yu.castOption(e.outsidetextfont.family,t.pts)||Yu.castOption(e.textfont.family,t.pts)||r.family,a=Yu.castOption(e.outsidetextfont.size,t.pts)||Yu.castOption(e.textfont.size,t.pts)||r.size,o=Yu.castOption(e.outsidetextfont.weight,t.pts)||Yu.castOption(e.textfont.weight,t.pts)||r.weight,s=Yu.castOption(e.outsidetextfont.style,t.pts)||Yu.castOption(e.textfont.style,t.pts)||r.style,u=Yu.castOption(e.outsidetextfont.variant,t.pts)||Yu.castOption(e.textfont.variant,t.pts)||r.variant,l=Yu.castOption(e.outsidetextfont.textcase,t.pts)||Yu.castOption(e.textfont.textcase,t.pts)||r.textcase,f=Yu.castOption(e.outsidetextfont.lineposition,t.pts)||Yu.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=Yu.castOption(e.outsidetextfont.shadow,t.pts)||Yu.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n,family:i,size:a,weight:o,style:s,variant:u,textcase:l,lineposition:f,shadow:c}}function _ke(e,t,r){var n=Yu.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=Yu.castOption(e._input.textfont.color,t.pts));var i=Yu.castOption(e.insidetextfont.family,t.pts)||Yu.castOption(e.textfont.family,t.pts)||r.family,a=Yu.castOption(e.insidetextfont.size,t.pts)||Yu.castOption(e.textfont.size,t.pts)||r.size,o=Yu.castOption(e.insidetextfont.weight,t.pts)||Yu.castOption(e.textfont.weight,t.pts)||r.weight,s=Yu.castOption(e.insidetextfont.style,t.pts)||Yu.castOption(e.textfont.style,t.pts)||r.style,u=Yu.castOption(e.insidetextfont.variant,t.pts)||Yu.castOption(e.textfont.variant,t.pts)||r.variant,l=Yu.castOption(e.insidetextfont.textcase,t.pts)||Yu.castOption(e.textfont.textcase,t.pts)||r.textcase,f=Yu.castOption(e.insidetextfont.lineposition,t.pts)||Yu.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=Yu.castOption(e.insidetextfont.shadow,t.pts)||Yu.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n||vke.contrast(t.color),family:i,size:a,weight:o,style:s,variant:u,textcase:l,lineposition:f,shadow:c}}function xke(e,t){for(var r,n,i=0;i=-4;k-=2)v(Math.PI*k,"tan");for(k=4;k>=-4;k-=2)v(Math.PI*(k+1),"tan")}if(c||d){for(k=4;k>=-4;k-=2)v(Math.PI*(k+1.5),"rad");for(k=4;k>=-4;k-=2)v(Math.PI*(k+.5),"rad")}}if(s||p||c){var E=Math.sqrt(e.width*e.width+e.height*e.height);if(b={scale:i*n*2/E,rCenter:1-i,rotate:0},b.textPosAngle=(t.startangle+t.stopangle)/2,b.scale>=1)return b;x.push(b)}(p||d)&&(b=hke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,x.push(b)),(p||h)&&(b=dke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,x.push(b));for(var T=0,L=0,_=0;_=1)break}return x[T]}function tLt(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function iLt(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function Ske(e,t){var r=1,n=1,i,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=Mke(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+i)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+i)*e.r);var u=nLt(e.r,e.trace.aspectratio),l=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(l=l+u,o.x-=(1+i)*u,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?l*=2:a.title.position.indexOf("right")!==-1&&(l=l+u,o.x+=(1+i)*u,s.tx-=e.titleBox.width/2),r=l/e.titleBox.width,n=Tj(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function nLt(e,t){return e/(t===void 0?1:t)}function Tj(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function Mke(e){var t=e.pull;if(!t)return 0;var r;if(np.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function aLt(e,t){var r,n,i,a,o,s,u,l,f,c,h,d,p;function x(E,T){return E.pxmid[1]-T.pxmid[1]}function b(E,T){return T.pxmid[1]-E.pxmid[1]}function v(E,T){T||(T={});var L=T.labelExtraY+(n?T.yLabelMax:T.yLabelMin),_=n?E.yLabelMin:E.yLabelMax,C=n?E.yLabelMax:E.yLabelMin,M=E.cyFinal+o(E.px0[1],E.px1[1]),m=L-_,P,A,B,F,U,G;if(m*u>0&&(E.labelExtraY=m),!!np.isArrayOrTypedArray(t.pull))for(A=0;A=(Yu.castOption(t.pull,B.pts)||0))&&((E.pxmid[1]-B.pxmid[1])*u>0?(F=B.cyFinal+o(B.px0[1],B.px1[1]),m=F-_-E.labelExtraY,m*u>0&&(E.labelExtraY+=m)):(C+E.labelExtraY-M)*u>0&&(P=3*s*Math.abs(A-c.indexOf(E)),U=B.cxFinal+a(B.px0[0],B.px1[0]),G=U+P-(E.cxFinal+E.pxmid[0])-E.labelExtraX,G*s>0&&(E.labelExtraX+=G)))}for(n=0;n<2;n++)for(i=n?x:b,o=n?Math.max:Math.min,u=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,l=e[n][r],l.sort(i),f=e[1-n][r],c=f.concat(l),d=[],h=0;h1?(l=r.r,f=l/i.aspectratio):(f=r.r,l=f*i.aspectratio),l*=(1+i.baseratio)/2,u=l*f}o=Math.min(o,u/r.vTotal)}for(n=0;nt.vTotal/2?1:0,l.halfangle=Math.PI*Math.min(l.v/t.vTotal,.5),l.ring=1-n.hole,l.rInscribed=rLt(l,t))}function v6(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function kke(e,t,r){var n=e._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),u=function(T){return s.indexOf(T)!==-1},l=u("label"),f=u("text"),c=u("value"),h=u("percent"),d=n.separators,p;if(p=l?[t.label]:[],f){var x=Yu.getFirstFilled(i.text,t.pts);cke(x)&&p.push(x)}c&&p.push(Yu.formatPieValue(t.v,d)),h&&p.push(Yu.formatPiePercent(t.v/r.vTotal,d)),t.text=p.join("
")}function b(T){return{label:T.label,value:T.v,valueLabel:Yu.formatPieValue(T.v,n.separators),percent:T.v/r.vTotal,percentLabel:Yu.formatPiePercent(T.v/r.vTotal,n.separators),color:T.color,text:T.text,customdata:np.castOption(i,T.i,"customdata")}}if(a){var v=np.castOption(i,t.i,"texttemplate");if(!v)t.text="";else{var k=b(t),E=Yu.getFirstFilled(i.text,t.pts);(cke(E)||E==="")&&(k.text=E),t.text=np.texttemplateString(v,k,e._fullLayout._d3locale,k,i._meta||{})}}}function Cke(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*n-o*i,e.textY=a*i+o*n,e.noCenter=!0}Lke.exports={plot:$Ct,formatSliceLabel:kke,transformInsideText:bke,determineInsideTextFont:_ke,positionTitleOutside:Ske,prerenderTitles:xke,layoutAreas:Eke,attachFxHandlers:gke,computeTransform:Cke}});var Ike=Te((Apr,zke)=>{"use strict";var Pke=Jl(),lLt=D3(),uLt=Ap().resizeText;zke.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");uLt(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=Pke.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Pke.select(this).call(lLt,s,a,t)})})}});var Dke=Te(xT=>{"use strict";var Rke=Cc();xT.name="pie";xT.plot=function(e,t,r,n){Rke.plotBasePlot(xT.name,e,t,r,n)};xT.clean=function(e,t,r,n){Rke.cleanBasePlot(xT.name,e,t,r,n)}});var Bke=Te((Spr,Fke)=>{"use strict";Fke.exports={attributes:T2(),supplyDefaults:S2().supplyDefaults,supplyLayoutDefaults:nke(),layoutAttributes:h6(),calc:_T().calc,crossTraceCalc:_T().crossTraceCalc,plot:m6().plot,style:Ike(),styleOne:D3(),moduleType:"trace",name:"pie",basePlotModule:Dke(),categories:["pie-like","pie","showLegend"],meta:{}}});var qke=Te((Mpr,Oke)=>{"use strict";Oke.exports=Bke()});var Uke=Te(bT=>{"use strict";var Nke=Cc();bT.name="sunburst";bT.plot=function(e,t,r,n){Nke.plotBasePlot(bT.name,e,t,r,n)};bT.clean=function(e,t,r,n){Nke.cleanBasePlot(bT.name,e,t,r,n)}});var Sj=Te((kpr,Vke)=>{"use strict";Vke.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var C4=Te((Cpr,Hke)=>{"use strict";var fLt=Gf(),cLt=Nu().hovertemplateAttrs,hLt=Nu().texttemplateAttrs,dLt=nc(),pLt=zc().attributes,Xg=T2(),Gke=Sj(),k4=Su().extendFlat,vLt=Id().pattern;Hke.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:k4({colors:{valType:"data_array",editType:"calc"},line:{color:k4({},Xg.marker.line.color,{dflt:null}),width:k4({},Xg.marker.line.width,{dflt:1}),editType:"calc"},pattern:vLt,editType:"calc"},dLt("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:Xg.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:hLt({editType:"plot"},{keys:Gke.eventDataKeys.concat(["label","value"])}),hovertext:Xg.hovertext,hoverinfo:k4({},fLt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:cLt({},{keys:Gke.eventDataKeys}),textfont:Xg.textfont,insidetextorientation:Xg.insidetextorientation,insidetextfont:Xg.insidetextfont,outsidetextfont:k4({},Xg.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:Xg.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:pLt({name:"sunburst",trace:!0,editType:"calc"})}});var Mj=Te((Lpr,Wke)=>{"use strict";Wke.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Yke=Te((Ppr,Zke)=>{"use strict";var jke=ei(),mLt=C4(),yLt=zc().defaults,gLt=r0().handleText,_Lt=S2().handleMarkerDefaults,Xke=_c(),xLt=Xke.hasColorscale,bLt=Xke.handleDefaults;Zke.exports=function(t,r,n,i){function a(h,d){return jke.coerce(t,r,mLt,h,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),_Lt(t,r,i,a);var l=r._hasColorscale=xLt(t,"marker","colors")||(t.marker||{}).coloraxis;l&&bLt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",l?1:.7);var f=a("text");a("texttemplate"),r.texttemplate||a("textinfo",jke.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate");var c="auto";gLt(t,r,i,a,c,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),yLt(r,i,a),r._length=null}});var Jke=Te((zpr,Kke)=>{"use strict";var wLt=ei(),ALt=Mj();Kke.exports=function(t,r){function n(i,a){return wLt.coerce(t,r,ALt,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var L4=Te((y6,$ke)=>{(function(e,t){typeof y6=="object"&&typeof $ke!="undefined"?t(y6):(e=e||self,t(e.d3=e.d3||{}))})(y6,function(e){"use strict";function t(Re,De){return Re.parent===De.parent?1:2}function r(Re){return Re.reduce(n,0)/Re.length}function n(Re,De){return Re+De.x}function i(Re){return 1+Re.reduce(a,0)}function a(Re,De){return Math.max(Re,De.y)}function o(Re){for(var De;De=Re.children;)Re=De[0];return Re}function s(Re){for(var De;De=Re.children;)Re=De[De.length-1];return Re}function u(){var Re=t,De=1,ct=1,ge=!1;function fe(pe){var dt,It=0;pe.eachAfter(function(Mr){var Fr=Mr.children;Fr?(Mr.x=r(Fr),Mr.y=i(Fr)):(Mr.x=dt?It+=Re(Mr,dt):0,Mr.y=0,dt=Mr)});var Pt=o(pe),rr=s(pe),Hr=Pt.x-Re(Pt,rr)/2,Dr=rr.x+Re(rr,Pt)/2;return pe.eachAfter(ge?function(Mr){Mr.x=(Mr.x-pe.x)*De,Mr.y=(pe.y-Mr.y)*ct}:function(Mr){Mr.x=(Mr.x-Hr)/(Dr-Hr)*De,Mr.y=(1-(pe.y?Mr.y/pe.y:1))*ct})}return fe.separation=function(pe){return arguments.length?(Re=pe,fe):Re},fe.size=function(pe){return arguments.length?(ge=!1,De=+pe[0],ct=+pe[1],fe):ge?null:[De,ct]},fe.nodeSize=function(pe){return arguments.length?(ge=!0,De=+pe[0],ct=+pe[1],fe):ge?[De,ct]:null},fe}function l(Re){var De=0,ct=Re.children,ge=ct&&ct.length;if(!ge)De=1;else for(;--ge>=0;)De+=ct[ge].value;Re.value=De}function f(){return this.eachAfter(l)}function c(Re){var De=this,ct,ge=[De],fe,pe,dt;do for(ct=ge.reverse(),ge=[];De=ct.pop();)if(Re(De),fe=De.children,fe)for(pe=0,dt=fe.length;pe=0;--fe)ct.push(ge[fe]);return this}function d(Re){for(var De=this,ct=[De],ge=[],fe,pe,dt;De=ct.pop();)if(ge.push(De),fe=De.children,fe)for(pe=0,dt=fe.length;pe=0;)ct+=ge[fe].value;De.value=ct})}function x(Re){return this.eachBefore(function(De){De.children&&De.children.sort(Re)})}function b(Re){for(var De=this,ct=v(De,Re),ge=[De];De!==ct;)De=De.parent,ge.push(De);for(var fe=ge.length;Re!==ct;)ge.splice(fe,0,Re),Re=Re.parent;return ge}function v(Re,De){if(Re===De)return Re;var ct=Re.ancestors(),ge=De.ancestors(),fe=null;for(Re=ct.pop(),De=ge.pop();Re===De;)fe=Re,Re=ct.pop(),De=ge.pop();return fe}function k(){for(var Re=this,De=[Re];Re=Re.parent;)De.push(Re);return De}function E(){var Re=[];return this.each(function(De){Re.push(De)}),Re}function T(){var Re=[];return this.eachBefore(function(De){De.children||Re.push(De)}),Re}function L(){var Re=this,De=[];return Re.each(function(ct){ct!==Re&&De.push({source:ct.parent,target:ct})}),De}function _(Re,De){var ct=new A(Re),ge=+Re.value&&(ct.value=Re.value),fe,pe=[ct],dt,It,Pt,rr;for(De==null&&(De=M);fe=pe.pop();)if(ge&&(fe.value=+fe.data.value),(It=De(fe.data))&&(rr=It.length))for(fe.children=new Array(rr),Pt=rr-1;Pt>=0;--Pt)pe.push(dt=fe.children[Pt]=new A(It[Pt])),dt.parent=fe,dt.depth=fe.depth+1;return ct.eachBefore(P)}function C(){return _(this).eachBefore(m)}function M(Re){return Re.children}function m(Re){Re.data=Re.data.data}function P(Re){var De=0;do Re.height=De;while((Re=Re.parent)&&Re.height<++De)}function A(Re){this.data=Re,this.depth=this.height=0,this.parent=null}A.prototype=_.prototype={constructor:A,count:f,each:c,eachAfter:d,eachBefore:h,sum:p,sort:x,path:b,ancestors:k,descendants:E,leaves:T,links:L,copy:C};var B=Array.prototype.slice;function F(Re){for(var De=Re.length,ct,ge;De;)ge=Math.random()*De--|0,ct=Re[De],Re[De]=Re[ge],Re[ge]=ct;return Re}function U(Re){for(var De=0,ct=(Re=F(B.call(Re))).length,ge=[],fe,pe;De0&&ct*ct>ge*ge+fe*fe}function N(Re,De){for(var ct=0;ctPt?(fe=(rr+Pt-pe)/(2*rr),It=Math.sqrt(Math.max(0,Pt/rr-fe*fe)),ct.x=Re.x-fe*ge-It*dt,ct.y=Re.y-fe*dt+It*ge):(fe=(rr+pe-Pt)/(2*rr),It=Math.sqrt(Math.max(0,pe/rr-fe*fe)),ct.x=De.x+fe*ge-It*dt,ct.y=De.y+fe*dt+It*ge)):(ct.x=De.x+ct.r,ct.y=De.y)}function Ce(Re,De){var ct=Re.r+De.r-1e-6,ge=De.x-Re.x,fe=De.y-Re.y;return ct>0&&ct*ct>ge*ge+fe*fe}function de(Re){var De=Re._,ct=Re.next._,ge=De.r+ct.r,fe=(De.x*ct.r+ct.x*De.r)/ge,pe=(De.y*ct.r+ct.y*De.r)/ge;return fe*fe+pe*pe}function te(Re){this._=Re,this.next=null,this.previous=null}function ke(Re){if(!(fe=Re.length))return 0;var De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr;if(De=Re[0],De.x=0,De.y=0,!(fe>1))return De.r;if(ct=Re[1],De.x=-ct.r,ct.x=De.r,ct.y=0,!(fe>2))return De.r+ct.r;Pe(ct,De,ge=Re[2]),De=new te(De),ct=new te(ct),ge=new te(ge),De.next=ge.previous=ct,ct.next=De.previous=ge,ge.next=ct.previous=De;e:for(It=3;It0)throw new Error("cycle");return It}return ct.id=function(ge){return arguments.length?(Re=Ne(ge),ct):Re},ct.parentId=function(ge){return arguments.length?(De=Ne(ge),ct):De},ct}function Ae(Re,De){return Re.parent===De.parent?1:2}function at(Re){var De=Re.children;return De?De[0]:Re.t}function wt(Re){var De=Re.children;return De?De[De.length-1]:Re.t}function vt(Re,De,ct){var ge=ct/(De.i-Re.i);De.c-=ge,De.s+=ct,Re.c+=ge,De.z+=ct,De.m+=ct}function st(Re){for(var De=0,ct=0,ge=Re.children,fe=ge.length,pe;--fe>=0;)pe=ge[fe],pe.z+=De,pe.m+=De,De+=pe.s+(ct+=pe.c)}function Ue(Re,De,ct){return Re.a.parent===De.parent?Re.a:ct}function rt(Re,De){this._=Re,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=De}rt.prototype=Object.create(A.prototype);function $e(Re){for(var De=new rt(Re,0),ct,ge=[De],fe,pe,dt,It;ct=ge.pop();)if(pe=ct._.children)for(ct.children=new Array(It=pe.length),dt=It-1;dt>=0;--dt)ge.push(fe=ct.children[dt]=new rt(pe[dt],dt)),fe.parent=ct;return(De.parent=new rt(null,0)).children=[De],De}function zt(){var Re=Ae,De=1,ct=1,ge=null;function fe(rr){var Hr=$e(rr);if(Hr.eachAfter(pe),Hr.parent.m=-Hr.z,Hr.eachBefore(dt),ge)rr.eachBefore(Pt);else{var Dr=rr,Mr=rr,Fr=rr;rr.eachBefore(function(nn){nn.xMr.x&&(Mr=nn),nn.depth>Fr.depth&&(Fr=nn)});var di=Dr===Mr?1:Re(Dr,Mr)/2,Di=di-Dr.x,Ii=De/(Mr.x+di+Di),Ci=ct/(Fr.depth||1);rr.eachBefore(function(nn){nn.x=(nn.x+Di)*Ii,nn.y=nn.depth*Ci})}return rr}function pe(rr){var Hr=rr.children,Dr=rr.parent.children,Mr=rr.i?Dr[rr.i-1]:null;if(Hr){st(rr);var Fr=(Hr[0].z+Hr[Hr.length-1].z)/2;Mr?(rr.z=Mr.z+Re(rr._,Mr._),rr.m=rr.z-Fr):rr.z=Fr}else Mr&&(rr.z=Mr.z+Re(rr._,Mr._));rr.parent.A=It(rr,Mr,rr.parent.A||Dr[0])}function dt(rr){rr._.x=rr.z+rr.parent.m,rr.m+=rr.parent.m}function It(rr,Hr,Dr){if(Hr){for(var Mr=rr,Fr=rr,di=Hr,Di=Mr.parent.children[0],Ii=Mr.m,Ci=Fr.m,nn=di.m,ii=Di.m,wi;di=wt(di),Mr=at(Mr),di&&Mr;)Di=at(Di),Fr=wt(Fr),Fr.a=rr,wi=di.z+nn-Mr.z-Ii+Re(di._,Mr._),wi>0&&(vt(Ue(di,rr,Dr),rr,wi),Ii+=wi,Ci+=wi),nn+=di.m,Ii+=Mr.m,ii+=Di.m,Ci+=Fr.m;di&&!wt(Fr)&&(Fr.t=di,Fr.m+=nn-Ci),Mr&&!at(Di)&&(Di.t=Mr,Di.m+=Ii-ii,Dr=rr)}return Dr}function Pt(rr){rr.x*=De,rr.y=rr.depth*ct}return fe.separation=function(rr){return arguments.length?(Re=rr,fe):Re},fe.size=function(rr){return arguments.length?(ge=!1,De=+rr[0],ct=+rr[1],fe):ge?null:[De,ct]},fe.nodeSize=function(rr){return arguments.length?(ge=!0,De=+rr[0],ct=+rr[1],fe):ge?[De,ct]:null},fe}function Yt(Re,De,ct,ge,fe){for(var pe=Re.children,dt,It=-1,Pt=pe.length,rr=Re.value&&(fe-ct)/Re.value;++Itnn&&(nn=rr),Bt=Ii*Ii*Gi,ii=Math.max(nn/Bt,Bt/Ci),ii>wi){Ii-=rr;break}wi=ii}dt.push(Pt={value:Ii,dice:Fr1?ge:1)},ct}(hr);function Ut(){var Re=br,De=!1,ct=1,ge=1,fe=[0],pe=Fe,dt=Fe,It=Fe,Pt=Fe,rr=Fe;function Hr(Mr){return Mr.x0=Mr.y0=0,Mr.x1=ct,Mr.y1=ge,Mr.eachBefore(Dr),fe=[0],De&&Mr.eachBefore(Nt),Mr}function Dr(Mr){var Fr=fe[Mr.depth],di=Mr.x0+Fr,Di=Mr.y0+Fr,Ii=Mr.x1-Fr,Ci=Mr.y1-Fr;Ii=Mr-1){var nn=pe[Dr];nn.x0=di,nn.y0=Di,nn.x1=Ii,nn.y1=Ci;return}for(var ii=rr[Dr],wi=Fr/2+ii,Gi=Dr+1,Bt=Mr-1;Gi>>1;rr[yt]Ci-Di){var _r=(di*Wt+Ii*Vt)/Fr;Hr(Dr,Gi,Vt,di,Di,_r,Ci),Hr(Gi,Mr,Wt,_r,Di,Ii,Ci)}else{var Lr=(Di*Wt+Ci*Vt)/Fr;Hr(Dr,Gi,Vt,di,Di,Ii,Lr),Hr(Gi,Mr,Wt,di,Lr,Ii,Ci)}}}function xe(Re,De,ct,ge,fe){(Re.depth&1?Yt:it)(Re,De,ct,ge,fe)}var Oe=function Re(De){function ct(ge,fe,pe,dt,It){if((Pt=ge._squarify)&&Pt.ratio===De)for(var Pt,rr,Hr,Dr,Mr=-1,Fr,di=Pt.length,Di=ge.value;++Mr1?ge:1)},ct}(hr);e.cluster=u,e.hierarchy=_,e.pack=ce,e.packEnclose=U,e.packSiblings=Ee,e.partition=Ke,e.stratify=Et,e.tree=zt,e.treemap=Ut,e.treemapBinary=Ie,e.treemapDice=it,e.treemapResquarify=Oe,e.treemapSlice=Yt,e.treemapSliceDice=xe,e.treemapSquarify=br,Object.defineProperty(e,"__esModule",{value:!0})})});var z4=Te(P4=>{"use strict";var Qke=L4(),TLt=ku(),wT=ei(),SLt=_c().makeColorScaleFuncFromTrace,MLt=_T().makePullColorFn,ELt=_T().generateExtendedColors,kLt=_c().calc,CLt=nf().ALMOST_EQUAL,LLt={},PLt={},zLt={};P4.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=wT.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,u=wT.isArrayOrTypedArray(s),l=[],f={},c={},h=function(H,N){f[H]?f[H].push(N):f[H]=[N],c[N]=1},d=function(H){return H||typeof H=="number"},p=function(H){return!u||TLt(s[H])&&s[H]>=0},x,b,v;i?(x=Math.min(n.length,o.length),b=function(H){return d(n[H])&&p(H)},v=function(H){return String(n[H])}):(x=Math.min(a.length,o.length),b=function(H){return d(a[H])&&p(H)},v=function(H){return String(a[H])}),u&&(x=Math.min(x,s.length));for(var k=0;k1){for(var M=wT.randstr(),m=0;m{"use strict";var Gkt=xc().str2arr,Hkt=xc().sliceEq,v4e=xc().readUInt32BE,Wkt=Gkt("8BPS\0");m4e.exports=function(e){if(!(e.length<22)&&Hkt(e,0,Wkt))return{width:v4e(e,18),height:v4e(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var x4e=Te((apr,_4e)=>{"use strict";function jkt(e){return e===32||e===9||e===13||e===10}function _T(e){return typeof e=="number"&&isFinite(e)&&e>0}function Xkt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,Ykt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,Kkt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,Jkt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,$kt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,g4e=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function Qkt(e){var t=e.match(Kkt),r=e.match(Jkt),n=e.match($kt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Ny(e){return g4e.test(e)?e.match(g4e)[0]:"px"}_4e.exports=function(e){if(Xkt(e)){for(var t="",r=0;r{"use strict";var A4e=xc().str2arr,b4e=xc().sliceEq,eCt=xc().readUInt16LE,tCt=xc().readUInt16BE,rCt=xc().readUInt32LE,iCt=xc().readUInt32BE,nCt=A4e("II*\0"),aCt=A4e("MM\0*");function l6(e,t,r){return r?tCt(e,t):eCt(e,t)}function gj(e,t,r){return r?iCt(e,t):rCt(e,t)}function w4e(e,t,r){var n=l6(e,t+2,r),i=gj(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?l6(e,t+8,r):gj(e,t+8,r)}T4e.exports=function(e){if(!(e.length<8)&&!(!b4e(e,0,nCt)&&!b4e(e,0,aCt))){var t=e[0]===77,r=gj(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=l6(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var k4e=xc().str2arr,M4e=xc().sliceEq,E4e=xc().readUInt16LE,_j=xc().readUInt32LE,oCt=o6(),sCt=k4e("RIFF"),lCt=k4e("WEBP");function uCt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:E4e(e,t+6)&16383,height:E4e(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function fCt(e,t){if(e[t]===47){var r=_j(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function cCt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<e.length)){for(;t+8=10?r=r||uCt(e,t+8):a==="VP8L"&&o>=9?r=r||fCt(e,t+8):a==="VP8X"&&o>=10?r=r||cCt(e,t+8):a==="EXIF"&&(n=oCt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return n>0&&(r.orientation=n),r}}}});var z4e=Te((lpr,P4e)=>{"use strict";P4e.exports={avif:KEe(),bmp:QEe(),gif:n4e(),ico:s4e(),jpeg:u4e(),png:p4e(),psd:y4e(),svg:x4e(),tiff:S4e(),webp:L4e()}});var I4e=Te((upr,bj)=>{"use strict";var xj=z4e();function hCt(e){for(var t=Object.keys(xj),r=0;r{"use strict";var dCt=I4e(),pCt=Lg().IMAGE_URL_PREFIX,vCt=u2().Buffer;R4e.getImageSize=function(e){var t=e.replace(pCt,""),r=new vCt(t,"base64");return dCt(r)}});var O4e=Te((cpr,B4e)=>{"use strict";var F4e=ei(),mCt=jA(),yCt=ku(),u6=wu(),gCt=ei().maxRowLength,_Ct=D4e().getImageSize;B4e.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=gCt(r.z);else if(r._hasSource){var a=_Ct(r.source);n=a.height,i=a.width}var o=u6.getFromId(t,r.xaxis||"x"),s=u6.getFromId(t,r.yaxis||"y"),u=o.d2c(r.x0)-r.dx/2,l=s.d2c(r.y0)-r.dy/2,f,c=[u,u+i*r.dx],h=[l,l+n*r.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var ACt=Jl(),A2=ei(),q4e=A2.strTranslate,TCt=jv(),SCt=jA(),MCt=sG(),ECt=uR().STYLE;N4e.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&MCt();A2.makeTraceGroups(i,n,"im").each(function(u){var l=ACt.select(this),f=u[0],c=f.trace,h=(c.zsmooth==="fast"||c.zsmooth===!1&&s)&&!c._hasZ&&c._hasSource&&a.type==="linear"&&o.type==="linear";c._realImage=h;var d=f.z,p=f.x0,_=f.y0,b=f.w,v=f.h,k=c.dx,E=c.dy,T,L,x,C,M,m;for(m=0;T===void 0&&m0;)L=a.c2p(p+m*k),m--;for(m=0;C===void 0&&m0;)M=o.c2p(_+m*E),m--;if(LW[0];if(re||ae){var be=T+A/2,Pe=C+B/2;H+="transform:"+q4e(be+"px",Pe+"px")+"scale("+(re?-1:1)+","+(ae?-1:1)+")"+q4e(-be+"px",-Pe+"px")+";"}}j.attr("style",H);var Ce=new Promise(function(de){if(c._hasZ)de();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===b&&c._canvas.el.height===v&&c._canvas.source===c.source)de();else{var te=document.createElement("canvas");te.width=b,te.height=v;var ke=te.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var Ee=c._image;Ee.onload=function(){ke.drawImage(Ee,0,0),c._canvas={el:te,source:c.source},de()},Ee.setAttribute("src",c.source)}}).then(function(){var de,te;if(c._hasZ)te=G(function(Me,Ne){var Fe=d[Ne][Me];return A2.isTypedArray(Fe)&&(Fe=Array.from(Fe)),Fe}),de=te.toDataURL("image/png");else if(c._hasSource)if(h)de=c.source;else{var ke=c._canvas.el.getContext("2d",{willReadFrequently:!0}),Ee=ke.getImageData(0,0,b,v).data;te=G(function(Me,Ne){var Fe=4*(Ne*b+Me);return[Ee[Fe],Ee[Fe+1],Ee[Fe+2],Ee[Fe+3]]}),de=te.toDataURL("image/png")}j.attr({"xlink:href":de,height:B,width:A,x:T,y:C})});t._promises.push(Ce)})}});var G4e=Te((dpr,V4e)=>{"use strict";var kCt=Jl();V4e.exports=function(t){kCt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var X4e=Te((ppr,j4e)=>{"use strict";var H4e=Xc(),W4e=ei(),f6=W4e.isArrayOrTypedArray,CCt=jA();j4e.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(H4e.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||H4e.inbox(n-i.y0,n-(i.y0+i.h*a.dy),0)>0)){var u=Math.floor((r-i.x0)/a.dx),l=Math.floor(Math.abs(n-i.y0)/a.dy),f;if(a._hasZ?f=i.z[l][u]:a._hasSource&&(f=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(u,l,1,1).data),!!f){var c=i.hi||a.hoverinfo,h;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var p=CCt.colormodel[a.colormodel],_=p.colormodel||a.colormodel,b=_.length,v=a._scaler(f),k=p.suffix,E=[];(a.hovertemplate||h)&&(E.push("["+[v[0]+k[0],v[1]+k[1],v[2]+k[2]].join(", ")),b===4&&E.push(", "+v[3]+k[3]),E.push("]"),E=E.join(""),t.extraText=_.toUpperCase()+": "+E);var T;f6(a.hovertext)&&f6(a.hovertext[l])?T=a.hovertext[l][u]:f6(a.text)&&f6(a.text[l])&&(T=a.text[l][u]);var L=s.c2p(i.y0+(l+.5)*a.dy),x=i.x0+(u+.5)*a.dx,C=i.y0+(l+.5)*a.dy,M="["+f.slice(0,a.colormodel.length).join(", ")+"]";return[W4e.extendFlat(t,{index:[l,u],x0:o.c2p(i.x0+u*a.dx),x1:o.c2p(i.x0+(u+1)*a.dx),y0:L,y1:L,color:v,xVal:x,xLabelVal:x,yVal:C,yLabelVal:C,zLabelVal:M,text:T,hovertemplateLabels:{zLabel:M,colorLabel:E,"color[0]Label":v[0]+k[0],"color[1]Label":v[1]+k[1],"color[2]Label":v[2]+k[2],"color[3]Label":v[3]+k[3]}})]}}}});var Y4e=Te((vpr,Z4e)=>{"use strict";Z4e.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var J4e=Te((mpr,K4e)=>{"use strict";K4e.exports={attributes:yH(),supplyDefaults:X3e(),calc:O4e(),plot:U4e(),style:G4e(),hoverPoints:X4e(),eventData:Y4e(),moduleType:"trace",name:"image",basePlotModule:Th(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var Q4e=Te((ypr,$4e)=>{"use strict";$4e.exports=J4e()});var T2=Te((gpr,eke)=>{"use strict";var LCt=Gf(),PCt=zc().attributes,zCt=gc(),ICt=Rh(),RCt=Nu().hovertemplateAttrs,DCt=Nu().texttemplateAttrs,E4=Su().extendFlat,FCt=Id().pattern,c6=zCt({editType:"plot",arrayOk:!0,colorEditType:"plot"});eke.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:ICt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:FCt,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:E4({},LCt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:RCt({},{keys:["label","color","value","percent","text"]}),texttemplate:DCt({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:E4({},c6,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:E4({},c6,{}),outsidetextfont:E4({},c6,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:E4({},c6,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:PCt({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var S2=Te((_pr,ike)=>{"use strict";var BCt=ku(),k4=ei(),OCt=T2(),qCt=zc().defaults,NCt=r0().handleText,UCt=ei().coercePattern;function tke(e,t){var r=k4.isArrayOrTypedArray(e),n=k4.isArrayOrTypedArray(t),i=Math.min(r?e.length:1/0,n?t.length:1/0);if(isFinite(i)||(i=0),i&&n){for(var a,o=0;o0){a=!0;break}}a||(i=0)}return{hasLabels:r,hasValues:n,len:i}}function rke(e,t,r,n,i){var a=n("marker.line.width");a&&n("marker.line.color",i?void 0:r.paper_bgcolor);var o=n("marker.colors");UCt(n,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function VCt(e,t,r,n){function i(k,E){return k4.coerce(e,t,OCt,k,E)}var a=i("labels"),o=i("values"),s=tke(a,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,rke(e,t,n,i,!0),i("scalegroup");var l=i("text"),f=i("texttemplate"),c;if(f||(c=i("textinfo",k4.isArrayOrTypedArray(l)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),f||c&&c!=="none"){var h=i("textposition");NCt(e,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",p=d||h==="outside";p&&i("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&i("insidetextorientation")}else c==="none"&&i("textposition","none");qCt(t,n,i);var _=i("hole"),b=i("title.text");if(b){var v=i("title.position",_?"middle center":"top center");!_&&v==="middle center"&&(t.title.position="top center"),k4.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}ike.exports={handleLabelsAndValues:tke,handleMarkerDefaults:rke,supplyDefaults:VCt}});var h6=Te((xpr,nke)=>{"use strict";nke.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var oke=Te((bpr,ake)=>{"use strict";var GCt=ei(),HCt=h6();ake.exports=function(t,r){function n(i,a){return GCt.coerce(t,r,HCt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var xT=Te((wpr,uke)=>{"use strict";var WCt=ku(),wj=cd(),jCt=jl(),XCt={};function ZCt(e,t){var r=[],n=e._fullLayout,i=n.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,u=t._length,l=t._hasValues&&u,f,c;if(t.dlabel)for(a=new Array(u),f=0;f=0});var T=t.type==="funnelarea"?_:t.sort;return T&&r.sort(function(L,x){return x.v-L.v}),r[0]&&(r[0].vTotal=p),r}function ske(e){return function(r,n){return!r||(r=wj(r),!r.isValid())?!1:(r=jCt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function YCt(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,i=e.calcdata,a=n[r+"colorway"],o=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=lke(a,XCt));for(var s=0,u=0;u{"use strict";var KCt=iv().appendArrayMultiPointValues;fke.exports=function(t,r){var n={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(n.pointNumber=n.i=t.pts[0]),KCt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var m6=Te((Tpr,zke)=>{"use strict";var Rv=Jl(),JCt=Cc(),d6=Xc(),yke=jl(),jg=Mu(),np=ei(),$Ct=np.strScale,hke=np.strTranslate,Aj=Xf(),gke=Ap(),QCt=gke.recordMinTextSize,eLt=gke.clearMinTextSize,_ke=Qb().TEXTPAD,Yu=l_(),p6=cke(),dke=ei().isValidTextValue;function tLt(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;eLt("pie",n),wke(t,e),Cke(t,i);var a=np.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Rv.select(this),u=o[0],l=u.trace;fLt(o),s.attr("stroke-linejoin","round"),s.each(function(){var f=Rv.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],h=!1;f.each(function(T,L){if(T.hidden){Rv.select(this).selectAll("path,g").remove();return}T.pointNumber=T.i,T.curveNumber=l.index,c[T.pxmid[1]<0?0:1][T.pxmid[0]<0?0:1].push(T);var x=u.cx,C=u.cy,M=Rv.select(this),m=M.selectAll("path.surface").data([T]);if(m.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),M.call(xke,e,o),l.pull){var P=+Yu.castOption(l.pull,T.pts)||0;P>0&&(x+=P*T.pxmid[0],C+=P*T.pxmid[1])}T.cxFinal=x,T.cyFinal=C;function A(N,W,re,ae){var be=ae*(W[0]-N[0]),Pe=ae*(W[1]-N[1]);return"a"+ae*u.r+","+ae*u.r+" 0 "+T.largeArc+(re?" 1 ":" 0 ")+be+","+Pe}var B=l.hole;if(T.v===u.vTotal){var F="M"+(x+T.px0[0])+","+(C+T.px0[1])+A(T.px0,T.pxmid,!0,1)+A(T.pxmid,T.px0,!0,1)+"Z";B?m.attr("d","M"+(x+B*T.px0[0])+","+(C+B*T.px0[1])+A(T.px0,T.pxmid,!1,B)+A(T.pxmid,T.px0,!1,B)+"Z"+F):m.attr("d",F)}else{var U=A(T.px0,T.px1,!0,1);if(B){var G=1-B;m.attr("d","M"+(x+B*T.px1[0])+","+(C+B*T.px1[1])+A(T.px1,T.px0,!1,B)+"l"+G*T.px0[0]+","+G*T.px0[1]+U+"Z")}else m.attr("d","M"+x+","+C+"l"+T.px0[0]+","+T.px0[1]+U+"Z")}Lke(e,T,u);var j=Yu.castOption(l.textposition,T.pts),H=M.selectAll("g.slicetext").data(T.text&&j!=="none"?[0]:[]);H.enter().append("g").classed("slicetext",!0),H.exit().remove(),H.each(function(){var N=np.ensureSingle(Rv.select(this),"text","",function(te){te.attr("data-notex",1)}),W=np.ensureUniformFontSize(e,j==="outside"?iLt(l,T,n.font):bke(l,T,n.font));N.text(T.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(jg.font,W).call(Aj.convertToTspans,e);var re=jg.bBox(N.node()),ae;if(j==="outside")ae=mke(re,T);else if(ae=Ake(re,T,u),j==="auto"&&ae.scale<1){var be=np.ensureUniformFontSize(e,l.outsidetextfont);N.call(jg.font,be),re=jg.bBox(N.node()),ae=mke(re,T)}var Pe=ae.textPosAngle,Ce=Pe===void 0?T.pxmid:v6(u.r,Pe);if(ae.targetX=x+Ce[0]*ae.rCenter+(ae.x||0),ae.targetY=C+Ce[1]*ae.rCenter+(ae.y||0),Pke(ae,re),ae.outside){var de=ae.targetY;T.yLabelMin=de-re.height/2,T.yLabelMid=de,T.yLabelMax=de+re.height/2,T.labelExtraX=0,T.labelExtraY=0,h=!0}ae.fontSize=W.size,QCt(l.type,ae,n),o[L].transform=ae,np.setTransormAndDisplay(N,ae)})});var d=Rv.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var T=np.ensureSingle(Rv.select(this),"text","",function(C){C.attr("data-notex",1)}),L=l.title.text;l._meta&&(L=np.templateString(L,l._meta)),T.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(jg.font,l.title.font).call(Aj.convertToTspans,e);var x;l.title.position==="middle center"?x=oLt(u):x=Eke(u,i),T.attr("transform",hke(x.x,x.y)+$Ct(Math.min(1,x.scale))+hke(x.tx,x.ty))}),h&&lLt(c,l),rLt(f,l),h&&l.automargin){var p=jg.bBox(s.node()),_=l.domain,b=i.w*(_.x[1]-_.x[0]),v=i.h*(_.y[1]-_.y[0]),k=(.5*b-u.r)/i.w,E=(.5*v-u.r)/i.h;JCt.autoMargin(e,"pie."+l.uid+".automargin",{xl:_.x[0]-k,xr:_.x[1]+k,yb:_.y[0]-E,yt:_.y[1]+E,l:Math.max(u.cx-u.r-p.left,0),r:Math.max(p.right-(u.cx+u.r),0),b:Math.max(p.bottom-(u.cy+u.r),0),t:Math.max(u.cy-u.r-p.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Rv.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function rLt(e,t){e.each(function(r){var n=Rv.select(this);if(!r.labelExtraX&&!r.labelExtraY){n.select("path.textline").remove();return}var i=n.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,np.setTransormAndDisplay(i,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,u=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var l=r.labelExtraX*r.pxmid[1]/r.pxmid[0],f=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(l)>Math.abs(f)?s+="l"+f*r.pxmid[0]/r.pxmid[1]+","+f+"H"+(a+r.labelExtraX+u):s+="l"+r.labelExtraX+","+l+"v"+(f-l)+"h"+u}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+u;np.ensureSingle(n,"path","textline").call(yke.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function xke(e,t,r){var n=r[0],i=n.cx,a=n.cy,o=n.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(u){var l=t._fullLayout,f=t._fullData[o.index];if(!(t._dragging||l.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=d6.castHoverinfo({hoverinfo:[Yu.castOption(c,u.pts)],_module:o._module},l,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var h=u.rInscribed||0,d=i+u.pxmid[0]*(1-h),p=a+u.pxmid[1]*(1-h),_=l.separators,b=[];if(c&&c.indexOf("label")!==-1&&b.push(u.label),u.text=Yu.castOption(f.hovertext||f.text,u.pts),c&&c.indexOf("text")!==-1){var v=u.text;np.isValidTextValue(v)&&b.push(v)}u.value=u.v,u.valueLabel=Yu.formatPieValue(u.v,_),c&&c.indexOf("value")!==-1&&b.push(u.valueLabel),u.percent=u.v/n.vTotal,u.percentLabel=Yu.formatPiePercent(u.percent,_),c&&c.indexOf("percent")!==-1&&b.push(u.percentLabel);var k=f.hoverlabel,E=k.font,T=[];d6.loneHover({trace:o,x0:d-h*n.r,x1:d+h*n.r,y:p,_x0:s?i+u.TL[0]:d-h*n.r,_x1:s?i+u.TR[0]:d+h*n.r,_y0:s?a+u.TL[1]:p-h*n.r,_y1:s?a+u.BL[1]:p+h*n.r,text:b.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:u.pxmid[0]<0?"left":"right",color:Yu.castOption(k.bgcolor,u.pts)||u.color,borderColor:Yu.castOption(k.bordercolor,u.pts),fontFamily:Yu.castOption(E.family,u.pts),fontSize:Yu.castOption(E.size,u.pts),fontColor:Yu.castOption(E.color,u.pts),nameLength:Yu.castOption(k.namelength,u.pts),textAlign:Yu.castOption(k.align,u.pts),hovertemplate:Yu.castOption(f.hovertemplate,u.pts),hovertemplateLabels:u,eventData:[p6(u,f)]},{container:l._hoverlayer.node(),outerContainer:l._paper.node(),gd:t,inOut_bbox:T}),u.bbox=T[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[p6(u,f)],event:Rv.event})}}),e.on("mouseout",function(u){var l=t._fullLayout,f=t._fullData[o.index],c=Rv.select(this).datum();o._hasHoverEvent&&(u.originalEvent=Rv.event,t.emit("plotly_unhover",{points:[p6(c,f)],event:Rv.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(d6.loneUnhover(l._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(u){var l=t._fullLayout,f=t._fullData[o.index];t._dragging||l.hovermode===!1||(t._hoverdata=[p6(u,f)],d6.click(t,Rv.event))})}function iLt(e,t,r){var n=Yu.castOption(e.outsidetextfont.color,t.pts)||Yu.castOption(e.textfont.color,t.pts)||r.color,i=Yu.castOption(e.outsidetextfont.family,t.pts)||Yu.castOption(e.textfont.family,t.pts)||r.family,a=Yu.castOption(e.outsidetextfont.size,t.pts)||Yu.castOption(e.textfont.size,t.pts)||r.size,o=Yu.castOption(e.outsidetextfont.weight,t.pts)||Yu.castOption(e.textfont.weight,t.pts)||r.weight,s=Yu.castOption(e.outsidetextfont.style,t.pts)||Yu.castOption(e.textfont.style,t.pts)||r.style,u=Yu.castOption(e.outsidetextfont.variant,t.pts)||Yu.castOption(e.textfont.variant,t.pts)||r.variant,l=Yu.castOption(e.outsidetextfont.textcase,t.pts)||Yu.castOption(e.textfont.textcase,t.pts)||r.textcase,f=Yu.castOption(e.outsidetextfont.lineposition,t.pts)||Yu.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=Yu.castOption(e.outsidetextfont.shadow,t.pts)||Yu.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n,family:i,size:a,weight:o,style:s,variant:u,textcase:l,lineposition:f,shadow:c}}function bke(e,t,r){var n=Yu.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=Yu.castOption(e._input.textfont.color,t.pts));var i=Yu.castOption(e.insidetextfont.family,t.pts)||Yu.castOption(e.textfont.family,t.pts)||r.family,a=Yu.castOption(e.insidetextfont.size,t.pts)||Yu.castOption(e.textfont.size,t.pts)||r.size,o=Yu.castOption(e.insidetextfont.weight,t.pts)||Yu.castOption(e.textfont.weight,t.pts)||r.weight,s=Yu.castOption(e.insidetextfont.style,t.pts)||Yu.castOption(e.textfont.style,t.pts)||r.style,u=Yu.castOption(e.insidetextfont.variant,t.pts)||Yu.castOption(e.textfont.variant,t.pts)||r.variant,l=Yu.castOption(e.insidetextfont.textcase,t.pts)||Yu.castOption(e.textfont.textcase,t.pts)||r.textcase,f=Yu.castOption(e.insidetextfont.lineposition,t.pts)||Yu.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=Yu.castOption(e.insidetextfont.shadow,t.pts)||Yu.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n||yke.contrast(t.color),family:i,size:a,weight:o,style:s,variant:u,textcase:l,lineposition:f,shadow:c}}function wke(e,t){for(var r,n,i=0;i=-4;k-=2)v(Math.PI*k,"tan");for(k=4;k>=-4;k-=2)v(Math.PI*(k+1),"tan")}if(c||d){for(k=4;k>=-4;k-=2)v(Math.PI*(k+1.5),"rad");for(k=4;k>=-4;k-=2)v(Math.PI*(k+.5),"rad")}}if(s||p||c){var E=Math.sqrt(e.width*e.width+e.height*e.height);if(b={scale:i*n*2/E,rCenter:1-i,rotate:0},b.textPosAngle=(t.startangle+t.stopangle)/2,b.scale>=1)return b;_.push(b)}(p||d)&&(b=pke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,_.push(b)),(p||h)&&(b=vke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,_.push(b));for(var T=0,L=0,x=0;x<_.length;x++){var C=_[x].scale;if(L=1)break}return _[T]}function nLt(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function oLt(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function Eke(e,t){var r=1,n=1,i,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=kke(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+i)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+i)*e.r);var u=sLt(e.r,e.trace.aspectratio),l=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(l=l+u,o.x-=(1+i)*u,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?l*=2:a.title.position.indexOf("right")!==-1&&(l=l+u,o.x+=(1+i)*u,s.tx-=e.titleBox.width/2),r=l/e.titleBox.width,n=Tj(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function sLt(e,t){return e/(t===void 0?1:t)}function Tj(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function kke(e){var t=e.pull;if(!t)return 0;var r;if(np.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function lLt(e,t){var r,n,i,a,o,s,u,l,f,c,h,d,p;function _(E,T){return E.pxmid[1]-T.pxmid[1]}function b(E,T){return T.pxmid[1]-E.pxmid[1]}function v(E,T){T||(T={});var L=T.labelExtraY+(n?T.yLabelMax:T.yLabelMin),x=n?E.yLabelMin:E.yLabelMax,C=n?E.yLabelMax:E.yLabelMin,M=E.cyFinal+o(E.px0[1],E.px1[1]),m=L-x,P,A,B,F,U,G;if(m*u>0&&(E.labelExtraY=m),!!np.isArrayOrTypedArray(t.pull))for(A=0;A=(Yu.castOption(t.pull,B.pts)||0))&&((E.pxmid[1]-B.pxmid[1])*u>0?(F=B.cyFinal+o(B.px0[1],B.px1[1]),m=F-x-E.labelExtraY,m*u>0&&(E.labelExtraY+=m)):(C+E.labelExtraY-M)*u>0&&(P=3*s*Math.abs(A-c.indexOf(E)),U=B.cxFinal+a(B.px0[0],B.px1[0]),G=U+P-(E.cxFinal+E.pxmid[0])-E.labelExtraX,G*s>0&&(E.labelExtraX+=G)))}for(n=0;n<2;n++)for(i=n?_:b,o=n?Math.max:Math.min,u=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,l=e[n][r],l.sort(i),f=e[1-n][r],c=f.concat(l),d=[],h=0;h1?(l=r.r,f=l/i.aspectratio):(f=r.r,l=f*i.aspectratio),l*=(1+i.baseratio)/2,u=l*f}o=Math.min(o,u/r.vTotal)}for(n=0;nt.vTotal/2?1:0,l.halfangle=Math.PI*Math.min(l.v/t.vTotal,.5),l.ring=1-n.hole,l.rInscribed=aLt(l,t))}function v6(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function Lke(e,t,r){var n=e._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),u=function(T){return s.indexOf(T)!==-1},l=u("label"),f=u("text"),c=u("value"),h=u("percent"),d=n.separators,p;if(p=l?[t.label]:[],f){var _=Yu.getFirstFilled(i.text,t.pts);dke(_)&&p.push(_)}c&&p.push(Yu.formatPieValue(t.v,d)),h&&p.push(Yu.formatPiePercent(t.v/r.vTotal,d)),t.text=p.join("
")}function b(T){return{label:T.label,value:T.v,valueLabel:Yu.formatPieValue(T.v,n.separators),percent:T.v/r.vTotal,percentLabel:Yu.formatPiePercent(T.v/r.vTotal,n.separators),color:T.color,text:T.text,customdata:np.castOption(i,T.i,"customdata")}}if(a){var v=np.castOption(i,t.i,"texttemplate");if(!v)t.text="";else{var k=b(t),E=Yu.getFirstFilled(i.text,t.pts);(dke(E)||E==="")&&(k.text=E),t.text=np.texttemplateString(v,k,e._fullLayout._d3locale,k,i._meta||{})}}}function Pke(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*n-o*i,e.textY=a*i+o*n,e.noCenter=!0}zke.exports={plot:tLt,formatSliceLabel:Lke,transformInsideText:Ake,determineInsideTextFont:bke,positionTitleOutside:Eke,prerenderTitles:wke,layoutAreas:Cke,attachFxHandlers:xke,computeTransform:Pke}});var Dke=Te((Spr,Rke)=>{"use strict";var Ike=Jl(),cLt=F3(),hLt=Ap().resizeText;Rke.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");hLt(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=Ike.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Ike.select(this).call(cLt,s,a,t)})})}});var Bke=Te(bT=>{"use strict";var Fke=Cc();bT.name="pie";bT.plot=function(e,t,r,n){Fke.plotBasePlot(bT.name,e,t,r,n)};bT.clean=function(e,t,r,n){Fke.cleanBasePlot(bT.name,e,t,r,n)}});var qke=Te((Epr,Oke)=>{"use strict";Oke.exports={attributes:T2(),supplyDefaults:S2().supplyDefaults,supplyLayoutDefaults:oke(),layoutAttributes:h6(),calc:xT().calc,crossTraceCalc:xT().crossTraceCalc,plot:m6().plot,style:Dke(),styleOne:F3(),moduleType:"trace",name:"pie",basePlotModule:Bke(),categories:["pie-like","pie","showLegend"],meta:{}}});var Uke=Te((kpr,Nke)=>{"use strict";Nke.exports=qke()});var Gke=Te(wT=>{"use strict";var Vke=Cc();wT.name="sunburst";wT.plot=function(e,t,r,n){Vke.plotBasePlot(wT.name,e,t,r,n)};wT.clean=function(e,t,r,n){Vke.cleanBasePlot(wT.name,e,t,r,n)}});var Sj=Te((Lpr,Hke)=>{"use strict";Hke.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var L4=Te((Ppr,jke)=>{"use strict";var dLt=Gf(),pLt=Nu().hovertemplateAttrs,vLt=Nu().texttemplateAttrs,mLt=nc(),yLt=zc().attributes,Xg=T2(),Wke=Sj(),C4=Su().extendFlat,gLt=Id().pattern;jke.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:C4({colors:{valType:"data_array",editType:"calc"},line:{color:C4({},Xg.marker.line.color,{dflt:null}),width:C4({},Xg.marker.line.width,{dflt:1}),editType:"calc"},pattern:gLt,editType:"calc"},mLt("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:Xg.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:vLt({editType:"plot"},{keys:Wke.eventDataKeys.concat(["label","value"])}),hovertext:Xg.hovertext,hoverinfo:C4({},dLt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:pLt({},{keys:Wke.eventDataKeys}),textfont:Xg.textfont,insidetextorientation:Xg.insidetextorientation,insidetextfont:Xg.insidetextfont,outsidetextfont:C4({},Xg.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:Xg.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:yLt({name:"sunburst",trace:!0,editType:"calc"})}});var Mj=Te((zpr,Xke)=>{"use strict";Xke.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Jke=Te((Ipr,Kke)=>{"use strict";var Zke=ei(),_Lt=L4(),xLt=zc().defaults,bLt=r0().handleText,wLt=S2().handleMarkerDefaults,Yke=_c(),ALt=Yke.hasColorscale,TLt=Yke.handleDefaults;Kke.exports=function(t,r,n,i){function a(h,d){return Zke.coerce(t,r,_Lt,h,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),wLt(t,r,i,a);var l=r._hasColorscale=ALt(t,"marker","colors")||(t.marker||{}).coloraxis;l&&TLt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",l?1:.7);var f=a("text");a("texttemplate"),r.texttemplate||a("textinfo",Zke.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate");var c="auto";bLt(t,r,i,a,c,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),xLt(r,i,a),r._length=null}});var Qke=Te((Rpr,$ke)=>{"use strict";var SLt=ei(),MLt=Mj();$ke.exports=function(t,r){function n(i,a){return SLt.coerce(t,r,MLt,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var P4=Te((y6,eCe)=>{(function(e,t){typeof y6=="object"&&typeof eCe!="undefined"?t(y6):(e=e||self,t(e.d3=e.d3||{}))})(y6,function(e){"use strict";function t(Re,De){return Re.parent===De.parent?1:2}function r(Re){return Re.reduce(n,0)/Re.length}function n(Re,De){return Re+De.x}function i(Re){return 1+Re.reduce(a,0)}function a(Re,De){return Math.max(Re,De.y)}function o(Re){for(var De;De=Re.children;)Re=De[0];return Re}function s(Re){for(var De;De=Re.children;)Re=De[De.length-1];return Re}function u(){var Re=t,De=1,ct=1,ge=!1;function fe(pe){var dt,It=0;pe.eachAfter(function(Mr){var Fr=Mr.children;Fr?(Mr.x=r(Fr),Mr.y=i(Fr)):(Mr.x=dt?It+=Re(Mr,dt):0,Mr.y=0,dt=Mr)});var Pt=o(pe),rr=s(pe),Hr=Pt.x-Re(Pt,rr)/2,Dr=rr.x+Re(rr,Pt)/2;return pe.eachAfter(ge?function(Mr){Mr.x=(Mr.x-pe.x)*De,Mr.y=(pe.y-Mr.y)*ct}:function(Mr){Mr.x=(Mr.x-Hr)/(Dr-Hr)*De,Mr.y=(1-(pe.y?Mr.y/pe.y:1))*ct})}return fe.separation=function(pe){return arguments.length?(Re=pe,fe):Re},fe.size=function(pe){return arguments.length?(ge=!1,De=+pe[0],ct=+pe[1],fe):ge?null:[De,ct]},fe.nodeSize=function(pe){return arguments.length?(ge=!0,De=+pe[0],ct=+pe[1],fe):ge?[De,ct]:null},fe}function l(Re){var De=0,ct=Re.children,ge=ct&&ct.length;if(!ge)De=1;else for(;--ge>=0;)De+=ct[ge].value;Re.value=De}function f(){return this.eachAfter(l)}function c(Re){var De=this,ct,ge=[De],fe,pe,dt;do for(ct=ge.reverse(),ge=[];De=ct.pop();)if(Re(De),fe=De.children,fe)for(pe=0,dt=fe.length;pe=0;--fe)ct.push(ge[fe]);return this}function d(Re){for(var De=this,ct=[De],ge=[],fe,pe,dt;De=ct.pop();)if(ge.push(De),fe=De.children,fe)for(pe=0,dt=fe.length;pe=0;)ct+=ge[fe].value;De.value=ct})}function _(Re){return this.eachBefore(function(De){De.children&&De.children.sort(Re)})}function b(Re){for(var De=this,ct=v(De,Re),ge=[De];De!==ct;)De=De.parent,ge.push(De);for(var fe=ge.length;Re!==ct;)ge.splice(fe,0,Re),Re=Re.parent;return ge}function v(Re,De){if(Re===De)return Re;var ct=Re.ancestors(),ge=De.ancestors(),fe=null;for(Re=ct.pop(),De=ge.pop();Re===De;)fe=Re,Re=ct.pop(),De=ge.pop();return fe}function k(){for(var Re=this,De=[Re];Re=Re.parent;)De.push(Re);return De}function E(){var Re=[];return this.each(function(De){Re.push(De)}),Re}function T(){var Re=[];return this.eachBefore(function(De){De.children||Re.push(De)}),Re}function L(){var Re=this,De=[];return Re.each(function(ct){ct!==Re&&De.push({source:ct.parent,target:ct})}),De}function x(Re,De){var ct=new A(Re),ge=+Re.value&&(ct.value=Re.value),fe,pe=[ct],dt,It,Pt,rr;for(De==null&&(De=M);fe=pe.pop();)if(ge&&(fe.value=+fe.data.value),(It=De(fe.data))&&(rr=It.length))for(fe.children=new Array(rr),Pt=rr-1;Pt>=0;--Pt)pe.push(dt=fe.children[Pt]=new A(It[Pt])),dt.parent=fe,dt.depth=fe.depth+1;return ct.eachBefore(P)}function C(){return x(this).eachBefore(m)}function M(Re){return Re.children}function m(Re){Re.data=Re.data.data}function P(Re){var De=0;do Re.height=De;while((Re=Re.parent)&&Re.height<++De)}function A(Re){this.data=Re,this.depth=this.height=0,this.parent=null}A.prototype=x.prototype={constructor:A,count:f,each:c,eachAfter:d,eachBefore:h,sum:p,sort:_,path:b,ancestors:k,descendants:E,leaves:T,links:L,copy:C};var B=Array.prototype.slice;function F(Re){for(var De=Re.length,ct,ge;De;)ge=Math.random()*De--|0,ct=Re[De],Re[De]=Re[ge],Re[ge]=ct;return Re}function U(Re){for(var De=0,ct=(Re=F(B.call(Re))).length,ge=[],fe,pe;De0&&ct*ct>ge*ge+fe*fe}function N(Re,De){for(var ct=0;ctPt?(fe=(rr+Pt-pe)/(2*rr),It=Math.sqrt(Math.max(0,Pt/rr-fe*fe)),ct.x=Re.x-fe*ge-It*dt,ct.y=Re.y-fe*dt+It*ge):(fe=(rr+pe-Pt)/(2*rr),It=Math.sqrt(Math.max(0,pe/rr-fe*fe)),ct.x=De.x+fe*ge-It*dt,ct.y=De.y+fe*dt+It*ge)):(ct.x=De.x+ct.r,ct.y=De.y)}function Ce(Re,De){var ct=Re.r+De.r-1e-6,ge=De.x-Re.x,fe=De.y-Re.y;return ct>0&&ct*ct>ge*ge+fe*fe}function de(Re){var De=Re._,ct=Re.next._,ge=De.r+ct.r,fe=(De.x*ct.r+ct.x*De.r)/ge,pe=(De.y*ct.r+ct.y*De.r)/ge;return fe*fe+pe*pe}function te(Re){this._=Re,this.next=null,this.previous=null}function ke(Re){if(!(fe=Re.length))return 0;var De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr;if(De=Re[0],De.x=0,De.y=0,!(fe>1))return De.r;if(ct=Re[1],De.x=-ct.r,ct.x=De.r,ct.y=0,!(fe>2))return De.r+ct.r;Pe(ct,De,ge=Re[2]),De=new te(De),ct=new te(ct),ge=new te(ge),De.next=ge.previous=ct,ct.next=De.previous=ge,ge.next=ct.previous=De;e:for(It=3;It0)throw new Error("cycle");return It}return ct.id=function(ge){return arguments.length?(Re=Ne(ge),ct):Re},ct.parentId=function(ge){return arguments.length?(De=Ne(ge),ct):De},ct}function Ae(Re,De){return Re.parent===De.parent?1:2}function at(Re){var De=Re.children;return De?De[0]:Re.t}function wt(Re){var De=Re.children;return De?De[De.length-1]:Re.t}function vt(Re,De,ct){var ge=ct/(De.i-Re.i);De.c-=ge,De.s+=ct,Re.c+=ge,De.z+=ct,De.m+=ct}function st(Re){for(var De=0,ct=0,ge=Re.children,fe=ge.length,pe;--fe>=0;)pe=ge[fe],pe.z+=De,pe.m+=De,De+=pe.s+(ct+=pe.c)}function Ue(Re,De,ct){return Re.a.parent===De.parent?Re.a:ct}function rt(Re,De){this._=Re,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=De}rt.prototype=Object.create(A.prototype);function $e(Re){for(var De=new rt(Re,0),ct,ge=[De],fe,pe,dt,It;ct=ge.pop();)if(pe=ct._.children)for(ct.children=new Array(It=pe.length),dt=It-1;dt>=0;--dt)ge.push(fe=ct.children[dt]=new rt(pe[dt],dt)),fe.parent=ct;return(De.parent=new rt(null,0)).children=[De],De}function zt(){var Re=Ae,De=1,ct=1,ge=null;function fe(rr){var Hr=$e(rr);if(Hr.eachAfter(pe),Hr.parent.m=-Hr.z,Hr.eachBefore(dt),ge)rr.eachBefore(Pt);else{var Dr=rr,Mr=rr,Fr=rr;rr.eachBefore(function(nn){nn.xMr.x&&(Mr=nn),nn.depth>Fr.depth&&(Fr=nn)});var di=Dr===Mr?1:Re(Dr,Mr)/2,Di=di-Dr.x,Ii=De/(Mr.x+di+Di),Ci=ct/(Fr.depth||1);rr.eachBefore(function(nn){nn.x=(nn.x+Di)*Ii,nn.y=nn.depth*Ci})}return rr}function pe(rr){var Hr=rr.children,Dr=rr.parent.children,Mr=rr.i?Dr[rr.i-1]:null;if(Hr){st(rr);var Fr=(Hr[0].z+Hr[Hr.length-1].z)/2;Mr?(rr.z=Mr.z+Re(rr._,Mr._),rr.m=rr.z-Fr):rr.z=Fr}else Mr&&(rr.z=Mr.z+Re(rr._,Mr._));rr.parent.A=It(rr,Mr,rr.parent.A||Dr[0])}function dt(rr){rr._.x=rr.z+rr.parent.m,rr.m+=rr.parent.m}function It(rr,Hr,Dr){if(Hr){for(var Mr=rr,Fr=rr,di=Hr,Di=Mr.parent.children[0],Ii=Mr.m,Ci=Fr.m,nn=di.m,ii=Di.m,wi;di=wt(di),Mr=at(Mr),di&&Mr;)Di=at(Di),Fr=wt(Fr),Fr.a=rr,wi=di.z+nn-Mr.z-Ii+Re(di._,Mr._),wi>0&&(vt(Ue(di,rr,Dr),rr,wi),Ii+=wi,Ci+=wi),nn+=di.m,Ii+=Mr.m,ii+=Di.m,Ci+=Fr.m;di&&!wt(Fr)&&(Fr.t=di,Fr.m+=nn-Ci),Mr&&!at(Di)&&(Di.t=Mr,Di.m+=Ii-ii,Dr=rr)}return Dr}function Pt(rr){rr.x*=De,rr.y=rr.depth*ct}return fe.separation=function(rr){return arguments.length?(Re=rr,fe):Re},fe.size=function(rr){return arguments.length?(ge=!1,De=+rr[0],ct=+rr[1],fe):ge?null:[De,ct]},fe.nodeSize=function(rr){return arguments.length?(ge=!0,De=+rr[0],ct=+rr[1],fe):ge?[De,ct]:null},fe}function Yt(Re,De,ct,ge,fe){for(var pe=Re.children,dt,It=-1,Pt=pe.length,rr=Re.value&&(fe-ct)/Re.value;++Itnn&&(nn=rr),Bt=Ii*Ii*Gi,ii=Math.max(nn/Bt,Bt/Ci),ii>wi){Ii-=rr;break}wi=ii}dt.push(Pt={value:Ii,dice:Fr1?ge:1)},ct}(hr);function Ut(){var Re=br,De=!1,ct=1,ge=1,fe=[0],pe=Fe,dt=Fe,It=Fe,Pt=Fe,rr=Fe;function Hr(Mr){return Mr.x0=Mr.y0=0,Mr.x1=ct,Mr.y1=ge,Mr.eachBefore(Dr),fe=[0],De&&Mr.eachBefore(Nt),Mr}function Dr(Mr){var Fr=fe[Mr.depth],di=Mr.x0+Fr,Di=Mr.y0+Fr,Ii=Mr.x1-Fr,Ci=Mr.y1-Fr;Ii=Mr-1){var nn=pe[Dr];nn.x0=di,nn.y0=Di,nn.x1=Ii,nn.y1=Ci;return}for(var ii=rr[Dr],wi=Fr/2+ii,Gi=Dr+1,Bt=Mr-1;Gi>>1;rr[yt]Ci-Di){var _r=(di*Wt+Ii*Vt)/Fr;Hr(Dr,Gi,Vt,di,Di,_r,Ci),Hr(Gi,Mr,Wt,_r,Di,Ii,Ci)}else{var Lr=(Di*Wt+Ci*Vt)/Fr;Hr(Dr,Gi,Vt,di,Di,Ii,Lr),Hr(Gi,Mr,Wt,di,Lr,Ii,Ci)}}}function xe(Re,De,ct,ge,fe){(Re.depth&1?Yt:it)(Re,De,ct,ge,fe)}var Oe=function Re(De){function ct(ge,fe,pe,dt,It){if((Pt=ge._squarify)&&Pt.ratio===De)for(var Pt,rr,Hr,Dr,Mr=-1,Fr,di=Pt.length,Di=ge.value;++Mr1?ge:1)},ct}(hr);e.cluster=u,e.hierarchy=x,e.pack=ce,e.packEnclose=U,e.packSiblings=Ee,e.partition=Ye,e.stratify=Et,e.tree=zt,e.treemap=Ut,e.treemapBinary=Ie,e.treemapDice=it,e.treemapResquarify=Oe,e.treemapSlice=Yt,e.treemapSliceDice=xe,e.treemapSquarify=br,Object.defineProperty(e,"__esModule",{value:!0})})});var I4=Te(z4=>{"use strict";var tCe=P4(),ELt=ku(),AT=ei(),kLt=_c().makeColorScaleFuncFromTrace,CLt=xT().makePullColorFn,LLt=xT().generateExtendedColors,PLt=_c().calc,zLt=nf().ALMOST_EQUAL,ILt={},RLt={},DLt={};z4.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=AT.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,u=AT.isArrayOrTypedArray(s),l=[],f={},c={},h=function(H,N){f[H]?f[H].push(N):f[H]=[N],c[N]=1},d=function(H){return H||typeof H=="number"},p=function(H){return!u||ELt(s[H])&&s[H]>=0},_,b,v;i?(_=Math.min(n.length,o.length),b=function(H){return d(n[H])&&p(H)},v=function(H){return String(n[H])}):(_=Math.min(a.length,o.length),b=function(H){return d(a[H])&&p(H)},v=function(H){return String(a[H])}),u&&(_=Math.min(_,s.length));for(var k=0;k<_;k++)if(b(k)){var E=v(k),T=d(o[k])?String(o[k]):"",L={i:k,id:E,pid:T,label:d(a[k])?String(a[k]):""};u&&(L.v=+s[k]),l.push(L),h(T,E)}if(f[""]){if(f[""].length>1){for(var M=AT.randstr(),m=0;m{});function Vy(){}function rCe(){return this.rgb().formatHex()}function NLt(){return this.rgb().formatHex8()}function ULt(){return uCe(this).formatHsl()}function iCe(){return this.rgb().formatRgb()}function W_(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ILt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?nCe(t):r===3?new xd(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?_6(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?_6(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=RLt.exec(e))?new xd(t[1],t[2],t[3],1):(t=DLt.exec(e))?new xd(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=FLt.exec(e))?_6(t[1],t[2],t[3],t[4]):(t=BLt.exec(e))?_6(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=OLt.exec(e))?sCe(t[1],t[2]/100,t[3]/100,1):(t=qLt.exec(e))?sCe(t[1],t[2]/100,t[3]/100,t[4]):tCe.hasOwnProperty(e)?nCe(tCe[e]):e==="transparent"?new xd(NaN,NaN,NaN,0):null}function nCe(e){return new xd(e>>16&255,e>>8&255,e&255,1)}function _6(e,t,r,n){return n<=0&&(e=t=r=NaN),new xd(e,t,r,n)}function R4(e){return e instanceof Vy||(e=W_(e)),e?(e=e.rgb(),new xd(e.r,e.g,e.b,e.opacity)):new xd}function TT(e,t,r,n){return arguments.length===1?R4(e):new xd(e,t,r,n==null?1:n)}function xd(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function aCe(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}`}function VLt(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}${M2((isNaN(this.opacity)?1:this.opacity)*255)}`}function oCe(){let e=b6(this.opacity);return`${e===1?"rgb(":"rgba("}${E2(this.r)}, ${E2(this.g)}, ${E2(this.b)}${e===1?")":`, ${e})`}`}function b6(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function E2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function M2(e){return e=E2(e),(e<16?"0":"")+e.toString(16)}function sCe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xm(e,t,r,n)}function uCe(e){if(e instanceof Xm)return new Xm(e.h,e.s,e.l,e.opacity);if(e instanceof Vy||(e=W_(e)),!e)return new Xm;if(e instanceof Xm)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&u<1?0:o,new Xm(o,s,u,e.opacity)}function D4(e,t,r,n){return arguments.length===1?uCe(e):new Xm(e,t,r,n==null?1:n)}function Xm(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function lCe(e){return e=(e||0)%360,e<0?e+360:e}function x6(e){return Math.max(0,Math.min(1,e||0))}function Ej(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var H_,k2,AT,I4,Uy,ILt,RLt,DLt,FLt,BLt,OLt,qLt,tCe,w6=tc(()=>{g6();H_=.7,k2=1/H_,AT="\\s*([+-]?\\d+)\\s*",I4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Uy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ILt=/^#([0-9a-f]{3,8})$/,RLt=new RegExp(`^rgb\\(${AT},${AT},${AT}\\)$`),DLt=new RegExp(`^rgb\\(${Uy},${Uy},${Uy}\\)$`),FLt=new RegExp(`^rgba\\(${AT},${AT},${AT},${I4}\\)$`),BLt=new RegExp(`^rgba\\(${Uy},${Uy},${Uy},${I4}\\)$`),OLt=new RegExp(`^hsl\\(${I4},${Uy},${Uy}\\)$`),qLt=new RegExp(`^hsla\\(${I4},${Uy},${Uy},${I4}\\)$`),tCe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Zg(Vy,W_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rCe,formatHex:rCe,formatHex8:NLt,formatHsl:ULt,formatRgb:iCe,toString:iCe});Zg(xd,TT,G_(Vy,{brighter(e){return e=e==null?k2:Math.pow(k2,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?H_:Math.pow(H_,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xd(E2(this.r),E2(this.g),E2(this.b),b6(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:aCe,formatHex:aCe,formatHex8:VLt,formatRgb:oCe,toString:oCe}));Zg(Xm,D4,G_(Vy,{brighter(e){return e=e==null?k2:Math.pow(k2,e),new Xm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?H_:Math.pow(H_,e),new Xm(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new xd(Ej(e>=240?e-240:e+120,i,n),Ej(e,i,n),Ej(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xm(lCe(this.h),x6(this.s),x6(this.l),b6(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=b6(this.opacity);return`${e===1?"hsl(":"hsla("}${lCe(this.h)}, ${x6(this.s)*100}%, ${x6(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var A6,T6,kj=tc(()=>{A6=Math.PI/180,T6=180/Math.PI});function vCe(e){if(e instanceof Gy)return new Gy(e.l,e.a,e.b,e.opacity);if(e instanceof Yg)return mCe(e);e instanceof xd||(e=R4(e));var t=zj(e.r),r=zj(e.g),n=zj(e.b),i=Cj((.2225045*t+.7168786*r+.0606169*n)/cCe),a,o;return t===r&&r===n?a=o=i:(a=Cj((.4360747*t+.3850649*r+.1430804*n)/fCe),o=Cj((.0139322*t+.0971045*r+.7141733*n)/hCe)),new Gy(116*i-16,500*(a-i),200*(i-o),e.opacity)}function MT(e,t,r,n){return arguments.length===1?vCe(e):new Gy(e,t,r,n==null?1:n)}function Gy(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Cj(e){return e>GLt?Math.pow(e,1/3):e/pCe+dCe}function Lj(e){return e>ST?e*e*e:pCe*(e-dCe)}function Pj(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function zj(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function HLt(e){if(e instanceof Yg)return new Yg(e.h,e.c,e.l,e.opacity);if(e instanceof Gy||(e=vCe(e)),e.a===0&&e.b===0)return new Yg(NaN,0{g6();w6();kj();S6=18,fCe=.96422,cCe=1,hCe=.82521,dCe=4/29,ST=6/29,pCe=3*ST*ST,GLt=ST*ST*ST;Zg(Gy,MT,G_(Vy,{brighter(e){return new Gy(this.l+S6*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Gy(this.l-S6*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=fCe*Lj(t),e=cCe*Lj(e),r=hCe*Lj(r),new xd(Pj(3.1338561*t-1.6168667*e-.4906146*r),Pj(-.9787684*t+1.9161415*e+.033454*r),Pj(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));Zg(Yg,F4,G_(Vy,{brighter(e){return new Yg(this.h,this.c,this.l+S6*(e==null?1:e),this.opacity)},darker(e){return new Yg(this.h,this.c,this.l-S6*(e==null?1:e),this.opacity)},rgb(){return mCe(this).rgb()}}))});function WLt(e){if(e instanceof C2)return new C2(e.h,e.s,e.l,e.opacity);e instanceof xd||(e=R4(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(xCe*n+gCe*t-_Ce*r)/(xCe+gCe-_Ce),a=n-i,o=(B4*(r-i)-Rj*a)/M6,s=Math.sqrt(o*o+a*a)/(B4*i*(1-i)),u=s?Math.atan2(o,a)*T6-120:NaN;return new C2(u<0?u+360:u,s,i,e.opacity)}function ET(e,t,r,n){return arguments.length===1?WLt(e):new C2(e,t,r,n==null?1:n)}function C2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var bCe,Ij,Rj,M6,B4,gCe,_Ce,xCe,wCe=tc(()=>{g6();w6();kj();bCe=-.14861,Ij=1.78277,Rj=-.29227,M6=-.90649,B4=1.97294,gCe=B4*M6,_Ce=B4*Ij,xCe=Ij*Rj-M6*bCe;Zg(C2,ET,G_(Vy,{brighter(e){return e=e==null?k2:Math.pow(k2,e),new C2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?H_:Math.pow(H_,e),new C2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*A6,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new xd(255*(t+r*(bCe*n+Ij*i)),255*(t+r*(Rj*n+M6*i)),255*(t+r*(B4*n)),this.opacity)}}))});var L2=tc(()=>{w6();yCe();wCe()});function Dj(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function E6(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n{});function C6(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return Dj((r-n/t)*t,i,a,o,s)}}var Fj=tc(()=>{k6()});var kT,Bj=tc(()=>{kT=e=>()=>e});function ACe(e,t){return function(r){return e+r*t}}function jLt(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function j_(e,t){var r=t-e;return r?ACe(e,r>180||r<-180?r-360*Math.round(r/360):r):kT(isNaN(e)?t:e)}function TCe(e){return(e=+e)==1?ph:function(t,r){return r-t?jLt(t,r,e):kT(isNaN(t)?r:t)}}function ph(e,t){var r=t-e;return r?ACe(e,r):kT(isNaN(e)?t:e)}var P2=tc(()=>{Bj()});function SCe(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o{L2();k6();Fj();P2();O4=function e(t){var r=TCe(t);function n(i,a){var o=r((i=TT(i)).r,(a=TT(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),l=ph(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=u(f),i.opacity=l(f),i+""}}return n.gamma=e,n}(1);MCe=SCe(E6),ECe=SCe(C6)});function CT(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{});function kCe(e,t){return(L6(t)?CT:qj)(e,t)}function qj(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{q4();P6()});function z6(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var Uj=tc(()=>{});function Dv(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var N4=tc(()=>{});function I6(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=X_(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Vj=tc(()=>{q4()});function XLt(e){return function(){return e}}function ZLt(e){return function(t){return e(t)+""}}function R6(e,t){var r=Hj.lastIndex=Gj.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=Hj.exec(e))&&(i=Gj.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Dv(n,i)})),r=Gj.lastIndex;return r{N4();Hj=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gj=new RegExp(Hj.source,"g")});function X_(e,t){var r=typeof t,n;return t==null||r==="boolean"?kT(t):(r==="number"?Dv:r==="string"?(n=W_(t))?(t=n,O4):R6:t instanceof W_?O4:t instanceof Date?z6:L6(t)?CT:Array.isArray(t)?qj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?I6:Dv)(e,t)}var q4=tc(()=>{L2();Oj();Nj();Uj();N4();Vj();Wj();Bj();P6()});function CCe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var LCe=tc(()=>{});function PCe(e,t){var r=j_(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var zCe=tc(()=>{P2()});function ICe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var RCe=tc(()=>{});function jj(e,t,r,n,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,u/=s),e*n{DCe=180/Math.PI,D6={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function BCe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?D6:jj(t.a,t.b,t.c,t.d,t.e,t.f)}function OCe(e){return e==null?D6:(F6||(F6=document.createElementNS("http://www.w3.org/2000/svg","g")),F6.setAttribute("transform",e),(e=F6.transform.baseVal.consolidate())?(e=e.matrix,jj(e.a,e.b,e.c,e.d,e.e,e.f)):D6)}var F6,qCe=tc(()=>{FCe()});function NCe(e,t,r,n){function i(l){return l.length?l.pop()+" ":""}function a(l,f,c,h,d,p){if(l!==c||f!==h){var x=d.push("translate(",null,t,null,r);p.push({i:x-4,x:Dv(l,c)},{i:x-2,x:Dv(f,h)})}else(c||h)&&d.push("translate("+c+t+h+r)}function o(l,f,c,h){l!==f?(l-f>180?f+=360:f-l>180&&(l+=360),h.push({i:c.push(i(c)+"rotate(",null,n)-2,x:Dv(l,f)})):f&&c.push(i(c)+"rotate("+f+n)}function s(l,f,c,h){l!==f?h.push({i:c.push(i(c)+"skewX(",null,n)-2,x:Dv(l,f)}):f&&c.push(i(c)+"skewX("+f+n)}function u(l,f,c,h,d,p){if(l!==c||f!==h){var x=d.push(i(d)+"scale(",null,",",null,")");p.push({i:x-4,x:Dv(l,c)},{i:x-2,x:Dv(f,h)})}else(c!==1||h!==1)&&d.push(i(d)+"scale("+c+","+h+")")}return function(l,f){var c=[],h=[];return l=e(l),f=e(f),a(l.translateX,l.translateY,f.translateX,f.translateY,c,h),o(l.rotate,f.rotate,c,h),s(l.skewX,f.skewX,c,h),u(l.scaleX,l.scaleY,f.scaleX,f.scaleY,c,h),l=f=null,function(d){for(var p=-1,x=h.length,b;++p{N4();qCe();UCe=NCe(BCe,"px, ","px)","deg)"),VCe=NCe(OCe,", ",")",")")});function HCe(e){return((e=Math.exp(e))+1/e)/2}function KLt(e){return((e=Math.exp(e))-1/e)/2}function JLt(e){return((e=Math.exp(2*e))-1)/(e+1)}var YLt,WCe,jCe=tc(()=>{YLt=1e-12;WCe=function e(t,r,n){function i(a,o){var s=a[0],u=a[1],l=a[2],f=o[0],c=o[1],h=o[2],d=f-s,p=c-u,x=d*d+p*p,b,v;if(x{L2();P2();ZCe=XCe(j_),YCe=XCe(ph)});function Xj(e,t){var r=ph((e=MT(e)).l,(t=MT(t)).l),n=ph(e.a,t.a),i=ph(e.b,t.b),a=ph(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}var JCe=tc(()=>{L2();P2()});function $Ce(e){return function(t,r){var n=e((t=F4(t)).h,(r=F4(r)).h),i=ph(t.c,r.c),a=ph(t.l,r.l),o=ph(t.opacity,r.opacity);return function(s){return t.h=n(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var QCe,eLe,tLe=tc(()=>{L2();P2();QCe=$Ce(j_),eLe=$Ce(ph)});function rLe(e){return function t(r){r=+r;function n(i,a){var o=e((i=ET(i)).h,(a=ET(a)).h),s=ph(i.s,a.s),u=ph(i.l,a.l),l=ph(i.opacity,a.opacity);return function(f){return i.h=o(f),i.s=s(f),i.l=u(Math.pow(f,r)),i.opacity=l(f),i+""}}return n.gamma=t,n}(1)}var iLe,nLe,aLe=tc(()=>{L2();P2();iLe=rLe(j_),nLe=rLe(ph)});function Zj(e,t){t===void 0&&(t=e,e=X_);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{q4()});function sLe(e,t){for(var r=new Array(t),n=0;n{});var z2={};bee(z2,{interpolate:()=>X_,interpolateArray:()=>kCe,interpolateBasis:()=>E6,interpolateBasisClosed:()=>C6,interpolateCubehelix:()=>iLe,interpolateCubehelixLong:()=>nLe,interpolateDate:()=>z6,interpolateDiscrete:()=>CCe,interpolateHcl:()=>QCe,interpolateHclLong:()=>eLe,interpolateHsl:()=>ZCe,interpolateHslLong:()=>YCe,interpolateHue:()=>PCe,interpolateLab:()=>Xj,interpolateNumber:()=>Dv,interpolateNumberArray:()=>CT,interpolateObject:()=>I6,interpolateRgb:()=>O4,interpolateRgbBasis:()=>MCe,interpolateRgbBasisClosed:()=>ECe,interpolateRound:()=>ICe,interpolateString:()=>R6,interpolateTransformCss:()=>UCe,interpolateTransformSvg:()=>VCe,interpolateZoom:()=>WCe,piecewise:()=>Zj,quantize:()=>sLe});var I2=tc(()=>{q4();Nj();k6();Fj();Uj();LCe();zCe();N4();P6();Vj();RCe();Wj();GCe();jCe();Oj();KCe();JCe();tLe();aLe();oLe();lLe()});var B6=Te((w0r,uLe)=>{"use strict";var $Lt=Mu(),QLt=jl();uLe.exports=function(t,r,n,i,a){var o=r.data.data,s=o.i,u=a||o.color;if(s>=0){r.i=o.i;var l=n.marker;l.pattern?(!l.colors||!l.pattern.shape)&&(l.color=u,r.color=u):(l.color=u,r.color=u),$Lt.pointStyle(t,n,i,r)}else QLt.fill(t,u)}});var Yj=Te((A0r,pLe)=>{"use strict";var fLe=Jl(),cLe=jl(),hLe=ei(),ePt=Ap().resizeText,tPt=B6();function rPt(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");ePt(e,t,"sunburst"),t.each(function(r){var n=fLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){fLe.select(this).call(dLe,o,a,e)})})}function dLe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=hLe.castOption(r,o,"marker.line.color")||cLe.defaultLine,u=hLe.castOption(r,o,"marker.line.width")||0;e.call(tPt,t,r,n).style("stroke-width",u).call(cLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}pLe.exports={style:rPt,styleOne:dLe}});var Kg=Te(gf=>{"use strict";var R2=ei(),iPt=jl(),nPt=Am(),vLe=l_();gf.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(n){if(gf.getPtId(n)===t)return r=n.copy()}),r||e};gf.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(n){for(var i=n.children||[],a=0;a0)};gf.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};gf.isHeader=function(e,t){return!(gf.isLeaf(e)||e.depth===t._maxDepth-1)};function mLe(e){return e.data.data.pid}gf.getParent=function(e,t){return gf.findEntryWithLevel(e,mLe(t))};gf.listPath=function(e,t){var r=e.parent;if(!r)return[];var n=t?[r.data[t]]:[r];return gf.listPath(r,t).concat(n)};gf.getPath=function(e){return gf.listPath(e,"label").join("/")+"/"};gf.formatValue=vLe.formatPieValue;gf.formatPercent=function(e,t){var r=R2.formatPercent(e,0);return r==="0%"&&(r=vLe.formatPiePercent(e,t)),r}});var G4=Te((S0r,_Le)=>{"use strict";var LT=Jl(),yLe=$l(),sPt=rv().appendArrayPointValue,U4=Xc(),gLe=ei(),lPt=m3(),ad=Kg(),uPt=l_(),fPt=uPt.formatPieValue;_Le.exports=function(t,r,n,i,a){var o=i[0],s=o.trace,u=o.hierarchy,l=s.type==="sunburst",f=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var c=function(p){var x=n._fullLayout;if(!(n._dragging||x.hovermode===!1)){var b=n._fullData[s.index],v=p.data.data,k=v.i,E=ad.isHierarchyRoot(p),T=ad.getParent(u,p),L=ad.getValue(p),_=function(Pe){return gLe.castOption(b,k,Pe)},C=_("hovertemplate"),M=U4.castHoverinfo(b,x,k),m=x.separators,P;if(C||M&&M!=="none"&&M!=="skip"){var A,B;l&&(A=o.cx+p.pxmid[0]*(1-p.rInscribed),B=o.cy+p.pxmid[1]*(1-p.rInscribed)),f&&(A=p._hoverX,B=p._hoverY);var F={},U=[],G=[],j=function(Pe){return U.indexOf(Pe)!==-1};M&&(U=M==="all"?b._module.attributes.hoverinfo.flags:M.split("+")),F.label=v.label,j("label")&&F.label&&G.push(F.label),v.hasOwnProperty("v")&&(F.value=v.v,F.valueLabel=fPt(F.value,m),j("value")&&G.push(F.valueLabel)),F.currentPath=p.currentPath=ad.getPath(p.data),j("current path")&&!E&&G.push(F.currentPath);var H,N=[],W=function(){N.indexOf(H)===-1&&(G.push(H),N.push(H))};F.percentParent=p.percentParent=L/ad.getValue(T),F.parent=p.parentString=ad.getPtLabel(T),j("percent parent")&&(H=ad.formatPercent(F.percentParent,m)+" of "+F.parent,W()),F.percentEntry=p.percentEntry=L/ad.getValue(r),F.entry=p.entry=ad.getPtLabel(r),j("percent entry")&&!E&&!p.onPathbar&&(H=ad.formatPercent(F.percentEntry,m)+" of "+F.entry,W()),F.percentRoot=p.percentRoot=L/ad.getValue(u),F.root=p.root=ad.getPtLabel(u),j("percent root")&&!E&&(H=ad.formatPercent(F.percentRoot,m)+" of "+F.root,W()),F.text=_("hovertext")||_("text"),j("text")&&(H=F.text,gLe.isValidTextValue(H)&&G.push(H)),P=[V4(p,b,a.eventDataKeys)];var re={trace:b,y:B,_x0:p._x0,_x1:p._x1,_y0:p._y0,_y1:p._y1,text:G.join("
"),name:C||j("name")?b.name:void 0,color:_("hoverlabel.bgcolor")||v.color,borderColor:_("hoverlabel.bordercolor"),fontFamily:_("hoverlabel.font.family"),fontSize:_("hoverlabel.font.size"),fontColor:_("hoverlabel.font.color"),fontWeight:_("hoverlabel.font.weight"),fontStyle:_("hoverlabel.font.style"),fontVariant:_("hoverlabel.font.variant"),nameLength:_("hoverlabel.namelength"),textAlign:_("hoverlabel.align"),hovertemplate:C,hovertemplateLabels:F,eventData:P};l&&(re.x0=A-p.rInscribed*p.rpx1,re.x1=A+p.rInscribed*p.rpx1,re.idealAlign=p.pxmid[0]<0?"left":"right"),f&&(re.x=A,re.idealAlign=A<0?"left":"right");var ae=[];U4.loneHover(re,{container:x._hoverlayer.node(),outerContainer:x._paper.node(),gd:n,inOut_bbox:ae}),P[0].bbox=ae[0],s._hasHoverLabel=!0}if(f){var be=t.select("path.surface");a.styleOne(be,p,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[V4(p,b,a.eventDataKeys)],event:LT.event})}},h=function(p){var x=n._fullLayout,b=n._fullData[s.index],v=LT.select(this).datum();if(s._hasHoverEvent&&(p.originalEvent=LT.event,n.emit("plotly_unhover",{points:[V4(v,b,a.eventDataKeys)],event:LT.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(U4.loneUnhover(x._hoverlayer.node()),s._hasHoverLabel=!1),f){var k=t.select("path.surface");a.styleOne(k,v,b,n,{hovered:!1})}},d=function(p){var x=n._fullLayout,b=n._fullData[s.index],v=l&&(ad.isHierarchyRoot(p)||ad.isLeaf(p)),k=ad.getPtId(p),E=ad.isEntry(p)?ad.findEntryWithChild(u,k):ad.findEntryWithLevel(u,k),T=ad.getPtId(E),L={points:[V4(p,b,a.eventDataKeys)],event:LT.event};v||(L.nextLevel=T);var _=lPt.triggerHandler(n,"plotly_"+s.type+"click",L);if(_!==!1&&x.hovermode&&(n._hoverdata=[V4(p,b,a.eventDataKeys)],U4.click(n,LT.event)),!v&&_!==!1&&!n._dragging&&!n._transitioning){yLe.call("_storeDirectGUIEdit",b,x._tracePreGUI[b.uid],{level:b.level});var C={data:[{level:T}],traces:[s.index]},M={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};U4.loneUnhover(x._hoverlayer.node()),yLe.call("animate",n,C,M)}};t.on("mouseover",c),t.on("mouseout",h),t.on("click",d)};function V4(e,t,r){for(var n=e.data.data,i={curveNumber:t.index,pointNumber:n.i,data:t._input,fullData:t},a=0;a{"use strict";var H4=Jl(),cPt=L4(),Zm=(I2(),ab(z2)).interpolate,xLe=Mu(),Sp=ei(),hPt=Xf(),TLe=Ap(),bLe=TLe.recordMinTextSize,dPt=TLe.clearMinTextSize,SLe=m6(),pPt=l_().getRotationAngle,vPt=SLe.computeTransform,mPt=SLe.transformInsideText,yPt=Yj().styleOne,gPt=N0().resizeText,_Pt=G4(),Kj=Sj(),qf=Kg();O6.plot=function(e,t,r,n){var i=e._fullLayout,a=i._sunburstlayer,o,s,u=!r,l=!i.uniformtext.mode&&qf.hasTransition(r);if(dPt("sunburst",i),o=a.selectAll("g.trace.sunburst").data(t,function(c){return c[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),l){n&&(s=n());var f=H4.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});f.each(function(){a.selectAll("g.trace").each(function(c){wLe(e,c,this,r)})})}else o.each(function(c){wLe(e,c,this,r)}),i.uniformtext.mode&&gPt(e,i._sunburstlayer.selectAll(".trace"),"sunburst");u&&o.exit().remove()};function wLe(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&qf.hasTransition(n),s=H4.select(r),u=s.selectAll("g.slice"),l=t[0],f=l.trace,c=l.hierarchy,h=qf.findEntryWithLevel(c,f.level),d=qf.getMaxDepth(f),p=a._size,x=f.domain,b=p.w*(x.x[1]-x.x[0]),v=p.h*(x.y[1]-x.y[0]),k=.5*Math.min(b,v),E=l.cx=p.l+p.w*(x.x[1]+x.x[0])/2,T=l.cy=p.t+p.h*(1-x.y[0])-v/2;if(!h)return u.remove();var L=null,_={};o&&u.each(function(de){_[qf.getPtId(de)]={rpx0:de.rpx0,rpx1:de.rpx1,x0:de.x0,x1:de.x1,transform:de.transform},!L&&qf.isEntry(de)&&(L=de)});var C=xPt(h).descendants(),M=h.height+1,m=0,P=d;l.hasMultipleRoots&&qf.isHierarchyRoot(h)&&(C=C.slice(1),M-=1,m=1,P+=1),C=C.filter(function(de){return de.y1<=P});var A=pPt(f.rotation);A&&C.forEach(function(de){de.x0+=A,de.x1+=A});var B=Math.min(M,d),F=function(de){return(de-m)/B*k},U=function(de,te){return[de*Math.cos(te),-de*Math.sin(te)]},G=function(de){return Sp.pathAnnulus(de.rpx0,de.rpx1,de.x0,de.x1,E,T)},j=function(de){return E+ALe(de)[0]*(de.transform.rCenter||0)+(de.transform.x||0)},H=function(de){return T+ALe(de)[1]*(de.transform.rCenter||0)+(de.transform.y||0)};u=u.data(C,qf.getPtId),u.enter().append("g").classed("slice",!0),o?u.exit().transition().each(function(){var de=H4.select(this),te=de.select("path.surface");te.transition().attrTween("d",function(Ee){var Me=ae(Ee);return function(Ne){return G(Me(Ne))}});var ke=de.select("g.slicetext");ke.attr("opacity",0)}).remove():u.exit().remove(),u.order();var N=null;if(o&&L){var W=qf.getPtId(L);u.each(function(de){N===null&&qf.getPtId(de)===W&&(N=de.x1)})}var re=u;o&&(re=re.transition().each("end",function(){var de=H4.select(this);qf.setSliceCursor(de,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),re.each(function(de){var te=H4.select(this),ke=Sp.ensureSingle(te,"path","surface",function(Ve){Ve.style("pointer-events",i?"none":"all")});de.rpx0=F(de.y0),de.rpx1=F(de.y1),de.xmid=(de.x0+de.x1)/2,de.pxmid=U(de.rpx1,de.xmid),de.midangle=-(de.xmid-Math.PI/2),de.startangle=-(de.x0-Math.PI/2),de.stopangle=-(de.x1-Math.PI/2),de.halfangle=.5*Math.min(Sp.angleDelta(de.x0,de.x1)||Math.PI,Math.PI),de.ring=1-de.rpx0/de.rpx1,de.rInscribed=bPt(de,f),o?ke.transition().attrTween("d",function(Ve){var ce=be(Ve);return function(Ye){return G(ce(Ye))}}):ke.attr("d",G),te.call(_Pt,h,e,t,{eventDataKeys:Kj.eventDataKeys,transitionTime:Kj.CLICK_TRANSITION_TIME,transitionEasing:Kj.CLICK_TRANSITION_EASING}).call(qf.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),ke.call(yPt,de,f,e);var Ee=Sp.ensureSingle(te,"g","slicetext"),Me=Sp.ensureSingle(Ee,"text","",function(Ve){Ve.attr("data-notex",1)}),Ne=Sp.ensureUniformFontSize(e,qf.determineTextFont(f,de,a.font));Me.text(O6.formatSliceLabel(de,h,f,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(xLe.font,Ne).call(hPt.convertToTspans,e);var Fe=xLe.bBox(Me.node());de.transform=mPt(Fe,de,l),de.transform.targetX=j(de),de.transform.targetY=H(de);var ye=function(Ve,ce){var Ye=Ve.transform;return vPt(Ye,ce),Ye.fontSize=Ne.size,bLe(f.type,Ye,a),Sp.getTextTransform(Ye)};o?Me.transition().attrTween("transform",function(Ve){var ce=Pe(Ve);return function(Ye){return ye(ce(Ye),Fe)}}):Me.attr("transform",ye(de,Fe))});function ae(de){var te=qf.getPtId(de),ke=_[te],Ee=_[qf.getPtId(h)],Me;if(Ee){var Ne=(de.x1>Ee.x1?2*Math.PI:0)+A;Me=de.rpx1N?2*Math.PI:0)+A;ke={x0:Me,x1:Me}}else ke={rpx0:k,rpx1:k},Sp.extendFlat(ke,Ce(de));else ke={rpx0:0,rpx1:0};else ke={x0:A,x1:A};return Zm(ke,Ee)}function Pe(de){var te=_[qf.getPtId(de)],ke,Ee=de.transform;if(te)ke=te;else if(ke={rpx1:de.rpx1,transform:{textPosAngle:Ee.textPosAngle,scale:0,rotate:Ee.rotate,rCenter:Ee.rCenter,x:Ee.x,y:Ee.y}},L)if(de.parent)if(N){var Me=de.x1>N?2*Math.PI:0;ke.x0=ke.x1=Me}else Sp.extendFlat(ke,Ce(de));else ke.x0=ke.x1=A;else ke.x0=ke.x1=A;var Ne=Zm(ke.transform.textPosAngle,de.transform.textPosAngle),Fe=Zm(ke.rpx1,de.rpx1),ye=Zm(ke.x0,de.x0),Ve=Zm(ke.x1,de.x1),ce=Zm(ke.transform.scale,Ee.scale),Ye=Zm(ke.transform.rotate,Ee.rotate),nt=Ee.rCenter===0?3:ke.transform.rCenter===0?1/3:1,gt=Zm(ke.transform.rCenter,Ee.rCenter),Nt=function(it){return gt(Math.pow(it,nt))};return function(it){var Ke=Fe(it),kt=ye(it),Tt=Ve(it),St=Nt(it),Dt=U(Ke,(kt+Tt)/2),Zt=Ne(it),Et={pxmid:Dt,rpx1:Ke,transform:{textPosAngle:Zt,rCenter:St,x:Ee.x,y:Ee.y}};return bLe(f.type,Ee,a),{transform:{targetX:j(Et),targetY:H(Et),scale:ce(it),rotate:Ye(it),rCenter:St}}}}function Ce(de){var te=de.parent,ke=_[qf.getPtId(te)],Ee={};if(ke){var Me=te.children,Ne=Me.indexOf(de),Fe=Me.length,ye=Zm(ke.x0,ke.x1);Ee.x0=ye(Ne/Fe),Ee.x1=ye(Ne/Fe)}else Ee.x0=Ee.x1=0;return Ee}}function xPt(e){return cPt.partition().size([2*Math.PI,e.height+1])(e)}O6.formatSliceLabel=function(e,t,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=i.separators,u=n[0],l=e.data.data,f=u.hierarchy,c=qf.isHierarchyRoot(e),h=qf.getParent(f,e),d=qf.getValue(e);if(!a){var p=o.split("+"),x=function(m){return p.indexOf(m)!==-1},b=[],v;if(x("label")&&l.label&&b.push(l.label),l.hasOwnProperty("v")&&x("value")&&b.push(qf.formatValue(l.v,s)),!c){x("current path")&&b.push(qf.getPath(e.data));var k=0;x("percent parent")&&k++,x("percent entry")&&k++,x("percent root")&&k++;var E=k>1;if(k){var T,L=function(m){v=qf.formatPercent(T,s),E&&(v+=" of "+m),b.push(v)};x("percent parent")&&!c&&(T=d/qf.getValue(h),L("parent")),x("percent entry")&&(T=d/qf.getValue(t),L("entry")),x("percent root")&&(T=d/qf.getValue(f),L("root"))}}return x("text")&&(v=Sp.castOption(r,l.i,"text"),Sp.isValidTextValue(v)&&b.push(v)),b.join("
")}var _=Sp.castOption(r,l.i,"texttemplate");if(!_)return"";var C={};l.label&&(C.label=l.label),l.hasOwnProperty("v")&&(C.value=l.v,C.valueLabel=qf.formatValue(l.v,s)),C.currentPath=qf.getPath(e.data),c||(C.percentParent=d/qf.getValue(h),C.percentParentLabel=qf.formatPercent(C.percentParent,s),C.parent=qf.getPtLabel(h)),C.percentEntry=d/qf.getValue(t),C.percentEntryLabel=qf.formatPercent(C.percentEntry,s),C.entry=qf.getPtLabel(t),C.percentRoot=d/qf.getValue(f),C.percentRootLabel=qf.formatPercent(C.percentRoot,s),C.root=qf.getPtLabel(f),l.hasOwnProperty("color")&&(C.color=l.color);var M=Sp.castOption(r,l.i,"text");return(Sp.isValidTextValue(M)||M==="")&&(C.text=M),C.customdata=Sp.castOption(r,l.i,"customdata"),Sp.texttemplateString(_,C,i._d3locale,C,r._meta||{})};function bPt(e){return e.rpx0===0&&Sp.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function ALe(e){return wPt(e.rpx1,e.transform.textPosAngle)}function wPt(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var ELe=Te((E0r,MLe)=>{"use strict";MLe.exports={moduleType:"trace",name:"sunburst",basePlotModule:Uke(),categories:[],animatable:!0,attributes:C4(),layoutAttributes:Mj(),supplyDefaults:Yke(),supplyLayoutDefaults:Jke(),calc:z4().calc,crossTraceCalc:z4().crossTraceCalc,plot:q6().plot,style:Yj().style,colorbar:ep(),meta:{}}});var CLe=Te((k0r,kLe)=>{"use strict";kLe.exports=ELe()});var PLe=Te(PT=>{"use strict";var LLe=Cc();PT.name="treemap";PT.plot=function(e,t,r,n){LLe.plotBasePlot(PT.name,e,t,r,n)};PT.clean=function(e,t,r,n){LLe.cleanBasePlot(PT.name,e,t,r,n)}});var D2=Te((L0r,zLe)=>{"use strict";zLe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var N6=Te((P0r,RLe)=>{"use strict";var APt=Nu().hovertemplateAttrs,TPt=Nu().texttemplateAttrs,SPt=nc(),MPt=zc().attributes,F2=T2(),Q0=C4(),ILe=D2(),Jj=Su().extendFlat,EPt=Id().pattern;RLe.exports={labels:Q0.labels,parents:Q0.parents,values:Q0.values,branchvalues:Q0.branchvalues,count:Q0.count,level:Q0.level,maxdepth:Q0.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:Jj({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:Q0.marker.colors,pattern:EPt,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:Q0.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},SPt("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:Jj({},F2.textfont,{}),editType:"calc"},text:F2.text,textinfo:Q0.textinfo,texttemplate:TPt({editType:"plot"},{keys:ILe.eventDataKeys.concat(["label","value"])}),hovertext:F2.hovertext,hoverinfo:Q0.hoverinfo,hovertemplate:APt({},{keys:ILe.eventDataKeys}),textfont:F2.textfont,insidetextfont:F2.insidetextfont,outsidetextfont:Jj({},F2.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:F2.sort,root:Q0.root,domain:MPt({name:"treemap",trace:!0,editType:"calc"})}});var $j=Te((z0r,DLe)=>{"use strict";DLe.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var qLe=Te((I0r,OLe)=>{"use strict";var FLe=ei(),kPt=N6(),CPt=jl(),LPt=zc().defaults,PPt=r0().handleText,zPt=Qb().TEXTPAD,IPt=S2().handleMarkerDefaults,BLe=_c(),RPt=BLe.hasColorscale,DPt=BLe.handleDefaults;OLe.exports=function(t,r,n,i){function a(b,v){return FLe.coerce(t,r,kPt,b,v)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var l=a("tiling.packing");l==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var f=a("text");a("texttemplate"),r.texttemplate||a("textinfo",FLe.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate");var c=a("pathbar.visible"),h="auto";PPt(t,r,i,a,h,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;IPt(t,r,i,a);var p=r._hasColorscale=RPt(t,"marker","colors")||(t.marker||{}).coloraxis;p?DPt(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var x=r.textfont.size*2;a("marker.pad.t",d?x/4:x),a("marker.pad.l",x/4),a("marker.pad.r",x/4),a("marker.pad.b",d?x:x/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:CPt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*zPt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),LPt(r,i,a),r._length=null}});var ULe=Te((R0r,NLe)=>{"use strict";var FPt=ei(),BPt=$j();NLe.exports=function(t,r){function n(i,a){return FPt.coerce(t,r,BPt,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var eX=Te(Qj=>{"use strict";var VLe=z4();Qj.calc=function(e,t){return VLe.calc(e,t)};Qj.crossTraceCalc=function(e){return VLe._runCrossTraceCalc("treemap",e)}});var tX=Te((F0r,GLe)=>{"use strict";GLe.exports=function e(t,r,n){var i;n.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),n.flipX&&(i=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-i),n.flipY&&(i=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-i);var a=t.children;if(a)for(var o=0;o{"use strict";var zT=L4(),OPt=tX();HLe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.packing==="dice-slice",s=n.pad[a?"bottom":"top"],u=n.pad[i?"right":"left"],l=n.pad[i?"left":"right"],f=n.pad[a?"top":"bottom"],c;o&&(c=u,u=s,s=c,c=l,l=f,f=c);var h=zT.treemap().tile(qPt(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(u).paddingRight(l).paddingTop(s).paddingBottom(f).size(o?[r[1],r[0]]:r)(t);return(o||i||a)&&OPt(h,r,{swapXY:o,flipX:i,flipY:a}),h};function qPt(e,t){switch(e){case"squarify":return zT.treemapSquarify.ratio(t);case"binary":return zT.treemapBinary;case"dice":return zT.treemapDice;case"slice":return zT.treemapSlice;default:return zT.treemapSliceDice}}});var U6=Te((O0r,ZLe)=>{"use strict";var WLe=Jl(),IT=jl(),jLe=ei(),iX=Kg(),NPt=Ap().resizeText,UPt=B6();function VPt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");NPt(e,t,"treemap"),t.each(function(r){var n=WLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){WLe.select(this).call(XLe,o,a,e,{hovered:!1})})})}function XLe(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,u,l,f=o.color,c=iX.isHierarchyRoot(t),h=1;if(a)u=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(c&&f===r.root.color)h=100,u="rgba(0,0,0,0)",l=0;else if(u=jLe.castOption(r,s,"marker.line.color")||IT.defaultLine,l=jLe.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var p=IT.combine(IT.addOpacity(r._backgroundColor,.75),f),x;if(d===!0){var b=iX.getMaxDepth(r);isFinite(b)?iX.isLeaf(t)?x=0:x=r._maxVisibleLayers-(t.data.depth-r._entryDepth):x=t.data.height+1}else x=t.data.depth-r._entryDepth,r._atRootLevel||x++;if(x>0)for(var v=0;v{"use strict";var YLe=Jl(),V6=ei(),KLe=Mu(),GPt=Xf(),HPt=rX(),JLe=U6().styleOne,nX=D2(),RT=Kg(),WPt=G4(),aX=!0;$Le.exports=function(t,r,n,i,a){var o=a.barDifY,s=a.width,u=a.height,l=a.viewX,f=a.viewY,c=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,p=a.hasTransition,x=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,v=a.makeUpdateTextInterpolator,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],_=L.trace,C=L.hierarchy,M=s/_._entryDepth,m=RT.listPath(n.data,"id"),P=HPt(C.copy(),[s,u],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(B){var F=m.indexOf(B.data.id);return F===-1?!1:(B.x0=M*F,B.x1=M*(F+1),B.y0=o,B.y1=o+u,B.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,RT.getPtId),i.enter().append("g").classed("pathbar",!0),x(i,aX,k,[s,u],c),i.order();var A=i;p&&(A=A.transition().each("end",function(){var B=YLe.select(this);RT.setSliceCursor(B,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),A.each(function(B){B._x0=l(B.x0),B._x1=l(B.x1),B._y0=f(B.y0),B._y1=f(B.y1),B._hoverX=l(B.x1-Math.min(s,u)/2),B._hoverY=f(B.y1-u/2);var F=YLe.select(this),U=V6.ensureSingle(F,"path","surface",function(N){N.style("pointer-events",E?"none":"all")});p?U.transition().attrTween("d",function(N){var W=b(N,aX,k,[s,u]);return function(re){return c(W(re))}}):U.attr("d",c),F.call(WPt,n,t,r,{styleOne:JLe,eventDataKeys:nX.eventDataKeys,transitionTime:nX.CLICK_TRANSITION_TIME,transitionEasing:nX.CLICK_TRANSITION_EASING}).call(RT.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),U.call(JLe,B,_,t,{hovered:!1}),B._text=(RT.getPtLabel(B)||"").split("
").join(" ")||"";var G=V6.ensureSingle(F,"g","slicetext"),j=V6.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),H=V6.ensureUniformFontSize(t,RT.determineTextFont(_,B,T.font,{onPathbar:!0}));j.text(B._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(KLe.font,H).call(GPt.convertToTspans,t),B.textBB=KLe.bBox(j.node()),B.transform=h(B,{fontSize:H.size,onPathbar:!0}),B.transform.fontSize=H.size,p?j.transition().attrTween("transform",function(N){var W=v(N,aX,k,[s,u]);return function(re){return d(W(re))}}):j.attr("transform",d(B))})}});var iPe=Te((N0r,rPe)=>{"use strict";var ePe=Jl(),oX=(I2(),ab(z2)).interpolate,Z_=Kg(),W4=ei(),tPe=Qb().TEXTPAD,jPt=i2(),XPt=jPt.toMoveInsideBar,ZPt=Ap(),sX=ZPt.recordMinTextSize,YPt=D2(),KPt=QLe();function B2(e){return Z_.isHierarchyRoot(e)?"":Z_.getPtId(e)}rPe.exports=function(t,r,n,i,a){var o=t._fullLayout,s=r[0],u=s.trace,l=u.type,f=l==="icicle",c=s.hierarchy,h=Z_.findEntryWithLevel(c,u.level),d=ePe.select(n),p=d.selectAll("g.pathbar"),x=d.selectAll("g.slice");if(!h){p.remove(),x.remove();return}var b=Z_.isHierarchyRoot(h),v=!o.uniformtext.mode&&Z_.hasTransition(i),k=Z_.getMaxDepth(u),E=function(Ae){return Ae.data.depth-h.data.depth-1?C+P:-(m+P):0,B={x0:M,x1:M,y0:A,y1:A+m},F=function(Ae,at,wt){var vt=u.tiling.pad,st=function(zt){return zt-vt<=at.x0},Ue=function(zt){return zt+vt>=at.x1},rt=function(zt){return zt-vt<=at.y0},$e=function(zt){return zt+vt>=at.y1};return Ae.x0===at.x0&&Ae.x1===at.x1&&Ae.y0===at.y0&&Ae.y1===at.y1?{x0:Ae.x0,x1:Ae.x1,y0:Ae.y0,y1:Ae.y1}:{x0:st(Ae.x0-vt)?0:Ue(Ae.x0-vt)?wt[0]:Ae.x0,x1:st(Ae.x1+vt)?0:Ue(Ae.x1+vt)?wt[0]:Ae.x1,y0:rt(Ae.y0-vt)?0:$e(Ae.y0-vt)?wt[1]:Ae.y0,y1:rt(Ae.y1+vt)?0:$e(Ae.y1+vt)?wt[1]:Ae.y1}},U=null,G={},j={},H=null,N=function(Ae,at){return at?G[B2(Ae)]:j[B2(Ae)]},W=function(Ae,at,wt,vt){if(at)return G[B2(c)]||B;var st=j[u.level]||wt;return E(Ae)?F(Ae,st,vt):{}};s.hasMultipleRoots&&b&&k++,u._maxDepth=k,u._backgroundColor=o.paper_bgcolor,u._entryDepth=h.data.depth,u._atRootLevel=b;var re=-_/2+T.l+T.w*(L.x[1]+L.x[0])/2,ae=-C/2+T.t+T.h*(1-(L.y[1]+L.y[0])/2),be=function(Ae){return re+Ae},Pe=function(Ae){return ae+Ae},Ce=Pe(0),de=be(0),te=function(Ae){return de+Ae},ke=function(Ae){return Ce+Ae};function Ee(Ae,at){return Ae+","+at}var Me=te(0),Ne=function(Ae){Ae.x=Math.max(Me,Ae.x)},Fe=u.pathbar.edgeshape,ye=function(Ae){var at=te(Math.max(Math.min(Ae.x0,Ae.x0),0)),wt=te(Math.min(Math.max(Ae.x1,Ae.x1),M)),vt=ke(Ae.y0),st=ke(Ae.y1),Ue=m/2,rt={},$e={};rt.x=at,$e.x=wt,rt.y=$e.y=(vt+st)/2;var zt={x:at,y:vt},Yt={x:wt,y:vt},hr={x:wt,y:st},yr={x:at,y:st};return Fe===">"?(zt.x-=Ue,Yt.x-=Ue,hr.x-=Ue,yr.x-=Ue):Fe==="/"?(hr.x-=Ue,yr.x-=Ue,rt.x-=Ue/2,$e.x-=Ue/2):Fe==="\\"?(zt.x-=Ue,Yt.x-=Ue,rt.x-=Ue/2,$e.x-=Ue/2):Fe==="<"&&(rt.x-=Ue,$e.x-=Ue),Ne(zt),Ne(yr),Ne(rt),Ne(Yt),Ne(hr),Ne($e),"M"+Ee(zt.x,zt.y)+"L"+Ee(Yt.x,Yt.y)+"L"+Ee($e.x,$e.y)+"L"+Ee(hr.x,hr.y)+"L"+Ee(yr.x,yr.y)+"L"+Ee(rt.x,rt.y)+"Z"},Ve=u[f?"tiling":"marker"].pad,ce=function(Ae){return u.textposition.indexOf(Ae)!==-1},Ye=ce("top"),nt=ce("left"),gt=ce("right"),Nt=ce("bottom"),it=function(Ae){var at=be(Ae.x0),wt=be(Ae.x1),vt=Pe(Ae.y0),st=Pe(Ae.y1),Ue=wt-at,rt=st-vt;if(!Ue||!rt)return"";var $e=u.marker.cornerradius||0,zt=Math.min($e,Ue/2,rt/2);zt&&Ae.data&&Ae.data.data&&Ae.data.data.label&&(Ye&&(zt=Math.min(zt,Ve.t)),nt&&(zt=Math.min(zt,Ve.l)),gt&&(zt=Math.min(zt,Ve.r)),Nt&&(zt=Math.min(zt,Ve.b)));var Yt=function(hr,yr){return zt?"a"+Ee(zt,zt)+" 0 0 1 "+Ee(hr,yr):""};return"M"+Ee(at,vt+zt)+Yt(zt,-zt)+"L"+Ee(wt-zt,vt)+Yt(zt,zt)+"L"+Ee(wt,st-zt)+Yt(-zt,zt)+"L"+Ee(at+zt,st)+Yt(-zt,-zt)+"Z"},Ke=function(Ae,at){var wt=Ae.x0,vt=Ae.x1,st=Ae.y0,Ue=Ae.y1,rt=Ae.textBB,$e=Ye||at.isHeader&&!Nt,zt=$e?"start":Nt?"end":"middle",Yt=ce("right"),hr=ce("left")||at.onPathbar,yr=hr?-1:Yt?1:0;if(at.isHeader){if(wt+=(f?Ve:Ve.l)-tPe,vt-=(f?Ve:Ve.r)-tPe,wt>=vt){var br=(wt+vt)/2;wt=br,vt=br}var Ut;Nt?(Ut=Ue-(f?Ve:Ve.b),st{"use strict";var JPt=Jl(),$Pt=Kg(),QPt=Ap(),ezt=QPt.clearMinTextSize,tzt=N0().resizeText,nPe=iPe();aPe.exports=function(t,r,n,i,a){var o=a.type,s=a.drawDescendants,u=t._fullLayout,l=u["_"+o+"layer"],f,c,h=!n;if(ezt(o,u),f=l.selectAll("g.trace."+o).data(r,function(p){return p[0].trace.uid}),f.enter().append("g").classed("trace",!0).classed(o,!0),f.order(),!u.uniformtext.mode&&$Pt.hasTransition(n)){i&&(c=i());var d=JPt.transition().duration(n.duration).ease(n.easing).each("end",function(){c&&c()}).each("interrupt",function(){c&&c()});d.each(function(){l.selectAll("g.trace").each(function(p){nPe(t,p,this,n,s)})})}else f.each(function(p){nPe(t,p,this,n,s)}),u.uniformtext.mode&&tzt(t,l.selectAll(".trace"),o);h&&f.exit().remove()}});var fPe=Te((V0r,uPe)=>{"use strict";var oPe=Jl(),G6=ei(),sPe=Mu(),rzt=Xf(),izt=rX(),lPe=U6().styleOne,uX=D2(),Y_=Kg(),nzt=G4(),azt=q6().formatSliceLabel,fX=!1;uPe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,u=a.viewX,l=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,x=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],_=L.trace,C=_.textposition.indexOf("left")!==-1,M=_.textposition.indexOf("right")!==-1,m=_.textposition.indexOf("bottom")!==-1,P=!m&&!_.marker.pad.t||m&&!_.marker.pad.b,A=izt(n,[o,s],{packing:_.tiling.packing,squarifyratio:_.tiling.squarifyratio,flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1,pad:{inner:_.tiling.pad,top:_.marker.pad.t,left:_.marker.pad.l,right:_.marker.pad.r,bottom:_.marker.pad.b}}),B=A.descendants(),F=1/0,U=-1/0;B.forEach(function(W){var re=W.depth;re>=_._maxDepth?(W.x0=W.x1=(W.x0+W.x1)/2,W.y0=W.y1=(W.y0+W.y1)/2):(F=Math.min(F,re),U=Math.max(U,re))}),i=i.data(B,Y_.getPtId),_._maxVisibleLayers=isFinite(U)?U-F+1:0,i.enter().append("g").classed("slice",!0),p(i,fX,k,[o,s],f),i.order();var G=null;if(d&&v){var j=Y_.getPtId(v);i.each(function(W){G===null&&Y_.getPtId(W)===j&&(G={x0:W.x0,x1:W.x1,y0:W.y0,y1:W.y1})})}var H=function(){return G||{x0:0,x1:o,y0:0,y1:s}},N=i;return d&&(N=N.transition().each("end",function(){var W=oPe.select(this);Y_.setSliceCursor(W,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(W){var re=Y_.isHeader(W,_);W._x0=u(W.x0),W._x1=u(W.x1),W._y0=l(W.y0),W._y1=l(W.y1),W._hoverX=u(W.x1-_.marker.pad.r),W._hoverY=l(m?W.y1-_.marker.pad.b/2:W.y0+_.marker.pad.t/2);var ae=oPe.select(this),be=G6.ensureSingle(ae,"path","surface",function(Ee){Ee.style("pointer-events",E?"none":"all")});d?be.transition().attrTween("d",function(Ee){var Me=x(Ee,fX,H(),[o,s]);return function(Ne){return f(Me(Ne))}}):be.attr("d",f),ae.call(nzt,n,t,r,{styleOne:lPe,eventDataKeys:uX.eventDataKeys,transitionTime:uX.CLICK_TRANSITION_TIME,transitionEasing:uX.CLICK_TRANSITION_EASING}).call(Y_.setSliceCursor,t,{isTransitioning:t._transitioning}),be.call(lPe,W,_,t,{hovered:!1}),W.x0===W.x1||W.y0===W.y1?W._text="":re?W._text=P?"":Y_.getPtLabel(W)||"":W._text=azt(W,n,_,r,T)||"";var Pe=G6.ensureSingle(ae,"g","slicetext"),Ce=G6.ensureSingle(Pe,"text","",function(Ee){Ee.attr("data-notex",1)}),de=G6.ensureUniformFontSize(t,Y_.determineTextFont(_,W,T.font)),te=W._text||" ",ke=re&&te.indexOf("
")===-1;Ce.text(te).classed("slicetext",!0).attr("text-anchor",M?"end":C||ke?"start":"middle").call(sPe.font,de).call(rzt.convertToTspans,t),W.textBB=sPe.bBox(Ce.node()),W.transform=c(W,{fontSize:de.size,isHeader:re}),W.transform.fontSize=de.size,d?Ce.transition().attrTween("transform",function(Ee){var Me=b(Ee,fX,H(),[o,s]);return function(Ne){return h(Me(Ne))}}):Ce.attr("transform",h(W))}),G}});var hPe=Te((G0r,cPe)=>{"use strict";var ozt=lX(),szt=fPe();cPe.exports=function(t,r,n,i){return ozt(t,r,n,i,{type:"treemap",drawDescendants:szt})}});var pPe=Te((H0r,dPe)=>{"use strict";dPe.exports={moduleType:"trace",name:"treemap",basePlotModule:PLe(),categories:[],animatable:!0,attributes:N6(),layoutAttributes:$j(),supplyDefaults:qLe(),supplyLayoutDefaults:ULe(),calc:eX().calc,crossTraceCalc:eX().crossTraceCalc,plot:hPe(),style:U6().style,colorbar:ep(),meta:{}}});var mPe=Te((W0r,vPe)=>{"use strict";vPe.exports=pPe()});var gPe=Te(DT=>{"use strict";var yPe=Cc();DT.name="icicle";DT.plot=function(e,t,r,n){yPe.plotBasePlot(DT.name,e,t,r,n)};DT.clean=function(e,t,r,n){yPe.cleanBasePlot(DT.name,e,t,r,n)}});var cX=Te((X0r,xPe)=>{"use strict";var lzt=Nu().hovertemplateAttrs,uzt=Nu().texttemplateAttrs,fzt=nc(),czt=zc().attributes,j4=T2(),o0=C4(),H6=N6(),_Pe=D2(),hzt=Su().extendFlat,dzt=Id().pattern;xPe.exports={labels:o0.labels,parents:o0.parents,values:o0.values,branchvalues:o0.branchvalues,count:o0.count,level:o0.level,maxdepth:o0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:H6.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:hzt({colors:o0.marker.colors,line:o0.marker.line,pattern:dzt,editType:"calc"},fzt("marker",{colorAttr:"colors",anim:!1})),leaf:o0.leaf,pathbar:H6.pathbar,text:j4.text,textinfo:o0.textinfo,texttemplate:uzt({editType:"plot"},{keys:_Pe.eventDataKeys.concat(["label","value"])}),hovertext:j4.hovertext,hoverinfo:o0.hoverinfo,hovertemplate:lzt({},{keys:_Pe.eventDataKeys}),textfont:j4.textfont,insidetextfont:j4.insidetextfont,outsidetextfont:H6.outsidetextfont,textposition:H6.textposition,sort:j4.sort,root:o0.root,domain:czt({name:"icicle",trace:!0,editType:"calc"})}});var hX=Te((Z0r,bPe)=>{"use strict";bPe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var SPe=Te((Y0r,TPe)=>{"use strict";var wPe=ei(),pzt=cX(),vzt=jl(),mzt=zc().defaults,yzt=r0().handleText,gzt=Qb().TEXTPAD,_zt=S2().handleMarkerDefaults,APe=_c(),xzt=APe.hasColorscale,bzt=APe.handleDefaults;TPe.exports=function(t,r,n,i){function a(d,p){return wPe.coerce(t,r,pzt,d,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var l=a("text");a("texttemplate"),r.texttemplate||a("textinfo",wPe.isArrayOrTypedArray(l)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f=a("pathbar.visible"),c="auto";yzt(t,r,i,a,c,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),_zt(t,r,i,a);var h=r._hasColorscale=xzt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&bzt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:vzt.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*gzt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),mzt(r,i,a),r._length=null}});var EPe=Te((K0r,MPe)=>{"use strict";var wzt=ei(),Azt=hX();MPe.exports=function(t,r){function n(i,a){return wzt.coerce(t,r,Azt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var pX=Te(dX=>{"use strict";var kPe=z4();dX.calc=function(e,t){return kPe.calc(e,t)};dX.crossTraceCalc=function(e){return kPe._runCrossTraceCalc("icicle",e)}});var LPe=Te(($0r,CPe)=>{"use strict";var Tzt=L4(),Szt=tX();CPe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.orientation==="h",s=n.maxDepth,u=r[0],l=r[1];s&&(u=(t.height+1)*r[0]/Math.min(t.height+1,s),l=(t.height+1)*r[1]/Math.min(t.height+1,s));var f=Tzt.partition().padding(n.pad.inner).size(o?[r[1],u]:[r[0],l])(t);return(o||i||a)&&Szt(f,r,{swapXY:o,flipX:i,flipY:a}),f}});var vX=Te((Q0r,DPe)=>{"use strict";var PPe=Jl(),zPe=jl(),IPe=ei(),Mzt=Ap().resizeText,Ezt=B6();function kzt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");Mzt(e,t,"icicle"),t.each(function(r){var n=PPe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){PPe.select(this).call(RPe,o,a,e)})})}function RPe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=IPe.castOption(r,o,"marker.line.color")||zPe.defaultLine,u=IPe.castOption(r,o,"marker.line.width")||0;e.call(Ezt,t,r,n).style("stroke-width",u).call(zPe.stroke,s).style("opacity",a?r.leaf.opacity:null)}DPe.exports={style:kzt,styleOne:RPe}});var NPe=Te((emr,qPe)=>{"use strict";var FPe=Jl(),W6=ei(),BPe=Mu(),Czt=Xf(),Lzt=LPe(),OPe=vX().styleOne,mX=D2(),FT=Kg(),Pzt=G4(),zzt=q6().formatSliceLabel,yX=!1;qPe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,u=a.viewX,l=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,x=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],_=L.trace,C=_.textposition.indexOf("left")!==-1,M=_.textposition.indexOf("right")!==-1,m=_.textposition.indexOf("bottom")!==-1,P=Lzt(n,[o,s],{flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1,orientation:_.tiling.orientation,pad:{inner:_.tiling.pad},maxDepth:_._maxDepth}),A=P.descendants(),B=1/0,F=-1/0;A.forEach(function(N){var W=N.depth;W>=_._maxDepth?(N.x0=N.x1=(N.x0+N.x1)/2,N.y0=N.y1=(N.y0+N.y1)/2):(B=Math.min(B,W),F=Math.max(F,W))}),i=i.data(A,FT.getPtId),_._maxVisibleLayers=isFinite(F)?F-B+1:0,i.enter().append("g").classed("slice",!0),p(i,yX,k,[o,s],f),i.order();var U=null;if(d&&v){var G=FT.getPtId(v);i.each(function(N){U===null&&FT.getPtId(N)===G&&(U={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var j=function(){return U||{x0:0,x1:o,y0:0,y1:s}},H=i;return d&&(H=H.transition().each("end",function(){var N=FPe.select(this);FT.setSliceCursor(N,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),H.each(function(N){N._x0=u(N.x0),N._x1=u(N.x1),N._y0=l(N.y0),N._y1=l(N.y1),N._hoverX=u(N.x1-_.tiling.pad),N._hoverY=l(m?N.y1-_.tiling.pad/2:N.y0+_.tiling.pad/2);var W=FPe.select(this),re=W6.ensureSingle(W,"path","surface",function(Ce){Ce.style("pointer-events",E?"none":"all")});d?re.transition().attrTween("d",function(Ce){var de=x(Ce,yX,j(),[o,s],{orientation:_.tiling.orientation,flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1});return function(te){return f(de(te))}}):re.attr("d",f),W.call(Pzt,n,t,r,{styleOne:OPe,eventDataKeys:mX.eventDataKeys,transitionTime:mX.CLICK_TRANSITION_TIME,transitionEasing:mX.CLICK_TRANSITION_EASING}).call(FT.setSliceCursor,t,{isTransitioning:t._transitioning}),re.call(OPe,N,_,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=zzt(N,n,_,r,T)||"";var ae=W6.ensureSingle(W,"g","slicetext"),be=W6.ensureSingle(ae,"text","",function(Ce){Ce.attr("data-notex",1)}),Pe=W6.ensureUniformFontSize(t,FT.determineTextFont(_,N,T.font));be.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",M?"end":C?"start":"middle").call(BPe.font,Pe).call(Czt.convertToTspans,t),N.textBB=BPe.bBox(be.node()),N.transform=c(N,{fontSize:Pe.size}),N.transform.fontSize=Pe.size,d?be.transition().attrTween("transform",function(Ce){var de=b(Ce,yX,j(),[o,s]);return function(te){return h(de(te))}}):be.attr("transform",h(N))}),U}});var VPe=Te((tmr,UPe)=>{"use strict";var Izt=lX(),Rzt=NPe();UPe.exports=function(t,r,n,i){return Izt(t,r,n,i,{type:"icicle",drawDescendants:Rzt})}});var HPe=Te((rmr,GPe)=>{"use strict";GPe.exports={moduleType:"trace",name:"icicle",basePlotModule:gPe(),categories:[],animatable:!0,attributes:cX(),layoutAttributes:hX(),supplyDefaults:SPe(),supplyLayoutDefaults:EPe(),calc:pX().calc,crossTraceCalc:pX().crossTraceCalc,plot:VPe(),style:vX().style,colorbar:ep(),meta:{}}});var jPe=Te((imr,WPe)=>{"use strict";WPe.exports=HPe()});var ZPe=Te(BT=>{"use strict";var XPe=Cc();BT.name="funnelarea";BT.plot=function(e,t,r,n){XPe.plotBasePlot(BT.name,e,t,r,n)};BT.clean=function(e,t,r,n){XPe.cleanBasePlot(BT.name,e,t,r,n)}});var gX=Te((amr,YPe)=>{"use strict";var ap=T2(),Dzt=Gf(),Fzt=zc().attributes,Bzt=Nu().hovertemplateAttrs,Ozt=Nu().texttemplateAttrs,O2=Su().extendFlat;YPe.exports={labels:ap.labels,label0:ap.label0,dlabel:ap.dlabel,values:ap.values,marker:{colors:ap.marker.colors,line:{color:O2({},ap.marker.line.color,{dflt:null}),width:O2({},ap.marker.line.width,{dflt:1}),editType:"calc"},pattern:ap.marker.pattern,editType:"calc"},text:ap.text,hovertext:ap.hovertext,scalegroup:O2({},ap.scalegroup,{}),textinfo:O2({},ap.textinfo,{flags:["label","text","value","percent"]}),texttemplate:Ozt({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:O2({},Dzt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Bzt({},{keys:["label","color","value","text","percent"]}),textposition:O2({},ap.textposition,{values:["inside","none"],dflt:"inside"}),textfont:ap.textfont,insidetextfont:ap.insidetextfont,title:{text:ap.title.text,font:ap.title.font,position:O2({},ap.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:Fzt({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var _X=Te((omr,KPe)=>{"use strict";var qzt=h6().hiddenlabels;KPe.exports={hiddenlabels:qzt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var QPe=Te((smr,$Pe)=>{"use strict";var JPe=ei(),Nzt=gX(),Uzt=zc().defaults,Vzt=r0().handleText,Gzt=S2().handleLabelsAndValues,Hzt=S2().handleMarkerDefaults;$Pe.exports=function(t,r,n,i){function a(x,b){return JPe.coerce(t,r,Nzt,x,b)}var o=a("labels"),s=a("values"),u=Gzt(o,s),l=u.len;if(r._hasLabels=u.hasLabels,r._hasValues=u.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!l){r.visible=!1;return}r._length=l,Hzt(t,r,i,a),a("scalegroup");var f=a("text"),c=a("texttemplate"),h;if(c||(h=a("textinfo",Array.isArray(f)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),c||h&&h!=="none"){var d=a("textposition");Vzt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");Uzt(r,i,a);var p=a("title.text");p&&(a("title.position"),JPe.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var tze=Te((lmr,eze)=>{"use strict";var Wzt=ei(),jzt=_X();eze.exports=function(t,r){function n(i,a){return Wzt.coerce(t,r,jzt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var xX=Te((umr,ize)=>{"use strict";var rze=_T();function Xzt(e,t){return rze.calc(e,t)}function Zzt(e){rze.crossTraceCalc(e,{type:"funnelarea"})}ize.exports={calc:Xzt,crossTraceCalc:Zzt}});var lze=Te((fmr,sze)=>{"use strict";var q2=Jl(),bX=Mu(),K_=ei(),Yzt=K_.strScale,nze=K_.strTranslate,aze=Xf(),Kzt=i2(),Jzt=Kzt.toMoveInsideBar,oze=Ap(),$zt=oze.recordMinTextSize,Qzt=oze.clearMinTextSize,eIt=l_(),OT=m6(),tIt=OT.attachFxHandlers,rIt=OT.determineInsideTextFont,iIt=OT.layoutAreas,nIt=OT.prerenderTitles,aIt=OT.positionTitleOutside,oIt=OT.formatSliceLabel;sze.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;Qzt("funnelarea",i),nIt(r,t),iIt(r,i._size),K_.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=q2.select(this),s=a[0],u=s.trace;lIt(a),o.each(function(){var l=q2.select(this).selectAll("g.slice").data(a);l.enter().append("g").classed("slice",!0),l.exit().remove(),l.each(function(c,h){if(c.hidden){q2.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=u.index;var d=s.cx,p=s.cy,x=q2.select(this),b=x.selectAll("path.surface").data([c]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),x.call(tIt,t,a);var v="M"+(d+c.TR[0])+","+(p+c.TR[1])+wX(c.TR,c.BR)+wX(c.BR,c.BL)+wX(c.BL,c.TL)+"Z";b.attr("d",v),oIt(t,c,s);var k=eIt.castOption(u.textposition,c.pts),E=x.selectAll("g.slicetext").data(c.text&&k!=="none"?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each(function(){var T=K_.ensureSingle(q2.select(this),"text","",function(B){B.attr("data-notex",1)}),L=K_.ensureUniformFontSize(t,rIt(u,c,i.font));T.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(bX.font,L).call(aze.convertToTspans,t);var _=bX.bBox(T.node()),C,M,m,P=Math.min(c.BL[1],c.BR[1])+p,A=Math.max(c.TL[1],c.TR[1])+p;M=Math.max(c.TL[0],c.BL[0])+d,m=Math.min(c.TR[0],c.BR[0])+d,C=Jzt(M,m,P,A,_,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),C.fontSize=L.size,$zt(u.type,C,i),a[h].transform=C,K_.setTransormAndDisplay(T,C)})});var f=q2.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=K_.ensureSingle(q2.select(this),"text","",function(p){p.attr("data-notex",1)}),h=u.title.text;u._meta&&(h=K_.templateString(h,u._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(bX.font,u.title.font).call(aze.convertToTspans,t);var d=aIt(s,i._size);c.attr("transform",nze(d.x,d.y)+Yzt(Math.min(1,d.scale))+nze(d.tx,d.ty))})})})};function wX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function sIt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function lIt(e){if(!e.length)return;var t=e[0],r=t.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a=Math.pow(i,2),o=t.vTotal,s=o*a/(1-a),u=o,l=s/o;function f(){var F=Math.sqrt(l);return{x:F,y:-F}}function c(){var F=f();return[F.x,F.y]}var h,d=[];d.push(c());var p,x;for(p=e.length-1;p>-1;p--)if(x=e[p],!x.hidden){var b=x.v/u;l+=b,d.push(c())}var v=1/0,k=-1/0;for(p=0;p-1;p--)if(x=e[p],!x.hidden){P+=1;var A=d[P][0],B=d[P][1];x.TL=[-A,B],x.TR=[A,B],x.BL=M,x.BR=m,x.pxmid=sIt(x.TR,x.BR),M=x.TL,m=x.TR}}});var cze=Te((cmr,fze)=>{"use strict";var uze=Jl(),uIt=D3(),fIt=Ap().resizeText;fze.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");fIt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=uze.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){uze.select(this).call(uIt,s,a,t)})})}});var dze=Te((hmr,hze)=>{"use strict";hze.exports={moduleType:"trace",name:"funnelarea",basePlotModule:ZPe(),categories:["pie-like","funnelarea","showLegend"],attributes:gX(),layoutAttributes:_X(),supplyDefaults:QPe(),supplyLayoutDefaults:tze(),calc:xX().calc,crossTraceCalc:xX().crossTraceCalc,plot:lze(),style:cze(),styleOne:D3(),meta:{}}});var vze=Te((dmr,pze)=>{"use strict";pze.exports=dze()});var qd=Te((pmr,mze)=>{(function(){var e={1964:function(i,a,o){i.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}},4793:function(i,a,o){"use strict";var s;function u(ge,fe){if(!(ge instanceof fe))throw new TypeError("Cannot call a class as a function")}function l(ge,fe){for(var pe=0;peM)throw new RangeError('The value "'+ge+'" is invalid for option "size"');var fe=new Uint8Array(ge);return Object.setPrototypeOf(fe,A.prototype),fe}function A(ge,fe,pe){if(typeof ge=="number"){if(typeof fe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return G(ge)}return B(ge,fe,pe)}A.poolSize=8192;function B(ge,fe,pe){if(typeof ge=="string")return j(ge,fe);if(ArrayBuffer.isView(ge))return N(ge);if(ge==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+T(ge));if(xe(ge,ArrayBuffer)||ge&&xe(ge.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(xe(ge,SharedArrayBuffer)||ge&&xe(ge.buffer,SharedArrayBuffer)))return W(ge,fe,pe);if(typeof ge=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var dt=ge.valueOf&&ge.valueOf();if(dt!=null&&dt!==ge)return A.from(dt,fe,pe);var It=re(ge);if(It)return It;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ge[Symbol.toPrimitive]=="function")return A.from(ge[Symbol.toPrimitive]("string"),fe,pe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+T(ge))}A.from=function(ge,fe,pe){return B(ge,fe,pe)},Object.setPrototypeOf(A.prototype,Uint8Array.prototype),Object.setPrototypeOf(A,Uint8Array);function F(ge){if(typeof ge!="number")throw new TypeError('"size" argument must be of type number');if(ge<0)throw new RangeError('The value "'+ge+'" is invalid for option "size"')}function U(ge,fe,pe){return F(ge),ge<=0?P(ge):fe!==void 0?typeof pe=="string"?P(ge).fill(fe,pe):P(ge).fill(fe):P(ge)}A.alloc=function(ge,fe,pe){return U(ge,fe,pe)};function G(ge){return F(ge),P(ge<0?0:ae(ge)|0)}A.allocUnsafe=function(ge){return G(ge)},A.allocUnsafeSlow=function(ge){return G(ge)};function j(ge,fe){if((typeof fe!="string"||fe==="")&&(fe="utf8"),!A.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe);var pe=Pe(ge,fe)|0,dt=P(pe),It=dt.write(ge,fe);return It!==pe&&(dt=dt.slice(0,It)),dt}function H(ge){for(var fe=ge.length<0?0:ae(ge.length)|0,pe=P(fe),dt=0;dt=M)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");return ge|0}function be(ge){return+ge!=ge&&(ge=0),A.alloc(+ge)}A.isBuffer=function(fe){return fe!=null&&fe._isBuffer===!0&&fe!==A.prototype},A.compare=function(fe,pe){if(xe(fe,Uint8Array)&&(fe=A.from(fe,fe.offset,fe.byteLength)),xe(pe,Uint8Array)&&(pe=A.from(pe,pe.offset,pe.byteLength)),!A.isBuffer(fe)||!A.isBuffer(pe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(fe===pe)return 0;for(var dt=fe.length,It=pe.length,Pt=0,rr=Math.min(dt,It);PtIt.length?(A.isBuffer(rr)||(rr=A.from(rr)),rr.copy(It,Pt)):Uint8Array.prototype.set.call(It,rr,Pt);else if(A.isBuffer(rr))rr.copy(It,Pt);else throw new TypeError('"list" argument must be an Array of Buffers');Pt+=rr.length}return It};function Pe(ge,fe){if(A.isBuffer(ge))return ge.length;if(ArrayBuffer.isView(ge)||xe(ge,ArrayBuffer))return ge.byteLength;if(typeof ge!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+T(ge));var pe=ge.length,dt=arguments.length>2&&arguments[2]===!0;if(!dt&&pe===0)return 0;for(var It=!1;;)switch(fe){case"ascii":case"latin1":case"binary":return pe;case"utf8":case"utf-8":return hr(ge).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe*2;case"hex":return pe>>>1;case"base64":return Ut(ge).length;default:if(It)return dt?-1:hr(ge).length;fe=(""+fe).toLowerCase(),It=!0}}A.byteLength=Pe;function Ce(ge,fe,pe){var dt=!1;if((fe===void 0||fe<0)&&(fe=0),fe>this.length||((pe===void 0||pe>this.length)&&(pe=this.length),pe<=0)||(pe>>>=0,fe>>>=0,pe<=fe))return"";for(ge||(ge="utf8");;)switch(ge){case"hex":return it(this,fe,pe);case"utf8":case"utf-8":return ce(this,fe,pe);case"ascii":return gt(this,fe,pe);case"latin1":case"binary":return Nt(this,fe,pe);case"base64":return Ve(this,fe,pe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ke(this,fe,pe);default:if(dt)throw new TypeError("Unknown encoding: "+ge);ge=(ge+"").toLowerCase(),dt=!0}}A.prototype._isBuffer=!0;function de(ge,fe,pe){var dt=ge[fe];ge[fe]=ge[pe],ge[pe]=dt}A.prototype.swap16=function(){var fe=this.length;if(fe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var pe=0;pepe&&(fe+=" ... "),""},C&&(A.prototype[C]=A.prototype.inspect),A.prototype.compare=function(fe,pe,dt,It,Pt){if(xe(fe,Uint8Array)&&(fe=A.from(fe,fe.offset,fe.byteLength)),!A.isBuffer(fe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+T(fe));if(pe===void 0&&(pe=0),dt===void 0&&(dt=fe?fe.length:0),It===void 0&&(It=0),Pt===void 0&&(Pt=this.length),pe<0||dt>fe.length||It<0||Pt>this.length)throw new RangeError("out of range index");if(It>=Pt&&pe>=dt)return 0;if(It>=Pt)return-1;if(pe>=dt)return 1;if(pe>>>=0,dt>>>=0,It>>>=0,Pt>>>=0,this===fe)return 0;for(var rr=Pt-It,Hr=dt-pe,Dr=Math.min(rr,Hr),Mr=this.slice(It,Pt),Fr=fe.slice(pe,dt),di=0;di2147483647?pe=2147483647:pe<-2147483648&&(pe=-2147483648),pe=+pe,Oe(pe)&&(pe=It?0:ge.length-1),pe<0&&(pe=ge.length+pe),pe>=ge.length){if(It)return-1;pe=ge.length-1}else if(pe<0)if(It)pe=0;else return-1;if(typeof fe=="string"&&(fe=A.from(fe,dt)),A.isBuffer(fe))return fe.length===0?-1:ke(ge,fe,pe,dt,It);if(typeof fe=="number")return fe=fe&255,typeof Uint8Array.prototype.indexOf=="function"?It?Uint8Array.prototype.indexOf.call(ge,fe,pe):Uint8Array.prototype.lastIndexOf.call(ge,fe,pe):ke(ge,[fe],pe,dt,It);throw new TypeError("val must be string, number or Buffer")}function ke(ge,fe,pe,dt,It){var Pt=1,rr=ge.length,Hr=fe.length;if(dt!==void 0&&(dt=String(dt).toLowerCase(),dt==="ucs2"||dt==="ucs-2"||dt==="utf16le"||dt==="utf-16le")){if(ge.length<2||fe.length<2)return-1;Pt=2,rr/=2,Hr/=2,pe/=2}function Dr(Ii,Ci){return Pt===1?Ii[Ci]:Ii.readUInt16BE(Ci*Pt)}var Mr;if(It){var Fr=-1;for(Mr=pe;Mrrr&&(pe=rr-Hr),Mr=pe;Mr>=0;Mr--){for(var di=!0,Di=0;DiIt&&(dt=It)):dt=It;var Pt=fe.length;dt>Pt/2&&(dt=Pt/2);var rr;for(rr=0;rr>>0,isFinite(dt)?(dt=dt>>>0,It===void 0&&(It="utf8")):(It=dt,dt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Pt=this.length-pe;if((dt===void 0||dt>Pt)&&(dt=Pt),fe.length>0&&(dt<0||pe<0)||pe>this.length)throw new RangeError("Attempt to write outside buffer bounds");It||(It="utf8");for(var rr=!1;;)switch(It){case"hex":return Ee(this,fe,pe,dt);case"utf8":case"utf-8":return Me(this,fe,pe,dt);case"ascii":case"latin1":case"binary":return Ne(this,fe,pe,dt);case"base64":return Fe(this,fe,pe,dt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,fe,pe,dt);default:if(rr)throw new TypeError("Unknown encoding: "+It);It=(""+It).toLowerCase(),rr=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ve(ge,fe,pe){return fe===0&&pe===ge.length?L.fromByteArray(ge):L.fromByteArray(ge.slice(fe,pe))}function ce(ge,fe,pe){pe=Math.min(ge.length,pe);for(var dt=[],It=fe;It239?4:Pt>223?3:Pt>191?2:1;if(It+Hr<=pe){var Dr=void 0,Mr=void 0,Fr=void 0,di=void 0;switch(Hr){case 1:Pt<128&&(rr=Pt);break;case 2:Dr=ge[It+1],(Dr&192)===128&&(di=(Pt&31)<<6|Dr&63,di>127&&(rr=di));break;case 3:Dr=ge[It+1],Mr=ge[It+2],(Dr&192)===128&&(Mr&192)===128&&(di=(Pt&15)<<12|(Dr&63)<<6|Mr&63,di>2047&&(di<55296||di>57343)&&(rr=di));break;case 4:Dr=ge[It+1],Mr=ge[It+2],Fr=ge[It+3],(Dr&192)===128&&(Mr&192)===128&&(Fr&192)===128&&(di=(Pt&15)<<18|(Dr&63)<<12|(Mr&63)<<6|Fr&63,di>65535&&di<1114112&&(rr=di))}}rr===null?(rr=65533,Hr=1):rr>65535&&(rr-=65536,dt.push(rr>>>10&1023|55296),rr=56320|rr&1023),dt.push(rr),It+=Hr}return nt(dt)}var Ye=4096;function nt(ge){var fe=ge.length;if(fe<=Ye)return String.fromCharCode.apply(String,ge);for(var pe="",dt=0;dtdt)&&(pe=dt);for(var It="",Pt=fe;Ptdt&&(fe=dt),pe<0?(pe+=dt,pe<0&&(pe=0)):pe>dt&&(pe=dt),pepe)throw new RangeError("Trying to access beyond buffer length")}A.prototype.readUintLE=A.prototype.readUIntLE=function(fe,pe,dt){fe=fe>>>0,pe=pe>>>0,dt||kt(fe,pe,this.length);for(var It=this[fe],Pt=1,rr=0;++rr>>0,pe=pe>>>0,dt||kt(fe,pe,this.length);for(var It=this[fe+--pe],Pt=1;pe>0&&(Pt*=256);)It+=this[fe+--pe]*Pt;return It},A.prototype.readUint8=A.prototype.readUInt8=function(fe,pe){return fe=fe>>>0,pe||kt(fe,1,this.length),this[fe]},A.prototype.readUint16LE=A.prototype.readUInt16LE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,2,this.length),this[fe]|this[fe+1]<<8},A.prototype.readUint16BE=A.prototype.readUInt16BE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,2,this.length),this[fe]<<8|this[fe+1]},A.prototype.readUint32LE=A.prototype.readUInt32LE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,4,this.length),(this[fe]|this[fe+1]<<8|this[fe+2]<<16)+this[fe+3]*16777216},A.prototype.readUint32BE=A.prototype.readUInt32BE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,4,this.length),this[fe]*16777216+(this[fe+1]<<16|this[fe+2]<<8|this[fe+3])},A.prototype.readBigUInt64LE=De(function(fe){fe=fe>>>0,rt(fe,"offset");var pe=this[fe],dt=this[fe+7];(pe===void 0||dt===void 0)&&$e(fe,this.length-8);var It=pe+this[++fe]*Math.pow(2,8)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,24),Pt=this[++fe]+this[++fe]*Math.pow(2,8)+this[++fe]*Math.pow(2,16)+dt*Math.pow(2,24);return BigInt(It)+(BigInt(Pt)<>>0,rt(fe,"offset");var pe=this[fe],dt=this[fe+7];(pe===void 0||dt===void 0)&&$e(fe,this.length-8);var It=pe*Math.pow(2,24)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,8)+this[++fe],Pt=this[++fe]*Math.pow(2,24)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,8)+dt;return(BigInt(It)<>>0,pe=pe>>>0,dt||kt(fe,pe,this.length);for(var It=this[fe],Pt=1,rr=0;++rr=Pt&&(It-=Math.pow(2,8*pe)),It},A.prototype.readIntBE=function(fe,pe,dt){fe=fe>>>0,pe=pe>>>0,dt||kt(fe,pe,this.length);for(var It=pe,Pt=1,rr=this[fe+--It];It>0&&(Pt*=256);)rr+=this[fe+--It]*Pt;return Pt*=128,rr>=Pt&&(rr-=Math.pow(2,8*pe)),rr},A.prototype.readInt8=function(fe,pe){return fe=fe>>>0,pe||kt(fe,1,this.length),this[fe]&128?(255-this[fe]+1)*-1:this[fe]},A.prototype.readInt16LE=function(fe,pe){fe=fe>>>0,pe||kt(fe,2,this.length);var dt=this[fe]|this[fe+1]<<8;return dt&32768?dt|4294901760:dt},A.prototype.readInt16BE=function(fe,pe){fe=fe>>>0,pe||kt(fe,2,this.length);var dt=this[fe+1]|this[fe]<<8;return dt&32768?dt|4294901760:dt},A.prototype.readInt32LE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,4,this.length),this[fe]|this[fe+1]<<8|this[fe+2]<<16|this[fe+3]<<24},A.prototype.readInt32BE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,4,this.length),this[fe]<<24|this[fe+1]<<16|this[fe+2]<<8|this[fe+3]},A.prototype.readBigInt64LE=De(function(fe){fe=fe>>>0,rt(fe,"offset");var pe=this[fe],dt=this[fe+7];(pe===void 0||dt===void 0)&&$e(fe,this.length-8);var It=this[fe+4]+this[fe+5]*Math.pow(2,8)+this[fe+6]*Math.pow(2,16)+(dt<<24);return(BigInt(It)<>>0,rt(fe,"offset");var pe=this[fe],dt=this[fe+7];(pe===void 0||dt===void 0)&&$e(fe,this.length-8);var It=(pe<<24)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,8)+this[++fe];return(BigInt(It)<>>0,pe||kt(fe,4,this.length),_.read(this,fe,!0,23,4)},A.prototype.readFloatBE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,4,this.length),_.read(this,fe,!1,23,4)},A.prototype.readDoubleLE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,8,this.length),_.read(this,fe,!0,52,8)},A.prototype.readDoubleBE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,8,this.length),_.read(this,fe,!1,52,8)};function Tt(ge,fe,pe,dt,It,Pt){if(!A.isBuffer(ge))throw new TypeError('"buffer" argument must be a Buffer instance');if(fe>It||fege.length)throw new RangeError("Index out of range")}A.prototype.writeUintLE=A.prototype.writeUIntLE=function(fe,pe,dt,It){if(fe=+fe,pe=pe>>>0,dt=dt>>>0,!It){var Pt=Math.pow(2,8*dt)-1;Tt(this,fe,pe,dt,Pt,0)}var rr=1,Hr=0;for(this[pe]=fe&255;++Hr>>0,dt=dt>>>0,!It){var Pt=Math.pow(2,8*dt)-1;Tt(this,fe,pe,dt,Pt,0)}var rr=dt-1,Hr=1;for(this[pe+rr]=fe&255;--rr>=0&&(Hr*=256);)this[pe+rr]=fe/Hr&255;return pe+dt},A.prototype.writeUint8=A.prototype.writeUInt8=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,1,255,0),this[pe]=fe&255,pe+1},A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,2,65535,0),this[pe]=fe&255,this[pe+1]=fe>>>8,pe+2},A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,2,65535,0),this[pe]=fe>>>8,this[pe+1]=fe&255,pe+2},A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,4,4294967295,0),this[pe+3]=fe>>>24,this[pe+2]=fe>>>16,this[pe+1]=fe>>>8,this[pe]=fe&255,pe+4},A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,4,4294967295,0),this[pe]=fe>>>24,this[pe+1]=fe>>>16,this[pe+2]=fe>>>8,this[pe+3]=fe&255,pe+4};function St(ge,fe,pe,dt,It){Ue(fe,dt,It,ge,pe,7);var Pt=Number(fe&BigInt(4294967295));ge[pe++]=Pt,Pt=Pt>>8,ge[pe++]=Pt,Pt=Pt>>8,ge[pe++]=Pt,Pt=Pt>>8,ge[pe++]=Pt;var rr=Number(fe>>BigInt(32)&BigInt(4294967295));return ge[pe++]=rr,rr=rr>>8,ge[pe++]=rr,rr=rr>>8,ge[pe++]=rr,rr=rr>>8,ge[pe++]=rr,pe}function Dt(ge,fe,pe,dt,It){Ue(fe,dt,It,ge,pe,7);var Pt=Number(fe&BigInt(4294967295));ge[pe+7]=Pt,Pt=Pt>>8,ge[pe+6]=Pt,Pt=Pt>>8,ge[pe+5]=Pt,Pt=Pt>>8,ge[pe+4]=Pt;var rr=Number(fe>>BigInt(32)&BigInt(4294967295));return ge[pe+3]=rr,rr=rr>>8,ge[pe+2]=rr,rr=rr>>8,ge[pe+1]=rr,rr=rr>>8,ge[pe]=rr,pe+8}A.prototype.writeBigUInt64LE=De(function(fe){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return St(this,fe,pe,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeBigUInt64BE=De(function(fe){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Dt(this,fe,pe,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeIntLE=function(fe,pe,dt,It){if(fe=+fe,pe=pe>>>0,!It){var Pt=Math.pow(2,8*dt-1);Tt(this,fe,pe,dt,Pt-1,-Pt)}var rr=0,Hr=1,Dr=0;for(this[pe]=fe&255;++rr>0)-Dr&255;return pe+dt},A.prototype.writeIntBE=function(fe,pe,dt,It){if(fe=+fe,pe=pe>>>0,!It){var Pt=Math.pow(2,8*dt-1);Tt(this,fe,pe,dt,Pt-1,-Pt)}var rr=dt-1,Hr=1,Dr=0;for(this[pe+rr]=fe&255;--rr>=0&&(Hr*=256);)fe<0&&Dr===0&&this[pe+rr+1]!==0&&(Dr=1),this[pe+rr]=(fe/Hr>>0)-Dr&255;return pe+dt},A.prototype.writeInt8=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,1,127,-128),fe<0&&(fe=255+fe+1),this[pe]=fe&255,pe+1},A.prototype.writeInt16LE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,2,32767,-32768),this[pe]=fe&255,this[pe+1]=fe>>>8,pe+2},A.prototype.writeInt16BE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,2,32767,-32768),this[pe]=fe>>>8,this[pe+1]=fe&255,pe+2},A.prototype.writeInt32LE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,4,2147483647,-2147483648),this[pe]=fe&255,this[pe+1]=fe>>>8,this[pe+2]=fe>>>16,this[pe+3]=fe>>>24,pe+4},A.prototype.writeInt32BE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,4,2147483647,-2147483648),fe<0&&(fe=4294967295+fe+1),this[pe]=fe>>>24,this[pe+1]=fe>>>16,this[pe+2]=fe>>>8,this[pe+3]=fe&255,pe+4},A.prototype.writeBigInt64LE=De(function(fe){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return St(this,fe,pe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeBigInt64BE=De(function(fe){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Dt(this,fe,pe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Zt(ge,fe,pe,dt,It,Pt){if(pe+dt>ge.length)throw new RangeError("Index out of range");if(pe<0)throw new RangeError("Index out of range")}function Et(ge,fe,pe,dt,It){return fe=+fe,pe=pe>>>0,It||Zt(ge,fe,pe,4,34028234663852886e22,-34028234663852886e22),_.write(ge,fe,pe,dt,23,4),pe+4}A.prototype.writeFloatLE=function(fe,pe,dt){return Et(this,fe,pe,!0,dt)},A.prototype.writeFloatBE=function(fe,pe,dt){return Et(this,fe,pe,!1,dt)};function Ae(ge,fe,pe,dt,It){return fe=+fe,pe=pe>>>0,It||Zt(ge,fe,pe,8,17976931348623157e292,-17976931348623157e292),_.write(ge,fe,pe,dt,52,8),pe+8}A.prototype.writeDoubleLE=function(fe,pe,dt){return Ae(this,fe,pe,!0,dt)},A.prototype.writeDoubleBE=function(fe,pe,dt){return Ae(this,fe,pe,!1,dt)},A.prototype.copy=function(fe,pe,dt,It){if(!A.isBuffer(fe))throw new TypeError("argument should be a Buffer");if(dt||(dt=0),!It&&It!==0&&(It=this.length),pe>=fe.length&&(pe=fe.length),pe||(pe=0),It>0&&It=this.length)throw new RangeError("Index out of range");if(It<0)throw new RangeError("sourceEnd out of bounds");It>this.length&&(It=this.length),fe.length-pe>>0,dt=dt===void 0?this.length:dt>>>0,fe||(fe=0);var rr;if(typeof fe=="number")for(rr=pe;rrMath.pow(2,32)?It=vt(String(pe)):typeof pe=="bigint"&&(It=String(pe),(pe>Math.pow(BigInt(2),BigInt(32))||pe<-Math.pow(BigInt(2),BigInt(32)))&&(It=vt(It)),It+="n"),dt+=" It must be ".concat(fe,". Received ").concat(It),dt},RangeError);function vt(ge){for(var fe="",pe=ge.length,dt=ge[0]==="-"?1:0;pe>=dt+4;pe-=3)fe="_".concat(ge.slice(pe-3,pe)).concat(fe);return"".concat(ge.slice(0,pe)).concat(fe)}function st(ge,fe,pe){rt(fe,"offset"),(ge[fe]===void 0||ge[fe+pe]===void 0)&&$e(fe,ge.length-(pe+1))}function Ue(ge,fe,pe,dt,It,Pt){if(ge>pe||ge3?fe===0||fe===BigInt(0)?Hr=">= 0".concat(rr," and < 2").concat(rr," ** ").concat((Pt+1)*8).concat(rr):Hr=">= -(2".concat(rr," ** ").concat((Pt+1)*8-1).concat(rr,") and < 2 ** ")+"".concat((Pt+1)*8-1).concat(rr):Hr=">= ".concat(fe).concat(rr," and <= ").concat(pe).concat(rr),new at.ERR_OUT_OF_RANGE("value",Hr,ge)}st(dt,It,Pt)}function rt(ge,fe){if(typeof ge!="number")throw new at.ERR_INVALID_ARG_TYPE(fe,"number",ge)}function $e(ge,fe,pe){throw Math.floor(ge)!==ge?(rt(ge,pe),new at.ERR_OUT_OF_RANGE(pe||"offset","an integer",ge)):fe<0?new at.ERR_BUFFER_OUT_OF_BOUNDS:new at.ERR_OUT_OF_RANGE(pe||"offset",">= ".concat(pe?1:0," and <= ").concat(fe),ge)}var zt=/[^+/0-9A-Za-z-_]/g;function Yt(ge){if(ge=ge.split("=")[0],ge=ge.trim().replace(zt,""),ge.length<2)return"";for(;ge.length%4!==0;)ge=ge+"=";return ge}function hr(ge,fe){fe=fe||1/0;for(var pe,dt=ge.length,It=null,Pt=[],rr=0;rr55295&&pe<57344){if(!It){if(pe>56319){(fe-=3)>-1&&Pt.push(239,191,189);continue}else if(rr+1===dt){(fe-=3)>-1&&Pt.push(239,191,189);continue}It=pe;continue}if(pe<56320){(fe-=3)>-1&&Pt.push(239,191,189),It=pe;continue}pe=(It-55296<<10|pe-56320)+65536}else It&&(fe-=3)>-1&&Pt.push(239,191,189);if(It=null,pe<128){if((fe-=1)<0)break;Pt.push(pe)}else if(pe<2048){if((fe-=2)<0)break;Pt.push(pe>>6|192,pe&63|128)}else if(pe<65536){if((fe-=3)<0)break;Pt.push(pe>>12|224,pe>>6&63|128,pe&63|128)}else if(pe<1114112){if((fe-=4)<0)break;Pt.push(pe>>18|240,pe>>12&63|128,pe>>6&63|128,pe&63|128)}else throw new Error("Invalid code point")}return Pt}function yr(ge){for(var fe=[],pe=0;pe>8,It=pe%256,Pt.push(It),Pt.push(dt);return Pt}function Ut(ge){return L.toByteArray(Yt(ge))}function Ie(ge,fe,pe,dt){var It;for(It=0;It=fe.length||It>=ge.length);++It)fe[It+pe]=ge[It];return It}function xe(ge,fe){return ge instanceof fe||ge!=null&&ge.constructor!=null&&ge.constructor.name!=null&&ge.constructor.name===fe.name}function Oe(ge){return ge!==ge}var Re=function(){for(var ge="0123456789abcdef",fe=new Array(256),pe=0;pe<16;++pe)for(var dt=pe*16,It=0;It<16;++It)fe[dt+It]=ge[pe]+ge[It];return fe}();function De(ge){return typeof BigInt=="undefined"?ct:ge}function ct(){throw new Error("BigInt not supported")}},9216:function(i){"use strict";i.exports=u,i.exports.isMobile=u,i.exports.default=u;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,s=/android|ipad|playbook|silk/i;function u(l){l||(l={});var f=l.ua;if(!f&&typeof navigator!="undefined"&&(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;var c=a.test(f)&&!o.test(f)||!!l.tablet&&s.test(f);return!c&&l.tablet&&l.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(c=!0),c}},6296:function(i,a,o){"use strict";i.exports=h;var s=o(7261),u=o(9977),l=o(1811);function f(d,p){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(x){return d[x]}),this._mode=p,this._active=d[p],this._active||(this._mode="turntable",this._active=d.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var c=f.prototype;c.flush=function(d){for(var p=this._controllerList,x=0;x0)throw new Error("Invalid string. Length must be a multiple of 4");var L=E.indexOf("=");L===-1&&(L=T);var _=L===T?0:4-L%4;return[L,_]}function d(E){var T=h(E),L=T[0],_=T[1];return(L+_)*3/4-_}function p(E,T,L){return(T+L)*3/4-L}function x(E){var T,L=h(E),_=L[0],C=L[1],M=new u(p(E,_,C)),m=0,P=C>0?_-4:_,A;for(A=0;A>16&255,M[m++]=T>>8&255,M[m++]=T&255;return C===2&&(T=s[E.charCodeAt(A)]<<2|s[E.charCodeAt(A+1)]>>4,M[m++]=T&255),C===1&&(T=s[E.charCodeAt(A)]<<10|s[E.charCodeAt(A+1)]<<4|s[E.charCodeAt(A+2)]>>2,M[m++]=T>>8&255,M[m++]=T&255),M}function b(E){return o[E>>18&63]+o[E>>12&63]+o[E>>6&63]+o[E&63]}function v(E,T,L){for(var _,C=[],M=T;MP?P:m+M));return _===1?(T=E[L-1],C.push(o[T>>2]+o[T<<4&63]+"==")):_===2&&(T=(E[L-2]<<8)+E[L-1],C.push(o[T>>10]+o[T>>4&63]+o[T<<2&63]+"=")),C.join("")}},3865:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]).add(f[0].mul(l[1])),l[1].mul(f[1]))}},1318:function(i){"use strict";i.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]),l[1].mul(f[0]))}},7842:function(i,a,o){"use strict";var s=o(6330),u=o(1533),l=o(2651),f=o(6768),c=o(869),h=o(8697);i.exports=d;function d(p,x){if(s(p))return x?h(p,d(x)):[p[0].clone(),p[1].clone()];var b=0,v,k;if(u(p))v=p.clone();else if(typeof p=="string")v=f(p);else{if(p===0)return[l(0),l(1)];if(p===Math.floor(p))v=l(p);else{for(;p!==Math.floor(p);)p=p*Math.pow(2,256),b-=256;v=l(p)}}if(s(x))v.mul(x[1]),k=x[0].clone();else if(u(x))k=x.clone();else if(typeof x=="string")k=f(x);else if(!x)k=l(1);else if(x===Math.floor(x))k=l(x);else{for(;x!==Math.floor(x);)x=x*Math.pow(2,256),b+=256;k=l(x)}return b>0?v=v.ushln(b):b<0&&(k=k.ushln(-b)),c(v,k)}},6330:function(i,a,o){"use strict";var s=o(1533);i.exports=u;function u(l){return Array.isArray(l)&&l.length===2&&s(l[0])&&s(l[1])}},5716:function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return l.cmp(new s(0))}},1369:function(i,a,o){"use strict";var s=o(5716);i.exports=u;function u(l){var f=l.length,c=l.words,h=0;if(f===1)h=c[0];else if(f===2)h=c[0]+c[1]*67108864;else for(var d=0;d20?52:h+32}},1533:function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return l&&typeof l=="object"&&!!l.words}},2651:function(i,a,o){"use strict";var s=o(6859),u=o(2361);i.exports=l;function l(f){var c=u.exponent(f);return c<52?new s(f):new s(f*Math.pow(2,52-c)).ushln(c-52)}},869:function(i,a,o){"use strict";var s=o(2651),u=o(5716);i.exports=l;function l(f,c){var h=u(f),d=u(c);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(f=f.neg(),c=c.neg());var p=f.gcd(c);return p.cmpn(1)?[f.div(p),c.div(p)]:[f,c]}},6768:function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return new s(l)}},6504:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[0]),l[1].mul(f[1]))}},7721:function(i,a,o){"use strict";var s=o(5716);i.exports=u;function u(l){return s(l[0])*s(l[1])}},5572:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]).sub(l[1].mul(f[0])),l[1].mul(f[1]))}},946:function(i,a,o){"use strict";var s=o(1369),u=o(4025);i.exports=l;function l(f){var c=f[0],h=f[1];if(c.cmpn(0)===0)return 0;var d=c.abs().divmod(h.abs()),p=d.div,x=s(p),b=d.mod,v=c.negative!==h.negative?-1:1;if(b.cmpn(0)===0)return v*x;if(x){var k=u(x)+4,E=s(b.ushln(k).divRound(h));return v*(x+E*Math.pow(2,-k))}else{var T=h.bitLength()-b.bitLength()+53,E=s(b.ushln(T).divRound(h));return T<1023?v*E*Math.pow(2,-T):(E*=Math.pow(2,-1023),v*E*Math.pow(2,1023-T))}}},2478:function(i){"use strict";function a(c,h,d,p,x){for(var b=x+1;p<=x;){var v=p+x>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E>=0?(b=v,x=v-1):p=v+1}return b}function o(c,h,d,p,x){for(var b=x+1;p<=x;){var v=p+x>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E>0?(b=v,x=v-1):p=v+1}return b}function s(c,h,d,p,x){for(var b=p-1;p<=x;){var v=p+x>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E<0?(b=v,p=v+1):x=v-1}return b}function u(c,h,d,p,x){for(var b=p-1;p<=x;){var v=p+x>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E<=0?(b=v,p=v+1):x=v-1}return b}function l(c,h,d,p,x){for(;p<=x;){var b=p+x>>>1,v=c[b],k=d!==void 0?d(v,h):v-h;if(k===0)return b;k<=0?p=b+1:x=b-1}return-1}function f(c,h,d,p,x,b){return typeof d=="function"?b(c,h,d,p===void 0?0:p|0,x===void 0?c.length-1:x|0):b(c,h,void 0,d===void 0?0:d|0,p===void 0?c.length-1:p|0)}i.exports={ge:function(c,h,d,p,x){return f(c,h,d,p,x,a)},gt:function(c,h,d,p,x){return f(c,h,d,p,x,o)},lt:function(c,h,d,p,x){return f(c,h,d,p,x,s)},le:function(c,h,d,p,x){return f(c,h,d,p,x,u)},eq:function(c,h,d,p,x){return f(c,h,d,p,x,l)}}},8828:function(i,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(l<0)},a.abs=function(l){var f=l>>o-1;return(l^f)-f},a.min=function(l,f){return f^(l^f)&-(l65535)<<4,l>>>=f,c=(l>255)<<3,l>>>=c,f|=c,c=(l>15)<<2,l>>>=c,f|=c,c=(l>3)<<1,l>>>=c,f|=c,f|l>>1},a.log10=function(l){return l>=1e9?9:l>=1e8?8:l>=1e7?7:l>=1e6?6:l>=1e5?5:l>=1e4?4:l>=1e3?3:l>=100?2:l>=10?1:0},a.popCount=function(l){return l=l-(l>>>1&1431655765),l=(l&858993459)+(l>>>2&858993459),(l+(l>>>4)&252645135)*16843009>>>24};function s(l){var f=32;return l&=-l,l&&f--,l&65535&&(f-=16),l&16711935&&(f-=8),l&252645135&&(f-=4),l&858993459&&(f-=2),l&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(l){return l+=l===0,--l,l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l+1},a.prevPow2=function(l){return l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l-(l>>>1)},a.parity=function(l){return l^=l>>>16,l^=l>>>8,l^=l>>>4,l&=15,27030>>>l&1};var u=new Array(256);(function(l){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;l[f]=h<>>8&255]<<16|u[l>>>16&255]<<8|u[l>>>24&255]},a.interleave2=function(l,f){return l&=65535,l=(l|l<<8)&16711935,l=(l|l<<4)&252645135,l=(l|l<<2)&858993459,l=(l|l<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,l|f<<1},a.deinterleave2=function(l,f){return l=l>>>f&1431655765,l=(l|l>>>1)&858993459,l=(l|l>>>2)&252645135,l=(l|l>>>4)&16711935,l=(l|l>>>16)&65535,l<<16>>16},a.interleave3=function(l,f,c){return l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,l|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,l|c<<2},a.deinterleave3=function(l,f){return l=l>>>f&1227133513,l=(l|l>>>2)&3272356035,l=(l|l>>>4)&251719695,l=(l|l>>>8)&4278190335,l=(l|l>>>16)&1023,l<<22>>22},a.nextCombination=function(l){var f=l|l-1;return f+1|(~f&-~f)-1>>>s(l)+1}},6859:function(i,a,o){i=o.nmd(i),function(s,u){"use strict";function l(H,N){if(!H)throw new Error(N||"Assertion failed")}function f(H,N){H.super_=N;var W=function(){};W.prototype=N.prototype,H.prototype=new W,H.prototype.constructor=H}function c(H,N,W){if(c.isBN(H))return H;this.negative=0,this.words=null,this.length=0,this.red=null,H!==null&&((N==="le"||N==="be")&&(W=N,N=10),this._init(H||0,N||10,W||"be"))}typeof s=="object"?s.exports=c:u.BN=c,c.BN=c,c.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(H){}c.isBN=function(N){return N instanceof c?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===c.wordSize&&Array.isArray(N.words)},c.max=function(N,W){return N.cmp(W)>0?N:W},c.min=function(N,W){return N.cmp(W)<0?N:W},c.prototype._init=function(N,W,re){if(typeof N=="number")return this._initNumber(N,W,re);if(typeof N=="object")return this._initArray(N,W,re);W==="hex"&&(W=16),l(W===(W|0)&&W>=2&&W<=36),N=N.toString().replace(/\s+/g,"");var ae=0;N[0]==="-"&&(ae++,this.negative=1),ae=0;ae-=3)Pe=N[ae]|N[ae-1]<<8|N[ae-2]<<16,this.words[be]|=Pe<>>26-Ce&67108863,Ce+=24,Ce>=26&&(Ce-=26,be++);else if(re==="le")for(ae=0,be=0;ae>>26-Ce&67108863,Ce+=24,Ce>=26&&(Ce-=26,be++);return this.strip()};function d(H,N){var W=H.charCodeAt(N);return W>=65&&W<=70?W-55:W>=97&&W<=102?W-87:W-48&15}function p(H,N,W){var re=d(H,W);return W-1>=N&&(re|=d(H,W-1)<<4),re}c.prototype._parseHex=function(N,W,re){this.length=Math.ceil((N.length-W)/6),this.words=new Array(this.length);for(var ae=0;ae=W;ae-=2)Ce=p(N,W,ae)<=18?(be-=18,Pe+=1,this.words[Pe]|=Ce>>>26):be+=8;else{var de=N.length-W;for(ae=de%2===0?W+1:W;ae=18?(be-=18,Pe+=1,this.words[Pe]|=Ce>>>26):be+=8}this.strip()};function x(H,N,W,re){for(var ae=0,be=Math.min(H.length,W),Pe=N;Pe=49?ae+=Ce-49+10:Ce>=17?ae+=Ce-17+10:ae+=Ce}return ae}c.prototype._parseBase=function(N,W,re){this.words=[0],this.length=1;for(var ae=0,be=1;be<=67108863;be*=W)ae++;ae--,be=be/W|0;for(var Pe=N.length-re,Ce=Pe%ae,de=Math.min(Pe,Pe-Ce)+re,te=0,ke=re;ke1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];c.prototype.toString=function(N,W){N=N||10,W=W|0||1;var re;if(N===16||N==="hex"){re="";for(var ae=0,be=0,Pe=0;Pe>>24-ae&16777215,be!==0||Pe!==this.length-1?re=b[6-de.length]+de+re:re=de+re,ae+=2,ae>=26&&(ae-=26,Pe--)}for(be!==0&&(re=be.toString(16)+re);re.length%W!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}if(N===(N|0)&&N>=2&&N<=36){var te=v[N],ke=k[N];re="";var Ee=this.clone();for(Ee.negative=0;!Ee.isZero();){var Me=Ee.modn(ke).toString(N);Ee=Ee.idivn(ke),Ee.isZero()?re=Me+re:re=b[te-Me.length]+Me+re}for(this.isZero()&&(re="0"+re);re.length%W!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}l(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(N,W){return l(typeof h!="undefined"),this.toArrayLike(h,N,W)},c.prototype.toArray=function(N,W){return this.toArrayLike(Array,N,W)},c.prototype.toArrayLike=function(N,W,re){var ae=this.byteLength(),be=re||Math.max(1,ae);l(ae<=be,"byte array longer than desired length"),l(be>0,"Requested array length <= 0"),this.strip();var Pe=W==="le",Ce=new N(be),de,te,ke=this.clone();if(Pe){for(te=0;!ke.isZero();te++)de=ke.andln(255),ke.iushrn(8),Ce[te]=de;for(;te=4096&&(re+=13,W>>>=13),W>=64&&(re+=7,W>>>=7),W>=8&&(re+=4,W>>>=4),W>=2&&(re+=2,W>>>=2),re+W},c.prototype._zeroBits=function(N){if(N===0)return 26;var W=N,re=0;return(W&8191)===0&&(re+=13,W>>>=13),(W&127)===0&&(re+=7,W>>>=7),(W&15)===0&&(re+=4,W>>>=4),(W&3)===0&&(re+=2,W>>>=2),(W&1)===0&&re++,re},c.prototype.bitLength=function(){var N=this.words[this.length-1],W=this._countBits(N);return(this.length-1)*26+W};function E(H){for(var N=new Array(H.bitLength()),W=0;W>>ae}return N}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,W=0;WN.length?this.clone().ior(N):N.clone().ior(this)},c.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},c.prototype.iuand=function(N){var W;this.length>N.length?W=N:W=this;for(var re=0;reN.length?this.clone().iand(N):N.clone().iand(this)},c.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},c.prototype.iuxor=function(N){var W,re;this.length>N.length?(W=this,re=N):(W=N,re=this);for(var ae=0;aeN.length?this.clone().ixor(N):N.clone().ixor(this)},c.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},c.prototype.inotn=function(N){l(typeof N=="number"&&N>=0);var W=Math.ceil(N/26)|0,re=N%26;this._expand(W),re>0&&W--;for(var ae=0;ae0&&(this.words[ae]=~this.words[ae]&67108863>>26-re),this.strip()},c.prototype.notn=function(N){return this.clone().inotn(N)},c.prototype.setn=function(N,W){l(typeof N=="number"&&N>=0);var re=N/26|0,ae=N%26;return this._expand(re+1),W?this.words[re]=this.words[re]|1<N.length?(re=this,ae=N):(re=N,ae=this);for(var be=0,Pe=0;Pe>>26;for(;be!==0&&Pe>>26;if(this.length=re.length,be!==0)this.words[this.length]=be,this.length++;else if(re!==this)for(;PeN.length?this.clone().iadd(N):N.clone().iadd(this)},c.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var W=this.iadd(N);return N.negative=1,W._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var re=this.cmp(N);if(re===0)return this.negative=0,this.length=1,this.words[0]=0,this;var ae,be;re>0?(ae=this,be=N):(ae=N,be=this);for(var Pe=0,Ce=0;Ce>26,this.words[Ce]=W&67108863;for(;Pe!==0&&Ce>26,this.words[Ce]=W&67108863;if(Pe===0&&Ce>>26,Ee=de&67108863,Me=Math.min(te,N.length-1),Ne=Math.max(0,te-H.length+1);Ne<=Me;Ne++){var Fe=te-Ne|0;ae=H.words[Fe]|0,be=N.words[Ne]|0,Pe=ae*be+Ee,ke+=Pe/67108864|0,Ee=Pe&67108863}W.words[te]=Ee|0,de=ke|0}return de!==0?W.words[te]=de|0:W.length--,W.strip()}var L=function(N,W,re){var ae=N.words,be=W.words,Pe=re.words,Ce=0,de,te,ke,Ee=ae[0]|0,Me=Ee&8191,Ne=Ee>>>13,Fe=ae[1]|0,ye=Fe&8191,Ve=Fe>>>13,ce=ae[2]|0,Ye=ce&8191,nt=ce>>>13,gt=ae[3]|0,Nt=gt&8191,it=gt>>>13,Ke=ae[4]|0,kt=Ke&8191,Tt=Ke>>>13,St=ae[5]|0,Dt=St&8191,Zt=St>>>13,Et=ae[6]|0,Ae=Et&8191,at=Et>>>13,wt=ae[7]|0,vt=wt&8191,st=wt>>>13,Ue=ae[8]|0,rt=Ue&8191,$e=Ue>>>13,zt=ae[9]|0,Yt=zt&8191,hr=zt>>>13,yr=be[0]|0,br=yr&8191,Ut=yr>>>13,Ie=be[1]|0,xe=Ie&8191,Oe=Ie>>>13,Re=be[2]|0,De=Re&8191,ct=Re>>>13,ge=be[3]|0,fe=ge&8191,pe=ge>>>13,dt=be[4]|0,It=dt&8191,Pt=dt>>>13,rr=be[5]|0,Hr=rr&8191,Dr=rr>>>13,Mr=be[6]|0,Fr=Mr&8191,di=Mr>>>13,Di=be[7]|0,Ii=Di&8191,Ci=Di>>>13,nn=be[8]|0,ii=nn&8191,wi=nn>>>13,Gi=be[9]|0,Bt=Gi&8191,yt=Gi>>>13;re.negative=N.negative^W.negative,re.length=19,de=Math.imul(Me,br),te=Math.imul(Me,Ut),te=te+Math.imul(Ne,br)|0,ke=Math.imul(Ne,Ut);var Vt=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,de=Math.imul(ye,br),te=Math.imul(ye,Ut),te=te+Math.imul(Ve,br)|0,ke=Math.imul(Ve,Ut),de=de+Math.imul(Me,xe)|0,te=te+Math.imul(Me,Oe)|0,te=te+Math.imul(Ne,xe)|0,ke=ke+Math.imul(Ne,Oe)|0;var Wt=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,de=Math.imul(Ye,br),te=Math.imul(Ye,Ut),te=te+Math.imul(nt,br)|0,ke=Math.imul(nt,Ut),de=de+Math.imul(ye,xe)|0,te=te+Math.imul(ye,Oe)|0,te=te+Math.imul(Ve,xe)|0,ke=ke+Math.imul(Ve,Oe)|0,de=de+Math.imul(Me,De)|0,te=te+Math.imul(Me,ct)|0,te=te+Math.imul(Ne,De)|0,ke=ke+Math.imul(Ne,ct)|0;var _r=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(_r>>>26)|0,_r&=67108863,de=Math.imul(Nt,br),te=Math.imul(Nt,Ut),te=te+Math.imul(it,br)|0,ke=Math.imul(it,Ut),de=de+Math.imul(Ye,xe)|0,te=te+Math.imul(Ye,Oe)|0,te=te+Math.imul(nt,xe)|0,ke=ke+Math.imul(nt,Oe)|0,de=de+Math.imul(ye,De)|0,te=te+Math.imul(ye,ct)|0,te=te+Math.imul(Ve,De)|0,ke=ke+Math.imul(Ve,ct)|0,de=de+Math.imul(Me,fe)|0,te=te+Math.imul(Me,pe)|0,te=te+Math.imul(Ne,fe)|0,ke=ke+Math.imul(Ne,pe)|0;var Lr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,de=Math.imul(kt,br),te=Math.imul(kt,Ut),te=te+Math.imul(Tt,br)|0,ke=Math.imul(Tt,Ut),de=de+Math.imul(Nt,xe)|0,te=te+Math.imul(Nt,Oe)|0,te=te+Math.imul(it,xe)|0,ke=ke+Math.imul(it,Oe)|0,de=de+Math.imul(Ye,De)|0,te=te+Math.imul(Ye,ct)|0,te=te+Math.imul(nt,De)|0,ke=ke+Math.imul(nt,ct)|0,de=de+Math.imul(ye,fe)|0,te=te+Math.imul(ye,pe)|0,te=te+Math.imul(Ve,fe)|0,ke=ke+Math.imul(Ve,pe)|0,de=de+Math.imul(Me,It)|0,te=te+Math.imul(Me,Pt)|0,te=te+Math.imul(Ne,It)|0,ke=ke+Math.imul(Ne,Pt)|0;var Ur=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,de=Math.imul(Dt,br),te=Math.imul(Dt,Ut),te=te+Math.imul(Zt,br)|0,ke=Math.imul(Zt,Ut),de=de+Math.imul(kt,xe)|0,te=te+Math.imul(kt,Oe)|0,te=te+Math.imul(Tt,xe)|0,ke=ke+Math.imul(Tt,Oe)|0,de=de+Math.imul(Nt,De)|0,te=te+Math.imul(Nt,ct)|0,te=te+Math.imul(it,De)|0,ke=ke+Math.imul(it,ct)|0,de=de+Math.imul(Ye,fe)|0,te=te+Math.imul(Ye,pe)|0,te=te+Math.imul(nt,fe)|0,ke=ke+Math.imul(nt,pe)|0,de=de+Math.imul(ye,It)|0,te=te+Math.imul(ye,Pt)|0,te=te+Math.imul(Ve,It)|0,ke=ke+Math.imul(Ve,Pt)|0,de=de+Math.imul(Me,Hr)|0,te=te+Math.imul(Me,Dr)|0,te=te+Math.imul(Ne,Hr)|0,ke=ke+Math.imul(Ne,Dr)|0;var Ir=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,de=Math.imul(Ae,br),te=Math.imul(Ae,Ut),te=te+Math.imul(at,br)|0,ke=Math.imul(at,Ut),de=de+Math.imul(Dt,xe)|0,te=te+Math.imul(Dt,Oe)|0,te=te+Math.imul(Zt,xe)|0,ke=ke+Math.imul(Zt,Oe)|0,de=de+Math.imul(kt,De)|0,te=te+Math.imul(kt,ct)|0,te=te+Math.imul(Tt,De)|0,ke=ke+Math.imul(Tt,ct)|0,de=de+Math.imul(Nt,fe)|0,te=te+Math.imul(Nt,pe)|0,te=te+Math.imul(it,fe)|0,ke=ke+Math.imul(it,pe)|0,de=de+Math.imul(Ye,It)|0,te=te+Math.imul(Ye,Pt)|0,te=te+Math.imul(nt,It)|0,ke=ke+Math.imul(nt,Pt)|0,de=de+Math.imul(ye,Hr)|0,te=te+Math.imul(ye,Dr)|0,te=te+Math.imul(Ve,Hr)|0,ke=ke+Math.imul(Ve,Dr)|0,de=de+Math.imul(Me,Fr)|0,te=te+Math.imul(Me,di)|0,te=te+Math.imul(Ne,Fr)|0,ke=ke+Math.imul(Ne,di)|0;var Gr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,de=Math.imul(vt,br),te=Math.imul(vt,Ut),te=te+Math.imul(st,br)|0,ke=Math.imul(st,Ut),de=de+Math.imul(Ae,xe)|0,te=te+Math.imul(Ae,Oe)|0,te=te+Math.imul(at,xe)|0,ke=ke+Math.imul(at,Oe)|0,de=de+Math.imul(Dt,De)|0,te=te+Math.imul(Dt,ct)|0,te=te+Math.imul(Zt,De)|0,ke=ke+Math.imul(Zt,ct)|0,de=de+Math.imul(kt,fe)|0,te=te+Math.imul(kt,pe)|0,te=te+Math.imul(Tt,fe)|0,ke=ke+Math.imul(Tt,pe)|0,de=de+Math.imul(Nt,It)|0,te=te+Math.imul(Nt,Pt)|0,te=te+Math.imul(it,It)|0,ke=ke+Math.imul(it,Pt)|0,de=de+Math.imul(Ye,Hr)|0,te=te+Math.imul(Ye,Dr)|0,te=te+Math.imul(nt,Hr)|0,ke=ke+Math.imul(nt,Dr)|0,de=de+Math.imul(ye,Fr)|0,te=te+Math.imul(ye,di)|0,te=te+Math.imul(Ve,Fr)|0,ke=ke+Math.imul(Ve,di)|0,de=de+Math.imul(Me,Ii)|0,te=te+Math.imul(Me,Ci)|0,te=te+Math.imul(Ne,Ii)|0,ke=ke+Math.imul(Ne,Ci)|0;var jr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(jr>>>26)|0,jr&=67108863,de=Math.imul(rt,br),te=Math.imul(rt,Ut),te=te+Math.imul($e,br)|0,ke=Math.imul($e,Ut),de=de+Math.imul(vt,xe)|0,te=te+Math.imul(vt,Oe)|0,te=te+Math.imul(st,xe)|0,ke=ke+Math.imul(st,Oe)|0,de=de+Math.imul(Ae,De)|0,te=te+Math.imul(Ae,ct)|0,te=te+Math.imul(at,De)|0,ke=ke+Math.imul(at,ct)|0,de=de+Math.imul(Dt,fe)|0,te=te+Math.imul(Dt,pe)|0,te=te+Math.imul(Zt,fe)|0,ke=ke+Math.imul(Zt,pe)|0,de=de+Math.imul(kt,It)|0,te=te+Math.imul(kt,Pt)|0,te=te+Math.imul(Tt,It)|0,ke=ke+Math.imul(Tt,Pt)|0,de=de+Math.imul(Nt,Hr)|0,te=te+Math.imul(Nt,Dr)|0,te=te+Math.imul(it,Hr)|0,ke=ke+Math.imul(it,Dr)|0,de=de+Math.imul(Ye,Fr)|0,te=te+Math.imul(Ye,di)|0,te=te+Math.imul(nt,Fr)|0,ke=ke+Math.imul(nt,di)|0,de=de+Math.imul(ye,Ii)|0,te=te+Math.imul(ye,Ci)|0,te=te+Math.imul(Ve,Ii)|0,ke=ke+Math.imul(Ve,Ci)|0,de=de+Math.imul(Me,ii)|0,te=te+Math.imul(Me,wi)|0,te=te+Math.imul(Ne,ii)|0,ke=ke+Math.imul(Ne,wi)|0;var yi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(yi>>>26)|0,yi&=67108863,de=Math.imul(Yt,br),te=Math.imul(Yt,Ut),te=te+Math.imul(hr,br)|0,ke=Math.imul(hr,Ut),de=de+Math.imul(rt,xe)|0,te=te+Math.imul(rt,Oe)|0,te=te+Math.imul($e,xe)|0,ke=ke+Math.imul($e,Oe)|0,de=de+Math.imul(vt,De)|0,te=te+Math.imul(vt,ct)|0,te=te+Math.imul(st,De)|0,ke=ke+Math.imul(st,ct)|0,de=de+Math.imul(Ae,fe)|0,te=te+Math.imul(Ae,pe)|0,te=te+Math.imul(at,fe)|0,ke=ke+Math.imul(at,pe)|0,de=de+Math.imul(Dt,It)|0,te=te+Math.imul(Dt,Pt)|0,te=te+Math.imul(Zt,It)|0,ke=ke+Math.imul(Zt,Pt)|0,de=de+Math.imul(kt,Hr)|0,te=te+Math.imul(kt,Dr)|0,te=te+Math.imul(Tt,Hr)|0,ke=ke+Math.imul(Tt,Dr)|0,de=de+Math.imul(Nt,Fr)|0,te=te+Math.imul(Nt,di)|0,te=te+Math.imul(it,Fr)|0,ke=ke+Math.imul(it,di)|0,de=de+Math.imul(Ye,Ii)|0,te=te+Math.imul(Ye,Ci)|0,te=te+Math.imul(nt,Ii)|0,ke=ke+Math.imul(nt,Ci)|0,de=de+Math.imul(ye,ii)|0,te=te+Math.imul(ye,wi)|0,te=te+Math.imul(Ve,ii)|0,ke=ke+Math.imul(Ve,wi)|0,de=de+Math.imul(Me,Bt)|0,te=te+Math.imul(Me,yt)|0,te=te+Math.imul(Ne,Bt)|0,ke=ke+Math.imul(Ne,yt)|0;var Ei=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,de=Math.imul(Yt,xe),te=Math.imul(Yt,Oe),te=te+Math.imul(hr,xe)|0,ke=Math.imul(hr,Oe),de=de+Math.imul(rt,De)|0,te=te+Math.imul(rt,ct)|0,te=te+Math.imul($e,De)|0,ke=ke+Math.imul($e,ct)|0,de=de+Math.imul(vt,fe)|0,te=te+Math.imul(vt,pe)|0,te=te+Math.imul(st,fe)|0,ke=ke+Math.imul(st,pe)|0,de=de+Math.imul(Ae,It)|0,te=te+Math.imul(Ae,Pt)|0,te=te+Math.imul(at,It)|0,ke=ke+Math.imul(at,Pt)|0,de=de+Math.imul(Dt,Hr)|0,te=te+Math.imul(Dt,Dr)|0,te=te+Math.imul(Zt,Hr)|0,ke=ke+Math.imul(Zt,Dr)|0,de=de+Math.imul(kt,Fr)|0,te=te+Math.imul(kt,di)|0,te=te+Math.imul(Tt,Fr)|0,ke=ke+Math.imul(Tt,di)|0,de=de+Math.imul(Nt,Ii)|0,te=te+Math.imul(Nt,Ci)|0,te=te+Math.imul(it,Ii)|0,ke=ke+Math.imul(it,Ci)|0,de=de+Math.imul(Ye,ii)|0,te=te+Math.imul(Ye,wi)|0,te=te+Math.imul(nt,ii)|0,ke=ke+Math.imul(nt,wi)|0,de=de+Math.imul(ye,Bt)|0,te=te+Math.imul(ye,yt)|0,te=te+Math.imul(Ve,Bt)|0,ke=ke+Math.imul(Ve,yt)|0;var Vi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,de=Math.imul(Yt,De),te=Math.imul(Yt,ct),te=te+Math.imul(hr,De)|0,ke=Math.imul(hr,ct),de=de+Math.imul(rt,fe)|0,te=te+Math.imul(rt,pe)|0,te=te+Math.imul($e,fe)|0,ke=ke+Math.imul($e,pe)|0,de=de+Math.imul(vt,It)|0,te=te+Math.imul(vt,Pt)|0,te=te+Math.imul(st,It)|0,ke=ke+Math.imul(st,Pt)|0,de=de+Math.imul(Ae,Hr)|0,te=te+Math.imul(Ae,Dr)|0,te=te+Math.imul(at,Hr)|0,ke=ke+Math.imul(at,Dr)|0,de=de+Math.imul(Dt,Fr)|0,te=te+Math.imul(Dt,di)|0,te=te+Math.imul(Zt,Fr)|0,ke=ke+Math.imul(Zt,di)|0,de=de+Math.imul(kt,Ii)|0,te=te+Math.imul(kt,Ci)|0,te=te+Math.imul(Tt,Ii)|0,ke=ke+Math.imul(Tt,Ci)|0,de=de+Math.imul(Nt,ii)|0,te=te+Math.imul(Nt,wi)|0,te=te+Math.imul(it,ii)|0,ke=ke+Math.imul(it,wi)|0,de=de+Math.imul(Ye,Bt)|0,te=te+Math.imul(Ye,yt)|0,te=te+Math.imul(nt,Bt)|0,ke=ke+Math.imul(nt,yt)|0;var ti=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(ti>>>26)|0,ti&=67108863,de=Math.imul(Yt,fe),te=Math.imul(Yt,pe),te=te+Math.imul(hr,fe)|0,ke=Math.imul(hr,pe),de=de+Math.imul(rt,It)|0,te=te+Math.imul(rt,Pt)|0,te=te+Math.imul($e,It)|0,ke=ke+Math.imul($e,Pt)|0,de=de+Math.imul(vt,Hr)|0,te=te+Math.imul(vt,Dr)|0,te=te+Math.imul(st,Hr)|0,ke=ke+Math.imul(st,Dr)|0,de=de+Math.imul(Ae,Fr)|0,te=te+Math.imul(Ae,di)|0,te=te+Math.imul(at,Fr)|0,ke=ke+Math.imul(at,di)|0,de=de+Math.imul(Dt,Ii)|0,te=te+Math.imul(Dt,Ci)|0,te=te+Math.imul(Zt,Ii)|0,ke=ke+Math.imul(Zt,Ci)|0,de=de+Math.imul(kt,ii)|0,te=te+Math.imul(kt,wi)|0,te=te+Math.imul(Tt,ii)|0,ke=ke+Math.imul(Tt,wi)|0,de=de+Math.imul(Nt,Bt)|0,te=te+Math.imul(Nt,yt)|0,te=te+Math.imul(it,Bt)|0,ke=ke+Math.imul(it,yt)|0;var en=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(en>>>26)|0,en&=67108863,de=Math.imul(Yt,It),te=Math.imul(Yt,Pt),te=te+Math.imul(hr,It)|0,ke=Math.imul(hr,Pt),de=de+Math.imul(rt,Hr)|0,te=te+Math.imul(rt,Dr)|0,te=te+Math.imul($e,Hr)|0,ke=ke+Math.imul($e,Dr)|0,de=de+Math.imul(vt,Fr)|0,te=te+Math.imul(vt,di)|0,te=te+Math.imul(st,Fr)|0,ke=ke+Math.imul(st,di)|0,de=de+Math.imul(Ae,Ii)|0,te=te+Math.imul(Ae,Ci)|0,te=te+Math.imul(at,Ii)|0,ke=ke+Math.imul(at,Ci)|0,de=de+Math.imul(Dt,ii)|0,te=te+Math.imul(Dt,wi)|0,te=te+Math.imul(Zt,ii)|0,ke=ke+Math.imul(Zt,wi)|0,de=de+Math.imul(kt,Bt)|0,te=te+Math.imul(kt,yt)|0,te=te+Math.imul(Tt,Bt)|0,ke=ke+Math.imul(Tt,yt)|0;var Yr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,de=Math.imul(Yt,Hr),te=Math.imul(Yt,Dr),te=te+Math.imul(hr,Hr)|0,ke=Math.imul(hr,Dr),de=de+Math.imul(rt,Fr)|0,te=te+Math.imul(rt,di)|0,te=te+Math.imul($e,Fr)|0,ke=ke+Math.imul($e,di)|0,de=de+Math.imul(vt,Ii)|0,te=te+Math.imul(vt,Ci)|0,te=te+Math.imul(st,Ii)|0,ke=ke+Math.imul(st,Ci)|0,de=de+Math.imul(Ae,ii)|0,te=te+Math.imul(Ae,wi)|0,te=te+Math.imul(at,ii)|0,ke=ke+Math.imul(at,wi)|0,de=de+Math.imul(Dt,Bt)|0,te=te+Math.imul(Dt,yt)|0,te=te+Math.imul(Zt,Bt)|0,ke=ke+Math.imul(Zt,yt)|0;var oi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(oi>>>26)|0,oi&=67108863,de=Math.imul(Yt,Fr),te=Math.imul(Yt,di),te=te+Math.imul(hr,Fr)|0,ke=Math.imul(hr,di),de=de+Math.imul(rt,Ii)|0,te=te+Math.imul(rt,Ci)|0,te=te+Math.imul($e,Ii)|0,ke=ke+Math.imul($e,Ci)|0,de=de+Math.imul(vt,ii)|0,te=te+Math.imul(vt,wi)|0,te=te+Math.imul(st,ii)|0,ke=ke+Math.imul(st,wi)|0,de=de+Math.imul(Ae,Bt)|0,te=te+Math.imul(Ae,yt)|0,te=te+Math.imul(at,Bt)|0,ke=ke+Math.imul(at,yt)|0;var Bi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,de=Math.imul(Yt,Ii),te=Math.imul(Yt,Ci),te=te+Math.imul(hr,Ii)|0,ke=Math.imul(hr,Ci),de=de+Math.imul(rt,ii)|0,te=te+Math.imul(rt,wi)|0,te=te+Math.imul($e,ii)|0,ke=ke+Math.imul($e,wi)|0,de=de+Math.imul(vt,Bt)|0,te=te+Math.imul(vt,yt)|0,te=te+Math.imul(st,Bt)|0,ke=ke+Math.imul(st,yt)|0;var an=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(an>>>26)|0,an&=67108863,de=Math.imul(Yt,ii),te=Math.imul(Yt,wi),te=te+Math.imul(hr,ii)|0,ke=Math.imul(hr,wi),de=de+Math.imul(rt,Bt)|0,te=te+Math.imul(rt,yt)|0,te=te+Math.imul($e,Bt)|0,ke=ke+Math.imul($e,yt)|0;var rn=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(rn>>>26)|0,rn&=67108863,de=Math.imul(Yt,Bt),te=Math.imul(Yt,yt),te=te+Math.imul(hr,Bt)|0,ke=Math.imul(hr,yt);var Fi=(Ce+de|0)+((te&8191)<<13)|0;return Ce=(ke+(te>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,Pe[0]=Vt,Pe[1]=Wt,Pe[2]=_r,Pe[3]=Lr,Pe[4]=Ur,Pe[5]=Ir,Pe[6]=Gr,Pe[7]=jr,Pe[8]=yi,Pe[9]=Ei,Pe[10]=Vi,Pe[11]=ti,Pe[12]=en,Pe[13]=Yr,Pe[14]=oi,Pe[15]=Bi,Pe[16]=an,Pe[17]=rn,Pe[18]=Fi,Ce!==0&&(Pe[19]=Ce,re.length++),re};Math.imul||(L=T);function _(H,N,W){W.negative=N.negative^H.negative,W.length=H.length+N.length;for(var re=0,ae=0,be=0;be>>26)|0,ae+=Pe>>>26,Pe&=67108863}W.words[be]=Ce,re=Pe,Pe=ae}return re!==0?W.words[be]=re:W.length--,W.strip()}function C(H,N,W){var re=new M;return re.mulp(H,N,W)}c.prototype.mulTo=function(N,W){var re,ae=this.length+N.length;return this.length===10&&N.length===10?re=L(this,N,W):ae<63?re=T(this,N,W):ae<1024?re=_(this,N,W):re=C(this,N,W),re};function M(H,N){this.x=H,this.y=N}M.prototype.makeRBT=function(N){for(var W=new Array(N),re=c.prototype._countBits(N)-1,ae=0;ae>=1;return ae},M.prototype.permute=function(N,W,re,ae,be,Pe){for(var Ce=0;Ce>>1)be++;return 1<>>13,re[2*Pe+1]=be&8191,be=be>>>13;for(Pe=2*W;Pe>=26,W+=ae/67108864|0,W+=be>>>26,this.words[re]=be&67108863}return W!==0&&(this.words[re]=W,this.length++),this},c.prototype.muln=function(N){return this.clone().imuln(N)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(N){var W=E(N);if(W.length===0)return new c(1);for(var re=this,ae=0;ae=0);var W=N%26,re=(N-W)/26,ae=67108863>>>26-W<<26-W,be;if(W!==0){var Pe=0;for(be=0;be>>26-W}Pe&&(this.words[be]=Pe,this.length++)}if(re!==0){for(be=this.length-1;be>=0;be--)this.words[be+re]=this.words[be];for(be=0;be=0);var ae;W?ae=(W-W%26)/26:ae=0;var be=N%26,Pe=Math.min((N-be)/26,this.length),Ce=67108863^67108863>>>be<Pe)for(this.length-=Pe,te=0;te=0&&(ke!==0||te>=ae);te--){var Ee=this.words[te]|0;this.words[te]=ke<<26-be|Ee>>>be,ke=Ee&Ce}return de&&ke!==0&&(de.words[de.length++]=ke),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(N,W,re){return l(this.negative===0),this.iushrn(N,W,re)},c.prototype.shln=function(N){return this.clone().ishln(N)},c.prototype.ushln=function(N){return this.clone().iushln(N)},c.prototype.shrn=function(N){return this.clone().ishrn(N)},c.prototype.ushrn=function(N){return this.clone().iushrn(N)},c.prototype.testn=function(N){l(typeof N=="number"&&N>=0);var W=N%26,re=(N-W)/26,ae=1<=0);var W=N%26,re=(N-W)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=re)return this;if(W!==0&&re++,this.length=Math.min(re,this.length),W!==0){var ae=67108863^67108863>>>W<=67108864;W++)this.words[W]-=67108864,W===this.length-1?this.words[W+1]=1:this.words[W+1]++;return this.length=Math.max(this.length,W+1),this},c.prototype.isubn=function(N){if(l(typeof N=="number"),l(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var W=0;W>26)-(de/67108864|0),this.words[be+re]=Pe&67108863}for(;be>26,this.words[be+re]=Pe&67108863;if(Ce===0)return this.strip();for(l(Ce===-1),Ce=0,be=0;be>26,this.words[be]=Pe&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(N,W){var re=this.length-N.length,ae=this.clone(),be=N,Pe=be.words[be.length-1]|0,Ce=this._countBits(Pe);re=26-Ce,re!==0&&(be=be.ushln(re),ae.iushln(re),Pe=be.words[be.length-1]|0);var de=ae.length-be.length,te;if(W!=="mod"){te=new c(null),te.length=de+1,te.words=new Array(te.length);for(var ke=0;ke=0;Me--){var Ne=(ae.words[be.length+Me]|0)*67108864+(ae.words[be.length+Me-1]|0);for(Ne=Math.min(Ne/Pe|0,67108863),ae._ishlnsubmul(be,Ne,Me);ae.negative!==0;)Ne--,ae.negative=0,ae._ishlnsubmul(be,1,Me),ae.isZero()||(ae.negative^=1);te&&(te.words[Me]=Ne)}return te&&te.strip(),ae.strip(),W!=="div"&&re!==0&&ae.iushrn(re),{div:te||null,mod:ae}},c.prototype.divmod=function(N,W,re){if(l(!N.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var ae,be,Pe;return this.negative!==0&&N.negative===0?(Pe=this.neg().divmod(N,W),W!=="mod"&&(ae=Pe.div.neg()),W!=="div"&&(be=Pe.mod.neg(),re&&be.negative!==0&&be.iadd(N)),{div:ae,mod:be}):this.negative===0&&N.negative!==0?(Pe=this.divmod(N.neg(),W),W!=="mod"&&(ae=Pe.div.neg()),{div:ae,mod:Pe.mod}):(this.negative&N.negative)!==0?(Pe=this.neg().divmod(N.neg(),W),W!=="div"&&(be=Pe.mod.neg(),re&&be.negative!==0&&be.isub(N)),{div:Pe.div,mod:be}):N.length>this.length||this.cmp(N)<0?{div:new c(0),mod:this}:N.length===1?W==="div"?{div:this.divn(N.words[0]),mod:null}:W==="mod"?{div:null,mod:new c(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new c(this.modn(N.words[0]))}:this._wordDiv(N,W)},c.prototype.div=function(N){return this.divmod(N,"div",!1).div},c.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},c.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},c.prototype.divRound=function(N){var W=this.divmod(N);if(W.mod.isZero())return W.div;var re=W.div.negative!==0?W.mod.isub(N):W.mod,ae=N.ushrn(1),be=N.andln(1),Pe=re.cmp(ae);return Pe<0||be===1&&Pe===0?W.div:W.div.negative!==0?W.div.isubn(1):W.div.iaddn(1)},c.prototype.modn=function(N){l(N<=67108863);for(var W=(1<<26)%N,re=0,ae=this.length-1;ae>=0;ae--)re=(W*re+(this.words[ae]|0))%N;return re},c.prototype.idivn=function(N){l(N<=67108863);for(var W=0,re=this.length-1;re>=0;re--){var ae=(this.words[re]|0)+W*67108864;this.words[re]=ae/N|0,W=ae%N}return this.strip()},c.prototype.divn=function(N){return this.clone().idivn(N)},c.prototype.egcd=function(N){l(N.negative===0),l(!N.isZero());var W=this,re=N.clone();W.negative!==0?W=W.umod(N):W=W.clone();for(var ae=new c(1),be=new c(0),Pe=new c(0),Ce=new c(1),de=0;W.isEven()&&re.isEven();)W.iushrn(1),re.iushrn(1),++de;for(var te=re.clone(),ke=W.clone();!W.isZero();){for(var Ee=0,Me=1;(W.words[0]&Me)===0&&Ee<26;++Ee,Me<<=1);if(Ee>0)for(W.iushrn(Ee);Ee-- >0;)(ae.isOdd()||be.isOdd())&&(ae.iadd(te),be.isub(ke)),ae.iushrn(1),be.iushrn(1);for(var Ne=0,Fe=1;(re.words[0]&Fe)===0&&Ne<26;++Ne,Fe<<=1);if(Ne>0)for(re.iushrn(Ne);Ne-- >0;)(Pe.isOdd()||Ce.isOdd())&&(Pe.iadd(te),Ce.isub(ke)),Pe.iushrn(1),Ce.iushrn(1);W.cmp(re)>=0?(W.isub(re),ae.isub(Pe),be.isub(Ce)):(re.isub(W),Pe.isub(ae),Ce.isub(be))}return{a:Pe,b:Ce,gcd:re.iushln(de)}},c.prototype._invmp=function(N){l(N.negative===0),l(!N.isZero());var W=this,re=N.clone();W.negative!==0?W=W.umod(N):W=W.clone();for(var ae=new c(1),be=new c(0),Pe=re.clone();W.cmpn(1)>0&&re.cmpn(1)>0;){for(var Ce=0,de=1;(W.words[0]&de)===0&&Ce<26;++Ce,de<<=1);if(Ce>0)for(W.iushrn(Ce);Ce-- >0;)ae.isOdd()&&ae.iadd(Pe),ae.iushrn(1);for(var te=0,ke=1;(re.words[0]&ke)===0&&te<26;++te,ke<<=1);if(te>0)for(re.iushrn(te);te-- >0;)be.isOdd()&&be.iadd(Pe),be.iushrn(1);W.cmp(re)>=0?(W.isub(re),ae.isub(be)):(re.isub(W),be.isub(ae))}var Ee;return W.cmpn(1)===0?Ee=ae:Ee=be,Ee.cmpn(0)<0&&Ee.iadd(N),Ee},c.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var W=this.clone(),re=N.clone();W.negative=0,re.negative=0;for(var ae=0;W.isEven()&&re.isEven();ae++)W.iushrn(1),re.iushrn(1);do{for(;W.isEven();)W.iushrn(1);for(;re.isEven();)re.iushrn(1);var be=W.cmp(re);if(be<0){var Pe=W;W=re,re=Pe}else if(be===0||re.cmpn(1)===0)break;W.isub(re)}while(!0);return re.iushln(ae)},c.prototype.invm=function(N){return this.egcd(N).a.umod(N)},c.prototype.isEven=function(){return(this.words[0]&1)===0},c.prototype.isOdd=function(){return(this.words[0]&1)===1},c.prototype.andln=function(N){return this.words[0]&N},c.prototype.bincn=function(N){l(typeof N=="number");var W=N%26,re=(N-W)/26,ae=1<>>26,Ce&=67108863,this.words[Pe]=Ce}return be!==0&&(this.words[Pe]=be,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(N){var W=N<0;if(this.negative!==0&&!W)return-1;if(this.negative===0&&W)return 1;this.strip();var re;if(this.length>1)re=1;else{W&&(N=-N),l(N<=67108863,"Number is too big");var ae=this.words[0]|0;re=ae===N?0:aeN.length)return 1;if(this.length=0;re--){var ae=this.words[re]|0,be=N.words[re]|0;if(ae!==be){aebe&&(W=1);break}}return W},c.prototype.gtn=function(N){return this.cmpn(N)===1},c.prototype.gt=function(N){return this.cmp(N)===1},c.prototype.gten=function(N){return this.cmpn(N)>=0},c.prototype.gte=function(N){return this.cmp(N)>=0},c.prototype.ltn=function(N){return this.cmpn(N)===-1},c.prototype.lt=function(N){return this.cmp(N)===-1},c.prototype.lten=function(N){return this.cmpn(N)<=0},c.prototype.lte=function(N){return this.cmp(N)<=0},c.prototype.eqn=function(N){return this.cmpn(N)===0},c.prototype.eq=function(N){return this.cmp(N)===0},c.red=function(N){return new G(N)},c.prototype.toRed=function(N){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},c.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(N){return this.red=N,this},c.prototype.forceRed=function(N){return l(!this.red,"Already a number in reduction context"),this._forceRed(N)},c.prototype.redAdd=function(N){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},c.prototype.redIAdd=function(N){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},c.prototype.redSub=function(N){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},c.prototype.redISub=function(N){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},c.prototype.redShl=function(N){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},c.prototype.redMul=function(N){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},c.prototype.redIMul=function(N){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},c.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(N){return l(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var m={k256:null,p224:null,p192:null,p25519:null};function P(H,N){this.name=H,this.p=new c(N,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}P.prototype._tmp=function(){var N=new c(null);return N.words=new Array(Math.ceil(this.n/13)),N},P.prototype.ireduce=function(N){var W=N,re;do this.split(W,this.tmp),W=this.imulK(W),W=W.iadd(this.tmp),re=W.bitLength();while(re>this.n);var ae=re0?W.isub(this.p):W.strip!==void 0?W.strip():W._strip(),W},P.prototype.split=function(N,W){N.iushrn(this.n,0,W)},P.prototype.imulK=function(N){return N.imul(this.k)};function A(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(A,P),A.prototype.split=function(N,W){for(var re=4194303,ae=Math.min(N.length,9),be=0;be>>22,Pe=Ce}Pe>>>=22,N.words[be-10]=Pe,Pe===0&&N.length>10?N.length-=10:N.length-=9},A.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var W=0,re=0;re>>=26,N.words[re]=be,W=ae}return W!==0&&(N.words[N.length++]=W),N},c._prime=function(N){if(m[N])return m[N];var W;if(N==="k256")W=new A;else if(N==="p224")W=new B;else if(N==="p192")W=new F;else if(N==="p25519")W=new U;else throw new Error("Unknown prime "+N);return m[N]=W,W};function G(H){if(typeof H=="string"){var N=c._prime(H);this.m=N.p,this.prime=N}else l(H.gtn(1),"modulus must be greater than 1"),this.m=H,this.prime=null}G.prototype._verify1=function(N){l(N.negative===0,"red works only with positives"),l(N.red,"red works only with red numbers")},G.prototype._verify2=function(N,W){l((N.negative|W.negative)===0,"red works only with positives"),l(N.red&&N.red===W.red,"red works only with red numbers")},G.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},G.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},G.prototype.add=function(N,W){this._verify2(N,W);var re=N.add(W);return re.cmp(this.m)>=0&&re.isub(this.m),re._forceRed(this)},G.prototype.iadd=function(N,W){this._verify2(N,W);var re=N.iadd(W);return re.cmp(this.m)>=0&&re.isub(this.m),re},G.prototype.sub=function(N,W){this._verify2(N,W);var re=N.sub(W);return re.cmpn(0)<0&&re.iadd(this.m),re._forceRed(this)},G.prototype.isub=function(N,W){this._verify2(N,W);var re=N.isub(W);return re.cmpn(0)<0&&re.iadd(this.m),re},G.prototype.shl=function(N,W){return this._verify1(N),this.imod(N.ushln(W))},G.prototype.imul=function(N,W){return this._verify2(N,W),this.imod(N.imul(W))},G.prototype.mul=function(N,W){return this._verify2(N,W),this.imod(N.mul(W))},G.prototype.isqr=function(N){return this.imul(N,N.clone())},G.prototype.sqr=function(N){return this.mul(N,N)},G.prototype.sqrt=function(N){if(N.isZero())return N.clone();var W=this.m.andln(3);if(l(W%2===1),W===3){var re=this.m.add(new c(1)).iushrn(2);return this.pow(N,re)}for(var ae=this.m.subn(1),be=0;!ae.isZero()&&ae.andln(1)===0;)be++,ae.iushrn(1);l(!ae.isZero());var Pe=new c(1).toRed(this),Ce=Pe.redNeg(),de=this.m.subn(1).iushrn(1),te=this.m.bitLength();for(te=new c(2*te*te).toRed(this);this.pow(te,de).cmp(Ce)!==0;)te.redIAdd(Ce);for(var ke=this.pow(te,ae),Ee=this.pow(N,ae.addn(1).iushrn(1)),Me=this.pow(N,ae),Ne=be;Me.cmp(Pe)!==0;){for(var Fe=Me,ye=0;Fe.cmp(Pe)!==0;ye++)Fe=Fe.redSqr();l(ye=0;be--){for(var ke=W.words[be],Ee=te-1;Ee>=0;Ee--){var Me=ke>>Ee&1;if(Pe!==ae[0]&&(Pe=this.sqr(Pe)),Me===0&&Ce===0){de=0;continue}Ce<<=1,Ce|=Me,de++,!(de!==re&&(be!==0||Ee!==0))&&(Pe=this.mul(Pe,ae[Ce]),de=0,Ce=0)}te=26}return Pe},G.prototype.convertTo=function(N){var W=N.umod(this.m);return W===N?W.clone():W},G.prototype.convertFrom=function(N){var W=N.clone();return W.red=null,W},c.mont=function(N){return new j(N)};function j(H){G.call(this,H),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(j,G),j.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},j.prototype.convertFrom=function(N){var W=this.imod(N.mul(this.rinv));return W.red=null,W},j.prototype.imul=function(N,W){if(N.isZero()||W.isZero())return N.words[0]=0,N.length=1,N;var re=N.imul(W),ae=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),be=re.isub(ae).iushrn(this.shift),Pe=be;return be.cmp(this.m)>=0?Pe=be.isub(this.m):be.cmpn(0)<0&&(Pe=be.iadd(this.m)),Pe._forceRed(this)},j.prototype.mul=function(N,W){if(N.isZero()||W.isZero())return new c(0)._forceRed(this);var re=N.mul(W),ae=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),be=re.isub(ae).iushrn(this.shift),Pe=be;return be.cmp(this.m)>=0?Pe=be.isub(this.m):be.cmpn(0)<0&&(Pe=be.iadd(this.m)),Pe._forceRed(this)},j.prototype.invm=function(N){var W=this.imod(N._invmp(this.m).mul(this.r2));return W._forceRed(this)}}(i,this)},6204:function(i){"use strict";i.exports=a;function a(o){var s,u,l,f=o.length,c=0;for(s=0;s>>1;if(!(M<=0)){var m,P=s.mallocDouble(2*M*_),A=s.mallocInt32(_);if(_=c(k,M,P,A),_>0){if(M===1&&L)u.init(_),m=u.sweepComplete(M,T,0,_,P,A,0,_,P,A);else{var B=s.mallocDouble(2*M*C),F=s.mallocInt32(C);C=c(E,M,B,F),C>0&&(u.init(_+C),M===1?m=u.sweepBipartite(M,T,0,_,P,A,0,C,B,F):m=l(M,T,L,_,P,A,C,B,F),s.free(B),s.free(F))}s.free(P),s.free(A)}return m}}}var d;function p(k,E){d.push([k,E])}function x(k){return d=[],h(k,k,p,!0),d}function b(k,E){return d=[],h(k,E,p,!1),d}function v(k,E,T){switch(arguments.length){case 1:return x(k);case 2:return typeof E=="function"?h(k,k,E,!0):b(k,E);case 3:return h(k,E,T,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(i,a){"use strict";function o(){function l(h,d,p,x,b,v,k,E,T,L,_){for(var C=2*h,M=x,m=C*x;MT-E?l(h,d,p,x,b,v,k,E,T,L,_):f(h,d,p,x,b,v,k,E,T,L,_)}return c}function s(){function l(p,x,b,v,k,E,T,L,_,C,M){for(var m=2*p,P=v,A=m*v;PC-_?v?l(p,x,b,k,E,T,L,_,C,M,m):f(p,x,b,k,E,T,L,_,C,M,m):v?c(p,x,b,k,E,T,L,_,C,M,m):h(p,x,b,k,E,T,L,_,C,M,m)}return d}function u(l){return l?o():s()}a.partial=u(!1),a.full=u(!0)},7150:function(i,a,o){"use strict";i.exports=H;var s=o(1888),u=o(8828),l=o(2455),f=l.partial,c=l.full,h=o(855),d=o(3545),p=o(8105),x=128,b=1<<22,v=1<<22,k=p("!(lo>=p0)&&!(p1>=hi)"),E=p("lo===p0"),T=p("lo0;){ke-=1;var Ne=ke*M,Fe=A[Ne],ye=A[Ne+1],Ve=A[Ne+2],ce=A[Ne+3],Ye=A[Ne+4],nt=A[Ne+5],gt=ke*m,Nt=B[gt],it=B[gt+1],Ke=nt&1,kt=!!(nt&16),Tt=be,St=Pe,Dt=de,Zt=te;if(Ke&&(Tt=de,St=te,Dt=be,Zt=Pe),!(nt&2&&(Ve=T(N,Fe,ye,Ve,Tt,St,it),ye>=Ve))&&!(nt&4&&(ye=L(N,Fe,ye,Ve,Tt,St,Nt),ye>=Ve))){var Et=Ve-ye,Ae=Ye-ce;if(kt){if(N*Et*(Et+Ae)p&&b[C+d]>L;--_,C-=k){for(var M=C,m=C+k,P=0;P>>1,L=2*h,_=T,C=b[L*T+d];k=B?(_=A,C=B):P>=U?(_=m,C=P):(_=F,C=U):B>=U?(_=A,C=B):U>=P?(_=m,C=P):(_=F,C=U);for(var H=L*(E-1),N=L*_,G=0;G=p0)&&!(p1>=hi)":d};function o(p){return a[p]}function s(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,M=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+m];if(B===T)if(M===A)M+=1,C+=L;else{for(var F=0;L>F;++F){var U=k[_+F];k[_+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function u(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,M=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+m];if(BF;++F){var U=k[_+F];k[_+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function l(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,M=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+P];if(B<=T)if(M===A)M+=1,C+=L;else{for(var F=0;L>F;++F){var U=k[_+F];k[_+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function f(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,M=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+P];if(B<=T)if(M===A)M+=1,C+=L;else{for(var F=0;L>F;++F){var U=k[_+F];k[_+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function c(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,M=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+m],F=k[_+P];if(B<=T&&T<=F)if(M===A)M+=1,C+=L;else{for(var U=0;L>U;++U){var G=k[_+U];k[_+U]=k[C],k[C++]=G}var j=E[A];E[A]=E[M],E[M++]=j}}return M}function h(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,M=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+m],F=k[_+P];if(BU;++U){var G=k[_+U];k[_+U]=k[C],k[C++]=G}var j=E[A];E[A]=E[M],E[M++]=j}}return M}function d(p,x,b,v,k,E,T,L){for(var _=2*p,C=_*b,M=C,m=b,P=x,A=p+x,B=b;v>B;++B,C+=_){var F=k[C+P],U=k[C+A];if(!(F>=T)&&!(L>=U))if(m===B)m+=1,M+=_;else{for(var G=0;_>G;++G){var j=k[C+G];k[C+G]=k[M],k[M++]=j}var H=E[B];E[B]=E[m],E[m++]=H}}return m}},4192:function(i){"use strict";i.exports=o;var a=32;function o(x,b){b<=4*a?s(0,b-1,x):p(0,b-1,x)}function s(x,b,v){for(var k=2*(x+1),E=x+1;E<=b;++E){for(var T=v[k++],L=v[k++],_=E,C=k-2;_-- >x;){var M=v[C-2],m=v[C-1];if(Mv[b+1]:!0}function d(x,b,v,k){x*=2;var E=k[x];return E>1,_=L-k,C=L+k,M=E,m=_,P=L,A=C,B=T,F=x+1,U=b-1,G=0;h(M,m,v)&&(G=M,M=m,m=G),h(A,B,v)&&(G=A,A=B,B=G),h(M,P,v)&&(G=M,M=P,P=G),h(m,P,v)&&(G=m,m=P,P=G),h(M,A,v)&&(G=M,M=A,A=G),h(P,A,v)&&(G=P,P=A,A=G),h(m,B,v)&&(G=m,m=B,B=G),h(m,P,v)&&(G=m,m=P,P=G),h(A,B,v)&&(G=A,A=B,B=G);for(var j=v[2*m],H=v[2*m+1],N=v[2*A],W=v[2*A+1],re=2*M,ae=2*P,be=2*B,Pe=2*E,Ce=2*L,de=2*T,te=0;te<2;++te){var ke=v[re+te],Ee=v[ae+te],Me=v[be+te];v[Pe+te]=ke,v[Ce+te]=Ee,v[de+te]=Me}l(_,x,v),l(C,b,v);for(var Ne=F;Ne<=U;++Ne)if(d(Ne,j,H,v))Ne!==F&&u(Ne,F,v),++F;else if(!d(Ne,N,W,v))for(;;)if(d(U,N,W,v)){d(U,j,H,v)?(f(Ne,F,U,v),++F,--U):(u(Ne,U,v),--U);break}else{if(--U>>1;l(k,Ee);for(var Me=0,Ne=0,Ce=0;Ce=f)Fe=Fe-f|0,T(p,x,Ne--,Fe);else if(Fe>=0)T(h,d,Me--,Fe);else if(Fe<=-f){Fe=-Fe-f|0;for(var ye=0;ye>>1;l(k,Ee);for(var Me=0,Ne=0,Fe=0,Ce=0;Ce>1===k[2*Ce+3]>>1&&(Ve=2,Ce+=1),ye<0){for(var ce=-(ye>>1)-1,Ye=0;Ye>1)-1;Ve===0?T(h,d,Me--,ce):Ve===1?T(p,x,Ne--,ce):Ve===2&&T(b,v,Fe--,ce)}}}function M(P,A,B,F,U,G,j,H,N,W,re,ae){var be=0,Pe=2*P,Ce=A,de=A+P,te=1,ke=1;F?ke=f:te=f;for(var Ee=U;Ee>>1;l(k,ye);for(var Ve=0,Ee=0;Ee=f?(Ye=!F,Me-=f):(Ye=!!F,Me-=1),Ye)L(h,d,Ve++,Me);else{var nt=ae[Me],gt=Pe*Me,Nt=re[gt+A+1],it=re[gt+A+1+P];e:for(var Ke=0;Ke>>1;l(k,Me);for(var Ne=0,de=0;de=f)h[Ne++]=te-f;else{te-=1;var ye=re[te],Ve=be*te,ce=W[Ve+A+1],Ye=W[Ve+A+1+P];e:for(var nt=0;nt=0;--nt)if(h[nt]===te){for(var Ke=nt+1;Ke0;){for(var E=d.pop(),b=d.pop(),T=-1,L=-1,v=x[b],C=1;C=0||(h.flip(b,E),l(c,h,d,T,b,L),l(c,h,d,b,L,T),l(c,h,d,L,E,T),l(c,h,d,E,T,L))}}},5023:function(i,a,o){"use strict";var s=o(2478);i.exports=d;function u(p,x,b,v,k,E,T){this.cells=p,this.neighbor=x,this.flags=v,this.constraint=b,this.active=k,this.next=E,this.boundary=T}var l=u.prototype;function f(p,x){return p[0]-x[0]||p[1]-x[1]||p[2]-x[2]}l.locate=function(){var p=[0,0,0];return function(x,b,v){var k=x,E=b,T=v;return b0||T.length>0;){for(;E.length>0;){var m=E.pop();if(L[m]!==-k){L[m]=k;for(var P=_[m],A=0;A<3;++A){var B=M[3*m+A];B>=0&&L[B]===0&&(C[3*m+A]?T.push(B):(E.push(B),L[B]=k))}}}var F=T;T=E,E=F,T.length=0,k=-k}var U=h(_,L,x);return b?U.concat(v.boundary):U}},8902:function(i,a,o){"use strict";var s=o(2478),u=o(3250)[3],l=0,f=1,c=2;i.exports=T;function h(L,_,C,M,m){this.a=L,this.b=_,this.idx=C,this.lowerIds=M,this.upperIds=m}function d(L,_,C,M){this.a=L,this.b=_,this.type=C,this.idx=M}function p(L,_){var C=L.a[0]-_.a[0]||L.a[1]-_.a[1]||L.type-_.type;return C||L.type!==l&&(C=u(L.a,L.b,_.b),C)?C:L.idx-_.idx}function x(L,_){return u(L.a,L.b,_)}function b(L,_,C,M,m){for(var P=s.lt(_,M,x),A=s.gt(_,M,x),B=P;B1&&u(C[U[j-2]],C[U[j-1]],M)>0;)L.push([U[j-1],U[j-2],m]),j-=1;U.length=j,U.push(m);for(var G=F.upperIds,j=G.length;j>1&&u(C[G[j-2]],C[G[j-1]],M)<0;)L.push([G[j-2],G[j-1],m]),j-=1;G.length=j,G.push(m)}}function v(L,_){var C;return L.a[0]<_.a[0]?C=u(L.a,L.b,_.a):C=u(_.b,_.a,L.a),C||(_.b[0]F[0]&&m.push(new d(F,B,c,P),new d(B,F,f,P))}m.sort(p);for(var U=m[0].a[0]-(1+Math.abs(m[0].a[0]))*Math.pow(2,-52),G=[new h([U,1],[U,0],-1,[],[],[],[])],j=[],P=0,H=m.length;P=0}}(),l.removeTriangle=function(h,d,p){var x=this.stars;f(x[h],d,p),f(x[d],p,h),f(x[p],h,d)},l.addTriangle=function(h,d,p){var x=this.stars;x[h].push(d,p),x[d].push(p,h),x[p].push(h,d)},l.opposite=function(h,d){for(var p=this.stars[d],x=1,b=p.length;x=0;--N){var ke=j[N];W=ke[0];var Ee=U[W],Me=Ee[0],Ne=Ee[1],Fe=F[Me],ye=F[Ne];if((Fe[0]-ye[0]||Fe[1]-ye[1])<0){var Ve=Me;Me=Ne,Ne=Ve}Ee[0]=Me;var ce=Ee[1]=ke[1],Ye;for(H&&(Ye=Ee[2]);N>0&&j[N-1][0]===W;){var ke=j[--N],nt=ke[1];H?U.push([ce,nt,Ye]):U.push([ce,nt]),ce=nt}H?U.push([ce,Ne,Ye]):U.push([ce,Ne])}return re}function _(F,U,G){for(var j=U.length,H=new s(j),N=[],W=0;WU[2]?1:0)}function m(F,U,G){if(F.length!==0){if(U)for(var j=0;j0||W.length>0}function B(F,U,G){var j;if(G){j=U;for(var H=new Array(U.length),N=0;NL+1)throw new Error(E+" map requires nshades to be at least size "+k.length);Array.isArray(d.alpha)?d.alpha.length!==2?_=[1,1]:_=d.alpha.slice():typeof d.alpha=="number"?_=[d.alpha,d.alpha]:_=[1,1],p=k.map(function(B){return Math.round(B.index*L)}),_[0]=Math.min(Math.max(_[0],0),1),_[1]=Math.min(Math.max(_[1],0),1);var M=k.map(function(B,F){var U=k[F].index,G=k[F].rgb.slice();return G.length===4&&G[3]>=0&&G[3]<=1||(G[3]=_[0]+(_[1]-_[0])*U),G}),m=[];for(C=0;C=0}function d(p,x,b,v){var k=s(x,b,v);if(k===0){var E=u(s(p,x,b)),T=u(s(p,x,v));if(E===T){if(E===0){var L=h(p,x,b),_=h(p,x,v);return L===_?0:L?1:-1}return 0}else{if(T===0)return E>0||h(p,x,v)?-1:1;if(E===0)return T>0||h(p,x,b)?1:-1}return u(T-E)}var C=s(p,x,b);if(C>0)return k>0&&s(p,x,v)>0?1:-1;if(C<0)return k>0||s(p,x,v)>0?1:-1;var M=s(p,x,v);return M>0||h(p,x,b)?1:-1}},8572:function(i){"use strict";i.exports=function(o){return o<0?-1:o>0?1:0}},8507:function(i){i.exports=s;var a=Math.min;function o(u,l){return u-l}function s(u,l){var f=u.length,c=u.length-l.length;if(c)return c;switch(f){case 0:return 0;case 1:return u[0]-l[0];case 2:return u[0]+u[1]-l[0]-l[1]||a(u[0],u[1])-a(l[0],l[1]);case 3:var h=u[0]+u[1],d=l[0]+l[1];if(c=h+u[2]-(d+l[2]),c)return c;var p=a(u[0],u[1]),x=a(l[0],l[1]);return a(p,u[2])-a(x,l[2])||a(p+u[2],h)-a(x+l[2],d);case 4:var b=u[0],v=u[1],k=u[2],E=u[3],T=l[0],L=l[1],_=l[2],C=l[3];return b+v+k+E-(T+L+_+C)||a(b,v,k,E)-a(T,L,_,C,T)||a(b+v,b+k,b+E,v+k,v+E,k+E)-a(T+L,T+_,T+C,L+_,L+C,_+C)||a(b+v+k,b+v+E,b+k+E,v+k+E)-a(T+L+_,T+L+C,T+_+C,L+_+C);default:for(var M=u.slice().sort(o),m=l.slice().sort(o),P=0;Po[u][0]&&(u=l);return su?[[u],[s]]:[[s]]}},4750:function(i,a,o){"use strict";i.exports=u;var s=o(3090);function u(l){var f=s(l),c=f.length;if(c<=2)return[];for(var h=new Array(c),d=f[c-1],p=0;p=d[T]&&(E+=1);v[k]=E}}return h}function c(h,d){try{return s(h,!0)}catch(v){var p=u(h);if(p.length<=d)return[];var x=l(h,p),b=s(x,!0);return f(b,p)}}},4769:function(i){"use strict";function a(s,u,l,f,c,h){var d=6*c*c-6*c,p=3*c*c-4*c+1,x=-6*c*c+6*c,b=3*c*c-2*c;if(s.length){h||(h=new Array(s.length));for(var v=s.length-1;v>=0;--v)h[v]=d*s[v]+p*u[v]+x*l[v]+b*f[v];return h}return d*s+p*u+x*l[v]+b*f}function o(s,u,l,f,c,h){var d=c-1,p=c*c,x=d*d,b=(1+2*c)*x,v=c*x,k=p*(3-2*c),E=p*d;if(s.length){h||(h=new Array(s.length));for(var T=s.length-1;T>=0;--T)h[T]=b*s[T]+v*u[T]+k*l[T]+E*f[T];return h}return b*s+v*u+k*l+E*f}i.exports=o,i.exports.derivative=a},7642:function(i,a,o){"use strict";var s=o(8954),u=o(1682);i.exports=h;function l(d,p){this.point=d,this.index=p}function f(d,p){for(var x=d.point,b=p.point,v=x.length,k=0;k=2)return!1;G[H]=N}return!0}):U=U.filter(function(G){for(var j=0;j<=b;++j){var H=P[G[j]];if(H<0)return!1;G[j]=H}return!0}),b&1)for(var E=0;E>>31},i.exports.exponent=function(k){var E=i.exports.hi(k);return(E<<1>>>21)-1023},i.exports.fraction=function(k){var E=i.exports.lo(k),T=i.exports.hi(k),L=T&(1<<20)-1;return T&2146435072&&(L+=1048576),[E,L]},i.exports.denormalized=function(k){var E=i.exports.hi(k);return!(E&2146435072)}},1338:function(i){"use strict";function a(u,l,f){var c=u[f]|0;if(c<=0)return[];var h=new Array(c),d;if(f===u.length-1)for(d=0;d0)return o(u|0,l);break;case"object":if(typeof u.length=="number")return a(u,l,0);break}return[]}i.exports=s},3134:function(i,a,o){"use strict";i.exports=u;var s=o(1682);function u(l,f){var c=l.length;if(typeof f!="number"){f=0;for(var h=0;h=b-1)for(var C=E.length-1,m=p-x[b-1],M=0;M=b-1)for(var _=E.length-1,C=p-x[b-1],M=0;M=0;--b)if(p[--x])return!1;return!0},c.jump=function(p){var x=this.lastT(),b=this.dimension;if(!(p0;--M)v.push(l(L[M-1],_[M-1],arguments[M])),k.push(0)}},c.push=function(p){var x=this.lastT(),b=this.dimension;if(!(p1e-6?1/T:0;this._time.push(p);for(var m=b;m>0;--m){var P=l(_[m-1],C[m-1],arguments[m]);v.push(P),k.push((P-v[E++])*M)}}},c.set=function(p){var x=this.dimension;if(!(p0;--L)b.push(l(E[L-1],T[L-1],arguments[L])),v.push(0)}},c.move=function(p){var x=this.lastT(),b=this.dimension;if(!(p<=x||arguments.length!==b+1)){var v=this._state,k=this._velocity,E=v.length-this.dimension,T=this.bounds,L=T[0],_=T[1],C=p-x,M=C>1e-6?1/C:0;this._time.push(p);for(var m=b;m>0;--m){var P=arguments[m];v.push(l(L[m-1],_[m-1],v[E++]+P)),k.push(P*M)}}},c.idle=function(p){var x=this.lastT();if(!(p=0;--M)v.push(l(L[M],_[M],v[E]+C*k[E])),k.push(0),E+=1}};function h(p){for(var x=new Array(p),b=0;b=0;--F){var m=P[F];A[F]<=0?P[F]=new s(m._color,m.key,m.value,P[F+1],m.right,m._count+1):P[F]=new s(m._color,m.key,m.value,m.left,P[F+1],m._count+1)}for(var F=P.length-1;F>1;--F){var U=P[F-1],m=P[F];if(U._color===o||m._color===o)break;var G=P[F-2];if(G.left===U)if(U.left===m){var j=G.right;if(j&&j._color===a)U._color=o,G.right=l(o,j),G._color=a,F-=1;else{if(G._color=a,G.left=U.right,U._color=o,U.right=G,P[F-2]=U,P[F-1]=m,f(G),f(U),F>=3){var H=P[F-3];H.left===G?H.left=U:H.right=U}break}}else{var j=G.right;if(j&&j._color===a)U._color=o,G.right=l(o,j),G._color=a,F-=1;else{if(U.right=m.left,G._color=a,G.left=m.right,m._color=o,m.left=U,m.right=G,P[F-2]=m,P[F-1]=U,f(G),f(U),f(m),F>=3){var H=P[F-3];H.left===G?H.left=m:H.right=m}break}}else if(U.right===m){var j=G.left;if(j&&j._color===a)U._color=o,G.left=l(o,j),G._color=a,F-=1;else{if(G._color=a,G.right=U.left,U._color=o,U.left=G,P[F-2]=U,P[F-1]=m,f(G),f(U),F>=3){var H=P[F-3];H.right===G?H.right=U:H.left=U}break}}else{var j=G.left;if(j&&j._color===a)U._color=o,G.left=l(o,j),G._color=a,F-=1;else{if(U.left=m.right,G._color=a,G.right=m.left,m._color=o,m.right=U,m.left=G,P[F-2]=m,P[F-1]=U,f(G),f(U),f(m),F>=3){var H=P[F-3];H.right===G?H.right=m:H.left=m}break}}}return P[0]._color=o,new c(M,P[0])};function d(_,C){if(C.left){var M=d(_,C.left);if(M)return M}var M=_(C.key,C.value);if(M)return M;if(C.right)return d(_,C.right)}function p(_,C,M,m){var P=C(_,m.key);if(P<=0){if(m.left){var A=p(_,C,M,m.left);if(A)return A}var A=M(m.key,m.value);if(A)return A}if(m.right)return p(_,C,M,m.right)}function x(_,C,M,m,P){var A=M(_,P.key),B=M(C,P.key),F;if(A<=0&&(P.left&&(F=x(_,C,M,m,P.left),F)||B>0&&(F=m(P.key,P.value),F)))return F;if(B>0&&P.right)return x(_,C,M,m,P.right)}h.forEach=function(C,M,m){if(this.root)switch(arguments.length){case 1:return d(C,this.root);case 2:return p(M,this._compare,C,this.root);case 3:return this._compare(M,m)>=0?void 0:x(M,m,this._compare,C,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var _=[],C=this.root;C;)_.push(C),C=C.left;return new b(this,_)}}),Object.defineProperty(h,"end",{get:function(){for(var _=[],C=this.root;C;)_.push(C),C=C.right;return new b(this,_)}}),h.at=function(_){if(_<0)return new b(this,[]);for(var C=this.root,M=[];;){if(M.push(C),C.left){if(_=C.right._count)break;C=C.right}else break}return new b(this,[])},h.ge=function(_){for(var C=this._compare,M=this.root,m=[],P=0;M;){var A=C(_,M.key);m.push(M),A<=0&&(P=m.length),A<=0?M=M.left:M=M.right}return m.length=P,new b(this,m)},h.gt=function(_){for(var C=this._compare,M=this.root,m=[],P=0;M;){var A=C(_,M.key);m.push(M),A<0&&(P=m.length),A<0?M=M.left:M=M.right}return m.length=P,new b(this,m)},h.lt=function(_){for(var C=this._compare,M=this.root,m=[],P=0;M;){var A=C(_,M.key);m.push(M),A>0&&(P=m.length),A<=0?M=M.left:M=M.right}return m.length=P,new b(this,m)},h.le=function(_){for(var C=this._compare,M=this.root,m=[],P=0;M;){var A=C(_,M.key);m.push(M),A>=0&&(P=m.length),A<0?M=M.left:M=M.right}return m.length=P,new b(this,m)},h.find=function(_){for(var C=this._compare,M=this.root,m=[];M;){var P=C(_,M.key);if(m.push(M),P===0)return new b(this,m);P<=0?M=M.left:M=M.right}return new b(this,[])},h.remove=function(_){var C=this.find(_);return C?C.remove():this},h.get=function(_){for(var C=this._compare,M=this.root;M;){var m=C(_,M.key);if(m===0)return M.value;m<=0?M=M.left:M=M.right}};function b(_,C){this.tree=_,this._stack=C}var v=b.prototype;Object.defineProperty(v,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(v,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),v.clone=function(){return new b(this.tree,this._stack.slice())};function k(_,C){_.key=C.key,_.value=C.value,_.left=C.left,_.right=C.right,_._color=C._color,_._count=C._count}function E(_){for(var C,M,m,P,A=_.length-1;A>=0;--A){if(C=_[A],A===0){C._color=o;return}if(M=_[A-1],M.left===C){if(m=M.right,m.right&&m.right._color===a){if(m=M.right=u(m),P=m.right=u(m.right),M.right=m.left,m.left=M,m.right=P,m._color=M._color,C._color=o,M._color=o,P._color=o,f(M),f(m),A>1){var B=_[A-2];B.left===M?B.left=m:B.right=m}_[A-1]=m;return}else if(m.left&&m.left._color===a){if(m=M.right=u(m),P=m.left=u(m.left),M.right=P.left,m.left=P.right,P.left=M,P.right=m,P._color=M._color,M._color=o,m._color=o,C._color=o,f(M),f(m),f(P),A>1){var B=_[A-2];B.left===M?B.left=P:B.right=P}_[A-1]=P;return}if(m._color===o)if(M._color===a){M._color=o,M.right=l(a,m);return}else{M.right=l(a,m);continue}else{if(m=u(m),M.right=m.left,m.left=M,m._color=M._color,M._color=a,f(M),f(m),A>1){var B=_[A-2];B.left===M?B.left=m:B.right=m}_[A-1]=m,_[A]=M,A+1<_.length?_[A+1]=C:_.push(C),A=A+2}}else{if(m=M.left,m.left&&m.left._color===a){if(m=M.left=u(m),P=m.left=u(m.left),M.left=m.right,m.right=M,m.left=P,m._color=M._color,C._color=o,M._color=o,P._color=o,f(M),f(m),A>1){var B=_[A-2];B.right===M?B.right=m:B.left=m}_[A-1]=m;return}else if(m.right&&m.right._color===a){if(m=M.left=u(m),P=m.right=u(m.right),M.left=P.right,m.right=P.left,P.right=M,P.left=m,P._color=M._color,M._color=o,m._color=o,C._color=o,f(M),f(m),f(P),A>1){var B=_[A-2];B.right===M?B.right=P:B.left=P}_[A-1]=P;return}if(m._color===o)if(M._color===a){M._color=o,M.left=l(a,m);return}else{M.left=l(a,m);continue}else{if(m=u(m),M.left=m.right,m.right=M,m._color=M._color,M._color=a,f(M),f(m),A>1){var B=_[A-2];B.right===M?B.right=m:B.left=m}_[A-1]=m,_[A]=M,A+1<_.length?_[A+1]=C:_.push(C),A=A+2}}}}v.remove=function(){var _=this._stack;if(_.length===0)return this.tree;var C=new Array(_.length),M=_[_.length-1];C[C.length-1]=new s(M._color,M.key,M.value,M.left,M.right,M._count);for(var m=_.length-2;m>=0;--m){var M=_[m];M.left===_[m+1]?C[m]=new s(M._color,M.key,M.value,C[m+1],M.right,M._count):C[m]=new s(M._color,M.key,M.value,M.left,C[m+1],M._count)}if(M=C[C.length-1],M.left&&M.right){var P=C.length;for(M=M.left;M.right;)C.push(M),M=M.right;var A=C[P-1];C.push(new s(M._color,A.key,A.value,M.left,M.right,M._count)),C[P-1].key=M.key,C[P-1].value=M.value;for(var m=C.length-2;m>=P;--m)M=C[m],C[m]=new s(M._color,M.key,M.value,M.left,C[m+1],M._count);C[P-1].left=C[P]}if(M=C[C.length-1],M._color===a){var B=C[C.length-2];B.left===M?B.left=null:B.right===M&&(B.right=null),C.pop();for(var m=0;m0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(v,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(v,"index",{get:function(){var _=0,C=this._stack;if(C.length===0){var M=this.tree.root;return M?M._count:0}else C[C.length-1].left&&(_=C[C.length-1].left._count);for(var m=C.length-2;m>=0;--m)C[m+1]===C[m].right&&(++_,C[m].left&&(_+=C[m].left._count));return _},enumerable:!0}),v.next=function(){var _=this._stack;if(_.length!==0){var C=_[_.length-1];if(C.right)for(C=C.right;C;)_.push(C),C=C.left;else for(_.pop();_.length>0&&_[_.length-1].right===C;)C=_[_.length-1],_.pop()}},Object.defineProperty(v,"hasNext",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].right)return!0;for(var C=_.length-1;C>0;--C)if(_[C-1].left===_[C])return!0;return!1}}),v.update=function(_){var C=this._stack;if(C.length===0)throw new Error("Can't update empty node!");var M=new Array(C.length),m=C[C.length-1];M[M.length-1]=new s(m._color,m.key,_,m.left,m.right,m._count);for(var P=C.length-2;P>=0;--P)m=C[P],m.left===C[P+1]?M[P]=new s(m._color,m.key,m.value,M[P+1],m.right,m._count):M[P]=new s(m._color,m.key,m.value,m.left,M[P+1],m._count);return new c(this.tree._compare,M[0])},v.prev=function(){var _=this._stack;if(_.length!==0){var C=_[_.length-1];if(C.left)for(C=C.left;C;)_.push(C),C=C.right;else for(_.pop();_.length>0&&_[_.length-1].left===C;)C=_[_.length-1],_.pop()}},Object.defineProperty(v,"hasPrev",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].left)return!0;for(var C=_.length-1;C>0;--C)if(_[C-1].right===_[C])return!0;return!1}});function T(_,C){return _C?1:0}function L(_){return new c(_||T,null)}},3837:function(i,a,o){"use strict";i.exports=F;var s=o(4935),u=o(501),l=o(5304),f=o(6429),c=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=ArrayBuffer,p=DataView;function x(U){return d.isView(U)&&!(U instanceof p)}function b(U){return Array.isArray(U)||x(U)}function v(U,G){return U[0]=G[0],U[1]=G[1],U[2]=G[2],U}function k(U){this.gl=U,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=l(U)}var E=k.prototype;E.update=function(U){U=U||{};function G(Me,Ne,Fe){if(Fe in U){var ye=U[Fe],Ve=this[Fe],ce;(Me?b(ye)&&b(ye[0]):b(ye))?this[Fe]=ce=[Ne(ye[0]),Ne(ye[1]),Ne(ye[2])]:this[Fe]=ce=[Ne(ye),Ne(ye),Ne(ye)];for(var Ye=0;Ye<3;++Ye)if(ce[Ye]!==Ve[Ye])return!0}return!1}var j=G.bind(this,!1,Number),H=G.bind(this,!1,Boolean),N=G.bind(this,!1,String),W=G.bind(this,!0,function(Me){if(b(Me)){if(Me.length===3)return[+Me[0],+Me[1],+Me[2],1];if(Me.length===4)return[+Me[0],+Me[1],+Me[2],+Me[3]]}return[0,0,0,1]}),re,ae=!1,be=!1;if("bounds"in U)for(var Pe=U.bounds,Ce=0;Ce<2;++Ce)for(var de=0;de<3;++de)Pe[Ce][de]!==this.bounds[Ce][de]&&(be=!0),this.bounds[Ce][de]=Pe[Ce][de];if("ticks"in U){re=U.ticks,ae=!0,this.autoTicks=!1;for(var Ce=0;Ce<3;++Ce)this.tickSpacing[Ce]=0}else j("tickSpacing")&&(this.autoTicks=!0,be=!0);if(this._firstInit&&("ticks"in U||"tickSpacing"in U||(this.autoTicks=!0),be=!0,ae=!0,this._firstInit=!1),be&&this.autoTicks&&(re=c.create(this.bounds,this.tickSpacing),ae=!0),ae){for(var Ce=0;Ce<3;++Ce)re[Ce].sort(function(Ne,Fe){return Ne.x-Fe.x});c.equal(re,this.ticks)?ae=!1:this.ticks=re}H("tickEnable"),N("tickFont")&&(ae=!0),N("tickFontStyle")&&(ae=!0),N("tickFontWeight")&&(ae=!0),N("tickFontVariant")&&(ae=!0),j("tickSize"),j("tickAngle"),j("tickPad"),W("tickColor");var te=N("labels");N("labelFont")&&(te=!0),N("labelFontStyle")&&(te=!0),N("labelFontWeight")&&(te=!0),N("labelFontVariant")&&(te=!0),H("labelEnable"),j("labelSize"),j("labelPad"),W("labelColor"),H("lineEnable"),H("lineMirror"),j("lineWidth"),W("lineColor"),H("lineTickEnable"),H("lineTickMirror"),j("lineTickLength"),j("lineTickWidth"),W("lineTickColor"),H("gridEnable"),j("gridWidth"),W("gridColor"),H("zeroEnable"),W("zeroLineColor"),j("zeroLineWidth"),H("backgroundEnable"),W("backgroundColor");var ke=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],Ee=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(te||ae)&&this._text.update(this.bounds,this.labels,ke,this.ticks,Ee):this._text=s(this.gl,this.bounds,this.labels,ke,this.ticks,Ee),this._lines&&ae&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function T(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var L=[new T,new T,new T];function _(U,G,j,H,N){for(var W=U.primalOffset,re=U.primalMinor,ae=U.mirrorOffset,be=U.mirrorMinor,Pe=H[G],Ce=0;Ce<3;++Ce)if(G!==Ce){var de=W,te=ae,ke=re,Ee=be;Pe&1<0?(ke[Ce]=-1,Ee[Ce]=0):(ke[Ce]=0,Ee[Ce]=1)}}var C=[0,0,0],M={model:h,view:h,projection:h,_ortho:!1};E.isOpaque=function(){return!0},E.isTransparent=function(){return!1},E.drawTransparent=function(U){};var m=0,P=[0,0,0],A=[0,0,0],B=[0,0,0];E.draw=function(U){U=U||M;for(var Fe=this.gl,G=U.model||h,j=U.view||h,H=U.projection||h,N=this.bounds,W=U._ortho||!1,re=f(G,j,H,N,W),ae=re.cubeEdges,be=re.axis,Pe=j[12],Ce=j[13],de=j[14],te=j[15],ke=W?2:1,Ee=ke*this.pixelRatio*(H[3]*Pe+H[7]*Ce+H[11]*de+H[15]*te)/Fe.drawingBufferHeight,Me=0;Me<3;++Me)this.lastCubeProps.cubeEdges[Me]=ae[Me],this.lastCubeProps.axis[Me]=be[Me];for(var Ne=L,Me=0;Me<3;++Me)_(L[Me],Me,this.bounds,ae,be);for(var Fe=this.gl,ye=C,Me=0;Me<3;++Me)this.backgroundEnable[Me]?ye[Me]=be[Me]:ye[Me]=0;this._background.draw(G,j,H,N,ye,this.backgroundColor),this._lines.bind(G,j,H,this);for(var Me=0;Me<3;++Me){var Ve=[0,0,0];be[Me]>0?Ve[Me]=N[1][Me]:Ve[Me]=N[0][Me];for(var ce=0;ce<2;++ce){var Ye=(Me+1+ce)%3,nt=(Me+1+(ce^1))%3;this.gridEnable[Ye]&&this._lines.drawGrid(Ye,nt,this.bounds,Ve,this.gridColor[Ye],this.gridWidth[Ye]*this.pixelRatio)}for(var ce=0;ce<2;++ce){var Ye=(Me+1+ce)%3,nt=(Me+1+(ce^1))%3;this.zeroEnable[nt]&&Math.min(N[0][nt],N[1][nt])<=0&&Math.max(N[0][nt],N[1][nt])>=0&&this._lines.drawZero(Ye,nt,this.bounds,Ve,this.zeroLineColor[nt],this.zeroLineWidth[nt]*this.pixelRatio)}}for(var Me=0;Me<3;++Me){this.lineEnable[Me]&&this._lines.drawAxisLine(Me,this.bounds,Ne[Me].primalOffset,this.lineColor[Me],this.lineWidth[Me]*this.pixelRatio),this.lineMirror[Me]&&this._lines.drawAxisLine(Me,this.bounds,Ne[Me].mirrorOffset,this.lineColor[Me],this.lineWidth[Me]*this.pixelRatio);for(var gt=v(P,Ne[Me].primalMinor),Nt=v(A,Ne[Me].mirrorMinor),it=this.lineTickLength,ce=0;ce<3;++ce){var Ke=Ee/G[5*ce];gt[ce]*=it[ce]*Ke,Nt[ce]*=it[ce]*Ke}this.lineTickEnable[Me]&&this._lines.drawAxisTicks(Me,Ne[Me].primalOffset,gt,this.lineTickColor[Me],this.lineTickWidth[Me]*this.pixelRatio),this.lineTickMirror[Me]&&this._lines.drawAxisTicks(Me,Ne[Me].mirrorOffset,Nt,this.lineTickColor[Me],this.lineTickWidth[Me]*this.pixelRatio)}this._lines.unbind(),this._text.bind(G,j,H,this.pixelRatio);var kt,Tt=.5,St,Dt;function Zt(st){Dt=[0,0,0],Dt[st]=1}function Et(st,Ue,rt){var $e=(st+1)%3,zt=(st+2)%3,Yt=Ue[$e],hr=Ue[zt],yr=rt[$e],br=rt[zt];if(Yt>0&&br>0){Zt($e);return}else if(Yt>0&&br<0){Zt($e);return}else if(Yt<0&&br>0){Zt($e);return}else if(Yt<0&&br<0){Zt($e);return}else if(hr>0&&yr>0){Zt(zt);return}else if(hr>0&&yr<0){Zt(zt);return}else if(hr<0&&yr>0){Zt(zt);return}else if(hr<0&&yr<0){Zt(zt);return}}for(var Me=0;Me<3;++Me){for(var Ae=Ne[Me].primalMinor,at=Ne[Me].mirrorMinor,wt=v(B,Ne[Me].primalOffset),ce=0;ce<3;++ce)this.lineTickEnable[Me]&&(wt[ce]+=Ee*Ae[ce]*Math.max(this.lineTickLength[ce],0)/G[5*ce]);var vt=[0,0,0];if(vt[Me]=1,this.tickEnable[Me]){this.tickAngle[Me]===-3600?(this.tickAngle[Me]=0,this.tickAlign[Me]="auto"):this.tickAlign[Me]=-1,St=1,kt=[this.tickAlign[Me],Tt,St],kt[0]==="auto"?kt[0]=m:kt[0]=parseInt(""+kt[0]),Dt=[0,0,0],Et(Me,Ae,at);for(var ce=0;ce<3;++ce)wt[ce]+=Ee*Ae[ce]*this.tickPad[ce]/G[5*ce];this._text.drawTicks(Me,this.tickSize[Me],this.tickAngle[Me],wt,this.tickColor[Me],vt,Dt,kt)}if(this.labelEnable[Me]){St=0,Dt=[0,0,0],this.labels[Me].length>4&&(Zt(Me),St=1),kt=[this.labelAlign[Me],Tt,St],kt[0]==="auto"?kt[0]=m:kt[0]=parseInt(""+kt[0]);for(var ce=0;ce<3;++ce)wt[ce]+=Ee*Ae[ce]*this.labelPad[ce]/G[5*ce];wt[Me]+=.5*(N[0][Me]+N[1][Me]),this._text.drawLabel(Me,this.labelSize[Me],this.labelAngle[Me],wt,this.labelColor[Me],[0,0,0],Dt,kt)}}this._text.unbind()},E.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function F(U,G){var j=new k(U);return j.update(G),j}},5304:function(i,a,o){"use strict";i.exports=h;var s=o(2762),u=o(8116),l=o(1879).bg;function f(d,p,x,b){this.gl=d,this.buffer=p,this.vao=x,this.shader=b}var c=f.prototype;c.draw=function(d,p,x,b,v,k){for(var E=!1,T=0;T<3;++T)E=E||v[T];if(E){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:p,projection:x,bounds:b,enable:v,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},c.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var p=[],x=[],b=0,v=0;v<3;++v)for(var k=(v+1)%3,E=(v+2)%3,T=[0,0,0],L=[0,0,0],_=-1;_<=1;_+=2){x.push(b,b+2,b+1,b+1,b+2,b+3),T[v]=_,L[v]=_;for(var C=-1;C<=1;C+=2){T[k]=C;for(var M=-1;M<=1;M+=2)T[E]=M,p.push(T[0],T[1],T[2],L[0],L[1],L[2]),b+=1}var m=k;k=E,E=m}var P=s(d,new Float32Array(p)),A=s(d,new Uint16Array(x),d.ELEMENT_ARRAY_BUFFER),B=u(d,[{buffer:P,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:P,type:d.FLOAT,size:3,offset:12,stride:24}],A),F=l(d);return F.attributes.position.location=0,F.attributes.normal.location=1,new f(d,P,B,F)}},6429:function(i,a,o){"use strict";i.exports=_;var s=o(8828),u=o(6760),l=o(5202),f=o(3250),c=new Array(16),h=new Array(8),d=new Array(8),p=new Array(3),x=[0,0,0];(function(){for(var C=0;C<8;++C)h[C]=[1,1,1,1],d[C]=[1,1,1]})();function b(C,M,m){for(var P=0;P<4;++P){C[P]=m[12+P];for(var A=0;A<3;++A)C[P]+=M[A]*m[4*A+P]}}var v=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function k(C){for(var M=0;Mbe&&(j|=1<be){j|=1<d[F][1])&&(Ne=F);for(var Fe=-1,F=0;F<3;++F){var ye=Ne^1<d[Ve][0]&&(Ve=ye)}}var ce=E;ce[0]=ce[1]=ce[2]=0,ce[s.log2(Fe^Ne)]=Ne&Fe,ce[s.log2(Ne^Ve)]=Ne&Ve;var Ye=Ve^7;Ye===j||Ye===Me?(Ye=Fe^7,ce[s.log2(Ve^Ye)]=Ye&Ve):ce[s.log2(Fe^Ye)]=Ye&Fe;for(var nt=T,gt=j,W=0;W<3;++W)gt&1<{});function Vy(){}function nCe(){return this.rgb().formatHex()}function GLt(){return this.rgb().formatHex8()}function HLt(){return cCe(this).formatHsl()}function aCe(){return this.rgb().formatRgb()}function W_(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=FLt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?oCe(t):r===3?new xd(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?_6(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?_6(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=BLt.exec(e))?new xd(t[1],t[2],t[3],1):(t=OLt.exec(e))?new xd(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=qLt.exec(e))?_6(t[1],t[2],t[3],t[4]):(t=NLt.exec(e))?_6(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ULt.exec(e))?uCe(t[1],t[2]/100,t[3]/100,1):(t=VLt.exec(e))?uCe(t[1],t[2]/100,t[3]/100,t[4]):iCe.hasOwnProperty(e)?oCe(iCe[e]):e==="transparent"?new xd(NaN,NaN,NaN,0):null}function oCe(e){return new xd(e>>16&255,e>>8&255,e&255,1)}function _6(e,t,r,n){return n<=0&&(e=t=r=NaN),new xd(e,t,r,n)}function D4(e){return e instanceof Vy||(e=W_(e)),e?(e=e.rgb(),new xd(e.r,e.g,e.b,e.opacity)):new xd}function ST(e,t,r,n){return arguments.length===1?D4(e):new xd(e,t,r,n==null?1:n)}function xd(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function sCe(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}`}function WLt(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}${M2((isNaN(this.opacity)?1:this.opacity)*255)}`}function lCe(){let e=b6(this.opacity);return`${e===1?"rgb(":"rgba("}${E2(this.r)}, ${E2(this.g)}, ${E2(this.b)}${e===1?")":`, ${e})`}`}function b6(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function E2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function M2(e){return e=E2(e),(e<16?"0":"")+e.toString(16)}function uCe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xm(e,t,r,n)}function cCe(e){if(e instanceof Xm)return new Xm(e.h,e.s,e.l,e.opacity);if(e instanceof Vy||(e=W_(e)),!e)return new Xm;if(e instanceof Xm)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&u<1?0:o,new Xm(o,s,u,e.opacity)}function F4(e,t,r,n){return arguments.length===1?cCe(e):new Xm(e,t,r,n==null?1:n)}function Xm(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function fCe(e){return e=(e||0)%360,e<0?e+360:e}function x6(e){return Math.max(0,Math.min(1,e||0))}function Ej(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var H_,k2,TT,R4,Uy,FLt,BLt,OLt,qLt,NLt,ULt,VLt,iCe,w6=tc(()=>{g6();H_=.7,k2=1/H_,TT="\\s*([+-]?\\d+)\\s*",R4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Uy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",FLt=/^#([0-9a-f]{3,8})$/,BLt=new RegExp(`^rgb\\(${TT},${TT},${TT}\\)$`),OLt=new RegExp(`^rgb\\(${Uy},${Uy},${Uy}\\)$`),qLt=new RegExp(`^rgba\\(${TT},${TT},${TT},${R4}\\)$`),NLt=new RegExp(`^rgba\\(${Uy},${Uy},${Uy},${R4}\\)$`),ULt=new RegExp(`^hsl\\(${R4},${Uy},${Uy}\\)$`),VLt=new RegExp(`^hsla\\(${R4},${Uy},${Uy},${R4}\\)$`),iCe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Zg(Vy,W_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:nCe,formatHex:nCe,formatHex8:GLt,formatHsl:HLt,formatRgb:aCe,toString:aCe});Zg(xd,ST,G_(Vy,{brighter(e){return e=e==null?k2:Math.pow(k2,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?H_:Math.pow(H_,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xd(E2(this.r),E2(this.g),E2(this.b),b6(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sCe,formatHex:sCe,formatHex8:WLt,formatRgb:lCe,toString:lCe}));Zg(Xm,F4,G_(Vy,{brighter(e){return e=e==null?k2:Math.pow(k2,e),new Xm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?H_:Math.pow(H_,e),new Xm(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new xd(Ej(e>=240?e-240:e+120,i,n),Ej(e,i,n),Ej(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xm(fCe(this.h),x6(this.s),x6(this.l),b6(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=b6(this.opacity);return`${e===1?"hsl(":"hsla("}${fCe(this.h)}, ${x6(this.s)*100}%, ${x6(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var A6,T6,kj=tc(()=>{A6=Math.PI/180,T6=180/Math.PI});function yCe(e){if(e instanceof Gy)return new Gy(e.l,e.a,e.b,e.opacity);if(e instanceof Yg)return gCe(e);e instanceof xd||(e=D4(e));var t=zj(e.r),r=zj(e.g),n=zj(e.b),i=Cj((.2225045*t+.7168786*r+.0606169*n)/dCe),a,o;return t===r&&r===n?a=o=i:(a=Cj((.4360747*t+.3850649*r+.1430804*n)/hCe),o=Cj((.0139322*t+.0971045*r+.7141733*n)/pCe)),new Gy(116*i-16,500*(a-i),200*(i-o),e.opacity)}function ET(e,t,r,n){return arguments.length===1?yCe(e):new Gy(e,t,r,n==null?1:n)}function Gy(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Cj(e){return e>jLt?Math.pow(e,1/3):e/mCe+vCe}function Lj(e){return e>MT?e*e*e:mCe*(e-vCe)}function Pj(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function zj(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function XLt(e){if(e instanceof Yg)return new Yg(e.h,e.c,e.l,e.opacity);if(e instanceof Gy||(e=yCe(e)),e.a===0&&e.b===0)return new Yg(NaN,0{g6();w6();kj();S6=18,hCe=.96422,dCe=1,pCe=.82521,vCe=4/29,MT=6/29,mCe=3*MT*MT,jLt=MT*MT*MT;Zg(Gy,ET,G_(Vy,{brighter(e){return new Gy(this.l+S6*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Gy(this.l-S6*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=hCe*Lj(t),e=dCe*Lj(e),r=pCe*Lj(r),new xd(Pj(3.1338561*t-1.6168667*e-.4906146*r),Pj(-.9787684*t+1.9161415*e+.033454*r),Pj(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));Zg(Yg,B4,G_(Vy,{brighter(e){return new Yg(this.h,this.c,this.l+S6*(e==null?1:e),this.opacity)},darker(e){return new Yg(this.h,this.c,this.l-S6*(e==null?1:e),this.opacity)},rgb(){return gCe(this).rgb()}}))});function ZLt(e){if(e instanceof C2)return new C2(e.h,e.s,e.l,e.opacity);e instanceof xd||(e=D4(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(wCe*n+xCe*t-bCe*r)/(wCe+xCe-bCe),a=n-i,o=(O4*(r-i)-Rj*a)/M6,s=Math.sqrt(o*o+a*a)/(O4*i*(1-i)),u=s?Math.atan2(o,a)*T6-120:NaN;return new C2(u<0?u+360:u,s,i,e.opacity)}function kT(e,t,r,n){return arguments.length===1?ZLt(e):new C2(e,t,r,n==null?1:n)}function C2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var ACe,Ij,Rj,M6,O4,xCe,bCe,wCe,TCe=tc(()=>{g6();w6();kj();ACe=-.14861,Ij=1.78277,Rj=-.29227,M6=-.90649,O4=1.97294,xCe=O4*M6,bCe=O4*Ij,wCe=Ij*Rj-M6*ACe;Zg(C2,kT,G_(Vy,{brighter(e){return e=e==null?k2:Math.pow(k2,e),new C2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?H_:Math.pow(H_,e),new C2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*A6,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new xd(255*(t+r*(ACe*n+Ij*i)),255*(t+r*(Rj*n+M6*i)),255*(t+r*(O4*n)),this.opacity)}}))});var L2=tc(()=>{w6();_Ce();TCe()});function Dj(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function E6(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n{});function C6(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return Dj((r-n/t)*t,i,a,o,s)}}var Fj=tc(()=>{k6()});var CT,Bj=tc(()=>{CT=e=>()=>e});function SCe(e,t){return function(r){return e+r*t}}function YLt(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function j_(e,t){var r=t-e;return r?SCe(e,r>180||r<-180?r-360*Math.round(r/360):r):CT(isNaN(e)?t:e)}function MCe(e){return(e=+e)==1?ph:function(t,r){return r-t?YLt(t,r,e):CT(isNaN(t)?r:t)}}function ph(e,t){var r=t-e;return r?SCe(e,r):CT(isNaN(e)?t:e)}var P2=tc(()=>{Bj()});function ECe(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o{L2();k6();Fj();P2();q4=function e(t){var r=MCe(t);function n(i,a){var o=r((i=ST(i)).r,(a=ST(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),l=ph(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=u(f),i.opacity=l(f),i+""}}return n.gamma=e,n}(1);kCe=ECe(E6),CCe=ECe(C6)});function LT(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{});function LCe(e,t){return(L6(t)?LT:qj)(e,t)}function qj(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{N4();P6()});function z6(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var Uj=tc(()=>{});function Dv(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var U4=tc(()=>{});function I6(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=X_(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Vj=tc(()=>{N4()});function KLt(e){return function(){return e}}function JLt(e){return function(t){return e(t)+""}}function R6(e,t){var r=Hj.lastIndex=Gj.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=Hj.exec(e))&&(i=Gj.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Dv(n,i)})),r=Gj.lastIndex;return r{U4();Hj=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gj=new RegExp(Hj.source,"g")});function X_(e,t){var r=typeof t,n;return t==null||r==="boolean"?CT(t):(r==="number"?Dv:r==="string"?(n=W_(t))?(t=n,q4):R6:t instanceof W_?q4:t instanceof Date?z6:L6(t)?LT:Array.isArray(t)?qj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?I6:Dv)(e,t)}var N4=tc(()=>{L2();Oj();Nj();Uj();U4();Vj();Wj();Bj();P6()});function PCe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var zCe=tc(()=>{});function ICe(e,t){var r=j_(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var RCe=tc(()=>{P2()});function DCe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var FCe=tc(()=>{});function jj(e,t,r,n,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,u/=s),e*n{BCe=180/Math.PI,D6={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function qCe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?D6:jj(t.a,t.b,t.c,t.d,t.e,t.f)}function NCe(e){return e==null?D6:(F6||(F6=document.createElementNS("http://www.w3.org/2000/svg","g")),F6.setAttribute("transform",e),(e=F6.transform.baseVal.consolidate())?(e=e.matrix,jj(e.a,e.b,e.c,e.d,e.e,e.f)):D6)}var F6,UCe=tc(()=>{OCe()});function VCe(e,t,r,n){function i(l){return l.length?l.pop()+" ":""}function a(l,f,c,h,d,p){if(l!==c||f!==h){var _=d.push("translate(",null,t,null,r);p.push({i:_-4,x:Dv(l,c)},{i:_-2,x:Dv(f,h)})}else(c||h)&&d.push("translate("+c+t+h+r)}function o(l,f,c,h){l!==f?(l-f>180?f+=360:f-l>180&&(l+=360),h.push({i:c.push(i(c)+"rotate(",null,n)-2,x:Dv(l,f)})):f&&c.push(i(c)+"rotate("+f+n)}function s(l,f,c,h){l!==f?h.push({i:c.push(i(c)+"skewX(",null,n)-2,x:Dv(l,f)}):f&&c.push(i(c)+"skewX("+f+n)}function u(l,f,c,h,d,p){if(l!==c||f!==h){var _=d.push(i(d)+"scale(",null,",",null,")");p.push({i:_-4,x:Dv(l,c)},{i:_-2,x:Dv(f,h)})}else(c!==1||h!==1)&&d.push(i(d)+"scale("+c+","+h+")")}return function(l,f){var c=[],h=[];return l=e(l),f=e(f),a(l.translateX,l.translateY,f.translateX,f.translateY,c,h),o(l.rotate,f.rotate,c,h),s(l.skewX,f.skewX,c,h),u(l.scaleX,l.scaleY,f.scaleX,f.scaleY,c,h),l=f=null,function(d){for(var p=-1,_=h.length,b;++p<_;)c[(b=h[p]).i]=b.x(d);return c.join("")}}}var GCe,HCe,WCe=tc(()=>{U4();UCe();GCe=VCe(qCe,"px, ","px)","deg)"),HCe=VCe(NCe,", ",")",")")});function jCe(e){return((e=Math.exp(e))+1/e)/2}function QLt(e){return((e=Math.exp(e))-1/e)/2}function ePt(e){return((e=Math.exp(2*e))-1)/(e+1)}var $Lt,XCe,ZCe=tc(()=>{$Lt=1e-12;XCe=function e(t,r,n){function i(a,o){var s=a[0],u=a[1],l=a[2],f=o[0],c=o[1],h=o[2],d=f-s,p=c-u,_=d*d+p*p,b,v;if(_<$Lt)v=Math.log(h/l)/t,b=function(C){return[s+C*d,u+C*p,l*Math.exp(t*C*v)]};else{var k=Math.sqrt(_),E=(h*h-l*l+n*_)/(2*l*r*k),T=(h*h-l*l-n*_)/(2*h*r*k),L=Math.log(Math.sqrt(E*E+1)-E),x=Math.log(Math.sqrt(T*T+1)-T);v=(x-L)/t,b=function(C){var M=C*v,m=jCe(L),P=l/(r*k)*(m*ePt(t*M+L)-QLt(L));return[s+P*d,u+P*p,l*m/jCe(t*M+L)]}}return b.duration=v*1e3*t/Math.SQRT2,b}return i.rho=function(a){var o=Math.max(.001,+a),s=o*o,u=s*s;return e(o,s,u)},i}(Math.SQRT2,2,4)});function YCe(e){return function(t,r){var n=e((t=F4(t)).h,(r=F4(r)).h),i=ph(t.s,r.s),a=ph(t.l,r.l),o=ph(t.opacity,r.opacity);return function(s){return t.h=n(s),t.s=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var KCe,JCe,$Ce=tc(()=>{L2();P2();KCe=YCe(j_),JCe=YCe(ph)});function Xj(e,t){var r=ph((e=ET(e)).l,(t=ET(t)).l),n=ph(e.a,t.a),i=ph(e.b,t.b),a=ph(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}var QCe=tc(()=>{L2();P2()});function eLe(e){return function(t,r){var n=e((t=B4(t)).h,(r=B4(r)).h),i=ph(t.c,r.c),a=ph(t.l,r.l),o=ph(t.opacity,r.opacity);return function(s){return t.h=n(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var tLe,rLe,iLe=tc(()=>{L2();P2();tLe=eLe(j_),rLe=eLe(ph)});function nLe(e){return function t(r){r=+r;function n(i,a){var o=e((i=kT(i)).h,(a=kT(a)).h),s=ph(i.s,a.s),u=ph(i.l,a.l),l=ph(i.opacity,a.opacity);return function(f){return i.h=o(f),i.s=s(f),i.l=u(Math.pow(f,r)),i.opacity=l(f),i+""}}return n.gamma=t,n}(1)}var aLe,oLe,sLe=tc(()=>{L2();P2();aLe=nLe(j_),oLe=nLe(ph)});function Zj(e,t){t===void 0&&(t=e,e=X_);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{N4()});function uLe(e,t){for(var r=new Array(t),n=0;n{});var z2={};bee(z2,{interpolate:()=>X_,interpolateArray:()=>LCe,interpolateBasis:()=>E6,interpolateBasisClosed:()=>C6,interpolateCubehelix:()=>aLe,interpolateCubehelixLong:()=>oLe,interpolateDate:()=>z6,interpolateDiscrete:()=>PCe,interpolateHcl:()=>tLe,interpolateHclLong:()=>rLe,interpolateHsl:()=>KCe,interpolateHslLong:()=>JCe,interpolateHue:()=>ICe,interpolateLab:()=>Xj,interpolateNumber:()=>Dv,interpolateNumberArray:()=>LT,interpolateObject:()=>I6,interpolateRgb:()=>q4,interpolateRgbBasis:()=>kCe,interpolateRgbBasisClosed:()=>CCe,interpolateRound:()=>DCe,interpolateString:()=>R6,interpolateTransformCss:()=>GCe,interpolateTransformSvg:()=>HCe,interpolateZoom:()=>XCe,piecewise:()=>Zj,quantize:()=>uLe});var I2=tc(()=>{N4();Nj();k6();Fj();Uj();zCe();RCe();U4();P6();Vj();FCe();Wj();WCe();ZCe();Oj();$Ce();QCe();iLe();sLe();lLe();fLe()});var B6=Te((T0r,cLe)=>{"use strict";var tPt=Mu(),rPt=jl();cLe.exports=function(t,r,n,i,a){var o=r.data.data,s=o.i,u=a||o.color;if(s>=0){r.i=o.i;var l=n.marker;l.pattern?(!l.colors||!l.pattern.shape)&&(l.color=u,r.color=u):(l.color=u,r.color=u),tPt.pointStyle(t,n,i,r)}else rPt.fill(t,u)}});var Yj=Te((S0r,mLe)=>{"use strict";var hLe=Jl(),dLe=jl(),pLe=ei(),iPt=Ap().resizeText,nPt=B6();function aPt(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");iPt(e,t,"sunburst"),t.each(function(r){var n=hLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){hLe.select(this).call(vLe,o,a,e)})})}function vLe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=pLe.castOption(r,o,"marker.line.color")||dLe.defaultLine,u=pLe.castOption(r,o,"marker.line.width")||0;e.call(nPt,t,r,n).style("stroke-width",u).call(dLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}mLe.exports={style:aPt,styleOne:vLe}});var Kg=Te(gf=>{"use strict";var R2=ei(),oPt=jl(),sPt=Tm(),yLe=l_();gf.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(n){if(gf.getPtId(n)===t)return r=n.copy()}),r||e};gf.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(n){for(var i=n.children||[],a=0;a0)};gf.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};gf.isHeader=function(e,t){return!(gf.isLeaf(e)||e.depth===t._maxDepth-1)};function gLe(e){return e.data.data.pid}gf.getParent=function(e,t){return gf.findEntryWithLevel(e,gLe(t))};gf.listPath=function(e,t){var r=e.parent;if(!r)return[];var n=t?[r.data[t]]:[r];return gf.listPath(r,t).concat(n)};gf.getPath=function(e){return gf.listPath(e,"label").join("/")+"/"};gf.formatValue=yLe.formatPieValue;gf.formatPercent=function(e,t){var r=R2.formatPercent(e,0);return r==="0%"&&(r=yLe.formatPiePercent(e,t)),r}});var H4=Te((E0r,bLe)=>{"use strict";var PT=Jl(),_Le=$l(),fPt=iv().appendArrayPointValue,V4=Xc(),xLe=ei(),cPt=m3(),ad=Kg(),hPt=l_(),dPt=hPt.formatPieValue;bLe.exports=function(t,r,n,i,a){var o=i[0],s=o.trace,u=o.hierarchy,l=s.type==="sunburst",f=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var c=function(p){var _=n._fullLayout;if(!(n._dragging||_.hovermode===!1)){var b=n._fullData[s.index],v=p.data.data,k=v.i,E=ad.isHierarchyRoot(p),T=ad.getParent(u,p),L=ad.getValue(p),x=function(Pe){return xLe.castOption(b,k,Pe)},C=x("hovertemplate"),M=V4.castHoverinfo(b,_,k),m=_.separators,P;if(C||M&&M!=="none"&&M!=="skip"){var A,B;l&&(A=o.cx+p.pxmid[0]*(1-p.rInscribed),B=o.cy+p.pxmid[1]*(1-p.rInscribed)),f&&(A=p._hoverX,B=p._hoverY);var F={},U=[],G=[],j=function(Pe){return U.indexOf(Pe)!==-1};M&&(U=M==="all"?b._module.attributes.hoverinfo.flags:M.split("+")),F.label=v.label,j("label")&&F.label&&G.push(F.label),v.hasOwnProperty("v")&&(F.value=v.v,F.valueLabel=dPt(F.value,m),j("value")&&G.push(F.valueLabel)),F.currentPath=p.currentPath=ad.getPath(p.data),j("current path")&&!E&&G.push(F.currentPath);var H,N=[],W=function(){N.indexOf(H)===-1&&(G.push(H),N.push(H))};F.percentParent=p.percentParent=L/ad.getValue(T),F.parent=p.parentString=ad.getPtLabel(T),j("percent parent")&&(H=ad.formatPercent(F.percentParent,m)+" of "+F.parent,W()),F.percentEntry=p.percentEntry=L/ad.getValue(r),F.entry=p.entry=ad.getPtLabel(r),j("percent entry")&&!E&&!p.onPathbar&&(H=ad.formatPercent(F.percentEntry,m)+" of "+F.entry,W()),F.percentRoot=p.percentRoot=L/ad.getValue(u),F.root=p.root=ad.getPtLabel(u),j("percent root")&&!E&&(H=ad.formatPercent(F.percentRoot,m)+" of "+F.root,W()),F.text=x("hovertext")||x("text"),j("text")&&(H=F.text,xLe.isValidTextValue(H)&&G.push(H)),P=[G4(p,b,a.eventDataKeys)];var re={trace:b,y:B,_x0:p._x0,_x1:p._x1,_y0:p._y0,_y1:p._y1,text:G.join("
"),name:C||j("name")?b.name:void 0,color:x("hoverlabel.bgcolor")||v.color,borderColor:x("hoverlabel.bordercolor"),fontFamily:x("hoverlabel.font.family"),fontSize:x("hoverlabel.font.size"),fontColor:x("hoverlabel.font.color"),fontWeight:x("hoverlabel.font.weight"),fontStyle:x("hoverlabel.font.style"),fontVariant:x("hoverlabel.font.variant"),nameLength:x("hoverlabel.namelength"),textAlign:x("hoverlabel.align"),hovertemplate:C,hovertemplateLabels:F,eventData:P};l&&(re.x0=A-p.rInscribed*p.rpx1,re.x1=A+p.rInscribed*p.rpx1,re.idealAlign=p.pxmid[0]<0?"left":"right"),f&&(re.x=A,re.idealAlign=A<0?"left":"right");var ae=[];V4.loneHover(re,{container:_._hoverlayer.node(),outerContainer:_._paper.node(),gd:n,inOut_bbox:ae}),P[0].bbox=ae[0],s._hasHoverLabel=!0}if(f){var be=t.select("path.surface");a.styleOne(be,p,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[G4(p,b,a.eventDataKeys)],event:PT.event})}},h=function(p){var _=n._fullLayout,b=n._fullData[s.index],v=PT.select(this).datum();if(s._hasHoverEvent&&(p.originalEvent=PT.event,n.emit("plotly_unhover",{points:[G4(v,b,a.eventDataKeys)],event:PT.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(V4.loneUnhover(_._hoverlayer.node()),s._hasHoverLabel=!1),f){var k=t.select("path.surface");a.styleOne(k,v,b,n,{hovered:!1})}},d=function(p){var _=n._fullLayout,b=n._fullData[s.index],v=l&&(ad.isHierarchyRoot(p)||ad.isLeaf(p)),k=ad.getPtId(p),E=ad.isEntry(p)?ad.findEntryWithChild(u,k):ad.findEntryWithLevel(u,k),T=ad.getPtId(E),L={points:[G4(p,b,a.eventDataKeys)],event:PT.event};v||(L.nextLevel=T);var x=cPt.triggerHandler(n,"plotly_"+s.type+"click",L);if(x!==!1&&_.hovermode&&(n._hoverdata=[G4(p,b,a.eventDataKeys)],V4.click(n,PT.event)),!v&&x!==!1&&!n._dragging&&!n._transitioning){_Le.call("_storeDirectGUIEdit",b,_._tracePreGUI[b.uid],{level:b.level});var C={data:[{level:T}],traces:[s.index]},M={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};V4.loneUnhover(_._hoverlayer.node()),_Le.call("animate",n,C,M)}};t.on("mouseover",c),t.on("mouseout",h),t.on("click",d)};function G4(e,t,r){for(var n=e.data.data,i={curveNumber:t.index,pointNumber:n.i,data:t._input,fullData:t},a=0;a{"use strict";var W4=Jl(),pPt=P4(),Zm=(I2(),ab(z2)).interpolate,wLe=Mu(),Sp=ei(),vPt=Xf(),MLe=Ap(),ALe=MLe.recordMinTextSize,mPt=MLe.clearMinTextSize,ELe=m6(),yPt=l_().getRotationAngle,gPt=ELe.computeTransform,_Pt=ELe.transformInsideText,xPt=Yj().styleOne,bPt=U0().resizeText,wPt=H4(),Kj=Sj(),qf=Kg();O6.plot=function(e,t,r,n){var i=e._fullLayout,a=i._sunburstlayer,o,s,u=!r,l=!i.uniformtext.mode&&qf.hasTransition(r);if(mPt("sunburst",i),o=a.selectAll("g.trace.sunburst").data(t,function(c){return c[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),l){n&&(s=n());var f=W4.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});f.each(function(){a.selectAll("g.trace").each(function(c){TLe(e,c,this,r)})})}else o.each(function(c){TLe(e,c,this,r)}),i.uniformtext.mode&&bPt(e,i._sunburstlayer.selectAll(".trace"),"sunburst");u&&o.exit().remove()};function TLe(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&qf.hasTransition(n),s=W4.select(r),u=s.selectAll("g.slice"),l=t[0],f=l.trace,c=l.hierarchy,h=qf.findEntryWithLevel(c,f.level),d=qf.getMaxDepth(f),p=a._size,_=f.domain,b=p.w*(_.x[1]-_.x[0]),v=p.h*(_.y[1]-_.y[0]),k=.5*Math.min(b,v),E=l.cx=p.l+p.w*(_.x[1]+_.x[0])/2,T=l.cy=p.t+p.h*(1-_.y[0])-v/2;if(!h)return u.remove();var L=null,x={};o&&u.each(function(de){x[qf.getPtId(de)]={rpx0:de.rpx0,rpx1:de.rpx1,x0:de.x0,x1:de.x1,transform:de.transform},!L&&qf.isEntry(de)&&(L=de)});var C=APt(h).descendants(),M=h.height+1,m=0,P=d;l.hasMultipleRoots&&qf.isHierarchyRoot(h)&&(C=C.slice(1),M-=1,m=1,P+=1),C=C.filter(function(de){return de.y1<=P});var A=yPt(f.rotation);A&&C.forEach(function(de){de.x0+=A,de.x1+=A});var B=Math.min(M,d),F=function(de){return(de-m)/B*k},U=function(de,te){return[de*Math.cos(te),-de*Math.sin(te)]},G=function(de){return Sp.pathAnnulus(de.rpx0,de.rpx1,de.x0,de.x1,E,T)},j=function(de){return E+SLe(de)[0]*(de.transform.rCenter||0)+(de.transform.x||0)},H=function(de){return T+SLe(de)[1]*(de.transform.rCenter||0)+(de.transform.y||0)};u=u.data(C,qf.getPtId),u.enter().append("g").classed("slice",!0),o?u.exit().transition().each(function(){var de=W4.select(this),te=de.select("path.surface");te.transition().attrTween("d",function(Ee){var Me=ae(Ee);return function(Ne){return G(Me(Ne))}});var ke=de.select("g.slicetext");ke.attr("opacity",0)}).remove():u.exit().remove(),u.order();var N=null;if(o&&L){var W=qf.getPtId(L);u.each(function(de){N===null&&qf.getPtId(de)===W&&(N=de.x1)})}var re=u;o&&(re=re.transition().each("end",function(){var de=W4.select(this);qf.setSliceCursor(de,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),re.each(function(de){var te=W4.select(this),ke=Sp.ensureSingle(te,"path","surface",function(Ve){Ve.style("pointer-events",i?"none":"all")});de.rpx0=F(de.y0),de.rpx1=F(de.y1),de.xmid=(de.x0+de.x1)/2,de.pxmid=U(de.rpx1,de.xmid),de.midangle=-(de.xmid-Math.PI/2),de.startangle=-(de.x0-Math.PI/2),de.stopangle=-(de.x1-Math.PI/2),de.halfangle=.5*Math.min(Sp.angleDelta(de.x0,de.x1)||Math.PI,Math.PI),de.ring=1-de.rpx0/de.rpx1,de.rInscribed=TPt(de,f),o?ke.transition().attrTween("d",function(Ve){var ce=be(Ve);return function(Ke){return G(ce(Ke))}}):ke.attr("d",G),te.call(wPt,h,e,t,{eventDataKeys:Kj.eventDataKeys,transitionTime:Kj.CLICK_TRANSITION_TIME,transitionEasing:Kj.CLICK_TRANSITION_EASING}).call(qf.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),ke.call(xPt,de,f,e);var Ee=Sp.ensureSingle(te,"g","slicetext"),Me=Sp.ensureSingle(Ee,"text","",function(Ve){Ve.attr("data-notex",1)}),Ne=Sp.ensureUniformFontSize(e,qf.determineTextFont(f,de,a.font));Me.text(O6.formatSliceLabel(de,h,f,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(wLe.font,Ne).call(vPt.convertToTspans,e);var Fe=wLe.bBox(Me.node());de.transform=_Pt(Fe,de,l),de.transform.targetX=j(de),de.transform.targetY=H(de);var ye=function(Ve,ce){var Ke=Ve.transform;return gPt(Ke,ce),Ke.fontSize=Ne.size,ALe(f.type,Ke,a),Sp.getTextTransform(Ke)};o?Me.transition().attrTween("transform",function(Ve){var ce=Pe(Ve);return function(Ke){return ye(ce(Ke),Fe)}}):Me.attr("transform",ye(de,Fe))});function ae(de){var te=qf.getPtId(de),ke=x[te],Ee=x[qf.getPtId(h)],Me;if(Ee){var Ne=(de.x1>Ee.x1?2*Math.PI:0)+A;Me=de.rpx1N?2*Math.PI:0)+A;ke={x0:Me,x1:Me}}else ke={rpx0:k,rpx1:k},Sp.extendFlat(ke,Ce(de));else ke={rpx0:0,rpx1:0};else ke={x0:A,x1:A};return Zm(ke,Ee)}function Pe(de){var te=x[qf.getPtId(de)],ke,Ee=de.transform;if(te)ke=te;else if(ke={rpx1:de.rpx1,transform:{textPosAngle:Ee.textPosAngle,scale:0,rotate:Ee.rotate,rCenter:Ee.rCenter,x:Ee.x,y:Ee.y}},L)if(de.parent)if(N){var Me=de.x1>N?2*Math.PI:0;ke.x0=ke.x1=Me}else Sp.extendFlat(ke,Ce(de));else ke.x0=ke.x1=A;else ke.x0=ke.x1=A;var Ne=Zm(ke.transform.textPosAngle,de.transform.textPosAngle),Fe=Zm(ke.rpx1,de.rpx1),ye=Zm(ke.x0,de.x0),Ve=Zm(ke.x1,de.x1),ce=Zm(ke.transform.scale,Ee.scale),Ke=Zm(ke.transform.rotate,Ee.rotate),nt=Ee.rCenter===0?3:ke.transform.rCenter===0?1/3:1,gt=Zm(ke.transform.rCenter,Ee.rCenter),Nt=function(it){return gt(Math.pow(it,nt))};return function(it){var Ye=Fe(it),kt=ye(it),Tt=Ve(it),St=Nt(it),Rt=U(Ye,(kt+Tt)/2),Zt=Ne(it),Et={pxmid:Rt,rpx1:Ye,transform:{textPosAngle:Zt,rCenter:St,x:Ee.x,y:Ee.y}};return ALe(f.type,Ee,a),{transform:{targetX:j(Et),targetY:H(Et),scale:ce(it),rotate:Ke(it),rCenter:St}}}}function Ce(de){var te=de.parent,ke=x[qf.getPtId(te)],Ee={};if(ke){var Me=te.children,Ne=Me.indexOf(de),Fe=Me.length,ye=Zm(ke.x0,ke.x1);Ee.x0=ye(Ne/Fe),Ee.x1=ye(Ne/Fe)}else Ee.x0=Ee.x1=0;return Ee}}function APt(e){return pPt.partition().size([2*Math.PI,e.height+1])(e)}O6.formatSliceLabel=function(e,t,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=i.separators,u=n[0],l=e.data.data,f=u.hierarchy,c=qf.isHierarchyRoot(e),h=qf.getParent(f,e),d=qf.getValue(e);if(!a){var p=o.split("+"),_=function(m){return p.indexOf(m)!==-1},b=[],v;if(_("label")&&l.label&&b.push(l.label),l.hasOwnProperty("v")&&_("value")&&b.push(qf.formatValue(l.v,s)),!c){_("current path")&&b.push(qf.getPath(e.data));var k=0;_("percent parent")&&k++,_("percent entry")&&k++,_("percent root")&&k++;var E=k>1;if(k){var T,L=function(m){v=qf.formatPercent(T,s),E&&(v+=" of "+m),b.push(v)};_("percent parent")&&!c&&(T=d/qf.getValue(h),L("parent")),_("percent entry")&&(T=d/qf.getValue(t),L("entry")),_("percent root")&&(T=d/qf.getValue(f),L("root"))}}return _("text")&&(v=Sp.castOption(r,l.i,"text"),Sp.isValidTextValue(v)&&b.push(v)),b.join("
")}var x=Sp.castOption(r,l.i,"texttemplate");if(!x)return"";var C={};l.label&&(C.label=l.label),l.hasOwnProperty("v")&&(C.value=l.v,C.valueLabel=qf.formatValue(l.v,s)),C.currentPath=qf.getPath(e.data),c||(C.percentParent=d/qf.getValue(h),C.percentParentLabel=qf.formatPercent(C.percentParent,s),C.parent=qf.getPtLabel(h)),C.percentEntry=d/qf.getValue(t),C.percentEntryLabel=qf.formatPercent(C.percentEntry,s),C.entry=qf.getPtLabel(t),C.percentRoot=d/qf.getValue(f),C.percentRootLabel=qf.formatPercent(C.percentRoot,s),C.root=qf.getPtLabel(f),l.hasOwnProperty("color")&&(C.color=l.color);var M=Sp.castOption(r,l.i,"text");return(Sp.isValidTextValue(M)||M==="")&&(C.text=M),C.customdata=Sp.castOption(r,l.i,"customdata"),Sp.texttemplateString(x,C,i._d3locale,C,r._meta||{})};function TPt(e){return e.rpx0===0&&Sp.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function SLe(e){return SPt(e.rpx1,e.transform.textPosAngle)}function SPt(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var CLe=Te((C0r,kLe)=>{"use strict";kLe.exports={moduleType:"trace",name:"sunburst",basePlotModule:Gke(),categories:[],animatable:!0,attributes:L4(),layoutAttributes:Mj(),supplyDefaults:Jke(),supplyLayoutDefaults:Qke(),calc:I4().calc,crossTraceCalc:I4().crossTraceCalc,plot:q6().plot,style:Yj().style,colorbar:ep(),meta:{}}});var PLe=Te((L0r,LLe)=>{"use strict";LLe.exports=CLe()});var ILe=Te(zT=>{"use strict";var zLe=Cc();zT.name="treemap";zT.plot=function(e,t,r,n){zLe.plotBasePlot(zT.name,e,t,r,n)};zT.clean=function(e,t,r,n){zLe.cleanBasePlot(zT.name,e,t,r,n)}});var D2=Te((z0r,RLe)=>{"use strict";RLe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var N6=Te((I0r,FLe)=>{"use strict";var MPt=Nu().hovertemplateAttrs,EPt=Nu().texttemplateAttrs,kPt=nc(),CPt=zc().attributes,F2=T2(),em=L4(),DLe=D2(),Jj=Su().extendFlat,LPt=Id().pattern;FLe.exports={labels:em.labels,parents:em.parents,values:em.values,branchvalues:em.branchvalues,count:em.count,level:em.level,maxdepth:em.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:Jj({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:em.marker.colors,pattern:LPt,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:em.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},kPt("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:Jj({},F2.textfont,{}),editType:"calc"},text:F2.text,textinfo:em.textinfo,texttemplate:EPt({editType:"plot"},{keys:DLe.eventDataKeys.concat(["label","value"])}),hovertext:F2.hovertext,hoverinfo:em.hoverinfo,hovertemplate:MPt({},{keys:DLe.eventDataKeys}),textfont:F2.textfont,insidetextfont:F2.insidetextfont,outsidetextfont:Jj({},F2.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:F2.sort,root:em.root,domain:CPt({name:"treemap",trace:!0,editType:"calc"})}});var $j=Te((R0r,BLe)=>{"use strict";BLe.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var ULe=Te((D0r,NLe)=>{"use strict";var OLe=ei(),PPt=N6(),zPt=jl(),IPt=zc().defaults,RPt=r0().handleText,DPt=Qb().TEXTPAD,FPt=S2().handleMarkerDefaults,qLe=_c(),BPt=qLe.hasColorscale,OPt=qLe.handleDefaults;NLe.exports=function(t,r,n,i){function a(b,v){return OLe.coerce(t,r,PPt,b,v)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var l=a("tiling.packing");l==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var f=a("text");a("texttemplate"),r.texttemplate||a("textinfo",OLe.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate");var c=a("pathbar.visible"),h="auto";RPt(t,r,i,a,h,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;FPt(t,r,i,a);var p=r._hasColorscale=BPt(t,"marker","colors")||(t.marker||{}).coloraxis;p?OPt(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var _=r.textfont.size*2;a("marker.pad.t",d?_/4:_),a("marker.pad.l",_/4),a("marker.pad.r",_/4),a("marker.pad.b",d?_:_/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:zPt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*DPt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),IPt(r,i,a),r._length=null}});var GLe=Te((F0r,VLe)=>{"use strict";var qPt=ei(),NPt=$j();VLe.exports=function(t,r){function n(i,a){return qPt.coerce(t,r,NPt,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var eX=Te(Qj=>{"use strict";var HLe=I4();Qj.calc=function(e,t){return HLe.calc(e,t)};Qj.crossTraceCalc=function(e){return HLe._runCrossTraceCalc("treemap",e)}});var tX=Te((O0r,WLe)=>{"use strict";WLe.exports=function e(t,r,n){var i;n.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),n.flipX&&(i=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-i),n.flipY&&(i=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-i);var a=t.children;if(a)for(var o=0;o{"use strict";var IT=P4(),UPt=tX();jLe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.packing==="dice-slice",s=n.pad[a?"bottom":"top"],u=n.pad[i?"right":"left"],l=n.pad[i?"left":"right"],f=n.pad[a?"top":"bottom"],c;o&&(c=u,u=s,s=c,c=l,l=f,f=c);var h=IT.treemap().tile(VPt(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(u).paddingRight(l).paddingTop(s).paddingBottom(f).size(o?[r[1],r[0]]:r)(t);return(o||i||a)&&UPt(h,r,{swapXY:o,flipX:i,flipY:a}),h};function VPt(e,t){switch(e){case"squarify":return IT.treemapSquarify.ratio(t);case"binary":return IT.treemapBinary;case"dice":return IT.treemapDice;case"slice":return IT.treemapSlice;default:return IT.treemapSliceDice}}});var U6=Te((N0r,KLe)=>{"use strict";var XLe=Jl(),RT=jl(),ZLe=ei(),iX=Kg(),GPt=Ap().resizeText,HPt=B6();function WPt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");GPt(e,t,"treemap"),t.each(function(r){var n=XLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){XLe.select(this).call(YLe,o,a,e,{hovered:!1})})})}function YLe(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,u,l,f=o.color,c=iX.isHierarchyRoot(t),h=1;if(a)u=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(c&&f===r.root.color)h=100,u="rgba(0,0,0,0)",l=0;else if(u=ZLe.castOption(r,s,"marker.line.color")||RT.defaultLine,l=ZLe.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var p=RT.combine(RT.addOpacity(r._backgroundColor,.75),f),_;if(d===!0){var b=iX.getMaxDepth(r);isFinite(b)?iX.isLeaf(t)?_=0:_=r._maxVisibleLayers-(t.data.depth-r._entryDepth):_=t.data.height+1}else _=t.data.depth-r._entryDepth,r._atRootLevel||_++;if(_>0)for(var v=0;v<_;v++){var k=.5*v/_;f=RT.combine(RT.addOpacity(p,k),f)}}}e.call(HPt,t,r,n,f).style("stroke-width",l).call(RT.stroke,u).style("opacity",h)}KLe.exports={style:WPt,styleOne:YLe}});var tPe=Te((U0r,ePe)=>{"use strict";var JLe=Jl(),V6=ei(),$Le=Mu(),jPt=Xf(),XPt=rX(),QLe=U6().styleOne,nX=D2(),DT=Kg(),ZPt=H4(),aX=!0;ePe.exports=function(t,r,n,i,a){var o=a.barDifY,s=a.width,u=a.height,l=a.viewX,f=a.viewY,c=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,p=a.hasTransition,_=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,v=a.makeUpdateTextInterpolator,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,C=L.hierarchy,M=s/x._entryDepth,m=DT.listPath(n.data,"id"),P=XPt(C.copy(),[s,u],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(B){var F=m.indexOf(B.data.id);return F===-1?!1:(B.x0=M*F,B.x1=M*(F+1),B.y0=o,B.y1=o+u,B.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,DT.getPtId),i.enter().append("g").classed("pathbar",!0),_(i,aX,k,[s,u],c),i.order();var A=i;p&&(A=A.transition().each("end",function(){var B=JLe.select(this);DT.setSliceCursor(B,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),A.each(function(B){B._x0=l(B.x0),B._x1=l(B.x1),B._y0=f(B.y0),B._y1=f(B.y1),B._hoverX=l(B.x1-Math.min(s,u)/2),B._hoverY=f(B.y1-u/2);var F=JLe.select(this),U=V6.ensureSingle(F,"path","surface",function(N){N.style("pointer-events",E?"none":"all")});p?U.transition().attrTween("d",function(N){var W=b(N,aX,k,[s,u]);return function(re){return c(W(re))}}):U.attr("d",c),F.call(ZPt,n,t,r,{styleOne:QLe,eventDataKeys:nX.eventDataKeys,transitionTime:nX.CLICK_TRANSITION_TIME,transitionEasing:nX.CLICK_TRANSITION_EASING}).call(DT.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),U.call(QLe,B,x,t,{hovered:!1}),B._text=(DT.getPtLabel(B)||"").split("
").join(" ")||"";var G=V6.ensureSingle(F,"g","slicetext"),j=V6.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),H=V6.ensureUniformFontSize(t,DT.determineTextFont(x,B,T.font,{onPathbar:!0}));j.text(B._text||" ").classed("slicetext",!0).attr("text-anchor","start").call($Le.font,H).call(jPt.convertToTspans,t),B.textBB=$Le.bBox(j.node()),B.transform=h(B,{fontSize:H.size,onPathbar:!0}),B.transform.fontSize=H.size,p?j.transition().attrTween("transform",function(N){var W=v(N,aX,k,[s,u]);return function(re){return d(W(re))}}):j.attr("transform",d(B))})}});var aPe=Te((V0r,nPe)=>{"use strict";var rPe=Jl(),oX=(I2(),ab(z2)).interpolate,Z_=Kg(),j4=ei(),iPe=Qb().TEXTPAD,YPt=i2(),KPt=YPt.toMoveInsideBar,JPt=Ap(),sX=JPt.recordMinTextSize,$Pt=D2(),QPt=tPe();function B2(e){return Z_.isHierarchyRoot(e)?"":Z_.getPtId(e)}nPe.exports=function(t,r,n,i,a){var o=t._fullLayout,s=r[0],u=s.trace,l=u.type,f=l==="icicle",c=s.hierarchy,h=Z_.findEntryWithLevel(c,u.level),d=rPe.select(n),p=d.selectAll("g.pathbar"),_=d.selectAll("g.slice");if(!h){p.remove(),_.remove();return}var b=Z_.isHierarchyRoot(h),v=!o.uniformtext.mode&&Z_.hasTransition(i),k=Z_.getMaxDepth(u),E=function(Ae){return Ae.data.depth-h.data.depth-1?C+P:-(m+P):0,B={x0:M,x1:M,y0:A,y1:A+m},F=function(Ae,at,wt){var vt=u.tiling.pad,st=function(zt){return zt-vt<=at.x0},Ue=function(zt){return zt+vt>=at.x1},rt=function(zt){return zt-vt<=at.y0},$e=function(zt){return zt+vt>=at.y1};return Ae.x0===at.x0&&Ae.x1===at.x1&&Ae.y0===at.y0&&Ae.y1===at.y1?{x0:Ae.x0,x1:Ae.x1,y0:Ae.y0,y1:Ae.y1}:{x0:st(Ae.x0-vt)?0:Ue(Ae.x0-vt)?wt[0]:Ae.x0,x1:st(Ae.x1+vt)?0:Ue(Ae.x1+vt)?wt[0]:Ae.x1,y0:rt(Ae.y0-vt)?0:$e(Ae.y0-vt)?wt[1]:Ae.y0,y1:rt(Ae.y1+vt)?0:$e(Ae.y1+vt)?wt[1]:Ae.y1}},U=null,G={},j={},H=null,N=function(Ae,at){return at?G[B2(Ae)]:j[B2(Ae)]},W=function(Ae,at,wt,vt){if(at)return G[B2(c)]||B;var st=j[u.level]||wt;return E(Ae)?F(Ae,st,vt):{}};s.hasMultipleRoots&&b&&k++,u._maxDepth=k,u._backgroundColor=o.paper_bgcolor,u._entryDepth=h.data.depth,u._atRootLevel=b;var re=-x/2+T.l+T.w*(L.x[1]+L.x[0])/2,ae=-C/2+T.t+T.h*(1-(L.y[1]+L.y[0])/2),be=function(Ae){return re+Ae},Pe=function(Ae){return ae+Ae},Ce=Pe(0),de=be(0),te=function(Ae){return de+Ae},ke=function(Ae){return Ce+Ae};function Ee(Ae,at){return Ae+","+at}var Me=te(0),Ne=function(Ae){Ae.x=Math.max(Me,Ae.x)},Fe=u.pathbar.edgeshape,ye=function(Ae){var at=te(Math.max(Math.min(Ae.x0,Ae.x0),0)),wt=te(Math.min(Math.max(Ae.x1,Ae.x1),M)),vt=ke(Ae.y0),st=ke(Ae.y1),Ue=m/2,rt={},$e={};rt.x=at,$e.x=wt,rt.y=$e.y=(vt+st)/2;var zt={x:at,y:vt},Yt={x:wt,y:vt},hr={x:wt,y:st},yr={x:at,y:st};return Fe===">"?(zt.x-=Ue,Yt.x-=Ue,hr.x-=Ue,yr.x-=Ue):Fe==="/"?(hr.x-=Ue,yr.x-=Ue,rt.x-=Ue/2,$e.x-=Ue/2):Fe==="\\"?(zt.x-=Ue,Yt.x-=Ue,rt.x-=Ue/2,$e.x-=Ue/2):Fe==="<"&&(rt.x-=Ue,$e.x-=Ue),Ne(zt),Ne(yr),Ne(rt),Ne(Yt),Ne(hr),Ne($e),"M"+Ee(zt.x,zt.y)+"L"+Ee(Yt.x,Yt.y)+"L"+Ee($e.x,$e.y)+"L"+Ee(hr.x,hr.y)+"L"+Ee(yr.x,yr.y)+"L"+Ee(rt.x,rt.y)+"Z"},Ve=u[f?"tiling":"marker"].pad,ce=function(Ae){return u.textposition.indexOf(Ae)!==-1},Ke=ce("top"),nt=ce("left"),gt=ce("right"),Nt=ce("bottom"),it=function(Ae){var at=be(Ae.x0),wt=be(Ae.x1),vt=Pe(Ae.y0),st=Pe(Ae.y1),Ue=wt-at,rt=st-vt;if(!Ue||!rt)return"";var $e=u.marker.cornerradius||0,zt=Math.min($e,Ue/2,rt/2);zt&&Ae.data&&Ae.data.data&&Ae.data.data.label&&(Ke&&(zt=Math.min(zt,Ve.t)),nt&&(zt=Math.min(zt,Ve.l)),gt&&(zt=Math.min(zt,Ve.r)),Nt&&(zt=Math.min(zt,Ve.b)));var Yt=function(hr,yr){return zt?"a"+Ee(zt,zt)+" 0 0 1 "+Ee(hr,yr):""};return"M"+Ee(at,vt+zt)+Yt(zt,-zt)+"L"+Ee(wt-zt,vt)+Yt(zt,zt)+"L"+Ee(wt,st-zt)+Yt(-zt,zt)+"L"+Ee(at+zt,st)+Yt(-zt,-zt)+"Z"},Ye=function(Ae,at){var wt=Ae.x0,vt=Ae.x1,st=Ae.y0,Ue=Ae.y1,rt=Ae.textBB,$e=Ke||at.isHeader&&!Nt,zt=$e?"start":Nt?"end":"middle",Yt=ce("right"),hr=ce("left")||at.onPathbar,yr=hr?-1:Yt?1:0;if(at.isHeader){if(wt+=(f?Ve:Ve.l)-iPe,vt-=(f?Ve:Ve.r)-iPe,wt>=vt){var br=(wt+vt)/2;wt=br,vt=br}var Ut;Nt?(Ut=Ue-(f?Ve:Ve.b),st{"use strict";var ezt=Jl(),tzt=Kg(),rzt=Ap(),izt=rzt.clearMinTextSize,nzt=U0().resizeText,oPe=aPe();sPe.exports=function(t,r,n,i,a){var o=a.type,s=a.drawDescendants,u=t._fullLayout,l=u["_"+o+"layer"],f,c,h=!n;if(izt(o,u),f=l.selectAll("g.trace."+o).data(r,function(p){return p[0].trace.uid}),f.enter().append("g").classed("trace",!0).classed(o,!0),f.order(),!u.uniformtext.mode&&tzt.hasTransition(n)){i&&(c=i());var d=ezt.transition().duration(n.duration).ease(n.easing).each("end",function(){c&&c()}).each("interrupt",function(){c&&c()});d.each(function(){l.selectAll("g.trace").each(function(p){oPe(t,p,this,n,s)})})}else f.each(function(p){oPe(t,p,this,n,s)}),u.uniformtext.mode&&nzt(t,l.selectAll(".trace"),o);h&&f.exit().remove()}});var hPe=Te((H0r,cPe)=>{"use strict";var lPe=Jl(),G6=ei(),uPe=Mu(),azt=Xf(),ozt=rX(),fPe=U6().styleOne,uX=D2(),Y_=Kg(),szt=H4(),lzt=q6().formatSliceLabel,fX=!1;cPe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,u=a.viewX,l=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,_=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,C=x.textposition.indexOf("left")!==-1,M=x.textposition.indexOf("right")!==-1,m=x.textposition.indexOf("bottom")!==-1,P=!m&&!x.marker.pad.t||m&&!x.marker.pad.b,A=ozt(n,[o,s],{packing:x.tiling.packing,squarifyratio:x.tiling.squarifyratio,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,pad:{inner:x.tiling.pad,top:x.marker.pad.t,left:x.marker.pad.l,right:x.marker.pad.r,bottom:x.marker.pad.b}}),B=A.descendants(),F=1/0,U=-1/0;B.forEach(function(W){var re=W.depth;re>=x._maxDepth?(W.x0=W.x1=(W.x0+W.x1)/2,W.y0=W.y1=(W.y0+W.y1)/2):(F=Math.min(F,re),U=Math.max(U,re))}),i=i.data(B,Y_.getPtId),x._maxVisibleLayers=isFinite(U)?U-F+1:0,i.enter().append("g").classed("slice",!0),p(i,fX,k,[o,s],f),i.order();var G=null;if(d&&v){var j=Y_.getPtId(v);i.each(function(W){G===null&&Y_.getPtId(W)===j&&(G={x0:W.x0,x1:W.x1,y0:W.y0,y1:W.y1})})}var H=function(){return G||{x0:0,x1:o,y0:0,y1:s}},N=i;return d&&(N=N.transition().each("end",function(){var W=lPe.select(this);Y_.setSliceCursor(W,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(W){var re=Y_.isHeader(W,x);W._x0=u(W.x0),W._x1=u(W.x1),W._y0=l(W.y0),W._y1=l(W.y1),W._hoverX=u(W.x1-x.marker.pad.r),W._hoverY=l(m?W.y1-x.marker.pad.b/2:W.y0+x.marker.pad.t/2);var ae=lPe.select(this),be=G6.ensureSingle(ae,"path","surface",function(Ee){Ee.style("pointer-events",E?"none":"all")});d?be.transition().attrTween("d",function(Ee){var Me=_(Ee,fX,H(),[o,s]);return function(Ne){return f(Me(Ne))}}):be.attr("d",f),ae.call(szt,n,t,r,{styleOne:fPe,eventDataKeys:uX.eventDataKeys,transitionTime:uX.CLICK_TRANSITION_TIME,transitionEasing:uX.CLICK_TRANSITION_EASING}).call(Y_.setSliceCursor,t,{isTransitioning:t._transitioning}),be.call(fPe,W,x,t,{hovered:!1}),W.x0===W.x1||W.y0===W.y1?W._text="":re?W._text=P?"":Y_.getPtLabel(W)||"":W._text=lzt(W,n,x,r,T)||"";var Pe=G6.ensureSingle(ae,"g","slicetext"),Ce=G6.ensureSingle(Pe,"text","",function(Ee){Ee.attr("data-notex",1)}),de=G6.ensureUniformFontSize(t,Y_.determineTextFont(x,W,T.font)),te=W._text||" ",ke=re&&te.indexOf("
")===-1;Ce.text(te).classed("slicetext",!0).attr("text-anchor",M?"end":C||ke?"start":"middle").call(uPe.font,de).call(azt.convertToTspans,t),W.textBB=uPe.bBox(Ce.node()),W.transform=c(W,{fontSize:de.size,isHeader:re}),W.transform.fontSize=de.size,d?Ce.transition().attrTween("transform",function(Ee){var Me=b(Ee,fX,H(),[o,s]);return function(Ne){return h(Me(Ne))}}):Ce.attr("transform",h(W))}),G}});var pPe=Te((W0r,dPe)=>{"use strict";var uzt=lX(),fzt=hPe();dPe.exports=function(t,r,n,i){return uzt(t,r,n,i,{type:"treemap",drawDescendants:fzt})}});var mPe=Te((j0r,vPe)=>{"use strict";vPe.exports={moduleType:"trace",name:"treemap",basePlotModule:ILe(),categories:[],animatable:!0,attributes:N6(),layoutAttributes:$j(),supplyDefaults:ULe(),supplyLayoutDefaults:GLe(),calc:eX().calc,crossTraceCalc:eX().crossTraceCalc,plot:pPe(),style:U6().style,colorbar:ep(),meta:{}}});var gPe=Te((X0r,yPe)=>{"use strict";yPe.exports=mPe()});var xPe=Te(FT=>{"use strict";var _Pe=Cc();FT.name="icicle";FT.plot=function(e,t,r,n){_Pe.plotBasePlot(FT.name,e,t,r,n)};FT.clean=function(e,t,r,n){_Pe.cleanBasePlot(FT.name,e,t,r,n)}});var cX=Te((Y0r,wPe)=>{"use strict";var czt=Nu().hovertemplateAttrs,hzt=Nu().texttemplateAttrs,dzt=nc(),pzt=zc().attributes,X4=T2(),o0=L4(),H6=N6(),bPe=D2(),vzt=Su().extendFlat,mzt=Id().pattern;wPe.exports={labels:o0.labels,parents:o0.parents,values:o0.values,branchvalues:o0.branchvalues,count:o0.count,level:o0.level,maxdepth:o0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:H6.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:vzt({colors:o0.marker.colors,line:o0.marker.line,pattern:mzt,editType:"calc"},dzt("marker",{colorAttr:"colors",anim:!1})),leaf:o0.leaf,pathbar:H6.pathbar,text:X4.text,textinfo:o0.textinfo,texttemplate:hzt({editType:"plot"},{keys:bPe.eventDataKeys.concat(["label","value"])}),hovertext:X4.hovertext,hoverinfo:o0.hoverinfo,hovertemplate:czt({},{keys:bPe.eventDataKeys}),textfont:X4.textfont,insidetextfont:X4.insidetextfont,outsidetextfont:H6.outsidetextfont,textposition:H6.textposition,sort:X4.sort,root:o0.root,domain:pzt({name:"icicle",trace:!0,editType:"calc"})}});var hX=Te((K0r,APe)=>{"use strict";APe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var EPe=Te((J0r,MPe)=>{"use strict";var TPe=ei(),yzt=cX(),gzt=jl(),_zt=zc().defaults,xzt=r0().handleText,bzt=Qb().TEXTPAD,wzt=S2().handleMarkerDefaults,SPe=_c(),Azt=SPe.hasColorscale,Tzt=SPe.handleDefaults;MPe.exports=function(t,r,n,i){function a(d,p){return TPe.coerce(t,r,yzt,d,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var l=a("text");a("texttemplate"),r.texttemplate||a("textinfo",TPe.isArrayOrTypedArray(l)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f=a("pathbar.visible"),c="auto";xzt(t,r,i,a,c,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),wzt(t,r,i,a);var h=r._hasColorscale=Azt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&Tzt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:gzt.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*bzt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),_zt(r,i,a),r._length=null}});var CPe=Te(($0r,kPe)=>{"use strict";var Szt=ei(),Mzt=hX();kPe.exports=function(t,r){function n(i,a){return Szt.coerce(t,r,Mzt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var pX=Te(dX=>{"use strict";var LPe=I4();dX.calc=function(e,t){return LPe.calc(e,t)};dX.crossTraceCalc=function(e){return LPe._runCrossTraceCalc("icicle",e)}});var zPe=Te((emr,PPe)=>{"use strict";var Ezt=P4(),kzt=tX();PPe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.orientation==="h",s=n.maxDepth,u=r[0],l=r[1];s&&(u=(t.height+1)*r[0]/Math.min(t.height+1,s),l=(t.height+1)*r[1]/Math.min(t.height+1,s));var f=Ezt.partition().padding(n.pad.inner).size(o?[r[1],u]:[r[0],l])(t);return(o||i||a)&&kzt(f,r,{swapXY:o,flipX:i,flipY:a}),f}});var vX=Te((tmr,BPe)=>{"use strict";var IPe=Jl(),RPe=jl(),DPe=ei(),Czt=Ap().resizeText,Lzt=B6();function Pzt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");Czt(e,t,"icicle"),t.each(function(r){var n=IPe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){IPe.select(this).call(FPe,o,a,e)})})}function FPe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=DPe.castOption(r,o,"marker.line.color")||RPe.defaultLine,u=DPe.castOption(r,o,"marker.line.width")||0;e.call(Lzt,t,r,n).style("stroke-width",u).call(RPe.stroke,s).style("opacity",a?r.leaf.opacity:null)}BPe.exports={style:Pzt,styleOne:FPe}});var VPe=Te((rmr,UPe)=>{"use strict";var OPe=Jl(),W6=ei(),qPe=Mu(),zzt=Xf(),Izt=zPe(),NPe=vX().styleOne,mX=D2(),BT=Kg(),Rzt=H4(),Dzt=q6().formatSliceLabel,yX=!1;UPe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,u=a.viewX,l=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,_=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,C=x.textposition.indexOf("left")!==-1,M=x.textposition.indexOf("right")!==-1,m=x.textposition.indexOf("bottom")!==-1,P=Izt(n,[o,s],{flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,orientation:x.tiling.orientation,pad:{inner:x.tiling.pad},maxDepth:x._maxDepth}),A=P.descendants(),B=1/0,F=-1/0;A.forEach(function(N){var W=N.depth;W>=x._maxDepth?(N.x0=N.x1=(N.x0+N.x1)/2,N.y0=N.y1=(N.y0+N.y1)/2):(B=Math.min(B,W),F=Math.max(F,W))}),i=i.data(A,BT.getPtId),x._maxVisibleLayers=isFinite(F)?F-B+1:0,i.enter().append("g").classed("slice",!0),p(i,yX,k,[o,s],f),i.order();var U=null;if(d&&v){var G=BT.getPtId(v);i.each(function(N){U===null&&BT.getPtId(N)===G&&(U={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var j=function(){return U||{x0:0,x1:o,y0:0,y1:s}},H=i;return d&&(H=H.transition().each("end",function(){var N=OPe.select(this);BT.setSliceCursor(N,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),H.each(function(N){N._x0=u(N.x0),N._x1=u(N.x1),N._y0=l(N.y0),N._y1=l(N.y1),N._hoverX=u(N.x1-x.tiling.pad),N._hoverY=l(m?N.y1-x.tiling.pad/2:N.y0+x.tiling.pad/2);var W=OPe.select(this),re=W6.ensureSingle(W,"path","surface",function(Ce){Ce.style("pointer-events",E?"none":"all")});d?re.transition().attrTween("d",function(Ce){var de=_(Ce,yX,j(),[o,s],{orientation:x.tiling.orientation,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1});return function(te){return f(de(te))}}):re.attr("d",f),W.call(Rzt,n,t,r,{styleOne:NPe,eventDataKeys:mX.eventDataKeys,transitionTime:mX.CLICK_TRANSITION_TIME,transitionEasing:mX.CLICK_TRANSITION_EASING}).call(BT.setSliceCursor,t,{isTransitioning:t._transitioning}),re.call(NPe,N,x,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=Dzt(N,n,x,r,T)||"";var ae=W6.ensureSingle(W,"g","slicetext"),be=W6.ensureSingle(ae,"text","",function(Ce){Ce.attr("data-notex",1)}),Pe=W6.ensureUniformFontSize(t,BT.determineTextFont(x,N,T.font));be.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",M?"end":C?"start":"middle").call(qPe.font,Pe).call(zzt.convertToTspans,t),N.textBB=qPe.bBox(be.node()),N.transform=c(N,{fontSize:Pe.size}),N.transform.fontSize=Pe.size,d?be.transition().attrTween("transform",function(Ce){var de=b(Ce,yX,j(),[o,s]);return function(te){return h(de(te))}}):be.attr("transform",h(N))}),U}});var HPe=Te((imr,GPe)=>{"use strict";var Fzt=lX(),Bzt=VPe();GPe.exports=function(t,r,n,i){return Fzt(t,r,n,i,{type:"icicle",drawDescendants:Bzt})}});var jPe=Te((nmr,WPe)=>{"use strict";WPe.exports={moduleType:"trace",name:"icicle",basePlotModule:xPe(),categories:[],animatable:!0,attributes:cX(),layoutAttributes:hX(),supplyDefaults:EPe(),supplyLayoutDefaults:CPe(),calc:pX().calc,crossTraceCalc:pX().crossTraceCalc,plot:HPe(),style:vX().style,colorbar:ep(),meta:{}}});var ZPe=Te((amr,XPe)=>{"use strict";XPe.exports=jPe()});var KPe=Te(OT=>{"use strict";var YPe=Cc();OT.name="funnelarea";OT.plot=function(e,t,r,n){YPe.plotBasePlot(OT.name,e,t,r,n)};OT.clean=function(e,t,r,n){YPe.cleanBasePlot(OT.name,e,t,r,n)}});var gX=Te((smr,JPe)=>{"use strict";var ap=T2(),Ozt=Gf(),qzt=zc().attributes,Nzt=Nu().hovertemplateAttrs,Uzt=Nu().texttemplateAttrs,O2=Su().extendFlat;JPe.exports={labels:ap.labels,label0:ap.label0,dlabel:ap.dlabel,values:ap.values,marker:{colors:ap.marker.colors,line:{color:O2({},ap.marker.line.color,{dflt:null}),width:O2({},ap.marker.line.width,{dflt:1}),editType:"calc"},pattern:ap.marker.pattern,editType:"calc"},text:ap.text,hovertext:ap.hovertext,scalegroup:O2({},ap.scalegroup,{}),textinfo:O2({},ap.textinfo,{flags:["label","text","value","percent"]}),texttemplate:Uzt({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:O2({},Ozt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Nzt({},{keys:["label","color","value","text","percent"]}),textposition:O2({},ap.textposition,{values:["inside","none"],dflt:"inside"}),textfont:ap.textfont,insidetextfont:ap.insidetextfont,title:{text:ap.title.text,font:ap.title.font,position:O2({},ap.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:qzt({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var _X=Te((lmr,$Pe)=>{"use strict";var Vzt=h6().hiddenlabels;$Pe.exports={hiddenlabels:Vzt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var tze=Te((umr,eze)=>{"use strict";var QPe=ei(),Gzt=gX(),Hzt=zc().defaults,Wzt=r0().handleText,jzt=S2().handleLabelsAndValues,Xzt=S2().handleMarkerDefaults;eze.exports=function(t,r,n,i){function a(_,b){return QPe.coerce(t,r,Gzt,_,b)}var o=a("labels"),s=a("values"),u=jzt(o,s),l=u.len;if(r._hasLabels=u.hasLabels,r._hasValues=u.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!l){r.visible=!1;return}r._length=l,Xzt(t,r,i,a),a("scalegroup");var f=a("text"),c=a("texttemplate"),h;if(c||(h=a("textinfo",Array.isArray(f)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),c||h&&h!=="none"){var d=a("textposition");Wzt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");Hzt(r,i,a);var p=a("title.text");p&&(a("title.position"),QPe.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var ize=Te((fmr,rze)=>{"use strict";var Zzt=ei(),Yzt=_X();rze.exports=function(t,r){function n(i,a){return Zzt.coerce(t,r,Yzt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var xX=Te((cmr,aze)=>{"use strict";var nze=xT();function Kzt(e,t){return nze.calc(e,t)}function Jzt(e){nze.crossTraceCalc(e,{type:"funnelarea"})}aze.exports={calc:Kzt,crossTraceCalc:Jzt}});var fze=Te((hmr,uze)=>{"use strict";var q2=Jl(),bX=Mu(),K_=ei(),$zt=K_.strScale,oze=K_.strTranslate,sze=Xf(),Qzt=i2(),eIt=Qzt.toMoveInsideBar,lze=Ap(),tIt=lze.recordMinTextSize,rIt=lze.clearMinTextSize,iIt=l_(),qT=m6(),nIt=qT.attachFxHandlers,aIt=qT.determineInsideTextFont,oIt=qT.layoutAreas,sIt=qT.prerenderTitles,lIt=qT.positionTitleOutside,uIt=qT.formatSliceLabel;uze.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;rIt("funnelarea",i),sIt(r,t),oIt(r,i._size),K_.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=q2.select(this),s=a[0],u=s.trace;cIt(a),o.each(function(){var l=q2.select(this).selectAll("g.slice").data(a);l.enter().append("g").classed("slice",!0),l.exit().remove(),l.each(function(c,h){if(c.hidden){q2.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=u.index;var d=s.cx,p=s.cy,_=q2.select(this),b=_.selectAll("path.surface").data([c]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),_.call(nIt,t,a);var v="M"+(d+c.TR[0])+","+(p+c.TR[1])+wX(c.TR,c.BR)+wX(c.BR,c.BL)+wX(c.BL,c.TL)+"Z";b.attr("d",v),uIt(t,c,s);var k=iIt.castOption(u.textposition,c.pts),E=_.selectAll("g.slicetext").data(c.text&&k!=="none"?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each(function(){var T=K_.ensureSingle(q2.select(this),"text","",function(B){B.attr("data-notex",1)}),L=K_.ensureUniformFontSize(t,aIt(u,c,i.font));T.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(bX.font,L).call(sze.convertToTspans,t);var x=bX.bBox(T.node()),C,M,m,P=Math.min(c.BL[1],c.BR[1])+p,A=Math.max(c.TL[1],c.TR[1])+p;M=Math.max(c.TL[0],c.BL[0])+d,m=Math.min(c.TR[0],c.BR[0])+d,C=eIt(M,m,P,A,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),C.fontSize=L.size,tIt(u.type,C,i),a[h].transform=C,K_.setTransormAndDisplay(T,C)})});var f=q2.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=K_.ensureSingle(q2.select(this),"text","",function(p){p.attr("data-notex",1)}),h=u.title.text;u._meta&&(h=K_.templateString(h,u._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(bX.font,u.title.font).call(sze.convertToTspans,t);var d=lIt(s,i._size);c.attr("transform",oze(d.x,d.y)+$zt(Math.min(1,d.scale))+oze(d.tx,d.ty))})})})};function wX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function fIt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function cIt(e){if(!e.length)return;var t=e[0],r=t.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a=Math.pow(i,2),o=t.vTotal,s=o*a/(1-a),u=o,l=s/o;function f(){var F=Math.sqrt(l);return{x:F,y:-F}}function c(){var F=f();return[F.x,F.y]}var h,d=[];d.push(c());var p,_;for(p=e.length-1;p>-1;p--)if(_=e[p],!_.hidden){var b=_.v/u;l+=b,d.push(c())}var v=1/0,k=-1/0;for(p=0;p-1;p--)if(_=e[p],!_.hidden){P+=1;var A=d[P][0],B=d[P][1];_.TL=[-A,B],_.TR=[A,B],_.BL=M,_.BR=m,_.pxmid=fIt(_.TR,_.BR),M=_.TL,m=_.TR}}});var dze=Te((dmr,hze)=>{"use strict";var cze=Jl(),hIt=F3(),dIt=Ap().resizeText;hze.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");dIt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=cze.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){cze.select(this).call(hIt,s,a,t)})})}});var vze=Te((pmr,pze)=>{"use strict";pze.exports={moduleType:"trace",name:"funnelarea",basePlotModule:KPe(),categories:["pie-like","funnelarea","showLegend"],attributes:gX(),layoutAttributes:_X(),supplyDefaults:tze(),supplyLayoutDefaults:ize(),calc:xX().calc,crossTraceCalc:xX().crossTraceCalc,plot:fze(),style:dze(),styleOne:F3(),meta:{}}});var yze=Te((vmr,mze)=>{"use strict";mze.exports=vze()});var qd=Te((mmr,gze)=>{(function(){var e={1964:function(i,a,o){i.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}},4793:function(i,a,o){"use strict";var s;function u(ge,fe){if(!(ge instanceof fe))throw new TypeError("Cannot call a class as a function")}function l(ge,fe){for(var pe=0;peM)throw new RangeError('The value "'+ge+'" is invalid for option "size"');var fe=new Uint8Array(ge);return Object.setPrototypeOf(fe,A.prototype),fe}function A(ge,fe,pe){if(typeof ge=="number"){if(typeof fe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return G(ge)}return B(ge,fe,pe)}A.poolSize=8192;function B(ge,fe,pe){if(typeof ge=="string")return j(ge,fe);if(ArrayBuffer.isView(ge))return N(ge);if(ge==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+T(ge));if(xe(ge,ArrayBuffer)||ge&&xe(ge.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(xe(ge,SharedArrayBuffer)||ge&&xe(ge.buffer,SharedArrayBuffer)))return W(ge,fe,pe);if(typeof ge=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var dt=ge.valueOf&&ge.valueOf();if(dt!=null&&dt!==ge)return A.from(dt,fe,pe);var It=re(ge);if(It)return It;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ge[Symbol.toPrimitive]=="function")return A.from(ge[Symbol.toPrimitive]("string"),fe,pe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+T(ge))}A.from=function(ge,fe,pe){return B(ge,fe,pe)},Object.setPrototypeOf(A.prototype,Uint8Array.prototype),Object.setPrototypeOf(A,Uint8Array);function F(ge){if(typeof ge!="number")throw new TypeError('"size" argument must be of type number');if(ge<0)throw new RangeError('The value "'+ge+'" is invalid for option "size"')}function U(ge,fe,pe){return F(ge),ge<=0?P(ge):fe!==void 0?typeof pe=="string"?P(ge).fill(fe,pe):P(ge).fill(fe):P(ge)}A.alloc=function(ge,fe,pe){return U(ge,fe,pe)};function G(ge){return F(ge),P(ge<0?0:ae(ge)|0)}A.allocUnsafe=function(ge){return G(ge)},A.allocUnsafeSlow=function(ge){return G(ge)};function j(ge,fe){if((typeof fe!="string"||fe==="")&&(fe="utf8"),!A.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe);var pe=Pe(ge,fe)|0,dt=P(pe),It=dt.write(ge,fe);return It!==pe&&(dt=dt.slice(0,It)),dt}function H(ge){for(var fe=ge.length<0?0:ae(ge.length)|0,pe=P(fe),dt=0;dt=M)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");return ge|0}function be(ge){return+ge!=ge&&(ge=0),A.alloc(+ge)}A.isBuffer=function(fe){return fe!=null&&fe._isBuffer===!0&&fe!==A.prototype},A.compare=function(fe,pe){if(xe(fe,Uint8Array)&&(fe=A.from(fe,fe.offset,fe.byteLength)),xe(pe,Uint8Array)&&(pe=A.from(pe,pe.offset,pe.byteLength)),!A.isBuffer(fe)||!A.isBuffer(pe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(fe===pe)return 0;for(var dt=fe.length,It=pe.length,Pt=0,rr=Math.min(dt,It);PtIt.length?(A.isBuffer(rr)||(rr=A.from(rr)),rr.copy(It,Pt)):Uint8Array.prototype.set.call(It,rr,Pt);else if(A.isBuffer(rr))rr.copy(It,Pt);else throw new TypeError('"list" argument must be an Array of Buffers');Pt+=rr.length}return It};function Pe(ge,fe){if(A.isBuffer(ge))return ge.length;if(ArrayBuffer.isView(ge)||xe(ge,ArrayBuffer))return ge.byteLength;if(typeof ge!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+T(ge));var pe=ge.length,dt=arguments.length>2&&arguments[2]===!0;if(!dt&&pe===0)return 0;for(var It=!1;;)switch(fe){case"ascii":case"latin1":case"binary":return pe;case"utf8":case"utf-8":return hr(ge).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe*2;case"hex":return pe>>>1;case"base64":return Ut(ge).length;default:if(It)return dt?-1:hr(ge).length;fe=(""+fe).toLowerCase(),It=!0}}A.byteLength=Pe;function Ce(ge,fe,pe){var dt=!1;if((fe===void 0||fe<0)&&(fe=0),fe>this.length||((pe===void 0||pe>this.length)&&(pe=this.length),pe<=0)||(pe>>>=0,fe>>>=0,pe<=fe))return"";for(ge||(ge="utf8");;)switch(ge){case"hex":return it(this,fe,pe);case"utf8":case"utf-8":return ce(this,fe,pe);case"ascii":return gt(this,fe,pe);case"latin1":case"binary":return Nt(this,fe,pe);case"base64":return Ve(this,fe,pe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ye(this,fe,pe);default:if(dt)throw new TypeError("Unknown encoding: "+ge);ge=(ge+"").toLowerCase(),dt=!0}}A.prototype._isBuffer=!0;function de(ge,fe,pe){var dt=ge[fe];ge[fe]=ge[pe],ge[pe]=dt}A.prototype.swap16=function(){var fe=this.length;if(fe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var pe=0;pepe&&(fe+=" ... "),""},C&&(A.prototype[C]=A.prototype.inspect),A.prototype.compare=function(fe,pe,dt,It,Pt){if(xe(fe,Uint8Array)&&(fe=A.from(fe,fe.offset,fe.byteLength)),!A.isBuffer(fe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+T(fe));if(pe===void 0&&(pe=0),dt===void 0&&(dt=fe?fe.length:0),It===void 0&&(It=0),Pt===void 0&&(Pt=this.length),pe<0||dt>fe.length||It<0||Pt>this.length)throw new RangeError("out of range index");if(It>=Pt&&pe>=dt)return 0;if(It>=Pt)return-1;if(pe>=dt)return 1;if(pe>>>=0,dt>>>=0,It>>>=0,Pt>>>=0,this===fe)return 0;for(var rr=Pt-It,Hr=dt-pe,Dr=Math.min(rr,Hr),Mr=this.slice(It,Pt),Fr=fe.slice(pe,dt),di=0;di2147483647?pe=2147483647:pe<-2147483648&&(pe=-2147483648),pe=+pe,Oe(pe)&&(pe=It?0:ge.length-1),pe<0&&(pe=ge.length+pe),pe>=ge.length){if(It)return-1;pe=ge.length-1}else if(pe<0)if(It)pe=0;else return-1;if(typeof fe=="string"&&(fe=A.from(fe,dt)),A.isBuffer(fe))return fe.length===0?-1:ke(ge,fe,pe,dt,It);if(typeof fe=="number")return fe=fe&255,typeof Uint8Array.prototype.indexOf=="function"?It?Uint8Array.prototype.indexOf.call(ge,fe,pe):Uint8Array.prototype.lastIndexOf.call(ge,fe,pe):ke(ge,[fe],pe,dt,It);throw new TypeError("val must be string, number or Buffer")}function ke(ge,fe,pe,dt,It){var Pt=1,rr=ge.length,Hr=fe.length;if(dt!==void 0&&(dt=String(dt).toLowerCase(),dt==="ucs2"||dt==="ucs-2"||dt==="utf16le"||dt==="utf-16le")){if(ge.length<2||fe.length<2)return-1;Pt=2,rr/=2,Hr/=2,pe/=2}function Dr(Ii,Ci){return Pt===1?Ii[Ci]:Ii.readUInt16BE(Ci*Pt)}var Mr;if(It){var Fr=-1;for(Mr=pe;Mrrr&&(pe=rr-Hr),Mr=pe;Mr>=0;Mr--){for(var di=!0,Di=0;DiIt&&(dt=It)):dt=It;var Pt=fe.length;dt>Pt/2&&(dt=Pt/2);var rr;for(rr=0;rr>>0,isFinite(dt)?(dt=dt>>>0,It===void 0&&(It="utf8")):(It=dt,dt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Pt=this.length-pe;if((dt===void 0||dt>Pt)&&(dt=Pt),fe.length>0&&(dt<0||pe<0)||pe>this.length)throw new RangeError("Attempt to write outside buffer bounds");It||(It="utf8");for(var rr=!1;;)switch(It){case"hex":return Ee(this,fe,pe,dt);case"utf8":case"utf-8":return Me(this,fe,pe,dt);case"ascii":case"latin1":case"binary":return Ne(this,fe,pe,dt);case"base64":return Fe(this,fe,pe,dt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,fe,pe,dt);default:if(rr)throw new TypeError("Unknown encoding: "+It);It=(""+It).toLowerCase(),rr=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ve(ge,fe,pe){return fe===0&&pe===ge.length?L.fromByteArray(ge):L.fromByteArray(ge.slice(fe,pe))}function ce(ge,fe,pe){pe=Math.min(ge.length,pe);for(var dt=[],It=fe;It239?4:Pt>223?3:Pt>191?2:1;if(It+Hr<=pe){var Dr=void 0,Mr=void 0,Fr=void 0,di=void 0;switch(Hr){case 1:Pt<128&&(rr=Pt);break;case 2:Dr=ge[It+1],(Dr&192)===128&&(di=(Pt&31)<<6|Dr&63,di>127&&(rr=di));break;case 3:Dr=ge[It+1],Mr=ge[It+2],(Dr&192)===128&&(Mr&192)===128&&(di=(Pt&15)<<12|(Dr&63)<<6|Mr&63,di>2047&&(di<55296||di>57343)&&(rr=di));break;case 4:Dr=ge[It+1],Mr=ge[It+2],Fr=ge[It+3],(Dr&192)===128&&(Mr&192)===128&&(Fr&192)===128&&(di=(Pt&15)<<18|(Dr&63)<<12|(Mr&63)<<6|Fr&63,di>65535&&di<1114112&&(rr=di))}}rr===null?(rr=65533,Hr=1):rr>65535&&(rr-=65536,dt.push(rr>>>10&1023|55296),rr=56320|rr&1023),dt.push(rr),It+=Hr}return nt(dt)}var Ke=4096;function nt(ge){var fe=ge.length;if(fe<=Ke)return String.fromCharCode.apply(String,ge);for(var pe="",dt=0;dtdt)&&(pe=dt);for(var It="",Pt=fe;Ptdt&&(fe=dt),pe<0?(pe+=dt,pe<0&&(pe=0)):pe>dt&&(pe=dt),pepe)throw new RangeError("Trying to access beyond buffer length")}A.prototype.readUintLE=A.prototype.readUIntLE=function(fe,pe,dt){fe=fe>>>0,pe=pe>>>0,dt||kt(fe,pe,this.length);for(var It=this[fe],Pt=1,rr=0;++rr>>0,pe=pe>>>0,dt||kt(fe,pe,this.length);for(var It=this[fe+--pe],Pt=1;pe>0&&(Pt*=256);)It+=this[fe+--pe]*Pt;return It},A.prototype.readUint8=A.prototype.readUInt8=function(fe,pe){return fe=fe>>>0,pe||kt(fe,1,this.length),this[fe]},A.prototype.readUint16LE=A.prototype.readUInt16LE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,2,this.length),this[fe]|this[fe+1]<<8},A.prototype.readUint16BE=A.prototype.readUInt16BE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,2,this.length),this[fe]<<8|this[fe+1]},A.prototype.readUint32LE=A.prototype.readUInt32LE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,4,this.length),(this[fe]|this[fe+1]<<8|this[fe+2]<<16)+this[fe+3]*16777216},A.prototype.readUint32BE=A.prototype.readUInt32BE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,4,this.length),this[fe]*16777216+(this[fe+1]<<16|this[fe+2]<<8|this[fe+3])},A.prototype.readBigUInt64LE=De(function(fe){fe=fe>>>0,rt(fe,"offset");var pe=this[fe],dt=this[fe+7];(pe===void 0||dt===void 0)&&$e(fe,this.length-8);var It=pe+this[++fe]*Math.pow(2,8)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,24),Pt=this[++fe]+this[++fe]*Math.pow(2,8)+this[++fe]*Math.pow(2,16)+dt*Math.pow(2,24);return BigInt(It)+(BigInt(Pt)<>>0,rt(fe,"offset");var pe=this[fe],dt=this[fe+7];(pe===void 0||dt===void 0)&&$e(fe,this.length-8);var It=pe*Math.pow(2,24)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,8)+this[++fe],Pt=this[++fe]*Math.pow(2,24)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,8)+dt;return(BigInt(It)<>>0,pe=pe>>>0,dt||kt(fe,pe,this.length);for(var It=this[fe],Pt=1,rr=0;++rr=Pt&&(It-=Math.pow(2,8*pe)),It},A.prototype.readIntBE=function(fe,pe,dt){fe=fe>>>0,pe=pe>>>0,dt||kt(fe,pe,this.length);for(var It=pe,Pt=1,rr=this[fe+--It];It>0&&(Pt*=256);)rr+=this[fe+--It]*Pt;return Pt*=128,rr>=Pt&&(rr-=Math.pow(2,8*pe)),rr},A.prototype.readInt8=function(fe,pe){return fe=fe>>>0,pe||kt(fe,1,this.length),this[fe]&128?(255-this[fe]+1)*-1:this[fe]},A.prototype.readInt16LE=function(fe,pe){fe=fe>>>0,pe||kt(fe,2,this.length);var dt=this[fe]|this[fe+1]<<8;return dt&32768?dt|4294901760:dt},A.prototype.readInt16BE=function(fe,pe){fe=fe>>>0,pe||kt(fe,2,this.length);var dt=this[fe+1]|this[fe]<<8;return dt&32768?dt|4294901760:dt},A.prototype.readInt32LE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,4,this.length),this[fe]|this[fe+1]<<8|this[fe+2]<<16|this[fe+3]<<24},A.prototype.readInt32BE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,4,this.length),this[fe]<<24|this[fe+1]<<16|this[fe+2]<<8|this[fe+3]},A.prototype.readBigInt64LE=De(function(fe){fe=fe>>>0,rt(fe,"offset");var pe=this[fe],dt=this[fe+7];(pe===void 0||dt===void 0)&&$e(fe,this.length-8);var It=this[fe+4]+this[fe+5]*Math.pow(2,8)+this[fe+6]*Math.pow(2,16)+(dt<<24);return(BigInt(It)<>>0,rt(fe,"offset");var pe=this[fe],dt=this[fe+7];(pe===void 0||dt===void 0)&&$e(fe,this.length-8);var It=(pe<<24)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,8)+this[++fe];return(BigInt(It)<>>0,pe||kt(fe,4,this.length),x.read(this,fe,!0,23,4)},A.prototype.readFloatBE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,4,this.length),x.read(this,fe,!1,23,4)},A.prototype.readDoubleLE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,8,this.length),x.read(this,fe,!0,52,8)},A.prototype.readDoubleBE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,8,this.length),x.read(this,fe,!1,52,8)};function Tt(ge,fe,pe,dt,It,Pt){if(!A.isBuffer(ge))throw new TypeError('"buffer" argument must be a Buffer instance');if(fe>It||fege.length)throw new RangeError("Index out of range")}A.prototype.writeUintLE=A.prototype.writeUIntLE=function(fe,pe,dt,It){if(fe=+fe,pe=pe>>>0,dt=dt>>>0,!It){var Pt=Math.pow(2,8*dt)-1;Tt(this,fe,pe,dt,Pt,0)}var rr=1,Hr=0;for(this[pe]=fe&255;++Hr>>0,dt=dt>>>0,!It){var Pt=Math.pow(2,8*dt)-1;Tt(this,fe,pe,dt,Pt,0)}var rr=dt-1,Hr=1;for(this[pe+rr]=fe&255;--rr>=0&&(Hr*=256);)this[pe+rr]=fe/Hr&255;return pe+dt},A.prototype.writeUint8=A.prototype.writeUInt8=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,1,255,0),this[pe]=fe&255,pe+1},A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,2,65535,0),this[pe]=fe&255,this[pe+1]=fe>>>8,pe+2},A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,2,65535,0),this[pe]=fe>>>8,this[pe+1]=fe&255,pe+2},A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,4,4294967295,0),this[pe+3]=fe>>>24,this[pe+2]=fe>>>16,this[pe+1]=fe>>>8,this[pe]=fe&255,pe+4},A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,4,4294967295,0),this[pe]=fe>>>24,this[pe+1]=fe>>>16,this[pe+2]=fe>>>8,this[pe+3]=fe&255,pe+4};function St(ge,fe,pe,dt,It){Ue(fe,dt,It,ge,pe,7);var Pt=Number(fe&BigInt(4294967295));ge[pe++]=Pt,Pt=Pt>>8,ge[pe++]=Pt,Pt=Pt>>8,ge[pe++]=Pt,Pt=Pt>>8,ge[pe++]=Pt;var rr=Number(fe>>BigInt(32)&BigInt(4294967295));return ge[pe++]=rr,rr=rr>>8,ge[pe++]=rr,rr=rr>>8,ge[pe++]=rr,rr=rr>>8,ge[pe++]=rr,pe}function Rt(ge,fe,pe,dt,It){Ue(fe,dt,It,ge,pe,7);var Pt=Number(fe&BigInt(4294967295));ge[pe+7]=Pt,Pt=Pt>>8,ge[pe+6]=Pt,Pt=Pt>>8,ge[pe+5]=Pt,Pt=Pt>>8,ge[pe+4]=Pt;var rr=Number(fe>>BigInt(32)&BigInt(4294967295));return ge[pe+3]=rr,rr=rr>>8,ge[pe+2]=rr,rr=rr>>8,ge[pe+1]=rr,rr=rr>>8,ge[pe]=rr,pe+8}A.prototype.writeBigUInt64LE=De(function(fe){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return St(this,fe,pe,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeBigUInt64BE=De(function(fe){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Rt(this,fe,pe,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeIntLE=function(fe,pe,dt,It){if(fe=+fe,pe=pe>>>0,!It){var Pt=Math.pow(2,8*dt-1);Tt(this,fe,pe,dt,Pt-1,-Pt)}var rr=0,Hr=1,Dr=0;for(this[pe]=fe&255;++rr>0)-Dr&255;return pe+dt},A.prototype.writeIntBE=function(fe,pe,dt,It){if(fe=+fe,pe=pe>>>0,!It){var Pt=Math.pow(2,8*dt-1);Tt(this,fe,pe,dt,Pt-1,-Pt)}var rr=dt-1,Hr=1,Dr=0;for(this[pe+rr]=fe&255;--rr>=0&&(Hr*=256);)fe<0&&Dr===0&&this[pe+rr+1]!==0&&(Dr=1),this[pe+rr]=(fe/Hr>>0)-Dr&255;return pe+dt},A.prototype.writeInt8=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,1,127,-128),fe<0&&(fe=255+fe+1),this[pe]=fe&255,pe+1},A.prototype.writeInt16LE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,2,32767,-32768),this[pe]=fe&255,this[pe+1]=fe>>>8,pe+2},A.prototype.writeInt16BE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,2,32767,-32768),this[pe]=fe>>>8,this[pe+1]=fe&255,pe+2},A.prototype.writeInt32LE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,4,2147483647,-2147483648),this[pe]=fe&255,this[pe+1]=fe>>>8,this[pe+2]=fe>>>16,this[pe+3]=fe>>>24,pe+4},A.prototype.writeInt32BE=function(fe,pe,dt){return fe=+fe,pe=pe>>>0,dt||Tt(this,fe,pe,4,2147483647,-2147483648),fe<0&&(fe=4294967295+fe+1),this[pe]=fe>>>24,this[pe+1]=fe>>>16,this[pe+2]=fe>>>8,this[pe+3]=fe&255,pe+4},A.prototype.writeBigInt64LE=De(function(fe){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return St(this,fe,pe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeBigInt64BE=De(function(fe){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Rt(this,fe,pe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Zt(ge,fe,pe,dt,It,Pt){if(pe+dt>ge.length)throw new RangeError("Index out of range");if(pe<0)throw new RangeError("Index out of range")}function Et(ge,fe,pe,dt,It){return fe=+fe,pe=pe>>>0,It||Zt(ge,fe,pe,4,34028234663852886e22,-34028234663852886e22),x.write(ge,fe,pe,dt,23,4),pe+4}A.prototype.writeFloatLE=function(fe,pe,dt){return Et(this,fe,pe,!0,dt)},A.prototype.writeFloatBE=function(fe,pe,dt){return Et(this,fe,pe,!1,dt)};function Ae(ge,fe,pe,dt,It){return fe=+fe,pe=pe>>>0,It||Zt(ge,fe,pe,8,17976931348623157e292,-17976931348623157e292),x.write(ge,fe,pe,dt,52,8),pe+8}A.prototype.writeDoubleLE=function(fe,pe,dt){return Ae(this,fe,pe,!0,dt)},A.prototype.writeDoubleBE=function(fe,pe,dt){return Ae(this,fe,pe,!1,dt)},A.prototype.copy=function(fe,pe,dt,It){if(!A.isBuffer(fe))throw new TypeError("argument should be a Buffer");if(dt||(dt=0),!It&&It!==0&&(It=this.length),pe>=fe.length&&(pe=fe.length),pe||(pe=0),It>0&&It=this.length)throw new RangeError("Index out of range");if(It<0)throw new RangeError("sourceEnd out of bounds");It>this.length&&(It=this.length),fe.length-pe>>0,dt=dt===void 0?this.length:dt>>>0,fe||(fe=0);var rr;if(typeof fe=="number")for(rr=pe;rrMath.pow(2,32)?It=vt(String(pe)):typeof pe=="bigint"&&(It=String(pe),(pe>Math.pow(BigInt(2),BigInt(32))||pe<-Math.pow(BigInt(2),BigInt(32)))&&(It=vt(It)),It+="n"),dt+=" It must be ".concat(fe,". Received ").concat(It),dt},RangeError);function vt(ge){for(var fe="",pe=ge.length,dt=ge[0]==="-"?1:0;pe>=dt+4;pe-=3)fe="_".concat(ge.slice(pe-3,pe)).concat(fe);return"".concat(ge.slice(0,pe)).concat(fe)}function st(ge,fe,pe){rt(fe,"offset"),(ge[fe]===void 0||ge[fe+pe]===void 0)&&$e(fe,ge.length-(pe+1))}function Ue(ge,fe,pe,dt,It,Pt){if(ge>pe||ge3?fe===0||fe===BigInt(0)?Hr=">= 0".concat(rr," and < 2").concat(rr," ** ").concat((Pt+1)*8).concat(rr):Hr=">= -(2".concat(rr," ** ").concat((Pt+1)*8-1).concat(rr,") and < 2 ** ")+"".concat((Pt+1)*8-1).concat(rr):Hr=">= ".concat(fe).concat(rr," and <= ").concat(pe).concat(rr),new at.ERR_OUT_OF_RANGE("value",Hr,ge)}st(dt,It,Pt)}function rt(ge,fe){if(typeof ge!="number")throw new at.ERR_INVALID_ARG_TYPE(fe,"number",ge)}function $e(ge,fe,pe){throw Math.floor(ge)!==ge?(rt(ge,pe),new at.ERR_OUT_OF_RANGE(pe||"offset","an integer",ge)):fe<0?new at.ERR_BUFFER_OUT_OF_BOUNDS:new at.ERR_OUT_OF_RANGE(pe||"offset",">= ".concat(pe?1:0," and <= ").concat(fe),ge)}var zt=/[^+/0-9A-Za-z-_]/g;function Yt(ge){if(ge=ge.split("=")[0],ge=ge.trim().replace(zt,""),ge.length<2)return"";for(;ge.length%4!==0;)ge=ge+"=";return ge}function hr(ge,fe){fe=fe||1/0;for(var pe,dt=ge.length,It=null,Pt=[],rr=0;rr55295&&pe<57344){if(!It){if(pe>56319){(fe-=3)>-1&&Pt.push(239,191,189);continue}else if(rr+1===dt){(fe-=3)>-1&&Pt.push(239,191,189);continue}It=pe;continue}if(pe<56320){(fe-=3)>-1&&Pt.push(239,191,189),It=pe;continue}pe=(It-55296<<10|pe-56320)+65536}else It&&(fe-=3)>-1&&Pt.push(239,191,189);if(It=null,pe<128){if((fe-=1)<0)break;Pt.push(pe)}else if(pe<2048){if((fe-=2)<0)break;Pt.push(pe>>6|192,pe&63|128)}else if(pe<65536){if((fe-=3)<0)break;Pt.push(pe>>12|224,pe>>6&63|128,pe&63|128)}else if(pe<1114112){if((fe-=4)<0)break;Pt.push(pe>>18|240,pe>>12&63|128,pe>>6&63|128,pe&63|128)}else throw new Error("Invalid code point")}return Pt}function yr(ge){for(var fe=[],pe=0;pe>8,It=pe%256,Pt.push(It),Pt.push(dt);return Pt}function Ut(ge){return L.toByteArray(Yt(ge))}function Ie(ge,fe,pe,dt){var It;for(It=0;It=fe.length||It>=ge.length);++It)fe[It+pe]=ge[It];return It}function xe(ge,fe){return ge instanceof fe||ge!=null&&ge.constructor!=null&&ge.constructor.name!=null&&ge.constructor.name===fe.name}function Oe(ge){return ge!==ge}var Re=function(){for(var ge="0123456789abcdef",fe=new Array(256),pe=0;pe<16;++pe)for(var dt=pe*16,It=0;It<16;++It)fe[dt+It]=ge[pe]+ge[It];return fe}();function De(ge){return typeof BigInt=="undefined"?ct:ge}function ct(){throw new Error("BigInt not supported")}},9216:function(i){"use strict";i.exports=u,i.exports.isMobile=u,i.exports.default=u;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,s=/android|ipad|playbook|silk/i;function u(l){l||(l={});var f=l.ua;if(!f&&typeof navigator!="undefined"&&(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;var c=a.test(f)&&!o.test(f)||!!l.tablet&&s.test(f);return!c&&l.tablet&&l.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(c=!0),c}},6296:function(i,a,o){"use strict";i.exports=h;var s=o(7261),u=o(9977),l=o(1811);function f(d,p){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(_){return d[_]}),this._mode=p,this._active=d[p],this._active||(this._mode="turntable",this._active=d.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var c=f.prototype;c.flush=function(d){for(var p=this._controllerList,_=0;_0)throw new Error("Invalid string. Length must be a multiple of 4");var L=E.indexOf("=");L===-1&&(L=T);var x=L===T?0:4-L%4;return[L,x]}function d(E){var T=h(E),L=T[0],x=T[1];return(L+x)*3/4-x}function p(E,T,L){return(T+L)*3/4-L}function _(E){var T,L=h(E),x=L[0],C=L[1],M=new u(p(E,x,C)),m=0,P=C>0?x-4:x,A;for(A=0;A>16&255,M[m++]=T>>8&255,M[m++]=T&255;return C===2&&(T=s[E.charCodeAt(A)]<<2|s[E.charCodeAt(A+1)]>>4,M[m++]=T&255),C===1&&(T=s[E.charCodeAt(A)]<<10|s[E.charCodeAt(A+1)]<<4|s[E.charCodeAt(A+2)]>>2,M[m++]=T>>8&255,M[m++]=T&255),M}function b(E){return o[E>>18&63]+o[E>>12&63]+o[E>>6&63]+o[E&63]}function v(E,T,L){for(var x,C=[],M=T;MP?P:m+M));return x===1?(T=E[L-1],C.push(o[T>>2]+o[T<<4&63]+"==")):x===2&&(T=(E[L-2]<<8)+E[L-1],C.push(o[T>>10]+o[T>>4&63]+o[T<<2&63]+"=")),C.join("")}},3865:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]).add(f[0].mul(l[1])),l[1].mul(f[1]))}},1318:function(i){"use strict";i.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]),l[1].mul(f[0]))}},7842:function(i,a,o){"use strict";var s=o(6330),u=o(1533),l=o(2651),f=o(6768),c=o(869),h=o(8697);i.exports=d;function d(p,_){if(s(p))return _?h(p,d(_)):[p[0].clone(),p[1].clone()];var b=0,v,k;if(u(p))v=p.clone();else if(typeof p=="string")v=f(p);else{if(p===0)return[l(0),l(1)];if(p===Math.floor(p))v=l(p);else{for(;p!==Math.floor(p);)p=p*Math.pow(2,256),b-=256;v=l(p)}}if(s(_))v.mul(_[1]),k=_[0].clone();else if(u(_))k=_.clone();else if(typeof _=="string")k=f(_);else if(!_)k=l(1);else if(_===Math.floor(_))k=l(_);else{for(;_!==Math.floor(_);)_=_*Math.pow(2,256),b+=256;k=l(_)}return b>0?v=v.ushln(b):b<0&&(k=k.ushln(-b)),c(v,k)}},6330:function(i,a,o){"use strict";var s=o(1533);i.exports=u;function u(l){return Array.isArray(l)&&l.length===2&&s(l[0])&&s(l[1])}},5716:function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return l.cmp(new s(0))}},1369:function(i,a,o){"use strict";var s=o(5716);i.exports=u;function u(l){var f=l.length,c=l.words,h=0;if(f===1)h=c[0];else if(f===2)h=c[0]+c[1]*67108864;else for(var d=0;d20?52:h+32}},1533:function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return l&&typeof l=="object"&&!!l.words}},2651:function(i,a,o){"use strict";var s=o(6859),u=o(2361);i.exports=l;function l(f){var c=u.exponent(f);return c<52?new s(f):new s(f*Math.pow(2,52-c)).ushln(c-52)}},869:function(i,a,o){"use strict";var s=o(2651),u=o(5716);i.exports=l;function l(f,c){var h=u(f),d=u(c);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(f=f.neg(),c=c.neg());var p=f.gcd(c);return p.cmpn(1)?[f.div(p),c.div(p)]:[f,c]}},6768:function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return new s(l)}},6504:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[0]),l[1].mul(f[1]))}},7721:function(i,a,o){"use strict";var s=o(5716);i.exports=u;function u(l){return s(l[0])*s(l[1])}},5572:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]).sub(l[1].mul(f[0])),l[1].mul(f[1]))}},946:function(i,a,o){"use strict";var s=o(1369),u=o(4025);i.exports=l;function l(f){var c=f[0],h=f[1];if(c.cmpn(0)===0)return 0;var d=c.abs().divmod(h.abs()),p=d.div,_=s(p),b=d.mod,v=c.negative!==h.negative?-1:1;if(b.cmpn(0)===0)return v*_;if(_){var k=u(_)+4,E=s(b.ushln(k).divRound(h));return v*(_+E*Math.pow(2,-k))}else{var T=h.bitLength()-b.bitLength()+53,E=s(b.ushln(T).divRound(h));return T<1023?v*E*Math.pow(2,-T):(E*=Math.pow(2,-1023),v*E*Math.pow(2,1023-T))}}},2478:function(i){"use strict";function a(c,h,d,p,_){for(var b=_+1;p<=_;){var v=p+_>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E>=0?(b=v,_=v-1):p=v+1}return b}function o(c,h,d,p,_){for(var b=_+1;p<=_;){var v=p+_>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E>0?(b=v,_=v-1):p=v+1}return b}function s(c,h,d,p,_){for(var b=p-1;p<=_;){var v=p+_>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E<0?(b=v,p=v+1):_=v-1}return b}function u(c,h,d,p,_){for(var b=p-1;p<=_;){var v=p+_>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E<=0?(b=v,p=v+1):_=v-1}return b}function l(c,h,d,p,_){for(;p<=_;){var b=p+_>>>1,v=c[b],k=d!==void 0?d(v,h):v-h;if(k===0)return b;k<=0?p=b+1:_=b-1}return-1}function f(c,h,d,p,_,b){return typeof d=="function"?b(c,h,d,p===void 0?0:p|0,_===void 0?c.length-1:_|0):b(c,h,void 0,d===void 0?0:d|0,p===void 0?c.length-1:p|0)}i.exports={ge:function(c,h,d,p,_){return f(c,h,d,p,_,a)},gt:function(c,h,d,p,_){return f(c,h,d,p,_,o)},lt:function(c,h,d,p,_){return f(c,h,d,p,_,s)},le:function(c,h,d,p,_){return f(c,h,d,p,_,u)},eq:function(c,h,d,p,_){return f(c,h,d,p,_,l)}}},8828:function(i,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(l<0)},a.abs=function(l){var f=l>>o-1;return(l^f)-f},a.min=function(l,f){return f^(l^f)&-(l65535)<<4,l>>>=f,c=(l>255)<<3,l>>>=c,f|=c,c=(l>15)<<2,l>>>=c,f|=c,c=(l>3)<<1,l>>>=c,f|=c,f|l>>1},a.log10=function(l){return l>=1e9?9:l>=1e8?8:l>=1e7?7:l>=1e6?6:l>=1e5?5:l>=1e4?4:l>=1e3?3:l>=100?2:l>=10?1:0},a.popCount=function(l){return l=l-(l>>>1&1431655765),l=(l&858993459)+(l>>>2&858993459),(l+(l>>>4)&252645135)*16843009>>>24};function s(l){var f=32;return l&=-l,l&&f--,l&65535&&(f-=16),l&16711935&&(f-=8),l&252645135&&(f-=4),l&858993459&&(f-=2),l&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(l){return l+=l===0,--l,l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l+1},a.prevPow2=function(l){return l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l-(l>>>1)},a.parity=function(l){return l^=l>>>16,l^=l>>>8,l^=l>>>4,l&=15,27030>>>l&1};var u=new Array(256);(function(l){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;l[f]=h<>>8&255]<<16|u[l>>>16&255]<<8|u[l>>>24&255]},a.interleave2=function(l,f){return l&=65535,l=(l|l<<8)&16711935,l=(l|l<<4)&252645135,l=(l|l<<2)&858993459,l=(l|l<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,l|f<<1},a.deinterleave2=function(l,f){return l=l>>>f&1431655765,l=(l|l>>>1)&858993459,l=(l|l>>>2)&252645135,l=(l|l>>>4)&16711935,l=(l|l>>>16)&65535,l<<16>>16},a.interleave3=function(l,f,c){return l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,l|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,l|c<<2},a.deinterleave3=function(l,f){return l=l>>>f&1227133513,l=(l|l>>>2)&3272356035,l=(l|l>>>4)&251719695,l=(l|l>>>8)&4278190335,l=(l|l>>>16)&1023,l<<22>>22},a.nextCombination=function(l){var f=l|l-1;return f+1|(~f&-~f)-1>>>s(l)+1}},6859:function(i,a,o){i=o.nmd(i),function(s,u){"use strict";function l(H,N){if(!H)throw new Error(N||"Assertion failed")}function f(H,N){H.super_=N;var W=function(){};W.prototype=N.prototype,H.prototype=new W,H.prototype.constructor=H}function c(H,N,W){if(c.isBN(H))return H;this.negative=0,this.words=null,this.length=0,this.red=null,H!==null&&((N==="le"||N==="be")&&(W=N,N=10),this._init(H||0,N||10,W||"be"))}typeof s=="object"?s.exports=c:u.BN=c,c.BN=c,c.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(H){}c.isBN=function(N){return N instanceof c?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===c.wordSize&&Array.isArray(N.words)},c.max=function(N,W){return N.cmp(W)>0?N:W},c.min=function(N,W){return N.cmp(W)<0?N:W},c.prototype._init=function(N,W,re){if(typeof N=="number")return this._initNumber(N,W,re);if(typeof N=="object")return this._initArray(N,W,re);W==="hex"&&(W=16),l(W===(W|0)&&W>=2&&W<=36),N=N.toString().replace(/\s+/g,"");var ae=0;N[0]==="-"&&(ae++,this.negative=1),ae=0;ae-=3)Pe=N[ae]|N[ae-1]<<8|N[ae-2]<<16,this.words[be]|=Pe<>>26-Ce&67108863,Ce+=24,Ce>=26&&(Ce-=26,be++);else if(re==="le")for(ae=0,be=0;ae>>26-Ce&67108863,Ce+=24,Ce>=26&&(Ce-=26,be++);return this.strip()};function d(H,N){var W=H.charCodeAt(N);return W>=65&&W<=70?W-55:W>=97&&W<=102?W-87:W-48&15}function p(H,N,W){var re=d(H,W);return W-1>=N&&(re|=d(H,W-1)<<4),re}c.prototype._parseHex=function(N,W,re){this.length=Math.ceil((N.length-W)/6),this.words=new Array(this.length);for(var ae=0;ae=W;ae-=2)Ce=p(N,W,ae)<=18?(be-=18,Pe+=1,this.words[Pe]|=Ce>>>26):be+=8;else{var de=N.length-W;for(ae=de%2===0?W+1:W;ae=18?(be-=18,Pe+=1,this.words[Pe]|=Ce>>>26):be+=8}this.strip()};function _(H,N,W,re){for(var ae=0,be=Math.min(H.length,W),Pe=N;Pe=49?ae+=Ce-49+10:Ce>=17?ae+=Ce-17+10:ae+=Ce}return ae}c.prototype._parseBase=function(N,W,re){this.words=[0],this.length=1;for(var ae=0,be=1;be<=67108863;be*=W)ae++;ae--,be=be/W|0;for(var Pe=N.length-re,Ce=Pe%ae,de=Math.min(Pe,Pe-Ce)+re,te=0,ke=re;ke1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];c.prototype.toString=function(N,W){N=N||10,W=W|0||1;var re;if(N===16||N==="hex"){re="";for(var ae=0,be=0,Pe=0;Pe>>24-ae&16777215,be!==0||Pe!==this.length-1?re=b[6-de.length]+de+re:re=de+re,ae+=2,ae>=26&&(ae-=26,Pe--)}for(be!==0&&(re=be.toString(16)+re);re.length%W!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}if(N===(N|0)&&N>=2&&N<=36){var te=v[N],ke=k[N];re="";var Ee=this.clone();for(Ee.negative=0;!Ee.isZero();){var Me=Ee.modn(ke).toString(N);Ee=Ee.idivn(ke),Ee.isZero()?re=Me+re:re=b[te-Me.length]+Me+re}for(this.isZero()&&(re="0"+re);re.length%W!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}l(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(N,W){return l(typeof h!="undefined"),this.toArrayLike(h,N,W)},c.prototype.toArray=function(N,W){return this.toArrayLike(Array,N,W)},c.prototype.toArrayLike=function(N,W,re){var ae=this.byteLength(),be=re||Math.max(1,ae);l(ae<=be,"byte array longer than desired length"),l(be>0,"Requested array length <= 0"),this.strip();var Pe=W==="le",Ce=new N(be),de,te,ke=this.clone();if(Pe){for(te=0;!ke.isZero();te++)de=ke.andln(255),ke.iushrn(8),Ce[te]=de;for(;te=4096&&(re+=13,W>>>=13),W>=64&&(re+=7,W>>>=7),W>=8&&(re+=4,W>>>=4),W>=2&&(re+=2,W>>>=2),re+W},c.prototype._zeroBits=function(N){if(N===0)return 26;var W=N,re=0;return(W&8191)===0&&(re+=13,W>>>=13),(W&127)===0&&(re+=7,W>>>=7),(W&15)===0&&(re+=4,W>>>=4),(W&3)===0&&(re+=2,W>>>=2),(W&1)===0&&re++,re},c.prototype.bitLength=function(){var N=this.words[this.length-1],W=this._countBits(N);return(this.length-1)*26+W};function E(H){for(var N=new Array(H.bitLength()),W=0;W>>ae}return N}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,W=0;WN.length?this.clone().ior(N):N.clone().ior(this)},c.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},c.prototype.iuand=function(N){var W;this.length>N.length?W=N:W=this;for(var re=0;reN.length?this.clone().iand(N):N.clone().iand(this)},c.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},c.prototype.iuxor=function(N){var W,re;this.length>N.length?(W=this,re=N):(W=N,re=this);for(var ae=0;aeN.length?this.clone().ixor(N):N.clone().ixor(this)},c.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},c.prototype.inotn=function(N){l(typeof N=="number"&&N>=0);var W=Math.ceil(N/26)|0,re=N%26;this._expand(W),re>0&&W--;for(var ae=0;ae0&&(this.words[ae]=~this.words[ae]&67108863>>26-re),this.strip()},c.prototype.notn=function(N){return this.clone().inotn(N)},c.prototype.setn=function(N,W){l(typeof N=="number"&&N>=0);var re=N/26|0,ae=N%26;return this._expand(re+1),W?this.words[re]=this.words[re]|1<N.length?(re=this,ae=N):(re=N,ae=this);for(var be=0,Pe=0;Pe>>26;for(;be!==0&&Pe>>26;if(this.length=re.length,be!==0)this.words[this.length]=be,this.length++;else if(re!==this)for(;PeN.length?this.clone().iadd(N):N.clone().iadd(this)},c.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var W=this.iadd(N);return N.negative=1,W._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var re=this.cmp(N);if(re===0)return this.negative=0,this.length=1,this.words[0]=0,this;var ae,be;re>0?(ae=this,be=N):(ae=N,be=this);for(var Pe=0,Ce=0;Ce>26,this.words[Ce]=W&67108863;for(;Pe!==0&&Ce>26,this.words[Ce]=W&67108863;if(Pe===0&&Ce>>26,Ee=de&67108863,Me=Math.min(te,N.length-1),Ne=Math.max(0,te-H.length+1);Ne<=Me;Ne++){var Fe=te-Ne|0;ae=H.words[Fe]|0,be=N.words[Ne]|0,Pe=ae*be+Ee,ke+=Pe/67108864|0,Ee=Pe&67108863}W.words[te]=Ee|0,de=ke|0}return de!==0?W.words[te]=de|0:W.length--,W.strip()}var L=function(N,W,re){var ae=N.words,be=W.words,Pe=re.words,Ce=0,de,te,ke,Ee=ae[0]|0,Me=Ee&8191,Ne=Ee>>>13,Fe=ae[1]|0,ye=Fe&8191,Ve=Fe>>>13,ce=ae[2]|0,Ke=ce&8191,nt=ce>>>13,gt=ae[3]|0,Nt=gt&8191,it=gt>>>13,Ye=ae[4]|0,kt=Ye&8191,Tt=Ye>>>13,St=ae[5]|0,Rt=St&8191,Zt=St>>>13,Et=ae[6]|0,Ae=Et&8191,at=Et>>>13,wt=ae[7]|0,vt=wt&8191,st=wt>>>13,Ue=ae[8]|0,rt=Ue&8191,$e=Ue>>>13,zt=ae[9]|0,Yt=zt&8191,hr=zt>>>13,yr=be[0]|0,br=yr&8191,Ut=yr>>>13,Ie=be[1]|0,xe=Ie&8191,Oe=Ie>>>13,Re=be[2]|0,De=Re&8191,ct=Re>>>13,ge=be[3]|0,fe=ge&8191,pe=ge>>>13,dt=be[4]|0,It=dt&8191,Pt=dt>>>13,rr=be[5]|0,Hr=rr&8191,Dr=rr>>>13,Mr=be[6]|0,Fr=Mr&8191,di=Mr>>>13,Di=be[7]|0,Ii=Di&8191,Ci=Di>>>13,nn=be[8]|0,ii=nn&8191,wi=nn>>>13,Gi=be[9]|0,Bt=Gi&8191,yt=Gi>>>13;re.negative=N.negative^W.negative,re.length=19,de=Math.imul(Me,br),te=Math.imul(Me,Ut),te=te+Math.imul(Ne,br)|0,ke=Math.imul(Ne,Ut);var Vt=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,de=Math.imul(ye,br),te=Math.imul(ye,Ut),te=te+Math.imul(Ve,br)|0,ke=Math.imul(Ve,Ut),de=de+Math.imul(Me,xe)|0,te=te+Math.imul(Me,Oe)|0,te=te+Math.imul(Ne,xe)|0,ke=ke+Math.imul(Ne,Oe)|0;var Wt=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,de=Math.imul(Ke,br),te=Math.imul(Ke,Ut),te=te+Math.imul(nt,br)|0,ke=Math.imul(nt,Ut),de=de+Math.imul(ye,xe)|0,te=te+Math.imul(ye,Oe)|0,te=te+Math.imul(Ve,xe)|0,ke=ke+Math.imul(Ve,Oe)|0,de=de+Math.imul(Me,De)|0,te=te+Math.imul(Me,ct)|0,te=te+Math.imul(Ne,De)|0,ke=ke+Math.imul(Ne,ct)|0;var _r=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(_r>>>26)|0,_r&=67108863,de=Math.imul(Nt,br),te=Math.imul(Nt,Ut),te=te+Math.imul(it,br)|0,ke=Math.imul(it,Ut),de=de+Math.imul(Ke,xe)|0,te=te+Math.imul(Ke,Oe)|0,te=te+Math.imul(nt,xe)|0,ke=ke+Math.imul(nt,Oe)|0,de=de+Math.imul(ye,De)|0,te=te+Math.imul(ye,ct)|0,te=te+Math.imul(Ve,De)|0,ke=ke+Math.imul(Ve,ct)|0,de=de+Math.imul(Me,fe)|0,te=te+Math.imul(Me,pe)|0,te=te+Math.imul(Ne,fe)|0,ke=ke+Math.imul(Ne,pe)|0;var Lr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,de=Math.imul(kt,br),te=Math.imul(kt,Ut),te=te+Math.imul(Tt,br)|0,ke=Math.imul(Tt,Ut),de=de+Math.imul(Nt,xe)|0,te=te+Math.imul(Nt,Oe)|0,te=te+Math.imul(it,xe)|0,ke=ke+Math.imul(it,Oe)|0,de=de+Math.imul(Ke,De)|0,te=te+Math.imul(Ke,ct)|0,te=te+Math.imul(nt,De)|0,ke=ke+Math.imul(nt,ct)|0,de=de+Math.imul(ye,fe)|0,te=te+Math.imul(ye,pe)|0,te=te+Math.imul(Ve,fe)|0,ke=ke+Math.imul(Ve,pe)|0,de=de+Math.imul(Me,It)|0,te=te+Math.imul(Me,Pt)|0,te=te+Math.imul(Ne,It)|0,ke=ke+Math.imul(Ne,Pt)|0;var Ur=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,de=Math.imul(Rt,br),te=Math.imul(Rt,Ut),te=te+Math.imul(Zt,br)|0,ke=Math.imul(Zt,Ut),de=de+Math.imul(kt,xe)|0,te=te+Math.imul(kt,Oe)|0,te=te+Math.imul(Tt,xe)|0,ke=ke+Math.imul(Tt,Oe)|0,de=de+Math.imul(Nt,De)|0,te=te+Math.imul(Nt,ct)|0,te=te+Math.imul(it,De)|0,ke=ke+Math.imul(it,ct)|0,de=de+Math.imul(Ke,fe)|0,te=te+Math.imul(Ke,pe)|0,te=te+Math.imul(nt,fe)|0,ke=ke+Math.imul(nt,pe)|0,de=de+Math.imul(ye,It)|0,te=te+Math.imul(ye,Pt)|0,te=te+Math.imul(Ve,It)|0,ke=ke+Math.imul(Ve,Pt)|0,de=de+Math.imul(Me,Hr)|0,te=te+Math.imul(Me,Dr)|0,te=te+Math.imul(Ne,Hr)|0,ke=ke+Math.imul(Ne,Dr)|0;var Ir=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,de=Math.imul(Ae,br),te=Math.imul(Ae,Ut),te=te+Math.imul(at,br)|0,ke=Math.imul(at,Ut),de=de+Math.imul(Rt,xe)|0,te=te+Math.imul(Rt,Oe)|0,te=te+Math.imul(Zt,xe)|0,ke=ke+Math.imul(Zt,Oe)|0,de=de+Math.imul(kt,De)|0,te=te+Math.imul(kt,ct)|0,te=te+Math.imul(Tt,De)|0,ke=ke+Math.imul(Tt,ct)|0,de=de+Math.imul(Nt,fe)|0,te=te+Math.imul(Nt,pe)|0,te=te+Math.imul(it,fe)|0,ke=ke+Math.imul(it,pe)|0,de=de+Math.imul(Ke,It)|0,te=te+Math.imul(Ke,Pt)|0,te=te+Math.imul(nt,It)|0,ke=ke+Math.imul(nt,Pt)|0,de=de+Math.imul(ye,Hr)|0,te=te+Math.imul(ye,Dr)|0,te=te+Math.imul(Ve,Hr)|0,ke=ke+Math.imul(Ve,Dr)|0,de=de+Math.imul(Me,Fr)|0,te=te+Math.imul(Me,di)|0,te=te+Math.imul(Ne,Fr)|0,ke=ke+Math.imul(Ne,di)|0;var Gr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,de=Math.imul(vt,br),te=Math.imul(vt,Ut),te=te+Math.imul(st,br)|0,ke=Math.imul(st,Ut),de=de+Math.imul(Ae,xe)|0,te=te+Math.imul(Ae,Oe)|0,te=te+Math.imul(at,xe)|0,ke=ke+Math.imul(at,Oe)|0,de=de+Math.imul(Rt,De)|0,te=te+Math.imul(Rt,ct)|0,te=te+Math.imul(Zt,De)|0,ke=ke+Math.imul(Zt,ct)|0,de=de+Math.imul(kt,fe)|0,te=te+Math.imul(kt,pe)|0,te=te+Math.imul(Tt,fe)|0,ke=ke+Math.imul(Tt,pe)|0,de=de+Math.imul(Nt,It)|0,te=te+Math.imul(Nt,Pt)|0,te=te+Math.imul(it,It)|0,ke=ke+Math.imul(it,Pt)|0,de=de+Math.imul(Ke,Hr)|0,te=te+Math.imul(Ke,Dr)|0,te=te+Math.imul(nt,Hr)|0,ke=ke+Math.imul(nt,Dr)|0,de=de+Math.imul(ye,Fr)|0,te=te+Math.imul(ye,di)|0,te=te+Math.imul(Ve,Fr)|0,ke=ke+Math.imul(Ve,di)|0,de=de+Math.imul(Me,Ii)|0,te=te+Math.imul(Me,Ci)|0,te=te+Math.imul(Ne,Ii)|0,ke=ke+Math.imul(Ne,Ci)|0;var jr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(jr>>>26)|0,jr&=67108863,de=Math.imul(rt,br),te=Math.imul(rt,Ut),te=te+Math.imul($e,br)|0,ke=Math.imul($e,Ut),de=de+Math.imul(vt,xe)|0,te=te+Math.imul(vt,Oe)|0,te=te+Math.imul(st,xe)|0,ke=ke+Math.imul(st,Oe)|0,de=de+Math.imul(Ae,De)|0,te=te+Math.imul(Ae,ct)|0,te=te+Math.imul(at,De)|0,ke=ke+Math.imul(at,ct)|0,de=de+Math.imul(Rt,fe)|0,te=te+Math.imul(Rt,pe)|0,te=te+Math.imul(Zt,fe)|0,ke=ke+Math.imul(Zt,pe)|0,de=de+Math.imul(kt,It)|0,te=te+Math.imul(kt,Pt)|0,te=te+Math.imul(Tt,It)|0,ke=ke+Math.imul(Tt,Pt)|0,de=de+Math.imul(Nt,Hr)|0,te=te+Math.imul(Nt,Dr)|0,te=te+Math.imul(it,Hr)|0,ke=ke+Math.imul(it,Dr)|0,de=de+Math.imul(Ke,Fr)|0,te=te+Math.imul(Ke,di)|0,te=te+Math.imul(nt,Fr)|0,ke=ke+Math.imul(nt,di)|0,de=de+Math.imul(ye,Ii)|0,te=te+Math.imul(ye,Ci)|0,te=te+Math.imul(Ve,Ii)|0,ke=ke+Math.imul(Ve,Ci)|0,de=de+Math.imul(Me,ii)|0,te=te+Math.imul(Me,wi)|0,te=te+Math.imul(Ne,ii)|0,ke=ke+Math.imul(Ne,wi)|0;var yi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(yi>>>26)|0,yi&=67108863,de=Math.imul(Yt,br),te=Math.imul(Yt,Ut),te=te+Math.imul(hr,br)|0,ke=Math.imul(hr,Ut),de=de+Math.imul(rt,xe)|0,te=te+Math.imul(rt,Oe)|0,te=te+Math.imul($e,xe)|0,ke=ke+Math.imul($e,Oe)|0,de=de+Math.imul(vt,De)|0,te=te+Math.imul(vt,ct)|0,te=te+Math.imul(st,De)|0,ke=ke+Math.imul(st,ct)|0,de=de+Math.imul(Ae,fe)|0,te=te+Math.imul(Ae,pe)|0,te=te+Math.imul(at,fe)|0,ke=ke+Math.imul(at,pe)|0,de=de+Math.imul(Rt,It)|0,te=te+Math.imul(Rt,Pt)|0,te=te+Math.imul(Zt,It)|0,ke=ke+Math.imul(Zt,Pt)|0,de=de+Math.imul(kt,Hr)|0,te=te+Math.imul(kt,Dr)|0,te=te+Math.imul(Tt,Hr)|0,ke=ke+Math.imul(Tt,Dr)|0,de=de+Math.imul(Nt,Fr)|0,te=te+Math.imul(Nt,di)|0,te=te+Math.imul(it,Fr)|0,ke=ke+Math.imul(it,di)|0,de=de+Math.imul(Ke,Ii)|0,te=te+Math.imul(Ke,Ci)|0,te=te+Math.imul(nt,Ii)|0,ke=ke+Math.imul(nt,Ci)|0,de=de+Math.imul(ye,ii)|0,te=te+Math.imul(ye,wi)|0,te=te+Math.imul(Ve,ii)|0,ke=ke+Math.imul(Ve,wi)|0,de=de+Math.imul(Me,Bt)|0,te=te+Math.imul(Me,yt)|0,te=te+Math.imul(Ne,Bt)|0,ke=ke+Math.imul(Ne,yt)|0;var Ei=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,de=Math.imul(Yt,xe),te=Math.imul(Yt,Oe),te=te+Math.imul(hr,xe)|0,ke=Math.imul(hr,Oe),de=de+Math.imul(rt,De)|0,te=te+Math.imul(rt,ct)|0,te=te+Math.imul($e,De)|0,ke=ke+Math.imul($e,ct)|0,de=de+Math.imul(vt,fe)|0,te=te+Math.imul(vt,pe)|0,te=te+Math.imul(st,fe)|0,ke=ke+Math.imul(st,pe)|0,de=de+Math.imul(Ae,It)|0,te=te+Math.imul(Ae,Pt)|0,te=te+Math.imul(at,It)|0,ke=ke+Math.imul(at,Pt)|0,de=de+Math.imul(Rt,Hr)|0,te=te+Math.imul(Rt,Dr)|0,te=te+Math.imul(Zt,Hr)|0,ke=ke+Math.imul(Zt,Dr)|0,de=de+Math.imul(kt,Fr)|0,te=te+Math.imul(kt,di)|0,te=te+Math.imul(Tt,Fr)|0,ke=ke+Math.imul(Tt,di)|0,de=de+Math.imul(Nt,Ii)|0,te=te+Math.imul(Nt,Ci)|0,te=te+Math.imul(it,Ii)|0,ke=ke+Math.imul(it,Ci)|0,de=de+Math.imul(Ke,ii)|0,te=te+Math.imul(Ke,wi)|0,te=te+Math.imul(nt,ii)|0,ke=ke+Math.imul(nt,wi)|0,de=de+Math.imul(ye,Bt)|0,te=te+Math.imul(ye,yt)|0,te=te+Math.imul(Ve,Bt)|0,ke=ke+Math.imul(Ve,yt)|0;var Vi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,de=Math.imul(Yt,De),te=Math.imul(Yt,ct),te=te+Math.imul(hr,De)|0,ke=Math.imul(hr,ct),de=de+Math.imul(rt,fe)|0,te=te+Math.imul(rt,pe)|0,te=te+Math.imul($e,fe)|0,ke=ke+Math.imul($e,pe)|0,de=de+Math.imul(vt,It)|0,te=te+Math.imul(vt,Pt)|0,te=te+Math.imul(st,It)|0,ke=ke+Math.imul(st,Pt)|0,de=de+Math.imul(Ae,Hr)|0,te=te+Math.imul(Ae,Dr)|0,te=te+Math.imul(at,Hr)|0,ke=ke+Math.imul(at,Dr)|0,de=de+Math.imul(Rt,Fr)|0,te=te+Math.imul(Rt,di)|0,te=te+Math.imul(Zt,Fr)|0,ke=ke+Math.imul(Zt,di)|0,de=de+Math.imul(kt,Ii)|0,te=te+Math.imul(kt,Ci)|0,te=te+Math.imul(Tt,Ii)|0,ke=ke+Math.imul(Tt,Ci)|0,de=de+Math.imul(Nt,ii)|0,te=te+Math.imul(Nt,wi)|0,te=te+Math.imul(it,ii)|0,ke=ke+Math.imul(it,wi)|0,de=de+Math.imul(Ke,Bt)|0,te=te+Math.imul(Ke,yt)|0,te=te+Math.imul(nt,Bt)|0,ke=ke+Math.imul(nt,yt)|0;var ti=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(ti>>>26)|0,ti&=67108863,de=Math.imul(Yt,fe),te=Math.imul(Yt,pe),te=te+Math.imul(hr,fe)|0,ke=Math.imul(hr,pe),de=de+Math.imul(rt,It)|0,te=te+Math.imul(rt,Pt)|0,te=te+Math.imul($e,It)|0,ke=ke+Math.imul($e,Pt)|0,de=de+Math.imul(vt,Hr)|0,te=te+Math.imul(vt,Dr)|0,te=te+Math.imul(st,Hr)|0,ke=ke+Math.imul(st,Dr)|0,de=de+Math.imul(Ae,Fr)|0,te=te+Math.imul(Ae,di)|0,te=te+Math.imul(at,Fr)|0,ke=ke+Math.imul(at,di)|0,de=de+Math.imul(Rt,Ii)|0,te=te+Math.imul(Rt,Ci)|0,te=te+Math.imul(Zt,Ii)|0,ke=ke+Math.imul(Zt,Ci)|0,de=de+Math.imul(kt,ii)|0,te=te+Math.imul(kt,wi)|0,te=te+Math.imul(Tt,ii)|0,ke=ke+Math.imul(Tt,wi)|0,de=de+Math.imul(Nt,Bt)|0,te=te+Math.imul(Nt,yt)|0,te=te+Math.imul(it,Bt)|0,ke=ke+Math.imul(it,yt)|0;var en=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(en>>>26)|0,en&=67108863,de=Math.imul(Yt,It),te=Math.imul(Yt,Pt),te=te+Math.imul(hr,It)|0,ke=Math.imul(hr,Pt),de=de+Math.imul(rt,Hr)|0,te=te+Math.imul(rt,Dr)|0,te=te+Math.imul($e,Hr)|0,ke=ke+Math.imul($e,Dr)|0,de=de+Math.imul(vt,Fr)|0,te=te+Math.imul(vt,di)|0,te=te+Math.imul(st,Fr)|0,ke=ke+Math.imul(st,di)|0,de=de+Math.imul(Ae,Ii)|0,te=te+Math.imul(Ae,Ci)|0,te=te+Math.imul(at,Ii)|0,ke=ke+Math.imul(at,Ci)|0,de=de+Math.imul(Rt,ii)|0,te=te+Math.imul(Rt,wi)|0,te=te+Math.imul(Zt,ii)|0,ke=ke+Math.imul(Zt,wi)|0,de=de+Math.imul(kt,Bt)|0,te=te+Math.imul(kt,yt)|0,te=te+Math.imul(Tt,Bt)|0,ke=ke+Math.imul(Tt,yt)|0;var Yr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,de=Math.imul(Yt,Hr),te=Math.imul(Yt,Dr),te=te+Math.imul(hr,Hr)|0,ke=Math.imul(hr,Dr),de=de+Math.imul(rt,Fr)|0,te=te+Math.imul(rt,di)|0,te=te+Math.imul($e,Fr)|0,ke=ke+Math.imul($e,di)|0,de=de+Math.imul(vt,Ii)|0,te=te+Math.imul(vt,Ci)|0,te=te+Math.imul(st,Ii)|0,ke=ke+Math.imul(st,Ci)|0,de=de+Math.imul(Ae,ii)|0,te=te+Math.imul(Ae,wi)|0,te=te+Math.imul(at,ii)|0,ke=ke+Math.imul(at,wi)|0,de=de+Math.imul(Rt,Bt)|0,te=te+Math.imul(Rt,yt)|0,te=te+Math.imul(Zt,Bt)|0,ke=ke+Math.imul(Zt,yt)|0;var oi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(oi>>>26)|0,oi&=67108863,de=Math.imul(Yt,Fr),te=Math.imul(Yt,di),te=te+Math.imul(hr,Fr)|0,ke=Math.imul(hr,di),de=de+Math.imul(rt,Ii)|0,te=te+Math.imul(rt,Ci)|0,te=te+Math.imul($e,Ii)|0,ke=ke+Math.imul($e,Ci)|0,de=de+Math.imul(vt,ii)|0,te=te+Math.imul(vt,wi)|0,te=te+Math.imul(st,ii)|0,ke=ke+Math.imul(st,wi)|0,de=de+Math.imul(Ae,Bt)|0,te=te+Math.imul(Ae,yt)|0,te=te+Math.imul(at,Bt)|0,ke=ke+Math.imul(at,yt)|0;var Bi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,de=Math.imul(Yt,Ii),te=Math.imul(Yt,Ci),te=te+Math.imul(hr,Ii)|0,ke=Math.imul(hr,Ci),de=de+Math.imul(rt,ii)|0,te=te+Math.imul(rt,wi)|0,te=te+Math.imul($e,ii)|0,ke=ke+Math.imul($e,wi)|0,de=de+Math.imul(vt,Bt)|0,te=te+Math.imul(vt,yt)|0,te=te+Math.imul(st,Bt)|0,ke=ke+Math.imul(st,yt)|0;var an=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(an>>>26)|0,an&=67108863,de=Math.imul(Yt,ii),te=Math.imul(Yt,wi),te=te+Math.imul(hr,ii)|0,ke=Math.imul(hr,wi),de=de+Math.imul(rt,Bt)|0,te=te+Math.imul(rt,yt)|0,te=te+Math.imul($e,Bt)|0,ke=ke+Math.imul($e,yt)|0;var rn=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(rn>>>26)|0,rn&=67108863,de=Math.imul(Yt,Bt),te=Math.imul(Yt,yt),te=te+Math.imul(hr,Bt)|0,ke=Math.imul(hr,yt);var Fi=(Ce+de|0)+((te&8191)<<13)|0;return Ce=(ke+(te>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,Pe[0]=Vt,Pe[1]=Wt,Pe[2]=_r,Pe[3]=Lr,Pe[4]=Ur,Pe[5]=Ir,Pe[6]=Gr,Pe[7]=jr,Pe[8]=yi,Pe[9]=Ei,Pe[10]=Vi,Pe[11]=ti,Pe[12]=en,Pe[13]=Yr,Pe[14]=oi,Pe[15]=Bi,Pe[16]=an,Pe[17]=rn,Pe[18]=Fi,Ce!==0&&(Pe[19]=Ce,re.length++),re};Math.imul||(L=T);function x(H,N,W){W.negative=N.negative^H.negative,W.length=H.length+N.length;for(var re=0,ae=0,be=0;be>>26)|0,ae+=Pe>>>26,Pe&=67108863}W.words[be]=Ce,re=Pe,Pe=ae}return re!==0?W.words[be]=re:W.length--,W.strip()}function C(H,N,W){var re=new M;return re.mulp(H,N,W)}c.prototype.mulTo=function(N,W){var re,ae=this.length+N.length;return this.length===10&&N.length===10?re=L(this,N,W):ae<63?re=T(this,N,W):ae<1024?re=x(this,N,W):re=C(this,N,W),re};function M(H,N){this.x=H,this.y=N}M.prototype.makeRBT=function(N){for(var W=new Array(N),re=c.prototype._countBits(N)-1,ae=0;ae>=1;return ae},M.prototype.permute=function(N,W,re,ae,be,Pe){for(var Ce=0;Ce>>1)be++;return 1<>>13,re[2*Pe+1]=be&8191,be=be>>>13;for(Pe=2*W;Pe>=26,W+=ae/67108864|0,W+=be>>>26,this.words[re]=be&67108863}return W!==0&&(this.words[re]=W,this.length++),this},c.prototype.muln=function(N){return this.clone().imuln(N)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(N){var W=E(N);if(W.length===0)return new c(1);for(var re=this,ae=0;ae=0);var W=N%26,re=(N-W)/26,ae=67108863>>>26-W<<26-W,be;if(W!==0){var Pe=0;for(be=0;be>>26-W}Pe&&(this.words[be]=Pe,this.length++)}if(re!==0){for(be=this.length-1;be>=0;be--)this.words[be+re]=this.words[be];for(be=0;be=0);var ae;W?ae=(W-W%26)/26:ae=0;var be=N%26,Pe=Math.min((N-be)/26,this.length),Ce=67108863^67108863>>>be<Pe)for(this.length-=Pe,te=0;te=0&&(ke!==0||te>=ae);te--){var Ee=this.words[te]|0;this.words[te]=ke<<26-be|Ee>>>be,ke=Ee&Ce}return de&&ke!==0&&(de.words[de.length++]=ke),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(N,W,re){return l(this.negative===0),this.iushrn(N,W,re)},c.prototype.shln=function(N){return this.clone().ishln(N)},c.prototype.ushln=function(N){return this.clone().iushln(N)},c.prototype.shrn=function(N){return this.clone().ishrn(N)},c.prototype.ushrn=function(N){return this.clone().iushrn(N)},c.prototype.testn=function(N){l(typeof N=="number"&&N>=0);var W=N%26,re=(N-W)/26,ae=1<=0);var W=N%26,re=(N-W)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=re)return this;if(W!==0&&re++,this.length=Math.min(re,this.length),W!==0){var ae=67108863^67108863>>>W<=67108864;W++)this.words[W]-=67108864,W===this.length-1?this.words[W+1]=1:this.words[W+1]++;return this.length=Math.max(this.length,W+1),this},c.prototype.isubn=function(N){if(l(typeof N=="number"),l(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var W=0;W>26)-(de/67108864|0),this.words[be+re]=Pe&67108863}for(;be>26,this.words[be+re]=Pe&67108863;if(Ce===0)return this.strip();for(l(Ce===-1),Ce=0,be=0;be>26,this.words[be]=Pe&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(N,W){var re=this.length-N.length,ae=this.clone(),be=N,Pe=be.words[be.length-1]|0,Ce=this._countBits(Pe);re=26-Ce,re!==0&&(be=be.ushln(re),ae.iushln(re),Pe=be.words[be.length-1]|0);var de=ae.length-be.length,te;if(W!=="mod"){te=new c(null),te.length=de+1,te.words=new Array(te.length);for(var ke=0;ke=0;Me--){var Ne=(ae.words[be.length+Me]|0)*67108864+(ae.words[be.length+Me-1]|0);for(Ne=Math.min(Ne/Pe|0,67108863),ae._ishlnsubmul(be,Ne,Me);ae.negative!==0;)Ne--,ae.negative=0,ae._ishlnsubmul(be,1,Me),ae.isZero()||(ae.negative^=1);te&&(te.words[Me]=Ne)}return te&&te.strip(),ae.strip(),W!=="div"&&re!==0&&ae.iushrn(re),{div:te||null,mod:ae}},c.prototype.divmod=function(N,W,re){if(l(!N.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var ae,be,Pe;return this.negative!==0&&N.negative===0?(Pe=this.neg().divmod(N,W),W!=="mod"&&(ae=Pe.div.neg()),W!=="div"&&(be=Pe.mod.neg(),re&&be.negative!==0&&be.iadd(N)),{div:ae,mod:be}):this.negative===0&&N.negative!==0?(Pe=this.divmod(N.neg(),W),W!=="mod"&&(ae=Pe.div.neg()),{div:ae,mod:Pe.mod}):(this.negative&N.negative)!==0?(Pe=this.neg().divmod(N.neg(),W),W!=="div"&&(be=Pe.mod.neg(),re&&be.negative!==0&&be.isub(N)),{div:Pe.div,mod:be}):N.length>this.length||this.cmp(N)<0?{div:new c(0),mod:this}:N.length===1?W==="div"?{div:this.divn(N.words[0]),mod:null}:W==="mod"?{div:null,mod:new c(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new c(this.modn(N.words[0]))}:this._wordDiv(N,W)},c.prototype.div=function(N){return this.divmod(N,"div",!1).div},c.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},c.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},c.prototype.divRound=function(N){var W=this.divmod(N);if(W.mod.isZero())return W.div;var re=W.div.negative!==0?W.mod.isub(N):W.mod,ae=N.ushrn(1),be=N.andln(1),Pe=re.cmp(ae);return Pe<0||be===1&&Pe===0?W.div:W.div.negative!==0?W.div.isubn(1):W.div.iaddn(1)},c.prototype.modn=function(N){l(N<=67108863);for(var W=(1<<26)%N,re=0,ae=this.length-1;ae>=0;ae--)re=(W*re+(this.words[ae]|0))%N;return re},c.prototype.idivn=function(N){l(N<=67108863);for(var W=0,re=this.length-1;re>=0;re--){var ae=(this.words[re]|0)+W*67108864;this.words[re]=ae/N|0,W=ae%N}return this.strip()},c.prototype.divn=function(N){return this.clone().idivn(N)},c.prototype.egcd=function(N){l(N.negative===0),l(!N.isZero());var W=this,re=N.clone();W.negative!==0?W=W.umod(N):W=W.clone();for(var ae=new c(1),be=new c(0),Pe=new c(0),Ce=new c(1),de=0;W.isEven()&&re.isEven();)W.iushrn(1),re.iushrn(1),++de;for(var te=re.clone(),ke=W.clone();!W.isZero();){for(var Ee=0,Me=1;(W.words[0]&Me)===0&&Ee<26;++Ee,Me<<=1);if(Ee>0)for(W.iushrn(Ee);Ee-- >0;)(ae.isOdd()||be.isOdd())&&(ae.iadd(te),be.isub(ke)),ae.iushrn(1),be.iushrn(1);for(var Ne=0,Fe=1;(re.words[0]&Fe)===0&&Ne<26;++Ne,Fe<<=1);if(Ne>0)for(re.iushrn(Ne);Ne-- >0;)(Pe.isOdd()||Ce.isOdd())&&(Pe.iadd(te),Ce.isub(ke)),Pe.iushrn(1),Ce.iushrn(1);W.cmp(re)>=0?(W.isub(re),ae.isub(Pe),be.isub(Ce)):(re.isub(W),Pe.isub(ae),Ce.isub(be))}return{a:Pe,b:Ce,gcd:re.iushln(de)}},c.prototype._invmp=function(N){l(N.negative===0),l(!N.isZero());var W=this,re=N.clone();W.negative!==0?W=W.umod(N):W=W.clone();for(var ae=new c(1),be=new c(0),Pe=re.clone();W.cmpn(1)>0&&re.cmpn(1)>0;){for(var Ce=0,de=1;(W.words[0]&de)===0&&Ce<26;++Ce,de<<=1);if(Ce>0)for(W.iushrn(Ce);Ce-- >0;)ae.isOdd()&&ae.iadd(Pe),ae.iushrn(1);for(var te=0,ke=1;(re.words[0]&ke)===0&&te<26;++te,ke<<=1);if(te>0)for(re.iushrn(te);te-- >0;)be.isOdd()&&be.iadd(Pe),be.iushrn(1);W.cmp(re)>=0?(W.isub(re),ae.isub(be)):(re.isub(W),be.isub(ae))}var Ee;return W.cmpn(1)===0?Ee=ae:Ee=be,Ee.cmpn(0)<0&&Ee.iadd(N),Ee},c.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var W=this.clone(),re=N.clone();W.negative=0,re.negative=0;for(var ae=0;W.isEven()&&re.isEven();ae++)W.iushrn(1),re.iushrn(1);do{for(;W.isEven();)W.iushrn(1);for(;re.isEven();)re.iushrn(1);var be=W.cmp(re);if(be<0){var Pe=W;W=re,re=Pe}else if(be===0||re.cmpn(1)===0)break;W.isub(re)}while(!0);return re.iushln(ae)},c.prototype.invm=function(N){return this.egcd(N).a.umod(N)},c.prototype.isEven=function(){return(this.words[0]&1)===0},c.prototype.isOdd=function(){return(this.words[0]&1)===1},c.prototype.andln=function(N){return this.words[0]&N},c.prototype.bincn=function(N){l(typeof N=="number");var W=N%26,re=(N-W)/26,ae=1<>>26,Ce&=67108863,this.words[Pe]=Ce}return be!==0&&(this.words[Pe]=be,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(N){var W=N<0;if(this.negative!==0&&!W)return-1;if(this.negative===0&&W)return 1;this.strip();var re;if(this.length>1)re=1;else{W&&(N=-N),l(N<=67108863,"Number is too big");var ae=this.words[0]|0;re=ae===N?0:aeN.length)return 1;if(this.length=0;re--){var ae=this.words[re]|0,be=N.words[re]|0;if(ae!==be){aebe&&(W=1);break}}return W},c.prototype.gtn=function(N){return this.cmpn(N)===1},c.prototype.gt=function(N){return this.cmp(N)===1},c.prototype.gten=function(N){return this.cmpn(N)>=0},c.prototype.gte=function(N){return this.cmp(N)>=0},c.prototype.ltn=function(N){return this.cmpn(N)===-1},c.prototype.lt=function(N){return this.cmp(N)===-1},c.prototype.lten=function(N){return this.cmpn(N)<=0},c.prototype.lte=function(N){return this.cmp(N)<=0},c.prototype.eqn=function(N){return this.cmpn(N)===0},c.prototype.eq=function(N){return this.cmp(N)===0},c.red=function(N){return new G(N)},c.prototype.toRed=function(N){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},c.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(N){return this.red=N,this},c.prototype.forceRed=function(N){return l(!this.red,"Already a number in reduction context"),this._forceRed(N)},c.prototype.redAdd=function(N){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},c.prototype.redIAdd=function(N){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},c.prototype.redSub=function(N){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},c.prototype.redISub=function(N){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},c.prototype.redShl=function(N){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},c.prototype.redMul=function(N){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},c.prototype.redIMul=function(N){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},c.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(N){return l(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var m={k256:null,p224:null,p192:null,p25519:null};function P(H,N){this.name=H,this.p=new c(N,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}P.prototype._tmp=function(){var N=new c(null);return N.words=new Array(Math.ceil(this.n/13)),N},P.prototype.ireduce=function(N){var W=N,re;do this.split(W,this.tmp),W=this.imulK(W),W=W.iadd(this.tmp),re=W.bitLength();while(re>this.n);var ae=re0?W.isub(this.p):W.strip!==void 0?W.strip():W._strip(),W},P.prototype.split=function(N,W){N.iushrn(this.n,0,W)},P.prototype.imulK=function(N){return N.imul(this.k)};function A(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(A,P),A.prototype.split=function(N,W){for(var re=4194303,ae=Math.min(N.length,9),be=0;be>>22,Pe=Ce}Pe>>>=22,N.words[be-10]=Pe,Pe===0&&N.length>10?N.length-=10:N.length-=9},A.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var W=0,re=0;re>>=26,N.words[re]=be,W=ae}return W!==0&&(N.words[N.length++]=W),N},c._prime=function(N){if(m[N])return m[N];var W;if(N==="k256")W=new A;else if(N==="p224")W=new B;else if(N==="p192")W=new F;else if(N==="p25519")W=new U;else throw new Error("Unknown prime "+N);return m[N]=W,W};function G(H){if(typeof H=="string"){var N=c._prime(H);this.m=N.p,this.prime=N}else l(H.gtn(1),"modulus must be greater than 1"),this.m=H,this.prime=null}G.prototype._verify1=function(N){l(N.negative===0,"red works only with positives"),l(N.red,"red works only with red numbers")},G.prototype._verify2=function(N,W){l((N.negative|W.negative)===0,"red works only with positives"),l(N.red&&N.red===W.red,"red works only with red numbers")},G.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},G.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},G.prototype.add=function(N,W){this._verify2(N,W);var re=N.add(W);return re.cmp(this.m)>=0&&re.isub(this.m),re._forceRed(this)},G.prototype.iadd=function(N,W){this._verify2(N,W);var re=N.iadd(W);return re.cmp(this.m)>=0&&re.isub(this.m),re},G.prototype.sub=function(N,W){this._verify2(N,W);var re=N.sub(W);return re.cmpn(0)<0&&re.iadd(this.m),re._forceRed(this)},G.prototype.isub=function(N,W){this._verify2(N,W);var re=N.isub(W);return re.cmpn(0)<0&&re.iadd(this.m),re},G.prototype.shl=function(N,W){return this._verify1(N),this.imod(N.ushln(W))},G.prototype.imul=function(N,W){return this._verify2(N,W),this.imod(N.imul(W))},G.prototype.mul=function(N,W){return this._verify2(N,W),this.imod(N.mul(W))},G.prototype.isqr=function(N){return this.imul(N,N.clone())},G.prototype.sqr=function(N){return this.mul(N,N)},G.prototype.sqrt=function(N){if(N.isZero())return N.clone();var W=this.m.andln(3);if(l(W%2===1),W===3){var re=this.m.add(new c(1)).iushrn(2);return this.pow(N,re)}for(var ae=this.m.subn(1),be=0;!ae.isZero()&&ae.andln(1)===0;)be++,ae.iushrn(1);l(!ae.isZero());var Pe=new c(1).toRed(this),Ce=Pe.redNeg(),de=this.m.subn(1).iushrn(1),te=this.m.bitLength();for(te=new c(2*te*te).toRed(this);this.pow(te,de).cmp(Ce)!==0;)te.redIAdd(Ce);for(var ke=this.pow(te,ae),Ee=this.pow(N,ae.addn(1).iushrn(1)),Me=this.pow(N,ae),Ne=be;Me.cmp(Pe)!==0;){for(var Fe=Me,ye=0;Fe.cmp(Pe)!==0;ye++)Fe=Fe.redSqr();l(ye=0;be--){for(var ke=W.words[be],Ee=te-1;Ee>=0;Ee--){var Me=ke>>Ee&1;if(Pe!==ae[0]&&(Pe=this.sqr(Pe)),Me===0&&Ce===0){de=0;continue}Ce<<=1,Ce|=Me,de++,!(de!==re&&(be!==0||Ee!==0))&&(Pe=this.mul(Pe,ae[Ce]),de=0,Ce=0)}te=26}return Pe},G.prototype.convertTo=function(N){var W=N.umod(this.m);return W===N?W.clone():W},G.prototype.convertFrom=function(N){var W=N.clone();return W.red=null,W},c.mont=function(N){return new j(N)};function j(H){G.call(this,H),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(j,G),j.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},j.prototype.convertFrom=function(N){var W=this.imod(N.mul(this.rinv));return W.red=null,W},j.prototype.imul=function(N,W){if(N.isZero()||W.isZero())return N.words[0]=0,N.length=1,N;var re=N.imul(W),ae=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),be=re.isub(ae).iushrn(this.shift),Pe=be;return be.cmp(this.m)>=0?Pe=be.isub(this.m):be.cmpn(0)<0&&(Pe=be.iadd(this.m)),Pe._forceRed(this)},j.prototype.mul=function(N,W){if(N.isZero()||W.isZero())return new c(0)._forceRed(this);var re=N.mul(W),ae=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),be=re.isub(ae).iushrn(this.shift),Pe=be;return be.cmp(this.m)>=0?Pe=be.isub(this.m):be.cmpn(0)<0&&(Pe=be.iadd(this.m)),Pe._forceRed(this)},j.prototype.invm=function(N){var W=this.imod(N._invmp(this.m).mul(this.r2));return W._forceRed(this)}}(i,this)},6204:function(i){"use strict";i.exports=a;function a(o){var s,u,l,f=o.length,c=0;for(s=0;s>>1;if(!(M<=0)){var m,P=s.mallocDouble(2*M*x),A=s.mallocInt32(x);if(x=c(k,M,P,A),x>0){if(M===1&&L)u.init(x),m=u.sweepComplete(M,T,0,x,P,A,0,x,P,A);else{var B=s.mallocDouble(2*M*C),F=s.mallocInt32(C);C=c(E,M,B,F),C>0&&(u.init(x+C),M===1?m=u.sweepBipartite(M,T,0,x,P,A,0,C,B,F):m=l(M,T,L,x,P,A,C,B,F),s.free(B),s.free(F))}s.free(P),s.free(A)}return m}}}var d;function p(k,E){d.push([k,E])}function _(k){return d=[],h(k,k,p,!0),d}function b(k,E){return d=[],h(k,E,p,!1),d}function v(k,E,T){switch(arguments.length){case 1:return _(k);case 2:return typeof E=="function"?h(k,k,E,!0):b(k,E);case 3:return h(k,E,T,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(i,a){"use strict";function o(){function l(h,d,p,_,b,v,k,E,T,L,x){for(var C=2*h,M=_,m=C*_;MT-E?l(h,d,p,_,b,v,k,E,T,L,x):f(h,d,p,_,b,v,k,E,T,L,x)}return c}function s(){function l(p,_,b,v,k,E,T,L,x,C,M){for(var m=2*p,P=v,A=m*v;PC-x?v?l(p,_,b,k,E,T,L,x,C,M,m):f(p,_,b,k,E,T,L,x,C,M,m):v?c(p,_,b,k,E,T,L,x,C,M,m):h(p,_,b,k,E,T,L,x,C,M,m)}return d}function u(l){return l?o():s()}a.partial=u(!1),a.full=u(!0)},7150:function(i,a,o){"use strict";i.exports=H;var s=o(1888),u=o(8828),l=o(2455),f=l.partial,c=l.full,h=o(855),d=o(3545),p=o(8105),_=128,b=1<<22,v=1<<22,k=p("!(lo>=p0)&&!(p1>=hi)"),E=p("lo===p0"),T=p("lo0;){ke-=1;var Ne=ke*M,Fe=A[Ne],ye=A[Ne+1],Ve=A[Ne+2],ce=A[Ne+3],Ke=A[Ne+4],nt=A[Ne+5],gt=ke*m,Nt=B[gt],it=B[gt+1],Ye=nt&1,kt=!!(nt&16),Tt=be,St=Pe,Rt=de,Zt=te;if(Ye&&(Tt=de,St=te,Rt=be,Zt=Pe),!(nt&2&&(Ve=T(N,Fe,ye,Ve,Tt,St,it),ye>=Ve))&&!(nt&4&&(ye=L(N,Fe,ye,Ve,Tt,St,Nt),ye>=Ve))){var Et=Ve-ye,Ae=Ke-ce;if(kt){if(N*Et*(Et+Ae)p&&b[C+d]>L;--x,C-=k){for(var M=C,m=C+k,P=0;P>>1,L=2*h,x=T,C=b[L*T+d];k=B?(x=A,C=B):P>=U?(x=m,C=P):(x=F,C=U):B>=U?(x=A,C=B):U>=P?(x=m,C=P):(x=F,C=U);for(var H=L*(E-1),N=L*x,G=0;G=p0)&&!(p1>=hi)":d};function o(p){return a[p]}function s(p,_,b,v,k,E,T){for(var L=2*p,x=L*b,C=x,M=b,m=_,P=p+_,A=b;v>A;++A,x+=L){var B=k[x+m];if(B===T)if(M===A)M+=1,C+=L;else{for(var F=0;L>F;++F){var U=k[x+F];k[x+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function u(p,_,b,v,k,E,T){for(var L=2*p,x=L*b,C=x,M=b,m=_,P=p+_,A=b;v>A;++A,x+=L){var B=k[x+m];if(BF;++F){var U=k[x+F];k[x+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function l(p,_,b,v,k,E,T){for(var L=2*p,x=L*b,C=x,M=b,m=_,P=p+_,A=b;v>A;++A,x+=L){var B=k[x+P];if(B<=T)if(M===A)M+=1,C+=L;else{for(var F=0;L>F;++F){var U=k[x+F];k[x+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function f(p,_,b,v,k,E,T){for(var L=2*p,x=L*b,C=x,M=b,m=_,P=p+_,A=b;v>A;++A,x+=L){var B=k[x+P];if(B<=T)if(M===A)M+=1,C+=L;else{for(var F=0;L>F;++F){var U=k[x+F];k[x+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function c(p,_,b,v,k,E,T){for(var L=2*p,x=L*b,C=x,M=b,m=_,P=p+_,A=b;v>A;++A,x+=L){var B=k[x+m],F=k[x+P];if(B<=T&&T<=F)if(M===A)M+=1,C+=L;else{for(var U=0;L>U;++U){var G=k[x+U];k[x+U]=k[C],k[C++]=G}var j=E[A];E[A]=E[M],E[M++]=j}}return M}function h(p,_,b,v,k,E,T){for(var L=2*p,x=L*b,C=x,M=b,m=_,P=p+_,A=b;v>A;++A,x+=L){var B=k[x+m],F=k[x+P];if(BU;++U){var G=k[x+U];k[x+U]=k[C],k[C++]=G}var j=E[A];E[A]=E[M],E[M++]=j}}return M}function d(p,_,b,v,k,E,T,L){for(var x=2*p,C=x*b,M=C,m=b,P=_,A=p+_,B=b;v>B;++B,C+=x){var F=k[C+P],U=k[C+A];if(!(F>=T)&&!(L>=U))if(m===B)m+=1,M+=x;else{for(var G=0;x>G;++G){var j=k[C+G];k[C+G]=k[M],k[M++]=j}var H=E[B];E[B]=E[m],E[m++]=H}}return m}},4192:function(i){"use strict";i.exports=o;var a=32;function o(_,b){b<=4*a?s(0,b-1,_):p(0,b-1,_)}function s(_,b,v){for(var k=2*(_+1),E=_+1;E<=b;++E){for(var T=v[k++],L=v[k++],x=E,C=k-2;x-- >_;){var M=v[C-2],m=v[C-1];if(Mv[b+1]:!0}function d(_,b,v,k){_*=2;var E=k[_];return E>1,x=L-k,C=L+k,M=E,m=x,P=L,A=C,B=T,F=_+1,U=b-1,G=0;h(M,m,v)&&(G=M,M=m,m=G),h(A,B,v)&&(G=A,A=B,B=G),h(M,P,v)&&(G=M,M=P,P=G),h(m,P,v)&&(G=m,m=P,P=G),h(M,A,v)&&(G=M,M=A,A=G),h(P,A,v)&&(G=P,P=A,A=G),h(m,B,v)&&(G=m,m=B,B=G),h(m,P,v)&&(G=m,m=P,P=G),h(A,B,v)&&(G=A,A=B,B=G);for(var j=v[2*m],H=v[2*m+1],N=v[2*A],W=v[2*A+1],re=2*M,ae=2*P,be=2*B,Pe=2*E,Ce=2*L,de=2*T,te=0;te<2;++te){var ke=v[re+te],Ee=v[ae+te],Me=v[be+te];v[Pe+te]=ke,v[Ce+te]=Ee,v[de+te]=Me}l(x,_,v),l(C,b,v);for(var Ne=F;Ne<=U;++Ne)if(d(Ne,j,H,v))Ne!==F&&u(Ne,F,v),++F;else if(!d(Ne,N,W,v))for(;;)if(d(U,N,W,v)){d(U,j,H,v)?(f(Ne,F,U,v),++F,--U):(u(Ne,U,v),--U);break}else{if(--U>>1;l(k,Ee);for(var Me=0,Ne=0,Ce=0;Ce=f)Fe=Fe-f|0,T(p,_,Ne--,Fe);else if(Fe>=0)T(h,d,Me--,Fe);else if(Fe<=-f){Fe=-Fe-f|0;for(var ye=0;ye>>1;l(k,Ee);for(var Me=0,Ne=0,Fe=0,Ce=0;Ce>1===k[2*Ce+3]>>1&&(Ve=2,Ce+=1),ye<0){for(var ce=-(ye>>1)-1,Ke=0;Ke>1)-1;Ve===0?T(h,d,Me--,ce):Ve===1?T(p,_,Ne--,ce):Ve===2&&T(b,v,Fe--,ce)}}}function M(P,A,B,F,U,G,j,H,N,W,re,ae){var be=0,Pe=2*P,Ce=A,de=A+P,te=1,ke=1;F?ke=f:te=f;for(var Ee=U;Ee>>1;l(k,ye);for(var Ve=0,Ee=0;Ee=f?(Ke=!F,Me-=f):(Ke=!!F,Me-=1),Ke)L(h,d,Ve++,Me);else{var nt=ae[Me],gt=Pe*Me,Nt=re[gt+A+1],it=re[gt+A+1+P];e:for(var Ye=0;Ye>>1;l(k,Me);for(var Ne=0,de=0;de=f)h[Ne++]=te-f;else{te-=1;var ye=re[te],Ve=be*te,ce=W[Ve+A+1],Ke=W[Ve+A+1+P];e:for(var nt=0;nt=0;--nt)if(h[nt]===te){for(var Ye=nt+1;Ye0;){for(var E=d.pop(),b=d.pop(),T=-1,L=-1,v=_[b],C=1;C=0||(h.flip(b,E),l(c,h,d,T,b,L),l(c,h,d,b,L,T),l(c,h,d,L,E,T),l(c,h,d,E,T,L))}}},5023:function(i,a,o){"use strict";var s=o(2478);i.exports=d;function u(p,_,b,v,k,E,T){this.cells=p,this.neighbor=_,this.flags=v,this.constraint=b,this.active=k,this.next=E,this.boundary=T}var l=u.prototype;function f(p,_){return p[0]-_[0]||p[1]-_[1]||p[2]-_[2]}l.locate=function(){var p=[0,0,0];return function(_,b,v){var k=_,E=b,T=v;return b0||T.length>0;){for(;E.length>0;){var m=E.pop();if(L[m]!==-k){L[m]=k;for(var P=x[m],A=0;A<3;++A){var B=M[3*m+A];B>=0&&L[B]===0&&(C[3*m+A]?T.push(B):(E.push(B),L[B]=k))}}}var F=T;T=E,E=F,T.length=0,k=-k}var U=h(x,L,_);return b?U.concat(v.boundary):U}},8902:function(i,a,o){"use strict";var s=o(2478),u=o(3250)[3],l=0,f=1,c=2;i.exports=T;function h(L,x,C,M,m){this.a=L,this.b=x,this.idx=C,this.lowerIds=M,this.upperIds=m}function d(L,x,C,M){this.a=L,this.b=x,this.type=C,this.idx=M}function p(L,x){var C=L.a[0]-x.a[0]||L.a[1]-x.a[1]||L.type-x.type;return C||L.type!==l&&(C=u(L.a,L.b,x.b),C)?C:L.idx-x.idx}function _(L,x){return u(L.a,L.b,x)}function b(L,x,C,M,m){for(var P=s.lt(x,M,_),A=s.gt(x,M,_),B=P;B1&&u(C[U[j-2]],C[U[j-1]],M)>0;)L.push([U[j-1],U[j-2],m]),j-=1;U.length=j,U.push(m);for(var G=F.upperIds,j=G.length;j>1&&u(C[G[j-2]],C[G[j-1]],M)<0;)L.push([G[j-2],G[j-1],m]),j-=1;G.length=j,G.push(m)}}function v(L,x){var C;return L.a[0]F[0]&&m.push(new d(F,B,c,P),new d(B,F,f,P))}m.sort(p);for(var U=m[0].a[0]-(1+Math.abs(m[0].a[0]))*Math.pow(2,-52),G=[new h([U,1],[U,0],-1,[],[],[],[])],j=[],P=0,H=m.length;P=0}}(),l.removeTriangle=function(h,d,p){var _=this.stars;f(_[h],d,p),f(_[d],p,h),f(_[p],h,d)},l.addTriangle=function(h,d,p){var _=this.stars;_[h].push(d,p),_[d].push(p,h),_[p].push(h,d)},l.opposite=function(h,d){for(var p=this.stars[d],_=1,b=p.length;_=0;--N){var ke=j[N];W=ke[0];var Ee=U[W],Me=Ee[0],Ne=Ee[1],Fe=F[Me],ye=F[Ne];if((Fe[0]-ye[0]||Fe[1]-ye[1])<0){var Ve=Me;Me=Ne,Ne=Ve}Ee[0]=Me;var ce=Ee[1]=ke[1],Ke;for(H&&(Ke=Ee[2]);N>0&&j[N-1][0]===W;){var ke=j[--N],nt=ke[1];H?U.push([ce,nt,Ke]):U.push([ce,nt]),ce=nt}H?U.push([ce,Ne,Ke]):U.push([ce,Ne])}return re}function x(F,U,G){for(var j=U.length,H=new s(j),N=[],W=0;WU[2]?1:0)}function m(F,U,G){if(F.length!==0){if(U)for(var j=0;j0||W.length>0}function B(F,U,G){var j;if(G){j=U;for(var H=new Array(U.length),N=0;NL+1)throw new Error(E+" map requires nshades to be at least size "+k.length);Array.isArray(d.alpha)?d.alpha.length!==2?x=[1,1]:x=d.alpha.slice():typeof d.alpha=="number"?x=[d.alpha,d.alpha]:x=[1,1],p=k.map(function(B){return Math.round(B.index*L)}),x[0]=Math.min(Math.max(x[0],0),1),x[1]=Math.min(Math.max(x[1],0),1);var M=k.map(function(B,F){var U=k[F].index,G=k[F].rgb.slice();return G.length===4&&G[3]>=0&&G[3]<=1||(G[3]=x[0]+(x[1]-x[0])*U),G}),m=[];for(C=0;C=0}function d(p,_,b,v){var k=s(_,b,v);if(k===0){var E=u(s(p,_,b)),T=u(s(p,_,v));if(E===T){if(E===0){var L=h(p,_,b),x=h(p,_,v);return L===x?0:L?1:-1}return 0}else{if(T===0)return E>0||h(p,_,v)?-1:1;if(E===0)return T>0||h(p,_,b)?1:-1}return u(T-E)}var C=s(p,_,b);if(C>0)return k>0&&s(p,_,v)>0?1:-1;if(C<0)return k>0||s(p,_,v)>0?1:-1;var M=s(p,_,v);return M>0||h(p,_,b)?1:-1}},8572:function(i){"use strict";i.exports=function(o){return o<0?-1:o>0?1:0}},8507:function(i){i.exports=s;var a=Math.min;function o(u,l){return u-l}function s(u,l){var f=u.length,c=u.length-l.length;if(c)return c;switch(f){case 0:return 0;case 1:return u[0]-l[0];case 2:return u[0]+u[1]-l[0]-l[1]||a(u[0],u[1])-a(l[0],l[1]);case 3:var h=u[0]+u[1],d=l[0]+l[1];if(c=h+u[2]-(d+l[2]),c)return c;var p=a(u[0],u[1]),_=a(l[0],l[1]);return a(p,u[2])-a(_,l[2])||a(p+u[2],h)-a(_+l[2],d);case 4:var b=u[0],v=u[1],k=u[2],E=u[3],T=l[0],L=l[1],x=l[2],C=l[3];return b+v+k+E-(T+L+x+C)||a(b,v,k,E)-a(T,L,x,C,T)||a(b+v,b+k,b+E,v+k,v+E,k+E)-a(T+L,T+x,T+C,L+x,L+C,x+C)||a(b+v+k,b+v+E,b+k+E,v+k+E)-a(T+L+x,T+L+C,T+x+C,L+x+C);default:for(var M=u.slice().sort(o),m=l.slice().sort(o),P=0;Po[u][0]&&(u=l);return su?[[u],[s]]:[[s]]}},4750:function(i,a,o){"use strict";i.exports=u;var s=o(3090);function u(l){var f=s(l),c=f.length;if(c<=2)return[];for(var h=new Array(c),d=f[c-1],p=0;p=d[T]&&(E+=1);v[k]=E}}return h}function c(h,d){try{return s(h,!0)}catch(v){var p=u(h);if(p.length<=d)return[];var _=l(h,p),b=s(_,!0);return f(b,p)}}},4769:function(i){"use strict";function a(s,u,l,f,c,h){var d=6*c*c-6*c,p=3*c*c-4*c+1,_=-6*c*c+6*c,b=3*c*c-2*c;if(s.length){h||(h=new Array(s.length));for(var v=s.length-1;v>=0;--v)h[v]=d*s[v]+p*u[v]+_*l[v]+b*f[v];return h}return d*s+p*u+_*l[v]+b*f}function o(s,u,l,f,c,h){var d=c-1,p=c*c,_=d*d,b=(1+2*c)*_,v=c*_,k=p*(3-2*c),E=p*d;if(s.length){h||(h=new Array(s.length));for(var T=s.length-1;T>=0;--T)h[T]=b*s[T]+v*u[T]+k*l[T]+E*f[T];return h}return b*s+v*u+k*l+E*f}i.exports=o,i.exports.derivative=a},7642:function(i,a,o){"use strict";var s=o(8954),u=o(1682);i.exports=h;function l(d,p){this.point=d,this.index=p}function f(d,p){for(var _=d.point,b=p.point,v=_.length,k=0;k=2)return!1;G[H]=N}return!0}):U=U.filter(function(G){for(var j=0;j<=b;++j){var H=P[G[j]];if(H<0)return!1;G[j]=H}return!0}),b&1)for(var E=0;E>>31},i.exports.exponent=function(k){var E=i.exports.hi(k);return(E<<1>>>21)-1023},i.exports.fraction=function(k){var E=i.exports.lo(k),T=i.exports.hi(k),L=T&(1<<20)-1;return T&2146435072&&(L+=1048576),[E,L]},i.exports.denormalized=function(k){var E=i.exports.hi(k);return!(E&2146435072)}},1338:function(i){"use strict";function a(u,l,f){var c=u[f]|0;if(c<=0)return[];var h=new Array(c),d;if(f===u.length-1)for(d=0;d0)return o(u|0,l);break;case"object":if(typeof u.length=="number")return a(u,l,0);break}return[]}i.exports=s},3134:function(i,a,o){"use strict";i.exports=u;var s=o(1682);function u(l,f){var c=l.length;if(typeof f!="number"){f=0;for(var h=0;h=b-1)for(var C=E.length-1,m=p-_[b-1],M=0;M=b-1)for(var x=E.length-1,C=p-_[b-1],M=0;M=0;--b)if(p[--_])return!1;return!0},c.jump=function(p){var _=this.lastT(),b=this.dimension;if(!(p<_||arguments.length!==b+1)){var v=this._state,k=this._velocity,E=v.length-this.dimension,T=this.bounds,L=T[0],x=T[1];this._time.push(_,p);for(var C=0;C<2;++C)for(var M=0;M0;--M)v.push(l(L[M-1],x[M-1],arguments[M])),k.push(0)}},c.push=function(p){var _=this.lastT(),b=this.dimension;if(!(p<_||arguments.length!==b+1)){var v=this._state,k=this._velocity,E=v.length-this.dimension,T=p-_,L=this.bounds,x=L[0],C=L[1],M=T>1e-6?1/T:0;this._time.push(p);for(var m=b;m>0;--m){var P=l(x[m-1],C[m-1],arguments[m]);v.push(P),k.push((P-v[E++])*M)}}},c.set=function(p){var _=this.dimension;if(!(p0;--L)b.push(l(E[L-1],T[L-1],arguments[L])),v.push(0)}},c.move=function(p){var _=this.lastT(),b=this.dimension;if(!(p<=_||arguments.length!==b+1)){var v=this._state,k=this._velocity,E=v.length-this.dimension,T=this.bounds,L=T[0],x=T[1],C=p-_,M=C>1e-6?1/C:0;this._time.push(p);for(var m=b;m>0;--m){var P=arguments[m];v.push(l(L[m-1],x[m-1],v[E++]+P)),k.push(P*M)}}},c.idle=function(p){var _=this.lastT();if(!(p<_)){var b=this.dimension,v=this._state,k=this._velocity,E=v.length-b,T=this.bounds,L=T[0],x=T[1],C=p-_;this._time.push(p);for(var M=b-1;M>=0;--M)v.push(l(L[M],x[M],v[E]+C*k[E])),k.push(0),E+=1}};function h(p){for(var _=new Array(p),b=0;b=0;--F){var m=P[F];A[F]<=0?P[F]=new s(m._color,m.key,m.value,P[F+1],m.right,m._count+1):P[F]=new s(m._color,m.key,m.value,m.left,P[F+1],m._count+1)}for(var F=P.length-1;F>1;--F){var U=P[F-1],m=P[F];if(U._color===o||m._color===o)break;var G=P[F-2];if(G.left===U)if(U.left===m){var j=G.right;if(j&&j._color===a)U._color=o,G.right=l(o,j),G._color=a,F-=1;else{if(G._color=a,G.left=U.right,U._color=o,U.right=G,P[F-2]=U,P[F-1]=m,f(G),f(U),F>=3){var H=P[F-3];H.left===G?H.left=U:H.right=U}break}}else{var j=G.right;if(j&&j._color===a)U._color=o,G.right=l(o,j),G._color=a,F-=1;else{if(U.right=m.left,G._color=a,G.left=m.right,m._color=o,m.left=U,m.right=G,P[F-2]=m,P[F-1]=U,f(G),f(U),f(m),F>=3){var H=P[F-3];H.left===G?H.left=m:H.right=m}break}}else if(U.right===m){var j=G.left;if(j&&j._color===a)U._color=o,G.left=l(o,j),G._color=a,F-=1;else{if(G._color=a,G.right=U.left,U._color=o,U.left=G,P[F-2]=U,P[F-1]=m,f(G),f(U),F>=3){var H=P[F-3];H.right===G?H.right=U:H.left=U}break}}else{var j=G.left;if(j&&j._color===a)U._color=o,G.left=l(o,j),G._color=a,F-=1;else{if(U.left=m.right,G._color=a,G.right=m.left,m._color=o,m.right=U,m.left=G,P[F-2]=m,P[F-1]=U,f(G),f(U),f(m),F>=3){var H=P[F-3];H.right===G?H.right=m:H.left=m}break}}}return P[0]._color=o,new c(M,P[0])};function d(x,C){if(C.left){var M=d(x,C.left);if(M)return M}var M=x(C.key,C.value);if(M)return M;if(C.right)return d(x,C.right)}function p(x,C,M,m){var P=C(x,m.key);if(P<=0){if(m.left){var A=p(x,C,M,m.left);if(A)return A}var A=M(m.key,m.value);if(A)return A}if(m.right)return p(x,C,M,m.right)}function _(x,C,M,m,P){var A=M(x,P.key),B=M(C,P.key),F;if(A<=0&&(P.left&&(F=_(x,C,M,m,P.left),F)||B>0&&(F=m(P.key,P.value),F)))return F;if(B>0&&P.right)return _(x,C,M,m,P.right)}h.forEach=function(C,M,m){if(this.root)switch(arguments.length){case 1:return d(C,this.root);case 2:return p(M,this._compare,C,this.root);case 3:return this._compare(M,m)>=0?void 0:_(M,m,this._compare,C,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var x=[],C=this.root;C;)x.push(C),C=C.left;return new b(this,x)}}),Object.defineProperty(h,"end",{get:function(){for(var x=[],C=this.root;C;)x.push(C),C=C.right;return new b(this,x)}}),h.at=function(x){if(x<0)return new b(this,[]);for(var C=this.root,M=[];;){if(M.push(C),C.left){if(x=C.right._count)break;C=C.right}else break}return new b(this,[])},h.ge=function(x){for(var C=this._compare,M=this.root,m=[],P=0;M;){var A=C(x,M.key);m.push(M),A<=0&&(P=m.length),A<=0?M=M.left:M=M.right}return m.length=P,new b(this,m)},h.gt=function(x){for(var C=this._compare,M=this.root,m=[],P=0;M;){var A=C(x,M.key);m.push(M),A<0&&(P=m.length),A<0?M=M.left:M=M.right}return m.length=P,new b(this,m)},h.lt=function(x){for(var C=this._compare,M=this.root,m=[],P=0;M;){var A=C(x,M.key);m.push(M),A>0&&(P=m.length),A<=0?M=M.left:M=M.right}return m.length=P,new b(this,m)},h.le=function(x){for(var C=this._compare,M=this.root,m=[],P=0;M;){var A=C(x,M.key);m.push(M),A>=0&&(P=m.length),A<0?M=M.left:M=M.right}return m.length=P,new b(this,m)},h.find=function(x){for(var C=this._compare,M=this.root,m=[];M;){var P=C(x,M.key);if(m.push(M),P===0)return new b(this,m);P<=0?M=M.left:M=M.right}return new b(this,[])},h.remove=function(x){var C=this.find(x);return C?C.remove():this},h.get=function(x){for(var C=this._compare,M=this.root;M;){var m=C(x,M.key);if(m===0)return M.value;m<=0?M=M.left:M=M.right}};function b(x,C){this.tree=x,this._stack=C}var v=b.prototype;Object.defineProperty(v,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(v,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),v.clone=function(){return new b(this.tree,this._stack.slice())};function k(x,C){x.key=C.key,x.value=C.value,x.left=C.left,x.right=C.right,x._color=C._color,x._count=C._count}function E(x){for(var C,M,m,P,A=x.length-1;A>=0;--A){if(C=x[A],A===0){C._color=o;return}if(M=x[A-1],M.left===C){if(m=M.right,m.right&&m.right._color===a){if(m=M.right=u(m),P=m.right=u(m.right),M.right=m.left,m.left=M,m.right=P,m._color=M._color,C._color=o,M._color=o,P._color=o,f(M),f(m),A>1){var B=x[A-2];B.left===M?B.left=m:B.right=m}x[A-1]=m;return}else if(m.left&&m.left._color===a){if(m=M.right=u(m),P=m.left=u(m.left),M.right=P.left,m.left=P.right,P.left=M,P.right=m,P._color=M._color,M._color=o,m._color=o,C._color=o,f(M),f(m),f(P),A>1){var B=x[A-2];B.left===M?B.left=P:B.right=P}x[A-1]=P;return}if(m._color===o)if(M._color===a){M._color=o,M.right=l(a,m);return}else{M.right=l(a,m);continue}else{if(m=u(m),M.right=m.left,m.left=M,m._color=M._color,M._color=a,f(M),f(m),A>1){var B=x[A-2];B.left===M?B.left=m:B.right=m}x[A-1]=m,x[A]=M,A+11){var B=x[A-2];B.right===M?B.right=m:B.left=m}x[A-1]=m;return}else if(m.right&&m.right._color===a){if(m=M.left=u(m),P=m.right=u(m.right),M.left=P.right,m.right=P.left,P.right=M,P.left=m,P._color=M._color,M._color=o,m._color=o,C._color=o,f(M),f(m),f(P),A>1){var B=x[A-2];B.right===M?B.right=P:B.left=P}x[A-1]=P;return}if(m._color===o)if(M._color===a){M._color=o,M.left=l(a,m);return}else{M.left=l(a,m);continue}else{if(m=u(m),M.left=m.right,m.right=M,m._color=M._color,M._color=a,f(M),f(m),A>1){var B=x[A-2];B.right===M?B.right=m:B.left=m}x[A-1]=m,x[A]=M,A+1=0;--m){var M=x[m];M.left===x[m+1]?C[m]=new s(M._color,M.key,M.value,C[m+1],M.right,M._count):C[m]=new s(M._color,M.key,M.value,M.left,C[m+1],M._count)}if(M=C[C.length-1],M.left&&M.right){var P=C.length;for(M=M.left;M.right;)C.push(M),M=M.right;var A=C[P-1];C.push(new s(M._color,A.key,A.value,M.left,M.right,M._count)),C[P-1].key=M.key,C[P-1].value=M.value;for(var m=C.length-2;m>=P;--m)M=C[m],C[m]=new s(M._color,M.key,M.value,M.left,C[m+1],M._count);C[P-1].left=C[P]}if(M=C[C.length-1],M._color===a){var B=C[C.length-2];B.left===M?B.left=null:B.right===M&&(B.right=null),C.pop();for(var m=0;m0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(v,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(v,"index",{get:function(){var x=0,C=this._stack;if(C.length===0){var M=this.tree.root;return M?M._count:0}else C[C.length-1].left&&(x=C[C.length-1].left._count);for(var m=C.length-2;m>=0;--m)C[m+1]===C[m].right&&(++x,C[m].left&&(x+=C[m].left._count));return x},enumerable:!0}),v.next=function(){var x=this._stack;if(x.length!==0){var C=x[x.length-1];if(C.right)for(C=C.right;C;)x.push(C),C=C.left;else for(x.pop();x.length>0&&x[x.length-1].right===C;)C=x[x.length-1],x.pop()}},Object.defineProperty(v,"hasNext",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].right)return!0;for(var C=x.length-1;C>0;--C)if(x[C-1].left===x[C])return!0;return!1}}),v.update=function(x){var C=this._stack;if(C.length===0)throw new Error("Can't update empty node!");var M=new Array(C.length),m=C[C.length-1];M[M.length-1]=new s(m._color,m.key,x,m.left,m.right,m._count);for(var P=C.length-2;P>=0;--P)m=C[P],m.left===C[P+1]?M[P]=new s(m._color,m.key,m.value,M[P+1],m.right,m._count):M[P]=new s(m._color,m.key,m.value,m.left,M[P+1],m._count);return new c(this.tree._compare,M[0])},v.prev=function(){var x=this._stack;if(x.length!==0){var C=x[x.length-1];if(C.left)for(C=C.left;C;)x.push(C),C=C.right;else for(x.pop();x.length>0&&x[x.length-1].left===C;)C=x[x.length-1],x.pop()}},Object.defineProperty(v,"hasPrev",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].left)return!0;for(var C=x.length-1;C>0;--C)if(x[C-1].right===x[C])return!0;return!1}});function T(x,C){return xC?1:0}function L(x){return new c(x||T,null)}},3837:function(i,a,o){"use strict";i.exports=F;var s=o(4935),u=o(501),l=o(5304),f=o(6429),c=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=ArrayBuffer,p=DataView;function _(U){return d.isView(U)&&!(U instanceof p)}function b(U){return Array.isArray(U)||_(U)}function v(U,G){return U[0]=G[0],U[1]=G[1],U[2]=G[2],U}function k(U){this.gl=U,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=l(U)}var E=k.prototype;E.update=function(U){U=U||{};function G(Me,Ne,Fe){if(Fe in U){var ye=U[Fe],Ve=this[Fe],ce;(Me?b(ye)&&b(ye[0]):b(ye))?this[Fe]=ce=[Ne(ye[0]),Ne(ye[1]),Ne(ye[2])]:this[Fe]=ce=[Ne(ye),Ne(ye),Ne(ye)];for(var Ke=0;Ke<3;++Ke)if(ce[Ke]!==Ve[Ke])return!0}return!1}var j=G.bind(this,!1,Number),H=G.bind(this,!1,Boolean),N=G.bind(this,!1,String),W=G.bind(this,!0,function(Me){if(b(Me)){if(Me.length===3)return[+Me[0],+Me[1],+Me[2],1];if(Me.length===4)return[+Me[0],+Me[1],+Me[2],+Me[3]]}return[0,0,0,1]}),re,ae=!1,be=!1;if("bounds"in U)for(var Pe=U.bounds,Ce=0;Ce<2;++Ce)for(var de=0;de<3;++de)Pe[Ce][de]!==this.bounds[Ce][de]&&(be=!0),this.bounds[Ce][de]=Pe[Ce][de];if("ticks"in U){re=U.ticks,ae=!0,this.autoTicks=!1;for(var Ce=0;Ce<3;++Ce)this.tickSpacing[Ce]=0}else j("tickSpacing")&&(this.autoTicks=!0,be=!0);if(this._firstInit&&("ticks"in U||"tickSpacing"in U||(this.autoTicks=!0),be=!0,ae=!0,this._firstInit=!1),be&&this.autoTicks&&(re=c.create(this.bounds,this.tickSpacing),ae=!0),ae){for(var Ce=0;Ce<3;++Ce)re[Ce].sort(function(Ne,Fe){return Ne.x-Fe.x});c.equal(re,this.ticks)?ae=!1:this.ticks=re}H("tickEnable"),N("tickFont")&&(ae=!0),N("tickFontStyle")&&(ae=!0),N("tickFontWeight")&&(ae=!0),N("tickFontVariant")&&(ae=!0),j("tickSize"),j("tickAngle"),j("tickPad"),W("tickColor");var te=N("labels");N("labelFont")&&(te=!0),N("labelFontStyle")&&(te=!0),N("labelFontWeight")&&(te=!0),N("labelFontVariant")&&(te=!0),H("labelEnable"),j("labelSize"),j("labelPad"),W("labelColor"),H("lineEnable"),H("lineMirror"),j("lineWidth"),W("lineColor"),H("lineTickEnable"),H("lineTickMirror"),j("lineTickLength"),j("lineTickWidth"),W("lineTickColor"),H("gridEnable"),j("gridWidth"),W("gridColor"),H("zeroEnable"),W("zeroLineColor"),j("zeroLineWidth"),H("backgroundEnable"),W("backgroundColor");var ke=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],Ee=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(te||ae)&&this._text.update(this.bounds,this.labels,ke,this.ticks,Ee):this._text=s(this.gl,this.bounds,this.labels,ke,this.ticks,Ee),this._lines&&ae&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function T(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var L=[new T,new T,new T];function x(U,G,j,H,N){for(var W=U.primalOffset,re=U.primalMinor,ae=U.mirrorOffset,be=U.mirrorMinor,Pe=H[G],Ce=0;Ce<3;++Ce)if(G!==Ce){var de=W,te=ae,ke=re,Ee=be;Pe&1<0?(ke[Ce]=-1,Ee[Ce]=0):(ke[Ce]=0,Ee[Ce]=1)}}var C=[0,0,0],M={model:h,view:h,projection:h,_ortho:!1};E.isOpaque=function(){return!0},E.isTransparent=function(){return!1},E.drawTransparent=function(U){};var m=0,P=[0,0,0],A=[0,0,0],B=[0,0,0];E.draw=function(U){U=U||M;for(var Fe=this.gl,G=U.model||h,j=U.view||h,H=U.projection||h,N=this.bounds,W=U._ortho||!1,re=f(G,j,H,N,W),ae=re.cubeEdges,be=re.axis,Pe=j[12],Ce=j[13],de=j[14],te=j[15],ke=W?2:1,Ee=ke*this.pixelRatio*(H[3]*Pe+H[7]*Ce+H[11]*de+H[15]*te)/Fe.drawingBufferHeight,Me=0;Me<3;++Me)this.lastCubeProps.cubeEdges[Me]=ae[Me],this.lastCubeProps.axis[Me]=be[Me];for(var Ne=L,Me=0;Me<3;++Me)x(L[Me],Me,this.bounds,ae,be);for(var Fe=this.gl,ye=C,Me=0;Me<3;++Me)this.backgroundEnable[Me]?ye[Me]=be[Me]:ye[Me]=0;this._background.draw(G,j,H,N,ye,this.backgroundColor),this._lines.bind(G,j,H,this);for(var Me=0;Me<3;++Me){var Ve=[0,0,0];be[Me]>0?Ve[Me]=N[1][Me]:Ve[Me]=N[0][Me];for(var ce=0;ce<2;++ce){var Ke=(Me+1+ce)%3,nt=(Me+1+(ce^1))%3;this.gridEnable[Ke]&&this._lines.drawGrid(Ke,nt,this.bounds,Ve,this.gridColor[Ke],this.gridWidth[Ke]*this.pixelRatio)}for(var ce=0;ce<2;++ce){var Ke=(Me+1+ce)%3,nt=(Me+1+(ce^1))%3;this.zeroEnable[nt]&&Math.min(N[0][nt],N[1][nt])<=0&&Math.max(N[0][nt],N[1][nt])>=0&&this._lines.drawZero(Ke,nt,this.bounds,Ve,this.zeroLineColor[nt],this.zeroLineWidth[nt]*this.pixelRatio)}}for(var Me=0;Me<3;++Me){this.lineEnable[Me]&&this._lines.drawAxisLine(Me,this.bounds,Ne[Me].primalOffset,this.lineColor[Me],this.lineWidth[Me]*this.pixelRatio),this.lineMirror[Me]&&this._lines.drawAxisLine(Me,this.bounds,Ne[Me].mirrorOffset,this.lineColor[Me],this.lineWidth[Me]*this.pixelRatio);for(var gt=v(P,Ne[Me].primalMinor),Nt=v(A,Ne[Me].mirrorMinor),it=this.lineTickLength,ce=0;ce<3;++ce){var Ye=Ee/G[5*ce];gt[ce]*=it[ce]*Ye,Nt[ce]*=it[ce]*Ye}this.lineTickEnable[Me]&&this._lines.drawAxisTicks(Me,Ne[Me].primalOffset,gt,this.lineTickColor[Me],this.lineTickWidth[Me]*this.pixelRatio),this.lineTickMirror[Me]&&this._lines.drawAxisTicks(Me,Ne[Me].mirrorOffset,Nt,this.lineTickColor[Me],this.lineTickWidth[Me]*this.pixelRatio)}this._lines.unbind(),this._text.bind(G,j,H,this.pixelRatio);var kt,Tt=.5,St,Rt;function Zt(st){Rt=[0,0,0],Rt[st]=1}function Et(st,Ue,rt){var $e=(st+1)%3,zt=(st+2)%3,Yt=Ue[$e],hr=Ue[zt],yr=rt[$e],br=rt[zt];if(Yt>0&&br>0){Zt($e);return}else if(Yt>0&&br<0){Zt($e);return}else if(Yt<0&&br>0){Zt($e);return}else if(Yt<0&&br<0){Zt($e);return}else if(hr>0&&yr>0){Zt(zt);return}else if(hr>0&&yr<0){Zt(zt);return}else if(hr<0&&yr>0){Zt(zt);return}else if(hr<0&&yr<0){Zt(zt);return}}for(var Me=0;Me<3;++Me){for(var Ae=Ne[Me].primalMinor,at=Ne[Me].mirrorMinor,wt=v(B,Ne[Me].primalOffset),ce=0;ce<3;++ce)this.lineTickEnable[Me]&&(wt[ce]+=Ee*Ae[ce]*Math.max(this.lineTickLength[ce],0)/G[5*ce]);var vt=[0,0,0];if(vt[Me]=1,this.tickEnable[Me]){this.tickAngle[Me]===-3600?(this.tickAngle[Me]=0,this.tickAlign[Me]="auto"):this.tickAlign[Me]=-1,St=1,kt=[this.tickAlign[Me],Tt,St],kt[0]==="auto"?kt[0]=m:kt[0]=parseInt(""+kt[0]),Rt=[0,0,0],Et(Me,Ae,at);for(var ce=0;ce<3;++ce)wt[ce]+=Ee*Ae[ce]*this.tickPad[ce]/G[5*ce];this._text.drawTicks(Me,this.tickSize[Me],this.tickAngle[Me],wt,this.tickColor[Me],vt,Rt,kt)}if(this.labelEnable[Me]){St=0,Rt=[0,0,0],this.labels[Me].length>4&&(Zt(Me),St=1),kt=[this.labelAlign[Me],Tt,St],kt[0]==="auto"?kt[0]=m:kt[0]=parseInt(""+kt[0]);for(var ce=0;ce<3;++ce)wt[ce]+=Ee*Ae[ce]*this.labelPad[ce]/G[5*ce];wt[Me]+=.5*(N[0][Me]+N[1][Me]),this._text.drawLabel(Me,this.labelSize[Me],this.labelAngle[Me],wt,this.labelColor[Me],[0,0,0],Rt,kt)}}this._text.unbind()},E.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function F(U,G){var j=new k(U);return j.update(G),j}},5304:function(i,a,o){"use strict";i.exports=h;var s=o(2762),u=o(8116),l=o(1879).bg;function f(d,p,_,b){this.gl=d,this.buffer=p,this.vao=_,this.shader=b}var c=f.prototype;c.draw=function(d,p,_,b,v,k){for(var E=!1,T=0;T<3;++T)E=E||v[T];if(E){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:p,projection:_,bounds:b,enable:v,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},c.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var p=[],_=[],b=0,v=0;v<3;++v)for(var k=(v+1)%3,E=(v+2)%3,T=[0,0,0],L=[0,0,0],x=-1;x<=1;x+=2){_.push(b,b+2,b+1,b+1,b+2,b+3),T[v]=x,L[v]=x;for(var C=-1;C<=1;C+=2){T[k]=C;for(var M=-1;M<=1;M+=2)T[E]=M,p.push(T[0],T[1],T[2],L[0],L[1],L[2]),b+=1}var m=k;k=E,E=m}var P=s(d,new Float32Array(p)),A=s(d,new Uint16Array(_),d.ELEMENT_ARRAY_BUFFER),B=u(d,[{buffer:P,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:P,type:d.FLOAT,size:3,offset:12,stride:24}],A),F=l(d);return F.attributes.position.location=0,F.attributes.normal.location=1,new f(d,P,B,F)}},6429:function(i,a,o){"use strict";i.exports=x;var s=o(8828),u=o(6760),l=o(5202),f=o(3250),c=new Array(16),h=new Array(8),d=new Array(8),p=new Array(3),_=[0,0,0];(function(){for(var C=0;C<8;++C)h[C]=[1,1,1,1],d[C]=[1,1,1]})();function b(C,M,m){for(var P=0;P<4;++P){C[P]=m[12+P];for(var A=0;A<3;++A)C[P]+=M[A]*m[4*A+P]}}var v=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function k(C){for(var M=0;Mbe&&(j|=1<be){j|=1<d[F][1])&&(Ne=F);for(var Fe=-1,F=0;F<3;++F){var ye=Ne^1<d[Ve][0]&&(Ve=ye)}}var ce=E;ce[0]=ce[1]=ce[2]=0,ce[s.log2(Fe^Ne)]=Ne&Fe,ce[s.log2(Ne^Ve)]=Ne&Ve;var Ke=Ve^7;Ke===j||Ke===Me?(Ke=Fe^7,ce[s.log2(Ve^Ke)]=Ke&Ve):ce[s.log2(Fe^Ke)]=Ke&Fe;for(var nt=T,gt=j,W=0;W<3;++W)gt&1<=0;--ce){var Ye=Me[Ve[ce]];M.push(Ee*Ye[0],-Ee*Ye[1],W)}}for(var P=[0,0,0],A=[0,0,0],B=[0,0,0],F=[0,0,0],U=1.25,G={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},j=0;j<3;++j){B[j]=M.length/d|0,m(.5*(E[0][j]+E[1][j]),T[j],L[j],12,U,G),F[j]=(M.length/d|0)-B[j],P[j]=M.length/d|0;for(var H=0;H<_[j].length;++H)if(_[j][H].text){var N={family:_[j][H].font||C[j].family,style:C[j].fontStyle||C[j].style,weight:C[j].fontWeight||C[j].weight,variant:C[j].fontVariant||C[j].variant};m(_[j][H].x,_[j][H].text,N,_[j][H].fontSize||12,U,G)}A[j]=(M.length/d|0)-P[j]}this.buffer.update(M),this.tickOffset=P,this.tickCount=A,this.labelOffset=B,this.labelCount=F},x.drawTicks=function(E,T,L,_,C,M,m,P){this.tickCount[E]&&(this.shader.uniforms.axis=M,this.shader.uniforms.color=C,this.shader.uniforms.angle=L,this.shader.uniforms.scale=T,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=m,this.shader.uniforms.alignOpt=P,this.vao.draw(this.gl.TRIANGLES,this.tickCount[E],this.tickOffset[E]))},x.drawLabel=function(E,T,L,_,C,M,m,P){this.labelCount[E]&&(this.shader.uniforms.axis=M,this.shader.uniforms.color=C,this.shader.uniforms.angle=L,this.shader.uniforms.scale=T,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=m,this.shader.uniforms.alignOpt=P,this.vao.draw(this.gl.TRIANGLES,this.labelCount[E],this.labelOffset[E]))},x.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()};function v(E,T){try{return l(E,T)}catch(L){return console.warn('error vectorizing text:"'+E+'" error:',L),{cells:[],positions:[]}}}function k(E,T,L,_,C,M){var m=s(E),P=u(E,[{buffer:m,size:3}]),A=f(E);A.attributes.position.location=0;var B=new p(E,A,m,P);return B.update(T,L,_,C,M),B}},6444:function(i,a){"use strict";a.create=s,a.equal=u;function o(l,f){var c=l+"",h=c.indexOf("."),d=0;h>=0&&(d=c.length-h-1);var p=Math.pow(10,d),x=Math.round(l*f*p),b=x+"";if(b.indexOf("e")>=0)return b;var v=x/p,k=x%p;x<0?(v=-Math.ceil(v)|0,k=-k|0):(v=Math.floor(v)|0,k=k|0);var E=""+v;if(x<0&&(E="-"+E),d){for(var T=""+k;T.length=l[0][h];--x)d.push({x:x*f[h],text:o(f[h],x)});c.push(d)}return c}function u(l,f){for(var c=0;c<3;++c){if(l[c].length!==f[c].length)return!1;for(var h=0;hE)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return v.bufferSubData(k,_,L),E}function p(v,k){for(var E=s.malloc(v.length,k),T=v.length,L=0;L=0;--T){if(k[T]!==E)return!1;E*=v[T]}return!0}h.update=function(v,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof v=="object"&&typeof v.shape!="undefined"){var E=v.dtype;if(f.indexOf(E)<0&&(E="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var T=gl.getExtension("OES_element_index_uint");T&&E!=="uint16"?E="uint32":E="uint16"}if(E===v.dtype&&x(v.shape,v.stride))v.offset===0&&v.data.length===v.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,v.data,k):this.length=d(this.gl,this.type,this.length,this.usage,v.data.subarray(v.offset,v.shape[0]),k);else{var L=s.malloc(v.size,E),_=l(L,v.shape);u.assign(_,v),k<0?this.length=d(this.gl,this.type,this.length,this.usage,L,k):this.length=d(this.gl,this.type,this.length,this.usage,L.subarray(0,v.size),k),s.free(L)}}else if(Array.isArray(v)){var C;this.type===this.gl.ELEMENT_ARRAY_BUFFER?C=p(v,"uint16"):C=p(v,"float32"),k<0?this.length=d(this.gl,this.type,this.length,this.usage,C,k):this.length=d(this.gl,this.type,this.length,this.usage,C.subarray(0,v.length),k),s.free(C)}else if(typeof v=="object"&&typeof v.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,v,k);else if(typeof v=="number"||v===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");v=v|0,v<=0&&(v=1),this.gl.bufferData(this.type,v|0,this.usage),this.length=v}else throw new Error("gl-buffer: Invalid data type")};function b(v,k,E,T){if(E=E||v.ARRAY_BUFFER,T=T||v.DYNAMIC_DRAW,E!==v.ARRAY_BUFFER&&E!==v.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(T!==v.DYNAMIC_DRAW&&T!==v.STATIC_DRAW&&T!==v.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var L=v.createBuffer(),_=new c(v,E,L,0,T);return _.update(k),_}i.exports=b},6405:function(i,a,o){"use strict";var s=o(2931);i.exports=function(l,f){var c=l.positions,h=l.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:l.vertexIntensityBounds,vectors:[],cells:[],coneOffset:l.coneOffset,colormap:l.colormap};if(l.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),d;for(var p=0,x=1/0,b=-1/0,v=1/0,k=-1/0,E=1/0,T=-1/0,L=null,_=null,C=[],M=1/0,m=!1,P=l.coneSizemode==="raw",A=0;Ap&&(p=s.length(F)),A&&!P){var U=2*s.distance(L,B)/(s.length(_)+s.length(F));U?(M=Math.min(M,U),m=!1):m=!0}m||(L=B,_=F),C.push(F)}var G=[x,v,E],j=[b,k,T];f&&(f[0]=G,f[1]=j),p===0&&(p=1);var H=1/p;isFinite(M)||(M=1),d.vectorScale=M;var N=l.coneSize||(P?1:.5);l.absoluteConeSize&&(N=l.absoluteConeSize*H),d.coneScale=N;for(var A=0,W=0;A=1},v.isTransparent=function(){return this.opacity<1},v.pickSlots=1,v.setPickBase=function(C){this.pickId=C};function k(C){for(var M=p({colormap:C,nshades:256,format:"rgba"}),m=new Uint8Array(256*4),P=0;P<256;++P){for(var A=M[P],B=0;B<3;++B)m[4*P+B]=A[B];m[4*P+3]=A[3]*255}return d(m,[256,256,4],[4,0,1])}function E(C){for(var M=C.length,m=new Array(M),P=0;P0){var W=this.triShader;W.bind(),W.uniforms=U,this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},v.drawPick=function(C){C=C||{};for(var M=this.gl,m=C.model||x,P=C.view||x,A=C.projection||x,B=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],F=0;F<3;++F)B[0][F]=Math.max(B[0][F],this.clipBounds[0][F]),B[1][F]=Math.min(B[1][F],this.clipBounds[1][F]);this._model=[].slice.call(m),this._view=[].slice.call(P),this._projection=[].slice.call(A),this._resolution=[M.drawingBufferWidth,M.drawingBufferHeight];var U={model:m,view:P,projection:A,clipBounds:B,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},G=this.pickShader;G.bind(),G.uniforms=U,this.triangleCount>0&&(this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},v.pick=function(C){if(!C||C.id!==this.pickId)return null;var M=C.value[0]+256*C.value[1]+65536*C.value[2],m=this.cells[M],P=this.positions[m[1]].slice(0,3),A={position:P,dataCoordinate:P,index:Math.floor(m[1]/48)};return this.traceType==="cone"?A.index=Math.floor(m[1]/48):this.traceType==="streamtube"&&(A.intensity=this.intensity[m[1]],A.velocity=this.vectors[m[1]].slice(0,3),A.divergence=this.vectors[m[1]][3],A.index=M),A},v.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function T(C,M){var m=s(C,M.meshShader.vertex,M.meshShader.fragment,null,M.meshShader.attributes);return m.attributes.position.location=0,m.attributes.color.location=2,m.attributes.uv.location=3,m.attributes.vector.location=4,m}function L(C,M){var m=s(C,M.pickShader.vertex,M.pickShader.fragment,null,M.pickShader.attributes);return m.attributes.position.location=0,m.attributes.id.location=1,m.attributes.vector.location=4,m}function _(C,M,m){var P=m.shaders;arguments.length===1&&(M=C,C=M.gl);var A=T(C,P),B=L(C,P),F=f(C,d(new Uint8Array([255,255,255,255]),[1,1,4]));F.generateMipmap(),F.minFilter=C.LINEAR_MIPMAP_LINEAR,F.magFilter=C.LINEAR;var U=u(C),G=u(C),j=u(C),H=u(C),N=u(C),W=l(C,[{buffer:U,type:C.FLOAT,size:4},{buffer:N,type:C.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:j,type:C.FLOAT,size:4},{buffer:H,type:C.FLOAT,size:2},{buffer:G,type:C.FLOAT,size:4}]),re=new b(C,F,A,B,U,G,N,j,H,W,m.traceType||"cone");return re.update(M),re}i.exports=_},614:function(i,a,o){var s=o(3236),u=s([`precision highp float; +}`]);a.bg=function(_){return u(_,d,p,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935:function(i,a,o){"use strict";i.exports=k;var s=o(2762),u=o(8116),l=o(4359),f=o(1879).Q,c=window||process.global||{},h=c.__TEXT_CACHE||{};c.__TEXT_CACHE={};var d=3;function p(E,T,L,x){this.gl=E,this.shader=T,this.buffer=L,this.vao=x,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var _=p.prototype,b=[0,0];_.bind=function(E,T,L,x){this.vao.bind(),this.shader.bind();var C=this.shader.uniforms;C.model=E,C.view=T,C.projection=L,C.pixelScale=x,b[0]=this.gl.drawingBufferWidth,b[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=b},_.unbind=function(){this.vao.unbind()},_.update=function(E,T,L,x,C){var M=[];function m(W,re,ae,be,Pe,Ce){var de=[ae.style,ae.weight,ae.variant,ae.family].join("_"),te=h[de];te||(te=h[de]={});var ke=te[re];ke||(ke=te[re]=v(re,{triangles:!0,font:ae.family,fontStyle:ae.style,fontWeight:ae.weight,fontVariant:ae.variant,textAlign:"center",textBaseline:"middle",lineSpacing:Pe,styletags:Ce}));for(var Ee=(be||12)/12,Me=ke.positions,Ne=ke.cells,Fe=0,ye=Ne.length;Fe=0;--ce){var Ke=Me[Ve[ce]];M.push(Ee*Ke[0],-Ee*Ke[1],W)}}for(var P=[0,0,0],A=[0,0,0],B=[0,0,0],F=[0,0,0],U=1.25,G={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},j=0;j<3;++j){B[j]=M.length/d|0,m(.5*(E[0][j]+E[1][j]),T[j],L[j],12,U,G),F[j]=(M.length/d|0)-B[j],P[j]=M.length/d|0;for(var H=0;H=0&&(d=c.length-h-1);var p=Math.pow(10,d),_=Math.round(l*f*p),b=_+"";if(b.indexOf("e")>=0)return b;var v=_/p,k=_%p;_<0?(v=-Math.ceil(v)|0,k=-k|0):(v=Math.floor(v)|0,k=k|0);var E=""+v;if(_<0&&(E="-"+E),d){for(var T=""+k;T.length=l[0][h];--_)d.push({x:_*f[h],text:o(f[h],_)});c.push(d)}return c}function u(l,f){for(var c=0;c<3;++c){if(l[c].length!==f[c].length)return!1;for(var h=0;hE)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return v.bufferSubData(k,x,L),E}function p(v,k){for(var E=s.malloc(v.length,k),T=v.length,L=0;L=0;--T){if(k[T]!==E)return!1;E*=v[T]}return!0}h.update=function(v,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof v=="object"&&typeof v.shape!="undefined"){var E=v.dtype;if(f.indexOf(E)<0&&(E="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var T=gl.getExtension("OES_element_index_uint");T&&E!=="uint16"?E="uint32":E="uint16"}if(E===v.dtype&&_(v.shape,v.stride))v.offset===0&&v.data.length===v.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,v.data,k):this.length=d(this.gl,this.type,this.length,this.usage,v.data.subarray(v.offset,v.shape[0]),k);else{var L=s.malloc(v.size,E),x=l(L,v.shape);u.assign(x,v),k<0?this.length=d(this.gl,this.type,this.length,this.usage,L,k):this.length=d(this.gl,this.type,this.length,this.usage,L.subarray(0,v.size),k),s.free(L)}}else if(Array.isArray(v)){var C;this.type===this.gl.ELEMENT_ARRAY_BUFFER?C=p(v,"uint16"):C=p(v,"float32"),k<0?this.length=d(this.gl,this.type,this.length,this.usage,C,k):this.length=d(this.gl,this.type,this.length,this.usage,C.subarray(0,v.length),k),s.free(C)}else if(typeof v=="object"&&typeof v.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,v,k);else if(typeof v=="number"||v===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");v=v|0,v<=0&&(v=1),this.gl.bufferData(this.type,v|0,this.usage),this.length=v}else throw new Error("gl-buffer: Invalid data type")};function b(v,k,E,T){if(E=E||v.ARRAY_BUFFER,T=T||v.DYNAMIC_DRAW,E!==v.ARRAY_BUFFER&&E!==v.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(T!==v.DYNAMIC_DRAW&&T!==v.STATIC_DRAW&&T!==v.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var L=v.createBuffer(),x=new c(v,E,L,0,T);return x.update(k),x}i.exports=b},6405:function(i,a,o){"use strict";var s=o(2931);i.exports=function(l,f){var c=l.positions,h=l.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:l.vertexIntensityBounds,vectors:[],cells:[],coneOffset:l.coneOffset,colormap:l.colormap};if(l.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),d;for(var p=0,_=1/0,b=-1/0,v=1/0,k=-1/0,E=1/0,T=-1/0,L=null,x=null,C=[],M=1/0,m=!1,P=l.coneSizemode==="raw",A=0;Ap&&(p=s.length(F)),A&&!P){var U=2*s.distance(L,B)/(s.length(x)+s.length(F));U?(M=Math.min(M,U),m=!1):m=!0}m||(L=B,x=F),C.push(F)}var G=[_,v,E],j=[b,k,T];f&&(f[0]=G,f[1]=j),p===0&&(p=1);var H=1/p;isFinite(M)||(M=1),d.vectorScale=M;var N=l.coneSize||(P?1:.5);l.absoluteConeSize&&(N=l.absoluteConeSize*H),d.coneScale=N;for(var A=0,W=0;A=1},v.isTransparent=function(){return this.opacity<1},v.pickSlots=1,v.setPickBase=function(C){this.pickId=C};function k(C){for(var M=p({colormap:C,nshades:256,format:"rgba"}),m=new Uint8Array(256*4),P=0;P<256;++P){for(var A=M[P],B=0;B<3;++B)m[4*P+B]=A[B];m[4*P+3]=A[3]*255}return d(m,[256,256,4],[4,0,1])}function E(C){for(var M=C.length,m=new Array(M),P=0;P0){var W=this.triShader;W.bind(),W.uniforms=U,this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},v.drawPick=function(C){C=C||{};for(var M=this.gl,m=C.model||_,P=C.view||_,A=C.projection||_,B=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],F=0;F<3;++F)B[0][F]=Math.max(B[0][F],this.clipBounds[0][F]),B[1][F]=Math.min(B[1][F],this.clipBounds[1][F]);this._model=[].slice.call(m),this._view=[].slice.call(P),this._projection=[].slice.call(A),this._resolution=[M.drawingBufferWidth,M.drawingBufferHeight];var U={model:m,view:P,projection:A,clipBounds:B,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},G=this.pickShader;G.bind(),G.uniforms=U,this.triangleCount>0&&(this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},v.pick=function(C){if(!C||C.id!==this.pickId)return null;var M=C.value[0]+256*C.value[1]+65536*C.value[2],m=this.cells[M],P=this.positions[m[1]].slice(0,3),A={position:P,dataCoordinate:P,index:Math.floor(m[1]/48)};return this.traceType==="cone"?A.index=Math.floor(m[1]/48):this.traceType==="streamtube"&&(A.intensity=this.intensity[m[1]],A.velocity=this.vectors[m[1]].slice(0,3),A.divergence=this.vectors[m[1]][3],A.index=M),A},v.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function T(C,M){var m=s(C,M.meshShader.vertex,M.meshShader.fragment,null,M.meshShader.attributes);return m.attributes.position.location=0,m.attributes.color.location=2,m.attributes.uv.location=3,m.attributes.vector.location=4,m}function L(C,M){var m=s(C,M.pickShader.vertex,M.pickShader.fragment,null,M.pickShader.attributes);return m.attributes.position.location=0,m.attributes.id.location=1,m.attributes.vector.location=4,m}function x(C,M,m){var P=m.shaders;arguments.length===1&&(M=C,C=M.gl);var A=T(C,P),B=L(C,P),F=f(C,d(new Uint8Array([255,255,255,255]),[1,1,4]));F.generateMipmap(),F.minFilter=C.LINEAR_MIPMAP_LINEAR,F.magFilter=C.LINEAR;var U=u(C),G=u(C),j=u(C),H=u(C),N=u(C),W=l(C,[{buffer:U,type:C.FLOAT,size:4},{buffer:N,type:C.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:j,type:C.FLOAT,size:4},{buffer:H,type:C.FLOAT,size:2},{buffer:G,type:C.FLOAT,size:4}]),re=new b(C,F,A,B,U,G,N,j,H,W,m.traceType||"cone");return re.update(M),re}i.exports=x},614:function(i,a,o){var s=o(3236),u=s([`precision highp float; precision highp float; #define GLSLIFY 1 @@ -653,7 +653,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; gl_FragColor = vec4(pickId, f_id.xyz); -}`]);a.meshShader={vertex:u,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},a.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(i){i.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(i,a,o){var s=o(737);i.exports=function(l){return s[l]}},9165:function(i,a,o){"use strict";i.exports=b;var s=o(2762),u=o(8116),l=o(3436),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function c(v,k,E,T){this.gl=v,this.shader=T,this.buffer=k,this.vao=E,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var h=c.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(v){var k=this.gl,E=this.shader.uniforms;this.shader.bind();var T=E.view=v.view||f,L=E.projection=v.projection||f;E.model=v.model||f,E.clipBounds=this.clipBounds,E.opacity=this.opacity;var _=T[12],C=T[13],M=T[14],m=T[15],P=v._ortho||!1,A=P?2:1,B=A*this.pixelRatio*(L[3]*_+L[7]*C+L[11]*M+L[15]*m)/k.drawingBufferHeight;this.vao.bind();for(var F=0;F<3;++F)k.lineWidth(this.lineWidth[F]*this.pixelRatio),E.capSize=this.capSize[F]*B,this.lineCount[F]&&k.drawArrays(k.LINES,this.lineOffset[F],this.lineCount[F]);this.vao.unbind()};function d(v,k){for(var E=0;E<3;++E)v[0][E]=Math.min(v[0][E],k[E]),v[1][E]=Math.max(v[1][E],k[E])}var p=function(){for(var v=new Array(3),k=0;k<3;++k){for(var E=[],T=1;T<=2;++T)for(var L=-1;L<=1;L+=2){var _=(T+k)%3,C=[0,0,0];C[_]=L,E.push(C)}v[k]=E}return v}();function x(v,k,E,T){for(var L=p[T],_=0;_0){var U=P.slice();U[M]+=B[1][M],L.push(P[0],P[1],P[2],F[0],F[1],F[2],F[3],0,0,0,U[0],U[1],U[2],F[0],F[1],F[2],F[3],0,0,0),d(this.bounds,U),C+=2+x(L,U,F,M)}}}this.lineCount[M]=C-this.lineOffset[M]}this.buffer.update(L)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function b(v){var k=v.gl,E=s(k),T=u(k,[{buffer:E,type:k.FLOAT,size:3,offset:0,stride:40},{buffer:E,type:k.FLOAT,size:4,offset:12,stride:40},{buffer:E,type:k.FLOAT,size:3,offset:28,stride:40}]),L=l(k);L.attributes.position.location=0,L.attributes.color.location=1,L.attributes.offset.location=2;var _=new c(k,E,T,L);return _.update(v),_}},3436:function(i,a,o){"use strict";var s=o(3236),u=o(9405),l=s([`precision highp float; +}`]);a.meshShader={vertex:u,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},a.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(i){i.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(i,a,o){var s=o(737);i.exports=function(l){return s[l]}},9165:function(i,a,o){"use strict";i.exports=b;var s=o(2762),u=o(8116),l=o(3436),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function c(v,k,E,T){this.gl=v,this.shader=T,this.buffer=k,this.vao=E,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var h=c.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(v){var k=this.gl,E=this.shader.uniforms;this.shader.bind();var T=E.view=v.view||f,L=E.projection=v.projection||f;E.model=v.model||f,E.clipBounds=this.clipBounds,E.opacity=this.opacity;var x=T[12],C=T[13],M=T[14],m=T[15],P=v._ortho||!1,A=P?2:1,B=A*this.pixelRatio*(L[3]*x+L[7]*C+L[11]*M+L[15]*m)/k.drawingBufferHeight;this.vao.bind();for(var F=0;F<3;++F)k.lineWidth(this.lineWidth[F]*this.pixelRatio),E.capSize=this.capSize[F]*B,this.lineCount[F]&&k.drawArrays(k.LINES,this.lineOffset[F],this.lineCount[F]);this.vao.unbind()};function d(v,k){for(var E=0;E<3;++E)v[0][E]=Math.min(v[0][E],k[E]),v[1][E]=Math.max(v[1][E],k[E])}var p=function(){for(var v=new Array(3),k=0;k<3;++k){for(var E=[],T=1;T<=2;++T)for(var L=-1;L<=1;L+=2){var x=(T+k)%3,C=[0,0,0];C[x]=L,E.push(C)}v[k]=E}return v}();function _(v,k,E,T){for(var L=p[T],x=0;x0){var U=P.slice();U[M]+=B[1][M],L.push(P[0],P[1],P[2],F[0],F[1],F[2],F[3],0,0,0,U[0],U[1],U[2],F[0],F[1],F[2],F[3],0,0,0),d(this.bounds,U),C+=2+_(L,U,F,M)}}}this.lineCount[M]=C-this.lineOffset[M]}this.buffer.update(L)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function b(v){var k=v.gl,E=s(k),T=u(k,[{buffer:E,type:k.FLOAT,size:3,offset:0,stride:40},{buffer:E,type:k.FLOAT,size:4,offset:12,stride:40},{buffer:E,type:k.FLOAT,size:3,offset:28,stride:40}]),L=l(k);L.attributes.position.location=0,L.attributes.color.location=1,L.attributes.offset.location=2;var x=new c(k,E,T,L);return x.update(v),x}},3436:function(i,a,o){"use strict";var s=o(3236),u=o(9405),l=s([`precision highp float; #define GLSLIFY 1 attribute vec3 position, offset; @@ -704,9 +704,9 @@ void main() { ) discard; gl_FragColor = opacity * fragColor; -}`]);i.exports=function(c){return u(c,l,f,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260:function(i,a,o){"use strict";var s=o(7766);i.exports=C;var u=null,l,f,c,h;function d(M){var m=M.getParameter(M.FRAMEBUFFER_BINDING),P=M.getParameter(M.RENDERBUFFER_BINDING),A=M.getParameter(M.TEXTURE_BINDING_2D);return[m,P,A]}function p(M,m){M.bindFramebuffer(M.FRAMEBUFFER,m[0]),M.bindRenderbuffer(M.RENDERBUFFER,m[1]),M.bindTexture(M.TEXTURE_2D,m[2])}function x(M,m){var P=M.getParameter(m.MAX_COLOR_ATTACHMENTS_WEBGL);u=new Array(P+1);for(var A=0;A<=P;++A){for(var B=new Array(P),F=0;F1&&G.drawBuffersWEBGL(u[U]);var re=P.getExtension("WEBGL_depth_texture");re?j?M.depth=v(P,B,F,re.UNSIGNED_INT_24_8_WEBGL,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):H&&(M.depth=v(P,B,F,P.UNSIGNED_SHORT,P.DEPTH_COMPONENT,P.DEPTH_ATTACHMENT)):H&&j?M._depth_rb=k(P,B,F,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):H?M._depth_rb=k(P,B,F,P.DEPTH_COMPONENT16,P.DEPTH_ATTACHMENT):j&&(M._depth_rb=k(P,B,F,P.STENCIL_INDEX,P.STENCIL_ATTACHMENT));var ae=P.checkFramebufferStatus(P.FRAMEBUFFER);if(ae!==P.FRAMEBUFFER_COMPLETE){M._destroyed=!0,P.bindFramebuffer(P.FRAMEBUFFER,null),P.deleteFramebuffer(M.handle),M.handle=null,M.depth&&(M.depth.dispose(),M.depth=null),M._depth_rb&&(P.deleteRenderbuffer(M._depth_rb),M._depth_rb=null);for(var W=0;WB||P<0||P>B)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");M._shape[0]=m,M._shape[1]=P;for(var F=d(A),U=0;UF||P<0||P>F)throw new Error("gl-fbo: Parameters are too large for FBO");A=A||{};var U=1;if("color"in A){if(U=Math.max(A.color|0,0),U<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(U>1)if(B){if(U>M.getParameter(B.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+U+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var G=M.UNSIGNED_BYTE,j=M.getExtension("OES_texture_float");if(A.float&&U>0){if(!j)throw new Error("gl-fbo: Context does not support floating point textures");G=M.FLOAT}else A.preferFloat&&U>0&&j&&(G=M.FLOAT);var H=!0;"depth"in A&&(H=!!A.depth);var N=!1;return"stencil"in A&&(N=!!A.stencil),new T(M,m,P,G,U,H,N,B)}},2992:function(i,a,o){var s=o(3387).sprintf,u=o(5171),l=o(1848),f=o(1085);i.exports=c;function c(h,d,p){"use strict";var x=l(d)||"of unknown name (see npm glsl-shader-name)",b="unknown type";p!==void 0&&(b=p===u.FRAGMENT_SHADER?"fragment":"vertex");for(var v=s(`Error compiling %s shader %s: -`,b,x),k=s("%s%s",v,h),E=h.split(` -`),T={},L=0;L1&&G.drawBuffersWEBGL(u[U]);var re=P.getExtension("WEBGL_depth_texture");re?j?M.depth=v(P,B,F,re.UNSIGNED_INT_24_8_WEBGL,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):H&&(M.depth=v(P,B,F,P.UNSIGNED_SHORT,P.DEPTH_COMPONENT,P.DEPTH_ATTACHMENT)):H&&j?M._depth_rb=k(P,B,F,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):H?M._depth_rb=k(P,B,F,P.DEPTH_COMPONENT16,P.DEPTH_ATTACHMENT):j&&(M._depth_rb=k(P,B,F,P.STENCIL_INDEX,P.STENCIL_ATTACHMENT));var ae=P.checkFramebufferStatus(P.FRAMEBUFFER);if(ae!==P.FRAMEBUFFER_COMPLETE){M._destroyed=!0,P.bindFramebuffer(P.FRAMEBUFFER,null),P.deleteFramebuffer(M.handle),M.handle=null,M.depth&&(M.depth.dispose(),M.depth=null),M._depth_rb&&(P.deleteRenderbuffer(M._depth_rb),M._depth_rb=null);for(var W=0;WB||P<0||P>B)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");M._shape[0]=m,M._shape[1]=P;for(var F=d(A),U=0;UF||P<0||P>F)throw new Error("gl-fbo: Parameters are too large for FBO");A=A||{};var U=1;if("color"in A){if(U=Math.max(A.color|0,0),U<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(U>1)if(B){if(U>M.getParameter(B.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+U+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var G=M.UNSIGNED_BYTE,j=M.getExtension("OES_texture_float");if(A.float&&U>0){if(!j)throw new Error("gl-fbo: Context does not support floating point textures");G=M.FLOAT}else A.preferFloat&&U>0&&j&&(G=M.FLOAT);var H=!0;"depth"in A&&(H=!!A.depth);var N=!1;return"stencil"in A&&(N=!!A.stencil),new T(M,m,P,G,U,H,N,B)}},2992:function(i,a,o){var s=o(3387).sprintf,u=o(5171),l=o(1848),f=o(1085);i.exports=c;function c(h,d,p){"use strict";var _=l(d)||"of unknown name (see npm glsl-shader-name)",b="unknown type";p!==void 0&&(b=p===u.FRAGMENT_SHADER?"fragment":"vertex");for(var v=s(`Error compiling %s shader %s: +`,b,_),k=s("%s%s",v,h),E=h.split(` +`),T={},L=0;L0){for(var de=0;de<24;++de)F.push(F[F.length-12]);H+=2,be=!0}continue e}N[0][A]=Math.min(N[0][A],Pe[A],Ce[A]),N[1][A]=Math.max(N[1][A],Pe[A],Ce[A])}var te,ke;Array.isArray(re[0])?(te=re.length>P-1?re[P-1]:re.length>0?re[re.length-1]:[0,0,0,1],ke=re.length>P?re[P]:re.length>0?re[re.length-1]:[0,0,0,1]):te=ke=re,te.length===3&&(te=[te[0],te[1],te[2],1]),ke.length===3&&(ke=[ke[0],ke[1],ke[2],1]),!this.hasAlpha&&te[3]<1&&(this.hasAlpha=!0);var Ee;Array.isArray(ae)?Ee=ae.length>P-1?ae[P-1]:ae.length>0?ae[ae.length-1]:[0,0,0,1]:Ee=ae;var Me=j;if(j+=E(Pe,Ce),be){for(A=0;A<2;++A)F.push(Pe[0],Pe[1],Pe[2],Ce[0],Ce[1],Ce[2],Me,Ee,te[0],te[1],te[2],te[3]);H+=2,be=!1}F.push(Pe[0],Pe[1],Pe[2],Ce[0],Ce[1],Ce[2],Me,Ee,te[0],te[1],te[2],te[3],Pe[0],Pe[1],Pe[2],Ce[0],Ce[1],Ce[2],Me,-Ee,te[0],te[1],te[2],te[3],Ce[0],Ce[1],Ce[2],Pe[0],Pe[1],Pe[2],j,-Ee,ke[0],ke[1],ke[2],ke[3],Ce[0],Ce[1],Ce[2],Pe[0],Pe[1],Pe[2],j,Ee,ke[0],ke[1],ke[2],ke[3]),H+=4}}if(this.buffer.update(F),U.push(j),G.push(W[W.length-1].slice()),this.bounds=N,this.vertexCount=H,this.points=G,this.arcLength=U,"dashes"in m){var Ne=m.dashes,Fe=Ne.slice();for(Fe.unshift(0),P=1;P1.0001)return null;A+=P[L]}return Math.abs(A-1)>.001?null:[_,h(p,P),P]}},840:function(i,a,o){var s=o(3236),u=s([`precision highp float; +}`]),h=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];a.createShader=function(d){return u(d,l,f,null,h)},a.createPickShader=function(d){return u(d,l,c,null,h)}},5714:function(i,a,o){"use strict";i.exports=M;var s=o(2762),u=o(8116),l=o(7766),f=new Uint8Array(4),c=new Float32Array(f.buffer);function h(m,P,A,B){return f[0]=B,f[1]=A,f[2]=P,f[3]=m,c[0]}var d=o(2478),p=o(9618),_=o(7319),b=_.createShader,v=_.createPickShader,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(m,P){for(var A=0,B=0;B<3;++B){var F=m[B]-P[B];A+=F*F}return Math.sqrt(A)}function T(m){for(var P=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],A=0;A<3;++A)P[0][A]=Math.max(m[0][A],P[0][A]),P[1][A]=Math.min(m[1][A],P[1][A]);return P}function L(m,P,A,B){this.arcLength=m,this.position=P,this.index=A,this.dataCoordinate=B}function x(m,P,A,B,F,U){this.gl=m,this.shader=P,this.pickShader=A,this.buffer=B,this.vao=F,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=U,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var C=x.prototype;C.isTransparent=function(){return this.hasAlpha},C.isOpaque=function(){return!this.hasAlpha},C.pickSlots=1,C.setPickBase=function(m){this.pickId=m},C.drawTransparent=C.draw=function(m){if(this.vertexCount){var P=this.gl,A=this.shader,B=this.vao;A.bind(),A.uniforms={model:m.model||k,view:m.view||k,projection:m.projection||k,clipBounds:T(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},B.bind(),B.draw(P.TRIANGLE_STRIP,this.vertexCount),B.unbind()}},C.drawPick=function(m){if(this.vertexCount){var P=this.gl,A=this.pickShader,B=this.vao;A.bind(),A.uniforms={model:m.model||k,view:m.view||k,projection:m.projection||k,pickId:this.pickId,clipBounds:T(this.clipBounds),screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},B.bind(),B.draw(P.TRIANGLE_STRIP,this.vertexCount),B.unbind()}},C.update=function(m){var P,A;this.dirty=!0;var B=!!m.connectGaps;"dashScale"in m&&(this.dashScale=m.dashScale),this.hasAlpha=!1,"opacity"in m&&(this.opacity=+m.opacity,this.opacity<1&&(this.hasAlpha=!0));var F=[],U=[],G=[],j=0,H=0,N=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],W=m.position||m.positions;if(W){var re=m.color||m.colors||[0,0,0,1],ae=m.lineWidth||1,be=!1;e:for(P=1;P0){for(var de=0;de<24;++de)F.push(F[F.length-12]);H+=2,be=!0}continue e}N[0][A]=Math.min(N[0][A],Pe[A],Ce[A]),N[1][A]=Math.max(N[1][A],Pe[A],Ce[A])}var te,ke;Array.isArray(re[0])?(te=re.length>P-1?re[P-1]:re.length>0?re[re.length-1]:[0,0,0,1],ke=re.length>P?re[P]:re.length>0?re[re.length-1]:[0,0,0,1]):te=ke=re,te.length===3&&(te=[te[0],te[1],te[2],1]),ke.length===3&&(ke=[ke[0],ke[1],ke[2],1]),!this.hasAlpha&&te[3]<1&&(this.hasAlpha=!0);var Ee;Array.isArray(ae)?Ee=ae.length>P-1?ae[P-1]:ae.length>0?ae[ae.length-1]:[0,0,0,1]:Ee=ae;var Me=j;if(j+=E(Pe,Ce),be){for(A=0;A<2;++A)F.push(Pe[0],Pe[1],Pe[2],Ce[0],Ce[1],Ce[2],Me,Ee,te[0],te[1],te[2],te[3]);H+=2,be=!1}F.push(Pe[0],Pe[1],Pe[2],Ce[0],Ce[1],Ce[2],Me,Ee,te[0],te[1],te[2],te[3],Pe[0],Pe[1],Pe[2],Ce[0],Ce[1],Ce[2],Me,-Ee,te[0],te[1],te[2],te[3],Ce[0],Ce[1],Ce[2],Pe[0],Pe[1],Pe[2],j,-Ee,ke[0],ke[1],ke[2],ke[3],Ce[0],Ce[1],Ce[2],Pe[0],Pe[1],Pe[2],j,Ee,ke[0],ke[1],ke[2],ke[3]),H+=4}}if(this.buffer.update(F),U.push(j),G.push(W[W.length-1].slice()),this.bounds=N,this.vertexCount=H,this.points=G,this.arcLength=U,"dashes"in m){var Ne=m.dashes,Fe=Ne.slice();for(Fe.unshift(0),P=1;P1.0001)return null;A+=P[L]}return Math.abs(A-1)>.001?null:[x,h(p,P),P]}},840:function(i,a,o){var s=o(3236),u=s([`precision highp float; #define GLSLIFY 1 attribute vec3 position, normal; @@ -1143,7 +1143,7 @@ void main() { gl_Position = projection * (view * (model * vec4(position, 1.0))); f_id = id; f_position = position; -}`]),x=s([`precision highp float; +}`]),_=s([`precision highp float; #define GLSLIFY 1 bool outOfRange(float a, float b, float p) { @@ -1236,7 +1236,7 @@ uniform vec3 contourColor; void main() { gl_FragColor = vec4(contourColor, 1.0); } -`]);a.meshShader={vertex:u,fragment:l,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:p,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:b,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:v,fragment:k,attributes:[{name:"position",type:"vec3"}]}},7201:function(i,a,o){"use strict";var s=1e-6,u=1e-6,l=o(9405),f=o(2762),c=o(8116),h=o(7766),d=o(8406),p=o(6760),x=o(7608),b=o(9618),v=o(6729),k=o(7765),E=o(1888),T=o(840),L=o(7626),_=T.meshShader,C=T.wireShader,M=T.pointShader,m=T.pickShader,P=T.pointPickShader,A=T.contourShader,B=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function F(de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt,Nt,it,Ke,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st){this.gl=de,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=te,this.dirty=!0,this.triShader=ke,this.lineShader=Ee,this.pointShader=Me,this.pickShader=Ne,this.pointPickShader=Fe,this.contourShader=ye,this.trianglePositions=Ve,this.triangleColors=Ye,this.triangleNormals=gt,this.triangleUVs=nt,this.triangleIds=ce,this.triangleVAO=Nt,this.triangleCount=0,this.lineWidth=1,this.edgePositions=it,this.edgeColors=kt,this.edgeUVs=Tt,this.edgeIds=Ke,this.edgeVAO=St,this.edgeCount=0,this.pointPositions=Dt,this.pointColors=Et,this.pointUVs=Ae,this.pointSizes=at,this.pointIds=Zt,this.pointVAO=wt,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=vt,this.contourVAO=st,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=B,this._view=B,this._projection=B,this._resolution=[1,1]}var U=F.prototype;U.isOpaque=function(){return!this.hasAlpha},U.isTransparent=function(){return this.hasAlpha},U.pickSlots=1,U.setPickBase=function(de){this.pickId=de};function G(de,te){if(!te||!te.length)return 1;for(var ke=0;kede&&ke>0){var Ee=(te[ke][0]-de)/(te[ke][0]-te[ke-1][0]);return te[ke][1]*(1-Ee)+Ee*te[ke-1][1]}}return 1}function j(de,te){for(var ke=v({colormap:de,nshades:256,format:"rgba"}),Ee=new Uint8Array(256*4),Me=0;Me<256;++Me){for(var Ne=ke[Me],Fe=0;Fe<3;++Fe)Ee[4*Me+Fe]=Ne[Fe];te?Ee[4*Me+3]=255*G(Me/255,te):Ee[4*Me+3]=255*Ne[3]}return b(Ee,[256,256,4],[4,0,1])}function H(de){for(var te=de.length,ke=new Array(te),Ee=0;Ee0){var gt=this.triShader;gt.bind(),gt.uniforms=ye,this.triangleVAO.bind(),te.drawArrays(te.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var gt=this.lineShader;gt.bind(),gt.uniforms=ye,this.edgeVAO.bind(),te.lineWidth(this.lineWidth*this.pixelRatio),te.drawArrays(te.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var gt=this.pointShader;gt.bind(),gt.uniforms=ye,this.pointVAO.bind(),te.drawArrays(te.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var gt=this.contourShader;gt.bind(),gt.uniforms=ye,this.contourVAO.bind(),te.drawArrays(te.LINES,0,this.contourCount),this.contourVAO.unbind()}},U.drawPick=function(de){de=de||{};for(var te=this.gl,ke=de.model||B,Ee=de.view||B,Me=de.projection||B,Ne=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Fe=0;Fe<3;++Fe)Ne[0][Fe]=Math.max(Ne[0][Fe],this.clipBounds[0][Fe]),Ne[1][Fe]=Math.min(Ne[1][Fe],this.clipBounds[1][Fe]);this._model=[].slice.call(ke),this._view=[].slice.call(Ee),this._projection=[].slice.call(Me),this._resolution=[te.drawingBufferWidth,te.drawingBufferHeight];var ye={model:ke,view:Ee,projection:Me,clipBounds:Ne,pickId:this.pickId/255},Ve=this.pickShader;if(Ve.bind(),Ve.uniforms=ye,this.triangleCount>0&&(this.triangleVAO.bind(),te.drawArrays(te.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),te.lineWidth(this.lineWidth*this.pixelRatio),te.drawArrays(te.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var Ve=this.pointPickShader;Ve.bind(),Ve.uniforms=ye,this.pointVAO.bind(),te.drawArrays(te.POINTS,0,this.pointCount),this.pointVAO.unbind()}},U.pick=function(de){if(!de||de.id!==this.pickId)return null;for(var te=de.value[0]+256*de.value[1]+65536*de.value[2],ke=this.cells[te],Ee=this.positions,Me=new Array(ke.length),Ne=0;NeMath.abs(m))v.rotate(B,0,0,-M*P*Math.PI*_.rotateSpeed/window.innerWidth);else if(!_._ortho){var F=-_.zoomSpeed*A*m/window.innerHeight*(B-v.lastT())/20;v.pan(B,0,0,E*(Math.exp(F)-1))}}},!0)},_.enableMouseListeners(),_}},799:function(i,a,o){var s=o(3236),u=o(9405),l=s([`precision mediump float; +`]);a.meshShader={vertex:u,fragment:l,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:p,fragment:_,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:b,fragment:_,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:v,fragment:k,attributes:[{name:"position",type:"vec3"}]}},7201:function(i,a,o){"use strict";var s=1e-6,u=1e-6,l=o(9405),f=o(2762),c=o(8116),h=o(7766),d=o(8406),p=o(6760),_=o(7608),b=o(9618),v=o(6729),k=o(7765),E=o(1888),T=o(840),L=o(7626),x=T.meshShader,C=T.wireShader,M=T.pointShader,m=T.pickShader,P=T.pointPickShader,A=T.contourShader,B=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function F(de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt,Nt,it,Ye,kt,Tt,St,Rt,Zt,Et,Ae,at,wt,vt,st){this.gl=de,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=te,this.dirty=!0,this.triShader=ke,this.lineShader=Ee,this.pointShader=Me,this.pickShader=Ne,this.pointPickShader=Fe,this.contourShader=ye,this.trianglePositions=Ve,this.triangleColors=Ke,this.triangleNormals=gt,this.triangleUVs=nt,this.triangleIds=ce,this.triangleVAO=Nt,this.triangleCount=0,this.lineWidth=1,this.edgePositions=it,this.edgeColors=kt,this.edgeUVs=Tt,this.edgeIds=Ye,this.edgeVAO=St,this.edgeCount=0,this.pointPositions=Rt,this.pointColors=Et,this.pointUVs=Ae,this.pointSizes=at,this.pointIds=Zt,this.pointVAO=wt,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=vt,this.contourVAO=st,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=B,this._view=B,this._projection=B,this._resolution=[1,1]}var U=F.prototype;U.isOpaque=function(){return!this.hasAlpha},U.isTransparent=function(){return this.hasAlpha},U.pickSlots=1,U.setPickBase=function(de){this.pickId=de};function G(de,te){if(!te||!te.length)return 1;for(var ke=0;kede&&ke>0){var Ee=(te[ke][0]-de)/(te[ke][0]-te[ke-1][0]);return te[ke][1]*(1-Ee)+Ee*te[ke-1][1]}}return 1}function j(de,te){for(var ke=v({colormap:de,nshades:256,format:"rgba"}),Ee=new Uint8Array(256*4),Me=0;Me<256;++Me){for(var Ne=ke[Me],Fe=0;Fe<3;++Fe)Ee[4*Me+Fe]=Ne[Fe];te?Ee[4*Me+3]=255*G(Me/255,te):Ee[4*Me+3]=255*Ne[3]}return b(Ee,[256,256,4],[4,0,1])}function H(de){for(var te=de.length,ke=new Array(te),Ee=0;Ee0){var gt=this.triShader;gt.bind(),gt.uniforms=ye,this.triangleVAO.bind(),te.drawArrays(te.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var gt=this.lineShader;gt.bind(),gt.uniforms=ye,this.edgeVAO.bind(),te.lineWidth(this.lineWidth*this.pixelRatio),te.drawArrays(te.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var gt=this.pointShader;gt.bind(),gt.uniforms=ye,this.pointVAO.bind(),te.drawArrays(te.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var gt=this.contourShader;gt.bind(),gt.uniforms=ye,this.contourVAO.bind(),te.drawArrays(te.LINES,0,this.contourCount),this.contourVAO.unbind()}},U.drawPick=function(de){de=de||{};for(var te=this.gl,ke=de.model||B,Ee=de.view||B,Me=de.projection||B,Ne=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Fe=0;Fe<3;++Fe)Ne[0][Fe]=Math.max(Ne[0][Fe],this.clipBounds[0][Fe]),Ne[1][Fe]=Math.min(Ne[1][Fe],this.clipBounds[1][Fe]);this._model=[].slice.call(ke),this._view=[].slice.call(Ee),this._projection=[].slice.call(Me),this._resolution=[te.drawingBufferWidth,te.drawingBufferHeight];var ye={model:ke,view:Ee,projection:Me,clipBounds:Ne,pickId:this.pickId/255},Ve=this.pickShader;if(Ve.bind(),Ve.uniforms=ye,this.triangleCount>0&&(this.triangleVAO.bind(),te.drawArrays(te.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),te.lineWidth(this.lineWidth*this.pixelRatio),te.drawArrays(te.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var Ve=this.pointPickShader;Ve.bind(),Ve.uniforms=ye,this.pointVAO.bind(),te.drawArrays(te.POINTS,0,this.pointCount),this.pointVAO.unbind()}},U.pick=function(de){if(!de||de.id!==this.pickId)return null;for(var te=de.value[0]+256*de.value[1]+65536*de.value[2],ke=this.cells[te],Ee=this.positions,Me=new Array(ke.length),Ne=0;NeMath.abs(m))v.rotate(B,0,0,-M*P*Math.PI*x.rotateSpeed/window.innerWidth);else if(!x._ortho){var F=-x.zoomSpeed*A*m/window.innerHeight*(B-v.lastT())/20;v.pan(B,0,0,E*(Math.exp(F)-1))}}},!0)},x.enableMouseListeners(),x}},799:function(i,a,o){var s=o(3236),u=o(9405),l=s([`precision mediump float; #define GLSLIFY 1 attribute vec2 position; varying vec2 uv; @@ -1252,7 +1252,7 @@ varying vec2 uv; void main() { vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); gl_FragColor = min(vec4(1,1,1,1), accum); -}`]);i.exports=function(c){return u(c,l,f,null,[{name:"position",type:"vec2"}])}},4100:function(i,a,o){"use strict";var s=o(4437),u=o(3837),l=o(5445),f=o(4449),c=o(3589),h=o(2260),d=o(7169),p=o(351),x=o(4772),b=o(4040),v=o(799),k=o(9216)({tablet:!0,featureDetect:!0});i.exports={createScene:C,createCamera:s};function E(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function T(m,P){var A=null;try{A=m.getContext("webgl",P),A||(A=m.getContext("experimental-webgl",P))}catch(B){return null}return A}function L(m){var P=Math.round(Math.log(Math.abs(m))/Math.log(10));if(P<0){var A=Math.round(Math.pow(10,-P));return Math.ceil(m*A)/A}else if(P>0){var A=Math.round(Math.pow(10,P));return Math.ceil(m/A)*A}return Math.ceil(m)}function _(m){return typeof m=="boolean"?m:!0}function C(m){m=m||{},m.camera=m.camera||{};var P=m.canvas;if(!P)if(P=document.createElement("canvas"),m.container){var A=m.container;A.appendChild(P)}else document.body.appendChild(P);var B=m.gl;if(B||(m.glOptions&&(k=!!m.glOptions.preserveDrawingBuffer),B=T(P,m.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!B)throw new Error("webgl not supported");var F=m.bounds||[[-10,-10,-10],[10,10,10]],U=new E,G=h(B,B.drawingBufferWidth,B.drawingBufferHeight,{preferFloat:!k}),j=v(B),H=m.cameraObject&&m.cameraObject._ortho===!0||m.camera.projection&&m.camera.projection.type==="orthographic"||!1,N={eye:m.camera.eye||[2,0,0],center:m.camera.center||[0,0,0],up:m.camera.up||[0,1,0],zoomMin:m.camera.zoomMax||.1,zoomMax:m.camera.zoomMin||100,mode:m.camera.mode||"turntable",_ortho:H},W=m.axes||{},re=u(B,W);re.enable=!W.disable;var ae=m.spikes||{},be=f(B,ae),Pe=[],Ce=[],de=[],te=[],ke=!0,Fe=!0,Ee=new Array(16),Me=new Array(16),Ne={view:null,projection:Ee,model:Me,_ortho:!1},Fe=!0,ye=[B.drawingBufferWidth,B.drawingBufferHeight],Ve=m.cameraObject||s(P,N),ce={gl:B,contextLost:!1,pixelRatio:m.pixelRatio||1,canvas:P,selection:U,camera:Ve,axes:re,axesPixels:null,spikes:be,bounds:F,objects:Pe,shape:ye,aspect:m.aspectRatio||[1,1,1],pickRadius:m.pickRadius||10,zNear:m.zNear||.01,zFar:m.zFar||1e3,fovy:m.fovy||Math.PI/4,clearColor:m.clearColor||[0,0,0,0],autoResize:_(m.autoResize),autoBounds:_(m.autoBounds),autoScale:!!m.autoScale,autoCenter:_(m.autoCenter),clipToBounds:_(m.clipToBounds),snapToData:!!m.snapToData,onselect:m.onselect||null,onrender:m.onrender||null,onclick:m.onclick||null,cameraParams:Ne,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Dt){this.aspect[0]=Dt.x,this.aspect[1]=Dt.y,this.aspect[2]=Dt.z,Fe=!0},setBounds:function(Dt,Zt){this.bounds[0][Dt]=Zt.min,this.bounds[1][Dt]=Zt.max},setClearColor:function(Dt){this.clearColor=Dt},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},Ye=[B.drawingBufferWidth/ce.pixelRatio|0,B.drawingBufferHeight/ce.pixelRatio|0];function nt(){if(!ce._stopped&&ce.autoResize){var Dt=P.parentNode,Zt=1,Et=1;Dt&&Dt!==document.body?(Zt=Dt.clientWidth,Et=Dt.clientHeight):(Zt=window.innerWidth,Et=window.innerHeight);var Ae=Math.ceil(Zt*ce.pixelRatio)|0,at=Math.ceil(Et*ce.pixelRatio)|0;if(Ae!==P.width||at!==P.height){P.width=Ae,P.height=at;var wt=P.style;wt.position=wt.position||"absolute",wt.left="0px",wt.top="0px",wt.width=Zt+"px",wt.height=Et+"px",ke=!0}}}ce.autoResize&&nt(),window.addEventListener("resize",nt);function gt(){for(var Dt=Pe.length,Zt=te.length,Et=0;Et0&&de[Zt-1]===0;)de.pop(),te.pop().dispose()}ce.update=function(Dt){ce._stopped||(Dt=Dt||{},ke=!0,Fe=!0)},ce.add=function(Dt){ce._stopped||(Dt.axes=re,Pe.push(Dt),Ce.push(-1),ke=!0,Fe=!0,gt())},ce.remove=function(Dt){if(!ce._stopped){var Zt=Pe.indexOf(Dt);Zt<0||(Pe.splice(Zt,1),Ce.pop(),ke=!0,Fe=!0,gt())}},ce.dispose=function(){if(!ce._stopped&&(ce._stopped=!0,window.removeEventListener("resize",nt),P.removeEventListener("webglcontextlost",Nt),ce.mouseListener.enabled=!1,!ce.contextLost)){re.dispose(),be.dispose();for(var Dt=0;DtU.distance)continue;for(var rt=0;rt1e-6?(k=Math.acos(E),T=Math.sin(k),L=Math.sin((1-l)*k)/T,_=Math.sin(l*k)/T):(L=1-l,_=l),o[0]=L*f+_*p,o[1]=L*c+_*x,o[2]=L*h+_*b,o[3]=L*d+_*v,o}},5964:function(i){"use strict";i.exports=function(a){return!a&&a!==0?"":a.toString()}},9366:function(i,a,o){"use strict";var s=o(4359);i.exports=l;var u={};function l(f,c,h){var d=[c.style,c.weight,c.variant,c.family].join("_"),p=u[d];if(p||(p=u[d]={}),f in p)return p[f];var x={textAlign:"center",textBaseline:"middle",lineHeight:1,font:c.family,fontStyle:c.style,fontWeight:c.weight,fontVariant:c.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};x.triangles=!0;var b=s(f,x);x.triangles=!1;var v=s(f,x),k,E;if(h&&h!==1){for(k=0;k0){var A=Math.round(Math.pow(10,P));return Math.ceil(m/A)*A}return Math.ceil(m)}function x(m){return typeof m=="boolean"?m:!0}function C(m){m=m||{},m.camera=m.camera||{};var P=m.canvas;if(!P)if(P=document.createElement("canvas"),m.container){var A=m.container;A.appendChild(P)}else document.body.appendChild(P);var B=m.gl;if(B||(m.glOptions&&(k=!!m.glOptions.preserveDrawingBuffer),B=T(P,m.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!B)throw new Error("webgl not supported");var F=m.bounds||[[-10,-10,-10],[10,10,10]],U=new E,G=h(B,B.drawingBufferWidth,B.drawingBufferHeight,{preferFloat:!k}),j=v(B),H=m.cameraObject&&m.cameraObject._ortho===!0||m.camera.projection&&m.camera.projection.type==="orthographic"||!1,N={eye:m.camera.eye||[2,0,0],center:m.camera.center||[0,0,0],up:m.camera.up||[0,1,0],zoomMin:m.camera.zoomMax||.1,zoomMax:m.camera.zoomMin||100,mode:m.camera.mode||"turntable",_ortho:H},W=m.axes||{},re=u(B,W);re.enable=!W.disable;var ae=m.spikes||{},be=f(B,ae),Pe=[],Ce=[],de=[],te=[],ke=!0,Fe=!0,Ee=new Array(16),Me=new Array(16),Ne={view:null,projection:Ee,model:Me,_ortho:!1},Fe=!0,ye=[B.drawingBufferWidth,B.drawingBufferHeight],Ve=m.cameraObject||s(P,N),ce={gl:B,contextLost:!1,pixelRatio:m.pixelRatio||1,canvas:P,selection:U,camera:Ve,axes:re,axesPixels:null,spikes:be,bounds:F,objects:Pe,shape:ye,aspect:m.aspectRatio||[1,1,1],pickRadius:m.pickRadius||10,zNear:m.zNear||.01,zFar:m.zFar||1e3,fovy:m.fovy||Math.PI/4,clearColor:m.clearColor||[0,0,0,0],autoResize:x(m.autoResize),autoBounds:x(m.autoBounds),autoScale:!!m.autoScale,autoCenter:x(m.autoCenter),clipToBounds:x(m.clipToBounds),snapToData:!!m.snapToData,onselect:m.onselect||null,onrender:m.onrender||null,onclick:m.onclick||null,cameraParams:Ne,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Rt){this.aspect[0]=Rt.x,this.aspect[1]=Rt.y,this.aspect[2]=Rt.z,Fe=!0},setBounds:function(Rt,Zt){this.bounds[0][Rt]=Zt.min,this.bounds[1][Rt]=Zt.max},setClearColor:function(Rt){this.clearColor=Rt},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},Ke=[B.drawingBufferWidth/ce.pixelRatio|0,B.drawingBufferHeight/ce.pixelRatio|0];function nt(){if(!ce._stopped&&ce.autoResize){var Rt=P.parentNode,Zt=1,Et=1;Rt&&Rt!==document.body?(Zt=Rt.clientWidth,Et=Rt.clientHeight):(Zt=window.innerWidth,Et=window.innerHeight);var Ae=Math.ceil(Zt*ce.pixelRatio)|0,at=Math.ceil(Et*ce.pixelRatio)|0;if(Ae!==P.width||at!==P.height){P.width=Ae,P.height=at;var wt=P.style;wt.position=wt.position||"absolute",wt.left="0px",wt.top="0px",wt.width=Zt+"px",wt.height=Et+"px",ke=!0}}}ce.autoResize&&nt(),window.addEventListener("resize",nt);function gt(){for(var Rt=Pe.length,Zt=te.length,Et=0;Et0&&de[Zt-1]===0;)de.pop(),te.pop().dispose()}ce.update=function(Rt){ce._stopped||(Rt=Rt||{},ke=!0,Fe=!0)},ce.add=function(Rt){ce._stopped||(Rt.axes=re,Pe.push(Rt),Ce.push(-1),ke=!0,Fe=!0,gt())},ce.remove=function(Rt){if(!ce._stopped){var Zt=Pe.indexOf(Rt);Zt<0||(Pe.splice(Zt,1),Ce.pop(),ke=!0,Fe=!0,gt())}},ce.dispose=function(){if(!ce._stopped&&(ce._stopped=!0,window.removeEventListener("resize",nt),P.removeEventListener("webglcontextlost",Nt),ce.mouseListener.enabled=!1,!ce.contextLost)){re.dispose(),be.dispose();for(var Rt=0;RtU.distance)continue;for(var rt=0;rt1e-6?(k=Math.acos(E),T=Math.sin(k),L=Math.sin((1-l)*k)/T,x=Math.sin(l*k)/T):(L=1-l,x=l),o[0]=L*f+x*p,o[1]=L*c+x*_,o[2]=L*h+x*b,o[3]=L*d+x*v,o}},5964:function(i){"use strict";i.exports=function(a){return!a&&a!==0?"":a.toString()}},9366:function(i,a,o){"use strict";var s=o(4359);i.exports=l;var u={};function l(f,c,h){var d=[c.style,c.weight,c.variant,c.family].join("_"),p=u[d];if(p||(p=u[d]={}),f in p)return p[f];var _={textAlign:"center",textBaseline:"middle",lineHeight:1,font:c.family,fontStyle:c.style,fontWeight:c.weight,fontVariant:c.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};_.triangles=!0;var b=s(f,_);_.triangles=!1;var v=s(f,_),k,E;if(h&&h!==1){for(k=0;k1?1:Me}function M(Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt,Nt,it,Ke){this.gl=Me,this.pixelRatio=1,this.shader=Ne,this.orthoShader=Fe,this.projectShader=ye,this.pointBuffer=Ve,this.colorBuffer=ce,this.glyphBuffer=Ye,this.idBuffer=nt,this.vao=gt,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=Nt,this.pickOrthoShader=it,this.pickProjectShader=Ke,this.points=[],this._selectResult=new _(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var m=M.prototype;m.pickSlots=1,m.setPickBase=function(Me){this.pickId=Me},m.isTransparent=function(){if(this.hasAlpha)return!0;for(var Me=0;Me<3;++Me)if(this.axesProject[Me]&&this.projectHasAlpha)return!0;return!1},m.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Me=0;Me<3;++Me)if(this.axesProject[Me]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],A=[0,0,0],B=[0,0,0],F=[0,0,0,1],U=[0,0,0,1],G=x.slice(),j=[0,0,0],H=[[0,0,0],[0,0,0]];function N(Me){return Me[0]=Me[1]=Me[2]=0,Me}function W(Me,Ne){return Me[0]=Ne[0],Me[1]=Ne[1],Me[2]=Ne[2],Me[3]=1,Me}function re(Me,Ne,Fe,ye){return Me[0]=Ne[0],Me[1]=Ne[1],Me[2]=Ne[2],Me[Fe]=ye,Me}function ae(Me){for(var Ne=H,Fe=0;Fe<2;++Fe)for(var ye=0;ye<3;++ye)Ne[Fe][ye]=Math.max(Math.min(Me[Fe][ye],1e8),-1e8);return Ne}function be(Me,Ne,Fe,ye){var Ve=Ne.axesProject,ce=Ne.gl,Ye=Me.uniforms,nt=Fe.model||x,gt=Fe.view||x,Nt=Fe.projection||x,it=Ne.axesBounds,Ke=ae(Ne.clipBounds),kt;Ne.axes&&Ne.axes.lastCubeProps?kt=Ne.axes.lastCubeProps.axis:kt=[1,1,1],P[0]=2/ce.drawingBufferWidth,P[1]=2/ce.drawingBufferHeight,Me.bind(),Ye.view=gt,Ye.projection=Nt,Ye.screenSize=P,Ye.highlightId=Ne.highlightId,Ye.highlightScale=Ne.highlightScale,Ye.clipBounds=Ke,Ye.pickGroup=Ne.pickId/255,Ye.pixelRatio=ye;for(var Tt=0;Tt<3;++Tt)if(Ve[Tt]){Ye.scale=Ne.projectScale[Tt],Ye.opacity=Ne.projectOpacity[Tt];for(var St=G,Dt=0;Dt<16;++Dt)St[Dt]=0;for(var Dt=0;Dt<4;++Dt)St[5*Dt]=1;St[5*Tt]=0,kt[Tt]<0?St[12+Tt]=it[0][Tt]:St[12+Tt]=it[1][Tt],c(St,nt,St),Ye.model=St;var Zt=(Tt+1)%3,Et=(Tt+2)%3,Ae=N(A),at=N(B);Ae[Zt]=1,at[Et]=1;var wt=L(Nt,gt,nt,W(F,Ae)),vt=L(Nt,gt,nt,W(U,at));if(Math.abs(wt[1])>Math.abs(vt[1])){var st=wt;wt=vt,vt=st,st=Ae,Ae=at,at=st;var Ue=Zt;Zt=Et,Et=Ue}wt[0]<0&&(Ae[Zt]=-1),vt[1]>0&&(at[Et]=-1);for(var rt=0,$e=0,Dt=0;Dt<4;++Dt)rt+=Math.pow(nt[4*Zt+Dt],2),$e+=Math.pow(nt[4*Et+Dt],2);Ae[Zt]/=Math.sqrt(rt),at[Et]/=Math.sqrt($e),Ye.axes[0]=Ae,Ye.axes[1]=at,Ye.fragClipBounds[0]=re(j,Ke[0],Tt,-1e8),Ye.fragClipBounds[1]=re(j,Ke[1],Tt,1e8),Ne.vao.bind(),Ne.vao.draw(ce.TRIANGLES,Ne.vertexCount),Ne.lineWidth>0&&(ce.lineWidth(Ne.lineWidth*ye),Ne.vao.draw(ce.LINES,Ne.lineVertexCount,Ne.vertexCount)),Ne.vao.unbind()}}var Pe=[-1e8,-1e8,-1e8],Ce=[1e8,1e8,1e8],de=[Pe,Ce];function te(Me,Ne,Fe,ye,Ve,ce,Ye){var nt=Fe.gl;if((ce===Fe.projectHasAlpha||Ye)&&be(Ne,Fe,ye,Ve),ce===Fe.hasAlpha||Ye){Me.bind();var gt=Me.uniforms;gt.model=ye.model||x,gt.view=ye.view||x,gt.projection=ye.projection||x,P[0]=2/nt.drawingBufferWidth,P[1]=2/nt.drawingBufferHeight,gt.screenSize=P,gt.highlightId=Fe.highlightId,gt.highlightScale=Fe.highlightScale,gt.fragClipBounds=de,gt.clipBounds=Fe.axes.bounds,gt.opacity=Fe.opacity,gt.pickGroup=Fe.pickId/255,gt.pixelRatio=Ve,Fe.vao.bind(),Fe.vao.draw(nt.TRIANGLES,Fe.vertexCount),Fe.lineWidth>0&&(nt.lineWidth(Fe.lineWidth*Ve),Fe.vao.draw(nt.LINES,Fe.lineVertexCount,Fe.vertexCount)),Fe.vao.unbind()}}m.draw=function(Me){var Ne=this.useOrtho?this.orthoShader:this.shader;te(Ne,this.projectShader,this,Me,this.pixelRatio,!1,!1)},m.drawTransparent=function(Me){var Ne=this.useOrtho?this.orthoShader:this.shader;te(Ne,this.projectShader,this,Me,this.pixelRatio,!0,!1)},m.drawPick=function(Me){var Ne=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;te(Ne,this.pickProjectShader,this,Me,1,!0,!0)},m.pick=function(Me){if(!Me||Me.id!==this.pickId)return null;var Ne=Me.value[2]+(Me.value[1]<<8)+(Me.value[0]<<16);if(Ne>=this.pointCount||Ne<0)return null;var Fe=this.points[Ne],ye=this._selectResult;ye.index=Ne;for(var Ve=0;Ve<3;++Ve)ye.position[Ve]=ye.dataCoordinate[Ve]=Fe[Ve];return ye},m.highlight=function(Me){if(!Me)this.highlightId=[1,1,1,1];else{var Ne=Me.index,Fe=Ne&255,ye=Ne>>8&255,Ve=Ne>>16&255;this.highlightId=[Fe/255,ye/255,Ve/255,0]}};function ke(Me,Ne,Fe,ye){var Ve;E(Me)?Ne0){var Ut=0,Ie=Et,xe=[0,0,0,1],Oe=[0,0,0,1],Re=E(kt)&&E(kt[0]),De=E(Dt)&&E(Dt[0]);e:for(var ye=0;ye0?1-$e[0][0]:Pt<0?1+$e[1][0]:1,rr*=rr>0?1-$e[0][1]:rr<0?1+$e[1][1]:1;for(var Hr=[Pt,rr],Di=Ue.cells||[],Ii=Ue.positions||[],vt=0;vtthis.buffer.length){u.free(this.buffer);for(var E=this.buffer=u.mallocUint8(f(k*v*4)),T=0;TE)for(v=E;vk)for(v=k;v=0){for(var H=j.type.charAt(j.type.length-1)|0,N=new Array(H),W=0;W=0;)re+=1;U[G]=re}var ae=new Array(E.length);function be(){_.program=f.program(C,_._vref,_._fref,F,U);for(var Pe=0;Pe=0){var m=C.charCodeAt(C.length-1)-48;if(m<2||m>4)throw new s("","Invalid data type for attribute "+_+": "+C);c(p,x,M[0],v,m,k,_)}else if(C.indexOf("mat")>=0){var m=C.charCodeAt(C.length-1)-48;if(m<2||m>4)throw new s("","Invalid data type for attribute "+_+": "+C);h(p,x,M,v,m,k,_)}else throw new s("","Unknown data type for attribute "+_+": "+C);break}}return k}},3327:function(i,a,o){"use strict";var s=o(216),u=o(8866);i.exports=c;function l(h){return function(){return h}}function f(h,d){for(var p=new Array(h),x=0;x4)throw new u("","Invalid data type");switch(re.charAt(0)){case"b":case"i":h["uniform"+ae+"iv"](x[U],G);break;case"v":h["uniform"+ae+"fv"](x[U],G);break;default:throw new u("","Unrecognized data type for vector "+name+": "+re)}}else if(re.indexOf("mat")===0&&re.length===4){if(ae=re.charCodeAt(re.length-1)-48,ae<2||ae>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+re);h["uniformMatrix"+ae+"fv"](x[U],!1,G);break}else throw new u("","Unknown uniform data type for "+name+": "+re)}}}}}function k(C,M){if(typeof M!="object")return[[C,M]];var m=[];for(var P in M){var A=M[P],B=C;parseInt(P)+""===P?B+="["+P+"]":B+="."+P,typeof A=="object"?m.push.apply(m,k(B,A)):m.push([B,A])}return m}function E(C){switch(C){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var M=C.indexOf("vec");if(0<=M&&M<=1&&C.length===4+M){var m=C.charCodeAt(C.length-1)-48;if(m<2||m>4)throw new u("","Invalid data type");return C.charAt(0)==="b"?f(m,!1):f(m,0)}else if(C.indexOf("mat")===0&&C.length===4){var m=C.charCodeAt(C.length-1)-48;if(m<2||m>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+C);return f(m*m,0)}else throw new u("","Unknown uniform data type for "+name+": "+C)}}function T(C,M,m){if(typeof m=="object"){var P=L(m);Object.defineProperty(C,M,{get:l(P),set:v(m),enumerable:!0,configurable:!1})}else x[m]?Object.defineProperty(C,M,{get:b(m),set:v(m),enumerable:!0,configurable:!1}):C[M]=E(p[m].type)}function L(C){var M;if(Array.isArray(C)){M=new Array(C.length);for(var m=0;m1){p[0]in h||(h[p[0]]=[]),h=h[p[0]];for(var x=1;x1)for(var k=0;k1?1:Me}function M(Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt,Nt,it,Ye){this.gl=Me,this.pixelRatio=1,this.shader=Ne,this.orthoShader=Fe,this.projectShader=ye,this.pointBuffer=Ve,this.colorBuffer=ce,this.glyphBuffer=Ke,this.idBuffer=nt,this.vao=gt,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=Nt,this.pickOrthoShader=it,this.pickProjectShader=Ye,this.points=[],this._selectResult=new x(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var m=M.prototype;m.pickSlots=1,m.setPickBase=function(Me){this.pickId=Me},m.isTransparent=function(){if(this.hasAlpha)return!0;for(var Me=0;Me<3;++Me)if(this.axesProject[Me]&&this.projectHasAlpha)return!0;return!1},m.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Me=0;Me<3;++Me)if(this.axesProject[Me]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],A=[0,0,0],B=[0,0,0],F=[0,0,0,1],U=[0,0,0,1],G=_.slice(),j=[0,0,0],H=[[0,0,0],[0,0,0]];function N(Me){return Me[0]=Me[1]=Me[2]=0,Me}function W(Me,Ne){return Me[0]=Ne[0],Me[1]=Ne[1],Me[2]=Ne[2],Me[3]=1,Me}function re(Me,Ne,Fe,ye){return Me[0]=Ne[0],Me[1]=Ne[1],Me[2]=Ne[2],Me[Fe]=ye,Me}function ae(Me){for(var Ne=H,Fe=0;Fe<2;++Fe)for(var ye=0;ye<3;++ye)Ne[Fe][ye]=Math.max(Math.min(Me[Fe][ye],1e8),-1e8);return Ne}function be(Me,Ne,Fe,ye){var Ve=Ne.axesProject,ce=Ne.gl,Ke=Me.uniforms,nt=Fe.model||_,gt=Fe.view||_,Nt=Fe.projection||_,it=Ne.axesBounds,Ye=ae(Ne.clipBounds),kt;Ne.axes&&Ne.axes.lastCubeProps?kt=Ne.axes.lastCubeProps.axis:kt=[1,1,1],P[0]=2/ce.drawingBufferWidth,P[1]=2/ce.drawingBufferHeight,Me.bind(),Ke.view=gt,Ke.projection=Nt,Ke.screenSize=P,Ke.highlightId=Ne.highlightId,Ke.highlightScale=Ne.highlightScale,Ke.clipBounds=Ye,Ke.pickGroup=Ne.pickId/255,Ke.pixelRatio=ye;for(var Tt=0;Tt<3;++Tt)if(Ve[Tt]){Ke.scale=Ne.projectScale[Tt],Ke.opacity=Ne.projectOpacity[Tt];for(var St=G,Rt=0;Rt<16;++Rt)St[Rt]=0;for(var Rt=0;Rt<4;++Rt)St[5*Rt]=1;St[5*Tt]=0,kt[Tt]<0?St[12+Tt]=it[0][Tt]:St[12+Tt]=it[1][Tt],c(St,nt,St),Ke.model=St;var Zt=(Tt+1)%3,Et=(Tt+2)%3,Ae=N(A),at=N(B);Ae[Zt]=1,at[Et]=1;var wt=L(Nt,gt,nt,W(F,Ae)),vt=L(Nt,gt,nt,W(U,at));if(Math.abs(wt[1])>Math.abs(vt[1])){var st=wt;wt=vt,vt=st,st=Ae,Ae=at,at=st;var Ue=Zt;Zt=Et,Et=Ue}wt[0]<0&&(Ae[Zt]=-1),vt[1]>0&&(at[Et]=-1);for(var rt=0,$e=0,Rt=0;Rt<4;++Rt)rt+=Math.pow(nt[4*Zt+Rt],2),$e+=Math.pow(nt[4*Et+Rt],2);Ae[Zt]/=Math.sqrt(rt),at[Et]/=Math.sqrt($e),Ke.axes[0]=Ae,Ke.axes[1]=at,Ke.fragClipBounds[0]=re(j,Ye[0],Tt,-1e8),Ke.fragClipBounds[1]=re(j,Ye[1],Tt,1e8),Ne.vao.bind(),Ne.vao.draw(ce.TRIANGLES,Ne.vertexCount),Ne.lineWidth>0&&(ce.lineWidth(Ne.lineWidth*ye),Ne.vao.draw(ce.LINES,Ne.lineVertexCount,Ne.vertexCount)),Ne.vao.unbind()}}var Pe=[-1e8,-1e8,-1e8],Ce=[1e8,1e8,1e8],de=[Pe,Ce];function te(Me,Ne,Fe,ye,Ve,ce,Ke){var nt=Fe.gl;if((ce===Fe.projectHasAlpha||Ke)&&be(Ne,Fe,ye,Ve),ce===Fe.hasAlpha||Ke){Me.bind();var gt=Me.uniforms;gt.model=ye.model||_,gt.view=ye.view||_,gt.projection=ye.projection||_,P[0]=2/nt.drawingBufferWidth,P[1]=2/nt.drawingBufferHeight,gt.screenSize=P,gt.highlightId=Fe.highlightId,gt.highlightScale=Fe.highlightScale,gt.fragClipBounds=de,gt.clipBounds=Fe.axes.bounds,gt.opacity=Fe.opacity,gt.pickGroup=Fe.pickId/255,gt.pixelRatio=Ve,Fe.vao.bind(),Fe.vao.draw(nt.TRIANGLES,Fe.vertexCount),Fe.lineWidth>0&&(nt.lineWidth(Fe.lineWidth*Ve),Fe.vao.draw(nt.LINES,Fe.lineVertexCount,Fe.vertexCount)),Fe.vao.unbind()}}m.draw=function(Me){var Ne=this.useOrtho?this.orthoShader:this.shader;te(Ne,this.projectShader,this,Me,this.pixelRatio,!1,!1)},m.drawTransparent=function(Me){var Ne=this.useOrtho?this.orthoShader:this.shader;te(Ne,this.projectShader,this,Me,this.pixelRatio,!0,!1)},m.drawPick=function(Me){var Ne=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;te(Ne,this.pickProjectShader,this,Me,1,!0,!0)},m.pick=function(Me){if(!Me||Me.id!==this.pickId)return null;var Ne=Me.value[2]+(Me.value[1]<<8)+(Me.value[0]<<16);if(Ne>=this.pointCount||Ne<0)return null;var Fe=this.points[Ne],ye=this._selectResult;ye.index=Ne;for(var Ve=0;Ve<3;++Ve)ye.position[Ve]=ye.dataCoordinate[Ve]=Fe[Ve];return ye},m.highlight=function(Me){if(!Me)this.highlightId=[1,1,1,1];else{var Ne=Me.index,Fe=Ne&255,ye=Ne>>8&255,Ve=Ne>>16&255;this.highlightId=[Fe/255,ye/255,Ve/255,0]}};function ke(Me,Ne,Fe,ye){var Ve;E(Me)?Ne0){var Ut=0,Ie=Et,xe=[0,0,0,1],Oe=[0,0,0,1],Re=E(kt)&&E(kt[0]),De=E(Rt)&&E(Rt[0]);e:for(var ye=0;ye0?1-$e[0][0]:Pt<0?1+$e[1][0]:1,rr*=rr>0?1-$e[0][1]:rr<0?1+$e[1][1]:1;for(var Hr=[Pt,rr],Di=Ue.cells||[],Ii=Ue.positions||[],vt=0;vtthis.buffer.length){u.free(this.buffer);for(var E=this.buffer=u.mallocUint8(f(k*v*4)),T=0;TE)for(v=E;vk)for(v=k;v=0){for(var H=j.type.charAt(j.type.length-1)|0,N=new Array(H),W=0;W=0;)re+=1;U[G]=re}var ae=new Array(E.length);function be(){x.program=f.program(C,x._vref,x._fref,F,U);for(var Pe=0;Pe=0){var m=C.charCodeAt(C.length-1)-48;if(m<2||m>4)throw new s("","Invalid data type for attribute "+x+": "+C);c(p,_,M[0],v,m,k,x)}else if(C.indexOf("mat")>=0){var m=C.charCodeAt(C.length-1)-48;if(m<2||m>4)throw new s("","Invalid data type for attribute "+x+": "+C);h(p,_,M,v,m,k,x)}else throw new s("","Unknown data type for attribute "+x+": "+C);break}}return k}},3327:function(i,a,o){"use strict";var s=o(216),u=o(8866);i.exports=c;function l(h){return function(){return h}}function f(h,d){for(var p=new Array(h),_=0;_4)throw new u("","Invalid data type");switch(re.charAt(0)){case"b":case"i":h["uniform"+ae+"iv"](_[U],G);break;case"v":h["uniform"+ae+"fv"](_[U],G);break;default:throw new u("","Unrecognized data type for vector "+name+": "+re)}}else if(re.indexOf("mat")===0&&re.length===4){if(ae=re.charCodeAt(re.length-1)-48,ae<2||ae>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+re);h["uniformMatrix"+ae+"fv"](_[U],!1,G);break}else throw new u("","Unknown uniform data type for "+name+": "+re)}}}}}function k(C,M){if(typeof M!="object")return[[C,M]];var m=[];for(var P in M){var A=M[P],B=C;parseInt(P)+""===P?B+="["+P+"]":B+="."+P,typeof A=="object"?m.push.apply(m,k(B,A)):m.push([B,A])}return m}function E(C){switch(C){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var M=C.indexOf("vec");if(0<=M&&M<=1&&C.length===4+M){var m=C.charCodeAt(C.length-1)-48;if(m<2||m>4)throw new u("","Invalid data type");return C.charAt(0)==="b"?f(m,!1):f(m,0)}else if(C.indexOf("mat")===0&&C.length===4){var m=C.charCodeAt(C.length-1)-48;if(m<2||m>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+C);return f(m*m,0)}else throw new u("","Unknown uniform data type for "+name+": "+C)}}function T(C,M,m){if(typeof m=="object"){var P=L(m);Object.defineProperty(C,M,{get:l(P),set:v(m),enumerable:!0,configurable:!1})}else _[m]?Object.defineProperty(C,M,{get:b(m),set:v(m),enumerable:!0,configurable:!1}):C[M]=E(p[m].type)}function L(C){var M;if(Array.isArray(C)){M=new Array(C.length);for(var m=0;m1){p[0]in h||(h[p[0]]=[]),h=h[p[0]];for(var _=1;_1)for(var k=0;k0)for(var te=0;teL)return C-1}return C},d=function(T,L,_){return T_?_:T},p=function(T,L,_){var C=L.vectors,M=L.meshgrid,m=T[0],P=T[1],A=T[2],B=M[0].length,F=M[1].length,U=M[2].length,G=h(M[0],m),j=h(M[1],P),H=h(M[2],A),N=G+1,W=j+1,re=H+1;if(G=d(G,0,B-1),N=d(N,0,B-1),j=d(j,0,F-1),W=d(W,0,F-1),H=d(H,0,U-1),re=d(re,0,U-1),G<0||j<0||H<0||N>B-1||W>F-1||re>U-1)return s.create();var ae=M[0][G],be=M[0][N],Pe=M[1][j],Ce=M[1][W],de=M[2][H],te=M[2][re],ke=(m-ae)/(be-ae),Ee=(P-Pe)/(Ce-Pe),Me=(A-de)/(te-de);isFinite(ke)||(ke=.5),isFinite(Ee)||(Ee=.5),isFinite(Me)||(Me=.5);var Ne,Fe,ye,Ve,ce,Ye;switch(_.reversedX&&(G=B-1-G,N=B-1-N),_.reversedY&&(j=F-1-j,W=F-1-W),_.reversedZ&&(H=U-1-H,re=U-1-re),_.filled){case 5:ce=H,Ye=re,ye=j*U,Ve=W*U,Ne=G*U*F,Fe=N*U*F;break;case 4:ce=H,Ye=re,Ne=G*U,Fe=N*U,ye=j*U*B,Ve=W*U*B;break;case 3:ye=j,Ve=W,ce=H*F,Ye=re*F,Ne=G*F*U,Fe=N*F*U;break;case 2:ye=j,Ve=W,Ne=G*F,Fe=N*F,ce=H*F*B,Ye=re*F*B;break;case 1:Ne=G,Fe=N,ce=H*B,Ye=re*B,ye=j*B*U,Ve=W*B*U;break;default:Ne=G,Fe=N,ye=j*B,Ve=W*B,ce=H*B*F,Ye=re*B*F;break}var nt=C[Ne+ye+ce],gt=C[Ne+ye+Ye],Nt=C[Ne+Ve+ce],it=C[Ne+Ve+Ye],Ke=C[Fe+ye+ce],kt=C[Fe+ye+Ye],Tt=C[Fe+Ve+ce],St=C[Fe+Ve+Ye],Dt=s.create(),Zt=s.create(),Et=s.create(),Ae=s.create();s.lerp(Dt,nt,Ke,ke),s.lerp(Zt,gt,kt,ke),s.lerp(Et,Nt,Tt,ke),s.lerp(Ae,it,St,ke);var at=s.create(),wt=s.create();s.lerp(at,Dt,Et,Ee),s.lerp(wt,Zt,Ae,Ee);var vt=s.create();return s.lerp(vt,at,wt,Me),vt},x=function(T,L){var _=L[0],C=L[1],M=L[2];return T[0]=_<0?-_:_,T[1]=C<0?-C:C,T[2]=M<0?-M:M,T},b=function(T){var L=1/0;T.sort(function(m,P){return m-P});for(var _=T.length,C=1;C<_;C++){var M=Math.abs(T[C]-T[C-1]);MN||StW||Dtre)},be=s.distance(L[0],L[1]),Pe=10*be/C,Ce=Pe*Pe,de=1,te=0,ke=_.length;ke>1&&(de=v(_));for(var Ee=0;Eete&&(te=nt),ce.push(nt),U.push({points:Ne,velocities:Fe,divergences:ce});for(var gt=0;gtCe&&s.scale(Nt,Nt,Pe/Math.sqrt(it)),s.add(Nt,Nt,Me),ye=B(Nt),s.squaredDistance(Ve,Nt)-Ce>-1e-4*Ce){Ne.push(Nt),Ve=Nt,Fe.push(ye);var Ye=F(Nt,ye),nt=s.length(Ye);isFinite(nt)&&nt>te&&(te=nt),ce.push(nt)}Me=Nt}}var Ke=c(U,T.colormap,te,de);return m?Ke.tubeScale=m:(te===0&&(te=1),Ke.tubeScale=M*.5*de/te),Ke};var k=o(6740),E=o(6405).createMesh;i.exports.createTubeMesh=function(T,L){return E(T,L,{shaders:k,traceType:"streamtube"})}},990:function(i,a,o){var s=o(9405),u=o(3236),l=u([`precision highp float; +}`]);a.meshShader={vertex:u,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},a.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815:function(i,a,o){"use strict";var s=o(2931),u=o(9970),l=["xyz","xzy","yxz","yzx","zxy","zyx"],f=function(T,L,x,C){for(var M=T.points,m=T.velocities,P=T.divergences,A=[],B=[],F=[],U=[],G=[],j=[],H=0,N=0,W=u.create(),re=u.create(),ae=8,be=0;be0)for(var te=0;teL)return C-1}return C},d=function(T,L,x){return Tx?x:T},p=function(T,L,x){var C=L.vectors,M=L.meshgrid,m=T[0],P=T[1],A=T[2],B=M[0].length,F=M[1].length,U=M[2].length,G=h(M[0],m),j=h(M[1],P),H=h(M[2],A),N=G+1,W=j+1,re=H+1;if(G=d(G,0,B-1),N=d(N,0,B-1),j=d(j,0,F-1),W=d(W,0,F-1),H=d(H,0,U-1),re=d(re,0,U-1),G<0||j<0||H<0||N>B-1||W>F-1||re>U-1)return s.create();var ae=M[0][G],be=M[0][N],Pe=M[1][j],Ce=M[1][W],de=M[2][H],te=M[2][re],ke=(m-ae)/(be-ae),Ee=(P-Pe)/(Ce-Pe),Me=(A-de)/(te-de);isFinite(ke)||(ke=.5),isFinite(Ee)||(Ee=.5),isFinite(Me)||(Me=.5);var Ne,Fe,ye,Ve,ce,Ke;switch(x.reversedX&&(G=B-1-G,N=B-1-N),x.reversedY&&(j=F-1-j,W=F-1-W),x.reversedZ&&(H=U-1-H,re=U-1-re),x.filled){case 5:ce=H,Ke=re,ye=j*U,Ve=W*U,Ne=G*U*F,Fe=N*U*F;break;case 4:ce=H,Ke=re,Ne=G*U,Fe=N*U,ye=j*U*B,Ve=W*U*B;break;case 3:ye=j,Ve=W,ce=H*F,Ke=re*F,Ne=G*F*U,Fe=N*F*U;break;case 2:ye=j,Ve=W,Ne=G*F,Fe=N*F,ce=H*F*B,Ke=re*F*B;break;case 1:Ne=G,Fe=N,ce=H*B,Ke=re*B,ye=j*B*U,Ve=W*B*U;break;default:Ne=G,Fe=N,ye=j*B,Ve=W*B,ce=H*B*F,Ke=re*B*F;break}var nt=C[Ne+ye+ce],gt=C[Ne+ye+Ke],Nt=C[Ne+Ve+ce],it=C[Ne+Ve+Ke],Ye=C[Fe+ye+ce],kt=C[Fe+ye+Ke],Tt=C[Fe+Ve+ce],St=C[Fe+Ve+Ke],Rt=s.create(),Zt=s.create(),Et=s.create(),Ae=s.create();s.lerp(Rt,nt,Ye,ke),s.lerp(Zt,gt,kt,ke),s.lerp(Et,Nt,Tt,ke),s.lerp(Ae,it,St,ke);var at=s.create(),wt=s.create();s.lerp(at,Rt,Et,Ee),s.lerp(wt,Zt,Ae,Ee);var vt=s.create();return s.lerp(vt,at,wt,Me),vt},_=function(T,L){var x=L[0],C=L[1],M=L[2];return T[0]=x<0?-x:x,T[1]=C<0?-C:C,T[2]=M<0?-M:M,T},b=function(T){var L=1/0;T.sort(function(m,P){return m-P});for(var x=T.length,C=1;CN||StW||Rtre)},be=s.distance(L[0],L[1]),Pe=10*be/C,Ce=Pe*Pe,de=1,te=0,ke=x.length;ke>1&&(de=v(x));for(var Ee=0;Eete&&(te=nt),ce.push(nt),U.push({points:Ne,velocities:Fe,divergences:ce});for(var gt=0;gtCe&&s.scale(Nt,Nt,Pe/Math.sqrt(it)),s.add(Nt,Nt,Me),ye=B(Nt),s.squaredDistance(Ve,Nt)-Ce>-1e-4*Ce){Ne.push(Nt),Ve=Nt,Fe.push(ye);var Ke=F(Nt,ye),nt=s.length(Ke);isFinite(nt)&&nt>te&&(te=nt),ce.push(nt)}Me=Nt}}var Ye=c(U,T.colormap,te,de);return m?Ye.tubeScale=m:(te===0&&(te=1),Ye.tubeScale=M*.5*de/te),Ye};var k=o(6740),E=o(6405).createMesh;i.exports.createTubeMesh=function(T,L){return E(T,L,{shaders:k,traceType:"streamtube"})}},990:function(i,a,o){var s=o(9405),u=o(3236),l=u([`precision highp float; #define GLSLIFY 1 attribute vec4 uv; @@ -1999,15 +1999,15 @@ void main() { vec2 uy = splitFloat(planeCoordinate.y / shape.y); gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); } -`]);a.createShader=function(d){var p=s(d,l,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},a.createPickShader=function(d){var p=s(d,l,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},a.createContourShader=function(d){var p=s(d,c,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p},a.createPickContourShader=function(d){var p=s(d,c,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p}},9499:function(i,a,o){"use strict";i.exports=Ne;var s=o(8828),u=o(2762),l=o(8116),f=o(7766),c=o(1888),h=o(6729),d=o(5298),p=o(9994),x=o(9618),b=o(3711),v=o(6760),k=o(7608),E=o(2478),T=o(6199),L=o(990),_=L.createShader,C=L.createContourShader,M=L.createPickShader,m=L.createPickContourShader,P=4*10,A=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],B=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],F=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var Fe=0;Fe<3;++Fe){var ye=F[Fe],Ve=(Fe+1)%3,ce=(Fe+2)%3;ye[Ve+0]=1,ye[ce+3]=1,ye[Fe+6]=1}})();function U(Fe,ye,Ve,ce,Ye){this.position=Fe,this.index=ye,this.uv=Ve,this.level=ce,this.dataCoordinate=Ye}var G=256;function j(Fe,ye,Ve,ce,Ye,nt,gt,Nt,it,Ke,kt,Tt,St,Dt,Zt){this.gl=Fe,this.shape=ye,this.bounds=Ve,this.objectOffset=Zt,this.intensityBounds=[],this._shader=ce,this._pickShader=Ye,this._coordinateBuffer=nt,this._vao=gt,this._colorMap=Nt,this._contourShader=it,this._contourPickShader=Ke,this._contourBuffer=kt,this._contourVAO=Tt,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new U([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=St,this._dynamicVAO=Dt,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[x(c.mallocFloat(1024),[0,0]),x(c.mallocFloat(1024),[0,0]),x(c.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var H=j.prototype;H.genColormap=function(Fe,ye){var Ve=!1,ce=p([h({colormap:Fe,nshades:G,format:"rgba"}).map(function(Ye,nt){var gt=ye?N(nt/255,ye):Ye[3];return gt<1&&(Ve=!0),[Ye[0],Ye[1],Ye[2],255*gt]})]);return d.divseq(ce,255),this.hasAlphaScale=Ve,ce},H.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},H.isOpaque=function(){return!this.isTransparent()},H.pickSlots=1,H.setPickBase=function(Fe){this.pickId=Fe};function N(Fe,ye){if(!ye||!ye.length)return 1;for(var Ve=0;VeFe&&Ve>0){var ce=(ye[Ve][0]-Fe)/(ye[Ve][0]-ye[Ve-1][0]);return ye[Ve][1]*(1-ce)+ce*ye[Ve-1][1]}}return 1}var W=[0,0,0],re={showSurface:!1,showContour:!1,projections:[A.slice(),A.slice(),A.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function ae(Fe,ye){var Ve,ce,Ye,nt=ye.axes&&ye.axes.lastCubeProps.axis||W,gt=ye.showSurface,Nt=ye.showContour;for(Ve=0;Ve<3;++Ve)for(gt=gt||ye.surfaceProject[Ve],ce=0;ce<3;++ce)Nt=Nt||ye.contourProject[Ve][ce];for(Ve=0;Ve<3;++Ve){var it=re.projections[Ve];for(ce=0;ce<16;++ce)it[ce]=0;for(ce=0;ce<4;++ce)it[5*ce]=1;it[5*Ve]=0,it[12+Ve]=ye.axesBounds[+(nt[Ve]>0)][Ve],v(it,Fe.model,it);var Ke=re.clipBounds[Ve];for(Ye=0;Ye<2;++Ye)for(ce=0;ce<3;++ce)Ke[Ye][ce]=Fe.clipBounds[Ye][ce];Ke[0][Ve]=-1e8,Ke[1][Ve]=1e8}return re.showSurface=gt,re.showContour=Nt,re}var be={model:A,view:A,projection:A,inverseModel:A.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},Pe=A.slice(),Ce=[1,0,0,0,1,0,0,0,1];function de(Fe,ye){Fe=Fe||{};var Ve=this.gl;Ve.disable(Ve.CULL_FACE),this._colorMap.bind(0);var ce=be;ce.model=Fe.model||A,ce.view=Fe.view||A,ce.projection=Fe.projection||A,ce.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ce.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ce.objectOffset=this.objectOffset,ce.contourColor=this.contourColor[0],ce.inverseModel=k(ce.inverseModel,ce.model);for(var Ye=0;Ye<2;++Ye)for(var nt=ce.clipBounds[Ye],gt=0;gt<3;++gt)nt[gt]=Math.min(Math.max(this.clipBounds[Ye][gt],-1e8),1e8);ce.kambient=this.ambientLight,ce.kdiffuse=this.diffuseLight,ce.kspecular=this.specularLight,ce.roughness=this.roughness,ce.fresnel=this.fresnel,ce.opacity=this.opacity,ce.height=0,ce.permutation=Ce,ce.vertexColor=this.vertexColor;var Nt=Pe;for(v(Nt,ce.view,ce.model),v(Nt,ce.projection,Nt),k(Nt,Nt),Ye=0;Ye<3;++Ye)ce.eyePosition[Ye]=Nt[12+Ye]/Nt[15];var it=Nt[15];for(Ye=0;Ye<3;++Ye)it+=this.lightPosition[Ye]*Nt[4*Ye+3];for(Ye=0;Ye<3;++Ye){var Ke=Nt[12+Ye];for(gt=0;gt<3;++gt)Ke+=Nt[4*gt+Ye]*this.lightPosition[gt];ce.lightPosition[Ye]=Ke/it}var kt=ae(ce,this);if(kt.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Ve.TRIANGLES,this._vertexCount),Ye=0;Ye<3;++Ye)!this.surfaceProject[Ye]||!this.vertexCount||(this._shader.uniforms.model=kt.projections[Ye],this._shader.uniforms.clipBounds=kt.clipBounds[Ye],this._vao.draw(Ve.TRIANGLES,this._vertexCount));this._vao.unbind()}if(kt.showContour){var Tt=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,Tt.bind(),Tt.uniforms=ce;var St=this._contourVAO;for(St.bind(),Ye=0;Ye<3;++Ye)for(Tt.uniforms.permutation=F[Ye],Ve.lineWidth(this.contourWidth[Ye]*this.pixelRatio),gt=0;gt>4)/16)/255,Ye=Math.floor(ce),nt=ce-Ye,gt=ye[1]*(Fe.value[1]+(Fe.value[2]&15)/16)/255,Nt=Math.floor(gt),it=gt-Nt;Ye+=1,Nt+=1;var Ke=Ve.position;Ke[0]=Ke[1]=Ke[2]=0;for(var kt=0;kt<2;++kt)for(var Tt=kt?nt:1-nt,St=0;St<2;++St)for(var Dt=St?it:1-it,Zt=Ye+kt,Et=Nt+St,Ae=Tt*Dt,at=0;at<3;++at)Ke[at]+=this._field[at].get(Zt,Et)*Ae;for(var wt=this._pickResult.level,vt=0;vt<3;++vt)if(wt[vt]=E.le(this.contourLevels[vt],Ke[vt]),wt[vt]<0)this.contourLevels[vt].length>0&&(wt[vt]=0);else if(wt[vt]Math.abs(Ue-Ke[vt])&&(wt[vt]+=1)}for(Ve.index[0]=nt<.5?Ye:Ye+1,Ve.index[1]=it<.5?Nt:Nt+1,Ve.uv[0]=ce/ye[0],Ve.uv[1]=gt/ye[1],at=0;at<3;++at)Ve.dataCoordinate[at]=this._field[at].get(Ve.index[0],Ve.index[1]);return Ve},H.padField=function(Fe,ye){var Ve=ye.shape.slice(),ce=Fe.shape.slice();d.assign(Fe.lo(1,1).hi(Ve[0],Ve[1]),ye),d.assign(Fe.lo(1).hi(Ve[0],1),ye.hi(Ve[0],1)),d.assign(Fe.lo(1,ce[1]-1).hi(Ve[0],1),ye.lo(0,Ve[1]-1).hi(Ve[0],1)),d.assign(Fe.lo(0,1).hi(1,Ve[1]),ye.hi(1)),d.assign(Fe.lo(ce[0]-1,1).hi(1,Ve[1]),ye.lo(Ve[0]-1)),Fe.set(0,0,ye.get(0,0)),Fe.set(0,ce[1]-1,ye.get(0,Ve[1]-1)),Fe.set(ce[0]-1,0,ye.get(Ve[0]-1,0)),Fe.set(ce[0]-1,ce[1]-1,ye.get(Ve[0]-1,Ve[1]-1))};function ke(Fe,ye){return Array.isArray(Fe)?[ye(Fe[0]),ye(Fe[1]),ye(Fe[2])]:[ye(Fe),ye(Fe),ye(Fe)]}function Ee(Fe){return Array.isArray(Fe)?Fe.length===3?[Fe[0],Fe[1],Fe[2],1]:[Fe[0],Fe[1],Fe[2],Fe[3]]:[0,0,0,1]}function Me(Fe){if(Array.isArray(Fe)){if(Array.isArray(Fe))return[Ee(Fe[0]),Ee(Fe[1]),Ee(Fe[2])];var ye=Ee(Fe);return[ye.slice(),ye.slice(),ye.slice()]}}H.update=function(Fe){Fe=Fe||{},this.objectOffset=Fe.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Fe&&(this.contourWidth=ke(Fe.contourWidth,Number)),"showContour"in Fe&&(this.showContour=ke(Fe.showContour,Boolean)),"showSurface"in Fe&&(this.showSurface=!!Fe.showSurface),"contourTint"in Fe&&(this.contourTint=ke(Fe.contourTint,Boolean)),"contourColor"in Fe&&(this.contourColor=Me(Fe.contourColor)),"contourProject"in Fe&&(this.contourProject=ke(Fe.contourProject,function(Vi){return ke(Vi,Boolean)})),"surfaceProject"in Fe&&(this.surfaceProject=Fe.surfaceProject),"dynamicColor"in Fe&&(this.dynamicColor=Me(Fe.dynamicColor)),"dynamicTint"in Fe&&(this.dynamicTint=ke(Fe.dynamicTint,Number)),"dynamicWidth"in Fe&&(this.dynamicWidth=ke(Fe.dynamicWidth,Number)),"opacity"in Fe&&(this.opacity=Fe.opacity),"opacityscale"in Fe&&(this.opacityscale=Fe.opacityscale),"colorBounds"in Fe&&(this.colorBounds=Fe.colorBounds),"vertexColor"in Fe&&(this.vertexColor=Fe.vertexColor?1:0),"colormap"in Fe&&this._colorMap.setPixels(this.genColormap(Fe.colormap,this.opacityscale));var ye=Fe.field||Fe.coords&&Fe.coords[2]||null,Ve=!1;if(ye||(this._field[2].shape[0]||this._field[2].shape[2]?ye=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):ye=this._field[2].hi(0,0)),"field"in Fe||"coords"in Fe){var ce=(ye.shape[0]+2)*(ye.shape[1]+2);ce>this._field[2].data.length&&(c.freeFloat(this._field[2].data),this._field[2].data=c.mallocFloat(s.nextPow2(ce))),this._field[2]=x(this._field[2].data,[ye.shape[0]+2,ye.shape[1]+2]),this.padField(this._field[2],ye),this.shape=ye.shape.slice();for(var Ye=this.shape,nt=0;nt<2;++nt)this._field[2].size>this._field[nt].data.length&&(c.freeFloat(this._field[nt].data),this._field[nt].data=c.mallocFloat(this._field[2].size)),this._field[nt]=x(this._field[nt].data,[Ye[0]+2,Ye[1]+2]);if(Fe.coords){var gt=Fe.coords;if(!Array.isArray(gt)||gt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(nt=0;nt<2;++nt){var Nt=gt[nt];for(St=0;St<2;++St)if(Nt.shape[St]!==Ye[St])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[nt],Nt)}}else if(Fe.ticks){var it=Fe.ticks;if(!Array.isArray(it)||it.length!==2)throw new Error("gl-surface: invalid ticks");for(nt=0;nt<2;++nt){var Ke=it[nt];if((Array.isArray(Ke)||Ke.length)&&(Ke=x(Ke)),Ke.shape[0]!==Ye[nt])throw new Error("gl-surface: invalid tick length");var kt=x(Ke.data,Ye);kt.stride[nt]=Ke.stride[0],kt.stride[nt^1]=0,this.padField(this._field[nt],kt)}}else{for(nt=0;nt<2;++nt){var Tt=[0,0];Tt[nt]=1,this._field[nt]=x(this._field[nt].data,[Ye[0]+2,Ye[1]+2],Tt,0)}this._field[0].set(0,0,0);for(var St=0;St0){for(var yi=0;yi<5;++yi)Dr.pop();Re-=1}continue e}}}Di.push(Re)}this._contourOffsets[Mr]=di,this._contourCounts[Mr]=Di}var Ei=c.mallocFloat(Dr.length);for(nt=0;ntU||B<0||B>U)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[A,B],P.bind(),F.texImage2D(F.TEXTURE_2D,0,P.format,A,B,0,P.format,P.type,null),P._mipLevels=[0],P}function v(P,A,B,F,U,G){this.gl=P,this.handle=A,this.format=U,this.type=G,this._shape=[B,F],this._mipLevels=[0],this._magFilter=P.NEAREST,this._minFilter=P.NEAREST,this._wrapS=P.CLAMP_TO_EDGE,this._wrapT=P.CLAMP_TO_EDGE,this._anisoSamples=1;var j=this,H=[this._wrapS,this._wrapT];Object.defineProperties(H,[{get:function(){return j._wrapS},set:function(W){return j.wrapS=W}},{get:function(){return j._wrapT},set:function(W){return j.wrapT=W}}]),this._wrapVector=H;var N=[this._shape[0],this._shape[1]];Object.defineProperties(N,[{get:function(){return j._shape[0]},set:function(W){return j.width=W}},{get:function(){return j._shape[1]},set:function(W){return j.height=W}}]),this._shapeVector=N}var k=v.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(P){this.bind();var A=this.gl;if(this.type===A.FLOAT&&f.indexOf(P)>=0&&(A.getExtension("OES_texture_float_linear")||(P=A.NEAREST)),c.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var A=this.gl;if(this.type===A.FLOAT&&f.indexOf(P)>=0&&(A.getExtension("OES_texture_float_linear")||(P=A.NEAREST)),c.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var A=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,A!==this._anisoSamples){var B=this.gl.getExtension("EXT_texture_filter_anisotropic");B&&this.gl.texParameterf(this.gl.TEXTURE_2D,B.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,P),this._wrapS=P}},wrapT:{get:function(){return this._wrapT},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,P),this._wrapT=P}},wrap:{get:function(){return this._wrapVector},set:function(P){if(Array.isArray(P)||(P=[P,P]),P.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var A=0;A<2;++A)if(h.indexOf(P[A])<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);this._wrapS=P[0],this._wrapT=P[1];var B=this.gl;return this.bind(),B.texParameteri(B.TEXTURE_2D,B.TEXTURE_WRAP_S,this._wrapS),B.texParameteri(B.TEXTURE_2D,B.TEXTURE_WRAP_T,this._wrapT),P}},shape:{get:function(){return this._shapeVector},set:function(P){if(!Array.isArray(P))P=[P|0,P|0];else if(P.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return b(this,P[0]|0,P[1]|0),[P[0]|0,P[1]|0]}},width:{get:function(){return this._shape[0]},set:function(P){return P=P|0,b(this,P,this._shape[1]),P}},height:{get:function(){return this._shape[1]},set:function(P){return P=P|0,b(this,this._shape[0],P),P}}}),k.bind=function(P){var A=this.gl;return P!==void 0&&A.activeTexture(A.TEXTURE0+(P|0)),A.bindTexture(A.TEXTURE_2D,this.handle),P!==void 0?P|0:A.getParameter(A.ACTIVE_TEXTURE)-A.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var P=Math.min(this._shape[0],this._shape[1]),A=0;P>0;++A,P>>>=1)this._mipLevels.indexOf(A)<0&&this._mipLevels.push(A)},k.setPixels=function(P,A,B,F){var U=this.gl;this.bind(),Array.isArray(A)?(F=B,B=A[1]|0,A=A[0]|0):(A=A||0,B=B||0),F=F||0;var G=p(P)?P:P.raw;if(G){var j=this._mipLevels.indexOf(F)<0;j?(U.texImage2D(U.TEXTURE_2D,0,this.format,this.format,this.type,G),this._mipLevels.push(F)):U.texSubImage2D(U.TEXTURE_2D,F,A,B,this.format,this.type,G)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||A+P.shape[1]>this._shape[1]>>>F||B+P.shape[0]>this._shape[0]>>>F||A<0||B<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");T(U,A,B,F,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function E(P,A){return P.length===3?A[2]===1&&A[1]===P[0]*P[2]&&A[0]===P[2]:A[0]===1&&A[1]===P[0]}function T(P,A,B,F,U,G,j,H){var N=H.dtype,W=H.shape.slice();if(W.length<2||W.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var re=0,ae=0,be=E(W,H.stride.slice());N==="float32"?re=P.FLOAT:N==="float64"?(re=P.FLOAT,be=!1,N="float32"):N==="uint8"?re=P.UNSIGNED_BYTE:(re=P.UNSIGNED_BYTE,be=!1,N="uint8");var Pe=1;if(W.length===2)ae=P.LUMINANCE,W=[W[0],W[1],1],H=s(H.data,W,[H.stride[0],H.stride[1],1],H.offset);else if(W.length===3){if(W[2]===1)ae=P.ALPHA;else if(W[2]===2)ae=P.LUMINANCE_ALPHA;else if(W[2]===3)ae=P.RGB;else if(W[2]===4)ae=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Pe=W[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((ae===P.LUMINANCE||ae===P.ALPHA)&&(U===P.LUMINANCE||U===P.ALPHA)&&(ae=U),ae!==U)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var Ce=H.size,de=j.indexOf(F)<0;if(de&&j.push(F),re===G&&be)H.offset===0&&H.data.length===Ce?de?P.texImage2D(P.TEXTURE_2D,F,U,W[0],W[1],0,U,G,H.data):P.texSubImage2D(P.TEXTURE_2D,F,A,B,W[0],W[1],U,G,H.data):de?P.texImage2D(P.TEXTURE_2D,F,U,W[0],W[1],0,U,G,H.data.subarray(H.offset,H.offset+Ce)):P.texSubImage2D(P.TEXTURE_2D,F,A,B,W[0],W[1],U,G,H.data.subarray(H.offset,H.offset+Ce));else{var te;G===P.FLOAT?te=l.mallocFloat32(Ce):te=l.mallocUint8(Ce);var ke=s(te,W,[W[2],W[2]*W[0],1]);re===P.FLOAT&&G===P.UNSIGNED_BYTE?x(ke,H):u.assign(ke,H),de?P.texImage2D(P.TEXTURE_2D,F,U,W[0],W[1],0,U,G,te.subarray(0,Ce)):P.texSubImage2D(P.TEXTURE_2D,F,A,B,W[0],W[1],U,G,te.subarray(0,Ce)),G===P.FLOAT?l.freeFloat32(te):l.freeUint8(te)}}function L(P){var A=P.createTexture();return P.bindTexture(P.TEXTURE_2D,A),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),A}function _(P,A,B,F,U){var G=P.getParameter(P.MAX_TEXTURE_SIZE);if(A<0||A>G||B<0||B>G)throw new Error("gl-texture2d: Invalid texture shape");if(U===P.FLOAT&&!P.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var j=L(P);return P.texImage2D(P.TEXTURE_2D,0,F,A,B,0,F,U,null),new v(P,j,A,B,F,U)}function C(P,A,B,F,U,G){var j=L(P);return P.texImage2D(P.TEXTURE_2D,0,U,U,G,A),new v(P,j,B,F,U,G)}function M(P,A){var B=A.dtype,F=A.shape.slice(),U=P.getParameter(P.MAX_TEXTURE_SIZE);if(F[0]<0||F[0]>U||F[1]<0||F[1]>U)throw new Error("gl-texture2d: Invalid texture size");var G=E(F,A.stride.slice()),j=0;B==="float32"?j=P.FLOAT:B==="float64"?(j=P.FLOAT,G=!1,B="float32"):B==="uint8"?j=P.UNSIGNED_BYTE:(j=P.UNSIGNED_BYTE,G=!1,B="uint8");var H=0;if(F.length===2)H=P.LUMINANCE,F=[F[0],F[1],1],A=s(A.data,F,[A.stride[0],A.stride[1],1],A.offset);else if(F.length===3)if(F[2]===1)H=P.ALPHA;else if(F[2]===2)H=P.LUMINANCE_ALPHA;else if(F[2]===3)H=P.RGB;else if(F[2]===4)H=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");j===P.FLOAT&&!P.getExtension("OES_texture_float")&&(j=P.UNSIGNED_BYTE,G=!1);var N,W,re=A.size;if(G)A.offset===0&&A.data.length===re?N=A.data:N=A.data.subarray(A.offset,A.offset+re);else{var ae=[F[2],F[2]*F[0],1];W=l.malloc(re,B);var be=s(W,F,ae,0);(B==="float32"||B==="float64")&&j===P.UNSIGNED_BYTE?x(be,A):u.assign(be,A),N=W.subarray(0,re)}var Pe=L(P);return P.texImage2D(P.TEXTURE_2D,0,H,F[0],F[1],0,H,j,N),G||l.free(W),new v(P,Pe,F[0],F[1],H,j)}function m(P){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||d(P),typeof arguments[1]=="number")return _(P,arguments[1],arguments[2],arguments[3]||P.RGBA,arguments[4]||P.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return _(P,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var A=arguments[1],B=p(A)?A:A.raw;if(B)return C(P,B,A.width|0,A.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(A.shape&&A.data&&A.stride)return M(P,A)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(i){"use strict";function a(o,s,u){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var l=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>l)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(x)}},9226:function(i){i.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}},3126:function(i){i.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}},3990:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091:function(i){i.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2];return o[0]=f*p-c*d,o[1]=c*h-l*p,o[2]=l*d-f*h,o}},5455:function(i,a,o){i.exports=o(7056)},7056:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2];return Math.sqrt(u*u+l*l+f*f)}},4008:function(i,a,o){i.exports=o(6690)},6690:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]/u[0],o[1]=s[1]/u[1],o[2]=s[2]/u[2],o}},244:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613:function(i){i.exports=1e-6},9922:function(i,a,o){i.exports=u;var s=o(2613);function u(l,f){var c=l[0],h=l[1],d=l[2],p=f[0],x=f[1],b=f[2];return Math.abs(c-p)<=s*Math.max(1,Math.abs(c),Math.abs(p))&&Math.abs(h-x)<=s*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(d-b)<=s*Math.max(1,Math.abs(d),Math.abs(b))}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681:function(i){i.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}},5137:function(i,a,o){i.exports=u;var s=o(1091)();function u(l,f,c,h,d,p){var x,b;for(f||(f=3),c||(c=0),h?b=Math.min(h*f+c,l.length):b=l.length,x=c;x0&&(c=1/Math.sqrt(c),o[0]=s[0]*c,o[1]=s[1]*c,o[2]=s[2]*c),o}},7636:function(i){i.exports=a;function a(o,s){s=s||1;var u=Math.random()*2*Math.PI,l=Math.random()*2-1,f=Math.sqrt(1-l*l)*s;return o[0]=Math.cos(u)*f,o[1]=Math.sin(u)*f,o[2]=l*s,o}},6894:function(i){i.exports=a;function a(o,s,u,l){var f=u[1],c=u[2],h=s[1]-f,d=s[2]-c,p=Math.sin(l),x=Math.cos(l);return o[0]=s[0],o[1]=f+h*x-d*p,o[2]=c+h*p+d*x,o}},109:function(i){i.exports=a;function a(o,s,u,l){var f=u[0],c=u[2],h=s[0]-f,d=s[2]-c,p=Math.sin(l),x=Math.cos(l);return o[0]=f+d*p+h*x,o[1]=s[1],o[2]=c+d*x-h*p,o}},8692:function(i){i.exports=a;function a(o,s,u,l){var f=u[0],c=u[1],h=s[0]-f,d=s[1]-c,p=Math.sin(l),x=Math.cos(l);return o[0]=f+h*x-d*p,o[1]=c+h*p+d*x,o[2]=s[2],o}},2447:function(i){i.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}},6621:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u,o[1]=s[1]*u,o[2]=s[2]*u,o}},8489:function(i){i.exports=a;function a(o,s,u,l){return o[0]=s[0]+u[0]*l,o[1]=s[1]+u[1]*l,o[2]=s[2]+u[2]*l,o}},1463:function(i){i.exports=a;function a(o,s,u,l){return o[0]=s,o[1]=u,o[2]=l,o}},6141:function(i,a,o){i.exports=o(2953)},5486:function(i,a,o){i.exports=o(3066)},2953:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2];return u*u+l*l+f*f}},3066:function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2];return s*s+u*u+l*l}},2229:function(i,a,o){i.exports=o(6843)},6843:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]-u[0],o[1]=s[1]-u[1],o[2]=s[2]-u[2],o}},492:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2];return o[0]=l*u[0]+f*u[3]+c*u[6],o[1]=l*u[1]+f*u[4]+c*u[7],o[2]=l*u[2]+f*u[5]+c*u[8],o}},5673:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[3]*l+u[7]*f+u[11]*c+u[15];return h=h||1,o[0]=(u[0]*l+u[4]*f+u[8]*c+u[12])/h,o[1]=(u[1]*l+u[5]*f+u[9]*c+u[13])/h,o[2]=(u[2]*l+u[6]*f+u[10]*c+u[14])/h,o}},264:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2],x=u[3],b=x*l+d*c-p*f,v=x*f+p*l-h*c,k=x*c+h*f-d*l,E=-h*l-d*f-p*c;return o[0]=b*x+E*-h+v*-p-k*-d,o[1]=v*x+E*-d+k*-h-b*-p,o[2]=k*x+E*-p+b*-d-v*-h,o}},4361:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]+u[0],o[1]=s[1]+u[1],o[2]=s[2]+u[2],o[3]=s[3]+u[3],o}},2335:function(i){i.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}},2933:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}},7536:function(i){i.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return Math.sqrt(u*u+l*l+f*f+c*c)}},1373:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]/u[0],o[1]=s[1]/u[1],o[2]=s[2]/u[2],o[3]=s[3]/u[3],o}},3750:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390:function(i){i.exports=a;function a(o,s,u,l){var f=new Float32Array(4);return f[0]=o,f[1]=s,f[2]=u,f[3]=l,f}},9970:function(i,a,o){i.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}},4494:function(i){i.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}},6808:function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2],f=o[3];return Math.sqrt(s*s+u*u+l*l+f*f)}},2573:function(i){i.exports=a;function a(o,s,u,l){var f=s[0],c=s[1],h=s[2],d=s[3];return o[0]=f+l*(u[0]-f),o[1]=c+l*(u[1]-c),o[2]=h+l*(u[2]-h),o[3]=d+l*(u[3]-d),o}},160:function(i){i.exports=a;function a(o,s,u){return o[0]=Math.max(s[0],u[0]),o[1]=Math.max(s[1],u[1]),o[2]=Math.max(s[2],u[2]),o[3]=Math.max(s[3],u[3]),o}},2334:function(i){i.exports=a;function a(o,s,u){return o[0]=Math.min(s[0],u[0]),o[1]=Math.min(s[1],u[1]),o[2]=Math.min(s[2],u[2]),o[3]=Math.min(s[3],u[3]),o}},3576:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u[0],o[1]=s[1]*u[1],o[2]=s[2]*u[2],o[3]=s[3]*u[3],o}},1498:function(i){i.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}},5177:function(i){i.exports=a;function a(o,s){var u=s[0],l=s[1],f=s[2],c=s[3],h=u*u+l*l+f*f+c*c;return h>0&&(h=1/Math.sqrt(h),o[0]=u*h,o[1]=l*h,o[2]=f*h,o[3]=c*h),o}},9131:function(i,a,o){var s=o(5177),u=o(9288);i.exports=l;function l(f,c){return c=c||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),s(f,f),u(f,f,c),f}},9288:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u,o[1]=s[1]*u,o[2]=s[2]*u,o[3]=s[3]*u,o}},4844:function(i){i.exports=a;function a(o,s,u,l){return o[0]=s[0]+u[0]*l,o[1]=s[1]+u[1]*l,o[2]=s[2]+u[2]*l,o[3]=s[3]+u[3]*l,o}},4578:function(i){i.exports=a;function a(o,s,u,l,f){return o[0]=s,o[1]=u,o[2]=l,o[3]=f,o}},7960:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return u*u+l*l+f*f+c*c}},483:function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2],f=o[3];return s*s+u*u+l*l+f*f}},6860:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]-u[0],o[1]=s[1]-u[1],o[2]=s[2]-u[2],o[3]=s[3]-u[3],o}},5352:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=s[3];return o[0]=u[0]*l+u[4]*f+u[8]*c+u[12]*h,o[1]=u[1]*l+u[5]*f+u[9]*c+u[13]*h,o[2]=u[2]*l+u[6]*f+u[10]*c+u[14]*h,o[3]=u[3]*l+u[7]*f+u[11]*c+u[15]*h,o}},4041:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2],x=u[3],b=x*l+d*c-p*f,v=x*f+p*l-h*c,k=x*c+h*f-d*l,E=-h*l-d*f-p*c;return o[0]=b*x+E*-h+v*-p-k*-d,o[1]=v*x+E*-d+k*-h-b*-p,o[2]=k*x+E*-p+b*-d-v*-h,o[3]=s[3],o}},1848:function(i,a,o){var s=o(4905),u=o(6468);i.exports=l;function l(f){for(var c=Array.isArray(f)?f:s(f),h=0;h0)continue;vt=Ae.slice(0,1).join("")}return Ve(vt),Ce+=vt.length,N=N.slice(vt.length),N.length}while(!0)}function St(){return/[^a-fA-F0-9]/.test(j)?(Ve(N.join("")),G=h,F):(N.push(j),H=j,F+1)}function Dt(){return j==="."||/[eE]/.test(j)?(N.push(j),G=E,H=j,F+1):j==="x"&&N.length===1&&N[0]==="0"?(G=m,N.push(j),H=j,F+1):/[^\d]/.test(j)?(Ve(N.join("")),G=h,F):(N.push(j),H=j,F+1)}function Zt(){return j==="f"&&(N.push(j),H=j,F+=1),/[eE]/.test(j)||(j==="-"||j==="+")&&/[eE]/.test(H)?(N.push(j),H=j,F+1):/[^\d]/.test(j)?(Ve(N.join("")),G=h,F):(N.push(j),H=j,F+1)}function Et(){if(/[^\d\w_]/.test(j)){var Ae=N.join("");return ye[Ae]?G=_:Fe[Ae]?G=L:G=T,Ve(N.join("")),G=h,F}return N.push(j),H=j,F+1}}},3508:function(i,a,o){var s=o(6852);s=s.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),i.exports=s.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(i){i.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(i,a,o){var s=o(620);i.exports=s.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(i){i.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(i,a,o){var s=o(5874);i.exports=u;function u(l,f){var c=s(f),h=[];return h=h.concat(c(l)),h=h.concat(c(null)),h}},3236:function(i){i.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],u=0;u>1,b=-7,v=u?f-1:0,k=u?-1:1,E=o[s+v];for(v+=k,c=E&(1<<-b)-1,E>>=-b,b+=d;b>0;c=c*256+o[s+v],v+=k,b-=8);for(h=c&(1<<-b)-1,c>>=-b,b+=l;b>0;h=h*256+o[s+v],v+=k,b-=8);if(c===0)c=1-x;else{if(c===p)return h?NaN:(E?-1:1)*(1/0);h=h+Math.pow(2,l),c=c-x}return(E?-1:1)*h*Math.pow(2,c-l)},a.write=function(o,s,u,l,f,c){var h,d,p,x=c*8-f-1,b=(1<>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=l?0:c-1,T=l?1:-1,L=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,h=b):(h=Math.floor(Math.log(s)/Math.LN2),s*(p=Math.pow(2,-h))<1&&(h--,p*=2),h+v>=1?s+=k/p:s+=k*Math.pow(2,1-v),s*p>=2&&(h++,p/=2),h+v>=b?(d=0,h=b):h+v>=1?(d=(s*p-1)*Math.pow(2,f),h=h+v):(d=s*Math.pow(2,v-1)*Math.pow(2,f),h=0));f>=8;o[u+E]=d&255,E+=T,d/=256,f-=8);for(h=h<0;o[u+E]=h&255,E+=T,h/=256,x-=8);o[u+E-T]|=L*128}},8954:function(i,a,o){"use strict";i.exports=v;var s=o(3250),u=o(6803).Fw;function l(k,E,T){this.vertices=k,this.adjacent=E,this.boundary=T,this.lastVisited=-1}l.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var E=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=E};function f(k,E,T){this.vertices=k,this.cell=E,this.index=T}function c(k,E){return u(k.vertices,E.vertices)}function h(k){return function(){var E=this.tuple;return k.apply(this,E)}}function d(k){var E=s[k+1];return E||(E=s),h(E)}var p=[];function x(k,E,T){this.dimension=k,this.vertices=E,this.simplices=T,this.interior=T.filter(function(C){return!C.boundary}),this.tuple=new Array(k+1);for(var L=0;L<=k;++L)this.tuple[L]=this.vertices[L];var _=p[k];_||(_=p[k]=d(k)),this.orient=_}var b=x.prototype;b.handleBoundaryDegeneracy=function(k,E){var T=this.dimension,L=this.vertices.length-1,_=this.tuple,C=this.vertices,M=[k];for(k.lastVisited=-L;M.length>0;){k=M.pop();for(var m=k.adjacent,P=0;P<=T;++P){var A=m[P];if(!(!A.boundary||A.lastVisited<=-L)){for(var B=A.vertices,F=0;F<=T;++F){var U=B[F];U<0?_[F]=E:_[F]=C[U]}var G=this.orient();if(G>0)return A;A.lastVisited=-L,G===0&&M.push(A)}}}return null},b.walk=function(k,E){var T=this.vertices.length-1,L=this.dimension,_=this.vertices,C=this.tuple,M=E?this.interior.length*Math.random()|0:this.interior.length-1,m=this.interior[M];e:for(;!m.boundary;){for(var P=m.vertices,A=m.adjacent,B=0;B<=L;++B)C[B]=_[P[B]];m.lastVisited=T;for(var B=0;B<=L;++B){var F=A[B];if(!(F.lastVisited>=T)){var U=C[B];C[B]=k;var G=this.orient();if(C[B]=U,G<0){m=F;continue e}else F.boundary?F.lastVisited=-T:F.lastVisited=T}}return}return m},b.addPeaks=function(k,E){var T=this.vertices.length-1,L=this.dimension,_=this.vertices,C=this.tuple,M=this.interior,m=this.simplices,P=[E];E.lastVisited=T,E.vertices[E.vertices.indexOf(-1)]=T,E.boundary=!1,M.push(E);for(var A=[];P.length>0;){var E=P.pop(),B=E.vertices,F=E.adjacent,U=B.indexOf(T);if(!(U<0)){for(var G=0;G<=L;++G)if(G!==U){var j=F[G];if(!(!j.boundary||j.lastVisited>=T)){var H=j.vertices;if(j.lastVisited!==-T){for(var N=0,W=0;W<=L;++W)H[W]<0?(N=W,C[W]=k):C[W]=_[H[W]];var re=this.orient();if(re>0){H[N]=T,j.boundary=!1,M.push(j),P.push(j),j.lastVisited=T;continue}else j.lastVisited=-T}var ae=j.adjacent,be=B.slice(),Pe=F.slice(),Ce=new l(be,Pe,!0);m.push(Ce);var de=ae.indexOf(E);if(!(de<0)){ae[de]=Ce,Pe[U]=j,be[G]=-1,Pe[G]=E,F[G]=Ce,Ce.flip();for(var W=0;W<=L;++W){var te=be[W];if(!(te<0||te===T)){for(var ke=new Array(L-1),Ee=0,Me=0;Me<=L;++Me){var Ne=be[Me];Ne<0||Me===W||(ke[Ee++]=Ne)}A.push(new f(ke,Ce,W))}}}}}}}A.sort(c);for(var G=0;G+1=0?M[P++]=m[B]:A=B&1;if(A===(k&1)){var F=M[0];M[0]=M[1],M[1]=F}E.push(M)}}return E};function v(k,E){var T=k.length;if(T===0)throw new Error("Must have at least d+1 points");var L=k[0].length;if(T<=L)throw new Error("Must input at least d+1 points");var _=k.slice(0,L+1),C=s.apply(void 0,_);if(C===0)throw new Error("Input not in general position");for(var M=new Array(L+1),m=0;m<=L;++m)M[m]=m;C<0&&(M[0]=1,M[1]=0);for(var P=new l(M,new Array(L+1),!1),A=P.adjacent,B=new Array(L+2),m=0;m<=L;++m){for(var F=M.slice(),U=0;U<=L;++U)U===m&&(F[U]=-1);var G=F[0];F[0]=F[1],F[1]=G;var j=new l(F,new Array(L+1),!0);A[m]=j,B[m]=j}B[L+1]=P;for(var m=0;m<=L;++m)for(var F=A[m].vertices,H=A[m].adjacent,U=0;U<=L;++U){var N=F[U];if(N<0){H[U]=P;continue}for(var W=0;W<=L;++W)A[W].vertices.indexOf(N)<0&&(H[U]=A[W])}for(var re=new x(L,_,B),ae=!!E,m=L+1;m3*(B+1)?x(this,A):this.left.insert(A):this.left=C([A]);else if(A[0]>this.mid)this.right?4*(this.right.count+1)>3*(B+1)?x(this,A):this.right.insert(A):this.right=C([A]);else{var F=s.ge(this.leftPoints,A,L),U=s.ge(this.rightPoints,A,_);this.leftPoints.splice(F,0,A),this.rightPoints.splice(U,0,A)}},h.remove=function(A){var B=this.count-this.leftPoints;if(A[1]3*(B-1))return b(this,A);var U=this.left.remove(A);return U===f?(this.left=null,this.count-=1,l):(U===l&&(this.count-=1),U)}else if(A[0]>this.mid){if(!this.right)return u;var G=this.left?this.left.count:0;if(4*G>3*(B-1))return b(this,A);var U=this.right.remove(A);return U===f?(this.right=null,this.count-=1,l):(U===l&&(this.count-=1),U)}else{if(this.count===1)return this.leftPoints[0]===A?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===A){if(this.left&&this.right){for(var j=this,H=this.left;H.right;)j=H,H=H.right;if(j===this)H.right=this.right;else{var N=this.left,U=this.right;j.count-=H.count,j.right=H.left,H.left=N,H.right=U}d(this,H),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?d(this,this.left):d(this,this.right);return l}for(var N=s.ge(this.leftPoints,A,L);N=0&&A[U][1]>=B;--U){var G=F(A[U]);if(G)return G}}function E(A,B){for(var F=0;Fthis.mid){if(this.right){var F=this.right.queryPoint(A,B);if(F)return F}return k(this.rightPoints,A,B)}else return E(this.leftPoints,B)},h.queryInterval=function(A,B,F){if(Athis.mid&&this.right){var U=this.right.queryInterval(A,B,F);if(U)return U}return Bthis.mid?k(this.rightPoints,A,F):E(this.leftPoints,F)};function T(A,B){return A-B}function L(A,B){var F=A[0]-B[0];return F||A[1]-B[1]}function _(A,B){var F=A[1]-B[1];return F||A[0]-B[0]}function C(A){if(A.length===0)return null;for(var B=[],F=0;F>1],G=[],j=[],H=[],F=0;F13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}},395:function(i){function a(o,s,u){return o*(1-u)+s*u}i.exports=a},2652:function(i,a,o){var s=o(4335),u=o(6864),l=o(1903),f=o(9921),c=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},p=u(),x=u(),b=[0,0,0,0],v=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];i.exports=function(C,M,m,P,A,B){if(M||(M=[0,0,0]),m||(m=[0,0,0]),P||(P=[0,0,0]),A||(A=[0,0,0,1]),B||(B=[0,0,0,1]),!s(p,C)||(l(x,p),x[3]=0,x[7]=0,x[11]=0,x[15]=1,Math.abs(f(x)<1e-8)))return!1;var F=p[3],U=p[7],G=p[11],j=p[12],H=p[13],N=p[14],W=p[15];if(F!==0||U!==0||G!==0){b[0]=F,b[1]=U,b[2]=G,b[3]=W;var re=c(x,x);if(!re)return!1;h(x,x),E(A,b,x)}else A[0]=A[1]=A[2]=0,A[3]=1;if(M[0]=j,M[1]=H,M[2]=N,T(v,p),m[0]=d.length(v[0]),d.normalize(v[0],v[0]),P[0]=d.dot(v[0],v[1]),L(v[1],v[1],v[0],1,-P[0]),m[1]=d.length(v[1]),d.normalize(v[1],v[1]),P[0]/=m[1],P[1]=d.dot(v[0],v[2]),L(v[2],v[2],v[0],1,-P[1]),P[2]=d.dot(v[1],v[2]),L(v[2],v[2],v[1],1,-P[2]),m[2]=d.length(v[2]),d.normalize(v[2],v[2]),P[1]/=m[2],P[2]/=m[2],d.cross(k,v[1],v[2]),d.dot(v[0],k)<0)for(var ae=0;ae<3;ae++)m[ae]*=-1,v[ae][0]*=-1,v[ae][1]*=-1,v[ae][2]*=-1;return B[0]=.5*Math.sqrt(Math.max(1+v[0][0]-v[1][1]-v[2][2],0)),B[1]=.5*Math.sqrt(Math.max(1-v[0][0]+v[1][1]-v[2][2],0)),B[2]=.5*Math.sqrt(Math.max(1-v[0][0]-v[1][1]+v[2][2],0)),B[3]=.5*Math.sqrt(Math.max(1+v[0][0]+v[1][1]+v[2][2],0)),v[2][1]>v[1][2]&&(B[0]=-B[0]),v[0][2]>v[2][0]&&(B[1]=-B[1]),v[1][0]>v[0][1]&&(B[2]=-B[2]),!0};function E(_,C,M){var m=C[0],P=C[1],A=C[2],B=C[3];return _[0]=M[0]*m+M[4]*P+M[8]*A+M[12]*B,_[1]=M[1]*m+M[5]*P+M[9]*A+M[13]*B,_[2]=M[2]*m+M[6]*P+M[10]*A+M[14]*B,_[3]=M[3]*m+M[7]*P+M[11]*A+M[15]*B,_}function T(_,C){_[0][0]=C[0],_[0][1]=C[1],_[0][2]=C[2],_[1][0]=C[4],_[1][1]=C[5],_[1][2]=C[6],_[2][0]=C[8],_[2][1]=C[9],_[2][2]=C[10]}function L(_,C,M,m,P){_[0]=C[0]*m+M[0]*P,_[1]=C[1]*m+M[1]*P,_[2]=C[2]*m+M[2]*P}},4335:function(i){i.exports=function(o,s){var u=s[15];if(u===0)return!1;for(var l=1/u,f=0;f<16;f++)o[f]=s[f]*l;return!0}},7442:function(i,a,o){var s=o(6658),u=o(7182),l=o(2652),f=o(9921),c=o(8648),h=b(),d=b(),p=b();i.exports=x;function x(E,T,L,_){if(f(T)===0||f(L)===0)return!1;var C=l(T,h.translate,h.scale,h.skew,h.perspective,h.quaternion),M=l(L,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!C||!M?!1:(s(p.translate,h.translate,d.translate,_),s(p.skew,h.skew,d.skew,_),s(p.scale,h.scale,d.scale,_),s(p.perspective,h.perspective,d.perspective,_),c(p.quaternion,h.quaternion,d.quaternion,_),u(E,p.translate,p.scale,p.skew,p.perspective,p.quaternion),!0)}function b(){return{translate:v(),scale:v(1),skew:v(),perspective:k(),quaternion:k()}}function v(E){return[E||0,E||0,E||0]}function k(){return[0,0,0,1]}},7182:function(i,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},u=s.create(),l=s.create();i.exports=function(c,h,d,p,x,b){return s.identity(c),s.fromRotationTranslation(c,b,h),c[3]=x[0],c[7]=x[1],c[11]=x[2],c[15]=x[3],s.identity(l),p[2]!==0&&(l[9]=p[2],s.multiply(c,c,l)),p[1]!==0&&(l[9]=0,l[8]=p[1],s.multiply(c,c,l)),p[0]!==0&&(l[8]=0,l[4]=p[0],s.multiply(c,c,l)),s.scale(c,c,d),c}},1811:function(i,a,o){"use strict";var s=o(2478),u=o(7442),l=o(7608),f=o(5567),c=o(2408),h=o(7089),d=o(6582),p=o(7656),x=o(2504),b=o(3536),v=[0,0,0];i.exports=L;function k(_){this._components=_.slice(),this._time=[0],this.prevMatrix=_.slice(),this.nextMatrix=_.slice(),this.computedMatrix=_.slice(),this.computedInverse=_.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var E=k.prototype;E.recalcMatrix=function(_){var C=this._time,M=s.le(C,_),m=this.computedMatrix;if(!(M<0)){var P=this._components;if(M===C.length-1)for(var A=16*M,B=0;B<16;++B)m[B]=P[A++];else{for(var F=C[M+1]-C[M],A=16*M,U=this.prevMatrix,G=!0,B=0;B<16;++B)U[B]=P[A++];for(var j=this.nextMatrix,B=0;B<16;++B)j[B]=P[A++],G=G&&U[B]===j[B];if(F<1e-6||G)for(var B=0;B<16;++B)m[B]=U[B];else u(m,U,j,(_-C[M])/F)}var H=this.computedUp;H[0]=m[1],H[1]=m[5],H[2]=m[9],b(H,H);var N=this.computedInverse;l(N,m);var W=this.computedEye,re=N[15];W[0]=N[12]/re,W[1]=N[13]/re,W[2]=N[14]/re;for(var ae=this.computedCenter,be=Math.exp(this.computedRadius[0]),B=0;B<3;++B)ae[B]=W[B]-m[2+4*B]*be}},E.idle=function(_){if(!(_1&&s(l[d[v-2]],l[d[v-1]],b)<=0;)v-=1,d.pop();for(d.push(x),v=p.length;v>1&&s(l[p[v-2]],l[p[v-1]],b)>=0;)v-=1,p.pop();p.push(x)}for(var k=new Array(p.length+d.length-2),E=0,c=0,T=d.length;c0;--L)k[E++]=p[L];return k}},351:function(i,a,o){"use strict";i.exports=u;var s=o(4687);function u(l,f){f||(f=l,l=window);var c=0,h=0,d=0,p={shift:!1,alt:!1,control:!1,meta:!1},x=!1;function b(A){var B=!1;return"altKey"in A&&(B=B||A.altKey!==p.alt,p.alt=!!A.altKey),"shiftKey"in A&&(B=B||A.shiftKey!==p.shift,p.shift=!!A.shiftKey),"ctrlKey"in A&&(B=B||A.ctrlKey!==p.control,p.control=!!A.ctrlKey),"metaKey"in A&&(B=B||A.metaKey!==p.meta,p.meta=!!A.metaKey),B}function v(A,B){var F=s.x(B),U=s.y(B);"buttons"in B&&(A=B.buttons|0),(A!==c||F!==h||U!==d||b(B))&&(c=A|0,h=F||0,d=U||0,f&&f(c,h,d,p))}function k(A){v(0,A)}function E(){(c||h||d||p.shift||p.alt||p.meta||p.control)&&(h=d=0,c=0,p.shift=p.alt=p.control=p.meta=!1,f&&f(0,0,0,p))}function T(A){b(A)&&f&&f(c,h,d,p)}function L(A){s.buttons(A)===0?v(0,A):v(c,A)}function _(A){v(c|s.buttons(A),A)}function C(A){v(c&~s.buttons(A),A)}function M(){x||(x=!0,l.addEventListener("mousemove",L),l.addEventListener("mousedown",_),l.addEventListener("mouseup",C),l.addEventListener("mouseleave",k),l.addEventListener("mouseenter",k),l.addEventListener("mouseout",k),l.addEventListener("mouseover",k),l.addEventListener("blur",E),l.addEventListener("keyup",T),l.addEventListener("keydown",T),l.addEventListener("keypress",T),l!==window&&(window.addEventListener("blur",E),window.addEventListener("keyup",T),window.addEventListener("keydown",T),window.addEventListener("keypress",T)))}function m(){x&&(x=!1,l.removeEventListener("mousemove",L),l.removeEventListener("mousedown",_),l.removeEventListener("mouseup",C),l.removeEventListener("mouseleave",k),l.removeEventListener("mouseenter",k),l.removeEventListener("mouseout",k),l.removeEventListener("mouseover",k),l.removeEventListener("blur",E),l.removeEventListener("keyup",T),l.removeEventListener("keydown",T),l.removeEventListener("keypress",T),l!==window&&(window.removeEventListener("blur",E),window.removeEventListener("keyup",T),window.removeEventListener("keydown",T),window.removeEventListener("keypress",T)))}M();var P={element:l};return Object.defineProperties(P,{enabled:{get:function(){return x},set:function(A){A?M():m()},enumerable:!0},buttons:{get:function(){return c},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return p},enumerable:!0}}),P}},24:function(i){var a={left:0,top:0};i.exports=o;function o(u,l,f){l=l||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var c=u.clientX||0,h=u.clientY||0,d=s(l);return f[0]=c-d.left,f[1]=h-d.top,f}function s(u){return u===window||u===document||u===document.body?a:u.getBoundingClientRect()}},4687:function(i,a){"use strict";function o(f){if(typeof f=="object"){if("buttons"in f)return f.buttons;if("which"in f){var c=f.which;if(c===2)return 4;if(c===3)return 2;if(c>0)return 1<=0)return 1<0){if(Pe=1,te[Ee++]=p(M[B],E,T,L),B+=re,_>0)for(be=1,F=M[B],Me=te[Ee]=p(F,E,T,L),ye=te[Ee+Ne],Ye=te[Ee+Ve],Nt=te[Ee+nt],(Me!==ye||Me!==Ye||Me!==Nt)&&(G=M[B+U],H=M[B+j],W=M[B+N],h(be,Pe,F,G,H,W,Me,ye,Ye,Nt,E,T,L),it=ke[Ee]=Ce++),Ee+=1,B+=re,be=2;be<_;++be)F=M[B],Me=te[Ee]=p(F,E,T,L),ye=te[Ee+Ne],Ye=te[Ee+Ve],Nt=te[Ee+nt],(Me!==ye||Me!==Ye||Me!==Nt)&&(G=M[B+U],H=M[B+j],W=M[B+N],h(be,Pe,F,G,H,W,Me,ye,Ye,Nt,E,T,L),it=ke[Ee]=Ce++,Nt!==ye&&d(ke[Ee+Ne],it,W,G,Nt,ye,E,T,L)),Ee+=1,B+=re;for(B+=ae,Ee=0,Ke=Ne,Ne=Fe,Fe=Ke,Ke=Ve,Ve=ce,ce=Ke,Ke=nt,nt=gt,gt=Ke,Pe=2;Pe0)for(be=1,F=M[B],Me=te[Ee]=p(F,E,T,L),ye=te[Ee+Ne],Ye=te[Ee+Ve],Nt=te[Ee+nt],(Me!==ye||Me!==Ye||Me!==Nt)&&(G=M[B+U],H=M[B+j],W=M[B+N],h(be,Pe,F,G,H,W,Me,ye,Ye,Nt,E,T,L),it=ke[Ee]=Ce++,Nt!==Ye&&d(ke[Ee+Ve],it,H,W,Ye,Nt,E,T,L)),Ee+=1,B+=re,be=2;be<_;++be)F=M[B],Me=te[Ee]=p(F,E,T,L),ye=te[Ee+Ne],Ye=te[Ee+Ve],Nt=te[Ee+nt],(Me!==ye||Me!==Ye||Me!==Nt)&&(G=M[B+U],H=M[B+j],W=M[B+N],h(be,Pe,F,G,H,W,Me,ye,Ye,Nt,E,T,L),it=ke[Ee]=Ce++,Nt!==Ye&&d(ke[Ee+Ve],it,H,W,Ye,Nt,E,T,L),Nt!==ye&&d(ke[Ee+Ne],it,W,G,Nt,ye,E,T,L)),Ee+=1,B+=re;Pe&1&&(Ee=0),Ke=Ne,Ne=Fe,Fe=Ke,Ke=Ve,Ve=ce,ce=Ke,Ke=nt,nt=gt,gt=Ke,B+=ae}}b(ke),b(te)}},"false,1,0":function(h,d,p,x,b){return function(k,E,T,L){var _=k.shape[0]|0,C=k.shape[1]|0,M=k.data,m=k.offset|0,P=k.stride[0]|0,A=k.stride[1]|0,B=m,F,U=-P|0,G=0,j=-A|0,H=0,N=-P-A|0,W=0,re=A|0,ae=P-A*C|0,be=0,Pe=0,Ce=0,de=2*C|0,te=x(de),ke=x(de),Ee=0,Me=0,Ne=-1,Fe=-1,ye=0,Ve=-C|0,ce=C|0,Ye=0,nt=-C-1|0,gt=C-1|0,Nt=0,it=0,Ke=0;for(Pe=0;Pe0){if(be=1,te[Ee++]=p(M[B],E,T,L),B+=re,C>0)for(Pe=1,F=M[B],Me=te[Ee]=p(F,E,T,L),Ye=te[Ee+Ve],ye=te[Ee+Ne],Nt=te[Ee+nt],(Me!==Ye||Me!==ye||Me!==Nt)&&(G=M[B+U],H=M[B+j],W=M[B+N],h(be,Pe,F,G,H,W,Me,Ye,ye,Nt,E,T,L),it=ke[Ee]=Ce++),Ee+=1,B+=re,Pe=2;Pe0)for(Pe=1,F=M[B],Me=te[Ee]=p(F,E,T,L),Ye=te[Ee+Ve],ye=te[Ee+Ne],Nt=te[Ee+nt],(Me!==Ye||Me!==ye||Me!==Nt)&&(G=M[B+U],H=M[B+j],W=M[B+N],h(be,Pe,F,G,H,W,Me,Ye,ye,Nt,E,T,L),it=ke[Ee]=Ce++,Nt!==Ye&&d(ke[Ee+Ve],it,W,G,Nt,Ye,E,T,L)),Ee+=1,B+=re,Pe=2;Pe 0"),typeof c.vertex!="function"&&h("Must specify vertex creation function"),typeof c.cell!="function"&&h("Must specify cell creation function"),typeof c.phase!="function"&&h("Must specify phase function");for(var b=c.getters||[],v=new Array(p),k=0;k=0?v[k]=!0:v[k]=!1;return l(c.vertex,c.cell,c.phase,x,d,v)}},6199:function(i,a,o){"use strict";var s=o(1338),u={zero:function(L,_,C,M){var m=L[0],P=C[0];M|=0;var A=0,B=P;for(A=0;A2&&A[1]>2&&M(P.pick(-1,-1).lo(1,1).hi(A[0]-2,A[1]-2),m.pick(-1,-1,0).lo(1,1).hi(A[0]-2,A[1]-2),m.pick(-1,-1,1).lo(1,1).hi(A[0]-2,A[1]-2)),A[1]>2&&(C(P.pick(0,-1).lo(1).hi(A[1]-2),m.pick(0,-1,1).lo(1).hi(A[1]-2)),_(m.pick(0,-1,0).lo(1).hi(A[1]-2))),A[1]>2&&(C(P.pick(A[0]-1,-1).lo(1).hi(A[1]-2),m.pick(A[0]-1,-1,1).lo(1).hi(A[1]-2)),_(m.pick(A[0]-1,-1,0).lo(1).hi(A[1]-2))),A[0]>2&&(C(P.pick(-1,0).lo(1).hi(A[0]-2),m.pick(-1,0,0).lo(1).hi(A[0]-2)),_(m.pick(-1,0,1).lo(1).hi(A[0]-2))),A[0]>2&&(C(P.pick(-1,A[1]-1).lo(1).hi(A[0]-2),m.pick(-1,A[1]-1,0).lo(1).hi(A[0]-2)),_(m.pick(-1,A[1]-1,1).lo(1).hi(A[0]-2))),m.set(0,0,0,0),m.set(0,0,1,0),m.set(A[0]-1,0,0,0),m.set(A[0]-1,0,1,0),m.set(0,A[1]-1,0,0),m.set(0,A[1]-1,1,0),m.set(A[0]-1,A[1]-1,0,0),m.set(A[0]-1,A[1]-1,1,0),m}}function T(L){var _=L.join(),A=p[_];if(A)return A;for(var C=L.length,M=[b,v],m=1;m<=C;++m)M.push(k(m));var P=E,A=P.apply(void 0,M);return p[_]=A,A}i.exports=function(_,C,M){if(Array.isArray(M)||(typeof M=="string"?M=s(C.dimension,M):M=s(C.dimension,"clamp")),C.size===0)return _;if(C.dimension===0)return _.set(0),_;var m=T(M);return m(_,C)}},4317:function(i){"use strict";function a(f,c){var h=Math.floor(c),d=c-h,p=0<=h&&h0;){H<64?(_=H,H=0):(_=64,H-=64);for(var N=p[1]|0;N>0;){N<64?(C=N,N=0):(C=64,N-=64),v=G+H*m+N*P,T=j+H*B+N*F;var W=0,re=0,ae=0,be=A,Pe=m-M*A,Ce=P-_*m,de=U,te=B-M*U,ke=F-_*B;for(ae=0;ae0;){F<64?(_=F,F=0):(_=64,F-=64);for(var U=p[0]|0;U>0;){U<64?(L=U,U=0):(L=64,U-=64),v=A+F*M+U*C,T=B+F*P+U*m;var G=0,j=0,H=M,N=C-_*M,W=P,re=m-_*P;for(j=0;j0;){j<64?(C=j,j=0):(C=64,j-=64);for(var H=p[0]|0;H>0;){H<64?(L=H,H=0):(L=64,H-=64);for(var N=p[1]|0;N>0;){N<64?(_=N,N=0):(_=64,N-=64),v=U+j*P+H*M+N*m,T=G+j*F+H*A+N*B;var W=0,re=0,ae=0,be=P,Pe=M-C*P,Ce=m-L*M,de=F,te=A-C*F,ke=B-L*A;for(ae=0;ae<_;++ae){for(re=0;rek;){W=0,re=G-_;t:for(H=0;Hbe)break t;re+=A,W+=B}for(W=G,re=G-_,H=0;H>1,N=H-U,W=H+U,re=G,ae=N,be=H,Pe=W,Ce=j,de=E+1,te=T-1,ke=!0,Ee,Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt=0,Nt=0,it=0,Ke,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt=P,hr=b(Yt),yr=b(Yt);kt=C*re,Tt=C*ae,zt=_;e:for(Ke=0;Ke0){Me=re,re=ae,ae=Me;break e}if(it<0)break e;zt+=B}kt=C*Pe,Tt=C*Ce,zt=_;e:for(Ke=0;Ke0){Me=Pe,Pe=Ce,Ce=Me;break e}if(it<0)break e;zt+=B}kt=C*re,Tt=C*be,zt=_;e:for(Ke=0;Ke0){Me=re,re=be,be=Me;break e}if(it<0)break e;zt+=B}kt=C*ae,Tt=C*be,zt=_;e:for(Ke=0;Ke0){Me=ae,ae=be,be=Me;break e}if(it<0)break e;zt+=B}kt=C*re,Tt=C*Pe,zt=_;e:for(Ke=0;Ke0){Me=re,re=Pe,Pe=Me;break e}if(it<0)break e;zt+=B}kt=C*be,Tt=C*Pe,zt=_;e:for(Ke=0;Ke0){Me=be,be=Pe,Pe=Me;break e}if(it<0)break e;zt+=B}kt=C*ae,Tt=C*Ce,zt=_;e:for(Ke=0;Ke0){Me=ae,ae=Ce,Ce=Me;break e}if(it<0)break e;zt+=B}kt=C*ae,Tt=C*be,zt=_;e:for(Ke=0;Ke0){Me=ae,ae=be,be=Me;break e}if(it<0)break e;zt+=B}kt=C*Pe,Tt=C*Ce,zt=_;e:for(Ke=0;Ke0){Me=Pe,Pe=Ce,Ce=Me;break e}if(it<0)break e;zt+=B}for(kt=C*re,Tt=C*ae,St=C*be,Dt=C*Pe,Zt=C*Ce,Et=C*G,Ae=C*H,at=C*j,$e=0,zt=_,Ke=0;Ke0)te--;else if(it<0){for(kt=C*Ve,Tt=C*de,St=C*te,zt=_,Ke=0;Ke0)for(;;){ce=_+te*C,$e=0;e:for(Ke=0;Ke0){if(--tej){e:for(;;){for(ce=_+de*C,$e=0,zt=_,Ke=0;Ke1&&k?T(v,k[0],k[1]):T(v)}var d={"uint32,1,0":function(x,b){return function(v){var k=v.data,E=v.offset|0,T=v.shape,L=v.stride,_=L[0]|0,C=T[0]|0,M=L[1]|0,m=T[1]|0,P=M,A=M,B=1;C<=32?x(0,C-1,k,E,_,M,C,m,P,A,B):b(0,C-1,k,E,_,M,C,m,P,A,B)}}};function p(x,b){var v=[b,x].join(","),k=d[v],E=f(x,b),T=h(x,b,E);return k(E,T)}i.exports=p},446:function(i,a,o){"use strict";var s=o(7640),u={};function l(f){var c=f.order,h=f.dtype,d=[c,h],p=d.join(":"),x=u[p];return x||(u[p]=x=s(c,h)),x(f),f}i.exports=l},9618:function(i,a,o){var s=o(7163),u=typeof Float64Array!="undefined";function l(b,v){return b[0]-v[0]}function f(){var b=this.stride,v=new Array(b.length),k;for(k=0;k=0&&(M=_|0,C+=P*M,m-=M),new E(this.data,m,P,C)},T.step=function(_){var C=this.shape[0],M=this.stride[0],m=this.offset,P=0,A=Math.ceil;return typeof _=="number"&&(P=_|0,P<0?(m+=M*(C-1),C=A(-C/P)):C=A(C/P),M*=P),new E(this.data,C,M,m)},T.transpose=function(_){_=_===void 0?0:_|0;var C=this.shape,M=this.stride;return new E(this.data,C[_],M[_],this.offset)},T.pick=function(_){var C=[],M=[],m=this.offset;typeof _=="number"&&_>=0?m=m+this.stride[0]*_|0:(C.push(this.shape[0]),M.push(this.stride[0]));var P=v[C.length+1];return P(this.data,C,M,m)},function(_,C,M,m){return new E(_,C[0],M[0],m)}},2:function(b,v,k){function E(L,_,C,M,m,P){this.data=L,this.shape=[_,C],this.stride=[M,m],this.offset=P|0}var T=E.prototype;return T.dtype=b,T.dimension=2,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(T,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),T.set=function(_,C,M){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*C,M):this.data[this.offset+this.stride[0]*_+this.stride[1]*C]=M},T.get=function(_,C){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*C):this.data[this.offset+this.stride[0]*_+this.stride[1]*C]},T.index=function(_,C){return this.offset+this.stride[0]*_+this.stride[1]*C},T.hi=function(_,C){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof C!="number"||C<0?this.shape[1]:C|0,this.stride[0],this.stride[1],this.offset)},T.lo=function(_,C){var M=this.offset,m=0,P=this.shape[0],A=this.shape[1],B=this.stride[0],F=this.stride[1];return typeof _=="number"&&_>=0&&(m=_|0,M+=B*m,P-=m),typeof C=="number"&&C>=0&&(m=C|0,M+=F*m,A-=m),new E(this.data,P,A,B,F,M)},T.step=function(_,C){var M=this.shape[0],m=this.shape[1],P=this.stride[0],A=this.stride[1],B=this.offset,F=0,U=Math.ceil;return typeof _=="number"&&(F=_|0,F<0?(B+=P*(M-1),M=U(-M/F)):M=U(M/F),P*=F),typeof C=="number"&&(F=C|0,F<0?(B+=A*(m-1),m=U(-m/F)):m=U(m/F),A*=F),new E(this.data,M,m,P,A,B)},T.transpose=function(_,C){_=_===void 0?0:_|0,C=C===void 0?1:C|0;var M=this.shape,m=this.stride;return new E(this.data,M[_],M[C],m[_],m[C],this.offset)},T.pick=function(_,C){var M=[],m=[],P=this.offset;typeof _=="number"&&_>=0?P=P+this.stride[0]*_|0:(M.push(this.shape[0]),m.push(this.stride[0])),typeof C=="number"&&C>=0?P=P+this.stride[1]*C|0:(M.push(this.shape[1]),m.push(this.stride[1]));var A=v[M.length+1];return A(this.data,M,m,P)},function(_,C,M,m){return new E(_,C[0],C[1],M[0],M[1],m)}},3:function(b,v,k){function E(L,_,C,M,m,P,A,B){this.data=L,this.shape=[_,C,M],this.stride=[m,P,A],this.offset=B|0}var T=E.prototype;return T.dtype=b,T.dimension=3,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(T,"order",{get:function(){var _=Math.abs(this.stride[0]),C=Math.abs(this.stride[1]),M=Math.abs(this.stride[2]);return _>C?C>M?[2,1,0]:_>M?[1,2,0]:[1,0,2]:_>M?[2,0,1]:M>C?[0,1,2]:[0,2,1]}}),T.set=function(_,C,M,m){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*M,m):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*M]=m},T.get=function(_,C,M){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*M):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*M]},T.index=function(_,C,M){return this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*M},T.hi=function(_,C,M){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof M!="number"||M<0?this.shape[2]:M|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},T.lo=function(_,C,M){var m=this.offset,P=0,A=this.shape[0],B=this.shape[1],F=this.shape[2],U=this.stride[0],G=this.stride[1],j=this.stride[2];return typeof _=="number"&&_>=0&&(P=_|0,m+=U*P,A-=P),typeof C=="number"&&C>=0&&(P=C|0,m+=G*P,B-=P),typeof M=="number"&&M>=0&&(P=M|0,m+=j*P,F-=P),new E(this.data,A,B,F,U,G,j,m)},T.step=function(_,C,M){var m=this.shape[0],P=this.shape[1],A=this.shape[2],B=this.stride[0],F=this.stride[1],U=this.stride[2],G=this.offset,j=0,H=Math.ceil;return typeof _=="number"&&(j=_|0,j<0?(G+=B*(m-1),m=H(-m/j)):m=H(m/j),B*=j),typeof C=="number"&&(j=C|0,j<0?(G+=F*(P-1),P=H(-P/j)):P=H(P/j),F*=j),typeof M=="number"&&(j=M|0,j<0?(G+=U*(A-1),A=H(-A/j)):A=H(A/j),U*=j),new E(this.data,m,P,A,B,F,U,G)},T.transpose=function(_,C,M){_=_===void 0?0:_|0,C=C===void 0?1:C|0,M=M===void 0?2:M|0;var m=this.shape,P=this.stride;return new E(this.data,m[_],m[C],m[M],P[_],P[C],P[M],this.offset)},T.pick=function(_,C,M){var m=[],P=[],A=this.offset;typeof _=="number"&&_>=0?A=A+this.stride[0]*_|0:(m.push(this.shape[0]),P.push(this.stride[0])),typeof C=="number"&&C>=0?A=A+this.stride[1]*C|0:(m.push(this.shape[1]),P.push(this.stride[1])),typeof M=="number"&&M>=0?A=A+this.stride[2]*M|0:(m.push(this.shape[2]),P.push(this.stride[2]));var B=v[m.length+1];return B(this.data,m,P,A)},function(_,C,M,m){return new E(_,C[0],C[1],C[2],M[0],M[1],M[2],m)}},4:function(b,v,k){function E(L,_,C,M,m,P,A,B,F,U){this.data=L,this.shape=[_,C,M,m],this.stride=[P,A,B,F],this.offset=U|0}var T=E.prototype;return T.dtype=b,T.dimension=4,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(T,"order",{get:k}),T.set=function(_,C,M,m,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*M+this.stride[3]*m,P):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*M+this.stride[3]*m]=P},T.get=function(_,C,M,m){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*M+this.stride[3]*m):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*M+this.stride[3]*m]},T.index=function(_,C,M,m){return this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*M+this.stride[3]*m},T.hi=function(_,C,M,m){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof M!="number"||M<0?this.shape[2]:M|0,typeof m!="number"||m<0?this.shape[3]:m|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},T.lo=function(_,C,M,m){var P=this.offset,A=0,B=this.shape[0],F=this.shape[1],U=this.shape[2],G=this.shape[3],j=this.stride[0],H=this.stride[1],N=this.stride[2],W=this.stride[3];return typeof _=="number"&&_>=0&&(A=_|0,P+=j*A,B-=A),typeof C=="number"&&C>=0&&(A=C|0,P+=H*A,F-=A),typeof M=="number"&&M>=0&&(A=M|0,P+=N*A,U-=A),typeof m=="number"&&m>=0&&(A=m|0,P+=W*A,G-=A),new E(this.data,B,F,U,G,j,H,N,W,P)},T.step=function(_,C,M,m){var P=this.shape[0],A=this.shape[1],B=this.shape[2],F=this.shape[3],U=this.stride[0],G=this.stride[1],j=this.stride[2],H=this.stride[3],N=this.offset,W=0,re=Math.ceil;return typeof _=="number"&&(W=_|0,W<0?(N+=U*(P-1),P=re(-P/W)):P=re(P/W),U*=W),typeof C=="number"&&(W=C|0,W<0?(N+=G*(A-1),A=re(-A/W)):A=re(A/W),G*=W),typeof M=="number"&&(W=M|0,W<0?(N+=j*(B-1),B=re(-B/W)):B=re(B/W),j*=W),typeof m=="number"&&(W=m|0,W<0?(N+=H*(F-1),F=re(-F/W)):F=re(F/W),H*=W),new E(this.data,P,A,B,F,U,G,j,H,N)},T.transpose=function(_,C,M,m){_=_===void 0?0:_|0,C=C===void 0?1:C|0,M=M===void 0?2:M|0,m=m===void 0?3:m|0;var P=this.shape,A=this.stride;return new E(this.data,P[_],P[C],P[M],P[m],A[_],A[C],A[M],A[m],this.offset)},T.pick=function(_,C,M,m){var P=[],A=[],B=this.offset;typeof _=="number"&&_>=0?B=B+this.stride[0]*_|0:(P.push(this.shape[0]),A.push(this.stride[0])),typeof C=="number"&&C>=0?B=B+this.stride[1]*C|0:(P.push(this.shape[1]),A.push(this.stride[1])),typeof M=="number"&&M>=0?B=B+this.stride[2]*M|0:(P.push(this.shape[2]),A.push(this.stride[2])),typeof m=="number"&&m>=0?B=B+this.stride[3]*m|0:(P.push(this.shape[3]),A.push(this.stride[3]));var F=v[P.length+1];return F(this.data,P,A,B)},function(_,C,M,m){return new E(_,C[0],C[1],C[2],C[3],M[0],M[1],M[2],M[3],m)}},5:function(v,k,E){function T(_,C,M,m,P,A,B,F,U,G,j,H){this.data=_,this.shape=[C,M,m,P,A],this.stride=[B,F,U,G,j],this.offset=H|0}var L=T.prototype;return L.dtype=v,L.dimension=5,Object.defineProperty(L,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(L,"order",{get:E}),L.set=function(C,M,m,P,A,B){return v==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A,B):this.data[this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A]=B},L.get=function(C,M,m,P,A){return v==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A):this.data[this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A]},L.index=function(C,M,m,P,A){return this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A},L.hi=function(C,M,m,P,A){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:C|0,typeof M!="number"||M<0?this.shape[1]:M|0,typeof m!="number"||m<0?this.shape[2]:m|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof A!="number"||A<0?this.shape[4]:A|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(C,M,m,P,A){var B=this.offset,F=0,U=this.shape[0],G=this.shape[1],j=this.shape[2],H=this.shape[3],N=this.shape[4],W=this.stride[0],re=this.stride[1],ae=this.stride[2],be=this.stride[3],Pe=this.stride[4];return typeof C=="number"&&C>=0&&(F=C|0,B+=W*F,U-=F),typeof M=="number"&&M>=0&&(F=M|0,B+=re*F,G-=F),typeof m=="number"&&m>=0&&(F=m|0,B+=ae*F,j-=F),typeof P=="number"&&P>=0&&(F=P|0,B+=be*F,H-=F),typeof A=="number"&&A>=0&&(F=A|0,B+=Pe*F,N-=F),new T(this.data,U,G,j,H,N,W,re,ae,be,Pe,B)},L.step=function(C,M,m,P,A){var B=this.shape[0],F=this.shape[1],U=this.shape[2],G=this.shape[3],j=this.shape[4],H=this.stride[0],N=this.stride[1],W=this.stride[2],re=this.stride[3],ae=this.stride[4],be=this.offset,Pe=0,Ce=Math.ceil;return typeof C=="number"&&(Pe=C|0,Pe<0?(be+=H*(B-1),B=Ce(-B/Pe)):B=Ce(B/Pe),H*=Pe),typeof M=="number"&&(Pe=M|0,Pe<0?(be+=N*(F-1),F=Ce(-F/Pe)):F=Ce(F/Pe),N*=Pe),typeof m=="number"&&(Pe=m|0,Pe<0?(be+=W*(U-1),U=Ce(-U/Pe)):U=Ce(U/Pe),W*=Pe),typeof P=="number"&&(Pe=P|0,Pe<0?(be+=re*(G-1),G=Ce(-G/Pe)):G=Ce(G/Pe),re*=Pe),typeof A=="number"&&(Pe=A|0,Pe<0?(be+=ae*(j-1),j=Ce(-j/Pe)):j=Ce(j/Pe),ae*=Pe),new T(this.data,B,F,U,G,j,H,N,W,re,ae,be)},L.transpose=function(C,M,m,P,A){C=C===void 0?0:C|0,M=M===void 0?1:M|0,m=m===void 0?2:m|0,P=P===void 0?3:P|0,A=A===void 0?4:A|0;var B=this.shape,F=this.stride;return new T(this.data,B[C],B[M],B[m],B[P],B[A],F[C],F[M],F[m],F[P],F[A],this.offset)},L.pick=function(C,M,m,P,A){var B=[],F=[],U=this.offset;typeof C=="number"&&C>=0?U=U+this.stride[0]*C|0:(B.push(this.shape[0]),F.push(this.stride[0])),typeof M=="number"&&M>=0?U=U+this.stride[1]*M|0:(B.push(this.shape[1]),F.push(this.stride[1])),typeof m=="number"&&m>=0?U=U+this.stride[2]*m|0:(B.push(this.shape[2]),F.push(this.stride[2])),typeof P=="number"&&P>=0?U=U+this.stride[3]*P|0:(B.push(this.shape[3]),F.push(this.stride[3])),typeof A=="number"&&A>=0?U=U+this.stride[4]*A|0:(B.push(this.shape[4]),F.push(this.stride[4]));var G=k[B.length+1];return G(this.data,B,F,U)},function(C,M,m,P){return new T(C,M[0],M[1],M[2],M[3],M[4],m[0],m[1],m[2],m[3],m[4],P)}}};function h(b,v){var k=v===-1?"T":String(v),E=c[k];return v===-1?E(b):v===0?E(b,p[b][0]):E(b,p[b],f)}function d(b){if(s(b))return"buffer";if(u)switch(Object.prototype.toString.call(b)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(b)?"array":"generic"}var p={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function x(b,v,k,E){if(b===void 0){var m=p.array[0];return m([])}else typeof b=="number"&&(b=[b]);v===void 0&&(v=[b.length]);var T=v.length;if(k===void 0){k=new Array(T);for(var L=T-1,_=1;L>=0;--L)k[L]=_,_*=v[L]}if(E===void 0){E=0;for(var L=0;L>>0;i.exports=f;function f(c,h){if(isNaN(c)||isNaN(h))return NaN;if(c===h)return c;if(c===0)return h<0?-u:u;var d=s.hi(c),p=s.lo(c);return h>c==c>0?p===l?(d+=1,p=0):p+=1:p===0?(p=l,d-=1):p-=1,s.pack(p,d)}},8406:function(i,a){var o=1e-6,s=1e-6;a.vertexNormals=function(u,l,f){for(var c=l.length,h=new Array(c),d=f===void 0?o:f,p=0;pd)for(var B=h[v],F=1/Math.sqrt(M*P),A=0;A<3;++A){var U=(A+1)%3,G=(A+2)%3;B[A]+=F*(m[U]*C[G]-m[G]*C[U])}}for(var p=0;pd)for(var F=1/Math.sqrt(j),A=0;A<3;++A)B[A]*=F;else for(var A=0;A<3;++A)B[A]=0}return h},a.faceNormals=function(u,l,f){for(var c=u.length,h=new Array(c),d=f===void 0?s:f,p=0;pd?L=1/Math.sqrt(L):L=0;for(var v=0;v<3;++v)T[v]*=L;h[p]=T}return h}},4081:function(i){"use strict";i.exports=a;function a(o,s,u,l,f,c,h,d,p,x){var b=s+c+x;if(v>0){var v=Math.sqrt(b+1);o[0]=.5*(h-p)/v,o[1]=.5*(d-l)/v,o[2]=.5*(u-c)/v,o[3]=.5*v}else{var k=Math.max(s,c,x),v=Math.sqrt(2*k-b+1);s>=k?(o[0]=.5*v,o[1]=.5*(f+u)/v,o[2]=.5*(d+l)/v,o[3]=.5*(h-p)/v):c>=k?(o[0]=.5*(u+f)/v,o[1]=.5*v,o[2]=.5*(p+h)/v,o[3]=.5*(d-l)/v):(o[0]=.5*(l+d)/v,o[1]=.5*(h+p)/v,o[2]=.5*v,o[3]=.5*(u-f)/v)}return o}},9977:function(i,a,o){"use strict";i.exports=v;var s=o(9215),u=o(6582),l=o(7399),f=o(7608),c=o(4081);function h(k,E,T){return Math.sqrt(Math.pow(k,2)+Math.pow(E,2)+Math.pow(T,2))}function d(k,E,T,L){return Math.sqrt(Math.pow(k,2)+Math.pow(E,2)+Math.pow(T,2)+Math.pow(L,2))}function p(k,E){var T=E[0],L=E[1],_=E[2],C=E[3],M=d(T,L,_,C);M>1e-6?(k[0]=T/M,k[1]=L/M,k[2]=_/M,k[3]=C/M):(k[0]=k[1]=k[2]=0,k[3]=1)}function x(k,E,T){this.radius=s([T]),this.center=s(E),this.rotation=s(k),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var b=x.prototype;b.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},b.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var E=this.computedRotation;p(E,E);var T=this.computedMatrix;l(T,E);var L=this.computedCenter,_=this.computedEye,C=this.computedUp,M=Math.exp(this.computedRadius[0]);_[0]=L[0]+M*T[2],_[1]=L[1]+M*T[6],_[2]=L[2]+M*T[10],C[0]=T[1],C[1]=T[5],C[2]=T[9];for(var m=0;m<3;++m){for(var P=0,A=0;A<3;++A)P+=T[m+4*A]*_[A];T[12+m]=-P}},b.getMatrix=function(k,E){this.recalcMatrix(k);var T=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=T[L];return E}return T},b.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},b.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},b.pan=function(k,E,T,L){E=E||0,T=T||0,L=L||0,this.recalcMatrix(k);var _=this.computedMatrix,C=_[1],M=_[5],m=_[9],P=h(C,M,m);C/=P,M/=P,m/=P;var A=_[0],B=_[4],F=_[8],U=A*C+B*M+F*m;A-=C*U,B-=M*U,F-=m*U;var G=h(A,B,F);A/=G,B/=G,F/=G;var j=_[2],H=_[6],N=_[10],W=j*C+H*M+N*m,re=j*A+H*B+N*F;j-=W*C+re*A,H-=W*M+re*B,N-=W*m+re*F;var ae=h(j,H,N);j/=ae,H/=ae,N/=ae;var be=A*E+C*T,Pe=B*E+M*T,Ce=F*E+m*T;this.center.move(k,be,Pe,Ce);var de=Math.exp(this.computedRadius[0]);de=Math.max(1e-4,de+L),this.radius.set(k,Math.log(de))},b.rotate=function(k,E,T,L){this.recalcMatrix(k),E=E||0,T=T||0;var _=this.computedMatrix,C=_[0],M=_[4],m=_[8],P=_[1],A=_[5],B=_[9],F=_[2],U=_[6],G=_[10],j=E*C+T*P,H=E*M+T*A,N=E*m+T*B,W=-(U*N-G*H),re=-(G*j-F*N),ae=-(F*H-U*j),be=Math.sqrt(Math.max(0,1-Math.pow(W,2)-Math.pow(re,2)-Math.pow(ae,2))),Pe=d(W,re,ae,be);Pe>1e-6?(W/=Pe,re/=Pe,ae/=Pe,be/=Pe):(W=re=ae=0,be=1);var Ce=this.computedRotation,de=Ce[0],te=Ce[1],ke=Ce[2],Ee=Ce[3],Me=de*be+Ee*W+te*ae-ke*re,Ne=te*be+Ee*re+ke*W-de*ae,Fe=ke*be+Ee*ae+de*re-te*W,ye=Ee*be-de*W-te*re-ke*ae;if(L){W=F,re=U,ae=G;var Ve=Math.sin(L)/h(W,re,ae);W*=Ve,re*=Ve,ae*=Ve,be=Math.cos(E),Me=Me*be+ye*W+Ne*ae-Fe*re,Ne=Ne*be+ye*re+Fe*W-Me*ae,Fe=Fe*be+ye*ae+Me*re-Ne*W,ye=ye*be-Me*W-Ne*re-Fe*ae}var ce=d(Me,Ne,Fe,ye);ce>1e-6?(Me/=ce,Ne/=ce,Fe/=ce,ye/=ce):(Me=Ne=Fe=0,ye=1),this.rotation.set(k,Me,Ne,Fe,ye)},b.lookAt=function(k,E,T,L){this.recalcMatrix(k),T=T||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var _=this.computedMatrix;u(_,E,T,L);var C=this.computedRotation;c(C,_[0],_[1],_[2],_[4],_[5],_[6],_[8],_[9],_[10]),p(C,C),this.rotation.set(k,C[0],C[1],C[2],C[3]);for(var M=0,m=0;m<3;++m)M+=Math.pow(T[m]-E[m],2);this.radius.set(k,.5*Math.log(Math.max(M,1e-6))),this.center.set(k,T[0],T[1],T[2])},b.translate=function(k,E,T,L){this.center.move(k,E||0,T||0,L||0)},b.setMatrix=function(k,E){var T=this.computedRotation;c(T,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),p(T,T),this.rotation.set(k,T[0],T[1],T[2],T[3]);var L=this.computedMatrix;f(L,E);var _=L[15];if(Math.abs(_)>1e-6){var C=L[12]/_,M=L[13]/_,m=L[14]/_;this.recalcMatrix(k);var P=Math.exp(this.computedRadius[0]);this.center.set(k,C-L[2]*P,M-L[6]*P,m-L[10]*P),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},b.setDistance=function(k,E){E>0&&this.radius.set(k,Math.log(E))},b.setDistanceLimits=function(k,E){k>0?k=Math.log(k):k=-1/0,E>0?E=Math.log(E):E=1/0,E=Math.max(E,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=E},b.getDistanceLimits=function(k){var E=this.radius.bounds;return k?(k[0]=Math.exp(E[0][0]),k[1]=Math.exp(E[1][0]),k):[Math.exp(E[0][0]),Math.exp(E[1][0])]},b.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},b.fromJSON=function(k){var E=this.lastT(),T=k.center;T&&this.center.set(E,T[0],T[1],T[2]);var L=k.rotation;L&&this.rotation.set(E,L[0],L[1],L[2],L[3]);var _=k.distance;_&&_>0&&this.radius.set(E,Math.log(_)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function v(k){k=k||{};var E=k.center||[0,0,0],T=k.rotation||[0,0,0,1],L=k.radius||1;E=[].slice.call(E,0,3),T=[].slice.call(T,0,4),p(T,T);var _=new x(T,E,Math.log(L));return _.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&_.lookAt(0,k.eye,k.center,k.up),_}},1371:function(i,a,o){"use strict";var s=o(3233);i.exports=function(l,f,c){return c=typeof c!="undefined"?c+"":" ",s(c,f)+l}},3202:function(i){i.exports=function(o,s){s||(s=[0,""]),o=String(o);var u=parseFloat(o,10);return s[0]=u,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}},3088:function(i,a,o){"use strict";i.exports=u;var s=o(3140);function u(l,f){for(var c=f.length|0,h=l.length,d=[new Array(c),new Array(c)],p=0;p0){B=d[G][P][0],U=G;break}F=B[U^1];for(var j=0;j<2;++j)for(var H=d[j][P],N=0;N0&&(B=W,F=re,U=j)}return A||B&&v(B,U),F}function E(m,P){var A=d[P][m][0],B=[m];v(A,P);for(var F=A[P^1],U=P;;){for(;F!==m;)B.push(F),F=k(B[B.length-2],F,!1);if(d[0][m].length+d[1][m].length===0)break;var G=B[B.length-1],j=m,H=B[1],N=k(G,j,!0);if(s(f[G],f[j],f[H],f[N])<0)break;B.push(m),F=k(G,j)}return B}function T(m,P){return P[1]===P[P.length-1]}for(var p=0;p0;){var C=d[0][p].length,M=E(p,L);T(_,M)?_.push.apply(_,M):(_.length>0&&b.push(_),_=M)}_.length>0&&b.push(_)}return b}},5609:function(i,a,o){"use strict";i.exports=u;var s=o(3134);function u(l,f){for(var c=s(l,f.length),h=new Array(f.length),d=new Array(f.length),p=[],x=0;x0;){var v=p.pop();h[v]=!1;for(var k=c[v],x=0;x0}C=C.filter(M);for(var m=C.length,P=new Array(m),A=new Array(m),_=0;_0;){var ce=Fe.pop(),Ye=Pe[ce];h(Ye,function(Ke,kt){return Ke-kt});var nt=Ye.length,gt=ye[ce],Nt;if(gt===0){var H=C[ce];Nt=[H]}for(var _=0;_=0)&&(ye[it]=gt^1,Fe.push(it),gt===0)){var H=C[it];Ne(H)||(H.reverse(),Nt.push(H))}}gt===0&&Ve.push(Nt)}return Ve}},5085:function(i,a,o){i.exports=k;var s=o(3250)[3],u=o(4209),l=o(3352),f=o(2478);function c(){return!0}function h(E){return function(T,L){var _=E[T];return _?!!_.queryPoint(L,c):!1}}function d(E){for(var T={},L=0;L0&&T[_]===L[0])C=E[_-1];else return 1;for(var M=1;C;){var m=C.key,P=s(L,m[0],m[1]);if(m[0][0]0)M=-1,C=C.right;else return 0;else if(P>0)C=C.left;else if(P<0)M=1,C=C.right;else return 0}return M}}function x(E){return 1}function b(E){return function(L){return E(L[0],L[1])?0:1}}function v(E,T){return function(_){return E(_[0],_[1])?0:T(_)}}function k(E){for(var T=E.length,L=[],_=[],C=0,M=0;M=x?(m=1,A=x+2*k+T):(m=-k/x,A=k*m+T)):(m=0,E>=0?(P=0,A=T):-E>=v?(P=1,A=v+2*E+T):(P=-E/v,A=E*P+T));else if(P<0)P=0,k>=0?(m=0,A=T):-k>=x?(m=1,A=x+2*k+T):(m=-k/x,A=k*m+T);else{var B=1/M;m*=B,P*=B,A=m*(x*m+b*P+2*k)+P*(b*m+v*P+2*E)+T}else{var F,U,G,j;m<0?(F=b+k,U=v+E,U>F?(G=U-F,j=x-2*b+v,G>=j?(m=1,P=0,A=x+2*k+T):(m=G/j,P=1-m,A=m*(x*m+b*P+2*k)+P*(b*m+v*P+2*E)+T)):(m=0,U<=0?(P=1,A=v+2*E+T):E>=0?(P=0,A=T):(P=-E/v,A=E*P+T))):P<0?(F=b+E,U=x+k,U>F?(G=U-F,j=x-2*b+v,G>=j?(P=1,m=0,A=v+2*E+T):(P=G/j,m=1-P,A=m*(x*m+b*P+2*k)+P*(b*m+v*P+2*E)+T)):(P=0,U<=0?(m=1,A=x+2*k+T):k>=0?(m=0,A=T):(m=-k/x,A=k*m+T))):(G=v+E-b-k,G<=0?(m=0,P=1,A=v+2*E+T):(j=x-2*b+v,G>=j?(m=1,P=0,A=x+2*k+T):(m=G/j,P=1-m,A=m*(x*m+b*P+2*k)+P*(b*m+v*P+2*E)+T)))}for(var H=1-m-P,p=0;p0){var v=c[d-1];if(s(x,v)===0&&l(v)!==b){d-=1;continue}}c[d++]=x}}return c.length=d,c}},3233:function(i){"use strict";var a="",o;i.exports=s;function s(u,l){if(typeof u!="string")throw new TypeError("expected a string");if(l===1)return u;if(l===2)return u+u;var f=u.length*l;if(o!==u||typeof o=="undefined")o=u,a="";else if(a.length>=f)return a.substr(0,f);for(;f>a.length&&l>1;)l&1&&(a+=u),l>>=1,u+=u;return a+=u,a=a.substr(0,f),a}},3025:function(i,a,o){i.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(i){"use strict";i.exports=a;function a(o){for(var s=o.length,u=o[o.length-1],l=s,f=s-2;f>=0;--f){var c=u,h=o[f];u=c+h;var d=u-c,p=h-d;p&&(o[--l]=u,u=p)}for(var x=0,f=l;f0){if(U<=0)return G;j=F+U}else if(F<0){if(U>=0)return G;j=-(F+U)}else return G;var H=d*j;return G>=H||G<=-H?G:E(P,A,B)},function(P,A,B,F){var U=P[0]-F[0],G=A[0]-F[0],j=B[0]-F[0],H=P[1]-F[1],N=A[1]-F[1],W=B[1]-F[1],re=P[2]-F[2],ae=A[2]-F[2],be=B[2]-F[2],Pe=G*W,Ce=j*N,de=j*H,te=U*W,ke=U*N,Ee=G*H,Me=re*(Pe-Ce)+ae*(de-te)+be*(ke-Ee),Ne=(Math.abs(Pe)+Math.abs(Ce))*Math.abs(re)+(Math.abs(de)+Math.abs(te))*Math.abs(ae)+(Math.abs(ke)+Math.abs(Ee))*Math.abs(be),Fe=p*Ne;return Me>Fe||-Me>Fe?Me:T(P,A,B,F)}];function _(m){var P=L[m.length];return P||(P=L[m.length]=k(m.length)),P.apply(void 0,m)}function C(m,P,A,B,F,U,G){return function(H,N,W,re,ae){switch(arguments.length){case 0:case 1:return 0;case 2:return B(H,N);case 3:return F(H,N,W);case 4:return U(H,N,W,re);case 5:return G(H,N,W,re,ae)}for(var be=new Array(arguments.length),Pe=0;Pe0&&x>0||p<0&&x<0)return!1;var b=s(h,f,c),v=s(d,f,c);return b>0&&v>0||b<0&&v<0?!1:p===0&&x===0&&b===0&&v===0?u(f,c,h,d):!0}},8545:function(i){"use strict";i.exports=o;function a(s,u){var l=s+u,f=l-s,c=l-f,h=u-f,d=s-c,p=d+h;return p?[p,l]:[l]}function o(s,u){var l=s.length|0,f=u.length|0;if(l===1&&f===1)return a(s[0],-u[0]);var c=l+f,h=new Array(c),d=0,p=0,x=0,b=Math.abs,v=s[p],k=b(v),E=-u[x],T=b(E),L,_;k=f?(L=v,p+=1,p=f?(L=v,p+=1,p>1,E=c[2*k+1];if(E===x)return k;x>1,E=c[2*k+1];if(E===x)return k;x>1,E=c[2*k+1];if(E===x)return k;x>1,E=c[2*k+1];if(E===x)return k;x>1,j=d(P[G],A);j<=0?(j===0&&(U=G),B=G+1):j>0&&(F=G-1)}return U}s=v;function k(P,A){for(var B=new Array(P.length),F=0,U=B.length;F=P.length||d(P[Pe],G)!==0););}return B}s=k;function E(P,A){if(!A)return k(b(L(P,0)),P,0);for(var B=new Array(A),F=0;F>>W&1&&N.push(U[W]);A.push(N)}return x(A)}s=T;function L(P,A){if(A<0)return[];for(var B=[],F=(1<0)-(l<0)},a.abs=function(l){var f=l>>o-1;return(l^f)-f},a.min=function(l,f){return f^(l^f)&-(l65535)<<4,l>>>=f,c=(l>255)<<3,l>>>=c,f|=c,c=(l>15)<<2,l>>>=c,f|=c,c=(l>3)<<1,l>>>=c,f|=c,f|l>>1},a.log10=function(l){return l>=1e9?9:l>=1e8?8:l>=1e7?7:l>=1e6?6:l>=1e5?5:l>=1e4?4:l>=1e3?3:l>=100?2:l>=10?1:0},a.popCount=function(l){return l=l-(l>>>1&1431655765),l=(l&858993459)+(l>>>2&858993459),(l+(l>>>4)&252645135)*16843009>>>24};function s(l){var f=32;return l&=-l,l&&f--,l&65535&&(f-=16),l&16711935&&(f-=8),l&252645135&&(f-=4),l&858993459&&(f-=2),l&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(l){return l+=l===0,--l,l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l+1},a.prevPow2=function(l){return l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l-(l>>>1)},a.parity=function(l){return l^=l>>>16,l^=l>>>8,l^=l>>>4,l&=15,27030>>>l&1};var u=new Array(256);(function(l){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;l[f]=h<>>8&255]<<16|u[l>>>16&255]<<8|u[l>>>24&255]},a.interleave2=function(l,f){return l&=65535,l=(l|l<<8)&16711935,l=(l|l<<4)&252645135,l=(l|l<<2)&858993459,l=(l|l<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,l|f<<1},a.deinterleave2=function(l,f){return l=l>>>f&1431655765,l=(l|l>>>1)&858993459,l=(l|l>>>2)&252645135,l=(l|l>>>4)&16711935,l=(l|l>>>16)&65535,l<<16>>16},a.interleave3=function(l,f,c){return l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,l|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,l|c<<2},a.deinterleave3=function(l,f){return l=l>>>f&1227133513,l=(l|l>>>2)&3272356035,l=(l|l>>>4)&251719695,l=(l|l>>>8)&4278190335,l=(l|l>>>16)&1023,l<<22>>22},a.nextCombination=function(l){var f=l|l-1;return f+1|(~f&-~f)-1>>>s(l)+1}},2014:function(i,a,o){"use strict";"use restrict";var s=o(3105),u=o(4623);function l(m){for(var P=0,A=Math.max,B=0,F=m.length;B>1,G=h(m[U],P);G<=0?(G===0&&(F=U),A=U+1):G>0&&(B=U-1)}return F}a.findCell=b;function v(m,P){for(var A=new Array(m.length),B=0,F=A.length;B=m.length||h(m[be],U)!==0););}return A}a.incidence=v;function k(m,P){if(!P)return v(x(T(m,0)),m,0);for(var A=new Array(P),B=0;B>>N&1&&H.push(F[N]);P.push(H)}return p(P)}a.explode=E;function T(m,P){if(P<0)return[];for(var A=[],B=(1<>1:(te>>1)-1}function B(te){for(var ke=P(te);;){var Ee=ke,Me=2*te+1,Ne=2*(te+1),Fe=te;if(Me0;){var Ee=A(te);if(Ee>=0){var Me=P(Ee);if(ke0){var te=H[0];return m(0,re-1),re-=1,B(0),te}return-1}function G(te,ke){var Ee=H[te];return k[Ee]===ke?te:(k[Ee]=-1/0,F(te),U(),k[Ee]=ke,re+=1,F(re-1))}function j(te){if(!E[te]){E[te]=!0;var ke=b[te],Ee=v[te];b[Ee]>=0&&(b[Ee]=ke),v[ke]>=0&&(v[ke]=Ee),N[ke]>=0&&G(N[ke],M(ke)),N[Ee]>=0&&G(N[Ee],M(Ee))}}for(var H=[],N=new Array(p),T=0;T>1;T>=0;--T)B(T);for(;;){var ae=U();if(ae<0||k[ae]>d)break;j(ae)}for(var be=[],T=0;T=0&&Ee>=0&&ke!==Ee){var Me=N[ke],Ne=N[Ee];Me!==Ne&&de.push([Me,Ne])}}),u.unique(u.normalize(de)),{positions:be,edges:de}}},1303:function(i,a,o){"use strict";i.exports=l;var s=o(3250);function u(f,c){var h,d;if(c[0][0]c[1][0])h=c[1],d=c[0];else{var p=Math.min(f[0][1],f[1][1]),x=Math.max(f[0][1],f[1][1]),b=Math.min(c[0][1],c[1][1]),v=Math.max(c[0][1],c[1][1]);return xv?p-v:x-v}var k,E;f[0][1]c[1][0])h=c[1],d=c[0];else return u(c,f);var p,x;if(f[0][0]f[1][0])p=f[1],x=f[0];else return-u(f,c);var b=s(h,d,x),v=s(h,d,p);if(b<0){if(v<=0)return b}else if(b>0){if(v>=0)return b}else if(v)return v;if(b=s(x,p,d),v=s(x,p,h),b<0){if(v<=0)return b}else if(b>0){if(v>=0)return b}else if(v)return v;return d[0]-x[0]}},4209:function(i,a,o){"use strict";i.exports=v;var s=o(2478),u=o(3840),l=o(3250),f=o(1303);function c(k,E,T){this.slabs=k,this.coordinates=E,this.horizontal=T}var h=c.prototype;function d(k,E){return k.y-E}function p(k,E){for(var T=null;k;){var L=k.key,_,C;L[0][0]0)if(E[0]!==L[1][0])T=k,k=k.right;else{var m=p(k.right,E);if(m)return m;k=k.left}else{if(E[0]!==L[1][0])return k;var m=p(k.right,E);if(m)return m;k=k.left}}return T}h.castUp=function(k){var E=s.le(this.coordinates,k[0]);if(E<0)return-1;var T=this.slabs[E],L=p(this.slabs[E],k),_=-1;if(L&&(_=L.value),this.coordinates[E]===k[0]){var C=null;if(L&&(C=L.key),E>0){var M=p(this.slabs[E-1],k);M&&(C?f(M.key,C)>0&&(C=M.key,_=M.value):(_=M.value,C=M.key))}var m=this.horizontal[E];if(m.length>0){var P=s.ge(m,k[1],d);if(P=m.length)return _;A=m[P]}}if(A.start)if(C){var B=l(C[0],C[1],[k[0],A.y]);C[0][0]>C[1][0]&&(B=-B),B>0&&(_=A.index)}else _=A.index;else A.y!==k[1]&&(_=A.index)}}}return _};function x(k,E,T,L){this.y=k,this.index=E,this.start=T,this.closed=L}function b(k,E,T,L){this.x=k,this.segment=E,this.create=T,this.index=L}function v(k){for(var E=k.length,T=2*E,L=new Array(T),_=0;_1&&(E=1);for(var T=1-E,L=p.length,_=new Array(L),C=0;C0||k>0&&_<0){var C=f(E,_,T,k);b.push(C),v.push(C.slice())}_<0?v.push(T.slice()):_>0?b.push(T.slice()):(b.push(T.slice()),v.push(T.slice())),k=_}return{positive:b,negative:v}}function h(p,x){for(var b=[],v=l(p[p.length-1],x),k=p[p.length-1],E=p[0],T=0;T0||v>0&&L<0)&&b.push(f(k,L,E,v)),L>=0&&b.push(E.slice()),v=L}return b}function d(p,x){for(var b=[],v=l(p[p.length-1],x),k=p[p.length-1],E=p[0],T=0;T0||v>0&&L<0)&&b.push(f(k,L,E,v)),L<=0&&b.push(E.slice()),v=L}return b}},3387:function(i,a,o){var s;(function(){"use strict";var u={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function l(p){return c(d(p),arguments)}function f(p,x){return l.apply(null,[p].concat(x||[]))}function c(p,x){var b=1,v=p.length,k,E="",T,L,_,C,M,m,P,A;for(T=0;T=0),_.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,_.width?parseInt(_.width):0);break;case"e":k=_.precision?parseFloat(k).toExponential(_.precision):parseFloat(k).toExponential();break;case"f":k=_.precision?parseFloat(k).toFixed(_.precision):parseFloat(k);break;case"g":k=_.precision?String(Number(k.toPrecision(_.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=_.precision?k.substring(0,_.precision):k;break;case"t":k=String(!!k),k=_.precision?k.substring(0,_.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=_.precision?k.substring(0,_.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=_.precision?k.substring(0,_.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}u.json.test(_.type)?E+=k:(u.number.test(_.type)&&(!P||_.sign)?(A=P?"+":"-",k=k.toString().replace(u.sign,"")):A="",M=_.pad_char?_.pad_char==="0"?"0":_.pad_char.charAt(1):" ",m=_.width-(A+k).length,C=_.width&&m>0?M.repeat(m):"",E+=_.align?A+k+C:M==="0"?A+C+k:C+A+k)}return E}var h=Object.create(null);function d(p){if(h[p])return h[p];for(var x=p,b,v=[],k=0;x;){if((b=u.text.exec(x))!==null)v.push(b[0]);else if((b=u.modulo.exec(x))!==null)v.push("%");else if((b=u.placeholder.exec(x))!==null){if(b[2]){k|=1;var E=[],T=b[2],L=[];if((L=u.key.exec(T))!==null)for(E.push(L[1]);(T=T.substring(L[0].length))!=="";)if((L=u.key_access.exec(T))!==null)E.push(L[1]);else if((L=u.index_access.exec(T))!==null)E.push(L[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");b[2]=E}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");v.push({placeholder:b[0],param_no:b[1],keys:b[2],sign:b[3],pad_char:b[4],align:b[5],width:b[6],precision:b[7],type:b[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");x=x.substring(b[0].length)}return h[p]=v}a.sprintf=l,a.vsprintf=f,typeof window!="undefined"&&(window.sprintf=l,window.vsprintf=f,s=function(){return{sprintf:l,vsprintf:f}}.call(a,o,a,i),s!==void 0&&(i.exports=s))})()},3711:function(i,a,o){"use strict";i.exports=d;var s=o(2640),u=o(781),l={"2d":function(p,x,b){var v=p({order:x,scalarArguments:3,getters:b==="generic"?[0]:void 0,phase:function(E,T,L,_){return E>_|0},vertex:function(E,T,L,_,C,M,m,P,A,B,F,U,G){var j=(m<<0)+(P<<1)+(A<<2)+(B<<3)|0;if(!(j===0||j===15))switch(j){case 0:F.push([E-.5,T-.5]);break;case 1:F.push([E-.25-.25*(_+L-2*G)/(L-_),T-.25-.25*(C+L-2*G)/(L-C)]);break;case 2:F.push([E-.75-.25*(-_-L+2*G)/(_-L),T-.25-.25*(M+_-2*G)/(_-M)]);break;case 3:F.push([E-.5,T-.5-.5*(C+L+M+_-4*G)/(L-C+_-M)]);break;case 4:F.push([E-.25-.25*(M+C-2*G)/(C-M),T-.75-.25*(-C-L+2*G)/(C-L)]);break;case 5:F.push([E-.5-.5*(_+L+M+C-4*G)/(L-_+C-M),T-.5]);break;case 6:F.push([E-.5-.25*(-_-L+M+C)/(_-L+C-M),T-.5-.25*(-C-L+M+_)/(C-L+_-M)]);break;case 7:F.push([E-.75-.25*(M+C-2*G)/(C-M),T-.75-.25*(M+_-2*G)/(_-M)]);break;case 8:F.push([E-.75-.25*(-M-C+2*G)/(M-C),T-.75-.25*(-M-_+2*G)/(M-_)]);break;case 9:F.push([E-.5-.25*(_+L+-M-C)/(L-_+M-C),T-.5-.25*(C+L+-M-_)/(L-C+M-_)]);break;case 10:F.push([E-.5-.5*(-_-L+-M-C+4*G)/(_-L+M-C),T-.5]);break;case 11:F.push([E-.25-.25*(-M-C+2*G)/(M-C),T-.75-.25*(C+L-2*G)/(L-C)]);break;case 12:F.push([E-.5,T-.5-.5*(-C-L+-M-_+4*G)/(C-L+M-_)]);break;case 13:F.push([E-.75-.25*(_+L-2*G)/(L-_),T-.25-.25*(-M-_+2*G)/(M-_)]);break;case 14:F.push([E-.25-.25*(-_-L+2*G)/(_-L),T-.25-.25*(-C-L+2*G)/(C-L)]);break;case 15:F.push([E-.5,T-.5]);break}},cell:function(E,T,L,_,C,M,m,P,A){C?P.push([E,T]):P.push([T,E])}});return function(k,E){var T=[],L=[];return v(k,T,L,E),{positions:T,cells:L}}}};function f(p,x){var b=p.length+"d",v=l[b];if(v)return v(s,p,x)}function c(p,x){for(var b=u(p,x),v=b.length,k=new Array(v),E=new Array(v),T=0;TMath.max(_,C)?M[2]=1:_>Math.max(L,C)?M[0]=1:M[1]=1;for(var m=0,P=0,A=0;A<3;++A)m+=T[A]*T[A],P+=M[A]*T[A];for(var A=0;A<3;++A)M[A]-=P/m*T[A];return c(M,M),M}function b(T,L,_,C,M,m,P,A){this.center=s(_),this.up=s(C),this.right=s(M),this.radius=s([m]),this.angle=s([P,A]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(T,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var B=0;B<16;++B)this.computedMatrix[B]=.5;this.recalcMatrix(0)}var v=b.prototype;v.setDistanceLimits=function(T,L){T>0?T=Math.log(T):T=-1/0,L>0?L=Math.log(L):L=1/0,L=Math.max(L,T),this.radius.bounds[0][0]=T,this.radius.bounds[1][0]=L},v.getDistanceLimits=function(T){var L=this.radius.bounds[0];return T?(T[0]=Math.exp(L[0][0]),T[1]=Math.exp(L[1][0]),T):[Math.exp(L[0][0]),Math.exp(L[1][0])]},v.recalcMatrix=function(T){this.center.curve(T),this.up.curve(T),this.right.curve(T),this.radius.curve(T),this.angle.curve(T);for(var L=this.computedUp,_=this.computedRight,C=0,M=0,m=0;m<3;++m)M+=L[m]*_[m],C+=L[m]*L[m];for(var P=Math.sqrt(C),A=0,m=0;m<3;++m)_[m]-=L[m]*M/C,A+=_[m]*_[m],L[m]/=P;for(var B=Math.sqrt(A),m=0;m<3;++m)_[m]/=B;var F=this.computedToward;f(F,L,_),c(F,F);for(var U=Math.exp(this.computedRadius[0]),G=this.computedAngle[0],j=this.computedAngle[1],H=Math.cos(G),N=Math.sin(G),W=Math.cos(j),re=Math.sin(j),ae=this.computedCenter,be=H*W,Pe=N*W,Ce=re,de=-H*re,te=-N*re,ke=W,Ee=this.computedEye,Me=this.computedMatrix,m=0;m<3;++m){var Ne=be*_[m]+Pe*F[m]+Ce*L[m];Me[4*m+1]=de*_[m]+te*F[m]+ke*L[m],Me[4*m+2]=Ne,Me[4*m+3]=0}var Fe=Me[1],ye=Me[5],Ve=Me[9],ce=Me[2],Ye=Me[6],nt=Me[10],gt=ye*nt-Ve*Ye,Nt=Ve*ce-Fe*nt,it=Fe*Ye-ye*ce,Ke=d(gt,Nt,it);gt/=Ke,Nt/=Ke,it/=Ke,Me[0]=gt,Me[4]=Nt,Me[8]=it;for(var m=0;m<3;++m)Ee[m]=ae[m]+Me[2+4*m]*U;for(var m=0;m<3;++m){for(var A=0,kt=0;kt<3;++kt)A+=Me[m+4*kt]*Ee[kt];Me[12+m]=-A}Me[15]=1},v.getMatrix=function(T,L){this.recalcMatrix(T);var _=this.computedMatrix;if(L){for(var C=0;C<16;++C)L[C]=_[C];return L}return _};var k=[0,0,0];v.rotate=function(T,L,_,C){if(this.angle.move(T,L,_),C){this.recalcMatrix(T);var M=this.computedMatrix;k[0]=M[2],k[1]=M[6],k[2]=M[10];for(var m=this.computedUp,P=this.computedRight,A=this.computedToward,B=0;B<3;++B)M[4*B]=m[B],M[4*B+1]=P[B],M[4*B+2]=A[B];l(M,M,C,k);for(var B=0;B<3;++B)m[B]=M[4*B],P[B]=M[4*B+1];this.up.set(T,m[0],m[1],m[2]),this.right.set(T,P[0],P[1],P[2])}},v.pan=function(T,L,_,C){L=L||0,_=_||0,C=C||0,this.recalcMatrix(T);var M=this.computedMatrix,m=Math.exp(this.computedRadius[0]),P=M[1],A=M[5],B=M[9],F=d(P,A,B);P/=F,A/=F,B/=F;var U=M[0],G=M[4],j=M[8],H=U*P+G*A+j*B;U-=P*H,G-=A*H,j-=B*H;var N=d(U,G,j);U/=N,G/=N,j/=N;var W=U*L+P*_,re=G*L+A*_,ae=j*L+B*_;this.center.move(T,W,re,ae);var be=Math.exp(this.computedRadius[0]);be=Math.max(1e-4,be+C),this.radius.set(T,Math.log(be))},v.translate=function(T,L,_,C){this.center.move(T,L||0,_||0,C||0)},v.setMatrix=function(T,L,_,C){var M=1;typeof _=="number"&&(M=_|0),(M<0||M>3)&&(M=1);var m=(M+2)%3,P=(M+1)%3;L||(this.recalcMatrix(T),L=this.computedMatrix);var A=L[M],B=L[M+4],F=L[M+8];if(C){var G=Math.abs(A),j=Math.abs(B),H=Math.abs(F),N=Math.max(G,j,H);G===N?(A=A<0?-1:1,B=F=0):H===N?(F=F<0?-1:1,A=B=0):(B=B<0?-1:1,A=F=0)}else{var U=d(A,B,F);A/=U,B/=U,F/=U}var W=L[m],re=L[m+4],ae=L[m+8],be=W*A+re*B+ae*F;W-=A*be,re-=B*be,ae-=F*be;var Pe=d(W,re,ae);W/=Pe,re/=Pe,ae/=Pe;var Ce=B*ae-F*re,de=F*W-A*ae,te=A*re-B*W,ke=d(Ce,de,te);Ce/=ke,de/=ke,te/=ke,this.center.jump(T,Et,Ae,at),this.radius.idle(T),this.up.jump(T,A,B,F),this.right.jump(T,W,re,ae);var Ee,Me;if(M===2){var Ne=L[1],Fe=L[5],ye=L[9],Ve=Ne*W+Fe*re+ye*ae,ce=Ne*Ce+Fe*de+ye*te;Nt<0?Ee=-Math.PI/2:Ee=Math.PI/2,Me=Math.atan2(ce,Ve)}else{var Ye=L[2],nt=L[6],gt=L[10],Nt=Ye*A+nt*B+gt*F,it=Ye*W+nt*re+gt*ae,Ke=Ye*Ce+nt*de+gt*te;Ee=Math.asin(p(Nt)),Me=Math.atan2(Ke,it)}this.angle.jump(T,Me,Ee),this.recalcMatrix(T);var kt=L[2],Tt=L[6],St=L[10],Dt=this.computedMatrix;u(Dt,L);var Zt=Dt[15],Et=Dt[12]/Zt,Ae=Dt[13]/Zt,at=Dt[14]/Zt,wt=Math.exp(this.computedRadius[0]);this.center.jump(T,Et-kt*wt,Ae-Tt*wt,at-St*wt)},v.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},v.idle=function(T){this.center.idle(T),this.up.idle(T),this.right.idle(T),this.radius.idle(T),this.angle.idle(T)},v.flush=function(T){this.center.flush(T),this.up.flush(T),this.right.flush(T),this.radius.flush(T),this.angle.flush(T)},v.setDistance=function(T,L){L>0&&this.radius.set(T,Math.log(L))},v.lookAt=function(T,L,_,C){this.recalcMatrix(T),L=L||this.computedEye,_=_||this.computedCenter,C=C||this.computedUp;var M=C[0],m=C[1],P=C[2],A=d(M,m,P);if(!(A<1e-6)){M/=A,m/=A,P/=A;var B=L[0]-_[0],F=L[1]-_[1],U=L[2]-_[2],G=d(B,F,U);if(!(G<1e-6)){B/=G,F/=G,U/=G;var j=this.computedRight,H=j[0],N=j[1],W=j[2],re=M*H+m*N+P*W;H-=re*M,N-=re*m,W-=re*P;var ae=d(H,N,W);if(!(ae<.01&&(H=m*U-P*F,N=P*B-M*U,W=M*F-m*B,ae=d(H,N,W),ae<1e-6))){H/=ae,N/=ae,W/=ae,this.up.set(T,M,m,P),this.right.set(T,H,N,W),this.center.set(T,_[0],_[1],_[2]),this.radius.set(T,Math.log(G));var be=m*W-P*N,Pe=P*H-M*W,Ce=M*N-m*H,de=d(be,Pe,Ce);be/=de,Pe/=de,Ce/=de;var te=M*B+m*F+P*U,ke=H*B+N*F+W*U,Ee=be*B+Pe*F+Ce*U,Me=Math.asin(p(te)),Ne=Math.atan2(Ee,ke),Fe=this.angle._state,ye=Fe[Fe.length-1],Ve=Fe[Fe.length-2];ye=ye%(2*Math.PI);var ce=Math.abs(ye+2*Math.PI-Ne),Ye=Math.abs(ye-Ne),nt=Math.abs(ye-2*Math.PI-Ne);ce0?W.pop():new ArrayBuffer(H)}a.mallocArrayBuffer=k;function E(j){return new Uint8Array(k(j),0,j)}a.mallocUint8=E;function T(j){return new Uint16Array(k(2*j),0,j)}a.mallocUint16=T;function L(j){return new Uint32Array(k(4*j),0,j)}a.mallocUint32=L;function _(j){return new Int8Array(k(j),0,j)}a.mallocInt8=_;function C(j){return new Int16Array(k(2*j),0,j)}a.mallocInt16=C;function M(j){return new Int32Array(k(4*j),0,j)}a.mallocInt32=M;function m(j){return new Float32Array(k(4*j),0,j)}a.mallocFloat32=a.mallocFloat=m;function P(j){return new Float64Array(k(8*j),0,j)}a.mallocFloat64=a.mallocDouble=P;function A(j){return f?new Uint8ClampedArray(k(j),0,j):E(j)}a.mallocUint8Clamped=A;function B(j){return c?new BigUint64Array(k(8*j),0,j):null}a.mallocBigUint64=B;function F(j){return h?new BigInt64Array(k(8*j),0,j):null}a.mallocBigInt64=F;function U(j){return new DataView(k(j),0,j)}a.mallocDataView=U;function G(j){j=s.nextPow2(j);var H=s.log2(j),N=x[H];return N.length>0?N.pop():new l(j)}a.mallocBuffer=G,a.clearCache=function(){for(var H=0;H<32;++H)d.UINT8[H].length=0,d.UINT16[H].length=0,d.UINT32[H].length=0,d.INT8[H].length=0,d.INT16[H].length=0,d.INT32[H].length=0,d.FLOAT[H].length=0,d.DOUBLE[H].length=0,d.BIGUINT64[H].length=0,d.BIGINT64[H].length=0,d.UINT8C[H].length=0,p[H].length=0,x[H].length=0}},1755:function(i){"use strict";"use restrict";i.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var u=0;u",W="",re=N.length,ae=W.length,be=G[0]===k||G[0]===L,Pe=0,Ce=-ae;Pe>-1&&(Pe=j.indexOf(N,Pe),!(Pe===-1||(Ce=j.indexOf(W,Pe+re),Ce===-1)||Ce<=Pe));){for(var de=Pe;de=Ce)H[de]=null,j=j.substr(0,de)+" "+j.substr(de+1);else if(H[de]!==null){var te=H[de].indexOf(G[0]);te===-1?H[de]+=G:be&&(H[de]=H[de].substr(0,te+1)+(1+parseInt(H[de][te+1]))+H[de].substr(te+2))}var ke=Pe+re,Ee=j.substr(ke,Ce-ke),Me=Ee.indexOf(N);Me!==-1?Pe=Me:Pe=Ce+ae}return H}function M(U,G,j){for(var H=G.textAlign||"start",N=G.textBaseline||"alphabetic",W=[1<<30,1<<30],re=[0,0],ae=U.length,be=0;be/g,` -`):j=j.replace(/\/g," ");var re="",ae=[];for(ye=0;ye-1?parseInt(Ae[1+vt]):0,rt=st>-1?parseInt(at[1+st]):0;Ue!==rt&&(wt=wt.replace(it(),"?px "),Ye*=Math.pow(.75,rt-Ue),wt=wt.replace("?px ",it())),ce+=.25*te*(rt-Ue)}if(W.superscripts===!0){var $e=Ae.indexOf(k),zt=at.indexOf(k),Yt=$e>-1?parseInt(Ae[1+$e]):0,hr=zt>-1?parseInt(at[1+zt]):0;Yt!==hr&&(wt=wt.replace(it(),"?px "),Ye*=Math.pow(.75,hr-Yt),wt=wt.replace("?px ",it())),ce-=.25*te*(hr-Yt)}if(W.bolds===!0){var yr=Ae.indexOf(p)>-1,br=at.indexOf(p)>-1;!yr&&br&&(Ut?wt=wt.replace("italic ","italic bold "):wt="bold "+wt),yr&&!br&&(wt=wt.replace("bold ",""))}if(W.italics===!0){var Ut=Ae.indexOf(b)>-1,Ie=at.indexOf(b)>-1;!Ut&&Ie&&(wt="italic "+wt),Ut&&!Ie&&(wt=wt.replace("italic ",""))}G.font=wt}for(Fe=0;Fe0&&(N=H.size),H.lineSpacing&&H.lineSpacing>0&&(W=H.lineSpacing),H.styletags&&H.styletags.breaklines&&(re.breaklines=!!H.styletags.breaklines),H.styletags&&H.styletags.bolds&&(re.bolds=!!H.styletags.bolds),H.styletags&&H.styletags.italics&&(re.italics=!!H.styletags.italics),H.styletags&&H.styletags.subscripts&&(re.subscripts=!!H.styletags.subscripts),H.styletags&&H.styletags.superscripts&&(re.superscripts=!!H.styletags.superscripts)),j.font=[H.fontStyle,H.fontVariant,H.fontWeight,N+"px",H.font].filter(function(be){return be}).join(" "),j.textAlign="start",j.textBaseline="alphabetic",j.direction="ltr";var ae=m(G,j,U,N,W,re);return B(ae,H,N)}},1538:function(i){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(A){A.permitHostObjects___&&A.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var l=new u,f=Object.freeze({});if(l.set(f,1),l.get(f)!==1)s=!0;else{i.exports=WeakMap;return}}}var c=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,p=Object.isExtensible,x="weakmap:",b=x+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var v=new ArrayBuffer(25),k=new Uint8Array(v);crypto.getRandomValues(k),b=x+"rand:"+Array.prototype.map.call(k,function(A){return(A%36).toString(36)}).join("")+"___"}function E(A){return!(A.substr(0,x.length)==x&&A.substr(A.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(B){return h(B).filter(E)}}),"getPropertyNames"in Object){var T=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(B){return T(B).filter(E)}})}function L(A){if(A!==Object(A))throw new TypeError("Not an object: "+A);var B=A[b];if(B&&B.key===A)return B;if(p(A)){B={key:A};try{return d(A,b,{value:B,writable:!1,enumerable:!1,configurable:!1}),B}catch(F){return}}}(function(){var A=Object.freeze;d(Object,"freeze",{value:function(G){return L(G),A(G)}});var B=Object.seal;d(Object,"seal",{value:function(G){return L(G),B(G)}});var F=Object.preventExtensions;d(Object,"preventExtensions",{value:function(G){return L(G),F(G)}})})();function _(A){return A.prototype=null,Object.freeze(A)}var C=!1;function M(){!C&&typeof console!="undefined"&&(C=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var m=0,P=function(){this instanceof P||M();var A=[],B=[],F=m++;function U(N,W){var re,ae=L(N);return ae?F in ae?ae[F]:W:(re=A.indexOf(N),re>=0?B[re]:W)}function G(N){var W=L(N);return W?F in W:A.indexOf(N)>=0}function j(N,W){var re,ae=L(N);return ae?ae[F]=W:(re=A.indexOf(N),re>=0?B[re]=W:(re=A.length,B[re]=W,A[re]=N)),this}function H(N){var W=L(N),re,ae;return W?F in W&&delete W[F]:(re=A.indexOf(N),re<0?!1:(ae=A.length-1,A[re]=void 0,B[re]=B[ae],A[re]=A[ae],A.length=ae,B.length=ae,!0))}return Object.create(P.prototype,{get___:{value:_(U)},has___:{value:_(G)},set___:{value:_(j)},delete___:{value:_(H)}})};P.prototype=Object.create(Object.prototype,{get:{value:function(B,F){return this.get___(B,F)},writable:!0,configurable:!0},has:{value:function(B){return this.has___(B)},writable:!0,configurable:!0},set:{value:function(B,F){return this.set___(B,F)},writable:!0,configurable:!0},delete:{value:function(B){return this.delete___(B)},writable:!0,configurable:!0}}),typeof u=="function"?function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function A(){this instanceof P||M();var B=new u,F=void 0,U=!1;function G(W,re){return F?B.has(W)?B.get(W):F.get___(W,re):B.get(W,re)}function j(W){return B.has(W)||(F?F.has___(W):!1)}var H;s?H=function(W,re){return B.set(W,re),B.has(W)||(F||(F=new P),F.set(W,re)),this}:H=function(W,re){if(U)try{B.set(W,re)}catch(ae){F||(F=new P),F.set___(W,re)}else B.set(W,re);return this};function N(W){var re=!!B.delete(W);return F&&F.delete___(W)||re}return Object.create(P.prototype,{get___:{value:_(G)},has___:{value:_(j)},set___:{value:_(H)},delete___:{value:_(N)},permitHostObjects___:{value:_(function(W){if(W===o)U=!0;else throw new Error("bogus call to permitHostObjects___")})}})}A.prototype=P.prototype,i.exports=A,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),i.exports=P)})()},236:function(i,a,o){var s=o(8284);i.exports=u;function u(){var l={};return function(f){if((typeof f!="object"||f===null)&&typeof f!="function")throw new Error("Weakmap-shim: Key must be object");var c=f.valueOf(l);return c&&c.identity===l?c:s(f,l)}}},8284:function(i){i.exports=a;function a(o,s){var u={identity:s},l=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(f){return f!==s?l.apply(this,arguments):u},writable:!0}),u}},606:function(i,a,o){var s=o(236);i.exports=u;function u(){var l=s();return{get:function(f,c){var h=l(f);return h.hasOwnProperty("value")?h.value:c},set:function(f,c){return l(f).value=c,this},has:function(f){return"value"in l(f)},delete:function(f){return delete l(f).value}}}},3349:function(i){"use strict";function a(){return function(c,h,d,p,x,b){var v=c[0],k=d[0],E=[0],T=k;p|=0;var L=0,_=k;for(L=0;L=0!=M>=0&&x.push(E[0]+.5+.5*(C+M)/(C-M))}p+=_,++E[0]}}}function o(){return a()}var s=o;function u(c){var h={};return function(p,x,b){var v=p.dtype,k=p.order,E=[v,k.join()].join(),T=h[E];return T||(h[E]=T=c([v,k])),T(p.shape.slice(0),p.data,p.stride,p.offset|0,x,b)}}function l(c){return u(s.bind(void 0,c))}function f(c){return l({funcName:c.funcName})}i.exports=f({funcName:"zeroCrossings"})},781:function(i,a,o){"use strict";i.exports=u;var s=o(3349);function u(l,f){var c=[];return f=+f||0,s(l.hi(l.shape[0]-1),c,f),c}},7790:function(){}},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(function(){r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()})(),function(){r.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}}();var n=r(1964);mze.exports=n})()});var AX=Te((vmr,yze)=>{"use strict";yze.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var bze=Te((mmr,xze)=>{"use strict";var gze=AX();xze.exports=cIt;var _ze={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function cIt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),gze[e])r=gze[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var u=t[1],l=u==="rgb",a=u.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(_ze[h]!==void 0)return _ze[h]}return parseFloat(h)}),u===a&&r.push(1),n=l||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}});var Aze=Te((ymr,wze)=>{"use strict";var hIt=bze();wze.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=hIt(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=dIt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function dIt(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,u,l=0;if(r===0)return u=n*255,[u,u,u];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];l<3;)o=t+1/3*-(l-1),o<0?o++:o>1&&o--,u=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l++]=u*255;return s}});var X4=Te((gmr,Tze)=>{Tze.exports=pIt;function pIt(e,t,r){return tr?r:e:et?t:e}});var j6=Te((_mr,Sze)=>{Sze.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var J_=Te((xmr,Mze)=>{"use strict";var vIt=Aze(),X6=X4(),mIt=j6();Mze.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=mIt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=vIt(t),t[0]/=255,t[1]/=255,t[2]/=255),yIt(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=X6(Math.floor(t[0]*255),0,255),i[1]=X6(Math.floor(t[1]*255),0,255),i[2]=X6(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:X6(Math.floor(t[3]*255),0,255)),i)};function yIt(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var Jg=Te((bmr,Eze)=>{"use strict";var gIt=J_();function _It(e){return e?gIt(e):[0,0,0,1]}Eze.exports=_It});var $g=Te((wmr,Rze)=>{"use strict";var zze=ku(),xIt=cd(),Z6=J_(),Y6=_c(),bIt=Ih().defaultLine,kze=mp().isArrayOrTypedArray,TX=Z6(bIt),Ize=1;function Cze(e,t){var r=e;return r[3]*=t,r}function Lze(e){if(zze(e))return TX;var t=Z6(e);return t.length?t:TX}function Pze(e){return zze(e)?e:Ize}function wIt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=kze(n),a=kze(t),o=Y6.extractOpts(e),s=[],u,l,f,c,h;if(o.colorscale!==void 0?u=Y6.makeColorScaleFuncFromTrace(e):u=Lze,i?l=function(p,x){return p[x]===void 0?TX:Z6(u(p[x]))}:l=Lze,a?f=function(p,x){return p[x]===void 0?Ize:Pze(p[x])}:f=Pze,i||a)for(var d=0;d{"use strict";Dze.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var K6=Te((Tmr,Fze)=>{"use strict";Fze.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var Oze=Te((Smr,Bze)=>{"use strict";var TIt=$l();function MX(e,t,r,n){if(!t||!t.visible)return null;for(var i=TIt.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var c=n.c2l(l);n._lowerLogErrorBound||(n._lowerLogErrorBound=c),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,c)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function SIt(e){for(var t=0;t{"use strict";var EIt=qd().gl_line3d,qze=qd().gl_scatter3d,kIt=qd().gl_error3d,CIt=qd().gl_mesh3d,LIt=qd().delaunay_triangulate,Qg=ei(),Hze=Jg(),J6=$g().formatColor,PIt=S3(),EX=SX(),zIt=K6(),IIt=wu(),RIt=rv().appendArrayPointValue,DIt=Oze();function Wze(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var CX=Wze.prototype;CX.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Qg.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function FIt(e,t,r){var n=(r+1)%3,i=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function Uze(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function OIt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var l=FIt(s.position,s.delaunayColor,s.delaunayAxis);l.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(l):(l.gl=t,this.delaunayMesh=CIt(l),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};CX.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function VIt(e,t){var r=new Wze(e,t.uid);return r.update(t),r}jze.exports=VIt});var RX=Te((Emr,Kze)=>{"use strict";var e1=Zc(),GIt=gc(),IX=nc(),LX=jc().axisHoverFormat,HIt=Nu().hovertemplateAttrs,WIt=Nu().texttemplateAttrs,Zze=Gf(),jIt=SX(),XIt=K6(),Ym=Su().extendFlat,ZIt=Sc().overrideAll,Yze=Z1(),YIt=e1.line,N2=e1.marker,KIt=N2.line,JIt=Ym({width:YIt.width,dash:{valType:"enumerated",values:Yze(jIt),dflt:"solid"}},IX("line"));function PX(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var zX=Kze.exports=ZIt({x:e1.x,y:e1.y,z:{valType:"data_array"},text:Ym({},e1.text,{}),texttemplate:WIt({},{}),hovertext:Ym({},e1.hovertext,{}),hovertemplate:HIt(),xhoverformat:LX("x"),yhoverformat:LX("y"),zhoverformat:LX("z"),mode:Ym({},e1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:PX("x"),y:PX("y"),z:PX("z")},connectgaps:e1.connectgaps,line:JIt,marker:Ym({symbol:{valType:"enumerated",values:Yze(XIt),dflt:"circle",arrayOk:!0},size:Ym({},N2.size,{dflt:8}),sizeref:N2.sizeref,sizemin:N2.sizemin,sizemode:N2.sizemode,opacity:Ym({},N2.opacity,{arrayOk:!1}),colorbar:N2.colorbar,line:Ym({width:Ym({},KIt.width,{arrayOk:!1})},IX("marker.line"))},IX("marker")),textposition:Ym({},e1.textposition,{dflt:"top center"}),textfont:GIt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:Zze.opacity,hoverinfo:Ym({},Zze.hoverinfo)},"calc","nested");zX.x.editType=zX.y.editType=zX.z.editType="calc+clearAxisTypes"});var Qze=Te((kmr,$ze)=>{"use strict";var Jze=$l(),$It=ei(),DX=lc(),QIt=$v(),eRt=I0(),tRt=R0(),rRt=RX();$ze.exports=function(t,r,n,i){function a(d,p){return $It.coerce(t,r,rRt,d,p)}var o=iRt(t,r,a,i);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),DX.hasMarkers(r)&&QIt(t,r,n,i,a,{noSelect:!0,noAngle:!0}),DX.hasLines(r)&&(a("connectgaps"),eRt(t,r,n,i,a)),DX.hasText(r)&&(a("texttemplate"),tRt(t,r,i,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,u=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||u);for(var l=["x","y","z"],f=0;f<3;++f){var c="projection."+l[f];a(c+".show")&&(a(c+".opacity"),a(c+".scale"))}var h=Jze.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||u||n,{axis:"z"}),h(t,r,s||u||n,{axis:"y",inherit:"z"}),h(t,r,s||u||n,{axis:"x",inherit:"z"})};function iRt(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),u=Jze.getComponentMethod("calendars","handleTraceDefaults");return u(e,t,["x","y","z"],n),a&&o&&s&&(i=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=i),i}});var tIe=Te((Cmr,eIe)=>{"use strict";var nRt=ky(),aRt=D0();eIe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return nRt(n,r),aRt(t,r),n}});var iIe=Te((Lmr,rIe)=>{rIe.exports=oRt;function oRt(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var n=t,i;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var sRt=iIe();nIe.exports=function(t){return sRt("webgl",t)}});var FX=Te((zmr,sIe)=>{"use strict";var oIe=jl(),lRt=function(){};sIe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=lRt);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=oIe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=oIe.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),t.container.appendChild(n),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var fIe=Te((Imr,uIe)=>{"use strict";var U2=Jg(),uRt=ei(),fRt=["xaxis","yaxis","zaxis"];function lIe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var cRt=lIe.prototype;cRt.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[fRt[n]];if(!i.visible){r.tickEnable[n]=!1,r.labelEnable[n]=!1,r.lineEnable[n]=!1,r.lineTickEnable[n]=!1,r.gridEnable[n]=!1,r.zeroEnable[n]=!1,r.backgroundEnable[n]=!1;continue}r.labels[n]=e._meta?uRt.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=U2(i.title.font.color)),i.title.font.family&&(r.labelFont[n]=i.title.font.family),i.title.font.size&&(r.labelSize[n]=i.title.font.size),i.title.font.weight&&(r.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(r.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(r.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(r.lineEnable[n]=i.showline),"linecolor"in i&&(r.lineColor[n]=U2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=U2(i.gridcolor)),"gridwidth"in i&&(r.gridWidth[n]=i.gridwidth),i.type==="log"?r.zeroEnable[n]=!1:"zeroline"in i&&(r.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(r.zeroLineColor[n]=U2(i.zerolinecolor)),"zerolinewidth"in i&&(r.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?r.lineTickEnable[n]=!0:r.lineTickEnable[n]=!1,"ticklen"in i&&(r.lineTickLength[n]=r._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(r.lineTickColor[n]=U2(i.tickcolor)),"tickwidth"in i&&(r.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(r.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(r.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(r.tickColor[n]=U2(i.tickfont.color)),i.tickfont.family&&(r.tickFont[n]=i.tickfont.family),i.tickfont.size&&(r.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(r.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(r.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(r.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(r.lineTickMirror[n]=!0,r.lineMirror[n]=!0):i.mirror===!0?(r.lineTickMirror[n]=!1,r.lineMirror[n]=!0):(r.lineTickMirror[n]=!1,r.lineMirror[n]=!1):r.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(r.backgroundEnable[n]=!0,r.backgroundColor[n]=U2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function hRt(e,t){var r=new lIe;return r.merge(e,t),r}uIe.exports=hRt});var dIe=Te((Rmr,hIe)=>{"use strict";var dRt=Jg(),pRt=["xaxis","yaxis","zaxis"];function cIe(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var vRt=cIe.prototype;vRt.merge=function(e){for(var t=0;t<3;++t){var r=e[pRt[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=dRt(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function mRt(e){var t=new cIe;return t.merge(e),t}hIe.exports=mRt});var mIe=Te((Dmr,vIe)=>{"use strict";vIe.exports=bRt;var pIe=wu(),yRt=ei(),gRt=["xaxis","yaxis","zaxis"],_Rt=[0,0,0];function xRt(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a/g," "));i[a]=l,o.tickmode=s}}t.ticks=i;for(var a=0;a<3;++a){_Rt[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var f=0;f<2;++f)t.bounds[f][a]=e.glplot.bounds[f][a]}e.contourLevels=xRt(i)}});var AIe=Te((Fmr,wIe)=>{"use strict";var _Ie=qd().gl_plot3d,wRt=_Ie.createCamera,yIe=_Ie.createScene,ARt=aIe(),TRt=PP(),eF=$l(),lv=ei(),Q6=lv.preserveDrawingBuffer(),tF=wu(),Km=Xc(),SRt=Jg(),MRt=FX(),ERt=YU(),kRt=fIe(),CRt=dIe(),LRt=mIe(),PRt=wm().applyAutorangeOptions,Z4,$6,xIe=!1;function bIe(e,t){var r=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=kRt(t,t[this.id]),this.spikeOptions=CRt(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=eF.getComponentMethod("annotations3d","convert"),this.drawAnnotations=eF.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Mp=bIe.prototype;Mp.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:Q6,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!$6&&(Z4=document.createElement("canvas"),$6=ARt({canvas:Z4,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!$6))throw new Error("error creating static canvas/context for image server");t.gl=$6,t.canvas=Z4}return t};var gIe=!0;Mp.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=yIe(t)}catch(n){if(e.staticMode||!gIe||Q6)r=!1;else{lv.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{Q6=t.glOptions.preserveDrawingBuffer=!0,e.glplot=yIe(t)}catch(i){Q6=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return gIe=!1,r};Mp.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=wRt(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};Mp.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return MRt(e);e.traces={},e.make4thDimension();var r=e.graphDiv,n=r.layout,i=function(){var o={};return e.isCameraChanged(n)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=i();o.saveLayout(n),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){xIe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*u.x,y:s*u.y,z:s*u.z})}a(e)}},TRt?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=i();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Mp.render=function(){var e=this,t=e.graphDiv,r,n=e.svgContainer,i=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=i.width*a,u=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+u),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",u),LRt(e),e.glplot.axes.update(e.axesOptions);for(var l=Object.keys(e.traces),f=null,c=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(v.valueLabel=tF.hoverLabelText(e._mockAxis,e._mockAxis.d2l(c.traceCoordinate[3]),r.valuehoverformat),_.push("value: "+v.valueLabel),c.textLabel&&_.push(c.textLabel),L=_.join("
")):L=c.textLabel;var C={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:x._input,fullData:x,curveNumber:x.index,pointNumber:b};Km.appendArrayPointValue(C,x,b),r._module.eventData&&(C=x._module.eventData(C,c,x,{},b));var M={points:[C]};if(e.fullSceneLayout.hovermode){var m=[];Km.loneHover({trace:x,x:(.5+.5*p[0]/p[3])*s,y:(.5-.5*p[1]/p[3])*u,xLabel:v.xLabel,yLabel:v.yLabel,zLabel:v.zLabel,text:L,name:f.name,color:Km.castHoverOption(x,b,"bgcolor")||f.color,borderColor:Km.castHoverOption(x,b,"bordercolor"),fontFamily:Km.castHoverOption(x,b,"font.family"),fontSize:Km.castHoverOption(x,b,"font.size"),fontColor:Km.castHoverOption(x,b,"font.color"),nameLength:Km.castHoverOption(x,b,"namelength"),textAlign:Km.castHoverOption(x,b,"align"),hovertemplate:lv.castOption(x,b,"hovertemplate"),hovertemplateLabels:lv.extendFlat({},C,v),eventData:[C]},{container:n,gd:t,inOut_bbox:m}),C.bbox=m[0]}c.distance<5&&(c.buttons||xIe)?t.emit("plotly_click",M):t.emit("plotly_hover",M),this.oldEventData=M}else Km.loneUnhover(n),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Mp.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){lv.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var Y4=["xaxis","yaxis","zaxis"];function zRt(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=Y4[i],o=a.charAt(0),s=n[a],u=t[o],l=t[o+"calendar"],f=t["_"+o+"length"];if(!lv.isArrayOrTypedArray(u))r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],f-1);else for(var c,h=0;h<(f||u.length);h++)if(lv.isArrayOrTypedArray(u[h]))for(var d=0;dx[1][o])x[0][o]=-1,x[1][o]=1;else{var A=x[1][o]-x[0][o];x[0][o]-=A/32,x[1][o]+=A/32}if(k=[x[0][o],x[1][o]],k=PRt(k,u),x[0][o]=k[0],x[1][o]=k[1],u.isReversed()){var B=x[0][o];x[0][o]=x[1][o],x[1][o]=B}}else k=u.range,x[0][o]=u.r2l(k[0]),x[1][o]=u.r2l(k[1]);x[0][o]===x[1][o]&&(x[0][o]-=1,x[1][o]+=1),b[o]=x[1][o]-x[0][o],u.range=[x[0][o],x[1][o]],u.limitRange(),n.glplot.setBounds(o,{min:u.range[0]*d[o],max:u.range[1]*d[o]})}var F,U=f.aspectmode;if(U==="cube")F=[1,1,1];else if(U==="manual"){var G=f.aspectratio;F=[G.x,G.y,G.z]}else if(U==="auto"||U==="data"){var j=[1,1,1];for(o=0;o<3;++o){u=f[Y4[o]],l=u.type;var H=v[l];j[o]=Math.pow(H.acc,1/H.count)/d[o]}U==="data"||Math.max.apply(null,j)/Math.min.apply(null,j)<=4?F=j:F=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=c.aspectratio.x=F[0],f.aspectratio.y=c.aspectratio.y=F[1],f.aspectratio.z=c.aspectratio.z=F[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var N=f.domain||null,W=t._size||null;if(N&&W){var re=n.container.style;re.position="absolute",re.left=W.l+N.x[0]*W.w+"px",re.top=W.t+(1-N.y[1])*W.h+"px",re.width=W.w*(N.x[1]-N.x[0])+"px",re.height=W.h*(N.y[1]-N.y[0])+"px"}n.glplot.redraw()}};Mp.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function RRt(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function DRt(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Mp.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),DRt(e.camera)};Mp.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,RRt(r)),t.glplot.setAspectratio(e.aspectratio);var n=r.projection.type==="orthographic",i=t.camera._ortho;n!==i&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};Mp.isCameraChanged=function(e){var t=this,r=t.getCamera(),n=lv.nestedProperty(e,t.id+".camera"),i=n.get();function a(l,f,c,h){var d=["up","center","eye"],p=["x","y","z"];return f[d[c]]&&l[d[c]][p[h]]===f[d[c]][p[h]]}var o=!1;if(i===void 0)o=!0;else{for(var s=0;s<3;s++)for(var u=0;u<3;u++)if(!a(r,i,s,u)){o=!0;break}(!i.projection||r.projection&&r.projection.type!==i.projection.type)&&(o=!0)}return o};Mp.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),n=lv.nestedProperty(e,t.id+".aspectratio"),i=n.get();return i===void 0||i.x!==r.x||i.y!==r.y||i.z!==r.z};Mp.saveLayout=function(e){var t=this,r=t.fullLayout,n,i,a,o,s,u,l=t.isCameraChanged(e),f=t.isAspectChanged(e),c=l||f;if(c){var h={};if(l&&(n=t.getCamera(),i=lv.nestedProperty(e,t.id+".camera"),a=i.get(),h[t.id+".camera"]=a),f&&(o=t.glplot.getAspectratio(),s=lv.nestedProperty(e,t.id+".aspectratio"),u=s.get(),h[t.id+".aspectratio"]=u),eF.call("_storeDirectGUIEdit",e,r._preGUI,h),l){i.set(n);var d=lv.nestedProperty(r,t.id+".camera");d.set(n)}if(f){s.set(o);var p=lv.nestedProperty(r,t.id+".aspectratio");p.set(o),t.glplot.redraw()}}return c};Mp.updateFx=function(e,t){var r=this,n=r.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,u=o.up.y,l=o.up.z;if(l/Math.sqrt(s*s+u*u+l*l)<.999){var f=r.id+".camera.up",c={x:0,y:0,z:1},h={};h[f]=c;var d=i.layout;eF.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=c,lv.nestedProperty(d,f).set(c)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function FRt(e,t,r){for(var n=0,i=r-1;n0)for(var s=255/o,u=0;u<3;++u)e[a+u]=Math.min(s*e[a+u],255)}}Mp.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(Z4),t.glplot.redraw();var r=t.glplot.gl,n=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(n*i*4);r.readPixels(0,0,n,i,r.RGBA,r.UNSIGNED_BYTE,a),FRt(a,n,i),BRt(a,n,i);var o=document.createElement("canvas");o.width=n,o.height=i;var s=o.getContext("2d",{willReadFrequently:!0}),u=s.createImageData(n,i);u.data.set(a),s.putImageData(u,0,0);var l;switch(e){case"jpeg":l=o.toDataURL("image/jpeg");break;case"webp":l=o.toDataURL("image/webp");break;default:l=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(Z4),l};Mp.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[Y4[t]];tF.setConvert(r,e.fullLayout),r.setScale=lv.noop}};Mp.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},tF.setConvert(e._mockAxis,r)};wIe.exports=bIe});var SIe=Te((Bmr,TIe)=>{"use strict";TIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var OX=Te((Omr,MIe)=>{"use strict";var ORt=jl(),cf=Dd(),BX=Su().extendFlat,qRt=Sc().overrideAll;MIe.exports=qRt({visible:cf.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:ORt.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:cf.color,categoryorder:cf.categoryorder,categoryarray:cf.categoryarray,title:{text:cf.title.text,font:cf.title.font},type:BX({},cf.type,{values:["-","linear","log","date","category"]}),autotypenumbers:cf.autotypenumbers,autorange:cf.autorange,autorangeoptions:{minallowed:cf.autorangeoptions.minallowed,maxallowed:cf.autorangeoptions.maxallowed,clipmin:cf.autorangeoptions.clipmin,clipmax:cf.autorangeoptions.clipmax,include:cf.autorangeoptions.include,editType:"plot"},rangemode:cf.rangemode,minallowed:cf.minallowed,maxallowed:cf.maxallowed,range:BX({},cf.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:cf.minor.tickmode,nticks:cf.nticks,tick0:cf.tick0,dtick:cf.dtick,tickvals:cf.tickvals,ticktext:cf.ticktext,ticks:cf.ticks,mirror:cf.mirror,ticklen:cf.ticklen,tickwidth:cf.tickwidth,tickcolor:cf.tickcolor,showticklabels:cf.showticklabels,labelalias:cf.labelalias,tickfont:cf.tickfont,tickangle:cf.tickangle,tickprefix:cf.tickprefix,showtickprefix:cf.showtickprefix,ticksuffix:cf.ticksuffix,showticksuffix:cf.showticksuffix,showexponent:cf.showexponent,exponentformat:cf.exponentformat,minexponent:cf.minexponent,separatethousands:cf.separatethousands,tickformat:cf.tickformat,tickformatstops:cf.tickformatstops,hoverformat:cf.hoverformat,showline:cf.showline,linecolor:cf.linecolor,linewidth:cf.linewidth,showgrid:cf.showgrid,gridcolor:BX({},cf.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:cf.gridwidth,zeroline:cf.zeroline,zerolinecolor:cf.zerolinecolor,zerolinewidth:cf.zerolinewidth},"plot","from-root")});var VX=Te((qmr,EIe)=>{"use strict";var qX=OX(),NRt=zc().attributes,NX=Su().extendFlat,URt=ei().counterRegex;function UX(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}EIe.exports={_arrayAttrRegexps:[URt("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:NX(UX(0,0,1),{}),center:NX(UX(0,0,0),{}),eye:NX(UX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:NRt({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:qX,yaxis:qX,zaxis:qX,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var PIe=Te((Nmr,LIe)=>{"use strict";var VRt=cd().mix,kIe=ei(),GRt=Pf(),HRt=OX(),WRt=IU(),jRt=tE(),CIe=["xaxis","yaxis","zaxis"],XRt=100*136/187;LIe.exports=function(t,r,n){var i,a;function o(l,f){return kIe.coerce(i,a,HRt,l,f)}for(var s=0;s{"use strict";var ZRt=ei(),YRt=jl(),KRt=$l(),JRt=k_(),$Rt=PIe(),zIe=VX(),QRt=Rd().getSubplotData,IIe="gl3d";RIe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=ZRt.validate(t[o],zIe[o]);if(s)return t[o]}}JRt(t,r,n,{type:IIe,attributes:zIe,handleDefaults:eDt,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function eDt(e,t,r,n){for(var i=r("bgcolor"),a=YRt.combine(i,n.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",n.getDfltFromLayout("hovermode"))}});var $_=Te(uv=>{"use strict";var tDt=Sc().overrideAll,rDt=q1(),iDt=AIe(),nDt=Rd().getSubplotData,aDt=ei(),oDt=jv(),qT="gl3d",GX="scene";uv.name=qT;uv.attr=GX;uv.idRoot=GX;uv.idRegex=uv.attrRegex=aDt.counterRegex("scene");uv.attributes=SIe();uv.layoutAttributes=VX();uv.baseLayoutAttrOverrides=tDt({hoverlabel:rDt.hoverlabel},"plot","nested");uv.supplyLayoutDefaults=DIe();uv.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[qT],a=0;a{"use strict";FIe.exports={plot:Xze(),attributes:RX(),markerSymbols:K6(),supplyDefaults:Qze(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:tIe(),moduleType:"trace",name:"scatter3d",basePlotModule:$_(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var qIe=Te((Hmr,OIe)=>{"use strict";OIe.exports=BIe()});var K4=Te((Wmr,VIe)=>{"use strict";var NIe=jl(),sDt=nc(),HX=jc().axisHoverFormat,lDt=Nu().hovertemplateAttrs,UIe=Gf(),WX=Su().extendFlat,uDt=Sc().overrideAll;function jX(e){return{valType:"boolean",dflt:!1}}function XX(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:jX("x"),y:jX("y"),z:jX("z")},color:{valType:"color",dflt:NIe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:NIe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var ZX=VIe.exports=uDt(WX({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:lDt(),xhoverformat:HX("x"),yhoverformat:HX("y"),zhoverformat:HX("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},sDt("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:XX("x"),y:XX("y"),z:XX("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:WX({},UIe.hoverinfo),showlegend:WX({},UIe.showlegend,{dflt:!1})}),"calc","nested");ZX.x.editType=ZX.y.editType=ZX.z.editType="calc+clearAxisTypes"});var KX=Te((jmr,WIe)=>{"use strict";var fDt=$l(),GIe=ei(),cDt=ed(),hDt=K4(),YX=.1;function dDt(e,t){for(var r=[],n=32,i=0;i{"use strict";var jIe=gp();XIe.exports=function(t,r){r.surfacecolor?jIe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):jIe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var eRe=Te((Zmr,QIe)=>{"use strict";var mDt=qd().gl_surface3d,NT=qd().ndarray,yDt=qd().ndarray_linear_interpolate.d2,gDt=iR(),_Dt=nR(),J4=ei().isArrayOrTypedArray,xDt=$g().parseColorScale,YIe=Jg(),bDt=_c().extractOpts;function JIe(e,t,r){this.scene=e,this.uid=r,this.surface=t,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var Jm=JIe.prototype;Jm.getXat=function(e,t,r,n){var i=J4(this.data.x)?J4(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?i:n.d2l(i,0,r)};Jm.getYat=function(e,t,r,n){var i=J4(this.data.y)?J4(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?i:n.d2l(i,0,r)};Jm.getZat=function(e,t,r,n){var i=this.data.z[t][e];return i===null&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[t][e]),r===void 0?i:n.d2l(i,0,r)};Jm.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[n,i],e.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],e.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return J4(s)&&s[i]&&s[i][n]!==void 0?e.textLabel=s[i][n]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function wDt(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var UT=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function ADt(e,t){if(e0){r=UT[n];break}return r}function SDt(e,t){if(!(e<1||t<1)){for(var r=JX(e),n=JX(t),i=1,a=0;arF;)n--,n/=TDt(n),n++,n1?i:1};function EDt(e,t,r){var n=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/n,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/n,e}function kDt(e,t,r){return CDt(e,t,EDt,r),e}function CDt(e,t,r,n){for(var i=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(t[n]=!0,i=this.contourStart[n];ih&&(this.minValues[l]=h),this.maxValues[l]{"use strict";tRe.exports={attributes:K4(),supplyDefaults:KX().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:ZIe(),plot:eRe(),moduleType:"trace",name:"surface",basePlotModule:$_(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var nRe=Te((Kmr,iRe)=>{"use strict";iRe.exports=rRe()});var VT=Te((Jmr,oRe)=>{"use strict";var zDt=nc(),$X=jc().axisHoverFormat,IDt=Nu().hovertemplateAttrs,Q_=K4(),aRe=Gf(),ex=Su().extendFlat;oRe.exports=ex({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:IDt({editType:"calc"}),xhoverformat:$X("x"),yhoverformat:$X("y"),zhoverformat:$X("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},zDt("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:Q_.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:ex({},Q_.contours.x.show,{}),color:Q_.contours.x.color,width:Q_.contours.x.width,editType:"calc"},lightposition:{x:ex({},Q_.lightposition.x,{dflt:1e5}),y:ex({},Q_.lightposition.y,{dflt:1e5}),z:ex({},Q_.lightposition.z,{dflt:0}),editType:"calc"},lighting:ex({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},Q_.lighting),hoverinfo:ex({},aRe.hoverinfo,{editType:"calc"}),showlegend:ex({},aRe.showlegend,{dflt:!1})})});var nF=Te(($mr,lRe)=>{"use strict";var RDt=nc(),iF=jc().axisHoverFormat,DDt=Nu().hovertemplateAttrs,$4=VT(),sRe=Gf(),QX=Su().extendFlat,FDt=Sc().overrideAll;function eZ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function tZ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var GT=lRe.exports=FDt(QX({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:eZ("x"),y:eZ("y"),z:eZ("z")},caps:{x:tZ("x"),y:tZ("y"),z:tZ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:DDt(),xhoverformat:iF("x"),yhoverformat:iF("y"),zhoverformat:iF("z"),valuehoverformat:iF("value",1),showlegend:QX({},sRe.showlegend,{dflt:!1})},RDt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:$4.opacity,lightposition:$4.lightposition,lighting:$4.lighting,flatshading:$4.flatshading,contour:$4.contour,hoverinfo:QX({},sRe.hoverinfo)}),"calc","nested");GT.flatshading.dflt=!0;GT.lighting.facenormalsepsilon.dflt=0;GT.x.editType=GT.y.editType=GT.z.editType=GT.value.editType="calc+clearAxisTypes"});var rZ=Te((Qmr,fRe)=>{"use strict";var BDt=ei(),ODt=$l(),qDt=nF(),NDt=ed();function UDt(e,t,r,n){function i(a,o){return BDt.coerce(e,t,qDt,a,o)}uRe(e,t,r,n,i)}function uRe(e,t,r,n,i){var a=i("isomin"),o=i("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=i("x"),u=i("y"),l=i("z"),f=i("value");if(!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length){t.visible=!1;return}var c=ODt.getComponentMethod("calendars","handleTraceDefaults");c(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(x){i(x+"hoverformat");var b="caps."+x,v=i(b+".show");v&&i(b+".fill");var k="slices."+x,E=i(k+".show");E&&(i(k+".fill"),i(k+".locations"))});var h=i("spaceframe.show");h&&i("spaceframe.fill");var d=i("surface.show");d&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var p=i("contour.show");p&&(i("contour.color"),i("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(x){i(x)}),NDt(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}fRe.exports={supplyDefaults:UDt,supplyIsoDefaults:uRe}});var aF=Te((eyr,hRe)=>{"use strict";var nZ=ei(),VDt=gp();function GDt(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=Hy(t.u,t._len),t._v=Hy(t.v,t._len),t._w=Hy(t.w,t._len),t._x=Hy(t.x,t._len),t._y=Hy(t.y,t._len),t._z=Hy(t.z,t._len);var r=cRe(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var n=0,i,a,o;t.starts&&(i=Hy(t.starts.x||[]),a=Hy(t.starts.y||[]),o=Hy(t.starts.z||[]),n=Math.min(i.length,a.length,o.length)),t._startsX=i||[],t._startsY=a||[],t._startsZ=o||[];var s=0,u=1/0,l;for(l=0;l1&&(E=t[i-1],L=r[i-1],C=n[i-1]),a=0;aE?"-":"+")+"x"),p=p.replace("y",(T>L?"-":"+")+"y"),p=p.replace("z",(_>C?"-":"+")+"z");var A=function(){i=0,M=[],m=[],P=[]};(!i||i{"use strict";var HDt=gp(),WDt=aF().processGrid,oF=aF().filter;dRe.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=oF(r.x,r._len),r._y=oF(r.y,r._len),r._z=oF(r.z,r._len),r._value=oF(r.value,r._len);var n=WDt(r);r._gridFill=n.fill,r._Xs=n.Xs,r._Ys=n.Ys,r._Zs=n.Zs,r._len=n.len;for(var i=1/0,a=-1/0,o=0;o{"use strict";pRe.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var jDt=qd().gl_mesh3d,XDt=$g().parseColorScale,ZDt=ei().isArrayOrTypedArray,YDt=Jg(),KDt=_c().extractOpts,vRe=HT(),Q4=function(e,t){for(var r=t.length-1;r>0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n-1}function ae(wt,vt){return wt===null?vt:wt}function be(wt,vt,st){A();var Ue=[vt],rt=[st];if(H>=1)Ue=[vt],rt=[st];else if(H>0){var $e=W(vt,st);Ue=$e.xyzv,rt=$e.abc}for(var zt=0;zt-1?st[hr]:P(yr,br,Ut);xe>-1?Yt[hr]=xe:Yt[hr]=F(yr,br,Ut,ae(wt,Ie))}U(Yt[0],Yt[1],Yt[2])}}function Pe(wt,vt,st){var Ue=function(rt,$e,zt){be(wt,[vt[rt],vt[$e],vt[zt]],[st[rt],st[$e],st[zt]])};Ue(0,1,2),Ue(2,3,0)}function Ce(wt,vt,st){var Ue=function(rt,$e,zt){be(wt,[vt[rt],vt[$e],vt[zt]],[st[rt],st[$e],st[zt]])};Ue(0,1,2),Ue(3,0,1),Ue(2,3,0),Ue(1,2,3)}function de(wt,vt,st,Ue){var rt=wt[3];rtUe&&(rt=Ue);for(var $e=(wt[3]-rt)/(wt[3]-vt[3]+1e-9),zt=[],Yt=0;Yt<4;Yt++)zt[Yt]=(1-$e)*wt[Yt]+$e*vt[Yt];return zt}function te(wt,vt,st){return wt>=vt&&wt<=st}function ke(wt){var vt=.001*(L-T);return wt>=T-vt&&wt<=L+vt}function Ee(wt){for(var vt=[],st=0;st<4;st++){var Ue=wt[st];vt.push([e._x[Ue],e._y[Ue],e._z[Ue],e._value[Ue]])}return vt}var Me=3;function Ne(wt,vt,st,Ue,rt,$e){$e||($e=1),st=[-1,-1,-1];var zt=!1,Yt=[te(vt[0][3],Ue,rt),te(vt[1][3],Ue,rt),te(vt[2][3],Ue,rt)];if(!Yt[0]&&!Yt[1]&&!Yt[2])return!1;var hr=function(br,Ut,Ie){return ke(Ut[0][3])&&ke(Ut[1][3])&&ke(Ut[2][3])?(be(br,Ut,Ie),!0):$eYt?[k,$e]:[$e,E];Tt(vt,hr[0],hr[1])}}var yr=[[Math.min(T,E),Math.max(T,E)],[Math.min(k,L),Math.max(k,L)]];["x","y","z"].forEach(function(br){for(var Ut=[],Ie=0;Ie0&&(ge.push(dt.id),br==="x"?fe.push([dt.distRatio,0,0]):br==="y"?fe.push([0,dt.distRatio,0]):fe.push([0,0,dt.distRatio]))}else br==="x"?ct=Et(1,d-1):br==="y"?ct=Et(1,p-1):ct=Et(1,x-1);ge.length>0&&(br==="x"?Ut[xe]=St(wt,ge,Oe,Re,fe,Ut[xe]):br==="y"?Ut[xe]=Dt(wt,ge,Oe,Re,fe,Ut[xe]):Ut[xe]=Zt(wt,ge,Oe,Re,fe,Ut[xe]),xe++),ct.length>0&&(br==="x"?Ut[xe]=gt(wt,ct,Oe,Re,Ut[xe]):br==="y"?Ut[xe]=Nt(wt,ct,Oe,Re,Ut[xe]):Ut[xe]=it(wt,ct,Oe,Re,Ut[xe]),xe++)}var It=e.caps[br];It.show&&It.fill&&(N(It.fill),br==="x"?Ut[xe]=gt(wt,[0,d-1],Oe,Re,Ut[xe]):br==="y"?Ut[xe]=Nt(wt,[0,p-1],Oe,Re,Ut[xe]):Ut[xe]=it(wt,[0,x-1],Oe,Re,Ut[xe]),xe++)}}),s===0&&B(),e._meshX=_,e._meshY=C,e._meshZ=M,e._meshIntensity=m,e._Xs=f,e._Ys=c,e._Zs=h}return at(),e}function $Dt(e,t){var r=e.glplot.gl,n=jDt({gl:r}),i=new mRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}gRe.exports={findNearestOnAxis:Q4,generateIsoMeshes:yRe,createIsosurfaceTrace:$Dt}});var xRe=Te((nyr,_Re)=>{"use strict";_Re.exports={attributes:nF(),supplyDefaults:rZ().supplyDefaults,calc:aZ(),colorbar:{min:"cmin",max:"cmax"},plot:sF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:$_(),categories:["gl3d","showLegend"],meta:{}}});var wRe=Te((ayr,bRe)=>{"use strict";bRe.exports=xRe()});var lZ=Te((oyr,TRe)=>{"use strict";var QDt=nc(),Nh=nF(),e6t=K4(),ARe=Gf(),sZ=Su().extendFlat,t6t=Sc().overrideAll,lF=TRe.exports=t6t(sZ({x:Nh.x,y:Nh.y,z:Nh.z,value:Nh.value,isomin:Nh.isomin,isomax:Nh.isomax,surface:Nh.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Nh.slices,caps:Nh.caps,text:Nh.text,hovertext:Nh.hovertext,xhoverformat:Nh.xhoverformat,yhoverformat:Nh.yhoverformat,zhoverformat:Nh.zhoverformat,valuehoverformat:Nh.valuehoverformat,hovertemplate:Nh.hovertemplate},QDt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Nh.colorbar,opacity:Nh.opacity,opacityscale:e6t.opacityscale,lightposition:Nh.lightposition,lighting:Nh.lighting,flatshading:Nh.flatshading,contour:Nh.contour,hoverinfo:sZ({},ARe.hoverinfo),showlegend:sZ({},ARe.showlegend,{dflt:!1})}),"calc","nested");lF.x.editType=lF.y.editType=lF.z.editType=lF.value.editType="calc+clearAxisTypes"});var MRe=Te((syr,SRe)=>{"use strict";var r6t=ei(),i6t=lZ(),n6t=rZ().supplyIsoDefaults,a6t=KX().opacityscaleDefaults;SRe.exports=function(t,r,n,i){function a(o,s){return r6t.coerce(t,r,i6t,o,s)}n6t(t,r,n,i,a),a6t(t,r,i,a)}});var LRe=Te((lyr,CRe)=>{"use strict";var o6t=qd().gl_mesh3d,s6t=$g().parseColorScale,l6t=ei().isArrayOrTypedArray,u6t=Jg(),f6t=_c().extractOpts,ERe=HT(),uZ=sF().findNearestOnAxis,c6t=sF().generateIsoMeshes;function kRe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var fZ=kRe.prototype;fZ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=uZ(r,this.data._Xs).id,u=uZ(n,this.data._Ys).id,l=uZ(i,this.data._Zs).id,f=e.index=l+o*u+o*a*s;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var c=this.data.hovertext||this.data.text;return l6t(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};fZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=c6t(e);function n(u,l,f,c){return l.map(function(h){return u.d2l(h,0,c)*f})}var i=ERe(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=ERe(e._meshI,e._meshJ,e._meshK),o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:u6t(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=f6t(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=s6t(e),this.mesh.update(o)};fZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function h6t(e,t){var r=e.glplot.gl,n=o6t({gl:r}),i=new kRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}CRe.exports=h6t});var zRe=Te((uyr,PRe)=>{"use strict";PRe.exports={attributes:lZ(),supplyDefaults:MRe(),calc:aZ(),colorbar:{min:"cmin",max:"cmax"},plot:LRe(),moduleType:"trace",name:"volume",basePlotModule:$_(),categories:["gl3d","showLegend"],meta:{}}});var RRe=Te((fyr,IRe)=>{"use strict";IRe.exports=zRe()});var BRe=Te((cyr,FRe)=>{"use strict";var d6t=$l(),DRe=ei(),p6t=ed(),v6t=VT();FRe.exports=function(t,r,n,i){function a(f,c){return DRe.coerce(t,r,v6t,f,c)}function o(f){var c=f.map(function(h){var d=a(h);return d&&DRe.isArrayOrTypedArray(d)?d:null});return c.every(function(h){return h&&h.length===c[0].length})&&c}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var u=d6t.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y","z"],i),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(f){a(f)});var l=a("contour.show");l&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),p6t(t,r,i,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",n)),a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var qRe=Te((hyr,ORe)=>{"use strict";var m6t=gp();ORe.exports=function(t,r){r.intensity&&m6t(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var HRe=Te((dyr,GRe)=>{"use strict";var y6t=qd().gl_mesh3d,g6t=qd().delaunay_triangulate,_6t=qd().alpha_shape,x6t=qd().convex_hull,b6t=$g().parseColorScale,w6t=ei().isArrayOrTypedArray,pZ=Jg(),A6t=_c().extractOpts,NRe=HT();function VRe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var vZ=VRe.prototype;vZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return w6t(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function URe(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}vZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=NRe(cZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),cZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),cZ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!dZ(e.i,n)||!dZ(e.j,n)||!dZ(e.k,n))return;a=NRe(hZ(e.i),hZ(e.j),hZ(e.k))}else e.alphahull===0?a=x6t(i):e.alphahull>0?a=_6t(e.alphahull,i):a=T6t(e.delaunayaxis,i);var o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:pZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=A6t(e);this.color="#fff";var u=e.intensitymode;o[u+"Intensity"]=e.intensity,o[u+"IntensityBounds"]=[s.min,s.max],o.colormap=b6t(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=URe(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=URe(e.facecolor)):(this.color=e.color,o.meshColor=pZ(e.color));this.mesh.update(o)};vZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function S6t(e,t){var r=e.glplot.gl,n=y6t({gl:r}),i=new VRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}GRe.exports=S6t});var jRe=Te((pyr,WRe)=>{"use strict";WRe.exports={attributes:VT(),supplyDefaults:BRe(),calc:qRe(),colorbar:{min:"cmin",max:"cmax"},plot:HRe(),moduleType:"trace",name:"mesh3d",basePlotModule:$_(),categories:["gl3d","showLegend"],meta:{}}});var ZRe=Te((vyr,XRe)=>{"use strict";XRe.exports=jRe()});var yZ=Te((myr,KRe)=>{"use strict";var M6t=nc(),WT=jc().axisHoverFormat,E6t=Nu().hovertemplateAttrs,k6t=VT(),YRe=Gf(),mZ=Su().extendFlat,uF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:E6t({editType:"calc"},{keys:["norm"]}),uhoverformat:WT("u",1),vhoverformat:WT("v",1),whoverformat:WT("w",1),xhoverformat:WT("x"),yhoverformat:WT("y"),zhoverformat:WT("z"),showlegend:mZ({},YRe.showlegend,{dflt:!1})};mZ(uF,M6t("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var C6t=["opacity","lightposition","lighting"];C6t.forEach(function(e){uF[e]=k6t[e]});uF.hoverinfo=mZ({},YRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});KRe.exports=uF});var $Re=Te((yyr,JRe)=>{"use strict";var L6t=ei(),P6t=ed(),z6t=yZ();JRe.exports=function(t,r,n,i){function a(d,p){return L6t.coerce(t,r,z6t,d,p)}var o=a("u"),s=a("v"),u=a("w"),l=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length||!c||!c.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),P6t(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var eDe=Te((gyr,QRe)=>{"use strict";var I6t=gp();QRe.exports=function(t,r){for(var n=r.u,i=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,n.length,i.length,a.length),s=-1/0,u=1/0,l=0;l{"use strict";var R6t=qd().gl_cone3d,D6t=qd().gl_cone3d.createConeMesh,F6t=ei().simpleMap,B6t=$g().parseColorScale,O6t=_c().extractOpts,q6t=ei().isArrayOrTypedArray,tDe=HT();function rDe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var gZ=rDe.prototype;gZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var u=this.data.hovertext||this.data.text;return q6t(u)&&u[t]!==void 0?e.textLabel=u[t]:u&&(e.textLabel=u),!0}};var N6t={xaxis:0,yaxis:1,zaxis:2},U6t={tip:1,tail:0,cm:.25,center:.5},V6t={tip:1,tail:1,cm:.75,center:.5};function iDe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(f,c){var h=r[c],d=n[N6t[c]];return F6t(f,function(p){return h.d2l(p)*d})}i.vectors=tDe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=tDe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=O6t(t);i.colormap=B6t(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=U6t[t.anchor];var s=t.sizemode;s==="scaled"?i.coneSize=t.sizeref||.5:s==="absolute"?i.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(i.coneSize=t.sizeref),i.coneSizemode=s;var u=R6t(i),l=t.lightposition;return u.lightPosition=[l.x,l.y,l.z],u.ambient=t.lighting.ambient,u.diffuse=t.lighting.diffuse,u.specular=t.lighting.specular,u.roughness=t.lighting.roughness,u.fresnel=t.lighting.fresnel,u.opacity=t.opacity,t._pad=V6t[t.anchor]*u.vectorScale*u.coneScale*t._normMax,u}gZ.update=function(e){this.data=e;var t=iDe(this.scene,e);this.mesh.update(t)};gZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function G6t(e,t){var r=e.glplot.gl,n=iDe(e,t),i=D6t(r,n),a=new rDe(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}nDe.exports=G6t});var sDe=Te((xyr,oDe)=>{"use strict";oDe.exports={moduleType:"trace",name:"cone",basePlotModule:$_(),categories:["gl3d","showLegend"],attributes:yZ(),supplyDefaults:$Re(),colorbar:{min:"cmin",max:"cmax"},calc:eDe(),plot:aDe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var uDe=Te((byr,lDe)=>{"use strict";lDe.exports=sDe()});var xZ=Te((wyr,cDe)=>{"use strict";var H6t=nc(),jT=jc().axisHoverFormat,W6t=Nu().hovertemplateAttrs,j6t=VT(),fDe=Gf(),_Z=Su().extendFlat,fF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:W6t({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:jT("u",1),vhoverformat:jT("v",1),whoverformat:jT("w",1),xhoverformat:jT("x"),yhoverformat:jT("y"),zhoverformat:jT("z"),showlegend:_Z({},fDe.showlegend,{dflt:!1})};_Z(fF,H6t("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var X6t=["opacity","lightposition","lighting"];X6t.forEach(function(e){fF[e]=j6t[e]});fF.hoverinfo=_Z({},fDe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});cDe.exports=fF});var dDe=Te((Ayr,hDe)=>{"use strict";var Z6t=ei(),Y6t=ed(),K6t=xZ();hDe.exports=function(t,r,n,i){function a(h,d){return Z6t.coerce(t,r,K6t,h,d)}var o=a("u"),s=a("v"),u=a("w"),l=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length||!c||!c.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),Y6t(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var bDe=Te((Tyr,xDe)=>{"use strict";var mDe=qd().gl_streamtube3d,J6t=mDe.createTubeMesh,$6t=ei(),Q6t=$g().parseColorScale,eFt=_c().extractOpts,pDe=HT(),yDe={xaxis:0,yaxis:1,zaxis:2};function gDe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var wZ=gDe.prototype;wZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var u=t[s],l=r[yDe[s]];return u.l2c(o)/l}if(e.object===this.mesh){var i=e.data.position,a=e.data.velocity;return e.traceCoordinate=[n(i[0],"xaxis"),n(i[1],"yaxis"),n(i[2],"zaxis"),n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function vDe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function bZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function _De(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(B,F){var U=r[F],G=n[yDe[F]];return $6t.simpleMap(B,function(j){return U.d2l(j)*G})}if(a.vectors=pDe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),i),!i)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),u=o(t._Ys,"yaxis"),l=o(t._Zs,"zaxis");a.meshgrid=[s,u,l],a.gridFill=t._gridFill;var f=t._slen;if(f)a.startingPositions=pDe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var c=u[0],h=vDe(s),d=vDe(l),p=new Array(h.length*d.length),x=0,b=0;b{"use strict";wDe.exports={moduleType:"trace",name:"streamtube",basePlotModule:$_(),categories:["gl3d","showLegend"],attributes:xZ(),supplyDefaults:dDe(),colorbar:{min:"cmin",max:"cmax"},calc:aF().calc,plot:bDe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var SDe=Te((Myr,TDe)=>{"use strict";TDe.exports=ADe()});var G2=Te((kyr,kDe)=>{"use strict";var rFt=Nu().hovertemplateAttrs,iFt=Nu().texttemplateAttrs,nFt=Em(),Wy=Zc(),aFt=Gf(),MDe=nc(),oFt=Id().dash,V2=Su().extendFlat,sFt=Sc().overrideAll,em=Wy.marker,EDe=Wy.line,lFt=em.line,Eyr=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");kDe.exports=sFt({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:V2({},Wy.mode,{dflt:"markers"}),text:V2({},Wy.text,{}),texttemplate:iFt({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:V2({},Wy.hovertext,{}),textfont:Wy.textfont,textposition:Wy.textposition,line:{color:EDe.color,width:EDe.width,dash:oFt},connectgaps:Wy.connectgaps,marker:V2({symbol:em.symbol,opacity:em.opacity,angle:em.angle,angleref:V2({},em.angleref,{values:["previous","up","north"]}),standoff:em.standoff,size:em.size,sizeref:em.sizeref,sizemin:em.sizemin,sizemode:em.sizemode,colorbar:em.colorbar,line:V2({width:lFt.width},MDe("marker.line")),gradient:em.gradient},MDe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:nFt(),selected:Wy.selected,unselected:Wy.unselected,hoverinfo:V2({},aFt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:rFt()},"calc","nested")});var LDe=Te((Cyr,CDe)=>{"use strict";var cF=ei(),AZ=lc(),uFt=$v(),fFt=I0(),cFt=R0(),hFt=zm(),dFt=G2(),pFt=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");CDe.exports=function(t,r,n,i){function a(d,p){return cF.coerce(t,r,dFt,d,p)}var o=a("locations"),s;if(o&&o.length){var u=a("geojson"),l;(typeof u=="string"&&u!==""||cF.isPlainObject(u))&&(l="geojson-id");var f=a("locationmode",l);f==="country names"&&cF.warn(pFt),f==="geojson-id"&&a("featureidkey"),s=o.length}else{var c=a("lon")||[],h=a("lat")||[];s=Math.min(c.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("mode"),AZ.hasMarkers(r)&&uFt(t,r,n,i,a,{gradient:!0}),AZ.hasLines(r)&&(fFt(t,r,n,i,a),a("connectgaps")),AZ.hasText(r)&&(a("texttemplate"),cFt(t,r,i,a)),a("fill"),r.fill!=="none"&&hFt(t,r,n,a),cF.coerceSelectionMarkerOpacity(r,a)}});var IDe=Te((Lyr,zDe)=>{"use strict";var PDe=wu();zDe.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=PDe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=PDe.tickText(o,o.c2l(s[1]),!0).text,i}});var hF=Te((Pyr,BDe)=>{"use strict";var TZ=ku(),RDe=nf().BADNUM,vFt=D0(),mFt=ky(),yFt=F0(),gFt=ei().isArrayOrTypedArray,DDe=ei()._;function FDe(e){return e&&typeof e=="string"}BDe.exports=function(t,r){var n=gFt(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return FDe(h)||TZ(h)}:o=FDe;for(var s=0;s{"use strict";Ep.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Ep.axesNames=["lonaxis","lataxis"];Ep.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Ep.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Ep.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Ep.clipPad=.001;Ep.precision=.1;Ep.landColor="#F0DC82";Ep.waterColor="#3399FF";Ep.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Ep.sphereSVG={type:"Sphere"};Ep.fillLayers={ocean:1,land:1,lakes:1};Ep.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Ep.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Ep.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Ep.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var SZ=Te((dF,ODe)=>{(function(e,t){typeof dF=="object"&&typeof ODe!="undefined"?t(dF):(e=e||self,t(e.topojson=e.topojson||{}))})(dF,function(e){"use strict";function t(E){return E}function r(E){if(E==null)return t;var T,L,_=E.scale[0],C=E.scale[1],M=E.translate[0],m=E.translate[1];return function(P,A){A||(T=L=0);var B=2,F=P.length,U=new Array(F);for(U[0]=(T+=P[0])*_+M,U[1]=(L+=P[1])*C+m;BM&&(M=B[0]),B[1]m&&(m=B[1])}function A(B){switch(B.type){case"GeometryCollection":B.geometries.forEach(A);break;case"Point":P(B.coordinates);break;case"MultiPoint":B.coordinates.forEach(P);break}}E.arcs.forEach(function(B){for(var F=-1,U=B.length,G;++FM&&(M=G[0]),G[1]m&&(m=G[1])});for(L in E.objects)A(E.objects[L]);return[_,C,M,m]}function i(E,T){for(var L,_=E.length,C=_-T;C<--_;)L=E[C],E[C++]=E[_],E[_]=L}function a(E,T){return typeof T=="string"&&(T=E.objects[T]),T.type==="GeometryCollection"?{type:"FeatureCollection",features:T.geometries.map(function(L){return o(E,L)})}:o(E,T)}function o(E,T){var L=T.id,_=T.bbox,C=T.properties==null?{}:T.properties,M=s(E,T);return L==null&&_==null?{type:"Feature",properties:C,geometry:M}:_==null?{type:"Feature",id:L,properties:C,geometry:M}:{type:"Feature",id:L,bbox:_,properties:C,geometry:M}}function s(E,T){var L=r(E.transform),_=E.arcs;function C(F,U){U.length&&U.pop();for(var G=_[F<0?~F:F],j=0,H=G.length;j1)_=c(E,T,L);else for(C=0,_=new Array(M=E.arcs.length);C1)for(var U=1,G=P(B[0]),j,H;UG&&(H=B[0],B[0]=B[U],B[U]=H,G=j);return B}).filter(function(A){return A.length>0})}}function x(E,T){for(var L=0,_=E.length;L<_;){var C=L+_>>>1;E[C]=2))throw new Error("n must be \u22652");A=E.bbox||n(E);var L=A[0],_=A[1],C=A[2],M=A[3],m;T={scale:[C-L?(C-L)/(m-1):1,M-_?(M-_)/(m-1):1],translate:[L,_]}}else A=E.bbox;var P=v(T),A,B,F=E.objects,U={};function G(N){return P(N)}function j(N){var W;switch(N.type){case"GeometryCollection":W={type:"GeometryCollection",geometries:N.geometries.map(j)};break;case"Point":W={type:"Point",coordinates:G(N.coordinates)};break;case"MultiPoint":W={type:"MultiPoint",coordinates:N.coordinates.map(G)};break;default:return N}return N.id!=null&&(W.id=N.id),N.bbox!=null&&(W.bbox=N.bbox),N.properties!=null&&(W.properties=N.properties),W}function H(N){var W=0,re=1,ae=N.length,be,Pe=new Array(ae);for(Pe[0]=P(N[0],0);++W{"use strict";var MZ=qDe.exports={},_Ft=ek().locationmodeToLayer,xFt=SZ().feature;MZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};MZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};MZ.getTopojsonFeatures=function(e,t){var r=_Ft[e.locationmode],n=t.objects[r];return xFt(t,n).features}});var tx=Te(tk=>{"use strict";var bFt=nf().BADNUM;tk.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,n=[],i=[],a=0;a0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n};tk.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};tk.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{NDe.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var yF=Te(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var Fv=63710088e-1,kZ={centimeters:Fv*100,centimetres:Fv*100,degrees:360/(2*Math.PI),feet:Fv*3.28084,inches:Fv*39.37,kilometers:Fv/1e3,kilometres:Fv/1e3,meters:Fv,metres:Fv,miles:Fv/1609.344,millimeters:Fv*1e3,millimetres:Fv*1e3,nauticalmiles:Fv/1852,radians:1,yards:Fv*1.0936},EZ={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function rx(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function wFt(e,t,r={}){switch(e){case"Point":return CZ(t).geometry;case"LineString":return PZ(t).geometry;case"Polygon":return LZ(t).geometry;case"MultiPoint":return GDe(t).geometry;case"MultiLineString":return VDe(t).geometry;case"MultiPolygon":return HDe(t).geometry;default:throw new Error(e+" is invalid")}}function CZ(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!vF(e[0])||!vF(e[1]))throw new Error("coordinates must contain numbers");return rx({type:"Point",coordinates:e},t,r)}function AFt(e,t,r={}){return mF(e.map(n=>CZ(n,t)),r)}function LZ(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;aLZ(n,t)),r)}function PZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return rx({type:"LineString",coordinates:e},t,r)}function SFt(e,t,r={}){return mF(e.map(n=>PZ(n,t)),r)}function mF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function VDe(e,t,r={}){return rx({type:"MultiLineString",coordinates:e},t,r)}function GDe(e,t,r={}){return rx({type:"MultiPoint",coordinates:e},t,r)}function HDe(e,t,r={}){return rx({type:"MultiPolygon",coordinates:e},t,r)}function MFt(e,t,r={}){return rx({type:"GeometryCollection",geometries:e},t,r)}function EFt(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function WDe(e,t="kilometers"){let r=kZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function zZ(e,t="kilometers"){let r=kZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function kFt(e,t){return jDe(zZ(e,t))}function CFt(e){let t=e%360;return t<0&&(t+=360),t}function LFt(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function jDe(e){return e%(2*Math.PI)*180/Math.PI}function PFt(e){return e%360*Math.PI/180}function zFt(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return WDe(zZ(e,t),r)}function IFt(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=EZ[t];if(!n)throw new Error("invalid original units");let i=EZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function vF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function RFt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function DFt(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!vF(t))throw new Error("bbox must only contain numbers")})}function FFt(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}bc.areaFactors=EZ;bc.azimuthToBearing=LFt;bc.bearingToAzimuth=CFt;bc.convertArea=IFt;bc.convertLength=zFt;bc.degreesToRadians=PFt;bc.earthRadius=Fv;bc.factors=kZ;bc.feature=rx;bc.featureCollection=mF;bc.geometry=wFt;bc.geometryCollection=MFt;bc.isNumber=vF;bc.isObject=RFt;bc.lengthToDegrees=kFt;bc.lengthToRadians=zZ;bc.lineString=PZ;bc.lineStrings=SFt;bc.multiLineString=VDe;bc.multiPoint=GDe;bc.multiPolygon=HDe;bc.point=CZ;bc.points=AFt;bc.polygon=LZ;bc.polygons=TFt;bc.radiansToDegrees=jDe;bc.radiansToLength=WDe;bc.round=EFt;bc.validateBBox=DFt;bc.validateId=FFt});var _F=Te(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});var Wp=yF();function rk(e,t,r){if(e!==null)for(var n,i,a,o,s,u,l,f=0,c=0,h,d=e.type,p=d==="FeatureCollection",x=d==="Feature",b=p?e.features.length:1,v=0;vu||p>l||x>f){s=c,u=n,l=p,f=x,a=0;return}var b=Wp.lineString.call(void 0,[s,c],r.properties);if(t(b,n,i,x,a)===!1)return!1;a++,s=c})===!1)return!1}}})}function GFt(e,t,r){var n=r,i=!1;return YDe(e,function(a,o,s,u,l){i===!1&&r===void 0?n=a:n=t(n,a,o,s,u,l),i=!0}),n}function KDe(e,t){if(!e)throw new Error("geojson is required");gF(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(xF,"__esModule",{value:!0});var JDe=yF(),XFt=_F();function e6e(e){return XFt.geomReduce.call(void 0,e,(t,r)=>t+ZFt(r),0)}function ZFt(e){let t=0,r;switch(e.type){case"Polygon":return $De(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(QDe(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*RZ,u=a[1]*RZ,l=o[0]*RZ;r+=(l-s)*Math.sin(u),n++}return r*YFt}var KFt=e6e;xF.area=e6e;xF.default=KFt});var i6e=Te(bF=>{"use strict";Object.defineProperty(bF,"__esModule",{value:!0});var JFt=yF(),$Ft=_F();function r6e(e,t={}){let r=0,n=0,i=0;return $Ft.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),JFt.point.call(void 0,[r/i,n/i],t.properties)}var QFt=r6e;bF.centroid=r6e;bF.default=QFt});var a6e=Te(wF=>{"use strict";Object.defineProperty(wF,"__esModule",{value:!0});var e8t=_F();function n6e(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return e8t.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]{"use strict";var r8t=Jl(),l6e=UDe(),{area:i8t}=t6e(),{centroid:n8t}=i6e(),{bbox:a8t}=a6e(),o6e=VM(),XT=G1(),o8t=mg(),s8t=kM(),AF=M5(),s6e=Object.keys(l6e),l8t={"ISO-3":o6e,"USA-states":o6e,"country names":u8t};function u8t(e){for(var t=0;t0&&f[c+1][0]<0)return c;return null}switch(n==="RUS"||n==="FJI"?a=function(f){var c;if(l(f)===null)c=f;else for(c=new Array(f.length),u=0;uc?h[d++]=[f[u][0]+360,f[u][1]]:u===c?(h[d++]=f[u],h[d++]=[f[u][0],-90]):h[d++]=f[u];var p=AF.tester(h);p.pts.pop(),i.push(p)}:a=function(f){i.push(AF.tester(f))},t.type){case"MultiPolygon":for(o=0;o0?p.properties.ct=d8t(p):p.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=p,i.push(p)}else XT.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[c]}switch(r.type){case"FeatureCollection":var u=r.features;for(a=0;ai&&(i=s,r=o)}else r=t;return n8t(r).geometry.coordinates}function p8t(e){var t=window.PlotlyGeoAssets||{},r=[];function n(u){return new Promise(function(l,f){r8t.json(u,function(c,h){if(c){delete t[u];var d=c.status===404?'GeoJSON at URL "'+u+'" does not exist.':"Unexpected error while fetching from "+u;return f(new Error(d))}return t[u]=h,l(h)})})}function i(u){return new Promise(function(l,f){var c=0,h=setInterval(function(){if(t[u]&&t[u]!=="pending")return clearInterval(h),l(t[u]);if(c>100)return clearInterval(h),f("Unexpected error while fetching from "+u);c++},50)})}for(var a=0;a{"use strict";var m8t=Jl(),y8t=Mu(),c6e=jl(),h6e=av(),g8t=h6e.stylePoints,_8t=h6e.styleText;d6e.exports=function(t,r){r&&x8t(t,r)};function x8t(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),g8t(n,r,e),_8t(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=m8t.select(this),o=i.trace,s=o.line||{};a.call(c6e.stroke,s.color).call(y8t.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(c6e.fill,o.fillcolor)})}});var qZ=Te((Gyr,m6e)=>{"use strict";var p6e=Jl(),SF=ei(),b8t=pF().getTopojsonFeatures,FZ=tx(),TF=ix(),v6e=wm().findExtremes,OZ=nf().BADNUM,w8t=B0().calcMarkerSize,BZ=lc(),A8t=DZ();function T8t(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=SF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===OZ&&p6e.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=p6e.select(this),u=o[0].trace;if(BZ.hasLines(u)||u.fill!=="none"){var l=FZ.calcTraceToLineCoords(o),f=u.fill!=="none"?FZ.makePolygon(l):FZ.makeLine(l);s.selectAll("path.js-line").data([{geojson:f,trace:u}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}BZ.hasMarkers(u)&&s.selectAll("path.point").data(SF.identity).enter().append("path").classed("point",!0).each(function(c){a(c,this)}),BZ.hasText(u)&&s.selectAll("g").data(SF.identity).enter().append("g").append("text").each(function(c){a(c,this)}),A8t(e,o)})}function S8t(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(SF.isArrayOrTypedArray(r.locations)){var u=r.locationmode,l=u==="geojson-id"?TF.extractTraceFeature(e):b8t(r,i.topojson);for(o=0;o{"use strict";var M8t=Xc(),E8t=nf().BADNUM,k8t=oA(),C8t=ei().fillText,L8t=G2();y6e.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.xa,s=t.ya,u=t.subplot,l=u.projection.isLonLatOverEdges,f=u.project;function c(k){var E=k.lonlat;if(E[0]===E8t||l(E))return 1/0;var T=f(E),L=f([r,n]),_=Math.abs(T[0]-L[0]),C=Math.abs(T[1]-L[1]),M=Math.max(3,k.mrc||0);return Math.max(Math.sqrt(_*_+C*C)-M,1-3/M)}if(M8t.getClosest(i,c,t),t.index!==!1){var h=i[t.index],d=h.lonlat,p=[o.c2p(d),s.c2p(d)],x=h.mrc||1;t.x0=p[0]-x,t.x1=p[0]+x,t.y0=p[1]-x,t.y1=p[1]+x,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var b={};b[a.geo]={_subplot:u};var v=a._module.formatLabels(h,a,b);return t.lonLabel=v.lonLabel,t.latLabel=v.latLabel,t.color=k8t(a,h),t.extraText=P8t(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function P8t(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?L8t.hoverinfo.flags:i.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,u=a.indexOf("lat")!==-1,l=a.indexOf("text")!==-1,f=[];function c(h){return h+"\xB0"}return o?f.push(t.loc):s&&u?f.push("("+c(r.latLabel)+", "+c(r.lonLabel)+")"):s?f.push(n.lon+c(r.lonLabel)):u&&f.push(n.lat+c(r.latLabel)),l&&C8t(t,e,f),f.join("
")}});var x6e=Te((Wyr,_6e)=>{"use strict";_6e.exports=function(t,r,n,i,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var A6e=Te((jyr,w6e)=>{"use strict";var b6e=lc(),z8t=nf().BADNUM;w6e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u,l,f,c,h,d=!b6e.hasMarkers(s)&&!b6e.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof MF=="object"&&typeof T6e!="undefined"?MF:e.d3=e.d3||{})})(MF,function(e){"use strict";function t(Ee,Me){return EeMe?1:Ee>=Me?0:NaN}function r(Ee){return Ee.length===1&&(Ee=n(Ee)),{left:function(Me,Ne,Fe,ye){for(Fe==null&&(Fe=0),ye==null&&(ye=Me.length);Fe>>1;Ee(Me[Ve],Ne)<0?Fe=Ve+1:ye=Ve}return Fe},right:function(Me,Ne,Fe,ye){for(Fe==null&&(Fe=0),ye==null&&(ye=Me.length);Fe>>1;Ee(Me[Ve],Ne)>0?ye=Ve:Fe=Ve+1}return Fe}}}function n(Ee){return function(Me,Ne){return t(Ee(Me),Ne)}}var i=r(t),a=i.right,o=i.left;function s(Ee,Me){Me==null&&(Me=u);for(var Ne=0,Fe=Ee.length-1,ye=Ee[0],Ve=new Array(Fe<0?0:Fe);NeEe?1:Me>=Ee?0:NaN}function c(Ee){return Ee===null?NaN:+Ee}function h(Ee,Me){var Ne=Ee.length,Fe=0,ye=-1,Ve=0,ce,Ye,nt=0;if(Me==null)for(;++ye1)return nt/(Fe-1)}function d(Ee,Me){var Ne=h(Ee,Me);return Ne&&Math.sqrt(Ne)}function p(Ee,Me){var Ne=Ee.length,Fe=-1,ye,Ve,ce;if(Me==null){for(;++Fe=ye)for(Ve=ce=ye;++Feye&&(Ve=ye),ce=ye)for(Ve=ce=ye;++Feye&&(Ve=ye),ce0)return[Ee];if((Fe=Me0)for(Ee=Math.ceil(Ee/Ye),Me=Math.floor(Me/Ye),ce=new Array(Ve=Math.ceil(Me-Ee+1));++ye=0?(Ve>=L?10:Ve>=_?5:Ve>=C?2:1)*Math.pow(10,ye):-Math.pow(10,-ye)/(Ve>=L?10:Ve>=_?5:Ve>=C?2:1)}function P(Ee,Me,Ne){var Fe=Math.abs(Me-Ee)/Math.max(0,Ne),ye=Math.pow(10,Math.floor(Math.log(Fe)/Math.LN10)),Ve=Fe/ye;return Ve>=L?ye*=10:Ve>=_?ye*=5:Ve>=C&&(ye*=2),Meit;)Ke.pop(),--kt;var Tt=new Array(kt+1),St;for(Ve=0;Ve<=kt;++Ve)St=Tt[Ve]=[],St.x0=Ve>0?Ke[Ve-1]:Nt,St.x1=Ve=1)return+Ne(Ee[Fe-1],Fe-1,Ee);var Fe,ye=(Fe-1)*Me,Ve=Math.floor(ye),ce=+Ne(Ee[Ve],Ve,Ee),Ye=+Ne(Ee[Ve+1],Ve+1,Ee);return ce+(Ye-ce)*(ye-Ve)}}function U(Ee,Me,Ne){return Ee=v.call(Ee,c).sort(t),Math.ceil((Ne-Me)/(2*(F(Ee,.75)-F(Ee,.25))*Math.pow(Ee.length,-1/3)))}function G(Ee,Me,Ne){return Math.ceil((Ne-Me)/(3.5*d(Ee)*Math.pow(Ee.length,-1/3)))}function j(Ee,Me){var Ne=Ee.length,Fe=-1,ye,Ve;if(Me==null){for(;++Fe=ye)for(Ve=ye;++FeVe&&(Ve=ye)}else for(;++Fe=ye)for(Ve=ye;++FeVe&&(Ve=ye);return Ve}function H(Ee,Me){var Ne=Ee.length,Fe=Ne,ye=-1,Ve,ce=0;if(Me==null)for(;++ye=0;)for(ce=Ee[Me],Ne=ce.length;--Ne>=0;)Ve[--ye]=ce[Ne];return Ve}function re(Ee,Me){var Ne=Ee.length,Fe=-1,ye,Ve;if(Me==null){for(;++Fe=ye)for(Ve=ye;++Feye&&(Ve=ye)}else for(;++Fe=ye)for(Ve=ye;++Feye&&(Ve=ye);return Ve}function ae(Ee,Me){for(var Ne=Me.length,Fe=new Array(Ne);Ne--;)Fe[Ne]=Ee[Me[Ne]];return Fe}function be(Ee,Me){if(Ne=Ee.length){var Ne,Fe=0,ye=0,Ve,ce=Ee[ye];for(Me==null&&(Me=t);++Fe{(function(e,t){typeof EF=="object"&&typeof S6e!="undefined"?t(EF,ik()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(EF,function(e,t){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(At){a(i,At,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(At,Gt,wr){var mr=At.s=Gt+wr,Or=mr-Gt,gi=mr-Or;At.t=Gt-gi+(wr-Or)}var o=1e-6,s=1e-12,u=Math.PI,l=u/2,f=u/4,c=u*2,h=180/u,d=u/180,p=Math.abs,x=Math.atan,b=Math.atan2,v=Math.cos,k=Math.ceil,E=Math.exp,T=Math.log,L=Math.pow,_=Math.sin,C=Math.sign||function(At){return At>0?1:At<0?-1:0},M=Math.sqrt,m=Math.tan;function P(At){return At>1?0:At<-1?u:Math.acos(At)}function A(At){return At>1?l:At<-1?-l:Math.asin(At)}function B(At){return(At=_(At/2))*At}function F(){}function U(At,Gt){At&&j.hasOwnProperty(At.type)&&j[At.type](At,Gt)}var G={Feature:function(At,Gt){U(At.geometry,Gt)},FeatureCollection:function(At,Gt){for(var wr=At.features,mr=-1,Or=wr.length;++mr=0?1:-1,Or=mr*wr,gi=v(Gt),Ti=_(Gt),ki=te*Ti,Ji=de*gi+ki*v(Or),Fn=ki*mr*_(Or);re.add(b(Fn,Ji)),Ce=At,de=gi,te=Ti}function ye(At){return ae.reset(),W(At,ke),ae*2}function Ve(At){return[b(At[1],At[0]),A(At[2])]}function ce(At){var Gt=At[0],wr=At[1],mr=v(wr);return[mr*v(Gt),mr*_(Gt),_(wr)]}function Ye(At,Gt){return At[0]*Gt[0]+At[1]*Gt[1]+At[2]*Gt[2]}function nt(At,Gt){return[At[1]*Gt[2]-At[2]*Gt[1],At[2]*Gt[0]-At[0]*Gt[2],At[0]*Gt[1]-At[1]*Gt[0]]}function gt(At,Gt){At[0]+=Gt[0],At[1]+=Gt[1],At[2]+=Gt[2]}function Nt(At,Gt){return[At[0]*Gt,At[1]*Gt,At[2]*Gt]}function it(At){var Gt=M(At[0]*At[0]+At[1]*At[1]+At[2]*At[2]);At[0]/=Gt,At[1]/=Gt,At[2]/=Gt}var Ke,kt,Tt,St,Dt,Zt,Et,Ae,at=r(),wt,vt,st={point:Ue,lineStart:$e,lineEnd:zt,polygonStart:function(){st.point=Yt,st.lineStart=hr,st.lineEnd=yr,at.reset(),ke.polygonStart()},polygonEnd:function(){ke.polygonEnd(),st.point=Ue,st.lineStart=$e,st.lineEnd=zt,re<0?(Ke=-(Tt=180),kt=-(St=90)):at>o?St=90:at<-o&&(kt=-90),vt[0]=Ke,vt[1]=Tt},sphere:function(){Ke=-(Tt=180),kt=-(St=90)}};function Ue(At,Gt){wt.push(vt=[Ke=At,Tt=At]),GtSt&&(St=Gt)}function rt(At,Gt){var wr=ce([At*d,Gt*d]);if(Ae){var mr=nt(Ae,wr),Or=[mr[1],-mr[0],0],gi=nt(Or,mr);it(gi),gi=Ve(gi);var Ti=At-Dt,ki=Ti>0?1:-1,Ji=gi[0]*h*ki,Fn,Pi=p(Ti)>180;Pi^(ki*DtSt&&(St=Fn)):(Ji=(Ji+360)%360-180,Pi^(ki*DtSt&&(St=Gt))),Pi?Atbr(Ke,Tt)&&(Tt=At):br(At,Tt)>br(Ke,Tt)&&(Ke=At):Tt>=Ke?(AtTt&&(Tt=At)):At>Dt?br(Ke,At)>br(Ke,Tt)&&(Tt=At):br(At,Tt)>br(Ke,Tt)&&(Ke=At)}else wt.push(vt=[Ke=At,Tt=At]);GtSt&&(St=Gt),Ae=wr,Dt=At}function $e(){st.point=rt}function zt(){vt[0]=Ke,vt[1]=Tt,st.point=Ue,Ae=null}function Yt(At,Gt){if(Ae){var wr=At-Dt;at.add(p(wr)>180?wr+(wr>0?360:-360):wr)}else Zt=At,Et=Gt;ke.point(At,Gt),rt(At,Gt)}function hr(){ke.lineStart()}function yr(){Yt(Zt,Et),ke.lineEnd(),p(at)>o&&(Ke=-(Tt=180)),vt[0]=Ke,vt[1]=Tt,Ae=null}function br(At,Gt){return(Gt-=At)<0?Gt+360:Gt}function Ut(At,Gt){return At[0]-Gt[0]}function Ie(At,Gt){return At[0]<=At[1]?At[0]<=Gt&&Gt<=At[1]:Gtbr(mr[0],mr[1])&&(mr[1]=Or[1]),br(Or[0],mr[1])>br(mr[0],mr[1])&&(mr[0]=Or[0])):gi.push(mr=Or);for(Ti=-1/0,wr=gi.length-1,Gt=0,mr=gi[wr];Gt<=wr;mr=Or,++Gt)Or=gi[Gt],(ki=br(mr[1],Or[0]))>Ti&&(Ti=ki,Ke=Or[0],Tt=mr[1])}return wt=vt=null,Ke===1/0||kt===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ke,kt],[Tt,St]]}var Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di={sphere:F,point:Ii,lineStart:nn,lineEnd:Gi,polygonStart:function(){Di.lineStart=Bt,Di.lineEnd=yt},polygonEnd:function(){Di.lineStart=nn,Di.lineEnd=Gi}};function Ii(At,Gt){At*=d,Gt*=d;var wr=v(Gt);Ci(wr*v(At),wr*_(At),_(Gt))}function Ci(At,Gt,wr){++Oe,De+=(At-De)/Oe,ct+=(Gt-ct)/Oe,ge+=(wr-ge)/Oe}function nn(){Di.point=ii}function ii(At,Gt){At*=d,Gt*=d;var wr=v(Gt);Mr=wr*v(At),Fr=wr*_(At),di=_(Gt),Di.point=wi,Ci(Mr,Fr,di)}function wi(At,Gt){At*=d,Gt*=d;var wr=v(Gt),mr=wr*v(At),Or=wr*_(At),gi=_(Gt),Ti=b(M((Ti=Fr*gi-di*Or)*Ti+(Ti=di*mr-Mr*gi)*Ti+(Ti=Mr*Or-Fr*mr)*Ti),Mr*mr+Fr*Or+di*gi);Re+=Ti,fe+=Ti*(Mr+(Mr=mr)),pe+=Ti*(Fr+(Fr=Or)),dt+=Ti*(di+(di=gi)),Ci(Mr,Fr,di)}function Gi(){Di.point=Ii}function Bt(){Di.point=Vt}function yt(){Wt(Hr,Dr),Di.point=Ii}function Vt(At,Gt){Hr=At,Dr=Gt,At*=d,Gt*=d,Di.point=Wt;var wr=v(Gt);Mr=wr*v(At),Fr=wr*_(At),di=_(Gt),Ci(Mr,Fr,di)}function Wt(At,Gt){At*=d,Gt*=d;var wr=v(Gt),mr=wr*v(At),Or=wr*_(At),gi=_(Gt),Ti=Fr*gi-di*Or,ki=di*mr-Mr*gi,Ji=Mr*Or-Fr*mr,Fn=M(Ti*Ti+ki*ki+Ji*Ji),Pi=A(Fn),hi=Fn&&-Pi/Fn;It+=hi*Ti,Pt+=hi*ki,rr+=hi*Ji,Re+=Pi,fe+=Pi*(Mr+(Mr=mr)),pe+=Pi*(Fr+(Fr=Or)),dt+=Pi*(di+(di=gi)),Ci(Mr,Fr,di)}function _r(At){Oe=Re=De=ct=ge=fe=pe=dt=It=Pt=rr=0,W(At,Di);var Gt=It,wr=Pt,mr=rr,Or=Gt*Gt+wr*wr+mr*mr;return Oru?At+Math.round(-At/c)*c:At,Gt]}Ir.invert=Ir;function Gr(At,Gt,wr){return(At%=c)?Gt||wr?Ur(yi(At),Ei(Gt,wr)):yi(At):Gt||wr?Ei(Gt,wr):Ir}function jr(At){return function(Gt,wr){return Gt+=At,[Gt>u?Gt-c:Gt<-u?Gt+c:Gt,wr]}}function yi(At){var Gt=jr(At);return Gt.invert=jr(-At),Gt}function Ei(At,Gt){var wr=v(At),mr=_(At),Or=v(Gt),gi=_(Gt);function Ti(ki,Ji){var Fn=v(Ji),Pi=v(ki)*Fn,hi=_(ki)*Fn,Li=_(Ji),Si=Li*wr+Pi*mr;return[b(hi*Or-Si*gi,Pi*wr-Li*mr),A(Si*Or+hi*gi)]}return Ti.invert=function(ki,Ji){var Fn=v(Ji),Pi=v(ki)*Fn,hi=_(ki)*Fn,Li=_(Ji),Si=Li*Or-hi*gi;return[b(hi*Or+Li*gi,Pi*wr+Si*mr),A(Si*wr-Pi*mr)]},Ti}function Vi(At){At=Gr(At[0]*d,At[1]*d,At.length>2?At[2]*d:0);function Gt(wr){return wr=At(wr[0]*d,wr[1]*d),wr[0]*=h,wr[1]*=h,wr}return Gt.invert=function(wr){return wr=At.invert(wr[0]*d,wr[1]*d),wr[0]*=h,wr[1]*=h,wr},Gt}function ti(At,Gt,wr,mr,Or,gi){if(wr){var Ti=v(Gt),ki=_(Gt),Ji=mr*wr;Or==null?(Or=Gt+mr*c,gi=Gt-Ji/2):(Or=en(Ti,Or),gi=en(Ti,gi),(mr>0?Orgi)&&(Or+=mr*c));for(var Fn,Pi=Or;mr>0?Pi>gi:Pi1&&At.push(At.pop().concat(At.shift()))},result:function(){var wr=At;return At=[],Gt=null,wr}}}function Bi(At,Gt){return p(At[0]-Gt[0])=0;--ki)Or.point((hi=Pi[ki])[0],hi[1]);else mr(Li.x,Li.p.x,-1,Or);Li=Li.p}Li=Li.o,Pi=Li.z,Si=!Si}while(!Li.v);Or.lineEnd()}}}function Fi(At){if(Gt=At.length){for(var Gt,wr=0,mr=At[0],Or;++wr=0?1:-1,xl=dl*Ks,Ol=xl>u,bl=ta*is;if(Ri.add(b(bl*dl*_(xl),ya*Cs+bl*v(xl))),Ti+=Ol?Ks+dl*c:Ks,Ol^Si>=wr^va>=wr){var eu=nt(ce(Li),ce(pa));it(eu);var Zl=nt(gi,eu);it(Zl);var Vl=(Ol^Ks>=0?-1:1)*A(Zl[2]);(mr>Vl||mr===Vl&&(eu[0]||eu[1]))&&(ki+=Ol^Ks>=0?1:-1)}}return(Ti<-o||Ti0){for(Ji||(Or.polygonStart(),Ji=!0),Or.lineStart(),Cs=0;Cs1&&zn&2&&is.push(is.pop().concat(is.shift())),Pi.push(is.filter(ft))}}return Li}}function ft(At){return At.length>1}function tr(At,Gt){return((At=At.x)[0]<0?At[1]-l-o:l-At[1])-((Gt=Gt.x)[0]<0?Gt[1]-l-o:l-Gt[1])}var pr=Xr(function(){return!0},gr,Ai,[-u,-l]);function gr(At){var Gt=NaN,wr=NaN,mr=NaN,Or;return{lineStart:function(){At.lineStart(),Or=1},point:function(gi,Ti){var ki=gi>0?u:-u,Ji=p(gi-Gt);p(Ji-u)0?l:-l),At.point(mr,wr),At.lineEnd(),At.lineStart(),At.point(ki,wr),At.point(gi,wr),Or=0):mr!==ki&&Ji>=u&&(p(Gt-mr)o?x((_(Gt)*(gi=v(mr))*_(wr)-_(mr)*(Or=v(Gt))*_(At))/(Or*gi*Ti)):(Gt+mr)/2}function Ai(At,Gt,wr,mr){var Or;if(At==null)Or=wr*l,mr.point(-u,Or),mr.point(0,Or),mr.point(u,Or),mr.point(u,0),mr.point(u,-Or),mr.point(0,-Or),mr.point(-u,-Or),mr.point(-u,0),mr.point(-u,Or);else if(p(At[0]-Gt[0])>o){var gi=At[0]0,Or=p(Gt)>o;function gi(Pi,hi,Li,Si){ti(Si,At,wr,Li,Pi,hi)}function Ti(Pi,hi){return v(Pi)*v(hi)>Gt}function ki(Pi){var hi,Li,Si,Gn,ta;return{lineStart:function(){Gn=Si=!1,ta=1},point:function(ya,ia){var pa=[ya,ia],va,zn=Ti(ya,ia),is=mr?zn?0:Fn(ya,ia):zn?Fn(ya+(ya<0?u:-u),ia):0;if(!hi&&(Gn=Si=zn)&&Pi.lineStart(),zn!==Si&&(va=Ji(hi,pa),(!va||Bi(hi,va)||Bi(pa,va))&&(pa[2]=1)),zn!==Si)ta=0,zn?(Pi.lineStart(),va=Ji(pa,hi),Pi.point(va[0],va[1])):(va=Ji(hi,pa),Pi.point(va[0],va[1],2),Pi.lineEnd()),hi=va;else if(Or&&hi&&mr^zn){var Cs;!(is&Li)&&(Cs=Ji(pa,hi,!0))&&(ta=0,mr?(Pi.lineStart(),Pi.point(Cs[0][0],Cs[0][1]),Pi.point(Cs[1][0],Cs[1][1]),Pi.lineEnd()):(Pi.point(Cs[1][0],Cs[1][1]),Pi.lineEnd(),Pi.lineStart(),Pi.point(Cs[0][0],Cs[0][1],3)))}zn&&(!hi||!Bi(hi,pa))&&Pi.point(pa[0],pa[1]),hi=pa,Si=zn,Li=is},lineEnd:function(){Si&&Pi.lineEnd(),hi=null},clean:function(){return ta|(Gn&&Si)<<1}}}function Ji(Pi,hi,Li){var Si=ce(Pi),Gn=ce(hi),ta=[1,0,0],ya=nt(Si,Gn),ia=Ye(ya,ya),pa=ya[0],va=ia-pa*pa;if(!va)return!Li&Πvar zn=Gt*ia/va,is=-Gt*pa/va,Cs=nt(ta,ya),Ks=Nt(ta,zn),dl=Nt(ya,is);gt(Ks,dl);var xl=Cs,Ol=Ye(Ks,xl),bl=Ye(xl,xl),eu=Ol*Ol-bl*(Ye(Ks,Ks)-1);if(!(eu<0)){var Zl=M(eu),Vl=Nt(xl,(-Ol-Zl)/bl);if(gt(Vl,Ks),Vl=Ve(Vl),!Li)return Vl;var ja=Pi[0],ns=hi[0],Js=Pi[1],cs=hi[1],sl;ns0^Vl[1]<(p(Vl[0]-ja)u^(ja<=Vl[0]&&Vl[0]<=ns)){var Ml=Nt(xl,(-Ol+Zl)/bl);return gt(Ml,Ks),[Vl,Ve(Ml)]}}}function Fn(Pi,hi){var Li=mr?At:u-At,Si=0;return Pi<-Li?Si|=1:Pi>Li&&(Si|=2),hi<-Li?Si|=4:hi>Li&&(Si|=8),Si}return Xr(Ti,ki,gi,mr?[0,-At]:[-u,At-u])}function ni(At,Gt,wr,mr,Or,gi){var Ti=At[0],ki=At[1],Ji=Gt[0],Fn=Gt[1],Pi=0,hi=1,Li=Ji-Ti,Si=Fn-ki,Gn;if(Gn=wr-Ti,!(!Li&&Gn>0)){if(Gn/=Li,Li<0){if(Gn0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}if(Gn=Or-Ti,!(!Li&&Gn<0)){if(Gn/=Li,Li<0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}else if(Li>0){if(Gn0)){if(Gn/=Si,Si<0){if(Gn0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}if(Gn=gi-ki,!(!Si&&Gn<0)){if(Gn/=Si,Si<0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}else if(Si>0){if(Gn0&&(At[0]=Ti+Pi*Li,At[1]=ki+Pi*Si),hi<1&&(Gt[0]=Ti+hi*Li,Gt[1]=ki+hi*Si),!0}}}}}var Zi=1e9,aa=-Zi;function Mn(At,Gt,wr,mr){function Or(Fn,Pi){return At<=Fn&&Fn<=wr&&Gt<=Pi&&Pi<=mr}function gi(Fn,Pi,hi,Li){var Si=0,Gn=0;if(Fn==null||(Si=Ti(Fn,hi))!==(Gn=Ti(Pi,hi))||Ji(Fn,Pi)<0^hi>0)do Li.point(Si===0||Si===3?At:wr,Si>1?mr:Gt);while((Si=(Si+hi+4)%4)!==Gn);else Li.point(Pi[0],Pi[1])}function Ti(Fn,Pi){return p(Fn[0]-At)0?0:3:p(Fn[0]-wr)0?2:1:p(Fn[1]-Gt)0?1:0:Pi>0?3:2}function ki(Fn,Pi){return Ji(Fn.x,Pi.x)}function Ji(Fn,Pi){var hi=Ti(Fn,1),Li=Ti(Pi,1);return hi!==Li?hi-Li:hi===0?Pi[1]-Fn[1]:hi===1?Fn[0]-Pi[0]:hi===2?Fn[1]-Pi[1]:Pi[0]-Fn[0]}return function(Fn){var Pi=Fn,hi=oi(),Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks={point:dl,lineStart:eu,lineEnd:Zl,polygonStart:Ol,polygonEnd:bl};function dl(ja,ns){Or(ja,ns)&&Pi.point(ja,ns)}function xl(){for(var ja=0,ns=0,Js=Si.length;nsmr&&(Rl-zl)*(mr-Ml)>(Al-Ml)*(At-zl)&&++ja:Al<=mr&&(Rl-zl)*(mr-Ml)<(Al-Ml)*(At-zl)&&--ja;return ja}function Ol(){Pi=hi,Li=[],Si=[],Cs=!0}function bl(){var ja=xl(),ns=Cs&&ja,Js=(Li=t.merge(Li)).length;(ns||Js)&&(Fn.polygonStart(),ns&&(Fn.lineStart(),gi(null,null,1,Fn),Fn.lineEnd()),Js&&rn(Li,ki,ja,gi,Fn),Fn.polygonEnd()),Pi=Fn,Li=Si=Gn=null}function eu(){Ks.point=Vl,Si&&Si.push(Gn=[]),is=!0,zn=!1,pa=va=NaN}function Zl(){Li&&(Vl(ta,ya),ia&&zn&&hi.rejoin(),Li.push(hi.result())),Ks.point=dl,zn&&Pi.lineEnd()}function Vl(ja,ns){var Js=Or(ja,ns);if(Si&&Gn.push([ja,ns]),is)ta=ja,ya=ns,ia=Js,is=!1,Js&&(Pi.lineStart(),Pi.point(ja,ns));else if(Js&&zn)Pi.point(ja,ns);else{var cs=[pa=Math.max(aa,Math.min(Zi,pa)),va=Math.max(aa,Math.min(Zi,va))],sl=[ja=Math.max(aa,Math.min(Zi,ja)),ns=Math.max(aa,Math.min(Zi,ns))];ni(cs,sl,At,Gt,wr,mr)?(zn||(Pi.lineStart(),Pi.point(cs[0],cs[1])),Pi.point(sl[0],sl[1]),Js||Pi.lineEnd(),Cs=!1):Js&&(Pi.lineStart(),Pi.point(ja,ns),Cs=!1)}pa=ja,va=ns,zn=Js}return Ks}}function Un(){var At=0,Gt=0,wr=960,mr=500,Or,gi,Ti;return Ti={stream:function(ki){return Or&&gi===ki?Or:Or=Mn(At,Gt,wr,mr)(gi=ki)},extent:function(ki){return arguments.length?(At=+ki[0][0],Gt=+ki[0][1],wr=+ki[1][0],mr=+ki[1][1],Or=gi=null,Ti):[[At,Gt],[wr,mr]]}}}var Ga=r(),ma,oa,ka,so={sphere:F,point:F,lineStart:Kr,lineEnd:F,polygonStart:F,polygonEnd:F};function Kr(){so.point=Yo,so.lineEnd=Ia}function Ia(){so.point=so.lineEnd=F}function Yo(At,Gt){At*=d,Gt*=d,ma=At,oa=_(Gt),ka=v(Gt),so.point=fa}function fa(At,Gt){At*=d,Gt*=d;var wr=_(Gt),mr=v(Gt),Or=p(At-ma),gi=v(Or),Ti=_(Or),ki=mr*Ti,Ji=ka*wr-oa*mr*gi,Fn=oa*wr+ka*mr*gi;Ga.add(b(M(ki*ki+Ji*Ji),Fn)),ma=At,oa=wr,ka=mr}function kn(At){return Ga.reset(),W(At,so),+Ga}var Ta=[null,null],ys={type:"LineString",coordinates:Ta};function uo(At,Gt){return Ta[0]=At,Ta[1]=Gt,kn(ys)}var ls={Feature:function(At,Gt){return fo(At.geometry,Gt)},FeatureCollection:function(At,Gt){for(var wr=At.features,mr=-1,Or=wr.length;++mr0&&(Or=uo(At[gi],At[gi-1]),Or>0&&wr<=Or&&mr<=Or&&(wr+mr-Or)*(1-Math.pow((wr-mr)/Or,2))o}).map(Li)).concat(t.range(k(gi/Fn)*Fn,Or,Fn).filter(function(va){return p(va%hi)>o}).map(Si))}return ia.lines=function(){return pa().map(function(va){return{type:"LineString",coordinates:va}})},ia.outline=function(){return{type:"Polygon",coordinates:[Gn(mr).concat(ta(Ti).slice(1),Gn(wr).reverse().slice(1),ta(ki).reverse().slice(1))]}},ia.extent=function(va){return arguments.length?ia.extentMajor(va).extentMinor(va):ia.extentMinor()},ia.extentMajor=function(va){return arguments.length?(mr=+va[0][0],wr=+va[1][0],ki=+va[0][1],Ti=+va[1][1],mr>wr&&(va=mr,mr=wr,wr=va),ki>Ti&&(va=ki,ki=Ti,Ti=va),ia.precision(ya)):[[mr,ki],[wr,Ti]]},ia.extentMinor=function(va){return arguments.length?(Gt=+va[0][0],At=+va[1][0],gi=+va[0][1],Or=+va[1][1],Gt>At&&(va=Gt,Gt=At,At=va),gi>Or&&(va=gi,gi=Or,Or=va),ia.precision(ya)):[[Gt,gi],[At,Or]]},ia.step=function(va){return arguments.length?ia.stepMajor(va).stepMinor(va):ia.stepMinor()},ia.stepMajor=function(va){return arguments.length?(Pi=+va[0],hi=+va[1],ia):[Pi,hi]},ia.stepMinor=function(va){return arguments.length?(Ji=+va[0],Fn=+va[1],ia):[Ji,Fn]},ia.precision=function(va){return arguments.length?(ya=+va,Li=ji(gi,Or,90),Si=gn(Gt,At,ya),Gn=ji(ki,Ti,90),ta=gn(mr,wr,ya),ia):ya},ia.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ha(){return Ps()()}function Sn(At,Gt){var wr=At[0]*d,mr=At[1]*d,Or=Gt[0]*d,gi=Gt[1]*d,Ti=v(mr),ki=_(mr),Ji=v(gi),Fn=_(gi),Pi=Ti*v(wr),hi=Ti*_(wr),Li=Ji*v(Or),Si=Ji*_(Or),Gn=2*A(M(B(gi-mr)+Ti*Ji*B(Or-wr))),ta=_(Gn),ya=Gn?function(ia){var pa=_(ia*=Gn)/ta,va=_(Gn-ia)/ta,zn=va*Pi+pa*Li,is=va*hi+pa*Si,Cs=va*ki+pa*Fn;return[b(is,zn)*h,b(Cs,M(zn*zn+is*is))*h]}:function(){return[wr*h,mr*h]};return ya.distance=Gn,ya}function ao(At){return At}var Ba=r(),Ko=r(),Qo,Wi,Sa,Qa,vn={point:F,lineStart:F,lineEnd:F,polygonStart:function(){vn.lineStart=da,vn.lineEnd=As},polygonEnd:function(){vn.lineStart=vn.lineEnd=vn.point=F,Ba.add(p(Ko)),Ko.reset()},result:function(){var At=Ba/2;return Ba.reset(),At}};function da(){vn.point=la}function la(At,Gt){vn.point=vo,Qo=Sa=At,Wi=Qa=Gt}function vo(At,Gt){Ko.add(Qa*At-Sa*Gt),Sa=At,Qa=Gt}function As(){vo(Qo,Wi)}var ps=1/0,co=ps,mo=-ps,No=mo,jn={point:Go,lineStart:F,lineEnd:F,polygonStart:F,polygonEnd:F,result:function(){var At=[[ps,co],[mo,No]];return mo=No=-(co=ps=1/0),At}};function Go(At,Gt){Atmo&&(mo=At),GtNo&&(No=Gt)}var Ys=0,qs=0,Ns=0,Oa=0,ha=0,Vs=0,Ya=0,_n=0,Vn=0,wo,Ra,Xn,un,$n={point:Ka,lineStart:qn,lineEnd:lo,polygonStart:function(){$n.lineStart=eo,$n.lineEnd=sa},polygonEnd:function(){$n.point=Ka,$n.lineStart=qn,$n.lineEnd=lo},result:function(){var At=Vn?[Ya/Vn,_n/Vn]:Vs?[Oa/Vs,ha/Vs]:Ns?[Ys/Ns,qs/Ns]:[NaN,NaN];return Ys=qs=Ns=Oa=ha=Vs=Ya=_n=Vn=0,At}};function Ka(At,Gt){Ys+=At,qs+=Gt,++Ns}function qn(){$n.point=Eo}function Eo(At,Gt){$n.point=Ja,Ka(Xn=At,un=Gt)}function Ja(At,Gt){var wr=At-Xn,mr=Gt-un,Or=M(wr*wr+mr*mr);Oa+=Or*(Xn+At)/2,ha+=Or*(un+Gt)/2,Vs+=Or,Ka(Xn=At,un=Gt)}function lo(){$n.point=Ka}function eo(){$n.point=es}function sa(){Na(wo,Ra)}function es(At,Gt){$n.point=Na,Ka(wo=Xn=At,Ra=un=Gt)}function Na(At,Gt){var wr=At-Xn,mr=Gt-un,Or=M(wr*wr+mr*mr);Oa+=Or*(Xn+At)/2,ha+=Or*(un+Gt)/2,Vs+=Or,Or=un*At-Xn*Gt,Ya+=Or*(Xn+At),_n+=Or*(un+Gt),Vn+=Or*3,Ka(Xn=At,un=Gt)}function tn(At){this._context=At}tn.prototype={_radius:4.5,pointRadius:function(At){return this._radius=At,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(At,Gt){switch(this._point){case 0:{this._context.moveTo(At,Gt),this._point=1;break}case 1:{this._context.lineTo(At,Gt);break}default:{this._context.moveTo(At+this._radius,Gt),this._context.arc(At,Gt,this._radius,0,c);break}}},result:F};var Pa=r(),to,yo,Jo,Ao,Dn,_a={point:F,lineStart:function(){_a.point=Ws},lineEnd:function(){to&&Ca(yo,Jo),_a.point=F},polygonStart:function(){to=!0},polygonEnd:function(){to=null},result:function(){var At=+Pa;return Pa.reset(),At}};function Ws(At,Gt){_a.point=Ca,yo=Ao=At,Jo=Dn=Gt}function Ca(At,Gt){Ao-=At,Dn-=Gt,Pa.add(M(Ao*Ao+Dn*Dn)),Ao=At,Dn=Gt}function Es(){this._string=[]}Es.prototype={_radius:4.5,_circle:Ts(4.5),pointRadius:function(At){return(At=+At)!==this._radius&&(this._radius=At,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(At,Gt){switch(this._point){case 0:{this._string.push("M",At,",",Gt),this._point=1;break}case 1:{this._string.push("L",At,",",Gt);break}default:{this._circle==null&&(this._circle=Ts(this._radius)),this._string.push("M",At,",",Gt,this._circle);break}}},result:function(){if(this._string.length){var At=this._string.join("");return this._string=[],At}else return null}};function Ts(At){return"m0,"+At+"a"+At+","+At+" 0 1,1 0,"+-2*At+"a"+At+","+At+" 0 1,1 0,"+2*At+"z"}function Ho(At,Gt){var wr=4.5,mr,Or;function gi(Ti){return Ti&&(typeof wr=="function"&&Or.pointRadius(+wr.apply(this,arguments)),W(Ti,mr(Or))),Or.result()}return gi.area=function(Ti){return W(Ti,mr(vn)),vn.result()},gi.measure=function(Ti){return W(Ti,mr(_a)),_a.result()},gi.bounds=function(Ti){return W(Ti,mr(jn)),jn.result()},gi.centroid=function(Ti){return W(Ti,mr($n)),$n.result()},gi.projection=function(Ti){return arguments.length?(mr=Ti==null?(At=null,ao):(At=Ti).stream,gi):At},gi.context=function(Ti){return arguments.length?(Or=Ti==null?(Gt=null,new Es):new tn(Gt=Ti),typeof wr!="function"&&Or.pointRadius(wr),gi):Gt},gi.pointRadius=function(Ti){return arguments.length?(wr=typeof Ti=="function"?Ti:(Or.pointRadius(+Ti),+Ti),gi):wr},gi.projection(At).context(Gt)}function Wa(At){return{stream:To(At)}}function To(At){return function(Gt){var wr=new ts;for(var mr in At)wr[mr]=At[mr];return wr.stream=Gt,wr}}function ts(){}ts.prototype={constructor:ts,point:function(At,Gt){this.stream.point(At,Gt)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Wo(At,Gt,wr){var mr=At.clipExtent&&At.clipExtent();return At.scale(150).translate([0,0]),mr!=null&&At.clipExtent(null),W(wr,At.stream(jn)),Gt(jn.result()),mr!=null&&At.clipExtent(mr),At}function qa(At,Gt,wr){return Wo(At,function(mr){var Or=Gt[1][0]-Gt[0][0],gi=Gt[1][1]-Gt[0][1],Ti=Math.min(Or/(mr[1][0]-mr[0][0]),gi/(mr[1][1]-mr[0][1])),ki=+Gt[0][0]+(Or-Ti*(mr[1][0]+mr[0][0]))/2,Ji=+Gt[0][1]+(gi-Ti*(mr[1][1]+mr[0][1]))/2;At.scale(150*Ti).translate([ki,Ji])},wr)}function ln(At,Gt,wr){return qa(At,[[0,0],Gt],wr)}function Bo(At,Gt,wr){return Wo(At,function(mr){var Or=+Gt,gi=Or/(mr[1][0]-mr[0][0]),Ti=(Or-gi*(mr[1][0]+mr[0][0]))/2,ki=-gi*mr[0][1];At.scale(150*gi).translate([Ti,ki])},wr)}function ko(At,Gt,wr){return Wo(At,function(mr){var Or=+Gt,gi=Or/(mr[1][1]-mr[0][1]),Ti=-gi*mr[0][0],ki=(Or-gi*(mr[1][1]+mr[0][1]))/2;At.scale(150*gi).translate([Ti,ki])},wr)}var oo=16,za=v(30*d);function ea(At,Gt){return+Gt?$s(At,Gt):rs(At)}function rs(At){return To({point:function(Gt,wr){Gt=At(Gt,wr),this.stream.point(Gt[0],Gt[1])}})}function $s(At,Gt){function wr(mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya){var ia=Fn-mr,pa=Pi-Or,va=ia*ia+pa*pa;if(va>4*Gt&&ta--){var zn=Ti+Li,is=ki+Si,Cs=Ji+Gn,Ks=M(zn*zn+is*is+Cs*Cs),dl=A(Cs/=Ks),xl=p(p(Cs)-1)Gt||p((ia*Zl+pa*Vl)/va-.5)>.3||Ti*Li+ki*Si+Ji*Gn2?ja[2]%360*d:0,Zl()):[ki*h,Ji*h,Fn*h]},bl.angle=function(ja){return arguments.length?(hi=ja%360*d,Zl()):hi*h},bl.reflectX=function(ja){return arguments.length?(Li=ja?-1:1,Zl()):Li<0},bl.reflectY=function(ja){return arguments.length?(Si=ja?-1:1,Zl()):Si<0},bl.precision=function(ja){return arguments.length?(Cs=ea(Ks,is=ja*ja),Vl()):M(is)},bl.fitExtent=function(ja,ns){return qa(bl,ja,ns)},bl.fitSize=function(ja,ns){return ln(bl,ja,ns)},bl.fitWidth=function(ja,ns){return Bo(bl,ja,ns)},bl.fitHeight=function(ja,ns){return ko(bl,ja,ns)};function Zl(){var ja=as(wr,0,0,Li,Si,hi).apply(null,Gt(gi,Ti)),ns=(hi?as:fl)(wr,mr-ja[0],Or-ja[1],Li,Si,hi);return Pi=Gr(ki,Ji,Fn),Ks=Ur(Gt,ns),dl=Ur(Pi,Ks),Cs=ea(Ks,is),Vl()}function Vl(){return xl=Ol=null,bl}return function(){return Gt=At.apply(this,arguments),bl.invert=Gt.invert&&eu,Zl()}}function ho(At){var Gt=0,wr=u/3,mr=Qs(At),Or=mr(Gt,wr);return Or.parallels=function(gi){return arguments.length?mr(Gt=gi[0]*d,wr=gi[1]*d):[Gt*h,wr*h]},Or}function gs(At){var Gt=v(At);function wr(mr,Or){return[mr*Gt,_(Or)/Gt]}return wr.invert=function(mr,Or){return[mr/Gt,A(Or*Gt)]},wr}function Vo(At,Gt){var wr=_(At),mr=(wr+_(Gt))/2;if(p(mr)=.12&&ya<.234&&ta>=-.425&&ta<-.214?Or:ya>=.166&&ya<.234&&ta>=-.214&&ta<-.115?Ti:wr).invert(Li)},Pi.stream=function(Li){return At&&Gt===Li?At:At=xs([wr.stream(Gt=Li),Or.stream(Li),Ti.stream(Li)])},Pi.precision=function(Li){return arguments.length?(wr.precision(Li),Or.precision(Li),Ti.precision(Li),hi()):wr.precision()},Pi.scale=function(Li){return arguments.length?(wr.scale(Li),Or.scale(Li*.35),Ti.scale(Li),Pi.translate(wr.translate())):wr.scale()},Pi.translate=function(Li){if(!arguments.length)return wr.translate();var Si=wr.scale(),Gn=+Li[0],ta=+Li[1];return mr=wr.translate(Li).clipExtent([[Gn-.455*Si,ta-.238*Si],[Gn+.455*Si,ta+.238*Si]]).stream(Fn),gi=Or.translate([Gn-.307*Si,ta+.201*Si]).clipExtent([[Gn-.425*Si+o,ta+.12*Si+o],[Gn-.214*Si-o,ta+.234*Si-o]]).stream(Fn),ki=Ti.translate([Gn-.205*Si,ta+.212*Si]).clipExtent([[Gn-.214*Si+o,ta+.166*Si+o],[Gn-.115*Si-o,ta+.234*Si-o]]).stream(Fn),hi()},Pi.fitExtent=function(Li,Si){return qa(Pi,Li,Si)},Pi.fitSize=function(Li,Si){return ln(Pi,Li,Si)},Pi.fitWidth=function(Li,Si){return Bo(Pi,Li,Si)},Pi.fitHeight=function(Li,Si){return ko(Pi,Li,Si)};function hi(){return At=Gt=null,Pi}return Pi.scale(1070)}function Ea(At){return function(Gt,wr){var mr=v(Gt),Or=v(wr),gi=At(mr*Or);return[gi*Or*_(Gt),gi*_(wr)]}}function Jn(At){return function(Gt,wr){var mr=M(Gt*Gt+wr*wr),Or=At(mr),gi=_(Or),Ti=v(Or);return[b(Gt*gi,mr*Ti),A(mr&&wr*gi/mr)]}}var Oo=Ea(function(At){return M(2/(1+At))});Oo.invert=Jn(function(At){return 2*A(At/2)});function rl(){return Ma(Oo).scale(124.75).clipAngle(180-.001)}var Gs=Ea(function(At){return(At=P(At))&&At/_(At)});Gs.invert=Jn(function(At){return At});function bs(){return Ma(Gs).scale(79.4188).clipAngle(180-.001)}function zs(At,Gt){return[At,T(m((l+Gt)/2))]}zs.invert=function(At,Gt){return[At,2*x(E(Gt))-l]};function $o(){return Aa(zs).scale(961/c)}function Aa(At){var Gt=Ma(At),wr=Gt.center,mr=Gt.scale,Or=Gt.translate,gi=Gt.clipExtent,Ti=null,ki,Ji,Fn;Gt.scale=function(hi){return arguments.length?(mr(hi),Pi()):mr()},Gt.translate=function(hi){return arguments.length?(Or(hi),Pi()):Or()},Gt.center=function(hi){return arguments.length?(wr(hi),Pi()):wr()},Gt.clipExtent=function(hi){return arguments.length?(hi==null?Ti=ki=Ji=Fn=null:(Ti=+hi[0][0],ki=+hi[0][1],Ji=+hi[1][0],Fn=+hi[1][1]),Pi()):Ti==null?null:[[Ti,ki],[Ji,Fn]]};function Pi(){var hi=u*mr(),Li=Gt(Vi(Gt.rotate()).invert([0,0]));return gi(Ti==null?[[Li[0]-hi,Li[1]-hi],[Li[0]+hi,Li[1]+hi]]:At===zs?[[Math.max(Li[0]-hi,Ti),ki],[Math.min(Li[0]+hi,Ji),Fn]]:[[Ti,Math.max(Li[1]-hi,ki)],[Ji,Math.min(Li[1]+hi,Fn)]])}return Pi()}function os(At){return m((l+At)/2)}function _l(At,Gt){var wr=v(At),mr=At===Gt?_(At):T(wr/v(Gt))/T(os(Gt)/os(At)),Or=wr*L(os(At),mr)/mr;if(!mr)return zs;function gi(Ti,ki){Or>0?ki<-l+o&&(ki=-l+o):ki>l-o&&(ki=l-o);var Ji=Or/L(os(ki),mr);return[Ji*_(mr*Ti),Or-Ji*v(mr*Ti)]}return gi.invert=function(Ti,ki){var Ji=Or-ki,Fn=C(mr)*M(Ti*Ti+Ji*Ji),Pi=b(Ti,p(Ji))*C(Ji);return Ji*mr<0&&(Pi-=u*C(Ti)*C(Ji)),[Pi/mr,2*x(L(Or/Fn,1/mr))-l]},gi}function Ss(){return ho(_l).scale(109.5).parallels([30,30])}function po(At,Gt){return[At,Gt]}po.invert=po;function go(){return Ma(po).scale(152.63)}function ss(At,Gt){var wr=v(At),mr=At===Gt?_(At):(wr-v(Gt))/(Gt-At),Or=wr/mr+At;if(p(mr)o&&--mr>0);return[At/(.8707+(gi=wr*wr)*(-.131979+gi*(-.013791+gi*gi*gi*(.003971-.001529*gi)))),wr]};function hl(){return Ma(Fs).scale(175.295)}function Fa(At,Gt){return[v(Gt)*_(At),_(Gt)]}Fa.invert=Jn(A);function Ms(){return Ma(Fa).scale(249.5).clipAngle(90+o)}function jo(At,Gt){var wr=v(Gt),mr=1+v(At)*wr;return[wr*_(At)/mr,_(Gt)/mr]}jo.invert=Jn(function(At){return 2*x(At)});function Rs(){return Ma(jo).scale(250).clipAngle(142)}function Is(At,Gt){return[T(m((l+Gt)/2)),-At]}Is.invert=function(At,Gt){return[-Gt,2*x(E(At))-l]};function Bs(){var At=Aa(Is),Gt=At.center,wr=At.rotate;return At.center=function(mr){return arguments.length?Gt([-mr[1],mr[0]]):(mr=Gt(),[mr[1],-mr[0]])},At.rotate=function(mr){return arguments.length?wr([mr[0],mr[1],mr.length>2?mr[2]+90:90]):(mr=wr(),[mr[0],mr[1],mr[2]-90])},wr([0,0,90]).scale(159.155)}e.geoAlbers=Lo,e.geoAlbersUsa=ks,e.geoArea=ye,e.geoAzimuthalEqualArea=rl,e.geoAzimuthalEqualAreaRaw=Oo,e.geoAzimuthalEquidistant=bs,e.geoAzimuthalEquidistantRaw=Gs,e.geoBounds=xe,e.geoCentroid=_r,e.geoCircle=Yr,e.geoClipAntimeridian=pr,e.geoClipCircle=Qi,e.geoClipExtent=Un,e.geoClipRectangle=Mn,e.geoConicConformal=Ss,e.geoConicConformalRaw=_l,e.geoConicEqualArea=Do,e.geoConicEqualAreaRaw=Vo,e.geoConicEquidistant=qo,e.geoConicEquidistantRaw=ss,e.geoContains=Po,e.geoDistance=uo,e.geoEqualEarth=el,e.geoEqualEarthRaw=cl,e.geoEquirectangular=go,e.geoEquirectangularRaw=po,e.geoGnomonic=Ro,e.geoGnomonicRaw=Hs,e.geoGraticule=Ps,e.geoGraticule10=Ha,e.geoIdentity=tl,e.geoInterpolate=Sn,e.geoLength=kn,e.geoMercator=$o,e.geoMercatorRaw=zs,e.geoNaturalEarth1=hl,e.geoNaturalEarth1Raw=Fs,e.geoOrthographic=Ms,e.geoOrthographicRaw=Fa,e.geoPath=Ho,e.geoProjection=Ma,e.geoProjectionMutator=Qs,e.geoRotation=Vi,e.geoStereographic=Rs,e.geoStereographicRaw=jo,e.geoStream=W,e.geoTransform=Wa,e.geoTransverseMercator=Bs,e.geoTransverseMercatorRaw=Is,Object.defineProperty(e,"__esModule",{value:!0})})});var E6e=Te((kF,M6e)=>{(function(e,t){typeof kF=="object"&&typeof M6e!="undefined"?t(kF,NZ(),ik()):t(e.d3=e.d3||{},e.d3,e.d3)})(kF,function(e,t,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,u=Math.floor,l=Math.log,f=Math.max,c=Math.min,h=Math.pow,d=Math.round,p=Math.sign||function(he){return he>0?1:he<0?-1:0},x=Math.sin,b=Math.tan,v=1e-6,k=1e-12,E=Math.PI,T=E/2,L=E/4,_=Math.SQRT1_2,C=G(2),M=G(E),m=E*2,P=180/E,A=E/180;function B(he){return he?he/Math.sin(he):1}function F(he){return he>1?T:he<-1?-T:Math.asin(he)}function U(he){return he>1?0:he<-1?E:Math.acos(he)}function G(he){return he>0?Math.sqrt(he):0}function j(he){return he=s(2*he),(he-1)/(he+1)}function H(he){return(s(he)-s(-he))/2}function N(he){return(s(he)+s(-he))/2}function W(he){return l(he+G(he*he+1))}function re(he){return l(he+G(he*he-1))}function ae(he){var Se=b(he/2),qe=2*l(o(he/2))/(Se*Se);function He(lt,tt){var pt=o(lt),Ht=o(tt),nr=x(tt),fr=Ht*pt,Ar=-((1-fr?l((1+fr)/2)/(1-fr):-.5)+qe/(1+fr));return[Ar*Ht*x(lt),Ar*nr]}return He.invert=function(lt,tt){var pt=G(lt*lt+tt*tt),Ht=-he/2,nr=50,fr;if(!pt)return[0,0];do{var Ar=Ht/2,Rr=o(Ar),ri=x(Ar),si=ri/Rr,Mi=-l(n(Rr));Ht-=fr=(2/si*Mi-qe*si-pt)/(-Mi/(ri*ri)+1-qe/(2*Rr*Rr))*(Rr<0?.7:1)}while(n(fr)>v&&--nr>0);var hn=x(Ht);return[a(lt*hn,pt*o(Ht)),F(tt*hn/pt)]},He}function be(){var he=T,Se=t.geoProjectionMutator(ae),qe=Se(he);return qe.radius=function(He){return arguments.length?Se(he=He*A):he*P},qe.scale(179.976).clipAngle(147)}function Pe(he,Se){var qe=o(Se),He=B(U(qe*o(he/=2)));return[2*qe*x(he)*He,x(Se)*He]}Pe.invert=function(he,Se){if(!(he*he+4*Se*Se>E*E+v)){var qe=he,He=Se,lt=25;do{var tt=x(qe),pt=x(qe/2),Ht=o(qe/2),nr=x(He),fr=o(He),Ar=x(2*He),Rr=nr*nr,ri=fr*fr,si=pt*pt,Mi=1-ri*Ht*Ht,hn=Mi?U(fr*Ht)*G(Zn=1/Mi):Zn=0,Zn,Yn=2*hn*fr*pt-he,Ua=hn*nr-Se,Fo=Zn*(ri*si+hn*fr*Ht*Rr),vl=Zn*(.5*tt*Ar-hn*2*nr*pt),Us=Zn*.25*(Ar*pt-hn*nr*ri*tt),ml=Zn*(Rr*Ht+hn*si*fr),au=vl*Us-ml*Fo;if(!au)break;var Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,He-=Yl}while((n(Sl)>v||n(Yl)>v)&&--lt>0);return[qe,He]}};function Ce(){return t.geoProjection(Pe).scale(152.63)}function de(he){var Se=x(he),qe=o(he),He=he>=0?1:-1,lt=b(He*he),tt=(1+Se-qe)/2;function pt(Ht,nr){var fr=o(nr),Ar=o(Ht/=2);return[(1+fr)*x(Ht),(He*nr>-a(Ar,lt)-.001?0:-He*10)+tt+x(nr)*qe-(1+fr)*Se*Ar]}return pt.invert=function(Ht,nr){var fr=0,Ar=0,Rr=50;do{var ri=o(fr),si=x(fr),Mi=o(Ar),hn=x(Ar),Zn=1+Mi,Yn=Zn*si-Ht,Ua=tt+hn*qe-Zn*Se*ri-nr,Fo=Zn*ri/2,vl=-si*hn,Us=Se*Zn*si/2,ml=qe*Mi+Se*ri*hn,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au/2,Yl=(Yn*Us-Ua*Fo)/au;n(Yl)>2&&(Yl/=2),fr-=Sl,Ar-=Yl}while((n(Sl)>v||n(Yl)>v)&&--Rr>0);return He*Ar>-a(o(fr),lt)-.001?[fr*2,Ar]:null},pt}function te(){var he=20*A,Se=he>=0?1:-1,qe=b(Se*he),He=t.geoProjectionMutator(de),lt=He(he),tt=lt.stream;return lt.parallel=function(pt){return arguments.length?(qe=b((Se=(he=pt*A)>=0?1:-1)*he),He(he)):he*P},lt.stream=function(pt){var Ht=lt.rotate(),nr=tt(pt),fr=(lt.rotate([0,0]),tt(pt)),Ar=lt.precision();return lt.rotate(Ht),nr.sphere=function(){fr.polygonStart(),fr.lineStart();for(var Rr=Se*-180;Se*Rr<180;Rr+=Se*90)fr.point(Rr,Se*90);if(he)for(;Se*(Rr-=3*Se*Ar)>=-180;)fr.point(Rr,Se*-a(o(Rr*A/2),qe)*P);fr.lineEnd(),fr.polygonEnd()},nr},lt.scale(218.695).center([0,28.0974])}function ke(he,Se){var qe=b(Se/2),He=G(1-qe*qe),lt=1+He*o(he/=2),tt=x(he)*He/lt,pt=qe/lt,Ht=tt*tt,nr=pt*pt;return[4/3*tt*(3+Ht-3*nr),4/3*pt*(3+3*Ht-nr)]}ke.invert=function(he,Se){if(he*=3/8,Se*=3/8,!he&&n(Se)>1)return null;var qe=he*he,He=Se*Se,lt=1+qe+He,tt=G((lt-G(lt*lt-4*Se*Se))/2),pt=F(tt)/3,Ht=tt?re(n(Se/tt))/3:W(n(he))/3,nr=o(pt),fr=N(Ht),Ar=fr*fr-nr*nr;return[p(he)*2*a(H(Ht)*nr,.25-Ar),p(Se)*2*a(fr*x(pt),.25+Ar)]};function Ee(){return t.geoProjection(ke).scale(66.1603)}var Me=G(8),Ne=l(1+C);function Fe(he,Se){var qe=n(Se);return qek&&--He>0);return[he/(o(qe)*(Me-1/x(qe))),p(Se)*qe]};function ye(){return t.geoProjection(Fe).scale(112.314)}function Ve(he){var Se=2*E/he;function qe(He,lt){var tt=t.geoAzimuthalEquidistantRaw(He,lt);if(n(He)>T){var pt=a(tt[1],tt[0]),Ht=G(tt[0]*tt[0]+tt[1]*tt[1]),nr=Se*d((pt-T)/Se)+T,fr=a(x(pt-=nr),2-o(pt));pt=nr+F(E/Ht*x(fr))-fr,tt[0]=Ht*o(pt),tt[1]=Ht*x(pt)}return tt}return qe.invert=function(He,lt){var tt=G(He*He+lt*lt);if(tt>T){var pt=a(lt,He),Ht=Se*d((pt-T)/Se)+T,nr=pt>Ht?-1:1,fr=tt*o(Ht-pt),Ar=1/b(nr*U((fr-E)/G(E*(E-2*fr)+tt*tt)));pt=Ht+2*i((Ar+nr*G(Ar*Ar-3))/3),He=tt*o(pt),lt=tt*x(pt)}return t.geoAzimuthalEquidistantRaw.invert(He,lt)},qe}function ce(){var he=5,Se=t.geoProjectionMutator(Ve),qe=Se(he),He=qe.stream,lt=.01,tt=-o(lt*A),pt=x(lt*A);return qe.lobes=function(Ht){return arguments.length?Se(he=+Ht):he},qe.stream=function(Ht){var nr=qe.rotate(),fr=He(Ht),Ar=(qe.rotate([0,0]),He(Ht));return qe.rotate(nr),fr.sphere=function(){Ar.polygonStart(),Ar.lineStart();for(var Rr=0,ri=360/he,si=2*E/he,Mi=90-180/he,hn=T;Rr0&&n(lt)>v);return He<0?NaN:qe}function it(he,Se,qe){return Se===void 0&&(Se=40),qe===void 0&&(qe=k),function(He,lt,tt,pt){var Ht,nr,fr;tt=tt===void 0?0:+tt,pt=pt===void 0?0:+pt;for(var Ar=0;ArHt){tt-=nr/=2,pt-=fr/=2;continue}Ht=Mi;var hn=(tt>0?-1:1)*qe,Zn=(pt>0?-1:1)*qe,Yn=he(tt+hn,pt),Ua=he(tt,pt+Zn),Fo=(Yn[0]-Rr[0])/hn,vl=(Yn[1]-Rr[1])/hn,Us=(Ua[0]-Rr[0])/Zn,ml=(Ua[1]-Rr[1])/Zn,au=ml*Fo-vl*Us,Sl=(n(au)<.5?.5:1)/au;if(nr=(si*Us-ri*ml)*Sl,fr=(ri*vl-si*Fo)*Sl,tt+=nr,pt+=fr,n(nr)0&&(Ht[1]*=1+nr/1.5*Ht[0]*Ht[0]),Ht}return He.invert=it(He),He}function kt(){return t.geoProjection(Ke()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Tt(he,Se){var qe=he*x(Se),He=30,lt;do Se-=lt=(Se+x(Se)-qe)/(1+o(Se));while(n(lt)>v&&--He>0);return Se/2}function St(he,Se,qe){function He(lt,tt){return[he*lt*o(tt=Tt(qe,tt)),Se*x(tt)]}return He.invert=function(lt,tt){return tt=F(tt/Se),[lt/(he*o(tt)),F((2*tt+x(2*tt))/qe)]},He}var Dt=St(C/T,C,E);function Zt(){return t.geoProjection(Dt).scale(169.529)}var Et=2.00276,Ae=1.11072;function at(he,Se){var qe=Tt(E,Se);return[Et*he/(1/o(Se)+Ae/o(qe)),(Se+C*x(qe))/Et]}at.invert=function(he,Se){var qe=Et*Se,He=Se<0?-L:L,lt=25,tt,pt;do pt=qe-C*x(He),He-=tt=(x(2*He)+2*He-E*x(pt))/(2*o(2*He)+2+E*o(pt)*C*o(He));while(n(tt)>v&&--lt>0);return pt=qe-C*x(He),[he*(1/o(pt)+Ae/o(He))/Et,pt]};function wt(){return t.geoProjection(at).scale(160.857)}function vt(he){var Se=0,qe=t.geoProjectionMutator(he),He=qe(Se);return He.parallel=function(lt){return arguments.length?qe(Se=lt*A):Se*P},He}function st(he,Se){return[he*o(Se),Se]}st.invert=function(he,Se){return[he/o(Se),Se]};function Ue(){return t.geoProjection(st).scale(152.63)}function rt(he){if(!he)return st;var Se=1/b(he);function qe(He,lt){var tt=Se+he-lt,pt=tt&&He*o(lt)/tt;return[tt*x(pt),Se-tt*o(pt)]}return qe.invert=function(He,lt){var tt=G(He*He+(lt=Se-lt)*lt),pt=Se+he-tt;return[tt/o(pt)*a(He,lt),pt]},qe}function $e(){return vt(rt).scale(123.082).center([0,26.1441]).parallel(45)}function zt(he){function Se(qe,He){var lt=T-He,tt=lt&&qe*he*x(lt)/lt;return[lt*x(tt)/he,T-lt*o(tt)]}return Se.invert=function(qe,He){var lt=qe*he,tt=T-He,pt=G(lt*lt+tt*tt),Ht=a(lt,tt);return[(pt?pt/x(pt):1)*Ht/he,T-pt]},Se}function Yt(){var he=.5,Se=t.geoProjectionMutator(zt),qe=Se(he);return qe.fraction=function(He){return arguments.length?Se(he=+He):he},qe.scale(158.837)}var hr=St(1,4/E,E);function yr(){return t.geoProjection(hr).scale(152.63)}function br(he,Se,qe,He,lt,tt){var pt=o(tt),Ht;if(n(he)>1||n(tt)>1)Ht=U(qe*lt+Se*He*pt);else{var nr=x(he/2),fr=x(tt/2);Ht=2*F(G(nr*nr+Se*He*fr*fr))}return n(Ht)>v?[Ht,a(He*x(tt),Se*lt-qe*He*pt)]:[0,0]}function Ut(he,Se,qe){return U((he*he+Se*Se-qe*qe)/(2*he*Se))}function Ie(he){return he-2*E*u((he+E)/(2*E))}function xe(he,Se,qe){for(var He=[[he[0],he[1],x(he[1]),o(he[1])],[Se[0],Se[1],x(Se[1]),o(Se[1])],[qe[0],qe[1],x(qe[1]),o(qe[1])]],lt=He[2],tt,pt=0;pt<3;++pt,lt=tt)tt=He[pt],lt.v=br(tt[1]-lt[1],lt[3],lt[2],tt[3],tt[2],tt[0]-lt[0]),lt.point=[0,0];var Ht=Ut(He[0].v[0],He[2].v[0],He[1].v[0]),nr=Ut(He[0].v[0],He[1].v[0],He[2].v[0]),fr=E-Ht;He[2].point[1]=0,He[0].point[0]=-(He[1].point[0]=He[0].v[0]/2);var Ar=[He[2].point[0]=He[0].point[0]+He[2].v[0]*o(Ht),2*(He[0].point[1]=He[1].point[1]=He[2].v[0]*x(Ht))];function Rr(ri,si){var Mi=x(si),hn=o(si),Zn=new Array(3),Yn;for(Yn=0;Yn<3;++Yn){var Ua=He[Yn];if(Zn[Yn]=br(si-Ua[1],Ua[3],Ua[2],hn,Mi,ri-Ua[0]),!Zn[Yn][0])return Ua.point;Zn[Yn][1]=Ie(Zn[Yn][1]-Ua.v[1])}var Fo=Ar.slice();for(Yn=0;Yn<3;++Yn){var vl=Yn==2?0:Yn+1,Us=Ut(He[Yn].v[0],Zn[Yn][0],Zn[vl][0]);Zn[Yn][1]<0&&(Us=-Us),Yn?Yn==1?(Us=nr-Us,Fo[0]-=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*x(Us)):(Us=fr-Us,Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]+=Zn[Yn][0]*x(Us)):(Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*x(Us))}return Fo[0]/=3,Fo[1]/=3,Fo}return Rr}function Oe(he){return he[0]*=A,he[1]*=A,he}function Re(){return De([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function De(he,Se,qe){var He=t.geoCentroid({type:"MultiPoint",coordinates:[he,Se,qe]}),lt=[-He[0],-He[1]],tt=t.geoRotation(lt),pt=xe(Oe(tt(he)),Oe(tt(Se)),Oe(tt(qe)));pt.invert=it(pt);var Ht=t.geoProjection(pt).rotate(lt),nr=Ht.center;return delete Ht.rotate,Ht.center=function(fr){return arguments.length?nr(tt(fr)):tt.invert(nr())},Ht.clipAngle(90)}function ct(he,Se){var qe=G(1-x(Se));return[2/M*he*qe,M*(1-qe)]}ct.invert=function(he,Se){var qe=(qe=Se/M-1)*qe;return[qe>0?he*G(E/qe)/2:0,F(1-qe)]};function ge(){return t.geoProjection(ct).scale(95.6464).center([0,30])}function fe(he){var Se=b(he);function qe(He,lt){return[He,(He?He/x(He):1)*(x(lt)*o(He)-Se*o(lt))]}return qe.invert=Se?function(He,lt){He&&(lt*=x(He)/He);var tt=o(He);return[He,2*a(G(tt*tt+Se*Se-lt*lt)-tt,Se-lt)]}:function(He,lt){return[He,F(He?lt*b(He)/He:lt)]},qe}function pe(){return vt(fe).scale(249.828).clipAngle(90)}var dt=G(3);function It(he,Se){return[dt*he*(2*o(2*Se/3)-1)/M,dt*M*x(Se/3)]}It.invert=function(he,Se){var qe=3*F(Se/(dt*M));return[M*he/(dt*(2*o(2*qe/3)-1)),qe]};function Pt(){return t.geoProjection(It).scale(156.19)}function rr(he){var Se=o(he);function qe(He,lt){return[He*Se,x(lt)/Se]}return qe.invert=function(He,lt){return[He/Se,F(lt*Se)]},qe}function Hr(){return vt(rr).parallel(38.58).scale(195.044)}function Dr(he){var Se=o(he);function qe(He,lt){return[He*Se,(1+Se)*b(lt/2)]}return qe.invert=function(He,lt){return[He/Se,i(lt/(1+Se))*2]},qe}function Mr(){return vt(Dr).scale(124.75)}function Fr(he,Se){var qe=G(8/(3*E));return[qe*he*(1-n(Se)/E),qe*Se]}Fr.invert=function(he,Se){var qe=G(8/(3*E)),He=Se/qe;return[he/(qe*(1-n(He)/E)),He]};function di(){return t.geoProjection(Fr).scale(165.664)}function Di(he,Se){var qe=G(4-3*x(n(Se)));return[2/G(6*E)*he*qe,p(Se)*G(2*E/3)*(2-qe)]}Di.invert=function(he,Se){var qe=2-n(Se)/G(2*E/3);return[he*G(6*E)/(2*qe),p(Se)*F((4-qe*qe)/3)]};function Ii(){return t.geoProjection(Di).scale(165.664)}function Ci(he,Se){var qe=G(E*(4+E));return[2/qe*he*(1+G(1-4*Se*Se/(E*E))),4/qe*Se]}Ci.invert=function(he,Se){var qe=G(E*(4+E))/2;return[he*qe/(1+G(1-Se*Se*(4+E)/(4*E))),Se*qe/2]};function nn(){return t.geoProjection(Ci).scale(180.739)}function ii(he,Se){var qe=(2+T)*x(Se);Se/=2;for(var He=0,lt=1/0;He<10&&n(lt)>v;He++){var tt=o(Se);Se-=lt=(Se+x(Se)*(tt+2)-qe)/(2*tt*(1+tt))}return[2/G(E*(4+E))*he*(1+o(Se)),2*G(E/(4+E))*x(Se)]}ii.invert=function(he,Se){var qe=Se*G((4+E)/E)/2,He=F(qe),lt=o(He);return[he/(2/G(E*(4+E))*(1+lt)),F((He+qe*(lt+2))/(2+T))]};function wi(){return t.geoProjection(ii).scale(180.739)}function Gi(he,Se){return[he*(1+o(Se))/G(2+E),2*Se/G(2+E)]}Gi.invert=function(he,Se){var qe=G(2+E),He=Se*qe/2;return[qe*he/(1+o(He)),He]};function Bt(){return t.geoProjection(Gi).scale(173.044)}function yt(he,Se){for(var qe=(1+T)*x(Se),He=0,lt=1/0;He<10&&n(lt)>v;He++)Se-=lt=(Se+x(Se)-qe)/(1+o(Se));return qe=G(2+E),[he*(1+o(Se))/qe,2*Se/qe]}yt.invert=function(he,Se){var qe=1+T,He=G(qe/2);return[he*2*He/(1+o(Se*=He)),F((Se+x(Se))/qe)]};function Vt(){return t.geoProjection(yt).scale(173.044)}var Wt=3+2*C;function _r(he,Se){var qe=x(he/=2),He=o(he),lt=G(o(Se)),tt=o(Se/=2),pt=x(Se)/(tt+C*He*lt),Ht=G(2/(1+pt*pt)),nr=G((C*tt+(He+qe)*lt)/(C*tt+(He-qe)*lt));return[Wt*(Ht*(nr-1/nr)-2*l(nr)),Wt*(Ht*pt*(nr+1/nr)-2*i(pt))]}_r.invert=function(he,Se){if(!(tt=ke.invert(he/1.2,Se*1.065)))return null;var qe=tt[0],He=tt[1],lt=20,tt;he/=Wt,Se/=Wt;do{var pt=qe/2,Ht=He/2,nr=x(pt),fr=o(pt),Ar=x(Ht),Rr=o(Ht),ri=o(He),si=G(ri),Mi=Ar/(Rr+C*fr*si),hn=Mi*Mi,Zn=G(2/(1+hn)),Yn=C*Rr+(fr+nr)*si,Ua=C*Rr+(fr-nr)*si,Fo=Yn/Ua,vl=G(Fo),Us=vl-1/vl,ml=vl+1/vl,au=Zn*Us-2*l(vl)-he,Sl=Zn*Mi*ml-2*i(Mi)-Se,Yl=Ar&&_*si*nr*hn/Ar,ql=(C*fr*Rr+si)/(2*(Rr+C*fr*si)*(Rr+C*fr*si)*si),ou=-.5*Mi*Zn*Zn*Zn,Pu=ou*Yl,iu=ou*ql,tu=(tu=2*Rr+C*si*(fr-nr))*tu*vl,Wu=(C*fr*Rr*si+ri)/tu,Qu=-(C*nr*Ar)/(si*tu),Ju=Us*Pu-2*Wu/vl+Zn*(Wu+Wu/Fo),ju=Us*iu-2*Qu/vl+Zn*(Qu+Qu/Fo),Xu=Mi*ml*Pu-2*Yl/(1+hn)+Zn*ml*Yl+Zn*Mi*(Wu-Wu/Fo),lf=Mi*ml*iu-2*ql/(1+hn)+Zn*ml*ql+Zn*Mi*(Qu-Qu/Fo),xf=ju*Xu-lf*Ju;if(!xf)break;var ef=(Sl*ju-au*lf)/xf,tf=(au*Xu-Sl*Ju)/xf;qe-=ef,He=f(-T,c(T,He-tf))}while((n(ef)>v||n(tf)>v)&&--lt>0);return n(n(He)-T)He){var Rr=G(Ar),ri=a(fr,nr),si=qe*d(ri/qe),Mi=ri-si,hn=he*o(Mi),Zn=(he*x(Mi)-Mi*x(hn))/(T-hn),Yn=Bi(Mi,Zn),Ua=(E-he)/an(Yn,hn,E);nr=Rr;var Fo=50,vl;do nr-=vl=(he+an(Yn,hn,nr)*Ua-Rr)/(Yn(nr)*Ua);while(n(vl)>v&&--Fo>0);fr=Mi*x(nr),nrHe){var nr=G(Ht),fr=a(pt,tt),Ar=qe*d(fr/qe),Rr=fr-Ar;tt=nr*o(Rr),pt=nr*x(Rr);for(var ri=tt-T,si=x(tt),Mi=pt/si,hn=ttv||n(Mi)>v)&&--hn>0);return[Rr,ri]},nr}var Ri=Fi(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function xn(){return t.geoProjection(Ri).scale(149.995)}var xi=Fi(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Xr(){return t.geoProjection(xi).scale(153.93)}var ft=Fi(5/6*E,-.62636,-.0344,0,1.3493,-.05524,0,.045);function tr(){return t.geoProjection(ft).scale(130.945)}function pr(he,Se){var qe=he*he,He=Se*Se;return[he*(1-.162388*He)*(.87-952426e-9*qe*qe),Se*(1+He/12)]}pr.invert=function(he,Se){var qe=he,He=Se,lt=50,tt;do{var pt=He*He;He-=tt=(He*(1+pt/12)-Se)/(1+pt/4)}while(n(tt)>v&&--lt>0);lt=50,he/=1-.162388*pt;do{var Ht=(Ht=qe*qe)*Ht;qe-=tt=(qe*(.87-952426e-9*Ht)-he)/(.87-.00476213*Ht)}while(n(tt)>v&&--lt>0);return[qe,He]};function gr(){return t.geoProjection(pr).scale(131.747)}var Zr=Fi(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ai(){return t.geoProjection(Zr).scale(131.087)}function Qi(he){var Se=he(T,0)[0]-he(-T,0)[0];function qe(He,lt){var tt=He>0?-.5:.5,pt=he(He+tt*E,lt);return pt[0]-=tt*Se,pt}return he.invert&&(qe.invert=function(He,lt){var tt=He>0?-.5:.5,pt=he.invert(He+tt*Se,lt),Ht=pt[0]-tt*E;return Ht<-E?Ht+=2*E:Ht>E&&(Ht-=2*E),pt[0]=Ht,pt}),qe}function ni(he,Se){var qe=p(he),He=p(Se),lt=o(Se),tt=o(he)*lt,pt=x(he)*lt,Ht=x(He*Se);he=n(a(pt,Ht)),Se=F(tt),n(he-T)>v&&(he%=T);var nr=Zi(he>E/4?T-he:he,Se);return he>E/4&&(Ht=nr[0],nr[0]=-nr[1],nr[1]=-Ht),nr[0]*=qe,nr[1]*=-He,nr}ni.invert=function(he,Se){n(he)>1&&(he=p(he)*2-he),n(Se)>1&&(Se=p(Se)*2-Se);var qe=p(he),He=p(Se),lt=-qe*he,tt=-He*Se,pt=tt/lt<1,Ht=aa(pt?tt:lt,pt?lt:tt),nr=Ht[0],fr=Ht[1],Ar=o(fr);return pt&&(nr=-T-nr),[qe*(a(x(nr)*Ar,-x(fr))+E),He*F(o(nr)*Ar)]};function Zi(he,Se){if(Se===T)return[0,0];var qe=x(Se),He=qe*qe,lt=He*He,tt=1+lt,pt=1+3*lt,Ht=1-lt,nr=F(1/G(tt)),fr=Ht+He*tt*nr,Ar=(1-qe)/fr,Rr=G(Ar),ri=Ar*tt,si=G(ri),Mi=Rr*Ht,hn,Zn;if(he===0)return[0,-(Mi+He*si)];var Yn=o(Se),Ua=1/Yn,Fo=2*qe*Yn,vl=(-3*He+nr*pt)*Fo,Us=(-fr*Yn-(1-qe)*vl)/(fr*fr),ml=.5*Us/Rr,au=Ht*ml-2*He*Rr*Fo,Sl=He*tt*Us+Ar*pt*Fo,Yl=-Ua*Fo,ql=-Ua*Sl,ou=-2*Ua*au,Pu=4*he/E,iu;if(he>.222*E||Se.175*E){if(hn=(Mi+He*G(ri*(1+lt)-Mi*Mi))/(1+lt),he>E/4)return[hn,hn];var tu=hn,Wu=.5*hn;hn=.5*(Wu+tu),Zn=50;do{var Qu=G(ri-hn*hn),Ju=hn*(ou+Yl*Qu)+ql*F(hn/si)-Pu;if(!Ju)break;Ju<0?Wu=hn:tu=hn,hn=.5*(Wu+tu)}while(n(tu-Wu)>v&&--Zn>0)}else{hn=v,Zn=25;do{var ju=hn*hn,Xu=G(ri-ju),lf=ou+Yl*Xu,xf=hn*lf+ql*F(hn/si)-Pu,ef=lf+(ql-Yl*ju)/Xu;hn-=iu=Xu?xf/ef:0}while(n(iu)>v&&--Zn>0)}return[hn,-Mi-He*G(ri-hn*hn)]}function aa(he,Se){for(var qe=0,He=1,lt=.5,tt=50;;){var pt=lt*lt,Ht=G(lt),nr=F(1/G(1+pt)),fr=1-pt+lt*(1+pt)*nr,Ar=(1-Ht)/fr,Rr=G(Ar),ri=Ar*(1+pt),si=Rr*(1-pt),Mi=ri-he*he,hn=G(Mi),Zn=Se+si+lt*hn;if(n(He-qe)0?qe=lt:He=lt,lt=.5*(qe+He)}if(!tt)return null;var Yn=F(Ht),Ua=o(Yn),Fo=1/Ua,vl=2*Ht*Ua,Us=(-3*lt+nr*(1+3*pt))*vl,ml=(-fr*Ua-(1-Ht)*Us)/(fr*fr),au=.5*ml/Rr,Sl=(1-pt)*au-2*lt*Rr*vl,Yl=-2*Fo*Sl,ql=-Fo*vl,ou=-Fo*(lt*(1+pt)*ml+Ar*(1+3*pt)*vl);return[E/4*(he*(Yl+ql*hn)+ou*F(he/G(ri))),Yn]}function Mn(){return t.geoProjection(Qi(ni)).scale(239.75)}function Un(he,Se,qe){var He,lt,tt;return he?(He=Ga(he,qe),Se?(lt=Ga(Se,1-qe),tt=lt[1]*lt[1]+qe*He[0]*He[0]*lt[0]*lt[0],[[He[0]*lt[2]/tt,He[1]*He[2]*lt[0]*lt[1]/tt],[He[1]*lt[1]/tt,-He[0]*He[2]*lt[0]*lt[2]/tt],[He[2]*lt[1]*lt[2]/tt,-qe*He[0]*He[1]*lt[0]/tt]]):[[He[0],0],[He[1],0],[He[2],0]]):(lt=Ga(Se,1-qe),[[0,lt[0]/lt[1]],[1/lt[1],0],[lt[2]/lt[1],0]])}function Ga(he,Se){var qe,He,lt,tt,pt;if(Se=1-v)return qe=(1-Se)/4,He=N(he),tt=j(he),lt=1/He,pt=He*H(he),[tt+qe*(pt-he)/(He*He),lt-qe*tt*lt*(pt-he),lt+qe*tt*lt*(pt+he),2*i(s(he))-T+qe*(pt-he)/He];var Ht=[1,0,0,0,0,0,0,0,0],nr=[G(Se),0,0,0,0,0,0,0,0],fr=0;for(He=G(1-Se),pt=1;n(nr[fr]/Ht[fr])>v&&fr<8;)qe=Ht[fr++],nr[fr]=(qe-He)/2,Ht[fr]=(qe+He)/2,He=G(qe*He),pt*=2;lt=pt*Ht[fr]*he;do tt=nr[fr]*x(He=lt)/Ht[fr],lt=(F(tt)+lt)/2;while(--fr);return[x(lt),tt=o(lt),tt/o(lt-He),lt]}function ma(he,Se,qe){var He=n(he),lt=n(Se),tt=H(lt);if(He){var pt=1/x(He),Ht=1/(b(He)*b(He)),nr=-(Ht+qe*(tt*tt*pt*pt)-1+qe),fr=(qe-1)*Ht,Ar=(-nr+G(nr*nr-4*fr))/2;return[oa(i(1/G(Ar)),qe)*p(he),oa(i(G((Ar/Ht-1)/qe)),1-qe)*p(Se)]}return[0,oa(i(tt),1-qe)*p(Se)]}function oa(he,Se){if(!Se)return he;if(Se===1)return l(b(he/2+L));for(var qe=1,He=G(1-Se),lt=G(Se),tt=0;n(lt)>v;tt++){if(he%E){var pt=i(He*b(he)/qe);pt<0&&(pt+=E),he+=pt+~~(he/E)*E}else he+=he;lt=(qe+He)/2,He=G(qe*He),lt=((qe=lt)-He)/2}return he/(h(2,tt)*qe)}function ka(he,Se){var qe=(C-1)/(C+1),He=G(1-qe*qe),lt=oa(T,He*He),tt=-1,pt=l(b(E/4+n(Se)/2)),Ht=s(tt*pt)/G(qe),nr=so(Ht*o(tt*he),Ht*x(tt*he)),fr=ma(nr[0],nr[1],He*He);return[-fr[1],(Se>=0?1:-1)*(.5*lt-fr[0])]}function so(he,Se){var qe=he*he,He=Se+1,lt=1-qe-Se*Se;return[.5*((he>=0?T:-T)-a(lt,2*he)),-.25*l(lt*lt+4*qe)+.5*l(He*He+qe)]}function Kr(he,Se){var qe=Se[0]*Se[0]+Se[1]*Se[1];return[(he[0]*Se[0]+he[1]*Se[1])/qe,(he[1]*Se[0]-he[0]*Se[1])/qe]}ka.invert=function(he,Se){var qe=(C-1)/(C+1),He=G(1-qe*qe),lt=oa(T,He*He),tt=-1,pt=Un(.5*lt-Se,-he,He*He),Ht=Kr(pt[0],pt[1]),nr=a(Ht[1],Ht[0])/tt;return[nr,2*i(s(.5/tt*l(qe*Ht[0]*Ht[0]+qe*Ht[1]*Ht[1])))-T]};function Ia(){return t.geoProjection(Qi(ka)).scale(151.496)}function Yo(he){var Se=x(he),qe=o(he),He=fa(he);He.invert=fa(-he);function lt(tt,pt){var Ht=He(tt,pt);tt=Ht[0],pt=Ht[1];var nr=x(pt),fr=o(pt),Ar=o(tt),Rr=U(Se*nr+qe*fr*Ar),ri=x(Rr),si=n(ri)>v?Rr/ri:1;return[si*qe*x(tt),(n(tt)>T?si:-si)*(Se*fr-qe*nr*Ar)]}return lt.invert=function(tt,pt){var Ht=G(tt*tt+pt*pt),nr=-x(Ht),fr=o(Ht),Ar=Ht*fr,Rr=-pt*nr,ri=Ht*Se,si=G(Ar*Ar+Rr*Rr-ri*ri),Mi=a(Ar*ri+Rr*si,Rr*ri-Ar*si),hn=(Ht>T?-1:1)*a(tt*nr,Ht*o(Mi)*fr+pt*x(Mi)*nr);return He.invert(hn,Mi)},lt}function fa(he){var Se=x(he),qe=o(he);return function(He,lt){var tt=o(lt),pt=o(He)*tt,Ht=x(He)*tt,nr=x(lt);return[a(Ht,pt*qe-nr*Se),F(nr*qe+pt*Se)]}}function kn(){var he=0,Se=t.geoProjectionMutator(Yo),qe=Se(he),He=qe.rotate,lt=qe.stream,tt=t.geoCircle();return qe.parallel=function(pt){if(!arguments.length)return he*P;var Ht=qe.rotate();return Se(he=pt*A).rotate(Ht)},qe.rotate=function(pt){return arguments.length?(He.call(qe,[pt[0],pt[1]-he*P]),tt.center([-pt[0],-pt[1]]),qe):(pt=He.call(qe),pt[1]+=he*P,pt)},qe.stream=function(pt){return pt=lt(pt),pt.sphere=function(){pt.polygonStart();var Ht=.01,nr=tt.radius(90-Ht)().coordinates[0],fr=nr.length-1,Ar=-1,Rr;for(pt.lineStart();++Ar=0;)pt.point((Rr=nr[Ar])[0],Rr[1]);pt.lineEnd(),pt.polygonEnd()},pt},qe.scale(79.4187).parallel(45).clipAngle(180-.001)}var Ta=3,ys=F(1-1/Ta)*P,uo=rr(0);function ls(he){var Se=ys*A,qe=ct(E,Se)[0]-ct(-E,Se)[0],He=uo(0,Se)[1],lt=ct(0,Se)[1],tt=M-lt,pt=m/he,Ht=4/m,nr=He+tt*tt*4/m;function fr(Ar,Rr){var ri,si=n(Rr);if(si>Se){var Mi=c(he-1,f(0,u((Ar+E)/pt)));Ar+=E*(he-1)/he-Mi*pt,ri=ct(Ar,si),ri[0]=ri[0]*m/qe-m*(he-1)/(2*he)+Mi*m/he,ri[1]=He+(ri[1]-lt)*4*tt/m,Rr<0&&(ri[1]=-ri[1])}else ri=uo(Ar,Rr);return ri[0]*=Ht,ri[1]/=nr,ri}return fr.invert=function(Ar,Rr){Ar/=Ht,Rr*=nr;var ri=n(Rr);if(ri>He){var si=c(he-1,f(0,u((Ar+E)/pt)));Ar=(Ar+E*(he-1)/he-si*pt)*qe/m;var Mi=ct.invert(Ar,.25*(ri-He)*m/tt+lt);return Mi[0]-=E*(he-1)/he-si*pt,Rr<0&&(Mi[1]=-Mi[1]),Mi}return uo.invert(Ar,Rr)},fr}function $a(he,Se){return[he,Se&1?90-v:ys]}function fo(he,Se){return[he,Se&1?-90+v:-ys]}function mn(he){return[he[0]*(1-v),he[1]]}function ra(he){var Se=[].concat(r.range(-180,180+he/2,he).map($a),r.range(180,-180-he/2,-he).map(fo));return{type:"Polygon",coordinates:[he===180?Se.map(mn):Se]}}function wa(){var he=4,Se=t.geoProjectionMutator(ls),qe=Se(he),He=qe.stream;return qe.lobes=function(lt){return arguments.length?Se(he=+lt):he},qe.stream=function(lt){var tt=qe.rotate(),pt=He(lt),Ht=(qe.rotate([0,0]),He(lt));return qe.rotate(tt),pt.sphere=function(){t.geoStream(ra(180/he),Ht)},pt},qe.scale(239.75)}function ws(he){var Se=1+he,qe=x(1/Se),He=F(qe),lt=2*G(E/(tt=E+4*He*Se)),tt,pt=.5*lt*(Se+G(he*(2+he))),Ht=he*he,nr=Se*Se;function fr(Ar,Rr){var ri=1-x(Rr),si,Mi;if(ri&&ri<2){var hn=T-Rr,Zn=25,Yn;do{var Ua=x(hn),Fo=o(hn),vl=He+a(Ua,Se-Fo),Us=1+nr-2*Se*Fo;hn-=Yn=(hn-Ht*He-Se*Ua+Us*vl-.5*ri*tt)/(2*Se*Ua*vl)}while(n(Yn)>k&&--Zn>0);si=lt*G(Us),Mi=Ar*vl/E}else si=lt*(he+ri),Mi=Ar*He/E;return[si*x(Mi),pt-si*o(Mi)]}return fr.invert=function(Ar,Rr){var ri=Ar*Ar+(Rr-=pt)*Rr,si=(1+nr-ri/(lt*lt))/(2*Se),Mi=U(si),hn=x(Mi),Zn=He+a(hn,Se-si);return[F(Ar/G(ri))*E/Zn,F(1-2*(Mi-Ht*He-Se*hn+(1+nr-2*Se*si)*Zn)/tt)]},fr}function Co(){var he=1,Se=t.geoProjectionMutator(ws),qe=Se(he);return qe.ratio=function(He){return arguments.length?Se(he=+He):he},qe.scale(167.774).center([0,18.67])}var Po=.7109889596207567,ji=.0528035274542;function gn(he,Se){return Se>-Po?(he=Dt(he,Se),he[1]+=ji,he):st(he,Se)}gn.invert=function(he,Se){return Se>-Po?Dt.invert(he,Se-ji):st.invert(he,Se)};function Ps(){return t.geoProjection(gn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ha(he,Se){return n(Se)>Po?(he=Dt(he,Se),he[1]-=Se>0?ji:-ji,he):st(he,Se)}Ha.invert=function(he,Se){return n(Se)>Po?Dt.invert(he,Se+(Se>0?ji:-ji)):st.invert(he,Se)};function Sn(){return t.geoProjection(Ha).scale(152.63)}function ao(he,Se,qe,He){var lt=G(4*E/(2*qe+(1+he-Se/2)*x(2*qe)+(he+Se)/2*x(4*qe)+Se/2*x(6*qe))),tt=G(He*x(qe)*G((1+he*o(2*qe)+Se*o(4*qe))/(1+he+Se))),pt=qe*nr(1);function Ht(Rr){return G(1+he*o(2*Rr)+Se*o(4*Rr))}function nr(Rr){var ri=Rr*qe;return(2*ri+(1+he-Se/2)*x(2*ri)+(he+Se)/2*x(4*ri)+Se/2*x(6*ri))/qe}function fr(Rr){return Ht(Rr)*x(Rr)}var Ar=function(Rr,ri){var si=qe*Nt(nr,pt*x(ri)/qe,ri/E);isNaN(si)&&(si=qe*p(ri));var Mi=lt*Ht(si);return[Mi*tt*Rr/E*o(si),Mi/tt*x(si)]};return Ar.invert=function(Rr,ri){var si=Nt(fr,ri*tt/lt);return[Rr*E/(o(si)*lt*tt*Ht(si)),F(qe*nr(si/qe)/pt)]},qe===0&&(lt=G(He/E),Ar=function(Rr,ri){return[Rr*lt,x(ri)/lt]},Ar.invert=function(Rr,ri){return[Rr/lt,F(ri*lt)]}),Ar}function Ba(){var he=1,Se=0,qe=45*A,He=2,lt=t.geoProjectionMutator(ao),tt=lt(he,Se,qe,He);return tt.a=function(pt){return arguments.length?lt(he=+pt,Se,qe,He):he},tt.b=function(pt){return arguments.length?lt(he,Se=+pt,qe,He):Se},tt.psiMax=function(pt){return arguments.length?lt(he,Se,qe=+pt*A,He):qe*P},tt.ratio=function(pt){return arguments.length?lt(he,Se,qe,He=+pt):He},tt.scale(180.739)}function Ko(he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar){if(Ar.nanEncountered)return NaN;var Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl;if(Rr=qe-Se,ri=he(Se+Rr*.25),si=he(qe-Rr*.25),isNaN(ri)){Ar.nanEncountered=!0;return}if(isNaN(si)){Ar.nanEncountered=!0;return}return Mi=Rr*(He+4*ri+lt)/12,hn=Rr*(lt+4*si+tt)/12,Zn=Mi+hn,vl=(Zn-pt)/15,fr>nr?(Ar.maxDepthCount++,Zn+vl):Math.abs(vl)>1;do nr[Zn]>si?hn=Zn:Mi=Zn,Zn=Mi+hn>>1;while(Zn>Mi);var Yn=nr[Zn+1]-nr[Zn];return Yn&&(Yn=(si-nr[Zn+1])/Yn),(Zn+1+Yn)/pt}var Rr=2*Ar(1)/E*tt/qe,ri=function(si,Mi){var hn=Ar(n(x(Mi))),Zn=He(hn)*si;return hn/=Rr,[Zn,Mi>=0?hn:-hn]};return ri.invert=function(si,Mi){var hn;return Mi*=Rr,n(Mi)<1&&(hn=p(Mi)*F(lt(n(Mi))*tt)),[si/He(n(Mi)),hn]},ri}function Sa(){var he=0,Se=2.5,qe=1.183136,He=t.geoProjectionMutator(Wi),lt=He(he,Se,qe);return lt.alpha=function(tt){return arguments.length?He(he=+tt,Se,qe):he},lt.k=function(tt){return arguments.length?He(he,Se=+tt,qe):Se},lt.gamma=function(tt){return arguments.length?He(he,Se,qe=+tt):qe},lt.scale(152.63)}function Qa(he,Se){return n(he[0]-Se[0])=0;--nr)qe=he[1][nr],He=qe[0][0],lt=qe[0][1],tt=qe[1][1],pt=qe[2][0],Ht=qe[2][1],Se.push(vn([[pt-v,Ht-v],[pt-v,tt+v],[He+v,tt+v],[He+v,lt-v]],30));return{type:"Polygon",coordinates:[r.merge(Se)]}}function la(he,Se,qe){var He,lt;function tt(nr,fr){for(var Ar=fr<0?-1:1,Rr=Se[+(fr<0)],ri=0,si=Rr.length-1;riRr[ri][2][0];++ri);var Mi=he(nr-Rr[ri][1][0],fr);return Mi[0]+=he(Rr[ri][1][0],Ar*fr>Ar*Rr[ri][0][1]?Rr[ri][0][1]:fr)[0],Mi}qe?tt.invert=qe(tt):he.invert&&(tt.invert=function(nr,fr){for(var Ar=lt[+(fr<0)],Rr=Se[+(fr<0)],ri=0,si=Ar.length;riMi&&(hn=si,si=Mi,Mi=hn),[[Rr,si],[ri,Mi]]})}),pt):Se.map(function(fr){return fr.map(function(Ar){return[[Ar[0][0]*P,Ar[0][1]*P],[Ar[1][0]*P,Ar[1][1]*P],[Ar[2][0]*P,Ar[2][1]*P]]})})},Se!=null&&pt.lobes(Se),pt}var vo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function As(){return la(at,vo).scale(160.857)}var ps=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function co(){return la(Ha,ps).scale(152.63)}var mo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function No(){return la(Dt,mo).scale(169.529)}var jn=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Go(){return la(Dt,jn).scale(169.529).rotate([20,0])}var Ys=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function qs(){return la(gn,Ys,it).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ns=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Oa(){return la(st,Ns).scale(152.63).rotate([-20,0])}function ha(he,Se){return[3/m*he*G(E*E/3-Se*Se),Se]}ha.invert=function(he,Se){return[m/3*he/G(E*E/3-Se*Se),Se]};function Vs(){return t.geoProjection(ha).scale(158.837)}function Ya(he){function Se(qe,He){if(n(n(He)-T)2)return null;qe/=2,He/=2;var tt=qe*qe,pt=He*He,Ht=2*He/(1+tt+pt);return Ht=h((1+Ht)/(1-Ht),1/he),[a(2*qe,1-tt-pt)/he,F((Ht-1)/(Ht+1))]},Se}function _n(){var he=.5,Se=t.geoProjectionMutator(Ya),qe=Se(he);return qe.spacing=function(He){return arguments.length?Se(he=+He):he},qe.scale(124.75)}var Vn=E/C;function wo(he,Se){return[he*(1+G(o(Se)))/2,Se/(o(Se/2)*o(he/6))]}wo.invert=function(he,Se){var qe=n(he),He=n(Se),lt=v,tt=T;Hev||n(Zn)>v)&&--lt>0);return lt&&[qe,He]};function un(){return t.geoProjection(Xn).scale(139.98)}function $n(he,Se){return[x(he)/o(Se),b(Se)*o(he)]}$n.invert=function(he,Se){var qe=he*he,He=Se*Se,lt=He+1,tt=qe+lt,pt=he?_*G((tt-G(tt*tt-4*qe))/qe):1/G(lt);return[F(he*pt),p(Se)*U(pt)]};function Ka(){return t.geoProjection($n).scale(144.049).clipAngle(90-.001)}function qn(he){var Se=o(he),qe=b(L+he/2);function He(lt,tt){var pt=tt-he,Ht=n(pt)=0;)Ar=he[fr],Rr=Ar[0]+Ht*(si=Rr)-nr*ri,ri=Ar[1]+Ht*ri+nr*si;return Rr=Ht*(si=Rr)-nr*ri,ri=Ht*ri+nr*si,[Rr,ri]}return qe.invert=function(He,lt){var tt=20,pt=He,Ht=lt;do{for(var nr=Se,fr=he[nr],Ar=fr[0],Rr=fr[1],ri=0,si=0,Mi;--nr>=0;)fr=he[nr],ri=Ar+pt*(Mi=ri)-Ht*si,si=Rr+pt*si+Ht*Mi,Ar=fr[0]+pt*(Mi=Ar)-Ht*Rr,Rr=fr[1]+pt*Rr+Ht*Mi;ri=Ar+pt*(Mi=ri)-Ht*si,si=Rr+pt*si+Ht*Mi,Ar=pt*(Mi=Ar)-Ht*Rr-He,Rr=pt*Rr+Ht*Mi-lt;var hn=ri*ri+si*si,Zn,Yn;pt-=Zn=(Ar*ri+Rr*si)/hn,Ht-=Yn=(Rr*ri-Ar*si)/hn}while(n(Zn)+n(Yn)>v*v&&--tt>0);if(tt){var Ua=G(pt*pt+Ht*Ht),Fo=2*i(Ua*.5),vl=x(Fo);return[a(pt*vl,Ua*o(Fo)),Ua?F(Ht*vl/Ua):0]}},qe}var sa=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],es=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Na=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],tn=[[.9245,0],[0,0],[.01943,0]],Pa=[[.721316,0],[0,0],[-.00881625,-.00617325]];function to(){return _a(sa,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function yo(){return _a(es,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Jo(){return _a(Na,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ao(){return _a(tn,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Dn(){return _a(Pa,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function _a(he,Se){var qe=t.geoProjection(eo(he)).rotate(Se).clipAngle(90),He=t.geoRotation(Se),lt=qe.center;return delete qe.rotate,qe.center=function(tt){return arguments.length?lt(He(tt)):He.invert(lt())},qe}var Ws=G(6),Ca=G(7);function Es(he,Se){var qe=F(7*x(Se)/(3*Ws));return[Ws*he*(2*o(2*qe/3)-1)/Ca,9*x(qe/3)/Ca]}Es.invert=function(he,Se){var qe=3*F(Se*Ca/9);return[he*Ca/(Ws*(2*o(2*qe/3)-1)),F(x(qe)*3*Ws/7)]};function Ts(){return t.geoProjection(Es).scale(164.859)}function Ho(he,Se){for(var qe=(1+_)*x(Se),He=Se,lt=0,tt;lt<25&&(He-=tt=(x(He/2)+x(He)-qe)/(.5*o(He/2)+o(He)),!(n(tt)k&&--He>0);return tt=qe*qe,pt=tt*tt,Ht=tt*pt,[he/(.84719-.13063*tt+Ht*Ht*(-.04515+.05494*tt-.02326*pt+.00331*Ht)),qe]};function qa(){return t.geoProjection(Wo).scale(175.295)}function ln(he,Se){return[he*(1+o(Se))/2,2*(Se-b(Se/2))]}ln.invert=function(he,Se){for(var qe=Se/2,He=0,lt=1/0;He<10&&n(lt)>v;++He){var tt=o(Se/2);Se-=lt=(Se-b(Se/2)-qe)/(1-.5/(tt*tt))}return[2*he/(1+o(Se)),Se]};function Bo(){return t.geoProjection(ln).scale(152.63)}var ko=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function oo(){return la(Ye(1/0),ko).rotate([20,0]).scale(152.63)}function za(he,Se){var qe=x(Se),He=o(Se),lt=p(he);if(he===0||n(Se)===T)return[0,Se];if(Se===0)return[he,0];if(n(he)===T)return[he*He,T*qe];var tt=E/(2*he)-2*he/E,pt=2*Se/E,Ht=(1-pt*pt)/(qe-pt),nr=tt*tt,fr=Ht*Ht,Ar=1+nr/fr,Rr=1+fr/nr,ri=(tt*qe/Ht-tt/2)/Ar,si=(fr*qe/nr+Ht/2)/Rr,Mi=ri*ri+He*He/Ar,hn=si*si-(fr*qe*qe/nr+Ht*qe-1)/Rr;return[T*(ri+G(Mi)*lt),T*(si+G(hn<0?0:hn)*p(-Se*tt)*lt)]}za.invert=function(he,Se){he/=T,Se/=T;var qe=he*he,He=Se*Se,lt=qe+He,tt=E*E;return[he?(lt-1+G((1-lt)*(1-lt)+4*qe))/(2*he)*T:0,Nt(function(pt){return lt*(E*x(pt)-2*pt)*E+4*pt*pt*(Se-x(pt))+2*E*pt-tt*Se},0)]};function ea(){return t.geoProjection(za).scale(127.267)}var rs=1.0148,$s=.23185,us=-.14499,Ds=.02406,fl=rs,as=5*$s,Ma=7*us,Qs=9*Ds,ho=1.790857183;function gs(he,Se){var qe=Se*Se;return[he,Se*(rs+qe*qe*($s+qe*(us+Ds*qe)))]}gs.invert=function(he,Se){Se>ho?Se=ho:Se<-ho&&(Se=-ho);var qe=Se,He;do{var lt=qe*qe;qe-=He=(qe*(rs+lt*lt*($s+lt*(us+Ds*lt)))-Se)/(fl+lt*lt*(as+lt*(Ma+Qs*lt)))}while(n(He)>v);return[he,qe]};function Vo(){return t.geoProjection(gs).scale(139.319)}function Do(he,Se){if(n(Se)v&&--lt>0);return pt=b(He),[(n(Se)=0;)if(He=Se[Ht],qe[0]===He[0]&&qe[1]===He[1]){if(tt)return[tt,qe];tt=qe}}}function Aa(he){for(var Se=he.length,qe=[],He=he[Se-1],lt=0;lt0?[-He[0],0]:[180-He[0],180])};var Se=Ss.map(function(qe){return{face:qe,project:he(qe)}});return[-1,0,0,1,0,1,4,5].forEach(function(qe,He){var lt=Se[qe];lt&&(lt.children||(lt.children=[])).push(Se[He])}),Gs(Se[0],function(qe,He){return Se[qe<-E/2?He<0?6:4:qe<0?He<0?2:0:qeHe^si>He&&qe<(ri-fr)*(He-Ar)/(si-Ar)+fr&&(lt=!lt)}return lt}function Hs(he,Se){var qe=Se.stream,He;if(!qe)throw new Error("invalid projection");switch(he&&he.type){case"Feature":He=tl;break;case"FeatureCollection":He=Ro;break;default:He=hl;break}return He(he,qe)}function Ro(he,Se){return{type:"FeatureCollection",features:he.features.map(function(qe){return tl(qe,Se)})}}function tl(he,Se){return{type:"Feature",id:he.id,properties:he.properties,geometry:hl(he.geometry,Se)}}function Fs(he,Se){return{type:"GeometryCollection",geometries:he.geometries.map(function(qe){return hl(qe,Se)})}}function hl(he,Se){if(!he)return null;if(he.type==="GeometryCollection")return Fs(he,Se);var qe;switch(he.type){case"Point":qe=jo;break;case"MultiPoint":qe=jo;break;case"LineString":qe=Rs;break;case"MultiLineString":qe=Rs;break;case"Polygon":qe=Is;break;case"MultiPolygon":qe=Is;break;case"Sphere":qe=Is;break;default:return null}return t.geoStream(he,Se(qe)),qe.result()}var Fa=[],Ms=[],jo={point:function(he,Se){Fa.push([he,Se])},result:function(){var he=Fa.length?Fa.length<2?{type:"Point",coordinates:Fa[0]}:{type:"MultiPoint",coordinates:Fa}:null;return Fa=[],he}},Rs={lineStart:fs,point:function(he,Se){Fa.push([he,Se])},lineEnd:function(){Fa.length&&(Ms.push(Fa),Fa=[])},result:function(){var he=Ms.length?Ms.length<2?{type:"LineString",coordinates:Ms[0]}:{type:"MultiLineString",coordinates:Ms}:null;return Ms=[],he}},Is={polygonStart:fs,lineStart:fs,point:function(he,Se){Fa.push([he,Se])},lineEnd:function(){var he=Fa.length;if(he){do Fa.push(Fa[0].slice());while(++he<4);Ms.push(Fa),Fa=[]}},polygonEnd:fs,result:function(){if(!Ms.length)return null;var he=[],Se=[];return Ms.forEach(function(qe){cl(qe)?he.push([qe]):Se.push(qe)}),Se.forEach(function(qe){var He=qe[0];he.some(function(lt){if(el(lt[0],He))return lt.push(qe),!0})||he.push([qe])}),Ms=[],he.length?he.length>1?{type:"MultiPolygon",coordinates:he}:{type:"Polygon",coordinates:he[0]}:null}};function Bs(he){var Se=he(T,0)[0]-he(-T,0)[0];function qe(He,lt){var tt=n(He)0?He-E:He+E,lt),Ht=(pt[0]-pt[1])*_,nr=(pt[0]+pt[1])*_;if(tt)return[Ht,nr];var fr=Se*_,Ar=Ht>0^nr>0?-1:1;return[Ar*Ht-p(nr)*fr,Ar*nr-p(Ht)*fr]}return he.invert&&(qe.invert=function(He,lt){var tt=(He+lt)*_,pt=(lt-He)*_,Ht=n(tt)<.5*Se&&n(pt)<.5*Se;if(!Ht){var nr=Se*_,fr=tt>0^pt>0?-1:1,Ar=-fr*He+(pt>0?1:-1)*nr,Rr=-fr*lt+(tt>0?1:-1)*nr;tt=(-Ar-Rr)*_,pt=(Ar-Rr)*_}var ri=he.invert(tt,pt);return Ht||(ri[0]+=tt>0?E:-E),ri}),t.geoProjection(qe).rotate([-90,-90,45]).clipAngle(180-.001)}function At(){return Bs(ni).scale(176.423)}function Gt(){return Bs(ka).scale(111.48)}function wr(he,Se){if(!(0<=(Se=+Se)&&Se<=20))throw new Error("invalid digits");function qe(fr){var Ar=fr.length,Rr=2,ri=new Array(Ar);for(ri[0]=+fr[0].toFixed(Se),ri[1]=+fr[1].toFixed(Se);Rr2||si[0]!=Ar[0]||si[1]!=Ar[1])&&(Rr.push(si),Ar=si)}return Rr.length===1&&fr.length>1&&Rr.push(qe(fr[fr.length-1])),Rr}function tt(fr){return fr.map(lt)}function pt(fr){if(fr==null)return fr;var Ar;switch(fr.type){case"GeometryCollection":Ar={type:"GeometryCollection",geometries:fr.geometries.map(pt)};break;case"Point":Ar={type:"Point",coordinates:qe(fr.coordinates)};break;case"MultiPoint":Ar={type:fr.type,coordinates:He(fr.coordinates)};break;case"LineString":Ar={type:fr.type,coordinates:lt(fr.coordinates)};break;case"MultiLineString":case"Polygon":Ar={type:fr.type,coordinates:tt(fr.coordinates)};break;case"MultiPolygon":Ar={type:"MultiPolygon",coordinates:fr.coordinates.map(tt)};break;default:return fr}return fr.bbox!=null&&(Ar.bbox=fr.bbox),Ar}function Ht(fr){var Ar={type:"Feature",properties:fr.properties,geometry:pt(fr.geometry)};return fr.id!=null&&(Ar.id=fr.id),fr.bbox!=null&&(Ar.bbox=fr.bbox),Ar}if(he!=null)switch(he.type){case"Feature":return Ht(he);case"FeatureCollection":{var nr={type:"FeatureCollection",features:he.features.map(Ht)};return he.bbox!=null&&(nr.bbox=he.bbox),nr}default:return pt(he)}return he}function mr(he){var Se=x(he);function qe(He,lt){var tt=Se?b(He*Se/2)/Se:He/2;if(!lt)return[2*tt,-he];var pt=2*i(tt*x(lt)),Ht=1/b(lt);return[x(pt)*Ht,lt+(1-o(pt))*Ht-he]}return qe.invert=function(He,lt){if(n(lt+=he)v&&--Ht>0);var ri=He*(fr=b(pt)),si=b(n(lt)0?T:-T)*(nr+lt*(Ar-pt)/2+lt*lt*(Ar-2*nr+pt)/2)]}Ti.invert=function(he,Se){var qe=Se/T,He=qe*90,lt=c(18,n(He/5)),tt=f(0,u(lt));do{var pt=gi[tt][1],Ht=gi[tt+1][1],nr=gi[c(19,tt+2)][1],fr=nr-pt,Ar=nr-2*Ht+pt,Rr=2*(n(qe)-Ht)/fr,ri=Ar/fr,si=Rr*(1-ri*Rr*(1-2*ri*Rr));if(si>=0||tt===1){He=(Se>=0?5:-5)*(si+lt);var Mi=50,hn;do lt=c(18,n(He)/5),tt=u(lt),si=lt-tt,pt=gi[tt][1],Ht=gi[tt+1][1],nr=gi[c(19,tt+2)][1],He-=(hn=(Se>=0?T:-T)*(Ht+si*(nr-pt)/2+si*si*(nr-2*Ht+pt)/2)-Se)*P;while(n(hn)>k&&--Mi>0);break}}while(--tt>=0);var Zn=gi[tt][0],Yn=gi[tt+1][0],Ua=gi[c(19,tt+2)][0];return[he/(Yn+si*(Ua-Zn)/2+si*si*(Ua-2*Yn+Zn)/2),He*A]};function ki(){return t.geoProjection(Ti).scale(152.63)}function Ji(he){function Se(qe,He){var lt=o(He),tt=(he-1)/(he-lt*o(qe));return[tt*lt*x(qe),tt*x(He)]}return Se.invert=function(qe,He){var lt=qe*qe+He*He,tt=G(lt),pt=(he-G(1-lt*(he+1)/(he-1)))/((he-1)/tt+tt/(he-1));return[a(qe*pt,tt*G(1-pt*pt)),tt?F(He*pt/tt):0]},Se}function Fn(he,Se){var qe=Ji(he);if(!Se)return qe;var He=o(Se),lt=x(Se);function tt(pt,Ht){var nr=qe(pt,Ht),fr=nr[1],Ar=fr*lt/(he-1)+He;return[nr[0]*He/Ar,fr/Ar]}return tt.invert=function(pt,Ht){var nr=(he-1)/(he-1-Ht*lt);return qe.invert(nr*pt,nr*Ht*He)},tt}function Pi(){var he=2,Se=0,qe=t.geoProjectionMutator(Fn),He=qe(he,Se);return He.distance=function(lt){return arguments.length?qe(he=+lt,Se):he},He.tilt=function(lt){return arguments.length?qe(he,Se=lt*A):Se*P},He.scale(432.147).clipAngle(U(1/he)*P-1e-6)}var hi=1e-4,Li=1e4,Si=-180,Gn=Si+hi,ta=180,ya=ta-hi,ia=-90,pa=ia+hi,va=90,zn=va-hi;function is(he){return he.length>0}function Cs(he){return Math.floor(he*Li)/Li}function Ks(he){return he===ia||he===va?[0,he]:[Si,Cs(he)]}function dl(he){var Se=he[0],qe=he[1],He=!1;return Se<=Gn?(Se=Si,He=!0):Se>=ya&&(Se=ta,He=!0),qe<=pa?(qe=ia,He=!0):qe>=zn&&(qe=va,He=!0),He?[Se,qe]:he}function xl(he){return he.map(dl)}function Ol(he,Se,qe){for(var He=0,lt=he.length;He=ya||Ar<=pa||Ar>=zn){tt[pt]=dl(nr);for(var Rr=pt+1;RrGn&&sipa&&Mi=Ht)break;qe.push({index:-1,polygon:Se,ring:tt=tt.slice(Rr-1)}),tt[0]=Ks(tt[0][1]),pt=-1,Ht=tt.length}}}}function bl(he){var Se,qe=he.length,He={},lt={},tt,pt,Ht,nr,fr;for(Se=0;Se0?E-Ht:Ht)*P],fr=t.geoProjection(he(pt)).rotate(nr),Ar=t.geoRotation(nr),Rr=fr.center;return delete fr.rotate,fr.center=function(ri){return arguments.length?Rr(Ar(ri)):Ar.invert(Rr())},fr.clipAngle(90)}function cs(he){var Se=o(he);function qe(He,lt){var tt=t.geoGnomonicRaw(He,lt);return tt[0]*=Se,tt}return qe.invert=function(He,lt){return t.geoGnomonicRaw.invert(He/Se,lt)},qe}function sl(){return ll([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ll(he,Se){return Js(cs,he,Se)}function il(he){if(!(he*=2))return t.geoAzimuthalEquidistantRaw;var Se=-he/2,qe=-Se,He=he*he,lt=b(qe),tt=.5/x(qe);function pt(Ht,nr){var fr=U(o(nr)*o(Ht-Se)),Ar=U(o(nr)*o(Ht-qe)),Rr=nr<0?-1:1;return fr*=fr,Ar*=Ar,[(fr-Ar)/(2*he),Rr*G(4*He*Ar-(He-fr+Ar)*(He-fr+Ar))/(2*he)]}return pt.invert=function(Ht,nr){var fr=nr*nr,Ar=o(G(fr+(ri=Ht+Se)*ri)),Rr=o(G(fr+(ri=Ht+qe)*ri)),ri,si;return[a(si=Ar-Rr,ri=(Ar+Rr)*lt),(nr<0?-1:1)*U(G(ri*ri+si*si)*tt)]},pt}function zl(){return Ml([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ml(he,Se){return Js(il,he,Se)}function Rl(he,Se){if(n(Se)v&&--Ht>0);return[p(he)*(G(lt*lt+4)+lt)*E/4,T*pt]};function Ul(){return t.geoProjection(Gl).scale(127.16)}function le(he,Se,qe,He,lt){function tt(pt,Ht){var nr=qe*x(He*Ht),fr=G(1-nr*nr),Ar=G(2/(1+fr*o(pt*=lt)));return[he*fr*Ar*x(pt),Se*nr*Ar]}return tt.invert=function(pt,Ht){var nr=pt/he,fr=Ht/Se,Ar=G(nr*nr+fr*fr),Rr=2*F(Ar/2);return[a(pt*b(Rr),he*Ar)/lt,Ar&&F(Ht*x(Rr)/(Se*qe*Ar))/He]},tt}function w(he,Se,qe,He){var lt=E/3;he=f(he,v),Se=f(Se,v),he=c(he,T),Se=c(Se,E-v),qe=f(qe,0),qe=c(qe,100-v),He=f(He,v);var tt=qe/100+1,pt=He/100,Ht=U(tt*o(lt))/lt,nr=x(he)/x(Ht*T),fr=Se/E,Ar=G(pt*x(he/2)/x(Se/2)),Rr=Ar/G(fr*nr*Ht),ri=1/(Ar*G(fr*nr*Ht));return le(Rr,ri,nr,Ht,fr)}function q(){var he=65*A,Se=60*A,qe=20,He=200,lt=t.geoProjectionMutator(w),tt=lt(he,Se,qe,He);return tt.poleline=function(pt){return arguments.length?lt(he=+pt*A,Se,qe,He):he*P},tt.parallels=function(pt){return arguments.length?lt(he,Se=+pt*A,qe,He):Se*P},tt.inflation=function(pt){return arguments.length?lt(he,Se,qe=+pt,He):qe},tt.ratio=function(pt){return arguments.length?lt(he,Se,qe,He=+pt):He},tt.scale(163.775)}function Q(){return q().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*E+3*G(3),ue=2*G(2*E*G(3)/ee),Ge=St(ue*G(3)/E,ue,ee/6);function et(){return t.geoProjection(Ge).scale(176.84)}function mt(he,Se){return[he*G(1-3*Se*Se/(E*E)),Se]}mt.invert=function(he,Se){return[he/G(1-3*Se*Se/(E*E)),Se]};function Ft(){return t.geoProjection(mt).scale(152.63)}function ir(he,Se){var qe=o(Se),He=o(he)*qe,lt=1-He,tt=o(he=a(x(he)*qe,-x(Se))),pt=x(he);return qe=G(1-He*He),[pt*qe-tt*lt,-tt*qe-pt*lt]}ir.invert=function(he,Se){var qe=(he*he+Se*Se)/-2,He=G(-qe*(2+qe)),lt=Se*qe+he*He,tt=he*qe-Se*He,pt=G(tt*tt+lt*lt);return[a(He*lt,pt*(1+qe)),pt?-F(He*tt/pt):0]};function or(){return t.geoProjection(ir).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function kr(he,Se){var qe=Pe(he,Se);return[(qe[0]+he/T)/2,(qe[1]+Se)/2]}kr.invert=function(he,Se){var qe=he,He=Se,lt=25;do{var tt=o(He),pt=x(He),Ht=x(2*He),nr=pt*pt,fr=tt*tt,Ar=x(qe),Rr=o(qe/2),ri=x(qe/2),si=ri*ri,Mi=1-fr*Rr*Rr,hn=Mi?U(tt*Rr)*G(Zn=1/Mi):Zn=0,Zn,Yn=.5*(2*hn*tt*ri+qe/T)-he,Ua=.5*(hn*pt+He)-Se,Fo=.5*Zn*(fr*si+hn*tt*Rr*nr)+.5/T,vl=Zn*(Ar*Ht/4-hn*pt*ri),Us=.125*Zn*(Ht*ri-hn*pt*fr*Ar),ml=.5*Zn*(nr*Rr+hn*si*tt)+.5,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,He-=Yl}while((n(Sl)>v||n(Yl)>v)&&--lt>0);return[qe,He]};function Vr(){return t.geoProjection(kr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=be,e.geoAiryRaw=ae,e.geoAitoff=Ce,e.geoAitoffRaw=Pe,e.geoArmadillo=te,e.geoArmadilloRaw=de,e.geoAugust=Ee,e.geoAugustRaw=ke,e.geoBaker=ye,e.geoBakerRaw=Fe,e.geoBerghaus=ce,e.geoBerghausRaw=Ve,e.geoBertin1953=kt,e.geoBertin1953Raw=Ke,e.geoBoggs=wt,e.geoBoggsRaw=at,e.geoBonne=$e,e.geoBonneRaw=rt,e.geoBottomley=Yt,e.geoBottomleyRaw=zt,e.geoBromley=yr,e.geoBromleyRaw=hr,e.geoChamberlin=De,e.geoChamberlinRaw=xe,e.geoChamberlinAfrica=Re,e.geoCollignon=ge,e.geoCollignonRaw=ct,e.geoCraig=pe,e.geoCraigRaw=fe,e.geoCraster=Pt,e.geoCrasterRaw=It,e.geoCylindricalEqualArea=Hr,e.geoCylindricalEqualAreaRaw=rr,e.geoCylindricalStereographic=Mr,e.geoCylindricalStereographicRaw=Dr,e.geoEckert1=di,e.geoEckert1Raw=Fr,e.geoEckert2=Ii,e.geoEckert2Raw=Di,e.geoEckert3=nn,e.geoEckert3Raw=Ci,e.geoEckert4=wi,e.geoEckert4Raw=ii,e.geoEckert5=Bt,e.geoEckert5Raw=Gi,e.geoEckert6=Vt,e.geoEckert6Raw=yt,e.geoEisenlohr=Lr,e.geoEisenlohrRaw=_r,e.geoFahey=Gr,e.geoFaheyRaw=Ir,e.geoFoucaut=yi,e.geoFoucautRaw=jr,e.geoFoucautSinusoidal=Vi,e.geoFoucautSinusoidalRaw=Ei,e.geoGilbert=Yr,e.geoGingery=rn,e.geoGingeryRaw=oi,e.geoGinzburg4=xn,e.geoGinzburg4Raw=Ri,e.geoGinzburg5=Xr,e.geoGinzburg5Raw=xi,e.geoGinzburg6=tr,e.geoGinzburg6Raw=ft,e.geoGinzburg8=gr,e.geoGinzburg8Raw=pr,e.geoGinzburg9=Ai,e.geoGinzburg9Raw=Zr,e.geoGringorten=Mn,e.geoGringortenRaw=ni,e.geoGuyou=Ia,e.geoGuyouRaw=ka,e.geoHammer=gt,e.geoHammerRaw=Ye,e.geoHammerRetroazimuthal=kn,e.geoHammerRetroazimuthalRaw=Yo,e.geoHealpix=wa,e.geoHealpixRaw=ls,e.geoHill=Co,e.geoHillRaw=ws,e.geoHomolosine=Sn,e.geoHomolosineRaw=Ha,e.geoHufnagel=Ba,e.geoHufnagelRaw=ao,e.geoHyperelliptical=Sa,e.geoHyperellipticalRaw=Wi,e.geoInterrupt=la,e.geoInterruptedBoggs=As,e.geoInterruptedHomolosine=co,e.geoInterruptedMollweide=No,e.geoInterruptedMollweideHemispheres=Go,e.geoInterruptedSinuMollweide=qs,e.geoInterruptedSinusoidal=Oa,e.geoKavrayskiy7=Vs,e.geoKavrayskiy7Raw=ha,e.geoLagrange=_n,e.geoLagrangeRaw=Ya,e.geoLarrivee=Ra,e.geoLarriveeRaw=wo,e.geoLaskowski=un,e.geoLaskowskiRaw=Xn,e.geoLittrow=Ka,e.geoLittrowRaw=$n,e.geoLoximuthal=Eo,e.geoLoximuthalRaw=qn,e.geoMiller=lo,e.geoMillerRaw=Ja,e.geoModifiedStereographic=_a,e.geoModifiedStereographicRaw=eo,e.geoModifiedStereographicAlaska=to,e.geoModifiedStereographicGs48=yo,e.geoModifiedStereographicGs50=Jo,e.geoModifiedStereographicMiller=Ao,e.geoModifiedStereographicLee=Dn,e.geoMollweide=Zt,e.geoMollweideRaw=Dt,e.geoMtFlatPolarParabolic=Ts,e.geoMtFlatPolarParabolicRaw=Es,e.geoMtFlatPolarQuartic=Wa,e.geoMtFlatPolarQuarticRaw=Ho,e.geoMtFlatPolarSinusoidal=ts,e.geoMtFlatPolarSinusoidalRaw=To,e.geoNaturalEarth2=qa,e.geoNaturalEarth2Raw=Wo,e.geoNellHammer=Bo,e.geoNellHammerRaw=ln,e.geoInterruptedQuarticAuthalic=oo,e.geoNicolosi=ea,e.geoNicolosiRaw=za,e.geoPatterson=Vo,e.geoPattersonRaw=gs,e.geoPolyconic=Lo,e.geoPolyconicRaw=Do,e.geoPolyhedral=Gs,e.geoPolyhedralButterfly=po,e.geoPolyhedralCollignon=qo,e.geoPolyhedralWaterman=zo,e.geoProject=Hs,e.geoGringortenQuincuncial=At,e.geoPeirceQuincuncial=Gt,e.geoPierceQuincuncial=Gt,e.geoQuantize=wr,e.geoQuincuncial=Bs,e.geoRectangularPolyconic=Or,e.geoRectangularPolyconicRaw=mr,e.geoRobinson=ki,e.geoRobinsonRaw=Ti,e.geoSatellite=Pi,e.geoSatelliteRaw=Fn,e.geoSinuMollweide=Ps,e.geoSinuMollweideRaw=gn,e.geoSinusoidal=Ue,e.geoSinusoidalRaw=st,e.geoStitch=Vl,e.geoTimes=ns,e.geoTimesRaw=ja,e.geoTwoPointAzimuthal=ll,e.geoTwoPointAzimuthalRaw=cs,e.geoTwoPointAzimuthalUsa=sl,e.geoTwoPointEquidistant=Ml,e.geoTwoPointEquidistantRaw=il,e.geoTwoPointEquidistantUsa=zl,e.geoVanDerGrinten=Al,e.geoVanDerGrintenRaw=Rl,e.geoVanDerGrinten2=ms,e.geoVanDerGrinten2Raw=Ll,e.geoVanDerGrinten3=Xl,e.geoVanDerGrinten3Raw=Os,e.geoVanDerGrinten4=Ul,e.geoVanDerGrinten4Raw=Gl,e.geoWagner=q,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=et,e.geoWagner4Raw=Ge,e.geoWagner6=Ft,e.geoWagner6Raw=mt,e.geoWiechel=or,e.geoWiechelRaw=ir,e.geoWinkel3=Vr,e.geoWinkel3Raw=kr,Object.defineProperty(e,"__esModule",{value:!0})})});var z6e=Te((Xyr,P6e)=>{"use strict";var od=Jl(),UZ=ei(),I8t=$l(),ZT=Math.PI/180,H2=180/Math.PI,GZ={cursor:"pointer"},HZ={cursor:"auto"};function R8t(e,t){var r=e.projection,n;return t._isScoped?n=D8t:t._isClipped?n=B8t:n=F8t,n(e,r)}P6e.exports=R8t;function WZ(e,t){return od.behavior.zoom().translate(t.translate()).scale(t.scale())}function jZ(e,t,r){var n=e.id,i=e.graphDiv,a=i.layout,o=a[n],s=i._fullLayout,u=s[n],l={},f={};function c(h,d){l[n+"."+h]=UZ.nestedProperty(o,h).get(),I8t.call("_storeDirectGUIEdit",a,s._preGUI,l);var p=UZ.nestedProperty(u,h);p.get()!==d&&(p.set(d),UZ.nestedProperty(o,h).set(d),f[n+"."+h]=d)}r(c),c("projection.scale",t.scale()/e.fitScale),c("fitbounds",!1),i.emit("plotly_relayout",f)}function D8t(e,t){var r=WZ(e,t);function n(){od.select(this).style(GZ)}function i(){t.scale(od.event.scale).translate(od.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var u=t.invert(e.midPt);s("center.lon",u[0]),s("center.lat",u[1])}function o(){od.select(this).style(HZ),jZ(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function F8t(e,t){var r=WZ(e,t),n=2,i,a,o,s,u,l,f,c,h;function d(E){return t.invert(E)}function p(E){var T=d(E);if(!T)return!0;var L=t(T);return Math.abs(L[0]-E[0])>n||Math.abs(L[1]-E[1])>n}function x(){od.select(this).style(GZ),i=od.mouse(this),a=t.rotate(),o=t.translate(),s=a,u=d(i)}function b(){if(l=od.mouse(this),p(i)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(od.event.scale),t.translate([o[0],od.event.translate[1]]),u?d(l)&&(c=d(l),f=[s[0]+(c[0]-u[0]),a[1],a[2]],t.rotate(f),s=f):(i=l,u=d(i)),h=!0,e.render(!0);var E=t.rotate(),T=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":T[0],"geo.center.lat":T[1],"geo.projection.rotation.lon":-E[0]})}function v(){od.select(this).style(HZ),h&&jZ(e,t,k)}function k(E){var T=t.rotate(),L=t.invert(e.midPt);E("projection.rotation.lon",-T[0]),E("center.lon",L[0]),E("center.lat",L[1])}return r.on("zoomstart",x).on("zoom",b).on("zoomend",v),r}function B8t(e,t){var r={r:t.rotate(),k:t.scale()},n=WZ(e,t),i=W8t(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){od.select(this).style(GZ);var h=od.mouse(this),d=t.rotate(),p=d,x=t.translate(),b=O8t(d);s=CF(t,h),o.call(n,"zoom",function(){var v=od.mouse(this);if(t.scale(r.k=od.event.scale),!s)h=v,s=CF(t,h);else if(CF(t,v)){t.rotate(d).translate(x);var k=CF(t,v),E=N8t(s,k),T=V8t(q8t(b,E)),L=r.r=U8t(T,s,p);(!isFinite(L[0])||!isFinite(L[1])||!isFinite(L[2]))&&(L=p),t.rotate(L),p=L}l(i.of(this,arguments))}),u(i.of(this,arguments))}).on("zoomend",function(){od.select(this).style(HZ),o.call(n,"zoom",null),f(i.of(this,arguments)),jZ(e,t,c)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function u(h){a++||h({type:"zoomstart"})}function l(h){h({type:"zoom"})}function f(h){--a||h({type:"zoomend"})}function c(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return od.rebind(n,i,"on")}function CF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&G8t(r)}function O8t(e){var t=.5*e[0]*ZT,r=.5*e[1]*ZT,n=.5*e[2]*ZT,i=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),u=Math.sin(n),l=Math.cos(n);return[a*s*l+i*o*u,i*s*l-a*o*u,a*o*l+i*s*u,a*s*u-i*o*l]}function q8t(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=t[0],s=t[1],u=t[2],l=t[3];return[r*o-n*s-i*u-a*l,r*s+n*o+i*l-a*u,r*u-n*l+i*o+a*s,r*l+n*u-i*s+a*o]}function N8t(e,t){if(!(!e||!t)){var r=H8t(e,t),n=Math.sqrt(L6e(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,L6e(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function U8t(e,t,r){var n=VZ(t,2,e[0]);n=VZ(n,1,e[1]),n=VZ(n,0,e[2]-r[2]);var i=t[0],a=t[1],o=t[2],s=n[0],u=n[1],l=n[2],f=Math.atan2(a,i)*H2,c=Math.sqrt(i*i+a*a),h,d;Math.abs(u)>c?(d=(u>0?90:-90)-f,h=0):(d=Math.asin(u/c)*H2-f,h=Math.sqrt(c*c-u*u));var p=180-d-2*f,x=(Math.atan2(l,s)-Math.atan2(o,h))*H2,b=(Math.atan2(l,s)-Math.atan2(o,-h))*H2,v=k6e(r[0],r[1],d,x),k=k6e(r[0],r[1],p,b);return v<=k?[d,x,r[2]]:[p,b,r[2]]}function k6e(e,t,r,n){var i=C6e(r-e),a=C6e(n-t);return Math.sqrt(i*i+a*a)}function C6e(e){return(e%360+540)%360-180}function VZ(e,t,r){var n=r*ZT,i=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(n),u=Math.sin(n);return i[a]=e[a]*s-e[o]*u,i[o]=e[o]*s+e[a]*u,i}function V8t(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*H2,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*H2,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*H2]}function G8t(e){var t=e[0]*ZT,r=e[1]*ZT,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function L6e(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var t1=Jl(),YZ=NZ(),j8t=YZ.geoPath,X8t=YZ.geoDistance,Z8t=E6e(),Y8t=$l(),ak=ei(),K8t=ak.strTranslate,LF=jl(),nk=Mu(),I6e=Xc(),J8t=Cc(),ZZ=wu(),R6e=wm().getAutoRange,XZ=xp(),$8t=ah().prepSelect,Q8t=ah().clearOutline,eBt=ah().selectOnClick,tBt=z6e(),fv=ek(),rBt=ix(),F6e=pF(),iBt=SZ().feature;function B6e(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var $m=B6e.prototype;O6e.exports=function(t){return new B6e(t)};$m.plot=function(e,t,r,n){var i=this;if(n)return i.update(e,t,!0);i._geoCalcData=e,i._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var u in fv.layerNameToAdjective)if(u!=="frame"&&a["show"+u]){s=!0;break}for(var l=!1,f=0;f0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),J8t.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var u=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=u.selectAll(".point"),this.dataPoints.text=u.selectAll("text"),this.dataPaths.line=u.selectAll(".js-line");var l=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=l.selectAll("path"),this._render()};$m.updateProjection=function(e,t){var r=this.graphDiv,n=t[this.id],i=t._size,a=n.domain,o=n.projection,s=n.lonaxis,u=n.lataxis,l=s._ax,f=u._ax,c=this.projection=nBt(n),h=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],d=n.center||{},p=o.rotation||{},x=s.range||[],b=u.range||[];if(n.fitbounds){l._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],l.range=R6e(r,l),f.range=R6e(r,f);var v=(l.range[0]+l.range[1])/2,k=(f.range[0]+f.range[1])/2;if(n._isScoped)d={lon:v,lat:k};else if(n._isClipped){d={lon:v,lat:k},p={lon:v,lat:k,roll:p.roll};var E=o.type,T=fv.lonaxisSpan[E]/2||180,L=fv.lataxisSpan[E]/2||90;x=[v-T,v+T],b=[k-L,k+L]}else d={lon:v,lat:k},p={lon:v,lat:p.lat,roll:p.roll}}c.center([d.lon-p.lon,d.lat-p.lat]).rotate([-p.lon,-p.lat,p.roll]).parallels(o.parallels);var _=D6e(x,b);c.fitExtent(h,_);var C=this.bounds=c.getBounds(_),M=this.fitScale=c.scale(),m=c.translate();if(n.fitbounds){var P=c.getBounds(D6e(l.range,f.range)),A=Math.min((C[1][0]-C[0][0])/(P[1][0]-P[0][0]),(C[1][1]-C[0][1])/(P[1][1]-P[0][1]));isFinite(A)?c.scale(A*M):ak.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*M);var B=this.midPt=[(C[0][0]+C[1][0])/2,(C[0][1]+C[1][1])/2];if(c.translate([m[0]+(B[0]-m[0]),m[1]+(B[1]-m[1])]).clipExtent(C),n._isAlbersUsa){var F=c([d.lon,d.lat]),U=c.translate();c.translate([U[0]-(F[0]-U[0]),U[1]-(F[1]-U[1])])}};$m.updateBaseLayers=function(e,t){var r=this,n=r.topojson,i=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!fv.lineLayers[h]}function u(h){return!!fv.fillLayers[h]}var l=this.hasChoropleth?fv.layersForChoropleth:fv.layers,f=l.filter(function(h){return s(h)||u(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),c=r.framework.selectAll(".layer").data(f,String);c.exit().each(function(h){delete i[h],delete a[h],t1.select(this).remove()}),c.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=i[h]=t1.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):u(h)&&(a[h]=d.append("path").style("stroke","none"))}),c.order(),c.each(function(h){var d=a[h],p=fv.layerNameToAdjective[h];h==="frame"?d.datum(fv.sphereSVG):s(h)||u(h)?d.datum(iBt(n,n.objects[h])):o(h)&&d.datum(aBt(h,t,e)).call(LF.stroke,t[h].gridcolor).call(nk.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(LF.stroke,t[p+"color"]).call(nk.dashLine,"",t[p+"width"]):u(h)&&d.call(LF.fill,t[p+"color"])})};$m.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;nk.setRect(this.clipRect,i,a,o,s),this.bgRect.call(nk.setRect,i,a,o,s).call(LF.fill,t.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};$m.updateFx=function(e,t){var r=this,n=r.graphDiv,i=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var c=r.viewInitial,h={};for(var d in c)h[r.id+"."+d]=c[d];Y8t.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function u(c){return r.projection.invert([c[0]+r.xaxis._offset,c[1]+r.yaxis._offset])}var l=function(c,h){if(h.isRect){var d=c.range={};d[r.id]=[u([h.xmin,h.ymin]),u([h.xmax,h.ymax])]}else{var p=c.lassoPoints={};p[r.id]=h.map(u)}},f={element:r.bgRect.node(),gd:n,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:l},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(c){c===2&&Q8t(n)}};a==="pan"?(i.node().onmousedown=null,i.call(tBt(r,t)),i.on("dblclick.zoom",s),n._context._scrollZoom.geo||i.on("wheel.zoom",null)):(a==="select"||a==="lasso")&&(i.on(".zoom",null),f.prepFn=function(c,h,d){$8t(c,h,d,f,a)},XZ.init(f)),i.on("mousemove",function(){var c=r.projection.invert(ak.getPositionFromD3Event());if(!c)return XZ.unhover(n,t1.event);r.xaxis.p2c=function(){return c[0]},r.yaxis.p2c=function(){return c[1]},I6e.hover(n,t1.event,r.id)}),i.on("mouseout",function(){n._dragging||XZ.unhover(n,t1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&eBt(t1.event,n,[r.xaxis],[r.yaxis],r.id,f),o.indexOf("event")>-1&&I6e.click(n,t1.event))})};$m.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,n="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=t1.select(e.container).append("g").attr("class","geo "+e.id).call(nk.setClipUrl,n,t),e.project=function(i){var a=e.projection(i);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(i){return e.project(i)[0]}},e.yaxis={_id:"y",c2p:function(i){return e.project(i)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},ZZ.setConvert(e.mockAxis,r)};$m.saveViewInitial=function(e){var t=e.center||{},r=e.projection,n=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var i;e._isScoped?i={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?i={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:i={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":n.lon},ak.extendFlat(this.viewInitial,i)};$m.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};$m._render=function(){var e=this.projection,t=e.getPath(),r;function n(a){var o=e(a.lonlat);return o?K8t(o[0],o[1]):null}function i(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",i).attr("transform",n)};function nBt(e){var t=e.projection,r=t.type,n=fv.projNames[r];n="geo"+ak.titleCase(n);for(var i=YZ[n]||Z8t[n],a=i(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?fv.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],u=function(c){return c?a:[]},l=0;lp}else return!1},a.getPath=function(){return j8t().projection(a)},a.getBounds=function(c){return a.getPath().bounds(c)},a.precision(fv.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-fv.clipPad),a}function aBt(e,t,r){var n=1e-6,i=2.5,a=t[e],o=fv.scopeDefaults[t.scope],s,u,l;e==="lonaxis"?(s=o.lonaxisRange,u=o.lataxisRange,l=function(k,E){return[k,E]}):e==="lataxis"&&(s=o.lataxisRange,u=o.lonaxisRange,l=function(k,E){return[E,k]});var f={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};ZZ.setConvert(f,r);var c=ZZ.calcTicks(f);!t.isScoped&&e==="lonaxis"&&c.pop();for(var h=c.length,d=new Array(h),p=0;p0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}});var KZ=Te((Yyr,V6e)=>{"use strict";var KT=Ih(),oBt=zc().attributes,sBt=Id().dash,YT=ek(),lBt=Sc().overrideAll,N6e=Z1(),U6e={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:KT.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:sBt},uBt=V6e.exports=lBt({domain:oBt({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:N6e(YT.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:N6e(YT.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:KT.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:YT.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:YT.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:YT.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:YT.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:KT.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:KT.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:KT.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:KT.background},lonaxis:U6e,lataxis:U6e},"plot","from-root");uBt.uirevision={valType:"any",editType:"none"}});var W6e=Te((Kyr,H6e)=>{"use strict";var PF=ei(),fBt=k_(),cBt=Rd().getSubplotData,zF=ek(),hBt=KZ(),G6e=zF.axesNames;H6e.exports=function(t,r,n){fBt(t,r,n,{type:"geo",attributes:hBt,handleDefaults:dBt,fullData:n,partition:"y"})};function dBt(e,t,r,n){var i=cBt(n.fullData,"geo",n.id),a=i.map(function(ae){return ae.index}),o=r("resolution"),s=r("scope"),u=zF.scopeDefaults[s],l=r("projection.type",u.projType),f=t._isAlbersUsa=l==="albers usa";f&&(s=t.scope="usa");var c=t._isScoped=s!=="world",h=t._isSatellite=l==="satellite",d=t._isConic=l.indexOf("conic")!==-1||l==="albers",p=t._isClipped=!!zF.lonaxisSpan[l];if(e.visible===!1){var x=PF.extendDeep({},t._template);x.showcoastlines=!1,x.showcountries=!1,x.showframe=!1,x.showlakes=!1,x.showland=!1,x.showocean=!1,x.showrivers=!1,x.showsubunits=!1,x.lonaxis&&(x.lonaxis.showgrid=!1),x.lataxis&&(x.lataxis.showgrid=!1),t._template=x}for(var b=r("visible"),v,k=0;k0&&F<0&&(F+=360);var U=(B+F)/2,G;if(!f){var j=c?u.projRotate:[U,0,0];G=r("projection.rotation.lon",j[0]),r("projection.rotation.lat",j[1]),r("projection.rotation.roll",j[2]),v=r("showcoastlines",!c&&b),v&&(r("coastlinecolor"),r("coastlinewidth")),v=r("showocean",b?void 0:!1),v&&r("oceancolor")}var H,N;if(f?(H=-96.6,N=38.7):(H=c?U:G,N=(A[0]+A[1])/2),r("center.lon",H),r("center.lat",N),h&&(r("projection.tilt"),r("projection.distance")),d){var W=u.projParallels||[0,60];r("projection.parallels",W)}r("projection.scale"),v=r("showland",b?void 0:!1),v&&r("landcolor"),v=r("showlakes",b?void 0:!1),v&&r("lakecolor"),v=r("showrivers",b?void 0:!1),v&&(r("rivercolor"),r("riverwidth")),v=r("showcountries",c&&s!=="usa"&&b),v&&(r("countrycolor"),r("countrywidth")),(s==="usa"||s==="north america"&&o===50)&&(r("showsubunits",b),r("subunitcolor"),r("subunitwidth")),c||(v=r("showframe",b),v&&(r("framecolor"),r("framewidth"))),r("bgcolor");var re=r("fitbounds");re&&(delete t.projection.scale,c?(delete t.center.lon,delete t.center.lat):p?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}});var JZ=Te((Jyr,Z6e)=>{"use strict";var pBt=Rd().getSubplotCalcData,vBt=ei().counterRegex,mBt=q6e(),jy="geo",j6e=vBt(jy),X6e={};X6e[jy]={valType:"subplotid",dflt:jy,editType:"calc"};function yBt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[jy],i=0;i{"use strict";Y6e.exports={attributes:G2(),supplyDefaults:LDe(),colorbar:ep(),formatLabels:IDe(),calc:hF(),calcGeoJSON:qZ().calcGeoJSON,plot:qZ().plot,style:DZ(),styleOnSelect:av().styleOnSelect,hoverPoints:g6e(),eventData:x6e(),selectPoints:A6e(),moduleType:"trace",name:"scattergeo",basePlotModule:JZ(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var $6e=Te((Qyr,J6e)=>{"use strict";J6e.exports=K6e()});var JT=Te((egr,tFe)=>{"use strict";var xBt=Nu().hovertemplateAttrs,ax=G2(),bBt=nc(),Q6e=Gf(),wBt=Ih().defaultLine,nx=Su().extendFlat,eFe=ax.marker.line;tFe.exports=nx({locations:{valType:"data_array",editType:"calc"},locationmode:ax.locationmode,z:{valType:"data_array",editType:"calc"},geojson:nx({},ax.geojson,{}),featureidkey:ax.featureidkey,text:nx({},ax.text,{}),hovertext:nx({},ax.hovertext,{}),marker:{line:{color:nx({},eFe.color,{dflt:wBt}),width:nx({},eFe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:ax.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:ax.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:nx({},Q6e.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:xBt(),showlegend:nx({},Q6e.showlegend,{dflt:!1})},bBt("",{cLetter:"z",editTypeOverride:"calc"}))});var iFe=Te((tgr,rFe)=>{"use strict";var ok=ei(),ABt=ed(),TBt=JT(),SBt=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");rFe.exports=function(t,r,n,i){function a(h,d){return ok.coerce(t,r,TBt,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&ok.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var u=a("geojson"),l;(typeof u=="string"&&u!==""||ok.isPlainObject(u))&&(l="geojson-id");var f=a("locationmode",l);f==="country names"&&ok.warn(SBt),f==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate");var c=a("marker.line.width");c&&a("marker.line.color"),a("marker.opacity"),ABt(t,r,i,a,{prefix:"",cLetter:"z"}),ok.coerceSelectionMarkerOpacity(r,a)}});var IF=Te((rgr,oFe)=>{"use strict";var nFe=ku(),MBt=nf().BADNUM,EBt=gp(),kBt=ky(),CBt=F0();function aFe(e){return e&&typeof e=="string"}oFe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(f){return aFe(f)||nFe(f)}:a=aFe;for(var o=0;o{"use strict";var LBt=Jl(),PBt=jl(),$Z=Mu(),zBt=_c();function IBt(e,t){t&&sFe(e,t)}function sFe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=zBt.makeColorScaleFuncFromTrace(r);i.each(function(u){LBt.select(this).attr("fill",s(u.z)).call(PBt.stroke,u.mlc||o.color).call($Z.dashLine,"",u.mlw||o.width||0).style("opacity",a.opacity)}),$Z.selectedPointStyle(i,r)}function RBt(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?$Z.selectedPointStyle(r.selectAll(".choroplethlocation"),n):sFe(e,t)}lFe.exports={style:IBt,styleOnSelect:RBt}});var QZ=Te((ngr,cFe)=>{"use strict";var DBt=Jl(),uFe=ei(),$T=ix(),FBt=pF().getTopojsonFeatures,fFe=wm().findExtremes,BBt=RF().style;function OBt(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");uFe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=DBt.select(this),o=a.selectAll("path.choroplethlocation").data(uFe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),BBt(e,i)})}function qBt(e,t){for(var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?$T.extractTraceFeature(e):FBt(r,i.topojson),u=[],l=[],f=0;f{"use strict";var NBt=wu(),UBt=JT(),VBt=ei().fillText;hFe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s,u,l,f,c=[r,n],h=[r+360,n];for(u=0;u")}}});var FF=Te((ogr,dFe)=>{"use strict";dFe.exports=function(t,r,n,i,a){t.location=r.location,t.z=r.z;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var BF=Te((sgr,pFe)=>{"use strict";pFe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u,l,f,c;if(r===!1)for(s=0;s{"use strict";vFe.exports={attributes:JT(),supplyDefaults:iFe(),colorbar:S_(),calc:IF(),calcGeoJSON:QZ().calcGeoJSON,plot:QZ().plot,style:RF().style,styleOnSelect:RF().styleOnSelect,hoverPoints:DF(),eventData:FF(),selectPoints:BF(),moduleType:"trace",name:"choropleth",basePlotModule:JZ(),categories:["geo","noOpacity","showLegend"],meta:{}}});var gFe=Te((ugr,yFe)=>{"use strict";yFe.exports=mFe()});var OF=Te((fgr,xFe)=>{"use strict";var HBt=$l(),s0=ei(),WBt=oA();function jBt(e,t,r,n){var i=e.cd,a=i[0].t,o=i[0].trace,s=e.xa,u=e.ya,l=a.x,f=a.y,c=s.c2p(t),h=u.c2p(r),d=e.distance,p;if(a.tree){var x=s.p2c(c-d),b=s.p2c(c+d),v=u.p2c(h-d),k=u.p2c(h+d);n==="x"?p=a.tree.range(Math.min(x,b),Math.min(u._rl[0],u._rl[1]),Math.max(x,b),Math.max(u._rl[0],u._rl[1])):p=a.tree.range(Math.min(x,b),Math.min(v,k),Math.max(x,b),Math.max(v,k))}else p=a.ids;var E,T,L,_,C,M,m,P,A,B=d;if(n==="x"){var F=!!o.xperiodalignment,U=!!o.yperiodalignment;for(C=0;C=Math.min(G,j)&&c<=Math.max(G,j)?0:1/0}if(M=Math.min(H,N)&&h<=Math.max(H,N)?0:1/0}A=Math.sqrt(M*M+m*m),T=p[C]}}}else for(C=p.length-1;C>-1;C--)E=p[C],L=l[E],_=f[E],M=s.c2p(L)-c,m=u.c2p(_)-h,P=Math.sqrt(M*M+m*m),P{"use strict";var bFe=20;wFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:bFe,SYMBOL_STROKE:bFe/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var sk=Te((hgr,MFe)=>{"use strict";var XBt=Gf(),ZBt=gc(),YBt=Em(),sh=Zc(),AFe=jc().axisHoverFormat,TFe=nc(),KBt=Z1(),eY=Su().extendFlat,JBt=Sc().overrideAll,$Bt=ox().DASHES,SFe=sh.line,r1=sh.marker,QBt=r1.line,QT=MFe.exports=JBt({x:sh.x,x0:sh.x0,dx:sh.dx,y:sh.y,y0:sh.y0,dy:sh.dy,xperiod:sh.xperiod,yperiod:sh.yperiod,xperiod0:sh.xperiod0,yperiod0:sh.yperiod0,xperiodalignment:sh.xperiodalignment,yperiodalignment:sh.yperiodalignment,xhoverformat:AFe("x"),yhoverformat:AFe("y"),text:sh.text,hovertext:sh.hovertext,textposition:sh.textposition,textfont:ZBt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:SFe.color,width:SFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:KBt($Bt),dflt:"solid"}},marker:eY({},TFe("marker"),{symbol:r1.symbol,angle:r1.angle,size:r1.size,sizeref:r1.sizeref,sizemin:r1.sizemin,sizemode:r1.sizemode,opacity:r1.opacity,colorbar:r1.colorbar,line:eY({},TFe("marker.line"),{width:QBt.width})}),connectgaps:sh.connectgaps,fill:eY({},sh.fill,{dflt:"none"}),fillcolor:YBt(),selected:{marker:sh.selected.marker,textfont:sh.selected.textfont},unselected:{marker:sh.unselected.marker,textfont:sh.unselected.textfont},opacity:XBt.opacity},"calc","nested");QT.x.editType=QT.y.editType=QT.x0.editType=QT.y0.editType="calc+clearAxisTypes";QT.hovertemplate=sh.hovertemplate;QT.texttemplate=sh.texttemplate});var qF=Te(tY=>{"use strict";var EFe=ox();tY.isOpenSymbol=function(e){return typeof e=="string"?EFe.OPEN_RE.test(e):e%200>100};tY.isDotSymbol=function(e){return typeof e=="string"?EFe.DOT_RE.test(e):e>200}});var LFe=Te((pgr,CFe)=>{"use strict";var kFe=ei(),eOt=$l(),tOt=qF(),rOt=sk(),iOt=Sy(),NF=lc(),nOt=K3(),aOt=Pm(),oOt=$v(),sOt=I0(),lOt=zm(),uOt=R0();CFe.exports=function(t,r,n,i){function a(d,p){return kFe.coerce(t,r,rOt,d,p)}var o=t.marker?tOt.isOpenSymbol(t.marker.symbol):!1,s=NF.isBubble(t),u=nOt(t,r,i,a);if(!u){r.visible=!1;return}aOt(t,r,i,a),a("xhoverformat"),a("yhoverformat");var l=u{"use strict";var fOt=tI();PFe.exports=function(t,r,n){var i=t.i;return"x"in t||(t.x=r._x[i]),"y"in t||(t.y=r._y[i]),fOt(t,r,n)}});var RFe=Te((mgr,IFe)=>{"use strict";function cOt(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u>=0?(a=o,i=o-1):n=o+1}return a}function hOt(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u>0?(a=o,i=o-1):n=o+1}return a}function dOt(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u<0?(a=o,n=o+1):i=o-1}return a}function pOt(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u<=0?(a=o,n=o+1):i=o-1}return a}function vOt(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function lk(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}IFe.exports={ge:function(e,t,r,n,i){return lk(e,t,r,n,i,cOt)},gt:function(e,t,r,n,i){return lk(e,t,r,n,i,hOt)},lt:function(e,t,r,n,i){return lk(e,t,r,n,i,dOt)},le:function(e,t,r,n,i){return lk(e,t,r,n,i,pOt)},eq:function(e,t,r,n,i){return lk(e,t,r,n,i,vOt)}}});var Xy=Te((ygr,FFe)=>{"use strict";FFe.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=DFe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var mOt=Xy();BFe.exports=yOt;function yOt(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=mOt(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var W2=Te((_gr,OFe)=>{"use strict";OFe.exports=gOt;function gOt(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;ni&&(i=e[o]),e[o]{qFe.exports=function(){for(var e=0;e{var UFe=j6();VFe.exports=_Ot;function _Ot(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,s,u;(!t||typeof t=="string")&&(t=new(UFe(t||"float32"))(i+r));var l=t.length-r;if(i!==l)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+l);for(a=0,s=r;a{"use strict";GFe.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var jFe=Te((Agr,WFe)=>{"use strict";WFe.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var QFe=Te((Tgr,$Fe)=>{"use strict";var XFe=RFe(),ZFe=X4(),xOt=eS(),bOt=W2(),YFe=Xy(),iY=NFe(),wOt=j2(),AOt=HFe(),TOt=j6(),KFe=jFe(),SOt=1073741824;$Fe.exports=function(t,r){r||(r={}),t=wOt(t,"float64"),r=YFe(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=iY(r.maxDepth,255),i=iY(r.bounds,bOt(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=JFe(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(TOt(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let v=0;vn||_>SOt){for(let N=0;Nbe||m>Pe||P=B||re===ae)return;let Ce=u[W];ae===void 0&&(ae=Ce.length);for(let Ve=re;Ve=T&&Ye<=_&&nt>=L&&nt<=C&&F.push(ce)}let de=l[W],te=de[re*4+0],ke=de[re*4+1],Ee=de[re*4+2],Me=de[re*4+3],Ne=G(de,re+1),Fe=N*.5,ye=W+1;U(j,H,Fe,ye,te,ke||Ee||Me||Ne),U(j,H+Fe,Fe,ye,ke,Ee||Me||Ne),U(j+Fe,H,Fe,ye,Ee,Me||Ne),U(j+Fe,H+Fe,Fe,ye,Me,Ne)}function G(j,H){let N=null,W=0;for(;N===null;)if(N=j[H*4+W],W++,W>j.length)return null;return N}return F}function x(v,k,E,T,L){let _=[];for(let C=0;C{"use strict";e8e.exports=QFe()});var nY=Te((Mgr,t8e)=>{t8e.exports=MOt;function MOt(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var u=1;u{"use strict";Object.defineProperty(VF,"__esModule",{value:!0});var EOt=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),u;!(i=(u=s.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(l){a=!0,o=l}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),uk=Math.PI*2,aY=function(t,r,n,i,a,o,s){var u=t.x,l=t.y;u*=r,l*=n;var f=i*u-a*l,c=a*u+i*l;return{x:f+o,y:c+s}},kOt=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},r8e=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},COt=function(t,r,n,i,a,o,s,u,l,f,c,h){var d=Math.pow(a,2),p=Math.pow(o,2),x=Math.pow(c,2),b=Math.pow(h,2),v=d*p-d*b-p*x;v<0&&(v=0),v/=d*b+p*x,v=Math.sqrt(v)*(s===u?-1:1);var k=v*a/o*h,E=v*-o/a*c,T=f*k-l*E+(t+n)/2,L=l*k+f*E+(r+i)/2,_=(c-k)/a,C=(h-E)/o,M=(-c-k)/a,m=(-h-E)/o,P=r8e(1,0,_,C),A=r8e(_,C,M,m);return u===0&&A>0&&(A-=uk),u===1&&A<0&&(A+=uk),[T,L,P,A]},LOt=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,s=t.ry,u=t.xAxisRotation,l=u===void 0?0:u,f=t.largeArcFlag,c=f===void 0?0:f,h=t.sweepFlag,d=h===void 0?0:h,p=[];if(o===0||s===0)return[];var x=Math.sin(l*uk/360),b=Math.cos(l*uk/360),v=b*(r-i)/2+x*(n-a)/2,k=-x*(r-i)/2+b*(n-a)/2;if(v===0&&k===0)return[];o=Math.abs(o),s=Math.abs(s);var E=Math.pow(v,2)/Math.pow(o,2)+Math.pow(k,2)/Math.pow(s,2);E>1&&(o*=Math.sqrt(E),s*=Math.sqrt(E));var T=COt(r,n,i,a,o,s,c,d,x,b,v,k),L=EOt(T,4),_=L[0],C=L[1],M=L[2],m=L[3],P=Math.abs(m)/(uk/4);Math.abs(1-P)<1e-7&&(P=1);var A=Math.max(Math.ceil(P),1);m/=A;for(var B=0;B{"use strict";o8e.exports=zOt;var POt=n8e();function zOt(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,u=null,l=0,f=0,c=0,h=e.length;c4?(n=d[d.length-4],i=d[d.length-3]):(n=l,i=f),r.push(d)}return r}function GF(e,t,r,n){return["C",e,t,r,n,r,n]}function a8e(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var oY=Te((kgr,l8e)=>{"use strict";l8e.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var c8e=Te((Cgr,f8e)=>{"use strict";var IOt=$M(),ROt=nY(),DOt=s8e(),FOt=oY(),u8e=o4();f8e.exports=BOt;function BOt(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(u8e(FOt(e),"String is not an SVG path."),e=IOt(e)),u8e(Array.isArray(e),"Argument should be a string or an array of path segments."),e=ROt(e),e=DOt(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;rt[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}});var y8e=Te((Lgr,m8e)=>{var X2=Math.PI,h8e=v8e(120);m8e.exports=OOt;function OOt(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,u=null,l=0,f=0,c=0,h=e.length;c7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var x=l,b=f;(t=="C"||t=="S")&&(x+=x-n,b+=b-i),d=["C",x,b,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=l*2-s,u=f*2-u):(s=l,u=f),d=d8e(l,f,s,u,d[1],d[2]);break;case"Q":s=d[1],u=d[2],d=d8e(l,f,d[1],d[2],d[3],d[4]);break;case"L":d=HF(l,f,d[1],d[2]);break;case"H":d=HF(l,f,d[1],f);break;case"V":d=HF(l,f,l,d[1]);break;case"Z":d=HF(l,f,a,o);break}t=p,l=d[d.length-2],f=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=l,i=f),r.push(d)}return r}function HF(e,t,r,n){return["C",e,t,r,n,r,n]}function d8e(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function p8e(e,t,r,n,i,a,o,s,u,l){if(l)E=l[0],T=l[1],v=l[2],k=l[3];else{var f=sY(e,t,-i);e=f.x,t=f.y,f=sY(s,u,-i),s=f.x,u=f.y;var c=(e-s)/2,h=(t-u)/2,d=c*c/(r*r)+h*h/(n*n);d>1&&(d=Math.sqrt(d),r=d*r,n=d*n);var p=r*r,x=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((p*x-p*h*h-x*c*c)/(p*h*h+x*c*c)));b==1/0&&(b=1);var v=b*r*h/n+(e+s)/2,k=b*-n*c/r+(t+u)/2,E=Math.asin(((t-k)/n).toFixed(9)),T=Math.asin(((u-k)/n).toFixed(9));E=eT&&(E=E-X2*2),!o&&T>E&&(T=T-X2*2)}if(Math.abs(T-E)>h8e){var L=T,_=s,C=u;T=E+h8e*(o&&T>E?1:-1),s=v+r*Math.cos(T),u=k+n*Math.sin(T);var M=p8e(s,u,r,n,i,0,o,_,C,[T,L,v,k])}var m=Math.tan((T-E)/4),P=4/3*r*m,A=4/3*n*m,B=[2*e-(e+P*Math.sin(E)),2*t-(t-A*Math.cos(E)),s+P*Math.sin(T),u-A*Math.cos(T),s,u];if(l)return B;M&&(B=B.concat(M));for(var F=0;F{var qOt=nY(),NOt=y8e(),UOt={M:"moveTo",C:"bezierCurveTo"};g8e.exports=function(e,t){e.beginPath(),NOt(qOt(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[UOt[n]].apply(e,i)}),e.closePath()}});var A8e=Te((zgr,w8e)=>{"use strict";var VOt=X4();w8e.exports=GOt;var fk=1e20;function GOt(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,s,u,l,f,c,h,d,p,x;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,u=e,t.stride?f=t.stride:f=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,c=h.getContext("2d"),a=h.width,o=h.height,d=c.getImageData(0,0,a,o),u=d.data,f=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,c=e,a=h.width,o=h.height,d=c.getImageData(0,0,a,o),u=d.data,f=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,u=d.data,f=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&u instanceof window.Uint8ClampedArray||window.Uint8Array&&u instanceof window.Uint8Array)for(l=u,u=Array(a*o),p=0,x=l.length;p{"use strict";var HOt=c8e(),WOt=$M(),jOt=_8e(),XOt=oY(),ZOt=A8e(),lY=document.createElement("canvas"),cv=lY.getContext("2d");T8e.exports=YOt;function YOt(e,t){if(!XOt(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=lY.width=t.w||t.width||200,n=lY.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||HOt(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],u=Math.min(s[0]||0,s[1]||0)/2;if(cv.fillStyle="black",cv.fillRect(0,0,r,n),cv.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?cv.strokeStyle="white":cv.strokeStyle="black",cv.lineWidth=Math.abs(a)),cv.translate(r*.5,n*.5),cv.scale(u,u),KOt()){var l=new Path2D(e);cv.fill(l),a&&cv.stroke(l)}else{var f=WOt(e);jOt(cv,f),cv.fill(),a&&cv.stroke()}cv.setTransform(1,0,0,1,0,0);var c=ZOt(cv,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return c}var WF;function KOt(){if(WF!=null)return WF;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return WF=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return WF=r&&r.data&&r.data[3]===255}});var Y2=Te((Rgr,F8e)=>{"use strict";var XF=ku(),JOt=S8e(),jF=J_(),$Ot=$l(),iS=ei(),Sh=iS.isArrayOrTypedArray,tS=Mu(),M8e=Wc(),E8e=$g().formatColor,rS=lc(),QOt=S3(),fY=qF(),ck=ox(),e9t=N1().DESELECTDIM,k8e={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},t9t=rv().appendArrayPointValue;function r9t(e,t){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=e._context.plotGlPixelRatio;if(t.visible!==!0)return n;if(rS.hasText(t)&&(n.text=D8e(e,t),n.textSel=L8e(e,t,t.selected),n.textUnsel=L8e(e,t,t.unselected)),rS.hasMarkers(t)&&(n.marker=hY(e,t),n.markerSel=cY(e,t,t.selected),n.markerUnsel=cY(e,t,t.unselected),!t.unselected&&Sh(t.marker.opacity))){var a=t.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function hY(e,t){var r=t._length,n=t.marker,i={},a,o=Sh(n.symbol),s=Sh(n.angle),u=Sh(n.color),l=Sh(n.line.color),f=Sh(n.opacity),c=Sh(n.size),h=Sh(n.line.width),d;if(o||(d=fY.isOpenSymbol(n.symbol)),o||u||l||f||s){i.symbols=new Array(r),i.angles=new Array(r),i.colors=new Array(r),i.borderColors=new Array(r);var p=n.symbol,x=n.angle,b=E8e(n,n.opacity,r),v=E8e(n.line,n.opacity,r);if(!Sh(v[0])){var k=v;for(v=Array(r),a=0;ack.TOO_MANY_POINTS||rS.hasMarkers(t)?"rect":"round";if(l&&t.connectgaps){var c=a[0],h=a[1];for(o=0;o1?u[o]:u[0]:u,d=Sh(l)?l.length>1?l[o]:l[0]:l,p=k8e[h],x=k8e[d],b=f?f/.8+1:0,v=-x*b-x*.5;a.offset[o]=[p*b/c,v/c]}}return a}F8e.exports={style:r9t,markerStyle:hY,markerSelection:cY,linePositions:n9t,errorBarPositions:a9t,textPosition:o9t}});var dY=Te((Dgr,B8e)=>{"use strict";var ZF=ei();B8e.exports=function(t,r){var n=r._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(n=r._scene={},n.init=function(){ZF.extendFlat(n,a,i)},n.init(),n.update=function(s){var u=ZF.repeat(s,n.count);if(n.fill2d&&n.fill2d.update(u),n.scatter2d&&n.scatter2d.update(u),n.line2d&&n.line2d.update(u),n.error2d&&n.error2d.update(u.concat(u)),n.select2d&&n.select2d.update(u),n.glText)for(var l=0;l{"use strict";var s9t=UF(),nS=ei(),O8e=Wc(),l9t=wm().findExtremes,q8e=Im(),pY=B0(),u9t=pY.calcMarkerSize,f9t=pY.calcAxisExpansion,c9t=pY.setFirstScatter,h9t=D0(),aS=Y2(),d9t=dY(),N8e=nf().BADNUM,p9t=ox().TOO_MANY_POINTS;V8e.exports=function(t,r){var n=t._fullLayout,i=r._xA=O8e.getFromId(t,r.xaxis,"x"),a=r._yA=O8e.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,u=s>=p9t,l=s*2,f={},c,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),p=q8e(r,i,"x",h),x=q8e(r,a,"y",d),b=p.vals,v=x.vals;r._x=b,r._y=v,r.xperiodalignment&&(r._origX=h,r._xStarts=p.starts,r._xEnds=p.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=x.starts,r._yEnds=x.ends);var k=new Array(l),E=new Array(s);for(c=0;c1&&nS.extendFlat(o.line,aS.linePositions(e,r,n)),o.errorX||o.errorY){var s=aS.errorBarPositions(e,r,n,i,a);o.errorX&&nS.extendFlat(o.errorX,s.x),o.errorY&&nS.extendFlat(o.errorY,s.y)}return o.text&&(nS.extendFlat(o.text,{positions:n},aS.textPosition(e,r,o.text,o.marker)),nS.extendFlat(o.textSel,{positions:n},aS.textPosition(e,r,o.text,o.markerSel)),nS.extendFlat(o.textUnsel,{positions:n},aS.textPosition(e,r,o.text,o.markerUnsel))),o}});var vY=Te((Bgr,W8e)=>{"use strict";var H8e=ei(),m9t=jl(),y9t=N1().DESELECTDIM;function g9t(e){var t=e[0],r=t.trace,n=t.t,i=n._scene,a=n.index,o=i.selectBatch[a],s=i.unselectBatch[a],u=i.textOptions[a],l=i.textSelectedOptions[a]||{},f=i.textUnselectedOptions[a]||{},c=H8e.extendFlat({},u),h,d;if(o.length||s.length){var p=l.color,x=f.color,b=u.color,v=H8e.isArrayOrTypedArray(b);for(c.color=new Array(r._length),h=0;h{"use strict";var j8e=lc(),_9t=vY().styleTextSelection;X8e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u=n[0].t,l=s._length,f=u.x,c=u.y,h=u._scene,d=u.index;if(!h)return o;var p=j8e.hasText(s),x=j8e.hasMarkers(s),b=!x&&!p;if(s.visible!==!0||b)return o;var v=[],k=[];if(r!==!1&&!r.degenerate)for(var E=0;E{"use strict";var x9t=OF();Z8e.exports={moduleType:"trace",name:"scattergl",basePlotModule:Ah(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:sk(),supplyDefaults:LFe(),crossTraceDefaults:dU(),colorbar:ep(),formatLabels:zFe(),calc:G8e(),hoverPoints:x9t.hoverPoints,selectPoints:mY(),meta:{}}});var J8e=Te((Ngr,KF)=>{"use strict";var YF=X4();KF.exports=K8e;KF.exports.to=K8e;KF.exports.from=b9t;function K8e(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=YF(r,0,255)&255,n=YF(n,0,255)&255,i=YF(i,0,255)&255,a=YF(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function b9t(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}});var Uh=Te((Ugr,Q8e)=>{"use strict";var $8e=Object.getOwnPropertySymbols,w9t=Object.prototype.hasOwnProperty,A9t=Object.prototype.propertyIsEnumerable;function T9t(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function S9t(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}Q8e.exports=S9t()?Object.assign:function(e,t){for(var r,n=T9t(e),i,a=1;a{eBe.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";rBe.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";iBe.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var JF=Te((Wgr,oS)=>{"use strict";oS.exports=hk;oS.exports.float32=oS.exports.float=hk;oS.exports.fract32=oS.exports.fract=M9t;var aBe=new Float32Array(1);function M9t(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=hk(e));for(var r=0,n=t.length;r{"use strict";function E9t(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function k9t(e,t){return P9t(e)||E9t(e,t)||sBe(e,t)||R9t()}function C9t(e){return L9t(e)||z9t(e)||sBe(e)||I9t()}function L9t(e){if(Array.isArray(e))return gY(e)}function P9t(e){if(Array.isArray(e))return e}function z9t(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sBe(e,t){if(e){if(typeof e=="string")return gY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gY(e,t)}}function gY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rFe&&Ve>0){var ce=(ye[Ve][0]-Fe)/(ye[Ve][0]-ye[Ve-1][0]);return ye[Ve][1]*(1-ce)+ce*ye[Ve-1][1]}}return 1}var W=[0,0,0],re={showSurface:!1,showContour:!1,projections:[A.slice(),A.slice(),A.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function ae(Fe,ye){var Ve,ce,Ke,nt=ye.axes&&ye.axes.lastCubeProps.axis||W,gt=ye.showSurface,Nt=ye.showContour;for(Ve=0;Ve<3;++Ve)for(gt=gt||ye.surfaceProject[Ve],ce=0;ce<3;++ce)Nt=Nt||ye.contourProject[Ve][ce];for(Ve=0;Ve<3;++Ve){var it=re.projections[Ve];for(ce=0;ce<16;++ce)it[ce]=0;for(ce=0;ce<4;++ce)it[5*ce]=1;it[5*Ve]=0,it[12+Ve]=ye.axesBounds[+(nt[Ve]>0)][Ve],v(it,Fe.model,it);var Ye=re.clipBounds[Ve];for(Ke=0;Ke<2;++Ke)for(ce=0;ce<3;++ce)Ye[Ke][ce]=Fe.clipBounds[Ke][ce];Ye[0][Ve]=-1e8,Ye[1][Ve]=1e8}return re.showSurface=gt,re.showContour=Nt,re}var be={model:A,view:A,projection:A,inverseModel:A.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},Pe=A.slice(),Ce=[1,0,0,0,1,0,0,0,1];function de(Fe,ye){Fe=Fe||{};var Ve=this.gl;Ve.disable(Ve.CULL_FACE),this._colorMap.bind(0);var ce=be;ce.model=Fe.model||A,ce.view=Fe.view||A,ce.projection=Fe.projection||A,ce.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ce.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ce.objectOffset=this.objectOffset,ce.contourColor=this.contourColor[0],ce.inverseModel=k(ce.inverseModel,ce.model);for(var Ke=0;Ke<2;++Ke)for(var nt=ce.clipBounds[Ke],gt=0;gt<3;++gt)nt[gt]=Math.min(Math.max(this.clipBounds[Ke][gt],-1e8),1e8);ce.kambient=this.ambientLight,ce.kdiffuse=this.diffuseLight,ce.kspecular=this.specularLight,ce.roughness=this.roughness,ce.fresnel=this.fresnel,ce.opacity=this.opacity,ce.height=0,ce.permutation=Ce,ce.vertexColor=this.vertexColor;var Nt=Pe;for(v(Nt,ce.view,ce.model),v(Nt,ce.projection,Nt),k(Nt,Nt),Ke=0;Ke<3;++Ke)ce.eyePosition[Ke]=Nt[12+Ke]/Nt[15];var it=Nt[15];for(Ke=0;Ke<3;++Ke)it+=this.lightPosition[Ke]*Nt[4*Ke+3];for(Ke=0;Ke<3;++Ke){var Ye=Nt[12+Ke];for(gt=0;gt<3;++gt)Ye+=Nt[4*gt+Ke]*this.lightPosition[gt];ce.lightPosition[Ke]=Ye/it}var kt=ae(ce,this);if(kt.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Ve.TRIANGLES,this._vertexCount),Ke=0;Ke<3;++Ke)!this.surfaceProject[Ke]||!this.vertexCount||(this._shader.uniforms.model=kt.projections[Ke],this._shader.uniforms.clipBounds=kt.clipBounds[Ke],this._vao.draw(Ve.TRIANGLES,this._vertexCount));this._vao.unbind()}if(kt.showContour){var Tt=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,Tt.bind(),Tt.uniforms=ce;var St=this._contourVAO;for(St.bind(),Ke=0;Ke<3;++Ke)for(Tt.uniforms.permutation=F[Ke],Ve.lineWidth(this.contourWidth[Ke]*this.pixelRatio),gt=0;gt>4)/16)/255,Ke=Math.floor(ce),nt=ce-Ke,gt=ye[1]*(Fe.value[1]+(Fe.value[2]&15)/16)/255,Nt=Math.floor(gt),it=gt-Nt;Ke+=1,Nt+=1;var Ye=Ve.position;Ye[0]=Ye[1]=Ye[2]=0;for(var kt=0;kt<2;++kt)for(var Tt=kt?nt:1-nt,St=0;St<2;++St)for(var Rt=St?it:1-it,Zt=Ke+kt,Et=Nt+St,Ae=Tt*Rt,at=0;at<3;++at)Ye[at]+=this._field[at].get(Zt,Et)*Ae;for(var wt=this._pickResult.level,vt=0;vt<3;++vt)if(wt[vt]=E.le(this.contourLevels[vt],Ye[vt]),wt[vt]<0)this.contourLevels[vt].length>0&&(wt[vt]=0);else if(wt[vt]Math.abs(Ue-Ye[vt])&&(wt[vt]+=1)}for(Ve.index[0]=nt<.5?Ke:Ke+1,Ve.index[1]=it<.5?Nt:Nt+1,Ve.uv[0]=ce/ye[0],Ve.uv[1]=gt/ye[1],at=0;at<3;++at)Ve.dataCoordinate[at]=this._field[at].get(Ve.index[0],Ve.index[1]);return Ve},H.padField=function(Fe,ye){var Ve=ye.shape.slice(),ce=Fe.shape.slice();d.assign(Fe.lo(1,1).hi(Ve[0],Ve[1]),ye),d.assign(Fe.lo(1).hi(Ve[0],1),ye.hi(Ve[0],1)),d.assign(Fe.lo(1,ce[1]-1).hi(Ve[0],1),ye.lo(0,Ve[1]-1).hi(Ve[0],1)),d.assign(Fe.lo(0,1).hi(1,Ve[1]),ye.hi(1)),d.assign(Fe.lo(ce[0]-1,1).hi(1,Ve[1]),ye.lo(Ve[0]-1)),Fe.set(0,0,ye.get(0,0)),Fe.set(0,ce[1]-1,ye.get(0,Ve[1]-1)),Fe.set(ce[0]-1,0,ye.get(Ve[0]-1,0)),Fe.set(ce[0]-1,ce[1]-1,ye.get(Ve[0]-1,Ve[1]-1))};function ke(Fe,ye){return Array.isArray(Fe)?[ye(Fe[0]),ye(Fe[1]),ye(Fe[2])]:[ye(Fe),ye(Fe),ye(Fe)]}function Ee(Fe){return Array.isArray(Fe)?Fe.length===3?[Fe[0],Fe[1],Fe[2],1]:[Fe[0],Fe[1],Fe[2],Fe[3]]:[0,0,0,1]}function Me(Fe){if(Array.isArray(Fe)){if(Array.isArray(Fe))return[Ee(Fe[0]),Ee(Fe[1]),Ee(Fe[2])];var ye=Ee(Fe);return[ye.slice(),ye.slice(),ye.slice()]}}H.update=function(Fe){Fe=Fe||{},this.objectOffset=Fe.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Fe&&(this.contourWidth=ke(Fe.contourWidth,Number)),"showContour"in Fe&&(this.showContour=ke(Fe.showContour,Boolean)),"showSurface"in Fe&&(this.showSurface=!!Fe.showSurface),"contourTint"in Fe&&(this.contourTint=ke(Fe.contourTint,Boolean)),"contourColor"in Fe&&(this.contourColor=Me(Fe.contourColor)),"contourProject"in Fe&&(this.contourProject=ke(Fe.contourProject,function(Vi){return ke(Vi,Boolean)})),"surfaceProject"in Fe&&(this.surfaceProject=Fe.surfaceProject),"dynamicColor"in Fe&&(this.dynamicColor=Me(Fe.dynamicColor)),"dynamicTint"in Fe&&(this.dynamicTint=ke(Fe.dynamicTint,Number)),"dynamicWidth"in Fe&&(this.dynamicWidth=ke(Fe.dynamicWidth,Number)),"opacity"in Fe&&(this.opacity=Fe.opacity),"opacityscale"in Fe&&(this.opacityscale=Fe.opacityscale),"colorBounds"in Fe&&(this.colorBounds=Fe.colorBounds),"vertexColor"in Fe&&(this.vertexColor=Fe.vertexColor?1:0),"colormap"in Fe&&this._colorMap.setPixels(this.genColormap(Fe.colormap,this.opacityscale));var ye=Fe.field||Fe.coords&&Fe.coords[2]||null,Ve=!1;if(ye||(this._field[2].shape[0]||this._field[2].shape[2]?ye=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):ye=this._field[2].hi(0,0)),"field"in Fe||"coords"in Fe){var ce=(ye.shape[0]+2)*(ye.shape[1]+2);ce>this._field[2].data.length&&(c.freeFloat(this._field[2].data),this._field[2].data=c.mallocFloat(s.nextPow2(ce))),this._field[2]=_(this._field[2].data,[ye.shape[0]+2,ye.shape[1]+2]),this.padField(this._field[2],ye),this.shape=ye.shape.slice();for(var Ke=this.shape,nt=0;nt<2;++nt)this._field[2].size>this._field[nt].data.length&&(c.freeFloat(this._field[nt].data),this._field[nt].data=c.mallocFloat(this._field[2].size)),this._field[nt]=_(this._field[nt].data,[Ke[0]+2,Ke[1]+2]);if(Fe.coords){var gt=Fe.coords;if(!Array.isArray(gt)||gt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(nt=0;nt<2;++nt){var Nt=gt[nt];for(St=0;St<2;++St)if(Nt.shape[St]!==Ke[St])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[nt],Nt)}}else if(Fe.ticks){var it=Fe.ticks;if(!Array.isArray(it)||it.length!==2)throw new Error("gl-surface: invalid ticks");for(nt=0;nt<2;++nt){var Ye=it[nt];if((Array.isArray(Ye)||Ye.length)&&(Ye=_(Ye)),Ye.shape[0]!==Ke[nt])throw new Error("gl-surface: invalid tick length");var kt=_(Ye.data,Ke);kt.stride[nt]=Ye.stride[0],kt.stride[nt^1]=0,this.padField(this._field[nt],kt)}}else{for(nt=0;nt<2;++nt){var Tt=[0,0];Tt[nt]=1,this._field[nt]=_(this._field[nt].data,[Ke[0]+2,Ke[1]+2],Tt,0)}this._field[0].set(0,0,0);for(var St=0;St0){for(var yi=0;yi<5;++yi)Dr.pop();Re-=1}continue e}}}Di.push(Re)}this._contourOffsets[Mr]=di,this._contourCounts[Mr]=Di}var Ei=c.mallocFloat(Dr.length);for(nt=0;ntU||B<0||B>U)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[A,B],P.bind(),F.texImage2D(F.TEXTURE_2D,0,P.format,A,B,0,P.format,P.type,null),P._mipLevels=[0],P}function v(P,A,B,F,U,G){this.gl=P,this.handle=A,this.format=U,this.type=G,this._shape=[B,F],this._mipLevels=[0],this._magFilter=P.NEAREST,this._minFilter=P.NEAREST,this._wrapS=P.CLAMP_TO_EDGE,this._wrapT=P.CLAMP_TO_EDGE,this._anisoSamples=1;var j=this,H=[this._wrapS,this._wrapT];Object.defineProperties(H,[{get:function(){return j._wrapS},set:function(W){return j.wrapS=W}},{get:function(){return j._wrapT},set:function(W){return j.wrapT=W}}]),this._wrapVector=H;var N=[this._shape[0],this._shape[1]];Object.defineProperties(N,[{get:function(){return j._shape[0]},set:function(W){return j.width=W}},{get:function(){return j._shape[1]},set:function(W){return j.height=W}}]),this._shapeVector=N}var k=v.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(P){this.bind();var A=this.gl;if(this.type===A.FLOAT&&f.indexOf(P)>=0&&(A.getExtension("OES_texture_float_linear")||(P=A.NEAREST)),c.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var A=this.gl;if(this.type===A.FLOAT&&f.indexOf(P)>=0&&(A.getExtension("OES_texture_float_linear")||(P=A.NEAREST)),c.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var A=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,A!==this._anisoSamples){var B=this.gl.getExtension("EXT_texture_filter_anisotropic");B&&this.gl.texParameterf(this.gl.TEXTURE_2D,B.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,P),this._wrapS=P}},wrapT:{get:function(){return this._wrapT},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,P),this._wrapT=P}},wrap:{get:function(){return this._wrapVector},set:function(P){if(Array.isArray(P)||(P=[P,P]),P.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var A=0;A<2;++A)if(h.indexOf(P[A])<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);this._wrapS=P[0],this._wrapT=P[1];var B=this.gl;return this.bind(),B.texParameteri(B.TEXTURE_2D,B.TEXTURE_WRAP_S,this._wrapS),B.texParameteri(B.TEXTURE_2D,B.TEXTURE_WRAP_T,this._wrapT),P}},shape:{get:function(){return this._shapeVector},set:function(P){if(!Array.isArray(P))P=[P|0,P|0];else if(P.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return b(this,P[0]|0,P[1]|0),[P[0]|0,P[1]|0]}},width:{get:function(){return this._shape[0]},set:function(P){return P=P|0,b(this,P,this._shape[1]),P}},height:{get:function(){return this._shape[1]},set:function(P){return P=P|0,b(this,this._shape[0],P),P}}}),k.bind=function(P){var A=this.gl;return P!==void 0&&A.activeTexture(A.TEXTURE0+(P|0)),A.bindTexture(A.TEXTURE_2D,this.handle),P!==void 0?P|0:A.getParameter(A.ACTIVE_TEXTURE)-A.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var P=Math.min(this._shape[0],this._shape[1]),A=0;P>0;++A,P>>>=1)this._mipLevels.indexOf(A)<0&&this._mipLevels.push(A)},k.setPixels=function(P,A,B,F){var U=this.gl;this.bind(),Array.isArray(A)?(F=B,B=A[1]|0,A=A[0]|0):(A=A||0,B=B||0),F=F||0;var G=p(P)?P:P.raw;if(G){var j=this._mipLevels.indexOf(F)<0;j?(U.texImage2D(U.TEXTURE_2D,0,this.format,this.format,this.type,G),this._mipLevels.push(F)):U.texSubImage2D(U.TEXTURE_2D,F,A,B,this.format,this.type,G)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||A+P.shape[1]>this._shape[1]>>>F||B+P.shape[0]>this._shape[0]>>>F||A<0||B<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");T(U,A,B,F,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function E(P,A){return P.length===3?A[2]===1&&A[1]===P[0]*P[2]&&A[0]===P[2]:A[0]===1&&A[1]===P[0]}function T(P,A,B,F,U,G,j,H){var N=H.dtype,W=H.shape.slice();if(W.length<2||W.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var re=0,ae=0,be=E(W,H.stride.slice());N==="float32"?re=P.FLOAT:N==="float64"?(re=P.FLOAT,be=!1,N="float32"):N==="uint8"?re=P.UNSIGNED_BYTE:(re=P.UNSIGNED_BYTE,be=!1,N="uint8");var Pe=1;if(W.length===2)ae=P.LUMINANCE,W=[W[0],W[1],1],H=s(H.data,W,[H.stride[0],H.stride[1],1],H.offset);else if(W.length===3){if(W[2]===1)ae=P.ALPHA;else if(W[2]===2)ae=P.LUMINANCE_ALPHA;else if(W[2]===3)ae=P.RGB;else if(W[2]===4)ae=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Pe=W[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((ae===P.LUMINANCE||ae===P.ALPHA)&&(U===P.LUMINANCE||U===P.ALPHA)&&(ae=U),ae!==U)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var Ce=H.size,de=j.indexOf(F)<0;if(de&&j.push(F),re===G&&be)H.offset===0&&H.data.length===Ce?de?P.texImage2D(P.TEXTURE_2D,F,U,W[0],W[1],0,U,G,H.data):P.texSubImage2D(P.TEXTURE_2D,F,A,B,W[0],W[1],U,G,H.data):de?P.texImage2D(P.TEXTURE_2D,F,U,W[0],W[1],0,U,G,H.data.subarray(H.offset,H.offset+Ce)):P.texSubImage2D(P.TEXTURE_2D,F,A,B,W[0],W[1],U,G,H.data.subarray(H.offset,H.offset+Ce));else{var te;G===P.FLOAT?te=l.mallocFloat32(Ce):te=l.mallocUint8(Ce);var ke=s(te,W,[W[2],W[2]*W[0],1]);re===P.FLOAT&&G===P.UNSIGNED_BYTE?_(ke,H):u.assign(ke,H),de?P.texImage2D(P.TEXTURE_2D,F,U,W[0],W[1],0,U,G,te.subarray(0,Ce)):P.texSubImage2D(P.TEXTURE_2D,F,A,B,W[0],W[1],U,G,te.subarray(0,Ce)),G===P.FLOAT?l.freeFloat32(te):l.freeUint8(te)}}function L(P){var A=P.createTexture();return P.bindTexture(P.TEXTURE_2D,A),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),A}function x(P,A,B,F,U){var G=P.getParameter(P.MAX_TEXTURE_SIZE);if(A<0||A>G||B<0||B>G)throw new Error("gl-texture2d: Invalid texture shape");if(U===P.FLOAT&&!P.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var j=L(P);return P.texImage2D(P.TEXTURE_2D,0,F,A,B,0,F,U,null),new v(P,j,A,B,F,U)}function C(P,A,B,F,U,G){var j=L(P);return P.texImage2D(P.TEXTURE_2D,0,U,U,G,A),new v(P,j,B,F,U,G)}function M(P,A){var B=A.dtype,F=A.shape.slice(),U=P.getParameter(P.MAX_TEXTURE_SIZE);if(F[0]<0||F[0]>U||F[1]<0||F[1]>U)throw new Error("gl-texture2d: Invalid texture size");var G=E(F,A.stride.slice()),j=0;B==="float32"?j=P.FLOAT:B==="float64"?(j=P.FLOAT,G=!1,B="float32"):B==="uint8"?j=P.UNSIGNED_BYTE:(j=P.UNSIGNED_BYTE,G=!1,B="uint8");var H=0;if(F.length===2)H=P.LUMINANCE,F=[F[0],F[1],1],A=s(A.data,F,[A.stride[0],A.stride[1],1],A.offset);else if(F.length===3)if(F[2]===1)H=P.ALPHA;else if(F[2]===2)H=P.LUMINANCE_ALPHA;else if(F[2]===3)H=P.RGB;else if(F[2]===4)H=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");j===P.FLOAT&&!P.getExtension("OES_texture_float")&&(j=P.UNSIGNED_BYTE,G=!1);var N,W,re=A.size;if(G)A.offset===0&&A.data.length===re?N=A.data:N=A.data.subarray(A.offset,A.offset+re);else{var ae=[F[2],F[2]*F[0],1];W=l.malloc(re,B);var be=s(W,F,ae,0);(B==="float32"||B==="float64")&&j===P.UNSIGNED_BYTE?_(be,A):u.assign(be,A),N=W.subarray(0,re)}var Pe=L(P);return P.texImage2D(P.TEXTURE_2D,0,H,F[0],F[1],0,H,j,N),G||l.free(W),new v(P,Pe,F[0],F[1],H,j)}function m(P){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||d(P),typeof arguments[1]=="number")return x(P,arguments[1],arguments[2],arguments[3]||P.RGBA,arguments[4]||P.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return x(P,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var A=arguments[1],B=p(A)?A:A.raw;if(B)return C(P,B,A.width|0,A.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(A.shape&&A.data&&A.stride)return M(P,A)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(i){"use strict";function a(o,s,u){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var l=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>l)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(_)}},9226:function(i){i.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}},3126:function(i){i.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}},3990:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091:function(i){i.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2];return o[0]=f*p-c*d,o[1]=c*h-l*p,o[2]=l*d-f*h,o}},5455:function(i,a,o){i.exports=o(7056)},7056:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2];return Math.sqrt(u*u+l*l+f*f)}},4008:function(i,a,o){i.exports=o(6690)},6690:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]/u[0],o[1]=s[1]/u[1],o[2]=s[2]/u[2],o}},244:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613:function(i){i.exports=1e-6},9922:function(i,a,o){i.exports=u;var s=o(2613);function u(l,f){var c=l[0],h=l[1],d=l[2],p=f[0],_=f[1],b=f[2];return Math.abs(c-p)<=s*Math.max(1,Math.abs(c),Math.abs(p))&&Math.abs(h-_)<=s*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(d-b)<=s*Math.max(1,Math.abs(d),Math.abs(b))}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681:function(i){i.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}},5137:function(i,a,o){i.exports=u;var s=o(1091)();function u(l,f,c,h,d,p){var _,b;for(f||(f=3),c||(c=0),h?b=Math.min(h*f+c,l.length):b=l.length,_=c;_0&&(c=1/Math.sqrt(c),o[0]=s[0]*c,o[1]=s[1]*c,o[2]=s[2]*c),o}},7636:function(i){i.exports=a;function a(o,s){s=s||1;var u=Math.random()*2*Math.PI,l=Math.random()*2-1,f=Math.sqrt(1-l*l)*s;return o[0]=Math.cos(u)*f,o[1]=Math.sin(u)*f,o[2]=l*s,o}},6894:function(i){i.exports=a;function a(o,s,u,l){var f=u[1],c=u[2],h=s[1]-f,d=s[2]-c,p=Math.sin(l),_=Math.cos(l);return o[0]=s[0],o[1]=f+h*_-d*p,o[2]=c+h*p+d*_,o}},109:function(i){i.exports=a;function a(o,s,u,l){var f=u[0],c=u[2],h=s[0]-f,d=s[2]-c,p=Math.sin(l),_=Math.cos(l);return o[0]=f+d*p+h*_,o[1]=s[1],o[2]=c+d*_-h*p,o}},8692:function(i){i.exports=a;function a(o,s,u,l){var f=u[0],c=u[1],h=s[0]-f,d=s[1]-c,p=Math.sin(l),_=Math.cos(l);return o[0]=f+h*_-d*p,o[1]=c+h*p+d*_,o[2]=s[2],o}},2447:function(i){i.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}},6621:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u,o[1]=s[1]*u,o[2]=s[2]*u,o}},8489:function(i){i.exports=a;function a(o,s,u,l){return o[0]=s[0]+u[0]*l,o[1]=s[1]+u[1]*l,o[2]=s[2]+u[2]*l,o}},1463:function(i){i.exports=a;function a(o,s,u,l){return o[0]=s,o[1]=u,o[2]=l,o}},6141:function(i,a,o){i.exports=o(2953)},5486:function(i,a,o){i.exports=o(3066)},2953:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2];return u*u+l*l+f*f}},3066:function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2];return s*s+u*u+l*l}},2229:function(i,a,o){i.exports=o(6843)},6843:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]-u[0],o[1]=s[1]-u[1],o[2]=s[2]-u[2],o}},492:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2];return o[0]=l*u[0]+f*u[3]+c*u[6],o[1]=l*u[1]+f*u[4]+c*u[7],o[2]=l*u[2]+f*u[5]+c*u[8],o}},5673:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[3]*l+u[7]*f+u[11]*c+u[15];return h=h||1,o[0]=(u[0]*l+u[4]*f+u[8]*c+u[12])/h,o[1]=(u[1]*l+u[5]*f+u[9]*c+u[13])/h,o[2]=(u[2]*l+u[6]*f+u[10]*c+u[14])/h,o}},264:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2],_=u[3],b=_*l+d*c-p*f,v=_*f+p*l-h*c,k=_*c+h*f-d*l,E=-h*l-d*f-p*c;return o[0]=b*_+E*-h+v*-p-k*-d,o[1]=v*_+E*-d+k*-h-b*-p,o[2]=k*_+E*-p+b*-d-v*-h,o}},4361:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]+u[0],o[1]=s[1]+u[1],o[2]=s[2]+u[2],o[3]=s[3]+u[3],o}},2335:function(i){i.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}},2933:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}},7536:function(i){i.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return Math.sqrt(u*u+l*l+f*f+c*c)}},1373:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]/u[0],o[1]=s[1]/u[1],o[2]=s[2]/u[2],o[3]=s[3]/u[3],o}},3750:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390:function(i){i.exports=a;function a(o,s,u,l){var f=new Float32Array(4);return f[0]=o,f[1]=s,f[2]=u,f[3]=l,f}},9970:function(i,a,o){i.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}},4494:function(i){i.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}},6808:function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2],f=o[3];return Math.sqrt(s*s+u*u+l*l+f*f)}},2573:function(i){i.exports=a;function a(o,s,u,l){var f=s[0],c=s[1],h=s[2],d=s[3];return o[0]=f+l*(u[0]-f),o[1]=c+l*(u[1]-c),o[2]=h+l*(u[2]-h),o[3]=d+l*(u[3]-d),o}},160:function(i){i.exports=a;function a(o,s,u){return o[0]=Math.max(s[0],u[0]),o[1]=Math.max(s[1],u[1]),o[2]=Math.max(s[2],u[2]),o[3]=Math.max(s[3],u[3]),o}},2334:function(i){i.exports=a;function a(o,s,u){return o[0]=Math.min(s[0],u[0]),o[1]=Math.min(s[1],u[1]),o[2]=Math.min(s[2],u[2]),o[3]=Math.min(s[3],u[3]),o}},3576:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u[0],o[1]=s[1]*u[1],o[2]=s[2]*u[2],o[3]=s[3]*u[3],o}},1498:function(i){i.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}},5177:function(i){i.exports=a;function a(o,s){var u=s[0],l=s[1],f=s[2],c=s[3],h=u*u+l*l+f*f+c*c;return h>0&&(h=1/Math.sqrt(h),o[0]=u*h,o[1]=l*h,o[2]=f*h,o[3]=c*h),o}},9131:function(i,a,o){var s=o(5177),u=o(9288);i.exports=l;function l(f,c){return c=c||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),s(f,f),u(f,f,c),f}},9288:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u,o[1]=s[1]*u,o[2]=s[2]*u,o[3]=s[3]*u,o}},4844:function(i){i.exports=a;function a(o,s,u,l){return o[0]=s[0]+u[0]*l,o[1]=s[1]+u[1]*l,o[2]=s[2]+u[2]*l,o[3]=s[3]+u[3]*l,o}},4578:function(i){i.exports=a;function a(o,s,u,l,f){return o[0]=s,o[1]=u,o[2]=l,o[3]=f,o}},7960:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return u*u+l*l+f*f+c*c}},483:function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2],f=o[3];return s*s+u*u+l*l+f*f}},6860:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]-u[0],o[1]=s[1]-u[1],o[2]=s[2]-u[2],o[3]=s[3]-u[3],o}},5352:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=s[3];return o[0]=u[0]*l+u[4]*f+u[8]*c+u[12]*h,o[1]=u[1]*l+u[5]*f+u[9]*c+u[13]*h,o[2]=u[2]*l+u[6]*f+u[10]*c+u[14]*h,o[3]=u[3]*l+u[7]*f+u[11]*c+u[15]*h,o}},4041:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2],_=u[3],b=_*l+d*c-p*f,v=_*f+p*l-h*c,k=_*c+h*f-d*l,E=-h*l-d*f-p*c;return o[0]=b*_+E*-h+v*-p-k*-d,o[1]=v*_+E*-d+k*-h-b*-p,o[2]=k*_+E*-p+b*-d-v*-h,o[3]=s[3],o}},1848:function(i,a,o){var s=o(4905),u=o(6468);i.exports=l;function l(f){for(var c=Array.isArray(f)?f:s(f),h=0;h0)continue;vt=Ae.slice(0,1).join("")}return Ve(vt),Ce+=vt.length,N=N.slice(vt.length),N.length}while(!0)}function St(){return/[^a-fA-F0-9]/.test(j)?(Ve(N.join("")),G=h,F):(N.push(j),H=j,F+1)}function Rt(){return j==="."||/[eE]/.test(j)?(N.push(j),G=E,H=j,F+1):j==="x"&&N.length===1&&N[0]==="0"?(G=m,N.push(j),H=j,F+1):/[^\d]/.test(j)?(Ve(N.join("")),G=h,F):(N.push(j),H=j,F+1)}function Zt(){return j==="f"&&(N.push(j),H=j,F+=1),/[eE]/.test(j)||(j==="-"||j==="+")&&/[eE]/.test(H)?(N.push(j),H=j,F+1):/[^\d]/.test(j)?(Ve(N.join("")),G=h,F):(N.push(j),H=j,F+1)}function Et(){if(/[^\d\w_]/.test(j)){var Ae=N.join("");return ye[Ae]?G=x:Fe[Ae]?G=L:G=T,Ve(N.join("")),G=h,F}return N.push(j),H=j,F+1}}},3508:function(i,a,o){var s=o(6852);s=s.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),i.exports=s.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(i){i.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(i,a,o){var s=o(620);i.exports=s.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(i){i.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(i,a,o){var s=o(5874);i.exports=u;function u(l,f){var c=s(f),h=[];return h=h.concat(c(l)),h=h.concat(c(null)),h}},3236:function(i){i.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],u=0;u>1,b=-7,v=u?f-1:0,k=u?-1:1,E=o[s+v];for(v+=k,c=E&(1<<-b)-1,E>>=-b,b+=d;b>0;c=c*256+o[s+v],v+=k,b-=8);for(h=c&(1<<-b)-1,c>>=-b,b+=l;b>0;h=h*256+o[s+v],v+=k,b-=8);if(c===0)c=1-_;else{if(c===p)return h?NaN:(E?-1:1)*(1/0);h=h+Math.pow(2,l),c=c-_}return(E?-1:1)*h*Math.pow(2,c-l)},a.write=function(o,s,u,l,f,c){var h,d,p,_=c*8-f-1,b=(1<<_)-1,v=b>>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=l?0:c-1,T=l?1:-1,L=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,h=b):(h=Math.floor(Math.log(s)/Math.LN2),s*(p=Math.pow(2,-h))<1&&(h--,p*=2),h+v>=1?s+=k/p:s+=k*Math.pow(2,1-v),s*p>=2&&(h++,p/=2),h+v>=b?(d=0,h=b):h+v>=1?(d=(s*p-1)*Math.pow(2,f),h=h+v):(d=s*Math.pow(2,v-1)*Math.pow(2,f),h=0));f>=8;o[u+E]=d&255,E+=T,d/=256,f-=8);for(h=h<0;o[u+E]=h&255,E+=T,h/=256,_-=8);o[u+E-T]|=L*128}},8954:function(i,a,o){"use strict";i.exports=v;var s=o(3250),u=o(6803).Fw;function l(k,E,T){this.vertices=k,this.adjacent=E,this.boundary=T,this.lastVisited=-1}l.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var E=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=E};function f(k,E,T){this.vertices=k,this.cell=E,this.index=T}function c(k,E){return u(k.vertices,E.vertices)}function h(k){return function(){var E=this.tuple;return k.apply(this,E)}}function d(k){var E=s[k+1];return E||(E=s),h(E)}var p=[];function _(k,E,T){this.dimension=k,this.vertices=E,this.simplices=T,this.interior=T.filter(function(C){return!C.boundary}),this.tuple=new Array(k+1);for(var L=0;L<=k;++L)this.tuple[L]=this.vertices[L];var x=p[k];x||(x=p[k]=d(k)),this.orient=x}var b=_.prototype;b.handleBoundaryDegeneracy=function(k,E){var T=this.dimension,L=this.vertices.length-1,x=this.tuple,C=this.vertices,M=[k];for(k.lastVisited=-L;M.length>0;){k=M.pop();for(var m=k.adjacent,P=0;P<=T;++P){var A=m[P];if(!(!A.boundary||A.lastVisited<=-L)){for(var B=A.vertices,F=0;F<=T;++F){var U=B[F];U<0?x[F]=E:x[F]=C[U]}var G=this.orient();if(G>0)return A;A.lastVisited=-L,G===0&&M.push(A)}}}return null},b.walk=function(k,E){var T=this.vertices.length-1,L=this.dimension,x=this.vertices,C=this.tuple,M=E?this.interior.length*Math.random()|0:this.interior.length-1,m=this.interior[M];e:for(;!m.boundary;){for(var P=m.vertices,A=m.adjacent,B=0;B<=L;++B)C[B]=x[P[B]];m.lastVisited=T;for(var B=0;B<=L;++B){var F=A[B];if(!(F.lastVisited>=T)){var U=C[B];C[B]=k;var G=this.orient();if(C[B]=U,G<0){m=F;continue e}else F.boundary?F.lastVisited=-T:F.lastVisited=T}}return}return m},b.addPeaks=function(k,E){var T=this.vertices.length-1,L=this.dimension,x=this.vertices,C=this.tuple,M=this.interior,m=this.simplices,P=[E];E.lastVisited=T,E.vertices[E.vertices.indexOf(-1)]=T,E.boundary=!1,M.push(E);for(var A=[];P.length>0;){var E=P.pop(),B=E.vertices,F=E.adjacent,U=B.indexOf(T);if(!(U<0)){for(var G=0;G<=L;++G)if(G!==U){var j=F[G];if(!(!j.boundary||j.lastVisited>=T)){var H=j.vertices;if(j.lastVisited!==-T){for(var N=0,W=0;W<=L;++W)H[W]<0?(N=W,C[W]=k):C[W]=x[H[W]];var re=this.orient();if(re>0){H[N]=T,j.boundary=!1,M.push(j),P.push(j),j.lastVisited=T;continue}else j.lastVisited=-T}var ae=j.adjacent,be=B.slice(),Pe=F.slice(),Ce=new l(be,Pe,!0);m.push(Ce);var de=ae.indexOf(E);if(!(de<0)){ae[de]=Ce,Pe[U]=j,be[G]=-1,Pe[G]=E,F[G]=Ce,Ce.flip();for(var W=0;W<=L;++W){var te=be[W];if(!(te<0||te===T)){for(var ke=new Array(L-1),Ee=0,Me=0;Me<=L;++Me){var Ne=be[Me];Ne<0||Me===W||(ke[Ee++]=Ne)}A.push(new f(ke,Ce,W))}}}}}}}A.sort(c);for(var G=0;G+1=0?M[P++]=m[B]:A=B&1;if(A===(k&1)){var F=M[0];M[0]=M[1],M[1]=F}E.push(M)}}return E};function v(k,E){var T=k.length;if(T===0)throw new Error("Must have at least d+1 points");var L=k[0].length;if(T<=L)throw new Error("Must input at least d+1 points");var x=k.slice(0,L+1),C=s.apply(void 0,x);if(C===0)throw new Error("Input not in general position");for(var M=new Array(L+1),m=0;m<=L;++m)M[m]=m;C<0&&(M[0]=1,M[1]=0);for(var P=new l(M,new Array(L+1),!1),A=P.adjacent,B=new Array(L+2),m=0;m<=L;++m){for(var F=M.slice(),U=0;U<=L;++U)U===m&&(F[U]=-1);var G=F[0];F[0]=F[1],F[1]=G;var j=new l(F,new Array(L+1),!0);A[m]=j,B[m]=j}B[L+1]=P;for(var m=0;m<=L;++m)for(var F=A[m].vertices,H=A[m].adjacent,U=0;U<=L;++U){var N=F[U];if(N<0){H[U]=P;continue}for(var W=0;W<=L;++W)A[W].vertices.indexOf(N)<0&&(H[U]=A[W])}for(var re=new _(L,x,B),ae=!!E,m=L+1;m3*(B+1)?_(this,A):this.left.insert(A):this.left=C([A]);else if(A[0]>this.mid)this.right?4*(this.right.count+1)>3*(B+1)?_(this,A):this.right.insert(A):this.right=C([A]);else{var F=s.ge(this.leftPoints,A,L),U=s.ge(this.rightPoints,A,x);this.leftPoints.splice(F,0,A),this.rightPoints.splice(U,0,A)}},h.remove=function(A){var B=this.count-this.leftPoints;if(A[1]3*(B-1))return b(this,A);var U=this.left.remove(A);return U===f?(this.left=null,this.count-=1,l):(U===l&&(this.count-=1),U)}else if(A[0]>this.mid){if(!this.right)return u;var G=this.left?this.left.count:0;if(4*G>3*(B-1))return b(this,A);var U=this.right.remove(A);return U===f?(this.right=null,this.count-=1,l):(U===l&&(this.count-=1),U)}else{if(this.count===1)return this.leftPoints[0]===A?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===A){if(this.left&&this.right){for(var j=this,H=this.left;H.right;)j=H,H=H.right;if(j===this)H.right=this.right;else{var N=this.left,U=this.right;j.count-=H.count,j.right=H.left,H.left=N,H.right=U}d(this,H),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?d(this,this.left):d(this,this.right);return l}for(var N=s.ge(this.leftPoints,A,L);N=0&&A[U][1]>=B;--U){var G=F(A[U]);if(G)return G}}function E(A,B){for(var F=0;Fthis.mid){if(this.right){var F=this.right.queryPoint(A,B);if(F)return F}return k(this.rightPoints,A,B)}else return E(this.leftPoints,B)},h.queryInterval=function(A,B,F){if(Athis.mid&&this.right){var U=this.right.queryInterval(A,B,F);if(U)return U}return Bthis.mid?k(this.rightPoints,A,F):E(this.leftPoints,F)};function T(A,B){return A-B}function L(A,B){var F=A[0]-B[0];return F||A[1]-B[1]}function x(A,B){var F=A[1]-B[1];return F||A[0]-B[0]}function C(A){if(A.length===0)return null;for(var B=[],F=0;F>1],G=[],j=[],H=[],F=0;F13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}},395:function(i){function a(o,s,u){return o*(1-u)+s*u}i.exports=a},2652:function(i,a,o){var s=o(4335),u=o(6864),l=o(1903),f=o(9921),c=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},p=u(),_=u(),b=[0,0,0,0],v=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];i.exports=function(C,M,m,P,A,B){if(M||(M=[0,0,0]),m||(m=[0,0,0]),P||(P=[0,0,0]),A||(A=[0,0,0,1]),B||(B=[0,0,0,1]),!s(p,C)||(l(_,p),_[3]=0,_[7]=0,_[11]=0,_[15]=1,Math.abs(f(_)<1e-8)))return!1;var F=p[3],U=p[7],G=p[11],j=p[12],H=p[13],N=p[14],W=p[15];if(F!==0||U!==0||G!==0){b[0]=F,b[1]=U,b[2]=G,b[3]=W;var re=c(_,_);if(!re)return!1;h(_,_),E(A,b,_)}else A[0]=A[1]=A[2]=0,A[3]=1;if(M[0]=j,M[1]=H,M[2]=N,T(v,p),m[0]=d.length(v[0]),d.normalize(v[0],v[0]),P[0]=d.dot(v[0],v[1]),L(v[1],v[1],v[0],1,-P[0]),m[1]=d.length(v[1]),d.normalize(v[1],v[1]),P[0]/=m[1],P[1]=d.dot(v[0],v[2]),L(v[2],v[2],v[0],1,-P[1]),P[2]=d.dot(v[1],v[2]),L(v[2],v[2],v[1],1,-P[2]),m[2]=d.length(v[2]),d.normalize(v[2],v[2]),P[1]/=m[2],P[2]/=m[2],d.cross(k,v[1],v[2]),d.dot(v[0],k)<0)for(var ae=0;ae<3;ae++)m[ae]*=-1,v[ae][0]*=-1,v[ae][1]*=-1,v[ae][2]*=-1;return B[0]=.5*Math.sqrt(Math.max(1+v[0][0]-v[1][1]-v[2][2],0)),B[1]=.5*Math.sqrt(Math.max(1-v[0][0]+v[1][1]-v[2][2],0)),B[2]=.5*Math.sqrt(Math.max(1-v[0][0]-v[1][1]+v[2][2],0)),B[3]=.5*Math.sqrt(Math.max(1+v[0][0]+v[1][1]+v[2][2],0)),v[2][1]>v[1][2]&&(B[0]=-B[0]),v[0][2]>v[2][0]&&(B[1]=-B[1]),v[1][0]>v[0][1]&&(B[2]=-B[2]),!0};function E(x,C,M){var m=C[0],P=C[1],A=C[2],B=C[3];return x[0]=M[0]*m+M[4]*P+M[8]*A+M[12]*B,x[1]=M[1]*m+M[5]*P+M[9]*A+M[13]*B,x[2]=M[2]*m+M[6]*P+M[10]*A+M[14]*B,x[3]=M[3]*m+M[7]*P+M[11]*A+M[15]*B,x}function T(x,C){x[0][0]=C[0],x[0][1]=C[1],x[0][2]=C[2],x[1][0]=C[4],x[1][1]=C[5],x[1][2]=C[6],x[2][0]=C[8],x[2][1]=C[9],x[2][2]=C[10]}function L(x,C,M,m,P){x[0]=C[0]*m+M[0]*P,x[1]=C[1]*m+M[1]*P,x[2]=C[2]*m+M[2]*P}},4335:function(i){i.exports=function(o,s){var u=s[15];if(u===0)return!1;for(var l=1/u,f=0;f<16;f++)o[f]=s[f]*l;return!0}},7442:function(i,a,o){var s=o(6658),u=o(7182),l=o(2652),f=o(9921),c=o(8648),h=b(),d=b(),p=b();i.exports=_;function _(E,T,L,x){if(f(T)===0||f(L)===0)return!1;var C=l(T,h.translate,h.scale,h.skew,h.perspective,h.quaternion),M=l(L,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!C||!M?!1:(s(p.translate,h.translate,d.translate,x),s(p.skew,h.skew,d.skew,x),s(p.scale,h.scale,d.scale,x),s(p.perspective,h.perspective,d.perspective,x),c(p.quaternion,h.quaternion,d.quaternion,x),u(E,p.translate,p.scale,p.skew,p.perspective,p.quaternion),!0)}function b(){return{translate:v(),scale:v(1),skew:v(),perspective:k(),quaternion:k()}}function v(E){return[E||0,E||0,E||0]}function k(){return[0,0,0,1]}},7182:function(i,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},u=s.create(),l=s.create();i.exports=function(c,h,d,p,_,b){return s.identity(c),s.fromRotationTranslation(c,b,h),c[3]=_[0],c[7]=_[1],c[11]=_[2],c[15]=_[3],s.identity(l),p[2]!==0&&(l[9]=p[2],s.multiply(c,c,l)),p[1]!==0&&(l[9]=0,l[8]=p[1],s.multiply(c,c,l)),p[0]!==0&&(l[8]=0,l[4]=p[0],s.multiply(c,c,l)),s.scale(c,c,d),c}},1811:function(i,a,o){"use strict";var s=o(2478),u=o(7442),l=o(7608),f=o(5567),c=o(2408),h=o(7089),d=o(6582),p=o(7656),_=o(2504),b=o(3536),v=[0,0,0];i.exports=L;function k(x){this._components=x.slice(),this._time=[0],this.prevMatrix=x.slice(),this.nextMatrix=x.slice(),this.computedMatrix=x.slice(),this.computedInverse=x.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var E=k.prototype;E.recalcMatrix=function(x){var C=this._time,M=s.le(C,x),m=this.computedMatrix;if(!(M<0)){var P=this._components;if(M===C.length-1)for(var A=16*M,B=0;B<16;++B)m[B]=P[A++];else{for(var F=C[M+1]-C[M],A=16*M,U=this.prevMatrix,G=!0,B=0;B<16;++B)U[B]=P[A++];for(var j=this.nextMatrix,B=0;B<16;++B)j[B]=P[A++],G=G&&U[B]===j[B];if(F<1e-6||G)for(var B=0;B<16;++B)m[B]=U[B];else u(m,U,j,(x-C[M])/F)}var H=this.computedUp;H[0]=m[1],H[1]=m[5],H[2]=m[9],b(H,H);var N=this.computedInverse;l(N,m);var W=this.computedEye,re=N[15];W[0]=N[12]/re,W[1]=N[13]/re,W[2]=N[14]/re;for(var ae=this.computedCenter,be=Math.exp(this.computedRadius[0]),B=0;B<3;++B)ae[B]=W[B]-m[2+4*B]*be}},E.idle=function(x){if(!(x1&&s(l[d[v-2]],l[d[v-1]],b)<=0;)v-=1,d.pop();for(d.push(_),v=p.length;v>1&&s(l[p[v-2]],l[p[v-1]],b)>=0;)v-=1,p.pop();p.push(_)}for(var k=new Array(p.length+d.length-2),E=0,c=0,T=d.length;c0;--L)k[E++]=p[L];return k}},351:function(i,a,o){"use strict";i.exports=u;var s=o(4687);function u(l,f){f||(f=l,l=window);var c=0,h=0,d=0,p={shift:!1,alt:!1,control:!1,meta:!1},_=!1;function b(A){var B=!1;return"altKey"in A&&(B=B||A.altKey!==p.alt,p.alt=!!A.altKey),"shiftKey"in A&&(B=B||A.shiftKey!==p.shift,p.shift=!!A.shiftKey),"ctrlKey"in A&&(B=B||A.ctrlKey!==p.control,p.control=!!A.ctrlKey),"metaKey"in A&&(B=B||A.metaKey!==p.meta,p.meta=!!A.metaKey),B}function v(A,B){var F=s.x(B),U=s.y(B);"buttons"in B&&(A=B.buttons|0),(A!==c||F!==h||U!==d||b(B))&&(c=A|0,h=F||0,d=U||0,f&&f(c,h,d,p))}function k(A){v(0,A)}function E(){(c||h||d||p.shift||p.alt||p.meta||p.control)&&(h=d=0,c=0,p.shift=p.alt=p.control=p.meta=!1,f&&f(0,0,0,p))}function T(A){b(A)&&f&&f(c,h,d,p)}function L(A){s.buttons(A)===0?v(0,A):v(c,A)}function x(A){v(c|s.buttons(A),A)}function C(A){v(c&~s.buttons(A),A)}function M(){_||(_=!0,l.addEventListener("mousemove",L),l.addEventListener("mousedown",x),l.addEventListener("mouseup",C),l.addEventListener("mouseleave",k),l.addEventListener("mouseenter",k),l.addEventListener("mouseout",k),l.addEventListener("mouseover",k),l.addEventListener("blur",E),l.addEventListener("keyup",T),l.addEventListener("keydown",T),l.addEventListener("keypress",T),l!==window&&(window.addEventListener("blur",E),window.addEventListener("keyup",T),window.addEventListener("keydown",T),window.addEventListener("keypress",T)))}function m(){_&&(_=!1,l.removeEventListener("mousemove",L),l.removeEventListener("mousedown",x),l.removeEventListener("mouseup",C),l.removeEventListener("mouseleave",k),l.removeEventListener("mouseenter",k),l.removeEventListener("mouseout",k),l.removeEventListener("mouseover",k),l.removeEventListener("blur",E),l.removeEventListener("keyup",T),l.removeEventListener("keydown",T),l.removeEventListener("keypress",T),l!==window&&(window.removeEventListener("blur",E),window.removeEventListener("keyup",T),window.removeEventListener("keydown",T),window.removeEventListener("keypress",T)))}M();var P={element:l};return Object.defineProperties(P,{enabled:{get:function(){return _},set:function(A){A?M():m()},enumerable:!0},buttons:{get:function(){return c},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return p},enumerable:!0}}),P}},24:function(i){var a={left:0,top:0};i.exports=o;function o(u,l,f){l=l||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var c=u.clientX||0,h=u.clientY||0,d=s(l);return f[0]=c-d.left,f[1]=h-d.top,f}function s(u){return u===window||u===document||u===document.body?a:u.getBoundingClientRect()}},4687:function(i,a){"use strict";function o(f){if(typeof f=="object"){if("buttons"in f)return f.buttons;if("which"in f){var c=f.which;if(c===2)return 4;if(c===3)return 2;if(c>0)return 1<=0)return 1<0){if(Pe=1,te[Ee++]=p(M[B],E,T,L),B+=re,x>0)for(be=1,F=M[B],Me=te[Ee]=p(F,E,T,L),ye=te[Ee+Ne],Ke=te[Ee+Ve],Nt=te[Ee+nt],(Me!==ye||Me!==Ke||Me!==Nt)&&(G=M[B+U],H=M[B+j],W=M[B+N],h(be,Pe,F,G,H,W,Me,ye,Ke,Nt,E,T,L),it=ke[Ee]=Ce++),Ee+=1,B+=re,be=2;be0)for(be=1,F=M[B],Me=te[Ee]=p(F,E,T,L),ye=te[Ee+Ne],Ke=te[Ee+Ve],Nt=te[Ee+nt],(Me!==ye||Me!==Ke||Me!==Nt)&&(G=M[B+U],H=M[B+j],W=M[B+N],h(be,Pe,F,G,H,W,Me,ye,Ke,Nt,E,T,L),it=ke[Ee]=Ce++,Nt!==Ke&&d(ke[Ee+Ve],it,H,W,Ke,Nt,E,T,L)),Ee+=1,B+=re,be=2;be0){if(be=1,te[Ee++]=p(M[B],E,T,L),B+=re,C>0)for(Pe=1,F=M[B],Me=te[Ee]=p(F,E,T,L),Ke=te[Ee+Ve],ye=te[Ee+Ne],Nt=te[Ee+nt],(Me!==Ke||Me!==ye||Me!==Nt)&&(G=M[B+U],H=M[B+j],W=M[B+N],h(be,Pe,F,G,H,W,Me,Ke,ye,Nt,E,T,L),it=ke[Ee]=Ce++),Ee+=1,B+=re,Pe=2;Pe0)for(Pe=1,F=M[B],Me=te[Ee]=p(F,E,T,L),Ke=te[Ee+Ve],ye=te[Ee+Ne],Nt=te[Ee+nt],(Me!==Ke||Me!==ye||Me!==Nt)&&(G=M[B+U],H=M[B+j],W=M[B+N],h(be,Pe,F,G,H,W,Me,Ke,ye,Nt,E,T,L),it=ke[Ee]=Ce++,Nt!==Ke&&d(ke[Ee+Ve],it,W,G,Nt,Ke,E,T,L)),Ee+=1,B+=re,Pe=2;Pe 0"),typeof c.vertex!="function"&&h("Must specify vertex creation function"),typeof c.cell!="function"&&h("Must specify cell creation function"),typeof c.phase!="function"&&h("Must specify phase function");for(var b=c.getters||[],v=new Array(p),k=0;k=0?v[k]=!0:v[k]=!1;return l(c.vertex,c.cell,c.phase,_,d,v)}},6199:function(i,a,o){"use strict";var s=o(1338),u={zero:function(L,x,C,M){var m=L[0],P=C[0];M|=0;var A=0,B=P;for(A=0;A2&&A[1]>2&&M(P.pick(-1,-1).lo(1,1).hi(A[0]-2,A[1]-2),m.pick(-1,-1,0).lo(1,1).hi(A[0]-2,A[1]-2),m.pick(-1,-1,1).lo(1,1).hi(A[0]-2,A[1]-2)),A[1]>2&&(C(P.pick(0,-1).lo(1).hi(A[1]-2),m.pick(0,-1,1).lo(1).hi(A[1]-2)),x(m.pick(0,-1,0).lo(1).hi(A[1]-2))),A[1]>2&&(C(P.pick(A[0]-1,-1).lo(1).hi(A[1]-2),m.pick(A[0]-1,-1,1).lo(1).hi(A[1]-2)),x(m.pick(A[0]-1,-1,0).lo(1).hi(A[1]-2))),A[0]>2&&(C(P.pick(-1,0).lo(1).hi(A[0]-2),m.pick(-1,0,0).lo(1).hi(A[0]-2)),x(m.pick(-1,0,1).lo(1).hi(A[0]-2))),A[0]>2&&(C(P.pick(-1,A[1]-1).lo(1).hi(A[0]-2),m.pick(-1,A[1]-1,0).lo(1).hi(A[0]-2)),x(m.pick(-1,A[1]-1,1).lo(1).hi(A[0]-2))),m.set(0,0,0,0),m.set(0,0,1,0),m.set(A[0]-1,0,0,0),m.set(A[0]-1,0,1,0),m.set(0,A[1]-1,0,0),m.set(0,A[1]-1,1,0),m.set(A[0]-1,A[1]-1,0,0),m.set(A[0]-1,A[1]-1,1,0),m}}function T(L){var x=L.join(),A=p[x];if(A)return A;for(var C=L.length,M=[b,v],m=1;m<=C;++m)M.push(k(m));var P=E,A=P.apply(void 0,M);return p[x]=A,A}i.exports=function(x,C,M){if(Array.isArray(M)||(typeof M=="string"?M=s(C.dimension,M):M=s(C.dimension,"clamp")),C.size===0)return x;if(C.dimension===0)return x.set(0),x;var m=T(M);return m(x,C)}},4317:function(i){"use strict";function a(f,c){var h=Math.floor(c),d=c-h,p=0<=h&&h0;){H<64?(x=H,H=0):(x=64,H-=64);for(var N=p[1]|0;N>0;){N<64?(C=N,N=0):(C=64,N-=64),v=G+H*m+N*P,T=j+H*B+N*F;var W=0,re=0,ae=0,be=A,Pe=m-M*A,Ce=P-x*m,de=U,te=B-M*U,ke=F-x*B;for(ae=0;ae0;){F<64?(x=F,F=0):(x=64,F-=64);for(var U=p[0]|0;U>0;){U<64?(L=U,U=0):(L=64,U-=64),v=A+F*M+U*C,T=B+F*P+U*m;var G=0,j=0,H=M,N=C-x*M,W=P,re=m-x*P;for(j=0;j0;){j<64?(C=j,j=0):(C=64,j-=64);for(var H=p[0]|0;H>0;){H<64?(L=H,H=0):(L=64,H-=64);for(var N=p[1]|0;N>0;){N<64?(x=N,N=0):(x=64,N-=64),v=U+j*P+H*M+N*m,T=G+j*F+H*A+N*B;var W=0,re=0,ae=0,be=P,Pe=M-C*P,Ce=m-L*M,de=F,te=A-C*F,ke=B-L*A;for(ae=0;aek;){W=0,re=G-x;t:for(H=0;Hbe)break t;re+=A,W+=B}for(W=G,re=G-x,H=0;H>1,N=H-U,W=H+U,re=G,ae=N,be=H,Pe=W,Ce=j,de=E+1,te=T-1,ke=!0,Ee,Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt=0,Nt=0,it=0,Ye,kt,Tt,St,Rt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt=P,hr=b(Yt),yr=b(Yt);kt=C*re,Tt=C*ae,zt=x;e:for(Ye=0;Ye0){Me=re,re=ae,ae=Me;break e}if(it<0)break e;zt+=B}kt=C*Pe,Tt=C*Ce,zt=x;e:for(Ye=0;Ye0){Me=Pe,Pe=Ce,Ce=Me;break e}if(it<0)break e;zt+=B}kt=C*re,Tt=C*be,zt=x;e:for(Ye=0;Ye0){Me=re,re=be,be=Me;break e}if(it<0)break e;zt+=B}kt=C*ae,Tt=C*be,zt=x;e:for(Ye=0;Ye0){Me=ae,ae=be,be=Me;break e}if(it<0)break e;zt+=B}kt=C*re,Tt=C*Pe,zt=x;e:for(Ye=0;Ye0){Me=re,re=Pe,Pe=Me;break e}if(it<0)break e;zt+=B}kt=C*be,Tt=C*Pe,zt=x;e:for(Ye=0;Ye0){Me=be,be=Pe,Pe=Me;break e}if(it<0)break e;zt+=B}kt=C*ae,Tt=C*Ce,zt=x;e:for(Ye=0;Ye0){Me=ae,ae=Ce,Ce=Me;break e}if(it<0)break e;zt+=B}kt=C*ae,Tt=C*be,zt=x;e:for(Ye=0;Ye0){Me=ae,ae=be,be=Me;break e}if(it<0)break e;zt+=B}kt=C*Pe,Tt=C*Ce,zt=x;e:for(Ye=0;Ye0){Me=Pe,Pe=Ce,Ce=Me;break e}if(it<0)break e;zt+=B}for(kt=C*re,Tt=C*ae,St=C*be,Rt=C*Pe,Zt=C*Ce,Et=C*G,Ae=C*H,at=C*j,$e=0,zt=x,Ye=0;Ye0)te--;else if(it<0){for(kt=C*Ve,Tt=C*de,St=C*te,zt=x,Ye=0;Ye0)for(;;){ce=x+te*C,$e=0;e:for(Ye=0;Ye0){if(--tej){e:for(;;){for(ce=x+de*C,$e=0,zt=x,Ye=0;Ye1&&k?T(v,k[0],k[1]):T(v)}var d={"uint32,1,0":function(_,b){return function(v){var k=v.data,E=v.offset|0,T=v.shape,L=v.stride,x=L[0]|0,C=T[0]|0,M=L[1]|0,m=T[1]|0,P=M,A=M,B=1;C<=32?_(0,C-1,k,E,x,M,C,m,P,A,B):b(0,C-1,k,E,x,M,C,m,P,A,B)}}};function p(_,b){var v=[b,_].join(","),k=d[v],E=f(_,b),T=h(_,b,E);return k(E,T)}i.exports=p},446:function(i,a,o){"use strict";var s=o(7640),u={};function l(f){var c=f.order,h=f.dtype,d=[c,h],p=d.join(":"),_=u[p];return _||(u[p]=_=s(c,h)),_(f),f}i.exports=l},9618:function(i,a,o){var s=o(7163),u=typeof Float64Array!="undefined";function l(b,v){return b[0]-v[0]}function f(){var b=this.stride,v=new Array(b.length),k;for(k=0;k=0&&(M=x|0,C+=P*M,m-=M),new E(this.data,m,P,C)},T.step=function(x){var C=this.shape[0],M=this.stride[0],m=this.offset,P=0,A=Math.ceil;return typeof x=="number"&&(P=x|0,P<0?(m+=M*(C-1),C=A(-C/P)):C=A(C/P),M*=P),new E(this.data,C,M,m)},T.transpose=function(x){x=x===void 0?0:x|0;var C=this.shape,M=this.stride;return new E(this.data,C[x],M[x],this.offset)},T.pick=function(x){var C=[],M=[],m=this.offset;typeof x=="number"&&x>=0?m=m+this.stride[0]*x|0:(C.push(this.shape[0]),M.push(this.stride[0]));var P=v[C.length+1];return P(this.data,C,M,m)},function(x,C,M,m){return new E(x,C[0],M[0],m)}},2:function(b,v,k){function E(L,x,C,M,m,P){this.data=L,this.shape=[x,C],this.stride=[M,m],this.offset=P|0}var T=E.prototype;return T.dtype=b,T.dimension=2,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(T,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),T.set=function(x,C,M){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*C,M):this.data[this.offset+this.stride[0]*x+this.stride[1]*C]=M},T.get=function(x,C){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*C):this.data[this.offset+this.stride[0]*x+this.stride[1]*C]},T.index=function(x,C){return this.offset+this.stride[0]*x+this.stride[1]*C},T.hi=function(x,C){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof C!="number"||C<0?this.shape[1]:C|0,this.stride[0],this.stride[1],this.offset)},T.lo=function(x,C){var M=this.offset,m=0,P=this.shape[0],A=this.shape[1],B=this.stride[0],F=this.stride[1];return typeof x=="number"&&x>=0&&(m=x|0,M+=B*m,P-=m),typeof C=="number"&&C>=0&&(m=C|0,M+=F*m,A-=m),new E(this.data,P,A,B,F,M)},T.step=function(x,C){var M=this.shape[0],m=this.shape[1],P=this.stride[0],A=this.stride[1],B=this.offset,F=0,U=Math.ceil;return typeof x=="number"&&(F=x|0,F<0?(B+=P*(M-1),M=U(-M/F)):M=U(M/F),P*=F),typeof C=="number"&&(F=C|0,F<0?(B+=A*(m-1),m=U(-m/F)):m=U(m/F),A*=F),new E(this.data,M,m,P,A,B)},T.transpose=function(x,C){x=x===void 0?0:x|0,C=C===void 0?1:C|0;var M=this.shape,m=this.stride;return new E(this.data,M[x],M[C],m[x],m[C],this.offset)},T.pick=function(x,C){var M=[],m=[],P=this.offset;typeof x=="number"&&x>=0?P=P+this.stride[0]*x|0:(M.push(this.shape[0]),m.push(this.stride[0])),typeof C=="number"&&C>=0?P=P+this.stride[1]*C|0:(M.push(this.shape[1]),m.push(this.stride[1]));var A=v[M.length+1];return A(this.data,M,m,P)},function(x,C,M,m){return new E(x,C[0],C[1],M[0],M[1],m)}},3:function(b,v,k){function E(L,x,C,M,m,P,A,B){this.data=L,this.shape=[x,C,M],this.stride=[m,P,A],this.offset=B|0}var T=E.prototype;return T.dtype=b,T.dimension=3,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(T,"order",{get:function(){var x=Math.abs(this.stride[0]),C=Math.abs(this.stride[1]),M=Math.abs(this.stride[2]);return x>C?C>M?[2,1,0]:x>M?[1,2,0]:[1,0,2]:x>M?[2,0,1]:M>C?[0,1,2]:[0,2,1]}}),T.set=function(x,C,M,m){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M,m):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M]=m},T.get=function(x,C,M){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M]},T.index=function(x,C,M){return this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M},T.hi=function(x,C,M){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof M!="number"||M<0?this.shape[2]:M|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},T.lo=function(x,C,M){var m=this.offset,P=0,A=this.shape[0],B=this.shape[1],F=this.shape[2],U=this.stride[0],G=this.stride[1],j=this.stride[2];return typeof x=="number"&&x>=0&&(P=x|0,m+=U*P,A-=P),typeof C=="number"&&C>=0&&(P=C|0,m+=G*P,B-=P),typeof M=="number"&&M>=0&&(P=M|0,m+=j*P,F-=P),new E(this.data,A,B,F,U,G,j,m)},T.step=function(x,C,M){var m=this.shape[0],P=this.shape[1],A=this.shape[2],B=this.stride[0],F=this.stride[1],U=this.stride[2],G=this.offset,j=0,H=Math.ceil;return typeof x=="number"&&(j=x|0,j<0?(G+=B*(m-1),m=H(-m/j)):m=H(m/j),B*=j),typeof C=="number"&&(j=C|0,j<0?(G+=F*(P-1),P=H(-P/j)):P=H(P/j),F*=j),typeof M=="number"&&(j=M|0,j<0?(G+=U*(A-1),A=H(-A/j)):A=H(A/j),U*=j),new E(this.data,m,P,A,B,F,U,G)},T.transpose=function(x,C,M){x=x===void 0?0:x|0,C=C===void 0?1:C|0,M=M===void 0?2:M|0;var m=this.shape,P=this.stride;return new E(this.data,m[x],m[C],m[M],P[x],P[C],P[M],this.offset)},T.pick=function(x,C,M){var m=[],P=[],A=this.offset;typeof x=="number"&&x>=0?A=A+this.stride[0]*x|0:(m.push(this.shape[0]),P.push(this.stride[0])),typeof C=="number"&&C>=0?A=A+this.stride[1]*C|0:(m.push(this.shape[1]),P.push(this.stride[1])),typeof M=="number"&&M>=0?A=A+this.stride[2]*M|0:(m.push(this.shape[2]),P.push(this.stride[2]));var B=v[m.length+1];return B(this.data,m,P,A)},function(x,C,M,m){return new E(x,C[0],C[1],C[2],M[0],M[1],M[2],m)}},4:function(b,v,k){function E(L,x,C,M,m,P,A,B,F,U){this.data=L,this.shape=[x,C,M,m],this.stride=[P,A,B,F],this.offset=U|0}var T=E.prototype;return T.dtype=b,T.dimension=4,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(T,"order",{get:k}),T.set=function(x,C,M,m,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M+this.stride[3]*m,P):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M+this.stride[3]*m]=P},T.get=function(x,C,M,m){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M+this.stride[3]*m):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M+this.stride[3]*m]},T.index=function(x,C,M,m){return this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M+this.stride[3]*m},T.hi=function(x,C,M,m){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof M!="number"||M<0?this.shape[2]:M|0,typeof m!="number"||m<0?this.shape[3]:m|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},T.lo=function(x,C,M,m){var P=this.offset,A=0,B=this.shape[0],F=this.shape[1],U=this.shape[2],G=this.shape[3],j=this.stride[0],H=this.stride[1],N=this.stride[2],W=this.stride[3];return typeof x=="number"&&x>=0&&(A=x|0,P+=j*A,B-=A),typeof C=="number"&&C>=0&&(A=C|0,P+=H*A,F-=A),typeof M=="number"&&M>=0&&(A=M|0,P+=N*A,U-=A),typeof m=="number"&&m>=0&&(A=m|0,P+=W*A,G-=A),new E(this.data,B,F,U,G,j,H,N,W,P)},T.step=function(x,C,M,m){var P=this.shape[0],A=this.shape[1],B=this.shape[2],F=this.shape[3],U=this.stride[0],G=this.stride[1],j=this.stride[2],H=this.stride[3],N=this.offset,W=0,re=Math.ceil;return typeof x=="number"&&(W=x|0,W<0?(N+=U*(P-1),P=re(-P/W)):P=re(P/W),U*=W),typeof C=="number"&&(W=C|0,W<0?(N+=G*(A-1),A=re(-A/W)):A=re(A/W),G*=W),typeof M=="number"&&(W=M|0,W<0?(N+=j*(B-1),B=re(-B/W)):B=re(B/W),j*=W),typeof m=="number"&&(W=m|0,W<0?(N+=H*(F-1),F=re(-F/W)):F=re(F/W),H*=W),new E(this.data,P,A,B,F,U,G,j,H,N)},T.transpose=function(x,C,M,m){x=x===void 0?0:x|0,C=C===void 0?1:C|0,M=M===void 0?2:M|0,m=m===void 0?3:m|0;var P=this.shape,A=this.stride;return new E(this.data,P[x],P[C],P[M],P[m],A[x],A[C],A[M],A[m],this.offset)},T.pick=function(x,C,M,m){var P=[],A=[],B=this.offset;typeof x=="number"&&x>=0?B=B+this.stride[0]*x|0:(P.push(this.shape[0]),A.push(this.stride[0])),typeof C=="number"&&C>=0?B=B+this.stride[1]*C|0:(P.push(this.shape[1]),A.push(this.stride[1])),typeof M=="number"&&M>=0?B=B+this.stride[2]*M|0:(P.push(this.shape[2]),A.push(this.stride[2])),typeof m=="number"&&m>=0?B=B+this.stride[3]*m|0:(P.push(this.shape[3]),A.push(this.stride[3]));var F=v[P.length+1];return F(this.data,P,A,B)},function(x,C,M,m){return new E(x,C[0],C[1],C[2],C[3],M[0],M[1],M[2],M[3],m)}},5:function(v,k,E){function T(x,C,M,m,P,A,B,F,U,G,j,H){this.data=x,this.shape=[C,M,m,P,A],this.stride=[B,F,U,G,j],this.offset=H|0}var L=T.prototype;return L.dtype=v,L.dimension=5,Object.defineProperty(L,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(L,"order",{get:E}),L.set=function(C,M,m,P,A,B){return v==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A,B):this.data[this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A]=B},L.get=function(C,M,m,P,A){return v==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A):this.data[this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A]},L.index=function(C,M,m,P,A){return this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A},L.hi=function(C,M,m,P,A){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:C|0,typeof M!="number"||M<0?this.shape[1]:M|0,typeof m!="number"||m<0?this.shape[2]:m|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof A!="number"||A<0?this.shape[4]:A|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(C,M,m,P,A){var B=this.offset,F=0,U=this.shape[0],G=this.shape[1],j=this.shape[2],H=this.shape[3],N=this.shape[4],W=this.stride[0],re=this.stride[1],ae=this.stride[2],be=this.stride[3],Pe=this.stride[4];return typeof C=="number"&&C>=0&&(F=C|0,B+=W*F,U-=F),typeof M=="number"&&M>=0&&(F=M|0,B+=re*F,G-=F),typeof m=="number"&&m>=0&&(F=m|0,B+=ae*F,j-=F),typeof P=="number"&&P>=0&&(F=P|0,B+=be*F,H-=F),typeof A=="number"&&A>=0&&(F=A|0,B+=Pe*F,N-=F),new T(this.data,U,G,j,H,N,W,re,ae,be,Pe,B)},L.step=function(C,M,m,P,A){var B=this.shape[0],F=this.shape[1],U=this.shape[2],G=this.shape[3],j=this.shape[4],H=this.stride[0],N=this.stride[1],W=this.stride[2],re=this.stride[3],ae=this.stride[4],be=this.offset,Pe=0,Ce=Math.ceil;return typeof C=="number"&&(Pe=C|0,Pe<0?(be+=H*(B-1),B=Ce(-B/Pe)):B=Ce(B/Pe),H*=Pe),typeof M=="number"&&(Pe=M|0,Pe<0?(be+=N*(F-1),F=Ce(-F/Pe)):F=Ce(F/Pe),N*=Pe),typeof m=="number"&&(Pe=m|0,Pe<0?(be+=W*(U-1),U=Ce(-U/Pe)):U=Ce(U/Pe),W*=Pe),typeof P=="number"&&(Pe=P|0,Pe<0?(be+=re*(G-1),G=Ce(-G/Pe)):G=Ce(G/Pe),re*=Pe),typeof A=="number"&&(Pe=A|0,Pe<0?(be+=ae*(j-1),j=Ce(-j/Pe)):j=Ce(j/Pe),ae*=Pe),new T(this.data,B,F,U,G,j,H,N,W,re,ae,be)},L.transpose=function(C,M,m,P,A){C=C===void 0?0:C|0,M=M===void 0?1:M|0,m=m===void 0?2:m|0,P=P===void 0?3:P|0,A=A===void 0?4:A|0;var B=this.shape,F=this.stride;return new T(this.data,B[C],B[M],B[m],B[P],B[A],F[C],F[M],F[m],F[P],F[A],this.offset)},L.pick=function(C,M,m,P,A){var B=[],F=[],U=this.offset;typeof C=="number"&&C>=0?U=U+this.stride[0]*C|0:(B.push(this.shape[0]),F.push(this.stride[0])),typeof M=="number"&&M>=0?U=U+this.stride[1]*M|0:(B.push(this.shape[1]),F.push(this.stride[1])),typeof m=="number"&&m>=0?U=U+this.stride[2]*m|0:(B.push(this.shape[2]),F.push(this.stride[2])),typeof P=="number"&&P>=0?U=U+this.stride[3]*P|0:(B.push(this.shape[3]),F.push(this.stride[3])),typeof A=="number"&&A>=0?U=U+this.stride[4]*A|0:(B.push(this.shape[4]),F.push(this.stride[4]));var G=k[B.length+1];return G(this.data,B,F,U)},function(C,M,m,P){return new T(C,M[0],M[1],M[2],M[3],M[4],m[0],m[1],m[2],m[3],m[4],P)}}};function h(b,v){var k=v===-1?"T":String(v),E=c[k];return v===-1?E(b):v===0?E(b,p[b][0]):E(b,p[b],f)}function d(b){if(s(b))return"buffer";if(u)switch(Object.prototype.toString.call(b)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(b)?"array":"generic"}var p={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function _(b,v,k,E){if(b===void 0){var m=p.array[0];return m([])}else typeof b=="number"&&(b=[b]);v===void 0&&(v=[b.length]);var T=v.length;if(k===void 0){k=new Array(T);for(var L=T-1,x=1;L>=0;--L)k[L]=x,x*=v[L]}if(E===void 0){E=0;for(var L=0;L>>0;i.exports=f;function f(c,h){if(isNaN(c)||isNaN(h))return NaN;if(c===h)return c;if(c===0)return h<0?-u:u;var d=s.hi(c),p=s.lo(c);return h>c==c>0?p===l?(d+=1,p=0):p+=1:p===0?(p=l,d-=1):p-=1,s.pack(p,d)}},8406:function(i,a){var o=1e-6,s=1e-6;a.vertexNormals=function(u,l,f){for(var c=l.length,h=new Array(c),d=f===void 0?o:f,p=0;pd)for(var B=h[v],F=1/Math.sqrt(M*P),A=0;A<3;++A){var U=(A+1)%3,G=(A+2)%3;B[A]+=F*(m[U]*C[G]-m[G]*C[U])}}for(var p=0;pd)for(var F=1/Math.sqrt(j),A=0;A<3;++A)B[A]*=F;else for(var A=0;A<3;++A)B[A]=0}return h},a.faceNormals=function(u,l,f){for(var c=u.length,h=new Array(c),d=f===void 0?s:f,p=0;pd?L=1/Math.sqrt(L):L=0;for(var v=0;v<3;++v)T[v]*=L;h[p]=T}return h}},4081:function(i){"use strict";i.exports=a;function a(o,s,u,l,f,c,h,d,p,_){var b=s+c+_;if(v>0){var v=Math.sqrt(b+1);o[0]=.5*(h-p)/v,o[1]=.5*(d-l)/v,o[2]=.5*(u-c)/v,o[3]=.5*v}else{var k=Math.max(s,c,_),v=Math.sqrt(2*k-b+1);s>=k?(o[0]=.5*v,o[1]=.5*(f+u)/v,o[2]=.5*(d+l)/v,o[3]=.5*(h-p)/v):c>=k?(o[0]=.5*(u+f)/v,o[1]=.5*v,o[2]=.5*(p+h)/v,o[3]=.5*(d-l)/v):(o[0]=.5*(l+d)/v,o[1]=.5*(h+p)/v,o[2]=.5*v,o[3]=.5*(u-f)/v)}return o}},9977:function(i,a,o){"use strict";i.exports=v;var s=o(9215),u=o(6582),l=o(7399),f=o(7608),c=o(4081);function h(k,E,T){return Math.sqrt(Math.pow(k,2)+Math.pow(E,2)+Math.pow(T,2))}function d(k,E,T,L){return Math.sqrt(Math.pow(k,2)+Math.pow(E,2)+Math.pow(T,2)+Math.pow(L,2))}function p(k,E){var T=E[0],L=E[1],x=E[2],C=E[3],M=d(T,L,x,C);M>1e-6?(k[0]=T/M,k[1]=L/M,k[2]=x/M,k[3]=C/M):(k[0]=k[1]=k[2]=0,k[3]=1)}function _(k,E,T){this.radius=s([T]),this.center=s(E),this.rotation=s(k),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var b=_.prototype;b.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},b.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var E=this.computedRotation;p(E,E);var T=this.computedMatrix;l(T,E);var L=this.computedCenter,x=this.computedEye,C=this.computedUp,M=Math.exp(this.computedRadius[0]);x[0]=L[0]+M*T[2],x[1]=L[1]+M*T[6],x[2]=L[2]+M*T[10],C[0]=T[1],C[1]=T[5],C[2]=T[9];for(var m=0;m<3;++m){for(var P=0,A=0;A<3;++A)P+=T[m+4*A]*x[A];T[12+m]=-P}},b.getMatrix=function(k,E){this.recalcMatrix(k);var T=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=T[L];return E}return T},b.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},b.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},b.pan=function(k,E,T,L){E=E||0,T=T||0,L=L||0,this.recalcMatrix(k);var x=this.computedMatrix,C=x[1],M=x[5],m=x[9],P=h(C,M,m);C/=P,M/=P,m/=P;var A=x[0],B=x[4],F=x[8],U=A*C+B*M+F*m;A-=C*U,B-=M*U,F-=m*U;var G=h(A,B,F);A/=G,B/=G,F/=G;var j=x[2],H=x[6],N=x[10],W=j*C+H*M+N*m,re=j*A+H*B+N*F;j-=W*C+re*A,H-=W*M+re*B,N-=W*m+re*F;var ae=h(j,H,N);j/=ae,H/=ae,N/=ae;var be=A*E+C*T,Pe=B*E+M*T,Ce=F*E+m*T;this.center.move(k,be,Pe,Ce);var de=Math.exp(this.computedRadius[0]);de=Math.max(1e-4,de+L),this.radius.set(k,Math.log(de))},b.rotate=function(k,E,T,L){this.recalcMatrix(k),E=E||0,T=T||0;var x=this.computedMatrix,C=x[0],M=x[4],m=x[8],P=x[1],A=x[5],B=x[9],F=x[2],U=x[6],G=x[10],j=E*C+T*P,H=E*M+T*A,N=E*m+T*B,W=-(U*N-G*H),re=-(G*j-F*N),ae=-(F*H-U*j),be=Math.sqrt(Math.max(0,1-Math.pow(W,2)-Math.pow(re,2)-Math.pow(ae,2))),Pe=d(W,re,ae,be);Pe>1e-6?(W/=Pe,re/=Pe,ae/=Pe,be/=Pe):(W=re=ae=0,be=1);var Ce=this.computedRotation,de=Ce[0],te=Ce[1],ke=Ce[2],Ee=Ce[3],Me=de*be+Ee*W+te*ae-ke*re,Ne=te*be+Ee*re+ke*W-de*ae,Fe=ke*be+Ee*ae+de*re-te*W,ye=Ee*be-de*W-te*re-ke*ae;if(L){W=F,re=U,ae=G;var Ve=Math.sin(L)/h(W,re,ae);W*=Ve,re*=Ve,ae*=Ve,be=Math.cos(E),Me=Me*be+ye*W+Ne*ae-Fe*re,Ne=Ne*be+ye*re+Fe*W-Me*ae,Fe=Fe*be+ye*ae+Me*re-Ne*W,ye=ye*be-Me*W-Ne*re-Fe*ae}var ce=d(Me,Ne,Fe,ye);ce>1e-6?(Me/=ce,Ne/=ce,Fe/=ce,ye/=ce):(Me=Ne=Fe=0,ye=1),this.rotation.set(k,Me,Ne,Fe,ye)},b.lookAt=function(k,E,T,L){this.recalcMatrix(k),T=T||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var x=this.computedMatrix;u(x,E,T,L);var C=this.computedRotation;c(C,x[0],x[1],x[2],x[4],x[5],x[6],x[8],x[9],x[10]),p(C,C),this.rotation.set(k,C[0],C[1],C[2],C[3]);for(var M=0,m=0;m<3;++m)M+=Math.pow(T[m]-E[m],2);this.radius.set(k,.5*Math.log(Math.max(M,1e-6))),this.center.set(k,T[0],T[1],T[2])},b.translate=function(k,E,T,L){this.center.move(k,E||0,T||0,L||0)},b.setMatrix=function(k,E){var T=this.computedRotation;c(T,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),p(T,T),this.rotation.set(k,T[0],T[1],T[2],T[3]);var L=this.computedMatrix;f(L,E);var x=L[15];if(Math.abs(x)>1e-6){var C=L[12]/x,M=L[13]/x,m=L[14]/x;this.recalcMatrix(k);var P=Math.exp(this.computedRadius[0]);this.center.set(k,C-L[2]*P,M-L[6]*P,m-L[10]*P),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},b.setDistance=function(k,E){E>0&&this.radius.set(k,Math.log(E))},b.setDistanceLimits=function(k,E){k>0?k=Math.log(k):k=-1/0,E>0?E=Math.log(E):E=1/0,E=Math.max(E,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=E},b.getDistanceLimits=function(k){var E=this.radius.bounds;return k?(k[0]=Math.exp(E[0][0]),k[1]=Math.exp(E[1][0]),k):[Math.exp(E[0][0]),Math.exp(E[1][0])]},b.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},b.fromJSON=function(k){var E=this.lastT(),T=k.center;T&&this.center.set(E,T[0],T[1],T[2]);var L=k.rotation;L&&this.rotation.set(E,L[0],L[1],L[2],L[3]);var x=k.distance;x&&x>0&&this.radius.set(E,Math.log(x)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function v(k){k=k||{};var E=k.center||[0,0,0],T=k.rotation||[0,0,0,1],L=k.radius||1;E=[].slice.call(E,0,3),T=[].slice.call(T,0,4),p(T,T);var x=new _(T,E,Math.log(L));return x.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&x.lookAt(0,k.eye,k.center,k.up),x}},1371:function(i,a,o){"use strict";var s=o(3233);i.exports=function(l,f,c){return c=typeof c!="undefined"?c+"":" ",s(c,f)+l}},3202:function(i){i.exports=function(o,s){s||(s=[0,""]),o=String(o);var u=parseFloat(o,10);return s[0]=u,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}},3088:function(i,a,o){"use strict";i.exports=u;var s=o(3140);function u(l,f){for(var c=f.length|0,h=l.length,d=[new Array(c),new Array(c)],p=0;p0){B=d[G][P][0],U=G;break}F=B[U^1];for(var j=0;j<2;++j)for(var H=d[j][P],N=0;N0&&(B=W,F=re,U=j)}return A||B&&v(B,U),F}function E(m,P){var A=d[P][m][0],B=[m];v(A,P);for(var F=A[P^1],U=P;;){for(;F!==m;)B.push(F),F=k(B[B.length-2],F,!1);if(d[0][m].length+d[1][m].length===0)break;var G=B[B.length-1],j=m,H=B[1],N=k(G,j,!0);if(s(f[G],f[j],f[H],f[N])<0)break;B.push(m),F=k(G,j)}return B}function T(m,P){return P[1]===P[P.length-1]}for(var p=0;p0;){var C=d[0][p].length,M=E(p,L);T(x,M)?x.push.apply(x,M):(x.length>0&&b.push(x),x=M)}x.length>0&&b.push(x)}return b}},5609:function(i,a,o){"use strict";i.exports=u;var s=o(3134);function u(l,f){for(var c=s(l,f.length),h=new Array(f.length),d=new Array(f.length),p=[],_=0;_0;){var v=p.pop();h[v]=!1;for(var k=c[v],_=0;_0}C=C.filter(M);for(var m=C.length,P=new Array(m),A=new Array(m),x=0;x0;){var ce=Fe.pop(),Ke=Pe[ce];h(Ke,function(Ye,kt){return Ye-kt});var nt=Ke.length,gt=ye[ce],Nt;if(gt===0){var H=C[ce];Nt=[H]}for(var x=0;x=0)&&(ye[it]=gt^1,Fe.push(it),gt===0)){var H=C[it];Ne(H)||(H.reverse(),Nt.push(H))}}gt===0&&Ve.push(Nt)}return Ve}},5085:function(i,a,o){i.exports=k;var s=o(3250)[3],u=o(4209),l=o(3352),f=o(2478);function c(){return!0}function h(E){return function(T,L){var x=E[T];return x?!!x.queryPoint(L,c):!1}}function d(E){for(var T={},L=0;L0&&T[x]===L[0])C=E[x-1];else return 1;for(var M=1;C;){var m=C.key,P=s(L,m[0],m[1]);if(m[0][0]0)M=-1,C=C.right;else return 0;else if(P>0)C=C.left;else if(P<0)M=1,C=C.right;else return 0}return M}}function _(E){return 1}function b(E){return function(L){return E(L[0],L[1])?0:1}}function v(E,T){return function(x){return E(x[0],x[1])?0:T(x)}}function k(E){for(var T=E.length,L=[],x=[],C=0,M=0;M=_?(m=1,A=_+2*k+T):(m=-k/_,A=k*m+T)):(m=0,E>=0?(P=0,A=T):-E>=v?(P=1,A=v+2*E+T):(P=-E/v,A=E*P+T));else if(P<0)P=0,k>=0?(m=0,A=T):-k>=_?(m=1,A=_+2*k+T):(m=-k/_,A=k*m+T);else{var B=1/M;m*=B,P*=B,A=m*(_*m+b*P+2*k)+P*(b*m+v*P+2*E)+T}else{var F,U,G,j;m<0?(F=b+k,U=v+E,U>F?(G=U-F,j=_-2*b+v,G>=j?(m=1,P=0,A=_+2*k+T):(m=G/j,P=1-m,A=m*(_*m+b*P+2*k)+P*(b*m+v*P+2*E)+T)):(m=0,U<=0?(P=1,A=v+2*E+T):E>=0?(P=0,A=T):(P=-E/v,A=E*P+T))):P<0?(F=b+E,U=_+k,U>F?(G=U-F,j=_-2*b+v,G>=j?(P=1,m=0,A=v+2*E+T):(P=G/j,m=1-P,A=m*(_*m+b*P+2*k)+P*(b*m+v*P+2*E)+T)):(P=0,U<=0?(m=1,A=_+2*k+T):k>=0?(m=0,A=T):(m=-k/_,A=k*m+T))):(G=v+E-b-k,G<=0?(m=0,P=1,A=v+2*E+T):(j=_-2*b+v,G>=j?(m=1,P=0,A=_+2*k+T):(m=G/j,P=1-m,A=m*(_*m+b*P+2*k)+P*(b*m+v*P+2*E)+T)))}for(var H=1-m-P,p=0;p0){var v=c[d-1];if(s(_,v)===0&&l(v)!==b){d-=1;continue}}c[d++]=_}}return c.length=d,c}},3233:function(i){"use strict";var a="",o;i.exports=s;function s(u,l){if(typeof u!="string")throw new TypeError("expected a string");if(l===1)return u;if(l===2)return u+u;var f=u.length*l;if(o!==u||typeof o=="undefined")o=u,a="";else if(a.length>=f)return a.substr(0,f);for(;f>a.length&&l>1;)l&1&&(a+=u),l>>=1,u+=u;return a+=u,a=a.substr(0,f),a}},3025:function(i,a,o){i.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(i){"use strict";i.exports=a;function a(o){for(var s=o.length,u=o[o.length-1],l=s,f=s-2;f>=0;--f){var c=u,h=o[f];u=c+h;var d=u-c,p=h-d;p&&(o[--l]=u,u=p)}for(var _=0,f=l;f0){if(U<=0)return G;j=F+U}else if(F<0){if(U>=0)return G;j=-(F+U)}else return G;var H=d*j;return G>=H||G<=-H?G:E(P,A,B)},function(P,A,B,F){var U=P[0]-F[0],G=A[0]-F[0],j=B[0]-F[0],H=P[1]-F[1],N=A[1]-F[1],W=B[1]-F[1],re=P[2]-F[2],ae=A[2]-F[2],be=B[2]-F[2],Pe=G*W,Ce=j*N,de=j*H,te=U*W,ke=U*N,Ee=G*H,Me=re*(Pe-Ce)+ae*(de-te)+be*(ke-Ee),Ne=(Math.abs(Pe)+Math.abs(Ce))*Math.abs(re)+(Math.abs(de)+Math.abs(te))*Math.abs(ae)+(Math.abs(ke)+Math.abs(Ee))*Math.abs(be),Fe=p*Ne;return Me>Fe||-Me>Fe?Me:T(P,A,B,F)}];function x(m){var P=L[m.length];return P||(P=L[m.length]=k(m.length)),P.apply(void 0,m)}function C(m,P,A,B,F,U,G){return function(H,N,W,re,ae){switch(arguments.length){case 0:case 1:return 0;case 2:return B(H,N);case 3:return F(H,N,W);case 4:return U(H,N,W,re);case 5:return G(H,N,W,re,ae)}for(var be=new Array(arguments.length),Pe=0;Pe0&&_>0||p<0&&_<0)return!1;var b=s(h,f,c),v=s(d,f,c);return b>0&&v>0||b<0&&v<0?!1:p===0&&_===0&&b===0&&v===0?u(f,c,h,d):!0}},8545:function(i){"use strict";i.exports=o;function a(s,u){var l=s+u,f=l-s,c=l-f,h=u-f,d=s-c,p=d+h;return p?[p,l]:[l]}function o(s,u){var l=s.length|0,f=u.length|0;if(l===1&&f===1)return a(s[0],-u[0]);var c=l+f,h=new Array(c),d=0,p=0,_=0,b=Math.abs,v=s[p],k=b(v),E=-u[_],T=b(E),L,x;k=f?(L=v,p+=1,p=f?(L=v,p+=1,p>1,E=c[2*k+1];if(E===_)return k;_>1,E=c[2*k+1];if(E===_)return k;_>1,E=c[2*k+1];if(E===_)return k;_>1,E=c[2*k+1];if(E===_)return k;_>1,j=d(P[G],A);j<=0?(j===0&&(U=G),B=G+1):j>0&&(F=G-1)}return U}s=v;function k(P,A){for(var B=new Array(P.length),F=0,U=B.length;F=P.length||d(P[Pe],G)!==0););}return B}s=k;function E(P,A){if(!A)return k(b(L(P,0)),P,0);for(var B=new Array(A),F=0;F>>W&1&&N.push(U[W]);A.push(N)}return _(A)}s=T;function L(P,A){if(A<0)return[];for(var B=[],F=(1<0)-(l<0)},a.abs=function(l){var f=l>>o-1;return(l^f)-f},a.min=function(l,f){return f^(l^f)&-(l65535)<<4,l>>>=f,c=(l>255)<<3,l>>>=c,f|=c,c=(l>15)<<2,l>>>=c,f|=c,c=(l>3)<<1,l>>>=c,f|=c,f|l>>1},a.log10=function(l){return l>=1e9?9:l>=1e8?8:l>=1e7?7:l>=1e6?6:l>=1e5?5:l>=1e4?4:l>=1e3?3:l>=100?2:l>=10?1:0},a.popCount=function(l){return l=l-(l>>>1&1431655765),l=(l&858993459)+(l>>>2&858993459),(l+(l>>>4)&252645135)*16843009>>>24};function s(l){var f=32;return l&=-l,l&&f--,l&65535&&(f-=16),l&16711935&&(f-=8),l&252645135&&(f-=4),l&858993459&&(f-=2),l&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(l){return l+=l===0,--l,l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l+1},a.prevPow2=function(l){return l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l-(l>>>1)},a.parity=function(l){return l^=l>>>16,l^=l>>>8,l^=l>>>4,l&=15,27030>>>l&1};var u=new Array(256);(function(l){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;l[f]=h<>>8&255]<<16|u[l>>>16&255]<<8|u[l>>>24&255]},a.interleave2=function(l,f){return l&=65535,l=(l|l<<8)&16711935,l=(l|l<<4)&252645135,l=(l|l<<2)&858993459,l=(l|l<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,l|f<<1},a.deinterleave2=function(l,f){return l=l>>>f&1431655765,l=(l|l>>>1)&858993459,l=(l|l>>>2)&252645135,l=(l|l>>>4)&16711935,l=(l|l>>>16)&65535,l<<16>>16},a.interleave3=function(l,f,c){return l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,l|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,l|c<<2},a.deinterleave3=function(l,f){return l=l>>>f&1227133513,l=(l|l>>>2)&3272356035,l=(l|l>>>4)&251719695,l=(l|l>>>8)&4278190335,l=(l|l>>>16)&1023,l<<22>>22},a.nextCombination=function(l){var f=l|l-1;return f+1|(~f&-~f)-1>>>s(l)+1}},2014:function(i,a,o){"use strict";"use restrict";var s=o(3105),u=o(4623);function l(m){for(var P=0,A=Math.max,B=0,F=m.length;B>1,G=h(m[U],P);G<=0?(G===0&&(F=U),A=U+1):G>0&&(B=U-1)}return F}a.findCell=b;function v(m,P){for(var A=new Array(m.length),B=0,F=A.length;B=m.length||h(m[be],U)!==0););}return A}a.incidence=v;function k(m,P){if(!P)return v(_(T(m,0)),m,0);for(var A=new Array(P),B=0;B>>N&1&&H.push(F[N]);P.push(H)}return p(P)}a.explode=E;function T(m,P){if(P<0)return[];for(var A=[],B=(1<>1:(te>>1)-1}function B(te){for(var ke=P(te);;){var Ee=ke,Me=2*te+1,Ne=2*(te+1),Fe=te;if(Me0;){var Ee=A(te);if(Ee>=0){var Me=P(Ee);if(ke0){var te=H[0];return m(0,re-1),re-=1,B(0),te}return-1}function G(te,ke){var Ee=H[te];return k[Ee]===ke?te:(k[Ee]=-1/0,F(te),U(),k[Ee]=ke,re+=1,F(re-1))}function j(te){if(!E[te]){E[te]=!0;var ke=b[te],Ee=v[te];b[Ee]>=0&&(b[Ee]=ke),v[ke]>=0&&(v[ke]=Ee),N[ke]>=0&&G(N[ke],M(ke)),N[Ee]>=0&&G(N[Ee],M(Ee))}}for(var H=[],N=new Array(p),T=0;T>1;T>=0;--T)B(T);for(;;){var ae=U();if(ae<0||k[ae]>d)break;j(ae)}for(var be=[],T=0;T=0&&Ee>=0&&ke!==Ee){var Me=N[ke],Ne=N[Ee];Me!==Ne&&de.push([Me,Ne])}}),u.unique(u.normalize(de)),{positions:be,edges:de}}},1303:function(i,a,o){"use strict";i.exports=l;var s=o(3250);function u(f,c){var h,d;if(c[0][0]c[1][0])h=c[1],d=c[0];else{var p=Math.min(f[0][1],f[1][1]),_=Math.max(f[0][1],f[1][1]),b=Math.min(c[0][1],c[1][1]),v=Math.max(c[0][1],c[1][1]);return _v?p-v:_-v}var k,E;f[0][1]c[1][0])h=c[1],d=c[0];else return u(c,f);var p,_;if(f[0][0]f[1][0])p=f[1],_=f[0];else return-u(f,c);var b=s(h,d,_),v=s(h,d,p);if(b<0){if(v<=0)return b}else if(b>0){if(v>=0)return b}else if(v)return v;if(b=s(_,p,d),v=s(_,p,h),b<0){if(v<=0)return b}else if(b>0){if(v>=0)return b}else if(v)return v;return d[0]-_[0]}},4209:function(i,a,o){"use strict";i.exports=v;var s=o(2478),u=o(3840),l=o(3250),f=o(1303);function c(k,E,T){this.slabs=k,this.coordinates=E,this.horizontal=T}var h=c.prototype;function d(k,E){return k.y-E}function p(k,E){for(var T=null;k;){var L=k.key,x,C;L[0][0]0)if(E[0]!==L[1][0])T=k,k=k.right;else{var m=p(k.right,E);if(m)return m;k=k.left}else{if(E[0]!==L[1][0])return k;var m=p(k.right,E);if(m)return m;k=k.left}}return T}h.castUp=function(k){var E=s.le(this.coordinates,k[0]);if(E<0)return-1;var T=this.slabs[E],L=p(this.slabs[E],k),x=-1;if(L&&(x=L.value),this.coordinates[E]===k[0]){var C=null;if(L&&(C=L.key),E>0){var M=p(this.slabs[E-1],k);M&&(C?f(M.key,C)>0&&(C=M.key,x=M.value):(x=M.value,C=M.key))}var m=this.horizontal[E];if(m.length>0){var P=s.ge(m,k[1],d);if(P=m.length)return x;A=m[P]}}if(A.start)if(C){var B=l(C[0],C[1],[k[0],A.y]);C[0][0]>C[1][0]&&(B=-B),B>0&&(x=A.index)}else x=A.index;else A.y!==k[1]&&(x=A.index)}}}return x};function _(k,E,T,L){this.y=k,this.index=E,this.start=T,this.closed=L}function b(k,E,T,L){this.x=k,this.segment=E,this.create=T,this.index=L}function v(k){for(var E=k.length,T=2*E,L=new Array(T),x=0;x1&&(E=1);for(var T=1-E,L=p.length,x=new Array(L),C=0;C0||k>0&&x<0){var C=f(E,x,T,k);b.push(C),v.push(C.slice())}x<0?v.push(T.slice()):x>0?b.push(T.slice()):(b.push(T.slice()),v.push(T.slice())),k=x}return{positive:b,negative:v}}function h(p,_){for(var b=[],v=l(p[p.length-1],_),k=p[p.length-1],E=p[0],T=0;T0||v>0&&L<0)&&b.push(f(k,L,E,v)),L>=0&&b.push(E.slice()),v=L}return b}function d(p,_){for(var b=[],v=l(p[p.length-1],_),k=p[p.length-1],E=p[0],T=0;T0||v>0&&L<0)&&b.push(f(k,L,E,v)),L<=0&&b.push(E.slice()),v=L}return b}},3387:function(i,a,o){var s;(function(){"use strict";var u={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function l(p){return c(d(p),arguments)}function f(p,_){return l.apply(null,[p].concat(_||[]))}function c(p,_){var b=1,v=p.length,k,E="",T,L,x,C,M,m,P,A;for(T=0;T=0),x.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,x.width?parseInt(x.width):0);break;case"e":k=x.precision?parseFloat(k).toExponential(x.precision):parseFloat(k).toExponential();break;case"f":k=x.precision?parseFloat(k).toFixed(x.precision):parseFloat(k);break;case"g":k=x.precision?String(Number(k.toPrecision(x.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=x.precision?k.substring(0,x.precision):k;break;case"t":k=String(!!k),k=x.precision?k.substring(0,x.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=x.precision?k.substring(0,x.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=x.precision?k.substring(0,x.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}u.json.test(x.type)?E+=k:(u.number.test(x.type)&&(!P||x.sign)?(A=P?"+":"-",k=k.toString().replace(u.sign,"")):A="",M=x.pad_char?x.pad_char==="0"?"0":x.pad_char.charAt(1):" ",m=x.width-(A+k).length,C=x.width&&m>0?M.repeat(m):"",E+=x.align?A+k+C:M==="0"?A+C+k:C+A+k)}return E}var h=Object.create(null);function d(p){if(h[p])return h[p];for(var _=p,b,v=[],k=0;_;){if((b=u.text.exec(_))!==null)v.push(b[0]);else if((b=u.modulo.exec(_))!==null)v.push("%");else if((b=u.placeholder.exec(_))!==null){if(b[2]){k|=1;var E=[],T=b[2],L=[];if((L=u.key.exec(T))!==null)for(E.push(L[1]);(T=T.substring(L[0].length))!=="";)if((L=u.key_access.exec(T))!==null)E.push(L[1]);else if((L=u.index_access.exec(T))!==null)E.push(L[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");b[2]=E}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");v.push({placeholder:b[0],param_no:b[1],keys:b[2],sign:b[3],pad_char:b[4],align:b[5],width:b[6],precision:b[7],type:b[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");_=_.substring(b[0].length)}return h[p]=v}a.sprintf=l,a.vsprintf=f,typeof window!="undefined"&&(window.sprintf=l,window.vsprintf=f,s=function(){return{sprintf:l,vsprintf:f}}.call(a,o,a,i),s!==void 0&&(i.exports=s))})()},3711:function(i,a,o){"use strict";i.exports=d;var s=o(2640),u=o(781),l={"2d":function(p,_,b){var v=p({order:_,scalarArguments:3,getters:b==="generic"?[0]:void 0,phase:function(E,T,L,x){return E>x|0},vertex:function(E,T,L,x,C,M,m,P,A,B,F,U,G){var j=(m<<0)+(P<<1)+(A<<2)+(B<<3)|0;if(!(j===0||j===15))switch(j){case 0:F.push([E-.5,T-.5]);break;case 1:F.push([E-.25-.25*(x+L-2*G)/(L-x),T-.25-.25*(C+L-2*G)/(L-C)]);break;case 2:F.push([E-.75-.25*(-x-L+2*G)/(x-L),T-.25-.25*(M+x-2*G)/(x-M)]);break;case 3:F.push([E-.5,T-.5-.5*(C+L+M+x-4*G)/(L-C+x-M)]);break;case 4:F.push([E-.25-.25*(M+C-2*G)/(C-M),T-.75-.25*(-C-L+2*G)/(C-L)]);break;case 5:F.push([E-.5-.5*(x+L+M+C-4*G)/(L-x+C-M),T-.5]);break;case 6:F.push([E-.5-.25*(-x-L+M+C)/(x-L+C-M),T-.5-.25*(-C-L+M+x)/(C-L+x-M)]);break;case 7:F.push([E-.75-.25*(M+C-2*G)/(C-M),T-.75-.25*(M+x-2*G)/(x-M)]);break;case 8:F.push([E-.75-.25*(-M-C+2*G)/(M-C),T-.75-.25*(-M-x+2*G)/(M-x)]);break;case 9:F.push([E-.5-.25*(x+L+-M-C)/(L-x+M-C),T-.5-.25*(C+L+-M-x)/(L-C+M-x)]);break;case 10:F.push([E-.5-.5*(-x-L+-M-C+4*G)/(x-L+M-C),T-.5]);break;case 11:F.push([E-.25-.25*(-M-C+2*G)/(M-C),T-.75-.25*(C+L-2*G)/(L-C)]);break;case 12:F.push([E-.5,T-.5-.5*(-C-L+-M-x+4*G)/(C-L+M-x)]);break;case 13:F.push([E-.75-.25*(x+L-2*G)/(L-x),T-.25-.25*(-M-x+2*G)/(M-x)]);break;case 14:F.push([E-.25-.25*(-x-L+2*G)/(x-L),T-.25-.25*(-C-L+2*G)/(C-L)]);break;case 15:F.push([E-.5,T-.5]);break}},cell:function(E,T,L,x,C,M,m,P,A){C?P.push([E,T]):P.push([T,E])}});return function(k,E){var T=[],L=[];return v(k,T,L,E),{positions:T,cells:L}}}};function f(p,_){var b=p.length+"d",v=l[b];if(v)return v(s,p,_)}function c(p,_){for(var b=u(p,_),v=b.length,k=new Array(v),E=new Array(v),T=0;TMath.max(x,C)?M[2]=1:x>Math.max(L,C)?M[0]=1:M[1]=1;for(var m=0,P=0,A=0;A<3;++A)m+=T[A]*T[A],P+=M[A]*T[A];for(var A=0;A<3;++A)M[A]-=P/m*T[A];return c(M,M),M}function b(T,L,x,C,M,m,P,A){this.center=s(x),this.up=s(C),this.right=s(M),this.radius=s([m]),this.angle=s([P,A]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(T,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var B=0;B<16;++B)this.computedMatrix[B]=.5;this.recalcMatrix(0)}var v=b.prototype;v.setDistanceLimits=function(T,L){T>0?T=Math.log(T):T=-1/0,L>0?L=Math.log(L):L=1/0,L=Math.max(L,T),this.radius.bounds[0][0]=T,this.radius.bounds[1][0]=L},v.getDistanceLimits=function(T){var L=this.radius.bounds[0];return T?(T[0]=Math.exp(L[0][0]),T[1]=Math.exp(L[1][0]),T):[Math.exp(L[0][0]),Math.exp(L[1][0])]},v.recalcMatrix=function(T){this.center.curve(T),this.up.curve(T),this.right.curve(T),this.radius.curve(T),this.angle.curve(T);for(var L=this.computedUp,x=this.computedRight,C=0,M=0,m=0;m<3;++m)M+=L[m]*x[m],C+=L[m]*L[m];for(var P=Math.sqrt(C),A=0,m=0;m<3;++m)x[m]-=L[m]*M/C,A+=x[m]*x[m],L[m]/=P;for(var B=Math.sqrt(A),m=0;m<3;++m)x[m]/=B;var F=this.computedToward;f(F,L,x),c(F,F);for(var U=Math.exp(this.computedRadius[0]),G=this.computedAngle[0],j=this.computedAngle[1],H=Math.cos(G),N=Math.sin(G),W=Math.cos(j),re=Math.sin(j),ae=this.computedCenter,be=H*W,Pe=N*W,Ce=re,de=-H*re,te=-N*re,ke=W,Ee=this.computedEye,Me=this.computedMatrix,m=0;m<3;++m){var Ne=be*x[m]+Pe*F[m]+Ce*L[m];Me[4*m+1]=de*x[m]+te*F[m]+ke*L[m],Me[4*m+2]=Ne,Me[4*m+3]=0}var Fe=Me[1],ye=Me[5],Ve=Me[9],ce=Me[2],Ke=Me[6],nt=Me[10],gt=ye*nt-Ve*Ke,Nt=Ve*ce-Fe*nt,it=Fe*Ke-ye*ce,Ye=d(gt,Nt,it);gt/=Ye,Nt/=Ye,it/=Ye,Me[0]=gt,Me[4]=Nt,Me[8]=it;for(var m=0;m<3;++m)Ee[m]=ae[m]+Me[2+4*m]*U;for(var m=0;m<3;++m){for(var A=0,kt=0;kt<3;++kt)A+=Me[m+4*kt]*Ee[kt];Me[12+m]=-A}Me[15]=1},v.getMatrix=function(T,L){this.recalcMatrix(T);var x=this.computedMatrix;if(L){for(var C=0;C<16;++C)L[C]=x[C];return L}return x};var k=[0,0,0];v.rotate=function(T,L,x,C){if(this.angle.move(T,L,x),C){this.recalcMatrix(T);var M=this.computedMatrix;k[0]=M[2],k[1]=M[6],k[2]=M[10];for(var m=this.computedUp,P=this.computedRight,A=this.computedToward,B=0;B<3;++B)M[4*B]=m[B],M[4*B+1]=P[B],M[4*B+2]=A[B];l(M,M,C,k);for(var B=0;B<3;++B)m[B]=M[4*B],P[B]=M[4*B+1];this.up.set(T,m[0],m[1],m[2]),this.right.set(T,P[0],P[1],P[2])}},v.pan=function(T,L,x,C){L=L||0,x=x||0,C=C||0,this.recalcMatrix(T);var M=this.computedMatrix,m=Math.exp(this.computedRadius[0]),P=M[1],A=M[5],B=M[9],F=d(P,A,B);P/=F,A/=F,B/=F;var U=M[0],G=M[4],j=M[8],H=U*P+G*A+j*B;U-=P*H,G-=A*H,j-=B*H;var N=d(U,G,j);U/=N,G/=N,j/=N;var W=U*L+P*x,re=G*L+A*x,ae=j*L+B*x;this.center.move(T,W,re,ae);var be=Math.exp(this.computedRadius[0]);be=Math.max(1e-4,be+C),this.radius.set(T,Math.log(be))},v.translate=function(T,L,x,C){this.center.move(T,L||0,x||0,C||0)},v.setMatrix=function(T,L,x,C){var M=1;typeof x=="number"&&(M=x|0),(M<0||M>3)&&(M=1);var m=(M+2)%3,P=(M+1)%3;L||(this.recalcMatrix(T),L=this.computedMatrix);var A=L[M],B=L[M+4],F=L[M+8];if(C){var G=Math.abs(A),j=Math.abs(B),H=Math.abs(F),N=Math.max(G,j,H);G===N?(A=A<0?-1:1,B=F=0):H===N?(F=F<0?-1:1,A=B=0):(B=B<0?-1:1,A=F=0)}else{var U=d(A,B,F);A/=U,B/=U,F/=U}var W=L[m],re=L[m+4],ae=L[m+8],be=W*A+re*B+ae*F;W-=A*be,re-=B*be,ae-=F*be;var Pe=d(W,re,ae);W/=Pe,re/=Pe,ae/=Pe;var Ce=B*ae-F*re,de=F*W-A*ae,te=A*re-B*W,ke=d(Ce,de,te);Ce/=ke,de/=ke,te/=ke,this.center.jump(T,Et,Ae,at),this.radius.idle(T),this.up.jump(T,A,B,F),this.right.jump(T,W,re,ae);var Ee,Me;if(M===2){var Ne=L[1],Fe=L[5],ye=L[9],Ve=Ne*W+Fe*re+ye*ae,ce=Ne*Ce+Fe*de+ye*te;Nt<0?Ee=-Math.PI/2:Ee=Math.PI/2,Me=Math.atan2(ce,Ve)}else{var Ke=L[2],nt=L[6],gt=L[10],Nt=Ke*A+nt*B+gt*F,it=Ke*W+nt*re+gt*ae,Ye=Ke*Ce+nt*de+gt*te;Ee=Math.asin(p(Nt)),Me=Math.atan2(Ye,it)}this.angle.jump(T,Me,Ee),this.recalcMatrix(T);var kt=L[2],Tt=L[6],St=L[10],Rt=this.computedMatrix;u(Rt,L);var Zt=Rt[15],Et=Rt[12]/Zt,Ae=Rt[13]/Zt,at=Rt[14]/Zt,wt=Math.exp(this.computedRadius[0]);this.center.jump(T,Et-kt*wt,Ae-Tt*wt,at-St*wt)},v.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},v.idle=function(T){this.center.idle(T),this.up.idle(T),this.right.idle(T),this.radius.idle(T),this.angle.idle(T)},v.flush=function(T){this.center.flush(T),this.up.flush(T),this.right.flush(T),this.radius.flush(T),this.angle.flush(T)},v.setDistance=function(T,L){L>0&&this.radius.set(T,Math.log(L))},v.lookAt=function(T,L,x,C){this.recalcMatrix(T),L=L||this.computedEye,x=x||this.computedCenter,C=C||this.computedUp;var M=C[0],m=C[1],P=C[2],A=d(M,m,P);if(!(A<1e-6)){M/=A,m/=A,P/=A;var B=L[0]-x[0],F=L[1]-x[1],U=L[2]-x[2],G=d(B,F,U);if(!(G<1e-6)){B/=G,F/=G,U/=G;var j=this.computedRight,H=j[0],N=j[1],W=j[2],re=M*H+m*N+P*W;H-=re*M,N-=re*m,W-=re*P;var ae=d(H,N,W);if(!(ae<.01&&(H=m*U-P*F,N=P*B-M*U,W=M*F-m*B,ae=d(H,N,W),ae<1e-6))){H/=ae,N/=ae,W/=ae,this.up.set(T,M,m,P),this.right.set(T,H,N,W),this.center.set(T,x[0],x[1],x[2]),this.radius.set(T,Math.log(G));var be=m*W-P*N,Pe=P*H-M*W,Ce=M*N-m*H,de=d(be,Pe,Ce);be/=de,Pe/=de,Ce/=de;var te=M*B+m*F+P*U,ke=H*B+N*F+W*U,Ee=be*B+Pe*F+Ce*U,Me=Math.asin(p(te)),Ne=Math.atan2(Ee,ke),Fe=this.angle._state,ye=Fe[Fe.length-1],Ve=Fe[Fe.length-2];ye=ye%(2*Math.PI);var ce=Math.abs(ye+2*Math.PI-Ne),Ke=Math.abs(ye-Ne),nt=Math.abs(ye-2*Math.PI-Ne);ce0?W.pop():new ArrayBuffer(H)}a.mallocArrayBuffer=k;function E(j){return new Uint8Array(k(j),0,j)}a.mallocUint8=E;function T(j){return new Uint16Array(k(2*j),0,j)}a.mallocUint16=T;function L(j){return new Uint32Array(k(4*j),0,j)}a.mallocUint32=L;function x(j){return new Int8Array(k(j),0,j)}a.mallocInt8=x;function C(j){return new Int16Array(k(2*j),0,j)}a.mallocInt16=C;function M(j){return new Int32Array(k(4*j),0,j)}a.mallocInt32=M;function m(j){return new Float32Array(k(4*j),0,j)}a.mallocFloat32=a.mallocFloat=m;function P(j){return new Float64Array(k(8*j),0,j)}a.mallocFloat64=a.mallocDouble=P;function A(j){return f?new Uint8ClampedArray(k(j),0,j):E(j)}a.mallocUint8Clamped=A;function B(j){return c?new BigUint64Array(k(8*j),0,j):null}a.mallocBigUint64=B;function F(j){return h?new BigInt64Array(k(8*j),0,j):null}a.mallocBigInt64=F;function U(j){return new DataView(k(j),0,j)}a.mallocDataView=U;function G(j){j=s.nextPow2(j);var H=s.log2(j),N=_[H];return N.length>0?N.pop():new l(j)}a.mallocBuffer=G,a.clearCache=function(){for(var H=0;H<32;++H)d.UINT8[H].length=0,d.UINT16[H].length=0,d.UINT32[H].length=0,d.INT8[H].length=0,d.INT16[H].length=0,d.INT32[H].length=0,d.FLOAT[H].length=0,d.DOUBLE[H].length=0,d.BIGUINT64[H].length=0,d.BIGINT64[H].length=0,d.UINT8C[H].length=0,p[H].length=0,_[H].length=0}},1755:function(i){"use strict";"use restrict";i.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var u=0;u",W="",re=N.length,ae=W.length,be=G[0]===k||G[0]===L,Pe=0,Ce=-ae;Pe>-1&&(Pe=j.indexOf(N,Pe),!(Pe===-1||(Ce=j.indexOf(W,Pe+re),Ce===-1)||Ce<=Pe));){for(var de=Pe;de=Ce)H[de]=null,j=j.substr(0,de)+" "+j.substr(de+1);else if(H[de]!==null){var te=H[de].indexOf(G[0]);te===-1?H[de]+=G:be&&(H[de]=H[de].substr(0,te+1)+(1+parseInt(H[de][te+1]))+H[de].substr(te+2))}var ke=Pe+re,Ee=j.substr(ke,Ce-ke),Me=Ee.indexOf(N);Me!==-1?Pe=Me:Pe=Ce+ae}return H}function M(U,G,j){for(var H=G.textAlign||"start",N=G.textBaseline||"alphabetic",W=[1<<30,1<<30],re=[0,0],ae=U.length,be=0;be/g,` +`):j=j.replace(/\/g," ");var re="",ae=[];for(ye=0;ye-1?parseInt(Ae[1+vt]):0,rt=st>-1?parseInt(at[1+st]):0;Ue!==rt&&(wt=wt.replace(it(),"?px "),Ke*=Math.pow(.75,rt-Ue),wt=wt.replace("?px ",it())),ce+=.25*te*(rt-Ue)}if(W.superscripts===!0){var $e=Ae.indexOf(k),zt=at.indexOf(k),Yt=$e>-1?parseInt(Ae[1+$e]):0,hr=zt>-1?parseInt(at[1+zt]):0;Yt!==hr&&(wt=wt.replace(it(),"?px "),Ke*=Math.pow(.75,hr-Yt),wt=wt.replace("?px ",it())),ce-=.25*te*(hr-Yt)}if(W.bolds===!0){var yr=Ae.indexOf(p)>-1,br=at.indexOf(p)>-1;!yr&&br&&(Ut?wt=wt.replace("italic ","italic bold "):wt="bold "+wt),yr&&!br&&(wt=wt.replace("bold ",""))}if(W.italics===!0){var Ut=Ae.indexOf(b)>-1,Ie=at.indexOf(b)>-1;!Ut&&Ie&&(wt="italic "+wt),Ut&&!Ie&&(wt=wt.replace("italic ",""))}G.font=wt}for(Fe=0;Fe0&&(N=H.size),H.lineSpacing&&H.lineSpacing>0&&(W=H.lineSpacing),H.styletags&&H.styletags.breaklines&&(re.breaklines=!!H.styletags.breaklines),H.styletags&&H.styletags.bolds&&(re.bolds=!!H.styletags.bolds),H.styletags&&H.styletags.italics&&(re.italics=!!H.styletags.italics),H.styletags&&H.styletags.subscripts&&(re.subscripts=!!H.styletags.subscripts),H.styletags&&H.styletags.superscripts&&(re.superscripts=!!H.styletags.superscripts)),j.font=[H.fontStyle,H.fontVariant,H.fontWeight,N+"px",H.font].filter(function(be){return be}).join(" "),j.textAlign="start",j.textBaseline="alphabetic",j.direction="ltr";var ae=m(G,j,U,N,W,re);return B(ae,H,N)}},1538:function(i){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(A){A.permitHostObjects___&&A.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var l=new u,f=Object.freeze({});if(l.set(f,1),l.get(f)!==1)s=!0;else{i.exports=WeakMap;return}}}var c=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,p=Object.isExtensible,_="weakmap:",b=_+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var v=new ArrayBuffer(25),k=new Uint8Array(v);crypto.getRandomValues(k),b=_+"rand:"+Array.prototype.map.call(k,function(A){return(A%36).toString(36)}).join("")+"___"}function E(A){return!(A.substr(0,_.length)==_&&A.substr(A.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(B){return h(B).filter(E)}}),"getPropertyNames"in Object){var T=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(B){return T(B).filter(E)}})}function L(A){if(A!==Object(A))throw new TypeError("Not an object: "+A);var B=A[b];if(B&&B.key===A)return B;if(p(A)){B={key:A};try{return d(A,b,{value:B,writable:!1,enumerable:!1,configurable:!1}),B}catch(F){return}}}(function(){var A=Object.freeze;d(Object,"freeze",{value:function(G){return L(G),A(G)}});var B=Object.seal;d(Object,"seal",{value:function(G){return L(G),B(G)}});var F=Object.preventExtensions;d(Object,"preventExtensions",{value:function(G){return L(G),F(G)}})})();function x(A){return A.prototype=null,Object.freeze(A)}var C=!1;function M(){!C&&typeof console!="undefined"&&(C=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var m=0,P=function(){this instanceof P||M();var A=[],B=[],F=m++;function U(N,W){var re,ae=L(N);return ae?F in ae?ae[F]:W:(re=A.indexOf(N),re>=0?B[re]:W)}function G(N){var W=L(N);return W?F in W:A.indexOf(N)>=0}function j(N,W){var re,ae=L(N);return ae?ae[F]=W:(re=A.indexOf(N),re>=0?B[re]=W:(re=A.length,B[re]=W,A[re]=N)),this}function H(N){var W=L(N),re,ae;return W?F in W&&delete W[F]:(re=A.indexOf(N),re<0?!1:(ae=A.length-1,A[re]=void 0,B[re]=B[ae],A[re]=A[ae],A.length=ae,B.length=ae,!0))}return Object.create(P.prototype,{get___:{value:x(U)},has___:{value:x(G)},set___:{value:x(j)},delete___:{value:x(H)}})};P.prototype=Object.create(Object.prototype,{get:{value:function(B,F){return this.get___(B,F)},writable:!0,configurable:!0},has:{value:function(B){return this.has___(B)},writable:!0,configurable:!0},set:{value:function(B,F){return this.set___(B,F)},writable:!0,configurable:!0},delete:{value:function(B){return this.delete___(B)},writable:!0,configurable:!0}}),typeof u=="function"?function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function A(){this instanceof P||M();var B=new u,F=void 0,U=!1;function G(W,re){return F?B.has(W)?B.get(W):F.get___(W,re):B.get(W,re)}function j(W){return B.has(W)||(F?F.has___(W):!1)}var H;s?H=function(W,re){return B.set(W,re),B.has(W)||(F||(F=new P),F.set(W,re)),this}:H=function(W,re){if(U)try{B.set(W,re)}catch(ae){F||(F=new P),F.set___(W,re)}else B.set(W,re);return this};function N(W){var re=!!B.delete(W);return F&&F.delete___(W)||re}return Object.create(P.prototype,{get___:{value:x(G)},has___:{value:x(j)},set___:{value:x(H)},delete___:{value:x(N)},permitHostObjects___:{value:x(function(W){if(W===o)U=!0;else throw new Error("bogus call to permitHostObjects___")})}})}A.prototype=P.prototype,i.exports=A,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),i.exports=P)})()},236:function(i,a,o){var s=o(8284);i.exports=u;function u(){var l={};return function(f){if((typeof f!="object"||f===null)&&typeof f!="function")throw new Error("Weakmap-shim: Key must be object");var c=f.valueOf(l);return c&&c.identity===l?c:s(f,l)}}},8284:function(i){i.exports=a;function a(o,s){var u={identity:s},l=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(f){return f!==s?l.apply(this,arguments):u},writable:!0}),u}},606:function(i,a,o){var s=o(236);i.exports=u;function u(){var l=s();return{get:function(f,c){var h=l(f);return h.hasOwnProperty("value")?h.value:c},set:function(f,c){return l(f).value=c,this},has:function(f){return"value"in l(f)},delete:function(f){return delete l(f).value}}}},3349:function(i){"use strict";function a(){return function(c,h,d,p,_,b){var v=c[0],k=d[0],E=[0],T=k;p|=0;var L=0,x=k;for(L=0;L=0!=M>=0&&_.push(E[0]+.5+.5*(C+M)/(C-M))}p+=x,++E[0]}}}function o(){return a()}var s=o;function u(c){var h={};return function(p,_,b){var v=p.dtype,k=p.order,E=[v,k.join()].join(),T=h[E];return T||(h[E]=T=c([v,k])),T(p.shape.slice(0),p.data,p.stride,p.offset|0,_,b)}}function l(c){return u(s.bind(void 0,c))}function f(c){return l({funcName:c.funcName})}i.exports=f({funcName:"zeroCrossings"})},781:function(i,a,o){"use strict";i.exports=u;var s=o(3349);function u(l,f){var c=[];return f=+f||0,s(l.hi(l.shape[0]-1),c,f),c}},7790:function(){}},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(function(){r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()})(),function(){r.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}}();var n=r(1964);gze.exports=n})()});var AX=Te((ymr,_ze)=>{"use strict";_ze.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Aze=Te((gmr,wze)=>{"use strict";var xze=AX();wze.exports=pIt;var bze={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function pIt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),xze[e])r=xze[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var u=t[1],l=u==="rgb",a=u.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(bze[h]!==void 0)return bze[h]}return parseFloat(h)}),u===a&&r.push(1),n=l||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}});var Sze=Te((_mr,Tze)=>{"use strict";var vIt=Aze();Tze.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=vIt(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=mIt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function mIt(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,u,l=0;if(r===0)return u=n*255,[u,u,u];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];l<3;)o=t+1/3*-(l-1),o<0?o++:o>1&&o--,u=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l++]=u*255;return s}});var Z4=Te((xmr,Mze)=>{Mze.exports=yIt;function yIt(e,t,r){return tr?r:e:et?t:e}});var j6=Te((bmr,Eze)=>{Eze.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var J_=Te((wmr,kze)=>{"use strict";var gIt=Sze(),X6=Z4(),_It=j6();kze.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=_It(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=gIt(t),t[0]/=255,t[1]/=255,t[2]/=255),xIt(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=X6(Math.floor(t[0]*255),0,255),i[1]=X6(Math.floor(t[1]*255),0,255),i[2]=X6(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:X6(Math.floor(t[3]*255),0,255)),i)};function xIt(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var Jg=Te((Amr,Cze)=>{"use strict";var bIt=J_();function wIt(e){return e?bIt(e):[0,0,0,1]}Cze.exports=wIt});var $g=Te((Tmr,Fze)=>{"use strict";var Rze=ku(),AIt=cd(),Z6=J_(),Y6=_c(),TIt=Rh().defaultLine,Lze=mp().isArrayOrTypedArray,TX=Z6(TIt),Dze=1;function Pze(e,t){var r=e;return r[3]*=t,r}function zze(e){if(Rze(e))return TX;var t=Z6(e);return t.length?t:TX}function Ize(e){return Rze(e)?e:Dze}function SIt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=Lze(n),a=Lze(t),o=Y6.extractOpts(e),s=[],u,l,f,c,h;if(o.colorscale!==void 0?u=Y6.makeColorScaleFuncFromTrace(e):u=zze,i?l=function(p,_){return p[_]===void 0?TX:Z6(u(p[_]))}:l=zze,a?f=function(p,_){return p[_]===void 0?Dze:Ize(p[_])}:f=Ize,i||a)for(var d=0;d{"use strict";Bze.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var K6=Te((Mmr,Oze)=>{"use strict";Oze.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var Nze=Te((Emr,qze)=>{"use strict";var EIt=$l();function MX(e,t,r,n){if(!t||!t.visible)return null;for(var i=EIt.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var c=n.c2l(l);n._lowerLogErrorBound||(n._lowerLogErrorBound=c),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,c)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function kIt(e){for(var t=0;t{"use strict";var LIt=qd().gl_line3d,Uze=qd().gl_scatter3d,PIt=qd().gl_error3d,zIt=qd().gl_mesh3d,IIt=qd().delaunay_triangulate,Qg=ei(),jze=Jg(),J6=$g().formatColor,RIt=S3(),EX=SX(),DIt=K6(),FIt=wu(),BIt=iv().appendArrayPointValue,OIt=Nze();function Xze(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var CX=Xze.prototype;CX.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Qg.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function qIt(e,t,r){var n=(r+1)%3,i=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function Gze(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function UIt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var l=qIt(s.position,s.delaunayColor,s.delaunayAxis);l.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(l):(l.gl=t,this.delaunayMesh=zIt(l),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};CX.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function WIt(e,t){var r=new Xze(e,t.uid);return r.update(t),r}Zze.exports=WIt});var RX=Te((Cmr,$ze)=>{"use strict";var e1=Zc(),jIt=gc(),IX=nc(),LX=jc().axisHoverFormat,XIt=Nu().hovertemplateAttrs,ZIt=Nu().texttemplateAttrs,Kze=Gf(),YIt=SX(),KIt=K6(),Ym=Su().extendFlat,JIt=Sc().overrideAll,Jze=Z1(),$It=e1.line,N2=e1.marker,QIt=N2.line,eRt=Ym({width:$It.width,dash:{valType:"enumerated",values:Jze(YIt),dflt:"solid"}},IX("line"));function PX(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var zX=$ze.exports=JIt({x:e1.x,y:e1.y,z:{valType:"data_array"},text:Ym({},e1.text,{}),texttemplate:ZIt({},{}),hovertext:Ym({},e1.hovertext,{}),hovertemplate:XIt(),xhoverformat:LX("x"),yhoverformat:LX("y"),zhoverformat:LX("z"),mode:Ym({},e1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:PX("x"),y:PX("y"),z:PX("z")},connectgaps:e1.connectgaps,line:eRt,marker:Ym({symbol:{valType:"enumerated",values:Jze(KIt),dflt:"circle",arrayOk:!0},size:Ym({},N2.size,{dflt:8}),sizeref:N2.sizeref,sizemin:N2.sizemin,sizemode:N2.sizemode,opacity:Ym({},N2.opacity,{arrayOk:!1}),colorbar:N2.colorbar,line:Ym({width:Ym({},QIt.width,{arrayOk:!1})},IX("marker.line"))},IX("marker")),textposition:Ym({},e1.textposition,{dflt:"top center"}),textfont:jIt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:Kze.opacity,hoverinfo:Ym({},Kze.hoverinfo)},"calc","nested");zX.x.editType=zX.y.editType=zX.z.editType="calc+clearAxisTypes"});var tIe=Te((Lmr,eIe)=>{"use strict";var Qze=$l(),tRt=ei(),DX=lc(),rRt=$v(),iRt=R0(),nRt=D0(),aRt=RX();eIe.exports=function(t,r,n,i){function a(d,p){return tRt.coerce(t,r,aRt,d,p)}var o=oRt(t,r,a,i);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),DX.hasMarkers(r)&&rRt(t,r,n,i,a,{noSelect:!0,noAngle:!0}),DX.hasLines(r)&&(a("connectgaps"),iRt(t,r,n,i,a)),DX.hasText(r)&&(a("texttemplate"),nRt(t,r,i,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,u=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||u);for(var l=["x","y","z"],f=0;f<3;++f){var c="projection."+l[f];a(c+".show")&&(a(c+".opacity"),a(c+".scale"))}var h=Qze.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||u||n,{axis:"z"}),h(t,r,s||u||n,{axis:"y",inherit:"z"}),h(t,r,s||u||n,{axis:"x",inherit:"z"})};function oRt(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),u=Qze.getComponentMethod("calendars","handleTraceDefaults");return u(e,t,["x","y","z"],n),a&&o&&s&&(i=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=i),i}});var iIe=Te((Pmr,rIe)=>{"use strict";var sRt=ky(),lRt=F0();rIe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return sRt(n,r),lRt(t,r),n}});var aIe=Te((zmr,nIe)=>{nIe.exports=uRt;function uRt(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var n=t,i;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var fRt=aIe();oIe.exports=function(t){return fRt("webgl",t)}});var FX=Te((Rmr,uIe)=>{"use strict";var lIe=jl(),cRt=function(){};uIe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=cRt);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=lIe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=lIe.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),t.container.appendChild(n),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var hIe=Te((Dmr,cIe)=>{"use strict";var U2=Jg(),hRt=ei(),dRt=["xaxis","yaxis","zaxis"];function fIe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var pRt=fIe.prototype;pRt.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[dRt[n]];if(!i.visible){r.tickEnable[n]=!1,r.labelEnable[n]=!1,r.lineEnable[n]=!1,r.lineTickEnable[n]=!1,r.gridEnable[n]=!1,r.zeroEnable[n]=!1,r.backgroundEnable[n]=!1;continue}r.labels[n]=e._meta?hRt.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=U2(i.title.font.color)),i.title.font.family&&(r.labelFont[n]=i.title.font.family),i.title.font.size&&(r.labelSize[n]=i.title.font.size),i.title.font.weight&&(r.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(r.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(r.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(r.lineEnable[n]=i.showline),"linecolor"in i&&(r.lineColor[n]=U2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=U2(i.gridcolor)),"gridwidth"in i&&(r.gridWidth[n]=i.gridwidth),i.type==="log"?r.zeroEnable[n]=!1:"zeroline"in i&&(r.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(r.zeroLineColor[n]=U2(i.zerolinecolor)),"zerolinewidth"in i&&(r.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?r.lineTickEnable[n]=!0:r.lineTickEnable[n]=!1,"ticklen"in i&&(r.lineTickLength[n]=r._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(r.lineTickColor[n]=U2(i.tickcolor)),"tickwidth"in i&&(r.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(r.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(r.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(r.tickColor[n]=U2(i.tickfont.color)),i.tickfont.family&&(r.tickFont[n]=i.tickfont.family),i.tickfont.size&&(r.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(r.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(r.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(r.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(r.lineTickMirror[n]=!0,r.lineMirror[n]=!0):i.mirror===!0?(r.lineTickMirror[n]=!1,r.lineMirror[n]=!0):(r.lineTickMirror[n]=!1,r.lineMirror[n]=!1):r.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(r.backgroundEnable[n]=!0,r.backgroundColor[n]=U2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function vRt(e,t){var r=new fIe;return r.merge(e,t),r}cIe.exports=vRt});var vIe=Te((Fmr,pIe)=>{"use strict";var mRt=Jg(),yRt=["xaxis","yaxis","zaxis"];function dIe(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var gRt=dIe.prototype;gRt.merge=function(e){for(var t=0;t<3;++t){var r=e[yRt[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=mRt(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function _Rt(e){var t=new dIe;return t.merge(e),t}pIe.exports=_Rt});var gIe=Te((Bmr,yIe)=>{"use strict";yIe.exports=TRt;var mIe=wu(),xRt=ei(),bRt=["xaxis","yaxis","zaxis"],wRt=[0,0,0];function ARt(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a/g," "));i[a]=l,o.tickmode=s}}t.ticks=i;for(var a=0;a<3;++a){wRt[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var f=0;f<2;++f)t.bounds[f][a]=e.glplot.bounds[f][a]}e.contourLevels=ARt(i)}});var SIe=Te((Omr,TIe)=>{"use strict";var bIe=qd().gl_plot3d,SRt=bIe.createCamera,_Ie=bIe.createScene,MRt=sIe(),ERt=PP(),eF=$l(),uv=ei(),Q6=uv.preserveDrawingBuffer(),tF=wu(),Km=Xc(),kRt=Jg(),CRt=FX(),LRt=YU(),PRt=hIe(),zRt=vIe(),IRt=gIe(),RRt=Am().applyAutorangeOptions,Y4,$6,wIe=!1;function AIe(e,t){var r=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=PRt(t,t[this.id]),this.spikeOptions=zRt(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=eF.getComponentMethod("annotations3d","convert"),this.drawAnnotations=eF.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Mp=AIe.prototype;Mp.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:Q6,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!$6&&(Y4=document.createElement("canvas"),$6=MRt({canvas:Y4,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!$6))throw new Error("error creating static canvas/context for image server");t.gl=$6,t.canvas=Y4}return t};var xIe=!0;Mp.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=_Ie(t)}catch(n){if(e.staticMode||!xIe||Q6)r=!1;else{uv.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{Q6=t.glOptions.preserveDrawingBuffer=!0,e.glplot=_Ie(t)}catch(i){Q6=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return xIe=!1,r};Mp.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=SRt(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};Mp.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return CRt(e);e.traces={},e.make4thDimension();var r=e.graphDiv,n=r.layout,i=function(){var o={};return e.isCameraChanged(n)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=i();o.saveLayout(n),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){wIe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*u.x,y:s*u.y,z:s*u.z})}a(e)}},ERt?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=i();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Mp.render=function(){var e=this,t=e.graphDiv,r,n=e.svgContainer,i=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=i.width*a,u=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+u),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",u),IRt(e),e.glplot.axes.update(e.axesOptions);for(var l=Object.keys(e.traces),f=null,c=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(v.valueLabel=tF.hoverLabelText(e._mockAxis,e._mockAxis.d2l(c.traceCoordinate[3]),r.valuehoverformat),x.push("value: "+v.valueLabel),c.textLabel&&x.push(c.textLabel),L=x.join("
")):L=c.textLabel;var C={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:_._input,fullData:_,curveNumber:_.index,pointNumber:b};Km.appendArrayPointValue(C,_,b),r._module.eventData&&(C=_._module.eventData(C,c,_,{},b));var M={points:[C]};if(e.fullSceneLayout.hovermode){var m=[];Km.loneHover({trace:_,x:(.5+.5*p[0]/p[3])*s,y:(.5-.5*p[1]/p[3])*u,xLabel:v.xLabel,yLabel:v.yLabel,zLabel:v.zLabel,text:L,name:f.name,color:Km.castHoverOption(_,b,"bgcolor")||f.color,borderColor:Km.castHoverOption(_,b,"bordercolor"),fontFamily:Km.castHoverOption(_,b,"font.family"),fontSize:Km.castHoverOption(_,b,"font.size"),fontColor:Km.castHoverOption(_,b,"font.color"),nameLength:Km.castHoverOption(_,b,"namelength"),textAlign:Km.castHoverOption(_,b,"align"),hovertemplate:uv.castOption(_,b,"hovertemplate"),hovertemplateLabels:uv.extendFlat({},C,v),eventData:[C]},{container:n,gd:t,inOut_bbox:m}),C.bbox=m[0]}c.distance<5&&(c.buttons||wIe)?t.emit("plotly_click",M):t.emit("plotly_hover",M),this.oldEventData=M}else Km.loneUnhover(n),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Mp.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){uv.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var K4=["xaxis","yaxis","zaxis"];function DRt(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=K4[i],o=a.charAt(0),s=n[a],u=t[o],l=t[o+"calendar"],f=t["_"+o+"length"];if(!uv.isArrayOrTypedArray(u))r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],f-1);else for(var c,h=0;h<(f||u.length);h++)if(uv.isArrayOrTypedArray(u[h]))for(var d=0;d_[1][o])_[0][o]=-1,_[1][o]=1;else{var A=_[1][o]-_[0][o];_[0][o]-=A/32,_[1][o]+=A/32}if(k=[_[0][o],_[1][o]],k=RRt(k,u),_[0][o]=k[0],_[1][o]=k[1],u.isReversed()){var B=_[0][o];_[0][o]=_[1][o],_[1][o]=B}}else k=u.range,_[0][o]=u.r2l(k[0]),_[1][o]=u.r2l(k[1]);_[0][o]===_[1][o]&&(_[0][o]-=1,_[1][o]+=1),b[o]=_[1][o]-_[0][o],u.range=[_[0][o],_[1][o]],u.limitRange(),n.glplot.setBounds(o,{min:u.range[0]*d[o],max:u.range[1]*d[o]})}var F,U=f.aspectmode;if(U==="cube")F=[1,1,1];else if(U==="manual"){var G=f.aspectratio;F=[G.x,G.y,G.z]}else if(U==="auto"||U==="data"){var j=[1,1,1];for(o=0;o<3;++o){u=f[K4[o]],l=u.type;var H=v[l];j[o]=Math.pow(H.acc,1/H.count)/d[o]}U==="data"||Math.max.apply(null,j)/Math.min.apply(null,j)<=4?F=j:F=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=c.aspectratio.x=F[0],f.aspectratio.y=c.aspectratio.y=F[1],f.aspectratio.z=c.aspectratio.z=F[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var N=f.domain||null,W=t._size||null;if(N&&W){var re=n.container.style;re.position="absolute",re.left=W.l+N.x[0]*W.w+"px",re.top=W.t+(1-N.y[1])*W.h+"px",re.width=W.w*(N.x[1]-N.x[0])+"px",re.height=W.h*(N.y[1]-N.y[0])+"px"}n.glplot.redraw()}};Mp.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function BRt(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function ORt(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Mp.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),ORt(e.camera)};Mp.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,BRt(r)),t.glplot.setAspectratio(e.aspectratio);var n=r.projection.type==="orthographic",i=t.camera._ortho;n!==i&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};Mp.isCameraChanged=function(e){var t=this,r=t.getCamera(),n=uv.nestedProperty(e,t.id+".camera"),i=n.get();function a(l,f,c,h){var d=["up","center","eye"],p=["x","y","z"];return f[d[c]]&&l[d[c]][p[h]]===f[d[c]][p[h]]}var o=!1;if(i===void 0)o=!0;else{for(var s=0;s<3;s++)for(var u=0;u<3;u++)if(!a(r,i,s,u)){o=!0;break}(!i.projection||r.projection&&r.projection.type!==i.projection.type)&&(o=!0)}return o};Mp.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),n=uv.nestedProperty(e,t.id+".aspectratio"),i=n.get();return i===void 0||i.x!==r.x||i.y!==r.y||i.z!==r.z};Mp.saveLayout=function(e){var t=this,r=t.fullLayout,n,i,a,o,s,u,l=t.isCameraChanged(e),f=t.isAspectChanged(e),c=l||f;if(c){var h={};if(l&&(n=t.getCamera(),i=uv.nestedProperty(e,t.id+".camera"),a=i.get(),h[t.id+".camera"]=a),f&&(o=t.glplot.getAspectratio(),s=uv.nestedProperty(e,t.id+".aspectratio"),u=s.get(),h[t.id+".aspectratio"]=u),eF.call("_storeDirectGUIEdit",e,r._preGUI,h),l){i.set(n);var d=uv.nestedProperty(r,t.id+".camera");d.set(n)}if(f){s.set(o);var p=uv.nestedProperty(r,t.id+".aspectratio");p.set(o),t.glplot.redraw()}}return c};Mp.updateFx=function(e,t){var r=this,n=r.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,u=o.up.y,l=o.up.z;if(l/Math.sqrt(s*s+u*u+l*l)<.999){var f=r.id+".camera.up",c={x:0,y:0,z:1},h={};h[f]=c;var d=i.layout;eF.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=c,uv.nestedProperty(d,f).set(c)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function qRt(e,t,r){for(var n=0,i=r-1;n0)for(var s=255/o,u=0;u<3;++u)e[a+u]=Math.min(s*e[a+u],255)}}Mp.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(Y4),t.glplot.redraw();var r=t.glplot.gl,n=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(n*i*4);r.readPixels(0,0,n,i,r.RGBA,r.UNSIGNED_BYTE,a),qRt(a,n,i),NRt(a,n,i);var o=document.createElement("canvas");o.width=n,o.height=i;var s=o.getContext("2d",{willReadFrequently:!0}),u=s.createImageData(n,i);u.data.set(a),s.putImageData(u,0,0);var l;switch(e){case"jpeg":l=o.toDataURL("image/jpeg");break;case"webp":l=o.toDataURL("image/webp");break;default:l=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(Y4),l};Mp.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[K4[t]];tF.setConvert(r,e.fullLayout),r.setScale=uv.noop}};Mp.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},tF.setConvert(e._mockAxis,r)};TIe.exports=AIe});var EIe=Te((qmr,MIe)=>{"use strict";MIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var OX=Te((Nmr,kIe)=>{"use strict";var URt=jl(),cf=Dd(),BX=Su().extendFlat,VRt=Sc().overrideAll;kIe.exports=VRt({visible:cf.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:URt.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:cf.color,categoryorder:cf.categoryorder,categoryarray:cf.categoryarray,title:{text:cf.title.text,font:cf.title.font},type:BX({},cf.type,{values:["-","linear","log","date","category"]}),autotypenumbers:cf.autotypenumbers,autorange:cf.autorange,autorangeoptions:{minallowed:cf.autorangeoptions.minallowed,maxallowed:cf.autorangeoptions.maxallowed,clipmin:cf.autorangeoptions.clipmin,clipmax:cf.autorangeoptions.clipmax,include:cf.autorangeoptions.include,editType:"plot"},rangemode:cf.rangemode,minallowed:cf.minallowed,maxallowed:cf.maxallowed,range:BX({},cf.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:cf.minor.tickmode,nticks:cf.nticks,tick0:cf.tick0,dtick:cf.dtick,tickvals:cf.tickvals,ticktext:cf.ticktext,ticks:cf.ticks,mirror:cf.mirror,ticklen:cf.ticklen,tickwidth:cf.tickwidth,tickcolor:cf.tickcolor,showticklabels:cf.showticklabels,labelalias:cf.labelalias,tickfont:cf.tickfont,tickangle:cf.tickangle,tickprefix:cf.tickprefix,showtickprefix:cf.showtickprefix,ticksuffix:cf.ticksuffix,showticksuffix:cf.showticksuffix,showexponent:cf.showexponent,exponentformat:cf.exponentformat,minexponent:cf.minexponent,separatethousands:cf.separatethousands,tickformat:cf.tickformat,tickformatstops:cf.tickformatstops,hoverformat:cf.hoverformat,showline:cf.showline,linecolor:cf.linecolor,linewidth:cf.linewidth,showgrid:cf.showgrid,gridcolor:BX({},cf.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:cf.gridwidth,zeroline:cf.zeroline,zerolinecolor:cf.zerolinecolor,zerolinewidth:cf.zerolinewidth},"plot","from-root")});var VX=Te((Umr,CIe)=>{"use strict";var qX=OX(),GRt=zc().attributes,NX=Su().extendFlat,HRt=ei().counterRegex;function UX(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}CIe.exports={_arrayAttrRegexps:[HRt("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:NX(UX(0,0,1),{}),center:NX(UX(0,0,0),{}),eye:NX(UX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:GRt({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:qX,yaxis:qX,zaxis:qX,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var IIe=Te((Vmr,zIe)=>{"use strict";var WRt=cd().mix,LIe=ei(),jRt=Pf(),XRt=OX(),ZRt=IU(),YRt=rE(),PIe=["xaxis","yaxis","zaxis"],KRt=100*136/187;zIe.exports=function(t,r,n){var i,a;function o(l,f){return LIe.coerce(i,a,XRt,l,f)}for(var s=0;s{"use strict";var JRt=ei(),$Rt=jl(),QRt=$l(),eDt=k_(),tDt=IIe(),RIe=VX(),rDt=Rd().getSubplotData,DIe="gl3d";FIe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=JRt.validate(t[o],RIe[o]);if(s)return t[o]}}eDt(t,r,n,{type:DIe,attributes:RIe,handleDefaults:iDt,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function iDt(e,t,r,n){for(var i=r("bgcolor"),a=$Rt.combine(i,n.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",n.getDfltFromLayout("hovermode"))}});var $_=Te(fv=>{"use strict";var nDt=Sc().overrideAll,aDt=q1(),oDt=SIe(),sDt=Rd().getSubplotData,lDt=ei(),uDt=jv(),NT="gl3d",GX="scene";fv.name=NT;fv.attr=GX;fv.idRoot=GX;fv.idRegex=fv.attrRegex=lDt.counterRegex("scene");fv.attributes=EIe();fv.layoutAttributes=VX();fv.baseLayoutAttrOverrides=nDt({hoverlabel:aDt.hoverlabel},"plot","nested");fv.supplyLayoutDefaults=BIe();fv.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[NT],a=0;a{"use strict";OIe.exports={plot:Yze(),attributes:RX(),markerSymbols:K6(),supplyDefaults:tIe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:iIe(),moduleType:"trace",name:"scatter3d",basePlotModule:$_(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var UIe=Te((jmr,NIe)=>{"use strict";NIe.exports=qIe()});var J4=Te((Xmr,HIe)=>{"use strict";var VIe=jl(),fDt=nc(),HX=jc().axisHoverFormat,cDt=Nu().hovertemplateAttrs,GIe=Gf(),WX=Su().extendFlat,hDt=Sc().overrideAll;function jX(e){return{valType:"boolean",dflt:!1}}function XX(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:jX("x"),y:jX("y"),z:jX("z")},color:{valType:"color",dflt:VIe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:VIe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var ZX=HIe.exports=hDt(WX({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:cDt(),xhoverformat:HX("x"),yhoverformat:HX("y"),zhoverformat:HX("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},fDt("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:XX("x"),y:XX("y"),z:XX("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:WX({},GIe.hoverinfo),showlegend:WX({},GIe.showlegend,{dflt:!1})}),"calc","nested");ZX.x.editType=ZX.y.editType=ZX.z.editType="calc+clearAxisTypes"});var KX=Te((Zmr,XIe)=>{"use strict";var dDt=$l(),WIe=ei(),pDt=ed(),vDt=J4(),YX=.1;function mDt(e,t){for(var r=[],n=32,i=0;i{"use strict";var ZIe=gp();YIe.exports=function(t,r){r.surfacecolor?ZIe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):ZIe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var rRe=Te((Kmr,tRe)=>{"use strict";var _Dt=qd().gl_surface3d,UT=qd().ndarray,xDt=qd().ndarray_linear_interpolate.d2,bDt=iR(),wDt=nR(),$4=ei().isArrayOrTypedArray,ADt=$g().parseColorScale,JIe=Jg(),TDt=_c().extractOpts;function QIe(e,t,r){this.scene=e,this.uid=r,this.surface=t,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var Jm=QIe.prototype;Jm.getXat=function(e,t,r,n){var i=$4(this.data.x)?$4(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?i:n.d2l(i,0,r)};Jm.getYat=function(e,t,r,n){var i=$4(this.data.y)?$4(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?i:n.d2l(i,0,r)};Jm.getZat=function(e,t,r,n){var i=this.data.z[t][e];return i===null&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[t][e]),r===void 0?i:n.d2l(i,0,r)};Jm.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[n,i],e.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],e.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return $4(s)&&s[i]&&s[i][n]!==void 0?e.textLabel=s[i][n]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function SDt(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var VT=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function MDt(e,t){if(e0){r=VT[n];break}return r}function kDt(e,t){if(!(e<1||t<1)){for(var r=JX(e),n=JX(t),i=1,a=0;arF;)n--,n/=EDt(n),n++,n<$Ie&&(n=rF);var i=Math.round(n/e);return i>1?i:1};function LDt(e,t,r){var n=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/n,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/n,e}function PDt(e,t,r){return zDt(e,t,LDt,r),e}function zDt(e,t,r,n){for(var i=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(t[n]=!0,i=this.contourStart[n];ih&&(this.minValues[l]=h),this.maxValues[l]{"use strict";iRe.exports={attributes:J4(),supplyDefaults:KX().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:KIe(),plot:rRe(),moduleType:"trace",name:"surface",basePlotModule:$_(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var oRe=Te(($mr,aRe)=>{"use strict";aRe.exports=nRe()});var GT=Te((Qmr,lRe)=>{"use strict";var DDt=nc(),$X=jc().axisHoverFormat,FDt=Nu().hovertemplateAttrs,Q_=J4(),sRe=Gf(),ex=Su().extendFlat;lRe.exports=ex({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:FDt({editType:"calc"}),xhoverformat:$X("x"),yhoverformat:$X("y"),zhoverformat:$X("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},DDt("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:Q_.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:ex({},Q_.contours.x.show,{}),color:Q_.contours.x.color,width:Q_.contours.x.width,editType:"calc"},lightposition:{x:ex({},Q_.lightposition.x,{dflt:1e5}),y:ex({},Q_.lightposition.y,{dflt:1e5}),z:ex({},Q_.lightposition.z,{dflt:0}),editType:"calc"},lighting:ex({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},Q_.lighting),hoverinfo:ex({},sRe.hoverinfo,{editType:"calc"}),showlegend:ex({},sRe.showlegend,{dflt:!1})})});var nF=Te((eyr,fRe)=>{"use strict";var BDt=nc(),iF=jc().axisHoverFormat,ODt=Nu().hovertemplateAttrs,Q4=GT(),uRe=Gf(),QX=Su().extendFlat,qDt=Sc().overrideAll;function eZ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function tZ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var HT=fRe.exports=qDt(QX({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:eZ("x"),y:eZ("y"),z:eZ("z")},caps:{x:tZ("x"),y:tZ("y"),z:tZ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:ODt(),xhoverformat:iF("x"),yhoverformat:iF("y"),zhoverformat:iF("z"),valuehoverformat:iF("value",1),showlegend:QX({},uRe.showlegend,{dflt:!1})},BDt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:Q4.opacity,lightposition:Q4.lightposition,lighting:Q4.lighting,flatshading:Q4.flatshading,contour:Q4.contour,hoverinfo:QX({},uRe.hoverinfo)}),"calc","nested");HT.flatshading.dflt=!0;HT.lighting.facenormalsepsilon.dflt=0;HT.x.editType=HT.y.editType=HT.z.editType=HT.value.editType="calc+clearAxisTypes"});var rZ=Te((tyr,hRe)=>{"use strict";var NDt=ei(),UDt=$l(),VDt=nF(),GDt=ed();function HDt(e,t,r,n){function i(a,o){return NDt.coerce(e,t,VDt,a,o)}cRe(e,t,r,n,i)}function cRe(e,t,r,n,i){var a=i("isomin"),o=i("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=i("x"),u=i("y"),l=i("z"),f=i("value");if(!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length){t.visible=!1;return}var c=UDt.getComponentMethod("calendars","handleTraceDefaults");c(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(_){i(_+"hoverformat");var b="caps."+_,v=i(b+".show");v&&i(b+".fill");var k="slices."+_,E=i(k+".show");E&&(i(k+".fill"),i(k+".locations"))});var h=i("spaceframe.show");h&&i("spaceframe.fill");var d=i("surface.show");d&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var p=i("contour.show");p&&(i("contour.color"),i("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(_){i(_)}),GDt(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}hRe.exports={supplyDefaults:HDt,supplyIsoDefaults:cRe}});var aF=Te((ryr,pRe)=>{"use strict";var nZ=ei(),WDt=gp();function jDt(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=Hy(t.u,t._len),t._v=Hy(t.v,t._len),t._w=Hy(t.w,t._len),t._x=Hy(t.x,t._len),t._y=Hy(t.y,t._len),t._z=Hy(t.z,t._len);var r=dRe(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var n=0,i,a,o;t.starts&&(i=Hy(t.starts.x||[]),a=Hy(t.starts.y||[]),o=Hy(t.starts.z||[]),n=Math.min(i.length,a.length,o.length)),t._startsX=i||[],t._startsY=a||[],t._startsZ=o||[];var s=0,u=1/0,l;for(l=0;l1&&(E=t[i-1],L=r[i-1],C=n[i-1]),a=0;aE?"-":"+")+"x"),p=p.replace("y",(T>L?"-":"+")+"y"),p=p.replace("z",(x>C?"-":"+")+"z");var A=function(){i=0,M=[],m=[],P=[]};(!i||i{"use strict";var XDt=gp(),ZDt=aF().processGrid,oF=aF().filter;vRe.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=oF(r.x,r._len),r._y=oF(r.y,r._len),r._z=oF(r.z,r._len),r._value=oF(r.value,r._len);var n=ZDt(r);r._gridFill=n.fill,r._Xs=n.Xs,r._Ys=n.Ys,r._Zs=n.Zs,r._len=n.len;for(var i=1/0,a=-1/0,o=0;o{"use strict";mRe.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var YDt=qd().gl_mesh3d,KDt=$g().parseColorScale,JDt=ei().isArrayOrTypedArray,$Dt=Jg(),QDt=_c().extractOpts,yRe=WT(),ek=function(e,t){for(var r=t.length-1;r>0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n-1}function ae(wt,vt){return wt===null?vt:wt}function be(wt,vt,st){A();var Ue=[vt],rt=[st];if(H>=1)Ue=[vt],rt=[st];else if(H>0){var $e=W(vt,st);Ue=$e.xyzv,rt=$e.abc}for(var zt=0;zt-1?st[hr]:P(yr,br,Ut);xe>-1?Yt[hr]=xe:Yt[hr]=F(yr,br,Ut,ae(wt,Ie))}U(Yt[0],Yt[1],Yt[2])}}function Pe(wt,vt,st){var Ue=function(rt,$e,zt){be(wt,[vt[rt],vt[$e],vt[zt]],[st[rt],st[$e],st[zt]])};Ue(0,1,2),Ue(2,3,0)}function Ce(wt,vt,st){var Ue=function(rt,$e,zt){be(wt,[vt[rt],vt[$e],vt[zt]],[st[rt],st[$e],st[zt]])};Ue(0,1,2),Ue(3,0,1),Ue(2,3,0),Ue(1,2,3)}function de(wt,vt,st,Ue){var rt=wt[3];rtUe&&(rt=Ue);for(var $e=(wt[3]-rt)/(wt[3]-vt[3]+1e-9),zt=[],Yt=0;Yt<4;Yt++)zt[Yt]=(1-$e)*wt[Yt]+$e*vt[Yt];return zt}function te(wt,vt,st){return wt>=vt&&wt<=st}function ke(wt){var vt=.001*(L-T);return wt>=T-vt&&wt<=L+vt}function Ee(wt){for(var vt=[],st=0;st<4;st++){var Ue=wt[st];vt.push([e._x[Ue],e._y[Ue],e._z[Ue],e._value[Ue]])}return vt}var Me=3;function Ne(wt,vt,st,Ue,rt,$e){$e||($e=1),st=[-1,-1,-1];var zt=!1,Yt=[te(vt[0][3],Ue,rt),te(vt[1][3],Ue,rt),te(vt[2][3],Ue,rt)];if(!Yt[0]&&!Yt[1]&&!Yt[2])return!1;var hr=function(br,Ut,Ie){return ke(Ut[0][3])&&ke(Ut[1][3])&&ke(Ut[2][3])?(be(br,Ut,Ie),!0):$eYt?[k,$e]:[$e,E];Tt(vt,hr[0],hr[1])}}var yr=[[Math.min(T,E),Math.max(T,E)],[Math.min(k,L),Math.max(k,L)]];["x","y","z"].forEach(function(br){for(var Ut=[],Ie=0;Ie0&&(ge.push(dt.id),br==="x"?fe.push([dt.distRatio,0,0]):br==="y"?fe.push([0,dt.distRatio,0]):fe.push([0,0,dt.distRatio]))}else br==="x"?ct=Et(1,d-1):br==="y"?ct=Et(1,p-1):ct=Et(1,_-1);ge.length>0&&(br==="x"?Ut[xe]=St(wt,ge,Oe,Re,fe,Ut[xe]):br==="y"?Ut[xe]=Rt(wt,ge,Oe,Re,fe,Ut[xe]):Ut[xe]=Zt(wt,ge,Oe,Re,fe,Ut[xe]),xe++),ct.length>0&&(br==="x"?Ut[xe]=gt(wt,ct,Oe,Re,Ut[xe]):br==="y"?Ut[xe]=Nt(wt,ct,Oe,Re,Ut[xe]):Ut[xe]=it(wt,ct,Oe,Re,Ut[xe]),xe++)}var It=e.caps[br];It.show&&It.fill&&(N(It.fill),br==="x"?Ut[xe]=gt(wt,[0,d-1],Oe,Re,Ut[xe]):br==="y"?Ut[xe]=Nt(wt,[0,p-1],Oe,Re,Ut[xe]):Ut[xe]=it(wt,[0,_-1],Oe,Re,Ut[xe]),xe++)}}),s===0&&B(),e._meshX=x,e._meshY=C,e._meshZ=M,e._meshIntensity=m,e._Xs=f,e._Ys=c,e._Zs=h}return at(),e}function t6t(e,t){var r=e.glplot.gl,n=YDt({gl:r}),i=new gRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}xRe.exports={findNearestOnAxis:ek,generateIsoMeshes:_Re,createIsosurfaceTrace:t6t}});var wRe=Te((oyr,bRe)=>{"use strict";bRe.exports={attributes:nF(),supplyDefaults:rZ().supplyDefaults,calc:aZ(),colorbar:{min:"cmin",max:"cmax"},plot:sF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:$_(),categories:["gl3d","showLegend"],meta:{}}});var TRe=Te((syr,ARe)=>{"use strict";ARe.exports=wRe()});var lZ=Te((lyr,MRe)=>{"use strict";var r6t=nc(),Nh=nF(),i6t=J4(),SRe=Gf(),sZ=Su().extendFlat,n6t=Sc().overrideAll,lF=MRe.exports=n6t(sZ({x:Nh.x,y:Nh.y,z:Nh.z,value:Nh.value,isomin:Nh.isomin,isomax:Nh.isomax,surface:Nh.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Nh.slices,caps:Nh.caps,text:Nh.text,hovertext:Nh.hovertext,xhoverformat:Nh.xhoverformat,yhoverformat:Nh.yhoverformat,zhoverformat:Nh.zhoverformat,valuehoverformat:Nh.valuehoverformat,hovertemplate:Nh.hovertemplate},r6t("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Nh.colorbar,opacity:Nh.opacity,opacityscale:i6t.opacityscale,lightposition:Nh.lightposition,lighting:Nh.lighting,flatshading:Nh.flatshading,contour:Nh.contour,hoverinfo:sZ({},SRe.hoverinfo),showlegend:sZ({},SRe.showlegend,{dflt:!1})}),"calc","nested");lF.x.editType=lF.y.editType=lF.z.editType=lF.value.editType="calc+clearAxisTypes"});var kRe=Te((uyr,ERe)=>{"use strict";var a6t=ei(),o6t=lZ(),s6t=rZ().supplyIsoDefaults,l6t=KX().opacityscaleDefaults;ERe.exports=function(t,r,n,i){function a(o,s){return a6t.coerce(t,r,o6t,o,s)}s6t(t,r,n,i,a),l6t(t,r,i,a)}});var zRe=Te((fyr,PRe)=>{"use strict";var u6t=qd().gl_mesh3d,f6t=$g().parseColorScale,c6t=ei().isArrayOrTypedArray,h6t=Jg(),d6t=_c().extractOpts,CRe=WT(),uZ=sF().findNearestOnAxis,p6t=sF().generateIsoMeshes;function LRe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var fZ=LRe.prototype;fZ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=uZ(r,this.data._Xs).id,u=uZ(n,this.data._Ys).id,l=uZ(i,this.data._Zs).id,f=e.index=l+o*u+o*a*s;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var c=this.data.hovertext||this.data.text;return c6t(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};fZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=p6t(e);function n(u,l,f,c){return l.map(function(h){return u.d2l(h,0,c)*f})}var i=CRe(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=CRe(e._meshI,e._meshJ,e._meshK),o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:h6t(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=d6t(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=f6t(e),this.mesh.update(o)};fZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function v6t(e,t){var r=e.glplot.gl,n=u6t({gl:r}),i=new LRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}PRe.exports=v6t});var RRe=Te((cyr,IRe)=>{"use strict";IRe.exports={attributes:lZ(),supplyDefaults:kRe(),calc:aZ(),colorbar:{min:"cmin",max:"cmax"},plot:zRe(),moduleType:"trace",name:"volume",basePlotModule:$_(),categories:["gl3d","showLegend"],meta:{}}});var FRe=Te((hyr,DRe)=>{"use strict";DRe.exports=RRe()});var qRe=Te((dyr,ORe)=>{"use strict";var m6t=$l(),BRe=ei(),y6t=ed(),g6t=GT();ORe.exports=function(t,r,n,i){function a(f,c){return BRe.coerce(t,r,g6t,f,c)}function o(f){var c=f.map(function(h){var d=a(h);return d&&BRe.isArrayOrTypedArray(d)?d:null});return c.every(function(h){return h&&h.length===c[0].length})&&c}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var u=m6t.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y","z"],i),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(f){a(f)});var l=a("contour.show");l&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),y6t(t,r,i,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",n)),a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var URe=Te((pyr,NRe)=>{"use strict";var _6t=gp();NRe.exports=function(t,r){r.intensity&&_6t(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var jRe=Te((vyr,WRe)=>{"use strict";var x6t=qd().gl_mesh3d,b6t=qd().delaunay_triangulate,w6t=qd().alpha_shape,A6t=qd().convex_hull,T6t=$g().parseColorScale,S6t=ei().isArrayOrTypedArray,pZ=Jg(),M6t=_c().extractOpts,VRe=WT();function HRe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var vZ=HRe.prototype;vZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return S6t(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function GRe(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}vZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=VRe(cZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),cZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),cZ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!dZ(e.i,n)||!dZ(e.j,n)||!dZ(e.k,n))return;a=VRe(hZ(e.i),hZ(e.j),hZ(e.k))}else e.alphahull===0?a=A6t(i):e.alphahull>0?a=w6t(e.alphahull,i):a=E6t(e.delaunayaxis,i);var o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:pZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=M6t(e);this.color="#fff";var u=e.intensitymode;o[u+"Intensity"]=e.intensity,o[u+"IntensityBounds"]=[s.min,s.max],o.colormap=T6t(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=GRe(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=GRe(e.facecolor)):(this.color=e.color,o.meshColor=pZ(e.color));this.mesh.update(o)};vZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function k6t(e,t){var r=e.glplot.gl,n=x6t({gl:r}),i=new HRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}WRe.exports=k6t});var ZRe=Te((myr,XRe)=>{"use strict";XRe.exports={attributes:GT(),supplyDefaults:qRe(),calc:URe(),colorbar:{min:"cmin",max:"cmax"},plot:jRe(),moduleType:"trace",name:"mesh3d",basePlotModule:$_(),categories:["gl3d","showLegend"],meta:{}}});var KRe=Te((yyr,YRe)=>{"use strict";YRe.exports=ZRe()});var yZ=Te((gyr,$Re)=>{"use strict";var C6t=nc(),jT=jc().axisHoverFormat,L6t=Nu().hovertemplateAttrs,P6t=GT(),JRe=Gf(),mZ=Su().extendFlat,uF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:L6t({editType:"calc"},{keys:["norm"]}),uhoverformat:jT("u",1),vhoverformat:jT("v",1),whoverformat:jT("w",1),xhoverformat:jT("x"),yhoverformat:jT("y"),zhoverformat:jT("z"),showlegend:mZ({},JRe.showlegend,{dflt:!1})};mZ(uF,C6t("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var z6t=["opacity","lightposition","lighting"];z6t.forEach(function(e){uF[e]=P6t[e]});uF.hoverinfo=mZ({},JRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});$Re.exports=uF});var eDe=Te((_yr,QRe)=>{"use strict";var I6t=ei(),R6t=ed(),D6t=yZ();QRe.exports=function(t,r,n,i){function a(d,p){return I6t.coerce(t,r,D6t,d,p)}var o=a("u"),s=a("v"),u=a("w"),l=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length||!c||!c.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),R6t(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var rDe=Te((xyr,tDe)=>{"use strict";var F6t=gp();tDe.exports=function(t,r){for(var n=r.u,i=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,n.length,i.length,a.length),s=-1/0,u=1/0,l=0;l{"use strict";var B6t=qd().gl_cone3d,O6t=qd().gl_cone3d.createConeMesh,q6t=ei().simpleMap,N6t=$g().parseColorScale,U6t=_c().extractOpts,V6t=ei().isArrayOrTypedArray,iDe=WT();function nDe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var gZ=nDe.prototype;gZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var u=this.data.hovertext||this.data.text;return V6t(u)&&u[t]!==void 0?e.textLabel=u[t]:u&&(e.textLabel=u),!0}};var G6t={xaxis:0,yaxis:1,zaxis:2},H6t={tip:1,tail:0,cm:.25,center:.5},W6t={tip:1,tail:1,cm:.75,center:.5};function aDe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(f,c){var h=r[c],d=n[G6t[c]];return q6t(f,function(p){return h.d2l(p)*d})}i.vectors=iDe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=iDe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=U6t(t);i.colormap=N6t(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=H6t[t.anchor];var s=t.sizemode;s==="scaled"?i.coneSize=t.sizeref||.5:s==="absolute"?i.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(i.coneSize=t.sizeref),i.coneSizemode=s;var u=B6t(i),l=t.lightposition;return u.lightPosition=[l.x,l.y,l.z],u.ambient=t.lighting.ambient,u.diffuse=t.lighting.diffuse,u.specular=t.lighting.specular,u.roughness=t.lighting.roughness,u.fresnel=t.lighting.fresnel,u.opacity=t.opacity,t._pad=W6t[t.anchor]*u.vectorScale*u.coneScale*t._normMax,u}gZ.update=function(e){this.data=e;var t=aDe(this.scene,e);this.mesh.update(t)};gZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function j6t(e,t){var r=e.glplot.gl,n=aDe(e,t),i=O6t(r,n),a=new nDe(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}oDe.exports=j6t});var uDe=Te((wyr,lDe)=>{"use strict";lDe.exports={moduleType:"trace",name:"cone",basePlotModule:$_(),categories:["gl3d","showLegend"],attributes:yZ(),supplyDefaults:eDe(),colorbar:{min:"cmin",max:"cmax"},calc:rDe(),plot:sDe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var cDe=Te((Ayr,fDe)=>{"use strict";fDe.exports=uDe()});var xZ=Te((Tyr,dDe)=>{"use strict";var X6t=nc(),XT=jc().axisHoverFormat,Z6t=Nu().hovertemplateAttrs,Y6t=GT(),hDe=Gf(),_Z=Su().extendFlat,fF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:Z6t({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:XT("u",1),vhoverformat:XT("v",1),whoverformat:XT("w",1),xhoverformat:XT("x"),yhoverformat:XT("y"),zhoverformat:XT("z"),showlegend:_Z({},hDe.showlegend,{dflt:!1})};_Z(fF,X6t("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var K6t=["opacity","lightposition","lighting"];K6t.forEach(function(e){fF[e]=Y6t[e]});fF.hoverinfo=_Z({},hDe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});dDe.exports=fF});var vDe=Te((Syr,pDe)=>{"use strict";var J6t=ei(),$6t=ed(),Q6t=xZ();pDe.exports=function(t,r,n,i){function a(h,d){return J6t.coerce(t,r,Q6t,h,d)}var o=a("u"),s=a("v"),u=a("w"),l=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length||!c||!c.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),$6t(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var ADe=Te((Myr,wDe)=>{"use strict";var gDe=qd().gl_streamtube3d,eFt=gDe.createTubeMesh,tFt=ei(),rFt=$g().parseColorScale,iFt=_c().extractOpts,mDe=WT(),_De={xaxis:0,yaxis:1,zaxis:2};function xDe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var wZ=xDe.prototype;wZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var u=t[s],l=r[_De[s]];return u.l2c(o)/l}if(e.object===this.mesh){var i=e.data.position,a=e.data.velocity;return e.traceCoordinate=[n(i[0],"xaxis"),n(i[1],"yaxis"),n(i[2],"zaxis"),n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function yDe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function bZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function bDe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(B,F){var U=r[F],G=n[_De[F]];return tFt.simpleMap(B,function(j){return U.d2l(j)*G})}if(a.vectors=mDe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),i),!i)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),u=o(t._Ys,"yaxis"),l=o(t._Zs,"zaxis");a.meshgrid=[s,u,l],a.gridFill=t._gridFill;var f=t._slen;if(f)a.startingPositions=mDe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var c=u[0],h=yDe(s),d=yDe(l),p=new Array(h.length*d.length),_=0,b=0;b{"use strict";TDe.exports={moduleType:"trace",name:"streamtube",basePlotModule:$_(),categories:["gl3d","showLegend"],attributes:xZ(),supplyDefaults:vDe(),colorbar:{min:"cmin",max:"cmax"},calc:aF().calc,plot:ADe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var EDe=Te((kyr,MDe)=>{"use strict";MDe.exports=SDe()});var G2=Te((Lyr,LDe)=>{"use strict";var aFt=Nu().hovertemplateAttrs,oFt=Nu().texttemplateAttrs,sFt=km(),Wy=Zc(),lFt=Gf(),kDe=nc(),uFt=Id().dash,V2=Su().extendFlat,fFt=Sc().overrideAll,tm=Wy.marker,CDe=Wy.line,cFt=tm.line,Cyr=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");LDe.exports=fFt({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:V2({},Wy.mode,{dflt:"markers"}),text:V2({},Wy.text,{}),texttemplate:oFt({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:V2({},Wy.hovertext,{}),textfont:Wy.textfont,textposition:Wy.textposition,line:{color:CDe.color,width:CDe.width,dash:uFt},connectgaps:Wy.connectgaps,marker:V2({symbol:tm.symbol,opacity:tm.opacity,angle:tm.angle,angleref:V2({},tm.angleref,{values:["previous","up","north"]}),standoff:tm.standoff,size:tm.size,sizeref:tm.sizeref,sizemin:tm.sizemin,sizemode:tm.sizemode,colorbar:tm.colorbar,line:V2({width:cFt.width},kDe("marker.line")),gradient:tm.gradient},kDe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:sFt(),selected:Wy.selected,unselected:Wy.unselected,hoverinfo:V2({},lFt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:aFt()},"calc","nested")});var zDe=Te((Pyr,PDe)=>{"use strict";var cF=ei(),AZ=lc(),hFt=$v(),dFt=R0(),pFt=D0(),vFt=zm(),mFt=G2(),yFt=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");PDe.exports=function(t,r,n,i){function a(d,p){return cF.coerce(t,r,mFt,d,p)}var o=a("locations"),s;if(o&&o.length){var u=a("geojson"),l;(typeof u=="string"&&u!==""||cF.isPlainObject(u))&&(l="geojson-id");var f=a("locationmode",l);f==="country names"&&cF.warn(yFt),f==="geojson-id"&&a("featureidkey"),s=o.length}else{var c=a("lon")||[],h=a("lat")||[];s=Math.min(c.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("mode"),AZ.hasMarkers(r)&&hFt(t,r,n,i,a,{gradient:!0}),AZ.hasLines(r)&&(dFt(t,r,n,i,a),a("connectgaps")),AZ.hasText(r)&&(a("texttemplate"),pFt(t,r,i,a)),a("fill"),r.fill!=="none"&&vFt(t,r,n,a),cF.coerceSelectionMarkerOpacity(r,a)}});var DDe=Te((zyr,RDe)=>{"use strict";var IDe=wu();RDe.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=IDe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=IDe.tickText(o,o.c2l(s[1]),!0).text,i}});var hF=Te((Iyr,qDe)=>{"use strict";var TZ=ku(),FDe=nf().BADNUM,gFt=F0(),_Ft=ky(),xFt=B0(),bFt=ei().isArrayOrTypedArray,BDe=ei()._;function ODe(e){return e&&typeof e=="string"}qDe.exports=function(t,r){var n=bFt(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return ODe(h)||TZ(h)}:o=ODe;for(var s=0;s{"use strict";Ep.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Ep.axesNames=["lonaxis","lataxis"];Ep.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Ep.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Ep.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Ep.clipPad=.001;Ep.precision=.1;Ep.landColor="#F0DC82";Ep.waterColor="#3399FF";Ep.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Ep.sphereSVG={type:"Sphere"};Ep.fillLayers={ocean:1,land:1,lakes:1};Ep.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Ep.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Ep.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Ep.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var SZ=Te((dF,NDe)=>{(function(e,t){typeof dF=="object"&&typeof NDe!="undefined"?t(dF):(e=e||self,t(e.topojson=e.topojson||{}))})(dF,function(e){"use strict";function t(E){return E}function r(E){if(E==null)return t;var T,L,x=E.scale[0],C=E.scale[1],M=E.translate[0],m=E.translate[1];return function(P,A){A||(T=L=0);var B=2,F=P.length,U=new Array(F);for(U[0]=(T+=P[0])*x+M,U[1]=(L+=P[1])*C+m;BM&&(M=B[0]),B[1]m&&(m=B[1])}function A(B){switch(B.type){case"GeometryCollection":B.geometries.forEach(A);break;case"Point":P(B.coordinates);break;case"MultiPoint":B.coordinates.forEach(P);break}}E.arcs.forEach(function(B){for(var F=-1,U=B.length,G;++FM&&(M=G[0]),G[1]m&&(m=G[1])});for(L in E.objects)A(E.objects[L]);return[x,C,M,m]}function i(E,T){for(var L,x=E.length,C=x-T;C<--x;)L=E[C],E[C++]=E[x],E[x]=L}function a(E,T){return typeof T=="string"&&(T=E.objects[T]),T.type==="GeometryCollection"?{type:"FeatureCollection",features:T.geometries.map(function(L){return o(E,L)})}:o(E,T)}function o(E,T){var L=T.id,x=T.bbox,C=T.properties==null?{}:T.properties,M=s(E,T);return L==null&&x==null?{type:"Feature",properties:C,geometry:M}:x==null?{type:"Feature",id:L,properties:C,geometry:M}:{type:"Feature",id:L,bbox:x,properties:C,geometry:M}}function s(E,T){var L=r(E.transform),x=E.arcs;function C(F,U){U.length&&U.pop();for(var G=x[F<0?~F:F],j=0,H=G.length;j1)x=c(E,T,L);else for(C=0,x=new Array(M=E.arcs.length);C1)for(var U=1,G=P(B[0]),j,H;UG&&(H=B[0],B[0]=B[U],B[U]=H,G=j);return B}).filter(function(A){return A.length>0})}}function _(E,T){for(var L=0,x=E.length;L>>1;E[C]=2))throw new Error("n must be \u22652");A=E.bbox||n(E);var L=A[0],x=A[1],C=A[2],M=A[3],m;T={scale:[C-L?(C-L)/(m-1):1,M-x?(M-x)/(m-1):1],translate:[L,x]}}else A=E.bbox;var P=v(T),A,B,F=E.objects,U={};function G(N){return P(N)}function j(N){var W;switch(N.type){case"GeometryCollection":W={type:"GeometryCollection",geometries:N.geometries.map(j)};break;case"Point":W={type:"Point",coordinates:G(N.coordinates)};break;case"MultiPoint":W={type:"MultiPoint",coordinates:N.coordinates.map(G)};break;default:return N}return N.id!=null&&(W.id=N.id),N.bbox!=null&&(W.bbox=N.bbox),N.properties!=null&&(W.properties=N.properties),W}function H(N){var W=0,re=1,ae=N.length,be,Pe=new Array(ae);for(Pe[0]=P(N[0],0);++W{"use strict";var MZ=UDe.exports={},wFt=tk().locationmodeToLayer,AFt=SZ().feature;MZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};MZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};MZ.getTopojsonFeatures=function(e,t){var r=wFt[e.locationmode],n=t.objects[r];return AFt(t,n).features}});var tx=Te(rk=>{"use strict";var TFt=nf().BADNUM;rk.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,n=[],i=[],a=0;a0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n};rk.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};rk.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{VDe.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var yF=Te(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var Fv=63710088e-1,kZ={centimeters:Fv*100,centimetres:Fv*100,degrees:360/(2*Math.PI),feet:Fv*3.28084,inches:Fv*39.37,kilometers:Fv/1e3,kilometres:Fv/1e3,meters:Fv,metres:Fv,miles:Fv/1609.344,millimeters:Fv*1e3,millimetres:Fv*1e3,nauticalmiles:Fv/1852,radians:1,yards:Fv*1.0936},EZ={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function rx(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function SFt(e,t,r={}){switch(e){case"Point":return CZ(t).geometry;case"LineString":return PZ(t).geometry;case"Polygon":return LZ(t).geometry;case"MultiPoint":return WDe(t).geometry;case"MultiLineString":return HDe(t).geometry;case"MultiPolygon":return jDe(t).geometry;default:throw new Error(e+" is invalid")}}function CZ(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!vF(e[0])||!vF(e[1]))throw new Error("coordinates must contain numbers");return rx({type:"Point",coordinates:e},t,r)}function MFt(e,t,r={}){return mF(e.map(n=>CZ(n,t)),r)}function LZ(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;aLZ(n,t)),r)}function PZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return rx({type:"LineString",coordinates:e},t,r)}function kFt(e,t,r={}){return mF(e.map(n=>PZ(n,t)),r)}function mF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function HDe(e,t,r={}){return rx({type:"MultiLineString",coordinates:e},t,r)}function WDe(e,t,r={}){return rx({type:"MultiPoint",coordinates:e},t,r)}function jDe(e,t,r={}){return rx({type:"MultiPolygon",coordinates:e},t,r)}function CFt(e,t,r={}){return rx({type:"GeometryCollection",geometries:e},t,r)}function LFt(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function XDe(e,t="kilometers"){let r=kZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function zZ(e,t="kilometers"){let r=kZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function PFt(e,t){return ZDe(zZ(e,t))}function zFt(e){let t=e%360;return t<0&&(t+=360),t}function IFt(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function ZDe(e){return e%(2*Math.PI)*180/Math.PI}function RFt(e){return e%360*Math.PI/180}function DFt(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return XDe(zZ(e,t),r)}function FFt(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=EZ[t];if(!n)throw new Error("invalid original units");let i=EZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function vF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function BFt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function OFt(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!vF(t))throw new Error("bbox must only contain numbers")})}function qFt(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}bc.areaFactors=EZ;bc.azimuthToBearing=IFt;bc.bearingToAzimuth=zFt;bc.convertArea=FFt;bc.convertLength=DFt;bc.degreesToRadians=RFt;bc.earthRadius=Fv;bc.factors=kZ;bc.feature=rx;bc.featureCollection=mF;bc.geometry=SFt;bc.geometryCollection=CFt;bc.isNumber=vF;bc.isObject=BFt;bc.lengthToDegrees=PFt;bc.lengthToRadians=zZ;bc.lineString=PZ;bc.lineStrings=kFt;bc.multiLineString=HDe;bc.multiPoint=WDe;bc.multiPolygon=jDe;bc.point=CZ;bc.points=MFt;bc.polygon=LZ;bc.polygons=EFt;bc.radiansToDegrees=ZDe;bc.radiansToLength=XDe;bc.round=LFt;bc.validateBBox=OFt;bc.validateId=qFt});var _F=Te(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});var jp=yF();function ik(e,t,r){if(e!==null)for(var n,i,a,o,s,u,l,f=0,c=0,h,d=e.type,p=d==="FeatureCollection",_=d==="Feature",b=p?e.features.length:1,v=0;vu||p>l||_>f){s=c,u=n,l=p,f=_,a=0;return}var b=jp.lineString.call(void 0,[s,c],r.properties);if(t(b,n,i,_,a)===!1)return!1;a++,s=c})===!1)return!1}}})}function jFt(e,t,r){var n=r,i=!1;return JDe(e,function(a,o,s,u,l){i===!1&&r===void 0?n=a:n=t(n,a,o,s,u,l),i=!0}),n}function $De(e,t){if(!e)throw new Error("geojson is required");gF(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(xF,"__esModule",{value:!0});var QDe=yF(),KFt=_F();function r6e(e){return KFt.geomReduce.call(void 0,e,(t,r)=>t+JFt(r),0)}function JFt(e){let t=0,r;switch(e.type){case"Polygon":return e6e(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(t6e(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*RZ,u=a[1]*RZ,l=o[0]*RZ;r+=(l-s)*Math.sin(u),n++}return r*$Ft}var QFt=r6e;xF.area=r6e;xF.default=QFt});var a6e=Te(bF=>{"use strict";Object.defineProperty(bF,"__esModule",{value:!0});var e8t=yF(),t8t=_F();function n6e(e,t={}){let r=0,n=0,i=0;return t8t.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),e8t.point.call(void 0,[r/i,n/i],t.properties)}var r8t=n6e;bF.centroid=n6e;bF.default=r8t});var s6e=Te(wF=>{"use strict";Object.defineProperty(wF,"__esModule",{value:!0});var i8t=_F();function o6e(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return i8t.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]{"use strict";var a8t=Jl(),f6e=GDe(),{area:o8t}=i6e(),{centroid:s8t}=a6e(),{bbox:l8t}=s6e(),l6e=GM(),ZT=G1(),u8t=mg(),f8t=CM(),AF=E5(),u6e=Object.keys(f6e),c8t={"ISO-3":l6e,"USA-states":l6e,"country names":h8t};function h8t(e){for(var t=0;t0&&f[c+1][0]<0)return c;return null}switch(n==="RUS"||n==="FJI"?a=function(f){var c;if(l(f)===null)c=f;else for(c=new Array(f.length),u=0;uc?h[d++]=[f[u][0]+360,f[u][1]]:u===c?(h[d++]=f[u],h[d++]=[f[u][0],-90]):h[d++]=f[u];var p=AF.tester(h);p.pts.pop(),i.push(p)}:a=function(f){i.push(AF.tester(f))},t.type){case"MultiPolygon":for(o=0;o0?p.properties.ct=m8t(p):p.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=p,i.push(p)}else ZT.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[c]}switch(r.type){case"FeatureCollection":var u=r.features;for(a=0;ai&&(i=s,r=o)}else r=t;return s8t(r).geometry.coordinates}function y8t(e){var t=window.PlotlyGeoAssets||{},r=[];function n(u){return new Promise(function(l,f){a8t.json(u,function(c,h){if(c){delete t[u];var d=c.status===404?'GeoJSON at URL "'+u+'" does not exist.':"Unexpected error while fetching from "+u;return f(new Error(d))}return t[u]=h,l(h)})})}function i(u){return new Promise(function(l,f){var c=0,h=setInterval(function(){if(t[u]&&t[u]!=="pending")return clearInterval(h),l(t[u]);if(c>100)return clearInterval(h),f("Unexpected error while fetching from "+u);c++},50)})}for(var a=0;a{"use strict";var _8t=Jl(),x8t=Mu(),d6e=jl(),p6e=ov(),b8t=p6e.stylePoints,w8t=p6e.styleText;v6e.exports=function(t,r){r&&A8t(t,r)};function A8t(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),b8t(n,r,e),w8t(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=_8t.select(this),o=i.trace,s=o.line||{};a.call(d6e.stroke,s.color).call(x8t.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(d6e.fill,o.fillcolor)})}});var qZ=Te((Wyr,g6e)=>{"use strict";var m6e=Jl(),SF=ei(),T8t=pF().getTopojsonFeatures,FZ=tx(),TF=ix(),y6e=Am().findExtremes,OZ=nf().BADNUM,S8t=O0().calcMarkerSize,BZ=lc(),M8t=DZ();function E8t(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=SF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===OZ&&m6e.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=m6e.select(this),u=o[0].trace;if(BZ.hasLines(u)||u.fill!=="none"){var l=FZ.calcTraceToLineCoords(o),f=u.fill!=="none"?FZ.makePolygon(l):FZ.makeLine(l);s.selectAll("path.js-line").data([{geojson:f,trace:u}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}BZ.hasMarkers(u)&&s.selectAll("path.point").data(SF.identity).enter().append("path").classed("point",!0).each(function(c){a(c,this)}),BZ.hasText(u)&&s.selectAll("g").data(SF.identity).enter().append("g").append("text").each(function(c){a(c,this)}),M8t(e,o)})}function k8t(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(SF.isArrayOrTypedArray(r.locations)){var u=r.locationmode,l=u==="geojson-id"?TF.extractTraceFeature(e):T8t(r,i.topojson);for(o=0;o{"use strict";var C8t=Xc(),L8t=nf().BADNUM,P8t=sA(),z8t=ei().fillText,I8t=G2();_6e.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.xa,s=t.ya,u=t.subplot,l=u.projection.isLonLatOverEdges,f=u.project;function c(k){var E=k.lonlat;if(E[0]===L8t||l(E))return 1/0;var T=f(E),L=f([r,n]),x=Math.abs(T[0]-L[0]),C=Math.abs(T[1]-L[1]),M=Math.max(3,k.mrc||0);return Math.max(Math.sqrt(x*x+C*C)-M,1-3/M)}if(C8t.getClosest(i,c,t),t.index!==!1){var h=i[t.index],d=h.lonlat,p=[o.c2p(d),s.c2p(d)],_=h.mrc||1;t.x0=p[0]-_,t.x1=p[0]+_,t.y0=p[1]-_,t.y1=p[1]+_,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var b={};b[a.geo]={_subplot:u};var v=a._module.formatLabels(h,a,b);return t.lonLabel=v.lonLabel,t.latLabel=v.latLabel,t.color=P8t(a,h),t.extraText=R8t(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function R8t(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?I8t.hoverinfo.flags:i.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,u=a.indexOf("lat")!==-1,l=a.indexOf("text")!==-1,f=[];function c(h){return h+"\xB0"}return o?f.push(t.loc):s&&u?f.push("("+c(r.latLabel)+", "+c(r.lonLabel)+")"):s?f.push(n.lon+c(r.lonLabel)):u&&f.push(n.lat+c(r.latLabel)),l&&z8t(t,e,f),f.join("
")}});var w6e=Te((Xyr,b6e)=>{"use strict";b6e.exports=function(t,r,n,i,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var S6e=Te((Zyr,T6e)=>{"use strict";var A6e=lc(),D8t=nf().BADNUM;T6e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u,l,f,c,h,d=!A6e.hasMarkers(s)&&!A6e.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof MF=="object"&&typeof M6e!="undefined"?MF:e.d3=e.d3||{})})(MF,function(e){"use strict";function t(Ee,Me){return EeMe?1:Ee>=Me?0:NaN}function r(Ee){return Ee.length===1&&(Ee=n(Ee)),{left:function(Me,Ne,Fe,ye){for(Fe==null&&(Fe=0),ye==null&&(ye=Me.length);Fe>>1;Ee(Me[Ve],Ne)<0?Fe=Ve+1:ye=Ve}return Fe},right:function(Me,Ne,Fe,ye){for(Fe==null&&(Fe=0),ye==null&&(ye=Me.length);Fe>>1;Ee(Me[Ve],Ne)>0?ye=Ve:Fe=Ve+1}return Fe}}}function n(Ee){return function(Me,Ne){return t(Ee(Me),Ne)}}var i=r(t),a=i.right,o=i.left;function s(Ee,Me){Me==null&&(Me=u);for(var Ne=0,Fe=Ee.length-1,ye=Ee[0],Ve=new Array(Fe<0?0:Fe);NeEe?1:Me>=Ee?0:NaN}function c(Ee){return Ee===null?NaN:+Ee}function h(Ee,Me){var Ne=Ee.length,Fe=0,ye=-1,Ve=0,ce,Ke,nt=0;if(Me==null)for(;++ye1)return nt/(Fe-1)}function d(Ee,Me){var Ne=h(Ee,Me);return Ne&&Math.sqrt(Ne)}function p(Ee,Me){var Ne=Ee.length,Fe=-1,ye,Ve,ce;if(Me==null){for(;++Fe=ye)for(Ve=ce=ye;++Feye&&(Ve=ye),ce=ye)for(Ve=ce=ye;++Feye&&(Ve=ye),ce0)return[Ee];if((Fe=Me0)for(Ee=Math.ceil(Ee/Ke),Me=Math.floor(Me/Ke),ce=new Array(Ve=Math.ceil(Me-Ee+1));++ye=0?(Ve>=L?10:Ve>=x?5:Ve>=C?2:1)*Math.pow(10,ye):-Math.pow(10,-ye)/(Ve>=L?10:Ve>=x?5:Ve>=C?2:1)}function P(Ee,Me,Ne){var Fe=Math.abs(Me-Ee)/Math.max(0,Ne),ye=Math.pow(10,Math.floor(Math.log(Fe)/Math.LN10)),Ve=Fe/ye;return Ve>=L?ye*=10:Ve>=x?ye*=5:Ve>=C&&(ye*=2),Meit;)Ye.pop(),--kt;var Tt=new Array(kt+1),St;for(Ve=0;Ve<=kt;++Ve)St=Tt[Ve]=[],St.x0=Ve>0?Ye[Ve-1]:Nt,St.x1=Ve=1)return+Ne(Ee[Fe-1],Fe-1,Ee);var Fe,ye=(Fe-1)*Me,Ve=Math.floor(ye),ce=+Ne(Ee[Ve],Ve,Ee),Ke=+Ne(Ee[Ve+1],Ve+1,Ee);return ce+(Ke-ce)*(ye-Ve)}}function U(Ee,Me,Ne){return Ee=v.call(Ee,c).sort(t),Math.ceil((Ne-Me)/(2*(F(Ee,.75)-F(Ee,.25))*Math.pow(Ee.length,-1/3)))}function G(Ee,Me,Ne){return Math.ceil((Ne-Me)/(3.5*d(Ee)*Math.pow(Ee.length,-1/3)))}function j(Ee,Me){var Ne=Ee.length,Fe=-1,ye,Ve;if(Me==null){for(;++Fe=ye)for(Ve=ye;++FeVe&&(Ve=ye)}else for(;++Fe=ye)for(Ve=ye;++FeVe&&(Ve=ye);return Ve}function H(Ee,Me){var Ne=Ee.length,Fe=Ne,ye=-1,Ve,ce=0;if(Me==null)for(;++ye=0;)for(ce=Ee[Me],Ne=ce.length;--Ne>=0;)Ve[--ye]=ce[Ne];return Ve}function re(Ee,Me){var Ne=Ee.length,Fe=-1,ye,Ve;if(Me==null){for(;++Fe=ye)for(Ve=ye;++Feye&&(Ve=ye)}else for(;++Fe=ye)for(Ve=ye;++Feye&&(Ve=ye);return Ve}function ae(Ee,Me){for(var Ne=Me.length,Fe=new Array(Ne);Ne--;)Fe[Ne]=Ee[Me[Ne]];return Fe}function be(Ee,Me){if(Ne=Ee.length){var Ne,Fe=0,ye=0,Ve,ce=Ee[ye];for(Me==null&&(Me=t);++Fe{(function(e,t){typeof EF=="object"&&typeof E6e!="undefined"?t(EF,nk()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(EF,function(e,t){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(At){a(i,At,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(At,Gt,wr){var mr=At.s=Gt+wr,Or=mr-Gt,gi=mr-Or;At.t=Gt-gi+(wr-Or)}var o=1e-6,s=1e-12,u=Math.PI,l=u/2,f=u/4,c=u*2,h=180/u,d=u/180,p=Math.abs,_=Math.atan,b=Math.atan2,v=Math.cos,k=Math.ceil,E=Math.exp,T=Math.log,L=Math.pow,x=Math.sin,C=Math.sign||function(At){return At>0?1:At<0?-1:0},M=Math.sqrt,m=Math.tan;function P(At){return At>1?0:At<-1?u:Math.acos(At)}function A(At){return At>1?l:At<-1?-l:Math.asin(At)}function B(At){return(At=x(At/2))*At}function F(){}function U(At,Gt){At&&j.hasOwnProperty(At.type)&&j[At.type](At,Gt)}var G={Feature:function(At,Gt){U(At.geometry,Gt)},FeatureCollection:function(At,Gt){for(var wr=At.features,mr=-1,Or=wr.length;++mr=0?1:-1,Or=mr*wr,gi=v(Gt),Ti=x(Gt),ki=te*Ti,Ji=de*gi+ki*v(Or),Fn=ki*mr*x(Or);re.add(b(Fn,Ji)),Ce=At,de=gi,te=Ti}function ye(At){return ae.reset(),W(At,ke),ae*2}function Ve(At){return[b(At[1],At[0]),A(At[2])]}function ce(At){var Gt=At[0],wr=At[1],mr=v(wr);return[mr*v(Gt),mr*x(Gt),x(wr)]}function Ke(At,Gt){return At[0]*Gt[0]+At[1]*Gt[1]+At[2]*Gt[2]}function nt(At,Gt){return[At[1]*Gt[2]-At[2]*Gt[1],At[2]*Gt[0]-At[0]*Gt[2],At[0]*Gt[1]-At[1]*Gt[0]]}function gt(At,Gt){At[0]+=Gt[0],At[1]+=Gt[1],At[2]+=Gt[2]}function Nt(At,Gt){return[At[0]*Gt,At[1]*Gt,At[2]*Gt]}function it(At){var Gt=M(At[0]*At[0]+At[1]*At[1]+At[2]*At[2]);At[0]/=Gt,At[1]/=Gt,At[2]/=Gt}var Ye,kt,Tt,St,Rt,Zt,Et,Ae,at=r(),wt,vt,st={point:Ue,lineStart:$e,lineEnd:zt,polygonStart:function(){st.point=Yt,st.lineStart=hr,st.lineEnd=yr,at.reset(),ke.polygonStart()},polygonEnd:function(){ke.polygonEnd(),st.point=Ue,st.lineStart=$e,st.lineEnd=zt,re<0?(Ye=-(Tt=180),kt=-(St=90)):at>o?St=90:at<-o&&(kt=-90),vt[0]=Ye,vt[1]=Tt},sphere:function(){Ye=-(Tt=180),kt=-(St=90)}};function Ue(At,Gt){wt.push(vt=[Ye=At,Tt=At]),GtSt&&(St=Gt)}function rt(At,Gt){var wr=ce([At*d,Gt*d]);if(Ae){var mr=nt(Ae,wr),Or=[mr[1],-mr[0],0],gi=nt(Or,mr);it(gi),gi=Ve(gi);var Ti=At-Rt,ki=Ti>0?1:-1,Ji=gi[0]*h*ki,Fn,Pi=p(Ti)>180;Pi^(ki*RtSt&&(St=Fn)):(Ji=(Ji+360)%360-180,Pi^(ki*RtSt&&(St=Gt))),Pi?Atbr(Ye,Tt)&&(Tt=At):br(At,Tt)>br(Ye,Tt)&&(Ye=At):Tt>=Ye?(AtTt&&(Tt=At)):At>Rt?br(Ye,At)>br(Ye,Tt)&&(Tt=At):br(At,Tt)>br(Ye,Tt)&&(Ye=At)}else wt.push(vt=[Ye=At,Tt=At]);GtSt&&(St=Gt),Ae=wr,Rt=At}function $e(){st.point=rt}function zt(){vt[0]=Ye,vt[1]=Tt,st.point=Ue,Ae=null}function Yt(At,Gt){if(Ae){var wr=At-Rt;at.add(p(wr)>180?wr+(wr>0?360:-360):wr)}else Zt=At,Et=Gt;ke.point(At,Gt),rt(At,Gt)}function hr(){ke.lineStart()}function yr(){Yt(Zt,Et),ke.lineEnd(),p(at)>o&&(Ye=-(Tt=180)),vt[0]=Ye,vt[1]=Tt,Ae=null}function br(At,Gt){return(Gt-=At)<0?Gt+360:Gt}function Ut(At,Gt){return At[0]-Gt[0]}function Ie(At,Gt){return At[0]<=At[1]?At[0]<=Gt&&Gt<=At[1]:Gtbr(mr[0],mr[1])&&(mr[1]=Or[1]),br(Or[0],mr[1])>br(mr[0],mr[1])&&(mr[0]=Or[0])):gi.push(mr=Or);for(Ti=-1/0,wr=gi.length-1,Gt=0,mr=gi[wr];Gt<=wr;mr=Or,++Gt)Or=gi[Gt],(ki=br(mr[1],Or[0]))>Ti&&(Ti=ki,Ye=Or[0],Tt=mr[1])}return wt=vt=null,Ye===1/0||kt===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ye,kt],[Tt,St]]}var Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di={sphere:F,point:Ii,lineStart:nn,lineEnd:Gi,polygonStart:function(){Di.lineStart=Bt,Di.lineEnd=yt},polygonEnd:function(){Di.lineStart=nn,Di.lineEnd=Gi}};function Ii(At,Gt){At*=d,Gt*=d;var wr=v(Gt);Ci(wr*v(At),wr*x(At),x(Gt))}function Ci(At,Gt,wr){++Oe,De+=(At-De)/Oe,ct+=(Gt-ct)/Oe,ge+=(wr-ge)/Oe}function nn(){Di.point=ii}function ii(At,Gt){At*=d,Gt*=d;var wr=v(Gt);Mr=wr*v(At),Fr=wr*x(At),di=x(Gt),Di.point=wi,Ci(Mr,Fr,di)}function wi(At,Gt){At*=d,Gt*=d;var wr=v(Gt),mr=wr*v(At),Or=wr*x(At),gi=x(Gt),Ti=b(M((Ti=Fr*gi-di*Or)*Ti+(Ti=di*mr-Mr*gi)*Ti+(Ti=Mr*Or-Fr*mr)*Ti),Mr*mr+Fr*Or+di*gi);Re+=Ti,fe+=Ti*(Mr+(Mr=mr)),pe+=Ti*(Fr+(Fr=Or)),dt+=Ti*(di+(di=gi)),Ci(Mr,Fr,di)}function Gi(){Di.point=Ii}function Bt(){Di.point=Vt}function yt(){Wt(Hr,Dr),Di.point=Ii}function Vt(At,Gt){Hr=At,Dr=Gt,At*=d,Gt*=d,Di.point=Wt;var wr=v(Gt);Mr=wr*v(At),Fr=wr*x(At),di=x(Gt),Ci(Mr,Fr,di)}function Wt(At,Gt){At*=d,Gt*=d;var wr=v(Gt),mr=wr*v(At),Or=wr*x(At),gi=x(Gt),Ti=Fr*gi-di*Or,ki=di*mr-Mr*gi,Ji=Mr*Or-Fr*mr,Fn=M(Ti*Ti+ki*ki+Ji*Ji),Pi=A(Fn),hi=Fn&&-Pi/Fn;It+=hi*Ti,Pt+=hi*ki,rr+=hi*Ji,Re+=Pi,fe+=Pi*(Mr+(Mr=mr)),pe+=Pi*(Fr+(Fr=Or)),dt+=Pi*(di+(di=gi)),Ci(Mr,Fr,di)}function _r(At){Oe=Re=De=ct=ge=fe=pe=dt=It=Pt=rr=0,W(At,Di);var Gt=It,wr=Pt,mr=rr,Or=Gt*Gt+wr*wr+mr*mr;return Oru?At+Math.round(-At/c)*c:At,Gt]}Ir.invert=Ir;function Gr(At,Gt,wr){return(At%=c)?Gt||wr?Ur(yi(At),Ei(Gt,wr)):yi(At):Gt||wr?Ei(Gt,wr):Ir}function jr(At){return function(Gt,wr){return Gt+=At,[Gt>u?Gt-c:Gt<-u?Gt+c:Gt,wr]}}function yi(At){var Gt=jr(At);return Gt.invert=jr(-At),Gt}function Ei(At,Gt){var wr=v(At),mr=x(At),Or=v(Gt),gi=x(Gt);function Ti(ki,Ji){var Fn=v(Ji),Pi=v(ki)*Fn,hi=x(ki)*Fn,Li=x(Ji),Si=Li*wr+Pi*mr;return[b(hi*Or-Si*gi,Pi*wr-Li*mr),A(Si*Or+hi*gi)]}return Ti.invert=function(ki,Ji){var Fn=v(Ji),Pi=v(ki)*Fn,hi=x(ki)*Fn,Li=x(Ji),Si=Li*Or-hi*gi;return[b(hi*Or+Li*gi,Pi*wr+Si*mr),A(Si*wr-Pi*mr)]},Ti}function Vi(At){At=Gr(At[0]*d,At[1]*d,At.length>2?At[2]*d:0);function Gt(wr){return wr=At(wr[0]*d,wr[1]*d),wr[0]*=h,wr[1]*=h,wr}return Gt.invert=function(wr){return wr=At.invert(wr[0]*d,wr[1]*d),wr[0]*=h,wr[1]*=h,wr},Gt}function ti(At,Gt,wr,mr,Or,gi){if(wr){var Ti=v(Gt),ki=x(Gt),Ji=mr*wr;Or==null?(Or=Gt+mr*c,gi=Gt-Ji/2):(Or=en(Ti,Or),gi=en(Ti,gi),(mr>0?Orgi)&&(Or+=mr*c));for(var Fn,Pi=Or;mr>0?Pi>gi:Pi1&&At.push(At.pop().concat(At.shift()))},result:function(){var wr=At;return At=[],Gt=null,wr}}}function Bi(At,Gt){return p(At[0]-Gt[0])=0;--ki)Or.point((hi=Pi[ki])[0],hi[1]);else mr(Li.x,Li.p.x,-1,Or);Li=Li.p}Li=Li.o,Pi=Li.z,Si=!Si}while(!Li.v);Or.lineEnd()}}}function Fi(At){if(Gt=At.length){for(var Gt,wr=0,mr=At[0],Or;++wr=0?1:-1,xl=dl*Ks,Bl=xl>u,bl=ta*is;if(Ri.add(b(bl*dl*x(xl),ya*Cs+bl*v(xl))),Ti+=Bl?Ks+dl*c:Ks,Bl^Si>=wr^va>=wr){var eu=nt(ce(Li),ce(pa));it(eu);var Zl=nt(gi,eu);it(Zl);var Ul=(Bl^Ks>=0?-1:1)*A(Zl[2]);(mr>Ul||mr===Ul&&(eu[0]||eu[1]))&&(ki+=Bl^Ks>=0?1:-1)}}return(Ti<-o||Ti0){for(Ji||(Or.polygonStart(),Ji=!0),Or.lineStart(),Cs=0;Cs1&&zn&2&&is.push(is.pop().concat(is.shift())),Pi.push(is.filter(ft))}}return Li}}function ft(At){return At.length>1}function tr(At,Gt){return((At=At.x)[0]<0?At[1]-l-o:l-At[1])-((Gt=Gt.x)[0]<0?Gt[1]-l-o:l-Gt[1])}var pr=Xr(function(){return!0},gr,Ai,[-u,-l]);function gr(At){var Gt=NaN,wr=NaN,mr=NaN,Or;return{lineStart:function(){At.lineStart(),Or=1},point:function(gi,Ti){var ki=gi>0?u:-u,Ji=p(gi-Gt);p(Ji-u)0?l:-l),At.point(mr,wr),At.lineEnd(),At.lineStart(),At.point(ki,wr),At.point(gi,wr),Or=0):mr!==ki&&Ji>=u&&(p(Gt-mr)o?_((x(Gt)*(gi=v(mr))*x(wr)-x(mr)*(Or=v(Gt))*x(At))/(Or*gi*Ti)):(Gt+mr)/2}function Ai(At,Gt,wr,mr){var Or;if(At==null)Or=wr*l,mr.point(-u,Or),mr.point(0,Or),mr.point(u,Or),mr.point(u,0),mr.point(u,-Or),mr.point(0,-Or),mr.point(-u,-Or),mr.point(-u,0),mr.point(-u,Or);else if(p(At[0]-Gt[0])>o){var gi=At[0]0,Or=p(Gt)>o;function gi(Pi,hi,Li,Si){ti(Si,At,wr,Li,Pi,hi)}function Ti(Pi,hi){return v(Pi)*v(hi)>Gt}function ki(Pi){var hi,Li,Si,Gn,ta;return{lineStart:function(){Gn=Si=!1,ta=1},point:function(ya,ia){var pa=[ya,ia],va,zn=Ti(ya,ia),is=mr?zn?0:Fn(ya,ia):zn?Fn(ya+(ya<0?u:-u),ia):0;if(!hi&&(Gn=Si=zn)&&Pi.lineStart(),zn!==Si&&(va=Ji(hi,pa),(!va||Bi(hi,va)||Bi(pa,va))&&(pa[2]=1)),zn!==Si)ta=0,zn?(Pi.lineStart(),va=Ji(pa,hi),Pi.point(va[0],va[1])):(va=Ji(hi,pa),Pi.point(va[0],va[1],2),Pi.lineEnd()),hi=va;else if(Or&&hi&&mr^zn){var Cs;!(is&Li)&&(Cs=Ji(pa,hi,!0))&&(ta=0,mr?(Pi.lineStart(),Pi.point(Cs[0][0],Cs[0][1]),Pi.point(Cs[1][0],Cs[1][1]),Pi.lineEnd()):(Pi.point(Cs[1][0],Cs[1][1]),Pi.lineEnd(),Pi.lineStart(),Pi.point(Cs[0][0],Cs[0][1],3)))}zn&&(!hi||!Bi(hi,pa))&&Pi.point(pa[0],pa[1]),hi=pa,Si=zn,Li=is},lineEnd:function(){Si&&Pi.lineEnd(),hi=null},clean:function(){return ta|(Gn&&Si)<<1}}}function Ji(Pi,hi,Li){var Si=ce(Pi),Gn=ce(hi),ta=[1,0,0],ya=nt(Si,Gn),ia=Ke(ya,ya),pa=ya[0],va=ia-pa*pa;if(!va)return!Li&Πvar zn=Gt*ia/va,is=-Gt*pa/va,Cs=nt(ta,ya),Ks=Nt(ta,zn),dl=Nt(ya,is);gt(Ks,dl);var xl=Cs,Bl=Ke(Ks,xl),bl=Ke(xl,xl),eu=Bl*Bl-bl*(Ke(Ks,Ks)-1);if(!(eu<0)){var Zl=M(eu),Ul=Nt(xl,(-Bl-Zl)/bl);if(gt(Ul,Ks),Ul=Ve(Ul),!Li)return Ul;var ja=Pi[0],ns=hi[0],Js=Pi[1],cs=hi[1],sl;ns0^Ul[1]<(p(Ul[0]-ja)u^(ja<=Ul[0]&&Ul[0]<=ns)){var Ml=Nt(xl,(-Bl+Zl)/bl);return gt(Ml,Ks),[Ul,Ve(Ml)]}}}function Fn(Pi,hi){var Li=mr?At:u-At,Si=0;return Pi<-Li?Si|=1:Pi>Li&&(Si|=2),hi<-Li?Si|=4:hi>Li&&(Si|=8),Si}return Xr(Ti,ki,gi,mr?[0,-At]:[-u,At-u])}function ni(At,Gt,wr,mr,Or,gi){var Ti=At[0],ki=At[1],Ji=Gt[0],Fn=Gt[1],Pi=0,hi=1,Li=Ji-Ti,Si=Fn-ki,Gn;if(Gn=wr-Ti,!(!Li&&Gn>0)){if(Gn/=Li,Li<0){if(Gn0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}if(Gn=Or-Ti,!(!Li&&Gn<0)){if(Gn/=Li,Li<0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}else if(Li>0){if(Gn0)){if(Gn/=Si,Si<0){if(Gn0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}if(Gn=gi-ki,!(!Si&&Gn<0)){if(Gn/=Si,Si<0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}else if(Si>0){if(Gn0&&(At[0]=Ti+Pi*Li,At[1]=ki+Pi*Si),hi<1&&(Gt[0]=Ti+hi*Li,Gt[1]=ki+hi*Si),!0}}}}}var Zi=1e9,aa=-Zi;function Mn(At,Gt,wr,mr){function Or(Fn,Pi){return At<=Fn&&Fn<=wr&&Gt<=Pi&&Pi<=mr}function gi(Fn,Pi,hi,Li){var Si=0,Gn=0;if(Fn==null||(Si=Ti(Fn,hi))!==(Gn=Ti(Pi,hi))||Ji(Fn,Pi)<0^hi>0)do Li.point(Si===0||Si===3?At:wr,Si>1?mr:Gt);while((Si=(Si+hi+4)%4)!==Gn);else Li.point(Pi[0],Pi[1])}function Ti(Fn,Pi){return p(Fn[0]-At)0?0:3:p(Fn[0]-wr)0?2:1:p(Fn[1]-Gt)0?1:0:Pi>0?3:2}function ki(Fn,Pi){return Ji(Fn.x,Pi.x)}function Ji(Fn,Pi){var hi=Ti(Fn,1),Li=Ti(Pi,1);return hi!==Li?hi-Li:hi===0?Pi[1]-Fn[1]:hi===1?Fn[0]-Pi[0]:hi===2?Fn[1]-Pi[1]:Pi[0]-Fn[0]}return function(Fn){var Pi=Fn,hi=oi(),Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks={point:dl,lineStart:eu,lineEnd:Zl,polygonStart:Bl,polygonEnd:bl};function dl(ja,ns){Or(ja,ns)&&Pi.point(ja,ns)}function xl(){for(var ja=0,ns=0,Js=Si.length;nsmr&&(Rl-zl)*(mr-Ml)>(Al-Ml)*(At-zl)&&++ja:Al<=mr&&(Rl-zl)*(mr-Ml)<(Al-Ml)*(At-zl)&&--ja;return ja}function Bl(){Pi=hi,Li=[],Si=[],Cs=!0}function bl(){var ja=xl(),ns=Cs&&ja,Js=(Li=t.merge(Li)).length;(ns||Js)&&(Fn.polygonStart(),ns&&(Fn.lineStart(),gi(null,null,1,Fn),Fn.lineEnd()),Js&&rn(Li,ki,ja,gi,Fn),Fn.polygonEnd()),Pi=Fn,Li=Si=Gn=null}function eu(){Ks.point=Ul,Si&&Si.push(Gn=[]),is=!0,zn=!1,pa=va=NaN}function Zl(){Li&&(Ul(ta,ya),ia&&zn&&hi.rejoin(),Li.push(hi.result())),Ks.point=dl,zn&&Pi.lineEnd()}function Ul(ja,ns){var Js=Or(ja,ns);if(Si&&Gn.push([ja,ns]),is)ta=ja,ya=ns,ia=Js,is=!1,Js&&(Pi.lineStart(),Pi.point(ja,ns));else if(Js&&zn)Pi.point(ja,ns);else{var cs=[pa=Math.max(aa,Math.min(Zi,pa)),va=Math.max(aa,Math.min(Zi,va))],sl=[ja=Math.max(aa,Math.min(Zi,ja)),ns=Math.max(aa,Math.min(Zi,ns))];ni(cs,sl,At,Gt,wr,mr)?(zn||(Pi.lineStart(),Pi.point(cs[0],cs[1])),Pi.point(sl[0],sl[1]),Js||Pi.lineEnd(),Cs=!1):Js&&(Pi.lineStart(),Pi.point(ja,ns),Cs=!1)}pa=ja,va=ns,zn=Js}return Ks}}function Un(){var At=0,Gt=0,wr=960,mr=500,Or,gi,Ti;return Ti={stream:function(ki){return Or&&gi===ki?Or:Or=Mn(At,Gt,wr,mr)(gi=ki)},extent:function(ki){return arguments.length?(At=+ki[0][0],Gt=+ki[0][1],wr=+ki[1][0],mr=+ki[1][1],Or=gi=null,Ti):[[At,Gt],[wr,mr]]}}}var Ga=r(),ma,oa,ka,so={sphere:F,point:F,lineStart:Kr,lineEnd:F,polygonStart:F,polygonEnd:F};function Kr(){so.point=Yo,so.lineEnd=Ia}function Ia(){so.point=so.lineEnd=F}function Yo(At,Gt){At*=d,Gt*=d,ma=At,oa=x(Gt),ka=v(Gt),so.point=fa}function fa(At,Gt){At*=d,Gt*=d;var wr=x(Gt),mr=v(Gt),Or=p(At-ma),gi=v(Or),Ti=x(Or),ki=mr*Ti,Ji=ka*wr-oa*mr*gi,Fn=oa*wr+ka*mr*gi;Ga.add(b(M(ki*ki+Ji*Ji),Fn)),ma=At,oa=wr,ka=mr}function kn(At){return Ga.reset(),W(At,so),+Ga}var Ta=[null,null],ys={type:"LineString",coordinates:Ta};function uo(At,Gt){return Ta[0]=At,Ta[1]=Gt,kn(ys)}var ls={Feature:function(At,Gt){return fo(At.geometry,Gt)},FeatureCollection:function(At,Gt){for(var wr=At.features,mr=-1,Or=wr.length;++mr0&&(Or=uo(At[gi],At[gi-1]),Or>0&&wr<=Or&&mr<=Or&&(wr+mr-Or)*(1-Math.pow((wr-mr)/Or,2))o}).map(Li)).concat(t.range(k(gi/Fn)*Fn,Or,Fn).filter(function(va){return p(va%hi)>o}).map(Si))}return ia.lines=function(){return pa().map(function(va){return{type:"LineString",coordinates:va}})},ia.outline=function(){return{type:"Polygon",coordinates:[Gn(mr).concat(ta(Ti).slice(1),Gn(wr).reverse().slice(1),ta(ki).reverse().slice(1))]}},ia.extent=function(va){return arguments.length?ia.extentMajor(va).extentMinor(va):ia.extentMinor()},ia.extentMajor=function(va){return arguments.length?(mr=+va[0][0],wr=+va[1][0],ki=+va[0][1],Ti=+va[1][1],mr>wr&&(va=mr,mr=wr,wr=va),ki>Ti&&(va=ki,ki=Ti,Ti=va),ia.precision(ya)):[[mr,ki],[wr,Ti]]},ia.extentMinor=function(va){return arguments.length?(Gt=+va[0][0],At=+va[1][0],gi=+va[0][1],Or=+va[1][1],Gt>At&&(va=Gt,Gt=At,At=va),gi>Or&&(va=gi,gi=Or,Or=va),ia.precision(ya)):[[Gt,gi],[At,Or]]},ia.step=function(va){return arguments.length?ia.stepMajor(va).stepMinor(va):ia.stepMinor()},ia.stepMajor=function(va){return arguments.length?(Pi=+va[0],hi=+va[1],ia):[Pi,hi]},ia.stepMinor=function(va){return arguments.length?(Ji=+va[0],Fn=+va[1],ia):[Ji,Fn]},ia.precision=function(va){return arguments.length?(ya=+va,Li=ji(gi,Or,90),Si=gn(Gt,At,ya),Gn=ji(ki,Ti,90),ta=gn(mr,wr,ya),ia):ya},ia.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ha(){return Ps()()}function Sn(At,Gt){var wr=At[0]*d,mr=At[1]*d,Or=Gt[0]*d,gi=Gt[1]*d,Ti=v(mr),ki=x(mr),Ji=v(gi),Fn=x(gi),Pi=Ti*v(wr),hi=Ti*x(wr),Li=Ji*v(Or),Si=Ji*x(Or),Gn=2*A(M(B(gi-mr)+Ti*Ji*B(Or-wr))),ta=x(Gn),ya=Gn?function(ia){var pa=x(ia*=Gn)/ta,va=x(Gn-ia)/ta,zn=va*Pi+pa*Li,is=va*hi+pa*Si,Cs=va*ki+pa*Fn;return[b(is,zn)*h,b(Cs,M(zn*zn+is*is))*h]}:function(){return[wr*h,mr*h]};return ya.distance=Gn,ya}function ao(At){return At}var Ba=r(),Ko=r(),Qo,Wi,Sa,Qa,vn={point:F,lineStart:F,lineEnd:F,polygonStart:function(){vn.lineStart=da,vn.lineEnd=As},polygonEnd:function(){vn.lineStart=vn.lineEnd=vn.point=F,Ba.add(p(Ko)),Ko.reset()},result:function(){var At=Ba/2;return Ba.reset(),At}};function da(){vn.point=la}function la(At,Gt){vn.point=vo,Qo=Sa=At,Wi=Qa=Gt}function vo(At,Gt){Ko.add(Qa*At-Sa*Gt),Sa=At,Qa=Gt}function As(){vo(Qo,Wi)}var ps=1/0,co=ps,mo=-ps,No=mo,jn={point:Go,lineStart:F,lineEnd:F,polygonStart:F,polygonEnd:F,result:function(){var At=[[ps,co],[mo,No]];return mo=No=-(co=ps=1/0),At}};function Go(At,Gt){Atmo&&(mo=At),GtNo&&(No=Gt)}var Ys=0,qs=0,Ns=0,Oa=0,ha=0,Vs=0,Ya=0,_n=0,Vn=0,wo,Ra,Xn,un,$n={point:Ka,lineStart:qn,lineEnd:lo,polygonStart:function(){$n.lineStart=eo,$n.lineEnd=sa},polygonEnd:function(){$n.point=Ka,$n.lineStart=qn,$n.lineEnd=lo},result:function(){var At=Vn?[Ya/Vn,_n/Vn]:Vs?[Oa/Vs,ha/Vs]:Ns?[Ys/Ns,qs/Ns]:[NaN,NaN];return Ys=qs=Ns=Oa=ha=Vs=Ya=_n=Vn=0,At}};function Ka(At,Gt){Ys+=At,qs+=Gt,++Ns}function qn(){$n.point=Eo}function Eo(At,Gt){$n.point=Ja,Ka(Xn=At,un=Gt)}function Ja(At,Gt){var wr=At-Xn,mr=Gt-un,Or=M(wr*wr+mr*mr);Oa+=Or*(Xn+At)/2,ha+=Or*(un+Gt)/2,Vs+=Or,Ka(Xn=At,un=Gt)}function lo(){$n.point=Ka}function eo(){$n.point=es}function sa(){Na(wo,Ra)}function es(At,Gt){$n.point=Na,Ka(wo=Xn=At,Ra=un=Gt)}function Na(At,Gt){var wr=At-Xn,mr=Gt-un,Or=M(wr*wr+mr*mr);Oa+=Or*(Xn+At)/2,ha+=Or*(un+Gt)/2,Vs+=Or,Or=un*At-Xn*Gt,Ya+=Or*(Xn+At),_n+=Or*(un+Gt),Vn+=Or*3,Ka(Xn=At,un=Gt)}function tn(At){this._context=At}tn.prototype={_radius:4.5,pointRadius:function(At){return this._radius=At,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(At,Gt){switch(this._point){case 0:{this._context.moveTo(At,Gt),this._point=1;break}case 1:{this._context.lineTo(At,Gt);break}default:{this._context.moveTo(At+this._radius,Gt),this._context.arc(At,Gt,this._radius,0,c);break}}},result:F};var Pa=r(),to,yo,Jo,Ao,Dn,_a={point:F,lineStart:function(){_a.point=Ws},lineEnd:function(){to&&Ca(yo,Jo),_a.point=F},polygonStart:function(){to=!0},polygonEnd:function(){to=null},result:function(){var At=+Pa;return Pa.reset(),At}};function Ws(At,Gt){_a.point=Ca,yo=Ao=At,Jo=Dn=Gt}function Ca(At,Gt){Ao-=At,Dn-=Gt,Pa.add(M(Ao*Ao+Dn*Dn)),Ao=At,Dn=Gt}function Es(){this._string=[]}Es.prototype={_radius:4.5,_circle:Ts(4.5),pointRadius:function(At){return(At=+At)!==this._radius&&(this._radius=At,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(At,Gt){switch(this._point){case 0:{this._string.push("M",At,",",Gt),this._point=1;break}case 1:{this._string.push("L",At,",",Gt);break}default:{this._circle==null&&(this._circle=Ts(this._radius)),this._string.push("M",At,",",Gt,this._circle);break}}},result:function(){if(this._string.length){var At=this._string.join("");return this._string=[],At}else return null}};function Ts(At){return"m0,"+At+"a"+At+","+At+" 0 1,1 0,"+-2*At+"a"+At+","+At+" 0 1,1 0,"+2*At+"z"}function Ho(At,Gt){var wr=4.5,mr,Or;function gi(Ti){return Ti&&(typeof wr=="function"&&Or.pointRadius(+wr.apply(this,arguments)),W(Ti,mr(Or))),Or.result()}return gi.area=function(Ti){return W(Ti,mr(vn)),vn.result()},gi.measure=function(Ti){return W(Ti,mr(_a)),_a.result()},gi.bounds=function(Ti){return W(Ti,mr(jn)),jn.result()},gi.centroid=function(Ti){return W(Ti,mr($n)),$n.result()},gi.projection=function(Ti){return arguments.length?(mr=Ti==null?(At=null,ao):(At=Ti).stream,gi):At},gi.context=function(Ti){return arguments.length?(Or=Ti==null?(Gt=null,new Es):new tn(Gt=Ti),typeof wr!="function"&&Or.pointRadius(wr),gi):Gt},gi.pointRadius=function(Ti){return arguments.length?(wr=typeof Ti=="function"?Ti:(Or.pointRadius(+Ti),+Ti),gi):wr},gi.projection(At).context(Gt)}function Wa(At){return{stream:To(At)}}function To(At){return function(Gt){var wr=new ts;for(var mr in At)wr[mr]=At[mr];return wr.stream=Gt,wr}}function ts(){}ts.prototype={constructor:ts,point:function(At,Gt){this.stream.point(At,Gt)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Wo(At,Gt,wr){var mr=At.clipExtent&&At.clipExtent();return At.scale(150).translate([0,0]),mr!=null&&At.clipExtent(null),W(wr,At.stream(jn)),Gt(jn.result()),mr!=null&&At.clipExtent(mr),At}function qa(At,Gt,wr){return Wo(At,function(mr){var Or=Gt[1][0]-Gt[0][0],gi=Gt[1][1]-Gt[0][1],Ti=Math.min(Or/(mr[1][0]-mr[0][0]),gi/(mr[1][1]-mr[0][1])),ki=+Gt[0][0]+(Or-Ti*(mr[1][0]+mr[0][0]))/2,Ji=+Gt[0][1]+(gi-Ti*(mr[1][1]+mr[0][1]))/2;At.scale(150*Ti).translate([ki,Ji])},wr)}function ln(At,Gt,wr){return qa(At,[[0,0],Gt],wr)}function Bo(At,Gt,wr){return Wo(At,function(mr){var Or=+Gt,gi=Or/(mr[1][0]-mr[0][0]),Ti=(Or-gi*(mr[1][0]+mr[0][0]))/2,ki=-gi*mr[0][1];At.scale(150*gi).translate([Ti,ki])},wr)}function ko(At,Gt,wr){return Wo(At,function(mr){var Or=+Gt,gi=Or/(mr[1][1]-mr[0][1]),Ti=-gi*mr[0][0],ki=(Or-gi*(mr[1][1]+mr[0][1]))/2;At.scale(150*gi).translate([Ti,ki])},wr)}var oo=16,za=v(30*d);function ea(At,Gt){return+Gt?$s(At,Gt):rs(At)}function rs(At){return To({point:function(Gt,wr){Gt=At(Gt,wr),this.stream.point(Gt[0],Gt[1])}})}function $s(At,Gt){function wr(mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya){var ia=Fn-mr,pa=Pi-Or,va=ia*ia+pa*pa;if(va>4*Gt&&ta--){var zn=Ti+Li,is=ki+Si,Cs=Ji+Gn,Ks=M(zn*zn+is*is+Cs*Cs),dl=A(Cs/=Ks),xl=p(p(Cs)-1)Gt||p((ia*Zl+pa*Ul)/va-.5)>.3||Ti*Li+ki*Si+Ji*Gn2?ja[2]%360*d:0,Zl()):[ki*h,Ji*h,Fn*h]},bl.angle=function(ja){return arguments.length?(hi=ja%360*d,Zl()):hi*h},bl.reflectX=function(ja){return arguments.length?(Li=ja?-1:1,Zl()):Li<0},bl.reflectY=function(ja){return arguments.length?(Si=ja?-1:1,Zl()):Si<0},bl.precision=function(ja){return arguments.length?(Cs=ea(Ks,is=ja*ja),Ul()):M(is)},bl.fitExtent=function(ja,ns){return qa(bl,ja,ns)},bl.fitSize=function(ja,ns){return ln(bl,ja,ns)},bl.fitWidth=function(ja,ns){return Bo(bl,ja,ns)},bl.fitHeight=function(ja,ns){return ko(bl,ja,ns)};function Zl(){var ja=as(wr,0,0,Li,Si,hi).apply(null,Gt(gi,Ti)),ns=(hi?as:fl)(wr,mr-ja[0],Or-ja[1],Li,Si,hi);return Pi=Gr(ki,Ji,Fn),Ks=Ur(Gt,ns),dl=Ur(Pi,Ks),Cs=ea(Ks,is),Ul()}function Ul(){return xl=Bl=null,bl}return function(){return Gt=At.apply(this,arguments),bl.invert=Gt.invert&&eu,Zl()}}function ho(At){var Gt=0,wr=u/3,mr=Qs(At),Or=mr(Gt,wr);return Or.parallels=function(gi){return arguments.length?mr(Gt=gi[0]*d,wr=gi[1]*d):[Gt*h,wr*h]},Or}function gs(At){var Gt=v(At);function wr(mr,Or){return[mr*Gt,x(Or)/Gt]}return wr.invert=function(mr,Or){return[mr/Gt,A(Or*Gt)]},wr}function Vo(At,Gt){var wr=x(At),mr=(wr+x(Gt))/2;if(p(mr)=.12&&ya<.234&&ta>=-.425&&ta<-.214?Or:ya>=.166&&ya<.234&&ta>=-.214&&ta<-.115?Ti:wr).invert(Li)},Pi.stream=function(Li){return At&&Gt===Li?At:At=xs([wr.stream(Gt=Li),Or.stream(Li),Ti.stream(Li)])},Pi.precision=function(Li){return arguments.length?(wr.precision(Li),Or.precision(Li),Ti.precision(Li),hi()):wr.precision()},Pi.scale=function(Li){return arguments.length?(wr.scale(Li),Or.scale(Li*.35),Ti.scale(Li),Pi.translate(wr.translate())):wr.scale()},Pi.translate=function(Li){if(!arguments.length)return wr.translate();var Si=wr.scale(),Gn=+Li[0],ta=+Li[1];return mr=wr.translate(Li).clipExtent([[Gn-.455*Si,ta-.238*Si],[Gn+.455*Si,ta+.238*Si]]).stream(Fn),gi=Or.translate([Gn-.307*Si,ta+.201*Si]).clipExtent([[Gn-.425*Si+o,ta+.12*Si+o],[Gn-.214*Si-o,ta+.234*Si-o]]).stream(Fn),ki=Ti.translate([Gn-.205*Si,ta+.212*Si]).clipExtent([[Gn-.214*Si+o,ta+.166*Si+o],[Gn-.115*Si-o,ta+.234*Si-o]]).stream(Fn),hi()},Pi.fitExtent=function(Li,Si){return qa(Pi,Li,Si)},Pi.fitSize=function(Li,Si){return ln(Pi,Li,Si)},Pi.fitWidth=function(Li,Si){return Bo(Pi,Li,Si)},Pi.fitHeight=function(Li,Si){return ko(Pi,Li,Si)};function hi(){return At=Gt=null,Pi}return Pi.scale(1070)}function Ea(At){return function(Gt,wr){var mr=v(Gt),Or=v(wr),gi=At(mr*Or);return[gi*Or*x(Gt),gi*x(wr)]}}function Jn(At){return function(Gt,wr){var mr=M(Gt*Gt+wr*wr),Or=At(mr),gi=x(Or),Ti=v(Or);return[b(Gt*gi,mr*Ti),A(mr&&wr*gi/mr)]}}var Oo=Ea(function(At){return M(2/(1+At))});Oo.invert=Jn(function(At){return 2*A(At/2)});function rl(){return Ma(Oo).scale(124.75).clipAngle(180-.001)}var Gs=Ea(function(At){return(At=P(At))&&At/x(At)});Gs.invert=Jn(function(At){return At});function bs(){return Ma(Gs).scale(79.4188).clipAngle(180-.001)}function zs(At,Gt){return[At,T(m((l+Gt)/2))]}zs.invert=function(At,Gt){return[At,2*_(E(Gt))-l]};function $o(){return Aa(zs).scale(961/c)}function Aa(At){var Gt=Ma(At),wr=Gt.center,mr=Gt.scale,Or=Gt.translate,gi=Gt.clipExtent,Ti=null,ki,Ji,Fn;Gt.scale=function(hi){return arguments.length?(mr(hi),Pi()):mr()},Gt.translate=function(hi){return arguments.length?(Or(hi),Pi()):Or()},Gt.center=function(hi){return arguments.length?(wr(hi),Pi()):wr()},Gt.clipExtent=function(hi){return arguments.length?(hi==null?Ti=ki=Ji=Fn=null:(Ti=+hi[0][0],ki=+hi[0][1],Ji=+hi[1][0],Fn=+hi[1][1]),Pi()):Ti==null?null:[[Ti,ki],[Ji,Fn]]};function Pi(){var hi=u*mr(),Li=Gt(Vi(Gt.rotate()).invert([0,0]));return gi(Ti==null?[[Li[0]-hi,Li[1]-hi],[Li[0]+hi,Li[1]+hi]]:At===zs?[[Math.max(Li[0]-hi,Ti),ki],[Math.min(Li[0]+hi,Ji),Fn]]:[[Ti,Math.max(Li[1]-hi,ki)],[Ji,Math.min(Li[1]+hi,Fn)]])}return Pi()}function os(At){return m((l+At)/2)}function _l(At,Gt){var wr=v(At),mr=At===Gt?x(At):T(wr/v(Gt))/T(os(Gt)/os(At)),Or=wr*L(os(At),mr)/mr;if(!mr)return zs;function gi(Ti,ki){Or>0?ki<-l+o&&(ki=-l+o):ki>l-o&&(ki=l-o);var Ji=Or/L(os(ki),mr);return[Ji*x(mr*Ti),Or-Ji*v(mr*Ti)]}return gi.invert=function(Ti,ki){var Ji=Or-ki,Fn=C(mr)*M(Ti*Ti+Ji*Ji),Pi=b(Ti,p(Ji))*C(Ji);return Ji*mr<0&&(Pi-=u*C(Ti)*C(Ji)),[Pi/mr,2*_(L(Or/Fn,1/mr))-l]},gi}function Ss(){return ho(_l).scale(109.5).parallels([30,30])}function po(At,Gt){return[At,Gt]}po.invert=po;function go(){return Ma(po).scale(152.63)}function ss(At,Gt){var wr=v(At),mr=At===Gt?x(At):(wr-v(Gt))/(Gt-At),Or=wr/mr+At;if(p(mr)o&&--mr>0);return[At/(.8707+(gi=wr*wr)*(-.131979+gi*(-.013791+gi*gi*gi*(.003971-.001529*gi)))),wr]};function hl(){return Ma(Fs).scale(175.295)}function Fa(At,Gt){return[v(Gt)*x(At),x(Gt)]}Fa.invert=Jn(A);function Ms(){return Ma(Fa).scale(249.5).clipAngle(90+o)}function jo(At,Gt){var wr=v(Gt),mr=1+v(At)*wr;return[wr*x(At)/mr,x(Gt)/mr]}jo.invert=Jn(function(At){return 2*_(At)});function Rs(){return Ma(jo).scale(250).clipAngle(142)}function Is(At,Gt){return[T(m((l+Gt)/2)),-At]}Is.invert=function(At,Gt){return[-Gt,2*_(E(At))-l]};function Bs(){var At=Aa(Is),Gt=At.center,wr=At.rotate;return At.center=function(mr){return arguments.length?Gt([-mr[1],mr[0]]):(mr=Gt(),[mr[1],-mr[0]])},At.rotate=function(mr){return arguments.length?wr([mr[0],mr[1],mr.length>2?mr[2]+90:90]):(mr=wr(),[mr[0],mr[1],mr[2]-90])},wr([0,0,90]).scale(159.155)}e.geoAlbers=Lo,e.geoAlbersUsa=ks,e.geoArea=ye,e.geoAzimuthalEqualArea=rl,e.geoAzimuthalEqualAreaRaw=Oo,e.geoAzimuthalEquidistant=bs,e.geoAzimuthalEquidistantRaw=Gs,e.geoBounds=xe,e.geoCentroid=_r,e.geoCircle=Yr,e.geoClipAntimeridian=pr,e.geoClipCircle=Qi,e.geoClipExtent=Un,e.geoClipRectangle=Mn,e.geoConicConformal=Ss,e.geoConicConformalRaw=_l,e.geoConicEqualArea=Do,e.geoConicEqualAreaRaw=Vo,e.geoConicEquidistant=qo,e.geoConicEquidistantRaw=ss,e.geoContains=Po,e.geoDistance=uo,e.geoEqualEarth=el,e.geoEqualEarthRaw=cl,e.geoEquirectangular=go,e.geoEquirectangularRaw=po,e.geoGnomonic=Ro,e.geoGnomonicRaw=Hs,e.geoGraticule=Ps,e.geoGraticule10=Ha,e.geoIdentity=tl,e.geoInterpolate=Sn,e.geoLength=kn,e.geoMercator=$o,e.geoMercatorRaw=zs,e.geoNaturalEarth1=hl,e.geoNaturalEarth1Raw=Fs,e.geoOrthographic=Ms,e.geoOrthographicRaw=Fa,e.geoPath=Ho,e.geoProjection=Ma,e.geoProjectionMutator=Qs,e.geoRotation=Vi,e.geoStereographic=Rs,e.geoStereographicRaw=jo,e.geoStream=W,e.geoTransform=Wa,e.geoTransverseMercator=Bs,e.geoTransverseMercatorRaw=Is,Object.defineProperty(e,"__esModule",{value:!0})})});var C6e=Te((kF,k6e)=>{(function(e,t){typeof kF=="object"&&typeof k6e!="undefined"?t(kF,NZ(),nk()):t(e.d3=e.d3||{},e.d3,e.d3)})(kF,function(e,t,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,u=Math.floor,l=Math.log,f=Math.max,c=Math.min,h=Math.pow,d=Math.round,p=Math.sign||function(he){return he>0?1:he<0?-1:0},_=Math.sin,b=Math.tan,v=1e-6,k=1e-12,E=Math.PI,T=E/2,L=E/4,x=Math.SQRT1_2,C=G(2),M=G(E),m=E*2,P=180/E,A=E/180;function B(he){return he?he/Math.sin(he):1}function F(he){return he>1?T:he<-1?-T:Math.asin(he)}function U(he){return he>1?0:he<-1?E:Math.acos(he)}function G(he){return he>0?Math.sqrt(he):0}function j(he){return he=s(2*he),(he-1)/(he+1)}function H(he){return(s(he)-s(-he))/2}function N(he){return(s(he)+s(-he))/2}function W(he){return l(he+G(he*he+1))}function re(he){return l(he+G(he*he-1))}function ae(he){var Se=b(he/2),qe=2*l(o(he/2))/(Se*Se);function He(lt,tt){var pt=o(lt),Ht=o(tt),nr=_(tt),fr=Ht*pt,Ar=-((1-fr?l((1+fr)/2)/(1-fr):-.5)+qe/(1+fr));return[Ar*Ht*_(lt),Ar*nr]}return He.invert=function(lt,tt){var pt=G(lt*lt+tt*tt),Ht=-he/2,nr=50,fr;if(!pt)return[0,0];do{var Ar=Ht/2,Rr=o(Ar),ri=_(Ar),si=ri/Rr,Mi=-l(n(Rr));Ht-=fr=(2/si*Mi-qe*si-pt)/(-Mi/(ri*ri)+1-qe/(2*Rr*Rr))*(Rr<0?.7:1)}while(n(fr)>v&&--nr>0);var hn=_(Ht);return[a(lt*hn,pt*o(Ht)),F(tt*hn/pt)]},He}function be(){var he=T,Se=t.geoProjectionMutator(ae),qe=Se(he);return qe.radius=function(He){return arguments.length?Se(he=He*A):he*P},qe.scale(179.976).clipAngle(147)}function Pe(he,Se){var qe=o(Se),He=B(U(qe*o(he/=2)));return[2*qe*_(he)*He,_(Se)*He]}Pe.invert=function(he,Se){if(!(he*he+4*Se*Se>E*E+v)){var qe=he,He=Se,lt=25;do{var tt=_(qe),pt=_(qe/2),Ht=o(qe/2),nr=_(He),fr=o(He),Ar=_(2*He),Rr=nr*nr,ri=fr*fr,si=pt*pt,Mi=1-ri*Ht*Ht,hn=Mi?U(fr*Ht)*G(Zn=1/Mi):Zn=0,Zn,Yn=2*hn*fr*pt-he,Ua=hn*nr-Se,Fo=Zn*(ri*si+hn*fr*Ht*Rr),vl=Zn*(.5*tt*Ar-hn*2*nr*pt),Us=Zn*.25*(Ar*pt-hn*nr*ri*tt),ml=Zn*(Rr*Ht+hn*si*fr),au=vl*Us-ml*Fo;if(!au)break;var Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,He-=Yl}while((n(Sl)>v||n(Yl)>v)&&--lt>0);return[qe,He]}};function Ce(){return t.geoProjection(Pe).scale(152.63)}function de(he){var Se=_(he),qe=o(he),He=he>=0?1:-1,lt=b(He*he),tt=(1+Se-qe)/2;function pt(Ht,nr){var fr=o(nr),Ar=o(Ht/=2);return[(1+fr)*_(Ht),(He*nr>-a(Ar,lt)-.001?0:-He*10)+tt+_(nr)*qe-(1+fr)*Se*Ar]}return pt.invert=function(Ht,nr){var fr=0,Ar=0,Rr=50;do{var ri=o(fr),si=_(fr),Mi=o(Ar),hn=_(Ar),Zn=1+Mi,Yn=Zn*si-Ht,Ua=tt+hn*qe-Zn*Se*ri-nr,Fo=Zn*ri/2,vl=-si*hn,Us=Se*Zn*si/2,ml=qe*Mi+Se*ri*hn,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au/2,Yl=(Yn*Us-Ua*Fo)/au;n(Yl)>2&&(Yl/=2),fr-=Sl,Ar-=Yl}while((n(Sl)>v||n(Yl)>v)&&--Rr>0);return He*Ar>-a(o(fr),lt)-.001?[fr*2,Ar]:null},pt}function te(){var he=20*A,Se=he>=0?1:-1,qe=b(Se*he),He=t.geoProjectionMutator(de),lt=He(he),tt=lt.stream;return lt.parallel=function(pt){return arguments.length?(qe=b((Se=(he=pt*A)>=0?1:-1)*he),He(he)):he*P},lt.stream=function(pt){var Ht=lt.rotate(),nr=tt(pt),fr=(lt.rotate([0,0]),tt(pt)),Ar=lt.precision();return lt.rotate(Ht),nr.sphere=function(){fr.polygonStart(),fr.lineStart();for(var Rr=Se*-180;Se*Rr<180;Rr+=Se*90)fr.point(Rr,Se*90);if(he)for(;Se*(Rr-=3*Se*Ar)>=-180;)fr.point(Rr,Se*-a(o(Rr*A/2),qe)*P);fr.lineEnd(),fr.polygonEnd()},nr},lt.scale(218.695).center([0,28.0974])}function ke(he,Se){var qe=b(Se/2),He=G(1-qe*qe),lt=1+He*o(he/=2),tt=_(he)*He/lt,pt=qe/lt,Ht=tt*tt,nr=pt*pt;return[4/3*tt*(3+Ht-3*nr),4/3*pt*(3+3*Ht-nr)]}ke.invert=function(he,Se){if(he*=3/8,Se*=3/8,!he&&n(Se)>1)return null;var qe=he*he,He=Se*Se,lt=1+qe+He,tt=G((lt-G(lt*lt-4*Se*Se))/2),pt=F(tt)/3,Ht=tt?re(n(Se/tt))/3:W(n(he))/3,nr=o(pt),fr=N(Ht),Ar=fr*fr-nr*nr;return[p(he)*2*a(H(Ht)*nr,.25-Ar),p(Se)*2*a(fr*_(pt),.25+Ar)]};function Ee(){return t.geoProjection(ke).scale(66.1603)}var Me=G(8),Ne=l(1+C);function Fe(he,Se){var qe=n(Se);return qek&&--He>0);return[he/(o(qe)*(Me-1/_(qe))),p(Se)*qe]};function ye(){return t.geoProjection(Fe).scale(112.314)}function Ve(he){var Se=2*E/he;function qe(He,lt){var tt=t.geoAzimuthalEquidistantRaw(He,lt);if(n(He)>T){var pt=a(tt[1],tt[0]),Ht=G(tt[0]*tt[0]+tt[1]*tt[1]),nr=Se*d((pt-T)/Se)+T,fr=a(_(pt-=nr),2-o(pt));pt=nr+F(E/Ht*_(fr))-fr,tt[0]=Ht*o(pt),tt[1]=Ht*_(pt)}return tt}return qe.invert=function(He,lt){var tt=G(He*He+lt*lt);if(tt>T){var pt=a(lt,He),Ht=Se*d((pt-T)/Se)+T,nr=pt>Ht?-1:1,fr=tt*o(Ht-pt),Ar=1/b(nr*U((fr-E)/G(E*(E-2*fr)+tt*tt)));pt=Ht+2*i((Ar+nr*G(Ar*Ar-3))/3),He=tt*o(pt),lt=tt*_(pt)}return t.geoAzimuthalEquidistantRaw.invert(He,lt)},qe}function ce(){var he=5,Se=t.geoProjectionMutator(Ve),qe=Se(he),He=qe.stream,lt=.01,tt=-o(lt*A),pt=_(lt*A);return qe.lobes=function(Ht){return arguments.length?Se(he=+Ht):he},qe.stream=function(Ht){var nr=qe.rotate(),fr=He(Ht),Ar=(qe.rotate([0,0]),He(Ht));return qe.rotate(nr),fr.sphere=function(){Ar.polygonStart(),Ar.lineStart();for(var Rr=0,ri=360/he,si=2*E/he,Mi=90-180/he,hn=T;Rr0&&n(lt)>v);return He<0?NaN:qe}function it(he,Se,qe){return Se===void 0&&(Se=40),qe===void 0&&(qe=k),function(He,lt,tt,pt){var Ht,nr,fr;tt=tt===void 0?0:+tt,pt=pt===void 0?0:+pt;for(var Ar=0;ArHt){tt-=nr/=2,pt-=fr/=2;continue}Ht=Mi;var hn=(tt>0?-1:1)*qe,Zn=(pt>0?-1:1)*qe,Yn=he(tt+hn,pt),Ua=he(tt,pt+Zn),Fo=(Yn[0]-Rr[0])/hn,vl=(Yn[1]-Rr[1])/hn,Us=(Ua[0]-Rr[0])/Zn,ml=(Ua[1]-Rr[1])/Zn,au=ml*Fo-vl*Us,Sl=(n(au)<.5?.5:1)/au;if(nr=(si*Us-ri*ml)*Sl,fr=(ri*vl-si*Fo)*Sl,tt+=nr,pt+=fr,n(nr)0&&(Ht[1]*=1+nr/1.5*Ht[0]*Ht[0]),Ht}return He.invert=it(He),He}function kt(){return t.geoProjection(Ye()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Tt(he,Se){var qe=he*_(Se),He=30,lt;do Se-=lt=(Se+_(Se)-qe)/(1+o(Se));while(n(lt)>v&&--He>0);return Se/2}function St(he,Se,qe){function He(lt,tt){return[he*lt*o(tt=Tt(qe,tt)),Se*_(tt)]}return He.invert=function(lt,tt){return tt=F(tt/Se),[lt/(he*o(tt)),F((2*tt+_(2*tt))/qe)]},He}var Rt=St(C/T,C,E);function Zt(){return t.geoProjection(Rt).scale(169.529)}var Et=2.00276,Ae=1.11072;function at(he,Se){var qe=Tt(E,Se);return[Et*he/(1/o(Se)+Ae/o(qe)),(Se+C*_(qe))/Et]}at.invert=function(he,Se){var qe=Et*Se,He=Se<0?-L:L,lt=25,tt,pt;do pt=qe-C*_(He),He-=tt=(_(2*He)+2*He-E*_(pt))/(2*o(2*He)+2+E*o(pt)*C*o(He));while(n(tt)>v&&--lt>0);return pt=qe-C*_(He),[he*(1/o(pt)+Ae/o(He))/Et,pt]};function wt(){return t.geoProjection(at).scale(160.857)}function vt(he){var Se=0,qe=t.geoProjectionMutator(he),He=qe(Se);return He.parallel=function(lt){return arguments.length?qe(Se=lt*A):Se*P},He}function st(he,Se){return[he*o(Se),Se]}st.invert=function(he,Se){return[he/o(Se),Se]};function Ue(){return t.geoProjection(st).scale(152.63)}function rt(he){if(!he)return st;var Se=1/b(he);function qe(He,lt){var tt=Se+he-lt,pt=tt&&He*o(lt)/tt;return[tt*_(pt),Se-tt*o(pt)]}return qe.invert=function(He,lt){var tt=G(He*He+(lt=Se-lt)*lt),pt=Se+he-tt;return[tt/o(pt)*a(He,lt),pt]},qe}function $e(){return vt(rt).scale(123.082).center([0,26.1441]).parallel(45)}function zt(he){function Se(qe,He){var lt=T-He,tt=lt&&qe*he*_(lt)/lt;return[lt*_(tt)/he,T-lt*o(tt)]}return Se.invert=function(qe,He){var lt=qe*he,tt=T-He,pt=G(lt*lt+tt*tt),Ht=a(lt,tt);return[(pt?pt/_(pt):1)*Ht/he,T-pt]},Se}function Yt(){var he=.5,Se=t.geoProjectionMutator(zt),qe=Se(he);return qe.fraction=function(He){return arguments.length?Se(he=+He):he},qe.scale(158.837)}var hr=St(1,4/E,E);function yr(){return t.geoProjection(hr).scale(152.63)}function br(he,Se,qe,He,lt,tt){var pt=o(tt),Ht;if(n(he)>1||n(tt)>1)Ht=U(qe*lt+Se*He*pt);else{var nr=_(he/2),fr=_(tt/2);Ht=2*F(G(nr*nr+Se*He*fr*fr))}return n(Ht)>v?[Ht,a(He*_(tt),Se*lt-qe*He*pt)]:[0,0]}function Ut(he,Se,qe){return U((he*he+Se*Se-qe*qe)/(2*he*Se))}function Ie(he){return he-2*E*u((he+E)/(2*E))}function xe(he,Se,qe){for(var He=[[he[0],he[1],_(he[1]),o(he[1])],[Se[0],Se[1],_(Se[1]),o(Se[1])],[qe[0],qe[1],_(qe[1]),o(qe[1])]],lt=He[2],tt,pt=0;pt<3;++pt,lt=tt)tt=He[pt],lt.v=br(tt[1]-lt[1],lt[3],lt[2],tt[3],tt[2],tt[0]-lt[0]),lt.point=[0,0];var Ht=Ut(He[0].v[0],He[2].v[0],He[1].v[0]),nr=Ut(He[0].v[0],He[1].v[0],He[2].v[0]),fr=E-Ht;He[2].point[1]=0,He[0].point[0]=-(He[1].point[0]=He[0].v[0]/2);var Ar=[He[2].point[0]=He[0].point[0]+He[2].v[0]*o(Ht),2*(He[0].point[1]=He[1].point[1]=He[2].v[0]*_(Ht))];function Rr(ri,si){var Mi=_(si),hn=o(si),Zn=new Array(3),Yn;for(Yn=0;Yn<3;++Yn){var Ua=He[Yn];if(Zn[Yn]=br(si-Ua[1],Ua[3],Ua[2],hn,Mi,ri-Ua[0]),!Zn[Yn][0])return Ua.point;Zn[Yn][1]=Ie(Zn[Yn][1]-Ua.v[1])}var Fo=Ar.slice();for(Yn=0;Yn<3;++Yn){var vl=Yn==2?0:Yn+1,Us=Ut(He[Yn].v[0],Zn[Yn][0],Zn[vl][0]);Zn[Yn][1]<0&&(Us=-Us),Yn?Yn==1?(Us=nr-Us,Fo[0]-=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*_(Us)):(Us=fr-Us,Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]+=Zn[Yn][0]*_(Us)):(Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*_(Us))}return Fo[0]/=3,Fo[1]/=3,Fo}return Rr}function Oe(he){return he[0]*=A,he[1]*=A,he}function Re(){return De([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function De(he,Se,qe){var He=t.geoCentroid({type:"MultiPoint",coordinates:[he,Se,qe]}),lt=[-He[0],-He[1]],tt=t.geoRotation(lt),pt=xe(Oe(tt(he)),Oe(tt(Se)),Oe(tt(qe)));pt.invert=it(pt);var Ht=t.geoProjection(pt).rotate(lt),nr=Ht.center;return delete Ht.rotate,Ht.center=function(fr){return arguments.length?nr(tt(fr)):tt.invert(nr())},Ht.clipAngle(90)}function ct(he,Se){var qe=G(1-_(Se));return[2/M*he*qe,M*(1-qe)]}ct.invert=function(he,Se){var qe=(qe=Se/M-1)*qe;return[qe>0?he*G(E/qe)/2:0,F(1-qe)]};function ge(){return t.geoProjection(ct).scale(95.6464).center([0,30])}function fe(he){var Se=b(he);function qe(He,lt){return[He,(He?He/_(He):1)*(_(lt)*o(He)-Se*o(lt))]}return qe.invert=Se?function(He,lt){He&&(lt*=_(He)/He);var tt=o(He);return[He,2*a(G(tt*tt+Se*Se-lt*lt)-tt,Se-lt)]}:function(He,lt){return[He,F(He?lt*b(He)/He:lt)]},qe}function pe(){return vt(fe).scale(249.828).clipAngle(90)}var dt=G(3);function It(he,Se){return[dt*he*(2*o(2*Se/3)-1)/M,dt*M*_(Se/3)]}It.invert=function(he,Se){var qe=3*F(Se/(dt*M));return[M*he/(dt*(2*o(2*qe/3)-1)),qe]};function Pt(){return t.geoProjection(It).scale(156.19)}function rr(he){var Se=o(he);function qe(He,lt){return[He*Se,_(lt)/Se]}return qe.invert=function(He,lt){return[He/Se,F(lt*Se)]},qe}function Hr(){return vt(rr).parallel(38.58).scale(195.044)}function Dr(he){var Se=o(he);function qe(He,lt){return[He*Se,(1+Se)*b(lt/2)]}return qe.invert=function(He,lt){return[He/Se,i(lt/(1+Se))*2]},qe}function Mr(){return vt(Dr).scale(124.75)}function Fr(he,Se){var qe=G(8/(3*E));return[qe*he*(1-n(Se)/E),qe*Se]}Fr.invert=function(he,Se){var qe=G(8/(3*E)),He=Se/qe;return[he/(qe*(1-n(He)/E)),He]};function di(){return t.geoProjection(Fr).scale(165.664)}function Di(he,Se){var qe=G(4-3*_(n(Se)));return[2/G(6*E)*he*qe,p(Se)*G(2*E/3)*(2-qe)]}Di.invert=function(he,Se){var qe=2-n(Se)/G(2*E/3);return[he*G(6*E)/(2*qe),p(Se)*F((4-qe*qe)/3)]};function Ii(){return t.geoProjection(Di).scale(165.664)}function Ci(he,Se){var qe=G(E*(4+E));return[2/qe*he*(1+G(1-4*Se*Se/(E*E))),4/qe*Se]}Ci.invert=function(he,Se){var qe=G(E*(4+E))/2;return[he*qe/(1+G(1-Se*Se*(4+E)/(4*E))),Se*qe/2]};function nn(){return t.geoProjection(Ci).scale(180.739)}function ii(he,Se){var qe=(2+T)*_(Se);Se/=2;for(var He=0,lt=1/0;He<10&&n(lt)>v;He++){var tt=o(Se);Se-=lt=(Se+_(Se)*(tt+2)-qe)/(2*tt*(1+tt))}return[2/G(E*(4+E))*he*(1+o(Se)),2*G(E/(4+E))*_(Se)]}ii.invert=function(he,Se){var qe=Se*G((4+E)/E)/2,He=F(qe),lt=o(He);return[he/(2/G(E*(4+E))*(1+lt)),F((He+qe*(lt+2))/(2+T))]};function wi(){return t.geoProjection(ii).scale(180.739)}function Gi(he,Se){return[he*(1+o(Se))/G(2+E),2*Se/G(2+E)]}Gi.invert=function(he,Se){var qe=G(2+E),He=Se*qe/2;return[qe*he/(1+o(He)),He]};function Bt(){return t.geoProjection(Gi).scale(173.044)}function yt(he,Se){for(var qe=(1+T)*_(Se),He=0,lt=1/0;He<10&&n(lt)>v;He++)Se-=lt=(Se+_(Se)-qe)/(1+o(Se));return qe=G(2+E),[he*(1+o(Se))/qe,2*Se/qe]}yt.invert=function(he,Se){var qe=1+T,He=G(qe/2);return[he*2*He/(1+o(Se*=He)),F((Se+_(Se))/qe)]};function Vt(){return t.geoProjection(yt).scale(173.044)}var Wt=3+2*C;function _r(he,Se){var qe=_(he/=2),He=o(he),lt=G(o(Se)),tt=o(Se/=2),pt=_(Se)/(tt+C*He*lt),Ht=G(2/(1+pt*pt)),nr=G((C*tt+(He+qe)*lt)/(C*tt+(He-qe)*lt));return[Wt*(Ht*(nr-1/nr)-2*l(nr)),Wt*(Ht*pt*(nr+1/nr)-2*i(pt))]}_r.invert=function(he,Se){if(!(tt=ke.invert(he/1.2,Se*1.065)))return null;var qe=tt[0],He=tt[1],lt=20,tt;he/=Wt,Se/=Wt;do{var pt=qe/2,Ht=He/2,nr=_(pt),fr=o(pt),Ar=_(Ht),Rr=o(Ht),ri=o(He),si=G(ri),Mi=Ar/(Rr+C*fr*si),hn=Mi*Mi,Zn=G(2/(1+hn)),Yn=C*Rr+(fr+nr)*si,Ua=C*Rr+(fr-nr)*si,Fo=Yn/Ua,vl=G(Fo),Us=vl-1/vl,ml=vl+1/vl,au=Zn*Us-2*l(vl)-he,Sl=Zn*Mi*ml-2*i(Mi)-Se,Yl=Ar&&x*si*nr*hn/Ar,Ol=(C*fr*Rr+si)/(2*(Rr+C*fr*si)*(Rr+C*fr*si)*si),ou=-.5*Mi*Zn*Zn*Zn,Pu=ou*Yl,iu=ou*Ol,tu=(tu=2*Rr+C*si*(fr-nr))*tu*vl,Wu=(C*fr*Rr*si+ri)/tu,Qu=-(C*nr*Ar)/(si*tu),Ju=Us*Pu-2*Wu/vl+Zn*(Wu+Wu/Fo),ju=Us*iu-2*Qu/vl+Zn*(Qu+Qu/Fo),Xu=Mi*ml*Pu-2*Yl/(1+hn)+Zn*ml*Yl+Zn*Mi*(Wu-Wu/Fo),lf=Mi*ml*iu-2*Ol/(1+hn)+Zn*ml*Ol+Zn*Mi*(Qu-Qu/Fo),xf=ju*Xu-lf*Ju;if(!xf)break;var ef=(Sl*ju-au*lf)/xf,tf=(au*Xu-Sl*Ju)/xf;qe-=ef,He=f(-T,c(T,He-tf))}while((n(ef)>v||n(tf)>v)&&--lt>0);return n(n(He)-T)He){var Rr=G(Ar),ri=a(fr,nr),si=qe*d(ri/qe),Mi=ri-si,hn=he*o(Mi),Zn=(he*_(Mi)-Mi*_(hn))/(T-hn),Yn=Bi(Mi,Zn),Ua=(E-he)/an(Yn,hn,E);nr=Rr;var Fo=50,vl;do nr-=vl=(he+an(Yn,hn,nr)*Ua-Rr)/(Yn(nr)*Ua);while(n(vl)>v&&--Fo>0);fr=Mi*_(nr),nrHe){var nr=G(Ht),fr=a(pt,tt),Ar=qe*d(fr/qe),Rr=fr-Ar;tt=nr*o(Rr),pt=nr*_(Rr);for(var ri=tt-T,si=_(tt),Mi=pt/si,hn=ttv||n(Mi)>v)&&--hn>0);return[Rr,ri]},nr}var Ri=Fi(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function xn(){return t.geoProjection(Ri).scale(149.995)}var xi=Fi(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Xr(){return t.geoProjection(xi).scale(153.93)}var ft=Fi(5/6*E,-.62636,-.0344,0,1.3493,-.05524,0,.045);function tr(){return t.geoProjection(ft).scale(130.945)}function pr(he,Se){var qe=he*he,He=Se*Se;return[he*(1-.162388*He)*(.87-952426e-9*qe*qe),Se*(1+He/12)]}pr.invert=function(he,Se){var qe=he,He=Se,lt=50,tt;do{var pt=He*He;He-=tt=(He*(1+pt/12)-Se)/(1+pt/4)}while(n(tt)>v&&--lt>0);lt=50,he/=1-.162388*pt;do{var Ht=(Ht=qe*qe)*Ht;qe-=tt=(qe*(.87-952426e-9*Ht)-he)/(.87-.00476213*Ht)}while(n(tt)>v&&--lt>0);return[qe,He]};function gr(){return t.geoProjection(pr).scale(131.747)}var Zr=Fi(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ai(){return t.geoProjection(Zr).scale(131.087)}function Qi(he){var Se=he(T,0)[0]-he(-T,0)[0];function qe(He,lt){var tt=He>0?-.5:.5,pt=he(He+tt*E,lt);return pt[0]-=tt*Se,pt}return he.invert&&(qe.invert=function(He,lt){var tt=He>0?-.5:.5,pt=he.invert(He+tt*Se,lt),Ht=pt[0]-tt*E;return Ht<-E?Ht+=2*E:Ht>E&&(Ht-=2*E),pt[0]=Ht,pt}),qe}function ni(he,Se){var qe=p(he),He=p(Se),lt=o(Se),tt=o(he)*lt,pt=_(he)*lt,Ht=_(He*Se);he=n(a(pt,Ht)),Se=F(tt),n(he-T)>v&&(he%=T);var nr=Zi(he>E/4?T-he:he,Se);return he>E/4&&(Ht=nr[0],nr[0]=-nr[1],nr[1]=-Ht),nr[0]*=qe,nr[1]*=-He,nr}ni.invert=function(he,Se){n(he)>1&&(he=p(he)*2-he),n(Se)>1&&(Se=p(Se)*2-Se);var qe=p(he),He=p(Se),lt=-qe*he,tt=-He*Se,pt=tt/lt<1,Ht=aa(pt?tt:lt,pt?lt:tt),nr=Ht[0],fr=Ht[1],Ar=o(fr);return pt&&(nr=-T-nr),[qe*(a(_(nr)*Ar,-_(fr))+E),He*F(o(nr)*Ar)]};function Zi(he,Se){if(Se===T)return[0,0];var qe=_(Se),He=qe*qe,lt=He*He,tt=1+lt,pt=1+3*lt,Ht=1-lt,nr=F(1/G(tt)),fr=Ht+He*tt*nr,Ar=(1-qe)/fr,Rr=G(Ar),ri=Ar*tt,si=G(ri),Mi=Rr*Ht,hn,Zn;if(he===0)return[0,-(Mi+He*si)];var Yn=o(Se),Ua=1/Yn,Fo=2*qe*Yn,vl=(-3*He+nr*pt)*Fo,Us=(-fr*Yn-(1-qe)*vl)/(fr*fr),ml=.5*Us/Rr,au=Ht*ml-2*He*Rr*Fo,Sl=He*tt*Us+Ar*pt*Fo,Yl=-Ua*Fo,Ol=-Ua*Sl,ou=-2*Ua*au,Pu=4*he/E,iu;if(he>.222*E||Se.175*E){if(hn=(Mi+He*G(ri*(1+lt)-Mi*Mi))/(1+lt),he>E/4)return[hn,hn];var tu=hn,Wu=.5*hn;hn=.5*(Wu+tu),Zn=50;do{var Qu=G(ri-hn*hn),Ju=hn*(ou+Yl*Qu)+Ol*F(hn/si)-Pu;if(!Ju)break;Ju<0?Wu=hn:tu=hn,hn=.5*(Wu+tu)}while(n(tu-Wu)>v&&--Zn>0)}else{hn=v,Zn=25;do{var ju=hn*hn,Xu=G(ri-ju),lf=ou+Yl*Xu,xf=hn*lf+Ol*F(hn/si)-Pu,ef=lf+(Ol-Yl*ju)/Xu;hn-=iu=Xu?xf/ef:0}while(n(iu)>v&&--Zn>0)}return[hn,-Mi-He*G(ri-hn*hn)]}function aa(he,Se){for(var qe=0,He=1,lt=.5,tt=50;;){var pt=lt*lt,Ht=G(lt),nr=F(1/G(1+pt)),fr=1-pt+lt*(1+pt)*nr,Ar=(1-Ht)/fr,Rr=G(Ar),ri=Ar*(1+pt),si=Rr*(1-pt),Mi=ri-he*he,hn=G(Mi),Zn=Se+si+lt*hn;if(n(He-qe)0?qe=lt:He=lt,lt=.5*(qe+He)}if(!tt)return null;var Yn=F(Ht),Ua=o(Yn),Fo=1/Ua,vl=2*Ht*Ua,Us=(-3*lt+nr*(1+3*pt))*vl,ml=(-fr*Ua-(1-Ht)*Us)/(fr*fr),au=.5*ml/Rr,Sl=(1-pt)*au-2*lt*Rr*vl,Yl=-2*Fo*Sl,Ol=-Fo*vl,ou=-Fo*(lt*(1+pt)*ml+Ar*(1+3*pt)*vl);return[E/4*(he*(Yl+Ol*hn)+ou*F(he/G(ri))),Yn]}function Mn(){return t.geoProjection(Qi(ni)).scale(239.75)}function Un(he,Se,qe){var He,lt,tt;return he?(He=Ga(he,qe),Se?(lt=Ga(Se,1-qe),tt=lt[1]*lt[1]+qe*He[0]*He[0]*lt[0]*lt[0],[[He[0]*lt[2]/tt,He[1]*He[2]*lt[0]*lt[1]/tt],[He[1]*lt[1]/tt,-He[0]*He[2]*lt[0]*lt[2]/tt],[He[2]*lt[1]*lt[2]/tt,-qe*He[0]*He[1]*lt[0]/tt]]):[[He[0],0],[He[1],0],[He[2],0]]):(lt=Ga(Se,1-qe),[[0,lt[0]/lt[1]],[1/lt[1],0],[lt[2]/lt[1],0]])}function Ga(he,Se){var qe,He,lt,tt,pt;if(Se=1-v)return qe=(1-Se)/4,He=N(he),tt=j(he),lt=1/He,pt=He*H(he),[tt+qe*(pt-he)/(He*He),lt-qe*tt*lt*(pt-he),lt+qe*tt*lt*(pt+he),2*i(s(he))-T+qe*(pt-he)/He];var Ht=[1,0,0,0,0,0,0,0,0],nr=[G(Se),0,0,0,0,0,0,0,0],fr=0;for(He=G(1-Se),pt=1;n(nr[fr]/Ht[fr])>v&&fr<8;)qe=Ht[fr++],nr[fr]=(qe-He)/2,Ht[fr]=(qe+He)/2,He=G(qe*He),pt*=2;lt=pt*Ht[fr]*he;do tt=nr[fr]*_(He=lt)/Ht[fr],lt=(F(tt)+lt)/2;while(--fr);return[_(lt),tt=o(lt),tt/o(lt-He),lt]}function ma(he,Se,qe){var He=n(he),lt=n(Se),tt=H(lt);if(He){var pt=1/_(He),Ht=1/(b(He)*b(He)),nr=-(Ht+qe*(tt*tt*pt*pt)-1+qe),fr=(qe-1)*Ht,Ar=(-nr+G(nr*nr-4*fr))/2;return[oa(i(1/G(Ar)),qe)*p(he),oa(i(G((Ar/Ht-1)/qe)),1-qe)*p(Se)]}return[0,oa(i(tt),1-qe)*p(Se)]}function oa(he,Se){if(!Se)return he;if(Se===1)return l(b(he/2+L));for(var qe=1,He=G(1-Se),lt=G(Se),tt=0;n(lt)>v;tt++){if(he%E){var pt=i(He*b(he)/qe);pt<0&&(pt+=E),he+=pt+~~(he/E)*E}else he+=he;lt=(qe+He)/2,He=G(qe*He),lt=((qe=lt)-He)/2}return he/(h(2,tt)*qe)}function ka(he,Se){var qe=(C-1)/(C+1),He=G(1-qe*qe),lt=oa(T,He*He),tt=-1,pt=l(b(E/4+n(Se)/2)),Ht=s(tt*pt)/G(qe),nr=so(Ht*o(tt*he),Ht*_(tt*he)),fr=ma(nr[0],nr[1],He*He);return[-fr[1],(Se>=0?1:-1)*(.5*lt-fr[0])]}function so(he,Se){var qe=he*he,He=Se+1,lt=1-qe-Se*Se;return[.5*((he>=0?T:-T)-a(lt,2*he)),-.25*l(lt*lt+4*qe)+.5*l(He*He+qe)]}function Kr(he,Se){var qe=Se[0]*Se[0]+Se[1]*Se[1];return[(he[0]*Se[0]+he[1]*Se[1])/qe,(he[1]*Se[0]-he[0]*Se[1])/qe]}ka.invert=function(he,Se){var qe=(C-1)/(C+1),He=G(1-qe*qe),lt=oa(T,He*He),tt=-1,pt=Un(.5*lt-Se,-he,He*He),Ht=Kr(pt[0],pt[1]),nr=a(Ht[1],Ht[0])/tt;return[nr,2*i(s(.5/tt*l(qe*Ht[0]*Ht[0]+qe*Ht[1]*Ht[1])))-T]};function Ia(){return t.geoProjection(Qi(ka)).scale(151.496)}function Yo(he){var Se=_(he),qe=o(he),He=fa(he);He.invert=fa(-he);function lt(tt,pt){var Ht=He(tt,pt);tt=Ht[0],pt=Ht[1];var nr=_(pt),fr=o(pt),Ar=o(tt),Rr=U(Se*nr+qe*fr*Ar),ri=_(Rr),si=n(ri)>v?Rr/ri:1;return[si*qe*_(tt),(n(tt)>T?si:-si)*(Se*fr-qe*nr*Ar)]}return lt.invert=function(tt,pt){var Ht=G(tt*tt+pt*pt),nr=-_(Ht),fr=o(Ht),Ar=Ht*fr,Rr=-pt*nr,ri=Ht*Se,si=G(Ar*Ar+Rr*Rr-ri*ri),Mi=a(Ar*ri+Rr*si,Rr*ri-Ar*si),hn=(Ht>T?-1:1)*a(tt*nr,Ht*o(Mi)*fr+pt*_(Mi)*nr);return He.invert(hn,Mi)},lt}function fa(he){var Se=_(he),qe=o(he);return function(He,lt){var tt=o(lt),pt=o(He)*tt,Ht=_(He)*tt,nr=_(lt);return[a(Ht,pt*qe-nr*Se),F(nr*qe+pt*Se)]}}function kn(){var he=0,Se=t.geoProjectionMutator(Yo),qe=Se(he),He=qe.rotate,lt=qe.stream,tt=t.geoCircle();return qe.parallel=function(pt){if(!arguments.length)return he*P;var Ht=qe.rotate();return Se(he=pt*A).rotate(Ht)},qe.rotate=function(pt){return arguments.length?(He.call(qe,[pt[0],pt[1]-he*P]),tt.center([-pt[0],-pt[1]]),qe):(pt=He.call(qe),pt[1]+=he*P,pt)},qe.stream=function(pt){return pt=lt(pt),pt.sphere=function(){pt.polygonStart();var Ht=.01,nr=tt.radius(90-Ht)().coordinates[0],fr=nr.length-1,Ar=-1,Rr;for(pt.lineStart();++Ar=0;)pt.point((Rr=nr[Ar])[0],Rr[1]);pt.lineEnd(),pt.polygonEnd()},pt},qe.scale(79.4187).parallel(45).clipAngle(180-.001)}var Ta=3,ys=F(1-1/Ta)*P,uo=rr(0);function ls(he){var Se=ys*A,qe=ct(E,Se)[0]-ct(-E,Se)[0],He=uo(0,Se)[1],lt=ct(0,Se)[1],tt=M-lt,pt=m/he,Ht=4/m,nr=He+tt*tt*4/m;function fr(Ar,Rr){var ri,si=n(Rr);if(si>Se){var Mi=c(he-1,f(0,u((Ar+E)/pt)));Ar+=E*(he-1)/he-Mi*pt,ri=ct(Ar,si),ri[0]=ri[0]*m/qe-m*(he-1)/(2*he)+Mi*m/he,ri[1]=He+(ri[1]-lt)*4*tt/m,Rr<0&&(ri[1]=-ri[1])}else ri=uo(Ar,Rr);return ri[0]*=Ht,ri[1]/=nr,ri}return fr.invert=function(Ar,Rr){Ar/=Ht,Rr*=nr;var ri=n(Rr);if(ri>He){var si=c(he-1,f(0,u((Ar+E)/pt)));Ar=(Ar+E*(he-1)/he-si*pt)*qe/m;var Mi=ct.invert(Ar,.25*(ri-He)*m/tt+lt);return Mi[0]-=E*(he-1)/he-si*pt,Rr<0&&(Mi[1]=-Mi[1]),Mi}return uo.invert(Ar,Rr)},fr}function $a(he,Se){return[he,Se&1?90-v:ys]}function fo(he,Se){return[he,Se&1?-90+v:-ys]}function mn(he){return[he[0]*(1-v),he[1]]}function ra(he){var Se=[].concat(r.range(-180,180+he/2,he).map($a),r.range(180,-180-he/2,-he).map(fo));return{type:"Polygon",coordinates:[he===180?Se.map(mn):Se]}}function wa(){var he=4,Se=t.geoProjectionMutator(ls),qe=Se(he),He=qe.stream;return qe.lobes=function(lt){return arguments.length?Se(he=+lt):he},qe.stream=function(lt){var tt=qe.rotate(),pt=He(lt),Ht=(qe.rotate([0,0]),He(lt));return qe.rotate(tt),pt.sphere=function(){t.geoStream(ra(180/he),Ht)},pt},qe.scale(239.75)}function ws(he){var Se=1+he,qe=_(1/Se),He=F(qe),lt=2*G(E/(tt=E+4*He*Se)),tt,pt=.5*lt*(Se+G(he*(2+he))),Ht=he*he,nr=Se*Se;function fr(Ar,Rr){var ri=1-_(Rr),si,Mi;if(ri&&ri<2){var hn=T-Rr,Zn=25,Yn;do{var Ua=_(hn),Fo=o(hn),vl=He+a(Ua,Se-Fo),Us=1+nr-2*Se*Fo;hn-=Yn=(hn-Ht*He-Se*Ua+Us*vl-.5*ri*tt)/(2*Se*Ua*vl)}while(n(Yn)>k&&--Zn>0);si=lt*G(Us),Mi=Ar*vl/E}else si=lt*(he+ri),Mi=Ar*He/E;return[si*_(Mi),pt-si*o(Mi)]}return fr.invert=function(Ar,Rr){var ri=Ar*Ar+(Rr-=pt)*Rr,si=(1+nr-ri/(lt*lt))/(2*Se),Mi=U(si),hn=_(Mi),Zn=He+a(hn,Se-si);return[F(Ar/G(ri))*E/Zn,F(1-2*(Mi-Ht*He-Se*hn+(1+nr-2*Se*si)*Zn)/tt)]},fr}function Co(){var he=1,Se=t.geoProjectionMutator(ws),qe=Se(he);return qe.ratio=function(He){return arguments.length?Se(he=+He):he},qe.scale(167.774).center([0,18.67])}var Po=.7109889596207567,ji=.0528035274542;function gn(he,Se){return Se>-Po?(he=Rt(he,Se),he[1]+=ji,he):st(he,Se)}gn.invert=function(he,Se){return Se>-Po?Rt.invert(he,Se-ji):st.invert(he,Se)};function Ps(){return t.geoProjection(gn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ha(he,Se){return n(Se)>Po?(he=Rt(he,Se),he[1]-=Se>0?ji:-ji,he):st(he,Se)}Ha.invert=function(he,Se){return n(Se)>Po?Rt.invert(he,Se+(Se>0?ji:-ji)):st.invert(he,Se)};function Sn(){return t.geoProjection(Ha).scale(152.63)}function ao(he,Se,qe,He){var lt=G(4*E/(2*qe+(1+he-Se/2)*_(2*qe)+(he+Se)/2*_(4*qe)+Se/2*_(6*qe))),tt=G(He*_(qe)*G((1+he*o(2*qe)+Se*o(4*qe))/(1+he+Se))),pt=qe*nr(1);function Ht(Rr){return G(1+he*o(2*Rr)+Se*o(4*Rr))}function nr(Rr){var ri=Rr*qe;return(2*ri+(1+he-Se/2)*_(2*ri)+(he+Se)/2*_(4*ri)+Se/2*_(6*ri))/qe}function fr(Rr){return Ht(Rr)*_(Rr)}var Ar=function(Rr,ri){var si=qe*Nt(nr,pt*_(ri)/qe,ri/E);isNaN(si)&&(si=qe*p(ri));var Mi=lt*Ht(si);return[Mi*tt*Rr/E*o(si),Mi/tt*_(si)]};return Ar.invert=function(Rr,ri){var si=Nt(fr,ri*tt/lt);return[Rr*E/(o(si)*lt*tt*Ht(si)),F(qe*nr(si/qe)/pt)]},qe===0&&(lt=G(He/E),Ar=function(Rr,ri){return[Rr*lt,_(ri)/lt]},Ar.invert=function(Rr,ri){return[Rr/lt,F(ri*lt)]}),Ar}function Ba(){var he=1,Se=0,qe=45*A,He=2,lt=t.geoProjectionMutator(ao),tt=lt(he,Se,qe,He);return tt.a=function(pt){return arguments.length?lt(he=+pt,Se,qe,He):he},tt.b=function(pt){return arguments.length?lt(he,Se=+pt,qe,He):Se},tt.psiMax=function(pt){return arguments.length?lt(he,Se,qe=+pt*A,He):qe*P},tt.ratio=function(pt){return arguments.length?lt(he,Se,qe,He=+pt):He},tt.scale(180.739)}function Ko(he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar){if(Ar.nanEncountered)return NaN;var Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl;if(Rr=qe-Se,ri=he(Se+Rr*.25),si=he(qe-Rr*.25),isNaN(ri)){Ar.nanEncountered=!0;return}if(isNaN(si)){Ar.nanEncountered=!0;return}return Mi=Rr*(He+4*ri+lt)/12,hn=Rr*(lt+4*si+tt)/12,Zn=Mi+hn,vl=(Zn-pt)/15,fr>nr?(Ar.maxDepthCount++,Zn+vl):Math.abs(vl)>1;do nr[Zn]>si?hn=Zn:Mi=Zn,Zn=Mi+hn>>1;while(Zn>Mi);var Yn=nr[Zn+1]-nr[Zn];return Yn&&(Yn=(si-nr[Zn+1])/Yn),(Zn+1+Yn)/pt}var Rr=2*Ar(1)/E*tt/qe,ri=function(si,Mi){var hn=Ar(n(_(Mi))),Zn=He(hn)*si;return hn/=Rr,[Zn,Mi>=0?hn:-hn]};return ri.invert=function(si,Mi){var hn;return Mi*=Rr,n(Mi)<1&&(hn=p(Mi)*F(lt(n(Mi))*tt)),[si/He(n(Mi)),hn]},ri}function Sa(){var he=0,Se=2.5,qe=1.183136,He=t.geoProjectionMutator(Wi),lt=He(he,Se,qe);return lt.alpha=function(tt){return arguments.length?He(he=+tt,Se,qe):he},lt.k=function(tt){return arguments.length?He(he,Se=+tt,qe):Se},lt.gamma=function(tt){return arguments.length?He(he,Se,qe=+tt):qe},lt.scale(152.63)}function Qa(he,Se){return n(he[0]-Se[0])=0;--nr)qe=he[1][nr],He=qe[0][0],lt=qe[0][1],tt=qe[1][1],pt=qe[2][0],Ht=qe[2][1],Se.push(vn([[pt-v,Ht-v],[pt-v,tt+v],[He+v,tt+v],[He+v,lt-v]],30));return{type:"Polygon",coordinates:[r.merge(Se)]}}function la(he,Se,qe){var He,lt;function tt(nr,fr){for(var Ar=fr<0?-1:1,Rr=Se[+(fr<0)],ri=0,si=Rr.length-1;riRr[ri][2][0];++ri);var Mi=he(nr-Rr[ri][1][0],fr);return Mi[0]+=he(Rr[ri][1][0],Ar*fr>Ar*Rr[ri][0][1]?Rr[ri][0][1]:fr)[0],Mi}qe?tt.invert=qe(tt):he.invert&&(tt.invert=function(nr,fr){for(var Ar=lt[+(fr<0)],Rr=Se[+(fr<0)],ri=0,si=Ar.length;riMi&&(hn=si,si=Mi,Mi=hn),[[Rr,si],[ri,Mi]]})}),pt):Se.map(function(fr){return fr.map(function(Ar){return[[Ar[0][0]*P,Ar[0][1]*P],[Ar[1][0]*P,Ar[1][1]*P],[Ar[2][0]*P,Ar[2][1]*P]]})})},Se!=null&&pt.lobes(Se),pt}var vo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function As(){return la(at,vo).scale(160.857)}var ps=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function co(){return la(Ha,ps).scale(152.63)}var mo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function No(){return la(Rt,mo).scale(169.529)}var jn=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Go(){return la(Rt,jn).scale(169.529).rotate([20,0])}var Ys=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function qs(){return la(gn,Ys,it).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ns=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Oa(){return la(st,Ns).scale(152.63).rotate([-20,0])}function ha(he,Se){return[3/m*he*G(E*E/3-Se*Se),Se]}ha.invert=function(he,Se){return[m/3*he/G(E*E/3-Se*Se),Se]};function Vs(){return t.geoProjection(ha).scale(158.837)}function Ya(he){function Se(qe,He){if(n(n(He)-T)2)return null;qe/=2,He/=2;var tt=qe*qe,pt=He*He,Ht=2*He/(1+tt+pt);return Ht=h((1+Ht)/(1-Ht),1/he),[a(2*qe,1-tt-pt)/he,F((Ht-1)/(Ht+1))]},Se}function _n(){var he=.5,Se=t.geoProjectionMutator(Ya),qe=Se(he);return qe.spacing=function(He){return arguments.length?Se(he=+He):he},qe.scale(124.75)}var Vn=E/C;function wo(he,Se){return[he*(1+G(o(Se)))/2,Se/(o(Se/2)*o(he/6))]}wo.invert=function(he,Se){var qe=n(he),He=n(Se),lt=v,tt=T;Hev||n(Zn)>v)&&--lt>0);return lt&&[qe,He]};function un(){return t.geoProjection(Xn).scale(139.98)}function $n(he,Se){return[_(he)/o(Se),b(Se)*o(he)]}$n.invert=function(he,Se){var qe=he*he,He=Se*Se,lt=He+1,tt=qe+lt,pt=he?x*G((tt-G(tt*tt-4*qe))/qe):1/G(lt);return[F(he*pt),p(Se)*U(pt)]};function Ka(){return t.geoProjection($n).scale(144.049).clipAngle(90-.001)}function qn(he){var Se=o(he),qe=b(L+he/2);function He(lt,tt){var pt=tt-he,Ht=n(pt)=0;)Ar=he[fr],Rr=Ar[0]+Ht*(si=Rr)-nr*ri,ri=Ar[1]+Ht*ri+nr*si;return Rr=Ht*(si=Rr)-nr*ri,ri=Ht*ri+nr*si,[Rr,ri]}return qe.invert=function(He,lt){var tt=20,pt=He,Ht=lt;do{for(var nr=Se,fr=he[nr],Ar=fr[0],Rr=fr[1],ri=0,si=0,Mi;--nr>=0;)fr=he[nr],ri=Ar+pt*(Mi=ri)-Ht*si,si=Rr+pt*si+Ht*Mi,Ar=fr[0]+pt*(Mi=Ar)-Ht*Rr,Rr=fr[1]+pt*Rr+Ht*Mi;ri=Ar+pt*(Mi=ri)-Ht*si,si=Rr+pt*si+Ht*Mi,Ar=pt*(Mi=Ar)-Ht*Rr-He,Rr=pt*Rr+Ht*Mi-lt;var hn=ri*ri+si*si,Zn,Yn;pt-=Zn=(Ar*ri+Rr*si)/hn,Ht-=Yn=(Rr*ri-Ar*si)/hn}while(n(Zn)+n(Yn)>v*v&&--tt>0);if(tt){var Ua=G(pt*pt+Ht*Ht),Fo=2*i(Ua*.5),vl=_(Fo);return[a(pt*vl,Ua*o(Fo)),Ua?F(Ht*vl/Ua):0]}},qe}var sa=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],es=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Na=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],tn=[[.9245,0],[0,0],[.01943,0]],Pa=[[.721316,0],[0,0],[-.00881625,-.00617325]];function to(){return _a(sa,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function yo(){return _a(es,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Jo(){return _a(Na,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ao(){return _a(tn,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Dn(){return _a(Pa,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function _a(he,Se){var qe=t.geoProjection(eo(he)).rotate(Se).clipAngle(90),He=t.geoRotation(Se),lt=qe.center;return delete qe.rotate,qe.center=function(tt){return arguments.length?lt(He(tt)):He.invert(lt())},qe}var Ws=G(6),Ca=G(7);function Es(he,Se){var qe=F(7*_(Se)/(3*Ws));return[Ws*he*(2*o(2*qe/3)-1)/Ca,9*_(qe/3)/Ca]}Es.invert=function(he,Se){var qe=3*F(Se*Ca/9);return[he*Ca/(Ws*(2*o(2*qe/3)-1)),F(_(qe)*3*Ws/7)]};function Ts(){return t.geoProjection(Es).scale(164.859)}function Ho(he,Se){for(var qe=(1+x)*_(Se),He=Se,lt=0,tt;lt<25&&(He-=tt=(_(He/2)+_(He)-qe)/(.5*o(He/2)+o(He)),!(n(tt)k&&--He>0);return tt=qe*qe,pt=tt*tt,Ht=tt*pt,[he/(.84719-.13063*tt+Ht*Ht*(-.04515+.05494*tt-.02326*pt+.00331*Ht)),qe]};function qa(){return t.geoProjection(Wo).scale(175.295)}function ln(he,Se){return[he*(1+o(Se))/2,2*(Se-b(Se/2))]}ln.invert=function(he,Se){for(var qe=Se/2,He=0,lt=1/0;He<10&&n(lt)>v;++He){var tt=o(Se/2);Se-=lt=(Se-b(Se/2)-qe)/(1-.5/(tt*tt))}return[2*he/(1+o(Se)),Se]};function Bo(){return t.geoProjection(ln).scale(152.63)}var ko=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function oo(){return la(Ke(1/0),ko).rotate([20,0]).scale(152.63)}function za(he,Se){var qe=_(Se),He=o(Se),lt=p(he);if(he===0||n(Se)===T)return[0,Se];if(Se===0)return[he,0];if(n(he)===T)return[he*He,T*qe];var tt=E/(2*he)-2*he/E,pt=2*Se/E,Ht=(1-pt*pt)/(qe-pt),nr=tt*tt,fr=Ht*Ht,Ar=1+nr/fr,Rr=1+fr/nr,ri=(tt*qe/Ht-tt/2)/Ar,si=(fr*qe/nr+Ht/2)/Rr,Mi=ri*ri+He*He/Ar,hn=si*si-(fr*qe*qe/nr+Ht*qe-1)/Rr;return[T*(ri+G(Mi)*lt),T*(si+G(hn<0?0:hn)*p(-Se*tt)*lt)]}za.invert=function(he,Se){he/=T,Se/=T;var qe=he*he,He=Se*Se,lt=qe+He,tt=E*E;return[he?(lt-1+G((1-lt)*(1-lt)+4*qe))/(2*he)*T:0,Nt(function(pt){return lt*(E*_(pt)-2*pt)*E+4*pt*pt*(Se-_(pt))+2*E*pt-tt*Se},0)]};function ea(){return t.geoProjection(za).scale(127.267)}var rs=1.0148,$s=.23185,us=-.14499,Ds=.02406,fl=rs,as=5*$s,Ma=7*us,Qs=9*Ds,ho=1.790857183;function gs(he,Se){var qe=Se*Se;return[he,Se*(rs+qe*qe*($s+qe*(us+Ds*qe)))]}gs.invert=function(he,Se){Se>ho?Se=ho:Se<-ho&&(Se=-ho);var qe=Se,He;do{var lt=qe*qe;qe-=He=(qe*(rs+lt*lt*($s+lt*(us+Ds*lt)))-Se)/(fl+lt*lt*(as+lt*(Ma+Qs*lt)))}while(n(He)>v);return[he,qe]};function Vo(){return t.geoProjection(gs).scale(139.319)}function Do(he,Se){if(n(Se)v&&--lt>0);return pt=b(He),[(n(Se)=0;)if(He=Se[Ht],qe[0]===He[0]&&qe[1]===He[1]){if(tt)return[tt,qe];tt=qe}}}function Aa(he){for(var Se=he.length,qe=[],He=he[Se-1],lt=0;lt0?[-He[0],0]:[180-He[0],180])};var Se=Ss.map(function(qe){return{face:qe,project:he(qe)}});return[-1,0,0,1,0,1,4,5].forEach(function(qe,He){var lt=Se[qe];lt&&(lt.children||(lt.children=[])).push(Se[He])}),Gs(Se[0],function(qe,He){return Se[qe<-E/2?He<0?6:4:qe<0?He<0?2:0:qeHe^si>He&&qe<(ri-fr)*(He-Ar)/(si-Ar)+fr&&(lt=!lt)}return lt}function Hs(he,Se){var qe=Se.stream,He;if(!qe)throw new Error("invalid projection");switch(he&&he.type){case"Feature":He=tl;break;case"FeatureCollection":He=Ro;break;default:He=hl;break}return He(he,qe)}function Ro(he,Se){return{type:"FeatureCollection",features:he.features.map(function(qe){return tl(qe,Se)})}}function tl(he,Se){return{type:"Feature",id:he.id,properties:he.properties,geometry:hl(he.geometry,Se)}}function Fs(he,Se){return{type:"GeometryCollection",geometries:he.geometries.map(function(qe){return hl(qe,Se)})}}function hl(he,Se){if(!he)return null;if(he.type==="GeometryCollection")return Fs(he,Se);var qe;switch(he.type){case"Point":qe=jo;break;case"MultiPoint":qe=jo;break;case"LineString":qe=Rs;break;case"MultiLineString":qe=Rs;break;case"Polygon":qe=Is;break;case"MultiPolygon":qe=Is;break;case"Sphere":qe=Is;break;default:return null}return t.geoStream(he,Se(qe)),qe.result()}var Fa=[],Ms=[],jo={point:function(he,Se){Fa.push([he,Se])},result:function(){var he=Fa.length?Fa.length<2?{type:"Point",coordinates:Fa[0]}:{type:"MultiPoint",coordinates:Fa}:null;return Fa=[],he}},Rs={lineStart:fs,point:function(he,Se){Fa.push([he,Se])},lineEnd:function(){Fa.length&&(Ms.push(Fa),Fa=[])},result:function(){var he=Ms.length?Ms.length<2?{type:"LineString",coordinates:Ms[0]}:{type:"MultiLineString",coordinates:Ms}:null;return Ms=[],he}},Is={polygonStart:fs,lineStart:fs,point:function(he,Se){Fa.push([he,Se])},lineEnd:function(){var he=Fa.length;if(he){do Fa.push(Fa[0].slice());while(++he<4);Ms.push(Fa),Fa=[]}},polygonEnd:fs,result:function(){if(!Ms.length)return null;var he=[],Se=[];return Ms.forEach(function(qe){cl(qe)?he.push([qe]):Se.push(qe)}),Se.forEach(function(qe){var He=qe[0];he.some(function(lt){if(el(lt[0],He))return lt.push(qe),!0})||he.push([qe])}),Ms=[],he.length?he.length>1?{type:"MultiPolygon",coordinates:he}:{type:"Polygon",coordinates:he[0]}:null}};function Bs(he){var Se=he(T,0)[0]-he(-T,0)[0];function qe(He,lt){var tt=n(He)0?He-E:He+E,lt),Ht=(pt[0]-pt[1])*x,nr=(pt[0]+pt[1])*x;if(tt)return[Ht,nr];var fr=Se*x,Ar=Ht>0^nr>0?-1:1;return[Ar*Ht-p(nr)*fr,Ar*nr-p(Ht)*fr]}return he.invert&&(qe.invert=function(He,lt){var tt=(He+lt)*x,pt=(lt-He)*x,Ht=n(tt)<.5*Se&&n(pt)<.5*Se;if(!Ht){var nr=Se*x,fr=tt>0^pt>0?-1:1,Ar=-fr*He+(pt>0?1:-1)*nr,Rr=-fr*lt+(tt>0?1:-1)*nr;tt=(-Ar-Rr)*x,pt=(Ar-Rr)*x}var ri=he.invert(tt,pt);return Ht||(ri[0]+=tt>0?E:-E),ri}),t.geoProjection(qe).rotate([-90,-90,45]).clipAngle(180-.001)}function At(){return Bs(ni).scale(176.423)}function Gt(){return Bs(ka).scale(111.48)}function wr(he,Se){if(!(0<=(Se=+Se)&&Se<=20))throw new Error("invalid digits");function qe(fr){var Ar=fr.length,Rr=2,ri=new Array(Ar);for(ri[0]=+fr[0].toFixed(Se),ri[1]=+fr[1].toFixed(Se);Rr2||si[0]!=Ar[0]||si[1]!=Ar[1])&&(Rr.push(si),Ar=si)}return Rr.length===1&&fr.length>1&&Rr.push(qe(fr[fr.length-1])),Rr}function tt(fr){return fr.map(lt)}function pt(fr){if(fr==null)return fr;var Ar;switch(fr.type){case"GeometryCollection":Ar={type:"GeometryCollection",geometries:fr.geometries.map(pt)};break;case"Point":Ar={type:"Point",coordinates:qe(fr.coordinates)};break;case"MultiPoint":Ar={type:fr.type,coordinates:He(fr.coordinates)};break;case"LineString":Ar={type:fr.type,coordinates:lt(fr.coordinates)};break;case"MultiLineString":case"Polygon":Ar={type:fr.type,coordinates:tt(fr.coordinates)};break;case"MultiPolygon":Ar={type:"MultiPolygon",coordinates:fr.coordinates.map(tt)};break;default:return fr}return fr.bbox!=null&&(Ar.bbox=fr.bbox),Ar}function Ht(fr){var Ar={type:"Feature",properties:fr.properties,geometry:pt(fr.geometry)};return fr.id!=null&&(Ar.id=fr.id),fr.bbox!=null&&(Ar.bbox=fr.bbox),Ar}if(he!=null)switch(he.type){case"Feature":return Ht(he);case"FeatureCollection":{var nr={type:"FeatureCollection",features:he.features.map(Ht)};return he.bbox!=null&&(nr.bbox=he.bbox),nr}default:return pt(he)}return he}function mr(he){var Se=_(he);function qe(He,lt){var tt=Se?b(He*Se/2)/Se:He/2;if(!lt)return[2*tt,-he];var pt=2*i(tt*_(lt)),Ht=1/b(lt);return[_(pt)*Ht,lt+(1-o(pt))*Ht-he]}return qe.invert=function(He,lt){if(n(lt+=he)v&&--Ht>0);var ri=He*(fr=b(pt)),si=b(n(lt)0?T:-T)*(nr+lt*(Ar-pt)/2+lt*lt*(Ar-2*nr+pt)/2)]}Ti.invert=function(he,Se){var qe=Se/T,He=qe*90,lt=c(18,n(He/5)),tt=f(0,u(lt));do{var pt=gi[tt][1],Ht=gi[tt+1][1],nr=gi[c(19,tt+2)][1],fr=nr-pt,Ar=nr-2*Ht+pt,Rr=2*(n(qe)-Ht)/fr,ri=Ar/fr,si=Rr*(1-ri*Rr*(1-2*ri*Rr));if(si>=0||tt===1){He=(Se>=0?5:-5)*(si+lt);var Mi=50,hn;do lt=c(18,n(He)/5),tt=u(lt),si=lt-tt,pt=gi[tt][1],Ht=gi[tt+1][1],nr=gi[c(19,tt+2)][1],He-=(hn=(Se>=0?T:-T)*(Ht+si*(nr-pt)/2+si*si*(nr-2*Ht+pt)/2)-Se)*P;while(n(hn)>k&&--Mi>0);break}}while(--tt>=0);var Zn=gi[tt][0],Yn=gi[tt+1][0],Ua=gi[c(19,tt+2)][0];return[he/(Yn+si*(Ua-Zn)/2+si*si*(Ua-2*Yn+Zn)/2),He*A]};function ki(){return t.geoProjection(Ti).scale(152.63)}function Ji(he){function Se(qe,He){var lt=o(He),tt=(he-1)/(he-lt*o(qe));return[tt*lt*_(qe),tt*_(He)]}return Se.invert=function(qe,He){var lt=qe*qe+He*He,tt=G(lt),pt=(he-G(1-lt*(he+1)/(he-1)))/((he-1)/tt+tt/(he-1));return[a(qe*pt,tt*G(1-pt*pt)),tt?F(He*pt/tt):0]},Se}function Fn(he,Se){var qe=Ji(he);if(!Se)return qe;var He=o(Se),lt=_(Se);function tt(pt,Ht){var nr=qe(pt,Ht),fr=nr[1],Ar=fr*lt/(he-1)+He;return[nr[0]*He/Ar,fr/Ar]}return tt.invert=function(pt,Ht){var nr=(he-1)/(he-1-Ht*lt);return qe.invert(nr*pt,nr*Ht*He)},tt}function Pi(){var he=2,Se=0,qe=t.geoProjectionMutator(Fn),He=qe(he,Se);return He.distance=function(lt){return arguments.length?qe(he=+lt,Se):he},He.tilt=function(lt){return arguments.length?qe(he,Se=lt*A):Se*P},He.scale(432.147).clipAngle(U(1/he)*P-1e-6)}var hi=1e-4,Li=1e4,Si=-180,Gn=Si+hi,ta=180,ya=ta-hi,ia=-90,pa=ia+hi,va=90,zn=va-hi;function is(he){return he.length>0}function Cs(he){return Math.floor(he*Li)/Li}function Ks(he){return he===ia||he===va?[0,he]:[Si,Cs(he)]}function dl(he){var Se=he[0],qe=he[1],He=!1;return Se<=Gn?(Se=Si,He=!0):Se>=ya&&(Se=ta,He=!0),qe<=pa?(qe=ia,He=!0):qe>=zn&&(qe=va,He=!0),He?[Se,qe]:he}function xl(he){return he.map(dl)}function Bl(he,Se,qe){for(var He=0,lt=he.length;He=ya||Ar<=pa||Ar>=zn){tt[pt]=dl(nr);for(var Rr=pt+1;RrGn&&sipa&&Mi=Ht)break;qe.push({index:-1,polygon:Se,ring:tt=tt.slice(Rr-1)}),tt[0]=Ks(tt[0][1]),pt=-1,Ht=tt.length}}}}function bl(he){var Se,qe=he.length,He={},lt={},tt,pt,Ht,nr,fr;for(Se=0;Se0?E-Ht:Ht)*P],fr=t.geoProjection(he(pt)).rotate(nr),Ar=t.geoRotation(nr),Rr=fr.center;return delete fr.rotate,fr.center=function(ri){return arguments.length?Rr(Ar(ri)):Ar.invert(Rr())},fr.clipAngle(90)}function cs(he){var Se=o(he);function qe(He,lt){var tt=t.geoGnomonicRaw(He,lt);return tt[0]*=Se,tt}return qe.invert=function(He,lt){return t.geoGnomonicRaw.invert(He/Se,lt)},qe}function sl(){return ll([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ll(he,Se){return Js(cs,he,Se)}function il(he){if(!(he*=2))return t.geoAzimuthalEquidistantRaw;var Se=-he/2,qe=-Se,He=he*he,lt=b(qe),tt=.5/_(qe);function pt(Ht,nr){var fr=U(o(nr)*o(Ht-Se)),Ar=U(o(nr)*o(Ht-qe)),Rr=nr<0?-1:1;return fr*=fr,Ar*=Ar,[(fr-Ar)/(2*he),Rr*G(4*He*Ar-(He-fr+Ar)*(He-fr+Ar))/(2*he)]}return pt.invert=function(Ht,nr){var fr=nr*nr,Ar=o(G(fr+(ri=Ht+Se)*ri)),Rr=o(G(fr+(ri=Ht+qe)*ri)),ri,si;return[a(si=Ar-Rr,ri=(Ar+Rr)*lt),(nr<0?-1:1)*U(G(ri*ri+si*si)*tt)]},pt}function zl(){return Ml([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ml(he,Se){return Js(il,he,Se)}function Rl(he,Se){if(n(Se)v&&--Ht>0);return[p(he)*(G(lt*lt+4)+lt)*E/4,T*pt]};function Nl(){return t.geoProjection(Vl).scale(127.16)}function le(he,Se,qe,He,lt){function tt(pt,Ht){var nr=qe*_(He*Ht),fr=G(1-nr*nr),Ar=G(2/(1+fr*o(pt*=lt)));return[he*fr*Ar*_(pt),Se*nr*Ar]}return tt.invert=function(pt,Ht){var nr=pt/he,fr=Ht/Se,Ar=G(nr*nr+fr*fr),Rr=2*F(Ar/2);return[a(pt*b(Rr),he*Ar)/lt,Ar&&F(Ht*_(Rr)/(Se*qe*Ar))/He]},tt}function w(he,Se,qe,He){var lt=E/3;he=f(he,v),Se=f(Se,v),he=c(he,T),Se=c(Se,E-v),qe=f(qe,0),qe=c(qe,100-v),He=f(He,v);var tt=qe/100+1,pt=He/100,Ht=U(tt*o(lt))/lt,nr=_(he)/_(Ht*T),fr=Se/E,Ar=G(pt*_(he/2)/_(Se/2)),Rr=Ar/G(fr*nr*Ht),ri=1/(Ar*G(fr*nr*Ht));return le(Rr,ri,nr,Ht,fr)}function q(){var he=65*A,Se=60*A,qe=20,He=200,lt=t.geoProjectionMutator(w),tt=lt(he,Se,qe,He);return tt.poleline=function(pt){return arguments.length?lt(he=+pt*A,Se,qe,He):he*P},tt.parallels=function(pt){return arguments.length?lt(he,Se=+pt*A,qe,He):Se*P},tt.inflation=function(pt){return arguments.length?lt(he,Se,qe=+pt,He):qe},tt.ratio=function(pt){return arguments.length?lt(he,Se,qe,He=+pt):He},tt.scale(163.775)}function Q(){return q().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*E+3*G(3),ue=2*G(2*E*G(3)/ee),Ge=St(ue*G(3)/E,ue,ee/6);function et(){return t.geoProjection(Ge).scale(176.84)}function mt(he,Se){return[he*G(1-3*Se*Se/(E*E)),Se]}mt.invert=function(he,Se){return[he/G(1-3*Se*Se/(E*E)),Se]};function Ft(){return t.geoProjection(mt).scale(152.63)}function ir(he,Se){var qe=o(Se),He=o(he)*qe,lt=1-He,tt=o(he=a(_(he)*qe,-_(Se))),pt=_(he);return qe=G(1-He*He),[pt*qe-tt*lt,-tt*qe-pt*lt]}ir.invert=function(he,Se){var qe=(he*he+Se*Se)/-2,He=G(-qe*(2+qe)),lt=Se*qe+he*He,tt=he*qe-Se*He,pt=G(tt*tt+lt*lt);return[a(He*lt,pt*(1+qe)),pt?-F(He*tt/pt):0]};function or(){return t.geoProjection(ir).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function kr(he,Se){var qe=Pe(he,Se);return[(qe[0]+he/T)/2,(qe[1]+Se)/2]}kr.invert=function(he,Se){var qe=he,He=Se,lt=25;do{var tt=o(He),pt=_(He),Ht=_(2*He),nr=pt*pt,fr=tt*tt,Ar=_(qe),Rr=o(qe/2),ri=_(qe/2),si=ri*ri,Mi=1-fr*Rr*Rr,hn=Mi?U(tt*Rr)*G(Zn=1/Mi):Zn=0,Zn,Yn=.5*(2*hn*tt*ri+qe/T)-he,Ua=.5*(hn*pt+He)-Se,Fo=.5*Zn*(fr*si+hn*tt*Rr*nr)+.5/T,vl=Zn*(Ar*Ht/4-hn*pt*ri),Us=.125*Zn*(Ht*ri-hn*pt*fr*Ar),ml=.5*Zn*(nr*Rr+hn*si*tt)+.5,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,He-=Yl}while((n(Sl)>v||n(Yl)>v)&&--lt>0);return[qe,He]};function Vr(){return t.geoProjection(kr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=be,e.geoAiryRaw=ae,e.geoAitoff=Ce,e.geoAitoffRaw=Pe,e.geoArmadillo=te,e.geoArmadilloRaw=de,e.geoAugust=Ee,e.geoAugustRaw=ke,e.geoBaker=ye,e.geoBakerRaw=Fe,e.geoBerghaus=ce,e.geoBerghausRaw=Ve,e.geoBertin1953=kt,e.geoBertin1953Raw=Ye,e.geoBoggs=wt,e.geoBoggsRaw=at,e.geoBonne=$e,e.geoBonneRaw=rt,e.geoBottomley=Yt,e.geoBottomleyRaw=zt,e.geoBromley=yr,e.geoBromleyRaw=hr,e.geoChamberlin=De,e.geoChamberlinRaw=xe,e.geoChamberlinAfrica=Re,e.geoCollignon=ge,e.geoCollignonRaw=ct,e.geoCraig=pe,e.geoCraigRaw=fe,e.geoCraster=Pt,e.geoCrasterRaw=It,e.geoCylindricalEqualArea=Hr,e.geoCylindricalEqualAreaRaw=rr,e.geoCylindricalStereographic=Mr,e.geoCylindricalStereographicRaw=Dr,e.geoEckert1=di,e.geoEckert1Raw=Fr,e.geoEckert2=Ii,e.geoEckert2Raw=Di,e.geoEckert3=nn,e.geoEckert3Raw=Ci,e.geoEckert4=wi,e.geoEckert4Raw=ii,e.geoEckert5=Bt,e.geoEckert5Raw=Gi,e.geoEckert6=Vt,e.geoEckert6Raw=yt,e.geoEisenlohr=Lr,e.geoEisenlohrRaw=_r,e.geoFahey=Gr,e.geoFaheyRaw=Ir,e.geoFoucaut=yi,e.geoFoucautRaw=jr,e.geoFoucautSinusoidal=Vi,e.geoFoucautSinusoidalRaw=Ei,e.geoGilbert=Yr,e.geoGingery=rn,e.geoGingeryRaw=oi,e.geoGinzburg4=xn,e.geoGinzburg4Raw=Ri,e.geoGinzburg5=Xr,e.geoGinzburg5Raw=xi,e.geoGinzburg6=tr,e.geoGinzburg6Raw=ft,e.geoGinzburg8=gr,e.geoGinzburg8Raw=pr,e.geoGinzburg9=Ai,e.geoGinzburg9Raw=Zr,e.geoGringorten=Mn,e.geoGringortenRaw=ni,e.geoGuyou=Ia,e.geoGuyouRaw=ka,e.geoHammer=gt,e.geoHammerRaw=Ke,e.geoHammerRetroazimuthal=kn,e.geoHammerRetroazimuthalRaw=Yo,e.geoHealpix=wa,e.geoHealpixRaw=ls,e.geoHill=Co,e.geoHillRaw=ws,e.geoHomolosine=Sn,e.geoHomolosineRaw=Ha,e.geoHufnagel=Ba,e.geoHufnagelRaw=ao,e.geoHyperelliptical=Sa,e.geoHyperellipticalRaw=Wi,e.geoInterrupt=la,e.geoInterruptedBoggs=As,e.geoInterruptedHomolosine=co,e.geoInterruptedMollweide=No,e.geoInterruptedMollweideHemispheres=Go,e.geoInterruptedSinuMollweide=qs,e.geoInterruptedSinusoidal=Oa,e.geoKavrayskiy7=Vs,e.geoKavrayskiy7Raw=ha,e.geoLagrange=_n,e.geoLagrangeRaw=Ya,e.geoLarrivee=Ra,e.geoLarriveeRaw=wo,e.geoLaskowski=un,e.geoLaskowskiRaw=Xn,e.geoLittrow=Ka,e.geoLittrowRaw=$n,e.geoLoximuthal=Eo,e.geoLoximuthalRaw=qn,e.geoMiller=lo,e.geoMillerRaw=Ja,e.geoModifiedStereographic=_a,e.geoModifiedStereographicRaw=eo,e.geoModifiedStereographicAlaska=to,e.geoModifiedStereographicGs48=yo,e.geoModifiedStereographicGs50=Jo,e.geoModifiedStereographicMiller=Ao,e.geoModifiedStereographicLee=Dn,e.geoMollweide=Zt,e.geoMollweideRaw=Rt,e.geoMtFlatPolarParabolic=Ts,e.geoMtFlatPolarParabolicRaw=Es,e.geoMtFlatPolarQuartic=Wa,e.geoMtFlatPolarQuarticRaw=Ho,e.geoMtFlatPolarSinusoidal=ts,e.geoMtFlatPolarSinusoidalRaw=To,e.geoNaturalEarth2=qa,e.geoNaturalEarth2Raw=Wo,e.geoNellHammer=Bo,e.geoNellHammerRaw=ln,e.geoInterruptedQuarticAuthalic=oo,e.geoNicolosi=ea,e.geoNicolosiRaw=za,e.geoPatterson=Vo,e.geoPattersonRaw=gs,e.geoPolyconic=Lo,e.geoPolyconicRaw=Do,e.geoPolyhedral=Gs,e.geoPolyhedralButterfly=po,e.geoPolyhedralCollignon=qo,e.geoPolyhedralWaterman=zo,e.geoProject=Hs,e.geoGringortenQuincuncial=At,e.geoPeirceQuincuncial=Gt,e.geoPierceQuincuncial=Gt,e.geoQuantize=wr,e.geoQuincuncial=Bs,e.geoRectangularPolyconic=Or,e.geoRectangularPolyconicRaw=mr,e.geoRobinson=ki,e.geoRobinsonRaw=Ti,e.geoSatellite=Pi,e.geoSatelliteRaw=Fn,e.geoSinuMollweide=Ps,e.geoSinuMollweideRaw=gn,e.geoSinusoidal=Ue,e.geoSinusoidalRaw=st,e.geoStitch=Ul,e.geoTimes=ns,e.geoTimesRaw=ja,e.geoTwoPointAzimuthal=ll,e.geoTwoPointAzimuthalRaw=cs,e.geoTwoPointAzimuthalUsa=sl,e.geoTwoPointEquidistant=Ml,e.geoTwoPointEquidistantRaw=il,e.geoTwoPointEquidistantUsa=zl,e.geoVanDerGrinten=Al,e.geoVanDerGrintenRaw=Rl,e.geoVanDerGrinten2=ms,e.geoVanDerGrinten2Raw=Ll,e.geoVanDerGrinten3=Xl,e.geoVanDerGrinten3Raw=Os,e.geoVanDerGrinten4=Nl,e.geoVanDerGrinten4Raw=Vl,e.geoWagner=q,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=et,e.geoWagner4Raw=Ge,e.geoWagner6=Ft,e.geoWagner6Raw=mt,e.geoWiechel=or,e.geoWiechelRaw=ir,e.geoWinkel3=Vr,e.geoWinkel3Raw=kr,Object.defineProperty(e,"__esModule",{value:!0})})});var R6e=Te((Yyr,I6e)=>{"use strict";var od=Jl(),UZ=ei(),F8t=$l(),YT=Math.PI/180,H2=180/Math.PI,GZ={cursor:"pointer"},HZ={cursor:"auto"};function B8t(e,t){var r=e.projection,n;return t._isScoped?n=O8t:t._isClipped?n=N8t:n=q8t,n(e,r)}I6e.exports=B8t;function WZ(e,t){return od.behavior.zoom().translate(t.translate()).scale(t.scale())}function jZ(e,t,r){var n=e.id,i=e.graphDiv,a=i.layout,o=a[n],s=i._fullLayout,u=s[n],l={},f={};function c(h,d){l[n+"."+h]=UZ.nestedProperty(o,h).get(),F8t.call("_storeDirectGUIEdit",a,s._preGUI,l);var p=UZ.nestedProperty(u,h);p.get()!==d&&(p.set(d),UZ.nestedProperty(o,h).set(d),f[n+"."+h]=d)}r(c),c("projection.scale",t.scale()/e.fitScale),c("fitbounds",!1),i.emit("plotly_relayout",f)}function O8t(e,t){var r=WZ(e,t);function n(){od.select(this).style(GZ)}function i(){t.scale(od.event.scale).translate(od.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var u=t.invert(e.midPt);s("center.lon",u[0]),s("center.lat",u[1])}function o(){od.select(this).style(HZ),jZ(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function q8t(e,t){var r=WZ(e,t),n=2,i,a,o,s,u,l,f,c,h;function d(E){return t.invert(E)}function p(E){var T=d(E);if(!T)return!0;var L=t(T);return Math.abs(L[0]-E[0])>n||Math.abs(L[1]-E[1])>n}function _(){od.select(this).style(GZ),i=od.mouse(this),a=t.rotate(),o=t.translate(),s=a,u=d(i)}function b(){if(l=od.mouse(this),p(i)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(od.event.scale),t.translate([o[0],od.event.translate[1]]),u?d(l)&&(c=d(l),f=[s[0]+(c[0]-u[0]),a[1],a[2]],t.rotate(f),s=f):(i=l,u=d(i)),h=!0,e.render(!0);var E=t.rotate(),T=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":T[0],"geo.center.lat":T[1],"geo.projection.rotation.lon":-E[0]})}function v(){od.select(this).style(HZ),h&&jZ(e,t,k)}function k(E){var T=t.rotate(),L=t.invert(e.midPt);E("projection.rotation.lon",-T[0]),E("center.lon",L[0]),E("center.lat",L[1])}return r.on("zoomstart",_).on("zoom",b).on("zoomend",v),r}function N8t(e,t){var r={r:t.rotate(),k:t.scale()},n=WZ(e,t),i=Z8t(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){od.select(this).style(GZ);var h=od.mouse(this),d=t.rotate(),p=d,_=t.translate(),b=U8t(d);s=CF(t,h),o.call(n,"zoom",function(){var v=od.mouse(this);if(t.scale(r.k=od.event.scale),!s)h=v,s=CF(t,h);else if(CF(t,v)){t.rotate(d).translate(_);var k=CF(t,v),E=G8t(s,k),T=W8t(V8t(b,E)),L=r.r=H8t(T,s,p);(!isFinite(L[0])||!isFinite(L[1])||!isFinite(L[2]))&&(L=p),t.rotate(L),p=L}l(i.of(this,arguments))}),u(i.of(this,arguments))}).on("zoomend",function(){od.select(this).style(HZ),o.call(n,"zoom",null),f(i.of(this,arguments)),jZ(e,t,c)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function u(h){a++||h({type:"zoomstart"})}function l(h){h({type:"zoom"})}function f(h){--a||h({type:"zoomend"})}function c(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return od.rebind(n,i,"on")}function CF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&j8t(r)}function U8t(e){var t=.5*e[0]*YT,r=.5*e[1]*YT,n=.5*e[2]*YT,i=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),u=Math.sin(n),l=Math.cos(n);return[a*s*l+i*o*u,i*s*l-a*o*u,a*o*l+i*s*u,a*s*u-i*o*l]}function V8t(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=t[0],s=t[1],u=t[2],l=t[3];return[r*o-n*s-i*u-a*l,r*s+n*o+i*l-a*u,r*u-n*l+i*o+a*s,r*l+n*u-i*s+a*o]}function G8t(e,t){if(!(!e||!t)){var r=X8t(e,t),n=Math.sqrt(z6e(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,z6e(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function H8t(e,t,r){var n=VZ(t,2,e[0]);n=VZ(n,1,e[1]),n=VZ(n,0,e[2]-r[2]);var i=t[0],a=t[1],o=t[2],s=n[0],u=n[1],l=n[2],f=Math.atan2(a,i)*H2,c=Math.sqrt(i*i+a*a),h,d;Math.abs(u)>c?(d=(u>0?90:-90)-f,h=0):(d=Math.asin(u/c)*H2-f,h=Math.sqrt(c*c-u*u));var p=180-d-2*f,_=(Math.atan2(l,s)-Math.atan2(o,h))*H2,b=(Math.atan2(l,s)-Math.atan2(o,-h))*H2,v=L6e(r[0],r[1],d,_),k=L6e(r[0],r[1],p,b);return v<=k?[d,_,r[2]]:[p,b,r[2]]}function L6e(e,t,r,n){var i=P6e(r-e),a=P6e(n-t);return Math.sqrt(i*i+a*a)}function P6e(e){return(e%360+540)%360-180}function VZ(e,t,r){var n=r*YT,i=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(n),u=Math.sin(n);return i[a]=e[a]*s-e[o]*u,i[o]=e[o]*s+e[a]*u,i}function W8t(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*H2,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*H2,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*H2]}function j8t(e){var t=e[0]*YT,r=e[1]*YT,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function z6e(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var t1=Jl(),YZ=NZ(),Y8t=YZ.geoPath,K8t=YZ.geoDistance,J8t=C6e(),$8t=$l(),ok=ei(),Q8t=ok.strTranslate,LF=jl(),ak=Mu(),D6e=Xc(),eBt=Cc(),ZZ=wu(),F6e=Am().getAutoRange,XZ=xp(),tBt=ah().prepSelect,rBt=ah().clearOutline,iBt=ah().selectOnClick,nBt=R6e(),cv=tk(),aBt=ix(),O6e=pF(),oBt=SZ().feature;function q6e(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var $m=q6e.prototype;N6e.exports=function(t){return new q6e(t)};$m.plot=function(e,t,r,n){var i=this;if(n)return i.update(e,t,!0);i._geoCalcData=e,i._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var u in cv.layerNameToAdjective)if(u!=="frame"&&a["show"+u]){s=!0;break}for(var l=!1,f=0;f0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),eBt.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var u=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=u.selectAll(".point"),this.dataPoints.text=u.selectAll("text"),this.dataPaths.line=u.selectAll(".js-line");var l=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=l.selectAll("path"),this._render()};$m.updateProjection=function(e,t){var r=this.graphDiv,n=t[this.id],i=t._size,a=n.domain,o=n.projection,s=n.lonaxis,u=n.lataxis,l=s._ax,f=u._ax,c=this.projection=sBt(n),h=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],d=n.center||{},p=o.rotation||{},_=s.range||[],b=u.range||[];if(n.fitbounds){l._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],l.range=F6e(r,l),f.range=F6e(r,f);var v=(l.range[0]+l.range[1])/2,k=(f.range[0]+f.range[1])/2;if(n._isScoped)d={lon:v,lat:k};else if(n._isClipped){d={lon:v,lat:k},p={lon:v,lat:k,roll:p.roll};var E=o.type,T=cv.lonaxisSpan[E]/2||180,L=cv.lataxisSpan[E]/2||90;_=[v-T,v+T],b=[k-L,k+L]}else d={lon:v,lat:k},p={lon:v,lat:p.lat,roll:p.roll}}c.center([d.lon-p.lon,d.lat-p.lat]).rotate([-p.lon,-p.lat,p.roll]).parallels(o.parallels);var x=B6e(_,b);c.fitExtent(h,x);var C=this.bounds=c.getBounds(x),M=this.fitScale=c.scale(),m=c.translate();if(n.fitbounds){var P=c.getBounds(B6e(l.range,f.range)),A=Math.min((C[1][0]-C[0][0])/(P[1][0]-P[0][0]),(C[1][1]-C[0][1])/(P[1][1]-P[0][1]));isFinite(A)?c.scale(A*M):ok.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*M);var B=this.midPt=[(C[0][0]+C[1][0])/2,(C[0][1]+C[1][1])/2];if(c.translate([m[0]+(B[0]-m[0]),m[1]+(B[1]-m[1])]).clipExtent(C),n._isAlbersUsa){var F=c([d.lon,d.lat]),U=c.translate();c.translate([U[0]-(F[0]-U[0]),U[1]-(F[1]-U[1])])}};$m.updateBaseLayers=function(e,t){var r=this,n=r.topojson,i=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!cv.lineLayers[h]}function u(h){return!!cv.fillLayers[h]}var l=this.hasChoropleth?cv.layersForChoropleth:cv.layers,f=l.filter(function(h){return s(h)||u(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),c=r.framework.selectAll(".layer").data(f,String);c.exit().each(function(h){delete i[h],delete a[h],t1.select(this).remove()}),c.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=i[h]=t1.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):u(h)&&(a[h]=d.append("path").style("stroke","none"))}),c.order(),c.each(function(h){var d=a[h],p=cv.layerNameToAdjective[h];h==="frame"?d.datum(cv.sphereSVG):s(h)||u(h)?d.datum(oBt(n,n.objects[h])):o(h)&&d.datum(lBt(h,t,e)).call(LF.stroke,t[h].gridcolor).call(ak.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(LF.stroke,t[p+"color"]).call(ak.dashLine,"",t[p+"width"]):u(h)&&d.call(LF.fill,t[p+"color"])})};$m.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;ak.setRect(this.clipRect,i,a,o,s),this.bgRect.call(ak.setRect,i,a,o,s).call(LF.fill,t.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};$m.updateFx=function(e,t){var r=this,n=r.graphDiv,i=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var c=r.viewInitial,h={};for(var d in c)h[r.id+"."+d]=c[d];$8t.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function u(c){return r.projection.invert([c[0]+r.xaxis._offset,c[1]+r.yaxis._offset])}var l=function(c,h){if(h.isRect){var d=c.range={};d[r.id]=[u([h.xmin,h.ymin]),u([h.xmax,h.ymax])]}else{var p=c.lassoPoints={};p[r.id]=h.map(u)}},f={element:r.bgRect.node(),gd:n,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:l},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(c){c===2&&rBt(n)}};a==="pan"?(i.node().onmousedown=null,i.call(nBt(r,t)),i.on("dblclick.zoom",s),n._context._scrollZoom.geo||i.on("wheel.zoom",null)):(a==="select"||a==="lasso")&&(i.on(".zoom",null),f.prepFn=function(c,h,d){tBt(c,h,d,f,a)},XZ.init(f)),i.on("mousemove",function(){var c=r.projection.invert(ok.getPositionFromD3Event());if(!c)return XZ.unhover(n,t1.event);r.xaxis.p2c=function(){return c[0]},r.yaxis.p2c=function(){return c[1]},D6e.hover(n,t1.event,r.id)}),i.on("mouseout",function(){n._dragging||XZ.unhover(n,t1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&iBt(t1.event,n,[r.xaxis],[r.yaxis],r.id,f),o.indexOf("event")>-1&&D6e.click(n,t1.event))})};$m.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,n="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=t1.select(e.container).append("g").attr("class","geo "+e.id).call(ak.setClipUrl,n,t),e.project=function(i){var a=e.projection(i);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(i){return e.project(i)[0]}},e.yaxis={_id:"y",c2p:function(i){return e.project(i)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},ZZ.setConvert(e.mockAxis,r)};$m.saveViewInitial=function(e){var t=e.center||{},r=e.projection,n=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var i;e._isScoped?i={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?i={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:i={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":n.lon},ok.extendFlat(this.viewInitial,i)};$m.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};$m._render=function(){var e=this.projection,t=e.getPath(),r;function n(a){var o=e(a.lonlat);return o?Q8t(o[0],o[1]):null}function i(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",i).attr("transform",n)};function sBt(e){var t=e.projection,r=t.type,n=cv.projNames[r];n="geo"+ok.titleCase(n);for(var i=YZ[n]||J8t[n],a=i(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?cv.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],u=function(c){return c?a:[]},l=0;lp}else return!1},a.getPath=function(){return Y8t().projection(a)},a.getBounds=function(c){return a.getPath().bounds(c)},a.precision(cv.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-cv.clipPad),a}function lBt(e,t,r){var n=1e-6,i=2.5,a=t[e],o=cv.scopeDefaults[t.scope],s,u,l;e==="lonaxis"?(s=o.lonaxisRange,u=o.lataxisRange,l=function(k,E){return[k,E]}):e==="lataxis"&&(s=o.lataxisRange,u=o.lonaxisRange,l=function(k,E){return[E,k]});var f={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};ZZ.setConvert(f,r);var c=ZZ.calcTicks(f);!t.isScoped&&e==="lonaxis"&&c.pop();for(var h=c.length,d=new Array(h),p=0;p0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}});var KZ=Te((Jyr,H6e)=>{"use strict";var JT=Rh(),uBt=zc().attributes,fBt=Id().dash,KT=tk(),cBt=Sc().overrideAll,V6e=Z1(),G6e={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:JT.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:fBt},hBt=H6e.exports=cBt({domain:uBt({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:V6e(KT.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:V6e(KT.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:JT.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:KT.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:KT.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:KT.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:KT.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:JT.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:JT.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:JT.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:JT.background},lonaxis:G6e,lataxis:G6e},"plot","from-root");hBt.uirevision={valType:"any",editType:"none"}});var X6e=Te(($yr,j6e)=>{"use strict";var PF=ei(),dBt=k_(),pBt=Rd().getSubplotData,zF=tk(),vBt=KZ(),W6e=zF.axesNames;j6e.exports=function(t,r,n){dBt(t,r,n,{type:"geo",attributes:vBt,handleDefaults:mBt,fullData:n,partition:"y"})};function mBt(e,t,r,n){var i=pBt(n.fullData,"geo",n.id),a=i.map(function(ae){return ae.index}),o=r("resolution"),s=r("scope"),u=zF.scopeDefaults[s],l=r("projection.type",u.projType),f=t._isAlbersUsa=l==="albers usa";f&&(s=t.scope="usa");var c=t._isScoped=s!=="world",h=t._isSatellite=l==="satellite",d=t._isConic=l.indexOf("conic")!==-1||l==="albers",p=t._isClipped=!!zF.lonaxisSpan[l];if(e.visible===!1){var _=PF.extendDeep({},t._template);_.showcoastlines=!1,_.showcountries=!1,_.showframe=!1,_.showlakes=!1,_.showland=!1,_.showocean=!1,_.showrivers=!1,_.showsubunits=!1,_.lonaxis&&(_.lonaxis.showgrid=!1),_.lataxis&&(_.lataxis.showgrid=!1),t._template=_}for(var b=r("visible"),v,k=0;k0&&F<0&&(F+=360);var U=(B+F)/2,G;if(!f){var j=c?u.projRotate:[U,0,0];G=r("projection.rotation.lon",j[0]),r("projection.rotation.lat",j[1]),r("projection.rotation.roll",j[2]),v=r("showcoastlines",!c&&b),v&&(r("coastlinecolor"),r("coastlinewidth")),v=r("showocean",b?void 0:!1),v&&r("oceancolor")}var H,N;if(f?(H=-96.6,N=38.7):(H=c?U:G,N=(A[0]+A[1])/2),r("center.lon",H),r("center.lat",N),h&&(r("projection.tilt"),r("projection.distance")),d){var W=u.projParallels||[0,60];r("projection.parallels",W)}r("projection.scale"),v=r("showland",b?void 0:!1),v&&r("landcolor"),v=r("showlakes",b?void 0:!1),v&&r("lakecolor"),v=r("showrivers",b?void 0:!1),v&&(r("rivercolor"),r("riverwidth")),v=r("showcountries",c&&s!=="usa"&&b),v&&(r("countrycolor"),r("countrywidth")),(s==="usa"||s==="north america"&&o===50)&&(r("showsubunits",b),r("subunitcolor"),r("subunitwidth")),c||(v=r("showframe",b),v&&(r("framecolor"),r("framewidth"))),r("bgcolor");var re=r("fitbounds");re&&(delete t.projection.scale,c?(delete t.center.lon,delete t.center.lat):p?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}});var JZ=Te((Qyr,K6e)=>{"use strict";var yBt=Rd().getSubplotCalcData,gBt=ei().counterRegex,_Bt=U6e(),jy="geo",Z6e=gBt(jy),Y6e={};Y6e[jy]={valType:"subplotid",dflt:jy,editType:"calc"};function xBt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[jy],i=0;i{"use strict";J6e.exports={attributes:G2(),supplyDefaults:zDe(),colorbar:ep(),formatLabels:DDe(),calc:hF(),calcGeoJSON:qZ().calcGeoJSON,plot:qZ().plot,style:DZ(),styleOnSelect:ov().styleOnSelect,hoverPoints:x6e(),eventData:w6e(),selectPoints:S6e(),moduleType:"trace",name:"scattergeo",basePlotModule:JZ(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var eFe=Te((tgr,Q6e)=>{"use strict";Q6e.exports=$6e()});var $T=Te((rgr,iFe)=>{"use strict";var ABt=Nu().hovertemplateAttrs,ax=G2(),TBt=nc(),tFe=Gf(),SBt=Rh().defaultLine,nx=Su().extendFlat,rFe=ax.marker.line;iFe.exports=nx({locations:{valType:"data_array",editType:"calc"},locationmode:ax.locationmode,z:{valType:"data_array",editType:"calc"},geojson:nx({},ax.geojson,{}),featureidkey:ax.featureidkey,text:nx({},ax.text,{}),hovertext:nx({},ax.hovertext,{}),marker:{line:{color:nx({},rFe.color,{dflt:SBt}),width:nx({},rFe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:ax.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:ax.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:nx({},tFe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:ABt(),showlegend:nx({},tFe.showlegend,{dflt:!1})},TBt("",{cLetter:"z",editTypeOverride:"calc"}))});var aFe=Te((igr,nFe)=>{"use strict";var sk=ei(),MBt=ed(),EBt=$T(),kBt=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");nFe.exports=function(t,r,n,i){function a(h,d){return sk.coerce(t,r,EBt,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&sk.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var u=a("geojson"),l;(typeof u=="string"&&u!==""||sk.isPlainObject(u))&&(l="geojson-id");var f=a("locationmode",l);f==="country names"&&sk.warn(kBt),f==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate");var c=a("marker.line.width");c&&a("marker.line.color"),a("marker.opacity"),MBt(t,r,i,a,{prefix:"",cLetter:"z"}),sk.coerceSelectionMarkerOpacity(r,a)}});var IF=Te((ngr,lFe)=>{"use strict";var oFe=ku(),CBt=nf().BADNUM,LBt=gp(),PBt=ky(),zBt=B0();function sFe(e){return e&&typeof e=="string"}lFe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(f){return sFe(f)||oFe(f)}:a=sFe;for(var o=0;o{"use strict";var IBt=Jl(),RBt=jl(),$Z=Mu(),DBt=_c();function FBt(e,t){t&&uFe(e,t)}function uFe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=DBt.makeColorScaleFuncFromTrace(r);i.each(function(u){IBt.select(this).attr("fill",s(u.z)).call(RBt.stroke,u.mlc||o.color).call($Z.dashLine,"",u.mlw||o.width||0).style("opacity",a.opacity)}),$Z.selectedPointStyle(i,r)}function BBt(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?$Z.selectedPointStyle(r.selectAll(".choroplethlocation"),n):uFe(e,t)}fFe.exports={style:FBt,styleOnSelect:BBt}});var QZ=Te((ogr,dFe)=>{"use strict";var OBt=Jl(),cFe=ei(),QT=ix(),qBt=pF().getTopojsonFeatures,hFe=Am().findExtremes,NBt=RF().style;function UBt(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");cFe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=OBt.select(this),o=a.selectAll("path.choroplethlocation").data(cFe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),NBt(e,i)})}function VBt(e,t){for(var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?QT.extractTraceFeature(e):qBt(r,i.topojson),u=[],l=[],f=0;f{"use strict";var GBt=wu(),HBt=$T(),WBt=ei().fillText;pFe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s,u,l,f,c=[r,n],h=[r+360,n];for(u=0;u")}}});var FF=Te((lgr,vFe)=>{"use strict";vFe.exports=function(t,r,n,i,a){t.location=r.location,t.z=r.z;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var BF=Te((ugr,mFe)=>{"use strict";mFe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u,l,f,c;if(r===!1)for(s=0;s{"use strict";yFe.exports={attributes:$T(),supplyDefaults:aFe(),colorbar:S_(),calc:IF(),calcGeoJSON:QZ().calcGeoJSON,plot:QZ().plot,style:RF().style,styleOnSelect:RF().styleOnSelect,hoverPoints:DF(),eventData:FF(),selectPoints:BF(),moduleType:"trace",name:"choropleth",basePlotModule:JZ(),categories:["geo","noOpacity","showLegend"],meta:{}}});var xFe=Te((cgr,_Fe)=>{"use strict";_Fe.exports=gFe()});var OF=Te((hgr,wFe)=>{"use strict";var XBt=$l(),s0=ei(),ZBt=sA();function YBt(e,t,r,n){var i=e.cd,a=i[0].t,o=i[0].trace,s=e.xa,u=e.ya,l=a.x,f=a.y,c=s.c2p(t),h=u.c2p(r),d=e.distance,p;if(a.tree){var _=s.p2c(c-d),b=s.p2c(c+d),v=u.p2c(h-d),k=u.p2c(h+d);n==="x"?p=a.tree.range(Math.min(_,b),Math.min(u._rl[0],u._rl[1]),Math.max(_,b),Math.max(u._rl[0],u._rl[1])):p=a.tree.range(Math.min(_,b),Math.min(v,k),Math.max(_,b),Math.max(v,k))}else p=a.ids;var E,T,L,x,C,M,m,P,A,B=d;if(n==="x"){var F=!!o.xperiodalignment,U=!!o.yperiodalignment;for(C=0;C=Math.min(G,j)&&c<=Math.max(G,j)?0:1/0}if(M=Math.min(H,N)&&h<=Math.max(H,N)?0:1/0}A=Math.sqrt(M*M+m*m),T=p[C]}}}else for(C=p.length-1;C>-1;C--)E=p[C],L=l[E],x=f[E],M=s.c2p(L)-c,m=u.c2p(x)-h,P=Math.sqrt(M*M+m*m),P{"use strict";var AFe=20;TFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:AFe,SYMBOL_STROKE:AFe/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var lk=Te((pgr,kFe)=>{"use strict";var KBt=Gf(),JBt=gc(),$Bt=km(),sh=Zc(),SFe=jc().axisHoverFormat,MFe=nc(),QBt=Z1(),eY=Su().extendFlat,eOt=Sc().overrideAll,tOt=ox().DASHES,EFe=sh.line,r1=sh.marker,rOt=r1.line,eS=kFe.exports=eOt({x:sh.x,x0:sh.x0,dx:sh.dx,y:sh.y,y0:sh.y0,dy:sh.dy,xperiod:sh.xperiod,yperiod:sh.yperiod,xperiod0:sh.xperiod0,yperiod0:sh.yperiod0,xperiodalignment:sh.xperiodalignment,yperiodalignment:sh.yperiodalignment,xhoverformat:SFe("x"),yhoverformat:SFe("y"),text:sh.text,hovertext:sh.hovertext,textposition:sh.textposition,textfont:JBt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:EFe.color,width:EFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:QBt(tOt),dflt:"solid"}},marker:eY({},MFe("marker"),{symbol:r1.symbol,angle:r1.angle,size:r1.size,sizeref:r1.sizeref,sizemin:r1.sizemin,sizemode:r1.sizemode,opacity:r1.opacity,colorbar:r1.colorbar,line:eY({},MFe("marker.line"),{width:rOt.width})}),connectgaps:sh.connectgaps,fill:eY({},sh.fill,{dflt:"none"}),fillcolor:$Bt(),selected:{marker:sh.selected.marker,textfont:sh.selected.textfont},unselected:{marker:sh.unselected.marker,textfont:sh.unselected.textfont},opacity:KBt.opacity},"calc","nested");eS.x.editType=eS.y.editType=eS.x0.editType=eS.y0.editType="calc+clearAxisTypes";eS.hovertemplate=sh.hovertemplate;eS.texttemplate=sh.texttemplate});var qF=Te(tY=>{"use strict";var CFe=ox();tY.isOpenSymbol=function(e){return typeof e=="string"?CFe.OPEN_RE.test(e):e%200>100};tY.isDotSymbol=function(e){return typeof e=="string"?CFe.DOT_RE.test(e):e>200}});var zFe=Te((mgr,PFe)=>{"use strict";var LFe=ei(),iOt=$l(),nOt=qF(),aOt=lk(),oOt=Sy(),NF=lc(),sOt=J3(),lOt=Pm(),uOt=$v(),fOt=R0(),cOt=zm(),hOt=D0();PFe.exports=function(t,r,n,i){function a(d,p){return LFe.coerce(t,r,aOt,d,p)}var o=t.marker?nOt.isOpenSymbol(t.marker.symbol):!1,s=NF.isBubble(t),u=sOt(t,r,i,a);if(!u){r.visible=!1;return}lOt(t,r,i,a),a("xhoverformat"),a("yhoverformat");var l=u{"use strict";var dOt=tI();IFe.exports=function(t,r,n){var i=t.i;return"x"in t||(t.x=r._x[i]),"y"in t||(t.y=r._y[i]),dOt(t,r,n)}});var FFe=Te((ggr,DFe)=>{"use strict";function pOt(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u>=0?(a=o,i=o-1):n=o+1}return a}function vOt(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u>0?(a=o,i=o-1):n=o+1}return a}function mOt(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u<0?(a=o,n=o+1):i=o-1}return a}function yOt(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u<=0?(a=o,n=o+1):i=o-1}return a}function gOt(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function uk(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}DFe.exports={ge:function(e,t,r,n,i){return uk(e,t,r,n,i,pOt)},gt:function(e,t,r,n,i){return uk(e,t,r,n,i,vOt)},lt:function(e,t,r,n,i){return uk(e,t,r,n,i,mOt)},le:function(e,t,r,n,i){return uk(e,t,r,n,i,yOt)},eq:function(e,t,r,n,i){return uk(e,t,r,n,i,gOt)}}});var Xy=Te((_gr,OFe)=>{"use strict";OFe.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=BFe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var _Ot=Xy();qFe.exports=xOt;function xOt(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=_Ot(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var W2=Te((bgr,NFe)=>{"use strict";NFe.exports=bOt;function bOt(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;ni&&(i=e[o]),e[o]{UFe.exports=function(){for(var e=0;e{var GFe=j6();HFe.exports=wOt;function wOt(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,s,u;(!t||typeof t=="string")&&(t=new(GFe(t||"float32"))(i+r));var l=t.length-r;if(i!==l)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+l);for(a=0,s=r;a{"use strict";WFe.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var ZFe=Te((Sgr,XFe)=>{"use strict";XFe.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var t8e=Te((Mgr,e8e)=>{"use strict";var YFe=FFe(),KFe=Z4(),AOt=tS(),TOt=W2(),JFe=Xy(),iY=VFe(),SOt=j2(),MOt=jFe(),EOt=j6(),$Fe=ZFe(),kOt=1073741824;e8e.exports=function(t,r){r||(r={}),t=SOt(t,"float64"),r=JFe(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=iY(r.maxDepth,255),i=iY(r.bounds,TOt(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=QFe(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(EOt(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let v=0;vn||x>kOt){for(let N=0;Nbe||m>Pe||P=B||re===ae)return;let Ce=u[W];ae===void 0&&(ae=Ce.length);for(let Ve=re;Ve=T&&Ke<=x&&nt>=L&&nt<=C&&F.push(ce)}let de=l[W],te=de[re*4+0],ke=de[re*4+1],Ee=de[re*4+2],Me=de[re*4+3],Ne=G(de,re+1),Fe=N*.5,ye=W+1;U(j,H,Fe,ye,te,ke||Ee||Me||Ne),U(j,H+Fe,Fe,ye,ke,Ee||Me||Ne),U(j+Fe,H,Fe,ye,Ee,Me||Ne),U(j+Fe,H+Fe,Fe,ye,Me,Ne)}function G(j,H){let N=null,W=0;for(;N===null;)if(N=j[H*4+W],W++,W>j.length)return null;return N}return F}function _(v,k,E,T,L){let x=[];for(let C=0;C{"use strict";r8e.exports=t8e()});var nY=Te((kgr,i8e)=>{i8e.exports=COt;function COt(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var u=1;u{"use strict";Object.defineProperty(VF,"__esModule",{value:!0});var LOt=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),u;!(i=(u=s.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(l){a=!0,o=l}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),fk=Math.PI*2,aY=function(t,r,n,i,a,o,s){var u=t.x,l=t.y;u*=r,l*=n;var f=i*u-a*l,c=a*u+i*l;return{x:f+o,y:c+s}},POt=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},n8e=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},zOt=function(t,r,n,i,a,o,s,u,l,f,c,h){var d=Math.pow(a,2),p=Math.pow(o,2),_=Math.pow(c,2),b=Math.pow(h,2),v=d*p-d*b-p*_;v<0&&(v=0),v/=d*b+p*_,v=Math.sqrt(v)*(s===u?-1:1);var k=v*a/o*h,E=v*-o/a*c,T=f*k-l*E+(t+n)/2,L=l*k+f*E+(r+i)/2,x=(c-k)/a,C=(h-E)/o,M=(-c-k)/a,m=(-h-E)/o,P=n8e(1,0,x,C),A=n8e(x,C,M,m);return u===0&&A>0&&(A-=fk),u===1&&A<0&&(A+=fk),[T,L,P,A]},IOt=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,s=t.ry,u=t.xAxisRotation,l=u===void 0?0:u,f=t.largeArcFlag,c=f===void 0?0:f,h=t.sweepFlag,d=h===void 0?0:h,p=[];if(o===0||s===0)return[];var _=Math.sin(l*fk/360),b=Math.cos(l*fk/360),v=b*(r-i)/2+_*(n-a)/2,k=-_*(r-i)/2+b*(n-a)/2;if(v===0&&k===0)return[];o=Math.abs(o),s=Math.abs(s);var E=Math.pow(v,2)/Math.pow(o,2)+Math.pow(k,2)/Math.pow(s,2);E>1&&(o*=Math.sqrt(E),s*=Math.sqrt(E));var T=zOt(r,n,i,a,o,s,c,d,_,b,v,k),L=LOt(T,4),x=L[0],C=L[1],M=L[2],m=L[3],P=Math.abs(m)/(fk/4);Math.abs(1-P)<1e-7&&(P=1);var A=Math.max(Math.ceil(P),1);m/=A;for(var B=0;B{"use strict";l8e.exports=DOt;var ROt=o8e();function DOt(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,u=null,l=0,f=0,c=0,h=e.length;c4?(n=d[d.length-4],i=d[d.length-3]):(n=l,i=f),r.push(d)}return r}function GF(e,t,r,n){return["C",e,t,r,n,r,n]}function s8e(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var oY=Te((Lgr,f8e)=>{"use strict";f8e.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var d8e=Te((Pgr,h8e)=>{"use strict";var FOt=QM(),BOt=nY(),OOt=u8e(),qOt=oY(),c8e=s4();h8e.exports=NOt;function NOt(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(c8e(qOt(e),"String is not an SVG path."),e=FOt(e)),c8e(Array.isArray(e),"Argument should be a string or an array of path segments."),e=BOt(e),e=OOt(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;rt[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}});var _8e=Te((zgr,g8e)=>{var X2=Math.PI,p8e=y8e(120);g8e.exports=UOt;function UOt(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,u=null,l=0,f=0,c=0,h=e.length;c7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var _=l,b=f;(t=="C"||t=="S")&&(_+=_-n,b+=b-i),d=["C",_,b,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=l*2-s,u=f*2-u):(s=l,u=f),d=v8e(l,f,s,u,d[1],d[2]);break;case"Q":s=d[1],u=d[2],d=v8e(l,f,d[1],d[2],d[3],d[4]);break;case"L":d=HF(l,f,d[1],d[2]);break;case"H":d=HF(l,f,d[1],f);break;case"V":d=HF(l,f,l,d[1]);break;case"Z":d=HF(l,f,a,o);break}t=p,l=d[d.length-2],f=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=l,i=f),r.push(d)}return r}function HF(e,t,r,n){return["C",e,t,r,n,r,n]}function v8e(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function m8e(e,t,r,n,i,a,o,s,u,l){if(l)E=l[0],T=l[1],v=l[2],k=l[3];else{var f=sY(e,t,-i);e=f.x,t=f.y,f=sY(s,u,-i),s=f.x,u=f.y;var c=(e-s)/2,h=(t-u)/2,d=c*c/(r*r)+h*h/(n*n);d>1&&(d=Math.sqrt(d),r=d*r,n=d*n);var p=r*r,_=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((p*_-p*h*h-_*c*c)/(p*h*h+_*c*c)));b==1/0&&(b=1);var v=b*r*h/n+(e+s)/2,k=b*-n*c/r+(t+u)/2,E=Math.asin(((t-k)/n).toFixed(9)),T=Math.asin(((u-k)/n).toFixed(9));E=eT&&(E=E-X2*2),!o&&T>E&&(T=T-X2*2)}if(Math.abs(T-E)>p8e){var L=T,x=s,C=u;T=E+p8e*(o&&T>E?1:-1),s=v+r*Math.cos(T),u=k+n*Math.sin(T);var M=m8e(s,u,r,n,i,0,o,x,C,[T,L,v,k])}var m=Math.tan((T-E)/4),P=4/3*r*m,A=4/3*n*m,B=[2*e-(e+P*Math.sin(E)),2*t-(t-A*Math.cos(E)),s+P*Math.sin(T),u-A*Math.cos(T),s,u];if(l)return B;M&&(B=B.concat(M));for(var F=0;F{var VOt=nY(),GOt=_8e(),HOt={M:"moveTo",C:"bezierCurveTo"};x8e.exports=function(e,t){e.beginPath(),GOt(VOt(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[HOt[n]].apply(e,i)}),e.closePath()}});var S8e=Te((Rgr,T8e)=>{"use strict";var WOt=Z4();T8e.exports=jOt;var ck=1e20;function jOt(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,s,u,l,f,c,h,d,p,_;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,u=e,t.stride?f=t.stride:f=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,c=h.getContext("2d"),a=h.width,o=h.height,d=c.getImageData(0,0,a,o),u=d.data,f=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,c=e,a=h.width,o=h.height,d=c.getImageData(0,0,a,o),u=d.data,f=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,u=d.data,f=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&u instanceof window.Uint8ClampedArray||window.Uint8Array&&u instanceof window.Uint8Array)for(l=u,u=Array(a*o),p=0,_=l.length;p<_;p++)u[p]=l[p*f+i]/255;else if(f!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*o),v=Array(a*o),k=Array(s),E=Array(s),T=Array(s+1),L=Array(s);for(p=0,_=a*o;p<_;p++){var x=u[p];b[p]=x===1?0:x===0?ck:Math.pow(Math.max(0,.5-x),2),v[p]=x===1?ck:x===0?0:Math.pow(Math.max(0,x-.5),2)}w8e(b,a,o,k,E,L,T),w8e(v,a,o,k,E,L,T);var C=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(p=0,_=a*o;p<_;p++)C[p]=WOt(1-((b[p]-v[p])/n+r),0,1);return C}function w8e(e,t,r,n,i,a,o){for(var s=0;s{"use strict";var XOt=d8e(),ZOt=QM(),YOt=b8e(),KOt=oY(),JOt=S8e(),lY=document.createElement("canvas"),hv=lY.getContext("2d");M8e.exports=$Ot;function $Ot(e,t){if(!KOt(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=lY.width=t.w||t.width||200,n=lY.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||XOt(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],u=Math.min(s[0]||0,s[1]||0)/2;if(hv.fillStyle="black",hv.fillRect(0,0,r,n),hv.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?hv.strokeStyle="white":hv.strokeStyle="black",hv.lineWidth=Math.abs(a)),hv.translate(r*.5,n*.5),hv.scale(u,u),QOt()){var l=new Path2D(e);hv.fill(l),a&&hv.stroke(l)}else{var f=ZOt(e);YOt(hv,f),hv.fill(),a&&hv.stroke()}hv.setTransform(1,0,0,1,0,0);var c=JOt(hv,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return c}var WF;function QOt(){if(WF!=null)return WF;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return WF=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return WF=r&&r.data&&r.data[3]===255}});var Y2=Te((Fgr,O8e)=>{"use strict";var XF=ku(),e9t=E8e(),jF=J_(),t9t=$l(),nS=ei(),Mh=nS.isArrayOrTypedArray,rS=Mu(),k8e=Wc(),C8e=$g().formatColor,iS=lc(),r9t=S3(),fY=qF(),hk=ox(),i9t=N1().DESELECTDIM,L8e={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},n9t=iv().appendArrayPointValue;function a9t(e,t){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=e._context.plotGlPixelRatio;if(t.visible!==!0)return n;if(iS.hasText(t)&&(n.text=B8e(e,t),n.textSel=z8e(e,t,t.selected),n.textUnsel=z8e(e,t,t.unselected)),iS.hasMarkers(t)&&(n.marker=hY(e,t),n.markerSel=cY(e,t,t.selected),n.markerUnsel=cY(e,t,t.unselected),!t.unselected&&Mh(t.marker.opacity))){var a=t.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function hY(e,t){var r=t._length,n=t.marker,i={},a,o=Mh(n.symbol),s=Mh(n.angle),u=Mh(n.color),l=Mh(n.line.color),f=Mh(n.opacity),c=Mh(n.size),h=Mh(n.line.width),d;if(o||(d=fY.isOpenSymbol(n.symbol)),o||u||l||f||s){i.symbols=new Array(r),i.angles=new Array(r),i.colors=new Array(r),i.borderColors=new Array(r);var p=n.symbol,_=n.angle,b=C8e(n,n.opacity,r),v=C8e(n.line,n.opacity,r);if(!Mh(v[0])){var k=v;for(v=Array(r),a=0;ahk.TOO_MANY_POINTS||iS.hasMarkers(t)?"rect":"round";if(l&&t.connectgaps){var c=a[0],h=a[1];for(o=0;o1?u[o]:u[0]:u,d=Mh(l)?l.length>1?l[o]:l[0]:l,p=L8e[h],_=L8e[d],b=f?f/.8+1:0,v=-_*b-_*.5;a.offset[o]=[p*b/c,v/c]}}return a}O8e.exports={style:a9t,markerStyle:hY,markerSelection:cY,linePositions:s9t,errorBarPositions:l9t,textPosition:u9t}});var dY=Te((Bgr,q8e)=>{"use strict";var ZF=ei();q8e.exports=function(t,r){var n=r._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(n=r._scene={},n.init=function(){ZF.extendFlat(n,a,i)},n.init(),n.update=function(s){var u=ZF.repeat(s,n.count);if(n.fill2d&&n.fill2d.update(u),n.scatter2d&&n.scatter2d.update(u),n.line2d&&n.line2d.update(u),n.error2d&&n.error2d.update(u.concat(u)),n.select2d&&n.select2d.update(u),n.glText)for(var l=0;l{"use strict";var f9t=UF(),aS=ei(),N8e=Wc(),c9t=Am().findExtremes,U8e=Im(),pY=O0(),h9t=pY.calcMarkerSize,d9t=pY.calcAxisExpansion,p9t=pY.setFirstScatter,v9t=F0(),oS=Y2(),m9t=dY(),V8e=nf().BADNUM,y9t=ox().TOO_MANY_POINTS;H8e.exports=function(t,r){var n=t._fullLayout,i=r._xA=N8e.getFromId(t,r.xaxis,"x"),a=r._yA=N8e.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,u=s>=y9t,l=s*2,f={},c,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),p=U8e(r,i,"x",h),_=U8e(r,a,"y",d),b=p.vals,v=_.vals;r._x=b,r._y=v,r.xperiodalignment&&(r._origX=h,r._xStarts=p.starts,r._xEnds=p.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=_.starts,r._yEnds=_.ends);var k=new Array(l),E=new Array(s);for(c=0;c1&&aS.extendFlat(o.line,oS.linePositions(e,r,n)),o.errorX||o.errorY){var s=oS.errorBarPositions(e,r,n,i,a);o.errorX&&aS.extendFlat(o.errorX,s.x),o.errorY&&aS.extendFlat(o.errorY,s.y)}return o.text&&(aS.extendFlat(o.text,{positions:n},oS.textPosition(e,r,o.text,o.marker)),aS.extendFlat(o.textSel,{positions:n},oS.textPosition(e,r,o.text,o.markerSel)),aS.extendFlat(o.textUnsel,{positions:n},oS.textPosition(e,r,o.text,o.markerUnsel))),o}});var vY=Te((qgr,X8e)=>{"use strict";var j8e=ei(),_9t=jl(),x9t=N1().DESELECTDIM;function b9t(e){var t=e[0],r=t.trace,n=t.t,i=n._scene,a=n.index,o=i.selectBatch[a],s=i.unselectBatch[a],u=i.textOptions[a],l=i.textSelectedOptions[a]||{},f=i.textUnselectedOptions[a]||{},c=j8e.extendFlat({},u),h,d;if(o.length||s.length){var p=l.color,_=f.color,b=u.color,v=j8e.isArrayOrTypedArray(b);for(c.color=new Array(r._length),h=0;h{"use strict";var Z8e=lc(),w9t=vY().styleTextSelection;Y8e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u=n[0].t,l=s._length,f=u.x,c=u.y,h=u._scene,d=u.index;if(!h)return o;var p=Z8e.hasText(s),_=Z8e.hasMarkers(s),b=!_&&!p;if(s.visible!==!0||b)return o;var v=[],k=[];if(r!==!1&&!r.degenerate)for(var E=0;E{"use strict";var A9t=OF();K8e.exports={moduleType:"trace",name:"scattergl",basePlotModule:Th(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:lk(),supplyDefaults:zFe(),crossTraceDefaults:dU(),colorbar:ep(),formatLabels:RFe(),calc:W8e(),hoverPoints:A9t.hoverPoints,selectPoints:mY(),meta:{}}});var Q8e=Te((Vgr,KF)=>{"use strict";var YF=Z4();KF.exports=$8e;KF.exports.to=$8e;KF.exports.from=T9t;function $8e(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=YF(r,0,255)&255,n=YF(n,0,255)&255,i=YF(i,0,255)&255,a=YF(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function T9t(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}});var Uh=Te((Ggr,tBe)=>{"use strict";var eBe=Object.getOwnPropertySymbols,S9t=Object.prototype.hasOwnProperty,M9t=Object.prototype.propertyIsEnumerable;function E9t(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function k9t(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}tBe.exports=k9t()?Object.assign:function(e,t){for(var r,n=E9t(e),i,a=1;a{rBe.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";nBe.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";aBe.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var JF=Te((Xgr,sS)=>{"use strict";sS.exports=dk;sS.exports.float32=sS.exports.float=dk;sS.exports.fract32=sS.exports.fract=C9t;var sBe=new Float32Array(1);function C9t(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=dk(e));for(var r=0,n=t.length;r{"use strict";function L9t(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function P9t(e,t){return R9t(e)||L9t(e,t)||uBe(e,t)||B9t()}function z9t(e){return I9t(e)||D9t(e)||uBe(e)||F9t()}function I9t(e){if(Array.isArray(e))return gY(e)}function R9t(e){if(Array.isArray(e))return e}function D9t(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uBe(e,t){if(e){if(typeof e=="string")return gY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gY(e,t)}}function gY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rre)?N.tree=O9t(H,{bounds:de}):re&&re.length&&(N.tree=re),N.tree){var te={primitive:"points",usage:"static",data:N.tree,type:"uint32"};N.elements?N.elements(te):N.elements=o.elements(te)}var ke=QF.float32(H);ae({data:ke,usage:"dynamic"});var Ee=QF.fract32(H,ke);return be({data:Ee,usage:"dynamic"}),Pe({data:new Uint8Array(Ce),type:"uint8",usage:"stream"}),H}},{marker:function(H,N,W){var re=N.activation;if(re.forEach(function(Ee){return Ee&&Ee.destroy&&Ee.destroy()}),re.length=0,!H||typeof H[0]=="number"){var ae=e.addMarker(H);re[ae]=!0}else{for(var be=[],Pe=0,Ce=Math.min(H.length,N.count);Pe=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,s=e.length;on*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};op.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i{"use strict";AY.exports=r8;AY.exports.default=r8;function r8(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=fBe(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,u,l,f,c,h,d;if(n&&(a=K9t(e,t,a,r)),e.length>80*r){s=l=e[0],u=f=e[1];for(var p=r;pl&&(l=c),h>f&&(f=h);d=Math.max(l-s,f-u),d=d!==0?32767/d:0}return dk(a,o,r,s,u,d,0),o}function fBe(e,t,r,n,i){var a,o;if(i===wY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=uBe(a,e[a],e[a+1],o);return o&&i8(o,o.next)&&(vk(o),o=o.next),o}function J2(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(i8(r,r.next)||Mh(r.prev,r,r.next)===0)){if(vk(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function dk(e,t,r,n,i,a,o){if(e){!o&&a&&tqt(e,n,i,a);for(var s=e,u,l;e.prev!==e.next;){if(u=e.prev,l=e.next,a?X9t(e,n,i,a):j9t(e)){t.push(u.i/r|0),t.push(e.i/r|0),t.push(l.i/r|0),vk(e),e=l.next,s=l.next;continue}if(e=l,e===s){o?o===1?(e=Z9t(J2(e),t,r),dk(e,t,r,n,i,a,2)):o===2&&Y9t(e,t,r,n,i,a):dk(J2(e),t,r,n,i,a,1);break}}}}function j9t(e){var t=e.prev,r=e,n=e.next;if(Mh(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,o=n.x,s=t.y,u=r.y,l=n.y,f=ia?i>o?i:o:a>o?a:o,d=s>u?s>l?s:l:u>l?u:l,p=n.next;p!==t;){if(p.x>=f&&p.x<=h&&p.y>=c&&p.y<=d&&sS(i,s,a,u,o,l,p.x,p.y)&&Mh(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function X9t(e,t,r,n){var i=e.prev,a=e,o=e.next;if(Mh(i,a,o)>=0)return!1;for(var s=i.x,u=a.x,l=o.x,f=i.y,c=a.y,h=o.y,d=su?s>l?s:l:u>l?u:l,b=f>c?f>h?f:h:c>h?c:h,v=xY(d,p,t,r,n),k=xY(x,b,t,r,n),E=e.prevZ,T=e.nextZ;E&&E.z>=v&&T&&T.z<=k;){if(E.x>=d&&E.x<=x&&E.y>=p&&E.y<=b&&E!==i&&E!==o&&sS(s,f,u,c,l,h,E.x,E.y)&&Mh(E.prev,E,E.next)>=0||(E=E.prevZ,T.x>=d&&T.x<=x&&T.y>=p&&T.y<=b&&T!==i&&T!==o&&sS(s,f,u,c,l,h,T.x,T.y)&&Mh(T.prev,T,T.next)>=0))return!1;T=T.nextZ}for(;E&&E.z>=v;){if(E.x>=d&&E.x<=x&&E.y>=p&&E.y<=b&&E!==i&&E!==o&&sS(s,f,u,c,l,h,E.x,E.y)&&Mh(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;T&&T.z<=k;){if(T.x>=d&&T.x<=x&&T.y>=p&&T.y<=b&&T!==i&&T!==o&&sS(s,f,u,c,l,h,T.x,T.y)&&Mh(T.prev,T,T.next)>=0)return!1;T=T.nextZ}return!0}function Z9t(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!i8(i,a)&&cBe(i,n,n.next,a)&&pk(i,a)&&pk(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),vk(n),vk(n.next),n=e=a),n=n.next}while(n!==e);return J2(n)}function Y9t(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&nqt(o,s)){var u=hBe(o,s);o=J2(o,o.next),u=J2(u,u.next),dk(o,t,r,n,i,a,0),dk(u,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function K9t(e,t,r,n){var i=[],a,o,s,u,l;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a&&(a=s,o=r.x=r.x&&r.x>=l&&n!==r.x&&sS(io.x||r.x===o.x&&eqt(o,r)))&&(o=r,c=h)),r=r.next;while(r!==u);return o}function eqt(e,t){return Mh(e.prev,e,t.prev)<0&&Mh(t.next,e,e.next)<0}function tqt(e,t,r,n){var i=e;do i.z===0&&(i.z=xY(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,rqt(i)}function rqt(e){var t,r,n,i,a,o,s,u,l=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||u>0&&n;)s!==0&&(u===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,u--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,l*=2}while(o>1);return e}function xY(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function iqt(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(n-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function nqt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!aqt(e,t)&&(pk(e,t)&&pk(t,e)&&oqt(e,t)&&(Mh(e.prev,e,t.prev)||Mh(e,t.prev,t))||i8(e,t)&&Mh(e.prev,e,e.next)>0&&Mh(t.prev,t,t.next)>0)}function Mh(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function i8(e,t){return e.x===t.x&&e.y===t.y}function cBe(e,t,r,n){var i=t8(Mh(e,t,r)),a=t8(Mh(e,t,n)),o=t8(Mh(r,n,e)),s=t8(Mh(r,n,t));return!!(i!==a&&o!==s||i===0&&e8(e,r,t)||a===0&&e8(e,n,t)||o===0&&e8(r,e,n)||s===0&&e8(r,t,n))}function e8(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function t8(e){return e>0?1:e<0?-1:0}function aqt(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&cBe(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function pk(e,t){return Mh(e.prev,e,e.next)<0?Mh(e,t,e.next)>=0&&Mh(e,e.prev,t)>=0:Mh(e,t,e.prev)<0||Mh(e,e.next,t)<0}function oqt(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function hBe(e,t){var r=new bY(e.i,e.x,e.y),n=new bY(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function uBe(e,t,r,n){var i=new bY(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function vk(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function bY(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}r8.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(wY(e,0,a,r));if(i)for(var s=0,u=t.length;s0&&(n+=e[i-1].length,r.holes.push(n))}return r}});var vBe=Te((Zgr,pBe)=>{"use strict";var sqt=W2();pBe.exports=lqt;function lqt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=sqt(e,t));for(var n=0;n{"use strict";mBe.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var _Be=Te((Kgr,gBe)=>{"use strict";gBe.exports=function(){}});var sx=Te((Jgr,xBe)=>{"use strict";var uqt=_Be()();xBe.exports=function(e){return e!==uqt&&e!==null}});var TY=Te(($gr,wBe)=>{"use strict";var fqt=Object.create,cqt=Object.getPrototypeOf,bBe={};wBe.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||fqt;return typeof e!="function"?!1:cqt(e(t(null),bBe))===bBe}});var SY=Te((Qgr,ABe)=>{"use strict";var hqt=sx(),dqt={function:!0,object:!0};ABe.exports=function(e){return hqt(e)&&dqt[typeof e]||!1}});var i1=Te((e1r,TBe)=>{"use strict";var pqt=sx();TBe.exports=function(e){if(!pqt(e))throw new TypeError("Cannot use null or undefined");return e}});var MBe=Te((t1r,SBe)=>{"use strict";var MY=Object.create,n8;TY()()||(n8=EY());SBe.exports=function(){var e,t,r;return!n8||n8.level!==1?MY:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(n){if(n==="__proto__"){t[n]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[n]=r}),Object.defineProperties(e,t),Object.defineProperty(n8,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return MY(n===null?e:n,i)})}()});var EY=Te((r1r,EBe)=>{"use strict";var vqt=SY(),mqt=i1(),yqt=Object.prototype.isPrototypeOf,gqt=Object.defineProperty,_qt={configurable:!0,enumerable:!1,writable:!0,value:void 0},a8;a8=function(e,t){if(mqt(e),t===null||vqt(t))return e;throw new TypeError("Prototype must be null or an object")};EBe.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(a8(n,i),i),n}):t=function(n,i){return a8(n,i).__proto__=i,n}:t=function n(i,a){var o;return a8(i,a),o=yqt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&gqt(n.nullPolyfill,"__proto__",_qt),i},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),t={},r,n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{r=n.set,r.call(e,t)}catch(i){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)}());MBe()});var o8=Te((i1r,kBe)=>{"use strict";kBe.exports=TY()()?Object.setPrototypeOf:EY()});var LBe=Te((n1r,CBe)=>{"use strict";var xqt=SY();CBe.exports=function(e){if(!xqt(e))throw new TypeError(e+" is not an Object");return e}});var zBe=Te((a1r,PBe)=>{"use strict";var bqt=Object.create(null),wqt=Math.random;PBe.exports=function(){var e;do e=wqt().toString(36).slice(2);while(bqt[e]);return e}});var $2=Te((o1r,IBe)=>{"use strict";var Aqt=void 0;IBe.exports=function(e){return e!==Aqt&&e!==null}});var s8=Te((s1r,RBe)=>{"use strict";var Tqt=$2(),Sqt={object:!0,function:!0,undefined:!0};RBe.exports=function(e){return Tqt(e)?hasOwnProperty.call(Sqt,typeof e):!1}});var FBe=Te((l1r,DBe)=>{"use strict";var Mqt=s8();DBe.exports=function(e){if(!Mqt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var OBe=Te((u1r,BBe)=>{"use strict";var Eqt=FBe();BBe.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!Eqt(e)}});var kY=Te((f1r,qBe)=>{"use strict";var kqt=OBe(),Cqt=/^\s*class[\s{/}]/,Lqt=Function.prototype.toString;qBe.exports=function(e){return!(!kqt(e)||Cqt.test(Lqt.call(e)))}});var UBe=Te((c1r,NBe)=>{"use strict";NBe.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var GBe=Te((h1r,VBe)=>{"use strict";VBe.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var WBe=Te((d1r,HBe)=>{"use strict";var Pqt=sx(),zqt=Object.keys;HBe.exports=function(e){return zqt(Pqt(e)?Object(e):e)}});var XBe=Te((p1r,jBe)=>{"use strict";jBe.exports=GBe()()?Object.keys:WBe()});var YBe=Te((v1r,ZBe)=>{"use strict";var Iqt=XBe(),Rqt=i1(),Dqt=Math.max;ZBe.exports=function(e,t){var r,n,i=Dqt(arguments.length,2),a;for(e=Object(Rqt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";KBe.exports=UBe()()?Object.assign:YBe()});var CY=Te((y1r,JBe)=>{"use strict";var Fqt=sx(),Bqt=Array.prototype.forEach,Oqt=Object.create,qqt=function(e,t){var r;for(r in e)t[r]=e[r]};JBe.exports=function(e){var t=Oqt(null);return Bqt.call(arguments,function(r){Fqt(r)&&qqt(Object(r),t)}),t}});var QBe=Te((g1r,$Be)=>{"use strict";var LY="razdwatrzy";$Be.exports=function(){return typeof LY.contains!="function"?!1:LY.contains("dwa")===!0&&LY.contains("foo")===!1}});var tOe=Te((_1r,eOe)=>{"use strict";var Nqt=String.prototype.indexOf;eOe.exports=function(e){return Nqt.call(this,e,arguments[1])>-1}});var PY=Te((x1r,rOe)=>{"use strict";rOe.exports=QBe()()?String.prototype.contains:tOe()});var n1=Te((b1r,oOe)=>{"use strict";var u8=$2(),iOe=kY(),nOe=l8(),aOe=CY(),mk=PY(),Uqt=oOe.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],u8(e)?(r=mk.call(e,"c"),n=mk.call(e,"e"),i=mk.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?nOe(aOe(a),o):o};Uqt.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],u8(t)?iOe(t)?u8(r)?iOe(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,u8(e)?(n=mk.call(e,"c"),i=mk.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?nOe(aOe(a),o):o}});var yk=Te((w1r,lOe)=>{"use strict";var sOe=Object.prototype.toString,Vqt=sOe.call(function(){return arguments}());lOe.exports=function(e){return sOe.call(e)===Vqt}});var gk=Te((A1r,fOe)=>{"use strict";var uOe=Object.prototype.toString,Gqt=uOe.call("");fOe.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||uOe.call(e)===Gqt)||!1}});var hOe=Te((T1r,cOe)=>{"use strict";cOe.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var vOe=Te((S1r,pOe)=>{var dOe=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};pOe.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return dOe()}try{return __global__||dOe()}finally{delete Object.prototype.__global__}}()});var _k=Te((M1r,mOe)=>{"use strict";mOe.exports=hOe()()?globalThis:vOe()});var gOe=Te((E1r,yOe)=>{"use strict";var Hqt=_k(),zY={object:!0,symbol:!0};yOe.exports=function(){var e=Hqt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!zY[typeof e.iterator]||!zY[typeof e.toPrimitive]||!zY[typeof e.toStringTag])}});var xOe=Te((k1r,_Oe)=>{"use strict";_Oe.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var IY=Te((C1r,bOe)=>{"use strict";var Wqt=xOe();bOe.exports=function(e){if(!Wqt(e))throw new TypeError(e+" is not a symbol");return e}});var MOe=Te((L1r,SOe)=>{"use strict";var wOe=n1(),jqt=Object.create,AOe=Object.defineProperty,Xqt=Object.prototype,TOe=jqt(null);SOe.exports=function(e){for(var t=0,r,n;TOe[e+(t||"")];)++t;return e+=t||"",TOe[e]=!0,r="@@"+e,AOe(Xqt,r,wOe.gs(null,function(i){n||(n=!0,AOe(this,r,wOe(i)),n=!1)})),r}});var kOe=Te((P1r,EOe)=>{"use strict";var Qm=n1(),Vh=_k().Symbol;EOe.exports=function(e){return Object.defineProperties(e,{hasInstance:Qm("",Vh&&Vh.hasInstance||e("hasInstance")),isConcatSpreadable:Qm("",Vh&&Vh.isConcatSpreadable||e("isConcatSpreadable")),iterator:Qm("",Vh&&Vh.iterator||e("iterator")),match:Qm("",Vh&&Vh.match||e("match")),replace:Qm("",Vh&&Vh.replace||e("replace")),search:Qm("",Vh&&Vh.search||e("search")),species:Qm("",Vh&&Vh.species||e("species")),split:Qm("",Vh&&Vh.split||e("split")),toPrimitive:Qm("",Vh&&Vh.toPrimitive||e("toPrimitive")),toStringTag:Qm("",Vh&&Vh.toStringTag||e("toStringTag")),unscopables:Qm("",Vh&&Vh.unscopables||e("unscopables"))})}});var POe=Te((z1r,LOe)=>{"use strict";var COe=n1(),Zqt=IY(),xk=Object.create(null);LOe.exports=function(e){return Object.defineProperties(e,{for:COe(function(t){return xk[t]?xk[t]:xk[t]=e(String(t))}),keyFor:COe(function(t){var r;Zqt(t);for(r in xk)if(xk[r]===t)return r})})}});var ROe=Te((I1r,IOe)=>{"use strict";var Zy=n1(),RY=IY(),f8=_k().Symbol,Yqt=MOe(),Kqt=kOe(),Jqt=POe(),$qt=Object.create,DY=Object.defineProperties,c8=Object.defineProperty,jp,lS,zOe;if(typeof f8=="function")try{String(f8()),zOe=!0}catch(e){}else f8=null;lS=function(t){if(this instanceof lS)throw new TypeError("Symbol is not a constructor");return jp(t)};IOe.exports=jp=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return zOe?f8(t):(r=$qt(lS.prototype),t=t===void 0?"":String(t),DY(r,{__description__:Zy("",t),__name__:Zy("",Yqt(t))}))};Kqt(jp);Jqt(jp);DY(lS.prototype,{constructor:Zy(jp),toString:Zy("",function(){return this.__name__})});DY(jp.prototype,{toString:Zy(function(){return"Symbol ("+RY(this).__description__+")"}),valueOf:Zy(function(){return RY(this)})});c8(jp.prototype,jp.toPrimitive,Zy("",function(){var e=RY(this);return typeof e=="symbol"?e:e.toString()}));c8(jp.prototype,jp.toStringTag,Zy("c","Symbol"));c8(lS.prototype,jp.toStringTag,Zy("c",jp.prototype[jp.toStringTag]));c8(lS.prototype,jp.toPrimitive,Zy("c",jp.prototype[jp.toPrimitive]))});var lx=Te((R1r,DOe)=>{"use strict";DOe.exports=gOe()()?_k().Symbol:ROe()});var BOe=Te((D1r,FOe)=>{"use strict";var Qqt=i1();FOe.exports=function(){return Qqt(this).length=0,this}});var uS=Te((F1r,OOe)=>{"use strict";OOe.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var NOe=Te((B1r,qOe)=>{"use strict";var eNt=$2(),tNt=s8(),rNt=Object.prototype.toString;qOe.exports=function(e){if(!eNt(e))return null;if(tNt(e)){var t=e.toString;if(typeof t!="function"||t===rNt)return null}try{return""+e}catch(r){return null}}});var VOe=Te((O1r,UOe)=>{"use strict";UOe.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var HOe=Te((q1r,GOe)=>{"use strict";var iNt=VOe(),nNt=/[\n\r\u2028\u2029]/g;GOe.exports=function(e){var t=iNt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(nNt,function(r){switch(r){case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var FY=Te((N1r,XOe)=>{"use strict";var WOe=$2(),aNt=s8(),oNt=NOe(),sNt=HOe(),jOe=function(e,t){return e.replace("%v",sNt(t))};XOe.exports=function(e,t,r){if(!aNt(r))throw new TypeError(jOe(t,e));if(!WOe(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=oNt(r.errorMessage);throw WOe(n)||(n=t),new TypeError(jOe(n,e))}});var YOe=Te((U1r,ZOe)=>{"use strict";var lNt=FY(),uNt=$2();ZOe.exports=function(e){return uNt(e)?e:lNt(e,"Cannot use %v",arguments[1])}});var JOe=Te((V1r,KOe)=>{"use strict";var fNt=FY(),cNt=kY();KOe.exports=function(e){return cNt(e)?e:fNt(e,"%v is not a plain function",arguments[1])}});var QOe=Te((G1r,$Oe)=>{"use strict";$Oe.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var t9e=Te((H1r,e9e)=>{"use strict";var hNt=Object.prototype.toString,dNt=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e9e.exports=function(e){return typeof e=="function"&&dNt(hNt.call(e))}});var i9e=Te((W1r,r9e)=>{"use strict";r9e.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var a9e=Te((j1r,n9e)=>{"use strict";n9e.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var s9e=Te((X1r,o9e)=>{"use strict";o9e.exports=i9e()()?Math.sign:a9e()});var u9e=Te((Z1r,l9e)=>{"use strict";var pNt=s9e(),vNt=Math.abs,mNt=Math.floor;l9e.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:pNt(e)*mNt(vNt(e)))}});var c9e=Te((Y1r,f9e)=>{"use strict";var yNt=u9e(),gNt=Math.max;f9e.exports=function(e){return gNt(0,yNt(e))}});var v9e=Te((K1r,p9e)=>{"use strict";var _Nt=lx().iterator,xNt=yk(),bNt=t9e(),wNt=c9e(),h9e=uS(),ANt=i1(),TNt=sx(),SNt=gk(),d9e=Array.isArray,BY=Function.prototype.call,Q2={configurable:!0,enumerable:!0,writable:!0,value:null},OY=Object.defineProperty;p9e.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,u,l,f,c,h;if(e=Object(ANt(e)),TNt(t)&&h9e(t),!this||this===Array||!bNt(this)){if(!t){if(xNt(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(d9e(e)){for(o=new Array(s=e.length),i=0;i=55296&&u<=56319&&(h+=e[++i])),h=t?BY.call(t,r,h,a):h,n?(Q2.value=h,OY(o,a,Q2)):o[a]=h,++a;s=a}}if(s===void 0)for(s=wNt(e.length),n&&(o=new n(s)),i=0;i{"use strict";m9e.exports=QOe()()?Array.from:v9e()});var _9e=Te(($1r,g9e)=>{"use strict";var MNt=y9e(),ENt=l8(),kNt=i1();g9e.exports=function(e){var t=Object(kNt(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?MNt(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):ENt(i,e),i}});var w9e=Te((Q1r,b9e)=>{"use strict";var CNt=uS(),LNt=i1(),PNt=Function.prototype.bind,x9e=Function.prototype.call,zNt=Object.keys,INt=Object.prototype.propertyIsEnumerable;b9e.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(LNt(r)),CNt(n),i=zNt(r),o&&i.sort(typeof o=="function"?PNt.call(o,r):void 0),typeof e!="function"&&(e=i[e]),x9e.call(e,i,function(s,u){return INt.call(r,s)?x9e.call(n,a,r[s],s,r,u):t})}}});var T9e=Te((e_r,A9e)=>{"use strict";A9e.exports=w9e()("forEach")});var M9e=Te((t_r,S9e)=>{"use strict";var RNt=uS(),DNt=T9e(),FNt=Function.prototype.call;S9e.exports=function(e,t){var r={},n=arguments[2];return RNt(t),DNt(e,function(i,a,o,s){r[a]=FNt.call(t,n,i,a,o,s)}),r}});var L9e=Te((r_r,C9e)=>{"use strict";var BNt=$2(),ONt=YOe(),E9e=JOe(),qNt=_9e(),NNt=CY(),UNt=M9e(),VNt=Function.prototype.bind,GNt=Object.defineProperty,HNt=Object.prototype.hasOwnProperty,k9e;k9e=function(e,t,r){var n=ONt(t)&&E9e(t.value),i;return i=qNt(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&HNt.call(this,e)?n:(t.value=VNt.call(n,r.resolveContext?r.resolveContext(this):this),GNt(this,e,t),this[e])},i};C9e.exports=function(e){var t=NNt(arguments[1]);return BNt(t.resolveContext)&&E9e(t.resolveContext),UNt(e,function(r,n){return k9e(n,r,t)})}});var qY=Te((i_r,R9e)=>{"use strict";var WNt=BOe(),jNt=l8(),XNt=uS(),ZNt=i1(),Bv=n1(),YNt=L9e(),P9e=lx(),z9e=Object.defineProperty,I9e=Object.defineProperties,bk;R9e.exports=bk=function(e,t){if(!(this instanceof bk))throw new TypeError("Constructor requires 'new'");I9e(this,{__list__:Bv("w",ZNt(e)),__context__:Bv("w",t),__nextIndex__:Bv("w",0)}),t&&(XNt(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete bk.prototype.constructor;I9e(bk.prototype,jNt({_next:Bv(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){z9e(this,"__redo__",Bv("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Bv(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,n){r>e&&(this.__redo__[n]=--r)},this)))}),_onClear:Bv(function(){this.__redo__&&WNt.call(this.__redo__),this.__nextIndex__=0})})));z9e(bk.prototype,P9e.iterator,Bv(function(){return this}))});var q9e=Te((n_r,O9e)=>{"use strict";var D9e=o8(),F9e=PY(),NY=n1(),KNt=lx(),UY=qY(),B9e=Object.defineProperty,fS;fS=O9e.exports=function(e,t){if(!(this instanceof fS))throw new TypeError("Constructor requires 'new'");UY.call(this,e),t?F9e.call(t,"key+value")?t="key+value":F9e.call(t,"key")?t="key":t="value":t="value",B9e(this,"__kind__",NY("",t))};D9e&&D9e(fS,UY);delete fS.prototype.constructor;fS.prototype=Object.create(UY.prototype,{_resolve:NY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});B9e(fS.prototype,KNt.toStringTag,NY("c","Array Iterator"))});var G9e=Te((a_r,V9e)=>{"use strict";var N9e=o8(),h8=n1(),JNt=lx(),VY=qY(),U9e=Object.defineProperty,cS;cS=V9e.exports=function(e){if(!(this instanceof cS))throw new TypeError("Constructor requires 'new'");e=String(e),VY.call(this,e),U9e(this,"__length__",h8("",e.length))};N9e&&N9e(cS,VY);delete cS.prototype.constructor;cS.prototype=Object.create(VY.prototype,{_next:h8(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});U9e(cS.prototype,JNt.toStringTag,h8("c","String Iterator"))});var W9e=Te((o_r,H9e)=>{"use strict";var $Nt=yk(),QNt=sx(),e7t=gk(),t7t=lx().iterator,r7t=Array.isArray;H9e.exports=function(e){return QNt(e)?r7t(e)||e7t(e)||$Nt(e)?!0:typeof e[t7t]=="function":!1}});var X9e=Te((s_r,j9e)=>{"use strict";var i7t=W9e();j9e.exports=function(e){if(!i7t(e))throw new TypeError(e+" is not iterable");return e}});var GY=Te((l_r,K9e)=>{"use strict";var n7t=yk(),a7t=gk(),Z9e=q9e(),o7t=G9e(),s7t=X9e(),Y9e=lx().iterator;K9e.exports=function(e){return typeof s7t(e)[Y9e]=="function"?e[Y9e]():n7t(e)?new Z9e(e):a7t(e)?new o7t(e):new Z9e(e)}});var $9e=Te((u_r,J9e)=>{"use strict";var l7t=yk(),u7t=uS(),f7t=gk(),c7t=GY(),h7t=Array.isArray,HY=Function.prototype.call,d7t=Array.prototype.some;J9e.exports=function(e,t){var r,n=arguments[2],i,a,o,s,u,l,f;if(h7t(e)||l7t(e)?r="array":f7t(e)?r="string":e=c7t(e),u7t(t),a=function(){o=!0},r==="array"){d7t.call(e,function(c){return HY.call(t,n,c,a),o});return}if(r==="string"){for(u=e.length,s=0;s=55296&&f<=56319&&(l+=e[++s])),HY.call(t,n,l,a),!o);++s);return}for(i=e.next();!i.done;){if(HY.call(t,n,i.value,a),o)return;i=e.next()}}});var eqe=Te((f_r,Q9e)=>{"use strict";Q9e.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var iqe=Te((c_r,rqe)=>{"use strict";var p7t=sx(),p8=o8(),d8=LBe(),v7t=i1(),m7t=zBe(),a1=n1(),y7t=GY(),g7t=$9e(),_7t=lx().toStringTag,tqe=eqe(),x7t=Array.isArray,jY=Object.defineProperty,WY=Object.prototype.hasOwnProperty,b7t=Object.getPrototypeOf,ux;rqe.exports=ux=function(){var e=arguments[0],t;if(!(this instanceof ux))throw new TypeError("Constructor requires 'new'");return t=tqe&&p8&&WeakMap!==ux?p8(new WeakMap,b7t(this)):this,p7t(e)&&(x7t(e)||(e=y7t(e))),jY(t,"__weakMapData__",a1("c","$weakMap$"+m7t())),e&&g7t(e,function(r){v7t(r),t.set(r[0],r[1])}),t};tqe&&(p8&&p8(ux,WeakMap),ux.prototype=Object.create(WeakMap.prototype,{constructor:a1(ux)}));Object.defineProperties(ux.prototype,{delete:a1(function(e){return WY.call(d8(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:a1(function(e){if(WY.call(d8(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:a1(function(e){return WY.call(d8(e),this.__weakMapData__)}),set:a1(function(e,t){return jY(d8(e),this.__weakMapData__,a1("c",t)),this}),toString:a1(function(){return"[object WeakMap]"})});jY(ux.prototype,_7t,a1("c","WeakMap"))});var XY=Te((h_r,nqe)=>{"use strict";nqe.exports=yBe()()?WeakMap:iqe()});var oqe=Te((d_r,aqe)=>{"use strict";aqe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a{"use strict";var v8=J_(),w7t=W2(),YY=Uh(),A7t=Xy(),T7t=j2(),sqe=dBe(),S7t=vBe(),{float32:M7t,fract32:ZY}=JF(),E7t=XY(),lqe=eS(),k7t=oqe(),C7t=` +`]),lBe&&(p.frag=p.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(p)}op.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};op.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};op.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;nre)?N.tree=U9t(H,{bounds:de}):re&&re.length&&(N.tree=re),N.tree){var te={primitive:"points",usage:"static",data:N.tree,type:"uint32"};N.elements?N.elements(te):N.elements=o.elements(te)}var ke=QF.float32(H);ae({data:ke,usage:"dynamic"});var Ee=QF.fract32(H,ke);return be({data:Ee,usage:"dynamic"}),Pe({data:new Uint8Array(Ce),type:"uint8",usage:"stream"}),H}},{marker:function(H,N,W){var re=N.activation;if(re.forEach(function(Ee){return Ee&&Ee.destroy&&Ee.destroy()}),re.length=0,!H||typeof H[0]=="number"){var ae=e.addMarker(H);re[ae]=!0}else{for(var be=[],Pe=0,Ce=Math.min(H.length,N.count);Pe=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,s=e.length;on*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};op.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i{"use strict";AY.exports=r8;AY.exports.default=r8;function r8(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=hBe(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,u,l,f,c,h,d;if(n&&(a=Q9t(e,t,a,r)),e.length>80*r){s=l=e[0],u=f=e[1];for(var p=r;pl&&(l=c),h>f&&(f=h);d=Math.max(l-s,f-u),d=d!==0?32767/d:0}return pk(a,o,r,s,u,d,0),o}function hBe(e,t,r,n,i){var a,o;if(i===wY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=cBe(a,e[a],e[a+1],o);return o&&i8(o,o.next)&&(mk(o),o=o.next),o}function J2(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(i8(r,r.next)||Eh(r.prev,r,r.next)===0)){if(mk(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function pk(e,t,r,n,i,a,o){if(e){!o&&a&&nqt(e,n,i,a);for(var s=e,u,l;e.prev!==e.next;){if(u=e.prev,l=e.next,a?K9t(e,n,i,a):Y9t(e)){t.push(u.i/r|0),t.push(e.i/r|0),t.push(l.i/r|0),mk(e),e=l.next,s=l.next;continue}if(e=l,e===s){o?o===1?(e=J9t(J2(e),t,r),pk(e,t,r,n,i,a,2)):o===2&&$9t(e,t,r,n,i,a):pk(J2(e),t,r,n,i,a,1);break}}}}function Y9t(e){var t=e.prev,r=e,n=e.next;if(Eh(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,o=n.x,s=t.y,u=r.y,l=n.y,f=ia?i>o?i:o:a>o?a:o,d=s>u?s>l?s:l:u>l?u:l,p=n.next;p!==t;){if(p.x>=f&&p.x<=h&&p.y>=c&&p.y<=d&&lS(i,s,a,u,o,l,p.x,p.y)&&Eh(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function K9t(e,t,r,n){var i=e.prev,a=e,o=e.next;if(Eh(i,a,o)>=0)return!1;for(var s=i.x,u=a.x,l=o.x,f=i.y,c=a.y,h=o.y,d=su?s>l?s:l:u>l?u:l,b=f>c?f>h?f:h:c>h?c:h,v=xY(d,p,t,r,n),k=xY(_,b,t,r,n),E=e.prevZ,T=e.nextZ;E&&E.z>=v&&T&&T.z<=k;){if(E.x>=d&&E.x<=_&&E.y>=p&&E.y<=b&&E!==i&&E!==o&&lS(s,f,u,c,l,h,E.x,E.y)&&Eh(E.prev,E,E.next)>=0||(E=E.prevZ,T.x>=d&&T.x<=_&&T.y>=p&&T.y<=b&&T!==i&&T!==o&&lS(s,f,u,c,l,h,T.x,T.y)&&Eh(T.prev,T,T.next)>=0))return!1;T=T.nextZ}for(;E&&E.z>=v;){if(E.x>=d&&E.x<=_&&E.y>=p&&E.y<=b&&E!==i&&E!==o&&lS(s,f,u,c,l,h,E.x,E.y)&&Eh(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;T&&T.z<=k;){if(T.x>=d&&T.x<=_&&T.y>=p&&T.y<=b&&T!==i&&T!==o&&lS(s,f,u,c,l,h,T.x,T.y)&&Eh(T.prev,T,T.next)>=0)return!1;T=T.nextZ}return!0}function J9t(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!i8(i,a)&&dBe(i,n,n.next,a)&&vk(i,a)&&vk(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),mk(n),mk(n.next),n=e=a),n=n.next}while(n!==e);return J2(n)}function $9t(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&sqt(o,s)){var u=pBe(o,s);o=J2(o,o.next),u=J2(u,u.next),pk(o,t,r,n,i,a,0),pk(u,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function Q9t(e,t,r,n){var i=[],a,o,s,u,l;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a&&(a=s,o=r.x=r.x&&r.x>=l&&n!==r.x&&lS(io.x||r.x===o.x&&iqt(o,r)))&&(o=r,c=h)),r=r.next;while(r!==u);return o}function iqt(e,t){return Eh(e.prev,e,t.prev)<0&&Eh(t.next,e,e.next)<0}function nqt(e,t,r,n){var i=e;do i.z===0&&(i.z=xY(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,aqt(i)}function aqt(e){var t,r,n,i,a,o,s,u,l=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||u>0&&n;)s!==0&&(u===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,u--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,l*=2}while(o>1);return e}function xY(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function oqt(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(n-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function sqt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!lqt(e,t)&&(vk(e,t)&&vk(t,e)&&uqt(e,t)&&(Eh(e.prev,e,t.prev)||Eh(e,t.prev,t))||i8(e,t)&&Eh(e.prev,e,e.next)>0&&Eh(t.prev,t,t.next)>0)}function Eh(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function i8(e,t){return e.x===t.x&&e.y===t.y}function dBe(e,t,r,n){var i=t8(Eh(e,t,r)),a=t8(Eh(e,t,n)),o=t8(Eh(r,n,e)),s=t8(Eh(r,n,t));return!!(i!==a&&o!==s||i===0&&e8(e,r,t)||a===0&&e8(e,n,t)||o===0&&e8(r,e,n)||s===0&&e8(r,t,n))}function e8(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function t8(e){return e>0?1:e<0?-1:0}function lqt(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&dBe(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function vk(e,t){return Eh(e.prev,e,e.next)<0?Eh(e,t,e.next)>=0&&Eh(e,e.prev,t)>=0:Eh(e,t,e.prev)<0||Eh(e,e.next,t)<0}function uqt(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function pBe(e,t){var r=new bY(e.i,e.x,e.y),n=new bY(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function cBe(e,t,r,n){var i=new bY(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function mk(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function bY(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}r8.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(wY(e,0,a,r));if(i)for(var s=0,u=t.length;s0&&(n+=e[i-1].length,r.holes.push(n))}return r}});var yBe=Te((Kgr,mBe)=>{"use strict";var fqt=W2();mBe.exports=cqt;function cqt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=fqt(e,t));for(var n=0;n{"use strict";gBe.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var bBe=Te(($gr,xBe)=>{"use strict";xBe.exports=function(){}});var sx=Te((Qgr,wBe)=>{"use strict";var hqt=bBe()();wBe.exports=function(e){return e!==hqt&&e!==null}});var TY=Te((e1r,TBe)=>{"use strict";var dqt=Object.create,pqt=Object.getPrototypeOf,ABe={};TBe.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||dqt;return typeof e!="function"?!1:pqt(e(t(null),ABe))===ABe}});var SY=Te((t1r,SBe)=>{"use strict";var vqt=sx(),mqt={function:!0,object:!0};SBe.exports=function(e){return vqt(e)&&mqt[typeof e]||!1}});var i1=Te((r1r,MBe)=>{"use strict";var yqt=sx();MBe.exports=function(e){if(!yqt(e))throw new TypeError("Cannot use null or undefined");return e}});var kBe=Te((i1r,EBe)=>{"use strict";var MY=Object.create,n8;TY()()||(n8=EY());EBe.exports=function(){var e,t,r;return!n8||n8.level!==1?MY:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(n){if(n==="__proto__"){t[n]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[n]=r}),Object.defineProperties(e,t),Object.defineProperty(n8,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return MY(n===null?e:n,i)})}()});var EY=Te((n1r,CBe)=>{"use strict";var gqt=SY(),_qt=i1(),xqt=Object.prototype.isPrototypeOf,bqt=Object.defineProperty,wqt={configurable:!0,enumerable:!1,writable:!0,value:void 0},a8;a8=function(e,t){if(_qt(e),t===null||gqt(t))return e;throw new TypeError("Prototype must be null or an object")};CBe.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(a8(n,i),i),n}):t=function(n,i){return a8(n,i).__proto__=i,n}:t=function n(i,a){var o;return a8(i,a),o=xqt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&bqt(n.nullPolyfill,"__proto__",wqt),i},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),t={},r,n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{r=n.set,r.call(e,t)}catch(i){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)}());kBe()});var o8=Te((a1r,LBe)=>{"use strict";LBe.exports=TY()()?Object.setPrototypeOf:EY()});var zBe=Te((o1r,PBe)=>{"use strict";var Aqt=SY();PBe.exports=function(e){if(!Aqt(e))throw new TypeError(e+" is not an Object");return e}});var RBe=Te((s1r,IBe)=>{"use strict";var Tqt=Object.create(null),Sqt=Math.random;IBe.exports=function(){var e;do e=Sqt().toString(36).slice(2);while(Tqt[e]);return e}});var $2=Te((l1r,DBe)=>{"use strict";var Mqt=void 0;DBe.exports=function(e){return e!==Mqt&&e!==null}});var s8=Te((u1r,FBe)=>{"use strict";var Eqt=$2(),kqt={object:!0,function:!0,undefined:!0};FBe.exports=function(e){return Eqt(e)?hasOwnProperty.call(kqt,typeof e):!1}});var OBe=Te((f1r,BBe)=>{"use strict";var Cqt=s8();BBe.exports=function(e){if(!Cqt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var NBe=Te((c1r,qBe)=>{"use strict";var Lqt=OBe();qBe.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!Lqt(e)}});var kY=Te((h1r,UBe)=>{"use strict";var Pqt=NBe(),zqt=/^\s*class[\s{/}]/,Iqt=Function.prototype.toString;UBe.exports=function(e){return!(!Pqt(e)||zqt.test(Iqt.call(e)))}});var GBe=Te((d1r,VBe)=>{"use strict";VBe.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var WBe=Te((p1r,HBe)=>{"use strict";HBe.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var XBe=Te((v1r,jBe)=>{"use strict";var Rqt=sx(),Dqt=Object.keys;jBe.exports=function(e){return Dqt(Rqt(e)?Object(e):e)}});var YBe=Te((m1r,ZBe)=>{"use strict";ZBe.exports=WBe()()?Object.keys:XBe()});var JBe=Te((y1r,KBe)=>{"use strict";var Fqt=YBe(),Bqt=i1(),Oqt=Math.max;KBe.exports=function(e,t){var r,n,i=Oqt(arguments.length,2),a;for(e=Object(Bqt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";$Be.exports=GBe()()?Object.assign:JBe()});var CY=Te((_1r,QBe)=>{"use strict";var qqt=sx(),Nqt=Array.prototype.forEach,Uqt=Object.create,Vqt=function(e,t){var r;for(r in e)t[r]=e[r]};QBe.exports=function(e){var t=Uqt(null);return Nqt.call(arguments,function(r){qqt(r)&&Vqt(Object(r),t)}),t}});var tOe=Te((x1r,eOe)=>{"use strict";var LY="razdwatrzy";eOe.exports=function(){return typeof LY.contains!="function"?!1:LY.contains("dwa")===!0&&LY.contains("foo")===!1}});var iOe=Te((b1r,rOe)=>{"use strict";var Gqt=String.prototype.indexOf;rOe.exports=function(e){return Gqt.call(this,e,arguments[1])>-1}});var PY=Te((w1r,nOe)=>{"use strict";nOe.exports=tOe()()?String.prototype.contains:iOe()});var n1=Te((A1r,lOe)=>{"use strict";var u8=$2(),aOe=kY(),oOe=l8(),sOe=CY(),yk=PY(),Hqt=lOe.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],u8(e)?(r=yk.call(e,"c"),n=yk.call(e,"e"),i=yk.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?oOe(sOe(a),o):o};Hqt.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],u8(t)?aOe(t)?u8(r)?aOe(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,u8(e)?(n=yk.call(e,"c"),i=yk.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?oOe(sOe(a),o):o}});var gk=Te((T1r,fOe)=>{"use strict";var uOe=Object.prototype.toString,Wqt=uOe.call(function(){return arguments}());fOe.exports=function(e){return uOe.call(e)===Wqt}});var _k=Te((S1r,hOe)=>{"use strict";var cOe=Object.prototype.toString,jqt=cOe.call("");hOe.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||cOe.call(e)===jqt)||!1}});var pOe=Te((M1r,dOe)=>{"use strict";dOe.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var yOe=Te((E1r,mOe)=>{var vOe=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};mOe.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return vOe()}try{return __global__||vOe()}finally{delete Object.prototype.__global__}}()});var xk=Te((k1r,gOe)=>{"use strict";gOe.exports=pOe()()?globalThis:yOe()});var xOe=Te((C1r,_Oe)=>{"use strict";var Xqt=xk(),zY={object:!0,symbol:!0};_Oe.exports=function(){var e=Xqt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!zY[typeof e.iterator]||!zY[typeof e.toPrimitive]||!zY[typeof e.toStringTag])}});var wOe=Te((L1r,bOe)=>{"use strict";bOe.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var IY=Te((P1r,AOe)=>{"use strict";var Zqt=wOe();AOe.exports=function(e){if(!Zqt(e))throw new TypeError(e+" is not a symbol");return e}});var kOe=Te((z1r,EOe)=>{"use strict";var TOe=n1(),Yqt=Object.create,SOe=Object.defineProperty,Kqt=Object.prototype,MOe=Yqt(null);EOe.exports=function(e){for(var t=0,r,n;MOe[e+(t||"")];)++t;return e+=t||"",MOe[e]=!0,r="@@"+e,SOe(Kqt,r,TOe.gs(null,function(i){n||(n=!0,SOe(this,r,TOe(i)),n=!1)})),r}});var LOe=Te((I1r,COe)=>{"use strict";var Qm=n1(),Vh=xk().Symbol;COe.exports=function(e){return Object.defineProperties(e,{hasInstance:Qm("",Vh&&Vh.hasInstance||e("hasInstance")),isConcatSpreadable:Qm("",Vh&&Vh.isConcatSpreadable||e("isConcatSpreadable")),iterator:Qm("",Vh&&Vh.iterator||e("iterator")),match:Qm("",Vh&&Vh.match||e("match")),replace:Qm("",Vh&&Vh.replace||e("replace")),search:Qm("",Vh&&Vh.search||e("search")),species:Qm("",Vh&&Vh.species||e("species")),split:Qm("",Vh&&Vh.split||e("split")),toPrimitive:Qm("",Vh&&Vh.toPrimitive||e("toPrimitive")),toStringTag:Qm("",Vh&&Vh.toStringTag||e("toStringTag")),unscopables:Qm("",Vh&&Vh.unscopables||e("unscopables"))})}});var IOe=Te((R1r,zOe)=>{"use strict";var POe=n1(),Jqt=IY(),bk=Object.create(null);zOe.exports=function(e){return Object.defineProperties(e,{for:POe(function(t){return bk[t]?bk[t]:bk[t]=e(String(t))}),keyFor:POe(function(t){var r;Jqt(t);for(r in bk)if(bk[r]===t)return r})})}});var FOe=Te((D1r,DOe)=>{"use strict";var Zy=n1(),RY=IY(),f8=xk().Symbol,$qt=kOe(),Qqt=LOe(),eNt=IOe(),tNt=Object.create,DY=Object.defineProperties,c8=Object.defineProperty,Xp,uS,ROe;if(typeof f8=="function")try{String(f8()),ROe=!0}catch(e){}else f8=null;uS=function(t){if(this instanceof uS)throw new TypeError("Symbol is not a constructor");return Xp(t)};DOe.exports=Xp=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return ROe?f8(t):(r=tNt(uS.prototype),t=t===void 0?"":String(t),DY(r,{__description__:Zy("",t),__name__:Zy("",$qt(t))}))};Qqt(Xp);eNt(Xp);DY(uS.prototype,{constructor:Zy(Xp),toString:Zy("",function(){return this.__name__})});DY(Xp.prototype,{toString:Zy(function(){return"Symbol ("+RY(this).__description__+")"}),valueOf:Zy(function(){return RY(this)})});c8(Xp.prototype,Xp.toPrimitive,Zy("",function(){var e=RY(this);return typeof e=="symbol"?e:e.toString()}));c8(Xp.prototype,Xp.toStringTag,Zy("c","Symbol"));c8(uS.prototype,Xp.toStringTag,Zy("c",Xp.prototype[Xp.toStringTag]));c8(uS.prototype,Xp.toPrimitive,Zy("c",Xp.prototype[Xp.toPrimitive]))});var lx=Te((F1r,BOe)=>{"use strict";BOe.exports=xOe()()?xk().Symbol:FOe()});var qOe=Te((B1r,OOe)=>{"use strict";var rNt=i1();OOe.exports=function(){return rNt(this).length=0,this}});var fS=Te((O1r,NOe)=>{"use strict";NOe.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var VOe=Te((q1r,UOe)=>{"use strict";var iNt=$2(),nNt=s8(),aNt=Object.prototype.toString;UOe.exports=function(e){if(!iNt(e))return null;if(nNt(e)){var t=e.toString;if(typeof t!="function"||t===aNt)return null}try{return""+e}catch(r){return null}}});var HOe=Te((N1r,GOe)=>{"use strict";GOe.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var jOe=Te((U1r,WOe)=>{"use strict";var oNt=HOe(),sNt=/[\n\r\u2028\u2029]/g;WOe.exports=function(e){var t=oNt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(sNt,function(r){switch(r){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var FY=Te((V1r,YOe)=>{"use strict";var XOe=$2(),lNt=s8(),uNt=VOe(),fNt=jOe(),ZOe=function(e,t){return e.replace("%v",fNt(t))};YOe.exports=function(e,t,r){if(!lNt(r))throw new TypeError(ZOe(t,e));if(!XOe(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=uNt(r.errorMessage);throw XOe(n)||(n=t),new TypeError(ZOe(n,e))}});var JOe=Te((G1r,KOe)=>{"use strict";var cNt=FY(),hNt=$2();KOe.exports=function(e){return hNt(e)?e:cNt(e,"Cannot use %v",arguments[1])}});var QOe=Te((H1r,$Oe)=>{"use strict";var dNt=FY(),pNt=kY();$Oe.exports=function(e){return pNt(e)?e:dNt(e,"%v is not a plain function",arguments[1])}});var t9e=Te((W1r,e9e)=>{"use strict";e9e.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var i9e=Te((j1r,r9e)=>{"use strict";var vNt=Object.prototype.toString,mNt=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);r9e.exports=function(e){return typeof e=="function"&&mNt(vNt.call(e))}});var a9e=Te((X1r,n9e)=>{"use strict";n9e.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var s9e=Te((Z1r,o9e)=>{"use strict";o9e.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var u9e=Te((Y1r,l9e)=>{"use strict";l9e.exports=a9e()()?Math.sign:s9e()});var c9e=Te((K1r,f9e)=>{"use strict";var yNt=u9e(),gNt=Math.abs,_Nt=Math.floor;f9e.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:yNt(e)*_Nt(gNt(e)))}});var d9e=Te((J1r,h9e)=>{"use strict";var xNt=c9e(),bNt=Math.max;h9e.exports=function(e){return bNt(0,xNt(e))}});var y9e=Te(($1r,m9e)=>{"use strict";var wNt=lx().iterator,ANt=gk(),TNt=i9e(),SNt=d9e(),p9e=fS(),MNt=i1(),ENt=sx(),kNt=_k(),v9e=Array.isArray,BY=Function.prototype.call,Q2={configurable:!0,enumerable:!0,writable:!0,value:null},OY=Object.defineProperty;m9e.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,u,l,f,c,h;if(e=Object(MNt(e)),ENt(t)&&p9e(t),!this||this===Array||!TNt(this)){if(!t){if(ANt(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(v9e(e)){for(o=new Array(s=e.length),i=0;i=55296&&u<=56319&&(h+=e[++i])),h=t?BY.call(t,r,h,a):h,n?(Q2.value=h,OY(o,a,Q2)):o[a]=h,++a;s=a}}if(s===void 0)for(s=SNt(e.length),n&&(o=new n(s)),i=0;i{"use strict";g9e.exports=t9e()()?Array.from:y9e()});var b9e=Te((e_r,x9e)=>{"use strict";var CNt=_9e(),LNt=l8(),PNt=i1();x9e.exports=function(e){var t=Object(PNt(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?CNt(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):LNt(i,e),i}});var T9e=Te((t_r,A9e)=>{"use strict";var zNt=fS(),INt=i1(),RNt=Function.prototype.bind,w9e=Function.prototype.call,DNt=Object.keys,FNt=Object.prototype.propertyIsEnumerable;A9e.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(INt(r)),zNt(n),i=DNt(r),o&&i.sort(typeof o=="function"?RNt.call(o,r):void 0),typeof e!="function"&&(e=i[e]),w9e.call(e,i,function(s,u){return FNt.call(r,s)?w9e.call(n,a,r[s],s,r,u):t})}}});var M9e=Te((r_r,S9e)=>{"use strict";S9e.exports=T9e()("forEach")});var k9e=Te((i_r,E9e)=>{"use strict";var BNt=fS(),ONt=M9e(),qNt=Function.prototype.call;E9e.exports=function(e,t){var r={},n=arguments[2];return BNt(t),ONt(e,function(i,a,o,s){r[a]=qNt.call(t,n,i,a,o,s)}),r}});var z9e=Te((n_r,P9e)=>{"use strict";var NNt=$2(),UNt=JOe(),C9e=QOe(),VNt=b9e(),GNt=CY(),HNt=k9e(),WNt=Function.prototype.bind,jNt=Object.defineProperty,XNt=Object.prototype.hasOwnProperty,L9e;L9e=function(e,t,r){var n=UNt(t)&&C9e(t.value),i;return i=VNt(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&XNt.call(this,e)?n:(t.value=WNt.call(n,r.resolveContext?r.resolveContext(this):this),jNt(this,e,t),this[e])},i};P9e.exports=function(e){var t=GNt(arguments[1]);return NNt(t.resolveContext)&&C9e(t.resolveContext),HNt(e,function(r,n){return L9e(n,r,t)})}});var qY=Te((a_r,F9e)=>{"use strict";var ZNt=qOe(),YNt=l8(),KNt=fS(),JNt=i1(),Bv=n1(),$Nt=z9e(),I9e=lx(),R9e=Object.defineProperty,D9e=Object.defineProperties,wk;F9e.exports=wk=function(e,t){if(!(this instanceof wk))throw new TypeError("Constructor requires 'new'");D9e(this,{__list__:Bv("w",JNt(e)),__context__:Bv("w",t),__nextIndex__:Bv("w",0)}),t&&(KNt(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete wk.prototype.constructor;D9e(wk.prototype,YNt({_next:Bv(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){R9e(this,"__redo__",Bv("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Bv(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,n){r>e&&(this.__redo__[n]=--r)},this)))}),_onClear:Bv(function(){this.__redo__&&ZNt.call(this.__redo__),this.__nextIndex__=0})})));R9e(wk.prototype,I9e.iterator,Bv(function(){return this}))});var U9e=Te((o_r,N9e)=>{"use strict";var B9e=o8(),O9e=PY(),NY=n1(),QNt=lx(),UY=qY(),q9e=Object.defineProperty,cS;cS=N9e.exports=function(e,t){if(!(this instanceof cS))throw new TypeError("Constructor requires 'new'");UY.call(this,e),t?O9e.call(t,"key+value")?t="key+value":O9e.call(t,"key")?t="key":t="value":t="value",q9e(this,"__kind__",NY("",t))};B9e&&B9e(cS,UY);delete cS.prototype.constructor;cS.prototype=Object.create(UY.prototype,{_resolve:NY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});q9e(cS.prototype,QNt.toStringTag,NY("c","Array Iterator"))});var W9e=Te((s_r,H9e)=>{"use strict";var V9e=o8(),h8=n1(),e7t=lx(),VY=qY(),G9e=Object.defineProperty,hS;hS=H9e.exports=function(e){if(!(this instanceof hS))throw new TypeError("Constructor requires 'new'");e=String(e),VY.call(this,e),G9e(this,"__length__",h8("",e.length))};V9e&&V9e(hS,VY);delete hS.prototype.constructor;hS.prototype=Object.create(VY.prototype,{_next:h8(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});G9e(hS.prototype,e7t.toStringTag,h8("c","String Iterator"))});var X9e=Te((l_r,j9e)=>{"use strict";var t7t=gk(),r7t=sx(),i7t=_k(),n7t=lx().iterator,a7t=Array.isArray;j9e.exports=function(e){return r7t(e)?a7t(e)||i7t(e)||t7t(e)?!0:typeof e[n7t]=="function":!1}});var Y9e=Te((u_r,Z9e)=>{"use strict";var o7t=X9e();Z9e.exports=function(e){if(!o7t(e))throw new TypeError(e+" is not iterable");return e}});var GY=Te((f_r,$9e)=>{"use strict";var s7t=gk(),l7t=_k(),K9e=U9e(),u7t=W9e(),f7t=Y9e(),J9e=lx().iterator;$9e.exports=function(e){return typeof f7t(e)[J9e]=="function"?e[J9e]():s7t(e)?new K9e(e):l7t(e)?new u7t(e):new K9e(e)}});var eqe=Te((c_r,Q9e)=>{"use strict";var c7t=gk(),h7t=fS(),d7t=_k(),p7t=GY(),v7t=Array.isArray,HY=Function.prototype.call,m7t=Array.prototype.some;Q9e.exports=function(e,t){var r,n=arguments[2],i,a,o,s,u,l,f;if(v7t(e)||c7t(e)?r="array":d7t(e)?r="string":e=p7t(e),h7t(t),a=function(){o=!0},r==="array"){m7t.call(e,function(c){return HY.call(t,n,c,a),o});return}if(r==="string"){for(u=e.length,s=0;s=55296&&f<=56319&&(l+=e[++s])),HY.call(t,n,l,a),!o);++s);return}for(i=e.next();!i.done;){if(HY.call(t,n,i.value,a),o)return;i=e.next()}}});var rqe=Te((h_r,tqe)=>{"use strict";tqe.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var aqe=Te((d_r,nqe)=>{"use strict";var y7t=sx(),p8=o8(),d8=zBe(),g7t=i1(),_7t=RBe(),a1=n1(),x7t=GY(),b7t=eqe(),w7t=lx().toStringTag,iqe=rqe(),A7t=Array.isArray,jY=Object.defineProperty,WY=Object.prototype.hasOwnProperty,T7t=Object.getPrototypeOf,ux;nqe.exports=ux=function(){var e=arguments[0],t;if(!(this instanceof ux))throw new TypeError("Constructor requires 'new'");return t=iqe&&p8&&WeakMap!==ux?p8(new WeakMap,T7t(this)):this,y7t(e)&&(A7t(e)||(e=x7t(e))),jY(t,"__weakMapData__",a1("c","$weakMap$"+_7t())),e&&b7t(e,function(r){g7t(r),t.set(r[0],r[1])}),t};iqe&&(p8&&p8(ux,WeakMap),ux.prototype=Object.create(WeakMap.prototype,{constructor:a1(ux)}));Object.defineProperties(ux.prototype,{delete:a1(function(e){return WY.call(d8(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:a1(function(e){if(WY.call(d8(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:a1(function(e){return WY.call(d8(e),this.__weakMapData__)}),set:a1(function(e,t){return jY(d8(e),this.__weakMapData__,a1("c",t)),this}),toString:a1(function(){return"[object WeakMap]"})});jY(ux.prototype,w7t,a1("c","WeakMap"))});var XY=Te((p_r,oqe)=>{"use strict";oqe.exports=_Be()()?WeakMap:aqe()});var lqe=Te((v_r,sqe)=>{"use strict";sqe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a{"use strict";var v8=J_(),S7t=W2(),YY=Uh(),M7t=Xy(),E7t=j2(),uqe=vBe(),k7t=yBe(),{float32:C7t,fract32:ZY}=JF(),L7t=XY(),fqe=tS(),P7t=lqe(),z7t=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -2247,7 +2247,7 @@ void main() { fragColor = color / 255.; } -`,L7t=` +`,I7t=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id; @@ -2265,7 +2265,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`,P7t=` +`,R7t=` precision highp float; attribute vec2 position, positionFract; @@ -2293,14 +2293,14 @@ void main() { fragColor = color / 255.; fragColor.a *= opacity; } -`,z7t=` +`,D7t=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } -`,I7t=` +`,F7t=` precision highp float; attribute vec2 aCoord, bCoord, nextCoord, prevCoord; @@ -2504,7 +2504,7 @@ void main() { } } } -`,R7t=` +`,B7t=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; @@ -2584,7 +2584,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`;uqe.exports=Bc;function Bc(e,t){if(!(this instanceof Bc))return new Bc(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Bc.shaders.has(e)?Bc.shaders.get(e):Bc.shaders.set(e,Bc.createShaders(e)).get(e),this.update(t)}Bc.dashMult=2;Bc.maxPatternLength=256;Bc.precisionThreshold=3e6;Bc.maxPoints=1e4;Bc.maxLines=2048;Bc.shaders=new E7t;Bc.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(YY({vert:C7t,frag:L7t,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(YY({cull:{enable:!0,face:"back"},vert:I7t,frag:R7t,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){i=n}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:P7t,frag:z7t,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Bc.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Bc.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Bc.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Bc.precisionThreshold||t.scale[1]*t.viewport.height>Bc.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Bc.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Bc.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=A7t(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=YY({},Bc.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,aL-_),k=[],E=0,T=o.hole!=null?o.hole[0]:null;if(T!=null){let L=k7t(v,_=>_>=T);v=v.slice(0,L),v.push(T)}for(let L=0;Lm-T+(v[L]-E)),M=sqe(_,C);M=M.map(m=>m+E+(m+E{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var pqe=Te((v_r,dqe)=>{"use strict";var D7t=W2(),F7t=J_(),B7t=yY(),O7t=Xy(),fqe=Uh(),cqe=j2(),{float32:q7t,fract32:JY}=JF();dqe.exports=N7t;var hqe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function N7t(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,s,u,l={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},f=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),u=e.buffer({usage:"static",type:"float",data:hqe}),p(t),n=e({vert:` +`;cqe.exports=Bc;function Bc(e,t){if(!(this instanceof Bc))return new Bc(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Bc.shaders.has(e)?Bc.shaders.get(e):Bc.shaders.set(e,Bc.createShaders(e)).get(e),this.update(t)}Bc.dashMult=2;Bc.maxPatternLength=256;Bc.precisionThreshold=3e6;Bc.maxPoints=1e4;Bc.maxLines=2048;Bc.shaders=new L7t;Bc.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(YY({vert:z7t,frag:I7t,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(YY({cull:{enable:!0,face:"back"},vert:F7t,frag:B7t,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){i=n}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:R7t,frag:D7t,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Bc.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Bc.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Bc.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Bc.precisionThreshold||t.scale[1]*t.viewport.height>Bc.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Bc.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Bc.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=M7t(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=YY({},Bc.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,aL-x),k=[],E=0,T=o.hole!=null?o.hole[0]:null;if(T!=null){let L=P7t(v,x=>x>=T);v=v.slice(0,L),v.push(T)}for(let L=0;Lm-T+(v[L]-E)),M=uqe(x,C);M=M.map(m=>m+E+(m+E{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var mqe=Te((y_r,vqe)=>{"use strict";var O7t=W2(),q7t=J_(),N7t=yY(),U7t=Xy(),hqe=Uh(),dqe=j2(),{float32:V7t,fract32:JY}=JF();vqe.exports=G7t;var pqe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function G7t(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,s,u,l={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},f=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),u=e.buffer({usage:"static",type:"float",data:pqe}),p(t),n=e({vert:` precision highp float; attribute vec2 position, positionFract; @@ -2628,10 +2628,10 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= opacity; } - `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(b,v)=>[v.viewport.x,v.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,v)=>v.offset*4,divisor:1},position:{buffer:i,offset:(b,v)=>v.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,v)=>v.offset*8,divisor:1},error:{buffer:s,offset:(b,v)=>v.offset*16,divisor:1},direction:{buffer:u,stride:24,offset:0},lineOffset:{buffer:u,stride:24,offset:8},capOffset:{buffer:u,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:hqe.length}),fqe(c,{update:p,draw:h,destroy:x,regl:e,gl:r,canvas:r.canvas,groups:f}),c;function c(b){b?p(b):b===null&&x(),h()}function h(b){if(typeof b=="number")return d(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),f.forEach((v,k)=>{if(v){if(b&&(b[k]?v.draw=!0:v.draw=!1),!v.draw){v.draw=!0;return}d(k)}})}function d(b){typeof b=="number"&&(b=f[b]),b!=null&&b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1&&(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b))}function p(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let v=0,k=0;if(c.groups=f=b.map((L,_)=>{let C=f[_];if(L)typeof L=="function"?L={after:L}:typeof L[0]=="number"&&(L={positions:L});else return C;return L=O7t(L,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),C||(f[_]=C={id:_,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},L=fqe({},l,L)),B7t(C,L,[{lineWidth:M=>+M*.5,capSize:M=>+M*.5,opacity:parseFloat,errors:M=>(M=cqe(M),k+=M.length,M),positions:(M,m)=>(M=cqe(M,"float64"),m.count=Math.floor(M.length/2),m.bounds=D7t(M,2),m.offset=v,v+=m.count,M)},{color:(M,m)=>{let P=m.count;if(M||(M="transparent"),!Array.isArray(M)||typeof M[0]=="number"){let B=M;M=Array(P);for(let F=0;F{let A=m.bounds;return M||(M=A),m.scale=[1/(M[2]-M[0]),1/(M[3]-M[1])],m.translate=[-M[0],-M[1]],m.scaleFract=JY(m.scale),m.translateFract=JY(m.translate),M},viewport:M=>{let m;return Array.isArray(M)?m={x:M[0],y:M[1],width:M[2]-M[0],height:M[3]-M[1]}:M?(m={x:M.x||M.left||0,y:M.y||M.top||0},M.right?m.width=M.right-m.x:m.width=M.w||M.width||0,M.bottom?m.height=M.bottom-m.y:m.height=M.h||M.height||0):m={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},m}}]),C}),v||k){let L=f.reduce((m,P,A)=>m+(P?P.count:0),0),_=new Float64Array(L*2),C=new Uint8Array(L*4),M=new Float32Array(L*4);f.forEach((m,P)=>{if(!m)return;let{positions:A,count:B,offset:F,color:U,errors:G}=m;B&&(C.set(U,F*4),M.set(G,F*4),_.set(A,F*2))});var E=q7t(_);i(E);var T=JY(_,E);a(T),o(C),s(M)}}function x(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),u.destroy()}}});var yqe=Te((m_r,mqe)=>{var vqe=/[\'\"]/;mqe.exports=function(t){return t?(vqe.test(t.charAt(0))&&(t=t.substr(1)),vqe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var $Y=Te((y_r,U7t)=>{U7t.exports=["inherit","initial","unset"]});var QY=Te((g_r,V7t)=>{V7t.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var eK=Te((__r,G7t)=>{G7t.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var tK=Te((x_r,H7t)=>{H7t.exports=["normal","italic","oblique"]});var rK=Te((b_r,W7t)=>{W7t.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var bqe=Te((w_r,xqe)=>{"use strict";function gqe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(u){var l=new RegExp(["\\",u[0],"[^\\",u[0],"\\",u[1],"]*\\",u[1]].join("")),f=[];function c(h,d,p){var x=r.push(h.slice(u[0].length,-u[1].length))-1;return f.push(x),i+x+i}r.forEach(function(h,d){for(var p,x=0;h!=p;)if(p=h,h=h.replace(l,c),x++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),f=f.reverse(),r=r.map(function(h){return f.forEach(function(d){h=h.replace(new RegExp("(\\"+i+d+"\\"+i+")","g"),u[0]+"$1"+u[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(u,l,f){for(var c=[],h,d=0;h=o.exec(u);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(u.slice(0,h.index)),c.push(s(l[h[1]],l)),u=u.slice(h.index+h[0].length)}return c.push(u),c}return a?r:s(r[0],r)}function _qe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,s)}return n}return e.reduce(function u(l,f){return Array.isArray(f)&&(f=f.reduce(u,"")),l+f},"");function s(u,l){if(e[l]==null)throw Error("Reference "+l+"is undefined");return e[l]}}function iK(e,t){return Array.isArray(e)?_qe(e,t):gqe(e,t)}iK.parse=gqe;iK.stringify=_qe;xqe.exports=iK});var Tqe=Te((A_r,Aqe)=>{"use strict";var wqe=bqe();Aqe.exports=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var i=wqe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],u=0;u{j7t.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var nK=Te((S_r,Mqe)=>{"use strict";var X7t=Sqe();Mqe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||X7t.indexOf(t)!==-1}}});var Lqe=Te((M_r,Cqe)=>{"use strict";var Z7t=yqe(),Y7t=$Y(),K7t=QY(),J7t=eK(),$7t=tK(),Q7t=rK(),aK=Tqe(),eUt=nK().isSize;Cqe.exports=kqe;var wk=kqe.cache={};function kqe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(wk[e])return wk[e];if(e==="")throw new Error("Cannot parse an empty string.");if(K7t.indexOf(e)!==-1)return wk[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=aK(e,/\s+/),n;n=r.shift();){if(Y7t.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),wk[e]=t;if($7t.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(Q7t.indexOf(n)!==-1){t.stretch=n;continue}if(J7t.indexOf(n)!==-1){t.weight=n;continue}if(eUt(n)){var i=aK(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=Eqe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=Eqe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=aK(r.join(" "),/\s*,\s*/).map(Z7t),wk[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function Eqe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var sK=Te((E_r,Pqe)=>{"use strict";var tUt=Xy(),rUt=nK().isSize,iUt=Tk($Y()),nUt=Tk(QY()),aUt=Tk(eK()),oUt=Tk(tK()),sUt=Tk(rK()),lUt={normal:1,"small-caps":1},uUt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},oK={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};Pqe.exports=function(t){if(t=tUt(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&Ak(t.system,nUt),t.system;if(Ak(t.style,oUt),Ak(t.variant,lUt),Ak(t.weight,aUt),Ak(t.stretch,sUt),t.size==null&&(t.size=oK.size),typeof t.size=="number"&&(t.size+="px"),!rUt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=oK.family),Array.isArray(t.family)&&(t.family.length||(t.family=[oK.family]),t.family=t.family.map(function(n){return uUt[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function Ak(e,t){if(e&&!t[e]&&!iUt[e])throw Error("Unknown keyword `"+e+"`");return e}function Tk(e){for(var t={},r=0;r{"use strict";zqe.exports={parse:Lqe(),stringify:sK()}});var Rqe=Te((lK,uK)=>{(function(e,t){typeof lK=="object"&&typeof uK!="undefined"?uK.exports=t():e.createREGL=t()})(lK,function(){"use strict";var e=function(Be,qt){for(var ar=Object.keys(qt),Qr=0;Qr1&&qt===ar&&(qt==='"'||qt==="'"))return['"'+o(Be.substr(1,Be.length-2))+'"'];var Qr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Be);if(Qr)return s(Be.substr(0,Qr.index)).concat(s(Qr[1])).concat(s(Be.substr(Qr.index+Qr[0].length)));var mi=Be.split(".");if(mi.length===1)return['"'+o(Be)+'"'];for(var fi=[],pi=0;pi65535)<<4,Be>>>=qt,ar=(Be>255)<<3,Be>>>=ar,qt|=ar,ar=(Be>15)<<2,Be>>>=ar,qt|=ar,ar=(Be>3)<<1,Be>>>=ar,qt|=ar,qt|Be>>1}function N(){var Be=M(8,function(){return[]});function qt(fi){var pi=j(fi),on=Be[H(pi)>>2];return on.length>0?on.pop():new ArrayBuffer(pi)}function ar(fi){Be[H(fi.byteLength)>>2].push(fi)}function Qr(fi,pi){var on=null;switch(fi){case m:on=new Int8Array(qt(pi),0,pi);break;case P:on=new Uint8Array(qt(pi),0,pi);break;case A:on=new Int16Array(qt(2*pi),0,pi);break;case B:on=new Uint16Array(qt(2*pi),0,pi);break;case F:on=new Int32Array(qt(4*pi),0,pi);break;case U:on=new Uint32Array(qt(4*pi),0,pi);break;case G:on=new Float32Array(qt(4*pi),0,pi);break;default:return null}return on.length!==pi?on.subarray(0,pi):on}function mi(fi){ar(fi.buffer)}return{alloc:qt,free:ar,allocType:Qr,freeType:mi}}var W=N();W.zero=N();var re=3408,ae=3410,be=3411,Pe=3412,Ce=3413,de=3414,te=3415,ke=33901,Ee=33902,Me=3379,Ne=3386,Fe=34921,ye=36347,Ve=36348,ce=35661,Ye=35660,nt=34930,gt=36349,Nt=34076,it=34024,Ke=7936,kt=7937,Tt=7938,St=35724,Dt=34047,Zt=36063,Et=34852,Ae=3553,at=34067,wt=34069,vt=33984,st=6408,Ue=5126,rt=5121,$e=36160,zt=36053,Yt=36064,hr=16384,yr=function(Be,qt){var ar=1;qt.ext_texture_filter_anisotropic&&(ar=Be.getParameter(Dt));var Qr=1,mi=1;qt.webgl_draw_buffers&&(Qr=Be.getParameter(Et),mi=Be.getParameter(Zt));var fi=!!qt.oes_texture_float;if(fi){var pi=Be.createTexture();Be.bindTexture(Ae,pi),Be.texImage2D(Ae,0,st,1,1,0,st,Ue,null);var on=Be.createFramebuffer();if(Be.bindFramebuffer($e,on),Be.framebufferTexture2D($e,Yt,Ae,pi,0),Be.bindTexture(Ae,null),Be.checkFramebufferStatus($e)!==zt)fi=!1;else{Be.viewport(0,0,1,1),Be.clearColor(1,0,0,1),Be.clear(hr);var Bn=W.allocType(Ue,4);Be.readPixels(0,0,1,1,st,Ue,Bn),Be.getError()?fi=!1:(Be.deleteFramebuffer(on),Be.deleteTexture(pi),fi=Bn[0]===1),W.freeType(Bn)}}var Ln=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!Ln){var Ls=Be.createTexture(),ua=W.allocType(rt,36);Be.activeTexture(vt),Be.bindTexture(at,Ls),Be.texImage2D(wt,0,st,3,3,0,st,rt,ua),W.freeType(ua),Be.bindTexture(at,null),Be.deleteTexture(Ls),wn=!Be.getError()}return{colorBits:[Be.getParameter(ae),Be.getParameter(be),Be.getParameter(Pe),Be.getParameter(Ce)],depthBits:Be.getParameter(de),stencilBits:Be.getParameter(te),subpixelBits:Be.getParameter(re),extensions:Object.keys(qt).filter(function(Hn){return!!qt[Hn]}),maxAnisotropic:ar,maxDrawbuffers:Qr,maxColorAttachments:mi,pointSizeDims:Be.getParameter(ke),lineWidthDims:Be.getParameter(Ee),maxViewportDims:Be.getParameter(Ne),maxCombinedTextureUnits:Be.getParameter(ce),maxCubeMapSize:Be.getParameter(Nt),maxRenderbufferSize:Be.getParameter(it),maxTextureUnits:Be.getParameter(nt),maxTextureSize:Be.getParameter(Me),maxAttributes:Be.getParameter(Fe),maxVertexUniforms:Be.getParameter(ye),maxVertexTextureUnits:Be.getParameter(Ye),maxVaryingVectors:Be.getParameter(Ve),maxFragmentUniforms:Be.getParameter(gt),glsl:Be.getParameter(St),renderer:Be.getParameter(kt),vendor:Be.getParameter(Ke),version:Be.getParameter(Tt),readFloat:fi,npotTextureCube:wn}},br=function(Be){return Be instanceof Uint8Array||Be instanceof Uint16Array||Be instanceof Uint32Array||Be instanceof Int8Array||Be instanceof Int16Array||Be instanceof Int32Array||Be instanceof Float32Array||Be instanceof Float64Array||Be instanceof Uint8ClampedArray};function Ut(Be){return!!Be&&typeof Be=="object"&&Array.isArray(Be.shape)&&Array.isArray(Be.stride)&&typeof Be.offset=="number"&&Be.shape.length===Be.stride.length&&(Array.isArray(Be.data)||br(Be.data))}var Ie=function(Be){return Object.keys(Be).map(function(qt){return Be[qt]})},xe={shape:fe,flatten:ge};function Oe(Be,qt,ar){for(var Qr=0;Qr0){var hs;if(Array.isArray(_i[0])){Kn=ii(_i);for(var $i=1,Ui=1;Ui0){if(typeof $i[0]=="number"){var On=W.allocType(Yi.dtype,$i.length);_r(On,$i),Kn(On,ro),W.freeType(On)}else if(Array.isArray($i[0])||br($i[0])){na=ii($i);var In=nn($i,na,Yi.dtype);Kn(In,ro),W.freeType(In)}}}else if(Ut($i)){na=$i.shape;var Va=$i.stride,_s=0,ul=0,Qn=0,Mo=0;na.length===1?(_s=na[0],ul=1,Qn=Va[0],Mo=0):na.length===2&&(_s=na[0],ul=na[1],Qn=Va[0],Mo=Va[1]);var nl=Array.isArray($i.data)?Yi.dtype:Wt($i.data),pl=W.allocType(nl,_s*ul);Lr(pl,$i.data,_s,ul,Qn,Mo,$i.offset),Kn(pl,ro),W.freeType(pl)}return ga}return dn||ga(Wr),ga._reglType="buffer",ga._buffer=Yi,ga.subdata=hs,ar.profile&&(ga.stats=Yi.stats),ga.destroy=function(){ua(Yi)},ga}function Ni(){Ie(fi).forEach(function(Wr){Wr.buffer=Be.createBuffer(),Be.bindBuffer(Wr.type,Wr.buffer),Be.bufferData(Wr.type,Wr.persistentData||Wr.byteLength,Wr.usage)})}return ar.profile&&(qt.getTotalBufferSize=function(){var Wr=0;return Object.keys(fi).forEach(function(_i){Wr+=fi[_i].stats.size}),Wr}),{create:Hn,createStream:Bn,destroyStream:Ln,clear:function(){Ie(fi).forEach(ua),on.forEach(ua)},getBuffer:function(Wr){return Wr&&Wr._buffer instanceof pi?Wr._buffer:null},restore:Ni,_initBuffer:Ls}}var Ir=0,Gr=0,jr=1,yi=1,Ei=4,Vi=4,ti={points:Ir,point:Gr,lines:jr,line:yi,triangles:Ei,triangle:Vi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},en=0,Yr=1,oi=4,Bi=5120,an=5121,rn=5122,Fi=5123,Ri=5124,xn=5125,xi=34963,Xr=35040,ft=35044;function tr(Be,qt,ar,Qr){var mi={},fi=0,pi={uint8:an,uint16:Fi};qt.oes_element_index_uint&&(pi.uint32=xn);function on(Ni){this.id=fi++,mi[this.id]=this,this.buffer=Ni,this.primType=oi,this.vertCount=0,this.type=0}on.prototype.bind=function(){this.buffer.bind()};var Bn=[];function Ln(Ni){var Wr=Bn.pop();return Wr||(Wr=new on(ar.create(null,xi,!0,!1)._buffer)),Ls(Wr,Ni,Xr,-1,-1,0,0),Wr}function wn(Ni){Bn.push(Ni)}function Ls(Ni,Wr,_i,dn,En,Yi,ga){Ni.buffer.bind();var Kn;if(Wr){var hs=ga;!ga&&(!br(Wr)||Ut(Wr)&&!br(Wr.data))&&(hs=qt.oes_element_index_uint?xn:Fi),ar._initBuffer(Ni.buffer,Wr,_i,hs,3)}else Be.bufferData(xi,Yi,_i),Ni.buffer.dtype=Kn||an,Ni.buffer.usage=_i,Ni.buffer.dimension=3,Ni.buffer.byteLength=Yi;if(Kn=ga,!ga){switch(Ni.buffer.dtype){case an:case Bi:Kn=an;break;case Fi:case rn:Kn=Fi;break;case xn:case Ri:Kn=xn;break;default:}Ni.buffer.dtype=Kn}Ni.type=Kn;var $i=En;$i<0&&($i=Ni.buffer.byteLength,Kn===Fi?$i>>=1:Kn===xn&&($i>>=2)),Ni.vertCount=$i;var Ui=dn;if(dn<0){Ui=oi;var ro=Ni.buffer.dimension;ro===1&&(Ui=en),ro===2&&(Ui=Yr),ro===3&&(Ui=oi)}Ni.primType=Ui}function ua(Ni){Qr.elementsCount--,delete mi[Ni.id],Ni.buffer.destroy(),Ni.buffer=null}function Hn(Ni,Wr){var _i=ar.create(null,xi,!0),dn=new on(_i._buffer);Qr.elementsCount++;function En(Yi){if(!Yi)_i(),dn.primType=oi,dn.vertCount=0,dn.type=an;else if(typeof Yi=="number")_i(Yi),dn.primType=oi,dn.vertCount=Yi|0,dn.type=an;else{var ga=null,Kn=ft,hs=-1,$i=-1,Ui=0,ro=0;Array.isArray(Yi)||br(Yi)||Ut(Yi)?ga=Yi:("data"in Yi&&(ga=Yi.data),"usage"in Yi&&(Kn=Ci[Yi.usage]),"primitive"in Yi&&(hs=ti[Yi.primitive]),"count"in Yi&&($i=Yi.count|0),"type"in Yi&&(ro=pi[Yi.type]),"length"in Yi?Ui=Yi.length|0:(Ui=$i,ro===Fi||ro===rn?Ui*=2:(ro===xn||ro===Ri)&&(Ui*=4))),Ls(dn,ga,Kn,hs,$i,Ui,ro)}return En}return En(Ni),En._reglType="elements",En._elements=dn,En.subdata=function(Yi,ga){return _i.subdata(Yi,ga),En},En.destroy=function(){ua(dn)},En}return{create:Hn,createStream:Ln,destroyStream:wn,getElements:function(Ni){return typeof Ni=="function"&&Ni._elements instanceof on?Ni._elements:null},clear:function(){Ie(mi).forEach(ua)}}}var pr=new Float32Array(1),gr=new Uint32Array(pr.buffer),Zr=5123;function Ai(Be){for(var qt=W.allocType(Zr,Be.length),ar=0;ar>>31<<15,fi=(Qr<<1>>>24)-127,pi=Qr>>13&1023;if(fi<-24)qt[ar]=mi;else if(fi<-14){var on=-14-fi;qt[ar]=mi+(pi+1024>>on)}else fi>15?qt[ar]=mi+31744:qt[ar]=mi+(fi+15<<10)+pi}return qt}function Qi(Be){return Array.isArray(Be)||br(Be)}var ni=34467,Zi=3553,aa=34067,Mn=34069,Un=6408,Ga=6406,ma=6407,oa=6409,ka=6410,so=32854,Kr=32855,Ia=36194,Yo=32819,fa=32820,kn=33635,Ta=34042,ys=6402,uo=34041,ls=35904,$a=35906,fo=36193,mn=33776,ra=33777,wa=33778,ws=33779,Co=35986,Po=35987,ji=34798,gn=35840,Ps=35841,Ha=35842,Sn=35843,ao=36196,Ba=5121,Ko=5123,Qo=5125,Wi=5126,Sa=10242,Qa=10243,vn=10497,da=33071,la=33648,vo=10240,As=10241,ps=9728,co=9729,mo=9984,No=9985,jn=9986,Go=9987,Ys=33170,qs=4352,Ns=4353,Oa=4354,ha=34046,Vs=3317,Ya=37440,_n=37441,Vn=37443,wo=37444,Ra=33984,Xn=[mo,jn,No,Go],un=[0,oa,ka,ma,Un],$n={};$n[oa]=$n[Ga]=$n[ys]=1,$n[uo]=$n[ka]=2,$n[ma]=$n[ls]=3,$n[Un]=$n[$a]=4;function Ka(Be){return"[object "+Be+"]"}var qn=Ka("HTMLCanvasElement"),Eo=Ka("OffscreenCanvas"),Ja=Ka("CanvasRenderingContext2D"),lo=Ka("ImageBitmap"),eo=Ka("HTMLImageElement"),sa=Ka("HTMLVideoElement"),es=Object.keys(pe).concat([qn,Eo,Ja,lo,eo,sa]),Na=[];Na[Ba]=1,Na[Wi]=4,Na[fo]=2,Na[Ko]=2,Na[Qo]=4;var tn=[];tn[so]=2,tn[Kr]=2,tn[Ia]=2,tn[uo]=4,tn[mn]=.5,tn[ra]=.5,tn[wa]=1,tn[ws]=1,tn[Co]=.5,tn[Po]=1,tn[ji]=1,tn[gn]=.5,tn[Ps]=.25,tn[Ha]=.5,tn[Sn]=.25,tn[ao]=.5;function Pa(Be){return Array.isArray(Be)&&(Be.length===0||typeof Be[0]=="number")}function to(Be){if(!Array.isArray(Be))return!1;var qt=Be.length;return!(qt===0||!Qi(Be[0]))}function yo(Be){return Object.prototype.toString.call(Be)}function Jo(Be){return yo(Be)===qn}function Ao(Be){return yo(Be)===Eo}function Dn(Be){return yo(Be)===Ja}function _a(Be){return yo(Be)===lo}function Ws(Be){return yo(Be)===eo}function Ca(Be){return yo(Be)===sa}function Es(Be){if(!Be)return!1;var qt=yo(Be);return es.indexOf(qt)>=0?!0:Pa(Be)||to(Be)||Ut(Be)}function Ts(Be){return pe[Object.prototype.toString.call(Be)]|0}function Ho(Be,qt){var ar=qt.length;switch(Be.type){case Ba:case Ko:case Qo:case Wi:var Qr=W.allocType(Be.type,ar);Qr.set(qt),Be.data=Qr;break;case fo:Be.data=Ai(qt);break;default:}}function Wa(Be,qt){return W.allocType(Be.type===fo?Wi:Be.type,qt)}function To(Be,qt){Be.type===fo?(Be.data=Ai(qt),W.freeType(qt)):Be.data=qt}function ts(Be,qt,ar,Qr,mi,fi){for(var pi=Be.width,on=Be.height,Bn=Be.channels,Ln=pi*on*Bn,wn=Wa(Be,Ln),Ls=0,ua=0;ua=1;)on+=pi*Bn*Bn,Bn/=2;return on}else return pi*ar*Qr}function qa(Be,qt,ar,Qr,mi,fi,pi){var on={"don't care":qs,"dont care":qs,nice:Oa,fast:Ns},Bn={repeat:vn,clamp:da,mirror:la},Ln={nearest:ps,linear:co},wn=e({mipmap:Go,"nearest mipmap nearest":mo,"linear mipmap nearest":No,"nearest mipmap linear":jn,"linear mipmap linear":Go},Ln),Ls={none:0,browser:wo},ua={uint8:Ba,rgba4:Yo,rgb565:kn,"rgb5 a1":fa},Hn={alpha:Ga,luminance:oa,"luminance alpha":ka,rgb:ma,rgba:Un,rgba4:so,"rgb5 a1":Kr,rgb565:Ia},Ni={};qt.ext_srgb&&(Hn.srgb=ls,Hn.srgba=$a),qt.oes_texture_float&&(ua.float32=ua.float=Wi),qt.oes_texture_half_float&&(ua.float16=ua["half float"]=fo),qt.webgl_depth_texture&&(e(Hn,{depth:ys,"depth stencil":uo}),e(ua,{uint16:Ko,uint32:Qo,"depth stencil":Ta})),qt.webgl_compressed_texture_s3tc&&e(Ni,{"rgb s3tc dxt1":mn,"rgba s3tc dxt1":ra,"rgba s3tc dxt3":wa,"rgba s3tc dxt5":ws}),qt.webgl_compressed_texture_atc&&e(Ni,{"rgb atc":Co,"rgba atc explicit alpha":Po,"rgba atc interpolated alpha":ji}),qt.webgl_compressed_texture_pvrtc&&e(Ni,{"rgb pvrtc 4bppv1":gn,"rgb pvrtc 2bppv1":Ps,"rgba pvrtc 4bppv1":Ha,"rgba pvrtc 2bppv1":Sn}),qt.webgl_compressed_texture_etc1&&(Ni["rgb etc1"]=ao);var Wr=Array.prototype.slice.call(Be.getParameter(ni));Object.keys(Ni).forEach(function(ne){var Le=Ni[ne];Wr.indexOf(Le)>=0&&(Hn[ne]=Le)});var _i=Object.keys(Hn);ar.textureFormats=_i;var dn=[];Object.keys(Hn).forEach(function(ne){var Le=Hn[ne];dn[Le]=ne});var En=[];Object.keys(ua).forEach(function(ne){var Le=ua[ne];En[Le]=ne});var Yi=[];Object.keys(Ln).forEach(function(ne){var Le=Ln[ne];Yi[Le]=ne});var ga=[];Object.keys(wn).forEach(function(ne){var Le=wn[ne];ga[Le]=ne});var Kn=[];Object.keys(Bn).forEach(function(ne){var Le=Bn[ne];Kn[Le]=ne});var hs=_i.reduce(function(ne,Le){var Ze=Hn[Le];return Ze===oa||Ze===Ga||Ze===oa||Ze===ka||Ze===ys||Ze===uo||qt.ext_srgb&&(Ze===ls||Ze===$a)?ne[Ze]=Ze:Ze===Kr||Le.indexOf("rgba")>=0?ne[Ze]=Un:ne[Ze]=ma,ne},{});function $i(){this.internalformat=Un,this.format=Un,this.type=Ba,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=wo,this.width=0,this.height=0,this.channels=0}function Ui(ne,Le){ne.internalformat=Le.internalformat,ne.format=Le.format,ne.type=Le.type,ne.compressed=Le.compressed,ne.premultiplyAlpha=Le.premultiplyAlpha,ne.flipY=Le.flipY,ne.unpackAlignment=Le.unpackAlignment,ne.colorSpace=Le.colorSpace,ne.width=Le.width,ne.height=Le.height,ne.channels=Le.channels}function ro(ne,Le){if(!(typeof Le!="object"||!Le)){if("premultiplyAlpha"in Le&&(ne.premultiplyAlpha=Le.premultiplyAlpha),"flipY"in Le&&(ne.flipY=Le.flipY),"alignment"in Le&&(ne.unpackAlignment=Le.alignment),"colorSpace"in Le&&(ne.colorSpace=Ls[Le.colorSpace]),"type"in Le){var Ze=Le.type;ne.type=ua[Ze]}var Ct=ne.width,dr=ne.height,Er=ne.channels,lr=!1;"shape"in Le?(Ct=Le.shape[0],dr=Le.shape[1],Le.shape.length===3&&(Er=Le.shape[2],lr=!0)):("radius"in Le&&(Ct=dr=Le.radius),"width"in Le&&(Ct=Le.width),"height"in Le&&(dr=Le.height),"channels"in Le&&(Er=Le.channels,lr=!0)),ne.width=Ct|0,ne.height=dr|0,ne.channels=Er|0;var Je=!1;if("format"in Le){var ht=Le.format,bt=ne.internalformat=Hn[ht];ne.format=hs[bt],ht in ua&&("type"in Le||(ne.type=ua[ht])),ht in Ni&&(ne.compressed=!0),Je=!0}!lr&&Je?ne.channels=$n[ne.format]:lr&&!Je&&ne.channels!==un[ne.format]&&(ne.format=ne.internalformat=un[ne.channels])}}function na(ne){Be.pixelStorei(Ya,ne.flipY),Be.pixelStorei(_n,ne.premultiplyAlpha),Be.pixelStorei(Vn,ne.colorSpace),Be.pixelStorei(Vs,ne.unpackAlignment)}function On(){$i.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function In(ne,Le){var Ze=null;if(Es(Le)?Ze=Le:Le&&(ro(ne,Le),"x"in Le&&(ne.xOffset=Le.x|0),"y"in Le&&(ne.yOffset=Le.y|0),Es(Le.data)&&(Ze=Le.data)),Le.copy){var Ct=mi.viewportWidth,dr=mi.viewportHeight;ne.width=ne.width||Ct-ne.xOffset,ne.height=ne.height||dr-ne.yOffset,ne.needsCopy=!0}else if(!Ze)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(br(Ze))ne.channels=ne.channels||4,ne.data=Ze,!("type"in Le)&&ne.type===Ba&&(ne.type=Ts(Ze));else if(Pa(Ze))ne.channels=ne.channels||4,Ho(ne,Ze),ne.alignment=1,ne.needsFree=!0;else if(Ut(Ze)){var Er=Ze.data;!Array.isArray(Er)&&ne.type===Ba&&(ne.type=Ts(Er));var lr=Ze.shape,Je=Ze.stride,ht,bt,Kt,sr,Qt,ur;lr.length===3?(Kt=lr[2],ur=Je[2]):(Kt=1,ur=1),ht=lr[0],bt=lr[1],sr=Je[0],Qt=Je[1],ne.alignment=1,ne.width=ht,ne.height=bt,ne.channels=Kt,ne.format=ne.internalformat=un[Kt],ne.needsFree=!0,ts(ne,Er,sr,Qt,ur,Ze.offset)}else if(Jo(Ze)||Ao(Ze)||Dn(Ze))Jo(Ze)||Ao(Ze)?ne.element=Ze:ne.element=Ze.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(_a(Ze))ne.element=Ze,ne.width=Ze.width,ne.height=Ze.height,ne.channels=4;else if(Ws(Ze))ne.element=Ze,ne.width=Ze.naturalWidth,ne.height=Ze.naturalHeight,ne.channels=4;else if(Ca(Ze))ne.element=Ze,ne.width=Ze.videoWidth,ne.height=Ze.videoHeight,ne.channels=4;else if(to(Ze)){var er=ne.width||Ze[0].length,Ot=ne.height||Ze.length,Jt=ne.channels;Qi(Ze[0][0])?Jt=Jt||Ze[0][0].length:Jt=Jt||1;for(var Lt=xe.shape(Ze),Tr=1,Nr=0;Nr>=dr,Ze.height>>=dr,In(Ze,Ct[dr]),ne.mipmask|=1<=0&&!("faces"in Le)&&(ne.genMipmaps=!0)}if("mag"in Le){var Ct=Le.mag;ne.magFilter=Ln[Ct]}var dr=ne.wrapS,Er=ne.wrapT;if("wrap"in Le){var lr=Le.wrap;typeof lr=="string"?dr=Er=Bn[lr]:Array.isArray(lr)&&(dr=Bn[lr[0]],Er=Bn[lr[1]])}else{if("wrapS"in Le){var Je=Le.wrapS;dr=Bn[Je]}if("wrapT"in Le){var ht=Le.wrapT;Er=Bn[ht]}}if(ne.wrapS=dr,ne.wrapT=Er,"anisotropic"in Le){var bt=Le.anisotropic;ne.anisotropic=Le.anisotropic}if("mipmap"in Le){var Kt=!1;switch(typeof Le.mipmap){case"string":ne.mipmapHint=on[Le.mipmap],ne.genMipmaps=!0,Kt=!0;break;case"boolean":Kt=ne.genMipmaps=Le.mipmap;break;case"object":ne.genMipmaps=!1,Kt=!0;break;default:}Kt&&!("min"in Le)&&(ne.minFilter=mo)}}function bf(ne,Le){Be.texParameteri(Le,As,ne.minFilter),Be.texParameteri(Le,vo,ne.magFilter),Be.texParameteri(Le,Sa,ne.wrapS),Be.texParameteri(Le,Qa,ne.wrapT),qt.ext_texture_filter_anisotropic&&Be.texParameteri(Le,ha,ne.anisotropic),ne.genMipmaps&&(Be.hint(Ys,ne.mipmapHint),Be.generateMipmap(Le))}var Lf=0,Hu={},hf=ar.maxTextureUnits,yf=Array(hf).map(function(){return null});function Fl(ne){$i.call(this),this.mipmask=0,this.internalformat=Un,this.id=Lf++,this.refCount=1,this.target=ne,this.texture=Be.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Cu,pi.profile&&(this.stats={size:0})}function wf(ne){Be.activeTexture(Ra),Be.bindTexture(ne.target,ne.texture)}function cu(){var ne=yf[0];ne?Be.bindTexture(ne.target,ne.texture):Be.bindTexture(Zi,null)}function Y(ne){var Le=ne.texture,Ze=ne.unit,Ct=ne.target;Ze>=0&&(Be.activeTexture(Ra+Ze),Be.bindTexture(Ct,null),yf[Ze]=null),Be.deleteTexture(Le),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete Hu[ne.id],fi.textureCount--}e(Fl.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var Le=ne.unit;if(Le<0){for(var Ze=0;Ze0)continue;Ct.unit=-1}yf[Ze]=ne,Le=Ze;break}Le>=hf,pi.profile&&fi.maxTextureUnits>Qt)-Kt,ur.height=ur.height||(Ze.height>>Qt)-sr,wf(Ze),_s(ur,Zi,Kt,sr,Qt),cu(),Mo(ur),Ct}function Er(lr,Je){var ht=lr|0,bt=Je|0||ht;if(ht===Ze.width&&bt===Ze.height)return Ct;Ct.width=Ze.width=ht,Ct.height=Ze.height=bt,wf(Ze);for(var Kt=0;Ze.mipmask>>Kt;++Kt){var sr=ht>>Kt,Qt=bt>>Kt;if(!sr||!Qt)break;Be.texImage2D(Zi,Kt,Ze.format,sr,Qt,0,Ze.format,Ze.type,null)}return cu(),pi.profile&&(Ze.stats.size=Wo(Ze.internalformat,Ze.type,ht,bt,!1,!1)),Ct}return Ct(ne,Le),Ct.subimage=dr,Ct.resize=Er,Ct._reglType="texture2d",Ct._texture=Ze,pi.profile&&(Ct.stats=Ze.stats),Ct.destroy=function(){Ze.decRef()},Ct}function J(ne,Le,Ze,Ct,dr,Er){var lr=new Fl(aa);Hu[lr.id]=lr,fi.cubeCount++;var Je=new Array(6);function ht(sr,Qt,ur,er,Ot,Jt){var Lt,Tr=lr.texInfo;for(Cu.call(Tr),Lt=0;Lt<6;++Lt)Je[Lt]=Ql();if(typeof sr=="number"||!sr){var Nr=sr|0||1;for(Lt=0;Lt<6;++Lt)pl(Je[Lt],Nr,Nr)}else if(typeof sr=="object")if(Qt)Dl(Je[0],sr),Dl(Je[1],Qt),Dl(Je[2],ur),Dl(Je[3],er),Dl(Je[4],Ot),Dl(Je[5],Jt);else if(_f(Tr,sr),ro(lr,sr),"faces"in sr){var ci=sr.faces;for(Lt=0;Lt<6;++Lt)Ui(Je[Lt],lr),Dl(Je[Lt],ci[Lt])}else for(Lt=0;Lt<6;++Lt)Dl(Je[Lt],sr);for(Ui(lr,Je[0]),Tr.genMipmaps?lr.mipmask=(Je[0].width<<1)-1:lr.mipmask=Je[0].mipmask,lr.internalformat=Je[0].internalformat,ht.width=Je[0].width,ht.height=Je[0].height,wf(lr),Lt=0;Lt<6;++Lt)Fu(Je[Lt],Mn+Lt);for(bf(Tr,aa),cu(),pi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,Tr.genMipmaps,!0)),ht.format=dn[lr.internalformat],ht.type=En[lr.type],ht.mag=Yi[Tr.magFilter],ht.min=ga[Tr.minFilter],ht.wrapS=Kn[Tr.wrapS],ht.wrapT=Kn[Tr.wrapT],Lt=0;Lt<6;++Lt)kf(Je[Lt]);return ht}function bt(sr,Qt,ur,er,Ot){var Jt=ur|0,Lt=er|0,Tr=Ot|0,Nr=Qn();return Ui(Nr,lr),Nr.width=0,Nr.height=0,In(Nr,Qt),Nr.width=Nr.width||(lr.width>>Tr)-Jt,Nr.height=Nr.height||(lr.height>>Tr)-Lt,wf(lr),_s(Nr,Mn+sr,Jt,Lt,Tr),cu(),Mo(Nr),ht}function Kt(sr){var Qt=sr|0;if(Qt!==lr.width){ht.width=lr.width=Qt,ht.height=lr.height=Qt,wf(lr);for(var ur=0;ur<6;++ur)for(var er=0;lr.mipmask>>er;++er)Be.texImage2D(Mn+ur,er,lr.format,Qt>>er,Qt>>er,0,lr.format,lr.type,null);return cu(),pi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,!1,!0)),ht}}return ht(ne,Le,Ze,Ct,dr,Er),ht.subimage=bt,ht.resize=Kt,ht._reglType="textureCube",ht._texture=lr,pi.profile&&(ht.stats=lr.stats),ht.destroy=function(){lr.decRef()},ht}function O(){for(var ne=0;ne>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);else for(var dr=0;dr<6;++dr)Be.texImage2D(Mn+dr,Ct,Ze.internalformat,Ze.width>>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);bf(Ze.texInfo,Ze.target)})}function _e(){for(var ne=0;ne=0?kf=!0:Bn.indexOf(Cu)>=0&&(kf=!1))),("depthTexture"in Fl||"depthStencilTexture"in Fl)&&(yf=!!(Fl.depthTexture||Fl.depthStencilTexture)),"depth"in Fl&&(typeof Fl.depth=="boolean"?Fu=Fl.depth:(Lf=Fl.depth,mf=!1)),"stencil"in Fl&&(typeof Fl.stencil=="boolean"?mf=Fl.stencil:(Hu=Fl.stencil,Fu=!1)),"depthStencil"in Fl&&(typeof Fl.depthStencil=="boolean"?Fu=mf=Fl.depthStencil:(hf=Fl.depthStencil,Fu=!1,mf=!1))}var cu=null,Y=null,R=null,J=null;if(Array.isArray(Ql))cu=Ql.map(Ni);else if(Ql)cu=[Ni(Ql)];else for(cu=new Array(bf),nl=0;nl0&&(Mo.depth=In[0].depth,Mo.stencil=In[0].stencil,Mo.depthStencil=In[0].depthStencil),In[Qn]?In[Qn](Mo):In[Qn]=Ui(Mo)}return e(Va,{width:nl,height:nl,color:Cu})}function _s(ul){var Qn,Mo=ul|0;if(Mo===Va.width)return Va;var nl=Va.color;for(Qn=0;Qn=nl.byteLength?pl.subdata(nl):(pl.destroy(),Ui.buffers[ul]=null)),Ui.buffers[ul]||(pl=Ui.buffers[ul]=mi.create(Qn,Ss,!1,!0)),Mo.buffer=mi.getBuffer(pl),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1,Va[ul]=1}else mi.getBuffer(Qn)?(Mo.buffer=mi.getBuffer(Qn),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1):mi.getBuffer(Qn.buffer)?(Mo.buffer=mi.getBuffer(Qn.buffer),Mo.size=(+Qn.size||Mo.buffer.dimension)|0,Mo.normalized=!!Qn.normalized||!1,"type"in Qn?Mo.type=di[Qn.type]:Mo.type=Mo.buffer.dtype,Mo.offset=(Qn.offset||0)|0,Mo.stride=(Qn.stride||0)|0,Mo.divisor=(Qn.divisor||0)|0,Mo.state=1):"x"in Qn&&(Mo.x=+Qn.x||0,Mo.y=+Qn.y||0,Mo.z=+Qn.z||0,Mo.w=+Qn.w||0,Mo.state=2)}for(var Dl=0;Dl1)for(var na=0;naWr&&(Wr=_i.stats.uniformsCount)}),Wr},ar.getMaxAttributesCount=function(){var Wr=0;return wn.forEach(function(_i){_i.stats.attributesCount>Wr&&(Wr=_i.stats.attributesCount)}),Wr});function Ni(){mi={},fi={};for(var Wr=0;Wr16&&(ar=Pi(ar,Be.length*8));for(var Qr=Array(16),mi=Array(16),fi=0;fi<16;fi++)Qr[fi]=ar[fi]^909522486,mi[fi]=ar[fi]^1549556828;var pi=Pi(Qr.concat(Bs(qt)),512+qt.length*8);return At(Pi(mi.concat(pi),768))}function Ms(Be){for(var qt=Ro?"0123456789ABCDEF":"0123456789abcdef",ar="",Qr,mi=0;mi>>4&15)+qt.charAt(Qr&15);return ar}function jo(Be){for(var qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ar="",Qr=Be.length,mi=0;miBe.length*8?ar+=tl:ar+=qt.charAt(fi>>>6*(3-pi)&63);return ar}function Rs(Be,qt){var ar=qt.length,Qr=Array(),mi,fi,pi,on,Bn=Array(Math.ceil(Be.length/2));for(mi=0;mi0;){for(on=Array(),pi=0,mi=0;mi0||fi>0)&&(on[on.length]=fi);Qr[Qr.length]=pi,Bn=on}var Ln="";for(mi=Qr.length-1;mi>=0;mi--)Ln+=qt.charAt(Qr[mi]);var wn=Math.ceil(Be.length*8/(Math.log(qt.length)/Math.log(2)));for(mi=Ln.length;mi>>6&31,128|Qr&63):Qr<=65535?qt+=String.fromCharCode(224|Qr>>>12&15,128|Qr>>>6&63,128|Qr&63):Qr<=2097151&&(qt+=String.fromCharCode(240|Qr>>>18&7,128|Qr>>>12&63,128|Qr>>>6&63,128|Qr&63));return qt}function Bs(Be){for(var qt=Array(Be.length>>2),ar=0;ar>5]|=(Be.charCodeAt(ar/8)&255)<<24-ar%32;return qt}function At(Be){for(var qt="",ar=0;ar>5]>>>24-ar%32&255);return qt}function Gt(Be,qt){return Be>>>qt|Be<<32-qt}function wr(Be,qt){return Be>>>qt}function mr(Be,qt,ar){return Be&qt^~Be&ar}function Or(Be,qt,ar){return Be&qt^Be&ar^qt&ar}function gi(Be){return Gt(Be,2)^Gt(Be,13)^Gt(Be,22)}function Ti(Be){return Gt(Be,6)^Gt(Be,11)^Gt(Be,25)}function ki(Be){return Gt(Be,7)^Gt(Be,18)^wr(Be,3)}function Ji(Be){return Gt(Be,17)^Gt(Be,19)^wr(Be,10)}var Fn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Pi(Be,qt){var ar=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Qr=new Array(64),mi,fi,pi,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Wr;for(Be[qt>>5]|=128<<24-qt%32,Be[(qt+64>>9<<4)+15]=qt,ua=0;ua>16)+(qt>>16)+(ar>>16);return Qr<<16|ar&65535}function Li(Be){return Array.prototype.slice.call(Be)}function Si(Be){return Li(Be).join("")}function Gn(Be){var qt=Be&&Be.cache,ar=0,Qr=[],mi=[],fi=[];function pi(Ni,Wr){var _i=Wr&&Wr.stable;if(!_i){for(var dn=0;dn0&&(Ni.push(En,"="),Ni.push.apply(Ni,Li(arguments)),Ni.push(";")),En}return e(Wr,{def:dn,toString:function(){return Si([_i.length>0?"var "+_i.join(",")+";":"",Si(Ni)])}})}function Bn(){var Ni=on(),Wr=on(),_i=Ni.toString,dn=Wr.toString;function En(Yi,ga){Wr(Yi,ga,"=",Ni.def(Yi,ga),";")}return e(function(){Ni.apply(Ni,Li(arguments))},{def:Ni.def,entry:Ni,exit:Wr,save:En,set:function(Yi,ga,Kn){En(Yi,ga),Ni(Yi,ga,"=",Kn,";")},toString:function(){return _i()+dn()}})}function Ln(){var Ni=Si(arguments),Wr=Bn(),_i=Bn(),dn=Wr.toString,En=_i.toString;return e(Wr,{then:function(){return Wr.apply(Wr,Li(arguments)),this},else:function(){return _i.apply(_i,Li(arguments)),this},toString:function(){var Yi=En();return Yi&&(Yi="else{"+Yi+"}"),Si(["if(",Ni,"){",dn(),"}",Yi])}})}var wn=on(),Ls={};function ua(Ni,Wr){var _i=[];function dn(){var hs="a"+_i.length;return _i.push(hs),hs}Wr=Wr||0;for(var En=0;En[v.viewport.x,v.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,v)=>v.offset*4,divisor:1},position:{buffer:i,offset:(b,v)=>v.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,v)=>v.offset*8,divisor:1},error:{buffer:s,offset:(b,v)=>v.offset*16,divisor:1},direction:{buffer:u,stride:24,offset:0},lineOffset:{buffer:u,stride:24,offset:8},capOffset:{buffer:u,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:pqe.length}),hqe(c,{update:p,draw:h,destroy:_,regl:e,gl:r,canvas:r.canvas,groups:f}),c;function c(b){b?p(b):b===null&&_(),h()}function h(b){if(typeof b=="number")return d(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),f.forEach((v,k)=>{if(v){if(b&&(b[k]?v.draw=!0:v.draw=!1),!v.draw){v.draw=!0;return}d(k)}})}function d(b){typeof b=="number"&&(b=f[b]),b!=null&&b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1&&(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b))}function p(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let v=0,k=0;if(c.groups=f=b.map((L,x)=>{let C=f[x];if(L)typeof L=="function"?L={after:L}:typeof L[0]=="number"&&(L={positions:L});else return C;return L=U7t(L,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),C||(f[x]=C={id:x,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},L=hqe({},l,L)),N7t(C,L,[{lineWidth:M=>+M*.5,capSize:M=>+M*.5,opacity:parseFloat,errors:M=>(M=dqe(M),k+=M.length,M),positions:(M,m)=>(M=dqe(M,"float64"),m.count=Math.floor(M.length/2),m.bounds=O7t(M,2),m.offset=v,v+=m.count,M)},{color:(M,m)=>{let P=m.count;if(M||(M="transparent"),!Array.isArray(M)||typeof M[0]=="number"){let B=M;M=Array(P);for(let F=0;F{let A=m.bounds;return M||(M=A),m.scale=[1/(M[2]-M[0]),1/(M[3]-M[1])],m.translate=[-M[0],-M[1]],m.scaleFract=JY(m.scale),m.translateFract=JY(m.translate),M},viewport:M=>{let m;return Array.isArray(M)?m={x:M[0],y:M[1],width:M[2]-M[0],height:M[3]-M[1]}:M?(m={x:M.x||M.left||0,y:M.y||M.top||0},M.right?m.width=M.right-m.x:m.width=M.w||M.width||0,M.bottom?m.height=M.bottom-m.y:m.height=M.h||M.height||0):m={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},m}}]),C}),v||k){let L=f.reduce((m,P,A)=>m+(P?P.count:0),0),x=new Float64Array(L*2),C=new Uint8Array(L*4),M=new Float32Array(L*4);f.forEach((m,P)=>{if(!m)return;let{positions:A,count:B,offset:F,color:U,errors:G}=m;B&&(C.set(U,F*4),M.set(G,F*4),x.set(A,F*2))});var E=V7t(x);i(E);var T=JY(x,E);a(T),o(C),s(M)}}function _(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),u.destroy()}}});var _qe=Te((g_r,gqe)=>{var yqe=/[\'\"]/;gqe.exports=function(t){return t?(yqe.test(t.charAt(0))&&(t=t.substr(1)),yqe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var $Y=Te((__r,H7t)=>{H7t.exports=["inherit","initial","unset"]});var QY=Te((x_r,W7t)=>{W7t.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var eK=Te((b_r,j7t)=>{j7t.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var tK=Te((w_r,X7t)=>{X7t.exports=["normal","italic","oblique"]});var rK=Te((A_r,Z7t)=>{Z7t.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var Aqe=Te((T_r,wqe)=>{"use strict";function xqe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(u){var l=new RegExp(["\\",u[0],"[^\\",u[0],"\\",u[1],"]*\\",u[1]].join("")),f=[];function c(h,d,p){var _=r.push(h.slice(u[0].length,-u[1].length))-1;return f.push(_),i+_+i}r.forEach(function(h,d){for(var p,_=0;h!=p;)if(p=h,h=h.replace(l,c),_++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),f=f.reverse(),r=r.map(function(h){return f.forEach(function(d){h=h.replace(new RegExp("(\\"+i+d+"\\"+i+")","g"),u[0]+"$1"+u[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(u,l,f){for(var c=[],h,d=0;h=o.exec(u);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(u.slice(0,h.index)),c.push(s(l[h[1]],l)),u=u.slice(h.index+h[0].length)}return c.push(u),c}return a?r:s(r[0],r)}function bqe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,s)}return n}return e.reduce(function u(l,f){return Array.isArray(f)&&(f=f.reduce(u,"")),l+f},"");function s(u,l){if(e[l]==null)throw Error("Reference "+l+"is undefined");return e[l]}}function iK(e,t){return Array.isArray(e)?bqe(e,t):xqe(e,t)}iK.parse=xqe;iK.stringify=bqe;wqe.exports=iK});var Mqe=Te((S_r,Sqe)=>{"use strict";var Tqe=Aqe();Sqe.exports=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var i=Tqe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],u=0;u{Y7t.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var nK=Te((E_r,kqe)=>{"use strict";var K7t=Eqe();kqe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||K7t.indexOf(t)!==-1}}});var zqe=Te((k_r,Pqe)=>{"use strict";var J7t=_qe(),$7t=$Y(),Q7t=QY(),eUt=eK(),tUt=tK(),rUt=rK(),aK=Mqe(),iUt=nK().isSize;Pqe.exports=Lqe;var Ak=Lqe.cache={};function Lqe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(Ak[e])return Ak[e];if(e==="")throw new Error("Cannot parse an empty string.");if(Q7t.indexOf(e)!==-1)return Ak[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=aK(e,/\s+/),n;n=r.shift();){if($7t.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),Ak[e]=t;if(tUt.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(rUt.indexOf(n)!==-1){t.stretch=n;continue}if(eUt.indexOf(n)!==-1){t.weight=n;continue}if(iUt(n)){var i=aK(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=Cqe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=Cqe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=aK(r.join(" "),/\s*,\s*/).map(J7t),Ak[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function Cqe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var sK=Te((C_r,Iqe)=>{"use strict";var nUt=Xy(),aUt=nK().isSize,oUt=Sk($Y()),sUt=Sk(QY()),lUt=Sk(eK()),uUt=Sk(tK()),fUt=Sk(rK()),cUt={normal:1,"small-caps":1},hUt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},oK={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};Iqe.exports=function(t){if(t=nUt(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&Tk(t.system,sUt),t.system;if(Tk(t.style,uUt),Tk(t.variant,cUt),Tk(t.weight,lUt),Tk(t.stretch,fUt),t.size==null&&(t.size=oK.size),typeof t.size=="number"&&(t.size+="px"),!aUt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=oK.family),Array.isArray(t.family)&&(t.family.length||(t.family=[oK.family]),t.family=t.family.map(function(n){return hUt[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function Tk(e,t){if(e&&!t[e]&&!oUt[e])throw Error("Unknown keyword `"+e+"`");return e}function Sk(e){for(var t={},r=0;r{"use strict";Rqe.exports={parse:zqe(),stringify:sK()}});var Fqe=Te((lK,uK)=>{(function(e,t){typeof lK=="object"&&typeof uK!="undefined"?uK.exports=t():e.createREGL=t()})(lK,function(){"use strict";var e=function(Be,qt){for(var ar=Object.keys(qt),Qr=0;Qr1&&qt===ar&&(qt==='"'||qt==="'"))return['"'+o(Be.substr(1,Be.length-2))+'"'];var Qr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Be);if(Qr)return s(Be.substr(0,Qr.index)).concat(s(Qr[1])).concat(s(Be.substr(Qr.index+Qr[0].length)));var mi=Be.split(".");if(mi.length===1)return['"'+o(Be)+'"'];for(var fi=[],pi=0;pi65535)<<4,Be>>>=qt,ar=(Be>255)<<3,Be>>>=ar,qt|=ar,ar=(Be>15)<<2,Be>>>=ar,qt|=ar,ar=(Be>3)<<1,Be>>>=ar,qt|=ar,qt|Be>>1}function N(){var Be=M(8,function(){return[]});function qt(fi){var pi=j(fi),on=Be[H(pi)>>2];return on.length>0?on.pop():new ArrayBuffer(pi)}function ar(fi){Be[H(fi.byteLength)>>2].push(fi)}function Qr(fi,pi){var on=null;switch(fi){case m:on=new Int8Array(qt(pi),0,pi);break;case P:on=new Uint8Array(qt(pi),0,pi);break;case A:on=new Int16Array(qt(2*pi),0,pi);break;case B:on=new Uint16Array(qt(2*pi),0,pi);break;case F:on=new Int32Array(qt(4*pi),0,pi);break;case U:on=new Uint32Array(qt(4*pi),0,pi);break;case G:on=new Float32Array(qt(4*pi),0,pi);break;default:return null}return on.length!==pi?on.subarray(0,pi):on}function mi(fi){ar(fi.buffer)}return{alloc:qt,free:ar,allocType:Qr,freeType:mi}}var W=N();W.zero=N();var re=3408,ae=3410,be=3411,Pe=3412,Ce=3413,de=3414,te=3415,ke=33901,Ee=33902,Me=3379,Ne=3386,Fe=34921,ye=36347,Ve=36348,ce=35661,Ke=35660,nt=34930,gt=36349,Nt=34076,it=34024,Ye=7936,kt=7937,Tt=7938,St=35724,Rt=34047,Zt=36063,Et=34852,Ae=3553,at=34067,wt=34069,vt=33984,st=6408,Ue=5126,rt=5121,$e=36160,zt=36053,Yt=36064,hr=16384,yr=function(Be,qt){var ar=1;qt.ext_texture_filter_anisotropic&&(ar=Be.getParameter(Rt));var Qr=1,mi=1;qt.webgl_draw_buffers&&(Qr=Be.getParameter(Et),mi=Be.getParameter(Zt));var fi=!!qt.oes_texture_float;if(fi){var pi=Be.createTexture();Be.bindTexture(Ae,pi),Be.texImage2D(Ae,0,st,1,1,0,st,Ue,null);var on=Be.createFramebuffer();if(Be.bindFramebuffer($e,on),Be.framebufferTexture2D($e,Yt,Ae,pi,0),Be.bindTexture(Ae,null),Be.checkFramebufferStatus($e)!==zt)fi=!1;else{Be.viewport(0,0,1,1),Be.clearColor(1,0,0,1),Be.clear(hr);var Bn=W.allocType(Ue,4);Be.readPixels(0,0,1,1,st,Ue,Bn),Be.getError()?fi=!1:(Be.deleteFramebuffer(on),Be.deleteTexture(pi),fi=Bn[0]===1),W.freeType(Bn)}}var Ln=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!Ln){var Ls=Be.createTexture(),ua=W.allocType(rt,36);Be.activeTexture(vt),Be.bindTexture(at,Ls),Be.texImage2D(wt,0,st,3,3,0,st,rt,ua),W.freeType(ua),Be.bindTexture(at,null),Be.deleteTexture(Ls),wn=!Be.getError()}return{colorBits:[Be.getParameter(ae),Be.getParameter(be),Be.getParameter(Pe),Be.getParameter(Ce)],depthBits:Be.getParameter(de),stencilBits:Be.getParameter(te),subpixelBits:Be.getParameter(re),extensions:Object.keys(qt).filter(function(Hn){return!!qt[Hn]}),maxAnisotropic:ar,maxDrawbuffers:Qr,maxColorAttachments:mi,pointSizeDims:Be.getParameter(ke),lineWidthDims:Be.getParameter(Ee),maxViewportDims:Be.getParameter(Ne),maxCombinedTextureUnits:Be.getParameter(ce),maxCubeMapSize:Be.getParameter(Nt),maxRenderbufferSize:Be.getParameter(it),maxTextureUnits:Be.getParameter(nt),maxTextureSize:Be.getParameter(Me),maxAttributes:Be.getParameter(Fe),maxVertexUniforms:Be.getParameter(ye),maxVertexTextureUnits:Be.getParameter(Ke),maxVaryingVectors:Be.getParameter(Ve),maxFragmentUniforms:Be.getParameter(gt),glsl:Be.getParameter(St),renderer:Be.getParameter(kt),vendor:Be.getParameter(Ye),version:Be.getParameter(Tt),readFloat:fi,npotTextureCube:wn}},br=function(Be){return Be instanceof Uint8Array||Be instanceof Uint16Array||Be instanceof Uint32Array||Be instanceof Int8Array||Be instanceof Int16Array||Be instanceof Int32Array||Be instanceof Float32Array||Be instanceof Float64Array||Be instanceof Uint8ClampedArray};function Ut(Be){return!!Be&&typeof Be=="object"&&Array.isArray(Be.shape)&&Array.isArray(Be.stride)&&typeof Be.offset=="number"&&Be.shape.length===Be.stride.length&&(Array.isArray(Be.data)||br(Be.data))}var Ie=function(Be){return Object.keys(Be).map(function(qt){return Be[qt]})},xe={shape:fe,flatten:ge};function Oe(Be,qt,ar){for(var Qr=0;Qr0){var hs;if(Array.isArray(_i[0])){Kn=ii(_i);for(var $i=1,Ui=1;Ui0){if(typeof $i[0]=="number"){var On=W.allocType(Yi.dtype,$i.length);_r(On,$i),Kn(On,ro),W.freeType(On)}else if(Array.isArray($i[0])||br($i[0])){na=ii($i);var In=nn($i,na,Yi.dtype);Kn(In,ro),W.freeType(In)}}}else if(Ut($i)){na=$i.shape;var Va=$i.stride,_s=0,ul=0,Qn=0,Mo=0;na.length===1?(_s=na[0],ul=1,Qn=Va[0],Mo=0):na.length===2&&(_s=na[0],ul=na[1],Qn=Va[0],Mo=Va[1]);var nl=Array.isArray($i.data)?Yi.dtype:Wt($i.data),pl=W.allocType(nl,_s*ul);Lr(pl,$i.data,_s,ul,Qn,Mo,$i.offset),Kn(pl,ro),W.freeType(pl)}return ga}return dn||ga(Wr),ga._reglType="buffer",ga._buffer=Yi,ga.subdata=hs,ar.profile&&(ga.stats=Yi.stats),ga.destroy=function(){ua(Yi)},ga}function Ni(){Ie(fi).forEach(function(Wr){Wr.buffer=Be.createBuffer(),Be.bindBuffer(Wr.type,Wr.buffer),Be.bufferData(Wr.type,Wr.persistentData||Wr.byteLength,Wr.usage)})}return ar.profile&&(qt.getTotalBufferSize=function(){var Wr=0;return Object.keys(fi).forEach(function(_i){Wr+=fi[_i].stats.size}),Wr}),{create:Hn,createStream:Bn,destroyStream:Ln,clear:function(){Ie(fi).forEach(ua),on.forEach(ua)},getBuffer:function(Wr){return Wr&&Wr._buffer instanceof pi?Wr._buffer:null},restore:Ni,_initBuffer:Ls}}var Ir=0,Gr=0,jr=1,yi=1,Ei=4,Vi=4,ti={points:Ir,point:Gr,lines:jr,line:yi,triangles:Ei,triangle:Vi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},en=0,Yr=1,oi=4,Bi=5120,an=5121,rn=5122,Fi=5123,Ri=5124,xn=5125,xi=34963,Xr=35040,ft=35044;function tr(Be,qt,ar,Qr){var mi={},fi=0,pi={uint8:an,uint16:Fi};qt.oes_element_index_uint&&(pi.uint32=xn);function on(Ni){this.id=fi++,mi[this.id]=this,this.buffer=Ni,this.primType=oi,this.vertCount=0,this.type=0}on.prototype.bind=function(){this.buffer.bind()};var Bn=[];function Ln(Ni){var Wr=Bn.pop();return Wr||(Wr=new on(ar.create(null,xi,!0,!1)._buffer)),Ls(Wr,Ni,Xr,-1,-1,0,0),Wr}function wn(Ni){Bn.push(Ni)}function Ls(Ni,Wr,_i,dn,En,Yi,ga){Ni.buffer.bind();var Kn;if(Wr){var hs=ga;!ga&&(!br(Wr)||Ut(Wr)&&!br(Wr.data))&&(hs=qt.oes_element_index_uint?xn:Fi),ar._initBuffer(Ni.buffer,Wr,_i,hs,3)}else Be.bufferData(xi,Yi,_i),Ni.buffer.dtype=Kn||an,Ni.buffer.usage=_i,Ni.buffer.dimension=3,Ni.buffer.byteLength=Yi;if(Kn=ga,!ga){switch(Ni.buffer.dtype){case an:case Bi:Kn=an;break;case Fi:case rn:Kn=Fi;break;case xn:case Ri:Kn=xn;break;default:}Ni.buffer.dtype=Kn}Ni.type=Kn;var $i=En;$i<0&&($i=Ni.buffer.byteLength,Kn===Fi?$i>>=1:Kn===xn&&($i>>=2)),Ni.vertCount=$i;var Ui=dn;if(dn<0){Ui=oi;var ro=Ni.buffer.dimension;ro===1&&(Ui=en),ro===2&&(Ui=Yr),ro===3&&(Ui=oi)}Ni.primType=Ui}function ua(Ni){Qr.elementsCount--,delete mi[Ni.id],Ni.buffer.destroy(),Ni.buffer=null}function Hn(Ni,Wr){var _i=ar.create(null,xi,!0),dn=new on(_i._buffer);Qr.elementsCount++;function En(Yi){if(!Yi)_i(),dn.primType=oi,dn.vertCount=0,dn.type=an;else if(typeof Yi=="number")_i(Yi),dn.primType=oi,dn.vertCount=Yi|0,dn.type=an;else{var ga=null,Kn=ft,hs=-1,$i=-1,Ui=0,ro=0;Array.isArray(Yi)||br(Yi)||Ut(Yi)?ga=Yi:("data"in Yi&&(ga=Yi.data),"usage"in Yi&&(Kn=Ci[Yi.usage]),"primitive"in Yi&&(hs=ti[Yi.primitive]),"count"in Yi&&($i=Yi.count|0),"type"in Yi&&(ro=pi[Yi.type]),"length"in Yi?Ui=Yi.length|0:(Ui=$i,ro===Fi||ro===rn?Ui*=2:(ro===xn||ro===Ri)&&(Ui*=4))),Ls(dn,ga,Kn,hs,$i,Ui,ro)}return En}return En(Ni),En._reglType="elements",En._elements=dn,En.subdata=function(Yi,ga){return _i.subdata(Yi,ga),En},En.destroy=function(){ua(dn)},En}return{create:Hn,createStream:Ln,destroyStream:wn,getElements:function(Ni){return typeof Ni=="function"&&Ni._elements instanceof on?Ni._elements:null},clear:function(){Ie(mi).forEach(ua)}}}var pr=new Float32Array(1),gr=new Uint32Array(pr.buffer),Zr=5123;function Ai(Be){for(var qt=W.allocType(Zr,Be.length),ar=0;ar>>31<<15,fi=(Qr<<1>>>24)-127,pi=Qr>>13&1023;if(fi<-24)qt[ar]=mi;else if(fi<-14){var on=-14-fi;qt[ar]=mi+(pi+1024>>on)}else fi>15?qt[ar]=mi+31744:qt[ar]=mi+(fi+15<<10)+pi}return qt}function Qi(Be){return Array.isArray(Be)||br(Be)}var ni=34467,Zi=3553,aa=34067,Mn=34069,Un=6408,Ga=6406,ma=6407,oa=6409,ka=6410,so=32854,Kr=32855,Ia=36194,Yo=32819,fa=32820,kn=33635,Ta=34042,ys=6402,uo=34041,ls=35904,$a=35906,fo=36193,mn=33776,ra=33777,wa=33778,ws=33779,Co=35986,Po=35987,ji=34798,gn=35840,Ps=35841,Ha=35842,Sn=35843,ao=36196,Ba=5121,Ko=5123,Qo=5125,Wi=5126,Sa=10242,Qa=10243,vn=10497,da=33071,la=33648,vo=10240,As=10241,ps=9728,co=9729,mo=9984,No=9985,jn=9986,Go=9987,Ys=33170,qs=4352,Ns=4353,Oa=4354,ha=34046,Vs=3317,Ya=37440,_n=37441,Vn=37443,wo=37444,Ra=33984,Xn=[mo,jn,No,Go],un=[0,oa,ka,ma,Un],$n={};$n[oa]=$n[Ga]=$n[ys]=1,$n[uo]=$n[ka]=2,$n[ma]=$n[ls]=3,$n[Un]=$n[$a]=4;function Ka(Be){return"[object "+Be+"]"}var qn=Ka("HTMLCanvasElement"),Eo=Ka("OffscreenCanvas"),Ja=Ka("CanvasRenderingContext2D"),lo=Ka("ImageBitmap"),eo=Ka("HTMLImageElement"),sa=Ka("HTMLVideoElement"),es=Object.keys(pe).concat([qn,Eo,Ja,lo,eo,sa]),Na=[];Na[Ba]=1,Na[Wi]=4,Na[fo]=2,Na[Ko]=2,Na[Qo]=4;var tn=[];tn[so]=2,tn[Kr]=2,tn[Ia]=2,tn[uo]=4,tn[mn]=.5,tn[ra]=.5,tn[wa]=1,tn[ws]=1,tn[Co]=.5,tn[Po]=1,tn[ji]=1,tn[gn]=.5,tn[Ps]=.25,tn[Ha]=.5,tn[Sn]=.25,tn[ao]=.5;function Pa(Be){return Array.isArray(Be)&&(Be.length===0||typeof Be[0]=="number")}function to(Be){if(!Array.isArray(Be))return!1;var qt=Be.length;return!(qt===0||!Qi(Be[0]))}function yo(Be){return Object.prototype.toString.call(Be)}function Jo(Be){return yo(Be)===qn}function Ao(Be){return yo(Be)===Eo}function Dn(Be){return yo(Be)===Ja}function _a(Be){return yo(Be)===lo}function Ws(Be){return yo(Be)===eo}function Ca(Be){return yo(Be)===sa}function Es(Be){if(!Be)return!1;var qt=yo(Be);return es.indexOf(qt)>=0?!0:Pa(Be)||to(Be)||Ut(Be)}function Ts(Be){return pe[Object.prototype.toString.call(Be)]|0}function Ho(Be,qt){var ar=qt.length;switch(Be.type){case Ba:case Ko:case Qo:case Wi:var Qr=W.allocType(Be.type,ar);Qr.set(qt),Be.data=Qr;break;case fo:Be.data=Ai(qt);break;default:}}function Wa(Be,qt){return W.allocType(Be.type===fo?Wi:Be.type,qt)}function To(Be,qt){Be.type===fo?(Be.data=Ai(qt),W.freeType(qt)):Be.data=qt}function ts(Be,qt,ar,Qr,mi,fi){for(var pi=Be.width,on=Be.height,Bn=Be.channels,Ln=pi*on*Bn,wn=Wa(Be,Ln),Ls=0,ua=0;ua=1;)on+=pi*Bn*Bn,Bn/=2;return on}else return pi*ar*Qr}function qa(Be,qt,ar,Qr,mi,fi,pi){var on={"don't care":qs,"dont care":qs,nice:Oa,fast:Ns},Bn={repeat:vn,clamp:da,mirror:la},Ln={nearest:ps,linear:co},wn=e({mipmap:Go,"nearest mipmap nearest":mo,"linear mipmap nearest":No,"nearest mipmap linear":jn,"linear mipmap linear":Go},Ln),Ls={none:0,browser:wo},ua={uint8:Ba,rgba4:Yo,rgb565:kn,"rgb5 a1":fa},Hn={alpha:Ga,luminance:oa,"luminance alpha":ka,rgb:ma,rgba:Un,rgba4:so,"rgb5 a1":Kr,rgb565:Ia},Ni={};qt.ext_srgb&&(Hn.srgb=ls,Hn.srgba=$a),qt.oes_texture_float&&(ua.float32=ua.float=Wi),qt.oes_texture_half_float&&(ua.float16=ua["half float"]=fo),qt.webgl_depth_texture&&(e(Hn,{depth:ys,"depth stencil":uo}),e(ua,{uint16:Ko,uint32:Qo,"depth stencil":Ta})),qt.webgl_compressed_texture_s3tc&&e(Ni,{"rgb s3tc dxt1":mn,"rgba s3tc dxt1":ra,"rgba s3tc dxt3":wa,"rgba s3tc dxt5":ws}),qt.webgl_compressed_texture_atc&&e(Ni,{"rgb atc":Co,"rgba atc explicit alpha":Po,"rgba atc interpolated alpha":ji}),qt.webgl_compressed_texture_pvrtc&&e(Ni,{"rgb pvrtc 4bppv1":gn,"rgb pvrtc 2bppv1":Ps,"rgba pvrtc 4bppv1":Ha,"rgba pvrtc 2bppv1":Sn}),qt.webgl_compressed_texture_etc1&&(Ni["rgb etc1"]=ao);var Wr=Array.prototype.slice.call(Be.getParameter(ni));Object.keys(Ni).forEach(function(ne){var Le=Ni[ne];Wr.indexOf(Le)>=0&&(Hn[ne]=Le)});var _i=Object.keys(Hn);ar.textureFormats=_i;var dn=[];Object.keys(Hn).forEach(function(ne){var Le=Hn[ne];dn[Le]=ne});var En=[];Object.keys(ua).forEach(function(ne){var Le=ua[ne];En[Le]=ne});var Yi=[];Object.keys(Ln).forEach(function(ne){var Le=Ln[ne];Yi[Le]=ne});var ga=[];Object.keys(wn).forEach(function(ne){var Le=wn[ne];ga[Le]=ne});var Kn=[];Object.keys(Bn).forEach(function(ne){var Le=Bn[ne];Kn[Le]=ne});var hs=_i.reduce(function(ne,Le){var Ze=Hn[Le];return Ze===oa||Ze===Ga||Ze===oa||Ze===ka||Ze===ys||Ze===uo||qt.ext_srgb&&(Ze===ls||Ze===$a)?ne[Ze]=Ze:Ze===Kr||Le.indexOf("rgba")>=0?ne[Ze]=Un:ne[Ze]=ma,ne},{});function $i(){this.internalformat=Un,this.format=Un,this.type=Ba,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=wo,this.width=0,this.height=0,this.channels=0}function Ui(ne,Le){ne.internalformat=Le.internalformat,ne.format=Le.format,ne.type=Le.type,ne.compressed=Le.compressed,ne.premultiplyAlpha=Le.premultiplyAlpha,ne.flipY=Le.flipY,ne.unpackAlignment=Le.unpackAlignment,ne.colorSpace=Le.colorSpace,ne.width=Le.width,ne.height=Le.height,ne.channels=Le.channels}function ro(ne,Le){if(!(typeof Le!="object"||!Le)){if("premultiplyAlpha"in Le&&(ne.premultiplyAlpha=Le.premultiplyAlpha),"flipY"in Le&&(ne.flipY=Le.flipY),"alignment"in Le&&(ne.unpackAlignment=Le.alignment),"colorSpace"in Le&&(ne.colorSpace=Ls[Le.colorSpace]),"type"in Le){var Ze=Le.type;ne.type=ua[Ze]}var Ct=ne.width,dr=ne.height,Er=ne.channels,lr=!1;"shape"in Le?(Ct=Le.shape[0],dr=Le.shape[1],Le.shape.length===3&&(Er=Le.shape[2],lr=!0)):("radius"in Le&&(Ct=dr=Le.radius),"width"in Le&&(Ct=Le.width),"height"in Le&&(dr=Le.height),"channels"in Le&&(Er=Le.channels,lr=!0)),ne.width=Ct|0,ne.height=dr|0,ne.channels=Er|0;var Je=!1;if("format"in Le){var ht=Le.format,bt=ne.internalformat=Hn[ht];ne.format=hs[bt],ht in ua&&("type"in Le||(ne.type=ua[ht])),ht in Ni&&(ne.compressed=!0),Je=!0}!lr&&Je?ne.channels=$n[ne.format]:lr&&!Je&&ne.channels!==un[ne.format]&&(ne.format=ne.internalformat=un[ne.channels])}}function na(ne){Be.pixelStorei(Ya,ne.flipY),Be.pixelStorei(_n,ne.premultiplyAlpha),Be.pixelStorei(Vn,ne.colorSpace),Be.pixelStorei(Vs,ne.unpackAlignment)}function On(){$i.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function In(ne,Le){var Ze=null;if(Es(Le)?Ze=Le:Le&&(ro(ne,Le),"x"in Le&&(ne.xOffset=Le.x|0),"y"in Le&&(ne.yOffset=Le.y|0),Es(Le.data)&&(Ze=Le.data)),Le.copy){var Ct=mi.viewportWidth,dr=mi.viewportHeight;ne.width=ne.width||Ct-ne.xOffset,ne.height=ne.height||dr-ne.yOffset,ne.needsCopy=!0}else if(!Ze)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(br(Ze))ne.channels=ne.channels||4,ne.data=Ze,!("type"in Le)&&ne.type===Ba&&(ne.type=Ts(Ze));else if(Pa(Ze))ne.channels=ne.channels||4,Ho(ne,Ze),ne.alignment=1,ne.needsFree=!0;else if(Ut(Ze)){var Er=Ze.data;!Array.isArray(Er)&&ne.type===Ba&&(ne.type=Ts(Er));var lr=Ze.shape,Je=Ze.stride,ht,bt,Kt,sr,Qt,ur;lr.length===3?(Kt=lr[2],ur=Je[2]):(Kt=1,ur=1),ht=lr[0],bt=lr[1],sr=Je[0],Qt=Je[1],ne.alignment=1,ne.width=ht,ne.height=bt,ne.channels=Kt,ne.format=ne.internalformat=un[Kt],ne.needsFree=!0,ts(ne,Er,sr,Qt,ur,Ze.offset)}else if(Jo(Ze)||Ao(Ze)||Dn(Ze))Jo(Ze)||Ao(Ze)?ne.element=Ze:ne.element=Ze.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(_a(Ze))ne.element=Ze,ne.width=Ze.width,ne.height=Ze.height,ne.channels=4;else if(Ws(Ze))ne.element=Ze,ne.width=Ze.naturalWidth,ne.height=Ze.naturalHeight,ne.channels=4;else if(Ca(Ze))ne.element=Ze,ne.width=Ze.videoWidth,ne.height=Ze.videoHeight,ne.channels=4;else if(to(Ze)){var er=ne.width||Ze[0].length,Ot=ne.height||Ze.length,Jt=ne.channels;Qi(Ze[0][0])?Jt=Jt||Ze[0][0].length:Jt=Jt||1;for(var Lt=xe.shape(Ze),Tr=1,Nr=0;Nr>=dr,Ze.height>>=dr,In(Ze,Ct[dr]),ne.mipmask|=1<=0&&!("faces"in Le)&&(ne.genMipmaps=!0)}if("mag"in Le){var Ct=Le.mag;ne.magFilter=Ln[Ct]}var dr=ne.wrapS,Er=ne.wrapT;if("wrap"in Le){var lr=Le.wrap;typeof lr=="string"?dr=Er=Bn[lr]:Array.isArray(lr)&&(dr=Bn[lr[0]],Er=Bn[lr[1]])}else{if("wrapS"in Le){var Je=Le.wrapS;dr=Bn[Je]}if("wrapT"in Le){var ht=Le.wrapT;Er=Bn[ht]}}if(ne.wrapS=dr,ne.wrapT=Er,"anisotropic"in Le){var bt=Le.anisotropic;ne.anisotropic=Le.anisotropic}if("mipmap"in Le){var Kt=!1;switch(typeof Le.mipmap){case"string":ne.mipmapHint=on[Le.mipmap],ne.genMipmaps=!0,Kt=!0;break;case"boolean":Kt=ne.genMipmaps=Le.mipmap;break;case"object":ne.genMipmaps=!1,Kt=!0;break;default:}Kt&&!("min"in Le)&&(ne.minFilter=mo)}}function bf(ne,Le){Be.texParameteri(Le,As,ne.minFilter),Be.texParameteri(Le,vo,ne.magFilter),Be.texParameteri(Le,Sa,ne.wrapS),Be.texParameteri(Le,Qa,ne.wrapT),qt.ext_texture_filter_anisotropic&&Be.texParameteri(Le,ha,ne.anisotropic),ne.genMipmaps&&(Be.hint(Ys,ne.mipmapHint),Be.generateMipmap(Le))}var Lf=0,Hu={},hf=ar.maxTextureUnits,yf=Array(hf).map(function(){return null});function Fl(ne){$i.call(this),this.mipmask=0,this.internalformat=Un,this.id=Lf++,this.refCount=1,this.target=ne,this.texture=Be.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Cu,pi.profile&&(this.stats={size:0})}function wf(ne){Be.activeTexture(Ra),Be.bindTexture(ne.target,ne.texture)}function cu(){var ne=yf[0];ne?Be.bindTexture(ne.target,ne.texture):Be.bindTexture(Zi,null)}function Y(ne){var Le=ne.texture,Ze=ne.unit,Ct=ne.target;Ze>=0&&(Be.activeTexture(Ra+Ze),Be.bindTexture(Ct,null),yf[Ze]=null),Be.deleteTexture(Le),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete Hu[ne.id],fi.textureCount--}e(Fl.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var Le=ne.unit;if(Le<0){for(var Ze=0;Ze0)continue;Ct.unit=-1}yf[Ze]=ne,Le=Ze;break}Le>=hf,pi.profile&&fi.maxTextureUnits>Qt)-Kt,ur.height=ur.height||(Ze.height>>Qt)-sr,wf(Ze),_s(ur,Zi,Kt,sr,Qt),cu(),Mo(ur),Ct}function Er(lr,Je){var ht=lr|0,bt=Je|0||ht;if(ht===Ze.width&&bt===Ze.height)return Ct;Ct.width=Ze.width=ht,Ct.height=Ze.height=bt,wf(Ze);for(var Kt=0;Ze.mipmask>>Kt;++Kt){var sr=ht>>Kt,Qt=bt>>Kt;if(!sr||!Qt)break;Be.texImage2D(Zi,Kt,Ze.format,sr,Qt,0,Ze.format,Ze.type,null)}return cu(),pi.profile&&(Ze.stats.size=Wo(Ze.internalformat,Ze.type,ht,bt,!1,!1)),Ct}return Ct(ne,Le),Ct.subimage=dr,Ct.resize=Er,Ct._reglType="texture2d",Ct._texture=Ze,pi.profile&&(Ct.stats=Ze.stats),Ct.destroy=function(){Ze.decRef()},Ct}function J(ne,Le,Ze,Ct,dr,Er){var lr=new Fl(aa);Hu[lr.id]=lr,fi.cubeCount++;var Je=new Array(6);function ht(sr,Qt,ur,er,Ot,Jt){var Lt,Tr=lr.texInfo;for(Cu.call(Tr),Lt=0;Lt<6;++Lt)Je[Lt]=Ql();if(typeof sr=="number"||!sr){var Nr=sr|0||1;for(Lt=0;Lt<6;++Lt)pl(Je[Lt],Nr,Nr)}else if(typeof sr=="object")if(Qt)Dl(Je[0],sr),Dl(Je[1],Qt),Dl(Je[2],ur),Dl(Je[3],er),Dl(Je[4],Ot),Dl(Je[5],Jt);else if(_f(Tr,sr),ro(lr,sr),"faces"in sr){var ci=sr.faces;for(Lt=0;Lt<6;++Lt)Ui(Je[Lt],lr),Dl(Je[Lt],ci[Lt])}else for(Lt=0;Lt<6;++Lt)Dl(Je[Lt],sr);for(Ui(lr,Je[0]),Tr.genMipmaps?lr.mipmask=(Je[0].width<<1)-1:lr.mipmask=Je[0].mipmask,lr.internalformat=Je[0].internalformat,ht.width=Je[0].width,ht.height=Je[0].height,wf(lr),Lt=0;Lt<6;++Lt)Fu(Je[Lt],Mn+Lt);for(bf(Tr,aa),cu(),pi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,Tr.genMipmaps,!0)),ht.format=dn[lr.internalformat],ht.type=En[lr.type],ht.mag=Yi[Tr.magFilter],ht.min=ga[Tr.minFilter],ht.wrapS=Kn[Tr.wrapS],ht.wrapT=Kn[Tr.wrapT],Lt=0;Lt<6;++Lt)kf(Je[Lt]);return ht}function bt(sr,Qt,ur,er,Ot){var Jt=ur|0,Lt=er|0,Tr=Ot|0,Nr=Qn();return Ui(Nr,lr),Nr.width=0,Nr.height=0,In(Nr,Qt),Nr.width=Nr.width||(lr.width>>Tr)-Jt,Nr.height=Nr.height||(lr.height>>Tr)-Lt,wf(lr),_s(Nr,Mn+sr,Jt,Lt,Tr),cu(),Mo(Nr),ht}function Kt(sr){var Qt=sr|0;if(Qt!==lr.width){ht.width=lr.width=Qt,ht.height=lr.height=Qt,wf(lr);for(var ur=0;ur<6;++ur)for(var er=0;lr.mipmask>>er;++er)Be.texImage2D(Mn+ur,er,lr.format,Qt>>er,Qt>>er,0,lr.format,lr.type,null);return cu(),pi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,!1,!0)),ht}}return ht(ne,Le,Ze,Ct,dr,Er),ht.subimage=bt,ht.resize=Kt,ht._reglType="textureCube",ht._texture=lr,pi.profile&&(ht.stats=lr.stats),ht.destroy=function(){lr.decRef()},ht}function O(){for(var ne=0;ne>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);else for(var dr=0;dr<6;++dr)Be.texImage2D(Mn+dr,Ct,Ze.internalformat,Ze.width>>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);bf(Ze.texInfo,Ze.target)})}function _e(){for(var ne=0;ne=0?kf=!0:Bn.indexOf(Cu)>=0&&(kf=!1))),("depthTexture"in Fl||"depthStencilTexture"in Fl)&&(yf=!!(Fl.depthTexture||Fl.depthStencilTexture)),"depth"in Fl&&(typeof Fl.depth=="boolean"?Fu=Fl.depth:(Lf=Fl.depth,mf=!1)),"stencil"in Fl&&(typeof Fl.stencil=="boolean"?mf=Fl.stencil:(Hu=Fl.stencil,Fu=!1)),"depthStencil"in Fl&&(typeof Fl.depthStencil=="boolean"?Fu=mf=Fl.depthStencil:(hf=Fl.depthStencil,Fu=!1,mf=!1))}var cu=null,Y=null,R=null,J=null;if(Array.isArray(Ql))cu=Ql.map(Ni);else if(Ql)cu=[Ni(Ql)];else for(cu=new Array(bf),nl=0;nl0&&(Mo.depth=In[0].depth,Mo.stencil=In[0].stencil,Mo.depthStencil=In[0].depthStencil),In[Qn]?In[Qn](Mo):In[Qn]=Ui(Mo)}return e(Va,{width:nl,height:nl,color:Cu})}function _s(ul){var Qn,Mo=ul|0;if(Mo===Va.width)return Va;var nl=Va.color;for(Qn=0;Qn=nl.byteLength?pl.subdata(nl):(pl.destroy(),Ui.buffers[ul]=null)),Ui.buffers[ul]||(pl=Ui.buffers[ul]=mi.create(Qn,Ss,!1,!0)),Mo.buffer=mi.getBuffer(pl),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1,Va[ul]=1}else mi.getBuffer(Qn)?(Mo.buffer=mi.getBuffer(Qn),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1):mi.getBuffer(Qn.buffer)?(Mo.buffer=mi.getBuffer(Qn.buffer),Mo.size=(+Qn.size||Mo.buffer.dimension)|0,Mo.normalized=!!Qn.normalized||!1,"type"in Qn?Mo.type=di[Qn.type]:Mo.type=Mo.buffer.dtype,Mo.offset=(Qn.offset||0)|0,Mo.stride=(Qn.stride||0)|0,Mo.divisor=(Qn.divisor||0)|0,Mo.state=1):"x"in Qn&&(Mo.x=+Qn.x||0,Mo.y=+Qn.y||0,Mo.z=+Qn.z||0,Mo.w=+Qn.w||0,Mo.state=2)}for(var Dl=0;Dl1)for(var na=0;naWr&&(Wr=_i.stats.uniformsCount)}),Wr},ar.getMaxAttributesCount=function(){var Wr=0;return wn.forEach(function(_i){_i.stats.attributesCount>Wr&&(Wr=_i.stats.attributesCount)}),Wr});function Ni(){mi={},fi={};for(var Wr=0;Wr16&&(ar=Pi(ar,Be.length*8));for(var Qr=Array(16),mi=Array(16),fi=0;fi<16;fi++)Qr[fi]=ar[fi]^909522486,mi[fi]=ar[fi]^1549556828;var pi=Pi(Qr.concat(Bs(qt)),512+qt.length*8);return At(Pi(mi.concat(pi),768))}function Ms(Be){for(var qt=Ro?"0123456789ABCDEF":"0123456789abcdef",ar="",Qr,mi=0;mi>>4&15)+qt.charAt(Qr&15);return ar}function jo(Be){for(var qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ar="",Qr=Be.length,mi=0;miBe.length*8?ar+=tl:ar+=qt.charAt(fi>>>6*(3-pi)&63);return ar}function Rs(Be,qt){var ar=qt.length,Qr=Array(),mi,fi,pi,on,Bn=Array(Math.ceil(Be.length/2));for(mi=0;mi0;){for(on=Array(),pi=0,mi=0;mi0||fi>0)&&(on[on.length]=fi);Qr[Qr.length]=pi,Bn=on}var Ln="";for(mi=Qr.length-1;mi>=0;mi--)Ln+=qt.charAt(Qr[mi]);var wn=Math.ceil(Be.length*8/(Math.log(qt.length)/Math.log(2)));for(mi=Ln.length;mi>>6&31,128|Qr&63):Qr<=65535?qt+=String.fromCharCode(224|Qr>>>12&15,128|Qr>>>6&63,128|Qr&63):Qr<=2097151&&(qt+=String.fromCharCode(240|Qr>>>18&7,128|Qr>>>12&63,128|Qr>>>6&63,128|Qr&63));return qt}function Bs(Be){for(var qt=Array(Be.length>>2),ar=0;ar>5]|=(Be.charCodeAt(ar/8)&255)<<24-ar%32;return qt}function At(Be){for(var qt="",ar=0;ar>5]>>>24-ar%32&255);return qt}function Gt(Be,qt){return Be>>>qt|Be<<32-qt}function wr(Be,qt){return Be>>>qt}function mr(Be,qt,ar){return Be&qt^~Be&ar}function Or(Be,qt,ar){return Be&qt^Be&ar^qt&ar}function gi(Be){return Gt(Be,2)^Gt(Be,13)^Gt(Be,22)}function Ti(Be){return Gt(Be,6)^Gt(Be,11)^Gt(Be,25)}function ki(Be){return Gt(Be,7)^Gt(Be,18)^wr(Be,3)}function Ji(Be){return Gt(Be,17)^Gt(Be,19)^wr(Be,10)}var Fn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Pi(Be,qt){var ar=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Qr=new Array(64),mi,fi,pi,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Wr;for(Be[qt>>5]|=128<<24-qt%32,Be[(qt+64>>9<<4)+15]=qt,ua=0;ua>16)+(qt>>16)+(ar>>16);return Qr<<16|ar&65535}function Li(Be){return Array.prototype.slice.call(Be)}function Si(Be){return Li(Be).join("")}function Gn(Be){var qt=Be&&Be.cache,ar=0,Qr=[],mi=[],fi=[];function pi(Ni,Wr){var _i=Wr&&Wr.stable;if(!_i){for(var dn=0;dn0&&(Ni.push(En,"="),Ni.push.apply(Ni,Li(arguments)),Ni.push(";")),En}return e(Wr,{def:dn,toString:function(){return Si([_i.length>0?"var "+_i.join(",")+";":"",Si(Ni)])}})}function Bn(){var Ni=on(),Wr=on(),_i=Ni.toString,dn=Wr.toString;function En(Yi,ga){Wr(Yi,ga,"=",Ni.def(Yi,ga),";")}return e(function(){Ni.apply(Ni,Li(arguments))},{def:Ni.def,entry:Ni,exit:Wr,save:En,set:function(Yi,ga,Kn){En(Yi,ga),Ni(Yi,ga,"=",Kn,";")},toString:function(){return _i()+dn()}})}function Ln(){var Ni=Si(arguments),Wr=Bn(),_i=Bn(),dn=Wr.toString,En=_i.toString;return e(Wr,{then:function(){return Wr.apply(Wr,Li(arguments)),this},else:function(){return _i.apply(_i,Li(arguments)),this},toString:function(){var Yi=En();return Yi&&(Yi="else{"+Yi+"}"),Si(["if(",Ni,"){",dn(),"}",Yi])}})}var wn=on(),Ls={};function ua(Ni,Wr){var _i=[];function dn(){var hs="a"+_i.length;return _i.push(hs),hs}Wr=Wr||0;for(var En=0;En":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},zi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Xi={cw:ze,ccw:Xe};function pn(Be){return Array.isArray(Be)||br(Be)||Ut(Be)}function sn(Be){return Be.sort(function(qt,ar){return qt===ee?-1:ar===ee?1:qt=1,Qr>=2,qt)}else if(ar===Ks){var mi=Be.data;return new bi(mi.thisDep,mi.contextDep,mi.propDep,qt)}else{if(ar===dl)return new bi(!1,!1,!1,qt);if(ar===xl){for(var fi=!1,pi=!1,on=!1,Bn=0;Bn=1&&(pi=!0),wn>=2&&(on=!0)}else Ln.type===Ks&&(fi=fi||Ln.data.thisDep,pi=pi||Ln.data.contextDep,on=on||Ln.data.propDep)}return new bi(fi,pi,on,qt)}else return new bi(ar===Cs,ar===is,ar===zn,qt)}}var js=new bi(!1,!1,!1,function(){});function El(Be,qt,ar,Qr,mi,fi,pi,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Wr){var _i=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};ar.ext_blend_minmax&&(dn.min=Qe,dn.max=ot);var En=ar.angle_instanced_arrays,Yi=ar.webgl_draw_buffers,ga=ar.oes_vertex_array_object,Kn={dirty:!0,profile:Wr.profile},hs={},$i=[],Ui={},ro={};function na(Je){return Je.replace(".","_")}function On(Je,ht,bt){var Kt=na(Je);$i.push(Je),hs[Kt]=Kn[Kt]=!!bt,Ui[Kt]=ht}function In(Je,ht,bt){var Kt=na(Je);$i.push(Je),Array.isArray(bt)?(Kn[Kt]=bt.slice(),hs[Kt]=bt.slice()):Kn[Kt]=hs[Kt]=bt,ro[Kt]=ht}function Va(Je){return!!isNaN(Je)}On(Ol,hn),On(bl,Mi),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Vl,"blendFuncSeparate",[Cr,cr,Cr,cr]),On(ja,Yn,!0),In(ns,"depthFunc",ui),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),On(ll,si),In(il,"cullFace",se),In(zl,zl,Xe),In(Ml,Ml,1),On(Rl,Fo),In(Al,"polygonOffset",[0,0]),On(Ll,vl),On(ms,Us),In(Os,"sampleCoverage",[1,!1]),On(Xl,Zn),In(Gl,"stencilMask",-1),In(Ul,"stencilFunc",[jt,0,-1]),In(le,"stencilOpSeparate",[Z,_t,_t,_t]),In(w,"stencilOpSeparate",[se,_t,_t,_t]),On(q,Ua),In(Q,"scissor",[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]),In(ee,ee,[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]);var _s={gl:Be,context:ua,strings:qt,next:hs,current:Kn,draw:Ls,elements:fi,buffer:mi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:Bn,framebuffer:on,extensions:ar,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:vi,blendFuncs:fn,blendEquations:dn,stencilOps:zi,glTypes:di,orientationType:Xi};Yi&&(ul.backBuffer=[se],ul.drawBuffer=M(Qr.maxDrawbuffers,function(Je){return Je===0?[0]:M(Je,function(ht){return Oi+ht})}));var Qn=0;function Mo(){var Je=Gn({cache:Ni}),ht=Je.link,bt=Je.global;Je.id=Qn++,Je.batchId="0";var Kt=ht(_s),sr=Je.shared={props:"a0"};Object.keys(_s).forEach(function(Jt){sr[Jt]=bt.def(Kt,".",Jt)});var Qt=Je.next={},ur=Je.current={};Object.keys(ro).forEach(function(Jt){Array.isArray(Kn[Jt])&&(Qt[Jt]=bt.def(sr.next,".",Jt),ur[Jt]=bt.def(sr.current,".",Jt))});var er=Je.constants={};Object.keys(ul).forEach(function(Jt){er[Jt]=bt.def(JSON.stringify(ul[Jt]))}),Je.invoke=function(Jt,Lt){switch(Lt.type){case va:var Tr=["this",sr.context,sr.props,Je.batchId];return Jt.def(ht(Lt.data),".call(",Tr.slice(0,Math.max(Lt.data.length+1,4)),")");case zn:return Jt.def(sr.props,Lt.data);case is:return Jt.def(sr.context,Lt.data);case Cs:return Jt.def("this",Lt.data);case Ks:return Lt.data.append(Je,Jt),Lt.data.ref;case dl:return Lt.data.toString();case xl:return Lt.data.map(function(Nr){return Je.invoke(Jt,Nr)})}},Je.attribCache={};var Ot={};return Je.scopeAttrib=function(Jt){var Lt=qt.id(Jt);if(Lt in Ot)return Ot[Lt];var Tr=Ln.scope[Lt];Tr||(Tr=Ln.scope[Lt]=new _i);var Nr=Ot[Lt]=ht(Tr);return Nr},Je}function nl(Je){var ht=Je.static,bt=Je.dynamic,Kt;if(ue in ht){var sr=!!ht[ue];Kt=no(function(ur,er){return sr}),Kt.enable=sr}else if(ue in bt){var Qt=bt[ue];Kt=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}return Kt}function pl(Je,ht){var bt=Je.static,Kt=Je.dynamic;if(Ge in bt){var sr=bt[Ge];return sr?(sr=on.getFramebuffer(sr),no(function(ur,er){var Ot=ur.link(sr),Jt=ur.shared;er.set(Jt.framebuffer,".next",Ot);var Lt=Jt.context;return er.set(Lt,"."+He,Ot+".width"),er.set(Lt,"."+lt,Ot+".height"),Ot})):no(function(ur,er){var Ot=ur.shared;er.set(Ot.framebuffer,".next","null");var Jt=Ot.context;return er.set(Jt,"."+He,Jt+"."+nr),er.set(Jt,"."+lt,Jt+"."+fr),"null"})}else if(Ge in Kt){var Qt=Kt[Ge];return Xo(Qt,function(ur,er){var Ot=ur.invoke(er,Qt),Jt=ur.shared,Lt=Jt.framebuffer,Tr=er.def(Lt,".getFramebuffer(",Ot,")");er.set(Lt,".next",Tr);var Nr=Jt.context;return er.set(Nr,"."+He,Tr+"?"+Tr+".width:"+Nr+"."+nr),er.set(Nr,"."+lt,Tr+"?"+Tr+".height:"+Nr+"."+fr),Tr})}else return null}function Dl(Je,ht,bt){var Kt=Je.static,sr=Je.dynamic;function Qt(Ot){if(Ot in Kt){var Jt=Kt[Ot],Lt=!0,Tr=Jt.x|0,Nr=Jt.y|0,ci,Cn;return"width"in Jt?ci=Jt.width|0:Lt=!1,"height"in Jt?Cn=Jt.height|0:Lt=!1,new bi(!Lt&&ht&&ht.thisDep,!Lt&&ht&&ht.contextDep,!Lt&&ht&&ht.propDep,function(Xa,ca){var Tn=Xa.shared.context,Pn=ci;"width"in Jt||(Pn=ca.def(Tn,".",He,"-",Tr));var Nn=Cn;return"height"in Jt||(Nn=ca.def(Tn,".",lt,"-",Nr)),[Tr,Nr,Pn,Nn]})}else if(Ot in sr){var Ki=sr[Ot],yn=Xo(Ki,function(Xa,ca){var Tn=Xa.invoke(ca,Ki),Pn=Xa.shared.context,Nn=ca.def(Tn,".x|0"),xa=ca.def(Tn,".y|0"),Zo=ca.def('"width" in ',Tn,"?",Tn,".width|0:","(",Pn,".",He,"-",Nn,")"),ru=ca.def('"height" in ',Tn,"?",Tn,".height|0:","(",Pn,".",lt,"-",xa,")");return[Nn,xa,Zo,ru]});return ht&&(yn.thisDep=yn.thisDep||ht.thisDep,yn.contextDep=yn.contextDep||ht.contextDep,yn.propDep=yn.propDep||ht.propDep),yn}else return ht?new bi(ht.thisDep,ht.contextDep,ht.propDep,function(Xa,ca){var Tn=Xa.shared.context;return[0,0,ca.def(Tn,".",He),ca.def(Tn,".",lt)]}):null}var ur=Qt(ee);if(ur){var er=ur;ur=new bi(ur.thisDep,ur.contextDep,ur.propDep,function(Ot,Jt){var Lt=er.append(Ot,Jt),Tr=Ot.shared.context;return Jt.set(Tr,"."+tt,Lt[2]),Jt.set(Tr,"."+pt,Lt[3]),Lt})}return{viewport:ur,scissor_box:Qt(Q)}}function Fu(Je,ht){var bt=Je.static,Kt=typeof bt[mt]=="string"&&typeof bt[et]=="string";if(Kt){if(Object.keys(ht.dynamic).length>0)return null;var sr=ht.static,Qt=Object.keys(sr);if(Qt.length>0&&typeof sr[Qt[0]]=="number"){for(var ur=[],er=0;er"+Nn+"?"+Lt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",ci,"(",Lt,".buffer)){",Xa,"=",Cn,".createStream(",Rr,",",Lt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Lt,".buffer);","}",ca,'="type" in ',Lt,"?",Nr.glTypes,"[",Lt,".type]:",Xa,".dtype;",Ki.normalized,"=!!",Lt,".normalized;");function Tn(Pn){Jt(Ki[Pn],"=",Lt,".",Pn,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),Jt("}}"),Jt.exit("if(",Ki.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Ki}sr[Qt]=Xo(ur,er)}),sr}function bf(Je){var ht=Je.static,bt=Je.dynamic,Kt={};return Object.keys(ht).forEach(function(sr){var Qt=ht[sr];Kt[sr]=no(function(ur,er){return typeof Qt=="number"||typeof Qt=="boolean"?""+Qt:ur.link(Qt)})}),Object.keys(bt).forEach(function(sr){var Qt=bt[sr];Kt[sr]=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}),Kt}function Lf(Je,ht,bt,Kt,sr){var Qt=Je.static,ur=Je.dynamic,er=Fu(Je,ht),Ot=pl(Je,sr),Jt=Dl(Je,Ot,sr),Lt=Ql(Je,sr),Tr=kf(Je,sr),Nr=mf(Je,sr,er);function ci(Tn){var Pn=Jt[Tn];Pn&&(Tr[Tn]=Pn)}ci(ee),ci(na(Q));var Cn=Object.keys(Tr).length>0,Ki={framebuffer:Ot,draw:Lt,shader:Nr,state:Tr,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Ki.profile=nl(Je,sr),Ki.uniforms=Cu(bt,sr),Ki.drawVAO=Ki.scopeVAO=Lt.vao,!Ki.drawVAO&&Nr.program&&!er&&ar.angle_instanced_arrays&&Lt.static.elements){var yn=!0,Xa=Nr.program.attributes.map(function(Tn){var Pn=ht.static[Tn];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Lt.static.elements}));Ki.drawVAO=new bi(null,null,null,function(Tn,Pn){return Tn.link(ca)}),Ki.useVAO=!0}}return er?Ki.useVAO=!0:Ki.attributes=_f(ht,sr),Ki.context=bf(Kt,sr),Ki}function Hu(Je,ht,bt){var Kt=Je.shared,sr=Kt.context,Qt=Je.scope();Object.keys(bt).forEach(function(ur){ht.save(sr,"."+ur);var er=bt[ur],Ot=er.append(Je,ht);Array.isArray(Ot)?Qt(sr,".",ur,"=[",Ot.join(),"];"):Qt(sr,".",ur,"=",Ot,";")}),ht(Qt)}function hf(Je,ht,bt,Kt){var sr=Je.shared,Qt=sr.gl,ur=sr.framebuffer,er;Yi&&(er=ht.def(sr.extensions,".webgl_draw_buffers"));var Ot=Je.constants,Jt=Ot.drawBuffer,Lt=Ot.backBuffer,Tr;bt?Tr=bt.append(Je,ht):Tr=ht.def(ur,".next"),Kt||ht("if(",Tr,"!==",ur,".cur){"),ht("if(",Tr,"){",Qt,".bindFramebuffer(",$r,",",Tr,".framebuffer);"),Yi&&ht(er,".drawBuffersWEBGL(",Jt,"[",Tr,".colorAttachments.length]);"),ht("}else{",Qt,".bindFramebuffer(",$r,",null);"),Yi&&ht(er,".drawBuffersWEBGL(",Lt,");"),ht("}",ur,".cur=",Tr,";"),Kt||ht("}")}function yf(Je,ht,bt){var Kt=Je.shared,sr=Kt.gl,Qt=Je.current,ur=Je.next,er=Kt.current,Ot=Kt.next,Jt=Je.cond(er,".dirty");$i.forEach(function(Lt){var Tr=na(Lt);if(!(Tr in bt.state)){var Nr,ci;if(Tr in ur){Nr=ur[Tr],ci=Qt[Tr];var Cn=M(Kn[Tr].length,function(yn){return Jt.def(Nr,"[",yn,"]")});Jt(Je.cond(Cn.map(function(yn,Xa){return yn+"!=="+ci+"["+Xa+"]"}).join("||")).then(sr,".",ro[Tr],"(",Cn,");",Cn.map(function(yn,Xa){return ci+"["+Xa+"]="+yn}).join(";"),";"))}else{Nr=Jt.def(Ot,".",Tr);var Ki=Je.cond(Nr,"!==",er,".",Tr);Jt(Ki),Tr in Ui?Ki(Je.cond(Nr).then(sr,".enable(",Ui[Tr],");").else(sr,".disable(",Ui[Tr],");"),er,".",Tr,"=",Nr,";"):Ki(sr,".",ro[Tr],"(",Nr,");",er,".",Tr,"=",Nr,";")}}}),Object.keys(bt.state).length===0&&Jt(er,".dirty=false;"),ht(Jt)}function Fl(Je,ht,bt,Kt){var sr=Je.shared,Qt=Je.current,ur=sr.current,er=sr.gl,Ot;sn(Object.keys(bt)).forEach(function(Jt){var Lt=bt[Jt];if(!(Kt&&!Kt(Lt))){var Tr=Lt.append(Je,ht);if(Ui[Jt]){var Nr=Ui[Jt];xo(Lt)?(Ot=Je.link(Tr,{stable:!0}),ht(Je.cond(Ot).then(er,".enable(",Nr,");").else(er,".disable(",Nr,");")),ht(ur,".",Jt,"=",Ot,";")):(ht(Je.cond(Tr).then(er,".enable(",Nr,");").else(er,".disable(",Nr,");")),ht(ur,".",Jt,"=",Tr,";"))}else if(Qi(Tr)){var ci=Qt[Jt];ht(er,".",ro[Jt],"(",Tr,");",Tr.map(function(Cn,Ki){return ci+"["+Ki+"]="+Cn}).join(";"),";")}else xo(Lt)?(Ot=Je.link(Tr,{stable:!0}),ht(er,".",ro[Jt],"(",Ot,");",ur,".",Jt,"=",Ot,";")):ht(er,".",ro[Jt],"(",Tr,");",ur,".",Jt,"=",Tr,";")}})}function wf(Je,ht){En&&(Je.instancing=ht.def(Je.shared.extensions,".angle_instanced_arrays"))}function cu(Je,ht,bt,Kt,sr){var Qt=Je.shared,ur=Je.stats,er=Qt.current,Ot=Qt.timer,Jt=bt.profile;function Lt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Tr,Nr;function ci(Tn){Tr=ht.def(),Tn(Tr,"=",Lt(),";"),typeof sr=="string"?Tn(ur,".count+=",sr,";"):Tn(ur,".count++;"),Hn&&(Kt?(Nr=ht.def(),Tn(Nr,"=",Ot,".getNumPendingQueries();")):Tn(Ot,".beginQuery(",ur,");"))}function Cn(Tn){Tn(ur,".cpuTime+=",Lt(),"-",Tr,";"),Hn&&(Kt?Tn(Ot,".pushScopeStats(",Nr,",",Ot,".getNumPendingQueries(),",ur,");"):Tn(Ot,".endQuery();"))}function Ki(Tn){var Pn=ht.def(er,".profile");ht(er,".profile=",Tn,";"),ht.exit(er,".profile=",Pn,";")}var yn;if(Jt){if(xo(Jt)){Jt.enable?(ci(ht),Cn(ht.exit),Ki("true")):Ki("false");return}yn=Jt.append(Je,ht),Ki(yn)}else yn=ht.def(er,".profile");var Xa=Je.block();ci(Xa),ht("if(",yn,"){",Xa,"}");var ca=Je.block();Cn(ca),ht.exit("if(",yn,"){",ca,"}")}function Y(Je,ht,bt,Kt,sr){var Qt=Je.shared;function ur(Ot){switch(Ot){case au:case ou:case Wu:return 2;case Sl:case Pu:case Qu:return 3;case Yl:case iu:case Ju:return 4;default:return 1}}function er(Ot,Jt,Lt){var Tr=Qt.gl,Nr=ht.def(Ot,".location"),ci=ht.def(Qt.attributes,"[",Nr,"]"),Cn=Lt.state,Ki=Lt.buffer,yn=[Lt.x,Lt.y,Lt.z,Lt.w],Xa=["buffer","normalized","offset","stride"];function ca(){ht("if(!",ci,".buffer){",Tr,".enableVertexAttribArray(",Nr,");}");var Pn=Lt.type,Nn;if(Lt.size?Nn=ht.def(Lt.size,"||",Jt):Nn=Jt,ht("if(",ci,".type!==",Pn,"||",ci,".size!==",Nn,"||",Xa.map(function(Zo){return ci+"."+Zo+"!=="+Lt[Zo]}).join("||"),"){",Tr,".bindBuffer(",Rr,",",Ki,".buffer);",Tr,".vertexAttribPointer(",[Nr,Nn,Pn,Lt.normalized,Lt.stride,Lt.offset],");",ci,".type=",Pn,";",ci,".size=",Nn,";",Xa.map(function(Zo){return ci+"."+Zo+"="+Lt[Zo]+";"}).join(""),"}"),En){var xa=Lt.divisor;ht("if(",ci,".divisor!==",xa,"){",Je.instancing,".vertexAttribDivisorANGLE(",[Nr,xa],");",ci,".divisor=",xa,";}")}}function Tn(){ht("if(",ci,".buffer){",Tr,".disableVertexAttribArray(",Nr,");",ci,".buffer=null;","}if(",ta.map(function(Pn,Nn){return ci+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Tr,".vertexAttrib4f(",Nr,",",yn,");",ta.map(function(Pn,Nn){return ci+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?Tn():(ht("if(",Cn,"===",ia,"){"),ca(),ht("}else{"),Tn(),ht("}"))}Kt.forEach(function(Ot){var Jt=Ot.name,Lt=bt.attributes[Jt],Tr;if(Lt){if(!sr(Lt))return;Tr=Lt.append(Je,ht)}else{if(!sr(js))return;var Nr=Je.scopeAttrib(Jt);Tr={},Object.keys(new _i).forEach(function(ci){Tr[ci]=ht.def(Nr,".",ci)})}er(Je.link(Ot),ur(Ot.info.type),Tr)})}function R(Je,ht,bt,Kt,sr,Qt){for(var ur=Je.shared,er=ur.gl,Ot,Jt=0;Jt1){for(var yu=[],Du=[],vu=0;vu>1)",Ki],");")}function xa(){bt(yn,".drawArraysInstancedANGLE(",[Nr,ci,Cn,Ki],");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}function Pn(){function Nn(){bt(Qt+".drawElements("+[Nr,Cn,Xa,ci+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){bt(Qt+".drawArrays("+[Nr,ci,Cn]+");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}En&&(typeof Ki!="number"||Ki>=0)?typeof Ki=="string"?(bt("if(",Ki,">0){"),Tn(),bt("}else if(",Ki,"<0){"),Pn(),bt("}")):Tn():Pn()}function O(Je,ht,bt,Kt,sr){var Qt=Mo(),ur=Qt.proc("body",sr);return En&&(Qt.instancing=ur.def(Qt.shared.extensions,".angle_instanced_arrays")),Je(Qt,ur,bt,Kt),Qt.compile().body}function K(Je,ht,bt,Kt){wf(Je,ht),bt.useVAO?bt.drawVAO?ht(Je.shared.vao,".setVAO(",bt.drawVAO.append(Je,ht),");"):ht(Je.shared.vao,".setVAO(",Je.shared.vao,".targetVAO);"):(ht(Je.shared.vao,".setVAO(null);"),Y(Je,ht,bt,Kt.attributes,function(){return!0})),R(Je,ht,bt,Kt.uniforms,function(){return!0},!1),J(Je,ht,ht,bt)}function _e(Je,ht){var bt=Je.proc("draw",1);wf(Je,bt),Hu(Je,bt,ht.context),hf(Je,bt,ht.framebuffer),yf(Je,bt,ht),Fl(Je,bt,ht.state),cu(Je,bt,ht,!1,!0);var Kt=ht.shader.progVar.append(Je,bt);if(bt(Je.shared.gl,".useProgram(",Kt,".program);"),ht.shader.program)K(Je,bt,ht,ht.shader.program);else{bt(Je.shared.vao,".setVAO(null);");var sr=Je.global.def("{}"),Qt=bt.def(Kt,".id"),ur=bt.def(sr,"[",Qt,"]");bt(Je.cond(ur).then(ur,".call(this,a0);").else(ur,"=",sr,"[",Qt,"]=",Je.link(function(er){return O(K,Je,ht,er,1)}),"(",Kt,");",ur,".call(this,a0);"))}Object.keys(ht.state).length>0&&bt(Je.shared.current,".dirty=true;"),Je.shared.vao&&bt(Je.shared.vao,".setVAO(null);")}function ne(Je,ht,bt,Kt){Je.batchId="a1",wf(Je,ht);function sr(){return!0}Y(Je,ht,bt,Kt.attributes,sr),R(Je,ht,bt,Kt.uniforms,sr,!1),J(Je,ht,ht,bt)}function Le(Je,ht,bt,Kt){wf(Je,ht);var sr=bt.contextDep,Qt=ht.def(),ur="a0",er="a1",Ot=ht.def();Je.shared.props=Ot,Je.batchId=Qt;var Jt=Je.scope(),Lt=Je.scope();ht(Jt.entry,"for(",Qt,"=0;",Qt,"<",er,";++",Qt,"){",Ot,"=",ur,"[",Qt,"];",Lt,"}",Jt.exit);function Tr(Xa){return Xa.contextDep&&sr||Xa.propDep}function Nr(Xa){return!Tr(Xa)}if(bt.needsContext&&Hu(Je,Lt,bt.context),bt.needsFramebuffer&&hf(Je,Lt,bt.framebuffer),Fl(Je,Lt,bt.state,Tr),bt.profile&&Tr(bt.profile)&&cu(Je,Lt,bt,!1,!0),Kt)bt.useVAO?bt.drawVAO?Tr(bt.drawVAO)?Lt(Je.shared.vao,".setVAO(",bt.drawVAO.append(Je,Lt),");"):Jt(Je.shared.vao,".setVAO(",bt.drawVAO.append(Je,Jt),");"):Jt(Je.shared.vao,".setVAO(",Je.shared.vao,".targetVAO);"):(Jt(Je.shared.vao,".setVAO(null);"),Y(Je,Jt,bt,Kt.attributes,Nr),Y(Je,Lt,bt,Kt.attributes,Tr)),R(Je,Jt,bt,Kt.uniforms,Nr,!1),R(Je,Lt,bt,Kt.uniforms,Tr,!0),J(Je,Jt,Lt,bt);else{var ci=Je.global.def("{}"),Cn=bt.shader.progVar.append(Je,Lt),Ki=Lt.def(Cn,".id"),yn=Lt.def(ci,"[",Ki,"]");Lt(Je.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",ci,"[",Ki,"]=",Je.link(function(Xa){return O(ne,Je,bt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Qt,"],",Qt,");")}}function Ze(Je,ht){var bt=Je.proc("batch",2);Je.batchId="0",wf(Je,bt);var Kt=!1,sr=!0;Object.keys(ht.context).forEach(function(ci){Kt=Kt||ht.context[ci].propDep}),Kt||(Hu(Je,bt,ht.context),sr=!1);var Qt=ht.framebuffer,ur=!1;Qt?(Qt.propDep?Kt=ur=!0:Qt.contextDep&&Kt&&(ur=!0),ur||hf(Je,bt,Qt)):hf(Je,bt,null),ht.state.viewport&&ht.state.viewport.propDep&&(Kt=!0);function er(ci){return ci.contextDep&&Kt||ci.propDep}yf(Je,bt,ht),Fl(Je,bt,ht.state,function(ci){return!er(ci)}),(!ht.profile||!er(ht.profile))&&cu(Je,bt,ht,!1,"a1"),ht.contextDep=Kt,ht.needsContext=sr,ht.needsFramebuffer=ur;var Ot=ht.shader.progVar;if(Ot.contextDep&&Kt||Ot.propDep)Le(Je,bt,ht,null);else{var Jt=Ot.append(Je,bt);if(bt(Je.shared.gl,".useProgram(",Jt,".program);"),ht.shader.program)Le(Je,bt,ht,ht.shader.program);else{bt(Je.shared.vao,".setVAO(null);");var Lt=Je.global.def("{}"),Tr=bt.def(Jt,".id"),Nr=bt.def(Lt,"[",Tr,"]");bt(Je.cond(Nr).then(Nr,".call(this,a0,a1);").else(Nr,"=",Lt,"[",Tr,"]=",Je.link(function(ci){return O(Le,Je,ht,ci,2)}),"(",Jt,");",Nr,".call(this,a0,a1);"))}}Object.keys(ht.state).length>0&&bt(Je.shared.current,".dirty=true;"),Je.shared.vao&&bt(Je.shared.vao,".setVAO(null);")}function Ct(Je,ht){var bt=Je.proc("scope",3);Je.batchId="a2";var Kt=Je.shared,sr=Kt.current;if(Hu(Je,bt,ht.context),ht.framebuffer&&ht.framebuffer.append(Je,bt),sn(Object.keys(ht.state)).forEach(function(er){var Ot=ht.state[er],Jt=Ot.append(Je,bt);Qi(Jt)?Jt.forEach(function(Lt,Tr){Va(Lt)?bt.set(Je.next[er],"["+Tr+"]",Lt):bt.set(Je.next[er],"["+Tr+"]",Je.link(Lt,{stable:!0}))}):xo(Ot)?bt.set(Kt.next,"."+er,Je.link(Jt,{stable:!0})):bt.set(Kt.next,"."+er,Jt)}),cu(Je,bt,ht,!0,!0),[Ft,kr,or,Vr,ir].forEach(function(er){var Ot=ht.draw[er];if(Ot){var Jt=Ot.append(Je,bt);Va(Jt)?bt.set(Kt.draw,"."+er,Jt):bt.set(Kt.draw,"."+er,Je.link(Jt),{stable:!0})}}),Object.keys(ht.uniforms).forEach(function(er){var Ot=ht.uniforms[er].append(Je,bt);Array.isArray(Ot)&&(Ot="["+Ot.map(function(Jt){return Va(Jt)?Jt:Je.link(Jt,{stable:!0})})+"]"),bt.set(Kt.uniforms,"["+Je.link(qt.id(er),{stable:!0})+"]",Ot)}),Object.keys(ht.attributes).forEach(function(er){var Ot=ht.attributes[er].append(Je,bt),Jt=Je.scopeAttrib(er);Object.keys(new _i).forEach(function(Lt){bt.set(Jt,"."+Lt,Ot[Lt])})}),ht.scopeVAO){var Qt=ht.scopeVAO.append(Je,bt);Va(Qt)?bt.set(Kt.vao,".targetVAO",Qt):bt.set(Kt.vao,".targetVAO",Je.link(Qt,{stable:!0}))}function ur(er){var Ot=ht.shader[er];if(Ot){var Jt=Ot.append(Je,bt);Va(Jt)?bt.set(Kt.shader,"."+er,Jt):bt.set(Kt.shader,"."+er,Je.link(Jt,{stable:!0}))}}ur(et),ur(mt),Object.keys(ht.state).length>0&&(bt(sr,".dirty=true;"),bt.exit(sr,".dirty=true;")),bt("a1(",Je.shared.context,",a0,",Je.batchId,");")}function dr(Je){if(!(typeof Je!="object"||Qi(Je))){for(var ht=Object.keys(Je),bt=0;bt=0;--O){var K=_s[O];K&&K(Ni,null,0)}ar.flush(),wn&&wn.update()}function Dl(){!nl&&_s.length>0&&(nl=d.next(pl))}function Fu(){nl&&(d.cancel(pl),nl=null)}function mf(O){O.preventDefault(),mi=!0,Fu(),ul.forEach(function(K){K()})}function Ql(O){ar.getError(),mi=!1,fi.restore(),hs.restore(),En.restore(),$i.restore(),Ui.restore(),ro.restore(),ga.restore(),wn&&wn.restore(),na.procs.refresh(),Dl(),Qn.forEach(function(K){K()})}Va&&(Va.addEventListener(Au,mf,!1),Va.addEventListener(Tu,Ql,!1));function kf(){_s.length=0,Fu(),Va&&(Va.removeEventListener(Au,mf),Va.removeEventListener(Tu,Ql)),hs.clear(),ro.clear(),Ui.clear(),ga.clear(),$i.clear(),Yi.clear(),En.clear(),wn&&wn.clear(),Mo.forEach(function(O){O()})}function Cu(O){function K(Qt){var ur=e({},Qt);delete ur.uniforms,delete ur.attributes,delete ur.context,delete ur.vao,"stencil"in ur&&ur.stencil.op&&(ur.stencil.opBack=ur.stencil.opFront=ur.stencil.op,delete ur.stencil.op);function er(Ot){if(Ot in ur){var Jt=ur[Ot];delete ur[Ot],Object.keys(Jt).forEach(function(Lt){ur[Ot+"."+Lt]=Jt[Lt]})}}return er("blend"),er("depth"),er("cull"),er("stencil"),er("polygonOffset"),er("scissor"),er("sample"),"vao"in Qt&&(ur.vao=Qt.vao),ur}function _e(Qt,ur){var er={},Ot={};return Object.keys(Qt).forEach(function(Jt){var Lt=Qt[Jt];if(h.isDynamic(Lt)){Ot[Jt]=h.unbox(Lt,Jt);return}else if(ur&&Array.isArray(Lt)){for(var Tr=0;Tr0)return Je.call(this,Kt(Qt|0),Qt|0)}else if(Array.isArray(Qt)){if(Qt.length)return Je.call(this,Qt,Qt.length)}else return lr.call(this,Qt)}return e(sr,{stats:dr,destroy:function(){Er.destroy()}})}var _f=ro.setFBO=Cu({framebuffer:h.define.call(null,uf,"framebuffer")});function bf(O,K){var _e=0;na.procs.poll();var ne=K.color;ne&&(ar.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),_e|=Gu),"depth"in K&&(ar.clearDepth(+K.depth),_e|=rf),"stencil"in K&&(ar.clearStencil(K.stencil|0),_e|=ds),ar.clear(_e)}function Lf(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)_f(e({framebuffer:O.framebuffer.faces[K]},O),bf);else _f(O,bf);else bf(null,O)}function Hu(O){_s.push(O);function K(){var _e=vf(_s,O);function ne(){var Le=vf(_s,ne);_s[Le]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Fu()}_s[_e]=ne}return Dl(),{cancel:K}}function hf(){var O=In.viewport,K=In.scissor_box;O[0]=O[1]=K[0]=K[1]=0,Ni.viewportWidth=Ni.framebufferWidth=Ni.drawingBufferWidth=O[2]=K[2]=ar.drawingBufferWidth,Ni.viewportHeight=Ni.framebufferHeight=Ni.drawingBufferHeight=O[3]=K[3]=ar.drawingBufferHeight}function yf(){Ni.tick+=1,Ni.time=wf(),hf(),na.procs.poll()}function Fl(){$i.refresh(),hf(),na.procs.refresh(),wn&&wn.update()}function wf(){return(p()-Ls)/1e3}Fl();function cu(O,K){var _e;switch(O){case"frame":return Hu(K);case"lost":_e=ul;break;case"restore":_e=Qn;break;case"destroy":_e=Mo;break;default:}return _e.push(K),{cancel:function(){for(var ne=0;ne<_e.length;++ne)if(_e[ne]===K){_e[ne]=_e[_e.length-1],_e.pop();return}}}}function Y(){return Bn}function R(O){Object.entries(O).forEach(function(K){Bn[K[0]]=K[1]})}var J=e(Cu,{clear:Lf,prop:h.define.bind(null,uf),context:h.define.bind(null,df),this:h.define.bind(null,Ef),draw:Cu({}),buffer:function(O){return En.create(O,Wl,!1,!1)},elements:function(O){return Yi.create(O,!1)},texture:$i.create2D,cube:$i.createCube,renderbuffer:Ui.create,framebuffer:ro.create,framebufferCube:ro.createCube,vao:ga.createVAO,attributes:Qr,frame:Hu,on:cu,limits:dn,hasExtension:function(O){return dn.extensions.indexOf(O.toLowerCase())>=0},read:On,destroy:kf,_gl:ar,_refresh:Fl,poll:function(){yf(),wn&&wn.update()},now:wf,stats:on,getCachedCode:Y,preloadCachedCode:R});return qt.onDone(null,J),J}return fc})});var qqe=Te((C_r,Oqe)=>{"use strict";var fUt=Xy();Oqe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},Fqe(t)?t={container:t}:cUt(t)?t={container:t}:hUt(t)?t={gl:t}:t=fUt(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}Fqe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=Bqe(),t.container.appendChild(t.canvas),Dqe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=Bqe(),t.container.appendChild(t.canvas),Dqe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch(i){}return t.gl}),t.gl};function Dqe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function Fqe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function cUt(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function hUt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Bqe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var Uqe=Te((L_r,Nqe)=>{"use strict";var dUt=sK(),pUt=[32,126];Nqe.exports=vUt;function vUt(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||pUt;if(n&&typeof n!="string"&&(n=dUt(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],u=0;s<=a[1];s++)o[u++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var l=r.getContext("2d");l.fillStyle="#000",l.fillRect(0,0,r.width,r.height),l.font=n,l.textAlign="center",l.textBaseline="middle",l.fillStyle="#fff";for(var f=i[0]/2,c=i[1]/2,s=0;st[0]-i[0]/2&&(f=i[0]/2,c+=i[1]);return r}});var cK=Te(Gh=>{"use strict";"use restrict";var fK=32;Gh.INT_BITS=fK;Gh.INT_MAX=2147483647;Gh.INT_MIN=-1<0)-(e<0)};Gh.abs=function(e){var t=e>>fK-1;return(e^t)-t};Gh.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Gh.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Gh.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function Vqe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Gh.countTrailingZeros=Vqe;Gh.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Gh.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Gh.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Sk=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<>>8&255]<<16|Sk[e>>>16&255]<<8|Sk[e>>>24&255]};Gh.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Gh.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Gh.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Gh.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Gh.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>Vqe(e)+1}});var Wqe=Te((z_r,Hqe)=>{"use strict";function Gqe(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a0)return mUt(e|0,t);break;case"object":if(typeof e.length=="number")return Gqe(e,t,0);break}return[]}Hqe.exports=yUt});var oNe=Te(rc=>{"use strict";var fx=cK(),kp=Wqe(),jqe=u2().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:kp([32,0]),UINT16:kp([32,0]),UINT32:kp([32,0]),BIGUINT64:kp([32,0]),INT8:kp([32,0]),INT16:kp([32,0]),INT32:kp([32,0]),BIGINT64:kp([32,0]),FLOAT:kp([32,0]),DOUBLE:kp([32,0]),DATA:kp([32,0]),UINT8C:kp([32,0]),BUFFER:kp([32,0])});var gUt=typeof Uint8ClampedArray!="undefined",_Ut=typeof BigUint64Array!="undefined",xUt=typeof BigInt64Array!="undefined",sd=window.__TYPEDARRAY_POOL;sd.UINT8C||(sd.UINT8C=kp([32,0]));sd.BIGUINT64||(sd.BIGUINT64=kp([32,0]));sd.BIGINT64||(sd.BIGINT64=kp([32,0]));sd.BUFFER||(sd.BUFFER=kp([32,0]));var m8=sd.DATA,y8=sd.BUFFER;rc.free=function(t){if(jqe.isBuffer(t))y8[fx.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=fx.log2(r)|0;m8[n].push(t)}};function Xqe(e){if(e){var t=e.length||e.byteLength,r=fx.log2(t);m8[r].push(e)}}function bUt(e){Xqe(e.buffer)}rc.freeUint8=rc.freeUint16=rc.freeUint32=rc.freeBigUint64=rc.freeInt8=rc.freeInt16=rc.freeInt32=rc.freeBigInt64=rc.freeFloat32=rc.freeFloat=rc.freeFloat64=rc.freeDouble=rc.freeUint8Clamped=rc.freeDataView=bUt;rc.freeArrayBuffer=Xqe;rc.freeBuffer=function(t){y8[fx.log2(t.length)].push(t)};rc.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Ov(t);switch(r){case"uint8":return hK(t);case"uint16":return Zqe(t);case"uint32":return Yqe(t);case"int8":return Kqe(t);case"int16":return Jqe(t);case"int32":return $qe(t);case"float":case"float32":return Qqe(t);case"double":case"float64":return eNe(t);case"uint8_clamped":return tNe(t);case"bigint64":return iNe(t);case"biguint64":return rNe(t);case"buffer":return aNe(t);case"data":case"dataview":return nNe(t);default:return null}return null};function Ov(t){var t=fx.nextPow2(t),r=fx.log2(t),n=m8[r];return n.length>0?n.pop():new ArrayBuffer(t)}rc.mallocArrayBuffer=Ov;function hK(e){return new Uint8Array(Ov(e),0,e)}rc.mallocUint8=hK;function Zqe(e){return new Uint16Array(Ov(2*e),0,e)}rc.mallocUint16=Zqe;function Yqe(e){return new Uint32Array(Ov(4*e),0,e)}rc.mallocUint32=Yqe;function Kqe(e){return new Int8Array(Ov(e),0,e)}rc.mallocInt8=Kqe;function Jqe(e){return new Int16Array(Ov(2*e),0,e)}rc.mallocInt16=Jqe;function $qe(e){return new Int32Array(Ov(4*e),0,e)}rc.mallocInt32=$qe;function Qqe(e){return new Float32Array(Ov(4*e),0,e)}rc.mallocFloat32=rc.mallocFloat=Qqe;function eNe(e){return new Float64Array(Ov(8*e),0,e)}rc.mallocFloat64=rc.mallocDouble=eNe;function tNe(e){return gUt?new Uint8ClampedArray(Ov(e),0,e):hK(e)}rc.mallocUint8Clamped=tNe;function rNe(e){return _Ut?new BigUint64Array(Ov(8*e),0,e):null}rc.mallocBigUint64=rNe;function iNe(e){return xUt?new BigInt64Array(Ov(8*e),0,e):null}rc.mallocBigInt64=iNe;function nNe(e){return new DataView(Ov(e),0,e)}rc.mallocDataView=nNe;function aNe(e){e=fx.nextPow2(e);var t=fx.log2(e),r=y8[t];return r.length>0?r.pop():new jqe(e)}rc.mallocBuffer=aNe;rc.clearCache=function(){for(var t=0;t<32;++t)sd.UINT8[t].length=0,sd.UINT16[t].length=0,sd.UINT32[t].length=0,sd.INT8[t].length=0,sd.INT16[t].length=0,sd.INT32[t].length=0,sd.FLOAT[t].length=0,sd.DOUBLE[t].length=0,sd.BIGUINT64[t].length=0,sd.BIGINT64[t].length=0,sd.UINT8C[t].length=0,m8[t].length=0,y8[t].length=0}});var lNe=Te((R_r,sNe)=>{"use strict";var wUt=Object.prototype.toString;sNe.exports=function(e){var t;return wUt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var dK=Te((D_r,uNe)=>{uNe.exports=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var hNe=Te((F_r,cNe)=>{"use strict";var AUt=dK();cNe.exports=fNe;var Mk=96;function pK(e,t){var r=AUt(getComputedStyle(e).getPropertyValue(t));return r[0]*fNe(r[1],e)}function TUt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=pK(r,"font-size")/128;return t.removeChild(r),n}function fNe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return TUt(e,t);case"em":return pK(t,"font-size");case"rem":return pK(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return Mk;case"cm":return Mk/2.54;case"mm":return Mk/25.4;case"pt":return Mk/72;case"pc":return Mk/6}return 1}});var vNe=Te((B_r,pNe)=>{"use strict";pNe.exports=x8;var SUt=x8.canvas=document.createElement("canvas"),g8=SUt.getContext("2d"),dNe=_8([32,126]);x8.createPairs=_8;x8.ascii=dNe;function x8(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=_8(t):Array.isArray(t)?n=t:(t.o?n=_8(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=dNe),g8.font=i+"px "+e;for(var o=0;oi*a){var f=(l-u)/i;r[s]=f*1e3}}return r}function _8(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";gNe.exports=cx;cx.canvas=document.createElement("canvas");cx.cache={};function cx(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,s=t.origin||"top";if(cx.cache[r]&&n<=cx.cache[r].em)return mNe(cx.cache[r],s);var u=t.canvas||cx.canvas,l=u.getContext("2d"),f={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},c=Math.ceil(n*1.5);u.height=c,u.width=c*.5,l.font=o;var h="H",d={top:0};l.clearRect(0,0,c,c),l.textBaseline="top",l.fillStyle="black",l.fillText(h,0,0);var p=Yy(l.getImageData(0,0,c,c));l.clearRect(0,0,c,c),l.textBaseline="bottom",l.fillText(h,0,c);var x=Yy(l.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-x+p,l.clearRect(0,0,c,c),l.textBaseline="alphabetic",l.fillText(h,0,c);var b=Yy(l.getImageData(0,0,c,c)),v=c-b-1+p;d.baseline=d.alphabetic=v,l.clearRect(0,0,c,c),l.textBaseline="middle",l.fillText(h,0,c*.5);var k=Yy(l.getImageData(0,0,c,c));d.median=d.middle=c-k-1+p-c*.5,l.clearRect(0,0,c,c),l.textBaseline="hanging",l.fillText(h,0,c*.5);var E=Yy(l.getImageData(0,0,c,c));d.hanging=c-E-1+p-c*.5,l.clearRect(0,0,c,c),l.textBaseline="ideographic",l.fillText(h,0,c);var T=Yy(l.getImageData(0,0,c,c));if(d.ideographic=c-T-1+p,f.upper&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.upper,0,0),d.upper=Yy(l.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),f.lower&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.lower,0,0),d.lower=Yy(l.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),f.tittle&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.tittle,0,0),d.tittle=Yy(l.getImageData(0,0,c,c))),f.ascent&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.ascent,0,0),d.ascent=Yy(l.getImageData(0,0,c,c))),f.descent&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.descent,0,0),d.descent=yNe(l.getImageData(0,0,c,c))),f.overshoot){l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.overshoot,0,0);var L=yNe(l.getImageData(0,0,c,c));d.overshoot=L-v}for(var _ in d)d[_]/=n;return d.em=n,cx.cache[r]=d,mNe(d,s)}function mNe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function Yy(e){for(var t=e.height,r=e.data,n=3;n0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}});var ANe=Te((q_r,wNe)=>{"use strict";var hS=Iqe(),MUt=Xy(),EUt=Rqe(),kUt=qqe(),CUt=XY(),vK=J_(),LUt=Uqe(),hx=oNe(),PUt=eS(),zUt=lNe(),IUt=dK(),RUt=hNe(),DUt=vNe(),FUt=Uh(),BUt=_Ne(),OUt=j2(),qUt=cK(),xNe=qUt.nextPow2,bNe=new CUt,w8=!1;document.body&&(b8=document.body.appendChild(document.createElement("div")),b8.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(b8).fontStretch&&(w8=!0),document.body.removeChild(b8));var b8,kc=function(t){NUt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=kUt(t),this.shader=bNe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||EUt({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),bNe.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(zUt(t)?t:{})};kc.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` +`),_i;if(qt&&(_i=Fs(Wr),qt[_i]))return qt[_i].apply(null,mi);var dn=Function.apply(null,Qr.concat(Wr));return qt&&(qt[_i]=dn),dn.apply(null,mi)}return{global:wn,link:pi,block:on,proc:ua,scope:Bn,cond:Ln,compile:Hn}}var ta="xyzw".split(""),ya=5121,ia=1,pa=2,va=0,zn=1,is=2,Cs=3,Ks=4,dl=5,xl=6,Bl="dither",bl="blend.enable",eu="blend.color",Zl="blend.equation",Ul="blend.func",ja="depth.enable",ns="depth.func",Js="depth.range",cs="depth.mask",sl="colorMask",ll="cull.enable",il="cull.face",zl="frontFace",Ml="lineWidth",Rl="polygonOffset.enable",Al="polygonOffset.offset",Ll="sample.alpha",ms="sample.enable",Os="sample.coverage",Xl="stencil.enable",Vl="stencil.mask",Nl="stencil.func",le="stencil.opFront",w="stencil.opBack",q="scissor.enable",Q="scissor.box",ee="viewport",ue="profile",Ge="framebuffer",et="vert",mt="frag",Ft="elements",ir="primitive",or="count",kr="offset",Vr="instances",he="vao",Se="Width",qe="Height",He=Ge+Se,lt=Ge+qe,tt=ee+Se,pt=ee+qe,Ht="drawingBuffer",nr=Ht+Se,fr=Ht+qe,Ar=[Ul,Zl,Nl,le,w,Os,ee,Q,Al],Rr=34962,ri=34963,si=2884,Mi=3042,hn=3024,Zn=2960,Yn=2929,Ua=3089,Fo=32823,vl=32926,Us=32928,ml=5126,au=35664,Sl=35665,Yl=35666,Ol=5124,ou=35667,Pu=35668,iu=35669,tu=35670,Wu=35671,Qu=35672,Ju=35673,ju=35674,Xu=35675,lf=35676,xf=35678,ef=35680,tf=4,Z=1028,se=1029,ze=2304,Xe=2305,Qe=32775,ot=32776,jt=519,_t=7680,cr=0,Cr=1,zr=32774,ui=513,$r=36160,Oi=36064,fn={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},vi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},zi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Xi={cw:ze,ccw:Xe};function pn(Be){return Array.isArray(Be)||br(Be)||Ut(Be)}function sn(Be){return Be.sort(function(qt,ar){return qt===ee?-1:ar===ee?1:qt=1,Qr>=2,qt)}else if(ar===Ks){var mi=Be.data;return new bi(mi.thisDep,mi.contextDep,mi.propDep,qt)}else{if(ar===dl)return new bi(!1,!1,!1,qt);if(ar===xl){for(var fi=!1,pi=!1,on=!1,Bn=0;Bn=1&&(pi=!0),wn>=2&&(on=!0)}else Ln.type===Ks&&(fi=fi||Ln.data.thisDep,pi=pi||Ln.data.contextDep,on=on||Ln.data.propDep)}return new bi(fi,pi,on,qt)}else return new bi(ar===Cs,ar===is,ar===zn,qt)}}var js=new bi(!1,!1,!1,function(){});function El(Be,qt,ar,Qr,mi,fi,pi,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Wr){var _i=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};ar.ext_blend_minmax&&(dn.min=Qe,dn.max=ot);var En=ar.angle_instanced_arrays,Yi=ar.webgl_draw_buffers,ga=ar.oes_vertex_array_object,Kn={dirty:!0,profile:Wr.profile},hs={},$i=[],Ui={},ro={};function na(Je){return Je.replace(".","_")}function On(Je,ht,bt){var Kt=na(Je);$i.push(Je),hs[Kt]=Kn[Kt]=!!bt,Ui[Kt]=ht}function In(Je,ht,bt){var Kt=na(Je);$i.push(Je),Array.isArray(bt)?(Kn[Kt]=bt.slice(),hs[Kt]=bt.slice()):Kn[Kt]=hs[Kt]=bt,ro[Kt]=ht}function Va(Je){return!!isNaN(Je)}On(Bl,hn),On(bl,Mi),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Ul,"blendFuncSeparate",[Cr,cr,Cr,cr]),On(ja,Yn,!0),In(ns,"depthFunc",ui),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),On(ll,si),In(il,"cullFace",se),In(zl,zl,Xe),In(Ml,Ml,1),On(Rl,Fo),In(Al,"polygonOffset",[0,0]),On(Ll,vl),On(ms,Us),In(Os,"sampleCoverage",[1,!1]),On(Xl,Zn),In(Vl,"stencilMask",-1),In(Nl,"stencilFunc",[jt,0,-1]),In(le,"stencilOpSeparate",[Z,_t,_t,_t]),In(w,"stencilOpSeparate",[se,_t,_t,_t]),On(q,Ua),In(Q,"scissor",[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]),In(ee,ee,[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]);var _s={gl:Be,context:ua,strings:qt,next:hs,current:Kn,draw:Ls,elements:fi,buffer:mi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:Bn,framebuffer:on,extensions:ar,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:vi,blendFuncs:fn,blendEquations:dn,stencilOps:zi,glTypes:di,orientationType:Xi};Yi&&(ul.backBuffer=[se],ul.drawBuffer=M(Qr.maxDrawbuffers,function(Je){return Je===0?[0]:M(Je,function(ht){return Oi+ht})}));var Qn=0;function Mo(){var Je=Gn({cache:Ni}),ht=Je.link,bt=Je.global;Je.id=Qn++,Je.batchId="0";var Kt=ht(_s),sr=Je.shared={props:"a0"};Object.keys(_s).forEach(function(Jt){sr[Jt]=bt.def(Kt,".",Jt)});var Qt=Je.next={},ur=Je.current={};Object.keys(ro).forEach(function(Jt){Array.isArray(Kn[Jt])&&(Qt[Jt]=bt.def(sr.next,".",Jt),ur[Jt]=bt.def(sr.current,".",Jt))});var er=Je.constants={};Object.keys(ul).forEach(function(Jt){er[Jt]=bt.def(JSON.stringify(ul[Jt]))}),Je.invoke=function(Jt,Lt){switch(Lt.type){case va:var Tr=["this",sr.context,sr.props,Je.batchId];return Jt.def(ht(Lt.data),".call(",Tr.slice(0,Math.max(Lt.data.length+1,4)),")");case zn:return Jt.def(sr.props,Lt.data);case is:return Jt.def(sr.context,Lt.data);case Cs:return Jt.def("this",Lt.data);case Ks:return Lt.data.append(Je,Jt),Lt.data.ref;case dl:return Lt.data.toString();case xl:return Lt.data.map(function(Nr){return Je.invoke(Jt,Nr)})}},Je.attribCache={};var Ot={};return Je.scopeAttrib=function(Jt){var Lt=qt.id(Jt);if(Lt in Ot)return Ot[Lt];var Tr=Ln.scope[Lt];Tr||(Tr=Ln.scope[Lt]=new _i);var Nr=Ot[Lt]=ht(Tr);return Nr},Je}function nl(Je){var ht=Je.static,bt=Je.dynamic,Kt;if(ue in ht){var sr=!!ht[ue];Kt=no(function(ur,er){return sr}),Kt.enable=sr}else if(ue in bt){var Qt=bt[ue];Kt=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}return Kt}function pl(Je,ht){var bt=Je.static,Kt=Je.dynamic;if(Ge in bt){var sr=bt[Ge];return sr?(sr=on.getFramebuffer(sr),no(function(ur,er){var Ot=ur.link(sr),Jt=ur.shared;er.set(Jt.framebuffer,".next",Ot);var Lt=Jt.context;return er.set(Lt,"."+He,Ot+".width"),er.set(Lt,"."+lt,Ot+".height"),Ot})):no(function(ur,er){var Ot=ur.shared;er.set(Ot.framebuffer,".next","null");var Jt=Ot.context;return er.set(Jt,"."+He,Jt+"."+nr),er.set(Jt,"."+lt,Jt+"."+fr),"null"})}else if(Ge in Kt){var Qt=Kt[Ge];return Xo(Qt,function(ur,er){var Ot=ur.invoke(er,Qt),Jt=ur.shared,Lt=Jt.framebuffer,Tr=er.def(Lt,".getFramebuffer(",Ot,")");er.set(Lt,".next",Tr);var Nr=Jt.context;return er.set(Nr,"."+He,Tr+"?"+Tr+".width:"+Nr+"."+nr),er.set(Nr,"."+lt,Tr+"?"+Tr+".height:"+Nr+"."+fr),Tr})}else return null}function Dl(Je,ht,bt){var Kt=Je.static,sr=Je.dynamic;function Qt(Ot){if(Ot in Kt){var Jt=Kt[Ot],Lt=!0,Tr=Jt.x|0,Nr=Jt.y|0,ci,Cn;return"width"in Jt?ci=Jt.width|0:Lt=!1,"height"in Jt?Cn=Jt.height|0:Lt=!1,new bi(!Lt&&ht&&ht.thisDep,!Lt&&ht&&ht.contextDep,!Lt&&ht&&ht.propDep,function(Xa,ca){var Tn=Xa.shared.context,Pn=ci;"width"in Jt||(Pn=ca.def(Tn,".",He,"-",Tr));var Nn=Cn;return"height"in Jt||(Nn=ca.def(Tn,".",lt,"-",Nr)),[Tr,Nr,Pn,Nn]})}else if(Ot in sr){var Ki=sr[Ot],yn=Xo(Ki,function(Xa,ca){var Tn=Xa.invoke(ca,Ki),Pn=Xa.shared.context,Nn=ca.def(Tn,".x|0"),xa=ca.def(Tn,".y|0"),Zo=ca.def('"width" in ',Tn,"?",Tn,".width|0:","(",Pn,".",He,"-",Nn,")"),ru=ca.def('"height" in ',Tn,"?",Tn,".height|0:","(",Pn,".",lt,"-",xa,")");return[Nn,xa,Zo,ru]});return ht&&(yn.thisDep=yn.thisDep||ht.thisDep,yn.contextDep=yn.contextDep||ht.contextDep,yn.propDep=yn.propDep||ht.propDep),yn}else return ht?new bi(ht.thisDep,ht.contextDep,ht.propDep,function(Xa,ca){var Tn=Xa.shared.context;return[0,0,ca.def(Tn,".",He),ca.def(Tn,".",lt)]}):null}var ur=Qt(ee);if(ur){var er=ur;ur=new bi(ur.thisDep,ur.contextDep,ur.propDep,function(Ot,Jt){var Lt=er.append(Ot,Jt),Tr=Ot.shared.context;return Jt.set(Tr,"."+tt,Lt[2]),Jt.set(Tr,"."+pt,Lt[3]),Lt})}return{viewport:ur,scissor_box:Qt(Q)}}function Fu(Je,ht){var bt=Je.static,Kt=typeof bt[mt]=="string"&&typeof bt[et]=="string";if(Kt){if(Object.keys(ht.dynamic).length>0)return null;var sr=ht.static,Qt=Object.keys(sr);if(Qt.length>0&&typeof sr[Qt[0]]=="number"){for(var ur=[],er=0;er"+Nn+"?"+Lt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",ci,"(",Lt,".buffer)){",Xa,"=",Cn,".createStream(",Rr,",",Lt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Lt,".buffer);","}",ca,'="type" in ',Lt,"?",Nr.glTypes,"[",Lt,".type]:",Xa,".dtype;",Ki.normalized,"=!!",Lt,".normalized;");function Tn(Pn){Jt(Ki[Pn],"=",Lt,".",Pn,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),Jt("}}"),Jt.exit("if(",Ki.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Ki}sr[Qt]=Xo(ur,er)}),sr}function bf(Je){var ht=Je.static,bt=Je.dynamic,Kt={};return Object.keys(ht).forEach(function(sr){var Qt=ht[sr];Kt[sr]=no(function(ur,er){return typeof Qt=="number"||typeof Qt=="boolean"?""+Qt:ur.link(Qt)})}),Object.keys(bt).forEach(function(sr){var Qt=bt[sr];Kt[sr]=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}),Kt}function Lf(Je,ht,bt,Kt,sr){var Qt=Je.static,ur=Je.dynamic,er=Fu(Je,ht),Ot=pl(Je,sr),Jt=Dl(Je,Ot,sr),Lt=Ql(Je,sr),Tr=kf(Je,sr),Nr=mf(Je,sr,er);function ci(Tn){var Pn=Jt[Tn];Pn&&(Tr[Tn]=Pn)}ci(ee),ci(na(Q));var Cn=Object.keys(Tr).length>0,Ki={framebuffer:Ot,draw:Lt,shader:Nr,state:Tr,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Ki.profile=nl(Je,sr),Ki.uniforms=Cu(bt,sr),Ki.drawVAO=Ki.scopeVAO=Lt.vao,!Ki.drawVAO&&Nr.program&&!er&&ar.angle_instanced_arrays&&Lt.static.elements){var yn=!0,Xa=Nr.program.attributes.map(function(Tn){var Pn=ht.static[Tn];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Lt.static.elements}));Ki.drawVAO=new bi(null,null,null,function(Tn,Pn){return Tn.link(ca)}),Ki.useVAO=!0}}return er?Ki.useVAO=!0:Ki.attributes=_f(ht,sr),Ki.context=bf(Kt,sr),Ki}function Hu(Je,ht,bt){var Kt=Je.shared,sr=Kt.context,Qt=Je.scope();Object.keys(bt).forEach(function(ur){ht.save(sr,"."+ur);var er=bt[ur],Ot=er.append(Je,ht);Array.isArray(Ot)?Qt(sr,".",ur,"=[",Ot.join(),"];"):Qt(sr,".",ur,"=",Ot,";")}),ht(Qt)}function hf(Je,ht,bt,Kt){var sr=Je.shared,Qt=sr.gl,ur=sr.framebuffer,er;Yi&&(er=ht.def(sr.extensions,".webgl_draw_buffers"));var Ot=Je.constants,Jt=Ot.drawBuffer,Lt=Ot.backBuffer,Tr;bt?Tr=bt.append(Je,ht):Tr=ht.def(ur,".next"),Kt||ht("if(",Tr,"!==",ur,".cur){"),ht("if(",Tr,"){",Qt,".bindFramebuffer(",$r,",",Tr,".framebuffer);"),Yi&&ht(er,".drawBuffersWEBGL(",Jt,"[",Tr,".colorAttachments.length]);"),ht("}else{",Qt,".bindFramebuffer(",$r,",null);"),Yi&&ht(er,".drawBuffersWEBGL(",Lt,");"),ht("}",ur,".cur=",Tr,";"),Kt||ht("}")}function yf(Je,ht,bt){var Kt=Je.shared,sr=Kt.gl,Qt=Je.current,ur=Je.next,er=Kt.current,Ot=Kt.next,Jt=Je.cond(er,".dirty");$i.forEach(function(Lt){var Tr=na(Lt);if(!(Tr in bt.state)){var Nr,ci;if(Tr in ur){Nr=ur[Tr],ci=Qt[Tr];var Cn=M(Kn[Tr].length,function(yn){return Jt.def(Nr,"[",yn,"]")});Jt(Je.cond(Cn.map(function(yn,Xa){return yn+"!=="+ci+"["+Xa+"]"}).join("||")).then(sr,".",ro[Tr],"(",Cn,");",Cn.map(function(yn,Xa){return ci+"["+Xa+"]="+yn}).join(";"),";"))}else{Nr=Jt.def(Ot,".",Tr);var Ki=Je.cond(Nr,"!==",er,".",Tr);Jt(Ki),Tr in Ui?Ki(Je.cond(Nr).then(sr,".enable(",Ui[Tr],");").else(sr,".disable(",Ui[Tr],");"),er,".",Tr,"=",Nr,";"):Ki(sr,".",ro[Tr],"(",Nr,");",er,".",Tr,"=",Nr,";")}}}),Object.keys(bt.state).length===0&&Jt(er,".dirty=false;"),ht(Jt)}function Fl(Je,ht,bt,Kt){var sr=Je.shared,Qt=Je.current,ur=sr.current,er=sr.gl,Ot;sn(Object.keys(bt)).forEach(function(Jt){var Lt=bt[Jt];if(!(Kt&&!Kt(Lt))){var Tr=Lt.append(Je,ht);if(Ui[Jt]){var Nr=Ui[Jt];xo(Lt)?(Ot=Je.link(Tr,{stable:!0}),ht(Je.cond(Ot).then(er,".enable(",Nr,");").else(er,".disable(",Nr,");")),ht(ur,".",Jt,"=",Ot,";")):(ht(Je.cond(Tr).then(er,".enable(",Nr,");").else(er,".disable(",Nr,");")),ht(ur,".",Jt,"=",Tr,";"))}else if(Qi(Tr)){var ci=Qt[Jt];ht(er,".",ro[Jt],"(",Tr,");",Tr.map(function(Cn,Ki){return ci+"["+Ki+"]="+Cn}).join(";"),";")}else xo(Lt)?(Ot=Je.link(Tr,{stable:!0}),ht(er,".",ro[Jt],"(",Ot,");",ur,".",Jt,"=",Ot,";")):ht(er,".",ro[Jt],"(",Tr,");",ur,".",Jt,"=",Tr,";")}})}function wf(Je,ht){En&&(Je.instancing=ht.def(Je.shared.extensions,".angle_instanced_arrays"))}function cu(Je,ht,bt,Kt,sr){var Qt=Je.shared,ur=Je.stats,er=Qt.current,Ot=Qt.timer,Jt=bt.profile;function Lt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Tr,Nr;function ci(Tn){Tr=ht.def(),Tn(Tr,"=",Lt(),";"),typeof sr=="string"?Tn(ur,".count+=",sr,";"):Tn(ur,".count++;"),Hn&&(Kt?(Nr=ht.def(),Tn(Nr,"=",Ot,".getNumPendingQueries();")):Tn(Ot,".beginQuery(",ur,");"))}function Cn(Tn){Tn(ur,".cpuTime+=",Lt(),"-",Tr,";"),Hn&&(Kt?Tn(Ot,".pushScopeStats(",Nr,",",Ot,".getNumPendingQueries(),",ur,");"):Tn(Ot,".endQuery();"))}function Ki(Tn){var Pn=ht.def(er,".profile");ht(er,".profile=",Tn,";"),ht.exit(er,".profile=",Pn,";")}var yn;if(Jt){if(xo(Jt)){Jt.enable?(ci(ht),Cn(ht.exit),Ki("true")):Ki("false");return}yn=Jt.append(Je,ht),Ki(yn)}else yn=ht.def(er,".profile");var Xa=Je.block();ci(Xa),ht("if(",yn,"){",Xa,"}");var ca=Je.block();Cn(ca),ht.exit("if(",yn,"){",ca,"}")}function Y(Je,ht,bt,Kt,sr){var Qt=Je.shared;function ur(Ot){switch(Ot){case au:case ou:case Wu:return 2;case Sl:case Pu:case Qu:return 3;case Yl:case iu:case Ju:return 4;default:return 1}}function er(Ot,Jt,Lt){var Tr=Qt.gl,Nr=ht.def(Ot,".location"),ci=ht.def(Qt.attributes,"[",Nr,"]"),Cn=Lt.state,Ki=Lt.buffer,yn=[Lt.x,Lt.y,Lt.z,Lt.w],Xa=["buffer","normalized","offset","stride"];function ca(){ht("if(!",ci,".buffer){",Tr,".enableVertexAttribArray(",Nr,");}");var Pn=Lt.type,Nn;if(Lt.size?Nn=ht.def(Lt.size,"||",Jt):Nn=Jt,ht("if(",ci,".type!==",Pn,"||",ci,".size!==",Nn,"||",Xa.map(function(Zo){return ci+"."+Zo+"!=="+Lt[Zo]}).join("||"),"){",Tr,".bindBuffer(",Rr,",",Ki,".buffer);",Tr,".vertexAttribPointer(",[Nr,Nn,Pn,Lt.normalized,Lt.stride,Lt.offset],");",ci,".type=",Pn,";",ci,".size=",Nn,";",Xa.map(function(Zo){return ci+"."+Zo+"="+Lt[Zo]+";"}).join(""),"}"),En){var xa=Lt.divisor;ht("if(",ci,".divisor!==",xa,"){",Je.instancing,".vertexAttribDivisorANGLE(",[Nr,xa],");",ci,".divisor=",xa,";}")}}function Tn(){ht("if(",ci,".buffer){",Tr,".disableVertexAttribArray(",Nr,");",ci,".buffer=null;","}if(",ta.map(function(Pn,Nn){return ci+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Tr,".vertexAttrib4f(",Nr,",",yn,");",ta.map(function(Pn,Nn){return ci+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?Tn():(ht("if(",Cn,"===",ia,"){"),ca(),ht("}else{"),Tn(),ht("}"))}Kt.forEach(function(Ot){var Jt=Ot.name,Lt=bt.attributes[Jt],Tr;if(Lt){if(!sr(Lt))return;Tr=Lt.append(Je,ht)}else{if(!sr(js))return;var Nr=Je.scopeAttrib(Jt);Tr={},Object.keys(new _i).forEach(function(ci){Tr[ci]=ht.def(Nr,".",ci)})}er(Je.link(Ot),ur(Ot.info.type),Tr)})}function R(Je,ht,bt,Kt,sr,Qt){for(var ur=Je.shared,er=ur.gl,Ot,Jt=0;Jt1){for(var yu=[],Du=[],vu=0;vu>1)",Ki],");")}function xa(){bt(yn,".drawArraysInstancedANGLE(",[Nr,ci,Cn,Ki],");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}function Pn(){function Nn(){bt(Qt+".drawElements("+[Nr,Cn,Xa,ci+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){bt(Qt+".drawArrays("+[Nr,ci,Cn]+");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}En&&(typeof Ki!="number"||Ki>=0)?typeof Ki=="string"?(bt("if(",Ki,">0){"),Tn(),bt("}else if(",Ki,"<0){"),Pn(),bt("}")):Tn():Pn()}function O(Je,ht,bt,Kt,sr){var Qt=Mo(),ur=Qt.proc("body",sr);return En&&(Qt.instancing=ur.def(Qt.shared.extensions,".angle_instanced_arrays")),Je(Qt,ur,bt,Kt),Qt.compile().body}function K(Je,ht,bt,Kt){wf(Je,ht),bt.useVAO?bt.drawVAO?ht(Je.shared.vao,".setVAO(",bt.drawVAO.append(Je,ht),");"):ht(Je.shared.vao,".setVAO(",Je.shared.vao,".targetVAO);"):(ht(Je.shared.vao,".setVAO(null);"),Y(Je,ht,bt,Kt.attributes,function(){return!0})),R(Je,ht,bt,Kt.uniforms,function(){return!0},!1),J(Je,ht,ht,bt)}function _e(Je,ht){var bt=Je.proc("draw",1);wf(Je,bt),Hu(Je,bt,ht.context),hf(Je,bt,ht.framebuffer),yf(Je,bt,ht),Fl(Je,bt,ht.state),cu(Je,bt,ht,!1,!0);var Kt=ht.shader.progVar.append(Je,bt);if(bt(Je.shared.gl,".useProgram(",Kt,".program);"),ht.shader.program)K(Je,bt,ht,ht.shader.program);else{bt(Je.shared.vao,".setVAO(null);");var sr=Je.global.def("{}"),Qt=bt.def(Kt,".id"),ur=bt.def(sr,"[",Qt,"]");bt(Je.cond(ur).then(ur,".call(this,a0);").else(ur,"=",sr,"[",Qt,"]=",Je.link(function(er){return O(K,Je,ht,er,1)}),"(",Kt,");",ur,".call(this,a0);"))}Object.keys(ht.state).length>0&&bt(Je.shared.current,".dirty=true;"),Je.shared.vao&&bt(Je.shared.vao,".setVAO(null);")}function ne(Je,ht,bt,Kt){Je.batchId="a1",wf(Je,ht);function sr(){return!0}Y(Je,ht,bt,Kt.attributes,sr),R(Je,ht,bt,Kt.uniforms,sr,!1),J(Je,ht,ht,bt)}function Le(Je,ht,bt,Kt){wf(Je,ht);var sr=bt.contextDep,Qt=ht.def(),ur="a0",er="a1",Ot=ht.def();Je.shared.props=Ot,Je.batchId=Qt;var Jt=Je.scope(),Lt=Je.scope();ht(Jt.entry,"for(",Qt,"=0;",Qt,"<",er,";++",Qt,"){",Ot,"=",ur,"[",Qt,"];",Lt,"}",Jt.exit);function Tr(Xa){return Xa.contextDep&&sr||Xa.propDep}function Nr(Xa){return!Tr(Xa)}if(bt.needsContext&&Hu(Je,Lt,bt.context),bt.needsFramebuffer&&hf(Je,Lt,bt.framebuffer),Fl(Je,Lt,bt.state,Tr),bt.profile&&Tr(bt.profile)&&cu(Je,Lt,bt,!1,!0),Kt)bt.useVAO?bt.drawVAO?Tr(bt.drawVAO)?Lt(Je.shared.vao,".setVAO(",bt.drawVAO.append(Je,Lt),");"):Jt(Je.shared.vao,".setVAO(",bt.drawVAO.append(Je,Jt),");"):Jt(Je.shared.vao,".setVAO(",Je.shared.vao,".targetVAO);"):(Jt(Je.shared.vao,".setVAO(null);"),Y(Je,Jt,bt,Kt.attributes,Nr),Y(Je,Lt,bt,Kt.attributes,Tr)),R(Je,Jt,bt,Kt.uniforms,Nr,!1),R(Je,Lt,bt,Kt.uniforms,Tr,!0),J(Je,Jt,Lt,bt);else{var ci=Je.global.def("{}"),Cn=bt.shader.progVar.append(Je,Lt),Ki=Lt.def(Cn,".id"),yn=Lt.def(ci,"[",Ki,"]");Lt(Je.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",ci,"[",Ki,"]=",Je.link(function(Xa){return O(ne,Je,bt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Qt,"],",Qt,");")}}function Ze(Je,ht){var bt=Je.proc("batch",2);Je.batchId="0",wf(Je,bt);var Kt=!1,sr=!0;Object.keys(ht.context).forEach(function(ci){Kt=Kt||ht.context[ci].propDep}),Kt||(Hu(Je,bt,ht.context),sr=!1);var Qt=ht.framebuffer,ur=!1;Qt?(Qt.propDep?Kt=ur=!0:Qt.contextDep&&Kt&&(ur=!0),ur||hf(Je,bt,Qt)):hf(Je,bt,null),ht.state.viewport&&ht.state.viewport.propDep&&(Kt=!0);function er(ci){return ci.contextDep&&Kt||ci.propDep}yf(Je,bt,ht),Fl(Je,bt,ht.state,function(ci){return!er(ci)}),(!ht.profile||!er(ht.profile))&&cu(Je,bt,ht,!1,"a1"),ht.contextDep=Kt,ht.needsContext=sr,ht.needsFramebuffer=ur;var Ot=ht.shader.progVar;if(Ot.contextDep&&Kt||Ot.propDep)Le(Je,bt,ht,null);else{var Jt=Ot.append(Je,bt);if(bt(Je.shared.gl,".useProgram(",Jt,".program);"),ht.shader.program)Le(Je,bt,ht,ht.shader.program);else{bt(Je.shared.vao,".setVAO(null);");var Lt=Je.global.def("{}"),Tr=bt.def(Jt,".id"),Nr=bt.def(Lt,"[",Tr,"]");bt(Je.cond(Nr).then(Nr,".call(this,a0,a1);").else(Nr,"=",Lt,"[",Tr,"]=",Je.link(function(ci){return O(Le,Je,ht,ci,2)}),"(",Jt,");",Nr,".call(this,a0,a1);"))}}Object.keys(ht.state).length>0&&bt(Je.shared.current,".dirty=true;"),Je.shared.vao&&bt(Je.shared.vao,".setVAO(null);")}function Ct(Je,ht){var bt=Je.proc("scope",3);Je.batchId="a2";var Kt=Je.shared,sr=Kt.current;if(Hu(Je,bt,ht.context),ht.framebuffer&&ht.framebuffer.append(Je,bt),sn(Object.keys(ht.state)).forEach(function(er){var Ot=ht.state[er],Jt=Ot.append(Je,bt);Qi(Jt)?Jt.forEach(function(Lt,Tr){Va(Lt)?bt.set(Je.next[er],"["+Tr+"]",Lt):bt.set(Je.next[er],"["+Tr+"]",Je.link(Lt,{stable:!0}))}):xo(Ot)?bt.set(Kt.next,"."+er,Je.link(Jt,{stable:!0})):bt.set(Kt.next,"."+er,Jt)}),cu(Je,bt,ht,!0,!0),[Ft,kr,or,Vr,ir].forEach(function(er){var Ot=ht.draw[er];if(Ot){var Jt=Ot.append(Je,bt);Va(Jt)?bt.set(Kt.draw,"."+er,Jt):bt.set(Kt.draw,"."+er,Je.link(Jt),{stable:!0})}}),Object.keys(ht.uniforms).forEach(function(er){var Ot=ht.uniforms[er].append(Je,bt);Array.isArray(Ot)&&(Ot="["+Ot.map(function(Jt){return Va(Jt)?Jt:Je.link(Jt,{stable:!0})})+"]"),bt.set(Kt.uniforms,"["+Je.link(qt.id(er),{stable:!0})+"]",Ot)}),Object.keys(ht.attributes).forEach(function(er){var Ot=ht.attributes[er].append(Je,bt),Jt=Je.scopeAttrib(er);Object.keys(new _i).forEach(function(Lt){bt.set(Jt,"."+Lt,Ot[Lt])})}),ht.scopeVAO){var Qt=ht.scopeVAO.append(Je,bt);Va(Qt)?bt.set(Kt.vao,".targetVAO",Qt):bt.set(Kt.vao,".targetVAO",Je.link(Qt,{stable:!0}))}function ur(er){var Ot=ht.shader[er];if(Ot){var Jt=Ot.append(Je,bt);Va(Jt)?bt.set(Kt.shader,"."+er,Jt):bt.set(Kt.shader,"."+er,Je.link(Jt,{stable:!0}))}}ur(et),ur(mt),Object.keys(ht.state).length>0&&(bt(sr,".dirty=true;"),bt.exit(sr,".dirty=true;")),bt("a1(",Je.shared.context,",a0,",Je.batchId,");")}function dr(Je){if(!(typeof Je!="object"||Qi(Je))){for(var ht=Object.keys(Je),bt=0;bt=0;--O){var K=_s[O];K&&K(Ni,null,0)}ar.flush(),wn&&wn.update()}function Dl(){!nl&&_s.length>0&&(nl=d.next(pl))}function Fu(){nl&&(d.cancel(pl),nl=null)}function mf(O){O.preventDefault(),mi=!0,Fu(),ul.forEach(function(K){K()})}function Ql(O){ar.getError(),mi=!1,fi.restore(),hs.restore(),En.restore(),$i.restore(),Ui.restore(),ro.restore(),ga.restore(),wn&&wn.restore(),na.procs.refresh(),Dl(),Qn.forEach(function(K){K()})}Va&&(Va.addEventListener(Au,mf,!1),Va.addEventListener(Tu,Ql,!1));function kf(){_s.length=0,Fu(),Va&&(Va.removeEventListener(Au,mf),Va.removeEventListener(Tu,Ql)),hs.clear(),ro.clear(),Ui.clear(),ga.clear(),$i.clear(),Yi.clear(),En.clear(),wn&&wn.clear(),Mo.forEach(function(O){O()})}function Cu(O){function K(Qt){var ur=e({},Qt);delete ur.uniforms,delete ur.attributes,delete ur.context,delete ur.vao,"stencil"in ur&&ur.stencil.op&&(ur.stencil.opBack=ur.stencil.opFront=ur.stencil.op,delete ur.stencil.op);function er(Ot){if(Ot in ur){var Jt=ur[Ot];delete ur[Ot],Object.keys(Jt).forEach(function(Lt){ur[Ot+"."+Lt]=Jt[Lt]})}}return er("blend"),er("depth"),er("cull"),er("stencil"),er("polygonOffset"),er("scissor"),er("sample"),"vao"in Qt&&(ur.vao=Qt.vao),ur}function _e(Qt,ur){var er={},Ot={};return Object.keys(Qt).forEach(function(Jt){var Lt=Qt[Jt];if(h.isDynamic(Lt)){Ot[Jt]=h.unbox(Lt,Jt);return}else if(ur&&Array.isArray(Lt)){for(var Tr=0;Tr0)return Je.call(this,Kt(Qt|0),Qt|0)}else if(Array.isArray(Qt)){if(Qt.length)return Je.call(this,Qt,Qt.length)}else return lr.call(this,Qt)}return e(sr,{stats:dr,destroy:function(){Er.destroy()}})}var _f=ro.setFBO=Cu({framebuffer:h.define.call(null,uf,"framebuffer")});function bf(O,K){var _e=0;na.procs.poll();var ne=K.color;ne&&(ar.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),_e|=Gu),"depth"in K&&(ar.clearDepth(+K.depth),_e|=rf),"stencil"in K&&(ar.clearStencil(K.stencil|0),_e|=ds),ar.clear(_e)}function Lf(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)_f(e({framebuffer:O.framebuffer.faces[K]},O),bf);else _f(O,bf);else bf(null,O)}function Hu(O){_s.push(O);function K(){var _e=vf(_s,O);function ne(){var Le=vf(_s,ne);_s[Le]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Fu()}_s[_e]=ne}return Dl(),{cancel:K}}function hf(){var O=In.viewport,K=In.scissor_box;O[0]=O[1]=K[0]=K[1]=0,Ni.viewportWidth=Ni.framebufferWidth=Ni.drawingBufferWidth=O[2]=K[2]=ar.drawingBufferWidth,Ni.viewportHeight=Ni.framebufferHeight=Ni.drawingBufferHeight=O[3]=K[3]=ar.drawingBufferHeight}function yf(){Ni.tick+=1,Ni.time=wf(),hf(),na.procs.poll()}function Fl(){$i.refresh(),hf(),na.procs.refresh(),wn&&wn.update()}function wf(){return(p()-Ls)/1e3}Fl();function cu(O,K){var _e;switch(O){case"frame":return Hu(K);case"lost":_e=ul;break;case"restore":_e=Qn;break;case"destroy":_e=Mo;break;default:}return _e.push(K),{cancel:function(){for(var ne=0;ne<_e.length;++ne)if(_e[ne]===K){_e[ne]=_e[_e.length-1],_e.pop();return}}}}function Y(){return Bn}function R(O){Object.entries(O).forEach(function(K){Bn[K[0]]=K[1]})}var J=e(Cu,{clear:Lf,prop:h.define.bind(null,uf),context:h.define.bind(null,df),this:h.define.bind(null,Ef),draw:Cu({}),buffer:function(O){return En.create(O,Wl,!1,!1)},elements:function(O){return Yi.create(O,!1)},texture:$i.create2D,cube:$i.createCube,renderbuffer:Ui.create,framebuffer:ro.create,framebufferCube:ro.createCube,vao:ga.createVAO,attributes:Qr,frame:Hu,on:cu,limits:dn,hasExtension:function(O){return dn.extensions.indexOf(O.toLowerCase())>=0},read:On,destroy:kf,_gl:ar,_refresh:Fl,poll:function(){yf(),wn&&wn.update()},now:wf,stats:on,getCachedCode:Y,preloadCachedCode:R});return qt.onDone(null,J),J}return fc})});var Uqe=Te((P_r,Nqe)=>{"use strict";var dUt=Xy();Nqe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},Oqe(t)?t={container:t}:pUt(t)?t={container:t}:vUt(t)?t={gl:t}:t=dUt(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}Oqe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=qqe(),t.container.appendChild(t.canvas),Bqe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=qqe(),t.container.appendChild(t.canvas),Bqe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch(i){}return t.gl}),t.gl};function Bqe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function Oqe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function pUt(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function vUt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function qqe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var Gqe=Te((z_r,Vqe)=>{"use strict";var mUt=sK(),yUt=[32,126];Vqe.exports=gUt;function gUt(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||yUt;if(n&&typeof n!="string"&&(n=mUt(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],u=0;s<=a[1];s++)o[u++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var l=r.getContext("2d");l.fillStyle="#000",l.fillRect(0,0,r.width,r.height),l.font=n,l.textAlign="center",l.textBaseline="middle",l.fillStyle="#fff";for(var f=i[0]/2,c=i[1]/2,s=0;st[0]-i[0]/2&&(f=i[0]/2,c+=i[1]);return r}});var cK=Te(Gh=>{"use strict";"use restrict";var fK=32;Gh.INT_BITS=fK;Gh.INT_MAX=2147483647;Gh.INT_MIN=-1<0)-(e<0)};Gh.abs=function(e){var t=e>>fK-1;return(e^t)-t};Gh.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Gh.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Gh.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function Hqe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Gh.countTrailingZeros=Hqe;Gh.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Gh.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Gh.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Mk=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<>>8&255]<<16|Mk[e>>>16&255]<<8|Mk[e>>>24&255]};Gh.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Gh.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Gh.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Gh.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Gh.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>Hqe(e)+1}});var Xqe=Te((R_r,jqe)=>{"use strict";function Wqe(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a0)return _Ut(e|0,t);break;case"object":if(typeof e.length=="number")return Wqe(e,t,0);break}return[]}jqe.exports=xUt});var lNe=Te(rc=>{"use strict";var fx=cK(),kp=Xqe(),Zqe=u2().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:kp([32,0]),UINT16:kp([32,0]),UINT32:kp([32,0]),BIGUINT64:kp([32,0]),INT8:kp([32,0]),INT16:kp([32,0]),INT32:kp([32,0]),BIGINT64:kp([32,0]),FLOAT:kp([32,0]),DOUBLE:kp([32,0]),DATA:kp([32,0]),UINT8C:kp([32,0]),BUFFER:kp([32,0])});var bUt=typeof Uint8ClampedArray!="undefined",wUt=typeof BigUint64Array!="undefined",AUt=typeof BigInt64Array!="undefined",sd=window.__TYPEDARRAY_POOL;sd.UINT8C||(sd.UINT8C=kp([32,0]));sd.BIGUINT64||(sd.BIGUINT64=kp([32,0]));sd.BIGINT64||(sd.BIGINT64=kp([32,0]));sd.BUFFER||(sd.BUFFER=kp([32,0]));var m8=sd.DATA,y8=sd.BUFFER;rc.free=function(t){if(Zqe.isBuffer(t))y8[fx.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=fx.log2(r)|0;m8[n].push(t)}};function Yqe(e){if(e){var t=e.length||e.byteLength,r=fx.log2(t);m8[r].push(e)}}function TUt(e){Yqe(e.buffer)}rc.freeUint8=rc.freeUint16=rc.freeUint32=rc.freeBigUint64=rc.freeInt8=rc.freeInt16=rc.freeInt32=rc.freeBigInt64=rc.freeFloat32=rc.freeFloat=rc.freeFloat64=rc.freeDouble=rc.freeUint8Clamped=rc.freeDataView=TUt;rc.freeArrayBuffer=Yqe;rc.freeBuffer=function(t){y8[fx.log2(t.length)].push(t)};rc.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Ov(t);switch(r){case"uint8":return hK(t);case"uint16":return Kqe(t);case"uint32":return Jqe(t);case"int8":return $qe(t);case"int16":return Qqe(t);case"int32":return eNe(t);case"float":case"float32":return tNe(t);case"double":case"float64":return rNe(t);case"uint8_clamped":return iNe(t);case"bigint64":return aNe(t);case"biguint64":return nNe(t);case"buffer":return sNe(t);case"data":case"dataview":return oNe(t);default:return null}return null};function Ov(t){var t=fx.nextPow2(t),r=fx.log2(t),n=m8[r];return n.length>0?n.pop():new ArrayBuffer(t)}rc.mallocArrayBuffer=Ov;function hK(e){return new Uint8Array(Ov(e),0,e)}rc.mallocUint8=hK;function Kqe(e){return new Uint16Array(Ov(2*e),0,e)}rc.mallocUint16=Kqe;function Jqe(e){return new Uint32Array(Ov(4*e),0,e)}rc.mallocUint32=Jqe;function $qe(e){return new Int8Array(Ov(e),0,e)}rc.mallocInt8=$qe;function Qqe(e){return new Int16Array(Ov(2*e),0,e)}rc.mallocInt16=Qqe;function eNe(e){return new Int32Array(Ov(4*e),0,e)}rc.mallocInt32=eNe;function tNe(e){return new Float32Array(Ov(4*e),0,e)}rc.mallocFloat32=rc.mallocFloat=tNe;function rNe(e){return new Float64Array(Ov(8*e),0,e)}rc.mallocFloat64=rc.mallocDouble=rNe;function iNe(e){return bUt?new Uint8ClampedArray(Ov(e),0,e):hK(e)}rc.mallocUint8Clamped=iNe;function nNe(e){return wUt?new BigUint64Array(Ov(8*e),0,e):null}rc.mallocBigUint64=nNe;function aNe(e){return AUt?new BigInt64Array(Ov(8*e),0,e):null}rc.mallocBigInt64=aNe;function oNe(e){return new DataView(Ov(e),0,e)}rc.mallocDataView=oNe;function sNe(e){e=fx.nextPow2(e);var t=fx.log2(e),r=y8[t];return r.length>0?r.pop():new Zqe(e)}rc.mallocBuffer=sNe;rc.clearCache=function(){for(var t=0;t<32;++t)sd.UINT8[t].length=0,sd.UINT16[t].length=0,sd.UINT32[t].length=0,sd.INT8[t].length=0,sd.INT16[t].length=0,sd.INT32[t].length=0,sd.FLOAT[t].length=0,sd.DOUBLE[t].length=0,sd.BIGUINT64[t].length=0,sd.BIGINT64[t].length=0,sd.UINT8C[t].length=0,m8[t].length=0,y8[t].length=0}});var fNe=Te((F_r,uNe)=>{"use strict";var SUt=Object.prototype.toString;uNe.exports=function(e){var t;return SUt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var dK=Te((B_r,cNe)=>{cNe.exports=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var pNe=Te((O_r,dNe)=>{"use strict";var MUt=dK();dNe.exports=hNe;var Ek=96;function pK(e,t){var r=MUt(getComputedStyle(e).getPropertyValue(t));return r[0]*hNe(r[1],e)}function EUt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=pK(r,"font-size")/128;return t.removeChild(r),n}function hNe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return EUt(e,t);case"em":return pK(t,"font-size");case"rem":return pK(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return Ek;case"cm":return Ek/2.54;case"mm":return Ek/25.4;case"pt":return Ek/72;case"pc":return Ek/6}return 1}});var yNe=Te((q_r,mNe)=>{"use strict";mNe.exports=x8;var kUt=x8.canvas=document.createElement("canvas"),g8=kUt.getContext("2d"),vNe=_8([32,126]);x8.createPairs=_8;x8.ascii=vNe;function x8(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=_8(t):Array.isArray(t)?n=t:(t.o?n=_8(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=vNe),g8.font=i+"px "+e;for(var o=0;oi*a){var f=(l-u)/i;r[s]=f*1e3}}return r}function _8(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";xNe.exports=cx;cx.canvas=document.createElement("canvas");cx.cache={};function cx(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,s=t.origin||"top";if(cx.cache[r]&&n<=cx.cache[r].em)return gNe(cx.cache[r],s);var u=t.canvas||cx.canvas,l=u.getContext("2d"),f={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},c=Math.ceil(n*1.5);u.height=c,u.width=c*.5,l.font=o;var h="H",d={top:0};l.clearRect(0,0,c,c),l.textBaseline="top",l.fillStyle="black",l.fillText(h,0,0);var p=Yy(l.getImageData(0,0,c,c));l.clearRect(0,0,c,c),l.textBaseline="bottom",l.fillText(h,0,c);var _=Yy(l.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-_+p,l.clearRect(0,0,c,c),l.textBaseline="alphabetic",l.fillText(h,0,c);var b=Yy(l.getImageData(0,0,c,c)),v=c-b-1+p;d.baseline=d.alphabetic=v,l.clearRect(0,0,c,c),l.textBaseline="middle",l.fillText(h,0,c*.5);var k=Yy(l.getImageData(0,0,c,c));d.median=d.middle=c-k-1+p-c*.5,l.clearRect(0,0,c,c),l.textBaseline="hanging",l.fillText(h,0,c*.5);var E=Yy(l.getImageData(0,0,c,c));d.hanging=c-E-1+p-c*.5,l.clearRect(0,0,c,c),l.textBaseline="ideographic",l.fillText(h,0,c);var T=Yy(l.getImageData(0,0,c,c));if(d.ideographic=c-T-1+p,f.upper&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.upper,0,0),d.upper=Yy(l.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),f.lower&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.lower,0,0),d.lower=Yy(l.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),f.tittle&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.tittle,0,0),d.tittle=Yy(l.getImageData(0,0,c,c))),f.ascent&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.ascent,0,0),d.ascent=Yy(l.getImageData(0,0,c,c))),f.descent&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.descent,0,0),d.descent=_Ne(l.getImageData(0,0,c,c))),f.overshoot){l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.overshoot,0,0);var L=_Ne(l.getImageData(0,0,c,c));d.overshoot=L-v}for(var x in d)d[x]/=n;return d.em=n,cx.cache[r]=d,gNe(d,s)}function gNe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function Yy(e){for(var t=e.height,r=e.data,n=3;n0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}});var SNe=Te((U_r,TNe)=>{"use strict";var dS=Dqe(),CUt=Xy(),LUt=Fqe(),PUt=Uqe(),zUt=XY(),vK=J_(),IUt=Gqe(),hx=lNe(),RUt=tS(),DUt=fNe(),FUt=dK(),BUt=pNe(),OUt=yNe(),qUt=Uh(),NUt=bNe(),UUt=j2(),VUt=cK(),wNe=VUt.nextPow2,ANe=new zUt,w8=!1;document.body&&(b8=document.body.appendChild(document.createElement("div")),b8.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(b8).fontStretch&&(w8=!0),document.body.removeChild(b8));var b8,kc=function(t){GUt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=PUt(t),this.shader=ANe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||LUt({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),ANe.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(DUt(t)?t:{})};kc.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -2705,17 +2705,17 @@ void main() { // color.rgb += (1. - color.rgb) * (1. - mask.rgb); gl_FragColor = color; - }`}),n={};return{regl:t,draw:r,atlas:n}};kc.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=MUt(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(Ce){return parseFloat(Ce)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=PUt(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=OUt(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=kc.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(Ce,de){if(typeof Ce=="string")try{Ce=hS.parse(Ce)}catch(Ye){Ce=hS.parse(kc.baseFontSize+"px "+Ce)}else{var te=Ce.style,ke=Ce.weight,Ee=Ce.stretch,Me=Ce.variant;Ce=hS.parse(hS.stringify(Ce)),te&&(Ce.style=te),ke&&(Ce.weight=ke),Ee&&(Ce.stretch=Ee),Me&&(Ce.variant=Me)}var Ne=hS.stringify({size:kc.baseFontSize,family:Ce.family,stretch:w8?Ce.stretch:void 0,variant:Ce.variant,weight:Ce.weight,style:Ce.style}),Fe=IUt(Ce.size),ye=Math.round(Fe[0]*RUt(Fe[1]));if(ye!==r.fontSize[de]&&(i=!0,r.fontSize[de]=ye),(!r.font[de]||Ne!=r.font[de].baseString)&&(n=!0,r.font[de]=kc.fonts[Ne],!r.font[de])){var Ve=Ce.family.join(", "),ce=[Ce.style];Ce.style!=Ce.variant&&ce.push(Ce.variant),Ce.variant!=Ce.weight&&ce.push(Ce.weight),w8&&Ce.weight!=Ce.stretch&&ce.push(Ce.stretch),r.font[de]={baseString:Ne,family:Ve,weight:Ce.weight,stretch:Ce.stretch,style:Ce.style,variant:Ce.variant,width:{},kerning:{},metrics:BUt(Ve,{origin:"top",fontSize:kc.baseFontSize,fontStyle:ce.join(" ")})},kc.fonts[Ne]=r.font[de]}}),(n||i)&&this.font.forEach(function(Ce,de){var te=hS.stringify({size:r.fontSize[de],family:Ce.family,stretch:w8?Ce.stretch:void 0,variant:Ce.variant,weight:Ce.weight,style:Ce.style});if(r.fontAtlas[de]=r.shader.atlas[te],!r.fontAtlas[de]){var ke=Ce.metrics;r.shader.atlas[te]=r.fontAtlas[de]={fontString:te,step:Math.ceil(r.fontSize[de]*ke.bottom*.5)*2,em:r.fontSize[de],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o2){for(var l=!t.position[0].length,f=hx.mallocFloat(this.count*2),c=0,h=0;c1?r.align[de]:r.align[0]:r.align;if(typeof te=="number")return te;switch(te){case"right":case"end":return-Ce;case"center":case"centre":case"middle":return-Ce*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ce,de){var te=(r.font[de]||r.font[0]).metrics,ke=0;return ke+=te.bottom*.5,typeof Ce=="number"?ke+=Ce-te.baseline:ke+=-te[Ce],ke*=-1,ke})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=vK(t.color,"uint8");else{var G;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var j=t.color.length;G=hx.mallocUint8(j);for(var H=(t.color.subarray||t.color.slice).bind(t.color),N=0;N4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(ae){var be=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(be);for(var Pe=0;Pe1?this.counts[Pe]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Pe]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Pe*4,Pe*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Pe]:this.opacity,baseline:this.baselineOffset[Pe]!=null?this.baselineOffset[Pe]:this.baselineOffset[0],align:this.align?this.alignOffset[Pe]!=null?this.alignOffset[Pe]:this.alignOffset[0]:0,atlas:this.fontAtlas[Pe]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Pe*2,Pe*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};kc.prototype.destroy=function(){};kc.prototype.kerning=!0;kc.prototype.position={constant:new Float32Array(2)};kc.prototype.translate=null;kc.prototype.scale=null;kc.prototype.font=null;kc.prototype.text="";kc.prototype.positionOffset=[0,0];kc.prototype.opacity=1;kc.prototype.color=new Uint8Array([0,0,0,255]);kc.prototype.alignOffset=[0,0];kc.maxAtlasSize=1024;kc.atlasCanvas=document.createElement("canvas");kc.atlasContext=kc.atlasCanvas.getContext("2d",{alpha:!1});kc.baseFontSize=64;kc.fonts={};function NUt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}wNe.exports=kc});var TNe=Te((mK,yK)=>{(function(e,t){typeof mK=="object"&&typeof yK!="undefined"?yK.exports=t():e.createREGL=t()})(mK,function(){"use strict";var e=function(Be,qt){for(var ar=Object.keys(qt),Qr=0;Qr1&&qt===ar&&(qt==='"'||qt==="'"))return['"'+o(Be.substr(1,Be.length-2))+'"'];var Qr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Be);if(Qr)return s(Be.substr(0,Qr.index)).concat(s(Qr[1])).concat(s(Be.substr(Qr.index+Qr[0].length)));var mi=Be.split(".");if(mi.length===1)return['"'+o(Be)+'"'];for(var fi=[],pi=0;pi65535)<<4,Be>>>=qt,ar=(Be>255)<<3,Be>>>=ar,qt|=ar,ar=(Be>15)<<2,Be>>>=ar,qt|=ar,ar=(Be>3)<<1,Be>>>=ar,qt|=ar,qt|Be>>1}function N(){var Be=M(8,function(){return[]});function qt(fi){var pi=j(fi),on=Be[H(pi)>>2];return on.length>0?on.pop():new ArrayBuffer(pi)}function ar(fi){Be[H(fi.byteLength)>>2].push(fi)}function Qr(fi,pi){var on=null;switch(fi){case m:on=new Int8Array(qt(pi),0,pi);break;case P:on=new Uint8Array(qt(pi),0,pi);break;case A:on=new Int16Array(qt(2*pi),0,pi);break;case B:on=new Uint16Array(qt(2*pi),0,pi);break;case F:on=new Int32Array(qt(4*pi),0,pi);break;case U:on=new Uint32Array(qt(4*pi),0,pi);break;case G:on=new Float32Array(qt(4*pi),0,pi);break;default:return null}return on.length!==pi?on.subarray(0,pi):on}function mi(fi){ar(fi.buffer)}return{alloc:qt,free:ar,allocType:Qr,freeType:mi}}var W=N();W.zero=N();var re=3408,ae=3410,be=3411,Pe=3412,Ce=3413,de=3414,te=3415,ke=33901,Ee=33902,Me=3379,Ne=3386,Fe=34921,ye=36347,Ve=36348,ce=35661,Ye=35660,nt=34930,gt=36349,Nt=34076,it=34024,Ke=7936,kt=7937,Tt=7938,St=35724,Dt=34047,Zt=36063,Et=34852,Ae=3553,at=34067,wt=34069,vt=33984,st=6408,Ue=5126,rt=5121,$e=36160,zt=36053,Yt=36064,hr=16384,yr=function(Be,qt){var ar=1;qt.ext_texture_filter_anisotropic&&(ar=Be.getParameter(Dt));var Qr=1,mi=1;qt.webgl_draw_buffers&&(Qr=Be.getParameter(Et),mi=Be.getParameter(Zt));var fi=!!qt.oes_texture_float;if(fi){var pi=Be.createTexture();Be.bindTexture(Ae,pi),Be.texImage2D(Ae,0,st,1,1,0,st,Ue,null);var on=Be.createFramebuffer();if(Be.bindFramebuffer($e,on),Be.framebufferTexture2D($e,Yt,Ae,pi,0),Be.bindTexture(Ae,null),Be.checkFramebufferStatus($e)!==zt)fi=!1;else{Be.viewport(0,0,1,1),Be.clearColor(1,0,0,1),Be.clear(hr);var Bn=W.allocType(Ue,4);Be.readPixels(0,0,1,1,st,Ue,Bn),Be.getError()?fi=!1:(Be.deleteFramebuffer(on),Be.deleteTexture(pi),fi=Bn[0]===1),W.freeType(Bn)}}var Ln=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!Ln){var Ls=Be.createTexture(),ua=W.allocType(rt,36);Be.activeTexture(vt),Be.bindTexture(at,Ls),Be.texImage2D(wt,0,st,3,3,0,st,rt,ua),W.freeType(ua),Be.bindTexture(at,null),Be.deleteTexture(Ls),wn=!Be.getError()}return{colorBits:[Be.getParameter(ae),Be.getParameter(be),Be.getParameter(Pe),Be.getParameter(Ce)],depthBits:Be.getParameter(de),stencilBits:Be.getParameter(te),subpixelBits:Be.getParameter(re),extensions:Object.keys(qt).filter(function(Hn){return!!qt[Hn]}),maxAnisotropic:ar,maxDrawbuffers:Qr,maxColorAttachments:mi,pointSizeDims:Be.getParameter(ke),lineWidthDims:Be.getParameter(Ee),maxViewportDims:Be.getParameter(Ne),maxCombinedTextureUnits:Be.getParameter(ce),maxCubeMapSize:Be.getParameter(Nt),maxRenderbufferSize:Be.getParameter(it),maxTextureUnits:Be.getParameter(nt),maxTextureSize:Be.getParameter(Me),maxAttributes:Be.getParameter(Fe),maxVertexUniforms:Be.getParameter(ye),maxVertexTextureUnits:Be.getParameter(Ye),maxVaryingVectors:Be.getParameter(Ve),maxFragmentUniforms:Be.getParameter(gt),glsl:Be.getParameter(St),renderer:Be.getParameter(kt),vendor:Be.getParameter(Ke),version:Be.getParameter(Tt),readFloat:fi,npotTextureCube:wn}},br=function(Be){return Be instanceof Uint8Array||Be instanceof Uint16Array||Be instanceof Uint32Array||Be instanceof Int8Array||Be instanceof Int16Array||Be instanceof Int32Array||Be instanceof Float32Array||Be instanceof Float64Array||Be instanceof Uint8ClampedArray};function Ut(Be){return!!Be&&typeof Be=="object"&&Array.isArray(Be.shape)&&Array.isArray(Be.stride)&&typeof Be.offset=="number"&&Be.shape.length===Be.stride.length&&(Array.isArray(Be.data)||br(Be.data))}var Ie=function(Be){return Object.keys(Be).map(function(qt){return Be[qt]})},xe={shape:fe,flatten:ge};function Oe(Be,qt,ar){for(var Qr=0;Qr0){var hs;if(Array.isArray(_i[0])){Kn=ii(_i);for(var $i=1,Ui=1;Ui0){if(typeof $i[0]=="number"){var On=W.allocType(Yi.dtype,$i.length);_r(On,$i),Kn(On,ro),W.freeType(On)}else if(Array.isArray($i[0])||br($i[0])){na=ii($i);var In=nn($i,na,Yi.dtype);Kn(In,ro),W.freeType(In)}}}else if(Ut($i)){na=$i.shape;var Va=$i.stride,_s=0,ul=0,Qn=0,Mo=0;na.length===1?(_s=na[0],ul=1,Qn=Va[0],Mo=0):na.length===2&&(_s=na[0],ul=na[1],Qn=Va[0],Mo=Va[1]);var nl=Array.isArray($i.data)?Yi.dtype:Wt($i.data),pl=W.allocType(nl,_s*ul);Lr(pl,$i.data,_s,ul,Qn,Mo,$i.offset),Kn(pl,ro),W.freeType(pl)}return ga}return dn||ga(Wr),ga._reglType="buffer",ga._buffer=Yi,ga.subdata=hs,ar.profile&&(ga.stats=Yi.stats),ga.destroy=function(){ua(Yi)},ga}function Ni(){Ie(fi).forEach(function(Wr){Wr.buffer=Be.createBuffer(),Be.bindBuffer(Wr.type,Wr.buffer),Be.bufferData(Wr.type,Wr.persistentData||Wr.byteLength,Wr.usage)})}return ar.profile&&(qt.getTotalBufferSize=function(){var Wr=0;return Object.keys(fi).forEach(function(_i){Wr+=fi[_i].stats.size}),Wr}),{create:Hn,createStream:Bn,destroyStream:Ln,clear:function(){Ie(fi).forEach(ua),on.forEach(ua)},getBuffer:function(Wr){return Wr&&Wr._buffer instanceof pi?Wr._buffer:null},restore:Ni,_initBuffer:Ls}}var Ir=0,Gr=0,jr=1,yi=1,Ei=4,Vi=4,ti={points:Ir,point:Gr,lines:jr,line:yi,triangles:Ei,triangle:Vi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},en=0,Yr=1,oi=4,Bi=5120,an=5121,rn=5122,Fi=5123,Ri=5124,xn=5125,xi=34963,Xr=35040,ft=35044;function tr(Be,qt,ar,Qr){var mi={},fi=0,pi={uint8:an,uint16:Fi};qt.oes_element_index_uint&&(pi.uint32=xn);function on(Ni){this.id=fi++,mi[this.id]=this,this.buffer=Ni,this.primType=oi,this.vertCount=0,this.type=0}on.prototype.bind=function(){this.buffer.bind()};var Bn=[];function Ln(Ni){var Wr=Bn.pop();return Wr||(Wr=new on(ar.create(null,xi,!0,!1)._buffer)),Ls(Wr,Ni,Xr,-1,-1,0,0),Wr}function wn(Ni){Bn.push(Ni)}function Ls(Ni,Wr,_i,dn,En,Yi,ga){Ni.buffer.bind();var Kn;if(Wr){var hs=ga;!ga&&(!br(Wr)||Ut(Wr)&&!br(Wr.data))&&(hs=qt.oes_element_index_uint?xn:Fi),ar._initBuffer(Ni.buffer,Wr,_i,hs,3)}else Be.bufferData(xi,Yi,_i),Ni.buffer.dtype=Kn||an,Ni.buffer.usage=_i,Ni.buffer.dimension=3,Ni.buffer.byteLength=Yi;if(Kn=ga,!ga){switch(Ni.buffer.dtype){case an:case Bi:Kn=an;break;case Fi:case rn:Kn=Fi;break;case xn:case Ri:Kn=xn;break;default:}Ni.buffer.dtype=Kn}Ni.type=Kn;var $i=En;$i<0&&($i=Ni.buffer.byteLength,Kn===Fi?$i>>=1:Kn===xn&&($i>>=2)),Ni.vertCount=$i;var Ui=dn;if(dn<0){Ui=oi;var ro=Ni.buffer.dimension;ro===1&&(Ui=en),ro===2&&(Ui=Yr),ro===3&&(Ui=oi)}Ni.primType=Ui}function ua(Ni){Qr.elementsCount--,delete mi[Ni.id],Ni.buffer.destroy(),Ni.buffer=null}function Hn(Ni,Wr){var _i=ar.create(null,xi,!0),dn=new on(_i._buffer);Qr.elementsCount++;function En(Yi){if(!Yi)_i(),dn.primType=oi,dn.vertCount=0,dn.type=an;else if(typeof Yi=="number")_i(Yi),dn.primType=oi,dn.vertCount=Yi|0,dn.type=an;else{var ga=null,Kn=ft,hs=-1,$i=-1,Ui=0,ro=0;Array.isArray(Yi)||br(Yi)||Ut(Yi)?ga=Yi:("data"in Yi&&(ga=Yi.data),"usage"in Yi&&(Kn=Ci[Yi.usage]),"primitive"in Yi&&(hs=ti[Yi.primitive]),"count"in Yi&&($i=Yi.count|0),"type"in Yi&&(ro=pi[Yi.type]),"length"in Yi?Ui=Yi.length|0:(Ui=$i,ro===Fi||ro===rn?Ui*=2:(ro===xn||ro===Ri)&&(Ui*=4))),Ls(dn,ga,Kn,hs,$i,Ui,ro)}return En}return En(Ni),En._reglType="elements",En._elements=dn,En.subdata=function(Yi,ga){return _i.subdata(Yi,ga),En},En.destroy=function(){ua(dn)},En}return{create:Hn,createStream:Ln,destroyStream:wn,getElements:function(Ni){return typeof Ni=="function"&&Ni._elements instanceof on?Ni._elements:null},clear:function(){Ie(mi).forEach(ua)}}}var pr=new Float32Array(1),gr=new Uint32Array(pr.buffer),Zr=5123;function Ai(Be){for(var qt=W.allocType(Zr,Be.length),ar=0;ar>>31<<15,fi=(Qr<<1>>>24)-127,pi=Qr>>13&1023;if(fi<-24)qt[ar]=mi;else if(fi<-14){var on=-14-fi;qt[ar]=mi+(pi+1024>>on)}else fi>15?qt[ar]=mi+31744:qt[ar]=mi+(fi+15<<10)+pi}return qt}function Qi(Be){return Array.isArray(Be)||br(Be)}var ni=34467,Zi=3553,aa=34067,Mn=34069,Un=6408,Ga=6406,ma=6407,oa=6409,ka=6410,so=32854,Kr=32855,Ia=36194,Yo=32819,fa=32820,kn=33635,Ta=34042,ys=6402,uo=34041,ls=35904,$a=35906,fo=36193,mn=33776,ra=33777,wa=33778,ws=33779,Co=35986,Po=35987,ji=34798,gn=35840,Ps=35841,Ha=35842,Sn=35843,ao=36196,Ba=5121,Ko=5123,Qo=5125,Wi=5126,Sa=10242,Qa=10243,vn=10497,da=33071,la=33648,vo=10240,As=10241,ps=9728,co=9729,mo=9984,No=9985,jn=9986,Go=9987,Ys=33170,qs=4352,Ns=4353,Oa=4354,ha=34046,Vs=3317,Ya=37440,_n=37441,Vn=37443,wo=37444,Ra=33984,Xn=[mo,jn,No,Go],un=[0,oa,ka,ma,Un],$n={};$n[oa]=$n[Ga]=$n[ys]=1,$n[uo]=$n[ka]=2,$n[ma]=$n[ls]=3,$n[Un]=$n[$a]=4;function Ka(Be){return"[object "+Be+"]"}var qn=Ka("HTMLCanvasElement"),Eo=Ka("OffscreenCanvas"),Ja=Ka("CanvasRenderingContext2D"),lo=Ka("ImageBitmap"),eo=Ka("HTMLImageElement"),sa=Ka("HTMLVideoElement"),es=Object.keys(pe).concat([qn,Eo,Ja,lo,eo,sa]),Na=[];Na[Ba]=1,Na[Wi]=4,Na[fo]=2,Na[Ko]=2,Na[Qo]=4;var tn=[];tn[so]=2,tn[Kr]=2,tn[Ia]=2,tn[uo]=4,tn[mn]=.5,tn[ra]=.5,tn[wa]=1,tn[ws]=1,tn[Co]=.5,tn[Po]=1,tn[ji]=1,tn[gn]=.5,tn[Ps]=.25,tn[Ha]=.5,tn[Sn]=.25,tn[ao]=.5;function Pa(Be){return Array.isArray(Be)&&(Be.length===0||typeof Be[0]=="number")}function to(Be){if(!Array.isArray(Be))return!1;var qt=Be.length;return!(qt===0||!Qi(Be[0]))}function yo(Be){return Object.prototype.toString.call(Be)}function Jo(Be){return yo(Be)===qn}function Ao(Be){return yo(Be)===Eo}function Dn(Be){return yo(Be)===Ja}function _a(Be){return yo(Be)===lo}function Ws(Be){return yo(Be)===eo}function Ca(Be){return yo(Be)===sa}function Es(Be){if(!Be)return!1;var qt=yo(Be);return es.indexOf(qt)>=0?!0:Pa(Be)||to(Be)||Ut(Be)}function Ts(Be){return pe[Object.prototype.toString.call(Be)]|0}function Ho(Be,qt){var ar=qt.length;switch(Be.type){case Ba:case Ko:case Qo:case Wi:var Qr=W.allocType(Be.type,ar);Qr.set(qt),Be.data=Qr;break;case fo:Be.data=Ai(qt);break;default:}}function Wa(Be,qt){return W.allocType(Be.type===fo?Wi:Be.type,qt)}function To(Be,qt){Be.type===fo?(Be.data=Ai(qt),W.freeType(qt)):Be.data=qt}function ts(Be,qt,ar,Qr,mi,fi){for(var pi=Be.width,on=Be.height,Bn=Be.channels,Ln=pi*on*Bn,wn=Wa(Be,Ln),Ls=0,ua=0;ua=1;)on+=pi*Bn*Bn,Bn/=2;return on}else return pi*ar*Qr}function qa(Be,qt,ar,Qr,mi,fi,pi){var on={"don't care":qs,"dont care":qs,nice:Oa,fast:Ns},Bn={repeat:vn,clamp:da,mirror:la},Ln={nearest:ps,linear:co},wn=e({mipmap:Go,"nearest mipmap nearest":mo,"linear mipmap nearest":No,"nearest mipmap linear":jn,"linear mipmap linear":Go},Ln),Ls={none:0,browser:wo},ua={uint8:Ba,rgba4:Yo,rgb565:kn,"rgb5 a1":fa},Hn={alpha:Ga,luminance:oa,"luminance alpha":ka,rgb:ma,rgba:Un,rgba4:so,"rgb5 a1":Kr,rgb565:Ia},Ni={};qt.ext_srgb&&(Hn.srgb=ls,Hn.srgba=$a),qt.oes_texture_float&&(ua.float32=ua.float=Wi),qt.oes_texture_half_float&&(ua.float16=ua["half float"]=fo),qt.webgl_depth_texture&&(e(Hn,{depth:ys,"depth stencil":uo}),e(ua,{uint16:Ko,uint32:Qo,"depth stencil":Ta})),qt.webgl_compressed_texture_s3tc&&e(Ni,{"rgb s3tc dxt1":mn,"rgba s3tc dxt1":ra,"rgba s3tc dxt3":wa,"rgba s3tc dxt5":ws}),qt.webgl_compressed_texture_atc&&e(Ni,{"rgb atc":Co,"rgba atc explicit alpha":Po,"rgba atc interpolated alpha":ji}),qt.webgl_compressed_texture_pvrtc&&e(Ni,{"rgb pvrtc 4bppv1":gn,"rgb pvrtc 2bppv1":Ps,"rgba pvrtc 4bppv1":Ha,"rgba pvrtc 2bppv1":Sn}),qt.webgl_compressed_texture_etc1&&(Ni["rgb etc1"]=ao);var Wr=Array.prototype.slice.call(Be.getParameter(ni));Object.keys(Ni).forEach(function(ne){var Le=Ni[ne];Wr.indexOf(Le)>=0&&(Hn[ne]=Le)});var _i=Object.keys(Hn);ar.textureFormats=_i;var dn=[];Object.keys(Hn).forEach(function(ne){var Le=Hn[ne];dn[Le]=ne});var En=[];Object.keys(ua).forEach(function(ne){var Le=ua[ne];En[Le]=ne});var Yi=[];Object.keys(Ln).forEach(function(ne){var Le=Ln[ne];Yi[Le]=ne});var ga=[];Object.keys(wn).forEach(function(ne){var Le=wn[ne];ga[Le]=ne});var Kn=[];Object.keys(Bn).forEach(function(ne){var Le=Bn[ne];Kn[Le]=ne});var hs=_i.reduce(function(ne,Le){var Ze=Hn[Le];return Ze===oa||Ze===Ga||Ze===oa||Ze===ka||Ze===ys||Ze===uo||qt.ext_srgb&&(Ze===ls||Ze===$a)?ne[Ze]=Ze:Ze===Kr||Le.indexOf("rgba")>=0?ne[Ze]=Un:ne[Ze]=ma,ne},{});function $i(){this.internalformat=Un,this.format=Un,this.type=Ba,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=wo,this.width=0,this.height=0,this.channels=0}function Ui(ne,Le){ne.internalformat=Le.internalformat,ne.format=Le.format,ne.type=Le.type,ne.compressed=Le.compressed,ne.premultiplyAlpha=Le.premultiplyAlpha,ne.flipY=Le.flipY,ne.unpackAlignment=Le.unpackAlignment,ne.colorSpace=Le.colorSpace,ne.width=Le.width,ne.height=Le.height,ne.channels=Le.channels}function ro(ne,Le){if(!(typeof Le!="object"||!Le)){if("premultiplyAlpha"in Le&&(ne.premultiplyAlpha=Le.premultiplyAlpha),"flipY"in Le&&(ne.flipY=Le.flipY),"alignment"in Le&&(ne.unpackAlignment=Le.alignment),"colorSpace"in Le&&(ne.colorSpace=Ls[Le.colorSpace]),"type"in Le){var Ze=Le.type;ne.type=ua[Ze]}var Ct=ne.width,dr=ne.height,Er=ne.channels,lr=!1;"shape"in Le?(Ct=Le.shape[0],dr=Le.shape[1],Le.shape.length===3&&(Er=Le.shape[2],lr=!0)):("radius"in Le&&(Ct=dr=Le.radius),"width"in Le&&(Ct=Le.width),"height"in Le&&(dr=Le.height),"channels"in Le&&(Er=Le.channels,lr=!0)),ne.width=Ct|0,ne.height=dr|0,ne.channels=Er|0;var Je=!1;if("format"in Le){var ht=Le.format,bt=ne.internalformat=Hn[ht];ne.format=hs[bt],ht in ua&&("type"in Le||(ne.type=ua[ht])),ht in Ni&&(ne.compressed=!0),Je=!0}!lr&&Je?ne.channels=$n[ne.format]:lr&&!Je&&ne.channels!==un[ne.format]&&(ne.format=ne.internalformat=un[ne.channels])}}function na(ne){Be.pixelStorei(Ya,ne.flipY),Be.pixelStorei(_n,ne.premultiplyAlpha),Be.pixelStorei(Vn,ne.colorSpace),Be.pixelStorei(Vs,ne.unpackAlignment)}function On(){$i.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function In(ne,Le){var Ze=null;if(Es(Le)?Ze=Le:Le&&(ro(ne,Le),"x"in Le&&(ne.xOffset=Le.x|0),"y"in Le&&(ne.yOffset=Le.y|0),Es(Le.data)&&(Ze=Le.data)),Le.copy){var Ct=mi.viewportWidth,dr=mi.viewportHeight;ne.width=ne.width||Ct-ne.xOffset,ne.height=ne.height||dr-ne.yOffset,ne.needsCopy=!0}else if(!Ze)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(br(Ze))ne.channels=ne.channels||4,ne.data=Ze,!("type"in Le)&&ne.type===Ba&&(ne.type=Ts(Ze));else if(Pa(Ze))ne.channels=ne.channels||4,Ho(ne,Ze),ne.alignment=1,ne.needsFree=!0;else if(Ut(Ze)){var Er=Ze.data;!Array.isArray(Er)&&ne.type===Ba&&(ne.type=Ts(Er));var lr=Ze.shape,Je=Ze.stride,ht,bt,Kt,sr,Qt,ur;lr.length===3?(Kt=lr[2],ur=Je[2]):(Kt=1,ur=1),ht=lr[0],bt=lr[1],sr=Je[0],Qt=Je[1],ne.alignment=1,ne.width=ht,ne.height=bt,ne.channels=Kt,ne.format=ne.internalformat=un[Kt],ne.needsFree=!0,ts(ne,Er,sr,Qt,ur,Ze.offset)}else if(Jo(Ze)||Ao(Ze)||Dn(Ze))Jo(Ze)||Ao(Ze)?ne.element=Ze:ne.element=Ze.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(_a(Ze))ne.element=Ze,ne.width=Ze.width,ne.height=Ze.height,ne.channels=4;else if(Ws(Ze))ne.element=Ze,ne.width=Ze.naturalWidth,ne.height=Ze.naturalHeight,ne.channels=4;else if(Ca(Ze))ne.element=Ze,ne.width=Ze.videoWidth,ne.height=Ze.videoHeight,ne.channels=4;else if(to(Ze)){var er=ne.width||Ze[0].length,Ot=ne.height||Ze.length,Jt=ne.channels;Qi(Ze[0][0])?Jt=Jt||Ze[0][0].length:Jt=Jt||1;for(var Lt=xe.shape(Ze),Tr=1,Nr=0;Nr>=dr,Ze.height>>=dr,In(Ze,Ct[dr]),ne.mipmask|=1<=0&&!("faces"in Le)&&(ne.genMipmaps=!0)}if("mag"in Le){var Ct=Le.mag;ne.magFilter=Ln[Ct]}var dr=ne.wrapS,Er=ne.wrapT;if("wrap"in Le){var lr=Le.wrap;typeof lr=="string"?dr=Er=Bn[lr]:Array.isArray(lr)&&(dr=Bn[lr[0]],Er=Bn[lr[1]])}else{if("wrapS"in Le){var Je=Le.wrapS;dr=Bn[Je]}if("wrapT"in Le){var ht=Le.wrapT;Er=Bn[ht]}}if(ne.wrapS=dr,ne.wrapT=Er,"anisotropic"in Le){var bt=Le.anisotropic;ne.anisotropic=Le.anisotropic}if("mipmap"in Le){var Kt=!1;switch(typeof Le.mipmap){case"string":ne.mipmapHint=on[Le.mipmap],ne.genMipmaps=!0,Kt=!0;break;case"boolean":Kt=ne.genMipmaps=Le.mipmap;break;case"object":ne.genMipmaps=!1,Kt=!0;break;default:}Kt&&!("min"in Le)&&(ne.minFilter=mo)}}function bf(ne,Le){Be.texParameteri(Le,As,ne.minFilter),Be.texParameteri(Le,vo,ne.magFilter),Be.texParameteri(Le,Sa,ne.wrapS),Be.texParameteri(Le,Qa,ne.wrapT),qt.ext_texture_filter_anisotropic&&Be.texParameteri(Le,ha,ne.anisotropic),ne.genMipmaps&&(Be.hint(Ys,ne.mipmapHint),Be.generateMipmap(Le))}var Lf=0,Hu={},hf=ar.maxTextureUnits,yf=Array(hf).map(function(){return null});function Fl(ne){$i.call(this),this.mipmask=0,this.internalformat=Un,this.id=Lf++,this.refCount=1,this.target=ne,this.texture=Be.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Cu,pi.profile&&(this.stats={size:0})}function wf(ne){Be.activeTexture(Ra),Be.bindTexture(ne.target,ne.texture)}function cu(){var ne=yf[0];ne?Be.bindTexture(ne.target,ne.texture):Be.bindTexture(Zi,null)}function Y(ne){var Le=ne.texture,Ze=ne.unit,Ct=ne.target;Ze>=0&&(Be.activeTexture(Ra+Ze),Be.bindTexture(Ct,null),yf[Ze]=null),Be.deleteTexture(Le),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete Hu[ne.id],fi.textureCount--}e(Fl.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var Le=ne.unit;if(Le<0){for(var Ze=0;Ze0)continue;Ct.unit=-1}yf[Ze]=ne,Le=Ze;break}Le>=hf,pi.profile&&fi.maxTextureUnits>Qt)-Kt,ur.height=ur.height||(Ze.height>>Qt)-sr,wf(Ze),_s(ur,Zi,Kt,sr,Qt),cu(),Mo(ur),Ct}function Er(lr,Je){var ht=lr|0,bt=Je|0||ht;if(ht===Ze.width&&bt===Ze.height)return Ct;Ct.width=Ze.width=ht,Ct.height=Ze.height=bt,wf(Ze);for(var Kt=0;Ze.mipmask>>Kt;++Kt){var sr=ht>>Kt,Qt=bt>>Kt;if(!sr||!Qt)break;Be.texImage2D(Zi,Kt,Ze.format,sr,Qt,0,Ze.format,Ze.type,null)}return cu(),pi.profile&&(Ze.stats.size=Wo(Ze.internalformat,Ze.type,ht,bt,!1,!1)),Ct}return Ct(ne,Le),Ct.subimage=dr,Ct.resize=Er,Ct._reglType="texture2d",Ct._texture=Ze,pi.profile&&(Ct.stats=Ze.stats),Ct.destroy=function(){Ze.decRef()},Ct}function J(ne,Le,Ze,Ct,dr,Er){var lr=new Fl(aa);Hu[lr.id]=lr,fi.cubeCount++;var Je=new Array(6);function ht(sr,Qt,ur,er,Ot,Jt){var Lt,Tr=lr.texInfo;for(Cu.call(Tr),Lt=0;Lt<6;++Lt)Je[Lt]=Ql();if(typeof sr=="number"||!sr){var Nr=sr|0||1;for(Lt=0;Lt<6;++Lt)pl(Je[Lt],Nr,Nr)}else if(typeof sr=="object")if(Qt)Dl(Je[0],sr),Dl(Je[1],Qt),Dl(Je[2],ur),Dl(Je[3],er),Dl(Je[4],Ot),Dl(Je[5],Jt);else if(_f(Tr,sr),ro(lr,sr),"faces"in sr){var ci=sr.faces;for(Lt=0;Lt<6;++Lt)Ui(Je[Lt],lr),Dl(Je[Lt],ci[Lt])}else for(Lt=0;Lt<6;++Lt)Dl(Je[Lt],sr);for(Ui(lr,Je[0]),Tr.genMipmaps?lr.mipmask=(Je[0].width<<1)-1:lr.mipmask=Je[0].mipmask,lr.internalformat=Je[0].internalformat,ht.width=Je[0].width,ht.height=Je[0].height,wf(lr),Lt=0;Lt<6;++Lt)Fu(Je[Lt],Mn+Lt);for(bf(Tr,aa),cu(),pi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,Tr.genMipmaps,!0)),ht.format=dn[lr.internalformat],ht.type=En[lr.type],ht.mag=Yi[Tr.magFilter],ht.min=ga[Tr.minFilter],ht.wrapS=Kn[Tr.wrapS],ht.wrapT=Kn[Tr.wrapT],Lt=0;Lt<6;++Lt)kf(Je[Lt]);return ht}function bt(sr,Qt,ur,er,Ot){var Jt=ur|0,Lt=er|0,Tr=Ot|0,Nr=Qn();return Ui(Nr,lr),Nr.width=0,Nr.height=0,In(Nr,Qt),Nr.width=Nr.width||(lr.width>>Tr)-Jt,Nr.height=Nr.height||(lr.height>>Tr)-Lt,wf(lr),_s(Nr,Mn+sr,Jt,Lt,Tr),cu(),Mo(Nr),ht}function Kt(sr){var Qt=sr|0;if(Qt!==lr.width){ht.width=lr.width=Qt,ht.height=lr.height=Qt,wf(lr);for(var ur=0;ur<6;++ur)for(var er=0;lr.mipmask>>er;++er)Be.texImage2D(Mn+ur,er,lr.format,Qt>>er,Qt>>er,0,lr.format,lr.type,null);return cu(),pi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,!1,!0)),ht}}return ht(ne,Le,Ze,Ct,dr,Er),ht.subimage=bt,ht.resize=Kt,ht._reglType="textureCube",ht._texture=lr,pi.profile&&(ht.stats=lr.stats),ht.destroy=function(){lr.decRef()},ht}function O(){for(var ne=0;ne>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);else for(var dr=0;dr<6;++dr)Be.texImage2D(Mn+dr,Ct,Ze.internalformat,Ze.width>>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);bf(Ze.texInfo,Ze.target)})}function _e(){for(var ne=0;ne=0?kf=!0:Bn.indexOf(Cu)>=0&&(kf=!1))),("depthTexture"in Fl||"depthStencilTexture"in Fl)&&(yf=!!(Fl.depthTexture||Fl.depthStencilTexture)),"depth"in Fl&&(typeof Fl.depth=="boolean"?Fu=Fl.depth:(Lf=Fl.depth,mf=!1)),"stencil"in Fl&&(typeof Fl.stencil=="boolean"?mf=Fl.stencil:(Hu=Fl.stencil,Fu=!1)),"depthStencil"in Fl&&(typeof Fl.depthStencil=="boolean"?Fu=mf=Fl.depthStencil:(hf=Fl.depthStencil,Fu=!1,mf=!1))}var cu=null,Y=null,R=null,J=null;if(Array.isArray(Ql))cu=Ql.map(Ni);else if(Ql)cu=[Ni(Ql)];else for(cu=new Array(bf),nl=0;nl0&&(Mo.depth=In[0].depth,Mo.stencil=In[0].stencil,Mo.depthStencil=In[0].depthStencil),In[Qn]?In[Qn](Mo):In[Qn]=Ui(Mo)}return e(Va,{width:nl,height:nl,color:Cu})}function _s(ul){var Qn,Mo=ul|0;if(Mo===Va.width)return Va;var nl=Va.color;for(Qn=0;Qn=nl.byteLength?pl.subdata(nl):(pl.destroy(),Ui.buffers[ul]=null)),Ui.buffers[ul]||(pl=Ui.buffers[ul]=mi.create(Qn,Ss,!1,!0)),Mo.buffer=mi.getBuffer(pl),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1,Va[ul]=1}else mi.getBuffer(Qn)?(Mo.buffer=mi.getBuffer(Qn),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1):mi.getBuffer(Qn.buffer)?(Mo.buffer=mi.getBuffer(Qn.buffer),Mo.size=(+Qn.size||Mo.buffer.dimension)|0,Mo.normalized=!!Qn.normalized||!1,"type"in Qn?Mo.type=di[Qn.type]:Mo.type=Mo.buffer.dtype,Mo.offset=(Qn.offset||0)|0,Mo.stride=(Qn.stride||0)|0,Mo.divisor=(Qn.divisor||0)|0,Mo.state=1):"x"in Qn&&(Mo.x=+Qn.x||0,Mo.y=+Qn.y||0,Mo.z=+Qn.z||0,Mo.w=+Qn.w||0,Mo.state=2)}for(var Dl=0;Dl1)for(var na=0;naWr&&(Wr=_i.stats.uniformsCount)}),Wr},ar.getMaxAttributesCount=function(){var Wr=0;return wn.forEach(function(_i){_i.stats.attributesCount>Wr&&(Wr=_i.stats.attributesCount)}),Wr});function Ni(){mi={},fi={};for(var Wr=0;Wr16&&(ar=Pi(ar,Be.length*8));for(var Qr=Array(16),mi=Array(16),fi=0;fi<16;fi++)Qr[fi]=ar[fi]^909522486,mi[fi]=ar[fi]^1549556828;var pi=Pi(Qr.concat(Bs(qt)),512+qt.length*8);return At(Pi(mi.concat(pi),768))}function Ms(Be){for(var qt=Ro?"0123456789ABCDEF":"0123456789abcdef",ar="",Qr,mi=0;mi>>4&15)+qt.charAt(Qr&15);return ar}function jo(Be){for(var qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ar="",Qr=Be.length,mi=0;miBe.length*8?ar+=tl:ar+=qt.charAt(fi>>>6*(3-pi)&63);return ar}function Rs(Be,qt){var ar=qt.length,Qr=Array(),mi,fi,pi,on,Bn=Array(Math.ceil(Be.length/2));for(mi=0;mi0;){for(on=Array(),pi=0,mi=0;mi0||fi>0)&&(on[on.length]=fi);Qr[Qr.length]=pi,Bn=on}var Ln="";for(mi=Qr.length-1;mi>=0;mi--)Ln+=qt.charAt(Qr[mi]);var wn=Math.ceil(Be.length*8/(Math.log(qt.length)/Math.log(2)));for(mi=Ln.length;mi>>6&31,128|Qr&63):Qr<=65535?qt+=String.fromCharCode(224|Qr>>>12&15,128|Qr>>>6&63,128|Qr&63):Qr<=2097151&&(qt+=String.fromCharCode(240|Qr>>>18&7,128|Qr>>>12&63,128|Qr>>>6&63,128|Qr&63));return qt}function Bs(Be){for(var qt=Array(Be.length>>2),ar=0;ar>5]|=(Be.charCodeAt(ar/8)&255)<<24-ar%32;return qt}function At(Be){for(var qt="",ar=0;ar>5]>>>24-ar%32&255);return qt}function Gt(Be,qt){return Be>>>qt|Be<<32-qt}function wr(Be,qt){return Be>>>qt}function mr(Be,qt,ar){return Be&qt^~Be&ar}function Or(Be,qt,ar){return Be&qt^Be&ar^qt&ar}function gi(Be){return Gt(Be,2)^Gt(Be,13)^Gt(Be,22)}function Ti(Be){return Gt(Be,6)^Gt(Be,11)^Gt(Be,25)}function ki(Be){return Gt(Be,7)^Gt(Be,18)^wr(Be,3)}function Ji(Be){return Gt(Be,17)^Gt(Be,19)^wr(Be,10)}var Fn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Pi(Be,qt){var ar=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Qr=new Array(64),mi,fi,pi,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Wr;for(Be[qt>>5]|=128<<24-qt%32,Be[(qt+64>>9<<4)+15]=qt,ua=0;ua>16)+(qt>>16)+(ar>>16);return Qr<<16|ar&65535}function Li(Be){return Array.prototype.slice.call(Be)}function Si(Be){return Li(Be).join("")}function Gn(Be){var qt=Be&&Be.cache,ar=0,Qr=[],mi=[],fi=[];function pi(Ni,Wr){var _i=Wr&&Wr.stable;if(!_i){for(var dn=0;dn0&&(Ni.push(En,"="),Ni.push.apply(Ni,Li(arguments)),Ni.push(";")),En}return e(Wr,{def:dn,toString:function(){return Si([_i.length>0?"var "+_i.join(",")+";":"",Si(Ni)])}})}function Bn(){var Ni=on(),Wr=on(),_i=Ni.toString,dn=Wr.toString;function En(Yi,ga){Wr(Yi,ga,"=",Ni.def(Yi,ga),";")}return e(function(){Ni.apply(Ni,Li(arguments))},{def:Ni.def,entry:Ni,exit:Wr,save:En,set:function(Yi,ga,Kn){En(Yi,ga),Ni(Yi,ga,"=",Kn,";")},toString:function(){return _i()+dn()}})}function Ln(){var Ni=Si(arguments),Wr=Bn(),_i=Bn(),dn=Wr.toString,En=_i.toString;return e(Wr,{then:function(){return Wr.apply(Wr,Li(arguments)),this},else:function(){return _i.apply(_i,Li(arguments)),this},toString:function(){var Yi=En();return Yi&&(Yi="else{"+Yi+"}"),Si(["if(",Ni,"){",dn(),"}",Yi])}})}var wn=on(),Ls={};function ua(Ni,Wr){var _i=[];function dn(){var hs="a"+_i.length;return _i.push(hs),hs}Wr=Wr||0;for(var En=0;En2){for(var a=Array(t.position.length*.5),o=0;o2){for(var l=!t.position[0].length,f=hx.mallocFloat(this.count*2),c=0,h=0;c1?r.align[de]:r.align[0]:r.align;if(typeof te=="number")return te;switch(te){case"right":case"end":return-Ce;case"center":case"centre":case"middle":return-Ce*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ce,de){var te=(r.font[de]||r.font[0]).metrics,ke=0;return ke+=te.bottom*.5,typeof Ce=="number"?ke+=Ce-te.baseline:ke+=-te[Ce],ke*=-1,ke})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=vK(t.color,"uint8");else{var G;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var j=t.color.length;G=hx.mallocUint8(j);for(var H=(t.color.subarray||t.color.slice).bind(t.color),N=0;N4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(ae){var be=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(be);for(var Pe=0;Pe1?this.counts[Pe]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Pe]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Pe*4,Pe*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Pe]:this.opacity,baseline:this.baselineOffset[Pe]!=null?this.baselineOffset[Pe]:this.baselineOffset[0],align:this.align?this.alignOffset[Pe]!=null?this.alignOffset[Pe]:this.alignOffset[0]:0,atlas:this.fontAtlas[Pe]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Pe*2,Pe*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};kc.prototype.destroy=function(){};kc.prototype.kerning=!0;kc.prototype.position={constant:new Float32Array(2)};kc.prototype.translate=null;kc.prototype.scale=null;kc.prototype.font=null;kc.prototype.text="";kc.prototype.positionOffset=[0,0];kc.prototype.opacity=1;kc.prototype.color=new Uint8Array([0,0,0,255]);kc.prototype.alignOffset=[0,0];kc.maxAtlasSize=1024;kc.atlasCanvas=document.createElement("canvas");kc.atlasContext=kc.atlasCanvas.getContext("2d",{alpha:!1});kc.baseFontSize=64;kc.fonts={};function GUt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}TNe.exports=kc});var MNe=Te((mK,yK)=>{(function(e,t){typeof mK=="object"&&typeof yK!="undefined"?yK.exports=t():e.createREGL=t()})(mK,function(){"use strict";var e=function(Be,qt){for(var ar=Object.keys(qt),Qr=0;Qr1&&qt===ar&&(qt==='"'||qt==="'"))return['"'+o(Be.substr(1,Be.length-2))+'"'];var Qr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Be);if(Qr)return s(Be.substr(0,Qr.index)).concat(s(Qr[1])).concat(s(Be.substr(Qr.index+Qr[0].length)));var mi=Be.split(".");if(mi.length===1)return['"'+o(Be)+'"'];for(var fi=[],pi=0;pi65535)<<4,Be>>>=qt,ar=(Be>255)<<3,Be>>>=ar,qt|=ar,ar=(Be>15)<<2,Be>>>=ar,qt|=ar,ar=(Be>3)<<1,Be>>>=ar,qt|=ar,qt|Be>>1}function N(){var Be=M(8,function(){return[]});function qt(fi){var pi=j(fi),on=Be[H(pi)>>2];return on.length>0?on.pop():new ArrayBuffer(pi)}function ar(fi){Be[H(fi.byteLength)>>2].push(fi)}function Qr(fi,pi){var on=null;switch(fi){case m:on=new Int8Array(qt(pi),0,pi);break;case P:on=new Uint8Array(qt(pi),0,pi);break;case A:on=new Int16Array(qt(2*pi),0,pi);break;case B:on=new Uint16Array(qt(2*pi),0,pi);break;case F:on=new Int32Array(qt(4*pi),0,pi);break;case U:on=new Uint32Array(qt(4*pi),0,pi);break;case G:on=new Float32Array(qt(4*pi),0,pi);break;default:return null}return on.length!==pi?on.subarray(0,pi):on}function mi(fi){ar(fi.buffer)}return{alloc:qt,free:ar,allocType:Qr,freeType:mi}}var W=N();W.zero=N();var re=3408,ae=3410,be=3411,Pe=3412,Ce=3413,de=3414,te=3415,ke=33901,Ee=33902,Me=3379,Ne=3386,Fe=34921,ye=36347,Ve=36348,ce=35661,Ke=35660,nt=34930,gt=36349,Nt=34076,it=34024,Ye=7936,kt=7937,Tt=7938,St=35724,Rt=34047,Zt=36063,Et=34852,Ae=3553,at=34067,wt=34069,vt=33984,st=6408,Ue=5126,rt=5121,$e=36160,zt=36053,Yt=36064,hr=16384,yr=function(Be,qt){var ar=1;qt.ext_texture_filter_anisotropic&&(ar=Be.getParameter(Rt));var Qr=1,mi=1;qt.webgl_draw_buffers&&(Qr=Be.getParameter(Et),mi=Be.getParameter(Zt));var fi=!!qt.oes_texture_float;if(fi){var pi=Be.createTexture();Be.bindTexture(Ae,pi),Be.texImage2D(Ae,0,st,1,1,0,st,Ue,null);var on=Be.createFramebuffer();if(Be.bindFramebuffer($e,on),Be.framebufferTexture2D($e,Yt,Ae,pi,0),Be.bindTexture(Ae,null),Be.checkFramebufferStatus($e)!==zt)fi=!1;else{Be.viewport(0,0,1,1),Be.clearColor(1,0,0,1),Be.clear(hr);var Bn=W.allocType(Ue,4);Be.readPixels(0,0,1,1,st,Ue,Bn),Be.getError()?fi=!1:(Be.deleteFramebuffer(on),Be.deleteTexture(pi),fi=Bn[0]===1),W.freeType(Bn)}}var Ln=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!Ln){var Ls=Be.createTexture(),ua=W.allocType(rt,36);Be.activeTexture(vt),Be.bindTexture(at,Ls),Be.texImage2D(wt,0,st,3,3,0,st,rt,ua),W.freeType(ua),Be.bindTexture(at,null),Be.deleteTexture(Ls),wn=!Be.getError()}return{colorBits:[Be.getParameter(ae),Be.getParameter(be),Be.getParameter(Pe),Be.getParameter(Ce)],depthBits:Be.getParameter(de),stencilBits:Be.getParameter(te),subpixelBits:Be.getParameter(re),extensions:Object.keys(qt).filter(function(Hn){return!!qt[Hn]}),maxAnisotropic:ar,maxDrawbuffers:Qr,maxColorAttachments:mi,pointSizeDims:Be.getParameter(ke),lineWidthDims:Be.getParameter(Ee),maxViewportDims:Be.getParameter(Ne),maxCombinedTextureUnits:Be.getParameter(ce),maxCubeMapSize:Be.getParameter(Nt),maxRenderbufferSize:Be.getParameter(it),maxTextureUnits:Be.getParameter(nt),maxTextureSize:Be.getParameter(Me),maxAttributes:Be.getParameter(Fe),maxVertexUniforms:Be.getParameter(ye),maxVertexTextureUnits:Be.getParameter(Ke),maxVaryingVectors:Be.getParameter(Ve),maxFragmentUniforms:Be.getParameter(gt),glsl:Be.getParameter(St),renderer:Be.getParameter(kt),vendor:Be.getParameter(Ye),version:Be.getParameter(Tt),readFloat:fi,npotTextureCube:wn}},br=function(Be){return Be instanceof Uint8Array||Be instanceof Uint16Array||Be instanceof Uint32Array||Be instanceof Int8Array||Be instanceof Int16Array||Be instanceof Int32Array||Be instanceof Float32Array||Be instanceof Float64Array||Be instanceof Uint8ClampedArray};function Ut(Be){return!!Be&&typeof Be=="object"&&Array.isArray(Be.shape)&&Array.isArray(Be.stride)&&typeof Be.offset=="number"&&Be.shape.length===Be.stride.length&&(Array.isArray(Be.data)||br(Be.data))}var Ie=function(Be){return Object.keys(Be).map(function(qt){return Be[qt]})},xe={shape:fe,flatten:ge};function Oe(Be,qt,ar){for(var Qr=0;Qr0){var hs;if(Array.isArray(_i[0])){Kn=ii(_i);for(var $i=1,Ui=1;Ui0){if(typeof $i[0]=="number"){var On=W.allocType(Yi.dtype,$i.length);_r(On,$i),Kn(On,ro),W.freeType(On)}else if(Array.isArray($i[0])||br($i[0])){na=ii($i);var In=nn($i,na,Yi.dtype);Kn(In,ro),W.freeType(In)}}}else if(Ut($i)){na=$i.shape;var Va=$i.stride,_s=0,ul=0,Qn=0,Mo=0;na.length===1?(_s=na[0],ul=1,Qn=Va[0],Mo=0):na.length===2&&(_s=na[0],ul=na[1],Qn=Va[0],Mo=Va[1]);var nl=Array.isArray($i.data)?Yi.dtype:Wt($i.data),pl=W.allocType(nl,_s*ul);Lr(pl,$i.data,_s,ul,Qn,Mo,$i.offset),Kn(pl,ro),W.freeType(pl)}return ga}return dn||ga(Wr),ga._reglType="buffer",ga._buffer=Yi,ga.subdata=hs,ar.profile&&(ga.stats=Yi.stats),ga.destroy=function(){ua(Yi)},ga}function Ni(){Ie(fi).forEach(function(Wr){Wr.buffer=Be.createBuffer(),Be.bindBuffer(Wr.type,Wr.buffer),Be.bufferData(Wr.type,Wr.persistentData||Wr.byteLength,Wr.usage)})}return ar.profile&&(qt.getTotalBufferSize=function(){var Wr=0;return Object.keys(fi).forEach(function(_i){Wr+=fi[_i].stats.size}),Wr}),{create:Hn,createStream:Bn,destroyStream:Ln,clear:function(){Ie(fi).forEach(ua),on.forEach(ua)},getBuffer:function(Wr){return Wr&&Wr._buffer instanceof pi?Wr._buffer:null},restore:Ni,_initBuffer:Ls}}var Ir=0,Gr=0,jr=1,yi=1,Ei=4,Vi=4,ti={points:Ir,point:Gr,lines:jr,line:yi,triangles:Ei,triangle:Vi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},en=0,Yr=1,oi=4,Bi=5120,an=5121,rn=5122,Fi=5123,Ri=5124,xn=5125,xi=34963,Xr=35040,ft=35044;function tr(Be,qt,ar,Qr){var mi={},fi=0,pi={uint8:an,uint16:Fi};qt.oes_element_index_uint&&(pi.uint32=xn);function on(Ni){this.id=fi++,mi[this.id]=this,this.buffer=Ni,this.primType=oi,this.vertCount=0,this.type=0}on.prototype.bind=function(){this.buffer.bind()};var Bn=[];function Ln(Ni){var Wr=Bn.pop();return Wr||(Wr=new on(ar.create(null,xi,!0,!1)._buffer)),Ls(Wr,Ni,Xr,-1,-1,0,0),Wr}function wn(Ni){Bn.push(Ni)}function Ls(Ni,Wr,_i,dn,En,Yi,ga){Ni.buffer.bind();var Kn;if(Wr){var hs=ga;!ga&&(!br(Wr)||Ut(Wr)&&!br(Wr.data))&&(hs=qt.oes_element_index_uint?xn:Fi),ar._initBuffer(Ni.buffer,Wr,_i,hs,3)}else Be.bufferData(xi,Yi,_i),Ni.buffer.dtype=Kn||an,Ni.buffer.usage=_i,Ni.buffer.dimension=3,Ni.buffer.byteLength=Yi;if(Kn=ga,!ga){switch(Ni.buffer.dtype){case an:case Bi:Kn=an;break;case Fi:case rn:Kn=Fi;break;case xn:case Ri:Kn=xn;break;default:}Ni.buffer.dtype=Kn}Ni.type=Kn;var $i=En;$i<0&&($i=Ni.buffer.byteLength,Kn===Fi?$i>>=1:Kn===xn&&($i>>=2)),Ni.vertCount=$i;var Ui=dn;if(dn<0){Ui=oi;var ro=Ni.buffer.dimension;ro===1&&(Ui=en),ro===2&&(Ui=Yr),ro===3&&(Ui=oi)}Ni.primType=Ui}function ua(Ni){Qr.elementsCount--,delete mi[Ni.id],Ni.buffer.destroy(),Ni.buffer=null}function Hn(Ni,Wr){var _i=ar.create(null,xi,!0),dn=new on(_i._buffer);Qr.elementsCount++;function En(Yi){if(!Yi)_i(),dn.primType=oi,dn.vertCount=0,dn.type=an;else if(typeof Yi=="number")_i(Yi),dn.primType=oi,dn.vertCount=Yi|0,dn.type=an;else{var ga=null,Kn=ft,hs=-1,$i=-1,Ui=0,ro=0;Array.isArray(Yi)||br(Yi)||Ut(Yi)?ga=Yi:("data"in Yi&&(ga=Yi.data),"usage"in Yi&&(Kn=Ci[Yi.usage]),"primitive"in Yi&&(hs=ti[Yi.primitive]),"count"in Yi&&($i=Yi.count|0),"type"in Yi&&(ro=pi[Yi.type]),"length"in Yi?Ui=Yi.length|0:(Ui=$i,ro===Fi||ro===rn?Ui*=2:(ro===xn||ro===Ri)&&(Ui*=4))),Ls(dn,ga,Kn,hs,$i,Ui,ro)}return En}return En(Ni),En._reglType="elements",En._elements=dn,En.subdata=function(Yi,ga){return _i.subdata(Yi,ga),En},En.destroy=function(){ua(dn)},En}return{create:Hn,createStream:Ln,destroyStream:wn,getElements:function(Ni){return typeof Ni=="function"&&Ni._elements instanceof on?Ni._elements:null},clear:function(){Ie(mi).forEach(ua)}}}var pr=new Float32Array(1),gr=new Uint32Array(pr.buffer),Zr=5123;function Ai(Be){for(var qt=W.allocType(Zr,Be.length),ar=0;ar>>31<<15,fi=(Qr<<1>>>24)-127,pi=Qr>>13&1023;if(fi<-24)qt[ar]=mi;else if(fi<-14){var on=-14-fi;qt[ar]=mi+(pi+1024>>on)}else fi>15?qt[ar]=mi+31744:qt[ar]=mi+(fi+15<<10)+pi}return qt}function Qi(Be){return Array.isArray(Be)||br(Be)}var ni=34467,Zi=3553,aa=34067,Mn=34069,Un=6408,Ga=6406,ma=6407,oa=6409,ka=6410,so=32854,Kr=32855,Ia=36194,Yo=32819,fa=32820,kn=33635,Ta=34042,ys=6402,uo=34041,ls=35904,$a=35906,fo=36193,mn=33776,ra=33777,wa=33778,ws=33779,Co=35986,Po=35987,ji=34798,gn=35840,Ps=35841,Ha=35842,Sn=35843,ao=36196,Ba=5121,Ko=5123,Qo=5125,Wi=5126,Sa=10242,Qa=10243,vn=10497,da=33071,la=33648,vo=10240,As=10241,ps=9728,co=9729,mo=9984,No=9985,jn=9986,Go=9987,Ys=33170,qs=4352,Ns=4353,Oa=4354,ha=34046,Vs=3317,Ya=37440,_n=37441,Vn=37443,wo=37444,Ra=33984,Xn=[mo,jn,No,Go],un=[0,oa,ka,ma,Un],$n={};$n[oa]=$n[Ga]=$n[ys]=1,$n[uo]=$n[ka]=2,$n[ma]=$n[ls]=3,$n[Un]=$n[$a]=4;function Ka(Be){return"[object "+Be+"]"}var qn=Ka("HTMLCanvasElement"),Eo=Ka("OffscreenCanvas"),Ja=Ka("CanvasRenderingContext2D"),lo=Ka("ImageBitmap"),eo=Ka("HTMLImageElement"),sa=Ka("HTMLVideoElement"),es=Object.keys(pe).concat([qn,Eo,Ja,lo,eo,sa]),Na=[];Na[Ba]=1,Na[Wi]=4,Na[fo]=2,Na[Ko]=2,Na[Qo]=4;var tn=[];tn[so]=2,tn[Kr]=2,tn[Ia]=2,tn[uo]=4,tn[mn]=.5,tn[ra]=.5,tn[wa]=1,tn[ws]=1,tn[Co]=.5,tn[Po]=1,tn[ji]=1,tn[gn]=.5,tn[Ps]=.25,tn[Ha]=.5,tn[Sn]=.25,tn[ao]=.5;function Pa(Be){return Array.isArray(Be)&&(Be.length===0||typeof Be[0]=="number")}function to(Be){if(!Array.isArray(Be))return!1;var qt=Be.length;return!(qt===0||!Qi(Be[0]))}function yo(Be){return Object.prototype.toString.call(Be)}function Jo(Be){return yo(Be)===qn}function Ao(Be){return yo(Be)===Eo}function Dn(Be){return yo(Be)===Ja}function _a(Be){return yo(Be)===lo}function Ws(Be){return yo(Be)===eo}function Ca(Be){return yo(Be)===sa}function Es(Be){if(!Be)return!1;var qt=yo(Be);return es.indexOf(qt)>=0?!0:Pa(Be)||to(Be)||Ut(Be)}function Ts(Be){return pe[Object.prototype.toString.call(Be)]|0}function Ho(Be,qt){var ar=qt.length;switch(Be.type){case Ba:case Ko:case Qo:case Wi:var Qr=W.allocType(Be.type,ar);Qr.set(qt),Be.data=Qr;break;case fo:Be.data=Ai(qt);break;default:}}function Wa(Be,qt){return W.allocType(Be.type===fo?Wi:Be.type,qt)}function To(Be,qt){Be.type===fo?(Be.data=Ai(qt),W.freeType(qt)):Be.data=qt}function ts(Be,qt,ar,Qr,mi,fi){for(var pi=Be.width,on=Be.height,Bn=Be.channels,Ln=pi*on*Bn,wn=Wa(Be,Ln),Ls=0,ua=0;ua=1;)on+=pi*Bn*Bn,Bn/=2;return on}else return pi*ar*Qr}function qa(Be,qt,ar,Qr,mi,fi,pi){var on={"don't care":qs,"dont care":qs,nice:Oa,fast:Ns},Bn={repeat:vn,clamp:da,mirror:la},Ln={nearest:ps,linear:co},wn=e({mipmap:Go,"nearest mipmap nearest":mo,"linear mipmap nearest":No,"nearest mipmap linear":jn,"linear mipmap linear":Go},Ln),Ls={none:0,browser:wo},ua={uint8:Ba,rgba4:Yo,rgb565:kn,"rgb5 a1":fa},Hn={alpha:Ga,luminance:oa,"luminance alpha":ka,rgb:ma,rgba:Un,rgba4:so,"rgb5 a1":Kr,rgb565:Ia},Ni={};qt.ext_srgb&&(Hn.srgb=ls,Hn.srgba=$a),qt.oes_texture_float&&(ua.float32=ua.float=Wi),qt.oes_texture_half_float&&(ua.float16=ua["half float"]=fo),qt.webgl_depth_texture&&(e(Hn,{depth:ys,"depth stencil":uo}),e(ua,{uint16:Ko,uint32:Qo,"depth stencil":Ta})),qt.webgl_compressed_texture_s3tc&&e(Ni,{"rgb s3tc dxt1":mn,"rgba s3tc dxt1":ra,"rgba s3tc dxt3":wa,"rgba s3tc dxt5":ws}),qt.webgl_compressed_texture_atc&&e(Ni,{"rgb atc":Co,"rgba atc explicit alpha":Po,"rgba atc interpolated alpha":ji}),qt.webgl_compressed_texture_pvrtc&&e(Ni,{"rgb pvrtc 4bppv1":gn,"rgb pvrtc 2bppv1":Ps,"rgba pvrtc 4bppv1":Ha,"rgba pvrtc 2bppv1":Sn}),qt.webgl_compressed_texture_etc1&&(Ni["rgb etc1"]=ao);var Wr=Array.prototype.slice.call(Be.getParameter(ni));Object.keys(Ni).forEach(function(ne){var Le=Ni[ne];Wr.indexOf(Le)>=0&&(Hn[ne]=Le)});var _i=Object.keys(Hn);ar.textureFormats=_i;var dn=[];Object.keys(Hn).forEach(function(ne){var Le=Hn[ne];dn[Le]=ne});var En=[];Object.keys(ua).forEach(function(ne){var Le=ua[ne];En[Le]=ne});var Yi=[];Object.keys(Ln).forEach(function(ne){var Le=Ln[ne];Yi[Le]=ne});var ga=[];Object.keys(wn).forEach(function(ne){var Le=wn[ne];ga[Le]=ne});var Kn=[];Object.keys(Bn).forEach(function(ne){var Le=Bn[ne];Kn[Le]=ne});var hs=_i.reduce(function(ne,Le){var Ze=Hn[Le];return Ze===oa||Ze===Ga||Ze===oa||Ze===ka||Ze===ys||Ze===uo||qt.ext_srgb&&(Ze===ls||Ze===$a)?ne[Ze]=Ze:Ze===Kr||Le.indexOf("rgba")>=0?ne[Ze]=Un:ne[Ze]=ma,ne},{});function $i(){this.internalformat=Un,this.format=Un,this.type=Ba,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=wo,this.width=0,this.height=0,this.channels=0}function Ui(ne,Le){ne.internalformat=Le.internalformat,ne.format=Le.format,ne.type=Le.type,ne.compressed=Le.compressed,ne.premultiplyAlpha=Le.premultiplyAlpha,ne.flipY=Le.flipY,ne.unpackAlignment=Le.unpackAlignment,ne.colorSpace=Le.colorSpace,ne.width=Le.width,ne.height=Le.height,ne.channels=Le.channels}function ro(ne,Le){if(!(typeof Le!="object"||!Le)){if("premultiplyAlpha"in Le&&(ne.premultiplyAlpha=Le.premultiplyAlpha),"flipY"in Le&&(ne.flipY=Le.flipY),"alignment"in Le&&(ne.unpackAlignment=Le.alignment),"colorSpace"in Le&&(ne.colorSpace=Ls[Le.colorSpace]),"type"in Le){var Ze=Le.type;ne.type=ua[Ze]}var Ct=ne.width,dr=ne.height,Er=ne.channels,lr=!1;"shape"in Le?(Ct=Le.shape[0],dr=Le.shape[1],Le.shape.length===3&&(Er=Le.shape[2],lr=!0)):("radius"in Le&&(Ct=dr=Le.radius),"width"in Le&&(Ct=Le.width),"height"in Le&&(dr=Le.height),"channels"in Le&&(Er=Le.channels,lr=!0)),ne.width=Ct|0,ne.height=dr|0,ne.channels=Er|0;var Je=!1;if("format"in Le){var ht=Le.format,bt=ne.internalformat=Hn[ht];ne.format=hs[bt],ht in ua&&("type"in Le||(ne.type=ua[ht])),ht in Ni&&(ne.compressed=!0),Je=!0}!lr&&Je?ne.channels=$n[ne.format]:lr&&!Je&&ne.channels!==un[ne.format]&&(ne.format=ne.internalformat=un[ne.channels])}}function na(ne){Be.pixelStorei(Ya,ne.flipY),Be.pixelStorei(_n,ne.premultiplyAlpha),Be.pixelStorei(Vn,ne.colorSpace),Be.pixelStorei(Vs,ne.unpackAlignment)}function On(){$i.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function In(ne,Le){var Ze=null;if(Es(Le)?Ze=Le:Le&&(ro(ne,Le),"x"in Le&&(ne.xOffset=Le.x|0),"y"in Le&&(ne.yOffset=Le.y|0),Es(Le.data)&&(Ze=Le.data)),Le.copy){var Ct=mi.viewportWidth,dr=mi.viewportHeight;ne.width=ne.width||Ct-ne.xOffset,ne.height=ne.height||dr-ne.yOffset,ne.needsCopy=!0}else if(!Ze)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(br(Ze))ne.channels=ne.channels||4,ne.data=Ze,!("type"in Le)&&ne.type===Ba&&(ne.type=Ts(Ze));else if(Pa(Ze))ne.channels=ne.channels||4,Ho(ne,Ze),ne.alignment=1,ne.needsFree=!0;else if(Ut(Ze)){var Er=Ze.data;!Array.isArray(Er)&&ne.type===Ba&&(ne.type=Ts(Er));var lr=Ze.shape,Je=Ze.stride,ht,bt,Kt,sr,Qt,ur;lr.length===3?(Kt=lr[2],ur=Je[2]):(Kt=1,ur=1),ht=lr[0],bt=lr[1],sr=Je[0],Qt=Je[1],ne.alignment=1,ne.width=ht,ne.height=bt,ne.channels=Kt,ne.format=ne.internalformat=un[Kt],ne.needsFree=!0,ts(ne,Er,sr,Qt,ur,Ze.offset)}else if(Jo(Ze)||Ao(Ze)||Dn(Ze))Jo(Ze)||Ao(Ze)?ne.element=Ze:ne.element=Ze.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(_a(Ze))ne.element=Ze,ne.width=Ze.width,ne.height=Ze.height,ne.channels=4;else if(Ws(Ze))ne.element=Ze,ne.width=Ze.naturalWidth,ne.height=Ze.naturalHeight,ne.channels=4;else if(Ca(Ze))ne.element=Ze,ne.width=Ze.videoWidth,ne.height=Ze.videoHeight,ne.channels=4;else if(to(Ze)){var er=ne.width||Ze[0].length,Ot=ne.height||Ze.length,Jt=ne.channels;Qi(Ze[0][0])?Jt=Jt||Ze[0][0].length:Jt=Jt||1;for(var Lt=xe.shape(Ze),Tr=1,Nr=0;Nr>=dr,Ze.height>>=dr,In(Ze,Ct[dr]),ne.mipmask|=1<=0&&!("faces"in Le)&&(ne.genMipmaps=!0)}if("mag"in Le){var Ct=Le.mag;ne.magFilter=Ln[Ct]}var dr=ne.wrapS,Er=ne.wrapT;if("wrap"in Le){var lr=Le.wrap;typeof lr=="string"?dr=Er=Bn[lr]:Array.isArray(lr)&&(dr=Bn[lr[0]],Er=Bn[lr[1]])}else{if("wrapS"in Le){var Je=Le.wrapS;dr=Bn[Je]}if("wrapT"in Le){var ht=Le.wrapT;Er=Bn[ht]}}if(ne.wrapS=dr,ne.wrapT=Er,"anisotropic"in Le){var bt=Le.anisotropic;ne.anisotropic=Le.anisotropic}if("mipmap"in Le){var Kt=!1;switch(typeof Le.mipmap){case"string":ne.mipmapHint=on[Le.mipmap],ne.genMipmaps=!0,Kt=!0;break;case"boolean":Kt=ne.genMipmaps=Le.mipmap;break;case"object":ne.genMipmaps=!1,Kt=!0;break;default:}Kt&&!("min"in Le)&&(ne.minFilter=mo)}}function bf(ne,Le){Be.texParameteri(Le,As,ne.minFilter),Be.texParameteri(Le,vo,ne.magFilter),Be.texParameteri(Le,Sa,ne.wrapS),Be.texParameteri(Le,Qa,ne.wrapT),qt.ext_texture_filter_anisotropic&&Be.texParameteri(Le,ha,ne.anisotropic),ne.genMipmaps&&(Be.hint(Ys,ne.mipmapHint),Be.generateMipmap(Le))}var Lf=0,Hu={},hf=ar.maxTextureUnits,yf=Array(hf).map(function(){return null});function Fl(ne){$i.call(this),this.mipmask=0,this.internalformat=Un,this.id=Lf++,this.refCount=1,this.target=ne,this.texture=Be.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Cu,pi.profile&&(this.stats={size:0})}function wf(ne){Be.activeTexture(Ra),Be.bindTexture(ne.target,ne.texture)}function cu(){var ne=yf[0];ne?Be.bindTexture(ne.target,ne.texture):Be.bindTexture(Zi,null)}function Y(ne){var Le=ne.texture,Ze=ne.unit,Ct=ne.target;Ze>=0&&(Be.activeTexture(Ra+Ze),Be.bindTexture(Ct,null),yf[Ze]=null),Be.deleteTexture(Le),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete Hu[ne.id],fi.textureCount--}e(Fl.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var Le=ne.unit;if(Le<0){for(var Ze=0;Ze0)continue;Ct.unit=-1}yf[Ze]=ne,Le=Ze;break}Le>=hf,pi.profile&&fi.maxTextureUnits>Qt)-Kt,ur.height=ur.height||(Ze.height>>Qt)-sr,wf(Ze),_s(ur,Zi,Kt,sr,Qt),cu(),Mo(ur),Ct}function Er(lr,Je){var ht=lr|0,bt=Je|0||ht;if(ht===Ze.width&&bt===Ze.height)return Ct;Ct.width=Ze.width=ht,Ct.height=Ze.height=bt,wf(Ze);for(var Kt=0;Ze.mipmask>>Kt;++Kt){var sr=ht>>Kt,Qt=bt>>Kt;if(!sr||!Qt)break;Be.texImage2D(Zi,Kt,Ze.format,sr,Qt,0,Ze.format,Ze.type,null)}return cu(),pi.profile&&(Ze.stats.size=Wo(Ze.internalformat,Ze.type,ht,bt,!1,!1)),Ct}return Ct(ne,Le),Ct.subimage=dr,Ct.resize=Er,Ct._reglType="texture2d",Ct._texture=Ze,pi.profile&&(Ct.stats=Ze.stats),Ct.destroy=function(){Ze.decRef()},Ct}function J(ne,Le,Ze,Ct,dr,Er){var lr=new Fl(aa);Hu[lr.id]=lr,fi.cubeCount++;var Je=new Array(6);function ht(sr,Qt,ur,er,Ot,Jt){var Lt,Tr=lr.texInfo;for(Cu.call(Tr),Lt=0;Lt<6;++Lt)Je[Lt]=Ql();if(typeof sr=="number"||!sr){var Nr=sr|0||1;for(Lt=0;Lt<6;++Lt)pl(Je[Lt],Nr,Nr)}else if(typeof sr=="object")if(Qt)Dl(Je[0],sr),Dl(Je[1],Qt),Dl(Je[2],ur),Dl(Je[3],er),Dl(Je[4],Ot),Dl(Je[5],Jt);else if(_f(Tr,sr),ro(lr,sr),"faces"in sr){var ci=sr.faces;for(Lt=0;Lt<6;++Lt)Ui(Je[Lt],lr),Dl(Je[Lt],ci[Lt])}else for(Lt=0;Lt<6;++Lt)Dl(Je[Lt],sr);for(Ui(lr,Je[0]),Tr.genMipmaps?lr.mipmask=(Je[0].width<<1)-1:lr.mipmask=Je[0].mipmask,lr.internalformat=Je[0].internalformat,ht.width=Je[0].width,ht.height=Je[0].height,wf(lr),Lt=0;Lt<6;++Lt)Fu(Je[Lt],Mn+Lt);for(bf(Tr,aa),cu(),pi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,Tr.genMipmaps,!0)),ht.format=dn[lr.internalformat],ht.type=En[lr.type],ht.mag=Yi[Tr.magFilter],ht.min=ga[Tr.minFilter],ht.wrapS=Kn[Tr.wrapS],ht.wrapT=Kn[Tr.wrapT],Lt=0;Lt<6;++Lt)kf(Je[Lt]);return ht}function bt(sr,Qt,ur,er,Ot){var Jt=ur|0,Lt=er|0,Tr=Ot|0,Nr=Qn();return Ui(Nr,lr),Nr.width=0,Nr.height=0,In(Nr,Qt),Nr.width=Nr.width||(lr.width>>Tr)-Jt,Nr.height=Nr.height||(lr.height>>Tr)-Lt,wf(lr),_s(Nr,Mn+sr,Jt,Lt,Tr),cu(),Mo(Nr),ht}function Kt(sr){var Qt=sr|0;if(Qt!==lr.width){ht.width=lr.width=Qt,ht.height=lr.height=Qt,wf(lr);for(var ur=0;ur<6;++ur)for(var er=0;lr.mipmask>>er;++er)Be.texImage2D(Mn+ur,er,lr.format,Qt>>er,Qt>>er,0,lr.format,lr.type,null);return cu(),pi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,!1,!0)),ht}}return ht(ne,Le,Ze,Ct,dr,Er),ht.subimage=bt,ht.resize=Kt,ht._reglType="textureCube",ht._texture=lr,pi.profile&&(ht.stats=lr.stats),ht.destroy=function(){lr.decRef()},ht}function O(){for(var ne=0;ne>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);else for(var dr=0;dr<6;++dr)Be.texImage2D(Mn+dr,Ct,Ze.internalformat,Ze.width>>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);bf(Ze.texInfo,Ze.target)})}function _e(){for(var ne=0;ne=0?kf=!0:Bn.indexOf(Cu)>=0&&(kf=!1))),("depthTexture"in Fl||"depthStencilTexture"in Fl)&&(yf=!!(Fl.depthTexture||Fl.depthStencilTexture)),"depth"in Fl&&(typeof Fl.depth=="boolean"?Fu=Fl.depth:(Lf=Fl.depth,mf=!1)),"stencil"in Fl&&(typeof Fl.stencil=="boolean"?mf=Fl.stencil:(Hu=Fl.stencil,Fu=!1)),"depthStencil"in Fl&&(typeof Fl.depthStencil=="boolean"?Fu=mf=Fl.depthStencil:(hf=Fl.depthStencil,Fu=!1,mf=!1))}var cu=null,Y=null,R=null,J=null;if(Array.isArray(Ql))cu=Ql.map(Ni);else if(Ql)cu=[Ni(Ql)];else for(cu=new Array(bf),nl=0;nl0&&(Mo.depth=In[0].depth,Mo.stencil=In[0].stencil,Mo.depthStencil=In[0].depthStencil),In[Qn]?In[Qn](Mo):In[Qn]=Ui(Mo)}return e(Va,{width:nl,height:nl,color:Cu})}function _s(ul){var Qn,Mo=ul|0;if(Mo===Va.width)return Va;var nl=Va.color;for(Qn=0;Qn=nl.byteLength?pl.subdata(nl):(pl.destroy(),Ui.buffers[ul]=null)),Ui.buffers[ul]||(pl=Ui.buffers[ul]=mi.create(Qn,Ss,!1,!0)),Mo.buffer=mi.getBuffer(pl),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1,Va[ul]=1}else mi.getBuffer(Qn)?(Mo.buffer=mi.getBuffer(Qn),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1):mi.getBuffer(Qn.buffer)?(Mo.buffer=mi.getBuffer(Qn.buffer),Mo.size=(+Qn.size||Mo.buffer.dimension)|0,Mo.normalized=!!Qn.normalized||!1,"type"in Qn?Mo.type=di[Qn.type]:Mo.type=Mo.buffer.dtype,Mo.offset=(Qn.offset||0)|0,Mo.stride=(Qn.stride||0)|0,Mo.divisor=(Qn.divisor||0)|0,Mo.state=1):"x"in Qn&&(Mo.x=+Qn.x||0,Mo.y=+Qn.y||0,Mo.z=+Qn.z||0,Mo.w=+Qn.w||0,Mo.state=2)}for(var Dl=0;Dl1)for(var na=0;naWr&&(Wr=_i.stats.uniformsCount)}),Wr},ar.getMaxAttributesCount=function(){var Wr=0;return wn.forEach(function(_i){_i.stats.attributesCount>Wr&&(Wr=_i.stats.attributesCount)}),Wr});function Ni(){mi={},fi={};for(var Wr=0;Wr16&&(ar=Pi(ar,Be.length*8));for(var Qr=Array(16),mi=Array(16),fi=0;fi<16;fi++)Qr[fi]=ar[fi]^909522486,mi[fi]=ar[fi]^1549556828;var pi=Pi(Qr.concat(Bs(qt)),512+qt.length*8);return At(Pi(mi.concat(pi),768))}function Ms(Be){for(var qt=Ro?"0123456789ABCDEF":"0123456789abcdef",ar="",Qr,mi=0;mi>>4&15)+qt.charAt(Qr&15);return ar}function jo(Be){for(var qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ar="",Qr=Be.length,mi=0;miBe.length*8?ar+=tl:ar+=qt.charAt(fi>>>6*(3-pi)&63);return ar}function Rs(Be,qt){var ar=qt.length,Qr=Array(),mi,fi,pi,on,Bn=Array(Math.ceil(Be.length/2));for(mi=0;mi0;){for(on=Array(),pi=0,mi=0;mi0||fi>0)&&(on[on.length]=fi);Qr[Qr.length]=pi,Bn=on}var Ln="";for(mi=Qr.length-1;mi>=0;mi--)Ln+=qt.charAt(Qr[mi]);var wn=Math.ceil(Be.length*8/(Math.log(qt.length)/Math.log(2)));for(mi=Ln.length;mi>>6&31,128|Qr&63):Qr<=65535?qt+=String.fromCharCode(224|Qr>>>12&15,128|Qr>>>6&63,128|Qr&63):Qr<=2097151&&(qt+=String.fromCharCode(240|Qr>>>18&7,128|Qr>>>12&63,128|Qr>>>6&63,128|Qr&63));return qt}function Bs(Be){for(var qt=Array(Be.length>>2),ar=0;ar>5]|=(Be.charCodeAt(ar/8)&255)<<24-ar%32;return qt}function At(Be){for(var qt="",ar=0;ar>5]>>>24-ar%32&255);return qt}function Gt(Be,qt){return Be>>>qt|Be<<32-qt}function wr(Be,qt){return Be>>>qt}function mr(Be,qt,ar){return Be&qt^~Be&ar}function Or(Be,qt,ar){return Be&qt^Be&ar^qt&ar}function gi(Be){return Gt(Be,2)^Gt(Be,13)^Gt(Be,22)}function Ti(Be){return Gt(Be,6)^Gt(Be,11)^Gt(Be,25)}function ki(Be){return Gt(Be,7)^Gt(Be,18)^wr(Be,3)}function Ji(Be){return Gt(Be,17)^Gt(Be,19)^wr(Be,10)}var Fn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Pi(Be,qt){var ar=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Qr=new Array(64),mi,fi,pi,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Wr;for(Be[qt>>5]|=128<<24-qt%32,Be[(qt+64>>9<<4)+15]=qt,ua=0;ua>16)+(qt>>16)+(ar>>16);return Qr<<16|ar&65535}function Li(Be){return Array.prototype.slice.call(Be)}function Si(Be){return Li(Be).join("")}function Gn(Be){var qt=Be&&Be.cache,ar=0,Qr=[],mi=[],fi=[];function pi(Ni,Wr){var _i=Wr&&Wr.stable;if(!_i){for(var dn=0;dn0&&(Ni.push(En,"="),Ni.push.apply(Ni,Li(arguments)),Ni.push(";")),En}return e(Wr,{def:dn,toString:function(){return Si([_i.length>0?"var "+_i.join(",")+";":"",Si(Ni)])}})}function Bn(){var Ni=on(),Wr=on(),_i=Ni.toString,dn=Wr.toString;function En(Yi,ga){Wr(Yi,ga,"=",Ni.def(Yi,ga),";")}return e(function(){Ni.apply(Ni,Li(arguments))},{def:Ni.def,entry:Ni,exit:Wr,save:En,set:function(Yi,ga,Kn){En(Yi,ga),Ni(Yi,ga,"=",Kn,";")},toString:function(){return _i()+dn()}})}function Ln(){var Ni=Si(arguments),Wr=Bn(),_i=Bn(),dn=Wr.toString,En=_i.toString;return e(Wr,{then:function(){return Wr.apply(Wr,Li(arguments)),this},else:function(){return _i.apply(_i,Li(arguments)),this},toString:function(){var Yi=En();return Yi&&(Yi="else{"+Yi+"}"),Si(["if(",Ni,"){",dn(),"}",Yi])}})}var wn=on(),Ls={};function ua(Ni,Wr){var _i=[];function dn(){var hs="a"+_i.length;return _i.push(hs),hs}Wr=Wr||0;for(var En=0;En":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},zi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Xi={cw:ze,ccw:Xe};function pn(Be){return Array.isArray(Be)||br(Be)||Ut(Be)}function sn(Be){return Be.sort(function(qt,ar){return qt===ee?-1:ar===ee?1:qt=1,Qr>=2,qt)}else if(ar===Ks){var mi=Be.data;return new bi(mi.thisDep,mi.contextDep,mi.propDep,qt)}else{if(ar===dl)return new bi(!1,!1,!1,qt);if(ar===xl){for(var fi=!1,pi=!1,on=!1,Bn=0;Bn=1&&(pi=!0),wn>=2&&(on=!0)}else Ln.type===Ks&&(fi=fi||Ln.data.thisDep,pi=pi||Ln.data.contextDep,on=on||Ln.data.propDep)}return new bi(fi,pi,on,qt)}else return new bi(ar===Cs,ar===is,ar===zn,qt)}}var js=new bi(!1,!1,!1,function(){});function El(Be,qt,ar,Qr,mi,fi,pi,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Wr){var _i=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};ar.ext_blend_minmax&&(dn.min=Qe,dn.max=ot);var En=ar.angle_instanced_arrays,Yi=ar.webgl_draw_buffers,ga=ar.oes_vertex_array_object,Kn={dirty:!0,profile:Wr.profile},hs={},$i=[],Ui={},ro={};function na(Je){return Je.replace(".","_")}function On(Je,ht,bt){var Kt=na(Je);$i.push(Je),hs[Kt]=Kn[Kt]=!!bt,Ui[Kt]=ht}function In(Je,ht,bt){var Kt=na(Je);$i.push(Je),Array.isArray(bt)?(Kn[Kt]=bt.slice(),hs[Kt]=bt.slice()):Kn[Kt]=hs[Kt]=bt,ro[Kt]=ht}function Va(Je){return!!isNaN(Je)}On(Ol,hn),On(bl,Mi),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Vl,"blendFuncSeparate",[Cr,cr,Cr,cr]),On(ja,Yn,!0),In(ns,"depthFunc",ui),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),On(ll,si),In(il,"cullFace",se),In(zl,zl,Xe),In(Ml,Ml,1),On(Rl,Fo),In(Al,"polygonOffset",[0,0]),On(Ll,vl),On(ms,Us),In(Os,"sampleCoverage",[1,!1]),On(Xl,Zn),In(Gl,"stencilMask",-1),In(Ul,"stencilFunc",[jt,0,-1]),In(le,"stencilOpSeparate",[Z,_t,_t,_t]),In(w,"stencilOpSeparate",[se,_t,_t,_t]),On(q,Ua),In(Q,"scissor",[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]),In(ee,ee,[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]);var _s={gl:Be,context:ua,strings:qt,next:hs,current:Kn,draw:Ls,elements:fi,buffer:mi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:Bn,framebuffer:on,extensions:ar,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:vi,blendFuncs:fn,blendEquations:dn,stencilOps:zi,glTypes:di,orientationType:Xi};Yi&&(ul.backBuffer=[se],ul.drawBuffer=M(Qr.maxDrawbuffers,function(Je){return Je===0?[0]:M(Je,function(ht){return Oi+ht})}));var Qn=0;function Mo(){var Je=Gn({cache:Ni}),ht=Je.link,bt=Je.global;Je.id=Qn++,Je.batchId="0";var Kt=ht(_s),sr=Je.shared={props:"a0"};Object.keys(_s).forEach(function(Jt){sr[Jt]=bt.def(Kt,".",Jt)});var Qt=Je.next={},ur=Je.current={};Object.keys(ro).forEach(function(Jt){Array.isArray(Kn[Jt])&&(Qt[Jt]=bt.def(sr.next,".",Jt),ur[Jt]=bt.def(sr.current,".",Jt))});var er=Je.constants={};Object.keys(ul).forEach(function(Jt){er[Jt]=bt.def(JSON.stringify(ul[Jt]))}),Je.invoke=function(Jt,Lt){switch(Lt.type){case va:var Tr=["this",sr.context,sr.props,Je.batchId];return Jt.def(ht(Lt.data),".call(",Tr.slice(0,Math.max(Lt.data.length+1,4)),")");case zn:return Jt.def(sr.props,Lt.data);case is:return Jt.def(sr.context,Lt.data);case Cs:return Jt.def("this",Lt.data);case Ks:return Lt.data.append(Je,Jt),Lt.data.ref;case dl:return Lt.data.toString();case xl:return Lt.data.map(function(Nr){return Je.invoke(Jt,Nr)})}},Je.attribCache={};var Ot={};return Je.scopeAttrib=function(Jt){var Lt=qt.id(Jt);if(Lt in Ot)return Ot[Lt];var Tr=Ln.scope[Lt];Tr||(Tr=Ln.scope[Lt]=new _i);var Nr=Ot[Lt]=ht(Tr);return Nr},Je}function nl(Je){var ht=Je.static,bt=Je.dynamic,Kt;if(ue in ht){var sr=!!ht[ue];Kt=no(function(ur,er){return sr}),Kt.enable=sr}else if(ue in bt){var Qt=bt[ue];Kt=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}return Kt}function pl(Je,ht){var bt=Je.static,Kt=Je.dynamic;if(Ge in bt){var sr=bt[Ge];return sr?(sr=on.getFramebuffer(sr),no(function(ur,er){var Ot=ur.link(sr),Jt=ur.shared;er.set(Jt.framebuffer,".next",Ot);var Lt=Jt.context;return er.set(Lt,"."+He,Ot+".width"),er.set(Lt,"."+lt,Ot+".height"),Ot})):no(function(ur,er){var Ot=ur.shared;er.set(Ot.framebuffer,".next","null");var Jt=Ot.context;return er.set(Jt,"."+He,Jt+"."+nr),er.set(Jt,"."+lt,Jt+"."+fr),"null"})}else if(Ge in Kt){var Qt=Kt[Ge];return Xo(Qt,function(ur,er){var Ot=ur.invoke(er,Qt),Jt=ur.shared,Lt=Jt.framebuffer,Tr=er.def(Lt,".getFramebuffer(",Ot,")");er.set(Lt,".next",Tr);var Nr=Jt.context;return er.set(Nr,"."+He,Tr+"?"+Tr+".width:"+Nr+"."+nr),er.set(Nr,"."+lt,Tr+"?"+Tr+".height:"+Nr+"."+fr),Tr})}else return null}function Dl(Je,ht,bt){var Kt=Je.static,sr=Je.dynamic;function Qt(Ot){if(Ot in Kt){var Jt=Kt[Ot],Lt=!0,Tr=Jt.x|0,Nr=Jt.y|0,ci,Cn;return"width"in Jt?ci=Jt.width|0:Lt=!1,"height"in Jt?Cn=Jt.height|0:Lt=!1,new bi(!Lt&&ht&&ht.thisDep,!Lt&&ht&&ht.contextDep,!Lt&&ht&&ht.propDep,function(Xa,ca){var Tn=Xa.shared.context,Pn=ci;"width"in Jt||(Pn=ca.def(Tn,".",He,"-",Tr));var Nn=Cn;return"height"in Jt||(Nn=ca.def(Tn,".",lt,"-",Nr)),[Tr,Nr,Pn,Nn]})}else if(Ot in sr){var Ki=sr[Ot],yn=Xo(Ki,function(Xa,ca){var Tn=Xa.invoke(ca,Ki),Pn=Xa.shared.context,Nn=ca.def(Tn,".x|0"),xa=ca.def(Tn,".y|0"),Zo=ca.def('"width" in ',Tn,"?",Tn,".width|0:","(",Pn,".",He,"-",Nn,")"),ru=ca.def('"height" in ',Tn,"?",Tn,".height|0:","(",Pn,".",lt,"-",xa,")");return[Nn,xa,Zo,ru]});return ht&&(yn.thisDep=yn.thisDep||ht.thisDep,yn.contextDep=yn.contextDep||ht.contextDep,yn.propDep=yn.propDep||ht.propDep),yn}else return ht?new bi(ht.thisDep,ht.contextDep,ht.propDep,function(Xa,ca){var Tn=Xa.shared.context;return[0,0,ca.def(Tn,".",He),ca.def(Tn,".",lt)]}):null}var ur=Qt(ee);if(ur){var er=ur;ur=new bi(ur.thisDep,ur.contextDep,ur.propDep,function(Ot,Jt){var Lt=er.append(Ot,Jt),Tr=Ot.shared.context;return Jt.set(Tr,"."+tt,Lt[2]),Jt.set(Tr,"."+pt,Lt[3]),Lt})}return{viewport:ur,scissor_box:Qt(Q)}}function Fu(Je,ht){var bt=Je.static,Kt=typeof bt[mt]=="string"&&typeof bt[et]=="string";if(Kt){if(Object.keys(ht.dynamic).length>0)return null;var sr=ht.static,Qt=Object.keys(sr);if(Qt.length>0&&typeof sr[Qt[0]]=="number"){for(var ur=[],er=0;er"+Nn+"?"+Lt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",ci,"(",Lt,".buffer)){",Xa,"=",Cn,".createStream(",Rr,",",Lt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Lt,".buffer);","}",ca,'="type" in ',Lt,"?",Nr.glTypes,"[",Lt,".type]:",Xa,".dtype;",Ki.normalized,"=!!",Lt,".normalized;");function Tn(Pn){Jt(Ki[Pn],"=",Lt,".",Pn,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),Jt("}}"),Jt.exit("if(",Ki.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Ki}sr[Qt]=Xo(ur,er)}),sr}function bf(Je){var ht=Je.static,bt=Je.dynamic,Kt={};return Object.keys(ht).forEach(function(sr){var Qt=ht[sr];Kt[sr]=no(function(ur,er){return typeof Qt=="number"||typeof Qt=="boolean"?""+Qt:ur.link(Qt)})}),Object.keys(bt).forEach(function(sr){var Qt=bt[sr];Kt[sr]=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}),Kt}function Lf(Je,ht,bt,Kt,sr){var Qt=Je.static,ur=Je.dynamic,er=Fu(Je,ht),Ot=pl(Je,sr),Jt=Dl(Je,Ot,sr),Lt=Ql(Je,sr),Tr=kf(Je,sr),Nr=mf(Je,sr,er);function ci(Tn){var Pn=Jt[Tn];Pn&&(Tr[Tn]=Pn)}ci(ee),ci(na(Q));var Cn=Object.keys(Tr).length>0,Ki={framebuffer:Ot,draw:Lt,shader:Nr,state:Tr,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Ki.profile=nl(Je,sr),Ki.uniforms=Cu(bt,sr),Ki.drawVAO=Ki.scopeVAO=Lt.vao,!Ki.drawVAO&&Nr.program&&!er&&ar.angle_instanced_arrays&&Lt.static.elements){var yn=!0,Xa=Nr.program.attributes.map(function(Tn){var Pn=ht.static[Tn];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Lt.static.elements}));Ki.drawVAO=new bi(null,null,null,function(Tn,Pn){return Tn.link(ca)}),Ki.useVAO=!0}}return er?Ki.useVAO=!0:Ki.attributes=_f(ht,sr),Ki.context=bf(Kt,sr),Ki}function Hu(Je,ht,bt){var Kt=Je.shared,sr=Kt.context,Qt=Je.scope();Object.keys(bt).forEach(function(ur){ht.save(sr,"."+ur);var er=bt[ur],Ot=er.append(Je,ht);Array.isArray(Ot)?Qt(sr,".",ur,"=[",Ot.join(),"];"):Qt(sr,".",ur,"=",Ot,";")}),ht(Qt)}function hf(Je,ht,bt,Kt){var sr=Je.shared,Qt=sr.gl,ur=sr.framebuffer,er;Yi&&(er=ht.def(sr.extensions,".webgl_draw_buffers"));var Ot=Je.constants,Jt=Ot.drawBuffer,Lt=Ot.backBuffer,Tr;bt?Tr=bt.append(Je,ht):Tr=ht.def(ur,".next"),Kt||ht("if(",Tr,"!==",ur,".cur){"),ht("if(",Tr,"){",Qt,".bindFramebuffer(",$r,",",Tr,".framebuffer);"),Yi&&ht(er,".drawBuffersWEBGL(",Jt,"[",Tr,".colorAttachments.length]);"),ht("}else{",Qt,".bindFramebuffer(",$r,",null);"),Yi&&ht(er,".drawBuffersWEBGL(",Lt,");"),ht("}",ur,".cur=",Tr,";"),Kt||ht("}")}function yf(Je,ht,bt){var Kt=Je.shared,sr=Kt.gl,Qt=Je.current,ur=Je.next,er=Kt.current,Ot=Kt.next,Jt=Je.cond(er,".dirty");$i.forEach(function(Lt){var Tr=na(Lt);if(!(Tr in bt.state)){var Nr,ci;if(Tr in ur){Nr=ur[Tr],ci=Qt[Tr];var Cn=M(Kn[Tr].length,function(yn){return Jt.def(Nr,"[",yn,"]")});Jt(Je.cond(Cn.map(function(yn,Xa){return yn+"!=="+ci+"["+Xa+"]"}).join("||")).then(sr,".",ro[Tr],"(",Cn,");",Cn.map(function(yn,Xa){return ci+"["+Xa+"]="+yn}).join(";"),";"))}else{Nr=Jt.def(Ot,".",Tr);var Ki=Je.cond(Nr,"!==",er,".",Tr);Jt(Ki),Tr in Ui?Ki(Je.cond(Nr).then(sr,".enable(",Ui[Tr],");").else(sr,".disable(",Ui[Tr],");"),er,".",Tr,"=",Nr,";"):Ki(sr,".",ro[Tr],"(",Nr,");",er,".",Tr,"=",Nr,";")}}}),Object.keys(bt.state).length===0&&Jt(er,".dirty=false;"),ht(Jt)}function Fl(Je,ht,bt,Kt){var sr=Je.shared,Qt=Je.current,ur=sr.current,er=sr.gl,Ot;sn(Object.keys(bt)).forEach(function(Jt){var Lt=bt[Jt];if(!(Kt&&!Kt(Lt))){var Tr=Lt.append(Je,ht);if(Ui[Jt]){var Nr=Ui[Jt];xo(Lt)?(Ot=Je.link(Tr,{stable:!0}),ht(Je.cond(Ot).then(er,".enable(",Nr,");").else(er,".disable(",Nr,");")),ht(ur,".",Jt,"=",Ot,";")):(ht(Je.cond(Tr).then(er,".enable(",Nr,");").else(er,".disable(",Nr,");")),ht(ur,".",Jt,"=",Tr,";"))}else if(Qi(Tr)){var ci=Qt[Jt];ht(er,".",ro[Jt],"(",Tr,");",Tr.map(function(Cn,Ki){return ci+"["+Ki+"]="+Cn}).join(";"),";")}else xo(Lt)?(Ot=Je.link(Tr,{stable:!0}),ht(er,".",ro[Jt],"(",Ot,");",ur,".",Jt,"=",Ot,";")):ht(er,".",ro[Jt],"(",Tr,");",ur,".",Jt,"=",Tr,";")}})}function wf(Je,ht){En&&(Je.instancing=ht.def(Je.shared.extensions,".angle_instanced_arrays"))}function cu(Je,ht,bt,Kt,sr){var Qt=Je.shared,ur=Je.stats,er=Qt.current,Ot=Qt.timer,Jt=bt.profile;function Lt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Tr,Nr;function ci(Tn){Tr=ht.def(),Tn(Tr,"=",Lt(),";"),typeof sr=="string"?Tn(ur,".count+=",sr,";"):Tn(ur,".count++;"),Hn&&(Kt?(Nr=ht.def(),Tn(Nr,"=",Ot,".getNumPendingQueries();")):Tn(Ot,".beginQuery(",ur,");"))}function Cn(Tn){Tn(ur,".cpuTime+=",Lt(),"-",Tr,";"),Hn&&(Kt?Tn(Ot,".pushScopeStats(",Nr,",",Ot,".getNumPendingQueries(),",ur,");"):Tn(Ot,".endQuery();"))}function Ki(Tn){var Pn=ht.def(er,".profile");ht(er,".profile=",Tn,";"),ht.exit(er,".profile=",Pn,";")}var yn;if(Jt){if(xo(Jt)){Jt.enable?(ci(ht),Cn(ht.exit),Ki("true")):Ki("false");return}yn=Jt.append(Je,ht),Ki(yn)}else yn=ht.def(er,".profile");var Xa=Je.block();ci(Xa),ht("if(",yn,"){",Xa,"}");var ca=Je.block();Cn(ca),ht.exit("if(",yn,"){",ca,"}")}function Y(Je,ht,bt,Kt,sr){var Qt=Je.shared;function ur(Ot){switch(Ot){case au:case ou:case Wu:return 2;case Sl:case Pu:case Qu:return 3;case Yl:case iu:case Ju:return 4;default:return 1}}function er(Ot,Jt,Lt){var Tr=Qt.gl,Nr=ht.def(Ot,".location"),ci=ht.def(Qt.attributes,"[",Nr,"]"),Cn=Lt.state,Ki=Lt.buffer,yn=[Lt.x,Lt.y,Lt.z,Lt.w],Xa=["buffer","normalized","offset","stride"];function ca(){ht("if(!",ci,".buffer){",Tr,".enableVertexAttribArray(",Nr,");}");var Pn=Lt.type,Nn;if(Lt.size?Nn=ht.def(Lt.size,"||",Jt):Nn=Jt,ht("if(",ci,".type!==",Pn,"||",ci,".size!==",Nn,"||",Xa.map(function(Zo){return ci+"."+Zo+"!=="+Lt[Zo]}).join("||"),"){",Tr,".bindBuffer(",Rr,",",Ki,".buffer);",Tr,".vertexAttribPointer(",[Nr,Nn,Pn,Lt.normalized,Lt.stride,Lt.offset],");",ci,".type=",Pn,";",ci,".size=",Nn,";",Xa.map(function(Zo){return ci+"."+Zo+"="+Lt[Zo]+";"}).join(""),"}"),En){var xa=Lt.divisor;ht("if(",ci,".divisor!==",xa,"){",Je.instancing,".vertexAttribDivisorANGLE(",[Nr,xa],");",ci,".divisor=",xa,";}")}}function Tn(){ht("if(",ci,".buffer){",Tr,".disableVertexAttribArray(",Nr,");",ci,".buffer=null;","}if(",ta.map(function(Pn,Nn){return ci+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Tr,".vertexAttrib4f(",Nr,",",yn,");",ta.map(function(Pn,Nn){return ci+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?Tn():(ht("if(",Cn,"===",ia,"){"),ca(),ht("}else{"),Tn(),ht("}"))}Kt.forEach(function(Ot){var Jt=Ot.name,Lt=bt.attributes[Jt],Tr;if(Lt){if(!sr(Lt))return;Tr=Lt.append(Je,ht)}else{if(!sr(js))return;var Nr=Je.scopeAttrib(Jt);Tr={},Object.keys(new _i).forEach(function(ci){Tr[ci]=ht.def(Nr,".",ci)})}er(Je.link(Ot),ur(Ot.info.type),Tr)})}function R(Je,ht,bt,Kt,sr,Qt){for(var ur=Je.shared,er=ur.gl,Ot,Jt=0;Jt1){for(var yu=[],Du=[],vu=0;vu>1)",Ki],");")}function xa(){bt(yn,".drawArraysInstancedANGLE(",[Nr,ci,Cn,Ki],");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}function Pn(){function Nn(){bt(Qt+".drawElements("+[Nr,Cn,Xa,ci+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){bt(Qt+".drawArrays("+[Nr,ci,Cn]+");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}En&&(typeof Ki!="number"||Ki>=0)?typeof Ki=="string"?(bt("if(",Ki,">0){"),Tn(),bt("}else if(",Ki,"<0){"),Pn(),bt("}")):Tn():Pn()}function O(Je,ht,bt,Kt,sr){var Qt=Mo(),ur=Qt.proc("body",sr);return En&&(Qt.instancing=ur.def(Qt.shared.extensions,".angle_instanced_arrays")),Je(Qt,ur,bt,Kt),Qt.compile().body}function K(Je,ht,bt,Kt){wf(Je,ht),bt.useVAO?bt.drawVAO?ht(Je.shared.vao,".setVAO(",bt.drawVAO.append(Je,ht),");"):ht(Je.shared.vao,".setVAO(",Je.shared.vao,".targetVAO);"):(ht(Je.shared.vao,".setVAO(null);"),Y(Je,ht,bt,Kt.attributes,function(){return!0})),R(Je,ht,bt,Kt.uniforms,function(){return!0},!1),J(Je,ht,ht,bt)}function _e(Je,ht){var bt=Je.proc("draw",1);wf(Je,bt),Hu(Je,bt,ht.context),hf(Je,bt,ht.framebuffer),yf(Je,bt,ht),Fl(Je,bt,ht.state),cu(Je,bt,ht,!1,!0);var Kt=ht.shader.progVar.append(Je,bt);if(bt(Je.shared.gl,".useProgram(",Kt,".program);"),ht.shader.program)K(Je,bt,ht,ht.shader.program);else{bt(Je.shared.vao,".setVAO(null);");var sr=Je.global.def("{}"),Qt=bt.def(Kt,".id"),ur=bt.def(sr,"[",Qt,"]");bt(Je.cond(ur).then(ur,".call(this,a0);").else(ur,"=",sr,"[",Qt,"]=",Je.link(function(er){return O(K,Je,ht,er,1)}),"(",Kt,");",ur,".call(this,a0);"))}Object.keys(ht.state).length>0&&bt(Je.shared.current,".dirty=true;"),Je.shared.vao&&bt(Je.shared.vao,".setVAO(null);")}function ne(Je,ht,bt,Kt){Je.batchId="a1",wf(Je,ht);function sr(){return!0}Y(Je,ht,bt,Kt.attributes,sr),R(Je,ht,bt,Kt.uniforms,sr,!1),J(Je,ht,ht,bt)}function Le(Je,ht,bt,Kt){wf(Je,ht);var sr=bt.contextDep,Qt=ht.def(),ur="a0",er="a1",Ot=ht.def();Je.shared.props=Ot,Je.batchId=Qt;var Jt=Je.scope(),Lt=Je.scope();ht(Jt.entry,"for(",Qt,"=0;",Qt,"<",er,";++",Qt,"){",Ot,"=",ur,"[",Qt,"];",Lt,"}",Jt.exit);function Tr(Xa){return Xa.contextDep&&sr||Xa.propDep}function Nr(Xa){return!Tr(Xa)}if(bt.needsContext&&Hu(Je,Lt,bt.context),bt.needsFramebuffer&&hf(Je,Lt,bt.framebuffer),Fl(Je,Lt,bt.state,Tr),bt.profile&&Tr(bt.profile)&&cu(Je,Lt,bt,!1,!0),Kt)bt.useVAO?bt.drawVAO?Tr(bt.drawVAO)?Lt(Je.shared.vao,".setVAO(",bt.drawVAO.append(Je,Lt),");"):Jt(Je.shared.vao,".setVAO(",bt.drawVAO.append(Je,Jt),");"):Jt(Je.shared.vao,".setVAO(",Je.shared.vao,".targetVAO);"):(Jt(Je.shared.vao,".setVAO(null);"),Y(Je,Jt,bt,Kt.attributes,Nr),Y(Je,Lt,bt,Kt.attributes,Tr)),R(Je,Jt,bt,Kt.uniforms,Nr,!1),R(Je,Lt,bt,Kt.uniforms,Tr,!0),J(Je,Jt,Lt,bt);else{var ci=Je.global.def("{}"),Cn=bt.shader.progVar.append(Je,Lt),Ki=Lt.def(Cn,".id"),yn=Lt.def(ci,"[",Ki,"]");Lt(Je.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",ci,"[",Ki,"]=",Je.link(function(Xa){return O(ne,Je,bt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Qt,"],",Qt,");")}}function Ze(Je,ht){var bt=Je.proc("batch",2);Je.batchId="0",wf(Je,bt);var Kt=!1,sr=!0;Object.keys(ht.context).forEach(function(ci){Kt=Kt||ht.context[ci].propDep}),Kt||(Hu(Je,bt,ht.context),sr=!1);var Qt=ht.framebuffer,ur=!1;Qt?(Qt.propDep?Kt=ur=!0:Qt.contextDep&&Kt&&(ur=!0),ur||hf(Je,bt,Qt)):hf(Je,bt,null),ht.state.viewport&&ht.state.viewport.propDep&&(Kt=!0);function er(ci){return ci.contextDep&&Kt||ci.propDep}yf(Je,bt,ht),Fl(Je,bt,ht.state,function(ci){return!er(ci)}),(!ht.profile||!er(ht.profile))&&cu(Je,bt,ht,!1,"a1"),ht.contextDep=Kt,ht.needsContext=sr,ht.needsFramebuffer=ur;var Ot=ht.shader.progVar;if(Ot.contextDep&&Kt||Ot.propDep)Le(Je,bt,ht,null);else{var Jt=Ot.append(Je,bt);if(bt(Je.shared.gl,".useProgram(",Jt,".program);"),ht.shader.program)Le(Je,bt,ht,ht.shader.program);else{bt(Je.shared.vao,".setVAO(null);");var Lt=Je.global.def("{}"),Tr=bt.def(Jt,".id"),Nr=bt.def(Lt,"[",Tr,"]");bt(Je.cond(Nr).then(Nr,".call(this,a0,a1);").else(Nr,"=",Lt,"[",Tr,"]=",Je.link(function(ci){return O(Le,Je,ht,ci,2)}),"(",Jt,");",Nr,".call(this,a0,a1);"))}}Object.keys(ht.state).length>0&&bt(Je.shared.current,".dirty=true;"),Je.shared.vao&&bt(Je.shared.vao,".setVAO(null);")}function Ct(Je,ht){var bt=Je.proc("scope",3);Je.batchId="a2";var Kt=Je.shared,sr=Kt.current;if(Hu(Je,bt,ht.context),ht.framebuffer&&ht.framebuffer.append(Je,bt),sn(Object.keys(ht.state)).forEach(function(er){var Ot=ht.state[er],Jt=Ot.append(Je,bt);Qi(Jt)?Jt.forEach(function(Lt,Tr){Va(Lt)?bt.set(Je.next[er],"["+Tr+"]",Lt):bt.set(Je.next[er],"["+Tr+"]",Je.link(Lt,{stable:!0}))}):xo(Ot)?bt.set(Kt.next,"."+er,Je.link(Jt,{stable:!0})):bt.set(Kt.next,"."+er,Jt)}),cu(Je,bt,ht,!0,!0),[Ft,kr,or,Vr,ir].forEach(function(er){var Ot=ht.draw[er];if(Ot){var Jt=Ot.append(Je,bt);Va(Jt)?bt.set(Kt.draw,"."+er,Jt):bt.set(Kt.draw,"."+er,Je.link(Jt),{stable:!0})}}),Object.keys(ht.uniforms).forEach(function(er){var Ot=ht.uniforms[er].append(Je,bt);Array.isArray(Ot)&&(Ot="["+Ot.map(function(Jt){return Va(Jt)?Jt:Je.link(Jt,{stable:!0})})+"]"),bt.set(Kt.uniforms,"["+Je.link(qt.id(er),{stable:!0})+"]",Ot)}),Object.keys(ht.attributes).forEach(function(er){var Ot=ht.attributes[er].append(Je,bt),Jt=Je.scopeAttrib(er);Object.keys(new _i).forEach(function(Lt){bt.set(Jt,"."+Lt,Ot[Lt])})}),ht.scopeVAO){var Qt=ht.scopeVAO.append(Je,bt);Va(Qt)?bt.set(Kt.vao,".targetVAO",Qt):bt.set(Kt.vao,".targetVAO",Je.link(Qt,{stable:!0}))}function ur(er){var Ot=ht.shader[er];if(Ot){var Jt=Ot.append(Je,bt);Va(Jt)?bt.set(Kt.shader,"."+er,Jt):bt.set(Kt.shader,"."+er,Je.link(Jt,{stable:!0}))}}ur(et),ur(mt),Object.keys(ht.state).length>0&&(bt(sr,".dirty=true;"),bt.exit(sr,".dirty=true;")),bt("a1(",Je.shared.context,",a0,",Je.batchId,");")}function dr(Je){if(!(typeof Je!="object"||Qi(Je))){for(var ht=Object.keys(Je),bt=0;bt=0;--O){var K=_s[O];K&&K(Ni,null,0)}ar.flush(),wn&&wn.update()}function Dl(){!nl&&_s.length>0&&(nl=d.next(pl))}function Fu(){nl&&(d.cancel(pl),nl=null)}function mf(O){O.preventDefault(),mi=!0,Fu(),ul.forEach(function(K){K()})}function Ql(O){ar.getError(),mi=!1,fi.restore(),hs.restore(),En.restore(),$i.restore(),Ui.restore(),ro.restore(),ga.restore(),wn&&wn.restore(),na.procs.refresh(),Dl(),Qn.forEach(function(K){K()})}Va&&(Va.addEventListener(Au,mf,!1),Va.addEventListener(Tu,Ql,!1));function kf(){_s.length=0,Fu(),Va&&(Va.removeEventListener(Au,mf),Va.removeEventListener(Tu,Ql)),hs.clear(),ro.clear(),Ui.clear(),ga.clear(),$i.clear(),Yi.clear(),En.clear(),wn&&wn.clear(),Mo.forEach(function(O){O()})}function Cu(O){function K(Qt){var ur=e({},Qt);delete ur.uniforms,delete ur.attributes,delete ur.context,delete ur.vao,"stencil"in ur&&ur.stencil.op&&(ur.stencil.opBack=ur.stencil.opFront=ur.stencil.op,delete ur.stencil.op);function er(Ot){if(Ot in ur){var Jt=ur[Ot];delete ur[Ot],Object.keys(Jt).forEach(function(Lt){ur[Ot+"."+Lt]=Jt[Lt]})}}return er("blend"),er("depth"),er("cull"),er("stencil"),er("polygonOffset"),er("scissor"),er("sample"),"vao"in Qt&&(ur.vao=Qt.vao),ur}function _e(Qt,ur){var er={},Ot={};return Object.keys(Qt).forEach(function(Jt){var Lt=Qt[Jt];if(h.isDynamic(Lt)){Ot[Jt]=h.unbox(Lt,Jt);return}else if(ur&&Array.isArray(Lt)){for(var Tr=0;Tr0)return Je.call(this,Kt(Qt|0),Qt|0)}else if(Array.isArray(Qt)){if(Qt.length)return Je.call(this,Qt,Qt.length)}else return lr.call(this,Qt)}return e(sr,{stats:dr,destroy:function(){Er.destroy()}})}var _f=ro.setFBO=Cu({framebuffer:h.define.call(null,uf,"framebuffer")});function bf(O,K){var _e=0;na.procs.poll();var ne=K.color;ne&&(ar.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),_e|=Gu),"depth"in K&&(ar.clearDepth(+K.depth),_e|=rf),"stencil"in K&&(ar.clearStencil(K.stencil|0),_e|=ds),ar.clear(_e)}function Lf(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)_f(e({framebuffer:O.framebuffer.faces[K]},O),bf);else _f(O,bf);else bf(null,O)}function Hu(O){_s.push(O);function K(){var _e=vf(_s,O);function ne(){var Le=vf(_s,ne);_s[Le]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Fu()}_s[_e]=ne}return Dl(),{cancel:K}}function hf(){var O=In.viewport,K=In.scissor_box;O[0]=O[1]=K[0]=K[1]=0,Ni.viewportWidth=Ni.framebufferWidth=Ni.drawingBufferWidth=O[2]=K[2]=ar.drawingBufferWidth,Ni.viewportHeight=Ni.framebufferHeight=Ni.drawingBufferHeight=O[3]=K[3]=ar.drawingBufferHeight}function yf(){Ni.tick+=1,Ni.time=wf(),hf(),na.procs.poll()}function Fl(){$i.refresh(),hf(),na.procs.refresh(),wn&&wn.update()}function wf(){return(p()-Ls)/1e3}Fl();function cu(O,K){var _e;switch(O){case"frame":return Hu(K);case"lost":_e=ul;break;case"restore":_e=Qn;break;case"destroy":_e=Mo;break;default:}return _e.push(K),{cancel:function(){for(var ne=0;ne<_e.length;++ne)if(_e[ne]===K){_e[ne]=_e[_e.length-1],_e.pop();return}}}}function Y(){return Bn}function R(O){Object.entries(O).forEach(function(K){Bn[K[0]]=K[1]})}var J=e(Cu,{clear:Lf,prop:h.define.bind(null,uf),context:h.define.bind(null,df),this:h.define.bind(null,Ef),draw:Cu({}),buffer:function(O){return En.create(O,Wl,!1,!1)},elements:function(O){return Yi.create(O,!1)},texture:$i.create2D,cube:$i.createCube,renderbuffer:Ui.create,framebuffer:ro.create,framebufferCube:ro.createCube,vao:ga.createVAO,attributes:Qr,frame:Hu,on:cu,limits:dn,hasExtension:function(O){return dn.extensions.indexOf(O.toLowerCase())>=0},read:On,destroy:kf,_gl:ar,_refresh:Fl,poll:function(){yf(),wn&&wn.update()},now:wf,stats:on,getCachedCode:Y,preloadCachedCode:R});return qt.onDone(null,J),J}return fc})});var A8=Te((N_r,SNe)=>{"use strict";var UUt=FX(),VUt=TNe();SNe.exports=function(t,r,n){var i=t._fullLayout,a=!0;return i._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(n);return}if(!(o.pick&&!i._has("parcoords"))){try{o.regl=VUt({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:n||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||UUt({container:i._glcontainer.node()}),a}});var xK=Te((_K,LNe)=>{"use strict";var MNe=_Y(),ENe=KY(),GUt=pqe(),kNe=ANe(),gK=ei(),HUt=Sm().selectMode,WUt=A8(),jUt=lc(),XUt=EU(),ZUt=vY().styleTextSelection,CNe={};function YUt(e,t,r,n){var i=e._size,a=e.width*n,o=e.height*n,s=i.l*n,u=i.b*n,l=i.r*n,f=i.t*n,c=i.w*n,h=i.h*n;return[s+t.domain[0]*c,u+r.domain[0]*h,a-l-(1-t.domain[1])*c,o-f-(1-r.domain[1])*h]}var _K=LNe.exports=function(t,r,n){if(n.length){var i=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,u,l;if(a){var f=WUt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],CNe);if(!f){a.init();return}var c=a.count,h=i._glcanvas.data()[0].regl;if(XUt(t,r,n),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=GUt(h)),a.line2d===!0&&(a.line2d=ENe(h)),a.scatter2d===!0&&(a.scatter2d=MNe(h)),a.fill2d===!0&&(a.fill2d=ENe(h)),a.glText===!0)for(a.glText=new Array(c),u=0;ua.glText.length){var d=c-a.glText.length;for(u=0;uae&&(isNaN(re[be])||isNaN(re[be+1]));)be-=2;W.positions=re.slice(ae,be+2)}return W}),a.line2d.update(a.lineOptions)),a.error2d){var b=(a.errorXOptions||[]).concat(a.errorYOptions||[]);a.error2d.update(b)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=gK.repeat(null,c),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(W,re){var ae=n[re];if(!(!W||!ae||!ae[0]||!ae[0].trace)){var be=ae[0],Pe=be.trace,Ce=be.t,de=a.lineOptions[re],te,ke,Ee=[];Pe._ownfill&&Ee.push(re),Pe._nexttrace&&Ee.push(re+1),Ee.length&&(a.fillOrder[re]=Ee);var Me=[],Ne=de&&de.positions||Ce.positions,Fe,ye;if(Pe.fill==="tozeroy"){for(Fe=0;FeFe&&isNaN(Ne[ye+1]);)ye-=2;Ne[Fe+1]!==0&&(Me=[Ne[Fe],0]),Me=Me.concat(Ne.slice(Fe,ye+2)),Ne[ye+1]!==0&&(Me=Me.concat([Ne[ye],0]))}else if(Pe.fill==="tozerox"){for(Fe=0;FeFe&&isNaN(Ne[ye]);)ye-=2;Ne[Fe]!==0&&(Me=[0,Ne[Fe+1]]),Me=Me.concat(Ne.slice(Fe,ye+2)),Ne[ye]!==0&&(Me=Me.concat([0,Ne[ye+1]]))}else if(Pe.fill==="toself"||Pe.fill==="tonext"){for(Me=[],te=0,W.splitNull=!0,ke=0;ke-1;for(u=0;u{PNe.exports=function(t,r,n){"use strict";var i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt,Nt,it,Ke,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr;return i=t.gl,a=t.context,o=t.strings,s=t.next,u=t.current,l=t.draw,f=t.elements,c=t.buffer,h=t.shader,d=t.attributes,p=t.vao,x=t.uniforms,b=t.framebuffer,v=t.extensions,k=t.timer,E=t.isBufferArgs,T=s.blend_color,L=u.blend_color,_=s.blend_equation,C=u.blend_equation,M=s.blend_func,m=u.blend_func,P=s.depth_range,A=u.depth_range,B=s.colorMask,F=u.colorMask,U=s.polygonOffset_offset,G=u.polygonOffset_offset,j=s.sample_coverage,H=u.sample_coverage,N=s.stencil_func,W=u.stencil_func,re=s.stencil_opFront,ae=u.stencil_opFront,be=s.stencil_opBack,Pe=u.stencil_opBack,Ce=s.scissor_box,de=u.scissor_box,te=s.viewport,ke=u.viewport,Ee={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Me={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ne={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Fe={add:32774,subtract:32778,"reverse subtract":32779},ye={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ve={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},ce={cw:2304,ccw:2305},Ye=s.blend_color,nt=u.blend_color,gt=s.blend_equation,Nt=u.blend_equation,it=s.blend_func,Ke=u.blend_func,kt=s.depth_range,Tt=u.depth_range,St=s.colorMask,Dt=u.colorMask,Zt=s.polygonOffset_offset,Et=u.polygonOffset_offset,Ae=s.sample_coverage,at=u.sample_coverage,wt=s.stencil_func,vt=u.stencil_func,st=s.stencil_opFront,Ue=u.stencil_opFront,rt=s.stencil_opBack,$e=u.stencil_opBack,zt=s.scissor_box,Yt=u.scissor_box,hr=s.viewport,yr=u.viewport,{poll:function(){var br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii;u.dirty=!1,Ut=s.dither,Ie=s.blend_enable,xe=s.depth_enable,Oe=s.cull_enable,Re=s.polygonOffset_enable,De=s.sample_alpha,ct=s.sample_enable,ge=s.stencil_enable,fe=s.scissor_enable,pe=s.depth_func,dt=u.depth_func,It=s.depth_mask,Pt=u.depth_mask,rr=s.cull_face,Hr=u.cull_face,Dr=s.frontFace,Mr=u.frontFace,Fr=s.lineWidth,di=u.lineWidth,Di=s.stencil_mask,Ii=u.stencil_mask,br=b.next,br!==b.cur&&(br?i.bindFramebuffer(36160,br.framebuffer):i.bindFramebuffer(36160,null),b.cur=br),Ut!==u.dither&&(Ut?i.enable(3024):i.disable(3024),u.dither=Ut),Ie!==u.blend_enable&&(Ie?i.enable(3042):i.disable(3042),u.blend_enable=Ie),xe!==u.depth_enable&&(xe?i.enable(2929):i.disable(2929),u.depth_enable=xe),Oe!==u.cull_enable&&(Oe?i.enable(2884):i.disable(2884),u.cull_enable=Oe),Re!==u.polygonOffset_enable&&(Re?i.enable(32823):i.disable(32823),u.polygonOffset_enable=Re),De!==u.sample_alpha&&(De?i.enable(32926):i.disable(32926),u.sample_alpha=De),ct!==u.sample_enable&&(ct?i.enable(32928):i.disable(32928),u.sample_enable=ct),ge!==u.stencil_enable&&(ge?i.enable(2960):i.disable(2960),u.stencil_enable=ge),fe!==u.scissor_enable&&(fe?i.enable(3089):i.disable(3089),u.scissor_enable=fe),(Ye[0]!==nt[0]||Ye[1]!==nt[1]||Ye[2]!==nt[2]||Ye[3]!==nt[3])&&(i.blendColor(Ye[0],Ye[1],Ye[2],Ye[3]),nt[0]=Ye[0],nt[1]=Ye[1],nt[2]=Ye[2],nt[3]=Ye[3]),(gt[0]!==Nt[0]||gt[1]!==Nt[1])&&(i.blendEquationSeparate(gt[0],gt[1]),Nt[0]=gt[0],Nt[1]=gt[1]),(it[0]!==Ke[0]||it[1]!==Ke[1]||it[2]!==Ke[2]||it[3]!==Ke[3])&&(i.blendFuncSeparate(it[0],it[1],it[2],it[3]),Ke[0]=it[0],Ke[1]=it[1],Ke[2]=it[2],Ke[3]=it[3]),pe!==dt&&(i.depthFunc(pe),u.depth_func=pe),(kt[0]!==Tt[0]||kt[1]!==Tt[1])&&(i.depthRange(kt[0],kt[1]),Tt[0]=kt[0],Tt[1]=kt[1]),It!==Pt&&(i.depthMask(It),u.depth_mask=It),(St[0]!==Dt[0]||St[1]!==Dt[1]||St[2]!==Dt[2]||St[3]!==Dt[3])&&(i.colorMask(St[0],St[1],St[2],St[3]),Dt[0]=St[0],Dt[1]=St[1],Dt[2]=St[2],Dt[3]=St[3]),rr!==Hr&&(i.cullFace(rr),u.cull_face=rr),Dr!==Mr&&(i.frontFace(Dr),u.frontFace=Dr),Fr!==di&&(i.lineWidth(Fr),u.lineWidth=Fr),(Zt[0]!==Et[0]||Zt[1]!==Et[1])&&(i.polygonOffset(Zt[0],Zt[1]),Et[0]=Zt[0],Et[1]=Zt[1]),(Ae[0]!==at[0]||Ae[1]!==at[1])&&(i.sampleCoverage(Ae[0],Ae[1]),at[0]=Ae[0],at[1]=Ae[1]),Di!==Ii&&(i.stencilMask(Di),u.stencil_mask=Di),(wt[0]!==vt[0]||wt[1]!==vt[1]||wt[2]!==vt[2])&&(i.stencilFunc(wt[0],wt[1],wt[2]),vt[0]=wt[0],vt[1]=wt[1],vt[2]=wt[2]),(st[0]!==Ue[0]||st[1]!==Ue[1]||st[2]!==Ue[2]||st[3]!==Ue[3])&&(i.stencilOpSeparate(st[0],st[1],st[2],st[3]),Ue[0]=st[0],Ue[1]=st[1],Ue[2]=st[2],Ue[3]=st[3]),(rt[0]!==$e[0]||rt[1]!==$e[1]||rt[2]!==$e[2]||rt[3]!==$e[3])&&(i.stencilOpSeparate(rt[0],rt[1],rt[2],rt[3]),$e[0]=rt[0],$e[1]=rt[1],$e[2]=rt[2],$e[3]=rt[3]),(zt[0]!==Yt[0]||zt[1]!==Yt[1]||zt[2]!==Yt[2]||zt[3]!==Yt[3])&&(i.scissor(zt[0],zt[1],zt[2],zt[3]),Yt[0]=zt[0],Yt[1]=zt[1],Yt[2]=zt[2],Yt[3]=zt[3]),(hr[0]!==yr[0]||hr[1]!==yr[1]||hr[2]!==yr[2]||hr[3]!==yr[3])&&(i.viewport(hr[0],hr[1],hr[2],hr[3]),yr[0]=hr[0],yr[1]=hr[1],yr[2]=hr[2],yr[3]=hr[3])},refresh:function(){var br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn;u.dirty=!1,xe=s.dither,Oe=s.blend_enable,Re=s.depth_enable,De=s.cull_enable,ct=s.polygonOffset_enable,ge=s.sample_alpha,fe=s.sample_enable,pe=s.stencil_enable,dt=s.scissor_enable,It=s.depth_func,Pt=u.depth_func,rr=s.depth_mask,Hr=u.depth_mask,Dr=s.cull_face,Mr=u.cull_face,Fr=s.frontFace,di=u.frontFace,Di=s.lineWidth,Ii=u.lineWidth,Ci=s.stencil_mask,nn=u.stencil_mask,br=b.next,br?i.bindFramebuffer(36160,br.framebuffer):i.bindFramebuffer(36160,null),b.cur=br,Ut=d,Ie=0;for(var ii=0;ii{zNe.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt,Nt,it,Ke,kt;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,x=t.elements,b=t.buffer,v=t.shader,k=t.attributes,E=t.vao,T=t.uniforms,L=t.framebuffer,_=t.extensions,C=t.timer,M=t.isBufferArgs,m=h.blend_color,P=d.blend_color,A=h.blend_equation,B=d.blend_equation,F=h.blend_func,U=d.blend_func,G=h.depth_range,j=d.depth_range,H=h.colorMask,N=d.colorMask,W=h.polygonOffset_offset,re=d.polygonOffset_offset,ae=h.sample_coverage,be=d.sample_coverage,Pe=h.stencil_func,Ce=d.stencil_func,de=h.stencil_opFront,te=d.stencil_opFront,ke=h.stencil_opBack,Ee=d.stencil_opBack,Me=h.scissor_box,Ne=d.scissor_box,Fe=h.viewport,ye=d.viewport,Ve={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ce={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ye={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},nt={add:32774,subtract:32778,"reverse subtract":32779},gt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Nt={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},it={cw:2304,ccw:2305},Ke={},kt={},{draw:function(Tt){var St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie;if(St=_.angle_instanced_arrays,Dt=Tt.framebuffer,Zt=L.getFramebuffer(Dt),Et=L.next,L.next=Zt,Ae=f.framebufferWidth,f.framebufferWidth=Zt?Zt.width:f.drawingBufferWidth,at=f.framebufferHeight,f.framebufferHeight=Zt?Zt.height:f.drawingBufferHeight,Zt!==L.cur&&(Zt?l.bindFramebuffer(36160,Zt.framebuffer):l.bindFramebuffer(36160,null),L.cur=Zt),d.dirty){var xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri;xe=h.dither,xe!==d.dither&&(xe?l.enable(3024):l.disable(3024),d.dither=xe),Oe=h.blend_enable,Oe!==d.blend_enable&&(Oe?l.enable(3042):l.disable(3042),d.blend_enable=Oe),Re=m[0],De=m[1],ct=m[2],ge=m[3],(Re!==P[0]||De!==P[1]||ct!==P[2]||ge!==P[3])&&(l.blendColor(Re,De,ct,ge),P[0]=Re,P[1]=De,P[2]=ct,P[3]=ge),fe=A[0],pe=A[1],(fe!==B[0]||pe!==B[1])&&(l.blendEquationSeparate(fe,pe),B[0]=fe,B[1]=pe),dt=F[0],It=F[1],Pt=F[2],rr=F[3],(dt!==U[0]||It!==U[1]||Pt!==U[2]||rr!==U[3])&&(l.blendFuncSeparate(dt,It,Pt,rr),U[0]=dt,U[1]=It,U[2]=Pt,U[3]=rr),Hr=h.depth_enable,Hr!==d.depth_enable&&(Hr?l.enable(2929):l.disable(2929),d.depth_enable=Hr),Dr=h.depth_func,Dr!==d.depth_func&&(l.depthFunc(Dr),d.depth_func=Dr),Mr=G[0],Fr=G[1],(Mr!==j[0]||Fr!==j[1])&&(l.depthRange(Mr,Fr),j[0]=Mr,j[1]=Fr),di=h.depth_mask,di!==d.depth_mask&&(l.depthMask(di),d.depth_mask=di),Di=H[0],Ii=H[1],Ci=H[2],nn=H[3],(Di!==N[0]||Ii!==N[1]||Ci!==N[2]||nn!==N[3])&&(l.colorMask(Di,Ii,Ci,nn),N[0]=Di,N[1]=Ii,N[2]=Ci,N[3]=nn),ii=h.cull_enable,ii!==d.cull_enable&&(ii?l.enable(2884):l.disable(2884),d.cull_enable=ii),wi=h.cull_face,wi!==d.cull_face&&(l.cullFace(wi),d.cull_face=wi),Gi=h.frontFace,Gi!==d.frontFace&&(l.frontFace(Gi),d.frontFace=Gi),Bt=h.lineWidth,Bt!==d.lineWidth&&(l.lineWidth(Bt),d.lineWidth=Bt),yt=h.polygonOffset_enable,yt!==d.polygonOffset_enable&&(yt?l.enable(32823):l.disable(32823),d.polygonOffset_enable=yt),Vt=W[0],Wt=W[1],(Vt!==re[0]||Wt!==re[1])&&(l.polygonOffset(Vt,Wt),re[0]=Vt,re[1]=Wt),_r=h.sample_alpha,_r!==d.sample_alpha&&(_r?l.enable(32926):l.disable(32926),d.sample_alpha=_r),Lr=h.sample_enable,Lr!==d.sample_enable&&(Lr?l.enable(32928):l.disable(32928),d.sample_enable=Lr),Ur=ae[0],Ir=ae[1],(Ur!==be[0]||Ir!==be[1])&&(l.sampleCoverage(Ur,Ir),be[0]=Ur,be[1]=Ir),Gr=h.stencil_enable,Gr!==d.stencil_enable&&(Gr?l.enable(2960):l.disable(2960),d.stencil_enable=Gr),jr=h.stencil_mask,jr!==d.stencil_mask&&(l.stencilMask(jr),d.stencil_mask=jr),yi=Pe[0],Ei=Pe[1],Vi=Pe[2],(yi!==Ce[0]||Ei!==Ce[1]||Vi!==Ce[2])&&(l.stencilFunc(yi,Ei,Vi),Ce[0]=yi,Ce[1]=Ei,Ce[2]=Vi),ti=de[0],en=de[1],Yr=de[2],oi=de[3],(ti!==te[0]||en!==te[1]||Yr!==te[2]||oi!==te[3])&&(l.stencilOpSeparate(ti,en,Yr,oi),te[0]=ti,te[1]=en,te[2]=Yr,te[3]=oi),Bi=ke[0],an=ke[1],rn=ke[2],Fi=ke[3],(Bi!==Ee[0]||an!==Ee[1]||rn!==Ee[2]||Fi!==Ee[3])&&(l.stencilOpSeparate(Bi,an,rn,Fi),Ee[0]=Bi,Ee[1]=an,Ee[2]=rn,Ee[3]=Fi),Ri=h.scissor_enable,Ri!==d.scissor_enable&&(Ri?l.enable(3089):l.disable(3089),d.scissor_enable=Ri)}wt=f.framebufferWidth,vt=f.framebufferHeight,st=f.viewportWidth,f.viewportWidth=wt,Ue=f.viewportHeight,f.viewportHeight=vt,l.viewport(0,0,wt,vt),ye[0]=0,ye[1]=0,ye[2]=wt,ye[3]=vt,rt=f.framebufferWidth,$e=f.framebufferHeight,l.scissor(0,0,rt,$e),Ne[0]=0,Ne[1]=0,Ne[2]=rt,Ne[3]=$e,zt=d.profile,zt&&(Yt=performance.now(),r.count++),hr=v.frag,yr=v.vert,br=v.program(yr,hr),l.useProgram(br.program),E.setVAO(null),Ut=br.id,Ie=Ke[Ut],Ie?Ie.call(this,Tt):(Ie=Ke[Ut]=n(br),Ie.call(this,Tt)),d.dirty=!0,E.setVAO(null),L.next=Et,f.framebufferWidth=Ae,f.framebufferHeight=at,f.viewportWidth=st,f.viewportHeight=Ue,zt&&(r.cpuTime+=performance.now()-Yt)},scope:function(Tt,St,Dt){var Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De;Zt=Tt.framebuffer,Et=L.getFramebuffer(Zt),Ae=L.next,L.next=Et,at=f.framebufferWidth,f.framebufferWidth=Et?Et.width:f.drawingBufferWidth,wt=f.framebufferHeight,f.framebufferHeight=Et?Et.height:f.drawingBufferHeight,vt=f.framebufferWidth,st=f.framebufferHeight,Ue=f.viewportWidth,f.viewportWidth=vt,rt=f.viewportHeight,f.viewportHeight=st,$e=Fe[0],Fe[0]=i,zt=Fe[1],Fe[1]=a,Yt=Fe[2],Fe[2]=vt,hr=Fe[3],Fe[3]=st,yr=f.framebufferWidth,br=f.framebufferHeight,Ut=Me[0],Me[0]=o,Ie=Me[1],Me[1]=s,xe=Me[2],Me[2]=yr,Oe=Me[3],Me[3]=br,Re=d.profile,Re&&(De=performance.now(),r.count++),d.dirty=!0,St(f,Tt,Dt),L.next=Ae,f.framebufferWidth=at,f.framebufferHeight=wt,f.viewportWidth=Ue,f.viewportHeight=rt,Fe[0]=$e,Fe[1]=zt,Fe[2]=Yt,Fe[3]=hr,Me[0]=Ut,Me[1]=Ie,Me[2]=xe,Me[3]=Oe,Re&&(r.cpuTime+=performance.now()-De),d.dirty=!0},batch:function(Tt,St){var Dt,Zt,Et,Ae,at,wt,vt,st;if(Dt=_.angle_instanced_arrays,d.dirty){var Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei;Ue=h.dither,Ue!==d.dither&&(Ue?l.enable(3024):l.disable(3024),d.dither=Ue),rt=h.blend_enable,rt!==d.blend_enable&&(rt?l.enable(3042):l.disable(3042),d.blend_enable=rt),$e=m[0],zt=m[1],Yt=m[2],hr=m[3],($e!==P[0]||zt!==P[1]||Yt!==P[2]||hr!==P[3])&&(l.blendColor($e,zt,Yt,hr),P[0]=$e,P[1]=zt,P[2]=Yt,P[3]=hr),yr=A[0],br=A[1],(yr!==B[0]||br!==B[1])&&(l.blendEquationSeparate(yr,br),B[0]=yr,B[1]=br),Ut=F[0],Ie=F[1],xe=F[2],Oe=F[3],(Ut!==U[0]||Ie!==U[1]||xe!==U[2]||Oe!==U[3])&&(l.blendFuncSeparate(Ut,Ie,xe,Oe),U[0]=Ut,U[1]=Ie,U[2]=xe,U[3]=Oe),Re=h.depth_enable,Re!==d.depth_enable&&(Re?l.enable(2929):l.disable(2929),d.depth_enable=Re),De=h.depth_func,De!==d.depth_func&&(l.depthFunc(De),d.depth_func=De),ct=G[0],ge=G[1],(ct!==j[0]||ge!==j[1])&&(l.depthRange(ct,ge),j[0]=ct,j[1]=ge),fe=h.depth_mask,fe!==d.depth_mask&&(l.depthMask(fe),d.depth_mask=fe),pe=H[0],dt=H[1],It=H[2],Pt=H[3],(pe!==N[0]||dt!==N[1]||It!==N[2]||Pt!==N[3])&&(l.colorMask(pe,dt,It,Pt),N[0]=pe,N[1]=dt,N[2]=It,N[3]=Pt),rr=h.cull_enable,rr!==d.cull_enable&&(rr?l.enable(2884):l.disable(2884),d.cull_enable=rr),Hr=h.cull_face,Hr!==d.cull_face&&(l.cullFace(Hr),d.cull_face=Hr),Dr=h.frontFace,Dr!==d.frontFace&&(l.frontFace(Dr),d.frontFace=Dr),Mr=h.lineWidth,Mr!==d.lineWidth&&(l.lineWidth(Mr),d.lineWidth=Mr),Fr=h.polygonOffset_enable,Fr!==d.polygonOffset_enable&&(Fr?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Fr),di=W[0],Di=W[1],(di!==re[0]||Di!==re[1])&&(l.polygonOffset(di,Di),re[0]=di,re[1]=Di),Ii=h.sample_alpha,Ii!==d.sample_alpha&&(Ii?l.enable(32926):l.disable(32926),d.sample_alpha=Ii),Ci=h.sample_enable,Ci!==d.sample_enable&&(Ci?l.enable(32928):l.disable(32928),d.sample_enable=Ci),nn=ae[0],ii=ae[1],(nn!==be[0]||ii!==be[1])&&(l.sampleCoverage(nn,ii),be[0]=nn,be[1]=ii),wi=h.stencil_enable,wi!==d.stencil_enable&&(wi?l.enable(2960):l.disable(2960),d.stencil_enable=wi),Gi=h.stencil_mask,Gi!==d.stencil_mask&&(l.stencilMask(Gi),d.stencil_mask=Gi),Bt=Pe[0],yt=Pe[1],Vt=Pe[2],(Bt!==Ce[0]||yt!==Ce[1]||Vt!==Ce[2])&&(l.stencilFunc(Bt,yt,Vt),Ce[0]=Bt,Ce[1]=yt,Ce[2]=Vt),Wt=de[0],_r=de[1],Lr=de[2],Ur=de[3],(Wt!==te[0]||_r!==te[1]||Lr!==te[2]||Ur!==te[3])&&(l.stencilOpSeparate(Wt,_r,Lr,Ur),te[0]=Wt,te[1]=_r,te[2]=Lr,te[3]=Ur),Ir=ke[0],Gr=ke[1],jr=ke[2],yi=ke[3],(Ir!==Ee[0]||Gr!==Ee[1]||jr!==Ee[2]||yi!==Ee[3])&&(l.stencilOpSeparate(Ir,Gr,jr,yi),Ee[0]=Ir,Ee[1]=Gr,Ee[2]=jr,Ee[3]=yi),Ei=h.scissor_enable,Ei!==d.scissor_enable&&(Ei?l.enable(3089):l.disable(3089),d.scissor_enable=Ei)}Zt=d.profile,Zt&&(Et=performance.now(),r.count+=St),Ae=v.frag,at=v.vert,wt=v.program(at,Ae),l.useProgram(wt.program),E.setVAO(null),vt=wt.id,st=kt[vt],st?st.call(this,Tt,St):(st=kt[vt]=u(wt),st.call(this,Tt,St)),d.dirty=!0,E.setVAO(null),Zt&&(r.cpuTime+=performance.now()-Et)}}}});var M8=Te((G_r,INe)=>{INe.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt;return a=t.gl,o=t.context,s=t.strings,u=t.next,l=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,x=t.vao,b=t.uniforms,v=t.framebuffer,k=t.extensions,E=t.timer,T=t.isBufferArgs,L=u.blend_color,_=l.blend_color,C=u.blend_equation,M=l.blend_equation,m=u.blend_func,P=l.blend_func,A=u.depth_range,B=l.depth_range,F=u.colorMask,U=l.colorMask,G=u.polygonOffset_offset,j=l.polygonOffset_offset,H=u.sample_coverage,N=l.sample_coverage,W=u.stencil_func,re=l.stencil_func,ae=u.stencil_opFront,be=l.stencil_opFront,Pe=u.stencil_opBack,Ce=l.stencil_opBack,de=u.scissor_box,te=l.scissor_box,ke=u.viewport,Ee=l.viewport,Me={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ne={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Fe={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},ye={add:32774,subtract:32778,"reverse subtract":32779},Ve={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ce={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ye={cw:2304,ccw:2305},nt={},gt={},{draw:function(Nt){var it,Ke,kt,Tt,St,Dt,Zt,Et,Ae;if(it=k.angle_instanced_arrays,Ke=v.next,Ke!==v.cur&&(Ke?a.bindFramebuffer(36160,Ke.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ke),l.dirty){var at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr;at=u.dither,at!==l.dither&&(at?a.enable(3024):a.disable(3024),l.dither=at),wt=u.blend_enable,wt!==l.blend_enable&&(wt?a.enable(3042):a.disable(3042),l.blend_enable=wt),vt=L[0],st=L[1],Ue=L[2],rt=L[3],(vt!==_[0]||st!==_[1]||Ue!==_[2]||rt!==_[3])&&(a.blendColor(vt,st,Ue,rt),_[0]=vt,_[1]=st,_[2]=Ue,_[3]=rt),$e=C[0],zt=C[1],($e!==M[0]||zt!==M[1])&&(a.blendEquationSeparate($e,zt),M[0]=$e,M[1]=zt),Yt=m[0],hr=m[1],yr=m[2],br=m[3],(Yt!==P[0]||hr!==P[1]||yr!==P[2]||br!==P[3])&&(a.blendFuncSeparate(Yt,hr,yr,br),P[0]=Yt,P[1]=hr,P[2]=yr,P[3]=br),Ut=u.depth_enable,Ut!==l.depth_enable&&(Ut?a.enable(2929):a.disable(2929),l.depth_enable=Ut),Ie=u.depth_func,Ie!==l.depth_func&&(a.depthFunc(Ie),l.depth_func=Ie),xe=A[0],Oe=A[1],(xe!==B[0]||Oe!==B[1])&&(a.depthRange(xe,Oe),B[0]=xe,B[1]=Oe),Re=u.depth_mask,Re!==l.depth_mask&&(a.depthMask(Re),l.depth_mask=Re),De=F[0],ct=F[1],ge=F[2],fe=F[3],(De!==U[0]||ct!==U[1]||ge!==U[2]||fe!==U[3])&&(a.colorMask(De,ct,ge,fe),U[0]=De,U[1]=ct,U[2]=ge,U[3]=fe),pe=u.cull_enable,pe!==l.cull_enable&&(pe?a.enable(2884):a.disable(2884),l.cull_enable=pe),dt=u.cull_face,dt!==l.cull_face&&(a.cullFace(dt),l.cull_face=dt),It=u.frontFace,It!==l.frontFace&&(a.frontFace(It),l.frontFace=It),Pt=u.lineWidth,Pt!==l.lineWidth&&(a.lineWidth(Pt),l.lineWidth=Pt),rr=u.polygonOffset_enable,rr!==l.polygonOffset_enable&&(rr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=rr),Hr=G[0],Dr=G[1],(Hr!==j[0]||Dr!==j[1])&&(a.polygonOffset(Hr,Dr),j[0]=Hr,j[1]=Dr),Mr=u.sample_alpha,Mr!==l.sample_alpha&&(Mr?a.enable(32926):a.disable(32926),l.sample_alpha=Mr),Fr=u.sample_enable,Fr!==l.sample_enable&&(Fr?a.enable(32928):a.disable(32928),l.sample_enable=Fr),di=H[0],Di=H[1],(di!==N[0]||Di!==N[1])&&(a.sampleCoverage(di,Di),N[0]=di,N[1]=Di),Ii=u.stencil_enable,Ii!==l.stencil_enable&&(Ii?a.enable(2960):a.disable(2960),l.stencil_enable=Ii),Ci=u.stencil_mask,Ci!==l.stencil_mask&&(a.stencilMask(Ci),l.stencil_mask=Ci),nn=W[0],ii=W[1],wi=W[2],(nn!==re[0]||ii!==re[1]||wi!==re[2])&&(a.stencilFunc(nn,ii,wi),re[0]=nn,re[1]=ii,re[2]=wi),Gi=ae[0],Bt=ae[1],yt=ae[2],Vt=ae[3],(Gi!==be[0]||Bt!==be[1]||yt!==be[2]||Vt!==be[3])&&(a.stencilOpSeparate(Gi,Bt,yt,Vt),be[0]=Gi,be[1]=Bt,be[2]=yt,be[3]=Vt),Wt=Pe[0],_r=Pe[1],Lr=Pe[2],Ur=Pe[3],(Wt!==Ce[0]||_r!==Ce[1]||Lr!==Ce[2]||Ur!==Ce[3])&&(a.stencilOpSeparate(Wt,_r,Lr,Ur),Ce[0]=Wt,Ce[1]=_r,Ce[2]=Lr,Ce[3]=Ur),Ir=u.scissor_enable,Ir!==l.scissor_enable&&(Ir?a.enable(3089):a.disable(3089),l.scissor_enable=Ir),Gr=de[0],jr=de[1],yi=de[2],Ei=de[3],(Gr!==te[0]||jr!==te[1]||yi!==te[2]||Ei!==te[3])&&(a.scissor(Gr,jr,yi,Ei),te[0]=Gr,te[1]=jr,te[2]=yi,te[3]=Ei),Vi=ke[0],ti=ke[1],en=ke[2],Yr=ke[3],(Vi!==Ee[0]||ti!==Ee[1]||en!==Ee[2]||Yr!==Ee[3])&&(a.viewport(Vi,ti,en,Yr),Ee[0]=Vi,Ee[1]=ti,Ee[2]=en,Ee[3]=Yr),l.dirty=!1}kt=l.profile,kt&&(Tt=performance.now(),r.count++),St=d.frag,Dt=d.vert,Zt=d.program(Dt,St),a.useProgram(Zt.program),x.setVAO(null),Et=Zt.id,Ae=nt[Et],Ae?Ae.call(this,Nt):(Ae=nt[Et]=n(Zt),Ae.call(this,Nt)),x.setVAO(null),kt&&(r.cpuTime+=performance.now()-Tt)},scope:function(Nt,it,Ke){var kt,Tt;kt=l.profile,kt&&(Tt=performance.now(),r.count++),it(o,Nt,Ke),kt&&(r.cpuTime+=performance.now()-Tt)},batch:function(Nt,it){var Ke,kt,Tt,St,Dt,Zt,Et,Ae,at;if(Ke=k.angle_instanced_arrays,kt=v.next,kt!==v.cur&&(kt?a.bindFramebuffer(36160,kt.framebuffer):a.bindFramebuffer(36160,null),v.cur=kt),l.dirty){var wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi;wt=u.dither,wt!==l.dither&&(wt?a.enable(3024):a.disable(3024),l.dither=wt),vt=u.blend_enable,vt!==l.blend_enable&&(vt?a.enable(3042):a.disable(3042),l.blend_enable=vt),st=L[0],Ue=L[1],rt=L[2],$e=L[3],(st!==_[0]||Ue!==_[1]||rt!==_[2]||$e!==_[3])&&(a.blendColor(st,Ue,rt,$e),_[0]=st,_[1]=Ue,_[2]=rt,_[3]=$e),zt=C[0],Yt=C[1],(zt!==M[0]||Yt!==M[1])&&(a.blendEquationSeparate(zt,Yt),M[0]=zt,M[1]=Yt),hr=m[0],yr=m[1],br=m[2],Ut=m[3],(hr!==P[0]||yr!==P[1]||br!==P[2]||Ut!==P[3])&&(a.blendFuncSeparate(hr,yr,br,Ut),P[0]=hr,P[1]=yr,P[2]=br,P[3]=Ut),Ie=u.depth_enable,Ie!==l.depth_enable&&(Ie?a.enable(2929):a.disable(2929),l.depth_enable=Ie),xe=u.depth_func,xe!==l.depth_func&&(a.depthFunc(xe),l.depth_func=xe),Oe=A[0],Re=A[1],(Oe!==B[0]||Re!==B[1])&&(a.depthRange(Oe,Re),B[0]=Oe,B[1]=Re),De=u.depth_mask,De!==l.depth_mask&&(a.depthMask(De),l.depth_mask=De),ct=F[0],ge=F[1],fe=F[2],pe=F[3],(ct!==U[0]||ge!==U[1]||fe!==U[2]||pe!==U[3])&&(a.colorMask(ct,ge,fe,pe),U[0]=ct,U[1]=ge,U[2]=fe,U[3]=pe),dt=u.cull_enable,dt!==l.cull_enable&&(dt?a.enable(2884):a.disable(2884),l.cull_enable=dt),It=u.cull_face,It!==l.cull_face&&(a.cullFace(It),l.cull_face=It),Pt=u.frontFace,Pt!==l.frontFace&&(a.frontFace(Pt),l.frontFace=Pt),rr=u.lineWidth,rr!==l.lineWidth&&(a.lineWidth(rr),l.lineWidth=rr),Hr=u.polygonOffset_enable,Hr!==l.polygonOffset_enable&&(Hr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=Hr),Dr=G[0],Mr=G[1],(Dr!==j[0]||Mr!==j[1])&&(a.polygonOffset(Dr,Mr),j[0]=Dr,j[1]=Mr),Fr=u.sample_alpha,Fr!==l.sample_alpha&&(Fr?a.enable(32926):a.disable(32926),l.sample_alpha=Fr),di=u.sample_enable,di!==l.sample_enable&&(di?a.enable(32928):a.disable(32928),l.sample_enable=di),Di=H[0],Ii=H[1],(Di!==N[0]||Ii!==N[1])&&(a.sampleCoverage(Di,Ii),N[0]=Di,N[1]=Ii),Ci=u.stencil_enable,Ci!==l.stencil_enable&&(Ci?a.enable(2960):a.disable(2960),l.stencil_enable=Ci),nn=u.stencil_mask,nn!==l.stencil_mask&&(a.stencilMask(nn),l.stencil_mask=nn),ii=W[0],wi=W[1],Gi=W[2],(ii!==re[0]||wi!==re[1]||Gi!==re[2])&&(a.stencilFunc(ii,wi,Gi),re[0]=ii,re[1]=wi,re[2]=Gi),Bt=ae[0],yt=ae[1],Vt=ae[2],Wt=ae[3],(Bt!==be[0]||yt!==be[1]||Vt!==be[2]||Wt!==be[3])&&(a.stencilOpSeparate(Bt,yt,Vt,Wt),be[0]=Bt,be[1]=yt,be[2]=Vt,be[3]=Wt),_r=Pe[0],Lr=Pe[1],Ur=Pe[2],Ir=Pe[3],(_r!==Ce[0]||Lr!==Ce[1]||Ur!==Ce[2]||Ir!==Ce[3])&&(a.stencilOpSeparate(_r,Lr,Ur,Ir),Ce[0]=_r,Ce[1]=Lr,Ce[2]=Ur,Ce[3]=Ir),Gr=u.scissor_enable,Gr!==l.scissor_enable&&(Gr?a.enable(3089):a.disable(3089),l.scissor_enable=Gr),jr=de[0],yi=de[1],Ei=de[2],Vi=de[3],(jr!==te[0]||yi!==te[1]||Ei!==te[2]||Vi!==te[3])&&(a.scissor(jr,yi,Ei,Vi),te[0]=jr,te[1]=yi,te[2]=Ei,te[3]=Vi),ti=ke[0],en=ke[1],Yr=ke[2],oi=ke[3],(ti!==Ee[0]||en!==Ee[1]||Yr!==Ee[2]||oi!==Ee[3])&&(a.viewport(ti,en,Yr,oi),Ee[0]=ti,Ee[1]=en,Ee[2]=Yr,Ee[3]=oi),l.dirty=!1}Tt=l.profile,Tt&&(St=performance.now(),r.count+=it),Dt=d.frag,Zt=d.vert,Et=d.program(Zt,Dt),a.useProgram(Et.program),x.setVAO(null),Ae=Et.id,at=gt[Ae],at?at.call(this,Nt,it):(at=gt[Ae]=i(Et),at.call(this,Nt,it)),x.setVAO(null),Tt&&(r.cpuTime+=performance.now()-St)}}}});var E8=Te((H_r,RNe)=>{RNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt,Nt,it,Ke,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt){"use strict";var $e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn;return $e=t.gl,zt=t.context,Yt=t.strings,hr=t.next,yr=t.current,br=t.draw,Ut=t.elements,Ie=t.buffer,xe=t.shader,Oe=t.attributes,Re=t.vao,De=t.uniforms,ct=t.framebuffer,ge=t.extensions,fe=t.timer,pe=t.isBufferArgs,dt=hr.blend_color,It=yr.blend_color,Pt=hr.blend_equation,rr=yr.blend_equation,Hr=hr.blend_func,Dr=yr.blend_func,Mr=hr.depth_range,Fr=yr.depth_range,di=hr.colorMask,Di=yr.colorMask,Ii=hr.polygonOffset_offset,Ci=yr.polygonOffset_offset,nn=hr.sample_coverage,ii=yr.sample_coverage,wi=hr.stencil_func,Gi=yr.stencil_func,Bt=hr.stencil_opFront,yt=yr.stencil_opFront,Vt=hr.stencil_opBack,Wt=yr.stencil_opBack,_r=hr.scissor_box,Lr=yr.scissor_box,Ur=hr.viewport,Ir=yr.viewport,Gr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},jr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},yi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ei={add:32774,subtract:32778,"reverse subtract":32779},Vi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ti={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},en={cw:2304,ccw:2305},Yr={},Yr.stride=8,Yr.offset=8,Yr.divisor=1,oi={},oi.stride=8,oi.offset=16,oi.divisor=1,Bi={},Bi.stride=8,Bi.offset=8,Bi.divisor=1,an={},an.stride=8,an.offset=16,an.divisor=1,rn={},rn.stride=4,rn.offset=0,rn.divisor=1,{draw:function(Fi){var Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa;if(Ri=ge.angle_instanced_arrays,xn=ct.next,xn!==ct.cur&&(xn?$e.bindFramebuffer(36160,xn.framebuffer):$e.bindFramebuffer(36160,null),ct.cur=xn),yr.dirty){var os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi;os=hr.dither,os!==yr.dither&&(os?$e.enable(3024):$e.disable(3024),yr.dither=os),_l=hr.depth_func,_l!==yr.depth_func&&($e.depthFunc(_l),yr.depth_func=_l),Ss=Mr[0],po=Mr[1],(Ss!==Fr[0]||po!==Fr[1])&&($e.depthRange(Ss,po),Fr[0]=Ss,Fr[1]=po),go=hr.depth_mask,go!==yr.depth_mask&&($e.depthMask(go),yr.depth_mask=go),ss=di[0],qo=di[1],zo=di[2],io=di[3],(ss!==Di[0]||qo!==Di[1]||zo!==Di[2]||io!==Di[3])&&($e.colorMask(ss,qo,zo,io),Di[0]=ss,Di[1]=qo,Di[2]=zo,Di[3]=io),Io=hr.cull_enable,Io!==yr.cull_enable&&(Io?$e.enable(2884):$e.disable(2884),yr.cull_enable=Io),Da=hr.cull_face,Da!==yr.cull_face&&($e.cullFace(Da),yr.cull_face=Da),vs=hr.frontFace,vs!==yr.frontFace&&($e.frontFace(vs),yr.frontFace=vs),fs=hr.lineWidth,fs!==yr.lineWidth&&($e.lineWidth(fs),yr.lineWidth=fs),cl=hr.polygonOffset_enable,cl!==yr.polygonOffset_enable&&(cl?$e.enable(32823):$e.disable(32823),yr.polygonOffset_enable=cl),el=Ii[0],Hs=Ii[1],(el!==Ci[0]||Hs!==Ci[1])&&($e.polygonOffset(el,Hs),Ci[0]=el,Ci[1]=Hs),Ro=hr.sample_alpha,Ro!==yr.sample_alpha&&(Ro?$e.enable(32926):$e.disable(32926),yr.sample_alpha=Ro),tl=hr.sample_enable,tl!==yr.sample_enable&&(tl?$e.enable(32928):$e.disable(32928),yr.sample_enable=tl),Fs=nn[0],hl=nn[1],(Fs!==ii[0]||hl!==ii[1])&&($e.sampleCoverage(Fs,hl),ii[0]=Fs,ii[1]=hl),Fa=hr.stencil_mask,Fa!==yr.stencil_mask&&($e.stencilMask(Fa),yr.stencil_mask=Fa),Ms=wi[0],jo=wi[1],Rs=wi[2],(Ms!==Gi[0]||jo!==Gi[1]||Rs!==Gi[2])&&($e.stencilFunc(Ms,jo,Rs),Gi[0]=Ms,Gi[1]=jo,Gi[2]=Rs),Is=Bt[0],Bs=Bt[1],At=Bt[2],Gt=Bt[3],(Is!==yt[0]||Bs!==yt[1]||At!==yt[2]||Gt!==yt[3])&&($e.stencilOpSeparate(Is,Bs,At,Gt),yt[0]=Is,yt[1]=Bs,yt[2]=At,yt[3]=Gt),wr=Vt[0],mr=Vt[1],Or=Vt[2],gi=Vt[3],(wr!==Wt[0]||mr!==Wt[1]||Or!==Wt[2]||gi!==Wt[3])&&($e.stencilOpSeparate(wr,mr,Or,gi),Wt[0]=wr,Wt[1]=mr,Wt[2]=Or,Wt[3]=gi)}xi=Fi.viewport,Xr=xi.x|0,ft=xi.y|0,tr="width"in xi?xi.width|0:zt.framebufferWidth-Xr,pr="height"in xi?xi.height|0:zt.framebufferHeight-ft,gr=zt.viewportWidth,zt.viewportWidth=tr,Zr=zt.viewportHeight,zt.viewportHeight=pr,$e.viewport(Xr,ft,tr,pr),Ir[0]=Xr,Ir[1]=ft,Ir[2]=tr,Ir[3]=pr,$e.blendColor(0,0,0,0),It[0]=0,It[1]=0,It[2]=0,It[3]=0,n?$e.enable(3042):$e.disable(3042),yr.blend_enable=n,$e.blendEquationSeparate(32774,32774),rr[0]=32774,rr[1]=32774,$e.blendFuncSeparate(770,771,773,1),Dr[0]=770,Dr[1]=771,Dr[2]=773,Dr[3]=1,Ai=i.call(this,zt,Fi,0),Ai?$e.enable(2929):$e.disable(2929),yr.depth_enable=Ai,Qi=Fi.viewport,ni=Qi.x|0,Zi=Qi.y|0,aa="width"in Qi?Qi.width|0:zt.framebufferWidth-ni,Mn="height"in Qi?Qi.height|0:zt.framebufferHeight-Zi,$e.scissor(ni,Zi,aa,Mn),Lr[0]=ni,Lr[1]=Zi,Lr[2]=aa,Lr[3]=Mn,a?$e.enable(3089):$e.disable(3089),yr.scissor_enable=a,o?$e.enable(2960):$e.disable(2960),yr.stencil_enable=o,Un=yr.profile,Un&&(Ga=performance.now(),r.count++),$e.useProgram(s.program),ma=ge.angle_instanced_arrays,Re.setVAO(null),oa=Fi.positionBuffer,Yr.buffer=oa,ka=!1,so=1,Kr=0,Ia=0,Yo=0,fa=0,kn=null,Ta=0,ys=!1,uo=5126,ls=0,$a=0,fo=0,pe(Yr)?(ka=!0,kn=Ie.createStream(34962,Yr),uo=kn.dtype):(kn=Ie.getBuffer(Yr),kn?uo=kn.dtype:"constant"in Yr?(so=2,typeof Yr.constant=="number"?(Kr=Yr.constant,Ia=Yo=fa=0):(Kr=Yr.constant.length>0?Yr.constant[0]:0,Ia=Yr.constant.length>1?Yr.constant[1]:0,Yo=Yr.constant.length>2?Yr.constant[2]:0,fa=Yr.constant.length>3?Yr.constant[3]:0)):(pe(Yr.buffer)?kn=Ie.createStream(34962,Yr.buffer):kn=Ie.getBuffer(Yr.buffer),uo="type"in Yr?ti[Yr.type]:kn.dtype,ys=!!Yr.normalized,Ta=Yr.size|0,ls=Yr.offset|0,$a=Yr.stride|0,fo=Yr.divisor|0)),mn=u.location,ra=Oe[mn],so===1?(ra.buffer||$e.enableVertexAttribArray(mn),wa=Ta||2,(ra.type!==uo||ra.size!==wa||ra.buffer!==kn||ra.normalized!==ys||ra.offset!==ls||ra.stride!==$a)&&($e.bindBuffer(34962,kn.buffer),$e.vertexAttribPointer(mn,wa,uo,ys,$a,ls),ra.type=uo,ra.size=wa,ra.buffer=kn,ra.normalized=ys,ra.offset=ls,ra.stride=$a),ra.divisor!==fo&&(ma.vertexAttribDivisorANGLE(mn,fo),ra.divisor=fo)):(ra.buffer&&($e.disableVertexAttribArray(mn),ra.buffer=null),(ra.x!==Kr||ra.y!==Ia||ra.z!==Yo||ra.w!==fa)&&($e.vertexAttrib4f(mn,Kr,Ia,Yo,fa),ra.x=Kr,ra.y=Ia,ra.z=Yo,ra.w=fa)),ws=Fi.positionFractBuffer,Bi.buffer=ws,Co=!1,Po=1,ji=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Wi=0,Sa=0,pe(Bi)?(Co=!0,Sn=Ie.createStream(34962,Bi),Ko=Sn.dtype):(Sn=Ie.getBuffer(Bi),Sn?Ko=Sn.dtype:"constant"in Bi?(Po=2,typeof Bi.constant=="number"?(ji=Bi.constant,gn=Ps=Ha=0):(ji=Bi.constant.length>0?Bi.constant[0]:0,gn=Bi.constant.length>1?Bi.constant[1]:0,Ps=Bi.constant.length>2?Bi.constant[2]:0,Ha=Bi.constant.length>3?Bi.constant[3]:0)):(pe(Bi.buffer)?Sn=Ie.createStream(34962,Bi.buffer):Sn=Ie.getBuffer(Bi.buffer),Ko="type"in Bi?ti[Bi.type]:Sn.dtype,Ba=!!Bi.normalized,ao=Bi.size|0,Qo=Bi.offset|0,Wi=Bi.stride|0,Sa=Bi.divisor|0)),Qa=l.location,vn=Oe[Qa],Po===1?(vn.buffer||$e.enableVertexAttribArray(Qa),da=ao||2,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Wi)&&($e.bindBuffer(34962,Sn.buffer),$e.vertexAttribPointer(Qa,da,Ko,Ba,Wi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Wi),vn.divisor!==Sa&&(ma.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&($e.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==ji||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&($e.vertexAttrib4f(Qa,ji,gn,Ps,Ha),vn.x=ji,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=Fi.positionBuffer,oi.buffer=la,vo=!1,As=1,ps=0,co=0,mo=0,No=0,jn=null,Go=0,Ys=!1,qs=5126,Ns=0,Oa=0,ha=0,pe(oi)?(vo=!0,jn=Ie.createStream(34962,oi),qs=jn.dtype):(jn=Ie.getBuffer(oi),jn?qs=jn.dtype:"constant"in oi?(As=2,typeof oi.constant=="number"?(ps=oi.constant,co=mo=No=0):(ps=oi.constant.length>0?oi.constant[0]:0,co=oi.constant.length>1?oi.constant[1]:0,mo=oi.constant.length>2?oi.constant[2]:0,No=oi.constant.length>3?oi.constant[3]:0)):(pe(oi.buffer)?jn=Ie.createStream(34962,oi.buffer):jn=Ie.getBuffer(oi.buffer),qs="type"in oi?ti[oi.type]:jn.dtype,Ys=!!oi.normalized,Go=oi.size|0,Ns=oi.offset|0,Oa=oi.stride|0,ha=oi.divisor|0)),Vs=f.location,Ya=Oe[Vs],As===1?(Ya.buffer||$e.enableVertexAttribArray(Vs),_n=Go||2,(Ya.type!==qs||Ya.size!==_n||Ya.buffer!==jn||Ya.normalized!==Ys||Ya.offset!==Ns||Ya.stride!==Oa)&&($e.bindBuffer(34962,jn.buffer),$e.vertexAttribPointer(Vs,_n,qs,Ys,Oa,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Oa),Ya.divisor!==ha&&(ma.vertexAttribDivisorANGLE(Vs,ha),Ya.divisor=ha)):(Ya.buffer&&($e.disableVertexAttribArray(Vs),Ya.buffer=null),(Ya.x!==ps||Ya.y!==co||Ya.z!==mo||Ya.w!==No)&&($e.vertexAttrib4f(Vs,ps,co,mo,No),Ya.x=ps,Ya.y=co,Ya.z=mo,Ya.w=No)),Vn=Fi.positionFractBuffer,an.buffer=Vn,wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,pe(an)?(wo=!0,qn=Ie.createStream(34962,an),lo=qn.dtype):(qn=Ie.getBuffer(an),qn?lo=qn.dtype:"constant"in an?(Ra=2,typeof an.constant=="number"?(Xn=an.constant,un=$n=Ka=0):(Xn=an.constant.length>0?an.constant[0]:0,un=an.constant.length>1?an.constant[1]:0,$n=an.constant.length>2?an.constant[2]:0,Ka=an.constant.length>3?an.constant[3]:0)):(pe(an.buffer)?qn=Ie.createStream(34962,an.buffer):qn=Ie.getBuffer(an.buffer),lo="type"in an?ti[an.type]:qn.dtype,Ja=!!an.normalized,Eo=an.size|0,eo=an.offset|0,sa=an.stride|0,es=an.divisor|0)),Na=c.location,tn=Oe[Na],Ra===1?(tn.buffer||$e.enableVertexAttribArray(Na),Pa=Eo||2,(tn.type!==lo||tn.size!==Pa||tn.buffer!==qn||tn.normalized!==Ja||tn.offset!==eo||tn.stride!==sa)&&($e.bindBuffer(34962,qn.buffer),$e.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),tn.type=lo,tn.size=Pa,tn.buffer=qn,tn.normalized=Ja,tn.offset=eo,tn.stride=sa),tn.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),tn.divisor=es)):(tn.buffer&&($e.disableVertexAttribArray(Na),tn.buffer=null),(tn.x!==Xn||tn.y!==un||tn.z!==$n||tn.w!==Ka)&&($e.vertexAttrib4f(Na,Xn,un,$n,Ka),tn.x=Xn,tn.y=un,tn.z=$n,tn.w=Ka)),to=Fi.colorBuffer,rn.buffer=to,yo=!1,Jo=1,Ao=0,Dn=0,_a=0,Ws=0,Ca=null,Es=0,Ts=!1,Ho=5126,Wa=0,To=0,ts=0,pe(rn)?(yo=!0,Ca=Ie.createStream(34962,rn),Ho=Ca.dtype):(Ca=Ie.getBuffer(rn),Ca?Ho=Ca.dtype:"constant"in rn?(Jo=2,typeof rn.constant=="number"?(Ao=rn.constant,Dn=_a=Ws=0):(Ao=rn.constant.length>0?rn.constant[0]:0,Dn=rn.constant.length>1?rn.constant[1]:0,_a=rn.constant.length>2?rn.constant[2]:0,Ws=rn.constant.length>3?rn.constant[3]:0)):(pe(rn.buffer)?Ca=Ie.createStream(34962,rn.buffer):Ca=Ie.getBuffer(rn.buffer),Ho="type"in rn?ti[rn.type]:Ca.dtype,Ts=!!rn.normalized,Es=rn.size|0,Wa=rn.offset|0,To=rn.stride|0,ts=rn.divisor|0)),Wo=h.location,qa=Oe[Wo],Jo===1?(qa.buffer||$e.enableVertexAttribArray(Wo),ln=Es||4,(qa.type!==Ho||qa.size!==ln||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&($e.bindBuffer(34962,Ca.buffer),$e.vertexAttribPointer(Wo,ln,Ho,Ts,To,Wa),qa.type=Ho,qa.size=ln,qa.buffer=Ca,qa.normalized=Ts,qa.offset=Wa,qa.stride=To),qa.divisor!==ts&&(ma.vertexAttribDivisorANGLE(Wo,ts),qa.divisor=ts)):(qa.buffer&&($e.disableVertexAttribArray(Wo),qa.buffer=null),(qa.x!==Ao||qa.y!==Dn||qa.z!==_a||qa.w!==Ws)&&($e.vertexAttrib4f(Wo,Ao,Dn,_a,Ws),qa.x=Ao,qa.y=Dn,qa.z=_a,qa.w=Ws)),Bo=p.location,ko=Oe[Bo],ko.buffer||$e.enableVertexAttribArray(Bo),(ko.type!==5126||ko.size!==1||ko.buffer!==d||ko.normalized!==!1||ko.offset!==0||ko.stride!==8)&&($e.bindBuffer(34962,d.buffer),$e.vertexAttribPointer(Bo,1,5126,!1,8,0),ko.type=5126,ko.size=1,ko.buffer=d,ko.normalized=!1,ko.offset=0,ko.stride=8),ko.divisor!==0&&(ma.vertexAttribDivisorANGLE(Bo,0),ko.divisor=0),oo=x.location,za=Oe[oo],za.buffer||$e.enableVertexAttribArray(oo),(za.type!==5126||za.size!==1||za.buffer!==d||za.normalized!==!1||za.offset!==4||za.stride!==8)&&($e.bindBuffer(34962,d.buffer),$e.vertexAttribPointer(oo,1,5126,!1,8,4),za.type=5126,za.size=1,za.buffer=d,za.normalized=!1,za.offset=4,za.stride=8),za.divisor!==0&&(ma.vertexAttribDivisorANGLE(oo,0),za.divisor=0),ea=Fi.dashLength,$e.uniform1f(b.location,ea),rs=Fi.dashTexture,rs&&rs._reglType==="framebuffer"&&(rs=rs.color[0]),$s=rs._texture,$e.uniform1i(v.location,$s.bind()),us=Fi.depth,$e.uniform1f(k.location,us),Ds=Fi.opacity,$e.uniform1f(E.location,Ds),fl=Fi.scale,as=fl[0],Ma=fl[1],$e.uniform2f(T.location,as,Ma),Qs=Fi.scaleFract,ho=Qs[0],gs=Qs[1],$e.uniform2f(L.location,ho,gs),Vo=Fi.thickness,$e.uniform1f(_.location,Vo),Do=Fi.translate,Lo=Do[0],xs=Do[1],$e.uniform2f(C.location,Lo,xs),ks=Fi.translateFract,Ea=ks[0],Jn=ks[1],$e.uniform2f(M.location,Ea,Jn),Oo=P.call(this,zt,Fi,0),rl=Oo[0],Gs=Oo[1],bs=Oo[2],zs=Oo[3],$e.uniform4f(m.location,rl,Gs,bs,zs),$o=br.elements,$o?$e.bindBuffer(34963,$o.buffer.buffer):Re.currentVAO&&($o=Ut.getElements(Re.currentVAO.elements),$o&&$e.bindBuffer(34963,$o.buffer.buffer)),Aa=Fi.count,Aa>0?$o?ma.drawElementsInstancedANGLE(5,4,$o.type,0<<($o.type-5121>>1),Aa):ma.drawArraysInstancedANGLE(5,0,4,Aa):Aa<0&&($o?$e.drawElements(5,4,$o.type,0<<($o.type-5121>>1)):$e.drawArrays(5,0,4)),yr.dirty=!0,Re.setVAO(null),zt.viewportWidth=gr,zt.viewportHeight=Zr,Un&&(r.cpuTime+=performance.now()-Ga),ka&&Ie.destroyStream(kn),Co&&Ie.destroyStream(Sn),vo&&Ie.destroyStream(jn),wo&&Ie.destroyStream(qn),yo&&Ie.destroyStream(Ca),$s.unbind()},scope:function(Fi,Ri,xn){var xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht;xi=Fi.viewport,Xr=xi.x|0,ft=xi.y|0,tr="width"in xi?xi.width|0:zt.framebufferWidth-Xr,pr="height"in xi?xi.height|0:zt.framebufferHeight-ft,gr=zt.viewportWidth,zt.viewportWidth=tr,Zr=zt.viewportHeight,zt.viewportHeight=pr,Ai=Ur[0],Ur[0]=Xr,Qi=Ur[1],Ur[1]=ft,ni=Ur[2],Ur[2]=tr,Zi=Ur[3],Ur[3]=pr,aa=dt[0],dt[0]=A,Mn=dt[1],dt[1]=B,Un=dt[2],dt[2]=F,Ga=dt[3],dt[3]=U,ma=hr.blend_enable,hr.blend_enable=G,oa=Pt[0],Pt[0]=j,ka=Pt[1],Pt[1]=H,so=Hr[0],Hr[0]=N,Kr=Hr[1],Hr[1]=W,Ia=Hr[2],Hr[2]=re,Yo=Hr[3],Hr[3]=ae,fa=i.call(this,zt,Fi,xn),kn=hr.depth_enable,hr.depth_enable=fa,Ta=Fi.viewport,ys=Ta.x|0,uo=Ta.y|0,ls="width"in Ta?Ta.width|0:zt.framebufferWidth-ys,$a="height"in Ta?Ta.height|0:zt.framebufferHeight-uo,fo=_r[0],_r[0]=ys,mn=_r[1],_r[1]=uo,ra=_r[2],_r[2]=ls,wa=_r[3],_r[3]=$a,ws=hr.scissor_enable,hr.scissor_enable=be,Co=hr.stencil_enable,hr.stencil_enable=Pe,Po=yr.profile,Po&&(ji=performance.now(),r.count++),gn=br.offset,br.offset=Ce,Ps=br.count,br.count=de,Ha=Fi.count,Sn=br.instances,br.instances=Ha,ao=br.primitive,br.primitive=te,Ba=ke.call(this,zt,Fi,xn),Ko=De[Ee],De[Ee]=Ba,Qo=Fi.miterLimit,Wi=De[Me],De[Me]=Qo,Sa=Fi.scale,Qa=De[Ne],De[Ne]=Sa,vn=Fi.scaleFract,da=De[Fe],De[Fe]=vn,la=Fi.translateFract,vo=De[ye],De[ye]=la,As=Fi.translate,ps=De[Ve],De[Ve]=As,co=Fi.thickness,mo=De[ce],De[ce]=co,No=Fi.dashTexture,jn=De[Ye],De[Ye]=No,Go=Fi.opacity,Ys=De[nt],De[nt]=Go,qs=zt.pixelRatio,Ns=De[gt],De[gt]=qs,Oa=Fi.id,ha=De[Nt],De[Nt]=Oa,Vs=Fi.dashLength,Ya=De[it],De[it]=Vs,_n=P.call(this,zt,Fi,xn),Vn=De[Ke],De[Ke]=_n,wo=Fi.depth,Ra=De[kt],De[kt]=wo,Xn=Tt.state,Tt.state=1,un=Tt.x,Tt.x=0,$n=Tt.y,Tt.y=0,Ka=Tt.z,Tt.z=0,qn=Tt.w,Tt.w=0,Eo=Tt.buffer,Tt.buffer=d,Ja=Tt.size,Tt.size=0,lo=Tt.normalized,Tt.normalized=!1,eo=Tt.type,Tt.type=5126,sa=Tt.offset,Tt.offset=0,es=Tt.stride,Tt.stride=8,Na=Tt.divisor,Tt.divisor=0,tn=St.state,St.state=1,Pa=St.x,St.x=0,to=St.y,St.y=0,yo=St.z,St.z=0,Jo=St.w,St.w=0,Ao=St.buffer,St.buffer=d,Dn=St.size,St.size=0,_a=St.normalized,St.normalized=!1,Ws=St.type,St.type=5126,Ca=St.offset,St.offset=4,Es=St.stride,St.stride=8,Ts=St.divisor,St.divisor=0,Ho=Fi.positionBuffer,Yr.buffer=Ho,Wa=!1,To=1,ts=0,Wo=0,qa=0,ln=0,Bo=null,ko=0,oo=!1,za=5126,ea=0,rs=0,$s=0,pe(Yr)?(Wa=!0,Bo=Ie.createStream(34962,Yr),za=Bo.dtype):(Bo=Ie.getBuffer(Yr),Bo?za=Bo.dtype:"constant"in Yr?(To=2,typeof Yr.constant=="number"?(ts=Yr.constant,Wo=qa=ln=0):(ts=Yr.constant.length>0?Yr.constant[0]:0,Wo=Yr.constant.length>1?Yr.constant[1]:0,qa=Yr.constant.length>2?Yr.constant[2]:0,ln=Yr.constant.length>3?Yr.constant[3]:0)):(pe(Yr.buffer)?Bo=Ie.createStream(34962,Yr.buffer):Bo=Ie.getBuffer(Yr.buffer),za="type"in Yr?ti[Yr.type]:Bo.dtype,oo=!!Yr.normalized,ko=Yr.size|0,ea=Yr.offset|0,rs=Yr.stride|0,$s=Yr.divisor|0)),us=Dt.state,Dt.state=To,Ds=Dt.x,Dt.x=ts,fl=Dt.y,Dt.y=Wo,as=Dt.z,Dt.z=qa,Ma=Dt.w,Dt.w=ln,Qs=Dt.buffer,Dt.buffer=Bo,ho=Dt.size,Dt.size=ko,gs=Dt.normalized,Dt.normalized=oo,Vo=Dt.type,Dt.type=za,Do=Dt.offset,Dt.offset=ea,Lo=Dt.stride,Dt.stride=rs,xs=Dt.divisor,Dt.divisor=$s,ks=Fi.positionBuffer,oi.buffer=ks,Ea=!1,Jn=1,Oo=0,rl=0,Gs=0,bs=0,zs=null,$o=0,Aa=!1,os=5126,_l=0,Ss=0,po=0,pe(oi)?(Ea=!0,zs=Ie.createStream(34962,oi),os=zs.dtype):(zs=Ie.getBuffer(oi),zs?os=zs.dtype:"constant"in oi?(Jn=2,typeof oi.constant=="number"?(Oo=oi.constant,rl=Gs=bs=0):(Oo=oi.constant.length>0?oi.constant[0]:0,rl=oi.constant.length>1?oi.constant[1]:0,Gs=oi.constant.length>2?oi.constant[2]:0,bs=oi.constant.length>3?oi.constant[3]:0)):(pe(oi.buffer)?zs=Ie.createStream(34962,oi.buffer):zs=Ie.getBuffer(oi.buffer),os="type"in oi?ti[oi.type]:zs.dtype,Aa=!!oi.normalized,$o=oi.size|0,_l=oi.offset|0,Ss=oi.stride|0,po=oi.divisor|0)),go=Zt.state,Zt.state=Jn,ss=Zt.x,Zt.x=Oo,qo=Zt.y,Zt.y=rl,zo=Zt.z,Zt.z=Gs,io=Zt.w,Zt.w=bs,Io=Zt.buffer,Zt.buffer=zs,Da=Zt.size,Zt.size=$o,vs=Zt.normalized,Zt.normalized=Aa,fs=Zt.type,Zt.type=os,cl=Zt.offset,Zt.offset=_l,el=Zt.stride,Zt.stride=Ss,Hs=Zt.divisor,Zt.divisor=po,Ro=Fi.positionFractBuffer,Bi.buffer=Ro,tl=!1,Fs=1,hl=0,Fa=0,Ms=0,jo=0,Rs=null,Is=0,Bs=!1,At=5126,Gt=0,wr=0,mr=0,pe(Bi)?(tl=!0,Rs=Ie.createStream(34962,Bi),At=Rs.dtype):(Rs=Ie.getBuffer(Bi),Rs?At=Rs.dtype:"constant"in Bi?(Fs=2,typeof Bi.constant=="number"?(hl=Bi.constant,Fa=Ms=jo=0):(hl=Bi.constant.length>0?Bi.constant[0]:0,Fa=Bi.constant.length>1?Bi.constant[1]:0,Ms=Bi.constant.length>2?Bi.constant[2]:0,jo=Bi.constant.length>3?Bi.constant[3]:0)):(pe(Bi.buffer)?Rs=Ie.createStream(34962,Bi.buffer):Rs=Ie.getBuffer(Bi.buffer),At="type"in Bi?ti[Bi.type]:Rs.dtype,Bs=!!Bi.normalized,Is=Bi.size|0,Gt=Bi.offset|0,wr=Bi.stride|0,mr=Bi.divisor|0)),Or=Et.state,Et.state=Fs,gi=Et.x,Et.x=hl,Ti=Et.y,Et.y=Fa,ki=Et.z,Et.z=Ms,Ji=Et.w,Et.w=jo,Fn=Et.buffer,Et.buffer=Rs,Pi=Et.size,Et.size=Is,hi=Et.normalized,Et.normalized=Bs,Li=Et.type,Et.type=At,Si=Et.offset,Et.offset=Gt,Gn=Et.stride,Et.stride=wr,ta=Et.divisor,Et.divisor=mr,ya=Fi.positionFractBuffer,an.buffer=ya,ia=!1,pa=1,va=0,zn=0,is=0,Cs=0,Ks=null,dl=0,xl=!1,Ol=5126,bl=0,eu=0,Zl=0,pe(an)?(ia=!0,Ks=Ie.createStream(34962,an),Ol=Ks.dtype):(Ks=Ie.getBuffer(an),Ks?Ol=Ks.dtype:"constant"in an?(pa=2,typeof an.constant=="number"?(va=an.constant,zn=is=Cs=0):(va=an.constant.length>0?an.constant[0]:0,zn=an.constant.length>1?an.constant[1]:0,is=an.constant.length>2?an.constant[2]:0,Cs=an.constant.length>3?an.constant[3]:0)):(pe(an.buffer)?Ks=Ie.createStream(34962,an.buffer):Ks=Ie.getBuffer(an.buffer),Ol="type"in an?ti[an.type]:Ks.dtype,xl=!!an.normalized,dl=an.size|0,bl=an.offset|0,eu=an.stride|0,Zl=an.divisor|0)),Vl=Ae.state,Ae.state=pa,ja=Ae.x,Ae.x=va,ns=Ae.y,Ae.y=zn,Js=Ae.z,Ae.z=is,cs=Ae.w,Ae.w=Cs,sl=Ae.buffer,Ae.buffer=Ks,ll=Ae.size,Ae.size=dl,il=Ae.normalized,Ae.normalized=xl,zl=Ae.type,Ae.type=Ol,Ml=Ae.offset,Ae.offset=bl,Rl=Ae.stride,Ae.stride=eu,Al=Ae.divisor,Ae.divisor=Zl,Ll=Fi.colorBuffer,rn.buffer=Ll,ms=!1,Os=1,Xl=0,Gl=0,Ul=0,le=0,w=null,q=0,Q=!1,ee=5126,ue=0,Ge=0,et=0,pe(rn)?(ms=!0,w=Ie.createStream(34962,rn),ee=w.dtype):(w=Ie.getBuffer(rn),w?ee=w.dtype:"constant"in rn?(Os=2,typeof rn.constant=="number"?(Xl=rn.constant,Gl=Ul=le=0):(Xl=rn.constant.length>0?rn.constant[0]:0,Gl=rn.constant.length>1?rn.constant[1]:0,Ul=rn.constant.length>2?rn.constant[2]:0,le=rn.constant.length>3?rn.constant[3]:0)):(pe(rn.buffer)?w=Ie.createStream(34962,rn.buffer):w=Ie.getBuffer(rn.buffer),ee="type"in rn?ti[rn.type]:w.dtype,Q=!!rn.normalized,q=rn.size|0,ue=rn.offset|0,Ge=rn.stride|0,et=rn.divisor|0)),mt=at.state,at.state=Os,Ft=at.x,at.x=Xl,ir=at.y,at.y=Gl,or=at.z,at.z=Ul,kr=at.w,at.w=le,Vr=at.buffer,at.buffer=w,he=at.size,at.size=q,Se=at.normalized,at.normalized=Q,qe=at.type,at.type=ee,He=at.offset,at.offset=ue,lt=at.stride,at.stride=Ge,tt=at.divisor,at.divisor=et,pt=xe.vert,xe.vert=wt,Ht=xe.frag,xe.frag=vt,yr.dirty=!0,Ri(zt,Fi,xn),zt.viewportWidth=gr,zt.viewportHeight=Zr,Ur[0]=Ai,Ur[1]=Qi,Ur[2]=ni,Ur[3]=Zi,dt[0]=aa,dt[1]=Mn,dt[2]=Un,dt[3]=Ga,hr.blend_enable=ma,Pt[0]=oa,Pt[1]=ka,Hr[0]=so,Hr[1]=Kr,Hr[2]=Ia,Hr[3]=Yo,hr.depth_enable=kn,_r[0]=fo,_r[1]=mn,_r[2]=ra,_r[3]=wa,hr.scissor_enable=ws,hr.stencil_enable=Co,Po&&(r.cpuTime+=performance.now()-ji),br.offset=gn,br.count=Ps,br.instances=Sn,br.primitive=ao,De[Ee]=Ko,De[Me]=Wi,De[Ne]=Qa,De[Fe]=da,De[ye]=vo,De[Ve]=ps,De[ce]=mo,De[Ye]=jn,De[nt]=Ys,De[gt]=Ns,De[Nt]=ha,De[it]=Ya,De[Ke]=Vn,De[kt]=Ra,Tt.state=Xn,Tt.x=un,Tt.y=$n,Tt.z=Ka,Tt.w=qn,Tt.buffer=Eo,Tt.size=Ja,Tt.normalized=lo,Tt.type=eo,Tt.offset=sa,Tt.stride=es,Tt.divisor=Na,St.state=tn,St.x=Pa,St.y=to,St.z=yo,St.w=Jo,St.buffer=Ao,St.size=Dn,St.normalized=_a,St.type=Ws,St.offset=Ca,St.stride=Es,St.divisor=Ts,Wa&&Ie.destroyStream(Bo),Dt.state=us,Dt.x=Ds,Dt.y=fl,Dt.z=as,Dt.w=Ma,Dt.buffer=Qs,Dt.size=ho,Dt.normalized=gs,Dt.type=Vo,Dt.offset=Do,Dt.stride=Lo,Dt.divisor=xs,Ea&&Ie.destroyStream(zs),Zt.state=go,Zt.x=ss,Zt.y=qo,Zt.z=zo,Zt.w=io,Zt.buffer=Io,Zt.size=Da,Zt.normalized=vs,Zt.type=fs,Zt.offset=cl,Zt.stride=el,Zt.divisor=Hs,tl&&Ie.destroyStream(Rs),Et.state=Or,Et.x=gi,Et.y=Ti,Et.z=ki,Et.w=Ji,Et.buffer=Fn,Et.size=Pi,Et.normalized=hi,Et.type=Li,Et.offset=Si,Et.stride=Gn,Et.divisor=ta,ia&&Ie.destroyStream(Ks),Ae.state=Vl,Ae.x=ja,Ae.y=ns,Ae.z=Js,Ae.w=cs,Ae.buffer=sl,Ae.size=ll,Ae.normalized=il,Ae.type=zl,Ae.offset=Ml,Ae.stride=Rl,Ae.divisor=Al,ms&&Ie.destroyStream(w),at.state=mt,at.x=Ft,at.y=ir,at.z=or,at.w=kr,at.buffer=Vr,at.size=he,at.normalized=Se,at.type=qe,at.offset=He,at.stride=lt,at.divisor=tt,xe.vert=pt,xe.frag=Ht,yr.dirty=!0},batch:function(Fi,Ri){var xn,xi,Xr,ft,tr,pr,gr;if(xn=ge.angle_instanced_arrays,xi=ct.next,xi!==ct.cur&&(xi?$e.bindFramebuffer(36160,xi.framebuffer):$e.bindFramebuffer(36160,null),ct.cur=xi),yr.dirty){var Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn;Zr=hr.dither,Zr!==yr.dither&&(Zr?$e.enable(3024):$e.disable(3024),yr.dither=Zr),Ai=hr.depth_func,Ai!==yr.depth_func&&($e.depthFunc(Ai),yr.depth_func=Ai),Qi=Mr[0],ni=Mr[1],(Qi!==Fr[0]||ni!==Fr[1])&&($e.depthRange(Qi,ni),Fr[0]=Qi,Fr[1]=ni),Zi=hr.depth_mask,Zi!==yr.depth_mask&&($e.depthMask(Zi),yr.depth_mask=Zi),aa=di[0],Mn=di[1],Un=di[2],Ga=di[3],(aa!==Di[0]||Mn!==Di[1]||Un!==Di[2]||Ga!==Di[3])&&($e.colorMask(aa,Mn,Un,Ga),Di[0]=aa,Di[1]=Mn,Di[2]=Un,Di[3]=Ga),ma=hr.cull_enable,ma!==yr.cull_enable&&(ma?$e.enable(2884):$e.disable(2884),yr.cull_enable=ma),oa=hr.cull_face,oa!==yr.cull_face&&($e.cullFace(oa),yr.cull_face=oa),ka=hr.frontFace,ka!==yr.frontFace&&($e.frontFace(ka),yr.frontFace=ka),so=hr.lineWidth,so!==yr.lineWidth&&($e.lineWidth(so),yr.lineWidth=so),Kr=hr.polygonOffset_enable,Kr!==yr.polygonOffset_enable&&(Kr?$e.enable(32823):$e.disable(32823),yr.polygonOffset_enable=Kr),Ia=Ii[0],Yo=Ii[1],(Ia!==Ci[0]||Yo!==Ci[1])&&($e.polygonOffset(Ia,Yo),Ci[0]=Ia,Ci[1]=Yo),fa=hr.sample_alpha,fa!==yr.sample_alpha&&(fa?$e.enable(32926):$e.disable(32926),yr.sample_alpha=fa),kn=hr.sample_enable,kn!==yr.sample_enable&&(kn?$e.enable(32928):$e.disable(32928),yr.sample_enable=kn),Ta=nn[0],ys=nn[1],(Ta!==ii[0]||ys!==ii[1])&&($e.sampleCoverage(Ta,ys),ii[0]=Ta,ii[1]=ys),uo=hr.stencil_mask,uo!==yr.stencil_mask&&($e.stencilMask(uo),yr.stencil_mask=uo),ls=wi[0],$a=wi[1],fo=wi[2],(ls!==Gi[0]||$a!==Gi[1]||fo!==Gi[2])&&($e.stencilFunc(ls,$a,fo),Gi[0]=ls,Gi[1]=$a,Gi[2]=fo),mn=Bt[0],ra=Bt[1],wa=Bt[2],ws=Bt[3],(mn!==yt[0]||ra!==yt[1]||wa!==yt[2]||ws!==yt[3])&&($e.stencilOpSeparate(mn,ra,wa,ws),yt[0]=mn,yt[1]=ra,yt[2]=wa,yt[3]=ws),Co=Vt[0],Po=Vt[1],ji=Vt[2],gn=Vt[3],(Co!==Wt[0]||Po!==Wt[1]||ji!==Wt[2]||gn!==Wt[3])&&($e.stencilOpSeparate(Co,Po,ji,gn),Wt[0]=Co,Wt[1]=Po,Wt[2]=ji,Wt[3]=gn)}$e.blendColor(0,0,0,0),It[0]=0,It[1]=0,It[2]=0,It[3]=0,st?$e.enable(3042):$e.disable(3042),yr.blend_enable=st,$e.blendEquationSeparate(32774,32774),rr[0]=32774,rr[1]=32774,$e.blendFuncSeparate(770,771,773,1),Dr[0]=770,Dr[1]=771,Dr[2]=773,Dr[3]=1,Ue?$e.enable(3089):$e.disable(3089),yr.scissor_enable=Ue,rt?$e.enable(2960):$e.disable(2960),yr.stencil_enable=rt,Xr=yr.profile,Xr&&(ft=performance.now(),r.count+=Ri),$e.useProgram(s.program),tr=ge.angle_instanced_arrays;var Ps,Ha,Sn,ao,Ba;for(Re.setVAO(null),Ps=p.location,Ha=Oe[Ps],Ha.buffer||$e.enableVertexAttribArray(Ps),(Ha.type!==5126||Ha.size!==1||Ha.buffer!==d||Ha.normalized!==!1||Ha.offset!==0||Ha.stride!==8)&&($e.bindBuffer(34962,d.buffer),$e.vertexAttribPointer(Ps,1,5126,!1,8,0),Ha.type=5126,Ha.size=1,Ha.buffer=d,Ha.normalized=!1,Ha.offset=0,Ha.stride=8),Ha.divisor!==0&&(tr.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=x.location,ao=Oe[Sn],ao.buffer||$e.enableVertexAttribArray(Sn),(ao.type!==5126||ao.size!==1||ao.buffer!==d||ao.normalized!==!1||ao.offset!==4||ao.stride!==8)&&($e.bindBuffer(34962,d.buffer),$e.vertexAttribPointer(Sn,1,5126,!1,8,4),ao.type=5126,ao.size=1,ao.buffer=d,ao.normalized=!1,ao.offset=4,ao.stride=8),ao.divisor!==0&&(tr.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Ba=br.elements,Ba?$e.bindBuffer(34963,Ba.buffer.buffer):Re.currentVAO&&(Ba=Ut.getElements(Re.currentVAO.elements),Ba&&$e.bindBuffer(34963,Ba.buffer.buffer)),pr=0;pr0?Yr.constant[0]:0,qs=Yr.constant.length>1?Yr.constant[1]:0,Ns=Yr.constant.length>2?Yr.constant[2]:0,Oa=Yr.constant.length>3?Yr.constant[3]:0)):(pe(Yr.buffer)?ha=Ie.createStream(34962,Yr.buffer):ha=Ie.getBuffer(Yr.buffer),_n="type"in Yr?ti[Yr.type]:ha.dtype,Ya=!!Yr.normalized,Vs=Yr.size|0,Vn=Yr.offset|0,wo=Yr.stride|0,Ra=Yr.divisor|0)),Xn=u.location,un=Oe[Xn],Go===1?(un.buffer||$e.enableVertexAttribArray(Xn),$n=Vs||2,(un.type!==_n||un.size!==$n||un.buffer!==ha||un.normalized!==Ya||un.offset!==Vn||un.stride!==wo)&&($e.bindBuffer(34962,ha.buffer),$e.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),un.type=_n,un.size=$n,un.buffer=ha,un.normalized=Ya,un.offset=Vn,un.stride=wo),un.divisor!==Ra&&(tr.vertexAttribDivisorANGLE(Xn,Ra),un.divisor=Ra)):(un.buffer&&($e.disableVertexAttribArray(Xn),un.buffer=null),(un.x!==Ys||un.y!==qs||un.z!==Ns||un.w!==Oa)&&($e.vertexAttrib4f(Xn,Ys,qs,Ns,Oa),un.x=Ys,un.y=qs,un.z=Ns,un.w=Oa)),Ka=gr.positionFractBuffer,Bi.buffer=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,tn=!1,Pa=5126,to=0,yo=0,Jo=0,pe(Bi)?(qn=!0,es=Ie.createStream(34962,Bi),Pa=es.dtype):(es=Ie.getBuffer(Bi),es?Pa=es.dtype:"constant"in Bi?(Eo=2,typeof Bi.constant=="number"?(Ja=Bi.constant,lo=eo=sa=0):(Ja=Bi.constant.length>0?Bi.constant[0]:0,lo=Bi.constant.length>1?Bi.constant[1]:0,eo=Bi.constant.length>2?Bi.constant[2]:0,sa=Bi.constant.length>3?Bi.constant[3]:0)):(pe(Bi.buffer)?es=Ie.createStream(34962,Bi.buffer):es=Ie.getBuffer(Bi.buffer),Pa="type"in Bi?ti[Bi.type]:es.dtype,tn=!!Bi.normalized,Na=Bi.size|0,to=Bi.offset|0,yo=Bi.stride|0,Jo=Bi.divisor|0)),Ao=l.location,Dn=Oe[Ao],Eo===1?(Dn.buffer||$e.enableVertexAttribArray(Ao),_a=Na||2,(Dn.type!==Pa||Dn.size!==_a||Dn.buffer!==es||Dn.normalized!==tn||Dn.offset!==to||Dn.stride!==yo)&&($e.bindBuffer(34962,es.buffer),$e.vertexAttribPointer(Ao,_a,Pa,tn,yo,to),Dn.type=Pa,Dn.size=_a,Dn.buffer=es,Dn.normalized=tn,Dn.offset=to,Dn.stride=yo),Dn.divisor!==Jo&&(tr.vertexAttribDivisorANGLE(Ao,Jo),Dn.divisor=Jo)):(Dn.buffer&&($e.disableVertexAttribArray(Ao),Dn.buffer=null),(Dn.x!==Ja||Dn.y!==lo||Dn.z!==eo||Dn.w!==sa)&&($e.vertexAttrib4f(Ao,Ja,lo,eo,sa),Dn.x=Ja,Dn.y=lo,Dn.z=eo,Dn.w=sa)),Ws=gr.positionBuffer,oi.buffer=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,pe(oi)?(Ca=!0,ts=Ie.createStream(34962,oi),ln=ts.dtype):(ts=Ie.getBuffer(oi),ts?ln=ts.dtype:"constant"in oi?(Es=2,typeof oi.constant=="number"?(Ts=oi.constant,Ho=Wa=To=0):(Ts=oi.constant.length>0?oi.constant[0]:0,Ho=oi.constant.length>1?oi.constant[1]:0,Wa=oi.constant.length>2?oi.constant[2]:0,To=oi.constant.length>3?oi.constant[3]:0)):(pe(oi.buffer)?ts=Ie.createStream(34962,oi.buffer):ts=Ie.getBuffer(oi.buffer),ln="type"in oi?ti[oi.type]:ts.dtype,qa=!!oi.normalized,Wo=oi.size|0,Bo=oi.offset|0,ko=oi.stride|0,oo=oi.divisor|0)),za=f.location,ea=Oe[za],Es===1?(ea.buffer||$e.enableVertexAttribArray(za),rs=Wo||2,(ea.type!==ln||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Bo||ea.stride!==ko)&&($e.bindBuffer(34962,ts.buffer),$e.vertexAttribPointer(za,rs,ln,qa,ko,Bo),ea.type=ln,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Bo,ea.stride=ko),ea.divisor!==oo&&(tr.vertexAttribDivisorANGLE(za,oo),ea.divisor=oo)):(ea.buffer&&($e.disableVertexAttribArray(za),ea.buffer=null),(ea.x!==Ts||ea.y!==Ho||ea.z!==Wa||ea.w!==To)&&($e.vertexAttrib4f(za,Ts,Ho,Wa,To),ea.x=Ts,ea.y=Ho,ea.z=Wa,ea.w=To)),$s=gr.positionFractBuffer,an.buffer=$s,us=!1,Ds=1,fl=0,as=0,Ma=0,Qs=0,ho=null,gs=0,Vo=!1,Do=5126,Lo=0,xs=0,ks=0,pe(an)?(us=!0,ho=Ie.createStream(34962,an),Do=ho.dtype):(ho=Ie.getBuffer(an),ho?Do=ho.dtype:"constant"in an?(Ds=2,typeof an.constant=="number"?(fl=an.constant,as=Ma=Qs=0):(fl=an.constant.length>0?an.constant[0]:0,as=an.constant.length>1?an.constant[1]:0,Ma=an.constant.length>2?an.constant[2]:0,Qs=an.constant.length>3?an.constant[3]:0)):(pe(an.buffer)?ho=Ie.createStream(34962,an.buffer):ho=Ie.getBuffer(an.buffer),Do="type"in an?ti[an.type]:ho.dtype,Vo=!!an.normalized,gs=an.size|0,Lo=an.offset|0,xs=an.stride|0,ks=an.divisor|0)),Ea=c.location,Jn=Oe[Ea],Ds===1?(Jn.buffer||$e.enableVertexAttribArray(Ea),Oo=gs||2,(Jn.type!==Do||Jn.size!==Oo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&($e.bindBuffer(34962,ho.buffer),$e.vertexAttribPointer(Ea,Oo,Do,Vo,xs,Lo),Jn.type=Do,Jn.size=Oo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&(tr.vertexAttribDivisorANGLE(Ea,ks),Jn.divisor=ks)):(Jn.buffer&&($e.disableVertexAttribArray(Ea),Jn.buffer=null),(Jn.x!==fl||Jn.y!==as||Jn.z!==Ma||Jn.w!==Qs)&&($e.vertexAttrib4f(Ea,fl,as,Ma,Qs),Jn.x=fl,Jn.y=as,Jn.z=Ma,Jn.w=Qs)),rl=gr.colorBuffer,rn.buffer=rl,Gs=!1,bs=1,zs=0,$o=0,Aa=0,os=0,_l=null,Ss=0,po=!1,go=5126,ss=0,qo=0,zo=0,pe(rn)?(Gs=!0,_l=Ie.createStream(34962,rn),go=_l.dtype):(_l=Ie.getBuffer(rn),_l?go=_l.dtype:"constant"in rn?(bs=2,typeof rn.constant=="number"?(zs=rn.constant,$o=Aa=os=0):(zs=rn.constant.length>0?rn.constant[0]:0,$o=rn.constant.length>1?rn.constant[1]:0,Aa=rn.constant.length>2?rn.constant[2]:0,os=rn.constant.length>3?rn.constant[3]:0)):(pe(rn.buffer)?_l=Ie.createStream(34962,rn.buffer):_l=Ie.getBuffer(rn.buffer),go="type"in rn?ti[rn.type]:_l.dtype,po=!!rn.normalized,Ss=rn.size|0,ss=rn.offset|0,qo=rn.stride|0,zo=rn.divisor|0)),io=h.location,Io=Oe[io],bs===1?(Io.buffer||$e.enableVertexAttribArray(io),Da=Ss||4,(Io.type!==go||Io.size!==Da||Io.buffer!==_l||Io.normalized!==po||Io.offset!==ss||Io.stride!==qo)&&($e.bindBuffer(34962,_l.buffer),$e.vertexAttribPointer(io,Da,go,po,qo,ss),Io.type=go,Io.size=Da,Io.buffer=_l,Io.normalized=po,Io.offset=ss,Io.stride=qo),Io.divisor!==zo&&(tr.vertexAttribDivisorANGLE(io,zo),Io.divisor=zo)):(Io.buffer&&($e.disableVertexAttribArray(io),Io.buffer=null),(Io.x!==zs||Io.y!==$o||Io.z!==Aa||Io.w!==os)&&($e.vertexAttrib4f(io,zs,$o,Aa,os),Io.x=zs,Io.y=$o,Io.z=Aa,Io.w=os)),vs=gr.dashLength,(!pr||fs!==vs)&&(fs=vs,$e.uniform1f(b.location,vs)),cl=gr.dashTexture,cl&&cl._reglType==="framebuffer"&&(cl=cl.color[0]),el=cl._texture,$e.uniform1i(v.location,el.bind()),Hs=gr.depth,(!pr||Ro!==Hs)&&(Ro=Hs,$e.uniform1f(k.location,Hs)),tl=gr.opacity,(!pr||Fs!==tl)&&(Fs=tl,$e.uniform1f(E.location,tl)),hl=gr.scale,Fa=hl[0],jo=hl[1],(!pr||Ms!==Fa||Rs!==jo)&&(Ms=Fa,Rs=jo,$e.uniform2f(T.location,Fa,jo)),Is=gr.scaleFract,Bs=Is[0],Gt=Is[1],(!pr||At!==Bs||wr!==Gt)&&(At=Bs,wr=Gt,$e.uniform2f(L.location,Bs,Gt)),mr=gr.thickness,(!pr||Or!==mr)&&(Or=mr,$e.uniform1f(_.location,mr)),gi=gr.translate,Ti=gi[0],Ji=gi[1],(!pr||ki!==Ti||Fn!==Ji)&&(ki=Ti,Fn=Ji,$e.uniform2f(C.location,Ti,Ji)),Pi=gr.translateFract,hi=Pi[0],Si=Pi[1],(!pr||Li!==hi||Gn!==Si)&&(Li=hi,Gn=Si,$e.uniform2f(M.location,hi,Si)),ta=P.call(this,zt,gr,pr),ya=ta[0],pa=ta[1],zn=ta[2],Cs=ta[3],(!pr||ia!==ya||va!==pa||is!==zn||Ks!==Cs)&&(ia=ya,va=pa,is=zn,Ks=Cs,$e.uniform4f(m.location,ya,pa,zn,Cs)),dl=gr.count,dl>0?Ba?tr.drawElementsInstancedANGLE(5,4,Ba.type,0<<(Ba.type-5121>>1),dl):tr.drawArraysInstancedANGLE(5,0,4,dl):dl<0&&(Ba?$e.drawElements(5,4,Ba.type,0<<(Ba.type-5121>>1)):$e.drawArrays(5,0,4)),zt.viewportWidth=vn,zt.viewportHeight=da,jn&&Ie.destroyStream(ha),qn&&Ie.destroyStream(es),Ca&&Ie.destroyStream(ts),us&&Ie.destroyStream(ho),Gs&&Ie.destroyStream(_l),el.unbind()}yr.dirty=!0,Re.setVAO(null),Xr&&(r.cpuTime+=performance.now()-ft)}}}});var k8=Te((W_r,DNe)=>{DNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt,Nt,it,Ke,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie){"use strict";var xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr;return xe=t.gl,Oe=t.context,Re=t.strings,De=t.next,ct=t.current,ge=t.draw,fe=t.elements,pe=t.buffer,dt=t.shader,It=t.attributes,Pt=t.vao,rr=t.uniforms,Hr=t.framebuffer,Dr=t.extensions,Mr=t.timer,Fr=t.isBufferArgs,di=De.blend_color,Di=ct.blend_color,Ii=De.blend_equation,Ci=ct.blend_equation,nn=De.blend_func,ii=ct.blend_func,wi=De.depth_range,Gi=ct.depth_range,Bt=De.colorMask,yt=ct.colorMask,Vt=De.polygonOffset_offset,Wt=ct.polygonOffset_offset,_r=De.sample_coverage,Lr=ct.sample_coverage,Ur=De.stencil_func,Ir=ct.stencil_func,Gr=De.stencil_opFront,jr=ct.stencil_opFront,yi=De.stencil_opBack,Ei=ct.stencil_opBack,Vi=De.scissor_box,ti=ct.scissor_box,en=De.viewport,Yr=ct.viewport,oi={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Bi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},an={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},rn={add:32774,subtract:32778,"reverse subtract":32779},Fi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ri={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},xn={cw:2304,ccw:2305},xi={},xi.stride=4,xi.offset=0,xi.divisor=1,Xr={},Xr.stride=4,Xr.offset=4,Xr.divisor=1,ft={},ft.stride=8,ft.offset=0,ft.divisor=1,tr={},tr.stride=8,tr.offset=8,tr.divisor=1,pr={},pr.stride=8,pr.offset=16,pr.divisor=1,gr={},gr.stride=8,gr.offset=24,gr.divisor=1,{draw:function(Zr){var Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms;if(Ai=Dr.angle_instanced_arrays,Qi=Hr.next,Qi!==Hr.cur&&(Qi?xe.bindFramebuffer(36160,Qi.framebuffer):xe.bindFramebuffer(36160,null),Hr.cur=Qi),ct.dirty){var jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl;jo=De.dither,jo!==ct.dither&&(jo?xe.enable(3024):xe.disable(3024),ct.dither=jo),Rs=De.depth_func,Rs!==ct.depth_func&&(xe.depthFunc(Rs),ct.depth_func=Rs),Is=wi[0],Bs=wi[1],(Is!==Gi[0]||Bs!==Gi[1])&&(xe.depthRange(Is,Bs),Gi[0]=Is,Gi[1]=Bs),At=De.depth_mask,At!==ct.depth_mask&&(xe.depthMask(At),ct.depth_mask=At),Gt=Bt[0],wr=Bt[1],mr=Bt[2],Or=Bt[3],(Gt!==yt[0]||wr!==yt[1]||mr!==yt[2]||Or!==yt[3])&&(xe.colorMask(Gt,wr,mr,Or),yt[0]=Gt,yt[1]=wr,yt[2]=mr,yt[3]=Or),gi=De.frontFace,gi!==ct.frontFace&&(xe.frontFace(gi),ct.frontFace=gi),Ti=De.lineWidth,Ti!==ct.lineWidth&&(xe.lineWidth(Ti),ct.lineWidth=Ti),ki=De.polygonOffset_enable,ki!==ct.polygonOffset_enable&&(ki?xe.enable(32823):xe.disable(32823),ct.polygonOffset_enable=ki),Ji=Vt[0],Fn=Vt[1],(Ji!==Wt[0]||Fn!==Wt[1])&&(xe.polygonOffset(Ji,Fn),Wt[0]=Ji,Wt[1]=Fn),Pi=De.sample_alpha,Pi!==ct.sample_alpha&&(Pi?xe.enable(32926):xe.disable(32926),ct.sample_alpha=Pi),hi=De.sample_enable,hi!==ct.sample_enable&&(hi?xe.enable(32928):xe.disable(32928),ct.sample_enable=hi),Li=_r[0],Si=_r[1],(Li!==Lr[0]||Si!==Lr[1])&&(xe.sampleCoverage(Li,Si),Lr[0]=Li,Lr[1]=Si),Gn=De.stencil_mask,Gn!==ct.stencil_mask&&(xe.stencilMask(Gn),ct.stencil_mask=Gn),ta=Ur[0],ya=Ur[1],ia=Ur[2],(ta!==Ir[0]||ya!==Ir[1]||ia!==Ir[2])&&(xe.stencilFunc(ta,ya,ia),Ir[0]=ta,Ir[1]=ya,Ir[2]=ia),pa=Gr[0],va=Gr[1],zn=Gr[2],is=Gr[3],(pa!==jr[0]||va!==jr[1]||zn!==jr[2]||is!==jr[3])&&(xe.stencilOpSeparate(pa,va,zn,is),jr[0]=pa,jr[1]=va,jr[2]=zn,jr[3]=is),Cs=yi[0],Ks=yi[1],dl=yi[2],xl=yi[3],(Cs!==Ei[0]||Ks!==Ei[1]||dl!==Ei[2]||xl!==Ei[3])&&(xe.stencilOpSeparate(Cs,Ks,dl,xl),Ei[0]=Cs,Ei[1]=Ks,Ei[2]=dl,Ei[3]=xl)}ni=Zr.viewport,Zi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:Oe.framebufferWidth-Zi,Un="height"in ni?ni.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,xe.viewport(Zi,aa,Mn,Un),Yr[0]=Zi,Yr[1]=aa,Yr[2]=Mn,Yr[3]=Un,xe.blendColor(0,0,0,0),Di[0]=0,Di[1]=0,Di[2]=0,Di[3]=0,n?xe.enable(3042):xe.disable(3042),ct.blend_enable=n,xe.blendEquationSeparate(32774,32774),Ci[0]=32774,Ci[1]=32774,xe.blendFuncSeparate(770,771,773,1),ii[0]=770,ii[1]=771,ii[2]=773,ii[3]=1,i?xe.enable(2884):xe.disable(2884),ct.cull_enable=i,xe.cullFace(a),ct.cull_face=a,oa=o.call(this,Oe,Zr,0),oa?xe.enable(2929):xe.disable(2929),ct.depth_enable=oa,ka=Zr.viewport,so=ka.x|0,Kr=ka.y|0,Ia="width"in ka?ka.width|0:Oe.framebufferWidth-so,Yo="height"in ka?ka.height|0:Oe.framebufferHeight-Kr,xe.scissor(so,Kr,Ia,Yo),ti[0]=so,ti[1]=Kr,ti[2]=Ia,ti[3]=Yo,s?xe.enable(3089):xe.disable(3089),ct.scissor_enable=s,u?xe.enable(2960):xe.disable(2960),ct.stencil_enable=u,fa=ct.profile,fa&&(kn=performance.now(),r.count++),xe.useProgram(l.program),Ta=Dr.angle_instanced_arrays,Pt.setVAO(null),ys=Zr.colorBuffer,xi.buffer=ys,uo=!1,ls=1,$a=0,fo=0,mn=0,ra=0,wa=null,ws=0,Co=!1,Po=5126,ji=0,gn=0,Ps=0,Fr(xi)?(uo=!0,wa=pe.createStream(34962,xi),Po=wa.dtype):(wa=pe.getBuffer(xi),wa?Po=wa.dtype:"constant"in xi?(ls=2,typeof xi.constant=="number"?($a=xi.constant,fo=mn=ra=0):($a=xi.constant.length>0?xi.constant[0]:0,fo=xi.constant.length>1?xi.constant[1]:0,mn=xi.constant.length>2?xi.constant[2]:0,ra=xi.constant.length>3?xi.constant[3]:0)):(Fr(xi.buffer)?wa=pe.createStream(34962,xi.buffer):wa=pe.getBuffer(xi.buffer),Po="type"in xi?Ri[xi.type]:wa.dtype,Co=!!xi.normalized,ws=xi.size|0,ji=xi.offset|0,gn=xi.stride|0,Ps=xi.divisor|0)),Ha=f.location,Sn=It[Ha],ls===1?(Sn.buffer||xe.enableVertexAttribArray(Ha),ao=ws||4,(Sn.type!==Po||Sn.size!==ao||Sn.buffer!==wa||Sn.normalized!==Co||Sn.offset!==ji||Sn.stride!==gn)&&(xe.bindBuffer(34962,wa.buffer),xe.vertexAttribPointer(Ha,ao,Po,Co,gn,ji),Sn.type=Po,Sn.size=ao,Sn.buffer=wa,Sn.normalized=Co,Sn.offset=ji,Sn.stride=gn),Sn.divisor!==Ps&&(Ta.vertexAttribDivisorANGLE(Ha,Ps),Sn.divisor=Ps)):(Sn.buffer&&(xe.disableVertexAttribArray(Ha),Sn.buffer=null),(Sn.x!==$a||Sn.y!==fo||Sn.z!==mn||Sn.w!==ra)&&(xe.vertexAttrib4f(Ha,$a,fo,mn,ra),Sn.x=$a,Sn.y=fo,Sn.z=mn,Sn.w=ra)),Ba=Zr.positionBuffer,tr.buffer=Ba,Ko=!1,Qo=1,Wi=0,Sa=0,Qa=0,vn=0,da=null,la=0,vo=!1,As=5126,ps=0,co=0,mo=0,Fr(tr)?(Ko=!0,da=pe.createStream(34962,tr),As=da.dtype):(da=pe.getBuffer(tr),da?As=da.dtype:"constant"in tr?(Qo=2,typeof tr.constant=="number"?(Wi=tr.constant,Sa=Qa=vn=0):(Wi=tr.constant.length>0?tr.constant[0]:0,Sa=tr.constant.length>1?tr.constant[1]:0,Qa=tr.constant.length>2?tr.constant[2]:0,vn=tr.constant.length>3?tr.constant[3]:0)):(Fr(tr.buffer)?da=pe.createStream(34962,tr.buffer):da=pe.getBuffer(tr.buffer),As="type"in tr?Ri[tr.type]:da.dtype,vo=!!tr.normalized,la=tr.size|0,ps=tr.offset|0,co=tr.stride|0,mo=tr.divisor|0)),No=c.location,jn=It[No],Qo===1?(jn.buffer||xe.enableVertexAttribArray(No),Go=la||2,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(xe.bindBuffer(34962,da.buffer),xe.vertexAttribPointer(No,Go,As,vo,co,ps),jn.type=As,jn.size=Go,jn.buffer=da,jn.normalized=vo,jn.offset=ps,jn.stride=co),jn.divisor!==mo&&(Ta.vertexAttribDivisorANGLE(No,mo),jn.divisor=mo)):(jn.buffer&&(xe.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Wi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(xe.vertexAttrib4f(No,Wi,Sa,Qa,vn),jn.x=Wi,jn.y=Sa,jn.z=Qa,jn.w=vn)),Ys=Zr.colorBuffer,Xr.buffer=Ys,qs=!1,Ns=1,Oa=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Ra=5126,Xn=0,un=0,$n=0,Fr(Xr)?(qs=!0,_n=pe.createStream(34962,Xr),Ra=_n.dtype):(_n=pe.getBuffer(Xr),_n?Ra=_n.dtype:"constant"in Xr?(Ns=2,typeof Xr.constant=="number"?(Oa=Xr.constant,ha=Vs=Ya=0):(Oa=Xr.constant.length>0?Xr.constant[0]:0,ha=Xr.constant.length>1?Xr.constant[1]:0,Vs=Xr.constant.length>2?Xr.constant[2]:0,Ya=Xr.constant.length>3?Xr.constant[3]:0)):(Fr(Xr.buffer)?_n=pe.createStream(34962,Xr.buffer):_n=pe.getBuffer(Xr.buffer),Ra="type"in Xr?Ri[Xr.type]:_n.dtype,wo=!!Xr.normalized,Vn=Xr.size|0,Xn=Xr.offset|0,un=Xr.stride|0,$n=Xr.divisor|0)),Ka=h.location,qn=It[Ka],Ns===1?(qn.buffer||xe.enableVertexAttribArray(Ka),Eo=Vn||4,(qn.type!==Ra||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==un)&&(xe.bindBuffer(34962,_n.buffer),xe.vertexAttribPointer(Ka,Eo,Ra,wo,un,Xn),qn.type=Ra,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=un),qn.divisor!==$n&&(Ta.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(xe.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Oa||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(xe.vertexAttrib4f(Ka,Oa,ha,Vs,Ya),qn.x=Oa,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=Zr.positionBuffer,pr.buffer=Ja,lo=!1,eo=1,sa=0,es=0,Na=0,tn=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Dn=0,_a=0,Fr(pr)?(lo=!0,Pa=pe.createStream(34962,pr),Jo=Pa.dtype):(Pa=pe.getBuffer(pr),Pa?Jo=Pa.dtype:"constant"in pr?(eo=2,typeof pr.constant=="number"?(sa=pr.constant,es=Na=tn=0):(sa=pr.constant.length>0?pr.constant[0]:0,es=pr.constant.length>1?pr.constant[1]:0,Na=pr.constant.length>2?pr.constant[2]:0,tn=pr.constant.length>3?pr.constant[3]:0)):(Fr(pr.buffer)?Pa=pe.createStream(34962,pr.buffer):Pa=pe.getBuffer(pr.buffer),Jo="type"in pr?Ri[pr.type]:Pa.dtype,yo=!!pr.normalized,to=pr.size|0,Ao=pr.offset|0,Dn=pr.stride|0,_a=pr.divisor|0)),Ws=d.location,Ca=It[Ws],eo===1?(Ca.buffer||xe.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Dn)&&(xe.bindBuffer(34962,Pa.buffer),xe.vertexAttribPointer(Ws,Es,Jo,yo,Dn,Ao),Ca.type=Jo,Ca.size=Es,Ca.buffer=Pa,Ca.normalized=yo,Ca.offset=Ao,Ca.stride=Dn),Ca.divisor!==_a&&(Ta.vertexAttribDivisorANGLE(Ws,_a),Ca.divisor=_a)):(Ca.buffer&&(xe.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==tn)&&(xe.vertexAttrib4f(Ws,sa,es,Na,tn),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=tn)),Ts=x.location,Ho=It[Ts],Ho.buffer||xe.enableVertexAttribArray(Ts),(Ho.type!==5126||Ho.size!==1||Ho.buffer!==p||Ho.normalized!==!1||Ho.offset!==0||Ho.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Ts,1,5126,!1,8,0),Ho.type=5126,Ho.size=1,Ho.buffer=p,Ho.normalized=!1,Ho.offset=0,Ho.stride=8),Ho.divisor!==0&&(Ta.vertexAttribDivisorANGLE(Ts,0),Ho.divisor=0),Wa=b.location,To=It[Wa],To.buffer||xe.enableVertexAttribArray(Wa),(To.type!==5126||To.size!==1||To.buffer!==p||To.normalized!==!1||To.offset!==4||To.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Wa,1,5126,!1,8,4),To.type=5126,To.size=1,To.buffer=p,To.normalized=!1,To.offset=4,To.stride=8),To.divisor!==0&&(Ta.vertexAttribDivisorANGLE(Wa,0),To.divisor=0),ts=Zr.positionBuffer,gr.buffer=ts,Wo=!1,qa=1,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,Fr(gr)?(Wo=!0,za=pe.createStream(34962,gr),$s=za.dtype):(za=pe.getBuffer(gr),za?$s=za.dtype:"constant"in gr?(qa=2,typeof gr.constant=="number"?(ln=gr.constant,Bo=ko=oo=0):(ln=gr.constant.length>0?gr.constant[0]:0,Bo=gr.constant.length>1?gr.constant[1]:0,ko=gr.constant.length>2?gr.constant[2]:0,oo=gr.constant.length>3?gr.constant[3]:0)):(Fr(gr.buffer)?za=pe.createStream(34962,gr.buffer):za=pe.getBuffer(gr.buffer),$s="type"in gr?Ri[gr.type]:za.dtype,rs=!!gr.normalized,ea=gr.size|0,us=gr.offset|0,Ds=gr.stride|0,fl=gr.divisor|0)),as=v.location,Ma=It[as],qa===1?(Ma.buffer||xe.enableVertexAttribArray(as),Qs=ea||2,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Ds)&&(xe.bindBuffer(34962,za.buffer),xe.vertexAttribPointer(as,Qs,$s,rs,Ds,us),Ma.type=$s,Ma.size=Qs,Ma.buffer=za,Ma.normalized=rs,Ma.offset=us,Ma.stride=Ds),Ma.divisor!==fl&&(Ta.vertexAttribDivisorANGLE(as,fl),Ma.divisor=fl)):(Ma.buffer&&(xe.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==ln||Ma.y!==Bo||Ma.z!==ko||Ma.w!==oo)&&(xe.vertexAttrib4f(as,ln,Bo,ko,oo),Ma.x=ln,Ma.y=Bo,Ma.z=ko,Ma.w=oo)),ho=Zr.positionBuffer,ft.buffer=ho,gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Fr(ft)?(gs=!0,Ea=pe.createStream(34962,ft),rl=Ea.dtype):(Ea=pe.getBuffer(ft),Ea?rl=Ea.dtype:"constant"in ft?(Vo=2,typeof ft.constant=="number"?(Do=ft.constant,Lo=xs=ks=0):(Do=ft.constant.length>0?ft.constant[0]:0,Lo=ft.constant.length>1?ft.constant[1]:0,xs=ft.constant.length>2?ft.constant[2]:0,ks=ft.constant.length>3?ft.constant[3]:0)):(Fr(ft.buffer)?Ea=pe.createStream(34962,ft.buffer):Ea=pe.getBuffer(ft.buffer),rl="type"in ft?Ri[ft.type]:Ea.dtype,Oo=!!ft.normalized,Jn=ft.size|0,Gs=ft.offset|0,bs=ft.stride|0,zs=ft.divisor|0)),$o=k.location,Aa=It[$o],Vo===1?(Aa.buffer||xe.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Oo||Aa.offset!==Gs||Aa.stride!==bs)&&(xe.bindBuffer(34962,Ea.buffer),xe.vertexAttribPointer($o,os,rl,Oo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Oo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Ta.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(xe.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Do||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(xe.vertexAttrib4f($o,Do,Lo,xs,ks),Aa.x=Do,Aa.y=Lo,Aa.z=xs,Aa.w=ks)),_l=Zr.dashLength,xe.uniform1f(E.location,_l),Ss=Zr.dashTexture,Ss&&Ss._reglType==="framebuffer"&&(Ss=Ss.color[0]),po=Ss._texture,xe.uniform1i(T.location,po.bind()),go=Zr.depth,xe.uniform1f(L.location,go),ss=Zr.miterLimit,xe.uniform1f(_.location,ss),qo=M.call(this,Oe,Zr,0),xe.uniform1f(C.location,qo),zo=Zr.opacity,xe.uniform1f(m.location,zo),io=Zr.scale,Io=io[0],Da=io[1],xe.uniform2f(P.location,Io,Da),vs=Zr.thickness,xe.uniform1f(A.location,vs),fs=Zr.translate,cl=fs[0],el=fs[1],xe.uniform2f(B.location,cl,el),Hs=U.call(this,Oe,Zr,0),Ro=Hs[0],tl=Hs[1],Fs=Hs[2],hl=Hs[3],xe.uniform4f(F.location,Ro,tl,Fs,hl),Fa=ge.elements,Fa?xe.bindBuffer(34963,Fa.buffer.buffer):Pt.currentVAO&&(Fa=fe.getElements(Pt.currentVAO.elements),Fa&&xe.bindBuffer(34963,Fa.buffer.buffer)),Ms=Zr.count,Ms>0?Fa?Ta.drawElementsInstancedANGLE(5,4,Fa.type,0<<(Fa.type-5121>>1),Ms):Ta.drawArraysInstancedANGLE(5,0,4,Ms):Ms<0&&(Fa?xe.drawElements(5,4,Fa.type,0<<(Fa.type-5121>>1)):xe.drawArrays(5,0,4)),ct.dirty=!0,Pt.setVAO(null),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,fa&&(r.cpuTime+=performance.now()-kn),uo&&pe.destroyStream(wa),Ko&&pe.destroyStream(da),qs&&pe.destroyStream(_n),lo&&pe.destroyStream(Pa),Wo&&pe.destroyStream(za),gs&&pe.destroyStream(Ea),po.unbind()},scope:function(Zr,Ai,Qi){var ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,iu,tu,Wu,Qu,Ju,ju,Xu,lf,xf,ef,tf,Z,se,ze,Xe,Qe;ni=Zr.viewport,Zi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:Oe.framebufferWidth-Zi,Un="height"in ni?ni.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,oa=en[0],en[0]=Zi,ka=en[1],en[1]=aa,so=en[2],en[2]=Mn,Kr=en[3],en[3]=Un,Ia=di[0],di[0]=G,Yo=di[1],di[1]=j,fa=di[2],di[2]=H,kn=di[3],di[3]=N,Ta=De.blend_enable,De.blend_enable=W,ys=Ii[0],Ii[0]=re,uo=Ii[1],Ii[1]=ae,ls=nn[0],nn[0]=be,$a=nn[1],nn[1]=Pe,fo=nn[2],nn[2]=Ce,mn=nn[3],nn[3]=de,ra=De.cull_enable,De.cull_enable=te,wa=De.cull_face,De.cull_face=ke,ws=o.call(this,Oe,Zr,Qi),Co=De.depth_enable,De.depth_enable=ws,Po=Zr.viewport,ji=Po.x|0,gn=Po.y|0,Ps="width"in Po?Po.width|0:Oe.framebufferWidth-ji,Ha="height"in Po?Po.height|0:Oe.framebufferHeight-gn,Sn=Vi[0],Vi[0]=ji,ao=Vi[1],Vi[1]=gn,Ba=Vi[2],Vi[2]=Ps,Ko=Vi[3],Vi[3]=Ha,Qo=De.scissor_enable,De.scissor_enable=Ee,Wi=De.stencil_enable,De.stencil_enable=Me,Sa=ct.profile,Sa&&(Qa=performance.now(),r.count++),vn=ge.offset,ge.offset=Ne,da=ge.count,ge.count=Fe,la=Zr.count,vo=ge.instances,ge.instances=la,As=ge.primitive,ge.primitive=ye,ps=M.call(this,Oe,Zr,Qi),co=rr[Ve],rr[Ve]=ps,mo=Zr.miterLimit,No=rr[ce],rr[ce]=mo,jn=Zr.scale,Go=rr[Ye],rr[Ye]=jn,Ys=Zr.scaleFract,qs=rr[nt],rr[nt]=Ys,Ns=Zr.translateFract,Oa=rr[gt],rr[gt]=Ns,ha=Zr.translate,Vs=rr[Nt],rr[Nt]=ha,Ya=Zr.thickness,_n=rr[it],rr[it]=Ya,Vn=Zr.dashTexture,wo=rr[Ke],rr[Ke]=Vn,Ra=Zr.opacity,Xn=rr[kt],rr[kt]=Ra,un=Oe.pixelRatio,$n=rr[Tt],rr[Tt]=un,Ka=Zr.id,qn=rr[St],rr[St]=Ka,Eo=Zr.dashLength,Ja=rr[Dt],rr[Dt]=Eo,lo=U.call(this,Oe,Zr,Qi),eo=rr[Zt],rr[Zt]=lo,sa=Zr.depth,es=rr[Et],rr[Et]=sa,Na=Ae.state,Ae.state=1,tn=Ae.x,Ae.x=0,Pa=Ae.y,Ae.y=0,to=Ae.z,Ae.z=0,yo=Ae.w,Ae.w=0,Jo=Ae.buffer,Ae.buffer=p,Ao=Ae.size,Ae.size=0,Dn=Ae.normalized,Ae.normalized=!1,_a=Ae.type,Ae.type=5126,Ws=Ae.offset,Ae.offset=0,Ca=Ae.stride,Ae.stride=8,Es=Ae.divisor,Ae.divisor=0,Ts=at.state,at.state=1,Ho=at.x,at.x=0,Wa=at.y,at.y=0,To=at.z,at.z=0,ts=at.w,at.w=0,Wo=at.buffer,at.buffer=p,qa=at.size,at.size=0,ln=at.normalized,at.normalized=!1,Bo=at.type,at.type=5126,ko=at.offset,at.offset=4,oo=at.stride,at.stride=8,za=at.divisor,at.divisor=0,ea=Zr.colorBuffer,xi.buffer=ea,rs=!1,$s=1,us=0,Ds=0,fl=0,as=0,Ma=null,Qs=0,ho=!1,gs=5126,Vo=0,Do=0,Lo=0,Fr(xi)?(rs=!0,Ma=pe.createStream(34962,xi),gs=Ma.dtype):(Ma=pe.getBuffer(xi),Ma?gs=Ma.dtype:"constant"in xi?($s=2,typeof xi.constant=="number"?(us=xi.constant,Ds=fl=as=0):(us=xi.constant.length>0?xi.constant[0]:0,Ds=xi.constant.length>1?xi.constant[1]:0,fl=xi.constant.length>2?xi.constant[2]:0,as=xi.constant.length>3?xi.constant[3]:0)):(Fr(xi.buffer)?Ma=pe.createStream(34962,xi.buffer):Ma=pe.getBuffer(xi.buffer),gs="type"in xi?Ri[xi.type]:Ma.dtype,ho=!!xi.normalized,Qs=xi.size|0,Vo=xi.offset|0,Do=xi.stride|0,Lo=xi.divisor|0)),xs=wt.state,wt.state=$s,ks=wt.x,wt.x=us,Ea=wt.y,wt.y=Ds,Jn=wt.z,wt.z=fl,Oo=wt.w,wt.w=as,rl=wt.buffer,wt.buffer=Ma,Gs=wt.size,wt.size=Qs,bs=wt.normalized,wt.normalized=ho,zs=wt.type,wt.type=gs,$o=wt.offset,wt.offset=Vo,Aa=wt.stride,wt.stride=Do,os=wt.divisor,wt.divisor=Lo,_l=Zr.colorBuffer,Xr.buffer=_l,Ss=!1,po=1,go=0,ss=0,qo=0,zo=0,io=null,Io=0,Da=!1,vs=5126,fs=0,cl=0,el=0,Fr(Xr)?(Ss=!0,io=pe.createStream(34962,Xr),vs=io.dtype):(io=pe.getBuffer(Xr),io?vs=io.dtype:"constant"in Xr?(po=2,typeof Xr.constant=="number"?(go=Xr.constant,ss=qo=zo=0):(go=Xr.constant.length>0?Xr.constant[0]:0,ss=Xr.constant.length>1?Xr.constant[1]:0,qo=Xr.constant.length>2?Xr.constant[2]:0,zo=Xr.constant.length>3?Xr.constant[3]:0)):(Fr(Xr.buffer)?io=pe.createStream(34962,Xr.buffer):io=pe.getBuffer(Xr.buffer),vs="type"in Xr?Ri[Xr.type]:io.dtype,Da=!!Xr.normalized,Io=Xr.size|0,fs=Xr.offset|0,cl=Xr.stride|0,el=Xr.divisor|0)),Hs=vt.state,vt.state=po,Ro=vt.x,vt.x=go,tl=vt.y,vt.y=ss,Fs=vt.z,vt.z=qo,hl=vt.w,vt.w=zo,Fa=vt.buffer,vt.buffer=io,Ms=vt.size,vt.size=Io,jo=vt.normalized,vt.normalized=Da,Rs=vt.type,vt.type=vs,Is=vt.offset,vt.offset=fs,Bs=vt.stride,vt.stride=cl,At=vt.divisor,vt.divisor=el,Gt=Zr.positionBuffer,ft.buffer=Gt,wr=!1,mr=1,Or=0,gi=0,Ti=0,ki=0,Ji=null,Fn=0,Pi=!1,hi=5126,Li=0,Si=0,Gn=0,Fr(ft)?(wr=!0,Ji=pe.createStream(34962,ft),hi=Ji.dtype):(Ji=pe.getBuffer(ft),Ji?hi=Ji.dtype:"constant"in ft?(mr=2,typeof ft.constant=="number"?(Or=ft.constant,gi=Ti=ki=0):(Or=ft.constant.length>0?ft.constant[0]:0,gi=ft.constant.length>1?ft.constant[1]:0,Ti=ft.constant.length>2?ft.constant[2]:0,ki=ft.constant.length>3?ft.constant[3]:0)):(Fr(ft.buffer)?Ji=pe.createStream(34962,ft.buffer):Ji=pe.getBuffer(ft.buffer),hi="type"in ft?Ri[ft.type]:Ji.dtype,Pi=!!ft.normalized,Fn=ft.size|0,Li=ft.offset|0,Si=ft.stride|0,Gn=ft.divisor|0)),ta=st.state,st.state=mr,ya=st.x,st.x=Or,ia=st.y,st.y=gi,pa=st.z,st.z=Ti,va=st.w,st.w=ki,zn=st.buffer,st.buffer=Ji,is=st.size,st.size=Fn,Cs=st.normalized,st.normalized=Pi,Ks=st.type,st.type=hi,dl=st.offset,st.offset=Li,xl=st.stride,st.stride=Si,Ol=st.divisor,st.divisor=Gn,bl=Zr.positionBuffer,tr.buffer=bl,eu=!1,Zl=1,Vl=0,ja=0,ns=0,Js=0,cs=null,sl=0,ll=!1,il=5126,zl=0,Ml=0,Rl=0,Fr(tr)?(eu=!0,cs=pe.createStream(34962,tr),il=cs.dtype):(cs=pe.getBuffer(tr),cs?il=cs.dtype:"constant"in tr?(Zl=2,typeof tr.constant=="number"?(Vl=tr.constant,ja=ns=Js=0):(Vl=tr.constant.length>0?tr.constant[0]:0,ja=tr.constant.length>1?tr.constant[1]:0,ns=tr.constant.length>2?tr.constant[2]:0,Js=tr.constant.length>3?tr.constant[3]:0)):(Fr(tr.buffer)?cs=pe.createStream(34962,tr.buffer):cs=pe.getBuffer(tr.buffer),il="type"in tr?Ri[tr.type]:cs.dtype,ll=!!tr.normalized,sl=tr.size|0,zl=tr.offset|0,Ml=tr.stride|0,Rl=tr.divisor|0)),Al=Ue.state,Ue.state=Zl,Ll=Ue.x,Ue.x=Vl,ms=Ue.y,Ue.y=ja,Os=Ue.z,Ue.z=ns,Xl=Ue.w,Ue.w=Js,Gl=Ue.buffer,Ue.buffer=cs,Ul=Ue.size,Ue.size=sl,le=Ue.normalized,Ue.normalized=ll,w=Ue.type,Ue.type=il,q=Ue.offset,Ue.offset=zl,Q=Ue.stride,Ue.stride=Ml,ee=Ue.divisor,Ue.divisor=Rl,ue=Zr.positionBuffer,pr.buffer=ue,Ge=!1,et=1,mt=0,Ft=0,ir=0,or=0,kr=null,Vr=0,he=!1,Se=5126,qe=0,He=0,lt=0,Fr(pr)?(Ge=!0,kr=pe.createStream(34962,pr),Se=kr.dtype):(kr=pe.getBuffer(pr),kr?Se=kr.dtype:"constant"in pr?(et=2,typeof pr.constant=="number"?(mt=pr.constant,Ft=ir=or=0):(mt=pr.constant.length>0?pr.constant[0]:0,Ft=pr.constant.length>1?pr.constant[1]:0,ir=pr.constant.length>2?pr.constant[2]:0,or=pr.constant.length>3?pr.constant[3]:0)):(Fr(pr.buffer)?kr=pe.createStream(34962,pr.buffer):kr=pe.getBuffer(pr.buffer),Se="type"in pr?Ri[pr.type]:kr.dtype,he=!!pr.normalized,Vr=pr.size|0,qe=pr.offset|0,He=pr.stride|0,lt=pr.divisor|0)),tt=rt.state,rt.state=et,pt=rt.x,rt.x=mt,Ht=rt.y,rt.y=Ft,nr=rt.z,rt.z=ir,fr=rt.w,rt.w=or,Ar=rt.buffer,rt.buffer=kr,Rr=rt.size,rt.size=Vr,ri=rt.normalized,rt.normalized=he,si=rt.type,rt.type=Se,Mi=rt.offset,rt.offset=qe,hn=rt.stride,rt.stride=He,Zn=rt.divisor,rt.divisor=lt,Yn=Zr.positionBuffer,gr.buffer=Yn,Ua=!1,Fo=1,vl=0,Us=0,ml=0,au=0,Sl=null,Yl=0,ql=!1,ou=5126,Pu=0,iu=0,tu=0,Fr(gr)?(Ua=!0,Sl=pe.createStream(34962,gr),ou=Sl.dtype):(Sl=pe.getBuffer(gr),Sl?ou=Sl.dtype:"constant"in gr?(Fo=2,typeof gr.constant=="number"?(vl=gr.constant,Us=ml=au=0):(vl=gr.constant.length>0?gr.constant[0]:0,Us=gr.constant.length>1?gr.constant[1]:0,ml=gr.constant.length>2?gr.constant[2]:0,au=gr.constant.length>3?gr.constant[3]:0)):(Fr(gr.buffer)?Sl=pe.createStream(34962,gr.buffer):Sl=pe.getBuffer(gr.buffer),ou="type"in gr?Ri[gr.type]:Sl.dtype,ql=!!gr.normalized,Yl=gr.size|0,Pu=gr.offset|0,iu=gr.stride|0,tu=gr.divisor|0)),Wu=$e.state,$e.state=Fo,Qu=$e.x,$e.x=vl,Ju=$e.y,$e.y=Us,ju=$e.z,$e.z=ml,Xu=$e.w,$e.w=au,lf=$e.buffer,$e.buffer=Sl,xf=$e.size,$e.size=Yl,ef=$e.normalized,$e.normalized=ql,tf=$e.type,$e.type=ou,Z=$e.offset,$e.offset=Pu,se=$e.stride,$e.stride=iu,ze=$e.divisor,$e.divisor=tu,Xe=dt.vert,dt.vert=zt,Qe=dt.frag,dt.frag=Yt,ct.dirty=!0,Ai(Oe,Zr,Qi),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,en[0]=oa,en[1]=ka,en[2]=so,en[3]=Kr,di[0]=Ia,di[1]=Yo,di[2]=fa,di[3]=kn,De.blend_enable=Ta,Ii[0]=ys,Ii[1]=uo,nn[0]=ls,nn[1]=$a,nn[2]=fo,nn[3]=mn,De.cull_enable=ra,De.cull_face=wa,De.depth_enable=Co,Vi[0]=Sn,Vi[1]=ao,Vi[2]=Ba,Vi[3]=Ko,De.scissor_enable=Qo,De.stencil_enable=Wi,Sa&&(r.cpuTime+=performance.now()-Qa),ge.offset=vn,ge.count=da,ge.instances=vo,ge.primitive=As,rr[Ve]=co,rr[ce]=No,rr[Ye]=Go,rr[nt]=qs,rr[gt]=Oa,rr[Nt]=Vs,rr[it]=_n,rr[Ke]=wo,rr[kt]=Xn,rr[Tt]=$n,rr[St]=qn,rr[Dt]=Ja,rr[Zt]=eo,rr[Et]=es,Ae.state=Na,Ae.x=tn,Ae.y=Pa,Ae.z=to,Ae.w=yo,Ae.buffer=Jo,Ae.size=Ao,Ae.normalized=Dn,Ae.type=_a,Ae.offset=Ws,Ae.stride=Ca,Ae.divisor=Es,at.state=Ts,at.x=Ho,at.y=Wa,at.z=To,at.w=ts,at.buffer=Wo,at.size=qa,at.normalized=ln,at.type=Bo,at.offset=ko,at.stride=oo,at.divisor=za,rs&&pe.destroyStream(Ma),wt.state=xs,wt.x=ks,wt.y=Ea,wt.z=Jn,wt.w=Oo,wt.buffer=rl,wt.size=Gs,wt.normalized=bs,wt.type=zs,wt.offset=$o,wt.stride=Aa,wt.divisor=os,Ss&&pe.destroyStream(io),vt.state=Hs,vt.x=Ro,vt.y=tl,vt.z=Fs,vt.w=hl,vt.buffer=Fa,vt.size=Ms,vt.normalized=jo,vt.type=Rs,vt.offset=Is,vt.stride=Bs,vt.divisor=At,wr&&pe.destroyStream(Ji),st.state=ta,st.x=ya,st.y=ia,st.z=pa,st.w=va,st.buffer=zn,st.size=is,st.normalized=Cs,st.type=Ks,st.offset=dl,st.stride=xl,st.divisor=Ol,eu&&pe.destroyStream(cs),Ue.state=Al,Ue.x=Ll,Ue.y=ms,Ue.z=Os,Ue.w=Xl,Ue.buffer=Gl,Ue.size=Ul,Ue.normalized=le,Ue.type=w,Ue.offset=q,Ue.stride=Q,Ue.divisor=ee,Ge&&pe.destroyStream(kr),rt.state=tt,rt.x=pt,rt.y=Ht,rt.z=nr,rt.w=fr,rt.buffer=Ar,rt.size=Rr,rt.normalized=ri,rt.type=si,rt.offset=Mi,rt.stride=hn,rt.divisor=Zn,Ua&&pe.destroyStream(Sl),$e.state=Wu,$e.x=Qu,$e.y=Ju,$e.z=ju,$e.w=Xu,$e.buffer=lf,$e.size=xf,$e.normalized=ef,$e.type=tf,$e.offset=Z,$e.stride=se,$e.divisor=ze,dt.vert=Xe,dt.frag=Qe,ct.dirty=!0},batch:function(Zr,Ai){var Qi,ni,Zi,aa,Mn,Un,Ga;if(Qi=Dr.angle_instanced_arrays,ni=Hr.next,ni!==Hr.cur&&(ni?xe.bindFramebuffer(36160,ni.framebuffer):xe.bindFramebuffer(36160,null),Hr.cur=ni),ct.dirty){var ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo;ma=De.dither,ma!==ct.dither&&(ma?xe.enable(3024):xe.disable(3024),ct.dither=ma),oa=De.depth_func,oa!==ct.depth_func&&(xe.depthFunc(oa),ct.depth_func=oa),ka=wi[0],so=wi[1],(ka!==Gi[0]||so!==Gi[1])&&(xe.depthRange(ka,so),Gi[0]=ka,Gi[1]=so),Kr=De.depth_mask,Kr!==ct.depth_mask&&(xe.depthMask(Kr),ct.depth_mask=Kr),Ia=Bt[0],Yo=Bt[1],fa=Bt[2],kn=Bt[3],(Ia!==yt[0]||Yo!==yt[1]||fa!==yt[2]||kn!==yt[3])&&(xe.colorMask(Ia,Yo,fa,kn),yt[0]=Ia,yt[1]=Yo,yt[2]=fa,yt[3]=kn),Ta=De.frontFace,Ta!==ct.frontFace&&(xe.frontFace(Ta),ct.frontFace=Ta),ys=De.lineWidth,ys!==ct.lineWidth&&(xe.lineWidth(ys),ct.lineWidth=ys),uo=De.polygonOffset_enable,uo!==ct.polygonOffset_enable&&(uo?xe.enable(32823):xe.disable(32823),ct.polygonOffset_enable=uo),ls=Vt[0],$a=Vt[1],(ls!==Wt[0]||$a!==Wt[1])&&(xe.polygonOffset(ls,$a),Wt[0]=ls,Wt[1]=$a),fo=De.sample_alpha,fo!==ct.sample_alpha&&(fo?xe.enable(32926):xe.disable(32926),ct.sample_alpha=fo),mn=De.sample_enable,mn!==ct.sample_enable&&(mn?xe.enable(32928):xe.disable(32928),ct.sample_enable=mn),ra=_r[0],wa=_r[1],(ra!==Lr[0]||wa!==Lr[1])&&(xe.sampleCoverage(ra,wa),Lr[0]=ra,Lr[1]=wa),ws=De.stencil_mask,ws!==ct.stencil_mask&&(xe.stencilMask(ws),ct.stencil_mask=ws),Co=Ur[0],Po=Ur[1],ji=Ur[2],(Co!==Ir[0]||Po!==Ir[1]||ji!==Ir[2])&&(xe.stencilFunc(Co,Po,ji),Ir[0]=Co,Ir[1]=Po,Ir[2]=ji),gn=Gr[0],Ps=Gr[1],Ha=Gr[2],Sn=Gr[3],(gn!==jr[0]||Ps!==jr[1]||Ha!==jr[2]||Sn!==jr[3])&&(xe.stencilOpSeparate(gn,Ps,Ha,Sn),jr[0]=gn,jr[1]=Ps,jr[2]=Ha,jr[3]=Sn),ao=yi[0],Ba=yi[1],Ko=yi[2],Qo=yi[3],(ao!==Ei[0]||Ba!==Ei[1]||Ko!==Ei[2]||Qo!==Ei[3])&&(xe.stencilOpSeparate(ao,Ba,Ko,Qo),Ei[0]=ao,Ei[1]=Ba,Ei[2]=Ko,Ei[3]=Qo)}xe.blendColor(0,0,0,0),Di[0]=0,Di[1]=0,Di[2]=0,Di[3]=0,hr?xe.enable(3042):xe.disable(3042),ct.blend_enable=hr,xe.blendEquationSeparate(32774,32774),Ci[0]=32774,Ci[1]=32774,xe.blendFuncSeparate(770,771,773,1),ii[0]=770,ii[1]=771,ii[2]=773,ii[3]=1,yr?xe.enable(2884):xe.disable(2884),ct.cull_enable=yr,xe.cullFace(br),ct.cull_face=br,Ut?xe.enable(3089):xe.disable(3089),ct.scissor_enable=Ut,Ie?xe.enable(2960):xe.disable(2960),ct.stencil_enable=Ie,Zi=ct.profile,Zi&&(aa=performance.now(),r.count+=Ai),xe.useProgram(l.program),Mn=Dr.angle_instanced_arrays;var Wi,Sa,Qa,vn,da;for(Pt.setVAO(null),Wi=x.location,Sa=It[Wi],Sa.buffer||xe.enableVertexAttribArray(Wi),(Sa.type!==5126||Sa.size!==1||Sa.buffer!==p||Sa.normalized!==!1||Sa.offset!==0||Sa.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Wi,1,5126,!1,8,0),Sa.type=5126,Sa.size=1,Sa.buffer=p,Sa.normalized=!1,Sa.offset=0,Sa.stride=8),Sa.divisor!==0&&(Mn.vertexAttribDivisorANGLE(Wi,0),Sa.divisor=0),Qa=b.location,vn=It[Qa],vn.buffer||xe.enableVertexAttribArray(Qa),(vn.type!==5126||vn.size!==1||vn.buffer!==p||vn.normalized!==!1||vn.offset!==4||vn.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Qa,1,5126,!1,8,4),vn.type=5126,vn.size=1,vn.buffer=p,vn.normalized=!1,vn.offset=4,vn.stride=8),vn.divisor!==0&&(Mn.vertexAttribDivisorANGLE(Qa,0),vn.divisor=0),da=ge.elements,da?xe.bindBuffer(34963,da.buffer.buffer):Pt.currentVAO&&(da=fe.getElements(Pt.currentVAO.elements),da&&xe.bindBuffer(34963,da.buffer.buffer)),Un=0;Un0?xi.constant[0]:0,Vn=xi.constant.length>1?xi.constant[1]:0,wo=xi.constant.length>2?xi.constant[2]:0,Ra=xi.constant.length>3?xi.constant[3]:0)):(Fr(xi.buffer)?Xn=pe.createStream(34962,xi.buffer):Xn=pe.getBuffer(xi.buffer),Ka="type"in xi?Ri[xi.type]:Xn.dtype,$n=!!xi.normalized,un=xi.size|0,qn=xi.offset|0,Eo=xi.stride|0,Ja=xi.divisor|0)),lo=f.location,eo=It[lo],Ya===1?(eo.buffer||xe.enableVertexAttribArray(lo),sa=un||4,(eo.type!==Ka||eo.size!==sa||eo.buffer!==Xn||eo.normalized!==$n||eo.offset!==qn||eo.stride!==Eo)&&(xe.bindBuffer(34962,Xn.buffer),xe.vertexAttribPointer(lo,sa,Ka,$n,Eo,qn),eo.type=Ka,eo.size=sa,eo.buffer=Xn,eo.normalized=$n,eo.offset=qn,eo.stride=Eo),eo.divisor!==Ja&&(Mn.vertexAttribDivisorANGLE(lo,Ja),eo.divisor=Ja)):(eo.buffer&&(xe.disableVertexAttribArray(lo),eo.buffer=null),(eo.x!==_n||eo.y!==Vn||eo.z!==wo||eo.w!==Ra)&&(xe.vertexAttrib4f(lo,_n,Vn,wo,Ra),eo.x=_n,eo.y=Vn,eo.z=wo,eo.w=Ra)),es=Ga.positionBuffer,tr.buffer=es,Na=!1,tn=1,Pa=0,to=0,yo=0,Jo=0,Ao=null,Dn=0,_a=!1,Ws=5126,Ca=0,Es=0,Ts=0,Fr(tr)?(Na=!0,Ao=pe.createStream(34962,tr),Ws=Ao.dtype):(Ao=pe.getBuffer(tr),Ao?Ws=Ao.dtype:"constant"in tr?(tn=2,typeof tr.constant=="number"?(Pa=tr.constant,to=yo=Jo=0):(Pa=tr.constant.length>0?tr.constant[0]:0,to=tr.constant.length>1?tr.constant[1]:0,yo=tr.constant.length>2?tr.constant[2]:0,Jo=tr.constant.length>3?tr.constant[3]:0)):(Fr(tr.buffer)?Ao=pe.createStream(34962,tr.buffer):Ao=pe.getBuffer(tr.buffer),Ws="type"in tr?Ri[tr.type]:Ao.dtype,_a=!!tr.normalized,Dn=tr.size|0,Ca=tr.offset|0,Es=tr.stride|0,Ts=tr.divisor|0)),Ho=c.location,Wa=It[Ho],tn===1?(Wa.buffer||xe.enableVertexAttribArray(Ho),To=Dn||2,(Wa.type!==Ws||Wa.size!==To||Wa.buffer!==Ao||Wa.normalized!==_a||Wa.offset!==Ca||Wa.stride!==Es)&&(xe.bindBuffer(34962,Ao.buffer),xe.vertexAttribPointer(Ho,To,Ws,_a,Es,Ca),Wa.type=Ws,Wa.size=To,Wa.buffer=Ao,Wa.normalized=_a,Wa.offset=Ca,Wa.stride=Es),Wa.divisor!==Ts&&(Mn.vertexAttribDivisorANGLE(Ho,Ts),Wa.divisor=Ts)):(Wa.buffer&&(xe.disableVertexAttribArray(Ho),Wa.buffer=null),(Wa.x!==Pa||Wa.y!==to||Wa.z!==yo||Wa.w!==Jo)&&(xe.vertexAttrib4f(Ho,Pa,to,yo,Jo),Wa.x=Pa,Wa.y=to,Wa.z=yo,Wa.w=Jo)),ts=Ga.colorBuffer,Xr.buffer=ts,Wo=!1,qa=1,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,Fr(Xr)?(Wo=!0,za=pe.createStream(34962,Xr),$s=za.dtype):(za=pe.getBuffer(Xr),za?$s=za.dtype:"constant"in Xr?(qa=2,typeof Xr.constant=="number"?(ln=Xr.constant,Bo=ko=oo=0):(ln=Xr.constant.length>0?Xr.constant[0]:0,Bo=Xr.constant.length>1?Xr.constant[1]:0,ko=Xr.constant.length>2?Xr.constant[2]:0,oo=Xr.constant.length>3?Xr.constant[3]:0)):(Fr(Xr.buffer)?za=pe.createStream(34962,Xr.buffer):za=pe.getBuffer(Xr.buffer),$s="type"in Xr?Ri[Xr.type]:za.dtype,rs=!!Xr.normalized,ea=Xr.size|0,us=Xr.offset|0,Ds=Xr.stride|0,fl=Xr.divisor|0)),as=h.location,Ma=It[as],qa===1?(Ma.buffer||xe.enableVertexAttribArray(as),Qs=ea||4,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Ds)&&(xe.bindBuffer(34962,za.buffer),xe.vertexAttribPointer(as,Qs,$s,rs,Ds,us),Ma.type=$s,Ma.size=Qs,Ma.buffer=za,Ma.normalized=rs,Ma.offset=us,Ma.stride=Ds),Ma.divisor!==fl&&(Mn.vertexAttribDivisorANGLE(as,fl),Ma.divisor=fl)):(Ma.buffer&&(xe.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==ln||Ma.y!==Bo||Ma.z!==ko||Ma.w!==oo)&&(xe.vertexAttrib4f(as,ln,Bo,ko,oo),Ma.x=ln,Ma.y=Bo,Ma.z=ko,Ma.w=oo)),ho=Ga.positionBuffer,pr.buffer=ho,gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Fr(pr)?(gs=!0,Ea=pe.createStream(34962,pr),rl=Ea.dtype):(Ea=pe.getBuffer(pr),Ea?rl=Ea.dtype:"constant"in pr?(Vo=2,typeof pr.constant=="number"?(Do=pr.constant,Lo=xs=ks=0):(Do=pr.constant.length>0?pr.constant[0]:0,Lo=pr.constant.length>1?pr.constant[1]:0,xs=pr.constant.length>2?pr.constant[2]:0,ks=pr.constant.length>3?pr.constant[3]:0)):(Fr(pr.buffer)?Ea=pe.createStream(34962,pr.buffer):Ea=pe.getBuffer(pr.buffer),rl="type"in pr?Ri[pr.type]:Ea.dtype,Oo=!!pr.normalized,Jn=pr.size|0,Gs=pr.offset|0,bs=pr.stride|0,zs=pr.divisor|0)),$o=d.location,Aa=It[$o],Vo===1?(Aa.buffer||xe.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Oo||Aa.offset!==Gs||Aa.stride!==bs)&&(xe.bindBuffer(34962,Ea.buffer),xe.vertexAttribPointer($o,os,rl,Oo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Oo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Mn.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(xe.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Do||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(xe.vertexAttrib4f($o,Do,Lo,xs,ks),Aa.x=Do,Aa.y=Lo,Aa.z=xs,Aa.w=ks)),_l=Ga.positionBuffer,gr.buffer=_l,Ss=!1,po=1,go=0,ss=0,qo=0,zo=0,io=null,Io=0,Da=!1,vs=5126,fs=0,cl=0,el=0,Fr(gr)?(Ss=!0,io=pe.createStream(34962,gr),vs=io.dtype):(io=pe.getBuffer(gr),io?vs=io.dtype:"constant"in gr?(po=2,typeof gr.constant=="number"?(go=gr.constant,ss=qo=zo=0):(go=gr.constant.length>0?gr.constant[0]:0,ss=gr.constant.length>1?gr.constant[1]:0,qo=gr.constant.length>2?gr.constant[2]:0,zo=gr.constant.length>3?gr.constant[3]:0)):(Fr(gr.buffer)?io=pe.createStream(34962,gr.buffer):io=pe.getBuffer(gr.buffer),vs="type"in gr?Ri[gr.type]:io.dtype,Da=!!gr.normalized,Io=gr.size|0,fs=gr.offset|0,cl=gr.stride|0,el=gr.divisor|0)),Hs=v.location,Ro=It[Hs],po===1?(Ro.buffer||xe.enableVertexAttribArray(Hs),tl=Io||2,(Ro.type!==vs||Ro.size!==tl||Ro.buffer!==io||Ro.normalized!==Da||Ro.offset!==fs||Ro.stride!==cl)&&(xe.bindBuffer(34962,io.buffer),xe.vertexAttribPointer(Hs,tl,vs,Da,cl,fs),Ro.type=vs,Ro.size=tl,Ro.buffer=io,Ro.normalized=Da,Ro.offset=fs,Ro.stride=cl),Ro.divisor!==el&&(Mn.vertexAttribDivisorANGLE(Hs,el),Ro.divisor=el)):(Ro.buffer&&(xe.disableVertexAttribArray(Hs),Ro.buffer=null),(Ro.x!==go||Ro.y!==ss||Ro.z!==qo||Ro.w!==zo)&&(xe.vertexAttrib4f(Hs,go,ss,qo,zo),Ro.x=go,Ro.y=ss,Ro.z=qo,Ro.w=zo)),Fs=Ga.positionBuffer,ft.buffer=Fs,hl=!1,Fa=1,Ms=0,jo=0,Rs=0,Is=0,Bs=null,At=0,Gt=!1,wr=5126,mr=0,Or=0,gi=0,Fr(ft)?(hl=!0,Bs=pe.createStream(34962,ft),wr=Bs.dtype):(Bs=pe.getBuffer(ft),Bs?wr=Bs.dtype:"constant"in ft?(Fa=2,typeof ft.constant=="number"?(Ms=ft.constant,jo=Rs=Is=0):(Ms=ft.constant.length>0?ft.constant[0]:0,jo=ft.constant.length>1?ft.constant[1]:0,Rs=ft.constant.length>2?ft.constant[2]:0,Is=ft.constant.length>3?ft.constant[3]:0)):(Fr(ft.buffer)?Bs=pe.createStream(34962,ft.buffer):Bs=pe.getBuffer(ft.buffer),wr="type"in ft?Ri[ft.type]:Bs.dtype,Gt=!!ft.normalized,At=ft.size|0,mr=ft.offset|0,Or=ft.stride|0,gi=ft.divisor|0)),Ti=k.location,ki=It[Ti],Fa===1?(ki.buffer||xe.enableVertexAttribArray(Ti),Ji=At||2,(ki.type!==wr||ki.size!==Ji||ki.buffer!==Bs||ki.normalized!==Gt||ki.offset!==mr||ki.stride!==Or)&&(xe.bindBuffer(34962,Bs.buffer),xe.vertexAttribPointer(Ti,Ji,wr,Gt,Or,mr),ki.type=wr,ki.size=Ji,ki.buffer=Bs,ki.normalized=Gt,ki.offset=mr,ki.stride=Or),ki.divisor!==gi&&(Mn.vertexAttribDivisorANGLE(Ti,gi),ki.divisor=gi)):(ki.buffer&&(xe.disableVertexAttribArray(Ti),ki.buffer=null),(ki.x!==Ms||ki.y!==jo||ki.z!==Rs||ki.w!==Is)&&(xe.vertexAttrib4f(Ti,Ms,jo,Rs,Is),ki.x=Ms,ki.y=jo,ki.z=Rs,ki.w=Is)),Fn=Ga.dashLength,(!Un||Pi!==Fn)&&(Pi=Fn,xe.uniform1f(E.location,Fn)),hi=Ga.dashTexture,hi&&hi._reglType==="framebuffer"&&(hi=hi.color[0]),Li=hi._texture,xe.uniform1i(T.location,Li.bind()),Si=Ga.depth,(!Un||Gn!==Si)&&(Gn=Si,xe.uniform1f(L.location,Si)),ta=Ga.miterLimit,(!Un||ya!==ta)&&(ya=ta,xe.uniform1f(_.location,ta)),ia=M.call(this,Oe,Ga,Un),(!Un||pa!==ia)&&(pa=ia,xe.uniform1f(C.location,ia)),va=Ga.opacity,(!Un||zn!==va)&&(zn=va,xe.uniform1f(m.location,va)),is=Ga.scale,Cs=is[0],dl=is[1],(!Un||Ks!==Cs||xl!==dl)&&(Ks=Cs,xl=dl,xe.uniform2f(P.location,Cs,dl)),Ol=Ga.thickness,(!Un||bl!==Ol)&&(bl=Ol,xe.uniform1f(A.location,Ol)),eu=Ga.translate,Zl=eu[0],ja=eu[1],(!Un||Vl!==Zl||ns!==ja)&&(Vl=Zl,ns=ja,xe.uniform2f(B.location,Zl,ja)),Js=U.call(this,Oe,Ga,Un),cs=Js[0],ll=Js[1],zl=Js[2],Rl=Js[3],(!Un||sl!==cs||il!==ll||Ml!==zl||Al!==Rl)&&(sl=cs,il=ll,Ml=zl,Al=Rl,xe.uniform4f(F.location,cs,ll,zl,Rl)),Ll=Ga.count,Ll>0?da?Mn.drawElementsInstancedANGLE(5,4,da.type,0<<(da.type-5121>>1),Ll):Mn.drawArraysInstancedANGLE(5,0,4,Ll):Ll<0&&(da?xe.drawElements(5,4,da.type,0<<(da.type-5121>>1)):xe.drawArrays(5,0,4)),Oe.viewportWidth=mo,Oe.viewportHeight=No,Vs&&pe.destroyStream(Xn),Na&&pe.destroyStream(Ao),Wo&&pe.destroyStream(za),gs&&pe.destroyStream(Ea),Ss&&pe.destroyStream(io),hl&&pe.destroyStream(Bs),Li.unbind()}ct.dirty=!0,Pt.setVAO(null),Zi&&(r.cpuTime+=performance.now()-aa)}}}});var C8=Te((j_r,FNe)=>{FNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ye){"use strict";var nt,gt,Nt,it,Ke,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi;return nt=t.gl,gt=t.context,Nt=t.strings,it=t.next,Ke=t.current,kt=t.draw,Tt=t.elements,St=t.buffer,Dt=t.shader,Zt=t.attributes,Et=t.vao,Ae=t.uniforms,at=t.framebuffer,wt=t.extensions,vt=t.timer,st=t.isBufferArgs,Ue=it.blend_color,rt=Ke.blend_color,$e=it.blend_equation,zt=Ke.blend_equation,Yt=it.blend_func,hr=Ke.blend_func,yr=it.depth_range,br=Ke.depth_range,Ut=it.colorMask,Ie=Ke.colorMask,xe=it.polygonOffset_offset,Oe=Ke.polygonOffset_offset,Re=it.sample_coverage,De=Ke.sample_coverage,ct=it.stencil_func,ge=Ke.stencil_func,fe=it.stencil_opFront,pe=Ke.stencil_opFront,dt=it.stencil_opBack,It=Ke.stencil_opBack,Pt=it.scissor_box,rr=Ke.scissor_box,Hr=it.viewport,Dr=Ke.viewport,Mr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Fr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},di={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Di={add:32774,subtract:32778,"reverse subtract":32779},Ii={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ci={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},nn={cw:2304,ccw:2305},ii={},ii.stride=8,ii.offset=8,wi={},wi.stride=8,wi.offset=8,{draw:function(Gi){var Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo;if(Bt=wt.angle_instanced_arrays,yt=at.next,yt!==at.cur&&(yt?nt.bindFramebuffer(36160,yt.framebuffer):nt.bindFramebuffer(36160,null),at.cur=yt),Ke.dirty){var As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa;As=it.dither,As!==Ke.dither&&(As?nt.enable(3024):nt.disable(3024),Ke.dither=As),ps=it.depth_func,ps!==Ke.depth_func&&(nt.depthFunc(ps),Ke.depth_func=ps),co=yr[0],mo=yr[1],(co!==br[0]||mo!==br[1])&&(nt.depthRange(co,mo),br[0]=co,br[1]=mo),No=it.depth_mask,No!==Ke.depth_mask&&(nt.depthMask(No),Ke.depth_mask=No),jn=Ut[0],Go=Ut[1],Ys=Ut[2],qs=Ut[3],(jn!==Ie[0]||Go!==Ie[1]||Ys!==Ie[2]||qs!==Ie[3])&&(nt.colorMask(jn,Go,Ys,qs),Ie[0]=jn,Ie[1]=Go,Ie[2]=Ys,Ie[3]=qs),Ns=it.cull_enable,Ns!==Ke.cull_enable&&(Ns?nt.enable(2884):nt.disable(2884),Ke.cull_enable=Ns),Oa=it.cull_face,Oa!==Ke.cull_face&&(nt.cullFace(Oa),Ke.cull_face=Oa),ha=it.frontFace,ha!==Ke.frontFace&&(nt.frontFace(ha),Ke.frontFace=ha),Vs=it.lineWidth,Vs!==Ke.lineWidth&&(nt.lineWidth(Vs),Ke.lineWidth=Vs),Ya=it.polygonOffset_enable,Ya!==Ke.polygonOffset_enable&&(Ya?nt.enable(32823):nt.disable(32823),Ke.polygonOffset_enable=Ya),_n=xe[0],Vn=xe[1],(_n!==Oe[0]||Vn!==Oe[1])&&(nt.polygonOffset(_n,Vn),Oe[0]=_n,Oe[1]=Vn),wo=it.sample_alpha,wo!==Ke.sample_alpha&&(wo?nt.enable(32926):nt.disable(32926),Ke.sample_alpha=wo),Ra=it.sample_enable,Ra!==Ke.sample_enable&&(Ra?nt.enable(32928):nt.disable(32928),Ke.sample_enable=Ra),Xn=Re[0],un=Re[1],(Xn!==De[0]||un!==De[1])&&(nt.sampleCoverage(Xn,un),De[0]=Xn,De[1]=un),$n=it.stencil_mask,$n!==Ke.stencil_mask&&(nt.stencilMask($n),Ke.stencil_mask=$n),Ka=ct[0],qn=ct[1],Eo=ct[2],(Ka!==ge[0]||qn!==ge[1]||Eo!==ge[2])&&(nt.stencilFunc(Ka,qn,Eo),ge[0]=Ka,ge[1]=qn,ge[2]=Eo),Ja=fe[0],lo=fe[1],eo=fe[2],sa=fe[3],(Ja!==pe[0]||lo!==pe[1]||eo!==pe[2]||sa!==pe[3])&&(nt.stencilOpSeparate(Ja,lo,eo,sa),pe[0]=Ja,pe[1]=lo,pe[2]=eo,pe[3]=sa),es=dt[0],Na=dt[1],tn=dt[2],Pa=dt[3],(es!==It[0]||Na!==It[1]||tn!==It[2]||Pa!==It[3])&&(nt.stencilOpSeparate(es,Na,tn,Pa),It[0]=es,It[1]=Na,It[2]=tn,It[3]=Pa)}Vt=Gi.viewport,Wt=Vt.x|0,_r=Vt.y|0,Lr="width"in Vt?Vt.width|0:gt.framebufferWidth-Wt,Ur="height"in Vt?Vt.height|0:gt.framebufferHeight-_r,Ir=gt.viewportWidth,gt.viewportWidth=Lr,Gr=gt.viewportHeight,gt.viewportHeight=Ur,nt.viewport(Wt,_r,Lr,Ur),Dr[0]=Wt,Dr[1]=_r,Dr[2]=Lr,Dr[3]=Ur,nt.blendColor(0,0,0,0),rt[0]=0,rt[1]=0,rt[2]=0,rt[3]=0,n?nt.enable(3042):nt.disable(3042),Ke.blend_enable=n,nt.blendEquationSeparate(32774,32774),zt[0]=32774,zt[1]=32774,nt.blendFuncSeparate(770,771,773,1),hr[0]=770,hr[1]=771,hr[2]=773,hr[3]=1,i?nt.enable(2929):nt.disable(2929),Ke.depth_enable=i,jr=Gi.viewport,yi=jr.x|0,Ei=jr.y|0,Vi="width"in jr?jr.width|0:gt.framebufferWidth-yi,ti="height"in jr?jr.height|0:gt.framebufferHeight-Ei,nt.scissor(yi,Ei,Vi,ti),rr[0]=yi,rr[1]=Ei,rr[2]=Vi,rr[3]=ti,a?nt.enable(3089):nt.disable(3089),Ke.scissor_enable=a,o?nt.enable(2960):nt.disable(2960),Ke.stencil_enable=o,en=Ke.profile,en&&(Yr=performance.now(),r.count++),nt.useProgram(s.program),oi=wt.angle_instanced_arrays,Et.setVAO(null),Bi=Gi.positionBuffer,ii.buffer=Bi,an=!1,rn=1,Fi=0,Ri=0,xn=0,xi=0,Xr=null,ft=0,tr=!1,pr=5126,gr=0,Zr=0,Ai=0,st(ii)?(an=!0,Xr=St.createStream(34962,ii),pr=Xr.dtype):(Xr=St.getBuffer(ii),Xr?pr=Xr.dtype:"constant"in ii?(rn=2,typeof ii.constant=="number"?(Fi=ii.constant,Ri=xn=xi=0):(Fi=ii.constant.length>0?ii.constant[0]:0,Ri=ii.constant.length>1?ii.constant[1]:0,xn=ii.constant.length>2?ii.constant[2]:0,xi=ii.constant.length>3?ii.constant[3]:0)):(st(ii.buffer)?Xr=St.createStream(34962,ii.buffer):Xr=St.getBuffer(ii.buffer),pr="type"in ii?Ci[ii.type]:Xr.dtype,tr=!!ii.normalized,ft=ii.size|0,gr=ii.offset|0,Zr=ii.stride|0,Ai=ii.divisor|0)),Qi=u.location,ni=Zt[Qi],rn===1?(ni.buffer||nt.enableVertexAttribArray(Qi),Zi=ft||2,(ni.type!==pr||ni.size!==Zi||ni.buffer!==Xr||ni.normalized!==tr||ni.offset!==gr||ni.stride!==Zr)&&(nt.bindBuffer(34962,Xr.buffer),nt.vertexAttribPointer(Qi,Zi,pr,tr,Zr,gr),ni.type=pr,ni.size=Zi,ni.buffer=Xr,ni.normalized=tr,ni.offset=gr,ni.stride=Zr),ni.divisor!==Ai&&(oi.vertexAttribDivisorANGLE(Qi,Ai),ni.divisor=Ai)):(ni.buffer&&(nt.disableVertexAttribArray(Qi),ni.buffer=null),(ni.x!==Fi||ni.y!==Ri||ni.z!==xn||ni.w!==xi)&&(nt.vertexAttrib4f(Qi,Fi,Ri,xn,xi),ni.x=Fi,ni.y=Ri,ni.z=xn,ni.w=xi)),aa=Gi.positionFractBuffer,wi.buffer=aa,Mn=!1,Un=1,Ga=0,ma=0,oa=0,ka=0,so=null,Kr=0,Ia=!1,Yo=5126,fa=0,kn=0,Ta=0,st(wi)?(Mn=!0,so=St.createStream(34962,wi),Yo=so.dtype):(so=St.getBuffer(wi),so?Yo=so.dtype:"constant"in wi?(Un=2,typeof wi.constant=="number"?(Ga=wi.constant,ma=oa=ka=0):(Ga=wi.constant.length>0?wi.constant[0]:0,ma=wi.constant.length>1?wi.constant[1]:0,oa=wi.constant.length>2?wi.constant[2]:0,ka=wi.constant.length>3?wi.constant[3]:0)):(st(wi.buffer)?so=St.createStream(34962,wi.buffer):so=St.getBuffer(wi.buffer),Yo="type"in wi?Ci[wi.type]:so.dtype,Ia=!!wi.normalized,Kr=wi.size|0,fa=wi.offset|0,kn=wi.stride|0,Ta=wi.divisor|0)),ys=l.location,uo=Zt[ys],Un===1?(uo.buffer||nt.enableVertexAttribArray(ys),ls=Kr||2,(uo.type!==Yo||uo.size!==ls||uo.buffer!==so||uo.normalized!==Ia||uo.offset!==fa||uo.stride!==kn)&&(nt.bindBuffer(34962,so.buffer),nt.vertexAttribPointer(ys,ls,Yo,Ia,kn,fa),uo.type=Yo,uo.size=ls,uo.buffer=so,uo.normalized=Ia,uo.offset=fa,uo.stride=kn),uo.divisor!==Ta&&(oi.vertexAttribDivisorANGLE(ys,Ta),uo.divisor=Ta)):(uo.buffer&&(nt.disableVertexAttribArray(ys),uo.buffer=null),(uo.x!==Ga||uo.y!==ma||uo.z!==oa||uo.w!==ka)&&(nt.vertexAttrib4f(ys,Ga,ma,oa,ka),uo.x=Ga,uo.y=ma,uo.z=oa,uo.w=ka)),$a=Gi.fill,fo=$a[0],mn=$a[1],ra=$a[2],wa=$a[3],nt.uniform4f(f.location,fo,mn,ra,wa),ws=Gi.id,nt.uniform1f(c.location,ws),Co=Gi.opacity,nt.uniform1f(h.location,Co),Po=Gi.scale,ji=Po[0],gn=Po[1],nt.uniform2f(d.location,ji,gn),Ps=Gi.scaleFract,Ha=Ps[0],Sn=Ps[1],nt.uniform2f(p.location,Ha,Sn),ao=Gi.translate,Ba=ao[0],Ko=ao[1],nt.uniform2f(x.location,Ba,Ko),Qo=Gi.translateFract,Wi=Qo[0],Sa=Qo[1],nt.uniform2f(b.location,Wi,Sa),Qa=v.call(this,gt,Gi,0),vn=null,da=st(Qa),da?vn=Tt.createStream(Qa):vn=Tt.getElements(Qa),vn&&nt.bindBuffer(34963,vn.buffer.buffer),la=vn?vn.vertCount:-1,la&&(vo=kt.instances,vo>0?vn?oi.drawElementsInstancedANGLE(4,la,vn.type,0<<(vn.type-5121>>1),vo):oi.drawArraysInstancedANGLE(4,0,la,vo):vo<0&&(vn?nt.drawElements(4,la,vn.type,0<<(vn.type-5121>>1)):nt.drawArrays(4,0,la)),Ke.dirty=!0,Et.setVAO(null),gt.viewportWidth=Ir,gt.viewportHeight=Gr,en&&(r.cpuTime+=performance.now()-Yr),an&&St.destroyStream(Xr),Mn&&St.destroyStream(so),da&&Tt.destroyStream(vn))},scope:function(Gi,Bt,yt){var Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho;Vt=Gi.viewport,Wt=Vt.x|0,_r=Vt.y|0,Lr="width"in Vt?Vt.width|0:gt.framebufferWidth-Wt,Ur="height"in Vt?Vt.height|0:gt.framebufferHeight-_r,Ir=gt.viewportWidth,gt.viewportWidth=Lr,Gr=gt.viewportHeight,gt.viewportHeight=Ur,jr=Hr[0],Hr[0]=Wt,yi=Hr[1],Hr[1]=_r,Ei=Hr[2],Hr[2]=Lr,Vi=Hr[3],Hr[3]=Ur,ti=Ue[0],Ue[0]=k,en=Ue[1],Ue[1]=E,Yr=Ue[2],Ue[2]=T,oi=Ue[3],Ue[3]=L,Bi=it.blend_enable,it.blend_enable=_,an=$e[0],$e[0]=C,rn=$e[1],$e[1]=M,Fi=Yt[0],Yt[0]=m,Ri=Yt[1],Yt[1]=P,xn=Yt[2],Yt[2]=A,xi=Yt[3],Yt[3]=B,Xr=it.depth_enable,it.depth_enable=F,ft=Gi.viewport,tr=ft.x|0,pr=ft.y|0,gr="width"in ft?ft.width|0:gt.framebufferWidth-tr,Zr="height"in ft?ft.height|0:gt.framebufferHeight-pr,Ai=Pt[0],Pt[0]=tr,Qi=Pt[1],Pt[1]=pr,ni=Pt[2],Pt[2]=gr,Zi=Pt[3],Pt[3]=Zr,aa=it.scissor_enable,it.scissor_enable=U,Mn=it.stencil_enable,it.stencil_enable=G,Un=Ke.profile,Un&&(Ga=performance.now(),r.count++),ma=v.call(this,gt,Gi,yt),oa=null,ka=st(ma),ka?oa=Tt.createStream(ma):oa=Tt.getElements(ma),so=kt.elements,kt.elements=oa,Kr=kt.offset,kt.offset=j,Ia=oa?oa.vertCount:-1,Yo=kt.count,kt.count=Ia,fa=kt.primitive,kt.primitive=H,kn=Gi.scale,Ta=Ae[N],Ae[N]=kn,ys=Gi.fill,uo=Ae[W],Ae[W]=ys,ls=Gi.scaleFract,$a=Ae[re],Ae[re]=ls,fo=Gi.translateFract,mn=Ae[ae],Ae[ae]=fo,ra=Gi.translate,wa=Ae[be],Ae[be]=ra,ws=Gi.opacity,Co=Ae[Pe],Ae[Pe]=ws,Po=gt.pixelRatio,ji=Ae[Ce],Ae[Ce]=Po,gn=Gi.id,Ps=Ae[de],Ae[de]=gn,Ha=te.call(this,gt,Gi,yt),Sn=Ae[ke],Ae[ke]=Ha,ao=Gi.positionBuffer,ii.buffer=ao,Ba=!1,Ko=1,Qo=0,Wi=0,Sa=0,Qa=0,vn=null,da=0,la=!1,vo=5126,As=0,ps=0,co=0,st(ii)?(Ba=!0,vn=St.createStream(34962,ii),vo=vn.dtype):(vn=St.getBuffer(ii),vn?vo=vn.dtype:"constant"in ii?(Ko=2,typeof ii.constant=="number"?(Qo=ii.constant,Wi=Sa=Qa=0):(Qo=ii.constant.length>0?ii.constant[0]:0,Wi=ii.constant.length>1?ii.constant[1]:0,Sa=ii.constant.length>2?ii.constant[2]:0,Qa=ii.constant.length>3?ii.constant[3]:0)):(st(ii.buffer)?vn=St.createStream(34962,ii.buffer):vn=St.getBuffer(ii.buffer),vo="type"in ii?Ci[ii.type]:vn.dtype,la=!!ii.normalized,da=ii.size|0,As=ii.offset|0,ps=ii.stride|0,co=ii.divisor|0)),mo=Ee.state,Ee.state=Ko,No=Ee.x,Ee.x=Qo,jn=Ee.y,Ee.y=Wi,Go=Ee.z,Ee.z=Sa,Ys=Ee.w,Ee.w=Qa,qs=Ee.buffer,Ee.buffer=vn,Ns=Ee.size,Ee.size=da,Oa=Ee.normalized,Ee.normalized=la,ha=Ee.type,Ee.type=vo,Vs=Ee.offset,Ee.offset=As,Ya=Ee.stride,Ee.stride=ps,_n=Ee.divisor,Ee.divisor=co,Vn=Gi.positionFractBuffer,wi.buffer=Vn,wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,st(wi)?(wo=!0,qn=St.createStream(34962,wi),lo=qn.dtype):(qn=St.getBuffer(wi),qn?lo=qn.dtype:"constant"in wi?(Ra=2,typeof wi.constant=="number"?(Xn=wi.constant,un=$n=Ka=0):(Xn=wi.constant.length>0?wi.constant[0]:0,un=wi.constant.length>1?wi.constant[1]:0,$n=wi.constant.length>2?wi.constant[2]:0,Ka=wi.constant.length>3?wi.constant[3]:0)):(st(wi.buffer)?qn=St.createStream(34962,wi.buffer):qn=St.getBuffer(wi.buffer),lo="type"in wi?Ci[wi.type]:qn.dtype,Ja=!!wi.normalized,Eo=wi.size|0,eo=wi.offset|0,sa=wi.stride|0,es=wi.divisor|0)),Na=Me.state,Me.state=Ra,tn=Me.x,Me.x=Xn,Pa=Me.y,Me.y=un,to=Me.z,Me.z=$n,yo=Me.w,Me.w=Ka,Jo=Me.buffer,Me.buffer=qn,Ao=Me.size,Me.size=Eo,Dn=Me.normalized,Me.normalized=Ja,_a=Me.type,Me.type=lo,Ws=Me.offset,Me.offset=eo,Ca=Me.stride,Me.stride=sa,Es=Me.divisor,Me.divisor=es,Ts=Dt.vert,Dt.vert=Ne,Ho=Dt.frag,Dt.frag=Fe,Ke.dirty=!0,Bt(gt,Gi,yt),gt.viewportWidth=Ir,gt.viewportHeight=Gr,Hr[0]=jr,Hr[1]=yi,Hr[2]=Ei,Hr[3]=Vi,Ue[0]=ti,Ue[1]=en,Ue[2]=Yr,Ue[3]=oi,it.blend_enable=Bi,$e[0]=an,$e[1]=rn,Yt[0]=Fi,Yt[1]=Ri,Yt[2]=xn,Yt[3]=xi,it.depth_enable=Xr,Pt[0]=Ai,Pt[1]=Qi,Pt[2]=ni,Pt[3]=Zi,it.scissor_enable=aa,it.stencil_enable=Mn,Un&&(r.cpuTime+=performance.now()-Ga),ka&&Tt.destroyStream(oa),kt.elements=so,kt.offset=Kr,kt.count=Yo,kt.primitive=fa,Ae[N]=Ta,Ae[W]=uo,Ae[re]=$a,Ae[ae]=mn,Ae[be]=wa,Ae[Pe]=Co,Ae[Ce]=ji,Ae[de]=Ps,Ae[ke]=Sn,Ba&&St.destroyStream(vn),Ee.state=mo,Ee.x=No,Ee.y=jn,Ee.z=Go,Ee.w=Ys,Ee.buffer=qs,Ee.size=Ns,Ee.normalized=Oa,Ee.type=ha,Ee.offset=Vs,Ee.stride=Ya,Ee.divisor=_n,wo&&St.destroyStream(qn),Me.state=Na,Me.x=tn,Me.y=Pa,Me.z=to,Me.w=yo,Me.buffer=Jo,Me.size=Ao,Me.normalized=Dn,Me.type=_a,Me.offset=Ws,Me.stride=Ca,Me.divisor=Es,Dt.vert=Ts,Dt.frag=Ho,Ke.dirty=!0},batch:function(Gi,Bt){var yt,Vt,Wt,_r,Lr,Ur,Ir;if(yt=wt.angle_instanced_arrays,Vt=at.next,Vt!==at.cur&&(Vt?nt.bindFramebuffer(36160,Vt.framebuffer):nt.bindFramebuffer(36160,null),at.cur=Vt),Ke.dirty){var Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa;Gr=it.dither,Gr!==Ke.dither&&(Gr?nt.enable(3024):nt.disable(3024),Ke.dither=Gr),jr=it.depth_func,jr!==Ke.depth_func&&(nt.depthFunc(jr),Ke.depth_func=jr),yi=yr[0],Ei=yr[1],(yi!==br[0]||Ei!==br[1])&&(nt.depthRange(yi,Ei),br[0]=yi,br[1]=Ei),Vi=it.depth_mask,Vi!==Ke.depth_mask&&(nt.depthMask(Vi),Ke.depth_mask=Vi),ti=Ut[0],en=Ut[1],Yr=Ut[2],oi=Ut[3],(ti!==Ie[0]||en!==Ie[1]||Yr!==Ie[2]||oi!==Ie[3])&&(nt.colorMask(ti,en,Yr,oi),Ie[0]=ti,Ie[1]=en,Ie[2]=Yr,Ie[3]=oi),Bi=it.cull_enable,Bi!==Ke.cull_enable&&(Bi?nt.enable(2884):nt.disable(2884),Ke.cull_enable=Bi),an=it.cull_face,an!==Ke.cull_face&&(nt.cullFace(an),Ke.cull_face=an),rn=it.frontFace,rn!==Ke.frontFace&&(nt.frontFace(rn),Ke.frontFace=rn),Fi=it.lineWidth,Fi!==Ke.lineWidth&&(nt.lineWidth(Fi),Ke.lineWidth=Fi),Ri=it.polygonOffset_enable,Ri!==Ke.polygonOffset_enable&&(Ri?nt.enable(32823):nt.disable(32823),Ke.polygonOffset_enable=Ri),xn=xe[0],xi=xe[1],(xn!==Oe[0]||xi!==Oe[1])&&(nt.polygonOffset(xn,xi),Oe[0]=xn,Oe[1]=xi),Xr=it.sample_alpha,Xr!==Ke.sample_alpha&&(Xr?nt.enable(32926):nt.disable(32926),Ke.sample_alpha=Xr),ft=it.sample_enable,ft!==Ke.sample_enable&&(ft?nt.enable(32928):nt.disable(32928),Ke.sample_enable=ft),tr=Re[0],pr=Re[1],(tr!==De[0]||pr!==De[1])&&(nt.sampleCoverage(tr,pr),De[0]=tr,De[1]=pr),gr=it.stencil_mask,gr!==Ke.stencil_mask&&(nt.stencilMask(gr),Ke.stencil_mask=gr),Zr=ct[0],Ai=ct[1],Qi=ct[2],(Zr!==ge[0]||Ai!==ge[1]||Qi!==ge[2])&&(nt.stencilFunc(Zr,Ai,Qi),ge[0]=Zr,ge[1]=Ai,ge[2]=Qi),ni=fe[0],Zi=fe[1],aa=fe[2],Mn=fe[3],(ni!==pe[0]||Zi!==pe[1]||aa!==pe[2]||Mn!==pe[3])&&(nt.stencilOpSeparate(ni,Zi,aa,Mn),pe[0]=ni,pe[1]=Zi,pe[2]=aa,pe[3]=Mn),Un=dt[0],Ga=dt[1],ma=dt[2],oa=dt[3],(Un!==It[0]||Ga!==It[1]||ma!==It[2]||oa!==It[3])&&(nt.stencilOpSeparate(Un,Ga,ma,oa),It[0]=Un,It[1]=Ga,It[2]=ma,It[3]=oa)}nt.blendColor(0,0,0,0),rt[0]=0,rt[1]=0,rt[2]=0,rt[3]=0,ye?nt.enable(3042):nt.disable(3042),Ke.blend_enable=ye,nt.blendEquationSeparate(32774,32774),zt[0]=32774,zt[1]=32774,nt.blendFuncSeparate(770,771,773,1),hr[0]=770,hr[1]=771,hr[2]=773,hr[3]=1,Ve?nt.enable(2929):nt.disable(2929),Ke.depth_enable=Ve,ce?nt.enable(3089):nt.disable(3089),Ke.scissor_enable=ce,Ye?nt.enable(2960):nt.disable(2960),Ke.stencil_enable=Ye,Wt=Ke.profile,Wt&&(_r=performance.now(),r.count+=Bt),nt.useProgram(s.program),Lr=wt.angle_instanced_arrays;var ka;for(Et.setVAO(null),ka=kt.instances,Ur=0;Ur0?ii.constant[0]:0,Co=ii.constant.length>1?ii.constant[1]:0,Po=ii.constant.length>2?ii.constant[2]:0,ji=ii.constant.length>3?ii.constant[3]:0)):(st(ii.buffer)?gn=St.createStream(34962,ii.buffer):gn=St.getBuffer(ii.buffer),Sn="type"in ii?Ci[ii.type]:gn.dtype,Ha=!!ii.normalized,Ps=ii.size|0,ao=ii.offset|0,Ba=ii.stride|0,Ko=ii.divisor|0)),Qo=u.location,Wi=Zt[Qo],wa===1?(Wi.buffer||nt.enableVertexAttribArray(Qo),Sa=Ps||2,(Wi.type!==Sn||Wi.size!==Sa||Wi.buffer!==gn||Wi.normalized!==Ha||Wi.offset!==ao||Wi.stride!==Ba)&&(nt.bindBuffer(34962,gn.buffer),nt.vertexAttribPointer(Qo,Sa,Sn,Ha,Ba,ao),Wi.type=Sn,Wi.size=Sa,Wi.buffer=gn,Wi.normalized=Ha,Wi.offset=ao,Wi.stride=Ba),Wi.divisor!==Ko&&(Lr.vertexAttribDivisorANGLE(Qo,Ko),Wi.divisor=Ko)):(Wi.buffer&&(nt.disableVertexAttribArray(Qo),Wi.buffer=null),(Wi.x!==ws||Wi.y!==Co||Wi.z!==Po||Wi.w!==ji)&&(nt.vertexAttrib4f(Qo,ws,Co,Po,ji),Wi.x=ws,Wi.y=Co,Wi.z=Po,Wi.w=ji)),Qa=Ir.positionFractBuffer,wi.buffer=Qa,vn=!1,da=1,la=0,vo=0,As=0,ps=0,co=null,mo=0,No=!1,jn=5126,Go=0,Ys=0,qs=0,st(wi)?(vn=!0,co=St.createStream(34962,wi),jn=co.dtype):(co=St.getBuffer(wi),co?jn=co.dtype:"constant"in wi?(da=2,typeof wi.constant=="number"?(la=wi.constant,vo=As=ps=0):(la=wi.constant.length>0?wi.constant[0]:0,vo=wi.constant.length>1?wi.constant[1]:0,As=wi.constant.length>2?wi.constant[2]:0,ps=wi.constant.length>3?wi.constant[3]:0)):(st(wi.buffer)?co=St.createStream(34962,wi.buffer):co=St.getBuffer(wi.buffer),jn="type"in wi?Ci[wi.type]:co.dtype,No=!!wi.normalized,mo=wi.size|0,Go=wi.offset|0,Ys=wi.stride|0,qs=wi.divisor|0)),Ns=l.location,Oa=Zt[Ns],da===1?(Oa.buffer||nt.enableVertexAttribArray(Ns),ha=mo||2,(Oa.type!==jn||Oa.size!==ha||Oa.buffer!==co||Oa.normalized!==No||Oa.offset!==Go||Oa.stride!==Ys)&&(nt.bindBuffer(34962,co.buffer),nt.vertexAttribPointer(Ns,ha,jn,No,Ys,Go),Oa.type=jn,Oa.size=ha,Oa.buffer=co,Oa.normalized=No,Oa.offset=Go,Oa.stride=Ys),Oa.divisor!==qs&&(Lr.vertexAttribDivisorANGLE(Ns,qs),Oa.divisor=qs)):(Oa.buffer&&(nt.disableVertexAttribArray(Ns),Oa.buffer=null),(Oa.x!==la||Oa.y!==vo||Oa.z!==As||Oa.w!==ps)&&(nt.vertexAttrib4f(Ns,la,vo,As,ps),Oa.x=la,Oa.y=vo,Oa.z=As,Oa.w=ps)),Vs=Ir.fill,Ya=Vs[0],Vn=Vs[1],Ra=Vs[2],un=Vs[3],(!Ur||_n!==Ya||wo!==Vn||Xn!==Ra||$n!==un)&&(_n=Ya,wo=Vn,Xn=Ra,$n=un,nt.uniform4f(f.location,Ya,Vn,Ra,un)),Ka=Ir.id,(!Ur||qn!==Ka)&&(qn=Ka,nt.uniform1f(c.location,Ka)),Eo=Ir.opacity,(!Ur||Ja!==Eo)&&(Ja=Eo,nt.uniform1f(h.location,Eo)),lo=Ir.scale,eo=lo[0],es=lo[1],(!Ur||sa!==eo||Na!==es)&&(sa=eo,Na=es,nt.uniform2f(d.location,eo,es)),tn=Ir.scaleFract,Pa=tn[0],yo=tn[1],(!Ur||to!==Pa||Jo!==yo)&&(to=Pa,Jo=yo,nt.uniform2f(p.location,Pa,yo)),Ao=Ir.translate,Dn=Ao[0],Ws=Ao[1],(!Ur||_a!==Dn||Ca!==Ws)&&(_a=Dn,Ca=Ws,nt.uniform2f(x.location,Dn,Ws)),Es=Ir.translateFract,Ts=Es[0],Wa=Es[1],(!Ur||Ho!==Ts||To!==Wa)&&(Ho=Ts,To=Wa,nt.uniform2f(b.location,Ts,Wa)),ts=v.call(this,gt,Ir,Ur),Wo=null,qa=st(ts),qa?Wo=Tt.createStream(ts):Wo=Tt.getElements(ts),Wo&&nt.bindBuffer(34963,Wo.buffer.buffer),ln=Wo?Wo.vertCount:-1,ln&&(ka>0?Wo?Lr.drawElementsInstancedANGLE(4,ln,Wo.type,0<<(Wo.type-5121>>1),ka):Lr.drawArraysInstancedANGLE(4,0,ln,ka):ka<0&&(Wo?nt.drawElements(4,ln,Wo.type,0<<(Wo.type-5121>>1)):nt.drawArrays(4,0,ln)),gt.viewportWidth=kn,gt.viewportHeight=Ta,ra&&St.destroyStream(gn),vn&&St.destroyStream(co),qa&&Tt.destroyStream(Wo))}Ke.dirty=!0,Et.setVAO(null),Wt&&(r.cpuTime+=performance.now()-_r)}}}});var L8=Te((X_r,BNe)=>{BNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt,Nt,it,Ke,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut){"use strict";var Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri;return Ie=t.gl,xe=t.context,Oe=t.strings,Re=t.next,De=t.current,ct=t.draw,ge=t.elements,fe=t.buffer,pe=t.shader,dt=t.attributes,It=t.vao,Pt=t.uniforms,rr=t.framebuffer,Hr=t.extensions,Dr=t.timer,Mr=t.isBufferArgs,Fr=Re.blend_color,di=De.blend_color,Di=Re.blend_equation,Ii=De.blend_equation,Ci=Re.blend_func,nn=De.blend_func,ii=Re.depth_range,wi=De.depth_range,Gi=Re.colorMask,Bt=De.colorMask,yt=Re.polygonOffset_offset,Vt=De.polygonOffset_offset,Wt=Re.sample_coverage,_r=De.sample_coverage,Lr=Re.stencil_func,Ur=De.stencil_func,Ir=Re.stencil_opFront,Gr=De.stencil_opFront,jr=Re.stencil_opBack,yi=De.stencil_opBack,Ei=Re.scissor_box,Vi=De.scissor_box,ti=Re.viewport,en=De.viewport,Yr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},oi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Bi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},an={add:32774,subtract:32778,"reverse subtract":32779},rn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Fi={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ri={cw:2304,ccw:2305},{draw:function(xn){var xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl;if(xi=Hr.angle_instanced_arrays,Xr=rr.next,Xr!==rr.cur&&(Xr?Ie.bindFramebuffer(36160,Xr.framebuffer):Ie.bindFramebuffer(36160,null),rr.cur=Xr),De.dirty){var Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar;Ml=Re.dither,Ml!==De.dither&&(Ml?Ie.enable(3024):Ie.disable(3024),De.dither=Ml),Rl=Di[0],Al=Di[1],(Rl!==Ii[0]||Al!==Ii[1])&&(Ie.blendEquationSeparate(Rl,Al),Ii[0]=Rl,Ii[1]=Al),Ll=Re.depth_func,Ll!==De.depth_func&&(Ie.depthFunc(Ll),De.depth_func=Ll),ms=ii[0],Os=ii[1],(ms!==wi[0]||Os!==wi[1])&&(Ie.depthRange(ms,Os),wi[0]=ms,wi[1]=Os),Xl=Re.depth_mask,Xl!==De.depth_mask&&(Ie.depthMask(Xl),De.depth_mask=Xl),Gl=Gi[0],Ul=Gi[1],le=Gi[2],w=Gi[3],(Gl!==Bt[0]||Ul!==Bt[1]||le!==Bt[2]||w!==Bt[3])&&(Ie.colorMask(Gl,Ul,le,w),Bt[0]=Gl,Bt[1]=Ul,Bt[2]=le,Bt[3]=w),q=Re.cull_enable,q!==De.cull_enable&&(q?Ie.enable(2884):Ie.disable(2884),De.cull_enable=q),Q=Re.cull_face,Q!==De.cull_face&&(Ie.cullFace(Q),De.cull_face=Q),ee=Re.frontFace,ee!==De.frontFace&&(Ie.frontFace(ee),De.frontFace=ee),ue=Re.lineWidth,ue!==De.lineWidth&&(Ie.lineWidth(ue),De.lineWidth=ue),Ge=Re.polygonOffset_enable,Ge!==De.polygonOffset_enable&&(Ge?Ie.enable(32823):Ie.disable(32823),De.polygonOffset_enable=Ge),et=yt[0],mt=yt[1],(et!==Vt[0]||mt!==Vt[1])&&(Ie.polygonOffset(et,mt),Vt[0]=et,Vt[1]=mt),Ft=Re.sample_alpha,Ft!==De.sample_alpha&&(Ft?Ie.enable(32926):Ie.disable(32926),De.sample_alpha=Ft),ir=Re.sample_enable,ir!==De.sample_enable&&(ir?Ie.enable(32928):Ie.disable(32928),De.sample_enable=ir),or=Wt[0],kr=Wt[1],(or!==_r[0]||kr!==_r[1])&&(Ie.sampleCoverage(or,kr),_r[0]=or,_r[1]=kr),Vr=Re.stencil_mask,Vr!==De.stencil_mask&&(Ie.stencilMask(Vr),De.stencil_mask=Vr),he=Lr[0],Se=Lr[1],qe=Lr[2],(he!==Ur[0]||Se!==Ur[1]||qe!==Ur[2])&&(Ie.stencilFunc(he,Se,qe),Ur[0]=he,Ur[1]=Se,Ur[2]=qe),He=Ir[0],lt=Ir[1],tt=Ir[2],pt=Ir[3],(He!==Gr[0]||lt!==Gr[1]||tt!==Gr[2]||pt!==Gr[3])&&(Ie.stencilOpSeparate(He,lt,tt,pt),Gr[0]=He,Gr[1]=lt,Gr[2]=tt,Gr[3]=pt),Ht=jr[0],nr=jr[1],fr=jr[2],Ar=jr[3],(Ht!==yi[0]||nr!==yi[1]||fr!==yi[2]||Ar!==yi[3])&&(Ie.stencilOpSeparate(Ht,nr,fr,Ar),yi[0]=Ht,yi[1]=nr,yi[2]=fr,yi[3]=Ar)}ft=xn.viewport,tr=ft.x|0,pr=ft.y|0,gr="width"in ft?ft.width|0:xe.framebufferWidth-tr,Zr="height"in ft?ft.height|0:xe.framebufferHeight-pr,Ai=xe.viewportWidth,xe.viewportWidth=gr,Qi=xe.viewportHeight,xe.viewportHeight=Zr,Ie.viewport(tr,pr,gr,Zr),en[0]=tr,en[1]=pr,en[2]=gr,en[3]=Zr,Ie.blendColor(0,0,0,1),di[0]=0,di[1]=0,di[2]=0,di[3]=1,n?Ie.enable(3042):Ie.disable(3042),De.blend_enable=n,Ie.blendFuncSeparate(770,771,773,1),nn[0]=770,nn[1]=771,nn[2]=773,nn[3]=1,i?Ie.enable(2929):Ie.disable(2929),De.depth_enable=i,ni=xn.viewport,Zi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:xe.framebufferWidth-Zi,Un="height"in ni?ni.height|0:xe.framebufferHeight-aa,Ie.scissor(Zi,aa,Mn,Un),Vi[0]=Zi,Vi[1]=aa,Vi[2]=Mn,Vi[3]=Un,a?Ie.enable(3089):Ie.disable(3089),De.scissor_enable=a,o?Ie.enable(2960):Ie.disable(2960),De.stencil_enable=o,Ga=De.profile,Ga&&(ma=performance.now(),r.count++),Ie.useProgram(s.program),oa=Hr.angle_instanced_arrays,It.setVAO(null),ka=u.call(this,xe,xn,0),so=!1,Kr=1,Ia=0,Yo=0,fa=0,kn=0,Ta=null,ys=0,uo=!1,ls=5126,$a=0,fo=0,mn=0,Mr(ka)?(so=!0,Ta=fe.createStream(34962,ka),ls=Ta.dtype):(Ta=fe.getBuffer(ka),Ta?ls=Ta.dtype:"constant"in ka?(Kr=2,typeof ka.constant=="number"?(Ia=ka.constant,Yo=fa=kn=0):(Ia=ka.constant.length>0?ka.constant[0]:0,Yo=ka.constant.length>1?ka.constant[1]:0,fa=ka.constant.length>2?ka.constant[2]:0,kn=ka.constant.length>3?ka.constant[3]:0)):(Mr(ka.buffer)?Ta=fe.createStream(34962,ka.buffer):Ta=fe.getBuffer(ka.buffer),ls="type"in ka?Fi[ka.type]:Ta.dtype,uo=!!ka.normalized,ys=ka.size|0,$a=ka.offset|0,fo=ka.stride|0,mn=ka.divisor|0)),ra=l.location,wa=dt[ra],Kr===1?(wa.buffer||Ie.enableVertexAttribArray(ra),ws=ys||4,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(Ie.bindBuffer(34962,Ta.buffer),Ie.vertexAttribPointer(ra,ws,ls,uo,fo,$a),wa.type=ls,wa.size=ws,wa.buffer=Ta,wa.normalized=uo,wa.offset=$a,wa.stride=fo),wa.divisor!==mn&&(oa.vertexAttribDivisorANGLE(ra,mn),wa.divisor=mn)):(wa.buffer&&(Ie.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(Ie.vertexAttrib4f(ra,Ia,Yo,fa,kn),wa.x=Ia,wa.y=Yo,wa.z=fa,wa.w=kn)),Co=f.call(this,xe,xn,0),Po=!1,ji=1,gn=0,Ps=0,Ha=0,Sn=0,ao=null,Ba=0,Ko=!1,Qo=5126,Wi=0,Sa=0,Qa=0,Mr(Co)?(Po=!0,ao=fe.createStream(34962,Co),Qo=ao.dtype):(ao=fe.getBuffer(Co),ao?Qo=ao.dtype:"constant"in Co?(ji=2,typeof Co.constant=="number"?(gn=Co.constant,Ps=Ha=Sn=0):(gn=Co.constant.length>0?Co.constant[0]:0,Ps=Co.constant.length>1?Co.constant[1]:0,Ha=Co.constant.length>2?Co.constant[2]:0,Sn=Co.constant.length>3?Co.constant[3]:0)):(Mr(Co.buffer)?ao=fe.createStream(34962,Co.buffer):ao=fe.getBuffer(Co.buffer),Qo="type"in Co?Fi[Co.type]:ao.dtype,Ko=!!Co.normalized,Ba=Co.size|0,Wi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=c.location,da=dt[vn],ji===1?(da.buffer||Ie.enableVertexAttribArray(vn),la=Ba||1,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Wi||da.stride!==Sa)&&(Ie.bindBuffer(34962,ao.buffer),Ie.vertexAttribPointer(vn,la,Qo,Ko,Sa,Wi),da.type=Qo,da.size=la,da.buffer=ao,da.normalized=Ko,da.offset=Wi,da.stride=Sa),da.divisor!==Qa&&(oa.vertexAttribDivisorANGLE(vn,Qa),da.divisor=Qa)):(da.buffer&&(Ie.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(Ie.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=h.call(this,xe,xn,0),As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Oa=0,ha=0,Vs=0,Mr(vo)?(As=!0,Go=fe.createStream(34962,vo),Ns=Go.dtype):(Go=fe.getBuffer(vo),Go?Ns=Go.dtype:"constant"in vo?(ps=2,typeof vo.constant=="number"?(co=vo.constant,mo=No=jn=0):(co=vo.constant.length>0?vo.constant[0]:0,mo=vo.constant.length>1?vo.constant[1]:0,No=vo.constant.length>2?vo.constant[2]:0,jn=vo.constant.length>3?vo.constant[3]:0)):(Mr(vo.buffer)?Go=fe.createStream(34962,vo.buffer):Go=fe.getBuffer(vo.buffer),Ns="type"in vo?Fi[vo.type]:Go.dtype,qs=!!vo.normalized,Ys=vo.size|0,Oa=vo.offset|0,ha=vo.stride|0,Vs=vo.divisor|0)),Ya=d.location,_n=dt[Ya],ps===1?(_n.buffer||Ie.enableVertexAttribArray(Ya),Vn=Ys||4,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Oa||_n.stride!==ha)&&(Ie.bindBuffer(34962,Go.buffer),Ie.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Oa),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Oa,_n.stride=ha),_n.divisor!==Vs&&(oa.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(Ie.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(Ie.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=p.call(this,xe,xn,0),Ra=!1,Xn=1,un=0,$n=0,Ka=0,qn=0,Eo=null,Ja=0,lo=!1,eo=5126,sa=0,es=0,Na=0,Mr(wo)?(Ra=!0,Eo=fe.createStream(34962,wo),eo=Eo.dtype):(Eo=fe.getBuffer(wo),Eo?eo=Eo.dtype:"constant"in wo?(Xn=2,typeof wo.constant=="number"?(un=wo.constant,$n=Ka=qn=0):(un=wo.constant.length>0?wo.constant[0]:0,$n=wo.constant.length>1?wo.constant[1]:0,Ka=wo.constant.length>2?wo.constant[2]:0,qn=wo.constant.length>3?wo.constant[3]:0)):(Mr(wo.buffer)?Eo=fe.createStream(34962,wo.buffer):Eo=fe.getBuffer(wo.buffer),eo="type"in wo?Fi[wo.type]:Eo.dtype,lo=!!wo.normalized,Ja=wo.size|0,sa=wo.offset|0,es=wo.stride|0,Na=wo.divisor|0)),tn=x.location,Pa=dt[tn],Xn===1?(Pa.buffer||Ie.enableVertexAttribArray(tn),to=Ja||1,(Pa.type!==eo||Pa.size!==to||Pa.buffer!==Eo||Pa.normalized!==lo||Pa.offset!==sa||Pa.stride!==es)&&(Ie.bindBuffer(34962,Eo.buffer),Ie.vertexAttribPointer(tn,to,eo,lo,es,sa),Pa.type=eo,Pa.size=to,Pa.buffer=Eo,Pa.normalized=lo,Pa.offset=sa,Pa.stride=es),Pa.divisor!==Na&&(oa.vertexAttribDivisorANGLE(tn,Na),Pa.divisor=Na)):(Pa.buffer&&(Ie.disableVertexAttribArray(tn),Pa.buffer=null),(Pa.x!==un||Pa.y!==$n||Pa.z!==Ka||Pa.w!==qn)&&(Ie.vertexAttrib4f(tn,un,$n,Ka,qn),Pa.x=un,Pa.y=$n,Pa.z=Ka,Pa.w=qn)),yo=b.call(this,xe,xn,0),Jo=!1,Ao=1,Dn=0,_a=0,Ws=0,Ca=0,Es=null,Ts=0,Ho=!1,Wa=5126,To=0,ts=0,Wo=0,Mr(yo)?(Jo=!0,Es=fe.createStream(34962,yo),Wa=Es.dtype):(Es=fe.getBuffer(yo),Es?Wa=Es.dtype:"constant"in yo?(Ao=2,typeof yo.constant=="number"?(Dn=yo.constant,_a=Ws=Ca=0):(Dn=yo.constant.length>0?yo.constant[0]:0,_a=yo.constant.length>1?yo.constant[1]:0,Ws=yo.constant.length>2?yo.constant[2]:0,Ca=yo.constant.length>3?yo.constant[3]:0)):(Mr(yo.buffer)?Es=fe.createStream(34962,yo.buffer):Es=fe.getBuffer(yo.buffer),Wa="type"in yo?Fi[yo.type]:Es.dtype,Ho=!!yo.normalized,Ts=yo.size|0,To=yo.offset|0,ts=yo.stride|0,Wo=yo.divisor|0)),qa=v.location,ln=dt[qa],Ao===1?(ln.buffer||Ie.enableVertexAttribArray(qa),Bo=Ts||1,(ln.type!==Wa||ln.size!==Bo||ln.buffer!==Es||ln.normalized!==Ho||ln.offset!==To||ln.stride!==ts)&&(Ie.bindBuffer(34962,Es.buffer),Ie.vertexAttribPointer(qa,Bo,Wa,Ho,ts,To),ln.type=Wa,ln.size=Bo,ln.buffer=Es,ln.normalized=Ho,ln.offset=To,ln.stride=ts),ln.divisor!==Wo&&(oa.vertexAttribDivisorANGLE(qa,Wo),ln.divisor=Wo)):(ln.buffer&&(Ie.disableVertexAttribArray(qa),ln.buffer=null),(ln.x!==Dn||ln.y!==_a||ln.z!==Ws||ln.w!==Ca)&&(Ie.vertexAttrib4f(qa,Dn,_a,Ws,Ca),ln.x=Dn,ln.y=_a,ln.z=Ws,ln.w=Ca)),ko=k.call(this,xe,xn,0),oo=!1,za=1,ea=0,rs=0,$s=0,us=0,Ds=null,fl=0,as=!1,Ma=5126,Qs=0,ho=0,gs=0,Mr(ko)?(oo=!0,Ds=fe.createStream(34962,ko),Ma=Ds.dtype):(Ds=fe.getBuffer(ko),Ds?Ma=Ds.dtype:"constant"in ko?(za=2,typeof ko.constant=="number"?(ea=ko.constant,rs=$s=us=0):(ea=ko.constant.length>0?ko.constant[0]:0,rs=ko.constant.length>1?ko.constant[1]:0,$s=ko.constant.length>2?ko.constant[2]:0,us=ko.constant.length>3?ko.constant[3]:0)):(Mr(ko.buffer)?Ds=fe.createStream(34962,ko.buffer):Ds=fe.getBuffer(ko.buffer),Ma="type"in ko?Fi[ko.type]:Ds.dtype,as=!!ko.normalized,fl=ko.size|0,Qs=ko.offset|0,ho=ko.stride|0,gs=ko.divisor|0)),Vo=E.location,Do=dt[Vo],za===1?(Do.buffer||Ie.enableVertexAttribArray(Vo),Lo=fl||1,(Do.type!==Ma||Do.size!==Lo||Do.buffer!==Ds||Do.normalized!==as||Do.offset!==Qs||Do.stride!==ho)&&(Ie.bindBuffer(34962,Ds.buffer),Ie.vertexAttribPointer(Vo,Lo,Ma,as,ho,Qs),Do.type=Ma,Do.size=Lo,Do.buffer=Ds,Do.normalized=as,Do.offset=Qs,Do.stride=ho),Do.divisor!==gs&&(oa.vertexAttribDivisorANGLE(Vo,gs),Do.divisor=gs)):(Do.buffer&&(Ie.disableVertexAttribArray(Vo),Do.buffer=null),(Do.x!==ea||Do.y!==rs||Do.z!==$s||Do.w!==us)&&(Ie.vertexAttrib4f(Vo,ea,rs,$s,us),Do.x=ea,Do.y=rs,Do.z=$s,Do.w=us)),xs=T.call(this,xe,xn,0),ks=!1,Ea=1,Jn=0,Oo=0,rl=0,Gs=0,bs=null,zs=0,$o=!1,Aa=5126,os=0,_l=0,Ss=0,Mr(xs)?(ks=!0,bs=fe.createStream(34962,xs),Aa=bs.dtype):(bs=fe.getBuffer(xs),bs?Aa=bs.dtype:"constant"in xs?(Ea=2,typeof xs.constant=="number"?(Jn=xs.constant,Oo=rl=Gs=0):(Jn=xs.constant.length>0?xs.constant[0]:0,Oo=xs.constant.length>1?xs.constant[1]:0,rl=xs.constant.length>2?xs.constant[2]:0,Gs=xs.constant.length>3?xs.constant[3]:0)):(Mr(xs.buffer)?bs=fe.createStream(34962,xs.buffer):bs=fe.getBuffer(xs.buffer),Aa="type"in xs?Fi[xs.type]:bs.dtype,$o=!!xs.normalized,zs=xs.size|0,os=xs.offset|0,_l=xs.stride|0,Ss=xs.divisor|0)),po=L.location,go=dt[po],Ea===1?(go.buffer||Ie.enableVertexAttribArray(po),ss=zs||1,(go.type!==Aa||go.size!==ss||go.buffer!==bs||go.normalized!==$o||go.offset!==os||go.stride!==_l)&&(Ie.bindBuffer(34962,bs.buffer),Ie.vertexAttribPointer(po,ss,Aa,$o,_l,os),go.type=Aa,go.size=ss,go.buffer=bs,go.normalized=$o,go.offset=os,go.stride=_l),go.divisor!==Ss&&(oa.vertexAttribDivisorANGLE(po,Ss),go.divisor=Ss)):(go.buffer&&(Ie.disableVertexAttribArray(po),go.buffer=null),(go.x!==Jn||go.y!==Oo||go.z!==rl||go.w!==Gs)&&(Ie.vertexAttrib4f(po,Jn,Oo,rl,Gs),go.x=Jn,go.y=Oo,go.z=rl,go.w=Gs)),qo=_.call(this,xe,xn,0),zo=!1,io=1,Io=0,Da=0,vs=0,fs=0,cl=null,el=0,Hs=!1,Ro=5126,tl=0,Fs=0,hl=0,Mr(qo)?(zo=!0,cl=fe.createStream(34962,qo),Ro=cl.dtype):(cl=fe.getBuffer(qo),cl?Ro=cl.dtype:"constant"in qo?(io=2,typeof qo.constant=="number"?(Io=qo.constant,Da=vs=fs=0):(Io=qo.constant.length>0?qo.constant[0]:0,Da=qo.constant.length>1?qo.constant[1]:0,vs=qo.constant.length>2?qo.constant[2]:0,fs=qo.constant.length>3?qo.constant[3]:0)):(Mr(qo.buffer)?cl=fe.createStream(34962,qo.buffer):cl=fe.getBuffer(qo.buffer),Ro="type"in qo?Fi[qo.type]:cl.dtype,Hs=!!qo.normalized,el=qo.size|0,tl=qo.offset|0,Fs=qo.stride|0,hl=qo.divisor|0)),Fa=C.location,Ms=dt[Fa],io===1?(Ms.buffer||Ie.enableVertexAttribArray(Fa),jo=el||1,(Ms.type!==Ro||Ms.size!==jo||Ms.buffer!==cl||Ms.normalized!==Hs||Ms.offset!==tl||Ms.stride!==Fs)&&(Ie.bindBuffer(34962,cl.buffer),Ie.vertexAttribPointer(Fa,jo,Ro,Hs,Fs,tl),Ms.type=Ro,Ms.size=jo,Ms.buffer=cl,Ms.normalized=Hs,Ms.offset=tl,Ms.stride=Fs),Ms.divisor!==hl&&(oa.vertexAttribDivisorANGLE(Fa,hl),Ms.divisor=hl)):(Ms.buffer&&(Ie.disableVertexAttribArray(Fa),Ms.buffer=null),(Ms.x!==Io||Ms.y!==Da||Ms.z!==vs||Ms.w!==fs)&&(Ie.vertexAttrib4f(Fa,Io,Da,vs,fs),Ms.x=Io,Ms.y=Da,Ms.z=vs,Ms.w=fs)),Rs=M.call(this,xe,xn,0),Is=!1,Bs=1,At=0,Gt=0,wr=0,mr=0,Or=null,gi=0,Ti=!1,ki=5126,Ji=0,Fn=0,Pi=0,Mr(Rs)?(Is=!0,Or=fe.createStream(34962,Rs),ki=Or.dtype):(Or=fe.getBuffer(Rs),Or?ki=Or.dtype:"constant"in Rs?(Bs=2,typeof Rs.constant=="number"?(At=Rs.constant,Gt=wr=mr=0):(At=Rs.constant.length>0?Rs.constant[0]:0,Gt=Rs.constant.length>1?Rs.constant[1]:0,wr=Rs.constant.length>2?Rs.constant[2]:0,mr=Rs.constant.length>3?Rs.constant[3]:0)):(Mr(Rs.buffer)?Or=fe.createStream(34962,Rs.buffer):Or=fe.getBuffer(Rs.buffer),ki="type"in Rs?Fi[Rs.type]:Or.dtype,Ti=!!Rs.normalized,gi=Rs.size|0,Ji=Rs.offset|0,Fn=Rs.stride|0,Pi=Rs.divisor|0)),hi=m.location,Li=dt[hi],Bs===1?(Li.buffer||Ie.enableVertexAttribArray(hi),Si=gi||1,(Li.type!==ki||Li.size!==Si||Li.buffer!==Or||Li.normalized!==Ti||Li.offset!==Ji||Li.stride!==Fn)&&(Ie.bindBuffer(34962,Or.buffer),Ie.vertexAttribPointer(hi,Si,ki,Ti,Fn,Ji),Li.type=ki,Li.size=Si,Li.buffer=Or,Li.normalized=Ti,Li.offset=Ji,Li.stride=Fn),Li.divisor!==Pi&&(oa.vertexAttribDivisorANGLE(hi,Pi),Li.divisor=Pi)):(Li.buffer&&(Ie.disableVertexAttribArray(hi),Li.buffer=null),(Li.x!==At||Li.y!==Gt||Li.z!==wr||Li.w!==mr)&&(Ie.vertexAttrib4f(hi,At,Gt,wr,mr),Li.x=At,Li.y=Gt,Li.z=wr,Li.w=mr)),Ie.uniform1i(P.location,!1),Gn=xn.markerTexture,Gn&&Gn._reglType==="framebuffer"&&(Gn=Gn.color[0]),ta=Gn._texture,Ie.uniform1i(A.location,ta.bind()),ya=xn.opacity,Ie.uniform1f(B.location,ya),ia=U.call(this,xe,xn,0),pa=ia[0],va=ia[1],Ie.uniform2f(F.location,pa,va),Ie.uniform1i(G.location,j.bind()),zn=xe.pixelRatio,Ie.uniform1f(H.location,zn),is=xn.scale,Cs=is[0],Ks=is[1],Ie.uniform2f(N.location,Cs,Ks),dl=xn.scaleFract,xl=dl[0],Ol=dl[1],Ie.uniform2f(W.location,xl,Ol),bl=xn.translate,eu=bl[0],Zl=bl[1],Ie.uniform2f(re.location,eu,Zl),Vl=xn.translateFract,ja=Vl[0],ns=Vl[1],Ie.uniform2f(ae.location,ja,ns),Js=xn.elements,cs=null,sl=Mr(Js),sl?cs=ge.createStream(Js):cs=ge.getElements(Js),cs&&Ie.bindBuffer(34963,cs.buffer.buffer),ll=xn.offset,il=xn.count,il&&(zl=ct.instances,zl>0?cs?oa.drawElementsInstancedANGLE(0,il,cs.type,ll<<(cs.type-5121>>1),zl):oa.drawArraysInstancedANGLE(0,ll,il,zl):zl<0&&(cs?Ie.drawElements(0,il,cs.type,ll<<(cs.type-5121>>1)):Ie.drawArrays(0,ll,il)),De.dirty=!0,It.setVAO(null),xe.viewportWidth=Ai,xe.viewportHeight=Qi,Ga&&(r.cpuTime+=performance.now()-ma),so&&fe.destroyStream(Ta),Po&&fe.destroyStream(ao),As&&fe.destroyStream(Go),Ra&&fe.destroyStream(Eo),Jo&&fe.destroyStream(Es),oo&&fe.destroyStream(Ds),ks&&fe.destroyStream(bs),zo&&fe.destroyStream(cl),Is&&fe.destroyStream(Or),ta.unbind(),j.unbind(),sl&&ge.destroyStream(cs))},scope:function(xn,xi,Xr){var ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,iu,tu,Wu,Qu,Ju,ju,Xu,lf,xf,ef,tf,Z,se,ze,Xe,Qe,ot,jt,_t,cr,Cr,zr,ui,$r,Oi,fn,vi,zi,Xi,pn,sn,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Zu,Gu,rf,ds,Wl,Au,Tu,uf,df,Ef,vf;ft=xn.viewport,tr=ft.x|0,pr=ft.y|0,gr="width"in ft?ft.width|0:xe.framebufferWidth-tr,Zr="height"in ft?ft.height|0:xe.framebufferHeight-pr,Ai=xe.viewportWidth,xe.viewportWidth=gr,Qi=xe.viewportHeight,xe.viewportHeight=Zr,ni=ti[0],ti[0]=tr,Zi=ti[1],ti[1]=pr,aa=ti[2],ti[2]=gr,Mn=ti[3],ti[3]=Zr,Un=Fr[0],Fr[0]=be,Ga=Fr[1],Fr[1]=Pe,ma=Fr[2],Fr[2]=Ce,oa=Fr[3],Fr[3]=de,ka=Re.blend_enable,Re.blend_enable=te,so=Ci[0],Ci[0]=ke,Kr=Ci[1],Ci[1]=Ee,Ia=Ci[2],Ci[2]=Me,Yo=Ci[3],Ci[3]=Ne,fa=Re.depth_enable,Re.depth_enable=Fe,kn=xn.viewport,Ta=kn.x|0,ys=kn.y|0,uo="width"in kn?kn.width|0:xe.framebufferWidth-Ta,ls="height"in kn?kn.height|0:xe.framebufferHeight-ys,$a=Ei[0],Ei[0]=Ta,fo=Ei[1],Ei[1]=ys,mn=Ei[2],Ei[2]=uo,ra=Ei[3],Ei[3]=ls,wa=Re.scissor_enable,Re.scissor_enable=ye,ws=Re.stencil_enable,Re.stencil_enable=Ve,Co=De.profile,Co&&(Po=performance.now(),r.count++),ji=xn.elements,gn=null,Ps=Mr(ji),Ps?gn=ge.createStream(ji):gn=ge.getElements(ji),Ha=ct.elements,ct.elements=gn,Sn=xn.offset,ao=ct.offset,ct.offset=Sn,Ba=xn.count,Ko=ct.count,ct.count=Ba,Qo=ct.primitive,ct.primitive=ce,Wi=Pt[Ye],Pt[Ye]=!1,Sa=Pt[gt],Pt[gt]=nt,Qa=xn.opacity,vn=Pt[Nt],Pt[Nt]=Qa,da=U.call(this,xe,xn,Xr),la=Pt[it],Pt[it]=da,vo=xe.pixelRatio,As=Pt[Ke],Pt[Ke]=vo,ps=xn.scale,co=Pt[kt],Pt[kt]=ps,mo=xn.scaleFract,No=Pt[Tt],Pt[Tt]=mo,jn=xn.translate,Go=Pt[St],Pt[St]=jn,Ys=xn.translateFract,qs=Pt[Dt],Pt[Dt]=Ys,Ns=xn.markerTexture,Oa=Pt[Zt],Pt[Zt]=Ns,ha=k.call(this,xe,xn,Xr),Vs=!1,Ya=1,_n=0,Vn=0,wo=0,Ra=0,Xn=null,un=0,$n=!1,Ka=5126,qn=0,Eo=0,Ja=0,Mr(ha)?(Vs=!0,Xn=fe.createStream(34962,ha),Ka=Xn.dtype):(Xn=fe.getBuffer(ha),Xn?Ka=Xn.dtype:"constant"in ha?(Ya=2,typeof ha.constant=="number"?(_n=ha.constant,Vn=wo=Ra=0):(_n=ha.constant.length>0?ha.constant[0]:0,Vn=ha.constant.length>1?ha.constant[1]:0,wo=ha.constant.length>2?ha.constant[2]:0,Ra=ha.constant.length>3?ha.constant[3]:0)):(Mr(ha.buffer)?Xn=fe.createStream(34962,ha.buffer):Xn=fe.getBuffer(ha.buffer),Ka="type"in ha?Fi[ha.type]:Xn.dtype,$n=!!ha.normalized,un=ha.size|0,qn=ha.offset|0,Eo=ha.stride|0,Ja=ha.divisor|0)),lo=Et.state,Et.state=Ya,eo=Et.x,Et.x=_n,sa=Et.y,Et.y=Vn,es=Et.z,Et.z=wo,Na=Et.w,Et.w=Ra,tn=Et.buffer,Et.buffer=Xn,Pa=Et.size,Et.size=un,to=Et.normalized,Et.normalized=$n,yo=Et.type,Et.type=Ka,Jo=Et.offset,Et.offset=qn,Ao=Et.stride,Et.stride=Eo,Dn=Et.divisor,Et.divisor=Ja,_a=_.call(this,xe,xn,Xr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,ln=0,Bo=0,ko=0,Mr(_a)?(Ws=!0,To=fe.createStream(34962,_a),qa=To.dtype):(To=fe.getBuffer(_a),To?qa=To.dtype:"constant"in _a?(Ca=2,typeof _a.constant=="number"?(Es=_a.constant,Ts=Ho=Wa=0):(Es=_a.constant.length>0?_a.constant[0]:0,Ts=_a.constant.length>1?_a.constant[1]:0,Ho=_a.constant.length>2?_a.constant[2]:0,Wa=_a.constant.length>3?_a.constant[3]:0)):(Mr(_a.buffer)?To=fe.createStream(34962,_a.buffer):To=fe.getBuffer(_a.buffer),qa="type"in _a?Fi[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,ln=_a.offset|0,Bo=_a.stride|0,ko=_a.divisor|0)),oo=Ae.state,Ae.state=Ca,za=Ae.x,Ae.x=Es,ea=Ae.y,Ae.y=Ts,rs=Ae.z,Ae.z=Ho,$s=Ae.w,Ae.w=Wa,us=Ae.buffer,Ae.buffer=To,Ds=Ae.size,Ae.size=ts,fl=Ae.normalized,Ae.normalized=Wo,as=Ae.type,Ae.type=qa,Ma=Ae.offset,Ae.offset=ln,Qs=Ae.stride,Ae.stride=Bo,ho=Ae.divisor,Ae.divisor=ko,gs=T.call(this,xe,xn,Xr),Vo=!1,Do=1,Lo=0,xs=0,ks=0,Ea=0,Jn=null,Oo=0,rl=!1,Gs=5126,bs=0,zs=0,$o=0,Mr(gs)?(Vo=!0,Jn=fe.createStream(34962,gs),Gs=Jn.dtype):(Jn=fe.getBuffer(gs),Jn?Gs=Jn.dtype:"constant"in gs?(Do=2,typeof gs.constant=="number"?(Lo=gs.constant,xs=ks=Ea=0):(Lo=gs.constant.length>0?gs.constant[0]:0,xs=gs.constant.length>1?gs.constant[1]:0,ks=gs.constant.length>2?gs.constant[2]:0,Ea=gs.constant.length>3?gs.constant[3]:0)):(Mr(gs.buffer)?Jn=fe.createStream(34962,gs.buffer):Jn=fe.getBuffer(gs.buffer),Gs="type"in gs?Fi[gs.type]:Jn.dtype,rl=!!gs.normalized,Oo=gs.size|0,bs=gs.offset|0,zs=gs.stride|0,$o=gs.divisor|0)),Aa=at.state,at.state=Do,os=at.x,at.x=Lo,_l=at.y,at.y=xs,Ss=at.z,at.z=ks,po=at.w,at.w=Ea,go=at.buffer,at.buffer=Jn,ss=at.size,at.size=Oo,qo=at.normalized,at.normalized=rl,zo=at.type,at.type=Gs,io=at.offset,at.offset=bs,Io=at.stride,at.stride=zs,Da=at.divisor,at.divisor=$o,vs=M.call(this,xe,xn,Xr),fs=!1,cl=1,el=0,Hs=0,Ro=0,tl=0,Fs=null,hl=0,Fa=!1,Ms=5126,jo=0,Rs=0,Is=0,Mr(vs)?(fs=!0,Fs=fe.createStream(34962,vs),Ms=Fs.dtype):(Fs=fe.getBuffer(vs),Fs?Ms=Fs.dtype:"constant"in vs?(cl=2,typeof vs.constant=="number"?(el=vs.constant,Hs=Ro=tl=0):(el=vs.constant.length>0?vs.constant[0]:0,Hs=vs.constant.length>1?vs.constant[1]:0,Ro=vs.constant.length>2?vs.constant[2]:0,tl=vs.constant.length>3?vs.constant[3]:0)):(Mr(vs.buffer)?Fs=fe.createStream(34962,vs.buffer):Fs=fe.getBuffer(vs.buffer),Ms="type"in vs?Fi[vs.type]:Fs.dtype,Fa=!!vs.normalized,hl=vs.size|0,jo=vs.offset|0,Rs=vs.stride|0,Is=vs.divisor|0)),Bs=wt.state,wt.state=cl,At=wt.x,wt.x=el,Gt=wt.y,wt.y=Hs,wr=wt.z,wt.z=Ro,mr=wt.w,wt.w=tl,Or=wt.buffer,wt.buffer=Fs,gi=wt.size,wt.size=hl,Ti=wt.normalized,wt.normalized=Fa,ki=wt.type,wt.type=Ms,Ji=wt.offset,wt.offset=jo,Fn=wt.stride,wt.stride=Rs,Pi=wt.divisor,wt.divisor=Is,hi=b.call(this,xe,xn,Xr),Li=!1,Si=1,Gn=0,ta=0,ya=0,ia=0,pa=null,va=0,zn=!1,is=5126,Cs=0,Ks=0,dl=0,Mr(hi)?(Li=!0,pa=fe.createStream(34962,hi),is=pa.dtype):(pa=fe.getBuffer(hi),pa?is=pa.dtype:"constant"in hi?(Si=2,typeof hi.constant=="number"?(Gn=hi.constant,ta=ya=ia=0):(Gn=hi.constant.length>0?hi.constant[0]:0,ta=hi.constant.length>1?hi.constant[1]:0,ya=hi.constant.length>2?hi.constant[2]:0,ia=hi.constant.length>3?hi.constant[3]:0)):(Mr(hi.buffer)?pa=fe.createStream(34962,hi.buffer):pa=fe.getBuffer(hi.buffer),is="type"in hi?Fi[hi.type]:pa.dtype,zn=!!hi.normalized,va=hi.size|0,Cs=hi.offset|0,Ks=hi.stride|0,dl=hi.divisor|0)),xl=vt.state,vt.state=Si,Ol=vt.x,vt.x=Gn,bl=vt.y,vt.y=ta,eu=vt.z,vt.z=ya,Zl=vt.w,vt.w=ia,Vl=vt.buffer,vt.buffer=pa,ja=vt.size,vt.size=va,ns=vt.normalized,vt.normalized=zn,Js=vt.type,vt.type=is,cs=vt.offset,vt.offset=Cs,sl=vt.stride,vt.stride=Ks,ll=vt.divisor,vt.divisor=dl,il=f.call(this,xe,xn,Xr),zl=!1,Ml=1,Rl=0,Al=0,Ll=0,ms=0,Os=null,Xl=0,Gl=!1,Ul=5126,le=0,w=0,q=0,Mr(il)?(zl=!0,Os=fe.createStream(34962,il),Ul=Os.dtype):(Os=fe.getBuffer(il),Os?Ul=Os.dtype:"constant"in il?(Ml=2,typeof il.constant=="number"?(Rl=il.constant,Al=Ll=ms=0):(Rl=il.constant.length>0?il.constant[0]:0,Al=il.constant.length>1?il.constant[1]:0,Ll=il.constant.length>2?il.constant[2]:0,ms=il.constant.length>3?il.constant[3]:0)):(Mr(il.buffer)?Os=fe.createStream(34962,il.buffer):Os=fe.getBuffer(il.buffer),Ul="type"in il?Fi[il.type]:Os.dtype,Gl=!!il.normalized,Xl=il.size|0,le=il.offset|0,w=il.stride|0,q=il.divisor|0)),Q=st.state,st.state=Ml,ee=st.x,st.x=Rl,ue=st.y,st.y=Al,Ge=st.z,st.z=Ll,et=st.w,st.w=ms,mt=st.buffer,st.buffer=Os,Ft=st.size,st.size=Xl,ir=st.normalized,st.normalized=Gl,or=st.type,st.type=Ul,kr=st.offset,st.offset=le,Vr=st.stride,st.stride=w,he=st.divisor,st.divisor=q,Se=h.call(this,xe,xn,Xr),qe=!1,He=1,lt=0,tt=0,pt=0,Ht=0,nr=null,fr=0,Ar=!1,Rr=5126,ri=0,si=0,Mi=0,Mr(Se)?(qe=!0,nr=fe.createStream(34962,Se),Rr=nr.dtype):(nr=fe.getBuffer(Se),nr?Rr=nr.dtype:"constant"in Se?(He=2,typeof Se.constant=="number"?(lt=Se.constant,tt=pt=Ht=0):(lt=Se.constant.length>0?Se.constant[0]:0,tt=Se.constant.length>1?Se.constant[1]:0,pt=Se.constant.length>2?Se.constant[2]:0,Ht=Se.constant.length>3?Se.constant[3]:0)):(Mr(Se.buffer)?nr=fe.createStream(34962,Se.buffer):nr=fe.getBuffer(Se.buffer),Rr="type"in Se?Fi[Se.type]:nr.dtype,Ar=!!Se.normalized,fr=Se.size|0,ri=Se.offset|0,si=Se.stride|0,Mi=Se.divisor|0)),hn=Ue.state,Ue.state=He,Zn=Ue.x,Ue.x=lt,Yn=Ue.y,Ue.y=tt,Ua=Ue.z,Ue.z=pt,Fo=Ue.w,Ue.w=Ht,vl=Ue.buffer,Ue.buffer=nr,Us=Ue.size,Ue.size=fr,ml=Ue.normalized,Ue.normalized=Ar,au=Ue.type,Ue.type=Rr,Sl=Ue.offset,Ue.offset=ri,Yl=Ue.stride,Ue.stride=si,ql=Ue.divisor,Ue.divisor=Mi,ou=u.call(this,xe,xn,Xr),Pu=!1,iu=1,tu=0,Wu=0,Qu=0,Ju=0,ju=null,Xu=0,lf=!1,xf=5126,ef=0,tf=0,Z=0,Mr(ou)?(Pu=!0,ju=fe.createStream(34962,ou),xf=ju.dtype):(ju=fe.getBuffer(ou),ju?xf=ju.dtype:"constant"in ou?(iu=2,typeof ou.constant=="number"?(tu=ou.constant,Wu=Qu=Ju=0):(tu=ou.constant.length>0?ou.constant[0]:0,Wu=ou.constant.length>1?ou.constant[1]:0,Qu=ou.constant.length>2?ou.constant[2]:0,Ju=ou.constant.length>3?ou.constant[3]:0)):(Mr(ou.buffer)?ju=fe.createStream(34962,ou.buffer):ju=fe.getBuffer(ou.buffer),xf="type"in ou?Fi[ou.type]:ju.dtype,lf=!!ou.normalized,Xu=ou.size|0,ef=ou.offset|0,tf=ou.stride|0,Z=ou.divisor|0)),se=rt.state,rt.state=iu,ze=rt.x,rt.x=tu,Xe=rt.y,rt.y=Wu,Qe=rt.z,rt.z=Qu,ot=rt.w,rt.w=Ju,jt=rt.buffer,rt.buffer=ju,_t=rt.size,rt.size=Xu,cr=rt.normalized,rt.normalized=lf,Cr=rt.type,rt.type=xf,zr=rt.offset,rt.offset=ef,ui=rt.stride,rt.stride=tf,$r=rt.divisor,rt.divisor=Z,Oi=p.call(this,xe,xn,Xr),fn=!1,vi=1,zi=0,Xi=0,pn=0,sn=0,bi=null,xo=0,no=!1,Xo=5126,js=0,El=0,Pl=0,Mr(Oi)?(fn=!0,bi=fe.createStream(34962,Oi),Xo=bi.dtype):(bi=fe.getBuffer(Oi),bi?Xo=bi.dtype:"constant"in Oi?(vi=2,typeof Oi.constant=="number"?(zi=Oi.constant,Xi=pn=sn=0):(zi=Oi.constant.length>0?Oi.constant[0]:0,Xi=Oi.constant.length>1?Oi.constant[1]:0,pn=Oi.constant.length>2?Oi.constant[2]:0,sn=Oi.constant.length>3?Oi.constant[3]:0)):(Mr(Oi.buffer)?bi=fe.createStream(34962,Oi.buffer):bi=fe.getBuffer(Oi.buffer),Xo="type"in Oi?Fi[Oi.type]:bi.dtype,no=!!Oi.normalized,xo=Oi.size|0,js=Oi.offset|0,El=Oi.stride|0,Pl=Oi.divisor|0)),pu=$e.state,$e.state=vi,Il=$e.x,$e.x=zi,fu=$e.y,$e.y=Xi,Zu=$e.z,$e.z=pn,Gu=$e.w,$e.w=sn,rf=$e.buffer,$e.buffer=bi,ds=$e.size,$e.size=xo,Wl=$e.normalized,$e.normalized=no,Au=$e.type,$e.type=Xo,Tu=$e.offset,$e.offset=js,uf=$e.stride,$e.stride=El,df=$e.divisor,$e.divisor=Pl,Ef=pe.vert,pe.vert=zt,vf=pe.frag,pe.frag=Yt,De.dirty=!0,xi(xe,xn,Xr),xe.viewportWidth=Ai,xe.viewportHeight=Qi,ti[0]=ni,ti[1]=Zi,ti[2]=aa,ti[3]=Mn,Fr[0]=Un,Fr[1]=Ga,Fr[2]=ma,Fr[3]=oa,Re.blend_enable=ka,Ci[0]=so,Ci[1]=Kr,Ci[2]=Ia,Ci[3]=Yo,Re.depth_enable=fa,Ei[0]=$a,Ei[1]=fo,Ei[2]=mn,Ei[3]=ra,Re.scissor_enable=wa,Re.stencil_enable=ws,Co&&(r.cpuTime+=performance.now()-Po),Ps&&ge.destroyStream(gn),ct.elements=Ha,ct.offset=ao,ct.count=Ko,ct.primitive=Qo,Pt[Ye]=Wi,Pt[gt]=Sa,Pt[Nt]=vn,Pt[it]=la,Pt[Ke]=As,Pt[kt]=co,Pt[Tt]=No,Pt[St]=Go,Pt[Dt]=qs,Pt[Zt]=Oa,Vs&&fe.destroyStream(Xn),Et.state=lo,Et.x=eo,Et.y=sa,Et.z=es,Et.w=Na,Et.buffer=tn,Et.size=Pa,Et.normalized=to,Et.type=yo,Et.offset=Jo,Et.stride=Ao,Et.divisor=Dn,Ws&&fe.destroyStream(To),Ae.state=oo,Ae.x=za,Ae.y=ea,Ae.z=rs,Ae.w=$s,Ae.buffer=us,Ae.size=Ds,Ae.normalized=fl,Ae.type=as,Ae.offset=Ma,Ae.stride=Qs,Ae.divisor=ho,Vo&&fe.destroyStream(Jn),at.state=Aa,at.x=os,at.y=_l,at.z=Ss,at.w=po,at.buffer=go,at.size=ss,at.normalized=qo,at.type=zo,at.offset=io,at.stride=Io,at.divisor=Da,fs&&fe.destroyStream(Fs),wt.state=Bs,wt.x=At,wt.y=Gt,wt.z=wr,wt.w=mr,wt.buffer=Or,wt.size=gi,wt.normalized=Ti,wt.type=ki,wt.offset=Ji,wt.stride=Fn,wt.divisor=Pi,Li&&fe.destroyStream(pa),vt.state=xl,vt.x=Ol,vt.y=bl,vt.z=eu,vt.w=Zl,vt.buffer=Vl,vt.size=ja,vt.normalized=ns,vt.type=Js,vt.offset=cs,vt.stride=sl,vt.divisor=ll,zl&&fe.destroyStream(Os),st.state=Q,st.x=ee,st.y=ue,st.z=Ge,st.w=et,st.buffer=mt,st.size=Ft,st.normalized=ir,st.type=or,st.offset=kr,st.stride=Vr,st.divisor=he,qe&&fe.destroyStream(nr),Ue.state=hn,Ue.x=Zn,Ue.y=Yn,Ue.z=Ua,Ue.w=Fo,Ue.buffer=vl,Ue.size=Us,Ue.normalized=ml,Ue.type=au,Ue.offset=Sl,Ue.stride=Yl,Ue.divisor=ql,Pu&&fe.destroyStream(ju),rt.state=se,rt.x=ze,rt.y=Xe,rt.z=Qe,rt.w=ot,rt.buffer=jt,rt.size=_t,rt.normalized=cr,rt.type=Cr,rt.offset=zr,rt.stride=ui,rt.divisor=$r,fn&&fe.destroyStream(bi),$e.state=pu,$e.x=Il,$e.y=fu,$e.z=Zu,$e.w=Gu,$e.buffer=rf,$e.size=ds,$e.normalized=Wl,$e.type=Au,$e.offset=Tu,$e.stride=uf,$e.divisor=df,pe.vert=Ef,pe.frag=vf,De.dirty=!0},batch:function(xn,xi){var Xr,ft,tr,pr,gr,Zr,Ai;if(Xr=Hr.angle_instanced_arrays,ft=rr.next,ft!==rr.cur&&(ft?Ie.bindFramebuffer(36160,ft.framebuffer):Ie.bindFramebuffer(36160,null),rr.cur=ft),De.dirty){var Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao;Qi=Re.dither,Qi!==De.dither&&(Qi?Ie.enable(3024):Ie.disable(3024),De.dither=Qi),ni=Di[0],Zi=Di[1],(ni!==Ii[0]||Zi!==Ii[1])&&(Ie.blendEquationSeparate(ni,Zi),Ii[0]=ni,Ii[1]=Zi),aa=Re.depth_func,aa!==De.depth_func&&(Ie.depthFunc(aa),De.depth_func=aa),Mn=ii[0],Un=ii[1],(Mn!==wi[0]||Un!==wi[1])&&(Ie.depthRange(Mn,Un),wi[0]=Mn,wi[1]=Un),Ga=Re.depth_mask,Ga!==De.depth_mask&&(Ie.depthMask(Ga),De.depth_mask=Ga),ma=Gi[0],oa=Gi[1],ka=Gi[2],so=Gi[3],(ma!==Bt[0]||oa!==Bt[1]||ka!==Bt[2]||so!==Bt[3])&&(Ie.colorMask(ma,oa,ka,so),Bt[0]=ma,Bt[1]=oa,Bt[2]=ka,Bt[3]=so),Kr=Re.cull_enable,Kr!==De.cull_enable&&(Kr?Ie.enable(2884):Ie.disable(2884),De.cull_enable=Kr),Ia=Re.cull_face,Ia!==De.cull_face&&(Ie.cullFace(Ia),De.cull_face=Ia),Yo=Re.frontFace,Yo!==De.frontFace&&(Ie.frontFace(Yo),De.frontFace=Yo),fa=Re.lineWidth,fa!==De.lineWidth&&(Ie.lineWidth(fa),De.lineWidth=fa),kn=Re.polygonOffset_enable,kn!==De.polygonOffset_enable&&(kn?Ie.enable(32823):Ie.disable(32823),De.polygonOffset_enable=kn),Ta=yt[0],ys=yt[1],(Ta!==Vt[0]||ys!==Vt[1])&&(Ie.polygonOffset(Ta,ys),Vt[0]=Ta,Vt[1]=ys),uo=Re.sample_alpha,uo!==De.sample_alpha&&(uo?Ie.enable(32926):Ie.disable(32926),De.sample_alpha=uo),ls=Re.sample_enable,ls!==De.sample_enable&&(ls?Ie.enable(32928):Ie.disable(32928),De.sample_enable=ls),$a=Wt[0],fo=Wt[1],($a!==_r[0]||fo!==_r[1])&&(Ie.sampleCoverage($a,fo),_r[0]=$a,_r[1]=fo),mn=Re.stencil_mask,mn!==De.stencil_mask&&(Ie.stencilMask(mn),De.stencil_mask=mn),ra=Lr[0],wa=Lr[1],ws=Lr[2],(ra!==Ur[0]||wa!==Ur[1]||ws!==Ur[2])&&(Ie.stencilFunc(ra,wa,ws),Ur[0]=ra,Ur[1]=wa,Ur[2]=ws),Co=Ir[0],Po=Ir[1],ji=Ir[2],gn=Ir[3],(Co!==Gr[0]||Po!==Gr[1]||ji!==Gr[2]||gn!==Gr[3])&&(Ie.stencilOpSeparate(Co,Po,ji,gn),Gr[0]=Co,Gr[1]=Po,Gr[2]=ji,Gr[3]=gn),Ps=jr[0],Ha=jr[1],Sn=jr[2],ao=jr[3],(Ps!==yi[0]||Ha!==yi[1]||Sn!==yi[2]||ao!==yi[3])&&(Ie.stencilOpSeparate(Ps,Ha,Sn,ao),yi[0]=Ps,yi[1]=Ha,yi[2]=Sn,yi[3]=ao)}Ie.blendColor(0,0,0,1),di[0]=0,di[1]=0,di[2]=0,di[3]=1,hr?Ie.enable(3042):Ie.disable(3042),De.blend_enable=hr,Ie.blendFuncSeparate(770,771,773,1),nn[0]=770,nn[1]=771,nn[2]=773,nn[3]=1,yr?Ie.enable(2929):Ie.disable(2929),De.depth_enable=yr,br?Ie.enable(3089):Ie.disable(3089),De.scissor_enable=br,Ut?Ie.enable(2960):Ie.disable(2960),De.stencil_enable=Ut,tr=De.profile,tr&&(pr=performance.now(),r.count+=xi),Ie.useProgram(s.program),gr=Hr.angle_instanced_arrays;var Ba;for(It.setVAO(null),Ie.uniform1i(P.location,!1),Ie.uniform1i(G.location,j.bind()),Ba=ct.instances,Zr=0;Zr0?mo.constant[0]:0,Ys=mo.constant.length>1?mo.constant[1]:0,qs=mo.constant.length>2?mo.constant[2]:0,Ns=mo.constant.length>3?mo.constant[3]:0)):(Mr(mo.buffer)?Oa=fe.createStream(34962,mo.buffer):Oa=fe.getBuffer(mo.buffer),Ya="type"in mo?Fi[mo.type]:Oa.dtype,Vs=!!mo.normalized,ha=mo.size|0,_n=mo.offset|0,Vn=mo.stride|0,wo=mo.divisor|0)),Ra=l.location,Xn=dt[Ra],jn===1?(Xn.buffer||Ie.enableVertexAttribArray(Ra),un=ha||4,(Xn.type!==Ya||Xn.size!==un||Xn.buffer!==Oa||Xn.normalized!==Vs||Xn.offset!==_n||Xn.stride!==Vn)&&(Ie.bindBuffer(34962,Oa.buffer),Ie.vertexAttribPointer(Ra,un,Ya,Vs,Vn,_n),Xn.type=Ya,Xn.size=un,Xn.buffer=Oa,Xn.normalized=Vs,Xn.offset=_n,Xn.stride=Vn),Xn.divisor!==wo&&(gr.vertexAttribDivisorANGLE(Ra,wo),Xn.divisor=wo)):(Xn.buffer&&(Ie.disableVertexAttribArray(Ra),Xn.buffer=null),(Xn.x!==Go||Xn.y!==Ys||Xn.z!==qs||Xn.w!==Ns)&&(Ie.vertexAttrib4f(Ra,Go,Ys,qs,Ns),Xn.x=Go,Xn.y=Ys,Xn.z=qs,Xn.w=Ns)),$n=f.call(this,xe,Ai,Zr),Ka=!1,qn=1,Eo=0,Ja=0,lo=0,eo=0,sa=null,es=0,Na=!1,tn=5126,Pa=0,to=0,yo=0,Mr($n)?(Ka=!0,sa=fe.createStream(34962,$n),tn=sa.dtype):(sa=fe.getBuffer($n),sa?tn=sa.dtype:"constant"in $n?(qn=2,typeof $n.constant=="number"?(Eo=$n.constant,Ja=lo=eo=0):(Eo=$n.constant.length>0?$n.constant[0]:0,Ja=$n.constant.length>1?$n.constant[1]:0,lo=$n.constant.length>2?$n.constant[2]:0,eo=$n.constant.length>3?$n.constant[3]:0)):(Mr($n.buffer)?sa=fe.createStream(34962,$n.buffer):sa=fe.getBuffer($n.buffer),tn="type"in $n?Fi[$n.type]:sa.dtype,Na=!!$n.normalized,es=$n.size|0,Pa=$n.offset|0,to=$n.stride|0,yo=$n.divisor|0)),Jo=c.location,Ao=dt[Jo],qn===1?(Ao.buffer||Ie.enableVertexAttribArray(Jo),Dn=es||1,(Ao.type!==tn||Ao.size!==Dn||Ao.buffer!==sa||Ao.normalized!==Na||Ao.offset!==Pa||Ao.stride!==to)&&(Ie.bindBuffer(34962,sa.buffer),Ie.vertexAttribPointer(Jo,Dn,tn,Na,to,Pa),Ao.type=tn,Ao.size=Dn,Ao.buffer=sa,Ao.normalized=Na,Ao.offset=Pa,Ao.stride=to),Ao.divisor!==yo&&(gr.vertexAttribDivisorANGLE(Jo,yo),Ao.divisor=yo)):(Ao.buffer&&(Ie.disableVertexAttribArray(Jo),Ao.buffer=null),(Ao.x!==Eo||Ao.y!==Ja||Ao.z!==lo||Ao.w!==eo)&&(Ie.vertexAttrib4f(Jo,Eo,Ja,lo,eo),Ao.x=Eo,Ao.y=Ja,Ao.z=lo,Ao.w=eo)),_a=h.call(this,xe,Ai,Zr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,ln=0,Bo=0,ko=0,Mr(_a)?(Ws=!0,To=fe.createStream(34962,_a),qa=To.dtype):(To=fe.getBuffer(_a),To?qa=To.dtype:"constant"in _a?(Ca=2,typeof _a.constant=="number"?(Es=_a.constant,Ts=Ho=Wa=0):(Es=_a.constant.length>0?_a.constant[0]:0,Ts=_a.constant.length>1?_a.constant[1]:0,Ho=_a.constant.length>2?_a.constant[2]:0,Wa=_a.constant.length>3?_a.constant[3]:0)):(Mr(_a.buffer)?To=fe.createStream(34962,_a.buffer):To=fe.getBuffer(_a.buffer),qa="type"in _a?Fi[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,ln=_a.offset|0,Bo=_a.stride|0,ko=_a.divisor|0)),oo=d.location,za=dt[oo],Ca===1?(za.buffer||Ie.enableVertexAttribArray(oo),ea=ts||4,(za.type!==qa||za.size!==ea||za.buffer!==To||za.normalized!==Wo||za.offset!==ln||za.stride!==Bo)&&(Ie.bindBuffer(34962,To.buffer),Ie.vertexAttribPointer(oo,ea,qa,Wo,Bo,ln),za.type=qa,za.size=ea,za.buffer=To,za.normalized=Wo,za.offset=ln,za.stride=Bo),za.divisor!==ko&&(gr.vertexAttribDivisorANGLE(oo,ko),za.divisor=ko)):(za.buffer&&(Ie.disableVertexAttribArray(oo),za.buffer=null),(za.x!==Es||za.y!==Ts||za.z!==Ho||za.w!==Wa)&&(Ie.vertexAttrib4f(oo,Es,Ts,Ho,Wa),za.x=Es,za.y=Ts,za.z=Ho,za.w=Wa)),rs=p.call(this,xe,Ai,Zr),$s=!1,us=1,Ds=0,fl=0,as=0,Ma=0,Qs=null,ho=0,gs=!1,Vo=5126,Do=0,Lo=0,xs=0,Mr(rs)?($s=!0,Qs=fe.createStream(34962,rs),Vo=Qs.dtype):(Qs=fe.getBuffer(rs),Qs?Vo=Qs.dtype:"constant"in rs?(us=2,typeof rs.constant=="number"?(Ds=rs.constant,fl=as=Ma=0):(Ds=rs.constant.length>0?rs.constant[0]:0,fl=rs.constant.length>1?rs.constant[1]:0,as=rs.constant.length>2?rs.constant[2]:0,Ma=rs.constant.length>3?rs.constant[3]:0)):(Mr(rs.buffer)?Qs=fe.createStream(34962,rs.buffer):Qs=fe.getBuffer(rs.buffer),Vo="type"in rs?Fi[rs.type]:Qs.dtype,gs=!!rs.normalized,ho=rs.size|0,Do=rs.offset|0,Lo=rs.stride|0,xs=rs.divisor|0)),ks=x.location,Ea=dt[ks],us===1?(Ea.buffer||Ie.enableVertexAttribArray(ks),Jn=ho||1,(Ea.type!==Vo||Ea.size!==Jn||Ea.buffer!==Qs||Ea.normalized!==gs||Ea.offset!==Do||Ea.stride!==Lo)&&(Ie.bindBuffer(34962,Qs.buffer),Ie.vertexAttribPointer(ks,Jn,Vo,gs,Lo,Do),Ea.type=Vo,Ea.size=Jn,Ea.buffer=Qs,Ea.normalized=gs,Ea.offset=Do,Ea.stride=Lo),Ea.divisor!==xs&&(gr.vertexAttribDivisorANGLE(ks,xs),Ea.divisor=xs)):(Ea.buffer&&(Ie.disableVertexAttribArray(ks),Ea.buffer=null),(Ea.x!==Ds||Ea.y!==fl||Ea.z!==as||Ea.w!==Ma)&&(Ie.vertexAttrib4f(ks,Ds,fl,as,Ma),Ea.x=Ds,Ea.y=fl,Ea.z=as,Ea.w=Ma)),Oo=b.call(this,xe,Ai,Zr),rl=!1,Gs=1,bs=0,zs=0,$o=0,Aa=0,os=null,_l=0,Ss=!1,po=5126,go=0,ss=0,qo=0,Mr(Oo)?(rl=!0,os=fe.createStream(34962,Oo),po=os.dtype):(os=fe.getBuffer(Oo),os?po=os.dtype:"constant"in Oo?(Gs=2,typeof Oo.constant=="number"?(bs=Oo.constant,zs=$o=Aa=0):(bs=Oo.constant.length>0?Oo.constant[0]:0,zs=Oo.constant.length>1?Oo.constant[1]:0,$o=Oo.constant.length>2?Oo.constant[2]:0,Aa=Oo.constant.length>3?Oo.constant[3]:0)):(Mr(Oo.buffer)?os=fe.createStream(34962,Oo.buffer):os=fe.getBuffer(Oo.buffer),po="type"in Oo?Fi[Oo.type]:os.dtype,Ss=!!Oo.normalized,_l=Oo.size|0,go=Oo.offset|0,ss=Oo.stride|0,qo=Oo.divisor|0)),zo=v.location,io=dt[zo],Gs===1?(io.buffer||Ie.enableVertexAttribArray(zo),Io=_l||1,(io.type!==po||io.size!==Io||io.buffer!==os||io.normalized!==Ss||io.offset!==go||io.stride!==ss)&&(Ie.bindBuffer(34962,os.buffer),Ie.vertexAttribPointer(zo,Io,po,Ss,ss,go),io.type=po,io.size=Io,io.buffer=os,io.normalized=Ss,io.offset=go,io.stride=ss),io.divisor!==qo&&(gr.vertexAttribDivisorANGLE(zo,qo),io.divisor=qo)):(io.buffer&&(Ie.disableVertexAttribArray(zo),io.buffer=null),(io.x!==bs||io.y!==zs||io.z!==$o||io.w!==Aa)&&(Ie.vertexAttrib4f(zo,bs,zs,$o,Aa),io.x=bs,io.y=zs,io.z=$o,io.w=Aa)),Da=k.call(this,xe,Ai,Zr),vs=!1,fs=1,cl=0,el=0,Hs=0,Ro=0,tl=null,Fs=0,hl=!1,Fa=5126,Ms=0,jo=0,Rs=0,Mr(Da)?(vs=!0,tl=fe.createStream(34962,Da),Fa=tl.dtype):(tl=fe.getBuffer(Da),tl?Fa=tl.dtype:"constant"in Da?(fs=2,typeof Da.constant=="number"?(cl=Da.constant,el=Hs=Ro=0):(cl=Da.constant.length>0?Da.constant[0]:0,el=Da.constant.length>1?Da.constant[1]:0,Hs=Da.constant.length>2?Da.constant[2]:0,Ro=Da.constant.length>3?Da.constant[3]:0)):(Mr(Da.buffer)?tl=fe.createStream(34962,Da.buffer):tl=fe.getBuffer(Da.buffer),Fa="type"in Da?Fi[Da.type]:tl.dtype,hl=!!Da.normalized,Fs=Da.size|0,Ms=Da.offset|0,jo=Da.stride|0,Rs=Da.divisor|0)),Is=E.location,Bs=dt[Is],fs===1?(Bs.buffer||Ie.enableVertexAttribArray(Is),At=Fs||1,(Bs.type!==Fa||Bs.size!==At||Bs.buffer!==tl||Bs.normalized!==hl||Bs.offset!==Ms||Bs.stride!==jo)&&(Ie.bindBuffer(34962,tl.buffer),Ie.vertexAttribPointer(Is,At,Fa,hl,jo,Ms),Bs.type=Fa,Bs.size=At,Bs.buffer=tl,Bs.normalized=hl,Bs.offset=Ms,Bs.stride=jo),Bs.divisor!==Rs&&(gr.vertexAttribDivisorANGLE(Is,Rs),Bs.divisor=Rs)):(Bs.buffer&&(Ie.disableVertexAttribArray(Is),Bs.buffer=null),(Bs.x!==cl||Bs.y!==el||Bs.z!==Hs||Bs.w!==Ro)&&(Ie.vertexAttrib4f(Is,cl,el,Hs,Ro),Bs.x=cl,Bs.y=el,Bs.z=Hs,Bs.w=Ro)),Gt=T.call(this,xe,Ai,Zr),wr=!1,mr=1,Or=0,gi=0,Ti=0,ki=0,Ji=null,Fn=0,Pi=!1,hi=5126,Li=0,Si=0,Gn=0,Mr(Gt)?(wr=!0,Ji=fe.createStream(34962,Gt),hi=Ji.dtype):(Ji=fe.getBuffer(Gt),Ji?hi=Ji.dtype:"constant"in Gt?(mr=2,typeof Gt.constant=="number"?(Or=Gt.constant,gi=Ti=ki=0):(Or=Gt.constant.length>0?Gt.constant[0]:0,gi=Gt.constant.length>1?Gt.constant[1]:0,Ti=Gt.constant.length>2?Gt.constant[2]:0,ki=Gt.constant.length>3?Gt.constant[3]:0)):(Mr(Gt.buffer)?Ji=fe.createStream(34962,Gt.buffer):Ji=fe.getBuffer(Gt.buffer),hi="type"in Gt?Fi[Gt.type]:Ji.dtype,Pi=!!Gt.normalized,Fn=Gt.size|0,Li=Gt.offset|0,Si=Gt.stride|0,Gn=Gt.divisor|0)),ta=L.location,ya=dt[ta],mr===1?(ya.buffer||Ie.enableVertexAttribArray(ta),ia=Fn||1,(ya.type!==hi||ya.size!==ia||ya.buffer!==Ji||ya.normalized!==Pi||ya.offset!==Li||ya.stride!==Si)&&(Ie.bindBuffer(34962,Ji.buffer),Ie.vertexAttribPointer(ta,ia,hi,Pi,Si,Li),ya.type=hi,ya.size=ia,ya.buffer=Ji,ya.normalized=Pi,ya.offset=Li,ya.stride=Si),ya.divisor!==Gn&&(gr.vertexAttribDivisorANGLE(ta,Gn),ya.divisor=Gn)):(ya.buffer&&(Ie.disableVertexAttribArray(ta),ya.buffer=null),(ya.x!==Or||ya.y!==gi||ya.z!==Ti||ya.w!==ki)&&(Ie.vertexAttrib4f(ta,Or,gi,Ti,ki),ya.x=Or,ya.y=gi,ya.z=Ti,ya.w=ki)),pa=_.call(this,xe,Ai,Zr),va=!1,zn=1,is=0,Cs=0,Ks=0,dl=0,xl=null,Ol=0,bl=!1,eu=5126,Zl=0,Vl=0,ja=0,Mr(pa)?(va=!0,xl=fe.createStream(34962,pa),eu=xl.dtype):(xl=fe.getBuffer(pa),xl?eu=xl.dtype:"constant"in pa?(zn=2,typeof pa.constant=="number"?(is=pa.constant,Cs=Ks=dl=0):(is=pa.constant.length>0?pa.constant[0]:0,Cs=pa.constant.length>1?pa.constant[1]:0,Ks=pa.constant.length>2?pa.constant[2]:0,dl=pa.constant.length>3?pa.constant[3]:0)):(Mr(pa.buffer)?xl=fe.createStream(34962,pa.buffer):xl=fe.getBuffer(pa.buffer),eu="type"in pa?Fi[pa.type]:xl.dtype,bl=!!pa.normalized,Ol=pa.size|0,Zl=pa.offset|0,Vl=pa.stride|0,ja=pa.divisor|0)),ns=C.location,Js=dt[ns],zn===1?(Js.buffer||Ie.enableVertexAttribArray(ns),cs=Ol||1,(Js.type!==eu||Js.size!==cs||Js.buffer!==xl||Js.normalized!==bl||Js.offset!==Zl||Js.stride!==Vl)&&(Ie.bindBuffer(34962,xl.buffer),Ie.vertexAttribPointer(ns,cs,eu,bl,Vl,Zl),Js.type=eu,Js.size=cs,Js.buffer=xl,Js.normalized=bl,Js.offset=Zl,Js.stride=Vl),Js.divisor!==ja&&(gr.vertexAttribDivisorANGLE(ns,ja),Js.divisor=ja)):(Js.buffer&&(Ie.disableVertexAttribArray(ns),Js.buffer=null),(Js.x!==is||Js.y!==Cs||Js.z!==Ks||Js.w!==dl)&&(Ie.vertexAttrib4f(ns,is,Cs,Ks,dl),Js.x=is,Js.y=Cs,Js.z=Ks,Js.w=dl)),sl=M.call(this,xe,Ai,Zr),ll=!1,il=1,zl=0,Ml=0,Rl=0,Al=0,Ll=null,ms=0,Os=!1,Xl=5126,Gl=0,Ul=0,le=0,Mr(sl)?(ll=!0,Ll=fe.createStream(34962,sl),Xl=Ll.dtype):(Ll=fe.getBuffer(sl),Ll?Xl=Ll.dtype:"constant"in sl?(il=2,typeof sl.constant=="number"?(zl=sl.constant,Ml=Rl=Al=0):(zl=sl.constant.length>0?sl.constant[0]:0,Ml=sl.constant.length>1?sl.constant[1]:0,Rl=sl.constant.length>2?sl.constant[2]:0,Al=sl.constant.length>3?sl.constant[3]:0)):(Mr(sl.buffer)?Ll=fe.createStream(34962,sl.buffer):Ll=fe.getBuffer(sl.buffer),Xl="type"in sl?Fi[sl.type]:Ll.dtype,Os=!!sl.normalized,ms=sl.size|0,Gl=sl.offset|0,Ul=sl.stride|0,le=sl.divisor|0)),w=m.location,q=dt[w],il===1?(q.buffer||Ie.enableVertexAttribArray(w),Q=ms||1,(q.type!==Xl||q.size!==Q||q.buffer!==Ll||q.normalized!==Os||q.offset!==Gl||q.stride!==Ul)&&(Ie.bindBuffer(34962,Ll.buffer),Ie.vertexAttribPointer(w,Q,Xl,Os,Ul,Gl),q.type=Xl,q.size=Q,q.buffer=Ll,q.normalized=Os,q.offset=Gl,q.stride=Ul),q.divisor!==le&&(gr.vertexAttribDivisorANGLE(w,le),q.divisor=le)):(q.buffer&&(Ie.disableVertexAttribArray(w),q.buffer=null),(q.x!==zl||q.y!==Ml||q.z!==Rl||q.w!==Al)&&(Ie.vertexAttrib4f(w,zl,Ml,Rl,Al),q.x=zl,q.y=Ml,q.z=Rl,q.w=Al)),ee=Ai.markerTexture,ee&&ee._reglType==="framebuffer"&&(ee=ee.color[0]),ue=ee._texture,Ie.uniform1i(A.location,ue.bind()),Ge=Ai.opacity,(!Zr||et!==Ge)&&(et=Ge,Ie.uniform1f(B.location,Ge)),mt=U.call(this,xe,Ai,Zr),Ft=mt[0],or=mt[1],(!Zr||ir!==Ft||kr!==or)&&(ir=Ft,kr=or,Ie.uniform2f(F.location,Ft,or)),Vr=xe.pixelRatio,(!Zr||he!==Vr)&&(he=Vr,Ie.uniform1f(H.location,Vr)),Se=Ai.scale,qe=Se[0],lt=Se[1],(!Zr||He!==qe||tt!==lt)&&(He=qe,tt=lt,Ie.uniform2f(N.location,qe,lt)),pt=Ai.scaleFract,Ht=pt[0],fr=pt[1],(!Zr||nr!==Ht||Ar!==fr)&&(nr=Ht,Ar=fr,Ie.uniform2f(W.location,Ht,fr)),Rr=Ai.translate,ri=Rr[0],Mi=Rr[1],(!Zr||si!==ri||hn!==Mi)&&(si=ri,hn=Mi,Ie.uniform2f(re.location,ri,Mi)),Zn=Ai.translateFract,Yn=Zn[0],Fo=Zn[1],(!Zr||Ua!==Yn||vl!==Fo)&&(Ua=Yn,vl=Fo,Ie.uniform2f(ae.location,Yn,Fo)),Us=Ai.elements,ml=null,au=Mr(Us),au?ml=ge.createStream(Us):ml=ge.getElements(Us),ml&&Ie.bindBuffer(34963,ml.buffer.buffer),Sl=Ai.offset,Yl=Ai.count,Yl&&(Ba>0?ml?gr.drawElementsInstancedANGLE(0,Yl,ml.type,Sl<<(ml.type-5121>>1),Ba):gr.drawArraysInstancedANGLE(0,Sl,Yl,Ba):Ba<0&&(ml?Ie.drawElements(0,Yl,ml.type,Sl<<(ml.type-5121>>1)):Ie.drawArrays(0,Sl,Yl)),xe.viewportWidth=vn,xe.viewportHeight=da,No&&fe.destroyStream(Oa),Ka&&fe.destroyStream(sa),Ws&&fe.destroyStream(To),$s&&fe.destroyStream(Qs),rl&&fe.destroyStream(os),vs&&fe.destroyStream(tl),wr&&fe.destroyStream(Ji),va&&fe.destroyStream(xl),ll&&fe.destroyStream(Ll),ue.unbind(),au&&ge.destroyStream(ml))}j.unbind(),De.dirty=!0,It.setVAO(null),tr&&(r.cpuTime+=performance.now()-pr)}}}});var P8=Te((Z_r,ONe)=>{ONe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt,Nt,it,Ke,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br){"use strict";var Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi;return Ut=t.gl,Ie=t.context,xe=t.strings,Oe=t.next,Re=t.current,De=t.draw,ct=t.elements,ge=t.buffer,fe=t.shader,pe=t.attributes,dt=t.vao,It=t.uniforms,Pt=t.framebuffer,rr=t.extensions,Hr=t.timer,Dr=t.isBufferArgs,Mr=Oe.blend_color,Fr=Re.blend_color,di=Oe.blend_equation,Di=Re.blend_equation,Ii=Oe.blend_func,Ci=Re.blend_func,nn=Oe.depth_range,ii=Re.depth_range,wi=Oe.colorMask,Gi=Re.colorMask,Bt=Oe.polygonOffset_offset,yt=Re.polygonOffset_offset,Vt=Oe.sample_coverage,Wt=Re.sample_coverage,_r=Oe.stencil_func,Lr=Re.stencil_func,Ur=Oe.stencil_opFront,Ir=Re.stencil_opFront,Gr=Oe.stencil_opBack,jr=Re.stencil_opBack,yi=Oe.scissor_box,Ei=Re.scissor_box,Vi=Oe.viewport,ti=Re.viewport,en={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Yr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},oi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Bi={add:32774,subtract:32778,"reverse subtract":32779},an={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},rn={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Fi={cw:2304,ccw:2305},{draw:function(Ri){var xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl;if(xn=rr.angle_instanced_arrays,xi=Pt.next,xi!==Pt.cur&&(xi?Ut.bindFramebuffer(36160,xi.framebuffer):Ut.bindFramebuffer(36160,null),Pt.cur=xi),Re.dirty){var ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht;ll=Oe.dither,ll!==Re.dither&&(ll?Ut.enable(3024):Ut.disable(3024),Re.dither=ll),il=di[0],zl=di[1],(il!==Di[0]||zl!==Di[1])&&(Ut.blendEquationSeparate(il,zl),Di[0]=il,Di[1]=zl),Ml=Oe.depth_func,Ml!==Re.depth_func&&(Ut.depthFunc(Ml),Re.depth_func=Ml),Rl=nn[0],Al=nn[1],(Rl!==ii[0]||Al!==ii[1])&&(Ut.depthRange(Rl,Al),ii[0]=Rl,ii[1]=Al),Ll=Oe.depth_mask,Ll!==Re.depth_mask&&(Ut.depthMask(Ll),Re.depth_mask=Ll),ms=wi[0],Os=wi[1],Xl=wi[2],Gl=wi[3],(ms!==Gi[0]||Os!==Gi[1]||Xl!==Gi[2]||Gl!==Gi[3])&&(Ut.colorMask(ms,Os,Xl,Gl),Gi[0]=ms,Gi[1]=Os,Gi[2]=Xl,Gi[3]=Gl),Ul=Oe.cull_enable,Ul!==Re.cull_enable&&(Ul?Ut.enable(2884):Ut.disable(2884),Re.cull_enable=Ul),le=Oe.cull_face,le!==Re.cull_face&&(Ut.cullFace(le),Re.cull_face=le),w=Oe.frontFace,w!==Re.frontFace&&(Ut.frontFace(w),Re.frontFace=w),q=Oe.lineWidth,q!==Re.lineWidth&&(Ut.lineWidth(q),Re.lineWidth=q),Q=Oe.polygonOffset_enable,Q!==Re.polygonOffset_enable&&(Q?Ut.enable(32823):Ut.disable(32823),Re.polygonOffset_enable=Q),ee=Bt[0],ue=Bt[1],(ee!==yt[0]||ue!==yt[1])&&(Ut.polygonOffset(ee,ue),yt[0]=ee,yt[1]=ue),Ge=Oe.sample_alpha,Ge!==Re.sample_alpha&&(Ge?Ut.enable(32926):Ut.disable(32926),Re.sample_alpha=Ge),et=Oe.sample_enable,et!==Re.sample_enable&&(et?Ut.enable(32928):Ut.disable(32928),Re.sample_enable=et),mt=Vt[0],Ft=Vt[1],(mt!==Wt[0]||Ft!==Wt[1])&&(Ut.sampleCoverage(mt,Ft),Wt[0]=mt,Wt[1]=Ft),ir=Oe.stencil_mask,ir!==Re.stencil_mask&&(Ut.stencilMask(ir),Re.stencil_mask=ir),or=_r[0],kr=_r[1],Vr=_r[2],(or!==Lr[0]||kr!==Lr[1]||Vr!==Lr[2])&&(Ut.stencilFunc(or,kr,Vr),Lr[0]=or,Lr[1]=kr,Lr[2]=Vr),he=Ur[0],Se=Ur[1],qe=Ur[2],He=Ur[3],(he!==Ir[0]||Se!==Ir[1]||qe!==Ir[2]||He!==Ir[3])&&(Ut.stencilOpSeparate(he,Se,qe,He),Ir[0]=he,Ir[1]=Se,Ir[2]=qe,Ir[3]=He),lt=Gr[0],tt=Gr[1],pt=Gr[2],Ht=Gr[3],(lt!==jr[0]||tt!==jr[1]||pt!==jr[2]||Ht!==jr[3])&&(Ut.stencilOpSeparate(lt,tt,pt,Ht),jr[0]=lt,jr[1]=tt,jr[2]=pt,jr[3]=Ht)}Xr=Ri.viewport,ft=Xr.x|0,tr=Xr.y|0,pr="width"in Xr?Xr.width|0:Ie.framebufferWidth-ft,gr="height"in Xr?Xr.height|0:Ie.framebufferHeight-tr,Zr=Ie.viewportWidth,Ie.viewportWidth=pr,Ai=Ie.viewportHeight,Ie.viewportHeight=gr,Ut.viewport(ft,tr,pr,gr),ti[0]=ft,ti[1]=tr,ti[2]=pr,ti[3]=gr,Ut.blendColor(0,0,0,1),Fr[0]=0,Fr[1]=0,Fr[2]=0,Fr[3]=1,n?Ut.enable(3042):Ut.disable(3042),Re.blend_enable=n,Ut.blendFuncSeparate(770,771,773,1),Ci[0]=770,Ci[1]=771,Ci[2]=773,Ci[3]=1,i?Ut.enable(2929):Ut.disable(2929),Re.depth_enable=i,Qi=Ri.viewport,ni=Qi.x|0,Zi=Qi.y|0,aa="width"in Qi?Qi.width|0:Ie.framebufferWidth-ni,Mn="height"in Qi?Qi.height|0:Ie.framebufferHeight-Zi,Ut.scissor(ni,Zi,aa,Mn),Ei[0]=ni,Ei[1]=Zi,Ei[2]=aa,Ei[3]=Mn,a?Ut.enable(3089):Ut.disable(3089),Re.scissor_enable=a,o?Ut.enable(2960):Ut.disable(2960),Re.stencil_enable=o,Un=Re.profile,Un&&(Ga=performance.now(),r.count++),Ut.useProgram(s.program),ma=rr.angle_instanced_arrays,dt.setVAO(null),oa=u.call(this,Ie,Ri,0),ka=!1,so=1,Kr=0,Ia=0,Yo=0,fa=0,kn=null,Ta=0,ys=!1,uo=5126,ls=0,$a=0,fo=0,Dr(oa)?(ka=!0,kn=ge.createStream(34962,oa),uo=kn.dtype):(kn=ge.getBuffer(oa),kn?uo=kn.dtype:"constant"in oa?(so=2,typeof oa.constant=="number"?(Kr=oa.constant,Ia=Yo=fa=0):(Kr=oa.constant.length>0?oa.constant[0]:0,Ia=oa.constant.length>1?oa.constant[1]:0,Yo=oa.constant.length>2?oa.constant[2]:0,fa=oa.constant.length>3?oa.constant[3]:0)):(Dr(oa.buffer)?kn=ge.createStream(34962,oa.buffer):kn=ge.getBuffer(oa.buffer),uo="type"in oa?rn[oa.type]:kn.dtype,ys=!!oa.normalized,Ta=oa.size|0,ls=oa.offset|0,$a=oa.stride|0,fo=oa.divisor|0)),mn=l.location,ra=pe[mn],so===1?(ra.buffer||Ut.enableVertexAttribArray(mn),wa=Ta||4,(ra.type!==uo||ra.size!==wa||ra.buffer!==kn||ra.normalized!==ys||ra.offset!==ls||ra.stride!==$a)&&(Ut.bindBuffer(34962,kn.buffer),Ut.vertexAttribPointer(mn,wa,uo,ys,$a,ls),ra.type=uo,ra.size=wa,ra.buffer=kn,ra.normalized=ys,ra.offset=ls,ra.stride=$a),ra.divisor!==fo&&(ma.vertexAttribDivisorANGLE(mn,fo),ra.divisor=fo)):(ra.buffer&&(Ut.disableVertexAttribArray(mn),ra.buffer=null),(ra.x!==Kr||ra.y!==Ia||ra.z!==Yo||ra.w!==fa)&&(Ut.vertexAttrib4f(mn,Kr,Ia,Yo,fa),ra.x=Kr,ra.y=Ia,ra.z=Yo,ra.w=fa)),ws=f.call(this,Ie,Ri,0),Co=!1,Po=1,ji=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Wi=0,Sa=0,Dr(ws)?(Co=!0,Sn=ge.createStream(34962,ws),Ko=Sn.dtype):(Sn=ge.getBuffer(ws),Sn?Ko=Sn.dtype:"constant"in ws?(Po=2,typeof ws.constant=="number"?(ji=ws.constant,gn=Ps=Ha=0):(ji=ws.constant.length>0?ws.constant[0]:0,gn=ws.constant.length>1?ws.constant[1]:0,Ps=ws.constant.length>2?ws.constant[2]:0,Ha=ws.constant.length>3?ws.constant[3]:0)):(Dr(ws.buffer)?Sn=ge.createStream(34962,ws.buffer):Sn=ge.getBuffer(ws.buffer),Ko="type"in ws?rn[ws.type]:Sn.dtype,Ba=!!ws.normalized,ao=ws.size|0,Qo=ws.offset|0,Wi=ws.stride|0,Sa=ws.divisor|0)),Qa=c.location,vn=pe[Qa],Po===1?(vn.buffer||Ut.enableVertexAttribArray(Qa),da=ao||1,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Wi)&&(Ut.bindBuffer(34962,Sn.buffer),Ut.vertexAttribPointer(Qa,da,Ko,Ba,Wi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Wi),vn.divisor!==Sa&&(ma.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(Ut.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==ji||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(Ut.vertexAttrib4f(Qa,ji,gn,Ps,Ha),vn.x=ji,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=h.call(this,Ie,Ri,0),vo=!1,As=1,ps=0,co=0,mo=0,No=0,jn=null,Go=0,Ys=!1,qs=5126,Ns=0,Oa=0,ha=0,Dr(la)?(vo=!0,jn=ge.createStream(34962,la),qs=jn.dtype):(jn=ge.getBuffer(la),jn?qs=jn.dtype:"constant"in la?(As=2,typeof la.constant=="number"?(ps=la.constant,co=mo=No=0):(ps=la.constant.length>0?la.constant[0]:0,co=la.constant.length>1?la.constant[1]:0,mo=la.constant.length>2?la.constant[2]:0,No=la.constant.length>3?la.constant[3]:0)):(Dr(la.buffer)?jn=ge.createStream(34962,la.buffer):jn=ge.getBuffer(la.buffer),qs="type"in la?rn[la.type]:jn.dtype,Ys=!!la.normalized,Go=la.size|0,Ns=la.offset|0,Oa=la.stride|0,ha=la.divisor|0)),Vs=d.location,Ya=pe[Vs],As===1?(Ya.buffer||Ut.enableVertexAttribArray(Vs),_n=Go||4,(Ya.type!==qs||Ya.size!==_n||Ya.buffer!==jn||Ya.normalized!==Ys||Ya.offset!==Ns||Ya.stride!==Oa)&&(Ut.bindBuffer(34962,jn.buffer),Ut.vertexAttribPointer(Vs,_n,qs,Ys,Oa,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Oa),Ya.divisor!==ha&&(ma.vertexAttribDivisorANGLE(Vs,ha),Ya.divisor=ha)):(Ya.buffer&&(Ut.disableVertexAttribArray(Vs),Ya.buffer=null),(Ya.x!==ps||Ya.y!==co||Ya.z!==mo||Ya.w!==No)&&(Ut.vertexAttrib4f(Vs,ps,co,mo,No),Ya.x=ps,Ya.y=co,Ya.z=mo,Ya.w=No)),Vn=p.call(this,Ie,Ri,0),wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,Dr(Vn)?(wo=!0,qn=ge.createStream(34962,Vn),lo=qn.dtype):(qn=ge.getBuffer(Vn),qn?lo=qn.dtype:"constant"in Vn?(Ra=2,typeof Vn.constant=="number"?(Xn=Vn.constant,un=$n=Ka=0):(Xn=Vn.constant.length>0?Vn.constant[0]:0,un=Vn.constant.length>1?Vn.constant[1]:0,$n=Vn.constant.length>2?Vn.constant[2]:0,Ka=Vn.constant.length>3?Vn.constant[3]:0)):(Dr(Vn.buffer)?qn=ge.createStream(34962,Vn.buffer):qn=ge.getBuffer(Vn.buffer),lo="type"in Vn?rn[Vn.type]:qn.dtype,Ja=!!Vn.normalized,Eo=Vn.size|0,eo=Vn.offset|0,sa=Vn.stride|0,es=Vn.divisor|0)),Na=x.location,tn=pe[Na],Ra===1?(tn.buffer||Ut.enableVertexAttribArray(Na),Pa=Eo||1,(tn.type!==lo||tn.size!==Pa||tn.buffer!==qn||tn.normalized!==Ja||tn.offset!==eo||tn.stride!==sa)&&(Ut.bindBuffer(34962,qn.buffer),Ut.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),tn.type=lo,tn.size=Pa,tn.buffer=qn,tn.normalized=Ja,tn.offset=eo,tn.stride=sa),tn.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),tn.divisor=es)):(tn.buffer&&(Ut.disableVertexAttribArray(Na),tn.buffer=null),(tn.x!==Xn||tn.y!==un||tn.z!==$n||tn.w!==Ka)&&(Ut.vertexAttrib4f(Na,Xn,un,$n,Ka),tn.x=Xn,tn.y=un,tn.z=$n,tn.w=Ka)),to=b.call(this,Ie,Ri,0),yo=!1,Jo=1,Ao=0,Dn=0,_a=0,Ws=0,Ca=null,Es=0,Ts=!1,Ho=5126,Wa=0,To=0,ts=0,Dr(to)?(yo=!0,Ca=ge.createStream(34962,to),Ho=Ca.dtype):(Ca=ge.getBuffer(to),Ca?Ho=Ca.dtype:"constant"in to?(Jo=2,typeof to.constant=="number"?(Ao=to.constant,Dn=_a=Ws=0):(Ao=to.constant.length>0?to.constant[0]:0,Dn=to.constant.length>1?to.constant[1]:0,_a=to.constant.length>2?to.constant[2]:0,Ws=to.constant.length>3?to.constant[3]:0)):(Dr(to.buffer)?Ca=ge.createStream(34962,to.buffer):Ca=ge.getBuffer(to.buffer),Ho="type"in to?rn[to.type]:Ca.dtype,Ts=!!to.normalized,Es=to.size|0,Wa=to.offset|0,To=to.stride|0,ts=to.divisor|0)),Wo=v.location,qa=pe[Wo],Jo===1?(qa.buffer||Ut.enableVertexAttribArray(Wo),ln=Es||1,(qa.type!==Ho||qa.size!==ln||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&(Ut.bindBuffer(34962,Ca.buffer),Ut.vertexAttribPointer(Wo,ln,Ho,Ts,To,Wa),qa.type=Ho,qa.size=ln,qa.buffer=Ca,qa.normalized=Ts,qa.offset=Wa,qa.stride=To),qa.divisor!==ts&&(ma.vertexAttribDivisorANGLE(Wo,ts),qa.divisor=ts)):(qa.buffer&&(Ut.disableVertexAttribArray(Wo),qa.buffer=null),(qa.x!==Ao||qa.y!==Dn||qa.z!==_a||qa.w!==Ws)&&(Ut.vertexAttrib4f(Wo,Ao,Dn,_a,Ws),qa.x=Ao,qa.y=Dn,qa.z=_a,qa.w=Ws)),Bo=k.call(this,Ie,Ri,0),ko=!1,oo=1,za=0,ea=0,rs=0,$s=0,us=null,Ds=0,fl=!1,as=5126,Ma=0,Qs=0,ho=0,Dr(Bo)?(ko=!0,us=ge.createStream(34962,Bo),as=us.dtype):(us=ge.getBuffer(Bo),us?as=us.dtype:"constant"in Bo?(oo=2,typeof Bo.constant=="number"?(za=Bo.constant,ea=rs=$s=0):(za=Bo.constant.length>0?Bo.constant[0]:0,ea=Bo.constant.length>1?Bo.constant[1]:0,rs=Bo.constant.length>2?Bo.constant[2]:0,$s=Bo.constant.length>3?Bo.constant[3]:0)):(Dr(Bo.buffer)?us=ge.createStream(34962,Bo.buffer):us=ge.getBuffer(Bo.buffer),as="type"in Bo?rn[Bo.type]:us.dtype,fl=!!Bo.normalized,Ds=Bo.size|0,Ma=Bo.offset|0,Qs=Bo.stride|0,ho=Bo.divisor|0)),gs=E.location,Vo=pe[gs],oo===1?(Vo.buffer||Ut.enableVertexAttribArray(gs),Do=Ds||1,(Vo.type!==as||Vo.size!==Do||Vo.buffer!==us||Vo.normalized!==fl||Vo.offset!==Ma||Vo.stride!==Qs)&&(Ut.bindBuffer(34962,us.buffer),Ut.vertexAttribPointer(gs,Do,as,fl,Qs,Ma),Vo.type=as,Vo.size=Do,Vo.buffer=us,Vo.normalized=fl,Vo.offset=Ma,Vo.stride=Qs),Vo.divisor!==ho&&(ma.vertexAttribDivisorANGLE(gs,ho),Vo.divisor=ho)):(Vo.buffer&&(Ut.disableVertexAttribArray(gs),Vo.buffer=null),(Vo.x!==za||Vo.y!==ea||Vo.z!==rs||Vo.w!==$s)&&(Ut.vertexAttrib4f(gs,za,ea,rs,$s),Vo.x=za,Vo.y=ea,Vo.z=rs,Vo.w=$s)),Lo=T.call(this,Ie,Ri,0),xs=!1,ks=1,Ea=0,Jn=0,Oo=0,rl=0,Gs=null,bs=0,zs=!1,$o=5126,Aa=0,os=0,_l=0,Dr(Lo)?(xs=!0,Gs=ge.createStream(34962,Lo),$o=Gs.dtype):(Gs=ge.getBuffer(Lo),Gs?$o=Gs.dtype:"constant"in Lo?(ks=2,typeof Lo.constant=="number"?(Ea=Lo.constant,Jn=Oo=rl=0):(Ea=Lo.constant.length>0?Lo.constant[0]:0,Jn=Lo.constant.length>1?Lo.constant[1]:0,Oo=Lo.constant.length>2?Lo.constant[2]:0,rl=Lo.constant.length>3?Lo.constant[3]:0)):(Dr(Lo.buffer)?Gs=ge.createStream(34962,Lo.buffer):Gs=ge.getBuffer(Lo.buffer),$o="type"in Lo?rn[Lo.type]:Gs.dtype,zs=!!Lo.normalized,bs=Lo.size|0,Aa=Lo.offset|0,os=Lo.stride|0,_l=Lo.divisor|0)),Ss=L.location,po=pe[Ss],ks===1?(po.buffer||Ut.enableVertexAttribArray(Ss),go=bs||1,(po.type!==$o||po.size!==go||po.buffer!==Gs||po.normalized!==zs||po.offset!==Aa||po.stride!==os)&&(Ut.bindBuffer(34962,Gs.buffer),Ut.vertexAttribPointer(Ss,go,$o,zs,os,Aa),po.type=$o,po.size=go,po.buffer=Gs,po.normalized=zs,po.offset=Aa,po.stride=os),po.divisor!==_l&&(ma.vertexAttribDivisorANGLE(Ss,_l),po.divisor=_l)):(po.buffer&&(Ut.disableVertexAttribArray(Ss),po.buffer=null),(po.x!==Ea||po.y!==Jn||po.z!==Oo||po.w!==rl)&&(Ut.vertexAttrib4f(Ss,Ea,Jn,Oo,rl),po.x=Ea,po.y=Jn,po.z=Oo,po.w=rl)),ss=_.call(this,Ie,Ri,0),qo=!1,zo=1,io=0,Io=0,Da=0,vs=0,fs=null,cl=0,el=!1,Hs=5126,Ro=0,tl=0,Fs=0,Dr(ss)?(qo=!0,fs=ge.createStream(34962,ss),Hs=fs.dtype):(fs=ge.getBuffer(ss),fs?Hs=fs.dtype:"constant"in ss?(zo=2,typeof ss.constant=="number"?(io=ss.constant,Io=Da=vs=0):(io=ss.constant.length>0?ss.constant[0]:0,Io=ss.constant.length>1?ss.constant[1]:0,Da=ss.constant.length>2?ss.constant[2]:0,vs=ss.constant.length>3?ss.constant[3]:0)):(Dr(ss.buffer)?fs=ge.createStream(34962,ss.buffer):fs=ge.getBuffer(ss.buffer),Hs="type"in ss?rn[ss.type]:fs.dtype,el=!!ss.normalized,cl=ss.size|0,Ro=ss.offset|0,tl=ss.stride|0,Fs=ss.divisor|0)),hl=C.location,Fa=pe[hl],zo===1?(Fa.buffer||Ut.enableVertexAttribArray(hl),Ms=cl||1,(Fa.type!==Hs||Fa.size!==Ms||Fa.buffer!==fs||Fa.normalized!==el||Fa.offset!==Ro||Fa.stride!==tl)&&(Ut.bindBuffer(34962,fs.buffer),Ut.vertexAttribPointer(hl,Ms,Hs,el,tl,Ro),Fa.type=Hs,Fa.size=Ms,Fa.buffer=fs,Fa.normalized=el,Fa.offset=Ro,Fa.stride=tl),Fa.divisor!==Fs&&(ma.vertexAttribDivisorANGLE(hl,Fs),Fa.divisor=Fs)):(Fa.buffer&&(Ut.disableVertexAttribArray(hl),Fa.buffer=null),(Fa.x!==io||Fa.y!==Io||Fa.z!==Da||Fa.w!==vs)&&(Ut.vertexAttrib4f(hl,io,Io,Da,vs),Fa.x=io,Fa.y=Io,Fa.z=Da,Fa.w=vs)),jo=M.call(this,Ie,Ri,0),Rs=!1,Is=1,Bs=0,At=0,Gt=0,wr=0,mr=null,Or=0,gi=!1,Ti=5126,ki=0,Ji=0,Fn=0,Dr(jo)?(Rs=!0,mr=ge.createStream(34962,jo),Ti=mr.dtype):(mr=ge.getBuffer(jo),mr?Ti=mr.dtype:"constant"in jo?(Is=2,typeof jo.constant=="number"?(Bs=jo.constant,At=Gt=wr=0):(Bs=jo.constant.length>0?jo.constant[0]:0,At=jo.constant.length>1?jo.constant[1]:0,Gt=jo.constant.length>2?jo.constant[2]:0,wr=jo.constant.length>3?jo.constant[3]:0)):(Dr(jo.buffer)?mr=ge.createStream(34962,jo.buffer):mr=ge.getBuffer(jo.buffer),Ti="type"in jo?rn[jo.type]:mr.dtype,gi=!!jo.normalized,Or=jo.size|0,ki=jo.offset|0,Ji=jo.stride|0,Fn=jo.divisor|0)),Pi=m.location,hi=pe[Pi],Is===1?(hi.buffer||Ut.enableVertexAttribArray(Pi),Li=Or||1,(hi.type!==Ti||hi.size!==Li||hi.buffer!==mr||hi.normalized!==gi||hi.offset!==ki||hi.stride!==Ji)&&(Ut.bindBuffer(34962,mr.buffer),Ut.vertexAttribPointer(Pi,Li,Ti,gi,Ji,ki),hi.type=Ti,hi.size=Li,hi.buffer=mr,hi.normalized=gi,hi.offset=ki,hi.stride=Ji),hi.divisor!==Fn&&(ma.vertexAttribDivisorANGLE(Pi,Fn),hi.divisor=Fn)):(hi.buffer&&(Ut.disableVertexAttribArray(Pi),hi.buffer=null),(hi.x!==Bs||hi.y!==At||hi.z!==Gt||hi.w!==wr)&&(Ut.vertexAttrib4f(Pi,Bs,At,Gt,wr),hi.x=Bs,hi.y=At,hi.z=Gt,hi.w=wr)),Ut.uniform1i(P.location,!1),Si=Ri.opacity,Ut.uniform1f(A.location,Si),Gn=F.call(this,Ie,Ri,0),ta=Gn[0],ya=Gn[1],Ut.uniform2f(B.location,ta,ya),Ut.uniform1i(U.location,G.bind()),ia=Ie.pixelRatio,Ut.uniform1f(j.location,ia),pa=Ri.scale,va=pa[0],zn=pa[1],Ut.uniform2f(H.location,va,zn),is=Ri.scaleFract,Cs=is[0],Ks=is[1],Ut.uniform2f(N.location,Cs,Ks),dl=Ri.translate,xl=dl[0],Ol=dl[1],Ut.uniform2f(W.location,xl,Ol),bl=Ri.translateFract,eu=bl[0],Zl=bl[1],Ut.uniform2f(re.location,eu,Zl),Vl=Ri.elements,ja=null,ns=Dr(Vl),ns?ja=ct.createStream(Vl):ja=ct.getElements(Vl),ja&&Ut.bindBuffer(34963,ja.buffer.buffer),Js=Ri.offset,cs=Ri.count,cs&&(sl=De.instances,sl>0?ja?ma.drawElementsInstancedANGLE(0,cs,ja.type,Js<<(ja.type-5121>>1),sl):ma.drawArraysInstancedANGLE(0,Js,cs,sl):sl<0&&(ja?Ut.drawElements(0,cs,ja.type,Js<<(ja.type-5121>>1)):Ut.drawArrays(0,Js,cs)),Re.dirty=!0,dt.setVAO(null),Ie.viewportWidth=Zr,Ie.viewportHeight=Ai,Un&&(r.cpuTime+=performance.now()-Ga),ka&&ge.destroyStream(kn),Co&&ge.destroyStream(Sn),vo&&ge.destroyStream(jn),wo&&ge.destroyStream(qn),yo&&ge.destroyStream(Ca),ko&&ge.destroyStream(us),xs&&ge.destroyStream(Gs),qo&&ge.destroyStream(fs),Rs&&ge.destroyStream(mr),G.unbind(),ns&&ct.destroyStream(ja))},scope:function(Ri,xn,xi){var Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,iu,tu,Wu,Qu,Ju,ju,Xu,lf,xf,ef,tf,Z,se,ze,Xe,Qe,ot,jt,_t,cr,Cr,zr,ui,$r,Oi,fn,vi,zi,Xi,pn,sn,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Zu,Gu,rf,ds,Wl,Au,Tu,uf,df,Ef;Xr=Ri.viewport,ft=Xr.x|0,tr=Xr.y|0,pr="width"in Xr?Xr.width|0:Ie.framebufferWidth-ft,gr="height"in Xr?Xr.height|0:Ie.framebufferHeight-tr,Zr=Ie.viewportWidth,Ie.viewportWidth=pr,Ai=Ie.viewportHeight,Ie.viewportHeight=gr,Qi=Vi[0],Vi[0]=ft,ni=Vi[1],Vi[1]=tr,Zi=Vi[2],Vi[2]=pr,aa=Vi[3],Vi[3]=gr,Mn=Mr[0],Mr[0]=ae,Un=Mr[1],Mr[1]=be,Ga=Mr[2],Mr[2]=Pe,ma=Mr[3],Mr[3]=Ce,oa=Oe.blend_enable,Oe.blend_enable=de,ka=Ii[0],Ii[0]=te,so=Ii[1],Ii[1]=ke,Kr=Ii[2],Ii[2]=Ee,Ia=Ii[3],Ii[3]=Me,Yo=Oe.depth_enable,Oe.depth_enable=Ne,fa=Ri.viewport,kn=fa.x|0,Ta=fa.y|0,ys="width"in fa?fa.width|0:Ie.framebufferWidth-kn,uo="height"in fa?fa.height|0:Ie.framebufferHeight-Ta,ls=yi[0],yi[0]=kn,$a=yi[1],yi[1]=Ta,fo=yi[2],yi[2]=ys,mn=yi[3],yi[3]=uo,ra=Oe.scissor_enable,Oe.scissor_enable=Fe,wa=Oe.stencil_enable,Oe.stencil_enable=ye,ws=Re.profile,ws&&(Co=performance.now(),r.count++),Po=Ri.elements,ji=null,gn=Dr(Po),gn?ji=ct.createStream(Po):ji=ct.getElements(Po),Ps=De.elements,De.elements=ji,Ha=Ri.offset,Sn=De.offset,De.offset=Ha,ao=Ri.count,Ba=De.count,De.count=ao,Ko=De.primitive,De.primitive=Ve,Qo=It[ce],It[ce]=!1,Wi=It[nt],It[nt]=Ye,Sa=Ri.opacity,Qa=It[gt],It[gt]=Sa,vn=F.call(this,Ie,Ri,xi),da=It[Nt],It[Nt]=vn,la=Ie.pixelRatio,vo=It[it],It[it]=la,As=Ri.scale,ps=It[Ke],It[Ke]=As,co=Ri.scaleFract,mo=It[kt],It[kt]=co,No=Ri.translate,jn=It[Tt],It[Tt]=No,Go=Ri.translateFract,Ys=It[St],It[St]=Go,qs=Ri.markerTexture,Ns=It[Dt],It[Dt]=qs,Oa=k.call(this,Ie,Ri,xi),ha=!1,Vs=1,Ya=0,_n=0,Vn=0,wo=0,Ra=null,Xn=0,un=!1,$n=5126,Ka=0,qn=0,Eo=0,Dr(Oa)?(ha=!0,Ra=ge.createStream(34962,Oa),$n=Ra.dtype):(Ra=ge.getBuffer(Oa),Ra?$n=Ra.dtype:"constant"in Oa?(Vs=2,typeof Oa.constant=="number"?(Ya=Oa.constant,_n=Vn=wo=0):(Ya=Oa.constant.length>0?Oa.constant[0]:0,_n=Oa.constant.length>1?Oa.constant[1]:0,Vn=Oa.constant.length>2?Oa.constant[2]:0,wo=Oa.constant.length>3?Oa.constant[3]:0)):(Dr(Oa.buffer)?Ra=ge.createStream(34962,Oa.buffer):Ra=ge.getBuffer(Oa.buffer),$n="type"in Oa?rn[Oa.type]:Ra.dtype,un=!!Oa.normalized,Xn=Oa.size|0,Ka=Oa.offset|0,qn=Oa.stride|0,Eo=Oa.divisor|0)),Ja=Zt.state,Zt.state=Vs,lo=Zt.x,Zt.x=Ya,eo=Zt.y,Zt.y=_n,sa=Zt.z,Zt.z=Vn,es=Zt.w,Zt.w=wo,Na=Zt.buffer,Zt.buffer=Ra,tn=Zt.size,Zt.size=Xn,Pa=Zt.normalized,Zt.normalized=un,to=Zt.type,Zt.type=$n,yo=Zt.offset,Zt.offset=Ka,Jo=Zt.stride,Zt.stride=qn,Ao=Zt.divisor,Zt.divisor=Eo,Dn=_.call(this,Ie,Ri,xi),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,ln=0,Bo=0,Dr(Dn)?(_a=!0,Wa=ge.createStream(34962,Dn),Wo=Wa.dtype):(Wa=ge.getBuffer(Dn),Wa?Wo=Wa.dtype:"constant"in Dn?(Ws=2,typeof Dn.constant=="number"?(Ca=Dn.constant,Es=Ts=Ho=0):(Ca=Dn.constant.length>0?Dn.constant[0]:0,Es=Dn.constant.length>1?Dn.constant[1]:0,Ts=Dn.constant.length>2?Dn.constant[2]:0,Ho=Dn.constant.length>3?Dn.constant[3]:0)):(Dr(Dn.buffer)?Wa=ge.createStream(34962,Dn.buffer):Wa=ge.getBuffer(Dn.buffer),Wo="type"in Dn?rn[Dn.type]:Wa.dtype,ts=!!Dn.normalized,To=Dn.size|0,qa=Dn.offset|0,ln=Dn.stride|0,Bo=Dn.divisor|0)),ko=Et.state,Et.state=Ws,oo=Et.x,Et.x=Ca,za=Et.y,Et.y=Es,ea=Et.z,Et.z=Ts,rs=Et.w,Et.w=Ho,$s=Et.buffer,Et.buffer=Wa,us=Et.size,Et.size=To,Ds=Et.normalized,Et.normalized=ts,fl=Et.type,Et.type=Wo,as=Et.offset,Et.offset=qa,Ma=Et.stride,Et.stride=ln,Qs=Et.divisor,Et.divisor=Bo,ho=T.call(this,Ie,Ri,xi),gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Dr(ho)?(gs=!0,Ea=ge.createStream(34962,ho),rl=Ea.dtype):(Ea=ge.getBuffer(ho),Ea?rl=Ea.dtype:"constant"in ho?(Vo=2,typeof ho.constant=="number"?(Do=ho.constant,Lo=xs=ks=0):(Do=ho.constant.length>0?ho.constant[0]:0,Lo=ho.constant.length>1?ho.constant[1]:0,xs=ho.constant.length>2?ho.constant[2]:0,ks=ho.constant.length>3?ho.constant[3]:0)):(Dr(ho.buffer)?Ea=ge.createStream(34962,ho.buffer):Ea=ge.getBuffer(ho.buffer),rl="type"in ho?rn[ho.type]:Ea.dtype,Oo=!!ho.normalized,Jn=ho.size|0,Gs=ho.offset|0,bs=ho.stride|0,zs=ho.divisor|0)),$o=Ae.state,Ae.state=Vo,Aa=Ae.x,Ae.x=Do,os=Ae.y,Ae.y=Lo,_l=Ae.z,Ae.z=xs,Ss=Ae.w,Ae.w=ks,po=Ae.buffer,Ae.buffer=Ea,go=Ae.size,Ae.size=Jn,ss=Ae.normalized,Ae.normalized=Oo,qo=Ae.type,Ae.type=rl,zo=Ae.offset,Ae.offset=Gs,io=Ae.stride,Ae.stride=bs,Io=Ae.divisor,Ae.divisor=zs,Da=M.call(this,Ie,Ri,xi),vs=!1,fs=1,cl=0,el=0,Hs=0,Ro=0,tl=null,Fs=0,hl=!1,Fa=5126,Ms=0,jo=0,Rs=0,Dr(Da)?(vs=!0,tl=ge.createStream(34962,Da),Fa=tl.dtype):(tl=ge.getBuffer(Da),tl?Fa=tl.dtype:"constant"in Da?(fs=2,typeof Da.constant=="number"?(cl=Da.constant,el=Hs=Ro=0):(cl=Da.constant.length>0?Da.constant[0]:0,el=Da.constant.length>1?Da.constant[1]:0,Hs=Da.constant.length>2?Da.constant[2]:0,Ro=Da.constant.length>3?Da.constant[3]:0)):(Dr(Da.buffer)?tl=ge.createStream(34962,Da.buffer):tl=ge.getBuffer(Da.buffer),Fa="type"in Da?rn[Da.type]:tl.dtype,hl=!!Da.normalized,Fs=Da.size|0,Ms=Da.offset|0,jo=Da.stride|0,Rs=Da.divisor|0)),Is=at.state,at.state=fs,Bs=at.x,at.x=cl,At=at.y,at.y=el,Gt=at.z,at.z=Hs,wr=at.w,at.w=Ro,mr=at.buffer,at.buffer=tl,Or=at.size,at.size=Fs,gi=at.normalized,at.normalized=hl,Ti=at.type,at.type=Fa,ki=at.offset,at.offset=Ms,Ji=at.stride,at.stride=jo,Fn=at.divisor,at.divisor=Rs,Pi=b.call(this,Ie,Ri,xi),hi=!1,Li=1,Si=0,Gn=0,ta=0,ya=0,ia=null,pa=0,va=!1,zn=5126,is=0,Cs=0,Ks=0,Dr(Pi)?(hi=!0,ia=ge.createStream(34962,Pi),zn=ia.dtype):(ia=ge.getBuffer(Pi),ia?zn=ia.dtype:"constant"in Pi?(Li=2,typeof Pi.constant=="number"?(Si=Pi.constant,Gn=ta=ya=0):(Si=Pi.constant.length>0?Pi.constant[0]:0,Gn=Pi.constant.length>1?Pi.constant[1]:0,ta=Pi.constant.length>2?Pi.constant[2]:0,ya=Pi.constant.length>3?Pi.constant[3]:0)):(Dr(Pi.buffer)?ia=ge.createStream(34962,Pi.buffer):ia=ge.getBuffer(Pi.buffer),zn="type"in Pi?rn[Pi.type]:ia.dtype,va=!!Pi.normalized,pa=Pi.size|0,is=Pi.offset|0,Cs=Pi.stride|0,Ks=Pi.divisor|0)),dl=wt.state,wt.state=Li,xl=wt.x,wt.x=Si,Ol=wt.y,wt.y=Gn,bl=wt.z,wt.z=ta,eu=wt.w,wt.w=ya,Zl=wt.buffer,wt.buffer=ia,Vl=wt.size,wt.size=pa,ja=wt.normalized,wt.normalized=va,ns=wt.type,wt.type=zn,Js=wt.offset,wt.offset=is,cs=wt.stride,wt.stride=Cs,sl=wt.divisor,wt.divisor=Ks,ll=f.call(this,Ie,Ri,xi),il=!1,zl=1,Ml=0,Rl=0,Al=0,Ll=0,ms=null,Os=0,Xl=!1,Gl=5126,Ul=0,le=0,w=0,Dr(ll)?(il=!0,ms=ge.createStream(34962,ll),Gl=ms.dtype):(ms=ge.getBuffer(ll),ms?Gl=ms.dtype:"constant"in ll?(zl=2,typeof ll.constant=="number"?(Ml=ll.constant,Rl=Al=Ll=0):(Ml=ll.constant.length>0?ll.constant[0]:0,Rl=ll.constant.length>1?ll.constant[1]:0,Al=ll.constant.length>2?ll.constant[2]:0,Ll=ll.constant.length>3?ll.constant[3]:0)):(Dr(ll.buffer)?ms=ge.createStream(34962,ll.buffer):ms=ge.getBuffer(ll.buffer),Gl="type"in ll?rn[ll.type]:ms.dtype,Xl=!!ll.normalized,Os=ll.size|0,Ul=ll.offset|0,le=ll.stride|0,w=ll.divisor|0)),q=vt.state,vt.state=zl,Q=vt.x,vt.x=Ml,ee=vt.y,vt.y=Rl,ue=vt.z,vt.z=Al,Ge=vt.w,vt.w=Ll,et=vt.buffer,vt.buffer=ms,mt=vt.size,vt.size=Os,Ft=vt.normalized,vt.normalized=Xl,ir=vt.type,vt.type=Gl,or=vt.offset,vt.offset=Ul,kr=vt.stride,vt.stride=le,Vr=vt.divisor,vt.divisor=w,he=h.call(this,Ie,Ri,xi),Se=!1,qe=1,He=0,lt=0,tt=0,pt=0,Ht=null,nr=0,fr=!1,Ar=5126,Rr=0,ri=0,si=0,Dr(he)?(Se=!0,Ht=ge.createStream(34962,he),Ar=Ht.dtype):(Ht=ge.getBuffer(he),Ht?Ar=Ht.dtype:"constant"in he?(qe=2,typeof he.constant=="number"?(He=he.constant,lt=tt=pt=0):(He=he.constant.length>0?he.constant[0]:0,lt=he.constant.length>1?he.constant[1]:0,tt=he.constant.length>2?he.constant[2]:0,pt=he.constant.length>3?he.constant[3]:0)):(Dr(he.buffer)?Ht=ge.createStream(34962,he.buffer):Ht=ge.getBuffer(he.buffer),Ar="type"in he?rn[he.type]:Ht.dtype,fr=!!he.normalized,nr=he.size|0,Rr=he.offset|0,ri=he.stride|0,si=he.divisor|0)),Mi=st.state,st.state=qe,hn=st.x,st.x=He,Zn=st.y,st.y=lt,Yn=st.z,st.z=tt,Ua=st.w,st.w=pt,Fo=st.buffer,st.buffer=Ht,vl=st.size,st.size=nr,Us=st.normalized,st.normalized=fr,ml=st.type,st.type=Ar,au=st.offset,st.offset=Rr,Sl=st.stride,st.stride=ri,Yl=st.divisor,st.divisor=si,ql=u.call(this,Ie,Ri,xi),ou=!1,Pu=1,iu=0,tu=0,Wu=0,Qu=0,Ju=null,ju=0,Xu=!1,lf=5126,xf=0,ef=0,tf=0,Dr(ql)?(ou=!0,Ju=ge.createStream(34962,ql),lf=Ju.dtype):(Ju=ge.getBuffer(ql),Ju?lf=Ju.dtype:"constant"in ql?(Pu=2,typeof ql.constant=="number"?(iu=ql.constant,tu=Wu=Qu=0):(iu=ql.constant.length>0?ql.constant[0]:0,tu=ql.constant.length>1?ql.constant[1]:0,Wu=ql.constant.length>2?ql.constant[2]:0,Qu=ql.constant.length>3?ql.constant[3]:0)):(Dr(ql.buffer)?Ju=ge.createStream(34962,ql.buffer):Ju=ge.getBuffer(ql.buffer),lf="type"in ql?rn[ql.type]:Ju.dtype,Xu=!!ql.normalized,ju=ql.size|0,xf=ql.offset|0,ef=ql.stride|0,tf=ql.divisor|0)),Z=Ue.state,Ue.state=Pu,se=Ue.x,Ue.x=iu,ze=Ue.y,Ue.y=tu,Xe=Ue.z,Ue.z=Wu,Qe=Ue.w,Ue.w=Qu,ot=Ue.buffer,Ue.buffer=Ju,jt=Ue.size,Ue.size=ju,_t=Ue.normalized,Ue.normalized=Xu,cr=Ue.type,Ue.type=lf,Cr=Ue.offset,Ue.offset=xf,zr=Ue.stride,Ue.stride=ef,ui=Ue.divisor,Ue.divisor=tf,$r=p.call(this,Ie,Ri,xi),Oi=!1,fn=1,vi=0,zi=0,Xi=0,pn=0,sn=null,bi=0,xo=!1,no=5126,Xo=0,js=0,El=0,Dr($r)?(Oi=!0,sn=ge.createStream(34962,$r),no=sn.dtype):(sn=ge.getBuffer($r),sn?no=sn.dtype:"constant"in $r?(fn=2,typeof $r.constant=="number"?(vi=$r.constant,zi=Xi=pn=0):(vi=$r.constant.length>0?$r.constant[0]:0,zi=$r.constant.length>1?$r.constant[1]:0,Xi=$r.constant.length>2?$r.constant[2]:0,pn=$r.constant.length>3?$r.constant[3]:0)):(Dr($r.buffer)?sn=ge.createStream(34962,$r.buffer):sn=ge.getBuffer($r.buffer),no="type"in $r?rn[$r.type]:sn.dtype,xo=!!$r.normalized,bi=$r.size|0,Xo=$r.offset|0,js=$r.stride|0,El=$r.divisor|0)),Pl=rt.state,rt.state=fn,pu=rt.x,rt.x=vi,Il=rt.y,rt.y=zi,fu=rt.z,rt.z=Xi,Zu=rt.w,rt.w=pn,Gu=rt.buffer,rt.buffer=sn,rf=rt.size,rt.size=bi,ds=rt.normalized,rt.normalized=xo,Wl=rt.type,rt.type=no,Au=rt.offset,rt.offset=Xo,Tu=rt.stride,rt.stride=js,uf=rt.divisor,rt.divisor=El,df=fe.vert,fe.vert=$e,Ef=fe.frag,fe.frag=zt,Re.dirty=!0,xn(Ie,Ri,xi),Ie.viewportWidth=Zr,Ie.viewportHeight=Ai,Vi[0]=Qi,Vi[1]=ni,Vi[2]=Zi,Vi[3]=aa,Mr[0]=Mn,Mr[1]=Un,Mr[2]=Ga,Mr[3]=ma,Oe.blend_enable=oa,Ii[0]=ka,Ii[1]=so,Ii[2]=Kr,Ii[3]=Ia,Oe.depth_enable=Yo,yi[0]=ls,yi[1]=$a,yi[2]=fo,yi[3]=mn,Oe.scissor_enable=ra,Oe.stencil_enable=wa,ws&&(r.cpuTime+=performance.now()-Co),gn&&ct.destroyStream(ji),De.elements=Ps,De.offset=Sn,De.count=Ba,De.primitive=Ko,It[ce]=Qo,It[nt]=Wi,It[gt]=Qa,It[Nt]=da,It[it]=vo,It[Ke]=ps,It[kt]=mo,It[Tt]=jn,It[St]=Ys,It[Dt]=Ns,ha&&ge.destroyStream(Ra),Zt.state=Ja,Zt.x=lo,Zt.y=eo,Zt.z=sa,Zt.w=es,Zt.buffer=Na,Zt.size=tn,Zt.normalized=Pa,Zt.type=to,Zt.offset=yo,Zt.stride=Jo,Zt.divisor=Ao,_a&&ge.destroyStream(Wa),Et.state=ko,Et.x=oo,Et.y=za,Et.z=ea,Et.w=rs,Et.buffer=$s,Et.size=us,Et.normalized=Ds,Et.type=fl,Et.offset=as,Et.stride=Ma,Et.divisor=Qs,gs&&ge.destroyStream(Ea),Ae.state=$o,Ae.x=Aa,Ae.y=os,Ae.z=_l,Ae.w=Ss,Ae.buffer=po,Ae.size=go,Ae.normalized=ss,Ae.type=qo,Ae.offset=zo,Ae.stride=io,Ae.divisor=Io,vs&&ge.destroyStream(tl),at.state=Is,at.x=Bs,at.y=At,at.z=Gt,at.w=wr,at.buffer=mr,at.size=Or,at.normalized=gi,at.type=Ti,at.offset=ki,at.stride=Ji,at.divisor=Fn,hi&&ge.destroyStream(ia),wt.state=dl,wt.x=xl,wt.y=Ol,wt.z=bl,wt.w=eu,wt.buffer=Zl,wt.size=Vl,wt.normalized=ja,wt.type=ns,wt.offset=Js,wt.stride=cs,wt.divisor=sl,il&&ge.destroyStream(ms),vt.state=q,vt.x=Q,vt.y=ee,vt.z=ue,vt.w=Ge,vt.buffer=et,vt.size=mt,vt.normalized=Ft,vt.type=ir,vt.offset=or,vt.stride=kr,vt.divisor=Vr,Se&&ge.destroyStream(Ht),st.state=Mi,st.x=hn,st.y=Zn,st.z=Yn,st.w=Ua,st.buffer=Fo,st.size=vl,st.normalized=Us,st.type=ml,st.offset=au,st.stride=Sl,st.divisor=Yl,ou&&ge.destroyStream(Ju),Ue.state=Z,Ue.x=se,Ue.y=ze,Ue.z=Xe,Ue.w=Qe,Ue.buffer=ot,Ue.size=jt,Ue.normalized=_t,Ue.type=cr,Ue.offset=Cr,Ue.stride=zr,Ue.divisor=ui,Oi&&ge.destroyStream(sn),rt.state=Pl,rt.x=pu,rt.y=Il,rt.z=fu,rt.w=Zu,rt.buffer=Gu,rt.size=rf,rt.normalized=ds,rt.type=Wl,rt.offset=Au,rt.stride=Tu,rt.divisor=uf,fe.vert=df,fe.frag=Ef,Re.dirty=!0},batch:function(Ri,xn){var xi,Xr,ft,tr,pr,gr,Zr;if(xi=rr.angle_instanced_arrays,Xr=Pt.next,Xr!==Pt.cur&&(Xr?Ut.bindFramebuffer(36160,Xr.framebuffer):Ut.bindFramebuffer(36160,null),Pt.cur=Xr),Re.dirty){var Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn;Ai=Oe.dither,Ai!==Re.dither&&(Ai?Ut.enable(3024):Ut.disable(3024),Re.dither=Ai),Qi=di[0],ni=di[1],(Qi!==Di[0]||ni!==Di[1])&&(Ut.blendEquationSeparate(Qi,ni),Di[0]=Qi,Di[1]=ni),Zi=Oe.depth_func,Zi!==Re.depth_func&&(Ut.depthFunc(Zi),Re.depth_func=Zi),aa=nn[0],Mn=nn[1],(aa!==ii[0]||Mn!==ii[1])&&(Ut.depthRange(aa,Mn),ii[0]=aa,ii[1]=Mn),Un=Oe.depth_mask,Un!==Re.depth_mask&&(Ut.depthMask(Un),Re.depth_mask=Un),Ga=wi[0],ma=wi[1],oa=wi[2],ka=wi[3],(Ga!==Gi[0]||ma!==Gi[1]||oa!==Gi[2]||ka!==Gi[3])&&(Ut.colorMask(Ga,ma,oa,ka),Gi[0]=Ga,Gi[1]=ma,Gi[2]=oa,Gi[3]=ka),so=Oe.cull_enable,so!==Re.cull_enable&&(so?Ut.enable(2884):Ut.disable(2884),Re.cull_enable=so),Kr=Oe.cull_face,Kr!==Re.cull_face&&(Ut.cullFace(Kr),Re.cull_face=Kr),Ia=Oe.frontFace,Ia!==Re.frontFace&&(Ut.frontFace(Ia),Re.frontFace=Ia),Yo=Oe.lineWidth,Yo!==Re.lineWidth&&(Ut.lineWidth(Yo),Re.lineWidth=Yo),fa=Oe.polygonOffset_enable,fa!==Re.polygonOffset_enable&&(fa?Ut.enable(32823):Ut.disable(32823),Re.polygonOffset_enable=fa),kn=Bt[0],Ta=Bt[1],(kn!==yt[0]||Ta!==yt[1])&&(Ut.polygonOffset(kn,Ta),yt[0]=kn,yt[1]=Ta),ys=Oe.sample_alpha,ys!==Re.sample_alpha&&(ys?Ut.enable(32926):Ut.disable(32926),Re.sample_alpha=ys),uo=Oe.sample_enable,uo!==Re.sample_enable&&(uo?Ut.enable(32928):Ut.disable(32928),Re.sample_enable=uo),ls=Vt[0],$a=Vt[1],(ls!==Wt[0]||$a!==Wt[1])&&(Ut.sampleCoverage(ls,$a),Wt[0]=ls,Wt[1]=$a),fo=Oe.stencil_mask,fo!==Re.stencil_mask&&(Ut.stencilMask(fo),Re.stencil_mask=fo),mn=_r[0],ra=_r[1],wa=_r[2],(mn!==Lr[0]||ra!==Lr[1]||wa!==Lr[2])&&(Ut.stencilFunc(mn,ra,wa),Lr[0]=mn,Lr[1]=ra,Lr[2]=wa),ws=Ur[0],Co=Ur[1],Po=Ur[2],ji=Ur[3],(ws!==Ir[0]||Co!==Ir[1]||Po!==Ir[2]||ji!==Ir[3])&&(Ut.stencilOpSeparate(ws,Co,Po,ji),Ir[0]=ws,Ir[1]=Co,Ir[2]=Po,Ir[3]=ji),gn=Gr[0],Ps=Gr[1],Ha=Gr[2],Sn=Gr[3],(gn!==jr[0]||Ps!==jr[1]||Ha!==jr[2]||Sn!==jr[3])&&(Ut.stencilOpSeparate(gn,Ps,Ha,Sn),jr[0]=gn,jr[1]=Ps,jr[2]=Ha,jr[3]=Sn)}Ut.blendColor(0,0,0,1),Fr[0]=0,Fr[1]=0,Fr[2]=0,Fr[3]=1,Yt?Ut.enable(3042):Ut.disable(3042),Re.blend_enable=Yt,Ut.blendFuncSeparate(770,771,773,1),Ci[0]=770,Ci[1]=771,Ci[2]=773,Ci[3]=1,hr?Ut.enable(2929):Ut.disable(2929),Re.depth_enable=hr,yr?Ut.enable(3089):Ut.disable(3089),Re.scissor_enable=yr,br?Ut.enable(2960):Ut.disable(2960),Re.stencil_enable=br,ft=Re.profile,ft&&(tr=performance.now(),r.count+=xn),Ut.useProgram(s.program),pr=rr.angle_instanced_arrays;var ao;for(dt.setVAO(null),Ut.uniform1i(P.location,!1),Ut.uniform1i(U.location,G.bind()),ao=De.instances,gr=0;gr0?co.constant[0]:0,Go=co.constant.length>1?co.constant[1]:0,Ys=co.constant.length>2?co.constant[2]:0,qs=co.constant.length>3?co.constant[3]:0)):(Dr(co.buffer)?Ns=ge.createStream(34962,co.buffer):Ns=ge.getBuffer(co.buffer),Vs="type"in co?rn[co.type]:Ns.dtype,ha=!!co.normalized,Oa=co.size|0,Ya=co.offset|0,_n=co.stride|0,Vn=co.divisor|0)),wo=l.location,Ra=pe[wo],No===1?(Ra.buffer||Ut.enableVertexAttribArray(wo),Xn=Oa||4,(Ra.type!==Vs||Ra.size!==Xn||Ra.buffer!==Ns||Ra.normalized!==ha||Ra.offset!==Ya||Ra.stride!==_n)&&(Ut.bindBuffer(34962,Ns.buffer),Ut.vertexAttribPointer(wo,Xn,Vs,ha,_n,Ya),Ra.type=Vs,Ra.size=Xn,Ra.buffer=Ns,Ra.normalized=ha,Ra.offset=Ya,Ra.stride=_n),Ra.divisor!==Vn&&(pr.vertexAttribDivisorANGLE(wo,Vn),Ra.divisor=Vn)):(Ra.buffer&&(Ut.disableVertexAttribArray(wo),Ra.buffer=null),(Ra.x!==jn||Ra.y!==Go||Ra.z!==Ys||Ra.w!==qs)&&(Ut.vertexAttrib4f(wo,jn,Go,Ys,qs),Ra.x=jn,Ra.y=Go,Ra.z=Ys,Ra.w=qs)),un=f.call(this,Ie,Zr,gr),$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,tn=0,Pa=0,to=0,Dr(un)?($n=!0,eo=ge.createStream(34962,un),Na=eo.dtype):(eo=ge.getBuffer(un),eo?Na=eo.dtype:"constant"in un?(Ka=2,typeof un.constant=="number"?(qn=un.constant,Eo=Ja=lo=0):(qn=un.constant.length>0?un.constant[0]:0,Eo=un.constant.length>1?un.constant[1]:0,Ja=un.constant.length>2?un.constant[2]:0,lo=un.constant.length>3?un.constant[3]:0)):(Dr(un.buffer)?eo=ge.createStream(34962,un.buffer):eo=ge.getBuffer(un.buffer),Na="type"in un?rn[un.type]:eo.dtype,es=!!un.normalized,sa=un.size|0,tn=un.offset|0,Pa=un.stride|0,to=un.divisor|0)),yo=c.location,Jo=pe[yo],Ka===1?(Jo.buffer||Ut.enableVertexAttribArray(yo),Ao=sa||1,(Jo.type!==Na||Jo.size!==Ao||Jo.buffer!==eo||Jo.normalized!==es||Jo.offset!==tn||Jo.stride!==Pa)&&(Ut.bindBuffer(34962,eo.buffer),Ut.vertexAttribPointer(yo,Ao,Na,es,Pa,tn),Jo.type=Na,Jo.size=Ao,Jo.buffer=eo,Jo.normalized=es,Jo.offset=tn,Jo.stride=Pa),Jo.divisor!==to&&(pr.vertexAttribDivisorANGLE(yo,to),Jo.divisor=to)):(Jo.buffer&&(Ut.disableVertexAttribArray(yo),Jo.buffer=null),(Jo.x!==qn||Jo.y!==Eo||Jo.z!==Ja||Jo.w!==lo)&&(Ut.vertexAttrib4f(yo,qn,Eo,Ja,lo),Jo.x=qn,Jo.y=Eo,Jo.z=Ja,Jo.w=lo)),Dn=h.call(this,Ie,Zr,gr),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,ln=0,Bo=0,Dr(Dn)?(_a=!0,Wa=ge.createStream(34962,Dn),Wo=Wa.dtype):(Wa=ge.getBuffer(Dn),Wa?Wo=Wa.dtype:"constant"in Dn?(Ws=2,typeof Dn.constant=="number"?(Ca=Dn.constant,Es=Ts=Ho=0):(Ca=Dn.constant.length>0?Dn.constant[0]:0,Es=Dn.constant.length>1?Dn.constant[1]:0,Ts=Dn.constant.length>2?Dn.constant[2]:0,Ho=Dn.constant.length>3?Dn.constant[3]:0)):(Dr(Dn.buffer)?Wa=ge.createStream(34962,Dn.buffer):Wa=ge.getBuffer(Dn.buffer),Wo="type"in Dn?rn[Dn.type]:Wa.dtype,ts=!!Dn.normalized,To=Dn.size|0,qa=Dn.offset|0,ln=Dn.stride|0,Bo=Dn.divisor|0)),ko=d.location,oo=pe[ko],Ws===1?(oo.buffer||Ut.enableVertexAttribArray(ko),za=To||4,(oo.type!==Wo||oo.size!==za||oo.buffer!==Wa||oo.normalized!==ts||oo.offset!==qa||oo.stride!==ln)&&(Ut.bindBuffer(34962,Wa.buffer),Ut.vertexAttribPointer(ko,za,Wo,ts,ln,qa),oo.type=Wo,oo.size=za,oo.buffer=Wa,oo.normalized=ts,oo.offset=qa,oo.stride=ln),oo.divisor!==Bo&&(pr.vertexAttribDivisorANGLE(ko,Bo),oo.divisor=Bo)):(oo.buffer&&(Ut.disableVertexAttribArray(ko),oo.buffer=null),(oo.x!==Ca||oo.y!==Es||oo.z!==Ts||oo.w!==Ho)&&(Ut.vertexAttrib4f(ko,Ca,Es,Ts,Ho),oo.x=Ca,oo.y=Es,oo.z=Ts,oo.w=Ho)),ea=p.call(this,Ie,Zr,gr),rs=!1,$s=1,us=0,Ds=0,fl=0,as=0,Ma=null,Qs=0,ho=!1,gs=5126,Vo=0,Do=0,Lo=0,Dr(ea)?(rs=!0,Ma=ge.createStream(34962,ea),gs=Ma.dtype):(Ma=ge.getBuffer(ea),Ma?gs=Ma.dtype:"constant"in ea?($s=2,typeof ea.constant=="number"?(us=ea.constant,Ds=fl=as=0):(us=ea.constant.length>0?ea.constant[0]:0,Ds=ea.constant.length>1?ea.constant[1]:0,fl=ea.constant.length>2?ea.constant[2]:0,as=ea.constant.length>3?ea.constant[3]:0)):(Dr(ea.buffer)?Ma=ge.createStream(34962,ea.buffer):Ma=ge.getBuffer(ea.buffer),gs="type"in ea?rn[ea.type]:Ma.dtype,ho=!!ea.normalized,Qs=ea.size|0,Vo=ea.offset|0,Do=ea.stride|0,Lo=ea.divisor|0)),xs=x.location,ks=pe[xs],$s===1?(ks.buffer||Ut.enableVertexAttribArray(xs),Ea=Qs||1,(ks.type!==gs||ks.size!==Ea||ks.buffer!==Ma||ks.normalized!==ho||ks.offset!==Vo||ks.stride!==Do)&&(Ut.bindBuffer(34962,Ma.buffer),Ut.vertexAttribPointer(xs,Ea,gs,ho,Do,Vo),ks.type=gs,ks.size=Ea,ks.buffer=Ma,ks.normalized=ho,ks.offset=Vo,ks.stride=Do),ks.divisor!==Lo&&(pr.vertexAttribDivisorANGLE(xs,Lo),ks.divisor=Lo)):(ks.buffer&&(Ut.disableVertexAttribArray(xs),ks.buffer=null),(ks.x!==us||ks.y!==Ds||ks.z!==fl||ks.w!==as)&&(Ut.vertexAttrib4f(xs,us,Ds,fl,as),ks.x=us,ks.y=Ds,ks.z=fl,ks.w=as)),Jn=b.call(this,Ie,Zr,gr),Oo=!1,rl=1,Gs=0,bs=0,zs=0,$o=0,Aa=null,os=0,_l=!1,Ss=5126,po=0,go=0,ss=0,Dr(Jn)?(Oo=!0,Aa=ge.createStream(34962,Jn),Ss=Aa.dtype):(Aa=ge.getBuffer(Jn),Aa?Ss=Aa.dtype:"constant"in Jn?(rl=2,typeof Jn.constant=="number"?(Gs=Jn.constant,bs=zs=$o=0):(Gs=Jn.constant.length>0?Jn.constant[0]:0,bs=Jn.constant.length>1?Jn.constant[1]:0,zs=Jn.constant.length>2?Jn.constant[2]:0,$o=Jn.constant.length>3?Jn.constant[3]:0)):(Dr(Jn.buffer)?Aa=ge.createStream(34962,Jn.buffer):Aa=ge.getBuffer(Jn.buffer),Ss="type"in Jn?rn[Jn.type]:Aa.dtype,_l=!!Jn.normalized,os=Jn.size|0,po=Jn.offset|0,go=Jn.stride|0,ss=Jn.divisor|0)),qo=v.location,zo=pe[qo],rl===1?(zo.buffer||Ut.enableVertexAttribArray(qo),io=os||1,(zo.type!==Ss||zo.size!==io||zo.buffer!==Aa||zo.normalized!==_l||zo.offset!==po||zo.stride!==go)&&(Ut.bindBuffer(34962,Aa.buffer),Ut.vertexAttribPointer(qo,io,Ss,_l,go,po),zo.type=Ss,zo.size=io,zo.buffer=Aa,zo.normalized=_l,zo.offset=po,zo.stride=go),zo.divisor!==ss&&(pr.vertexAttribDivisorANGLE(qo,ss),zo.divisor=ss)):(zo.buffer&&(Ut.disableVertexAttribArray(qo),zo.buffer=null),(zo.x!==Gs||zo.y!==bs||zo.z!==zs||zo.w!==$o)&&(Ut.vertexAttrib4f(qo,Gs,bs,zs,$o),zo.x=Gs,zo.y=bs,zo.z=zs,zo.w=$o)),Io=k.call(this,Ie,Zr,gr),Da=!1,vs=1,fs=0,cl=0,el=0,Hs=0,Ro=null,tl=0,Fs=!1,hl=5126,Fa=0,Ms=0,jo=0,Dr(Io)?(Da=!0,Ro=ge.createStream(34962,Io),hl=Ro.dtype):(Ro=ge.getBuffer(Io),Ro?hl=Ro.dtype:"constant"in Io?(vs=2,typeof Io.constant=="number"?(fs=Io.constant,cl=el=Hs=0):(fs=Io.constant.length>0?Io.constant[0]:0,cl=Io.constant.length>1?Io.constant[1]:0,el=Io.constant.length>2?Io.constant[2]:0,Hs=Io.constant.length>3?Io.constant[3]:0)):(Dr(Io.buffer)?Ro=ge.createStream(34962,Io.buffer):Ro=ge.getBuffer(Io.buffer),hl="type"in Io?rn[Io.type]:Ro.dtype,Fs=!!Io.normalized,tl=Io.size|0,Fa=Io.offset|0,Ms=Io.stride|0,jo=Io.divisor|0)),Rs=E.location,Is=pe[Rs],vs===1?(Is.buffer||Ut.enableVertexAttribArray(Rs),Bs=tl||1,(Is.type!==hl||Is.size!==Bs||Is.buffer!==Ro||Is.normalized!==Fs||Is.offset!==Fa||Is.stride!==Ms)&&(Ut.bindBuffer(34962,Ro.buffer),Ut.vertexAttribPointer(Rs,Bs,hl,Fs,Ms,Fa),Is.type=hl,Is.size=Bs,Is.buffer=Ro,Is.normalized=Fs,Is.offset=Fa,Is.stride=Ms),Is.divisor!==jo&&(pr.vertexAttribDivisorANGLE(Rs,jo),Is.divisor=jo)):(Is.buffer&&(Ut.disableVertexAttribArray(Rs),Is.buffer=null),(Is.x!==fs||Is.y!==cl||Is.z!==el||Is.w!==Hs)&&(Ut.vertexAttrib4f(Rs,fs,cl,el,Hs),Is.x=fs,Is.y=cl,Is.z=el,Is.w=Hs)),At=T.call(this,Ie,Zr,gr),Gt=!1,wr=1,mr=0,Or=0,gi=0,Ti=0,ki=null,Ji=0,Fn=!1,Pi=5126,hi=0,Li=0,Si=0,Dr(At)?(Gt=!0,ki=ge.createStream(34962,At),Pi=ki.dtype):(ki=ge.getBuffer(At),ki?Pi=ki.dtype:"constant"in At?(wr=2,typeof At.constant=="number"?(mr=At.constant,Or=gi=Ti=0):(mr=At.constant.length>0?At.constant[0]:0,Or=At.constant.length>1?At.constant[1]:0,gi=At.constant.length>2?At.constant[2]:0,Ti=At.constant.length>3?At.constant[3]:0)):(Dr(At.buffer)?ki=ge.createStream(34962,At.buffer):ki=ge.getBuffer(At.buffer),Pi="type"in At?rn[At.type]:ki.dtype,Fn=!!At.normalized,Ji=At.size|0,hi=At.offset|0,Li=At.stride|0,Si=At.divisor|0)),Gn=L.location,ta=pe[Gn],wr===1?(ta.buffer||Ut.enableVertexAttribArray(Gn),ya=Ji||1,(ta.type!==Pi||ta.size!==ya||ta.buffer!==ki||ta.normalized!==Fn||ta.offset!==hi||ta.stride!==Li)&&(Ut.bindBuffer(34962,ki.buffer),Ut.vertexAttribPointer(Gn,ya,Pi,Fn,Li,hi),ta.type=Pi,ta.size=ya,ta.buffer=ki,ta.normalized=Fn,ta.offset=hi,ta.stride=Li),ta.divisor!==Si&&(pr.vertexAttribDivisorANGLE(Gn,Si),ta.divisor=Si)):(ta.buffer&&(Ut.disableVertexAttribArray(Gn),ta.buffer=null),(ta.x!==mr||ta.y!==Or||ta.z!==gi||ta.w!==Ti)&&(Ut.vertexAttrib4f(Gn,mr,Or,gi,Ti),ta.x=mr,ta.y=Or,ta.z=gi,ta.w=Ti)),ia=_.call(this,Ie,Zr,gr),pa=!1,va=1,zn=0,is=0,Cs=0,Ks=0,dl=null,xl=0,Ol=!1,bl=5126,eu=0,Zl=0,Vl=0,Dr(ia)?(pa=!0,dl=ge.createStream(34962,ia),bl=dl.dtype):(dl=ge.getBuffer(ia),dl?bl=dl.dtype:"constant"in ia?(va=2,typeof ia.constant=="number"?(zn=ia.constant,is=Cs=Ks=0):(zn=ia.constant.length>0?ia.constant[0]:0,is=ia.constant.length>1?ia.constant[1]:0,Cs=ia.constant.length>2?ia.constant[2]:0,Ks=ia.constant.length>3?ia.constant[3]:0)):(Dr(ia.buffer)?dl=ge.createStream(34962,ia.buffer):dl=ge.getBuffer(ia.buffer),bl="type"in ia?rn[ia.type]:dl.dtype,Ol=!!ia.normalized,xl=ia.size|0,eu=ia.offset|0,Zl=ia.stride|0,Vl=ia.divisor|0)),ja=C.location,ns=pe[ja],va===1?(ns.buffer||Ut.enableVertexAttribArray(ja),Js=xl||1,(ns.type!==bl||ns.size!==Js||ns.buffer!==dl||ns.normalized!==Ol||ns.offset!==eu||ns.stride!==Zl)&&(Ut.bindBuffer(34962,dl.buffer),Ut.vertexAttribPointer(ja,Js,bl,Ol,Zl,eu),ns.type=bl,ns.size=Js,ns.buffer=dl,ns.normalized=Ol,ns.offset=eu,ns.stride=Zl),ns.divisor!==Vl&&(pr.vertexAttribDivisorANGLE(ja,Vl),ns.divisor=Vl)):(ns.buffer&&(Ut.disableVertexAttribArray(ja),ns.buffer=null),(ns.x!==zn||ns.y!==is||ns.z!==Cs||ns.w!==Ks)&&(Ut.vertexAttrib4f(ja,zn,is,Cs,Ks),ns.x=zn,ns.y=is,ns.z=Cs,ns.w=Ks)),cs=M.call(this,Ie,Zr,gr),sl=!1,ll=1,il=0,zl=0,Ml=0,Rl=0,Al=null,Ll=0,ms=!1,Os=5126,Xl=0,Gl=0,Ul=0,Dr(cs)?(sl=!0,Al=ge.createStream(34962,cs),Os=Al.dtype):(Al=ge.getBuffer(cs),Al?Os=Al.dtype:"constant"in cs?(ll=2,typeof cs.constant=="number"?(il=cs.constant,zl=Ml=Rl=0):(il=cs.constant.length>0?cs.constant[0]:0,zl=cs.constant.length>1?cs.constant[1]:0,Ml=cs.constant.length>2?cs.constant[2]:0,Rl=cs.constant.length>3?cs.constant[3]:0)):(Dr(cs.buffer)?Al=ge.createStream(34962,cs.buffer):Al=ge.getBuffer(cs.buffer),Os="type"in cs?rn[cs.type]:Al.dtype,ms=!!cs.normalized,Ll=cs.size|0,Xl=cs.offset|0,Gl=cs.stride|0,Ul=cs.divisor|0)),le=m.location,w=pe[le],ll===1?(w.buffer||Ut.enableVertexAttribArray(le),q=Ll||1,(w.type!==Os||w.size!==q||w.buffer!==Al||w.normalized!==ms||w.offset!==Xl||w.stride!==Gl)&&(Ut.bindBuffer(34962,Al.buffer),Ut.vertexAttribPointer(le,q,Os,ms,Gl,Xl),w.type=Os,w.size=q,w.buffer=Al,w.normalized=ms,w.offset=Xl,w.stride=Gl),w.divisor!==Ul&&(pr.vertexAttribDivisorANGLE(le,Ul),w.divisor=Ul)):(w.buffer&&(Ut.disableVertexAttribArray(le),w.buffer=null),(w.x!==il||w.y!==zl||w.z!==Ml||w.w!==Rl)&&(Ut.vertexAttrib4f(le,il,zl,Ml,Rl),w.x=il,w.y=zl,w.z=Ml,w.w=Rl)),Q=Zr.opacity,(!gr||ee!==Q)&&(ee=Q,Ut.uniform1f(A.location,Q)),ue=F.call(this,Ie,Zr,gr),Ge=ue[0],mt=ue[1],(!gr||et!==Ge||Ft!==mt)&&(et=Ge,Ft=mt,Ut.uniform2f(B.location,Ge,mt)),ir=Ie.pixelRatio,(!gr||or!==ir)&&(or=ir,Ut.uniform1f(j.location,ir)),kr=Zr.scale,Vr=kr[0],Se=kr[1],(!gr||he!==Vr||qe!==Se)&&(he=Vr,qe=Se,Ut.uniform2f(H.location,Vr,Se)),He=Zr.scaleFract,lt=He[0],pt=He[1],(!gr||tt!==lt||Ht!==pt)&&(tt=lt,Ht=pt,Ut.uniform2f(N.location,lt,pt)),nr=Zr.translate,fr=nr[0],Rr=nr[1],(!gr||Ar!==fr||ri!==Rr)&&(Ar=fr,ri=Rr,Ut.uniform2f(W.location,fr,Rr)),si=Zr.translateFract,Mi=si[0],Zn=si[1],(!gr||hn!==Mi||Yn!==Zn)&&(hn=Mi,Yn=Zn,Ut.uniform2f(re.location,Mi,Zn)),Ua=Zr.elements,Fo=null,vl=Dr(Ua),vl?Fo=ct.createStream(Ua):Fo=ct.getElements(Ua),Fo&&Ut.bindBuffer(34963,Fo.buffer.buffer),Us=Zr.offset,ml=Zr.count,ml&&(ao>0?Fo?pr.drawElementsInstancedANGLE(0,ml,Fo.type,Us<<(Fo.type-5121>>1),ao):pr.drawArraysInstancedANGLE(0,Us,ml,ao):ao<0&&(Fo?Ut.drawElements(0,ml,Fo.type,Us<<(Fo.type-5121>>1)):Ut.drawArrays(0,Us,ml)),Ie.viewportWidth=Qa,Ie.viewportHeight=vn,mo&&ge.destroyStream(Ns),$n&&ge.destroyStream(eo),_a&&ge.destroyStream(Wa),rs&&ge.destroyStream(Ma),Oo&&ge.destroyStream(Aa),Da&&ge.destroyStream(Ro),Gt&&ge.destroyStream(ki),pa&&ge.destroyStream(dl),sl&&ge.destroyStream(Al),vl&&ct.destroyStream(Fo))}G.unbind(),Re.dirty=!0,dt.setVAO(null),ft&&(r.cpuTime+=performance.now()-tr)}}}});var z8=Te((Y_r,qNe)=>{qNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt,Nt,it,Ke,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st){"use strict";var Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi;return Ue=t.gl,rt=t.context,$e=t.strings,zt=t.next,Yt=t.current,hr=t.draw,yr=t.elements,br=t.buffer,Ut=t.shader,Ie=t.attributes,xe=t.vao,Oe=t.uniforms,Re=t.framebuffer,De=t.extensions,ct=t.timer,ge=t.isBufferArgs,fe=zt.blend_color,pe=Yt.blend_color,dt=zt.blend_equation,It=Yt.blend_equation,Pt=zt.blend_func,rr=Yt.blend_func,Hr=zt.depth_range,Dr=Yt.depth_range,Mr=zt.colorMask,Fr=Yt.colorMask,di=zt.polygonOffset_offset,Di=Yt.polygonOffset_offset,Ii=zt.sample_coverage,Ci=Yt.sample_coverage,nn=zt.stencil_func,ii=Yt.stencil_func,wi=zt.stencil_opFront,Gi=Yt.stencil_opFront,Bt=zt.stencil_opBack,yt=Yt.stencil_opBack,Vt=zt.scissor_box,Wt=Yt.scissor_box,_r=zt.viewport,Lr=Yt.viewport,Ur={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ir={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Gr={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},jr={add:32774,subtract:32778,"reverse subtract":32779},yi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ei={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Vi={cw:2304,ccw:2305},ti={},ti.buffer=n,ti.divisor=1,en={},en.buffer=i,en.divisor=1,Yr={},Yr.buffer=a,Yr.divisor=1,oi={},oi.buffer=o,oi.divisor=1,{draw:function(Bi){var an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us;if(an=De.angle_instanced_arrays,rn=Re.next,rn!==Re.cur&&(rn?Ue.bindFramebuffer(36160,rn.framebuffer):Ue.bindFramebuffer(36160,null),Re.cur=rn),Yt.dirty){var Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs;Ds=zt.dither,Ds!==Yt.dither&&(Ds?Ue.enable(3024):Ue.disable(3024),Yt.dither=Ds),fl=zt.depth_func,fl!==Yt.depth_func&&(Ue.depthFunc(fl),Yt.depth_func=fl),as=Hr[0],Ma=Hr[1],(as!==Dr[0]||Ma!==Dr[1])&&(Ue.depthRange(as,Ma),Dr[0]=as,Dr[1]=Ma),Qs=zt.depth_mask,Qs!==Yt.depth_mask&&(Ue.depthMask(Qs),Yt.depth_mask=Qs),ho=Mr[0],gs=Mr[1],Vo=Mr[2],Do=Mr[3],(ho!==Fr[0]||gs!==Fr[1]||Vo!==Fr[2]||Do!==Fr[3])&&(Ue.colorMask(ho,gs,Vo,Do),Fr[0]=ho,Fr[1]=gs,Fr[2]=Vo,Fr[3]=Do),Lo=zt.cull_enable,Lo!==Yt.cull_enable&&(Lo?Ue.enable(2884):Ue.disable(2884),Yt.cull_enable=Lo),xs=zt.cull_face,xs!==Yt.cull_face&&(Ue.cullFace(xs),Yt.cull_face=xs),ks=zt.frontFace,ks!==Yt.frontFace&&(Ue.frontFace(ks),Yt.frontFace=ks),Ea=zt.lineWidth,Ea!==Yt.lineWidth&&(Ue.lineWidth(Ea),Yt.lineWidth=Ea),Jn=zt.polygonOffset_enable,Jn!==Yt.polygonOffset_enable&&(Jn?Ue.enable(32823):Ue.disable(32823),Yt.polygonOffset_enable=Jn),Oo=di[0],rl=di[1],(Oo!==Di[0]||rl!==Di[1])&&(Ue.polygonOffset(Oo,rl),Di[0]=Oo,Di[1]=rl),Gs=zt.sample_alpha,Gs!==Yt.sample_alpha&&(Gs?Ue.enable(32926):Ue.disable(32926),Yt.sample_alpha=Gs),bs=zt.sample_enable,bs!==Yt.sample_enable&&(bs?Ue.enable(32928):Ue.disable(32928),Yt.sample_enable=bs),zs=Ii[0],$o=Ii[1],(zs!==Ci[0]||$o!==Ci[1])&&(Ue.sampleCoverage(zs,$o),Ci[0]=zs,Ci[1]=$o),Aa=zt.stencil_enable,Aa!==Yt.stencil_enable&&(Aa?Ue.enable(2960):Ue.disable(2960),Yt.stencil_enable=Aa),os=zt.stencil_mask,os!==Yt.stencil_mask&&(Ue.stencilMask(os),Yt.stencil_mask=os),_l=nn[0],Ss=nn[1],po=nn[2],(_l!==ii[0]||Ss!==ii[1]||po!==ii[2])&&(Ue.stencilFunc(_l,Ss,po),ii[0]=_l,ii[1]=Ss,ii[2]=po),go=wi[0],ss=wi[1],qo=wi[2],zo=wi[3],(go!==Gi[0]||ss!==Gi[1]||qo!==Gi[2]||zo!==Gi[3])&&(Ue.stencilOpSeparate(go,ss,qo,zo),Gi[0]=go,Gi[1]=ss,Gi[2]=qo,Gi[3]=zo),io=Bt[0],Io=Bt[1],Da=Bt[2],vs=Bt[3],(io!==yt[0]||Io!==yt[1]||Da!==yt[2]||vs!==yt[3])&&(Ue.stencilOpSeparate(io,Io,Da,vs),yt[0]=io,yt[1]=Io,yt[2]=Da,yt[3]=vs)}Fi=Bi.viewport,Ri=Fi.x|0,xn=Fi.y|0,xi="width"in Fi?Fi.width|0:rt.framebufferWidth-Ri,Xr="height"in Fi?Fi.height|0:rt.framebufferHeight-xn,ft=rt.viewportWidth,rt.viewportWidth=xi,tr=rt.viewportHeight,rt.viewportHeight=Xr,Ue.viewport(Ri,xn,xi,Xr),Lr[0]=Ri,Lr[1]=xn,Lr[2]=xi,Lr[3]=Xr,Ue.blendColor(0,0,0,0),pe[0]=0,pe[1]=0,pe[2]=0,pe[3]=0,s?Ue.enable(3042):Ue.disable(3042),Yt.blend_enable=s,Ue.blendEquationSeparate(32774,32774),It[0]=32774,It[1]=32774,Ue.blendFuncSeparate(770,771,773,1),rr[0]=770,rr[1]=771,rr[2]=773,rr[3]=1,u?Ue.enable(2929):Ue.disable(2929),Yt.depth_enable=u,pr=Bi.viewport,gr=pr.x|0,Zr=pr.y|0,Ai="width"in pr?pr.width|0:rt.framebufferWidth-gr,Qi="height"in pr?pr.height|0:rt.framebufferHeight-Zr,Ue.scissor(gr,Zr,Ai,Qi),Wt[0]=gr,Wt[1]=Zr,Wt[2]=Ai,Wt[3]=Qi,l?Ue.enable(3089):Ue.disable(3089),Yt.scissor_enable=l,ni=Yt.profile,ni&&(Zi=performance.now(),r.count++),Ue.useProgram(f.program),aa=De.angle_instanced_arrays,xe.setVAO(null),Mn=h.location,Un=Ie[Mn],Un.buffer||Ue.enableVertexAttribArray(Mn),(Un.type!==5126||Un.size!==2||Un.buffer!==c||Un.normalized!==!1||Un.offset!==16||Un.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(Mn,2,5126,!1,24,16),Un.type=5126,Un.size=2,Un.buffer=c,Un.normalized=!1,Un.offset=16,Un.stride=24),Un.divisor!==0&&(aa.vertexAttribDivisorANGLE(Mn,0),Un.divisor=0),Ga=d.call(this,rt,Bi,0),ti.offset=Ga,ma=!1,oa=1,ka=0,so=0,Kr=0,Ia=0,Yo=null,fa=0,kn=!1,Ta=5126,ys=0,uo=0,ls=0,ge(ti)?(ma=!0,Yo=br.createStream(34962,ti),Ta=Yo.dtype):(Yo=br.getBuffer(ti),Yo?Ta=Yo.dtype:"constant"in ti?(oa=2,typeof ti.constant=="number"?(ka=ti.constant,so=Kr=Ia=0):(ka=ti.constant.length>0?ti.constant[0]:0,so=ti.constant.length>1?ti.constant[1]:0,Kr=ti.constant.length>2?ti.constant[2]:0,Ia=ti.constant.length>3?ti.constant[3]:0)):(ge(ti.buffer)?Yo=br.createStream(34962,ti.buffer):Yo=br.getBuffer(ti.buffer),Ta="type"in ti?Ei[ti.type]:Yo.dtype,kn=!!ti.normalized,fa=ti.size|0,ys=ti.offset|0,uo=ti.stride|0,ls=ti.divisor|0)),$a=p.location,fo=Ie[$a],oa===1?(fo.buffer||Ue.enableVertexAttribArray($a),mn=fa||4,(fo.type!==Ta||fo.size!==mn||fo.buffer!==Yo||fo.normalized!==kn||fo.offset!==ys||fo.stride!==uo)&&(Ue.bindBuffer(34962,Yo.buffer),Ue.vertexAttribPointer($a,mn,Ta,kn,uo,ys),fo.type=Ta,fo.size=mn,fo.buffer=Yo,fo.normalized=kn,fo.offset=ys,fo.stride=uo),fo.divisor!==ls&&(aa.vertexAttribDivisorANGLE($a,ls),fo.divisor=ls)):(fo.buffer&&(Ue.disableVertexAttribArray($a),fo.buffer=null),(fo.x!==ka||fo.y!==so||fo.z!==Kr||fo.w!==Ia)&&(Ue.vertexAttrib4f($a,ka,so,Kr,Ia),fo.x=ka,fo.y=so,fo.z=Kr,fo.w=Ia)),ra=x.location,wa=Ie[ra],wa.buffer||Ue.enableVertexAttribArray(ra),(wa.type!==5126||wa.size!==2||wa.buffer!==c||wa.normalized!==!1||wa.offset!==0||wa.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(ra,2,5126,!1,24,0),wa.type=5126,wa.size=2,wa.buffer=c,wa.normalized=!1,wa.offset=0,wa.stride=24),wa.divisor!==0&&(aa.vertexAttribDivisorANGLE(ra,0),wa.divisor=0),ws=b.call(this,rt,Bi,0),oi.offset=ws,Co=!1,Po=1,ji=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Wi=0,Sa=0,ge(oi)?(Co=!0,Sn=br.createStream(34962,oi),Ko=Sn.dtype):(Sn=br.getBuffer(oi),Sn?Ko=Sn.dtype:"constant"in oi?(Po=2,typeof oi.constant=="number"?(ji=oi.constant,gn=Ps=Ha=0):(ji=oi.constant.length>0?oi.constant[0]:0,gn=oi.constant.length>1?oi.constant[1]:0,Ps=oi.constant.length>2?oi.constant[2]:0,Ha=oi.constant.length>3?oi.constant[3]:0)):(ge(oi.buffer)?Sn=br.createStream(34962,oi.buffer):Sn=br.getBuffer(oi.buffer),Ko="type"in oi?Ei[oi.type]:Sn.dtype,Ba=!!oi.normalized,ao=oi.size|0,Qo=oi.offset|0,Wi=oi.stride|0,Sa=oi.divisor|0)),Qa=v.location,vn=Ie[Qa],Po===1?(vn.buffer||Ue.enableVertexAttribArray(Qa),da=ao||4,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Wi)&&(Ue.bindBuffer(34962,Sn.buffer),Ue.vertexAttribPointer(Qa,da,Ko,Ba,Wi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Wi),vn.divisor!==Sa&&(aa.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(Ue.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==ji||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(Ue.vertexAttrib4f(Qa,ji,gn,Ps,Ha),vn.x=ji,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=k.location,vo=Ie[la],vo.buffer||Ue.enableVertexAttribArray(la),(vo.type!==5126||vo.size!==2||vo.buffer!==c||vo.normalized!==!1||vo.offset!==8||vo.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(la,2,5126,!1,24,8),vo.type=5126,vo.size=2,vo.buffer=c,vo.normalized=!1,vo.offset=8,vo.stride=24),vo.divisor!==0&&(aa.vertexAttribDivisorANGLE(la,0),vo.divisor=0),As=E.call(this,rt,Bi,0),en.offset=As,ps=!1,co=1,mo=0,No=0,jn=0,Go=0,Ys=null,qs=0,Ns=!1,Oa=5126,ha=0,Vs=0,Ya=0,ge(en)?(ps=!0,Ys=br.createStream(34962,en),Oa=Ys.dtype):(Ys=br.getBuffer(en),Ys?Oa=Ys.dtype:"constant"in en?(co=2,typeof en.constant=="number"?(mo=en.constant,No=jn=Go=0):(mo=en.constant.length>0?en.constant[0]:0,No=en.constant.length>1?en.constant[1]:0,jn=en.constant.length>2?en.constant[2]:0,Go=en.constant.length>3?en.constant[3]:0)):(ge(en.buffer)?Ys=br.createStream(34962,en.buffer):Ys=br.getBuffer(en.buffer),Oa="type"in en?Ei[en.type]:Ys.dtype,Ns=!!en.normalized,qs=en.size|0,ha=en.offset|0,Vs=en.stride|0,Ya=en.divisor|0)),_n=T.location,Vn=Ie[_n],co===1?(Vn.buffer||Ue.enableVertexAttribArray(_n),wo=qs||2,(Vn.type!==Oa||Vn.size!==wo||Vn.buffer!==Ys||Vn.normalized!==Ns||Vn.offset!==ha||Vn.stride!==Vs)&&(Ue.bindBuffer(34962,Ys.buffer),Ue.vertexAttribPointer(_n,wo,Oa,Ns,Vs,ha),Vn.type=Oa,Vn.size=wo,Vn.buffer=Ys,Vn.normalized=Ns,Vn.offset=ha,Vn.stride=Vs),Vn.divisor!==Ya&&(aa.vertexAttribDivisorANGLE(_n,Ya),Vn.divisor=Ya)):(Vn.buffer&&(Ue.disableVertexAttribArray(_n),Vn.buffer=null),(Vn.x!==mo||Vn.y!==No||Vn.z!==jn||Vn.w!==Go)&&(Ue.vertexAttrib4f(_n,mo,No,jn,Go),Vn.x=mo,Vn.y=No,Vn.z=jn,Vn.w=Go)),Ra=L.call(this,rt,Bi,0),Yr.offset=Ra,Xn=!1,un=1,$n=0,Ka=0,qn=0,Eo=0,Ja=null,lo=0,eo=!1,sa=5126,es=0,Na=0,tn=0,ge(Yr)?(Xn=!0,Ja=br.createStream(34962,Yr),sa=Ja.dtype):(Ja=br.getBuffer(Yr),Ja?sa=Ja.dtype:"constant"in Yr?(un=2,typeof Yr.constant=="number"?($n=Yr.constant,Ka=qn=Eo=0):($n=Yr.constant.length>0?Yr.constant[0]:0,Ka=Yr.constant.length>1?Yr.constant[1]:0,qn=Yr.constant.length>2?Yr.constant[2]:0,Eo=Yr.constant.length>3?Yr.constant[3]:0)):(ge(Yr.buffer)?Ja=br.createStream(34962,Yr.buffer):Ja=br.getBuffer(Yr.buffer),sa="type"in Yr?Ei[Yr.type]:Ja.dtype,eo=!!Yr.normalized,lo=Yr.size|0,es=Yr.offset|0,Na=Yr.stride|0,tn=Yr.divisor|0)),Pa=_.location,to=Ie[Pa],un===1?(to.buffer||Ue.enableVertexAttribArray(Pa),yo=lo||2,(to.type!==sa||to.size!==yo||to.buffer!==Ja||to.normalized!==eo||to.offset!==es||to.stride!==Na)&&(Ue.bindBuffer(34962,Ja.buffer),Ue.vertexAttribPointer(Pa,yo,sa,eo,Na,es),to.type=sa,to.size=yo,to.buffer=Ja,to.normalized=eo,to.offset=es,to.stride=Na),to.divisor!==tn&&(aa.vertexAttribDivisorANGLE(Pa,tn),to.divisor=tn)):(to.buffer&&(Ue.disableVertexAttribArray(Pa),to.buffer=null),(to.x!==$n||to.y!==Ka||to.z!==qn||to.w!==Eo)&&(Ue.vertexAttrib4f(Pa,$n,Ka,qn,Eo),to.x=$n,to.y=Ka,to.z=qn,to.w=Eo)),Jo=Bi.capSize,Ue.uniform1f(C.location,Jo),Ao=Bi.lineWidth,Ue.uniform1f(M.location,Ao),Dn=Bi.opacity,Ue.uniform1f(m.location,Dn),_a=Bi.scale,Ws=_a[0],Ca=_a[1],Ue.uniform2f(P.location,Ws,Ca),Es=Bi.scaleFract,Ts=Es[0],Ho=Es[1],Ue.uniform2f(A.location,Ts,Ho),Wa=Bi.translate,To=Wa[0],ts=Wa[1],Ue.uniform2f(B.location,To,ts),Wo=Bi.translateFract,qa=Wo[0],ln=Wo[1],Ue.uniform2f(F.location,qa,ln),Bo=G.call(this,rt,Bi,0),ko=Bo[0],oo=Bo[1],za=Bo[2],ea=Bo[3],Ue.uniform4f(U.location,ko,oo,za,ea),rs=hr.elements,rs?Ue.bindBuffer(34963,rs.buffer.buffer):xe.currentVAO&&(rs=yr.getElements(xe.currentVAO.elements),rs&&Ue.bindBuffer(34963,rs.buffer.buffer)),$s=hr.offset,us=Bi.count,us>0?rs?aa.drawElementsInstancedANGLE(4,36,rs.type,$s<<(rs.type-5121>>1),us):aa.drawArraysInstancedANGLE(4,$s,36,us):us<0&&(rs?Ue.drawElements(4,36,rs.type,$s<<(rs.type-5121>>1)):Ue.drawArrays(4,$s,36)),Yt.dirty=!0,xe.setVAO(null),rt.viewportWidth=ft,rt.viewportHeight=tr,ni&&(r.cpuTime+=performance.now()-Zi),ma&&br.destroyStream(Yo),Co&&br.destroyStream(Sn),ps&&br.destroyStream(Ys),Xn&&br.destroyStream(Ja)},scope:function(Bi,an,rn){var Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml;Fi=Bi.viewport,Ri=Fi.x|0,xn=Fi.y|0,xi="width"in Fi?Fi.width|0:rt.framebufferWidth-Ri,Xr="height"in Fi?Fi.height|0:rt.framebufferHeight-xn,ft=rt.viewportWidth,rt.viewportWidth=xi,tr=rt.viewportHeight,rt.viewportHeight=Xr,pr=_r[0],_r[0]=Ri,gr=_r[1],_r[1]=xn,Zr=_r[2],_r[2]=xi,Ai=_r[3],_r[3]=Xr,Qi=fe[0],fe[0]=j,ni=fe[1],fe[1]=H,Zi=fe[2],fe[2]=N,aa=fe[3],fe[3]=W,Mn=zt.blend_enable,zt.blend_enable=re,Un=dt[0],dt[0]=ae,Ga=dt[1],dt[1]=be,ma=Pt[0],Pt[0]=Pe,oa=Pt[1],Pt[1]=Ce,ka=Pt[2],Pt[2]=de,so=Pt[3],Pt[3]=te,Kr=zt.depth_enable,zt.depth_enable=ke,Ia=Bi.viewport,Yo=Ia.x|0,fa=Ia.y|0,kn="width"in Ia?Ia.width|0:rt.framebufferWidth-Yo,Ta="height"in Ia?Ia.height|0:rt.framebufferHeight-fa,ys=Vt[0],Vt[0]=Yo,uo=Vt[1],Vt[1]=fa,ls=Vt[2],Vt[2]=kn,$a=Vt[3],Vt[3]=Ta,fo=zt.scissor_enable,zt.scissor_enable=Ee,mn=Yt.profile,mn&&(ra=performance.now(),r.count++),wa=hr.count,hr.count=Me,ws=Bi.count,Co=hr.instances,hr.instances=ws,Po=hr.primitive,hr.primitive=Ne,ji=Bi.range,gn=Oe[Fe],Oe[Fe]=ji,Ps=Bi.lineWidth,Ha=Oe[ye],Oe[ye]=Ps,Sn=Bi.capSize,ao=Oe[Ve],Oe[Ve]=Sn,Ba=Bi.opacity,Ko=Oe[ce],Oe[ce]=Ba,Qo=Bi.scale,Wi=Oe[Ye],Oe[Ye]=Qo,Sa=Bi.translate,Qa=Oe[nt],Oe[nt]=Sa,vn=Bi.scaleFract,da=Oe[gt],Oe[gt]=vn,la=Bi.translateFract,vo=Oe[Nt],Oe[Nt]=la,As=G.call(this,rt,Bi,rn),ps=Oe[it],Oe[it]=As,co=Ke.state,Ke.state=1,mo=Ke.x,Ke.x=0,No=Ke.y,Ke.y=0,jn=Ke.z,Ke.z=0,Go=Ke.w,Ke.w=0,Ys=Ke.buffer,Ke.buffer=c,qs=Ke.size,Ke.size=0,Ns=Ke.normalized,Ke.normalized=!1,Oa=Ke.type,Ke.type=5126,ha=Ke.offset,Ke.offset=0,Vs=Ke.stride,Ke.stride=24,Ya=Ke.divisor,Ke.divisor=0,_n=kt.state,kt.state=1,Vn=kt.x,kt.x=0,wo=kt.y,kt.y=0,Ra=kt.z,kt.z=0,Xn=kt.w,kt.w=0,un=kt.buffer,kt.buffer=c,$n=kt.size,kt.size=0,Ka=kt.normalized,kt.normalized=!1,qn=kt.type,kt.type=5126,Eo=kt.offset,kt.offset=8,Ja=kt.stride,kt.stride=24,lo=kt.divisor,kt.divisor=0,eo=Tt.state,Tt.state=1,sa=Tt.x,Tt.x=0,es=Tt.y,Tt.y=0,Na=Tt.z,Tt.z=0,tn=Tt.w,Tt.w=0,Pa=Tt.buffer,Tt.buffer=c,to=Tt.size,Tt.size=0,yo=Tt.normalized,Tt.normalized=!1,Jo=Tt.type,Tt.type=5126,Ao=Tt.offset,Tt.offset=16,Dn=Tt.stride,Tt.stride=24,_a=Tt.divisor,Tt.divisor=0,Ws=d.call(this,rt,Bi,rn),ti.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,ge(ti)?(Ca=!0,ts=br.createStream(34962,ti),ln=ts.dtype):(ts=br.getBuffer(ti),ts?ln=ts.dtype:"constant"in ti?(Es=2,typeof ti.constant=="number"?(Ts=ti.constant,Ho=Wa=To=0):(Ts=ti.constant.length>0?ti.constant[0]:0,Ho=ti.constant.length>1?ti.constant[1]:0,Wa=ti.constant.length>2?ti.constant[2]:0,To=ti.constant.length>3?ti.constant[3]:0)):(ge(ti.buffer)?ts=br.createStream(34962,ti.buffer):ts=br.getBuffer(ti.buffer),ln="type"in ti?Ei[ti.type]:ts.dtype,qa=!!ti.normalized,Wo=ti.size|0,Bo=ti.offset|0,ko=ti.stride|0,oo=ti.divisor|0)),za=St.state,St.state=Es,ea=St.x,St.x=Ts,rs=St.y,St.y=Ho,$s=St.z,St.z=Wa,us=St.w,St.w=To,Ds=St.buffer,St.buffer=ts,fl=St.size,St.size=Wo,as=St.normalized,St.normalized=qa,Ma=St.type,St.type=ln,Qs=St.offset,St.offset=Bo,ho=St.stride,St.stride=ko,gs=St.divisor,St.divisor=oo,Vo=E.call(this,rt,Bi,rn),en.offset=Vo,Do=!1,Lo=1,xs=0,ks=0,Ea=0,Jn=0,Oo=null,rl=0,Gs=!1,bs=5126,zs=0,$o=0,Aa=0,ge(en)?(Do=!0,Oo=br.createStream(34962,en),bs=Oo.dtype):(Oo=br.getBuffer(en),Oo?bs=Oo.dtype:"constant"in en?(Lo=2,typeof en.constant=="number"?(xs=en.constant,ks=Ea=Jn=0):(xs=en.constant.length>0?en.constant[0]:0,ks=en.constant.length>1?en.constant[1]:0,Ea=en.constant.length>2?en.constant[2]:0,Jn=en.constant.length>3?en.constant[3]:0)):(ge(en.buffer)?Oo=br.createStream(34962,en.buffer):Oo=br.getBuffer(en.buffer),bs="type"in en?Ei[en.type]:Oo.dtype,Gs=!!en.normalized,rl=en.size|0,zs=en.offset|0,$o=en.stride|0,Aa=en.divisor|0)),os=Dt.state,Dt.state=Lo,_l=Dt.x,Dt.x=xs,Ss=Dt.y,Dt.y=ks,po=Dt.z,Dt.z=Ea,go=Dt.w,Dt.w=Jn,ss=Dt.buffer,Dt.buffer=Oo,qo=Dt.size,Dt.size=rl,zo=Dt.normalized,Dt.normalized=Gs,io=Dt.type,Dt.type=bs,Io=Dt.offset,Dt.offset=zs,Da=Dt.stride,Dt.stride=$o,vs=Dt.divisor,Dt.divisor=Aa,fs=L.call(this,rt,Bi,rn),Yr.offset=fs,cl=!1,el=1,Hs=0,Ro=0,tl=0,Fs=0,hl=null,Fa=0,Ms=!1,jo=5126,Rs=0,Is=0,Bs=0,ge(Yr)?(cl=!0,hl=br.createStream(34962,Yr),jo=hl.dtype):(hl=br.getBuffer(Yr),hl?jo=hl.dtype:"constant"in Yr?(el=2,typeof Yr.constant=="number"?(Hs=Yr.constant,Ro=tl=Fs=0):(Hs=Yr.constant.length>0?Yr.constant[0]:0,Ro=Yr.constant.length>1?Yr.constant[1]:0,tl=Yr.constant.length>2?Yr.constant[2]:0,Fs=Yr.constant.length>3?Yr.constant[3]:0)):(ge(Yr.buffer)?hl=br.createStream(34962,Yr.buffer):hl=br.getBuffer(Yr.buffer),jo="type"in Yr?Ei[Yr.type]:hl.dtype,Ms=!!Yr.normalized,Fa=Yr.size|0,Rs=Yr.offset|0,Is=Yr.stride|0,Bs=Yr.divisor|0)),At=Zt.state,Zt.state=el,Gt=Zt.x,Zt.x=Hs,wr=Zt.y,Zt.y=Ro,mr=Zt.z,Zt.z=tl,Or=Zt.w,Zt.w=Fs,gi=Zt.buffer,Zt.buffer=hl,Ti=Zt.size,Zt.size=Fa,ki=Zt.normalized,Zt.normalized=Ms,Ji=Zt.type,Zt.type=jo,Fn=Zt.offset,Zt.offset=Rs,Pi=Zt.stride,Zt.stride=Is,hi=Zt.divisor,Zt.divisor=Bs,Li=b.call(this,rt,Bi,rn),oi.offset=Li,Si=!1,Gn=1,ta=0,ya=0,ia=0,pa=0,va=null,zn=0,is=!1,Cs=5126,Ks=0,dl=0,xl=0,ge(oi)?(Si=!0,va=br.createStream(34962,oi),Cs=va.dtype):(va=br.getBuffer(oi),va?Cs=va.dtype:"constant"in oi?(Gn=2,typeof oi.constant=="number"?(ta=oi.constant,ya=ia=pa=0):(ta=oi.constant.length>0?oi.constant[0]:0,ya=oi.constant.length>1?oi.constant[1]:0,ia=oi.constant.length>2?oi.constant[2]:0,pa=oi.constant.length>3?oi.constant[3]:0)):(ge(oi.buffer)?va=br.createStream(34962,oi.buffer):va=br.getBuffer(oi.buffer),Cs="type"in oi?Ei[oi.type]:va.dtype,is=!!oi.normalized,zn=oi.size|0,Ks=oi.offset|0,dl=oi.stride|0,xl=oi.divisor|0)),Ol=Et.state,Et.state=Gn,bl=Et.x,Et.x=ta,eu=Et.y,Et.y=ya,Zl=Et.z,Et.z=ia,Vl=Et.w,Et.w=pa,ja=Et.buffer,Et.buffer=va,ns=Et.size,Et.size=zn,Js=Et.normalized,Et.normalized=is,cs=Et.type,Et.type=Cs,sl=Et.offset,Et.offset=Ks,ll=Et.stride,Et.stride=dl,il=Et.divisor,Et.divisor=xl,zl=Ut.vert,Ut.vert=Ae,Ml=Ut.frag,Ut.frag=at,Yt.dirty=!0,an(rt,Bi,rn),rt.viewportWidth=ft,rt.viewportHeight=tr,_r[0]=pr,_r[1]=gr,_r[2]=Zr,_r[3]=Ai,fe[0]=Qi,fe[1]=ni,fe[2]=Zi,fe[3]=aa,zt.blend_enable=Mn,dt[0]=Un,dt[1]=Ga,Pt[0]=ma,Pt[1]=oa,Pt[2]=ka,Pt[3]=so,zt.depth_enable=Kr,Vt[0]=ys,Vt[1]=uo,Vt[2]=ls,Vt[3]=$a,zt.scissor_enable=fo,mn&&(r.cpuTime+=performance.now()-ra),hr.count=wa,hr.instances=Co,hr.primitive=Po,Oe[Fe]=gn,Oe[ye]=Ha,Oe[Ve]=ao,Oe[ce]=Ko,Oe[Ye]=Wi,Oe[nt]=Qa,Oe[gt]=da,Oe[Nt]=vo,Oe[it]=ps,Ke.state=co,Ke.x=mo,Ke.y=No,Ke.z=jn,Ke.w=Go,Ke.buffer=Ys,Ke.size=qs,Ke.normalized=Ns,Ke.type=Oa,Ke.offset=ha,Ke.stride=Vs,Ke.divisor=Ya,kt.state=_n,kt.x=Vn,kt.y=wo,kt.z=Ra,kt.w=Xn,kt.buffer=un,kt.size=$n,kt.normalized=Ka,kt.type=qn,kt.offset=Eo,kt.stride=Ja,kt.divisor=lo,Tt.state=eo,Tt.x=sa,Tt.y=es,Tt.z=Na,Tt.w=tn,Tt.buffer=Pa,Tt.size=to,Tt.normalized=yo,Tt.type=Jo,Tt.offset=Ao,Tt.stride=Dn,Tt.divisor=_a,Ca&&br.destroyStream(ts),St.state=za,St.x=ea,St.y=rs,St.z=$s,St.w=us,St.buffer=Ds,St.size=fl,St.normalized=as,St.type=Ma,St.offset=Qs,St.stride=ho,St.divisor=gs,Do&&br.destroyStream(Oo),Dt.state=os,Dt.x=_l,Dt.y=Ss,Dt.z=po,Dt.w=go,Dt.buffer=ss,Dt.size=qo,Dt.normalized=zo,Dt.type=io,Dt.offset=Io,Dt.stride=Da,Dt.divisor=vs,cl&&br.destroyStream(hl),Zt.state=At,Zt.x=Gt,Zt.y=wr,Zt.z=mr,Zt.w=Or,Zt.buffer=gi,Zt.size=Ti,Zt.normalized=ki,Zt.type=Ji,Zt.offset=Fn,Zt.stride=Pi,Zt.divisor=hi,Si&&br.destroyStream(va),Et.state=Ol,Et.x=bl,Et.y=eu,Et.z=Zl,Et.w=Vl,Et.buffer=ja,Et.size=ns,Et.normalized=Js,Et.type=cs,Et.offset=sl,Et.stride=ll,Et.divisor=il,Ut.vert=zl,Ut.frag=Ml,Yt.dirty=!0},batch:function(Bi,an){var rn,Fi,Ri,xn,xi,Xr,ft;if(rn=De.angle_instanced_arrays,Fi=Re.next,Fi!==Re.cur&&(Fi?Ue.bindFramebuffer(36160,Fi.framebuffer):Ue.bindFramebuffer(36160,null),Re.cur=Fi),Yt.dirty){var tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po;tr=zt.dither,tr!==Yt.dither&&(tr?Ue.enable(3024):Ue.disable(3024),Yt.dither=tr),pr=zt.depth_func,pr!==Yt.depth_func&&(Ue.depthFunc(pr),Yt.depth_func=pr),gr=Hr[0],Zr=Hr[1],(gr!==Dr[0]||Zr!==Dr[1])&&(Ue.depthRange(gr,Zr),Dr[0]=gr,Dr[1]=Zr),Ai=zt.depth_mask,Ai!==Yt.depth_mask&&(Ue.depthMask(Ai),Yt.depth_mask=Ai),Qi=Mr[0],ni=Mr[1],Zi=Mr[2],aa=Mr[3],(Qi!==Fr[0]||ni!==Fr[1]||Zi!==Fr[2]||aa!==Fr[3])&&(Ue.colorMask(Qi,ni,Zi,aa),Fr[0]=Qi,Fr[1]=ni,Fr[2]=Zi,Fr[3]=aa),Mn=zt.cull_enable,Mn!==Yt.cull_enable&&(Mn?Ue.enable(2884):Ue.disable(2884),Yt.cull_enable=Mn),Un=zt.cull_face,Un!==Yt.cull_face&&(Ue.cullFace(Un),Yt.cull_face=Un),Ga=zt.frontFace,Ga!==Yt.frontFace&&(Ue.frontFace(Ga),Yt.frontFace=Ga),ma=zt.lineWidth,ma!==Yt.lineWidth&&(Ue.lineWidth(ma),Yt.lineWidth=ma),oa=zt.polygonOffset_enable,oa!==Yt.polygonOffset_enable&&(oa?Ue.enable(32823):Ue.disable(32823),Yt.polygonOffset_enable=oa),ka=di[0],so=di[1],(ka!==Di[0]||so!==Di[1])&&(Ue.polygonOffset(ka,so),Di[0]=ka,Di[1]=so),Kr=zt.sample_alpha,Kr!==Yt.sample_alpha&&(Kr?Ue.enable(32926):Ue.disable(32926),Yt.sample_alpha=Kr),Ia=zt.sample_enable,Ia!==Yt.sample_enable&&(Ia?Ue.enable(32928):Ue.disable(32928),Yt.sample_enable=Ia),Yo=Ii[0],fa=Ii[1],(Yo!==Ci[0]||fa!==Ci[1])&&(Ue.sampleCoverage(Yo,fa),Ci[0]=Yo,Ci[1]=fa),kn=zt.stencil_enable,kn!==Yt.stencil_enable&&(kn?Ue.enable(2960):Ue.disable(2960),Yt.stencil_enable=kn),Ta=zt.stencil_mask,Ta!==Yt.stencil_mask&&(Ue.stencilMask(Ta),Yt.stencil_mask=Ta),ys=nn[0],uo=nn[1],ls=nn[2],(ys!==ii[0]||uo!==ii[1]||ls!==ii[2])&&(Ue.stencilFunc(ys,uo,ls),ii[0]=ys,ii[1]=uo,ii[2]=ls),$a=wi[0],fo=wi[1],mn=wi[2],ra=wi[3],($a!==Gi[0]||fo!==Gi[1]||mn!==Gi[2]||ra!==Gi[3])&&(Ue.stencilOpSeparate($a,fo,mn,ra),Gi[0]=$a,Gi[1]=fo,Gi[2]=mn,Gi[3]=ra),wa=Bt[0],ws=Bt[1],Co=Bt[2],Po=Bt[3],(wa!==yt[0]||ws!==yt[1]||Co!==yt[2]||Po!==yt[3])&&(Ue.stencilOpSeparate(wa,ws,Co,Po),yt[0]=wa,yt[1]=ws,yt[2]=Co,yt[3]=Po)}Ue.blendColor(0,0,0,0),pe[0]=0,pe[1]=0,pe[2]=0,pe[3]=0,wt?Ue.enable(3042):Ue.disable(3042),Yt.blend_enable=wt,Ue.blendEquationSeparate(32774,32774),It[0]=32774,It[1]=32774,Ue.blendFuncSeparate(770,771,773,1),rr[0]=770,rr[1]=771,rr[2]=773,rr[3]=1,vt?Ue.enable(2929):Ue.disable(2929),Yt.depth_enable=vt,st?Ue.enable(3089):Ue.disable(3089),Yt.scissor_enable=st,Ri=Yt.profile,Ri&&(xn=performance.now(),r.count+=an),Ue.useProgram(f.program),xi=De.angle_instanced_arrays;var ji,gn,Ps,Ha,Sn,ao,Ba,Ko;for(xe.setVAO(null),ji=h.location,gn=Ie[ji],gn.buffer||Ue.enableVertexAttribArray(ji),(gn.type!==5126||gn.size!==2||gn.buffer!==c||gn.normalized!==!1||gn.offset!==16||gn.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(ji,2,5126,!1,24,16),gn.type=5126,gn.size=2,gn.buffer=c,gn.normalized=!1,gn.offset=16,gn.stride=24),gn.divisor!==0&&(xi.vertexAttribDivisorANGLE(ji,0),gn.divisor=0),Ps=x.location,Ha=Ie[Ps],Ha.buffer||Ue.enableVertexAttribArray(Ps),(Ha.type!==5126||Ha.size!==2||Ha.buffer!==c||Ha.normalized!==!1||Ha.offset!==0||Ha.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(Ps,2,5126,!1,24,0),Ha.type=5126,Ha.size=2,Ha.buffer=c,Ha.normalized=!1,Ha.offset=0,Ha.stride=24),Ha.divisor!==0&&(xi.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=k.location,ao=Ie[Sn],ao.buffer||Ue.enableVertexAttribArray(Sn),(ao.type!==5126||ao.size!==2||ao.buffer!==c||ao.normalized!==!1||ao.offset!==8||ao.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(Sn,2,5126,!1,24,8),ao.type=5126,ao.size=2,ao.buffer=c,ao.normalized=!1,ao.offset=8,ao.stride=24),ao.divisor!==0&&(xi.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Ba=hr.elements,Ba?Ue.bindBuffer(34963,Ba.buffer.buffer):xe.currentVAO&&(Ba=yr.getElements(xe.currentVAO.elements),Ba&&Ue.bindBuffer(34963,Ba.buffer.buffer)),Ko=hr.offset,Xr=0;Xr0?ti.constant[0]:0,qs=ti.constant.length>1?ti.constant[1]:0,Ns=ti.constant.length>2?ti.constant[2]:0,Oa=ti.constant.length>3?ti.constant[3]:0)):(ge(ti.buffer)?ha=br.createStream(34962,ti.buffer):ha=br.getBuffer(ti.buffer),_n="type"in ti?Ei[ti.type]:ha.dtype,Ya=!!ti.normalized,Vs=ti.size|0,Vn=ti.offset|0,wo=ti.stride|0,Ra=ti.divisor|0)),Xn=p.location,un=Ie[Xn],Go===1?(un.buffer||Ue.enableVertexAttribArray(Xn),$n=Vs||4,(un.type!==_n||un.size!==$n||un.buffer!==ha||un.normalized!==Ya||un.offset!==Vn||un.stride!==wo)&&(Ue.bindBuffer(34962,ha.buffer),Ue.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),un.type=_n,un.size=$n,un.buffer=ha,un.normalized=Ya,un.offset=Vn,un.stride=wo),un.divisor!==Ra&&(xi.vertexAttribDivisorANGLE(Xn,Ra),un.divisor=Ra)):(un.buffer&&(Ue.disableVertexAttribArray(Xn),un.buffer=null),(un.x!==Ys||un.y!==qs||un.z!==Ns||un.w!==Oa)&&(Ue.vertexAttrib4f(Xn,Ys,qs,Ns,Oa),un.x=Ys,un.y=qs,un.z=Ns,un.w=Oa)),Ka=b.call(this,rt,ft,Xr),oi.offset=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,tn=!1,Pa=5126,to=0,yo=0,Jo=0,ge(oi)?(qn=!0,es=br.createStream(34962,oi),Pa=es.dtype):(es=br.getBuffer(oi),es?Pa=es.dtype:"constant"in oi?(Eo=2,typeof oi.constant=="number"?(Ja=oi.constant,lo=eo=sa=0):(Ja=oi.constant.length>0?oi.constant[0]:0,lo=oi.constant.length>1?oi.constant[1]:0,eo=oi.constant.length>2?oi.constant[2]:0,sa=oi.constant.length>3?oi.constant[3]:0)):(ge(oi.buffer)?es=br.createStream(34962,oi.buffer):es=br.getBuffer(oi.buffer),Pa="type"in oi?Ei[oi.type]:es.dtype,tn=!!oi.normalized,Na=oi.size|0,to=oi.offset|0,yo=oi.stride|0,Jo=oi.divisor|0)),Ao=v.location,Dn=Ie[Ao],Eo===1?(Dn.buffer||Ue.enableVertexAttribArray(Ao),_a=Na||4,(Dn.type!==Pa||Dn.size!==_a||Dn.buffer!==es||Dn.normalized!==tn||Dn.offset!==to||Dn.stride!==yo)&&(Ue.bindBuffer(34962,es.buffer),Ue.vertexAttribPointer(Ao,_a,Pa,tn,yo,to),Dn.type=Pa,Dn.size=_a,Dn.buffer=es,Dn.normalized=tn,Dn.offset=to,Dn.stride=yo),Dn.divisor!==Jo&&(xi.vertexAttribDivisorANGLE(Ao,Jo),Dn.divisor=Jo)):(Dn.buffer&&(Ue.disableVertexAttribArray(Ao),Dn.buffer=null),(Dn.x!==Ja||Dn.y!==lo||Dn.z!==eo||Dn.w!==sa)&&(Ue.vertexAttrib4f(Ao,Ja,lo,eo,sa),Dn.x=Ja,Dn.y=lo,Dn.z=eo,Dn.w=sa)),Ws=E.call(this,rt,ft,Xr),en.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,ge(en)?(Ca=!0,ts=br.createStream(34962,en),ln=ts.dtype):(ts=br.getBuffer(en),ts?ln=ts.dtype:"constant"in en?(Es=2,typeof en.constant=="number"?(Ts=en.constant,Ho=Wa=To=0):(Ts=en.constant.length>0?en.constant[0]:0,Ho=en.constant.length>1?en.constant[1]:0,Wa=en.constant.length>2?en.constant[2]:0,To=en.constant.length>3?en.constant[3]:0)):(ge(en.buffer)?ts=br.createStream(34962,en.buffer):ts=br.getBuffer(en.buffer),ln="type"in en?Ei[en.type]:ts.dtype,qa=!!en.normalized,Wo=en.size|0,Bo=en.offset|0,ko=en.stride|0,oo=en.divisor|0)),za=T.location,ea=Ie[za],Es===1?(ea.buffer||Ue.enableVertexAttribArray(za),rs=Wo||2,(ea.type!==ln||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Bo||ea.stride!==ko)&&(Ue.bindBuffer(34962,ts.buffer),Ue.vertexAttribPointer(za,rs,ln,qa,ko,Bo),ea.type=ln,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Bo,ea.stride=ko),ea.divisor!==oo&&(xi.vertexAttribDivisorANGLE(za,oo),ea.divisor=oo)):(ea.buffer&&(Ue.disableVertexAttribArray(za),ea.buffer=null),(ea.x!==Ts||ea.y!==Ho||ea.z!==Wa||ea.w!==To)&&(Ue.vertexAttrib4f(za,Ts,Ho,Wa,To),ea.x=Ts,ea.y=Ho,ea.z=Wa,ea.w=To)),$s=L.call(this,rt,ft,Xr),Yr.offset=$s,us=!1,Ds=1,fl=0,as=0,Ma=0,Qs=0,ho=null,gs=0,Vo=!1,Do=5126,Lo=0,xs=0,ks=0,ge(Yr)?(us=!0,ho=br.createStream(34962,Yr),Do=ho.dtype):(ho=br.getBuffer(Yr),ho?Do=ho.dtype:"constant"in Yr?(Ds=2,typeof Yr.constant=="number"?(fl=Yr.constant,as=Ma=Qs=0):(fl=Yr.constant.length>0?Yr.constant[0]:0,as=Yr.constant.length>1?Yr.constant[1]:0,Ma=Yr.constant.length>2?Yr.constant[2]:0,Qs=Yr.constant.length>3?Yr.constant[3]:0)):(ge(Yr.buffer)?ho=br.createStream(34962,Yr.buffer):ho=br.getBuffer(Yr.buffer),Do="type"in Yr?Ei[Yr.type]:ho.dtype,Vo=!!Yr.normalized,gs=Yr.size|0,Lo=Yr.offset|0,xs=Yr.stride|0,ks=Yr.divisor|0)),Ea=_.location,Jn=Ie[Ea],Ds===1?(Jn.buffer||Ue.enableVertexAttribArray(Ea),Oo=gs||2,(Jn.type!==Do||Jn.size!==Oo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&(Ue.bindBuffer(34962,ho.buffer),Ue.vertexAttribPointer(Ea,Oo,Do,Vo,xs,Lo),Jn.type=Do,Jn.size=Oo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&(xi.vertexAttribDivisorANGLE(Ea,ks),Jn.divisor=ks)):(Jn.buffer&&(Ue.disableVertexAttribArray(Ea),Jn.buffer=null),(Jn.x!==fl||Jn.y!==as||Jn.z!==Ma||Jn.w!==Qs)&&(Ue.vertexAttrib4f(Ea,fl,as,Ma,Qs),Jn.x=fl,Jn.y=as,Jn.z=Ma,Jn.w=Qs)),rl=ft.capSize,(!Xr||Gs!==rl)&&(Gs=rl,Ue.uniform1f(C.location,rl)),bs=ft.lineWidth,(!Xr||zs!==bs)&&(zs=bs,Ue.uniform1f(M.location,bs)),$o=ft.opacity,(!Xr||Aa!==$o)&&(Aa=$o,Ue.uniform1f(m.location,$o)),os=ft.scale,_l=os[0],po=os[1],(!Xr||Ss!==_l||go!==po)&&(Ss=_l,go=po,Ue.uniform2f(P.location,_l,po)),ss=ft.scaleFract,qo=ss[0],io=ss[1],(!Xr||zo!==qo||Io!==io)&&(zo=qo,Io=io,Ue.uniform2f(A.location,qo,io)),Da=ft.translate,vs=Da[0],cl=Da[1],(!Xr||fs!==vs||el!==cl)&&(fs=vs,el=cl,Ue.uniform2f(B.location,vs,cl)),Hs=ft.translateFract,Ro=Hs[0],Fs=Hs[1],(!Xr||tl!==Ro||hl!==Fs)&&(tl=Ro,hl=Fs,Ue.uniform2f(F.location,Ro,Fs)),Fa=G.call(this,rt,ft,Xr),Ms=Fa[0],Rs=Fa[1],Bs=Fa[2],Gt=Fa[3],(!Xr||jo!==Ms||Is!==Rs||At!==Bs||wr!==Gt)&&(jo=Ms,Is=Rs,At=Bs,wr=Gt,Ue.uniform4f(U.location,Ms,Rs,Bs,Gt)),mr=ft.count,mr>0?Ba?xi.drawElementsInstancedANGLE(4,36,Ba.type,Ko<<(Ba.type-5121>>1),mr):xi.drawArraysInstancedANGLE(4,Ko,36,mr):mr<0&&(Ba?Ue.drawElements(4,36,Ba.type,Ko<<(Ba.type-5121>>1)):Ue.drawArrays(4,Ko,36)),rt.viewportWidth=da,rt.viewportHeight=la,jn&&br.destroyStream(ha),qn&&br.destroyStream(es),Ca&&br.destroyStream(ts),us&&br.destroyStream(ho)}Yt.dirty=!0,xe.setVAO(null),Ri&&(r.cpuTime+=performance.now()-xn)}}}});var I8=Te((K_r,NNe)=>{NNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt,Nt,it,Ke,kt,Tt,St,Dt,Zt,Et){"use strict";var Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr;return Ae=t.gl,at=t.context,wt=t.strings,vt=t.next,st=t.current,Ue=t.draw,rt=t.elements,$e=t.buffer,zt=t.shader,Yt=t.attributes,hr=t.vao,yr=t.uniforms,br=t.framebuffer,Ut=t.extensions,Ie=t.timer,xe=t.isBufferArgs,Oe=vt.blend_color,Re=st.blend_color,De=vt.blend_equation,ct=st.blend_equation,ge=vt.blend_func,fe=st.blend_func,pe=vt.depth_range,dt=st.depth_range,It=vt.colorMask,Pt=st.colorMask,rr=vt.polygonOffset_offset,Hr=st.polygonOffset_offset,Dr=vt.sample_coverage,Mr=st.sample_coverage,Fr=vt.stencil_func,di=st.stencil_func,Di=vt.stencil_opFront,Ii=st.stencil_opFront,Ci=vt.stencil_opBack,nn=st.stencil_opBack,ii=vt.scissor_box,wi=st.scissor_box,Gi=vt.viewport,Bt=st.viewport,yt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Vt={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Wt={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},_r={add:32774,subtract:32778,"reverse subtract":32779},Lr={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ur={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ir={cw:2304,ccw:2305},Gr={},Gr.offset=4,Gr.stride=8,jr={},jr.offset=0,jr.stride=8,{draw:function(yi){var Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo;if(Ei=Ut.angle_instanced_arrays,Vi=br.next,Vi!==br.cur&&(Vi?Ae.bindFramebuffer(36160,Vi.framebuffer):Ae.bindFramebuffer(36160,null),br.cur=Vi),st.dirty){var za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs;za=vt.dither,za!==st.dither&&(za?Ae.enable(3024):Ae.disable(3024),st.dither=za),ea=De[0],rs=De[1],(ea!==ct[0]||rs!==ct[1])&&(Ae.blendEquationSeparate(ea,rs),ct[0]=ea,ct[1]=rs),$s=vt.depth_func,$s!==st.depth_func&&(Ae.depthFunc($s),st.depth_func=$s),us=pe[0],Ds=pe[1],(us!==dt[0]||Ds!==dt[1])&&(Ae.depthRange(us,Ds),dt[0]=us,dt[1]=Ds),fl=vt.depth_mask,fl!==st.depth_mask&&(Ae.depthMask(fl),st.depth_mask=fl),as=It[0],Ma=It[1],Qs=It[2],ho=It[3],(as!==Pt[0]||Ma!==Pt[1]||Qs!==Pt[2]||ho!==Pt[3])&&(Ae.colorMask(as,Ma,Qs,ho),Pt[0]=as,Pt[1]=Ma,Pt[2]=Qs,Pt[3]=ho),gs=vt.cull_enable,gs!==st.cull_enable&&(gs?Ae.enable(2884):Ae.disable(2884),st.cull_enable=gs),Vo=vt.cull_face,Vo!==st.cull_face&&(Ae.cullFace(Vo),st.cull_face=Vo),Do=vt.frontFace,Do!==st.frontFace&&(Ae.frontFace(Do),st.frontFace=Do),Lo=vt.lineWidth,Lo!==st.lineWidth&&(Ae.lineWidth(Lo),st.lineWidth=Lo),xs=vt.polygonOffset_enable,xs!==st.polygonOffset_enable&&(xs?Ae.enable(32823):Ae.disable(32823),st.polygonOffset_enable=xs),ks=rr[0],Ea=rr[1],(ks!==Hr[0]||Ea!==Hr[1])&&(Ae.polygonOffset(ks,Ea),Hr[0]=ks,Hr[1]=Ea),Jn=vt.sample_alpha,Jn!==st.sample_alpha&&(Jn?Ae.enable(32926):Ae.disable(32926),st.sample_alpha=Jn),Oo=vt.sample_enable,Oo!==st.sample_enable&&(Oo?Ae.enable(32928):Ae.disable(32928),st.sample_enable=Oo),rl=Dr[0],Gs=Dr[1],(rl!==Mr[0]||Gs!==Mr[1])&&(Ae.sampleCoverage(rl,Gs),Mr[0]=rl,Mr[1]=Gs),bs=vt.stencil_mask,bs!==st.stencil_mask&&(Ae.stencilMask(bs),st.stencil_mask=bs),zs=Fr[0],$o=Fr[1],Aa=Fr[2],(zs!==di[0]||$o!==di[1]||Aa!==di[2])&&(Ae.stencilFunc(zs,$o,Aa),di[0]=zs,di[1]=$o,di[2]=Aa),os=Di[0],_l=Di[1],Ss=Di[2],po=Di[3],(os!==Ii[0]||_l!==Ii[1]||Ss!==Ii[2]||po!==Ii[3])&&(Ae.stencilOpSeparate(os,_l,Ss,po),Ii[0]=os,Ii[1]=_l,Ii[2]=Ss,Ii[3]=po),go=Ci[0],ss=Ci[1],qo=Ci[2],zo=Ci[3],(go!==nn[0]||ss!==nn[1]||qo!==nn[2]||zo!==nn[3])&&(Ae.stencilOpSeparate(go,ss,qo,zo),nn[0]=go,nn[1]=ss,nn[2]=qo,nn[3]=zo),io=vt.scissor_enable,io!==st.scissor_enable&&(io?Ae.enable(3089):Ae.disable(3089),st.scissor_enable=io),Io=ii[0],Da=ii[1],vs=ii[2],fs=ii[3],(Io!==wi[0]||Da!==wi[1]||vs!==wi[2]||fs!==wi[3])&&(Ae.scissor(Io,Da,vs,fs),wi[0]=Io,wi[1]=Da,wi[2]=vs,wi[3]=fs)}ti=this.viewport,en=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:at.framebufferWidth-en,Bi="height"in ti?ti.height|0:at.framebufferHeight-Yr,an=at.viewportWidth,at.viewportWidth=oi,rn=at.viewportHeight,at.viewportHeight=Bi,Ae.viewport(en,Yr,oi,Bi),Bt[0]=en,Bt[1]=Yr,Bt[2]=oi,Bt[3]=Bi,Ae.blendColor(0,0,0,1),Re[0]=0,Re[1]=0,Re[2]=0,Re[3]=1,n?Ae.enable(3042):Ae.disable(3042),st.blend_enable=n,Ae.blendFuncSeparate(770,771,773,1),fe[0]=770,fe[1]=771,fe[2]=773,fe[3]=1,i?Ae.enable(2929):Ae.disable(2929),st.depth_enable=i,a?Ae.enable(2960):Ae.disable(2960),st.stencil_enable=a,Fi=st.profile,Fi&&(Ri=performance.now(),r.count++),Ae.useProgram(o.program),xn=Ut.angle_instanced_arrays,hr.setVAO(null),xi=this.charBuffer,Xr=!1,ft=1,tr=0,pr=0,gr=0,Zr=0,Ai=null,Qi=0,ni=!1,Zi=5126,aa=0,Mn=0,Un=0,xe(xi)?(Xr=!0,Ai=$e.createStream(34962,xi),Zi=Ai.dtype):(Ai=$e.getBuffer(xi),Ai?Zi=Ai.dtype:"constant"in xi?(ft=2,typeof xi.constant=="number"?(tr=xi.constant,pr=gr=Zr=0):(tr=xi.constant.length>0?xi.constant[0]:0,pr=xi.constant.length>1?xi.constant[1]:0,gr=xi.constant.length>2?xi.constant[2]:0,Zr=xi.constant.length>3?xi.constant[3]:0)):(xe(xi.buffer)?Ai=$e.createStream(34962,xi.buffer):Ai=$e.getBuffer(xi.buffer),Zi="type"in xi?Ur[xi.type]:Ai.dtype,ni=!!xi.normalized,Qi=xi.size|0,aa=xi.offset|0,Mn=xi.stride|0,Un=xi.divisor|0)),Ga=s.location,ma=Yt[Ga],ft===1?(ma.buffer||Ae.enableVertexAttribArray(Ga),oa=Qi||1,(ma.type!==Zi||ma.size!==oa||ma.buffer!==Ai||ma.normalized!==ni||ma.offset!==aa||ma.stride!==Mn)&&(Ae.bindBuffer(34962,Ai.buffer),Ae.vertexAttribPointer(Ga,oa,Zi,ni,Mn,aa),ma.type=Zi,ma.size=oa,ma.buffer=Ai,ma.normalized=ni,ma.offset=aa,ma.stride=Mn),ma.divisor!==Un&&(xn.vertexAttribDivisorANGLE(Ga,Un),ma.divisor=Un)):(ma.buffer&&(Ae.disableVertexAttribArray(Ga),ma.buffer=null),(ma.x!==tr||ma.y!==pr||ma.z!==gr||ma.w!==Zr)&&(Ae.vertexAttrib4f(Ga,tr,pr,gr,Zr),ma.x=tr,ma.y=pr,ma.z=gr,ma.w=Zr)),ka=this.sizeBuffer,Gr.buffer=ka,so=!1,Kr=1,Ia=0,Yo=0,fa=0,kn=0,Ta=null,ys=0,uo=!1,ls=5126,$a=0,fo=0,mn=0,xe(Gr)?(so=!0,Ta=$e.createStream(34962,Gr),ls=Ta.dtype):(Ta=$e.getBuffer(Gr),Ta?ls=Ta.dtype:"constant"in Gr?(Kr=2,typeof Gr.constant=="number"?(Ia=Gr.constant,Yo=fa=kn=0):(Ia=Gr.constant.length>0?Gr.constant[0]:0,Yo=Gr.constant.length>1?Gr.constant[1]:0,fa=Gr.constant.length>2?Gr.constant[2]:0,kn=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?Ta=$e.createStream(34962,Gr.buffer):Ta=$e.getBuffer(Gr.buffer),ls="type"in Gr?Ur[Gr.type]:Ta.dtype,uo=!!Gr.normalized,ys=Gr.size|0,$a=Gr.offset|0,fo=Gr.stride|0,mn=Gr.divisor|0)),ra=u.location,wa=Yt[ra],Kr===1?(wa.buffer||Ae.enableVertexAttribArray(ra),ws=ys||1,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(Ae.bindBuffer(34962,Ta.buffer),Ae.vertexAttribPointer(ra,ws,ls,uo,fo,$a),wa.type=ls,wa.size=ws,wa.buffer=Ta,wa.normalized=uo,wa.offset=$a,wa.stride=fo),wa.divisor!==mn&&(xn.vertexAttribDivisorANGLE(ra,mn),wa.divisor=mn)):(wa.buffer&&(Ae.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(Ae.vertexAttrib4f(ra,Ia,Yo,fa,kn),wa.x=Ia,wa.y=Yo,wa.z=fa,wa.w=kn)),Co=this.position,Po=!1,ji=1,gn=0,Ps=0,Ha=0,Sn=0,ao=null,Ba=0,Ko=!1,Qo=5126,Wi=0,Sa=0,Qa=0,xe(Co)?(Po=!0,ao=$e.createStream(34962,Co),Qo=ao.dtype):(ao=$e.getBuffer(Co),ao?Qo=ao.dtype:"constant"in Co?(ji=2,typeof Co.constant=="number"?(gn=Co.constant,Ps=Ha=Sn=0):(gn=Co.constant.length>0?Co.constant[0]:0,Ps=Co.constant.length>1?Co.constant[1]:0,Ha=Co.constant.length>2?Co.constant[2]:0,Sn=Co.constant.length>3?Co.constant[3]:0)):(xe(Co.buffer)?ao=$e.createStream(34962,Co.buffer):ao=$e.getBuffer(Co.buffer),Qo="type"in Co?Ur[Co.type]:ao.dtype,Ko=!!Co.normalized,Ba=Co.size|0,Wi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=l.location,da=Yt[vn],ji===1?(da.buffer||Ae.enableVertexAttribArray(vn),la=Ba||2,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Wi||da.stride!==Sa)&&(Ae.bindBuffer(34962,ao.buffer),Ae.vertexAttribPointer(vn,la,Qo,Ko,Sa,Wi),da.type=Qo,da.size=la,da.buffer=ao,da.normalized=Ko,da.offset=Wi,da.stride=Sa),da.divisor!==Qa&&(xn.vertexAttribDivisorANGLE(vn,Qa),da.divisor=Qa)):(da.buffer&&(Ae.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(Ae.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=this.sizeBuffer,jr.buffer=vo,As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Oa=0,ha=0,Vs=0,xe(jr)?(As=!0,Go=$e.createStream(34962,jr),Ns=Go.dtype):(Go=$e.getBuffer(jr),Go?Ns=Go.dtype:"constant"in jr?(ps=2,typeof jr.constant=="number"?(co=jr.constant,mo=No=jn=0):(co=jr.constant.length>0?jr.constant[0]:0,mo=jr.constant.length>1?jr.constant[1]:0,No=jr.constant.length>2?jr.constant[2]:0,jn=jr.constant.length>3?jr.constant[3]:0)):(xe(jr.buffer)?Go=$e.createStream(34962,jr.buffer):Go=$e.getBuffer(jr.buffer),Ns="type"in jr?Ur[jr.type]:Go.dtype,qs=!!jr.normalized,Ys=jr.size|0,Oa=jr.offset|0,ha=jr.stride|0,Vs=jr.divisor|0)),Ya=f.location,_n=Yt[Ya],ps===1?(_n.buffer||Ae.enableVertexAttribArray(Ya),Vn=Ys||1,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Oa||_n.stride!==ha)&&(Ae.bindBuffer(34962,Go.buffer),Ae.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Oa),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Oa,_n.stride=ha),_n.divisor!==Vs&&(xn.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(Ae.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(Ae.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=yi.align,Ae.uniform1f(c.location,wo),Ra=d.call(this,at,yi,0),Ra&&Ra._reglType==="framebuffer"&&(Ra=Ra.color[0]),Xn=Ra._texture,Ae.uniform1i(h.location,Xn.bind()),un=x.call(this,at,yi,0),$n=un[0],Ka=un[1],Ae.uniform2f(p.location,$n,Ka),qn=v.call(this,at,yi,0),Eo=qn[0],Ja=qn[1],Ae.uniform2f(b.location,Eo,Ja),lo=yi.baseline,Ae.uniform1f(k.location,lo),eo=T.call(this,at,yi,0),Ae.uniform1f(E.location,eo),sa=yi.color,es=sa[0],Na=sa[1],tn=sa[2],Pa=sa[3],Ae.uniform4f(L.location,es,Na,tn,Pa),to=C.call(this,at,yi,0),Ae.uniform1f(_.location,to),yo=yi.opacity,Ae.uniform1f(M.location,yo),Jo=yi.positionOffset,Ao=Jo[0],Dn=Jo[1],Ae.uniform2f(m.location,Ao,Dn),_a=this.scale,Ws=_a[0],Ca=_a[1],Ae.uniform2f(P.location,Ws,Ca),Es=this.translate,Ts=Es[0],Ho=Es[1],Ae.uniform2f(A.location,Ts,Ho),Wa=this.viewportArray,To=Wa[0],ts=Wa[1],Wo=Wa[2],qa=Wa[3],Ae.uniform4f(B.location,To,ts,Wo,qa),ln=Ue.elements,ln?Ae.bindBuffer(34963,ln.buffer.buffer):hr.currentVAO&&(ln=rt.getElements(hr.currentVAO.elements),ln&&Ae.bindBuffer(34963,ln.buffer.buffer)),Bo=yi.offset,ko=yi.count,ko&&(oo=Ue.instances,oo>0?ln?xn.drawElementsInstancedANGLE(0,ko,ln.type,Bo<<(ln.type-5121>>1),oo):xn.drawArraysInstancedANGLE(0,Bo,ko,oo):oo<0&&(ln?Ae.drawElements(0,ko,ln.type,Bo<<(ln.type-5121>>1)):Ae.drawArrays(0,Bo,ko)),st.dirty=!0,hr.setVAO(null),at.viewportWidth=an,at.viewportHeight=rn,Fi&&(r.cpuTime+=performance.now()-Ri),Xr&&$e.destroyStream(Ai),so&&$e.destroyStream(Ta),Po&&$e.destroyStream(ao),As&&$e.destroyStream(Go),Xn.unbind())},scope:function(yi,Ei,Vi){var ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa;ti=this.viewport,en=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:at.framebufferWidth-en,Bi="height"in ti?ti.height|0:at.framebufferHeight-Yr,an=at.viewportWidth,at.viewportWidth=oi,rn=at.viewportHeight,at.viewportHeight=Bi,Fi=Gi[0],Gi[0]=en,Ri=Gi[1],Gi[1]=Yr,xn=Gi[2],Gi[2]=oi,xi=Gi[3],Gi[3]=Bi,Xr=Oe[0],Oe[0]=F,ft=Oe[1],Oe[1]=U,tr=Oe[2],Oe[2]=G,pr=Oe[3],Oe[3]=j,gr=vt.blend_enable,vt.blend_enable=H,Zr=ge[0],ge[0]=N,Ai=ge[1],ge[1]=W,Qi=ge[2],ge[2]=re,ni=ge[3],ge[3]=ae,Zi=vt.depth_enable,vt.depth_enable=be,aa=vt.stencil_enable,vt.stencil_enable=Pe,Mn=st.profile,Mn&&(Un=performance.now(),r.count++),Ga=yi.offset,ma=Ue.offset,Ue.offset=Ga,oa=yi.count,ka=Ue.count,Ue.count=oa,so=Ue.primitive,Ue.primitive=Ce,Kr=v.call(this,at,yi,Vi),Ia=yr[de],yr[de]=Kr,Yo=x.call(this,at,yi,Vi),fa=yr[te],yr[te]=Yo,kn=d.call(this,at,yi,Vi),Ta=yr[ke],yr[ke]=kn,ys=T.call(this,at,yi,Vi),uo=yr[Ee],yr[Ee]=ys,ls=C.call(this,at,yi,Vi),$a=yr[Me],yr[Me]=ls,fo=yi.color,mn=yr[Ne],yr[Ne]=fo,ra=yi.opacity,wa=yr[Fe],yr[Fe]=ra,ws=this.viewportArray,Co=yr[ye],yr[ye]=ws,Po=this.scale,ji=yr[Ve],yr[Ve]=Po,gn=yi.align,Ps=yr[ce],yr[ce]=gn,Ha=yi.baseline,Sn=yr[Ye],yr[Ye]=Ha,ao=this.translate,Ba=yr[nt],yr[nt]=ao,Ko=yi.positionOffset,Qo=yr[gt],yr[gt]=Ko,Wi=this.charBuffer,Sa=!1,Qa=1,vn=0,da=0,la=0,vo=0,As=null,ps=0,co=!1,mo=5126,No=0,jn=0,Go=0,xe(Wi)?(Sa=!0,As=$e.createStream(34962,Wi),mo=As.dtype):(As=$e.getBuffer(Wi),As?mo=As.dtype:"constant"in Wi?(Qa=2,typeof Wi.constant=="number"?(vn=Wi.constant,da=la=vo=0):(vn=Wi.constant.length>0?Wi.constant[0]:0,da=Wi.constant.length>1?Wi.constant[1]:0,la=Wi.constant.length>2?Wi.constant[2]:0,vo=Wi.constant.length>3?Wi.constant[3]:0)):(xe(Wi.buffer)?As=$e.createStream(34962,Wi.buffer):As=$e.getBuffer(Wi.buffer),mo="type"in Wi?Ur[Wi.type]:As.dtype,co=!!Wi.normalized,ps=Wi.size|0,No=Wi.offset|0,jn=Wi.stride|0,Go=Wi.divisor|0)),Ys=Nt.state,Nt.state=Qa,qs=Nt.x,Nt.x=vn,Ns=Nt.y,Nt.y=da,Oa=Nt.z,Nt.z=la,ha=Nt.w,Nt.w=vo,Vs=Nt.buffer,Nt.buffer=As,Ya=Nt.size,Nt.size=ps,_n=Nt.normalized,Nt.normalized=co,Vn=Nt.type,Nt.type=mo,wo=Nt.offset,Nt.offset=No,Ra=Nt.stride,Nt.stride=jn,Xn=Nt.divisor,Nt.divisor=Go,un=this.position,$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,tn=0,Pa=0,to=0,xe(un)?($n=!0,eo=$e.createStream(34962,un),Na=eo.dtype):(eo=$e.getBuffer(un),eo?Na=eo.dtype:"constant"in un?(Ka=2,typeof un.constant=="number"?(qn=un.constant,Eo=Ja=lo=0):(qn=un.constant.length>0?un.constant[0]:0,Eo=un.constant.length>1?un.constant[1]:0,Ja=un.constant.length>2?un.constant[2]:0,lo=un.constant.length>3?un.constant[3]:0)):(xe(un.buffer)?eo=$e.createStream(34962,un.buffer):eo=$e.getBuffer(un.buffer),Na="type"in un?Ur[un.type]:eo.dtype,es=!!un.normalized,sa=un.size|0,tn=un.offset|0,Pa=un.stride|0,to=un.divisor|0)),yo=it.state,it.state=Ka,Jo=it.x,it.x=qn,Ao=it.y,it.y=Eo,Dn=it.z,it.z=Ja,_a=it.w,it.w=lo,Ws=it.buffer,it.buffer=eo,Ca=it.size,it.size=sa,Es=it.normalized,it.normalized=es,Ts=it.type,it.type=Na,Ho=it.offset,it.offset=tn,Wa=it.stride,it.stride=Pa,To=it.divisor,it.divisor=to,ts=this.sizeBuffer,Gr.buffer=ts,Wo=!1,qa=1,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,xe(Gr)?(Wo=!0,za=$e.createStream(34962,Gr),$s=za.dtype):(za=$e.getBuffer(Gr),za?$s=za.dtype:"constant"in Gr?(qa=2,typeof Gr.constant=="number"?(ln=Gr.constant,Bo=ko=oo=0):(ln=Gr.constant.length>0?Gr.constant[0]:0,Bo=Gr.constant.length>1?Gr.constant[1]:0,ko=Gr.constant.length>2?Gr.constant[2]:0,oo=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?za=$e.createStream(34962,Gr.buffer):za=$e.getBuffer(Gr.buffer),$s="type"in Gr?Ur[Gr.type]:za.dtype,rs=!!Gr.normalized,ea=Gr.size|0,us=Gr.offset|0,Ds=Gr.stride|0,fl=Gr.divisor|0)),as=Ke.state,Ke.state=qa,Ma=Ke.x,Ke.x=ln,Qs=Ke.y,Ke.y=Bo,ho=Ke.z,Ke.z=ko,gs=Ke.w,Ke.w=oo,Vo=Ke.buffer,Ke.buffer=za,Do=Ke.size,Ke.size=ea,Lo=Ke.normalized,Ke.normalized=rs,xs=Ke.type,Ke.type=$s,ks=Ke.offset,Ke.offset=us,Ea=Ke.stride,Ke.stride=Ds,Jn=Ke.divisor,Ke.divisor=fl,Oo=this.sizeBuffer,jr.buffer=Oo,rl=!1,Gs=1,bs=0,zs=0,$o=0,Aa=0,os=null,_l=0,Ss=!1,po=5126,go=0,ss=0,qo=0,xe(jr)?(rl=!0,os=$e.createStream(34962,jr),po=os.dtype):(os=$e.getBuffer(jr),os?po=os.dtype:"constant"in jr?(Gs=2,typeof jr.constant=="number"?(bs=jr.constant,zs=$o=Aa=0):(bs=jr.constant.length>0?jr.constant[0]:0,zs=jr.constant.length>1?jr.constant[1]:0,$o=jr.constant.length>2?jr.constant[2]:0,Aa=jr.constant.length>3?jr.constant[3]:0)):(xe(jr.buffer)?os=$e.createStream(34962,jr.buffer):os=$e.getBuffer(jr.buffer),po="type"in jr?Ur[jr.type]:os.dtype,Ss=!!jr.normalized,_l=jr.size|0,go=jr.offset|0,ss=jr.stride|0,qo=jr.divisor|0)),zo=kt.state,kt.state=Gs,io=kt.x,kt.x=bs,Io=kt.y,kt.y=zs,Da=kt.z,kt.z=$o,vs=kt.w,kt.w=Aa,fs=kt.buffer,kt.buffer=os,cl=kt.size,kt.size=_l,el=kt.normalized,kt.normalized=Ss,Hs=kt.type,kt.type=po,Ro=kt.offset,kt.offset=go,tl=kt.stride,kt.stride=ss,Fs=kt.divisor,kt.divisor=qo,hl=zt.vert,zt.vert=Tt,Fa=zt.frag,zt.frag=St,st.dirty=!0,Ei(at,yi,Vi),at.viewportWidth=an,at.viewportHeight=rn,Gi[0]=Fi,Gi[1]=Ri,Gi[2]=xn,Gi[3]=xi,Oe[0]=Xr,Oe[1]=ft,Oe[2]=tr,Oe[3]=pr,vt.blend_enable=gr,ge[0]=Zr,ge[1]=Ai,ge[2]=Qi,ge[3]=ni,vt.depth_enable=Zi,vt.stencil_enable=aa,Mn&&(r.cpuTime+=performance.now()-Un),Ue.offset=ma,Ue.count=ka,Ue.primitive=so,yr[de]=Ia,yr[te]=fa,yr[ke]=Ta,yr[Ee]=uo,yr[Me]=$a,yr[Ne]=mn,yr[Fe]=wa,yr[ye]=Co,yr[Ve]=ji,yr[ce]=Ps,yr[Ye]=Sn,yr[nt]=Ba,yr[gt]=Qo,Sa&&$e.destroyStream(As),Nt.state=Ys,Nt.x=qs,Nt.y=Ns,Nt.z=Oa,Nt.w=ha,Nt.buffer=Vs,Nt.size=Ya,Nt.normalized=_n,Nt.type=Vn,Nt.offset=wo,Nt.stride=Ra,Nt.divisor=Xn,$n&&$e.destroyStream(eo),it.state=yo,it.x=Jo,it.y=Ao,it.z=Dn,it.w=_a,it.buffer=Ws,it.size=Ca,it.normalized=Es,it.type=Ts,it.offset=Ho,it.stride=Wa,it.divisor=To,Wo&&$e.destroyStream(za),Ke.state=as,Ke.x=Ma,Ke.y=Qs,Ke.z=ho,Ke.w=gs,Ke.buffer=Vo,Ke.size=Do,Ke.normalized=Lo,Ke.type=xs,Ke.offset=ks,Ke.stride=Ea,Ke.divisor=Jn,rl&&$e.destroyStream(os),kt.state=zo,kt.x=io,kt.y=Io,kt.z=Da,kt.w=vs,kt.buffer=fs,kt.size=cl,kt.normalized=el,kt.type=Hs,kt.offset=Ro,kt.stride=tl,kt.divisor=Fs,zt.vert=hl,zt.frag=Fa,st.dirty=!0},batch:function(yi,Ei){var Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft;if(Vi=Ut.angle_instanced_arrays,ti=br.next,ti!==br.cur&&(ti?Ae.bindFramebuffer(36160,ti.framebuffer):Ae.bindFramebuffer(36160,null),br.cur=ti),st.dirty){var tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao;tr=vt.dither,tr!==st.dither&&(tr?Ae.enable(3024):Ae.disable(3024),st.dither=tr),pr=De[0],gr=De[1],(pr!==ct[0]||gr!==ct[1])&&(Ae.blendEquationSeparate(pr,gr),ct[0]=pr,ct[1]=gr),Zr=vt.depth_func,Zr!==st.depth_func&&(Ae.depthFunc(Zr),st.depth_func=Zr),Ai=pe[0],Qi=pe[1],(Ai!==dt[0]||Qi!==dt[1])&&(Ae.depthRange(Ai,Qi),dt[0]=Ai,dt[1]=Qi),ni=vt.depth_mask,ni!==st.depth_mask&&(Ae.depthMask(ni),st.depth_mask=ni),Zi=It[0],aa=It[1],Mn=It[2],Un=It[3],(Zi!==Pt[0]||aa!==Pt[1]||Mn!==Pt[2]||Un!==Pt[3])&&(Ae.colorMask(Zi,aa,Mn,Un),Pt[0]=Zi,Pt[1]=aa,Pt[2]=Mn,Pt[3]=Un),Ga=vt.cull_enable,Ga!==st.cull_enable&&(Ga?Ae.enable(2884):Ae.disable(2884),st.cull_enable=Ga),ma=vt.cull_face,ma!==st.cull_face&&(Ae.cullFace(ma),st.cull_face=ma),oa=vt.frontFace,oa!==st.frontFace&&(Ae.frontFace(oa),st.frontFace=oa),ka=vt.lineWidth,ka!==st.lineWidth&&(Ae.lineWidth(ka),st.lineWidth=ka),so=vt.polygonOffset_enable,so!==st.polygonOffset_enable&&(so?Ae.enable(32823):Ae.disable(32823),st.polygonOffset_enable=so),Kr=rr[0],Ia=rr[1],(Kr!==Hr[0]||Ia!==Hr[1])&&(Ae.polygonOffset(Kr,Ia),Hr[0]=Kr,Hr[1]=Ia),Yo=vt.sample_alpha,Yo!==st.sample_alpha&&(Yo?Ae.enable(32926):Ae.disable(32926),st.sample_alpha=Yo),fa=vt.sample_enable,fa!==st.sample_enable&&(fa?Ae.enable(32928):Ae.disable(32928),st.sample_enable=fa),kn=Dr[0],Ta=Dr[1],(kn!==Mr[0]||Ta!==Mr[1])&&(Ae.sampleCoverage(kn,Ta),Mr[0]=kn,Mr[1]=Ta),ys=vt.stencil_mask,ys!==st.stencil_mask&&(Ae.stencilMask(ys),st.stencil_mask=ys),uo=Fr[0],ls=Fr[1],$a=Fr[2],(uo!==di[0]||ls!==di[1]||$a!==di[2])&&(Ae.stencilFunc(uo,ls,$a),di[0]=uo,di[1]=ls,di[2]=$a),fo=Di[0],mn=Di[1],ra=Di[2],wa=Di[3],(fo!==Ii[0]||mn!==Ii[1]||ra!==Ii[2]||wa!==Ii[3])&&(Ae.stencilOpSeparate(fo,mn,ra,wa),Ii[0]=fo,Ii[1]=mn,Ii[2]=ra,Ii[3]=wa),ws=Ci[0],Co=Ci[1],Po=Ci[2],ji=Ci[3],(ws!==nn[0]||Co!==nn[1]||Po!==nn[2]||ji!==nn[3])&&(Ae.stencilOpSeparate(ws,Co,Po,ji),nn[0]=ws,nn[1]=Co,nn[2]=Po,nn[3]=ji),gn=vt.scissor_enable,gn!==st.scissor_enable&&(gn?Ae.enable(3089):Ae.disable(3089),st.scissor_enable=gn),Ps=ii[0],Ha=ii[1],Sn=ii[2],ao=ii[3],(Ps!==wi[0]||Ha!==wi[1]||Sn!==wi[2]||ao!==wi[3])&&(Ae.scissor(Ps,Ha,Sn,ao),wi[0]=Ps,wi[1]=Ha,wi[2]=Sn,wi[3]=ao)}en=this.viewport,Yr=en.x|0,oi=en.y|0,Bi="width"in en?en.width|0:at.framebufferWidth-Yr,an="height"in en?en.height|0:at.framebufferHeight-oi,rn=at.viewportWidth,at.viewportWidth=Bi,Fi=at.viewportHeight,at.viewportHeight=an,Ae.viewport(Yr,oi,Bi,an),Bt[0]=Yr,Bt[1]=oi,Bt[2]=Bi,Bt[3]=an,Ae.blendColor(0,0,0,1),Re[0]=0,Re[1]=0,Re[2]=0,Re[3]=1,Dt?Ae.enable(3042):Ae.disable(3042),st.blend_enable=Dt,Ae.blendFuncSeparate(770,771,773,1),fe[0]=770,fe[1]=771,fe[2]=773,fe[3]=1,Zt?Ae.enable(2929):Ae.disable(2929),st.depth_enable=Zt,Et?Ae.enable(2960):Ae.disable(2960),st.stencil_enable=Et,Ri=st.profile,Ri&&(xn=performance.now(),r.count+=Ei),Ae.useProgram(o.program),xi=Ut.angle_instanced_arrays;var Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn;for(hr.setVAO(null),Ba=this.charBuffer,Ko=!1,Qo=1,Wi=0,Sa=0,Qa=0,vn=0,da=null,la=0,vo=!1,As=5126,ps=0,co=0,mo=0,xe(Ba)?(Ko=!0,da=$e.createStream(34962,Ba),As=da.dtype):(da=$e.getBuffer(Ba),da?As=da.dtype:"constant"in Ba?(Qo=2,typeof Ba.constant=="number"?(Wi=Ba.constant,Sa=Qa=vn=0):(Wi=Ba.constant.length>0?Ba.constant[0]:0,Sa=Ba.constant.length>1?Ba.constant[1]:0,Qa=Ba.constant.length>2?Ba.constant[2]:0,vn=Ba.constant.length>3?Ba.constant[3]:0)):(xe(Ba.buffer)?da=$e.createStream(34962,Ba.buffer):da=$e.getBuffer(Ba.buffer),As="type"in Ba?Ur[Ba.type]:da.dtype,vo=!!Ba.normalized,la=Ba.size|0,ps=Ba.offset|0,co=Ba.stride|0,mo=Ba.divisor|0)),No=s.location,jn=Yt[No],Qo===1?(jn.buffer||Ae.enableVertexAttribArray(No),Go=la||1,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(Ae.bindBuffer(34962,da.buffer),Ae.vertexAttribPointer(No,Go,As,vo,co,ps),jn.type=As,jn.size=Go,jn.buffer=da,jn.normalized=vo,jn.offset=ps,jn.stride=co),jn.divisor!==mo&&(xi.vertexAttribDivisorANGLE(No,mo),jn.divisor=mo)):(jn.buffer&&(Ae.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Wi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(Ae.vertexAttrib4f(No,Wi,Sa,Qa,vn),jn.x=Wi,jn.y=Sa,jn.z=Qa,jn.w=vn)),Ys=this.sizeBuffer,Gr.buffer=Ys,qs=!1,Ns=1,Oa=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Ra=5126,Xn=0,un=0,$n=0,xe(Gr)?(qs=!0,_n=$e.createStream(34962,Gr),Ra=_n.dtype):(_n=$e.getBuffer(Gr),_n?Ra=_n.dtype:"constant"in Gr?(Ns=2,typeof Gr.constant=="number"?(Oa=Gr.constant,ha=Vs=Ya=0):(Oa=Gr.constant.length>0?Gr.constant[0]:0,ha=Gr.constant.length>1?Gr.constant[1]:0,Vs=Gr.constant.length>2?Gr.constant[2]:0,Ya=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?_n=$e.createStream(34962,Gr.buffer):_n=$e.getBuffer(Gr.buffer),Ra="type"in Gr?Ur[Gr.type]:_n.dtype,wo=!!Gr.normalized,Vn=Gr.size|0,Xn=Gr.offset|0,un=Gr.stride|0,$n=Gr.divisor|0)),Ka=u.location,qn=Yt[Ka],Ns===1?(qn.buffer||Ae.enableVertexAttribArray(Ka),Eo=Vn||1,(qn.type!==Ra||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==un)&&(Ae.bindBuffer(34962,_n.buffer),Ae.vertexAttribPointer(Ka,Eo,Ra,wo,un,Xn),qn.type=Ra,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=un),qn.divisor!==$n&&(xi.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(Ae.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Oa||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(Ae.vertexAttrib4f(Ka,Oa,ha,Vs,Ya),qn.x=Oa,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=this.position,lo=!1,eo=1,sa=0,es=0,Na=0,tn=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Dn=0,_a=0,xe(Ja)?(lo=!0,Pa=$e.createStream(34962,Ja),Jo=Pa.dtype):(Pa=$e.getBuffer(Ja),Pa?Jo=Pa.dtype:"constant"in Ja?(eo=2,typeof Ja.constant=="number"?(sa=Ja.constant,es=Na=tn=0):(sa=Ja.constant.length>0?Ja.constant[0]:0,es=Ja.constant.length>1?Ja.constant[1]:0,Na=Ja.constant.length>2?Ja.constant[2]:0,tn=Ja.constant.length>3?Ja.constant[3]:0)):(xe(Ja.buffer)?Pa=$e.createStream(34962,Ja.buffer):Pa=$e.getBuffer(Ja.buffer),Jo="type"in Ja?Ur[Ja.type]:Pa.dtype,yo=!!Ja.normalized,to=Ja.size|0,Ao=Ja.offset|0,Dn=Ja.stride|0,_a=Ja.divisor|0)),Ws=l.location,Ca=Yt[Ws],eo===1?(Ca.buffer||Ae.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Dn)&&(Ae.bindBuffer(34962,Pa.buffer),Ae.vertexAttribPointer(Ws,Es,Jo,yo,Dn,Ao),Ca.type=Jo,Ca.size=Es,Ca.buffer=Pa,Ca.normalized=yo,Ca.offset=Ao,Ca.stride=Dn),Ca.divisor!==_a&&(xi.vertexAttribDivisorANGLE(Ws,_a),Ca.divisor=_a)):(Ca.buffer&&(Ae.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==tn)&&(Ae.vertexAttrib4f(Ws,sa,es,Na,tn),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=tn)),Ts=this.sizeBuffer,jr.buffer=Ts,Ho=!1,Wa=1,To=0,ts=0,Wo=0,qa=0,ln=null,Bo=0,ko=!1,oo=5126,za=0,ea=0,rs=0,xe(jr)?(Ho=!0,ln=$e.createStream(34962,jr),oo=ln.dtype):(ln=$e.getBuffer(jr),ln?oo=ln.dtype:"constant"in jr?(Wa=2,typeof jr.constant=="number"?(To=jr.constant,ts=Wo=qa=0):(To=jr.constant.length>0?jr.constant[0]:0,ts=jr.constant.length>1?jr.constant[1]:0,Wo=jr.constant.length>2?jr.constant[2]:0,qa=jr.constant.length>3?jr.constant[3]:0)):(xe(jr.buffer)?ln=$e.createStream(34962,jr.buffer):ln=$e.getBuffer(jr.buffer),oo="type"in jr?Ur[jr.type]:ln.dtype,ko=!!jr.normalized,Bo=jr.size|0,za=jr.offset|0,ea=jr.stride|0,rs=jr.divisor|0)),$s=f.location,us=Yt[$s],Wa===1?(us.buffer||Ae.enableVertexAttribArray($s),Ds=Bo||1,(us.type!==oo||us.size!==Ds||us.buffer!==ln||us.normalized!==ko||us.offset!==za||us.stride!==ea)&&(Ae.bindBuffer(34962,ln.buffer),Ae.vertexAttribPointer($s,Ds,oo,ko,ea,za),us.type=oo,us.size=Ds,us.buffer=ln,us.normalized=ko,us.offset=za,us.stride=ea),us.divisor!==rs&&(xi.vertexAttribDivisorANGLE($s,rs),us.divisor=rs)):(us.buffer&&(Ae.disableVertexAttribArray($s),us.buffer=null),(us.x!==To||us.y!==ts||us.z!==Wo||us.w!==qa)&&(Ae.vertexAttrib4f($s,To,ts,Wo,qa),us.x=To,us.y=ts,us.z=Wo,us.w=qa)),fl=this.scale,as=fl[0],Ma=fl[1],Ae.uniform2f(P.location,as,Ma),Qs=this.translate,ho=Qs[0],gs=Qs[1],Ae.uniform2f(A.location,ho,gs),Vo=this.viewportArray,Do=Vo[0],Lo=Vo[1],xs=Vo[2],ks=Vo[3],Ae.uniform4f(B.location,Do,Lo,xs,ks),Ea=Ue.elements,Ea?Ae.bindBuffer(34963,Ea.buffer.buffer):hr.currentVAO&&(Ea=rt.getElements(hr.currentVAO.elements),Ea&&Ae.bindBuffer(34963,Ea.buffer.buffer)),Jn=Ue.instances,Xr=0;Xr0?Ea?xi.drawElementsInstancedANGLE(0,Or,Ea.type,mr<<(Ea.type-5121>>1),Jn):xi.drawArraysInstancedANGLE(0,mr,Or,Jn):Jn<0&&(Ea?Ae.drawElements(0,Or,Ea.type,mr<<(Ea.type-5121>>1)):Ae.drawArrays(0,mr,Or)),bs.unbind())}Ko&&$e.destroyStream(da),qs&&$e.destroyStream(_n),lo&&$e.destroyStream(Pa),Ho&&$e.destroyStream(ln),st.dirty=!0,hr.setVAO(null),at.viewportWidth=rn,at.viewportHeight=Fi,Ri&&(r.cpuTime+=performance.now()-xn)}}}});var bK=Te((J_r,UNe)=>{"use strict";var KUt=T8(),JUt=S8(),$Ut=M8(),QUt=E8(),eVt=k8(),tVt=C8(),rVt=L8(),iVt=P8(),nVt=z8(),aVt=I8();UNe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":KUt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:JUt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":$Ut,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:QUt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:eVt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":tVt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:rVt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:iVt,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":nVt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":aVt}});var HNe=Te(($_r,GNe)=>{"use strict";var VNe=xK(),oVt=bK();Object.assign(VNe.reglPrecompiled,oVt);GNe.exports=VNe});var XNe=Te((Q_r,jNe)=>{"use strict";var WNe=Y8e();WNe.plot=HNe();jNe.exports=WNe});var wK=Te((exr,JNe)=>{"use strict";var sVt=Zc(),KNe=nc(),ZNe=jc().axisHoverFormat,lVt=Nu().hovertemplateAttrs,Ek=sk(),uVt=dd().idRegex,fVt=Pf().templatedArray,dS=Su().extendFlat,o1=sVt.marker,cVt=o1.line,hVt=dS(KNe("marker.line",{editTypeOverride:"calc"}),{width:dS({},cVt.width,{editType:"calc"}),editType:"calc"}),R8=dS(KNe("marker"),{symbol:o1.symbol,angle:o1.angle,size:dS({},o1.size,{editType:"markerSize"}),sizeref:o1.sizeref,sizemin:o1.sizemin,sizemode:o1.sizemode,opacity:o1.opacity,colorbar:o1.colorbar,line:hVt,editType:"calc"});R8.color.editType=R8.cmin.editType=R8.cmax.editType="style";function YNe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:uVt[e],editType:"plot"}}}JNe.exports={dimensions:fVt("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:dS({},Ek.text,{}),hovertext:dS({},Ek.hovertext,{}),hovertemplate:lVt(),xhoverformat:ZNe("x"),yhoverformat:ZNe("y"),marker:R8,xaxes:YNe("x"),yaxes:YNe("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:Ek.selected.marker,editType:"calc"},unselected:{marker:Ek.unselected.marker,editType:"calc"},opacity:Ek.opacity}});var D8=Te((txr,$Ne)=>{"use strict";$Ne.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var AK=ei(),dVt=Jd(),QNe=wK(),pVt=lc(),vVt=$v(),mVt=D8(),yVt=qF().isOpenSymbol;e7e.exports=function(t,r,n,i){function a(d,p){return AK.coerce(t,r,QNe,d,p)}var o=dVt(t,r,{name:"dimensions",handleItemDefaults:gVt}),s=a("diagonal.visible"),u=a("showupperhalf"),l=a("showlowerhalf"),f=mVt(r,o,"values");if(!f||!s&&!u&&!l){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),vVt(t,r,n,i,a,{noAngleRef:!0,noStandOff:!0});var c=yVt(r.marker.symbol),h=pVt.isBubble(r);a("marker.line.width",c||h?1:0),_Vt(t,r,i,a),AK.coerceSelectionMarkerOpacity(r,a)};function gVt(e,t){function r(i,a){return AK.coerce(e,t,QNe.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function _Vt(e,t,r,n){var i=t.dimensions,a=i.length,o=t.showupperhalf,s=t.showlowerhalf,u=t.diagonal.visible,l,f,c=new Array(a),h=new Array(a);for(l=0;lf&&o||l{"use strict";var r7e=ei();i7e.exports=function(t,r){var n=t._fullLayout,i=r.uid,a=n._splomScenes;a||(a=n._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},u=a[r.uid];return u||(u=a[i]=r7e.extendFlat({},o,s),u.draw=function(){u.matrix&&u.matrix.draw&&(u.selectBatch.length||u.unselectBatch.length?u.matrix.draw(u.unselectBatch,u.selectBatch):u.matrix.draw()),u.dirty=!1},u.destroy=function(){u.matrix&&u.matrix.destroy&&u.matrix.destroy(),u.matrixOptions=null,u.selectBatch=null,u.unselectBatch=null,u=null}),u.dirty||r7e.extendFlat(u,o),u}});var s7e=Te((nxr,o7e)=>{"use strict";var TK=ei(),F8=Wc(),xVt=B0().calcMarkerSize,bVt=B0().calcAxisExpansion,wVt=D0(),a7e=Y2().markerSelection,AVt=Y2().markerStyle,TVt=n7e(),SVt=nf().BADNUM,MVt=ox().TOO_MANY_POINTS;o7e.exports=function(t,r){var n=r.dimensions,i=r._length,a={},o=a.cdata=[],s=a.data=[],u=r._visibleDims=[],l,f,c,h,d;function p(E,T){for(var L=E.makeCalcdata({v:T.values,vcalendar:r.calendar},"v"),_=0;_MVt,v;for(b?v=a.sizeAvg||Math.max(a.size,3):v=xVt(r,i),f=0;f{(function(){var e,t,r,n,i,a;typeof performance!="undefined"&&performance!==null&&performance.now?kk.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(kk.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),a=process.uptime()*1e9,i=n-a):Date.now?(kk.exports=function(){return Date.now()-r},r=Date.now()):(kk.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(l7e)});var c7e=Te((axr,q8)=>{var EVt=u7e(),s1=window,B8=["moz","webkit"],vS="AnimationFrame",mS=s1["request"+vS],Ck=s1["cancel"+vS]||s1["cancelRequest"+vS];for(pS=0;!mS&&pS{h7e.exports=function(t,r){var n=typeof t=="number",i=typeof r=="number";n&&!i?(r=t,t=0):!n&&!i&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,u=t;s{"use strict";var kVt=_Y(),CVt=Xy(),LVt=W2(),p7e=c7e(),PVt=d7e(),MK=eS(),zVt=j2();m7e.exports=px;function px(e,t){if(!(this instanceof px))return new px(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=kVt(e),this.canvas=this.scatter.canvas}px.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=p7e(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,p7e(()=>{this.dirty=!1})),this)};px.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&x{t[a+s]=n})}this.scatter.draw(...t)}return this};px.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function IVt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function N8(e,t,r){let n,i,a,o,s,u,l,f,c=e[t],h=e[r];return c.length>2?(n=c[0],a=c[2],i=c[1],o=c[3]):c.length?(n=i=c[0],a=o=c[1]):(n=c.x,i=c.y,a=c.x+c.width,o=c.y+c.height),h.length>2?(s=h[0],l=h[2],u=h[1],f=h[3]):h.length?(s=u=h[0],l=f=h[1]):(s=h.x,u=h.y,l=h.x+h.width,f=h.y+h.height),[s,i,l,o]}function v7e(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=MK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var _7e=Te((lxr,g7e)=>{"use strict";var RVt=y7e(),EK=ei(),U8=Wc(),DVt=Sm().selectMode;g7e.exports=function(t,r,n){if(n.length)for(var i=0;i-1,A=DVt(f)||!!i.selectedpoints||P,B=!0;if(A){var F=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var U=i.selectedpoints,G={};for(d=0;d{"use strict";x7e.getDimIndex=function(t,r){for(var n=r._id,i=n.charAt(0),a={x:0,y:1}[i],o=t._visibleDims,s=0;s{"use strict";var b7e=kK(),BVt=OF().calcHover,w7e=wu().getFromId,OVt=Su().extendFlat;function qVt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=A7e(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var u=(a?e.xa:e.ya)._subplotsWith,l=i.gd,f=OVt({},e),c=0;c{"use strict";var C7e=ei(),M7e=C7e.pushUnique,E7e=lc(),k7e=kK();L7e.exports=function(t,r){var n=t.cd,i=n[0].trace,a=n[0].t,o=t.scene,s=o.matrixOptions.cdata,u=t.xaxis,l=t.yaxis,f=[];if(!o)return f;var c=!E7e.hasMarkers(i)&&!E7e.hasText(i);if(i.visible!==!0||c)return f;var h=k7e.getDimIndex(i,u),d=k7e.getDimIndex(i,l);if(h===!1||d===!1)return f;var p=a.xpx[h],x=a.ypx[d],b=s[h],v=s[d],k=(t.scene.selectBatch||[]).slice(),E=[];if(r!==!1&&!r.degenerate)for(var T=0;T{"use strict";var z7e=ei(),NVt=D0(),UVt=Y2().markerStyle;I7e.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){NVt(t,n),z7e.extendFlat(i.matrixOptions,UVt(t,n));var a=z7e.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var F7e=Te((dxr,D7e)=>{"use strict";var VVt=$l(),GVt=_V();D7e.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:wK(),supplyDefaults:t7e(),colorbar:ep(),calc:s7e(),plot:_7e(),hoverPoints:S7e().hoverPoints,selectPoints:P7e(),editStyle:R7e(),meta:{}};VVt.register(GVt)});var V7e=Te((pxr,U7e)=>{"use strict";var HVt=KY(),WVt=$l(),jVt=A8(),XVt=Rd().getModuleCalcData,vx=Ah(),B7e=Wc().getFromId,O7e=wu().shouldShowZeroLine,q7e="splom",N7e={};function ZVt(e){var t=e._fullLayout,r=WVt.getModule(q7e),n=XVt(e.calcdata,r)[0],i=jVt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],N7e);i&&(t._hasOnlyLargeSploms&&CK(e),r.plot(e,{},n))}function YVt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&CK(e);for(var n=0;n{"use strict";var QVt=T8(),eGt=S8(),tGt=M8(),rGt=L8(),iGt=P8(),nGt=E8(),aGt=k8(),oGt=C8(),sGt=z8(),lGt=I8();G7e.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":QVt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:eGt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":tGt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:rGt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:iGt,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:nGt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:aGt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":oGt,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":sGt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":lGt}});var X7e=Te((mxr,j7e)=>{"use strict";var W7e=V7e(),uGt=H7e();Object.assign(W7e.reglPrecompiled,uGt);j7e.exports=W7e});var K7e=Te((yxr,Y7e)=>{"use strict";var Z7e=F7e();Z7e.basePlotModule=X7e(),Y7e.exports=Z7e});var zK=Te((gxr,J7e)=>{"use strict";var fGt=nc(),LK=Dd(),PK=gc(),cGt=zc().attributes,V8=Su().extendFlat,hGt=Pf().templatedArray;J7e.exports={domain:cGt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:PK({editType:"plot"}),tickfont:PK({autoShadowDflt:!0,editType:"plot"}),rangefont:PK({editType:"plot"}),dimensions:hGt("dimension",{label:{valType:"string",editType:"plot"},tickvals:V8({},LK.tickvals,{editType:"plot"}),ticktext:V8({},LK.ticktext,{editType:"plot"}),tickformat:V8({},LK.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:V8({editType:"calc"},fGt("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var Lk=Te((_xr,$7e)=>{"use strict";$7e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var Ky=Te((xxr,eUe)=>{"use strict";var dGt=VM();function Q7e(e){return[e]}eUe.exports={keyFun:function(e){return e.key},repeat:Q7e,descend:dGt,wrap:Q7e,unwrap:function(e){return e[0]}}});var DK=Te((bxr,cUe)=>{"use strict";var Eh=Lk(),ey=Jl(),pGt=Ky().keyFun,G8=Ky().repeat,yS=ei().sorterAsc,vGt=ei().strTranslate,tUe=Eh.bar.snapRatio;function rUe(e,t){return e*(1-tUe)+t*tUe}var iUe=Eh.bar.snapClose;function mGt(e,t){return e*(1-iUe)+t*iUe}function W8(e,t,r,n){if(yGt(r,n))return r;var i=e?-1:1,a=0,o=t.length-1;if(i<0){var s=a;a=o,o=s}for(var u=t[a],l=u,f=a;i*f=t[r][0]&&e<=t[r][1])return!0;return!1}function gGt(e){e.attr("x",-Eh.bar.captureWidth/2).attr("width",Eh.bar.captureWidth)}function _Gt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function xGt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=nUe(e.brush.filter.getConsolidated(),e.height),r=[0],n,i,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function aUe(){ey.select(document.body).style("cursor",null)}function RK(e){e.attr("stroke-dasharray",xGt)}function H8(e,t){var r=ey.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(Eh.bar.snapDuration).each("end",t):r;RK(n)}function oUe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,u=r.filter.getConsolidated(),l=nUe(u,s),f=NaN,c=NaN,h=NaN;for(o=0;o<=l.length;o++){var d=l[o];if(d&&d[0]<=t&&t<=d[1]){f=o;break}else if(c=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(i=f,isNaN(i)&&(isNaN(c)||isNaN(h)?i=isNaN(c)?h:c:i=t-l[c][1]=k[0]&&v<=k[1]){a.clickableOrdinalRange=k;break}}}return a}function wGt(e,t){ey.event.sourceEvent.stopPropagation();var r=t.height-ey.mouse(e)[1]-2*Eh.verticalPadding,n=t.unitToPaddedPx.invert(r),i=t.brush,a=oUe(t,r),o=a.interval,s=i.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var u=o.map(t.unitToPaddedPx);s.grabPoint=r-u[0]-Eh.verticalPadding,s.barLength=u[1]-u[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&i.filterSpecified?i.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(l){return l[0]!==o[0]&&l[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:n,t.parent.inBrushDrag=!0,s.brushStartCallback()}function sUe(e,t){ey.event.sourceEvent.stopPropagation();var r=t.height-ey.mouse(e)[1]-2*Eh.verticalPadding,n=t.brush.svgBrush;n.wasDragged=!0,n._dragging=!0,n.grabbingBar?n.newExtent=[r-n.grabPoint,r+n.barLength-n.grabPoint].map(t.unitToPaddedPx.invert):n.newExtent=[n.startExtent,t.unitToPaddedPx.invert(r)].sort(yS),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),H8(e.parentNode)}function AGt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(lUe(e,t),sUe(e,t),t.brush.svgBrush.wasDragged=!1),i._dragging=!1;var a=ey.event;a.sourceEvent.stopPropagation();var o=i.grabbingBar;if(i.grabbingBar=!1,i.grabLocation=void 0,t.parent.inBrushDrag=!1,aUe(),!i.wasDragged){i.wasDragged=void 0,i.clickableOrdinalRange?r.filterSpecified&&t.multiselect?i.extent.push(i.clickableOrdinalRange):(i.extent=[i.clickableOrdinalRange],r.filterSpecified=!0):o?(i.extent=i.stayingIntervals,i.extent.length===0&&IK(r)):IK(r),i.brushCallback(t),H8(e.parentNode),i.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);return}var s=function(){n.set(n.getConsolidated())};if(t.ordinal){var u=t.unitTickvals;u[u.length-1]i.newExtent[0];i.extent=i.stayingIntervals.concat(l?[i.newExtent]:[]),i.extent.length||IK(r),i.brushCallback(t),l?H8(e.parentNode,s):(s(),H8(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function lUe(e,t){var r=t.height-ey.mouse(e)[1]-2*Eh.verticalPadding,n=oUe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),ey.select(document.body).style("cursor",i)}function TGt(e){e.on("mousemove",function(t){ey.event.preventDefault(),t.parent.inBrushDrag||lUe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||aUe()}).call(ey.behavior.drag().on("dragstart",function(t){wGt(this,t)}).on("drag",function(t){sUe(this,t)}).on("dragend",function(t){AGt(this,t)}))}function uUe(e,t){return e[0]-t[0]}function SGt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(G8);i.enter().append("rect").classed("background",!0).call(gGt).call(_Gt).style("pointer-events",n?"none":"auto").attr("transform",vGt(0,Eh.verticalPadding)),i.call(TGt).attr("height",function(s){return s.height-Eh.verticalPadding});var a=e.selectAll(".highlight-shadow").data(G8);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-Eh.bar.width/2).attr("stroke-width",Eh.bar.width+Eh.bar.strokeWidth).attr("stroke",t).attr("opacity",Eh.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(RK);var o=e.selectAll(".highlight").data(G8);o.enter().append("line").classed("highlight",!0).attr("x",-Eh.bar.width/2).attr("stroke-width",Eh.bar.width-Eh.bar.strokeWidth).attr("stroke",Eh.bar.fillColor).attr("opacity",Eh.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(RK)}function MGt(e,t,r){var n=e.selectAll("."+Eh.cn.axisBrush).data(G8,pGt);n.enter().append("g").classed(Eh.cn.axisBrush,!0),SGt(n,t,r)}function EGt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function IK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function kGt(e){return function(r){var n=r.brush,i=EGt(n),a=i.slice();n.filter.set(a),e()}}function fUe(e){for(var t=e.slice(),r=[],n,i=t.shift();i;){for(n=i.slice();(i=t.shift())&&i[0]<=n[1];)n[1]=Math.max(n[1],i[1]);r.push(n)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function CGt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(yS)}).sort(uUe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=fUe(e),r=e.reduce(function(i,a){return[Math.min(i[0],a[0]),Math.max(i[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function LGt(e,t,r,n,i,a){var o=CGt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:kGt(i),brushEndCallback:a}}}function PGt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(yS)}),t.multiselect?e=fUe(e.sort(uUe)):e=[e[0]]):e=[e.sort(yS)],t.tickvals){var r=t.tickvals.slice().sort(yS);if(e=e.map(function(n){var i=[W8(0,r,n[0],[]),W8(1,r,n[1],[])];if(i[1]>i[0])return i}).filter(function(n){return n}),!e.length)return}return e.length>1?e:e[0]}cUe.exports={makeBrush:LGt,ensureAxisBrush:MGt,cleanRanges:PGt}});var pUe=Te((wxr,dUe)=>{"use strict";var mx=ei(),zGt=yp().hasColorscale,IGt=ed(),RGt=zc().defaults,DGt=Jd(),FGt=wu(),hUe=zK(),BGt=DK(),FK=Lk().maxDimensionCount,OGt=D8();function qGt(e,t,r,n,i){var a=i("line.color",r);if(zGt(e,"line")&&mx.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),IGt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function NGt(e,t,r,n){function i(l,f){return mx.coerce(e,t,hUe.dimensions,l,f)}var a=i("values"),o=i("visible");if(a&&a.length||(o=t.visible=!1),o){i("label"),i("tickvals"),i("ticktext"),i("tickformat");var s=i("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},FGt.setConvert(t._ax,n.layout),i("multiselect");var u=i("constraintrange");u&&(t.constraintrange=BGt.cleanRanges(u,t))}}dUe.exports=function(t,r,n,i){function a(f,c){return mx.coerce(t,r,hUe,f,c)}var o=t.dimensions;Array.isArray(o)&&o.length>FK&&(mx.log("parcoords traces support up to "+FK+" dimensions at the moment"),o.splice(FK));var s=DGt(t,r,{name:"dimensions",layout:i,handleItemDefaults:NGt}),u=qGt(t,r,n,i,a);RGt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),OGt(r,s,"values",u);var l=mx.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});mx.coerceFont(a,"labelfont",l),mx.coerceFont(a,"tickfont",l,{autoShadowDflt:!0}),mx.coerceFont(a,"rangefont",l),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var mUe=Te((Axr,vUe)=>{"use strict";var UGt=ei().isArrayOrTypedArray,BK=_c(),VGt=Ky().wrap;vUe.exports=function(t,r){var n,i;return BK.hasColorscale(r,"line")&&UGt(r.line.color)?(n=r.line.color,i=BK.extractOpts(r.line).colorscale,BK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=GGt(r._length),i=[[0,r.line.color],[1,r.line.color]]),VGt({lineColor:n,cscale:i})};function GGt(e){for(var t=new Array(e),r=0;r>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),OK.default[e])r=OK.default[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(e[0]==="#"){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var u=t[1];i=u.replace(/a$/,"");var l=i==="cmyk"?4:i==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),i==="color"&&(i=r.shift()),r=r.map(function(h,d){if(h[h.length-1]==="%")return h=parseFloat(h)/100,d===3?h:i==="rgb"?h*255:i[0]==="h"||i[0]==="l"&&!d?h*100:i==="lab"?h*125:i==="lch"?d<2?h*150:h*360:i[0]==="o"&&!d?h:i==="oklab"?h*.4:i==="oklch"?d<2?h*.4:h*360:h;if(i[d]==="h"||d===2&&i[i.length-1]==="h"){if(yUe[h]!==void 0)return yUe[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),n=r.length>l?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),i=((c=(f=e.match(/([a-z])/ig))==null?void 0:f.join(""))==null?void 0:c.toLowerCase())||"rgb");return{space:i,values:r,alpha:n}}var OK,gUe,yUe,_Ue=tc(()=>{OK=Itt(AX(),1),gUe=HGt,yUe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var Pk,qK=tc(()=>{Pk={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var j8,xUe=tc(()=>{qK();j8={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,u,l=0;if(r===0)return u=n*255,[u,u,u];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];l<3;)o=t+1/3*-(l-1),o<0?o++:o>1&&o--,u=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l++]=u*255;return s}};Pk.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s,u,l;return a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),l=(i+a)/2,a===i?u=0:l<=.5?u=o/(a+i):u=o/(2-a-i),[s,u*100,l*100]}});var wUe={};bee(wUe,{default:()=>bUe});function bUe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=gUe(e);if(!i.space)return[];let a=i.space[0]==="h"?j8.min:Pk.min,o=i.space[0]==="h"?j8.max:Pk.max;return t=Array(3),t[0]=Math.min(Math.max(i.values[0],a[0]),o[0]),t[1]=Math.min(Math.max(i.values[1],a[1]),o[1]),t[2]=Math.min(Math.max(i.values[2],a[2]),o[2]),i.space[0]==="h"&&(t=j8.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var AUe=tc(()=>{_Ue();qK();xUe()});var NK=Te(X8=>{"use strict";var WGt=ei().isTypedArray;X8.convertTypedArray=function(e){return WGt(e)?Array.prototype.slice.call(e):e};X8.isOrdinal=function(e){return!!e.tickvals};X8.isVisible=function(e){return e.visible||!("visible"in e)}});var IUe=Te((zxr,zUe)=>{"use strict";var jGt=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` -`),XGt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),zk=Lk().maxDimensionCount,CUe=ei(),TUe=1e-6,Z8=2048,ZGt=new Uint8Array(4),SUe=new Uint8Array(4),MUe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function YGt(e){e.read({x:0,y:0,width:1,height:1,data:ZGt})}function LUe(e,t,r,n,i){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,n,i),e.clear({color:[0,0,0,0],depth:1})}function KGt(e,t,r,n,i,a){var o=a.key;function s(u){var l=Math.min(n,i-u*n);u===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],LUe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*l,a.offset=2*u*n,t(a),u*n+l>>8*t)%256/255}function QGt(e,t,r){for(var n=new Array(e*(zk+4)),i=0,a=0;aj&&(j=M[B].dim1.canvasX,U=B);A===0&&LUe(i,0,0,l.canvasWidth,l.canvasHeight);var H=E(r);for(B=0;B{"use strict";var Ud=Jl(),l1=ei(),VK=l1.isArrayOrTypedArray,qUe=l1.numberFormat,NUe=(AUe(),ab(wUe)).default,UUe=wu(),nHt=l1.strRotate,Jy=l1.strTranslate,aHt=Xf(),Y8=Mu(),RUe=_c(),WK=Ky(),tm=WK.keyFun,$y=WK.repeat,VUe=WK.unwrap,gS=NK(),Nf=Lk(),GUe=DK(),oHt=IUe();function DUe(e,t,r){return l1.aggNums(e,null,t,r)}function HUe(e,t){return jK(DUe(Math.min,e,t),DUe(Math.max,e,t))}function K8(e){var t=e.range;return t?jK(t[0],t[1]):HUe(e.values,e._length)}function jK(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function sHt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function lHt(e,t,r,n,i){var a=K8(r);return n?Ud.scale.ordinal().domain(n.map(sHt(qUe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Ud.scale.linear().domain(a).range([e-t,t])}function uHt(e,t){return Ud.scale.linear().range([t,e-t])}function fHt(e,t){return Ud.scale.linear().domain(K8(e)).range([t,1-t])}function cHt(e){if(e.tickvals){var t=K8(e);return Ud.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function hHt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=NUe(a[1]);return Ud.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return Ud.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function HK(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function dHt(e,t,r){var n=VUe(t),i=n.trace,a=gS.convertTypedArray(n.lineColor),o=i.line,s={color:NUe(i.unselected.line.color),opacity:i.unselected.line.opacity},u=RUe.extractOpts(o),l=u.reversescale?RUe.flipScale(n.cscale):n.cscale,f=i.domain,c=i.dimensions,h=e.width,d=i.labelangle,p=i.labelside,x=i.labelfont,b=i.tickfont,v=i.rangefont,k=l1.extendDeepNoArrays({},o,{color:a.map(Ud.scale.linear().domain(K8({values:a,range:[u.min,u.max],_length:i._length}))),blockLineCount:Nf.blockLineCount,canvasOverdrag:Nf.overdrag*Nf.canvasPixelRatio}),E=Math.floor(h*(f.x[1]-f.x[0])),T=Math.floor(e.height*(f.y[1]-f.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},_=E,C=T;return{key:r,colCount:c.filter(gS.isVisible).length,dimensions:c,tickDistance:Nf.tickDistance,unitToColor:hHt(l),lines:k,deselectedLines:s,labelAngle:d,labelSide:p,labelFont:x,tickFont:b,rangeFont:v,layoutWidth:h,layoutHeight:e.height,domain:f,translateX:f.x[0]*h,translateY:e.height-f.y[1]*e.height,pad:L,canvasWidth:_*Nf.canvasPixelRatio+2*k.canvasOverdrag,canvasHeight:C*Nf.canvasPixelRatio,width:_,height:C,canvasPixelRatio:Nf.canvasPixelRatio}}function pHt(e,t,r){var n=r.width,i=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return n*h/Math.max(1,r.colCount-1)},u=Nf.verticalPadding/i,l=uHt(i,Nf.verticalPadding),f={key:r.key,xScale:s,model:r,inBrushDrag:!1},c={};return f.dimensions=a.filter(gS.isVisible).map(function(h,d){var p=fHt(h,u),x=c[h.label];c[h.label]=(x||0)+1;var b=h.label+(x?"__"+x:""),v=h.constraintrange,k=v&&v.length;k&&!VK(v[0])&&(v=[v]);var E=k?v.map(function(F){return F.map(p)}):[[-1/0,1/0]],T=function(){var F=f;F.focusLayer&&F.focusLayer.render(F.panels,!0);var U=HK(F);!e.contextShown()&&U?(F.contextLayer&&F.contextLayer.render(F.panels,!0),e.contextShown(!0)):e.contextShown()&&!U&&(F.contextLayer&&F.contextLayer.render(F.panels,!0,!0),e.contextShown(!1))},L=h.values;L.length>h._length&&(L=L.slice(0,h._length));var _=h.tickvals,C;function M(F,U){return{val:F,text:C[U]}}function m(F,U){return F.val-U.val}if(VK(_)&&_.length){l1.isTypedArray(_)&&(_=Array.from(_)),C=h.ticktext,!VK(C)||!C.length?C=_.map(qUe(h.tickformat)):C.length>_.length?C=C.slice(0,_.length):_.length>C.length&&(_=_.slice(0,C.length));for(var P=1;P<_.length;P++)if(_[P]<_[P-1]){for(var A=_.map(M).sort(m),B=0;B<_.length;B++)_[B]=A[B].val,C[B]=A[B].text;break}}else _=void 0;return L=gS.convertTypedArray(L),{key:b,label:h.label,tickFormat:h.tickformat,tickvals:_,ticktext:C,ordinal:gS.isOrdinal(h),multiselect:h.multiselect,xIndex:d,crossfilterDimensionIndex:d,visibleIndex:h._index,height:i,values:L,paddedUnitValues:L.map(p),unitTickvals:_&&_.map(p),xScale:s,x:s(d),canvasX:s(d)*o,unitToPaddedPx:l,domainScale:lHt(i,Nf.verticalPadding,h,_,C),ordinalScale:cHt(h),parent:f,model:r,brush:GUe.makeBrush(e,k,E,function(){e.linePickActive(!1)},T,function(F){if(f.focusLayer.render(f.panels,!0),f.pickLayer&&f.pickLayer.render(f.panels,!0),e.linePickActive(!0),t&&t.filterChanged){var U=p.invert,G=F.map(function(j){return j.map(U).sort(l1.sorterAsc)}).sort(function(j,H){return j[0]-H[0]});t.filterChanged(f.key,h._index,G)}})}}),f}function FUe(e){e.classed(Nf.cn.axisExtentText,!0).attr("text-anchor","middle").style("cursor","default")}function vHt(){var e=!0,t=!1;return{linePickActive:function(r){return arguments.length?e=!!r:e},contextShown:function(r){return arguments.length?t=!!r:t}}}function BUe(e,t){var r=t==="top"?1:-1,n=e*Math.PI/180,i=Math.sin(n),a=Math.cos(n);return{dir:r,dx:i,dy:a,degrees:e}}function GK(e,t,r){for(var n=t.panels||(t.panels=[]),i=e.data(),a=0;a=U||N>=G)return;var W=B.lineLayer.readPixel(H,G-1-N),re=W[3]!==0,ae=re?W[2]+256*(W[1]+256*W[0]):null,be={x:H,y:N,clientX:F.clientX,clientY:F.clientY,dataIndex:B.model.key,curveNumber:ae};ae!==p&&(re?i.hover(be):i.unhover&&i.unhover(be),p=ae)}}),d.style("opacity",function(B){return B.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var b=s.selectAll("."+Nf.cn.parcoords).data(h,tm);b.exit().remove(),b.enter().append("g").classed(Nf.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),b.attr("transform",function(B){return Jy(B.model.translateX,B.model.translateY)});var v=b.selectAll("."+Nf.cn.parcoordsControlView).data($y,tm);v.enter().append("g").classed(Nf.cn.parcoordsControlView,!0),v.attr("transform",function(B){return Jy(B.model.pad.l,B.model.pad.t)});var k=v.selectAll("."+Nf.cn.yAxis).data(function(B){return B.dimensions},tm);k.enter().append("g").classed(Nf.cn.yAxis,!0),v.each(function(B){GK(k,B,l)}),d.each(function(B){if(B.viewModel){!B.lineLayer||i?B.lineLayer=oHt(this,B):B.lineLayer.update(B),(B.key||B.key===0)&&(B.viewModel[B.key]=B.lineLayer);var F=!B.context||i;B.lineLayer.render(B.viewModel.panels,F)}}),k.attr("transform",function(B){return Jy(B.xScale(B.xIndex),0)}),k.call(Ud.behavior.drag().origin(function(B){return B}).on("drag",function(B){var F=B.parent;c.linePickActive(!1),B.x=Math.max(-Nf.overdrag,Math.min(B.model.width+Nf.overdrag,Ud.event.x)),B.canvasX=B.x*B.model.canvasPixelRatio,k.sort(function(U,G){return U.x-G.x}).each(function(U,G){U.xIndex=G,U.x=B===U?U.x:U.xScale(U.xIndex),U.canvasX=U.x*U.model.canvasPixelRatio}),GK(k,F,l),k.filter(function(U){return Math.abs(B.xIndex-U.xIndex)!==0}).attr("transform",function(U){return Jy(U.xScale(U.xIndex),0)}),Ud.select(this).attr("transform",Jy(B.x,0)),k.each(function(U,G,j){j===B.parent.key&&(F.dimensions[G]=U)}),F.contextLayer&&F.contextLayer.render(F.panels,!1,!HK(F)),F.focusLayer.render&&F.focusLayer.render(F.panels)}).on("dragend",function(B){var F=B.parent;B.x=B.xScale(B.xIndex),B.canvasX=B.x*B.model.canvasPixelRatio,GK(k,F,l),Ud.select(this).attr("transform",function(U){return Jy(U.x,0)}),F.contextLayer&&F.contextLayer.render(F.panels,!1,!HK(F)),F.focusLayer&&F.focusLayer.render(F.panels),F.pickLayer&&F.pickLayer.render(F.panels,!0),c.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(F.key,F.dimensions.map(function(U){return U.crossfilterDimensionIndex}))})),k.exit().remove();var E=k.selectAll("."+Nf.cn.axisOverlays).data($y,tm);E.enter().append("g").classed(Nf.cn.axisOverlays,!0),E.selectAll("."+Nf.cn.axis).remove();var T=E.selectAll("."+Nf.cn.axis).data($y,tm);T.enter().append("g").classed(Nf.cn.axis,!0),T.each(function(B){var F=B.model.height/B.model.tickDistance,U=B.domainScale,G=U.domain();Ud.select(this).call(Ud.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(F,B.tickFormat).tickValues(B.ordinal?G:null).tickFormat(function(j){return gS.isOrdinal(B)?j:WUe(B.model.dimensions[B.visibleIndex],j)}).scale(U)),Y8.font(T.selectAll("text"),B.model.tickFont)}),T.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),T.selectAll("text").style("cursor","default");var L=E.selectAll("."+Nf.cn.axisHeading).data($y,tm);L.enter().append("g").classed(Nf.cn.axisHeading,!0);var _=L.selectAll("."+Nf.cn.axisTitle).data($y,tm);_.enter().append("text").classed(Nf.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),_.text(function(B){return B.label}).each(function(B){var F=Ud.select(this);Y8.font(F,B.model.labelFont),aHt.convertToTspans(F,t)}).attr("transform",function(B){var F=BUe(B.model.labelAngle,B.model.labelSide),U=Nf.axisTitleOffset;return(F.dir>0?"":Jy(0,2*U+B.model.height))+nHt(F.degrees)+Jy(-U*F.dx,-U*F.dy)}).attr("text-anchor",function(B){var F=BUe(B.model.labelAngle,B.model.labelSide),U=Math.abs(F.dx),G=Math.abs(F.dy);return 2*U>G?F.dir*F.dx<0?"start":"end":"middle"});var C=E.selectAll("."+Nf.cn.axisExtent).data($y,tm);C.enter().append("g").classed(Nf.cn.axisExtent,!0);var M=C.selectAll("."+Nf.cn.axisExtentTop).data($y,tm);M.enter().append("g").classed(Nf.cn.axisExtentTop,!0),M.attr("transform",Jy(0,-Nf.axisExtentOffset));var m=M.selectAll("."+Nf.cn.axisExtentTopText).data($y,tm);m.enter().append("text").classed(Nf.cn.axisExtentTopText,!0).call(FUe),m.text(function(B){return OUe(B,!0)}).each(function(B){Y8.font(Ud.select(this),B.model.rangeFont)});var P=C.selectAll("."+Nf.cn.axisExtentBottom).data($y,tm);P.enter().append("g").classed(Nf.cn.axisExtentBottom,!0),P.attr("transform",function(B){return Jy(0,B.model.height+Nf.axisExtentOffset)});var A=P.selectAll("."+Nf.cn.axisExtentBottomText).data($y,tm);A.enter().append("text").classed(Nf.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(FUe),A.text(function(B){return OUe(B,!1)}).each(function(B){Y8.font(Ud.select(this),B.model.rangeFont)}),GUe.ensureAxisBrush(E,f,t)}});var ZK=Te((XK,JUe)=>{"use strict";var yHt=XUe(),gHt=A8(),ZUe=NK().isVisible,KUe={};function YUe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function _Ht(e,t){return function(n,i){return YUe(e,t,n)-YUe(e,t,i)}}var XK=JUe.exports=function(t,r){var n=t._fullLayout,i=gHt(t,[],KUe);if(i){var a={},o={},s={},u={},l=n._size;r.forEach(function(p,x){var b=p[0].trace;s[x]=b.index;var v=u[x]=b.index;a[x]=t.data[v].dimensions,o[x]=t.data[v].dimensions.slice()});var f=function(p,x,b){var v=o[p][x],k=b.map(function(M){return M.slice()}),E="dimensions["+x+"].constraintrange",T=n._tracePreGUI[t._fullData[s[p]]._fullInput.uid];if(T[E]===void 0){var L=v.constraintrange;T[E]=L||null}var _=t._fullData[s[p]].dimensions[x];k.length?(k.length===1&&(k=k[0]),v.constraintrange=k,_.constraintrange=k.slice(),k=[k]):(delete v.constraintrange,delete _.constraintrange,k=null);var C={};C[E]=k,t.emit("plotly_restyle",[C,[u[p]]])},c=function(p){t.emit("plotly_hover",p)},h=function(p){t.emit("plotly_unhover",p)},d=function(p,x){var b=_Ht(x,o[p].filter(ZUe));a[p].sort(b),o[p].filter(function(v){return!ZUe(v)}).sort(function(v){return o[p].indexOf(v)}).forEach(function(v){a[p].splice(a[p].indexOf(v),1),a[p].splice(o[p].indexOf(v),0,v)}),t.emit("plotly_restyle",[{dimensions:[a[p]]},[u[p]]])};yHt(t,r,{width:l.w,height:l.h,margin:{t:l.t,r:l.r,b:l.b,l:l.l}},{filterChanged:f,hover:c,unhover:h,axesMoved:d})}};XK.reglPrecompiled=KUe});var QUe=Te(Ik=>{"use strict";var $Ue=Jl(),xHt=Rd().getModuleCalcData,bHt=ZK(),wHt=jv();Ik.name="parcoords";Ik.plot=function(e){var t=xHt(e.calcdata,"parcoords")[0];t.length&&bHt(e,t)};Ik.clean=function(e,t,r,n){var i=n._has&&n._has("parcoords"),a=t._has&&t._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())};Ik.toSVG=function(e){var t=e._fullLayout._glimages,r=$Ue.select(e).selectAll(".svg-container"),n=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:wHt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){$Ue.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var tVe=Te((Dxr,eVe)=>{"use strict";eVe.exports={attributes:zK(),supplyDefaults:pUe(),calc:mUe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:QUe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var iVe=Te((Fxr,rVe)=>{rVe.exports=function(t,r){"use strict";var n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt,Nt,it,Ke,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr;return n=t.gl,i=t.context,a=t.strings,o=t.next,s=t.current,u=t.draw,l=t.elements,f=t.buffer,c=t.shader,h=t.attributes,d=t.vao,p=t.uniforms,x=t.framebuffer,b=t.extensions,v=t.timer,k=t.isBufferArgs,E=o.blend_color,T=s.blend_color,L=o.blend_equation,_=s.blend_equation,C=o.blend_func,M=s.blend_func,m=o.depth_range,P=s.depth_range,A=o.colorMask,B=s.colorMask,F=o.polygonOffset_offset,U=s.polygonOffset_offset,G=o.sample_coverage,j=s.sample_coverage,H=o.stencil_func,N=s.stencil_func,W=o.stencil_opFront,re=s.stencil_opFront,ae=o.stencil_opBack,be=s.stencil_opBack,Pe=o.scissor_box,Ce=s.scissor_box,de=o.viewport,te=s.viewport,ke={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ee={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Me={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ne={add:32774,subtract:32778,"reverse subtract":32779},Fe={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ye={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ve={cw:2304,ccw:2305},ce=o.blend_color,Ye=s.blend_color,nt=o.blend_equation,gt=s.blend_equation,Nt=o.blend_func,it=s.blend_func,Ke=o.depth_range,kt=s.depth_range,Tt=o.colorMask,St=s.colorMask,Dt=o.polygonOffset_offset,Zt=s.polygonOffset_offset,Et=o.sample_coverage,Ae=s.sample_coverage,at=o.stencil_func,wt=s.stencil_func,vt=o.stencil_opFront,st=s.stencil_opFront,Ue=o.stencil_opBack,rt=s.stencil_opBack,$e=o.scissor_box,zt=s.scissor_box,Yt=o.viewport,hr=s.viewport,{poll:function(){var yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di;s.dirty=!1,br=o.dither,Ut=o.blend_enable,Ie=o.depth_enable,xe=o.cull_enable,Oe=o.polygonOffset_enable,Re=o.sample_alpha,De=o.sample_enable,ct=o.stencil_enable,ge=o.scissor_enable,fe=o.depth_func,pe=s.depth_func,dt=o.depth_mask,It=s.depth_mask,Pt=o.cull_face,rr=s.cull_face,Hr=o.frontFace,Dr=s.frontFace,Mr=o.lineWidth,Fr=s.lineWidth,di=o.stencil_mask,Di=s.stencil_mask,yr=x.next,yr!==x.cur&&(yr?n.bindFramebuffer(36160,yr.framebuffer):n.bindFramebuffer(36160,null),x.cur=yr),br!==s.dither&&(br?n.enable(3024):n.disable(3024),s.dither=br),Ut!==s.blend_enable&&(Ut?n.enable(3042):n.disable(3042),s.blend_enable=Ut),Ie!==s.depth_enable&&(Ie?n.enable(2929):n.disable(2929),s.depth_enable=Ie),xe!==s.cull_enable&&(xe?n.enable(2884):n.disable(2884),s.cull_enable=xe),Oe!==s.polygonOffset_enable&&(Oe?n.enable(32823):n.disable(32823),s.polygonOffset_enable=Oe),Re!==s.sample_alpha&&(Re?n.enable(32926):n.disable(32926),s.sample_alpha=Re),De!==s.sample_enable&&(De?n.enable(32928):n.disable(32928),s.sample_enable=De),ct!==s.stencil_enable&&(ct?n.enable(2960):n.disable(2960),s.stencil_enable=ct),ge!==s.scissor_enable&&(ge?n.enable(3089):n.disable(3089),s.scissor_enable=ge),(ce[0]!==Ye[0]||ce[1]!==Ye[1]||ce[2]!==Ye[2]||ce[3]!==Ye[3])&&(n.blendColor(ce[0],ce[1],ce[2],ce[3]),Ye[0]=ce[0],Ye[1]=ce[1],Ye[2]=ce[2],Ye[3]=ce[3]),(nt[0]!==gt[0]||nt[1]!==gt[1])&&(n.blendEquationSeparate(nt[0],nt[1]),gt[0]=nt[0],gt[1]=nt[1]),(Nt[0]!==it[0]||Nt[1]!==it[1]||Nt[2]!==it[2]||Nt[3]!==it[3])&&(n.blendFuncSeparate(Nt[0],Nt[1],Nt[2],Nt[3]),it[0]=Nt[0],it[1]=Nt[1],it[2]=Nt[2],it[3]=Nt[3]),fe!==pe&&(n.depthFunc(fe),s.depth_func=fe),(Ke[0]!==kt[0]||Ke[1]!==kt[1])&&(n.depthRange(Ke[0],Ke[1]),kt[0]=Ke[0],kt[1]=Ke[1]),dt!==It&&(n.depthMask(dt),s.depth_mask=dt),(Tt[0]!==St[0]||Tt[1]!==St[1]||Tt[2]!==St[2]||Tt[3]!==St[3])&&(n.colorMask(Tt[0],Tt[1],Tt[2],Tt[3]),St[0]=Tt[0],St[1]=Tt[1],St[2]=Tt[2],St[3]=Tt[3]),Pt!==rr&&(n.cullFace(Pt),s.cull_face=Pt),Hr!==Dr&&(n.frontFace(Hr),s.frontFace=Hr),Mr!==Fr&&(n.lineWidth(Mr),s.lineWidth=Mr),(Dt[0]!==Zt[0]||Dt[1]!==Zt[1])&&(n.polygonOffset(Dt[0],Dt[1]),Zt[0]=Dt[0],Zt[1]=Dt[1]),(Et[0]!==Ae[0]||Et[1]!==Ae[1])&&(n.sampleCoverage(Et[0],Et[1]),Ae[0]=Et[0],Ae[1]=Et[1]),di!==Di&&(n.stencilMask(di),s.stencil_mask=di),(at[0]!==wt[0]||at[1]!==wt[1]||at[2]!==wt[2])&&(n.stencilFunc(at[0],at[1],at[2]),wt[0]=at[0],wt[1]=at[1],wt[2]=at[2]),(vt[0]!==st[0]||vt[1]!==st[1]||vt[2]!==st[2]||vt[3]!==st[3])&&(n.stencilOpSeparate(vt[0],vt[1],vt[2],vt[3]),st[0]=vt[0],st[1]=vt[1],st[2]=vt[2],st[3]=vt[3]),(Ue[0]!==rt[0]||Ue[1]!==rt[1]||Ue[2]!==rt[2]||Ue[3]!==rt[3])&&(n.stencilOpSeparate(Ue[0],Ue[1],Ue[2],Ue[3]),rt[0]=Ue[0],rt[1]=Ue[1],rt[2]=Ue[2],rt[3]=Ue[3]),($e[0]!==zt[0]||$e[1]!==zt[1]||$e[2]!==zt[2]||$e[3]!==zt[3])&&(n.scissor($e[0],$e[1],$e[2],$e[3]),zt[0]=$e[0],zt[1]=$e[1],zt[2]=$e[2],zt[3]=$e[3]),(Yt[0]!==hr[0]||Yt[1]!==hr[1]||Yt[2]!==hr[2]||Yt[3]!==hr[3])&&(n.viewport(Yt[0],Yt[1],Yt[2],Yt[3]),hr[0]=Yt[0],hr[1]=Yt[1],hr[2]=Yt[2],hr[3]=Yt[3])},refresh:function(){var yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci;s.dirty=!1,Ie=o.dither,xe=o.blend_enable,Oe=o.depth_enable,Re=o.cull_enable,De=o.polygonOffset_enable,ct=o.sample_alpha,ge=o.sample_enable,fe=o.stencil_enable,pe=o.scissor_enable,dt=o.depth_func,It=s.depth_func,Pt=o.depth_mask,rr=s.depth_mask,Hr=o.cull_face,Dr=s.cull_face,Mr=o.frontFace,Fr=s.frontFace,di=o.lineWidth,Di=s.lineWidth,Ii=o.stencil_mask,Ci=s.stencil_mask,yr=x.next,yr?n.bindFramebuffer(36160,yr.framebuffer):n.bindFramebuffer(36160,null),x.cur=yr,br=h,Ut=0;for(var nn=0;nn{nVe.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt,Nt,it,Ke,kt;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,x=t.elements,b=t.buffer,v=t.shader,k=t.attributes,E=t.vao,T=t.uniforms,L=t.framebuffer,_=t.extensions,C=t.timer,M=t.isBufferArgs,m=h.blend_color,P=d.blend_color,A=h.blend_equation,B=d.blend_equation,F=h.blend_func,U=d.blend_func,G=h.depth_range,j=d.depth_range,H=h.colorMask,N=d.colorMask,W=h.polygonOffset_offset,re=d.polygonOffset_offset,ae=h.sample_coverage,be=d.sample_coverage,Pe=h.stencil_func,Ce=d.stencil_func,de=h.stencil_opFront,te=d.stencil_opFront,ke=h.stencil_opBack,Ee=d.stencil_opBack,Me=h.scissor_box,Ne=d.scissor_box,Fe=h.viewport,ye=d.viewport,Ve={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ce={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ye={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},nt={add:32774,subtract:32778,"reverse subtract":32779},gt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Nt={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},it={cw:2304,ccw:2305},Ke={},kt={},{draw:function(Tt){var St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut;if(St=Tt.framebuffer,Dt=L.getFramebuffer(St),Zt=L.next,L.next=Dt,Et=f.framebufferWidth,f.framebufferWidth=Dt?Dt.width:f.drawingBufferWidth,Ae=f.framebufferHeight,f.framebufferHeight=Dt?Dt.height:f.drawingBufferHeight,Dt!==L.cur&&(Dt?l.bindFramebuffer(36160,Dt.framebuffer):l.bindFramebuffer(36160,null),L.cur=Dt),d.dirty){var Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi;Ie=h.dither,Ie!==d.dither&&(Ie?l.enable(3024):l.disable(3024),d.dither=Ie),xe=h.blend_enable,xe!==d.blend_enable&&(xe?l.enable(3042):l.disable(3042),d.blend_enable=xe),Oe=m[0],Re=m[1],De=m[2],ct=m[3],(Oe!==P[0]||Re!==P[1]||De!==P[2]||ct!==P[3])&&(l.blendColor(Oe,Re,De,ct),P[0]=Oe,P[1]=Re,P[2]=De,P[3]=ct),ge=A[0],fe=A[1],(ge!==B[0]||fe!==B[1])&&(l.blendEquationSeparate(ge,fe),B[0]=ge,B[1]=fe),pe=F[0],dt=F[1],It=F[2],Pt=F[3],(pe!==U[0]||dt!==U[1]||It!==U[2]||Pt!==U[3])&&(l.blendFuncSeparate(pe,dt,It,Pt),U[0]=pe,U[1]=dt,U[2]=It,U[3]=Pt),rr=h.depth_enable,rr!==d.depth_enable&&(rr?l.enable(2929):l.disable(2929),d.depth_enable=rr),Hr=h.depth_func,Hr!==d.depth_func&&(l.depthFunc(Hr),d.depth_func=Hr),Dr=G[0],Mr=G[1],(Dr!==j[0]||Mr!==j[1])&&(l.depthRange(Dr,Mr),j[0]=Dr,j[1]=Mr),Fr=h.depth_mask,Fr!==d.depth_mask&&(l.depthMask(Fr),d.depth_mask=Fr),di=H[0],Di=H[1],Ii=H[2],Ci=H[3],(di!==N[0]||Di!==N[1]||Ii!==N[2]||Ci!==N[3])&&(l.colorMask(di,Di,Ii,Ci),N[0]=di,N[1]=Di,N[2]=Ii,N[3]=Ci),nn=h.cull_enable,nn!==d.cull_enable&&(nn?l.enable(2884):l.disable(2884),d.cull_enable=nn),ii=h.cull_face,ii!==d.cull_face&&(l.cullFace(ii),d.cull_face=ii),wi=h.frontFace,wi!==d.frontFace&&(l.frontFace(wi),d.frontFace=wi),Gi=h.lineWidth,Gi!==d.lineWidth&&(l.lineWidth(Gi),d.lineWidth=Gi),Bt=h.polygonOffset_enable,Bt!==d.polygonOffset_enable&&(Bt?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Bt),yt=W[0],Vt=W[1],(yt!==re[0]||Vt!==re[1])&&(l.polygonOffset(yt,Vt),re[0]=yt,re[1]=Vt),Wt=h.sample_alpha,Wt!==d.sample_alpha&&(Wt?l.enable(32926):l.disable(32926),d.sample_alpha=Wt),_r=h.sample_enable,_r!==d.sample_enable&&(_r?l.enable(32928):l.disable(32928),d.sample_enable=_r),Lr=ae[0],Ur=ae[1],(Lr!==be[0]||Ur!==be[1])&&(l.sampleCoverage(Lr,Ur),be[0]=Lr,be[1]=Ur),Ir=h.stencil_enable,Ir!==d.stencil_enable&&(Ir?l.enable(2960):l.disable(2960),d.stencil_enable=Ir),Gr=h.stencil_mask,Gr!==d.stencil_mask&&(l.stencilMask(Gr),d.stencil_mask=Gr),jr=Pe[0],yi=Pe[1],Ei=Pe[2],(jr!==Ce[0]||yi!==Ce[1]||Ei!==Ce[2])&&(l.stencilFunc(jr,yi,Ei),Ce[0]=jr,Ce[1]=yi,Ce[2]=Ei),Vi=de[0],ti=de[1],en=de[2],Yr=de[3],(Vi!==te[0]||ti!==te[1]||en!==te[2]||Yr!==te[3])&&(l.stencilOpSeparate(Vi,ti,en,Yr),te[0]=Vi,te[1]=ti,te[2]=en,te[3]=Yr),oi=ke[0],Bi=ke[1],an=ke[2],rn=ke[3],(oi!==Ee[0]||Bi!==Ee[1]||an!==Ee[2]||rn!==Ee[3])&&(l.stencilOpSeparate(oi,Bi,an,rn),Ee[0]=oi,Ee[1]=Bi,Ee[2]=an,Ee[3]=rn),Fi=h.scissor_enable,Fi!==d.scissor_enable&&(Fi?l.enable(3089):l.disable(3089),d.scissor_enable=Fi)}at=f.framebufferWidth,wt=f.framebufferHeight,vt=f.viewportWidth,f.viewportWidth=at,st=f.viewportHeight,f.viewportHeight=wt,l.viewport(0,0,at,wt),ye[0]=0,ye[1]=0,ye[2]=at,ye[3]=wt,Ue=f.framebufferWidth,rt=f.framebufferHeight,l.scissor(0,0,Ue,rt),Ne[0]=0,Ne[1]=0,Ne[2]=Ue,Ne[3]=rt,$e=d.profile,$e&&(zt=performance.now(),r.count++),Yt=v.frag,hr=v.vert,yr=v.program(hr,Yt),l.useProgram(yr.program),E.setVAO(null),br=yr.id,Ut=Ke[br],Ut?Ut.call(this,Tt):(Ut=Ke[br]=n(yr),Ut.call(this,Tt)),d.dirty=!0,E.setVAO(null),L.next=Zt,f.framebufferWidth=Et,f.framebufferHeight=Ae,f.viewportWidth=vt,f.viewportHeight=st,$e&&(r.cpuTime+=performance.now()-zt)},scope:function(Tt,St,Dt){var Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De;Zt=Tt.framebuffer,Et=L.getFramebuffer(Zt),Ae=L.next,L.next=Et,at=f.framebufferWidth,f.framebufferWidth=Et?Et.width:f.drawingBufferWidth,wt=f.framebufferHeight,f.framebufferHeight=Et?Et.height:f.drawingBufferHeight,vt=f.framebufferWidth,st=f.framebufferHeight,Ue=f.viewportWidth,f.viewportWidth=vt,rt=f.viewportHeight,f.viewportHeight=st,$e=Fe[0],Fe[0]=i,zt=Fe[1],Fe[1]=a,Yt=Fe[2],Fe[2]=vt,hr=Fe[3],Fe[3]=st,yr=f.framebufferWidth,br=f.framebufferHeight,Ut=Me[0],Me[0]=o,Ie=Me[1],Me[1]=s,xe=Me[2],Me[2]=yr,Oe=Me[3],Me[3]=br,Re=d.profile,Re&&(De=performance.now(),r.count++),d.dirty=!0,St(f,Tt,Dt),L.next=Ae,f.framebufferWidth=at,f.framebufferHeight=wt,f.viewportWidth=Ue,f.viewportHeight=rt,Fe[0]=$e,Fe[1]=zt,Fe[2]=Yt,Fe[3]=hr,Me[0]=Ut,Me[1]=Ie,Me[2]=xe,Me[3]=Oe,Re&&(r.cpuTime+=performance.now()-De),d.dirty=!0},batch:function(Tt,St){var Dt,Zt,Et,Ae,at,wt,vt;if(d.dirty){var st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi;st=h.dither,st!==d.dither&&(st?l.enable(3024):l.disable(3024),d.dither=st),Ue=h.blend_enable,Ue!==d.blend_enable&&(Ue?l.enable(3042):l.disable(3042),d.blend_enable=Ue),rt=m[0],$e=m[1],zt=m[2],Yt=m[3],(rt!==P[0]||$e!==P[1]||zt!==P[2]||Yt!==P[3])&&(l.blendColor(rt,$e,zt,Yt),P[0]=rt,P[1]=$e,P[2]=zt,P[3]=Yt),hr=A[0],yr=A[1],(hr!==B[0]||yr!==B[1])&&(l.blendEquationSeparate(hr,yr),B[0]=hr,B[1]=yr),br=F[0],Ut=F[1],Ie=F[2],xe=F[3],(br!==U[0]||Ut!==U[1]||Ie!==U[2]||xe!==U[3])&&(l.blendFuncSeparate(br,Ut,Ie,xe),U[0]=br,U[1]=Ut,U[2]=Ie,U[3]=xe),Oe=h.depth_enable,Oe!==d.depth_enable&&(Oe?l.enable(2929):l.disable(2929),d.depth_enable=Oe),Re=h.depth_func,Re!==d.depth_func&&(l.depthFunc(Re),d.depth_func=Re),De=G[0],ct=G[1],(De!==j[0]||ct!==j[1])&&(l.depthRange(De,ct),j[0]=De,j[1]=ct),ge=h.depth_mask,ge!==d.depth_mask&&(l.depthMask(ge),d.depth_mask=ge),fe=H[0],pe=H[1],dt=H[2],It=H[3],(fe!==N[0]||pe!==N[1]||dt!==N[2]||It!==N[3])&&(l.colorMask(fe,pe,dt,It),N[0]=fe,N[1]=pe,N[2]=dt,N[3]=It),Pt=h.cull_enable,Pt!==d.cull_enable&&(Pt?l.enable(2884):l.disable(2884),d.cull_enable=Pt),rr=h.cull_face,rr!==d.cull_face&&(l.cullFace(rr),d.cull_face=rr),Hr=h.frontFace,Hr!==d.frontFace&&(l.frontFace(Hr),d.frontFace=Hr),Dr=h.lineWidth,Dr!==d.lineWidth&&(l.lineWidth(Dr),d.lineWidth=Dr),Mr=h.polygonOffset_enable,Mr!==d.polygonOffset_enable&&(Mr?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Mr),Fr=W[0],di=W[1],(Fr!==re[0]||di!==re[1])&&(l.polygonOffset(Fr,di),re[0]=Fr,re[1]=di),Di=h.sample_alpha,Di!==d.sample_alpha&&(Di?l.enable(32926):l.disable(32926),d.sample_alpha=Di),Ii=h.sample_enable,Ii!==d.sample_enable&&(Ii?l.enable(32928):l.disable(32928),d.sample_enable=Ii),Ci=ae[0],nn=ae[1],(Ci!==be[0]||nn!==be[1])&&(l.sampleCoverage(Ci,nn),be[0]=Ci,be[1]=nn),ii=h.stencil_enable,ii!==d.stencil_enable&&(ii?l.enable(2960):l.disable(2960),d.stencil_enable=ii),wi=h.stencil_mask,wi!==d.stencil_mask&&(l.stencilMask(wi),d.stencil_mask=wi),Gi=Pe[0],Bt=Pe[1],yt=Pe[2],(Gi!==Ce[0]||Bt!==Ce[1]||yt!==Ce[2])&&(l.stencilFunc(Gi,Bt,yt),Ce[0]=Gi,Ce[1]=Bt,Ce[2]=yt),Vt=de[0],Wt=de[1],_r=de[2],Lr=de[3],(Vt!==te[0]||Wt!==te[1]||_r!==te[2]||Lr!==te[3])&&(l.stencilOpSeparate(Vt,Wt,_r,Lr),te[0]=Vt,te[1]=Wt,te[2]=_r,te[3]=Lr),Ur=ke[0],Ir=ke[1],Gr=ke[2],jr=ke[3],(Ur!==Ee[0]||Ir!==Ee[1]||Gr!==Ee[2]||jr!==Ee[3])&&(l.stencilOpSeparate(Ur,Ir,Gr,jr),Ee[0]=Ur,Ee[1]=Ir,Ee[2]=Gr,Ee[3]=jr),yi=h.scissor_enable,yi!==d.scissor_enable&&(yi?l.enable(3089):l.disable(3089),d.scissor_enable=yi)}Dt=d.profile,Dt&&(Zt=performance.now(),r.count+=St),Et=v.frag,Ae=v.vert,at=v.program(Ae,Et),l.useProgram(at.program),E.setVAO(null),wt=at.id,vt=kt[wt],vt?vt.call(this,Tt,St):(vt=kt[wt]=u(at),vt.call(this,Tt,St)),d.dirty=!0,E.setVAO(null),Dt&&(r.cpuTime+=performance.now()-Zt)}}}});var sVe=Te((Oxr,oVe)=>{oVe.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt;return a=t.gl,o=t.context,s=t.strings,u=t.next,l=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,x=t.vao,b=t.uniforms,v=t.framebuffer,k=t.extensions,E=t.timer,T=t.isBufferArgs,L=u.blend_color,_=l.blend_color,C=u.blend_equation,M=l.blend_equation,m=u.blend_func,P=l.blend_func,A=u.depth_range,B=l.depth_range,F=u.colorMask,U=l.colorMask,G=u.polygonOffset_offset,j=l.polygonOffset_offset,H=u.sample_coverage,N=l.sample_coverage,W=u.stencil_func,re=l.stencil_func,ae=u.stencil_opFront,be=l.stencil_opFront,Pe=u.stencil_opBack,Ce=l.stencil_opBack,de=u.scissor_box,te=l.scissor_box,ke=u.viewport,Ee=l.viewport,Me={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ne={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Fe={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},ye={add:32774,subtract:32778,"reverse subtract":32779},Ve={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ce={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ye={cw:2304,ccw:2305},nt={},gt={},{draw:function(Nt){var it,Ke,kt,Tt,St,Dt,Zt,Et;if(it=v.next,it!==v.cur&&(it?a.bindFramebuffer(36160,it.framebuffer):a.bindFramebuffer(36160,null),v.cur=it),l.dirty){var Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en;Ae=u.dither,Ae!==l.dither&&(Ae?a.enable(3024):a.disable(3024),l.dither=Ae),at=u.blend_enable,at!==l.blend_enable&&(at?a.enable(3042):a.disable(3042),l.blend_enable=at),wt=L[0],vt=L[1],st=L[2],Ue=L[3],(wt!==_[0]||vt!==_[1]||st!==_[2]||Ue!==_[3])&&(a.blendColor(wt,vt,st,Ue),_[0]=wt,_[1]=vt,_[2]=st,_[3]=Ue),rt=C[0],$e=C[1],(rt!==M[0]||$e!==M[1])&&(a.blendEquationSeparate(rt,$e),M[0]=rt,M[1]=$e),zt=m[0],Yt=m[1],hr=m[2],yr=m[3],(zt!==P[0]||Yt!==P[1]||hr!==P[2]||yr!==P[3])&&(a.blendFuncSeparate(zt,Yt,hr,yr),P[0]=zt,P[1]=Yt,P[2]=hr,P[3]=yr),br=u.depth_enable,br!==l.depth_enable&&(br?a.enable(2929):a.disable(2929),l.depth_enable=br),Ut=u.depth_func,Ut!==l.depth_func&&(a.depthFunc(Ut),l.depth_func=Ut),Ie=A[0],xe=A[1],(Ie!==B[0]||xe!==B[1])&&(a.depthRange(Ie,xe),B[0]=Ie,B[1]=xe),Oe=u.depth_mask,Oe!==l.depth_mask&&(a.depthMask(Oe),l.depth_mask=Oe),Re=F[0],De=F[1],ct=F[2],ge=F[3],(Re!==U[0]||De!==U[1]||ct!==U[2]||ge!==U[3])&&(a.colorMask(Re,De,ct,ge),U[0]=Re,U[1]=De,U[2]=ct,U[3]=ge),fe=u.cull_enable,fe!==l.cull_enable&&(fe?a.enable(2884):a.disable(2884),l.cull_enable=fe),pe=u.cull_face,pe!==l.cull_face&&(a.cullFace(pe),l.cull_face=pe),dt=u.frontFace,dt!==l.frontFace&&(a.frontFace(dt),l.frontFace=dt),It=u.lineWidth,It!==l.lineWidth&&(a.lineWidth(It),l.lineWidth=It),Pt=u.polygonOffset_enable,Pt!==l.polygonOffset_enable&&(Pt?a.enable(32823):a.disable(32823),l.polygonOffset_enable=Pt),rr=G[0],Hr=G[1],(rr!==j[0]||Hr!==j[1])&&(a.polygonOffset(rr,Hr),j[0]=rr,j[1]=Hr),Dr=u.sample_alpha,Dr!==l.sample_alpha&&(Dr?a.enable(32926):a.disable(32926),l.sample_alpha=Dr),Mr=u.sample_enable,Mr!==l.sample_enable&&(Mr?a.enable(32928):a.disable(32928),l.sample_enable=Mr),Fr=H[0],di=H[1],(Fr!==N[0]||di!==N[1])&&(a.sampleCoverage(Fr,di),N[0]=Fr,N[1]=di),Di=u.stencil_enable,Di!==l.stencil_enable&&(Di?a.enable(2960):a.disable(2960),l.stencil_enable=Di),Ii=u.stencil_mask,Ii!==l.stencil_mask&&(a.stencilMask(Ii),l.stencil_mask=Ii),Ci=W[0],nn=W[1],ii=W[2],(Ci!==re[0]||nn!==re[1]||ii!==re[2])&&(a.stencilFunc(Ci,nn,ii),re[0]=Ci,re[1]=nn,re[2]=ii),wi=ae[0],Gi=ae[1],Bt=ae[2],yt=ae[3],(wi!==be[0]||Gi!==be[1]||Bt!==be[2]||yt!==be[3])&&(a.stencilOpSeparate(wi,Gi,Bt,yt),be[0]=wi,be[1]=Gi,be[2]=Bt,be[3]=yt),Vt=Pe[0],Wt=Pe[1],_r=Pe[2],Lr=Pe[3],(Vt!==Ce[0]||Wt!==Ce[1]||_r!==Ce[2]||Lr!==Ce[3])&&(a.stencilOpSeparate(Vt,Wt,_r,Lr),Ce[0]=Vt,Ce[1]=Wt,Ce[2]=_r,Ce[3]=Lr),Ur=u.scissor_enable,Ur!==l.scissor_enable&&(Ur?a.enable(3089):a.disable(3089),l.scissor_enable=Ur),Ir=de[0],Gr=de[1],jr=de[2],yi=de[3],(Ir!==te[0]||Gr!==te[1]||jr!==te[2]||yi!==te[3])&&(a.scissor(Ir,Gr,jr,yi),te[0]=Ir,te[1]=Gr,te[2]=jr,te[3]=yi),Ei=ke[0],Vi=ke[1],ti=ke[2],en=ke[3],(Ei!==Ee[0]||Vi!==Ee[1]||ti!==Ee[2]||en!==Ee[3])&&(a.viewport(Ei,Vi,ti,en),Ee[0]=Ei,Ee[1]=Vi,Ee[2]=ti,Ee[3]=en),l.dirty=!1}Ke=l.profile,Ke&&(kt=performance.now(),r.count++),Tt=d.frag,St=d.vert,Dt=d.program(St,Tt),a.useProgram(Dt.program),x.setVAO(null),Zt=Dt.id,Et=nt[Zt],Et?Et.call(this,Nt):(Et=nt[Zt]=n(Dt),Et.call(this,Nt)),x.setVAO(null),Ke&&(r.cpuTime+=performance.now()-kt)},scope:function(Nt,it,Ke){var kt,Tt;kt=l.profile,kt&&(Tt=performance.now(),r.count++),it(o,Nt,Ke),kt&&(r.cpuTime+=performance.now()-Tt)},batch:function(Nt,it){var Ke,kt,Tt,St,Dt,Zt,Et,Ae;if(Ke=v.next,Ke!==v.cur&&(Ke?a.bindFramebuffer(36160,Ke.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ke),l.dirty){var at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr;at=u.dither,at!==l.dither&&(at?a.enable(3024):a.disable(3024),l.dither=at),wt=u.blend_enable,wt!==l.blend_enable&&(wt?a.enable(3042):a.disable(3042),l.blend_enable=wt),vt=L[0],st=L[1],Ue=L[2],rt=L[3],(vt!==_[0]||st!==_[1]||Ue!==_[2]||rt!==_[3])&&(a.blendColor(vt,st,Ue,rt),_[0]=vt,_[1]=st,_[2]=Ue,_[3]=rt),$e=C[0],zt=C[1],($e!==M[0]||zt!==M[1])&&(a.blendEquationSeparate($e,zt),M[0]=$e,M[1]=zt),Yt=m[0],hr=m[1],yr=m[2],br=m[3],(Yt!==P[0]||hr!==P[1]||yr!==P[2]||br!==P[3])&&(a.blendFuncSeparate(Yt,hr,yr,br),P[0]=Yt,P[1]=hr,P[2]=yr,P[3]=br),Ut=u.depth_enable,Ut!==l.depth_enable&&(Ut?a.enable(2929):a.disable(2929),l.depth_enable=Ut),Ie=u.depth_func,Ie!==l.depth_func&&(a.depthFunc(Ie),l.depth_func=Ie),xe=A[0],Oe=A[1],(xe!==B[0]||Oe!==B[1])&&(a.depthRange(xe,Oe),B[0]=xe,B[1]=Oe),Re=u.depth_mask,Re!==l.depth_mask&&(a.depthMask(Re),l.depth_mask=Re),De=F[0],ct=F[1],ge=F[2],fe=F[3],(De!==U[0]||ct!==U[1]||ge!==U[2]||fe!==U[3])&&(a.colorMask(De,ct,ge,fe),U[0]=De,U[1]=ct,U[2]=ge,U[3]=fe),pe=u.cull_enable,pe!==l.cull_enable&&(pe?a.enable(2884):a.disable(2884),l.cull_enable=pe),dt=u.cull_face,dt!==l.cull_face&&(a.cullFace(dt),l.cull_face=dt),It=u.frontFace,It!==l.frontFace&&(a.frontFace(It),l.frontFace=It),Pt=u.lineWidth,Pt!==l.lineWidth&&(a.lineWidth(Pt),l.lineWidth=Pt),rr=u.polygonOffset_enable,rr!==l.polygonOffset_enable&&(rr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=rr),Hr=G[0],Dr=G[1],(Hr!==j[0]||Dr!==j[1])&&(a.polygonOffset(Hr,Dr),j[0]=Hr,j[1]=Dr),Mr=u.sample_alpha,Mr!==l.sample_alpha&&(Mr?a.enable(32926):a.disable(32926),l.sample_alpha=Mr),Fr=u.sample_enable,Fr!==l.sample_enable&&(Fr?a.enable(32928):a.disable(32928),l.sample_enable=Fr),di=H[0],Di=H[1],(di!==N[0]||Di!==N[1])&&(a.sampleCoverage(di,Di),N[0]=di,N[1]=Di),Ii=u.stencil_enable,Ii!==l.stencil_enable&&(Ii?a.enable(2960):a.disable(2960),l.stencil_enable=Ii),Ci=u.stencil_mask,Ci!==l.stencil_mask&&(a.stencilMask(Ci),l.stencil_mask=Ci),nn=W[0],ii=W[1],wi=W[2],(nn!==re[0]||ii!==re[1]||wi!==re[2])&&(a.stencilFunc(nn,ii,wi),re[0]=nn,re[1]=ii,re[2]=wi),Gi=ae[0],Bt=ae[1],yt=ae[2],Vt=ae[3],(Gi!==be[0]||Bt!==be[1]||yt!==be[2]||Vt!==be[3])&&(a.stencilOpSeparate(Gi,Bt,yt,Vt),be[0]=Gi,be[1]=Bt,be[2]=yt,be[3]=Vt),Wt=Pe[0],_r=Pe[1],Lr=Pe[2],Ur=Pe[3],(Wt!==Ce[0]||_r!==Ce[1]||Lr!==Ce[2]||Ur!==Ce[3])&&(a.stencilOpSeparate(Wt,_r,Lr,Ur),Ce[0]=Wt,Ce[1]=_r,Ce[2]=Lr,Ce[3]=Ur),Ir=u.scissor_enable,Ir!==l.scissor_enable&&(Ir?a.enable(3089):a.disable(3089),l.scissor_enable=Ir),Gr=de[0],jr=de[1],yi=de[2],Ei=de[3],(Gr!==te[0]||jr!==te[1]||yi!==te[2]||Ei!==te[3])&&(a.scissor(Gr,jr,yi,Ei),te[0]=Gr,te[1]=jr,te[2]=yi,te[3]=Ei),Vi=ke[0],ti=ke[1],en=ke[2],Yr=ke[3],(Vi!==Ee[0]||ti!==Ee[1]||en!==Ee[2]||Yr!==Ee[3])&&(a.viewport(Vi,ti,en,Yr),Ee[0]=Vi,Ee[1]=ti,Ee[2]=en,Ee[3]=Yr),l.dirty=!1}kt=l.profile,kt&&(Tt=performance.now(),r.count+=it),St=d.frag,Dt=d.vert,Zt=d.program(Dt,St),a.useProgram(Zt.program),x.setVAO(null),Et=Zt.id,Ae=gt[Et],Ae?Ae.call(this,Nt,it):(Ae=gt[Et]=i(Zt),Ae.call(this,Nt,it)),x.setVAO(null),kt&&(r.cpuTime+=performance.now()-Tt)}}}});var uVe=Te((qxr,lVe)=>{lVe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ye,nt,gt,Nt,it,Ke,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so){"use strict";var Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa;return Kr=t.gl,Ia=t.context,Yo=t.strings,fa=t.next,kn=t.current,Ta=t.draw,ys=t.elements,uo=t.buffer,ls=t.shader,$a=t.attributes,fo=t.vao,mn=t.uniforms,ra=t.framebuffer,wa=t.extensions,ws=t.timer,Co=t.isBufferArgs,Po=fa.blend_color,ji=kn.blend_color,gn=fa.blend_equation,Ps=kn.blend_equation,Ha=fa.blend_func,Sn=kn.blend_func,ao=fa.depth_range,Ba=kn.depth_range,Ko=fa.colorMask,Qo=kn.colorMask,Wi=fa.polygonOffset_offset,Sa=kn.polygonOffset_offset,Qa=fa.sample_coverage,vn=kn.sample_coverage,da=fa.stencil_func,la=kn.stencil_func,vo=fa.stencil_opFront,As=kn.stencil_opFront,ps=fa.stencil_opBack,co=kn.stencil_opBack,mo=fa.scissor_box,No=kn.scissor_box,jn=fa.viewport,Go=kn.viewport,Ys={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},qs={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ns={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Oa={add:32774,subtract:32778,"reverse subtract":32779},ha={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Vs={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ya={cw:2304,ccw:2305},_n={},Vn={},wo=new Float32Array(16),Ra=new Float32Array(16),Xn=new Float32Array(16),un=new Float32Array(16),$n=new Float32Array(16),Ka=new Float32Array(16),qn=new Float32Array(16),Eo=new Float32Array(16),Ja=new Float32Array(16),lo=new Float32Array(16),eo=new Float32Array(16),sa=new Float32Array(16),es=new Float32Array(16),Na=new Float32Array(16),tn=new Float32Array(16),Pa=new Float32Array(16),to=new Float32Array(16),yo=new Float32Array(16),Jo=new Float32Array(16),Ao=new Float32Array(16),Dn=new Float32Array(16),_a=new Float32Array(16),Ws=new Float32Array(16),Ca=new Float32Array(16),Es=new Float32Array(16),Ts=new Float32Array(16),Ho=new Float32Array(16),Wa=new Float32Array(16),To=new Float32Array(16),ts=new Float32Array(16),Wo=new Float32Array(16),qa=new Float32Array(16),{draw:function(ln){var Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js;if(Bo=ra.next,Bo!==ra.cur&&(Bo?Kr.bindFramebuffer(36160,Bo.framebuffer):Kr.bindFramebuffer(36160,null),ra.cur=Bo),kn.dirty){var cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir;cs=Ko[0],sl=Ko[1],ll=Ko[2],il=Ko[3],(cs!==Qo[0]||sl!==Qo[1]||ll!==Qo[2]||il!==Qo[3])&&(Kr.colorMask(cs,sl,ll,il),Qo[0]=cs,Qo[1]=sl,Qo[2]=ll,Qo[3]=il),zl=fa.frontFace,zl!==kn.frontFace&&(Kr.frontFace(zl),kn.frontFace=zl),Ml=fa.polygonOffset_enable,Ml!==kn.polygonOffset_enable&&(Ml?Kr.enable(32823):Kr.disable(32823),kn.polygonOffset_enable=Ml),Rl=Wi[0],Al=Wi[1],(Rl!==Sa[0]||Al!==Sa[1])&&(Kr.polygonOffset(Rl,Al),Sa[0]=Rl,Sa[1]=Al),Ll=fa.sample_alpha,Ll!==kn.sample_alpha&&(Ll?Kr.enable(32926):Kr.disable(32926),kn.sample_alpha=Ll),ms=fa.sample_enable,ms!==kn.sample_enable&&(ms?Kr.enable(32928):Kr.disable(32928),kn.sample_enable=ms),Os=Qa[0],Xl=Qa[1],(Os!==vn[0]||Xl!==vn[1])&&(Kr.sampleCoverage(Os,Xl),vn[0]=Os,vn[1]=Xl),Gl=fa.stencil_enable,Gl!==kn.stencil_enable&&(Gl?Kr.enable(2960):Kr.disable(2960),kn.stencil_enable=Gl),Ul=fa.stencil_mask,Ul!==kn.stencil_mask&&(Kr.stencilMask(Ul),kn.stencil_mask=Ul),le=da[0],w=da[1],q=da[2],(le!==la[0]||w!==la[1]||q!==la[2])&&(Kr.stencilFunc(le,w,q),la[0]=le,la[1]=w,la[2]=q),Q=vo[0],ee=vo[1],ue=vo[2],Ge=vo[3],(Q!==As[0]||ee!==As[1]||ue!==As[2]||Ge!==As[3])&&(Kr.stencilOpSeparate(Q,ee,ue,Ge),As[0]=Q,As[1]=ee,As[2]=ue,As[3]=Ge),et=ps[0],mt=ps[1],Ft=ps[2],ir=ps[3],(et!==co[0]||mt!==co[1]||Ft!==co[2]||ir!==co[3])&&(Kr.stencilOpSeparate(et,mt,Ft,ir),co[0]=et,co[1]=mt,co[2]=Ft,co[3]=ir)}ko=ln.viewportX,_n.x=ko,oo=ln.viewportY,_n.y=oo,za=ln.viewportWidth,_n.width=za,ea=ln.viewportHeight,_n.height=ea,rs=_n.x|0,$s=_n.y|0,us="width"in _n?_n.width|0:Ia.framebufferWidth-rs,Ds="height"in _n?_n.height|0:Ia.framebufferHeight-$s,fl=Ia.viewportWidth,Ia.viewportWidth=us,as=Ia.viewportHeight,Ia.viewportHeight=Ds,Kr.viewport(rs,$s,us,Ds),Go[0]=rs,Go[1]=$s,Go[2]=us,Go[3]=Ds,Kr.blendColor(0,0,0,0),ji[0]=0,ji[1]=0,ji[2]=0,ji[3]=0,n?Kr.enable(3042):Kr.disable(3042),kn.blend_enable=n,Kr.blendEquationSeparate(32774,32774),Ps[0]=32774,Ps[1]=32774,Kr.blendFuncSeparate(770,771,1,1),Sn[0]=770,Sn[1]=771,Sn[2]=1,Sn[3]=1,i?Kr.enable(2884):Kr.disable(2884),kn.cull_enable=i,Kr.cullFace(a),kn.cull_face=a,o?Kr.enable(2929):Kr.disable(2929),kn.depth_enable=o,Kr.depthFunc(s),kn.depth_func=s,Kr.depthMask(u),kn.depth_mask=u,Kr.depthRange(0,1),Ba[0]=0,Ba[1]=1,l?Kr.enable(3024):Kr.disable(3024),kn.dither=l,Kr.lineWidth(f),kn.lineWidth=f,Ma=ln.scissorX,Vn.x=Ma,Qs=ln.scissorY,Vn.y=Qs,ho=ln.scissorWidth,Vn.width=ho,gs=ln.scissorHeight,Vn.height=gs,Vo=Vn.x|0,Do=Vn.y|0,Lo="width"in Vn?Vn.width|0:Ia.framebufferWidth-Vo,xs="height"in Vn?Vn.height|0:Ia.framebufferHeight-Do,Kr.scissor(Vo,Do,Lo,xs),No[0]=Vo,No[1]=Do,No[2]=Lo,No[3]=xs,c?Kr.enable(3089):Kr.disable(3089),kn.scissor_enable=c,ks=kn.profile,kn.profile=!1,Kr.useProgram(h.program),fo.setVAO(null),Ea=p.location,Jn=$a[Ea],Jn.buffer||Kr.enableVertexAttribArray(Ea),(Jn.type!==d.dtype||Jn.size!==4||Jn.buffer!==d||Jn.normalized!==!1||Jn.offset!==0||Jn.stride!==0)&&(Kr.bindBuffer(34962,d.buffer),Kr.vertexAttribPointer(Ea,4,d.dtype,!1,0,0),Jn.type=d.dtype,Jn.size=4,Jn.buffer=d,Jn.normalized=!1,Jn.offset=0,Jn.stride=0),Oo=b.location,rl=$a[Oo],rl.buffer||Kr.enableVertexAttribArray(Oo),(rl.type!==x.dtype||rl.size!==4||rl.buffer!==x||rl.normalized!==!1||rl.offset!==0||rl.stride!==0)&&(Kr.bindBuffer(34962,x.buffer),Kr.vertexAttribPointer(Oo,4,x.dtype,!1,0,0),rl.type=x.dtype,rl.size=4,rl.buffer=x,rl.normalized=!1,rl.offset=0,rl.stride=0),Gs=k.location,bs=$a[Gs],bs.buffer||Kr.enableVertexAttribArray(Gs),(bs.type!==v.dtype||bs.size!==4||bs.buffer!==v||bs.normalized!==!1||bs.offset!==0||bs.stride!==0)&&(Kr.bindBuffer(34962,v.buffer),Kr.vertexAttribPointer(Gs,4,v.dtype,!1,0,0),bs.type=v.dtype,bs.size=4,bs.buffer=v,bs.normalized=!1,bs.offset=0,bs.stride=0),zs=T.location,$o=$a[zs],$o.buffer||Kr.enableVertexAttribArray(zs),($o.type!==E.dtype||$o.size!==4||$o.buffer!==E||$o.normalized!==!1||$o.offset!==0||$o.stride!==0)&&(Kr.bindBuffer(34962,E.buffer),Kr.vertexAttribPointer(zs,4,E.dtype,!1,0,0),$o.type=E.dtype,$o.size=4,$o.buffer=E,$o.normalized=!1,$o.offset=0,$o.stride=0),Aa=_.location,os=$a[Aa],os.buffer||Kr.enableVertexAttribArray(Aa),(os.type!==L.dtype||os.size!==4||os.buffer!==L||os.normalized!==!1||os.offset!==0||os.stride!==0)&&(Kr.bindBuffer(34962,L.buffer),Kr.vertexAttribPointer(Aa,4,L.dtype,!1,0,0),os.type=L.dtype,os.size=4,os.buffer=L,os.normalized=!1,os.offset=0,os.stride=0),_l=M.location,Ss=$a[_l],Ss.buffer||Kr.enableVertexAttribArray(_l),(Ss.type!==C.dtype||Ss.size!==4||Ss.buffer!==C||Ss.normalized!==!1||Ss.offset!==0||Ss.stride!==0)&&(Kr.bindBuffer(34962,C.buffer),Kr.vertexAttribPointer(_l,4,C.dtype,!1,0,0),Ss.type=C.dtype,Ss.size=4,Ss.buffer=C,Ss.normalized=!1,Ss.offset=0,Ss.stride=0),po=P.location,go=$a[po],go.buffer||Kr.enableVertexAttribArray(po),(go.type!==m.dtype||go.size!==4||go.buffer!==m||go.normalized!==!1||go.offset!==0||go.stride!==0)&&(Kr.bindBuffer(34962,m.buffer),Kr.vertexAttribPointer(po,4,m.dtype,!1,0,0),go.type=m.dtype,go.size=4,go.buffer=m,go.normalized=!1,go.offset=0,go.stride=0),ss=B.location,qo=$a[ss],qo.buffer||Kr.enableVertexAttribArray(ss),(qo.type!==A.dtype||qo.size!==4||qo.buffer!==A||qo.normalized!==!1||qo.offset!==0||qo.stride!==0)&&(Kr.bindBuffer(34962,A.buffer),Kr.vertexAttribPointer(ss,4,A.dtype,!1,0,0),qo.type=A.dtype,qo.size=4,qo.buffer=A,qo.normalized=!1,qo.offset=0,qo.stride=0),zo=U.location,io=$a[zo],io.buffer||Kr.enableVertexAttribArray(zo),(io.type!==F.dtype||io.size!==4||io.buffer!==F||io.normalized!==!1||io.offset!==0||io.stride!==0)&&(Kr.bindBuffer(34962,F.buffer),Kr.vertexAttribPointer(zo,4,F.dtype,!1,0,0),io.type=F.dtype,io.size=4,io.buffer=F,io.normalized=!1,io.offset=0,io.stride=0),Io=j.location,Da=$a[Io],Da.buffer||Kr.enableVertexAttribArray(Io),(Da.type!==G.dtype||Da.size!==4||Da.buffer!==G||Da.normalized!==!1||Da.offset!==0||Da.stride!==0)&&(Kr.bindBuffer(34962,G.buffer),Kr.vertexAttribPointer(Io,4,G.dtype,!1,0,0),Da.type=G.dtype,Da.size=4,Da.buffer=G,Da.normalized=!1,Da.offset=0,Da.stride=0),vs=N.location,fs=$a[vs],fs.buffer||Kr.enableVertexAttribArray(vs),(fs.type!==H.dtype||fs.size!==4||fs.buffer!==H||fs.normalized!==!1||fs.offset!==0||fs.stride!==0)&&(Kr.bindBuffer(34962,H.buffer),Kr.vertexAttribPointer(vs,4,H.dtype,!1,0,0),fs.type=H.dtype,fs.size=4,fs.buffer=H,fs.normalized=!1,fs.offset=0,fs.stride=0),cl=re.location,el=$a[cl],el.buffer||Kr.enableVertexAttribArray(cl),(el.type!==W.dtype||el.size!==4||el.buffer!==W||el.normalized!==!1||el.offset!==0||el.stride!==0)&&(Kr.bindBuffer(34962,W.buffer),Kr.vertexAttribPointer(cl,4,W.dtype,!1,0,0),el.type=W.dtype,el.size=4,el.buffer=W,el.normalized=!1,el.offset=0,el.stride=0),Hs=be.location,Ro=$a[Hs],Ro.buffer||Kr.enableVertexAttribArray(Hs),(Ro.type!==ae.dtype||Ro.size!==4||Ro.buffer!==ae||Ro.normalized!==!1||Ro.offset!==0||Ro.stride!==0)&&(Kr.bindBuffer(34962,ae.buffer),Kr.vertexAttribPointer(Hs,4,ae.dtype,!1,0,0),Ro.type=ae.dtype,Ro.size=4,Ro.buffer=ae,Ro.normalized=!1,Ro.offset=0,Ro.stride=0),tl=Ce.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==Pe.dtype||Fs.size!==4||Fs.buffer!==Pe||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,Pe.buffer),Kr.vertexAttribPointer(tl,4,Pe.dtype,!1,0,0),Fs.type=Pe.dtype,Fs.size=4,Fs.buffer=Pe,Fs.normalized=!1,Fs.offset=0,Fs.stride=0),hl=te.location,Fa=$a[hl],Fa.buffer||Kr.enableVertexAttribArray(hl),(Fa.type!==de.dtype||Fa.size!==4||Fa.buffer!==de||Fa.normalized!==!1||Fa.offset!==0||Fa.stride!==0)&&(Kr.bindBuffer(34962,de.buffer),Kr.vertexAttribPointer(hl,4,de.dtype,!1,0,0),Fa.type=de.dtype,Fa.size=4,Fa.buffer=de,Fa.normalized=!1,Fa.offset=0,Fa.stride=0),Ms=Ee.location,jo=$a[Ms],jo.buffer||Kr.enableVertexAttribArray(Ms),(jo.type!==ke.dtype||jo.size!==4||jo.buffer!==ke||jo.normalized!==!1||jo.offset!==0||jo.stride!==0)&&(Kr.bindBuffer(34962,ke.buffer),Kr.vertexAttribPointer(Ms,4,ke.dtype,!1,0,0),jo.type=ke.dtype,jo.size=4,jo.buffer=ke,jo.normalized=!1,jo.offset=0,jo.stride=0),Rs=ln.contextColor,Is=Rs[0],Bs=Rs[1],At=Rs[2],Gt=Rs[3],Kr.uniform4f(Me.location,Is,Bs,At,Gt),wr=ln.dim0A,Kr.uniformMatrix4fv(Ne.location,!1,Array.isArray(wr)||wr instanceof Float32Array?wr:(wo[0]=wr[0],wo[1]=wr[1],wo[2]=wr[2],wo[3]=wr[3],wo[4]=wr[4],wo[5]=wr[5],wo[6]=wr[6],wo[7]=wr[7],wo[8]=wr[8],wo[9]=wr[9],wo[10]=wr[10],wo[11]=wr[11],wo[12]=wr[12],wo[13]=wr[13],wo[14]=wr[14],wo[15]=wr[15],wo)),mr=ln.dim0B,Kr.uniformMatrix4fv(Fe.location,!1,Array.isArray(mr)||mr instanceof Float32Array?mr:(Ra[0]=mr[0],Ra[1]=mr[1],Ra[2]=mr[2],Ra[3]=mr[3],Ra[4]=mr[4],Ra[5]=mr[5],Ra[6]=mr[6],Ra[7]=mr[7],Ra[8]=mr[8],Ra[9]=mr[9],Ra[10]=mr[10],Ra[11]=mr[11],Ra[12]=mr[12],Ra[13]=mr[13],Ra[14]=mr[14],Ra[15]=mr[15],Ra)),Or=ln.dim0C,Kr.uniformMatrix4fv(ye.location,!1,Array.isArray(Or)||Or instanceof Float32Array?Or:(Xn[0]=Or[0],Xn[1]=Or[1],Xn[2]=Or[2],Xn[3]=Or[3],Xn[4]=Or[4],Xn[5]=Or[5],Xn[6]=Or[6],Xn[7]=Or[7],Xn[8]=Or[8],Xn[9]=Or[9],Xn[10]=Or[10],Xn[11]=Or[11],Xn[12]=Or[12],Xn[13]=Or[13],Xn[14]=Or[14],Xn[15]=Or[15],Xn)),gi=ln.dim0D,Kr.uniformMatrix4fv(Ve.location,!1,Array.isArray(gi)||gi instanceof Float32Array?gi:(un[0]=gi[0],un[1]=gi[1],un[2]=gi[2],un[3]=gi[3],un[4]=gi[4],un[5]=gi[5],un[6]=gi[6],un[7]=gi[7],un[8]=gi[8],un[9]=gi[9],un[10]=gi[10],un[11]=gi[11],un[12]=gi[12],un[13]=gi[13],un[14]=gi[14],un[15]=gi[15],un)),Ti=ln.dim1A,Kr.uniformMatrix4fv(ce.location,!1,Array.isArray(Ti)||Ti instanceof Float32Array?Ti:($n[0]=Ti[0],$n[1]=Ti[1],$n[2]=Ti[2],$n[3]=Ti[3],$n[4]=Ti[4],$n[5]=Ti[5],$n[6]=Ti[6],$n[7]=Ti[7],$n[8]=Ti[8],$n[9]=Ti[9],$n[10]=Ti[10],$n[11]=Ti[11],$n[12]=Ti[12],$n[13]=Ti[13],$n[14]=Ti[14],$n[15]=Ti[15],$n)),ki=ln.dim1B,Kr.uniformMatrix4fv(Ye.location,!1,Array.isArray(ki)||ki instanceof Float32Array?ki:(Ka[0]=ki[0],Ka[1]=ki[1],Ka[2]=ki[2],Ka[3]=ki[3],Ka[4]=ki[4],Ka[5]=ki[5],Ka[6]=ki[6],Ka[7]=ki[7],Ka[8]=ki[8],Ka[9]=ki[9],Ka[10]=ki[10],Ka[11]=ki[11],Ka[12]=ki[12],Ka[13]=ki[13],Ka[14]=ki[14],Ka[15]=ki[15],Ka)),Ji=ln.dim1C,Kr.uniformMatrix4fv(nt.location,!1,Array.isArray(Ji)||Ji instanceof Float32Array?Ji:(qn[0]=Ji[0],qn[1]=Ji[1],qn[2]=Ji[2],qn[3]=Ji[3],qn[4]=Ji[4],qn[5]=Ji[5],qn[6]=Ji[6],qn[7]=Ji[7],qn[8]=Ji[8],qn[9]=Ji[9],qn[10]=Ji[10],qn[11]=Ji[11],qn[12]=Ji[12],qn[13]=Ji[13],qn[14]=Ji[14],qn[15]=Ji[15],qn)),Fn=ln.dim1D,Kr.uniformMatrix4fv(gt.location,!1,Array.isArray(Fn)||Fn instanceof Float32Array?Fn:(Eo[0]=Fn[0],Eo[1]=Fn[1],Eo[2]=Fn[2],Eo[3]=Fn[3],Eo[4]=Fn[4],Eo[5]=Fn[5],Eo[6]=Fn[6],Eo[7]=Fn[7],Eo[8]=Fn[8],Eo[9]=Fn[9],Eo[10]=Fn[10],Eo[11]=Fn[11],Eo[12]=Fn[12],Eo[13]=Fn[13],Eo[14]=Fn[14],Eo[15]=Fn[15],Eo)),Pi=ln.drwLayer,Kr.uniform1f(Nt.location,Pi),hi=ln.hiA,Kr.uniformMatrix4fv(it.location,!1,Array.isArray(hi)||hi instanceof Float32Array?hi:(Ja[0]=hi[0],Ja[1]=hi[1],Ja[2]=hi[2],Ja[3]=hi[3],Ja[4]=hi[4],Ja[5]=hi[5],Ja[6]=hi[6],Ja[7]=hi[7],Ja[8]=hi[8],Ja[9]=hi[9],Ja[10]=hi[10],Ja[11]=hi[11],Ja[12]=hi[12],Ja[13]=hi[13],Ja[14]=hi[14],Ja[15]=hi[15],Ja)),Li=ln.hiB,Kr.uniformMatrix4fv(Ke.location,!1,Array.isArray(Li)||Li instanceof Float32Array?Li:(lo[0]=Li[0],lo[1]=Li[1],lo[2]=Li[2],lo[3]=Li[3],lo[4]=Li[4],lo[5]=Li[5],lo[6]=Li[6],lo[7]=Li[7],lo[8]=Li[8],lo[9]=Li[9],lo[10]=Li[10],lo[11]=Li[11],lo[12]=Li[12],lo[13]=Li[13],lo[14]=Li[14],lo[15]=Li[15],lo)),Si=ln.hiC,Kr.uniformMatrix4fv(kt.location,!1,Array.isArray(Si)||Si instanceof Float32Array?Si:(eo[0]=Si[0],eo[1]=Si[1],eo[2]=Si[2],eo[3]=Si[3],eo[4]=Si[4],eo[5]=Si[5],eo[6]=Si[6],eo[7]=Si[7],eo[8]=Si[8],eo[9]=Si[9],eo[10]=Si[10],eo[11]=Si[11],eo[12]=Si[12],eo[13]=Si[13],eo[14]=Si[14],eo[15]=Si[15],eo)),Gn=ln.hiD,Kr.uniformMatrix4fv(Tt.location,!1,Array.isArray(Gn)||Gn instanceof Float32Array?Gn:(sa[0]=Gn[0],sa[1]=Gn[1],sa[2]=Gn[2],sa[3]=Gn[3],sa[4]=Gn[4],sa[5]=Gn[5],sa[6]=Gn[6],sa[7]=Gn[7],sa[8]=Gn[8],sa[9]=Gn[9],sa[10]=Gn[10],sa[11]=Gn[11],sa[12]=Gn[12],sa[13]=Gn[13],sa[14]=Gn[14],sa[15]=Gn[15],sa)),ta=ln.loA,Kr.uniformMatrix4fv(St.location,!1,Array.isArray(ta)||ta instanceof Float32Array?ta:(es[0]=ta[0],es[1]=ta[1],es[2]=ta[2],es[3]=ta[3],es[4]=ta[4],es[5]=ta[5],es[6]=ta[6],es[7]=ta[7],es[8]=ta[8],es[9]=ta[9],es[10]=ta[10],es[11]=ta[11],es[12]=ta[12],es[13]=ta[13],es[14]=ta[14],es[15]=ta[15],es)),ya=ln.loB,Kr.uniformMatrix4fv(Dt.location,!1,Array.isArray(ya)||ya instanceof Float32Array?ya:(Na[0]=ya[0],Na[1]=ya[1],Na[2]=ya[2],Na[3]=ya[3],Na[4]=ya[4],Na[5]=ya[5],Na[6]=ya[6],Na[7]=ya[7],Na[8]=ya[8],Na[9]=ya[9],Na[10]=ya[10],Na[11]=ya[11],Na[12]=ya[12],Na[13]=ya[13],Na[14]=ya[14],Na[15]=ya[15],Na)),ia=ln.loC,Kr.uniformMatrix4fv(Zt.location,!1,Array.isArray(ia)||ia instanceof Float32Array?ia:(tn[0]=ia[0],tn[1]=ia[1],tn[2]=ia[2],tn[3]=ia[3],tn[4]=ia[4],tn[5]=ia[5],tn[6]=ia[6],tn[7]=ia[7],tn[8]=ia[8],tn[9]=ia[9],tn[10]=ia[10],tn[11]=ia[11],tn[12]=ia[12],tn[13]=ia[13],tn[14]=ia[14],tn[15]=ia[15],tn)),pa=ln.loD,Kr.uniformMatrix4fv(Et.location,!1,Array.isArray(pa)||pa instanceof Float32Array?pa:(Pa[0]=pa[0],Pa[1]=pa[1],Pa[2]=pa[2],Pa[3]=pa[3],Pa[4]=pa[4],Pa[5]=pa[5],Pa[6]=pa[6],Pa[7]=pa[7],Pa[8]=pa[8],Pa[9]=pa[9],Pa[10]=pa[10],Pa[11]=pa[11],Pa[12]=pa[12],Pa[13]=pa[13],Pa[14]=pa[14],Pa[15]=pa[15],Pa)),va=ln.maskHeight,Kr.uniform1f(Ae.location,va),zn=ln.maskTexture,zn&&zn._reglType==="framebuffer"&&(zn=zn.color[0]),is=zn._texture,Kr.uniform1i(at.location,is.bind()),Kr.uniform1i(wt.location,vt.bind()),Cs=ln.resolution,Ks=Cs[0],dl=Cs[1],Kr.uniform2f(st.location,Ks,dl),xl=ln.viewBoxPos,Ol=xl[0],bl=xl[1],Kr.uniform2f(Ue.location,Ol,bl),eu=ln.viewBoxSize,Zl=eu[0],Vl=eu[1],Kr.uniform2f(rt.location,Zl,Vl),ja=Ta.elements,ja?Kr.bindBuffer(34963,ja.buffer.buffer):fo.currentVAO&&(ja=ys.getElements(fo.currentVAO.elements),ja&&Kr.bindBuffer(34963,ja.buffer.buffer)),ns=ln.offset,Js=ln.count,Js&&(ja?Kr.drawElements(1,Js,ja.type,ns<<(ja.type-5121>>1)):Kr.drawArrays(1,ns,Js),kn.dirty=!0,fo.setVAO(null),Ia.viewportWidth=fl,Ia.viewportHeight=as,kn.profile=ks,is.unbind(),vt.unbind())},scope:function(ln,Bo,ko){var oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,iu,tu,Wu,Qu,Ju,ju,Xu,lf,xf,ef,tf,Z,se,ze,Xe,Qe,ot,jt,_t,cr,Cr,zr,ui,$r,Oi,fn,vi,zi,Xi,pn,sn,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Zu,Gu,rf,ds,Wl,Au,Tu,uf,df,Ef,vf,fc,Be,qt,ar,Qr,mi,fi,pi,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Wr,_i,dn,En,Yi,ga,Kn,hs,$i,Ui,ro,na,On,In,Va,_s,ul,Qn,Mo,nl,pl,Dl,Fu,mf,Ql,kf,Cu,_f,bf,Lf,Hu,hf,yf,Fl,wf,cu,Y,R,J,O,K,_e,ne,Le,Ze,Ct,dr,Er,lr,Je,ht,bt,Kt,sr,Qt,ur,er,Ot,Jt,Lt,Tr,Nr,ci,Cn,Ki,yn,Xa,ca,Tn,Pn,Nn,xa,Zo,ru,yu,Du,vu,zu,$u,Vf,wd,Ad;oo=ln.viewportX,_n.x=oo,za=ln.viewportY,_n.y=za,ea=ln.viewportWidth,_n.width=ea,rs=ln.viewportHeight,_n.height=rs,$s=_n.x|0,us=_n.y|0,Ds="width"in _n?_n.width|0:Ia.framebufferWidth-$s,fl="height"in _n?_n.height|0:Ia.framebufferHeight-us,as=Ia.viewportWidth,Ia.viewportWidth=Ds,Ma=Ia.viewportHeight,Ia.viewportHeight=fl,Qs=jn[0],jn[0]=$s,ho=jn[1],jn[1]=us,gs=jn[2],jn[2]=Ds,Vo=jn[3],jn[3]=fl,Do=Po[0],Po[0]=$e,Lo=Po[1],Po[1]=zt,xs=Po[2],Po[2]=Yt,ks=Po[3],Po[3]=hr,Ea=fa.blend_enable,fa.blend_enable=yr,Jn=gn[0],gn[0]=br,Oo=gn[1],gn[1]=Ut,rl=Ha[0],Ha[0]=Ie,Gs=Ha[1],Ha[1]=xe,bs=Ha[2],Ha[2]=Oe,zs=Ha[3],Ha[3]=Re,$o=fa.cull_enable,fa.cull_enable=De,Aa=fa.cull_face,fa.cull_face=ct,os=fa.depth_enable,fa.depth_enable=ge,_l=fa.depth_func,fa.depth_func=fe,Ss=fa.depth_mask,fa.depth_mask=pe,po=ao[0],ao[0]=dt,go=ao[1],ao[1]=It,ss=fa.dither,fa.dither=Pt,qo=fa.lineWidth,fa.lineWidth=rr,zo=ln.scissorX,Vn.x=zo,io=ln.scissorY,Vn.y=io,Io=ln.scissorWidth,Vn.width=Io,Da=ln.scissorHeight,Vn.height=Da,vs=Vn.x|0,fs=Vn.y|0,cl="width"in Vn?Vn.width|0:Ia.framebufferWidth-vs,el="height"in Vn?Vn.height|0:Ia.framebufferHeight-fs,Hs=mo[0],mo[0]=vs,Ro=mo[1],mo[1]=fs,tl=mo[2],mo[2]=cl,Fs=mo[3],mo[3]=el,hl=fa.scissor_enable,fa.scissor_enable=Hr,Fa=kn.profile,kn.profile=!1,Ms=ln.offset,jo=Ta.offset,Ta.offset=Ms,Rs=ln.count,Is=Ta.count,Ta.count=Rs,Bs=Ta.primitive,Ta.primitive=Dr,At=mn[Fr],mn[Fr]=Mr,Gt=ln.resolution,wr=mn[di],mn[di]=Gt,mr=ln.viewBoxPos,Or=mn[Di],mn[Di]=mr,gi=ln.viewBoxSize,Ti=mn[Ii],mn[Ii]=gi,ki=ln.dim0A,Ji=mn[Ci],mn[Ci]=ki,Fn=ln.dim1A,Pi=mn[nn],mn[nn]=Fn,hi=ln.dim0B,Li=mn[ii],mn[ii]=hi,Si=ln.dim1B,Gn=mn[wi],mn[wi]=Si,ta=ln.dim0C,ya=mn[Gi],mn[Gi]=ta,ia=ln.dim1C,pa=mn[Bt],mn[Bt]=ia,va=ln.dim0D,zn=mn[yt],mn[yt]=va,is=ln.dim1D,Cs=mn[Vt],mn[Vt]=is,Ks=ln.loA,dl=mn[Wt],mn[Wt]=Ks,xl=ln.hiA,Ol=mn[_r],mn[_r]=xl,bl=ln.loB,eu=mn[Lr],mn[Lr]=bl,Zl=ln.hiB,Vl=mn[Ur],mn[Ur]=Zl,ja=ln.loC,ns=mn[Ir],mn[Ir]=ja,Js=ln.hiC,cs=mn[Gr],mn[Gr]=Js,sl=ln.loD,ll=mn[jr],mn[jr]=sl,il=ln.hiD,zl=mn[yi],mn[yi]=il,Ml=ln.contextColor,Rl=mn[Ei],mn[Ei]=Ml,Al=ln.maskTexture,Ll=mn[Vi],mn[Vi]=Al,ms=ln.drwLayer,Os=mn[ti],mn[ti]=ms,Xl=ln.maskHeight,Gl=mn[en],mn[en]=Xl,Ul=Yr.state,Yr.state=1,le=Yr.x,Yr.x=0,w=Yr.y,Yr.y=0,q=Yr.z,Yr.z=0,Q=Yr.w,Yr.w=0,ee=Yr.buffer,Yr.buffer=x,ue=Yr.size,Yr.size=0,Ge=Yr.normalized,Yr.normalized=!1,et=Yr.type,Yr.type=x.dtype,mt=Yr.offset,Yr.offset=0,Ft=Yr.stride,Yr.stride=0,ir=Yr.divisor,Yr.divisor=0,or=oi.state,oi.state=1,kr=oi.x,oi.x=0,Vr=oi.y,oi.y=0,he=oi.z,oi.z=0,Se=oi.w,oi.w=0,qe=oi.buffer,oi.buffer=v,He=oi.size,oi.size=0,lt=oi.normalized,oi.normalized=!1,tt=oi.type,oi.type=v.dtype,pt=oi.offset,oi.offset=0,Ht=oi.stride,oi.stride=0,nr=oi.divisor,oi.divisor=0,fr=Bi.state,Bi.state=1,Ar=Bi.x,Bi.x=0,Rr=Bi.y,Bi.y=0,ri=Bi.z,Bi.z=0,si=Bi.w,Bi.w=0,Mi=Bi.buffer,Bi.buffer=E,hn=Bi.size,Bi.size=0,Zn=Bi.normalized,Bi.normalized=!1,Yn=Bi.type,Bi.type=E.dtype,Ua=Bi.offset,Bi.offset=0,Fo=Bi.stride,Bi.stride=0,vl=Bi.divisor,Bi.divisor=0,Us=an.state,an.state=1,ml=an.x,an.x=0,au=an.y,an.y=0,Sl=an.z,an.z=0,Yl=an.w,an.w=0,ql=an.buffer,an.buffer=L,ou=an.size,an.size=0,Pu=an.normalized,an.normalized=!1,iu=an.type,an.type=L.dtype,tu=an.offset,an.offset=0,Wu=an.stride,an.stride=0,Qu=an.divisor,an.divisor=0,Ju=rn.state,rn.state=1,ju=rn.x,rn.x=0,Xu=rn.y,rn.y=0,lf=rn.z,rn.z=0,xf=rn.w,rn.w=0,ef=rn.buffer,rn.buffer=C,tf=rn.size,rn.size=0,Z=rn.normalized,rn.normalized=!1,se=rn.type,rn.type=C.dtype,ze=rn.offset,rn.offset=0,Xe=rn.stride,rn.stride=0,Qe=rn.divisor,rn.divisor=0,ot=Fi.state,Fi.state=1,jt=Fi.x,Fi.x=0,_t=Fi.y,Fi.y=0,cr=Fi.z,Fi.z=0,Cr=Fi.w,Fi.w=0,zr=Fi.buffer,Fi.buffer=m,ui=Fi.size,Fi.size=0,$r=Fi.normalized,Fi.normalized=!1,Oi=Fi.type,Fi.type=m.dtype,fn=Fi.offset,Fi.offset=0,vi=Fi.stride,Fi.stride=0,zi=Fi.divisor,Fi.divisor=0,Xi=Ri.state,Ri.state=1,pn=Ri.x,Ri.x=0,sn=Ri.y,Ri.y=0,bi=Ri.z,Ri.z=0,xo=Ri.w,Ri.w=0,no=Ri.buffer,Ri.buffer=A,Xo=Ri.size,Ri.size=0,js=Ri.normalized,Ri.normalized=!1,El=Ri.type,Ri.type=A.dtype,Pl=Ri.offset,Ri.offset=0,pu=Ri.stride,Ri.stride=0,Il=Ri.divisor,Ri.divisor=0,fu=xn.state,xn.state=1,Zu=xn.x,xn.x=0,Gu=xn.y,xn.y=0,rf=xn.z,xn.z=0,ds=xn.w,xn.w=0,Wl=xn.buffer,xn.buffer=F,Au=xn.size,xn.size=0,Tu=xn.normalized,xn.normalized=!1,uf=xn.type,xn.type=F.dtype,df=xn.offset,xn.offset=0,Ef=xn.stride,xn.stride=0,vf=xn.divisor,xn.divisor=0,fc=xi.state,xi.state=1,Be=xi.x,xi.x=0,qt=xi.y,xi.y=0,ar=xi.z,xi.z=0,Qr=xi.w,xi.w=0,mi=xi.buffer,xi.buffer=G,fi=xi.size,xi.size=0,pi=xi.normalized,xi.normalized=!1,on=xi.type,xi.type=G.dtype,Bn=xi.offset,xi.offset=0,Ln=xi.stride,xi.stride=0,wn=xi.divisor,xi.divisor=0,Ls=Xr.state,Xr.state=1,ua=Xr.x,Xr.x=0,Hn=Xr.y,Xr.y=0,Ni=Xr.z,Xr.z=0,Wr=Xr.w,Xr.w=0,_i=Xr.buffer,Xr.buffer=H,dn=Xr.size,Xr.size=0,En=Xr.normalized,Xr.normalized=!1,Yi=Xr.type,Xr.type=H.dtype,ga=Xr.offset,Xr.offset=0,Kn=Xr.stride,Xr.stride=0,hs=Xr.divisor,Xr.divisor=0,$i=ft.state,ft.state=1,Ui=ft.x,ft.x=0,ro=ft.y,ft.y=0,na=ft.z,ft.z=0,On=ft.w,ft.w=0,In=ft.buffer,ft.buffer=W,Va=ft.size,ft.size=0,_s=ft.normalized,ft.normalized=!1,ul=ft.type,ft.type=W.dtype,Qn=ft.offset,ft.offset=0,Mo=ft.stride,ft.stride=0,nl=ft.divisor,ft.divisor=0,pl=tr.state,tr.state=1,Dl=tr.x,tr.x=0,Fu=tr.y,tr.y=0,mf=tr.z,tr.z=0,Ql=tr.w,tr.w=0,kf=tr.buffer,tr.buffer=ae,Cu=tr.size,tr.size=0,_f=tr.normalized,tr.normalized=!1,bf=tr.type,tr.type=ae.dtype,Lf=tr.offset,tr.offset=0,Hu=tr.stride,tr.stride=0,hf=tr.divisor,tr.divisor=0,yf=pr.state,pr.state=1,Fl=pr.x,pr.x=0,wf=pr.y,pr.y=0,cu=pr.z,pr.z=0,Y=pr.w,pr.w=0,R=pr.buffer,pr.buffer=Pe,J=pr.size,pr.size=0,O=pr.normalized,pr.normalized=!1,K=pr.type,pr.type=Pe.dtype,_e=pr.offset,pr.offset=0,ne=pr.stride,pr.stride=0,Le=pr.divisor,pr.divisor=0,Ze=gr.state,gr.state=1,Ct=gr.x,gr.x=0,dr=gr.y,gr.y=0,Er=gr.z,gr.z=0,lr=gr.w,gr.w=0,Je=gr.buffer,gr.buffer=de,ht=gr.size,gr.size=0,bt=gr.normalized,gr.normalized=!1,Kt=gr.type,gr.type=de.dtype,sr=gr.offset,gr.offset=0,Qt=gr.stride,gr.stride=0,ur=gr.divisor,gr.divisor=0,er=Zr.state,Zr.state=1,Ot=Zr.x,Zr.x=0,Jt=Zr.y,Zr.y=0,Lt=Zr.z,Zr.z=0,Tr=Zr.w,Zr.w=0,Nr=Zr.buffer,Zr.buffer=ke,ci=Zr.size,Zr.size=0,Cn=Zr.normalized,Zr.normalized=!1,Ki=Zr.type,Zr.type=ke.dtype,yn=Zr.offset,Zr.offset=0,Xa=Zr.stride,Zr.stride=0,ca=Zr.divisor,Zr.divisor=0,Tn=Ai.state,Ai.state=1,Pn=Ai.x,Ai.x=0,Nn=Ai.y,Ai.y=0,xa=Ai.z,Ai.z=0,Zo=Ai.w,Ai.w=0,ru=Ai.buffer,Ai.buffer=d,yu=Ai.size,Ai.size=0,Du=Ai.normalized,Ai.normalized=!1,vu=Ai.type,Ai.type=d.dtype,zu=Ai.offset,Ai.offset=0,$u=Ai.stride,Ai.stride=0,Vf=Ai.divisor,Ai.divisor=0,wd=ls.vert,ls.vert=Qi,Ad=ls.frag,ls.frag=ni,kn.dirty=!0,Bo(Ia,ln,ko),Ia.viewportWidth=as,Ia.viewportHeight=Ma,jn[0]=Qs,jn[1]=ho,jn[2]=gs,jn[3]=Vo,Po[0]=Do,Po[1]=Lo,Po[2]=xs,Po[3]=ks,fa.blend_enable=Ea,gn[0]=Jn,gn[1]=Oo,Ha[0]=rl,Ha[1]=Gs,Ha[2]=bs,Ha[3]=zs,fa.cull_enable=$o,fa.cull_face=Aa,fa.depth_enable=os,fa.depth_func=_l,fa.depth_mask=Ss,ao[0]=po,ao[1]=go,fa.dither=ss,fa.lineWidth=qo,mo[0]=Hs,mo[1]=Ro,mo[2]=tl,mo[3]=Fs,fa.scissor_enable=hl,kn.profile=Fa,Ta.offset=jo,Ta.count=Is,Ta.primitive=Bs,mn[Fr]=At,mn[di]=wr,mn[Di]=Or,mn[Ii]=Ti,mn[Ci]=Ji,mn[nn]=Pi,mn[ii]=Li,mn[wi]=Gn,mn[Gi]=ya,mn[Bt]=pa,mn[yt]=zn,mn[Vt]=Cs,mn[Wt]=dl,mn[_r]=Ol,mn[Lr]=eu,mn[Ur]=Vl,mn[Ir]=ns,mn[Gr]=cs,mn[jr]=ll,mn[yi]=zl,mn[Ei]=Rl,mn[Vi]=Ll,mn[ti]=Os,mn[en]=Gl,Yr.state=Ul,Yr.x=le,Yr.y=w,Yr.z=q,Yr.w=Q,Yr.buffer=ee,Yr.size=ue,Yr.normalized=Ge,Yr.type=et,Yr.offset=mt,Yr.stride=Ft,Yr.divisor=ir,oi.state=or,oi.x=kr,oi.y=Vr,oi.z=he,oi.w=Se,oi.buffer=qe,oi.size=He,oi.normalized=lt,oi.type=tt,oi.offset=pt,oi.stride=Ht,oi.divisor=nr,Bi.state=fr,Bi.x=Ar,Bi.y=Rr,Bi.z=ri,Bi.w=si,Bi.buffer=Mi,Bi.size=hn,Bi.normalized=Zn,Bi.type=Yn,Bi.offset=Ua,Bi.stride=Fo,Bi.divisor=vl,an.state=Us,an.x=ml,an.y=au,an.z=Sl,an.w=Yl,an.buffer=ql,an.size=ou,an.normalized=Pu,an.type=iu,an.offset=tu,an.stride=Wu,an.divisor=Qu,rn.state=Ju,rn.x=ju,rn.y=Xu,rn.z=lf,rn.w=xf,rn.buffer=ef,rn.size=tf,rn.normalized=Z,rn.type=se,rn.offset=ze,rn.stride=Xe,rn.divisor=Qe,Fi.state=ot,Fi.x=jt,Fi.y=_t,Fi.z=cr,Fi.w=Cr,Fi.buffer=zr,Fi.size=ui,Fi.normalized=$r,Fi.type=Oi,Fi.offset=fn,Fi.stride=vi,Fi.divisor=zi,Ri.state=Xi,Ri.x=pn,Ri.y=sn,Ri.z=bi,Ri.w=xo,Ri.buffer=no,Ri.size=Xo,Ri.normalized=js,Ri.type=El,Ri.offset=Pl,Ri.stride=pu,Ri.divisor=Il,xn.state=fu,xn.x=Zu,xn.y=Gu,xn.z=rf,xn.w=ds,xn.buffer=Wl,xn.size=Au,xn.normalized=Tu,xn.type=uf,xn.offset=df,xn.stride=Ef,xn.divisor=vf,xi.state=fc,xi.x=Be,xi.y=qt,xi.z=ar,xi.w=Qr,xi.buffer=mi,xi.size=fi,xi.normalized=pi,xi.type=on,xi.offset=Bn,xi.stride=Ln,xi.divisor=wn,Xr.state=Ls,Xr.x=ua,Xr.y=Hn,Xr.z=Ni,Xr.w=Wr,Xr.buffer=_i,Xr.size=dn,Xr.normalized=En,Xr.type=Yi,Xr.offset=ga,Xr.stride=Kn,Xr.divisor=hs,ft.state=$i,ft.x=Ui,ft.y=ro,ft.z=na,ft.w=On,ft.buffer=In,ft.size=Va,ft.normalized=_s,ft.type=ul,ft.offset=Qn,ft.stride=Mo,ft.divisor=nl,tr.state=pl,tr.x=Dl,tr.y=Fu,tr.z=mf,tr.w=Ql,tr.buffer=kf,tr.size=Cu,tr.normalized=_f,tr.type=bf,tr.offset=Lf,tr.stride=Hu,tr.divisor=hf,pr.state=yf,pr.x=Fl,pr.y=wf,pr.z=cu,pr.w=Y,pr.buffer=R,pr.size=J,pr.normalized=O,pr.type=K,pr.offset=_e,pr.stride=ne,pr.divisor=Le,gr.state=Ze,gr.x=Ct,gr.y=dr,gr.z=Er,gr.w=lr,gr.buffer=Je,gr.size=ht,gr.normalized=bt,gr.type=Kt,gr.offset=sr,gr.stride=Qt,gr.divisor=ur,Zr.state=er,Zr.x=Ot,Zr.y=Jt,Zr.z=Lt,Zr.w=Tr,Zr.buffer=Nr,Zr.size=ci,Zr.normalized=Cn,Zr.type=Ki,Zr.offset=yn,Zr.stride=Xa,Zr.divisor=ca,Ai.state=Tn,Ai.x=Pn,Ai.y=Nn,Ai.z=xa,Ai.w=Zo,Ai.buffer=ru,Ai.size=yu,Ai.normalized=Du,Ai.type=vu,Ai.offset=zu,Ai.stride=$u,Ai.divisor=Vf,ls.vert=wd,ls.frag=Ad,kn.dirty=!0},batch:function(ln,Bo){var ko,oo,za,ea;if(ko=ra.next,ko!==ra.cur&&(ko?Kr.bindFramebuffer(36160,ko.framebuffer):Kr.bindFramebuffer(36160,null),ra.cur=ko),kn.dirty){var rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os;rs=Ko[0],$s=Ko[1],us=Ko[2],Ds=Ko[3],(rs!==Qo[0]||$s!==Qo[1]||us!==Qo[2]||Ds!==Qo[3])&&(Kr.colorMask(rs,$s,us,Ds),Qo[0]=rs,Qo[1]=$s,Qo[2]=us,Qo[3]=Ds),fl=fa.frontFace,fl!==kn.frontFace&&(Kr.frontFace(fl),kn.frontFace=fl),as=fa.polygonOffset_enable,as!==kn.polygonOffset_enable&&(as?Kr.enable(32823):Kr.disable(32823),kn.polygonOffset_enable=as),Ma=Wi[0],Qs=Wi[1],(Ma!==Sa[0]||Qs!==Sa[1])&&(Kr.polygonOffset(Ma,Qs),Sa[0]=Ma,Sa[1]=Qs),ho=fa.sample_alpha,ho!==kn.sample_alpha&&(ho?Kr.enable(32926):Kr.disable(32926),kn.sample_alpha=ho),gs=fa.sample_enable,gs!==kn.sample_enable&&(gs?Kr.enable(32928):Kr.disable(32928),kn.sample_enable=gs),Vo=Qa[0],Do=Qa[1],(Vo!==vn[0]||Do!==vn[1])&&(Kr.sampleCoverage(Vo,Do),vn[0]=Vo,vn[1]=Do),Lo=fa.stencil_enable,Lo!==kn.stencil_enable&&(Lo?Kr.enable(2960):Kr.disable(2960),kn.stencil_enable=Lo),xs=fa.stencil_mask,xs!==kn.stencil_mask&&(Kr.stencilMask(xs),kn.stencil_mask=xs),ks=da[0],Ea=da[1],Jn=da[2],(ks!==la[0]||Ea!==la[1]||Jn!==la[2])&&(Kr.stencilFunc(ks,Ea,Jn),la[0]=ks,la[1]=Ea,la[2]=Jn),Oo=vo[0],rl=vo[1],Gs=vo[2],bs=vo[3],(Oo!==As[0]||rl!==As[1]||Gs!==As[2]||bs!==As[3])&&(Kr.stencilOpSeparate(Oo,rl,Gs,bs),As[0]=Oo,As[1]=rl,As[2]=Gs,As[3]=bs),zs=ps[0],$o=ps[1],Aa=ps[2],os=ps[3],(zs!==co[0]||$o!==co[1]||Aa!==co[2]||os!==co[3])&&(Kr.stencilOpSeparate(zs,$o,Aa,os),co[0]=zs,co[1]=$o,co[2]=Aa,co[3]=os)}Kr.blendColor(0,0,0,0),ji[0]=0,ji[1]=0,ji[2]=0,ji[3]=0,Zi?Kr.enable(3042):Kr.disable(3042),kn.blend_enable=Zi,Kr.blendEquationSeparate(32774,32774),Ps[0]=32774,Ps[1]=32774,Kr.blendFuncSeparate(770,771,1,1),Sn[0]=770,Sn[1]=771,Sn[2]=1,Sn[3]=1,aa?Kr.enable(2884):Kr.disable(2884),kn.cull_enable=aa,Kr.cullFace(Mn),kn.cull_face=Mn,Un?Kr.enable(2929):Kr.disable(2929),kn.depth_enable=Un,Kr.depthFunc(Ga),kn.depth_func=Ga,Kr.depthMask(ma),kn.depth_mask=ma,Kr.depthRange(0,1),Ba[0]=0,Ba[1]=1,oa?Kr.enable(3024):Kr.disable(3024),kn.dither=oa,Kr.lineWidth(ka),kn.lineWidth=ka,so?Kr.enable(3089):Kr.disable(3089),kn.scissor_enable=so,oo=kn.profile,kn.profile=!1,Kr.useProgram(h.program);var _l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki;for(fo.setVAO(null),_l=p.location,Ss=$a[_l],Ss.buffer||Kr.enableVertexAttribArray(_l),(Ss.type!==d.dtype||Ss.size!==4||Ss.buffer!==d||Ss.normalized!==!1||Ss.offset!==0||Ss.stride!==0)&&(Kr.bindBuffer(34962,d.buffer),Kr.vertexAttribPointer(_l,4,d.dtype,!1,0,0),Ss.type=d.dtype,Ss.size=4,Ss.buffer=d,Ss.normalized=!1,Ss.offset=0,Ss.stride=0),po=b.location,go=$a[po],go.buffer||Kr.enableVertexAttribArray(po),(go.type!==x.dtype||go.size!==4||go.buffer!==x||go.normalized!==!1||go.offset!==0||go.stride!==0)&&(Kr.bindBuffer(34962,x.buffer),Kr.vertexAttribPointer(po,4,x.dtype,!1,0,0),go.type=x.dtype,go.size=4,go.buffer=x,go.normalized=!1,go.offset=0,go.stride=0),ss=k.location,qo=$a[ss],qo.buffer||Kr.enableVertexAttribArray(ss),(qo.type!==v.dtype||qo.size!==4||qo.buffer!==v||qo.normalized!==!1||qo.offset!==0||qo.stride!==0)&&(Kr.bindBuffer(34962,v.buffer),Kr.vertexAttribPointer(ss,4,v.dtype,!1,0,0),qo.type=v.dtype,qo.size=4,qo.buffer=v,qo.normalized=!1,qo.offset=0,qo.stride=0),zo=T.location,io=$a[zo],io.buffer||Kr.enableVertexAttribArray(zo),(io.type!==E.dtype||io.size!==4||io.buffer!==E||io.normalized!==!1||io.offset!==0||io.stride!==0)&&(Kr.bindBuffer(34962,E.buffer),Kr.vertexAttribPointer(zo,4,E.dtype,!1,0,0),io.type=E.dtype,io.size=4,io.buffer=E,io.normalized=!1,io.offset=0,io.stride=0),Io=_.location,Da=$a[Io],Da.buffer||Kr.enableVertexAttribArray(Io),(Da.type!==L.dtype||Da.size!==4||Da.buffer!==L||Da.normalized!==!1||Da.offset!==0||Da.stride!==0)&&(Kr.bindBuffer(34962,L.buffer),Kr.vertexAttribPointer(Io,4,L.dtype,!1,0,0),Da.type=L.dtype,Da.size=4,Da.buffer=L,Da.normalized=!1,Da.offset=0,Da.stride=0),vs=M.location,fs=$a[vs],fs.buffer||Kr.enableVertexAttribArray(vs),(fs.type!==C.dtype||fs.size!==4||fs.buffer!==C||fs.normalized!==!1||fs.offset!==0||fs.stride!==0)&&(Kr.bindBuffer(34962,C.buffer),Kr.vertexAttribPointer(vs,4,C.dtype,!1,0,0),fs.type=C.dtype,fs.size=4,fs.buffer=C,fs.normalized=!1,fs.offset=0,fs.stride=0),cl=P.location,el=$a[cl],el.buffer||Kr.enableVertexAttribArray(cl),(el.type!==m.dtype||el.size!==4||el.buffer!==m||el.normalized!==!1||el.offset!==0||el.stride!==0)&&(Kr.bindBuffer(34962,m.buffer),Kr.vertexAttribPointer(cl,4,m.dtype,!1,0,0),el.type=m.dtype,el.size=4,el.buffer=m,el.normalized=!1,el.offset=0,el.stride=0),Hs=B.location,Ro=$a[Hs],Ro.buffer||Kr.enableVertexAttribArray(Hs),(Ro.type!==A.dtype||Ro.size!==4||Ro.buffer!==A||Ro.normalized!==!1||Ro.offset!==0||Ro.stride!==0)&&(Kr.bindBuffer(34962,A.buffer),Kr.vertexAttribPointer(Hs,4,A.dtype,!1,0,0),Ro.type=A.dtype,Ro.size=4,Ro.buffer=A,Ro.normalized=!1,Ro.offset=0,Ro.stride=0),tl=U.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==F.dtype||Fs.size!==4||Fs.buffer!==F||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,F.buffer),Kr.vertexAttribPointer(tl,4,F.dtype,!1,0,0),Fs.type=F.dtype,Fs.size=4,Fs.buffer=F,Fs.normalized=!1,Fs.offset=0,Fs.stride=0),hl=j.location,Fa=$a[hl],Fa.buffer||Kr.enableVertexAttribArray(hl),(Fa.type!==G.dtype||Fa.size!==4||Fa.buffer!==G||Fa.normalized!==!1||Fa.offset!==0||Fa.stride!==0)&&(Kr.bindBuffer(34962,G.buffer),Kr.vertexAttribPointer(hl,4,G.dtype,!1,0,0),Fa.type=G.dtype,Fa.size=4,Fa.buffer=G,Fa.normalized=!1,Fa.offset=0,Fa.stride=0),Ms=N.location,jo=$a[Ms],jo.buffer||Kr.enableVertexAttribArray(Ms),(jo.type!==H.dtype||jo.size!==4||jo.buffer!==H||jo.normalized!==!1||jo.offset!==0||jo.stride!==0)&&(Kr.bindBuffer(34962,H.buffer),Kr.vertexAttribPointer(Ms,4,H.dtype,!1,0,0),jo.type=H.dtype,jo.size=4,jo.buffer=H,jo.normalized=!1,jo.offset=0,jo.stride=0),Rs=re.location,Is=$a[Rs],Is.buffer||Kr.enableVertexAttribArray(Rs),(Is.type!==W.dtype||Is.size!==4||Is.buffer!==W||Is.normalized!==!1||Is.offset!==0||Is.stride!==0)&&(Kr.bindBuffer(34962,W.buffer),Kr.vertexAttribPointer(Rs,4,W.dtype,!1,0,0),Is.type=W.dtype,Is.size=4,Is.buffer=W,Is.normalized=!1,Is.offset=0,Is.stride=0),Bs=be.location,At=$a[Bs],At.buffer||Kr.enableVertexAttribArray(Bs),(At.type!==ae.dtype||At.size!==4||At.buffer!==ae||At.normalized!==!1||At.offset!==0||At.stride!==0)&&(Kr.bindBuffer(34962,ae.buffer),Kr.vertexAttribPointer(Bs,4,ae.dtype,!1,0,0),At.type=ae.dtype,At.size=4,At.buffer=ae,At.normalized=!1,At.offset=0,At.stride=0),Gt=Ce.location,wr=$a[Gt],wr.buffer||Kr.enableVertexAttribArray(Gt),(wr.type!==Pe.dtype||wr.size!==4||wr.buffer!==Pe||wr.normalized!==!1||wr.offset!==0||wr.stride!==0)&&(Kr.bindBuffer(34962,Pe.buffer),Kr.vertexAttribPointer(Gt,4,Pe.dtype,!1,0,0),wr.type=Pe.dtype,wr.size=4,wr.buffer=Pe,wr.normalized=!1,wr.offset=0,wr.stride=0),mr=te.location,Or=$a[mr],Or.buffer||Kr.enableVertexAttribArray(mr),(Or.type!==de.dtype||Or.size!==4||Or.buffer!==de||Or.normalized!==!1||Or.offset!==0||Or.stride!==0)&&(Kr.bindBuffer(34962,de.buffer),Kr.vertexAttribPointer(mr,4,de.dtype,!1,0,0),Or.type=de.dtype,Or.size=4,Or.buffer=de,Or.normalized=!1,Or.offset=0,Or.stride=0),gi=Ee.location,Ti=$a[gi],Ti.buffer||Kr.enableVertexAttribArray(gi),(Ti.type!==ke.dtype||Ti.size!==4||Ti.buffer!==ke||Ti.normalized!==!1||Ti.offset!==0||Ti.stride!==0)&&(Kr.bindBuffer(34962,ke.buffer),Kr.vertexAttribPointer(gi,4,ke.dtype,!1,0,0),Ti.type=ke.dtype,Ti.size=4,Ti.buffer=ke,Ti.normalized=!1,Ti.offset=0,Ti.stride=0),Kr.uniform1i(wt.location,vt.bind()),ki=Ta.elements,ki?Kr.bindBuffer(34963,ki.buffer.buffer):fo.currentVAO&&(ki=ys.getElements(fo.currentVAO.elements),ki&&Kr.bindBuffer(34963,ki.buffer.buffer)),za=0;za>1)):Kr.drawArrays(1,Ar,Rr),Ia.viewportWidth=ya,Ia.viewportHeight=ia,mt.unbind())}vt.unbind(),kn.dirty=!0,fo.setVAO(null),kn.profile=oo}}}});var cVe=Te((Nxr,fVe)=>{"use strict";var AHt=iVe(),THt=aVe(),SHt=sVe(),MHt=uVe();fVe.exports={"453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45":AHt,"30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0":THt,a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470:SHt,"3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d":MHt}});var pVe=Te((Uxr,dVe)=>{"use strict";var hVe=ZK(),EHt=cVe();Object.assign(hVe.reglPrecompiled,EHt);dVe.exports=hVe});var yVe=Te((Vxr,mVe)=>{"use strict";var vVe=tVe();vVe.plot=pVe();mVe.exports=vVe});var YK=Te((Gxr,bVe)=>{"use strict";var _Ve=Su().extendFlat,kHt=Gf(),gVe=gc(),CHt=nc(),xVe=Nu().hovertemplateAttrs,LHt=zc().attributes,PHt=_Ve({editType:"calc"},CHt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:xVe({editType:"plot",arrayOk:!1},{keys:["count","probability"]})});bVe.exports={domain:LHt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:_Ve({},kHt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:xVe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:gVe({editType:"calc"}),tickfont:gVe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:PHt,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var TVe=Te((Hxr,AVe)=>{"use strict";var _S=ei(),zHt=yp().hasColorscale,IHt=ed(),RHt=zc().defaults,DHt=Jd(),wVe=YK(),FHt=D8(),BHt=mp().isTypedArraySpec;function OHt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate");var a=i("line.color",n.colorway[0]);if(zHt(e,"line")&&_S.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),IHt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function qHt(e,t){function r(l,f){return _S.coerce(e,t,wVe.dimensions,l,f)}var n=r("values"),i=r("visible");if(n&&n.length||(i=t.visible=!1),i){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=_S.isArrayOrTypedArray(a)&&a.length>0||BHt(a),s;o&&(s="array");var u=r("categoryorder",s);u==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&u==="array"&&(t.categoryorder="trace")}}AVe.exports=function(t,r,n,i){function a(l,f){return _S.coerce(t,r,wVe,l,f)}var o=DHt(t,r,{name:"dimensions",handleItemDefaults:qHt}),s=OHt(t,r,n,i,a);RHt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),FHt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var u=i.font;_S.coerceFont(a,"labelfont",u,{overrideDflt:{size:Math.round(u.size)}}),_S.coerceFont(a,"tickfont",u,{autoShadowDflt:!0,overrideDflt:{size:Math.round(u.size/1.2)}})}});var MVe=Te((Wxr,SVe)=>{"use strict";var NHt=Ky().wrap,UHt=yp().hasColorscale,VHt=gp(),GHt=aq(),HHt=Mu(),Rk=ei(),WHt=ku();SVe.exports=function(t,r){var n=Rk.filterVisible(r.dimensions);if(n.length===0)return[];var i=n.map(function(m){var P;if(m.categoryorder==="trace")P=null;else if(m.categoryorder==="array")P=m.categoryarray;else{P=GHt(m.values);for(var A=!0,B=0;B=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var DVe=Te((jxr,RVe)=>{"use strict";var Uf=Jl(),rWt=(I2(),ab(z2)).interpolateNumber,iWt=Uz(),Bk=Xc(),yx=ei(),Dk=yx.strTranslate,EVe=Mu(),KK=cd(),nWt=Xf();function aWt(e,t,r,n){var i=t._context.staticPlot,a=e.map(xWt.bind(0,t,r)),o=n.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",i?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,u1),u=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(k){return Dk(k.x,k.y)}),u.append("g").attr("class","paths");var l=s.select("g.paths"),f=l.selectAll("path.path").data(function(k){return k.paths},u1);f.attr("fill",function(k){return k.model.color});var c=f.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(k){return k.model.color}).attr("fill-opacity",0);QK(c),f.attr("d",function(k){return k.svgD}),c.empty()||f.sort(JK),f.exit().remove(),f.on("mouseover",oWt).on("mouseout",sWt).on("click",lWt),u.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(k){return k.dimensions},u1);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(k){return Dk(k.x,0)}),d.exit().remove();var p=d.selectAll("g.category").data(function(k){return k.categories},u1),x=p.enter().append("g").attr("class","category");p.attr("transform",function(k){return Dk(0,k.y)}),x.append("rect").attr("class","catrect").attr("pointer-events","none"),p.select("rect.catrect").attr("fill","none").attr("width",function(k){return k.width}).attr("height",function(k){return k.height}),CVe(x);var b=p.selectAll("rect.bandrect").data(function(k){return k.bands},u1);b.each(function(){yx.raiseToTop(this)}),b.attr("fill",function(k){return k.color});var v=b.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(k){return k.color}).attr("fill-opacity",0);b.attr("fill",function(k){return k.color}).attr("width",function(k){return k.width}).attr("height",function(k){return k.height}).attr("y",function(k){return k.y}).attr("cursor",function(k){return k.parcatsViewModel.arrangement==="fixed"?"default":k.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),tJ(v),b.exit().remove(),x.append("text").attr("class","catlabel").attr("pointer-events","none"),p.select("text.catlabel").attr("text-anchor",function(k){return Fk(k)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(k){return Fk(k)?k.width+5:-5}).attr("y",function(k){return k.height/2}).text(function(k){return k.model.categoryLabel}).each(function(k){EVe.font(Uf.select(this),k.parcatsViewModel.categorylabelfont),nWt.convertToTspans(Uf.select(this),t)}),x.append("text").attr("class","dimlabel"),p.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(k){return k.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(k){return k.width/2}).attr("y",-5).text(function(k,E){return E===0?k.parcatsViewModel.model.dimensions[k.model.dimensionInd].dimensionLabel:null}).each(function(k){EVe.font(Uf.select(this),k.parcatsViewModel.labelfont)}),p.selectAll("rect.bandrect").on("mouseover",vWt).on("mouseout",mWt),p.exit().remove(),d.call(Uf.behavior.drag().origin(function(k){return{x:k.x,y:0}}).on("dragstart",yWt).on("drag",gWt).on("dragend",_Wt)),s.each(function(k){k.traceSelection=Uf.select(this),k.pathSelection=Uf.select(this).selectAll("g.paths").selectAll("path.path"),k.dimensionSelection=Uf.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}RVe.exports=function(e,t,r,n){aWt(r,e,n,t)};function u1(e){return e.key}function Fk(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function JK(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),_=Uf.mouse(i)[0];Bk.loneHover({trace:a,x:p-s.left+u.left,y:x-s.top+u.top,text:L,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:b,idealAlign:_1&&l.displayInd===u.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var p=s.model.count,x=s.model.categoryLabel,b=p/s.parcatsViewModel.model.count,v={countLabel:p,categoryLabel:x,probabilityLabel:b.toFixed(3)},k=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&k.push(["Count:",v.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&k.push(["P("+v.categoryLabel+"):",v.probabilityLabel].join(" "));var E=k.join("
");return{trace:f,x:n*(h-t.left),y:i*(c-t.top),text:E,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:v,eventData:[{data:f._input,fullData:f,count:p,category:x,probability:b}]}}function dWt(e,t,r){var n=[];return Uf.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(LVe(e,t,i))}),n}function pWt(e,t,r){e._fullLayout._calcInverseTransform(e);var n=e._fullLayout._invScaleX,i=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=Uf.select(r).datum(),s=o.categoryViewModel,u=s.parcatsViewModel,l=u.model.dimensions[s.model.dimensionInd],f=u.trace,c=a.y+a.height/2,h,d;u.dimensions.length>1&&l.displayInd===u.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var p=s.model.categoryLabel,x=o.parcatsViewModel.model.count,b=0;o.categoryViewModel.bands.forEach(function(P){P.color===o.color&&(b+=P.count)});var v=s.model.count,k=0;u.pathSelection.each(function(P){P.model.color===o.color&&(k+=P.model.count)});var E=b/x,T=b/k,L=b/v,_={countLabel:b,categoryLabel:p,probabilityLabel:E.toFixed(3)},C=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&C.push(["Count:",_.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(C.push("P(color \u2229 "+p+"): "+_.probabilityLabel),C.push("P("+p+" | color): "+T.toFixed(3)),C.push("P(color | "+p+"): "+L.toFixed(3)));var M=C.join("
"),m=KK.mostReadable(o.color,["black","white"]);return{trace:f,x:n*(h-t.left),y:i*(c-t.top),text:M,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:m,fontSize:10,idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:_,eventData:[{data:f._input,fullData:f,category:p,count:x,probability:E,categorycount:v,colorcount:k,bandcolorcount:b}]}}function vWt(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=Uf.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,n=r._fullLayout,i=n._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(hWt(o),iJ(o,"plotly_hover",Uf.event)):(cWt(o),rJ(o,"plotly_hover",Uf.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=LVe(r,i,o):a==="color"?s=pWt(r,i,o):a==="dimension"&&(s=dWt(r,i,o)),s&&Bk.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function mWt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(QK(t.pathSelection),CVe(t.dimensionSelection.selectAll("g.category")),tJ(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),Bk.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(JK),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?iJ(n,"plotly_unhover",Uf.event):rJ(n,"plotly_unhover",Uf.event)}}function yWt(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,Uf.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=Uf.mouse(this)[0],n=Uf.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=n&&n<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(i){return i.displayInd}),t.model.dragY=t.y,yx.raiseToTop(this.parentNode),Uf.select(this.parentNode).selectAll("rect.bandrect").each(function(i){i.yf.y+f.height/2&&(a.model.displayInd=f.model.displayInd,f.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){i.model.dragX=Uf.event.x;var c=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[n];c!==void 0&&i.model.dragXh.x&&(i.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=i.model.displayInd}aJ(e.parcatsViewModel),nJ(e.parcatsViewModel),IVe(e.parcatsViewModel),zVe(e.parcatsViewModel)}}function _Wt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Uf.select(this).selectAll("text").attr("font-weight","normal");var t={},r=PVe(e.parcatsViewModel),n=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),i=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==n[d]});i&&n.forEach(function(h,d){var p=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+p+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,d){return h!==o[d]}),a){var s=e.model.categories.slice().sort(function(h,d){return h.displayInd-d.displayInd}),u=s.map(function(h){return h.categoryValue}),l=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[u],t["dimensions["+e.model.containerInd+"].ticktext"]=[l],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?iJ(e.potentialClickBand,"plotly_click",Uf.event.sourceEvent):rJ(e.potentialClickBand,"plotly_click",Uf.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var f=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];f.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,aJ(e.parcatsViewModel),nJ(e.parcatsViewModel);var c=Uf.transition().duration(300).ease("cubic-in-out");c.each(function(){IVe(e.parcatsViewModel,!0),zVe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&iWt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function PVe(e){for(var t,r=e.graphDiv._fullData,n=0;n=0;u--)l+="C"+o[u]+","+(t[u+1]+n)+" "+a[u]+","+(t[u]+n)+" "+(e[u]+r[u])+","+(t[u]+n),l+="l-"+r[u]+",0 ";return l+="Z",l}function nJ(e){var t=e.dimensions,r=e.model,n=t.map(function(F){return F.categories.map(function(U){return U.y})}),i=e.model.dimensions.map(function(F){return F.categories.map(function(U){return U.displayInd})}),a=e.model.dimensions.map(function(F){return F.displayInd}),o=e.dimensions.map(function(F){return F.model.dimensionInd}),s=t.map(function(F){return F.x}),u=t.map(function(F){return F.width}),l=[];for(var f in r.paths)r.paths.hasOwnProperty(f)&&l.push(r.paths[f]);function c(F){var U=F.categoryInds.map(function(j,H){return i[H][j]}),G=o.map(function(j){return U[j]});return G}l.sort(function(F,U){var G=c(F),j=c(U);return e.sortpaths==="backward"&&(G.reverse(),j.reverse()),G.push(F.valueInds[0]),j.push(U.valueInds[0]),e.bundlecolors&&(G.unshift(F.rawColor),j.unshift(U.rawColor)),Gj?1:0});for(var h=new Array(l.length),d=t[0].model.count,p=t[0].categories.map(function(F){return F.height}).reduce(function(F,U){return F+U}),x=0;x0?v=p*(b.count/d):v=0;for(var k=new Array(n.length),E=0;E1?o=(e.width-2*r-n)/(i-1):o=0,s=r,u=s+o*a;var l=[],f=e.model.maxCats,c=t.categories.length,h=8,d=t.count,p=e.height-h*(f-1),x,b,v,k,E,T=(f-c)*h/2,L=t.categories.map(function(_){return{displayInd:_.displayInd,categoryInd:_.categoryInd}});for(L.sort(function(_,C){return _.displayInd-C.displayInd}),E=0;E0?x=b.count/d*p:x=0,v={key:b.valueInds[0],model:b,width:n,height:x,y:b.dragY!==null?b.dragY:T,bands:[],parcatsViewModel:e},T=T+x+h,l.push(v);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:u,y:0,width:n,model:t,categories:l,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var oJ=Te((Xxr,FVe)=>{"use strict";var wWt=DVe();FVe.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;wWt(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},n,i)}});var OVe=Te($8=>{"use strict";var AWt=Rd().getModuleCalcData,TWt=oJ(),BVe="parcats";$8.name=BVe;$8.plot=function(e,t,r,n){var i=AWt(e.calcdata,BVe);if(i.length){var a=i[0];TWt(e,a,r,n)}};$8.clean=function(e,t,r,n){var i=n._has&&n._has("parcats"),a=t._has&&t._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}});var NVe=Te((Yxr,qVe)=>{"use strict";qVe.exports={attributes:YK(),supplyDefaults:TVe(),calc:MVe(),plot:oJ(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:OVe(),categories:["noOpacity"],meta:{}}});var VVe=Te((Kxr,UVe)=>{"use strict";UVe.exports=NVe()});var f1=Te((Jxr,YVe)=>{"use strict";var SWt=Z1(),GVe="1.13.4",XVe='\xA9 OpenStreetMap contributors',HVe=['\xA9 Carto',XVe].join(" "),WVe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),MWt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),ZVe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:XVe,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:HVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:HVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:WVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:WVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:MWt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},jVe=SWt(ZVe);YVe.exports={requiredVersion:GVe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:ZVe,styleValuesNonMapbox:jVe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+GVe+"."].join(` +`),_i;if(qt&&(_i=Fs(Wr),qt[_i]))return qt[_i].apply(null,mi);var dn=Function.apply(null,Qr.concat(Wr));return qt&&(qt[_i]=dn),dn.apply(null,mi)}return{global:wn,link:pi,block:on,proc:ua,scope:Bn,cond:Ln,compile:Hn}}var ta="xyzw".split(""),ya=5121,ia=1,pa=2,va=0,zn=1,is=2,Cs=3,Ks=4,dl=5,xl=6,Bl="dither",bl="blend.enable",eu="blend.color",Zl="blend.equation",Ul="blend.func",ja="depth.enable",ns="depth.func",Js="depth.range",cs="depth.mask",sl="colorMask",ll="cull.enable",il="cull.face",zl="frontFace",Ml="lineWidth",Rl="polygonOffset.enable",Al="polygonOffset.offset",Ll="sample.alpha",ms="sample.enable",Os="sample.coverage",Xl="stencil.enable",Vl="stencil.mask",Nl="stencil.func",le="stencil.opFront",w="stencil.opBack",q="scissor.enable",Q="scissor.box",ee="viewport",ue="profile",Ge="framebuffer",et="vert",mt="frag",Ft="elements",ir="primitive",or="count",kr="offset",Vr="instances",he="vao",Se="Width",qe="Height",He=Ge+Se,lt=Ge+qe,tt=ee+Se,pt=ee+qe,Ht="drawingBuffer",nr=Ht+Se,fr=Ht+qe,Ar=[Ul,Zl,Nl,le,w,Os,ee,Q,Al],Rr=34962,ri=34963,si=2884,Mi=3042,hn=3024,Zn=2960,Yn=2929,Ua=3089,Fo=32823,vl=32926,Us=32928,ml=5126,au=35664,Sl=35665,Yl=35666,Ol=5124,ou=35667,Pu=35668,iu=35669,tu=35670,Wu=35671,Qu=35672,Ju=35673,ju=35674,Xu=35675,lf=35676,xf=35678,ef=35680,tf=4,Z=1028,se=1029,ze=2304,Xe=2305,Qe=32775,ot=32776,jt=519,_t=7680,cr=0,Cr=1,zr=32774,ui=513,$r=36160,Oi=36064,fn={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},vi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},zi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Xi={cw:ze,ccw:Xe};function pn(Be){return Array.isArray(Be)||br(Be)||Ut(Be)}function sn(Be){return Be.sort(function(qt,ar){return qt===ee?-1:ar===ee?1:qt=1,Qr>=2,qt)}else if(ar===Ks){var mi=Be.data;return new bi(mi.thisDep,mi.contextDep,mi.propDep,qt)}else{if(ar===dl)return new bi(!1,!1,!1,qt);if(ar===xl){for(var fi=!1,pi=!1,on=!1,Bn=0;Bn=1&&(pi=!0),wn>=2&&(on=!0)}else Ln.type===Ks&&(fi=fi||Ln.data.thisDep,pi=pi||Ln.data.contextDep,on=on||Ln.data.propDep)}return new bi(fi,pi,on,qt)}else return new bi(ar===Cs,ar===is,ar===zn,qt)}}var js=new bi(!1,!1,!1,function(){});function El(Be,qt,ar,Qr,mi,fi,pi,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Wr){var _i=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};ar.ext_blend_minmax&&(dn.min=Qe,dn.max=ot);var En=ar.angle_instanced_arrays,Yi=ar.webgl_draw_buffers,ga=ar.oes_vertex_array_object,Kn={dirty:!0,profile:Wr.profile},hs={},$i=[],Ui={},ro={};function na(Je){return Je.replace(".","_")}function On(Je,ht,bt){var Kt=na(Je);$i.push(Je),hs[Kt]=Kn[Kt]=!!bt,Ui[Kt]=ht}function In(Je,ht,bt){var Kt=na(Je);$i.push(Je),Array.isArray(bt)?(Kn[Kt]=bt.slice(),hs[Kt]=bt.slice()):Kn[Kt]=hs[Kt]=bt,ro[Kt]=ht}function Va(Je){return!!isNaN(Je)}On(Bl,hn),On(bl,Mi),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Ul,"blendFuncSeparate",[Cr,cr,Cr,cr]),On(ja,Yn,!0),In(ns,"depthFunc",ui),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),On(ll,si),In(il,"cullFace",se),In(zl,zl,Xe),In(Ml,Ml,1),On(Rl,Fo),In(Al,"polygonOffset",[0,0]),On(Ll,vl),On(ms,Us),In(Os,"sampleCoverage",[1,!1]),On(Xl,Zn),In(Vl,"stencilMask",-1),In(Nl,"stencilFunc",[jt,0,-1]),In(le,"stencilOpSeparate",[Z,_t,_t,_t]),In(w,"stencilOpSeparate",[se,_t,_t,_t]),On(q,Ua),In(Q,"scissor",[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]),In(ee,ee,[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]);var _s={gl:Be,context:ua,strings:qt,next:hs,current:Kn,draw:Ls,elements:fi,buffer:mi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:Bn,framebuffer:on,extensions:ar,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:vi,blendFuncs:fn,blendEquations:dn,stencilOps:zi,glTypes:di,orientationType:Xi};Yi&&(ul.backBuffer=[se],ul.drawBuffer=M(Qr.maxDrawbuffers,function(Je){return Je===0?[0]:M(Je,function(ht){return Oi+ht})}));var Qn=0;function Mo(){var Je=Gn({cache:Ni}),ht=Je.link,bt=Je.global;Je.id=Qn++,Je.batchId="0";var Kt=ht(_s),sr=Je.shared={props:"a0"};Object.keys(_s).forEach(function(Jt){sr[Jt]=bt.def(Kt,".",Jt)});var Qt=Je.next={},ur=Je.current={};Object.keys(ro).forEach(function(Jt){Array.isArray(Kn[Jt])&&(Qt[Jt]=bt.def(sr.next,".",Jt),ur[Jt]=bt.def(sr.current,".",Jt))});var er=Je.constants={};Object.keys(ul).forEach(function(Jt){er[Jt]=bt.def(JSON.stringify(ul[Jt]))}),Je.invoke=function(Jt,Lt){switch(Lt.type){case va:var Tr=["this",sr.context,sr.props,Je.batchId];return Jt.def(ht(Lt.data),".call(",Tr.slice(0,Math.max(Lt.data.length+1,4)),")");case zn:return Jt.def(sr.props,Lt.data);case is:return Jt.def(sr.context,Lt.data);case Cs:return Jt.def("this",Lt.data);case Ks:return Lt.data.append(Je,Jt),Lt.data.ref;case dl:return Lt.data.toString();case xl:return Lt.data.map(function(Nr){return Je.invoke(Jt,Nr)})}},Je.attribCache={};var Ot={};return Je.scopeAttrib=function(Jt){var Lt=qt.id(Jt);if(Lt in Ot)return Ot[Lt];var Tr=Ln.scope[Lt];Tr||(Tr=Ln.scope[Lt]=new _i);var Nr=Ot[Lt]=ht(Tr);return Nr},Je}function nl(Je){var ht=Je.static,bt=Je.dynamic,Kt;if(ue in ht){var sr=!!ht[ue];Kt=no(function(ur,er){return sr}),Kt.enable=sr}else if(ue in bt){var Qt=bt[ue];Kt=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}return Kt}function pl(Je,ht){var bt=Je.static,Kt=Je.dynamic;if(Ge in bt){var sr=bt[Ge];return sr?(sr=on.getFramebuffer(sr),no(function(ur,er){var Ot=ur.link(sr),Jt=ur.shared;er.set(Jt.framebuffer,".next",Ot);var Lt=Jt.context;return er.set(Lt,"."+He,Ot+".width"),er.set(Lt,"."+lt,Ot+".height"),Ot})):no(function(ur,er){var Ot=ur.shared;er.set(Ot.framebuffer,".next","null");var Jt=Ot.context;return er.set(Jt,"."+He,Jt+"."+nr),er.set(Jt,"."+lt,Jt+"."+fr),"null"})}else if(Ge in Kt){var Qt=Kt[Ge];return Xo(Qt,function(ur,er){var Ot=ur.invoke(er,Qt),Jt=ur.shared,Lt=Jt.framebuffer,Tr=er.def(Lt,".getFramebuffer(",Ot,")");er.set(Lt,".next",Tr);var Nr=Jt.context;return er.set(Nr,"."+He,Tr+"?"+Tr+".width:"+Nr+"."+nr),er.set(Nr,"."+lt,Tr+"?"+Tr+".height:"+Nr+"."+fr),Tr})}else return null}function Dl(Je,ht,bt){var Kt=Je.static,sr=Je.dynamic;function Qt(Ot){if(Ot in Kt){var Jt=Kt[Ot],Lt=!0,Tr=Jt.x|0,Nr=Jt.y|0,ci,Cn;return"width"in Jt?ci=Jt.width|0:Lt=!1,"height"in Jt?Cn=Jt.height|0:Lt=!1,new bi(!Lt&&ht&&ht.thisDep,!Lt&&ht&&ht.contextDep,!Lt&&ht&&ht.propDep,function(Xa,ca){var Tn=Xa.shared.context,Pn=ci;"width"in Jt||(Pn=ca.def(Tn,".",He,"-",Tr));var Nn=Cn;return"height"in Jt||(Nn=ca.def(Tn,".",lt,"-",Nr)),[Tr,Nr,Pn,Nn]})}else if(Ot in sr){var Ki=sr[Ot],yn=Xo(Ki,function(Xa,ca){var Tn=Xa.invoke(ca,Ki),Pn=Xa.shared.context,Nn=ca.def(Tn,".x|0"),xa=ca.def(Tn,".y|0"),Zo=ca.def('"width" in ',Tn,"?",Tn,".width|0:","(",Pn,".",He,"-",Nn,")"),ru=ca.def('"height" in ',Tn,"?",Tn,".height|0:","(",Pn,".",lt,"-",xa,")");return[Nn,xa,Zo,ru]});return ht&&(yn.thisDep=yn.thisDep||ht.thisDep,yn.contextDep=yn.contextDep||ht.contextDep,yn.propDep=yn.propDep||ht.propDep),yn}else return ht?new bi(ht.thisDep,ht.contextDep,ht.propDep,function(Xa,ca){var Tn=Xa.shared.context;return[0,0,ca.def(Tn,".",He),ca.def(Tn,".",lt)]}):null}var ur=Qt(ee);if(ur){var er=ur;ur=new bi(ur.thisDep,ur.contextDep,ur.propDep,function(Ot,Jt){var Lt=er.append(Ot,Jt),Tr=Ot.shared.context;return Jt.set(Tr,"."+tt,Lt[2]),Jt.set(Tr,"."+pt,Lt[3]),Lt})}return{viewport:ur,scissor_box:Qt(Q)}}function Fu(Je,ht){var bt=Je.static,Kt=typeof bt[mt]=="string"&&typeof bt[et]=="string";if(Kt){if(Object.keys(ht.dynamic).length>0)return null;var sr=ht.static,Qt=Object.keys(sr);if(Qt.length>0&&typeof sr[Qt[0]]=="number"){for(var ur=[],er=0;er"+Nn+"?"+Lt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",ci,"(",Lt,".buffer)){",Xa,"=",Cn,".createStream(",Rr,",",Lt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Lt,".buffer);","}",ca,'="type" in ',Lt,"?",Nr.glTypes,"[",Lt,".type]:",Xa,".dtype;",Ki.normalized,"=!!",Lt,".normalized;");function Tn(Pn){Jt(Ki[Pn],"=",Lt,".",Pn,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),Jt("}}"),Jt.exit("if(",Ki.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Ki}sr[Qt]=Xo(ur,er)}),sr}function bf(Je){var ht=Je.static,bt=Je.dynamic,Kt={};return Object.keys(ht).forEach(function(sr){var Qt=ht[sr];Kt[sr]=no(function(ur,er){return typeof Qt=="number"||typeof Qt=="boolean"?""+Qt:ur.link(Qt)})}),Object.keys(bt).forEach(function(sr){var Qt=bt[sr];Kt[sr]=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}),Kt}function Lf(Je,ht,bt,Kt,sr){var Qt=Je.static,ur=Je.dynamic,er=Fu(Je,ht),Ot=pl(Je,sr),Jt=Dl(Je,Ot,sr),Lt=Ql(Je,sr),Tr=kf(Je,sr),Nr=mf(Je,sr,er);function ci(Tn){var Pn=Jt[Tn];Pn&&(Tr[Tn]=Pn)}ci(ee),ci(na(Q));var Cn=Object.keys(Tr).length>0,Ki={framebuffer:Ot,draw:Lt,shader:Nr,state:Tr,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Ki.profile=nl(Je,sr),Ki.uniforms=Cu(bt,sr),Ki.drawVAO=Ki.scopeVAO=Lt.vao,!Ki.drawVAO&&Nr.program&&!er&&ar.angle_instanced_arrays&&Lt.static.elements){var yn=!0,Xa=Nr.program.attributes.map(function(Tn){var Pn=ht.static[Tn];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Lt.static.elements}));Ki.drawVAO=new bi(null,null,null,function(Tn,Pn){return Tn.link(ca)}),Ki.useVAO=!0}}return er?Ki.useVAO=!0:Ki.attributes=_f(ht,sr),Ki.context=bf(Kt,sr),Ki}function Hu(Je,ht,bt){var Kt=Je.shared,sr=Kt.context,Qt=Je.scope();Object.keys(bt).forEach(function(ur){ht.save(sr,"."+ur);var er=bt[ur],Ot=er.append(Je,ht);Array.isArray(Ot)?Qt(sr,".",ur,"=[",Ot.join(),"];"):Qt(sr,".",ur,"=",Ot,";")}),ht(Qt)}function hf(Je,ht,bt,Kt){var sr=Je.shared,Qt=sr.gl,ur=sr.framebuffer,er;Yi&&(er=ht.def(sr.extensions,".webgl_draw_buffers"));var Ot=Je.constants,Jt=Ot.drawBuffer,Lt=Ot.backBuffer,Tr;bt?Tr=bt.append(Je,ht):Tr=ht.def(ur,".next"),Kt||ht("if(",Tr,"!==",ur,".cur){"),ht("if(",Tr,"){",Qt,".bindFramebuffer(",$r,",",Tr,".framebuffer);"),Yi&&ht(er,".drawBuffersWEBGL(",Jt,"[",Tr,".colorAttachments.length]);"),ht("}else{",Qt,".bindFramebuffer(",$r,",null);"),Yi&&ht(er,".drawBuffersWEBGL(",Lt,");"),ht("}",ur,".cur=",Tr,";"),Kt||ht("}")}function yf(Je,ht,bt){var Kt=Je.shared,sr=Kt.gl,Qt=Je.current,ur=Je.next,er=Kt.current,Ot=Kt.next,Jt=Je.cond(er,".dirty");$i.forEach(function(Lt){var Tr=na(Lt);if(!(Tr in bt.state)){var Nr,ci;if(Tr in ur){Nr=ur[Tr],ci=Qt[Tr];var Cn=M(Kn[Tr].length,function(yn){return Jt.def(Nr,"[",yn,"]")});Jt(Je.cond(Cn.map(function(yn,Xa){return yn+"!=="+ci+"["+Xa+"]"}).join("||")).then(sr,".",ro[Tr],"(",Cn,");",Cn.map(function(yn,Xa){return ci+"["+Xa+"]="+yn}).join(";"),";"))}else{Nr=Jt.def(Ot,".",Tr);var Ki=Je.cond(Nr,"!==",er,".",Tr);Jt(Ki),Tr in Ui?Ki(Je.cond(Nr).then(sr,".enable(",Ui[Tr],");").else(sr,".disable(",Ui[Tr],");"),er,".",Tr,"=",Nr,";"):Ki(sr,".",ro[Tr],"(",Nr,");",er,".",Tr,"=",Nr,";")}}}),Object.keys(bt.state).length===0&&Jt(er,".dirty=false;"),ht(Jt)}function Fl(Je,ht,bt,Kt){var sr=Je.shared,Qt=Je.current,ur=sr.current,er=sr.gl,Ot;sn(Object.keys(bt)).forEach(function(Jt){var Lt=bt[Jt];if(!(Kt&&!Kt(Lt))){var Tr=Lt.append(Je,ht);if(Ui[Jt]){var Nr=Ui[Jt];xo(Lt)?(Ot=Je.link(Tr,{stable:!0}),ht(Je.cond(Ot).then(er,".enable(",Nr,");").else(er,".disable(",Nr,");")),ht(ur,".",Jt,"=",Ot,";")):(ht(Je.cond(Tr).then(er,".enable(",Nr,");").else(er,".disable(",Nr,");")),ht(ur,".",Jt,"=",Tr,";"))}else if(Qi(Tr)){var ci=Qt[Jt];ht(er,".",ro[Jt],"(",Tr,");",Tr.map(function(Cn,Ki){return ci+"["+Ki+"]="+Cn}).join(";"),";")}else xo(Lt)?(Ot=Je.link(Tr,{stable:!0}),ht(er,".",ro[Jt],"(",Ot,");",ur,".",Jt,"=",Ot,";")):ht(er,".",ro[Jt],"(",Tr,");",ur,".",Jt,"=",Tr,";")}})}function wf(Je,ht){En&&(Je.instancing=ht.def(Je.shared.extensions,".angle_instanced_arrays"))}function cu(Je,ht,bt,Kt,sr){var Qt=Je.shared,ur=Je.stats,er=Qt.current,Ot=Qt.timer,Jt=bt.profile;function Lt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Tr,Nr;function ci(Tn){Tr=ht.def(),Tn(Tr,"=",Lt(),";"),typeof sr=="string"?Tn(ur,".count+=",sr,";"):Tn(ur,".count++;"),Hn&&(Kt?(Nr=ht.def(),Tn(Nr,"=",Ot,".getNumPendingQueries();")):Tn(Ot,".beginQuery(",ur,");"))}function Cn(Tn){Tn(ur,".cpuTime+=",Lt(),"-",Tr,";"),Hn&&(Kt?Tn(Ot,".pushScopeStats(",Nr,",",Ot,".getNumPendingQueries(),",ur,");"):Tn(Ot,".endQuery();"))}function Ki(Tn){var Pn=ht.def(er,".profile");ht(er,".profile=",Tn,";"),ht.exit(er,".profile=",Pn,";")}var yn;if(Jt){if(xo(Jt)){Jt.enable?(ci(ht),Cn(ht.exit),Ki("true")):Ki("false");return}yn=Jt.append(Je,ht),Ki(yn)}else yn=ht.def(er,".profile");var Xa=Je.block();ci(Xa),ht("if(",yn,"){",Xa,"}");var ca=Je.block();Cn(ca),ht.exit("if(",yn,"){",ca,"}")}function Y(Je,ht,bt,Kt,sr){var Qt=Je.shared;function ur(Ot){switch(Ot){case au:case ou:case Wu:return 2;case Sl:case Pu:case Qu:return 3;case Yl:case iu:case Ju:return 4;default:return 1}}function er(Ot,Jt,Lt){var Tr=Qt.gl,Nr=ht.def(Ot,".location"),ci=ht.def(Qt.attributes,"[",Nr,"]"),Cn=Lt.state,Ki=Lt.buffer,yn=[Lt.x,Lt.y,Lt.z,Lt.w],Xa=["buffer","normalized","offset","stride"];function ca(){ht("if(!",ci,".buffer){",Tr,".enableVertexAttribArray(",Nr,");}");var Pn=Lt.type,Nn;if(Lt.size?Nn=ht.def(Lt.size,"||",Jt):Nn=Jt,ht("if(",ci,".type!==",Pn,"||",ci,".size!==",Nn,"||",Xa.map(function(Zo){return ci+"."+Zo+"!=="+Lt[Zo]}).join("||"),"){",Tr,".bindBuffer(",Rr,",",Ki,".buffer);",Tr,".vertexAttribPointer(",[Nr,Nn,Pn,Lt.normalized,Lt.stride,Lt.offset],");",ci,".type=",Pn,";",ci,".size=",Nn,";",Xa.map(function(Zo){return ci+"."+Zo+"="+Lt[Zo]+";"}).join(""),"}"),En){var xa=Lt.divisor;ht("if(",ci,".divisor!==",xa,"){",Je.instancing,".vertexAttribDivisorANGLE(",[Nr,xa],");",ci,".divisor=",xa,";}")}}function Tn(){ht("if(",ci,".buffer){",Tr,".disableVertexAttribArray(",Nr,");",ci,".buffer=null;","}if(",ta.map(function(Pn,Nn){return ci+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Tr,".vertexAttrib4f(",Nr,",",yn,");",ta.map(function(Pn,Nn){return ci+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?Tn():(ht("if(",Cn,"===",ia,"){"),ca(),ht("}else{"),Tn(),ht("}"))}Kt.forEach(function(Ot){var Jt=Ot.name,Lt=bt.attributes[Jt],Tr;if(Lt){if(!sr(Lt))return;Tr=Lt.append(Je,ht)}else{if(!sr(js))return;var Nr=Je.scopeAttrib(Jt);Tr={},Object.keys(new _i).forEach(function(ci){Tr[ci]=ht.def(Nr,".",ci)})}er(Je.link(Ot),ur(Ot.info.type),Tr)})}function R(Je,ht,bt,Kt,sr,Qt){for(var ur=Je.shared,er=ur.gl,Ot,Jt=0;Jt1){for(var yu=[],Du=[],vu=0;vu>1)",Ki],");")}function xa(){bt(yn,".drawArraysInstancedANGLE(",[Nr,ci,Cn,Ki],");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}function Pn(){function Nn(){bt(Qt+".drawElements("+[Nr,Cn,Xa,ci+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){bt(Qt+".drawArrays("+[Nr,ci,Cn]+");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}En&&(typeof Ki!="number"||Ki>=0)?typeof Ki=="string"?(bt("if(",Ki,">0){"),Tn(),bt("}else if(",Ki,"<0){"),Pn(),bt("}")):Tn():Pn()}function O(Je,ht,bt,Kt,sr){var Qt=Mo(),ur=Qt.proc("body",sr);return En&&(Qt.instancing=ur.def(Qt.shared.extensions,".angle_instanced_arrays")),Je(Qt,ur,bt,Kt),Qt.compile().body}function K(Je,ht,bt,Kt){wf(Je,ht),bt.useVAO?bt.drawVAO?ht(Je.shared.vao,".setVAO(",bt.drawVAO.append(Je,ht),");"):ht(Je.shared.vao,".setVAO(",Je.shared.vao,".targetVAO);"):(ht(Je.shared.vao,".setVAO(null);"),Y(Je,ht,bt,Kt.attributes,function(){return!0})),R(Je,ht,bt,Kt.uniforms,function(){return!0},!1),J(Je,ht,ht,bt)}function _e(Je,ht){var bt=Je.proc("draw",1);wf(Je,bt),Hu(Je,bt,ht.context),hf(Je,bt,ht.framebuffer),yf(Je,bt,ht),Fl(Je,bt,ht.state),cu(Je,bt,ht,!1,!0);var Kt=ht.shader.progVar.append(Je,bt);if(bt(Je.shared.gl,".useProgram(",Kt,".program);"),ht.shader.program)K(Je,bt,ht,ht.shader.program);else{bt(Je.shared.vao,".setVAO(null);");var sr=Je.global.def("{}"),Qt=bt.def(Kt,".id"),ur=bt.def(sr,"[",Qt,"]");bt(Je.cond(ur).then(ur,".call(this,a0);").else(ur,"=",sr,"[",Qt,"]=",Je.link(function(er){return O(K,Je,ht,er,1)}),"(",Kt,");",ur,".call(this,a0);"))}Object.keys(ht.state).length>0&&bt(Je.shared.current,".dirty=true;"),Je.shared.vao&&bt(Je.shared.vao,".setVAO(null);")}function ne(Je,ht,bt,Kt){Je.batchId="a1",wf(Je,ht);function sr(){return!0}Y(Je,ht,bt,Kt.attributes,sr),R(Je,ht,bt,Kt.uniforms,sr,!1),J(Je,ht,ht,bt)}function Le(Je,ht,bt,Kt){wf(Je,ht);var sr=bt.contextDep,Qt=ht.def(),ur="a0",er="a1",Ot=ht.def();Je.shared.props=Ot,Je.batchId=Qt;var Jt=Je.scope(),Lt=Je.scope();ht(Jt.entry,"for(",Qt,"=0;",Qt,"<",er,";++",Qt,"){",Ot,"=",ur,"[",Qt,"];",Lt,"}",Jt.exit);function Tr(Xa){return Xa.contextDep&&sr||Xa.propDep}function Nr(Xa){return!Tr(Xa)}if(bt.needsContext&&Hu(Je,Lt,bt.context),bt.needsFramebuffer&&hf(Je,Lt,bt.framebuffer),Fl(Je,Lt,bt.state,Tr),bt.profile&&Tr(bt.profile)&&cu(Je,Lt,bt,!1,!0),Kt)bt.useVAO?bt.drawVAO?Tr(bt.drawVAO)?Lt(Je.shared.vao,".setVAO(",bt.drawVAO.append(Je,Lt),");"):Jt(Je.shared.vao,".setVAO(",bt.drawVAO.append(Je,Jt),");"):Jt(Je.shared.vao,".setVAO(",Je.shared.vao,".targetVAO);"):(Jt(Je.shared.vao,".setVAO(null);"),Y(Je,Jt,bt,Kt.attributes,Nr),Y(Je,Lt,bt,Kt.attributes,Tr)),R(Je,Jt,bt,Kt.uniforms,Nr,!1),R(Je,Lt,bt,Kt.uniforms,Tr,!0),J(Je,Jt,Lt,bt);else{var ci=Je.global.def("{}"),Cn=bt.shader.progVar.append(Je,Lt),Ki=Lt.def(Cn,".id"),yn=Lt.def(ci,"[",Ki,"]");Lt(Je.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",ci,"[",Ki,"]=",Je.link(function(Xa){return O(ne,Je,bt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Qt,"],",Qt,");")}}function Ze(Je,ht){var bt=Je.proc("batch",2);Je.batchId="0",wf(Je,bt);var Kt=!1,sr=!0;Object.keys(ht.context).forEach(function(ci){Kt=Kt||ht.context[ci].propDep}),Kt||(Hu(Je,bt,ht.context),sr=!1);var Qt=ht.framebuffer,ur=!1;Qt?(Qt.propDep?Kt=ur=!0:Qt.contextDep&&Kt&&(ur=!0),ur||hf(Je,bt,Qt)):hf(Je,bt,null),ht.state.viewport&&ht.state.viewport.propDep&&(Kt=!0);function er(ci){return ci.contextDep&&Kt||ci.propDep}yf(Je,bt,ht),Fl(Je,bt,ht.state,function(ci){return!er(ci)}),(!ht.profile||!er(ht.profile))&&cu(Je,bt,ht,!1,"a1"),ht.contextDep=Kt,ht.needsContext=sr,ht.needsFramebuffer=ur;var Ot=ht.shader.progVar;if(Ot.contextDep&&Kt||Ot.propDep)Le(Je,bt,ht,null);else{var Jt=Ot.append(Je,bt);if(bt(Je.shared.gl,".useProgram(",Jt,".program);"),ht.shader.program)Le(Je,bt,ht,ht.shader.program);else{bt(Je.shared.vao,".setVAO(null);");var Lt=Je.global.def("{}"),Tr=bt.def(Jt,".id"),Nr=bt.def(Lt,"[",Tr,"]");bt(Je.cond(Nr).then(Nr,".call(this,a0,a1);").else(Nr,"=",Lt,"[",Tr,"]=",Je.link(function(ci){return O(Le,Je,ht,ci,2)}),"(",Jt,");",Nr,".call(this,a0,a1);"))}}Object.keys(ht.state).length>0&&bt(Je.shared.current,".dirty=true;"),Je.shared.vao&&bt(Je.shared.vao,".setVAO(null);")}function Ct(Je,ht){var bt=Je.proc("scope",3);Je.batchId="a2";var Kt=Je.shared,sr=Kt.current;if(Hu(Je,bt,ht.context),ht.framebuffer&&ht.framebuffer.append(Je,bt),sn(Object.keys(ht.state)).forEach(function(er){var Ot=ht.state[er],Jt=Ot.append(Je,bt);Qi(Jt)?Jt.forEach(function(Lt,Tr){Va(Lt)?bt.set(Je.next[er],"["+Tr+"]",Lt):bt.set(Je.next[er],"["+Tr+"]",Je.link(Lt,{stable:!0}))}):xo(Ot)?bt.set(Kt.next,"."+er,Je.link(Jt,{stable:!0})):bt.set(Kt.next,"."+er,Jt)}),cu(Je,bt,ht,!0,!0),[Ft,kr,or,Vr,ir].forEach(function(er){var Ot=ht.draw[er];if(Ot){var Jt=Ot.append(Je,bt);Va(Jt)?bt.set(Kt.draw,"."+er,Jt):bt.set(Kt.draw,"."+er,Je.link(Jt),{stable:!0})}}),Object.keys(ht.uniforms).forEach(function(er){var Ot=ht.uniforms[er].append(Je,bt);Array.isArray(Ot)&&(Ot="["+Ot.map(function(Jt){return Va(Jt)?Jt:Je.link(Jt,{stable:!0})})+"]"),bt.set(Kt.uniforms,"["+Je.link(qt.id(er),{stable:!0})+"]",Ot)}),Object.keys(ht.attributes).forEach(function(er){var Ot=ht.attributes[er].append(Je,bt),Jt=Je.scopeAttrib(er);Object.keys(new _i).forEach(function(Lt){bt.set(Jt,"."+Lt,Ot[Lt])})}),ht.scopeVAO){var Qt=ht.scopeVAO.append(Je,bt);Va(Qt)?bt.set(Kt.vao,".targetVAO",Qt):bt.set(Kt.vao,".targetVAO",Je.link(Qt,{stable:!0}))}function ur(er){var Ot=ht.shader[er];if(Ot){var Jt=Ot.append(Je,bt);Va(Jt)?bt.set(Kt.shader,"."+er,Jt):bt.set(Kt.shader,"."+er,Je.link(Jt,{stable:!0}))}}ur(et),ur(mt),Object.keys(ht.state).length>0&&(bt(sr,".dirty=true;"),bt.exit(sr,".dirty=true;")),bt("a1(",Je.shared.context,",a0,",Je.batchId,");")}function dr(Je){if(!(typeof Je!="object"||Qi(Je))){for(var ht=Object.keys(Je),bt=0;bt=0;--O){var K=_s[O];K&&K(Ni,null,0)}ar.flush(),wn&&wn.update()}function Dl(){!nl&&_s.length>0&&(nl=d.next(pl))}function Fu(){nl&&(d.cancel(pl),nl=null)}function mf(O){O.preventDefault(),mi=!0,Fu(),ul.forEach(function(K){K()})}function Ql(O){ar.getError(),mi=!1,fi.restore(),hs.restore(),En.restore(),$i.restore(),Ui.restore(),ro.restore(),ga.restore(),wn&&wn.restore(),na.procs.refresh(),Dl(),Qn.forEach(function(K){K()})}Va&&(Va.addEventListener(Au,mf,!1),Va.addEventListener(Tu,Ql,!1));function kf(){_s.length=0,Fu(),Va&&(Va.removeEventListener(Au,mf),Va.removeEventListener(Tu,Ql)),hs.clear(),ro.clear(),Ui.clear(),ga.clear(),$i.clear(),Yi.clear(),En.clear(),wn&&wn.clear(),Mo.forEach(function(O){O()})}function Cu(O){function K(Qt){var ur=e({},Qt);delete ur.uniforms,delete ur.attributes,delete ur.context,delete ur.vao,"stencil"in ur&&ur.stencil.op&&(ur.stencil.opBack=ur.stencil.opFront=ur.stencil.op,delete ur.stencil.op);function er(Ot){if(Ot in ur){var Jt=ur[Ot];delete ur[Ot],Object.keys(Jt).forEach(function(Lt){ur[Ot+"."+Lt]=Jt[Lt]})}}return er("blend"),er("depth"),er("cull"),er("stencil"),er("polygonOffset"),er("scissor"),er("sample"),"vao"in Qt&&(ur.vao=Qt.vao),ur}function _e(Qt,ur){var er={},Ot={};return Object.keys(Qt).forEach(function(Jt){var Lt=Qt[Jt];if(h.isDynamic(Lt)){Ot[Jt]=h.unbox(Lt,Jt);return}else if(ur&&Array.isArray(Lt)){for(var Tr=0;Tr0)return Je.call(this,Kt(Qt|0),Qt|0)}else if(Array.isArray(Qt)){if(Qt.length)return Je.call(this,Qt,Qt.length)}else return lr.call(this,Qt)}return e(sr,{stats:dr,destroy:function(){Er.destroy()}})}var _f=ro.setFBO=Cu({framebuffer:h.define.call(null,uf,"framebuffer")});function bf(O,K){var _e=0;na.procs.poll();var ne=K.color;ne&&(ar.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),_e|=Gu),"depth"in K&&(ar.clearDepth(+K.depth),_e|=rf),"stencil"in K&&(ar.clearStencil(K.stencil|0),_e|=ds),ar.clear(_e)}function Lf(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)_f(e({framebuffer:O.framebuffer.faces[K]},O),bf);else _f(O,bf);else bf(null,O)}function Hu(O){_s.push(O);function K(){var _e=vf(_s,O);function ne(){var Le=vf(_s,ne);_s[Le]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Fu()}_s[_e]=ne}return Dl(),{cancel:K}}function hf(){var O=In.viewport,K=In.scissor_box;O[0]=O[1]=K[0]=K[1]=0,Ni.viewportWidth=Ni.framebufferWidth=Ni.drawingBufferWidth=O[2]=K[2]=ar.drawingBufferWidth,Ni.viewportHeight=Ni.framebufferHeight=Ni.drawingBufferHeight=O[3]=K[3]=ar.drawingBufferHeight}function yf(){Ni.tick+=1,Ni.time=wf(),hf(),na.procs.poll()}function Fl(){$i.refresh(),hf(),na.procs.refresh(),wn&&wn.update()}function wf(){return(p()-Ls)/1e3}Fl();function cu(O,K){var _e;switch(O){case"frame":return Hu(K);case"lost":_e=ul;break;case"restore":_e=Qn;break;case"destroy":_e=Mo;break;default:}return _e.push(K),{cancel:function(){for(var ne=0;ne<_e.length;++ne)if(_e[ne]===K){_e[ne]=_e[_e.length-1],_e.pop();return}}}}function Y(){return Bn}function R(O){Object.entries(O).forEach(function(K){Bn[K[0]]=K[1]})}var J=e(Cu,{clear:Lf,prop:h.define.bind(null,uf),context:h.define.bind(null,df),this:h.define.bind(null,Ef),draw:Cu({}),buffer:function(O){return En.create(O,Wl,!1,!1)},elements:function(O){return Yi.create(O,!1)},texture:$i.create2D,cube:$i.createCube,renderbuffer:Ui.create,framebuffer:ro.create,framebufferCube:ro.createCube,vao:ga.createVAO,attributes:Qr,frame:Hu,on:cu,limits:dn,hasExtension:function(O){return dn.extensions.indexOf(O.toLowerCase())>=0},read:On,destroy:kf,_gl:ar,_refresh:Fl,poll:function(){yf(),wn&&wn.update()},now:wf,stats:on,getCachedCode:Y,preloadCachedCode:R});return qt.onDone(null,J),J}return fc})});var A8=Te((V_r,ENe)=>{"use strict";var HUt=FX(),WUt=MNe();ENe.exports=function(t,r,n){var i=t._fullLayout,a=!0;return i._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(n);return}if(!(o.pick&&!i._has("parcoords"))){try{o.regl=WUt({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:n||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||HUt({container:i._glcontainer.node()}),a}});var xK=Te((_K,zNe)=>{"use strict";var kNe=_Y(),CNe=KY(),jUt=mqe(),LNe=SNe(),gK=ei(),XUt=Mm().selectMode,ZUt=A8(),YUt=lc(),KUt=EU(),JUt=vY().styleTextSelection,PNe={};function $Ut(e,t,r,n){var i=e._size,a=e.width*n,o=e.height*n,s=i.l*n,u=i.b*n,l=i.r*n,f=i.t*n,c=i.w*n,h=i.h*n;return[s+t.domain[0]*c,u+r.domain[0]*h,a-l-(1-t.domain[1])*c,o-f-(1-r.domain[1])*h]}var _K=zNe.exports=function(t,r,n){if(n.length){var i=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,u,l;if(a){var f=ZUt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],PNe);if(!f){a.init();return}var c=a.count,h=i._glcanvas.data()[0].regl;if(KUt(t,r,n),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=jUt(h)),a.line2d===!0&&(a.line2d=CNe(h)),a.scatter2d===!0&&(a.scatter2d=kNe(h)),a.fill2d===!0&&(a.fill2d=CNe(h)),a.glText===!0)for(a.glText=new Array(c),u=0;ua.glText.length){var d=c-a.glText.length;for(u=0;uae&&(isNaN(re[be])||isNaN(re[be+1]));)be-=2;W.positions=re.slice(ae,be+2)}return W}),a.line2d.update(a.lineOptions)),a.error2d){var b=(a.errorXOptions||[]).concat(a.errorYOptions||[]);a.error2d.update(b)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=gK.repeat(null,c),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(W,re){var ae=n[re];if(!(!W||!ae||!ae[0]||!ae[0].trace)){var be=ae[0],Pe=be.trace,Ce=be.t,de=a.lineOptions[re],te,ke,Ee=[];Pe._ownfill&&Ee.push(re),Pe._nexttrace&&Ee.push(re+1),Ee.length&&(a.fillOrder[re]=Ee);var Me=[],Ne=de&&de.positions||Ce.positions,Fe,ye;if(Pe.fill==="tozeroy"){for(Fe=0;FeFe&&isNaN(Ne[ye+1]);)ye-=2;Ne[Fe+1]!==0&&(Me=[Ne[Fe],0]),Me=Me.concat(Ne.slice(Fe,ye+2)),Ne[ye+1]!==0&&(Me=Me.concat([Ne[ye],0]))}else if(Pe.fill==="tozerox"){for(Fe=0;FeFe&&isNaN(Ne[ye]);)ye-=2;Ne[Fe]!==0&&(Me=[0,Ne[Fe+1]]),Me=Me.concat(Ne.slice(Fe,ye+2)),Ne[ye]!==0&&(Me=Me.concat([0,Ne[ye+1]]))}else if(Pe.fill==="toself"||Pe.fill==="tonext"){for(Me=[],te=0,W.splitNull=!0,ke=0;ke-1;for(u=0;u{INe.exports=function(t,r,n){"use strict";var i,a,o,s,u,l,f,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt,Nt,it,Ye,kt,Tt,St,Rt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr;return i=t.gl,a=t.context,o=t.strings,s=t.next,u=t.current,l=t.draw,f=t.elements,c=t.buffer,h=t.shader,d=t.attributes,p=t.vao,_=t.uniforms,b=t.framebuffer,v=t.extensions,k=t.timer,E=t.isBufferArgs,T=s.blend_color,L=u.blend_color,x=s.blend_equation,C=u.blend_equation,M=s.blend_func,m=u.blend_func,P=s.depth_range,A=u.depth_range,B=s.colorMask,F=u.colorMask,U=s.polygonOffset_offset,G=u.polygonOffset_offset,j=s.sample_coverage,H=u.sample_coverage,N=s.stencil_func,W=u.stencil_func,re=s.stencil_opFront,ae=u.stencil_opFront,be=s.stencil_opBack,Pe=u.stencil_opBack,Ce=s.scissor_box,de=u.scissor_box,te=s.viewport,ke=u.viewport,Ee={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Me={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ne={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Fe={add:32774,subtract:32778,"reverse subtract":32779},ye={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ve={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},ce={cw:2304,ccw:2305},Ke=s.blend_color,nt=u.blend_color,gt=s.blend_equation,Nt=u.blend_equation,it=s.blend_func,Ye=u.blend_func,kt=s.depth_range,Tt=u.depth_range,St=s.colorMask,Rt=u.colorMask,Zt=s.polygonOffset_offset,Et=u.polygonOffset_offset,Ae=s.sample_coverage,at=u.sample_coverage,wt=s.stencil_func,vt=u.stencil_func,st=s.stencil_opFront,Ue=u.stencil_opFront,rt=s.stencil_opBack,$e=u.stencil_opBack,zt=s.scissor_box,Yt=u.scissor_box,hr=s.viewport,yr=u.viewport,{poll:function(){var br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii;u.dirty=!1,Ut=s.dither,Ie=s.blend_enable,xe=s.depth_enable,Oe=s.cull_enable,Re=s.polygonOffset_enable,De=s.sample_alpha,ct=s.sample_enable,ge=s.stencil_enable,fe=s.scissor_enable,pe=s.depth_func,dt=u.depth_func,It=s.depth_mask,Pt=u.depth_mask,rr=s.cull_face,Hr=u.cull_face,Dr=s.frontFace,Mr=u.frontFace,Fr=s.lineWidth,di=u.lineWidth,Di=s.stencil_mask,Ii=u.stencil_mask,br=b.next,br!==b.cur&&(br?i.bindFramebuffer(36160,br.framebuffer):i.bindFramebuffer(36160,null),b.cur=br),Ut!==u.dither&&(Ut?i.enable(3024):i.disable(3024),u.dither=Ut),Ie!==u.blend_enable&&(Ie?i.enable(3042):i.disable(3042),u.blend_enable=Ie),xe!==u.depth_enable&&(xe?i.enable(2929):i.disable(2929),u.depth_enable=xe),Oe!==u.cull_enable&&(Oe?i.enable(2884):i.disable(2884),u.cull_enable=Oe),Re!==u.polygonOffset_enable&&(Re?i.enable(32823):i.disable(32823),u.polygonOffset_enable=Re),De!==u.sample_alpha&&(De?i.enable(32926):i.disable(32926),u.sample_alpha=De),ct!==u.sample_enable&&(ct?i.enable(32928):i.disable(32928),u.sample_enable=ct),ge!==u.stencil_enable&&(ge?i.enable(2960):i.disable(2960),u.stencil_enable=ge),fe!==u.scissor_enable&&(fe?i.enable(3089):i.disable(3089),u.scissor_enable=fe),(Ke[0]!==nt[0]||Ke[1]!==nt[1]||Ke[2]!==nt[2]||Ke[3]!==nt[3])&&(i.blendColor(Ke[0],Ke[1],Ke[2],Ke[3]),nt[0]=Ke[0],nt[1]=Ke[1],nt[2]=Ke[2],nt[3]=Ke[3]),(gt[0]!==Nt[0]||gt[1]!==Nt[1])&&(i.blendEquationSeparate(gt[0],gt[1]),Nt[0]=gt[0],Nt[1]=gt[1]),(it[0]!==Ye[0]||it[1]!==Ye[1]||it[2]!==Ye[2]||it[3]!==Ye[3])&&(i.blendFuncSeparate(it[0],it[1],it[2],it[3]),Ye[0]=it[0],Ye[1]=it[1],Ye[2]=it[2],Ye[3]=it[3]),pe!==dt&&(i.depthFunc(pe),u.depth_func=pe),(kt[0]!==Tt[0]||kt[1]!==Tt[1])&&(i.depthRange(kt[0],kt[1]),Tt[0]=kt[0],Tt[1]=kt[1]),It!==Pt&&(i.depthMask(It),u.depth_mask=It),(St[0]!==Rt[0]||St[1]!==Rt[1]||St[2]!==Rt[2]||St[3]!==Rt[3])&&(i.colorMask(St[0],St[1],St[2],St[3]),Rt[0]=St[0],Rt[1]=St[1],Rt[2]=St[2],Rt[3]=St[3]),rr!==Hr&&(i.cullFace(rr),u.cull_face=rr),Dr!==Mr&&(i.frontFace(Dr),u.frontFace=Dr),Fr!==di&&(i.lineWidth(Fr),u.lineWidth=Fr),(Zt[0]!==Et[0]||Zt[1]!==Et[1])&&(i.polygonOffset(Zt[0],Zt[1]),Et[0]=Zt[0],Et[1]=Zt[1]),(Ae[0]!==at[0]||Ae[1]!==at[1])&&(i.sampleCoverage(Ae[0],Ae[1]),at[0]=Ae[0],at[1]=Ae[1]),Di!==Ii&&(i.stencilMask(Di),u.stencil_mask=Di),(wt[0]!==vt[0]||wt[1]!==vt[1]||wt[2]!==vt[2])&&(i.stencilFunc(wt[0],wt[1],wt[2]),vt[0]=wt[0],vt[1]=wt[1],vt[2]=wt[2]),(st[0]!==Ue[0]||st[1]!==Ue[1]||st[2]!==Ue[2]||st[3]!==Ue[3])&&(i.stencilOpSeparate(st[0],st[1],st[2],st[3]),Ue[0]=st[0],Ue[1]=st[1],Ue[2]=st[2],Ue[3]=st[3]),(rt[0]!==$e[0]||rt[1]!==$e[1]||rt[2]!==$e[2]||rt[3]!==$e[3])&&(i.stencilOpSeparate(rt[0],rt[1],rt[2],rt[3]),$e[0]=rt[0],$e[1]=rt[1],$e[2]=rt[2],$e[3]=rt[3]),(zt[0]!==Yt[0]||zt[1]!==Yt[1]||zt[2]!==Yt[2]||zt[3]!==Yt[3])&&(i.scissor(zt[0],zt[1],zt[2],zt[3]),Yt[0]=zt[0],Yt[1]=zt[1],Yt[2]=zt[2],Yt[3]=zt[3]),(hr[0]!==yr[0]||hr[1]!==yr[1]||hr[2]!==yr[2]||hr[3]!==yr[3])&&(i.viewport(hr[0],hr[1],hr[2],hr[3]),yr[0]=hr[0],yr[1]=hr[1],yr[2]=hr[2],yr[3]=hr[3])},refresh:function(){var br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn;u.dirty=!1,xe=s.dither,Oe=s.blend_enable,Re=s.depth_enable,De=s.cull_enable,ct=s.polygonOffset_enable,ge=s.sample_alpha,fe=s.sample_enable,pe=s.stencil_enable,dt=s.scissor_enable,It=s.depth_func,Pt=u.depth_func,rr=s.depth_mask,Hr=u.depth_mask,Dr=s.cull_face,Mr=u.cull_face,Fr=s.frontFace,di=u.frontFace,Di=s.lineWidth,Ii=u.lineWidth,Ci=s.stencil_mask,nn=u.stencil_mask,br=b.next,br?i.bindFramebuffer(36160,br.framebuffer):i.bindFramebuffer(36160,null),b.cur=br,Ut=d,Ie=0;for(var ii=0;ii{RNe.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt,Nt,it,Ye,kt;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,_=t.elements,b=t.buffer,v=t.shader,k=t.attributes,E=t.vao,T=t.uniforms,L=t.framebuffer,x=t.extensions,C=t.timer,M=t.isBufferArgs,m=h.blend_color,P=d.blend_color,A=h.blend_equation,B=d.blend_equation,F=h.blend_func,U=d.blend_func,G=h.depth_range,j=d.depth_range,H=h.colorMask,N=d.colorMask,W=h.polygonOffset_offset,re=d.polygonOffset_offset,ae=h.sample_coverage,be=d.sample_coverage,Pe=h.stencil_func,Ce=d.stencil_func,de=h.stencil_opFront,te=d.stencil_opFront,ke=h.stencil_opBack,Ee=d.stencil_opBack,Me=h.scissor_box,Ne=d.scissor_box,Fe=h.viewport,ye=d.viewport,Ve={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ce={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ke={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},nt={add:32774,subtract:32778,"reverse subtract":32779},gt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Nt={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},it={cw:2304,ccw:2305},Ye={},kt={},{draw:function(Tt){var St,Rt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie;if(St=x.angle_instanced_arrays,Rt=Tt.framebuffer,Zt=L.getFramebuffer(Rt),Et=L.next,L.next=Zt,Ae=f.framebufferWidth,f.framebufferWidth=Zt?Zt.width:f.drawingBufferWidth,at=f.framebufferHeight,f.framebufferHeight=Zt?Zt.height:f.drawingBufferHeight,Zt!==L.cur&&(Zt?l.bindFramebuffer(36160,Zt.framebuffer):l.bindFramebuffer(36160,null),L.cur=Zt),d.dirty){var xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri;xe=h.dither,xe!==d.dither&&(xe?l.enable(3024):l.disable(3024),d.dither=xe),Oe=h.blend_enable,Oe!==d.blend_enable&&(Oe?l.enable(3042):l.disable(3042),d.blend_enable=Oe),Re=m[0],De=m[1],ct=m[2],ge=m[3],(Re!==P[0]||De!==P[1]||ct!==P[2]||ge!==P[3])&&(l.blendColor(Re,De,ct,ge),P[0]=Re,P[1]=De,P[2]=ct,P[3]=ge),fe=A[0],pe=A[1],(fe!==B[0]||pe!==B[1])&&(l.blendEquationSeparate(fe,pe),B[0]=fe,B[1]=pe),dt=F[0],It=F[1],Pt=F[2],rr=F[3],(dt!==U[0]||It!==U[1]||Pt!==U[2]||rr!==U[3])&&(l.blendFuncSeparate(dt,It,Pt,rr),U[0]=dt,U[1]=It,U[2]=Pt,U[3]=rr),Hr=h.depth_enable,Hr!==d.depth_enable&&(Hr?l.enable(2929):l.disable(2929),d.depth_enable=Hr),Dr=h.depth_func,Dr!==d.depth_func&&(l.depthFunc(Dr),d.depth_func=Dr),Mr=G[0],Fr=G[1],(Mr!==j[0]||Fr!==j[1])&&(l.depthRange(Mr,Fr),j[0]=Mr,j[1]=Fr),di=h.depth_mask,di!==d.depth_mask&&(l.depthMask(di),d.depth_mask=di),Di=H[0],Ii=H[1],Ci=H[2],nn=H[3],(Di!==N[0]||Ii!==N[1]||Ci!==N[2]||nn!==N[3])&&(l.colorMask(Di,Ii,Ci,nn),N[0]=Di,N[1]=Ii,N[2]=Ci,N[3]=nn),ii=h.cull_enable,ii!==d.cull_enable&&(ii?l.enable(2884):l.disable(2884),d.cull_enable=ii),wi=h.cull_face,wi!==d.cull_face&&(l.cullFace(wi),d.cull_face=wi),Gi=h.frontFace,Gi!==d.frontFace&&(l.frontFace(Gi),d.frontFace=Gi),Bt=h.lineWidth,Bt!==d.lineWidth&&(l.lineWidth(Bt),d.lineWidth=Bt),yt=h.polygonOffset_enable,yt!==d.polygonOffset_enable&&(yt?l.enable(32823):l.disable(32823),d.polygonOffset_enable=yt),Vt=W[0],Wt=W[1],(Vt!==re[0]||Wt!==re[1])&&(l.polygonOffset(Vt,Wt),re[0]=Vt,re[1]=Wt),_r=h.sample_alpha,_r!==d.sample_alpha&&(_r?l.enable(32926):l.disable(32926),d.sample_alpha=_r),Lr=h.sample_enable,Lr!==d.sample_enable&&(Lr?l.enable(32928):l.disable(32928),d.sample_enable=Lr),Ur=ae[0],Ir=ae[1],(Ur!==be[0]||Ir!==be[1])&&(l.sampleCoverage(Ur,Ir),be[0]=Ur,be[1]=Ir),Gr=h.stencil_enable,Gr!==d.stencil_enable&&(Gr?l.enable(2960):l.disable(2960),d.stencil_enable=Gr),jr=h.stencil_mask,jr!==d.stencil_mask&&(l.stencilMask(jr),d.stencil_mask=jr),yi=Pe[0],Ei=Pe[1],Vi=Pe[2],(yi!==Ce[0]||Ei!==Ce[1]||Vi!==Ce[2])&&(l.stencilFunc(yi,Ei,Vi),Ce[0]=yi,Ce[1]=Ei,Ce[2]=Vi),ti=de[0],en=de[1],Yr=de[2],oi=de[3],(ti!==te[0]||en!==te[1]||Yr!==te[2]||oi!==te[3])&&(l.stencilOpSeparate(ti,en,Yr,oi),te[0]=ti,te[1]=en,te[2]=Yr,te[3]=oi),Bi=ke[0],an=ke[1],rn=ke[2],Fi=ke[3],(Bi!==Ee[0]||an!==Ee[1]||rn!==Ee[2]||Fi!==Ee[3])&&(l.stencilOpSeparate(Bi,an,rn,Fi),Ee[0]=Bi,Ee[1]=an,Ee[2]=rn,Ee[3]=Fi),Ri=h.scissor_enable,Ri!==d.scissor_enable&&(Ri?l.enable(3089):l.disable(3089),d.scissor_enable=Ri)}wt=f.framebufferWidth,vt=f.framebufferHeight,st=f.viewportWidth,f.viewportWidth=wt,Ue=f.viewportHeight,f.viewportHeight=vt,l.viewport(0,0,wt,vt),ye[0]=0,ye[1]=0,ye[2]=wt,ye[3]=vt,rt=f.framebufferWidth,$e=f.framebufferHeight,l.scissor(0,0,rt,$e),Ne[0]=0,Ne[1]=0,Ne[2]=rt,Ne[3]=$e,zt=d.profile,zt&&(Yt=performance.now(),r.count++),hr=v.frag,yr=v.vert,br=v.program(yr,hr),l.useProgram(br.program),E.setVAO(null),Ut=br.id,Ie=Ye[Ut],Ie?Ie.call(this,Tt):(Ie=Ye[Ut]=n(br),Ie.call(this,Tt)),d.dirty=!0,E.setVAO(null),L.next=Et,f.framebufferWidth=Ae,f.framebufferHeight=at,f.viewportWidth=st,f.viewportHeight=Ue,zt&&(r.cpuTime+=performance.now()-Yt)},scope:function(Tt,St,Rt){var Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De;Zt=Tt.framebuffer,Et=L.getFramebuffer(Zt),Ae=L.next,L.next=Et,at=f.framebufferWidth,f.framebufferWidth=Et?Et.width:f.drawingBufferWidth,wt=f.framebufferHeight,f.framebufferHeight=Et?Et.height:f.drawingBufferHeight,vt=f.framebufferWidth,st=f.framebufferHeight,Ue=f.viewportWidth,f.viewportWidth=vt,rt=f.viewportHeight,f.viewportHeight=st,$e=Fe[0],Fe[0]=i,zt=Fe[1],Fe[1]=a,Yt=Fe[2],Fe[2]=vt,hr=Fe[3],Fe[3]=st,yr=f.framebufferWidth,br=f.framebufferHeight,Ut=Me[0],Me[0]=o,Ie=Me[1],Me[1]=s,xe=Me[2],Me[2]=yr,Oe=Me[3],Me[3]=br,Re=d.profile,Re&&(De=performance.now(),r.count++),d.dirty=!0,St(f,Tt,Rt),L.next=Ae,f.framebufferWidth=at,f.framebufferHeight=wt,f.viewportWidth=Ue,f.viewportHeight=rt,Fe[0]=$e,Fe[1]=zt,Fe[2]=Yt,Fe[3]=hr,Me[0]=Ut,Me[1]=Ie,Me[2]=xe,Me[3]=Oe,Re&&(r.cpuTime+=performance.now()-De),d.dirty=!0},batch:function(Tt,St){var Rt,Zt,Et,Ae,at,wt,vt,st;if(Rt=x.angle_instanced_arrays,d.dirty){var Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei;Ue=h.dither,Ue!==d.dither&&(Ue?l.enable(3024):l.disable(3024),d.dither=Ue),rt=h.blend_enable,rt!==d.blend_enable&&(rt?l.enable(3042):l.disable(3042),d.blend_enable=rt),$e=m[0],zt=m[1],Yt=m[2],hr=m[3],($e!==P[0]||zt!==P[1]||Yt!==P[2]||hr!==P[3])&&(l.blendColor($e,zt,Yt,hr),P[0]=$e,P[1]=zt,P[2]=Yt,P[3]=hr),yr=A[0],br=A[1],(yr!==B[0]||br!==B[1])&&(l.blendEquationSeparate(yr,br),B[0]=yr,B[1]=br),Ut=F[0],Ie=F[1],xe=F[2],Oe=F[3],(Ut!==U[0]||Ie!==U[1]||xe!==U[2]||Oe!==U[3])&&(l.blendFuncSeparate(Ut,Ie,xe,Oe),U[0]=Ut,U[1]=Ie,U[2]=xe,U[3]=Oe),Re=h.depth_enable,Re!==d.depth_enable&&(Re?l.enable(2929):l.disable(2929),d.depth_enable=Re),De=h.depth_func,De!==d.depth_func&&(l.depthFunc(De),d.depth_func=De),ct=G[0],ge=G[1],(ct!==j[0]||ge!==j[1])&&(l.depthRange(ct,ge),j[0]=ct,j[1]=ge),fe=h.depth_mask,fe!==d.depth_mask&&(l.depthMask(fe),d.depth_mask=fe),pe=H[0],dt=H[1],It=H[2],Pt=H[3],(pe!==N[0]||dt!==N[1]||It!==N[2]||Pt!==N[3])&&(l.colorMask(pe,dt,It,Pt),N[0]=pe,N[1]=dt,N[2]=It,N[3]=Pt),rr=h.cull_enable,rr!==d.cull_enable&&(rr?l.enable(2884):l.disable(2884),d.cull_enable=rr),Hr=h.cull_face,Hr!==d.cull_face&&(l.cullFace(Hr),d.cull_face=Hr),Dr=h.frontFace,Dr!==d.frontFace&&(l.frontFace(Dr),d.frontFace=Dr),Mr=h.lineWidth,Mr!==d.lineWidth&&(l.lineWidth(Mr),d.lineWidth=Mr),Fr=h.polygonOffset_enable,Fr!==d.polygonOffset_enable&&(Fr?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Fr),di=W[0],Di=W[1],(di!==re[0]||Di!==re[1])&&(l.polygonOffset(di,Di),re[0]=di,re[1]=Di),Ii=h.sample_alpha,Ii!==d.sample_alpha&&(Ii?l.enable(32926):l.disable(32926),d.sample_alpha=Ii),Ci=h.sample_enable,Ci!==d.sample_enable&&(Ci?l.enable(32928):l.disable(32928),d.sample_enable=Ci),nn=ae[0],ii=ae[1],(nn!==be[0]||ii!==be[1])&&(l.sampleCoverage(nn,ii),be[0]=nn,be[1]=ii),wi=h.stencil_enable,wi!==d.stencil_enable&&(wi?l.enable(2960):l.disable(2960),d.stencil_enable=wi),Gi=h.stencil_mask,Gi!==d.stencil_mask&&(l.stencilMask(Gi),d.stencil_mask=Gi),Bt=Pe[0],yt=Pe[1],Vt=Pe[2],(Bt!==Ce[0]||yt!==Ce[1]||Vt!==Ce[2])&&(l.stencilFunc(Bt,yt,Vt),Ce[0]=Bt,Ce[1]=yt,Ce[2]=Vt),Wt=de[0],_r=de[1],Lr=de[2],Ur=de[3],(Wt!==te[0]||_r!==te[1]||Lr!==te[2]||Ur!==te[3])&&(l.stencilOpSeparate(Wt,_r,Lr,Ur),te[0]=Wt,te[1]=_r,te[2]=Lr,te[3]=Ur),Ir=ke[0],Gr=ke[1],jr=ke[2],yi=ke[3],(Ir!==Ee[0]||Gr!==Ee[1]||jr!==Ee[2]||yi!==Ee[3])&&(l.stencilOpSeparate(Ir,Gr,jr,yi),Ee[0]=Ir,Ee[1]=Gr,Ee[2]=jr,Ee[3]=yi),Ei=h.scissor_enable,Ei!==d.scissor_enable&&(Ei?l.enable(3089):l.disable(3089),d.scissor_enable=Ei)}Zt=d.profile,Zt&&(Et=performance.now(),r.count+=St),Ae=v.frag,at=v.vert,wt=v.program(at,Ae),l.useProgram(wt.program),E.setVAO(null),vt=wt.id,st=kt[vt],st?st.call(this,Tt,St):(st=kt[vt]=u(wt),st.call(this,Tt,St)),d.dirty=!0,E.setVAO(null),Zt&&(r.cpuTime+=performance.now()-Et)}}}});var M8=Te((W_r,DNe)=>{DNe.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt;return a=t.gl,o=t.context,s=t.strings,u=t.next,l=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,_=t.vao,b=t.uniforms,v=t.framebuffer,k=t.extensions,E=t.timer,T=t.isBufferArgs,L=u.blend_color,x=l.blend_color,C=u.blend_equation,M=l.blend_equation,m=u.blend_func,P=l.blend_func,A=u.depth_range,B=l.depth_range,F=u.colorMask,U=l.colorMask,G=u.polygonOffset_offset,j=l.polygonOffset_offset,H=u.sample_coverage,N=l.sample_coverage,W=u.stencil_func,re=l.stencil_func,ae=u.stencil_opFront,be=l.stencil_opFront,Pe=u.stencil_opBack,Ce=l.stencil_opBack,de=u.scissor_box,te=l.scissor_box,ke=u.viewport,Ee=l.viewport,Me={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ne={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Fe={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},ye={add:32774,subtract:32778,"reverse subtract":32779},Ve={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ce={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ke={cw:2304,ccw:2305},nt={},gt={},{draw:function(Nt){var it,Ye,kt,Tt,St,Rt,Zt,Et,Ae;if(it=k.angle_instanced_arrays,Ye=v.next,Ye!==v.cur&&(Ye?a.bindFramebuffer(36160,Ye.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ye),l.dirty){var at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr;at=u.dither,at!==l.dither&&(at?a.enable(3024):a.disable(3024),l.dither=at),wt=u.blend_enable,wt!==l.blend_enable&&(wt?a.enable(3042):a.disable(3042),l.blend_enable=wt),vt=L[0],st=L[1],Ue=L[2],rt=L[3],(vt!==x[0]||st!==x[1]||Ue!==x[2]||rt!==x[3])&&(a.blendColor(vt,st,Ue,rt),x[0]=vt,x[1]=st,x[2]=Ue,x[3]=rt),$e=C[0],zt=C[1],($e!==M[0]||zt!==M[1])&&(a.blendEquationSeparate($e,zt),M[0]=$e,M[1]=zt),Yt=m[0],hr=m[1],yr=m[2],br=m[3],(Yt!==P[0]||hr!==P[1]||yr!==P[2]||br!==P[3])&&(a.blendFuncSeparate(Yt,hr,yr,br),P[0]=Yt,P[1]=hr,P[2]=yr,P[3]=br),Ut=u.depth_enable,Ut!==l.depth_enable&&(Ut?a.enable(2929):a.disable(2929),l.depth_enable=Ut),Ie=u.depth_func,Ie!==l.depth_func&&(a.depthFunc(Ie),l.depth_func=Ie),xe=A[0],Oe=A[1],(xe!==B[0]||Oe!==B[1])&&(a.depthRange(xe,Oe),B[0]=xe,B[1]=Oe),Re=u.depth_mask,Re!==l.depth_mask&&(a.depthMask(Re),l.depth_mask=Re),De=F[0],ct=F[1],ge=F[2],fe=F[3],(De!==U[0]||ct!==U[1]||ge!==U[2]||fe!==U[3])&&(a.colorMask(De,ct,ge,fe),U[0]=De,U[1]=ct,U[2]=ge,U[3]=fe),pe=u.cull_enable,pe!==l.cull_enable&&(pe?a.enable(2884):a.disable(2884),l.cull_enable=pe),dt=u.cull_face,dt!==l.cull_face&&(a.cullFace(dt),l.cull_face=dt),It=u.frontFace,It!==l.frontFace&&(a.frontFace(It),l.frontFace=It),Pt=u.lineWidth,Pt!==l.lineWidth&&(a.lineWidth(Pt),l.lineWidth=Pt),rr=u.polygonOffset_enable,rr!==l.polygonOffset_enable&&(rr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=rr),Hr=G[0],Dr=G[1],(Hr!==j[0]||Dr!==j[1])&&(a.polygonOffset(Hr,Dr),j[0]=Hr,j[1]=Dr),Mr=u.sample_alpha,Mr!==l.sample_alpha&&(Mr?a.enable(32926):a.disable(32926),l.sample_alpha=Mr),Fr=u.sample_enable,Fr!==l.sample_enable&&(Fr?a.enable(32928):a.disable(32928),l.sample_enable=Fr),di=H[0],Di=H[1],(di!==N[0]||Di!==N[1])&&(a.sampleCoverage(di,Di),N[0]=di,N[1]=Di),Ii=u.stencil_enable,Ii!==l.stencil_enable&&(Ii?a.enable(2960):a.disable(2960),l.stencil_enable=Ii),Ci=u.stencil_mask,Ci!==l.stencil_mask&&(a.stencilMask(Ci),l.stencil_mask=Ci),nn=W[0],ii=W[1],wi=W[2],(nn!==re[0]||ii!==re[1]||wi!==re[2])&&(a.stencilFunc(nn,ii,wi),re[0]=nn,re[1]=ii,re[2]=wi),Gi=ae[0],Bt=ae[1],yt=ae[2],Vt=ae[3],(Gi!==be[0]||Bt!==be[1]||yt!==be[2]||Vt!==be[3])&&(a.stencilOpSeparate(Gi,Bt,yt,Vt),be[0]=Gi,be[1]=Bt,be[2]=yt,be[3]=Vt),Wt=Pe[0],_r=Pe[1],Lr=Pe[2],Ur=Pe[3],(Wt!==Ce[0]||_r!==Ce[1]||Lr!==Ce[2]||Ur!==Ce[3])&&(a.stencilOpSeparate(Wt,_r,Lr,Ur),Ce[0]=Wt,Ce[1]=_r,Ce[2]=Lr,Ce[3]=Ur),Ir=u.scissor_enable,Ir!==l.scissor_enable&&(Ir?a.enable(3089):a.disable(3089),l.scissor_enable=Ir),Gr=de[0],jr=de[1],yi=de[2],Ei=de[3],(Gr!==te[0]||jr!==te[1]||yi!==te[2]||Ei!==te[3])&&(a.scissor(Gr,jr,yi,Ei),te[0]=Gr,te[1]=jr,te[2]=yi,te[3]=Ei),Vi=ke[0],ti=ke[1],en=ke[2],Yr=ke[3],(Vi!==Ee[0]||ti!==Ee[1]||en!==Ee[2]||Yr!==Ee[3])&&(a.viewport(Vi,ti,en,Yr),Ee[0]=Vi,Ee[1]=ti,Ee[2]=en,Ee[3]=Yr),l.dirty=!1}kt=l.profile,kt&&(Tt=performance.now(),r.count++),St=d.frag,Rt=d.vert,Zt=d.program(Rt,St),a.useProgram(Zt.program),_.setVAO(null),Et=Zt.id,Ae=nt[Et],Ae?Ae.call(this,Nt):(Ae=nt[Et]=n(Zt),Ae.call(this,Nt)),_.setVAO(null),kt&&(r.cpuTime+=performance.now()-Tt)},scope:function(Nt,it,Ye){var kt,Tt;kt=l.profile,kt&&(Tt=performance.now(),r.count++),it(o,Nt,Ye),kt&&(r.cpuTime+=performance.now()-Tt)},batch:function(Nt,it){var Ye,kt,Tt,St,Rt,Zt,Et,Ae,at;if(Ye=k.angle_instanced_arrays,kt=v.next,kt!==v.cur&&(kt?a.bindFramebuffer(36160,kt.framebuffer):a.bindFramebuffer(36160,null),v.cur=kt),l.dirty){var wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi;wt=u.dither,wt!==l.dither&&(wt?a.enable(3024):a.disable(3024),l.dither=wt),vt=u.blend_enable,vt!==l.blend_enable&&(vt?a.enable(3042):a.disable(3042),l.blend_enable=vt),st=L[0],Ue=L[1],rt=L[2],$e=L[3],(st!==x[0]||Ue!==x[1]||rt!==x[2]||$e!==x[3])&&(a.blendColor(st,Ue,rt,$e),x[0]=st,x[1]=Ue,x[2]=rt,x[3]=$e),zt=C[0],Yt=C[1],(zt!==M[0]||Yt!==M[1])&&(a.blendEquationSeparate(zt,Yt),M[0]=zt,M[1]=Yt),hr=m[0],yr=m[1],br=m[2],Ut=m[3],(hr!==P[0]||yr!==P[1]||br!==P[2]||Ut!==P[3])&&(a.blendFuncSeparate(hr,yr,br,Ut),P[0]=hr,P[1]=yr,P[2]=br,P[3]=Ut),Ie=u.depth_enable,Ie!==l.depth_enable&&(Ie?a.enable(2929):a.disable(2929),l.depth_enable=Ie),xe=u.depth_func,xe!==l.depth_func&&(a.depthFunc(xe),l.depth_func=xe),Oe=A[0],Re=A[1],(Oe!==B[0]||Re!==B[1])&&(a.depthRange(Oe,Re),B[0]=Oe,B[1]=Re),De=u.depth_mask,De!==l.depth_mask&&(a.depthMask(De),l.depth_mask=De),ct=F[0],ge=F[1],fe=F[2],pe=F[3],(ct!==U[0]||ge!==U[1]||fe!==U[2]||pe!==U[3])&&(a.colorMask(ct,ge,fe,pe),U[0]=ct,U[1]=ge,U[2]=fe,U[3]=pe),dt=u.cull_enable,dt!==l.cull_enable&&(dt?a.enable(2884):a.disable(2884),l.cull_enable=dt),It=u.cull_face,It!==l.cull_face&&(a.cullFace(It),l.cull_face=It),Pt=u.frontFace,Pt!==l.frontFace&&(a.frontFace(Pt),l.frontFace=Pt),rr=u.lineWidth,rr!==l.lineWidth&&(a.lineWidth(rr),l.lineWidth=rr),Hr=u.polygonOffset_enable,Hr!==l.polygonOffset_enable&&(Hr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=Hr),Dr=G[0],Mr=G[1],(Dr!==j[0]||Mr!==j[1])&&(a.polygonOffset(Dr,Mr),j[0]=Dr,j[1]=Mr),Fr=u.sample_alpha,Fr!==l.sample_alpha&&(Fr?a.enable(32926):a.disable(32926),l.sample_alpha=Fr),di=u.sample_enable,di!==l.sample_enable&&(di?a.enable(32928):a.disable(32928),l.sample_enable=di),Di=H[0],Ii=H[1],(Di!==N[0]||Ii!==N[1])&&(a.sampleCoverage(Di,Ii),N[0]=Di,N[1]=Ii),Ci=u.stencil_enable,Ci!==l.stencil_enable&&(Ci?a.enable(2960):a.disable(2960),l.stencil_enable=Ci),nn=u.stencil_mask,nn!==l.stencil_mask&&(a.stencilMask(nn),l.stencil_mask=nn),ii=W[0],wi=W[1],Gi=W[2],(ii!==re[0]||wi!==re[1]||Gi!==re[2])&&(a.stencilFunc(ii,wi,Gi),re[0]=ii,re[1]=wi,re[2]=Gi),Bt=ae[0],yt=ae[1],Vt=ae[2],Wt=ae[3],(Bt!==be[0]||yt!==be[1]||Vt!==be[2]||Wt!==be[3])&&(a.stencilOpSeparate(Bt,yt,Vt,Wt),be[0]=Bt,be[1]=yt,be[2]=Vt,be[3]=Wt),_r=Pe[0],Lr=Pe[1],Ur=Pe[2],Ir=Pe[3],(_r!==Ce[0]||Lr!==Ce[1]||Ur!==Ce[2]||Ir!==Ce[3])&&(a.stencilOpSeparate(_r,Lr,Ur,Ir),Ce[0]=_r,Ce[1]=Lr,Ce[2]=Ur,Ce[3]=Ir),Gr=u.scissor_enable,Gr!==l.scissor_enable&&(Gr?a.enable(3089):a.disable(3089),l.scissor_enable=Gr),jr=de[0],yi=de[1],Ei=de[2],Vi=de[3],(jr!==te[0]||yi!==te[1]||Ei!==te[2]||Vi!==te[3])&&(a.scissor(jr,yi,Ei,Vi),te[0]=jr,te[1]=yi,te[2]=Ei,te[3]=Vi),ti=ke[0],en=ke[1],Yr=ke[2],oi=ke[3],(ti!==Ee[0]||en!==Ee[1]||Yr!==Ee[2]||oi!==Ee[3])&&(a.viewport(ti,en,Yr,oi),Ee[0]=ti,Ee[1]=en,Ee[2]=Yr,Ee[3]=oi),l.dirty=!1}Tt=l.profile,Tt&&(St=performance.now(),r.count+=it),Rt=d.frag,Zt=d.vert,Et=d.program(Zt,Rt),a.useProgram(Et.program),_.setVAO(null),Ae=Et.id,at=gt[Ae],at?at.call(this,Nt,it):(at=gt[Ae]=i(Et),at.call(this,Nt,it)),_.setVAO(null),Tt&&(r.cpuTime+=performance.now()-St)}}}});var E8=Te((j_r,FNe)=>{FNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt,Nt,it,Ye,kt,Tt,St,Rt,Zt,Et,Ae,at,wt,vt,st,Ue,rt){"use strict";var $e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn;return $e=t.gl,zt=t.context,Yt=t.strings,hr=t.next,yr=t.current,br=t.draw,Ut=t.elements,Ie=t.buffer,xe=t.shader,Oe=t.attributes,Re=t.vao,De=t.uniforms,ct=t.framebuffer,ge=t.extensions,fe=t.timer,pe=t.isBufferArgs,dt=hr.blend_color,It=yr.blend_color,Pt=hr.blend_equation,rr=yr.blend_equation,Hr=hr.blend_func,Dr=yr.blend_func,Mr=hr.depth_range,Fr=yr.depth_range,di=hr.colorMask,Di=yr.colorMask,Ii=hr.polygonOffset_offset,Ci=yr.polygonOffset_offset,nn=hr.sample_coverage,ii=yr.sample_coverage,wi=hr.stencil_func,Gi=yr.stencil_func,Bt=hr.stencil_opFront,yt=yr.stencil_opFront,Vt=hr.stencil_opBack,Wt=yr.stencil_opBack,_r=hr.scissor_box,Lr=yr.scissor_box,Ur=hr.viewport,Ir=yr.viewport,Gr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},jr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},yi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ei={add:32774,subtract:32778,"reverse subtract":32779},Vi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ti={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},en={cw:2304,ccw:2305},Yr={},Yr.stride=8,Yr.offset=8,Yr.divisor=1,oi={},oi.stride=8,oi.offset=16,oi.divisor=1,Bi={},Bi.stride=8,Bi.offset=8,Bi.divisor=1,an={},an.stride=8,an.offset=16,an.divisor=1,rn={},rn.stride=4,rn.offset=0,rn.divisor=1,{draw:function(Fi){var Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa;if(Ri=ge.angle_instanced_arrays,xn=ct.next,xn!==ct.cur&&(xn?$e.bindFramebuffer(36160,xn.framebuffer):$e.bindFramebuffer(36160,null),ct.cur=xn),yr.dirty){var os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi;os=hr.dither,os!==yr.dither&&(os?$e.enable(3024):$e.disable(3024),yr.dither=os),_l=hr.depth_func,_l!==yr.depth_func&&($e.depthFunc(_l),yr.depth_func=_l),Ss=Mr[0],po=Mr[1],(Ss!==Fr[0]||po!==Fr[1])&&($e.depthRange(Ss,po),Fr[0]=Ss,Fr[1]=po),go=hr.depth_mask,go!==yr.depth_mask&&($e.depthMask(go),yr.depth_mask=go),ss=di[0],qo=di[1],zo=di[2],io=di[3],(ss!==Di[0]||qo!==Di[1]||zo!==Di[2]||io!==Di[3])&&($e.colorMask(ss,qo,zo,io),Di[0]=ss,Di[1]=qo,Di[2]=zo,Di[3]=io),Io=hr.cull_enable,Io!==yr.cull_enable&&(Io?$e.enable(2884):$e.disable(2884),yr.cull_enable=Io),Da=hr.cull_face,Da!==yr.cull_face&&($e.cullFace(Da),yr.cull_face=Da),vs=hr.frontFace,vs!==yr.frontFace&&($e.frontFace(vs),yr.frontFace=vs),fs=hr.lineWidth,fs!==yr.lineWidth&&($e.lineWidth(fs),yr.lineWidth=fs),cl=hr.polygonOffset_enable,cl!==yr.polygonOffset_enable&&(cl?$e.enable(32823):$e.disable(32823),yr.polygonOffset_enable=cl),el=Ii[0],Hs=Ii[1],(el!==Ci[0]||Hs!==Ci[1])&&($e.polygonOffset(el,Hs),Ci[0]=el,Ci[1]=Hs),Ro=hr.sample_alpha,Ro!==yr.sample_alpha&&(Ro?$e.enable(32926):$e.disable(32926),yr.sample_alpha=Ro),tl=hr.sample_enable,tl!==yr.sample_enable&&(tl?$e.enable(32928):$e.disable(32928),yr.sample_enable=tl),Fs=nn[0],hl=nn[1],(Fs!==ii[0]||hl!==ii[1])&&($e.sampleCoverage(Fs,hl),ii[0]=Fs,ii[1]=hl),Fa=hr.stencil_mask,Fa!==yr.stencil_mask&&($e.stencilMask(Fa),yr.stencil_mask=Fa),Ms=wi[0],jo=wi[1],Rs=wi[2],(Ms!==Gi[0]||jo!==Gi[1]||Rs!==Gi[2])&&($e.stencilFunc(Ms,jo,Rs),Gi[0]=Ms,Gi[1]=jo,Gi[2]=Rs),Is=Bt[0],Bs=Bt[1],At=Bt[2],Gt=Bt[3],(Is!==yt[0]||Bs!==yt[1]||At!==yt[2]||Gt!==yt[3])&&($e.stencilOpSeparate(Is,Bs,At,Gt),yt[0]=Is,yt[1]=Bs,yt[2]=At,yt[3]=Gt),wr=Vt[0],mr=Vt[1],Or=Vt[2],gi=Vt[3],(wr!==Wt[0]||mr!==Wt[1]||Or!==Wt[2]||gi!==Wt[3])&&($e.stencilOpSeparate(wr,mr,Or,gi),Wt[0]=wr,Wt[1]=mr,Wt[2]=Or,Wt[3]=gi)}xi=Fi.viewport,Xr=xi.x|0,ft=xi.y|0,tr="width"in xi?xi.width|0:zt.framebufferWidth-Xr,pr="height"in xi?xi.height|0:zt.framebufferHeight-ft,gr=zt.viewportWidth,zt.viewportWidth=tr,Zr=zt.viewportHeight,zt.viewportHeight=pr,$e.viewport(Xr,ft,tr,pr),Ir[0]=Xr,Ir[1]=ft,Ir[2]=tr,Ir[3]=pr,$e.blendColor(0,0,0,0),It[0]=0,It[1]=0,It[2]=0,It[3]=0,n?$e.enable(3042):$e.disable(3042),yr.blend_enable=n,$e.blendEquationSeparate(32774,32774),rr[0]=32774,rr[1]=32774,$e.blendFuncSeparate(770,771,773,1),Dr[0]=770,Dr[1]=771,Dr[2]=773,Dr[3]=1,Ai=i.call(this,zt,Fi,0),Ai?$e.enable(2929):$e.disable(2929),yr.depth_enable=Ai,Qi=Fi.viewport,ni=Qi.x|0,Zi=Qi.y|0,aa="width"in Qi?Qi.width|0:zt.framebufferWidth-ni,Mn="height"in Qi?Qi.height|0:zt.framebufferHeight-Zi,$e.scissor(ni,Zi,aa,Mn),Lr[0]=ni,Lr[1]=Zi,Lr[2]=aa,Lr[3]=Mn,a?$e.enable(3089):$e.disable(3089),yr.scissor_enable=a,o?$e.enable(2960):$e.disable(2960),yr.stencil_enable=o,Un=yr.profile,Un&&(Ga=performance.now(),r.count++),$e.useProgram(s.program),ma=ge.angle_instanced_arrays,Re.setVAO(null),oa=Fi.positionBuffer,Yr.buffer=oa,ka=!1,so=1,Kr=0,Ia=0,Yo=0,fa=0,kn=null,Ta=0,ys=!1,uo=5126,ls=0,$a=0,fo=0,pe(Yr)?(ka=!0,kn=Ie.createStream(34962,Yr),uo=kn.dtype):(kn=Ie.getBuffer(Yr),kn?uo=kn.dtype:"constant"in Yr?(so=2,typeof Yr.constant=="number"?(Kr=Yr.constant,Ia=Yo=fa=0):(Kr=Yr.constant.length>0?Yr.constant[0]:0,Ia=Yr.constant.length>1?Yr.constant[1]:0,Yo=Yr.constant.length>2?Yr.constant[2]:0,fa=Yr.constant.length>3?Yr.constant[3]:0)):(pe(Yr.buffer)?kn=Ie.createStream(34962,Yr.buffer):kn=Ie.getBuffer(Yr.buffer),uo="type"in Yr?ti[Yr.type]:kn.dtype,ys=!!Yr.normalized,Ta=Yr.size|0,ls=Yr.offset|0,$a=Yr.stride|0,fo=Yr.divisor|0)),mn=u.location,ra=Oe[mn],so===1?(ra.buffer||$e.enableVertexAttribArray(mn),wa=Ta||2,(ra.type!==uo||ra.size!==wa||ra.buffer!==kn||ra.normalized!==ys||ra.offset!==ls||ra.stride!==$a)&&($e.bindBuffer(34962,kn.buffer),$e.vertexAttribPointer(mn,wa,uo,ys,$a,ls),ra.type=uo,ra.size=wa,ra.buffer=kn,ra.normalized=ys,ra.offset=ls,ra.stride=$a),ra.divisor!==fo&&(ma.vertexAttribDivisorANGLE(mn,fo),ra.divisor=fo)):(ra.buffer&&($e.disableVertexAttribArray(mn),ra.buffer=null),(ra.x!==Kr||ra.y!==Ia||ra.z!==Yo||ra.w!==fa)&&($e.vertexAttrib4f(mn,Kr,Ia,Yo,fa),ra.x=Kr,ra.y=Ia,ra.z=Yo,ra.w=fa)),ws=Fi.positionFractBuffer,Bi.buffer=ws,Co=!1,Po=1,ji=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Wi=0,Sa=0,pe(Bi)?(Co=!0,Sn=Ie.createStream(34962,Bi),Ko=Sn.dtype):(Sn=Ie.getBuffer(Bi),Sn?Ko=Sn.dtype:"constant"in Bi?(Po=2,typeof Bi.constant=="number"?(ji=Bi.constant,gn=Ps=Ha=0):(ji=Bi.constant.length>0?Bi.constant[0]:0,gn=Bi.constant.length>1?Bi.constant[1]:0,Ps=Bi.constant.length>2?Bi.constant[2]:0,Ha=Bi.constant.length>3?Bi.constant[3]:0)):(pe(Bi.buffer)?Sn=Ie.createStream(34962,Bi.buffer):Sn=Ie.getBuffer(Bi.buffer),Ko="type"in Bi?ti[Bi.type]:Sn.dtype,Ba=!!Bi.normalized,ao=Bi.size|0,Qo=Bi.offset|0,Wi=Bi.stride|0,Sa=Bi.divisor|0)),Qa=l.location,vn=Oe[Qa],Po===1?(vn.buffer||$e.enableVertexAttribArray(Qa),da=ao||2,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Wi)&&($e.bindBuffer(34962,Sn.buffer),$e.vertexAttribPointer(Qa,da,Ko,Ba,Wi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Wi),vn.divisor!==Sa&&(ma.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&($e.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==ji||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&($e.vertexAttrib4f(Qa,ji,gn,Ps,Ha),vn.x=ji,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=Fi.positionBuffer,oi.buffer=la,vo=!1,As=1,ps=0,co=0,mo=0,No=0,jn=null,Go=0,Ys=!1,qs=5126,Ns=0,Oa=0,ha=0,pe(oi)?(vo=!0,jn=Ie.createStream(34962,oi),qs=jn.dtype):(jn=Ie.getBuffer(oi),jn?qs=jn.dtype:"constant"in oi?(As=2,typeof oi.constant=="number"?(ps=oi.constant,co=mo=No=0):(ps=oi.constant.length>0?oi.constant[0]:0,co=oi.constant.length>1?oi.constant[1]:0,mo=oi.constant.length>2?oi.constant[2]:0,No=oi.constant.length>3?oi.constant[3]:0)):(pe(oi.buffer)?jn=Ie.createStream(34962,oi.buffer):jn=Ie.getBuffer(oi.buffer),qs="type"in oi?ti[oi.type]:jn.dtype,Ys=!!oi.normalized,Go=oi.size|0,Ns=oi.offset|0,Oa=oi.stride|0,ha=oi.divisor|0)),Vs=f.location,Ya=Oe[Vs],As===1?(Ya.buffer||$e.enableVertexAttribArray(Vs),_n=Go||2,(Ya.type!==qs||Ya.size!==_n||Ya.buffer!==jn||Ya.normalized!==Ys||Ya.offset!==Ns||Ya.stride!==Oa)&&($e.bindBuffer(34962,jn.buffer),$e.vertexAttribPointer(Vs,_n,qs,Ys,Oa,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Oa),Ya.divisor!==ha&&(ma.vertexAttribDivisorANGLE(Vs,ha),Ya.divisor=ha)):(Ya.buffer&&($e.disableVertexAttribArray(Vs),Ya.buffer=null),(Ya.x!==ps||Ya.y!==co||Ya.z!==mo||Ya.w!==No)&&($e.vertexAttrib4f(Vs,ps,co,mo,No),Ya.x=ps,Ya.y=co,Ya.z=mo,Ya.w=No)),Vn=Fi.positionFractBuffer,an.buffer=Vn,wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,pe(an)?(wo=!0,qn=Ie.createStream(34962,an),lo=qn.dtype):(qn=Ie.getBuffer(an),qn?lo=qn.dtype:"constant"in an?(Ra=2,typeof an.constant=="number"?(Xn=an.constant,un=$n=Ka=0):(Xn=an.constant.length>0?an.constant[0]:0,un=an.constant.length>1?an.constant[1]:0,$n=an.constant.length>2?an.constant[2]:0,Ka=an.constant.length>3?an.constant[3]:0)):(pe(an.buffer)?qn=Ie.createStream(34962,an.buffer):qn=Ie.getBuffer(an.buffer),lo="type"in an?ti[an.type]:qn.dtype,Ja=!!an.normalized,Eo=an.size|0,eo=an.offset|0,sa=an.stride|0,es=an.divisor|0)),Na=c.location,tn=Oe[Na],Ra===1?(tn.buffer||$e.enableVertexAttribArray(Na),Pa=Eo||2,(tn.type!==lo||tn.size!==Pa||tn.buffer!==qn||tn.normalized!==Ja||tn.offset!==eo||tn.stride!==sa)&&($e.bindBuffer(34962,qn.buffer),$e.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),tn.type=lo,tn.size=Pa,tn.buffer=qn,tn.normalized=Ja,tn.offset=eo,tn.stride=sa),tn.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),tn.divisor=es)):(tn.buffer&&($e.disableVertexAttribArray(Na),tn.buffer=null),(tn.x!==Xn||tn.y!==un||tn.z!==$n||tn.w!==Ka)&&($e.vertexAttrib4f(Na,Xn,un,$n,Ka),tn.x=Xn,tn.y=un,tn.z=$n,tn.w=Ka)),to=Fi.colorBuffer,rn.buffer=to,yo=!1,Jo=1,Ao=0,Dn=0,_a=0,Ws=0,Ca=null,Es=0,Ts=!1,Ho=5126,Wa=0,To=0,ts=0,pe(rn)?(yo=!0,Ca=Ie.createStream(34962,rn),Ho=Ca.dtype):(Ca=Ie.getBuffer(rn),Ca?Ho=Ca.dtype:"constant"in rn?(Jo=2,typeof rn.constant=="number"?(Ao=rn.constant,Dn=_a=Ws=0):(Ao=rn.constant.length>0?rn.constant[0]:0,Dn=rn.constant.length>1?rn.constant[1]:0,_a=rn.constant.length>2?rn.constant[2]:0,Ws=rn.constant.length>3?rn.constant[3]:0)):(pe(rn.buffer)?Ca=Ie.createStream(34962,rn.buffer):Ca=Ie.getBuffer(rn.buffer),Ho="type"in rn?ti[rn.type]:Ca.dtype,Ts=!!rn.normalized,Es=rn.size|0,Wa=rn.offset|0,To=rn.stride|0,ts=rn.divisor|0)),Wo=h.location,qa=Oe[Wo],Jo===1?(qa.buffer||$e.enableVertexAttribArray(Wo),ln=Es||4,(qa.type!==Ho||qa.size!==ln||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&($e.bindBuffer(34962,Ca.buffer),$e.vertexAttribPointer(Wo,ln,Ho,Ts,To,Wa),qa.type=Ho,qa.size=ln,qa.buffer=Ca,qa.normalized=Ts,qa.offset=Wa,qa.stride=To),qa.divisor!==ts&&(ma.vertexAttribDivisorANGLE(Wo,ts),qa.divisor=ts)):(qa.buffer&&($e.disableVertexAttribArray(Wo),qa.buffer=null),(qa.x!==Ao||qa.y!==Dn||qa.z!==_a||qa.w!==Ws)&&($e.vertexAttrib4f(Wo,Ao,Dn,_a,Ws),qa.x=Ao,qa.y=Dn,qa.z=_a,qa.w=Ws)),Bo=p.location,ko=Oe[Bo],ko.buffer||$e.enableVertexAttribArray(Bo),(ko.type!==5126||ko.size!==1||ko.buffer!==d||ko.normalized!==!1||ko.offset!==0||ko.stride!==8)&&($e.bindBuffer(34962,d.buffer),$e.vertexAttribPointer(Bo,1,5126,!1,8,0),ko.type=5126,ko.size=1,ko.buffer=d,ko.normalized=!1,ko.offset=0,ko.stride=8),ko.divisor!==0&&(ma.vertexAttribDivisorANGLE(Bo,0),ko.divisor=0),oo=_.location,za=Oe[oo],za.buffer||$e.enableVertexAttribArray(oo),(za.type!==5126||za.size!==1||za.buffer!==d||za.normalized!==!1||za.offset!==4||za.stride!==8)&&($e.bindBuffer(34962,d.buffer),$e.vertexAttribPointer(oo,1,5126,!1,8,4),za.type=5126,za.size=1,za.buffer=d,za.normalized=!1,za.offset=4,za.stride=8),za.divisor!==0&&(ma.vertexAttribDivisorANGLE(oo,0),za.divisor=0),ea=Fi.dashLength,$e.uniform1f(b.location,ea),rs=Fi.dashTexture,rs&&rs._reglType==="framebuffer"&&(rs=rs.color[0]),$s=rs._texture,$e.uniform1i(v.location,$s.bind()),us=Fi.depth,$e.uniform1f(k.location,us),Ds=Fi.opacity,$e.uniform1f(E.location,Ds),fl=Fi.scale,as=fl[0],Ma=fl[1],$e.uniform2f(T.location,as,Ma),Qs=Fi.scaleFract,ho=Qs[0],gs=Qs[1],$e.uniform2f(L.location,ho,gs),Vo=Fi.thickness,$e.uniform1f(x.location,Vo),Do=Fi.translate,Lo=Do[0],xs=Do[1],$e.uniform2f(C.location,Lo,xs),ks=Fi.translateFract,Ea=ks[0],Jn=ks[1],$e.uniform2f(M.location,Ea,Jn),Oo=P.call(this,zt,Fi,0),rl=Oo[0],Gs=Oo[1],bs=Oo[2],zs=Oo[3],$e.uniform4f(m.location,rl,Gs,bs,zs),$o=br.elements,$o?$e.bindBuffer(34963,$o.buffer.buffer):Re.currentVAO&&($o=Ut.getElements(Re.currentVAO.elements),$o&&$e.bindBuffer(34963,$o.buffer.buffer)),Aa=Fi.count,Aa>0?$o?ma.drawElementsInstancedANGLE(5,4,$o.type,0<<($o.type-5121>>1),Aa):ma.drawArraysInstancedANGLE(5,0,4,Aa):Aa<0&&($o?$e.drawElements(5,4,$o.type,0<<($o.type-5121>>1)):$e.drawArrays(5,0,4)),yr.dirty=!0,Re.setVAO(null),zt.viewportWidth=gr,zt.viewportHeight=Zr,Un&&(r.cpuTime+=performance.now()-Ga),ka&&Ie.destroyStream(kn),Co&&Ie.destroyStream(Sn),vo&&Ie.destroyStream(jn),wo&&Ie.destroyStream(qn),yo&&Ie.destroyStream(Ca),$s.unbind()},scope:function(Fi,Ri,xn){var xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Ul,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Vl,Nl,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht;xi=Fi.viewport,Xr=xi.x|0,ft=xi.y|0,tr="width"in xi?xi.width|0:zt.framebufferWidth-Xr,pr="height"in xi?xi.height|0:zt.framebufferHeight-ft,gr=zt.viewportWidth,zt.viewportWidth=tr,Zr=zt.viewportHeight,zt.viewportHeight=pr,Ai=Ur[0],Ur[0]=Xr,Qi=Ur[1],Ur[1]=ft,ni=Ur[2],Ur[2]=tr,Zi=Ur[3],Ur[3]=pr,aa=dt[0],dt[0]=A,Mn=dt[1],dt[1]=B,Un=dt[2],dt[2]=F,Ga=dt[3],dt[3]=U,ma=hr.blend_enable,hr.blend_enable=G,oa=Pt[0],Pt[0]=j,ka=Pt[1],Pt[1]=H,so=Hr[0],Hr[0]=N,Kr=Hr[1],Hr[1]=W,Ia=Hr[2],Hr[2]=re,Yo=Hr[3],Hr[3]=ae,fa=i.call(this,zt,Fi,xn),kn=hr.depth_enable,hr.depth_enable=fa,Ta=Fi.viewport,ys=Ta.x|0,uo=Ta.y|0,ls="width"in Ta?Ta.width|0:zt.framebufferWidth-ys,$a="height"in Ta?Ta.height|0:zt.framebufferHeight-uo,fo=_r[0],_r[0]=ys,mn=_r[1],_r[1]=uo,ra=_r[2],_r[2]=ls,wa=_r[3],_r[3]=$a,ws=hr.scissor_enable,hr.scissor_enable=be,Co=hr.stencil_enable,hr.stencil_enable=Pe,Po=yr.profile,Po&&(ji=performance.now(),r.count++),gn=br.offset,br.offset=Ce,Ps=br.count,br.count=de,Ha=Fi.count,Sn=br.instances,br.instances=Ha,ao=br.primitive,br.primitive=te,Ba=ke.call(this,zt,Fi,xn),Ko=De[Ee],De[Ee]=Ba,Qo=Fi.miterLimit,Wi=De[Me],De[Me]=Qo,Sa=Fi.scale,Qa=De[Ne],De[Ne]=Sa,vn=Fi.scaleFract,da=De[Fe],De[Fe]=vn,la=Fi.translateFract,vo=De[ye],De[ye]=la,As=Fi.translate,ps=De[Ve],De[Ve]=As,co=Fi.thickness,mo=De[ce],De[ce]=co,No=Fi.dashTexture,jn=De[Ke],De[Ke]=No,Go=Fi.opacity,Ys=De[nt],De[nt]=Go,qs=zt.pixelRatio,Ns=De[gt],De[gt]=qs,Oa=Fi.id,ha=De[Nt],De[Nt]=Oa,Vs=Fi.dashLength,Ya=De[it],De[it]=Vs,_n=P.call(this,zt,Fi,xn),Vn=De[Ye],De[Ye]=_n,wo=Fi.depth,Ra=De[kt],De[kt]=wo,Xn=Tt.state,Tt.state=1,un=Tt.x,Tt.x=0,$n=Tt.y,Tt.y=0,Ka=Tt.z,Tt.z=0,qn=Tt.w,Tt.w=0,Eo=Tt.buffer,Tt.buffer=d,Ja=Tt.size,Tt.size=0,lo=Tt.normalized,Tt.normalized=!1,eo=Tt.type,Tt.type=5126,sa=Tt.offset,Tt.offset=0,es=Tt.stride,Tt.stride=8,Na=Tt.divisor,Tt.divisor=0,tn=St.state,St.state=1,Pa=St.x,St.x=0,to=St.y,St.y=0,yo=St.z,St.z=0,Jo=St.w,St.w=0,Ao=St.buffer,St.buffer=d,Dn=St.size,St.size=0,_a=St.normalized,St.normalized=!1,Ws=St.type,St.type=5126,Ca=St.offset,St.offset=4,Es=St.stride,St.stride=8,Ts=St.divisor,St.divisor=0,Ho=Fi.positionBuffer,Yr.buffer=Ho,Wa=!1,To=1,ts=0,Wo=0,qa=0,ln=0,Bo=null,ko=0,oo=!1,za=5126,ea=0,rs=0,$s=0,pe(Yr)?(Wa=!0,Bo=Ie.createStream(34962,Yr),za=Bo.dtype):(Bo=Ie.getBuffer(Yr),Bo?za=Bo.dtype:"constant"in Yr?(To=2,typeof Yr.constant=="number"?(ts=Yr.constant,Wo=qa=ln=0):(ts=Yr.constant.length>0?Yr.constant[0]:0,Wo=Yr.constant.length>1?Yr.constant[1]:0,qa=Yr.constant.length>2?Yr.constant[2]:0,ln=Yr.constant.length>3?Yr.constant[3]:0)):(pe(Yr.buffer)?Bo=Ie.createStream(34962,Yr.buffer):Bo=Ie.getBuffer(Yr.buffer),za="type"in Yr?ti[Yr.type]:Bo.dtype,oo=!!Yr.normalized,ko=Yr.size|0,ea=Yr.offset|0,rs=Yr.stride|0,$s=Yr.divisor|0)),us=Rt.state,Rt.state=To,Ds=Rt.x,Rt.x=ts,fl=Rt.y,Rt.y=Wo,as=Rt.z,Rt.z=qa,Ma=Rt.w,Rt.w=ln,Qs=Rt.buffer,Rt.buffer=Bo,ho=Rt.size,Rt.size=ko,gs=Rt.normalized,Rt.normalized=oo,Vo=Rt.type,Rt.type=za,Do=Rt.offset,Rt.offset=ea,Lo=Rt.stride,Rt.stride=rs,xs=Rt.divisor,Rt.divisor=$s,ks=Fi.positionBuffer,oi.buffer=ks,Ea=!1,Jn=1,Oo=0,rl=0,Gs=0,bs=0,zs=null,$o=0,Aa=!1,os=5126,_l=0,Ss=0,po=0,pe(oi)?(Ea=!0,zs=Ie.createStream(34962,oi),os=zs.dtype):(zs=Ie.getBuffer(oi),zs?os=zs.dtype:"constant"in oi?(Jn=2,typeof oi.constant=="number"?(Oo=oi.constant,rl=Gs=bs=0):(Oo=oi.constant.length>0?oi.constant[0]:0,rl=oi.constant.length>1?oi.constant[1]:0,Gs=oi.constant.length>2?oi.constant[2]:0,bs=oi.constant.length>3?oi.constant[3]:0)):(pe(oi.buffer)?zs=Ie.createStream(34962,oi.buffer):zs=Ie.getBuffer(oi.buffer),os="type"in oi?ti[oi.type]:zs.dtype,Aa=!!oi.normalized,$o=oi.size|0,_l=oi.offset|0,Ss=oi.stride|0,po=oi.divisor|0)),go=Zt.state,Zt.state=Jn,ss=Zt.x,Zt.x=Oo,qo=Zt.y,Zt.y=rl,zo=Zt.z,Zt.z=Gs,io=Zt.w,Zt.w=bs,Io=Zt.buffer,Zt.buffer=zs,Da=Zt.size,Zt.size=$o,vs=Zt.normalized,Zt.normalized=Aa,fs=Zt.type,Zt.type=os,cl=Zt.offset,Zt.offset=_l,el=Zt.stride,Zt.stride=Ss,Hs=Zt.divisor,Zt.divisor=po,Ro=Fi.positionFractBuffer,Bi.buffer=Ro,tl=!1,Fs=1,hl=0,Fa=0,Ms=0,jo=0,Rs=null,Is=0,Bs=!1,At=5126,Gt=0,wr=0,mr=0,pe(Bi)?(tl=!0,Rs=Ie.createStream(34962,Bi),At=Rs.dtype):(Rs=Ie.getBuffer(Bi),Rs?At=Rs.dtype:"constant"in Bi?(Fs=2,typeof Bi.constant=="number"?(hl=Bi.constant,Fa=Ms=jo=0):(hl=Bi.constant.length>0?Bi.constant[0]:0,Fa=Bi.constant.length>1?Bi.constant[1]:0,Ms=Bi.constant.length>2?Bi.constant[2]:0,jo=Bi.constant.length>3?Bi.constant[3]:0)):(pe(Bi.buffer)?Rs=Ie.createStream(34962,Bi.buffer):Rs=Ie.getBuffer(Bi.buffer),At="type"in Bi?ti[Bi.type]:Rs.dtype,Bs=!!Bi.normalized,Is=Bi.size|0,Gt=Bi.offset|0,wr=Bi.stride|0,mr=Bi.divisor|0)),Or=Et.state,Et.state=Fs,gi=Et.x,Et.x=hl,Ti=Et.y,Et.y=Fa,ki=Et.z,Et.z=Ms,Ji=Et.w,Et.w=jo,Fn=Et.buffer,Et.buffer=Rs,Pi=Et.size,Et.size=Is,hi=Et.normalized,Et.normalized=Bs,Li=Et.type,Et.type=At,Si=Et.offset,Et.offset=Gt,Gn=Et.stride,Et.stride=wr,ta=Et.divisor,Et.divisor=mr,ya=Fi.positionFractBuffer,an.buffer=ya,ia=!1,pa=1,va=0,zn=0,is=0,Cs=0,Ks=null,dl=0,xl=!1,Bl=5126,bl=0,eu=0,Zl=0,pe(an)?(ia=!0,Ks=Ie.createStream(34962,an),Bl=Ks.dtype):(Ks=Ie.getBuffer(an),Ks?Bl=Ks.dtype:"constant"in an?(pa=2,typeof an.constant=="number"?(va=an.constant,zn=is=Cs=0):(va=an.constant.length>0?an.constant[0]:0,zn=an.constant.length>1?an.constant[1]:0,is=an.constant.length>2?an.constant[2]:0,Cs=an.constant.length>3?an.constant[3]:0)):(pe(an.buffer)?Ks=Ie.createStream(34962,an.buffer):Ks=Ie.getBuffer(an.buffer),Bl="type"in an?ti[an.type]:Ks.dtype,xl=!!an.normalized,dl=an.size|0,bl=an.offset|0,eu=an.stride|0,Zl=an.divisor|0)),Ul=Ae.state,Ae.state=pa,ja=Ae.x,Ae.x=va,ns=Ae.y,Ae.y=zn,Js=Ae.z,Ae.z=is,cs=Ae.w,Ae.w=Cs,sl=Ae.buffer,Ae.buffer=Ks,ll=Ae.size,Ae.size=dl,il=Ae.normalized,Ae.normalized=xl,zl=Ae.type,Ae.type=Bl,Ml=Ae.offset,Ae.offset=bl,Rl=Ae.stride,Ae.stride=eu,Al=Ae.divisor,Ae.divisor=Zl,Ll=Fi.colorBuffer,rn.buffer=Ll,ms=!1,Os=1,Xl=0,Vl=0,Nl=0,le=0,w=null,q=0,Q=!1,ee=5126,ue=0,Ge=0,et=0,pe(rn)?(ms=!0,w=Ie.createStream(34962,rn),ee=w.dtype):(w=Ie.getBuffer(rn),w?ee=w.dtype:"constant"in rn?(Os=2,typeof rn.constant=="number"?(Xl=rn.constant,Vl=Nl=le=0):(Xl=rn.constant.length>0?rn.constant[0]:0,Vl=rn.constant.length>1?rn.constant[1]:0,Nl=rn.constant.length>2?rn.constant[2]:0,le=rn.constant.length>3?rn.constant[3]:0)):(pe(rn.buffer)?w=Ie.createStream(34962,rn.buffer):w=Ie.getBuffer(rn.buffer),ee="type"in rn?ti[rn.type]:w.dtype,Q=!!rn.normalized,q=rn.size|0,ue=rn.offset|0,Ge=rn.stride|0,et=rn.divisor|0)),mt=at.state,at.state=Os,Ft=at.x,at.x=Xl,ir=at.y,at.y=Vl,or=at.z,at.z=Nl,kr=at.w,at.w=le,Vr=at.buffer,at.buffer=w,he=at.size,at.size=q,Se=at.normalized,at.normalized=Q,qe=at.type,at.type=ee,He=at.offset,at.offset=ue,lt=at.stride,at.stride=Ge,tt=at.divisor,at.divisor=et,pt=xe.vert,xe.vert=wt,Ht=xe.frag,xe.frag=vt,yr.dirty=!0,Ri(zt,Fi,xn),zt.viewportWidth=gr,zt.viewportHeight=Zr,Ur[0]=Ai,Ur[1]=Qi,Ur[2]=ni,Ur[3]=Zi,dt[0]=aa,dt[1]=Mn,dt[2]=Un,dt[3]=Ga,hr.blend_enable=ma,Pt[0]=oa,Pt[1]=ka,Hr[0]=so,Hr[1]=Kr,Hr[2]=Ia,Hr[3]=Yo,hr.depth_enable=kn,_r[0]=fo,_r[1]=mn,_r[2]=ra,_r[3]=wa,hr.scissor_enable=ws,hr.stencil_enable=Co,Po&&(r.cpuTime+=performance.now()-ji),br.offset=gn,br.count=Ps,br.instances=Sn,br.primitive=ao,De[Ee]=Ko,De[Me]=Wi,De[Ne]=Qa,De[Fe]=da,De[ye]=vo,De[Ve]=ps,De[ce]=mo,De[Ke]=jn,De[nt]=Ys,De[gt]=Ns,De[Nt]=ha,De[it]=Ya,De[Ye]=Vn,De[kt]=Ra,Tt.state=Xn,Tt.x=un,Tt.y=$n,Tt.z=Ka,Tt.w=qn,Tt.buffer=Eo,Tt.size=Ja,Tt.normalized=lo,Tt.type=eo,Tt.offset=sa,Tt.stride=es,Tt.divisor=Na,St.state=tn,St.x=Pa,St.y=to,St.z=yo,St.w=Jo,St.buffer=Ao,St.size=Dn,St.normalized=_a,St.type=Ws,St.offset=Ca,St.stride=Es,St.divisor=Ts,Wa&&Ie.destroyStream(Bo),Rt.state=us,Rt.x=Ds,Rt.y=fl,Rt.z=as,Rt.w=Ma,Rt.buffer=Qs,Rt.size=ho,Rt.normalized=gs,Rt.type=Vo,Rt.offset=Do,Rt.stride=Lo,Rt.divisor=xs,Ea&&Ie.destroyStream(zs),Zt.state=go,Zt.x=ss,Zt.y=qo,Zt.z=zo,Zt.w=io,Zt.buffer=Io,Zt.size=Da,Zt.normalized=vs,Zt.type=fs,Zt.offset=cl,Zt.stride=el,Zt.divisor=Hs,tl&&Ie.destroyStream(Rs),Et.state=Or,Et.x=gi,Et.y=Ti,Et.z=ki,Et.w=Ji,Et.buffer=Fn,Et.size=Pi,Et.normalized=hi,Et.type=Li,Et.offset=Si,Et.stride=Gn,Et.divisor=ta,ia&&Ie.destroyStream(Ks),Ae.state=Ul,Ae.x=ja,Ae.y=ns,Ae.z=Js,Ae.w=cs,Ae.buffer=sl,Ae.size=ll,Ae.normalized=il,Ae.type=zl,Ae.offset=Ml,Ae.stride=Rl,Ae.divisor=Al,ms&&Ie.destroyStream(w),at.state=mt,at.x=Ft,at.y=ir,at.z=or,at.w=kr,at.buffer=Vr,at.size=he,at.normalized=Se,at.type=qe,at.offset=He,at.stride=lt,at.divisor=tt,xe.vert=pt,xe.frag=Ht,yr.dirty=!0},batch:function(Fi,Ri){var xn,xi,Xr,ft,tr,pr,gr;if(xn=ge.angle_instanced_arrays,xi=ct.next,xi!==ct.cur&&(xi?$e.bindFramebuffer(36160,xi.framebuffer):$e.bindFramebuffer(36160,null),ct.cur=xi),yr.dirty){var Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn;Zr=hr.dither,Zr!==yr.dither&&(Zr?$e.enable(3024):$e.disable(3024),yr.dither=Zr),Ai=hr.depth_func,Ai!==yr.depth_func&&($e.depthFunc(Ai),yr.depth_func=Ai),Qi=Mr[0],ni=Mr[1],(Qi!==Fr[0]||ni!==Fr[1])&&($e.depthRange(Qi,ni),Fr[0]=Qi,Fr[1]=ni),Zi=hr.depth_mask,Zi!==yr.depth_mask&&($e.depthMask(Zi),yr.depth_mask=Zi),aa=di[0],Mn=di[1],Un=di[2],Ga=di[3],(aa!==Di[0]||Mn!==Di[1]||Un!==Di[2]||Ga!==Di[3])&&($e.colorMask(aa,Mn,Un,Ga),Di[0]=aa,Di[1]=Mn,Di[2]=Un,Di[3]=Ga),ma=hr.cull_enable,ma!==yr.cull_enable&&(ma?$e.enable(2884):$e.disable(2884),yr.cull_enable=ma),oa=hr.cull_face,oa!==yr.cull_face&&($e.cullFace(oa),yr.cull_face=oa),ka=hr.frontFace,ka!==yr.frontFace&&($e.frontFace(ka),yr.frontFace=ka),so=hr.lineWidth,so!==yr.lineWidth&&($e.lineWidth(so),yr.lineWidth=so),Kr=hr.polygonOffset_enable,Kr!==yr.polygonOffset_enable&&(Kr?$e.enable(32823):$e.disable(32823),yr.polygonOffset_enable=Kr),Ia=Ii[0],Yo=Ii[1],(Ia!==Ci[0]||Yo!==Ci[1])&&($e.polygonOffset(Ia,Yo),Ci[0]=Ia,Ci[1]=Yo),fa=hr.sample_alpha,fa!==yr.sample_alpha&&(fa?$e.enable(32926):$e.disable(32926),yr.sample_alpha=fa),kn=hr.sample_enable,kn!==yr.sample_enable&&(kn?$e.enable(32928):$e.disable(32928),yr.sample_enable=kn),Ta=nn[0],ys=nn[1],(Ta!==ii[0]||ys!==ii[1])&&($e.sampleCoverage(Ta,ys),ii[0]=Ta,ii[1]=ys),uo=hr.stencil_mask,uo!==yr.stencil_mask&&($e.stencilMask(uo),yr.stencil_mask=uo),ls=wi[0],$a=wi[1],fo=wi[2],(ls!==Gi[0]||$a!==Gi[1]||fo!==Gi[2])&&($e.stencilFunc(ls,$a,fo),Gi[0]=ls,Gi[1]=$a,Gi[2]=fo),mn=Bt[0],ra=Bt[1],wa=Bt[2],ws=Bt[3],(mn!==yt[0]||ra!==yt[1]||wa!==yt[2]||ws!==yt[3])&&($e.stencilOpSeparate(mn,ra,wa,ws),yt[0]=mn,yt[1]=ra,yt[2]=wa,yt[3]=ws),Co=Vt[0],Po=Vt[1],ji=Vt[2],gn=Vt[3],(Co!==Wt[0]||Po!==Wt[1]||ji!==Wt[2]||gn!==Wt[3])&&($e.stencilOpSeparate(Co,Po,ji,gn),Wt[0]=Co,Wt[1]=Po,Wt[2]=ji,Wt[3]=gn)}$e.blendColor(0,0,0,0),It[0]=0,It[1]=0,It[2]=0,It[3]=0,st?$e.enable(3042):$e.disable(3042),yr.blend_enable=st,$e.blendEquationSeparate(32774,32774),rr[0]=32774,rr[1]=32774,$e.blendFuncSeparate(770,771,773,1),Dr[0]=770,Dr[1]=771,Dr[2]=773,Dr[3]=1,Ue?$e.enable(3089):$e.disable(3089),yr.scissor_enable=Ue,rt?$e.enable(2960):$e.disable(2960),yr.stencil_enable=rt,Xr=yr.profile,Xr&&(ft=performance.now(),r.count+=Ri),$e.useProgram(s.program),tr=ge.angle_instanced_arrays;var Ps,Ha,Sn,ao,Ba;for(Re.setVAO(null),Ps=p.location,Ha=Oe[Ps],Ha.buffer||$e.enableVertexAttribArray(Ps),(Ha.type!==5126||Ha.size!==1||Ha.buffer!==d||Ha.normalized!==!1||Ha.offset!==0||Ha.stride!==8)&&($e.bindBuffer(34962,d.buffer),$e.vertexAttribPointer(Ps,1,5126,!1,8,0),Ha.type=5126,Ha.size=1,Ha.buffer=d,Ha.normalized=!1,Ha.offset=0,Ha.stride=8),Ha.divisor!==0&&(tr.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=_.location,ao=Oe[Sn],ao.buffer||$e.enableVertexAttribArray(Sn),(ao.type!==5126||ao.size!==1||ao.buffer!==d||ao.normalized!==!1||ao.offset!==4||ao.stride!==8)&&($e.bindBuffer(34962,d.buffer),$e.vertexAttribPointer(Sn,1,5126,!1,8,4),ao.type=5126,ao.size=1,ao.buffer=d,ao.normalized=!1,ao.offset=4,ao.stride=8),ao.divisor!==0&&(tr.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Ba=br.elements,Ba?$e.bindBuffer(34963,Ba.buffer.buffer):Re.currentVAO&&(Ba=Ut.getElements(Re.currentVAO.elements),Ba&&$e.bindBuffer(34963,Ba.buffer.buffer)),pr=0;pr0?Yr.constant[0]:0,qs=Yr.constant.length>1?Yr.constant[1]:0,Ns=Yr.constant.length>2?Yr.constant[2]:0,Oa=Yr.constant.length>3?Yr.constant[3]:0)):(pe(Yr.buffer)?ha=Ie.createStream(34962,Yr.buffer):ha=Ie.getBuffer(Yr.buffer),_n="type"in Yr?ti[Yr.type]:ha.dtype,Ya=!!Yr.normalized,Vs=Yr.size|0,Vn=Yr.offset|0,wo=Yr.stride|0,Ra=Yr.divisor|0)),Xn=u.location,un=Oe[Xn],Go===1?(un.buffer||$e.enableVertexAttribArray(Xn),$n=Vs||2,(un.type!==_n||un.size!==$n||un.buffer!==ha||un.normalized!==Ya||un.offset!==Vn||un.stride!==wo)&&($e.bindBuffer(34962,ha.buffer),$e.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),un.type=_n,un.size=$n,un.buffer=ha,un.normalized=Ya,un.offset=Vn,un.stride=wo),un.divisor!==Ra&&(tr.vertexAttribDivisorANGLE(Xn,Ra),un.divisor=Ra)):(un.buffer&&($e.disableVertexAttribArray(Xn),un.buffer=null),(un.x!==Ys||un.y!==qs||un.z!==Ns||un.w!==Oa)&&($e.vertexAttrib4f(Xn,Ys,qs,Ns,Oa),un.x=Ys,un.y=qs,un.z=Ns,un.w=Oa)),Ka=gr.positionFractBuffer,Bi.buffer=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,tn=!1,Pa=5126,to=0,yo=0,Jo=0,pe(Bi)?(qn=!0,es=Ie.createStream(34962,Bi),Pa=es.dtype):(es=Ie.getBuffer(Bi),es?Pa=es.dtype:"constant"in Bi?(Eo=2,typeof Bi.constant=="number"?(Ja=Bi.constant,lo=eo=sa=0):(Ja=Bi.constant.length>0?Bi.constant[0]:0,lo=Bi.constant.length>1?Bi.constant[1]:0,eo=Bi.constant.length>2?Bi.constant[2]:0,sa=Bi.constant.length>3?Bi.constant[3]:0)):(pe(Bi.buffer)?es=Ie.createStream(34962,Bi.buffer):es=Ie.getBuffer(Bi.buffer),Pa="type"in Bi?ti[Bi.type]:es.dtype,tn=!!Bi.normalized,Na=Bi.size|0,to=Bi.offset|0,yo=Bi.stride|0,Jo=Bi.divisor|0)),Ao=l.location,Dn=Oe[Ao],Eo===1?(Dn.buffer||$e.enableVertexAttribArray(Ao),_a=Na||2,(Dn.type!==Pa||Dn.size!==_a||Dn.buffer!==es||Dn.normalized!==tn||Dn.offset!==to||Dn.stride!==yo)&&($e.bindBuffer(34962,es.buffer),$e.vertexAttribPointer(Ao,_a,Pa,tn,yo,to),Dn.type=Pa,Dn.size=_a,Dn.buffer=es,Dn.normalized=tn,Dn.offset=to,Dn.stride=yo),Dn.divisor!==Jo&&(tr.vertexAttribDivisorANGLE(Ao,Jo),Dn.divisor=Jo)):(Dn.buffer&&($e.disableVertexAttribArray(Ao),Dn.buffer=null),(Dn.x!==Ja||Dn.y!==lo||Dn.z!==eo||Dn.w!==sa)&&($e.vertexAttrib4f(Ao,Ja,lo,eo,sa),Dn.x=Ja,Dn.y=lo,Dn.z=eo,Dn.w=sa)),Ws=gr.positionBuffer,oi.buffer=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,pe(oi)?(Ca=!0,ts=Ie.createStream(34962,oi),ln=ts.dtype):(ts=Ie.getBuffer(oi),ts?ln=ts.dtype:"constant"in oi?(Es=2,typeof oi.constant=="number"?(Ts=oi.constant,Ho=Wa=To=0):(Ts=oi.constant.length>0?oi.constant[0]:0,Ho=oi.constant.length>1?oi.constant[1]:0,Wa=oi.constant.length>2?oi.constant[2]:0,To=oi.constant.length>3?oi.constant[3]:0)):(pe(oi.buffer)?ts=Ie.createStream(34962,oi.buffer):ts=Ie.getBuffer(oi.buffer),ln="type"in oi?ti[oi.type]:ts.dtype,qa=!!oi.normalized,Wo=oi.size|0,Bo=oi.offset|0,ko=oi.stride|0,oo=oi.divisor|0)),za=f.location,ea=Oe[za],Es===1?(ea.buffer||$e.enableVertexAttribArray(za),rs=Wo||2,(ea.type!==ln||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Bo||ea.stride!==ko)&&($e.bindBuffer(34962,ts.buffer),$e.vertexAttribPointer(za,rs,ln,qa,ko,Bo),ea.type=ln,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Bo,ea.stride=ko),ea.divisor!==oo&&(tr.vertexAttribDivisorANGLE(za,oo),ea.divisor=oo)):(ea.buffer&&($e.disableVertexAttribArray(za),ea.buffer=null),(ea.x!==Ts||ea.y!==Ho||ea.z!==Wa||ea.w!==To)&&($e.vertexAttrib4f(za,Ts,Ho,Wa,To),ea.x=Ts,ea.y=Ho,ea.z=Wa,ea.w=To)),$s=gr.positionFractBuffer,an.buffer=$s,us=!1,Ds=1,fl=0,as=0,Ma=0,Qs=0,ho=null,gs=0,Vo=!1,Do=5126,Lo=0,xs=0,ks=0,pe(an)?(us=!0,ho=Ie.createStream(34962,an),Do=ho.dtype):(ho=Ie.getBuffer(an),ho?Do=ho.dtype:"constant"in an?(Ds=2,typeof an.constant=="number"?(fl=an.constant,as=Ma=Qs=0):(fl=an.constant.length>0?an.constant[0]:0,as=an.constant.length>1?an.constant[1]:0,Ma=an.constant.length>2?an.constant[2]:0,Qs=an.constant.length>3?an.constant[3]:0)):(pe(an.buffer)?ho=Ie.createStream(34962,an.buffer):ho=Ie.getBuffer(an.buffer),Do="type"in an?ti[an.type]:ho.dtype,Vo=!!an.normalized,gs=an.size|0,Lo=an.offset|0,xs=an.stride|0,ks=an.divisor|0)),Ea=c.location,Jn=Oe[Ea],Ds===1?(Jn.buffer||$e.enableVertexAttribArray(Ea),Oo=gs||2,(Jn.type!==Do||Jn.size!==Oo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&($e.bindBuffer(34962,ho.buffer),$e.vertexAttribPointer(Ea,Oo,Do,Vo,xs,Lo),Jn.type=Do,Jn.size=Oo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&(tr.vertexAttribDivisorANGLE(Ea,ks),Jn.divisor=ks)):(Jn.buffer&&($e.disableVertexAttribArray(Ea),Jn.buffer=null),(Jn.x!==fl||Jn.y!==as||Jn.z!==Ma||Jn.w!==Qs)&&($e.vertexAttrib4f(Ea,fl,as,Ma,Qs),Jn.x=fl,Jn.y=as,Jn.z=Ma,Jn.w=Qs)),rl=gr.colorBuffer,rn.buffer=rl,Gs=!1,bs=1,zs=0,$o=0,Aa=0,os=0,_l=null,Ss=0,po=!1,go=5126,ss=0,qo=0,zo=0,pe(rn)?(Gs=!0,_l=Ie.createStream(34962,rn),go=_l.dtype):(_l=Ie.getBuffer(rn),_l?go=_l.dtype:"constant"in rn?(bs=2,typeof rn.constant=="number"?(zs=rn.constant,$o=Aa=os=0):(zs=rn.constant.length>0?rn.constant[0]:0,$o=rn.constant.length>1?rn.constant[1]:0,Aa=rn.constant.length>2?rn.constant[2]:0,os=rn.constant.length>3?rn.constant[3]:0)):(pe(rn.buffer)?_l=Ie.createStream(34962,rn.buffer):_l=Ie.getBuffer(rn.buffer),go="type"in rn?ti[rn.type]:_l.dtype,po=!!rn.normalized,Ss=rn.size|0,ss=rn.offset|0,qo=rn.stride|0,zo=rn.divisor|0)),io=h.location,Io=Oe[io],bs===1?(Io.buffer||$e.enableVertexAttribArray(io),Da=Ss||4,(Io.type!==go||Io.size!==Da||Io.buffer!==_l||Io.normalized!==po||Io.offset!==ss||Io.stride!==qo)&&($e.bindBuffer(34962,_l.buffer),$e.vertexAttribPointer(io,Da,go,po,qo,ss),Io.type=go,Io.size=Da,Io.buffer=_l,Io.normalized=po,Io.offset=ss,Io.stride=qo),Io.divisor!==zo&&(tr.vertexAttribDivisorANGLE(io,zo),Io.divisor=zo)):(Io.buffer&&($e.disableVertexAttribArray(io),Io.buffer=null),(Io.x!==zs||Io.y!==$o||Io.z!==Aa||Io.w!==os)&&($e.vertexAttrib4f(io,zs,$o,Aa,os),Io.x=zs,Io.y=$o,Io.z=Aa,Io.w=os)),vs=gr.dashLength,(!pr||fs!==vs)&&(fs=vs,$e.uniform1f(b.location,vs)),cl=gr.dashTexture,cl&&cl._reglType==="framebuffer"&&(cl=cl.color[0]),el=cl._texture,$e.uniform1i(v.location,el.bind()),Hs=gr.depth,(!pr||Ro!==Hs)&&(Ro=Hs,$e.uniform1f(k.location,Hs)),tl=gr.opacity,(!pr||Fs!==tl)&&(Fs=tl,$e.uniform1f(E.location,tl)),hl=gr.scale,Fa=hl[0],jo=hl[1],(!pr||Ms!==Fa||Rs!==jo)&&(Ms=Fa,Rs=jo,$e.uniform2f(T.location,Fa,jo)),Is=gr.scaleFract,Bs=Is[0],Gt=Is[1],(!pr||At!==Bs||wr!==Gt)&&(At=Bs,wr=Gt,$e.uniform2f(L.location,Bs,Gt)),mr=gr.thickness,(!pr||Or!==mr)&&(Or=mr,$e.uniform1f(x.location,mr)),gi=gr.translate,Ti=gi[0],Ji=gi[1],(!pr||ki!==Ti||Fn!==Ji)&&(ki=Ti,Fn=Ji,$e.uniform2f(C.location,Ti,Ji)),Pi=gr.translateFract,hi=Pi[0],Si=Pi[1],(!pr||Li!==hi||Gn!==Si)&&(Li=hi,Gn=Si,$e.uniform2f(M.location,hi,Si)),ta=P.call(this,zt,gr,pr),ya=ta[0],pa=ta[1],zn=ta[2],Cs=ta[3],(!pr||ia!==ya||va!==pa||is!==zn||Ks!==Cs)&&(ia=ya,va=pa,is=zn,Ks=Cs,$e.uniform4f(m.location,ya,pa,zn,Cs)),dl=gr.count,dl>0?Ba?tr.drawElementsInstancedANGLE(5,4,Ba.type,0<<(Ba.type-5121>>1),dl):tr.drawArraysInstancedANGLE(5,0,4,dl):dl<0&&(Ba?$e.drawElements(5,4,Ba.type,0<<(Ba.type-5121>>1)):$e.drawArrays(5,0,4)),zt.viewportWidth=vn,zt.viewportHeight=da,jn&&Ie.destroyStream(ha),qn&&Ie.destroyStream(es),Ca&&Ie.destroyStream(ts),us&&Ie.destroyStream(ho),Gs&&Ie.destroyStream(_l),el.unbind()}yr.dirty=!0,Re.setVAO(null),Xr&&(r.cpuTime+=performance.now()-ft)}}}});var k8=Te((X_r,BNe)=>{BNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt,Nt,it,Ye,kt,Tt,St,Rt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie){"use strict";var xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr;return xe=t.gl,Oe=t.context,Re=t.strings,De=t.next,ct=t.current,ge=t.draw,fe=t.elements,pe=t.buffer,dt=t.shader,It=t.attributes,Pt=t.vao,rr=t.uniforms,Hr=t.framebuffer,Dr=t.extensions,Mr=t.timer,Fr=t.isBufferArgs,di=De.blend_color,Di=ct.blend_color,Ii=De.blend_equation,Ci=ct.blend_equation,nn=De.blend_func,ii=ct.blend_func,wi=De.depth_range,Gi=ct.depth_range,Bt=De.colorMask,yt=ct.colorMask,Vt=De.polygonOffset_offset,Wt=ct.polygonOffset_offset,_r=De.sample_coverage,Lr=ct.sample_coverage,Ur=De.stencil_func,Ir=ct.stencil_func,Gr=De.stencil_opFront,jr=ct.stencil_opFront,yi=De.stencil_opBack,Ei=ct.stencil_opBack,Vi=De.scissor_box,ti=ct.scissor_box,en=De.viewport,Yr=ct.viewport,oi={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Bi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},an={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},rn={add:32774,subtract:32778,"reverse subtract":32779},Fi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ri={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},xn={cw:2304,ccw:2305},xi={},xi.stride=4,xi.offset=0,xi.divisor=1,Xr={},Xr.stride=4,Xr.offset=4,Xr.divisor=1,ft={},ft.stride=8,ft.offset=0,ft.divisor=1,tr={},tr.stride=8,tr.offset=8,tr.divisor=1,pr={},pr.stride=8,pr.offset=16,pr.divisor=1,gr={},gr.stride=8,gr.offset=24,gr.divisor=1,{draw:function(Zr){var Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms;if(Ai=Dr.angle_instanced_arrays,Qi=Hr.next,Qi!==Hr.cur&&(Qi?xe.bindFramebuffer(36160,Qi.framebuffer):xe.bindFramebuffer(36160,null),Hr.cur=Qi),ct.dirty){var jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl;jo=De.dither,jo!==ct.dither&&(jo?xe.enable(3024):xe.disable(3024),ct.dither=jo),Rs=De.depth_func,Rs!==ct.depth_func&&(xe.depthFunc(Rs),ct.depth_func=Rs),Is=wi[0],Bs=wi[1],(Is!==Gi[0]||Bs!==Gi[1])&&(xe.depthRange(Is,Bs),Gi[0]=Is,Gi[1]=Bs),At=De.depth_mask,At!==ct.depth_mask&&(xe.depthMask(At),ct.depth_mask=At),Gt=Bt[0],wr=Bt[1],mr=Bt[2],Or=Bt[3],(Gt!==yt[0]||wr!==yt[1]||mr!==yt[2]||Or!==yt[3])&&(xe.colorMask(Gt,wr,mr,Or),yt[0]=Gt,yt[1]=wr,yt[2]=mr,yt[3]=Or),gi=De.frontFace,gi!==ct.frontFace&&(xe.frontFace(gi),ct.frontFace=gi),Ti=De.lineWidth,Ti!==ct.lineWidth&&(xe.lineWidth(Ti),ct.lineWidth=Ti),ki=De.polygonOffset_enable,ki!==ct.polygonOffset_enable&&(ki?xe.enable(32823):xe.disable(32823),ct.polygonOffset_enable=ki),Ji=Vt[0],Fn=Vt[1],(Ji!==Wt[0]||Fn!==Wt[1])&&(xe.polygonOffset(Ji,Fn),Wt[0]=Ji,Wt[1]=Fn),Pi=De.sample_alpha,Pi!==ct.sample_alpha&&(Pi?xe.enable(32926):xe.disable(32926),ct.sample_alpha=Pi),hi=De.sample_enable,hi!==ct.sample_enable&&(hi?xe.enable(32928):xe.disable(32928),ct.sample_enable=hi),Li=_r[0],Si=_r[1],(Li!==Lr[0]||Si!==Lr[1])&&(xe.sampleCoverage(Li,Si),Lr[0]=Li,Lr[1]=Si),Gn=De.stencil_mask,Gn!==ct.stencil_mask&&(xe.stencilMask(Gn),ct.stencil_mask=Gn),ta=Ur[0],ya=Ur[1],ia=Ur[2],(ta!==Ir[0]||ya!==Ir[1]||ia!==Ir[2])&&(xe.stencilFunc(ta,ya,ia),Ir[0]=ta,Ir[1]=ya,Ir[2]=ia),pa=Gr[0],va=Gr[1],zn=Gr[2],is=Gr[3],(pa!==jr[0]||va!==jr[1]||zn!==jr[2]||is!==jr[3])&&(xe.stencilOpSeparate(pa,va,zn,is),jr[0]=pa,jr[1]=va,jr[2]=zn,jr[3]=is),Cs=yi[0],Ks=yi[1],dl=yi[2],xl=yi[3],(Cs!==Ei[0]||Ks!==Ei[1]||dl!==Ei[2]||xl!==Ei[3])&&(xe.stencilOpSeparate(Cs,Ks,dl,xl),Ei[0]=Cs,Ei[1]=Ks,Ei[2]=dl,Ei[3]=xl)}ni=Zr.viewport,Zi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:Oe.framebufferWidth-Zi,Un="height"in ni?ni.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,xe.viewport(Zi,aa,Mn,Un),Yr[0]=Zi,Yr[1]=aa,Yr[2]=Mn,Yr[3]=Un,xe.blendColor(0,0,0,0),Di[0]=0,Di[1]=0,Di[2]=0,Di[3]=0,n?xe.enable(3042):xe.disable(3042),ct.blend_enable=n,xe.blendEquationSeparate(32774,32774),Ci[0]=32774,Ci[1]=32774,xe.blendFuncSeparate(770,771,773,1),ii[0]=770,ii[1]=771,ii[2]=773,ii[3]=1,i?xe.enable(2884):xe.disable(2884),ct.cull_enable=i,xe.cullFace(a),ct.cull_face=a,oa=o.call(this,Oe,Zr,0),oa?xe.enable(2929):xe.disable(2929),ct.depth_enable=oa,ka=Zr.viewport,so=ka.x|0,Kr=ka.y|0,Ia="width"in ka?ka.width|0:Oe.framebufferWidth-so,Yo="height"in ka?ka.height|0:Oe.framebufferHeight-Kr,xe.scissor(so,Kr,Ia,Yo),ti[0]=so,ti[1]=Kr,ti[2]=Ia,ti[3]=Yo,s?xe.enable(3089):xe.disable(3089),ct.scissor_enable=s,u?xe.enable(2960):xe.disable(2960),ct.stencil_enable=u,fa=ct.profile,fa&&(kn=performance.now(),r.count++),xe.useProgram(l.program),Ta=Dr.angle_instanced_arrays,Pt.setVAO(null),ys=Zr.colorBuffer,xi.buffer=ys,uo=!1,ls=1,$a=0,fo=0,mn=0,ra=0,wa=null,ws=0,Co=!1,Po=5126,ji=0,gn=0,Ps=0,Fr(xi)?(uo=!0,wa=pe.createStream(34962,xi),Po=wa.dtype):(wa=pe.getBuffer(xi),wa?Po=wa.dtype:"constant"in xi?(ls=2,typeof xi.constant=="number"?($a=xi.constant,fo=mn=ra=0):($a=xi.constant.length>0?xi.constant[0]:0,fo=xi.constant.length>1?xi.constant[1]:0,mn=xi.constant.length>2?xi.constant[2]:0,ra=xi.constant.length>3?xi.constant[3]:0)):(Fr(xi.buffer)?wa=pe.createStream(34962,xi.buffer):wa=pe.getBuffer(xi.buffer),Po="type"in xi?Ri[xi.type]:wa.dtype,Co=!!xi.normalized,ws=xi.size|0,ji=xi.offset|0,gn=xi.stride|0,Ps=xi.divisor|0)),Ha=f.location,Sn=It[Ha],ls===1?(Sn.buffer||xe.enableVertexAttribArray(Ha),ao=ws||4,(Sn.type!==Po||Sn.size!==ao||Sn.buffer!==wa||Sn.normalized!==Co||Sn.offset!==ji||Sn.stride!==gn)&&(xe.bindBuffer(34962,wa.buffer),xe.vertexAttribPointer(Ha,ao,Po,Co,gn,ji),Sn.type=Po,Sn.size=ao,Sn.buffer=wa,Sn.normalized=Co,Sn.offset=ji,Sn.stride=gn),Sn.divisor!==Ps&&(Ta.vertexAttribDivisorANGLE(Ha,Ps),Sn.divisor=Ps)):(Sn.buffer&&(xe.disableVertexAttribArray(Ha),Sn.buffer=null),(Sn.x!==$a||Sn.y!==fo||Sn.z!==mn||Sn.w!==ra)&&(xe.vertexAttrib4f(Ha,$a,fo,mn,ra),Sn.x=$a,Sn.y=fo,Sn.z=mn,Sn.w=ra)),Ba=Zr.positionBuffer,tr.buffer=Ba,Ko=!1,Qo=1,Wi=0,Sa=0,Qa=0,vn=0,da=null,la=0,vo=!1,As=5126,ps=0,co=0,mo=0,Fr(tr)?(Ko=!0,da=pe.createStream(34962,tr),As=da.dtype):(da=pe.getBuffer(tr),da?As=da.dtype:"constant"in tr?(Qo=2,typeof tr.constant=="number"?(Wi=tr.constant,Sa=Qa=vn=0):(Wi=tr.constant.length>0?tr.constant[0]:0,Sa=tr.constant.length>1?tr.constant[1]:0,Qa=tr.constant.length>2?tr.constant[2]:0,vn=tr.constant.length>3?tr.constant[3]:0)):(Fr(tr.buffer)?da=pe.createStream(34962,tr.buffer):da=pe.getBuffer(tr.buffer),As="type"in tr?Ri[tr.type]:da.dtype,vo=!!tr.normalized,la=tr.size|0,ps=tr.offset|0,co=tr.stride|0,mo=tr.divisor|0)),No=c.location,jn=It[No],Qo===1?(jn.buffer||xe.enableVertexAttribArray(No),Go=la||2,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(xe.bindBuffer(34962,da.buffer),xe.vertexAttribPointer(No,Go,As,vo,co,ps),jn.type=As,jn.size=Go,jn.buffer=da,jn.normalized=vo,jn.offset=ps,jn.stride=co),jn.divisor!==mo&&(Ta.vertexAttribDivisorANGLE(No,mo),jn.divisor=mo)):(jn.buffer&&(xe.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Wi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(xe.vertexAttrib4f(No,Wi,Sa,Qa,vn),jn.x=Wi,jn.y=Sa,jn.z=Qa,jn.w=vn)),Ys=Zr.colorBuffer,Xr.buffer=Ys,qs=!1,Ns=1,Oa=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Ra=5126,Xn=0,un=0,$n=0,Fr(Xr)?(qs=!0,_n=pe.createStream(34962,Xr),Ra=_n.dtype):(_n=pe.getBuffer(Xr),_n?Ra=_n.dtype:"constant"in Xr?(Ns=2,typeof Xr.constant=="number"?(Oa=Xr.constant,ha=Vs=Ya=0):(Oa=Xr.constant.length>0?Xr.constant[0]:0,ha=Xr.constant.length>1?Xr.constant[1]:0,Vs=Xr.constant.length>2?Xr.constant[2]:0,Ya=Xr.constant.length>3?Xr.constant[3]:0)):(Fr(Xr.buffer)?_n=pe.createStream(34962,Xr.buffer):_n=pe.getBuffer(Xr.buffer),Ra="type"in Xr?Ri[Xr.type]:_n.dtype,wo=!!Xr.normalized,Vn=Xr.size|0,Xn=Xr.offset|0,un=Xr.stride|0,$n=Xr.divisor|0)),Ka=h.location,qn=It[Ka],Ns===1?(qn.buffer||xe.enableVertexAttribArray(Ka),Eo=Vn||4,(qn.type!==Ra||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==un)&&(xe.bindBuffer(34962,_n.buffer),xe.vertexAttribPointer(Ka,Eo,Ra,wo,un,Xn),qn.type=Ra,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=un),qn.divisor!==$n&&(Ta.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(xe.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Oa||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(xe.vertexAttrib4f(Ka,Oa,ha,Vs,Ya),qn.x=Oa,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=Zr.positionBuffer,pr.buffer=Ja,lo=!1,eo=1,sa=0,es=0,Na=0,tn=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Dn=0,_a=0,Fr(pr)?(lo=!0,Pa=pe.createStream(34962,pr),Jo=Pa.dtype):(Pa=pe.getBuffer(pr),Pa?Jo=Pa.dtype:"constant"in pr?(eo=2,typeof pr.constant=="number"?(sa=pr.constant,es=Na=tn=0):(sa=pr.constant.length>0?pr.constant[0]:0,es=pr.constant.length>1?pr.constant[1]:0,Na=pr.constant.length>2?pr.constant[2]:0,tn=pr.constant.length>3?pr.constant[3]:0)):(Fr(pr.buffer)?Pa=pe.createStream(34962,pr.buffer):Pa=pe.getBuffer(pr.buffer),Jo="type"in pr?Ri[pr.type]:Pa.dtype,yo=!!pr.normalized,to=pr.size|0,Ao=pr.offset|0,Dn=pr.stride|0,_a=pr.divisor|0)),Ws=d.location,Ca=It[Ws],eo===1?(Ca.buffer||xe.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Dn)&&(xe.bindBuffer(34962,Pa.buffer),xe.vertexAttribPointer(Ws,Es,Jo,yo,Dn,Ao),Ca.type=Jo,Ca.size=Es,Ca.buffer=Pa,Ca.normalized=yo,Ca.offset=Ao,Ca.stride=Dn),Ca.divisor!==_a&&(Ta.vertexAttribDivisorANGLE(Ws,_a),Ca.divisor=_a)):(Ca.buffer&&(xe.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==tn)&&(xe.vertexAttrib4f(Ws,sa,es,Na,tn),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=tn)),Ts=_.location,Ho=It[Ts],Ho.buffer||xe.enableVertexAttribArray(Ts),(Ho.type!==5126||Ho.size!==1||Ho.buffer!==p||Ho.normalized!==!1||Ho.offset!==0||Ho.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Ts,1,5126,!1,8,0),Ho.type=5126,Ho.size=1,Ho.buffer=p,Ho.normalized=!1,Ho.offset=0,Ho.stride=8),Ho.divisor!==0&&(Ta.vertexAttribDivisorANGLE(Ts,0),Ho.divisor=0),Wa=b.location,To=It[Wa],To.buffer||xe.enableVertexAttribArray(Wa),(To.type!==5126||To.size!==1||To.buffer!==p||To.normalized!==!1||To.offset!==4||To.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Wa,1,5126,!1,8,4),To.type=5126,To.size=1,To.buffer=p,To.normalized=!1,To.offset=4,To.stride=8),To.divisor!==0&&(Ta.vertexAttribDivisorANGLE(Wa,0),To.divisor=0),ts=Zr.positionBuffer,gr.buffer=ts,Wo=!1,qa=1,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,Fr(gr)?(Wo=!0,za=pe.createStream(34962,gr),$s=za.dtype):(za=pe.getBuffer(gr),za?$s=za.dtype:"constant"in gr?(qa=2,typeof gr.constant=="number"?(ln=gr.constant,Bo=ko=oo=0):(ln=gr.constant.length>0?gr.constant[0]:0,Bo=gr.constant.length>1?gr.constant[1]:0,ko=gr.constant.length>2?gr.constant[2]:0,oo=gr.constant.length>3?gr.constant[3]:0)):(Fr(gr.buffer)?za=pe.createStream(34962,gr.buffer):za=pe.getBuffer(gr.buffer),$s="type"in gr?Ri[gr.type]:za.dtype,rs=!!gr.normalized,ea=gr.size|0,us=gr.offset|0,Ds=gr.stride|0,fl=gr.divisor|0)),as=v.location,Ma=It[as],qa===1?(Ma.buffer||xe.enableVertexAttribArray(as),Qs=ea||2,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Ds)&&(xe.bindBuffer(34962,za.buffer),xe.vertexAttribPointer(as,Qs,$s,rs,Ds,us),Ma.type=$s,Ma.size=Qs,Ma.buffer=za,Ma.normalized=rs,Ma.offset=us,Ma.stride=Ds),Ma.divisor!==fl&&(Ta.vertexAttribDivisorANGLE(as,fl),Ma.divisor=fl)):(Ma.buffer&&(xe.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==ln||Ma.y!==Bo||Ma.z!==ko||Ma.w!==oo)&&(xe.vertexAttrib4f(as,ln,Bo,ko,oo),Ma.x=ln,Ma.y=Bo,Ma.z=ko,Ma.w=oo)),ho=Zr.positionBuffer,ft.buffer=ho,gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Fr(ft)?(gs=!0,Ea=pe.createStream(34962,ft),rl=Ea.dtype):(Ea=pe.getBuffer(ft),Ea?rl=Ea.dtype:"constant"in ft?(Vo=2,typeof ft.constant=="number"?(Do=ft.constant,Lo=xs=ks=0):(Do=ft.constant.length>0?ft.constant[0]:0,Lo=ft.constant.length>1?ft.constant[1]:0,xs=ft.constant.length>2?ft.constant[2]:0,ks=ft.constant.length>3?ft.constant[3]:0)):(Fr(ft.buffer)?Ea=pe.createStream(34962,ft.buffer):Ea=pe.getBuffer(ft.buffer),rl="type"in ft?Ri[ft.type]:Ea.dtype,Oo=!!ft.normalized,Jn=ft.size|0,Gs=ft.offset|0,bs=ft.stride|0,zs=ft.divisor|0)),$o=k.location,Aa=It[$o],Vo===1?(Aa.buffer||xe.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Oo||Aa.offset!==Gs||Aa.stride!==bs)&&(xe.bindBuffer(34962,Ea.buffer),xe.vertexAttribPointer($o,os,rl,Oo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Oo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Ta.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(xe.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Do||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(xe.vertexAttrib4f($o,Do,Lo,xs,ks),Aa.x=Do,Aa.y=Lo,Aa.z=xs,Aa.w=ks)),_l=Zr.dashLength,xe.uniform1f(E.location,_l),Ss=Zr.dashTexture,Ss&&Ss._reglType==="framebuffer"&&(Ss=Ss.color[0]),po=Ss._texture,xe.uniform1i(T.location,po.bind()),go=Zr.depth,xe.uniform1f(L.location,go),ss=Zr.miterLimit,xe.uniform1f(x.location,ss),qo=M.call(this,Oe,Zr,0),xe.uniform1f(C.location,qo),zo=Zr.opacity,xe.uniform1f(m.location,zo),io=Zr.scale,Io=io[0],Da=io[1],xe.uniform2f(P.location,Io,Da),vs=Zr.thickness,xe.uniform1f(A.location,vs),fs=Zr.translate,cl=fs[0],el=fs[1],xe.uniform2f(B.location,cl,el),Hs=U.call(this,Oe,Zr,0),Ro=Hs[0],tl=Hs[1],Fs=Hs[2],hl=Hs[3],xe.uniform4f(F.location,Ro,tl,Fs,hl),Fa=ge.elements,Fa?xe.bindBuffer(34963,Fa.buffer.buffer):Pt.currentVAO&&(Fa=fe.getElements(Pt.currentVAO.elements),Fa&&xe.bindBuffer(34963,Fa.buffer.buffer)),Ms=Zr.count,Ms>0?Fa?Ta.drawElementsInstancedANGLE(5,4,Fa.type,0<<(Fa.type-5121>>1),Ms):Ta.drawArraysInstancedANGLE(5,0,4,Ms):Ms<0&&(Fa?xe.drawElements(5,4,Fa.type,0<<(Fa.type-5121>>1)):xe.drawArrays(5,0,4)),ct.dirty=!0,Pt.setVAO(null),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,fa&&(r.cpuTime+=performance.now()-kn),uo&&pe.destroyStream(wa),Ko&&pe.destroyStream(da),qs&&pe.destroyStream(_n),lo&&pe.destroyStream(Pa),Wo&&pe.destroyStream(za),gs&&pe.destroyStream(Ea),po.unbind()},scope:function(Zr,Ai,Qi){var ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Ul,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Vl,Nl,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,Ol,ou,Pu,iu,tu,Wu,Qu,Ju,ju,Xu,lf,xf,ef,tf,Z,se,ze,Xe,Qe;ni=Zr.viewport,Zi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:Oe.framebufferWidth-Zi,Un="height"in ni?ni.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,oa=en[0],en[0]=Zi,ka=en[1],en[1]=aa,so=en[2],en[2]=Mn,Kr=en[3],en[3]=Un,Ia=di[0],di[0]=G,Yo=di[1],di[1]=j,fa=di[2],di[2]=H,kn=di[3],di[3]=N,Ta=De.blend_enable,De.blend_enable=W,ys=Ii[0],Ii[0]=re,uo=Ii[1],Ii[1]=ae,ls=nn[0],nn[0]=be,$a=nn[1],nn[1]=Pe,fo=nn[2],nn[2]=Ce,mn=nn[3],nn[3]=de,ra=De.cull_enable,De.cull_enable=te,wa=De.cull_face,De.cull_face=ke,ws=o.call(this,Oe,Zr,Qi),Co=De.depth_enable,De.depth_enable=ws,Po=Zr.viewport,ji=Po.x|0,gn=Po.y|0,Ps="width"in Po?Po.width|0:Oe.framebufferWidth-ji,Ha="height"in Po?Po.height|0:Oe.framebufferHeight-gn,Sn=Vi[0],Vi[0]=ji,ao=Vi[1],Vi[1]=gn,Ba=Vi[2],Vi[2]=Ps,Ko=Vi[3],Vi[3]=Ha,Qo=De.scissor_enable,De.scissor_enable=Ee,Wi=De.stencil_enable,De.stencil_enable=Me,Sa=ct.profile,Sa&&(Qa=performance.now(),r.count++),vn=ge.offset,ge.offset=Ne,da=ge.count,ge.count=Fe,la=Zr.count,vo=ge.instances,ge.instances=la,As=ge.primitive,ge.primitive=ye,ps=M.call(this,Oe,Zr,Qi),co=rr[Ve],rr[Ve]=ps,mo=Zr.miterLimit,No=rr[ce],rr[ce]=mo,jn=Zr.scale,Go=rr[Ke],rr[Ke]=jn,Ys=Zr.scaleFract,qs=rr[nt],rr[nt]=Ys,Ns=Zr.translateFract,Oa=rr[gt],rr[gt]=Ns,ha=Zr.translate,Vs=rr[Nt],rr[Nt]=ha,Ya=Zr.thickness,_n=rr[it],rr[it]=Ya,Vn=Zr.dashTexture,wo=rr[Ye],rr[Ye]=Vn,Ra=Zr.opacity,Xn=rr[kt],rr[kt]=Ra,un=Oe.pixelRatio,$n=rr[Tt],rr[Tt]=un,Ka=Zr.id,qn=rr[St],rr[St]=Ka,Eo=Zr.dashLength,Ja=rr[Rt],rr[Rt]=Eo,lo=U.call(this,Oe,Zr,Qi),eo=rr[Zt],rr[Zt]=lo,sa=Zr.depth,es=rr[Et],rr[Et]=sa,Na=Ae.state,Ae.state=1,tn=Ae.x,Ae.x=0,Pa=Ae.y,Ae.y=0,to=Ae.z,Ae.z=0,yo=Ae.w,Ae.w=0,Jo=Ae.buffer,Ae.buffer=p,Ao=Ae.size,Ae.size=0,Dn=Ae.normalized,Ae.normalized=!1,_a=Ae.type,Ae.type=5126,Ws=Ae.offset,Ae.offset=0,Ca=Ae.stride,Ae.stride=8,Es=Ae.divisor,Ae.divisor=0,Ts=at.state,at.state=1,Ho=at.x,at.x=0,Wa=at.y,at.y=0,To=at.z,at.z=0,ts=at.w,at.w=0,Wo=at.buffer,at.buffer=p,qa=at.size,at.size=0,ln=at.normalized,at.normalized=!1,Bo=at.type,at.type=5126,ko=at.offset,at.offset=4,oo=at.stride,at.stride=8,za=at.divisor,at.divisor=0,ea=Zr.colorBuffer,xi.buffer=ea,rs=!1,$s=1,us=0,Ds=0,fl=0,as=0,Ma=null,Qs=0,ho=!1,gs=5126,Vo=0,Do=0,Lo=0,Fr(xi)?(rs=!0,Ma=pe.createStream(34962,xi),gs=Ma.dtype):(Ma=pe.getBuffer(xi),Ma?gs=Ma.dtype:"constant"in xi?($s=2,typeof xi.constant=="number"?(us=xi.constant,Ds=fl=as=0):(us=xi.constant.length>0?xi.constant[0]:0,Ds=xi.constant.length>1?xi.constant[1]:0,fl=xi.constant.length>2?xi.constant[2]:0,as=xi.constant.length>3?xi.constant[3]:0)):(Fr(xi.buffer)?Ma=pe.createStream(34962,xi.buffer):Ma=pe.getBuffer(xi.buffer),gs="type"in xi?Ri[xi.type]:Ma.dtype,ho=!!xi.normalized,Qs=xi.size|0,Vo=xi.offset|0,Do=xi.stride|0,Lo=xi.divisor|0)),xs=wt.state,wt.state=$s,ks=wt.x,wt.x=us,Ea=wt.y,wt.y=Ds,Jn=wt.z,wt.z=fl,Oo=wt.w,wt.w=as,rl=wt.buffer,wt.buffer=Ma,Gs=wt.size,wt.size=Qs,bs=wt.normalized,wt.normalized=ho,zs=wt.type,wt.type=gs,$o=wt.offset,wt.offset=Vo,Aa=wt.stride,wt.stride=Do,os=wt.divisor,wt.divisor=Lo,_l=Zr.colorBuffer,Xr.buffer=_l,Ss=!1,po=1,go=0,ss=0,qo=0,zo=0,io=null,Io=0,Da=!1,vs=5126,fs=0,cl=0,el=0,Fr(Xr)?(Ss=!0,io=pe.createStream(34962,Xr),vs=io.dtype):(io=pe.getBuffer(Xr),io?vs=io.dtype:"constant"in Xr?(po=2,typeof Xr.constant=="number"?(go=Xr.constant,ss=qo=zo=0):(go=Xr.constant.length>0?Xr.constant[0]:0,ss=Xr.constant.length>1?Xr.constant[1]:0,qo=Xr.constant.length>2?Xr.constant[2]:0,zo=Xr.constant.length>3?Xr.constant[3]:0)):(Fr(Xr.buffer)?io=pe.createStream(34962,Xr.buffer):io=pe.getBuffer(Xr.buffer),vs="type"in Xr?Ri[Xr.type]:io.dtype,Da=!!Xr.normalized,Io=Xr.size|0,fs=Xr.offset|0,cl=Xr.stride|0,el=Xr.divisor|0)),Hs=vt.state,vt.state=po,Ro=vt.x,vt.x=go,tl=vt.y,vt.y=ss,Fs=vt.z,vt.z=qo,hl=vt.w,vt.w=zo,Fa=vt.buffer,vt.buffer=io,Ms=vt.size,vt.size=Io,jo=vt.normalized,vt.normalized=Da,Rs=vt.type,vt.type=vs,Is=vt.offset,vt.offset=fs,Bs=vt.stride,vt.stride=cl,At=vt.divisor,vt.divisor=el,Gt=Zr.positionBuffer,ft.buffer=Gt,wr=!1,mr=1,Or=0,gi=0,Ti=0,ki=0,Ji=null,Fn=0,Pi=!1,hi=5126,Li=0,Si=0,Gn=0,Fr(ft)?(wr=!0,Ji=pe.createStream(34962,ft),hi=Ji.dtype):(Ji=pe.getBuffer(ft),Ji?hi=Ji.dtype:"constant"in ft?(mr=2,typeof ft.constant=="number"?(Or=ft.constant,gi=Ti=ki=0):(Or=ft.constant.length>0?ft.constant[0]:0,gi=ft.constant.length>1?ft.constant[1]:0,Ti=ft.constant.length>2?ft.constant[2]:0,ki=ft.constant.length>3?ft.constant[3]:0)):(Fr(ft.buffer)?Ji=pe.createStream(34962,ft.buffer):Ji=pe.getBuffer(ft.buffer),hi="type"in ft?Ri[ft.type]:Ji.dtype,Pi=!!ft.normalized,Fn=ft.size|0,Li=ft.offset|0,Si=ft.stride|0,Gn=ft.divisor|0)),ta=st.state,st.state=mr,ya=st.x,st.x=Or,ia=st.y,st.y=gi,pa=st.z,st.z=Ti,va=st.w,st.w=ki,zn=st.buffer,st.buffer=Ji,is=st.size,st.size=Fn,Cs=st.normalized,st.normalized=Pi,Ks=st.type,st.type=hi,dl=st.offset,st.offset=Li,xl=st.stride,st.stride=Si,Bl=st.divisor,st.divisor=Gn,bl=Zr.positionBuffer,tr.buffer=bl,eu=!1,Zl=1,Ul=0,ja=0,ns=0,Js=0,cs=null,sl=0,ll=!1,il=5126,zl=0,Ml=0,Rl=0,Fr(tr)?(eu=!0,cs=pe.createStream(34962,tr),il=cs.dtype):(cs=pe.getBuffer(tr),cs?il=cs.dtype:"constant"in tr?(Zl=2,typeof tr.constant=="number"?(Ul=tr.constant,ja=ns=Js=0):(Ul=tr.constant.length>0?tr.constant[0]:0,ja=tr.constant.length>1?tr.constant[1]:0,ns=tr.constant.length>2?tr.constant[2]:0,Js=tr.constant.length>3?tr.constant[3]:0)):(Fr(tr.buffer)?cs=pe.createStream(34962,tr.buffer):cs=pe.getBuffer(tr.buffer),il="type"in tr?Ri[tr.type]:cs.dtype,ll=!!tr.normalized,sl=tr.size|0,zl=tr.offset|0,Ml=tr.stride|0,Rl=tr.divisor|0)),Al=Ue.state,Ue.state=Zl,Ll=Ue.x,Ue.x=Ul,ms=Ue.y,Ue.y=ja,Os=Ue.z,Ue.z=ns,Xl=Ue.w,Ue.w=Js,Vl=Ue.buffer,Ue.buffer=cs,Nl=Ue.size,Ue.size=sl,le=Ue.normalized,Ue.normalized=ll,w=Ue.type,Ue.type=il,q=Ue.offset,Ue.offset=zl,Q=Ue.stride,Ue.stride=Ml,ee=Ue.divisor,Ue.divisor=Rl,ue=Zr.positionBuffer,pr.buffer=ue,Ge=!1,et=1,mt=0,Ft=0,ir=0,or=0,kr=null,Vr=0,he=!1,Se=5126,qe=0,He=0,lt=0,Fr(pr)?(Ge=!0,kr=pe.createStream(34962,pr),Se=kr.dtype):(kr=pe.getBuffer(pr),kr?Se=kr.dtype:"constant"in pr?(et=2,typeof pr.constant=="number"?(mt=pr.constant,Ft=ir=or=0):(mt=pr.constant.length>0?pr.constant[0]:0,Ft=pr.constant.length>1?pr.constant[1]:0,ir=pr.constant.length>2?pr.constant[2]:0,or=pr.constant.length>3?pr.constant[3]:0)):(Fr(pr.buffer)?kr=pe.createStream(34962,pr.buffer):kr=pe.getBuffer(pr.buffer),Se="type"in pr?Ri[pr.type]:kr.dtype,he=!!pr.normalized,Vr=pr.size|0,qe=pr.offset|0,He=pr.stride|0,lt=pr.divisor|0)),tt=rt.state,rt.state=et,pt=rt.x,rt.x=mt,Ht=rt.y,rt.y=Ft,nr=rt.z,rt.z=ir,fr=rt.w,rt.w=or,Ar=rt.buffer,rt.buffer=kr,Rr=rt.size,rt.size=Vr,ri=rt.normalized,rt.normalized=he,si=rt.type,rt.type=Se,Mi=rt.offset,rt.offset=qe,hn=rt.stride,rt.stride=He,Zn=rt.divisor,rt.divisor=lt,Yn=Zr.positionBuffer,gr.buffer=Yn,Ua=!1,Fo=1,vl=0,Us=0,ml=0,au=0,Sl=null,Yl=0,Ol=!1,ou=5126,Pu=0,iu=0,tu=0,Fr(gr)?(Ua=!0,Sl=pe.createStream(34962,gr),ou=Sl.dtype):(Sl=pe.getBuffer(gr),Sl?ou=Sl.dtype:"constant"in gr?(Fo=2,typeof gr.constant=="number"?(vl=gr.constant,Us=ml=au=0):(vl=gr.constant.length>0?gr.constant[0]:0,Us=gr.constant.length>1?gr.constant[1]:0,ml=gr.constant.length>2?gr.constant[2]:0,au=gr.constant.length>3?gr.constant[3]:0)):(Fr(gr.buffer)?Sl=pe.createStream(34962,gr.buffer):Sl=pe.getBuffer(gr.buffer),ou="type"in gr?Ri[gr.type]:Sl.dtype,Ol=!!gr.normalized,Yl=gr.size|0,Pu=gr.offset|0,iu=gr.stride|0,tu=gr.divisor|0)),Wu=$e.state,$e.state=Fo,Qu=$e.x,$e.x=vl,Ju=$e.y,$e.y=Us,ju=$e.z,$e.z=ml,Xu=$e.w,$e.w=au,lf=$e.buffer,$e.buffer=Sl,xf=$e.size,$e.size=Yl,ef=$e.normalized,$e.normalized=Ol,tf=$e.type,$e.type=ou,Z=$e.offset,$e.offset=Pu,se=$e.stride,$e.stride=iu,ze=$e.divisor,$e.divisor=tu,Xe=dt.vert,dt.vert=zt,Qe=dt.frag,dt.frag=Yt,ct.dirty=!0,Ai(Oe,Zr,Qi),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,en[0]=oa,en[1]=ka,en[2]=so,en[3]=Kr,di[0]=Ia,di[1]=Yo,di[2]=fa,di[3]=kn,De.blend_enable=Ta,Ii[0]=ys,Ii[1]=uo,nn[0]=ls,nn[1]=$a,nn[2]=fo,nn[3]=mn,De.cull_enable=ra,De.cull_face=wa,De.depth_enable=Co,Vi[0]=Sn,Vi[1]=ao,Vi[2]=Ba,Vi[3]=Ko,De.scissor_enable=Qo,De.stencil_enable=Wi,Sa&&(r.cpuTime+=performance.now()-Qa),ge.offset=vn,ge.count=da,ge.instances=vo,ge.primitive=As,rr[Ve]=co,rr[ce]=No,rr[Ke]=Go,rr[nt]=qs,rr[gt]=Oa,rr[Nt]=Vs,rr[it]=_n,rr[Ye]=wo,rr[kt]=Xn,rr[Tt]=$n,rr[St]=qn,rr[Rt]=Ja,rr[Zt]=eo,rr[Et]=es,Ae.state=Na,Ae.x=tn,Ae.y=Pa,Ae.z=to,Ae.w=yo,Ae.buffer=Jo,Ae.size=Ao,Ae.normalized=Dn,Ae.type=_a,Ae.offset=Ws,Ae.stride=Ca,Ae.divisor=Es,at.state=Ts,at.x=Ho,at.y=Wa,at.z=To,at.w=ts,at.buffer=Wo,at.size=qa,at.normalized=ln,at.type=Bo,at.offset=ko,at.stride=oo,at.divisor=za,rs&&pe.destroyStream(Ma),wt.state=xs,wt.x=ks,wt.y=Ea,wt.z=Jn,wt.w=Oo,wt.buffer=rl,wt.size=Gs,wt.normalized=bs,wt.type=zs,wt.offset=$o,wt.stride=Aa,wt.divisor=os,Ss&&pe.destroyStream(io),vt.state=Hs,vt.x=Ro,vt.y=tl,vt.z=Fs,vt.w=hl,vt.buffer=Fa,vt.size=Ms,vt.normalized=jo,vt.type=Rs,vt.offset=Is,vt.stride=Bs,vt.divisor=At,wr&&pe.destroyStream(Ji),st.state=ta,st.x=ya,st.y=ia,st.z=pa,st.w=va,st.buffer=zn,st.size=is,st.normalized=Cs,st.type=Ks,st.offset=dl,st.stride=xl,st.divisor=Bl,eu&&pe.destroyStream(cs),Ue.state=Al,Ue.x=Ll,Ue.y=ms,Ue.z=Os,Ue.w=Xl,Ue.buffer=Vl,Ue.size=Nl,Ue.normalized=le,Ue.type=w,Ue.offset=q,Ue.stride=Q,Ue.divisor=ee,Ge&&pe.destroyStream(kr),rt.state=tt,rt.x=pt,rt.y=Ht,rt.z=nr,rt.w=fr,rt.buffer=Ar,rt.size=Rr,rt.normalized=ri,rt.type=si,rt.offset=Mi,rt.stride=hn,rt.divisor=Zn,Ua&&pe.destroyStream(Sl),$e.state=Wu,$e.x=Qu,$e.y=Ju,$e.z=ju,$e.w=Xu,$e.buffer=lf,$e.size=xf,$e.normalized=ef,$e.type=tf,$e.offset=Z,$e.stride=se,$e.divisor=ze,dt.vert=Xe,dt.frag=Qe,ct.dirty=!0},batch:function(Zr,Ai){var Qi,ni,Zi,aa,Mn,Un,Ga;if(Qi=Dr.angle_instanced_arrays,ni=Hr.next,ni!==Hr.cur&&(ni?xe.bindFramebuffer(36160,ni.framebuffer):xe.bindFramebuffer(36160,null),Hr.cur=ni),ct.dirty){var ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo;ma=De.dither,ma!==ct.dither&&(ma?xe.enable(3024):xe.disable(3024),ct.dither=ma),oa=De.depth_func,oa!==ct.depth_func&&(xe.depthFunc(oa),ct.depth_func=oa),ka=wi[0],so=wi[1],(ka!==Gi[0]||so!==Gi[1])&&(xe.depthRange(ka,so),Gi[0]=ka,Gi[1]=so),Kr=De.depth_mask,Kr!==ct.depth_mask&&(xe.depthMask(Kr),ct.depth_mask=Kr),Ia=Bt[0],Yo=Bt[1],fa=Bt[2],kn=Bt[3],(Ia!==yt[0]||Yo!==yt[1]||fa!==yt[2]||kn!==yt[3])&&(xe.colorMask(Ia,Yo,fa,kn),yt[0]=Ia,yt[1]=Yo,yt[2]=fa,yt[3]=kn),Ta=De.frontFace,Ta!==ct.frontFace&&(xe.frontFace(Ta),ct.frontFace=Ta),ys=De.lineWidth,ys!==ct.lineWidth&&(xe.lineWidth(ys),ct.lineWidth=ys),uo=De.polygonOffset_enable,uo!==ct.polygonOffset_enable&&(uo?xe.enable(32823):xe.disable(32823),ct.polygonOffset_enable=uo),ls=Vt[0],$a=Vt[1],(ls!==Wt[0]||$a!==Wt[1])&&(xe.polygonOffset(ls,$a),Wt[0]=ls,Wt[1]=$a),fo=De.sample_alpha,fo!==ct.sample_alpha&&(fo?xe.enable(32926):xe.disable(32926),ct.sample_alpha=fo),mn=De.sample_enable,mn!==ct.sample_enable&&(mn?xe.enable(32928):xe.disable(32928),ct.sample_enable=mn),ra=_r[0],wa=_r[1],(ra!==Lr[0]||wa!==Lr[1])&&(xe.sampleCoverage(ra,wa),Lr[0]=ra,Lr[1]=wa),ws=De.stencil_mask,ws!==ct.stencil_mask&&(xe.stencilMask(ws),ct.stencil_mask=ws),Co=Ur[0],Po=Ur[1],ji=Ur[2],(Co!==Ir[0]||Po!==Ir[1]||ji!==Ir[2])&&(xe.stencilFunc(Co,Po,ji),Ir[0]=Co,Ir[1]=Po,Ir[2]=ji),gn=Gr[0],Ps=Gr[1],Ha=Gr[2],Sn=Gr[3],(gn!==jr[0]||Ps!==jr[1]||Ha!==jr[2]||Sn!==jr[3])&&(xe.stencilOpSeparate(gn,Ps,Ha,Sn),jr[0]=gn,jr[1]=Ps,jr[2]=Ha,jr[3]=Sn),ao=yi[0],Ba=yi[1],Ko=yi[2],Qo=yi[3],(ao!==Ei[0]||Ba!==Ei[1]||Ko!==Ei[2]||Qo!==Ei[3])&&(xe.stencilOpSeparate(ao,Ba,Ko,Qo),Ei[0]=ao,Ei[1]=Ba,Ei[2]=Ko,Ei[3]=Qo)}xe.blendColor(0,0,0,0),Di[0]=0,Di[1]=0,Di[2]=0,Di[3]=0,hr?xe.enable(3042):xe.disable(3042),ct.blend_enable=hr,xe.blendEquationSeparate(32774,32774),Ci[0]=32774,Ci[1]=32774,xe.blendFuncSeparate(770,771,773,1),ii[0]=770,ii[1]=771,ii[2]=773,ii[3]=1,yr?xe.enable(2884):xe.disable(2884),ct.cull_enable=yr,xe.cullFace(br),ct.cull_face=br,Ut?xe.enable(3089):xe.disable(3089),ct.scissor_enable=Ut,Ie?xe.enable(2960):xe.disable(2960),ct.stencil_enable=Ie,Zi=ct.profile,Zi&&(aa=performance.now(),r.count+=Ai),xe.useProgram(l.program),Mn=Dr.angle_instanced_arrays;var Wi,Sa,Qa,vn,da;for(Pt.setVAO(null),Wi=_.location,Sa=It[Wi],Sa.buffer||xe.enableVertexAttribArray(Wi),(Sa.type!==5126||Sa.size!==1||Sa.buffer!==p||Sa.normalized!==!1||Sa.offset!==0||Sa.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Wi,1,5126,!1,8,0),Sa.type=5126,Sa.size=1,Sa.buffer=p,Sa.normalized=!1,Sa.offset=0,Sa.stride=8),Sa.divisor!==0&&(Mn.vertexAttribDivisorANGLE(Wi,0),Sa.divisor=0),Qa=b.location,vn=It[Qa],vn.buffer||xe.enableVertexAttribArray(Qa),(vn.type!==5126||vn.size!==1||vn.buffer!==p||vn.normalized!==!1||vn.offset!==4||vn.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Qa,1,5126,!1,8,4),vn.type=5126,vn.size=1,vn.buffer=p,vn.normalized=!1,vn.offset=4,vn.stride=8),vn.divisor!==0&&(Mn.vertexAttribDivisorANGLE(Qa,0),vn.divisor=0),da=ge.elements,da?xe.bindBuffer(34963,da.buffer.buffer):Pt.currentVAO&&(da=fe.getElements(Pt.currentVAO.elements),da&&xe.bindBuffer(34963,da.buffer.buffer)),Un=0;Un0?xi.constant[0]:0,Vn=xi.constant.length>1?xi.constant[1]:0,wo=xi.constant.length>2?xi.constant[2]:0,Ra=xi.constant.length>3?xi.constant[3]:0)):(Fr(xi.buffer)?Xn=pe.createStream(34962,xi.buffer):Xn=pe.getBuffer(xi.buffer),Ka="type"in xi?Ri[xi.type]:Xn.dtype,$n=!!xi.normalized,un=xi.size|0,qn=xi.offset|0,Eo=xi.stride|0,Ja=xi.divisor|0)),lo=f.location,eo=It[lo],Ya===1?(eo.buffer||xe.enableVertexAttribArray(lo),sa=un||4,(eo.type!==Ka||eo.size!==sa||eo.buffer!==Xn||eo.normalized!==$n||eo.offset!==qn||eo.stride!==Eo)&&(xe.bindBuffer(34962,Xn.buffer),xe.vertexAttribPointer(lo,sa,Ka,$n,Eo,qn),eo.type=Ka,eo.size=sa,eo.buffer=Xn,eo.normalized=$n,eo.offset=qn,eo.stride=Eo),eo.divisor!==Ja&&(Mn.vertexAttribDivisorANGLE(lo,Ja),eo.divisor=Ja)):(eo.buffer&&(xe.disableVertexAttribArray(lo),eo.buffer=null),(eo.x!==_n||eo.y!==Vn||eo.z!==wo||eo.w!==Ra)&&(xe.vertexAttrib4f(lo,_n,Vn,wo,Ra),eo.x=_n,eo.y=Vn,eo.z=wo,eo.w=Ra)),es=Ga.positionBuffer,tr.buffer=es,Na=!1,tn=1,Pa=0,to=0,yo=0,Jo=0,Ao=null,Dn=0,_a=!1,Ws=5126,Ca=0,Es=0,Ts=0,Fr(tr)?(Na=!0,Ao=pe.createStream(34962,tr),Ws=Ao.dtype):(Ao=pe.getBuffer(tr),Ao?Ws=Ao.dtype:"constant"in tr?(tn=2,typeof tr.constant=="number"?(Pa=tr.constant,to=yo=Jo=0):(Pa=tr.constant.length>0?tr.constant[0]:0,to=tr.constant.length>1?tr.constant[1]:0,yo=tr.constant.length>2?tr.constant[2]:0,Jo=tr.constant.length>3?tr.constant[3]:0)):(Fr(tr.buffer)?Ao=pe.createStream(34962,tr.buffer):Ao=pe.getBuffer(tr.buffer),Ws="type"in tr?Ri[tr.type]:Ao.dtype,_a=!!tr.normalized,Dn=tr.size|0,Ca=tr.offset|0,Es=tr.stride|0,Ts=tr.divisor|0)),Ho=c.location,Wa=It[Ho],tn===1?(Wa.buffer||xe.enableVertexAttribArray(Ho),To=Dn||2,(Wa.type!==Ws||Wa.size!==To||Wa.buffer!==Ao||Wa.normalized!==_a||Wa.offset!==Ca||Wa.stride!==Es)&&(xe.bindBuffer(34962,Ao.buffer),xe.vertexAttribPointer(Ho,To,Ws,_a,Es,Ca),Wa.type=Ws,Wa.size=To,Wa.buffer=Ao,Wa.normalized=_a,Wa.offset=Ca,Wa.stride=Es),Wa.divisor!==Ts&&(Mn.vertexAttribDivisorANGLE(Ho,Ts),Wa.divisor=Ts)):(Wa.buffer&&(xe.disableVertexAttribArray(Ho),Wa.buffer=null),(Wa.x!==Pa||Wa.y!==to||Wa.z!==yo||Wa.w!==Jo)&&(xe.vertexAttrib4f(Ho,Pa,to,yo,Jo),Wa.x=Pa,Wa.y=to,Wa.z=yo,Wa.w=Jo)),ts=Ga.colorBuffer,Xr.buffer=ts,Wo=!1,qa=1,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,Fr(Xr)?(Wo=!0,za=pe.createStream(34962,Xr),$s=za.dtype):(za=pe.getBuffer(Xr),za?$s=za.dtype:"constant"in Xr?(qa=2,typeof Xr.constant=="number"?(ln=Xr.constant,Bo=ko=oo=0):(ln=Xr.constant.length>0?Xr.constant[0]:0,Bo=Xr.constant.length>1?Xr.constant[1]:0,ko=Xr.constant.length>2?Xr.constant[2]:0,oo=Xr.constant.length>3?Xr.constant[3]:0)):(Fr(Xr.buffer)?za=pe.createStream(34962,Xr.buffer):za=pe.getBuffer(Xr.buffer),$s="type"in Xr?Ri[Xr.type]:za.dtype,rs=!!Xr.normalized,ea=Xr.size|0,us=Xr.offset|0,Ds=Xr.stride|0,fl=Xr.divisor|0)),as=h.location,Ma=It[as],qa===1?(Ma.buffer||xe.enableVertexAttribArray(as),Qs=ea||4,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Ds)&&(xe.bindBuffer(34962,za.buffer),xe.vertexAttribPointer(as,Qs,$s,rs,Ds,us),Ma.type=$s,Ma.size=Qs,Ma.buffer=za,Ma.normalized=rs,Ma.offset=us,Ma.stride=Ds),Ma.divisor!==fl&&(Mn.vertexAttribDivisorANGLE(as,fl),Ma.divisor=fl)):(Ma.buffer&&(xe.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==ln||Ma.y!==Bo||Ma.z!==ko||Ma.w!==oo)&&(xe.vertexAttrib4f(as,ln,Bo,ko,oo),Ma.x=ln,Ma.y=Bo,Ma.z=ko,Ma.w=oo)),ho=Ga.positionBuffer,pr.buffer=ho,gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Fr(pr)?(gs=!0,Ea=pe.createStream(34962,pr),rl=Ea.dtype):(Ea=pe.getBuffer(pr),Ea?rl=Ea.dtype:"constant"in pr?(Vo=2,typeof pr.constant=="number"?(Do=pr.constant,Lo=xs=ks=0):(Do=pr.constant.length>0?pr.constant[0]:0,Lo=pr.constant.length>1?pr.constant[1]:0,xs=pr.constant.length>2?pr.constant[2]:0,ks=pr.constant.length>3?pr.constant[3]:0)):(Fr(pr.buffer)?Ea=pe.createStream(34962,pr.buffer):Ea=pe.getBuffer(pr.buffer),rl="type"in pr?Ri[pr.type]:Ea.dtype,Oo=!!pr.normalized,Jn=pr.size|0,Gs=pr.offset|0,bs=pr.stride|0,zs=pr.divisor|0)),$o=d.location,Aa=It[$o],Vo===1?(Aa.buffer||xe.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Oo||Aa.offset!==Gs||Aa.stride!==bs)&&(xe.bindBuffer(34962,Ea.buffer),xe.vertexAttribPointer($o,os,rl,Oo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Oo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Mn.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(xe.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Do||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(xe.vertexAttrib4f($o,Do,Lo,xs,ks),Aa.x=Do,Aa.y=Lo,Aa.z=xs,Aa.w=ks)),_l=Ga.positionBuffer,gr.buffer=_l,Ss=!1,po=1,go=0,ss=0,qo=0,zo=0,io=null,Io=0,Da=!1,vs=5126,fs=0,cl=0,el=0,Fr(gr)?(Ss=!0,io=pe.createStream(34962,gr),vs=io.dtype):(io=pe.getBuffer(gr),io?vs=io.dtype:"constant"in gr?(po=2,typeof gr.constant=="number"?(go=gr.constant,ss=qo=zo=0):(go=gr.constant.length>0?gr.constant[0]:0,ss=gr.constant.length>1?gr.constant[1]:0,qo=gr.constant.length>2?gr.constant[2]:0,zo=gr.constant.length>3?gr.constant[3]:0)):(Fr(gr.buffer)?io=pe.createStream(34962,gr.buffer):io=pe.getBuffer(gr.buffer),vs="type"in gr?Ri[gr.type]:io.dtype,Da=!!gr.normalized,Io=gr.size|0,fs=gr.offset|0,cl=gr.stride|0,el=gr.divisor|0)),Hs=v.location,Ro=It[Hs],po===1?(Ro.buffer||xe.enableVertexAttribArray(Hs),tl=Io||2,(Ro.type!==vs||Ro.size!==tl||Ro.buffer!==io||Ro.normalized!==Da||Ro.offset!==fs||Ro.stride!==cl)&&(xe.bindBuffer(34962,io.buffer),xe.vertexAttribPointer(Hs,tl,vs,Da,cl,fs),Ro.type=vs,Ro.size=tl,Ro.buffer=io,Ro.normalized=Da,Ro.offset=fs,Ro.stride=cl),Ro.divisor!==el&&(Mn.vertexAttribDivisorANGLE(Hs,el),Ro.divisor=el)):(Ro.buffer&&(xe.disableVertexAttribArray(Hs),Ro.buffer=null),(Ro.x!==go||Ro.y!==ss||Ro.z!==qo||Ro.w!==zo)&&(xe.vertexAttrib4f(Hs,go,ss,qo,zo),Ro.x=go,Ro.y=ss,Ro.z=qo,Ro.w=zo)),Fs=Ga.positionBuffer,ft.buffer=Fs,hl=!1,Fa=1,Ms=0,jo=0,Rs=0,Is=0,Bs=null,At=0,Gt=!1,wr=5126,mr=0,Or=0,gi=0,Fr(ft)?(hl=!0,Bs=pe.createStream(34962,ft),wr=Bs.dtype):(Bs=pe.getBuffer(ft),Bs?wr=Bs.dtype:"constant"in ft?(Fa=2,typeof ft.constant=="number"?(Ms=ft.constant,jo=Rs=Is=0):(Ms=ft.constant.length>0?ft.constant[0]:0,jo=ft.constant.length>1?ft.constant[1]:0,Rs=ft.constant.length>2?ft.constant[2]:0,Is=ft.constant.length>3?ft.constant[3]:0)):(Fr(ft.buffer)?Bs=pe.createStream(34962,ft.buffer):Bs=pe.getBuffer(ft.buffer),wr="type"in ft?Ri[ft.type]:Bs.dtype,Gt=!!ft.normalized,At=ft.size|0,mr=ft.offset|0,Or=ft.stride|0,gi=ft.divisor|0)),Ti=k.location,ki=It[Ti],Fa===1?(ki.buffer||xe.enableVertexAttribArray(Ti),Ji=At||2,(ki.type!==wr||ki.size!==Ji||ki.buffer!==Bs||ki.normalized!==Gt||ki.offset!==mr||ki.stride!==Or)&&(xe.bindBuffer(34962,Bs.buffer),xe.vertexAttribPointer(Ti,Ji,wr,Gt,Or,mr),ki.type=wr,ki.size=Ji,ki.buffer=Bs,ki.normalized=Gt,ki.offset=mr,ki.stride=Or),ki.divisor!==gi&&(Mn.vertexAttribDivisorANGLE(Ti,gi),ki.divisor=gi)):(ki.buffer&&(xe.disableVertexAttribArray(Ti),ki.buffer=null),(ki.x!==Ms||ki.y!==jo||ki.z!==Rs||ki.w!==Is)&&(xe.vertexAttrib4f(Ti,Ms,jo,Rs,Is),ki.x=Ms,ki.y=jo,ki.z=Rs,ki.w=Is)),Fn=Ga.dashLength,(!Un||Pi!==Fn)&&(Pi=Fn,xe.uniform1f(E.location,Fn)),hi=Ga.dashTexture,hi&&hi._reglType==="framebuffer"&&(hi=hi.color[0]),Li=hi._texture,xe.uniform1i(T.location,Li.bind()),Si=Ga.depth,(!Un||Gn!==Si)&&(Gn=Si,xe.uniform1f(L.location,Si)),ta=Ga.miterLimit,(!Un||ya!==ta)&&(ya=ta,xe.uniform1f(x.location,ta)),ia=M.call(this,Oe,Ga,Un),(!Un||pa!==ia)&&(pa=ia,xe.uniform1f(C.location,ia)),va=Ga.opacity,(!Un||zn!==va)&&(zn=va,xe.uniform1f(m.location,va)),is=Ga.scale,Cs=is[0],dl=is[1],(!Un||Ks!==Cs||xl!==dl)&&(Ks=Cs,xl=dl,xe.uniform2f(P.location,Cs,dl)),Bl=Ga.thickness,(!Un||bl!==Bl)&&(bl=Bl,xe.uniform1f(A.location,Bl)),eu=Ga.translate,Zl=eu[0],ja=eu[1],(!Un||Ul!==Zl||ns!==ja)&&(Ul=Zl,ns=ja,xe.uniform2f(B.location,Zl,ja)),Js=U.call(this,Oe,Ga,Un),cs=Js[0],ll=Js[1],zl=Js[2],Rl=Js[3],(!Un||sl!==cs||il!==ll||Ml!==zl||Al!==Rl)&&(sl=cs,il=ll,Ml=zl,Al=Rl,xe.uniform4f(F.location,cs,ll,zl,Rl)),Ll=Ga.count,Ll>0?da?Mn.drawElementsInstancedANGLE(5,4,da.type,0<<(da.type-5121>>1),Ll):Mn.drawArraysInstancedANGLE(5,0,4,Ll):Ll<0&&(da?xe.drawElements(5,4,da.type,0<<(da.type-5121>>1)):xe.drawArrays(5,0,4)),Oe.viewportWidth=mo,Oe.viewportHeight=No,Vs&&pe.destroyStream(Xn),Na&&pe.destroyStream(Ao),Wo&&pe.destroyStream(za),gs&&pe.destroyStream(Ea),Ss&&pe.destroyStream(io),hl&&pe.destroyStream(Bs),Li.unbind()}ct.dirty=!0,Pt.setVAO(null),Zi&&(r.cpuTime+=performance.now()-aa)}}}});var C8=Te((Z_r,ONe)=>{ONe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ke){"use strict";var nt,gt,Nt,it,Ye,kt,Tt,St,Rt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi;return nt=t.gl,gt=t.context,Nt=t.strings,it=t.next,Ye=t.current,kt=t.draw,Tt=t.elements,St=t.buffer,Rt=t.shader,Zt=t.attributes,Et=t.vao,Ae=t.uniforms,at=t.framebuffer,wt=t.extensions,vt=t.timer,st=t.isBufferArgs,Ue=it.blend_color,rt=Ye.blend_color,$e=it.blend_equation,zt=Ye.blend_equation,Yt=it.blend_func,hr=Ye.blend_func,yr=it.depth_range,br=Ye.depth_range,Ut=it.colorMask,Ie=Ye.colorMask,xe=it.polygonOffset_offset,Oe=Ye.polygonOffset_offset,Re=it.sample_coverage,De=Ye.sample_coverage,ct=it.stencil_func,ge=Ye.stencil_func,fe=it.stencil_opFront,pe=Ye.stencil_opFront,dt=it.stencil_opBack,It=Ye.stencil_opBack,Pt=it.scissor_box,rr=Ye.scissor_box,Hr=it.viewport,Dr=Ye.viewport,Mr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Fr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},di={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Di={add:32774,subtract:32778,"reverse subtract":32779},Ii={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ci={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},nn={cw:2304,ccw:2305},ii={},ii.stride=8,ii.offset=8,wi={},wi.stride=8,wi.offset=8,{draw:function(Gi){var Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo;if(Bt=wt.angle_instanced_arrays,yt=at.next,yt!==at.cur&&(yt?nt.bindFramebuffer(36160,yt.framebuffer):nt.bindFramebuffer(36160,null),at.cur=yt),Ye.dirty){var As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa;As=it.dither,As!==Ye.dither&&(As?nt.enable(3024):nt.disable(3024),Ye.dither=As),ps=it.depth_func,ps!==Ye.depth_func&&(nt.depthFunc(ps),Ye.depth_func=ps),co=yr[0],mo=yr[1],(co!==br[0]||mo!==br[1])&&(nt.depthRange(co,mo),br[0]=co,br[1]=mo),No=it.depth_mask,No!==Ye.depth_mask&&(nt.depthMask(No),Ye.depth_mask=No),jn=Ut[0],Go=Ut[1],Ys=Ut[2],qs=Ut[3],(jn!==Ie[0]||Go!==Ie[1]||Ys!==Ie[2]||qs!==Ie[3])&&(nt.colorMask(jn,Go,Ys,qs),Ie[0]=jn,Ie[1]=Go,Ie[2]=Ys,Ie[3]=qs),Ns=it.cull_enable,Ns!==Ye.cull_enable&&(Ns?nt.enable(2884):nt.disable(2884),Ye.cull_enable=Ns),Oa=it.cull_face,Oa!==Ye.cull_face&&(nt.cullFace(Oa),Ye.cull_face=Oa),ha=it.frontFace,ha!==Ye.frontFace&&(nt.frontFace(ha),Ye.frontFace=ha),Vs=it.lineWidth,Vs!==Ye.lineWidth&&(nt.lineWidth(Vs),Ye.lineWidth=Vs),Ya=it.polygonOffset_enable,Ya!==Ye.polygonOffset_enable&&(Ya?nt.enable(32823):nt.disable(32823),Ye.polygonOffset_enable=Ya),_n=xe[0],Vn=xe[1],(_n!==Oe[0]||Vn!==Oe[1])&&(nt.polygonOffset(_n,Vn),Oe[0]=_n,Oe[1]=Vn),wo=it.sample_alpha,wo!==Ye.sample_alpha&&(wo?nt.enable(32926):nt.disable(32926),Ye.sample_alpha=wo),Ra=it.sample_enable,Ra!==Ye.sample_enable&&(Ra?nt.enable(32928):nt.disable(32928),Ye.sample_enable=Ra),Xn=Re[0],un=Re[1],(Xn!==De[0]||un!==De[1])&&(nt.sampleCoverage(Xn,un),De[0]=Xn,De[1]=un),$n=it.stencil_mask,$n!==Ye.stencil_mask&&(nt.stencilMask($n),Ye.stencil_mask=$n),Ka=ct[0],qn=ct[1],Eo=ct[2],(Ka!==ge[0]||qn!==ge[1]||Eo!==ge[2])&&(nt.stencilFunc(Ka,qn,Eo),ge[0]=Ka,ge[1]=qn,ge[2]=Eo),Ja=fe[0],lo=fe[1],eo=fe[2],sa=fe[3],(Ja!==pe[0]||lo!==pe[1]||eo!==pe[2]||sa!==pe[3])&&(nt.stencilOpSeparate(Ja,lo,eo,sa),pe[0]=Ja,pe[1]=lo,pe[2]=eo,pe[3]=sa),es=dt[0],Na=dt[1],tn=dt[2],Pa=dt[3],(es!==It[0]||Na!==It[1]||tn!==It[2]||Pa!==It[3])&&(nt.stencilOpSeparate(es,Na,tn,Pa),It[0]=es,It[1]=Na,It[2]=tn,It[3]=Pa)}Vt=Gi.viewport,Wt=Vt.x|0,_r=Vt.y|0,Lr="width"in Vt?Vt.width|0:gt.framebufferWidth-Wt,Ur="height"in Vt?Vt.height|0:gt.framebufferHeight-_r,Ir=gt.viewportWidth,gt.viewportWidth=Lr,Gr=gt.viewportHeight,gt.viewportHeight=Ur,nt.viewport(Wt,_r,Lr,Ur),Dr[0]=Wt,Dr[1]=_r,Dr[2]=Lr,Dr[3]=Ur,nt.blendColor(0,0,0,0),rt[0]=0,rt[1]=0,rt[2]=0,rt[3]=0,n?nt.enable(3042):nt.disable(3042),Ye.blend_enable=n,nt.blendEquationSeparate(32774,32774),zt[0]=32774,zt[1]=32774,nt.blendFuncSeparate(770,771,773,1),hr[0]=770,hr[1]=771,hr[2]=773,hr[3]=1,i?nt.enable(2929):nt.disable(2929),Ye.depth_enable=i,jr=Gi.viewport,yi=jr.x|0,Ei=jr.y|0,Vi="width"in jr?jr.width|0:gt.framebufferWidth-yi,ti="height"in jr?jr.height|0:gt.framebufferHeight-Ei,nt.scissor(yi,Ei,Vi,ti),rr[0]=yi,rr[1]=Ei,rr[2]=Vi,rr[3]=ti,a?nt.enable(3089):nt.disable(3089),Ye.scissor_enable=a,o?nt.enable(2960):nt.disable(2960),Ye.stencil_enable=o,en=Ye.profile,en&&(Yr=performance.now(),r.count++),nt.useProgram(s.program),oi=wt.angle_instanced_arrays,Et.setVAO(null),Bi=Gi.positionBuffer,ii.buffer=Bi,an=!1,rn=1,Fi=0,Ri=0,xn=0,xi=0,Xr=null,ft=0,tr=!1,pr=5126,gr=0,Zr=0,Ai=0,st(ii)?(an=!0,Xr=St.createStream(34962,ii),pr=Xr.dtype):(Xr=St.getBuffer(ii),Xr?pr=Xr.dtype:"constant"in ii?(rn=2,typeof ii.constant=="number"?(Fi=ii.constant,Ri=xn=xi=0):(Fi=ii.constant.length>0?ii.constant[0]:0,Ri=ii.constant.length>1?ii.constant[1]:0,xn=ii.constant.length>2?ii.constant[2]:0,xi=ii.constant.length>3?ii.constant[3]:0)):(st(ii.buffer)?Xr=St.createStream(34962,ii.buffer):Xr=St.getBuffer(ii.buffer),pr="type"in ii?Ci[ii.type]:Xr.dtype,tr=!!ii.normalized,ft=ii.size|0,gr=ii.offset|0,Zr=ii.stride|0,Ai=ii.divisor|0)),Qi=u.location,ni=Zt[Qi],rn===1?(ni.buffer||nt.enableVertexAttribArray(Qi),Zi=ft||2,(ni.type!==pr||ni.size!==Zi||ni.buffer!==Xr||ni.normalized!==tr||ni.offset!==gr||ni.stride!==Zr)&&(nt.bindBuffer(34962,Xr.buffer),nt.vertexAttribPointer(Qi,Zi,pr,tr,Zr,gr),ni.type=pr,ni.size=Zi,ni.buffer=Xr,ni.normalized=tr,ni.offset=gr,ni.stride=Zr),ni.divisor!==Ai&&(oi.vertexAttribDivisorANGLE(Qi,Ai),ni.divisor=Ai)):(ni.buffer&&(nt.disableVertexAttribArray(Qi),ni.buffer=null),(ni.x!==Fi||ni.y!==Ri||ni.z!==xn||ni.w!==xi)&&(nt.vertexAttrib4f(Qi,Fi,Ri,xn,xi),ni.x=Fi,ni.y=Ri,ni.z=xn,ni.w=xi)),aa=Gi.positionFractBuffer,wi.buffer=aa,Mn=!1,Un=1,Ga=0,ma=0,oa=0,ka=0,so=null,Kr=0,Ia=!1,Yo=5126,fa=0,kn=0,Ta=0,st(wi)?(Mn=!0,so=St.createStream(34962,wi),Yo=so.dtype):(so=St.getBuffer(wi),so?Yo=so.dtype:"constant"in wi?(Un=2,typeof wi.constant=="number"?(Ga=wi.constant,ma=oa=ka=0):(Ga=wi.constant.length>0?wi.constant[0]:0,ma=wi.constant.length>1?wi.constant[1]:0,oa=wi.constant.length>2?wi.constant[2]:0,ka=wi.constant.length>3?wi.constant[3]:0)):(st(wi.buffer)?so=St.createStream(34962,wi.buffer):so=St.getBuffer(wi.buffer),Yo="type"in wi?Ci[wi.type]:so.dtype,Ia=!!wi.normalized,Kr=wi.size|0,fa=wi.offset|0,kn=wi.stride|0,Ta=wi.divisor|0)),ys=l.location,uo=Zt[ys],Un===1?(uo.buffer||nt.enableVertexAttribArray(ys),ls=Kr||2,(uo.type!==Yo||uo.size!==ls||uo.buffer!==so||uo.normalized!==Ia||uo.offset!==fa||uo.stride!==kn)&&(nt.bindBuffer(34962,so.buffer),nt.vertexAttribPointer(ys,ls,Yo,Ia,kn,fa),uo.type=Yo,uo.size=ls,uo.buffer=so,uo.normalized=Ia,uo.offset=fa,uo.stride=kn),uo.divisor!==Ta&&(oi.vertexAttribDivisorANGLE(ys,Ta),uo.divisor=Ta)):(uo.buffer&&(nt.disableVertexAttribArray(ys),uo.buffer=null),(uo.x!==Ga||uo.y!==ma||uo.z!==oa||uo.w!==ka)&&(nt.vertexAttrib4f(ys,Ga,ma,oa,ka),uo.x=Ga,uo.y=ma,uo.z=oa,uo.w=ka)),$a=Gi.fill,fo=$a[0],mn=$a[1],ra=$a[2],wa=$a[3],nt.uniform4f(f.location,fo,mn,ra,wa),ws=Gi.id,nt.uniform1f(c.location,ws),Co=Gi.opacity,nt.uniform1f(h.location,Co),Po=Gi.scale,ji=Po[0],gn=Po[1],nt.uniform2f(d.location,ji,gn),Ps=Gi.scaleFract,Ha=Ps[0],Sn=Ps[1],nt.uniform2f(p.location,Ha,Sn),ao=Gi.translate,Ba=ao[0],Ko=ao[1],nt.uniform2f(_.location,Ba,Ko),Qo=Gi.translateFract,Wi=Qo[0],Sa=Qo[1],nt.uniform2f(b.location,Wi,Sa),Qa=v.call(this,gt,Gi,0),vn=null,da=st(Qa),da?vn=Tt.createStream(Qa):vn=Tt.getElements(Qa),vn&&nt.bindBuffer(34963,vn.buffer.buffer),la=vn?vn.vertCount:-1,la&&(vo=kt.instances,vo>0?vn?oi.drawElementsInstancedANGLE(4,la,vn.type,0<<(vn.type-5121>>1),vo):oi.drawArraysInstancedANGLE(4,0,la,vo):vo<0&&(vn?nt.drawElements(4,la,vn.type,0<<(vn.type-5121>>1)):nt.drawArrays(4,0,la)),Ye.dirty=!0,Et.setVAO(null),gt.viewportWidth=Ir,gt.viewportHeight=Gr,en&&(r.cpuTime+=performance.now()-Yr),an&&St.destroyStream(Xr),Mn&&St.destroyStream(so),da&&Tt.destroyStream(vn))},scope:function(Gi,Bt,yt){var Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho;Vt=Gi.viewport,Wt=Vt.x|0,_r=Vt.y|0,Lr="width"in Vt?Vt.width|0:gt.framebufferWidth-Wt,Ur="height"in Vt?Vt.height|0:gt.framebufferHeight-_r,Ir=gt.viewportWidth,gt.viewportWidth=Lr,Gr=gt.viewportHeight,gt.viewportHeight=Ur,jr=Hr[0],Hr[0]=Wt,yi=Hr[1],Hr[1]=_r,Ei=Hr[2],Hr[2]=Lr,Vi=Hr[3],Hr[3]=Ur,ti=Ue[0],Ue[0]=k,en=Ue[1],Ue[1]=E,Yr=Ue[2],Ue[2]=T,oi=Ue[3],Ue[3]=L,Bi=it.blend_enable,it.blend_enable=x,an=$e[0],$e[0]=C,rn=$e[1],$e[1]=M,Fi=Yt[0],Yt[0]=m,Ri=Yt[1],Yt[1]=P,xn=Yt[2],Yt[2]=A,xi=Yt[3],Yt[3]=B,Xr=it.depth_enable,it.depth_enable=F,ft=Gi.viewport,tr=ft.x|0,pr=ft.y|0,gr="width"in ft?ft.width|0:gt.framebufferWidth-tr,Zr="height"in ft?ft.height|0:gt.framebufferHeight-pr,Ai=Pt[0],Pt[0]=tr,Qi=Pt[1],Pt[1]=pr,ni=Pt[2],Pt[2]=gr,Zi=Pt[3],Pt[3]=Zr,aa=it.scissor_enable,it.scissor_enable=U,Mn=it.stencil_enable,it.stencil_enable=G,Un=Ye.profile,Un&&(Ga=performance.now(),r.count++),ma=v.call(this,gt,Gi,yt),oa=null,ka=st(ma),ka?oa=Tt.createStream(ma):oa=Tt.getElements(ma),so=kt.elements,kt.elements=oa,Kr=kt.offset,kt.offset=j,Ia=oa?oa.vertCount:-1,Yo=kt.count,kt.count=Ia,fa=kt.primitive,kt.primitive=H,kn=Gi.scale,Ta=Ae[N],Ae[N]=kn,ys=Gi.fill,uo=Ae[W],Ae[W]=ys,ls=Gi.scaleFract,$a=Ae[re],Ae[re]=ls,fo=Gi.translateFract,mn=Ae[ae],Ae[ae]=fo,ra=Gi.translate,wa=Ae[be],Ae[be]=ra,ws=Gi.opacity,Co=Ae[Pe],Ae[Pe]=ws,Po=gt.pixelRatio,ji=Ae[Ce],Ae[Ce]=Po,gn=Gi.id,Ps=Ae[de],Ae[de]=gn,Ha=te.call(this,gt,Gi,yt),Sn=Ae[ke],Ae[ke]=Ha,ao=Gi.positionBuffer,ii.buffer=ao,Ba=!1,Ko=1,Qo=0,Wi=0,Sa=0,Qa=0,vn=null,da=0,la=!1,vo=5126,As=0,ps=0,co=0,st(ii)?(Ba=!0,vn=St.createStream(34962,ii),vo=vn.dtype):(vn=St.getBuffer(ii),vn?vo=vn.dtype:"constant"in ii?(Ko=2,typeof ii.constant=="number"?(Qo=ii.constant,Wi=Sa=Qa=0):(Qo=ii.constant.length>0?ii.constant[0]:0,Wi=ii.constant.length>1?ii.constant[1]:0,Sa=ii.constant.length>2?ii.constant[2]:0,Qa=ii.constant.length>3?ii.constant[3]:0)):(st(ii.buffer)?vn=St.createStream(34962,ii.buffer):vn=St.getBuffer(ii.buffer),vo="type"in ii?Ci[ii.type]:vn.dtype,la=!!ii.normalized,da=ii.size|0,As=ii.offset|0,ps=ii.stride|0,co=ii.divisor|0)),mo=Ee.state,Ee.state=Ko,No=Ee.x,Ee.x=Qo,jn=Ee.y,Ee.y=Wi,Go=Ee.z,Ee.z=Sa,Ys=Ee.w,Ee.w=Qa,qs=Ee.buffer,Ee.buffer=vn,Ns=Ee.size,Ee.size=da,Oa=Ee.normalized,Ee.normalized=la,ha=Ee.type,Ee.type=vo,Vs=Ee.offset,Ee.offset=As,Ya=Ee.stride,Ee.stride=ps,_n=Ee.divisor,Ee.divisor=co,Vn=Gi.positionFractBuffer,wi.buffer=Vn,wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,st(wi)?(wo=!0,qn=St.createStream(34962,wi),lo=qn.dtype):(qn=St.getBuffer(wi),qn?lo=qn.dtype:"constant"in wi?(Ra=2,typeof wi.constant=="number"?(Xn=wi.constant,un=$n=Ka=0):(Xn=wi.constant.length>0?wi.constant[0]:0,un=wi.constant.length>1?wi.constant[1]:0,$n=wi.constant.length>2?wi.constant[2]:0,Ka=wi.constant.length>3?wi.constant[3]:0)):(st(wi.buffer)?qn=St.createStream(34962,wi.buffer):qn=St.getBuffer(wi.buffer),lo="type"in wi?Ci[wi.type]:qn.dtype,Ja=!!wi.normalized,Eo=wi.size|0,eo=wi.offset|0,sa=wi.stride|0,es=wi.divisor|0)),Na=Me.state,Me.state=Ra,tn=Me.x,Me.x=Xn,Pa=Me.y,Me.y=un,to=Me.z,Me.z=$n,yo=Me.w,Me.w=Ka,Jo=Me.buffer,Me.buffer=qn,Ao=Me.size,Me.size=Eo,Dn=Me.normalized,Me.normalized=Ja,_a=Me.type,Me.type=lo,Ws=Me.offset,Me.offset=eo,Ca=Me.stride,Me.stride=sa,Es=Me.divisor,Me.divisor=es,Ts=Rt.vert,Rt.vert=Ne,Ho=Rt.frag,Rt.frag=Fe,Ye.dirty=!0,Bt(gt,Gi,yt),gt.viewportWidth=Ir,gt.viewportHeight=Gr,Hr[0]=jr,Hr[1]=yi,Hr[2]=Ei,Hr[3]=Vi,Ue[0]=ti,Ue[1]=en,Ue[2]=Yr,Ue[3]=oi,it.blend_enable=Bi,$e[0]=an,$e[1]=rn,Yt[0]=Fi,Yt[1]=Ri,Yt[2]=xn,Yt[3]=xi,it.depth_enable=Xr,Pt[0]=Ai,Pt[1]=Qi,Pt[2]=ni,Pt[3]=Zi,it.scissor_enable=aa,it.stencil_enable=Mn,Un&&(r.cpuTime+=performance.now()-Ga),ka&&Tt.destroyStream(oa),kt.elements=so,kt.offset=Kr,kt.count=Yo,kt.primitive=fa,Ae[N]=Ta,Ae[W]=uo,Ae[re]=$a,Ae[ae]=mn,Ae[be]=wa,Ae[Pe]=Co,Ae[Ce]=ji,Ae[de]=Ps,Ae[ke]=Sn,Ba&&St.destroyStream(vn),Ee.state=mo,Ee.x=No,Ee.y=jn,Ee.z=Go,Ee.w=Ys,Ee.buffer=qs,Ee.size=Ns,Ee.normalized=Oa,Ee.type=ha,Ee.offset=Vs,Ee.stride=Ya,Ee.divisor=_n,wo&&St.destroyStream(qn),Me.state=Na,Me.x=tn,Me.y=Pa,Me.z=to,Me.w=yo,Me.buffer=Jo,Me.size=Ao,Me.normalized=Dn,Me.type=_a,Me.offset=Ws,Me.stride=Ca,Me.divisor=Es,Rt.vert=Ts,Rt.frag=Ho,Ye.dirty=!0},batch:function(Gi,Bt){var yt,Vt,Wt,_r,Lr,Ur,Ir;if(yt=wt.angle_instanced_arrays,Vt=at.next,Vt!==at.cur&&(Vt?nt.bindFramebuffer(36160,Vt.framebuffer):nt.bindFramebuffer(36160,null),at.cur=Vt),Ye.dirty){var Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa;Gr=it.dither,Gr!==Ye.dither&&(Gr?nt.enable(3024):nt.disable(3024),Ye.dither=Gr),jr=it.depth_func,jr!==Ye.depth_func&&(nt.depthFunc(jr),Ye.depth_func=jr),yi=yr[0],Ei=yr[1],(yi!==br[0]||Ei!==br[1])&&(nt.depthRange(yi,Ei),br[0]=yi,br[1]=Ei),Vi=it.depth_mask,Vi!==Ye.depth_mask&&(nt.depthMask(Vi),Ye.depth_mask=Vi),ti=Ut[0],en=Ut[1],Yr=Ut[2],oi=Ut[3],(ti!==Ie[0]||en!==Ie[1]||Yr!==Ie[2]||oi!==Ie[3])&&(nt.colorMask(ti,en,Yr,oi),Ie[0]=ti,Ie[1]=en,Ie[2]=Yr,Ie[3]=oi),Bi=it.cull_enable,Bi!==Ye.cull_enable&&(Bi?nt.enable(2884):nt.disable(2884),Ye.cull_enable=Bi),an=it.cull_face,an!==Ye.cull_face&&(nt.cullFace(an),Ye.cull_face=an),rn=it.frontFace,rn!==Ye.frontFace&&(nt.frontFace(rn),Ye.frontFace=rn),Fi=it.lineWidth,Fi!==Ye.lineWidth&&(nt.lineWidth(Fi),Ye.lineWidth=Fi),Ri=it.polygonOffset_enable,Ri!==Ye.polygonOffset_enable&&(Ri?nt.enable(32823):nt.disable(32823),Ye.polygonOffset_enable=Ri),xn=xe[0],xi=xe[1],(xn!==Oe[0]||xi!==Oe[1])&&(nt.polygonOffset(xn,xi),Oe[0]=xn,Oe[1]=xi),Xr=it.sample_alpha,Xr!==Ye.sample_alpha&&(Xr?nt.enable(32926):nt.disable(32926),Ye.sample_alpha=Xr),ft=it.sample_enable,ft!==Ye.sample_enable&&(ft?nt.enable(32928):nt.disable(32928),Ye.sample_enable=ft),tr=Re[0],pr=Re[1],(tr!==De[0]||pr!==De[1])&&(nt.sampleCoverage(tr,pr),De[0]=tr,De[1]=pr),gr=it.stencil_mask,gr!==Ye.stencil_mask&&(nt.stencilMask(gr),Ye.stencil_mask=gr),Zr=ct[0],Ai=ct[1],Qi=ct[2],(Zr!==ge[0]||Ai!==ge[1]||Qi!==ge[2])&&(nt.stencilFunc(Zr,Ai,Qi),ge[0]=Zr,ge[1]=Ai,ge[2]=Qi),ni=fe[0],Zi=fe[1],aa=fe[2],Mn=fe[3],(ni!==pe[0]||Zi!==pe[1]||aa!==pe[2]||Mn!==pe[3])&&(nt.stencilOpSeparate(ni,Zi,aa,Mn),pe[0]=ni,pe[1]=Zi,pe[2]=aa,pe[3]=Mn),Un=dt[0],Ga=dt[1],ma=dt[2],oa=dt[3],(Un!==It[0]||Ga!==It[1]||ma!==It[2]||oa!==It[3])&&(nt.stencilOpSeparate(Un,Ga,ma,oa),It[0]=Un,It[1]=Ga,It[2]=ma,It[3]=oa)}nt.blendColor(0,0,0,0),rt[0]=0,rt[1]=0,rt[2]=0,rt[3]=0,ye?nt.enable(3042):nt.disable(3042),Ye.blend_enable=ye,nt.blendEquationSeparate(32774,32774),zt[0]=32774,zt[1]=32774,nt.blendFuncSeparate(770,771,773,1),hr[0]=770,hr[1]=771,hr[2]=773,hr[3]=1,Ve?nt.enable(2929):nt.disable(2929),Ye.depth_enable=Ve,ce?nt.enable(3089):nt.disable(3089),Ye.scissor_enable=ce,Ke?nt.enable(2960):nt.disable(2960),Ye.stencil_enable=Ke,Wt=Ye.profile,Wt&&(_r=performance.now(),r.count+=Bt),nt.useProgram(s.program),Lr=wt.angle_instanced_arrays;var ka;for(Et.setVAO(null),ka=kt.instances,Ur=0;Ur0?ii.constant[0]:0,Co=ii.constant.length>1?ii.constant[1]:0,Po=ii.constant.length>2?ii.constant[2]:0,ji=ii.constant.length>3?ii.constant[3]:0)):(st(ii.buffer)?gn=St.createStream(34962,ii.buffer):gn=St.getBuffer(ii.buffer),Sn="type"in ii?Ci[ii.type]:gn.dtype,Ha=!!ii.normalized,Ps=ii.size|0,ao=ii.offset|0,Ba=ii.stride|0,Ko=ii.divisor|0)),Qo=u.location,Wi=Zt[Qo],wa===1?(Wi.buffer||nt.enableVertexAttribArray(Qo),Sa=Ps||2,(Wi.type!==Sn||Wi.size!==Sa||Wi.buffer!==gn||Wi.normalized!==Ha||Wi.offset!==ao||Wi.stride!==Ba)&&(nt.bindBuffer(34962,gn.buffer),nt.vertexAttribPointer(Qo,Sa,Sn,Ha,Ba,ao),Wi.type=Sn,Wi.size=Sa,Wi.buffer=gn,Wi.normalized=Ha,Wi.offset=ao,Wi.stride=Ba),Wi.divisor!==Ko&&(Lr.vertexAttribDivisorANGLE(Qo,Ko),Wi.divisor=Ko)):(Wi.buffer&&(nt.disableVertexAttribArray(Qo),Wi.buffer=null),(Wi.x!==ws||Wi.y!==Co||Wi.z!==Po||Wi.w!==ji)&&(nt.vertexAttrib4f(Qo,ws,Co,Po,ji),Wi.x=ws,Wi.y=Co,Wi.z=Po,Wi.w=ji)),Qa=Ir.positionFractBuffer,wi.buffer=Qa,vn=!1,da=1,la=0,vo=0,As=0,ps=0,co=null,mo=0,No=!1,jn=5126,Go=0,Ys=0,qs=0,st(wi)?(vn=!0,co=St.createStream(34962,wi),jn=co.dtype):(co=St.getBuffer(wi),co?jn=co.dtype:"constant"in wi?(da=2,typeof wi.constant=="number"?(la=wi.constant,vo=As=ps=0):(la=wi.constant.length>0?wi.constant[0]:0,vo=wi.constant.length>1?wi.constant[1]:0,As=wi.constant.length>2?wi.constant[2]:0,ps=wi.constant.length>3?wi.constant[3]:0)):(st(wi.buffer)?co=St.createStream(34962,wi.buffer):co=St.getBuffer(wi.buffer),jn="type"in wi?Ci[wi.type]:co.dtype,No=!!wi.normalized,mo=wi.size|0,Go=wi.offset|0,Ys=wi.stride|0,qs=wi.divisor|0)),Ns=l.location,Oa=Zt[Ns],da===1?(Oa.buffer||nt.enableVertexAttribArray(Ns),ha=mo||2,(Oa.type!==jn||Oa.size!==ha||Oa.buffer!==co||Oa.normalized!==No||Oa.offset!==Go||Oa.stride!==Ys)&&(nt.bindBuffer(34962,co.buffer),nt.vertexAttribPointer(Ns,ha,jn,No,Ys,Go),Oa.type=jn,Oa.size=ha,Oa.buffer=co,Oa.normalized=No,Oa.offset=Go,Oa.stride=Ys),Oa.divisor!==qs&&(Lr.vertexAttribDivisorANGLE(Ns,qs),Oa.divisor=qs)):(Oa.buffer&&(nt.disableVertexAttribArray(Ns),Oa.buffer=null),(Oa.x!==la||Oa.y!==vo||Oa.z!==As||Oa.w!==ps)&&(nt.vertexAttrib4f(Ns,la,vo,As,ps),Oa.x=la,Oa.y=vo,Oa.z=As,Oa.w=ps)),Vs=Ir.fill,Ya=Vs[0],Vn=Vs[1],Ra=Vs[2],un=Vs[3],(!Ur||_n!==Ya||wo!==Vn||Xn!==Ra||$n!==un)&&(_n=Ya,wo=Vn,Xn=Ra,$n=un,nt.uniform4f(f.location,Ya,Vn,Ra,un)),Ka=Ir.id,(!Ur||qn!==Ka)&&(qn=Ka,nt.uniform1f(c.location,Ka)),Eo=Ir.opacity,(!Ur||Ja!==Eo)&&(Ja=Eo,nt.uniform1f(h.location,Eo)),lo=Ir.scale,eo=lo[0],es=lo[1],(!Ur||sa!==eo||Na!==es)&&(sa=eo,Na=es,nt.uniform2f(d.location,eo,es)),tn=Ir.scaleFract,Pa=tn[0],yo=tn[1],(!Ur||to!==Pa||Jo!==yo)&&(to=Pa,Jo=yo,nt.uniform2f(p.location,Pa,yo)),Ao=Ir.translate,Dn=Ao[0],Ws=Ao[1],(!Ur||_a!==Dn||Ca!==Ws)&&(_a=Dn,Ca=Ws,nt.uniform2f(_.location,Dn,Ws)),Es=Ir.translateFract,Ts=Es[0],Wa=Es[1],(!Ur||Ho!==Ts||To!==Wa)&&(Ho=Ts,To=Wa,nt.uniform2f(b.location,Ts,Wa)),ts=v.call(this,gt,Ir,Ur),Wo=null,qa=st(ts),qa?Wo=Tt.createStream(ts):Wo=Tt.getElements(ts),Wo&&nt.bindBuffer(34963,Wo.buffer.buffer),ln=Wo?Wo.vertCount:-1,ln&&(ka>0?Wo?Lr.drawElementsInstancedANGLE(4,ln,Wo.type,0<<(Wo.type-5121>>1),ka):Lr.drawArraysInstancedANGLE(4,0,ln,ka):ka<0&&(Wo?nt.drawElements(4,ln,Wo.type,0<<(Wo.type-5121>>1)):nt.drawArrays(4,0,ln)),gt.viewportWidth=kn,gt.viewportHeight=Ta,ra&&St.destroyStream(gn),vn&&St.destroyStream(co),qa&&Tt.destroyStream(Wo))}Ye.dirty=!0,Et.setVAO(null),Wt&&(r.cpuTime+=performance.now()-_r)}}}});var L8=Te((Y_r,qNe)=>{qNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt,Nt,it,Ye,kt,Tt,St,Rt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut){"use strict";var Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri;return Ie=t.gl,xe=t.context,Oe=t.strings,Re=t.next,De=t.current,ct=t.draw,ge=t.elements,fe=t.buffer,pe=t.shader,dt=t.attributes,It=t.vao,Pt=t.uniforms,rr=t.framebuffer,Hr=t.extensions,Dr=t.timer,Mr=t.isBufferArgs,Fr=Re.blend_color,di=De.blend_color,Di=Re.blend_equation,Ii=De.blend_equation,Ci=Re.blend_func,nn=De.blend_func,ii=Re.depth_range,wi=De.depth_range,Gi=Re.colorMask,Bt=De.colorMask,yt=Re.polygonOffset_offset,Vt=De.polygonOffset_offset,Wt=Re.sample_coverage,_r=De.sample_coverage,Lr=Re.stencil_func,Ur=De.stencil_func,Ir=Re.stencil_opFront,Gr=De.stencil_opFront,jr=Re.stencil_opBack,yi=De.stencil_opBack,Ei=Re.scissor_box,Vi=De.scissor_box,ti=Re.viewport,en=De.viewport,Yr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},oi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Bi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},an={add:32774,subtract:32778,"reverse subtract":32779},rn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Fi={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ri={cw:2304,ccw:2305},{draw:function(xn){var xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Ul,ja,ns,Js,cs,sl,ll,il,zl;if(xi=Hr.angle_instanced_arrays,Xr=rr.next,Xr!==rr.cur&&(Xr?Ie.bindFramebuffer(36160,Xr.framebuffer):Ie.bindFramebuffer(36160,null),rr.cur=Xr),De.dirty){var Ml,Rl,Al,Ll,ms,Os,Xl,Vl,Nl,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar;Ml=Re.dither,Ml!==De.dither&&(Ml?Ie.enable(3024):Ie.disable(3024),De.dither=Ml),Rl=Di[0],Al=Di[1],(Rl!==Ii[0]||Al!==Ii[1])&&(Ie.blendEquationSeparate(Rl,Al),Ii[0]=Rl,Ii[1]=Al),Ll=Re.depth_func,Ll!==De.depth_func&&(Ie.depthFunc(Ll),De.depth_func=Ll),ms=ii[0],Os=ii[1],(ms!==wi[0]||Os!==wi[1])&&(Ie.depthRange(ms,Os),wi[0]=ms,wi[1]=Os),Xl=Re.depth_mask,Xl!==De.depth_mask&&(Ie.depthMask(Xl),De.depth_mask=Xl),Vl=Gi[0],Nl=Gi[1],le=Gi[2],w=Gi[3],(Vl!==Bt[0]||Nl!==Bt[1]||le!==Bt[2]||w!==Bt[3])&&(Ie.colorMask(Vl,Nl,le,w),Bt[0]=Vl,Bt[1]=Nl,Bt[2]=le,Bt[3]=w),q=Re.cull_enable,q!==De.cull_enable&&(q?Ie.enable(2884):Ie.disable(2884),De.cull_enable=q),Q=Re.cull_face,Q!==De.cull_face&&(Ie.cullFace(Q),De.cull_face=Q),ee=Re.frontFace,ee!==De.frontFace&&(Ie.frontFace(ee),De.frontFace=ee),ue=Re.lineWidth,ue!==De.lineWidth&&(Ie.lineWidth(ue),De.lineWidth=ue),Ge=Re.polygonOffset_enable,Ge!==De.polygonOffset_enable&&(Ge?Ie.enable(32823):Ie.disable(32823),De.polygonOffset_enable=Ge),et=yt[0],mt=yt[1],(et!==Vt[0]||mt!==Vt[1])&&(Ie.polygonOffset(et,mt),Vt[0]=et,Vt[1]=mt),Ft=Re.sample_alpha,Ft!==De.sample_alpha&&(Ft?Ie.enable(32926):Ie.disable(32926),De.sample_alpha=Ft),ir=Re.sample_enable,ir!==De.sample_enable&&(ir?Ie.enable(32928):Ie.disable(32928),De.sample_enable=ir),or=Wt[0],kr=Wt[1],(or!==_r[0]||kr!==_r[1])&&(Ie.sampleCoverage(or,kr),_r[0]=or,_r[1]=kr),Vr=Re.stencil_mask,Vr!==De.stencil_mask&&(Ie.stencilMask(Vr),De.stencil_mask=Vr),he=Lr[0],Se=Lr[1],qe=Lr[2],(he!==Ur[0]||Se!==Ur[1]||qe!==Ur[2])&&(Ie.stencilFunc(he,Se,qe),Ur[0]=he,Ur[1]=Se,Ur[2]=qe),He=Ir[0],lt=Ir[1],tt=Ir[2],pt=Ir[3],(He!==Gr[0]||lt!==Gr[1]||tt!==Gr[2]||pt!==Gr[3])&&(Ie.stencilOpSeparate(He,lt,tt,pt),Gr[0]=He,Gr[1]=lt,Gr[2]=tt,Gr[3]=pt),Ht=jr[0],nr=jr[1],fr=jr[2],Ar=jr[3],(Ht!==yi[0]||nr!==yi[1]||fr!==yi[2]||Ar!==yi[3])&&(Ie.stencilOpSeparate(Ht,nr,fr,Ar),yi[0]=Ht,yi[1]=nr,yi[2]=fr,yi[3]=Ar)}ft=xn.viewport,tr=ft.x|0,pr=ft.y|0,gr="width"in ft?ft.width|0:xe.framebufferWidth-tr,Zr="height"in ft?ft.height|0:xe.framebufferHeight-pr,Ai=xe.viewportWidth,xe.viewportWidth=gr,Qi=xe.viewportHeight,xe.viewportHeight=Zr,Ie.viewport(tr,pr,gr,Zr),en[0]=tr,en[1]=pr,en[2]=gr,en[3]=Zr,Ie.blendColor(0,0,0,1),di[0]=0,di[1]=0,di[2]=0,di[3]=1,n?Ie.enable(3042):Ie.disable(3042),De.blend_enable=n,Ie.blendFuncSeparate(770,771,773,1),nn[0]=770,nn[1]=771,nn[2]=773,nn[3]=1,i?Ie.enable(2929):Ie.disable(2929),De.depth_enable=i,ni=xn.viewport,Zi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:xe.framebufferWidth-Zi,Un="height"in ni?ni.height|0:xe.framebufferHeight-aa,Ie.scissor(Zi,aa,Mn,Un),Vi[0]=Zi,Vi[1]=aa,Vi[2]=Mn,Vi[3]=Un,a?Ie.enable(3089):Ie.disable(3089),De.scissor_enable=a,o?Ie.enable(2960):Ie.disable(2960),De.stencil_enable=o,Ga=De.profile,Ga&&(ma=performance.now(),r.count++),Ie.useProgram(s.program),oa=Hr.angle_instanced_arrays,It.setVAO(null),ka=u.call(this,xe,xn,0),so=!1,Kr=1,Ia=0,Yo=0,fa=0,kn=0,Ta=null,ys=0,uo=!1,ls=5126,$a=0,fo=0,mn=0,Mr(ka)?(so=!0,Ta=fe.createStream(34962,ka),ls=Ta.dtype):(Ta=fe.getBuffer(ka),Ta?ls=Ta.dtype:"constant"in ka?(Kr=2,typeof ka.constant=="number"?(Ia=ka.constant,Yo=fa=kn=0):(Ia=ka.constant.length>0?ka.constant[0]:0,Yo=ka.constant.length>1?ka.constant[1]:0,fa=ka.constant.length>2?ka.constant[2]:0,kn=ka.constant.length>3?ka.constant[3]:0)):(Mr(ka.buffer)?Ta=fe.createStream(34962,ka.buffer):Ta=fe.getBuffer(ka.buffer),ls="type"in ka?Fi[ka.type]:Ta.dtype,uo=!!ka.normalized,ys=ka.size|0,$a=ka.offset|0,fo=ka.stride|0,mn=ka.divisor|0)),ra=l.location,wa=dt[ra],Kr===1?(wa.buffer||Ie.enableVertexAttribArray(ra),ws=ys||4,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(Ie.bindBuffer(34962,Ta.buffer),Ie.vertexAttribPointer(ra,ws,ls,uo,fo,$a),wa.type=ls,wa.size=ws,wa.buffer=Ta,wa.normalized=uo,wa.offset=$a,wa.stride=fo),wa.divisor!==mn&&(oa.vertexAttribDivisorANGLE(ra,mn),wa.divisor=mn)):(wa.buffer&&(Ie.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(Ie.vertexAttrib4f(ra,Ia,Yo,fa,kn),wa.x=Ia,wa.y=Yo,wa.z=fa,wa.w=kn)),Co=f.call(this,xe,xn,0),Po=!1,ji=1,gn=0,Ps=0,Ha=0,Sn=0,ao=null,Ba=0,Ko=!1,Qo=5126,Wi=0,Sa=0,Qa=0,Mr(Co)?(Po=!0,ao=fe.createStream(34962,Co),Qo=ao.dtype):(ao=fe.getBuffer(Co),ao?Qo=ao.dtype:"constant"in Co?(ji=2,typeof Co.constant=="number"?(gn=Co.constant,Ps=Ha=Sn=0):(gn=Co.constant.length>0?Co.constant[0]:0,Ps=Co.constant.length>1?Co.constant[1]:0,Ha=Co.constant.length>2?Co.constant[2]:0,Sn=Co.constant.length>3?Co.constant[3]:0)):(Mr(Co.buffer)?ao=fe.createStream(34962,Co.buffer):ao=fe.getBuffer(Co.buffer),Qo="type"in Co?Fi[Co.type]:ao.dtype,Ko=!!Co.normalized,Ba=Co.size|0,Wi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=c.location,da=dt[vn],ji===1?(da.buffer||Ie.enableVertexAttribArray(vn),la=Ba||1,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Wi||da.stride!==Sa)&&(Ie.bindBuffer(34962,ao.buffer),Ie.vertexAttribPointer(vn,la,Qo,Ko,Sa,Wi),da.type=Qo,da.size=la,da.buffer=ao,da.normalized=Ko,da.offset=Wi,da.stride=Sa),da.divisor!==Qa&&(oa.vertexAttribDivisorANGLE(vn,Qa),da.divisor=Qa)):(da.buffer&&(Ie.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(Ie.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=h.call(this,xe,xn,0),As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Oa=0,ha=0,Vs=0,Mr(vo)?(As=!0,Go=fe.createStream(34962,vo),Ns=Go.dtype):(Go=fe.getBuffer(vo),Go?Ns=Go.dtype:"constant"in vo?(ps=2,typeof vo.constant=="number"?(co=vo.constant,mo=No=jn=0):(co=vo.constant.length>0?vo.constant[0]:0,mo=vo.constant.length>1?vo.constant[1]:0,No=vo.constant.length>2?vo.constant[2]:0,jn=vo.constant.length>3?vo.constant[3]:0)):(Mr(vo.buffer)?Go=fe.createStream(34962,vo.buffer):Go=fe.getBuffer(vo.buffer),Ns="type"in vo?Fi[vo.type]:Go.dtype,qs=!!vo.normalized,Ys=vo.size|0,Oa=vo.offset|0,ha=vo.stride|0,Vs=vo.divisor|0)),Ya=d.location,_n=dt[Ya],ps===1?(_n.buffer||Ie.enableVertexAttribArray(Ya),Vn=Ys||4,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Oa||_n.stride!==ha)&&(Ie.bindBuffer(34962,Go.buffer),Ie.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Oa),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Oa,_n.stride=ha),_n.divisor!==Vs&&(oa.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(Ie.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(Ie.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=p.call(this,xe,xn,0),Ra=!1,Xn=1,un=0,$n=0,Ka=0,qn=0,Eo=null,Ja=0,lo=!1,eo=5126,sa=0,es=0,Na=0,Mr(wo)?(Ra=!0,Eo=fe.createStream(34962,wo),eo=Eo.dtype):(Eo=fe.getBuffer(wo),Eo?eo=Eo.dtype:"constant"in wo?(Xn=2,typeof wo.constant=="number"?(un=wo.constant,$n=Ka=qn=0):(un=wo.constant.length>0?wo.constant[0]:0,$n=wo.constant.length>1?wo.constant[1]:0,Ka=wo.constant.length>2?wo.constant[2]:0,qn=wo.constant.length>3?wo.constant[3]:0)):(Mr(wo.buffer)?Eo=fe.createStream(34962,wo.buffer):Eo=fe.getBuffer(wo.buffer),eo="type"in wo?Fi[wo.type]:Eo.dtype,lo=!!wo.normalized,Ja=wo.size|0,sa=wo.offset|0,es=wo.stride|0,Na=wo.divisor|0)),tn=_.location,Pa=dt[tn],Xn===1?(Pa.buffer||Ie.enableVertexAttribArray(tn),to=Ja||1,(Pa.type!==eo||Pa.size!==to||Pa.buffer!==Eo||Pa.normalized!==lo||Pa.offset!==sa||Pa.stride!==es)&&(Ie.bindBuffer(34962,Eo.buffer),Ie.vertexAttribPointer(tn,to,eo,lo,es,sa),Pa.type=eo,Pa.size=to,Pa.buffer=Eo,Pa.normalized=lo,Pa.offset=sa,Pa.stride=es),Pa.divisor!==Na&&(oa.vertexAttribDivisorANGLE(tn,Na),Pa.divisor=Na)):(Pa.buffer&&(Ie.disableVertexAttribArray(tn),Pa.buffer=null),(Pa.x!==un||Pa.y!==$n||Pa.z!==Ka||Pa.w!==qn)&&(Ie.vertexAttrib4f(tn,un,$n,Ka,qn),Pa.x=un,Pa.y=$n,Pa.z=Ka,Pa.w=qn)),yo=b.call(this,xe,xn,0),Jo=!1,Ao=1,Dn=0,_a=0,Ws=0,Ca=0,Es=null,Ts=0,Ho=!1,Wa=5126,To=0,ts=0,Wo=0,Mr(yo)?(Jo=!0,Es=fe.createStream(34962,yo),Wa=Es.dtype):(Es=fe.getBuffer(yo),Es?Wa=Es.dtype:"constant"in yo?(Ao=2,typeof yo.constant=="number"?(Dn=yo.constant,_a=Ws=Ca=0):(Dn=yo.constant.length>0?yo.constant[0]:0,_a=yo.constant.length>1?yo.constant[1]:0,Ws=yo.constant.length>2?yo.constant[2]:0,Ca=yo.constant.length>3?yo.constant[3]:0)):(Mr(yo.buffer)?Es=fe.createStream(34962,yo.buffer):Es=fe.getBuffer(yo.buffer),Wa="type"in yo?Fi[yo.type]:Es.dtype,Ho=!!yo.normalized,Ts=yo.size|0,To=yo.offset|0,ts=yo.stride|0,Wo=yo.divisor|0)),qa=v.location,ln=dt[qa],Ao===1?(ln.buffer||Ie.enableVertexAttribArray(qa),Bo=Ts||1,(ln.type!==Wa||ln.size!==Bo||ln.buffer!==Es||ln.normalized!==Ho||ln.offset!==To||ln.stride!==ts)&&(Ie.bindBuffer(34962,Es.buffer),Ie.vertexAttribPointer(qa,Bo,Wa,Ho,ts,To),ln.type=Wa,ln.size=Bo,ln.buffer=Es,ln.normalized=Ho,ln.offset=To,ln.stride=ts),ln.divisor!==Wo&&(oa.vertexAttribDivisorANGLE(qa,Wo),ln.divisor=Wo)):(ln.buffer&&(Ie.disableVertexAttribArray(qa),ln.buffer=null),(ln.x!==Dn||ln.y!==_a||ln.z!==Ws||ln.w!==Ca)&&(Ie.vertexAttrib4f(qa,Dn,_a,Ws,Ca),ln.x=Dn,ln.y=_a,ln.z=Ws,ln.w=Ca)),ko=k.call(this,xe,xn,0),oo=!1,za=1,ea=0,rs=0,$s=0,us=0,Ds=null,fl=0,as=!1,Ma=5126,Qs=0,ho=0,gs=0,Mr(ko)?(oo=!0,Ds=fe.createStream(34962,ko),Ma=Ds.dtype):(Ds=fe.getBuffer(ko),Ds?Ma=Ds.dtype:"constant"in ko?(za=2,typeof ko.constant=="number"?(ea=ko.constant,rs=$s=us=0):(ea=ko.constant.length>0?ko.constant[0]:0,rs=ko.constant.length>1?ko.constant[1]:0,$s=ko.constant.length>2?ko.constant[2]:0,us=ko.constant.length>3?ko.constant[3]:0)):(Mr(ko.buffer)?Ds=fe.createStream(34962,ko.buffer):Ds=fe.getBuffer(ko.buffer),Ma="type"in ko?Fi[ko.type]:Ds.dtype,as=!!ko.normalized,fl=ko.size|0,Qs=ko.offset|0,ho=ko.stride|0,gs=ko.divisor|0)),Vo=E.location,Do=dt[Vo],za===1?(Do.buffer||Ie.enableVertexAttribArray(Vo),Lo=fl||1,(Do.type!==Ma||Do.size!==Lo||Do.buffer!==Ds||Do.normalized!==as||Do.offset!==Qs||Do.stride!==ho)&&(Ie.bindBuffer(34962,Ds.buffer),Ie.vertexAttribPointer(Vo,Lo,Ma,as,ho,Qs),Do.type=Ma,Do.size=Lo,Do.buffer=Ds,Do.normalized=as,Do.offset=Qs,Do.stride=ho),Do.divisor!==gs&&(oa.vertexAttribDivisorANGLE(Vo,gs),Do.divisor=gs)):(Do.buffer&&(Ie.disableVertexAttribArray(Vo),Do.buffer=null),(Do.x!==ea||Do.y!==rs||Do.z!==$s||Do.w!==us)&&(Ie.vertexAttrib4f(Vo,ea,rs,$s,us),Do.x=ea,Do.y=rs,Do.z=$s,Do.w=us)),xs=T.call(this,xe,xn,0),ks=!1,Ea=1,Jn=0,Oo=0,rl=0,Gs=0,bs=null,zs=0,$o=!1,Aa=5126,os=0,_l=0,Ss=0,Mr(xs)?(ks=!0,bs=fe.createStream(34962,xs),Aa=bs.dtype):(bs=fe.getBuffer(xs),bs?Aa=bs.dtype:"constant"in xs?(Ea=2,typeof xs.constant=="number"?(Jn=xs.constant,Oo=rl=Gs=0):(Jn=xs.constant.length>0?xs.constant[0]:0,Oo=xs.constant.length>1?xs.constant[1]:0,rl=xs.constant.length>2?xs.constant[2]:0,Gs=xs.constant.length>3?xs.constant[3]:0)):(Mr(xs.buffer)?bs=fe.createStream(34962,xs.buffer):bs=fe.getBuffer(xs.buffer),Aa="type"in xs?Fi[xs.type]:bs.dtype,$o=!!xs.normalized,zs=xs.size|0,os=xs.offset|0,_l=xs.stride|0,Ss=xs.divisor|0)),po=L.location,go=dt[po],Ea===1?(go.buffer||Ie.enableVertexAttribArray(po),ss=zs||1,(go.type!==Aa||go.size!==ss||go.buffer!==bs||go.normalized!==$o||go.offset!==os||go.stride!==_l)&&(Ie.bindBuffer(34962,bs.buffer),Ie.vertexAttribPointer(po,ss,Aa,$o,_l,os),go.type=Aa,go.size=ss,go.buffer=bs,go.normalized=$o,go.offset=os,go.stride=_l),go.divisor!==Ss&&(oa.vertexAttribDivisorANGLE(po,Ss),go.divisor=Ss)):(go.buffer&&(Ie.disableVertexAttribArray(po),go.buffer=null),(go.x!==Jn||go.y!==Oo||go.z!==rl||go.w!==Gs)&&(Ie.vertexAttrib4f(po,Jn,Oo,rl,Gs),go.x=Jn,go.y=Oo,go.z=rl,go.w=Gs)),qo=x.call(this,xe,xn,0),zo=!1,io=1,Io=0,Da=0,vs=0,fs=0,cl=null,el=0,Hs=!1,Ro=5126,tl=0,Fs=0,hl=0,Mr(qo)?(zo=!0,cl=fe.createStream(34962,qo),Ro=cl.dtype):(cl=fe.getBuffer(qo),cl?Ro=cl.dtype:"constant"in qo?(io=2,typeof qo.constant=="number"?(Io=qo.constant,Da=vs=fs=0):(Io=qo.constant.length>0?qo.constant[0]:0,Da=qo.constant.length>1?qo.constant[1]:0,vs=qo.constant.length>2?qo.constant[2]:0,fs=qo.constant.length>3?qo.constant[3]:0)):(Mr(qo.buffer)?cl=fe.createStream(34962,qo.buffer):cl=fe.getBuffer(qo.buffer),Ro="type"in qo?Fi[qo.type]:cl.dtype,Hs=!!qo.normalized,el=qo.size|0,tl=qo.offset|0,Fs=qo.stride|0,hl=qo.divisor|0)),Fa=C.location,Ms=dt[Fa],io===1?(Ms.buffer||Ie.enableVertexAttribArray(Fa),jo=el||1,(Ms.type!==Ro||Ms.size!==jo||Ms.buffer!==cl||Ms.normalized!==Hs||Ms.offset!==tl||Ms.stride!==Fs)&&(Ie.bindBuffer(34962,cl.buffer),Ie.vertexAttribPointer(Fa,jo,Ro,Hs,Fs,tl),Ms.type=Ro,Ms.size=jo,Ms.buffer=cl,Ms.normalized=Hs,Ms.offset=tl,Ms.stride=Fs),Ms.divisor!==hl&&(oa.vertexAttribDivisorANGLE(Fa,hl),Ms.divisor=hl)):(Ms.buffer&&(Ie.disableVertexAttribArray(Fa),Ms.buffer=null),(Ms.x!==Io||Ms.y!==Da||Ms.z!==vs||Ms.w!==fs)&&(Ie.vertexAttrib4f(Fa,Io,Da,vs,fs),Ms.x=Io,Ms.y=Da,Ms.z=vs,Ms.w=fs)),Rs=M.call(this,xe,xn,0),Is=!1,Bs=1,At=0,Gt=0,wr=0,mr=0,Or=null,gi=0,Ti=!1,ki=5126,Ji=0,Fn=0,Pi=0,Mr(Rs)?(Is=!0,Or=fe.createStream(34962,Rs),ki=Or.dtype):(Or=fe.getBuffer(Rs),Or?ki=Or.dtype:"constant"in Rs?(Bs=2,typeof Rs.constant=="number"?(At=Rs.constant,Gt=wr=mr=0):(At=Rs.constant.length>0?Rs.constant[0]:0,Gt=Rs.constant.length>1?Rs.constant[1]:0,wr=Rs.constant.length>2?Rs.constant[2]:0,mr=Rs.constant.length>3?Rs.constant[3]:0)):(Mr(Rs.buffer)?Or=fe.createStream(34962,Rs.buffer):Or=fe.getBuffer(Rs.buffer),ki="type"in Rs?Fi[Rs.type]:Or.dtype,Ti=!!Rs.normalized,gi=Rs.size|0,Ji=Rs.offset|0,Fn=Rs.stride|0,Pi=Rs.divisor|0)),hi=m.location,Li=dt[hi],Bs===1?(Li.buffer||Ie.enableVertexAttribArray(hi),Si=gi||1,(Li.type!==ki||Li.size!==Si||Li.buffer!==Or||Li.normalized!==Ti||Li.offset!==Ji||Li.stride!==Fn)&&(Ie.bindBuffer(34962,Or.buffer),Ie.vertexAttribPointer(hi,Si,ki,Ti,Fn,Ji),Li.type=ki,Li.size=Si,Li.buffer=Or,Li.normalized=Ti,Li.offset=Ji,Li.stride=Fn),Li.divisor!==Pi&&(oa.vertexAttribDivisorANGLE(hi,Pi),Li.divisor=Pi)):(Li.buffer&&(Ie.disableVertexAttribArray(hi),Li.buffer=null),(Li.x!==At||Li.y!==Gt||Li.z!==wr||Li.w!==mr)&&(Ie.vertexAttrib4f(hi,At,Gt,wr,mr),Li.x=At,Li.y=Gt,Li.z=wr,Li.w=mr)),Ie.uniform1i(P.location,!1),Gn=xn.markerTexture,Gn&&Gn._reglType==="framebuffer"&&(Gn=Gn.color[0]),ta=Gn._texture,Ie.uniform1i(A.location,ta.bind()),ya=xn.opacity,Ie.uniform1f(B.location,ya),ia=U.call(this,xe,xn,0),pa=ia[0],va=ia[1],Ie.uniform2f(F.location,pa,va),Ie.uniform1i(G.location,j.bind()),zn=xe.pixelRatio,Ie.uniform1f(H.location,zn),is=xn.scale,Cs=is[0],Ks=is[1],Ie.uniform2f(N.location,Cs,Ks),dl=xn.scaleFract,xl=dl[0],Bl=dl[1],Ie.uniform2f(W.location,xl,Bl),bl=xn.translate,eu=bl[0],Zl=bl[1],Ie.uniform2f(re.location,eu,Zl),Ul=xn.translateFract,ja=Ul[0],ns=Ul[1],Ie.uniform2f(ae.location,ja,ns),Js=xn.elements,cs=null,sl=Mr(Js),sl?cs=ge.createStream(Js):cs=ge.getElements(Js),cs&&Ie.bindBuffer(34963,cs.buffer.buffer),ll=xn.offset,il=xn.count,il&&(zl=ct.instances,zl>0?cs?oa.drawElementsInstancedANGLE(0,il,cs.type,ll<<(cs.type-5121>>1),zl):oa.drawArraysInstancedANGLE(0,ll,il,zl):zl<0&&(cs?Ie.drawElements(0,il,cs.type,ll<<(cs.type-5121>>1)):Ie.drawArrays(0,ll,il)),De.dirty=!0,It.setVAO(null),xe.viewportWidth=Ai,xe.viewportHeight=Qi,Ga&&(r.cpuTime+=performance.now()-ma),so&&fe.destroyStream(Ta),Po&&fe.destroyStream(ao),As&&fe.destroyStream(Go),Ra&&fe.destroyStream(Eo),Jo&&fe.destroyStream(Es),oo&&fe.destroyStream(Ds),ks&&fe.destroyStream(bs),zo&&fe.destroyStream(cl),Is&&fe.destroyStream(Or),ta.unbind(),j.unbind(),sl&&ge.destroyStream(cs))},scope:function(xn,xi,Xr){var ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Ul,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Vl,Nl,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,Ol,ou,Pu,iu,tu,Wu,Qu,Ju,ju,Xu,lf,xf,ef,tf,Z,se,ze,Xe,Qe,ot,jt,_t,cr,Cr,zr,ui,$r,Oi,fn,vi,zi,Xi,pn,sn,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Zu,Gu,rf,ds,Wl,Au,Tu,uf,df,Ef,vf;ft=xn.viewport,tr=ft.x|0,pr=ft.y|0,gr="width"in ft?ft.width|0:xe.framebufferWidth-tr,Zr="height"in ft?ft.height|0:xe.framebufferHeight-pr,Ai=xe.viewportWidth,xe.viewportWidth=gr,Qi=xe.viewportHeight,xe.viewportHeight=Zr,ni=ti[0],ti[0]=tr,Zi=ti[1],ti[1]=pr,aa=ti[2],ti[2]=gr,Mn=ti[3],ti[3]=Zr,Un=Fr[0],Fr[0]=be,Ga=Fr[1],Fr[1]=Pe,ma=Fr[2],Fr[2]=Ce,oa=Fr[3],Fr[3]=de,ka=Re.blend_enable,Re.blend_enable=te,so=Ci[0],Ci[0]=ke,Kr=Ci[1],Ci[1]=Ee,Ia=Ci[2],Ci[2]=Me,Yo=Ci[3],Ci[3]=Ne,fa=Re.depth_enable,Re.depth_enable=Fe,kn=xn.viewport,Ta=kn.x|0,ys=kn.y|0,uo="width"in kn?kn.width|0:xe.framebufferWidth-Ta,ls="height"in kn?kn.height|0:xe.framebufferHeight-ys,$a=Ei[0],Ei[0]=Ta,fo=Ei[1],Ei[1]=ys,mn=Ei[2],Ei[2]=uo,ra=Ei[3],Ei[3]=ls,wa=Re.scissor_enable,Re.scissor_enable=ye,ws=Re.stencil_enable,Re.stencil_enable=Ve,Co=De.profile,Co&&(Po=performance.now(),r.count++),ji=xn.elements,gn=null,Ps=Mr(ji),Ps?gn=ge.createStream(ji):gn=ge.getElements(ji),Ha=ct.elements,ct.elements=gn,Sn=xn.offset,ao=ct.offset,ct.offset=Sn,Ba=xn.count,Ko=ct.count,ct.count=Ba,Qo=ct.primitive,ct.primitive=ce,Wi=Pt[Ke],Pt[Ke]=!1,Sa=Pt[gt],Pt[gt]=nt,Qa=xn.opacity,vn=Pt[Nt],Pt[Nt]=Qa,da=U.call(this,xe,xn,Xr),la=Pt[it],Pt[it]=da,vo=xe.pixelRatio,As=Pt[Ye],Pt[Ye]=vo,ps=xn.scale,co=Pt[kt],Pt[kt]=ps,mo=xn.scaleFract,No=Pt[Tt],Pt[Tt]=mo,jn=xn.translate,Go=Pt[St],Pt[St]=jn,Ys=xn.translateFract,qs=Pt[Rt],Pt[Rt]=Ys,Ns=xn.markerTexture,Oa=Pt[Zt],Pt[Zt]=Ns,ha=k.call(this,xe,xn,Xr),Vs=!1,Ya=1,_n=0,Vn=0,wo=0,Ra=0,Xn=null,un=0,$n=!1,Ka=5126,qn=0,Eo=0,Ja=0,Mr(ha)?(Vs=!0,Xn=fe.createStream(34962,ha),Ka=Xn.dtype):(Xn=fe.getBuffer(ha),Xn?Ka=Xn.dtype:"constant"in ha?(Ya=2,typeof ha.constant=="number"?(_n=ha.constant,Vn=wo=Ra=0):(_n=ha.constant.length>0?ha.constant[0]:0,Vn=ha.constant.length>1?ha.constant[1]:0,wo=ha.constant.length>2?ha.constant[2]:0,Ra=ha.constant.length>3?ha.constant[3]:0)):(Mr(ha.buffer)?Xn=fe.createStream(34962,ha.buffer):Xn=fe.getBuffer(ha.buffer),Ka="type"in ha?Fi[ha.type]:Xn.dtype,$n=!!ha.normalized,un=ha.size|0,qn=ha.offset|0,Eo=ha.stride|0,Ja=ha.divisor|0)),lo=Et.state,Et.state=Ya,eo=Et.x,Et.x=_n,sa=Et.y,Et.y=Vn,es=Et.z,Et.z=wo,Na=Et.w,Et.w=Ra,tn=Et.buffer,Et.buffer=Xn,Pa=Et.size,Et.size=un,to=Et.normalized,Et.normalized=$n,yo=Et.type,Et.type=Ka,Jo=Et.offset,Et.offset=qn,Ao=Et.stride,Et.stride=Eo,Dn=Et.divisor,Et.divisor=Ja,_a=x.call(this,xe,xn,Xr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,ln=0,Bo=0,ko=0,Mr(_a)?(Ws=!0,To=fe.createStream(34962,_a),qa=To.dtype):(To=fe.getBuffer(_a),To?qa=To.dtype:"constant"in _a?(Ca=2,typeof _a.constant=="number"?(Es=_a.constant,Ts=Ho=Wa=0):(Es=_a.constant.length>0?_a.constant[0]:0,Ts=_a.constant.length>1?_a.constant[1]:0,Ho=_a.constant.length>2?_a.constant[2]:0,Wa=_a.constant.length>3?_a.constant[3]:0)):(Mr(_a.buffer)?To=fe.createStream(34962,_a.buffer):To=fe.getBuffer(_a.buffer),qa="type"in _a?Fi[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,ln=_a.offset|0,Bo=_a.stride|0,ko=_a.divisor|0)),oo=Ae.state,Ae.state=Ca,za=Ae.x,Ae.x=Es,ea=Ae.y,Ae.y=Ts,rs=Ae.z,Ae.z=Ho,$s=Ae.w,Ae.w=Wa,us=Ae.buffer,Ae.buffer=To,Ds=Ae.size,Ae.size=ts,fl=Ae.normalized,Ae.normalized=Wo,as=Ae.type,Ae.type=qa,Ma=Ae.offset,Ae.offset=ln,Qs=Ae.stride,Ae.stride=Bo,ho=Ae.divisor,Ae.divisor=ko,gs=T.call(this,xe,xn,Xr),Vo=!1,Do=1,Lo=0,xs=0,ks=0,Ea=0,Jn=null,Oo=0,rl=!1,Gs=5126,bs=0,zs=0,$o=0,Mr(gs)?(Vo=!0,Jn=fe.createStream(34962,gs),Gs=Jn.dtype):(Jn=fe.getBuffer(gs),Jn?Gs=Jn.dtype:"constant"in gs?(Do=2,typeof gs.constant=="number"?(Lo=gs.constant,xs=ks=Ea=0):(Lo=gs.constant.length>0?gs.constant[0]:0,xs=gs.constant.length>1?gs.constant[1]:0,ks=gs.constant.length>2?gs.constant[2]:0,Ea=gs.constant.length>3?gs.constant[3]:0)):(Mr(gs.buffer)?Jn=fe.createStream(34962,gs.buffer):Jn=fe.getBuffer(gs.buffer),Gs="type"in gs?Fi[gs.type]:Jn.dtype,rl=!!gs.normalized,Oo=gs.size|0,bs=gs.offset|0,zs=gs.stride|0,$o=gs.divisor|0)),Aa=at.state,at.state=Do,os=at.x,at.x=Lo,_l=at.y,at.y=xs,Ss=at.z,at.z=ks,po=at.w,at.w=Ea,go=at.buffer,at.buffer=Jn,ss=at.size,at.size=Oo,qo=at.normalized,at.normalized=rl,zo=at.type,at.type=Gs,io=at.offset,at.offset=bs,Io=at.stride,at.stride=zs,Da=at.divisor,at.divisor=$o,vs=M.call(this,xe,xn,Xr),fs=!1,cl=1,el=0,Hs=0,Ro=0,tl=0,Fs=null,hl=0,Fa=!1,Ms=5126,jo=0,Rs=0,Is=0,Mr(vs)?(fs=!0,Fs=fe.createStream(34962,vs),Ms=Fs.dtype):(Fs=fe.getBuffer(vs),Fs?Ms=Fs.dtype:"constant"in vs?(cl=2,typeof vs.constant=="number"?(el=vs.constant,Hs=Ro=tl=0):(el=vs.constant.length>0?vs.constant[0]:0,Hs=vs.constant.length>1?vs.constant[1]:0,Ro=vs.constant.length>2?vs.constant[2]:0,tl=vs.constant.length>3?vs.constant[3]:0)):(Mr(vs.buffer)?Fs=fe.createStream(34962,vs.buffer):Fs=fe.getBuffer(vs.buffer),Ms="type"in vs?Fi[vs.type]:Fs.dtype,Fa=!!vs.normalized,hl=vs.size|0,jo=vs.offset|0,Rs=vs.stride|0,Is=vs.divisor|0)),Bs=wt.state,wt.state=cl,At=wt.x,wt.x=el,Gt=wt.y,wt.y=Hs,wr=wt.z,wt.z=Ro,mr=wt.w,wt.w=tl,Or=wt.buffer,wt.buffer=Fs,gi=wt.size,wt.size=hl,Ti=wt.normalized,wt.normalized=Fa,ki=wt.type,wt.type=Ms,Ji=wt.offset,wt.offset=jo,Fn=wt.stride,wt.stride=Rs,Pi=wt.divisor,wt.divisor=Is,hi=b.call(this,xe,xn,Xr),Li=!1,Si=1,Gn=0,ta=0,ya=0,ia=0,pa=null,va=0,zn=!1,is=5126,Cs=0,Ks=0,dl=0,Mr(hi)?(Li=!0,pa=fe.createStream(34962,hi),is=pa.dtype):(pa=fe.getBuffer(hi),pa?is=pa.dtype:"constant"in hi?(Si=2,typeof hi.constant=="number"?(Gn=hi.constant,ta=ya=ia=0):(Gn=hi.constant.length>0?hi.constant[0]:0,ta=hi.constant.length>1?hi.constant[1]:0,ya=hi.constant.length>2?hi.constant[2]:0,ia=hi.constant.length>3?hi.constant[3]:0)):(Mr(hi.buffer)?pa=fe.createStream(34962,hi.buffer):pa=fe.getBuffer(hi.buffer),is="type"in hi?Fi[hi.type]:pa.dtype,zn=!!hi.normalized,va=hi.size|0,Cs=hi.offset|0,Ks=hi.stride|0,dl=hi.divisor|0)),xl=vt.state,vt.state=Si,Bl=vt.x,vt.x=Gn,bl=vt.y,vt.y=ta,eu=vt.z,vt.z=ya,Zl=vt.w,vt.w=ia,Ul=vt.buffer,vt.buffer=pa,ja=vt.size,vt.size=va,ns=vt.normalized,vt.normalized=zn,Js=vt.type,vt.type=is,cs=vt.offset,vt.offset=Cs,sl=vt.stride,vt.stride=Ks,ll=vt.divisor,vt.divisor=dl,il=f.call(this,xe,xn,Xr),zl=!1,Ml=1,Rl=0,Al=0,Ll=0,ms=0,Os=null,Xl=0,Vl=!1,Nl=5126,le=0,w=0,q=0,Mr(il)?(zl=!0,Os=fe.createStream(34962,il),Nl=Os.dtype):(Os=fe.getBuffer(il),Os?Nl=Os.dtype:"constant"in il?(Ml=2,typeof il.constant=="number"?(Rl=il.constant,Al=Ll=ms=0):(Rl=il.constant.length>0?il.constant[0]:0,Al=il.constant.length>1?il.constant[1]:0,Ll=il.constant.length>2?il.constant[2]:0,ms=il.constant.length>3?il.constant[3]:0)):(Mr(il.buffer)?Os=fe.createStream(34962,il.buffer):Os=fe.getBuffer(il.buffer),Nl="type"in il?Fi[il.type]:Os.dtype,Vl=!!il.normalized,Xl=il.size|0,le=il.offset|0,w=il.stride|0,q=il.divisor|0)),Q=st.state,st.state=Ml,ee=st.x,st.x=Rl,ue=st.y,st.y=Al,Ge=st.z,st.z=Ll,et=st.w,st.w=ms,mt=st.buffer,st.buffer=Os,Ft=st.size,st.size=Xl,ir=st.normalized,st.normalized=Vl,or=st.type,st.type=Nl,kr=st.offset,st.offset=le,Vr=st.stride,st.stride=w,he=st.divisor,st.divisor=q,Se=h.call(this,xe,xn,Xr),qe=!1,He=1,lt=0,tt=0,pt=0,Ht=0,nr=null,fr=0,Ar=!1,Rr=5126,ri=0,si=0,Mi=0,Mr(Se)?(qe=!0,nr=fe.createStream(34962,Se),Rr=nr.dtype):(nr=fe.getBuffer(Se),nr?Rr=nr.dtype:"constant"in Se?(He=2,typeof Se.constant=="number"?(lt=Se.constant,tt=pt=Ht=0):(lt=Se.constant.length>0?Se.constant[0]:0,tt=Se.constant.length>1?Se.constant[1]:0,pt=Se.constant.length>2?Se.constant[2]:0,Ht=Se.constant.length>3?Se.constant[3]:0)):(Mr(Se.buffer)?nr=fe.createStream(34962,Se.buffer):nr=fe.getBuffer(Se.buffer),Rr="type"in Se?Fi[Se.type]:nr.dtype,Ar=!!Se.normalized,fr=Se.size|0,ri=Se.offset|0,si=Se.stride|0,Mi=Se.divisor|0)),hn=Ue.state,Ue.state=He,Zn=Ue.x,Ue.x=lt,Yn=Ue.y,Ue.y=tt,Ua=Ue.z,Ue.z=pt,Fo=Ue.w,Ue.w=Ht,vl=Ue.buffer,Ue.buffer=nr,Us=Ue.size,Ue.size=fr,ml=Ue.normalized,Ue.normalized=Ar,au=Ue.type,Ue.type=Rr,Sl=Ue.offset,Ue.offset=ri,Yl=Ue.stride,Ue.stride=si,Ol=Ue.divisor,Ue.divisor=Mi,ou=u.call(this,xe,xn,Xr),Pu=!1,iu=1,tu=0,Wu=0,Qu=0,Ju=0,ju=null,Xu=0,lf=!1,xf=5126,ef=0,tf=0,Z=0,Mr(ou)?(Pu=!0,ju=fe.createStream(34962,ou),xf=ju.dtype):(ju=fe.getBuffer(ou),ju?xf=ju.dtype:"constant"in ou?(iu=2,typeof ou.constant=="number"?(tu=ou.constant,Wu=Qu=Ju=0):(tu=ou.constant.length>0?ou.constant[0]:0,Wu=ou.constant.length>1?ou.constant[1]:0,Qu=ou.constant.length>2?ou.constant[2]:0,Ju=ou.constant.length>3?ou.constant[3]:0)):(Mr(ou.buffer)?ju=fe.createStream(34962,ou.buffer):ju=fe.getBuffer(ou.buffer),xf="type"in ou?Fi[ou.type]:ju.dtype,lf=!!ou.normalized,Xu=ou.size|0,ef=ou.offset|0,tf=ou.stride|0,Z=ou.divisor|0)),se=rt.state,rt.state=iu,ze=rt.x,rt.x=tu,Xe=rt.y,rt.y=Wu,Qe=rt.z,rt.z=Qu,ot=rt.w,rt.w=Ju,jt=rt.buffer,rt.buffer=ju,_t=rt.size,rt.size=Xu,cr=rt.normalized,rt.normalized=lf,Cr=rt.type,rt.type=xf,zr=rt.offset,rt.offset=ef,ui=rt.stride,rt.stride=tf,$r=rt.divisor,rt.divisor=Z,Oi=p.call(this,xe,xn,Xr),fn=!1,vi=1,zi=0,Xi=0,pn=0,sn=0,bi=null,xo=0,no=!1,Xo=5126,js=0,El=0,Pl=0,Mr(Oi)?(fn=!0,bi=fe.createStream(34962,Oi),Xo=bi.dtype):(bi=fe.getBuffer(Oi),bi?Xo=bi.dtype:"constant"in Oi?(vi=2,typeof Oi.constant=="number"?(zi=Oi.constant,Xi=pn=sn=0):(zi=Oi.constant.length>0?Oi.constant[0]:0,Xi=Oi.constant.length>1?Oi.constant[1]:0,pn=Oi.constant.length>2?Oi.constant[2]:0,sn=Oi.constant.length>3?Oi.constant[3]:0)):(Mr(Oi.buffer)?bi=fe.createStream(34962,Oi.buffer):bi=fe.getBuffer(Oi.buffer),Xo="type"in Oi?Fi[Oi.type]:bi.dtype,no=!!Oi.normalized,xo=Oi.size|0,js=Oi.offset|0,El=Oi.stride|0,Pl=Oi.divisor|0)),pu=$e.state,$e.state=vi,Il=$e.x,$e.x=zi,fu=$e.y,$e.y=Xi,Zu=$e.z,$e.z=pn,Gu=$e.w,$e.w=sn,rf=$e.buffer,$e.buffer=bi,ds=$e.size,$e.size=xo,Wl=$e.normalized,$e.normalized=no,Au=$e.type,$e.type=Xo,Tu=$e.offset,$e.offset=js,uf=$e.stride,$e.stride=El,df=$e.divisor,$e.divisor=Pl,Ef=pe.vert,pe.vert=zt,vf=pe.frag,pe.frag=Yt,De.dirty=!0,xi(xe,xn,Xr),xe.viewportWidth=Ai,xe.viewportHeight=Qi,ti[0]=ni,ti[1]=Zi,ti[2]=aa,ti[3]=Mn,Fr[0]=Un,Fr[1]=Ga,Fr[2]=ma,Fr[3]=oa,Re.blend_enable=ka,Ci[0]=so,Ci[1]=Kr,Ci[2]=Ia,Ci[3]=Yo,Re.depth_enable=fa,Ei[0]=$a,Ei[1]=fo,Ei[2]=mn,Ei[3]=ra,Re.scissor_enable=wa,Re.stencil_enable=ws,Co&&(r.cpuTime+=performance.now()-Po),Ps&&ge.destroyStream(gn),ct.elements=Ha,ct.offset=ao,ct.count=Ko,ct.primitive=Qo,Pt[Ke]=Wi,Pt[gt]=Sa,Pt[Nt]=vn,Pt[it]=la,Pt[Ye]=As,Pt[kt]=co,Pt[Tt]=No,Pt[St]=Go,Pt[Rt]=qs,Pt[Zt]=Oa,Vs&&fe.destroyStream(Xn),Et.state=lo,Et.x=eo,Et.y=sa,Et.z=es,Et.w=Na,Et.buffer=tn,Et.size=Pa,Et.normalized=to,Et.type=yo,Et.offset=Jo,Et.stride=Ao,Et.divisor=Dn,Ws&&fe.destroyStream(To),Ae.state=oo,Ae.x=za,Ae.y=ea,Ae.z=rs,Ae.w=$s,Ae.buffer=us,Ae.size=Ds,Ae.normalized=fl,Ae.type=as,Ae.offset=Ma,Ae.stride=Qs,Ae.divisor=ho,Vo&&fe.destroyStream(Jn),at.state=Aa,at.x=os,at.y=_l,at.z=Ss,at.w=po,at.buffer=go,at.size=ss,at.normalized=qo,at.type=zo,at.offset=io,at.stride=Io,at.divisor=Da,fs&&fe.destroyStream(Fs),wt.state=Bs,wt.x=At,wt.y=Gt,wt.z=wr,wt.w=mr,wt.buffer=Or,wt.size=gi,wt.normalized=Ti,wt.type=ki,wt.offset=Ji,wt.stride=Fn,wt.divisor=Pi,Li&&fe.destroyStream(pa),vt.state=xl,vt.x=Bl,vt.y=bl,vt.z=eu,vt.w=Zl,vt.buffer=Ul,vt.size=ja,vt.normalized=ns,vt.type=Js,vt.offset=cs,vt.stride=sl,vt.divisor=ll,zl&&fe.destroyStream(Os),st.state=Q,st.x=ee,st.y=ue,st.z=Ge,st.w=et,st.buffer=mt,st.size=Ft,st.normalized=ir,st.type=or,st.offset=kr,st.stride=Vr,st.divisor=he,qe&&fe.destroyStream(nr),Ue.state=hn,Ue.x=Zn,Ue.y=Yn,Ue.z=Ua,Ue.w=Fo,Ue.buffer=vl,Ue.size=Us,Ue.normalized=ml,Ue.type=au,Ue.offset=Sl,Ue.stride=Yl,Ue.divisor=Ol,Pu&&fe.destroyStream(ju),rt.state=se,rt.x=ze,rt.y=Xe,rt.z=Qe,rt.w=ot,rt.buffer=jt,rt.size=_t,rt.normalized=cr,rt.type=Cr,rt.offset=zr,rt.stride=ui,rt.divisor=$r,fn&&fe.destroyStream(bi),$e.state=pu,$e.x=Il,$e.y=fu,$e.z=Zu,$e.w=Gu,$e.buffer=rf,$e.size=ds,$e.normalized=Wl,$e.type=Au,$e.offset=Tu,$e.stride=uf,$e.divisor=df,pe.vert=Ef,pe.frag=vf,De.dirty=!0},batch:function(xn,xi){var Xr,ft,tr,pr,gr,Zr,Ai;if(Xr=Hr.angle_instanced_arrays,ft=rr.next,ft!==rr.cur&&(ft?Ie.bindFramebuffer(36160,ft.framebuffer):Ie.bindFramebuffer(36160,null),rr.cur=ft),De.dirty){var Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao;Qi=Re.dither,Qi!==De.dither&&(Qi?Ie.enable(3024):Ie.disable(3024),De.dither=Qi),ni=Di[0],Zi=Di[1],(ni!==Ii[0]||Zi!==Ii[1])&&(Ie.blendEquationSeparate(ni,Zi),Ii[0]=ni,Ii[1]=Zi),aa=Re.depth_func,aa!==De.depth_func&&(Ie.depthFunc(aa),De.depth_func=aa),Mn=ii[0],Un=ii[1],(Mn!==wi[0]||Un!==wi[1])&&(Ie.depthRange(Mn,Un),wi[0]=Mn,wi[1]=Un),Ga=Re.depth_mask,Ga!==De.depth_mask&&(Ie.depthMask(Ga),De.depth_mask=Ga),ma=Gi[0],oa=Gi[1],ka=Gi[2],so=Gi[3],(ma!==Bt[0]||oa!==Bt[1]||ka!==Bt[2]||so!==Bt[3])&&(Ie.colorMask(ma,oa,ka,so),Bt[0]=ma,Bt[1]=oa,Bt[2]=ka,Bt[3]=so),Kr=Re.cull_enable,Kr!==De.cull_enable&&(Kr?Ie.enable(2884):Ie.disable(2884),De.cull_enable=Kr),Ia=Re.cull_face,Ia!==De.cull_face&&(Ie.cullFace(Ia),De.cull_face=Ia),Yo=Re.frontFace,Yo!==De.frontFace&&(Ie.frontFace(Yo),De.frontFace=Yo),fa=Re.lineWidth,fa!==De.lineWidth&&(Ie.lineWidth(fa),De.lineWidth=fa),kn=Re.polygonOffset_enable,kn!==De.polygonOffset_enable&&(kn?Ie.enable(32823):Ie.disable(32823),De.polygonOffset_enable=kn),Ta=yt[0],ys=yt[1],(Ta!==Vt[0]||ys!==Vt[1])&&(Ie.polygonOffset(Ta,ys),Vt[0]=Ta,Vt[1]=ys),uo=Re.sample_alpha,uo!==De.sample_alpha&&(uo?Ie.enable(32926):Ie.disable(32926),De.sample_alpha=uo),ls=Re.sample_enable,ls!==De.sample_enable&&(ls?Ie.enable(32928):Ie.disable(32928),De.sample_enable=ls),$a=Wt[0],fo=Wt[1],($a!==_r[0]||fo!==_r[1])&&(Ie.sampleCoverage($a,fo),_r[0]=$a,_r[1]=fo),mn=Re.stencil_mask,mn!==De.stencil_mask&&(Ie.stencilMask(mn),De.stencil_mask=mn),ra=Lr[0],wa=Lr[1],ws=Lr[2],(ra!==Ur[0]||wa!==Ur[1]||ws!==Ur[2])&&(Ie.stencilFunc(ra,wa,ws),Ur[0]=ra,Ur[1]=wa,Ur[2]=ws),Co=Ir[0],Po=Ir[1],ji=Ir[2],gn=Ir[3],(Co!==Gr[0]||Po!==Gr[1]||ji!==Gr[2]||gn!==Gr[3])&&(Ie.stencilOpSeparate(Co,Po,ji,gn),Gr[0]=Co,Gr[1]=Po,Gr[2]=ji,Gr[3]=gn),Ps=jr[0],Ha=jr[1],Sn=jr[2],ao=jr[3],(Ps!==yi[0]||Ha!==yi[1]||Sn!==yi[2]||ao!==yi[3])&&(Ie.stencilOpSeparate(Ps,Ha,Sn,ao),yi[0]=Ps,yi[1]=Ha,yi[2]=Sn,yi[3]=ao)}Ie.blendColor(0,0,0,1),di[0]=0,di[1]=0,di[2]=0,di[3]=1,hr?Ie.enable(3042):Ie.disable(3042),De.blend_enable=hr,Ie.blendFuncSeparate(770,771,773,1),nn[0]=770,nn[1]=771,nn[2]=773,nn[3]=1,yr?Ie.enable(2929):Ie.disable(2929),De.depth_enable=yr,br?Ie.enable(3089):Ie.disable(3089),De.scissor_enable=br,Ut?Ie.enable(2960):Ie.disable(2960),De.stencil_enable=Ut,tr=De.profile,tr&&(pr=performance.now(),r.count+=xi),Ie.useProgram(s.program),gr=Hr.angle_instanced_arrays;var Ba;for(It.setVAO(null),Ie.uniform1i(P.location,!1),Ie.uniform1i(G.location,j.bind()),Ba=ct.instances,Zr=0;Zr0?mo.constant[0]:0,Ys=mo.constant.length>1?mo.constant[1]:0,qs=mo.constant.length>2?mo.constant[2]:0,Ns=mo.constant.length>3?mo.constant[3]:0)):(Mr(mo.buffer)?Oa=fe.createStream(34962,mo.buffer):Oa=fe.getBuffer(mo.buffer),Ya="type"in mo?Fi[mo.type]:Oa.dtype,Vs=!!mo.normalized,ha=mo.size|0,_n=mo.offset|0,Vn=mo.stride|0,wo=mo.divisor|0)),Ra=l.location,Xn=dt[Ra],jn===1?(Xn.buffer||Ie.enableVertexAttribArray(Ra),un=ha||4,(Xn.type!==Ya||Xn.size!==un||Xn.buffer!==Oa||Xn.normalized!==Vs||Xn.offset!==_n||Xn.stride!==Vn)&&(Ie.bindBuffer(34962,Oa.buffer),Ie.vertexAttribPointer(Ra,un,Ya,Vs,Vn,_n),Xn.type=Ya,Xn.size=un,Xn.buffer=Oa,Xn.normalized=Vs,Xn.offset=_n,Xn.stride=Vn),Xn.divisor!==wo&&(gr.vertexAttribDivisorANGLE(Ra,wo),Xn.divisor=wo)):(Xn.buffer&&(Ie.disableVertexAttribArray(Ra),Xn.buffer=null),(Xn.x!==Go||Xn.y!==Ys||Xn.z!==qs||Xn.w!==Ns)&&(Ie.vertexAttrib4f(Ra,Go,Ys,qs,Ns),Xn.x=Go,Xn.y=Ys,Xn.z=qs,Xn.w=Ns)),$n=f.call(this,xe,Ai,Zr),Ka=!1,qn=1,Eo=0,Ja=0,lo=0,eo=0,sa=null,es=0,Na=!1,tn=5126,Pa=0,to=0,yo=0,Mr($n)?(Ka=!0,sa=fe.createStream(34962,$n),tn=sa.dtype):(sa=fe.getBuffer($n),sa?tn=sa.dtype:"constant"in $n?(qn=2,typeof $n.constant=="number"?(Eo=$n.constant,Ja=lo=eo=0):(Eo=$n.constant.length>0?$n.constant[0]:0,Ja=$n.constant.length>1?$n.constant[1]:0,lo=$n.constant.length>2?$n.constant[2]:0,eo=$n.constant.length>3?$n.constant[3]:0)):(Mr($n.buffer)?sa=fe.createStream(34962,$n.buffer):sa=fe.getBuffer($n.buffer),tn="type"in $n?Fi[$n.type]:sa.dtype,Na=!!$n.normalized,es=$n.size|0,Pa=$n.offset|0,to=$n.stride|0,yo=$n.divisor|0)),Jo=c.location,Ao=dt[Jo],qn===1?(Ao.buffer||Ie.enableVertexAttribArray(Jo),Dn=es||1,(Ao.type!==tn||Ao.size!==Dn||Ao.buffer!==sa||Ao.normalized!==Na||Ao.offset!==Pa||Ao.stride!==to)&&(Ie.bindBuffer(34962,sa.buffer),Ie.vertexAttribPointer(Jo,Dn,tn,Na,to,Pa),Ao.type=tn,Ao.size=Dn,Ao.buffer=sa,Ao.normalized=Na,Ao.offset=Pa,Ao.stride=to),Ao.divisor!==yo&&(gr.vertexAttribDivisorANGLE(Jo,yo),Ao.divisor=yo)):(Ao.buffer&&(Ie.disableVertexAttribArray(Jo),Ao.buffer=null),(Ao.x!==Eo||Ao.y!==Ja||Ao.z!==lo||Ao.w!==eo)&&(Ie.vertexAttrib4f(Jo,Eo,Ja,lo,eo),Ao.x=Eo,Ao.y=Ja,Ao.z=lo,Ao.w=eo)),_a=h.call(this,xe,Ai,Zr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,ln=0,Bo=0,ko=0,Mr(_a)?(Ws=!0,To=fe.createStream(34962,_a),qa=To.dtype):(To=fe.getBuffer(_a),To?qa=To.dtype:"constant"in _a?(Ca=2,typeof _a.constant=="number"?(Es=_a.constant,Ts=Ho=Wa=0):(Es=_a.constant.length>0?_a.constant[0]:0,Ts=_a.constant.length>1?_a.constant[1]:0,Ho=_a.constant.length>2?_a.constant[2]:0,Wa=_a.constant.length>3?_a.constant[3]:0)):(Mr(_a.buffer)?To=fe.createStream(34962,_a.buffer):To=fe.getBuffer(_a.buffer),qa="type"in _a?Fi[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,ln=_a.offset|0,Bo=_a.stride|0,ko=_a.divisor|0)),oo=d.location,za=dt[oo],Ca===1?(za.buffer||Ie.enableVertexAttribArray(oo),ea=ts||4,(za.type!==qa||za.size!==ea||za.buffer!==To||za.normalized!==Wo||za.offset!==ln||za.stride!==Bo)&&(Ie.bindBuffer(34962,To.buffer),Ie.vertexAttribPointer(oo,ea,qa,Wo,Bo,ln),za.type=qa,za.size=ea,za.buffer=To,za.normalized=Wo,za.offset=ln,za.stride=Bo),za.divisor!==ko&&(gr.vertexAttribDivisorANGLE(oo,ko),za.divisor=ko)):(za.buffer&&(Ie.disableVertexAttribArray(oo),za.buffer=null),(za.x!==Es||za.y!==Ts||za.z!==Ho||za.w!==Wa)&&(Ie.vertexAttrib4f(oo,Es,Ts,Ho,Wa),za.x=Es,za.y=Ts,za.z=Ho,za.w=Wa)),rs=p.call(this,xe,Ai,Zr),$s=!1,us=1,Ds=0,fl=0,as=0,Ma=0,Qs=null,ho=0,gs=!1,Vo=5126,Do=0,Lo=0,xs=0,Mr(rs)?($s=!0,Qs=fe.createStream(34962,rs),Vo=Qs.dtype):(Qs=fe.getBuffer(rs),Qs?Vo=Qs.dtype:"constant"in rs?(us=2,typeof rs.constant=="number"?(Ds=rs.constant,fl=as=Ma=0):(Ds=rs.constant.length>0?rs.constant[0]:0,fl=rs.constant.length>1?rs.constant[1]:0,as=rs.constant.length>2?rs.constant[2]:0,Ma=rs.constant.length>3?rs.constant[3]:0)):(Mr(rs.buffer)?Qs=fe.createStream(34962,rs.buffer):Qs=fe.getBuffer(rs.buffer),Vo="type"in rs?Fi[rs.type]:Qs.dtype,gs=!!rs.normalized,ho=rs.size|0,Do=rs.offset|0,Lo=rs.stride|0,xs=rs.divisor|0)),ks=_.location,Ea=dt[ks],us===1?(Ea.buffer||Ie.enableVertexAttribArray(ks),Jn=ho||1,(Ea.type!==Vo||Ea.size!==Jn||Ea.buffer!==Qs||Ea.normalized!==gs||Ea.offset!==Do||Ea.stride!==Lo)&&(Ie.bindBuffer(34962,Qs.buffer),Ie.vertexAttribPointer(ks,Jn,Vo,gs,Lo,Do),Ea.type=Vo,Ea.size=Jn,Ea.buffer=Qs,Ea.normalized=gs,Ea.offset=Do,Ea.stride=Lo),Ea.divisor!==xs&&(gr.vertexAttribDivisorANGLE(ks,xs),Ea.divisor=xs)):(Ea.buffer&&(Ie.disableVertexAttribArray(ks),Ea.buffer=null),(Ea.x!==Ds||Ea.y!==fl||Ea.z!==as||Ea.w!==Ma)&&(Ie.vertexAttrib4f(ks,Ds,fl,as,Ma),Ea.x=Ds,Ea.y=fl,Ea.z=as,Ea.w=Ma)),Oo=b.call(this,xe,Ai,Zr),rl=!1,Gs=1,bs=0,zs=0,$o=0,Aa=0,os=null,_l=0,Ss=!1,po=5126,go=0,ss=0,qo=0,Mr(Oo)?(rl=!0,os=fe.createStream(34962,Oo),po=os.dtype):(os=fe.getBuffer(Oo),os?po=os.dtype:"constant"in Oo?(Gs=2,typeof Oo.constant=="number"?(bs=Oo.constant,zs=$o=Aa=0):(bs=Oo.constant.length>0?Oo.constant[0]:0,zs=Oo.constant.length>1?Oo.constant[1]:0,$o=Oo.constant.length>2?Oo.constant[2]:0,Aa=Oo.constant.length>3?Oo.constant[3]:0)):(Mr(Oo.buffer)?os=fe.createStream(34962,Oo.buffer):os=fe.getBuffer(Oo.buffer),po="type"in Oo?Fi[Oo.type]:os.dtype,Ss=!!Oo.normalized,_l=Oo.size|0,go=Oo.offset|0,ss=Oo.stride|0,qo=Oo.divisor|0)),zo=v.location,io=dt[zo],Gs===1?(io.buffer||Ie.enableVertexAttribArray(zo),Io=_l||1,(io.type!==po||io.size!==Io||io.buffer!==os||io.normalized!==Ss||io.offset!==go||io.stride!==ss)&&(Ie.bindBuffer(34962,os.buffer),Ie.vertexAttribPointer(zo,Io,po,Ss,ss,go),io.type=po,io.size=Io,io.buffer=os,io.normalized=Ss,io.offset=go,io.stride=ss),io.divisor!==qo&&(gr.vertexAttribDivisorANGLE(zo,qo),io.divisor=qo)):(io.buffer&&(Ie.disableVertexAttribArray(zo),io.buffer=null),(io.x!==bs||io.y!==zs||io.z!==$o||io.w!==Aa)&&(Ie.vertexAttrib4f(zo,bs,zs,$o,Aa),io.x=bs,io.y=zs,io.z=$o,io.w=Aa)),Da=k.call(this,xe,Ai,Zr),vs=!1,fs=1,cl=0,el=0,Hs=0,Ro=0,tl=null,Fs=0,hl=!1,Fa=5126,Ms=0,jo=0,Rs=0,Mr(Da)?(vs=!0,tl=fe.createStream(34962,Da),Fa=tl.dtype):(tl=fe.getBuffer(Da),tl?Fa=tl.dtype:"constant"in Da?(fs=2,typeof Da.constant=="number"?(cl=Da.constant,el=Hs=Ro=0):(cl=Da.constant.length>0?Da.constant[0]:0,el=Da.constant.length>1?Da.constant[1]:0,Hs=Da.constant.length>2?Da.constant[2]:0,Ro=Da.constant.length>3?Da.constant[3]:0)):(Mr(Da.buffer)?tl=fe.createStream(34962,Da.buffer):tl=fe.getBuffer(Da.buffer),Fa="type"in Da?Fi[Da.type]:tl.dtype,hl=!!Da.normalized,Fs=Da.size|0,Ms=Da.offset|0,jo=Da.stride|0,Rs=Da.divisor|0)),Is=E.location,Bs=dt[Is],fs===1?(Bs.buffer||Ie.enableVertexAttribArray(Is),At=Fs||1,(Bs.type!==Fa||Bs.size!==At||Bs.buffer!==tl||Bs.normalized!==hl||Bs.offset!==Ms||Bs.stride!==jo)&&(Ie.bindBuffer(34962,tl.buffer),Ie.vertexAttribPointer(Is,At,Fa,hl,jo,Ms),Bs.type=Fa,Bs.size=At,Bs.buffer=tl,Bs.normalized=hl,Bs.offset=Ms,Bs.stride=jo),Bs.divisor!==Rs&&(gr.vertexAttribDivisorANGLE(Is,Rs),Bs.divisor=Rs)):(Bs.buffer&&(Ie.disableVertexAttribArray(Is),Bs.buffer=null),(Bs.x!==cl||Bs.y!==el||Bs.z!==Hs||Bs.w!==Ro)&&(Ie.vertexAttrib4f(Is,cl,el,Hs,Ro),Bs.x=cl,Bs.y=el,Bs.z=Hs,Bs.w=Ro)),Gt=T.call(this,xe,Ai,Zr),wr=!1,mr=1,Or=0,gi=0,Ti=0,ki=0,Ji=null,Fn=0,Pi=!1,hi=5126,Li=0,Si=0,Gn=0,Mr(Gt)?(wr=!0,Ji=fe.createStream(34962,Gt),hi=Ji.dtype):(Ji=fe.getBuffer(Gt),Ji?hi=Ji.dtype:"constant"in Gt?(mr=2,typeof Gt.constant=="number"?(Or=Gt.constant,gi=Ti=ki=0):(Or=Gt.constant.length>0?Gt.constant[0]:0,gi=Gt.constant.length>1?Gt.constant[1]:0,Ti=Gt.constant.length>2?Gt.constant[2]:0,ki=Gt.constant.length>3?Gt.constant[3]:0)):(Mr(Gt.buffer)?Ji=fe.createStream(34962,Gt.buffer):Ji=fe.getBuffer(Gt.buffer),hi="type"in Gt?Fi[Gt.type]:Ji.dtype,Pi=!!Gt.normalized,Fn=Gt.size|0,Li=Gt.offset|0,Si=Gt.stride|0,Gn=Gt.divisor|0)),ta=L.location,ya=dt[ta],mr===1?(ya.buffer||Ie.enableVertexAttribArray(ta),ia=Fn||1,(ya.type!==hi||ya.size!==ia||ya.buffer!==Ji||ya.normalized!==Pi||ya.offset!==Li||ya.stride!==Si)&&(Ie.bindBuffer(34962,Ji.buffer),Ie.vertexAttribPointer(ta,ia,hi,Pi,Si,Li),ya.type=hi,ya.size=ia,ya.buffer=Ji,ya.normalized=Pi,ya.offset=Li,ya.stride=Si),ya.divisor!==Gn&&(gr.vertexAttribDivisorANGLE(ta,Gn),ya.divisor=Gn)):(ya.buffer&&(Ie.disableVertexAttribArray(ta),ya.buffer=null),(ya.x!==Or||ya.y!==gi||ya.z!==Ti||ya.w!==ki)&&(Ie.vertexAttrib4f(ta,Or,gi,Ti,ki),ya.x=Or,ya.y=gi,ya.z=Ti,ya.w=ki)),pa=x.call(this,xe,Ai,Zr),va=!1,zn=1,is=0,Cs=0,Ks=0,dl=0,xl=null,Bl=0,bl=!1,eu=5126,Zl=0,Ul=0,ja=0,Mr(pa)?(va=!0,xl=fe.createStream(34962,pa),eu=xl.dtype):(xl=fe.getBuffer(pa),xl?eu=xl.dtype:"constant"in pa?(zn=2,typeof pa.constant=="number"?(is=pa.constant,Cs=Ks=dl=0):(is=pa.constant.length>0?pa.constant[0]:0,Cs=pa.constant.length>1?pa.constant[1]:0,Ks=pa.constant.length>2?pa.constant[2]:0,dl=pa.constant.length>3?pa.constant[3]:0)):(Mr(pa.buffer)?xl=fe.createStream(34962,pa.buffer):xl=fe.getBuffer(pa.buffer),eu="type"in pa?Fi[pa.type]:xl.dtype,bl=!!pa.normalized,Bl=pa.size|0,Zl=pa.offset|0,Ul=pa.stride|0,ja=pa.divisor|0)),ns=C.location,Js=dt[ns],zn===1?(Js.buffer||Ie.enableVertexAttribArray(ns),cs=Bl||1,(Js.type!==eu||Js.size!==cs||Js.buffer!==xl||Js.normalized!==bl||Js.offset!==Zl||Js.stride!==Ul)&&(Ie.bindBuffer(34962,xl.buffer),Ie.vertexAttribPointer(ns,cs,eu,bl,Ul,Zl),Js.type=eu,Js.size=cs,Js.buffer=xl,Js.normalized=bl,Js.offset=Zl,Js.stride=Ul),Js.divisor!==ja&&(gr.vertexAttribDivisorANGLE(ns,ja),Js.divisor=ja)):(Js.buffer&&(Ie.disableVertexAttribArray(ns),Js.buffer=null),(Js.x!==is||Js.y!==Cs||Js.z!==Ks||Js.w!==dl)&&(Ie.vertexAttrib4f(ns,is,Cs,Ks,dl),Js.x=is,Js.y=Cs,Js.z=Ks,Js.w=dl)),sl=M.call(this,xe,Ai,Zr),ll=!1,il=1,zl=0,Ml=0,Rl=0,Al=0,Ll=null,ms=0,Os=!1,Xl=5126,Vl=0,Nl=0,le=0,Mr(sl)?(ll=!0,Ll=fe.createStream(34962,sl),Xl=Ll.dtype):(Ll=fe.getBuffer(sl),Ll?Xl=Ll.dtype:"constant"in sl?(il=2,typeof sl.constant=="number"?(zl=sl.constant,Ml=Rl=Al=0):(zl=sl.constant.length>0?sl.constant[0]:0,Ml=sl.constant.length>1?sl.constant[1]:0,Rl=sl.constant.length>2?sl.constant[2]:0,Al=sl.constant.length>3?sl.constant[3]:0)):(Mr(sl.buffer)?Ll=fe.createStream(34962,sl.buffer):Ll=fe.getBuffer(sl.buffer),Xl="type"in sl?Fi[sl.type]:Ll.dtype,Os=!!sl.normalized,ms=sl.size|0,Vl=sl.offset|0,Nl=sl.stride|0,le=sl.divisor|0)),w=m.location,q=dt[w],il===1?(q.buffer||Ie.enableVertexAttribArray(w),Q=ms||1,(q.type!==Xl||q.size!==Q||q.buffer!==Ll||q.normalized!==Os||q.offset!==Vl||q.stride!==Nl)&&(Ie.bindBuffer(34962,Ll.buffer),Ie.vertexAttribPointer(w,Q,Xl,Os,Nl,Vl),q.type=Xl,q.size=Q,q.buffer=Ll,q.normalized=Os,q.offset=Vl,q.stride=Nl),q.divisor!==le&&(gr.vertexAttribDivisorANGLE(w,le),q.divisor=le)):(q.buffer&&(Ie.disableVertexAttribArray(w),q.buffer=null),(q.x!==zl||q.y!==Ml||q.z!==Rl||q.w!==Al)&&(Ie.vertexAttrib4f(w,zl,Ml,Rl,Al),q.x=zl,q.y=Ml,q.z=Rl,q.w=Al)),ee=Ai.markerTexture,ee&&ee._reglType==="framebuffer"&&(ee=ee.color[0]),ue=ee._texture,Ie.uniform1i(A.location,ue.bind()),Ge=Ai.opacity,(!Zr||et!==Ge)&&(et=Ge,Ie.uniform1f(B.location,Ge)),mt=U.call(this,xe,Ai,Zr),Ft=mt[0],or=mt[1],(!Zr||ir!==Ft||kr!==or)&&(ir=Ft,kr=or,Ie.uniform2f(F.location,Ft,or)),Vr=xe.pixelRatio,(!Zr||he!==Vr)&&(he=Vr,Ie.uniform1f(H.location,Vr)),Se=Ai.scale,qe=Se[0],lt=Se[1],(!Zr||He!==qe||tt!==lt)&&(He=qe,tt=lt,Ie.uniform2f(N.location,qe,lt)),pt=Ai.scaleFract,Ht=pt[0],fr=pt[1],(!Zr||nr!==Ht||Ar!==fr)&&(nr=Ht,Ar=fr,Ie.uniform2f(W.location,Ht,fr)),Rr=Ai.translate,ri=Rr[0],Mi=Rr[1],(!Zr||si!==ri||hn!==Mi)&&(si=ri,hn=Mi,Ie.uniform2f(re.location,ri,Mi)),Zn=Ai.translateFract,Yn=Zn[0],Fo=Zn[1],(!Zr||Ua!==Yn||vl!==Fo)&&(Ua=Yn,vl=Fo,Ie.uniform2f(ae.location,Yn,Fo)),Us=Ai.elements,ml=null,au=Mr(Us),au?ml=ge.createStream(Us):ml=ge.getElements(Us),ml&&Ie.bindBuffer(34963,ml.buffer.buffer),Sl=Ai.offset,Yl=Ai.count,Yl&&(Ba>0?ml?gr.drawElementsInstancedANGLE(0,Yl,ml.type,Sl<<(ml.type-5121>>1),Ba):gr.drawArraysInstancedANGLE(0,Sl,Yl,Ba):Ba<0&&(ml?Ie.drawElements(0,Yl,ml.type,Sl<<(ml.type-5121>>1)):Ie.drawArrays(0,Sl,Yl)),xe.viewportWidth=vn,xe.viewportHeight=da,No&&fe.destroyStream(Oa),Ka&&fe.destroyStream(sa),Ws&&fe.destroyStream(To),$s&&fe.destroyStream(Qs),rl&&fe.destroyStream(os),vs&&fe.destroyStream(tl),wr&&fe.destroyStream(Ji),va&&fe.destroyStream(xl),ll&&fe.destroyStream(Ll),ue.unbind(),au&&ge.destroyStream(ml))}j.unbind(),De.dirty=!0,It.setVAO(null),tr&&(r.cpuTime+=performance.now()-pr)}}}});var P8=Te((K_r,NNe)=>{NNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt,Nt,it,Ye,kt,Tt,St,Rt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br){"use strict";var Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi;return Ut=t.gl,Ie=t.context,xe=t.strings,Oe=t.next,Re=t.current,De=t.draw,ct=t.elements,ge=t.buffer,fe=t.shader,pe=t.attributes,dt=t.vao,It=t.uniforms,Pt=t.framebuffer,rr=t.extensions,Hr=t.timer,Dr=t.isBufferArgs,Mr=Oe.blend_color,Fr=Re.blend_color,di=Oe.blend_equation,Di=Re.blend_equation,Ii=Oe.blend_func,Ci=Re.blend_func,nn=Oe.depth_range,ii=Re.depth_range,wi=Oe.colorMask,Gi=Re.colorMask,Bt=Oe.polygonOffset_offset,yt=Re.polygonOffset_offset,Vt=Oe.sample_coverage,Wt=Re.sample_coverage,_r=Oe.stencil_func,Lr=Re.stencil_func,Ur=Oe.stencil_opFront,Ir=Re.stencil_opFront,Gr=Oe.stencil_opBack,jr=Re.stencil_opBack,yi=Oe.scissor_box,Ei=Re.scissor_box,Vi=Oe.viewport,ti=Re.viewport,en={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Yr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},oi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Bi={add:32774,subtract:32778,"reverse subtract":32779},an={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},rn={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Fi={cw:2304,ccw:2305},{draw:function(Ri){var xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Ul,ja,ns,Js,cs,sl;if(xn=rr.angle_instanced_arrays,xi=Pt.next,xi!==Pt.cur&&(xi?Ut.bindFramebuffer(36160,xi.framebuffer):Ut.bindFramebuffer(36160,null),Pt.cur=xi),Re.dirty){var ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Vl,Nl,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht;ll=Oe.dither,ll!==Re.dither&&(ll?Ut.enable(3024):Ut.disable(3024),Re.dither=ll),il=di[0],zl=di[1],(il!==Di[0]||zl!==Di[1])&&(Ut.blendEquationSeparate(il,zl),Di[0]=il,Di[1]=zl),Ml=Oe.depth_func,Ml!==Re.depth_func&&(Ut.depthFunc(Ml),Re.depth_func=Ml),Rl=nn[0],Al=nn[1],(Rl!==ii[0]||Al!==ii[1])&&(Ut.depthRange(Rl,Al),ii[0]=Rl,ii[1]=Al),Ll=Oe.depth_mask,Ll!==Re.depth_mask&&(Ut.depthMask(Ll),Re.depth_mask=Ll),ms=wi[0],Os=wi[1],Xl=wi[2],Vl=wi[3],(ms!==Gi[0]||Os!==Gi[1]||Xl!==Gi[2]||Vl!==Gi[3])&&(Ut.colorMask(ms,Os,Xl,Vl),Gi[0]=ms,Gi[1]=Os,Gi[2]=Xl,Gi[3]=Vl),Nl=Oe.cull_enable,Nl!==Re.cull_enable&&(Nl?Ut.enable(2884):Ut.disable(2884),Re.cull_enable=Nl),le=Oe.cull_face,le!==Re.cull_face&&(Ut.cullFace(le),Re.cull_face=le),w=Oe.frontFace,w!==Re.frontFace&&(Ut.frontFace(w),Re.frontFace=w),q=Oe.lineWidth,q!==Re.lineWidth&&(Ut.lineWidth(q),Re.lineWidth=q),Q=Oe.polygonOffset_enable,Q!==Re.polygonOffset_enable&&(Q?Ut.enable(32823):Ut.disable(32823),Re.polygonOffset_enable=Q),ee=Bt[0],ue=Bt[1],(ee!==yt[0]||ue!==yt[1])&&(Ut.polygonOffset(ee,ue),yt[0]=ee,yt[1]=ue),Ge=Oe.sample_alpha,Ge!==Re.sample_alpha&&(Ge?Ut.enable(32926):Ut.disable(32926),Re.sample_alpha=Ge),et=Oe.sample_enable,et!==Re.sample_enable&&(et?Ut.enable(32928):Ut.disable(32928),Re.sample_enable=et),mt=Vt[0],Ft=Vt[1],(mt!==Wt[0]||Ft!==Wt[1])&&(Ut.sampleCoverage(mt,Ft),Wt[0]=mt,Wt[1]=Ft),ir=Oe.stencil_mask,ir!==Re.stencil_mask&&(Ut.stencilMask(ir),Re.stencil_mask=ir),or=_r[0],kr=_r[1],Vr=_r[2],(or!==Lr[0]||kr!==Lr[1]||Vr!==Lr[2])&&(Ut.stencilFunc(or,kr,Vr),Lr[0]=or,Lr[1]=kr,Lr[2]=Vr),he=Ur[0],Se=Ur[1],qe=Ur[2],He=Ur[3],(he!==Ir[0]||Se!==Ir[1]||qe!==Ir[2]||He!==Ir[3])&&(Ut.stencilOpSeparate(he,Se,qe,He),Ir[0]=he,Ir[1]=Se,Ir[2]=qe,Ir[3]=He),lt=Gr[0],tt=Gr[1],pt=Gr[2],Ht=Gr[3],(lt!==jr[0]||tt!==jr[1]||pt!==jr[2]||Ht!==jr[3])&&(Ut.stencilOpSeparate(lt,tt,pt,Ht),jr[0]=lt,jr[1]=tt,jr[2]=pt,jr[3]=Ht)}Xr=Ri.viewport,ft=Xr.x|0,tr=Xr.y|0,pr="width"in Xr?Xr.width|0:Ie.framebufferWidth-ft,gr="height"in Xr?Xr.height|0:Ie.framebufferHeight-tr,Zr=Ie.viewportWidth,Ie.viewportWidth=pr,Ai=Ie.viewportHeight,Ie.viewportHeight=gr,Ut.viewport(ft,tr,pr,gr),ti[0]=ft,ti[1]=tr,ti[2]=pr,ti[3]=gr,Ut.blendColor(0,0,0,1),Fr[0]=0,Fr[1]=0,Fr[2]=0,Fr[3]=1,n?Ut.enable(3042):Ut.disable(3042),Re.blend_enable=n,Ut.blendFuncSeparate(770,771,773,1),Ci[0]=770,Ci[1]=771,Ci[2]=773,Ci[3]=1,i?Ut.enable(2929):Ut.disable(2929),Re.depth_enable=i,Qi=Ri.viewport,ni=Qi.x|0,Zi=Qi.y|0,aa="width"in Qi?Qi.width|0:Ie.framebufferWidth-ni,Mn="height"in Qi?Qi.height|0:Ie.framebufferHeight-Zi,Ut.scissor(ni,Zi,aa,Mn),Ei[0]=ni,Ei[1]=Zi,Ei[2]=aa,Ei[3]=Mn,a?Ut.enable(3089):Ut.disable(3089),Re.scissor_enable=a,o?Ut.enable(2960):Ut.disable(2960),Re.stencil_enable=o,Un=Re.profile,Un&&(Ga=performance.now(),r.count++),Ut.useProgram(s.program),ma=rr.angle_instanced_arrays,dt.setVAO(null),oa=u.call(this,Ie,Ri,0),ka=!1,so=1,Kr=0,Ia=0,Yo=0,fa=0,kn=null,Ta=0,ys=!1,uo=5126,ls=0,$a=0,fo=0,Dr(oa)?(ka=!0,kn=ge.createStream(34962,oa),uo=kn.dtype):(kn=ge.getBuffer(oa),kn?uo=kn.dtype:"constant"in oa?(so=2,typeof oa.constant=="number"?(Kr=oa.constant,Ia=Yo=fa=0):(Kr=oa.constant.length>0?oa.constant[0]:0,Ia=oa.constant.length>1?oa.constant[1]:0,Yo=oa.constant.length>2?oa.constant[2]:0,fa=oa.constant.length>3?oa.constant[3]:0)):(Dr(oa.buffer)?kn=ge.createStream(34962,oa.buffer):kn=ge.getBuffer(oa.buffer),uo="type"in oa?rn[oa.type]:kn.dtype,ys=!!oa.normalized,Ta=oa.size|0,ls=oa.offset|0,$a=oa.stride|0,fo=oa.divisor|0)),mn=l.location,ra=pe[mn],so===1?(ra.buffer||Ut.enableVertexAttribArray(mn),wa=Ta||4,(ra.type!==uo||ra.size!==wa||ra.buffer!==kn||ra.normalized!==ys||ra.offset!==ls||ra.stride!==$a)&&(Ut.bindBuffer(34962,kn.buffer),Ut.vertexAttribPointer(mn,wa,uo,ys,$a,ls),ra.type=uo,ra.size=wa,ra.buffer=kn,ra.normalized=ys,ra.offset=ls,ra.stride=$a),ra.divisor!==fo&&(ma.vertexAttribDivisorANGLE(mn,fo),ra.divisor=fo)):(ra.buffer&&(Ut.disableVertexAttribArray(mn),ra.buffer=null),(ra.x!==Kr||ra.y!==Ia||ra.z!==Yo||ra.w!==fa)&&(Ut.vertexAttrib4f(mn,Kr,Ia,Yo,fa),ra.x=Kr,ra.y=Ia,ra.z=Yo,ra.w=fa)),ws=f.call(this,Ie,Ri,0),Co=!1,Po=1,ji=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Wi=0,Sa=0,Dr(ws)?(Co=!0,Sn=ge.createStream(34962,ws),Ko=Sn.dtype):(Sn=ge.getBuffer(ws),Sn?Ko=Sn.dtype:"constant"in ws?(Po=2,typeof ws.constant=="number"?(ji=ws.constant,gn=Ps=Ha=0):(ji=ws.constant.length>0?ws.constant[0]:0,gn=ws.constant.length>1?ws.constant[1]:0,Ps=ws.constant.length>2?ws.constant[2]:0,Ha=ws.constant.length>3?ws.constant[3]:0)):(Dr(ws.buffer)?Sn=ge.createStream(34962,ws.buffer):Sn=ge.getBuffer(ws.buffer),Ko="type"in ws?rn[ws.type]:Sn.dtype,Ba=!!ws.normalized,ao=ws.size|0,Qo=ws.offset|0,Wi=ws.stride|0,Sa=ws.divisor|0)),Qa=c.location,vn=pe[Qa],Po===1?(vn.buffer||Ut.enableVertexAttribArray(Qa),da=ao||1,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Wi)&&(Ut.bindBuffer(34962,Sn.buffer),Ut.vertexAttribPointer(Qa,da,Ko,Ba,Wi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Wi),vn.divisor!==Sa&&(ma.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(Ut.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==ji||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(Ut.vertexAttrib4f(Qa,ji,gn,Ps,Ha),vn.x=ji,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=h.call(this,Ie,Ri,0),vo=!1,As=1,ps=0,co=0,mo=0,No=0,jn=null,Go=0,Ys=!1,qs=5126,Ns=0,Oa=0,ha=0,Dr(la)?(vo=!0,jn=ge.createStream(34962,la),qs=jn.dtype):(jn=ge.getBuffer(la),jn?qs=jn.dtype:"constant"in la?(As=2,typeof la.constant=="number"?(ps=la.constant,co=mo=No=0):(ps=la.constant.length>0?la.constant[0]:0,co=la.constant.length>1?la.constant[1]:0,mo=la.constant.length>2?la.constant[2]:0,No=la.constant.length>3?la.constant[3]:0)):(Dr(la.buffer)?jn=ge.createStream(34962,la.buffer):jn=ge.getBuffer(la.buffer),qs="type"in la?rn[la.type]:jn.dtype,Ys=!!la.normalized,Go=la.size|0,Ns=la.offset|0,Oa=la.stride|0,ha=la.divisor|0)),Vs=d.location,Ya=pe[Vs],As===1?(Ya.buffer||Ut.enableVertexAttribArray(Vs),_n=Go||4,(Ya.type!==qs||Ya.size!==_n||Ya.buffer!==jn||Ya.normalized!==Ys||Ya.offset!==Ns||Ya.stride!==Oa)&&(Ut.bindBuffer(34962,jn.buffer),Ut.vertexAttribPointer(Vs,_n,qs,Ys,Oa,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Oa),Ya.divisor!==ha&&(ma.vertexAttribDivisorANGLE(Vs,ha),Ya.divisor=ha)):(Ya.buffer&&(Ut.disableVertexAttribArray(Vs),Ya.buffer=null),(Ya.x!==ps||Ya.y!==co||Ya.z!==mo||Ya.w!==No)&&(Ut.vertexAttrib4f(Vs,ps,co,mo,No),Ya.x=ps,Ya.y=co,Ya.z=mo,Ya.w=No)),Vn=p.call(this,Ie,Ri,0),wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,Dr(Vn)?(wo=!0,qn=ge.createStream(34962,Vn),lo=qn.dtype):(qn=ge.getBuffer(Vn),qn?lo=qn.dtype:"constant"in Vn?(Ra=2,typeof Vn.constant=="number"?(Xn=Vn.constant,un=$n=Ka=0):(Xn=Vn.constant.length>0?Vn.constant[0]:0,un=Vn.constant.length>1?Vn.constant[1]:0,$n=Vn.constant.length>2?Vn.constant[2]:0,Ka=Vn.constant.length>3?Vn.constant[3]:0)):(Dr(Vn.buffer)?qn=ge.createStream(34962,Vn.buffer):qn=ge.getBuffer(Vn.buffer),lo="type"in Vn?rn[Vn.type]:qn.dtype,Ja=!!Vn.normalized,Eo=Vn.size|0,eo=Vn.offset|0,sa=Vn.stride|0,es=Vn.divisor|0)),Na=_.location,tn=pe[Na],Ra===1?(tn.buffer||Ut.enableVertexAttribArray(Na),Pa=Eo||1,(tn.type!==lo||tn.size!==Pa||tn.buffer!==qn||tn.normalized!==Ja||tn.offset!==eo||tn.stride!==sa)&&(Ut.bindBuffer(34962,qn.buffer),Ut.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),tn.type=lo,tn.size=Pa,tn.buffer=qn,tn.normalized=Ja,tn.offset=eo,tn.stride=sa),tn.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),tn.divisor=es)):(tn.buffer&&(Ut.disableVertexAttribArray(Na),tn.buffer=null),(tn.x!==Xn||tn.y!==un||tn.z!==$n||tn.w!==Ka)&&(Ut.vertexAttrib4f(Na,Xn,un,$n,Ka),tn.x=Xn,tn.y=un,tn.z=$n,tn.w=Ka)),to=b.call(this,Ie,Ri,0),yo=!1,Jo=1,Ao=0,Dn=0,_a=0,Ws=0,Ca=null,Es=0,Ts=!1,Ho=5126,Wa=0,To=0,ts=0,Dr(to)?(yo=!0,Ca=ge.createStream(34962,to),Ho=Ca.dtype):(Ca=ge.getBuffer(to),Ca?Ho=Ca.dtype:"constant"in to?(Jo=2,typeof to.constant=="number"?(Ao=to.constant,Dn=_a=Ws=0):(Ao=to.constant.length>0?to.constant[0]:0,Dn=to.constant.length>1?to.constant[1]:0,_a=to.constant.length>2?to.constant[2]:0,Ws=to.constant.length>3?to.constant[3]:0)):(Dr(to.buffer)?Ca=ge.createStream(34962,to.buffer):Ca=ge.getBuffer(to.buffer),Ho="type"in to?rn[to.type]:Ca.dtype,Ts=!!to.normalized,Es=to.size|0,Wa=to.offset|0,To=to.stride|0,ts=to.divisor|0)),Wo=v.location,qa=pe[Wo],Jo===1?(qa.buffer||Ut.enableVertexAttribArray(Wo),ln=Es||1,(qa.type!==Ho||qa.size!==ln||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&(Ut.bindBuffer(34962,Ca.buffer),Ut.vertexAttribPointer(Wo,ln,Ho,Ts,To,Wa),qa.type=Ho,qa.size=ln,qa.buffer=Ca,qa.normalized=Ts,qa.offset=Wa,qa.stride=To),qa.divisor!==ts&&(ma.vertexAttribDivisorANGLE(Wo,ts),qa.divisor=ts)):(qa.buffer&&(Ut.disableVertexAttribArray(Wo),qa.buffer=null),(qa.x!==Ao||qa.y!==Dn||qa.z!==_a||qa.w!==Ws)&&(Ut.vertexAttrib4f(Wo,Ao,Dn,_a,Ws),qa.x=Ao,qa.y=Dn,qa.z=_a,qa.w=Ws)),Bo=k.call(this,Ie,Ri,0),ko=!1,oo=1,za=0,ea=0,rs=0,$s=0,us=null,Ds=0,fl=!1,as=5126,Ma=0,Qs=0,ho=0,Dr(Bo)?(ko=!0,us=ge.createStream(34962,Bo),as=us.dtype):(us=ge.getBuffer(Bo),us?as=us.dtype:"constant"in Bo?(oo=2,typeof Bo.constant=="number"?(za=Bo.constant,ea=rs=$s=0):(za=Bo.constant.length>0?Bo.constant[0]:0,ea=Bo.constant.length>1?Bo.constant[1]:0,rs=Bo.constant.length>2?Bo.constant[2]:0,$s=Bo.constant.length>3?Bo.constant[3]:0)):(Dr(Bo.buffer)?us=ge.createStream(34962,Bo.buffer):us=ge.getBuffer(Bo.buffer),as="type"in Bo?rn[Bo.type]:us.dtype,fl=!!Bo.normalized,Ds=Bo.size|0,Ma=Bo.offset|0,Qs=Bo.stride|0,ho=Bo.divisor|0)),gs=E.location,Vo=pe[gs],oo===1?(Vo.buffer||Ut.enableVertexAttribArray(gs),Do=Ds||1,(Vo.type!==as||Vo.size!==Do||Vo.buffer!==us||Vo.normalized!==fl||Vo.offset!==Ma||Vo.stride!==Qs)&&(Ut.bindBuffer(34962,us.buffer),Ut.vertexAttribPointer(gs,Do,as,fl,Qs,Ma),Vo.type=as,Vo.size=Do,Vo.buffer=us,Vo.normalized=fl,Vo.offset=Ma,Vo.stride=Qs),Vo.divisor!==ho&&(ma.vertexAttribDivisorANGLE(gs,ho),Vo.divisor=ho)):(Vo.buffer&&(Ut.disableVertexAttribArray(gs),Vo.buffer=null),(Vo.x!==za||Vo.y!==ea||Vo.z!==rs||Vo.w!==$s)&&(Ut.vertexAttrib4f(gs,za,ea,rs,$s),Vo.x=za,Vo.y=ea,Vo.z=rs,Vo.w=$s)),Lo=T.call(this,Ie,Ri,0),xs=!1,ks=1,Ea=0,Jn=0,Oo=0,rl=0,Gs=null,bs=0,zs=!1,$o=5126,Aa=0,os=0,_l=0,Dr(Lo)?(xs=!0,Gs=ge.createStream(34962,Lo),$o=Gs.dtype):(Gs=ge.getBuffer(Lo),Gs?$o=Gs.dtype:"constant"in Lo?(ks=2,typeof Lo.constant=="number"?(Ea=Lo.constant,Jn=Oo=rl=0):(Ea=Lo.constant.length>0?Lo.constant[0]:0,Jn=Lo.constant.length>1?Lo.constant[1]:0,Oo=Lo.constant.length>2?Lo.constant[2]:0,rl=Lo.constant.length>3?Lo.constant[3]:0)):(Dr(Lo.buffer)?Gs=ge.createStream(34962,Lo.buffer):Gs=ge.getBuffer(Lo.buffer),$o="type"in Lo?rn[Lo.type]:Gs.dtype,zs=!!Lo.normalized,bs=Lo.size|0,Aa=Lo.offset|0,os=Lo.stride|0,_l=Lo.divisor|0)),Ss=L.location,po=pe[Ss],ks===1?(po.buffer||Ut.enableVertexAttribArray(Ss),go=bs||1,(po.type!==$o||po.size!==go||po.buffer!==Gs||po.normalized!==zs||po.offset!==Aa||po.stride!==os)&&(Ut.bindBuffer(34962,Gs.buffer),Ut.vertexAttribPointer(Ss,go,$o,zs,os,Aa),po.type=$o,po.size=go,po.buffer=Gs,po.normalized=zs,po.offset=Aa,po.stride=os),po.divisor!==_l&&(ma.vertexAttribDivisorANGLE(Ss,_l),po.divisor=_l)):(po.buffer&&(Ut.disableVertexAttribArray(Ss),po.buffer=null),(po.x!==Ea||po.y!==Jn||po.z!==Oo||po.w!==rl)&&(Ut.vertexAttrib4f(Ss,Ea,Jn,Oo,rl),po.x=Ea,po.y=Jn,po.z=Oo,po.w=rl)),ss=x.call(this,Ie,Ri,0),qo=!1,zo=1,io=0,Io=0,Da=0,vs=0,fs=null,cl=0,el=!1,Hs=5126,Ro=0,tl=0,Fs=0,Dr(ss)?(qo=!0,fs=ge.createStream(34962,ss),Hs=fs.dtype):(fs=ge.getBuffer(ss),fs?Hs=fs.dtype:"constant"in ss?(zo=2,typeof ss.constant=="number"?(io=ss.constant,Io=Da=vs=0):(io=ss.constant.length>0?ss.constant[0]:0,Io=ss.constant.length>1?ss.constant[1]:0,Da=ss.constant.length>2?ss.constant[2]:0,vs=ss.constant.length>3?ss.constant[3]:0)):(Dr(ss.buffer)?fs=ge.createStream(34962,ss.buffer):fs=ge.getBuffer(ss.buffer),Hs="type"in ss?rn[ss.type]:fs.dtype,el=!!ss.normalized,cl=ss.size|0,Ro=ss.offset|0,tl=ss.stride|0,Fs=ss.divisor|0)),hl=C.location,Fa=pe[hl],zo===1?(Fa.buffer||Ut.enableVertexAttribArray(hl),Ms=cl||1,(Fa.type!==Hs||Fa.size!==Ms||Fa.buffer!==fs||Fa.normalized!==el||Fa.offset!==Ro||Fa.stride!==tl)&&(Ut.bindBuffer(34962,fs.buffer),Ut.vertexAttribPointer(hl,Ms,Hs,el,tl,Ro),Fa.type=Hs,Fa.size=Ms,Fa.buffer=fs,Fa.normalized=el,Fa.offset=Ro,Fa.stride=tl),Fa.divisor!==Fs&&(ma.vertexAttribDivisorANGLE(hl,Fs),Fa.divisor=Fs)):(Fa.buffer&&(Ut.disableVertexAttribArray(hl),Fa.buffer=null),(Fa.x!==io||Fa.y!==Io||Fa.z!==Da||Fa.w!==vs)&&(Ut.vertexAttrib4f(hl,io,Io,Da,vs),Fa.x=io,Fa.y=Io,Fa.z=Da,Fa.w=vs)),jo=M.call(this,Ie,Ri,0),Rs=!1,Is=1,Bs=0,At=0,Gt=0,wr=0,mr=null,Or=0,gi=!1,Ti=5126,ki=0,Ji=0,Fn=0,Dr(jo)?(Rs=!0,mr=ge.createStream(34962,jo),Ti=mr.dtype):(mr=ge.getBuffer(jo),mr?Ti=mr.dtype:"constant"in jo?(Is=2,typeof jo.constant=="number"?(Bs=jo.constant,At=Gt=wr=0):(Bs=jo.constant.length>0?jo.constant[0]:0,At=jo.constant.length>1?jo.constant[1]:0,Gt=jo.constant.length>2?jo.constant[2]:0,wr=jo.constant.length>3?jo.constant[3]:0)):(Dr(jo.buffer)?mr=ge.createStream(34962,jo.buffer):mr=ge.getBuffer(jo.buffer),Ti="type"in jo?rn[jo.type]:mr.dtype,gi=!!jo.normalized,Or=jo.size|0,ki=jo.offset|0,Ji=jo.stride|0,Fn=jo.divisor|0)),Pi=m.location,hi=pe[Pi],Is===1?(hi.buffer||Ut.enableVertexAttribArray(Pi),Li=Or||1,(hi.type!==Ti||hi.size!==Li||hi.buffer!==mr||hi.normalized!==gi||hi.offset!==ki||hi.stride!==Ji)&&(Ut.bindBuffer(34962,mr.buffer),Ut.vertexAttribPointer(Pi,Li,Ti,gi,Ji,ki),hi.type=Ti,hi.size=Li,hi.buffer=mr,hi.normalized=gi,hi.offset=ki,hi.stride=Ji),hi.divisor!==Fn&&(ma.vertexAttribDivisorANGLE(Pi,Fn),hi.divisor=Fn)):(hi.buffer&&(Ut.disableVertexAttribArray(Pi),hi.buffer=null),(hi.x!==Bs||hi.y!==At||hi.z!==Gt||hi.w!==wr)&&(Ut.vertexAttrib4f(Pi,Bs,At,Gt,wr),hi.x=Bs,hi.y=At,hi.z=Gt,hi.w=wr)),Ut.uniform1i(P.location,!1),Si=Ri.opacity,Ut.uniform1f(A.location,Si),Gn=F.call(this,Ie,Ri,0),ta=Gn[0],ya=Gn[1],Ut.uniform2f(B.location,ta,ya),Ut.uniform1i(U.location,G.bind()),ia=Ie.pixelRatio,Ut.uniform1f(j.location,ia),pa=Ri.scale,va=pa[0],zn=pa[1],Ut.uniform2f(H.location,va,zn),is=Ri.scaleFract,Cs=is[0],Ks=is[1],Ut.uniform2f(N.location,Cs,Ks),dl=Ri.translate,xl=dl[0],Bl=dl[1],Ut.uniform2f(W.location,xl,Bl),bl=Ri.translateFract,eu=bl[0],Zl=bl[1],Ut.uniform2f(re.location,eu,Zl),Ul=Ri.elements,ja=null,ns=Dr(Ul),ns?ja=ct.createStream(Ul):ja=ct.getElements(Ul),ja&&Ut.bindBuffer(34963,ja.buffer.buffer),Js=Ri.offset,cs=Ri.count,cs&&(sl=De.instances,sl>0?ja?ma.drawElementsInstancedANGLE(0,cs,ja.type,Js<<(ja.type-5121>>1),sl):ma.drawArraysInstancedANGLE(0,Js,cs,sl):sl<0&&(ja?Ut.drawElements(0,cs,ja.type,Js<<(ja.type-5121>>1)):Ut.drawArrays(0,Js,cs)),Re.dirty=!0,dt.setVAO(null),Ie.viewportWidth=Zr,Ie.viewportHeight=Ai,Un&&(r.cpuTime+=performance.now()-Ga),ka&&ge.destroyStream(kn),Co&&ge.destroyStream(Sn),vo&&ge.destroyStream(jn),wo&&ge.destroyStream(qn),yo&&ge.destroyStream(Ca),ko&&ge.destroyStream(us),xs&&ge.destroyStream(Gs),qo&&ge.destroyStream(fs),Rs&&ge.destroyStream(mr),G.unbind(),ns&&ct.destroyStream(ja))},scope:function(Ri,xn,xi){var Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Ul,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Vl,Nl,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,Ol,ou,Pu,iu,tu,Wu,Qu,Ju,ju,Xu,lf,xf,ef,tf,Z,se,ze,Xe,Qe,ot,jt,_t,cr,Cr,zr,ui,$r,Oi,fn,vi,zi,Xi,pn,sn,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Zu,Gu,rf,ds,Wl,Au,Tu,uf,df,Ef;Xr=Ri.viewport,ft=Xr.x|0,tr=Xr.y|0,pr="width"in Xr?Xr.width|0:Ie.framebufferWidth-ft,gr="height"in Xr?Xr.height|0:Ie.framebufferHeight-tr,Zr=Ie.viewportWidth,Ie.viewportWidth=pr,Ai=Ie.viewportHeight,Ie.viewportHeight=gr,Qi=Vi[0],Vi[0]=ft,ni=Vi[1],Vi[1]=tr,Zi=Vi[2],Vi[2]=pr,aa=Vi[3],Vi[3]=gr,Mn=Mr[0],Mr[0]=ae,Un=Mr[1],Mr[1]=be,Ga=Mr[2],Mr[2]=Pe,ma=Mr[3],Mr[3]=Ce,oa=Oe.blend_enable,Oe.blend_enable=de,ka=Ii[0],Ii[0]=te,so=Ii[1],Ii[1]=ke,Kr=Ii[2],Ii[2]=Ee,Ia=Ii[3],Ii[3]=Me,Yo=Oe.depth_enable,Oe.depth_enable=Ne,fa=Ri.viewport,kn=fa.x|0,Ta=fa.y|0,ys="width"in fa?fa.width|0:Ie.framebufferWidth-kn,uo="height"in fa?fa.height|0:Ie.framebufferHeight-Ta,ls=yi[0],yi[0]=kn,$a=yi[1],yi[1]=Ta,fo=yi[2],yi[2]=ys,mn=yi[3],yi[3]=uo,ra=Oe.scissor_enable,Oe.scissor_enable=Fe,wa=Oe.stencil_enable,Oe.stencil_enable=ye,ws=Re.profile,ws&&(Co=performance.now(),r.count++),Po=Ri.elements,ji=null,gn=Dr(Po),gn?ji=ct.createStream(Po):ji=ct.getElements(Po),Ps=De.elements,De.elements=ji,Ha=Ri.offset,Sn=De.offset,De.offset=Ha,ao=Ri.count,Ba=De.count,De.count=ao,Ko=De.primitive,De.primitive=Ve,Qo=It[ce],It[ce]=!1,Wi=It[nt],It[nt]=Ke,Sa=Ri.opacity,Qa=It[gt],It[gt]=Sa,vn=F.call(this,Ie,Ri,xi),da=It[Nt],It[Nt]=vn,la=Ie.pixelRatio,vo=It[it],It[it]=la,As=Ri.scale,ps=It[Ye],It[Ye]=As,co=Ri.scaleFract,mo=It[kt],It[kt]=co,No=Ri.translate,jn=It[Tt],It[Tt]=No,Go=Ri.translateFract,Ys=It[St],It[St]=Go,qs=Ri.markerTexture,Ns=It[Rt],It[Rt]=qs,Oa=k.call(this,Ie,Ri,xi),ha=!1,Vs=1,Ya=0,_n=0,Vn=0,wo=0,Ra=null,Xn=0,un=!1,$n=5126,Ka=0,qn=0,Eo=0,Dr(Oa)?(ha=!0,Ra=ge.createStream(34962,Oa),$n=Ra.dtype):(Ra=ge.getBuffer(Oa),Ra?$n=Ra.dtype:"constant"in Oa?(Vs=2,typeof Oa.constant=="number"?(Ya=Oa.constant,_n=Vn=wo=0):(Ya=Oa.constant.length>0?Oa.constant[0]:0,_n=Oa.constant.length>1?Oa.constant[1]:0,Vn=Oa.constant.length>2?Oa.constant[2]:0,wo=Oa.constant.length>3?Oa.constant[3]:0)):(Dr(Oa.buffer)?Ra=ge.createStream(34962,Oa.buffer):Ra=ge.getBuffer(Oa.buffer),$n="type"in Oa?rn[Oa.type]:Ra.dtype,un=!!Oa.normalized,Xn=Oa.size|0,Ka=Oa.offset|0,qn=Oa.stride|0,Eo=Oa.divisor|0)),Ja=Zt.state,Zt.state=Vs,lo=Zt.x,Zt.x=Ya,eo=Zt.y,Zt.y=_n,sa=Zt.z,Zt.z=Vn,es=Zt.w,Zt.w=wo,Na=Zt.buffer,Zt.buffer=Ra,tn=Zt.size,Zt.size=Xn,Pa=Zt.normalized,Zt.normalized=un,to=Zt.type,Zt.type=$n,yo=Zt.offset,Zt.offset=Ka,Jo=Zt.stride,Zt.stride=qn,Ao=Zt.divisor,Zt.divisor=Eo,Dn=x.call(this,Ie,Ri,xi),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,ln=0,Bo=0,Dr(Dn)?(_a=!0,Wa=ge.createStream(34962,Dn),Wo=Wa.dtype):(Wa=ge.getBuffer(Dn),Wa?Wo=Wa.dtype:"constant"in Dn?(Ws=2,typeof Dn.constant=="number"?(Ca=Dn.constant,Es=Ts=Ho=0):(Ca=Dn.constant.length>0?Dn.constant[0]:0,Es=Dn.constant.length>1?Dn.constant[1]:0,Ts=Dn.constant.length>2?Dn.constant[2]:0,Ho=Dn.constant.length>3?Dn.constant[3]:0)):(Dr(Dn.buffer)?Wa=ge.createStream(34962,Dn.buffer):Wa=ge.getBuffer(Dn.buffer),Wo="type"in Dn?rn[Dn.type]:Wa.dtype,ts=!!Dn.normalized,To=Dn.size|0,qa=Dn.offset|0,ln=Dn.stride|0,Bo=Dn.divisor|0)),ko=Et.state,Et.state=Ws,oo=Et.x,Et.x=Ca,za=Et.y,Et.y=Es,ea=Et.z,Et.z=Ts,rs=Et.w,Et.w=Ho,$s=Et.buffer,Et.buffer=Wa,us=Et.size,Et.size=To,Ds=Et.normalized,Et.normalized=ts,fl=Et.type,Et.type=Wo,as=Et.offset,Et.offset=qa,Ma=Et.stride,Et.stride=ln,Qs=Et.divisor,Et.divisor=Bo,ho=T.call(this,Ie,Ri,xi),gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Dr(ho)?(gs=!0,Ea=ge.createStream(34962,ho),rl=Ea.dtype):(Ea=ge.getBuffer(ho),Ea?rl=Ea.dtype:"constant"in ho?(Vo=2,typeof ho.constant=="number"?(Do=ho.constant,Lo=xs=ks=0):(Do=ho.constant.length>0?ho.constant[0]:0,Lo=ho.constant.length>1?ho.constant[1]:0,xs=ho.constant.length>2?ho.constant[2]:0,ks=ho.constant.length>3?ho.constant[3]:0)):(Dr(ho.buffer)?Ea=ge.createStream(34962,ho.buffer):Ea=ge.getBuffer(ho.buffer),rl="type"in ho?rn[ho.type]:Ea.dtype,Oo=!!ho.normalized,Jn=ho.size|0,Gs=ho.offset|0,bs=ho.stride|0,zs=ho.divisor|0)),$o=Ae.state,Ae.state=Vo,Aa=Ae.x,Ae.x=Do,os=Ae.y,Ae.y=Lo,_l=Ae.z,Ae.z=xs,Ss=Ae.w,Ae.w=ks,po=Ae.buffer,Ae.buffer=Ea,go=Ae.size,Ae.size=Jn,ss=Ae.normalized,Ae.normalized=Oo,qo=Ae.type,Ae.type=rl,zo=Ae.offset,Ae.offset=Gs,io=Ae.stride,Ae.stride=bs,Io=Ae.divisor,Ae.divisor=zs,Da=M.call(this,Ie,Ri,xi),vs=!1,fs=1,cl=0,el=0,Hs=0,Ro=0,tl=null,Fs=0,hl=!1,Fa=5126,Ms=0,jo=0,Rs=0,Dr(Da)?(vs=!0,tl=ge.createStream(34962,Da),Fa=tl.dtype):(tl=ge.getBuffer(Da),tl?Fa=tl.dtype:"constant"in Da?(fs=2,typeof Da.constant=="number"?(cl=Da.constant,el=Hs=Ro=0):(cl=Da.constant.length>0?Da.constant[0]:0,el=Da.constant.length>1?Da.constant[1]:0,Hs=Da.constant.length>2?Da.constant[2]:0,Ro=Da.constant.length>3?Da.constant[3]:0)):(Dr(Da.buffer)?tl=ge.createStream(34962,Da.buffer):tl=ge.getBuffer(Da.buffer),Fa="type"in Da?rn[Da.type]:tl.dtype,hl=!!Da.normalized,Fs=Da.size|0,Ms=Da.offset|0,jo=Da.stride|0,Rs=Da.divisor|0)),Is=at.state,at.state=fs,Bs=at.x,at.x=cl,At=at.y,at.y=el,Gt=at.z,at.z=Hs,wr=at.w,at.w=Ro,mr=at.buffer,at.buffer=tl,Or=at.size,at.size=Fs,gi=at.normalized,at.normalized=hl,Ti=at.type,at.type=Fa,ki=at.offset,at.offset=Ms,Ji=at.stride,at.stride=jo,Fn=at.divisor,at.divisor=Rs,Pi=b.call(this,Ie,Ri,xi),hi=!1,Li=1,Si=0,Gn=0,ta=0,ya=0,ia=null,pa=0,va=!1,zn=5126,is=0,Cs=0,Ks=0,Dr(Pi)?(hi=!0,ia=ge.createStream(34962,Pi),zn=ia.dtype):(ia=ge.getBuffer(Pi),ia?zn=ia.dtype:"constant"in Pi?(Li=2,typeof Pi.constant=="number"?(Si=Pi.constant,Gn=ta=ya=0):(Si=Pi.constant.length>0?Pi.constant[0]:0,Gn=Pi.constant.length>1?Pi.constant[1]:0,ta=Pi.constant.length>2?Pi.constant[2]:0,ya=Pi.constant.length>3?Pi.constant[3]:0)):(Dr(Pi.buffer)?ia=ge.createStream(34962,Pi.buffer):ia=ge.getBuffer(Pi.buffer),zn="type"in Pi?rn[Pi.type]:ia.dtype,va=!!Pi.normalized,pa=Pi.size|0,is=Pi.offset|0,Cs=Pi.stride|0,Ks=Pi.divisor|0)),dl=wt.state,wt.state=Li,xl=wt.x,wt.x=Si,Bl=wt.y,wt.y=Gn,bl=wt.z,wt.z=ta,eu=wt.w,wt.w=ya,Zl=wt.buffer,wt.buffer=ia,Ul=wt.size,wt.size=pa,ja=wt.normalized,wt.normalized=va,ns=wt.type,wt.type=zn,Js=wt.offset,wt.offset=is,cs=wt.stride,wt.stride=Cs,sl=wt.divisor,wt.divisor=Ks,ll=f.call(this,Ie,Ri,xi),il=!1,zl=1,Ml=0,Rl=0,Al=0,Ll=0,ms=null,Os=0,Xl=!1,Vl=5126,Nl=0,le=0,w=0,Dr(ll)?(il=!0,ms=ge.createStream(34962,ll),Vl=ms.dtype):(ms=ge.getBuffer(ll),ms?Vl=ms.dtype:"constant"in ll?(zl=2,typeof ll.constant=="number"?(Ml=ll.constant,Rl=Al=Ll=0):(Ml=ll.constant.length>0?ll.constant[0]:0,Rl=ll.constant.length>1?ll.constant[1]:0,Al=ll.constant.length>2?ll.constant[2]:0,Ll=ll.constant.length>3?ll.constant[3]:0)):(Dr(ll.buffer)?ms=ge.createStream(34962,ll.buffer):ms=ge.getBuffer(ll.buffer),Vl="type"in ll?rn[ll.type]:ms.dtype,Xl=!!ll.normalized,Os=ll.size|0,Nl=ll.offset|0,le=ll.stride|0,w=ll.divisor|0)),q=vt.state,vt.state=zl,Q=vt.x,vt.x=Ml,ee=vt.y,vt.y=Rl,ue=vt.z,vt.z=Al,Ge=vt.w,vt.w=Ll,et=vt.buffer,vt.buffer=ms,mt=vt.size,vt.size=Os,Ft=vt.normalized,vt.normalized=Xl,ir=vt.type,vt.type=Vl,or=vt.offset,vt.offset=Nl,kr=vt.stride,vt.stride=le,Vr=vt.divisor,vt.divisor=w,he=h.call(this,Ie,Ri,xi),Se=!1,qe=1,He=0,lt=0,tt=0,pt=0,Ht=null,nr=0,fr=!1,Ar=5126,Rr=0,ri=0,si=0,Dr(he)?(Se=!0,Ht=ge.createStream(34962,he),Ar=Ht.dtype):(Ht=ge.getBuffer(he),Ht?Ar=Ht.dtype:"constant"in he?(qe=2,typeof he.constant=="number"?(He=he.constant,lt=tt=pt=0):(He=he.constant.length>0?he.constant[0]:0,lt=he.constant.length>1?he.constant[1]:0,tt=he.constant.length>2?he.constant[2]:0,pt=he.constant.length>3?he.constant[3]:0)):(Dr(he.buffer)?Ht=ge.createStream(34962,he.buffer):Ht=ge.getBuffer(he.buffer),Ar="type"in he?rn[he.type]:Ht.dtype,fr=!!he.normalized,nr=he.size|0,Rr=he.offset|0,ri=he.stride|0,si=he.divisor|0)),Mi=st.state,st.state=qe,hn=st.x,st.x=He,Zn=st.y,st.y=lt,Yn=st.z,st.z=tt,Ua=st.w,st.w=pt,Fo=st.buffer,st.buffer=Ht,vl=st.size,st.size=nr,Us=st.normalized,st.normalized=fr,ml=st.type,st.type=Ar,au=st.offset,st.offset=Rr,Sl=st.stride,st.stride=ri,Yl=st.divisor,st.divisor=si,Ol=u.call(this,Ie,Ri,xi),ou=!1,Pu=1,iu=0,tu=0,Wu=0,Qu=0,Ju=null,ju=0,Xu=!1,lf=5126,xf=0,ef=0,tf=0,Dr(Ol)?(ou=!0,Ju=ge.createStream(34962,Ol),lf=Ju.dtype):(Ju=ge.getBuffer(Ol),Ju?lf=Ju.dtype:"constant"in Ol?(Pu=2,typeof Ol.constant=="number"?(iu=Ol.constant,tu=Wu=Qu=0):(iu=Ol.constant.length>0?Ol.constant[0]:0,tu=Ol.constant.length>1?Ol.constant[1]:0,Wu=Ol.constant.length>2?Ol.constant[2]:0,Qu=Ol.constant.length>3?Ol.constant[3]:0)):(Dr(Ol.buffer)?Ju=ge.createStream(34962,Ol.buffer):Ju=ge.getBuffer(Ol.buffer),lf="type"in Ol?rn[Ol.type]:Ju.dtype,Xu=!!Ol.normalized,ju=Ol.size|0,xf=Ol.offset|0,ef=Ol.stride|0,tf=Ol.divisor|0)),Z=Ue.state,Ue.state=Pu,se=Ue.x,Ue.x=iu,ze=Ue.y,Ue.y=tu,Xe=Ue.z,Ue.z=Wu,Qe=Ue.w,Ue.w=Qu,ot=Ue.buffer,Ue.buffer=Ju,jt=Ue.size,Ue.size=ju,_t=Ue.normalized,Ue.normalized=Xu,cr=Ue.type,Ue.type=lf,Cr=Ue.offset,Ue.offset=xf,zr=Ue.stride,Ue.stride=ef,ui=Ue.divisor,Ue.divisor=tf,$r=p.call(this,Ie,Ri,xi),Oi=!1,fn=1,vi=0,zi=0,Xi=0,pn=0,sn=null,bi=0,xo=!1,no=5126,Xo=0,js=0,El=0,Dr($r)?(Oi=!0,sn=ge.createStream(34962,$r),no=sn.dtype):(sn=ge.getBuffer($r),sn?no=sn.dtype:"constant"in $r?(fn=2,typeof $r.constant=="number"?(vi=$r.constant,zi=Xi=pn=0):(vi=$r.constant.length>0?$r.constant[0]:0,zi=$r.constant.length>1?$r.constant[1]:0,Xi=$r.constant.length>2?$r.constant[2]:0,pn=$r.constant.length>3?$r.constant[3]:0)):(Dr($r.buffer)?sn=ge.createStream(34962,$r.buffer):sn=ge.getBuffer($r.buffer),no="type"in $r?rn[$r.type]:sn.dtype,xo=!!$r.normalized,bi=$r.size|0,Xo=$r.offset|0,js=$r.stride|0,El=$r.divisor|0)),Pl=rt.state,rt.state=fn,pu=rt.x,rt.x=vi,Il=rt.y,rt.y=zi,fu=rt.z,rt.z=Xi,Zu=rt.w,rt.w=pn,Gu=rt.buffer,rt.buffer=sn,rf=rt.size,rt.size=bi,ds=rt.normalized,rt.normalized=xo,Wl=rt.type,rt.type=no,Au=rt.offset,rt.offset=Xo,Tu=rt.stride,rt.stride=js,uf=rt.divisor,rt.divisor=El,df=fe.vert,fe.vert=$e,Ef=fe.frag,fe.frag=zt,Re.dirty=!0,xn(Ie,Ri,xi),Ie.viewportWidth=Zr,Ie.viewportHeight=Ai,Vi[0]=Qi,Vi[1]=ni,Vi[2]=Zi,Vi[3]=aa,Mr[0]=Mn,Mr[1]=Un,Mr[2]=Ga,Mr[3]=ma,Oe.blend_enable=oa,Ii[0]=ka,Ii[1]=so,Ii[2]=Kr,Ii[3]=Ia,Oe.depth_enable=Yo,yi[0]=ls,yi[1]=$a,yi[2]=fo,yi[3]=mn,Oe.scissor_enable=ra,Oe.stencil_enable=wa,ws&&(r.cpuTime+=performance.now()-Co),gn&&ct.destroyStream(ji),De.elements=Ps,De.offset=Sn,De.count=Ba,De.primitive=Ko,It[ce]=Qo,It[nt]=Wi,It[gt]=Qa,It[Nt]=da,It[it]=vo,It[Ye]=ps,It[kt]=mo,It[Tt]=jn,It[St]=Ys,It[Rt]=Ns,ha&&ge.destroyStream(Ra),Zt.state=Ja,Zt.x=lo,Zt.y=eo,Zt.z=sa,Zt.w=es,Zt.buffer=Na,Zt.size=tn,Zt.normalized=Pa,Zt.type=to,Zt.offset=yo,Zt.stride=Jo,Zt.divisor=Ao,_a&&ge.destroyStream(Wa),Et.state=ko,Et.x=oo,Et.y=za,Et.z=ea,Et.w=rs,Et.buffer=$s,Et.size=us,Et.normalized=Ds,Et.type=fl,Et.offset=as,Et.stride=Ma,Et.divisor=Qs,gs&&ge.destroyStream(Ea),Ae.state=$o,Ae.x=Aa,Ae.y=os,Ae.z=_l,Ae.w=Ss,Ae.buffer=po,Ae.size=go,Ae.normalized=ss,Ae.type=qo,Ae.offset=zo,Ae.stride=io,Ae.divisor=Io,vs&&ge.destroyStream(tl),at.state=Is,at.x=Bs,at.y=At,at.z=Gt,at.w=wr,at.buffer=mr,at.size=Or,at.normalized=gi,at.type=Ti,at.offset=ki,at.stride=Ji,at.divisor=Fn,hi&&ge.destroyStream(ia),wt.state=dl,wt.x=xl,wt.y=Bl,wt.z=bl,wt.w=eu,wt.buffer=Zl,wt.size=Ul,wt.normalized=ja,wt.type=ns,wt.offset=Js,wt.stride=cs,wt.divisor=sl,il&&ge.destroyStream(ms),vt.state=q,vt.x=Q,vt.y=ee,vt.z=ue,vt.w=Ge,vt.buffer=et,vt.size=mt,vt.normalized=Ft,vt.type=ir,vt.offset=or,vt.stride=kr,vt.divisor=Vr,Se&&ge.destroyStream(Ht),st.state=Mi,st.x=hn,st.y=Zn,st.z=Yn,st.w=Ua,st.buffer=Fo,st.size=vl,st.normalized=Us,st.type=ml,st.offset=au,st.stride=Sl,st.divisor=Yl,ou&&ge.destroyStream(Ju),Ue.state=Z,Ue.x=se,Ue.y=ze,Ue.z=Xe,Ue.w=Qe,Ue.buffer=ot,Ue.size=jt,Ue.normalized=_t,Ue.type=cr,Ue.offset=Cr,Ue.stride=zr,Ue.divisor=ui,Oi&&ge.destroyStream(sn),rt.state=Pl,rt.x=pu,rt.y=Il,rt.z=fu,rt.w=Zu,rt.buffer=Gu,rt.size=rf,rt.normalized=ds,rt.type=Wl,rt.offset=Au,rt.stride=Tu,rt.divisor=uf,fe.vert=df,fe.frag=Ef,Re.dirty=!0},batch:function(Ri,xn){var xi,Xr,ft,tr,pr,gr,Zr;if(xi=rr.angle_instanced_arrays,Xr=Pt.next,Xr!==Pt.cur&&(Xr?Ut.bindFramebuffer(36160,Xr.framebuffer):Ut.bindFramebuffer(36160,null),Pt.cur=Xr),Re.dirty){var Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn;Ai=Oe.dither,Ai!==Re.dither&&(Ai?Ut.enable(3024):Ut.disable(3024),Re.dither=Ai),Qi=di[0],ni=di[1],(Qi!==Di[0]||ni!==Di[1])&&(Ut.blendEquationSeparate(Qi,ni),Di[0]=Qi,Di[1]=ni),Zi=Oe.depth_func,Zi!==Re.depth_func&&(Ut.depthFunc(Zi),Re.depth_func=Zi),aa=nn[0],Mn=nn[1],(aa!==ii[0]||Mn!==ii[1])&&(Ut.depthRange(aa,Mn),ii[0]=aa,ii[1]=Mn),Un=Oe.depth_mask,Un!==Re.depth_mask&&(Ut.depthMask(Un),Re.depth_mask=Un),Ga=wi[0],ma=wi[1],oa=wi[2],ka=wi[3],(Ga!==Gi[0]||ma!==Gi[1]||oa!==Gi[2]||ka!==Gi[3])&&(Ut.colorMask(Ga,ma,oa,ka),Gi[0]=Ga,Gi[1]=ma,Gi[2]=oa,Gi[3]=ka),so=Oe.cull_enable,so!==Re.cull_enable&&(so?Ut.enable(2884):Ut.disable(2884),Re.cull_enable=so),Kr=Oe.cull_face,Kr!==Re.cull_face&&(Ut.cullFace(Kr),Re.cull_face=Kr),Ia=Oe.frontFace,Ia!==Re.frontFace&&(Ut.frontFace(Ia),Re.frontFace=Ia),Yo=Oe.lineWidth,Yo!==Re.lineWidth&&(Ut.lineWidth(Yo),Re.lineWidth=Yo),fa=Oe.polygonOffset_enable,fa!==Re.polygonOffset_enable&&(fa?Ut.enable(32823):Ut.disable(32823),Re.polygonOffset_enable=fa),kn=Bt[0],Ta=Bt[1],(kn!==yt[0]||Ta!==yt[1])&&(Ut.polygonOffset(kn,Ta),yt[0]=kn,yt[1]=Ta),ys=Oe.sample_alpha,ys!==Re.sample_alpha&&(ys?Ut.enable(32926):Ut.disable(32926),Re.sample_alpha=ys),uo=Oe.sample_enable,uo!==Re.sample_enable&&(uo?Ut.enable(32928):Ut.disable(32928),Re.sample_enable=uo),ls=Vt[0],$a=Vt[1],(ls!==Wt[0]||$a!==Wt[1])&&(Ut.sampleCoverage(ls,$a),Wt[0]=ls,Wt[1]=$a),fo=Oe.stencil_mask,fo!==Re.stencil_mask&&(Ut.stencilMask(fo),Re.stencil_mask=fo),mn=_r[0],ra=_r[1],wa=_r[2],(mn!==Lr[0]||ra!==Lr[1]||wa!==Lr[2])&&(Ut.stencilFunc(mn,ra,wa),Lr[0]=mn,Lr[1]=ra,Lr[2]=wa),ws=Ur[0],Co=Ur[1],Po=Ur[2],ji=Ur[3],(ws!==Ir[0]||Co!==Ir[1]||Po!==Ir[2]||ji!==Ir[3])&&(Ut.stencilOpSeparate(ws,Co,Po,ji),Ir[0]=ws,Ir[1]=Co,Ir[2]=Po,Ir[3]=ji),gn=Gr[0],Ps=Gr[1],Ha=Gr[2],Sn=Gr[3],(gn!==jr[0]||Ps!==jr[1]||Ha!==jr[2]||Sn!==jr[3])&&(Ut.stencilOpSeparate(gn,Ps,Ha,Sn),jr[0]=gn,jr[1]=Ps,jr[2]=Ha,jr[3]=Sn)}Ut.blendColor(0,0,0,1),Fr[0]=0,Fr[1]=0,Fr[2]=0,Fr[3]=1,Yt?Ut.enable(3042):Ut.disable(3042),Re.blend_enable=Yt,Ut.blendFuncSeparate(770,771,773,1),Ci[0]=770,Ci[1]=771,Ci[2]=773,Ci[3]=1,hr?Ut.enable(2929):Ut.disable(2929),Re.depth_enable=hr,yr?Ut.enable(3089):Ut.disable(3089),Re.scissor_enable=yr,br?Ut.enable(2960):Ut.disable(2960),Re.stencil_enable=br,ft=Re.profile,ft&&(tr=performance.now(),r.count+=xn),Ut.useProgram(s.program),pr=rr.angle_instanced_arrays;var ao;for(dt.setVAO(null),Ut.uniform1i(P.location,!1),Ut.uniform1i(U.location,G.bind()),ao=De.instances,gr=0;gr0?co.constant[0]:0,Go=co.constant.length>1?co.constant[1]:0,Ys=co.constant.length>2?co.constant[2]:0,qs=co.constant.length>3?co.constant[3]:0)):(Dr(co.buffer)?Ns=ge.createStream(34962,co.buffer):Ns=ge.getBuffer(co.buffer),Vs="type"in co?rn[co.type]:Ns.dtype,ha=!!co.normalized,Oa=co.size|0,Ya=co.offset|0,_n=co.stride|0,Vn=co.divisor|0)),wo=l.location,Ra=pe[wo],No===1?(Ra.buffer||Ut.enableVertexAttribArray(wo),Xn=Oa||4,(Ra.type!==Vs||Ra.size!==Xn||Ra.buffer!==Ns||Ra.normalized!==ha||Ra.offset!==Ya||Ra.stride!==_n)&&(Ut.bindBuffer(34962,Ns.buffer),Ut.vertexAttribPointer(wo,Xn,Vs,ha,_n,Ya),Ra.type=Vs,Ra.size=Xn,Ra.buffer=Ns,Ra.normalized=ha,Ra.offset=Ya,Ra.stride=_n),Ra.divisor!==Vn&&(pr.vertexAttribDivisorANGLE(wo,Vn),Ra.divisor=Vn)):(Ra.buffer&&(Ut.disableVertexAttribArray(wo),Ra.buffer=null),(Ra.x!==jn||Ra.y!==Go||Ra.z!==Ys||Ra.w!==qs)&&(Ut.vertexAttrib4f(wo,jn,Go,Ys,qs),Ra.x=jn,Ra.y=Go,Ra.z=Ys,Ra.w=qs)),un=f.call(this,Ie,Zr,gr),$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,tn=0,Pa=0,to=0,Dr(un)?($n=!0,eo=ge.createStream(34962,un),Na=eo.dtype):(eo=ge.getBuffer(un),eo?Na=eo.dtype:"constant"in un?(Ka=2,typeof un.constant=="number"?(qn=un.constant,Eo=Ja=lo=0):(qn=un.constant.length>0?un.constant[0]:0,Eo=un.constant.length>1?un.constant[1]:0,Ja=un.constant.length>2?un.constant[2]:0,lo=un.constant.length>3?un.constant[3]:0)):(Dr(un.buffer)?eo=ge.createStream(34962,un.buffer):eo=ge.getBuffer(un.buffer),Na="type"in un?rn[un.type]:eo.dtype,es=!!un.normalized,sa=un.size|0,tn=un.offset|0,Pa=un.stride|0,to=un.divisor|0)),yo=c.location,Jo=pe[yo],Ka===1?(Jo.buffer||Ut.enableVertexAttribArray(yo),Ao=sa||1,(Jo.type!==Na||Jo.size!==Ao||Jo.buffer!==eo||Jo.normalized!==es||Jo.offset!==tn||Jo.stride!==Pa)&&(Ut.bindBuffer(34962,eo.buffer),Ut.vertexAttribPointer(yo,Ao,Na,es,Pa,tn),Jo.type=Na,Jo.size=Ao,Jo.buffer=eo,Jo.normalized=es,Jo.offset=tn,Jo.stride=Pa),Jo.divisor!==to&&(pr.vertexAttribDivisorANGLE(yo,to),Jo.divisor=to)):(Jo.buffer&&(Ut.disableVertexAttribArray(yo),Jo.buffer=null),(Jo.x!==qn||Jo.y!==Eo||Jo.z!==Ja||Jo.w!==lo)&&(Ut.vertexAttrib4f(yo,qn,Eo,Ja,lo),Jo.x=qn,Jo.y=Eo,Jo.z=Ja,Jo.w=lo)),Dn=h.call(this,Ie,Zr,gr),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,ln=0,Bo=0,Dr(Dn)?(_a=!0,Wa=ge.createStream(34962,Dn),Wo=Wa.dtype):(Wa=ge.getBuffer(Dn),Wa?Wo=Wa.dtype:"constant"in Dn?(Ws=2,typeof Dn.constant=="number"?(Ca=Dn.constant,Es=Ts=Ho=0):(Ca=Dn.constant.length>0?Dn.constant[0]:0,Es=Dn.constant.length>1?Dn.constant[1]:0,Ts=Dn.constant.length>2?Dn.constant[2]:0,Ho=Dn.constant.length>3?Dn.constant[3]:0)):(Dr(Dn.buffer)?Wa=ge.createStream(34962,Dn.buffer):Wa=ge.getBuffer(Dn.buffer),Wo="type"in Dn?rn[Dn.type]:Wa.dtype,ts=!!Dn.normalized,To=Dn.size|0,qa=Dn.offset|0,ln=Dn.stride|0,Bo=Dn.divisor|0)),ko=d.location,oo=pe[ko],Ws===1?(oo.buffer||Ut.enableVertexAttribArray(ko),za=To||4,(oo.type!==Wo||oo.size!==za||oo.buffer!==Wa||oo.normalized!==ts||oo.offset!==qa||oo.stride!==ln)&&(Ut.bindBuffer(34962,Wa.buffer),Ut.vertexAttribPointer(ko,za,Wo,ts,ln,qa),oo.type=Wo,oo.size=za,oo.buffer=Wa,oo.normalized=ts,oo.offset=qa,oo.stride=ln),oo.divisor!==Bo&&(pr.vertexAttribDivisorANGLE(ko,Bo),oo.divisor=Bo)):(oo.buffer&&(Ut.disableVertexAttribArray(ko),oo.buffer=null),(oo.x!==Ca||oo.y!==Es||oo.z!==Ts||oo.w!==Ho)&&(Ut.vertexAttrib4f(ko,Ca,Es,Ts,Ho),oo.x=Ca,oo.y=Es,oo.z=Ts,oo.w=Ho)),ea=p.call(this,Ie,Zr,gr),rs=!1,$s=1,us=0,Ds=0,fl=0,as=0,Ma=null,Qs=0,ho=!1,gs=5126,Vo=0,Do=0,Lo=0,Dr(ea)?(rs=!0,Ma=ge.createStream(34962,ea),gs=Ma.dtype):(Ma=ge.getBuffer(ea),Ma?gs=Ma.dtype:"constant"in ea?($s=2,typeof ea.constant=="number"?(us=ea.constant,Ds=fl=as=0):(us=ea.constant.length>0?ea.constant[0]:0,Ds=ea.constant.length>1?ea.constant[1]:0,fl=ea.constant.length>2?ea.constant[2]:0,as=ea.constant.length>3?ea.constant[3]:0)):(Dr(ea.buffer)?Ma=ge.createStream(34962,ea.buffer):Ma=ge.getBuffer(ea.buffer),gs="type"in ea?rn[ea.type]:Ma.dtype,ho=!!ea.normalized,Qs=ea.size|0,Vo=ea.offset|0,Do=ea.stride|0,Lo=ea.divisor|0)),xs=_.location,ks=pe[xs],$s===1?(ks.buffer||Ut.enableVertexAttribArray(xs),Ea=Qs||1,(ks.type!==gs||ks.size!==Ea||ks.buffer!==Ma||ks.normalized!==ho||ks.offset!==Vo||ks.stride!==Do)&&(Ut.bindBuffer(34962,Ma.buffer),Ut.vertexAttribPointer(xs,Ea,gs,ho,Do,Vo),ks.type=gs,ks.size=Ea,ks.buffer=Ma,ks.normalized=ho,ks.offset=Vo,ks.stride=Do),ks.divisor!==Lo&&(pr.vertexAttribDivisorANGLE(xs,Lo),ks.divisor=Lo)):(ks.buffer&&(Ut.disableVertexAttribArray(xs),ks.buffer=null),(ks.x!==us||ks.y!==Ds||ks.z!==fl||ks.w!==as)&&(Ut.vertexAttrib4f(xs,us,Ds,fl,as),ks.x=us,ks.y=Ds,ks.z=fl,ks.w=as)),Jn=b.call(this,Ie,Zr,gr),Oo=!1,rl=1,Gs=0,bs=0,zs=0,$o=0,Aa=null,os=0,_l=!1,Ss=5126,po=0,go=0,ss=0,Dr(Jn)?(Oo=!0,Aa=ge.createStream(34962,Jn),Ss=Aa.dtype):(Aa=ge.getBuffer(Jn),Aa?Ss=Aa.dtype:"constant"in Jn?(rl=2,typeof Jn.constant=="number"?(Gs=Jn.constant,bs=zs=$o=0):(Gs=Jn.constant.length>0?Jn.constant[0]:0,bs=Jn.constant.length>1?Jn.constant[1]:0,zs=Jn.constant.length>2?Jn.constant[2]:0,$o=Jn.constant.length>3?Jn.constant[3]:0)):(Dr(Jn.buffer)?Aa=ge.createStream(34962,Jn.buffer):Aa=ge.getBuffer(Jn.buffer),Ss="type"in Jn?rn[Jn.type]:Aa.dtype,_l=!!Jn.normalized,os=Jn.size|0,po=Jn.offset|0,go=Jn.stride|0,ss=Jn.divisor|0)),qo=v.location,zo=pe[qo],rl===1?(zo.buffer||Ut.enableVertexAttribArray(qo),io=os||1,(zo.type!==Ss||zo.size!==io||zo.buffer!==Aa||zo.normalized!==_l||zo.offset!==po||zo.stride!==go)&&(Ut.bindBuffer(34962,Aa.buffer),Ut.vertexAttribPointer(qo,io,Ss,_l,go,po),zo.type=Ss,zo.size=io,zo.buffer=Aa,zo.normalized=_l,zo.offset=po,zo.stride=go),zo.divisor!==ss&&(pr.vertexAttribDivisorANGLE(qo,ss),zo.divisor=ss)):(zo.buffer&&(Ut.disableVertexAttribArray(qo),zo.buffer=null),(zo.x!==Gs||zo.y!==bs||zo.z!==zs||zo.w!==$o)&&(Ut.vertexAttrib4f(qo,Gs,bs,zs,$o),zo.x=Gs,zo.y=bs,zo.z=zs,zo.w=$o)),Io=k.call(this,Ie,Zr,gr),Da=!1,vs=1,fs=0,cl=0,el=0,Hs=0,Ro=null,tl=0,Fs=!1,hl=5126,Fa=0,Ms=0,jo=0,Dr(Io)?(Da=!0,Ro=ge.createStream(34962,Io),hl=Ro.dtype):(Ro=ge.getBuffer(Io),Ro?hl=Ro.dtype:"constant"in Io?(vs=2,typeof Io.constant=="number"?(fs=Io.constant,cl=el=Hs=0):(fs=Io.constant.length>0?Io.constant[0]:0,cl=Io.constant.length>1?Io.constant[1]:0,el=Io.constant.length>2?Io.constant[2]:0,Hs=Io.constant.length>3?Io.constant[3]:0)):(Dr(Io.buffer)?Ro=ge.createStream(34962,Io.buffer):Ro=ge.getBuffer(Io.buffer),hl="type"in Io?rn[Io.type]:Ro.dtype,Fs=!!Io.normalized,tl=Io.size|0,Fa=Io.offset|0,Ms=Io.stride|0,jo=Io.divisor|0)),Rs=E.location,Is=pe[Rs],vs===1?(Is.buffer||Ut.enableVertexAttribArray(Rs),Bs=tl||1,(Is.type!==hl||Is.size!==Bs||Is.buffer!==Ro||Is.normalized!==Fs||Is.offset!==Fa||Is.stride!==Ms)&&(Ut.bindBuffer(34962,Ro.buffer),Ut.vertexAttribPointer(Rs,Bs,hl,Fs,Ms,Fa),Is.type=hl,Is.size=Bs,Is.buffer=Ro,Is.normalized=Fs,Is.offset=Fa,Is.stride=Ms),Is.divisor!==jo&&(pr.vertexAttribDivisorANGLE(Rs,jo),Is.divisor=jo)):(Is.buffer&&(Ut.disableVertexAttribArray(Rs),Is.buffer=null),(Is.x!==fs||Is.y!==cl||Is.z!==el||Is.w!==Hs)&&(Ut.vertexAttrib4f(Rs,fs,cl,el,Hs),Is.x=fs,Is.y=cl,Is.z=el,Is.w=Hs)),At=T.call(this,Ie,Zr,gr),Gt=!1,wr=1,mr=0,Or=0,gi=0,Ti=0,ki=null,Ji=0,Fn=!1,Pi=5126,hi=0,Li=0,Si=0,Dr(At)?(Gt=!0,ki=ge.createStream(34962,At),Pi=ki.dtype):(ki=ge.getBuffer(At),ki?Pi=ki.dtype:"constant"in At?(wr=2,typeof At.constant=="number"?(mr=At.constant,Or=gi=Ti=0):(mr=At.constant.length>0?At.constant[0]:0,Or=At.constant.length>1?At.constant[1]:0,gi=At.constant.length>2?At.constant[2]:0,Ti=At.constant.length>3?At.constant[3]:0)):(Dr(At.buffer)?ki=ge.createStream(34962,At.buffer):ki=ge.getBuffer(At.buffer),Pi="type"in At?rn[At.type]:ki.dtype,Fn=!!At.normalized,Ji=At.size|0,hi=At.offset|0,Li=At.stride|0,Si=At.divisor|0)),Gn=L.location,ta=pe[Gn],wr===1?(ta.buffer||Ut.enableVertexAttribArray(Gn),ya=Ji||1,(ta.type!==Pi||ta.size!==ya||ta.buffer!==ki||ta.normalized!==Fn||ta.offset!==hi||ta.stride!==Li)&&(Ut.bindBuffer(34962,ki.buffer),Ut.vertexAttribPointer(Gn,ya,Pi,Fn,Li,hi),ta.type=Pi,ta.size=ya,ta.buffer=ki,ta.normalized=Fn,ta.offset=hi,ta.stride=Li),ta.divisor!==Si&&(pr.vertexAttribDivisorANGLE(Gn,Si),ta.divisor=Si)):(ta.buffer&&(Ut.disableVertexAttribArray(Gn),ta.buffer=null),(ta.x!==mr||ta.y!==Or||ta.z!==gi||ta.w!==Ti)&&(Ut.vertexAttrib4f(Gn,mr,Or,gi,Ti),ta.x=mr,ta.y=Or,ta.z=gi,ta.w=Ti)),ia=x.call(this,Ie,Zr,gr),pa=!1,va=1,zn=0,is=0,Cs=0,Ks=0,dl=null,xl=0,Bl=!1,bl=5126,eu=0,Zl=0,Ul=0,Dr(ia)?(pa=!0,dl=ge.createStream(34962,ia),bl=dl.dtype):(dl=ge.getBuffer(ia),dl?bl=dl.dtype:"constant"in ia?(va=2,typeof ia.constant=="number"?(zn=ia.constant,is=Cs=Ks=0):(zn=ia.constant.length>0?ia.constant[0]:0,is=ia.constant.length>1?ia.constant[1]:0,Cs=ia.constant.length>2?ia.constant[2]:0,Ks=ia.constant.length>3?ia.constant[3]:0)):(Dr(ia.buffer)?dl=ge.createStream(34962,ia.buffer):dl=ge.getBuffer(ia.buffer),bl="type"in ia?rn[ia.type]:dl.dtype,Bl=!!ia.normalized,xl=ia.size|0,eu=ia.offset|0,Zl=ia.stride|0,Ul=ia.divisor|0)),ja=C.location,ns=pe[ja],va===1?(ns.buffer||Ut.enableVertexAttribArray(ja),Js=xl||1,(ns.type!==bl||ns.size!==Js||ns.buffer!==dl||ns.normalized!==Bl||ns.offset!==eu||ns.stride!==Zl)&&(Ut.bindBuffer(34962,dl.buffer),Ut.vertexAttribPointer(ja,Js,bl,Bl,Zl,eu),ns.type=bl,ns.size=Js,ns.buffer=dl,ns.normalized=Bl,ns.offset=eu,ns.stride=Zl),ns.divisor!==Ul&&(pr.vertexAttribDivisorANGLE(ja,Ul),ns.divisor=Ul)):(ns.buffer&&(Ut.disableVertexAttribArray(ja),ns.buffer=null),(ns.x!==zn||ns.y!==is||ns.z!==Cs||ns.w!==Ks)&&(Ut.vertexAttrib4f(ja,zn,is,Cs,Ks),ns.x=zn,ns.y=is,ns.z=Cs,ns.w=Ks)),cs=M.call(this,Ie,Zr,gr),sl=!1,ll=1,il=0,zl=0,Ml=0,Rl=0,Al=null,Ll=0,ms=!1,Os=5126,Xl=0,Vl=0,Nl=0,Dr(cs)?(sl=!0,Al=ge.createStream(34962,cs),Os=Al.dtype):(Al=ge.getBuffer(cs),Al?Os=Al.dtype:"constant"in cs?(ll=2,typeof cs.constant=="number"?(il=cs.constant,zl=Ml=Rl=0):(il=cs.constant.length>0?cs.constant[0]:0,zl=cs.constant.length>1?cs.constant[1]:0,Ml=cs.constant.length>2?cs.constant[2]:0,Rl=cs.constant.length>3?cs.constant[3]:0)):(Dr(cs.buffer)?Al=ge.createStream(34962,cs.buffer):Al=ge.getBuffer(cs.buffer),Os="type"in cs?rn[cs.type]:Al.dtype,ms=!!cs.normalized,Ll=cs.size|0,Xl=cs.offset|0,Vl=cs.stride|0,Nl=cs.divisor|0)),le=m.location,w=pe[le],ll===1?(w.buffer||Ut.enableVertexAttribArray(le),q=Ll||1,(w.type!==Os||w.size!==q||w.buffer!==Al||w.normalized!==ms||w.offset!==Xl||w.stride!==Vl)&&(Ut.bindBuffer(34962,Al.buffer),Ut.vertexAttribPointer(le,q,Os,ms,Vl,Xl),w.type=Os,w.size=q,w.buffer=Al,w.normalized=ms,w.offset=Xl,w.stride=Vl),w.divisor!==Nl&&(pr.vertexAttribDivisorANGLE(le,Nl),w.divisor=Nl)):(w.buffer&&(Ut.disableVertexAttribArray(le),w.buffer=null),(w.x!==il||w.y!==zl||w.z!==Ml||w.w!==Rl)&&(Ut.vertexAttrib4f(le,il,zl,Ml,Rl),w.x=il,w.y=zl,w.z=Ml,w.w=Rl)),Q=Zr.opacity,(!gr||ee!==Q)&&(ee=Q,Ut.uniform1f(A.location,Q)),ue=F.call(this,Ie,Zr,gr),Ge=ue[0],mt=ue[1],(!gr||et!==Ge||Ft!==mt)&&(et=Ge,Ft=mt,Ut.uniform2f(B.location,Ge,mt)),ir=Ie.pixelRatio,(!gr||or!==ir)&&(or=ir,Ut.uniform1f(j.location,ir)),kr=Zr.scale,Vr=kr[0],Se=kr[1],(!gr||he!==Vr||qe!==Se)&&(he=Vr,qe=Se,Ut.uniform2f(H.location,Vr,Se)),He=Zr.scaleFract,lt=He[0],pt=He[1],(!gr||tt!==lt||Ht!==pt)&&(tt=lt,Ht=pt,Ut.uniform2f(N.location,lt,pt)),nr=Zr.translate,fr=nr[0],Rr=nr[1],(!gr||Ar!==fr||ri!==Rr)&&(Ar=fr,ri=Rr,Ut.uniform2f(W.location,fr,Rr)),si=Zr.translateFract,Mi=si[0],Zn=si[1],(!gr||hn!==Mi||Yn!==Zn)&&(hn=Mi,Yn=Zn,Ut.uniform2f(re.location,Mi,Zn)),Ua=Zr.elements,Fo=null,vl=Dr(Ua),vl?Fo=ct.createStream(Ua):Fo=ct.getElements(Ua),Fo&&Ut.bindBuffer(34963,Fo.buffer.buffer),Us=Zr.offset,ml=Zr.count,ml&&(ao>0?Fo?pr.drawElementsInstancedANGLE(0,ml,Fo.type,Us<<(Fo.type-5121>>1),ao):pr.drawArraysInstancedANGLE(0,Us,ml,ao):ao<0&&(Fo?Ut.drawElements(0,ml,Fo.type,Us<<(Fo.type-5121>>1)):Ut.drawArrays(0,Us,ml)),Ie.viewportWidth=Qa,Ie.viewportHeight=vn,mo&&ge.destroyStream(Ns),$n&&ge.destroyStream(eo),_a&&ge.destroyStream(Wa),rs&&ge.destroyStream(Ma),Oo&&ge.destroyStream(Aa),Da&&ge.destroyStream(Ro),Gt&&ge.destroyStream(ki),pa&&ge.destroyStream(dl),sl&&ge.destroyStream(Al),vl&&ct.destroyStream(Fo))}G.unbind(),Re.dirty=!0,dt.setVAO(null),ft&&(r.cpuTime+=performance.now()-tr)}}}});var z8=Te((J_r,UNe)=>{UNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt,Nt,it,Ye,kt,Tt,St,Rt,Zt,Et,Ae,at,wt,vt,st){"use strict";var Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi;return Ue=t.gl,rt=t.context,$e=t.strings,zt=t.next,Yt=t.current,hr=t.draw,yr=t.elements,br=t.buffer,Ut=t.shader,Ie=t.attributes,xe=t.vao,Oe=t.uniforms,Re=t.framebuffer,De=t.extensions,ct=t.timer,ge=t.isBufferArgs,fe=zt.blend_color,pe=Yt.blend_color,dt=zt.blend_equation,It=Yt.blend_equation,Pt=zt.blend_func,rr=Yt.blend_func,Hr=zt.depth_range,Dr=Yt.depth_range,Mr=zt.colorMask,Fr=Yt.colorMask,di=zt.polygonOffset_offset,Di=Yt.polygonOffset_offset,Ii=zt.sample_coverage,Ci=Yt.sample_coverage,nn=zt.stencil_func,ii=Yt.stencil_func,wi=zt.stencil_opFront,Gi=Yt.stencil_opFront,Bt=zt.stencil_opBack,yt=Yt.stencil_opBack,Vt=zt.scissor_box,Wt=Yt.scissor_box,_r=zt.viewport,Lr=Yt.viewport,Ur={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ir={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Gr={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},jr={add:32774,subtract:32778,"reverse subtract":32779},yi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ei={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Vi={cw:2304,ccw:2305},ti={},ti.buffer=n,ti.divisor=1,en={},en.buffer=i,en.divisor=1,Yr={},Yr.buffer=a,Yr.divisor=1,oi={},oi.buffer=o,oi.divisor=1,{draw:function(Bi){var an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us;if(an=De.angle_instanced_arrays,rn=Re.next,rn!==Re.cur&&(rn?Ue.bindFramebuffer(36160,rn.framebuffer):Ue.bindFramebuffer(36160,null),Re.cur=rn),Yt.dirty){var Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs;Ds=zt.dither,Ds!==Yt.dither&&(Ds?Ue.enable(3024):Ue.disable(3024),Yt.dither=Ds),fl=zt.depth_func,fl!==Yt.depth_func&&(Ue.depthFunc(fl),Yt.depth_func=fl),as=Hr[0],Ma=Hr[1],(as!==Dr[0]||Ma!==Dr[1])&&(Ue.depthRange(as,Ma),Dr[0]=as,Dr[1]=Ma),Qs=zt.depth_mask,Qs!==Yt.depth_mask&&(Ue.depthMask(Qs),Yt.depth_mask=Qs),ho=Mr[0],gs=Mr[1],Vo=Mr[2],Do=Mr[3],(ho!==Fr[0]||gs!==Fr[1]||Vo!==Fr[2]||Do!==Fr[3])&&(Ue.colorMask(ho,gs,Vo,Do),Fr[0]=ho,Fr[1]=gs,Fr[2]=Vo,Fr[3]=Do),Lo=zt.cull_enable,Lo!==Yt.cull_enable&&(Lo?Ue.enable(2884):Ue.disable(2884),Yt.cull_enable=Lo),xs=zt.cull_face,xs!==Yt.cull_face&&(Ue.cullFace(xs),Yt.cull_face=xs),ks=zt.frontFace,ks!==Yt.frontFace&&(Ue.frontFace(ks),Yt.frontFace=ks),Ea=zt.lineWidth,Ea!==Yt.lineWidth&&(Ue.lineWidth(Ea),Yt.lineWidth=Ea),Jn=zt.polygonOffset_enable,Jn!==Yt.polygonOffset_enable&&(Jn?Ue.enable(32823):Ue.disable(32823),Yt.polygonOffset_enable=Jn),Oo=di[0],rl=di[1],(Oo!==Di[0]||rl!==Di[1])&&(Ue.polygonOffset(Oo,rl),Di[0]=Oo,Di[1]=rl),Gs=zt.sample_alpha,Gs!==Yt.sample_alpha&&(Gs?Ue.enable(32926):Ue.disable(32926),Yt.sample_alpha=Gs),bs=zt.sample_enable,bs!==Yt.sample_enable&&(bs?Ue.enable(32928):Ue.disable(32928),Yt.sample_enable=bs),zs=Ii[0],$o=Ii[1],(zs!==Ci[0]||$o!==Ci[1])&&(Ue.sampleCoverage(zs,$o),Ci[0]=zs,Ci[1]=$o),Aa=zt.stencil_enable,Aa!==Yt.stencil_enable&&(Aa?Ue.enable(2960):Ue.disable(2960),Yt.stencil_enable=Aa),os=zt.stencil_mask,os!==Yt.stencil_mask&&(Ue.stencilMask(os),Yt.stencil_mask=os),_l=nn[0],Ss=nn[1],po=nn[2],(_l!==ii[0]||Ss!==ii[1]||po!==ii[2])&&(Ue.stencilFunc(_l,Ss,po),ii[0]=_l,ii[1]=Ss,ii[2]=po),go=wi[0],ss=wi[1],qo=wi[2],zo=wi[3],(go!==Gi[0]||ss!==Gi[1]||qo!==Gi[2]||zo!==Gi[3])&&(Ue.stencilOpSeparate(go,ss,qo,zo),Gi[0]=go,Gi[1]=ss,Gi[2]=qo,Gi[3]=zo),io=Bt[0],Io=Bt[1],Da=Bt[2],vs=Bt[3],(io!==yt[0]||Io!==yt[1]||Da!==yt[2]||vs!==yt[3])&&(Ue.stencilOpSeparate(io,Io,Da,vs),yt[0]=io,yt[1]=Io,yt[2]=Da,yt[3]=vs)}Fi=Bi.viewport,Ri=Fi.x|0,xn=Fi.y|0,xi="width"in Fi?Fi.width|0:rt.framebufferWidth-Ri,Xr="height"in Fi?Fi.height|0:rt.framebufferHeight-xn,ft=rt.viewportWidth,rt.viewportWidth=xi,tr=rt.viewportHeight,rt.viewportHeight=Xr,Ue.viewport(Ri,xn,xi,Xr),Lr[0]=Ri,Lr[1]=xn,Lr[2]=xi,Lr[3]=Xr,Ue.blendColor(0,0,0,0),pe[0]=0,pe[1]=0,pe[2]=0,pe[3]=0,s?Ue.enable(3042):Ue.disable(3042),Yt.blend_enable=s,Ue.blendEquationSeparate(32774,32774),It[0]=32774,It[1]=32774,Ue.blendFuncSeparate(770,771,773,1),rr[0]=770,rr[1]=771,rr[2]=773,rr[3]=1,u?Ue.enable(2929):Ue.disable(2929),Yt.depth_enable=u,pr=Bi.viewport,gr=pr.x|0,Zr=pr.y|0,Ai="width"in pr?pr.width|0:rt.framebufferWidth-gr,Qi="height"in pr?pr.height|0:rt.framebufferHeight-Zr,Ue.scissor(gr,Zr,Ai,Qi),Wt[0]=gr,Wt[1]=Zr,Wt[2]=Ai,Wt[3]=Qi,l?Ue.enable(3089):Ue.disable(3089),Yt.scissor_enable=l,ni=Yt.profile,ni&&(Zi=performance.now(),r.count++),Ue.useProgram(f.program),aa=De.angle_instanced_arrays,xe.setVAO(null),Mn=h.location,Un=Ie[Mn],Un.buffer||Ue.enableVertexAttribArray(Mn),(Un.type!==5126||Un.size!==2||Un.buffer!==c||Un.normalized!==!1||Un.offset!==16||Un.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(Mn,2,5126,!1,24,16),Un.type=5126,Un.size=2,Un.buffer=c,Un.normalized=!1,Un.offset=16,Un.stride=24),Un.divisor!==0&&(aa.vertexAttribDivisorANGLE(Mn,0),Un.divisor=0),Ga=d.call(this,rt,Bi,0),ti.offset=Ga,ma=!1,oa=1,ka=0,so=0,Kr=0,Ia=0,Yo=null,fa=0,kn=!1,Ta=5126,ys=0,uo=0,ls=0,ge(ti)?(ma=!0,Yo=br.createStream(34962,ti),Ta=Yo.dtype):(Yo=br.getBuffer(ti),Yo?Ta=Yo.dtype:"constant"in ti?(oa=2,typeof ti.constant=="number"?(ka=ti.constant,so=Kr=Ia=0):(ka=ti.constant.length>0?ti.constant[0]:0,so=ti.constant.length>1?ti.constant[1]:0,Kr=ti.constant.length>2?ti.constant[2]:0,Ia=ti.constant.length>3?ti.constant[3]:0)):(ge(ti.buffer)?Yo=br.createStream(34962,ti.buffer):Yo=br.getBuffer(ti.buffer),Ta="type"in ti?Ei[ti.type]:Yo.dtype,kn=!!ti.normalized,fa=ti.size|0,ys=ti.offset|0,uo=ti.stride|0,ls=ti.divisor|0)),$a=p.location,fo=Ie[$a],oa===1?(fo.buffer||Ue.enableVertexAttribArray($a),mn=fa||4,(fo.type!==Ta||fo.size!==mn||fo.buffer!==Yo||fo.normalized!==kn||fo.offset!==ys||fo.stride!==uo)&&(Ue.bindBuffer(34962,Yo.buffer),Ue.vertexAttribPointer($a,mn,Ta,kn,uo,ys),fo.type=Ta,fo.size=mn,fo.buffer=Yo,fo.normalized=kn,fo.offset=ys,fo.stride=uo),fo.divisor!==ls&&(aa.vertexAttribDivisorANGLE($a,ls),fo.divisor=ls)):(fo.buffer&&(Ue.disableVertexAttribArray($a),fo.buffer=null),(fo.x!==ka||fo.y!==so||fo.z!==Kr||fo.w!==Ia)&&(Ue.vertexAttrib4f($a,ka,so,Kr,Ia),fo.x=ka,fo.y=so,fo.z=Kr,fo.w=Ia)),ra=_.location,wa=Ie[ra],wa.buffer||Ue.enableVertexAttribArray(ra),(wa.type!==5126||wa.size!==2||wa.buffer!==c||wa.normalized!==!1||wa.offset!==0||wa.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(ra,2,5126,!1,24,0),wa.type=5126,wa.size=2,wa.buffer=c,wa.normalized=!1,wa.offset=0,wa.stride=24),wa.divisor!==0&&(aa.vertexAttribDivisorANGLE(ra,0),wa.divisor=0),ws=b.call(this,rt,Bi,0),oi.offset=ws,Co=!1,Po=1,ji=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Wi=0,Sa=0,ge(oi)?(Co=!0,Sn=br.createStream(34962,oi),Ko=Sn.dtype):(Sn=br.getBuffer(oi),Sn?Ko=Sn.dtype:"constant"in oi?(Po=2,typeof oi.constant=="number"?(ji=oi.constant,gn=Ps=Ha=0):(ji=oi.constant.length>0?oi.constant[0]:0,gn=oi.constant.length>1?oi.constant[1]:0,Ps=oi.constant.length>2?oi.constant[2]:0,Ha=oi.constant.length>3?oi.constant[3]:0)):(ge(oi.buffer)?Sn=br.createStream(34962,oi.buffer):Sn=br.getBuffer(oi.buffer),Ko="type"in oi?Ei[oi.type]:Sn.dtype,Ba=!!oi.normalized,ao=oi.size|0,Qo=oi.offset|0,Wi=oi.stride|0,Sa=oi.divisor|0)),Qa=v.location,vn=Ie[Qa],Po===1?(vn.buffer||Ue.enableVertexAttribArray(Qa),da=ao||4,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Wi)&&(Ue.bindBuffer(34962,Sn.buffer),Ue.vertexAttribPointer(Qa,da,Ko,Ba,Wi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Wi),vn.divisor!==Sa&&(aa.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(Ue.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==ji||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(Ue.vertexAttrib4f(Qa,ji,gn,Ps,Ha),vn.x=ji,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=k.location,vo=Ie[la],vo.buffer||Ue.enableVertexAttribArray(la),(vo.type!==5126||vo.size!==2||vo.buffer!==c||vo.normalized!==!1||vo.offset!==8||vo.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(la,2,5126,!1,24,8),vo.type=5126,vo.size=2,vo.buffer=c,vo.normalized=!1,vo.offset=8,vo.stride=24),vo.divisor!==0&&(aa.vertexAttribDivisorANGLE(la,0),vo.divisor=0),As=E.call(this,rt,Bi,0),en.offset=As,ps=!1,co=1,mo=0,No=0,jn=0,Go=0,Ys=null,qs=0,Ns=!1,Oa=5126,ha=0,Vs=0,Ya=0,ge(en)?(ps=!0,Ys=br.createStream(34962,en),Oa=Ys.dtype):(Ys=br.getBuffer(en),Ys?Oa=Ys.dtype:"constant"in en?(co=2,typeof en.constant=="number"?(mo=en.constant,No=jn=Go=0):(mo=en.constant.length>0?en.constant[0]:0,No=en.constant.length>1?en.constant[1]:0,jn=en.constant.length>2?en.constant[2]:0,Go=en.constant.length>3?en.constant[3]:0)):(ge(en.buffer)?Ys=br.createStream(34962,en.buffer):Ys=br.getBuffer(en.buffer),Oa="type"in en?Ei[en.type]:Ys.dtype,Ns=!!en.normalized,qs=en.size|0,ha=en.offset|0,Vs=en.stride|0,Ya=en.divisor|0)),_n=T.location,Vn=Ie[_n],co===1?(Vn.buffer||Ue.enableVertexAttribArray(_n),wo=qs||2,(Vn.type!==Oa||Vn.size!==wo||Vn.buffer!==Ys||Vn.normalized!==Ns||Vn.offset!==ha||Vn.stride!==Vs)&&(Ue.bindBuffer(34962,Ys.buffer),Ue.vertexAttribPointer(_n,wo,Oa,Ns,Vs,ha),Vn.type=Oa,Vn.size=wo,Vn.buffer=Ys,Vn.normalized=Ns,Vn.offset=ha,Vn.stride=Vs),Vn.divisor!==Ya&&(aa.vertexAttribDivisorANGLE(_n,Ya),Vn.divisor=Ya)):(Vn.buffer&&(Ue.disableVertexAttribArray(_n),Vn.buffer=null),(Vn.x!==mo||Vn.y!==No||Vn.z!==jn||Vn.w!==Go)&&(Ue.vertexAttrib4f(_n,mo,No,jn,Go),Vn.x=mo,Vn.y=No,Vn.z=jn,Vn.w=Go)),Ra=L.call(this,rt,Bi,0),Yr.offset=Ra,Xn=!1,un=1,$n=0,Ka=0,qn=0,Eo=0,Ja=null,lo=0,eo=!1,sa=5126,es=0,Na=0,tn=0,ge(Yr)?(Xn=!0,Ja=br.createStream(34962,Yr),sa=Ja.dtype):(Ja=br.getBuffer(Yr),Ja?sa=Ja.dtype:"constant"in Yr?(un=2,typeof Yr.constant=="number"?($n=Yr.constant,Ka=qn=Eo=0):($n=Yr.constant.length>0?Yr.constant[0]:0,Ka=Yr.constant.length>1?Yr.constant[1]:0,qn=Yr.constant.length>2?Yr.constant[2]:0,Eo=Yr.constant.length>3?Yr.constant[3]:0)):(ge(Yr.buffer)?Ja=br.createStream(34962,Yr.buffer):Ja=br.getBuffer(Yr.buffer),sa="type"in Yr?Ei[Yr.type]:Ja.dtype,eo=!!Yr.normalized,lo=Yr.size|0,es=Yr.offset|0,Na=Yr.stride|0,tn=Yr.divisor|0)),Pa=x.location,to=Ie[Pa],un===1?(to.buffer||Ue.enableVertexAttribArray(Pa),yo=lo||2,(to.type!==sa||to.size!==yo||to.buffer!==Ja||to.normalized!==eo||to.offset!==es||to.stride!==Na)&&(Ue.bindBuffer(34962,Ja.buffer),Ue.vertexAttribPointer(Pa,yo,sa,eo,Na,es),to.type=sa,to.size=yo,to.buffer=Ja,to.normalized=eo,to.offset=es,to.stride=Na),to.divisor!==tn&&(aa.vertexAttribDivisorANGLE(Pa,tn),to.divisor=tn)):(to.buffer&&(Ue.disableVertexAttribArray(Pa),to.buffer=null),(to.x!==$n||to.y!==Ka||to.z!==qn||to.w!==Eo)&&(Ue.vertexAttrib4f(Pa,$n,Ka,qn,Eo),to.x=$n,to.y=Ka,to.z=qn,to.w=Eo)),Jo=Bi.capSize,Ue.uniform1f(C.location,Jo),Ao=Bi.lineWidth,Ue.uniform1f(M.location,Ao),Dn=Bi.opacity,Ue.uniform1f(m.location,Dn),_a=Bi.scale,Ws=_a[0],Ca=_a[1],Ue.uniform2f(P.location,Ws,Ca),Es=Bi.scaleFract,Ts=Es[0],Ho=Es[1],Ue.uniform2f(A.location,Ts,Ho),Wa=Bi.translate,To=Wa[0],ts=Wa[1],Ue.uniform2f(B.location,To,ts),Wo=Bi.translateFract,qa=Wo[0],ln=Wo[1],Ue.uniform2f(F.location,qa,ln),Bo=G.call(this,rt,Bi,0),ko=Bo[0],oo=Bo[1],za=Bo[2],ea=Bo[3],Ue.uniform4f(U.location,ko,oo,za,ea),rs=hr.elements,rs?Ue.bindBuffer(34963,rs.buffer.buffer):xe.currentVAO&&(rs=yr.getElements(xe.currentVAO.elements),rs&&Ue.bindBuffer(34963,rs.buffer.buffer)),$s=hr.offset,us=Bi.count,us>0?rs?aa.drawElementsInstancedANGLE(4,36,rs.type,$s<<(rs.type-5121>>1),us):aa.drawArraysInstancedANGLE(4,$s,36,us):us<0&&(rs?Ue.drawElements(4,36,rs.type,$s<<(rs.type-5121>>1)):Ue.drawArrays(4,$s,36)),Yt.dirty=!0,xe.setVAO(null),rt.viewportWidth=ft,rt.viewportHeight=tr,ni&&(r.cpuTime+=performance.now()-Zi),ma&&br.destroyStream(Yo),Co&&br.destroyStream(Sn),ps&&br.destroyStream(Ys),Xn&&br.destroyStream(Ja)},scope:function(Bi,an,rn){var Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Ul,ja,ns,Js,cs,sl,ll,il,zl,Ml;Fi=Bi.viewport,Ri=Fi.x|0,xn=Fi.y|0,xi="width"in Fi?Fi.width|0:rt.framebufferWidth-Ri,Xr="height"in Fi?Fi.height|0:rt.framebufferHeight-xn,ft=rt.viewportWidth,rt.viewportWidth=xi,tr=rt.viewportHeight,rt.viewportHeight=Xr,pr=_r[0],_r[0]=Ri,gr=_r[1],_r[1]=xn,Zr=_r[2],_r[2]=xi,Ai=_r[3],_r[3]=Xr,Qi=fe[0],fe[0]=j,ni=fe[1],fe[1]=H,Zi=fe[2],fe[2]=N,aa=fe[3],fe[3]=W,Mn=zt.blend_enable,zt.blend_enable=re,Un=dt[0],dt[0]=ae,Ga=dt[1],dt[1]=be,ma=Pt[0],Pt[0]=Pe,oa=Pt[1],Pt[1]=Ce,ka=Pt[2],Pt[2]=de,so=Pt[3],Pt[3]=te,Kr=zt.depth_enable,zt.depth_enable=ke,Ia=Bi.viewport,Yo=Ia.x|0,fa=Ia.y|0,kn="width"in Ia?Ia.width|0:rt.framebufferWidth-Yo,Ta="height"in Ia?Ia.height|0:rt.framebufferHeight-fa,ys=Vt[0],Vt[0]=Yo,uo=Vt[1],Vt[1]=fa,ls=Vt[2],Vt[2]=kn,$a=Vt[3],Vt[3]=Ta,fo=zt.scissor_enable,zt.scissor_enable=Ee,mn=Yt.profile,mn&&(ra=performance.now(),r.count++),wa=hr.count,hr.count=Me,ws=Bi.count,Co=hr.instances,hr.instances=ws,Po=hr.primitive,hr.primitive=Ne,ji=Bi.range,gn=Oe[Fe],Oe[Fe]=ji,Ps=Bi.lineWidth,Ha=Oe[ye],Oe[ye]=Ps,Sn=Bi.capSize,ao=Oe[Ve],Oe[Ve]=Sn,Ba=Bi.opacity,Ko=Oe[ce],Oe[ce]=Ba,Qo=Bi.scale,Wi=Oe[Ke],Oe[Ke]=Qo,Sa=Bi.translate,Qa=Oe[nt],Oe[nt]=Sa,vn=Bi.scaleFract,da=Oe[gt],Oe[gt]=vn,la=Bi.translateFract,vo=Oe[Nt],Oe[Nt]=la,As=G.call(this,rt,Bi,rn),ps=Oe[it],Oe[it]=As,co=Ye.state,Ye.state=1,mo=Ye.x,Ye.x=0,No=Ye.y,Ye.y=0,jn=Ye.z,Ye.z=0,Go=Ye.w,Ye.w=0,Ys=Ye.buffer,Ye.buffer=c,qs=Ye.size,Ye.size=0,Ns=Ye.normalized,Ye.normalized=!1,Oa=Ye.type,Ye.type=5126,ha=Ye.offset,Ye.offset=0,Vs=Ye.stride,Ye.stride=24,Ya=Ye.divisor,Ye.divisor=0,_n=kt.state,kt.state=1,Vn=kt.x,kt.x=0,wo=kt.y,kt.y=0,Ra=kt.z,kt.z=0,Xn=kt.w,kt.w=0,un=kt.buffer,kt.buffer=c,$n=kt.size,kt.size=0,Ka=kt.normalized,kt.normalized=!1,qn=kt.type,kt.type=5126,Eo=kt.offset,kt.offset=8,Ja=kt.stride,kt.stride=24,lo=kt.divisor,kt.divisor=0,eo=Tt.state,Tt.state=1,sa=Tt.x,Tt.x=0,es=Tt.y,Tt.y=0,Na=Tt.z,Tt.z=0,tn=Tt.w,Tt.w=0,Pa=Tt.buffer,Tt.buffer=c,to=Tt.size,Tt.size=0,yo=Tt.normalized,Tt.normalized=!1,Jo=Tt.type,Tt.type=5126,Ao=Tt.offset,Tt.offset=16,Dn=Tt.stride,Tt.stride=24,_a=Tt.divisor,Tt.divisor=0,Ws=d.call(this,rt,Bi,rn),ti.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,ge(ti)?(Ca=!0,ts=br.createStream(34962,ti),ln=ts.dtype):(ts=br.getBuffer(ti),ts?ln=ts.dtype:"constant"in ti?(Es=2,typeof ti.constant=="number"?(Ts=ti.constant,Ho=Wa=To=0):(Ts=ti.constant.length>0?ti.constant[0]:0,Ho=ti.constant.length>1?ti.constant[1]:0,Wa=ti.constant.length>2?ti.constant[2]:0,To=ti.constant.length>3?ti.constant[3]:0)):(ge(ti.buffer)?ts=br.createStream(34962,ti.buffer):ts=br.getBuffer(ti.buffer),ln="type"in ti?Ei[ti.type]:ts.dtype,qa=!!ti.normalized,Wo=ti.size|0,Bo=ti.offset|0,ko=ti.stride|0,oo=ti.divisor|0)),za=St.state,St.state=Es,ea=St.x,St.x=Ts,rs=St.y,St.y=Ho,$s=St.z,St.z=Wa,us=St.w,St.w=To,Ds=St.buffer,St.buffer=ts,fl=St.size,St.size=Wo,as=St.normalized,St.normalized=qa,Ma=St.type,St.type=ln,Qs=St.offset,St.offset=Bo,ho=St.stride,St.stride=ko,gs=St.divisor,St.divisor=oo,Vo=E.call(this,rt,Bi,rn),en.offset=Vo,Do=!1,Lo=1,xs=0,ks=0,Ea=0,Jn=0,Oo=null,rl=0,Gs=!1,bs=5126,zs=0,$o=0,Aa=0,ge(en)?(Do=!0,Oo=br.createStream(34962,en),bs=Oo.dtype):(Oo=br.getBuffer(en),Oo?bs=Oo.dtype:"constant"in en?(Lo=2,typeof en.constant=="number"?(xs=en.constant,ks=Ea=Jn=0):(xs=en.constant.length>0?en.constant[0]:0,ks=en.constant.length>1?en.constant[1]:0,Ea=en.constant.length>2?en.constant[2]:0,Jn=en.constant.length>3?en.constant[3]:0)):(ge(en.buffer)?Oo=br.createStream(34962,en.buffer):Oo=br.getBuffer(en.buffer),bs="type"in en?Ei[en.type]:Oo.dtype,Gs=!!en.normalized,rl=en.size|0,zs=en.offset|0,$o=en.stride|0,Aa=en.divisor|0)),os=Rt.state,Rt.state=Lo,_l=Rt.x,Rt.x=xs,Ss=Rt.y,Rt.y=ks,po=Rt.z,Rt.z=Ea,go=Rt.w,Rt.w=Jn,ss=Rt.buffer,Rt.buffer=Oo,qo=Rt.size,Rt.size=rl,zo=Rt.normalized,Rt.normalized=Gs,io=Rt.type,Rt.type=bs,Io=Rt.offset,Rt.offset=zs,Da=Rt.stride,Rt.stride=$o,vs=Rt.divisor,Rt.divisor=Aa,fs=L.call(this,rt,Bi,rn),Yr.offset=fs,cl=!1,el=1,Hs=0,Ro=0,tl=0,Fs=0,hl=null,Fa=0,Ms=!1,jo=5126,Rs=0,Is=0,Bs=0,ge(Yr)?(cl=!0,hl=br.createStream(34962,Yr),jo=hl.dtype):(hl=br.getBuffer(Yr),hl?jo=hl.dtype:"constant"in Yr?(el=2,typeof Yr.constant=="number"?(Hs=Yr.constant,Ro=tl=Fs=0):(Hs=Yr.constant.length>0?Yr.constant[0]:0,Ro=Yr.constant.length>1?Yr.constant[1]:0,tl=Yr.constant.length>2?Yr.constant[2]:0,Fs=Yr.constant.length>3?Yr.constant[3]:0)):(ge(Yr.buffer)?hl=br.createStream(34962,Yr.buffer):hl=br.getBuffer(Yr.buffer),jo="type"in Yr?Ei[Yr.type]:hl.dtype,Ms=!!Yr.normalized,Fa=Yr.size|0,Rs=Yr.offset|0,Is=Yr.stride|0,Bs=Yr.divisor|0)),At=Zt.state,Zt.state=el,Gt=Zt.x,Zt.x=Hs,wr=Zt.y,Zt.y=Ro,mr=Zt.z,Zt.z=tl,Or=Zt.w,Zt.w=Fs,gi=Zt.buffer,Zt.buffer=hl,Ti=Zt.size,Zt.size=Fa,ki=Zt.normalized,Zt.normalized=Ms,Ji=Zt.type,Zt.type=jo,Fn=Zt.offset,Zt.offset=Rs,Pi=Zt.stride,Zt.stride=Is,hi=Zt.divisor,Zt.divisor=Bs,Li=b.call(this,rt,Bi,rn),oi.offset=Li,Si=!1,Gn=1,ta=0,ya=0,ia=0,pa=0,va=null,zn=0,is=!1,Cs=5126,Ks=0,dl=0,xl=0,ge(oi)?(Si=!0,va=br.createStream(34962,oi),Cs=va.dtype):(va=br.getBuffer(oi),va?Cs=va.dtype:"constant"in oi?(Gn=2,typeof oi.constant=="number"?(ta=oi.constant,ya=ia=pa=0):(ta=oi.constant.length>0?oi.constant[0]:0,ya=oi.constant.length>1?oi.constant[1]:0,ia=oi.constant.length>2?oi.constant[2]:0,pa=oi.constant.length>3?oi.constant[3]:0)):(ge(oi.buffer)?va=br.createStream(34962,oi.buffer):va=br.getBuffer(oi.buffer),Cs="type"in oi?Ei[oi.type]:va.dtype,is=!!oi.normalized,zn=oi.size|0,Ks=oi.offset|0,dl=oi.stride|0,xl=oi.divisor|0)),Bl=Et.state,Et.state=Gn,bl=Et.x,Et.x=ta,eu=Et.y,Et.y=ya,Zl=Et.z,Et.z=ia,Ul=Et.w,Et.w=pa,ja=Et.buffer,Et.buffer=va,ns=Et.size,Et.size=zn,Js=Et.normalized,Et.normalized=is,cs=Et.type,Et.type=Cs,sl=Et.offset,Et.offset=Ks,ll=Et.stride,Et.stride=dl,il=Et.divisor,Et.divisor=xl,zl=Ut.vert,Ut.vert=Ae,Ml=Ut.frag,Ut.frag=at,Yt.dirty=!0,an(rt,Bi,rn),rt.viewportWidth=ft,rt.viewportHeight=tr,_r[0]=pr,_r[1]=gr,_r[2]=Zr,_r[3]=Ai,fe[0]=Qi,fe[1]=ni,fe[2]=Zi,fe[3]=aa,zt.blend_enable=Mn,dt[0]=Un,dt[1]=Ga,Pt[0]=ma,Pt[1]=oa,Pt[2]=ka,Pt[3]=so,zt.depth_enable=Kr,Vt[0]=ys,Vt[1]=uo,Vt[2]=ls,Vt[3]=$a,zt.scissor_enable=fo,mn&&(r.cpuTime+=performance.now()-ra),hr.count=wa,hr.instances=Co,hr.primitive=Po,Oe[Fe]=gn,Oe[ye]=Ha,Oe[Ve]=ao,Oe[ce]=Ko,Oe[Ke]=Wi,Oe[nt]=Qa,Oe[gt]=da,Oe[Nt]=vo,Oe[it]=ps,Ye.state=co,Ye.x=mo,Ye.y=No,Ye.z=jn,Ye.w=Go,Ye.buffer=Ys,Ye.size=qs,Ye.normalized=Ns,Ye.type=Oa,Ye.offset=ha,Ye.stride=Vs,Ye.divisor=Ya,kt.state=_n,kt.x=Vn,kt.y=wo,kt.z=Ra,kt.w=Xn,kt.buffer=un,kt.size=$n,kt.normalized=Ka,kt.type=qn,kt.offset=Eo,kt.stride=Ja,kt.divisor=lo,Tt.state=eo,Tt.x=sa,Tt.y=es,Tt.z=Na,Tt.w=tn,Tt.buffer=Pa,Tt.size=to,Tt.normalized=yo,Tt.type=Jo,Tt.offset=Ao,Tt.stride=Dn,Tt.divisor=_a,Ca&&br.destroyStream(ts),St.state=za,St.x=ea,St.y=rs,St.z=$s,St.w=us,St.buffer=Ds,St.size=fl,St.normalized=as,St.type=Ma,St.offset=Qs,St.stride=ho,St.divisor=gs,Do&&br.destroyStream(Oo),Rt.state=os,Rt.x=_l,Rt.y=Ss,Rt.z=po,Rt.w=go,Rt.buffer=ss,Rt.size=qo,Rt.normalized=zo,Rt.type=io,Rt.offset=Io,Rt.stride=Da,Rt.divisor=vs,cl&&br.destroyStream(hl),Zt.state=At,Zt.x=Gt,Zt.y=wr,Zt.z=mr,Zt.w=Or,Zt.buffer=gi,Zt.size=Ti,Zt.normalized=ki,Zt.type=Ji,Zt.offset=Fn,Zt.stride=Pi,Zt.divisor=hi,Si&&br.destroyStream(va),Et.state=Bl,Et.x=bl,Et.y=eu,Et.z=Zl,Et.w=Ul,Et.buffer=ja,Et.size=ns,Et.normalized=Js,Et.type=cs,Et.offset=sl,Et.stride=ll,Et.divisor=il,Ut.vert=zl,Ut.frag=Ml,Yt.dirty=!0},batch:function(Bi,an){var rn,Fi,Ri,xn,xi,Xr,ft;if(rn=De.angle_instanced_arrays,Fi=Re.next,Fi!==Re.cur&&(Fi?Ue.bindFramebuffer(36160,Fi.framebuffer):Ue.bindFramebuffer(36160,null),Re.cur=Fi),Yt.dirty){var tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po;tr=zt.dither,tr!==Yt.dither&&(tr?Ue.enable(3024):Ue.disable(3024),Yt.dither=tr),pr=zt.depth_func,pr!==Yt.depth_func&&(Ue.depthFunc(pr),Yt.depth_func=pr),gr=Hr[0],Zr=Hr[1],(gr!==Dr[0]||Zr!==Dr[1])&&(Ue.depthRange(gr,Zr),Dr[0]=gr,Dr[1]=Zr),Ai=zt.depth_mask,Ai!==Yt.depth_mask&&(Ue.depthMask(Ai),Yt.depth_mask=Ai),Qi=Mr[0],ni=Mr[1],Zi=Mr[2],aa=Mr[3],(Qi!==Fr[0]||ni!==Fr[1]||Zi!==Fr[2]||aa!==Fr[3])&&(Ue.colorMask(Qi,ni,Zi,aa),Fr[0]=Qi,Fr[1]=ni,Fr[2]=Zi,Fr[3]=aa),Mn=zt.cull_enable,Mn!==Yt.cull_enable&&(Mn?Ue.enable(2884):Ue.disable(2884),Yt.cull_enable=Mn),Un=zt.cull_face,Un!==Yt.cull_face&&(Ue.cullFace(Un),Yt.cull_face=Un),Ga=zt.frontFace,Ga!==Yt.frontFace&&(Ue.frontFace(Ga),Yt.frontFace=Ga),ma=zt.lineWidth,ma!==Yt.lineWidth&&(Ue.lineWidth(ma),Yt.lineWidth=ma),oa=zt.polygonOffset_enable,oa!==Yt.polygonOffset_enable&&(oa?Ue.enable(32823):Ue.disable(32823),Yt.polygonOffset_enable=oa),ka=di[0],so=di[1],(ka!==Di[0]||so!==Di[1])&&(Ue.polygonOffset(ka,so),Di[0]=ka,Di[1]=so),Kr=zt.sample_alpha,Kr!==Yt.sample_alpha&&(Kr?Ue.enable(32926):Ue.disable(32926),Yt.sample_alpha=Kr),Ia=zt.sample_enable,Ia!==Yt.sample_enable&&(Ia?Ue.enable(32928):Ue.disable(32928),Yt.sample_enable=Ia),Yo=Ii[0],fa=Ii[1],(Yo!==Ci[0]||fa!==Ci[1])&&(Ue.sampleCoverage(Yo,fa),Ci[0]=Yo,Ci[1]=fa),kn=zt.stencil_enable,kn!==Yt.stencil_enable&&(kn?Ue.enable(2960):Ue.disable(2960),Yt.stencil_enable=kn),Ta=zt.stencil_mask,Ta!==Yt.stencil_mask&&(Ue.stencilMask(Ta),Yt.stencil_mask=Ta),ys=nn[0],uo=nn[1],ls=nn[2],(ys!==ii[0]||uo!==ii[1]||ls!==ii[2])&&(Ue.stencilFunc(ys,uo,ls),ii[0]=ys,ii[1]=uo,ii[2]=ls),$a=wi[0],fo=wi[1],mn=wi[2],ra=wi[3],($a!==Gi[0]||fo!==Gi[1]||mn!==Gi[2]||ra!==Gi[3])&&(Ue.stencilOpSeparate($a,fo,mn,ra),Gi[0]=$a,Gi[1]=fo,Gi[2]=mn,Gi[3]=ra),wa=Bt[0],ws=Bt[1],Co=Bt[2],Po=Bt[3],(wa!==yt[0]||ws!==yt[1]||Co!==yt[2]||Po!==yt[3])&&(Ue.stencilOpSeparate(wa,ws,Co,Po),yt[0]=wa,yt[1]=ws,yt[2]=Co,yt[3]=Po)}Ue.blendColor(0,0,0,0),pe[0]=0,pe[1]=0,pe[2]=0,pe[3]=0,wt?Ue.enable(3042):Ue.disable(3042),Yt.blend_enable=wt,Ue.blendEquationSeparate(32774,32774),It[0]=32774,It[1]=32774,Ue.blendFuncSeparate(770,771,773,1),rr[0]=770,rr[1]=771,rr[2]=773,rr[3]=1,vt?Ue.enable(2929):Ue.disable(2929),Yt.depth_enable=vt,st?Ue.enable(3089):Ue.disable(3089),Yt.scissor_enable=st,Ri=Yt.profile,Ri&&(xn=performance.now(),r.count+=an),Ue.useProgram(f.program),xi=De.angle_instanced_arrays;var ji,gn,Ps,Ha,Sn,ao,Ba,Ko;for(xe.setVAO(null),ji=h.location,gn=Ie[ji],gn.buffer||Ue.enableVertexAttribArray(ji),(gn.type!==5126||gn.size!==2||gn.buffer!==c||gn.normalized!==!1||gn.offset!==16||gn.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(ji,2,5126,!1,24,16),gn.type=5126,gn.size=2,gn.buffer=c,gn.normalized=!1,gn.offset=16,gn.stride=24),gn.divisor!==0&&(xi.vertexAttribDivisorANGLE(ji,0),gn.divisor=0),Ps=_.location,Ha=Ie[Ps],Ha.buffer||Ue.enableVertexAttribArray(Ps),(Ha.type!==5126||Ha.size!==2||Ha.buffer!==c||Ha.normalized!==!1||Ha.offset!==0||Ha.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(Ps,2,5126,!1,24,0),Ha.type=5126,Ha.size=2,Ha.buffer=c,Ha.normalized=!1,Ha.offset=0,Ha.stride=24),Ha.divisor!==0&&(xi.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=k.location,ao=Ie[Sn],ao.buffer||Ue.enableVertexAttribArray(Sn),(ao.type!==5126||ao.size!==2||ao.buffer!==c||ao.normalized!==!1||ao.offset!==8||ao.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(Sn,2,5126,!1,24,8),ao.type=5126,ao.size=2,ao.buffer=c,ao.normalized=!1,ao.offset=8,ao.stride=24),ao.divisor!==0&&(xi.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Ba=hr.elements,Ba?Ue.bindBuffer(34963,Ba.buffer.buffer):xe.currentVAO&&(Ba=yr.getElements(xe.currentVAO.elements),Ba&&Ue.bindBuffer(34963,Ba.buffer.buffer)),Ko=hr.offset,Xr=0;Xr0?ti.constant[0]:0,qs=ti.constant.length>1?ti.constant[1]:0,Ns=ti.constant.length>2?ti.constant[2]:0,Oa=ti.constant.length>3?ti.constant[3]:0)):(ge(ti.buffer)?ha=br.createStream(34962,ti.buffer):ha=br.getBuffer(ti.buffer),_n="type"in ti?Ei[ti.type]:ha.dtype,Ya=!!ti.normalized,Vs=ti.size|0,Vn=ti.offset|0,wo=ti.stride|0,Ra=ti.divisor|0)),Xn=p.location,un=Ie[Xn],Go===1?(un.buffer||Ue.enableVertexAttribArray(Xn),$n=Vs||4,(un.type!==_n||un.size!==$n||un.buffer!==ha||un.normalized!==Ya||un.offset!==Vn||un.stride!==wo)&&(Ue.bindBuffer(34962,ha.buffer),Ue.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),un.type=_n,un.size=$n,un.buffer=ha,un.normalized=Ya,un.offset=Vn,un.stride=wo),un.divisor!==Ra&&(xi.vertexAttribDivisorANGLE(Xn,Ra),un.divisor=Ra)):(un.buffer&&(Ue.disableVertexAttribArray(Xn),un.buffer=null),(un.x!==Ys||un.y!==qs||un.z!==Ns||un.w!==Oa)&&(Ue.vertexAttrib4f(Xn,Ys,qs,Ns,Oa),un.x=Ys,un.y=qs,un.z=Ns,un.w=Oa)),Ka=b.call(this,rt,ft,Xr),oi.offset=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,tn=!1,Pa=5126,to=0,yo=0,Jo=0,ge(oi)?(qn=!0,es=br.createStream(34962,oi),Pa=es.dtype):(es=br.getBuffer(oi),es?Pa=es.dtype:"constant"in oi?(Eo=2,typeof oi.constant=="number"?(Ja=oi.constant,lo=eo=sa=0):(Ja=oi.constant.length>0?oi.constant[0]:0,lo=oi.constant.length>1?oi.constant[1]:0,eo=oi.constant.length>2?oi.constant[2]:0,sa=oi.constant.length>3?oi.constant[3]:0)):(ge(oi.buffer)?es=br.createStream(34962,oi.buffer):es=br.getBuffer(oi.buffer),Pa="type"in oi?Ei[oi.type]:es.dtype,tn=!!oi.normalized,Na=oi.size|0,to=oi.offset|0,yo=oi.stride|0,Jo=oi.divisor|0)),Ao=v.location,Dn=Ie[Ao],Eo===1?(Dn.buffer||Ue.enableVertexAttribArray(Ao),_a=Na||4,(Dn.type!==Pa||Dn.size!==_a||Dn.buffer!==es||Dn.normalized!==tn||Dn.offset!==to||Dn.stride!==yo)&&(Ue.bindBuffer(34962,es.buffer),Ue.vertexAttribPointer(Ao,_a,Pa,tn,yo,to),Dn.type=Pa,Dn.size=_a,Dn.buffer=es,Dn.normalized=tn,Dn.offset=to,Dn.stride=yo),Dn.divisor!==Jo&&(xi.vertexAttribDivisorANGLE(Ao,Jo),Dn.divisor=Jo)):(Dn.buffer&&(Ue.disableVertexAttribArray(Ao),Dn.buffer=null),(Dn.x!==Ja||Dn.y!==lo||Dn.z!==eo||Dn.w!==sa)&&(Ue.vertexAttrib4f(Ao,Ja,lo,eo,sa),Dn.x=Ja,Dn.y=lo,Dn.z=eo,Dn.w=sa)),Ws=E.call(this,rt,ft,Xr),en.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,ge(en)?(Ca=!0,ts=br.createStream(34962,en),ln=ts.dtype):(ts=br.getBuffer(en),ts?ln=ts.dtype:"constant"in en?(Es=2,typeof en.constant=="number"?(Ts=en.constant,Ho=Wa=To=0):(Ts=en.constant.length>0?en.constant[0]:0,Ho=en.constant.length>1?en.constant[1]:0,Wa=en.constant.length>2?en.constant[2]:0,To=en.constant.length>3?en.constant[3]:0)):(ge(en.buffer)?ts=br.createStream(34962,en.buffer):ts=br.getBuffer(en.buffer),ln="type"in en?Ei[en.type]:ts.dtype,qa=!!en.normalized,Wo=en.size|0,Bo=en.offset|0,ko=en.stride|0,oo=en.divisor|0)),za=T.location,ea=Ie[za],Es===1?(ea.buffer||Ue.enableVertexAttribArray(za),rs=Wo||2,(ea.type!==ln||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Bo||ea.stride!==ko)&&(Ue.bindBuffer(34962,ts.buffer),Ue.vertexAttribPointer(za,rs,ln,qa,ko,Bo),ea.type=ln,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Bo,ea.stride=ko),ea.divisor!==oo&&(xi.vertexAttribDivisorANGLE(za,oo),ea.divisor=oo)):(ea.buffer&&(Ue.disableVertexAttribArray(za),ea.buffer=null),(ea.x!==Ts||ea.y!==Ho||ea.z!==Wa||ea.w!==To)&&(Ue.vertexAttrib4f(za,Ts,Ho,Wa,To),ea.x=Ts,ea.y=Ho,ea.z=Wa,ea.w=To)),$s=L.call(this,rt,ft,Xr),Yr.offset=$s,us=!1,Ds=1,fl=0,as=0,Ma=0,Qs=0,ho=null,gs=0,Vo=!1,Do=5126,Lo=0,xs=0,ks=0,ge(Yr)?(us=!0,ho=br.createStream(34962,Yr),Do=ho.dtype):(ho=br.getBuffer(Yr),ho?Do=ho.dtype:"constant"in Yr?(Ds=2,typeof Yr.constant=="number"?(fl=Yr.constant,as=Ma=Qs=0):(fl=Yr.constant.length>0?Yr.constant[0]:0,as=Yr.constant.length>1?Yr.constant[1]:0,Ma=Yr.constant.length>2?Yr.constant[2]:0,Qs=Yr.constant.length>3?Yr.constant[3]:0)):(ge(Yr.buffer)?ho=br.createStream(34962,Yr.buffer):ho=br.getBuffer(Yr.buffer),Do="type"in Yr?Ei[Yr.type]:ho.dtype,Vo=!!Yr.normalized,gs=Yr.size|0,Lo=Yr.offset|0,xs=Yr.stride|0,ks=Yr.divisor|0)),Ea=x.location,Jn=Ie[Ea],Ds===1?(Jn.buffer||Ue.enableVertexAttribArray(Ea),Oo=gs||2,(Jn.type!==Do||Jn.size!==Oo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&(Ue.bindBuffer(34962,ho.buffer),Ue.vertexAttribPointer(Ea,Oo,Do,Vo,xs,Lo),Jn.type=Do,Jn.size=Oo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&(xi.vertexAttribDivisorANGLE(Ea,ks),Jn.divisor=ks)):(Jn.buffer&&(Ue.disableVertexAttribArray(Ea),Jn.buffer=null),(Jn.x!==fl||Jn.y!==as||Jn.z!==Ma||Jn.w!==Qs)&&(Ue.vertexAttrib4f(Ea,fl,as,Ma,Qs),Jn.x=fl,Jn.y=as,Jn.z=Ma,Jn.w=Qs)),rl=ft.capSize,(!Xr||Gs!==rl)&&(Gs=rl,Ue.uniform1f(C.location,rl)),bs=ft.lineWidth,(!Xr||zs!==bs)&&(zs=bs,Ue.uniform1f(M.location,bs)),$o=ft.opacity,(!Xr||Aa!==$o)&&(Aa=$o,Ue.uniform1f(m.location,$o)),os=ft.scale,_l=os[0],po=os[1],(!Xr||Ss!==_l||go!==po)&&(Ss=_l,go=po,Ue.uniform2f(P.location,_l,po)),ss=ft.scaleFract,qo=ss[0],io=ss[1],(!Xr||zo!==qo||Io!==io)&&(zo=qo,Io=io,Ue.uniform2f(A.location,qo,io)),Da=ft.translate,vs=Da[0],cl=Da[1],(!Xr||fs!==vs||el!==cl)&&(fs=vs,el=cl,Ue.uniform2f(B.location,vs,cl)),Hs=ft.translateFract,Ro=Hs[0],Fs=Hs[1],(!Xr||tl!==Ro||hl!==Fs)&&(tl=Ro,hl=Fs,Ue.uniform2f(F.location,Ro,Fs)),Fa=G.call(this,rt,ft,Xr),Ms=Fa[0],Rs=Fa[1],Bs=Fa[2],Gt=Fa[3],(!Xr||jo!==Ms||Is!==Rs||At!==Bs||wr!==Gt)&&(jo=Ms,Is=Rs,At=Bs,wr=Gt,Ue.uniform4f(U.location,Ms,Rs,Bs,Gt)),mr=ft.count,mr>0?Ba?xi.drawElementsInstancedANGLE(4,36,Ba.type,Ko<<(Ba.type-5121>>1),mr):xi.drawArraysInstancedANGLE(4,Ko,36,mr):mr<0&&(Ba?Ue.drawElements(4,36,Ba.type,Ko<<(Ba.type-5121>>1)):Ue.drawArrays(4,Ko,36)),rt.viewportWidth=da,rt.viewportHeight=la,jn&&br.destroyStream(ha),qn&&br.destroyStream(es),Ca&&br.destroyStream(ts),us&&br.destroyStream(ho)}Yt.dirty=!0,xe.setVAO(null),Ri&&(r.cpuTime+=performance.now()-xn)}}}});var I8=Te(($_r,VNe)=>{VNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt,Nt,it,Ye,kt,Tt,St,Rt,Zt,Et){"use strict";var Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr;return Ae=t.gl,at=t.context,wt=t.strings,vt=t.next,st=t.current,Ue=t.draw,rt=t.elements,$e=t.buffer,zt=t.shader,Yt=t.attributes,hr=t.vao,yr=t.uniforms,br=t.framebuffer,Ut=t.extensions,Ie=t.timer,xe=t.isBufferArgs,Oe=vt.blend_color,Re=st.blend_color,De=vt.blend_equation,ct=st.blend_equation,ge=vt.blend_func,fe=st.blend_func,pe=vt.depth_range,dt=st.depth_range,It=vt.colorMask,Pt=st.colorMask,rr=vt.polygonOffset_offset,Hr=st.polygonOffset_offset,Dr=vt.sample_coverage,Mr=st.sample_coverage,Fr=vt.stencil_func,di=st.stencil_func,Di=vt.stencil_opFront,Ii=st.stencil_opFront,Ci=vt.stencil_opBack,nn=st.stencil_opBack,ii=vt.scissor_box,wi=st.scissor_box,Gi=vt.viewport,Bt=st.viewport,yt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Vt={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Wt={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},_r={add:32774,subtract:32778,"reverse subtract":32779},Lr={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ur={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ir={cw:2304,ccw:2305},Gr={},Gr.offset=4,Gr.stride=8,jr={},jr.offset=0,jr.stride=8,{draw:function(yi){var Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo;if(Ei=Ut.angle_instanced_arrays,Vi=br.next,Vi!==br.cur&&(Vi?Ae.bindFramebuffer(36160,Vi.framebuffer):Ae.bindFramebuffer(36160,null),br.cur=Vi),st.dirty){var za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs;za=vt.dither,za!==st.dither&&(za?Ae.enable(3024):Ae.disable(3024),st.dither=za),ea=De[0],rs=De[1],(ea!==ct[0]||rs!==ct[1])&&(Ae.blendEquationSeparate(ea,rs),ct[0]=ea,ct[1]=rs),$s=vt.depth_func,$s!==st.depth_func&&(Ae.depthFunc($s),st.depth_func=$s),us=pe[0],Ds=pe[1],(us!==dt[0]||Ds!==dt[1])&&(Ae.depthRange(us,Ds),dt[0]=us,dt[1]=Ds),fl=vt.depth_mask,fl!==st.depth_mask&&(Ae.depthMask(fl),st.depth_mask=fl),as=It[0],Ma=It[1],Qs=It[2],ho=It[3],(as!==Pt[0]||Ma!==Pt[1]||Qs!==Pt[2]||ho!==Pt[3])&&(Ae.colorMask(as,Ma,Qs,ho),Pt[0]=as,Pt[1]=Ma,Pt[2]=Qs,Pt[3]=ho),gs=vt.cull_enable,gs!==st.cull_enable&&(gs?Ae.enable(2884):Ae.disable(2884),st.cull_enable=gs),Vo=vt.cull_face,Vo!==st.cull_face&&(Ae.cullFace(Vo),st.cull_face=Vo),Do=vt.frontFace,Do!==st.frontFace&&(Ae.frontFace(Do),st.frontFace=Do),Lo=vt.lineWidth,Lo!==st.lineWidth&&(Ae.lineWidth(Lo),st.lineWidth=Lo),xs=vt.polygonOffset_enable,xs!==st.polygonOffset_enable&&(xs?Ae.enable(32823):Ae.disable(32823),st.polygonOffset_enable=xs),ks=rr[0],Ea=rr[1],(ks!==Hr[0]||Ea!==Hr[1])&&(Ae.polygonOffset(ks,Ea),Hr[0]=ks,Hr[1]=Ea),Jn=vt.sample_alpha,Jn!==st.sample_alpha&&(Jn?Ae.enable(32926):Ae.disable(32926),st.sample_alpha=Jn),Oo=vt.sample_enable,Oo!==st.sample_enable&&(Oo?Ae.enable(32928):Ae.disable(32928),st.sample_enable=Oo),rl=Dr[0],Gs=Dr[1],(rl!==Mr[0]||Gs!==Mr[1])&&(Ae.sampleCoverage(rl,Gs),Mr[0]=rl,Mr[1]=Gs),bs=vt.stencil_mask,bs!==st.stencil_mask&&(Ae.stencilMask(bs),st.stencil_mask=bs),zs=Fr[0],$o=Fr[1],Aa=Fr[2],(zs!==di[0]||$o!==di[1]||Aa!==di[2])&&(Ae.stencilFunc(zs,$o,Aa),di[0]=zs,di[1]=$o,di[2]=Aa),os=Di[0],_l=Di[1],Ss=Di[2],po=Di[3],(os!==Ii[0]||_l!==Ii[1]||Ss!==Ii[2]||po!==Ii[3])&&(Ae.stencilOpSeparate(os,_l,Ss,po),Ii[0]=os,Ii[1]=_l,Ii[2]=Ss,Ii[3]=po),go=Ci[0],ss=Ci[1],qo=Ci[2],zo=Ci[3],(go!==nn[0]||ss!==nn[1]||qo!==nn[2]||zo!==nn[3])&&(Ae.stencilOpSeparate(go,ss,qo,zo),nn[0]=go,nn[1]=ss,nn[2]=qo,nn[3]=zo),io=vt.scissor_enable,io!==st.scissor_enable&&(io?Ae.enable(3089):Ae.disable(3089),st.scissor_enable=io),Io=ii[0],Da=ii[1],vs=ii[2],fs=ii[3],(Io!==wi[0]||Da!==wi[1]||vs!==wi[2]||fs!==wi[3])&&(Ae.scissor(Io,Da,vs,fs),wi[0]=Io,wi[1]=Da,wi[2]=vs,wi[3]=fs)}ti=this.viewport,en=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:at.framebufferWidth-en,Bi="height"in ti?ti.height|0:at.framebufferHeight-Yr,an=at.viewportWidth,at.viewportWidth=oi,rn=at.viewportHeight,at.viewportHeight=Bi,Ae.viewport(en,Yr,oi,Bi),Bt[0]=en,Bt[1]=Yr,Bt[2]=oi,Bt[3]=Bi,Ae.blendColor(0,0,0,1),Re[0]=0,Re[1]=0,Re[2]=0,Re[3]=1,n?Ae.enable(3042):Ae.disable(3042),st.blend_enable=n,Ae.blendFuncSeparate(770,771,773,1),fe[0]=770,fe[1]=771,fe[2]=773,fe[3]=1,i?Ae.enable(2929):Ae.disable(2929),st.depth_enable=i,a?Ae.enable(2960):Ae.disable(2960),st.stencil_enable=a,Fi=st.profile,Fi&&(Ri=performance.now(),r.count++),Ae.useProgram(o.program),xn=Ut.angle_instanced_arrays,hr.setVAO(null),xi=this.charBuffer,Xr=!1,ft=1,tr=0,pr=0,gr=0,Zr=0,Ai=null,Qi=0,ni=!1,Zi=5126,aa=0,Mn=0,Un=0,xe(xi)?(Xr=!0,Ai=$e.createStream(34962,xi),Zi=Ai.dtype):(Ai=$e.getBuffer(xi),Ai?Zi=Ai.dtype:"constant"in xi?(ft=2,typeof xi.constant=="number"?(tr=xi.constant,pr=gr=Zr=0):(tr=xi.constant.length>0?xi.constant[0]:0,pr=xi.constant.length>1?xi.constant[1]:0,gr=xi.constant.length>2?xi.constant[2]:0,Zr=xi.constant.length>3?xi.constant[3]:0)):(xe(xi.buffer)?Ai=$e.createStream(34962,xi.buffer):Ai=$e.getBuffer(xi.buffer),Zi="type"in xi?Ur[xi.type]:Ai.dtype,ni=!!xi.normalized,Qi=xi.size|0,aa=xi.offset|0,Mn=xi.stride|0,Un=xi.divisor|0)),Ga=s.location,ma=Yt[Ga],ft===1?(ma.buffer||Ae.enableVertexAttribArray(Ga),oa=Qi||1,(ma.type!==Zi||ma.size!==oa||ma.buffer!==Ai||ma.normalized!==ni||ma.offset!==aa||ma.stride!==Mn)&&(Ae.bindBuffer(34962,Ai.buffer),Ae.vertexAttribPointer(Ga,oa,Zi,ni,Mn,aa),ma.type=Zi,ma.size=oa,ma.buffer=Ai,ma.normalized=ni,ma.offset=aa,ma.stride=Mn),ma.divisor!==Un&&(xn.vertexAttribDivisorANGLE(Ga,Un),ma.divisor=Un)):(ma.buffer&&(Ae.disableVertexAttribArray(Ga),ma.buffer=null),(ma.x!==tr||ma.y!==pr||ma.z!==gr||ma.w!==Zr)&&(Ae.vertexAttrib4f(Ga,tr,pr,gr,Zr),ma.x=tr,ma.y=pr,ma.z=gr,ma.w=Zr)),ka=this.sizeBuffer,Gr.buffer=ka,so=!1,Kr=1,Ia=0,Yo=0,fa=0,kn=0,Ta=null,ys=0,uo=!1,ls=5126,$a=0,fo=0,mn=0,xe(Gr)?(so=!0,Ta=$e.createStream(34962,Gr),ls=Ta.dtype):(Ta=$e.getBuffer(Gr),Ta?ls=Ta.dtype:"constant"in Gr?(Kr=2,typeof Gr.constant=="number"?(Ia=Gr.constant,Yo=fa=kn=0):(Ia=Gr.constant.length>0?Gr.constant[0]:0,Yo=Gr.constant.length>1?Gr.constant[1]:0,fa=Gr.constant.length>2?Gr.constant[2]:0,kn=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?Ta=$e.createStream(34962,Gr.buffer):Ta=$e.getBuffer(Gr.buffer),ls="type"in Gr?Ur[Gr.type]:Ta.dtype,uo=!!Gr.normalized,ys=Gr.size|0,$a=Gr.offset|0,fo=Gr.stride|0,mn=Gr.divisor|0)),ra=u.location,wa=Yt[ra],Kr===1?(wa.buffer||Ae.enableVertexAttribArray(ra),ws=ys||1,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(Ae.bindBuffer(34962,Ta.buffer),Ae.vertexAttribPointer(ra,ws,ls,uo,fo,$a),wa.type=ls,wa.size=ws,wa.buffer=Ta,wa.normalized=uo,wa.offset=$a,wa.stride=fo),wa.divisor!==mn&&(xn.vertexAttribDivisorANGLE(ra,mn),wa.divisor=mn)):(wa.buffer&&(Ae.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(Ae.vertexAttrib4f(ra,Ia,Yo,fa,kn),wa.x=Ia,wa.y=Yo,wa.z=fa,wa.w=kn)),Co=this.position,Po=!1,ji=1,gn=0,Ps=0,Ha=0,Sn=0,ao=null,Ba=0,Ko=!1,Qo=5126,Wi=0,Sa=0,Qa=0,xe(Co)?(Po=!0,ao=$e.createStream(34962,Co),Qo=ao.dtype):(ao=$e.getBuffer(Co),ao?Qo=ao.dtype:"constant"in Co?(ji=2,typeof Co.constant=="number"?(gn=Co.constant,Ps=Ha=Sn=0):(gn=Co.constant.length>0?Co.constant[0]:0,Ps=Co.constant.length>1?Co.constant[1]:0,Ha=Co.constant.length>2?Co.constant[2]:0,Sn=Co.constant.length>3?Co.constant[3]:0)):(xe(Co.buffer)?ao=$e.createStream(34962,Co.buffer):ao=$e.getBuffer(Co.buffer),Qo="type"in Co?Ur[Co.type]:ao.dtype,Ko=!!Co.normalized,Ba=Co.size|0,Wi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=l.location,da=Yt[vn],ji===1?(da.buffer||Ae.enableVertexAttribArray(vn),la=Ba||2,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Wi||da.stride!==Sa)&&(Ae.bindBuffer(34962,ao.buffer),Ae.vertexAttribPointer(vn,la,Qo,Ko,Sa,Wi),da.type=Qo,da.size=la,da.buffer=ao,da.normalized=Ko,da.offset=Wi,da.stride=Sa),da.divisor!==Qa&&(xn.vertexAttribDivisorANGLE(vn,Qa),da.divisor=Qa)):(da.buffer&&(Ae.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(Ae.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=this.sizeBuffer,jr.buffer=vo,As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Oa=0,ha=0,Vs=0,xe(jr)?(As=!0,Go=$e.createStream(34962,jr),Ns=Go.dtype):(Go=$e.getBuffer(jr),Go?Ns=Go.dtype:"constant"in jr?(ps=2,typeof jr.constant=="number"?(co=jr.constant,mo=No=jn=0):(co=jr.constant.length>0?jr.constant[0]:0,mo=jr.constant.length>1?jr.constant[1]:0,No=jr.constant.length>2?jr.constant[2]:0,jn=jr.constant.length>3?jr.constant[3]:0)):(xe(jr.buffer)?Go=$e.createStream(34962,jr.buffer):Go=$e.getBuffer(jr.buffer),Ns="type"in jr?Ur[jr.type]:Go.dtype,qs=!!jr.normalized,Ys=jr.size|0,Oa=jr.offset|0,ha=jr.stride|0,Vs=jr.divisor|0)),Ya=f.location,_n=Yt[Ya],ps===1?(_n.buffer||Ae.enableVertexAttribArray(Ya),Vn=Ys||1,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Oa||_n.stride!==ha)&&(Ae.bindBuffer(34962,Go.buffer),Ae.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Oa),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Oa,_n.stride=ha),_n.divisor!==Vs&&(xn.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(Ae.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(Ae.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=yi.align,Ae.uniform1f(c.location,wo),Ra=d.call(this,at,yi,0),Ra&&Ra._reglType==="framebuffer"&&(Ra=Ra.color[0]),Xn=Ra._texture,Ae.uniform1i(h.location,Xn.bind()),un=_.call(this,at,yi,0),$n=un[0],Ka=un[1],Ae.uniform2f(p.location,$n,Ka),qn=v.call(this,at,yi,0),Eo=qn[0],Ja=qn[1],Ae.uniform2f(b.location,Eo,Ja),lo=yi.baseline,Ae.uniform1f(k.location,lo),eo=T.call(this,at,yi,0),Ae.uniform1f(E.location,eo),sa=yi.color,es=sa[0],Na=sa[1],tn=sa[2],Pa=sa[3],Ae.uniform4f(L.location,es,Na,tn,Pa),to=C.call(this,at,yi,0),Ae.uniform1f(x.location,to),yo=yi.opacity,Ae.uniform1f(M.location,yo),Jo=yi.positionOffset,Ao=Jo[0],Dn=Jo[1],Ae.uniform2f(m.location,Ao,Dn),_a=this.scale,Ws=_a[0],Ca=_a[1],Ae.uniform2f(P.location,Ws,Ca),Es=this.translate,Ts=Es[0],Ho=Es[1],Ae.uniform2f(A.location,Ts,Ho),Wa=this.viewportArray,To=Wa[0],ts=Wa[1],Wo=Wa[2],qa=Wa[3],Ae.uniform4f(B.location,To,ts,Wo,qa),ln=Ue.elements,ln?Ae.bindBuffer(34963,ln.buffer.buffer):hr.currentVAO&&(ln=rt.getElements(hr.currentVAO.elements),ln&&Ae.bindBuffer(34963,ln.buffer.buffer)),Bo=yi.offset,ko=yi.count,ko&&(oo=Ue.instances,oo>0?ln?xn.drawElementsInstancedANGLE(0,ko,ln.type,Bo<<(ln.type-5121>>1),oo):xn.drawArraysInstancedANGLE(0,Bo,ko,oo):oo<0&&(ln?Ae.drawElements(0,ko,ln.type,Bo<<(ln.type-5121>>1)):Ae.drawArrays(0,Bo,ko)),st.dirty=!0,hr.setVAO(null),at.viewportWidth=an,at.viewportHeight=rn,Fi&&(r.cpuTime+=performance.now()-Ri),Xr&&$e.destroyStream(Ai),so&&$e.destroyStream(Ta),Po&&$e.destroyStream(ao),As&&$e.destroyStream(Go),Xn.unbind())},scope:function(yi,Ei,Vi){var ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa;ti=this.viewport,en=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:at.framebufferWidth-en,Bi="height"in ti?ti.height|0:at.framebufferHeight-Yr,an=at.viewportWidth,at.viewportWidth=oi,rn=at.viewportHeight,at.viewportHeight=Bi,Fi=Gi[0],Gi[0]=en,Ri=Gi[1],Gi[1]=Yr,xn=Gi[2],Gi[2]=oi,xi=Gi[3],Gi[3]=Bi,Xr=Oe[0],Oe[0]=F,ft=Oe[1],Oe[1]=U,tr=Oe[2],Oe[2]=G,pr=Oe[3],Oe[3]=j,gr=vt.blend_enable,vt.blend_enable=H,Zr=ge[0],ge[0]=N,Ai=ge[1],ge[1]=W,Qi=ge[2],ge[2]=re,ni=ge[3],ge[3]=ae,Zi=vt.depth_enable,vt.depth_enable=be,aa=vt.stencil_enable,vt.stencil_enable=Pe,Mn=st.profile,Mn&&(Un=performance.now(),r.count++),Ga=yi.offset,ma=Ue.offset,Ue.offset=Ga,oa=yi.count,ka=Ue.count,Ue.count=oa,so=Ue.primitive,Ue.primitive=Ce,Kr=v.call(this,at,yi,Vi),Ia=yr[de],yr[de]=Kr,Yo=_.call(this,at,yi,Vi),fa=yr[te],yr[te]=Yo,kn=d.call(this,at,yi,Vi),Ta=yr[ke],yr[ke]=kn,ys=T.call(this,at,yi,Vi),uo=yr[Ee],yr[Ee]=ys,ls=C.call(this,at,yi,Vi),$a=yr[Me],yr[Me]=ls,fo=yi.color,mn=yr[Ne],yr[Ne]=fo,ra=yi.opacity,wa=yr[Fe],yr[Fe]=ra,ws=this.viewportArray,Co=yr[ye],yr[ye]=ws,Po=this.scale,ji=yr[Ve],yr[Ve]=Po,gn=yi.align,Ps=yr[ce],yr[ce]=gn,Ha=yi.baseline,Sn=yr[Ke],yr[Ke]=Ha,ao=this.translate,Ba=yr[nt],yr[nt]=ao,Ko=yi.positionOffset,Qo=yr[gt],yr[gt]=Ko,Wi=this.charBuffer,Sa=!1,Qa=1,vn=0,da=0,la=0,vo=0,As=null,ps=0,co=!1,mo=5126,No=0,jn=0,Go=0,xe(Wi)?(Sa=!0,As=$e.createStream(34962,Wi),mo=As.dtype):(As=$e.getBuffer(Wi),As?mo=As.dtype:"constant"in Wi?(Qa=2,typeof Wi.constant=="number"?(vn=Wi.constant,da=la=vo=0):(vn=Wi.constant.length>0?Wi.constant[0]:0,da=Wi.constant.length>1?Wi.constant[1]:0,la=Wi.constant.length>2?Wi.constant[2]:0,vo=Wi.constant.length>3?Wi.constant[3]:0)):(xe(Wi.buffer)?As=$e.createStream(34962,Wi.buffer):As=$e.getBuffer(Wi.buffer),mo="type"in Wi?Ur[Wi.type]:As.dtype,co=!!Wi.normalized,ps=Wi.size|0,No=Wi.offset|0,jn=Wi.stride|0,Go=Wi.divisor|0)),Ys=Nt.state,Nt.state=Qa,qs=Nt.x,Nt.x=vn,Ns=Nt.y,Nt.y=da,Oa=Nt.z,Nt.z=la,ha=Nt.w,Nt.w=vo,Vs=Nt.buffer,Nt.buffer=As,Ya=Nt.size,Nt.size=ps,_n=Nt.normalized,Nt.normalized=co,Vn=Nt.type,Nt.type=mo,wo=Nt.offset,Nt.offset=No,Ra=Nt.stride,Nt.stride=jn,Xn=Nt.divisor,Nt.divisor=Go,un=this.position,$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,tn=0,Pa=0,to=0,xe(un)?($n=!0,eo=$e.createStream(34962,un),Na=eo.dtype):(eo=$e.getBuffer(un),eo?Na=eo.dtype:"constant"in un?(Ka=2,typeof un.constant=="number"?(qn=un.constant,Eo=Ja=lo=0):(qn=un.constant.length>0?un.constant[0]:0,Eo=un.constant.length>1?un.constant[1]:0,Ja=un.constant.length>2?un.constant[2]:0,lo=un.constant.length>3?un.constant[3]:0)):(xe(un.buffer)?eo=$e.createStream(34962,un.buffer):eo=$e.getBuffer(un.buffer),Na="type"in un?Ur[un.type]:eo.dtype,es=!!un.normalized,sa=un.size|0,tn=un.offset|0,Pa=un.stride|0,to=un.divisor|0)),yo=it.state,it.state=Ka,Jo=it.x,it.x=qn,Ao=it.y,it.y=Eo,Dn=it.z,it.z=Ja,_a=it.w,it.w=lo,Ws=it.buffer,it.buffer=eo,Ca=it.size,it.size=sa,Es=it.normalized,it.normalized=es,Ts=it.type,it.type=Na,Ho=it.offset,it.offset=tn,Wa=it.stride,it.stride=Pa,To=it.divisor,it.divisor=to,ts=this.sizeBuffer,Gr.buffer=ts,Wo=!1,qa=1,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,xe(Gr)?(Wo=!0,za=$e.createStream(34962,Gr),$s=za.dtype):(za=$e.getBuffer(Gr),za?$s=za.dtype:"constant"in Gr?(qa=2,typeof Gr.constant=="number"?(ln=Gr.constant,Bo=ko=oo=0):(ln=Gr.constant.length>0?Gr.constant[0]:0,Bo=Gr.constant.length>1?Gr.constant[1]:0,ko=Gr.constant.length>2?Gr.constant[2]:0,oo=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?za=$e.createStream(34962,Gr.buffer):za=$e.getBuffer(Gr.buffer),$s="type"in Gr?Ur[Gr.type]:za.dtype,rs=!!Gr.normalized,ea=Gr.size|0,us=Gr.offset|0,Ds=Gr.stride|0,fl=Gr.divisor|0)),as=Ye.state,Ye.state=qa,Ma=Ye.x,Ye.x=ln,Qs=Ye.y,Ye.y=Bo,ho=Ye.z,Ye.z=ko,gs=Ye.w,Ye.w=oo,Vo=Ye.buffer,Ye.buffer=za,Do=Ye.size,Ye.size=ea,Lo=Ye.normalized,Ye.normalized=rs,xs=Ye.type,Ye.type=$s,ks=Ye.offset,Ye.offset=us,Ea=Ye.stride,Ye.stride=Ds,Jn=Ye.divisor,Ye.divisor=fl,Oo=this.sizeBuffer,jr.buffer=Oo,rl=!1,Gs=1,bs=0,zs=0,$o=0,Aa=0,os=null,_l=0,Ss=!1,po=5126,go=0,ss=0,qo=0,xe(jr)?(rl=!0,os=$e.createStream(34962,jr),po=os.dtype):(os=$e.getBuffer(jr),os?po=os.dtype:"constant"in jr?(Gs=2,typeof jr.constant=="number"?(bs=jr.constant,zs=$o=Aa=0):(bs=jr.constant.length>0?jr.constant[0]:0,zs=jr.constant.length>1?jr.constant[1]:0,$o=jr.constant.length>2?jr.constant[2]:0,Aa=jr.constant.length>3?jr.constant[3]:0)):(xe(jr.buffer)?os=$e.createStream(34962,jr.buffer):os=$e.getBuffer(jr.buffer),po="type"in jr?Ur[jr.type]:os.dtype,Ss=!!jr.normalized,_l=jr.size|0,go=jr.offset|0,ss=jr.stride|0,qo=jr.divisor|0)),zo=kt.state,kt.state=Gs,io=kt.x,kt.x=bs,Io=kt.y,kt.y=zs,Da=kt.z,kt.z=$o,vs=kt.w,kt.w=Aa,fs=kt.buffer,kt.buffer=os,cl=kt.size,kt.size=_l,el=kt.normalized,kt.normalized=Ss,Hs=kt.type,kt.type=po,Ro=kt.offset,kt.offset=go,tl=kt.stride,kt.stride=ss,Fs=kt.divisor,kt.divisor=qo,hl=zt.vert,zt.vert=Tt,Fa=zt.frag,zt.frag=St,st.dirty=!0,Ei(at,yi,Vi),at.viewportWidth=an,at.viewportHeight=rn,Gi[0]=Fi,Gi[1]=Ri,Gi[2]=xn,Gi[3]=xi,Oe[0]=Xr,Oe[1]=ft,Oe[2]=tr,Oe[3]=pr,vt.blend_enable=gr,ge[0]=Zr,ge[1]=Ai,ge[2]=Qi,ge[3]=ni,vt.depth_enable=Zi,vt.stencil_enable=aa,Mn&&(r.cpuTime+=performance.now()-Un),Ue.offset=ma,Ue.count=ka,Ue.primitive=so,yr[de]=Ia,yr[te]=fa,yr[ke]=Ta,yr[Ee]=uo,yr[Me]=$a,yr[Ne]=mn,yr[Fe]=wa,yr[ye]=Co,yr[Ve]=ji,yr[ce]=Ps,yr[Ke]=Sn,yr[nt]=Ba,yr[gt]=Qo,Sa&&$e.destroyStream(As),Nt.state=Ys,Nt.x=qs,Nt.y=Ns,Nt.z=Oa,Nt.w=ha,Nt.buffer=Vs,Nt.size=Ya,Nt.normalized=_n,Nt.type=Vn,Nt.offset=wo,Nt.stride=Ra,Nt.divisor=Xn,$n&&$e.destroyStream(eo),it.state=yo,it.x=Jo,it.y=Ao,it.z=Dn,it.w=_a,it.buffer=Ws,it.size=Ca,it.normalized=Es,it.type=Ts,it.offset=Ho,it.stride=Wa,it.divisor=To,Wo&&$e.destroyStream(za),Ye.state=as,Ye.x=Ma,Ye.y=Qs,Ye.z=ho,Ye.w=gs,Ye.buffer=Vo,Ye.size=Do,Ye.normalized=Lo,Ye.type=xs,Ye.offset=ks,Ye.stride=Ea,Ye.divisor=Jn,rl&&$e.destroyStream(os),kt.state=zo,kt.x=io,kt.y=Io,kt.z=Da,kt.w=vs,kt.buffer=fs,kt.size=cl,kt.normalized=el,kt.type=Hs,kt.offset=Ro,kt.stride=tl,kt.divisor=Fs,zt.vert=hl,zt.frag=Fa,st.dirty=!0},batch:function(yi,Ei){var Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft;if(Vi=Ut.angle_instanced_arrays,ti=br.next,ti!==br.cur&&(ti?Ae.bindFramebuffer(36160,ti.framebuffer):Ae.bindFramebuffer(36160,null),br.cur=ti),st.dirty){var tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao;tr=vt.dither,tr!==st.dither&&(tr?Ae.enable(3024):Ae.disable(3024),st.dither=tr),pr=De[0],gr=De[1],(pr!==ct[0]||gr!==ct[1])&&(Ae.blendEquationSeparate(pr,gr),ct[0]=pr,ct[1]=gr),Zr=vt.depth_func,Zr!==st.depth_func&&(Ae.depthFunc(Zr),st.depth_func=Zr),Ai=pe[0],Qi=pe[1],(Ai!==dt[0]||Qi!==dt[1])&&(Ae.depthRange(Ai,Qi),dt[0]=Ai,dt[1]=Qi),ni=vt.depth_mask,ni!==st.depth_mask&&(Ae.depthMask(ni),st.depth_mask=ni),Zi=It[0],aa=It[1],Mn=It[2],Un=It[3],(Zi!==Pt[0]||aa!==Pt[1]||Mn!==Pt[2]||Un!==Pt[3])&&(Ae.colorMask(Zi,aa,Mn,Un),Pt[0]=Zi,Pt[1]=aa,Pt[2]=Mn,Pt[3]=Un),Ga=vt.cull_enable,Ga!==st.cull_enable&&(Ga?Ae.enable(2884):Ae.disable(2884),st.cull_enable=Ga),ma=vt.cull_face,ma!==st.cull_face&&(Ae.cullFace(ma),st.cull_face=ma),oa=vt.frontFace,oa!==st.frontFace&&(Ae.frontFace(oa),st.frontFace=oa),ka=vt.lineWidth,ka!==st.lineWidth&&(Ae.lineWidth(ka),st.lineWidth=ka),so=vt.polygonOffset_enable,so!==st.polygonOffset_enable&&(so?Ae.enable(32823):Ae.disable(32823),st.polygonOffset_enable=so),Kr=rr[0],Ia=rr[1],(Kr!==Hr[0]||Ia!==Hr[1])&&(Ae.polygonOffset(Kr,Ia),Hr[0]=Kr,Hr[1]=Ia),Yo=vt.sample_alpha,Yo!==st.sample_alpha&&(Yo?Ae.enable(32926):Ae.disable(32926),st.sample_alpha=Yo),fa=vt.sample_enable,fa!==st.sample_enable&&(fa?Ae.enable(32928):Ae.disable(32928),st.sample_enable=fa),kn=Dr[0],Ta=Dr[1],(kn!==Mr[0]||Ta!==Mr[1])&&(Ae.sampleCoverage(kn,Ta),Mr[0]=kn,Mr[1]=Ta),ys=vt.stencil_mask,ys!==st.stencil_mask&&(Ae.stencilMask(ys),st.stencil_mask=ys),uo=Fr[0],ls=Fr[1],$a=Fr[2],(uo!==di[0]||ls!==di[1]||$a!==di[2])&&(Ae.stencilFunc(uo,ls,$a),di[0]=uo,di[1]=ls,di[2]=$a),fo=Di[0],mn=Di[1],ra=Di[2],wa=Di[3],(fo!==Ii[0]||mn!==Ii[1]||ra!==Ii[2]||wa!==Ii[3])&&(Ae.stencilOpSeparate(fo,mn,ra,wa),Ii[0]=fo,Ii[1]=mn,Ii[2]=ra,Ii[3]=wa),ws=Ci[0],Co=Ci[1],Po=Ci[2],ji=Ci[3],(ws!==nn[0]||Co!==nn[1]||Po!==nn[2]||ji!==nn[3])&&(Ae.stencilOpSeparate(ws,Co,Po,ji),nn[0]=ws,nn[1]=Co,nn[2]=Po,nn[3]=ji),gn=vt.scissor_enable,gn!==st.scissor_enable&&(gn?Ae.enable(3089):Ae.disable(3089),st.scissor_enable=gn),Ps=ii[0],Ha=ii[1],Sn=ii[2],ao=ii[3],(Ps!==wi[0]||Ha!==wi[1]||Sn!==wi[2]||ao!==wi[3])&&(Ae.scissor(Ps,Ha,Sn,ao),wi[0]=Ps,wi[1]=Ha,wi[2]=Sn,wi[3]=ao)}en=this.viewport,Yr=en.x|0,oi=en.y|0,Bi="width"in en?en.width|0:at.framebufferWidth-Yr,an="height"in en?en.height|0:at.framebufferHeight-oi,rn=at.viewportWidth,at.viewportWidth=Bi,Fi=at.viewportHeight,at.viewportHeight=an,Ae.viewport(Yr,oi,Bi,an),Bt[0]=Yr,Bt[1]=oi,Bt[2]=Bi,Bt[3]=an,Ae.blendColor(0,0,0,1),Re[0]=0,Re[1]=0,Re[2]=0,Re[3]=1,Rt?Ae.enable(3042):Ae.disable(3042),st.blend_enable=Rt,Ae.blendFuncSeparate(770,771,773,1),fe[0]=770,fe[1]=771,fe[2]=773,fe[3]=1,Zt?Ae.enable(2929):Ae.disable(2929),st.depth_enable=Zt,Et?Ae.enable(2960):Ae.disable(2960),st.stencil_enable=Et,Ri=st.profile,Ri&&(xn=performance.now(),r.count+=Ei),Ae.useProgram(o.program),xi=Ut.angle_instanced_arrays;var Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn;for(hr.setVAO(null),Ba=this.charBuffer,Ko=!1,Qo=1,Wi=0,Sa=0,Qa=0,vn=0,da=null,la=0,vo=!1,As=5126,ps=0,co=0,mo=0,xe(Ba)?(Ko=!0,da=$e.createStream(34962,Ba),As=da.dtype):(da=$e.getBuffer(Ba),da?As=da.dtype:"constant"in Ba?(Qo=2,typeof Ba.constant=="number"?(Wi=Ba.constant,Sa=Qa=vn=0):(Wi=Ba.constant.length>0?Ba.constant[0]:0,Sa=Ba.constant.length>1?Ba.constant[1]:0,Qa=Ba.constant.length>2?Ba.constant[2]:0,vn=Ba.constant.length>3?Ba.constant[3]:0)):(xe(Ba.buffer)?da=$e.createStream(34962,Ba.buffer):da=$e.getBuffer(Ba.buffer),As="type"in Ba?Ur[Ba.type]:da.dtype,vo=!!Ba.normalized,la=Ba.size|0,ps=Ba.offset|0,co=Ba.stride|0,mo=Ba.divisor|0)),No=s.location,jn=Yt[No],Qo===1?(jn.buffer||Ae.enableVertexAttribArray(No),Go=la||1,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(Ae.bindBuffer(34962,da.buffer),Ae.vertexAttribPointer(No,Go,As,vo,co,ps),jn.type=As,jn.size=Go,jn.buffer=da,jn.normalized=vo,jn.offset=ps,jn.stride=co),jn.divisor!==mo&&(xi.vertexAttribDivisorANGLE(No,mo),jn.divisor=mo)):(jn.buffer&&(Ae.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Wi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(Ae.vertexAttrib4f(No,Wi,Sa,Qa,vn),jn.x=Wi,jn.y=Sa,jn.z=Qa,jn.w=vn)),Ys=this.sizeBuffer,Gr.buffer=Ys,qs=!1,Ns=1,Oa=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Ra=5126,Xn=0,un=0,$n=0,xe(Gr)?(qs=!0,_n=$e.createStream(34962,Gr),Ra=_n.dtype):(_n=$e.getBuffer(Gr),_n?Ra=_n.dtype:"constant"in Gr?(Ns=2,typeof Gr.constant=="number"?(Oa=Gr.constant,ha=Vs=Ya=0):(Oa=Gr.constant.length>0?Gr.constant[0]:0,ha=Gr.constant.length>1?Gr.constant[1]:0,Vs=Gr.constant.length>2?Gr.constant[2]:0,Ya=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?_n=$e.createStream(34962,Gr.buffer):_n=$e.getBuffer(Gr.buffer),Ra="type"in Gr?Ur[Gr.type]:_n.dtype,wo=!!Gr.normalized,Vn=Gr.size|0,Xn=Gr.offset|0,un=Gr.stride|0,$n=Gr.divisor|0)),Ka=u.location,qn=Yt[Ka],Ns===1?(qn.buffer||Ae.enableVertexAttribArray(Ka),Eo=Vn||1,(qn.type!==Ra||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==un)&&(Ae.bindBuffer(34962,_n.buffer),Ae.vertexAttribPointer(Ka,Eo,Ra,wo,un,Xn),qn.type=Ra,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=un),qn.divisor!==$n&&(xi.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(Ae.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Oa||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(Ae.vertexAttrib4f(Ka,Oa,ha,Vs,Ya),qn.x=Oa,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=this.position,lo=!1,eo=1,sa=0,es=0,Na=0,tn=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Dn=0,_a=0,xe(Ja)?(lo=!0,Pa=$e.createStream(34962,Ja),Jo=Pa.dtype):(Pa=$e.getBuffer(Ja),Pa?Jo=Pa.dtype:"constant"in Ja?(eo=2,typeof Ja.constant=="number"?(sa=Ja.constant,es=Na=tn=0):(sa=Ja.constant.length>0?Ja.constant[0]:0,es=Ja.constant.length>1?Ja.constant[1]:0,Na=Ja.constant.length>2?Ja.constant[2]:0,tn=Ja.constant.length>3?Ja.constant[3]:0)):(xe(Ja.buffer)?Pa=$e.createStream(34962,Ja.buffer):Pa=$e.getBuffer(Ja.buffer),Jo="type"in Ja?Ur[Ja.type]:Pa.dtype,yo=!!Ja.normalized,to=Ja.size|0,Ao=Ja.offset|0,Dn=Ja.stride|0,_a=Ja.divisor|0)),Ws=l.location,Ca=Yt[Ws],eo===1?(Ca.buffer||Ae.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Dn)&&(Ae.bindBuffer(34962,Pa.buffer),Ae.vertexAttribPointer(Ws,Es,Jo,yo,Dn,Ao),Ca.type=Jo,Ca.size=Es,Ca.buffer=Pa,Ca.normalized=yo,Ca.offset=Ao,Ca.stride=Dn),Ca.divisor!==_a&&(xi.vertexAttribDivisorANGLE(Ws,_a),Ca.divisor=_a)):(Ca.buffer&&(Ae.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==tn)&&(Ae.vertexAttrib4f(Ws,sa,es,Na,tn),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=tn)),Ts=this.sizeBuffer,jr.buffer=Ts,Ho=!1,Wa=1,To=0,ts=0,Wo=0,qa=0,ln=null,Bo=0,ko=!1,oo=5126,za=0,ea=0,rs=0,xe(jr)?(Ho=!0,ln=$e.createStream(34962,jr),oo=ln.dtype):(ln=$e.getBuffer(jr),ln?oo=ln.dtype:"constant"in jr?(Wa=2,typeof jr.constant=="number"?(To=jr.constant,ts=Wo=qa=0):(To=jr.constant.length>0?jr.constant[0]:0,ts=jr.constant.length>1?jr.constant[1]:0,Wo=jr.constant.length>2?jr.constant[2]:0,qa=jr.constant.length>3?jr.constant[3]:0)):(xe(jr.buffer)?ln=$e.createStream(34962,jr.buffer):ln=$e.getBuffer(jr.buffer),oo="type"in jr?Ur[jr.type]:ln.dtype,ko=!!jr.normalized,Bo=jr.size|0,za=jr.offset|0,ea=jr.stride|0,rs=jr.divisor|0)),$s=f.location,us=Yt[$s],Wa===1?(us.buffer||Ae.enableVertexAttribArray($s),Ds=Bo||1,(us.type!==oo||us.size!==Ds||us.buffer!==ln||us.normalized!==ko||us.offset!==za||us.stride!==ea)&&(Ae.bindBuffer(34962,ln.buffer),Ae.vertexAttribPointer($s,Ds,oo,ko,ea,za),us.type=oo,us.size=Ds,us.buffer=ln,us.normalized=ko,us.offset=za,us.stride=ea),us.divisor!==rs&&(xi.vertexAttribDivisorANGLE($s,rs),us.divisor=rs)):(us.buffer&&(Ae.disableVertexAttribArray($s),us.buffer=null),(us.x!==To||us.y!==ts||us.z!==Wo||us.w!==qa)&&(Ae.vertexAttrib4f($s,To,ts,Wo,qa),us.x=To,us.y=ts,us.z=Wo,us.w=qa)),fl=this.scale,as=fl[0],Ma=fl[1],Ae.uniform2f(P.location,as,Ma),Qs=this.translate,ho=Qs[0],gs=Qs[1],Ae.uniform2f(A.location,ho,gs),Vo=this.viewportArray,Do=Vo[0],Lo=Vo[1],xs=Vo[2],ks=Vo[3],Ae.uniform4f(B.location,Do,Lo,xs,ks),Ea=Ue.elements,Ea?Ae.bindBuffer(34963,Ea.buffer.buffer):hr.currentVAO&&(Ea=rt.getElements(hr.currentVAO.elements),Ea&&Ae.bindBuffer(34963,Ea.buffer.buffer)),Jn=Ue.instances,Xr=0;Xr0?Ea?xi.drawElementsInstancedANGLE(0,Or,Ea.type,mr<<(Ea.type-5121>>1),Jn):xi.drawArraysInstancedANGLE(0,mr,Or,Jn):Jn<0&&(Ea?Ae.drawElements(0,Or,Ea.type,mr<<(Ea.type-5121>>1)):Ae.drawArrays(0,mr,Or)),bs.unbind())}Ko&&$e.destroyStream(da),qs&&$e.destroyStream(_n),lo&&$e.destroyStream(Pa),Ho&&$e.destroyStream(ln),st.dirty=!0,hr.setVAO(null),at.viewportWidth=rn,at.viewportHeight=Fi,Ri&&(r.cpuTime+=performance.now()-xn)}}}});var bK=Te((Q_r,GNe)=>{"use strict";var QUt=T8(),eVt=S8(),tVt=M8(),rVt=E8(),iVt=k8(),nVt=C8(),aVt=L8(),oVt=P8(),sVt=z8(),lVt=I8();GNe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":QUt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:eVt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":tVt,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:rVt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:iVt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":nVt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:aVt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:oVt,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":sVt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":lVt}});var jNe=Te((exr,WNe)=>{"use strict";var HNe=xK(),uVt=bK();Object.assign(HNe.reglPrecompiled,uVt);WNe.exports=HNe});var YNe=Te((txr,ZNe)=>{"use strict";var XNe=J8e();XNe.plot=jNe();ZNe.exports=XNe});var wK=Te((rxr,QNe)=>{"use strict";var fVt=Zc(),$Ne=nc(),KNe=jc().axisHoverFormat,cVt=Nu().hovertemplateAttrs,kk=lk(),hVt=dd().idRegex,dVt=Pf().templatedArray,pS=Su().extendFlat,o1=fVt.marker,pVt=o1.line,vVt=pS($Ne("marker.line",{editTypeOverride:"calc"}),{width:pS({},pVt.width,{editType:"calc"}),editType:"calc"}),R8=pS($Ne("marker"),{symbol:o1.symbol,angle:o1.angle,size:pS({},o1.size,{editType:"markerSize"}),sizeref:o1.sizeref,sizemin:o1.sizemin,sizemode:o1.sizemode,opacity:o1.opacity,colorbar:o1.colorbar,line:vVt,editType:"calc"});R8.color.editType=R8.cmin.editType=R8.cmax.editType="style";function JNe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:hVt[e],editType:"plot"}}}QNe.exports={dimensions:dVt("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:pS({},kk.text,{}),hovertext:pS({},kk.hovertext,{}),hovertemplate:cVt(),xhoverformat:KNe("x"),yhoverformat:KNe("y"),marker:R8,xaxes:JNe("x"),yaxes:JNe("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:kk.selected.marker,editType:"calc"},unselected:{marker:kk.unselected.marker,editType:"calc"},opacity:kk.opacity}});var D8=Te((ixr,e7e)=>{"use strict";e7e.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var AK=ei(),mVt=Jd(),t7e=wK(),yVt=lc(),gVt=$v(),_Vt=D8(),xVt=qF().isOpenSymbol;r7e.exports=function(t,r,n,i){function a(d,p){return AK.coerce(t,r,t7e,d,p)}var o=mVt(t,r,{name:"dimensions",handleItemDefaults:bVt}),s=a("diagonal.visible"),u=a("showupperhalf"),l=a("showlowerhalf"),f=_Vt(r,o,"values");if(!f||!s&&!u&&!l){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),gVt(t,r,n,i,a,{noAngleRef:!0,noStandOff:!0});var c=xVt(r.marker.symbol),h=yVt.isBubble(r);a("marker.line.width",c||h?1:0),wVt(t,r,i,a),AK.coerceSelectionMarkerOpacity(r,a)};function bVt(e,t){function r(i,a){return AK.coerce(e,t,t7e.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function wVt(e,t,r,n){var i=t.dimensions,a=i.length,o=t.showupperhalf,s=t.showlowerhalf,u=t.diagonal.visible,l,f,c=new Array(a),h=new Array(a);for(l=0;lf&&o||l{"use strict";var n7e=ei();a7e.exports=function(t,r){var n=t._fullLayout,i=r.uid,a=n._splomScenes;a||(a=n._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},u=a[r.uid];return u||(u=a[i]=n7e.extendFlat({},o,s),u.draw=function(){u.matrix&&u.matrix.draw&&(u.selectBatch.length||u.unselectBatch.length?u.matrix.draw(u.unselectBatch,u.selectBatch):u.matrix.draw()),u.dirty=!1},u.destroy=function(){u.matrix&&u.matrix.destroy&&u.matrix.destroy(),u.matrixOptions=null,u.selectBatch=null,u.unselectBatch=null,u=null}),u.dirty||n7e.extendFlat(u,o),u}});var u7e=Te((oxr,l7e)=>{"use strict";var TK=ei(),F8=Wc(),AVt=O0().calcMarkerSize,TVt=O0().calcAxisExpansion,SVt=F0(),s7e=Y2().markerSelection,MVt=Y2().markerStyle,EVt=o7e(),kVt=nf().BADNUM,CVt=ox().TOO_MANY_POINTS;l7e.exports=function(t,r){var n=r.dimensions,i=r._length,a={},o=a.cdata=[],s=a.data=[],u=r._visibleDims=[],l,f,c,h,d;function p(E,T){for(var L=E.makeCalcdata({v:T.values,vcalendar:r.calendar},"v"),x=0;xCVt,v;for(b?v=a.sizeAvg||Math.max(a.size,3):v=AVt(r,i),f=0;f{(function(){var e,t,r,n,i,a;typeof performance!="undefined"&&performance!==null&&performance.now?Ck.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(Ck.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),a=process.uptime()*1e9,i=n-a):Date.now?(Ck.exports=function(){return Date.now()-r},r=Date.now()):(Ck.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(f7e)});var d7e=Te((sxr,q8)=>{var LVt=c7e(),s1=window,B8=["moz","webkit"],mS="AnimationFrame",yS=s1["request"+mS],Lk=s1["cancel"+mS]||s1["cancelRequest"+mS];for(vS=0;!yS&&vS{p7e.exports=function(t,r){var n=typeof t=="number",i=typeof r=="number";n&&!i?(r=t,t=0):!n&&!i&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,u=t;s{"use strict";var PVt=_Y(),zVt=Xy(),IVt=W2(),m7e=d7e(),RVt=v7e(),MK=tS(),DVt=j2();g7e.exports=px;function px(e,t){if(!(this instanceof px))return new px(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=PVt(e),this.canvas=this.scatter.canvas}px.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=m7e(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,m7e(()=>{this.dirty=!1})),this)};px.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&_{t[a+s]=n})}this.scatter.draw(...t)}return this};px.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function FVt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function N8(e,t,r){let n,i,a,o,s,u,l,f,c=e[t],h=e[r];return c.length>2?(n=c[0],a=c[2],i=c[1],o=c[3]):c.length?(n=i=c[0],a=o=c[1]):(n=c.x,i=c.y,a=c.x+c.width,o=c.y+c.height),h.length>2?(s=h[0],l=h[2],u=h[1],f=h[3]):h.length?(s=u=h[0],l=f=h[1]):(s=h.x,u=h.y,l=h.x+h.width,f=h.y+h.height),[s,i,l,o]}function y7e(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=MK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var b7e=Te((fxr,x7e)=>{"use strict";var BVt=_7e(),EK=ei(),U8=Wc(),OVt=Mm().selectMode;x7e.exports=function(t,r,n){if(n.length)for(var i=0;i-1,A=OVt(f)||!!i.selectedpoints||P,B=!0;if(A){var F=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var U=i.selectedpoints,G={};for(d=0;d{"use strict";w7e.getDimIndex=function(t,r){for(var n=r._id,i=n.charAt(0),a={x:0,y:1}[i],o=t._visibleDims,s=0;s{"use strict";var A7e=kK(),NVt=OF().calcHover,T7e=wu().getFromId,UVt=Su().extendFlat;function VVt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=S7e(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var u=(a?e.xa:e.ya)._subplotsWith,l=i.gd,f=UVt({},e),c=0;c{"use strict";var P7e=ei(),k7e=P7e.pushUnique,C7e=lc(),L7e=kK();z7e.exports=function(t,r){var n=t.cd,i=n[0].trace,a=n[0].t,o=t.scene,s=o.matrixOptions.cdata,u=t.xaxis,l=t.yaxis,f=[];if(!o)return f;var c=!C7e.hasMarkers(i)&&!C7e.hasText(i);if(i.visible!==!0||c)return f;var h=L7e.getDimIndex(i,u),d=L7e.getDimIndex(i,l);if(h===!1||d===!1)return f;var p=a.xpx[h],_=a.ypx[d],b=s[h],v=s[d],k=(t.scene.selectBatch||[]).slice(),E=[];if(r!==!1&&!r.degenerate)for(var T=0;T{"use strict";var R7e=ei(),GVt=F0(),HVt=Y2().markerStyle;D7e.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){GVt(t,n),R7e.extendFlat(i.matrixOptions,HVt(t,n));var a=R7e.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var O7e=Te((vxr,B7e)=>{"use strict";var WVt=$l(),jVt=_V();B7e.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:wK(),supplyDefaults:i7e(),colorbar:ep(),calc:u7e(),plot:b7e(),hoverPoints:E7e().hoverPoints,selectPoints:I7e(),editStyle:F7e(),meta:{}};WVt.register(jVt)});var H7e=Te((mxr,G7e)=>{"use strict";var XVt=KY(),ZVt=$l(),YVt=A8(),KVt=Rd().getModuleCalcData,vx=Th(),q7e=Wc().getFromId,N7e=wu().shouldShowZeroLine,U7e="splom",V7e={};function JVt(e){var t=e._fullLayout,r=ZVt.getModule(U7e),n=KVt(e.calcdata,r)[0],i=YVt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],V7e);i&&(t._hasOnlyLargeSploms&&CK(e),r.plot(e,{},n))}function $Vt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&CK(e);for(var n=0;n{"use strict";var rGt=T8(),iGt=S8(),nGt=M8(),aGt=L8(),oGt=P8(),sGt=E8(),lGt=k8(),uGt=C8(),fGt=z8(),cGt=I8();W7e.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":rGt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:iGt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":nGt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:aGt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:oGt,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:sGt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:lGt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":uGt,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":fGt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":cGt}});var Y7e=Te((gxr,Z7e)=>{"use strict";var X7e=H7e(),hGt=j7e();Object.assign(X7e.reglPrecompiled,hGt);Z7e.exports=X7e});var $7e=Te((_xr,J7e)=>{"use strict";var K7e=O7e();K7e.basePlotModule=Y7e(),J7e.exports=K7e});var zK=Te((xxr,Q7e)=>{"use strict";var dGt=nc(),LK=Dd(),PK=gc(),pGt=zc().attributes,V8=Su().extendFlat,vGt=Pf().templatedArray;Q7e.exports={domain:pGt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:PK({editType:"plot"}),tickfont:PK({autoShadowDflt:!0,editType:"plot"}),rangefont:PK({editType:"plot"}),dimensions:vGt("dimension",{label:{valType:"string",editType:"plot"},tickvals:V8({},LK.tickvals,{editType:"plot"}),ticktext:V8({},LK.ticktext,{editType:"plot"}),tickformat:V8({},LK.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:V8({editType:"calc"},dGt("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var Pk=Te((bxr,eUe)=>{"use strict";eUe.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var Ky=Te((wxr,rUe)=>{"use strict";var mGt=GM();function tUe(e){return[e]}rUe.exports={keyFun:function(e){return e.key},repeat:tUe,descend:mGt,wrap:tUe,unwrap:function(e){return e[0]}}});var DK=Te((Axr,dUe)=>{"use strict";var kh=Pk(),ey=Jl(),yGt=Ky().keyFun,G8=Ky().repeat,gS=ei().sorterAsc,gGt=ei().strTranslate,iUe=kh.bar.snapRatio;function nUe(e,t){return e*(1-iUe)+t*iUe}var aUe=kh.bar.snapClose;function _Gt(e,t){return e*(1-aUe)+t*aUe}function W8(e,t,r,n){if(xGt(r,n))return r;var i=e?-1:1,a=0,o=t.length-1;if(i<0){var s=a;a=o,o=s}for(var u=t[a],l=u,f=a;i*f=t[r][0]&&e<=t[r][1])return!0;return!1}function bGt(e){e.attr("x",-kh.bar.captureWidth/2).attr("width",kh.bar.captureWidth)}function wGt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function AGt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=oUe(e.brush.filter.getConsolidated(),e.height),r=[0],n,i,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function sUe(){ey.select(document.body).style("cursor",null)}function RK(e){e.attr("stroke-dasharray",AGt)}function H8(e,t){var r=ey.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(kh.bar.snapDuration).each("end",t):r;RK(n)}function lUe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,u=r.filter.getConsolidated(),l=oUe(u,s),f=NaN,c=NaN,h=NaN;for(o=0;o<=l.length;o++){var d=l[o];if(d&&d[0]<=t&&t<=d[1]){f=o;break}else if(c=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(i=f,isNaN(i)&&(isNaN(c)||isNaN(h)?i=isNaN(c)?h:c:i=t-l[c][1]=k[0]&&v<=k[1]){a.clickableOrdinalRange=k;break}}}return a}function SGt(e,t){ey.event.sourceEvent.stopPropagation();var r=t.height-ey.mouse(e)[1]-2*kh.verticalPadding,n=t.unitToPaddedPx.invert(r),i=t.brush,a=lUe(t,r),o=a.interval,s=i.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var u=o.map(t.unitToPaddedPx);s.grabPoint=r-u[0]-kh.verticalPadding,s.barLength=u[1]-u[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&i.filterSpecified?i.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(l){return l[0]!==o[0]&&l[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:n,t.parent.inBrushDrag=!0,s.brushStartCallback()}function uUe(e,t){ey.event.sourceEvent.stopPropagation();var r=t.height-ey.mouse(e)[1]-2*kh.verticalPadding,n=t.brush.svgBrush;n.wasDragged=!0,n._dragging=!0,n.grabbingBar?n.newExtent=[r-n.grabPoint,r+n.barLength-n.grabPoint].map(t.unitToPaddedPx.invert):n.newExtent=[n.startExtent,t.unitToPaddedPx.invert(r)].sort(gS),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),H8(e.parentNode)}function MGt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(fUe(e,t),uUe(e,t),t.brush.svgBrush.wasDragged=!1),i._dragging=!1;var a=ey.event;a.sourceEvent.stopPropagation();var o=i.grabbingBar;if(i.grabbingBar=!1,i.grabLocation=void 0,t.parent.inBrushDrag=!1,sUe(),!i.wasDragged){i.wasDragged=void 0,i.clickableOrdinalRange?r.filterSpecified&&t.multiselect?i.extent.push(i.clickableOrdinalRange):(i.extent=[i.clickableOrdinalRange],r.filterSpecified=!0):o?(i.extent=i.stayingIntervals,i.extent.length===0&&IK(r)):IK(r),i.brushCallback(t),H8(e.parentNode),i.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);return}var s=function(){n.set(n.getConsolidated())};if(t.ordinal){var u=t.unitTickvals;u[u.length-1]i.newExtent[0];i.extent=i.stayingIntervals.concat(l?[i.newExtent]:[]),i.extent.length||IK(r),i.brushCallback(t),l?H8(e.parentNode,s):(s(),H8(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function fUe(e,t){var r=t.height-ey.mouse(e)[1]-2*kh.verticalPadding,n=lUe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),ey.select(document.body).style("cursor",i)}function EGt(e){e.on("mousemove",function(t){ey.event.preventDefault(),t.parent.inBrushDrag||fUe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||sUe()}).call(ey.behavior.drag().on("dragstart",function(t){SGt(this,t)}).on("drag",function(t){uUe(this,t)}).on("dragend",function(t){MGt(this,t)}))}function cUe(e,t){return e[0]-t[0]}function kGt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(G8);i.enter().append("rect").classed("background",!0).call(bGt).call(wGt).style("pointer-events",n?"none":"auto").attr("transform",gGt(0,kh.verticalPadding)),i.call(EGt).attr("height",function(s){return s.height-kh.verticalPadding});var a=e.selectAll(".highlight-shadow").data(G8);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-kh.bar.width/2).attr("stroke-width",kh.bar.width+kh.bar.strokeWidth).attr("stroke",t).attr("opacity",kh.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(RK);var o=e.selectAll(".highlight").data(G8);o.enter().append("line").classed("highlight",!0).attr("x",-kh.bar.width/2).attr("stroke-width",kh.bar.width-kh.bar.strokeWidth).attr("stroke",kh.bar.fillColor).attr("opacity",kh.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(RK)}function CGt(e,t,r){var n=e.selectAll("."+kh.cn.axisBrush).data(G8,yGt);n.enter().append("g").classed(kh.cn.axisBrush,!0),kGt(n,t,r)}function LGt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function IK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function PGt(e){return function(r){var n=r.brush,i=LGt(n),a=i.slice();n.filter.set(a),e()}}function hUe(e){for(var t=e.slice(),r=[],n,i=t.shift();i;){for(n=i.slice();(i=t.shift())&&i[0]<=n[1];)n[1]=Math.max(n[1],i[1]);r.push(n)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function zGt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(gS)}).sort(cUe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=hUe(e),r=e.reduce(function(i,a){return[Math.min(i[0],a[0]),Math.max(i[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function IGt(e,t,r,n,i,a){var o=zGt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:PGt(i),brushEndCallback:a}}}function RGt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(gS)}),t.multiselect?e=hUe(e.sort(cUe)):e=[e[0]]):e=[e.sort(gS)],t.tickvals){var r=t.tickvals.slice().sort(gS);if(e=e.map(function(n){var i=[W8(0,r,n[0],[]),W8(1,r,n[1],[])];if(i[1]>i[0])return i}).filter(function(n){return n}),!e.length)return}return e.length>1?e:e[0]}dUe.exports={makeBrush:IGt,ensureAxisBrush:CGt,cleanRanges:RGt}});var mUe=Te((Txr,vUe)=>{"use strict";var mx=ei(),DGt=yp().hasColorscale,FGt=ed(),BGt=zc().defaults,OGt=Jd(),qGt=wu(),pUe=zK(),NGt=DK(),FK=Pk().maxDimensionCount,UGt=D8();function VGt(e,t,r,n,i){var a=i("line.color",r);if(DGt(e,"line")&&mx.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),FGt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function GGt(e,t,r,n){function i(l,f){return mx.coerce(e,t,pUe.dimensions,l,f)}var a=i("values"),o=i("visible");if(a&&a.length||(o=t.visible=!1),o){i("label"),i("tickvals"),i("ticktext"),i("tickformat");var s=i("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},qGt.setConvert(t._ax,n.layout),i("multiselect");var u=i("constraintrange");u&&(t.constraintrange=NGt.cleanRanges(u,t))}}vUe.exports=function(t,r,n,i){function a(f,c){return mx.coerce(t,r,pUe,f,c)}var o=t.dimensions;Array.isArray(o)&&o.length>FK&&(mx.log("parcoords traces support up to "+FK+" dimensions at the moment"),o.splice(FK));var s=OGt(t,r,{name:"dimensions",layout:i,handleItemDefaults:GGt}),u=VGt(t,r,n,i,a);BGt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),UGt(r,s,"values",u);var l=mx.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});mx.coerceFont(a,"labelfont",l),mx.coerceFont(a,"tickfont",l,{autoShadowDflt:!0}),mx.coerceFont(a,"rangefont",l),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var gUe=Te((Sxr,yUe)=>{"use strict";var HGt=ei().isArrayOrTypedArray,BK=_c(),WGt=Ky().wrap;yUe.exports=function(t,r){var n,i;return BK.hasColorscale(r,"line")&&HGt(r.line.color)?(n=r.line.color,i=BK.extractOpts(r.line).colorscale,BK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=jGt(r._length),i=[[0,r.line.color],[1,r.line.color]]),WGt({lineColor:n,cscale:i})};function jGt(e){for(var t=new Array(e),r=0;r>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),OK.default[e])r=OK.default[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(e[0]==="#"){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var u=t[1];i=u.replace(/a$/,"");var l=i==="cmyk"?4:i==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),i==="color"&&(i=r.shift()),r=r.map(function(h,d){if(h[h.length-1]==="%")return h=parseFloat(h)/100,d===3?h:i==="rgb"?h*255:i[0]==="h"||i[0]==="l"&&!d?h*100:i==="lab"?h*125:i==="lch"?d<2?h*150:h*360:i[0]==="o"&&!d?h:i==="oklab"?h*.4:i==="oklch"?d<2?h*.4:h*360:h;if(i[d]==="h"||d===2&&i[i.length-1]==="h"){if(_Ue[h]!==void 0)return _Ue[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),n=r.length>l?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),i=((c=(f=e.match(/([a-z])/ig))==null?void 0:f.join(""))==null?void 0:c.toLowerCase())||"rgb");return{space:i,values:r,alpha:n}}var OK,xUe,_Ue,bUe=tc(()=>{OK=Dtt(AX(),1),xUe=XGt,_Ue={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var zk,qK=tc(()=>{zk={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var j8,wUe=tc(()=>{qK();j8={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,u,l=0;if(r===0)return u=n*255,[u,u,u];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];l<3;)o=t+1/3*-(l-1),o<0?o++:o>1&&o--,u=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l++]=u*255;return s}};zk.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s,u,l;return a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),l=(i+a)/2,a===i?u=0:l<=.5?u=o/(a+i):u=o/(2-a-i),[s,u*100,l*100]}});var TUe={};bee(TUe,{default:()=>AUe});function AUe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=xUe(e);if(!i.space)return[];let a=i.space[0]==="h"?j8.min:zk.min,o=i.space[0]==="h"?j8.max:zk.max;return t=Array(3),t[0]=Math.min(Math.max(i.values[0],a[0]),o[0]),t[1]=Math.min(Math.max(i.values[1],a[1]),o[1]),t[2]=Math.min(Math.max(i.values[2],a[2]),o[2]),i.space[0]==="h"&&(t=j8.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var SUe=tc(()=>{bUe();qK();wUe()});var NK=Te(X8=>{"use strict";var ZGt=ei().isTypedArray;X8.convertTypedArray=function(e){return ZGt(e)?Array.prototype.slice.call(e):e};X8.isOrdinal=function(e){return!!e.tickvals};X8.isVisible=function(e){return e.visible||!("visible"in e)}});var DUe=Te((Rxr,RUe)=>{"use strict";var YGt=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`),KGt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),Ik=Pk().maxDimensionCount,PUe=ei(),MUe=1e-6,Z8=2048,JGt=new Uint8Array(4),EUe=new Uint8Array(4),kUe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function $Gt(e){e.read({x:0,y:0,width:1,height:1,data:JGt})}function zUe(e,t,r,n,i){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,n,i),e.clear({color:[0,0,0,0],depth:1})}function QGt(e,t,r,n,i,a){var o=a.key;function s(u){var l=Math.min(n,i-u*n);u===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],zUe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*l,a.offset=2*u*n,t(a),u*n+l>>8*t)%256/255}function rHt(e,t,r){for(var n=new Array(e*(Ik+4)),i=0,a=0;aj&&(j=M[B].dim1.canvasX,U=B);A===0&&zUe(i,0,0,l.canvasWidth,l.canvasHeight);var H=E(r);for(B=0;B{"use strict";var Ud=Jl(),l1=ei(),VK=l1.isArrayOrTypedArray,UUe=l1.numberFormat,VUe=(SUe(),ab(TUe)).default,GUe=wu(),sHt=l1.strRotate,Jy=l1.strTranslate,lHt=Xf(),Y8=Mu(),FUe=_c(),WK=Ky(),rm=WK.keyFun,$y=WK.repeat,HUe=WK.unwrap,_S=NK(),Nf=Pk(),WUe=DK(),uHt=DUe();function BUe(e,t,r){return l1.aggNums(e,null,t,r)}function jUe(e,t){return jK(BUe(Math.min,e,t),BUe(Math.max,e,t))}function K8(e){var t=e.range;return t?jK(t[0],t[1]):jUe(e.values,e._length)}function jK(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function fHt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function cHt(e,t,r,n,i){var a=K8(r);return n?Ud.scale.ordinal().domain(n.map(fHt(UUe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Ud.scale.linear().domain(a).range([e-t,t])}function hHt(e,t){return Ud.scale.linear().range([t,e-t])}function dHt(e,t){return Ud.scale.linear().domain(K8(e)).range([t,1-t])}function pHt(e){if(e.tickvals){var t=K8(e);return Ud.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function vHt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=VUe(a[1]);return Ud.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return Ud.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function HK(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function mHt(e,t,r){var n=HUe(t),i=n.trace,a=_S.convertTypedArray(n.lineColor),o=i.line,s={color:VUe(i.unselected.line.color),opacity:i.unselected.line.opacity},u=FUe.extractOpts(o),l=u.reversescale?FUe.flipScale(n.cscale):n.cscale,f=i.domain,c=i.dimensions,h=e.width,d=i.labelangle,p=i.labelside,_=i.labelfont,b=i.tickfont,v=i.rangefont,k=l1.extendDeepNoArrays({},o,{color:a.map(Ud.scale.linear().domain(K8({values:a,range:[u.min,u.max],_length:i._length}))),blockLineCount:Nf.blockLineCount,canvasOverdrag:Nf.overdrag*Nf.canvasPixelRatio}),E=Math.floor(h*(f.x[1]-f.x[0])),T=Math.floor(e.height*(f.y[1]-f.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},x=E,C=T;return{key:r,colCount:c.filter(_S.isVisible).length,dimensions:c,tickDistance:Nf.tickDistance,unitToColor:vHt(l),lines:k,deselectedLines:s,labelAngle:d,labelSide:p,labelFont:_,tickFont:b,rangeFont:v,layoutWidth:h,layoutHeight:e.height,domain:f,translateX:f.x[0]*h,translateY:e.height-f.y[1]*e.height,pad:L,canvasWidth:x*Nf.canvasPixelRatio+2*k.canvasOverdrag,canvasHeight:C*Nf.canvasPixelRatio,width:x,height:C,canvasPixelRatio:Nf.canvasPixelRatio}}function yHt(e,t,r){var n=r.width,i=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return n*h/Math.max(1,r.colCount-1)},u=Nf.verticalPadding/i,l=hHt(i,Nf.verticalPadding),f={key:r.key,xScale:s,model:r,inBrushDrag:!1},c={};return f.dimensions=a.filter(_S.isVisible).map(function(h,d){var p=dHt(h,u),_=c[h.label];c[h.label]=(_||0)+1;var b=h.label+(_?"__"+_:""),v=h.constraintrange,k=v&&v.length;k&&!VK(v[0])&&(v=[v]);var E=k?v.map(function(F){return F.map(p)}):[[-1/0,1/0]],T=function(){var F=f;F.focusLayer&&F.focusLayer.render(F.panels,!0);var U=HK(F);!e.contextShown()&&U?(F.contextLayer&&F.contextLayer.render(F.panels,!0),e.contextShown(!0)):e.contextShown()&&!U&&(F.contextLayer&&F.contextLayer.render(F.panels,!0,!0),e.contextShown(!1))},L=h.values;L.length>h._length&&(L=L.slice(0,h._length));var x=h.tickvals,C;function M(F,U){return{val:F,text:C[U]}}function m(F,U){return F.val-U.val}if(VK(x)&&x.length){l1.isTypedArray(x)&&(x=Array.from(x)),C=h.ticktext,!VK(C)||!C.length?C=x.map(UUe(h.tickformat)):C.length>x.length?C=C.slice(0,x.length):x.length>C.length&&(x=x.slice(0,C.length));for(var P=1;P=U||N>=G)return;var W=B.lineLayer.readPixel(H,G-1-N),re=W[3]!==0,ae=re?W[2]+256*(W[1]+256*W[0]):null,be={x:H,y:N,clientX:F.clientX,clientY:F.clientY,dataIndex:B.model.key,curveNumber:ae};ae!==p&&(re?i.hover(be):i.unhover&&i.unhover(be),p=ae)}}),d.style("opacity",function(B){return B.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var b=s.selectAll("."+Nf.cn.parcoords).data(h,rm);b.exit().remove(),b.enter().append("g").classed(Nf.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),b.attr("transform",function(B){return Jy(B.model.translateX,B.model.translateY)});var v=b.selectAll("."+Nf.cn.parcoordsControlView).data($y,rm);v.enter().append("g").classed(Nf.cn.parcoordsControlView,!0),v.attr("transform",function(B){return Jy(B.model.pad.l,B.model.pad.t)});var k=v.selectAll("."+Nf.cn.yAxis).data(function(B){return B.dimensions},rm);k.enter().append("g").classed(Nf.cn.yAxis,!0),v.each(function(B){GK(k,B,l)}),d.each(function(B){if(B.viewModel){!B.lineLayer||i?B.lineLayer=uHt(this,B):B.lineLayer.update(B),(B.key||B.key===0)&&(B.viewModel[B.key]=B.lineLayer);var F=!B.context||i;B.lineLayer.render(B.viewModel.panels,F)}}),k.attr("transform",function(B){return Jy(B.xScale(B.xIndex),0)}),k.call(Ud.behavior.drag().origin(function(B){return B}).on("drag",function(B){var F=B.parent;c.linePickActive(!1),B.x=Math.max(-Nf.overdrag,Math.min(B.model.width+Nf.overdrag,Ud.event.x)),B.canvasX=B.x*B.model.canvasPixelRatio,k.sort(function(U,G){return U.x-G.x}).each(function(U,G){U.xIndex=G,U.x=B===U?U.x:U.xScale(U.xIndex),U.canvasX=U.x*U.model.canvasPixelRatio}),GK(k,F,l),k.filter(function(U){return Math.abs(B.xIndex-U.xIndex)!==0}).attr("transform",function(U){return Jy(U.xScale(U.xIndex),0)}),Ud.select(this).attr("transform",Jy(B.x,0)),k.each(function(U,G,j){j===B.parent.key&&(F.dimensions[G]=U)}),F.contextLayer&&F.contextLayer.render(F.panels,!1,!HK(F)),F.focusLayer.render&&F.focusLayer.render(F.panels)}).on("dragend",function(B){var F=B.parent;B.x=B.xScale(B.xIndex),B.canvasX=B.x*B.model.canvasPixelRatio,GK(k,F,l),Ud.select(this).attr("transform",function(U){return Jy(U.x,0)}),F.contextLayer&&F.contextLayer.render(F.panels,!1,!HK(F)),F.focusLayer&&F.focusLayer.render(F.panels),F.pickLayer&&F.pickLayer.render(F.panels,!0),c.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(F.key,F.dimensions.map(function(U){return U.crossfilterDimensionIndex}))})),k.exit().remove();var E=k.selectAll("."+Nf.cn.axisOverlays).data($y,rm);E.enter().append("g").classed(Nf.cn.axisOverlays,!0),E.selectAll("."+Nf.cn.axis).remove();var T=E.selectAll("."+Nf.cn.axis).data($y,rm);T.enter().append("g").classed(Nf.cn.axis,!0),T.each(function(B){var F=B.model.height/B.model.tickDistance,U=B.domainScale,G=U.domain();Ud.select(this).call(Ud.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(F,B.tickFormat).tickValues(B.ordinal?G:null).tickFormat(function(j){return _S.isOrdinal(B)?j:XUe(B.model.dimensions[B.visibleIndex],j)}).scale(U)),Y8.font(T.selectAll("text"),B.model.tickFont)}),T.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),T.selectAll("text").style("cursor","default");var L=E.selectAll("."+Nf.cn.axisHeading).data($y,rm);L.enter().append("g").classed(Nf.cn.axisHeading,!0);var x=L.selectAll("."+Nf.cn.axisTitle).data($y,rm);x.enter().append("text").classed(Nf.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),x.text(function(B){return B.label}).each(function(B){var F=Ud.select(this);Y8.font(F,B.model.labelFont),lHt.convertToTspans(F,t)}).attr("transform",function(B){var F=qUe(B.model.labelAngle,B.model.labelSide),U=Nf.axisTitleOffset;return(F.dir>0?"":Jy(0,2*U+B.model.height))+sHt(F.degrees)+Jy(-U*F.dx,-U*F.dy)}).attr("text-anchor",function(B){var F=qUe(B.model.labelAngle,B.model.labelSide),U=Math.abs(F.dx),G=Math.abs(F.dy);return 2*U>G?F.dir*F.dx<0?"start":"end":"middle"});var C=E.selectAll("."+Nf.cn.axisExtent).data($y,rm);C.enter().append("g").classed(Nf.cn.axisExtent,!0);var M=C.selectAll("."+Nf.cn.axisExtentTop).data($y,rm);M.enter().append("g").classed(Nf.cn.axisExtentTop,!0),M.attr("transform",Jy(0,-Nf.axisExtentOffset));var m=M.selectAll("."+Nf.cn.axisExtentTopText).data($y,rm);m.enter().append("text").classed(Nf.cn.axisExtentTopText,!0).call(OUe),m.text(function(B){return NUe(B,!0)}).each(function(B){Y8.font(Ud.select(this),B.model.rangeFont)});var P=C.selectAll("."+Nf.cn.axisExtentBottom).data($y,rm);P.enter().append("g").classed(Nf.cn.axisExtentBottom,!0),P.attr("transform",function(B){return Jy(0,B.model.height+Nf.axisExtentOffset)});var A=P.selectAll("."+Nf.cn.axisExtentBottomText).data($y,rm);A.enter().append("text").classed(Nf.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(OUe),A.text(function(B){return NUe(B,!1)}).each(function(B){Y8.font(Ud.select(this),B.model.rangeFont)}),WUe.ensureAxisBrush(E,f,t)}});var ZK=Te((XK,QUe)=>{"use strict";var xHt=YUe(),bHt=A8(),KUe=NK().isVisible,$Ue={};function JUe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function wHt(e,t){return function(n,i){return JUe(e,t,n)-JUe(e,t,i)}}var XK=QUe.exports=function(t,r){var n=t._fullLayout,i=bHt(t,[],$Ue);if(i){var a={},o={},s={},u={},l=n._size;r.forEach(function(p,_){var b=p[0].trace;s[_]=b.index;var v=u[_]=b.index;a[_]=t.data[v].dimensions,o[_]=t.data[v].dimensions.slice()});var f=function(p,_,b){var v=o[p][_],k=b.map(function(M){return M.slice()}),E="dimensions["+_+"].constraintrange",T=n._tracePreGUI[t._fullData[s[p]]._fullInput.uid];if(T[E]===void 0){var L=v.constraintrange;T[E]=L||null}var x=t._fullData[s[p]].dimensions[_];k.length?(k.length===1&&(k=k[0]),v.constraintrange=k,x.constraintrange=k.slice(),k=[k]):(delete v.constraintrange,delete x.constraintrange,k=null);var C={};C[E]=k,t.emit("plotly_restyle",[C,[u[p]]])},c=function(p){t.emit("plotly_hover",p)},h=function(p){t.emit("plotly_unhover",p)},d=function(p,_){var b=wHt(_,o[p].filter(KUe));a[p].sort(b),o[p].filter(function(v){return!KUe(v)}).sort(function(v){return o[p].indexOf(v)}).forEach(function(v){a[p].splice(a[p].indexOf(v),1),a[p].splice(o[p].indexOf(v),0,v)}),t.emit("plotly_restyle",[{dimensions:[a[p]]},[u[p]]])};xHt(t,r,{width:l.w,height:l.h,margin:{t:l.t,r:l.r,b:l.b,l:l.l}},{filterChanged:f,hover:c,unhover:h,axesMoved:d})}};XK.reglPrecompiled=$Ue});var tVe=Te(Rk=>{"use strict";var eVe=Jl(),AHt=Rd().getModuleCalcData,THt=ZK(),SHt=jv();Rk.name="parcoords";Rk.plot=function(e){var t=AHt(e.calcdata,"parcoords")[0];t.length&&THt(e,t)};Rk.clean=function(e,t,r,n){var i=n._has&&n._has("parcoords"),a=t._has&&t._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())};Rk.toSVG=function(e){var t=e._fullLayout._glimages,r=eVe.select(e).selectAll(".svg-container"),n=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:SHt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){eVe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var iVe=Te((Bxr,rVe)=>{"use strict";rVe.exports={attributes:zK(),supplyDefaults:mUe(),calc:gUe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:tVe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var aVe=Te((Oxr,nVe)=>{nVe.exports=function(t,r){"use strict";var n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt,Nt,it,Ye,kt,Tt,St,Rt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr;return n=t.gl,i=t.context,a=t.strings,o=t.next,s=t.current,u=t.draw,l=t.elements,f=t.buffer,c=t.shader,h=t.attributes,d=t.vao,p=t.uniforms,_=t.framebuffer,b=t.extensions,v=t.timer,k=t.isBufferArgs,E=o.blend_color,T=s.blend_color,L=o.blend_equation,x=s.blend_equation,C=o.blend_func,M=s.blend_func,m=o.depth_range,P=s.depth_range,A=o.colorMask,B=s.colorMask,F=o.polygonOffset_offset,U=s.polygonOffset_offset,G=o.sample_coverage,j=s.sample_coverage,H=o.stencil_func,N=s.stencil_func,W=o.stencil_opFront,re=s.stencil_opFront,ae=o.stencil_opBack,be=s.stencil_opBack,Pe=o.scissor_box,Ce=s.scissor_box,de=o.viewport,te=s.viewport,ke={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ee={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Me={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ne={add:32774,subtract:32778,"reverse subtract":32779},Fe={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ye={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ve={cw:2304,ccw:2305},ce=o.blend_color,Ke=s.blend_color,nt=o.blend_equation,gt=s.blend_equation,Nt=o.blend_func,it=s.blend_func,Ye=o.depth_range,kt=s.depth_range,Tt=o.colorMask,St=s.colorMask,Rt=o.polygonOffset_offset,Zt=s.polygonOffset_offset,Et=o.sample_coverage,Ae=s.sample_coverage,at=o.stencil_func,wt=s.stencil_func,vt=o.stencil_opFront,st=s.stencil_opFront,Ue=o.stencil_opBack,rt=s.stencil_opBack,$e=o.scissor_box,zt=s.scissor_box,Yt=o.viewport,hr=s.viewport,{poll:function(){var yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di;s.dirty=!1,br=o.dither,Ut=o.blend_enable,Ie=o.depth_enable,xe=o.cull_enable,Oe=o.polygonOffset_enable,Re=o.sample_alpha,De=o.sample_enable,ct=o.stencil_enable,ge=o.scissor_enable,fe=o.depth_func,pe=s.depth_func,dt=o.depth_mask,It=s.depth_mask,Pt=o.cull_face,rr=s.cull_face,Hr=o.frontFace,Dr=s.frontFace,Mr=o.lineWidth,Fr=s.lineWidth,di=o.stencil_mask,Di=s.stencil_mask,yr=_.next,yr!==_.cur&&(yr?n.bindFramebuffer(36160,yr.framebuffer):n.bindFramebuffer(36160,null),_.cur=yr),br!==s.dither&&(br?n.enable(3024):n.disable(3024),s.dither=br),Ut!==s.blend_enable&&(Ut?n.enable(3042):n.disable(3042),s.blend_enable=Ut),Ie!==s.depth_enable&&(Ie?n.enable(2929):n.disable(2929),s.depth_enable=Ie),xe!==s.cull_enable&&(xe?n.enable(2884):n.disable(2884),s.cull_enable=xe),Oe!==s.polygonOffset_enable&&(Oe?n.enable(32823):n.disable(32823),s.polygonOffset_enable=Oe),Re!==s.sample_alpha&&(Re?n.enable(32926):n.disable(32926),s.sample_alpha=Re),De!==s.sample_enable&&(De?n.enable(32928):n.disable(32928),s.sample_enable=De),ct!==s.stencil_enable&&(ct?n.enable(2960):n.disable(2960),s.stencil_enable=ct),ge!==s.scissor_enable&&(ge?n.enable(3089):n.disable(3089),s.scissor_enable=ge),(ce[0]!==Ke[0]||ce[1]!==Ke[1]||ce[2]!==Ke[2]||ce[3]!==Ke[3])&&(n.blendColor(ce[0],ce[1],ce[2],ce[3]),Ke[0]=ce[0],Ke[1]=ce[1],Ke[2]=ce[2],Ke[3]=ce[3]),(nt[0]!==gt[0]||nt[1]!==gt[1])&&(n.blendEquationSeparate(nt[0],nt[1]),gt[0]=nt[0],gt[1]=nt[1]),(Nt[0]!==it[0]||Nt[1]!==it[1]||Nt[2]!==it[2]||Nt[3]!==it[3])&&(n.blendFuncSeparate(Nt[0],Nt[1],Nt[2],Nt[3]),it[0]=Nt[0],it[1]=Nt[1],it[2]=Nt[2],it[3]=Nt[3]),fe!==pe&&(n.depthFunc(fe),s.depth_func=fe),(Ye[0]!==kt[0]||Ye[1]!==kt[1])&&(n.depthRange(Ye[0],Ye[1]),kt[0]=Ye[0],kt[1]=Ye[1]),dt!==It&&(n.depthMask(dt),s.depth_mask=dt),(Tt[0]!==St[0]||Tt[1]!==St[1]||Tt[2]!==St[2]||Tt[3]!==St[3])&&(n.colorMask(Tt[0],Tt[1],Tt[2],Tt[3]),St[0]=Tt[0],St[1]=Tt[1],St[2]=Tt[2],St[3]=Tt[3]),Pt!==rr&&(n.cullFace(Pt),s.cull_face=Pt),Hr!==Dr&&(n.frontFace(Hr),s.frontFace=Hr),Mr!==Fr&&(n.lineWidth(Mr),s.lineWidth=Mr),(Rt[0]!==Zt[0]||Rt[1]!==Zt[1])&&(n.polygonOffset(Rt[0],Rt[1]),Zt[0]=Rt[0],Zt[1]=Rt[1]),(Et[0]!==Ae[0]||Et[1]!==Ae[1])&&(n.sampleCoverage(Et[0],Et[1]),Ae[0]=Et[0],Ae[1]=Et[1]),di!==Di&&(n.stencilMask(di),s.stencil_mask=di),(at[0]!==wt[0]||at[1]!==wt[1]||at[2]!==wt[2])&&(n.stencilFunc(at[0],at[1],at[2]),wt[0]=at[0],wt[1]=at[1],wt[2]=at[2]),(vt[0]!==st[0]||vt[1]!==st[1]||vt[2]!==st[2]||vt[3]!==st[3])&&(n.stencilOpSeparate(vt[0],vt[1],vt[2],vt[3]),st[0]=vt[0],st[1]=vt[1],st[2]=vt[2],st[3]=vt[3]),(Ue[0]!==rt[0]||Ue[1]!==rt[1]||Ue[2]!==rt[2]||Ue[3]!==rt[3])&&(n.stencilOpSeparate(Ue[0],Ue[1],Ue[2],Ue[3]),rt[0]=Ue[0],rt[1]=Ue[1],rt[2]=Ue[2],rt[3]=Ue[3]),($e[0]!==zt[0]||$e[1]!==zt[1]||$e[2]!==zt[2]||$e[3]!==zt[3])&&(n.scissor($e[0],$e[1],$e[2],$e[3]),zt[0]=$e[0],zt[1]=$e[1],zt[2]=$e[2],zt[3]=$e[3]),(Yt[0]!==hr[0]||Yt[1]!==hr[1]||Yt[2]!==hr[2]||Yt[3]!==hr[3])&&(n.viewport(Yt[0],Yt[1],Yt[2],Yt[3]),hr[0]=Yt[0],hr[1]=Yt[1],hr[2]=Yt[2],hr[3]=Yt[3])},refresh:function(){var yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci;s.dirty=!1,Ie=o.dither,xe=o.blend_enable,Oe=o.depth_enable,Re=o.cull_enable,De=o.polygonOffset_enable,ct=o.sample_alpha,ge=o.sample_enable,fe=o.stencil_enable,pe=o.scissor_enable,dt=o.depth_func,It=s.depth_func,Pt=o.depth_mask,rr=s.depth_mask,Hr=o.cull_face,Dr=s.cull_face,Mr=o.frontFace,Fr=s.frontFace,di=o.lineWidth,Di=s.lineWidth,Ii=o.stencil_mask,Ci=s.stencil_mask,yr=_.next,yr?n.bindFramebuffer(36160,yr.framebuffer):n.bindFramebuffer(36160,null),_.cur=yr,br=h,Ut=0;for(var nn=0;nn{oVe.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt,Nt,it,Ye,kt;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,_=t.elements,b=t.buffer,v=t.shader,k=t.attributes,E=t.vao,T=t.uniforms,L=t.framebuffer,x=t.extensions,C=t.timer,M=t.isBufferArgs,m=h.blend_color,P=d.blend_color,A=h.blend_equation,B=d.blend_equation,F=h.blend_func,U=d.blend_func,G=h.depth_range,j=d.depth_range,H=h.colorMask,N=d.colorMask,W=h.polygonOffset_offset,re=d.polygonOffset_offset,ae=h.sample_coverage,be=d.sample_coverage,Pe=h.stencil_func,Ce=d.stencil_func,de=h.stencil_opFront,te=d.stencil_opFront,ke=h.stencil_opBack,Ee=d.stencil_opBack,Me=h.scissor_box,Ne=d.scissor_box,Fe=h.viewport,ye=d.viewport,Ve={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ce={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ke={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},nt={add:32774,subtract:32778,"reverse subtract":32779},gt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Nt={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},it={cw:2304,ccw:2305},Ye={},kt={},{draw:function(Tt){var St,Rt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut;if(St=Tt.framebuffer,Rt=L.getFramebuffer(St),Zt=L.next,L.next=Rt,Et=f.framebufferWidth,f.framebufferWidth=Rt?Rt.width:f.drawingBufferWidth,Ae=f.framebufferHeight,f.framebufferHeight=Rt?Rt.height:f.drawingBufferHeight,Rt!==L.cur&&(Rt?l.bindFramebuffer(36160,Rt.framebuffer):l.bindFramebuffer(36160,null),L.cur=Rt),d.dirty){var Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi;Ie=h.dither,Ie!==d.dither&&(Ie?l.enable(3024):l.disable(3024),d.dither=Ie),xe=h.blend_enable,xe!==d.blend_enable&&(xe?l.enable(3042):l.disable(3042),d.blend_enable=xe),Oe=m[0],Re=m[1],De=m[2],ct=m[3],(Oe!==P[0]||Re!==P[1]||De!==P[2]||ct!==P[3])&&(l.blendColor(Oe,Re,De,ct),P[0]=Oe,P[1]=Re,P[2]=De,P[3]=ct),ge=A[0],fe=A[1],(ge!==B[0]||fe!==B[1])&&(l.blendEquationSeparate(ge,fe),B[0]=ge,B[1]=fe),pe=F[0],dt=F[1],It=F[2],Pt=F[3],(pe!==U[0]||dt!==U[1]||It!==U[2]||Pt!==U[3])&&(l.blendFuncSeparate(pe,dt,It,Pt),U[0]=pe,U[1]=dt,U[2]=It,U[3]=Pt),rr=h.depth_enable,rr!==d.depth_enable&&(rr?l.enable(2929):l.disable(2929),d.depth_enable=rr),Hr=h.depth_func,Hr!==d.depth_func&&(l.depthFunc(Hr),d.depth_func=Hr),Dr=G[0],Mr=G[1],(Dr!==j[0]||Mr!==j[1])&&(l.depthRange(Dr,Mr),j[0]=Dr,j[1]=Mr),Fr=h.depth_mask,Fr!==d.depth_mask&&(l.depthMask(Fr),d.depth_mask=Fr),di=H[0],Di=H[1],Ii=H[2],Ci=H[3],(di!==N[0]||Di!==N[1]||Ii!==N[2]||Ci!==N[3])&&(l.colorMask(di,Di,Ii,Ci),N[0]=di,N[1]=Di,N[2]=Ii,N[3]=Ci),nn=h.cull_enable,nn!==d.cull_enable&&(nn?l.enable(2884):l.disable(2884),d.cull_enable=nn),ii=h.cull_face,ii!==d.cull_face&&(l.cullFace(ii),d.cull_face=ii),wi=h.frontFace,wi!==d.frontFace&&(l.frontFace(wi),d.frontFace=wi),Gi=h.lineWidth,Gi!==d.lineWidth&&(l.lineWidth(Gi),d.lineWidth=Gi),Bt=h.polygonOffset_enable,Bt!==d.polygonOffset_enable&&(Bt?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Bt),yt=W[0],Vt=W[1],(yt!==re[0]||Vt!==re[1])&&(l.polygonOffset(yt,Vt),re[0]=yt,re[1]=Vt),Wt=h.sample_alpha,Wt!==d.sample_alpha&&(Wt?l.enable(32926):l.disable(32926),d.sample_alpha=Wt),_r=h.sample_enable,_r!==d.sample_enable&&(_r?l.enable(32928):l.disable(32928),d.sample_enable=_r),Lr=ae[0],Ur=ae[1],(Lr!==be[0]||Ur!==be[1])&&(l.sampleCoverage(Lr,Ur),be[0]=Lr,be[1]=Ur),Ir=h.stencil_enable,Ir!==d.stencil_enable&&(Ir?l.enable(2960):l.disable(2960),d.stencil_enable=Ir),Gr=h.stencil_mask,Gr!==d.stencil_mask&&(l.stencilMask(Gr),d.stencil_mask=Gr),jr=Pe[0],yi=Pe[1],Ei=Pe[2],(jr!==Ce[0]||yi!==Ce[1]||Ei!==Ce[2])&&(l.stencilFunc(jr,yi,Ei),Ce[0]=jr,Ce[1]=yi,Ce[2]=Ei),Vi=de[0],ti=de[1],en=de[2],Yr=de[3],(Vi!==te[0]||ti!==te[1]||en!==te[2]||Yr!==te[3])&&(l.stencilOpSeparate(Vi,ti,en,Yr),te[0]=Vi,te[1]=ti,te[2]=en,te[3]=Yr),oi=ke[0],Bi=ke[1],an=ke[2],rn=ke[3],(oi!==Ee[0]||Bi!==Ee[1]||an!==Ee[2]||rn!==Ee[3])&&(l.stencilOpSeparate(oi,Bi,an,rn),Ee[0]=oi,Ee[1]=Bi,Ee[2]=an,Ee[3]=rn),Fi=h.scissor_enable,Fi!==d.scissor_enable&&(Fi?l.enable(3089):l.disable(3089),d.scissor_enable=Fi)}at=f.framebufferWidth,wt=f.framebufferHeight,vt=f.viewportWidth,f.viewportWidth=at,st=f.viewportHeight,f.viewportHeight=wt,l.viewport(0,0,at,wt),ye[0]=0,ye[1]=0,ye[2]=at,ye[3]=wt,Ue=f.framebufferWidth,rt=f.framebufferHeight,l.scissor(0,0,Ue,rt),Ne[0]=0,Ne[1]=0,Ne[2]=Ue,Ne[3]=rt,$e=d.profile,$e&&(zt=performance.now(),r.count++),Yt=v.frag,hr=v.vert,yr=v.program(hr,Yt),l.useProgram(yr.program),E.setVAO(null),br=yr.id,Ut=Ye[br],Ut?Ut.call(this,Tt):(Ut=Ye[br]=n(yr),Ut.call(this,Tt)),d.dirty=!0,E.setVAO(null),L.next=Zt,f.framebufferWidth=Et,f.framebufferHeight=Ae,f.viewportWidth=vt,f.viewportHeight=st,$e&&(r.cpuTime+=performance.now()-zt)},scope:function(Tt,St,Rt){var Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De;Zt=Tt.framebuffer,Et=L.getFramebuffer(Zt),Ae=L.next,L.next=Et,at=f.framebufferWidth,f.framebufferWidth=Et?Et.width:f.drawingBufferWidth,wt=f.framebufferHeight,f.framebufferHeight=Et?Et.height:f.drawingBufferHeight,vt=f.framebufferWidth,st=f.framebufferHeight,Ue=f.viewportWidth,f.viewportWidth=vt,rt=f.viewportHeight,f.viewportHeight=st,$e=Fe[0],Fe[0]=i,zt=Fe[1],Fe[1]=a,Yt=Fe[2],Fe[2]=vt,hr=Fe[3],Fe[3]=st,yr=f.framebufferWidth,br=f.framebufferHeight,Ut=Me[0],Me[0]=o,Ie=Me[1],Me[1]=s,xe=Me[2],Me[2]=yr,Oe=Me[3],Me[3]=br,Re=d.profile,Re&&(De=performance.now(),r.count++),d.dirty=!0,St(f,Tt,Rt),L.next=Ae,f.framebufferWidth=at,f.framebufferHeight=wt,f.viewportWidth=Ue,f.viewportHeight=rt,Fe[0]=$e,Fe[1]=zt,Fe[2]=Yt,Fe[3]=hr,Me[0]=Ut,Me[1]=Ie,Me[2]=xe,Me[3]=Oe,Re&&(r.cpuTime+=performance.now()-De),d.dirty=!0},batch:function(Tt,St){var Rt,Zt,Et,Ae,at,wt,vt;if(d.dirty){var st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi;st=h.dither,st!==d.dither&&(st?l.enable(3024):l.disable(3024),d.dither=st),Ue=h.blend_enable,Ue!==d.blend_enable&&(Ue?l.enable(3042):l.disable(3042),d.blend_enable=Ue),rt=m[0],$e=m[1],zt=m[2],Yt=m[3],(rt!==P[0]||$e!==P[1]||zt!==P[2]||Yt!==P[3])&&(l.blendColor(rt,$e,zt,Yt),P[0]=rt,P[1]=$e,P[2]=zt,P[3]=Yt),hr=A[0],yr=A[1],(hr!==B[0]||yr!==B[1])&&(l.blendEquationSeparate(hr,yr),B[0]=hr,B[1]=yr),br=F[0],Ut=F[1],Ie=F[2],xe=F[3],(br!==U[0]||Ut!==U[1]||Ie!==U[2]||xe!==U[3])&&(l.blendFuncSeparate(br,Ut,Ie,xe),U[0]=br,U[1]=Ut,U[2]=Ie,U[3]=xe),Oe=h.depth_enable,Oe!==d.depth_enable&&(Oe?l.enable(2929):l.disable(2929),d.depth_enable=Oe),Re=h.depth_func,Re!==d.depth_func&&(l.depthFunc(Re),d.depth_func=Re),De=G[0],ct=G[1],(De!==j[0]||ct!==j[1])&&(l.depthRange(De,ct),j[0]=De,j[1]=ct),ge=h.depth_mask,ge!==d.depth_mask&&(l.depthMask(ge),d.depth_mask=ge),fe=H[0],pe=H[1],dt=H[2],It=H[3],(fe!==N[0]||pe!==N[1]||dt!==N[2]||It!==N[3])&&(l.colorMask(fe,pe,dt,It),N[0]=fe,N[1]=pe,N[2]=dt,N[3]=It),Pt=h.cull_enable,Pt!==d.cull_enable&&(Pt?l.enable(2884):l.disable(2884),d.cull_enable=Pt),rr=h.cull_face,rr!==d.cull_face&&(l.cullFace(rr),d.cull_face=rr),Hr=h.frontFace,Hr!==d.frontFace&&(l.frontFace(Hr),d.frontFace=Hr),Dr=h.lineWidth,Dr!==d.lineWidth&&(l.lineWidth(Dr),d.lineWidth=Dr),Mr=h.polygonOffset_enable,Mr!==d.polygonOffset_enable&&(Mr?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Mr),Fr=W[0],di=W[1],(Fr!==re[0]||di!==re[1])&&(l.polygonOffset(Fr,di),re[0]=Fr,re[1]=di),Di=h.sample_alpha,Di!==d.sample_alpha&&(Di?l.enable(32926):l.disable(32926),d.sample_alpha=Di),Ii=h.sample_enable,Ii!==d.sample_enable&&(Ii?l.enable(32928):l.disable(32928),d.sample_enable=Ii),Ci=ae[0],nn=ae[1],(Ci!==be[0]||nn!==be[1])&&(l.sampleCoverage(Ci,nn),be[0]=Ci,be[1]=nn),ii=h.stencil_enable,ii!==d.stencil_enable&&(ii?l.enable(2960):l.disable(2960),d.stencil_enable=ii),wi=h.stencil_mask,wi!==d.stencil_mask&&(l.stencilMask(wi),d.stencil_mask=wi),Gi=Pe[0],Bt=Pe[1],yt=Pe[2],(Gi!==Ce[0]||Bt!==Ce[1]||yt!==Ce[2])&&(l.stencilFunc(Gi,Bt,yt),Ce[0]=Gi,Ce[1]=Bt,Ce[2]=yt),Vt=de[0],Wt=de[1],_r=de[2],Lr=de[3],(Vt!==te[0]||Wt!==te[1]||_r!==te[2]||Lr!==te[3])&&(l.stencilOpSeparate(Vt,Wt,_r,Lr),te[0]=Vt,te[1]=Wt,te[2]=_r,te[3]=Lr),Ur=ke[0],Ir=ke[1],Gr=ke[2],jr=ke[3],(Ur!==Ee[0]||Ir!==Ee[1]||Gr!==Ee[2]||jr!==Ee[3])&&(l.stencilOpSeparate(Ur,Ir,Gr,jr),Ee[0]=Ur,Ee[1]=Ir,Ee[2]=Gr,Ee[3]=jr),yi=h.scissor_enable,yi!==d.scissor_enable&&(yi?l.enable(3089):l.disable(3089),d.scissor_enable=yi)}Rt=d.profile,Rt&&(Zt=performance.now(),r.count+=St),Et=v.frag,Ae=v.vert,at=v.program(Ae,Et),l.useProgram(at.program),E.setVAO(null),wt=at.id,vt=kt[wt],vt?vt.call(this,Tt,St):(vt=kt[wt]=u(at),vt.call(this,Tt,St)),d.dirty=!0,E.setVAO(null),Rt&&(r.cpuTime+=performance.now()-Zt)}}}});var uVe=Te((Nxr,lVe)=>{lVe.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt;return a=t.gl,o=t.context,s=t.strings,u=t.next,l=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,_=t.vao,b=t.uniforms,v=t.framebuffer,k=t.extensions,E=t.timer,T=t.isBufferArgs,L=u.blend_color,x=l.blend_color,C=u.blend_equation,M=l.blend_equation,m=u.blend_func,P=l.blend_func,A=u.depth_range,B=l.depth_range,F=u.colorMask,U=l.colorMask,G=u.polygonOffset_offset,j=l.polygonOffset_offset,H=u.sample_coverage,N=l.sample_coverage,W=u.stencil_func,re=l.stencil_func,ae=u.stencil_opFront,be=l.stencil_opFront,Pe=u.stencil_opBack,Ce=l.stencil_opBack,de=u.scissor_box,te=l.scissor_box,ke=u.viewport,Ee=l.viewport,Me={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ne={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Fe={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},ye={add:32774,subtract:32778,"reverse subtract":32779},Ve={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ce={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ke={cw:2304,ccw:2305},nt={},gt={},{draw:function(Nt){var it,Ye,kt,Tt,St,Rt,Zt,Et;if(it=v.next,it!==v.cur&&(it?a.bindFramebuffer(36160,it.framebuffer):a.bindFramebuffer(36160,null),v.cur=it),l.dirty){var Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en;Ae=u.dither,Ae!==l.dither&&(Ae?a.enable(3024):a.disable(3024),l.dither=Ae),at=u.blend_enable,at!==l.blend_enable&&(at?a.enable(3042):a.disable(3042),l.blend_enable=at),wt=L[0],vt=L[1],st=L[2],Ue=L[3],(wt!==x[0]||vt!==x[1]||st!==x[2]||Ue!==x[3])&&(a.blendColor(wt,vt,st,Ue),x[0]=wt,x[1]=vt,x[2]=st,x[3]=Ue),rt=C[0],$e=C[1],(rt!==M[0]||$e!==M[1])&&(a.blendEquationSeparate(rt,$e),M[0]=rt,M[1]=$e),zt=m[0],Yt=m[1],hr=m[2],yr=m[3],(zt!==P[0]||Yt!==P[1]||hr!==P[2]||yr!==P[3])&&(a.blendFuncSeparate(zt,Yt,hr,yr),P[0]=zt,P[1]=Yt,P[2]=hr,P[3]=yr),br=u.depth_enable,br!==l.depth_enable&&(br?a.enable(2929):a.disable(2929),l.depth_enable=br),Ut=u.depth_func,Ut!==l.depth_func&&(a.depthFunc(Ut),l.depth_func=Ut),Ie=A[0],xe=A[1],(Ie!==B[0]||xe!==B[1])&&(a.depthRange(Ie,xe),B[0]=Ie,B[1]=xe),Oe=u.depth_mask,Oe!==l.depth_mask&&(a.depthMask(Oe),l.depth_mask=Oe),Re=F[0],De=F[1],ct=F[2],ge=F[3],(Re!==U[0]||De!==U[1]||ct!==U[2]||ge!==U[3])&&(a.colorMask(Re,De,ct,ge),U[0]=Re,U[1]=De,U[2]=ct,U[3]=ge),fe=u.cull_enable,fe!==l.cull_enable&&(fe?a.enable(2884):a.disable(2884),l.cull_enable=fe),pe=u.cull_face,pe!==l.cull_face&&(a.cullFace(pe),l.cull_face=pe),dt=u.frontFace,dt!==l.frontFace&&(a.frontFace(dt),l.frontFace=dt),It=u.lineWidth,It!==l.lineWidth&&(a.lineWidth(It),l.lineWidth=It),Pt=u.polygonOffset_enable,Pt!==l.polygonOffset_enable&&(Pt?a.enable(32823):a.disable(32823),l.polygonOffset_enable=Pt),rr=G[0],Hr=G[1],(rr!==j[0]||Hr!==j[1])&&(a.polygonOffset(rr,Hr),j[0]=rr,j[1]=Hr),Dr=u.sample_alpha,Dr!==l.sample_alpha&&(Dr?a.enable(32926):a.disable(32926),l.sample_alpha=Dr),Mr=u.sample_enable,Mr!==l.sample_enable&&(Mr?a.enable(32928):a.disable(32928),l.sample_enable=Mr),Fr=H[0],di=H[1],(Fr!==N[0]||di!==N[1])&&(a.sampleCoverage(Fr,di),N[0]=Fr,N[1]=di),Di=u.stencil_enable,Di!==l.stencil_enable&&(Di?a.enable(2960):a.disable(2960),l.stencil_enable=Di),Ii=u.stencil_mask,Ii!==l.stencil_mask&&(a.stencilMask(Ii),l.stencil_mask=Ii),Ci=W[0],nn=W[1],ii=W[2],(Ci!==re[0]||nn!==re[1]||ii!==re[2])&&(a.stencilFunc(Ci,nn,ii),re[0]=Ci,re[1]=nn,re[2]=ii),wi=ae[0],Gi=ae[1],Bt=ae[2],yt=ae[3],(wi!==be[0]||Gi!==be[1]||Bt!==be[2]||yt!==be[3])&&(a.stencilOpSeparate(wi,Gi,Bt,yt),be[0]=wi,be[1]=Gi,be[2]=Bt,be[3]=yt),Vt=Pe[0],Wt=Pe[1],_r=Pe[2],Lr=Pe[3],(Vt!==Ce[0]||Wt!==Ce[1]||_r!==Ce[2]||Lr!==Ce[3])&&(a.stencilOpSeparate(Vt,Wt,_r,Lr),Ce[0]=Vt,Ce[1]=Wt,Ce[2]=_r,Ce[3]=Lr),Ur=u.scissor_enable,Ur!==l.scissor_enable&&(Ur?a.enable(3089):a.disable(3089),l.scissor_enable=Ur),Ir=de[0],Gr=de[1],jr=de[2],yi=de[3],(Ir!==te[0]||Gr!==te[1]||jr!==te[2]||yi!==te[3])&&(a.scissor(Ir,Gr,jr,yi),te[0]=Ir,te[1]=Gr,te[2]=jr,te[3]=yi),Ei=ke[0],Vi=ke[1],ti=ke[2],en=ke[3],(Ei!==Ee[0]||Vi!==Ee[1]||ti!==Ee[2]||en!==Ee[3])&&(a.viewport(Ei,Vi,ti,en),Ee[0]=Ei,Ee[1]=Vi,Ee[2]=ti,Ee[3]=en),l.dirty=!1}Ye=l.profile,Ye&&(kt=performance.now(),r.count++),Tt=d.frag,St=d.vert,Rt=d.program(St,Tt),a.useProgram(Rt.program),_.setVAO(null),Zt=Rt.id,Et=nt[Zt],Et?Et.call(this,Nt):(Et=nt[Zt]=n(Rt),Et.call(this,Nt)),_.setVAO(null),Ye&&(r.cpuTime+=performance.now()-kt)},scope:function(Nt,it,Ye){var kt,Tt;kt=l.profile,kt&&(Tt=performance.now(),r.count++),it(o,Nt,Ye),kt&&(r.cpuTime+=performance.now()-Tt)},batch:function(Nt,it){var Ye,kt,Tt,St,Rt,Zt,Et,Ae;if(Ye=v.next,Ye!==v.cur&&(Ye?a.bindFramebuffer(36160,Ye.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ye),l.dirty){var at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr;at=u.dither,at!==l.dither&&(at?a.enable(3024):a.disable(3024),l.dither=at),wt=u.blend_enable,wt!==l.blend_enable&&(wt?a.enable(3042):a.disable(3042),l.blend_enable=wt),vt=L[0],st=L[1],Ue=L[2],rt=L[3],(vt!==x[0]||st!==x[1]||Ue!==x[2]||rt!==x[3])&&(a.blendColor(vt,st,Ue,rt),x[0]=vt,x[1]=st,x[2]=Ue,x[3]=rt),$e=C[0],zt=C[1],($e!==M[0]||zt!==M[1])&&(a.blendEquationSeparate($e,zt),M[0]=$e,M[1]=zt),Yt=m[0],hr=m[1],yr=m[2],br=m[3],(Yt!==P[0]||hr!==P[1]||yr!==P[2]||br!==P[3])&&(a.blendFuncSeparate(Yt,hr,yr,br),P[0]=Yt,P[1]=hr,P[2]=yr,P[3]=br),Ut=u.depth_enable,Ut!==l.depth_enable&&(Ut?a.enable(2929):a.disable(2929),l.depth_enable=Ut),Ie=u.depth_func,Ie!==l.depth_func&&(a.depthFunc(Ie),l.depth_func=Ie),xe=A[0],Oe=A[1],(xe!==B[0]||Oe!==B[1])&&(a.depthRange(xe,Oe),B[0]=xe,B[1]=Oe),Re=u.depth_mask,Re!==l.depth_mask&&(a.depthMask(Re),l.depth_mask=Re),De=F[0],ct=F[1],ge=F[2],fe=F[3],(De!==U[0]||ct!==U[1]||ge!==U[2]||fe!==U[3])&&(a.colorMask(De,ct,ge,fe),U[0]=De,U[1]=ct,U[2]=ge,U[3]=fe),pe=u.cull_enable,pe!==l.cull_enable&&(pe?a.enable(2884):a.disable(2884),l.cull_enable=pe),dt=u.cull_face,dt!==l.cull_face&&(a.cullFace(dt),l.cull_face=dt),It=u.frontFace,It!==l.frontFace&&(a.frontFace(It),l.frontFace=It),Pt=u.lineWidth,Pt!==l.lineWidth&&(a.lineWidth(Pt),l.lineWidth=Pt),rr=u.polygonOffset_enable,rr!==l.polygonOffset_enable&&(rr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=rr),Hr=G[0],Dr=G[1],(Hr!==j[0]||Dr!==j[1])&&(a.polygonOffset(Hr,Dr),j[0]=Hr,j[1]=Dr),Mr=u.sample_alpha,Mr!==l.sample_alpha&&(Mr?a.enable(32926):a.disable(32926),l.sample_alpha=Mr),Fr=u.sample_enable,Fr!==l.sample_enable&&(Fr?a.enable(32928):a.disable(32928),l.sample_enable=Fr),di=H[0],Di=H[1],(di!==N[0]||Di!==N[1])&&(a.sampleCoverage(di,Di),N[0]=di,N[1]=Di),Ii=u.stencil_enable,Ii!==l.stencil_enable&&(Ii?a.enable(2960):a.disable(2960),l.stencil_enable=Ii),Ci=u.stencil_mask,Ci!==l.stencil_mask&&(a.stencilMask(Ci),l.stencil_mask=Ci),nn=W[0],ii=W[1],wi=W[2],(nn!==re[0]||ii!==re[1]||wi!==re[2])&&(a.stencilFunc(nn,ii,wi),re[0]=nn,re[1]=ii,re[2]=wi),Gi=ae[0],Bt=ae[1],yt=ae[2],Vt=ae[3],(Gi!==be[0]||Bt!==be[1]||yt!==be[2]||Vt!==be[3])&&(a.stencilOpSeparate(Gi,Bt,yt,Vt),be[0]=Gi,be[1]=Bt,be[2]=yt,be[3]=Vt),Wt=Pe[0],_r=Pe[1],Lr=Pe[2],Ur=Pe[3],(Wt!==Ce[0]||_r!==Ce[1]||Lr!==Ce[2]||Ur!==Ce[3])&&(a.stencilOpSeparate(Wt,_r,Lr,Ur),Ce[0]=Wt,Ce[1]=_r,Ce[2]=Lr,Ce[3]=Ur),Ir=u.scissor_enable,Ir!==l.scissor_enable&&(Ir?a.enable(3089):a.disable(3089),l.scissor_enable=Ir),Gr=de[0],jr=de[1],yi=de[2],Ei=de[3],(Gr!==te[0]||jr!==te[1]||yi!==te[2]||Ei!==te[3])&&(a.scissor(Gr,jr,yi,Ei),te[0]=Gr,te[1]=jr,te[2]=yi,te[3]=Ei),Vi=ke[0],ti=ke[1],en=ke[2],Yr=ke[3],(Vi!==Ee[0]||ti!==Ee[1]||en!==Ee[2]||Yr!==Ee[3])&&(a.viewport(Vi,ti,en,Yr),Ee[0]=Vi,Ee[1]=ti,Ee[2]=en,Ee[3]=Yr),l.dirty=!1}kt=l.profile,kt&&(Tt=performance.now(),r.count+=it),St=d.frag,Rt=d.vert,Zt=d.program(Rt,St),a.useProgram(Zt.program),_.setVAO(null),Et=Zt.id,Ae=gt[Et],Ae?Ae.call(this,Nt,it):(Ae=gt[Et]=i(Zt),Ae.call(this,Nt,it)),_.setVAO(null),kt&&(r.cpuTime+=performance.now()-Tt)}}}});var cVe=Te((Uxr,fVe)=>{fVe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,k,E,T,L,x,C,M,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Ke,nt,gt,Nt,it,Ye,kt,Tt,St,Rt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,pe,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so){"use strict";var Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa;return Kr=t.gl,Ia=t.context,Yo=t.strings,fa=t.next,kn=t.current,Ta=t.draw,ys=t.elements,uo=t.buffer,ls=t.shader,$a=t.attributes,fo=t.vao,mn=t.uniforms,ra=t.framebuffer,wa=t.extensions,ws=t.timer,Co=t.isBufferArgs,Po=fa.blend_color,ji=kn.blend_color,gn=fa.blend_equation,Ps=kn.blend_equation,Ha=fa.blend_func,Sn=kn.blend_func,ao=fa.depth_range,Ba=kn.depth_range,Ko=fa.colorMask,Qo=kn.colorMask,Wi=fa.polygonOffset_offset,Sa=kn.polygonOffset_offset,Qa=fa.sample_coverage,vn=kn.sample_coverage,da=fa.stencil_func,la=kn.stencil_func,vo=fa.stencil_opFront,As=kn.stencil_opFront,ps=fa.stencil_opBack,co=kn.stencil_opBack,mo=fa.scissor_box,No=kn.scissor_box,jn=fa.viewport,Go=kn.viewport,Ys={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},qs={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ns={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Oa={add:32774,subtract:32778,"reverse subtract":32779},ha={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Vs={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ya={cw:2304,ccw:2305},_n={},Vn={},wo=new Float32Array(16),Ra=new Float32Array(16),Xn=new Float32Array(16),un=new Float32Array(16),$n=new Float32Array(16),Ka=new Float32Array(16),qn=new Float32Array(16),Eo=new Float32Array(16),Ja=new Float32Array(16),lo=new Float32Array(16),eo=new Float32Array(16),sa=new Float32Array(16),es=new Float32Array(16),Na=new Float32Array(16),tn=new Float32Array(16),Pa=new Float32Array(16),to=new Float32Array(16),yo=new Float32Array(16),Jo=new Float32Array(16),Ao=new Float32Array(16),Dn=new Float32Array(16),_a=new Float32Array(16),Ws=new Float32Array(16),Ca=new Float32Array(16),Es=new Float32Array(16),Ts=new Float32Array(16),Ho=new Float32Array(16),Wa=new Float32Array(16),To=new Float32Array(16),ts=new Float32Array(16),Wo=new Float32Array(16),qa=new Float32Array(16),{draw:function(ln){var Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Ul,ja,ns,Js;if(Bo=ra.next,Bo!==ra.cur&&(Bo?Kr.bindFramebuffer(36160,Bo.framebuffer):Kr.bindFramebuffer(36160,null),ra.cur=Bo),kn.dirty){var cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Vl,Nl,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir;cs=Ko[0],sl=Ko[1],ll=Ko[2],il=Ko[3],(cs!==Qo[0]||sl!==Qo[1]||ll!==Qo[2]||il!==Qo[3])&&(Kr.colorMask(cs,sl,ll,il),Qo[0]=cs,Qo[1]=sl,Qo[2]=ll,Qo[3]=il),zl=fa.frontFace,zl!==kn.frontFace&&(Kr.frontFace(zl),kn.frontFace=zl),Ml=fa.polygonOffset_enable,Ml!==kn.polygonOffset_enable&&(Ml?Kr.enable(32823):Kr.disable(32823),kn.polygonOffset_enable=Ml),Rl=Wi[0],Al=Wi[1],(Rl!==Sa[0]||Al!==Sa[1])&&(Kr.polygonOffset(Rl,Al),Sa[0]=Rl,Sa[1]=Al),Ll=fa.sample_alpha,Ll!==kn.sample_alpha&&(Ll?Kr.enable(32926):Kr.disable(32926),kn.sample_alpha=Ll),ms=fa.sample_enable,ms!==kn.sample_enable&&(ms?Kr.enable(32928):Kr.disable(32928),kn.sample_enable=ms),Os=Qa[0],Xl=Qa[1],(Os!==vn[0]||Xl!==vn[1])&&(Kr.sampleCoverage(Os,Xl),vn[0]=Os,vn[1]=Xl),Vl=fa.stencil_enable,Vl!==kn.stencil_enable&&(Vl?Kr.enable(2960):Kr.disable(2960),kn.stencil_enable=Vl),Nl=fa.stencil_mask,Nl!==kn.stencil_mask&&(Kr.stencilMask(Nl),kn.stencil_mask=Nl),le=da[0],w=da[1],q=da[2],(le!==la[0]||w!==la[1]||q!==la[2])&&(Kr.stencilFunc(le,w,q),la[0]=le,la[1]=w,la[2]=q),Q=vo[0],ee=vo[1],ue=vo[2],Ge=vo[3],(Q!==As[0]||ee!==As[1]||ue!==As[2]||Ge!==As[3])&&(Kr.stencilOpSeparate(Q,ee,ue,Ge),As[0]=Q,As[1]=ee,As[2]=ue,As[3]=Ge),et=ps[0],mt=ps[1],Ft=ps[2],ir=ps[3],(et!==co[0]||mt!==co[1]||Ft!==co[2]||ir!==co[3])&&(Kr.stencilOpSeparate(et,mt,Ft,ir),co[0]=et,co[1]=mt,co[2]=Ft,co[3]=ir)}ko=ln.viewportX,_n.x=ko,oo=ln.viewportY,_n.y=oo,za=ln.viewportWidth,_n.width=za,ea=ln.viewportHeight,_n.height=ea,rs=_n.x|0,$s=_n.y|0,us="width"in _n?_n.width|0:Ia.framebufferWidth-rs,Ds="height"in _n?_n.height|0:Ia.framebufferHeight-$s,fl=Ia.viewportWidth,Ia.viewportWidth=us,as=Ia.viewportHeight,Ia.viewportHeight=Ds,Kr.viewport(rs,$s,us,Ds),Go[0]=rs,Go[1]=$s,Go[2]=us,Go[3]=Ds,Kr.blendColor(0,0,0,0),ji[0]=0,ji[1]=0,ji[2]=0,ji[3]=0,n?Kr.enable(3042):Kr.disable(3042),kn.blend_enable=n,Kr.blendEquationSeparate(32774,32774),Ps[0]=32774,Ps[1]=32774,Kr.blendFuncSeparate(770,771,1,1),Sn[0]=770,Sn[1]=771,Sn[2]=1,Sn[3]=1,i?Kr.enable(2884):Kr.disable(2884),kn.cull_enable=i,Kr.cullFace(a),kn.cull_face=a,o?Kr.enable(2929):Kr.disable(2929),kn.depth_enable=o,Kr.depthFunc(s),kn.depth_func=s,Kr.depthMask(u),kn.depth_mask=u,Kr.depthRange(0,1),Ba[0]=0,Ba[1]=1,l?Kr.enable(3024):Kr.disable(3024),kn.dither=l,Kr.lineWidth(f),kn.lineWidth=f,Ma=ln.scissorX,Vn.x=Ma,Qs=ln.scissorY,Vn.y=Qs,ho=ln.scissorWidth,Vn.width=ho,gs=ln.scissorHeight,Vn.height=gs,Vo=Vn.x|0,Do=Vn.y|0,Lo="width"in Vn?Vn.width|0:Ia.framebufferWidth-Vo,xs="height"in Vn?Vn.height|0:Ia.framebufferHeight-Do,Kr.scissor(Vo,Do,Lo,xs),No[0]=Vo,No[1]=Do,No[2]=Lo,No[3]=xs,c?Kr.enable(3089):Kr.disable(3089),kn.scissor_enable=c,ks=kn.profile,kn.profile=!1,Kr.useProgram(h.program),fo.setVAO(null),Ea=p.location,Jn=$a[Ea],Jn.buffer||Kr.enableVertexAttribArray(Ea),(Jn.type!==d.dtype||Jn.size!==4||Jn.buffer!==d||Jn.normalized!==!1||Jn.offset!==0||Jn.stride!==0)&&(Kr.bindBuffer(34962,d.buffer),Kr.vertexAttribPointer(Ea,4,d.dtype,!1,0,0),Jn.type=d.dtype,Jn.size=4,Jn.buffer=d,Jn.normalized=!1,Jn.offset=0,Jn.stride=0),Oo=b.location,rl=$a[Oo],rl.buffer||Kr.enableVertexAttribArray(Oo),(rl.type!==_.dtype||rl.size!==4||rl.buffer!==_||rl.normalized!==!1||rl.offset!==0||rl.stride!==0)&&(Kr.bindBuffer(34962,_.buffer),Kr.vertexAttribPointer(Oo,4,_.dtype,!1,0,0),rl.type=_.dtype,rl.size=4,rl.buffer=_,rl.normalized=!1,rl.offset=0,rl.stride=0),Gs=k.location,bs=$a[Gs],bs.buffer||Kr.enableVertexAttribArray(Gs),(bs.type!==v.dtype||bs.size!==4||bs.buffer!==v||bs.normalized!==!1||bs.offset!==0||bs.stride!==0)&&(Kr.bindBuffer(34962,v.buffer),Kr.vertexAttribPointer(Gs,4,v.dtype,!1,0,0),bs.type=v.dtype,bs.size=4,bs.buffer=v,bs.normalized=!1,bs.offset=0,bs.stride=0),zs=T.location,$o=$a[zs],$o.buffer||Kr.enableVertexAttribArray(zs),($o.type!==E.dtype||$o.size!==4||$o.buffer!==E||$o.normalized!==!1||$o.offset!==0||$o.stride!==0)&&(Kr.bindBuffer(34962,E.buffer),Kr.vertexAttribPointer(zs,4,E.dtype,!1,0,0),$o.type=E.dtype,$o.size=4,$o.buffer=E,$o.normalized=!1,$o.offset=0,$o.stride=0),Aa=x.location,os=$a[Aa],os.buffer||Kr.enableVertexAttribArray(Aa),(os.type!==L.dtype||os.size!==4||os.buffer!==L||os.normalized!==!1||os.offset!==0||os.stride!==0)&&(Kr.bindBuffer(34962,L.buffer),Kr.vertexAttribPointer(Aa,4,L.dtype,!1,0,0),os.type=L.dtype,os.size=4,os.buffer=L,os.normalized=!1,os.offset=0,os.stride=0),_l=M.location,Ss=$a[_l],Ss.buffer||Kr.enableVertexAttribArray(_l),(Ss.type!==C.dtype||Ss.size!==4||Ss.buffer!==C||Ss.normalized!==!1||Ss.offset!==0||Ss.stride!==0)&&(Kr.bindBuffer(34962,C.buffer),Kr.vertexAttribPointer(_l,4,C.dtype,!1,0,0),Ss.type=C.dtype,Ss.size=4,Ss.buffer=C,Ss.normalized=!1,Ss.offset=0,Ss.stride=0),po=P.location,go=$a[po],go.buffer||Kr.enableVertexAttribArray(po),(go.type!==m.dtype||go.size!==4||go.buffer!==m||go.normalized!==!1||go.offset!==0||go.stride!==0)&&(Kr.bindBuffer(34962,m.buffer),Kr.vertexAttribPointer(po,4,m.dtype,!1,0,0),go.type=m.dtype,go.size=4,go.buffer=m,go.normalized=!1,go.offset=0,go.stride=0),ss=B.location,qo=$a[ss],qo.buffer||Kr.enableVertexAttribArray(ss),(qo.type!==A.dtype||qo.size!==4||qo.buffer!==A||qo.normalized!==!1||qo.offset!==0||qo.stride!==0)&&(Kr.bindBuffer(34962,A.buffer),Kr.vertexAttribPointer(ss,4,A.dtype,!1,0,0),qo.type=A.dtype,qo.size=4,qo.buffer=A,qo.normalized=!1,qo.offset=0,qo.stride=0),zo=U.location,io=$a[zo],io.buffer||Kr.enableVertexAttribArray(zo),(io.type!==F.dtype||io.size!==4||io.buffer!==F||io.normalized!==!1||io.offset!==0||io.stride!==0)&&(Kr.bindBuffer(34962,F.buffer),Kr.vertexAttribPointer(zo,4,F.dtype,!1,0,0),io.type=F.dtype,io.size=4,io.buffer=F,io.normalized=!1,io.offset=0,io.stride=0),Io=j.location,Da=$a[Io],Da.buffer||Kr.enableVertexAttribArray(Io),(Da.type!==G.dtype||Da.size!==4||Da.buffer!==G||Da.normalized!==!1||Da.offset!==0||Da.stride!==0)&&(Kr.bindBuffer(34962,G.buffer),Kr.vertexAttribPointer(Io,4,G.dtype,!1,0,0),Da.type=G.dtype,Da.size=4,Da.buffer=G,Da.normalized=!1,Da.offset=0,Da.stride=0),vs=N.location,fs=$a[vs],fs.buffer||Kr.enableVertexAttribArray(vs),(fs.type!==H.dtype||fs.size!==4||fs.buffer!==H||fs.normalized!==!1||fs.offset!==0||fs.stride!==0)&&(Kr.bindBuffer(34962,H.buffer),Kr.vertexAttribPointer(vs,4,H.dtype,!1,0,0),fs.type=H.dtype,fs.size=4,fs.buffer=H,fs.normalized=!1,fs.offset=0,fs.stride=0),cl=re.location,el=$a[cl],el.buffer||Kr.enableVertexAttribArray(cl),(el.type!==W.dtype||el.size!==4||el.buffer!==W||el.normalized!==!1||el.offset!==0||el.stride!==0)&&(Kr.bindBuffer(34962,W.buffer),Kr.vertexAttribPointer(cl,4,W.dtype,!1,0,0),el.type=W.dtype,el.size=4,el.buffer=W,el.normalized=!1,el.offset=0,el.stride=0),Hs=be.location,Ro=$a[Hs],Ro.buffer||Kr.enableVertexAttribArray(Hs),(Ro.type!==ae.dtype||Ro.size!==4||Ro.buffer!==ae||Ro.normalized!==!1||Ro.offset!==0||Ro.stride!==0)&&(Kr.bindBuffer(34962,ae.buffer),Kr.vertexAttribPointer(Hs,4,ae.dtype,!1,0,0),Ro.type=ae.dtype,Ro.size=4,Ro.buffer=ae,Ro.normalized=!1,Ro.offset=0,Ro.stride=0),tl=Ce.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==Pe.dtype||Fs.size!==4||Fs.buffer!==Pe||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,Pe.buffer),Kr.vertexAttribPointer(tl,4,Pe.dtype,!1,0,0),Fs.type=Pe.dtype,Fs.size=4,Fs.buffer=Pe,Fs.normalized=!1,Fs.offset=0,Fs.stride=0),hl=te.location,Fa=$a[hl],Fa.buffer||Kr.enableVertexAttribArray(hl),(Fa.type!==de.dtype||Fa.size!==4||Fa.buffer!==de||Fa.normalized!==!1||Fa.offset!==0||Fa.stride!==0)&&(Kr.bindBuffer(34962,de.buffer),Kr.vertexAttribPointer(hl,4,de.dtype,!1,0,0),Fa.type=de.dtype,Fa.size=4,Fa.buffer=de,Fa.normalized=!1,Fa.offset=0,Fa.stride=0),Ms=Ee.location,jo=$a[Ms],jo.buffer||Kr.enableVertexAttribArray(Ms),(jo.type!==ke.dtype||jo.size!==4||jo.buffer!==ke||jo.normalized!==!1||jo.offset!==0||jo.stride!==0)&&(Kr.bindBuffer(34962,ke.buffer),Kr.vertexAttribPointer(Ms,4,ke.dtype,!1,0,0),jo.type=ke.dtype,jo.size=4,jo.buffer=ke,jo.normalized=!1,jo.offset=0,jo.stride=0),Rs=ln.contextColor,Is=Rs[0],Bs=Rs[1],At=Rs[2],Gt=Rs[3],Kr.uniform4f(Me.location,Is,Bs,At,Gt),wr=ln.dim0A,Kr.uniformMatrix4fv(Ne.location,!1,Array.isArray(wr)||wr instanceof Float32Array?wr:(wo[0]=wr[0],wo[1]=wr[1],wo[2]=wr[2],wo[3]=wr[3],wo[4]=wr[4],wo[5]=wr[5],wo[6]=wr[6],wo[7]=wr[7],wo[8]=wr[8],wo[9]=wr[9],wo[10]=wr[10],wo[11]=wr[11],wo[12]=wr[12],wo[13]=wr[13],wo[14]=wr[14],wo[15]=wr[15],wo)),mr=ln.dim0B,Kr.uniformMatrix4fv(Fe.location,!1,Array.isArray(mr)||mr instanceof Float32Array?mr:(Ra[0]=mr[0],Ra[1]=mr[1],Ra[2]=mr[2],Ra[3]=mr[3],Ra[4]=mr[4],Ra[5]=mr[5],Ra[6]=mr[6],Ra[7]=mr[7],Ra[8]=mr[8],Ra[9]=mr[9],Ra[10]=mr[10],Ra[11]=mr[11],Ra[12]=mr[12],Ra[13]=mr[13],Ra[14]=mr[14],Ra[15]=mr[15],Ra)),Or=ln.dim0C,Kr.uniformMatrix4fv(ye.location,!1,Array.isArray(Or)||Or instanceof Float32Array?Or:(Xn[0]=Or[0],Xn[1]=Or[1],Xn[2]=Or[2],Xn[3]=Or[3],Xn[4]=Or[4],Xn[5]=Or[5],Xn[6]=Or[6],Xn[7]=Or[7],Xn[8]=Or[8],Xn[9]=Or[9],Xn[10]=Or[10],Xn[11]=Or[11],Xn[12]=Or[12],Xn[13]=Or[13],Xn[14]=Or[14],Xn[15]=Or[15],Xn)),gi=ln.dim0D,Kr.uniformMatrix4fv(Ve.location,!1,Array.isArray(gi)||gi instanceof Float32Array?gi:(un[0]=gi[0],un[1]=gi[1],un[2]=gi[2],un[3]=gi[3],un[4]=gi[4],un[5]=gi[5],un[6]=gi[6],un[7]=gi[7],un[8]=gi[8],un[9]=gi[9],un[10]=gi[10],un[11]=gi[11],un[12]=gi[12],un[13]=gi[13],un[14]=gi[14],un[15]=gi[15],un)),Ti=ln.dim1A,Kr.uniformMatrix4fv(ce.location,!1,Array.isArray(Ti)||Ti instanceof Float32Array?Ti:($n[0]=Ti[0],$n[1]=Ti[1],$n[2]=Ti[2],$n[3]=Ti[3],$n[4]=Ti[4],$n[5]=Ti[5],$n[6]=Ti[6],$n[7]=Ti[7],$n[8]=Ti[8],$n[9]=Ti[9],$n[10]=Ti[10],$n[11]=Ti[11],$n[12]=Ti[12],$n[13]=Ti[13],$n[14]=Ti[14],$n[15]=Ti[15],$n)),ki=ln.dim1B,Kr.uniformMatrix4fv(Ke.location,!1,Array.isArray(ki)||ki instanceof Float32Array?ki:(Ka[0]=ki[0],Ka[1]=ki[1],Ka[2]=ki[2],Ka[3]=ki[3],Ka[4]=ki[4],Ka[5]=ki[5],Ka[6]=ki[6],Ka[7]=ki[7],Ka[8]=ki[8],Ka[9]=ki[9],Ka[10]=ki[10],Ka[11]=ki[11],Ka[12]=ki[12],Ka[13]=ki[13],Ka[14]=ki[14],Ka[15]=ki[15],Ka)),Ji=ln.dim1C,Kr.uniformMatrix4fv(nt.location,!1,Array.isArray(Ji)||Ji instanceof Float32Array?Ji:(qn[0]=Ji[0],qn[1]=Ji[1],qn[2]=Ji[2],qn[3]=Ji[3],qn[4]=Ji[4],qn[5]=Ji[5],qn[6]=Ji[6],qn[7]=Ji[7],qn[8]=Ji[8],qn[9]=Ji[9],qn[10]=Ji[10],qn[11]=Ji[11],qn[12]=Ji[12],qn[13]=Ji[13],qn[14]=Ji[14],qn[15]=Ji[15],qn)),Fn=ln.dim1D,Kr.uniformMatrix4fv(gt.location,!1,Array.isArray(Fn)||Fn instanceof Float32Array?Fn:(Eo[0]=Fn[0],Eo[1]=Fn[1],Eo[2]=Fn[2],Eo[3]=Fn[3],Eo[4]=Fn[4],Eo[5]=Fn[5],Eo[6]=Fn[6],Eo[7]=Fn[7],Eo[8]=Fn[8],Eo[9]=Fn[9],Eo[10]=Fn[10],Eo[11]=Fn[11],Eo[12]=Fn[12],Eo[13]=Fn[13],Eo[14]=Fn[14],Eo[15]=Fn[15],Eo)),Pi=ln.drwLayer,Kr.uniform1f(Nt.location,Pi),hi=ln.hiA,Kr.uniformMatrix4fv(it.location,!1,Array.isArray(hi)||hi instanceof Float32Array?hi:(Ja[0]=hi[0],Ja[1]=hi[1],Ja[2]=hi[2],Ja[3]=hi[3],Ja[4]=hi[4],Ja[5]=hi[5],Ja[6]=hi[6],Ja[7]=hi[7],Ja[8]=hi[8],Ja[9]=hi[9],Ja[10]=hi[10],Ja[11]=hi[11],Ja[12]=hi[12],Ja[13]=hi[13],Ja[14]=hi[14],Ja[15]=hi[15],Ja)),Li=ln.hiB,Kr.uniformMatrix4fv(Ye.location,!1,Array.isArray(Li)||Li instanceof Float32Array?Li:(lo[0]=Li[0],lo[1]=Li[1],lo[2]=Li[2],lo[3]=Li[3],lo[4]=Li[4],lo[5]=Li[5],lo[6]=Li[6],lo[7]=Li[7],lo[8]=Li[8],lo[9]=Li[9],lo[10]=Li[10],lo[11]=Li[11],lo[12]=Li[12],lo[13]=Li[13],lo[14]=Li[14],lo[15]=Li[15],lo)),Si=ln.hiC,Kr.uniformMatrix4fv(kt.location,!1,Array.isArray(Si)||Si instanceof Float32Array?Si:(eo[0]=Si[0],eo[1]=Si[1],eo[2]=Si[2],eo[3]=Si[3],eo[4]=Si[4],eo[5]=Si[5],eo[6]=Si[6],eo[7]=Si[7],eo[8]=Si[8],eo[9]=Si[9],eo[10]=Si[10],eo[11]=Si[11],eo[12]=Si[12],eo[13]=Si[13],eo[14]=Si[14],eo[15]=Si[15],eo)),Gn=ln.hiD,Kr.uniformMatrix4fv(Tt.location,!1,Array.isArray(Gn)||Gn instanceof Float32Array?Gn:(sa[0]=Gn[0],sa[1]=Gn[1],sa[2]=Gn[2],sa[3]=Gn[3],sa[4]=Gn[4],sa[5]=Gn[5],sa[6]=Gn[6],sa[7]=Gn[7],sa[8]=Gn[8],sa[9]=Gn[9],sa[10]=Gn[10],sa[11]=Gn[11],sa[12]=Gn[12],sa[13]=Gn[13],sa[14]=Gn[14],sa[15]=Gn[15],sa)),ta=ln.loA,Kr.uniformMatrix4fv(St.location,!1,Array.isArray(ta)||ta instanceof Float32Array?ta:(es[0]=ta[0],es[1]=ta[1],es[2]=ta[2],es[3]=ta[3],es[4]=ta[4],es[5]=ta[5],es[6]=ta[6],es[7]=ta[7],es[8]=ta[8],es[9]=ta[9],es[10]=ta[10],es[11]=ta[11],es[12]=ta[12],es[13]=ta[13],es[14]=ta[14],es[15]=ta[15],es)),ya=ln.loB,Kr.uniformMatrix4fv(Rt.location,!1,Array.isArray(ya)||ya instanceof Float32Array?ya:(Na[0]=ya[0],Na[1]=ya[1],Na[2]=ya[2],Na[3]=ya[3],Na[4]=ya[4],Na[5]=ya[5],Na[6]=ya[6],Na[7]=ya[7],Na[8]=ya[8],Na[9]=ya[9],Na[10]=ya[10],Na[11]=ya[11],Na[12]=ya[12],Na[13]=ya[13],Na[14]=ya[14],Na[15]=ya[15],Na)),ia=ln.loC,Kr.uniformMatrix4fv(Zt.location,!1,Array.isArray(ia)||ia instanceof Float32Array?ia:(tn[0]=ia[0],tn[1]=ia[1],tn[2]=ia[2],tn[3]=ia[3],tn[4]=ia[4],tn[5]=ia[5],tn[6]=ia[6],tn[7]=ia[7],tn[8]=ia[8],tn[9]=ia[9],tn[10]=ia[10],tn[11]=ia[11],tn[12]=ia[12],tn[13]=ia[13],tn[14]=ia[14],tn[15]=ia[15],tn)),pa=ln.loD,Kr.uniformMatrix4fv(Et.location,!1,Array.isArray(pa)||pa instanceof Float32Array?pa:(Pa[0]=pa[0],Pa[1]=pa[1],Pa[2]=pa[2],Pa[3]=pa[3],Pa[4]=pa[4],Pa[5]=pa[5],Pa[6]=pa[6],Pa[7]=pa[7],Pa[8]=pa[8],Pa[9]=pa[9],Pa[10]=pa[10],Pa[11]=pa[11],Pa[12]=pa[12],Pa[13]=pa[13],Pa[14]=pa[14],Pa[15]=pa[15],Pa)),va=ln.maskHeight,Kr.uniform1f(Ae.location,va),zn=ln.maskTexture,zn&&zn._reglType==="framebuffer"&&(zn=zn.color[0]),is=zn._texture,Kr.uniform1i(at.location,is.bind()),Kr.uniform1i(wt.location,vt.bind()),Cs=ln.resolution,Ks=Cs[0],dl=Cs[1],Kr.uniform2f(st.location,Ks,dl),xl=ln.viewBoxPos,Bl=xl[0],bl=xl[1],Kr.uniform2f(Ue.location,Bl,bl),eu=ln.viewBoxSize,Zl=eu[0],Ul=eu[1],Kr.uniform2f(rt.location,Zl,Ul),ja=Ta.elements,ja?Kr.bindBuffer(34963,ja.buffer.buffer):fo.currentVAO&&(ja=ys.getElements(fo.currentVAO.elements),ja&&Kr.bindBuffer(34963,ja.buffer.buffer)),ns=ln.offset,Js=ln.count,Js&&(ja?Kr.drawElements(1,Js,ja.type,ns<<(ja.type-5121>>1)):Kr.drawArrays(1,ns,Js),kn.dirty=!0,fo.setVAO(null),Ia.viewportWidth=fl,Ia.viewportHeight=as,kn.profile=ks,is.unbind(),vt.unbind())},scope:function(ln,Bo,ko){var oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Ul,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Vl,Nl,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,Ol,ou,Pu,iu,tu,Wu,Qu,Ju,ju,Xu,lf,xf,ef,tf,Z,se,ze,Xe,Qe,ot,jt,_t,cr,Cr,zr,ui,$r,Oi,fn,vi,zi,Xi,pn,sn,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Zu,Gu,rf,ds,Wl,Au,Tu,uf,df,Ef,vf,fc,Be,qt,ar,Qr,mi,fi,pi,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Wr,_i,dn,En,Yi,ga,Kn,hs,$i,Ui,ro,na,On,In,Va,_s,ul,Qn,Mo,nl,pl,Dl,Fu,mf,Ql,kf,Cu,_f,bf,Lf,Hu,hf,yf,Fl,wf,cu,Y,R,J,O,K,_e,ne,Le,Ze,Ct,dr,Er,lr,Je,ht,bt,Kt,sr,Qt,ur,er,Ot,Jt,Lt,Tr,Nr,ci,Cn,Ki,yn,Xa,ca,Tn,Pn,Nn,xa,Zo,ru,yu,Du,vu,zu,$u,Vf,wd,Ad;oo=ln.viewportX,_n.x=oo,za=ln.viewportY,_n.y=za,ea=ln.viewportWidth,_n.width=ea,rs=ln.viewportHeight,_n.height=rs,$s=_n.x|0,us=_n.y|0,Ds="width"in _n?_n.width|0:Ia.framebufferWidth-$s,fl="height"in _n?_n.height|0:Ia.framebufferHeight-us,as=Ia.viewportWidth,Ia.viewportWidth=Ds,Ma=Ia.viewportHeight,Ia.viewportHeight=fl,Qs=jn[0],jn[0]=$s,ho=jn[1],jn[1]=us,gs=jn[2],jn[2]=Ds,Vo=jn[3],jn[3]=fl,Do=Po[0],Po[0]=$e,Lo=Po[1],Po[1]=zt,xs=Po[2],Po[2]=Yt,ks=Po[3],Po[3]=hr,Ea=fa.blend_enable,fa.blend_enable=yr,Jn=gn[0],gn[0]=br,Oo=gn[1],gn[1]=Ut,rl=Ha[0],Ha[0]=Ie,Gs=Ha[1],Ha[1]=xe,bs=Ha[2],Ha[2]=Oe,zs=Ha[3],Ha[3]=Re,$o=fa.cull_enable,fa.cull_enable=De,Aa=fa.cull_face,fa.cull_face=ct,os=fa.depth_enable,fa.depth_enable=ge,_l=fa.depth_func,fa.depth_func=fe,Ss=fa.depth_mask,fa.depth_mask=pe,po=ao[0],ao[0]=dt,go=ao[1],ao[1]=It,ss=fa.dither,fa.dither=Pt,qo=fa.lineWidth,fa.lineWidth=rr,zo=ln.scissorX,Vn.x=zo,io=ln.scissorY,Vn.y=io,Io=ln.scissorWidth,Vn.width=Io,Da=ln.scissorHeight,Vn.height=Da,vs=Vn.x|0,fs=Vn.y|0,cl="width"in Vn?Vn.width|0:Ia.framebufferWidth-vs,el="height"in Vn?Vn.height|0:Ia.framebufferHeight-fs,Hs=mo[0],mo[0]=vs,Ro=mo[1],mo[1]=fs,tl=mo[2],mo[2]=cl,Fs=mo[3],mo[3]=el,hl=fa.scissor_enable,fa.scissor_enable=Hr,Fa=kn.profile,kn.profile=!1,Ms=ln.offset,jo=Ta.offset,Ta.offset=Ms,Rs=ln.count,Is=Ta.count,Ta.count=Rs,Bs=Ta.primitive,Ta.primitive=Dr,At=mn[Fr],mn[Fr]=Mr,Gt=ln.resolution,wr=mn[di],mn[di]=Gt,mr=ln.viewBoxPos,Or=mn[Di],mn[Di]=mr,gi=ln.viewBoxSize,Ti=mn[Ii],mn[Ii]=gi,ki=ln.dim0A,Ji=mn[Ci],mn[Ci]=ki,Fn=ln.dim1A,Pi=mn[nn],mn[nn]=Fn,hi=ln.dim0B,Li=mn[ii],mn[ii]=hi,Si=ln.dim1B,Gn=mn[wi],mn[wi]=Si,ta=ln.dim0C,ya=mn[Gi],mn[Gi]=ta,ia=ln.dim1C,pa=mn[Bt],mn[Bt]=ia,va=ln.dim0D,zn=mn[yt],mn[yt]=va,is=ln.dim1D,Cs=mn[Vt],mn[Vt]=is,Ks=ln.loA,dl=mn[Wt],mn[Wt]=Ks,xl=ln.hiA,Bl=mn[_r],mn[_r]=xl,bl=ln.loB,eu=mn[Lr],mn[Lr]=bl,Zl=ln.hiB,Ul=mn[Ur],mn[Ur]=Zl,ja=ln.loC,ns=mn[Ir],mn[Ir]=ja,Js=ln.hiC,cs=mn[Gr],mn[Gr]=Js,sl=ln.loD,ll=mn[jr],mn[jr]=sl,il=ln.hiD,zl=mn[yi],mn[yi]=il,Ml=ln.contextColor,Rl=mn[Ei],mn[Ei]=Ml,Al=ln.maskTexture,Ll=mn[Vi],mn[Vi]=Al,ms=ln.drwLayer,Os=mn[ti],mn[ti]=ms,Xl=ln.maskHeight,Vl=mn[en],mn[en]=Xl,Nl=Yr.state,Yr.state=1,le=Yr.x,Yr.x=0,w=Yr.y,Yr.y=0,q=Yr.z,Yr.z=0,Q=Yr.w,Yr.w=0,ee=Yr.buffer,Yr.buffer=_,ue=Yr.size,Yr.size=0,Ge=Yr.normalized,Yr.normalized=!1,et=Yr.type,Yr.type=_.dtype,mt=Yr.offset,Yr.offset=0,Ft=Yr.stride,Yr.stride=0,ir=Yr.divisor,Yr.divisor=0,or=oi.state,oi.state=1,kr=oi.x,oi.x=0,Vr=oi.y,oi.y=0,he=oi.z,oi.z=0,Se=oi.w,oi.w=0,qe=oi.buffer,oi.buffer=v,He=oi.size,oi.size=0,lt=oi.normalized,oi.normalized=!1,tt=oi.type,oi.type=v.dtype,pt=oi.offset,oi.offset=0,Ht=oi.stride,oi.stride=0,nr=oi.divisor,oi.divisor=0,fr=Bi.state,Bi.state=1,Ar=Bi.x,Bi.x=0,Rr=Bi.y,Bi.y=0,ri=Bi.z,Bi.z=0,si=Bi.w,Bi.w=0,Mi=Bi.buffer,Bi.buffer=E,hn=Bi.size,Bi.size=0,Zn=Bi.normalized,Bi.normalized=!1,Yn=Bi.type,Bi.type=E.dtype,Ua=Bi.offset,Bi.offset=0,Fo=Bi.stride,Bi.stride=0,vl=Bi.divisor,Bi.divisor=0,Us=an.state,an.state=1,ml=an.x,an.x=0,au=an.y,an.y=0,Sl=an.z,an.z=0,Yl=an.w,an.w=0,Ol=an.buffer,an.buffer=L,ou=an.size,an.size=0,Pu=an.normalized,an.normalized=!1,iu=an.type,an.type=L.dtype,tu=an.offset,an.offset=0,Wu=an.stride,an.stride=0,Qu=an.divisor,an.divisor=0,Ju=rn.state,rn.state=1,ju=rn.x,rn.x=0,Xu=rn.y,rn.y=0,lf=rn.z,rn.z=0,xf=rn.w,rn.w=0,ef=rn.buffer,rn.buffer=C,tf=rn.size,rn.size=0,Z=rn.normalized,rn.normalized=!1,se=rn.type,rn.type=C.dtype,ze=rn.offset,rn.offset=0,Xe=rn.stride,rn.stride=0,Qe=rn.divisor,rn.divisor=0,ot=Fi.state,Fi.state=1,jt=Fi.x,Fi.x=0,_t=Fi.y,Fi.y=0,cr=Fi.z,Fi.z=0,Cr=Fi.w,Fi.w=0,zr=Fi.buffer,Fi.buffer=m,ui=Fi.size,Fi.size=0,$r=Fi.normalized,Fi.normalized=!1,Oi=Fi.type,Fi.type=m.dtype,fn=Fi.offset,Fi.offset=0,vi=Fi.stride,Fi.stride=0,zi=Fi.divisor,Fi.divisor=0,Xi=Ri.state,Ri.state=1,pn=Ri.x,Ri.x=0,sn=Ri.y,Ri.y=0,bi=Ri.z,Ri.z=0,xo=Ri.w,Ri.w=0,no=Ri.buffer,Ri.buffer=A,Xo=Ri.size,Ri.size=0,js=Ri.normalized,Ri.normalized=!1,El=Ri.type,Ri.type=A.dtype,Pl=Ri.offset,Ri.offset=0,pu=Ri.stride,Ri.stride=0,Il=Ri.divisor,Ri.divisor=0,fu=xn.state,xn.state=1,Zu=xn.x,xn.x=0,Gu=xn.y,xn.y=0,rf=xn.z,xn.z=0,ds=xn.w,xn.w=0,Wl=xn.buffer,xn.buffer=F,Au=xn.size,xn.size=0,Tu=xn.normalized,xn.normalized=!1,uf=xn.type,xn.type=F.dtype,df=xn.offset,xn.offset=0,Ef=xn.stride,xn.stride=0,vf=xn.divisor,xn.divisor=0,fc=xi.state,xi.state=1,Be=xi.x,xi.x=0,qt=xi.y,xi.y=0,ar=xi.z,xi.z=0,Qr=xi.w,xi.w=0,mi=xi.buffer,xi.buffer=G,fi=xi.size,xi.size=0,pi=xi.normalized,xi.normalized=!1,on=xi.type,xi.type=G.dtype,Bn=xi.offset,xi.offset=0,Ln=xi.stride,xi.stride=0,wn=xi.divisor,xi.divisor=0,Ls=Xr.state,Xr.state=1,ua=Xr.x,Xr.x=0,Hn=Xr.y,Xr.y=0,Ni=Xr.z,Xr.z=0,Wr=Xr.w,Xr.w=0,_i=Xr.buffer,Xr.buffer=H,dn=Xr.size,Xr.size=0,En=Xr.normalized,Xr.normalized=!1,Yi=Xr.type,Xr.type=H.dtype,ga=Xr.offset,Xr.offset=0,Kn=Xr.stride,Xr.stride=0,hs=Xr.divisor,Xr.divisor=0,$i=ft.state,ft.state=1,Ui=ft.x,ft.x=0,ro=ft.y,ft.y=0,na=ft.z,ft.z=0,On=ft.w,ft.w=0,In=ft.buffer,ft.buffer=W,Va=ft.size,ft.size=0,_s=ft.normalized,ft.normalized=!1,ul=ft.type,ft.type=W.dtype,Qn=ft.offset,ft.offset=0,Mo=ft.stride,ft.stride=0,nl=ft.divisor,ft.divisor=0,pl=tr.state,tr.state=1,Dl=tr.x,tr.x=0,Fu=tr.y,tr.y=0,mf=tr.z,tr.z=0,Ql=tr.w,tr.w=0,kf=tr.buffer,tr.buffer=ae,Cu=tr.size,tr.size=0,_f=tr.normalized,tr.normalized=!1,bf=tr.type,tr.type=ae.dtype,Lf=tr.offset,tr.offset=0,Hu=tr.stride,tr.stride=0,hf=tr.divisor,tr.divisor=0,yf=pr.state,pr.state=1,Fl=pr.x,pr.x=0,wf=pr.y,pr.y=0,cu=pr.z,pr.z=0,Y=pr.w,pr.w=0,R=pr.buffer,pr.buffer=Pe,J=pr.size,pr.size=0,O=pr.normalized,pr.normalized=!1,K=pr.type,pr.type=Pe.dtype,_e=pr.offset,pr.offset=0,ne=pr.stride,pr.stride=0,Le=pr.divisor,pr.divisor=0,Ze=gr.state,gr.state=1,Ct=gr.x,gr.x=0,dr=gr.y,gr.y=0,Er=gr.z,gr.z=0,lr=gr.w,gr.w=0,Je=gr.buffer,gr.buffer=de,ht=gr.size,gr.size=0,bt=gr.normalized,gr.normalized=!1,Kt=gr.type,gr.type=de.dtype,sr=gr.offset,gr.offset=0,Qt=gr.stride,gr.stride=0,ur=gr.divisor,gr.divisor=0,er=Zr.state,Zr.state=1,Ot=Zr.x,Zr.x=0,Jt=Zr.y,Zr.y=0,Lt=Zr.z,Zr.z=0,Tr=Zr.w,Zr.w=0,Nr=Zr.buffer,Zr.buffer=ke,ci=Zr.size,Zr.size=0,Cn=Zr.normalized,Zr.normalized=!1,Ki=Zr.type,Zr.type=ke.dtype,yn=Zr.offset,Zr.offset=0,Xa=Zr.stride,Zr.stride=0,ca=Zr.divisor,Zr.divisor=0,Tn=Ai.state,Ai.state=1,Pn=Ai.x,Ai.x=0,Nn=Ai.y,Ai.y=0,xa=Ai.z,Ai.z=0,Zo=Ai.w,Ai.w=0,ru=Ai.buffer,Ai.buffer=d,yu=Ai.size,Ai.size=0,Du=Ai.normalized,Ai.normalized=!1,vu=Ai.type,Ai.type=d.dtype,zu=Ai.offset,Ai.offset=0,$u=Ai.stride,Ai.stride=0,Vf=Ai.divisor,Ai.divisor=0,wd=ls.vert,ls.vert=Qi,Ad=ls.frag,ls.frag=ni,kn.dirty=!0,Bo(Ia,ln,ko),Ia.viewportWidth=as,Ia.viewportHeight=Ma,jn[0]=Qs,jn[1]=ho,jn[2]=gs,jn[3]=Vo,Po[0]=Do,Po[1]=Lo,Po[2]=xs,Po[3]=ks,fa.blend_enable=Ea,gn[0]=Jn,gn[1]=Oo,Ha[0]=rl,Ha[1]=Gs,Ha[2]=bs,Ha[3]=zs,fa.cull_enable=$o,fa.cull_face=Aa,fa.depth_enable=os,fa.depth_func=_l,fa.depth_mask=Ss,ao[0]=po,ao[1]=go,fa.dither=ss,fa.lineWidth=qo,mo[0]=Hs,mo[1]=Ro,mo[2]=tl,mo[3]=Fs,fa.scissor_enable=hl,kn.profile=Fa,Ta.offset=jo,Ta.count=Is,Ta.primitive=Bs,mn[Fr]=At,mn[di]=wr,mn[Di]=Or,mn[Ii]=Ti,mn[Ci]=Ji,mn[nn]=Pi,mn[ii]=Li,mn[wi]=Gn,mn[Gi]=ya,mn[Bt]=pa,mn[yt]=zn,mn[Vt]=Cs,mn[Wt]=dl,mn[_r]=Bl,mn[Lr]=eu,mn[Ur]=Ul,mn[Ir]=ns,mn[Gr]=cs,mn[jr]=ll,mn[yi]=zl,mn[Ei]=Rl,mn[Vi]=Ll,mn[ti]=Os,mn[en]=Vl,Yr.state=Nl,Yr.x=le,Yr.y=w,Yr.z=q,Yr.w=Q,Yr.buffer=ee,Yr.size=ue,Yr.normalized=Ge,Yr.type=et,Yr.offset=mt,Yr.stride=Ft,Yr.divisor=ir,oi.state=or,oi.x=kr,oi.y=Vr,oi.z=he,oi.w=Se,oi.buffer=qe,oi.size=He,oi.normalized=lt,oi.type=tt,oi.offset=pt,oi.stride=Ht,oi.divisor=nr,Bi.state=fr,Bi.x=Ar,Bi.y=Rr,Bi.z=ri,Bi.w=si,Bi.buffer=Mi,Bi.size=hn,Bi.normalized=Zn,Bi.type=Yn,Bi.offset=Ua,Bi.stride=Fo,Bi.divisor=vl,an.state=Us,an.x=ml,an.y=au,an.z=Sl,an.w=Yl,an.buffer=Ol,an.size=ou,an.normalized=Pu,an.type=iu,an.offset=tu,an.stride=Wu,an.divisor=Qu,rn.state=Ju,rn.x=ju,rn.y=Xu,rn.z=lf,rn.w=xf,rn.buffer=ef,rn.size=tf,rn.normalized=Z,rn.type=se,rn.offset=ze,rn.stride=Xe,rn.divisor=Qe,Fi.state=ot,Fi.x=jt,Fi.y=_t,Fi.z=cr,Fi.w=Cr,Fi.buffer=zr,Fi.size=ui,Fi.normalized=$r,Fi.type=Oi,Fi.offset=fn,Fi.stride=vi,Fi.divisor=zi,Ri.state=Xi,Ri.x=pn,Ri.y=sn,Ri.z=bi,Ri.w=xo,Ri.buffer=no,Ri.size=Xo,Ri.normalized=js,Ri.type=El,Ri.offset=Pl,Ri.stride=pu,Ri.divisor=Il,xn.state=fu,xn.x=Zu,xn.y=Gu,xn.z=rf,xn.w=ds,xn.buffer=Wl,xn.size=Au,xn.normalized=Tu,xn.type=uf,xn.offset=df,xn.stride=Ef,xn.divisor=vf,xi.state=fc,xi.x=Be,xi.y=qt,xi.z=ar,xi.w=Qr,xi.buffer=mi,xi.size=fi,xi.normalized=pi,xi.type=on,xi.offset=Bn,xi.stride=Ln,xi.divisor=wn,Xr.state=Ls,Xr.x=ua,Xr.y=Hn,Xr.z=Ni,Xr.w=Wr,Xr.buffer=_i,Xr.size=dn,Xr.normalized=En,Xr.type=Yi,Xr.offset=ga,Xr.stride=Kn,Xr.divisor=hs,ft.state=$i,ft.x=Ui,ft.y=ro,ft.z=na,ft.w=On,ft.buffer=In,ft.size=Va,ft.normalized=_s,ft.type=ul,ft.offset=Qn,ft.stride=Mo,ft.divisor=nl,tr.state=pl,tr.x=Dl,tr.y=Fu,tr.z=mf,tr.w=Ql,tr.buffer=kf,tr.size=Cu,tr.normalized=_f,tr.type=bf,tr.offset=Lf,tr.stride=Hu,tr.divisor=hf,pr.state=yf,pr.x=Fl,pr.y=wf,pr.z=cu,pr.w=Y,pr.buffer=R,pr.size=J,pr.normalized=O,pr.type=K,pr.offset=_e,pr.stride=ne,pr.divisor=Le,gr.state=Ze,gr.x=Ct,gr.y=dr,gr.z=Er,gr.w=lr,gr.buffer=Je,gr.size=ht,gr.normalized=bt,gr.type=Kt,gr.offset=sr,gr.stride=Qt,gr.divisor=ur,Zr.state=er,Zr.x=Ot,Zr.y=Jt,Zr.z=Lt,Zr.w=Tr,Zr.buffer=Nr,Zr.size=ci,Zr.normalized=Cn,Zr.type=Ki,Zr.offset=yn,Zr.stride=Xa,Zr.divisor=ca,Ai.state=Tn,Ai.x=Pn,Ai.y=Nn,Ai.z=xa,Ai.w=Zo,Ai.buffer=ru,Ai.size=yu,Ai.normalized=Du,Ai.type=vu,Ai.offset=zu,Ai.stride=$u,Ai.divisor=Vf,ls.vert=wd,ls.frag=Ad,kn.dirty=!0},batch:function(ln,Bo){var ko,oo,za,ea;if(ko=ra.next,ko!==ra.cur&&(ko?Kr.bindFramebuffer(36160,ko.framebuffer):Kr.bindFramebuffer(36160,null),ra.cur=ko),kn.dirty){var rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os;rs=Ko[0],$s=Ko[1],us=Ko[2],Ds=Ko[3],(rs!==Qo[0]||$s!==Qo[1]||us!==Qo[2]||Ds!==Qo[3])&&(Kr.colorMask(rs,$s,us,Ds),Qo[0]=rs,Qo[1]=$s,Qo[2]=us,Qo[3]=Ds),fl=fa.frontFace,fl!==kn.frontFace&&(Kr.frontFace(fl),kn.frontFace=fl),as=fa.polygonOffset_enable,as!==kn.polygonOffset_enable&&(as?Kr.enable(32823):Kr.disable(32823),kn.polygonOffset_enable=as),Ma=Wi[0],Qs=Wi[1],(Ma!==Sa[0]||Qs!==Sa[1])&&(Kr.polygonOffset(Ma,Qs),Sa[0]=Ma,Sa[1]=Qs),ho=fa.sample_alpha,ho!==kn.sample_alpha&&(ho?Kr.enable(32926):Kr.disable(32926),kn.sample_alpha=ho),gs=fa.sample_enable,gs!==kn.sample_enable&&(gs?Kr.enable(32928):Kr.disable(32928),kn.sample_enable=gs),Vo=Qa[0],Do=Qa[1],(Vo!==vn[0]||Do!==vn[1])&&(Kr.sampleCoverage(Vo,Do),vn[0]=Vo,vn[1]=Do),Lo=fa.stencil_enable,Lo!==kn.stencil_enable&&(Lo?Kr.enable(2960):Kr.disable(2960),kn.stencil_enable=Lo),xs=fa.stencil_mask,xs!==kn.stencil_mask&&(Kr.stencilMask(xs),kn.stencil_mask=xs),ks=da[0],Ea=da[1],Jn=da[2],(ks!==la[0]||Ea!==la[1]||Jn!==la[2])&&(Kr.stencilFunc(ks,Ea,Jn),la[0]=ks,la[1]=Ea,la[2]=Jn),Oo=vo[0],rl=vo[1],Gs=vo[2],bs=vo[3],(Oo!==As[0]||rl!==As[1]||Gs!==As[2]||bs!==As[3])&&(Kr.stencilOpSeparate(Oo,rl,Gs,bs),As[0]=Oo,As[1]=rl,As[2]=Gs,As[3]=bs),zs=ps[0],$o=ps[1],Aa=ps[2],os=ps[3],(zs!==co[0]||$o!==co[1]||Aa!==co[2]||os!==co[3])&&(Kr.stencilOpSeparate(zs,$o,Aa,os),co[0]=zs,co[1]=$o,co[2]=Aa,co[3]=os)}Kr.blendColor(0,0,0,0),ji[0]=0,ji[1]=0,ji[2]=0,ji[3]=0,Zi?Kr.enable(3042):Kr.disable(3042),kn.blend_enable=Zi,Kr.blendEquationSeparate(32774,32774),Ps[0]=32774,Ps[1]=32774,Kr.blendFuncSeparate(770,771,1,1),Sn[0]=770,Sn[1]=771,Sn[2]=1,Sn[3]=1,aa?Kr.enable(2884):Kr.disable(2884),kn.cull_enable=aa,Kr.cullFace(Mn),kn.cull_face=Mn,Un?Kr.enable(2929):Kr.disable(2929),kn.depth_enable=Un,Kr.depthFunc(Ga),kn.depth_func=Ga,Kr.depthMask(ma),kn.depth_mask=ma,Kr.depthRange(0,1),Ba[0]=0,Ba[1]=1,oa?Kr.enable(3024):Kr.disable(3024),kn.dither=oa,Kr.lineWidth(ka),kn.lineWidth=ka,so?Kr.enable(3089):Kr.disable(3089),kn.scissor_enable=so,oo=kn.profile,kn.profile=!1,Kr.useProgram(h.program);var _l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki;for(fo.setVAO(null),_l=p.location,Ss=$a[_l],Ss.buffer||Kr.enableVertexAttribArray(_l),(Ss.type!==d.dtype||Ss.size!==4||Ss.buffer!==d||Ss.normalized!==!1||Ss.offset!==0||Ss.stride!==0)&&(Kr.bindBuffer(34962,d.buffer),Kr.vertexAttribPointer(_l,4,d.dtype,!1,0,0),Ss.type=d.dtype,Ss.size=4,Ss.buffer=d,Ss.normalized=!1,Ss.offset=0,Ss.stride=0),po=b.location,go=$a[po],go.buffer||Kr.enableVertexAttribArray(po),(go.type!==_.dtype||go.size!==4||go.buffer!==_||go.normalized!==!1||go.offset!==0||go.stride!==0)&&(Kr.bindBuffer(34962,_.buffer),Kr.vertexAttribPointer(po,4,_.dtype,!1,0,0),go.type=_.dtype,go.size=4,go.buffer=_,go.normalized=!1,go.offset=0,go.stride=0),ss=k.location,qo=$a[ss],qo.buffer||Kr.enableVertexAttribArray(ss),(qo.type!==v.dtype||qo.size!==4||qo.buffer!==v||qo.normalized!==!1||qo.offset!==0||qo.stride!==0)&&(Kr.bindBuffer(34962,v.buffer),Kr.vertexAttribPointer(ss,4,v.dtype,!1,0,0),qo.type=v.dtype,qo.size=4,qo.buffer=v,qo.normalized=!1,qo.offset=0,qo.stride=0),zo=T.location,io=$a[zo],io.buffer||Kr.enableVertexAttribArray(zo),(io.type!==E.dtype||io.size!==4||io.buffer!==E||io.normalized!==!1||io.offset!==0||io.stride!==0)&&(Kr.bindBuffer(34962,E.buffer),Kr.vertexAttribPointer(zo,4,E.dtype,!1,0,0),io.type=E.dtype,io.size=4,io.buffer=E,io.normalized=!1,io.offset=0,io.stride=0),Io=x.location,Da=$a[Io],Da.buffer||Kr.enableVertexAttribArray(Io),(Da.type!==L.dtype||Da.size!==4||Da.buffer!==L||Da.normalized!==!1||Da.offset!==0||Da.stride!==0)&&(Kr.bindBuffer(34962,L.buffer),Kr.vertexAttribPointer(Io,4,L.dtype,!1,0,0),Da.type=L.dtype,Da.size=4,Da.buffer=L,Da.normalized=!1,Da.offset=0,Da.stride=0),vs=M.location,fs=$a[vs],fs.buffer||Kr.enableVertexAttribArray(vs),(fs.type!==C.dtype||fs.size!==4||fs.buffer!==C||fs.normalized!==!1||fs.offset!==0||fs.stride!==0)&&(Kr.bindBuffer(34962,C.buffer),Kr.vertexAttribPointer(vs,4,C.dtype,!1,0,0),fs.type=C.dtype,fs.size=4,fs.buffer=C,fs.normalized=!1,fs.offset=0,fs.stride=0),cl=P.location,el=$a[cl],el.buffer||Kr.enableVertexAttribArray(cl),(el.type!==m.dtype||el.size!==4||el.buffer!==m||el.normalized!==!1||el.offset!==0||el.stride!==0)&&(Kr.bindBuffer(34962,m.buffer),Kr.vertexAttribPointer(cl,4,m.dtype,!1,0,0),el.type=m.dtype,el.size=4,el.buffer=m,el.normalized=!1,el.offset=0,el.stride=0),Hs=B.location,Ro=$a[Hs],Ro.buffer||Kr.enableVertexAttribArray(Hs),(Ro.type!==A.dtype||Ro.size!==4||Ro.buffer!==A||Ro.normalized!==!1||Ro.offset!==0||Ro.stride!==0)&&(Kr.bindBuffer(34962,A.buffer),Kr.vertexAttribPointer(Hs,4,A.dtype,!1,0,0),Ro.type=A.dtype,Ro.size=4,Ro.buffer=A,Ro.normalized=!1,Ro.offset=0,Ro.stride=0),tl=U.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==F.dtype||Fs.size!==4||Fs.buffer!==F||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,F.buffer),Kr.vertexAttribPointer(tl,4,F.dtype,!1,0,0),Fs.type=F.dtype,Fs.size=4,Fs.buffer=F,Fs.normalized=!1,Fs.offset=0,Fs.stride=0),hl=j.location,Fa=$a[hl],Fa.buffer||Kr.enableVertexAttribArray(hl),(Fa.type!==G.dtype||Fa.size!==4||Fa.buffer!==G||Fa.normalized!==!1||Fa.offset!==0||Fa.stride!==0)&&(Kr.bindBuffer(34962,G.buffer),Kr.vertexAttribPointer(hl,4,G.dtype,!1,0,0),Fa.type=G.dtype,Fa.size=4,Fa.buffer=G,Fa.normalized=!1,Fa.offset=0,Fa.stride=0),Ms=N.location,jo=$a[Ms],jo.buffer||Kr.enableVertexAttribArray(Ms),(jo.type!==H.dtype||jo.size!==4||jo.buffer!==H||jo.normalized!==!1||jo.offset!==0||jo.stride!==0)&&(Kr.bindBuffer(34962,H.buffer),Kr.vertexAttribPointer(Ms,4,H.dtype,!1,0,0),jo.type=H.dtype,jo.size=4,jo.buffer=H,jo.normalized=!1,jo.offset=0,jo.stride=0),Rs=re.location,Is=$a[Rs],Is.buffer||Kr.enableVertexAttribArray(Rs),(Is.type!==W.dtype||Is.size!==4||Is.buffer!==W||Is.normalized!==!1||Is.offset!==0||Is.stride!==0)&&(Kr.bindBuffer(34962,W.buffer),Kr.vertexAttribPointer(Rs,4,W.dtype,!1,0,0),Is.type=W.dtype,Is.size=4,Is.buffer=W,Is.normalized=!1,Is.offset=0,Is.stride=0),Bs=be.location,At=$a[Bs],At.buffer||Kr.enableVertexAttribArray(Bs),(At.type!==ae.dtype||At.size!==4||At.buffer!==ae||At.normalized!==!1||At.offset!==0||At.stride!==0)&&(Kr.bindBuffer(34962,ae.buffer),Kr.vertexAttribPointer(Bs,4,ae.dtype,!1,0,0),At.type=ae.dtype,At.size=4,At.buffer=ae,At.normalized=!1,At.offset=0,At.stride=0),Gt=Ce.location,wr=$a[Gt],wr.buffer||Kr.enableVertexAttribArray(Gt),(wr.type!==Pe.dtype||wr.size!==4||wr.buffer!==Pe||wr.normalized!==!1||wr.offset!==0||wr.stride!==0)&&(Kr.bindBuffer(34962,Pe.buffer),Kr.vertexAttribPointer(Gt,4,Pe.dtype,!1,0,0),wr.type=Pe.dtype,wr.size=4,wr.buffer=Pe,wr.normalized=!1,wr.offset=0,wr.stride=0),mr=te.location,Or=$a[mr],Or.buffer||Kr.enableVertexAttribArray(mr),(Or.type!==de.dtype||Or.size!==4||Or.buffer!==de||Or.normalized!==!1||Or.offset!==0||Or.stride!==0)&&(Kr.bindBuffer(34962,de.buffer),Kr.vertexAttribPointer(mr,4,de.dtype,!1,0,0),Or.type=de.dtype,Or.size=4,Or.buffer=de,Or.normalized=!1,Or.offset=0,Or.stride=0),gi=Ee.location,Ti=$a[gi],Ti.buffer||Kr.enableVertexAttribArray(gi),(Ti.type!==ke.dtype||Ti.size!==4||Ti.buffer!==ke||Ti.normalized!==!1||Ti.offset!==0||Ti.stride!==0)&&(Kr.bindBuffer(34962,ke.buffer),Kr.vertexAttribPointer(gi,4,ke.dtype,!1,0,0),Ti.type=ke.dtype,Ti.size=4,Ti.buffer=ke,Ti.normalized=!1,Ti.offset=0,Ti.stride=0),Kr.uniform1i(wt.location,vt.bind()),ki=Ta.elements,ki?Kr.bindBuffer(34963,ki.buffer.buffer):fo.currentVAO&&(ki=ys.getElements(fo.currentVAO.elements),ki&&Kr.bindBuffer(34963,ki.buffer.buffer)),za=0;za>1)):Kr.drawArrays(1,Ar,Rr),Ia.viewportWidth=ya,Ia.viewportHeight=ia,mt.unbind())}vt.unbind(),kn.dirty=!0,fo.setVAO(null),kn.profile=oo}}}});var dVe=Te((Vxr,hVe)=>{"use strict";var MHt=aVe(),EHt=sVe(),kHt=uVe(),CHt=cVe();hVe.exports={"453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45":MHt,"30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0":EHt,a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470:kHt,"3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d":CHt}});var mVe=Te((Gxr,vVe)=>{"use strict";var pVe=ZK(),LHt=dVe();Object.assign(pVe.reglPrecompiled,LHt);vVe.exports=pVe});var _Ve=Te((Hxr,gVe)=>{"use strict";var yVe=iVe();yVe.plot=mVe();gVe.exports=yVe});var YK=Te((Wxr,AVe)=>{"use strict";var bVe=Su().extendFlat,PHt=Gf(),xVe=gc(),zHt=nc(),wVe=Nu().hovertemplateAttrs,IHt=zc().attributes,RHt=bVe({editType:"calc"},zHt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:wVe({editType:"plot",arrayOk:!1},{keys:["count","probability"]})});AVe.exports={domain:IHt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:bVe({},PHt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:wVe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:xVe({editType:"calc"}),tickfont:xVe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:RHt,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var MVe=Te((jxr,SVe)=>{"use strict";var xS=ei(),DHt=yp().hasColorscale,FHt=ed(),BHt=zc().defaults,OHt=Jd(),TVe=YK(),qHt=D8(),NHt=mp().isTypedArraySpec;function UHt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate");var a=i("line.color",n.colorway[0]);if(DHt(e,"line")&&xS.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),FHt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function VHt(e,t){function r(l,f){return xS.coerce(e,t,TVe.dimensions,l,f)}var n=r("values"),i=r("visible");if(n&&n.length||(i=t.visible=!1),i){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=xS.isArrayOrTypedArray(a)&&a.length>0||NHt(a),s;o&&(s="array");var u=r("categoryorder",s);u==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&u==="array"&&(t.categoryorder="trace")}}SVe.exports=function(t,r,n,i){function a(l,f){return xS.coerce(t,r,TVe,l,f)}var o=OHt(t,r,{name:"dimensions",handleItemDefaults:VHt}),s=UHt(t,r,n,i,a);BHt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),qHt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var u=i.font;xS.coerceFont(a,"labelfont",u,{overrideDflt:{size:Math.round(u.size)}}),xS.coerceFont(a,"tickfont",u,{autoShadowDflt:!0,overrideDflt:{size:Math.round(u.size/1.2)}})}});var kVe=Te((Xxr,EVe)=>{"use strict";var GHt=Ky().wrap,HHt=yp().hasColorscale,WHt=gp(),jHt=nq(),XHt=Mu(),Dk=ei(),ZHt=ku();EVe.exports=function(t,r){var n=Dk.filterVisible(r.dimensions);if(n.length===0)return[];var i=n.map(function(m){var P;if(m.categoryorder==="trace")P=null;else if(m.categoryorder==="array")P=m.categoryarray;else{P=jHt(m.values);for(var A=!0,B=0;B=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var BVe=Te((Zxr,FVe)=>{"use strict";var Uf=Jl(),aWt=(I2(),ab(z2)).interpolateNumber,oWt=Uz(),Ok=Xc(),yx=ei(),Fk=yx.strTranslate,CVe=Mu(),KK=cd(),sWt=Xf();function lWt(e,t,r,n){var i=t._context.staticPlot,a=e.map(AWt.bind(0,t,r)),o=n.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",i?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,u1),u=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(k){return Fk(k.x,k.y)}),u.append("g").attr("class","paths");var l=s.select("g.paths"),f=l.selectAll("path.path").data(function(k){return k.paths},u1);f.attr("fill",function(k){return k.model.color});var c=f.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(k){return k.model.color}).attr("fill-opacity",0);QK(c),f.attr("d",function(k){return k.svgD}),c.empty()||f.sort(JK),f.exit().remove(),f.on("mouseover",uWt).on("mouseout",fWt).on("click",cWt),u.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(k){return k.dimensions},u1);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(k){return Fk(k.x,0)}),d.exit().remove();var p=d.selectAll("g.category").data(function(k){return k.categories},u1),_=p.enter().append("g").attr("class","category");p.attr("transform",function(k){return Fk(0,k.y)}),_.append("rect").attr("class","catrect").attr("pointer-events","none"),p.select("rect.catrect").attr("fill","none").attr("width",function(k){return k.width}).attr("height",function(k){return k.height}),PVe(_);var b=p.selectAll("rect.bandrect").data(function(k){return k.bands},u1);b.each(function(){yx.raiseToTop(this)}),b.attr("fill",function(k){return k.color});var v=b.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(k){return k.color}).attr("fill-opacity",0);b.attr("fill",function(k){return k.color}).attr("width",function(k){return k.width}).attr("height",function(k){return k.height}).attr("y",function(k){return k.y}).attr("cursor",function(k){return k.parcatsViewModel.arrangement==="fixed"?"default":k.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),tJ(v),b.exit().remove(),_.append("text").attr("class","catlabel").attr("pointer-events","none"),p.select("text.catlabel").attr("text-anchor",function(k){return Bk(k)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(k){return Bk(k)?k.width+5:-5}).attr("y",function(k){return k.height/2}).text(function(k){return k.model.categoryLabel}).each(function(k){CVe.font(Uf.select(this),k.parcatsViewModel.categorylabelfont),sWt.convertToTspans(Uf.select(this),t)}),_.append("text").attr("class","dimlabel"),p.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(k){return k.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(k){return k.width/2}).attr("y",-5).text(function(k,E){return E===0?k.parcatsViewModel.model.dimensions[k.model.dimensionInd].dimensionLabel:null}).each(function(k){CVe.font(Uf.select(this),k.parcatsViewModel.labelfont)}),p.selectAll("rect.bandrect").on("mouseover",gWt).on("mouseout",_Wt),p.exit().remove(),d.call(Uf.behavior.drag().origin(function(k){return{x:k.x,y:0}}).on("dragstart",xWt).on("drag",bWt).on("dragend",wWt)),s.each(function(k){k.traceSelection=Uf.select(this),k.pathSelection=Uf.select(this).selectAll("g.paths").selectAll("path.path"),k.dimensionSelection=Uf.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}FVe.exports=function(e,t,r,n){lWt(r,e,n,t)};function u1(e){return e.key}function Bk(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function JK(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),x=Uf.mouse(i)[0];Ok.loneHover({trace:a,x:p-s.left+u.left,y:_-s.top+u.top,text:L,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:b,idealAlign:x1&&l.displayInd===u.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var p=s.model.count,_=s.model.categoryLabel,b=p/s.parcatsViewModel.model.count,v={countLabel:p,categoryLabel:_,probabilityLabel:b.toFixed(3)},k=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&k.push(["Count:",v.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&k.push(["P("+v.categoryLabel+"):",v.probabilityLabel].join(" "));var E=k.join("
");return{trace:f,x:n*(h-t.left),y:i*(c-t.top),text:E,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:v,eventData:[{data:f._input,fullData:f,count:p,category:_,probability:b}]}}function mWt(e,t,r){var n=[];return Uf.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(zVe(e,t,i))}),n}function yWt(e,t,r){e._fullLayout._calcInverseTransform(e);var n=e._fullLayout._invScaleX,i=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=Uf.select(r).datum(),s=o.categoryViewModel,u=s.parcatsViewModel,l=u.model.dimensions[s.model.dimensionInd],f=u.trace,c=a.y+a.height/2,h,d;u.dimensions.length>1&&l.displayInd===u.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var p=s.model.categoryLabel,_=o.parcatsViewModel.model.count,b=0;o.categoryViewModel.bands.forEach(function(P){P.color===o.color&&(b+=P.count)});var v=s.model.count,k=0;u.pathSelection.each(function(P){P.model.color===o.color&&(k+=P.model.count)});var E=b/_,T=b/k,L=b/v,x={countLabel:b,categoryLabel:p,probabilityLabel:E.toFixed(3)},C=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&C.push(["Count:",x.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(C.push("P(color \u2229 "+p+"): "+x.probabilityLabel),C.push("P("+p+" | color): "+T.toFixed(3)),C.push("P(color | "+p+"): "+L.toFixed(3)));var M=C.join("
"),m=KK.mostReadable(o.color,["black","white"]);return{trace:f,x:n*(h-t.left),y:i*(c-t.top),text:M,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:m,fontSize:10,idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:x,eventData:[{data:f._input,fullData:f,category:p,count:_,probability:E,categorycount:v,colorcount:k,bandcolorcount:b}]}}function gWt(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=Uf.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,n=r._fullLayout,i=n._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(vWt(o),iJ(o,"plotly_hover",Uf.event)):(pWt(o),rJ(o,"plotly_hover",Uf.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=zVe(r,i,o):a==="color"?s=yWt(r,i,o):a==="dimension"&&(s=mWt(r,i,o)),s&&Ok.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function _Wt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(QK(t.pathSelection),PVe(t.dimensionSelection.selectAll("g.category")),tJ(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),Ok.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(JK),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?iJ(n,"plotly_unhover",Uf.event):rJ(n,"plotly_unhover",Uf.event)}}function xWt(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,Uf.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=Uf.mouse(this)[0],n=Uf.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=n&&n<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(i){return i.displayInd}),t.model.dragY=t.y,yx.raiseToTop(this.parentNode),Uf.select(this.parentNode).selectAll("rect.bandrect").each(function(i){i.yf.y+f.height/2&&(a.model.displayInd=f.model.displayInd,f.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){i.model.dragX=Uf.event.x;var c=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[n];c!==void 0&&i.model.dragXh.x&&(i.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=i.model.displayInd}aJ(e.parcatsViewModel),nJ(e.parcatsViewModel),DVe(e.parcatsViewModel),RVe(e.parcatsViewModel)}}function wWt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Uf.select(this).selectAll("text").attr("font-weight","normal");var t={},r=IVe(e.parcatsViewModel),n=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),i=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==n[d]});i&&n.forEach(function(h,d){var p=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+p+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,d){return h!==o[d]}),a){var s=e.model.categories.slice().sort(function(h,d){return h.displayInd-d.displayInd}),u=s.map(function(h){return h.categoryValue}),l=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[u],t["dimensions["+e.model.containerInd+"].ticktext"]=[l],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?iJ(e.potentialClickBand,"plotly_click",Uf.event.sourceEvent):rJ(e.potentialClickBand,"plotly_click",Uf.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var f=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];f.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,aJ(e.parcatsViewModel),nJ(e.parcatsViewModel);var c=Uf.transition().duration(300).ease("cubic-in-out");c.each(function(){DVe(e.parcatsViewModel,!0),RVe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&oWt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function IVe(e){for(var t,r=e.graphDiv._fullData,n=0;n=0;u--)l+="C"+o[u]+","+(t[u+1]+n)+" "+a[u]+","+(t[u]+n)+" "+(e[u]+r[u])+","+(t[u]+n),l+="l-"+r[u]+",0 ";return l+="Z",l}function nJ(e){var t=e.dimensions,r=e.model,n=t.map(function(F){return F.categories.map(function(U){return U.y})}),i=e.model.dimensions.map(function(F){return F.categories.map(function(U){return U.displayInd})}),a=e.model.dimensions.map(function(F){return F.displayInd}),o=e.dimensions.map(function(F){return F.model.dimensionInd}),s=t.map(function(F){return F.x}),u=t.map(function(F){return F.width}),l=[];for(var f in r.paths)r.paths.hasOwnProperty(f)&&l.push(r.paths[f]);function c(F){var U=F.categoryInds.map(function(j,H){return i[H][j]}),G=o.map(function(j){return U[j]});return G}l.sort(function(F,U){var G=c(F),j=c(U);return e.sortpaths==="backward"&&(G.reverse(),j.reverse()),G.push(F.valueInds[0]),j.push(U.valueInds[0]),e.bundlecolors&&(G.unshift(F.rawColor),j.unshift(U.rawColor)),Gj?1:0});for(var h=new Array(l.length),d=t[0].model.count,p=t[0].categories.map(function(F){return F.height}).reduce(function(F,U){return F+U}),_=0;_0?v=p*(b.count/d):v=0;for(var k=new Array(n.length),E=0;E1?o=(e.width-2*r-n)/(i-1):o=0,s=r,u=s+o*a;var l=[],f=e.model.maxCats,c=t.categories.length,h=8,d=t.count,p=e.height-h*(f-1),_,b,v,k,E,T=(f-c)*h/2,L=t.categories.map(function(x){return{displayInd:x.displayInd,categoryInd:x.categoryInd}});for(L.sort(function(x,C){return x.displayInd-C.displayInd}),E=0;E0?_=b.count/d*p:_=0,v={key:b.valueInds[0],model:b,width:n,height:_,y:b.dragY!==null?b.dragY:T,bands:[],parcatsViewModel:e},T=T+_+h,l.push(v);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:u,y:0,width:n,model:t,categories:l,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var oJ=Te((Yxr,OVe)=>{"use strict";var SWt=BVe();OVe.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;SWt(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},n,i)}});var NVe=Te($8=>{"use strict";var MWt=Rd().getModuleCalcData,EWt=oJ(),qVe="parcats";$8.name=qVe;$8.plot=function(e,t,r,n){var i=MWt(e.calcdata,qVe);if(i.length){var a=i[0];EWt(e,a,r,n)}};$8.clean=function(e,t,r,n){var i=n._has&&n._has("parcats"),a=t._has&&t._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}});var VVe=Te((Jxr,UVe)=>{"use strict";UVe.exports={attributes:YK(),supplyDefaults:MVe(),calc:kVe(),plot:oJ(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:NVe(),categories:["noOpacity"],meta:{}}});var HVe=Te(($xr,GVe)=>{"use strict";GVe.exports=VVe()});var f1=Te((Qxr,JVe)=>{"use strict";var kWt=Z1(),WVe="1.13.4",YVe='\xA9 OpenStreetMap contributors',jVe=['\xA9 Carto',YVe].join(" "),XVe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),CWt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),KVe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:YVe,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:jVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:jVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:XVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:XVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:CWt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},ZVe=kWt(KVe);JVe.exports={requiredVersion:WVe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:KVe,styleValuesNonMapbox:ZVe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+WVe+"."].join(` `),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` -`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",jVe.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` +`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",ZVe.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` `),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` -`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var qk=Te(($xr,QVe)=>{"use strict";var KVe=ei(),JVe=jl().defaultLine,EWt=zc().attributes,kWt=gc(),CWt=Zc().textposition,LWt=Sc().overrideAll,PWt=Pf().templatedArray,sJ=f1(),$Ve=kWt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});$Ve.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var zWt=QVe.exports=LWt({_arrayAttrRegexps:[KVe.counterRegex("mapbox",".layers",!0)],domain:EWt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:sJ.styleValuesMapbox.concat(sJ.styleValuesNonMapbox),dflt:sJ.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:PWt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:JVe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:JVe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:$Ve,textposition:KVe.extendFlat({},CWt,{arrayOk:!1})}})},"plot","from-root");zWt.uirevision={valType:"any",editType:"none"}});var Q8=Te((Qxr,rGe)=>{"use strict";var IWt=Nu().hovertemplateAttrs,RWt=Nu().texttemplateAttrs,DWt=Em(),Nk=G2(),xS=Zc(),eGe=qk(),FWt=Gf(),BWt=nc(),ew=Su().extendFlat,OWt=Sc().overrideAll,qWt=qk(),tGe=Nk.line,bS=Nk.marker;rGe.exports=OWt({lon:Nk.lon,lat:Nk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:ew({},qWt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:ew({},bS.opacity,{dflt:1})},mode:ew({},xS.mode,{dflt:"markers"}),text:ew({},xS.text,{}),texttemplate:RWt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:ew({},xS.hovertext,{}),line:{color:tGe.color,width:tGe.width},connectgaps:xS.connectgaps,marker:ew({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:bS.opacity,size:bS.size,sizeref:bS.sizeref,sizemin:bS.sizemin,sizemode:bS.sizemode},BWt("marker")),fill:Nk.fill,fillcolor:DWt(),textfont:eGe.layers.symbol.textfont,textposition:eGe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:xS.selected.marker},unselected:{marker:xS.unselected.marker},hoverinfo:ew({},FWt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:IWt()},"calc","nested")});var lJ=Te((ebr,iGe)=>{"use strict";var NWt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];iGe.exports={isSupportedFont:function(e){return NWt.indexOf(e)!==-1}}});var oGe=Te((tbr,aGe)=>{"use strict";var Uk=ei(),uJ=lc(),UWt=$v(),VWt=I0(),GWt=R0(),HWt=zm(),nGe=Q8(),WWt=lJ().isSupportedFont;aGe.exports=function(t,r,n,i){function a(v,k){return Uk.coerce(t,r,nGe,v,k)}function o(v,k){return Uk.coerce2(t,r,nGe,v,k)}var s=jWt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),uJ.hasMarkers(r)){UWt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var u=r.marker;u.symbol!=="circle"&&(Uk.isArrayOrTypedArray(u.size)&&(u.size=u.size[0]),Uk.isArrayOrTypedArray(u.color)&&(u.color=u.color[0]))}uJ.hasLines(r)&&(VWt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var l=o("cluster.maxzoom"),f=o("cluster.step"),c=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),p=l!==!1||f!==!1||c!==!1||h!==!1||d!==!1,x=a("cluster.enabled",p);if(x||uJ.hasText(r)){var b=i.font.family;GWt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:WWt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&HWt(t,r,n,a),Uk.coerceSelectionMarkerOpacity(r,a)};function jWt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var fJ=Te((rbr,lGe)=>{"use strict";var sGe=wu();lGe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=sGe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=sGe.tickText(o,o.c2l(s[1]),!0).text,i}});var cJ=Te((ibr,fGe)=>{"use strict";var uGe=ei();fGe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=uGe.isArrayOrTypedArray(r)?uGe.mean(r):r,s=.5+o/100,u=1.5+o/100,l=["",""],f=[0,0];switch(i){case"top":l[0]="top",f[1]=-u;break;case"bottom":l[0]="bottom",f[1]=u;break}switch(a){case"left":l[1]="right",f[0]=-s;break;case"right":l[1]="left",f[0]=s;break}var c;return l[0]&&l[1]?c=l.join("-"):l[0]?c=l[0]:l[1]?c=l[1]:c="center",{anchor:c,offset:f}}});var mGe=Te((nbr,vGe)=>{"use strict";var dGe=ku(),sp=ei(),XWt=nf().BADNUM,tB=tx(),cGe=_c(),ZWt=Mu(),YWt=S3(),rB=lc(),KWt=lJ().isSupportedFont,JWt=cJ(),$Wt=rv().appendArrayPointValue,QWt=Xf().NEWLINES,ejt=Xf().BR_TAG_ALL;vGe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=rB.hasLines(n),s=rB.hasMarkers(n),u=rB.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=eB("fill"),d=eB("line"),p=eB("circle"),x=eB("symbol"),b={fill:h,line:d,circle:p,symbol:x};if(!i)return b;var v;if((a||o)&&(v=tB.calcTraceToLineCoords(r)),a&&(h.geojson=tB.makePolygon(v),h.layout.visibility="visible",sp.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=tB.makeLine(v),d.layout.visibility="visible",sp.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),l){var k=tjt(r);p.geojson=k.geojson,p.layout.visibility="visible",c&&(p.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":dJ(n.cluster.color,n.cluster.step),"circle-radius":dJ(n.cluster.size,n.cluster.step),"circle-opacity":dJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":hGe(n),"text-size":12}}),sp.extendFlat(p.paint,{"circle-color":k.mcc,"circle-radius":k.mrc,"circle-opacity":k.mo})}if(l&&c&&(p.filter=["!",["has","point_count"]]),(f||u)&&(x.geojson=rjt(r,t),sp.extendFlat(x.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(sp.extendFlat(x.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&sp.extendFlat(x.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),x.layout["icon-allow-overlap"]=n.marker.allowoverlap,sp.extendFlat(x.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var E=(n.marker||{}).size,T=JWt(n.textposition,E);sp.extendFlat(x.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":hGe(n)}),sp.extendFlat(x.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function eB(e){return{type:e,geojson:tB.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function tjt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=sp.isArrayOrTypedArray(r.color),a=sp.isArrayOrTypedArray(r.size),o=sp.isArrayOrTypedArray(r.opacity),s;function u(E){return t.opacity*E}function l(E){return E/2}var f;i&&(cGe.hasColorscale(t,"marker")?f=cGe.makeColorScaleFuncFromTrace(r):f=sp.identity);var c;a&&(c=YWt(t));var h;o&&(h=function(E){var T=dGe(E)?+sp.constrain(E,0,1):0;return u(T)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),KWt(s)||(s=r);var u=s.split(", ");return u}});var xGe=Te((abr,_Ge)=>{"use strict";var ijt=ei(),yGe=mGe(),wS=f1().traceLayerPrefix,rm={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function gGe(e,t,r,n){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:wS+t+"-fill",line:wS+t+"-line",circle:wS+t+"-circle",symbol:wS+t+"-symbol",cluster:wS+t+"-cluster",clusterCount:wS+t+"-cluster-count"},this.below=null}var Vk=gGe.prototype;Vk.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&ijt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};Vk.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};Vk.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var _=T[L];i.removeLayer(l.layerIds[_])}E||i.removeSource(l.sourceIds.circle)}function h(E){for(var T=rm.nonCluster,L=0;L=0;L--){var _=T[L];i.removeLayer(l.layerIds[_]),E||i.removeSource(l.sourceIds[_])}}function p(E){u?c(E):d(E)}function x(E){s?f(E):h(E)}function b(){for(var E=s?rm.cluster:rm.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};_Ge.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new gGe(t,n.uid,i,a),s=yGe(t.gd,r),u=o.below=t.belowLookup["trace-"+n.uid],l,f,c;if(i)for(o.addSource("circle",s.circle,n.cluster),l=0;l{"use strict";var njt=Xc(),pJ=ei(),ajt=oA(),ojt=pJ.fillText,sjt=nf().BADNUM,ljt=f1().traceLayerPrefix;function ujt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,u=[],l=ljt+i.uid+"-circle",f=i.cluster&&i.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[l]});u=c.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function x(M){var m=M.lonlat;if(m[0]===sjt||f&&u.indexOf(M.i+1)===-1)return 1/0;var P=pJ.modHalf(m[0],360),A=m[1],B=s.project([P,A]),F=B.x-a.c2p([p,A]),U=B.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(F*F+U*U)-G,1-3/G)}if(njt.getClosest(n,x,e),e.index!==!1){var b=n[e.index],v=b.lonlat,k=[pJ.modHalf(v[0],360)+d,v[1]],E=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=T-L,e.y1=T+L;var _={};_[i.subplot]={_subplot:s};var C=i._module.formatLabels(b,i,_);return e.lonLabel=C.lonLabel,e.latLabel=C.latLabel,e.color=ajt(i,b),e.extraText=bGe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function bGe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=t.lonlat,l=[];function f(c){return c+"\xB0"}return a||o&&s?l.push("("+f(u[1])+", "+f(u[0])+")"):o?l.push(r.lon+f(u[0])):s&&l.push(r.lat+f(u[1])),(a||i.indexOf("text")!==-1)&&ojt(t,e,l),l.join("
")}wGe.exports={hoverPoints:ujt,getExtraText:bGe}});var TGe=Te((sbr,AGe)=>{"use strict";AGe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var MGe=Te((lbr,SGe)=>{"use strict";var fjt=ei(),cjt=lc(),hjt=nf().BADNUM;SGe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!cjt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof vJ=="object"&&typeof mJ!="undefined"?mJ.exports=t():(e=e||self,e.mapboxgl=t())})(vJ,function(){"use strict";var e,t,r;function n(i,a){if(!e)e=a;else if(!t)t=a;else{var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",s={};e(s),r=a(s),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}}return n(["exports"],function(i){"use strict";function a(y,g){return g={exports:{}},y(g,g.exports),g.exports}var o="1.13.4",s=u;function u(y,g,z,V){this.cx=3*y,this.bx=3*(z-y)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*g,this.by=3*(V-g)-this.cy,this.ay=1-this.cy-this.by,this.p1x=y,this.p1y=V,this.p2x=z,this.p2y=V}u.prototype.sampleCurveX=function(y){return((this.ax*y+this.bx)*y+this.cx)*y},u.prototype.sampleCurveY=function(y){return((this.ay*y+this.by)*y+this.cy)*y},u.prototype.sampleCurveDerivativeX=function(y){return(3*this.ax*y+2*this.bx)*y+this.cx},u.prototype.solveCurveX=function(y,g){typeof g=="undefined"&&(g=1e-6);var z,V,$,oe,me;for($=y,me=0;me<8;me++){if(oe=this.sampleCurveX($)-y,Math.abs(oe)V)return V;for(;zoe?z=$:V=$,$=(V-z)*.5+z}return $},u.prototype.solve=function(y,g){return this.sampleCurveY(this.solveCurveX(y,g))};var l=f;function f(y,g){this.x=y,this.y=g}f.prototype={clone:function(){return new f(this.x,this.y)},add:function(y){return this.clone()._add(y)},sub:function(y){return this.clone()._sub(y)},multByPoint:function(y){return this.clone()._multByPoint(y)},divByPoint:function(y){return this.clone()._divByPoint(y)},mult:function(y){return this.clone()._mult(y)},div:function(y){return this.clone()._div(y)},rotate:function(y){return this.clone()._rotate(y)},rotateAround:function(y,g){return this.clone()._rotateAround(y,g)},matMult:function(y){return this.clone()._matMult(y)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(y){return this.x===y.x&&this.y===y.y},dist:function(y){return Math.sqrt(this.distSqr(y))},distSqr:function(y){var g=y.x-this.x,z=y.y-this.y;return g*g+z*z},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(y){return Math.atan2(this.y-y.y,this.x-y.x)},angleWith:function(y){return this.angleWithSep(y.x,y.y)},angleWithSep:function(y,g){return Math.atan2(this.x*g-this.y*y,this.x*y+this.y*g)},_matMult:function(y){var g=y[0]*this.x+y[1]*this.y,z=y[2]*this.x+y[3]*this.y;return this.x=g,this.y=z,this},_add:function(y){return this.x+=y.x,this.y+=y.y,this},_sub:function(y){return this.x-=y.x,this.y-=y.y,this},_mult:function(y){return this.x*=y,this.y*=y,this},_div:function(y){return this.x/=y,this.y/=y,this},_multByPoint:function(y){return this.x*=y.x,this.y*=y.y,this},_divByPoint:function(y){return this.x/=y.x,this.y/=y.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var y=this.y;return this.y=this.x,this.x=-y,this},_rotate:function(y){var g=Math.cos(y),z=Math.sin(y),V=g*this.x-z*this.y,$=z*this.x+g*this.y;return this.x=V,this.y=$,this},_rotateAround:function(y,g){var z=Math.cos(y),V=Math.sin(y),$=g.x+z*(this.x-g.x)-V*(this.y-g.y),oe=g.y+V*(this.x-g.x)+z*(this.y-g.y);return this.x=$,this.y=oe,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},f.convert=function(y){return y instanceof f?y:Array.isArray(y)?new f(y[0],y[1]):y};var c=typeof self!="undefined"?self:{};function h(y,g){if(Array.isArray(y)){if(!Array.isArray(g)||y.length!==g.length)return!1;for(var z=0;z=1)return 1;var g=y*y,z=g*y;return 4*(y<.5?z:3*(y-g)+z-.75)}function x(y,g,z,V){var $=new s(y,g,z,V);return function(oe){return $.solve(oe)}}var b=x(.25,.1,.25,1);function v(y,g,z){return Math.min(z,Math.max(g,y))}function k(y,g,z){var V=z-g,$=((y-g)%V+V)%V+g;return $===g?z:$}function E(y,g,z){if(!y.length)return z(null,[]);var V=y.length,$=new Array(y.length),oe=null;y.forEach(function(me,je){g(me,function(xt,Rt){xt&&(oe=xt),$[je]=Rt,--V===0&&z(oe,$)})})}function T(y){var g=[];for(var z in y)g.push(y[z]);return g}function L(y,g){var z=[];for(var V in y)V in g||z.push(V);return z}function _(y){for(var g=[],z=arguments.length-1;z-- >0;)g[z]=arguments[z+1];for(var V=0,$=g;V<$.length;V+=1){var oe=$[V];for(var me in oe)y[me]=oe[me]}return y}function C(y,g){for(var z={},V=0;V>g/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,y)}return y()}function A(y){return y<=1?1:Math.pow(2,Math.ceil(Math.log(y)/Math.LN2))}function B(y){return y?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(y):!1}function F(y,g){y.forEach(function(z){g[z]&&(g[z]=g[z].bind(g))})}function U(y,g){return y.indexOf(g,y.length-g.length)!==-1}function G(y,g,z){var V={};for(var $ in y)V[$]=g.call(z||this,y[$],$,y);return V}function j(y,g,z){var V={};for(var $ in y)g.call(z||this,y[$],$,y)&&(V[$]=y[$]);return V}function H(y){return Array.isArray(y)?y.map(H):typeof y=="object"&&y?G(y,H):y}function N(y,g){for(var z=0;z=0)return!0;return!1}var W={};function re(y){W[y]||(typeof console!="undefined"&&console.warn(y),W[y]=!0)}function ae(y,g,z){return(z.y-y.y)*(g.x-y.x)>(g.y-y.y)*(z.x-y.x)}function be(y){for(var g=0,z=0,V=y.length,$=V-1,oe=void 0,me=void 0;z@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,z={};if(y.replace(g,function($,oe,me,je){var xt=me||je;return z[oe]=xt?xt.toLowerCase():!0,""}),z["max-age"]){var V=parseInt(z["max-age"],10);isNaN(V)?delete z["max-age"]:z["max-age"]=V}return z}var te=null;function ke(y){if(te==null){var g=y.navigator?y.navigator.userAgent:null;te=!!y.safari||!!(g&&(/\b(iPad|iPhone|iPod)\b/.test(g)||g.match("Safari")&&!g.match("Chrome")))}return te}function Ee(y){try{var g=c[y];return g.setItem("_mapbox_test_",1),g.removeItem("_mapbox_test_"),!0}catch(z){return!1}}function Me(y){return c.btoa(encodeURIComponent(y).replace(/%([0-9A-F]{2})/g,function(g,z){return String.fromCharCode(+("0x"+z))}))}function Ne(y){return decodeURIComponent(c.atob(y).split("").map(function(g){return"%"+("00"+g.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Fe=c.performance&&c.performance.now?c.performance.now.bind(c.performance):Date.now.bind(Date),ye=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame||c.msRequestAnimationFrame,Ve=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame||c.msCancelAnimationFrame,ce,Ye,nt={now:Fe,frame:function(g){var z=ye(g);return{cancel:function(){return Ve(z)}}},getImageData:function(g,z){z===void 0&&(z=0);var V=c.document.createElement("canvas"),$=V.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return V.width=g.width,V.height=g.height,$.drawImage(g,0,0,g.width,g.height),$.getImageData(-z,-z,g.width+2*z,g.height+2*z)},resolveURL:function(g){return ce||(ce=c.document.createElement("a")),ce.href=g,ce.href},hardwareConcurrency:c.navigator&&c.navigator.hardwareConcurrency||4,get devicePixelRatio(){return c.devicePixelRatio},get prefersReducedMotion(){return c.matchMedia?(Ye==null&&(Ye=c.matchMedia("(prefers-reduced-motion: reduce)")),Ye.matches):!1}},gt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Nt={supported:!1,testSupport:St},it,Ke=!1,kt,Tt=!1;c.document&&(kt=c.document.createElement("img"),kt.onload=function(){it&&Dt(it),it=null,Tt=!0},kt.onerror=function(){Ke=!0,it=null},kt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function St(y){Ke||!kt||(Tt?Dt(y):it=y)}function Dt(y){var g=y.createTexture();y.bindTexture(y.TEXTURE_2D,g);try{if(y.texImage2D(y.TEXTURE_2D,0,y.RGBA,y.RGBA,y.UNSIGNED_BYTE,kt),y.isContextLost())return;Nt.supported=!0}catch(z){}y.deleteTexture(g),Ke=!0}var Zt="01";function Et(){for(var y="1",g="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",z="",V=0;V<10;V++)z+=g[Math.floor(Math.random()*62)];var $=12*60*60*1e3,oe=[y,Zt,z].join(""),me=Date.now()+$;return{token:oe,tokenExpiresAt:me}}var Ae=function(g,z){this._transformRequestFn=g,this._customAccessToken=z,this._createSkuToken()};Ae.prototype._createSkuToken=function(){var g=Et();this._skuToken=g.token,this._skuTokenExpiresAt=g.tokenExpiresAt},Ae.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Ae.prototype.transformRequest=function(g,z){return this._transformRequestFn?this._transformRequestFn(g,z)||{url:g}:{url:g}},Ae.prototype.normalizeStyleURL=function(g,z){if(!at(g))return g;var V=$e(g);return V.path="/styles/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeGlyphsURL=function(g,z){if(!at(g))return g;var V=$e(g);return V.path="/fonts/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeSourceURL=function(g,z){if(!at(g))return g;var V=$e(g);return V.path="/v4/"+V.authority+".json",V.params.push("secure"),this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeSpriteURL=function(g,z,V,$){var oe=$e(g);return at(g)?(oe.path="/styles/v1"+oe.path+"/sprite"+z+V,this._makeAPIURL(oe,this._customAccessToken||$)):(oe.path+=""+z+V,zt(oe))},Ae.prototype.normalizeTileURL=function(g,z){if(this._isSkuTokenExpired()&&this._createSkuToken(),g&&!at(g))return g;var V=$e(g),$=/(\.(png|jpg)\d*)(?=$)/,oe=/^.+\/v4\//,me=nt.devicePixelRatio>=2||z===512?"@2x":"",je=Nt.supported?".webp":"$1";V.path=V.path.replace($,""+me+je),V.path=V.path.replace(oe,"/"),V.path="/v4"+V.path;var xt=this._customAccessToken||Ue(V.params)||gt.ACCESS_TOKEN;return gt.REQUIRE_ACCESS_TOKEN&&xt&&this._skuToken&&V.params.push("sku="+this._skuToken),this._makeAPIURL(V,xt)},Ae.prototype.canonicalizeTileURL=function(g,z){var V="/v4/",$=/\.[\w]+$/,oe=$e(g);if(!oe.path.match(/(^\/v4\/)/)||!oe.path.match($))return g;var me="mapbox://tiles/";me+=oe.path.replace(V,"");var je=oe.params;return z&&(je=je.filter(function(xt){return!xt.match(/^access_token=/)})),je.length&&(me+="?"+je.join("&")),me},Ae.prototype.canonicalizeTileset=function(g,z){for(var V=z?at(z):!1,$=[],oe=0,me=g.tiles||[];oe=0&&g.params.splice(oe,1)}if($.path!=="/"&&(g.path=""+$.path+g.path),!gt.REQUIRE_ACCESS_TOKEN)return zt(g);if(z=z||gt.ACCESS_TOKEN,!z)throw new Error("An API access token is required to use Mapbox GL. "+V);if(z[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+V);return g.params=g.params.filter(function(me){return me.indexOf("access_token")===-1}),g.params.push("access_token="+z),zt(g)};function at(y){return y.indexOf("mapbox:")===0}var wt=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function vt(y){return wt.test(y)}function st(y){return y.indexOf("sku=")>0&&vt(y)}function Ue(y){for(var g=0,z=y;g=1&&c.localStorage.setItem(z,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},yr.prototype.processRequests=function(g){},yr.prototype.postEvent=function(g,z,V,$){var oe=this;if(gt.EVENTS_URL){var me=$e(gt.EVENTS_URL);me.params.push("access_token="+($||gt.ACCESS_TOKEN||""));var je={event:this.type,created:new Date(g).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:Zt,userId:this.anonId},xt=z?_(je,z):je,Rt={url:zt(me),headers:{"Content-Type":"text/plain"},body:JSON.stringify([xt])};this.pendingRequest=Ir(Rt,function(Xt){oe.pendingRequest=null,V(Xt),oe.saveEventData(),oe.processRequests($)})}},yr.prototype.queueRequest=function(g,z){this.queue.push(g),this.processRequests(z)};var br=function(y){function g(){y.call(this,"map.load"),this.success={},this.skuToken=""}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.postMapLoadEvent=function(V,$,oe,me){this.skuToken=oe,(gt.EVENTS_URL&&me||gt.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(je){return at(je)||vt(je)}))&&this.queueRequest({id:$,timestamp:Date.now()},me)},g.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var oe=this.queue.shift(),me=oe.id,je=oe.timestamp;me&&this.success[me]||(this.anonId||this.fetchEventData(),B(this.anonId)||(this.anonId=P()),this.postEvent(je,{skuToken:this.skuToken},function(xt){xt||me&&($.success[me]=!0)},V))}},g}(yr),Ut=function(y){function g(z){y.call(this,"appUserTurnstile"),this._customAccessToken=z}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.postTurnstileEvent=function(V,$){gt.EVENTS_URL&>.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(oe){return at(oe)||vt(oe)})&&this.queueRequest(Date.now(),$)},g.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var oe=hr(gt.ACCESS_TOKEN),me=oe?oe.u:gt.ACCESS_TOKEN,je=me!==this.eventData.tokenU;B(this.anonId)||(this.anonId=P(),je=!0);var xt=this.queue.shift();if(this.eventData.lastSuccess){var Rt=new Date(this.eventData.lastSuccess),Xt=new Date(xt),xr=(xt-this.eventData.lastSuccess)/(24*60*60*1e3);je=je||xr>=1||xr<-1||Rt.getDate()!==Xt.getDate()}else je=!0;if(!je)return this.processRequests();this.postEvent(xt,{"enabled.telemetry":!1},function(qr){qr||($.eventData.lastSuccess=xt,$.eventData.tokenU=me)},V)}},g}(yr),Ie=new Ut,xe=Ie.postTurnstileEvent.bind(Ie),Oe=new br,Re=Oe.postMapLoadEvent.bind(Oe),De="mapbox-tiles",ct=500,ge=50,fe=1e3*60*7,pe;function dt(){c.caches&&!pe&&(pe=c.caches.open(De))}var It;function Pt(y,g){if(It===void 0)try{new Response(new ReadableStream),It=!0}catch(z){It=!1}It?g(y.body):y.blob().then(g)}function rr(y,g,z){if(dt(),!!pe){var V={status:g.status,statusText:g.statusText,headers:new c.Headers};g.headers.forEach(function(me,je){return V.headers.set(je,me)});var $=de(g.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&V.headers.set("Expires",new Date(z+$["max-age"]*1e3).toUTCString());var oe=new Date(V.headers.get("Expires")).getTime()-z;oeDate.now()&&!z["no-cache"]}var Fr=1/0;function di(y){Fr++,Fr>ge&&(y.getActor().send("enforceCacheSizeLimit",ct),Fr=0)}function Di(y){dt(),pe&&pe.then(function(g){g.keys().then(function(z){for(var V=0;V=200&&z.status<300||z.status===0)&&z.response!==null){var $=z.response;if(y.type==="json")try{$=JSON.parse(z.response)}catch(oe){return g(oe)}g(null,$,z.getResponseHeader("Cache-Control"),z.getResponseHeader("Expires"))}else g(new Gi(z.statusText,z.status,y.url))},z.send(y.body),{cancel:function(){return z.abort()}}}var _r=function(y,g){if(!yt(y.url)){if(c.fetch&&c.Request&&c.AbortController&&c.Request.prototype.hasOwnProperty("signal"))return Vt(y,g);if(Ce()&&self.worker&&self.worker.actor){var z=!0;return self.worker.actor.send("getResource",y,g,void 0,z)}}return Wt(y,g)},Lr=function(y,g){return _r(_(y,{type:"json"}),g)},Ur=function(y,g){return _r(_(y,{type:"arrayBuffer"}),g)},Ir=function(y,g){return _r(_(y,{method:"POST"}),g)};function Gr(y){var g=c.document.createElement("a");return g.href=y,g.protocol===c.document.location.protocol&&g.host===c.document.location.host}var jr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function yi(y,g,z,V){var $=new c.Image,oe=c.URL;$.onload=function(){g(null,$),oe.revokeObjectURL($.src),$.onload=null,c.requestAnimationFrame(function(){$.src=jr})},$.onerror=function(){return g(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var me=new c.Blob([new Uint8Array(y)],{type:"image/png"});$.cacheControl=z,$.expires=V,$.src=y.byteLength?oe.createObjectURL(me):jr}function Ei(y,g){var z=new c.Blob([new Uint8Array(y)],{type:"image/png"});c.createImageBitmap(z).then(function(V){g(null,V)}).catch(function(V){g(new Error("Could not load image because of "+V.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Vi,ti,en=function(){Vi=[],ti=0};en();var Yr=function(y,g){if(Nt.supported&&(y.headers||(y.headers={}),y.headers.accept="image/webp,*/*"),ti>=gt.MAX_PARALLEL_IMAGE_REQUESTS){var z={requestParameters:y,callback:g,cancelled:!1,cancel:function(){this.cancelled=!0}};return Vi.push(z),z}ti++;var V=!1,$=function(){if(!V)for(V=!0,ti--;Vi.length&&ti0||this._oneTimeListeners&&this._oneTimeListeners[g]&&this._oneTimeListeners[g].length>0||this._eventedParent&&this._eventedParent.listens(g)},Ri.prototype.setEventedParent=function(g,z){return this._eventedParent=g,this._eventedParentData=z,this};var xn=8,xi={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},Xr={"*":{type:"source"}},ft=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],tr={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},pr={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},gr={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Zr={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Ai={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Qi={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ni={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Zi=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],aa={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Mn={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Un={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ga={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ma={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},oa={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ka={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},so={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Kr={type:"array",value:"*"},Ia={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},Yo={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},fa={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},kn={type:"array",value:"*",minimum:1},Ta={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},ys=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],uo={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},ls={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},$a={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},fo={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},mn={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},ra={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},wa={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},ws={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Co={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},Po={"*":{type:"string"}},ji={$version:xn,$root:xi,sources:Xr,source:ft,source_vector:tr,source_raster:pr,source_raster_dem:gr,source_geojson:Zr,source_video:Ai,source_image:Qi,layer:ni,layout:Zi,layout_background:aa,layout_fill:Mn,layout_circle:Un,layout_heatmap:Ga,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:ma,layout_symbol:oa,layout_raster:ka,layout_hillshade:so,filter:Kr,filter_operator:Ia,geometry_type:Yo,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:fa,expression:kn,light:Ta,paint:ys,paint_fill:uo,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:ls,paint_circle:$a,paint_heatmap:fo,paint_symbol:mn,paint_raster:ra,paint_hillshade:wa,paint_background:ws,transition:Co,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:Po},gn=function(g,z,V,$){this.message=(g?g+": ":"")+V,$&&(this.identifier=$),z!=null&&z.__line__&&(this.line=z.__line__)};function Ps(y){var g=y.key,z=y.value;return z?[new gn(g,z,"constants have been deprecated as of v8")]:[]}function Ha(y){for(var g=[],z=arguments.length-1;z-- >0;)g[z]=arguments[z+1];for(var V=0,$=g;V<$.length;V+=1){var oe=$[V];for(var me in oe)y[me]=oe[me]}return y}function Sn(y){return y instanceof Number||y instanceof String||y instanceof Boolean?y.valueOf():y}function ao(y){if(Array.isArray(y))return y.map(ao);if(y instanceof Object&&!(y instanceof Number||y instanceof String||y instanceof Boolean)){var g={};for(var z in y)g[z]=ao(y[z]);return g}return Sn(y)}var Ba=function(y){function g(z,V){y.call(this,V),this.message=V,this.key=z}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g}(Error),Ko=function(g,z){z===void 0&&(z=[]),this.parent=g,this.bindings={};for(var V=0,$=z;V<$.length;V+=1){var oe=$[V],me=oe[0],je=oe[1];this.bindings[me]=je}};Ko.prototype.concat=function(g){return new Ko(this,g)},Ko.prototype.get=function(g){if(this.bindings[g])return this.bindings[g];if(this.parent)return this.parent.get(g);throw new Error(g+" not found in scope.")},Ko.prototype.has=function(g){return this.bindings[g]?!0:this.parent?this.parent.has(g):!1};var Qo={kind:"null"},Wi={kind:"number"},Sa={kind:"string"},Qa={kind:"boolean"},vn={kind:"color"},da={kind:"object"},la={kind:"value"},vo={kind:"error"},As={kind:"collator"},ps={kind:"formatted"},co={kind:"resolvedImage"};function mo(y,g){return{kind:"array",itemType:y,N:g}}function No(y){if(y.kind==="array"){var g=No(y.itemType);return typeof y.N=="number"?"array<"+g+", "+y.N+">":y.itemType.kind==="value"?"array":"array<"+g+">"}else return y.kind}var jn=[Qo,Wi,Sa,Qa,vn,ps,da,mo(la),co];function Go(y,g){if(g.kind==="error")return null;if(y.kind==="array"){if(g.kind==="array"&&(g.N===0&&g.itemType.kind==="value"||!Go(y.itemType,g.itemType))&&(typeof y.N!="number"||y.N===g.N))return null}else{if(y.kind===g.kind)return null;if(y.kind==="value")for(var z=0,V=jn;z255?255:Rt}function $(Rt){return Rt<0?0:Rt>1?1:Rt}function oe(Rt){return Rt[Rt.length-1]==="%"?V(parseFloat(Rt)/100*255):V(parseInt(Rt))}function me(Rt){return Rt[Rt.length-1]==="%"?$(parseFloat(Rt)/100):$(parseFloat(Rt))}function je(Rt,Xt,xr){return xr<0?xr+=1:xr>1&&(xr-=1),xr*6<1?Rt+(Xt-Rt)*xr*6:xr*2<1?Xt:xr*3<2?Rt+(Xt-Rt)*(2/3-xr)*6:Rt}function xt(Rt){var Xt=Rt.replace(/ /g,"").toLowerCase();if(Xt in z)return z[Xt].slice();if(Xt[0]==="#"){if(Xt.length===4){var xr=parseInt(Xt.substr(1),16);return xr>=0&&xr<=4095?[(xr&3840)>>4|(xr&3840)>>8,xr&240|(xr&240)>>4,xr&15|(xr&15)<<4,1]:null}else if(Xt.length===7){var xr=parseInt(Xt.substr(1),16);return xr>=0&&xr<=16777215?[(xr&16711680)>>16,(xr&65280)>>8,xr&255,1]:null}return null}var qr=Xt.indexOf("("),Pr=Xt.indexOf(")");if(qr!==-1&&Pr+1===Xt.length){var ai=Xt.substr(0,qr),qi=Xt.substr(qr+1,Pr-(qr+1)).split(","),Wn=1;switch(ai){case"rgba":if(qi.length!==4)return null;Wn=me(qi.pop());case"rgb":return qi.length!==3?null:[oe(qi[0]),oe(qi[1]),oe(qi[2]),Wn];case"hsla":if(qi.length!==4)return null;Wn=me(qi.pop());case"hsl":if(qi.length!==3)return null;var bn=(parseFloat(qi[0])%360+360)%360/360,bo=me(qi[1]),ba=me(qi[2]),_o=ba<=.5?ba*(bo+1):ba+bo-ba*bo,Uo=ba*2-_o;return[V(je(Uo,_o,bn+1/3)*255),V(je(Uo,_o,bn)*255),V(je(Uo,_o,bn-1/3)*255),Wn];default:return null}}return null}try{g.parseCSSColor=xt}catch(Rt){}}),Oa=Ns.parseCSSColor,ha=function(g,z,V,$){$===void 0&&($=1),this.r=g,this.g=z,this.b=V,this.a=$};ha.parse=function(g){if(g){if(g instanceof ha)return g;if(typeof g=="string"){var z=Oa(g);if(z)return new ha(z[0]/255*z[3],z[1]/255*z[3],z[2]/255*z[3],z[3])}}},ha.prototype.toString=function(){var g=this.toArray(),z=g[0],V=g[1],$=g[2],oe=g[3];return"rgba("+Math.round(z)+","+Math.round(V)+","+Math.round($)+","+oe+")"},ha.prototype.toArray=function(){var g=this,z=g.r,V=g.g,$=g.b,oe=g.a;return oe===0?[0,0,0,0]:[z*255/oe,V*255/oe,$*255/oe,oe]},ha.black=new ha(0,0,0,1),ha.white=new ha(1,1,1,1),ha.transparent=new ha(0,0,0,0),ha.red=new ha(1,0,0,1);var Vs=function(g,z,V){g?this.sensitivity=z?"variant":"case":this.sensitivity=z?"accent":"base",this.locale=V,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Vs.prototype.compare=function(g,z){return this.collator.compare(g,z)},Vs.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Ya=function(g,z,V,$,oe){this.text=g,this.image=z,this.scale=V,this.fontStack=$,this.textColor=oe},_n=function(g){this.sections=g};_n.fromString=function(g){return new _n([new Ya(g,null,null,null,null)])},_n.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(g){return g.text.length!==0||g.image&&g.image.name.length!==0})},_n.factory=function(g){return g instanceof _n?g:_n.fromString(g)},_n.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(g){return g.text}).join("")},_n.prototype.serialize=function(){for(var g=["format"],z=0,V=this.sections;z=0&&y<=255&&typeof g=="number"&&g>=0&&g<=255&&typeof z=="number"&&z>=0&&z<=255)){var $=typeof V=="number"?[y,g,z,V]:[y,g,z];return"Invalid rgba value ["+$.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof V=="undefined"||typeof V=="number"&&V>=0&&V<=1?null:"Invalid rgba value ["+[y,g,z,V].join(", ")+"]: 'a' must be between 0 and 1."}function Ra(y){if(y===null)return!0;if(typeof y=="string")return!0;if(typeof y=="boolean")return!0;if(typeof y=="number")return!0;if(y instanceof ha)return!0;if(y instanceof Vs)return!0;if(y instanceof _n)return!0;if(y instanceof Vn)return!0;if(Array.isArray(y)){for(var g=0,z=y;g2){var je=g[1];if(typeof je!="string"||!(je in qn)||je==="object")return z.error('The item type argument of "array" must be one of string, number, boolean',1);me=qn[je],V++}else me=la;var xt;if(g.length>3){if(g[2]!==null&&(typeof g[2]!="number"||g[2]<0||g[2]!==Math.floor(g[2])))return z.error('The length argument to "array" must be a positive integer literal',2);xt=g[2],V++}$=mo(me,xt)}else $=qn[oe];for(var Rt=[];V1)&&z.push($)}}return z.concat(this.args.map(function(oe){return oe.serialize()}))};var Ja=function(g){this.type=ps,this.sections=g};Ja.parse=function(g,z){if(g.length<2)return z.error("Expected at least one argument.");var V=g[1];if(!Array.isArray(V)&&typeof V=="object")return z.error("First argument must be an image or text section.");for(var $=[],oe=!1,me=1;me<=g.length-1;++me){var je=g[me];if(oe&&typeof je=="object"&&!Array.isArray(je)){oe=!1;var xt=null;if(je["font-scale"]&&(xt=z.parse(je["font-scale"],1,Wi),!xt))return null;var Rt=null;if(je["text-font"]&&(Rt=z.parse(je["text-font"],1,mo(Sa)),!Rt))return null;var Xt=null;if(je["text-color"]&&(Xt=z.parse(je["text-color"],1,vn),!Xt))return null;var xr=$[$.length-1];xr.scale=xt,xr.font=Rt,xr.textColor=Xt}else{var qr=z.parse(g[me],1,la);if(!qr)return null;var Pr=qr.type.kind;if(Pr!=="string"&&Pr!=="value"&&Pr!=="null"&&Pr!=="resolvedImage")return z.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");oe=!0,$.push({content:qr,scale:null,font:null,textColor:null})}}return new Ja($)},Ja.prototype.evaluate=function(g){var z=function(V){var $=V.content.evaluate(g);return Xn($)===co?new Ya("",$,null,null,null):new Ya(un($),null,V.scale?V.scale.evaluate(g):null,V.font?V.font.evaluate(g).join(","):null,V.textColor?V.textColor.evaluate(g):null)};return new _n(this.sections.map(z))},Ja.prototype.eachChild=function(g){for(var z=0,V=this.sections;z-1),V},lo.prototype.eachChild=function(g){g(this.input)},lo.prototype.outputDefined=function(){return!1},lo.prototype.serialize=function(){return["image",this.input.serialize()]};var eo={"to-boolean":Qa,"to-color":vn,"to-number":Wi,"to-string":Sa},sa=function(g,z){this.type=g,this.args=z};sa.parse=function(g,z){if(g.length<2)return z.error("Expected at least one argument.");var V=g[0];if((V==="to-boolean"||V==="to-string")&&g.length!==2)return z.error("Expected one argument.");for(var $=eo[V],oe=[],me=1;me4?V="Invalid rbga value "+JSON.stringify(z)+": expected an array containing either three or four numeric values.":V=wo(z[0],z[1],z[2],z[3]),!V))return new ha(z[0]/255,z[1]/255,z[2]/255,z[3])}throw new Ka(V||"Could not parse color from value '"+(typeof z=="string"?z:String(JSON.stringify(z)))+"'")}else if(this.type.kind==="number"){for(var xt=null,Rt=0,Xt=this.args;Rt=g[2]||y[1]<=g[1]||y[3]>=g[3])}function Ws(y,g){var z=Ao(y[0]),V=Dn(y[1]),$=Math.pow(2,g.z);return[Math.round(z*$*yo),Math.round(V*$*yo)]}function Ca(y,g,z){var V=y[0]-g[0],$=y[1]-g[1],oe=y[0]-z[0],me=y[1]-z[1];return V*me-oe*$===0&&V*oe<=0&&$*me<=0}function Es(y,g,z){return g[1]>y[1]!=z[1]>y[1]&&y[0]<(z[0]-g[0])*(y[1]-g[1])/(z[1]-g[1])+g[0]}function Ts(y,g){for(var z=!1,V=0,$=g.length;V<$;V++)for(var oe=g[V],me=0,je=oe.length;me0&&xr<0||Xt<0&&xr>0}function ts(y,g,z,V){var $=[g[0]-y[0],g[1]-y[1]],oe=[V[0]-z[0],V[1]-z[1]];return Wa(oe,$)===0?!1:!!(To(y,g,z,V)&&To(z,V,y,g))}function Wo(y,g,z){for(var V=0,$=z;V<$.length;V+=1)for(var oe=$[V],me=0;mez[2]){var $=V*.5,oe=y[0]-z[0]>$?-V:z[0]-y[0]>$?V:0;oe===0&&(oe=y[0]-z[2]>$?-V:z[2]-y[0]>$?V:0),y[0]+=oe}Jo(g,y)}function za(y){y[0]=y[1]=1/0,y[2]=y[3]=-1/0}function ea(y,g,z,V){for(var $=Math.pow(2,V.z)*yo,oe=[V.x*yo,V.y*yo],me=[],je=0,xt=y;je=0)return!1;var z=!0;return y.eachChild(function(V){z&&!Ma(V,g)&&(z=!1)}),z}var Qs=function(g,z){this.type=z.type,this.name=g,this.boundExpression=z};Qs.parse=function(g,z){if(g.length!==2||typeof g[1]!="string")return z.error("'var' expression requires exactly one string literal argument.");var V=g[1];return z.scope.has(V)?new Qs(V,z.scope.get(V)):z.error('Unknown variable "'+V+'". Make sure "'+V+'" has been bound in an enclosing "let" expression before using it.',1)},Qs.prototype.evaluate=function(g){return this.boundExpression.evaluate(g)},Qs.prototype.eachChild=function(){},Qs.prototype.outputDefined=function(){return!1},Qs.prototype.serialize=function(){return["var",this.name]};var ho=function(g,z,V,$,oe){z===void 0&&(z=[]),$===void 0&&($=new Ko),oe===void 0&&(oe=[]),this.registry=g,this.path=z,this.key=z.map(function(me){return"["+me+"]"}).join(""),this.scope=$,this.errors=oe,this.expectedType=V};ho.prototype.parse=function(g,z,V,$,oe){return oe===void 0&&(oe={}),z?this.concat(z,V,$)._parse(g,oe):this._parse(g,oe)},ho.prototype._parse=function(g,z){(g===null||typeof g=="string"||typeof g=="boolean"||typeof g=="number")&&(g=["literal",g]);function V(Xt,xr,qr){return qr==="assert"?new Eo(xr,[Xt]):qr==="coerce"?new sa(xr,[Xt]):Xt}if(Array.isArray(g)){if(g.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=g[0];if(typeof $!="string")return this.error("Expression name must be a string, but found "+typeof $+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var oe=this.registry[$];if(oe){var me=oe.parse(g,this);if(!me)return null;if(this.expectedType){var je=this.expectedType,xt=me.type;if((je.kind==="string"||je.kind==="number"||je.kind==="boolean"||je.kind==="object"||je.kind==="array")&&xt.kind==="value")me=V(me,je,z.typeAnnotation||"assert");else if((je.kind==="color"||je.kind==="formatted"||je.kind==="resolvedImage")&&(xt.kind==="value"||xt.kind==="string"))me=V(me,je,z.typeAnnotation||"coerce");else if(this.checkSubtype(je,xt))return null}if(!(me instanceof $n)&&me.type.kind!=="resolvedImage"&&gs(me)){var Rt=new Na;try{me=new $n(me.type,me.evaluate(Rt))}catch(Xt){return this.error(Xt.message),null}}return me}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof g=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof g=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof g+" instead.")},ho.prototype.concat=function(g,z,V){var $=typeof g=="number"?this.path.concat(g):this.path,oe=V?this.scope.concat(V):this.scope;return new ho(this.registry,$,z||null,oe,this.errors)},ho.prototype.error=function(g){for(var z=[],V=arguments.length-1;V-- >0;)z[V]=arguments[V+1];var $=""+this.key+z.map(function(oe){return"["+oe+"]"}).join("");this.errors.push(new Ba($,g))},ho.prototype.checkSubtype=function(g,z){var V=Go(g,z);return V&&this.error(V),V};function gs(y){if(y instanceof Qs)return gs(y.boundExpression);if(y instanceof tn&&y.name==="error")return!1;if(y instanceof to)return!1;if(y instanceof Ds)return!1;var g=y instanceof sa||y instanceof Eo,z=!0;return y.eachChild(function(V){g?z=z&&gs(V):z=z&&V instanceof $n}),z?fl(y)&&Ma(y,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Vo(y,g){for(var z=y.length-1,V=0,$=z,oe=0,me,je;V<=$;)if(oe=Math.floor((V+$)/2),me=y[oe],je=y[oe+1],me<=g){if(oe===z||gg)$=oe-1;else throw new Ka("Input is not a number.");return 0}var Do=function(g,z,V){this.type=g,this.input=z,this.labels=[],this.outputs=[];for(var $=0,oe=V;$=je)return z.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Rt);var xr=z.parse(xt,Xt,oe);if(!xr)return null;oe=oe||xr.type,$.push([je,xr])}return new Do(oe,V,$)},Do.prototype.evaluate=function(g){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(g);var $=this.input.evaluate(g);if($<=z[0])return V[0].evaluate(g);var oe=z.length;if($>=z[oe-1])return V[oe-1].evaluate(g);var me=Vo(z,$);return V[me].evaluate(g)},Do.prototype.eachChild=function(g){g(this.input);for(var z=0,V=this.outputs;z0&&g.push(this.labels[z]),g.push(this.outputs[z].serialize());return g};function Lo(y,g,z){return y*(1-z)+g*z}function xs(y,g,z){return new ha(Lo(y.r,g.r,z),Lo(y.g,g.g,z),Lo(y.b,g.b,z),Lo(y.a,g.a,z))}function ks(y,g,z){return y.map(function(V,$){return Lo(V,g[$],z)})}var Ea=Object.freeze({__proto__:null,number:Lo,color:xs,array:ks}),Jn=.95047,Oo=1,rl=1.08883,Gs=4/29,bs=6/29,zs=3*bs*bs,$o=bs*bs*bs,Aa=Math.PI/180,os=180/Math.PI;function _l(y){return y>$o?Math.pow(y,1/3):y/zs+Gs}function Ss(y){return y>bs?y*y*y:zs*(y-Gs)}function po(y){return 255*(y<=.0031308?12.92*y:1.055*Math.pow(y,1/2.4)-.055)}function go(y){return y/=255,y<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function ss(y){var g=go(y.r),z=go(y.g),V=go(y.b),$=_l((.4124564*g+.3575761*z+.1804375*V)/Jn),oe=_l((.2126729*g+.7151522*z+.072175*V)/Oo),me=_l((.0193339*g+.119192*z+.9503041*V)/rl);return{l:116*oe-16,a:500*($-oe),b:200*(oe-me),alpha:y.a}}function qo(y){var g=(y.l+16)/116,z=isNaN(y.a)?g:g+y.a/500,V=isNaN(y.b)?g:g-y.b/200;return g=Oo*Ss(g),z=Jn*Ss(z),V=rl*Ss(V),new ha(po(3.2404542*z-1.5371385*g-.4985314*V),po(-.969266*z+1.8760108*g+.041556*V),po(.0556434*z-.2040259*g+1.0572252*V),y.alpha)}function zo(y,g,z){return{l:Lo(y.l,g.l,z),a:Lo(y.a,g.a,z),b:Lo(y.b,g.b,z),alpha:Lo(y.alpha,g.alpha,z)}}function io(y){var g=ss(y),z=g.l,V=g.a,$=g.b,oe=Math.atan2($,V)*os;return{h:oe<0?oe+360:oe,c:Math.sqrt(V*V+$*$),l:z,alpha:y.a}}function Io(y){var g=y.h*Aa,z=y.c,V=y.l;return qo({l:V,a:Math.cos(g)*z,b:Math.sin(g)*z,alpha:y.alpha})}function Da(y,g,z){var V=g-y;return y+z*(V>180||V<-180?V-360*Math.round(V/360):V)}function vs(y,g,z){return{h:Da(y.h,g.h,z),c:Lo(y.c,g.c,z),l:Lo(y.l,g.l,z),alpha:Lo(y.alpha,g.alpha,z)}}var fs={forward:ss,reverse:qo,interpolate:zo},cl={forward:io,reverse:Io,interpolate:vs},el=Object.freeze({__proto__:null,lab:fs,hcl:cl}),Hs=function(g,z,V,$,oe){this.type=g,this.operator=z,this.interpolation=V,this.input=$,this.labels=[],this.outputs=[];for(var me=0,je=oe;me1}))return z.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:xt}}else return z.error("Unknown interpolation type "+String($[0]),1,0);if(g.length-1<4)return z.error("Expected at least 4 arguments, but found only "+(g.length-1)+".");if((g.length-1)%2!==0)return z.error("Expected an even number of arguments.");if(oe=z.parse(oe,2,Wi),!oe)return null;var Rt=[],Xt=null;V==="interpolate-hcl"||V==="interpolate-lab"?Xt=vn:z.expectedType&&z.expectedType.kind!=="value"&&(Xt=z.expectedType);for(var xr=0;xr=qr)return z.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ai);var Wn=z.parse(Pr,qi,Xt);if(!Wn)return null;Xt=Xt||Wn.type,Rt.push([qr,Wn])}return Xt.kind!=="number"&&Xt.kind!=="color"&&!(Xt.kind==="array"&&Xt.itemType.kind==="number"&&typeof Xt.N=="number")?z.error("Type "+No(Xt)+" is not interpolatable."):new Hs(Xt,V,$,oe,Rt)},Hs.prototype.evaluate=function(g){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(g);var $=this.input.evaluate(g);if($<=z[0])return V[0].evaluate(g);var oe=z.length;if($>=z[oe-1])return V[oe-1].evaluate(g);var me=Vo(z,$),je=z[me],xt=z[me+1],Rt=Hs.interpolationFactor(this.interpolation,$,je,xt),Xt=V[me].evaluate(g),xr=V[me+1].evaluate(g);return this.operator==="interpolate"?Ea[this.type.kind.toLowerCase()](Xt,xr,Rt):this.operator==="interpolate-hcl"?cl.reverse(cl.interpolate(cl.forward(Xt),cl.forward(xr),Rt)):fs.reverse(fs.interpolate(fs.forward(Xt),fs.forward(xr),Rt))},Hs.prototype.eachChild=function(g){g(this.input);for(var z=0,V=this.outputs;z=V.length)throw new Ka("Array index out of bounds: "+z+" > "+(V.length-1)+".");if(z!==Math.floor(z))throw new Ka("Array index must be an integer, but found "+z+" instead.");return V[z]},hl.prototype.eachChild=function(g){g(this.index),g(this.input)},hl.prototype.outputDefined=function(){return!1},hl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Fa=function(g,z){this.type=Qa,this.needle=g,this.haystack=z};Fa.parse=function(g,z){if(g.length!==3)return z.error("Expected 2 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[2],2,la);return!V||!$?null:Ys(V.type,[Qa,Sa,Wi,Qo,la])?new Fa(V,$):z.error("Expected first argument to be of type boolean, string, number or null, but found "+No(V.type)+" instead")},Fa.prototype.evaluate=function(g){var z=this.needle.evaluate(g),V=this.haystack.evaluate(g);if(!V)return!1;if(!qs(z,["boolean","string","number","null"]))throw new Ka("Expected first argument to be of type boolean, string, number or null, but found "+No(Xn(z))+" instead.");if(!qs(V,["string","array"]))throw new Ka("Expected second argument to be of type array or string, but found "+No(Xn(V))+" instead.");return V.indexOf(z)>=0},Fa.prototype.eachChild=function(g){g(this.needle),g(this.haystack)},Fa.prototype.outputDefined=function(){return!0},Fa.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ms=function(g,z,V){this.type=Wi,this.needle=g,this.haystack=z,this.fromIndex=V};Ms.parse=function(g,z){if(g.length<=2||g.length>=5)return z.error("Expected 3 or 4 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[2],2,la);if(!V||!$)return null;if(!Ys(V.type,[Qa,Sa,Wi,Qo,la]))return z.error("Expected first argument to be of type boolean, string, number or null, but found "+No(V.type)+" instead");if(g.length===4){var oe=z.parse(g[3],3,Wi);return oe?new Ms(V,$,oe):null}else return new Ms(V,$)},Ms.prototype.evaluate=function(g){var z=this.needle.evaluate(g),V=this.haystack.evaluate(g);if(!qs(z,["boolean","string","number","null"]))throw new Ka("Expected first argument to be of type boolean, string, number or null, but found "+No(Xn(z))+" instead.");if(!qs(V,["string","array"]))throw new Ka("Expected second argument to be of type array or string, but found "+No(Xn(V))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(g);return V.indexOf(z,$)}return V.indexOf(z)},Ms.prototype.eachChild=function(g){g(this.needle),g(this.haystack),this.fromIndex&&g(this.fromIndex)},Ms.prototype.outputDefined=function(){return!1},Ms.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var g=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),g]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var jo=function(g,z,V,$,oe,me){this.inputType=g,this.type=z,this.input=V,this.cases=$,this.outputs=oe,this.otherwise=me};jo.parse=function(g,z){if(g.length<5)return z.error("Expected at least 4 arguments, but found only "+(g.length-1)+".");if(g.length%2!==1)return z.error("Expected an even number of arguments.");var V,$;z.expectedType&&z.expectedType.kind!=="value"&&($=z.expectedType);for(var oe={},me=[],je=2;jeNumber.MAX_SAFE_INTEGER)return Xt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Pr=="number"&&Math.floor(Pr)!==Pr)return Xt.error("Numeric branch labels must be integer values.");if(!V)V=Xn(Pr);else if(Xt.checkSubtype(V,Xn(Pr)))return null;if(typeof oe[String(Pr)]!="undefined")return Xt.error("Branch labels must be unique.");oe[String(Pr)]=me.length}var ai=z.parse(Rt,je,$);if(!ai)return null;$=$||ai.type,me.push(ai)}var qi=z.parse(g[1],1,la);if(!qi)return null;var Wn=z.parse(g[g.length-1],g.length-1,$);return!Wn||qi.type.kind!=="value"&&z.concat(1).checkSubtype(V,qi.type)?null:new jo(V,$,qi,oe,me,Wn)},jo.prototype.evaluate=function(g){var z=this.input.evaluate(g),V=Xn(z)===this.inputType&&this.outputs[this.cases[z]]||this.otherwise;return V.evaluate(g)},jo.prototype.eachChild=function(g){g(this.input),this.outputs.forEach(g),g(this.otherwise)},jo.prototype.outputDefined=function(){return this.outputs.every(function(g){return g.outputDefined()})&&this.otherwise.outputDefined()},jo.prototype.serialize=function(){for(var g=this,z=["match",this.input.serialize()],V=Object.keys(this.cases).sort(),$=[],oe={},me=0,je=V;me=5)return z.error("Expected 3 or 4 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[2],2,Wi);if(!V||!$)return null;if(!Ys(V.type,[mo(la),Sa,la]))return z.error("Expected first argument to be of type array or string, but found "+No(V.type)+" instead");if(g.length===4){var oe=z.parse(g[3],3,Wi);return oe?new Is(V.type,V,$,oe):null}else return new Is(V.type,V,$)},Is.prototype.evaluate=function(g){var z=this.input.evaluate(g),V=this.beginIndex.evaluate(g);if(!qs(z,["string","array"]))throw new Ka("Expected first argument to be of type array or string, but found "+No(Xn(z))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(g);return z.slice(V,$)}return z.slice(V)},Is.prototype.eachChild=function(g){g(this.input),g(this.beginIndex),this.endIndex&&g(this.endIndex)},Is.prototype.outputDefined=function(){return!1},Is.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var g=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),g]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Bs(y,g){return y==="=="||y==="!="?g.kind==="boolean"||g.kind==="string"||g.kind==="number"||g.kind==="null"||g.kind==="value":g.kind==="string"||g.kind==="number"||g.kind==="value"}function At(y,g,z){return g===z}function Gt(y,g,z){return g!==z}function wr(y,g,z){return gz}function Or(y,g,z){return g<=z}function gi(y,g,z){return g>=z}function Ti(y,g,z,V){return V.compare(g,z)===0}function ki(y,g,z,V){return!Ti(y,g,z,V)}function Ji(y,g,z,V){return V.compare(g,z)<0}function Fn(y,g,z,V){return V.compare(g,z)>0}function Pi(y,g,z,V){return V.compare(g,z)<=0}function hi(y,g,z,V){return V.compare(g,z)>=0}function Li(y,g,z){var V=y!=="=="&&y!=="!=";return function(){function $(oe,me,je){this.type=Qa,this.lhs=oe,this.rhs=me,this.collator=je,this.hasUntypedArgument=oe.type.kind==="value"||me.type.kind==="value"}return $.parse=function(me,je){if(me.length!==3&&me.length!==4)return je.error("Expected two or three arguments.");var xt=me[0],Rt=je.parse(me[1],1,la);if(!Rt)return null;if(!Bs(xt,Rt.type))return je.concat(1).error('"'+xt+`" comparisons are not supported for type '`+No(Rt.type)+"'.");var Xt=je.parse(me[2],2,la);if(!Xt)return null;if(!Bs(xt,Xt.type))return je.concat(2).error('"'+xt+`" comparisons are not supported for type '`+No(Xt.type)+"'.");if(Rt.type.kind!==Xt.type.kind&&Rt.type.kind!=="value"&&Xt.type.kind!=="value")return je.error("Cannot compare types '"+No(Rt.type)+"' and '"+No(Xt.type)+"'.");V&&(Rt.type.kind==="value"&&Xt.type.kind!=="value"?Rt=new Eo(Xt.type,[Rt]):Rt.type.kind!=="value"&&Xt.type.kind==="value"&&(Xt=new Eo(Rt.type,[Xt])));var xr=null;if(me.length===4){if(Rt.type.kind!=="string"&&Xt.type.kind!=="string"&&Rt.type.kind!=="value"&&Xt.type.kind!=="value")return je.error("Cannot use collator to compare non-string types.");if(xr=je.parse(me[3],3,As),!xr)return null}return new $(Rt,Xt,xr)},$.prototype.evaluate=function(me){var je=this.lhs.evaluate(me),xt=this.rhs.evaluate(me);if(V&&this.hasUntypedArgument){var Rt=Xn(je),Xt=Xn(xt);if(Rt.kind!==Xt.kind||!(Rt.kind==="string"||Rt.kind==="number"))throw new Ka('Expected arguments for "'+y+'" to be (string, string) or (number, number), but found ('+Rt.kind+", "+Xt.kind+") instead.")}if(this.collator&&!V&&this.hasUntypedArgument){var xr=Xn(je),qr=Xn(xt);if(xr.kind!=="string"||qr.kind!=="string")return g(me,je,xt)}return this.collator?z(me,je,xt,this.collator.evaluate(me)):g(me,je,xt)},$.prototype.eachChild=function(me){me(this.lhs),me(this.rhs),this.collator&&me(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var me=[y];return this.eachChild(function(je){me.push(je.serialize())}),me},$}()}var Si=Li("==",At,Ti),Gn=Li("!=",Gt,ki),ta=Li("<",wr,Ji),ya=Li(">",mr,Fn),ia=Li("<=",Or,Pi),pa=Li(">=",gi,hi),va=function(g,z,V,$,oe){this.type=Sa,this.number=g,this.locale=z,this.currency=V,this.minFractionDigits=$,this.maxFractionDigits=oe};va.parse=function(g,z){if(g.length!==3)return z.error("Expected two arguments.");var V=z.parse(g[1],1,Wi);if(!V)return null;var $=g[2];if(typeof $!="object"||Array.isArray($))return z.error("NumberFormat options argument must be an object.");var oe=null;if($.locale&&(oe=z.parse($.locale,1,Sa),!oe))return null;var me=null;if($.currency&&(me=z.parse($.currency,1,Sa),!me))return null;var je=null;if($["min-fraction-digits"]&&(je=z.parse($["min-fraction-digits"],1,Wi),!je))return null;var xt=null;return $["max-fraction-digits"]&&(xt=z.parse($["max-fraction-digits"],1,Wi),!xt)?null:new va(V,oe,me,je,xt)},va.prototype.evaluate=function(g){return new Intl.NumberFormat(this.locale?this.locale.evaluate(g):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(g):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(g):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(g):void 0}).format(this.number.evaluate(g))},va.prototype.eachChild=function(g){g(this.number),this.locale&&g(this.locale),this.currency&&g(this.currency),this.minFractionDigits&&g(this.minFractionDigits),this.maxFractionDigits&&g(this.maxFractionDigits)},va.prototype.outputDefined=function(){return!1},va.prototype.serialize=function(){var g={};return this.locale&&(g.locale=this.locale.serialize()),this.currency&&(g.currency=this.currency.serialize()),this.minFractionDigits&&(g["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(g["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),g]};var zn=function(g){this.type=Wi,this.input=g};zn.parse=function(g,z){if(g.length!==2)return z.error("Expected 1 argument, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1);return V?V.type.kind!=="array"&&V.type.kind!=="string"&&V.type.kind!=="value"?z.error("Expected argument of type string or array, but found "+No(V.type)+" instead."):new zn(V):null},zn.prototype.evaluate=function(g){var z=this.input.evaluate(g);if(typeof z=="string")return z.length;if(Array.isArray(z))return z.length;throw new Ka("Expected value to be of type string or array, but found "+No(Xn(z))+" instead.")},zn.prototype.eachChild=function(g){g(this.input)},zn.prototype.outputDefined=function(){return!1},zn.prototype.serialize=function(){var g=["length"];return this.eachChild(function(z){g.push(z.serialize())}),g};var is={"==":Si,"!=":Gn,">":ya,"<":ta,">=":pa,"<=":ia,array:Eo,at:hl,boolean:Eo,case:Rs,coalesce:tl,collator:to,format:Ja,image:lo,in:Fa,"index-of":Ms,interpolate:Hs,"interpolate-hcl":Hs,"interpolate-lab":Hs,length:zn,let:Fs,literal:$n,match:jo,number:Eo,"number-format":va,object:Eo,slice:Is,step:Do,string:Eo,"to-boolean":sa,"to-color":sa,"to-number":sa,"to-string":sa,var:Qs,within:Ds};function Cs(y,g){var z=g[0],V=g[1],$=g[2],oe=g[3];z=z.evaluate(y),V=V.evaluate(y),$=$.evaluate(y);var me=oe?oe.evaluate(y):1,je=wo(z,V,$,me);if(je)throw new Ka(je);return new ha(z/255*me,V/255*me,$/255*me,me)}function Ks(y,g){return y in g}function dl(y,g){var z=g[y];return typeof z=="undefined"?null:z}function xl(y,g,z,V){for(;z<=V;){var $=z+V>>1;if(g[$]===y)return!0;g[$]>y?V=$-1:z=$+1}return!1}function Ol(y){return{type:y}}tn.register(is,{error:[vo,[Sa],function(y,g){var z=g[0];throw new Ka(z.evaluate(y))}],typeof:[Sa,[la],function(y,g){var z=g[0];return No(Xn(z.evaluate(y)))}],"to-rgba":[mo(Wi,4),[vn],function(y,g){var z=g[0];return z.evaluate(y).toArray()}],rgb:[vn,[Wi,Wi,Wi],Cs],rgba:[vn,[Wi,Wi,Wi,Wi],Cs],has:{type:Qa,overloads:[[[Sa],function(y,g){var z=g[0];return Ks(z.evaluate(y),y.properties())}],[[Sa,da],function(y,g){var z=g[0],V=g[1];return Ks(z.evaluate(y),V.evaluate(y))}]]},get:{type:la,overloads:[[[Sa],function(y,g){var z=g[0];return dl(z.evaluate(y),y.properties())}],[[Sa,da],function(y,g){var z=g[0],V=g[1];return dl(z.evaluate(y),V.evaluate(y))}]]},"feature-state":[la,[Sa],function(y,g){var z=g[0];return dl(z.evaluate(y),y.featureState||{})}],properties:[da,[],function(y){return y.properties()}],"geometry-type":[Sa,[],function(y){return y.geometryType()}],id:[la,[],function(y){return y.id()}],zoom:[Wi,[],function(y){return y.globals.zoom}],"heatmap-density":[Wi,[],function(y){return y.globals.heatmapDensity||0}],"line-progress":[Wi,[],function(y){return y.globals.lineProgress||0}],accumulated:[la,[],function(y){return y.globals.accumulated===void 0?null:y.globals.accumulated}],"+":[Wi,Ol(Wi),function(y,g){for(var z=0,V=0,$=g;V<$.length;V+=1){var oe=$[V];z+=oe.evaluate(y)}return z}],"*":[Wi,Ol(Wi),function(y,g){for(var z=1,V=0,$=g;V<$.length;V+=1){var oe=$[V];z*=oe.evaluate(y)}return z}],"-":{type:Wi,overloads:[[[Wi,Wi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)-V.evaluate(y)}],[[Wi],function(y,g){var z=g[0];return-z.evaluate(y)}]]},"/":[Wi,[Wi,Wi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)/V.evaluate(y)}],"%":[Wi,[Wi,Wi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)%V.evaluate(y)}],ln2:[Wi,[],function(){return Math.LN2}],pi:[Wi,[],function(){return Math.PI}],e:[Wi,[],function(){return Math.E}],"^":[Wi,[Wi,Wi],function(y,g){var z=g[0],V=g[1];return Math.pow(z.evaluate(y),V.evaluate(y))}],sqrt:[Wi,[Wi],function(y,g){var z=g[0];return Math.sqrt(z.evaluate(y))}],log10:[Wi,[Wi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))/Math.LN10}],ln:[Wi,[Wi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))}],log2:[Wi,[Wi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))/Math.LN2}],sin:[Wi,[Wi],function(y,g){var z=g[0];return Math.sin(z.evaluate(y))}],cos:[Wi,[Wi],function(y,g){var z=g[0];return Math.cos(z.evaluate(y))}],tan:[Wi,[Wi],function(y,g){var z=g[0];return Math.tan(z.evaluate(y))}],asin:[Wi,[Wi],function(y,g){var z=g[0];return Math.asin(z.evaluate(y))}],acos:[Wi,[Wi],function(y,g){var z=g[0];return Math.acos(z.evaluate(y))}],atan:[Wi,[Wi],function(y,g){var z=g[0];return Math.atan(z.evaluate(y))}],min:[Wi,Ol(Wi),function(y,g){return Math.min.apply(Math,g.map(function(z){return z.evaluate(y)}))}],max:[Wi,Ol(Wi),function(y,g){return Math.max.apply(Math,g.map(function(z){return z.evaluate(y)}))}],abs:[Wi,[Wi],function(y,g){var z=g[0];return Math.abs(z.evaluate(y))}],round:[Wi,[Wi],function(y,g){var z=g[0],V=z.evaluate(y);return V<0?-Math.round(-V):Math.round(V)}],floor:[Wi,[Wi],function(y,g){var z=g[0];return Math.floor(z.evaluate(y))}],ceil:[Wi,[Wi],function(y,g){var z=g[0];return Math.ceil(z.evaluate(y))}],"filter-==":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1];return y.properties()[z.value]===V.value}],"filter-id-==":[Qa,[la],function(y,g){var z=g[0];return y.id()===z.value}],"filter-type-==":[Qa,[Sa],function(y,g){var z=g[0];return y.geometryType()===z.value}],"filter-<":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$>oe}],"filter-id->":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V>$}],"filter-<=":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$<=oe}],"filter-id-<=":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V<=$}],"filter->=":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$>=oe}],"filter-id->=":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V>=$}],"filter-has":[Qa,[la],function(y,g){var z=g[0];return z.value in y.properties()}],"filter-has-id":[Qa,[],function(y){return y.id()!==null&&y.id()!==void 0}],"filter-type-in":[Qa,[mo(Sa)],function(y,g){var z=g[0];return z.value.indexOf(y.geometryType())>=0}],"filter-id-in":[Qa,[mo(la)],function(y,g){var z=g[0];return z.value.indexOf(y.id())>=0}],"filter-in-small":[Qa,[Sa,mo(la)],function(y,g){var z=g[0],V=g[1];return V.value.indexOf(y.properties()[z.value])>=0}],"filter-in-large":[Qa,[Sa,mo(la)],function(y,g){var z=g[0],V=g[1];return xl(y.properties()[z.value],V.value,0,V.value.length-1)}],all:{type:Qa,overloads:[[[Qa,Qa],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)&&V.evaluate(y)}],[Ol(Qa),function(y,g){for(var z=0,V=g;z-1}function ja(y){return!!y.expression&&y.expression.interpolated}function ns(y){return y instanceof Number?"number":y instanceof String?"string":y instanceof Boolean?"boolean":Array.isArray(y)?"array":y===null?"null":typeof y}function Js(y){return typeof y=="object"&&y!==null&&!Array.isArray(y)}function cs(y){return y}function sl(y,g){var z=g.type==="color",V=y.stops&&typeof y.stops[0][0]=="object",$=V||y.property!==void 0,oe=V||!$,me=y.type||(ja(g)?"exponential":"interval");if(z&&(y=Ha({},y),y.stops&&(y.stops=y.stops.map(function(Tl){return[Tl[0],ha.parse(Tl[1])]})),y.default?y.default=ha.parse(y.default):y.default=ha.parse(g.default)),y.colorSpace&&y.colorSpace!=="rgb"&&!el[y.colorSpace])throw new Error("Unknown color space: "+y.colorSpace);var je,xt,Rt;if(me==="exponential")je=Ml;else if(me==="interval")je=zl;else if(me==="categorical"){je=il,xt=Object.create(null);for(var Xt=0,xr=y.stops;Xt=y.stops[V-1][0])return y.stops[V-1][1];var $=Vo(y.stops.map(function(oe){return oe[0]}),z);return y.stops[$][1]}function Ml(y,g,z){var V=y.base!==void 0?y.base:1;if(ns(z)!=="number")return ll(y.default,g.default);var $=y.stops.length;if($===1||z<=y.stops[0][0])return y.stops[0][1];if(z>=y.stops[$-1][0])return y.stops[$-1][1];var oe=Vo(y.stops.map(function(xr){return xr[0]}),z),me=Al(z,V,y.stops[oe][0],y.stops[oe+1][0]),je=y.stops[oe][1],xt=y.stops[oe+1][1],Rt=Ea[g.type]||cs;if(y.colorSpace&&y.colorSpace!=="rgb"){var Xt=el[y.colorSpace];Rt=function(xr,qr){return Xt.reverse(Xt.interpolate(Xt.forward(xr),Xt.forward(qr),me))}}return typeof je.evaluate=="function"?{evaluate:function(){for(var qr=[],Pr=arguments.length;Pr--;)qr[Pr]=arguments[Pr];var ai=je.evaluate.apply(void 0,qr),qi=xt.evaluate.apply(void 0,qr);if(!(ai===void 0||qi===void 0))return Rt(ai,qi,me)}}:Rt(je,xt,me)}function Rl(y,g,z){return g.type==="color"?z=ha.parse(z):g.type==="formatted"?z=_n.fromString(z.toString()):g.type==="resolvedImage"?z=Vn.fromString(z.toString()):ns(z)!==g.type&&(g.type!=="enum"||!g.values[z])&&(z=void 0),ll(z,y.default,g.default)}function Al(y,g,z,V){var $=V-z,oe=y-z;return $===0?0:g===1?oe/$:(Math.pow(g,oe)-1)/(Math.pow(g,$)-1)}var Ll=function(g,z){this.expression=g,this._warningHistory={},this._evaluator=new Na,this._defaultValue=z?ee(z):null,this._enumValues=z&&z.type==="enum"?z.values:null};Ll.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,me){return this._evaluator.globals=g,this._evaluator.feature=z,this._evaluator.featureState=V,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=me,this.expression.evaluate(this._evaluator)},Ll.prototype.evaluate=function(g,z,V,$,oe,me){this._evaluator.globals=g,this._evaluator.feature=z||null,this._evaluator.featureState=V||null,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=me||null;try{var je=this.expression.evaluate(this._evaluator);if(je==null||typeof je=="number"&&je!==je)return this._defaultValue;if(this._enumValues&&!(je in this._enumValues))throw new Ka("Expected value to be one of "+Object.keys(this._enumValues).map(function(xt){return JSON.stringify(xt)}).join(", ")+", but found "+JSON.stringify(je)+" instead.");return je}catch(xt){return this._warningHistory[xt.message]||(this._warningHistory[xt.message]=!0,typeof console!="undefined"&&console.warn(xt.message)),this._defaultValue}};function ms(y){return Array.isArray(y)&&y.length>0&&typeof y[0]=="string"&&y[0]in is}function Os(y,g){var z=new ho(is,[],g?Q(g):void 0),V=z.parse(y,void 0,void 0,void 0,g&&g.type==="string"?{typeAnnotation:"coerce"}:void 0);return V?bl(new Ll(V,g)):eu(z.errors)}var Xl=function(g,z){this.kind=g,this._styleExpression=z,this.isStateDependent=g!=="constant"&&!as(z.expression)};Xl.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,me){return this._styleExpression.evaluateWithoutErrorHandling(g,z,V,$,oe,me)},Xl.prototype.evaluate=function(g,z,V,$,oe,me){return this._styleExpression.evaluate(g,z,V,$,oe,me)};var Gl=function(g,z,V,$){this.kind=g,this.zoomStops=V,this._styleExpression=z,this.isStateDependent=g!=="camera"&&!as(z.expression),this.interpolationType=$};Gl.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,me){return this._styleExpression.evaluateWithoutErrorHandling(g,z,V,$,oe,me)},Gl.prototype.evaluate=function(g,z,V,$,oe,me){return this._styleExpression.evaluate(g,z,V,$,oe,me)},Gl.prototype.interpolationFactor=function(g,z,V){return this.interpolationType?Hs.interpolationFactor(this.interpolationType,g,z,V):0};function Ul(y,g){if(y=Os(y,g),y.result==="error")return y;var z=y.value.expression,V=fl(z);if(!V&&!Zl(g))return eu([new Ba("","data expressions not supported")]);var $=Ma(z,["zoom"]);if(!$&&!Vl(g))return eu([new Ba("","zoom expressions not supported")]);var oe=q(z);if(!oe&&!$)return eu([new Ba("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(oe instanceof Ba)return eu([oe]);if(oe instanceof Hs&&!ja(g))return eu([new Ba("",'"interpolate" expressions cannot be used with this property')]);if(!oe)return bl(V?new Xl("constant",y.value):new Xl("source",y.value));var me=oe instanceof Hs?oe.interpolation:void 0;return bl(V?new Gl("camera",y.value,oe.labels,me):new Gl("composite",y.value,oe.labels,me))}var le=function(g,z){this._parameters=g,this._specification=z,Ha(this,sl(this._parameters,this._specification))};le.deserialize=function(g){return new le(g._parameters,g._specification)},le.serialize=function(g){return{_parameters:g._parameters,_specification:g._specification}};function w(y,g){if(Js(y))return new le(y,g);if(ms(y)){var z=Ul(y,g);if(z.result==="error")throw new Error(z.value.map(function($){return $.key+": "+$.message}).join(", "));return z.value}else{var V=y;return typeof y=="string"&&g.type==="color"&&(V=ha.parse(y)),{kind:"constant",evaluate:function(){return V}}}}function q(y){var g=null;if(y instanceof Fs)g=q(y.result);else if(y instanceof tl)for(var z=0,V=y.args;zV.maximum?[new gn(g,z,z+" is greater than the maximum value "+V.maximum)]:[]}function mt(y){var g=y.valueSpec,z=Sn(y.value.type),V,$={},oe,me,je=z!=="categorical"&&y.value.property===void 0,xt=!je,Rt=ns(y.value.stops)==="array"&&ns(y.value.stops[0])==="array"&&ns(y.value.stops[0][0])==="object",Xt=ue({key:y.key,value:y.value,valueSpec:y.styleSpec.function,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{stops:xr,default:ai}});return z==="identity"&&je&&Xt.push(new gn(y.key,y.value,'missing required property "property"')),z!=="identity"&&!y.value.stops&&Xt.push(new gn(y.key,y.value,'missing required property "stops"')),z==="exponential"&&y.valueSpec.expression&&!ja(y.valueSpec)&&Xt.push(new gn(y.key,y.value,"exponential functions not supported")),y.styleSpec.$version>=8&&(xt&&!Zl(y.valueSpec)?Xt.push(new gn(y.key,y.value,"property functions not supported")):je&&!Vl(y.valueSpec)&&Xt.push(new gn(y.key,y.value,"zoom functions not supported"))),(z==="categorical"||Rt)&&y.value.property===void 0&&Xt.push(new gn(y.key,y.value,'"property" property is required')),Xt;function xr(qi){if(z==="identity")return[new gn(qi.key,qi.value,'identity function may not have a "stops" property')];var Wn=[],bn=qi.value;return Wn=Wn.concat(Ge({key:qi.key,value:bn,valueSpec:qi.valueSpec,style:qi.style,styleSpec:qi.styleSpec,arrayElementValidator:qr})),ns(bn)==="array"&&bn.length===0&&Wn.push(new gn(qi.key,bn,"array must have at least one stop")),Wn}function qr(qi){var Wn=[],bn=qi.value,bo=qi.key;if(ns(bn)!=="array")return[new gn(bo,bn,"array expected, "+ns(bn)+" found")];if(bn.length!==2)return[new gn(bo,bn,"array length 2 expected, length "+bn.length+" found")];if(Rt){if(ns(bn[0])!=="object")return[new gn(bo,bn,"object expected, "+ns(bn[0])+" found")];if(bn[0].zoom===void 0)return[new gn(bo,bn,"object stop key must have zoom")];if(bn[0].value===void 0)return[new gn(bo,bn,"object stop key must have value")];if(me&&me>Sn(bn[0].zoom))return[new gn(bo,bn[0].zoom,"stop zoom values must appear in ascending order")];Sn(bn[0].zoom)!==me&&(me=Sn(bn[0].zoom),oe=void 0,$={}),Wn=Wn.concat(ue({key:bo+"[0]",value:bn[0],valueSpec:{zoom:{}},style:qi.style,styleSpec:qi.styleSpec,objectElementValidators:{zoom:et,value:Pr}}))}else Wn=Wn.concat(Pr({key:bo+"[0]",value:bn[0],valueSpec:{},style:qi.style,styleSpec:qi.styleSpec},bn));return ms(ao(bn[1]))?Wn.concat([new gn(bo+"[1]",bn[1],"expressions are not allowed in function stops.")]):Wn.concat(Sl({key:bo+"[1]",value:bn[1],valueSpec:g,style:qi.style,styleSpec:qi.styleSpec}))}function Pr(qi,Wn){var bn=ns(qi.value),bo=Sn(qi.value),ba=qi.value!==null?qi.value:Wn;if(!V)V=bn;else if(bn!==V)return[new gn(qi.key,ba,bn+" stop domain type must match previous stop domain type "+V)];if(bn!=="number"&&bn!=="string"&&bn!=="boolean")return[new gn(qi.key,ba,"stop domain value must be a number, string, or boolean")];if(bn!=="number"&&z!=="categorical"){var _o="number expected, "+bn+" found";return Zl(g)&&z===void 0&&(_o+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new gn(qi.key,ba,_o)]}return z==="categorical"&&bn==="number"&&(!isFinite(bo)||Math.floor(bo)!==bo)?[new gn(qi.key,ba,"integer expected, found "+bo)]:z!=="categorical"&&bn==="number"&&oe!==void 0&&bo=2&&y[1]!=="$id"&&y[1]!=="$type";case"in":return y.length>=3&&(typeof y[1]!="string"||Array.isArray(y[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return y.length!==3||Array.isArray(y[1])||Array.isArray(y[2]);case"any":case"all":for(var g=0,z=y.slice(1);gg?1:0}function He(y){if(!Array.isArray(y))return!1;if(y[0]==="within")return!0;for(var g=1;g"||g==="<="||g===">="?tt(y[1],y[2],g):g==="any"?pt(y.slice(1)):g==="all"?["all"].concat(y.slice(1).map(lt)):g==="none"?["all"].concat(y.slice(1).map(lt).map(fr)):g==="in"?Ht(y[1],y.slice(2)):g==="!in"?fr(Ht(y[1],y.slice(2))):g==="has"?nr(y[1]):g==="!has"?fr(nr(y[1])):g==="within"?y:!0;return z}function tt(y,g,z){switch(y){case"$type":return["filter-type-"+z,g];case"$id":return["filter-id-"+z,g];default:return["filter-"+z,y,g]}}function pt(y){return["any"].concat(y.map(lt))}function Ht(y,g){if(g.length===0)return!1;switch(y){case"$type":return["filter-type-in",["literal",g]];case"$id":return["filter-id-in",["literal",g]];default:return g.length>200&&!g.some(function(z){return typeof z!=typeof g[0]})?["filter-in-large",y,["literal",g.sort(qe)]]:["filter-in-small",y,["literal",g]]}}function nr(y){switch(y){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",y]}}function fr(y){return["!",y]}function Ar(y){return Vr(ao(y.value))?Ft(Ha({},y,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Rr(y)}function Rr(y){var g=y.value,z=y.key;if(ns(g)!=="array")return[new gn(z,g,"array expected, "+ns(g)+" found")];var V=y.styleSpec,$,oe=[];if(g.length<1)return[new gn(z,g,"filter array must have at least 1 element")];switch(oe=oe.concat(kr({key:z+"[0]",value:g[0],valueSpec:V.filter_operator,style:y.style,styleSpec:y.styleSpec})),Sn(g[0])){case"<":case"<=":case">":case">=":g.length>=2&&Sn(g[1])==="$type"&&oe.push(new gn(z,g,'"$type" cannot be use with operator "'+g[0]+'"'));case"==":case"!=":g.length!==3&&oe.push(new gn(z,g,'filter array for operator "'+g[0]+'" must have 3 elements'));case"in":case"!in":g.length>=2&&($=ns(g[1]),$!=="string"&&oe.push(new gn(z+"[1]",g[1],"string expected, "+$+" found")));for(var me=2;me=Xt[Pr+0]&&V>=Xt[Pr+1])?(me[qr]=!0,oe.push(Rt[qr])):me[qr]=!1}}},lf.prototype._forEachCell=function(y,g,z,V,$,oe,me,je){for(var xt=this._convertToCellCoord(y),Rt=this._convertToCellCoord(g),Xt=this._convertToCellCoord(z),xr=this._convertToCellCoord(V),qr=xt;qr<=Xt;qr++)for(var Pr=Rt;Pr<=xr;Pr++){var ai=this.d*Pr+qr;if(!(je&&!je(this._convertFromCellCoord(qr),this._convertFromCellCoord(Pr),this._convertFromCellCoord(qr+1),this._convertFromCellCoord(Pr+1)))&&$.call(this,y,g,z,V,ai,oe,me,je))return}},lf.prototype._convertFromCellCoord=function(y){return(y-this.padding)/this.scale},lf.prototype._convertToCellCoord=function(y){return Math.max(0,Math.min(this.d-1,Math.floor(y*this.scale)+this.padding))},lf.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var y=this.cells,g=Xu+this.cells.length+1+1,z=0,V=0;V=0)){var xr=y[Xt];Rt[Xt]=tf[xt].shallow.indexOf(Xt)>=0?xr:Qe(xr,g)}y instanceof Error&&(Rt.message=y.message)}if(Rt.$name)throw new Error("$name property is reserved for worker serialization logic.");return xt!=="Object"&&(Rt.$name=xt),Rt}throw new Error("can't serialize object of type "+typeof y)}function ot(y){if(y==null||typeof y=="boolean"||typeof y=="number"||typeof y=="string"||y instanceof Boolean||y instanceof Number||y instanceof String||y instanceof Date||y instanceof RegExp||ze(y)||Xe(y)||ArrayBuffer.isView(y)||y instanceof xf)return y;if(Array.isArray(y))return y.map(ot);if(typeof y=="object"){var g=y.$name||"Object",z=tf[g],V=z.klass;if(!V)throw new Error("can't deserialize unregistered class "+g);if(V.deserialize)return V.deserialize(y);for(var $=Object.create(V.prototype),oe=0,me=Object.keys(y);oe=0?xt:ot(xt)}}return $}throw new Error("can't deserialize object of type "+typeof y)}var jt=function(){this.first=!0};jt.prototype.update=function(g,z){var V=Math.floor(g);return this.first?(this.first=!1,this.lastIntegerZoom=V,this.lastIntegerZoomTime=0,this.lastZoom=g,this.lastFloorZoom=V,!0):(this.lastFloorZoom>V?(this.lastIntegerZoom=V+1,this.lastIntegerZoomTime=z):this.lastFloorZoom=128&&y<=255},Arabic:function(y){return y>=1536&&y<=1791},"Arabic Supplement":function(y){return y>=1872&&y<=1919},"Arabic Extended-A":function(y){return y>=2208&&y<=2303},"Hangul Jamo":function(y){return y>=4352&&y<=4607},"Unified Canadian Aboriginal Syllabics":function(y){return y>=5120&&y<=5759},Khmer:function(y){return y>=6016&&y<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(y){return y>=6320&&y<=6399},"General Punctuation":function(y){return y>=8192&&y<=8303},"Letterlike Symbols":function(y){return y>=8448&&y<=8527},"Number Forms":function(y){return y>=8528&&y<=8591},"Miscellaneous Technical":function(y){return y>=8960&&y<=9215},"Control Pictures":function(y){return y>=9216&&y<=9279},"Optical Character Recognition":function(y){return y>=9280&&y<=9311},"Enclosed Alphanumerics":function(y){return y>=9312&&y<=9471},"Geometric Shapes":function(y){return y>=9632&&y<=9727},"Miscellaneous Symbols":function(y){return y>=9728&&y<=9983},"Miscellaneous Symbols and Arrows":function(y){return y>=11008&&y<=11263},"CJK Radicals Supplement":function(y){return y>=11904&&y<=12031},"Kangxi Radicals":function(y){return y>=12032&&y<=12255},"Ideographic Description Characters":function(y){return y>=12272&&y<=12287},"CJK Symbols and Punctuation":function(y){return y>=12288&&y<=12351},Hiragana:function(y){return y>=12352&&y<=12447},Katakana:function(y){return y>=12448&&y<=12543},Bopomofo:function(y){return y>=12544&&y<=12591},"Hangul Compatibility Jamo":function(y){return y>=12592&&y<=12687},Kanbun:function(y){return y>=12688&&y<=12703},"Bopomofo Extended":function(y){return y>=12704&&y<=12735},"CJK Strokes":function(y){return y>=12736&&y<=12783},"Katakana Phonetic Extensions":function(y){return y>=12784&&y<=12799},"Enclosed CJK Letters and Months":function(y){return y>=12800&&y<=13055},"CJK Compatibility":function(y){return y>=13056&&y<=13311},"CJK Unified Ideographs Extension A":function(y){return y>=13312&&y<=19903},"Yijing Hexagram Symbols":function(y){return y>=19904&&y<=19967},"CJK Unified Ideographs":function(y){return y>=19968&&y<=40959},"Yi Syllables":function(y){return y>=40960&&y<=42127},"Yi Radicals":function(y){return y>=42128&&y<=42191},"Hangul Jamo Extended-A":function(y){return y>=43360&&y<=43391},"Hangul Syllables":function(y){return y>=44032&&y<=55215},"Hangul Jamo Extended-B":function(y){return y>=55216&&y<=55295},"Private Use Area":function(y){return y>=57344&&y<=63743},"CJK Compatibility Ideographs":function(y){return y>=63744&&y<=64255},"Arabic Presentation Forms-A":function(y){return y>=64336&&y<=65023},"Vertical Forms":function(y){return y>=65040&&y<=65055},"CJK Compatibility Forms":function(y){return y>=65072&&y<=65103},"Small Form Variants":function(y){return y>=65104&&y<=65135},"Arabic Presentation Forms-B":function(y){return y>=65136&&y<=65279},"Halfwidth and Fullwidth Forms":function(y){return y>=65280&&y<=65519}};function cr(y){for(var g=0,z=y;g=65097&&y<=65103)||_t["CJK Compatibility Ideographs"](y)||_t["CJK Compatibility"](y)||_t["CJK Radicals Supplement"](y)||_t["CJK Strokes"](y)||_t["CJK Symbols and Punctuation"](y)&&!(y>=12296&&y<=12305)&&!(y>=12308&&y<=12319)&&y!==12336||_t["CJK Unified Ideographs Extension A"](y)||_t["CJK Unified Ideographs"](y)||_t["Enclosed CJK Letters and Months"](y)||_t["Hangul Compatibility Jamo"](y)||_t["Hangul Jamo Extended-A"](y)||_t["Hangul Jamo Extended-B"](y)||_t["Hangul Jamo"](y)||_t["Hangul Syllables"](y)||_t.Hiragana(y)||_t["Ideographic Description Characters"](y)||_t.Kanbun(y)||_t["Kangxi Radicals"](y)||_t["Katakana Phonetic Extensions"](y)||_t.Katakana(y)&&y!==12540||_t["Halfwidth and Fullwidth Forms"](y)&&y!==65288&&y!==65289&&y!==65293&&!(y>=65306&&y<=65310)&&y!==65339&&y!==65341&&y!==65343&&!(y>=65371&&y<=65503)&&y!==65507&&!(y>=65512&&y<=65519)||_t["Small Form Variants"](y)&&!(y>=65112&&y<=65118)&&!(y>=65123&&y<=65126)||_t["Unified Canadian Aboriginal Syllabics"](y)||_t["Unified Canadian Aboriginal Syllabics Extended"](y)||_t["Vertical Forms"](y)||_t["Yijing Hexagram Symbols"](y)||_t["Yi Syllables"](y)||_t["Yi Radicals"](y))}function Oi(y){return!!(_t["Latin-1 Supplement"](y)&&(y===167||y===169||y===174||y===177||y===188||y===189||y===190||y===215||y===247)||_t["General Punctuation"](y)&&(y===8214||y===8224||y===8225||y===8240||y===8241||y===8251||y===8252||y===8258||y===8263||y===8264||y===8265||y===8273)||_t["Letterlike Symbols"](y)||_t["Number Forms"](y)||_t["Miscellaneous Technical"](y)&&(y>=8960&&y<=8967||y>=8972&&y<=8991||y>=8996&&y<=9e3||y===9003||y>=9085&&y<=9114||y>=9150&&y<=9165||y===9167||y>=9169&&y<=9179||y>=9186&&y<=9215)||_t["Control Pictures"](y)&&y!==9251||_t["Optical Character Recognition"](y)||_t["Enclosed Alphanumerics"](y)||_t["Geometric Shapes"](y)||_t["Miscellaneous Symbols"](y)&&!(y>=9754&&y<=9759)||_t["Miscellaneous Symbols and Arrows"](y)&&(y>=11026&&y<=11055||y>=11088&&y<=11097||y>=11192&&y<=11243)||_t["CJK Symbols and Punctuation"](y)||_t.Katakana(y)||_t["Private Use Area"](y)||_t["CJK Compatibility Forms"](y)||_t["Small Form Variants"](y)||_t["Halfwidth and Fullwidth Forms"](y)||y===8734||y===8756||y===8757||y>=9984&&y<=10087||y>=10102&&y<=10131||y===65532||y===65533)}function fn(y){return!($r(y)||Oi(y))}function vi(y){return _t.Arabic(y)||_t["Arabic Supplement"](y)||_t["Arabic Extended-A"](y)||_t["Arabic Presentation Forms-A"](y)||_t["Arabic Presentation Forms-B"](y)}function zi(y){return y>=1424&&y<=2303||_t["Arabic Presentation Forms-A"](y)||_t["Arabic Presentation Forms-B"](y)}function Xi(y,g){return!(!g&&zi(y)||y>=2304&&y<=3583||y>=3840&&y<=4255||_t.Khmer(y))}function pn(y){for(var g=0,z=y;g-1&&(no=bi.error),xo&&xo(y)};function El(){Pl.fire(new rn("pluginStateChange",{pluginStatus:no,pluginURL:Xo}))}var Pl=new Ri,pu=function(){return no},Il=function(y){return y({pluginStatus:no,pluginURL:Xo}),Pl.on("pluginStateChange",y),y},fu=function(y,g,z){if(z===void 0&&(z=!1),no===bi.deferred||no===bi.loading||no===bi.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Xo=nt.resolveURL(y),no=bi.deferred,xo=g,El(),z||Zu()},Zu=function(){if(no!==bi.deferred||!Xo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");no=bi.loading,El(),Xo&&Ur({url:Xo},function(y){y?js(y):(no=bi.loaded,El())})},Gu={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return no===bi.loaded||Gu.applyArabicShaping!=null},isLoading:function(){return no===bi.loading},setState:function(g){no=g.pluginStatus,Xo=g.pluginURL},isParsed:function(){return Gu.applyArabicShaping!=null&&Gu.processBidirectionalText!=null&&Gu.processStyledBidirectionalText!=null},getPluginURL:function(){return Xo}},rf=function(){!Gu.isLoading()&&!Gu.isLoaded()&&pu()==="deferred"&&Zu()},ds=function(g,z){this.zoom=g,z?(this.now=z.now,this.fadeDuration=z.fadeDuration,this.zoomHistory=z.zoomHistory,this.transition=z.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new jt,this.transition={})};ds.prototype.isSupportedScript=function(g){return sn(g,Gu.isLoaded())},ds.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ds.prototype.getCrossfadeParameters=function(){var g=this.zoom,z=g-Math.floor(g),V=this.crossFadingFactor();return g>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:z+(1-z)*V}:{fromScale:.5,toScale:1,t:1-(1-V)*z}};var Wl=function(g,z){this.property=g,this.value=z,this.expression=w(z===void 0?g.specification.default:z,g.specification)};Wl.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Wl.prototype.possiblyEvaluate=function(g,z,V){return this.property.possiblyEvaluate(this,g,z,V)};var Au=function(g){this.property=g,this.value=new Wl(g,void 0)};Au.prototype.transitioned=function(g,z){return new uf(this.property,this.value,z,_({},g.transition,this.transition),g.now)},Au.prototype.untransitioned=function(){return new uf(this.property,this.value,null,{},0)};var Tu=function(g){this._properties=g,this._values=Object.create(g.defaultTransitionablePropertyValues)};Tu.prototype.getValue=function(g){return H(this._values[g].value.value)},Tu.prototype.setValue=function(g,z){this._values.hasOwnProperty(g)||(this._values[g]=new Au(this._values[g].property)),this._values[g].value=new Wl(this._values[g].property,z===null?void 0:H(z))},Tu.prototype.getTransition=function(g){return H(this._values[g].transition)},Tu.prototype.setTransition=function(g,z){this._values.hasOwnProperty(g)||(this._values[g]=new Au(this._values[g].property)),this._values[g].transition=H(z)||void 0},Tu.prototype.serialize=function(){for(var g={},z=0,V=Object.keys(this._values);zthis.end)return this.prior=null,oe;if(this.value.isDataDriven())return this.prior=null,oe;if($me.zoomHistory.lastIntegerZoom?{from:V,to:$}:{from:oe,to:$}},g.prototype.interpolate=function(V){return V},g}(qt),Qr=function(g){this.specification=g};Qr.prototype.possiblyEvaluate=function(g,z,V,$){if(g.value!==void 0)if(g.expression.kind==="constant"){var oe=g.expression.evaluate(z,null,{},V,$);return this._calculate(oe,oe,oe,z)}else return this._calculate(g.expression.evaluate(new ds(Math.floor(z.zoom-1),z)),g.expression.evaluate(new ds(Math.floor(z.zoom),z)),g.expression.evaluate(new ds(Math.floor(z.zoom+1),z)),z)},Qr.prototype._calculate=function(g,z,V,$){var oe=$.zoom;return oe>$.zoomHistory.lastIntegerZoom?{from:g,to:z}:{from:V,to:z}},Qr.prototype.interpolate=function(g){return g};var mi=function(g){this.specification=g};mi.prototype.possiblyEvaluate=function(g,z,V,$){return!!g.expression.evaluate(z,null,{},V,$)},mi.prototype.interpolate=function(){return!1};var fi=function(g){this.properties=g,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var z in g){var V=g[z];V.specification.overridable&&this.overridableProperties.push(z);var $=this.defaultPropertyValues[z]=new Wl(V,void 0),oe=this.defaultTransitionablePropertyValues[z]=new Au(V);this.defaultTransitioningPropertyValues[z]=oe.untransitioned(),this.defaultPossiblyEvaluatedValues[z]=$.possiblyEvaluate({})}};Z("DataDrivenProperty",qt),Z("DataConstantProperty",Be),Z("CrossFadedDataDrivenProperty",ar),Z("CrossFadedProperty",Qr),Z("ColorRampProperty",mi);var pi="-transition",on=function(y){function g(z,V){if(y.call(this),this.id=z.id,this.type=z.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},z.type!=="custom"&&(z=z,this.metadata=z.metadata,this.minzoom=z.minzoom,this.maxzoom=z.maxzoom,z.type!=="background"&&(this.source=z.source,this.sourceLayer=z["source-layer"],this.filter=z.filter),V.layout&&(this._unevaluatedLayout=new Ef(V.layout)),V.paint)){this._transitionablePaint=new Tu(V.paint);for(var $ in z.paint)this.setPaintProperty($,z.paint[$],{validate:!1});for(var oe in z.layout)this.setLayoutProperty(oe,z.layout[oe],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new fc(V.paint)}}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},g.prototype.getLayoutProperty=function(V){return V==="visibility"?this.visibility:this._unevaluatedLayout.getValue(V)},g.prototype.setLayoutProperty=function(V,$,oe){if(oe===void 0&&(oe={}),$!=null){var me="layers."+this.id+".layout."+V;if(this._validate(Qu,me,V,$,oe))return}if(V==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(V,$)},g.prototype.getPaintProperty=function(V){return U(V,pi)?this._transitionablePaint.getTransition(V.slice(0,-pi.length)):this._transitionablePaint.getValue(V)},g.prototype.setPaintProperty=function(V,$,oe){if(oe===void 0&&(oe={}),$!=null){var me="layers."+this.id+".paint."+V;if(this._validate(Wu,me,V,$,oe))return!1}if(U(V,pi))return this._transitionablePaint.setTransition(V.slice(0,-pi.length),$||void 0),!1;var je=this._transitionablePaint._values[V],xt=je.property.specification["property-type"]==="cross-faded-data-driven",Rt=je.value.isDataDriven(),Xt=je.value;this._transitionablePaint.setValue(V,$),this._handleSpecialPaintPropertyUpdate(V);var xr=this._transitionablePaint._values[V].value,qr=xr.isDataDriven();return qr||Rt||xt||this._handleOverridablePaintPropertyUpdate(V,Xt,xr)},g.prototype._handleSpecialPaintPropertyUpdate=function(V){},g.prototype._handleOverridablePaintPropertyUpdate=function(V,$,oe){return!1},g.prototype.isHidden=function(V){return this.minzoom&&V=this.maxzoom?!0:this.visibility==="none"},g.prototype.updateTransitions=function(V){this._transitioningPaint=this._transitionablePaint.transitioned(V,this._transitioningPaint)},g.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},g.prototype.recalculate=function(V,$){V.getCrossfadeParameters&&(this._crossfadeParameters=V.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(V,void 0,$)),this.paint=this._transitioningPaint.possiblyEvaluate(V,void 0,$)},g.prototype.serialize=function(){var V={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(V.layout=V.layout||{},V.layout.visibility=this.visibility),j(V,function($,oe){return $!==void 0&&!(oe==="layout"&&!Object.keys($).length)&&!(oe==="paint"&&!Object.keys($).length)})},g.prototype._validate=function(V,$,oe,me,je){return je===void 0&&(je={}),je&&je.validate===!1?!1:Ju(this,V.call(iu,{key:$,layerType:this.type,objectKey:oe,value:me,styleSpec:ji,style:{glyphs:!0,sprite:!0}}))},g.prototype.is3D=function(){return!1},g.prototype.isTileClipped=function(){return!1},g.prototype.hasOffscreenPass=function(){return!1},g.prototype.resize=function(){},g.prototype.isStateDependent=function(){for(var V in this.paint._values){var $=this.paint.get(V);if(!(!($ instanceof vf)||!Zl($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},g}(Ri),Bn={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ln=function(g,z){this._structArray=g,this._pos1=z*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},wn=128,Ls=5,ua=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};ua.serialize=function(g,z){return g._trim(),z&&(g.isTransferred=!0,z.push(g.arrayBuffer)),{length:g.length,arrayBuffer:g.arrayBuffer}},ua.deserialize=function(g){var z=Object.create(this.prototype);return z.arrayBuffer=g.arrayBuffer,z.length=g.length,z.capacity=g.arrayBuffer.byteLength/z.bytesPerElement,z._refreshViews(),z},ua.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},ua.prototype.clear=function(){this.length=0},ua.prototype.resize=function(g){this.reserve(g),this.length=g},ua.prototype.reserve=function(g){if(g>this.capacity){this.capacity=Math.max(g,Math.floor(this.capacity*Ls),wn),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var z=this.uint8;this._refreshViews(),z&&this.uint8.set(z)}},ua.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function Hn(y,g){g===void 0&&(g=1);var z=0,V=0,$=y.map(function(me){var je=Ni(me.type),xt=z=Wr(z,Math.max(g,je)),Rt=me.components||1;return V=Math.max(V,je),z+=je*Rt,{name:me.name,type:me.type,components:Rt,offset:xt}}),oe=Wr(z,Math.max(V,g));return{members:$,size:oe,alignment:g}}function Ni(y){return Bn[y].BYTES_PER_ELEMENT}function Wr(y,g){return Math.ceil(y/g)*g}var _i=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var me=V*2;return this.int16[me+0]=$,this.int16[me+1]=oe,V},g}(ua);_i.prototype.bytesPerElement=4,Z("StructArrayLayout2i4",_i);var dn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me){var je=this.length;return this.resize(je+1),this.emplace(je,V,$,oe,me)},g.prototype.emplace=function(V,$,oe,me,je){var xt=V*4;return this.int16[xt+0]=$,this.int16[xt+1]=oe,this.int16[xt+2]=me,this.int16[xt+3]=je,V},g}(ua);dn.prototype.bytesPerElement=8,Z("StructArrayLayout4i8",dn);var En=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt){var Rt=this.length;return this.resize(Rt+1),this.emplace(Rt,V,$,oe,me,je,xt)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt){var Xt=V*6;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.int16[Xt+2]=me,this.int16[Xt+3]=je,this.int16[Xt+4]=xt,this.int16[Xt+5]=Rt,V},g}(ua);En.prototype.bytesPerElement=12,Z("StructArrayLayout2i4i12",En);var Yi=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt){var Rt=this.length;return this.resize(Rt+1),this.emplace(Rt,V,$,oe,me,je,xt)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt){var Xt=V*4,xr=V*8;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.uint8[xr+4]=me,this.uint8[xr+5]=je,this.uint8[xr+6]=xt,this.uint8[xr+7]=Rt,V},g}(ua);Yi.prototype.bytesPerElement=8,Z("StructArrayLayout2i4ub8",Yi);var ga=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var me=V*2;return this.float32[me+0]=$,this.float32[me+1]=oe,V},g}(ua);ga.prototype.bytesPerElement=8,Z("StructArrayLayout2f8",ga);var Kn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr){var Pr=this.length;return this.resize(Pr+1),this.emplace(Pr,V,$,oe,me,je,xt,Rt,Xt,xr,qr)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr){var ai=V*10;return this.uint16[ai+0]=$,this.uint16[ai+1]=oe,this.uint16[ai+2]=me,this.uint16[ai+3]=je,this.uint16[ai+4]=xt,this.uint16[ai+5]=Rt,this.uint16[ai+6]=Xt,this.uint16[ai+7]=xr,this.uint16[ai+8]=qr,this.uint16[ai+9]=Pr,V},g}(ua);Kn.prototype.bytesPerElement=20,Z("StructArrayLayout10ui20",Kn);var hs=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai){var qi=this.length;return this.resize(qi+1),this.emplace(qi,V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai,qi){var Wn=V*12;return this.int16[Wn+0]=$,this.int16[Wn+1]=oe,this.int16[Wn+2]=me,this.int16[Wn+3]=je,this.uint16[Wn+4]=xt,this.uint16[Wn+5]=Rt,this.uint16[Wn+6]=Xt,this.uint16[Wn+7]=xr,this.int16[Wn+8]=qr,this.int16[Wn+9]=Pr,this.int16[Wn+10]=ai,this.int16[Wn+11]=qi,V},g}(ua);hs.prototype.bytesPerElement=24,Z("StructArrayLayout4i4ui4i24",hs);var $i=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var je=V*3;return this.float32[je+0]=$,this.float32[je+1]=oe,this.float32[je+2]=me,V},g}(ua);$i.prototype.bytesPerElement=12,Z("StructArrayLayout3f12",$i);var Ui=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.uint32[oe+0]=$,V},g}(ua);Ui.prototype.bytesPerElement=4,Z("StructArrayLayout1ul4",Ui);var ro=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt,Rt,Xt,xr){var qr=this.length;return this.resize(qr+1),this.emplace(qr,V,$,oe,me,je,xt,Rt,Xt,xr)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr){var Pr=V*10,ai=V*5;return this.int16[Pr+0]=$,this.int16[Pr+1]=oe,this.int16[Pr+2]=me,this.int16[Pr+3]=je,this.int16[Pr+4]=xt,this.int16[Pr+5]=Rt,this.uint32[ai+3]=Xt,this.uint16[Pr+8]=xr,this.uint16[Pr+9]=qr,V},g}(ua);ro.prototype.bytesPerElement=20,Z("StructArrayLayout6i1ul2ui20",ro);var na=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt){var Rt=this.length;return this.resize(Rt+1),this.emplace(Rt,V,$,oe,me,je,xt)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt){var Xt=V*6;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.int16[Xt+2]=me,this.int16[Xt+3]=je,this.int16[Xt+4]=xt,this.int16[Xt+5]=Rt,V},g}(ua);na.prototype.bytesPerElement=12,Z("StructArrayLayout2i2i2i12",na);var On=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je){var xt=this.length;return this.resize(xt+1),this.emplace(xt,V,$,oe,me,je)},g.prototype.emplace=function(V,$,oe,me,je,xt){var Rt=V*4,Xt=V*8;return this.float32[Rt+0]=$,this.float32[Rt+1]=oe,this.float32[Rt+2]=me,this.int16[Xt+6]=je,this.int16[Xt+7]=xt,V},g}(ua);On.prototype.bytesPerElement=16,Z("StructArrayLayout2f1f2i16",On);var In=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me){var je=this.length;return this.resize(je+1),this.emplace(je,V,$,oe,me)},g.prototype.emplace=function(V,$,oe,me,je){var xt=V*12,Rt=V*3;return this.uint8[xt+0]=$,this.uint8[xt+1]=oe,this.float32[Rt+1]=me,this.float32[Rt+2]=je,V},g}(ua);In.prototype.bytesPerElement=12,Z("StructArrayLayout2ub2f12",In);var Va=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var je=V*3;return this.uint16[je+0]=$,this.uint16[je+1]=oe,this.uint16[je+2]=me,V},g}(ua);Va.prototype.bytesPerElement=6,Z("StructArrayLayout3ui6",Va);var _s=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba){var _o=this.length;return this.resize(_o+1),this.emplace(_o,V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba,_o){var Uo=V*24,Zs=V*12,Cl=V*48;return this.int16[Uo+0]=$,this.int16[Uo+1]=oe,this.uint16[Uo+2]=me,this.uint16[Uo+3]=je,this.uint32[Zs+2]=xt,this.uint32[Zs+3]=Rt,this.uint32[Zs+4]=Xt,this.uint16[Uo+10]=xr,this.uint16[Uo+11]=qr,this.uint16[Uo+12]=Pr,this.float32[Zs+7]=ai,this.float32[Zs+8]=qi,this.uint8[Cl+36]=Wn,this.uint8[Cl+37]=bn,this.uint8[Cl+38]=bo,this.uint32[Zs+10]=ba,this.int16[Uo+22]=_o,V},g}(ua);_s.prototype.bytesPerElement=48,Z("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",_s);var ul=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Bu,du,gu){var ff=this.length;return this.resize(ff+1),this.emplace(ff,V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Bu,du,gu)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Bu,du,gu,ff){var Ru=V*34,Rf=V*17;return this.int16[Ru+0]=$,this.int16[Ru+1]=oe,this.int16[Ru+2]=me,this.int16[Ru+3]=je,this.int16[Ru+4]=xt,this.int16[Ru+5]=Rt,this.int16[Ru+6]=Xt,this.int16[Ru+7]=xr,this.uint16[Ru+8]=qr,this.uint16[Ru+9]=Pr,this.uint16[Ru+10]=ai,this.uint16[Ru+11]=qi,this.uint16[Ru+12]=Wn,this.uint16[Ru+13]=bn,this.uint16[Ru+14]=bo,this.uint16[Ru+15]=ba,this.uint16[Ru+16]=_o,this.uint16[Ru+17]=Uo,this.uint16[Ru+18]=Zs,this.uint16[Ru+19]=Cl,this.uint16[Ru+20]=Tl,this.uint16[Ru+21]=hu,this.uint16[Ru+22]=Kl,this.uint32[Rf+12]=lu,this.float32[Rf+13]=Bu,this.float32[Rf+14]=du,this.float32[Rf+15]=gu,this.float32[Rf+16]=ff,V},g}(ua);ul.prototype.bytesPerElement=68,Z("StructArrayLayout8i15ui1ul4f68",ul);var Qn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.float32[oe+0]=$,V},g}(ua);Qn.prototype.bytesPerElement=4,Z("StructArrayLayout1f4",Qn);var Mo=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var je=V*3;return this.int16[je+0]=$,this.int16[je+1]=oe,this.int16[je+2]=me,V},g}(ua);Mo.prototype.bytesPerElement=6,Z("StructArrayLayout3i6",Mo);var nl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var je=V*2,xt=V*4;return this.uint32[je+0]=$,this.uint16[xt+2]=oe,this.uint16[xt+3]=me,V},g}(ua);nl.prototype.bytesPerElement=8,Z("StructArrayLayout1ul2ui8",nl);var pl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var me=V*2;return this.uint16[me+0]=$,this.uint16[me+1]=oe,V},g}(ua);pl.prototype.bytesPerElement=4,Z("StructArrayLayout2ui4",pl);var Dl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.uint16[oe+0]=$,V},g}(ua);Dl.prototype.bytesPerElement=2,Z("StructArrayLayout1ui2",Dl);var Fu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me){var je=this.length;return this.resize(je+1),this.emplace(je,V,$,oe,me)},g.prototype.emplace=function(V,$,oe,me,je){var xt=V*4;return this.float32[xt+0]=$,this.float32[xt+1]=oe,this.float32[xt+2]=me,this.float32[xt+3]=je,V},g}(ua);Fu.prototype.bytesPerElement=16,Z("StructArrayLayout4f16",Fu);var mf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return z.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},z.x1.get=function(){return this._structArray.int16[this._pos2+2]},z.y1.get=function(){return this._structArray.int16[this._pos2+3]},z.x2.get=function(){return this._structArray.int16[this._pos2+4]},z.y2.get=function(){return this._structArray.int16[this._pos2+5]},z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},z.anchorPoint.get=function(){return new l(this.anchorPointX,this.anchorPointY)},Object.defineProperties(g.prototype,z),g}(Ln);mf.prototype.size=20;var Ql=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new mf(this,V)},g}(ro);Z("CollisionBoxArray",Ql);var kf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},z.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},z.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},z.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},z.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},z.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},z.segment.get=function(){return this._structArray.uint16[this._pos2+10]},z.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},z.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},z.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},z.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},z.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},z.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},z.placedOrientation.set=function(V){this._structArray.uint8[this._pos1+37]=V},z.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},z.hidden.set=function(V){this._structArray.uint8[this._pos1+38]=V},z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},z.crossTileID.set=function(V){this._structArray.uint32[this._pos4+10]=V},z.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(g.prototype,z),g}(Ln);kf.prototype.size=48;var Cu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new kf(this,V)},g}(_s);Z("PlacedSymbolArray",Cu);var _f=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},z.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},z.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},z.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},z.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},z.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},z.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},z.key.get=function(){return this._structArray.uint16[this._pos2+8]},z.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},z.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},z.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},z.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},z.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},z.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},z.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},z.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},z.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},z.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},z.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},z.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},z.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},z.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},z.crossTileID.set=function(V){this._structArray.uint32[this._pos4+12]=V},z.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},z.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},z.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},z.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(g.prototype,z),g}(Ln);_f.prototype.size=68;var bf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new _f(this,V)},g}(ul);Z("SymbolInstanceArray",bf);var Lf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getoffsetX=function(V){return this.float32[V*1+0]},g}(Qn);Z("GlyphOffsetArray",Lf);var Hu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getx=function(V){return this.int16[V*3+0]},g.prototype.gety=function(V){return this.int16[V*3+1]},g.prototype.gettileUnitDistanceFromAnchor=function(V){return this.int16[V*3+2]},g}(Mo);Z("SymbolLineVertexArray",Hu);var hf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(g.prototype,z),g}(Ln);hf.prototype.size=8;var yf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new hf(this,V)},g}(nl);Z("FeatureIndexArray",yf);var Fl=Hn([{name:"a_pos",components:2,type:"Int16"}],4),wf=Fl.members,cu=function(g){g===void 0&&(g=[]),this.segments=g};cu.prototype.prepareSegment=function(g,z,V,$){var oe=this.segments[this.segments.length-1];return g>cu.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+cu.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+g),(!oe||oe.vertexLength+g>cu.MAX_VERTEX_ARRAY_LENGTH||oe.sortKey!==$)&&(oe={vertexOffset:z.length,primitiveOffset:V.length,vertexLength:0,primitiveLength:0},$!==void 0&&(oe.sortKey=$),this.segments.push(oe)),oe},cu.prototype.get=function(){return this.segments},cu.prototype.destroy=function(){for(var g=0,z=this.segments;g>>16)*xt&65535)<<16)&4294967295,Xt=Xt<<15|Xt>>>17,Xt=(Xt&65535)*Rt+(((Xt>>>16)*Rt&65535)<<16)&4294967295,me^=Xt,me=me<<13|me>>>19,je=(me&65535)*5+(((me>>>16)*5&65535)<<16)&4294967295,me=(je&65535)+27492+(((je>>>16)+58964&65535)<<16);switch(Xt=0,$){case 3:Xt^=(z.charCodeAt(xr+2)&255)<<16;case 2:Xt^=(z.charCodeAt(xr+1)&255)<<8;case 1:Xt^=z.charCodeAt(xr)&255,Xt=(Xt&65535)*xt+(((Xt>>>16)*xt&65535)<<16)&4294967295,Xt=Xt<<15|Xt>>>17,Xt=(Xt&65535)*Rt+(((Xt>>>16)*Rt&65535)<<16)&4294967295,me^=Xt}return me^=z.length,me^=me>>>16,me=(me&65535)*2246822507+(((me>>>16)*2246822507&65535)<<16)&4294967295,me^=me>>>13,me=(me&65535)*3266489909+(((me>>>16)*3266489909&65535)<<16)&4294967295,me^=me>>>16,me>>>0}y.exports=g}),O=a(function(y){function g(z,V){for(var $=z.length,oe=V^$,me=0,je;$>=4;)je=z.charCodeAt(me)&255|(z.charCodeAt(++me)&255)<<8|(z.charCodeAt(++me)&255)<<16|(z.charCodeAt(++me)&255)<<24,je=(je&65535)*1540483477+(((je>>>16)*1540483477&65535)<<16),je^=je>>>24,je=(je&65535)*1540483477+(((je>>>16)*1540483477&65535)<<16),oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16)^je,$-=4,++me;switch($){case 3:oe^=(z.charCodeAt(me+2)&255)<<16;case 2:oe^=(z.charCodeAt(me+1)&255)<<8;case 1:oe^=z.charCodeAt(me)&255,oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16)}return oe^=oe>>>13,oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16),oe^=oe>>>15,oe>>>0}y.exports=g}),K=J,_e=J,ne=O;K.murmur3=_e,K.murmur2=ne;var Le=function(){this.ids=[],this.positions=[],this.indexed=!1};Le.prototype.add=function(g,z,V,$){this.ids.push(Ct(g)),this.positions.push(z,V,$)},Le.prototype.getPositions=function(g){for(var z=Ct(g),V=0,$=this.ids.length-1;V<$;){var oe=V+$>>1;this.ids[oe]>=z?$=oe:V=oe+1}for(var me=[];this.ids[V]===z;){var je=this.positions[3*V],xt=this.positions[3*V+1],Rt=this.positions[3*V+2];me.push({index:je,start:xt,end:Rt}),V++}return me},Le.serialize=function(g,z){var V=new Float64Array(g.ids),$=new Uint32Array(g.positions);return dr(V,$,0,V.length-1),z&&z.push(V.buffer,$.buffer),{ids:V,positions:$}},Le.deserialize=function(g){var z=new Le;return z.ids=g.ids,z.positions=g.positions,z.indexed=!0,z};var Ze=Math.pow(2,53)-1;function Ct(y){var g=+y;return!isNaN(g)&&g<=Ze?g:K(String(y))}function dr(y,g,z,V){for(;z>1],oe=z-1,me=V+1;;){do oe++;while(y[oe]<$);do me--;while(y[me]>$);if(oe>=me)break;Er(y,oe,me),Er(g,3*oe,3*me),Er(g,3*oe+1,3*me+1),Er(g,3*oe+2,3*me+2)}me-zme.x+1||xtme.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return z}function ru(y,g){return{type:y.type,id:y.id,properties:y.properties,geometry:g?Zo(y):[]}}function yu(y,g,z,V,$){y.emplaceBack(g*2+(V+1)/2,z*2+($+1)/2)}var Du=function(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=g.index,this.hasPattern=!1,this.layoutVertexArray=new _i,this.indexArray=new Va,this.segments=new cu,this.programConfigurations=new Ki(g.layers,g.zoom),this.stateDependentLayerIds=this.layers.filter(function(z){return z.isStateDependent()}).map(function(z){return z.id})};Du.prototype.populate=function(g,z,V){var $=this.layers[0],oe=[],me=null;$.type==="circle"&&(me=$.layout.get("circle-sort-key"));for(var je=0,xt=g;je=Tn||qr<0||qr>=Tn)){var Pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,g.sortKey),ai=Pr.vertexLength;yu(this.layoutVertexArray,xr,qr,-1,-1),yu(this.layoutVertexArray,xr,qr,1,-1),yu(this.layoutVertexArray,xr,qr,1,1),yu(this.layoutVertexArray,xr,qr,-1,1),this.indexArray.emplaceBack(ai,ai+1,ai+2),this.indexArray.emplaceBack(ai,ai+3,ai+2),Pr.vertexLength+=4,Pr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,g,V,{},$)},Z("CircleBucket",Du,{omit:["layers"]});function vu(y,g){for(var z=0;z=3){for(var oe=0;oe<$.length;oe++)if(Sd(y,$[oe]))return!0}if(wd(y,$,z))return!0}return!1}function wd(y,g,z){if(y.length>1){if(Ad(y,g))return!0;for(var V=0;V1?y.distSqr(z):y.distSqr(z.sub(g)._mult($)._add(g))}function dv(y,g){for(var z=!1,V,$,oe,me=0;meg.y!=oe.y>g.y&&g.x<(oe.x-$.x)*(g.y-$.y)/(oe.y-$.y)+$.x&&(z=!z)}return z}function Sd(y,g){for(var z=!1,V=0,$=y.length-1;Vg.y!=me.y>g.y&&g.x<(me.x-oe.x)*(g.y-oe.y)/(me.y-oe.y)+oe.x&&(z=!z)}return z}function pv(y,g,z,V,$){for(var oe=0,me=y;oe=je.x&&$>=je.y)return!0}var xt=[new l(g,z),new l(g,$),new l(V,$),new l(V,z)];if(y.length>2)for(var Rt=0,Xt=xt;Rt$.x&&g.x>$.x||y.y$.y&&g.y>$.y)return!1;var oe=ae(y,g,z[0]);return oe!==ae(y,g,z[1])||oe!==ae(y,g,z[2])||oe!==ae(y,g,z[3])}function Md(y,g,z){var V=g.paint.get(y).value;return V.kind==="constant"?V.value:z.programConfigurations.get(g.id).getMaxValue(y)}function Lp(y){return Math.sqrt(y[0]*y[0]+y[1]*y[1])}function Kp(y,g,z,V,$){if(!g[0]&&!g[1])return y;var oe=l.convert(g)._mult($);z==="viewport"&&oe._rotate(-V);for(var me=[],je=0;je0&&(oe=1/Math.sqrt(oe)),y[0]=g[0]*oe,y[1]=g[1]*oe,y[2]=g[2]*oe,y}function WO(y,g){return y[0]*g[0]+y[1]*g[1]+y[2]*g[2]}function jO(y,g,z){var V=g[0],$=g[1],oe=g[2],me=z[0],je=z[1],xt=z[2];return y[0]=$*xt-oe*je,y[1]=oe*me-V*xt,y[2]=V*je-$*me,y}function XO(y,g,z){var V=g[0],$=g[1],oe=g[2];return y[0]=V*z[0]+$*z[3]+oe*z[6],y[1]=V*z[1]+$*z[4]+oe*z[7],y[2]=V*z[2]+$*z[5]+oe*z[8],y}var ZO=oy,qQ=function(){var y=ay();return function(g,z,V,$,oe,me){var je,xt;for(z||(z=3),V||(V=0),$?xt=Math.min($*z+V,g.length):xt=g.length,je=V;jey.width||$.height>y.height||z.x>y.width-$.width||z.y>y.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>g.width||$.height>g.height||V.x>g.width-$.width||V.y>g.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var me=y.data,je=g.data,xt=0;xt<$.height;xt++)for(var Rt=((z.y+xt)*y.width+z.x)*oe,Xt=((V.y+xt)*g.width+V.x)*oe,xr=0;xr<$.width*oe;xr++)je[Xt+xr]=me[Rt+xr];return g}var Ip=function(g,z){kd(this,g,1,z)};Ip.prototype.resize=function(g){kw(this,g,1)},Ip.prototype.clone=function(){return new Ip({width:this.width,height:this.height},new Uint8Array(this.data))},Ip.copy=function(g,z,V,$,oe){Cw(g,z,V,$,oe,1)};var kh=function(g,z){kd(this,g,4,z)};kh.prototype.resize=function(g){kw(this,g,4)},kh.prototype.replace=function(g,z){z?this.data.set(g):g instanceof Uint8ClampedArray?this.data=new Uint8Array(g.buffer):this.data=g},kh.prototype.clone=function(){return new kh({width:this.width,height:this.height},new Uint8Array(this.data))},kh.copy=function(g,z,V,$,oe){Cw(g,z,V,$,oe,4)},Z("AlphaImage",Ip),Z("RGBAImage",kh);var Vx=new fi({"heatmap-radius":new qt(ji.paint_heatmap["heatmap-radius"]),"heatmap-weight":new qt(ji.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Be(ji.paint_heatmap["heatmap-intensity"]),"heatmap-color":new mi(ji.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Be(ji.paint_heatmap["heatmap-opacity"])}),S1={paint:Vx};function Gx(y){var g={},z=y.resolution||256,V=y.clips?y.clips.length:1,$=y.image||new kh({width:z,height:V}),oe=function(bo,ba,_o){g[y.evaluationKey]=_o;var Uo=y.expression.evaluate(g);$.data[bo+ba+0]=Math.floor(Uo.r*255/Uo.a),$.data[bo+ba+1]=Math.floor(Uo.g*255/Uo.a),$.data[bo+ba+2]=Math.floor(Uo.b*255/Uo.a),$.data[bo+ba+3]=Math.floor(Uo.a*255)};if(y.clips)for(var Rt=0,Xt=0;Rt80*z){je=Rt=y[0],xt=Xt=y[1];for(var ai=z;ai<$;ai+=z)xr=y[ai],qr=y[ai+1],xrRt&&(Rt=xr),qr>Xt&&(Xt=qr);Pr=Math.max(Rt-je,Xt-xt),Pr=Pr!==0?1/Pr:0}return Hx(oe,me,z,je,xt,Pr),me}function zw(y,g,z,V,$){var oe,me;if($===fM(y,g,z,V)>0)for(oe=g;oe=g;oe-=V)me=MC(oe,y[oe],y[oe+1],me);return me&&jx(me,me.next)&&(Yx(me),me=me.next),me}function sy(y,g){if(!y)return y;g||(g=y);var z=y,V;do if(V=!1,!z.steiner&&(jx(z,z.next)||Kc(z.prev,z,z.next)===0)){if(Yx(z),z=g=z.prev,z===z.next)break;V=!0}else z=z.next;while(V||z!==g);return g}function Hx(y,g,z,V,$,oe,me){if(y){!me&&oe&&Iw(y,V,$,oe);for(var je=y,xt,Rt;y.prev!==y.next;){if(xt=y.prev,Rt=y.next,oe?AC(y,V,$,oe):wC(y)){g.push(xt.i/z),g.push(y.i/z),g.push(Rt.i/z),Yx(y),y=Rt.next,je=Rt.next;continue}if(y=Rt,y===je){me?me===1?(y=Wx(sy(y),g,z),Hx(y,g,z,V,$,oe,2)):me===2&&p0(y,g,z,V,$,oe):Hx(sy(y),g,z,V,$,oe,1);break}}}}function wC(y){var g=y.prev,z=y,V=y.next;if(Kc(g,z,V)>=0)return!1;for(var $=y.next.next;$!==y.prev;){if(uy(g.x,g.y,z.x,z.y,V.x,V.y,$.x,$.y)&&Kc($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function AC(y,g,z,V){var $=y.prev,oe=y,me=y.next;if(Kc($,oe,me)>=0)return!1;for(var je=$.xoe.x?$.x>me.x?$.x:me.x:oe.x>me.x?oe.x:me.x,Xt=$.y>oe.y?$.y>me.y?$.y:me.y:oe.y>me.y?oe.y:me.y,xr=oM(je,xt,g,z,V),qr=oM(Rt,Xt,g,z,V),Pr=y.prevZ,ai=y.nextZ;Pr&&Pr.z>=xr&&ai&&ai.z<=qr;){if(Pr!==y.prev&&Pr!==y.next&&uy($.x,$.y,oe.x,oe.y,me.x,me.y,Pr.x,Pr.y)&&Kc(Pr.prev,Pr,Pr.next)>=0||(Pr=Pr.prevZ,ai!==y.prev&&ai!==y.next&&uy($.x,$.y,oe.x,oe.y,me.x,me.y,ai.x,ai.y)&&Kc(ai.prev,ai,ai.next)>=0))return!1;ai=ai.nextZ}for(;Pr&&Pr.z>=xr;){if(Pr!==y.prev&&Pr!==y.next&&uy($.x,$.y,oe.x,oe.y,me.x,me.y,Pr.x,Pr.y)&&Kc(Pr.prev,Pr,Pr.next)>=0)return!1;Pr=Pr.prevZ}for(;ai&&ai.z<=qr;){if(ai!==y.prev&&ai!==y.next&&uy($.x,$.y,oe.x,oe.y,me.x,me.y,ai.x,ai.y)&&Kc(ai.prev,ai,ai.next)>=0)return!1;ai=ai.nextZ}return!0}function Wx(y,g,z){var V=y;do{var $=V.prev,oe=V.next.next;!jx($,oe)&&Rw($,V,V.next,oe)&&Zx($,oe)&&Zx(oe,$)&&(g.push($.i/z),g.push(V.i/z),g.push(oe.i/z),Yx(V),Yx(V.next),V=y=oe),V=V.next}while(V!==y);return sy(V)}function p0(y,g,z,V,$,oe){var me=y;do{for(var je=me.next.next;je!==me.prev;){if(me.i!==je.i&&E1(me,je)){var xt=lM(me,je);me=sy(me,me.next),xt=sy(xt,xt.next),Hx(me,g,z,V,$,oe),Hx(xt,g,z,V,$,oe);return}je=je.next}me=me.next}while(me!==y)}function ly(y,g,z,V){var $=[],oe,me,je,xt,Rt;for(oe=0,me=g.length;oe=z.next.y&&z.next.y!==z.y){var je=z.x+($-z.y)*(z.next.x-z.x)/(z.next.y-z.y);if(je<=V&&je>oe){if(oe=je,je===V){if($===z.y)return z;if($===z.next.y)return z.next}me=z.x=z.x&&z.x>=Rt&&V!==z.x&&uy($me.x||z.x===me.x&&i9(me,z)))&&(me=z,xr=qr)),z=z.next;while(z!==xt);return me}function i9(y,g){return Kc(y.prev,y,g.prev)<0&&Kc(g.next,y,y.next)<0}function Iw(y,g,z,V){var $=y;do $.z===null&&($.z=oM($.x,$.y,g,z,V)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==y);$.prevZ.nextZ=null,$.prevZ=null,aM($)}function aM(y){var g,z,V,$,oe,me,je,xt,Rt=1;do{for(z=y,y=null,oe=null,me=0;z;){for(me++,V=z,je=0,g=0;g0||xt>0&&V;)je!==0&&(xt===0||!V||z.z<=V.z)?($=z,z=z.nextZ,je--):($=V,V=V.nextZ,xt--),oe?oe.nextZ=$:y=$,$.prevZ=oe,oe=$;z=V}oe.nextZ=null,Rt*=2}while(me>1);return y}function oM(y,g,z,V,$){return y=32767*(y-z)*$,g=32767*(g-V)*$,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,g=(g|g<<8)&16711935,g=(g|g<<4)&252645135,g=(g|g<<2)&858993459,g=(g|g<<1)&1431655765,y|g<<1}function sM(y){var g=y,z=y;do(g.x=0&&(y-me)*(V-je)-(z-me)*(g-je)>=0&&(z-me)*(oe-je)-($-me)*(V-je)>=0}function E1(y,g){return y.next.i!==g.i&&y.prev.i!==g.i&&!SC(y,g)&&(Zx(y,g)&&Zx(g,y)&&n9(y,g)&&(Kc(y.prev,y,g.prev)||Kc(y,g.prev,g))||jx(y,g)&&Kc(y.prev,y,y.next)>0&&Kc(g.prev,g,g.next)>0)}function Kc(y,g,z){return(g.y-y.y)*(z.x-g.x)-(g.x-y.x)*(z.y-g.y)}function jx(y,g){return y.x===g.x&&y.y===g.y}function Rw(y,g,z,V){var $=ug(Kc(y,g,z)),oe=ug(Kc(y,g,V)),me=ug(Kc(z,V,y)),je=ug(Kc(z,V,g));return!!($!==oe&&me!==je||$===0&&Xx(y,z,g)||oe===0&&Xx(y,V,g)||me===0&&Xx(z,y,V)||je===0&&Xx(z,g,V))}function Xx(y,g,z){return g.x<=Math.max(y.x,z.x)&&g.x>=Math.min(y.x,z.x)&&g.y<=Math.max(y.y,z.y)&&g.y>=Math.min(y.y,z.y)}function ug(y){return y>0?1:y<0?-1:0}function SC(y,g){var z=y;do{if(z.i!==y.i&&z.next.i!==y.i&&z.i!==g.i&&z.next.i!==g.i&&Rw(z,z.next,y,g))return!0;z=z.next}while(z!==y);return!1}function Zx(y,g){return Kc(y.prev,y,y.next)<0?Kc(y,g,y.next)>=0&&Kc(y,y.prev,g)>=0:Kc(y,g,y.prev)<0||Kc(y,y.next,g)<0}function n9(y,g){var z=y,V=!1,$=(y.x+g.x)/2,oe=(y.y+g.y)/2;do z.y>oe!=z.next.y>oe&&z.next.y!==z.y&&$<(z.next.x-z.x)*(oe-z.y)/(z.next.y-z.y)+z.x&&(V=!V),z=z.next;while(z!==y);return V}function lM(y,g){var z=new uM(y.i,y.x,y.y),V=new uM(g.i,g.x,g.y),$=y.next,oe=g.prev;return y.next=g,g.prev=y,z.next=$,$.prev=z,V.next=z,z.prev=V,oe.next=V,V.prev=oe,V}function MC(y,g,z,V){var $=new uM(y,g,z);return V?($.next=V.next,$.prev=V,V.next.prev=$,V.next=$):($.prev=$,$.next=$),$}function Yx(y){y.next.prev=y.prev,y.prev.next=y.next,y.prevZ&&(y.prevZ.nextZ=y.nextZ),y.nextZ&&(y.nextZ.prevZ=y.prevZ)}function uM(y,g,z){this.i=y,this.x=g,this.y=z,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}M1.deviation=function(y,g,z,V){var $=g&&g.length,oe=$?g[0]*z:y.length,me=Math.abs(fM(y,0,oe,z));if($)for(var je=0,xt=g.length;je0&&(V+=y[$-1].length,z.holes.push(V))}return z},Pw.default=bC;function cM(y,g,z,V,$){dm(y,g,z||0,V||y.length-1,$||EC)}function dm(y,g,z,V,$){for(;V>z;){if(V-z>600){var oe=V-z+1,me=g-z+1,je=Math.log(oe),xt=.5*Math.exp(2*je/3),Rt=.5*Math.sqrt(je*xt*(oe-xt)/oe)*(me-oe/2<0?-1:1),Xt=Math.max(z,Math.floor(g-me*xt/oe+Rt)),xr=Math.min(V,Math.floor(g+(oe-me)*xt/oe+Rt));dm(y,g,Xt,xr,$)}var qr=y[g],Pr=z,ai=V;for(k1(y,z,g),$(y[V],qr)>0&&k1(y,z,V);Pr0;)ai--}$(y[z],qr)===0?k1(y,z,ai):(ai++,k1(y,ai,V)),ai<=g&&(z=ai+1),g<=ai&&(V=ai-1)}}function k1(y,g,z){var V=y[g];y[g]=y[z],y[z]=V}function EC(y,g){return yg?1:0}function Dw(y,g){var z=y.length;if(z<=1)return[y];for(var V=[],$,oe,me=0;me1)for(var xt=0;xt>3}if(V--,z===1||z===2)$+=y.readSVarint(),oe+=y.readSVarint(),z===1&&(je&&me.push(je),je=[]),je.push(new l($,oe));else if(z===7)je&&je.push(je[0].clone());else throw new Error("unknown command "+z)}return je&&me.push(je),me},fg.prototype.bbox=function(){var y=this._pbf;y.pos=this._geometry;for(var g=y.readVarint()+y.pos,z=1,V=0,$=0,oe=0,me=1/0,je=-1/0,xt=1/0,Rt=-1/0;y.pos>3}if(V--,z===1||z===2)$+=y.readSVarint(),oe+=y.readSVarint(),$je&&(je=$),oeRt&&(Rt=oe);else if(z!==7)throw new Error("unknown command "+z)}return[me,xt,je,Rt]},fg.prototype.toGeoJSON=function(y,g,z){var V=this.extent*Math.pow(2,z),$=this.extent*y,oe=this.extent*g,me=this.loadGeometry(),je=fg.types[this.type],xt,Rt;function Xt(Pr){for(var ai=0;ai>3;g=V===1?y.readString():V===2?y.readFloat():V===3?y.readDouble():V===4?y.readVarint64():V===5?y.readVarint():V===6?y.readSVarint():V===7?y.readBoolean():null}return g}pM.prototype.feature=function(y){if(y<0||y>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[y];var g=this._pbf.readVarint()+this._pbf.pos;return new dM(this._pbf,g,this.extent,this._keys,this._values)};var BC=o9;function o9(y,g){this.layers=y.readFields(s9,{},g)}function s9(y,g,z){if(y===3){var V=new pm(z,z.readVarint()+z.pos);V.length&&(g[V.name]=V)}}var OC=BC,C1=dM,qC=pm,vm={VectorTile:OC,VectorTileFeature:C1,VectorTileLayer:qC},NC=vm.VectorTileFeature.types,Bw=500,L1=Math.pow(2,13);function fy(y,g,z,V,$,oe,me,je){y.emplaceBack(g,z,Math.floor(V*L1)*2+me,$*L1*2,oe*L1*2,Math.round(je))}var Vv=function(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=g.index,this.hasPattern=!1,this.layoutVertexArray=new En,this.indexArray=new Va,this.programConfigurations=new Ki(g.layers,g.zoom),this.segments=new cu,this.stateDependentLayerIds=this.layers.filter(function(z){return z.isStateDependent()}).map(function(z){return z.id})};Vv.prototype.populate=function(g,z,V){this.features=[],this.hasPattern=Fw("fill-extrusion",this.layers,z);for(var $=0,oe=g;$=1){var _o=Wn[bo-1];if(!l9(ba,_o)){Pr.vertexLength+4>cu.MAX_VERTEX_ARRAY_LENGTH&&(Pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Uo=ba.sub(_o)._perp()._unit(),Zs=_o.dist(ba);bn+Zs>32768&&(bn=0),fy(this.layoutVertexArray,ba.x,ba.y,Uo.x,Uo.y,0,0,bn),fy(this.layoutVertexArray,ba.x,ba.y,Uo.x,Uo.y,0,1,bn),bn+=Zs,fy(this.layoutVertexArray,_o.x,_o.y,Uo.x,Uo.y,0,0,bn),fy(this.layoutVertexArray,_o.x,_o.y,Uo.x,Uo.y,0,1,bn);var Cl=Pr.vertexLength;this.indexArray.emplaceBack(Cl,Cl+2,Cl+1),this.indexArray.emplaceBack(Cl+1,Cl+2,Cl+3),Pr.vertexLength+=4,Pr.primitiveLength+=2}}}}if(Pr.vertexLength+Rt>cu.MAX_VERTEX_ARRAY_LENGTH&&(Pr=this.segments.prepareSegment(Rt,this.layoutVertexArray,this.indexArray)),NC[g.type]==="Polygon"){for(var Tl=[],hu=[],Kl=Pr.vertexLength,lu=0,Bu=xt;luTn)||y.y===g.y&&(y.y<0||y.y>Tn)}function u9(y){return y.every(function(g){return g.x<0})||y.every(function(g){return g.x>Tn})||y.every(function(g){return g.y<0})||y.every(function(g){return g.y>Tn})}var P1=new fi({"fill-extrusion-opacity":new Be(ji["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new qt(ji["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Be(ji["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Be(ji["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new ar(ji["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new qt(ji["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new qt(ji["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Be(ji["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),ld={paint:P1},cy=function(y){function g(z){y.call(this,z,ld)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.createBucket=function(V){return new Vv(V)},g.prototype.queryRadius=function(){return Lp(this.paint.get("fill-extrusion-translate"))},g.prototype.is3D=function(){return!0},g.prototype.queryIntersectsFeature=function(V,$,oe,me,je,xt,Rt,Xt){var xr=Kp(V,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),xt.angle,Rt),qr=this.paint.get("fill-extrusion-height").evaluate($,oe),Pr=this.paint.get("fill-extrusion-base").evaluate($,oe),ai=f9(xr,Xt,xt,0),qi=mM(me,Pr,qr,Xt),Wn=qi[0],bn=qi[1];return UC(Wn,bn,ai)},g}(on);function cg(y,g){return y.x*g.x+y.y*g.y}function vM(y,g){if(y.length===1){for(var z=0,V=g[z++],$;!$||V.equals($);)if($=g[z++],!$)return 1/0;for(;z=2&&g[Rt-1].equals(g[Rt-2]);)Rt--;for(var Xt=0;Xt0;if(Tl&&bo>Xt){var Kl=Pr.dist(ai);if(Kl>2*xr){var lu=Pr.sub(Pr.sub(ai)._mult(xr/Kl)._round());this.updateDistance(ai,lu),this.addCurrentVertex(lu,Wn,0,0,qr),ai=lu}}var Bu=ai&&qi,du=Bu?V:xt?"butt":$;if(Bu&&du==="round"&&(Zsoe&&(du="bevel"),du==="bevel"&&(Zs>2&&(du="flipbevel"),Zs100)ba=bn.mult(-1);else{var gu=Zs*Wn.add(bn).mag()/Wn.sub(bn).mag();ba._perp()._mult(gu*(hu?-1:1))}this.addCurrentVertex(Pr,ba,0,0,qr),this.addCurrentVertex(Pr,ba.mult(-1),0,0,qr)}else if(du==="bevel"||du==="fakeround"){var ff=-Math.sqrt(Zs*Zs-1),Ru=hu?ff:0,Rf=hu?0:ff;if(ai&&this.addCurrentVertex(Pr,Wn,Ru,Rf,qr),du==="fakeround")for(var sc=Math.round(Cl*180/Math.PI/gM),Df=1;Df2*xr){var _h=Pr.add(qi.sub(Pr)._mult(xr/Kh)._round());this.updateDistance(Pr,_h),this.addCurrentVertex(_h,bn,0,0,qr),Pr=_h}}}}},mh.prototype.addCurrentVertex=function(g,z,V,$,oe,me){me===void 0&&(me=!1);var je=z.x+z.y*V,xt=z.y-z.x*V,Rt=-z.x+z.y*$,Xt=-z.y-z.x*$;this.addHalfVertex(g,je,xt,me,!1,V,oe),this.addHalfVertex(g,Rt,Xt,me,!0,-$,oe),this.distance>eb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(g,z,V,$,oe,me))},mh.prototype.addHalfVertex=function(g,z,V,$,oe,me,je){var xt=g.x,Rt=g.y,Xt=this.lineClips?this.scaledDistance*(eb-1):this.scaledDistance,xr=Xt*qw;if(this.layoutVertexArray.emplaceBack((xt<<1)+($?1:0),(Rt<<1)+(oe?1:0),Math.round(Ow*z)+128,Math.round(Ow*V)+128,(me===0?0:me<0?-1:1)+1|(xr&63)<<2,xr>>6),this.lineClips){var qr=this.scaledDistance-this.lineClips.start,Pr=this.lineClips.end-this.lineClips.start,ai=qr/Pr;this.layoutVertexArray2.emplaceBack(ai,this.lineClipsArray.length)}var qi=je.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,qi),je.primitiveLength++),oe?this.e2=qi:this.e1=qi},mh.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},mh.prototype.updateDistance=function(g,z){this.distance+=g.dist(z),this.updateScaledDistance()},Z("LineBucket",mh,{omit:["layers","patternFeatures"]});var _M=new fi({"line-cap":new Be(ji.layout_line["line-cap"]),"line-join":new qt(ji.layout_line["line-join"]),"line-miter-limit":new Be(ji.layout_line["line-miter-limit"]),"line-round-limit":new Be(ji.layout_line["line-round-limit"]),"line-sort-key":new qt(ji.layout_line["line-sort-key"])}),xM=new fi({"line-opacity":new qt(ji.paint_line["line-opacity"]),"line-color":new qt(ji.paint_line["line-color"]),"line-translate":new Be(ji.paint_line["line-translate"]),"line-translate-anchor":new Be(ji.paint_line["line-translate-anchor"]),"line-width":new qt(ji.paint_line["line-width"]),"line-gap-width":new qt(ji.paint_line["line-gap-width"]),"line-offset":new qt(ji.paint_line["line-offset"]),"line-blur":new qt(ji.paint_line["line-blur"]),"line-dasharray":new Qr(ji.paint_line["line-dasharray"]),"line-pattern":new ar(ji.paint_line["line-pattern"]),"line-gradient":new mi(ji.paint_line["line-gradient"])}),Nw={paint:xM,layout:_M},h9=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.possiblyEvaluate=function(V,$){return $=new ds(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),y.prototype.possiblyEvaluate.call(this,V,$)},g.prototype.evaluate=function(V,$,oe,me){return $=_({},$,{zoom:Math.floor($.zoom)}),y.prototype.evaluate.call(this,V,$,oe,me)},g}(qt),I=new h9(Nw.paint.properties["line-width"].specification);I.useIntegerZoom=!0;var S=function(y){function g(z){y.call(this,z,Nw),this.gradientVersion=0}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._handleSpecialPaintPropertyUpdate=function(V){if(V==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof Do,this.gradientVersion=(this.gradientVersion+1)%d}},g.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},g.prototype.recalculate=function(V,$){y.prototype.recalculate.call(this,V,$),this.paint._values["line-floorwidth"]=I.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,V)},g.prototype.createBucket=function(V){return new mh(V)},g.prototype.queryRadius=function(V){var $=V,oe=D(Md("line-width",this,$),Md("line-gap-width",this,$)),me=Md("line-offset",this,$);return oe/2+Math.abs(me)+Lp(this.paint.get("line-translate"))},g.prototype.queryIntersectsFeature=function(V,$,oe,me,je,xt,Rt){var Xt=Kp(V,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),xt.angle,Rt),xr=Rt/2*D(this.paint.get("line-width").evaluate($,oe),this.paint.get("line-gap-width").evaluate($,oe)),qr=this.paint.get("line-offset").evaluate($,oe);return qr&&(me=X(me,qr*Rt)),Vf(Xt,me,xr)},g.prototype.isTileClipped=function(){return!0},g}(on);function D(y,g){return g>0?g+2*y:y}function X(y,g){for(var z=[],V=new l(0,0),$=0;$":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function La(y){for(var g="",z=0;z>1,Xt=-7,xr=z?$-1:0,qr=z?-1:1,Pr=y[g+xr];for(xr+=qr,oe=Pr&(1<<-Xt)-1,Pr>>=-Xt,Xt+=je;Xt>0;oe=oe*256+y[g+xr],xr+=qr,Xt-=8);for(me=oe&(1<<-Xt)-1,oe>>=-Xt,Xt+=V;Xt>0;me=me*256+y[g+xr],xr+=qr,Xt-=8);if(oe===0)oe=1-Rt;else{if(oe===xt)return me?NaN:(Pr?-1:1)*(1/0);me=me+Math.pow(2,V),oe=oe-Rt}return(Pr?-1:1)*me*Math.pow(2,oe-V)},mu=function(y,g,z,V,$,oe){var me,je,xt,Rt=oe*8-$-1,Xt=(1<>1,qr=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,Pr=V?0:oe-1,ai=V?1:-1,qi=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(je=isNaN(g)?1:0,me=Xt):(me=Math.floor(Math.log(g)/Math.LN2),g*(xt=Math.pow(2,-me))<1&&(me--,xt*=2),me+xr>=1?g+=qr/xt:g+=qr*Math.pow(2,1-xr),g*xt>=2&&(me++,xt/=2),me+xr>=Xt?(je=0,me=Xt):me+xr>=1?(je=(g*xt-1)*Math.pow(2,$),me=me+xr):(je=g*Math.pow(2,xr-1)*Math.pow(2,$),me=0));$>=8;y[z+Pr]=je&255,Pr+=ai,je/=256,$-=8);for(me=me<<$|je,Rt+=$;Rt>0;y[z+Pr]=me&255,Pr+=ai,me/=256,Rt-=8);y[z+Pr-ai]|=qi*128},Iu={read:kl,write:mu},su=yl;function yl(y){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(y)?y:new Uint8Array(y||0),this.pos=0,this.type=0,this.length=this.buf.length}yl.Varint=0,yl.Fixed64=1,yl.Bytes=2,yl.Fixed32=5;var Eu=65536*65536,bu=1/Eu,_u=12,Xs=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");yl.prototype={destroy:function(){this.buf=null},readFields:function(y,g,z){for(z=z||this.length;this.pos>3,oe=this.pos;this.type=V&7,y($,g,this),this.pos===oe&&this.skip(V)}return g},readMessage:function(y,g){return this.readFields(y,g,this.readVarint()+this.pos)},readFixed32:function(){var y=Xh(this.buf,this.pos);return this.pos+=4,y},readSFixed32:function(){var y=Rp(this.buf,this.pos);return this.pos+=4,y},readFixed64:function(){var y=Xh(this.buf,this.pos)+Xh(this.buf,this.pos+4)*Eu;return this.pos+=8,y},readSFixed64:function(){var y=Xh(this.buf,this.pos)+Rp(this.buf,this.pos+4)*Eu;return this.pos+=8,y},readFloat:function(){var y=Iu.read(this.buf,this.pos,!0,23,4);return this.pos+=4,y},readDouble:function(){var y=Iu.read(this.buf,this.pos,!0,52,8);return this.pos+=8,y},readVarint:function(y){var g=this.buf,z,V;return V=g[this.pos++],z=V&127,V<128||(V=g[this.pos++],z|=(V&127)<<7,V<128)||(V=g[this.pos++],z|=(V&127)<<14,V<128)||(V=g[this.pos++],z|=(V&127)<<21,V<128)?z:(V=g[this.pos],z|=(V&15)<<28,Lu(z,y,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var y=this.readVarint();return y%2===1?(y+1)/-2:y/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var y=this.readVarint()+this.pos,g=this.pos;return this.pos=y,y-g>=_u&&Xs?jf(this.buf,g,y):fp(this.buf,g,y)},readBytes:function(){var y=this.readVarint()+this.pos,g=this.buf.subarray(this.pos,y);return this.pos=y,g},readPackedVarint:function(y,g){if(this.type!==yl.Bytes)return y.push(this.readVarint(g));var z=xu(this);for(y=y||[];this.pos127;);else if(g===yl.Bytes)this.pos=this.readVarint()+this.pos;else if(g===yl.Fixed32)this.pos+=4;else if(g===yl.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+g)},writeTag:function(y,g){this.writeVarint(y<<3|g)},realloc:function(y){for(var g=this.length||16;g268435455||y<0){vc(y,this);return}this.realloc(4),this.buf[this.pos++]=y&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=(y>>>=7)&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=(y>>>=7)&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=y>>>7&127)))},writeSVarint:function(y){this.writeVarint(y<0?-y*2-1:y*2)},writeBoolean:function(y){this.writeVarint(!!y)},writeString:function(y){y=String(y),this.realloc(y.length*4),this.pos++;var g=this.pos;this.pos=Ac(this.buf,y,this.pos);var z=this.pos-g;z>=128&&$p(g,z,this),this.pos=g-1,this.writeVarint(z),this.pos+=z},writeFloat:function(y){this.realloc(4),Iu.write(this.buf,y,this.pos,!0,23,4),this.pos+=4},writeDouble:function(y){this.realloc(8),Iu.write(this.buf,y,this.pos,!0,52,8),this.pos+=8},writeBytes:function(y){var g=y.length;this.writeVarint(g),this.realloc(g);for(var z=0;z=128&&$p(z,V,this),this.pos=z-1,this.writeVarint(V),this.pos+=V},writeMessage:function(y,g,z){this.writeTag(y,yl.Bytes),this.writeRawMessage(g,z)},writePackedVarint:function(y,g){g.length&&this.writeMessage(y,ud,g)},writePackedSVarint:function(y,g){g.length&&this.writeMessage(y,Lh,g)},writePackedBoolean:function(y,g){g.length&&this.writeMessage(y,Xd,g)},writePackedFloat:function(y,g){g.length&&this.writeMessage(y,Wd,g)},writePackedDouble:function(y,g){g.length&&this.writeMessage(y,jd,g)},writePackedFixed32:function(y,g){g.length&&this.writeMessage(y,Jc,g)},writePackedSFixed32:function(y,g){g.length&&this.writeMessage(y,Ph,g)},writePackedFixed64:function(y,g){g.length&&this.writeMessage(y,Cd,g)},writePackedSFixed64:function(y,g){g.length&&this.writeMessage(y,fd,g)},writeBytesField:function(y,g){this.writeTag(y,yl.Bytes),this.writeBytes(g)},writeFixed32Field:function(y,g){this.writeTag(y,yl.Fixed32),this.writeFixed32(g)},writeSFixed32Field:function(y,g){this.writeTag(y,yl.Fixed32),this.writeSFixed32(g)},writeFixed64Field:function(y,g){this.writeTag(y,yl.Fixed64),this.writeFixed64(g)},writeSFixed64Field:function(y,g){this.writeTag(y,yl.Fixed64),this.writeSFixed64(g)},writeVarintField:function(y,g){this.writeTag(y,yl.Varint),this.writeVarint(g)},writeSVarintField:function(y,g){this.writeTag(y,yl.Varint),this.writeSVarint(g)},writeStringField:function(y,g){this.writeTag(y,yl.Bytes),this.writeString(g)},writeFloatField:function(y,g){this.writeTag(y,yl.Fixed32),this.writeFloat(g)},writeDoubleField:function(y,g){this.writeTag(y,yl.Fixed64),this.writeDouble(g)},writeBooleanField:function(y,g){this.writeVarintField(y,!!g)}};function Lu(y,g,z){var V=z.buf,$,oe;if(oe=V[z.pos++],$=(oe&112)>>4,oe<128||(oe=V[z.pos++],$|=(oe&127)<<3,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<10,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<17,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<24,oe<128)||(oe=V[z.pos++],$|=(oe&1)<<31,oe<128))return qu(y,$,g);throw new Error("Expected varint not more than 10 bytes")}function xu(y){return y.type===yl.Bytes?y.readVarint()+y.pos:y.pos+1}function qu(y,g,z){return z?g*4294967296+(y>>>0):(g>>>0)*4294967296+(y>>>0)}function vc(y,g){var z,V;if(y>=0?(z=y%4294967296|0,V=y/4294967296|0):(z=~(-y%4294967296),V=~(-y/4294967296),z^4294967295?z=z+1|0:(z=0,V=V+1|0)),y>=18446744073709552e3||y<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");g.realloc(10),cc(z,V,g),Ch(V,g)}function cc(y,g,z){z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos]=y&127}function Ch(y,g){var z=(y&7)<<4;g.buf[g.pos++]|=z|((y>>>=3)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127)))))}function $p(y,g,z){var V=g<=16383?1:g<=2097151?2:g<=268435455?3:Math.floor(Math.log(g)/(Math.LN2*7));z.realloc(V);for(var $=z.pos-1;$>=y;$--)z.buf[$+V]=z.buf[$]}function ud(y,g){for(var z=0;z>>8,y[z+2]=g>>>16,y[z+3]=g>>>24}function Rp(y,g){return(y[g]|y[g+1]<<8|y[g+2]<<16)+(y[g+3]<<24)}function fp(y,g,z){for(var V="",$=g;$239?4:oe>223?3:oe>191?2:1;if($+je>z)break;var xt,Rt,Xt;je===1?oe<128&&(me=oe):je===2?(xt=y[$+1],(xt&192)===128&&(me=(oe&31)<<6|xt&63,me<=127&&(me=null))):je===3?(xt=y[$+1],Rt=y[$+2],(xt&192)===128&&(Rt&192)===128&&(me=(oe&15)<<12|(xt&63)<<6|Rt&63,(me<=2047||me>=55296&&me<=57343)&&(me=null))):je===4&&(xt=y[$+1],Rt=y[$+2],Xt=y[$+3],(xt&192)===128&&(Rt&192)===128&&(Xt&192)===128&&(me=(oe&15)<<18|(xt&63)<<12|(Rt&63)<<6|Xt&63,(me<=65535||me>=1114112)&&(me=null))),me===null?(me=65533,je=1):me>65535&&(me-=65536,V+=String.fromCharCode(me>>>10&1023|55296),me=56320|me&1023),V+=String.fromCharCode(me),$+=je}return V}function jf(y,g,z){return Xs.decode(y.subarray(g,z))}function Ac(y,g,z){for(var V=0,$,oe;V55295&&$<57344)if(oe)if($<56320){y[z++]=239,y[z++]=191,y[z++]=189,oe=$;continue}else $=oe-55296<<10|$-56320|65536,oe=null;else{$>56319||V+1===g.length?(y[z++]=239,y[z++]=191,y[z++]=189):oe=$;continue}else oe&&(y[z++]=239,y[z++]=191,y[z++]=189,oe=null);$<128?y[z++]=$:($<2048?y[z++]=$>>6|192:($<65536?y[z++]=$>>12|224:(y[z++]=$>>18|240,y[z++]=$>>12&63|128),y[z++]=$>>6&63|128),y[z++]=$&63|128)}return z}var mc=3;function Dp(y,g,z){y===1&&z.readMessage(Hc,g)}function Hc(y,g,z){if(y===3){var V=z.readMessage(z1,{}),$=V.id,oe=V.bitmap,me=V.width,je=V.height,xt=V.left,Rt=V.top,Xt=V.advance;g.push({id:$,bitmap:new Ip({width:me+2*mc,height:je+2*mc},oe),metrics:{width:me,height:je,left:xt,top:Rt,advance:Xt}})}}function z1(y,g,z){y===1?g.id=z.readVarint():y===2?g.bitmap=z.readBytes():y===3?g.width=z.readVarint():y===4?g.height=z.readVarint():y===5?g.left=z.readSVarint():y===6?g.top=z.readSVarint():y===7&&(g.advance=z.readVarint())}function v0(y){return new su(y).readFields(Dp,[])}var Gv=mc;function Qp(y){for(var g=0,z=0,V=0,$=y;V<$.length;V+=1){var oe=$[V];g+=oe.w*oe.h,z=Math.max(z,oe.w)}y.sort(function(Wn,bn){return bn.h-Wn.h});for(var me=Math.max(Math.ceil(Math.sqrt(g/.95)),z),je=[{x:0,y:0,w:me,h:1/0}],xt=0,Rt=0,Xt=0,xr=y;Xt=0;Pr--){var ai=je[Pr];if(!(qr.w>ai.w||qr.h>ai.h)){if(qr.x=ai.x,qr.y=ai.y,Rt=Math.max(Rt,qr.y+qr.h),xt=Math.max(xt,qr.x+qr.w),qr.w===ai.w&&qr.h===ai.h){var qi=je.pop();Pr=0&&$>=g&&y0[this.text.charCodeAt($)];$--)V--;this.text=this.text.substring(g,V),this.sectionIndex=this.sectionIndex.slice(g,V)},Zh.prototype.substring=function(g,z){var V=new Zh;return V.text=this.text.substring(g,z),V.sectionIndex=this.sectionIndex.slice(g,z),V.sections=this.sections,V},Zh.prototype.toString=function(){return this.text},Zh.prototype.getMaxScale=function(){var g=this;return this.sectionIndex.reduce(function(z,V){return Math.max(z,g.sections[V].scale)},0)},Zh.prototype.addTextSection=function(g,z){this.text+=g.text,this.sections.push(hg.forText(g.scale,g.fontStack||z));for(var V=this.sections.length-1,$=0;$=m0?null:++this.imageSectionID:(this.imageSectionID=Uw,this.imageSectionID)};function d9(y,g){for(var z=[],V=y.text,$=0,oe=0,me=g;oe=0,Xt=0,xr=0;xr0&&_h>hu&&(hu=_h)}else{var Ff=z[lu.fontStack],zf=Ff&&Ff[du];if(zf&&zf.rect)Ru=zf.rect,ff=zf.metrics;else{var yc=g[lu.fontStack],Tc=yc&&yc[du];if(!Tc)continue;ff=Tc.metrics}gu=(Uo-lu.scale)*So}Df?(y.verticalizable=!0,Tl.push({glyph:du,imageName:Rf,x:qr,y:Pr+gu,vertical:Df,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Bu,metrics:ff,rect:Ru}),qr+=sc*lu.scale+Rt):(Tl.push({glyph:du,imageName:Rf,x:qr,y:Pr+gu,vertical:Df,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Bu,metrics:ff,rect:Ru}),qr+=ff.advance*lu.scale+Rt)}if(Tl.length!==0){var Yd=qr-Rt;ai=Math.max(Yd,ai),y9(Tl,0,Tl.length-1,Wn,hu)}qr=0;var Kd=oe*Uo+hu;Cl.lineOffset=Math.max(hu,Zs),Pr+=Kd,qi=Math.max(Kd,qi),++bn}var Jh=Pr-I1,dp=wM(me),pp=dp.horizontalAlign,zh=dp.verticalAlign;Ld(y.positionedLines,Wn,pp,zh,ai,qi,oe,Jh,$.length),y.top+=-zh*Jh,y.bottom=y.top+Jh,y.left+=-pp*ai,y.right=y.left+ai}function y9(y,g,z,V,$){if(!(!V&&!$))for(var oe=y[z],me=oe.metrics.advance*oe.scale,je=(y[z].x+me)*V,xt=g;xt<=z;xt++)y[xt].x-=je,y[xt].y+=$}function Ld(y,g,z,V,$,oe,me,je,xt){var Rt=(g-z)*$,Xt=0;oe!==me?Xt=-je*V-I1:Xt=(-V*xt+.5)*me;for(var xr=0,qr=y;xr-z/2;){if(me--,me<0)return!1;je-=y[me].dist(oe),oe=y[me]}je+=y[me].dist(y[me+1]),me++;for(var xt=[],Rt=0;jeV;)Rt-=xt.shift().angleDelta;if(Rt>$)return!1;me++,je+=xr.dist(qr)}return!0}function HQ(y){for(var g=0,z=0;zRt){var ai=(Rt-xt)/Pr,qi=Lo(xr.x,qr.x,ai),Wn=Lo(xr.y,qr.y,ai),bn=new Zd(qi,Wn,qr.angleTo(xr),Xt);return bn._round(),!me||GQ(y,bn,je,me,g)?bn:void 0}xt+=Pr}}function Get(y,g,z,V,$,oe,me,je,xt){var Rt=WQ(V,oe,me),Xt=jQ(V,$),xr=Xt*me,qr=y[0].x===0||y[0].x===xt||y[0].y===0||y[0].y===xt;g-xr=0&&_o=0&&Uo=0&&qr+Rt<=Xt){var Zs=new Zd(_o,Uo,bo,ai);Zs._round(),(!V||GQ(y,Zs,oe,V,$))&&Pr.push(Zs)}}xr+=bn}return!je&&!Pr.length&&!me&&(Pr=XQ(y,xr/2,z,V,$,oe,me,!0,xt)),Pr}function ZQ(y,g,z,V,$){for(var oe=[],me=0;me=V&&xr.x>=V)&&(Xt.x>=V?Xt=new l(V,Xt.y+(xr.y-Xt.y)*((V-Xt.x)/(xr.x-Xt.x)))._round():xr.x>=V&&(xr=new l(V,Xt.y+(xr.y-Xt.y)*((V-Xt.x)/(xr.x-Xt.x)))._round()),!(Xt.y>=$&&xr.y>=$)&&(Xt.y>=$?Xt=new l(Xt.x+(xr.x-Xt.x)*(($-Xt.y)/(xr.y-Xt.y)),$)._round():xr.y>=$&&(xr=new l(Xt.x+(xr.x-Xt.x)*(($-Xt.y)/(xr.y-Xt.y)),$)._round()),(!xt||!Xt.equals(xt[xt.length-1]))&&(xt=[Xt],oe.push(xt)),xt.push(xr)))))}return oe}var Hw=Rc;function YQ(y,g,z,V){var $=[],oe=y.image,me=oe.pixelRatio,je=oe.paddedRect.w-2*Hw,xt=oe.paddedRect.h-2*Hw,Rt=y.right-y.left,Xt=y.bottom-y.top,xr=oe.stretchX||[[0,je]],qr=oe.stretchY||[[0,xt]],Pr=function(Ff,zf){return Ff+zf[1]-zf[0]},ai=xr.reduce(Pr,0),qi=qr.reduce(Pr,0),Wn=je-ai,bn=xt-qi,bo=0,ba=ai,_o=0,Uo=qi,Zs=0,Cl=Wn,Tl=0,hu=bn;if(oe.content&&V){var Kl=oe.content;bo=YC(xr,0,Kl[0]),_o=YC(qr,0,Kl[1]),ba=YC(xr,Kl[0],Kl[2]),Uo=YC(qr,Kl[1],Kl[3]),Zs=Kl[0]-bo,Tl=Kl[1]-_o,Cl=Kl[2]-Kl[0]-ba,hu=Kl[3]-Kl[1]-Uo}var lu=function(Ff,zf,yc,Tc){var $c=KC(Ff.stretch-bo,ba,Rt,y.left),ih=JC(Ff.fixed-Zs,Cl,Ff.stretch,ai),Kh=KC(zf.stretch-_o,Uo,Xt,y.top),_h=JC(zf.fixed-Tl,hu,zf.stretch,qi),Yd=KC(yc.stretch-bo,ba,Rt,y.left),Kd=JC(yc.fixed-Zs,Cl,yc.stretch,ai),Jh=KC(Tc.stretch-_o,Uo,Xt,y.top),dp=JC(Tc.fixed-Tl,hu,Tc.stretch,qi),pp=new l($c,Kh),zh=new l(Yd,Kh),vp=new l(Yd,Jh),gv=new l($c,Jh),vg=new l(ih/me,_h/me),F1=new l(Kd/me,dp/me),B1=g*Math.PI/180;if(B1){var O1=Math.sin(B1),$w=Math.cos(B1),g0=[$w,-O1,O1,$w];pp._matMult(g0),zh._matMult(g0),gv._matMult(g0),vp._matMult(g0)}var iL=Ff.stretch+Ff.fixed,S9=yc.stretch+yc.fixed,nL=zf.stretch+zf.fixed,M9=Tc.stretch+Tc.fixed,Hv={x:oe.paddedRect.x+Hw+iL,y:oe.paddedRect.y+Hw+nL,w:S9-iL,h:M9-nL},Qw=Cl/me/Rt,aL=hu/me/Xt;return{tl:pp,tr:zh,bl:gv,br:vp,tex:Hv,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:vg,pixelOffsetBR:F1,minFontScaleX:Qw,minFontScaleY:aL,isSDF:z}};if(!V||!oe.stretchX&&!oe.stretchY)$.push(lu({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:je+1},{fixed:0,stretch:xt+1}));else for(var Bu=KQ(xr,Wn,ai),du=KQ(qr,bn,qi),gu=0;gu0&&(ai=Math.max(10,ai),this.circleDiameter=ai)}else{var qi=me.top*je-xt,Wn=me.bottom*je+xt,bn=me.left*je-xt,bo=me.right*je+xt,ba=me.collisionPadding;if(ba&&(bn-=ba[0]*je,qi-=ba[1]*je,bo+=ba[2]*je,Wn+=ba[3]*je),Xt){var _o=new l(bn,qi),Uo=new l(bo,qi),Zs=new l(bn,Wn),Cl=new l(bo,Wn),Tl=Xt*Math.PI/180;_o._rotate(Tl),Uo._rotate(Tl),Zs._rotate(Tl),Cl._rotate(Tl),bn=Math.min(_o.x,Uo.x,Zs.x,Cl.x),bo=Math.max(_o.x,Uo.x,Zs.x,Cl.x),qi=Math.min(_o.y,Uo.y,Zs.y,Cl.y),Wn=Math.max(_o.y,Uo.y,Zs.y,Cl.y)}g.emplaceBack(z.x,z.y,bn,qi,bo,Wn,V,$,oe)}this.boxEndIndex=g.length},Ww=function(g,z){if(g===void 0&&(g=[]),z===void 0&&(z=Wet),this.data=g,this.length=this.data.length,this.compare=z,this.length>0)for(var V=(this.length>>1)-1;V>=0;V--)this._down(V)};Ww.prototype.push=function(g){this.data.push(g),this.length++,this._up(this.length-1)},Ww.prototype.pop=function(){if(this.length!==0){var g=this.data[0],z=this.data.pop();return this.length--,this.length>0&&(this.data[0]=z,this._down(0)),g}},Ww.prototype.peek=function(){return this.data[0]},Ww.prototype._up=function(g){for(var z=this,V=z.data,$=z.compare,oe=V[g];g>0;){var me=g-1>>1,je=V[me];if($(oe,je)>=0)break;V[g]=je,g=me}V[g]=oe},Ww.prototype._down=function(g){for(var z=this,V=z.data,$=z.compare,oe=this.length>>1,me=V[g];g=0)break;V[g]=xt,g=je}V[g]=me};function Wet(y,g){return yg?1:0}function jet(y,g,z){g===void 0&&(g=1),z===void 0&&(z=!1);for(var V=1/0,$=1/0,oe=-1/0,me=-1/0,je=y[0],xt=0;xtoe)&&(oe=Rt.x),(!xt||Rt.y>me)&&(me=Rt.y)}var Xt=oe-V,xr=me-$,qr=Math.min(Xt,xr),Pr=qr/2,ai=new Ww([],Xet);if(qr===0)return new l(V,$);for(var qi=V;qibn.d||!bn.d)&&(bn=ba,z&&console.log("found best %d after %d probes",Math.round(1e4*ba.d)/1e4,bo)),!(ba.max-bn.d<=g)&&(Pr=ba.h/2,ai.push(new jw(ba.p.x-Pr,ba.p.y-Pr,Pr,y)),ai.push(new jw(ba.p.x+Pr,ba.p.y-Pr,Pr,y)),ai.push(new jw(ba.p.x-Pr,ba.p.y+Pr,Pr,y)),ai.push(new jw(ba.p.x+Pr,ba.p.y+Pr,Pr,y)),bo+=4)}return z&&(console.log("num probes: "+bo),console.log("best distance: "+bn.d)),bn.p}function Xet(y,g){return g.max-y.max}function jw(y,g,z,V){this.p=new l(y,g),this.h=z,this.d=Zet(this.p,V),this.max=this.d+this.h*Math.SQRT2}function Zet(y,g){for(var z=!1,V=1/0,$=0;$y.y!=Xt.y>y.y&&y.x<(Xt.x-Rt.x)*(y.y-Rt.y)/(Xt.y-Rt.y)+Rt.x&&(z=!z),V=Math.min(V,fm(y,Rt,Xt))}return(z?1:-1)*Math.sqrt(V)}function Yet(y){for(var g=0,z=0,V=0,$=y[0],oe=0,me=$.length,je=me-1;oe=Tn||g0.y<0||g0.y>=Tn||$et(y,g0,$w,z,V,$,du,y.layers[0],y.collisionBoxArray,g.index,g.sourceLayerIndex,y.index,bn,Uo,Tl,xt,ba,Zs,hu,Pr,g,oe,Rt,Xt,me)};if(Kl==="line")for(var ff=0,Ru=ZQ(g.geometry,0,0,Tn,Tn);ff1){var Kh=Vet(ih,Cl,z.vertical||ai,V,qi,bo);Kh&&gu(ih,Kh)}}else if(g.type==="Polygon")for(var _h=0,Yd=Dw(g.geometry,0);_hR1&&re(y.layerIds[0]+': Value for "text-size" is >= '+AM+'. Reduce your "text-size".')):Wn.kind==="composite"&&(bn=[Pd*Pr.compositeTextSizes[0].evaluate(me,{},ai),Pd*Pr.compositeTextSizes[1].evaluate(me,{},ai)],(bn[0]>R1||bn[1]>R1)&&re(y.layerIds[0]+': Value for "text-size" is >= '+AM+'. Reduce your "text-size".')),y.addSymbols(y.text,qi,bn,je,oe,me,Rt,g,xt.lineStartIndex,xt.lineLength,qr,ai);for(var bo=0,ba=Xt;boR1&&re(y.layerIds[0]+': Value for "icon-size" is >= '+AM+'. Reduce your "icon-size".')):pp.kind==="composite"&&(zh=[Pd*Uo.compositeIconSizes[0].evaluate(_o,{},Cl),Pd*Uo.compositeIconSizes[1].evaluate(_o,{},Cl)],(zh[0]>R1||zh[1]>R1)&&re(y.layerIds[0]+': Value for "icon-size" is >= '+AM+'. Reduce your "icon-size".')),y.addSymbols(y.icon,Jh,zh,ba,bo,_o,!1,g,Kl.lineStartIndex,Kl.lineLength,-1,Cl),Df=y.icon.placedSymbolArray.length-1,dp&&(Ru=dp.length*4,y.addSymbols(y.icon,dp,zh,ba,bo,_o,cp.vertical,g,Kl.lineStartIndex,Kl.lineLength,-1,Cl),Ff=y.icon.placedSymbolArray.length-1)}for(var vp in V.horizontal){var gv=V.horizontal[vp];if(!lu){yc=K(gv.text);var vg=je.layout.get("text-rotate").evaluate(_o,{},Cl);lu=new $C(xt,g,Rt,Xt,xr,gv,qr,Pr,ai,vg)}var F1=gv.positionedLines.length===1;if(Rf+=$Q(y,g,gv,oe,je,ai,_o,qi,Kl,V.vertical?cp.horizontal:cp.horizontalOnly,F1?Object.keys(V.horizontal):[vp],zf,Df,Uo,Cl),F1)break}V.vertical&&(sc+=$Q(y,g,V.vertical,oe,je,ai,_o,qi,Kl,cp.vertical,["vertical"],zf,Ff,Uo,Cl));var B1=lu?lu.boxStartIndex:y.collisionBoxArray.length,O1=lu?lu.boxEndIndex:y.collisionBoxArray.length,$w=du?du.boxStartIndex:y.collisionBoxArray.length,g0=du?du.boxEndIndex:y.collisionBoxArray.length,iL=Bu?Bu.boxStartIndex:y.collisionBoxArray.length,S9=Bu?Bu.boxEndIndex:y.collisionBoxArray.length,nL=gu?gu.boxStartIndex:y.collisionBoxArray.length,M9=gu?gu.boxEndIndex:y.collisionBoxArray.length,Hv=-1,Qw=function(MM,vee){return MM&&MM.circleDiameter?Math.max(MM.circleDiameter,vee):vee};Hv=Qw(lu,Hv),Hv=Qw(du,Hv),Hv=Qw(Bu,Hv),Hv=Qw(gu,Hv);var aL=Hv>-1?1:0;aL&&(Hv*=Tl/So),y.glyphOffsetArray.length>=oc.MAX_GLYPHS&&re("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),_o.sortKey!==void 0&&y.addToSortKeyRanges(y.symbolInstances.length,_o.sortKey),y.symbolInstances.emplaceBack(g.x,g.y,zf.right>=0?zf.right:-1,zf.center>=0?zf.center:-1,zf.left>=0?zf.left:-1,zf.vertical||-1,Df,Ff,yc,B1,O1,$w,g0,iL,S9,nL,M9,Rt,Rf,sc,ff,Ru,aL,0,qr,Tc,$c,Hv)}function Qet(y,g,z,V){var $=y.compareText;if(!(g in $))$[g]=[];else for(var oe=$[g],me=oe.length-1;me>=0;me--)if(V.dist(oe[me])0)&&(me.value.kind!=="constant"||me.value.value.length>0),Xt=xt.value.kind!=="constant"||!!xt.value.value||Object.keys(xt.parameters).length>0,xr=oe.get("symbol-sort-key");if(this.features=[],!(!Rt&&!Xt)){for(var qr=z.iconDependencies,Pr=z.glyphDependencies,ai=z.availableImages,qi=new ds(this.zoom),Wn=0,bn=g;Wn=0;for(var sc=0,Df=hu.sections;sc=0;xt--)me[xt]={x:z[xt].x,y:z[xt].y,tileUnitDistanceFromAnchor:oe},xt>0&&(oe+=z[xt-1].dist(z[xt]));for(var Rt=0;Rt0},oc.prototype.hasIconData=function(){return this.icon.segments.get().length>0},oc.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},oc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},oc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},oc.prototype.addIndicesForPlacedSymbol=function(g,z){for(var V=g.placedSymbolArray.get(z),$=V.vertexStartIndex+V.numGlyphs*4,oe=V.vertexStartIndex;oe<$;oe+=4)g.indexArray.emplaceBack(oe,oe+1,oe+2),g.indexArray.emplaceBack(oe+1,oe+2,oe+3)},oc.prototype.getSortedSymbolIndexes=function(g){if(this.sortedAngle===g&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var z=Math.sin(g),V=Math.cos(g),$=[],oe=[],me=[],je=0;je1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(g),this.sortedAngle=g,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var V=0,$=this.symbolInstanceIndexes;V<$.length;V+=1){var oe=$[V],me=this.symbolInstances.get(oe);this.featureSortOrder.push(me.featureIndex),[me.rightJustifiedTextSymbolIndex,me.centerJustifiedTextSymbolIndex,me.leftJustifiedTextSymbolIndex].forEach(function(je,xt,Rt){je>=0&&Rt.indexOf(je)===xt&&z.addIndicesForPlacedSymbol(z.text,je)}),me.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,me.verticalPlacedTextSymbolIndex),me.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,me.placedIconSymbolIndex),me.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,me.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Z("SymbolBucket",oc,{omit:["layers","collisionBoxArray","features","compareText"]}),oc.MAX_GLYPHS=65535,oc.addDynamicAttributes=x9;function itt(y,g){return g.replace(/{([^{}]+)}/g,function(z,V){return V in y?String(y[V]):""})}var ntt=new fi({"symbol-placement":new Be(ji.layout_symbol["symbol-placement"]),"symbol-spacing":new Be(ji.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Be(ji.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new qt(ji.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Be(ji.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Be(ji.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Be(ji.layout_symbol["icon-ignore-placement"]),"icon-optional":new Be(ji.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Be(ji.layout_symbol["icon-rotation-alignment"]),"icon-size":new qt(ji.layout_symbol["icon-size"]),"icon-text-fit":new Be(ji.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Be(ji.layout_symbol["icon-text-fit-padding"]),"icon-image":new qt(ji.layout_symbol["icon-image"]),"icon-rotate":new qt(ji.layout_symbol["icon-rotate"]),"icon-padding":new Be(ji.layout_symbol["icon-padding"]),"icon-keep-upright":new Be(ji.layout_symbol["icon-keep-upright"]),"icon-offset":new qt(ji.layout_symbol["icon-offset"]),"icon-anchor":new qt(ji.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Be(ji.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Be(ji.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Be(ji.layout_symbol["text-rotation-alignment"]),"text-field":new qt(ji.layout_symbol["text-field"]),"text-font":new qt(ji.layout_symbol["text-font"]),"text-size":new qt(ji.layout_symbol["text-size"]),"text-max-width":new qt(ji.layout_symbol["text-max-width"]),"text-line-height":new Be(ji.layout_symbol["text-line-height"]),"text-letter-spacing":new qt(ji.layout_symbol["text-letter-spacing"]),"text-justify":new qt(ji.layout_symbol["text-justify"]),"text-radial-offset":new qt(ji.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Be(ji.layout_symbol["text-variable-anchor"]),"text-anchor":new qt(ji.layout_symbol["text-anchor"]),"text-max-angle":new Be(ji.layout_symbol["text-max-angle"]),"text-writing-mode":new Be(ji.layout_symbol["text-writing-mode"]),"text-rotate":new qt(ji.layout_symbol["text-rotate"]),"text-padding":new Be(ji.layout_symbol["text-padding"]),"text-keep-upright":new Be(ji.layout_symbol["text-keep-upright"]),"text-transform":new qt(ji.layout_symbol["text-transform"]),"text-offset":new qt(ji.layout_symbol["text-offset"]),"text-allow-overlap":new Be(ji.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Be(ji.layout_symbol["text-ignore-placement"]),"text-optional":new Be(ji.layout_symbol["text-optional"])}),att=new fi({"icon-opacity":new qt(ji.paint_symbol["icon-opacity"]),"icon-color":new qt(ji.paint_symbol["icon-color"]),"icon-halo-color":new qt(ji.paint_symbol["icon-halo-color"]),"icon-halo-width":new qt(ji.paint_symbol["icon-halo-width"]),"icon-halo-blur":new qt(ji.paint_symbol["icon-halo-blur"]),"icon-translate":new Be(ji.paint_symbol["icon-translate"]),"icon-translate-anchor":new Be(ji.paint_symbol["icon-translate-anchor"]),"text-opacity":new qt(ji.paint_symbol["text-opacity"]),"text-color":new qt(ji.paint_symbol["text-color"],{runtimeType:vn,getOverride:function(y){return y.textColor},hasOverride:function(y){return!!y.textColor}}),"text-halo-color":new qt(ji.paint_symbol["text-halo-color"]),"text-halo-width":new qt(ji.paint_symbol["text-halo-width"]),"text-halo-blur":new qt(ji.paint_symbol["text-halo-blur"]),"text-translate":new Be(ji.paint_symbol["text-translate"]),"text-translate-anchor":new Be(ji.paint_symbol["text-translate-anchor"])}),b9={paint:att,layout:ntt},Yw=function(g){this.type=g.property.overrides?g.property.overrides.runtimeType:Qo,this.defaultValue=g};Yw.prototype.evaluate=function(g){if(g.formattedSection){var z=this.defaultValue.property.overrides;if(z&&z.hasOverride(g.formattedSection))return z.getOverride(g.formattedSection)}return g.feature&&g.featureState?this.defaultValue.evaluate(g.feature,g.featureState):this.defaultValue.property.specification.default},Yw.prototype.eachChild=function(g){if(!this.defaultValue.isConstant()){var z=this.defaultValue.value;g(z._styleExpression.expression)}},Yw.prototype.outputDefined=function(){return!1},Yw.prototype.serialize=function(){return null},Z("FormatSectionOverride",Yw,{omit:["defaultValue"]});var ott=function(y){function g(z){y.call(this,z,b9)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.recalculate=function(V,$){if(y.prototype.recalculate.call(this,V,$),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var oe=this.layout.get("text-writing-mode");if(oe){for(var me=[],je=0,xt=oe;je",targetMapId:$,sourceMapId:me.mapId})}}},Kw.prototype.receive=function(g){var z=g.data,V=z.id;if(V&&!(z.targetMapId&&this.mapId!==z.targetMapId))if(z.type===""){delete this.tasks[V];var $=this.cancelCallbacks[V];delete this.cancelCallbacks[V],$&&$()}else Ce()||z.mustQueue?(this.tasks[V]=z,this.taskQueue.push(V),this.invoker.trigger()):this.processTask(V,z)},Kw.prototype.process=function(){if(this.taskQueue.length){var g=this.taskQueue.shift(),z=this.tasks[g];delete this.tasks[g],this.taskQueue.length&&this.invoker.trigger(),z&&this.processTask(g,z)}},Kw.prototype.processTask=function(g,z){var V=this;if(z.type===""){var $=this.callbacks[g];delete this.callbacks[g],$&&(z.error?$(ot(z.error)):$(null,ot(z.data)))}else{var oe=!1,me=ke(this.globalScope)?void 0:[],je=z.hasCallback?function(qr,Pr){oe=!0,delete V.cancelCallbacks[g],V.target.postMessage({id:g,type:"",sourceMapId:V.mapId,error:qr?Qe(qr):null,data:Qe(Pr,me)},me)}:function(qr){oe=!0},xt=null,Rt=ot(z.data);if(this.parent[z.type])xt=this.parent[z.type](z.sourceMapId,Rt,je);else if(this.parent.getWorkerSource){var Xt=z.type.split("."),xr=this.parent.getWorkerSource(z.sourceMapId,Xt[0],Rt.source);xt=xr[Xt[1]](Rt,je)}else je(new Error("Could not find function "+z.type));!oe&&xt&&xt.cancel&&(this.cancelCallbacks[g]=xt.cancel)}},Kw.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function ytt(y,g,z){g=Math.pow(2,z)-g-1;var V=nee(y*256,g*256,z),$=nee((y+1)*256,(g+1)*256,z);return V[0]+","+V[1]+","+$[0]+","+$[1]}function nee(y,g,z){var V=2*Math.PI*6378137/256/Math.pow(2,z),$=y*V-2*Math.PI*6378137/2,oe=g*V-2*Math.PI*6378137/2;return[$,oe]}var yh=function(g,z){g&&(z?this.setSouthWest(g).setNorthEast(z):g.length===4?this.setSouthWest([g[0],g[1]]).setNorthEast([g[2],g[3]]):this.setSouthWest(g[0]).setNorthEast(g[1]))};yh.prototype.setNorthEast=function(g){return this._ne=g instanceof Dc?new Dc(g.lng,g.lat):Dc.convert(g),this},yh.prototype.setSouthWest=function(g){return this._sw=g instanceof Dc?new Dc(g.lng,g.lat):Dc.convert(g),this},yh.prototype.extend=function(g){var z=this._sw,V=this._ne,$,oe;if(g instanceof Dc)$=g,oe=g;else if(g instanceof yh){if($=g._sw,oe=g._ne,!$||!oe)return this}else{if(Array.isArray(g))if(g.length===4||g.every(Array.isArray)){var me=g;return this.extend(yh.convert(me))}else{var je=g;return this.extend(Dc.convert(je))}return this}return!z&&!V?(this._sw=new Dc($.lng,$.lat),this._ne=new Dc(oe.lng,oe.lat)):(z.lng=Math.min($.lng,z.lng),z.lat=Math.min($.lat,z.lat),V.lng=Math.max(oe.lng,V.lng),V.lat=Math.max(oe.lat,V.lat)),this},yh.prototype.getCenter=function(){return new Dc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},yh.prototype.getSouthWest=function(){return this._sw},yh.prototype.getNorthEast=function(){return this._ne},yh.prototype.getNorthWest=function(){return new Dc(this.getWest(),this.getNorth())},yh.prototype.getSouthEast=function(){return new Dc(this.getEast(),this.getSouth())},yh.prototype.getWest=function(){return this._sw.lng},yh.prototype.getSouth=function(){return this._sw.lat},yh.prototype.getEast=function(){return this._ne.lng},yh.prototype.getNorth=function(){return this._ne.lat},yh.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},yh.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},yh.prototype.isEmpty=function(){return!(this._sw&&this._ne)},yh.prototype.contains=function(g){var z=Dc.convert(g),V=z.lng,$=z.lat,oe=this._sw.lat<=$&&$<=this._ne.lat,me=this._sw.lng<=V&&V<=this._ne.lng;return this._sw.lng>this._ne.lng&&(me=this._sw.lng>=V&&V>=this._ne.lng),oe&&me},yh.convert=function(g){return!g||g instanceof yh?g:new yh(g)};var aee=63710088e-1,Dc=function(g,z){if(isNaN(g)||isNaN(z))throw new Error("Invalid LngLat object: ("+g+", "+z+")");if(this.lng=+g,this.lat=+z,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Dc.prototype.wrap=function(){return new Dc(k(this.lng,-180,180),this.lat)},Dc.prototype.toArray=function(){return[this.lng,this.lat]},Dc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Dc.prototype.distanceTo=function(g){var z=Math.PI/180,V=this.lat*z,$=g.lat*z,oe=Math.sin(V)*Math.sin($)+Math.cos(V)*Math.cos($)*Math.cos((g.lng-this.lng)*z),me=aee*Math.acos(Math.min(oe,1));return me},Dc.prototype.toBounds=function(g){g===void 0&&(g=0);var z=40075017,V=360*g/z,$=V/Math.cos(Math.PI/180*this.lat);return new yh(new Dc(this.lng-$,this.lat-V),new Dc(this.lng+$,this.lat+V))},Dc.convert=function(g){if(g instanceof Dc)return g;if(Array.isArray(g)&&(g.length===2||g.length===3))return new Dc(Number(g[0]),Number(g[1]));if(!Array.isArray(g)&&typeof g=="object"&&g!==null)return new Dc(Number("lng"in g?g.lng:g.lon),Number(g.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var oee=2*Math.PI*aee;function see(y){return oee*Math.cos(y*Math.PI/180)}function lee(y){return(180+y)/360}function uee(y){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+y*Math.PI/360)))/360}function fee(y,g){return y/see(g)}function gtt(y){return y*360-180}function A9(y){var g=180-y*360;return 360/Math.PI*Math.atan(Math.exp(g*Math.PI/180))-90}function _tt(y,g){return y*see(A9(g))}function xtt(y){return 1/Math.cos(y*Math.PI/180)}var ib=function(g,z,V){V===void 0&&(V=0),this.x=+g,this.y=+z,this.z=+V};ib.fromLngLat=function(g,z){z===void 0&&(z=0);var V=Dc.convert(g);return new ib(lee(V.lng),uee(V.lat),fee(z,V.lat))},ib.prototype.toLngLat=function(){return new Dc(gtt(this.x),A9(this.y))},ib.prototype.toAltitude=function(){return _tt(this.z,this.y)},ib.prototype.meterInMercatorCoordinateUnits=function(){return 1/oee*xtt(A9(this.y))};var nb=function(g,z,V){this.z=g,this.x=z,this.y=V,this.key=SM(0,g,g,z,V)};nb.prototype.equals=function(g){return this.z===g.z&&this.x===g.x&&this.y===g.y},nb.prototype.url=function(g,z){var V=ytt(this.x,this.y,this.z),$=btt(this.z,this.x,this.y);return g[(this.x+this.y)%g.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(z==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",$).replace("{bbox-epsg-3857}",V)},nb.prototype.getTilePoint=function(g){var z=Math.pow(2,this.z);return new l((g.x*z-this.x)*Tn,(g.y*z-this.y)*Tn)},nb.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var cee=function(g,z){this.wrap=g,this.canonical=z,this.key=SM(g,z.z,z.z,z.x,z.y)},gh=function(g,z,V,$,oe){this.overscaledZ=g,this.wrap=z,this.canonical=new nb(V,+$,+oe),this.key=SM(z,g,V,$,oe)};gh.prototype.equals=function(g){return this.overscaledZ===g.overscaledZ&&this.wrap===g.wrap&&this.canonical.equals(g.canonical)},gh.prototype.scaledTo=function(g){var z=this.canonical.z-g;return g>this.canonical.z?new gh(g,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new gh(g,this.wrap,g,this.canonical.x>>z,this.canonical.y>>z)},gh.prototype.calculateScaledKey=function(g,z){var V=this.canonical.z-g;return g>this.canonical.z?SM(this.wrap*+z,g,this.canonical.z,this.canonical.x,this.canonical.y):SM(this.wrap*+z,g,g,this.canonical.x>>V,this.canonical.y>>V)},gh.prototype.isChildOf=function(g){if(g.wrap!==this.wrap)return!1;var z=this.canonical.z-g.canonical.z;return g.overscaledZ===0||g.overscaledZ>z&&g.canonical.y===this.canonical.y>>z},gh.prototype.children=function(g){if(this.overscaledZ>=g)return[new gh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var z=this.canonical.z+1,V=this.canonical.x*2,$=this.canonical.y*2;return[new gh(z,this.wrap,z,V,$),new gh(z,this.wrap,z,V+1,$),new gh(z,this.wrap,z,V,$+1),new gh(z,this.wrap,z,V+1,$+1)]},gh.prototype.isLessThan=function(g){return this.wrapg.wrap?!1:this.overscaledZg.overscaledZ?!1:this.canonical.xg.canonical.x?!1:this.canonical.y0;oe--)$=1<=this.dim+1||z<-1||z>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(z+1)*this.stride+(g+1)},dg.prototype._unpackMapbox=function(g,z,V){return(g*256*256+z*256+V)/10-1e4},dg.prototype._unpackTerrarium=function(g,z,V){return g*256+z+V/256-32768},dg.prototype.getPixels=function(){return new kh({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},dg.prototype.backfillBorder=function(g,z,V){if(this.dim!==g.dim)throw new Error("dem dimension mismatch");var $=z*this.dim,oe=z*this.dim+this.dim,me=V*this.dim,je=V*this.dim+this.dim;switch(z){case-1:$=oe-1;break;case 1:oe=$+1;break}switch(V){case-1:me=je-1;break;case 1:je=me+1;break}for(var xt=-z*this.dim,Rt=-V*this.dim,Xt=me;Xt=0&&xr[3]>=0&&xt.insert(je,xr[0],xr[1],xr[2],xr[3])}},pg.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new vm.VectorTile(new su(this.rawTileData)).layers,this.sourceLayerCoder=new tL(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},pg.prototype.query=function(g,z,V,$){var oe=this;this.loadVTLayers();for(var me=g.params||{},je=Tn/g.tileSize/g.scale,xt=Se(me.filter),Rt=g.queryGeometry,Xt=g.queryPadding*je,xr=dee(Rt),qr=this.grid.query(xr.minX-Xt,xr.minY-Xt,xr.maxX+Xt,xr.maxY+Xt),Pr=dee(g.cameraQueryGeometry),ai=this.grid3D.query(Pr.minX-Xt,Pr.minY-Xt,Pr.maxX+Xt,Pr.maxY+Xt,function(Zs,Cl,Tl,hu){return pv(g.cameraQueryGeometry,Zs-Xt,Cl-Xt,Tl+Xt,hu+Xt)}),qi=0,Wn=ai;qi$)oe=!1;else if(!z)oe=!0;else if(this.expirationTime=xn.maxzoom)&&xn.visibility!=="none"){h(Ri,this.zoom,Wt);var xi=jr[xn.id]=xn.createBucket({index:Gr.bucketLayerIDs.length,layers:Ri,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:en,sourceID:this.source});xi.populate(Yr,yi,this.tileID.canonical),Gr.bucketLayerIDs.push(Ri.map(function(ni){return ni.id}))}}}}var Xr,ft,tr,pr,gr=i.mapObject(yi.glyphDependencies,function(ni){return Object.keys(ni).map(Number)});Object.keys(gr).length?_r.send("getGlyphs",{uid:this.uid,stacks:gr},function(ni,Zi){Xr||(Xr=ni,ft=Zi,Qi.call(Ur))}):ft={};var Zr=Object.keys(yi.iconDependencies);Zr.length?_r.send("getImages",{icons:Zr,source:this.source,tileID:this.tileID,type:"icons"},function(ni,Zi){Xr||(Xr=ni,tr=Zi,Qi.call(Ur))}):tr={};var Ai=Object.keys(yi.patternDependencies);Ai.length?_r.send("getImages",{icons:Ai,source:this.source,tileID:this.tileID,type:"patterns"},function(ni,Zi){Xr||(Xr=ni,pr=Zi,Qi.call(Ur))}):pr={},Qi.call(this);function Qi(){if(Xr)return Lr(Xr);if(ft&&tr&&pr){var ni=new f(ft),Zi=new i.ImageAtlas(tr,pr);for(var aa in jr){var Mn=jr[aa];Mn instanceof i.SymbolBucket?(h(Mn.layers,this.zoom,Wt),i.performSymbolLayout(Mn,ft,ni.positions,tr,Zi.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Mn.hasPattern&&(Mn instanceof i.LineBucket||Mn instanceof i.FillBucket||Mn instanceof i.FillExtrusionBucket)&&(h(Mn.layers,this.zoom,Wt),Mn.addFeatures(yi,this.tileID.canonical,Zi.patternPositions))}this.status="done",Lr(null,{buckets:i.values(jr).filter(function(Un){return!Un.isEmpty()}),featureIndex:Gr,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ni.image,imageAtlas:Zi,glyphMap:this.returnDependencies?ft:null,iconMap:this.returnDependencies?tr:null,glyphPositions:this.returnDependencies?ni.positions:null})}}};function h(Bt,yt,Vt){for(var Wt=new i.EvaluationParameters(yt),_r=0,Lr=Bt;_r=0!=!!yt&&Bt.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,_=function(yt){this._feature=yt,this.extent=i.EXTENT,this.type=yt.type,this.properties=yt.tags,"id"in yt&&!isNaN(yt.id)&&(this.id=parseInt(yt.id,10))};_.prototype.loadGeometry=function(){if(this._feature.type===1){for(var yt=[],Vt=0,Wt=this._feature.geometry;Vt>31}function Ce(Bt,yt){for(var Vt=Bt.loadGeometry(),Wt=Bt.type,_r=0,Lr=0,Ur=Vt.length,Ir=0;Ir>1;ke(Bt,yt,Ur,Wt,_r,Lr%2),te(Bt,yt,Vt,Wt,Ur-1,Lr+1),te(Bt,yt,Vt,Ur+1,_r,Lr+1)}}function ke(Bt,yt,Vt,Wt,_r,Lr){for(;_r>Wt;){if(_r-Wt>600){var Ur=_r-Wt+1,Ir=Vt-Wt+1,Gr=Math.log(Ur),jr=.5*Math.exp(2*Gr/3),yi=.5*Math.sqrt(Gr*jr*(Ur-jr)/Ur)*(Ir-Ur/2<0?-1:1),Ei=Math.max(Wt,Math.floor(Vt-Ir*jr/Ur+yi)),Vi=Math.min(_r,Math.floor(Vt+(Ur-Ir)*jr/Ur+yi));ke(Bt,yt,Vt,Ei,Vi,Lr)}var ti=yt[2*Vt+Lr],en=Wt,Yr=_r;for(Ee(Bt,yt,Wt,Vt),yt[2*_r+Lr]>ti&&Ee(Bt,yt,Wt,_r);enti;)Yr--}yt[2*Wt+Lr]===ti?Ee(Bt,yt,Wt,Yr):(Yr++,Ee(Bt,yt,Yr,_r)),Yr<=Vt&&(Wt=Yr+1),Vt<=Yr&&(_r=Yr-1)}}function Ee(Bt,yt,Vt,Wt){Me(Bt,Vt,Wt),Me(yt,2*Vt,2*Wt),Me(yt,2*Vt+1,2*Wt+1)}function Me(Bt,yt,Vt){var Wt=Bt[yt];Bt[yt]=Bt[Vt],Bt[Vt]=Wt}function Ne(Bt,yt,Vt,Wt,_r,Lr,Ur){for(var Ir=[0,Bt.length-1,0],Gr=[],jr,yi;Ir.length;){var Ei=Ir.pop(),Vi=Ir.pop(),ti=Ir.pop();if(Vi-ti<=Ur){for(var en=ti;en<=Vi;en++)jr=yt[2*en],yi=yt[2*en+1],jr>=Vt&&jr<=_r&&yi>=Wt&&yi<=Lr&&Gr.push(Bt[en]);continue}var Yr=Math.floor((ti+Vi)/2);jr=yt[2*Yr],yi=yt[2*Yr+1],jr>=Vt&&jr<=_r&&yi>=Wt&&yi<=Lr&&Gr.push(Bt[Yr]);var oi=(Ei+1)%2;(Ei===0?Vt<=jr:Wt<=yi)&&(Ir.push(ti),Ir.push(Yr-1),Ir.push(oi)),(Ei===0?_r>=jr:Lr>=yi)&&(Ir.push(Yr+1),Ir.push(Vi),Ir.push(oi))}return Gr}function Fe(Bt,yt,Vt,Wt,_r,Lr){for(var Ur=[0,Bt.length-1,0],Ir=[],Gr=_r*_r;Ur.length;){var jr=Ur.pop(),yi=Ur.pop(),Ei=Ur.pop();if(yi-Ei<=Lr){for(var Vi=Ei;Vi<=yi;Vi++)ye(yt[2*Vi],yt[2*Vi+1],Vt,Wt)<=Gr&&Ir.push(Bt[Vi]);continue}var ti=Math.floor((Ei+yi)/2),en=yt[2*ti],Yr=yt[2*ti+1];ye(en,Yr,Vt,Wt)<=Gr&&Ir.push(Bt[ti]);var oi=(jr+1)%2;(jr===0?Vt-_r<=en:Wt-_r<=Yr)&&(Ur.push(Ei),Ur.push(ti-1),Ur.push(oi)),(jr===0?Vt+_r>=en:Wt+_r>=Yr)&&(Ur.push(ti+1),Ur.push(yi),Ur.push(oi))}return Ir}function ye(Bt,yt,Vt,Wt){var _r=Bt-Vt,Lr=yt-Wt;return _r*_r+Lr*Lr}var Ve=function(Bt){return Bt[0]},ce=function(Bt){return Bt[1]},Ye=function(yt,Vt,Wt,_r,Lr){Vt===void 0&&(Vt=Ve),Wt===void 0&&(Wt=ce),_r===void 0&&(_r=64),Lr===void 0&&(Lr=Float64Array),this.nodeSize=_r,this.points=yt;for(var Ur=yt.length<65536?Uint16Array:Uint32Array,Ir=this.ids=new Ur(yt.length),Gr=this.coords=new Lr(yt.length*2),jr=0;jr=_r;yi--){var Ei=+Date.now();Gr=this._cluster(Gr,yi),this.trees[yi]=new Ye(Gr,Ae,at,Ur,Float32Array),Wt&&console.log("z%d: %d clusters in %dms",yi,Gr.length,+Date.now()-Ei)}return Wt&&console.timeEnd("total time"),this},gt.prototype.getClusters=function(yt,Vt){var Wt=((yt[0]+180)%360+360)%360-180,_r=Math.max(-90,Math.min(90,yt[1])),Lr=yt[2]===180?180:((yt[2]+180)%360+360)%360-180,Ur=Math.max(-90,Math.min(90,yt[3]));if(yt[2]-yt[0]>=360)Wt=-180,Lr=180;else if(Wt>Lr){var Ir=this.getClusters([Wt,_r,180,Ur],Vt),Gr=this.getClusters([-180,_r,Lr,Ur],Vt);return Ir.concat(Gr)}for(var jr=this.trees[this._limitZoom(Vt)],yi=jr.range(Tt(Wt),St(Ur),Tt(Lr),St(_r)),Ei=[],Vi=0,ti=yi;ViVt&&(Yr+=rn.numPoints||1)}if(Yr>=Gr){for(var Fi=Ei.x*en,Ri=Ei.y*en,xn=Ir&&en>1?this._map(Ei,!0):null,xi=(yi<<5)+(Vt+1)+this.points.length,Xr=0,ft=ti;Xr1)for(var Zr=0,Ai=ti;Zr>5},gt.prototype._getOriginZoom=function(yt){return(yt-this.points.length)%32},gt.prototype._map=function(yt,Vt){if(yt.numPoints)return Vt?Et({},yt.properties):yt.properties;var Wt=this.points[yt.index].properties,_r=this.options.map(Wt);return Vt&&_r===Wt?Et({},_r):_r};function Nt(Bt,yt,Vt,Wt,_r){return{x:Bt,y:yt,zoom:1/0,id:Vt,parentId:-1,numPoints:Wt,properties:_r}}function it(Bt,yt){var Vt=Bt.geometry.coordinates,Wt=Vt[0],_r=Vt[1];return{x:Tt(Wt),y:St(_r),zoom:1/0,index:yt,parentId:-1}}function Ke(Bt){return{type:"Feature",id:Bt.id,properties:kt(Bt),geometry:{type:"Point",coordinates:[Dt(Bt.x),Zt(Bt.y)]}}}function kt(Bt){var yt=Bt.numPoints,Vt=yt>=1e4?Math.round(yt/1e3)+"k":yt>=1e3?Math.round(yt/100)/10+"k":yt;return Et(Et({},Bt.properties),{cluster:!0,cluster_id:Bt.id,point_count:yt,point_count_abbreviated:Vt})}function Tt(Bt){return Bt/360+.5}function St(Bt){var yt=Math.sin(Bt*Math.PI/180),Vt=.5-.25*Math.log((1+yt)/(1-yt))/Math.PI;return Vt<0?0:Vt>1?1:Vt}function Dt(Bt){return(Bt-.5)*360}function Zt(Bt){var yt=(180-Bt*360)*Math.PI/180;return 360*Math.atan(Math.exp(yt))/Math.PI-90}function Et(Bt,yt){for(var Vt in yt)Bt[Vt]=yt[Vt];return Bt}function Ae(Bt){return Bt.x}function at(Bt){return Bt.y}function wt(Bt,yt,Vt,Wt){for(var _r=Wt,Lr=Vt-yt>>1,Ur=Vt-yt,Ir,Gr=Bt[yt],jr=Bt[yt+1],yi=Bt[Vt],Ei=Bt[Vt+1],Vi=yt+3;Vi_r)Ir=Vi,_r=ti;else if(ti===_r){var en=Math.abs(Vi-Lr);enWt&&(Ir-yt>3&&wt(Bt,yt,Ir,Wt),Bt[Ir+2]=_r,Vt-Ir>3&&wt(Bt,Ir,Vt,Wt))}function vt(Bt,yt,Vt,Wt,_r,Lr){var Ur=_r-Vt,Ir=Lr-Wt;if(Ur!==0||Ir!==0){var Gr=((Bt-Vt)*Ur+(yt-Wt)*Ir)/(Ur*Ur+Ir*Ir);Gr>1?(Vt=_r,Wt=Lr):Gr>0&&(Vt+=Ur*Gr,Wt+=Ir*Gr)}return Ur=Bt-Vt,Ir=yt-Wt,Ur*Ur+Ir*Ir}function st(Bt,yt,Vt,Wt){var _r={id:typeof Bt=="undefined"?null:Bt,type:yt,geometry:Vt,tags:Wt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Ue(_r),_r}function Ue(Bt){var yt=Bt.geometry,Vt=Bt.type;if(Vt==="Point"||Vt==="MultiPoint"||Vt==="LineString")rt(Bt,yt);else if(Vt==="Polygon"||Vt==="MultiLineString")for(var Wt=0;Wt0&&(Wt?Ur+=(_r*jr-Gr*Lr)/2:Ur+=Math.sqrt(Math.pow(Gr-_r,2)+Math.pow(jr-Lr,2))),_r=Gr,Lr=jr}var yi=yt.length-3;yt[2]=1,wt(yt,0,yi,Vt),yt[yi+2]=1,yt.size=Math.abs(Ur),yt.start=0,yt.end=yt.size}function yr(Bt,yt,Vt,Wt){for(var _r=0;_r1?1:Vt}function Ie(Bt,yt,Vt,Wt,_r,Lr,Ur,Ir){if(Vt/=yt,Wt/=yt,Lr>=Vt&&Ur=Wt)return null;for(var Gr=[],jr=0;jr=Vt&&en=Wt)continue;var Yr=[];if(Vi==="Point"||Vi==="MultiPoint")xe(Ei,Yr,Vt,Wt,_r);else if(Vi==="LineString")Oe(Ei,Yr,Vt,Wt,_r,!1,Ir.lineMetrics);else if(Vi==="MultiLineString")De(Ei,Yr,Vt,Wt,_r,!1);else if(Vi==="Polygon")De(Ei,Yr,Vt,Wt,_r,!0);else if(Vi==="MultiPolygon")for(var oi=0;oi=Vt&&Ur<=Wt&&(yt.push(Bt[Lr]),yt.push(Bt[Lr+1]),yt.push(Bt[Lr+2]))}}function Oe(Bt,yt,Vt,Wt,_r,Lr,Ur){for(var Ir=Re(Bt),Gr=_r===0?ge:fe,jr=Bt.start,yi,Ei,Vi=0;ViVt&&(Ei=Gr(Ir,ti,en,oi,Bi,Vt),Ur&&(Ir.start=jr+yi*Ei)):an>Wt?rn=Vt&&(Ei=Gr(Ir,ti,en,oi,Bi,Vt),Fi=!0),rn>Wt&&an<=Wt&&(Ei=Gr(Ir,ti,en,oi,Bi,Wt),Fi=!0),!Lr&&Fi&&(Ur&&(Ir.end=jr+yi*Ei),yt.push(Ir),Ir=Re(Bt)),Ur&&(jr+=yi)}var Ri=Bt.length-3;ti=Bt[Ri],en=Bt[Ri+1],Yr=Bt[Ri+2],an=_r===0?ti:en,an>=Vt&&an<=Wt&&ct(Ir,ti,en,Yr),Ri=Ir.length-3,Lr&&Ri>=3&&(Ir[Ri]!==Ir[0]||Ir[Ri+1]!==Ir[1])&&ct(Ir,Ir[0],Ir[1],Ir[2]),Ir.length&&yt.push(Ir)}function Re(Bt){var yt=[];return yt.size=Bt.size,yt.start=Bt.start,yt.end=Bt.end,yt}function De(Bt,yt,Vt,Wt,_r,Lr){for(var Ur=0;UrUr.maxX&&(Ur.maxX=yi),Ei>Ur.maxY&&(Ur.maxY=Ei)}return Ur}function Dr(Bt,yt,Vt,Wt){var _r=yt.geometry,Lr=yt.type,Ur=[];if(Lr==="Point"||Lr==="MultiPoint")for(var Ir=0;Ir<_r.length;Ir+=3)Ur.push(_r[Ir]),Ur.push(_r[Ir+1]),Bt.numPoints++,Bt.numSimplified++;else if(Lr==="LineString")Mr(Ur,_r,Bt,Vt,!1,!1);else if(Lr==="MultiLineString"||Lr==="Polygon")for(Ir=0;Ir<_r.length;Ir++)Mr(Ur,_r[Ir],Bt,Vt,Lr==="Polygon",Ir===0);else if(Lr==="MultiPolygon")for(var Gr=0;Gr<_r.length;Gr++){var jr=_r[Gr];for(Ir=0;Ir0&&yt.size<(_r?Ur:Wt)){Vt.numPoints+=yt.length/3;return}for(var Ir=[],Gr=0;GrUr)&&(Vt.numSimplified++,Ir.push(yt[Gr]),Ir.push(yt[Gr+1])),Vt.numPoints++;_r&&Fr(Ir,Lr),Bt.push(Ir)}function Fr(Bt,yt){for(var Vt=0,Wt=0,_r=Bt.length,Lr=_r-2;Wt<_r;Lr=Wt,Wt+=2)Vt+=(Bt[Wt]-Bt[Lr])*(Bt[Wt+1]+Bt[Lr+1]);if(Vt>0===yt)for(Wt=0,_r=Bt.length;Wt<_r/2;Wt+=2){var Ur=Bt[Wt],Ir=Bt[Wt+1];Bt[Wt]=Bt[_r-2-Wt],Bt[Wt+1]=Bt[_r-1-Wt],Bt[_r-2-Wt]=Ur,Bt[_r-1-Wt]=Ir}}function di(Bt,yt){return new Di(Bt,yt)}function Di(Bt,yt){yt=this.options=Ci(Object.create(this.options),yt);var Vt=yt.debug;if(Vt&&console.time("preprocess data"),yt.maxZoom<0||yt.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(yt.promoteId&&yt.generateId)throw new Error("promoteId and generateId cannot be used together.");var Wt=$e(Bt,yt);this.tiles={},this.tileCoords=[],Vt&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",yt.indexMaxZoom,yt.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Wt=pe(Wt,yt),Wt.length&&this.splitTile(Wt,0,0,0),Vt&&(Wt.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Di.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Di.prototype.splitTile=function(Bt,yt,Vt,Wt,_r,Lr,Ur){for(var Ir=[Bt,yt,Vt,Wt],Gr=this.options,jr=Gr.debug;Ir.length;){Wt=Ir.pop(),Vt=Ir.pop(),yt=Ir.pop(),Bt=Ir.pop();var yi=1<1&&console.time("creation"),Vi=this.tiles[Ei]=Hr(Bt,yt,Vt,Wt,Gr),this.tileCoords.push({z:yt,x:Vt,y:Wt}),jr)){jr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",yt,Vt,Wt,Vi.numFeatures,Vi.numPoints,Vi.numSimplified),console.timeEnd("creation"));var ti="z"+yt;this.stats[ti]=(this.stats[ti]||0)+1,this.total++}if(Vi.source=Bt,_r){if(yt===Gr.maxZoom||yt===_r)continue;var en=1<<_r-yt;if(Vt!==Math.floor(Lr/en)||Wt!==Math.floor(Ur/en))continue}else if(yt===Gr.indexMaxZoom||Vi.numPoints<=Gr.indexMaxPoints)continue;if(Vi.source=null,Bt.length!==0){jr>1&&console.time("clipping");var Yr=.5*Gr.buffer/Gr.extent,oi=.5-Yr,Bi=.5+Yr,an=1+Yr,rn,Fi,Ri,xn,xi,Xr;rn=Fi=Ri=xn=null,xi=Ie(Bt,yi,Vt-Yr,Vt+Bi,0,Vi.minX,Vi.maxX,Gr),Xr=Ie(Bt,yi,Vt+oi,Vt+an,0,Vi.minX,Vi.maxX,Gr),Bt=null,xi&&(rn=Ie(xi,yi,Wt-Yr,Wt+Bi,1,Vi.minY,Vi.maxY,Gr),Fi=Ie(xi,yi,Wt+oi,Wt+an,1,Vi.minY,Vi.maxY,Gr),xi=null),Xr&&(Ri=Ie(Xr,yi,Wt-Yr,Wt+Bi,1,Vi.minY,Vi.maxY,Gr),xn=Ie(Xr,yi,Wt+oi,Wt+an,1,Vi.minY,Vi.maxY,Gr),Xr=null),jr>1&&console.timeEnd("clipping"),Ir.push(rn||[],yt+1,Vt*2,Wt*2),Ir.push(Fi||[],yt+1,Vt*2,Wt*2+1),Ir.push(Ri||[],yt+1,Vt*2+1,Wt*2),Ir.push(xn||[],yt+1,Vt*2+1,Wt*2+1)}}},Di.prototype.getTile=function(Bt,yt,Vt){var Wt=this.options,_r=Wt.extent,Lr=Wt.debug;if(Bt<0||Bt>24)return null;var Ur=1<1&&console.log("drilling down to z%d-%d-%d",Bt,yt,Vt);for(var Gr=Bt,jr=yt,yi=Vt,Ei;!Ei&&Gr>0;)Gr--,jr=Math.floor(jr/2),yi=Math.floor(yi/2),Ei=this.tiles[Ii(Gr,jr,yi)];return!Ei||!Ei.source?null:(Lr>1&&console.log("found parent tile z%d-%d-%d",Gr,jr,yi),Lr>1&&console.time("drilling down"),this.splitTile(Ei.source,Gr,jr,yi,Bt,yt,Vt),Lr>1&&console.timeEnd("drilling down"),this.tiles[Ir]?Pt(this.tiles[Ir],_r):null)};function Ii(Bt,yt,Vt){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function x(Y,R,J){var O,K,_e,ne=i.browser.devicePixelRatio>1?"@2x":"",Le=i.getJSON(R.transformRequest(R.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(dr,Er){Le=null,_e||(_e=dr,O=Er,Ct())}),Ze=i.getImage(R.transformRequest(R.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(dr,Er){Ze=null,_e||(_e=dr,K=Er,Ct())});function Ct(){if(_e)J(_e);else if(O&&K){var dr=i.browser.getImageData(K),Er={};for(var lr in O){var Je=O[lr],ht=Je.width,bt=Je.height,Kt=Je.x,sr=Je.y,Qt=Je.sdf,ur=Je.pixelRatio,er=Je.stretchX,Ot=Je.stretchY,Jt=Je.content,Lt=new i.RGBAImage({width:ht,height:bt});i.RGBAImage.copy(dr,Lt,{x:Kt,y:sr},{x:0,y:0},{width:ht,height:bt}),Er[lr]={data:Lt,pixelRatio:ur,sdf:Qt,stretchX:er,stretchY:Ot,content:Jt}}J(null,Er)}}return{cancel:function(){Le&&(Le.cancel(),Le=null),Ze&&(Ze.cancel(),Ze=null)}}}function b(Y){var R=Y.userImage;if(R&&R.render){var J=R.render();if(J)return Y.data.replace(new Uint8Array(R.data.buffer)),!0}return!1}var v=1,k=function(Y){function R(){Y.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.isLoaded=function(){return this.loaded},R.prototype.setLoaded=function(O){if(this.loaded!==O&&(this.loaded=O,O)){for(var K=0,_e=this.requestors;K<_e.length;K+=1){var ne=_e[K],Le=ne.ids,Ze=ne.callback;this._notify(Le,Ze)}this.requestors=[]}},R.prototype.getImage=function(O){return this.images[O]},R.prototype.addImage=function(O,K){this._validate(O,K)&&(this.images[O]=K)},R.prototype._validate=function(O,K){var _e=!0;return this._validateStretch(K.stretchX,K.data&&K.data.width)||(this.fire(new i.ErrorEvent(new Error('Image "'+O+'" has invalid "stretchX" value'))),_e=!1),this._validateStretch(K.stretchY,K.data&&K.data.height)||(this.fire(new i.ErrorEvent(new Error('Image "'+O+'" has invalid "stretchY" value'))),_e=!1),this._validateContent(K.content,K)||(this.fire(new i.ErrorEvent(new Error('Image "'+O+'" has invalid "content" value'))),_e=!1),_e},R.prototype._validateStretch=function(O,K){if(!O)return!0;for(var _e=0,ne=0,Le=O;ne=0?1.2:1))}C.prototype.draw=function(Y){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(Y,this.buffer,this.middle);for(var R=this.ctx.getImageData(0,0,this.size,this.size),J=new Uint8ClampedArray(this.size*this.size),O=0;O65535){dr(new Error("glyphs > 65535 not supported"));return}if(Je.ranges[bt]){dr(null,{stack:Er,id:lr,glyph:ht});return}var Kt=Je.requests[bt];Kt||(Kt=Je.requests[bt]=[],P.loadGlyphRange(Er,bt,O.url,O.requestManager,function(sr,Qt){if(Qt){for(var ur in Qt)O._doesCharSupportLocalGlyph(+ur)||(Je.glyphs[+ur]=Qt[+ur]);Je.ranges[bt]=!0}for(var er=0,Ot=Kt;er1&&(Ct=R[++Ze]);var Er=Math.abs(dr-Ct.left),lr=Math.abs(dr-Ct.right),Je=Math.min(Er,lr),ht=void 0,bt=_e/O*(K+1);if(Ct.isDash){var Kt=K-Math.abs(bt);ht=Math.sqrt(Je*Je+Kt*Kt)}else ht=K-Math.sqrt(Je*Je+bt*bt);this.data[Le+dr]=Math.max(0,Math.min(255,ht+128))}},G.prototype.addRegularDash=function(R){for(var J=R.length-1;J>=0;--J){var O=R[J],K=R[J+1];O.zeroLength?R.splice(J,1):K&&K.isDash===O.isDash&&(K.left=O.left,R.splice(J,1))}var _e=R[0],ne=R[R.length-1];_e.isDash===ne.isDash&&(_e.left=ne.left-this.width,ne.right=_e.right+this.width);for(var Le=this.width*this.nextRow,Ze=0,Ct=R[Ze],dr=0;dr1&&(Ct=R[++Ze]);var Er=Math.abs(dr-Ct.left),lr=Math.abs(dr-Ct.right),Je=Math.min(Er,lr),ht=Ct.isDash?Je:-Je;this.data[Le+dr]=Math.max(0,Math.min(255,ht+128))}},G.prototype.addDash=function(R,J){var O=J?7:0,K=2*O+1;if(this.nextRow+K>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var _e=0,ne=0;ne=O.minX&&R.x=O.minY&&R.y0&&(dr[new i.OverscaledTileID(O.overscaledZ,Le,K.z,ne,K.y-1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,O.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,Ct,K.z,Ze,K.y-1).key]={backfilled:!1}),K.y+1<_e&&(dr[new i.OverscaledTileID(O.overscaledZ,Le,K.z,ne,K.y+1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,O.wrap,K.z,K.x,K.y+1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,Ct,K.z,Ze,K.y+1).key]={backfilled:!1}),dr},R.prototype.unloadTile=function(O){O.demTexture&&this.map.painter.saveTileTexture(O.demTexture),O.fbo&&(O.fbo.destroy(),delete O.fbo),O.dem&&delete O.dem,delete O.neighboringTiles,O.state="unloaded",O.actor&&O.actor.send("removeDEMTile",{uid:O.uid,source:this.id})},R}(re),be=function(Y){function R(J,O,K,_e){Y.call(this),this.id=J,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=K.getActor(),this.setEventedParent(_e),this._data=O.data,this._options=i.extend({},O),this._collectResourceTiming=O.collectResourceTiming,this._resourceTiming=[],O.maxzoom!==void 0&&(this.maxzoom=O.maxzoom),O.type&&(this.type=O.type),O.attribution&&(this.attribution=O.attribution),this.promoteId=O.promoteId;var ne=i.EXTENT/this.tileSize;this.workerOptions=i.extend({source:this.id,cluster:O.cluster||!1,geojsonVtOptions:{buffer:(O.buffer!==void 0?O.buffer:128)*ne,tolerance:(O.tolerance!==void 0?O.tolerance:.375)*ne,extent:i.EXTENT,maxZoom:this.maxzoom,lineMetrics:O.lineMetrics||!1,generateId:O.generateId||!1},superclusterOptions:{maxZoom:O.clusterMaxZoom!==void 0?Math.min(O.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,minPoints:Math.max(2,O.clusterMinPoints||2),extent:i.EXTENT,radius:(O.clusterRadius||50)*ne,log:!1,generateId:O.generateId||!1},clusterProperties:O.clusterProperties,filter:O.filter},O.workerOptions)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(){var O=this;this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(K){if(K){O.fire(new i.ErrorEvent(K));return}var _e={dataType:"source",sourceDataType:"metadata"};O._collectResourceTiming&&O._resourceTiming&&O._resourceTiming.length>0&&(_e.resourceTiming=O._resourceTiming,O._resourceTiming=[]),O.fire(new i.Event("data",_e))})},R.prototype.onAdd=function(O){this.map=O,this.load()},R.prototype.setData=function(O){var K=this;return this._data=O,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(_e){if(_e){K.fire(new i.ErrorEvent(_e));return}var ne={dataType:"source",sourceDataType:"content"};K._collectResourceTiming&&K._resourceTiming&&K._resourceTiming.length>0&&(ne.resourceTiming=K._resourceTiming,K._resourceTiming=[]),K.fire(new i.Event("data",ne))}),this},R.prototype.getClusterExpansionZoom=function(O,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:O,source:this.id},K),this},R.prototype.getClusterChildren=function(O,K){return this.actor.send("geojson.getClusterChildren",{clusterId:O,source:this.id},K),this},R.prototype.getClusterLeaves=function(O,K,_e,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:O,limit:K,offset:_e},ne),this},R.prototype._updateWorkerData=function(O){var K=this;this._loaded=!1;var _e=i.extend({},this.workerOptions),ne=this._data;typeof ne=="string"?(_e.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ne),i.ResourceType.Source),_e.request.collectResourceTiming=this._collectResourceTiming):_e.data=JSON.stringify(ne),this.actor.send(this.type+".loadData",_e,function(Le,Ze){K._removed||Ze&&Ze.abandoned||(K._loaded=!0,Ze&&Ze.resourceTiming&&Ze.resourceTiming[K.id]&&(K._resourceTiming=Ze.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:_e.source},null),O(Le))})},R.prototype.loaded=function(){return this._loaded},R.prototype.loadTile=function(O,K){var _e=this,ne=O.actor?"reloadTile":"loadTile";O.actor=this.actor;var Le={type:this.type,uid:O.uid,tileID:O.tileID,zoom:O.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};O.request=this.actor.send(ne,Le,function(Ze,Ct){return delete O.request,O.unloadVectorData(),O.aborted?K(null):Ze?K(Ze):(O.loadVectorData(Ct,_e.map.painter,ne==="reloadTile"),K(null))})},R.prototype.abortTile=function(O){O.request&&(O.request.cancel(),delete O.request),O.aborted=!0},R.prototype.unloadTile=function(O){O.unloadVectorData(),this.actor.send("removeTile",{uid:O.uid,type:this.type,source:this.id})},R.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},R.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},R.prototype.hasTransition=function(){return!1},R}(i.Evented),Pe=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Ce=function(Y){function R(J,O,K,_e){Y.call(this),this.id=J,this.dispatcher=K,this.coordinates=O.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(_e),this.options=O}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(O,K){var _e=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ne,Le){_e._loaded=!0,ne?_e.fire(new i.ErrorEvent(ne)):Le&&(_e.image=Le,O&&(_e.coordinates=O),K&&K(),_e._finishLoading())})},R.prototype.loaded=function(){return this._loaded},R.prototype.updateImage=function(O){var K=this;return!this.image||!O.url?this:(this.options.url=O.url,this.load(O.coordinates,function(){K.texture=null}),this)},R.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},R.prototype.onAdd=function(O){this.map=O,this.load()},R.prototype.setCoordinates=function(O){var K=this;this.coordinates=O;var _e=O.map(i.MercatorCoordinate.fromLngLat);this.tileID=de(_e),this.minzoom=this.maxzoom=this.tileID.z;var ne=_e.map(function(Le){return K.tileID.getTilePoint(Le)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(ne[0].x,ne[0].y,0,0),this._boundsArray.emplaceBack(ne[1].x,ne[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(ne[3].x,ne[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(ne[2].x,ne[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},R.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,Pe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(O,this.image,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var _e in this.tiles){var ne=this.tiles[_e];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},R.prototype.loadTile=function(O,K){this.tileID&&this.tileID.equals(O.tileID.canonical)?(this.tiles[String(O.tileID.wrap)]=O,O.buckets={},K(null)):(O.state="errored",K(null))},R.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},R.prototype.hasTransition=function(){return!1},R}(i.Evented);function de(Y){for(var R=1/0,J=1/0,O=-1/0,K=-1/0,_e=0,ne=Y;_eK.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+K.start(0)+" and "+K.end(0)+"-second mark."))):this.video.currentTime=O}},R.prototype.getVideo=function(){return this.video},R.prototype.onAdd=function(O){this.map||(this.map=O,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},R.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,Pe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE),K.texSubImage2D(K.TEXTURE_2D,0,0,0,K.RGBA,K.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(O,this.video,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var _e in this.tiles){var ne=this.tiles[_e];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},R.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},R.prototype.hasTransition=function(){return this.video&&!this.video.paused},R}(Ce),ke=function(Y){function R(J,O,K,_e){Y.call(this,J,O,K,_e),O.coordinates?(!Array.isArray(O.coordinates)||O.coordinates.length!==4||O.coordinates.some(function(ne){return!Array.isArray(ne)||ne.length!==2||ne.some(function(Le){return typeof Le!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "coordinates"'))),O.animate&&typeof O.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),O.canvas?typeof O.canvas!="string"&&!(O.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "canvas"'))),this.options=O,this.animate=O.animate!==void 0?O.animate:!0}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},R.prototype.getCanvas=function(){return this.canvas},R.prototype.onAdd=function(O){this.map=O,this.load(),this.canvas&&this.animate&&this.play()},R.prototype.onRemove=function(){this.pause()},R.prototype.prepare=function(){var O=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,O=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,O=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var K=this.map.painter.context,_e=K.gl;this.boundsBuffer||(this.boundsBuffer=K.createVertexBuffer(this._boundsArray,Pe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(O||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(K,this.canvas,_e.RGBA,{premultiply:!0});for(var ne in this.tiles){var Le=this.tiles[ne];Le.state!=="loaded"&&(Le.state="loaded",Le.texture=this.texture)}}},R.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},R.prototype.hasTransition=function(){return this._playing},R.prototype._hasInvalidDimensions=function(){for(var O=0,K=[this.canvas.width,this.canvas.height];Othis.max){var Le=this._getAndRemoveByKey(this.order[0]);Le&&this.onRemove(Le)}return this},it.prototype.has=function(R){return R.wrapped().key in this.data},it.prototype.getAndRemove=function(R){return this.has(R)?this._getAndRemoveByKey(R.wrapped().key):null},it.prototype._getAndRemoveByKey=function(R){var J=this.data[R].shift();return J.timeout&&clearTimeout(J.timeout),this.data[R].length===0&&delete this.data[R],this.order.splice(this.order.indexOf(R),1),J.value},it.prototype.getByKey=function(R){var J=this.data[R];return J?J[0].value:null},it.prototype.get=function(R){if(!this.has(R))return null;var J=this.data[R.wrapped().key][0];return J.value},it.prototype.remove=function(R,J){if(!this.has(R))return this;var O=R.wrapped().key,K=J===void 0?0:this.data[O].indexOf(J),_e=this.data[O][K];return this.data[O].splice(K,1),_e.timeout&&clearTimeout(_e.timeout),this.data[O].length===0&&delete this.data[O],this.onRemove(_e.value),this.order.splice(this.order.indexOf(O),1),this},it.prototype.setMaxSize=function(R){for(this.max=R;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},it.prototype.filter=function(R){var J=[];for(var O in this.data)for(var K=0,_e=this.data[O];K<_e.length;K+=1){var ne=_e[K];R(ne.value)||J.push(ne)}for(var Le=0,Ze=J;Le1||(Math.abs(Er)>1&&(Math.abs(Er+Je)===1?Er+=Je:Math.abs(Er-Je)===1&&(Er-=Je)),!(!dr.dem||!Ct.dem)&&(Ct.dem.backfillBorder(dr.dem,Er,lr),Ct.neighboringTiles&&Ct.neighboringTiles[ht]&&(Ct.neighboringTiles[ht].backfilled=!0)))}},R.prototype.getTile=function(O){return this.getTileByID(O.key)},R.prototype.getTileByID=function(O){return this._tiles[O]},R.prototype._retainLoadedChildren=function(O,K,_e,ne){for(var Le in this._tiles){var Ze=this._tiles[Le];if(!(ne[Le]||!Ze.hasData()||Ze.tileID.overscaledZ<=K||Ze.tileID.overscaledZ>_e)){for(var Ct=Ze.tileID;Ze&&Ze.tileID.overscaledZ>K+1;){var dr=Ze.tileID.scaledTo(Ze.tileID.overscaledZ-1);Ze=this._tiles[dr.key],Ze&&Ze.hasData()&&(Ct=dr)}for(var Er=Ct;Er.overscaledZ>K;)if(Er=Er.scaledTo(Er.overscaledZ-1),O[Er.key]){ne[Ct.key]=Ct;break}}}},R.prototype.findLoadedParent=function(O,K){if(O.key in this._loadedParentTiles){var _e=this._loadedParentTiles[O.key];return _e&&_e.tileID.overscaledZ>=K?_e:null}for(var ne=O.overscaledZ-1;ne>=K;ne--){var Le=O.scaledTo(ne),Ze=this._getLoadedTile(Le);if(Ze)return Ze}},R.prototype._getLoadedTile=function(O){var K=this._tiles[O.key];if(K&&K.hasData())return K;var _e=this._cache.getByKey(O.wrapped().key);return _e},R.prototype.updateCacheSize=function(O){var K=Math.ceil(O.width/this._source.tileSize)+1,_e=Math.ceil(O.height/this._source.tileSize)+1,ne=K*_e,Le=5,Ze=Math.floor(ne*Le),Ct=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ze):Ze;this._cache.setMaxSize(Ct)},R.prototype.handleWrapJump=function(O){var K=this._prevLng===void 0?O:this._prevLng,_e=O-K,ne=_e/360,Le=Math.round(ne);if(this._prevLng=O,Le){var Ze={};for(var Ct in this._tiles){var dr=this._tiles[Ct];dr.tileID=dr.tileID.unwrapTo(dr.tileID.wrap+Le),Ze[dr.tileID.key]=dr}this._tiles=Ze;for(var Er in this._timers)clearTimeout(this._timers[Er]),delete this._timers[Er];for(var lr in this._tiles){var Je=this._tiles[lr];this._setTileReloadTimer(lr,Je)}}},R.prototype.update=function(O){var K=this;if(this.transform=O,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(O),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var _e;this.used?this._source.tileID?_e=O.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(ci){return new i.OverscaledTileID(ci.canonical.z,ci.wrap,ci.canonical.z,ci.canonical.x,ci.canonical.y)}):(_e=O.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(_e=_e.filter(function(ci){return K._source.hasTile(ci)}))):_e=[];var ne=O.coveringZoomLevel(this._source),Le=Math.max(ne-R.maxOverzooming,this._source.minzoom),Ze=Math.max(ne+R.maxUnderzooming,this._source.minzoom),Ct=this._updateRetainedTiles(_e,ne);if(Gr(this._source.type)){for(var dr={},Er={},lr=Object.keys(Ct),Je=0,ht=lr;Jethis._source.maxzoom){var Qt=Kt.children(this._source.maxzoom)[0],ur=this.getTile(Qt);if(ur&&ur.hasData()){_e[Qt.key]=Qt;continue}}else{var er=Kt.children(this._source.maxzoom);if(_e[er[0].key]&&_e[er[1].key]&&_e[er[2].key]&&_e[er[3].key])continue}for(var Ot=sr.wasRequested(),Jt=Kt.overscaledZ-1;Jt>=Le;--Jt){var Lt=Kt.scaledTo(Jt);if(ne[Lt.key]||(ne[Lt.key]=!0,sr=this.getTile(Lt),!sr&&Ot&&(sr=this._addTile(Lt)),sr&&(_e[Lt.key]=Lt,Ot=sr.wasRequested(),sr.hasData())))break}}}return _e},R.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var O in this._tiles){for(var K=[],_e=void 0,ne=this._tiles[O].tileID;ne.overscaledZ>0;){if(ne.key in this._loadedParentTiles){_e=this._loadedParentTiles[ne.key];break}K.push(ne.key);var Le=ne.scaledTo(ne.overscaledZ-1);if(_e=this._getLoadedTile(Le),_e)break;ne=Le}for(var Ze=0,Ct=K;Ze0)&&(K.hasData()&&K.state!=="reloading"?this._cache.add(K.tileID,K,K.getExpiryTimeout()):(K.aborted=!0,this._abortTile(K),this._unloadTile(K))))},R.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var O in this._tiles)this._removeTile(O);this._cache.reset()},R.prototype.tilesIn=function(O,K,_e){var ne=this,Le=[],Ze=this.transform;if(!Ze)return Le;for(var Ct=_e?Ze.getCameraQueryGeometry(O):O,dr=O.map(function(Jt){return Ze.pointCoordinate(Jt)}),Er=Ct.map(function(Jt){return Ze.pointCoordinate(Jt)}),lr=this.getIds(),Je=1/0,ht=1/0,bt=-1/0,Kt=-1/0,sr=0,Qt=Er;sr=0&&Cn[1].y+ci>=0){var Ki=dr.map(function(Xa){return Tr.getTilePoint(Xa)}),yn=Er.map(function(Xa){return Tr.getTilePoint(Xa)});Le.push({tile:Lt,tileID:Tr,queryGeometry:Ki,cameraQueryGeometry:yn,scale:Nr})}}},Ot=0;Ot=i.browser.now())return!0}return!1},R.prototype.setFeatureState=function(O,K,_e){O=O||"_geojsonTileLayer",this._state.updateState(O,K,_e)},R.prototype.removeFeatureState=function(O,K,_e){O=O||"_geojsonTileLayer",this._state.removeFeatureState(O,K,_e)},R.prototype.getFeatureState=function(O,K){return O=O||"_geojsonTileLayer",this._state.getState(O,K)},R.prototype.setDependencies=function(O,K,_e){var ne=this._tiles[O];ne&&ne.setDependencies(K,_e)},R.prototype.reloadTilesForDependencies=function(O,K){for(var _e in this._tiles){var ne=this._tiles[_e];ne.hasDependency(O,K)&&this._reloadTile(_e,"reloading")}this._cache.filter(function(Le){return!Le.hasDependency(O,K)})},R}(i.Evented);Ur.maxOverzooming=10,Ur.maxUnderzooming=3;function Ir(Y,R){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),O=Math.abs(R.wrap*2)-+(R.wrap<0);return Y.overscaledZ-R.overscaledZ||O-J||R.canonical.y-Y.canonical.y||R.canonical.x-Y.canonical.x}function Gr(Y){return Y==="raster"||Y==="image"||Y==="video"}function jr(){return new i.window.Worker(cu.workerUrl)}var yi="mapboxgl_preloaded_worker_pool",Ei=function(){this.active={}};Ei.prototype.acquire=function(R){if(!this.workers)for(this.workers=[];this.workers.length0?(K-ne)/Le:0;return this.points[_e].mult(1-Ze).add(this.points[J].mult(Ze))};var ni=function(R,J,O){var K=this.boxCells=[],_e=this.circleCells=[];this.xCellCount=Math.ceil(R/O),this.yCellCount=Math.ceil(J/O);for(var ne=0;nethis.width||K<0||J>this.height)return _e?!1:[];var Le=[];if(R<=0&&J<=0&&this.width<=O&&this.height<=K){if(_e)return!0;for(var Ze=0;Ze0:Le}},ni.prototype._queryCircle=function(R,J,O,K,_e){var ne=R-O,Le=R+O,Ze=J-O,Ct=J+O;if(Le<0||ne>this.width||Ct<0||Ze>this.height)return K?!1:[];var dr=[],Er={hitTest:K,circle:{x:R,y:J,radius:O},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Ze,Le,Ct,this._queryCellCircle,dr,Er,_e),K?dr.length>0:dr},ni.prototype.query=function(R,J,O,K,_e){return this._query(R,J,O,K,!1,_e)},ni.prototype.hitTest=function(R,J,O,K,_e){return this._query(R,J,O,K,!0,_e)},ni.prototype.hitTestCircle=function(R,J,O,K){return this._queryCircle(R,J,O,!0,K)},ni.prototype._queryCell=function(R,J,O,K,_e,ne,Le,Ze){var Ct=Le.seenUids,dr=this.boxCells[_e];if(dr!==null)for(var Er=this.bboxes,lr=0,Je=dr;lr=Er[bt+0]&&K>=Er[bt+1]&&(!Ze||Ze(this.boxKeys[ht]))){if(Le.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[ht],x1:Er[bt],y1:Er[bt+1],x2:Er[bt+2],y2:Er[bt+3]})}}}var Kt=this.circleCells[_e];if(Kt!==null)for(var sr=this.circles,Qt=0,ur=Kt;QtLe*Le+Ze*Ze},ni.prototype._circleAndRectCollide=function(R,J,O,K,_e,ne,Le){var Ze=(ne-K)/2,Ct=Math.abs(R-(K+Ze));if(Ct>Ze+O)return!1;var dr=(Le-_e)/2,Er=Math.abs(J-(_e+dr));if(Er>dr+O)return!1;if(Ct<=Ze||Er<=dr)return!0;var lr=Ct-Ze,Je=Er-dr;return lr*lr+Je*Je<=O*O};function Zi(Y,R,J,O,K){var _e=i.create();return R?(i.scale(_e,_e,[1/K,1/K,1]),J||i.rotateZ(_e,_e,O.angle)):i.multiply(_e,O.labelPlaneMatrix,Y),_e}function aa(Y,R,J,O,K){if(R){var _e=i.clone(Y);return i.scale(_e,_e,[K,K,1]),J||i.rotateZ(_e,_e,-O.angle),_e}else return O.glCoordMatrix}function Mn(Y,R){var J=[Y.x,Y.y,0,1];kn(J,J,R);var O=J[3];return{point:new i.Point(J[0]/O,J[1]/O),signedDistanceFromCamera:O}}function Un(Y,R){return .5+.5*(Y/R)}function Ga(Y,R){var J=Y[0]/Y[3],O=Y[1]/Y[3],K=J>=-R[0]&&J<=R[0]&&O>=-R[1]&&O<=R[1];return K}function ma(Y,R,J,O,K,_e,ne,Le){var Ze=O?Y.textSizeData:Y.iconSizeData,Ct=i.evaluateSizeForZoom(Ze,J.transform.zoom),dr=[256/J.width*2+1,256/J.height*2+1],Er=O?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;Er.clear();for(var lr=Y.lineVertexArray,Je=O?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,ht=J.transform.width/J.transform.height,bt=!1,Kt=0;Kt_e)return{useVertical:!0}}return(Y===i.WritingMode.vertical?R.yJ.x)?{needsFlipping:!0}:null}function so(Y,R,J,O,K,_e,ne,Le,Ze,Ct,dr,Er,lr,Je){var ht=R/24,bt=Y.lineOffsetX*ht,Kt=Y.lineOffsetY*ht,sr;if(Y.numGlyphs>1){var Qt=Y.glyphStartIndex+Y.numGlyphs,ur=Y.lineStartIndex,er=Y.lineStartIndex+Y.lineLength,Ot=oa(ht,Le,bt,Kt,J,dr,Er,Y,Ze,_e,lr);if(!Ot)return{notEnoughRoom:!0};var Jt=Mn(Ot.first.point,ne).point,Lt=Mn(Ot.last.point,ne).point;if(O&&!J){var Tr=ka(Y.writingMode,Jt,Lt,Je);if(Tr)return Tr}sr=[Ot.first];for(var Nr=Y.glyphStartIndex+1;Nr0?yn.point:Kr(Er,Ki,ci,1,K),ca=ka(Y.writingMode,ci,Xa,Je);if(ca)return ca}var Tn=Ia(ht*Le.getoffsetX(Y.glyphStartIndex),bt,Kt,J,dr,Er,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Ze,_e,lr);if(!Tn)return{notEnoughRoom:!0};sr=[Tn]}for(var Pn=0,Nn=sr;Pn0?1:-1,ht=0;O&&(Je*=-1,ht=Math.PI),Je<0&&(ht+=Math.PI);for(var bt=Je>0?Le+ne:Le+ne+1,Kt=K,sr=K,Qt=0,ur=0,er=Math.abs(lr),Ot=[];Qt+ur<=er;){if(bt+=Je,bt=Ze)return null;if(sr=Kt,Ot.push(Kt),Kt=Er[bt],Kt===void 0){var Jt=new i.Point(Ct.getx(bt),Ct.gety(bt)),Lt=Mn(Jt,dr);if(Lt.signedDistanceFromCamera>0)Kt=Er[bt]=Lt.point;else{var Tr=bt-Je,Nr=Qt===0?_e:new i.Point(Ct.getx(Tr),Ct.gety(Tr));Kt=Kr(Nr,Jt,sr,er-Qt+1,dr)}}Qt+=ur,ur=sr.dist(Kt)}var ci=(er-Qt)/ur,Cn=Kt.sub(sr),Ki=Cn.mult(ci)._add(sr);Ki._add(Cn._unit()._perp()._mult(J*Je));var yn=ht+Math.atan2(Kt.y-sr.y,Kt.x-sr.x);return Ot.push(Ki),{point:Ki,angle:yn,path:Ot}}var Yo=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function fa(Y,R){for(var J=0;J=1;xa--)Nn.push(Tn.path[xa]);for(var Zo=1;Zo0){for(var vu=Nn[0].clone(),zu=Nn[0].clone(),$u=1;$u=yn.x&&zu.x<=Xa.x&&vu.y>=yn.y&&zu.y<=Xa.y?Du=[Nn]:zu.xXa.x||zu.yXa.y?Du=[]:Du=i.clipLine([Nn],yn.x,yn.y,Xa.x,Xa.y)}for(var Vf=0,wd=Du;Vf=this.screenRightBoundary||Kthis.screenBottomBoundary},ys.prototype.isInsideGrid=function(R,J,O,K){return O>=0&&R=0&&J0){var er;return this.prevPlacement&&this.prevPlacement.variableOffsets[lr.crossTileID]&&this.prevPlacement.placements[lr.crossTileID]&&this.prevPlacement.placements[lr.crossTileID].text&&(er=this.prevPlacement.variableOffsets[lr.crossTileID].anchor),this.variableOffsets[lr.crossTileID]={textOffset:Kt,width:O,height:K,anchor:R,textBoxScale:_e,prevAnchor:er},this.markUsedJustification(Je,R,lr,ht),Je.allowVerticalPlacement&&(this.markUsedOrientation(Je,ht,lr),this.placedOrientations[lr.crossTileID]=ht),{shift:sr,placedGlyphBoxes:Qt}}},Po.prototype.placeLayerBucketPart=function(R,J,O){var K=this,_e=R.parameters,ne=_e.bucket,Le=_e.layout,Ze=_e.posMatrix,Ct=_e.textLabelPlaneMatrix,dr=_e.labelToScreenMatrix,Er=_e.textPixelRatio,lr=_e.holdingForFade,Je=_e.collisionBoxArray,ht=_e.partiallyEvaluatedTextSize,bt=_e.collisionGroup,Kt=Le.get("text-optional"),sr=Le.get("icon-optional"),Qt=Le.get("text-allow-overlap"),ur=Le.get("icon-allow-overlap"),er=Le.get("text-rotation-alignment")==="map",Ot=Le.get("text-pitch-alignment")==="map",Jt=Le.get("icon-text-fit")!=="none",Lt=Le.get("symbol-z-order")==="viewport-y",Tr=Qt&&(ur||!ne.hasIconData()||sr),Nr=ur&&(Qt||!ne.hasTextData()||Kt);!ne.collisionArrays&&Je&&ne.deserializeCollisionBoxes(Je);var ci=function(Tn,Pn){if(!J[Tn.crossTileID]){if(lr){K.placements[Tn.crossTileID]=new fo(!1,!1,!1);return}var Nn=!1,xa=!1,Zo=!0,ru=null,yu={box:null,offscreen:null},Du={box:null,offscreen:null},vu=null,zu=null,$u=null,Vf=0,wd=0,Ad=0;Pn.textFeatureIndex?Vf=Pn.textFeatureIndex:Tn.useRuntimeCollisionCircles&&(Vf=Tn.featureIndex),Pn.verticalTextFeatureIndex&&(wd=Pn.verticalTextFeatureIndex);var Td=Pn.textBox;if(Td){var Yp=function(wc){var Wf=i.WritingMode.horizontal;if(ne.allowVerticalPlacement&&!wc&&K.prevPlacement){var Ed=K.prevPlacement.placedOrientations[Tn.crossTileID];Ed&&(K.placedOrientations[Tn.crossTileID]=Ed,Wf=Ed,K.markUsedOrientation(ne,Wf,Tn))}return Wf},fm=function(wc,Wf){if(ne.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&Pn.verticalTextBox)for(var Ed=0,sg=ne.writingModes;Ed0&&(Hd=Hd.filter(function(wc){return wc!==Md.anchor}),Hd.unshift(Md.anchor))}var Lp=function(wc,Wf,Ed){for(var sg=wc.x2-wc.x1,T1=wc.y2-wc.y1,ic=Tn.textBoxScale,qx=Jt&&!ur?Wf:null,ay={box:[],offscreen:!1},Mw=Qt?Hd.length*2:Hd.length,zp=0;zp=Hd.length,Nx=K.attemptAnchorPlacement(oy,wc,sg,T1,ic,er,Ot,Er,Ze,bt,Ew,Tn,ne,Ed,qx);if(Nx&&(ay=Nx.placedGlyphBoxes,ay&&ay.box&&ay.box.length)){Nn=!0,ru=Nx.shift;break}}return ay},Kp=function(){return Lp(Td,Pn.iconBox,i.WritingMode.horizontal)},Pp=function(){var wc=Pn.verticalTextBox,Wf=yu&&yu.box&&yu.box.length;return ne.allowVerticalPlacement&&!Wf&&Tn.numVerticalGlyphVertices>0&&wc?Lp(wc,Pn.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};fm(Kp,Pp),yu&&(Nn=yu.box,Zo=yu.offscreen);var ng=Yp(yu&&yu.box);if(!Nn&&K.prevPlacement){var cm=K.prevPlacement.variableOffsets[Tn.crossTileID];cm&&(K.variableOffsets[Tn.crossTileID]=cm,K.markUsedJustification(ne,cm.anchor,Tn,ng))}}else{var dv=function(wc,Wf){var Ed=K.collisionIndex.placeCollisionBox(wc,Qt,Er,Ze,bt.predicate);return Ed&&Ed.box&&Ed.box.length&&(K.markUsedOrientation(ne,Wf,Tn),K.placedOrientations[Tn.crossTileID]=Wf),Ed},Sd=function(){return dv(Td,i.WritingMode.horizontal)},pv=function(){var wc=Pn.verticalTextBox;return ne.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&wc?dv(wc,i.WritingMode.vertical):{box:null,offscreen:null}};fm(Sd,pv),Yp(yu&&yu.box&&yu.box.length)}}if(vu=yu,Nn=vu&&vu.box&&vu.box.length>0,Zo=vu&&vu.offscreen,Tn.useRuntimeCollisionCircles){var vh=ne.text.placedSymbolArray.get(Tn.centerJustifiedTextSymbolIndex),hm=i.evaluateSizeForFeature(ne.textSizeData,ht,vh),ag=Le.get("text-padding"),jh=Tn.collisionCircleDiameter;zu=K.collisionIndex.placeCollisionCircles(Qt,vh,ne.lineVertexArray,ne.glyphOffsetArray,hm,Ze,Ct,dr,O,Ot,bt.predicate,jh,ag),Nn=Qt||zu.circles.length>0&&!zu.collisionDetected,Zo=Zo&&zu.offscreen}if(Pn.iconFeatureIndex&&(Ad=Pn.iconFeatureIndex),Pn.iconBox){var ry=function(wc){var Wf=Jt&&ru?Co(wc,ru.x,ru.y,er,Ot,K.transform.angle):wc;return K.collisionIndex.placeCollisionBox(Wf,ur,Er,Ze,bt.predicate)};Du&&Du.box&&Du.box.length&&Pn.verticalIconBox?($u=ry(Pn.verticalIconBox),xa=$u.box.length>0):($u=ry(Pn.iconBox),xa=$u.box.length>0),Zo=Zo&&$u.offscreen}var w1=Kt||Tn.numHorizontalGlyphVertices===0&&Tn.numVerticalGlyphVertices===0,A1=sr||Tn.numIconVertices===0;if(!w1&&!A1?xa=Nn=xa&&Nn:A1?w1||(xa=xa&&Nn):Nn=xa&&Nn,Nn&&vu&&vu.box&&(Du&&Du.box&&wd?K.collisionIndex.insertCollisionBox(vu.box,Le.get("text-ignore-placement"),ne.bucketInstanceId,wd,bt.ID):K.collisionIndex.insertCollisionBox(vu.box,Le.get("text-ignore-placement"),ne.bucketInstanceId,Vf,bt.ID)),xa&&$u&&K.collisionIndex.insertCollisionBox($u.box,Le.get("icon-ignore-placement"),ne.bucketInstanceId,Ad,bt.ID),zu&&(Nn&&K.collisionIndex.insertCollisionCircles(zu.circles,Le.get("text-ignore-placement"),ne.bucketInstanceId,Vf,bt.ID),O)){var og=ne.bucketInstanceId,iy=K.collisionCircleArrays[og];iy===void 0&&(iy=K.collisionCircleArrays[og]=new mn);for(var ny=0;ny=0;--Ki){var yn=Cn[Ki];ci(ne.symbolInstances.get(yn),ne.collisionArrays[yn])}else for(var Xa=R.symbolInstanceStart;Xa=0&&(ne>=0&&dr!==ne?R.text.placedSymbolArray.get(dr).crossTileID=0:R.text.placedSymbolArray.get(dr).crossTileID=O.crossTileID)}},Po.prototype.markUsedOrientation=function(R,J,O){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,_e=J===i.WritingMode.vertical?J:0,ne=[O.leftJustifiedTextSymbolIndex,O.centerJustifiedTextSymbolIndex,O.rightJustifiedTextSymbolIndex],Le=0,Ze=ne;Le0||Ot>0,ci=ur.numIconVertices>0,Cn=K.placedOrientations[ur.crossTileID],Ki=Cn===i.WritingMode.vertical,yn=Cn===i.WritingMode.horizontal||Cn===i.WritingMode.horizontalOnly;if(Nr){var Xa=Qo(Tr.text),ca=Ki?Wi:Xa;ht(R.text,er,ca);var Tn=yn?Wi:Xa;ht(R.text,Ot,Tn);var Pn=Tr.text.isHidden();[ur.rightJustifiedTextSymbolIndex,ur.centerJustifiedTextSymbolIndex,ur.leftJustifiedTextSymbolIndex].forEach(function(Ad){Ad>=0&&(R.text.placedSymbolArray.get(Ad).hidden=Pn||Ki?1:0)}),ur.verticalPlacedTextSymbolIndex>=0&&(R.text.placedSymbolArray.get(ur.verticalPlacedTextSymbolIndex).hidden=Pn||yn?1:0);var Nn=K.variableOffsets[ur.crossTileID];Nn&&K.markUsedJustification(R,Nn.anchor,ur,Cn);var xa=K.placedOrientations[ur.crossTileID];xa&&(K.markUsedJustification(R,"left",ur,xa),K.markUsedOrientation(R,xa,ur))}if(ci){var Zo=Qo(Tr.icon),ru=!(lr&&ur.verticalPlacedIconSymbolIndex&&Ki);if(ur.placedIconSymbolIndex>=0){var yu=ru?Zo:Wi;ht(R.icon,ur.numIconVertices,yu),R.icon.placedSymbolArray.get(ur.placedIconSymbolIndex).hidden=Tr.icon.isHidden()}if(ur.verticalPlacedIconSymbolIndex>=0){var Du=ru?Wi:Zo;ht(R.icon,ur.numVerticalIconVertices,Du),R.icon.placedSymbolArray.get(ur.verticalPlacedIconSymbolIndex).hidden=Tr.icon.isHidden()}}if(R.hasIconCollisionBoxData()||R.hasTextCollisionBoxData()){var vu=R.collisionArrays[Qt];if(vu){var zu=new i.Point(0,0);if(vu.textBox||vu.verticalTextBox){var $u=!0;if(Ct){var Vf=K.variableOffsets[Jt];Vf?(zu=ws(Vf.anchor,Vf.width,Vf.height,Vf.textOffset,Vf.textBoxScale),dr&&zu._rotate(Er?K.transform.angle:-K.transform.angle)):$u=!1}vu.textBox&&ji(R.textCollisionBox.collisionVertexArray,Tr.text.placed,!$u||Ki,zu.x,zu.y),vu.verticalTextBox&&ji(R.textCollisionBox.collisionVertexArray,Tr.text.placed,!$u||yn,zu.x,zu.y)}var wd=!!(!yn&&vu.verticalIconBox);vu.iconBox&&ji(R.iconCollisionBox.collisionVertexArray,Tr.icon.placed,wd,lr?zu.x:0,lr?zu.y:0),vu.verticalIconBox&&ji(R.iconCollisionBox.collisionVertexArray,Tr.icon.placed,!wd,lr?zu.x:0,lr?zu.y:0)}}},Kt=0;KtR},Po.prototype.setStale=function(){this.stale=!0};function ji(Y,R,J,O,K){Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0)}var gn=Math.pow(2,25),Ps=Math.pow(2,24),Ha=Math.pow(2,17),Sn=Math.pow(2,16),ao=Math.pow(2,9),Ba=Math.pow(2,8),Ko=Math.pow(2,1);function Qo(Y){if(Y.opacity===0&&!Y.placed)return 0;if(Y.opacity===1&&Y.placed)return 4294967295;var R=Y.placed?1:0,J=Math.floor(Y.opacity*127);return J*gn+R*Ps+J*Ha+R*Sn+J*ao+R*Ba+J*Ko+R}var Wi=0,Sa=function(R){this._sortAcrossTiles=R.layout.get("symbol-z-order")!=="viewport-y"&&R.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Sa.prototype.continuePlacement=function(R,J,O,K,_e){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Le=R[this._currentPlacementIndex],Ze=J[Le],Ct=this.placement.collisionIndex.transform.zoom;if(Ze.type==="symbol"&&(!Ze.minzoom||Ze.minzoom<=Ct)&&(!Ze.maxzoom||Ze.maxzoom>Ct)){this._inProgressLayer||(this._inProgressLayer=new Sa(Ze));var dr=this._inProgressLayer.continuePlacement(O[Ze.source],this.placement,this._showCollisionBoxes,Ze,ne);if(dr)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Qa.prototype.commit=function(R){return this.placement.commit(R),this.placement};var vn=512/i.EXTENT/2,da=function(R,J,O){this.tileID=R,this.indexedSymbolInstances={},this.bucketInstanceId=O;for(var K=0;KR.overscaledZ)for(var Ct in Ze){var dr=Ze[Ct];dr.tileID.isChildOf(R)&&dr.findMatches(J.symbolInstances,R,ne)}else{var Er=R.scaledTo(Number(Le)),lr=Ze[Er.key];lr&&lr.findMatches(J.symbolInstances,R,ne)}}for(var Je=0;Je0)throw new Error("Unimplemented: "+ne.map(function(Le){return Le.command}).join(", ")+".");return _e.forEach(function(Le){Le.command!=="setTransition"&&K[Le.command].apply(K,Le.args)}),this.stylesheet=O,!0},R.prototype.addImage=function(O,K){if(this.getImage(O))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(O,K),this._afterImageUpdated(O)},R.prototype.updateImage=function(O,K){this.imageManager.updateImage(O,K)},R.prototype.getImage=function(O){return this.imageManager.getImage(O)},R.prototype.removeImage=function(O){if(!this.getImage(O))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(O),this._afterImageUpdated(O)},R.prototype._afterImageUpdated=function(O){this._availableImages=this.imageManager.listImages(),this._changedImages[O]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},R.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},R.prototype.addSource=function(O,K,_e){var ne=this;if(_e===void 0&&(_e={}),this._checkLoaded(),this.sourceCaches[O]!==void 0)throw new Error("There is already a source with this ID");if(!K.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(K).join(", ")+".");var Le=["vector","raster","geojson","video","image"],Ze=Le.indexOf(K.type)>=0;if(!(Ze&&this._validate(i.validateStyle.source,"sources."+O,K,null,_e))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var Ct=this.sourceCaches[O]=new Ur(O,K,this.dispatcher);Ct.style=this,Ct.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:Ct.serialize(),sourceId:O}}),Ct.onAdd(this.map),this._changed=!0}},R.prototype.removeSource=function(O){if(this._checkLoaded(),this.sourceCaches[O]===void 0)throw new Error("There is no source with this ID");for(var K in this._layers)if(this._layers[K].source===O)return this.fire(new i.ErrorEvent(new Error('Source "'+O+'" cannot be removed while layer "'+K+'" is using it.')));var _e=this.sourceCaches[O];delete this.sourceCaches[O],delete this._updatedSources[O],_e.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:O})),_e.setEventedParent(null),_e.clearTiles(),_e.onRemove&&_e.onRemove(this.map),this._changed=!0},R.prototype.setGeoJSONSourceData=function(O,K){this._checkLoaded();var _e=this.sourceCaches[O].getSource();_e.setData(K),this._changed=!0},R.prototype.getSource=function(O){return this.sourceCaches[O]&&this.sourceCaches[O].getSource()},R.prototype.addLayer=function(O,K,_e){_e===void 0&&(_e={}),this._checkLoaded();var ne=O.id;if(this.getLayer(ne)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ne+'" already exists on this map')));return}var Le;if(O.type==="custom"){if(ps(this,i.validateCustomStyleLayer(O)))return;Le=i.createStyleLayer(O)}else{if(typeof O.source=="object"&&(this.addSource(ne,O.source),O=i.clone$1(O),O=i.extend(O,{source:ne})),this._validate(i.validateStyle.layer,"layers."+ne,O,{arrayIndex:-1},_e))return;Le=i.createStyleLayer(O),this._validateLayer(Le),Le.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[Le.id]=Le.serialize()}var Ze=K?this._order.indexOf(K):this._order.length;if(K&&Ze===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Ze,0,ne),this._layerOrderChanged=!0,this._layers[ne]=Le,this._removedLayers[ne]&&Le.source&&Le.type!=="custom"){var Ct=this._removedLayers[ne];delete this._removedLayers[ne],Ct.type!==Le.type?this._updatedSources[Le.source]="clear":(this._updatedSources[Le.source]="reload",this.sourceCaches[Le.source].pause())}this._updateLayer(Le),Le.onAdd&&Le.onAdd(this.map)},R.prototype.moveLayer=function(O,K){this._checkLoaded(),this._changed=!0;var _e=this._layers[O];if(!_e){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be moved.")));return}if(O!==K){var ne=this._order.indexOf(O);this._order.splice(ne,1);var Le=K?this._order.indexOf(K):this._order.length;if(K&&Le===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}this._order.splice(Le,0,O),this._layerOrderChanged=!0}},R.prototype.removeLayer=function(O){this._checkLoaded();var K=this._layers[O];if(!K){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be removed.")));return}K.setEventedParent(null);var _e=this._order.indexOf(O);this._order.splice(_e,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[O]=K,delete this._layers[O],delete this._serializedLayers[O],delete this._updatedLayers[O],delete this._updatedPaintProps[O],K.onRemove&&K.onRemove(this.map)},R.prototype.getLayer=function(O){return this._layers[O]},R.prototype.hasLayer=function(O){return O in this._layers},R.prototype.setLayerZoomRange=function(O,K,_e){this._checkLoaded();var ne=this.getLayer(O);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot have zoom extent.")));return}ne.minzoom===K&&ne.maxzoom===_e||(K!=null&&(ne.minzoom=K),_e!=null&&(ne.maxzoom=_e),this._updateLayer(ne))},R.prototype.setFilter=function(O,K,_e){_e===void 0&&(_e={}),this._checkLoaded();var ne=this.getLayer(O);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(ne.filter,K)){if(K==null){ne.filter=void 0,this._updateLayer(ne);return}this._validate(i.validateStyle.filter,"layers."+ne.id+".filter",K,null,_e)||(ne.filter=i.clone$1(K),this._updateLayer(ne))}},R.prototype.getFilter=function(O){return i.clone$1(this.getLayer(O).filter)},R.prototype.setLayoutProperty=function(O,K,_e,ne){ne===void 0&&(ne={}),this._checkLoaded();var Le=this.getLayer(O);if(!Le){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(Le.getLayoutProperty(K),_e)||(Le.setLayoutProperty(K,_e,ne),this._updateLayer(Le))},R.prototype.getLayoutProperty=function(O,K){var _e=this.getLayer(O);if(!_e){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style.")));return}return _e.getLayoutProperty(K)},R.prototype.setPaintProperty=function(O,K,_e,ne){ne===void 0&&(ne={}),this._checkLoaded();var Le=this.getLayer(O);if(!Le){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(Le.getPaintProperty(K),_e)){var Ze=Le.setPaintProperty(K,_e,ne);Ze&&this._updateLayer(Le),this._changed=!0,this._updatedPaintProps[O]=!0}},R.prototype.getPaintProperty=function(O,K){return this.getLayer(O).getPaintProperty(K)},R.prototype.setFeatureState=function(O,K){this._checkLoaded();var _e=O.source,ne=O.sourceLayer,Le=this.sourceCaches[_e];if(Le===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+_e+"' does not exist in the map's style.")));return}var Ze=Le.getSource().type;if(Ze==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ze==="vector"&&!ne){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}O.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),Le.setFeatureState(ne,O.id,K)},R.prototype.removeFeatureState=function(O,K){this._checkLoaded();var _e=O.source,ne=this.sourceCaches[_e];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+_e+"' does not exist in the map's style.")));return}var Le=ne.getSource().type,Ze=Le==="vector"?O.sourceLayer:void 0;if(Le==="vector"&&!Ze){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(K&&typeof O.id!="string"&&typeof O.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ne.removeFeatureState(Ze,O.id,K)},R.prototype.getFeatureState=function(O){this._checkLoaded();var K=O.source,_e=O.sourceLayer,ne=this.sourceCaches[K];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+K+"' does not exist in the map's style.")));return}var Le=ne.getSource().type;if(Le==="vector"&&!_e){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return O.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ne.getFeatureState(_e,O.id)},R.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},R.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(O){return O.serialize()}),layers:this._serializeLayers(this._order)},function(O){return O!==void 0})},R.prototype._updateLayer=function(O){this._updatedLayers[O.id]=!0,O.source&&!this._updatedSources[O.source]&&this.sourceCaches[O.source].getSource().type!=="raster"&&(this._updatedSources[O.source]="reload",this.sourceCaches[O.source].pause()),this._changed=!0},R.prototype._flattenAndSortRenderedFeatures=function(O){for(var K=this,_e=function(yn){return K._layers[yn].type==="fill-extrusion"},ne={},Le=[],Ze=this._order.length-1;Ze>=0;Ze--){var Ct=this._order[Ze];if(_e(Ct)){ne[Ct]=Ze;for(var dr=0,Er=O;dr=0;Qt--){var ur=this._order[Qt];if(_e(ur))for(var er=Le.length-1;er>=0;er--){var Ot=Le[er].feature;if(ne[Ot.layer.id] .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var Nk=Te((ebr,tGe)=>{"use strict";var $Ve=ei(),QVe=jl().defaultLine,LWt=zc().attributes,PWt=gc(),zWt=Zc().textposition,IWt=Sc().overrideAll,RWt=Pf().templatedArray,sJ=f1(),eGe=PWt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});eGe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var DWt=tGe.exports=IWt({_arrayAttrRegexps:[$Ve.counterRegex("mapbox",".layers",!0)],domain:LWt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:sJ.styleValuesMapbox.concat(sJ.styleValuesNonMapbox),dflt:sJ.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:RWt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:QVe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:QVe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:eGe,textposition:$Ve.extendFlat({},zWt,{arrayOk:!1})}})},"plot","from-root");DWt.uirevision={valType:"any",editType:"none"}});var Q8=Te((tbr,nGe)=>{"use strict";var FWt=Nu().hovertemplateAttrs,BWt=Nu().texttemplateAttrs,OWt=km(),Uk=G2(),bS=Zc(),rGe=Nk(),qWt=Gf(),NWt=nc(),ew=Su().extendFlat,UWt=Sc().overrideAll,VWt=Nk(),iGe=Uk.line,wS=Uk.marker;nGe.exports=UWt({lon:Uk.lon,lat:Uk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:ew({},VWt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:ew({},wS.opacity,{dflt:1})},mode:ew({},bS.mode,{dflt:"markers"}),text:ew({},bS.text,{}),texttemplate:BWt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:ew({},bS.hovertext,{}),line:{color:iGe.color,width:iGe.width},connectgaps:bS.connectgaps,marker:ew({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:wS.opacity,size:wS.size,sizeref:wS.sizeref,sizemin:wS.sizemin,sizemode:wS.sizemode},NWt("marker")),fill:Uk.fill,fillcolor:OWt(),textfont:rGe.layers.symbol.textfont,textposition:rGe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:bS.selected.marker},unselected:{marker:bS.unselected.marker},hoverinfo:ew({},qWt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:FWt()},"calc","nested")});var lJ=Te((rbr,aGe)=>{"use strict";var GWt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];aGe.exports={isSupportedFont:function(e){return GWt.indexOf(e)!==-1}}});var lGe=Te((ibr,sGe)=>{"use strict";var Vk=ei(),uJ=lc(),HWt=$v(),WWt=R0(),jWt=D0(),XWt=zm(),oGe=Q8(),ZWt=lJ().isSupportedFont;sGe.exports=function(t,r,n,i){function a(v,k){return Vk.coerce(t,r,oGe,v,k)}function o(v,k){return Vk.coerce2(t,r,oGe,v,k)}var s=YWt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),uJ.hasMarkers(r)){HWt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var u=r.marker;u.symbol!=="circle"&&(Vk.isArrayOrTypedArray(u.size)&&(u.size=u.size[0]),Vk.isArrayOrTypedArray(u.color)&&(u.color=u.color[0]))}uJ.hasLines(r)&&(WWt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var l=o("cluster.maxzoom"),f=o("cluster.step"),c=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),p=l!==!1||f!==!1||c!==!1||h!==!1||d!==!1,_=a("cluster.enabled",p);if(_||uJ.hasText(r)){var b=i.font.family;jWt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:ZWt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&XWt(t,r,n,a),Vk.coerceSelectionMarkerOpacity(r,a)};function YWt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var fJ=Te((nbr,fGe)=>{"use strict";var uGe=wu();fGe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=uGe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=uGe.tickText(o,o.c2l(s[1]),!0).text,i}});var cJ=Te((abr,hGe)=>{"use strict";var cGe=ei();hGe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=cGe.isArrayOrTypedArray(r)?cGe.mean(r):r,s=.5+o/100,u=1.5+o/100,l=["",""],f=[0,0];switch(i){case"top":l[0]="top",f[1]=-u;break;case"bottom":l[0]="bottom",f[1]=u;break}switch(a){case"left":l[1]="right",f[0]=-s;break;case"right":l[1]="left",f[0]=s;break}var c;return l[0]&&l[1]?c=l.join("-"):l[0]?c=l[0]:l[1]?c=l[1]:c="center",{anchor:c,offset:f}}});var gGe=Te((obr,yGe)=>{"use strict";var vGe=ku(),sp=ei(),KWt=nf().BADNUM,tB=tx(),dGe=_c(),JWt=Mu(),$Wt=S3(),rB=lc(),QWt=lJ().isSupportedFont,ejt=cJ(),tjt=iv().appendArrayPointValue,rjt=Xf().NEWLINES,ijt=Xf().BR_TAG_ALL;yGe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=rB.hasLines(n),s=rB.hasMarkers(n),u=rB.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=eB("fill"),d=eB("line"),p=eB("circle"),_=eB("symbol"),b={fill:h,line:d,circle:p,symbol:_};if(!i)return b;var v;if((a||o)&&(v=tB.calcTraceToLineCoords(r)),a&&(h.geojson=tB.makePolygon(v),h.layout.visibility="visible",sp.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=tB.makeLine(v),d.layout.visibility="visible",sp.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),l){var k=njt(r);p.geojson=k.geojson,p.layout.visibility="visible",c&&(p.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":dJ(n.cluster.color,n.cluster.step),"circle-radius":dJ(n.cluster.size,n.cluster.step),"circle-opacity":dJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":pGe(n),"text-size":12}}),sp.extendFlat(p.paint,{"circle-color":k.mcc,"circle-radius":k.mrc,"circle-opacity":k.mo})}if(l&&c&&(p.filter=["!",["has","point_count"]]),(f||u)&&(_.geojson=ajt(r,t),sp.extendFlat(_.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(sp.extendFlat(_.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&sp.extendFlat(_.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),_.layout["icon-allow-overlap"]=n.marker.allowoverlap,sp.extendFlat(_.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var E=(n.marker||{}).size,T=ejt(n.textposition,E);sp.extendFlat(_.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":pGe(n)}),sp.extendFlat(_.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function eB(e){return{type:e,geojson:tB.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function njt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=sp.isArrayOrTypedArray(r.color),a=sp.isArrayOrTypedArray(r.size),o=sp.isArrayOrTypedArray(r.opacity),s;function u(E){return t.opacity*E}function l(E){return E/2}var f;i&&(dGe.hasColorscale(t,"marker")?f=dGe.makeColorScaleFuncFromTrace(r):f=sp.identity);var c;a&&(c=$Wt(t));var h;o&&(h=function(E){var T=vGe(E)?+sp.constrain(E,0,1):0;return u(T)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),QWt(s)||(s=r);var u=s.split(", ");return u}});var wGe=Te((sbr,bGe)=>{"use strict";var ojt=ei(),_Ge=gGe(),AS=f1().traceLayerPrefix,im={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function xGe(e,t,r,n){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:AS+t+"-fill",line:AS+t+"-line",circle:AS+t+"-circle",symbol:AS+t+"-symbol",cluster:AS+t+"-cluster",clusterCount:AS+t+"-cluster-count"},this.below=null}var Gk=xGe.prototype;Gk.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&ojt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};Gk.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};Gk.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var x=T[L];i.removeLayer(l.layerIds[x])}E||i.removeSource(l.sourceIds.circle)}function h(E){for(var T=im.nonCluster,L=0;L=0;L--){var x=T[L];i.removeLayer(l.layerIds[x]),E||i.removeSource(l.sourceIds[x])}}function p(E){u?c(E):d(E)}function _(E){s?f(E):h(E)}function b(){for(var E=s?im.cluster:im.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};bGe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new xGe(t,n.uid,i,a),s=_Ge(t.gd,r),u=o.below=t.belowLookup["trace-"+n.uid],l,f,c;if(i)for(o.addSource("circle",s.circle,n.cluster),l=0;l{"use strict";var sjt=Xc(),pJ=ei(),ljt=sA(),ujt=pJ.fillText,fjt=nf().BADNUM,cjt=f1().traceLayerPrefix;function hjt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,u=[],l=cjt+i.uid+"-circle",f=i.cluster&&i.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[l]});u=c.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function _(M){var m=M.lonlat;if(m[0]===fjt||f&&u.indexOf(M.i+1)===-1)return 1/0;var P=pJ.modHalf(m[0],360),A=m[1],B=s.project([P,A]),F=B.x-a.c2p([p,A]),U=B.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(F*F+U*U)-G,1-3/G)}if(sjt.getClosest(n,_,e),e.index!==!1){var b=n[e.index],v=b.lonlat,k=[pJ.modHalf(v[0],360)+d,v[1]],E=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=T-L,e.y1=T+L;var x={};x[i.subplot]={_subplot:s};var C=i._module.formatLabels(b,i,x);return e.lonLabel=C.lonLabel,e.latLabel=C.latLabel,e.color=ljt(i,b),e.extraText=AGe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function AGe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=t.lonlat,l=[];function f(c){return c+"\xB0"}return a||o&&s?l.push("("+f(u[1])+", "+f(u[0])+")"):o?l.push(r.lon+f(u[0])):s&&l.push(r.lat+f(u[1])),(a||i.indexOf("text")!==-1)&&ujt(t,e,l),l.join("
")}TGe.exports={hoverPoints:hjt,getExtraText:AGe}});var MGe=Te((ubr,SGe)=>{"use strict";SGe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var kGe=Te((fbr,EGe)=>{"use strict";var djt=ei(),pjt=lc(),vjt=nf().BADNUM;EGe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!pjt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof vJ=="object"&&typeof mJ!="undefined"?mJ.exports=t():(e=e||self,e.mapboxgl=t())})(vJ,function(){"use strict";var e,t,r;function n(i,a){if(!e)e=a;else if(!t)t=a;else{var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",s={};e(s),r=a(s),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}}return n(["exports"],function(i){"use strict";function a(y,g){return g={exports:{}},y(g,g.exports),g.exports}var o="1.13.4",s=u;function u(y,g,z,V){this.cx=3*y,this.bx=3*(z-y)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*g,this.by=3*(V-g)-this.cy,this.ay=1-this.cy-this.by,this.p1x=y,this.p1y=V,this.p2x=z,this.p2y=V}u.prototype.sampleCurveX=function(y){return((this.ax*y+this.bx)*y+this.cx)*y},u.prototype.sampleCurveY=function(y){return((this.ay*y+this.by)*y+this.cy)*y},u.prototype.sampleCurveDerivativeX=function(y){return(3*this.ax*y+2*this.bx)*y+this.cx},u.prototype.solveCurveX=function(y,g){typeof g=="undefined"&&(g=1e-6);var z,V,$,oe,me;for($=y,me=0;me<8;me++){if(oe=this.sampleCurveX($)-y,Math.abs(oe)V)return V;for(;zoe?z=$:V=$,$=(V-z)*.5+z}return $},u.prototype.solve=function(y,g){return this.sampleCurveY(this.solveCurveX(y,g))};var l=f;function f(y,g){this.x=y,this.y=g}f.prototype={clone:function(){return new f(this.x,this.y)},add:function(y){return this.clone()._add(y)},sub:function(y){return this.clone()._sub(y)},multByPoint:function(y){return this.clone()._multByPoint(y)},divByPoint:function(y){return this.clone()._divByPoint(y)},mult:function(y){return this.clone()._mult(y)},div:function(y){return this.clone()._div(y)},rotate:function(y){return this.clone()._rotate(y)},rotateAround:function(y,g){return this.clone()._rotateAround(y,g)},matMult:function(y){return this.clone()._matMult(y)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(y){return this.x===y.x&&this.y===y.y},dist:function(y){return Math.sqrt(this.distSqr(y))},distSqr:function(y){var g=y.x-this.x,z=y.y-this.y;return g*g+z*z},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(y){return Math.atan2(this.y-y.y,this.x-y.x)},angleWith:function(y){return this.angleWithSep(y.x,y.y)},angleWithSep:function(y,g){return Math.atan2(this.x*g-this.y*y,this.x*y+this.y*g)},_matMult:function(y){var g=y[0]*this.x+y[1]*this.y,z=y[2]*this.x+y[3]*this.y;return this.x=g,this.y=z,this},_add:function(y){return this.x+=y.x,this.y+=y.y,this},_sub:function(y){return this.x-=y.x,this.y-=y.y,this},_mult:function(y){return this.x*=y,this.y*=y,this},_div:function(y){return this.x/=y,this.y/=y,this},_multByPoint:function(y){return this.x*=y.x,this.y*=y.y,this},_divByPoint:function(y){return this.x/=y.x,this.y/=y.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var y=this.y;return this.y=this.x,this.x=-y,this},_rotate:function(y){var g=Math.cos(y),z=Math.sin(y),V=g*this.x-z*this.y,$=z*this.x+g*this.y;return this.x=V,this.y=$,this},_rotateAround:function(y,g){var z=Math.cos(y),V=Math.sin(y),$=g.x+z*(this.x-g.x)-V*(this.y-g.y),oe=g.y+V*(this.x-g.x)+z*(this.y-g.y);return this.x=$,this.y=oe,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},f.convert=function(y){return y instanceof f?y:Array.isArray(y)?new f(y[0],y[1]):y};var c=typeof self!="undefined"?self:{};function h(y,g){if(Array.isArray(y)){if(!Array.isArray(g)||y.length!==g.length)return!1;for(var z=0;z=1)return 1;var g=y*y,z=g*y;return 4*(y<.5?z:3*(y-g)+z-.75)}function _(y,g,z,V){var $=new s(y,g,z,V);return function(oe){return $.solve(oe)}}var b=_(.25,.1,.25,1);function v(y,g,z){return Math.min(z,Math.max(g,y))}function k(y,g,z){var V=z-g,$=((y-g)%V+V)%V+g;return $===g?z:$}function E(y,g,z){if(!y.length)return z(null,[]);var V=y.length,$=new Array(y.length),oe=null;y.forEach(function(me,je){g(me,function(xt,Dt){xt&&(oe=xt),$[je]=Dt,--V===0&&z(oe,$)})})}function T(y){var g=[];for(var z in y)g.push(y[z]);return g}function L(y,g){var z=[];for(var V in y)V in g||z.push(V);return z}function x(y){for(var g=[],z=arguments.length-1;z-- >0;)g[z]=arguments[z+1];for(var V=0,$=g;V<$.length;V+=1){var oe=$[V];for(var me in oe)y[me]=oe[me]}return y}function C(y,g){for(var z={},V=0;V>g/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,y)}return y()}function A(y){return y<=1?1:Math.pow(2,Math.ceil(Math.log(y)/Math.LN2))}function B(y){return y?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(y):!1}function F(y,g){y.forEach(function(z){g[z]&&(g[z]=g[z].bind(g))})}function U(y,g){return y.indexOf(g,y.length-g.length)!==-1}function G(y,g,z){var V={};for(var $ in y)V[$]=g.call(z||this,y[$],$,y);return V}function j(y,g,z){var V={};for(var $ in y)g.call(z||this,y[$],$,y)&&(V[$]=y[$]);return V}function H(y){return Array.isArray(y)?y.map(H):typeof y=="object"&&y?G(y,H):y}function N(y,g){for(var z=0;z=0)return!0;return!1}var W={};function re(y){W[y]||(typeof console!="undefined"&&console.warn(y),W[y]=!0)}function ae(y,g,z){return(z.y-y.y)*(g.x-y.x)>(g.y-y.y)*(z.x-y.x)}function be(y){for(var g=0,z=0,V=y.length,$=V-1,oe=void 0,me=void 0;z@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,z={};if(y.replace(g,function($,oe,me,je){var xt=me||je;return z[oe]=xt?xt.toLowerCase():!0,""}),z["max-age"]){var V=parseInt(z["max-age"],10);isNaN(V)?delete z["max-age"]:z["max-age"]=V}return z}var te=null;function ke(y){if(te==null){var g=y.navigator?y.navigator.userAgent:null;te=!!y.safari||!!(g&&(/\b(iPad|iPhone|iPod)\b/.test(g)||g.match("Safari")&&!g.match("Chrome")))}return te}function Ee(y){try{var g=c[y];return g.setItem("_mapbox_test_",1),g.removeItem("_mapbox_test_"),!0}catch(z){return!1}}function Me(y){return c.btoa(encodeURIComponent(y).replace(/%([0-9A-F]{2})/g,function(g,z){return String.fromCharCode(+("0x"+z))}))}function Ne(y){return decodeURIComponent(c.atob(y).split("").map(function(g){return"%"+("00"+g.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Fe=c.performance&&c.performance.now?c.performance.now.bind(c.performance):Date.now.bind(Date),ye=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame||c.msRequestAnimationFrame,Ve=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame||c.msCancelAnimationFrame,ce,Ke,nt={now:Fe,frame:function(g){var z=ye(g);return{cancel:function(){return Ve(z)}}},getImageData:function(g,z){z===void 0&&(z=0);var V=c.document.createElement("canvas"),$=V.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return V.width=g.width,V.height=g.height,$.drawImage(g,0,0,g.width,g.height),$.getImageData(-z,-z,g.width+2*z,g.height+2*z)},resolveURL:function(g){return ce||(ce=c.document.createElement("a")),ce.href=g,ce.href},hardwareConcurrency:c.navigator&&c.navigator.hardwareConcurrency||4,get devicePixelRatio(){return c.devicePixelRatio},get prefersReducedMotion(){return c.matchMedia?(Ke==null&&(Ke=c.matchMedia("(prefers-reduced-motion: reduce)")),Ke.matches):!1}},gt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Nt={supported:!1,testSupport:St},it,Ye=!1,kt,Tt=!1;c.document&&(kt=c.document.createElement("img"),kt.onload=function(){it&&Rt(it),it=null,Tt=!0},kt.onerror=function(){Ye=!0,it=null},kt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function St(y){Ye||!kt||(Tt?Rt(y):it=y)}function Rt(y){var g=y.createTexture();y.bindTexture(y.TEXTURE_2D,g);try{if(y.texImage2D(y.TEXTURE_2D,0,y.RGBA,y.RGBA,y.UNSIGNED_BYTE,kt),y.isContextLost())return;Nt.supported=!0}catch(z){}y.deleteTexture(g),Ye=!0}var Zt="01";function Et(){for(var y="1",g="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",z="",V=0;V<10;V++)z+=g[Math.floor(Math.random()*62)];var $=12*60*60*1e3,oe=[y,Zt,z].join(""),me=Date.now()+$;return{token:oe,tokenExpiresAt:me}}var Ae=function(g,z){this._transformRequestFn=g,this._customAccessToken=z,this._createSkuToken()};Ae.prototype._createSkuToken=function(){var g=Et();this._skuToken=g.token,this._skuTokenExpiresAt=g.tokenExpiresAt},Ae.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Ae.prototype.transformRequest=function(g,z){return this._transformRequestFn?this._transformRequestFn(g,z)||{url:g}:{url:g}},Ae.prototype.normalizeStyleURL=function(g,z){if(!at(g))return g;var V=$e(g);return V.path="/styles/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeGlyphsURL=function(g,z){if(!at(g))return g;var V=$e(g);return V.path="/fonts/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeSourceURL=function(g,z){if(!at(g))return g;var V=$e(g);return V.path="/v4/"+V.authority+".json",V.params.push("secure"),this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeSpriteURL=function(g,z,V,$){var oe=$e(g);return at(g)?(oe.path="/styles/v1"+oe.path+"/sprite"+z+V,this._makeAPIURL(oe,this._customAccessToken||$)):(oe.path+=""+z+V,zt(oe))},Ae.prototype.normalizeTileURL=function(g,z){if(this._isSkuTokenExpired()&&this._createSkuToken(),g&&!at(g))return g;var V=$e(g),$=/(\.(png|jpg)\d*)(?=$)/,oe=/^.+\/v4\//,me=nt.devicePixelRatio>=2||z===512?"@2x":"",je=Nt.supported?".webp":"$1";V.path=V.path.replace($,""+me+je),V.path=V.path.replace(oe,"/"),V.path="/v4"+V.path;var xt=this._customAccessToken||Ue(V.params)||gt.ACCESS_TOKEN;return gt.REQUIRE_ACCESS_TOKEN&&xt&&this._skuToken&&V.params.push("sku="+this._skuToken),this._makeAPIURL(V,xt)},Ae.prototype.canonicalizeTileURL=function(g,z){var V="/v4/",$=/\.[\w]+$/,oe=$e(g);if(!oe.path.match(/(^\/v4\/)/)||!oe.path.match($))return g;var me="mapbox://tiles/";me+=oe.path.replace(V,"");var je=oe.params;return z&&(je=je.filter(function(xt){return!xt.match(/^access_token=/)})),je.length&&(me+="?"+je.join("&")),me},Ae.prototype.canonicalizeTileset=function(g,z){for(var V=z?at(z):!1,$=[],oe=0,me=g.tiles||[];oe=0&&g.params.splice(oe,1)}if($.path!=="/"&&(g.path=""+$.path+g.path),!gt.REQUIRE_ACCESS_TOKEN)return zt(g);if(z=z||gt.ACCESS_TOKEN,!z)throw new Error("An API access token is required to use Mapbox GL. "+V);if(z[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+V);return g.params=g.params.filter(function(me){return me.indexOf("access_token")===-1}),g.params.push("access_token="+z),zt(g)};function at(y){return y.indexOf("mapbox:")===0}var wt=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function vt(y){return wt.test(y)}function st(y){return y.indexOf("sku=")>0&&vt(y)}function Ue(y){for(var g=0,z=y;g=1&&c.localStorage.setItem(z,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},yr.prototype.processRequests=function(g){},yr.prototype.postEvent=function(g,z,V,$){var oe=this;if(gt.EVENTS_URL){var me=$e(gt.EVENTS_URL);me.params.push("access_token="+($||gt.ACCESS_TOKEN||""));var je={event:this.type,created:new Date(g).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:Zt,userId:this.anonId},xt=z?x(je,z):je,Dt={url:zt(me),headers:{"Content-Type":"text/plain"},body:JSON.stringify([xt])};this.pendingRequest=Ir(Dt,function(Xt){oe.pendingRequest=null,V(Xt),oe.saveEventData(),oe.processRequests($)})}},yr.prototype.queueRequest=function(g,z){this.queue.push(g),this.processRequests(z)};var br=function(y){function g(){y.call(this,"map.load"),this.success={},this.skuToken=""}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.postMapLoadEvent=function(V,$,oe,me){this.skuToken=oe,(gt.EVENTS_URL&&me||gt.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(je){return at(je)||vt(je)}))&&this.queueRequest({id:$,timestamp:Date.now()},me)},g.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var oe=this.queue.shift(),me=oe.id,je=oe.timestamp;me&&this.success[me]||(this.anonId||this.fetchEventData(),B(this.anonId)||(this.anonId=P()),this.postEvent(je,{skuToken:this.skuToken},function(xt){xt||me&&($.success[me]=!0)},V))}},g}(yr),Ut=function(y){function g(z){y.call(this,"appUserTurnstile"),this._customAccessToken=z}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.postTurnstileEvent=function(V,$){gt.EVENTS_URL&>.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(oe){return at(oe)||vt(oe)})&&this.queueRequest(Date.now(),$)},g.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var oe=hr(gt.ACCESS_TOKEN),me=oe?oe.u:gt.ACCESS_TOKEN,je=me!==this.eventData.tokenU;B(this.anonId)||(this.anonId=P(),je=!0);var xt=this.queue.shift();if(this.eventData.lastSuccess){var Dt=new Date(this.eventData.lastSuccess),Xt=new Date(xt),xr=(xt-this.eventData.lastSuccess)/(24*60*60*1e3);je=je||xr>=1||xr<-1||Dt.getDate()!==Xt.getDate()}else je=!0;if(!je)return this.processRequests();this.postEvent(xt,{"enabled.telemetry":!1},function(qr){qr||($.eventData.lastSuccess=xt,$.eventData.tokenU=me)},V)}},g}(yr),Ie=new Ut,xe=Ie.postTurnstileEvent.bind(Ie),Oe=new br,Re=Oe.postMapLoadEvent.bind(Oe),De="mapbox-tiles",ct=500,ge=50,fe=1e3*60*7,pe;function dt(){c.caches&&!pe&&(pe=c.caches.open(De))}var It;function Pt(y,g){if(It===void 0)try{new Response(new ReadableStream),It=!0}catch(z){It=!1}It?g(y.body):y.blob().then(g)}function rr(y,g,z){if(dt(),!!pe){var V={status:g.status,statusText:g.statusText,headers:new c.Headers};g.headers.forEach(function(me,je){return V.headers.set(je,me)});var $=de(g.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&V.headers.set("Expires",new Date(z+$["max-age"]*1e3).toUTCString());var oe=new Date(V.headers.get("Expires")).getTime()-z;oeDate.now()&&!z["no-cache"]}var Fr=1/0;function di(y){Fr++,Fr>ge&&(y.getActor().send("enforceCacheSizeLimit",ct),Fr=0)}function Di(y){dt(),pe&&pe.then(function(g){g.keys().then(function(z){for(var V=0;V=200&&z.status<300||z.status===0)&&z.response!==null){var $=z.response;if(y.type==="json")try{$=JSON.parse(z.response)}catch(oe){return g(oe)}g(null,$,z.getResponseHeader("Cache-Control"),z.getResponseHeader("Expires"))}else g(new Gi(z.statusText,z.status,y.url))},z.send(y.body),{cancel:function(){return z.abort()}}}var _r=function(y,g){if(!yt(y.url)){if(c.fetch&&c.Request&&c.AbortController&&c.Request.prototype.hasOwnProperty("signal"))return Vt(y,g);if(Ce()&&self.worker&&self.worker.actor){var z=!0;return self.worker.actor.send("getResource",y,g,void 0,z)}}return Wt(y,g)},Lr=function(y,g){return _r(x(y,{type:"json"}),g)},Ur=function(y,g){return _r(x(y,{type:"arrayBuffer"}),g)},Ir=function(y,g){return _r(x(y,{method:"POST"}),g)};function Gr(y){var g=c.document.createElement("a");return g.href=y,g.protocol===c.document.location.protocol&&g.host===c.document.location.host}var jr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function yi(y,g,z,V){var $=new c.Image,oe=c.URL;$.onload=function(){g(null,$),oe.revokeObjectURL($.src),$.onload=null,c.requestAnimationFrame(function(){$.src=jr})},$.onerror=function(){return g(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var me=new c.Blob([new Uint8Array(y)],{type:"image/png"});$.cacheControl=z,$.expires=V,$.src=y.byteLength?oe.createObjectURL(me):jr}function Ei(y,g){var z=new c.Blob([new Uint8Array(y)],{type:"image/png"});c.createImageBitmap(z).then(function(V){g(null,V)}).catch(function(V){g(new Error("Could not load image because of "+V.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Vi,ti,en=function(){Vi=[],ti=0};en();var Yr=function(y,g){if(Nt.supported&&(y.headers||(y.headers={}),y.headers.accept="image/webp,*/*"),ti>=gt.MAX_PARALLEL_IMAGE_REQUESTS){var z={requestParameters:y,callback:g,cancelled:!1,cancel:function(){this.cancelled=!0}};return Vi.push(z),z}ti++;var V=!1,$=function(){if(!V)for(V=!0,ti--;Vi.length&&ti0||this._oneTimeListeners&&this._oneTimeListeners[g]&&this._oneTimeListeners[g].length>0||this._eventedParent&&this._eventedParent.listens(g)},Ri.prototype.setEventedParent=function(g,z){return this._eventedParent=g,this._eventedParentData=z,this};var xn=8,xi={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},Xr={"*":{type:"source"}},ft=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],tr={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},pr={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},gr={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Zr={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Ai={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Qi={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ni={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Zi=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],aa={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Mn={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Un={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ga={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ma={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},oa={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ka={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},so={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Kr={type:"array",value:"*"},Ia={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},Yo={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},fa={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},kn={type:"array",value:"*",minimum:1},Ta={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},ys=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],uo={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},ls={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},$a={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},fo={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},mn={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},ra={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},wa={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},ws={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Co={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},Po={"*":{type:"string"}},ji={$version:xn,$root:xi,sources:Xr,source:ft,source_vector:tr,source_raster:pr,source_raster_dem:gr,source_geojson:Zr,source_video:Ai,source_image:Qi,layer:ni,layout:Zi,layout_background:aa,layout_fill:Mn,layout_circle:Un,layout_heatmap:Ga,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:ma,layout_symbol:oa,layout_raster:ka,layout_hillshade:so,filter:Kr,filter_operator:Ia,geometry_type:Yo,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:fa,expression:kn,light:Ta,paint:ys,paint_fill:uo,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:ls,paint_circle:$a,paint_heatmap:fo,paint_symbol:mn,paint_raster:ra,paint_hillshade:wa,paint_background:ws,transition:Co,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:Po},gn=function(g,z,V,$){this.message=(g?g+": ":"")+V,$&&(this.identifier=$),z!=null&&z.__line__&&(this.line=z.__line__)};function Ps(y){var g=y.key,z=y.value;return z?[new gn(g,z,"constants have been deprecated as of v8")]:[]}function Ha(y){for(var g=[],z=arguments.length-1;z-- >0;)g[z]=arguments[z+1];for(var V=0,$=g;V<$.length;V+=1){var oe=$[V];for(var me in oe)y[me]=oe[me]}return y}function Sn(y){return y instanceof Number||y instanceof String||y instanceof Boolean?y.valueOf():y}function ao(y){if(Array.isArray(y))return y.map(ao);if(y instanceof Object&&!(y instanceof Number||y instanceof String||y instanceof Boolean)){var g={};for(var z in y)g[z]=ao(y[z]);return g}return Sn(y)}var Ba=function(y){function g(z,V){y.call(this,V),this.message=V,this.key=z}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g}(Error),Ko=function(g,z){z===void 0&&(z=[]),this.parent=g,this.bindings={};for(var V=0,$=z;V<$.length;V+=1){var oe=$[V],me=oe[0],je=oe[1];this.bindings[me]=je}};Ko.prototype.concat=function(g){return new Ko(this,g)},Ko.prototype.get=function(g){if(this.bindings[g])return this.bindings[g];if(this.parent)return this.parent.get(g);throw new Error(g+" not found in scope.")},Ko.prototype.has=function(g){return this.bindings[g]?!0:this.parent?this.parent.has(g):!1};var Qo={kind:"null"},Wi={kind:"number"},Sa={kind:"string"},Qa={kind:"boolean"},vn={kind:"color"},da={kind:"object"},la={kind:"value"},vo={kind:"error"},As={kind:"collator"},ps={kind:"formatted"},co={kind:"resolvedImage"};function mo(y,g){return{kind:"array",itemType:y,N:g}}function No(y){if(y.kind==="array"){var g=No(y.itemType);return typeof y.N=="number"?"array<"+g+", "+y.N+">":y.itemType.kind==="value"?"array":"array<"+g+">"}else return y.kind}var jn=[Qo,Wi,Sa,Qa,vn,ps,da,mo(la),co];function Go(y,g){if(g.kind==="error")return null;if(y.kind==="array"){if(g.kind==="array"&&(g.N===0&&g.itemType.kind==="value"||!Go(y.itemType,g.itemType))&&(typeof y.N!="number"||y.N===g.N))return null}else{if(y.kind===g.kind)return null;if(y.kind==="value")for(var z=0,V=jn;z255?255:Dt}function $(Dt){return Dt<0?0:Dt>1?1:Dt}function oe(Dt){return Dt[Dt.length-1]==="%"?V(parseFloat(Dt)/100*255):V(parseInt(Dt))}function me(Dt){return Dt[Dt.length-1]==="%"?$(parseFloat(Dt)/100):$(parseFloat(Dt))}function je(Dt,Xt,xr){return xr<0?xr+=1:xr>1&&(xr-=1),xr*6<1?Dt+(Xt-Dt)*xr*6:xr*2<1?Xt:xr*3<2?Dt+(Xt-Dt)*(2/3-xr)*6:Dt}function xt(Dt){var Xt=Dt.replace(/ /g,"").toLowerCase();if(Xt in z)return z[Xt].slice();if(Xt[0]==="#"){if(Xt.length===4){var xr=parseInt(Xt.substr(1),16);return xr>=0&&xr<=4095?[(xr&3840)>>4|(xr&3840)>>8,xr&240|(xr&240)>>4,xr&15|(xr&15)<<4,1]:null}else if(Xt.length===7){var xr=parseInt(Xt.substr(1),16);return xr>=0&&xr<=16777215?[(xr&16711680)>>16,(xr&65280)>>8,xr&255,1]:null}return null}var qr=Xt.indexOf("("),Pr=Xt.indexOf(")");if(qr!==-1&&Pr+1===Xt.length){var ai=Xt.substr(0,qr),qi=Xt.substr(qr+1,Pr-(qr+1)).split(","),Wn=1;switch(ai){case"rgba":if(qi.length!==4)return null;Wn=me(qi.pop());case"rgb":return qi.length!==3?null:[oe(qi[0]),oe(qi[1]),oe(qi[2]),Wn];case"hsla":if(qi.length!==4)return null;Wn=me(qi.pop());case"hsl":if(qi.length!==3)return null;var bn=(parseFloat(qi[0])%360+360)%360/360,bo=me(qi[1]),ba=me(qi[2]),_o=ba<=.5?ba*(bo+1):ba+bo-ba*bo,Uo=ba*2-_o;return[V(je(Uo,_o,bn+1/3)*255),V(je(Uo,_o,bn)*255),V(je(Uo,_o,bn-1/3)*255),Wn];default:return null}}return null}try{g.parseCSSColor=xt}catch(Dt){}}),Oa=Ns.parseCSSColor,ha=function(g,z,V,$){$===void 0&&($=1),this.r=g,this.g=z,this.b=V,this.a=$};ha.parse=function(g){if(g){if(g instanceof ha)return g;if(typeof g=="string"){var z=Oa(g);if(z)return new ha(z[0]/255*z[3],z[1]/255*z[3],z[2]/255*z[3],z[3])}}},ha.prototype.toString=function(){var g=this.toArray(),z=g[0],V=g[1],$=g[2],oe=g[3];return"rgba("+Math.round(z)+","+Math.round(V)+","+Math.round($)+","+oe+")"},ha.prototype.toArray=function(){var g=this,z=g.r,V=g.g,$=g.b,oe=g.a;return oe===0?[0,0,0,0]:[z*255/oe,V*255/oe,$*255/oe,oe]},ha.black=new ha(0,0,0,1),ha.white=new ha(1,1,1,1),ha.transparent=new ha(0,0,0,0),ha.red=new ha(1,0,0,1);var Vs=function(g,z,V){g?this.sensitivity=z?"variant":"case":this.sensitivity=z?"accent":"base",this.locale=V,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Vs.prototype.compare=function(g,z){return this.collator.compare(g,z)},Vs.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Ya=function(g,z,V,$,oe){this.text=g,this.image=z,this.scale=V,this.fontStack=$,this.textColor=oe},_n=function(g){this.sections=g};_n.fromString=function(g){return new _n([new Ya(g,null,null,null,null)])},_n.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(g){return g.text.length!==0||g.image&&g.image.name.length!==0})},_n.factory=function(g){return g instanceof _n?g:_n.fromString(g)},_n.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(g){return g.text}).join("")},_n.prototype.serialize=function(){for(var g=["format"],z=0,V=this.sections;z=0&&y<=255&&typeof g=="number"&&g>=0&&g<=255&&typeof z=="number"&&z>=0&&z<=255)){var $=typeof V=="number"?[y,g,z,V]:[y,g,z];return"Invalid rgba value ["+$.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof V=="undefined"||typeof V=="number"&&V>=0&&V<=1?null:"Invalid rgba value ["+[y,g,z,V].join(", ")+"]: 'a' must be between 0 and 1."}function Ra(y){if(y===null)return!0;if(typeof y=="string")return!0;if(typeof y=="boolean")return!0;if(typeof y=="number")return!0;if(y instanceof ha)return!0;if(y instanceof Vs)return!0;if(y instanceof _n)return!0;if(y instanceof Vn)return!0;if(Array.isArray(y)){for(var g=0,z=y;g2){var je=g[1];if(typeof je!="string"||!(je in qn)||je==="object")return z.error('The item type argument of "array" must be one of string, number, boolean',1);me=qn[je],V++}else me=la;var xt;if(g.length>3){if(g[2]!==null&&(typeof g[2]!="number"||g[2]<0||g[2]!==Math.floor(g[2])))return z.error('The length argument to "array" must be a positive integer literal',2);xt=g[2],V++}$=mo(me,xt)}else $=qn[oe];for(var Dt=[];V1)&&z.push($)}}return z.concat(this.args.map(function(oe){return oe.serialize()}))};var Ja=function(g){this.type=ps,this.sections=g};Ja.parse=function(g,z){if(g.length<2)return z.error("Expected at least one argument.");var V=g[1];if(!Array.isArray(V)&&typeof V=="object")return z.error("First argument must be an image or text section.");for(var $=[],oe=!1,me=1;me<=g.length-1;++me){var je=g[me];if(oe&&typeof je=="object"&&!Array.isArray(je)){oe=!1;var xt=null;if(je["font-scale"]&&(xt=z.parse(je["font-scale"],1,Wi),!xt))return null;var Dt=null;if(je["text-font"]&&(Dt=z.parse(je["text-font"],1,mo(Sa)),!Dt))return null;var Xt=null;if(je["text-color"]&&(Xt=z.parse(je["text-color"],1,vn),!Xt))return null;var xr=$[$.length-1];xr.scale=xt,xr.font=Dt,xr.textColor=Xt}else{var qr=z.parse(g[me],1,la);if(!qr)return null;var Pr=qr.type.kind;if(Pr!=="string"&&Pr!=="value"&&Pr!=="null"&&Pr!=="resolvedImage")return z.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");oe=!0,$.push({content:qr,scale:null,font:null,textColor:null})}}return new Ja($)},Ja.prototype.evaluate=function(g){var z=function(V){var $=V.content.evaluate(g);return Xn($)===co?new Ya("",$,null,null,null):new Ya(un($),null,V.scale?V.scale.evaluate(g):null,V.font?V.font.evaluate(g).join(","):null,V.textColor?V.textColor.evaluate(g):null)};return new _n(this.sections.map(z))},Ja.prototype.eachChild=function(g){for(var z=0,V=this.sections;z-1),V},lo.prototype.eachChild=function(g){g(this.input)},lo.prototype.outputDefined=function(){return!1},lo.prototype.serialize=function(){return["image",this.input.serialize()]};var eo={"to-boolean":Qa,"to-color":vn,"to-number":Wi,"to-string":Sa},sa=function(g,z){this.type=g,this.args=z};sa.parse=function(g,z){if(g.length<2)return z.error("Expected at least one argument.");var V=g[0];if((V==="to-boolean"||V==="to-string")&&g.length!==2)return z.error("Expected one argument.");for(var $=eo[V],oe=[],me=1;me4?V="Invalid rbga value "+JSON.stringify(z)+": expected an array containing either three or four numeric values.":V=wo(z[0],z[1],z[2],z[3]),!V))return new ha(z[0]/255,z[1]/255,z[2]/255,z[3])}throw new Ka(V||"Could not parse color from value '"+(typeof z=="string"?z:String(JSON.stringify(z)))+"'")}else if(this.type.kind==="number"){for(var xt=null,Dt=0,Xt=this.args;Dt=g[2]||y[1]<=g[1]||y[3]>=g[3])}function Ws(y,g){var z=Ao(y[0]),V=Dn(y[1]),$=Math.pow(2,g.z);return[Math.round(z*$*yo),Math.round(V*$*yo)]}function Ca(y,g,z){var V=y[0]-g[0],$=y[1]-g[1],oe=y[0]-z[0],me=y[1]-z[1];return V*me-oe*$===0&&V*oe<=0&&$*me<=0}function Es(y,g,z){return g[1]>y[1]!=z[1]>y[1]&&y[0]<(z[0]-g[0])*(y[1]-g[1])/(z[1]-g[1])+g[0]}function Ts(y,g){for(var z=!1,V=0,$=g.length;V<$;V++)for(var oe=g[V],me=0,je=oe.length;me0&&xr<0||Xt<0&&xr>0}function ts(y,g,z,V){var $=[g[0]-y[0],g[1]-y[1]],oe=[V[0]-z[0],V[1]-z[1]];return Wa(oe,$)===0?!1:!!(To(y,g,z,V)&&To(z,V,y,g))}function Wo(y,g,z){for(var V=0,$=z;V<$.length;V+=1)for(var oe=$[V],me=0;mez[2]){var $=V*.5,oe=y[0]-z[0]>$?-V:z[0]-y[0]>$?V:0;oe===0&&(oe=y[0]-z[2]>$?-V:z[2]-y[0]>$?V:0),y[0]+=oe}Jo(g,y)}function za(y){y[0]=y[1]=1/0,y[2]=y[3]=-1/0}function ea(y,g,z,V){for(var $=Math.pow(2,V.z)*yo,oe=[V.x*yo,V.y*yo],me=[],je=0,xt=y;je=0)return!1;var z=!0;return y.eachChild(function(V){z&&!Ma(V,g)&&(z=!1)}),z}var Qs=function(g,z){this.type=z.type,this.name=g,this.boundExpression=z};Qs.parse=function(g,z){if(g.length!==2||typeof g[1]!="string")return z.error("'var' expression requires exactly one string literal argument.");var V=g[1];return z.scope.has(V)?new Qs(V,z.scope.get(V)):z.error('Unknown variable "'+V+'". Make sure "'+V+'" has been bound in an enclosing "let" expression before using it.',1)},Qs.prototype.evaluate=function(g){return this.boundExpression.evaluate(g)},Qs.prototype.eachChild=function(){},Qs.prototype.outputDefined=function(){return!1},Qs.prototype.serialize=function(){return["var",this.name]};var ho=function(g,z,V,$,oe){z===void 0&&(z=[]),$===void 0&&($=new Ko),oe===void 0&&(oe=[]),this.registry=g,this.path=z,this.key=z.map(function(me){return"["+me+"]"}).join(""),this.scope=$,this.errors=oe,this.expectedType=V};ho.prototype.parse=function(g,z,V,$,oe){return oe===void 0&&(oe={}),z?this.concat(z,V,$)._parse(g,oe):this._parse(g,oe)},ho.prototype._parse=function(g,z){(g===null||typeof g=="string"||typeof g=="boolean"||typeof g=="number")&&(g=["literal",g]);function V(Xt,xr,qr){return qr==="assert"?new Eo(xr,[Xt]):qr==="coerce"?new sa(xr,[Xt]):Xt}if(Array.isArray(g)){if(g.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=g[0];if(typeof $!="string")return this.error("Expression name must be a string, but found "+typeof $+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var oe=this.registry[$];if(oe){var me=oe.parse(g,this);if(!me)return null;if(this.expectedType){var je=this.expectedType,xt=me.type;if((je.kind==="string"||je.kind==="number"||je.kind==="boolean"||je.kind==="object"||je.kind==="array")&&xt.kind==="value")me=V(me,je,z.typeAnnotation||"assert");else if((je.kind==="color"||je.kind==="formatted"||je.kind==="resolvedImage")&&(xt.kind==="value"||xt.kind==="string"))me=V(me,je,z.typeAnnotation||"coerce");else if(this.checkSubtype(je,xt))return null}if(!(me instanceof $n)&&me.type.kind!=="resolvedImage"&&gs(me)){var Dt=new Na;try{me=new $n(me.type,me.evaluate(Dt))}catch(Xt){return this.error(Xt.message),null}}return me}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof g=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof g=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof g+" instead.")},ho.prototype.concat=function(g,z,V){var $=typeof g=="number"?this.path.concat(g):this.path,oe=V?this.scope.concat(V):this.scope;return new ho(this.registry,$,z||null,oe,this.errors)},ho.prototype.error=function(g){for(var z=[],V=arguments.length-1;V-- >0;)z[V]=arguments[V+1];var $=""+this.key+z.map(function(oe){return"["+oe+"]"}).join("");this.errors.push(new Ba($,g))},ho.prototype.checkSubtype=function(g,z){var V=Go(g,z);return V&&this.error(V),V};function gs(y){if(y instanceof Qs)return gs(y.boundExpression);if(y instanceof tn&&y.name==="error")return!1;if(y instanceof to)return!1;if(y instanceof Ds)return!1;var g=y instanceof sa||y instanceof Eo,z=!0;return y.eachChild(function(V){g?z=z&&gs(V):z=z&&V instanceof $n}),z?fl(y)&&Ma(y,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Vo(y,g){for(var z=y.length-1,V=0,$=z,oe=0,me,je;V<=$;)if(oe=Math.floor((V+$)/2),me=y[oe],je=y[oe+1],me<=g){if(oe===z||gg)$=oe-1;else throw new Ka("Input is not a number.");return 0}var Do=function(g,z,V){this.type=g,this.input=z,this.labels=[],this.outputs=[];for(var $=0,oe=V;$=je)return z.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Dt);var xr=z.parse(xt,Xt,oe);if(!xr)return null;oe=oe||xr.type,$.push([je,xr])}return new Do(oe,V,$)},Do.prototype.evaluate=function(g){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(g);var $=this.input.evaluate(g);if($<=z[0])return V[0].evaluate(g);var oe=z.length;if($>=z[oe-1])return V[oe-1].evaluate(g);var me=Vo(z,$);return V[me].evaluate(g)},Do.prototype.eachChild=function(g){g(this.input);for(var z=0,V=this.outputs;z0&&g.push(this.labels[z]),g.push(this.outputs[z].serialize());return g};function Lo(y,g,z){return y*(1-z)+g*z}function xs(y,g,z){return new ha(Lo(y.r,g.r,z),Lo(y.g,g.g,z),Lo(y.b,g.b,z),Lo(y.a,g.a,z))}function ks(y,g,z){return y.map(function(V,$){return Lo(V,g[$],z)})}var Ea=Object.freeze({__proto__:null,number:Lo,color:xs,array:ks}),Jn=.95047,Oo=1,rl=1.08883,Gs=4/29,bs=6/29,zs=3*bs*bs,$o=bs*bs*bs,Aa=Math.PI/180,os=180/Math.PI;function _l(y){return y>$o?Math.pow(y,1/3):y/zs+Gs}function Ss(y){return y>bs?y*y*y:zs*(y-Gs)}function po(y){return 255*(y<=.0031308?12.92*y:1.055*Math.pow(y,1/2.4)-.055)}function go(y){return y/=255,y<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function ss(y){var g=go(y.r),z=go(y.g),V=go(y.b),$=_l((.4124564*g+.3575761*z+.1804375*V)/Jn),oe=_l((.2126729*g+.7151522*z+.072175*V)/Oo),me=_l((.0193339*g+.119192*z+.9503041*V)/rl);return{l:116*oe-16,a:500*($-oe),b:200*(oe-me),alpha:y.a}}function qo(y){var g=(y.l+16)/116,z=isNaN(y.a)?g:g+y.a/500,V=isNaN(y.b)?g:g-y.b/200;return g=Oo*Ss(g),z=Jn*Ss(z),V=rl*Ss(V),new ha(po(3.2404542*z-1.5371385*g-.4985314*V),po(-.969266*z+1.8760108*g+.041556*V),po(.0556434*z-.2040259*g+1.0572252*V),y.alpha)}function zo(y,g,z){return{l:Lo(y.l,g.l,z),a:Lo(y.a,g.a,z),b:Lo(y.b,g.b,z),alpha:Lo(y.alpha,g.alpha,z)}}function io(y){var g=ss(y),z=g.l,V=g.a,$=g.b,oe=Math.atan2($,V)*os;return{h:oe<0?oe+360:oe,c:Math.sqrt(V*V+$*$),l:z,alpha:y.a}}function Io(y){var g=y.h*Aa,z=y.c,V=y.l;return qo({l:V,a:Math.cos(g)*z,b:Math.sin(g)*z,alpha:y.alpha})}function Da(y,g,z){var V=g-y;return y+z*(V>180||V<-180?V-360*Math.round(V/360):V)}function vs(y,g,z){return{h:Da(y.h,g.h,z),c:Lo(y.c,g.c,z),l:Lo(y.l,g.l,z),alpha:Lo(y.alpha,g.alpha,z)}}var fs={forward:ss,reverse:qo,interpolate:zo},cl={forward:io,reverse:Io,interpolate:vs},el=Object.freeze({__proto__:null,lab:fs,hcl:cl}),Hs=function(g,z,V,$,oe){this.type=g,this.operator=z,this.interpolation=V,this.input=$,this.labels=[],this.outputs=[];for(var me=0,je=oe;me1}))return z.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:xt}}else return z.error("Unknown interpolation type "+String($[0]),1,0);if(g.length-1<4)return z.error("Expected at least 4 arguments, but found only "+(g.length-1)+".");if((g.length-1)%2!==0)return z.error("Expected an even number of arguments.");if(oe=z.parse(oe,2,Wi),!oe)return null;var Dt=[],Xt=null;V==="interpolate-hcl"||V==="interpolate-lab"?Xt=vn:z.expectedType&&z.expectedType.kind!=="value"&&(Xt=z.expectedType);for(var xr=0;xr=qr)return z.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ai);var Wn=z.parse(Pr,qi,Xt);if(!Wn)return null;Xt=Xt||Wn.type,Dt.push([qr,Wn])}return Xt.kind!=="number"&&Xt.kind!=="color"&&!(Xt.kind==="array"&&Xt.itemType.kind==="number"&&typeof Xt.N=="number")?z.error("Type "+No(Xt)+" is not interpolatable."):new Hs(Xt,V,$,oe,Dt)},Hs.prototype.evaluate=function(g){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(g);var $=this.input.evaluate(g);if($<=z[0])return V[0].evaluate(g);var oe=z.length;if($>=z[oe-1])return V[oe-1].evaluate(g);var me=Vo(z,$),je=z[me],xt=z[me+1],Dt=Hs.interpolationFactor(this.interpolation,$,je,xt),Xt=V[me].evaluate(g),xr=V[me+1].evaluate(g);return this.operator==="interpolate"?Ea[this.type.kind.toLowerCase()](Xt,xr,Dt):this.operator==="interpolate-hcl"?cl.reverse(cl.interpolate(cl.forward(Xt),cl.forward(xr),Dt)):fs.reverse(fs.interpolate(fs.forward(Xt),fs.forward(xr),Dt))},Hs.prototype.eachChild=function(g){g(this.input);for(var z=0,V=this.outputs;z=V.length)throw new Ka("Array index out of bounds: "+z+" > "+(V.length-1)+".");if(z!==Math.floor(z))throw new Ka("Array index must be an integer, but found "+z+" instead.");return V[z]},hl.prototype.eachChild=function(g){g(this.index),g(this.input)},hl.prototype.outputDefined=function(){return!1},hl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Fa=function(g,z){this.type=Qa,this.needle=g,this.haystack=z};Fa.parse=function(g,z){if(g.length!==3)return z.error("Expected 2 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[2],2,la);return!V||!$?null:Ys(V.type,[Qa,Sa,Wi,Qo,la])?new Fa(V,$):z.error("Expected first argument to be of type boolean, string, number or null, but found "+No(V.type)+" instead")},Fa.prototype.evaluate=function(g){var z=this.needle.evaluate(g),V=this.haystack.evaluate(g);if(!V)return!1;if(!qs(z,["boolean","string","number","null"]))throw new Ka("Expected first argument to be of type boolean, string, number or null, but found "+No(Xn(z))+" instead.");if(!qs(V,["string","array"]))throw new Ka("Expected second argument to be of type array or string, but found "+No(Xn(V))+" instead.");return V.indexOf(z)>=0},Fa.prototype.eachChild=function(g){g(this.needle),g(this.haystack)},Fa.prototype.outputDefined=function(){return!0},Fa.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ms=function(g,z,V){this.type=Wi,this.needle=g,this.haystack=z,this.fromIndex=V};Ms.parse=function(g,z){if(g.length<=2||g.length>=5)return z.error("Expected 3 or 4 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[2],2,la);if(!V||!$)return null;if(!Ys(V.type,[Qa,Sa,Wi,Qo,la]))return z.error("Expected first argument to be of type boolean, string, number or null, but found "+No(V.type)+" instead");if(g.length===4){var oe=z.parse(g[3],3,Wi);return oe?new Ms(V,$,oe):null}else return new Ms(V,$)},Ms.prototype.evaluate=function(g){var z=this.needle.evaluate(g),V=this.haystack.evaluate(g);if(!qs(z,["boolean","string","number","null"]))throw new Ka("Expected first argument to be of type boolean, string, number or null, but found "+No(Xn(z))+" instead.");if(!qs(V,["string","array"]))throw new Ka("Expected second argument to be of type array or string, but found "+No(Xn(V))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(g);return V.indexOf(z,$)}return V.indexOf(z)},Ms.prototype.eachChild=function(g){g(this.needle),g(this.haystack),this.fromIndex&&g(this.fromIndex)},Ms.prototype.outputDefined=function(){return!1},Ms.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var g=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),g]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var jo=function(g,z,V,$,oe,me){this.inputType=g,this.type=z,this.input=V,this.cases=$,this.outputs=oe,this.otherwise=me};jo.parse=function(g,z){if(g.length<5)return z.error("Expected at least 4 arguments, but found only "+(g.length-1)+".");if(g.length%2!==1)return z.error("Expected an even number of arguments.");var V,$;z.expectedType&&z.expectedType.kind!=="value"&&($=z.expectedType);for(var oe={},me=[],je=2;jeNumber.MAX_SAFE_INTEGER)return Xt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Pr=="number"&&Math.floor(Pr)!==Pr)return Xt.error("Numeric branch labels must be integer values.");if(!V)V=Xn(Pr);else if(Xt.checkSubtype(V,Xn(Pr)))return null;if(typeof oe[String(Pr)]!="undefined")return Xt.error("Branch labels must be unique.");oe[String(Pr)]=me.length}var ai=z.parse(Dt,je,$);if(!ai)return null;$=$||ai.type,me.push(ai)}var qi=z.parse(g[1],1,la);if(!qi)return null;var Wn=z.parse(g[g.length-1],g.length-1,$);return!Wn||qi.type.kind!=="value"&&z.concat(1).checkSubtype(V,qi.type)?null:new jo(V,$,qi,oe,me,Wn)},jo.prototype.evaluate=function(g){var z=this.input.evaluate(g),V=Xn(z)===this.inputType&&this.outputs[this.cases[z]]||this.otherwise;return V.evaluate(g)},jo.prototype.eachChild=function(g){g(this.input),this.outputs.forEach(g),g(this.otherwise)},jo.prototype.outputDefined=function(){return this.outputs.every(function(g){return g.outputDefined()})&&this.otherwise.outputDefined()},jo.prototype.serialize=function(){for(var g=this,z=["match",this.input.serialize()],V=Object.keys(this.cases).sort(),$=[],oe={},me=0,je=V;me=5)return z.error("Expected 3 or 4 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[2],2,Wi);if(!V||!$)return null;if(!Ys(V.type,[mo(la),Sa,la]))return z.error("Expected first argument to be of type array or string, but found "+No(V.type)+" instead");if(g.length===4){var oe=z.parse(g[3],3,Wi);return oe?new Is(V.type,V,$,oe):null}else return new Is(V.type,V,$)},Is.prototype.evaluate=function(g){var z=this.input.evaluate(g),V=this.beginIndex.evaluate(g);if(!qs(z,["string","array"]))throw new Ka("Expected first argument to be of type array or string, but found "+No(Xn(z))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(g);return z.slice(V,$)}return z.slice(V)},Is.prototype.eachChild=function(g){g(this.input),g(this.beginIndex),this.endIndex&&g(this.endIndex)},Is.prototype.outputDefined=function(){return!1},Is.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var g=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),g]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Bs(y,g){return y==="=="||y==="!="?g.kind==="boolean"||g.kind==="string"||g.kind==="number"||g.kind==="null"||g.kind==="value":g.kind==="string"||g.kind==="number"||g.kind==="value"}function At(y,g,z){return g===z}function Gt(y,g,z){return g!==z}function wr(y,g,z){return gz}function Or(y,g,z){return g<=z}function gi(y,g,z){return g>=z}function Ti(y,g,z,V){return V.compare(g,z)===0}function ki(y,g,z,V){return!Ti(y,g,z,V)}function Ji(y,g,z,V){return V.compare(g,z)<0}function Fn(y,g,z,V){return V.compare(g,z)>0}function Pi(y,g,z,V){return V.compare(g,z)<=0}function hi(y,g,z,V){return V.compare(g,z)>=0}function Li(y,g,z){var V=y!=="=="&&y!=="!=";return function(){function $(oe,me,je){this.type=Qa,this.lhs=oe,this.rhs=me,this.collator=je,this.hasUntypedArgument=oe.type.kind==="value"||me.type.kind==="value"}return $.parse=function(me,je){if(me.length!==3&&me.length!==4)return je.error("Expected two or three arguments.");var xt=me[0],Dt=je.parse(me[1],1,la);if(!Dt)return null;if(!Bs(xt,Dt.type))return je.concat(1).error('"'+xt+`" comparisons are not supported for type '`+No(Dt.type)+"'.");var Xt=je.parse(me[2],2,la);if(!Xt)return null;if(!Bs(xt,Xt.type))return je.concat(2).error('"'+xt+`" comparisons are not supported for type '`+No(Xt.type)+"'.");if(Dt.type.kind!==Xt.type.kind&&Dt.type.kind!=="value"&&Xt.type.kind!=="value")return je.error("Cannot compare types '"+No(Dt.type)+"' and '"+No(Xt.type)+"'.");V&&(Dt.type.kind==="value"&&Xt.type.kind!=="value"?Dt=new Eo(Xt.type,[Dt]):Dt.type.kind!=="value"&&Xt.type.kind==="value"&&(Xt=new Eo(Dt.type,[Xt])));var xr=null;if(me.length===4){if(Dt.type.kind!=="string"&&Xt.type.kind!=="string"&&Dt.type.kind!=="value"&&Xt.type.kind!=="value")return je.error("Cannot use collator to compare non-string types.");if(xr=je.parse(me[3],3,As),!xr)return null}return new $(Dt,Xt,xr)},$.prototype.evaluate=function(me){var je=this.lhs.evaluate(me),xt=this.rhs.evaluate(me);if(V&&this.hasUntypedArgument){var Dt=Xn(je),Xt=Xn(xt);if(Dt.kind!==Xt.kind||!(Dt.kind==="string"||Dt.kind==="number"))throw new Ka('Expected arguments for "'+y+'" to be (string, string) or (number, number), but found ('+Dt.kind+", "+Xt.kind+") instead.")}if(this.collator&&!V&&this.hasUntypedArgument){var xr=Xn(je),qr=Xn(xt);if(xr.kind!=="string"||qr.kind!=="string")return g(me,je,xt)}return this.collator?z(me,je,xt,this.collator.evaluate(me)):g(me,je,xt)},$.prototype.eachChild=function(me){me(this.lhs),me(this.rhs),this.collator&&me(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var me=[y];return this.eachChild(function(je){me.push(je.serialize())}),me},$}()}var Si=Li("==",At,Ti),Gn=Li("!=",Gt,ki),ta=Li("<",wr,Ji),ya=Li(">",mr,Fn),ia=Li("<=",Or,Pi),pa=Li(">=",gi,hi),va=function(g,z,V,$,oe){this.type=Sa,this.number=g,this.locale=z,this.currency=V,this.minFractionDigits=$,this.maxFractionDigits=oe};va.parse=function(g,z){if(g.length!==3)return z.error("Expected two arguments.");var V=z.parse(g[1],1,Wi);if(!V)return null;var $=g[2];if(typeof $!="object"||Array.isArray($))return z.error("NumberFormat options argument must be an object.");var oe=null;if($.locale&&(oe=z.parse($.locale,1,Sa),!oe))return null;var me=null;if($.currency&&(me=z.parse($.currency,1,Sa),!me))return null;var je=null;if($["min-fraction-digits"]&&(je=z.parse($["min-fraction-digits"],1,Wi),!je))return null;var xt=null;return $["max-fraction-digits"]&&(xt=z.parse($["max-fraction-digits"],1,Wi),!xt)?null:new va(V,oe,me,je,xt)},va.prototype.evaluate=function(g){return new Intl.NumberFormat(this.locale?this.locale.evaluate(g):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(g):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(g):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(g):void 0}).format(this.number.evaluate(g))},va.prototype.eachChild=function(g){g(this.number),this.locale&&g(this.locale),this.currency&&g(this.currency),this.minFractionDigits&&g(this.minFractionDigits),this.maxFractionDigits&&g(this.maxFractionDigits)},va.prototype.outputDefined=function(){return!1},va.prototype.serialize=function(){var g={};return this.locale&&(g.locale=this.locale.serialize()),this.currency&&(g.currency=this.currency.serialize()),this.minFractionDigits&&(g["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(g["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),g]};var zn=function(g){this.type=Wi,this.input=g};zn.parse=function(g,z){if(g.length!==2)return z.error("Expected 1 argument, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1);return V?V.type.kind!=="array"&&V.type.kind!=="string"&&V.type.kind!=="value"?z.error("Expected argument of type string or array, but found "+No(V.type)+" instead."):new zn(V):null},zn.prototype.evaluate=function(g){var z=this.input.evaluate(g);if(typeof z=="string")return z.length;if(Array.isArray(z))return z.length;throw new Ka("Expected value to be of type string or array, but found "+No(Xn(z))+" instead.")},zn.prototype.eachChild=function(g){g(this.input)},zn.prototype.outputDefined=function(){return!1},zn.prototype.serialize=function(){var g=["length"];return this.eachChild(function(z){g.push(z.serialize())}),g};var is={"==":Si,"!=":Gn,">":ya,"<":ta,">=":pa,"<=":ia,array:Eo,at:hl,boolean:Eo,case:Rs,coalesce:tl,collator:to,format:Ja,image:lo,in:Fa,"index-of":Ms,interpolate:Hs,"interpolate-hcl":Hs,"interpolate-lab":Hs,length:zn,let:Fs,literal:$n,match:jo,number:Eo,"number-format":va,object:Eo,slice:Is,step:Do,string:Eo,"to-boolean":sa,"to-color":sa,"to-number":sa,"to-string":sa,var:Qs,within:Ds};function Cs(y,g){var z=g[0],V=g[1],$=g[2],oe=g[3];z=z.evaluate(y),V=V.evaluate(y),$=$.evaluate(y);var me=oe?oe.evaluate(y):1,je=wo(z,V,$,me);if(je)throw new Ka(je);return new ha(z/255*me,V/255*me,$/255*me,me)}function Ks(y,g){return y in g}function dl(y,g){var z=g[y];return typeof z=="undefined"?null:z}function xl(y,g,z,V){for(;z<=V;){var $=z+V>>1;if(g[$]===y)return!0;g[$]>y?V=$-1:z=$+1}return!1}function Bl(y){return{type:y}}tn.register(is,{error:[vo,[Sa],function(y,g){var z=g[0];throw new Ka(z.evaluate(y))}],typeof:[Sa,[la],function(y,g){var z=g[0];return No(Xn(z.evaluate(y)))}],"to-rgba":[mo(Wi,4),[vn],function(y,g){var z=g[0];return z.evaluate(y).toArray()}],rgb:[vn,[Wi,Wi,Wi],Cs],rgba:[vn,[Wi,Wi,Wi,Wi],Cs],has:{type:Qa,overloads:[[[Sa],function(y,g){var z=g[0];return Ks(z.evaluate(y),y.properties())}],[[Sa,da],function(y,g){var z=g[0],V=g[1];return Ks(z.evaluate(y),V.evaluate(y))}]]},get:{type:la,overloads:[[[Sa],function(y,g){var z=g[0];return dl(z.evaluate(y),y.properties())}],[[Sa,da],function(y,g){var z=g[0],V=g[1];return dl(z.evaluate(y),V.evaluate(y))}]]},"feature-state":[la,[Sa],function(y,g){var z=g[0];return dl(z.evaluate(y),y.featureState||{})}],properties:[da,[],function(y){return y.properties()}],"geometry-type":[Sa,[],function(y){return y.geometryType()}],id:[la,[],function(y){return y.id()}],zoom:[Wi,[],function(y){return y.globals.zoom}],"heatmap-density":[Wi,[],function(y){return y.globals.heatmapDensity||0}],"line-progress":[Wi,[],function(y){return y.globals.lineProgress||0}],accumulated:[la,[],function(y){return y.globals.accumulated===void 0?null:y.globals.accumulated}],"+":[Wi,Bl(Wi),function(y,g){for(var z=0,V=0,$=g;V<$.length;V+=1){var oe=$[V];z+=oe.evaluate(y)}return z}],"*":[Wi,Bl(Wi),function(y,g){for(var z=1,V=0,$=g;V<$.length;V+=1){var oe=$[V];z*=oe.evaluate(y)}return z}],"-":{type:Wi,overloads:[[[Wi,Wi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)-V.evaluate(y)}],[[Wi],function(y,g){var z=g[0];return-z.evaluate(y)}]]},"/":[Wi,[Wi,Wi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)/V.evaluate(y)}],"%":[Wi,[Wi,Wi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)%V.evaluate(y)}],ln2:[Wi,[],function(){return Math.LN2}],pi:[Wi,[],function(){return Math.PI}],e:[Wi,[],function(){return Math.E}],"^":[Wi,[Wi,Wi],function(y,g){var z=g[0],V=g[1];return Math.pow(z.evaluate(y),V.evaluate(y))}],sqrt:[Wi,[Wi],function(y,g){var z=g[0];return Math.sqrt(z.evaluate(y))}],log10:[Wi,[Wi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))/Math.LN10}],ln:[Wi,[Wi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))}],log2:[Wi,[Wi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))/Math.LN2}],sin:[Wi,[Wi],function(y,g){var z=g[0];return Math.sin(z.evaluate(y))}],cos:[Wi,[Wi],function(y,g){var z=g[0];return Math.cos(z.evaluate(y))}],tan:[Wi,[Wi],function(y,g){var z=g[0];return Math.tan(z.evaluate(y))}],asin:[Wi,[Wi],function(y,g){var z=g[0];return Math.asin(z.evaluate(y))}],acos:[Wi,[Wi],function(y,g){var z=g[0];return Math.acos(z.evaluate(y))}],atan:[Wi,[Wi],function(y,g){var z=g[0];return Math.atan(z.evaluate(y))}],min:[Wi,Bl(Wi),function(y,g){return Math.min.apply(Math,g.map(function(z){return z.evaluate(y)}))}],max:[Wi,Bl(Wi),function(y,g){return Math.max.apply(Math,g.map(function(z){return z.evaluate(y)}))}],abs:[Wi,[Wi],function(y,g){var z=g[0];return Math.abs(z.evaluate(y))}],round:[Wi,[Wi],function(y,g){var z=g[0],V=z.evaluate(y);return V<0?-Math.round(-V):Math.round(V)}],floor:[Wi,[Wi],function(y,g){var z=g[0];return Math.floor(z.evaluate(y))}],ceil:[Wi,[Wi],function(y,g){var z=g[0];return Math.ceil(z.evaluate(y))}],"filter-==":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1];return y.properties()[z.value]===V.value}],"filter-id-==":[Qa,[la],function(y,g){var z=g[0];return y.id()===z.value}],"filter-type-==":[Qa,[Sa],function(y,g){var z=g[0];return y.geometryType()===z.value}],"filter-<":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$>oe}],"filter-id->":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V>$}],"filter-<=":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$<=oe}],"filter-id-<=":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V<=$}],"filter->=":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$>=oe}],"filter-id->=":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V>=$}],"filter-has":[Qa,[la],function(y,g){var z=g[0];return z.value in y.properties()}],"filter-has-id":[Qa,[],function(y){return y.id()!==null&&y.id()!==void 0}],"filter-type-in":[Qa,[mo(Sa)],function(y,g){var z=g[0];return z.value.indexOf(y.geometryType())>=0}],"filter-id-in":[Qa,[mo(la)],function(y,g){var z=g[0];return z.value.indexOf(y.id())>=0}],"filter-in-small":[Qa,[Sa,mo(la)],function(y,g){var z=g[0],V=g[1];return V.value.indexOf(y.properties()[z.value])>=0}],"filter-in-large":[Qa,[Sa,mo(la)],function(y,g){var z=g[0],V=g[1];return xl(y.properties()[z.value],V.value,0,V.value.length-1)}],all:{type:Qa,overloads:[[[Qa,Qa],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)&&V.evaluate(y)}],[Bl(Qa),function(y,g){for(var z=0,V=g;z-1}function ja(y){return!!y.expression&&y.expression.interpolated}function ns(y){return y instanceof Number?"number":y instanceof String?"string":y instanceof Boolean?"boolean":Array.isArray(y)?"array":y===null?"null":typeof y}function Js(y){return typeof y=="object"&&y!==null&&!Array.isArray(y)}function cs(y){return y}function sl(y,g){var z=g.type==="color",V=y.stops&&typeof y.stops[0][0]=="object",$=V||y.property!==void 0,oe=V||!$,me=y.type||(ja(g)?"exponential":"interval");if(z&&(y=Ha({},y),y.stops&&(y.stops=y.stops.map(function(Tl){return[Tl[0],ha.parse(Tl[1])]})),y.default?y.default=ha.parse(y.default):y.default=ha.parse(g.default)),y.colorSpace&&y.colorSpace!=="rgb"&&!el[y.colorSpace])throw new Error("Unknown color space: "+y.colorSpace);var je,xt,Dt;if(me==="exponential")je=Ml;else if(me==="interval")je=zl;else if(me==="categorical"){je=il,xt=Object.create(null);for(var Xt=0,xr=y.stops;Xt=y.stops[V-1][0])return y.stops[V-1][1];var $=Vo(y.stops.map(function(oe){return oe[0]}),z);return y.stops[$][1]}function Ml(y,g,z){var V=y.base!==void 0?y.base:1;if(ns(z)!=="number")return ll(y.default,g.default);var $=y.stops.length;if($===1||z<=y.stops[0][0])return y.stops[0][1];if(z>=y.stops[$-1][0])return y.stops[$-1][1];var oe=Vo(y.stops.map(function(xr){return xr[0]}),z),me=Al(z,V,y.stops[oe][0],y.stops[oe+1][0]),je=y.stops[oe][1],xt=y.stops[oe+1][1],Dt=Ea[g.type]||cs;if(y.colorSpace&&y.colorSpace!=="rgb"){var Xt=el[y.colorSpace];Dt=function(xr,qr){return Xt.reverse(Xt.interpolate(Xt.forward(xr),Xt.forward(qr),me))}}return typeof je.evaluate=="function"?{evaluate:function(){for(var qr=[],Pr=arguments.length;Pr--;)qr[Pr]=arguments[Pr];var ai=je.evaluate.apply(void 0,qr),qi=xt.evaluate.apply(void 0,qr);if(!(ai===void 0||qi===void 0))return Dt(ai,qi,me)}}:Dt(je,xt,me)}function Rl(y,g,z){return g.type==="color"?z=ha.parse(z):g.type==="formatted"?z=_n.fromString(z.toString()):g.type==="resolvedImage"?z=Vn.fromString(z.toString()):ns(z)!==g.type&&(g.type!=="enum"||!g.values[z])&&(z=void 0),ll(z,y.default,g.default)}function Al(y,g,z,V){var $=V-z,oe=y-z;return $===0?0:g===1?oe/$:(Math.pow(g,oe)-1)/(Math.pow(g,$)-1)}var Ll=function(g,z){this.expression=g,this._warningHistory={},this._evaluator=new Na,this._defaultValue=z?ee(z):null,this._enumValues=z&&z.type==="enum"?z.values:null};Ll.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,me){return this._evaluator.globals=g,this._evaluator.feature=z,this._evaluator.featureState=V,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=me,this.expression.evaluate(this._evaluator)},Ll.prototype.evaluate=function(g,z,V,$,oe,me){this._evaluator.globals=g,this._evaluator.feature=z||null,this._evaluator.featureState=V||null,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=me||null;try{var je=this.expression.evaluate(this._evaluator);if(je==null||typeof je=="number"&&je!==je)return this._defaultValue;if(this._enumValues&&!(je in this._enumValues))throw new Ka("Expected value to be one of "+Object.keys(this._enumValues).map(function(xt){return JSON.stringify(xt)}).join(", ")+", but found "+JSON.stringify(je)+" instead.");return je}catch(xt){return this._warningHistory[xt.message]||(this._warningHistory[xt.message]=!0,typeof console!="undefined"&&console.warn(xt.message)),this._defaultValue}};function ms(y){return Array.isArray(y)&&y.length>0&&typeof y[0]=="string"&&y[0]in is}function Os(y,g){var z=new ho(is,[],g?Q(g):void 0),V=z.parse(y,void 0,void 0,void 0,g&&g.type==="string"?{typeAnnotation:"coerce"}:void 0);return V?bl(new Ll(V,g)):eu(z.errors)}var Xl=function(g,z){this.kind=g,this._styleExpression=z,this.isStateDependent=g!=="constant"&&!as(z.expression)};Xl.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,me){return this._styleExpression.evaluateWithoutErrorHandling(g,z,V,$,oe,me)},Xl.prototype.evaluate=function(g,z,V,$,oe,me){return this._styleExpression.evaluate(g,z,V,$,oe,me)};var Vl=function(g,z,V,$){this.kind=g,this.zoomStops=V,this._styleExpression=z,this.isStateDependent=g!=="camera"&&!as(z.expression),this.interpolationType=$};Vl.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,me){return this._styleExpression.evaluateWithoutErrorHandling(g,z,V,$,oe,me)},Vl.prototype.evaluate=function(g,z,V,$,oe,me){return this._styleExpression.evaluate(g,z,V,$,oe,me)},Vl.prototype.interpolationFactor=function(g,z,V){return this.interpolationType?Hs.interpolationFactor(this.interpolationType,g,z,V):0};function Nl(y,g){if(y=Os(y,g),y.result==="error")return y;var z=y.value.expression,V=fl(z);if(!V&&!Zl(g))return eu([new Ba("","data expressions not supported")]);var $=Ma(z,["zoom"]);if(!$&&!Ul(g))return eu([new Ba("","zoom expressions not supported")]);var oe=q(z);if(!oe&&!$)return eu([new Ba("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(oe instanceof Ba)return eu([oe]);if(oe instanceof Hs&&!ja(g))return eu([new Ba("",'"interpolate" expressions cannot be used with this property')]);if(!oe)return bl(V?new Xl("constant",y.value):new Xl("source",y.value));var me=oe instanceof Hs?oe.interpolation:void 0;return bl(V?new Vl("camera",y.value,oe.labels,me):new Vl("composite",y.value,oe.labels,me))}var le=function(g,z){this._parameters=g,this._specification=z,Ha(this,sl(this._parameters,this._specification))};le.deserialize=function(g){return new le(g._parameters,g._specification)},le.serialize=function(g){return{_parameters:g._parameters,_specification:g._specification}};function w(y,g){if(Js(y))return new le(y,g);if(ms(y)){var z=Nl(y,g);if(z.result==="error")throw new Error(z.value.map(function($){return $.key+": "+$.message}).join(", "));return z.value}else{var V=y;return typeof y=="string"&&g.type==="color"&&(V=ha.parse(y)),{kind:"constant",evaluate:function(){return V}}}}function q(y){var g=null;if(y instanceof Fs)g=q(y.result);else if(y instanceof tl)for(var z=0,V=y.args;zV.maximum?[new gn(g,z,z+" is greater than the maximum value "+V.maximum)]:[]}function mt(y){var g=y.valueSpec,z=Sn(y.value.type),V,$={},oe,me,je=z!=="categorical"&&y.value.property===void 0,xt=!je,Dt=ns(y.value.stops)==="array"&&ns(y.value.stops[0])==="array"&&ns(y.value.stops[0][0])==="object",Xt=ue({key:y.key,value:y.value,valueSpec:y.styleSpec.function,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{stops:xr,default:ai}});return z==="identity"&&je&&Xt.push(new gn(y.key,y.value,'missing required property "property"')),z!=="identity"&&!y.value.stops&&Xt.push(new gn(y.key,y.value,'missing required property "stops"')),z==="exponential"&&y.valueSpec.expression&&!ja(y.valueSpec)&&Xt.push(new gn(y.key,y.value,"exponential functions not supported")),y.styleSpec.$version>=8&&(xt&&!Zl(y.valueSpec)?Xt.push(new gn(y.key,y.value,"property functions not supported")):je&&!Ul(y.valueSpec)&&Xt.push(new gn(y.key,y.value,"zoom functions not supported"))),(z==="categorical"||Dt)&&y.value.property===void 0&&Xt.push(new gn(y.key,y.value,'"property" property is required')),Xt;function xr(qi){if(z==="identity")return[new gn(qi.key,qi.value,'identity function may not have a "stops" property')];var Wn=[],bn=qi.value;return Wn=Wn.concat(Ge({key:qi.key,value:bn,valueSpec:qi.valueSpec,style:qi.style,styleSpec:qi.styleSpec,arrayElementValidator:qr})),ns(bn)==="array"&&bn.length===0&&Wn.push(new gn(qi.key,bn,"array must have at least one stop")),Wn}function qr(qi){var Wn=[],bn=qi.value,bo=qi.key;if(ns(bn)!=="array")return[new gn(bo,bn,"array expected, "+ns(bn)+" found")];if(bn.length!==2)return[new gn(bo,bn,"array length 2 expected, length "+bn.length+" found")];if(Dt){if(ns(bn[0])!=="object")return[new gn(bo,bn,"object expected, "+ns(bn[0])+" found")];if(bn[0].zoom===void 0)return[new gn(bo,bn,"object stop key must have zoom")];if(bn[0].value===void 0)return[new gn(bo,bn,"object stop key must have value")];if(me&&me>Sn(bn[0].zoom))return[new gn(bo,bn[0].zoom,"stop zoom values must appear in ascending order")];Sn(bn[0].zoom)!==me&&(me=Sn(bn[0].zoom),oe=void 0,$={}),Wn=Wn.concat(ue({key:bo+"[0]",value:bn[0],valueSpec:{zoom:{}},style:qi.style,styleSpec:qi.styleSpec,objectElementValidators:{zoom:et,value:Pr}}))}else Wn=Wn.concat(Pr({key:bo+"[0]",value:bn[0],valueSpec:{},style:qi.style,styleSpec:qi.styleSpec},bn));return ms(ao(bn[1]))?Wn.concat([new gn(bo+"[1]",bn[1],"expressions are not allowed in function stops.")]):Wn.concat(Sl({key:bo+"[1]",value:bn[1],valueSpec:g,style:qi.style,styleSpec:qi.styleSpec}))}function Pr(qi,Wn){var bn=ns(qi.value),bo=Sn(qi.value),ba=qi.value!==null?qi.value:Wn;if(!V)V=bn;else if(bn!==V)return[new gn(qi.key,ba,bn+" stop domain type must match previous stop domain type "+V)];if(bn!=="number"&&bn!=="string"&&bn!=="boolean")return[new gn(qi.key,ba,"stop domain value must be a number, string, or boolean")];if(bn!=="number"&&z!=="categorical"){var _o="number expected, "+bn+" found";return Zl(g)&&z===void 0&&(_o+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new gn(qi.key,ba,_o)]}return z==="categorical"&&bn==="number"&&(!isFinite(bo)||Math.floor(bo)!==bo)?[new gn(qi.key,ba,"integer expected, found "+bo)]:z!=="categorical"&&bn==="number"&&oe!==void 0&&bo=2&&y[1]!=="$id"&&y[1]!=="$type";case"in":return y.length>=3&&(typeof y[1]!="string"||Array.isArray(y[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return y.length!==3||Array.isArray(y[1])||Array.isArray(y[2]);case"any":case"all":for(var g=0,z=y.slice(1);gg?1:0}function He(y){if(!Array.isArray(y))return!1;if(y[0]==="within")return!0;for(var g=1;g"||g==="<="||g===">="?tt(y[1],y[2],g):g==="any"?pt(y.slice(1)):g==="all"?["all"].concat(y.slice(1).map(lt)):g==="none"?["all"].concat(y.slice(1).map(lt).map(fr)):g==="in"?Ht(y[1],y.slice(2)):g==="!in"?fr(Ht(y[1],y.slice(2))):g==="has"?nr(y[1]):g==="!has"?fr(nr(y[1])):g==="within"?y:!0;return z}function tt(y,g,z){switch(y){case"$type":return["filter-type-"+z,g];case"$id":return["filter-id-"+z,g];default:return["filter-"+z,y,g]}}function pt(y){return["any"].concat(y.map(lt))}function Ht(y,g){if(g.length===0)return!1;switch(y){case"$type":return["filter-type-in",["literal",g]];case"$id":return["filter-id-in",["literal",g]];default:return g.length>200&&!g.some(function(z){return typeof z!=typeof g[0]})?["filter-in-large",y,["literal",g.sort(qe)]]:["filter-in-small",y,["literal",g]]}}function nr(y){switch(y){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",y]}}function fr(y){return["!",y]}function Ar(y){return Vr(ao(y.value))?Ft(Ha({},y,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Rr(y)}function Rr(y){var g=y.value,z=y.key;if(ns(g)!=="array")return[new gn(z,g,"array expected, "+ns(g)+" found")];var V=y.styleSpec,$,oe=[];if(g.length<1)return[new gn(z,g,"filter array must have at least 1 element")];switch(oe=oe.concat(kr({key:z+"[0]",value:g[0],valueSpec:V.filter_operator,style:y.style,styleSpec:y.styleSpec})),Sn(g[0])){case"<":case"<=":case">":case">=":g.length>=2&&Sn(g[1])==="$type"&&oe.push(new gn(z,g,'"$type" cannot be use with operator "'+g[0]+'"'));case"==":case"!=":g.length!==3&&oe.push(new gn(z,g,'filter array for operator "'+g[0]+'" must have 3 elements'));case"in":case"!in":g.length>=2&&($=ns(g[1]),$!=="string"&&oe.push(new gn(z+"[1]",g[1],"string expected, "+$+" found")));for(var me=2;me=Xt[Pr+0]&&V>=Xt[Pr+1])?(me[qr]=!0,oe.push(Dt[qr])):me[qr]=!1}}},lf.prototype._forEachCell=function(y,g,z,V,$,oe,me,je){for(var xt=this._convertToCellCoord(y),Dt=this._convertToCellCoord(g),Xt=this._convertToCellCoord(z),xr=this._convertToCellCoord(V),qr=xt;qr<=Xt;qr++)for(var Pr=Dt;Pr<=xr;Pr++){var ai=this.d*Pr+qr;if(!(je&&!je(this._convertFromCellCoord(qr),this._convertFromCellCoord(Pr),this._convertFromCellCoord(qr+1),this._convertFromCellCoord(Pr+1)))&&$.call(this,y,g,z,V,ai,oe,me,je))return}},lf.prototype._convertFromCellCoord=function(y){return(y-this.padding)/this.scale},lf.prototype._convertToCellCoord=function(y){return Math.max(0,Math.min(this.d-1,Math.floor(y*this.scale)+this.padding))},lf.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var y=this.cells,g=Xu+this.cells.length+1+1,z=0,V=0;V=0)){var xr=y[Xt];Dt[Xt]=tf[xt].shallow.indexOf(Xt)>=0?xr:Qe(xr,g)}y instanceof Error&&(Dt.message=y.message)}if(Dt.$name)throw new Error("$name property is reserved for worker serialization logic.");return xt!=="Object"&&(Dt.$name=xt),Dt}throw new Error("can't serialize object of type "+typeof y)}function ot(y){if(y==null||typeof y=="boolean"||typeof y=="number"||typeof y=="string"||y instanceof Boolean||y instanceof Number||y instanceof String||y instanceof Date||y instanceof RegExp||ze(y)||Xe(y)||ArrayBuffer.isView(y)||y instanceof xf)return y;if(Array.isArray(y))return y.map(ot);if(typeof y=="object"){var g=y.$name||"Object",z=tf[g],V=z.klass;if(!V)throw new Error("can't deserialize unregistered class "+g);if(V.deserialize)return V.deserialize(y);for(var $=Object.create(V.prototype),oe=0,me=Object.keys(y);oe=0?xt:ot(xt)}}return $}throw new Error("can't deserialize object of type "+typeof y)}var jt=function(){this.first=!0};jt.prototype.update=function(g,z){var V=Math.floor(g);return this.first?(this.first=!1,this.lastIntegerZoom=V,this.lastIntegerZoomTime=0,this.lastZoom=g,this.lastFloorZoom=V,!0):(this.lastFloorZoom>V?(this.lastIntegerZoom=V+1,this.lastIntegerZoomTime=z):this.lastFloorZoom=128&&y<=255},Arabic:function(y){return y>=1536&&y<=1791},"Arabic Supplement":function(y){return y>=1872&&y<=1919},"Arabic Extended-A":function(y){return y>=2208&&y<=2303},"Hangul Jamo":function(y){return y>=4352&&y<=4607},"Unified Canadian Aboriginal Syllabics":function(y){return y>=5120&&y<=5759},Khmer:function(y){return y>=6016&&y<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(y){return y>=6320&&y<=6399},"General Punctuation":function(y){return y>=8192&&y<=8303},"Letterlike Symbols":function(y){return y>=8448&&y<=8527},"Number Forms":function(y){return y>=8528&&y<=8591},"Miscellaneous Technical":function(y){return y>=8960&&y<=9215},"Control Pictures":function(y){return y>=9216&&y<=9279},"Optical Character Recognition":function(y){return y>=9280&&y<=9311},"Enclosed Alphanumerics":function(y){return y>=9312&&y<=9471},"Geometric Shapes":function(y){return y>=9632&&y<=9727},"Miscellaneous Symbols":function(y){return y>=9728&&y<=9983},"Miscellaneous Symbols and Arrows":function(y){return y>=11008&&y<=11263},"CJK Radicals Supplement":function(y){return y>=11904&&y<=12031},"Kangxi Radicals":function(y){return y>=12032&&y<=12255},"Ideographic Description Characters":function(y){return y>=12272&&y<=12287},"CJK Symbols and Punctuation":function(y){return y>=12288&&y<=12351},Hiragana:function(y){return y>=12352&&y<=12447},Katakana:function(y){return y>=12448&&y<=12543},Bopomofo:function(y){return y>=12544&&y<=12591},"Hangul Compatibility Jamo":function(y){return y>=12592&&y<=12687},Kanbun:function(y){return y>=12688&&y<=12703},"Bopomofo Extended":function(y){return y>=12704&&y<=12735},"CJK Strokes":function(y){return y>=12736&&y<=12783},"Katakana Phonetic Extensions":function(y){return y>=12784&&y<=12799},"Enclosed CJK Letters and Months":function(y){return y>=12800&&y<=13055},"CJK Compatibility":function(y){return y>=13056&&y<=13311},"CJK Unified Ideographs Extension A":function(y){return y>=13312&&y<=19903},"Yijing Hexagram Symbols":function(y){return y>=19904&&y<=19967},"CJK Unified Ideographs":function(y){return y>=19968&&y<=40959},"Yi Syllables":function(y){return y>=40960&&y<=42127},"Yi Radicals":function(y){return y>=42128&&y<=42191},"Hangul Jamo Extended-A":function(y){return y>=43360&&y<=43391},"Hangul Syllables":function(y){return y>=44032&&y<=55215},"Hangul Jamo Extended-B":function(y){return y>=55216&&y<=55295},"Private Use Area":function(y){return y>=57344&&y<=63743},"CJK Compatibility Ideographs":function(y){return y>=63744&&y<=64255},"Arabic Presentation Forms-A":function(y){return y>=64336&&y<=65023},"Vertical Forms":function(y){return y>=65040&&y<=65055},"CJK Compatibility Forms":function(y){return y>=65072&&y<=65103},"Small Form Variants":function(y){return y>=65104&&y<=65135},"Arabic Presentation Forms-B":function(y){return y>=65136&&y<=65279},"Halfwidth and Fullwidth Forms":function(y){return y>=65280&&y<=65519}};function cr(y){for(var g=0,z=y;g=65097&&y<=65103)||_t["CJK Compatibility Ideographs"](y)||_t["CJK Compatibility"](y)||_t["CJK Radicals Supplement"](y)||_t["CJK Strokes"](y)||_t["CJK Symbols and Punctuation"](y)&&!(y>=12296&&y<=12305)&&!(y>=12308&&y<=12319)&&y!==12336||_t["CJK Unified Ideographs Extension A"](y)||_t["CJK Unified Ideographs"](y)||_t["Enclosed CJK Letters and Months"](y)||_t["Hangul Compatibility Jamo"](y)||_t["Hangul Jamo Extended-A"](y)||_t["Hangul Jamo Extended-B"](y)||_t["Hangul Jamo"](y)||_t["Hangul Syllables"](y)||_t.Hiragana(y)||_t["Ideographic Description Characters"](y)||_t.Kanbun(y)||_t["Kangxi Radicals"](y)||_t["Katakana Phonetic Extensions"](y)||_t.Katakana(y)&&y!==12540||_t["Halfwidth and Fullwidth Forms"](y)&&y!==65288&&y!==65289&&y!==65293&&!(y>=65306&&y<=65310)&&y!==65339&&y!==65341&&y!==65343&&!(y>=65371&&y<=65503)&&y!==65507&&!(y>=65512&&y<=65519)||_t["Small Form Variants"](y)&&!(y>=65112&&y<=65118)&&!(y>=65123&&y<=65126)||_t["Unified Canadian Aboriginal Syllabics"](y)||_t["Unified Canadian Aboriginal Syllabics Extended"](y)||_t["Vertical Forms"](y)||_t["Yijing Hexagram Symbols"](y)||_t["Yi Syllables"](y)||_t["Yi Radicals"](y))}function Oi(y){return!!(_t["Latin-1 Supplement"](y)&&(y===167||y===169||y===174||y===177||y===188||y===189||y===190||y===215||y===247)||_t["General Punctuation"](y)&&(y===8214||y===8224||y===8225||y===8240||y===8241||y===8251||y===8252||y===8258||y===8263||y===8264||y===8265||y===8273)||_t["Letterlike Symbols"](y)||_t["Number Forms"](y)||_t["Miscellaneous Technical"](y)&&(y>=8960&&y<=8967||y>=8972&&y<=8991||y>=8996&&y<=9e3||y===9003||y>=9085&&y<=9114||y>=9150&&y<=9165||y===9167||y>=9169&&y<=9179||y>=9186&&y<=9215)||_t["Control Pictures"](y)&&y!==9251||_t["Optical Character Recognition"](y)||_t["Enclosed Alphanumerics"](y)||_t["Geometric Shapes"](y)||_t["Miscellaneous Symbols"](y)&&!(y>=9754&&y<=9759)||_t["Miscellaneous Symbols and Arrows"](y)&&(y>=11026&&y<=11055||y>=11088&&y<=11097||y>=11192&&y<=11243)||_t["CJK Symbols and Punctuation"](y)||_t.Katakana(y)||_t["Private Use Area"](y)||_t["CJK Compatibility Forms"](y)||_t["Small Form Variants"](y)||_t["Halfwidth and Fullwidth Forms"](y)||y===8734||y===8756||y===8757||y>=9984&&y<=10087||y>=10102&&y<=10131||y===65532||y===65533)}function fn(y){return!($r(y)||Oi(y))}function vi(y){return _t.Arabic(y)||_t["Arabic Supplement"](y)||_t["Arabic Extended-A"](y)||_t["Arabic Presentation Forms-A"](y)||_t["Arabic Presentation Forms-B"](y)}function zi(y){return y>=1424&&y<=2303||_t["Arabic Presentation Forms-A"](y)||_t["Arabic Presentation Forms-B"](y)}function Xi(y,g){return!(!g&&zi(y)||y>=2304&&y<=3583||y>=3840&&y<=4255||_t.Khmer(y))}function pn(y){for(var g=0,z=y;g-1&&(no=bi.error),xo&&xo(y)};function El(){Pl.fire(new rn("pluginStateChange",{pluginStatus:no,pluginURL:Xo}))}var Pl=new Ri,pu=function(){return no},Il=function(y){return y({pluginStatus:no,pluginURL:Xo}),Pl.on("pluginStateChange",y),y},fu=function(y,g,z){if(z===void 0&&(z=!1),no===bi.deferred||no===bi.loading||no===bi.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Xo=nt.resolveURL(y),no=bi.deferred,xo=g,El(),z||Zu()},Zu=function(){if(no!==bi.deferred||!Xo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");no=bi.loading,El(),Xo&&Ur({url:Xo},function(y){y?js(y):(no=bi.loaded,El())})},Gu={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return no===bi.loaded||Gu.applyArabicShaping!=null},isLoading:function(){return no===bi.loading},setState:function(g){no=g.pluginStatus,Xo=g.pluginURL},isParsed:function(){return Gu.applyArabicShaping!=null&&Gu.processBidirectionalText!=null&&Gu.processStyledBidirectionalText!=null},getPluginURL:function(){return Xo}},rf=function(){!Gu.isLoading()&&!Gu.isLoaded()&&pu()==="deferred"&&Zu()},ds=function(g,z){this.zoom=g,z?(this.now=z.now,this.fadeDuration=z.fadeDuration,this.zoomHistory=z.zoomHistory,this.transition=z.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new jt,this.transition={})};ds.prototype.isSupportedScript=function(g){return sn(g,Gu.isLoaded())},ds.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ds.prototype.getCrossfadeParameters=function(){var g=this.zoom,z=g-Math.floor(g),V=this.crossFadingFactor();return g>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:z+(1-z)*V}:{fromScale:.5,toScale:1,t:1-(1-V)*z}};var Wl=function(g,z){this.property=g,this.value=z,this.expression=w(z===void 0?g.specification.default:z,g.specification)};Wl.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Wl.prototype.possiblyEvaluate=function(g,z,V){return this.property.possiblyEvaluate(this,g,z,V)};var Au=function(g){this.property=g,this.value=new Wl(g,void 0)};Au.prototype.transitioned=function(g,z){return new uf(this.property,this.value,z,x({},g.transition,this.transition),g.now)},Au.prototype.untransitioned=function(){return new uf(this.property,this.value,null,{},0)};var Tu=function(g){this._properties=g,this._values=Object.create(g.defaultTransitionablePropertyValues)};Tu.prototype.getValue=function(g){return H(this._values[g].value.value)},Tu.prototype.setValue=function(g,z){this._values.hasOwnProperty(g)||(this._values[g]=new Au(this._values[g].property)),this._values[g].value=new Wl(this._values[g].property,z===null?void 0:H(z))},Tu.prototype.getTransition=function(g){return H(this._values[g].transition)},Tu.prototype.setTransition=function(g,z){this._values.hasOwnProperty(g)||(this._values[g]=new Au(this._values[g].property)),this._values[g].transition=H(z)||void 0},Tu.prototype.serialize=function(){for(var g={},z=0,V=Object.keys(this._values);zthis.end)return this.prior=null,oe;if(this.value.isDataDriven())return this.prior=null,oe;if($me.zoomHistory.lastIntegerZoom?{from:V,to:$}:{from:oe,to:$}},g.prototype.interpolate=function(V){return V},g}(qt),Qr=function(g){this.specification=g};Qr.prototype.possiblyEvaluate=function(g,z,V,$){if(g.value!==void 0)if(g.expression.kind==="constant"){var oe=g.expression.evaluate(z,null,{},V,$);return this._calculate(oe,oe,oe,z)}else return this._calculate(g.expression.evaluate(new ds(Math.floor(z.zoom-1),z)),g.expression.evaluate(new ds(Math.floor(z.zoom),z)),g.expression.evaluate(new ds(Math.floor(z.zoom+1),z)),z)},Qr.prototype._calculate=function(g,z,V,$){var oe=$.zoom;return oe>$.zoomHistory.lastIntegerZoom?{from:g,to:z}:{from:V,to:z}},Qr.prototype.interpolate=function(g){return g};var mi=function(g){this.specification=g};mi.prototype.possiblyEvaluate=function(g,z,V,$){return!!g.expression.evaluate(z,null,{},V,$)},mi.prototype.interpolate=function(){return!1};var fi=function(g){this.properties=g,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var z in g){var V=g[z];V.specification.overridable&&this.overridableProperties.push(z);var $=this.defaultPropertyValues[z]=new Wl(V,void 0),oe=this.defaultTransitionablePropertyValues[z]=new Au(V);this.defaultTransitioningPropertyValues[z]=oe.untransitioned(),this.defaultPossiblyEvaluatedValues[z]=$.possiblyEvaluate({})}};Z("DataDrivenProperty",qt),Z("DataConstantProperty",Be),Z("CrossFadedDataDrivenProperty",ar),Z("CrossFadedProperty",Qr),Z("ColorRampProperty",mi);var pi="-transition",on=function(y){function g(z,V){if(y.call(this),this.id=z.id,this.type=z.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},z.type!=="custom"&&(z=z,this.metadata=z.metadata,this.minzoom=z.minzoom,this.maxzoom=z.maxzoom,z.type!=="background"&&(this.source=z.source,this.sourceLayer=z["source-layer"],this.filter=z.filter),V.layout&&(this._unevaluatedLayout=new Ef(V.layout)),V.paint)){this._transitionablePaint=new Tu(V.paint);for(var $ in z.paint)this.setPaintProperty($,z.paint[$],{validate:!1});for(var oe in z.layout)this.setLayoutProperty(oe,z.layout[oe],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new fc(V.paint)}}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},g.prototype.getLayoutProperty=function(V){return V==="visibility"?this.visibility:this._unevaluatedLayout.getValue(V)},g.prototype.setLayoutProperty=function(V,$,oe){if(oe===void 0&&(oe={}),$!=null){var me="layers."+this.id+".layout."+V;if(this._validate(Qu,me,V,$,oe))return}if(V==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(V,$)},g.prototype.getPaintProperty=function(V){return U(V,pi)?this._transitionablePaint.getTransition(V.slice(0,-pi.length)):this._transitionablePaint.getValue(V)},g.prototype.setPaintProperty=function(V,$,oe){if(oe===void 0&&(oe={}),$!=null){var me="layers."+this.id+".paint."+V;if(this._validate(Wu,me,V,$,oe))return!1}if(U(V,pi))return this._transitionablePaint.setTransition(V.slice(0,-pi.length),$||void 0),!1;var je=this._transitionablePaint._values[V],xt=je.property.specification["property-type"]==="cross-faded-data-driven",Dt=je.value.isDataDriven(),Xt=je.value;this._transitionablePaint.setValue(V,$),this._handleSpecialPaintPropertyUpdate(V);var xr=this._transitionablePaint._values[V].value,qr=xr.isDataDriven();return qr||Dt||xt||this._handleOverridablePaintPropertyUpdate(V,Xt,xr)},g.prototype._handleSpecialPaintPropertyUpdate=function(V){},g.prototype._handleOverridablePaintPropertyUpdate=function(V,$,oe){return!1},g.prototype.isHidden=function(V){return this.minzoom&&V=this.maxzoom?!0:this.visibility==="none"},g.prototype.updateTransitions=function(V){this._transitioningPaint=this._transitionablePaint.transitioned(V,this._transitioningPaint)},g.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},g.prototype.recalculate=function(V,$){V.getCrossfadeParameters&&(this._crossfadeParameters=V.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(V,void 0,$)),this.paint=this._transitioningPaint.possiblyEvaluate(V,void 0,$)},g.prototype.serialize=function(){var V={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(V.layout=V.layout||{},V.layout.visibility=this.visibility),j(V,function($,oe){return $!==void 0&&!(oe==="layout"&&!Object.keys($).length)&&!(oe==="paint"&&!Object.keys($).length)})},g.prototype._validate=function(V,$,oe,me,je){return je===void 0&&(je={}),je&&je.validate===!1?!1:Ju(this,V.call(iu,{key:$,layerType:this.type,objectKey:oe,value:me,styleSpec:ji,style:{glyphs:!0,sprite:!0}}))},g.prototype.is3D=function(){return!1},g.prototype.isTileClipped=function(){return!1},g.prototype.hasOffscreenPass=function(){return!1},g.prototype.resize=function(){},g.prototype.isStateDependent=function(){for(var V in this.paint._values){var $=this.paint.get(V);if(!(!($ instanceof vf)||!Zl($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},g}(Ri),Bn={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ln=function(g,z){this._structArray=g,this._pos1=z*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},wn=128,Ls=5,ua=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};ua.serialize=function(g,z){return g._trim(),z&&(g.isTransferred=!0,z.push(g.arrayBuffer)),{length:g.length,arrayBuffer:g.arrayBuffer}},ua.deserialize=function(g){var z=Object.create(this.prototype);return z.arrayBuffer=g.arrayBuffer,z.length=g.length,z.capacity=g.arrayBuffer.byteLength/z.bytesPerElement,z._refreshViews(),z},ua.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},ua.prototype.clear=function(){this.length=0},ua.prototype.resize=function(g){this.reserve(g),this.length=g},ua.prototype.reserve=function(g){if(g>this.capacity){this.capacity=Math.max(g,Math.floor(this.capacity*Ls),wn),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var z=this.uint8;this._refreshViews(),z&&this.uint8.set(z)}},ua.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function Hn(y,g){g===void 0&&(g=1);var z=0,V=0,$=y.map(function(me){var je=Ni(me.type),xt=z=Wr(z,Math.max(g,je)),Dt=me.components||1;return V=Math.max(V,je),z+=je*Dt,{name:me.name,type:me.type,components:Dt,offset:xt}}),oe=Wr(z,Math.max(V,g));return{members:$,size:oe,alignment:g}}function Ni(y){return Bn[y].BYTES_PER_ELEMENT}function Wr(y,g){return Math.ceil(y/g)*g}var _i=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var me=V*2;return this.int16[me+0]=$,this.int16[me+1]=oe,V},g}(ua);_i.prototype.bytesPerElement=4,Z("StructArrayLayout2i4",_i);var dn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me){var je=this.length;return this.resize(je+1),this.emplace(je,V,$,oe,me)},g.prototype.emplace=function(V,$,oe,me,je){var xt=V*4;return this.int16[xt+0]=$,this.int16[xt+1]=oe,this.int16[xt+2]=me,this.int16[xt+3]=je,V},g}(ua);dn.prototype.bytesPerElement=8,Z("StructArrayLayout4i8",dn);var En=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt){var Dt=this.length;return this.resize(Dt+1),this.emplace(Dt,V,$,oe,me,je,xt)},g.prototype.emplace=function(V,$,oe,me,je,xt,Dt){var Xt=V*6;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.int16[Xt+2]=me,this.int16[Xt+3]=je,this.int16[Xt+4]=xt,this.int16[Xt+5]=Dt,V},g}(ua);En.prototype.bytesPerElement=12,Z("StructArrayLayout2i4i12",En);var Yi=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt){var Dt=this.length;return this.resize(Dt+1),this.emplace(Dt,V,$,oe,me,je,xt)},g.prototype.emplace=function(V,$,oe,me,je,xt,Dt){var Xt=V*4,xr=V*8;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.uint8[xr+4]=me,this.uint8[xr+5]=je,this.uint8[xr+6]=xt,this.uint8[xr+7]=Dt,V},g}(ua);Yi.prototype.bytesPerElement=8,Z("StructArrayLayout2i4ub8",Yi);var ga=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var me=V*2;return this.float32[me+0]=$,this.float32[me+1]=oe,V},g}(ua);ga.prototype.bytesPerElement=8,Z("StructArrayLayout2f8",ga);var Kn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt,Dt,Xt,xr,qr){var Pr=this.length;return this.resize(Pr+1),this.emplace(Pr,V,$,oe,me,je,xt,Dt,Xt,xr,qr)},g.prototype.emplace=function(V,$,oe,me,je,xt,Dt,Xt,xr,qr,Pr){var ai=V*10;return this.uint16[ai+0]=$,this.uint16[ai+1]=oe,this.uint16[ai+2]=me,this.uint16[ai+3]=je,this.uint16[ai+4]=xt,this.uint16[ai+5]=Dt,this.uint16[ai+6]=Xt,this.uint16[ai+7]=xr,this.uint16[ai+8]=qr,this.uint16[ai+9]=Pr,V},g}(ua);Kn.prototype.bytesPerElement=20,Z("StructArrayLayout10ui20",Kn);var hs=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt,Dt,Xt,xr,qr,Pr,ai){var qi=this.length;return this.resize(qi+1),this.emplace(qi,V,$,oe,me,je,xt,Dt,Xt,xr,qr,Pr,ai)},g.prototype.emplace=function(V,$,oe,me,je,xt,Dt,Xt,xr,qr,Pr,ai,qi){var Wn=V*12;return this.int16[Wn+0]=$,this.int16[Wn+1]=oe,this.int16[Wn+2]=me,this.int16[Wn+3]=je,this.uint16[Wn+4]=xt,this.uint16[Wn+5]=Dt,this.uint16[Wn+6]=Xt,this.uint16[Wn+7]=xr,this.int16[Wn+8]=qr,this.int16[Wn+9]=Pr,this.int16[Wn+10]=ai,this.int16[Wn+11]=qi,V},g}(ua);hs.prototype.bytesPerElement=24,Z("StructArrayLayout4i4ui4i24",hs);var $i=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var je=V*3;return this.float32[je+0]=$,this.float32[je+1]=oe,this.float32[je+2]=me,V},g}(ua);$i.prototype.bytesPerElement=12,Z("StructArrayLayout3f12",$i);var Ui=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.uint32[oe+0]=$,V},g}(ua);Ui.prototype.bytesPerElement=4,Z("StructArrayLayout1ul4",Ui);var ro=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt,Dt,Xt,xr){var qr=this.length;return this.resize(qr+1),this.emplace(qr,V,$,oe,me,je,xt,Dt,Xt,xr)},g.prototype.emplace=function(V,$,oe,me,je,xt,Dt,Xt,xr,qr){var Pr=V*10,ai=V*5;return this.int16[Pr+0]=$,this.int16[Pr+1]=oe,this.int16[Pr+2]=me,this.int16[Pr+3]=je,this.int16[Pr+4]=xt,this.int16[Pr+5]=Dt,this.uint32[ai+3]=Xt,this.uint16[Pr+8]=xr,this.uint16[Pr+9]=qr,V},g}(ua);ro.prototype.bytesPerElement=20,Z("StructArrayLayout6i1ul2ui20",ro);var na=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt){var Dt=this.length;return this.resize(Dt+1),this.emplace(Dt,V,$,oe,me,je,xt)},g.prototype.emplace=function(V,$,oe,me,je,xt,Dt){var Xt=V*6;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.int16[Xt+2]=me,this.int16[Xt+3]=je,this.int16[Xt+4]=xt,this.int16[Xt+5]=Dt,V},g}(ua);na.prototype.bytesPerElement=12,Z("StructArrayLayout2i2i2i12",na);var On=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je){var xt=this.length;return this.resize(xt+1),this.emplace(xt,V,$,oe,me,je)},g.prototype.emplace=function(V,$,oe,me,je,xt){var Dt=V*4,Xt=V*8;return this.float32[Dt+0]=$,this.float32[Dt+1]=oe,this.float32[Dt+2]=me,this.int16[Xt+6]=je,this.int16[Xt+7]=xt,V},g}(ua);On.prototype.bytesPerElement=16,Z("StructArrayLayout2f1f2i16",On);var In=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me){var je=this.length;return this.resize(je+1),this.emplace(je,V,$,oe,me)},g.prototype.emplace=function(V,$,oe,me,je){var xt=V*12,Dt=V*3;return this.uint8[xt+0]=$,this.uint8[xt+1]=oe,this.float32[Dt+1]=me,this.float32[Dt+2]=je,V},g}(ua);In.prototype.bytesPerElement=12,Z("StructArrayLayout2ub2f12",In);var Va=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var je=V*3;return this.uint16[je+0]=$,this.uint16[je+1]=oe,this.uint16[je+2]=me,V},g}(ua);Va.prototype.bytesPerElement=6,Z("StructArrayLayout3ui6",Va);var _s=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt,Dt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba){var _o=this.length;return this.resize(_o+1),this.emplace(_o,V,$,oe,me,je,xt,Dt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba)},g.prototype.emplace=function(V,$,oe,me,je,xt,Dt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba,_o){var Uo=V*24,Zs=V*12,Cl=V*48;return this.int16[Uo+0]=$,this.int16[Uo+1]=oe,this.uint16[Uo+2]=me,this.uint16[Uo+3]=je,this.uint32[Zs+2]=xt,this.uint32[Zs+3]=Dt,this.uint32[Zs+4]=Xt,this.uint16[Uo+10]=xr,this.uint16[Uo+11]=qr,this.uint16[Uo+12]=Pr,this.float32[Zs+7]=ai,this.float32[Zs+8]=qi,this.uint8[Cl+36]=Wn,this.uint8[Cl+37]=bn,this.uint8[Cl+38]=bo,this.uint32[Zs+10]=ba,this.int16[Uo+22]=_o,V},g}(ua);_s.prototype.bytesPerElement=48,Z("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",_s);var ul=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt,Dt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Bu,du,gu){var ff=this.length;return this.resize(ff+1),this.emplace(ff,V,$,oe,me,je,xt,Dt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Bu,du,gu)},g.prototype.emplace=function(V,$,oe,me,je,xt,Dt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Bu,du,gu,ff){var Ru=V*34,Rf=V*17;return this.int16[Ru+0]=$,this.int16[Ru+1]=oe,this.int16[Ru+2]=me,this.int16[Ru+3]=je,this.int16[Ru+4]=xt,this.int16[Ru+5]=Dt,this.int16[Ru+6]=Xt,this.int16[Ru+7]=xr,this.uint16[Ru+8]=qr,this.uint16[Ru+9]=Pr,this.uint16[Ru+10]=ai,this.uint16[Ru+11]=qi,this.uint16[Ru+12]=Wn,this.uint16[Ru+13]=bn,this.uint16[Ru+14]=bo,this.uint16[Ru+15]=ba,this.uint16[Ru+16]=_o,this.uint16[Ru+17]=Uo,this.uint16[Ru+18]=Zs,this.uint16[Ru+19]=Cl,this.uint16[Ru+20]=Tl,this.uint16[Ru+21]=hu,this.uint16[Ru+22]=Kl,this.uint32[Rf+12]=lu,this.float32[Rf+13]=Bu,this.float32[Rf+14]=du,this.float32[Rf+15]=gu,this.float32[Rf+16]=ff,V},g}(ua);ul.prototype.bytesPerElement=68,Z("StructArrayLayout8i15ui1ul4f68",ul);var Qn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.float32[oe+0]=$,V},g}(ua);Qn.prototype.bytesPerElement=4,Z("StructArrayLayout1f4",Qn);var Mo=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var je=V*3;return this.int16[je+0]=$,this.int16[je+1]=oe,this.int16[je+2]=me,V},g}(ua);Mo.prototype.bytesPerElement=6,Z("StructArrayLayout3i6",Mo);var nl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var je=V*2,xt=V*4;return this.uint32[je+0]=$,this.uint16[xt+2]=oe,this.uint16[xt+3]=me,V},g}(ua);nl.prototype.bytesPerElement=8,Z("StructArrayLayout1ul2ui8",nl);var pl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var me=V*2;return this.uint16[me+0]=$,this.uint16[me+1]=oe,V},g}(ua);pl.prototype.bytesPerElement=4,Z("StructArrayLayout2ui4",pl);var Dl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.uint16[oe+0]=$,V},g}(ua);Dl.prototype.bytesPerElement=2,Z("StructArrayLayout1ui2",Dl);var Fu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me){var je=this.length;return this.resize(je+1),this.emplace(je,V,$,oe,me)},g.prototype.emplace=function(V,$,oe,me,je){var xt=V*4;return this.float32[xt+0]=$,this.float32[xt+1]=oe,this.float32[xt+2]=me,this.float32[xt+3]=je,V},g}(ua);Fu.prototype.bytesPerElement=16,Z("StructArrayLayout4f16",Fu);var mf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return z.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},z.x1.get=function(){return this._structArray.int16[this._pos2+2]},z.y1.get=function(){return this._structArray.int16[this._pos2+3]},z.x2.get=function(){return this._structArray.int16[this._pos2+4]},z.y2.get=function(){return this._structArray.int16[this._pos2+5]},z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},z.anchorPoint.get=function(){return new l(this.anchorPointX,this.anchorPointY)},Object.defineProperties(g.prototype,z),g}(Ln);mf.prototype.size=20;var Ql=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new mf(this,V)},g}(ro);Z("CollisionBoxArray",Ql);var kf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},z.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},z.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},z.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},z.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},z.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},z.segment.get=function(){return this._structArray.uint16[this._pos2+10]},z.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},z.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},z.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},z.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},z.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},z.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},z.placedOrientation.set=function(V){this._structArray.uint8[this._pos1+37]=V},z.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},z.hidden.set=function(V){this._structArray.uint8[this._pos1+38]=V},z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},z.crossTileID.set=function(V){this._structArray.uint32[this._pos4+10]=V},z.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(g.prototype,z),g}(Ln);kf.prototype.size=48;var Cu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new kf(this,V)},g}(_s);Z("PlacedSymbolArray",Cu);var _f=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},z.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},z.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},z.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},z.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},z.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},z.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},z.key.get=function(){return this._structArray.uint16[this._pos2+8]},z.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},z.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},z.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},z.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},z.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},z.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},z.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},z.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},z.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},z.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},z.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},z.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},z.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},z.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},z.crossTileID.set=function(V){this._structArray.uint32[this._pos4+12]=V},z.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},z.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},z.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},z.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(g.prototype,z),g}(Ln);_f.prototype.size=68;var bf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new _f(this,V)},g}(ul);Z("SymbolInstanceArray",bf);var Lf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getoffsetX=function(V){return this.float32[V*1+0]},g}(Qn);Z("GlyphOffsetArray",Lf);var Hu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getx=function(V){return this.int16[V*3+0]},g.prototype.gety=function(V){return this.int16[V*3+1]},g.prototype.gettileUnitDistanceFromAnchor=function(V){return this.int16[V*3+2]},g}(Mo);Z("SymbolLineVertexArray",Hu);var hf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(g.prototype,z),g}(Ln);hf.prototype.size=8;var yf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new hf(this,V)},g}(nl);Z("FeatureIndexArray",yf);var Fl=Hn([{name:"a_pos",components:2,type:"Int16"}],4),wf=Fl.members,cu=function(g){g===void 0&&(g=[]),this.segments=g};cu.prototype.prepareSegment=function(g,z,V,$){var oe=this.segments[this.segments.length-1];return g>cu.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+cu.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+g),(!oe||oe.vertexLength+g>cu.MAX_VERTEX_ARRAY_LENGTH||oe.sortKey!==$)&&(oe={vertexOffset:z.length,primitiveOffset:V.length,vertexLength:0,primitiveLength:0},$!==void 0&&(oe.sortKey=$),this.segments.push(oe)),oe},cu.prototype.get=function(){return this.segments},cu.prototype.destroy=function(){for(var g=0,z=this.segments;g>>16)*xt&65535)<<16)&4294967295,Xt=Xt<<15|Xt>>>17,Xt=(Xt&65535)*Dt+(((Xt>>>16)*Dt&65535)<<16)&4294967295,me^=Xt,me=me<<13|me>>>19,je=(me&65535)*5+(((me>>>16)*5&65535)<<16)&4294967295,me=(je&65535)+27492+(((je>>>16)+58964&65535)<<16);switch(Xt=0,$){case 3:Xt^=(z.charCodeAt(xr+2)&255)<<16;case 2:Xt^=(z.charCodeAt(xr+1)&255)<<8;case 1:Xt^=z.charCodeAt(xr)&255,Xt=(Xt&65535)*xt+(((Xt>>>16)*xt&65535)<<16)&4294967295,Xt=Xt<<15|Xt>>>17,Xt=(Xt&65535)*Dt+(((Xt>>>16)*Dt&65535)<<16)&4294967295,me^=Xt}return me^=z.length,me^=me>>>16,me=(me&65535)*2246822507+(((me>>>16)*2246822507&65535)<<16)&4294967295,me^=me>>>13,me=(me&65535)*3266489909+(((me>>>16)*3266489909&65535)<<16)&4294967295,me^=me>>>16,me>>>0}y.exports=g}),O=a(function(y){function g(z,V){for(var $=z.length,oe=V^$,me=0,je;$>=4;)je=z.charCodeAt(me)&255|(z.charCodeAt(++me)&255)<<8|(z.charCodeAt(++me)&255)<<16|(z.charCodeAt(++me)&255)<<24,je=(je&65535)*1540483477+(((je>>>16)*1540483477&65535)<<16),je^=je>>>24,je=(je&65535)*1540483477+(((je>>>16)*1540483477&65535)<<16),oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16)^je,$-=4,++me;switch($){case 3:oe^=(z.charCodeAt(me+2)&255)<<16;case 2:oe^=(z.charCodeAt(me+1)&255)<<8;case 1:oe^=z.charCodeAt(me)&255,oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16)}return oe^=oe>>>13,oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16),oe^=oe>>>15,oe>>>0}y.exports=g}),K=J,_e=J,ne=O;K.murmur3=_e,K.murmur2=ne;var Le=function(){this.ids=[],this.positions=[],this.indexed=!1};Le.prototype.add=function(g,z,V,$){this.ids.push(Ct(g)),this.positions.push(z,V,$)},Le.prototype.getPositions=function(g){for(var z=Ct(g),V=0,$=this.ids.length-1;V<$;){var oe=V+$>>1;this.ids[oe]>=z?$=oe:V=oe+1}for(var me=[];this.ids[V]===z;){var je=this.positions[3*V],xt=this.positions[3*V+1],Dt=this.positions[3*V+2];me.push({index:je,start:xt,end:Dt}),V++}return me},Le.serialize=function(g,z){var V=new Float64Array(g.ids),$=new Uint32Array(g.positions);return dr(V,$,0,V.length-1),z&&z.push(V.buffer,$.buffer),{ids:V,positions:$}},Le.deserialize=function(g){var z=new Le;return z.ids=g.ids,z.positions=g.positions,z.indexed=!0,z};var Ze=Math.pow(2,53)-1;function Ct(y){var g=+y;return!isNaN(g)&&g<=Ze?g:K(String(y))}function dr(y,g,z,V){for(;z>1],oe=z-1,me=V+1;;){do oe++;while(y[oe]<$);do me--;while(y[me]>$);if(oe>=me)break;Er(y,oe,me),Er(g,3*oe,3*me),Er(g,3*oe+1,3*me+1),Er(g,3*oe+2,3*me+2)}me-zme.x+1||xtme.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return z}function ru(y,g){return{type:y.type,id:y.id,properties:y.properties,geometry:g?Zo(y):[]}}function yu(y,g,z,V,$){y.emplaceBack(g*2+(V+1)/2,z*2+($+1)/2)}var Du=function(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=g.index,this.hasPattern=!1,this.layoutVertexArray=new _i,this.indexArray=new Va,this.segments=new cu,this.programConfigurations=new Ki(g.layers,g.zoom),this.stateDependentLayerIds=this.layers.filter(function(z){return z.isStateDependent()}).map(function(z){return z.id})};Du.prototype.populate=function(g,z,V){var $=this.layers[0],oe=[],me=null;$.type==="circle"&&(me=$.layout.get("circle-sort-key"));for(var je=0,xt=g;je=Tn||qr<0||qr>=Tn)){var Pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,g.sortKey),ai=Pr.vertexLength;yu(this.layoutVertexArray,xr,qr,-1,-1),yu(this.layoutVertexArray,xr,qr,1,-1),yu(this.layoutVertexArray,xr,qr,1,1),yu(this.layoutVertexArray,xr,qr,-1,1),this.indexArray.emplaceBack(ai,ai+1,ai+2),this.indexArray.emplaceBack(ai,ai+3,ai+2),Pr.vertexLength+=4,Pr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,g,V,{},$)},Z("CircleBucket",Du,{omit:["layers"]});function vu(y,g){for(var z=0;z=3){for(var oe=0;oe<$.length;oe++)if(Sd(y,$[oe]))return!0}if(wd(y,$,z))return!0}return!1}function wd(y,g,z){if(y.length>1){if(Ad(y,g))return!0;for(var V=0;V1?y.distSqr(z):y.distSqr(z.sub(g)._mult($)._add(g))}function pv(y,g){for(var z=!1,V,$,oe,me=0;meg.y!=oe.y>g.y&&g.x<(oe.x-$.x)*(g.y-$.y)/(oe.y-$.y)+$.x&&(z=!z)}return z}function Sd(y,g){for(var z=!1,V=0,$=y.length-1;Vg.y!=me.y>g.y&&g.x<(me.x-oe.x)*(g.y-oe.y)/(me.y-oe.y)+oe.x&&(z=!z)}return z}function vv(y,g,z,V,$){for(var oe=0,me=y;oe=je.x&&$>=je.y)return!0}var xt=[new l(g,z),new l(g,$),new l(V,$),new l(V,z)];if(y.length>2)for(var Dt=0,Xt=xt;Dt$.x&&g.x>$.x||y.y$.y&&g.y>$.y)return!1;var oe=ae(y,g,z[0]);return oe!==ae(y,g,z[1])||oe!==ae(y,g,z[2])||oe!==ae(y,g,z[3])}function Md(y,g,z){var V=g.paint.get(y).value;return V.kind==="constant"?V.value:z.programConfigurations.get(g.id).getMaxValue(y)}function Lp(y){return Math.sqrt(y[0]*y[0]+y[1]*y[1])}function Jp(y,g,z,V,$){if(!g[0]&&!g[1])return y;var oe=l.convert(g)._mult($);z==="viewport"&&oe._rotate(-V);for(var me=[],je=0;je0&&(oe=1/Math.sqrt(oe)),y[0]=g[0]*oe,y[1]=g[1]*oe,y[2]=g[2]*oe,y}function WO(y,g){return y[0]*g[0]+y[1]*g[1]+y[2]*g[2]}function jO(y,g,z){var V=g[0],$=g[1],oe=g[2],me=z[0],je=z[1],xt=z[2];return y[0]=$*xt-oe*je,y[1]=oe*me-V*xt,y[2]=V*je-$*me,y}function XO(y,g,z){var V=g[0],$=g[1],oe=g[2];return y[0]=V*z[0]+$*z[3]+oe*z[6],y[1]=V*z[1]+$*z[4]+oe*z[7],y[2]=V*z[2]+$*z[5]+oe*z[8],y}var ZO=oy,qQ=function(){var y=ay();return function(g,z,V,$,oe,me){var je,xt;for(z||(z=3),V||(V=0),$?xt=Math.min($*z+V,g.length):xt=g.length,je=V;jey.width||$.height>y.height||z.x>y.width-$.width||z.y>y.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>g.width||$.height>g.height||V.x>g.width-$.width||V.y>g.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var me=y.data,je=g.data,xt=0;xt<$.height;xt++)for(var Dt=((z.y+xt)*y.width+z.x)*oe,Xt=((V.y+xt)*g.width+V.x)*oe,xr=0;xr<$.width*oe;xr++)je[Xt+xr]=me[Dt+xr];return g}var Ip=function(g,z){kd(this,g,1,z)};Ip.prototype.resize=function(g){kw(this,g,1)},Ip.prototype.clone=function(){return new Ip({width:this.width,height:this.height},new Uint8Array(this.data))},Ip.copy=function(g,z,V,$,oe){Cw(g,z,V,$,oe,1)};var Ch=function(g,z){kd(this,g,4,z)};Ch.prototype.resize=function(g){kw(this,g,4)},Ch.prototype.replace=function(g,z){z?this.data.set(g):g instanceof Uint8ClampedArray?this.data=new Uint8Array(g.buffer):this.data=g},Ch.prototype.clone=function(){return new Ch({width:this.width,height:this.height},new Uint8Array(this.data))},Ch.copy=function(g,z,V,$,oe){Cw(g,z,V,$,oe,4)},Z("AlphaImage",Ip),Z("RGBAImage",Ch);var Vx=new fi({"heatmap-radius":new qt(ji.paint_heatmap["heatmap-radius"]),"heatmap-weight":new qt(ji.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Be(ji.paint_heatmap["heatmap-intensity"]),"heatmap-color":new mi(ji.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Be(ji.paint_heatmap["heatmap-opacity"])}),S1={paint:Vx};function Gx(y){var g={},z=y.resolution||256,V=y.clips?y.clips.length:1,$=y.image||new Ch({width:z,height:V}),oe=function(bo,ba,_o){g[y.evaluationKey]=_o;var Uo=y.expression.evaluate(g);$.data[bo+ba+0]=Math.floor(Uo.r*255/Uo.a),$.data[bo+ba+1]=Math.floor(Uo.g*255/Uo.a),$.data[bo+ba+2]=Math.floor(Uo.b*255/Uo.a),$.data[bo+ba+3]=Math.floor(Uo.a*255)};if(y.clips)for(var Dt=0,Xt=0;Dt80*z){je=Dt=y[0],xt=Xt=y[1];for(var ai=z;ai<$;ai+=z)xr=y[ai],qr=y[ai+1],xrDt&&(Dt=xr),qr>Xt&&(Xt=qr);Pr=Math.max(Dt-je,Xt-xt),Pr=Pr!==0?1/Pr:0}return Hx(oe,me,z,je,xt,Pr),me}function zw(y,g,z,V,$){var oe,me;if($===cM(y,g,z,V)>0)for(oe=g;oe=g;oe-=V)me=EC(oe,y[oe],y[oe+1],me);return me&&jx(me,me.next)&&(Yx(me),me=me.next),me}function sy(y,g){if(!y)return y;g||(g=y);var z=y,V;do if(V=!1,!z.steiner&&(jx(z,z.next)||Kc(z.prev,z,z.next)===0)){if(Yx(z),z=g=z.prev,z===z.next)break;V=!0}else z=z.next;while(V||z!==g);return g}function Hx(y,g,z,V,$,oe,me){if(y){!me&&oe&&Iw(y,V,$,oe);for(var je=y,xt,Dt;y.prev!==y.next;){if(xt=y.prev,Dt=y.next,oe?TC(y,V,$,oe):AC(y)){g.push(xt.i/z),g.push(y.i/z),g.push(Dt.i/z),Yx(y),y=Dt.next,je=Dt.next;continue}if(y=Dt,y===je){me?me===1?(y=Wx(sy(y),g,z),Hx(y,g,z,V,$,oe,2)):me===2&&p0(y,g,z,V,$,oe):Hx(sy(y),g,z,V,$,oe,1);break}}}}function AC(y){var g=y.prev,z=y,V=y.next;if(Kc(g,z,V)>=0)return!1;for(var $=y.next.next;$!==y.prev;){if(uy(g.x,g.y,z.x,z.y,V.x,V.y,$.x,$.y)&&Kc($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function TC(y,g,z,V){var $=y.prev,oe=y,me=y.next;if(Kc($,oe,me)>=0)return!1;for(var je=$.xoe.x?$.x>me.x?$.x:me.x:oe.x>me.x?oe.x:me.x,Xt=$.y>oe.y?$.y>me.y?$.y:me.y:oe.y>me.y?oe.y:me.y,xr=sM(je,xt,g,z,V),qr=sM(Dt,Xt,g,z,V),Pr=y.prevZ,ai=y.nextZ;Pr&&Pr.z>=xr&&ai&&ai.z<=qr;){if(Pr!==y.prev&&Pr!==y.next&&uy($.x,$.y,oe.x,oe.y,me.x,me.y,Pr.x,Pr.y)&&Kc(Pr.prev,Pr,Pr.next)>=0||(Pr=Pr.prevZ,ai!==y.prev&&ai!==y.next&&uy($.x,$.y,oe.x,oe.y,me.x,me.y,ai.x,ai.y)&&Kc(ai.prev,ai,ai.next)>=0))return!1;ai=ai.nextZ}for(;Pr&&Pr.z>=xr;){if(Pr!==y.prev&&Pr!==y.next&&uy($.x,$.y,oe.x,oe.y,me.x,me.y,Pr.x,Pr.y)&&Kc(Pr.prev,Pr,Pr.next)>=0)return!1;Pr=Pr.prevZ}for(;ai&&ai.z<=qr;){if(ai!==y.prev&&ai!==y.next&&uy($.x,$.y,oe.x,oe.y,me.x,me.y,ai.x,ai.y)&&Kc(ai.prev,ai,ai.next)>=0)return!1;ai=ai.nextZ}return!0}function Wx(y,g,z){var V=y;do{var $=V.prev,oe=V.next.next;!jx($,oe)&&Rw($,V,V.next,oe)&&Zx($,oe)&&Zx(oe,$)&&(g.push($.i/z),g.push(V.i/z),g.push(oe.i/z),Yx(V),Yx(V.next),V=y=oe),V=V.next}while(V!==y);return sy(V)}function p0(y,g,z,V,$,oe){var me=y;do{for(var je=me.next.next;je!==me.prev;){if(me.i!==je.i&&E1(me,je)){var xt=uM(me,je);me=sy(me,me.next),xt=sy(xt,xt.next),Hx(me,g,z,V,$,oe),Hx(xt,g,z,V,$,oe);return}je=je.next}me=me.next}while(me!==y)}function ly(y,g,z,V){var $=[],oe,me,je,xt,Dt;for(oe=0,me=g.length;oe=z.next.y&&z.next.y!==z.y){var je=z.x+($-z.y)*(z.next.x-z.x)/(z.next.y-z.y);if(je<=V&&je>oe){if(oe=je,je===V){if($===z.y)return z;if($===z.next.y)return z.next}me=z.x=z.x&&z.x>=Dt&&V!==z.x&&uy($me.x||z.x===me.x&&i9(me,z)))&&(me=z,xr=qr)),z=z.next;while(z!==xt);return me}function i9(y,g){return Kc(y.prev,y,g.prev)<0&&Kc(g.next,y,y.next)<0}function Iw(y,g,z,V){var $=y;do $.z===null&&($.z=sM($.x,$.y,g,z,V)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==y);$.prevZ.nextZ=null,$.prevZ=null,oM($)}function oM(y){var g,z,V,$,oe,me,je,xt,Dt=1;do{for(z=y,y=null,oe=null,me=0;z;){for(me++,V=z,je=0,g=0;g0||xt>0&&V;)je!==0&&(xt===0||!V||z.z<=V.z)?($=z,z=z.nextZ,je--):($=V,V=V.nextZ,xt--),oe?oe.nextZ=$:y=$,$.prevZ=oe,oe=$;z=V}oe.nextZ=null,Dt*=2}while(me>1);return y}function sM(y,g,z,V,$){return y=32767*(y-z)*$,g=32767*(g-V)*$,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,g=(g|g<<8)&16711935,g=(g|g<<4)&252645135,g=(g|g<<2)&858993459,g=(g|g<<1)&1431655765,y|g<<1}function lM(y){var g=y,z=y;do(g.x=0&&(y-me)*(V-je)-(z-me)*(g-je)>=0&&(z-me)*(oe-je)-($-me)*(V-je)>=0}function E1(y,g){return y.next.i!==g.i&&y.prev.i!==g.i&&!MC(y,g)&&(Zx(y,g)&&Zx(g,y)&&n9(y,g)&&(Kc(y.prev,y,g.prev)||Kc(y,g.prev,g))||jx(y,g)&&Kc(y.prev,y,y.next)>0&&Kc(g.prev,g,g.next)>0)}function Kc(y,g,z){return(g.y-y.y)*(z.x-g.x)-(g.x-y.x)*(z.y-g.y)}function jx(y,g){return y.x===g.x&&y.y===g.y}function Rw(y,g,z,V){var $=ug(Kc(y,g,z)),oe=ug(Kc(y,g,V)),me=ug(Kc(z,V,y)),je=ug(Kc(z,V,g));return!!($!==oe&&me!==je||$===0&&Xx(y,z,g)||oe===0&&Xx(y,V,g)||me===0&&Xx(z,y,V)||je===0&&Xx(z,g,V))}function Xx(y,g,z){return g.x<=Math.max(y.x,z.x)&&g.x>=Math.min(y.x,z.x)&&g.y<=Math.max(y.y,z.y)&&g.y>=Math.min(y.y,z.y)}function ug(y){return y>0?1:y<0?-1:0}function MC(y,g){var z=y;do{if(z.i!==y.i&&z.next.i!==y.i&&z.i!==g.i&&z.next.i!==g.i&&Rw(z,z.next,y,g))return!0;z=z.next}while(z!==y);return!1}function Zx(y,g){return Kc(y.prev,y,y.next)<0?Kc(y,g,y.next)>=0&&Kc(y,y.prev,g)>=0:Kc(y,g,y.prev)<0||Kc(y,y.next,g)<0}function n9(y,g){var z=y,V=!1,$=(y.x+g.x)/2,oe=(y.y+g.y)/2;do z.y>oe!=z.next.y>oe&&z.next.y!==z.y&&$<(z.next.x-z.x)*(oe-z.y)/(z.next.y-z.y)+z.x&&(V=!V),z=z.next;while(z!==y);return V}function uM(y,g){var z=new fM(y.i,y.x,y.y),V=new fM(g.i,g.x,g.y),$=y.next,oe=g.prev;return y.next=g,g.prev=y,z.next=$,$.prev=z,V.next=z,z.prev=V,oe.next=V,V.prev=oe,V}function EC(y,g,z,V){var $=new fM(y,g,z);return V?($.next=V.next,$.prev=V,V.next.prev=$,V.next=$):($.prev=$,$.next=$),$}function Yx(y){y.next.prev=y.prev,y.prev.next=y.next,y.prevZ&&(y.prevZ.nextZ=y.nextZ),y.nextZ&&(y.nextZ.prevZ=y.prevZ)}function fM(y,g,z){this.i=y,this.x=g,this.y=z,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}M1.deviation=function(y,g,z,V){var $=g&&g.length,oe=$?g[0]*z:y.length,me=Math.abs(cM(y,0,oe,z));if($)for(var je=0,xt=g.length;je0&&(V+=y[$-1].length,z.holes.push(V))}return z},Pw.default=wC;function hM(y,g,z,V,$){pm(y,g,z||0,V||y.length-1,$||kC)}function pm(y,g,z,V,$){for(;V>z;){if(V-z>600){var oe=V-z+1,me=g-z+1,je=Math.log(oe),xt=.5*Math.exp(2*je/3),Dt=.5*Math.sqrt(je*xt*(oe-xt)/oe)*(me-oe/2<0?-1:1),Xt=Math.max(z,Math.floor(g-me*xt/oe+Dt)),xr=Math.min(V,Math.floor(g+(oe-me)*xt/oe+Dt));pm(y,g,Xt,xr,$)}var qr=y[g],Pr=z,ai=V;for(k1(y,z,g),$(y[V],qr)>0&&k1(y,z,V);Pr0;)ai--}$(y[z],qr)===0?k1(y,z,ai):(ai++,k1(y,ai,V)),ai<=g&&(z=ai+1),g<=ai&&(V=ai-1)}}function k1(y,g,z){var V=y[g];y[g]=y[z],y[z]=V}function kC(y,g){return yg?1:0}function Dw(y,g){var z=y.length;if(z<=1)return[y];for(var V=[],$,oe,me=0;me1)for(var xt=0;xt>3}if(V--,z===1||z===2)$+=y.readSVarint(),oe+=y.readSVarint(),z===1&&(je&&me.push(je),je=[]),je.push(new l($,oe));else if(z===7)je&&je.push(je[0].clone());else throw new Error("unknown command "+z)}return je&&me.push(je),me},fg.prototype.bbox=function(){var y=this._pbf;y.pos=this._geometry;for(var g=y.readVarint()+y.pos,z=1,V=0,$=0,oe=0,me=1/0,je=-1/0,xt=1/0,Dt=-1/0;y.pos>3}if(V--,z===1||z===2)$+=y.readSVarint(),oe+=y.readSVarint(),$je&&(je=$),oeDt&&(Dt=oe);else if(z!==7)throw new Error("unknown command "+z)}return[me,xt,je,Dt]},fg.prototype.toGeoJSON=function(y,g,z){var V=this.extent*Math.pow(2,z),$=this.extent*y,oe=this.extent*g,me=this.loadGeometry(),je=fg.types[this.type],xt,Dt;function Xt(Pr){for(var ai=0;ai>3;g=V===1?y.readString():V===2?y.readFloat():V===3?y.readDouble():V===4?y.readVarint64():V===5?y.readVarint():V===6?y.readSVarint():V===7?y.readBoolean():null}return g}vM.prototype.feature=function(y){if(y<0||y>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[y];var g=this._pbf.readVarint()+this._pbf.pos;return new pM(this._pbf,g,this.extent,this._keys,this._values)};var OC=o9;function o9(y,g){this.layers=y.readFields(s9,{},g)}function s9(y,g,z){if(y===3){var V=new vm(z,z.readVarint()+z.pos);V.length&&(g[V.name]=V)}}var qC=OC,C1=pM,NC=vm,mm={VectorTile:qC,VectorTileFeature:C1,VectorTileLayer:NC},UC=mm.VectorTileFeature.types,Bw=500,L1=Math.pow(2,13);function fy(y,g,z,V,$,oe,me,je){y.emplaceBack(g,z,Math.floor(V*L1)*2+me,$*L1*2,oe*L1*2,Math.round(je))}var Vv=function(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=g.index,this.hasPattern=!1,this.layoutVertexArray=new En,this.indexArray=new Va,this.programConfigurations=new Ki(g.layers,g.zoom),this.segments=new cu,this.stateDependentLayerIds=this.layers.filter(function(z){return z.isStateDependent()}).map(function(z){return z.id})};Vv.prototype.populate=function(g,z,V){this.features=[],this.hasPattern=Fw("fill-extrusion",this.layers,z);for(var $=0,oe=g;$=1){var _o=Wn[bo-1];if(!l9(ba,_o)){Pr.vertexLength+4>cu.MAX_VERTEX_ARRAY_LENGTH&&(Pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Uo=ba.sub(_o)._perp()._unit(),Zs=_o.dist(ba);bn+Zs>32768&&(bn=0),fy(this.layoutVertexArray,ba.x,ba.y,Uo.x,Uo.y,0,0,bn),fy(this.layoutVertexArray,ba.x,ba.y,Uo.x,Uo.y,0,1,bn),bn+=Zs,fy(this.layoutVertexArray,_o.x,_o.y,Uo.x,Uo.y,0,0,bn),fy(this.layoutVertexArray,_o.x,_o.y,Uo.x,Uo.y,0,1,bn);var Cl=Pr.vertexLength;this.indexArray.emplaceBack(Cl,Cl+2,Cl+1),this.indexArray.emplaceBack(Cl+1,Cl+2,Cl+3),Pr.vertexLength+=4,Pr.primitiveLength+=2}}}}if(Pr.vertexLength+Dt>cu.MAX_VERTEX_ARRAY_LENGTH&&(Pr=this.segments.prepareSegment(Dt,this.layoutVertexArray,this.indexArray)),UC[g.type]==="Polygon"){for(var Tl=[],hu=[],Kl=Pr.vertexLength,lu=0,Bu=xt;luTn)||y.y===g.y&&(y.y<0||y.y>Tn)}function u9(y){return y.every(function(g){return g.x<0})||y.every(function(g){return g.x>Tn})||y.every(function(g){return g.y<0})||y.every(function(g){return g.y>Tn})}var P1=new fi({"fill-extrusion-opacity":new Be(ji["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new qt(ji["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Be(ji["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Be(ji["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new ar(ji["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new qt(ji["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new qt(ji["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Be(ji["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),ld={paint:P1},cy=function(y){function g(z){y.call(this,z,ld)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.createBucket=function(V){return new Vv(V)},g.prototype.queryRadius=function(){return Lp(this.paint.get("fill-extrusion-translate"))},g.prototype.is3D=function(){return!0},g.prototype.queryIntersectsFeature=function(V,$,oe,me,je,xt,Dt,Xt){var xr=Jp(V,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),xt.angle,Dt),qr=this.paint.get("fill-extrusion-height").evaluate($,oe),Pr=this.paint.get("fill-extrusion-base").evaluate($,oe),ai=f9(xr,Xt,xt,0),qi=yM(me,Pr,qr,Xt),Wn=qi[0],bn=qi[1];return VC(Wn,bn,ai)},g}(on);function cg(y,g){return y.x*g.x+y.y*g.y}function mM(y,g){if(y.length===1){for(var z=0,V=g[z++],$;!$||V.equals($);)if($=g[z++],!$)return 1/0;for(;z=2&&g[Dt-1].equals(g[Dt-2]);)Dt--;for(var Xt=0;Xt0;if(Tl&&bo>Xt){var Kl=Pr.dist(ai);if(Kl>2*xr){var lu=Pr.sub(Pr.sub(ai)._mult(xr/Kl)._round());this.updateDistance(ai,lu),this.addCurrentVertex(lu,Wn,0,0,qr),ai=lu}}var Bu=ai&&qi,du=Bu?V:xt?"butt":$;if(Bu&&du==="round"&&(Zsoe&&(du="bevel"),du==="bevel"&&(Zs>2&&(du="flipbevel"),Zs100)ba=bn.mult(-1);else{var gu=Zs*Wn.add(bn).mag()/Wn.sub(bn).mag();ba._perp()._mult(gu*(hu?-1:1))}this.addCurrentVertex(Pr,ba,0,0,qr),this.addCurrentVertex(Pr,ba.mult(-1),0,0,qr)}else if(du==="bevel"||du==="fakeround"){var ff=-Math.sqrt(Zs*Zs-1),Ru=hu?ff:0,Rf=hu?0:ff;if(ai&&this.addCurrentVertex(Pr,Wn,Ru,Rf,qr),du==="fakeround")for(var sc=Math.round(Cl*180/Math.PI/_M),Df=1;Df2*xr){var _h=Pr.add(qi.sub(Pr)._mult(xr/Kh)._round());this.updateDistance(Pr,_h),this.addCurrentVertex(_h,bn,0,0,qr),Pr=_h}}}}},mh.prototype.addCurrentVertex=function(g,z,V,$,oe,me){me===void 0&&(me=!1);var je=z.x+z.y*V,xt=z.y-z.x*V,Dt=-z.x+z.y*$,Xt=-z.y-z.x*$;this.addHalfVertex(g,je,xt,me,!1,V,oe),this.addHalfVertex(g,Dt,Xt,me,!0,-$,oe),this.distance>eb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(g,z,V,$,oe,me))},mh.prototype.addHalfVertex=function(g,z,V,$,oe,me,je){var xt=g.x,Dt=g.y,Xt=this.lineClips?this.scaledDistance*(eb-1):this.scaledDistance,xr=Xt*qw;if(this.layoutVertexArray.emplaceBack((xt<<1)+($?1:0),(Dt<<1)+(oe?1:0),Math.round(Ow*z)+128,Math.round(Ow*V)+128,(me===0?0:me<0?-1:1)+1|(xr&63)<<2,xr>>6),this.lineClips){var qr=this.scaledDistance-this.lineClips.start,Pr=this.lineClips.end-this.lineClips.start,ai=qr/Pr;this.layoutVertexArray2.emplaceBack(ai,this.lineClipsArray.length)}var qi=je.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,qi),je.primitiveLength++),oe?this.e2=qi:this.e1=qi},mh.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},mh.prototype.updateDistance=function(g,z){this.distance+=g.dist(z),this.updateScaledDistance()},Z("LineBucket",mh,{omit:["layers","patternFeatures"]});var xM=new fi({"line-cap":new Be(ji.layout_line["line-cap"]),"line-join":new qt(ji.layout_line["line-join"]),"line-miter-limit":new Be(ji.layout_line["line-miter-limit"]),"line-round-limit":new Be(ji.layout_line["line-round-limit"]),"line-sort-key":new qt(ji.layout_line["line-sort-key"])}),bM=new fi({"line-opacity":new qt(ji.paint_line["line-opacity"]),"line-color":new qt(ji.paint_line["line-color"]),"line-translate":new Be(ji.paint_line["line-translate"]),"line-translate-anchor":new Be(ji.paint_line["line-translate-anchor"]),"line-width":new qt(ji.paint_line["line-width"]),"line-gap-width":new qt(ji.paint_line["line-gap-width"]),"line-offset":new qt(ji.paint_line["line-offset"]),"line-blur":new qt(ji.paint_line["line-blur"]),"line-dasharray":new Qr(ji.paint_line["line-dasharray"]),"line-pattern":new ar(ji.paint_line["line-pattern"]),"line-gradient":new mi(ji.paint_line["line-gradient"])}),Nw={paint:bM,layout:xM},h9=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.possiblyEvaluate=function(V,$){return $=new ds(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),y.prototype.possiblyEvaluate.call(this,V,$)},g.prototype.evaluate=function(V,$,oe,me){return $=x({},$,{zoom:Math.floor($.zoom)}),y.prototype.evaluate.call(this,V,$,oe,me)},g}(qt),I=new h9(Nw.paint.properties["line-width"].specification);I.useIntegerZoom=!0;var S=function(y){function g(z){y.call(this,z,Nw),this.gradientVersion=0}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._handleSpecialPaintPropertyUpdate=function(V){if(V==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof Do,this.gradientVersion=(this.gradientVersion+1)%d}},g.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},g.prototype.recalculate=function(V,$){y.prototype.recalculate.call(this,V,$),this.paint._values["line-floorwidth"]=I.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,V)},g.prototype.createBucket=function(V){return new mh(V)},g.prototype.queryRadius=function(V){var $=V,oe=D(Md("line-width",this,$),Md("line-gap-width",this,$)),me=Md("line-offset",this,$);return oe/2+Math.abs(me)+Lp(this.paint.get("line-translate"))},g.prototype.queryIntersectsFeature=function(V,$,oe,me,je,xt,Dt){var Xt=Jp(V,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),xt.angle,Dt),xr=Dt/2*D(this.paint.get("line-width").evaluate($,oe),this.paint.get("line-gap-width").evaluate($,oe)),qr=this.paint.get("line-offset").evaluate($,oe);return qr&&(me=X(me,qr*Dt)),Vf(Xt,me,xr)},g.prototype.isTileClipped=function(){return!0},g}(on);function D(y,g){return g>0?g+2*y:y}function X(y,g){for(var z=[],V=new l(0,0),$=0;$":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function La(y){for(var g="",z=0;z>1,Xt=-7,xr=z?$-1:0,qr=z?-1:1,Pr=y[g+xr];for(xr+=qr,oe=Pr&(1<<-Xt)-1,Pr>>=-Xt,Xt+=je;Xt>0;oe=oe*256+y[g+xr],xr+=qr,Xt-=8);for(me=oe&(1<<-Xt)-1,oe>>=-Xt,Xt+=V;Xt>0;me=me*256+y[g+xr],xr+=qr,Xt-=8);if(oe===0)oe=1-Dt;else{if(oe===xt)return me?NaN:(Pr?-1:1)*(1/0);me=me+Math.pow(2,V),oe=oe-Dt}return(Pr?-1:1)*me*Math.pow(2,oe-V)},mu=function(y,g,z,V,$,oe){var me,je,xt,Dt=oe*8-$-1,Xt=(1<>1,qr=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,Pr=V?0:oe-1,ai=V?1:-1,qi=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(je=isNaN(g)?1:0,me=Xt):(me=Math.floor(Math.log(g)/Math.LN2),g*(xt=Math.pow(2,-me))<1&&(me--,xt*=2),me+xr>=1?g+=qr/xt:g+=qr*Math.pow(2,1-xr),g*xt>=2&&(me++,xt/=2),me+xr>=Xt?(je=0,me=Xt):me+xr>=1?(je=(g*xt-1)*Math.pow(2,$),me=me+xr):(je=g*Math.pow(2,xr-1)*Math.pow(2,$),me=0));$>=8;y[z+Pr]=je&255,Pr+=ai,je/=256,$-=8);for(me=me<<$|je,Dt+=$;Dt>0;y[z+Pr]=me&255,Pr+=ai,me/=256,Dt-=8);y[z+Pr-ai]|=qi*128},Iu={read:kl,write:mu},su=yl;function yl(y){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(y)?y:new Uint8Array(y||0),this.pos=0,this.type=0,this.length=this.buf.length}yl.Varint=0,yl.Fixed64=1,yl.Bytes=2,yl.Fixed32=5;var Eu=65536*65536,bu=1/Eu,_u=12,Xs=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");yl.prototype={destroy:function(){this.buf=null},readFields:function(y,g,z){for(z=z||this.length;this.pos>3,oe=this.pos;this.type=V&7,y($,g,this),this.pos===oe&&this.skip(V)}return g},readMessage:function(y,g){return this.readFields(y,g,this.readVarint()+this.pos)},readFixed32:function(){var y=Xh(this.buf,this.pos);return this.pos+=4,y},readSFixed32:function(){var y=Rp(this.buf,this.pos);return this.pos+=4,y},readFixed64:function(){var y=Xh(this.buf,this.pos)+Xh(this.buf,this.pos+4)*Eu;return this.pos+=8,y},readSFixed64:function(){var y=Xh(this.buf,this.pos)+Rp(this.buf,this.pos+4)*Eu;return this.pos+=8,y},readFloat:function(){var y=Iu.read(this.buf,this.pos,!0,23,4);return this.pos+=4,y},readDouble:function(){var y=Iu.read(this.buf,this.pos,!0,52,8);return this.pos+=8,y},readVarint:function(y){var g=this.buf,z,V;return V=g[this.pos++],z=V&127,V<128||(V=g[this.pos++],z|=(V&127)<<7,V<128)||(V=g[this.pos++],z|=(V&127)<<14,V<128)||(V=g[this.pos++],z|=(V&127)<<21,V<128)?z:(V=g[this.pos],z|=(V&15)<<28,Lu(z,y,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var y=this.readVarint();return y%2===1?(y+1)/-2:y/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var y=this.readVarint()+this.pos,g=this.pos;return this.pos=y,y-g>=_u&&Xs?jf(this.buf,g,y):fp(this.buf,g,y)},readBytes:function(){var y=this.readVarint()+this.pos,g=this.buf.subarray(this.pos,y);return this.pos=y,g},readPackedVarint:function(y,g){if(this.type!==yl.Bytes)return y.push(this.readVarint(g));var z=xu(this);for(y=y||[];this.pos127;);else if(g===yl.Bytes)this.pos=this.readVarint()+this.pos;else if(g===yl.Fixed32)this.pos+=4;else if(g===yl.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+g)},writeTag:function(y,g){this.writeVarint(y<<3|g)},realloc:function(y){for(var g=this.length||16;g268435455||y<0){vc(y,this);return}this.realloc(4),this.buf[this.pos++]=y&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=(y>>>=7)&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=(y>>>=7)&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=y>>>7&127)))},writeSVarint:function(y){this.writeVarint(y<0?-y*2-1:y*2)},writeBoolean:function(y){this.writeVarint(!!y)},writeString:function(y){y=String(y),this.realloc(y.length*4),this.pos++;var g=this.pos;this.pos=Ac(this.buf,y,this.pos);var z=this.pos-g;z>=128&&Qp(g,z,this),this.pos=g-1,this.writeVarint(z),this.pos+=z},writeFloat:function(y){this.realloc(4),Iu.write(this.buf,y,this.pos,!0,23,4),this.pos+=4},writeDouble:function(y){this.realloc(8),Iu.write(this.buf,y,this.pos,!0,52,8),this.pos+=8},writeBytes:function(y){var g=y.length;this.writeVarint(g),this.realloc(g);for(var z=0;z=128&&Qp(z,V,this),this.pos=z-1,this.writeVarint(V),this.pos+=V},writeMessage:function(y,g,z){this.writeTag(y,yl.Bytes),this.writeRawMessage(g,z)},writePackedVarint:function(y,g){g.length&&this.writeMessage(y,ud,g)},writePackedSVarint:function(y,g){g.length&&this.writeMessage(y,Ph,g)},writePackedBoolean:function(y,g){g.length&&this.writeMessage(y,Xd,g)},writePackedFloat:function(y,g){g.length&&this.writeMessage(y,Wd,g)},writePackedDouble:function(y,g){g.length&&this.writeMessage(y,jd,g)},writePackedFixed32:function(y,g){g.length&&this.writeMessage(y,Jc,g)},writePackedSFixed32:function(y,g){g.length&&this.writeMessage(y,zh,g)},writePackedFixed64:function(y,g){g.length&&this.writeMessage(y,Cd,g)},writePackedSFixed64:function(y,g){g.length&&this.writeMessage(y,fd,g)},writeBytesField:function(y,g){this.writeTag(y,yl.Bytes),this.writeBytes(g)},writeFixed32Field:function(y,g){this.writeTag(y,yl.Fixed32),this.writeFixed32(g)},writeSFixed32Field:function(y,g){this.writeTag(y,yl.Fixed32),this.writeSFixed32(g)},writeFixed64Field:function(y,g){this.writeTag(y,yl.Fixed64),this.writeFixed64(g)},writeSFixed64Field:function(y,g){this.writeTag(y,yl.Fixed64),this.writeSFixed64(g)},writeVarintField:function(y,g){this.writeTag(y,yl.Varint),this.writeVarint(g)},writeSVarintField:function(y,g){this.writeTag(y,yl.Varint),this.writeSVarint(g)},writeStringField:function(y,g){this.writeTag(y,yl.Bytes),this.writeString(g)},writeFloatField:function(y,g){this.writeTag(y,yl.Fixed32),this.writeFloat(g)},writeDoubleField:function(y,g){this.writeTag(y,yl.Fixed64),this.writeDouble(g)},writeBooleanField:function(y,g){this.writeVarintField(y,!!g)}};function Lu(y,g,z){var V=z.buf,$,oe;if(oe=V[z.pos++],$=(oe&112)>>4,oe<128||(oe=V[z.pos++],$|=(oe&127)<<3,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<10,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<17,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<24,oe<128)||(oe=V[z.pos++],$|=(oe&1)<<31,oe<128))return qu(y,$,g);throw new Error("Expected varint not more than 10 bytes")}function xu(y){return y.type===yl.Bytes?y.readVarint()+y.pos:y.pos+1}function qu(y,g,z){return z?g*4294967296+(y>>>0):(g>>>0)*4294967296+(y>>>0)}function vc(y,g){var z,V;if(y>=0?(z=y%4294967296|0,V=y/4294967296|0):(z=~(-y%4294967296),V=~(-y/4294967296),z^4294967295?z=z+1|0:(z=0,V=V+1|0)),y>=18446744073709552e3||y<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");g.realloc(10),cc(z,V,g),Lh(V,g)}function cc(y,g,z){z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos]=y&127}function Lh(y,g){var z=(y&7)<<4;g.buf[g.pos++]|=z|((y>>>=3)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127)))))}function Qp(y,g,z){var V=g<=16383?1:g<=2097151?2:g<=268435455?3:Math.floor(Math.log(g)/(Math.LN2*7));z.realloc(V);for(var $=z.pos-1;$>=y;$--)z.buf[$+V]=z.buf[$]}function ud(y,g){for(var z=0;z>>8,y[z+2]=g>>>16,y[z+3]=g>>>24}function Rp(y,g){return(y[g]|y[g+1]<<8|y[g+2]<<16)+(y[g+3]<<24)}function fp(y,g,z){for(var V="",$=g;$239?4:oe>223?3:oe>191?2:1;if($+je>z)break;var xt,Dt,Xt;je===1?oe<128&&(me=oe):je===2?(xt=y[$+1],(xt&192)===128&&(me=(oe&31)<<6|xt&63,me<=127&&(me=null))):je===3?(xt=y[$+1],Dt=y[$+2],(xt&192)===128&&(Dt&192)===128&&(me=(oe&15)<<12|(xt&63)<<6|Dt&63,(me<=2047||me>=55296&&me<=57343)&&(me=null))):je===4&&(xt=y[$+1],Dt=y[$+2],Xt=y[$+3],(xt&192)===128&&(Dt&192)===128&&(Xt&192)===128&&(me=(oe&15)<<18|(xt&63)<<12|(Dt&63)<<6|Xt&63,(me<=65535||me>=1114112)&&(me=null))),me===null?(me=65533,je=1):me>65535&&(me-=65536,V+=String.fromCharCode(me>>>10&1023|55296),me=56320|me&1023),V+=String.fromCharCode(me),$+=je}return V}function jf(y,g,z){return Xs.decode(y.subarray(g,z))}function Ac(y,g,z){for(var V=0,$,oe;V55295&&$<57344)if(oe)if($<56320){y[z++]=239,y[z++]=191,y[z++]=189,oe=$;continue}else $=oe-55296<<10|$-56320|65536,oe=null;else{$>56319||V+1===g.length?(y[z++]=239,y[z++]=191,y[z++]=189):oe=$;continue}else oe&&(y[z++]=239,y[z++]=191,y[z++]=189,oe=null);$<128?y[z++]=$:($<2048?y[z++]=$>>6|192:($<65536?y[z++]=$>>12|224:(y[z++]=$>>18|240,y[z++]=$>>12&63|128),y[z++]=$>>6&63|128),y[z++]=$&63|128)}return z}var mc=3;function Dp(y,g,z){y===1&&z.readMessage(Hc,g)}function Hc(y,g,z){if(y===3){var V=z.readMessage(z1,{}),$=V.id,oe=V.bitmap,me=V.width,je=V.height,xt=V.left,Dt=V.top,Xt=V.advance;g.push({id:$,bitmap:new Ip({width:me+2*mc,height:je+2*mc},oe),metrics:{width:me,height:je,left:xt,top:Dt,advance:Xt}})}}function z1(y,g,z){y===1?g.id=z.readVarint():y===2?g.bitmap=z.readBytes():y===3?g.width=z.readVarint():y===4?g.height=z.readVarint():y===5?g.left=z.readSVarint():y===6?g.top=z.readSVarint():y===7&&(g.advance=z.readVarint())}function v0(y){return new su(y).readFields(Dp,[])}var Gv=mc;function ev(y){for(var g=0,z=0,V=0,$=y;V<$.length;V+=1){var oe=$[V];g+=oe.w*oe.h,z=Math.max(z,oe.w)}y.sort(function(Wn,bn){return bn.h-Wn.h});for(var me=Math.max(Math.ceil(Math.sqrt(g/.95)),z),je=[{x:0,y:0,w:me,h:1/0}],xt=0,Dt=0,Xt=0,xr=y;Xt=0;Pr--){var ai=je[Pr];if(!(qr.w>ai.w||qr.h>ai.h)){if(qr.x=ai.x,qr.y=ai.y,Dt=Math.max(Dt,qr.y+qr.h),xt=Math.max(xt,qr.x+qr.w),qr.w===ai.w&&qr.h===ai.h){var qi=je.pop();Pr=0&&$>=g&&y0[this.text.charCodeAt($)];$--)V--;this.text=this.text.substring(g,V),this.sectionIndex=this.sectionIndex.slice(g,V)},Zh.prototype.substring=function(g,z){var V=new Zh;return V.text=this.text.substring(g,z),V.sectionIndex=this.sectionIndex.slice(g,z),V.sections=this.sections,V},Zh.prototype.toString=function(){return this.text},Zh.prototype.getMaxScale=function(){var g=this;return this.sectionIndex.reduce(function(z,V){return Math.max(z,g.sections[V].scale)},0)},Zh.prototype.addTextSection=function(g,z){this.text+=g.text,this.sections.push(hg.forText(g.scale,g.fontStack||z));for(var V=this.sections.length-1,$=0;$=m0?null:++this.imageSectionID:(this.imageSectionID=Uw,this.imageSectionID)};function d9(y,g){for(var z=[],V=y.text,$=0,oe=0,me=g;oe=0,Xt=0,xr=0;xr0&&_h>hu&&(hu=_h)}else{var Ff=z[lu.fontStack],zf=Ff&&Ff[du];if(zf&&zf.rect)Ru=zf.rect,ff=zf.metrics;else{var yc=g[lu.fontStack],Tc=yc&&yc[du];if(!Tc)continue;ff=Tc.metrics}gu=(Uo-lu.scale)*So}Df?(y.verticalizable=!0,Tl.push({glyph:du,imageName:Rf,x:qr,y:Pr+gu,vertical:Df,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Bu,metrics:ff,rect:Ru}),qr+=sc*lu.scale+Dt):(Tl.push({glyph:du,imageName:Rf,x:qr,y:Pr+gu,vertical:Df,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Bu,metrics:ff,rect:Ru}),qr+=ff.advance*lu.scale+Dt)}if(Tl.length!==0){var Yd=qr-Dt;ai=Math.max(Yd,ai),y9(Tl,0,Tl.length-1,Wn,hu)}qr=0;var Kd=oe*Uo+hu;Cl.lineOffset=Math.max(hu,Zs),Pr+=Kd,qi=Math.max(Kd,qi),++bn}var Jh=Pr-I1,dp=AM(me),pp=dp.horizontalAlign,Ih=dp.verticalAlign;Ld(y.positionedLines,Wn,pp,Ih,ai,qi,oe,Jh,$.length),y.top+=-Ih*Jh,y.bottom=y.top+Jh,y.left+=-pp*ai,y.right=y.left+ai}function y9(y,g,z,V,$){if(!(!V&&!$))for(var oe=y[z],me=oe.metrics.advance*oe.scale,je=(y[z].x+me)*V,xt=g;xt<=z;xt++)y[xt].x-=je,y[xt].y+=$}function Ld(y,g,z,V,$,oe,me,je,xt){var Dt=(g-z)*$,Xt=0;oe!==me?Xt=-je*V-I1:Xt=(-V*xt+.5)*me;for(var xr=0,qr=y;xr-z/2;){if(me--,me<0)return!1;je-=y[me].dist(oe),oe=y[me]}je+=y[me].dist(y[me+1]),me++;for(var xt=[],Dt=0;jeV;)Dt-=xt.shift().angleDelta;if(Dt>$)return!1;me++,je+=xr.dist(qr)}return!0}function HQ(y){for(var g=0,z=0;zDt){var ai=(Dt-xt)/Pr,qi=Lo(xr.x,qr.x,ai),Wn=Lo(xr.y,qr.y,ai),bn=new Zd(qi,Wn,qr.angleTo(xr),Xt);return bn._round(),!me||GQ(y,bn,je,me,g)?bn:void 0}xt+=Pr}}function Wet(y,g,z,V,$,oe,me,je,xt){var Dt=WQ(V,oe,me),Xt=jQ(V,$),xr=Xt*me,qr=y[0].x===0||y[0].x===xt||y[0].y===0||y[0].y===xt;g-xr=0&&_o=0&&Uo=0&&qr+Dt<=Xt){var Zs=new Zd(_o,Uo,bo,ai);Zs._round(),(!V||GQ(y,Zs,oe,V,$))&&Pr.push(Zs)}}xr+=bn}return!je&&!Pr.length&&!me&&(Pr=XQ(y,xr/2,z,V,$,oe,me,!0,xt)),Pr}function ZQ(y,g,z,V,$){for(var oe=[],me=0;me=V&&xr.x>=V)&&(Xt.x>=V?Xt=new l(V,Xt.y+(xr.y-Xt.y)*((V-Xt.x)/(xr.x-Xt.x)))._round():xr.x>=V&&(xr=new l(V,Xt.y+(xr.y-Xt.y)*((V-Xt.x)/(xr.x-Xt.x)))._round()),!(Xt.y>=$&&xr.y>=$)&&(Xt.y>=$?Xt=new l(Xt.x+(xr.x-Xt.x)*(($-Xt.y)/(xr.y-Xt.y)),$)._round():xr.y>=$&&(xr=new l(Xt.x+(xr.x-Xt.x)*(($-Xt.y)/(xr.y-Xt.y)),$)._round()),(!xt||!Xt.equals(xt[xt.length-1]))&&(xt=[Xt],oe.push(xt)),xt.push(xr)))))}return oe}var Hw=Rc;function YQ(y,g,z,V){var $=[],oe=y.image,me=oe.pixelRatio,je=oe.paddedRect.w-2*Hw,xt=oe.paddedRect.h-2*Hw,Dt=y.right-y.left,Xt=y.bottom-y.top,xr=oe.stretchX||[[0,je]],qr=oe.stretchY||[[0,xt]],Pr=function(Ff,zf){return Ff+zf[1]-zf[0]},ai=xr.reduce(Pr,0),qi=qr.reduce(Pr,0),Wn=je-ai,bn=xt-qi,bo=0,ba=ai,_o=0,Uo=qi,Zs=0,Cl=Wn,Tl=0,hu=bn;if(oe.content&&V){var Kl=oe.content;bo=KC(xr,0,Kl[0]),_o=KC(qr,0,Kl[1]),ba=KC(xr,Kl[0],Kl[2]),Uo=KC(qr,Kl[1],Kl[3]),Zs=Kl[0]-bo,Tl=Kl[1]-_o,Cl=Kl[2]-Kl[0]-ba,hu=Kl[3]-Kl[1]-Uo}var lu=function(Ff,zf,yc,Tc){var $c=JC(Ff.stretch-bo,ba,Dt,y.left),ih=$C(Ff.fixed-Zs,Cl,Ff.stretch,ai),Kh=JC(zf.stretch-_o,Uo,Xt,y.top),_h=$C(zf.fixed-Tl,hu,zf.stretch,qi),Yd=JC(yc.stretch-bo,ba,Dt,y.left),Kd=$C(yc.fixed-Zs,Cl,yc.stretch,ai),Jh=JC(Tc.stretch-_o,Uo,Xt,y.top),dp=$C(Tc.fixed-Tl,hu,Tc.stretch,qi),pp=new l($c,Kh),Ih=new l(Yd,Kh),vp=new l(Yd,Jh),_v=new l($c,Jh),vg=new l(ih/me,_h/me),F1=new l(Kd/me,dp/me),B1=g*Math.PI/180;if(B1){var O1=Math.sin(B1),$w=Math.cos(B1),g0=[$w,-O1,O1,$w];pp._matMult(g0),Ih._matMult(g0),_v._matMult(g0),vp._matMult(g0)}var nL=Ff.stretch+Ff.fixed,S9=yc.stretch+yc.fixed,aL=zf.stretch+zf.fixed,M9=Tc.stretch+Tc.fixed,Hv={x:oe.paddedRect.x+Hw+nL,y:oe.paddedRect.y+Hw+aL,w:S9-nL,h:M9-aL},Qw=Cl/me/Dt,oL=hu/me/Xt;return{tl:pp,tr:Ih,bl:_v,br:vp,tex:Hv,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:vg,pixelOffsetBR:F1,minFontScaleX:Qw,minFontScaleY:oL,isSDF:z}};if(!V||!oe.stretchX&&!oe.stretchY)$.push(lu({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:je+1},{fixed:0,stretch:xt+1}));else for(var Bu=KQ(xr,Wn,ai),du=KQ(qr,bn,qi),gu=0;gu0&&(ai=Math.max(10,ai),this.circleDiameter=ai)}else{var qi=me.top*je-xt,Wn=me.bottom*je+xt,bn=me.left*je-xt,bo=me.right*je+xt,ba=me.collisionPadding;if(ba&&(bn-=ba[0]*je,qi-=ba[1]*je,bo+=ba[2]*je,Wn+=ba[3]*je),Xt){var _o=new l(bn,qi),Uo=new l(bo,qi),Zs=new l(bn,Wn),Cl=new l(bo,Wn),Tl=Xt*Math.PI/180;_o._rotate(Tl),Uo._rotate(Tl),Zs._rotate(Tl),Cl._rotate(Tl),bn=Math.min(_o.x,Uo.x,Zs.x,Cl.x),bo=Math.max(_o.x,Uo.x,Zs.x,Cl.x),qi=Math.min(_o.y,Uo.y,Zs.y,Cl.y),Wn=Math.max(_o.y,Uo.y,Zs.y,Cl.y)}g.emplaceBack(z.x,z.y,bn,qi,bo,Wn,V,$,oe)}this.boxEndIndex=g.length},Ww=function(g,z){if(g===void 0&&(g=[]),z===void 0&&(z=Xet),this.data=g,this.length=this.data.length,this.compare=z,this.length>0)for(var V=(this.length>>1)-1;V>=0;V--)this._down(V)};Ww.prototype.push=function(g){this.data.push(g),this.length++,this._up(this.length-1)},Ww.prototype.pop=function(){if(this.length!==0){var g=this.data[0],z=this.data.pop();return this.length--,this.length>0&&(this.data[0]=z,this._down(0)),g}},Ww.prototype.peek=function(){return this.data[0]},Ww.prototype._up=function(g){for(var z=this,V=z.data,$=z.compare,oe=V[g];g>0;){var me=g-1>>1,je=V[me];if($(oe,je)>=0)break;V[g]=je,g=me}V[g]=oe},Ww.prototype._down=function(g){for(var z=this,V=z.data,$=z.compare,oe=this.length>>1,me=V[g];g=0)break;V[g]=xt,g=je}V[g]=me};function Xet(y,g){return yg?1:0}function Zet(y,g,z){g===void 0&&(g=1),z===void 0&&(z=!1);for(var V=1/0,$=1/0,oe=-1/0,me=-1/0,je=y[0],xt=0;xtoe)&&(oe=Dt.x),(!xt||Dt.y>me)&&(me=Dt.y)}var Xt=oe-V,xr=me-$,qr=Math.min(Xt,xr),Pr=qr/2,ai=new Ww([],Yet);if(qr===0)return new l(V,$);for(var qi=V;qibn.d||!bn.d)&&(bn=ba,z&&console.log("found best %d after %d probes",Math.round(1e4*ba.d)/1e4,bo)),!(ba.max-bn.d<=g)&&(Pr=ba.h/2,ai.push(new jw(ba.p.x-Pr,ba.p.y-Pr,Pr,y)),ai.push(new jw(ba.p.x+Pr,ba.p.y-Pr,Pr,y)),ai.push(new jw(ba.p.x-Pr,ba.p.y+Pr,Pr,y)),ai.push(new jw(ba.p.x+Pr,ba.p.y+Pr,Pr,y)),bo+=4)}return z&&(console.log("num probes: "+bo),console.log("best distance: "+bn.d)),bn.p}function Yet(y,g){return g.max-y.max}function jw(y,g,z,V){this.p=new l(y,g),this.h=z,this.d=Ket(this.p,V),this.max=this.d+this.h*Math.SQRT2}function Ket(y,g){for(var z=!1,V=1/0,$=0;$y.y!=Xt.y>y.y&&y.x<(Xt.x-Dt.x)*(y.y-Dt.y)/(Xt.y-Dt.y)+Dt.x&&(z=!z),V=Math.min(V,cm(y,Dt,Xt))}return(z?1:-1)*Math.sqrt(V)}function Jet(y){for(var g=0,z=0,V=0,$=y[0],oe=0,me=$.length,je=me-1;oe=Tn||g0.y<0||g0.y>=Tn||ett(y,g0,$w,z,V,$,du,y.layers[0],y.collisionBoxArray,g.index,g.sourceLayerIndex,y.index,bn,Uo,Tl,xt,ba,Zs,hu,Pr,g,oe,Dt,Xt,me)};if(Kl==="line")for(var ff=0,Ru=ZQ(g.geometry,0,0,Tn,Tn);ff1){var Kh=Het(ih,Cl,z.vertical||ai,V,qi,bo);Kh&&gu(ih,Kh)}}else if(g.type==="Polygon")for(var _h=0,Yd=Dw(g.geometry,0);_hR1&&re(y.layerIds[0]+': Value for "text-size" is >= '+TM+'. Reduce your "text-size".')):Wn.kind==="composite"&&(bn=[Pd*Pr.compositeTextSizes[0].evaluate(me,{},ai),Pd*Pr.compositeTextSizes[1].evaluate(me,{},ai)],(bn[0]>R1||bn[1]>R1)&&re(y.layerIds[0]+': Value for "text-size" is >= '+TM+'. Reduce your "text-size".')),y.addSymbols(y.text,qi,bn,je,oe,me,Dt,g,xt.lineStartIndex,xt.lineLength,qr,ai);for(var bo=0,ba=Xt;boR1&&re(y.layerIds[0]+': Value for "icon-size" is >= '+TM+'. Reduce your "icon-size".')):pp.kind==="composite"&&(Ih=[Pd*Uo.compositeIconSizes[0].evaluate(_o,{},Cl),Pd*Uo.compositeIconSizes[1].evaluate(_o,{},Cl)],(Ih[0]>R1||Ih[1]>R1)&&re(y.layerIds[0]+': Value for "icon-size" is >= '+TM+'. Reduce your "icon-size".')),y.addSymbols(y.icon,Jh,Ih,ba,bo,_o,!1,g,Kl.lineStartIndex,Kl.lineLength,-1,Cl),Df=y.icon.placedSymbolArray.length-1,dp&&(Ru=dp.length*4,y.addSymbols(y.icon,dp,Ih,ba,bo,_o,cp.vertical,g,Kl.lineStartIndex,Kl.lineLength,-1,Cl),Ff=y.icon.placedSymbolArray.length-1)}for(var vp in V.horizontal){var _v=V.horizontal[vp];if(!lu){yc=K(_v.text);var vg=je.layout.get("text-rotate").evaluate(_o,{},Cl);lu=new QC(xt,g,Dt,Xt,xr,_v,qr,Pr,ai,vg)}var F1=_v.positionedLines.length===1;if(Rf+=$Q(y,g,_v,oe,je,ai,_o,qi,Kl,V.vertical?cp.horizontal:cp.horizontalOnly,F1?Object.keys(V.horizontal):[vp],zf,Df,Uo,Cl),F1)break}V.vertical&&(sc+=$Q(y,g,V.vertical,oe,je,ai,_o,qi,Kl,cp.vertical,["vertical"],zf,Ff,Uo,Cl));var B1=lu?lu.boxStartIndex:y.collisionBoxArray.length,O1=lu?lu.boxEndIndex:y.collisionBoxArray.length,$w=du?du.boxStartIndex:y.collisionBoxArray.length,g0=du?du.boxEndIndex:y.collisionBoxArray.length,nL=Bu?Bu.boxStartIndex:y.collisionBoxArray.length,S9=Bu?Bu.boxEndIndex:y.collisionBoxArray.length,aL=gu?gu.boxStartIndex:y.collisionBoxArray.length,M9=gu?gu.boxEndIndex:y.collisionBoxArray.length,Hv=-1,Qw=function(EM,vee){return EM&&EM.circleDiameter?Math.max(EM.circleDiameter,vee):vee};Hv=Qw(lu,Hv),Hv=Qw(du,Hv),Hv=Qw(Bu,Hv),Hv=Qw(gu,Hv);var oL=Hv>-1?1:0;oL&&(Hv*=Tl/So),y.glyphOffsetArray.length>=oc.MAX_GLYPHS&&re("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),_o.sortKey!==void 0&&y.addToSortKeyRanges(y.symbolInstances.length,_o.sortKey),y.symbolInstances.emplaceBack(g.x,g.y,zf.right>=0?zf.right:-1,zf.center>=0?zf.center:-1,zf.left>=0?zf.left:-1,zf.vertical||-1,Df,Ff,yc,B1,O1,$w,g0,nL,S9,aL,M9,Dt,Rf,sc,ff,Ru,oL,0,qr,Tc,$c,Hv)}function ttt(y,g,z,V){var $=y.compareText;if(!(g in $))$[g]=[];else for(var oe=$[g],me=oe.length-1;me>=0;me--)if(V.dist(oe[me])0)&&(me.value.kind!=="constant"||me.value.value.length>0),Xt=xt.value.kind!=="constant"||!!xt.value.value||Object.keys(xt.parameters).length>0,xr=oe.get("symbol-sort-key");if(this.features=[],!(!Dt&&!Xt)){for(var qr=z.iconDependencies,Pr=z.glyphDependencies,ai=z.availableImages,qi=new ds(this.zoom),Wn=0,bn=g;Wn=0;for(var sc=0,Df=hu.sections;sc=0;xt--)me[xt]={x:z[xt].x,y:z[xt].y,tileUnitDistanceFromAnchor:oe},xt>0&&(oe+=z[xt-1].dist(z[xt]));for(var Dt=0;Dt0},oc.prototype.hasIconData=function(){return this.icon.segments.get().length>0},oc.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},oc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},oc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},oc.prototype.addIndicesForPlacedSymbol=function(g,z){for(var V=g.placedSymbolArray.get(z),$=V.vertexStartIndex+V.numGlyphs*4,oe=V.vertexStartIndex;oe<$;oe+=4)g.indexArray.emplaceBack(oe,oe+1,oe+2),g.indexArray.emplaceBack(oe+1,oe+2,oe+3)},oc.prototype.getSortedSymbolIndexes=function(g){if(this.sortedAngle===g&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var z=Math.sin(g),V=Math.cos(g),$=[],oe=[],me=[],je=0;je1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(g),this.sortedAngle=g,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var V=0,$=this.symbolInstanceIndexes;V<$.length;V+=1){var oe=$[V],me=this.symbolInstances.get(oe);this.featureSortOrder.push(me.featureIndex),[me.rightJustifiedTextSymbolIndex,me.centerJustifiedTextSymbolIndex,me.leftJustifiedTextSymbolIndex].forEach(function(je,xt,Dt){je>=0&&Dt.indexOf(je)===xt&&z.addIndicesForPlacedSymbol(z.text,je)}),me.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,me.verticalPlacedTextSymbolIndex),me.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,me.placedIconSymbolIndex),me.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,me.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Z("SymbolBucket",oc,{omit:["layers","collisionBoxArray","features","compareText"]}),oc.MAX_GLYPHS=65535,oc.addDynamicAttributes=x9;function att(y,g){return g.replace(/{([^{}]+)}/g,function(z,V){return V in y?String(y[V]):""})}var ott=new fi({"symbol-placement":new Be(ji.layout_symbol["symbol-placement"]),"symbol-spacing":new Be(ji.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Be(ji.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new qt(ji.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Be(ji.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Be(ji.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Be(ji.layout_symbol["icon-ignore-placement"]),"icon-optional":new Be(ji.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Be(ji.layout_symbol["icon-rotation-alignment"]),"icon-size":new qt(ji.layout_symbol["icon-size"]),"icon-text-fit":new Be(ji.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Be(ji.layout_symbol["icon-text-fit-padding"]),"icon-image":new qt(ji.layout_symbol["icon-image"]),"icon-rotate":new qt(ji.layout_symbol["icon-rotate"]),"icon-padding":new Be(ji.layout_symbol["icon-padding"]),"icon-keep-upright":new Be(ji.layout_symbol["icon-keep-upright"]),"icon-offset":new qt(ji.layout_symbol["icon-offset"]),"icon-anchor":new qt(ji.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Be(ji.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Be(ji.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Be(ji.layout_symbol["text-rotation-alignment"]),"text-field":new qt(ji.layout_symbol["text-field"]),"text-font":new qt(ji.layout_symbol["text-font"]),"text-size":new qt(ji.layout_symbol["text-size"]),"text-max-width":new qt(ji.layout_symbol["text-max-width"]),"text-line-height":new Be(ji.layout_symbol["text-line-height"]),"text-letter-spacing":new qt(ji.layout_symbol["text-letter-spacing"]),"text-justify":new qt(ji.layout_symbol["text-justify"]),"text-radial-offset":new qt(ji.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Be(ji.layout_symbol["text-variable-anchor"]),"text-anchor":new qt(ji.layout_symbol["text-anchor"]),"text-max-angle":new Be(ji.layout_symbol["text-max-angle"]),"text-writing-mode":new Be(ji.layout_symbol["text-writing-mode"]),"text-rotate":new qt(ji.layout_symbol["text-rotate"]),"text-padding":new Be(ji.layout_symbol["text-padding"]),"text-keep-upright":new Be(ji.layout_symbol["text-keep-upright"]),"text-transform":new qt(ji.layout_symbol["text-transform"]),"text-offset":new qt(ji.layout_symbol["text-offset"]),"text-allow-overlap":new Be(ji.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Be(ji.layout_symbol["text-ignore-placement"]),"text-optional":new Be(ji.layout_symbol["text-optional"])}),stt=new fi({"icon-opacity":new qt(ji.paint_symbol["icon-opacity"]),"icon-color":new qt(ji.paint_symbol["icon-color"]),"icon-halo-color":new qt(ji.paint_symbol["icon-halo-color"]),"icon-halo-width":new qt(ji.paint_symbol["icon-halo-width"]),"icon-halo-blur":new qt(ji.paint_symbol["icon-halo-blur"]),"icon-translate":new Be(ji.paint_symbol["icon-translate"]),"icon-translate-anchor":new Be(ji.paint_symbol["icon-translate-anchor"]),"text-opacity":new qt(ji.paint_symbol["text-opacity"]),"text-color":new qt(ji.paint_symbol["text-color"],{runtimeType:vn,getOverride:function(y){return y.textColor},hasOverride:function(y){return!!y.textColor}}),"text-halo-color":new qt(ji.paint_symbol["text-halo-color"]),"text-halo-width":new qt(ji.paint_symbol["text-halo-width"]),"text-halo-blur":new qt(ji.paint_symbol["text-halo-blur"]),"text-translate":new Be(ji.paint_symbol["text-translate"]),"text-translate-anchor":new Be(ji.paint_symbol["text-translate-anchor"])}),b9={paint:stt,layout:ott},Yw=function(g){this.type=g.property.overrides?g.property.overrides.runtimeType:Qo,this.defaultValue=g};Yw.prototype.evaluate=function(g){if(g.formattedSection){var z=this.defaultValue.property.overrides;if(z&&z.hasOverride(g.formattedSection))return z.getOverride(g.formattedSection)}return g.feature&&g.featureState?this.defaultValue.evaluate(g.feature,g.featureState):this.defaultValue.property.specification.default},Yw.prototype.eachChild=function(g){if(!this.defaultValue.isConstant()){var z=this.defaultValue.value;g(z._styleExpression.expression)}},Yw.prototype.outputDefined=function(){return!1},Yw.prototype.serialize=function(){return null},Z("FormatSectionOverride",Yw,{omit:["defaultValue"]});var ltt=function(y){function g(z){y.call(this,z,b9)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.recalculate=function(V,$){if(y.prototype.recalculate.call(this,V,$),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var oe=this.layout.get("text-writing-mode");if(oe){for(var me=[],je=0,xt=oe;je",targetMapId:$,sourceMapId:me.mapId})}}},Kw.prototype.receive=function(g){var z=g.data,V=z.id;if(V&&!(z.targetMapId&&this.mapId!==z.targetMapId))if(z.type===""){delete this.tasks[V];var $=this.cancelCallbacks[V];delete this.cancelCallbacks[V],$&&$()}else Ce()||z.mustQueue?(this.tasks[V]=z,this.taskQueue.push(V),this.invoker.trigger()):this.processTask(V,z)},Kw.prototype.process=function(){if(this.taskQueue.length){var g=this.taskQueue.shift(),z=this.tasks[g];delete this.tasks[g],this.taskQueue.length&&this.invoker.trigger(),z&&this.processTask(g,z)}},Kw.prototype.processTask=function(g,z){var V=this;if(z.type===""){var $=this.callbacks[g];delete this.callbacks[g],$&&(z.error?$(ot(z.error)):$(null,ot(z.data)))}else{var oe=!1,me=ke(this.globalScope)?void 0:[],je=z.hasCallback?function(qr,Pr){oe=!0,delete V.cancelCallbacks[g],V.target.postMessage({id:g,type:"",sourceMapId:V.mapId,error:qr?Qe(qr):null,data:Qe(Pr,me)},me)}:function(qr){oe=!0},xt=null,Dt=ot(z.data);if(this.parent[z.type])xt=this.parent[z.type](z.sourceMapId,Dt,je);else if(this.parent.getWorkerSource){var Xt=z.type.split("."),xr=this.parent.getWorkerSource(z.sourceMapId,Xt[0],Dt.source);xt=xr[Xt[1]](Dt,je)}else je(new Error("Could not find function "+z.type));!oe&&xt&&xt.cancel&&(this.cancelCallbacks[g]=xt.cancel)}},Kw.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function _tt(y,g,z){g=Math.pow(2,z)-g-1;var V=nee(y*256,g*256,z),$=nee((y+1)*256,(g+1)*256,z);return V[0]+","+V[1]+","+$[0]+","+$[1]}function nee(y,g,z){var V=2*Math.PI*6378137/256/Math.pow(2,z),$=y*V-2*Math.PI*6378137/2,oe=g*V-2*Math.PI*6378137/2;return[$,oe]}var yh=function(g,z){g&&(z?this.setSouthWest(g).setNorthEast(z):g.length===4?this.setSouthWest([g[0],g[1]]).setNorthEast([g[2],g[3]]):this.setSouthWest(g[0]).setNorthEast(g[1]))};yh.prototype.setNorthEast=function(g){return this._ne=g instanceof Dc?new Dc(g.lng,g.lat):Dc.convert(g),this},yh.prototype.setSouthWest=function(g){return this._sw=g instanceof Dc?new Dc(g.lng,g.lat):Dc.convert(g),this},yh.prototype.extend=function(g){var z=this._sw,V=this._ne,$,oe;if(g instanceof Dc)$=g,oe=g;else if(g instanceof yh){if($=g._sw,oe=g._ne,!$||!oe)return this}else{if(Array.isArray(g))if(g.length===4||g.every(Array.isArray)){var me=g;return this.extend(yh.convert(me))}else{var je=g;return this.extend(Dc.convert(je))}return this}return!z&&!V?(this._sw=new Dc($.lng,$.lat),this._ne=new Dc(oe.lng,oe.lat)):(z.lng=Math.min($.lng,z.lng),z.lat=Math.min($.lat,z.lat),V.lng=Math.max(oe.lng,V.lng),V.lat=Math.max(oe.lat,V.lat)),this},yh.prototype.getCenter=function(){return new Dc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},yh.prototype.getSouthWest=function(){return this._sw},yh.prototype.getNorthEast=function(){return this._ne},yh.prototype.getNorthWest=function(){return new Dc(this.getWest(),this.getNorth())},yh.prototype.getSouthEast=function(){return new Dc(this.getEast(),this.getSouth())},yh.prototype.getWest=function(){return this._sw.lng},yh.prototype.getSouth=function(){return this._sw.lat},yh.prototype.getEast=function(){return this._ne.lng},yh.prototype.getNorth=function(){return this._ne.lat},yh.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},yh.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},yh.prototype.isEmpty=function(){return!(this._sw&&this._ne)},yh.prototype.contains=function(g){var z=Dc.convert(g),V=z.lng,$=z.lat,oe=this._sw.lat<=$&&$<=this._ne.lat,me=this._sw.lng<=V&&V<=this._ne.lng;return this._sw.lng>this._ne.lng&&(me=this._sw.lng>=V&&V>=this._ne.lng),oe&&me},yh.convert=function(g){return!g||g instanceof yh?g:new yh(g)};var aee=63710088e-1,Dc=function(g,z){if(isNaN(g)||isNaN(z))throw new Error("Invalid LngLat object: ("+g+", "+z+")");if(this.lng=+g,this.lat=+z,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Dc.prototype.wrap=function(){return new Dc(k(this.lng,-180,180),this.lat)},Dc.prototype.toArray=function(){return[this.lng,this.lat]},Dc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Dc.prototype.distanceTo=function(g){var z=Math.PI/180,V=this.lat*z,$=g.lat*z,oe=Math.sin(V)*Math.sin($)+Math.cos(V)*Math.cos($)*Math.cos((g.lng-this.lng)*z),me=aee*Math.acos(Math.min(oe,1));return me},Dc.prototype.toBounds=function(g){g===void 0&&(g=0);var z=40075017,V=360*g/z,$=V/Math.cos(Math.PI/180*this.lat);return new yh(new Dc(this.lng-$,this.lat-V),new Dc(this.lng+$,this.lat+V))},Dc.convert=function(g){if(g instanceof Dc)return g;if(Array.isArray(g)&&(g.length===2||g.length===3))return new Dc(Number(g[0]),Number(g[1]));if(!Array.isArray(g)&&typeof g=="object"&&g!==null)return new Dc(Number("lng"in g?g.lng:g.lon),Number(g.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var oee=2*Math.PI*aee;function see(y){return oee*Math.cos(y*Math.PI/180)}function lee(y){return(180+y)/360}function uee(y){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+y*Math.PI/360)))/360}function fee(y,g){return y/see(g)}function xtt(y){return y*360-180}function A9(y){var g=180-y*360;return 360/Math.PI*Math.atan(Math.exp(g*Math.PI/180))-90}function btt(y,g){return y*see(A9(g))}function wtt(y){return 1/Math.cos(y*Math.PI/180)}var ib=function(g,z,V){V===void 0&&(V=0),this.x=+g,this.y=+z,this.z=+V};ib.fromLngLat=function(g,z){z===void 0&&(z=0);var V=Dc.convert(g);return new ib(lee(V.lng),uee(V.lat),fee(z,V.lat))},ib.prototype.toLngLat=function(){return new Dc(xtt(this.x),A9(this.y))},ib.prototype.toAltitude=function(){return btt(this.z,this.y)},ib.prototype.meterInMercatorCoordinateUnits=function(){return 1/oee*wtt(A9(this.y))};var nb=function(g,z,V){this.z=g,this.x=z,this.y=V,this.key=MM(0,g,g,z,V)};nb.prototype.equals=function(g){return this.z===g.z&&this.x===g.x&&this.y===g.y},nb.prototype.url=function(g,z){var V=_tt(this.x,this.y,this.z),$=Att(this.z,this.x,this.y);return g[(this.x+this.y)%g.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(z==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",$).replace("{bbox-epsg-3857}",V)},nb.prototype.getTilePoint=function(g){var z=Math.pow(2,this.z);return new l((g.x*z-this.x)*Tn,(g.y*z-this.y)*Tn)},nb.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var cee=function(g,z){this.wrap=g,this.canonical=z,this.key=MM(g,z.z,z.z,z.x,z.y)},gh=function(g,z,V,$,oe){this.overscaledZ=g,this.wrap=z,this.canonical=new nb(V,+$,+oe),this.key=MM(z,g,V,$,oe)};gh.prototype.equals=function(g){return this.overscaledZ===g.overscaledZ&&this.wrap===g.wrap&&this.canonical.equals(g.canonical)},gh.prototype.scaledTo=function(g){var z=this.canonical.z-g;return g>this.canonical.z?new gh(g,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new gh(g,this.wrap,g,this.canonical.x>>z,this.canonical.y>>z)},gh.prototype.calculateScaledKey=function(g,z){var V=this.canonical.z-g;return g>this.canonical.z?MM(this.wrap*+z,g,this.canonical.z,this.canonical.x,this.canonical.y):MM(this.wrap*+z,g,g,this.canonical.x>>V,this.canonical.y>>V)},gh.prototype.isChildOf=function(g){if(g.wrap!==this.wrap)return!1;var z=this.canonical.z-g.canonical.z;return g.overscaledZ===0||g.overscaledZ>z&&g.canonical.y===this.canonical.y>>z},gh.prototype.children=function(g){if(this.overscaledZ>=g)return[new gh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var z=this.canonical.z+1,V=this.canonical.x*2,$=this.canonical.y*2;return[new gh(z,this.wrap,z,V,$),new gh(z,this.wrap,z,V+1,$),new gh(z,this.wrap,z,V,$+1),new gh(z,this.wrap,z,V+1,$+1)]},gh.prototype.isLessThan=function(g){return this.wrapg.wrap?!1:this.overscaledZg.overscaledZ?!1:this.canonical.xg.canonical.x?!1:this.canonical.y0;oe--)$=1<=this.dim+1||z<-1||z>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(z+1)*this.stride+(g+1)},dg.prototype._unpackMapbox=function(g,z,V){return(g*256*256+z*256+V)/10-1e4},dg.prototype._unpackTerrarium=function(g,z,V){return g*256+z+V/256-32768},dg.prototype.getPixels=function(){return new Ch({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},dg.prototype.backfillBorder=function(g,z,V){if(this.dim!==g.dim)throw new Error("dem dimension mismatch");var $=z*this.dim,oe=z*this.dim+this.dim,me=V*this.dim,je=V*this.dim+this.dim;switch(z){case-1:$=oe-1;break;case 1:oe=$+1;break}switch(V){case-1:me=je-1;break;case 1:je=me+1;break}for(var xt=-z*this.dim,Dt=-V*this.dim,Xt=me;Xt=0&&xr[3]>=0&&xt.insert(je,xr[0],xr[1],xr[2],xr[3])}},pg.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new mm.VectorTile(new su(this.rawTileData)).layers,this.sourceLayerCoder=new rL(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},pg.prototype.query=function(g,z,V,$){var oe=this;this.loadVTLayers();for(var me=g.params||{},je=Tn/g.tileSize/g.scale,xt=Se(me.filter),Dt=g.queryGeometry,Xt=g.queryPadding*je,xr=dee(Dt),qr=this.grid.query(xr.minX-Xt,xr.minY-Xt,xr.maxX+Xt,xr.maxY+Xt),Pr=dee(g.cameraQueryGeometry),ai=this.grid3D.query(Pr.minX-Xt,Pr.minY-Xt,Pr.maxX+Xt,Pr.maxY+Xt,function(Zs,Cl,Tl,hu){return vv(g.cameraQueryGeometry,Zs-Xt,Cl-Xt,Tl+Xt,hu+Xt)}),qi=0,Wn=ai;qi$)oe=!1;else if(!z)oe=!0;else if(this.expirationTime=xn.maxzoom)&&xn.visibility!=="none"){h(Ri,this.zoom,Wt);var xi=jr[xn.id]=xn.createBucket({index:Gr.bucketLayerIDs.length,layers:Ri,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:en,sourceID:this.source});xi.populate(Yr,yi,this.tileID.canonical),Gr.bucketLayerIDs.push(Ri.map(function(ni){return ni.id}))}}}}var Xr,ft,tr,pr,gr=i.mapObject(yi.glyphDependencies,function(ni){return Object.keys(ni).map(Number)});Object.keys(gr).length?_r.send("getGlyphs",{uid:this.uid,stacks:gr},function(ni,Zi){Xr||(Xr=ni,ft=Zi,Qi.call(Ur))}):ft={};var Zr=Object.keys(yi.iconDependencies);Zr.length?_r.send("getImages",{icons:Zr,source:this.source,tileID:this.tileID,type:"icons"},function(ni,Zi){Xr||(Xr=ni,tr=Zi,Qi.call(Ur))}):tr={};var Ai=Object.keys(yi.patternDependencies);Ai.length?_r.send("getImages",{icons:Ai,source:this.source,tileID:this.tileID,type:"patterns"},function(ni,Zi){Xr||(Xr=ni,pr=Zi,Qi.call(Ur))}):pr={},Qi.call(this);function Qi(){if(Xr)return Lr(Xr);if(ft&&tr&&pr){var ni=new f(ft),Zi=new i.ImageAtlas(tr,pr);for(var aa in jr){var Mn=jr[aa];Mn instanceof i.SymbolBucket?(h(Mn.layers,this.zoom,Wt),i.performSymbolLayout(Mn,ft,ni.positions,tr,Zi.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Mn.hasPattern&&(Mn instanceof i.LineBucket||Mn instanceof i.FillBucket||Mn instanceof i.FillExtrusionBucket)&&(h(Mn.layers,this.zoom,Wt),Mn.addFeatures(yi,this.tileID.canonical,Zi.patternPositions))}this.status="done",Lr(null,{buckets:i.values(jr).filter(function(Un){return!Un.isEmpty()}),featureIndex:Gr,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ni.image,imageAtlas:Zi,glyphMap:this.returnDependencies?ft:null,iconMap:this.returnDependencies?tr:null,glyphPositions:this.returnDependencies?ni.positions:null})}}};function h(Bt,yt,Vt){for(var Wt=new i.EvaluationParameters(yt),_r=0,Lr=Bt;_r=0!=!!yt&&Bt.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,x=function(yt){this._feature=yt,this.extent=i.EXTENT,this.type=yt.type,this.properties=yt.tags,"id"in yt&&!isNaN(yt.id)&&(this.id=parseInt(yt.id,10))};x.prototype.loadGeometry=function(){if(this._feature.type===1){for(var yt=[],Vt=0,Wt=this._feature.geometry;Vt>31}function Ce(Bt,yt){for(var Vt=Bt.loadGeometry(),Wt=Bt.type,_r=0,Lr=0,Ur=Vt.length,Ir=0;Ir>1;ke(Bt,yt,Ur,Wt,_r,Lr%2),te(Bt,yt,Vt,Wt,Ur-1,Lr+1),te(Bt,yt,Vt,Ur+1,_r,Lr+1)}}function ke(Bt,yt,Vt,Wt,_r,Lr){for(;_r>Wt;){if(_r-Wt>600){var Ur=_r-Wt+1,Ir=Vt-Wt+1,Gr=Math.log(Ur),jr=.5*Math.exp(2*Gr/3),yi=.5*Math.sqrt(Gr*jr*(Ur-jr)/Ur)*(Ir-Ur/2<0?-1:1),Ei=Math.max(Wt,Math.floor(Vt-Ir*jr/Ur+yi)),Vi=Math.min(_r,Math.floor(Vt+(Ur-Ir)*jr/Ur+yi));ke(Bt,yt,Vt,Ei,Vi,Lr)}var ti=yt[2*Vt+Lr],en=Wt,Yr=_r;for(Ee(Bt,yt,Wt,Vt),yt[2*_r+Lr]>ti&&Ee(Bt,yt,Wt,_r);enti;)Yr--}yt[2*Wt+Lr]===ti?Ee(Bt,yt,Wt,Yr):(Yr++,Ee(Bt,yt,Yr,_r)),Yr<=Vt&&(Wt=Yr+1),Vt<=Yr&&(_r=Yr-1)}}function Ee(Bt,yt,Vt,Wt){Me(Bt,Vt,Wt),Me(yt,2*Vt,2*Wt),Me(yt,2*Vt+1,2*Wt+1)}function Me(Bt,yt,Vt){var Wt=Bt[yt];Bt[yt]=Bt[Vt],Bt[Vt]=Wt}function Ne(Bt,yt,Vt,Wt,_r,Lr,Ur){for(var Ir=[0,Bt.length-1,0],Gr=[],jr,yi;Ir.length;){var Ei=Ir.pop(),Vi=Ir.pop(),ti=Ir.pop();if(Vi-ti<=Ur){for(var en=ti;en<=Vi;en++)jr=yt[2*en],yi=yt[2*en+1],jr>=Vt&&jr<=_r&&yi>=Wt&&yi<=Lr&&Gr.push(Bt[en]);continue}var Yr=Math.floor((ti+Vi)/2);jr=yt[2*Yr],yi=yt[2*Yr+1],jr>=Vt&&jr<=_r&&yi>=Wt&&yi<=Lr&&Gr.push(Bt[Yr]);var oi=(Ei+1)%2;(Ei===0?Vt<=jr:Wt<=yi)&&(Ir.push(ti),Ir.push(Yr-1),Ir.push(oi)),(Ei===0?_r>=jr:Lr>=yi)&&(Ir.push(Yr+1),Ir.push(Vi),Ir.push(oi))}return Gr}function Fe(Bt,yt,Vt,Wt,_r,Lr){for(var Ur=[0,Bt.length-1,0],Ir=[],Gr=_r*_r;Ur.length;){var jr=Ur.pop(),yi=Ur.pop(),Ei=Ur.pop();if(yi-Ei<=Lr){for(var Vi=Ei;Vi<=yi;Vi++)ye(yt[2*Vi],yt[2*Vi+1],Vt,Wt)<=Gr&&Ir.push(Bt[Vi]);continue}var ti=Math.floor((Ei+yi)/2),en=yt[2*ti],Yr=yt[2*ti+1];ye(en,Yr,Vt,Wt)<=Gr&&Ir.push(Bt[ti]);var oi=(jr+1)%2;(jr===0?Vt-_r<=en:Wt-_r<=Yr)&&(Ur.push(Ei),Ur.push(ti-1),Ur.push(oi)),(jr===0?Vt+_r>=en:Wt+_r>=Yr)&&(Ur.push(ti+1),Ur.push(yi),Ur.push(oi))}return Ir}function ye(Bt,yt,Vt,Wt){var _r=Bt-Vt,Lr=yt-Wt;return _r*_r+Lr*Lr}var Ve=function(Bt){return Bt[0]},ce=function(Bt){return Bt[1]},Ke=function(yt,Vt,Wt,_r,Lr){Vt===void 0&&(Vt=Ve),Wt===void 0&&(Wt=ce),_r===void 0&&(_r=64),Lr===void 0&&(Lr=Float64Array),this.nodeSize=_r,this.points=yt;for(var Ur=yt.length<65536?Uint16Array:Uint32Array,Ir=this.ids=new Ur(yt.length),Gr=this.coords=new Lr(yt.length*2),jr=0;jr=_r;yi--){var Ei=+Date.now();Gr=this._cluster(Gr,yi),this.trees[yi]=new Ke(Gr,Ae,at,Ur,Float32Array),Wt&&console.log("z%d: %d clusters in %dms",yi,Gr.length,+Date.now()-Ei)}return Wt&&console.timeEnd("total time"),this},gt.prototype.getClusters=function(yt,Vt){var Wt=((yt[0]+180)%360+360)%360-180,_r=Math.max(-90,Math.min(90,yt[1])),Lr=yt[2]===180?180:((yt[2]+180)%360+360)%360-180,Ur=Math.max(-90,Math.min(90,yt[3]));if(yt[2]-yt[0]>=360)Wt=-180,Lr=180;else if(Wt>Lr){var Ir=this.getClusters([Wt,_r,180,Ur],Vt),Gr=this.getClusters([-180,_r,Lr,Ur],Vt);return Ir.concat(Gr)}for(var jr=this.trees[this._limitZoom(Vt)],yi=jr.range(Tt(Wt),St(Ur),Tt(Lr),St(_r)),Ei=[],Vi=0,ti=yi;ViVt&&(Yr+=rn.numPoints||1)}if(Yr>=Gr){for(var Fi=Ei.x*en,Ri=Ei.y*en,xn=Ir&&en>1?this._map(Ei,!0):null,xi=(yi<<5)+(Vt+1)+this.points.length,Xr=0,ft=ti;Xr1)for(var Zr=0,Ai=ti;Zr>5},gt.prototype._getOriginZoom=function(yt){return(yt-this.points.length)%32},gt.prototype._map=function(yt,Vt){if(yt.numPoints)return Vt?Et({},yt.properties):yt.properties;var Wt=this.points[yt.index].properties,_r=this.options.map(Wt);return Vt&&_r===Wt?Et({},_r):_r};function Nt(Bt,yt,Vt,Wt,_r){return{x:Bt,y:yt,zoom:1/0,id:Vt,parentId:-1,numPoints:Wt,properties:_r}}function it(Bt,yt){var Vt=Bt.geometry.coordinates,Wt=Vt[0],_r=Vt[1];return{x:Tt(Wt),y:St(_r),zoom:1/0,index:yt,parentId:-1}}function Ye(Bt){return{type:"Feature",id:Bt.id,properties:kt(Bt),geometry:{type:"Point",coordinates:[Rt(Bt.x),Zt(Bt.y)]}}}function kt(Bt){var yt=Bt.numPoints,Vt=yt>=1e4?Math.round(yt/1e3)+"k":yt>=1e3?Math.round(yt/100)/10+"k":yt;return Et(Et({},Bt.properties),{cluster:!0,cluster_id:Bt.id,point_count:yt,point_count_abbreviated:Vt})}function Tt(Bt){return Bt/360+.5}function St(Bt){var yt=Math.sin(Bt*Math.PI/180),Vt=.5-.25*Math.log((1+yt)/(1-yt))/Math.PI;return Vt<0?0:Vt>1?1:Vt}function Rt(Bt){return(Bt-.5)*360}function Zt(Bt){var yt=(180-Bt*360)*Math.PI/180;return 360*Math.atan(Math.exp(yt))/Math.PI-90}function Et(Bt,yt){for(var Vt in yt)Bt[Vt]=yt[Vt];return Bt}function Ae(Bt){return Bt.x}function at(Bt){return Bt.y}function wt(Bt,yt,Vt,Wt){for(var _r=Wt,Lr=Vt-yt>>1,Ur=Vt-yt,Ir,Gr=Bt[yt],jr=Bt[yt+1],yi=Bt[Vt],Ei=Bt[Vt+1],Vi=yt+3;Vi_r)Ir=Vi,_r=ti;else if(ti===_r){var en=Math.abs(Vi-Lr);enWt&&(Ir-yt>3&&wt(Bt,yt,Ir,Wt),Bt[Ir+2]=_r,Vt-Ir>3&&wt(Bt,Ir,Vt,Wt))}function vt(Bt,yt,Vt,Wt,_r,Lr){var Ur=_r-Vt,Ir=Lr-Wt;if(Ur!==0||Ir!==0){var Gr=((Bt-Vt)*Ur+(yt-Wt)*Ir)/(Ur*Ur+Ir*Ir);Gr>1?(Vt=_r,Wt=Lr):Gr>0&&(Vt+=Ur*Gr,Wt+=Ir*Gr)}return Ur=Bt-Vt,Ir=yt-Wt,Ur*Ur+Ir*Ir}function st(Bt,yt,Vt,Wt){var _r={id:typeof Bt=="undefined"?null:Bt,type:yt,geometry:Vt,tags:Wt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Ue(_r),_r}function Ue(Bt){var yt=Bt.geometry,Vt=Bt.type;if(Vt==="Point"||Vt==="MultiPoint"||Vt==="LineString")rt(Bt,yt);else if(Vt==="Polygon"||Vt==="MultiLineString")for(var Wt=0;Wt0&&(Wt?Ur+=(_r*jr-Gr*Lr)/2:Ur+=Math.sqrt(Math.pow(Gr-_r,2)+Math.pow(jr-Lr,2))),_r=Gr,Lr=jr}var yi=yt.length-3;yt[2]=1,wt(yt,0,yi,Vt),yt[yi+2]=1,yt.size=Math.abs(Ur),yt.start=0,yt.end=yt.size}function yr(Bt,yt,Vt,Wt){for(var _r=0;_r1?1:Vt}function Ie(Bt,yt,Vt,Wt,_r,Lr,Ur,Ir){if(Vt/=yt,Wt/=yt,Lr>=Vt&&Ur=Wt)return null;for(var Gr=[],jr=0;jr=Vt&&en=Wt)continue;var Yr=[];if(Vi==="Point"||Vi==="MultiPoint")xe(Ei,Yr,Vt,Wt,_r);else if(Vi==="LineString")Oe(Ei,Yr,Vt,Wt,_r,!1,Ir.lineMetrics);else if(Vi==="MultiLineString")De(Ei,Yr,Vt,Wt,_r,!1);else if(Vi==="Polygon")De(Ei,Yr,Vt,Wt,_r,!0);else if(Vi==="MultiPolygon")for(var oi=0;oi=Vt&&Ur<=Wt&&(yt.push(Bt[Lr]),yt.push(Bt[Lr+1]),yt.push(Bt[Lr+2]))}}function Oe(Bt,yt,Vt,Wt,_r,Lr,Ur){for(var Ir=Re(Bt),Gr=_r===0?ge:fe,jr=Bt.start,yi,Ei,Vi=0;ViVt&&(Ei=Gr(Ir,ti,en,oi,Bi,Vt),Ur&&(Ir.start=jr+yi*Ei)):an>Wt?rn=Vt&&(Ei=Gr(Ir,ti,en,oi,Bi,Vt),Fi=!0),rn>Wt&&an<=Wt&&(Ei=Gr(Ir,ti,en,oi,Bi,Wt),Fi=!0),!Lr&&Fi&&(Ur&&(Ir.end=jr+yi*Ei),yt.push(Ir),Ir=Re(Bt)),Ur&&(jr+=yi)}var Ri=Bt.length-3;ti=Bt[Ri],en=Bt[Ri+1],Yr=Bt[Ri+2],an=_r===0?ti:en,an>=Vt&&an<=Wt&&ct(Ir,ti,en,Yr),Ri=Ir.length-3,Lr&&Ri>=3&&(Ir[Ri]!==Ir[0]||Ir[Ri+1]!==Ir[1])&&ct(Ir,Ir[0],Ir[1],Ir[2]),Ir.length&&yt.push(Ir)}function Re(Bt){var yt=[];return yt.size=Bt.size,yt.start=Bt.start,yt.end=Bt.end,yt}function De(Bt,yt,Vt,Wt,_r,Lr){for(var Ur=0;UrUr.maxX&&(Ur.maxX=yi),Ei>Ur.maxY&&(Ur.maxY=Ei)}return Ur}function Dr(Bt,yt,Vt,Wt){var _r=yt.geometry,Lr=yt.type,Ur=[];if(Lr==="Point"||Lr==="MultiPoint")for(var Ir=0;Ir<_r.length;Ir+=3)Ur.push(_r[Ir]),Ur.push(_r[Ir+1]),Bt.numPoints++,Bt.numSimplified++;else if(Lr==="LineString")Mr(Ur,_r,Bt,Vt,!1,!1);else if(Lr==="MultiLineString"||Lr==="Polygon")for(Ir=0;Ir<_r.length;Ir++)Mr(Ur,_r[Ir],Bt,Vt,Lr==="Polygon",Ir===0);else if(Lr==="MultiPolygon")for(var Gr=0;Gr<_r.length;Gr++){var jr=_r[Gr];for(Ir=0;Ir0&&yt.size<(_r?Ur:Wt)){Vt.numPoints+=yt.length/3;return}for(var Ir=[],Gr=0;GrUr)&&(Vt.numSimplified++,Ir.push(yt[Gr]),Ir.push(yt[Gr+1])),Vt.numPoints++;_r&&Fr(Ir,Lr),Bt.push(Ir)}function Fr(Bt,yt){for(var Vt=0,Wt=0,_r=Bt.length,Lr=_r-2;Wt<_r;Lr=Wt,Wt+=2)Vt+=(Bt[Wt]-Bt[Lr])*(Bt[Wt+1]+Bt[Lr+1]);if(Vt>0===yt)for(Wt=0,_r=Bt.length;Wt<_r/2;Wt+=2){var Ur=Bt[Wt],Ir=Bt[Wt+1];Bt[Wt]=Bt[_r-2-Wt],Bt[Wt+1]=Bt[_r-1-Wt],Bt[_r-2-Wt]=Ur,Bt[_r-1-Wt]=Ir}}function di(Bt,yt){return new Di(Bt,yt)}function Di(Bt,yt){yt=this.options=Ci(Object.create(this.options),yt);var Vt=yt.debug;if(Vt&&console.time("preprocess data"),yt.maxZoom<0||yt.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(yt.promoteId&&yt.generateId)throw new Error("promoteId and generateId cannot be used together.");var Wt=$e(Bt,yt);this.tiles={},this.tileCoords=[],Vt&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",yt.indexMaxZoom,yt.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Wt=pe(Wt,yt),Wt.length&&this.splitTile(Wt,0,0,0),Vt&&(Wt.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Di.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Di.prototype.splitTile=function(Bt,yt,Vt,Wt,_r,Lr,Ur){for(var Ir=[Bt,yt,Vt,Wt],Gr=this.options,jr=Gr.debug;Ir.length;){Wt=Ir.pop(),Vt=Ir.pop(),yt=Ir.pop(),Bt=Ir.pop();var yi=1<1&&console.time("creation"),Vi=this.tiles[Ei]=Hr(Bt,yt,Vt,Wt,Gr),this.tileCoords.push({z:yt,x:Vt,y:Wt}),jr)){jr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",yt,Vt,Wt,Vi.numFeatures,Vi.numPoints,Vi.numSimplified),console.timeEnd("creation"));var ti="z"+yt;this.stats[ti]=(this.stats[ti]||0)+1,this.total++}if(Vi.source=Bt,_r){if(yt===Gr.maxZoom||yt===_r)continue;var en=1<<_r-yt;if(Vt!==Math.floor(Lr/en)||Wt!==Math.floor(Ur/en))continue}else if(yt===Gr.indexMaxZoom||Vi.numPoints<=Gr.indexMaxPoints)continue;if(Vi.source=null,Bt.length!==0){jr>1&&console.time("clipping");var Yr=.5*Gr.buffer/Gr.extent,oi=.5-Yr,Bi=.5+Yr,an=1+Yr,rn,Fi,Ri,xn,xi,Xr;rn=Fi=Ri=xn=null,xi=Ie(Bt,yi,Vt-Yr,Vt+Bi,0,Vi.minX,Vi.maxX,Gr),Xr=Ie(Bt,yi,Vt+oi,Vt+an,0,Vi.minX,Vi.maxX,Gr),Bt=null,xi&&(rn=Ie(xi,yi,Wt-Yr,Wt+Bi,1,Vi.minY,Vi.maxY,Gr),Fi=Ie(xi,yi,Wt+oi,Wt+an,1,Vi.minY,Vi.maxY,Gr),xi=null),Xr&&(Ri=Ie(Xr,yi,Wt-Yr,Wt+Bi,1,Vi.minY,Vi.maxY,Gr),xn=Ie(Xr,yi,Wt+oi,Wt+an,1,Vi.minY,Vi.maxY,Gr),Xr=null),jr>1&&console.timeEnd("clipping"),Ir.push(rn||[],yt+1,Vt*2,Wt*2),Ir.push(Fi||[],yt+1,Vt*2,Wt*2+1),Ir.push(Ri||[],yt+1,Vt*2+1,Wt*2),Ir.push(xn||[],yt+1,Vt*2+1,Wt*2+1)}}},Di.prototype.getTile=function(Bt,yt,Vt){var Wt=this.options,_r=Wt.extent,Lr=Wt.debug;if(Bt<0||Bt>24)return null;var Ur=1<1&&console.log("drilling down to z%d-%d-%d",Bt,yt,Vt);for(var Gr=Bt,jr=yt,yi=Vt,Ei;!Ei&&Gr>0;)Gr--,jr=Math.floor(jr/2),yi=Math.floor(yi/2),Ei=this.tiles[Ii(Gr,jr,yi)];return!Ei||!Ei.source?null:(Lr>1&&console.log("found parent tile z%d-%d-%d",Gr,jr,yi),Lr>1&&console.time("drilling down"),this.splitTile(Ei.source,Gr,jr,yi,Bt,yt,Vt),Lr>1&&console.timeEnd("drilling down"),this.tiles[Ir]?Pt(this.tiles[Ir],_r):null)};function Ii(Bt,yt,Vt){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function _(Y,R,J){var O,K,_e,ne=i.browser.devicePixelRatio>1?"@2x":"",Le=i.getJSON(R.transformRequest(R.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(dr,Er){Le=null,_e||(_e=dr,O=Er,Ct())}),Ze=i.getImage(R.transformRequest(R.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(dr,Er){Ze=null,_e||(_e=dr,K=Er,Ct())});function Ct(){if(_e)J(_e);else if(O&&K){var dr=i.browser.getImageData(K),Er={};for(var lr in O){var Je=O[lr],ht=Je.width,bt=Je.height,Kt=Je.x,sr=Je.y,Qt=Je.sdf,ur=Je.pixelRatio,er=Je.stretchX,Ot=Je.stretchY,Jt=Je.content,Lt=new i.RGBAImage({width:ht,height:bt});i.RGBAImage.copy(dr,Lt,{x:Kt,y:sr},{x:0,y:0},{width:ht,height:bt}),Er[lr]={data:Lt,pixelRatio:ur,sdf:Qt,stretchX:er,stretchY:Ot,content:Jt}}J(null,Er)}}return{cancel:function(){Le&&(Le.cancel(),Le=null),Ze&&(Ze.cancel(),Ze=null)}}}function b(Y){var R=Y.userImage;if(R&&R.render){var J=R.render();if(J)return Y.data.replace(new Uint8Array(R.data.buffer)),!0}return!1}var v=1,k=function(Y){function R(){Y.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.isLoaded=function(){return this.loaded},R.prototype.setLoaded=function(O){if(this.loaded!==O&&(this.loaded=O,O)){for(var K=0,_e=this.requestors;K<_e.length;K+=1){var ne=_e[K],Le=ne.ids,Ze=ne.callback;this._notify(Le,Ze)}this.requestors=[]}},R.prototype.getImage=function(O){return this.images[O]},R.prototype.addImage=function(O,K){this._validate(O,K)&&(this.images[O]=K)},R.prototype._validate=function(O,K){var _e=!0;return this._validateStretch(K.stretchX,K.data&&K.data.width)||(this.fire(new i.ErrorEvent(new Error('Image "'+O+'" has invalid "stretchX" value'))),_e=!1),this._validateStretch(K.stretchY,K.data&&K.data.height)||(this.fire(new i.ErrorEvent(new Error('Image "'+O+'" has invalid "stretchY" value'))),_e=!1),this._validateContent(K.content,K)||(this.fire(new i.ErrorEvent(new Error('Image "'+O+'" has invalid "content" value'))),_e=!1),_e},R.prototype._validateStretch=function(O,K){if(!O)return!0;for(var _e=0,ne=0,Le=O;ne=0?1.2:1))}C.prototype.draw=function(Y){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(Y,this.buffer,this.middle);for(var R=this.ctx.getImageData(0,0,this.size,this.size),J=new Uint8ClampedArray(this.size*this.size),O=0;O65535){dr(new Error("glyphs > 65535 not supported"));return}if(Je.ranges[bt]){dr(null,{stack:Er,id:lr,glyph:ht});return}var Kt=Je.requests[bt];Kt||(Kt=Je.requests[bt]=[],P.loadGlyphRange(Er,bt,O.url,O.requestManager,function(sr,Qt){if(Qt){for(var ur in Qt)O._doesCharSupportLocalGlyph(+ur)||(Je.glyphs[+ur]=Qt[+ur]);Je.ranges[bt]=!0}for(var er=0,Ot=Kt;er1&&(Ct=R[++Ze]);var Er=Math.abs(dr-Ct.left),lr=Math.abs(dr-Ct.right),Je=Math.min(Er,lr),ht=void 0,bt=_e/O*(K+1);if(Ct.isDash){var Kt=K-Math.abs(bt);ht=Math.sqrt(Je*Je+Kt*Kt)}else ht=K-Math.sqrt(Je*Je+bt*bt);this.data[Le+dr]=Math.max(0,Math.min(255,ht+128))}},G.prototype.addRegularDash=function(R){for(var J=R.length-1;J>=0;--J){var O=R[J],K=R[J+1];O.zeroLength?R.splice(J,1):K&&K.isDash===O.isDash&&(K.left=O.left,R.splice(J,1))}var _e=R[0],ne=R[R.length-1];_e.isDash===ne.isDash&&(_e.left=ne.left-this.width,ne.right=_e.right+this.width);for(var Le=this.width*this.nextRow,Ze=0,Ct=R[Ze],dr=0;dr1&&(Ct=R[++Ze]);var Er=Math.abs(dr-Ct.left),lr=Math.abs(dr-Ct.right),Je=Math.min(Er,lr),ht=Ct.isDash?Je:-Je;this.data[Le+dr]=Math.max(0,Math.min(255,ht+128))}},G.prototype.addDash=function(R,J){var O=J?7:0,K=2*O+1;if(this.nextRow+K>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var _e=0,ne=0;ne=O.minX&&R.x=O.minY&&R.y0&&(dr[new i.OverscaledTileID(O.overscaledZ,Le,K.z,ne,K.y-1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,O.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,Ct,K.z,Ze,K.y-1).key]={backfilled:!1}),K.y+1<_e&&(dr[new i.OverscaledTileID(O.overscaledZ,Le,K.z,ne,K.y+1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,O.wrap,K.z,K.x,K.y+1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,Ct,K.z,Ze,K.y+1).key]={backfilled:!1}),dr},R.prototype.unloadTile=function(O){O.demTexture&&this.map.painter.saveTileTexture(O.demTexture),O.fbo&&(O.fbo.destroy(),delete O.fbo),O.dem&&delete O.dem,delete O.neighboringTiles,O.state="unloaded",O.actor&&O.actor.send("removeDEMTile",{uid:O.uid,source:this.id})},R}(re),be=function(Y){function R(J,O,K,_e){Y.call(this),this.id=J,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=K.getActor(),this.setEventedParent(_e),this._data=O.data,this._options=i.extend({},O),this._collectResourceTiming=O.collectResourceTiming,this._resourceTiming=[],O.maxzoom!==void 0&&(this.maxzoom=O.maxzoom),O.type&&(this.type=O.type),O.attribution&&(this.attribution=O.attribution),this.promoteId=O.promoteId;var ne=i.EXTENT/this.tileSize;this.workerOptions=i.extend({source:this.id,cluster:O.cluster||!1,geojsonVtOptions:{buffer:(O.buffer!==void 0?O.buffer:128)*ne,tolerance:(O.tolerance!==void 0?O.tolerance:.375)*ne,extent:i.EXTENT,maxZoom:this.maxzoom,lineMetrics:O.lineMetrics||!1,generateId:O.generateId||!1},superclusterOptions:{maxZoom:O.clusterMaxZoom!==void 0?Math.min(O.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,minPoints:Math.max(2,O.clusterMinPoints||2),extent:i.EXTENT,radius:(O.clusterRadius||50)*ne,log:!1,generateId:O.generateId||!1},clusterProperties:O.clusterProperties,filter:O.filter},O.workerOptions)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(){var O=this;this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(K){if(K){O.fire(new i.ErrorEvent(K));return}var _e={dataType:"source",sourceDataType:"metadata"};O._collectResourceTiming&&O._resourceTiming&&O._resourceTiming.length>0&&(_e.resourceTiming=O._resourceTiming,O._resourceTiming=[]),O.fire(new i.Event("data",_e))})},R.prototype.onAdd=function(O){this.map=O,this.load()},R.prototype.setData=function(O){var K=this;return this._data=O,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(_e){if(_e){K.fire(new i.ErrorEvent(_e));return}var ne={dataType:"source",sourceDataType:"content"};K._collectResourceTiming&&K._resourceTiming&&K._resourceTiming.length>0&&(ne.resourceTiming=K._resourceTiming,K._resourceTiming=[]),K.fire(new i.Event("data",ne))}),this},R.prototype.getClusterExpansionZoom=function(O,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:O,source:this.id},K),this},R.prototype.getClusterChildren=function(O,K){return this.actor.send("geojson.getClusterChildren",{clusterId:O,source:this.id},K),this},R.prototype.getClusterLeaves=function(O,K,_e,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:O,limit:K,offset:_e},ne),this},R.prototype._updateWorkerData=function(O){var K=this;this._loaded=!1;var _e=i.extend({},this.workerOptions),ne=this._data;typeof ne=="string"?(_e.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ne),i.ResourceType.Source),_e.request.collectResourceTiming=this._collectResourceTiming):_e.data=JSON.stringify(ne),this.actor.send(this.type+".loadData",_e,function(Le,Ze){K._removed||Ze&&Ze.abandoned||(K._loaded=!0,Ze&&Ze.resourceTiming&&Ze.resourceTiming[K.id]&&(K._resourceTiming=Ze.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:_e.source},null),O(Le))})},R.prototype.loaded=function(){return this._loaded},R.prototype.loadTile=function(O,K){var _e=this,ne=O.actor?"reloadTile":"loadTile";O.actor=this.actor;var Le={type:this.type,uid:O.uid,tileID:O.tileID,zoom:O.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};O.request=this.actor.send(ne,Le,function(Ze,Ct){return delete O.request,O.unloadVectorData(),O.aborted?K(null):Ze?K(Ze):(O.loadVectorData(Ct,_e.map.painter,ne==="reloadTile"),K(null))})},R.prototype.abortTile=function(O){O.request&&(O.request.cancel(),delete O.request),O.aborted=!0},R.prototype.unloadTile=function(O){O.unloadVectorData(),this.actor.send("removeTile",{uid:O.uid,type:this.type,source:this.id})},R.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},R.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},R.prototype.hasTransition=function(){return!1},R}(i.Evented),Pe=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Ce=function(Y){function R(J,O,K,_e){Y.call(this),this.id=J,this.dispatcher=K,this.coordinates=O.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(_e),this.options=O}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(O,K){var _e=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ne,Le){_e._loaded=!0,ne?_e.fire(new i.ErrorEvent(ne)):Le&&(_e.image=Le,O&&(_e.coordinates=O),K&&K(),_e._finishLoading())})},R.prototype.loaded=function(){return this._loaded},R.prototype.updateImage=function(O){var K=this;return!this.image||!O.url?this:(this.options.url=O.url,this.load(O.coordinates,function(){K.texture=null}),this)},R.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},R.prototype.onAdd=function(O){this.map=O,this.load()},R.prototype.setCoordinates=function(O){var K=this;this.coordinates=O;var _e=O.map(i.MercatorCoordinate.fromLngLat);this.tileID=de(_e),this.minzoom=this.maxzoom=this.tileID.z;var ne=_e.map(function(Le){return K.tileID.getTilePoint(Le)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(ne[0].x,ne[0].y,0,0),this._boundsArray.emplaceBack(ne[1].x,ne[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(ne[3].x,ne[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(ne[2].x,ne[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},R.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,Pe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(O,this.image,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var _e in this.tiles){var ne=this.tiles[_e];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},R.prototype.loadTile=function(O,K){this.tileID&&this.tileID.equals(O.tileID.canonical)?(this.tiles[String(O.tileID.wrap)]=O,O.buckets={},K(null)):(O.state="errored",K(null))},R.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},R.prototype.hasTransition=function(){return!1},R}(i.Evented);function de(Y){for(var R=1/0,J=1/0,O=-1/0,K=-1/0,_e=0,ne=Y;_eK.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+K.start(0)+" and "+K.end(0)+"-second mark."))):this.video.currentTime=O}},R.prototype.getVideo=function(){return this.video},R.prototype.onAdd=function(O){this.map||(this.map=O,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},R.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,Pe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE),K.texSubImage2D(K.TEXTURE_2D,0,0,0,K.RGBA,K.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(O,this.video,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var _e in this.tiles){var ne=this.tiles[_e];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},R.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},R.prototype.hasTransition=function(){return this.video&&!this.video.paused},R}(Ce),ke=function(Y){function R(J,O,K,_e){Y.call(this,J,O,K,_e),O.coordinates?(!Array.isArray(O.coordinates)||O.coordinates.length!==4||O.coordinates.some(function(ne){return!Array.isArray(ne)||ne.length!==2||ne.some(function(Le){return typeof Le!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "coordinates"'))),O.animate&&typeof O.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),O.canvas?typeof O.canvas!="string"&&!(O.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "canvas"'))),this.options=O,this.animate=O.animate!==void 0?O.animate:!0}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},R.prototype.getCanvas=function(){return this.canvas},R.prototype.onAdd=function(O){this.map=O,this.load(),this.canvas&&this.animate&&this.play()},R.prototype.onRemove=function(){this.pause()},R.prototype.prepare=function(){var O=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,O=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,O=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var K=this.map.painter.context,_e=K.gl;this.boundsBuffer||(this.boundsBuffer=K.createVertexBuffer(this._boundsArray,Pe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(O||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(K,this.canvas,_e.RGBA,{premultiply:!0});for(var ne in this.tiles){var Le=this.tiles[ne];Le.state!=="loaded"&&(Le.state="loaded",Le.texture=this.texture)}}},R.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},R.prototype.hasTransition=function(){return this._playing},R.prototype._hasInvalidDimensions=function(){for(var O=0,K=[this.canvas.width,this.canvas.height];Othis.max){var Le=this._getAndRemoveByKey(this.order[0]);Le&&this.onRemove(Le)}return this},it.prototype.has=function(R){return R.wrapped().key in this.data},it.prototype.getAndRemove=function(R){return this.has(R)?this._getAndRemoveByKey(R.wrapped().key):null},it.prototype._getAndRemoveByKey=function(R){var J=this.data[R].shift();return J.timeout&&clearTimeout(J.timeout),this.data[R].length===0&&delete this.data[R],this.order.splice(this.order.indexOf(R),1),J.value},it.prototype.getByKey=function(R){var J=this.data[R];return J?J[0].value:null},it.prototype.get=function(R){if(!this.has(R))return null;var J=this.data[R.wrapped().key][0];return J.value},it.prototype.remove=function(R,J){if(!this.has(R))return this;var O=R.wrapped().key,K=J===void 0?0:this.data[O].indexOf(J),_e=this.data[O][K];return this.data[O].splice(K,1),_e.timeout&&clearTimeout(_e.timeout),this.data[O].length===0&&delete this.data[O],this.onRemove(_e.value),this.order.splice(this.order.indexOf(O),1),this},it.prototype.setMaxSize=function(R){for(this.max=R;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},it.prototype.filter=function(R){var J=[];for(var O in this.data)for(var K=0,_e=this.data[O];K<_e.length;K+=1){var ne=_e[K];R(ne.value)||J.push(ne)}for(var Le=0,Ze=J;Le1||(Math.abs(Er)>1&&(Math.abs(Er+Je)===1?Er+=Je:Math.abs(Er-Je)===1&&(Er-=Je)),!(!dr.dem||!Ct.dem)&&(Ct.dem.backfillBorder(dr.dem,Er,lr),Ct.neighboringTiles&&Ct.neighboringTiles[ht]&&(Ct.neighboringTiles[ht].backfilled=!0)))}},R.prototype.getTile=function(O){return this.getTileByID(O.key)},R.prototype.getTileByID=function(O){return this._tiles[O]},R.prototype._retainLoadedChildren=function(O,K,_e,ne){for(var Le in this._tiles){var Ze=this._tiles[Le];if(!(ne[Le]||!Ze.hasData()||Ze.tileID.overscaledZ<=K||Ze.tileID.overscaledZ>_e)){for(var Ct=Ze.tileID;Ze&&Ze.tileID.overscaledZ>K+1;){var dr=Ze.tileID.scaledTo(Ze.tileID.overscaledZ-1);Ze=this._tiles[dr.key],Ze&&Ze.hasData()&&(Ct=dr)}for(var Er=Ct;Er.overscaledZ>K;)if(Er=Er.scaledTo(Er.overscaledZ-1),O[Er.key]){ne[Ct.key]=Ct;break}}}},R.prototype.findLoadedParent=function(O,K){if(O.key in this._loadedParentTiles){var _e=this._loadedParentTiles[O.key];return _e&&_e.tileID.overscaledZ>=K?_e:null}for(var ne=O.overscaledZ-1;ne>=K;ne--){var Le=O.scaledTo(ne),Ze=this._getLoadedTile(Le);if(Ze)return Ze}},R.prototype._getLoadedTile=function(O){var K=this._tiles[O.key];if(K&&K.hasData())return K;var _e=this._cache.getByKey(O.wrapped().key);return _e},R.prototype.updateCacheSize=function(O){var K=Math.ceil(O.width/this._source.tileSize)+1,_e=Math.ceil(O.height/this._source.tileSize)+1,ne=K*_e,Le=5,Ze=Math.floor(ne*Le),Ct=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ze):Ze;this._cache.setMaxSize(Ct)},R.prototype.handleWrapJump=function(O){var K=this._prevLng===void 0?O:this._prevLng,_e=O-K,ne=_e/360,Le=Math.round(ne);if(this._prevLng=O,Le){var Ze={};for(var Ct in this._tiles){var dr=this._tiles[Ct];dr.tileID=dr.tileID.unwrapTo(dr.tileID.wrap+Le),Ze[dr.tileID.key]=dr}this._tiles=Ze;for(var Er in this._timers)clearTimeout(this._timers[Er]),delete this._timers[Er];for(var lr in this._tiles){var Je=this._tiles[lr];this._setTileReloadTimer(lr,Je)}}},R.prototype.update=function(O){var K=this;if(this.transform=O,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(O),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var _e;this.used?this._source.tileID?_e=O.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(ci){return new i.OverscaledTileID(ci.canonical.z,ci.wrap,ci.canonical.z,ci.canonical.x,ci.canonical.y)}):(_e=O.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(_e=_e.filter(function(ci){return K._source.hasTile(ci)}))):_e=[];var ne=O.coveringZoomLevel(this._source),Le=Math.max(ne-R.maxOverzooming,this._source.minzoom),Ze=Math.max(ne+R.maxUnderzooming,this._source.minzoom),Ct=this._updateRetainedTiles(_e,ne);if(Gr(this._source.type)){for(var dr={},Er={},lr=Object.keys(Ct),Je=0,ht=lr;Jethis._source.maxzoom){var Qt=Kt.children(this._source.maxzoom)[0],ur=this.getTile(Qt);if(ur&&ur.hasData()){_e[Qt.key]=Qt;continue}}else{var er=Kt.children(this._source.maxzoom);if(_e[er[0].key]&&_e[er[1].key]&&_e[er[2].key]&&_e[er[3].key])continue}for(var Ot=sr.wasRequested(),Jt=Kt.overscaledZ-1;Jt>=Le;--Jt){var Lt=Kt.scaledTo(Jt);if(ne[Lt.key]||(ne[Lt.key]=!0,sr=this.getTile(Lt),!sr&&Ot&&(sr=this._addTile(Lt)),sr&&(_e[Lt.key]=Lt,Ot=sr.wasRequested(),sr.hasData())))break}}}return _e},R.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var O in this._tiles){for(var K=[],_e=void 0,ne=this._tiles[O].tileID;ne.overscaledZ>0;){if(ne.key in this._loadedParentTiles){_e=this._loadedParentTiles[ne.key];break}K.push(ne.key);var Le=ne.scaledTo(ne.overscaledZ-1);if(_e=this._getLoadedTile(Le),_e)break;ne=Le}for(var Ze=0,Ct=K;Ze0)&&(K.hasData()&&K.state!=="reloading"?this._cache.add(K.tileID,K,K.getExpiryTimeout()):(K.aborted=!0,this._abortTile(K),this._unloadTile(K))))},R.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var O in this._tiles)this._removeTile(O);this._cache.reset()},R.prototype.tilesIn=function(O,K,_e){var ne=this,Le=[],Ze=this.transform;if(!Ze)return Le;for(var Ct=_e?Ze.getCameraQueryGeometry(O):O,dr=O.map(function(Jt){return Ze.pointCoordinate(Jt)}),Er=Ct.map(function(Jt){return Ze.pointCoordinate(Jt)}),lr=this.getIds(),Je=1/0,ht=1/0,bt=-1/0,Kt=-1/0,sr=0,Qt=Er;sr=0&&Cn[1].y+ci>=0){var Ki=dr.map(function(Xa){return Tr.getTilePoint(Xa)}),yn=Er.map(function(Xa){return Tr.getTilePoint(Xa)});Le.push({tile:Lt,tileID:Tr,queryGeometry:Ki,cameraQueryGeometry:yn,scale:Nr})}}},Ot=0;Ot=i.browser.now())return!0}return!1},R.prototype.setFeatureState=function(O,K,_e){O=O||"_geojsonTileLayer",this._state.updateState(O,K,_e)},R.prototype.removeFeatureState=function(O,K,_e){O=O||"_geojsonTileLayer",this._state.removeFeatureState(O,K,_e)},R.prototype.getFeatureState=function(O,K){return O=O||"_geojsonTileLayer",this._state.getState(O,K)},R.prototype.setDependencies=function(O,K,_e){var ne=this._tiles[O];ne&&ne.setDependencies(K,_e)},R.prototype.reloadTilesForDependencies=function(O,K){for(var _e in this._tiles){var ne=this._tiles[_e];ne.hasDependency(O,K)&&this._reloadTile(_e,"reloading")}this._cache.filter(function(Le){return!Le.hasDependency(O,K)})},R}(i.Evented);Ur.maxOverzooming=10,Ur.maxUnderzooming=3;function Ir(Y,R){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),O=Math.abs(R.wrap*2)-+(R.wrap<0);return Y.overscaledZ-R.overscaledZ||O-J||R.canonical.y-Y.canonical.y||R.canonical.x-Y.canonical.x}function Gr(Y){return Y==="raster"||Y==="image"||Y==="video"}function jr(){return new i.window.Worker(cu.workerUrl)}var yi="mapboxgl_preloaded_worker_pool",Ei=function(){this.active={}};Ei.prototype.acquire=function(R){if(!this.workers)for(this.workers=[];this.workers.length0?(K-ne)/Le:0;return this.points[_e].mult(1-Ze).add(this.points[J].mult(Ze))};var ni=function(R,J,O){var K=this.boxCells=[],_e=this.circleCells=[];this.xCellCount=Math.ceil(R/O),this.yCellCount=Math.ceil(J/O);for(var ne=0;nethis.width||K<0||J>this.height)return _e?!1:[];var Le=[];if(R<=0&&J<=0&&this.width<=O&&this.height<=K){if(_e)return!0;for(var Ze=0;Ze0:Le}},ni.prototype._queryCircle=function(R,J,O,K,_e){var ne=R-O,Le=R+O,Ze=J-O,Ct=J+O;if(Le<0||ne>this.width||Ct<0||Ze>this.height)return K?!1:[];var dr=[],Er={hitTest:K,circle:{x:R,y:J,radius:O},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Ze,Le,Ct,this._queryCellCircle,dr,Er,_e),K?dr.length>0:dr},ni.prototype.query=function(R,J,O,K,_e){return this._query(R,J,O,K,!1,_e)},ni.prototype.hitTest=function(R,J,O,K,_e){return this._query(R,J,O,K,!0,_e)},ni.prototype.hitTestCircle=function(R,J,O,K){return this._queryCircle(R,J,O,!0,K)},ni.prototype._queryCell=function(R,J,O,K,_e,ne,Le,Ze){var Ct=Le.seenUids,dr=this.boxCells[_e];if(dr!==null)for(var Er=this.bboxes,lr=0,Je=dr;lr=Er[bt+0]&&K>=Er[bt+1]&&(!Ze||Ze(this.boxKeys[ht]))){if(Le.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[ht],x1:Er[bt],y1:Er[bt+1],x2:Er[bt+2],y2:Er[bt+3]})}}}var Kt=this.circleCells[_e];if(Kt!==null)for(var sr=this.circles,Qt=0,ur=Kt;QtLe*Le+Ze*Ze},ni.prototype._circleAndRectCollide=function(R,J,O,K,_e,ne,Le){var Ze=(ne-K)/2,Ct=Math.abs(R-(K+Ze));if(Ct>Ze+O)return!1;var dr=(Le-_e)/2,Er=Math.abs(J-(_e+dr));if(Er>dr+O)return!1;if(Ct<=Ze||Er<=dr)return!0;var lr=Ct-Ze,Je=Er-dr;return lr*lr+Je*Je<=O*O};function Zi(Y,R,J,O,K){var _e=i.create();return R?(i.scale(_e,_e,[1/K,1/K,1]),J||i.rotateZ(_e,_e,O.angle)):i.multiply(_e,O.labelPlaneMatrix,Y),_e}function aa(Y,R,J,O,K){if(R){var _e=i.clone(Y);return i.scale(_e,_e,[K,K,1]),J||i.rotateZ(_e,_e,-O.angle),_e}else return O.glCoordMatrix}function Mn(Y,R){var J=[Y.x,Y.y,0,1];kn(J,J,R);var O=J[3];return{point:new i.Point(J[0]/O,J[1]/O),signedDistanceFromCamera:O}}function Un(Y,R){return .5+.5*(Y/R)}function Ga(Y,R){var J=Y[0]/Y[3],O=Y[1]/Y[3],K=J>=-R[0]&&J<=R[0]&&O>=-R[1]&&O<=R[1];return K}function ma(Y,R,J,O,K,_e,ne,Le){var Ze=O?Y.textSizeData:Y.iconSizeData,Ct=i.evaluateSizeForZoom(Ze,J.transform.zoom),dr=[256/J.width*2+1,256/J.height*2+1],Er=O?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;Er.clear();for(var lr=Y.lineVertexArray,Je=O?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,ht=J.transform.width/J.transform.height,bt=!1,Kt=0;Kt_e)return{useVertical:!0}}return(Y===i.WritingMode.vertical?R.yJ.x)?{needsFlipping:!0}:null}function so(Y,R,J,O,K,_e,ne,Le,Ze,Ct,dr,Er,lr,Je){var ht=R/24,bt=Y.lineOffsetX*ht,Kt=Y.lineOffsetY*ht,sr;if(Y.numGlyphs>1){var Qt=Y.glyphStartIndex+Y.numGlyphs,ur=Y.lineStartIndex,er=Y.lineStartIndex+Y.lineLength,Ot=oa(ht,Le,bt,Kt,J,dr,Er,Y,Ze,_e,lr);if(!Ot)return{notEnoughRoom:!0};var Jt=Mn(Ot.first.point,ne).point,Lt=Mn(Ot.last.point,ne).point;if(O&&!J){var Tr=ka(Y.writingMode,Jt,Lt,Je);if(Tr)return Tr}sr=[Ot.first];for(var Nr=Y.glyphStartIndex+1;Nr0?yn.point:Kr(Er,Ki,ci,1,K),ca=ka(Y.writingMode,ci,Xa,Je);if(ca)return ca}var Tn=Ia(ht*Le.getoffsetX(Y.glyphStartIndex),bt,Kt,J,dr,Er,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Ze,_e,lr);if(!Tn)return{notEnoughRoom:!0};sr=[Tn]}for(var Pn=0,Nn=sr;Pn0?1:-1,ht=0;O&&(Je*=-1,ht=Math.PI),Je<0&&(ht+=Math.PI);for(var bt=Je>0?Le+ne:Le+ne+1,Kt=K,sr=K,Qt=0,ur=0,er=Math.abs(lr),Ot=[];Qt+ur<=er;){if(bt+=Je,bt=Ze)return null;if(sr=Kt,Ot.push(Kt),Kt=Er[bt],Kt===void 0){var Jt=new i.Point(Ct.getx(bt),Ct.gety(bt)),Lt=Mn(Jt,dr);if(Lt.signedDistanceFromCamera>0)Kt=Er[bt]=Lt.point;else{var Tr=bt-Je,Nr=Qt===0?_e:new i.Point(Ct.getx(Tr),Ct.gety(Tr));Kt=Kr(Nr,Jt,sr,er-Qt+1,dr)}}Qt+=ur,ur=sr.dist(Kt)}var ci=(er-Qt)/ur,Cn=Kt.sub(sr),Ki=Cn.mult(ci)._add(sr);Ki._add(Cn._unit()._perp()._mult(J*Je));var yn=ht+Math.atan2(Kt.y-sr.y,Kt.x-sr.x);return Ot.push(Ki),{point:Ki,angle:yn,path:Ot}}var Yo=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function fa(Y,R){for(var J=0;J=1;xa--)Nn.push(Tn.path[xa]);for(var Zo=1;Zo0){for(var vu=Nn[0].clone(),zu=Nn[0].clone(),$u=1;$u=yn.x&&zu.x<=Xa.x&&vu.y>=yn.y&&zu.y<=Xa.y?Du=[Nn]:zu.xXa.x||zu.yXa.y?Du=[]:Du=i.clipLine([Nn],yn.x,yn.y,Xa.x,Xa.y)}for(var Vf=0,wd=Du;Vf=this.screenRightBoundary||Kthis.screenBottomBoundary},ys.prototype.isInsideGrid=function(R,J,O,K){return O>=0&&R=0&&J0){var er;return this.prevPlacement&&this.prevPlacement.variableOffsets[lr.crossTileID]&&this.prevPlacement.placements[lr.crossTileID]&&this.prevPlacement.placements[lr.crossTileID].text&&(er=this.prevPlacement.variableOffsets[lr.crossTileID].anchor),this.variableOffsets[lr.crossTileID]={textOffset:Kt,width:O,height:K,anchor:R,textBoxScale:_e,prevAnchor:er},this.markUsedJustification(Je,R,lr,ht),Je.allowVerticalPlacement&&(this.markUsedOrientation(Je,ht,lr),this.placedOrientations[lr.crossTileID]=ht),{shift:sr,placedGlyphBoxes:Qt}}},Po.prototype.placeLayerBucketPart=function(R,J,O){var K=this,_e=R.parameters,ne=_e.bucket,Le=_e.layout,Ze=_e.posMatrix,Ct=_e.textLabelPlaneMatrix,dr=_e.labelToScreenMatrix,Er=_e.textPixelRatio,lr=_e.holdingForFade,Je=_e.collisionBoxArray,ht=_e.partiallyEvaluatedTextSize,bt=_e.collisionGroup,Kt=Le.get("text-optional"),sr=Le.get("icon-optional"),Qt=Le.get("text-allow-overlap"),ur=Le.get("icon-allow-overlap"),er=Le.get("text-rotation-alignment")==="map",Ot=Le.get("text-pitch-alignment")==="map",Jt=Le.get("icon-text-fit")!=="none",Lt=Le.get("symbol-z-order")==="viewport-y",Tr=Qt&&(ur||!ne.hasIconData()||sr),Nr=ur&&(Qt||!ne.hasTextData()||Kt);!ne.collisionArrays&&Je&&ne.deserializeCollisionBoxes(Je);var ci=function(Tn,Pn){if(!J[Tn.crossTileID]){if(lr){K.placements[Tn.crossTileID]=new fo(!1,!1,!1);return}var Nn=!1,xa=!1,Zo=!0,ru=null,yu={box:null,offscreen:null},Du={box:null,offscreen:null},vu=null,zu=null,$u=null,Vf=0,wd=0,Ad=0;Pn.textFeatureIndex?Vf=Pn.textFeatureIndex:Tn.useRuntimeCollisionCircles&&(Vf=Tn.featureIndex),Pn.verticalTextFeatureIndex&&(wd=Pn.verticalTextFeatureIndex);var Td=Pn.textBox;if(Td){var Kp=function(wc){var Wf=i.WritingMode.horizontal;if(ne.allowVerticalPlacement&&!wc&&K.prevPlacement){var Ed=K.prevPlacement.placedOrientations[Tn.crossTileID];Ed&&(K.placedOrientations[Tn.crossTileID]=Ed,Wf=Ed,K.markUsedOrientation(ne,Wf,Tn))}return Wf},cm=function(wc,Wf){if(ne.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&Pn.verticalTextBox)for(var Ed=0,sg=ne.writingModes;Ed0&&(Hd=Hd.filter(function(wc){return wc!==Md.anchor}),Hd.unshift(Md.anchor))}var Lp=function(wc,Wf,Ed){for(var sg=wc.x2-wc.x1,T1=wc.y2-wc.y1,ic=Tn.textBoxScale,qx=Jt&&!ur?Wf:null,ay={box:[],offscreen:!1},Mw=Qt?Hd.length*2:Hd.length,zp=0;zp=Hd.length,Nx=K.attemptAnchorPlacement(oy,wc,sg,T1,ic,er,Ot,Er,Ze,bt,Ew,Tn,ne,Ed,qx);if(Nx&&(ay=Nx.placedGlyphBoxes,ay&&ay.box&&ay.box.length)){Nn=!0,ru=Nx.shift;break}}return ay},Jp=function(){return Lp(Td,Pn.iconBox,i.WritingMode.horizontal)},Pp=function(){var wc=Pn.verticalTextBox,Wf=yu&&yu.box&&yu.box.length;return ne.allowVerticalPlacement&&!Wf&&Tn.numVerticalGlyphVertices>0&&wc?Lp(wc,Pn.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};cm(Jp,Pp),yu&&(Nn=yu.box,Zo=yu.offscreen);var ng=Kp(yu&&yu.box);if(!Nn&&K.prevPlacement){var hm=K.prevPlacement.variableOffsets[Tn.crossTileID];hm&&(K.variableOffsets[Tn.crossTileID]=hm,K.markUsedJustification(ne,hm.anchor,Tn,ng))}}else{var pv=function(wc,Wf){var Ed=K.collisionIndex.placeCollisionBox(wc,Qt,Er,Ze,bt.predicate);return Ed&&Ed.box&&Ed.box.length&&(K.markUsedOrientation(ne,Wf,Tn),K.placedOrientations[Tn.crossTileID]=Wf),Ed},Sd=function(){return pv(Td,i.WritingMode.horizontal)},vv=function(){var wc=Pn.verticalTextBox;return ne.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&wc?pv(wc,i.WritingMode.vertical):{box:null,offscreen:null}};cm(Sd,vv),Kp(yu&&yu.box&&yu.box.length)}}if(vu=yu,Nn=vu&&vu.box&&vu.box.length>0,Zo=vu&&vu.offscreen,Tn.useRuntimeCollisionCircles){var vh=ne.text.placedSymbolArray.get(Tn.centerJustifiedTextSymbolIndex),dm=i.evaluateSizeForFeature(ne.textSizeData,ht,vh),ag=Le.get("text-padding"),jh=Tn.collisionCircleDiameter;zu=K.collisionIndex.placeCollisionCircles(Qt,vh,ne.lineVertexArray,ne.glyphOffsetArray,dm,Ze,Ct,dr,O,Ot,bt.predicate,jh,ag),Nn=Qt||zu.circles.length>0&&!zu.collisionDetected,Zo=Zo&&zu.offscreen}if(Pn.iconFeatureIndex&&(Ad=Pn.iconFeatureIndex),Pn.iconBox){var ry=function(wc){var Wf=Jt&&ru?Co(wc,ru.x,ru.y,er,Ot,K.transform.angle):wc;return K.collisionIndex.placeCollisionBox(Wf,ur,Er,Ze,bt.predicate)};Du&&Du.box&&Du.box.length&&Pn.verticalIconBox?($u=ry(Pn.verticalIconBox),xa=$u.box.length>0):($u=ry(Pn.iconBox),xa=$u.box.length>0),Zo=Zo&&$u.offscreen}var w1=Kt||Tn.numHorizontalGlyphVertices===0&&Tn.numVerticalGlyphVertices===0,A1=sr||Tn.numIconVertices===0;if(!w1&&!A1?xa=Nn=xa&&Nn:A1?w1||(xa=xa&&Nn):Nn=xa&&Nn,Nn&&vu&&vu.box&&(Du&&Du.box&&wd?K.collisionIndex.insertCollisionBox(vu.box,Le.get("text-ignore-placement"),ne.bucketInstanceId,wd,bt.ID):K.collisionIndex.insertCollisionBox(vu.box,Le.get("text-ignore-placement"),ne.bucketInstanceId,Vf,bt.ID)),xa&&$u&&K.collisionIndex.insertCollisionBox($u.box,Le.get("icon-ignore-placement"),ne.bucketInstanceId,Ad,bt.ID),zu&&(Nn&&K.collisionIndex.insertCollisionCircles(zu.circles,Le.get("text-ignore-placement"),ne.bucketInstanceId,Vf,bt.ID),O)){var og=ne.bucketInstanceId,iy=K.collisionCircleArrays[og];iy===void 0&&(iy=K.collisionCircleArrays[og]=new mn);for(var ny=0;ny=0;--Ki){var yn=Cn[Ki];ci(ne.symbolInstances.get(yn),ne.collisionArrays[yn])}else for(var Xa=R.symbolInstanceStart;Xa=0&&(ne>=0&&dr!==ne?R.text.placedSymbolArray.get(dr).crossTileID=0:R.text.placedSymbolArray.get(dr).crossTileID=O.crossTileID)}},Po.prototype.markUsedOrientation=function(R,J,O){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,_e=J===i.WritingMode.vertical?J:0,ne=[O.leftJustifiedTextSymbolIndex,O.centerJustifiedTextSymbolIndex,O.rightJustifiedTextSymbolIndex],Le=0,Ze=ne;Le0||Ot>0,ci=ur.numIconVertices>0,Cn=K.placedOrientations[ur.crossTileID],Ki=Cn===i.WritingMode.vertical,yn=Cn===i.WritingMode.horizontal||Cn===i.WritingMode.horizontalOnly;if(Nr){var Xa=Qo(Tr.text),ca=Ki?Wi:Xa;ht(R.text,er,ca);var Tn=yn?Wi:Xa;ht(R.text,Ot,Tn);var Pn=Tr.text.isHidden();[ur.rightJustifiedTextSymbolIndex,ur.centerJustifiedTextSymbolIndex,ur.leftJustifiedTextSymbolIndex].forEach(function(Ad){Ad>=0&&(R.text.placedSymbolArray.get(Ad).hidden=Pn||Ki?1:0)}),ur.verticalPlacedTextSymbolIndex>=0&&(R.text.placedSymbolArray.get(ur.verticalPlacedTextSymbolIndex).hidden=Pn||yn?1:0);var Nn=K.variableOffsets[ur.crossTileID];Nn&&K.markUsedJustification(R,Nn.anchor,ur,Cn);var xa=K.placedOrientations[ur.crossTileID];xa&&(K.markUsedJustification(R,"left",ur,xa),K.markUsedOrientation(R,xa,ur))}if(ci){var Zo=Qo(Tr.icon),ru=!(lr&&ur.verticalPlacedIconSymbolIndex&&Ki);if(ur.placedIconSymbolIndex>=0){var yu=ru?Zo:Wi;ht(R.icon,ur.numIconVertices,yu),R.icon.placedSymbolArray.get(ur.placedIconSymbolIndex).hidden=Tr.icon.isHidden()}if(ur.verticalPlacedIconSymbolIndex>=0){var Du=ru?Wi:Zo;ht(R.icon,ur.numVerticalIconVertices,Du),R.icon.placedSymbolArray.get(ur.verticalPlacedIconSymbolIndex).hidden=Tr.icon.isHidden()}}if(R.hasIconCollisionBoxData()||R.hasTextCollisionBoxData()){var vu=R.collisionArrays[Qt];if(vu){var zu=new i.Point(0,0);if(vu.textBox||vu.verticalTextBox){var $u=!0;if(Ct){var Vf=K.variableOffsets[Jt];Vf?(zu=ws(Vf.anchor,Vf.width,Vf.height,Vf.textOffset,Vf.textBoxScale),dr&&zu._rotate(Er?K.transform.angle:-K.transform.angle)):$u=!1}vu.textBox&&ji(R.textCollisionBox.collisionVertexArray,Tr.text.placed,!$u||Ki,zu.x,zu.y),vu.verticalTextBox&&ji(R.textCollisionBox.collisionVertexArray,Tr.text.placed,!$u||yn,zu.x,zu.y)}var wd=!!(!yn&&vu.verticalIconBox);vu.iconBox&&ji(R.iconCollisionBox.collisionVertexArray,Tr.icon.placed,wd,lr?zu.x:0,lr?zu.y:0),vu.verticalIconBox&&ji(R.iconCollisionBox.collisionVertexArray,Tr.icon.placed,!wd,lr?zu.x:0,lr?zu.y:0)}}},Kt=0;KtR},Po.prototype.setStale=function(){this.stale=!0};function ji(Y,R,J,O,K){Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0)}var gn=Math.pow(2,25),Ps=Math.pow(2,24),Ha=Math.pow(2,17),Sn=Math.pow(2,16),ao=Math.pow(2,9),Ba=Math.pow(2,8),Ko=Math.pow(2,1);function Qo(Y){if(Y.opacity===0&&!Y.placed)return 0;if(Y.opacity===1&&Y.placed)return 4294967295;var R=Y.placed?1:0,J=Math.floor(Y.opacity*127);return J*gn+R*Ps+J*Ha+R*Sn+J*ao+R*Ba+J*Ko+R}var Wi=0,Sa=function(R){this._sortAcrossTiles=R.layout.get("symbol-z-order")!=="viewport-y"&&R.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Sa.prototype.continuePlacement=function(R,J,O,K,_e){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Le=R[this._currentPlacementIndex],Ze=J[Le],Ct=this.placement.collisionIndex.transform.zoom;if(Ze.type==="symbol"&&(!Ze.minzoom||Ze.minzoom<=Ct)&&(!Ze.maxzoom||Ze.maxzoom>Ct)){this._inProgressLayer||(this._inProgressLayer=new Sa(Ze));var dr=this._inProgressLayer.continuePlacement(O[Ze.source],this.placement,this._showCollisionBoxes,Ze,ne);if(dr)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Qa.prototype.commit=function(R){return this.placement.commit(R),this.placement};var vn=512/i.EXTENT/2,da=function(R,J,O){this.tileID=R,this.indexedSymbolInstances={},this.bucketInstanceId=O;for(var K=0;KR.overscaledZ)for(var Ct in Ze){var dr=Ze[Ct];dr.tileID.isChildOf(R)&&dr.findMatches(J.symbolInstances,R,ne)}else{var Er=R.scaledTo(Number(Le)),lr=Ze[Er.key];lr&&lr.findMatches(J.symbolInstances,R,ne)}}for(var Je=0;Je0)throw new Error("Unimplemented: "+ne.map(function(Le){return Le.command}).join(", ")+".");return _e.forEach(function(Le){Le.command!=="setTransition"&&K[Le.command].apply(K,Le.args)}),this.stylesheet=O,!0},R.prototype.addImage=function(O,K){if(this.getImage(O))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(O,K),this._afterImageUpdated(O)},R.prototype.updateImage=function(O,K){this.imageManager.updateImage(O,K)},R.prototype.getImage=function(O){return this.imageManager.getImage(O)},R.prototype.removeImage=function(O){if(!this.getImage(O))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(O),this._afterImageUpdated(O)},R.prototype._afterImageUpdated=function(O){this._availableImages=this.imageManager.listImages(),this._changedImages[O]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},R.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},R.prototype.addSource=function(O,K,_e){var ne=this;if(_e===void 0&&(_e={}),this._checkLoaded(),this.sourceCaches[O]!==void 0)throw new Error("There is already a source with this ID");if(!K.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(K).join(", ")+".");var Le=["vector","raster","geojson","video","image"],Ze=Le.indexOf(K.type)>=0;if(!(Ze&&this._validate(i.validateStyle.source,"sources."+O,K,null,_e))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var Ct=this.sourceCaches[O]=new Ur(O,K,this.dispatcher);Ct.style=this,Ct.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:Ct.serialize(),sourceId:O}}),Ct.onAdd(this.map),this._changed=!0}},R.prototype.removeSource=function(O){if(this._checkLoaded(),this.sourceCaches[O]===void 0)throw new Error("There is no source with this ID");for(var K in this._layers)if(this._layers[K].source===O)return this.fire(new i.ErrorEvent(new Error('Source "'+O+'" cannot be removed while layer "'+K+'" is using it.')));var _e=this.sourceCaches[O];delete this.sourceCaches[O],delete this._updatedSources[O],_e.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:O})),_e.setEventedParent(null),_e.clearTiles(),_e.onRemove&&_e.onRemove(this.map),this._changed=!0},R.prototype.setGeoJSONSourceData=function(O,K){this._checkLoaded();var _e=this.sourceCaches[O].getSource();_e.setData(K),this._changed=!0},R.prototype.getSource=function(O){return this.sourceCaches[O]&&this.sourceCaches[O].getSource()},R.prototype.addLayer=function(O,K,_e){_e===void 0&&(_e={}),this._checkLoaded();var ne=O.id;if(this.getLayer(ne)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ne+'" already exists on this map')));return}var Le;if(O.type==="custom"){if(ps(this,i.validateCustomStyleLayer(O)))return;Le=i.createStyleLayer(O)}else{if(typeof O.source=="object"&&(this.addSource(ne,O.source),O=i.clone$1(O),O=i.extend(O,{source:ne})),this._validate(i.validateStyle.layer,"layers."+ne,O,{arrayIndex:-1},_e))return;Le=i.createStyleLayer(O),this._validateLayer(Le),Le.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[Le.id]=Le.serialize()}var Ze=K?this._order.indexOf(K):this._order.length;if(K&&Ze===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Ze,0,ne),this._layerOrderChanged=!0,this._layers[ne]=Le,this._removedLayers[ne]&&Le.source&&Le.type!=="custom"){var Ct=this._removedLayers[ne];delete this._removedLayers[ne],Ct.type!==Le.type?this._updatedSources[Le.source]="clear":(this._updatedSources[Le.source]="reload",this.sourceCaches[Le.source].pause())}this._updateLayer(Le),Le.onAdd&&Le.onAdd(this.map)},R.prototype.moveLayer=function(O,K){this._checkLoaded(),this._changed=!0;var _e=this._layers[O];if(!_e){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be moved.")));return}if(O!==K){var ne=this._order.indexOf(O);this._order.splice(ne,1);var Le=K?this._order.indexOf(K):this._order.length;if(K&&Le===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}this._order.splice(Le,0,O),this._layerOrderChanged=!0}},R.prototype.removeLayer=function(O){this._checkLoaded();var K=this._layers[O];if(!K){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be removed.")));return}K.setEventedParent(null);var _e=this._order.indexOf(O);this._order.splice(_e,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[O]=K,delete this._layers[O],delete this._serializedLayers[O],delete this._updatedLayers[O],delete this._updatedPaintProps[O],K.onRemove&&K.onRemove(this.map)},R.prototype.getLayer=function(O){return this._layers[O]},R.prototype.hasLayer=function(O){return O in this._layers},R.prototype.setLayerZoomRange=function(O,K,_e){this._checkLoaded();var ne=this.getLayer(O);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot have zoom extent.")));return}ne.minzoom===K&&ne.maxzoom===_e||(K!=null&&(ne.minzoom=K),_e!=null&&(ne.maxzoom=_e),this._updateLayer(ne))},R.prototype.setFilter=function(O,K,_e){_e===void 0&&(_e={}),this._checkLoaded();var ne=this.getLayer(O);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(ne.filter,K)){if(K==null){ne.filter=void 0,this._updateLayer(ne);return}this._validate(i.validateStyle.filter,"layers."+ne.id+".filter",K,null,_e)||(ne.filter=i.clone$1(K),this._updateLayer(ne))}},R.prototype.getFilter=function(O){return i.clone$1(this.getLayer(O).filter)},R.prototype.setLayoutProperty=function(O,K,_e,ne){ne===void 0&&(ne={}),this._checkLoaded();var Le=this.getLayer(O);if(!Le){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(Le.getLayoutProperty(K),_e)||(Le.setLayoutProperty(K,_e,ne),this._updateLayer(Le))},R.prototype.getLayoutProperty=function(O,K){var _e=this.getLayer(O);if(!_e){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style.")));return}return _e.getLayoutProperty(K)},R.prototype.setPaintProperty=function(O,K,_e,ne){ne===void 0&&(ne={}),this._checkLoaded();var Le=this.getLayer(O);if(!Le){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(Le.getPaintProperty(K),_e)){var Ze=Le.setPaintProperty(K,_e,ne);Ze&&this._updateLayer(Le),this._changed=!0,this._updatedPaintProps[O]=!0}},R.prototype.getPaintProperty=function(O,K){return this.getLayer(O).getPaintProperty(K)},R.prototype.setFeatureState=function(O,K){this._checkLoaded();var _e=O.source,ne=O.sourceLayer,Le=this.sourceCaches[_e];if(Le===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+_e+"' does not exist in the map's style.")));return}var Ze=Le.getSource().type;if(Ze==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ze==="vector"&&!ne){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}O.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),Le.setFeatureState(ne,O.id,K)},R.prototype.removeFeatureState=function(O,K){this._checkLoaded();var _e=O.source,ne=this.sourceCaches[_e];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+_e+"' does not exist in the map's style.")));return}var Le=ne.getSource().type,Ze=Le==="vector"?O.sourceLayer:void 0;if(Le==="vector"&&!Ze){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(K&&typeof O.id!="string"&&typeof O.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ne.removeFeatureState(Ze,O.id,K)},R.prototype.getFeatureState=function(O){this._checkLoaded();var K=O.source,_e=O.sourceLayer,ne=this.sourceCaches[K];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+K+"' does not exist in the map's style.")));return}var Le=ne.getSource().type;if(Le==="vector"&&!_e){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return O.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ne.getFeatureState(_e,O.id)},R.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},R.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(O){return O.serialize()}),layers:this._serializeLayers(this._order)},function(O){return O!==void 0})},R.prototype._updateLayer=function(O){this._updatedLayers[O.id]=!0,O.source&&!this._updatedSources[O.source]&&this.sourceCaches[O.source].getSource().type!=="raster"&&(this._updatedSources[O.source]="reload",this.sourceCaches[O.source].pause()),this._changed=!0},R.prototype._flattenAndSortRenderedFeatures=function(O){for(var K=this,_e=function(yn){return K._layers[yn].type==="fill-extrusion"},ne={},Le=[],Ze=this._order.length-1;Ze>=0;Ze--){var Ct=this._order[Ze];if(_e(Ct)){ne[Ct]=Ze;for(var dr=0,Er=O;dr=0;Qt--){var ur=this._order[Qt];if(_e(ur))for(var er=Le.length-1;er>=0;er--){var Ot=Le[er].feature;if(ne[Ot.layer.id]>16,Le>>16],u_pixel_coord_lower:[ne&65535,Le&65535]}}function cl(Y,R,J,O){var K=J.imageManager.getPattern(Y.from.toString()),_e=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),Le=ne.width,Ze=ne.height,Ct=Math.pow(2,O.tileID.overscaledZ),dr=O.tileSize*Math.pow(2,J.transform.tileZoom)/Ct,Er=dr*(O.tileID.canonical.x+O.tileID.wrap*Ct),lr=dr*O.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:K.tl,u_pattern_br_a:K.br,u_pattern_tl_b:_e.tl,u_pattern_br_b:_e.br,u_texsize:[Le,Ze],u_mix:R.t,u_pattern_size_a:K.displaySize,u_pattern_size_b:_e.displaySize,u_scale_a:R.fromScale,u_scale_b:R.toScale,u_tile_units_to_pixels:1/uo(O,1,J.transform.tileZoom),u_pixel_coord_upper:[Er>>16,lr>>16],u_pixel_coord_lower:[Er&65535,lr&65535]}}var el=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_lightpos:new i.Uniform3f(Y,R.u_lightpos),u_lightintensity:new i.Uniform1f(Y,R.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,R.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,R.u_vertical_gradient),u_opacity:new i.Uniform1f(Y,R.u_opacity)}},Hs=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_lightpos:new i.Uniform3f(Y,R.u_lightpos),u_lightintensity:new i.Uniform1f(Y,R.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,R.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,R.u_vertical_gradient),u_height_factor:new i.Uniform1f(Y,R.u_height_factor),u_image:new i.Uniform1i(Y,R.u_image),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade),u_opacity:new i.Uniform1f(Y,R.u_opacity)}},Ro=function(Y,R,J,O){var K=R.style.light,_e=K.properties.get("position"),ne=[_e.x,_e.y,_e.z],Le=i.create$1();K.properties.get("anchor")==="viewport"&&i.fromRotation(Le,-R.transform.angle),i.transformMat3(ne,ne,Le);var Ze=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Ze.r,Ze.g,Ze.b],u_vertical_gradient:+J,u_opacity:O}},tl=function(Y,R,J,O,K,_e,ne){return i.extend(Ro(Y,R,J,O),fs(_e,R,ne),{u_height_factor:-Math.pow(2,K.overscaledZ)/ne.tileSize/8})},Fs=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},hl=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_image:new i.Uniform1i(Y,R.u_image),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade)}},Fa=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_world:new i.Uniform2f(Y,R.u_world)}},Ms=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_world:new i.Uniform2f(Y,R.u_world),u_image:new i.Uniform1i(Y,R.u_image),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade)}},jo=function(Y){return{u_matrix:Y}},Rs=function(Y,R,J,O){return i.extend(jo(Y),fs(J,R,O))},Is=function(Y,R){return{u_matrix:Y,u_world:R}},Bs=function(Y,R,J,O,K){return i.extend(Rs(Y,R,J,O),{u_world:K})},At=function(Y,R){return{u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(Y,R.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(Y,R.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},Gt=function(Y,R,J,O){var K=Y.transform,_e,ne;if(O.paint.get("circle-pitch-alignment")==="map"){var Le=uo(J,1,K.zoom);_e=!0,ne=[Le,Le]}else _e=!1,ne=K.pixelsToGLUnits;return{u_camera_to_center_distance:K.cameraToCenterDistance,u_scale_with_map:+(O.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(R.posMatrix,J,O.paint.get("circle-translate"),O.paint.get("circle-translate-anchor")),u_pitch_with_map:+_e,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},wr=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(Y,R.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(Y,R.u_extrude_scale),u_overscale_factor:new i.Uniform1f(Y,R.u_overscale_factor)}},mr=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_inv_matrix:new i.UniformMatrix4f(Y,R.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(Y,R.u_viewport_size)}},Or=function(Y,R,J){var O=uo(J,1,R.zoom),K=Math.pow(2,R.zoom-J.tileID.overscaledZ),_e=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:R.cameraToCenterDistance,u_pixels_to_tile_units:O,u_extrude_scale:[R.pixelsToGLUnits[0]/(O*K),R.pixelsToGLUnits[1]/(O*K)],u_overscale_factor:_e}},gi=function(Y,R,J){return{u_matrix:Y,u_inv_matrix:R,u_camera_to_center_distance:J.cameraToCenterDistance,u_viewport_size:[J.width,J.height]}},Ti=function(Y,R){return{u_color:new i.UniformColor(Y,R.u_color),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_overlay:new i.Uniform1i(Y,R.u_overlay),u_overlay_scale:new i.Uniform1f(Y,R.u_overlay_scale)}},ki=function(Y,R,J){return J===void 0&&(J=1),{u_matrix:Y,u_color:R,u_overlay:0,u_overlay_scale:J}},Ji=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},Fn=function(Y){return{u_matrix:Y}},Pi=function(Y,R){return{u_extrude_scale:new i.Uniform1f(Y,R.u_extrude_scale),u_intensity:new i.Uniform1f(Y,R.u_intensity),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},hi=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_world:new i.Uniform2f(Y,R.u_world),u_image:new i.Uniform1i(Y,R.u_image),u_color_ramp:new i.Uniform1i(Y,R.u_color_ramp),u_opacity:new i.Uniform1f(Y,R.u_opacity)}},Li=function(Y,R,J,O){return{u_matrix:Y,u_extrude_scale:uo(R,1,J),u_intensity:O}},Si=function(Y,R,J,O){var K=i.create();i.ortho(K,0,Y.width,Y.height,0,0,1);var _e=Y.context.gl;return{u_matrix:K,u_world:[_e.drawingBufferWidth,_e.drawingBufferHeight],u_image:J,u_color_ramp:O,u_opacity:R.paint.get("heatmap-opacity")}},Gn=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_image:new i.Uniform1i(Y,R.u_image),u_latrange:new i.Uniform2f(Y,R.u_latrange),u_light:new i.Uniform2f(Y,R.u_light),u_shadow:new i.UniformColor(Y,R.u_shadow),u_highlight:new i.UniformColor(Y,R.u_highlight),u_accent:new i.UniformColor(Y,R.u_accent)}},ta=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_image:new i.Uniform1i(Y,R.u_image),u_dimension:new i.Uniform2f(Y,R.u_dimension),u_zoom:new i.Uniform1f(Y,R.u_zoom),u_unpack:new i.Uniform4f(Y,R.u_unpack)}},ya=function(Y,R,J){var O=J.paint.get("hillshade-shadow-color"),K=J.paint.get("hillshade-highlight-color"),_e=J.paint.get("hillshade-accent-color"),ne=J.paint.get("hillshade-illumination-direction")*(Math.PI/180);J.paint.get("hillshade-illumination-anchor")==="viewport"&&(ne-=Y.transform.angle);var Le=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(R.tileID.toUnwrapped(),Le),u_image:0,u_latrange:pa(Y,R.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:O,u_highlight:K,u_accent:_e}},ia=function(Y,R){var J=R.stride,O=i.create();return i.ortho(O,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(O,O,[0,-i.EXTENT,0]),{u_matrix:O,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:R.getUnpackVector()}};function pa(Y,R){var J=Math.pow(2,R.canonical.z),O=R.canonical.y;return[new i.MercatorCoordinate(0,O/J).toLngLat().lat,new i.MercatorCoordinate(0,(O+1)/J).toLngLat().lat]}var va=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels)}},zn=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels),u_image:new i.Uniform1i(Y,R.u_image),u_image_height:new i.Uniform1f(Y,R.u_image_height)}},is=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_image:new i.Uniform1i(Y,R.u_image),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade)}},Cs=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(Y,R.u_patternscale_a),u_patternscale_b:new i.Uniform2f(Y,R.u_patternscale_b),u_sdfgamma:new i.Uniform1f(Y,R.u_sdfgamma),u_image:new i.Uniform1i(Y,R.u_image),u_tex_y_a:new i.Uniform1f(Y,R.u_tex_y_a),u_tex_y_b:new i.Uniform1f(Y,R.u_tex_y_b),u_mix:new i.Uniform1f(Y,R.u_mix)}},Ks=function(Y,R,J){var O=Y.transform;return{u_matrix:eu(Y,R,J),u_ratio:1/uo(R,1,O.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/O.pixelsToGLUnits[0],1/O.pixelsToGLUnits[1]]}},dl=function(Y,R,J,O){return i.extend(Ks(Y,R,J),{u_image:0,u_image_height:O})},xl=function(Y,R,J,O){var K=Y.transform,_e=bl(R,K);return{u_matrix:eu(Y,R,J),u_texsize:R.imageAtlasTexture.size,u_ratio:1/uo(R,1,K.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[_e,O.fromScale,O.toScale],u_fade:O.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},Ol=function(Y,R,J,O,K){var _e=Y.transform,ne=Y.lineAtlas,Le=bl(R,_e),Ze=J.layout.get("line-cap")==="round",Ct=ne.getDash(O.from,Ze),dr=ne.getDash(O.to,Ze),Er=Ct.width*K.fromScale,lr=dr.width*K.toScale;return i.extend(Ks(Y,R,J),{u_patternscale_a:[Le/Er,-Ct.height/2],u_patternscale_b:[Le/lr,-dr.height/2],u_sdfgamma:ne.width/(Math.min(Er,lr)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:Ct.y,u_tex_y_b:dr.y,u_mix:K.t})};function bl(Y,R){return 1/uo(Y,1,R.tileZoom)}function eu(Y,R,J){return Y.translatePosMatrix(R.tileID.posMatrix,R,J.paint.get("line-translate"),J.paint.get("line-translate-anchor"))}var Zl=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_tl_parent:new i.Uniform2f(Y,R.u_tl_parent),u_scale_parent:new i.Uniform1f(Y,R.u_scale_parent),u_buffer_scale:new i.Uniform1f(Y,R.u_buffer_scale),u_fade_t:new i.Uniform1f(Y,R.u_fade_t),u_opacity:new i.Uniform1f(Y,R.u_opacity),u_image0:new i.Uniform1i(Y,R.u_image0),u_image1:new i.Uniform1i(Y,R.u_image1),u_brightness_low:new i.Uniform1f(Y,R.u_brightness_low),u_brightness_high:new i.Uniform1f(Y,R.u_brightness_high),u_saturation_factor:new i.Uniform1f(Y,R.u_saturation_factor),u_contrast_factor:new i.Uniform1f(Y,R.u_contrast_factor),u_spin_weights:new i.Uniform3f(Y,R.u_spin_weights)}},Vl=function(Y,R,J,O,K){return{u_matrix:Y,u_tl_parent:R,u_scale_parent:J,u_buffer_scale:1,u_fade_t:O.mix,u_opacity:O.opacity*K.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:K.paint.get("raster-brightness-min"),u_brightness_high:K.paint.get("raster-brightness-max"),u_saturation_factor:Js(K.paint.get("raster-saturation")),u_contrast_factor:ns(K.paint.get("raster-contrast")),u_spin_weights:ja(K.paint.get("raster-hue-rotate"))}};function ja(Y){Y*=Math.PI/180;var R=Math.sin(Y),J=Math.cos(Y);return[(2*J+1)/3,(-Math.sqrt(3)*R-J+1)/3,(Math.sqrt(3)*R-J+1)/3]}function ns(Y){return Y>0?1/(1-Y):1+Y}function Js(Y){return Y>0?1-1/(1.001-Y):-Y}var cs=function(Y,R){return{u_is_size_zoom_constant:new i.Uniform1i(Y,R.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,R.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,R.u_size_t),u_size:new i.Uniform1f(Y,R.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,R.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,R.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,R.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,R.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,R.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,R.u_coord_matrix),u_is_text:new i.Uniform1i(Y,R.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_texture:new i.Uniform1i(Y,R.u_texture)}},sl=function(Y,R){return{u_is_size_zoom_constant:new i.Uniform1i(Y,R.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,R.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,R.u_size_t),u_size:new i.Uniform1f(Y,R.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,R.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,R.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,R.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,R.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,R.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,R.u_coord_matrix),u_is_text:new i.Uniform1i(Y,R.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_texture:new i.Uniform1i(Y,R.u_texture),u_gamma_scale:new i.Uniform1f(Y,R.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,R.u_is_halo)}},ll=function(Y,R){return{u_is_size_zoom_constant:new i.Uniform1i(Y,R.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,R.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,R.u_size_t),u_size:new i.Uniform1f(Y,R.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,R.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,R.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,R.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,R.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,R.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,R.u_coord_matrix),u_is_text:new i.Uniform1i(Y,R.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_texsize_icon:new i.Uniform2f(Y,R.u_texsize_icon),u_texture:new i.Uniform1i(Y,R.u_texture),u_texture_icon:new i.Uniform1i(Y,R.u_texture_icon),u_gamma_scale:new i.Uniform1f(Y,R.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,R.u_is_halo)}},il=function(Y,R,J,O,K,_e,ne,Le,Ze,Ct){var dr=K.transform;return{u_is_size_zoom_constant:+(Y==="constant"||Y==="source"),u_is_size_feature_constant:+(Y==="constant"||Y==="camera"),u_size_t:R?R.uSizeT:0,u_size:R?R.uSize:0,u_camera_to_center_distance:dr.cameraToCenterDistance,u_pitch:dr.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:dr.width/dr.height,u_fade_change:K.options.fadeDuration?K.symbolFadeChange:1,u_matrix:_e,u_label_plane_matrix:ne,u_coord_matrix:Le,u_is_text:+Ze,u_pitch_with_map:+O,u_texsize:Ct,u_texture:0}},zl=function(Y,R,J,O,K,_e,ne,Le,Ze,Ct,dr){var Er=K.transform;return i.extend(il(Y,R,J,O,K,_e,ne,Le,Ze,Ct),{u_gamma_scale:O?Math.cos(Er._pitch)*Er.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+dr})},Ml=function(Y,R,J,O,K,_e,ne,Le,Ze,Ct){return i.extend(zl(Y,R,J,O,K,_e,ne,Le,!0,Ze,!0),{u_texsize_icon:Ct,u_texture_icon:1})},Rl=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_opacity:new i.Uniform1f(Y,R.u_opacity),u_color:new i.UniformColor(Y,R.u_color)}},Al=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_opacity:new i.Uniform1f(Y,R.u_opacity),u_image:new i.Uniform1i(Y,R.u_image),u_pattern_tl_a:new i.Uniform2f(Y,R.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(Y,R.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(Y,R.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(Y,R.u_pattern_br_b),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_mix:new i.Uniform1f(Y,R.u_mix),u_pattern_size_a:new i.Uniform2f(Y,R.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(Y,R.u_pattern_size_b),u_scale_a:new i.Uniform1f(Y,R.u_scale_a),u_scale_b:new i.Uniform1f(Y,R.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(Y,R.u_tile_units_to_pixels)}},Ll=function(Y,R,J){return{u_matrix:Y,u_opacity:R,u_color:J}},ms=function(Y,R,J,O,K,_e){return i.extend(cl(O,_e,J,K),{u_matrix:Y,u_opacity:R})},Os={fillExtrusion:el,fillExtrusionPattern:Hs,fill:Fs,fillPattern:hl,fillOutline:Fa,fillOutlinePattern:Ms,circle:At,collisionBox:wr,collisionCircle:mr,debug:Ti,clippingMask:Ji,heatmap:Pi,heatmapTexture:hi,hillshade:Gn,hillshadePrepare:ta,line:va,lineGradient:zn,linePattern:is,lineSDF:Cs,raster:Zl,symbolIcon:cs,symbolSDF:sl,symbolTextAndIcon:ll,background:Rl,backgroundPattern:Al},Xl;function Gl(Y,R,J,O,K,_e,ne){for(var Le=Y.context,Ze=Le.gl,Ct=Y.useProgram("collisionBox"),dr=[],Er=0,lr=0,Je=0;Je0){var er=i.create(),Ot=sr;i.mul(er,Kt.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(er,er,Kt.placementViewportMatrix),dr.push({circleArray:ur,circleOffset:lr,transform:Ot,invTransform:er}),Er+=ur.length/4,lr=Er}Qt&&Ct.draw(Le,Ze.LINES,Ii.disabled,ii.disabled,Y.colorModeForRenderPass(),_r.disabled,Or(sr,Y.transform,bt),J.id,Qt.layoutVertexBuffer,Qt.indexBuffer,Qt.segments,null,Y.transform.zoom,null,null,Qt.collisionVertexBuffer)}}if(!(!ne||!dr.length)){var Jt=Y.useProgram("collisionCircle"),Lt=new i.StructArrayLayout2f1f2i16;Lt.resize(Er*4),Lt._trim();for(var Tr=0,Nr=0,ci=dr;Nr=0&&(ht[Kt.associatedIconIndex]={shiftedAnchor:yn,angle:Xa})}}if(dr){Je.clear();for(var Tn=Y.icon.placedSymbolArray,Pn=0;Pn0){var ne=i.browser.now(),Le=(ne-Y.timeAdded)/_e,Ze=R?(ne-R.timeAdded)/_e:-1,Ct=J.getSource(),dr=K.coveringZoomLevel({tileSize:Ct.tileSize,roundZoom:Ct.roundZoom}),Er=!R||Math.abs(R.tileID.overscaledZ-dr)>Math.abs(Y.tileID.overscaledZ-dr),lr=Er&&Y.refreshedUponExpiration?1:i.clamp(Er?Le:1-Ze,0,1);return Y.refreshedUponExpiration&&Le>=1&&(Y.refreshedUponExpiration=!1),R?{opacity:1,mix:1-lr}:{opacity:lr,mix:0}}else return{opacity:1,mix:0}}function fr(Y,R,J){var O=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var _e=Y.context,ne=_e.gl,Le=Y.transform,Ze=Le.tileSize,Ct=J.paint.get("background-pattern");if(!Y.isPatternMissing(Ct)){var dr=!Ct&&O.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===dr){var Er=ii.disabled,lr=Y.depthModeForSublayer(0,dr==="opaque"?Ii.ReadWrite:Ii.ReadOnly),Je=Y.colorModeForRenderPass(),ht=Y.useProgram(Ct?"backgroundPattern":"background"),bt=Le.coveringTiles({tileSize:Ze});Ct&&(_e.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var Kt=J.getCrossfadeParameters(),sr=0,Qt=bt;sr "+J.overscaledZ);var sr=Kt+" "+Je+"kb";ml(Y,sr),ne.draw(O,K.TRIANGLES,Le,Ze,yt.alphaBlended,_r.disabled,ki(_e,i.Color.transparent,bt),dr,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function ml(Y,R){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,O=Y.context.gl,K=Y.debugOverlayCanvas.getContext("2d");K.clearRect(0,0,J.width,J.height),K.shadowColor="white",K.shadowBlur=2,K.lineWidth=1.5,K.strokeStyle="white",K.textBaseline="top",K.font="bold 36px Open Sans, sans-serif",K.fillText(R,5,5),K.strokeText(R,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(O.LINEAR,O.CLAMP_TO_EDGE)}function au(Y,R,J){var O=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var _e=K.prerender;_e&&(Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),_e.call(K,O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),O.setStencilMode(ii.disabled);var ne=K.renderingMode==="3d"?new Ii(Y.context.gl.LEQUAL,Ii.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,Ii.ReadOnly);O.setDepthMode(ne),K.render(O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState(),O.bindFramebuffer.set(null)}}var Sl={symbol:w,circle:mt,heatmap:Ft,line:Vr,fill:he,"fill-extrusion":qe,hillshade:lt,raster:Ht,background:fr,debug:vl,custom:au},Yl=function(R,J){this.context=new Lr(R),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=Ur.maxUnderzooming+Ur.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new As,this.gpuTimers={}};Yl.prototype.resize=function(R,J){if(this.width=R*i.browser.devicePixelRatio,this.height=J*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var O=0,K=this.style._order;O256&&this.clearStencil(),O.setColorMode(yt.disabled),O.setDepthMode(Ii.disabled);var _e=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ne=0,Le=J;ne256&&this.clearStencil();var R=this.nextStencilID++,J=this.context.gl;return new ii({func:J.NOTEQUAL,mask:255},R,255,J.KEEP,J.KEEP,J.REPLACE)},Yl.prototype.stencilModeForClipping=function(R){var J=this.context.gl;return new ii({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[R.key],0,J.KEEP,J.KEEP,J.REPLACE)},Yl.prototype.stencilConfigForOverlap=function(R){var J,O=this.context.gl,K=R.sort(function(Ct,dr){return dr.overscaledZ-Ct.overscaledZ}),_e=K[K.length-1].overscaledZ,ne=K[0].overscaledZ-_e+1;if(ne>1){this.currentStencilSource=void 0,this.nextStencilID+ne>256&&this.clearStencil();for(var Le={},Ze=0;Ze=0;this.currentLayer--){var er=this.style._layers[K[this.currentLayer]],Ot=_e[er.source],Jt=Ze[er.source];this._renderTileClippingMasks(er,Jt),this.renderLayer(this,Ot,er,Jt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},Yl.prototype.isPatternMissing=function(R){if(!R)return!1;if(!R.from||!R.to)return!0;var J=this.imageManager.getPattern(R.from.toString()),O=this.imageManager.getPattern(R.to.toString());return!J||!O},Yl.prototype.useProgram=function(R,J){this.cache=this.cache||{};var O=""+R+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[O]||(this.cache[O]=new vs(this.context,R,io[R],J,Os[R],this._showOverdrawInspector)),this.cache[O]},Yl.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Yl.prototype.setBaseState=function(){var R=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(R.FUNC_ADD)},Yl.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var R=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,R.RGBA)}},Yl.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var ql=function(R,J){this.points=R,this.planes=J};ql.fromInvProjectionMatrix=function(R,J,O){var K=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],_e=Math.pow(2,O),ne=K.map(function(Ct){return i.transformMat4([],Ct,R)}).map(function(Ct){return i.scale$1([],Ct,1/Ct[3]/J*_e)}),Le=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ze=Le.map(function(Ct){var dr=i.sub([],ne[Ct[0]],ne[Ct[1]]),Er=i.sub([],ne[Ct[2]],ne[Ct[1]]),lr=i.normalize([],i.cross([],dr,Er)),Je=-i.dot(lr,ne[Ct[1]]);return lr.concat(Je)});return new ql(ne,Ze)};var ou=function(R,J){this.min=R,this.max=J,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};ou.prototype.quadrant=function(R){for(var J=[R%2===0,R<2],O=i.clone$2(this.min),K=i.clone$2(this.max),_e=0;_e=0;if(ne===0)return 0;ne!==J.length&&(O=!1)}if(O)return 2;for(var Ze=0;Ze<3;Ze++){for(var Ct=Number.MAX_VALUE,dr=-Number.MAX_VALUE,Er=0;Erthis.max[Ze]-this.min[Ze])return 0}return 1};var Pu=function(R,J,O,K){if(R===void 0&&(R=0),J===void 0&&(J=0),O===void 0&&(O=0),K===void 0&&(K=0),isNaN(R)||R<0||isNaN(J)||J<0||isNaN(O)||O<0||isNaN(K)||K<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=R,this.bottom=J,this.left=O,this.right=K};Pu.prototype.interpolate=function(R,J,O){return J.top!=null&&R.top!=null&&(this.top=i.number(R.top,J.top,O)),J.bottom!=null&&R.bottom!=null&&(this.bottom=i.number(R.bottom,J.bottom,O)),J.left!=null&&R.left!=null&&(this.left=i.number(R.left,J.left,O)),J.right!=null&&R.right!=null&&(this.right=i.number(R.right,J.right,O)),this},Pu.prototype.getCenter=function(R,J){var O=i.clamp((this.left+R-this.right)/2,0,R),K=i.clamp((this.top+J-this.bottom)/2,0,J);return new i.Point(O,K)},Pu.prototype.equals=function(R){return this.top===R.top&&this.bottom===R.bottom&&this.left===R.left&&this.right===R.right},Pu.prototype.clone=function(){return new Pu(this.top,this.bottom,this.left,this.right)},Pu.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var iu=function(R,J,O,K,_e){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=_e===void 0?!0:_e,this._minZoom=R||0,this._maxZoom=J||22,this._minPitch=O==null?0:O,this._maxPitch=K==null?60:K,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Pu,this._posMatrixCache={},this._alignedPosMatrixCache={}},tu={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};iu.prototype.clone=function(){var R=new iu(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return R.tileSize=this.tileSize,R.latRange=this.latRange,R.width=this.width,R.height=this.height,R._center=this._center,R.zoom=this.zoom,R.angle=this.angle,R._fov=this._fov,R._pitch=this._pitch,R._unmodified=this._unmodified,R._edgeInsets=this._edgeInsets.clone(),R._calcMatrices(),R},tu.minZoom.get=function(){return this._minZoom},tu.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},tu.maxZoom.get=function(){return this._maxZoom},tu.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},tu.minPitch.get=function(){return this._minPitch},tu.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},tu.maxPitch.get=function(){return this._maxPitch},tu.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},tu.renderWorldCopies.get=function(){return this._renderWorldCopies},tu.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},tu.worldSize.get=function(){return this.tileSize*this.scale},tu.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},tu.size.get=function(){return new i.Point(this.width,this.height)},tu.bearing.get=function(){return-this.angle/Math.PI*180},tu.bearing.set=function(Y){var R=-i.wrap(Y,-180,180)*Math.PI/180;this.angle!==R&&(this._unmodified=!1,this.angle=R,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},tu.pitch.get=function(){return this._pitch/Math.PI*180},tu.pitch.set=function(Y){var R=i.clamp(Y,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==R&&(this._unmodified=!1,this._pitch=R,this._calcMatrices())},tu.fov.get=function(){return this._fov/Math.PI*180},tu.fov.set=function(Y){Y=Math.max(.01,Math.min(60,Y)),this._fov!==Y&&(this._unmodified=!1,this._fov=Y/180*Math.PI,this._calcMatrices())},tu.zoom.get=function(){return this._zoom},tu.zoom.set=function(Y){var R=Math.min(Math.max(Y,this.minZoom),this.maxZoom);this._zoom!==R&&(this._unmodified=!1,this._zoom=R,this.scale=this.zoomScale(R),this.tileZoom=Math.floor(R),this.zoomFraction=R-this.tileZoom,this._constrain(),this._calcMatrices())},tu.center.get=function(){return this._center},tu.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},tu.padding.get=function(){return this._edgeInsets.toJSON()},tu.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},tu.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},iu.prototype.isPaddingEqual=function(R){return this._edgeInsets.equals(R)},iu.prototype.interpolatePadding=function(R,J,O){this._unmodified=!1,this._edgeInsets.interpolate(R,J,O),this._constrain(),this._calcMatrices()},iu.prototype.coveringZoomLevel=function(R){var J=(R.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/R.tileSize));return Math.max(0,J)},iu.prototype.getVisibleUnwrappedCoordinates=function(R){var J=[new i.UnwrappedTileID(0,R)];if(this._renderWorldCopies)for(var O=this.pointCoordinate(new i.Point(0,0)),K=this.pointCoordinate(new i.Point(this.width,0)),_e=this.pointCoordinate(new i.Point(this.width,this.height)),ne=this.pointCoordinate(new i.Point(0,this.height)),Le=Math.floor(Math.min(O.x,K.x,_e.x,ne.x)),Ze=Math.floor(Math.max(O.x,K.x,_e.x,ne.x)),Ct=1,dr=Le-Ct;dr<=Ze+Ct;dr++)dr!==0&&J.push(new i.UnwrappedTileID(dr,R));return J},iu.prototype.coveringTiles=function(R){var J=this.coveringZoomLevel(R),O=J;if(R.minzoom!==void 0&&JR.maxzoom&&(J=R.maxzoom);var K=i.MercatorCoordinate.fromLngLat(this.center),_e=Math.pow(2,J),ne=[_e*K.x,_e*K.y,0],Le=ql.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Ze=R.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ze=J);var Ct=3,dr=function(Ki){return{aabb:new ou([Ki*_e,0,0],[(Ki+1)*_e,_e,0]),zoom:0,x:0,y:0,wrap:Ki,fullyVisible:!1}},Er=[],lr=[],Je=J,ht=R.reparseOverscaled?O:J;if(this._renderWorldCopies)for(var bt=1;bt<=3;bt++)Er.push(dr(-bt)),Er.push(dr(bt));for(Er.push(dr(0));Er.length>0;){var Kt=Er.pop(),sr=Kt.x,Qt=Kt.y,ur=Kt.fullyVisible;if(!ur){var er=Kt.aabb.intersects(Le);if(er===0)continue;ur=er===2}var Ot=Kt.aabb.distanceX(ne),Jt=Kt.aabb.distanceY(ne),Lt=Math.max(Math.abs(Ot),Math.abs(Jt)),Tr=Ct+(1<Tr&&Kt.zoom>=Ze){lr.push({tileID:new i.OverscaledTileID(Kt.zoom===Je?ht:Kt.zoom,Kt.wrap,Kt.zoom,sr,Qt),distanceSq:i.sqrLen([ne[0]-.5-sr,ne[1]-.5-Qt])});continue}for(var Nr=0;Nr<4;Nr++){var ci=(sr<<1)+Nr%2,Cn=(Qt<<1)+(Nr>>1);Er.push({aabb:Kt.aabb.quadrant(Nr),zoom:Kt.zoom+1,x:ci,y:Cn,wrap:Kt.wrap,fullyVisible:ur})}}return lr.sort(function(Ki,yn){return Ki.distanceSq-yn.distanceSq}).map(function(Ki){return Ki.tileID})},iu.prototype.resize=function(R,J){this.width=R,this.height=J,this.pixelsToGLUnits=[2/R,-2/J],this._constrain(),this._calcMatrices()},tu.unmodified.get=function(){return this._unmodified},iu.prototype.zoomScale=function(R){return Math.pow(2,R)},iu.prototype.scaleZoom=function(R){return Math.log(R)/Math.LN2},iu.prototype.project=function(R){var J=i.clamp(R.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(R.lng)*this.worldSize,i.mercatorYfromLat(J)*this.worldSize)},iu.prototype.unproject=function(R){return new i.MercatorCoordinate(R.x/this.worldSize,R.y/this.worldSize).toLngLat()},tu.point.get=function(){return this.project(this.center)},iu.prototype.setLocationAtPoint=function(R,J){var O=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),_e=this.locationCoordinate(R),ne=new i.MercatorCoordinate(_e.x-(O.x-K.x),_e.y-(O.y-K.y));this.center=this.coordinateLocation(ne),this._renderWorldCopies&&(this.center=this.center.wrap())},iu.prototype.locationPoint=function(R){return this.coordinatePoint(this.locationCoordinate(R))},iu.prototype.pointLocation=function(R){return this.coordinateLocation(this.pointCoordinate(R))},iu.prototype.locationCoordinate=function(R){return i.MercatorCoordinate.fromLngLat(R)},iu.prototype.coordinateLocation=function(R){return R.toLngLat()},iu.prototype.pointCoordinate=function(R){var J=0,O=[R.x,R.y,0,1],K=[R.x,R.y,1,1];i.transformMat4(O,O,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var _e=O[3],ne=K[3],Le=O[0]/_e,Ze=K[0]/ne,Ct=O[1]/_e,dr=K[1]/ne,Er=O[2]/_e,lr=K[2]/ne,Je=Er===lr?0:(J-Er)/(lr-Er);return new i.MercatorCoordinate(i.number(Le,Ze,Je)/this.worldSize,i.number(Ct,dr,Je)/this.worldSize)},iu.prototype.coordinatePoint=function(R){var J=[R.x*this.worldSize,R.y*this.worldSize,0,1];return i.transformMat4(J,J,this.pixelMatrix),new i.Point(J[0]/J[3],J[1]/J[3])},iu.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},iu.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},iu.prototype.setMaxBounds=function(R){R?(this.lngRange=[R.getWest(),R.getEast()],this.latRange=[R.getSouth(),R.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},iu.prototype.calculatePosMatrix=function(R,J){J===void 0&&(J=!1);var O=R.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[O])return K[O];var _e=R.canonical,ne=this.worldSize/this.zoomScale(_e.z),Le=_e.x+Math.pow(2,_e.z)*R.wrap,Ze=i.identity(new Float64Array(16));return i.translate(Ze,Ze,[Le*ne,_e.y*ne,0]),i.scale(Ze,Ze,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Ze,J?this.alignedProjMatrix:this.projMatrix,Ze),K[O]=new Float32Array(Ze),K[O]},iu.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},iu.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var R=-90,J=90,O=-180,K=180,_e,ne,Le,Ze,Ct=this.size,dr=this._unmodified;if(this.latRange){var Er=this.latRange;R=i.mercatorYfromLat(Er[1])*this.worldSize,J=i.mercatorYfromLat(Er[0])*this.worldSize,_e=J-RJ&&(Ze=J-Kt)}if(this.lngRange){var sr=Je.x,Qt=Ct.x/2;sr-QtK&&(Le=K-Qt)}(Le!==void 0||Ze!==void 0)&&(this.center=this.unproject(new i.Point(Le!==void 0?Le:Je.x,Ze!==void 0?Ze:Je.y))),this._unmodified=dr,this._constraining=!1}},iu.prototype._calcMatrices=function(){if(this.height){var R=this._fov/2,J=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(R)*this.height;var O=Math.PI/2+this._pitch,K=this._fov*(.5+J.y/this.height),_e=Math.sin(K)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-O-K,.01,Math.PI-.01)),ne=this.point,Le=ne.x,Ze=ne.y,Ct=Math.cos(Math.PI/2-this._pitch)*_e+this.cameraToCenterDistance,dr=Ct*1.01,Er=this.height/50,lr=new Float64Array(16);i.perspective(lr,this._fov,this.width/this.height,Er,dr),lr[8]=-J.x*2/this.width,lr[9]=J.y*2/this.height,i.scale(lr,lr,[1,-1,1]),i.translate(lr,lr,[0,0,-this.cameraToCenterDistance]),i.rotateX(lr,lr,this._pitch),i.rotateZ(lr,lr,this.angle),i.translate(lr,lr,[-Le,-Ze,0]),this.mercatorMatrix=i.scale([],lr,[this.worldSize,this.worldSize,this.worldSize]),i.scale(lr,lr,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=lr,this.invProjMatrix=i.invert([],this.projMatrix);var Je=this.width%2/2,ht=this.height%2/2,bt=Math.cos(this.angle),Kt=Math.sin(this.angle),sr=Le-Math.round(Le)+bt*Je+Kt*ht,Qt=Ze-Math.round(Ze)+bt*ht+Kt*Je,ur=new Float64Array(lr);if(i.translate(ur,ur,[sr>.5?sr-1:sr,Qt>.5?Qt-1:Qt,0]),this.alignedProjMatrix=ur,lr=i.create(),i.scale(lr,lr,[this.width/2,-this.height/2,1]),i.translate(lr,lr,[1,-1,0]),this.labelPlaneMatrix=lr,lr=i.create(),i.scale(lr,lr,[1,-1,1]),i.translate(lr,lr,[-1,-1,0]),i.scale(lr,lr,[2/this.width,2/this.height,1]),this.glCoordMatrix=lr,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),lr=i.invert(new Float64Array(16),this.pixelMatrix),!lr)throw new Error("failed to invert matrix");this.pixelMatrixInverse=lr,this._posMatrixCache={},this._alignedPosMatrixCache={}}},iu.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var R=this.pointCoordinate(new i.Point(0,0)),J=[R.x*this.worldSize,R.y*this.worldSize,0,1],O=i.transformMat4(J,J,this.pixelMatrix);return O[3]/this.cameraToCenterDistance},iu.prototype.getCameraPoint=function(){var R=this._pitch,J=Math.tan(R)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,J))},iu.prototype.getCameraQueryGeometry=function(R){var J=this.getCameraPoint();if(R.length===1)return[R[0],J];for(var O=J.x,K=J.y,_e=J.x,ne=J.y,Le=0,Ze=R;Le=3&&!R.some(function(O){return isNaN(O)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(R[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+R[2],+R[1]],zoom:+R[0],bearing:J,pitch:+(R[4]||0)}),!0}return!1},Qu.prototype._updateHashUnthrottled=function(){var R=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,R)}catch(J){}};var Ju={linearity:.3,easing:i.bezier(0,0,.3,1)},ju=i.extend({deceleration:2500,maxSpeed:1400},Ju),Xu=i.extend({deceleration:20,maxSpeed:1400},Ju),lf=i.extend({deceleration:1e3,maxSpeed:360},Ju),xf=i.extend({deceleration:1e3,maxSpeed:90},Ju),ef=function(R){this._map=R,this.clear()};ef.prototype.clear=function(){this._inertiaBuffer=[]},ef.prototype.record=function(R){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:R})},ef.prototype._drainInertiaBuffer=function(){for(var R=this._inertiaBuffer,J=i.browser.now(),O=160;R.length>0&&J-R[0].time>O;)R.shift()},ef.prototype._onMoveEnd=function(R){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},O=0,K=this._inertiaBuffer;O=this._clickTolerance||this._map.fire(new se(R.type,this._map,R))},Qe.prototype.dblclick=function(R){return this._firePreventable(new se(R.type,this._map,R))},Qe.prototype.mouseover=function(R){this._map.fire(new se(R.type,this._map,R))},Qe.prototype.mouseout=function(R){this._map.fire(new se(R.type,this._map,R))},Qe.prototype.touchstart=function(R){return this._firePreventable(new ze(R.type,this._map,R))},Qe.prototype.touchmove=function(R){this._map.fire(new ze(R.type,this._map,R))},Qe.prototype.touchend=function(R){this._map.fire(new ze(R.type,this._map,R))},Qe.prototype.touchcancel=function(R){this._map.fire(new ze(R.type,this._map,R))},Qe.prototype._firePreventable=function(R){if(this._map.fire(R),R.defaultPrevented)return{}},Qe.prototype.isEnabled=function(){return!0},Qe.prototype.isActive=function(){return!1},Qe.prototype.enable=function(){},Qe.prototype.disable=function(){};var ot=function(R){this._map=R};ot.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},ot.prototype.mousemove=function(R){this._map.fire(new se(R.type,this._map,R))},ot.prototype.mousedown=function(){this._delayContextMenu=!0},ot.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new se("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},ot.prototype.contextmenu=function(R){this._delayContextMenu?this._contextMenuEvent=R:this._map.fire(new se(R.type,this._map,R)),this._map.listens("contextmenu")&&R.preventDefault()},ot.prototype.isEnabled=function(){return!0},ot.prototype.isActive=function(){return!1},ot.prototype.enable=function(){},ot.prototype.disable=function(){};var jt=function(R,J){this._map=R,this._el=R.getCanvasContainer(),this._container=R.getContainer(),this._clickTolerance=J.clickTolerance||1};jt.prototype.isEnabled=function(){return!!this._enabled},jt.prototype.isActive=function(){return!!this._active},jt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},jt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},jt.prototype.mousedown=function(R,J){this.isEnabled()&&R.shiftKey&&R.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},jt.prototype.mousemoveWindow=function(R,J){if(this._active){var O=J;if(!(this._lastPos.equals(O)||!this._box&&O.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=R.timeStamp),O.length===this.numTouches&&(this.centroid=cr(J),this.touches=_t(O,J)))},$r.prototype.touchmove=function(R,J,O){if(!(this.aborted||!this.centroid)){var K=_t(O,J);for(var _e in this.touches){var ne=this.touches[_e],Le=K[_e];(!Le||Le.dist(ne)>ui)&&(this.aborted=!0)}}},$r.prototype.touchend=function(R,J,O){if((!this.centroid||R.timeStamp-this.startTime>zr)&&(this.aborted=!0),O.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var Oi=function(R){this.singleTap=new $r(R),this.numTaps=R.numTaps,this.reset()};Oi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Oi.prototype.touchstart=function(R,J,O){this.singleTap.touchstart(R,J,O)},Oi.prototype.touchmove=function(R,J,O){this.singleTap.touchmove(R,J,O)},Oi.prototype.touchend=function(R,J,O){var K=this.singleTap.touchend(R,J,O);if(K){var _e=R.timeStamp-this.lastTime0&&(this._active=!0);var K=_t(O,J),_e=new i.Point(0,0),ne=new i.Point(0,0),Le=0;for(var Ze in K){var Ct=K[Ze],dr=this._touches[Ze];dr&&(_e._add(Ct),ne._add(Ct.sub(dr)),Le++,K[Ze]=Ct)}if(this._touches=K,!(LeMath.abs(Y.x)}var ds=100,Wl=function(Y){function R(){Y.apply(this,arguments)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.reset=function(){Y.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},R.prototype._start=function(O){this._lastPoints=O,rf(O[0].sub(O[1]))&&(this._valid=!1)},R.prototype._move=function(O,K,_e){var ne=O[0].sub(this._lastPoints[0]),Le=O[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,Le,_e.timeStamp),!!this._valid){this._lastPoints=O,this._active=!0;var Ze=(ne.y+Le.y)/2,Ct=-.5;return{pitchDelta:Ze*Ct}}},R.prototype.gestureBeginsVertically=function(O,K,_e){if(this._valid!==void 0)return this._valid;var ne=2,Le=O.mag()>=ne,Ze=K.mag()>=ne;if(!(!Le&&!Ze)){if(!Le||!Ze)return this._firstMove===void 0&&(this._firstMove=_e),_e-this._firstMove0==K.y>0;return rf(O)&&rf(K)&&Ct}},R}(js),Au={panStep:100,bearingStep:15,pitchStep:10},Tu=function(){var R=Au;this._panStep=R.panStep,this._bearingStep=R.bearingStep,this._pitchStep=R.pitchStep,this._rotationDisabled=!1};Tu.prototype.reset=function(){this._active=!1},Tu.prototype.keydown=function(R){var J=this;if(!(R.altKey||R.ctrlKey||R.metaKey)){var O=0,K=0,_e=0,ne=0,Le=0;switch(R.keyCode){case 61:case 107:case 171:case 187:O=1;break;case 189:case 109:case 173:O=-1;break;case 37:R.shiftKey?K=-1:(R.preventDefault(),ne=-1);break;case 39:R.shiftKey?K=1:(R.preventDefault(),ne=1);break;case 38:R.shiftKey?_e=1:(R.preventDefault(),Le=-1);break;case 40:R.shiftKey?_e=-1:(R.preventDefault(),Le=1);break;default:return}return this._rotationDisabled&&(K=0,_e=0),{cameraAnimation:function(Ze){var Ct=Ze.getZoom();Ze.easeTo({duration:300,easeId:"keyboardHandler",easing:uf,zoom:O?Math.round(Ct)+O*(R.shiftKey?2:1):Ct,bearing:Ze.getBearing()+K*J._bearingStep,pitch:Ze.getPitch()+_e*J._pitchStep,offset:[-ne*J._panStep,-Le*J._panStep],center:Ze.getCenter()},{originalEvent:R})}}}},Tu.prototype.enable=function(){this._enabled=!0},Tu.prototype.disable=function(){this._enabled=!1,this.reset()},Tu.prototype.isEnabled=function(){return this._enabled},Tu.prototype.isActive=function(){return this._active},Tu.prototype.disableRotation=function(){this._rotationDisabled=!0},Tu.prototype.enableRotation=function(){this._rotationDisabled=!1};function uf(Y){return Y*(2-Y)}var df=4.000244140625,Ef=1/100,vf=1/450,fc=2,Be=function(R,J){this._map=R,this._el=R.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=Ef,this._wheelZoomRate=vf,i.bindAll(["_onTimeout"],this)};Be.prototype.setZoomRate=function(R){this._defaultZoomRate=R},Be.prototype.setWheelZoomRate=function(R){this._wheelZoomRate=R},Be.prototype.isEnabled=function(){return!!this._enabled},Be.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Be.prototype.isZooming=function(){return!!this._zooming},Be.prototype.enable=function(R){this.isEnabled()||(this._enabled=!0,this._aroundCenter=R&&R.around==="center")},Be.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Be.prototype.wheel=function(R){if(this.isEnabled()){var J=R.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?R.deltaY*40:R.deltaY,O=i.browser.now(),K=O-(this._lastWheelEventTime||0);this._lastWheelEventTime=O,J!==0&&J%df===0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":K>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,R)):this._type||(this._type=Math.abs(K*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),R.shiftKey&&J&&(J=J/4),this._type&&(this._lastWheelEvent=R,this._delta-=J,this._active||this._start(R)),R.preventDefault()}},Be.prototype._onTimeout=function(R){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(R)},Be.prototype._start=function(R){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var J=o.mousePos(this._el,R);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(J)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Be.prototype.renderFrame=function(){var R=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var J=this._map.transform;if(this._delta!==0){var O=this._type==="wheel"&&Math.abs(this._delta)>df?this._wheelZoomRate:this._defaultZoomRate,K=fc/(1+Math.exp(-Math.abs(this._delta*O)));this._delta<0&&K!==0&&(K=1/K);var _e=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(_e*K))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ne=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,Le=this._startZoom,Ze=this._easing,Ct=!1,dr;if(this._type==="wheel"&&Le&&Ze){var Er=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),lr=Ze(Er);dr=i.number(Le,ne,lr),Er<1?this._frameId||(this._frameId=!0):Ct=!0}else dr=ne,Ct=!0;return this._active=!0,Ct&&(this._active=!1,this._finishTimeout=setTimeout(function(){R._zooming=!1,R._handler._triggerRenderFrame(),delete R._targetZoom,delete R._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ct,zoomDelta:dr-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Be.prototype._smoothOutEasing=function(R){var J=i.ease;if(this._prevEase){var O=this._prevEase,K=(i.browser.now()-O.start)/O.duration,_e=O.easing(K+.01)-O.easing(K),ne=.27/Math.sqrt(_e*_e+1e-4)*.01,Le=Math.sqrt(.27*.27-ne*ne);J=i.bezier(ne,Le,.25,1)}return this._prevEase={start:i.browser.now(),duration:R,easing:J},J},Be.prototype.reset=function(){this._active=!1};var qt=function(R,J){this._clickZoom=R,this._tapZoom=J};qt.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},qt.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},qt.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},qt.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var ar=function(){this.reset()};ar.prototype.reset=function(){this._active=!1},ar.prototype.dblclick=function(R,J){return R.preventDefault(),{cameraAnimation:function(O){O.easeTo({duration:300,zoom:O.getZoom()+(R.shiftKey?-1:1),around:O.unproject(J)},{originalEvent:R})}}},ar.prototype.enable=function(){this._enabled=!0},ar.prototype.disable=function(){this._enabled=!1,this.reset()},ar.prototype.isEnabled=function(){return this._enabled},ar.prototype.isActive=function(){return this._active};var Qr=function(){this._tap=new Oi({numTouches:1,numTaps:1}),this.reset()};Qr.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Qr.prototype.touchstart=function(R,J,O){this._swipePoint||(this._tapTime&&R.timeStamp-this._tapTime>Cr&&this.reset(),this._tapTime?O.length>0&&(this._swipePoint=J[0],this._swipeTouch=O[0].identifier):this._tap.touchstart(R,J,O))},Qr.prototype.touchmove=function(R,J,O){if(!this._tapTime)this._tap.touchmove(R,J,O);else if(this._swipePoint){if(O[0].identifier!==this._swipeTouch)return;var K=J[0],_e=K.y-this._swipePoint.y;return this._swipePoint=K,R.preventDefault(),this._active=!0,{zoomDelta:_e/128}}},Qr.prototype.touchend=function(R,J,O){if(this._tapTime)this._swipePoint&&O.length===0&&this.reset();else{var K=this._tap.touchend(R,J,O);K&&(this._tapTime=R.timeStamp)}},Qr.prototype.touchcancel=function(){this.reset()},Qr.prototype.enable=function(){this._enabled=!0},Qr.prototype.disable=function(){this._enabled=!1,this.reset()},Qr.prototype.isEnabled=function(){return this._enabled},Qr.prototype.isActive=function(){return this._active};var mi=function(R,J,O){this._el=R,this._mousePan=J,this._touchPan=O};mi.prototype.enable=function(R){this._inertiaOptions=R||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},mi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},mi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},mi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var fi=function(R,J,O){this._pitchWithRotate=R.pitchWithRotate,this._mouseRotate=J,this._mousePitch=O};fi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},fi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},fi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},fi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var pi=function(R,J,O,K){this._el=R,this._touchZoom=J,this._touchRotate=O,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};pi.prototype.enable=function(R){this._touchZoom.enable(R),this._rotationDisabled||this._touchRotate.enable(R),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},pi.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},pi.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},pi.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},pi.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},pi.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var on=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},Bn=function(Y){function R(){Y.apply(this,arguments)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R}(i.Event);function Ln(Y){return Y.panDelta&&Y.panDelta.mag()||Y.zoomDelta||Y.bearingDelta||Y.pitchDelta}var wn=function(R,J){this._map=R,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ef(R),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),i.bindAll(["handleEvent","handleWindowEvent"],this);var O=this._el;this._listeners=[[O,"touchstart",{passive:!0}],[O,"touchmove",{passive:!1}],[O,"touchend",void 0],[O,"touchcancel",void 0],[O,"mousedown",void 0],[O,"mousemove",void 0],[O,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[O,"mouseover",void 0],[O,"mouseout",void 0],[O,"dblclick",void 0],[O,"click",void 0],[O,"keydown",{capture:!1}],[O,"keyup",void 0],[O,"wheel",{passive:!1}],[O,"contextmenu",void 0],[i.window,"blur",void 0]];for(var K=0,_e=this._listeners;K<_e.length;K+=1){var ne=_e[K],Le=ne[0],Ze=ne[1],Ct=ne[2];o.addEventListener(Le,Ze,Le===i.window.document?this.handleWindowEvent:this.handleEvent,Ct)}};wn.prototype.destroy=function(){for(var R=0,J=this._listeners;RLe?Math.min(2,Ot):Math.max(.5,Ot),Ki=Math.pow(Cn,1-Nr),yn=ne.unproject(ur.add(er.mult(Nr*Ki)).mult(ci));ne.setLocationAtPoint(ne.renderWorldCopies?yn.wrap():yn,Kt)}_e._fireMoveEvents(K)},function(Nr){_e._afterEase(K,Nr)},O),this},R.prototype._prepareEase=function(O,K,_e){_e===void 0&&(_e={}),this._moving=!0,!K&&!_e.moving&&this.fire(new i.Event("movestart",O)),this._zooming&&!_e.zooming&&this.fire(new i.Event("zoomstart",O)),this._rotating&&!_e.rotating&&this.fire(new i.Event("rotatestart",O)),this._pitching&&!_e.pitching&&this.fire(new i.Event("pitchstart",O))},R.prototype._fireMoveEvents=function(O){this.fire(new i.Event("move",O)),this._zooming&&this.fire(new i.Event("zoom",O)),this._rotating&&this.fire(new i.Event("rotate",O)),this._pitching&&this.fire(new i.Event("pitch",O))},R.prototype._afterEase=function(O,K){if(!(this._easeId&&K&&this._easeId===K)){delete this._easeId;var _e=this._zooming,ne=this._rotating,Le=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,_e&&this.fire(new i.Event("zoomend",O)),ne&&this.fire(new i.Event("rotateend",O)),Le&&this.fire(new i.Event("pitchend",O)),this.fire(new i.Event("moveend",O))}},R.prototype.flyTo=function(O,K){var _e=this;if(!O.essential&&i.browser.prefersReducedMotion){var ne=i.pick(O,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ne,K)}this.stop(),O=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},O);var Le=this.transform,Ze=this.getZoom(),Ct=this.getBearing(),dr=this.getPitch(),Er=this.getPadding(),lr="zoom"in O?i.clamp(+O.zoom,Le.minZoom,Le.maxZoom):Ze,Je="bearing"in O?this._normalizeBearing(O.bearing,Ct):Ct,ht="pitch"in O?+O.pitch:dr,bt="padding"in O?O.padding:Le.padding,Kt=Le.zoomScale(lr-Ze),sr=i.Point.convert(O.offset),Qt=Le.centerPoint.add(sr),ur=Le.pointLocation(Qt),er=i.LngLat.convert(O.center||ur);this._normalizeCenter(er);var Ot=Le.project(ur),Jt=Le.project(er).sub(Ot),Lt=O.curve,Tr=Math.max(Le.width,Le.height),Nr=Tr/Kt,ci=Jt.mag();if("minZoom"in O){var Cn=i.clamp(Math.min(O.minZoom,Ze,lr),Le.minZoom,Le.maxZoom),Ki=Tr/Le.zoomScale(Cn-Ze);Lt=Math.sqrt(Ki/ci*2)}var yn=Lt*Lt;function Xa(vu){var zu=(Nr*Nr-Tr*Tr+(vu?-1:1)*yn*yn*ci*ci)/(2*(vu?Nr:Tr)*yn*ci);return Math.log(Math.sqrt(zu*zu+1)-zu)}function ca(vu){return(Math.exp(vu)-Math.exp(-vu))/2}function Tn(vu){return(Math.exp(vu)+Math.exp(-vu))/2}function Pn(vu){return ca(vu)/Tn(vu)}var Nn=Xa(0),xa=function(vu){return Tn(Nn)/Tn(Nn+Lt*vu)},Zo=function(vu){return Tr*((Tn(Nn)*Pn(Nn+Lt*vu)-ca(Nn))/yn)/ci},ru=(Xa(1)-Nn)/Lt;if(Math.abs(ci)<1e-6||!isFinite(ru)){if(Math.abs(Tr-Nr)<1e-6)return this.easeTo(O,K);var yu=NrO.maxDuration&&(O.duration=0),this._zooming=!0,this._rotating=Ct!==Je,this._pitching=ht!==dr,this._padding=!Le.isPaddingEqual(bt),this._prepareEase(K,!1),this._ease(function(vu){var zu=vu*ru,$u=1/xa(zu);Le.zoom=vu===1?lr:Ze+Le.scaleZoom($u),_e._rotating&&(Le.bearing=i.number(Ct,Je,vu)),_e._pitching&&(Le.pitch=i.number(dr,ht,vu)),_e._padding&&(Le.interpolatePadding(Er,bt,vu),Qt=Le.centerPoint.add(sr));var Vf=vu===1?er:Le.unproject(Ot.add(Jt.mult(Zo(zu))).mult($u));Le.setLocationAtPoint(Le.renderWorldCopies?Vf.wrap():Vf,Qt),_e._fireMoveEvents(K)},function(){return _e._afterEase(K)},O),this},R.prototype.isEasing=function(){return!!this._easeFrameId},R.prototype.stop=function(){return this._stop()},R.prototype._stop=function(O,K){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var _e=this._onEaseEnd;delete this._onEaseEnd,_e.call(this,K)}if(!O){var ne=this.handlers;ne&&ne.stop(!1)}return this},R.prototype._ease=function(O,K,_e){_e.animate===!1||_e.duration===0?(O(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=_e,this._onEaseFrame=O,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},R.prototype._renderFrameCallback=function(){var O=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(O)),O<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},R.prototype._normalizeBearing=function(O,K){O=i.wrap(O,-180,180);var _e=Math.abs(O-K);return Math.abs(O-360-K)<_e&&(O-=360),Math.abs(O+360-K)<_e&&(O+=360),O},R.prototype._normalizeCenter=function(O){var K=this.transform;if(!(!K.renderWorldCopies||K.lngRange)){var _e=O.lng-K.center.lng;O.lng+=_e>180?-360:_e<-180?360:0}},R}(i.Evented),ua=function(R){R===void 0&&(R={}),this.options=R,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};ua.prototype.getDefaultPosition=function(){return"bottom-right"},ua.prototype.onAdd=function(R){var J=this.options&&this.options.compact;return this._map=R,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),J&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),J===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},ua.prototype.onRemove=function(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},ua.prototype._setElementTitle=function(R,J){var O=this._map._getUIString("AttributionControl."+J);R.title=O,R.setAttribute("aria-label",O)},ua.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},ua.prototype._updateEditLink=function(){var R=this._editLink;R||(R=this._editLink=this._container.querySelector(".mapbox-improve-map"));var J=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(R){var O=J.reduce(function(K,_e,ne){return _e.value&&(K+=_e.key+"="+_e.value+(ne=0)return!1;return!0});var Le=R.join(" | ");Le!==this._attribHTML&&(this._attribHTML=Le,R.length?(this._innerContainer.innerHTML=Le,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},ua.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Hn=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};Hn.prototype.onAdd=function(R){this._map=R,this._container=o.create("div","mapboxgl-ctrl");var J=o.create("a","mapboxgl-ctrl-logo");return J.target="_blank",J.rel="noopener nofollow",J.href="https://www.mapbox.com/",J.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),J.setAttribute("rel","noopener nofollow"),this._container.appendChild(J),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Hn.prototype.onRemove=function(){o.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Hn.prototype.getDefaultPosition=function(){return"bottom-left"},Hn.prototype._updateLogo=function(R){(!R||R.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},Hn.prototype._logoRequired=function(){if(this._map.style){var R=this._map.style.sourceCaches;for(var J in R){var O=R[J].getSource();if(O.mapbox_logo)return!0}return!1}},Hn.prototype._updateCompact=function(){var R=this._container.children;if(R.length){var J=R[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var Ni=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ni.prototype.add=function(R){var J=++this._id,O=this._queue;return O.push({callback:R,id:J,cancelled:!1}),J},Ni.prototype.remove=function(R){for(var J=this._currentlyRunning,O=J?this._queue.concat(J):this._queue,K=0,_e=O;K<_e.length;K+=1){var ne=_e[K];if(ne.id===R){ne.cancelled=!0;return}}},Ni.prototype.run=function(R){R===void 0&&(R=0);var J=this._currentlyRunning=this._queue;this._queue=[];for(var O=0,K=J;OO.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(O.minPitch!=null&&O.maxPitch!=null&&O.minPitch>O.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(O.minPitch!=null&&O.minPitchhs)throw new Error("maxPitch must be less than or equal to "+hs);var _e=new iu(O.minZoom,O.maxZoom,O.minPitch,O.maxPitch,O.renderWorldCopies);if(Y.call(this,_e,O),this._interactive=O.interactive,this._maxTileCacheSize=O.maxTileCacheSize,this._failIfMajorPerformanceCaveat=O.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=O.preserveDrawingBuffer,this._antialias=O.antialias,this._trackResize=O.trackResize,this._bearingSnap=O.bearingSnap,this._refreshExpiredTiles=O.refreshExpiredTiles,this._fadeDuration=O.fadeDuration,this._crossSourceCollisions=O.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=O.collectResourceTiming,this._renderTaskQueue=new Ni,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Wr,O.locale),this._clickTolerance=O.clickTolerance,this._requestManager=new i.RequestManager(O.transformRequest,O.accessToken),typeof O.container=="string"){if(this._container=i.window.document.getElementById(O.container),!this._container)throw new Error("Container '"+O.container+"' not found.")}else if(O.container instanceof dn)this._container=O.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(O.maxBounds&&this.setMaxBounds(O.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return K._update(!1)}),this.on("moveend",function(){return K._update(!1)}),this.on("zoom",function(){return K._update(!0)}),typeof i.window!="undefined"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new wn(this,O);var ne=typeof O.hash=="string"&&O.hash||void 0;this._hash=O.hash&&new Qu(ne).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:O.center,zoom:O.zoom,bearing:O.bearing,pitch:O.pitch}),O.bounds&&(this.resize(),this.fitBounds(O.bounds,i.extend({},O.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=O.localIdeographFontFamily,O.style&&this.setStyle(O.style,{localIdeographFontFamily:O.localIdeographFontFamily}),O.attributionControl&&this.addControl(new ua({customAttribution:O.customAttribution})),this.addControl(new Hn,O.logoPosition),this.on("style.load",function(){K.transform.unmodified&&K.jumpTo(K.style.stylesheet)}),this.on("data",function(Le){K._update(Le.dataType==="style"),K.fire(new i.Event(Le.dataType+"data",Le))}),this.on("dataloading",function(Le){K.fire(new i.Event(Le.dataType+"dataloading",Le))})}Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R;var J={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return R.prototype._getMapId=function(){return this._mapId},R.prototype.addControl=function(K,_e){if(_e===void 0&&(K.getDefaultPosition?_e=K.getDefaultPosition():_e="top-right"),!K||!K.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=K.onAdd(this);this._controls.push(K);var Le=this._controlPositions[_e];return _e.indexOf("bottom")!==-1?Le.insertBefore(ne,Le.firstChild):Le.appendChild(ne),this},R.prototype.removeControl=function(K){if(!K||!K.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var _e=this._controls.indexOf(K);return _e>-1&&this._controls.splice(_e,1),K.onRemove(this),this},R.prototype.hasControl=function(K){return this._controls.indexOf(K)>-1},R.prototype.resize=function(K){var _e=this._containerDimensions(),ne=_e[0],Le=_e[1];this._resizeCanvas(ne,Le),this.transform.resize(ne,Le),this.painter.resize(ne,Le);var Ze=!this._moving;return Ze&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Ze&&this.fire(new i.Event("moveend",K)),this},R.prototype.getBounds=function(){return this.transform.getBounds()},R.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},R.prototype.setMaxBounds=function(K){return this.transform.setMaxBounds(i.LngLatBounds.convert(K)),this._update()},R.prototype.setMinZoom=function(K){if(K=K==null?Yi:K,K>=Yi&&K<=this.transform.maxZoom)return this.transform.minZoom=K,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=K,this._update(),this.getZoom()>K&&this.setZoom(K),this;throw new Error("maxZoom must be greater than the current minZoom")},R.prototype.getMaxZoom=function(){return this.transform.maxZoom},R.prototype.setMinPitch=function(K){if(K=K==null?Kn:K,K=Kn&&K<=this.transform.maxPitch)return this.transform.minPitch=K,this._update(),this.getPitch()hs)throw new Error("maxPitch must be less than or equal to "+hs);if(K>=this.transform.minPitch)return this.transform.maxPitch=K,this._update(),this.getPitch()>K&&this.setPitch(K),this;throw new Error("maxPitch must be greater than the current minPitch")},R.prototype.getMaxPitch=function(){return this.transform.maxPitch},R.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},R.prototype.setRenderWorldCopies=function(K){return this.transform.renderWorldCopies=K,this._update()},R.prototype.project=function(K){return this.transform.locationPoint(i.LngLat.convert(K))},R.prototype.unproject=function(K){return this.transform.pointLocation(i.Point.convert(K))},R.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},R.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},R.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},R.prototype._createDelegatedListener=function(K,_e,ne){var Le=this,Ze;if(K==="mouseenter"||K==="mouseover"){var Ct=!1,dr=function(Kt){var sr=Le.getLayer(_e)?Le.queryRenderedFeatures(Kt.point,{layers:[_e]}):[];sr.length?Ct||(Ct=!0,ne.call(Le,new se(K,Le,Kt.originalEvent,{features:sr}))):Ct=!1},Er=function(){Ct=!1};return{layer:_e,listener:ne,delegates:{mousemove:dr,mouseout:Er}}}else if(K==="mouseleave"||K==="mouseout"){var lr=!1,Je=function(Kt){var sr=Le.getLayer(_e)?Le.queryRenderedFeatures(Kt.point,{layers:[_e]}):[];sr.length?lr=!0:lr&&(lr=!1,ne.call(Le,new se(K,Le,Kt.originalEvent)))},ht=function(Kt){lr&&(lr=!1,ne.call(Le,new se(K,Le,Kt.originalEvent)))};return{layer:_e,listener:ne,delegates:{mousemove:Je,mouseout:ht}}}else{var bt=function(Kt){var sr=Le.getLayer(_e)?Le.queryRenderedFeatures(Kt.point,{layers:[_e]}):[];sr.length&&(Kt.features=sr,ne.call(Le,Kt),delete Kt.features)};return{layer:_e,listener:ne,delegates:(Ze={},Ze[K]=bt,Ze)}}},R.prototype.on=function(K,_e,ne){if(ne===void 0)return Y.prototype.on.call(this,K,_e);var Le=this._createDelegatedListener(K,_e,ne);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[K]=this._delegatedListeners[K]||[],this._delegatedListeners[K].push(Le);for(var Ze in Le.delegates)this.on(Ze,Le.delegates[Ze]);return this},R.prototype.once=function(K,_e,ne){if(ne===void 0)return Y.prototype.once.call(this,K,_e);var Le=this._createDelegatedListener(K,_e,ne);for(var Ze in Le.delegates)this.once(Ze,Le.delegates[Ze]);return this},R.prototype.off=function(K,_e,ne){var Le=this;if(ne===void 0)return Y.prototype.off.call(this,K,_e);var Ze=function(Ct){for(var dr=Ct[K],Er=0;Er180;){var ne=J.locationPoint(Y);if(ne.x>=0&&ne.y>=0&&ne.x<=J.width&&ne.y<=J.height)break;Y.lng>J.center.lng?Y.lng-=360:Y.lng+=360}return Y}var _s={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ul(Y,R,J){var O=Y.classList;for(var K in _s)O.remove("mapboxgl-"+J+"-anchor-"+K);O.add("mapboxgl-"+J+"-anchor-"+R)}var Qn=function(Y){function R(J,O){if(Y.call(this),(J instanceof i.window.HTMLElement||O)&&(J=i.extend({element:J},O)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=J&&J.anchor||"center",this._color=J&&J.color||"#3FB1CE",this._scale=J&&J.scale||1,this._draggable=J&&J.draggable||!1,this._clickTolerance=J&&J.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=J&&J.rotation||0,this._rotationAlignment=J&&J.rotationAlignment||"auto",this._pitchAlignment=J&&J.pitchAlignment&&J.pitchAlignment!=="auto"?J.pitchAlignment:this._rotationAlignment,!J||!J.element){this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");var K=o.createNS("http://www.w3.org/2000/svg","svg"),_e=41,ne=27;K.setAttributeNS(null,"display","block"),K.setAttributeNS(null,"height",_e+"px"),K.setAttributeNS(null,"width",ne+"px"),K.setAttributeNS(null,"viewBox","0 0 "+ne+" "+_e);var Le=o.createNS("http://www.w3.org/2000/svg","g");Le.setAttributeNS(null,"stroke","none"),Le.setAttributeNS(null,"stroke-width","1"),Le.setAttributeNS(null,"fill","none"),Le.setAttributeNS(null,"fill-rule","evenodd");var Ze=o.createNS("http://www.w3.org/2000/svg","g");Ze.setAttributeNS(null,"fill-rule","nonzero");var Ct=o.createNS("http://www.w3.org/2000/svg","g");Ct.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Ct.setAttributeNS(null,"fill","#000000");for(var dr=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],Er=0,lr=dr;Er=K}this._isDragging&&(this._pos=O.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},R.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},R.prototype._addDragHandler=function(O){this._element.contains(O.originalEvent.target)&&(O.preventDefault(),this._positionDelta=O.point.sub(this._pos).add(this._offset),this._pointerdownPos=O.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},R.prototype.setDraggable=function(O){return this._draggable=!!O,this._map&&(O?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},R.prototype.isDraggable=function(){return this._draggable},R.prototype.setRotation=function(O){return this._rotation=O||0,this._update(),this},R.prototype.getRotation=function(){return this._rotation},R.prototype.setRotationAlignment=function(O){return this._rotationAlignment=O||"auto",this._update(),this},R.prototype.getRotationAlignment=function(){return this._rotationAlignment},R.prototype.setPitchAlignment=function(O){return this._pitchAlignment=O&&O!=="auto"?O:this._rotationAlignment,this._update(),this},R.prototype.getPitchAlignment=function(){return this._pitchAlignment},R}(i.Evented),Mo={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},nl;function pl(Y){nl!==void 0?Y(nl):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(R){nl=R.state!=="denied",Y(nl)}):(nl=!!i.window.navigator.geolocation,Y(nl))}var Dl=0,Fu=!1,mf=function(Y){function R(J){Y.call(this),this.options=i.extend({},Mo,J),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.onAdd=function(O){return this._map=O,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),pl(this._setupUI),this._container},R.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Dl=0,Fu=!1},R.prototype._isOutOfMapMaxBounds=function(O){var K=this._map.getMaxBounds(),_e=O.coords;return K&&(_e.longitudeK.getEast()||_e.latitudeK.getNorth())},R.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},R.prototype._onSuccess=function(O){if(this._map){if(this._isOutOfMapMaxBounds(O)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",O)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=O,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(O),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(O),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",O)),this._finish()}},R.prototype._updateCamera=function(O){var K=new i.LngLat(O.coords.longitude,O.coords.latitude),_e=O.coords.accuracy,ne=this._map.getBearing(),Le=i.extend({bearing:ne},this.options.fitBoundsOptions);this._map.fitBounds(K.toBounds(_e),Le,{geolocateSource:!0})},R.prototype._updateMarker=function(O){if(O){var K=new i.LngLat(O.coords.longitude,O.coords.latitude);this._accuracyCircleMarker.setLngLat(K).addTo(this._map),this._userLocationDotMarker.setLngLat(K).addTo(this._map),this._accuracy=O.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},R.prototype._updateCircleRadius=function(){var O=this._map._container.clientHeight/2,K=this._map.unproject([0,O]),_e=this._map.unproject([1,O]),ne=K.distanceTo(_e),Le=Math.ceil(2*this._accuracy/ne);this._circleElement.style.width=Le+"px",this._circleElement.style.height=Le+"px"},R.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},R.prototype._onError=function(O){if(this._map){if(this.options.trackUserLocation)if(O.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var K=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=K,this._geolocateButton.setAttribute("aria-label",K),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(O.code===3&&Fu)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",O)),this._finish()}},R.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},R.prototype._setupUI=function(O){var K=this;if(this._container.addEventListener("contextmenu",function(Le){return Le.preventDefault()}),this._geolocateButton=o.create("button","mapboxgl-ctrl-geolocate",this._container),o.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",O===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var _e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=_e,this._geolocateButton.setAttribute("aria-label",_e)}else{var ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Qn(this._dotElement),this._circleElement=o.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Qn({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(Le){var Ze=Le.originalEvent&&Le.originalEvent.type==="resize";!Le.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Ze&&(K._watchState="BACKGROUND",K._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),K._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),K.fire(new i.Event("trackuserlocationend")))})},R.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Dl--,Fu=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Dl++;var O;Dl>1?(O={maximumAge:6e5,timeout:0},Fu=!0):(O=this.options.positionOptions,Fu=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,O)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},R.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},R}(i.Evented),Ql={maxWidth:100,unit:"metric"},kf=function(R){this.options=i.extend({},Ql,R),i.bindAll(["_onMove","setUnit"],this)};kf.prototype.getDefaultPosition=function(){return"bottom-left"},kf.prototype._onMove=function(){Cu(this._map,this._container,this.options)},kf.prototype.onAdd=function(R){return this._map=R,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",R.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},kf.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},kf.prototype.setUnit=function(R){this.options.unit=R,Cu(this._map,this._container,this.options)};function Cu(Y,R,J){var O=J&&J.maxWidth||100,K=Y._container.clientHeight/2,_e=Y.unproject([0,K]),ne=Y.unproject([O,K]),Le=_e.distanceTo(ne);if(J&&J.unit==="imperial"){var Ze=3.2808*Le;if(Ze>5280){var Ct=Ze/5280;_f(R,O,Ct,Y._getUIString("ScaleControl.Miles"))}else _f(R,O,Ze,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var dr=Le/1852;_f(R,O,dr,Y._getUIString("ScaleControl.NauticalMiles"))}else Le>=1e3?_f(R,O,Le/1e3,Y._getUIString("ScaleControl.Kilometers")):_f(R,O,Le,Y._getUIString("ScaleControl.Meters"))}function _f(Y,R,J,O){var K=Lf(J),_e=K/J;Y.style.width=R*_e+"px",Y.innerHTML=K+" "+O}function bf(Y){var R=Math.pow(10,Math.ceil(-Math.log(Y)/Math.LN10));return Math.round(Y*R)/R}function Lf(Y){var R=Math.pow(10,(""+Math.floor(Y)).length-1),J=Y/R;return J=J>=10?10:J>=5?5:J>=3?3:J>=2?2:J>=1?1:bf(J),R*J}var Hu=function(R){this._fullscreen=!1,R&&R.container&&(R.container instanceof i.window.HTMLElement?this._container=R.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};Hu.prototype.onAdd=function(R){return this._map=R,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Hu.prototype.onRemove=function(){o.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Hu.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},Hu.prototype._setupUI=function(){var R=this._fullscreenButton=o.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o.create("span","mapboxgl-ctrl-icon",R).setAttribute("aria-hidden",!0),R.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Hu.prototype._updateTitle=function(){var R=this._getTitle();this._fullscreenButton.setAttribute("aria-label",R),this._fullscreenButton.title=R},Hu.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Hu.prototype._isFullscreen=function(){return this._fullscreen},Hu.prototype._changeIcon=function(){var R=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;R===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Hu.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var hf={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},yf=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Fl=function(Y){function R(J){Y.call(this),this.options=i.extend(Object.create(hf),J),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.addTo=function(O){return this._map&&this.remove(),this._map=O,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},R.prototype.isOpen=function(){return!!this._map},R.prototype.remove=function(){return this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},R.prototype.getLngLat=function(){return this._lngLat},R.prototype.setLngLat=function(O){return this._lngLat=i.LngLat.convert(O),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},R.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},R.prototype.getElement=function(){return this._container},R.prototype.setText=function(O){return this.setDOMContent(i.window.document.createTextNode(O))},R.prototype.setHTML=function(O){var K=i.window.document.createDocumentFragment(),_e=i.window.document.createElement("body"),ne;for(_e.innerHTML=O;ne=_e.firstChild,!!ne;)K.appendChild(ne);return this.setDOMContent(K)},R.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},R.prototype.setMaxWidth=function(O){return this.options.maxWidth=O,this._update(),this},R.prototype.setDOMContent=function(O){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(O),this._createCloseButton(),this._update(),this._focusFirstElement(),this},R.prototype.addClassName=function(O){this._container&&this._container.classList.add(O)},R.prototype.removeClassName=function(O){this._container&&this._container.classList.remove(O)},R.prototype.setOffset=function(O){return this.options.offset=O,this._update(),this},R.prototype.toggleClassName=function(O){if(this._container)return this._container.classList.toggle(O)},R.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=o.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},R.prototype._onMouseUp=function(O){this._update(O.point)},R.prototype._onMouseMove=function(O){this._update(O.point)},R.prototype._onDrag=function(O){this._update(O.point)},R.prototype._update=function(O){var K=this,_e=this._lngLat||this._trackPointer;if(!(!this._map||!_e||!this._content)&&(this._container||(this._container=o.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=o.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Je){return K._container.classList.add(Je)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Va(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!O))){var ne=this._pos=this._trackPointer&&O?O:this._map.project(this._lngLat),Le=this.options.anchor,Ze=wf(this.options.offset);if(!Le){var Ct=this._container.offsetWidth,dr=this._container.offsetHeight,Er;ne.y+Ze.bottom.ythis._map.transform.height-dr?Er=["bottom"]:Er=[],ne.xthis._map.transform.width-Ct/2&&Er.push("right"),Er.length===0?Le="bottom":Le=Er.join("-")}var lr=ne.add(Ze[Le]).round();o.setTransform(this._container,_s[Le]+" translate("+lr.x+"px,"+lr.y+"px)"),ul(this._container,Le,"popup")}},R.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var O=this._container.querySelector(yf);O&&O.focus()}},R.prototype._onClose=function(){this.remove()},R}(i.Evented);function wf(Y){if(Y)if(typeof Y=="number"){var R=Math.round(Math.sqrt(.5*Math.pow(Y,2)));return{center:new i.Point(0,0),top:new i.Point(0,Y),"top-left":new i.Point(R,R),"top-right":new i.Point(-R,R),bottom:new i.Point(0,-Y),"bottom-left":new i.Point(R,-R),"bottom-right":new i.Point(-R,-R),left:new i.Point(Y,0),right:new i.Point(-Y,0)}}else if(Y instanceof i.Point||Array.isArray(Y)){var J=i.Point.convert(Y);return{center:J,top:J,"top-left":J,"top-right":J,bottom:J,"bottom-left":J,"bottom-right":J,left:J,right:J}}else return{center:i.Point.convert(Y.center||[0,0]),top:i.Point.convert(Y.top||[0,0]),"top-left":i.Point.convert(Y["top-left"]||[0,0]),"top-right":i.Point.convert(Y["top-right"]||[0,0]),bottom:i.Point.convert(Y.bottom||[0,0]),"bottom-left":i.Point.convert(Y["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(Y["bottom-right"]||[0,0]),left:i.Point.convert(Y.left||[0,0]),right:i.Point.convert(Y.right||[0,0])};else return wf(new i.Point(0,0))}var cu={version:i.version,supported:a,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Ui,NavigationControl:On,GeolocateControl:mf,AttributionControl:ua,ScaleControl:kf,FullscreenControl:Hu,Popup:Fl,Marker:Qn,Style:jn,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:Yr,clearPrewarmedResources:oi,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(Y){i.config.ACCESS_TOKEN=Y},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(Y){i.config.API_URL=Y},get workerCount(){return Ei.workerCount},set workerCount(Y){Ei.workerCount=Y},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(Y){i.config.MAX_PARALLEL_IMAGE_REQUESTS=Y},clearStorage:function(R){i.clearTileCache(R)},workerUrl:""};return cu}),r})});var PGe=Te((ubr,LGe)=>{"use strict";var tw=ei(),djt=Xf().sanitizeHTML,pjt=cJ(),EGe=f1();function kGe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=EGe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var im=kGe.prototype;im.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=aB(t)};im.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};im.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};im.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};im.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};im.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};im.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!aB(e)){var r=vjt(e);t.addSource(this.idSource,r)}};im.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function CGe(e){var t={},r={};switch(e.type){case"circle":tw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":tw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":tw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=pjt(n.textposition,n.iconsize);tw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),tw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":tw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function vjt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=djt(e.sourceattribution)),n}LGe.exports=function(t,r,n){var i=new kGe(t,r);return i.update(n),i}});var NGe=Te((fbr,qGe)=>{"use strict";var gJ=yJ(),_J=ei(),DGe=ix(),zGe=$l(),mjt=wu(),yjt=xp(),oB=Xc(),FGe=Sm(),gjt=FGe.drawMode,_jt=FGe.selectMode,xjt=ah().prepSelect,bjt=ah().clearOutline,wjt=ah().clearSelectionsCache,Ajt=ah().selectOnClick,gx=f1(),Tjt=PGe();function BGe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Hh=BGe.prototype;Hh.plot=function(e,t,r){var n=this,i=t[n.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash={},n.layerList=[]);var a;n.map?a=new Promise(function(o,s){n.updateMap(e,t,o,s)}):a=new Promise(function(o,s){n.createMap(e,t,o,s)}),r.push(a)};Hh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=OGe(a.style,t);i.accessToken=a.accesstoken;var s=a.bounds,u=s?[[s.west,s.south],[s.east,s.north]]:null,l=i.map=new gJ.Map({container:i.div,style:o.style,center:xJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:u,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new gJ.AttributionControl({compact:!0}));l._canvas.style.left="0px",l._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var f=[];f.push(new Promise(function(c){l.once("load",c)})),f=f.concat(DGe.fetchTraceGeoData(e)),Promise.all(f).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Hh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],u=OGe(o.style,t);JSON.stringify(i.styleObj)!==JSON.stringify(u)&&(i.styleObj=u,a.setStyle(u.style),i.traceHash={},s.push(new Promise(function(l){a.once("styledata",l)}))),s=s.concat(DGe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Hh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&Ajt(u.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),l.indexOf("event")>-1&&oB.click(n,u.originalEvent)}}};Hh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(u){var l=t.map.unproject(u);return[l.lng,l.lat]}var a=e.dragmode,o;o=function(u,l){if(l.isRect){var f=u.range={};f[t.id]=[i([l.xmin,l.ymin]),i([l.xmax,l.ymax])]}else{var c=u.lassoPoints={};c[t.id]=l.map(i)}};var s=t.dragOptions;t.dragOptions=_J.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),_jt(a)||gjt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){xjt(u,l,f,t.dragOptions,a)},yjt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Hh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Hh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var bJ=ei(),Sjt=k_(),Mjt=Jd(),UGe=qk();VGe.exports=function(t,r,n){Sjt(t,r,n,{type:"mapbox",attributes:UGe,handleDefaults:Ejt,partition:"y",accessToken:r._mapboxAccessToken})};function Ejt(e,t,r,n){r("accesstoken",n.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var i=r("bounds.west"),a=r("bounds.east"),o=r("bounds.south"),s=r("bounds.north");(i===void 0||a===void 0||o===void 0||s===void 0)&&delete t.bounds,Mjt(e,t,{name:"layers",handleItemDefaults:kjt}),t._input=e}function kjt(e,t){function r(u,l){return bJ.coerce(e,t,UGe.layers,u,l)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",bJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),bJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var sB=Te(qv=>{"use strict";var HGe=yJ(),ty=ei(),wJ=ty.strTranslate,Cjt=ty.strScale,Ljt=Rd().getSubplotCalcData,Pjt=jv(),zjt=Jl(),WGe=Mu(),Ijt=Xf(),Rjt=NGe(),_x="mapbox",Qy=qv.constants=f1();qv.name=_x;qv.attr="subplot";qv.idRoot=_x;qv.idRegex=qv.attrRegex=ty.counterRegex(_x);var Djt=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");qv.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};qv.layoutAttributes=qk();qv.supplyLayoutDefaults=GGe();var jGe=!0;qv.plot=function(t){jGe&&(jGe=!1,ty.warn(Djt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[_x];if(HGe.version!==Qy.requiredVersion)throw new Error(Qy.wrongVersionErrorMsg);var a=Fjt(t,i);HGe.accessToken=a;for(var o=0;ov/2){var k=d.split("|").join("
");x.text(k).attr("data-unformatted",k).call(Ijt.convertToTspans,e),b=WGe.bBox(x.node())}x.attr("transform",wJ(-3,-b.height+8)),p.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var E=1;b.width+6>v&&(E=v/(b.width+6));var T=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];p.attr("transform",wJ(T[0],T[1])+Cjt(E))}};function Fjt(e,t){var r=e._fullLayout,n=e._context;if(n.mapboxAccessToken==="")return"";for(var i=[],a=[],o=!1,s=!1,u=0;u1&&ty.warn(Qy.multipleTokensErrorMsg),i[0]):(a.length&&ty.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function XGe(e){return typeof e=="string"&&(Qy.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}qv.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[_x],n=0;n{"use strict";var dbr=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");ZGe.exports={attributes:Q8(),supplyDefaults:oGe(),colorbar:ep(),formatLabels:fJ(),calc:hF(),plot:xGe(),hoverPoints:nB().hoverPoints,eventData:TGe(),selectPoints:MGe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:sB(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var JGe=Te((vbr,KGe)=>{"use strict";KGe.exports=YGe()});var AJ=Te((mbr,$Ge)=>{"use strict";var c1=JT(),Bjt=nc(),Ojt=Nu().hovertemplateAttrs,qjt=Gf(),xx=Su().extendFlat;$Ge.exports=xx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:xx({},c1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:c1.text,hovertext:c1.hovertext,marker:{line:{color:xx({},c1.marker.line.color,{editType:"plot"}),width:xx({},c1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:xx({},c1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:xx({},c1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:xx({},c1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:c1.hoverinfo,hovertemplate:Ojt({},{keys:["properties"]}),showlegend:xx({},qjt.showlegend,{dflt:!1})},Bjt("",{cLetter:"z",editTypeOverride:"calc"}))});var eHe=Te((ybr,QGe)=>{"use strict";var Gk=ei(),Njt=ed(),Ujt=AJ();QGe.exports=function(t,r,n,i){function a(f,c){return Gk.coerce(t,r,Ujt,f,c)}var o=a("locations"),s=a("z"),u=a("geojson");if(!Gk.isArrayOrTypedArray(o)||!o.length||!Gk.isArrayOrTypedArray(s)||!s.length||!(typeof u=="string"&&u!==""||Gk.isPlainObject(u))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var l=a("marker.line.width");l&&a("marker.line.color"),a("marker.opacity"),Njt(t,r,i,a,{prefix:"",cLetter:"z"}),Gk.coerceSelectionMarkerOpacity(r,a)}});var TJ=Te((gbr,iHe)=>{"use strict";var Vjt=ku(),h1=ei(),Gjt=_c(),Hjt=Mu(),Wjt=tx().makeBlank,tHe=ix();function jjt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:Wjt()};if(!r)return a;var o=tHe.extractTraceFeature(e);if(!o)return a;var s=Gjt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;h1.isArrayOrTypedArray(u.opacity)&&(f=function(k){var E=k.mo;return Vjt(E)?+h1.constrain(E,0,1):0});var c;h1.isArrayOrTypedArray(l.color)&&(c=function(k){return k.mlc});var h;h1.isArrayOrTypedArray(l.width)&&(h=function(k){return k.mlw});for(var d=0;d{"use strict";var aHe=TJ().convert,Xjt=TJ().convertOnSelect,nHe=f1().traceLayerPrefix;function oHe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",nHe+t+"-fill"],["line",nHe+t+"-line"]],this.below=null}var AS=oHe.prototype;AS.update=function(e){this._update(aHe(e)),e[0].trace._glTrace=this};AS.updateOnSelect=function(e){this._update(Xjt(e))};AS._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};AS.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};sHe.exports=function(t,r){var n=r[0].trace,i=new oHe(t,n.uid),a=i.sourceId,o=aHe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var fHe=Te((bbr,uHe)=>{"use strict";var xbr=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");uHe.exports={attributes:AJ(),supplyDefaults:eHe(),colorbar:S_(),calc:IF(),plot:lHe(),hoverPoints:DF(),eventData:FF(),selectPoints:BF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";cHe.exports=fHe()});var MJ=Te((Abr,pHe)=>{"use strict";var Zjt=nc(),Yjt=Nu().hovertemplateAttrs,dHe=Gf(),lB=Q8(),SJ=Su().extendFlat;pHe.exports=SJ({lon:lB.lon,lat:lB.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:lB.text,hovertext:lB.hovertext,hoverinfo:SJ({},dHe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:Yjt(),showlegend:SJ({},dHe.showlegend,{dflt:!1})},Zjt("",{cLetter:"z",editTypeOverride:"calc"}))});var mHe=Te((Tbr,vHe)=>{"use strict";var Kjt=ei(),Jjt=ed(),$jt=MJ();vHe.exports=function(t,r,n,i){function a(l,f){return Kjt.coerce(t,r,$jt,l,f)}var o=a("lon")||[],s=a("lat")||[],u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),Jjt(t,r,i,a,{prefix:"",cLetter:"z"})}});var _He=Te((Sbr,gHe)=>{"use strict";var EJ=ku(),Qjt=ei().isArrayOrTypedArray,kJ=nf().BADNUM,eXt=gp(),yHe=ei()._;gHe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=Qjt(a)&&a.length,s=0;s{"use strict";var tXt=ku(),CJ=ei(),xHe=jl(),bHe=_c(),wHe=nf().BADNUM,rXt=tx().makeBlank;AHe.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:rXt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=CJ.isArrayOrTypedArray(u)&&u.length,c=CJ.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=bHe.extractOpts(r),v=b.reversescale?bHe.flipScale(b.colorscale):b.colorscale,k=v[0][1],E=xHe.opacity(k)<1?k:xHe.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var SHe=THe(),iXt=f1().traceLayerPrefix;function MHe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",iXt+t+"-heatmap"]],this.below=null}var uB=MHe.prototype;uB.update=function(e){var t=this.subplot,r=this.layerList,n=SHe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};uB.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};EHe.exports=function(t,r){var n=r[0].trace,i=new MHe(t,n.uid),a=i.sourceId,o=SHe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var LHe=Te((kbr,CHe)=>{"use strict";var nXt=wu(),aXt=nB().hoverPoints,oXt=nB().getExtraText;CHe.exports=function(t,r,n){var i=aXt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,u=o[a.index];if(delete a.color,"z"in u){var l=a.subplot.mockAxis;a.z=u.z,a.zLabel=nXt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=oXt(s,u,o[0].t.labels),[a]}}});var zHe=Te((Cbr,PHe)=>{"use strict";PHe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var RHe=Te((Pbr,IHe)=>{"use strict";var Lbr=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");IHe.exports={attributes:MJ(),supplyDefaults:mHe(),colorbar:S_(),formatLabels:fJ(),calc:_He(),plot:kHe(),hoverPoints:LHe(),eventData:zHe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";DHe.exports=RHe()});var OHe=Te((Ibr,BHe)=>{BHe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} +`),Ot=Le.createShader(Le.FRAGMENT_SHADER);if(Le.isContextLost()){this.failedToCreate=!0;return}Le.shaderSource(Ot,ur),Le.compileShader(Ot),Le.attachShader(this.program,Ot);var Jt=Le.createShader(Le.VERTEX_SHADER);if(Le.isContextLost()){this.failedToCreate=!0;return}Le.shaderSource(Jt,er),Le.compileShader(Jt),Le.attachShader(this.program,Jt),this.attributes={};var Lt={};this.numAttributes=dr.length;for(var Tr=0;Tr>16,Le>>16],u_pixel_coord_lower:[ne&65535,Le&65535]}}function cl(Y,R,J,O){var K=J.imageManager.getPattern(Y.from.toString()),_e=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),Le=ne.width,Ze=ne.height,Ct=Math.pow(2,O.tileID.overscaledZ),dr=O.tileSize*Math.pow(2,J.transform.tileZoom)/Ct,Er=dr*(O.tileID.canonical.x+O.tileID.wrap*Ct),lr=dr*O.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:K.tl,u_pattern_br_a:K.br,u_pattern_tl_b:_e.tl,u_pattern_br_b:_e.br,u_texsize:[Le,Ze],u_mix:R.t,u_pattern_size_a:K.displaySize,u_pattern_size_b:_e.displaySize,u_scale_a:R.fromScale,u_scale_b:R.toScale,u_tile_units_to_pixels:1/uo(O,1,J.transform.tileZoom),u_pixel_coord_upper:[Er>>16,lr>>16],u_pixel_coord_lower:[Er&65535,lr&65535]}}var el=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_lightpos:new i.Uniform3f(Y,R.u_lightpos),u_lightintensity:new i.Uniform1f(Y,R.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,R.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,R.u_vertical_gradient),u_opacity:new i.Uniform1f(Y,R.u_opacity)}},Hs=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_lightpos:new i.Uniform3f(Y,R.u_lightpos),u_lightintensity:new i.Uniform1f(Y,R.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,R.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,R.u_vertical_gradient),u_height_factor:new i.Uniform1f(Y,R.u_height_factor),u_image:new i.Uniform1i(Y,R.u_image),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade),u_opacity:new i.Uniform1f(Y,R.u_opacity)}},Ro=function(Y,R,J,O){var K=R.style.light,_e=K.properties.get("position"),ne=[_e.x,_e.y,_e.z],Le=i.create$1();K.properties.get("anchor")==="viewport"&&i.fromRotation(Le,-R.transform.angle),i.transformMat3(ne,ne,Le);var Ze=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Ze.r,Ze.g,Ze.b],u_vertical_gradient:+J,u_opacity:O}},tl=function(Y,R,J,O,K,_e,ne){return i.extend(Ro(Y,R,J,O),fs(_e,R,ne),{u_height_factor:-Math.pow(2,K.overscaledZ)/ne.tileSize/8})},Fs=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},hl=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_image:new i.Uniform1i(Y,R.u_image),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade)}},Fa=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_world:new i.Uniform2f(Y,R.u_world)}},Ms=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_world:new i.Uniform2f(Y,R.u_world),u_image:new i.Uniform1i(Y,R.u_image),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade)}},jo=function(Y){return{u_matrix:Y}},Rs=function(Y,R,J,O){return i.extend(jo(Y),fs(J,R,O))},Is=function(Y,R){return{u_matrix:Y,u_world:R}},Bs=function(Y,R,J,O,K){return i.extend(Rs(Y,R,J,O),{u_world:K})},At=function(Y,R){return{u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(Y,R.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(Y,R.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},Gt=function(Y,R,J,O){var K=Y.transform,_e,ne;if(O.paint.get("circle-pitch-alignment")==="map"){var Le=uo(J,1,K.zoom);_e=!0,ne=[Le,Le]}else _e=!1,ne=K.pixelsToGLUnits;return{u_camera_to_center_distance:K.cameraToCenterDistance,u_scale_with_map:+(O.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(R.posMatrix,J,O.paint.get("circle-translate"),O.paint.get("circle-translate-anchor")),u_pitch_with_map:+_e,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},wr=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(Y,R.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(Y,R.u_extrude_scale),u_overscale_factor:new i.Uniform1f(Y,R.u_overscale_factor)}},mr=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_inv_matrix:new i.UniformMatrix4f(Y,R.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(Y,R.u_viewport_size)}},Or=function(Y,R,J){var O=uo(J,1,R.zoom),K=Math.pow(2,R.zoom-J.tileID.overscaledZ),_e=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:R.cameraToCenterDistance,u_pixels_to_tile_units:O,u_extrude_scale:[R.pixelsToGLUnits[0]/(O*K),R.pixelsToGLUnits[1]/(O*K)],u_overscale_factor:_e}},gi=function(Y,R,J){return{u_matrix:Y,u_inv_matrix:R,u_camera_to_center_distance:J.cameraToCenterDistance,u_viewport_size:[J.width,J.height]}},Ti=function(Y,R){return{u_color:new i.UniformColor(Y,R.u_color),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_overlay:new i.Uniform1i(Y,R.u_overlay),u_overlay_scale:new i.Uniform1f(Y,R.u_overlay_scale)}},ki=function(Y,R,J){return J===void 0&&(J=1),{u_matrix:Y,u_color:R,u_overlay:0,u_overlay_scale:J}},Ji=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},Fn=function(Y){return{u_matrix:Y}},Pi=function(Y,R){return{u_extrude_scale:new i.Uniform1f(Y,R.u_extrude_scale),u_intensity:new i.Uniform1f(Y,R.u_intensity),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},hi=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_world:new i.Uniform2f(Y,R.u_world),u_image:new i.Uniform1i(Y,R.u_image),u_color_ramp:new i.Uniform1i(Y,R.u_color_ramp),u_opacity:new i.Uniform1f(Y,R.u_opacity)}},Li=function(Y,R,J,O){return{u_matrix:Y,u_extrude_scale:uo(R,1,J),u_intensity:O}},Si=function(Y,R,J,O){var K=i.create();i.ortho(K,0,Y.width,Y.height,0,0,1);var _e=Y.context.gl;return{u_matrix:K,u_world:[_e.drawingBufferWidth,_e.drawingBufferHeight],u_image:J,u_color_ramp:O,u_opacity:R.paint.get("heatmap-opacity")}},Gn=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_image:new i.Uniform1i(Y,R.u_image),u_latrange:new i.Uniform2f(Y,R.u_latrange),u_light:new i.Uniform2f(Y,R.u_light),u_shadow:new i.UniformColor(Y,R.u_shadow),u_highlight:new i.UniformColor(Y,R.u_highlight),u_accent:new i.UniformColor(Y,R.u_accent)}},ta=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_image:new i.Uniform1i(Y,R.u_image),u_dimension:new i.Uniform2f(Y,R.u_dimension),u_zoom:new i.Uniform1f(Y,R.u_zoom),u_unpack:new i.Uniform4f(Y,R.u_unpack)}},ya=function(Y,R,J){var O=J.paint.get("hillshade-shadow-color"),K=J.paint.get("hillshade-highlight-color"),_e=J.paint.get("hillshade-accent-color"),ne=J.paint.get("hillshade-illumination-direction")*(Math.PI/180);J.paint.get("hillshade-illumination-anchor")==="viewport"&&(ne-=Y.transform.angle);var Le=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(R.tileID.toUnwrapped(),Le),u_image:0,u_latrange:pa(Y,R.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:O,u_highlight:K,u_accent:_e}},ia=function(Y,R){var J=R.stride,O=i.create();return i.ortho(O,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(O,O,[0,-i.EXTENT,0]),{u_matrix:O,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:R.getUnpackVector()}};function pa(Y,R){var J=Math.pow(2,R.canonical.z),O=R.canonical.y;return[new i.MercatorCoordinate(0,O/J).toLngLat().lat,new i.MercatorCoordinate(0,(O+1)/J).toLngLat().lat]}var va=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels)}},zn=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels),u_image:new i.Uniform1i(Y,R.u_image),u_image_height:new i.Uniform1f(Y,R.u_image_height)}},is=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_image:new i.Uniform1i(Y,R.u_image),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade)}},Cs=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(Y,R.u_patternscale_a),u_patternscale_b:new i.Uniform2f(Y,R.u_patternscale_b),u_sdfgamma:new i.Uniform1f(Y,R.u_sdfgamma),u_image:new i.Uniform1i(Y,R.u_image),u_tex_y_a:new i.Uniform1f(Y,R.u_tex_y_a),u_tex_y_b:new i.Uniform1f(Y,R.u_tex_y_b),u_mix:new i.Uniform1f(Y,R.u_mix)}},Ks=function(Y,R,J){var O=Y.transform;return{u_matrix:eu(Y,R,J),u_ratio:1/uo(R,1,O.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/O.pixelsToGLUnits[0],1/O.pixelsToGLUnits[1]]}},dl=function(Y,R,J,O){return i.extend(Ks(Y,R,J),{u_image:0,u_image_height:O})},xl=function(Y,R,J,O){var K=Y.transform,_e=bl(R,K);return{u_matrix:eu(Y,R,J),u_texsize:R.imageAtlasTexture.size,u_ratio:1/uo(R,1,K.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[_e,O.fromScale,O.toScale],u_fade:O.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},Bl=function(Y,R,J,O,K){var _e=Y.transform,ne=Y.lineAtlas,Le=bl(R,_e),Ze=J.layout.get("line-cap")==="round",Ct=ne.getDash(O.from,Ze),dr=ne.getDash(O.to,Ze),Er=Ct.width*K.fromScale,lr=dr.width*K.toScale;return i.extend(Ks(Y,R,J),{u_patternscale_a:[Le/Er,-Ct.height/2],u_patternscale_b:[Le/lr,-dr.height/2],u_sdfgamma:ne.width/(Math.min(Er,lr)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:Ct.y,u_tex_y_b:dr.y,u_mix:K.t})};function bl(Y,R){return 1/uo(Y,1,R.tileZoom)}function eu(Y,R,J){return Y.translatePosMatrix(R.tileID.posMatrix,R,J.paint.get("line-translate"),J.paint.get("line-translate-anchor"))}var Zl=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_tl_parent:new i.Uniform2f(Y,R.u_tl_parent),u_scale_parent:new i.Uniform1f(Y,R.u_scale_parent),u_buffer_scale:new i.Uniform1f(Y,R.u_buffer_scale),u_fade_t:new i.Uniform1f(Y,R.u_fade_t),u_opacity:new i.Uniform1f(Y,R.u_opacity),u_image0:new i.Uniform1i(Y,R.u_image0),u_image1:new i.Uniform1i(Y,R.u_image1),u_brightness_low:new i.Uniform1f(Y,R.u_brightness_low),u_brightness_high:new i.Uniform1f(Y,R.u_brightness_high),u_saturation_factor:new i.Uniform1f(Y,R.u_saturation_factor),u_contrast_factor:new i.Uniform1f(Y,R.u_contrast_factor),u_spin_weights:new i.Uniform3f(Y,R.u_spin_weights)}},Ul=function(Y,R,J,O,K){return{u_matrix:Y,u_tl_parent:R,u_scale_parent:J,u_buffer_scale:1,u_fade_t:O.mix,u_opacity:O.opacity*K.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:K.paint.get("raster-brightness-min"),u_brightness_high:K.paint.get("raster-brightness-max"),u_saturation_factor:Js(K.paint.get("raster-saturation")),u_contrast_factor:ns(K.paint.get("raster-contrast")),u_spin_weights:ja(K.paint.get("raster-hue-rotate"))}};function ja(Y){Y*=Math.PI/180;var R=Math.sin(Y),J=Math.cos(Y);return[(2*J+1)/3,(-Math.sqrt(3)*R-J+1)/3,(Math.sqrt(3)*R-J+1)/3]}function ns(Y){return Y>0?1/(1-Y):1+Y}function Js(Y){return Y>0?1-1/(1.001-Y):-Y}var cs=function(Y,R){return{u_is_size_zoom_constant:new i.Uniform1i(Y,R.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,R.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,R.u_size_t),u_size:new i.Uniform1f(Y,R.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,R.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,R.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,R.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,R.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,R.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,R.u_coord_matrix),u_is_text:new i.Uniform1i(Y,R.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_texture:new i.Uniform1i(Y,R.u_texture)}},sl=function(Y,R){return{u_is_size_zoom_constant:new i.Uniform1i(Y,R.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,R.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,R.u_size_t),u_size:new i.Uniform1f(Y,R.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,R.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,R.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,R.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,R.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,R.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,R.u_coord_matrix),u_is_text:new i.Uniform1i(Y,R.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_texture:new i.Uniform1i(Y,R.u_texture),u_gamma_scale:new i.Uniform1f(Y,R.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,R.u_is_halo)}},ll=function(Y,R){return{u_is_size_zoom_constant:new i.Uniform1i(Y,R.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,R.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,R.u_size_t),u_size:new i.Uniform1f(Y,R.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,R.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,R.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,R.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,R.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,R.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,R.u_coord_matrix),u_is_text:new i.Uniform1i(Y,R.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_texsize_icon:new i.Uniform2f(Y,R.u_texsize_icon),u_texture:new i.Uniform1i(Y,R.u_texture),u_texture_icon:new i.Uniform1i(Y,R.u_texture_icon),u_gamma_scale:new i.Uniform1f(Y,R.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,R.u_is_halo)}},il=function(Y,R,J,O,K,_e,ne,Le,Ze,Ct){var dr=K.transform;return{u_is_size_zoom_constant:+(Y==="constant"||Y==="source"),u_is_size_feature_constant:+(Y==="constant"||Y==="camera"),u_size_t:R?R.uSizeT:0,u_size:R?R.uSize:0,u_camera_to_center_distance:dr.cameraToCenterDistance,u_pitch:dr.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:dr.width/dr.height,u_fade_change:K.options.fadeDuration?K.symbolFadeChange:1,u_matrix:_e,u_label_plane_matrix:ne,u_coord_matrix:Le,u_is_text:+Ze,u_pitch_with_map:+O,u_texsize:Ct,u_texture:0}},zl=function(Y,R,J,O,K,_e,ne,Le,Ze,Ct,dr){var Er=K.transform;return i.extend(il(Y,R,J,O,K,_e,ne,Le,Ze,Ct),{u_gamma_scale:O?Math.cos(Er._pitch)*Er.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+dr})},Ml=function(Y,R,J,O,K,_e,ne,Le,Ze,Ct){return i.extend(zl(Y,R,J,O,K,_e,ne,Le,!0,Ze,!0),{u_texsize_icon:Ct,u_texture_icon:1})},Rl=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_opacity:new i.Uniform1f(Y,R.u_opacity),u_color:new i.UniformColor(Y,R.u_color)}},Al=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_opacity:new i.Uniform1f(Y,R.u_opacity),u_image:new i.Uniform1i(Y,R.u_image),u_pattern_tl_a:new i.Uniform2f(Y,R.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(Y,R.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(Y,R.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(Y,R.u_pattern_br_b),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_mix:new i.Uniform1f(Y,R.u_mix),u_pattern_size_a:new i.Uniform2f(Y,R.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(Y,R.u_pattern_size_b),u_scale_a:new i.Uniform1f(Y,R.u_scale_a),u_scale_b:new i.Uniform1f(Y,R.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(Y,R.u_tile_units_to_pixels)}},Ll=function(Y,R,J){return{u_matrix:Y,u_opacity:R,u_color:J}},ms=function(Y,R,J,O,K,_e){return i.extend(cl(O,_e,J,K),{u_matrix:Y,u_opacity:R})},Os={fillExtrusion:el,fillExtrusionPattern:Hs,fill:Fs,fillPattern:hl,fillOutline:Fa,fillOutlinePattern:Ms,circle:At,collisionBox:wr,collisionCircle:mr,debug:Ti,clippingMask:Ji,heatmap:Pi,heatmapTexture:hi,hillshade:Gn,hillshadePrepare:ta,line:va,lineGradient:zn,linePattern:is,lineSDF:Cs,raster:Zl,symbolIcon:cs,symbolSDF:sl,symbolTextAndIcon:ll,background:Rl,backgroundPattern:Al},Xl;function Vl(Y,R,J,O,K,_e,ne){for(var Le=Y.context,Ze=Le.gl,Ct=Y.useProgram("collisionBox"),dr=[],Er=0,lr=0,Je=0;Je0){var er=i.create(),Ot=sr;i.mul(er,Kt.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(er,er,Kt.placementViewportMatrix),dr.push({circleArray:ur,circleOffset:lr,transform:Ot,invTransform:er}),Er+=ur.length/4,lr=Er}Qt&&Ct.draw(Le,Ze.LINES,Ii.disabled,ii.disabled,Y.colorModeForRenderPass(),_r.disabled,Or(sr,Y.transform,bt),J.id,Qt.layoutVertexBuffer,Qt.indexBuffer,Qt.segments,null,Y.transform.zoom,null,null,Qt.collisionVertexBuffer)}}if(!(!ne||!dr.length)){var Jt=Y.useProgram("collisionCircle"),Lt=new i.StructArrayLayout2f1f2i16;Lt.resize(Er*4),Lt._trim();for(var Tr=0,Nr=0,ci=dr;Nr=0&&(ht[Kt.associatedIconIndex]={shiftedAnchor:yn,angle:Xa})}}if(dr){Je.clear();for(var Tn=Y.icon.placedSymbolArray,Pn=0;Pn0){var ne=i.browser.now(),Le=(ne-Y.timeAdded)/_e,Ze=R?(ne-R.timeAdded)/_e:-1,Ct=J.getSource(),dr=K.coveringZoomLevel({tileSize:Ct.tileSize,roundZoom:Ct.roundZoom}),Er=!R||Math.abs(R.tileID.overscaledZ-dr)>Math.abs(Y.tileID.overscaledZ-dr),lr=Er&&Y.refreshedUponExpiration?1:i.clamp(Er?Le:1-Ze,0,1);return Y.refreshedUponExpiration&&Le>=1&&(Y.refreshedUponExpiration=!1),R?{opacity:1,mix:1-lr}:{opacity:lr,mix:0}}else return{opacity:1,mix:0}}function fr(Y,R,J){var O=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var _e=Y.context,ne=_e.gl,Le=Y.transform,Ze=Le.tileSize,Ct=J.paint.get("background-pattern");if(!Y.isPatternMissing(Ct)){var dr=!Ct&&O.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===dr){var Er=ii.disabled,lr=Y.depthModeForSublayer(0,dr==="opaque"?Ii.ReadWrite:Ii.ReadOnly),Je=Y.colorModeForRenderPass(),ht=Y.useProgram(Ct?"backgroundPattern":"background"),bt=Le.coveringTiles({tileSize:Ze});Ct&&(_e.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var Kt=J.getCrossfadeParameters(),sr=0,Qt=bt;sr "+J.overscaledZ);var sr=Kt+" "+Je+"kb";ml(Y,sr),ne.draw(O,K.TRIANGLES,Le,Ze,yt.alphaBlended,_r.disabled,ki(_e,i.Color.transparent,bt),dr,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function ml(Y,R){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,O=Y.context.gl,K=Y.debugOverlayCanvas.getContext("2d");K.clearRect(0,0,J.width,J.height),K.shadowColor="white",K.shadowBlur=2,K.lineWidth=1.5,K.strokeStyle="white",K.textBaseline="top",K.font="bold 36px Open Sans, sans-serif",K.fillText(R,5,5),K.strokeText(R,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(O.LINEAR,O.CLAMP_TO_EDGE)}function au(Y,R,J){var O=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var _e=K.prerender;_e&&(Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),_e.call(K,O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),O.setStencilMode(ii.disabled);var ne=K.renderingMode==="3d"?new Ii(Y.context.gl.LEQUAL,Ii.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,Ii.ReadOnly);O.setDepthMode(ne),K.render(O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState(),O.bindFramebuffer.set(null)}}var Sl={symbol:w,circle:mt,heatmap:Ft,line:Vr,fill:he,"fill-extrusion":qe,hillshade:lt,raster:Ht,background:fr,debug:vl,custom:au},Yl=function(R,J){this.context=new Lr(R),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=Ur.maxUnderzooming+Ur.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new As,this.gpuTimers={}};Yl.prototype.resize=function(R,J){if(this.width=R*i.browser.devicePixelRatio,this.height=J*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var O=0,K=this.style._order;O256&&this.clearStencil(),O.setColorMode(yt.disabled),O.setDepthMode(Ii.disabled);var _e=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ne=0,Le=J;ne256&&this.clearStencil();var R=this.nextStencilID++,J=this.context.gl;return new ii({func:J.NOTEQUAL,mask:255},R,255,J.KEEP,J.KEEP,J.REPLACE)},Yl.prototype.stencilModeForClipping=function(R){var J=this.context.gl;return new ii({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[R.key],0,J.KEEP,J.KEEP,J.REPLACE)},Yl.prototype.stencilConfigForOverlap=function(R){var J,O=this.context.gl,K=R.sort(function(Ct,dr){return dr.overscaledZ-Ct.overscaledZ}),_e=K[K.length-1].overscaledZ,ne=K[0].overscaledZ-_e+1;if(ne>1){this.currentStencilSource=void 0,this.nextStencilID+ne>256&&this.clearStencil();for(var Le={},Ze=0;Ze=0;this.currentLayer--){var er=this.style._layers[K[this.currentLayer]],Ot=_e[er.source],Jt=Ze[er.source];this._renderTileClippingMasks(er,Jt),this.renderLayer(this,Ot,er,Jt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},Yl.prototype.isPatternMissing=function(R){if(!R)return!1;if(!R.from||!R.to)return!0;var J=this.imageManager.getPattern(R.from.toString()),O=this.imageManager.getPattern(R.to.toString());return!J||!O},Yl.prototype.useProgram=function(R,J){this.cache=this.cache||{};var O=""+R+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[O]||(this.cache[O]=new vs(this.context,R,io[R],J,Os[R],this._showOverdrawInspector)),this.cache[O]},Yl.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Yl.prototype.setBaseState=function(){var R=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(R.FUNC_ADD)},Yl.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var R=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,R.RGBA)}},Yl.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Ol=function(R,J){this.points=R,this.planes=J};Ol.fromInvProjectionMatrix=function(R,J,O){var K=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],_e=Math.pow(2,O),ne=K.map(function(Ct){return i.transformMat4([],Ct,R)}).map(function(Ct){return i.scale$1([],Ct,1/Ct[3]/J*_e)}),Le=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ze=Le.map(function(Ct){var dr=i.sub([],ne[Ct[0]],ne[Ct[1]]),Er=i.sub([],ne[Ct[2]],ne[Ct[1]]),lr=i.normalize([],i.cross([],dr,Er)),Je=-i.dot(lr,ne[Ct[1]]);return lr.concat(Je)});return new Ol(ne,Ze)};var ou=function(R,J){this.min=R,this.max=J,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};ou.prototype.quadrant=function(R){for(var J=[R%2===0,R<2],O=i.clone$2(this.min),K=i.clone$2(this.max),_e=0;_e=0;if(ne===0)return 0;ne!==J.length&&(O=!1)}if(O)return 2;for(var Ze=0;Ze<3;Ze++){for(var Ct=Number.MAX_VALUE,dr=-Number.MAX_VALUE,Er=0;Erthis.max[Ze]-this.min[Ze])return 0}return 1};var Pu=function(R,J,O,K){if(R===void 0&&(R=0),J===void 0&&(J=0),O===void 0&&(O=0),K===void 0&&(K=0),isNaN(R)||R<0||isNaN(J)||J<0||isNaN(O)||O<0||isNaN(K)||K<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=R,this.bottom=J,this.left=O,this.right=K};Pu.prototype.interpolate=function(R,J,O){return J.top!=null&&R.top!=null&&(this.top=i.number(R.top,J.top,O)),J.bottom!=null&&R.bottom!=null&&(this.bottom=i.number(R.bottom,J.bottom,O)),J.left!=null&&R.left!=null&&(this.left=i.number(R.left,J.left,O)),J.right!=null&&R.right!=null&&(this.right=i.number(R.right,J.right,O)),this},Pu.prototype.getCenter=function(R,J){var O=i.clamp((this.left+R-this.right)/2,0,R),K=i.clamp((this.top+J-this.bottom)/2,0,J);return new i.Point(O,K)},Pu.prototype.equals=function(R){return this.top===R.top&&this.bottom===R.bottom&&this.left===R.left&&this.right===R.right},Pu.prototype.clone=function(){return new Pu(this.top,this.bottom,this.left,this.right)},Pu.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var iu=function(R,J,O,K,_e){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=_e===void 0?!0:_e,this._minZoom=R||0,this._maxZoom=J||22,this._minPitch=O==null?0:O,this._maxPitch=K==null?60:K,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Pu,this._posMatrixCache={},this._alignedPosMatrixCache={}},tu={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};iu.prototype.clone=function(){var R=new iu(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return R.tileSize=this.tileSize,R.latRange=this.latRange,R.width=this.width,R.height=this.height,R._center=this._center,R.zoom=this.zoom,R.angle=this.angle,R._fov=this._fov,R._pitch=this._pitch,R._unmodified=this._unmodified,R._edgeInsets=this._edgeInsets.clone(),R._calcMatrices(),R},tu.minZoom.get=function(){return this._minZoom},tu.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},tu.maxZoom.get=function(){return this._maxZoom},tu.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},tu.minPitch.get=function(){return this._minPitch},tu.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},tu.maxPitch.get=function(){return this._maxPitch},tu.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},tu.renderWorldCopies.get=function(){return this._renderWorldCopies},tu.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},tu.worldSize.get=function(){return this.tileSize*this.scale},tu.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},tu.size.get=function(){return new i.Point(this.width,this.height)},tu.bearing.get=function(){return-this.angle/Math.PI*180},tu.bearing.set=function(Y){var R=-i.wrap(Y,-180,180)*Math.PI/180;this.angle!==R&&(this._unmodified=!1,this.angle=R,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},tu.pitch.get=function(){return this._pitch/Math.PI*180},tu.pitch.set=function(Y){var R=i.clamp(Y,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==R&&(this._unmodified=!1,this._pitch=R,this._calcMatrices())},tu.fov.get=function(){return this._fov/Math.PI*180},tu.fov.set=function(Y){Y=Math.max(.01,Math.min(60,Y)),this._fov!==Y&&(this._unmodified=!1,this._fov=Y/180*Math.PI,this._calcMatrices())},tu.zoom.get=function(){return this._zoom},tu.zoom.set=function(Y){var R=Math.min(Math.max(Y,this.minZoom),this.maxZoom);this._zoom!==R&&(this._unmodified=!1,this._zoom=R,this.scale=this.zoomScale(R),this.tileZoom=Math.floor(R),this.zoomFraction=R-this.tileZoom,this._constrain(),this._calcMatrices())},tu.center.get=function(){return this._center},tu.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},tu.padding.get=function(){return this._edgeInsets.toJSON()},tu.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},tu.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},iu.prototype.isPaddingEqual=function(R){return this._edgeInsets.equals(R)},iu.prototype.interpolatePadding=function(R,J,O){this._unmodified=!1,this._edgeInsets.interpolate(R,J,O),this._constrain(),this._calcMatrices()},iu.prototype.coveringZoomLevel=function(R){var J=(R.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/R.tileSize));return Math.max(0,J)},iu.prototype.getVisibleUnwrappedCoordinates=function(R){var J=[new i.UnwrappedTileID(0,R)];if(this._renderWorldCopies)for(var O=this.pointCoordinate(new i.Point(0,0)),K=this.pointCoordinate(new i.Point(this.width,0)),_e=this.pointCoordinate(new i.Point(this.width,this.height)),ne=this.pointCoordinate(new i.Point(0,this.height)),Le=Math.floor(Math.min(O.x,K.x,_e.x,ne.x)),Ze=Math.floor(Math.max(O.x,K.x,_e.x,ne.x)),Ct=1,dr=Le-Ct;dr<=Ze+Ct;dr++)dr!==0&&J.push(new i.UnwrappedTileID(dr,R));return J},iu.prototype.coveringTiles=function(R){var J=this.coveringZoomLevel(R),O=J;if(R.minzoom!==void 0&&JR.maxzoom&&(J=R.maxzoom);var K=i.MercatorCoordinate.fromLngLat(this.center),_e=Math.pow(2,J),ne=[_e*K.x,_e*K.y,0],Le=Ol.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Ze=R.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ze=J);var Ct=3,dr=function(Ki){return{aabb:new ou([Ki*_e,0,0],[(Ki+1)*_e,_e,0]),zoom:0,x:0,y:0,wrap:Ki,fullyVisible:!1}},Er=[],lr=[],Je=J,ht=R.reparseOverscaled?O:J;if(this._renderWorldCopies)for(var bt=1;bt<=3;bt++)Er.push(dr(-bt)),Er.push(dr(bt));for(Er.push(dr(0));Er.length>0;){var Kt=Er.pop(),sr=Kt.x,Qt=Kt.y,ur=Kt.fullyVisible;if(!ur){var er=Kt.aabb.intersects(Le);if(er===0)continue;ur=er===2}var Ot=Kt.aabb.distanceX(ne),Jt=Kt.aabb.distanceY(ne),Lt=Math.max(Math.abs(Ot),Math.abs(Jt)),Tr=Ct+(1<Tr&&Kt.zoom>=Ze){lr.push({tileID:new i.OverscaledTileID(Kt.zoom===Je?ht:Kt.zoom,Kt.wrap,Kt.zoom,sr,Qt),distanceSq:i.sqrLen([ne[0]-.5-sr,ne[1]-.5-Qt])});continue}for(var Nr=0;Nr<4;Nr++){var ci=(sr<<1)+Nr%2,Cn=(Qt<<1)+(Nr>>1);Er.push({aabb:Kt.aabb.quadrant(Nr),zoom:Kt.zoom+1,x:ci,y:Cn,wrap:Kt.wrap,fullyVisible:ur})}}return lr.sort(function(Ki,yn){return Ki.distanceSq-yn.distanceSq}).map(function(Ki){return Ki.tileID})},iu.prototype.resize=function(R,J){this.width=R,this.height=J,this.pixelsToGLUnits=[2/R,-2/J],this._constrain(),this._calcMatrices()},tu.unmodified.get=function(){return this._unmodified},iu.prototype.zoomScale=function(R){return Math.pow(2,R)},iu.prototype.scaleZoom=function(R){return Math.log(R)/Math.LN2},iu.prototype.project=function(R){var J=i.clamp(R.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(R.lng)*this.worldSize,i.mercatorYfromLat(J)*this.worldSize)},iu.prototype.unproject=function(R){return new i.MercatorCoordinate(R.x/this.worldSize,R.y/this.worldSize).toLngLat()},tu.point.get=function(){return this.project(this.center)},iu.prototype.setLocationAtPoint=function(R,J){var O=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),_e=this.locationCoordinate(R),ne=new i.MercatorCoordinate(_e.x-(O.x-K.x),_e.y-(O.y-K.y));this.center=this.coordinateLocation(ne),this._renderWorldCopies&&(this.center=this.center.wrap())},iu.prototype.locationPoint=function(R){return this.coordinatePoint(this.locationCoordinate(R))},iu.prototype.pointLocation=function(R){return this.coordinateLocation(this.pointCoordinate(R))},iu.prototype.locationCoordinate=function(R){return i.MercatorCoordinate.fromLngLat(R)},iu.prototype.coordinateLocation=function(R){return R.toLngLat()},iu.prototype.pointCoordinate=function(R){var J=0,O=[R.x,R.y,0,1],K=[R.x,R.y,1,1];i.transformMat4(O,O,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var _e=O[3],ne=K[3],Le=O[0]/_e,Ze=K[0]/ne,Ct=O[1]/_e,dr=K[1]/ne,Er=O[2]/_e,lr=K[2]/ne,Je=Er===lr?0:(J-Er)/(lr-Er);return new i.MercatorCoordinate(i.number(Le,Ze,Je)/this.worldSize,i.number(Ct,dr,Je)/this.worldSize)},iu.prototype.coordinatePoint=function(R){var J=[R.x*this.worldSize,R.y*this.worldSize,0,1];return i.transformMat4(J,J,this.pixelMatrix),new i.Point(J[0]/J[3],J[1]/J[3])},iu.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},iu.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},iu.prototype.setMaxBounds=function(R){R?(this.lngRange=[R.getWest(),R.getEast()],this.latRange=[R.getSouth(),R.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},iu.prototype.calculatePosMatrix=function(R,J){J===void 0&&(J=!1);var O=R.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[O])return K[O];var _e=R.canonical,ne=this.worldSize/this.zoomScale(_e.z),Le=_e.x+Math.pow(2,_e.z)*R.wrap,Ze=i.identity(new Float64Array(16));return i.translate(Ze,Ze,[Le*ne,_e.y*ne,0]),i.scale(Ze,Ze,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Ze,J?this.alignedProjMatrix:this.projMatrix,Ze),K[O]=new Float32Array(Ze),K[O]},iu.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},iu.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var R=-90,J=90,O=-180,K=180,_e,ne,Le,Ze,Ct=this.size,dr=this._unmodified;if(this.latRange){var Er=this.latRange;R=i.mercatorYfromLat(Er[1])*this.worldSize,J=i.mercatorYfromLat(Er[0])*this.worldSize,_e=J-RJ&&(Ze=J-Kt)}if(this.lngRange){var sr=Je.x,Qt=Ct.x/2;sr-QtK&&(Le=K-Qt)}(Le!==void 0||Ze!==void 0)&&(this.center=this.unproject(new i.Point(Le!==void 0?Le:Je.x,Ze!==void 0?Ze:Je.y))),this._unmodified=dr,this._constraining=!1}},iu.prototype._calcMatrices=function(){if(this.height){var R=this._fov/2,J=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(R)*this.height;var O=Math.PI/2+this._pitch,K=this._fov*(.5+J.y/this.height),_e=Math.sin(K)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-O-K,.01,Math.PI-.01)),ne=this.point,Le=ne.x,Ze=ne.y,Ct=Math.cos(Math.PI/2-this._pitch)*_e+this.cameraToCenterDistance,dr=Ct*1.01,Er=this.height/50,lr=new Float64Array(16);i.perspective(lr,this._fov,this.width/this.height,Er,dr),lr[8]=-J.x*2/this.width,lr[9]=J.y*2/this.height,i.scale(lr,lr,[1,-1,1]),i.translate(lr,lr,[0,0,-this.cameraToCenterDistance]),i.rotateX(lr,lr,this._pitch),i.rotateZ(lr,lr,this.angle),i.translate(lr,lr,[-Le,-Ze,0]),this.mercatorMatrix=i.scale([],lr,[this.worldSize,this.worldSize,this.worldSize]),i.scale(lr,lr,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=lr,this.invProjMatrix=i.invert([],this.projMatrix);var Je=this.width%2/2,ht=this.height%2/2,bt=Math.cos(this.angle),Kt=Math.sin(this.angle),sr=Le-Math.round(Le)+bt*Je+Kt*ht,Qt=Ze-Math.round(Ze)+bt*ht+Kt*Je,ur=new Float64Array(lr);if(i.translate(ur,ur,[sr>.5?sr-1:sr,Qt>.5?Qt-1:Qt,0]),this.alignedProjMatrix=ur,lr=i.create(),i.scale(lr,lr,[this.width/2,-this.height/2,1]),i.translate(lr,lr,[1,-1,0]),this.labelPlaneMatrix=lr,lr=i.create(),i.scale(lr,lr,[1,-1,1]),i.translate(lr,lr,[-1,-1,0]),i.scale(lr,lr,[2/this.width,2/this.height,1]),this.glCoordMatrix=lr,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),lr=i.invert(new Float64Array(16),this.pixelMatrix),!lr)throw new Error("failed to invert matrix");this.pixelMatrixInverse=lr,this._posMatrixCache={},this._alignedPosMatrixCache={}}},iu.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var R=this.pointCoordinate(new i.Point(0,0)),J=[R.x*this.worldSize,R.y*this.worldSize,0,1],O=i.transformMat4(J,J,this.pixelMatrix);return O[3]/this.cameraToCenterDistance},iu.prototype.getCameraPoint=function(){var R=this._pitch,J=Math.tan(R)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,J))},iu.prototype.getCameraQueryGeometry=function(R){var J=this.getCameraPoint();if(R.length===1)return[R[0],J];for(var O=J.x,K=J.y,_e=J.x,ne=J.y,Le=0,Ze=R;Le=3&&!R.some(function(O){return isNaN(O)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(R[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+R[2],+R[1]],zoom:+R[0],bearing:J,pitch:+(R[4]||0)}),!0}return!1},Qu.prototype._updateHashUnthrottled=function(){var R=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,R)}catch(J){}};var Ju={linearity:.3,easing:i.bezier(0,0,.3,1)},ju=i.extend({deceleration:2500,maxSpeed:1400},Ju),Xu=i.extend({deceleration:20,maxSpeed:1400},Ju),lf=i.extend({deceleration:1e3,maxSpeed:360},Ju),xf=i.extend({deceleration:1e3,maxSpeed:90},Ju),ef=function(R){this._map=R,this.clear()};ef.prototype.clear=function(){this._inertiaBuffer=[]},ef.prototype.record=function(R){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:R})},ef.prototype._drainInertiaBuffer=function(){for(var R=this._inertiaBuffer,J=i.browser.now(),O=160;R.length>0&&J-R[0].time>O;)R.shift()},ef.prototype._onMoveEnd=function(R){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},O=0,K=this._inertiaBuffer;O=this._clickTolerance||this._map.fire(new se(R.type,this._map,R))},Qe.prototype.dblclick=function(R){return this._firePreventable(new se(R.type,this._map,R))},Qe.prototype.mouseover=function(R){this._map.fire(new se(R.type,this._map,R))},Qe.prototype.mouseout=function(R){this._map.fire(new se(R.type,this._map,R))},Qe.prototype.touchstart=function(R){return this._firePreventable(new ze(R.type,this._map,R))},Qe.prototype.touchmove=function(R){this._map.fire(new ze(R.type,this._map,R))},Qe.prototype.touchend=function(R){this._map.fire(new ze(R.type,this._map,R))},Qe.prototype.touchcancel=function(R){this._map.fire(new ze(R.type,this._map,R))},Qe.prototype._firePreventable=function(R){if(this._map.fire(R),R.defaultPrevented)return{}},Qe.prototype.isEnabled=function(){return!0},Qe.prototype.isActive=function(){return!1},Qe.prototype.enable=function(){},Qe.prototype.disable=function(){};var ot=function(R){this._map=R};ot.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},ot.prototype.mousemove=function(R){this._map.fire(new se(R.type,this._map,R))},ot.prototype.mousedown=function(){this._delayContextMenu=!0},ot.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new se("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},ot.prototype.contextmenu=function(R){this._delayContextMenu?this._contextMenuEvent=R:this._map.fire(new se(R.type,this._map,R)),this._map.listens("contextmenu")&&R.preventDefault()},ot.prototype.isEnabled=function(){return!0},ot.prototype.isActive=function(){return!1},ot.prototype.enable=function(){},ot.prototype.disable=function(){};var jt=function(R,J){this._map=R,this._el=R.getCanvasContainer(),this._container=R.getContainer(),this._clickTolerance=J.clickTolerance||1};jt.prototype.isEnabled=function(){return!!this._enabled},jt.prototype.isActive=function(){return!!this._active},jt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},jt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},jt.prototype.mousedown=function(R,J){this.isEnabled()&&R.shiftKey&&R.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},jt.prototype.mousemoveWindow=function(R,J){if(this._active){var O=J;if(!(this._lastPos.equals(O)||!this._box&&O.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=R.timeStamp),O.length===this.numTouches&&(this.centroid=cr(J),this.touches=_t(O,J)))},$r.prototype.touchmove=function(R,J,O){if(!(this.aborted||!this.centroid)){var K=_t(O,J);for(var _e in this.touches){var ne=this.touches[_e],Le=K[_e];(!Le||Le.dist(ne)>ui)&&(this.aborted=!0)}}},$r.prototype.touchend=function(R,J,O){if((!this.centroid||R.timeStamp-this.startTime>zr)&&(this.aborted=!0),O.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var Oi=function(R){this.singleTap=new $r(R),this.numTaps=R.numTaps,this.reset()};Oi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Oi.prototype.touchstart=function(R,J,O){this.singleTap.touchstart(R,J,O)},Oi.prototype.touchmove=function(R,J,O){this.singleTap.touchmove(R,J,O)},Oi.prototype.touchend=function(R,J,O){var K=this.singleTap.touchend(R,J,O);if(K){var _e=R.timeStamp-this.lastTime0&&(this._active=!0);var K=_t(O,J),_e=new i.Point(0,0),ne=new i.Point(0,0),Le=0;for(var Ze in K){var Ct=K[Ze],dr=this._touches[Ze];dr&&(_e._add(Ct),ne._add(Ct.sub(dr)),Le++,K[Ze]=Ct)}if(this._touches=K,!(LeMath.abs(Y.x)}var ds=100,Wl=function(Y){function R(){Y.apply(this,arguments)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.reset=function(){Y.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},R.prototype._start=function(O){this._lastPoints=O,rf(O[0].sub(O[1]))&&(this._valid=!1)},R.prototype._move=function(O,K,_e){var ne=O[0].sub(this._lastPoints[0]),Le=O[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,Le,_e.timeStamp),!!this._valid){this._lastPoints=O,this._active=!0;var Ze=(ne.y+Le.y)/2,Ct=-.5;return{pitchDelta:Ze*Ct}}},R.prototype.gestureBeginsVertically=function(O,K,_e){if(this._valid!==void 0)return this._valid;var ne=2,Le=O.mag()>=ne,Ze=K.mag()>=ne;if(!(!Le&&!Ze)){if(!Le||!Ze)return this._firstMove===void 0&&(this._firstMove=_e),_e-this._firstMove0==K.y>0;return rf(O)&&rf(K)&&Ct}},R}(js),Au={panStep:100,bearingStep:15,pitchStep:10},Tu=function(){var R=Au;this._panStep=R.panStep,this._bearingStep=R.bearingStep,this._pitchStep=R.pitchStep,this._rotationDisabled=!1};Tu.prototype.reset=function(){this._active=!1},Tu.prototype.keydown=function(R){var J=this;if(!(R.altKey||R.ctrlKey||R.metaKey)){var O=0,K=0,_e=0,ne=0,Le=0;switch(R.keyCode){case 61:case 107:case 171:case 187:O=1;break;case 189:case 109:case 173:O=-1;break;case 37:R.shiftKey?K=-1:(R.preventDefault(),ne=-1);break;case 39:R.shiftKey?K=1:(R.preventDefault(),ne=1);break;case 38:R.shiftKey?_e=1:(R.preventDefault(),Le=-1);break;case 40:R.shiftKey?_e=-1:(R.preventDefault(),Le=1);break;default:return}return this._rotationDisabled&&(K=0,_e=0),{cameraAnimation:function(Ze){var Ct=Ze.getZoom();Ze.easeTo({duration:300,easeId:"keyboardHandler",easing:uf,zoom:O?Math.round(Ct)+O*(R.shiftKey?2:1):Ct,bearing:Ze.getBearing()+K*J._bearingStep,pitch:Ze.getPitch()+_e*J._pitchStep,offset:[-ne*J._panStep,-Le*J._panStep],center:Ze.getCenter()},{originalEvent:R})}}}},Tu.prototype.enable=function(){this._enabled=!0},Tu.prototype.disable=function(){this._enabled=!1,this.reset()},Tu.prototype.isEnabled=function(){return this._enabled},Tu.prototype.isActive=function(){return this._active},Tu.prototype.disableRotation=function(){this._rotationDisabled=!0},Tu.prototype.enableRotation=function(){this._rotationDisabled=!1};function uf(Y){return Y*(2-Y)}var df=4.000244140625,Ef=1/100,vf=1/450,fc=2,Be=function(R,J){this._map=R,this._el=R.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=Ef,this._wheelZoomRate=vf,i.bindAll(["_onTimeout"],this)};Be.prototype.setZoomRate=function(R){this._defaultZoomRate=R},Be.prototype.setWheelZoomRate=function(R){this._wheelZoomRate=R},Be.prototype.isEnabled=function(){return!!this._enabled},Be.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Be.prototype.isZooming=function(){return!!this._zooming},Be.prototype.enable=function(R){this.isEnabled()||(this._enabled=!0,this._aroundCenter=R&&R.around==="center")},Be.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Be.prototype.wheel=function(R){if(this.isEnabled()){var J=R.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?R.deltaY*40:R.deltaY,O=i.browser.now(),K=O-(this._lastWheelEventTime||0);this._lastWheelEventTime=O,J!==0&&J%df===0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":K>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,R)):this._type||(this._type=Math.abs(K*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),R.shiftKey&&J&&(J=J/4),this._type&&(this._lastWheelEvent=R,this._delta-=J,this._active||this._start(R)),R.preventDefault()}},Be.prototype._onTimeout=function(R){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(R)},Be.prototype._start=function(R){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var J=o.mousePos(this._el,R);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(J)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Be.prototype.renderFrame=function(){var R=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var J=this._map.transform;if(this._delta!==0){var O=this._type==="wheel"&&Math.abs(this._delta)>df?this._wheelZoomRate:this._defaultZoomRate,K=fc/(1+Math.exp(-Math.abs(this._delta*O)));this._delta<0&&K!==0&&(K=1/K);var _e=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(_e*K))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ne=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,Le=this._startZoom,Ze=this._easing,Ct=!1,dr;if(this._type==="wheel"&&Le&&Ze){var Er=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),lr=Ze(Er);dr=i.number(Le,ne,lr),Er<1?this._frameId||(this._frameId=!0):Ct=!0}else dr=ne,Ct=!0;return this._active=!0,Ct&&(this._active=!1,this._finishTimeout=setTimeout(function(){R._zooming=!1,R._handler._triggerRenderFrame(),delete R._targetZoom,delete R._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ct,zoomDelta:dr-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Be.prototype._smoothOutEasing=function(R){var J=i.ease;if(this._prevEase){var O=this._prevEase,K=(i.browser.now()-O.start)/O.duration,_e=O.easing(K+.01)-O.easing(K),ne=.27/Math.sqrt(_e*_e+1e-4)*.01,Le=Math.sqrt(.27*.27-ne*ne);J=i.bezier(ne,Le,.25,1)}return this._prevEase={start:i.browser.now(),duration:R,easing:J},J},Be.prototype.reset=function(){this._active=!1};var qt=function(R,J){this._clickZoom=R,this._tapZoom=J};qt.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},qt.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},qt.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},qt.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var ar=function(){this.reset()};ar.prototype.reset=function(){this._active=!1},ar.prototype.dblclick=function(R,J){return R.preventDefault(),{cameraAnimation:function(O){O.easeTo({duration:300,zoom:O.getZoom()+(R.shiftKey?-1:1),around:O.unproject(J)},{originalEvent:R})}}},ar.prototype.enable=function(){this._enabled=!0},ar.prototype.disable=function(){this._enabled=!1,this.reset()},ar.prototype.isEnabled=function(){return this._enabled},ar.prototype.isActive=function(){return this._active};var Qr=function(){this._tap=new Oi({numTouches:1,numTaps:1}),this.reset()};Qr.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Qr.prototype.touchstart=function(R,J,O){this._swipePoint||(this._tapTime&&R.timeStamp-this._tapTime>Cr&&this.reset(),this._tapTime?O.length>0&&(this._swipePoint=J[0],this._swipeTouch=O[0].identifier):this._tap.touchstart(R,J,O))},Qr.prototype.touchmove=function(R,J,O){if(!this._tapTime)this._tap.touchmove(R,J,O);else if(this._swipePoint){if(O[0].identifier!==this._swipeTouch)return;var K=J[0],_e=K.y-this._swipePoint.y;return this._swipePoint=K,R.preventDefault(),this._active=!0,{zoomDelta:_e/128}}},Qr.prototype.touchend=function(R,J,O){if(this._tapTime)this._swipePoint&&O.length===0&&this.reset();else{var K=this._tap.touchend(R,J,O);K&&(this._tapTime=R.timeStamp)}},Qr.prototype.touchcancel=function(){this.reset()},Qr.prototype.enable=function(){this._enabled=!0},Qr.prototype.disable=function(){this._enabled=!1,this.reset()},Qr.prototype.isEnabled=function(){return this._enabled},Qr.prototype.isActive=function(){return this._active};var mi=function(R,J,O){this._el=R,this._mousePan=J,this._touchPan=O};mi.prototype.enable=function(R){this._inertiaOptions=R||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},mi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},mi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},mi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var fi=function(R,J,O){this._pitchWithRotate=R.pitchWithRotate,this._mouseRotate=J,this._mousePitch=O};fi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},fi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},fi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},fi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var pi=function(R,J,O,K){this._el=R,this._touchZoom=J,this._touchRotate=O,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};pi.prototype.enable=function(R){this._touchZoom.enable(R),this._rotationDisabled||this._touchRotate.enable(R),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},pi.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},pi.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},pi.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},pi.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},pi.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var on=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},Bn=function(Y){function R(){Y.apply(this,arguments)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R}(i.Event);function Ln(Y){return Y.panDelta&&Y.panDelta.mag()||Y.zoomDelta||Y.bearingDelta||Y.pitchDelta}var wn=function(R,J){this._map=R,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ef(R),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),i.bindAll(["handleEvent","handleWindowEvent"],this);var O=this._el;this._listeners=[[O,"touchstart",{passive:!0}],[O,"touchmove",{passive:!1}],[O,"touchend",void 0],[O,"touchcancel",void 0],[O,"mousedown",void 0],[O,"mousemove",void 0],[O,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[O,"mouseover",void 0],[O,"mouseout",void 0],[O,"dblclick",void 0],[O,"click",void 0],[O,"keydown",{capture:!1}],[O,"keyup",void 0],[O,"wheel",{passive:!1}],[O,"contextmenu",void 0],[i.window,"blur",void 0]];for(var K=0,_e=this._listeners;K<_e.length;K+=1){var ne=_e[K],Le=ne[0],Ze=ne[1],Ct=ne[2];o.addEventListener(Le,Ze,Le===i.window.document?this.handleWindowEvent:this.handleEvent,Ct)}};wn.prototype.destroy=function(){for(var R=0,J=this._listeners;RLe?Math.min(2,Ot):Math.max(.5,Ot),Ki=Math.pow(Cn,1-Nr),yn=ne.unproject(ur.add(er.mult(Nr*Ki)).mult(ci));ne.setLocationAtPoint(ne.renderWorldCopies?yn.wrap():yn,Kt)}_e._fireMoveEvents(K)},function(Nr){_e._afterEase(K,Nr)},O),this},R.prototype._prepareEase=function(O,K,_e){_e===void 0&&(_e={}),this._moving=!0,!K&&!_e.moving&&this.fire(new i.Event("movestart",O)),this._zooming&&!_e.zooming&&this.fire(new i.Event("zoomstart",O)),this._rotating&&!_e.rotating&&this.fire(new i.Event("rotatestart",O)),this._pitching&&!_e.pitching&&this.fire(new i.Event("pitchstart",O))},R.prototype._fireMoveEvents=function(O){this.fire(new i.Event("move",O)),this._zooming&&this.fire(new i.Event("zoom",O)),this._rotating&&this.fire(new i.Event("rotate",O)),this._pitching&&this.fire(new i.Event("pitch",O))},R.prototype._afterEase=function(O,K){if(!(this._easeId&&K&&this._easeId===K)){delete this._easeId;var _e=this._zooming,ne=this._rotating,Le=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,_e&&this.fire(new i.Event("zoomend",O)),ne&&this.fire(new i.Event("rotateend",O)),Le&&this.fire(new i.Event("pitchend",O)),this.fire(new i.Event("moveend",O))}},R.prototype.flyTo=function(O,K){var _e=this;if(!O.essential&&i.browser.prefersReducedMotion){var ne=i.pick(O,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ne,K)}this.stop(),O=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},O);var Le=this.transform,Ze=this.getZoom(),Ct=this.getBearing(),dr=this.getPitch(),Er=this.getPadding(),lr="zoom"in O?i.clamp(+O.zoom,Le.minZoom,Le.maxZoom):Ze,Je="bearing"in O?this._normalizeBearing(O.bearing,Ct):Ct,ht="pitch"in O?+O.pitch:dr,bt="padding"in O?O.padding:Le.padding,Kt=Le.zoomScale(lr-Ze),sr=i.Point.convert(O.offset),Qt=Le.centerPoint.add(sr),ur=Le.pointLocation(Qt),er=i.LngLat.convert(O.center||ur);this._normalizeCenter(er);var Ot=Le.project(ur),Jt=Le.project(er).sub(Ot),Lt=O.curve,Tr=Math.max(Le.width,Le.height),Nr=Tr/Kt,ci=Jt.mag();if("minZoom"in O){var Cn=i.clamp(Math.min(O.minZoom,Ze,lr),Le.minZoom,Le.maxZoom),Ki=Tr/Le.zoomScale(Cn-Ze);Lt=Math.sqrt(Ki/ci*2)}var yn=Lt*Lt;function Xa(vu){var zu=(Nr*Nr-Tr*Tr+(vu?-1:1)*yn*yn*ci*ci)/(2*(vu?Nr:Tr)*yn*ci);return Math.log(Math.sqrt(zu*zu+1)-zu)}function ca(vu){return(Math.exp(vu)-Math.exp(-vu))/2}function Tn(vu){return(Math.exp(vu)+Math.exp(-vu))/2}function Pn(vu){return ca(vu)/Tn(vu)}var Nn=Xa(0),xa=function(vu){return Tn(Nn)/Tn(Nn+Lt*vu)},Zo=function(vu){return Tr*((Tn(Nn)*Pn(Nn+Lt*vu)-ca(Nn))/yn)/ci},ru=(Xa(1)-Nn)/Lt;if(Math.abs(ci)<1e-6||!isFinite(ru)){if(Math.abs(Tr-Nr)<1e-6)return this.easeTo(O,K);var yu=NrO.maxDuration&&(O.duration=0),this._zooming=!0,this._rotating=Ct!==Je,this._pitching=ht!==dr,this._padding=!Le.isPaddingEqual(bt),this._prepareEase(K,!1),this._ease(function(vu){var zu=vu*ru,$u=1/xa(zu);Le.zoom=vu===1?lr:Ze+Le.scaleZoom($u),_e._rotating&&(Le.bearing=i.number(Ct,Je,vu)),_e._pitching&&(Le.pitch=i.number(dr,ht,vu)),_e._padding&&(Le.interpolatePadding(Er,bt,vu),Qt=Le.centerPoint.add(sr));var Vf=vu===1?er:Le.unproject(Ot.add(Jt.mult(Zo(zu))).mult($u));Le.setLocationAtPoint(Le.renderWorldCopies?Vf.wrap():Vf,Qt),_e._fireMoveEvents(K)},function(){return _e._afterEase(K)},O),this},R.prototype.isEasing=function(){return!!this._easeFrameId},R.prototype.stop=function(){return this._stop()},R.prototype._stop=function(O,K){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var _e=this._onEaseEnd;delete this._onEaseEnd,_e.call(this,K)}if(!O){var ne=this.handlers;ne&&ne.stop(!1)}return this},R.prototype._ease=function(O,K,_e){_e.animate===!1||_e.duration===0?(O(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=_e,this._onEaseFrame=O,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},R.prototype._renderFrameCallback=function(){var O=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(O)),O<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},R.prototype._normalizeBearing=function(O,K){O=i.wrap(O,-180,180);var _e=Math.abs(O-K);return Math.abs(O-360-K)<_e&&(O-=360),Math.abs(O+360-K)<_e&&(O+=360),O},R.prototype._normalizeCenter=function(O){var K=this.transform;if(!(!K.renderWorldCopies||K.lngRange)){var _e=O.lng-K.center.lng;O.lng+=_e>180?-360:_e<-180?360:0}},R}(i.Evented),ua=function(R){R===void 0&&(R={}),this.options=R,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};ua.prototype.getDefaultPosition=function(){return"bottom-right"},ua.prototype.onAdd=function(R){var J=this.options&&this.options.compact;return this._map=R,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),J&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),J===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},ua.prototype.onRemove=function(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},ua.prototype._setElementTitle=function(R,J){var O=this._map._getUIString("AttributionControl."+J);R.title=O,R.setAttribute("aria-label",O)},ua.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},ua.prototype._updateEditLink=function(){var R=this._editLink;R||(R=this._editLink=this._container.querySelector(".mapbox-improve-map"));var J=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(R){var O=J.reduce(function(K,_e,ne){return _e.value&&(K+=_e.key+"="+_e.value+(ne=0)return!1;return!0});var Le=R.join(" | ");Le!==this._attribHTML&&(this._attribHTML=Le,R.length?(this._innerContainer.innerHTML=Le,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},ua.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Hn=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};Hn.prototype.onAdd=function(R){this._map=R,this._container=o.create("div","mapboxgl-ctrl");var J=o.create("a","mapboxgl-ctrl-logo");return J.target="_blank",J.rel="noopener nofollow",J.href="https://www.mapbox.com/",J.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),J.setAttribute("rel","noopener nofollow"),this._container.appendChild(J),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Hn.prototype.onRemove=function(){o.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Hn.prototype.getDefaultPosition=function(){return"bottom-left"},Hn.prototype._updateLogo=function(R){(!R||R.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},Hn.prototype._logoRequired=function(){if(this._map.style){var R=this._map.style.sourceCaches;for(var J in R){var O=R[J].getSource();if(O.mapbox_logo)return!0}return!1}},Hn.prototype._updateCompact=function(){var R=this._container.children;if(R.length){var J=R[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var Ni=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ni.prototype.add=function(R){var J=++this._id,O=this._queue;return O.push({callback:R,id:J,cancelled:!1}),J},Ni.prototype.remove=function(R){for(var J=this._currentlyRunning,O=J?this._queue.concat(J):this._queue,K=0,_e=O;K<_e.length;K+=1){var ne=_e[K];if(ne.id===R){ne.cancelled=!0;return}}},Ni.prototype.run=function(R){R===void 0&&(R=0);var J=this._currentlyRunning=this._queue;this._queue=[];for(var O=0,K=J;OO.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(O.minPitch!=null&&O.maxPitch!=null&&O.minPitch>O.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(O.minPitch!=null&&O.minPitchhs)throw new Error("maxPitch must be less than or equal to "+hs);var _e=new iu(O.minZoom,O.maxZoom,O.minPitch,O.maxPitch,O.renderWorldCopies);if(Y.call(this,_e,O),this._interactive=O.interactive,this._maxTileCacheSize=O.maxTileCacheSize,this._failIfMajorPerformanceCaveat=O.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=O.preserveDrawingBuffer,this._antialias=O.antialias,this._trackResize=O.trackResize,this._bearingSnap=O.bearingSnap,this._refreshExpiredTiles=O.refreshExpiredTiles,this._fadeDuration=O.fadeDuration,this._crossSourceCollisions=O.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=O.collectResourceTiming,this._renderTaskQueue=new Ni,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Wr,O.locale),this._clickTolerance=O.clickTolerance,this._requestManager=new i.RequestManager(O.transformRequest,O.accessToken),typeof O.container=="string"){if(this._container=i.window.document.getElementById(O.container),!this._container)throw new Error("Container '"+O.container+"' not found.")}else if(O.container instanceof dn)this._container=O.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(O.maxBounds&&this.setMaxBounds(O.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return K._update(!1)}),this.on("moveend",function(){return K._update(!1)}),this.on("zoom",function(){return K._update(!0)}),typeof i.window!="undefined"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new wn(this,O);var ne=typeof O.hash=="string"&&O.hash||void 0;this._hash=O.hash&&new Qu(ne).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:O.center,zoom:O.zoom,bearing:O.bearing,pitch:O.pitch}),O.bounds&&(this.resize(),this.fitBounds(O.bounds,i.extend({},O.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=O.localIdeographFontFamily,O.style&&this.setStyle(O.style,{localIdeographFontFamily:O.localIdeographFontFamily}),O.attributionControl&&this.addControl(new ua({customAttribution:O.customAttribution})),this.addControl(new Hn,O.logoPosition),this.on("style.load",function(){K.transform.unmodified&&K.jumpTo(K.style.stylesheet)}),this.on("data",function(Le){K._update(Le.dataType==="style"),K.fire(new i.Event(Le.dataType+"data",Le))}),this.on("dataloading",function(Le){K.fire(new i.Event(Le.dataType+"dataloading",Le))})}Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R;var J={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return R.prototype._getMapId=function(){return this._mapId},R.prototype.addControl=function(K,_e){if(_e===void 0&&(K.getDefaultPosition?_e=K.getDefaultPosition():_e="top-right"),!K||!K.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=K.onAdd(this);this._controls.push(K);var Le=this._controlPositions[_e];return _e.indexOf("bottom")!==-1?Le.insertBefore(ne,Le.firstChild):Le.appendChild(ne),this},R.prototype.removeControl=function(K){if(!K||!K.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var _e=this._controls.indexOf(K);return _e>-1&&this._controls.splice(_e,1),K.onRemove(this),this},R.prototype.hasControl=function(K){return this._controls.indexOf(K)>-1},R.prototype.resize=function(K){var _e=this._containerDimensions(),ne=_e[0],Le=_e[1];this._resizeCanvas(ne,Le),this.transform.resize(ne,Le),this.painter.resize(ne,Le);var Ze=!this._moving;return Ze&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Ze&&this.fire(new i.Event("moveend",K)),this},R.prototype.getBounds=function(){return this.transform.getBounds()},R.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},R.prototype.setMaxBounds=function(K){return this.transform.setMaxBounds(i.LngLatBounds.convert(K)),this._update()},R.prototype.setMinZoom=function(K){if(K=K==null?Yi:K,K>=Yi&&K<=this.transform.maxZoom)return this.transform.minZoom=K,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=K,this._update(),this.getZoom()>K&&this.setZoom(K),this;throw new Error("maxZoom must be greater than the current minZoom")},R.prototype.getMaxZoom=function(){return this.transform.maxZoom},R.prototype.setMinPitch=function(K){if(K=K==null?Kn:K,K=Kn&&K<=this.transform.maxPitch)return this.transform.minPitch=K,this._update(),this.getPitch()hs)throw new Error("maxPitch must be less than or equal to "+hs);if(K>=this.transform.minPitch)return this.transform.maxPitch=K,this._update(),this.getPitch()>K&&this.setPitch(K),this;throw new Error("maxPitch must be greater than the current minPitch")},R.prototype.getMaxPitch=function(){return this.transform.maxPitch},R.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},R.prototype.setRenderWorldCopies=function(K){return this.transform.renderWorldCopies=K,this._update()},R.prototype.project=function(K){return this.transform.locationPoint(i.LngLat.convert(K))},R.prototype.unproject=function(K){return this.transform.pointLocation(i.Point.convert(K))},R.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},R.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},R.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},R.prototype._createDelegatedListener=function(K,_e,ne){var Le=this,Ze;if(K==="mouseenter"||K==="mouseover"){var Ct=!1,dr=function(Kt){var sr=Le.getLayer(_e)?Le.queryRenderedFeatures(Kt.point,{layers:[_e]}):[];sr.length?Ct||(Ct=!0,ne.call(Le,new se(K,Le,Kt.originalEvent,{features:sr}))):Ct=!1},Er=function(){Ct=!1};return{layer:_e,listener:ne,delegates:{mousemove:dr,mouseout:Er}}}else if(K==="mouseleave"||K==="mouseout"){var lr=!1,Je=function(Kt){var sr=Le.getLayer(_e)?Le.queryRenderedFeatures(Kt.point,{layers:[_e]}):[];sr.length?lr=!0:lr&&(lr=!1,ne.call(Le,new se(K,Le,Kt.originalEvent)))},ht=function(Kt){lr&&(lr=!1,ne.call(Le,new se(K,Le,Kt.originalEvent)))};return{layer:_e,listener:ne,delegates:{mousemove:Je,mouseout:ht}}}else{var bt=function(Kt){var sr=Le.getLayer(_e)?Le.queryRenderedFeatures(Kt.point,{layers:[_e]}):[];sr.length&&(Kt.features=sr,ne.call(Le,Kt),delete Kt.features)};return{layer:_e,listener:ne,delegates:(Ze={},Ze[K]=bt,Ze)}}},R.prototype.on=function(K,_e,ne){if(ne===void 0)return Y.prototype.on.call(this,K,_e);var Le=this._createDelegatedListener(K,_e,ne);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[K]=this._delegatedListeners[K]||[],this._delegatedListeners[K].push(Le);for(var Ze in Le.delegates)this.on(Ze,Le.delegates[Ze]);return this},R.prototype.once=function(K,_e,ne){if(ne===void 0)return Y.prototype.once.call(this,K,_e);var Le=this._createDelegatedListener(K,_e,ne);for(var Ze in Le.delegates)this.once(Ze,Le.delegates[Ze]);return this},R.prototype.off=function(K,_e,ne){var Le=this;if(ne===void 0)return Y.prototype.off.call(this,K,_e);var Ze=function(Ct){for(var dr=Ct[K],Er=0;Er180;){var ne=J.locationPoint(Y);if(ne.x>=0&&ne.y>=0&&ne.x<=J.width&&ne.y<=J.height)break;Y.lng>J.center.lng?Y.lng-=360:Y.lng+=360}return Y}var _s={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ul(Y,R,J){var O=Y.classList;for(var K in _s)O.remove("mapboxgl-"+J+"-anchor-"+K);O.add("mapboxgl-"+J+"-anchor-"+R)}var Qn=function(Y){function R(J,O){if(Y.call(this),(J instanceof i.window.HTMLElement||O)&&(J=i.extend({element:J},O)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=J&&J.anchor||"center",this._color=J&&J.color||"#3FB1CE",this._scale=J&&J.scale||1,this._draggable=J&&J.draggable||!1,this._clickTolerance=J&&J.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=J&&J.rotation||0,this._rotationAlignment=J&&J.rotationAlignment||"auto",this._pitchAlignment=J&&J.pitchAlignment&&J.pitchAlignment!=="auto"?J.pitchAlignment:this._rotationAlignment,!J||!J.element){this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");var K=o.createNS("http://www.w3.org/2000/svg","svg"),_e=41,ne=27;K.setAttributeNS(null,"display","block"),K.setAttributeNS(null,"height",_e+"px"),K.setAttributeNS(null,"width",ne+"px"),K.setAttributeNS(null,"viewBox","0 0 "+ne+" "+_e);var Le=o.createNS("http://www.w3.org/2000/svg","g");Le.setAttributeNS(null,"stroke","none"),Le.setAttributeNS(null,"stroke-width","1"),Le.setAttributeNS(null,"fill","none"),Le.setAttributeNS(null,"fill-rule","evenodd");var Ze=o.createNS("http://www.w3.org/2000/svg","g");Ze.setAttributeNS(null,"fill-rule","nonzero");var Ct=o.createNS("http://www.w3.org/2000/svg","g");Ct.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Ct.setAttributeNS(null,"fill","#000000");for(var dr=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],Er=0,lr=dr;Er=K}this._isDragging&&(this._pos=O.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},R.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},R.prototype._addDragHandler=function(O){this._element.contains(O.originalEvent.target)&&(O.preventDefault(),this._positionDelta=O.point.sub(this._pos).add(this._offset),this._pointerdownPos=O.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},R.prototype.setDraggable=function(O){return this._draggable=!!O,this._map&&(O?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},R.prototype.isDraggable=function(){return this._draggable},R.prototype.setRotation=function(O){return this._rotation=O||0,this._update(),this},R.prototype.getRotation=function(){return this._rotation},R.prototype.setRotationAlignment=function(O){return this._rotationAlignment=O||"auto",this._update(),this},R.prototype.getRotationAlignment=function(){return this._rotationAlignment},R.prototype.setPitchAlignment=function(O){return this._pitchAlignment=O&&O!=="auto"?O:this._rotationAlignment,this._update(),this},R.prototype.getPitchAlignment=function(){return this._pitchAlignment},R}(i.Evented),Mo={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},nl;function pl(Y){nl!==void 0?Y(nl):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(R){nl=R.state!=="denied",Y(nl)}):(nl=!!i.window.navigator.geolocation,Y(nl))}var Dl=0,Fu=!1,mf=function(Y){function R(J){Y.call(this),this.options=i.extend({},Mo,J),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.onAdd=function(O){return this._map=O,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),pl(this._setupUI),this._container},R.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Dl=0,Fu=!1},R.prototype._isOutOfMapMaxBounds=function(O){var K=this._map.getMaxBounds(),_e=O.coords;return K&&(_e.longitudeK.getEast()||_e.latitudeK.getNorth())},R.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},R.prototype._onSuccess=function(O){if(this._map){if(this._isOutOfMapMaxBounds(O)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",O)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=O,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(O),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(O),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",O)),this._finish()}},R.prototype._updateCamera=function(O){var K=new i.LngLat(O.coords.longitude,O.coords.latitude),_e=O.coords.accuracy,ne=this._map.getBearing(),Le=i.extend({bearing:ne},this.options.fitBoundsOptions);this._map.fitBounds(K.toBounds(_e),Le,{geolocateSource:!0})},R.prototype._updateMarker=function(O){if(O){var K=new i.LngLat(O.coords.longitude,O.coords.latitude);this._accuracyCircleMarker.setLngLat(K).addTo(this._map),this._userLocationDotMarker.setLngLat(K).addTo(this._map),this._accuracy=O.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},R.prototype._updateCircleRadius=function(){var O=this._map._container.clientHeight/2,K=this._map.unproject([0,O]),_e=this._map.unproject([1,O]),ne=K.distanceTo(_e),Le=Math.ceil(2*this._accuracy/ne);this._circleElement.style.width=Le+"px",this._circleElement.style.height=Le+"px"},R.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},R.prototype._onError=function(O){if(this._map){if(this.options.trackUserLocation)if(O.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var K=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=K,this._geolocateButton.setAttribute("aria-label",K),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(O.code===3&&Fu)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",O)),this._finish()}},R.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},R.prototype._setupUI=function(O){var K=this;if(this._container.addEventListener("contextmenu",function(Le){return Le.preventDefault()}),this._geolocateButton=o.create("button","mapboxgl-ctrl-geolocate",this._container),o.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",O===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var _e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=_e,this._geolocateButton.setAttribute("aria-label",_e)}else{var ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Qn(this._dotElement),this._circleElement=o.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Qn({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(Le){var Ze=Le.originalEvent&&Le.originalEvent.type==="resize";!Le.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Ze&&(K._watchState="BACKGROUND",K._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),K._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),K.fire(new i.Event("trackuserlocationend")))})},R.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Dl--,Fu=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Dl++;var O;Dl>1?(O={maximumAge:6e5,timeout:0},Fu=!0):(O=this.options.positionOptions,Fu=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,O)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},R.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},R}(i.Evented),Ql={maxWidth:100,unit:"metric"},kf=function(R){this.options=i.extend({},Ql,R),i.bindAll(["_onMove","setUnit"],this)};kf.prototype.getDefaultPosition=function(){return"bottom-left"},kf.prototype._onMove=function(){Cu(this._map,this._container,this.options)},kf.prototype.onAdd=function(R){return this._map=R,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",R.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},kf.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},kf.prototype.setUnit=function(R){this.options.unit=R,Cu(this._map,this._container,this.options)};function Cu(Y,R,J){var O=J&&J.maxWidth||100,K=Y._container.clientHeight/2,_e=Y.unproject([0,K]),ne=Y.unproject([O,K]),Le=_e.distanceTo(ne);if(J&&J.unit==="imperial"){var Ze=3.2808*Le;if(Ze>5280){var Ct=Ze/5280;_f(R,O,Ct,Y._getUIString("ScaleControl.Miles"))}else _f(R,O,Ze,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var dr=Le/1852;_f(R,O,dr,Y._getUIString("ScaleControl.NauticalMiles"))}else Le>=1e3?_f(R,O,Le/1e3,Y._getUIString("ScaleControl.Kilometers")):_f(R,O,Le,Y._getUIString("ScaleControl.Meters"))}function _f(Y,R,J,O){var K=Lf(J),_e=K/J;Y.style.width=R*_e+"px",Y.innerHTML=K+" "+O}function bf(Y){var R=Math.pow(10,Math.ceil(-Math.log(Y)/Math.LN10));return Math.round(Y*R)/R}function Lf(Y){var R=Math.pow(10,(""+Math.floor(Y)).length-1),J=Y/R;return J=J>=10?10:J>=5?5:J>=3?3:J>=2?2:J>=1?1:bf(J),R*J}var Hu=function(R){this._fullscreen=!1,R&&R.container&&(R.container instanceof i.window.HTMLElement?this._container=R.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};Hu.prototype.onAdd=function(R){return this._map=R,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Hu.prototype.onRemove=function(){o.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Hu.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},Hu.prototype._setupUI=function(){var R=this._fullscreenButton=o.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o.create("span","mapboxgl-ctrl-icon",R).setAttribute("aria-hidden",!0),R.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Hu.prototype._updateTitle=function(){var R=this._getTitle();this._fullscreenButton.setAttribute("aria-label",R),this._fullscreenButton.title=R},Hu.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Hu.prototype._isFullscreen=function(){return this._fullscreen},Hu.prototype._changeIcon=function(){var R=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;R===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Hu.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var hf={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},yf=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Fl=function(Y){function R(J){Y.call(this),this.options=i.extend(Object.create(hf),J),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.addTo=function(O){return this._map&&this.remove(),this._map=O,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},R.prototype.isOpen=function(){return!!this._map},R.prototype.remove=function(){return this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},R.prototype.getLngLat=function(){return this._lngLat},R.prototype.setLngLat=function(O){return this._lngLat=i.LngLat.convert(O),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},R.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},R.prototype.getElement=function(){return this._container},R.prototype.setText=function(O){return this.setDOMContent(i.window.document.createTextNode(O))},R.prototype.setHTML=function(O){var K=i.window.document.createDocumentFragment(),_e=i.window.document.createElement("body"),ne;for(_e.innerHTML=O;ne=_e.firstChild,!!ne;)K.appendChild(ne);return this.setDOMContent(K)},R.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},R.prototype.setMaxWidth=function(O){return this.options.maxWidth=O,this._update(),this},R.prototype.setDOMContent=function(O){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(O),this._createCloseButton(),this._update(),this._focusFirstElement(),this},R.prototype.addClassName=function(O){this._container&&this._container.classList.add(O)},R.prototype.removeClassName=function(O){this._container&&this._container.classList.remove(O)},R.prototype.setOffset=function(O){return this.options.offset=O,this._update(),this},R.prototype.toggleClassName=function(O){if(this._container)return this._container.classList.toggle(O)},R.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=o.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},R.prototype._onMouseUp=function(O){this._update(O.point)},R.prototype._onMouseMove=function(O){this._update(O.point)},R.prototype._onDrag=function(O){this._update(O.point)},R.prototype._update=function(O){var K=this,_e=this._lngLat||this._trackPointer;if(!(!this._map||!_e||!this._content)&&(this._container||(this._container=o.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=o.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Je){return K._container.classList.add(Je)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Va(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!O))){var ne=this._pos=this._trackPointer&&O?O:this._map.project(this._lngLat),Le=this.options.anchor,Ze=wf(this.options.offset);if(!Le){var Ct=this._container.offsetWidth,dr=this._container.offsetHeight,Er;ne.y+Ze.bottom.ythis._map.transform.height-dr?Er=["bottom"]:Er=[],ne.xthis._map.transform.width-Ct/2&&Er.push("right"),Er.length===0?Le="bottom":Le=Er.join("-")}var lr=ne.add(Ze[Le]).round();o.setTransform(this._container,_s[Le]+" translate("+lr.x+"px,"+lr.y+"px)"),ul(this._container,Le,"popup")}},R.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var O=this._container.querySelector(yf);O&&O.focus()}},R.prototype._onClose=function(){this.remove()},R}(i.Evented);function wf(Y){if(Y)if(typeof Y=="number"){var R=Math.round(Math.sqrt(.5*Math.pow(Y,2)));return{center:new i.Point(0,0),top:new i.Point(0,Y),"top-left":new i.Point(R,R),"top-right":new i.Point(-R,R),bottom:new i.Point(0,-Y),"bottom-left":new i.Point(R,-R),"bottom-right":new i.Point(-R,-R),left:new i.Point(Y,0),right:new i.Point(-Y,0)}}else if(Y instanceof i.Point||Array.isArray(Y)){var J=i.Point.convert(Y);return{center:J,top:J,"top-left":J,"top-right":J,bottom:J,"bottom-left":J,"bottom-right":J,left:J,right:J}}else return{center:i.Point.convert(Y.center||[0,0]),top:i.Point.convert(Y.top||[0,0]),"top-left":i.Point.convert(Y["top-left"]||[0,0]),"top-right":i.Point.convert(Y["top-right"]||[0,0]),bottom:i.Point.convert(Y.bottom||[0,0]),"bottom-left":i.Point.convert(Y["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(Y["bottom-right"]||[0,0]),left:i.Point.convert(Y.left||[0,0]),right:i.Point.convert(Y.right||[0,0])};else return wf(new i.Point(0,0))}var cu={version:i.version,supported:a,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Ui,NavigationControl:On,GeolocateControl:mf,AttributionControl:ua,ScaleControl:kf,FullscreenControl:Hu,Popup:Fl,Marker:Qn,Style:jn,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:Yr,clearPrewarmedResources:oi,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(Y){i.config.ACCESS_TOKEN=Y},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(Y){i.config.API_URL=Y},get workerCount(){return Ei.workerCount},set workerCount(Y){Ei.workerCount=Y},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(Y){i.config.MAX_PARALLEL_IMAGE_REQUESTS=Y},clearStorage:function(R){i.clearTileCache(R)},workerUrl:""};return cu}),r})});var IGe=Te((cbr,zGe)=>{"use strict";var tw=ei(),mjt=Xf().sanitizeHTML,yjt=cJ(),CGe=f1();function LGe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=CGe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var nm=LGe.prototype;nm.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=aB(t)};nm.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};nm.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};nm.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};nm.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};nm.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};nm.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!aB(e)){var r=gjt(e);t.addSource(this.idSource,r)}};nm.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function PGe(e){var t={},r={};switch(e.type){case"circle":tw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":tw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":tw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=yjt(n.textposition,n.iconsize);tw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),tw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":tw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function gjt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=mjt(e.sourceattribution)),n}zGe.exports=function(t,r,n){var i=new LGe(t,r);return i.update(n),i}});var VGe=Te((hbr,UGe)=>{"use strict";var gJ=yJ(),_J=ei(),BGe=ix(),RGe=$l(),_jt=wu(),xjt=xp(),oB=Xc(),OGe=Mm(),bjt=OGe.drawMode,wjt=OGe.selectMode,Ajt=ah().prepSelect,Tjt=ah().clearOutline,Sjt=ah().clearSelectionsCache,Mjt=ah().selectOnClick,gx=f1(),Ejt=IGe();function qGe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Hh=qGe.prototype;Hh.plot=function(e,t,r){var n=this,i=t[n.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash={},n.layerList=[]);var a;n.map?a=new Promise(function(o,s){n.updateMap(e,t,o,s)}):a=new Promise(function(o,s){n.createMap(e,t,o,s)}),r.push(a)};Hh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=NGe(a.style,t);i.accessToken=a.accesstoken;var s=a.bounds,u=s?[[s.west,s.south],[s.east,s.north]]:null,l=i.map=new gJ.Map({container:i.div,style:o.style,center:xJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:u,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new gJ.AttributionControl({compact:!0}));l._canvas.style.left="0px",l._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var f=[];f.push(new Promise(function(c){l.once("load",c)})),f=f.concat(BGe.fetchTraceGeoData(e)),Promise.all(f).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Hh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],u=NGe(o.style,t);JSON.stringify(i.styleObj)!==JSON.stringify(u)&&(i.styleObj=u,a.setStyle(u.style),i.traceHash={},s.push(new Promise(function(l){a.once("styledata",l)}))),s=s.concat(BGe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Hh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&Mjt(u.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),l.indexOf("event")>-1&&oB.click(n,u.originalEvent)}}};Hh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(u){var l=t.map.unproject(u);return[l.lng,l.lat]}var a=e.dragmode,o;o=function(u,l){if(l.isRect){var f=u.range={};f[t.id]=[i([l.xmin,l.ymin]),i([l.xmax,l.ymax])]}else{var c=u.lassoPoints={};c[t.id]=l.map(i)}};var s=t.dragOptions;t.dragOptions=_J.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),wjt(a)||bjt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){Ajt(u,l,f,t.dragOptions,a)},xjt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Hh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Hh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var bJ=ei(),kjt=k_(),Cjt=Jd(),GGe=Nk();HGe.exports=function(t,r,n){kjt(t,r,n,{type:"mapbox",attributes:GGe,handleDefaults:Ljt,partition:"y",accessToken:r._mapboxAccessToken})};function Ljt(e,t,r,n){r("accesstoken",n.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var i=r("bounds.west"),a=r("bounds.east"),o=r("bounds.south"),s=r("bounds.north");(i===void 0||a===void 0||o===void 0||s===void 0)&&delete t.bounds,Cjt(e,t,{name:"layers",handleItemDefaults:Pjt}),t._input=e}function Pjt(e,t){function r(u,l){return bJ.coerce(e,t,GGe.layers,u,l)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",bJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),bJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var sB=Te(qv=>{"use strict";var jGe=yJ(),ty=ei(),wJ=ty.strTranslate,zjt=ty.strScale,Ijt=Rd().getSubplotCalcData,Rjt=jv(),Djt=Jl(),XGe=Mu(),Fjt=Xf(),Bjt=VGe(),_x="mapbox",Qy=qv.constants=f1();qv.name=_x;qv.attr="subplot";qv.idRoot=_x;qv.idRegex=qv.attrRegex=ty.counterRegex(_x);var Ojt=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");qv.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};qv.layoutAttributes=Nk();qv.supplyLayoutDefaults=WGe();var ZGe=!0;qv.plot=function(t){ZGe&&(ZGe=!1,ty.warn(Ojt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[_x];if(jGe.version!==Qy.requiredVersion)throw new Error(Qy.wrongVersionErrorMsg);var a=qjt(t,i);jGe.accessToken=a;for(var o=0;ov/2){var k=d.split("|").join("
");_.text(k).attr("data-unformatted",k).call(Fjt.convertToTspans,e),b=XGe.bBox(_.node())}_.attr("transform",wJ(-3,-b.height+8)),p.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var E=1;b.width+6>v&&(E=v/(b.width+6));var T=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];p.attr("transform",wJ(T[0],T[1])+zjt(E))}};function qjt(e,t){var r=e._fullLayout,n=e._context;if(n.mapboxAccessToken==="")return"";for(var i=[],a=[],o=!1,s=!1,u=0;u1&&ty.warn(Qy.multipleTokensErrorMsg),i[0]):(a.length&&ty.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function YGe(e){return typeof e=="string"&&(Qy.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}qv.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[_x],n=0;n{"use strict";var vbr=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");KGe.exports={attributes:Q8(),supplyDefaults:lGe(),colorbar:ep(),formatLabels:fJ(),calc:hF(),plot:wGe(),hoverPoints:nB().hoverPoints,eventData:MGe(),selectPoints:kGe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:sB(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var QGe=Te((ybr,$Ge)=>{"use strict";$Ge.exports=JGe()});var AJ=Te((gbr,eHe)=>{"use strict";var c1=$T(),Njt=nc(),Ujt=Nu().hovertemplateAttrs,Vjt=Gf(),xx=Su().extendFlat;eHe.exports=xx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:xx({},c1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:c1.text,hovertext:c1.hovertext,marker:{line:{color:xx({},c1.marker.line.color,{editType:"plot"}),width:xx({},c1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:xx({},c1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:xx({},c1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:xx({},c1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:c1.hoverinfo,hovertemplate:Ujt({},{keys:["properties"]}),showlegend:xx({},Vjt.showlegend,{dflt:!1})},Njt("",{cLetter:"z",editTypeOverride:"calc"}))});var rHe=Te((_br,tHe)=>{"use strict";var Hk=ei(),Gjt=ed(),Hjt=AJ();tHe.exports=function(t,r,n,i){function a(f,c){return Hk.coerce(t,r,Hjt,f,c)}var o=a("locations"),s=a("z"),u=a("geojson");if(!Hk.isArrayOrTypedArray(o)||!o.length||!Hk.isArrayOrTypedArray(s)||!s.length||!(typeof u=="string"&&u!==""||Hk.isPlainObject(u))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var l=a("marker.line.width");l&&a("marker.line.color"),a("marker.opacity"),Gjt(t,r,i,a,{prefix:"",cLetter:"z"}),Hk.coerceSelectionMarkerOpacity(r,a)}});var TJ=Te((xbr,aHe)=>{"use strict";var Wjt=ku(),h1=ei(),jjt=_c(),Xjt=Mu(),Zjt=tx().makeBlank,iHe=ix();function Yjt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:Zjt()};if(!r)return a;var o=iHe.extractTraceFeature(e);if(!o)return a;var s=jjt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;h1.isArrayOrTypedArray(u.opacity)&&(f=function(k){var E=k.mo;return Wjt(E)?+h1.constrain(E,0,1):0});var c;h1.isArrayOrTypedArray(l.color)&&(c=function(k){return k.mlc});var h;h1.isArrayOrTypedArray(l.width)&&(h=function(k){return k.mlw});for(var d=0;d{"use strict";var sHe=TJ().convert,Kjt=TJ().convertOnSelect,oHe=f1().traceLayerPrefix;function lHe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",oHe+t+"-fill"],["line",oHe+t+"-line"]],this.below=null}var TS=lHe.prototype;TS.update=function(e){this._update(sHe(e)),e[0].trace._glTrace=this};TS.updateOnSelect=function(e){this._update(Kjt(e))};TS._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};TS.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};uHe.exports=function(t,r){var n=r[0].trace,i=new lHe(t,n.uid),a=i.sourceId,o=sHe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var hHe=Te((Abr,cHe)=>{"use strict";var wbr=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");cHe.exports={attributes:AJ(),supplyDefaults:rHe(),colorbar:S_(),calc:IF(),plot:fHe(),hoverPoints:DF(),eventData:FF(),selectPoints:BF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";dHe.exports=hHe()});var MJ=Te((Sbr,mHe)=>{"use strict";var Jjt=nc(),$jt=Nu().hovertemplateAttrs,vHe=Gf(),lB=Q8(),SJ=Su().extendFlat;mHe.exports=SJ({lon:lB.lon,lat:lB.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:lB.text,hovertext:lB.hovertext,hoverinfo:SJ({},vHe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:$jt(),showlegend:SJ({},vHe.showlegend,{dflt:!1})},Jjt("",{cLetter:"z",editTypeOverride:"calc"}))});var gHe=Te((Mbr,yHe)=>{"use strict";var Qjt=ei(),eXt=ed(),tXt=MJ();yHe.exports=function(t,r,n,i){function a(l,f){return Qjt.coerce(t,r,tXt,l,f)}var o=a("lon")||[],s=a("lat")||[],u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),eXt(t,r,i,a,{prefix:"",cLetter:"z"})}});var bHe=Te((Ebr,xHe)=>{"use strict";var EJ=ku(),rXt=ei().isArrayOrTypedArray,kJ=nf().BADNUM,iXt=gp(),_He=ei()._;xHe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=rXt(a)&&a.length,s=0;s{"use strict";var nXt=ku(),CJ=ei(),wHe=jl(),AHe=_c(),THe=nf().BADNUM,aXt=tx().makeBlank;SHe.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:aXt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=CJ.isArrayOrTypedArray(u)&&u.length,c=CJ.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=AHe.extractOpts(r),v=b.reversescale?AHe.flipScale(b.colorscale):b.colorscale,k=v[0][1],E=wHe.opacity(k)<1?k:wHe.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var EHe=MHe(),oXt=f1().traceLayerPrefix;function kHe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",oXt+t+"-heatmap"]],this.below=null}var uB=kHe.prototype;uB.update=function(e){var t=this.subplot,r=this.layerList,n=EHe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};uB.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};CHe.exports=function(t,r){var n=r[0].trace,i=new kHe(t,n.uid),a=i.sourceId,o=EHe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var zHe=Te((Lbr,PHe)=>{"use strict";var sXt=wu(),lXt=nB().hoverPoints,uXt=nB().getExtraText;PHe.exports=function(t,r,n){var i=lXt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,u=o[a.index];if(delete a.color,"z"in u){var l=a.subplot.mockAxis;a.z=u.z,a.zLabel=sXt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=uXt(s,u,o[0].t.labels),[a]}}});var RHe=Te((Pbr,IHe)=>{"use strict";IHe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var FHe=Te((Ibr,DHe)=>{"use strict";var zbr=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");DHe.exports={attributes:MJ(),supplyDefaults:gHe(),colorbar:S_(),formatLabels:fJ(),calc:bHe(),plot:LHe(),hoverPoints:zHe(),eventData:RHe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";BHe.exports=FHe()});var NHe=Te((Dbr,qHe)=>{qHe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} {name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} @@ -3222,10 +3222,10 @@ uniform `+dr+" "+Er+" u_"+lr+`; {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} -{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var NHe=Te((Rbr,qHe)=>{qHe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var bx=Te((Dbr,WHe)=>{"use strict";var sXt=Z1(),lXt=OHe(),uXt=NHe(),fXt='\xA9 OpenStreetMap contributors',UHe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",VHe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",fB="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",cXt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",hXt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",dXt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",HHe={basic:fB,streets:fB,outdoors:fB,light:UHe,dark:VHe,satellite:uXt,"satellite-streets":lXt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:fXt,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":UHe,"carto-darkmatter":VHe,"carto-voyager":fB,"carto-positron-nolabels":cXt,"carto-darkmatter-nolabels":hXt,"carto-voyager-nolabels":dXt},GHe=sXt(HHe);WHe.exports={styleValueDflt:"basic",stylesMap:HHe,styleValuesMap:GHe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",GHe.join(", "),"or use a tile service."].join(` -`),mapOnErrorMsg:"Map error."}});var Hk=Te((Fbr,KHe)=>{"use strict";var jHe=ei(),XHe=jl().defaultLine,pXt=zc().attributes,vXt=gc(),mXt=Zc().textposition,yXt=Sc().overrideAll,gXt=Pf().templatedArray,ZHe=bx(),YHe=vXt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});YHe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var _Xt=KHe.exports=yXt({_arrayAttrRegexps:[jHe.counterRegex("map",".layers",!0)],domain:pXt({name:"map"}),style:{valType:"any",values:ZHe.styleValuesMap,dflt:ZHe.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:gXt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:XHe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:XHe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:YHe,textposition:jHe.extendFlat({},mXt,{arrayOk:!1})}})},"plot","from-root");_Xt.uirevision={valType:"any",editType:"none"}});var cB=Te((Bbr,QHe)=>{"use strict";var xXt=Nu().hovertemplateAttrs,bXt=Nu().texttemplateAttrs,wXt=Em(),Wk=G2(),TS=Zc(),JHe=Hk(),AXt=Gf(),TXt=nc(),rw=Su().extendFlat,SXt=Sc().overrideAll,MXt=Hk(),$He=Wk.line,SS=Wk.marker;QHe.exports=SXt({lon:Wk.lon,lat:Wk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:rw({},MXt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:rw({},SS.opacity,{dflt:1})},mode:rw({},TS.mode,{dflt:"markers"}),text:rw({},TS.text,{}),texttemplate:bXt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:rw({},TS.hovertext,{}),line:{color:$He.color,width:$He.width},connectgaps:TS.connectgaps,marker:rw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:SS.opacity,size:SS.size,sizeref:SS.sizeref,sizemin:SS.sizemin,sizemode:SS.sizemode},TXt("marker")),fill:Wk.fill,fillcolor:wXt(),textfont:JHe.layers.symbol.textfont,textposition:JHe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:TS.selected.marker},unselected:{marker:TS.unselected.marker},hoverinfo:rw({},AXt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:xXt()},"calc","nested")});var LJ=Te((Obr,eWe)=>{"use strict";var EXt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];eWe.exports={isSupportedFont:function(e){return EXt.indexOf(e)!==-1}}});var iWe=Te((qbr,rWe)=>{"use strict";var jk=ei(),PJ=lc(),kXt=$v(),CXt=I0(),LXt=R0(),PXt=zm(),tWe=cB(),zXt=LJ().isSupportedFont;rWe.exports=function(t,r,n,i){function a(v,k){return jk.coerce(t,r,tWe,v,k)}function o(v,k){return jk.coerce2(t,r,tWe,v,k)}var s=IXt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),PJ.hasMarkers(r)){kXt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var u=r.marker;u.symbol!=="circle"&&(jk.isArrayOrTypedArray(u.size)&&(u.size=u.size[0]),jk.isArrayOrTypedArray(u.color)&&(u.color=u.color[0]))}PJ.hasLines(r)&&(CXt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var l=o("cluster.maxzoom"),f=o("cluster.step"),c=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),p=l!==!1||f!==!1||c!==!1||h!==!1||d!==!1,x=a("cluster.enabled",p);if(x||PJ.hasText(r)){var b=i.font.family;LXt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:zXt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&PXt(t,r,n,a),jk.coerceSelectionMarkerOpacity(r,a)};function IXt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var zJ=Te((Nbr,aWe)=>{"use strict";var nWe=wu();aWe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=nWe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=nWe.tickText(o,o.c2l(s[1]),!0).text,i}});var IJ=Te((Ubr,sWe)=>{"use strict";var oWe=ei();sWe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=oWe.isArrayOrTypedArray(r)?oWe.mean(r):r,s=.5+o/100,u=1.5+o/100,l=["",""],f=[0,0];switch(i){case"top":l[0]="top",f[1]=-u;break;case"bottom":l[0]="bottom",f[1]=u;break}switch(a){case"left":l[1]="right",f[0]=-s;break;case"right":l[1]="left",f[0]=s;break}var c;return l[0]&&l[1]?c=l.join("-"):l[0]?c=l[0]:l[1]?c=l[1]:c="center",{anchor:c,offset:f}}});var dWe=Te((Vbr,hWe)=>{"use strict";var fWe=ku(),lp=ei(),RXt=nf().BADNUM,dB=tx(),lWe=_c(),DXt=Mu(),FXt=S3(),pB=lc(),BXt=LJ().isSupportedFont,OXt=IJ(),qXt=rv().appendArrayPointValue,NXt=Xf().NEWLINES,UXt=Xf().BR_TAG_ALL;hWe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=pB.hasLines(n),s=pB.hasMarkers(n),u=pB.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=hB("fill"),d=hB("line"),p=hB("circle"),x=hB("symbol"),b={fill:h,line:d,circle:p,symbol:x};if(!i)return b;var v;if((a||o)&&(v=dB.calcTraceToLineCoords(r)),a&&(h.geojson=dB.makePolygon(v),h.layout.visibility="visible",lp.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=dB.makeLine(v),d.layout.visibility="visible",lp.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),l){var k=VXt(r);p.geojson=k.geojson,p.layout.visibility="visible",c&&(p.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":DJ(n.cluster.color,n.cluster.step),"circle-radius":DJ(n.cluster.size,n.cluster.step),"circle-opacity":DJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":uWe(n),"text-size":12}}),lp.extendFlat(p.paint,{"circle-color":k.mcc,"circle-radius":k.mrc,"circle-opacity":k.mo})}if(l&&c&&(p.filter=["!",["has","point_count"]]),(f||u)&&(x.geojson=GXt(r,t),lp.extendFlat(x.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(lp.extendFlat(x.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&lp.extendFlat(x.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),x.layout["icon-allow-overlap"]=n.marker.allowoverlap,lp.extendFlat(x.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var E=(n.marker||{}).size,T=OXt(n.textposition,E);lp.extendFlat(x.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":uWe(n)}),lp.extendFlat(x.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function hB(e){return{type:e,geojson:dB.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function VXt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=lp.isArrayOrTypedArray(r.color),a=lp.isArrayOrTypedArray(r.size),o=lp.isArrayOrTypedArray(r.opacity),s;function u(E){return t.opacity*E}function l(E){return E/2}var f;i&&(lWe.hasColorscale(t,"marker")?f=lWe.makeColorScaleFuncFromTrace(r):f=lp.identity);var c;a&&(c=FXt(t));var h;o&&(h=function(E){var T=fWe(E)?+lp.constrain(E,0,1):0;return u(T)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),BXt(s)||(s=r);var u=s.split(", ");return u}});var yWe=Te((Gbr,mWe)=>{"use strict";var HXt=ei(),pWe=dWe(),MS=bx().traceLayerPrefix,nm={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function vWe(e,t,r,n){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:MS+t+"-fill",line:MS+t+"-line",circle:MS+t+"-circle",symbol:MS+t+"-symbol",cluster:MS+t+"-cluster",clusterCount:MS+t+"-cluster-count"},this.below=null}var Xk=vWe.prototype;Xk.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&HXt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};Xk.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};Xk.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var _=T[L];i.removeLayer(l.layerIds[_])}E||i.removeSource(l.sourceIds.circle)}function h(E){for(var T=nm.nonCluster,L=0;L=0;L--){var _=T[L];i.removeLayer(l.layerIds[_]),E||i.removeSource(l.sourceIds[_])}}function p(E){u?c(E):d(E)}function x(E){s?f(E):h(E)}function b(){for(var E=s?nm.cluster:nm.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};mWe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new vWe(t,n.uid,i,a),s=pWe(t.gd,r),u=o.below=t.belowLookup["trace-"+n.uid],l,f,c;if(i)for(o.addSource("circle",s.circle,n.cluster),l=0;l{"use strict";var WXt=Xc(),FJ=ei(),jXt=oA(),XXt=FJ.fillText,ZXt=nf().BADNUM,YXt=bx().traceLayerPrefix;function KXt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,u=[],l=YXt+i.uid+"-circle",f=i.cluster&&i.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[l]});u=c.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function x(M){var m=M.lonlat;if(m[0]===ZXt||f&&u.indexOf(M.i+1)===-1)return 1/0;var P=FJ.modHalf(m[0],360),A=m[1],B=s.project([P,A]),F=B.x-a.c2p([p,A]),U=B.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(F*F+U*U)-G,1-3/G)}if(WXt.getClosest(n,x,e),e.index!==!1){var b=n[e.index],v=b.lonlat,k=[FJ.modHalf(v[0],360)+d,v[1]],E=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=T-L,e.y1=T+L;var _={};_[i.subplot]={_subplot:s};var C=i._module.formatLabels(b,i,_);return e.lonLabel=C.lonLabel,e.latLabel=C.latLabel,e.color=jXt(i,b),e.extraText=gWe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function gWe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=t.lonlat,l=[];function f(c){return c+"\xB0"}return a||o&&s?l.push("("+f(u[1])+", "+f(u[0])+")"):o?l.push(r.lon+f(u[0])):s&&l.push(r.lat+f(u[1])),(a||i.indexOf("text")!==-1)&&XXt(t,e,l),l.join("
")}_We.exports={hoverPoints:KXt,getExtraText:gWe}});var bWe=Te((Wbr,xWe)=>{"use strict";xWe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var AWe=Te((jbr,wWe)=>{"use strict";var JXt=ei(),$Xt=lc(),QXt=nf().BADNUM;wWe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!$Xt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof BJ=="object"&&typeof OJ!="undefined"?OJ.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(BJ,function(){"use strict";var e={},t={};function r(i,a,o){if(t[i]=o,i==="index"){var s="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",u={};return t.shared(u),t.index(e,u),typeof window!="undefined"&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([s],{type:"text/javascript"}))),e}}r("shared",["exports"],function(i){"use strict";function a(I,S,D,X){return new(D||(D=Promise))(function(ie,ve){function we(Mt){try{ut(X.next(Mt))}catch($t){ve($t)}}function We(Mt){try{ut(X.throw(Mt))}catch($t){ve($t)}}function ut(Mt){var $t;Mt.done?ie(Mt.value):($t=Mt.value,$t instanceof D?$t:new D(function(vr){vr($t)})).then(we,We)}ut((X=X.apply(I,S||[])).next())})}function o(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}typeof SuppressedError=="function"&&SuppressedError;var s=u;function u(I,S){this.x=I,this.y=S}u.prototype={clone:function(){return new u(this.x,this.y)},add:function(I){return this.clone()._add(I)},sub:function(I){return this.clone()._sub(I)},multByPoint:function(I){return this.clone()._multByPoint(I)},divByPoint:function(I){return this.clone()._divByPoint(I)},mult:function(I){return this.clone()._mult(I)},div:function(I){return this.clone()._div(I)},rotate:function(I){return this.clone()._rotate(I)},rotateAround:function(I,S){return this.clone()._rotateAround(I,S)},matMult:function(I){return this.clone()._matMult(I)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(I){return this.x===I.x&&this.y===I.y},dist:function(I){return Math.sqrt(this.distSqr(I))},distSqr:function(I){var S=I.x-this.x,D=I.y-this.y;return S*S+D*D},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(I){return Math.atan2(this.y-I.y,this.x-I.x)},angleWith:function(I){return this.angleWithSep(I.x,I.y)},angleWithSep:function(I,S){return Math.atan2(this.x*S-this.y*I,this.x*I+this.y*S)},_matMult:function(I){var S=I[2]*this.x+I[3]*this.y;return this.x=I[0]*this.x+I[1]*this.y,this.y=S,this},_add:function(I){return this.x+=I.x,this.y+=I.y,this},_sub:function(I){return this.x-=I.x,this.y-=I.y,this},_mult:function(I){return this.x*=I,this.y*=I,this},_div:function(I){return this.x/=I,this.y/=I,this},_multByPoint:function(I){return this.x*=I.x,this.y*=I.y,this},_divByPoint:function(I){return this.x/=I.x,this.y/=I.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var I=this.y;return this.y=this.x,this.x=-I,this},_rotate:function(I){var S=Math.cos(I),D=Math.sin(I),X=D*this.x+S*this.y;return this.x=S*this.x-D*this.y,this.y=X,this},_rotateAround:function(I,S){var D=Math.cos(I),X=Math.sin(I),ie=S.y+X*(this.x-S.x)+D*(this.y-S.y);return this.x=S.x+D*(this.x-S.x)-X*(this.y-S.y),this.y=ie,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},u.convert=function(I){return I instanceof u?I:Array.isArray(I)?new u(I[0],I[1]):I};var l=o(s),f=c;function c(I,S,D,X){this.cx=3*I,this.bx=3*(D-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(X-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=S,this.p2x=D,this.p2y=X}c.prototype={sampleCurveX:function(I){return((this.ax*I+this.bx)*I+this.cx)*I},sampleCurveY:function(I){return((this.ay*I+this.by)*I+this.cy)*I},sampleCurveDerivativeX:function(I){return(3*this.ax*I+2*this.bx)*I+this.cx},solveCurveX:function(I,S){if(S===void 0&&(S=1e-6),I<0)return 0;if(I>1)return 1;for(var D=I,X=0;X<8;X++){var ie=this.sampleCurveX(D)-I;if(Math.abs(ie)ie?we=D:We=D,D=.5*(We-we)+we;return D},solve:function(I,S){return this.sampleCurveY(this.solveCurveX(I,S))}};var h=o(f);let d,p;function x(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(p==null&&(p=!1,x())){let S=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(S){for(let X=0;X<5*5;X++){let ie=4*X;S.fillStyle=`rgb(${ie},${ie+1},${ie+2})`,S.fillRect(X%5,Math.floor(X/5),1,1)}let D=S.getImageData(0,0,5,5).data;for(let X=0;X<5*5*4;X++)if(X%4!=3&&D[X]!==X){p=!0;break}}}return p||!1}function v(I,S,D,X){let ie=new h(I,S,D,X);return ve=>ie.solve(ve)}let k=v(.25,.1,.25,1);function E(I,S,D){return Math.min(D,Math.max(S,I))}function T(I,S,D){let X=D-S,ie=((I-S)%X+X)%X+S;return ie===S?D:ie}function L(I,...S){for(let D of S)for(let X in D)I[X]=D[X];return I}let _=1;function C(I,S,D){let X={};for(let ie in I)X[ie]=S.call(this,I[ie],ie,I);return X}function M(I,S,D){let X={};for(let ie in I)S.call(this,I[ie],ie,I)&&(X[ie]=I[ie]);return X}function m(I){return Array.isArray(I)?I.map(m):typeof I=="object"&&I?C(I,m):I}let P={};function A(I){P[I]||(typeof console!="undefined"&&console.warn(I),P[I]=!0)}function B(I,S,D){return(D.y-I.y)*(S.x-I.x)>(S.y-I.y)*(D.x-I.x)}function F(I){return typeof WorkerGlobalScope!="undefined"&&I!==void 0&&I instanceof WorkerGlobalScope}let U=null;function G(I){return typeof ImageBitmap!="undefined"&&I instanceof ImageBitmap}let j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function H(I,S,D,X,ie){return a(this,void 0,void 0,function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let ve=new VideoFrame(I,{timestamp:0});try{let we=ve==null?void 0:ve.format;if(!we||!we.startsWith("BGR")&&!we.startsWith("RGB"))throw new Error(`Unrecognized format ${we}`);let We=we.startsWith("BGR"),ut=new Uint8ClampedArray(X*ie*4);if(yield ve.copyTo(ut,function(Mt,$t,vr,Sr,Br){let Jr=4*Math.max(-$t,0),li=(Math.max(0,vr)-vr)*Sr*4+Jr,Hi=4*Sr,cn=Math.max(0,$t),Za=Math.max(0,vr);return{rect:{x:cn,y:Za,width:Math.min(Mt.width,$t+Sr)-cn,height:Math.min(Mt.height,vr+Br)-Za},layout:[{offset:li,stride:Hi}]}}(I,S,D,X,ie)),We)for(let Mt=0;MtF(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,ke=function(I,S){if(/:\/\//.test(I.url)&&!/^https?:|^file:/.test(I.url)){let X=Pe(I.url);if(X)return X(I,S);if(F(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,targetMapId:Ce},S)}if(!(/^file:/.test(D=I.url)||/^file:/.test(te())&&!/^\w+:/.test(D))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(X,ie){return a(this,void 0,void 0,function*(){let ve=new Request(X.url,{method:X.method||"GET",body:X.body,credentials:X.credentials,headers:X.headers,cache:X.cache,referrer:te(),signal:ie.signal});X.type!=="json"||ve.headers.has("Accept")||ve.headers.set("Accept","application/json");let we=yield fetch(ve);if(!we.ok){let Mt=yield we.blob();throw new de(we.status,we.statusText,X.url,Mt)}let We;We=X.type==="arrayBuffer"||X.type==="image"?we.arrayBuffer():X.type==="json"?we.json():we.text();let ut=yield We;if(ie.signal.aborted)throw ae();return{data:ut,cacheControl:we.headers.get("Cache-Control"),expires:we.headers.get("Expires")}})}(I,S);if(F(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,mustQueue:!0,targetMapId:Ce},S)}var D;return function(X,ie){return new Promise((ve,we)=>{var We;let ut=new XMLHttpRequest;ut.open(X.method||"GET",X.url,!0),X.type!=="arrayBuffer"&&X.type!=="image"||(ut.responseType="arraybuffer");for(let Mt in X.headers)ut.setRequestHeader(Mt,X.headers[Mt]);X.type==="json"&&(ut.responseType="text",!((We=X.headers)===null||We===void 0)&&We.Accept||ut.setRequestHeader("Accept","application/json")),ut.withCredentials=X.credentials==="include",ut.onerror=()=>{we(new Error(ut.statusText))},ut.onload=()=>{if(!ie.signal.aborted)if((ut.status>=200&&ut.status<300||ut.status===0)&&ut.response!==null){let Mt=ut.response;if(X.type==="json")try{Mt=JSON.parse(ut.response)}catch($t){return void we($t)}ve({data:Mt,cacheControl:ut.getResponseHeader("Cache-Control"),expires:ut.getResponseHeader("Expires")})}else{let Mt=new Blob([ut.response],{type:ut.getResponseHeader("Content-Type")});we(new de(ut.status,ut.statusText,X.url,Mt))}},ie.signal.addEventListener("abort",()=>{ut.abort(),we(ae())}),ut.send(X.body)})}(I,S)};function Ee(I){if(!I||I.indexOf("://")<=0||I.indexOf("data:image/")===0||I.indexOf("blob:")===0)return!0;let S=new URL(I),D=window.location;return S.protocol===D.protocol&&S.host===D.host}function Me(I,S,D){D[I]&&D[I].indexOf(S)!==-1||(D[I]=D[I]||[],D[I].push(S))}function Ne(I,S,D){if(D&&D[I]){let X=D[I].indexOf(S);X!==-1&&D[I].splice(X,1)}}class Fe{constructor(S,D={}){L(this,D),this.type=S}}class ye extends Fe{constructor(S,D={}){super("error",L({error:S},D))}}class Ve{on(S,D){return this._listeners=this._listeners||{},Me(S,D,this._listeners),this}off(S,D){return Ne(S,D,this._listeners),Ne(S,D,this._oneTimeListeners),this}once(S,D){return D?(this._oneTimeListeners=this._oneTimeListeners||{},Me(S,D,this._oneTimeListeners),this):new Promise(X=>this.once(S,X))}fire(S,D){typeof S=="string"&&(S=new Fe(S,D||{}));let X=S.type;if(this.listens(X)){S.target=this;let ie=this._listeners&&this._listeners[X]?this._listeners[X].slice():[];for(let We of ie)We.call(this,S);let ve=this._oneTimeListeners&&this._oneTimeListeners[X]?this._oneTimeListeners[X].slice():[];for(let We of ve)Ne(X,We,this._oneTimeListeners),We.call(this,S);let we=this._eventedParent;we&&(L(S,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),we.fire(S))}else S instanceof ye&&console.error(S.error);return this}listens(S){return this._listeners&&this._listeners[S]&&this._listeners[S].length>0||this._oneTimeListeners&&this._oneTimeListeners[S]&&this._oneTimeListeners[S].length>0||this._eventedParent&&this._eventedParent.listens(S)}setEventedParent(S,D){return this._eventedParent=S,this._eventedParentData=D,this}}var ce={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let Ye=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function nt(I,S){let D={};for(let X in I)X!=="ref"&&(D[X]=I[X]);return Ye.forEach(X=>{X in S&&(D[X]=S[X])}),D}function gt(I,S){if(Array.isArray(I)){if(!Array.isArray(S)||I.length!==S.length)return!1;for(let D=0;D`:I.itemType.kind==="value"?"array":`array<${S}>`}return I.kind}let Re=[vt,st,Ue,rt,$e,yr,zt,xe(Yt),br,Ut,Ie];function De(I,S){if(S.kind==="error")return null;if(I.kind==="array"){if(S.kind==="array"&&(S.N===0&&S.itemType.kind==="value"||!De(I.itemType,S.itemType))&&(typeof I.N!="number"||I.N===S.N))return null}else{if(I.kind===S.kind)return null;if(I.kind==="value"){for(let D of Re)if(!De(D,S))return null}}return`Expected ${Oe(I)} but found ${Oe(S)} instead.`}function ct(I,S){return S.some(D=>D.kind===I.kind)}function ge(I,S){return S.some(D=>D==="null"?I===null:D==="array"?Array.isArray(I):D==="object"?I&&!Array.isArray(I)&&typeof I=="object":D===typeof I)}function fe(I,S){return I.kind==="array"&&S.kind==="array"?I.itemType.kind===S.itemType.kind&&typeof I.N=="number":I.kind===S.kind}let pe=.96422,dt=.82521,It=4/29,Pt=6/29,rr=3*Pt*Pt,Hr=Pt*Pt*Pt,Dr=Math.PI/180,Mr=180/Math.PI;function Fr(I){return(I%=360)<0&&(I+=360),I}function di([I,S,D,X]){let ie,ve,we=Ii((.2225045*(I=Di(I))+.7168786*(S=Di(S))+.0606169*(D=Di(D)))/1);I===S&&S===D?ie=ve=we:(ie=Ii((.4360747*I+.3850649*S+.1430804*D)/pe),ve=Ii((.0139322*I+.0971045*S+.7141733*D)/dt));let We=116*we-16;return[We<0?0:We,500*(ie-we),200*(we-ve),X]}function Di(I){return I<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}function Ii(I){return I>Hr?Math.pow(I,1/3):I/rr+It}function Ci([I,S,D,X]){let ie=(I+16)/116,ve=isNaN(S)?ie:ie+S/500,we=isNaN(D)?ie:ie-D/200;return ie=1*ii(ie),ve=pe*ii(ve),we=dt*ii(we),[nn(3.1338561*ve-1.6168667*ie-.4906146*we),nn(-.9787684*ve+1.9161415*ie+.033454*we),nn(.0719453*ve-.2289914*ie+1.4052427*we),X]}function nn(I){return(I=I<=.00304?12.92*I:1.055*Math.pow(I,1/2.4)-.055)<0?0:I>1?1:I}function ii(I){return I>Pt?I*I*I:rr*(I-It)}function wi(I){return parseInt(I.padEnd(2,I),16)/255}function Gi(I,S){return Bt(S?I/100:I,0,1)}function Bt(I,S,D){return Math.min(Math.max(S,I),D)}function yt(I){return!I.some(Number.isNaN)}let Vt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class Wt{constructor(S,D,X,ie=1,ve=!0){this.r=S,this.g=D,this.b=X,this.a=ie,ve||(this.r*=ie,this.g*=ie,this.b*=ie,ie||this.overwriteGetter("rgb",[S,D,X,ie]))}static parse(S){if(S instanceof Wt)return S;if(typeof S!="string")return;let D=function(X){if((X=X.toLowerCase().trim())==="transparent")return[0,0,0,0];let ie=Vt[X];if(ie){let[we,We,ut]=ie;return[we/255,We/255,ut/255,1]}if(X.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(X)){let we=X.length<6?1:2,We=1;return[wi(X.slice(We,We+=we)),wi(X.slice(We,We+=we)),wi(X.slice(We,We+=we)),wi(X.slice(We,We+we)||"ff")]}if(X.startsWith("rgb")){let we=X.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(we){let[We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn,Za]=we,Rn=[$t||" ",Br||" ",Hi].join("");if(Rn===" "||Rn===" /"||Rn===",,"||Rn===",,,"){let La=[Mt,Sr,li].join(""),So=La==="%%%"?100:La===""?255:0;if(So){let kl=[Bt(+ut/So,0,1),Bt(+vr/So,0,1),Bt(+Jr/So,0,1),cn?Gi(+cn,Za):1];if(yt(kl))return kl}}return}}let ve=X.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(ve){let[we,We,ut,Mt,$t,vr,Sr,Br,Jr]=ve,li=[ut||" ",$t||" ",Sr].join("");if(li===" "||li===" /"||li===",,"||li===",,,"){let Hi=[+We,Bt(+Mt,0,100),Bt(+vr,0,100),Br?Gi(+Br,Jr):1];if(yt(Hi))return function([cn,Za,Rn,La]){function So(kl){let mu=(kl+cn/30)%12,Iu=Za*Math.min(Rn,1-Rn);return Rn-Iu*Math.max(-1,Math.min(mu-3,9-mu,1))}return cn=Fr(cn),Za/=100,Rn/=100,[So(0),So(8),So(4),La]}(Hi)}}}(S);return D?new Wt(...D,!1):void 0}get rgb(){let{r:S,g:D,b:X,a:ie}=this,ve=ie||1/0;return this.overwriteGetter("rgb",[S/ve,D/ve,X/ve,ie])}get hcl(){return this.overwriteGetter("hcl",function(S){let[D,X,ie,ve]=di(S),we=Math.sqrt(X*X+ie*ie);return[Math.round(1e4*we)?Fr(Math.atan2(ie,X)*Mr):NaN,we,D,ve]}(this.rgb))}get lab(){return this.overwriteGetter("lab",di(this.rgb))}overwriteGetter(S,D){return Object.defineProperty(this,S,{value:D}),D}toString(){let[S,D,X,ie]=this.rgb;return`rgba(${[S,D,X].map(ve=>Math.round(255*ve)).join(",")},${ie})`}}Wt.black=new Wt(0,0,0,1),Wt.white=new Wt(1,1,1,1),Wt.transparent=new Wt(0,0,0,0),Wt.red=new Wt(1,0,0,1);class _r{constructor(S,D,X){this.sensitivity=S?D?"variant":"case":D?"accent":"base",this.locale=X,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(S,D){return this.collator.compare(S,D)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Lr{constructor(S,D,X,ie,ve){this.text=S,this.image=D,this.scale=X,this.fontStack=ie,this.textColor=ve}}class Ur{constructor(S){this.sections=S}static fromString(S){return new Ur([new Lr(S,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(S=>S.text.length!==0||S.image&&S.image.name.length!==0)}static factory(S){return S instanceof Ur?S:Ur.fromString(S)}toString(){return this.sections.length===0?"":this.sections.map(S=>S.text).join("")}}class Ir{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof Ir)return S;if(typeof S=="number")return new Ir([S,S,S,S]);if(Array.isArray(S)&&!(S.length<1||S.length>4)){for(let D of S)if(typeof D!="number")return;switch(S.length){case 1:S=[S[0],S[0],S[0],S[0]];break;case 2:S=[S[0],S[1],S[0],S[1]];break;case 3:S=[S[0],S[1],S[2],S[1]]}return new Ir(S)}}toString(){return JSON.stringify(this.values)}}let Gr=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class jr{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof jr)return S;if(Array.isArray(S)&&!(S.length<1)&&S.length%2==0){for(let D=0;D=0&&I<=255&&typeof S=="number"&&S>=0&&S<=255&&typeof D=="number"&&D>=0&&D<=255?X===void 0||typeof X=="number"&&X>=0&&X<=1?null:`Invalid rgba value [${[I,S,D,X].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof X=="number"?[I,S,D,X]:[I,S,D]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Vi(I){if(I===null||typeof I=="string"||typeof I=="boolean"||typeof I=="number"||I instanceof Wt||I instanceof _r||I instanceof Ur||I instanceof Ir||I instanceof jr||I instanceof yi)return!0;if(Array.isArray(I)){for(let S of I)if(!Vi(S))return!1;return!0}if(typeof I=="object"){for(let S in I)if(!Vi(I[S]))return!1;return!0}return!1}function ti(I){if(I===null)return vt;if(typeof I=="string")return Ue;if(typeof I=="boolean")return rt;if(typeof I=="number")return st;if(I instanceof Wt)return $e;if(I instanceof _r)return hr;if(I instanceof Ur)return yr;if(I instanceof Ir)return br;if(I instanceof jr)return Ie;if(I instanceof yi)return Ut;if(Array.isArray(I)){let S=I.length,D;for(let X of I){let ie=ti(X);if(D){if(D===ie)continue;D=Yt;break}D=ie}return xe(D||Yt,S)}return zt}function en(I){let S=typeof I;return I===null?"":S==="string"||S==="number"||S==="boolean"?String(I):I instanceof Wt||I instanceof Ur||I instanceof Ir||I instanceof jr||I instanceof yi?I.toString():JSON.stringify(I)}class Yr{constructor(S,D){this.type=S,this.value=D}static parse(S,D){if(S.length!==2)return D.error(`'literal' expression requires exactly one argument, but found ${S.length-1} instead.`);if(!Vi(S[1]))return D.error("invalid value");let X=S[1],ie=ti(X),ve=D.expectedType;return ie.kind!=="array"||ie.N!==0||!ve||ve.kind!=="array"||typeof ve.N=="number"&&ve.N!==0||(ie=ve),new Yr(ie,X)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class oi{constructor(S){this.name="ExpressionEvaluationError",this.message=S}toJSON(){return this.message}}let Bi={string:Ue,number:st,boolean:rt,object:zt};class an{constructor(S,D){this.type=S,this.args=D}static parse(S,D){if(S.length<2)return D.error("Expected at least one argument.");let X,ie=1,ve=S[0];if(ve==="array"){let We,ut;if(S.length>2){let Mt=S[1];if(typeof Mt!="string"||!(Mt in Bi)||Mt==="object")return D.error('The item type argument of "array" must be one of string, number, boolean',1);We=Bi[Mt],ie++}else We=Yt;if(S.length>3){if(S[2]!==null&&(typeof S[2]!="number"||S[2]<0||S[2]!==Math.floor(S[2])))return D.error('The length argument to "array" must be a positive integer literal',2);ut=S[2],ie++}X=xe(We,ut)}else{if(!Bi[ve])throw new Error(`Types doesn't contain name = ${ve}`);X=Bi[ve]}let we=[];for(;ieS.outputDefined())}}let rn={"to-boolean":rt,"to-color":$e,"to-number":st,"to-string":Ue};class Fi{constructor(S,D){this.type=S,this.args=D}static parse(S,D){if(S.length<2)return D.error("Expected at least one argument.");let X=S[0];if(!rn[X])throw new Error(`Can't parse ${X} as it is not part of the known types`);if((X==="to-boolean"||X==="to-string")&&S.length!==2)return D.error("Expected one argument.");let ie=rn[X],ve=[];for(let we=1;we4?`Invalid rbga value ${JSON.stringify(D)}: expected an array containing either three or four numeric values.`:Ei(D[0],D[1],D[2],D[3]),!X))return new Wt(D[0]/255,D[1]/255,D[2]/255,D[3])}throw new oi(X||`Could not parse color from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"padding":{let D;for(let X of this.args){D=X.evaluate(S);let ie=Ir.parse(D);if(ie)return ie}throw new oi(`Could not parse padding from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"variableAnchorOffsetCollection":{let D;for(let X of this.args){D=X.evaluate(S);let ie=jr.parse(D);if(ie)return ie}throw new oi(`Could not parse variableAnchorOffsetCollection from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"number":{let D=null;for(let X of this.args){if(D=X.evaluate(S),D===null)return 0;let ie=Number(D);if(!isNaN(ie))return ie}throw new oi(`Could not convert ${JSON.stringify(D)} to number.`)}case"formatted":return Ur.fromString(en(this.args[0].evaluate(S)));case"resolvedImage":return yi.fromString(en(this.args[0].evaluate(S)));default:return en(this.args[0].evaluate(S))}}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}let Ri=["Unknown","Point","LineString","Polygon"];class xn{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Ri[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(S){let D=this._parseColorCache[S];return D||(D=this._parseColorCache[S]=Wt.parse(S)),D}}class xi{constructor(S,D,X=[],ie,ve=new wt,we=[]){this.registry=S,this.path=X,this.key=X.map(We=>`[${We}]`).join(""),this.scope=ve,this.errors=we,this.expectedType=ie,this._isConstant=D}parse(S,D,X,ie,ve={}){return D?this.concat(D,X,ie)._parse(S,ve):this._parse(S,ve)}_parse(S,D){function X(ie,ve,we){return we==="assert"?new an(ve,[ie]):we==="coerce"?new Fi(ve,[ie]):ie}if(S!==null&&typeof S!="string"&&typeof S!="boolean"&&typeof S!="number"||(S=["literal",S]),Array.isArray(S)){if(S.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let ie=S[0];if(typeof ie!="string")return this.error(`Expression name must be a string, but found ${typeof ie} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let ve=this.registry[ie];if(ve){let we=ve.parse(S,this);if(!we)return null;if(this.expectedType){let We=this.expectedType,ut=we.type;if(We.kind!=="string"&&We.kind!=="number"&&We.kind!=="boolean"&&We.kind!=="object"&&We.kind!=="array"||ut.kind!=="value")if(We.kind!=="color"&&We.kind!=="formatted"&&We.kind!=="resolvedImage"||ut.kind!=="value"&&ut.kind!=="string")if(We.kind!=="padding"||ut.kind!=="value"&&ut.kind!=="number"&&ut.kind!=="array")if(We.kind!=="variableAnchorOffsetCollection"||ut.kind!=="value"&&ut.kind!=="array"){if(this.checkSubtype(We,ut))return null}else we=X(we,We,D.typeAnnotation||"coerce");else we=X(we,We,D.typeAnnotation||"coerce");else we=X(we,We,D.typeAnnotation||"coerce");else we=X(we,We,D.typeAnnotation||"assert")}if(!(we instanceof Yr)&&we.type.kind!=="resolvedImage"&&this._isConstant(we)){let We=new xn;try{we=new Yr(we.type,we.evaluate(We))}catch(ut){return this.error(ut.message),null}}return we}return this.error(`Unknown expression "${ie}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(S===void 0?"'undefined' value invalid. Use null instead.":typeof S=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof S} instead.`)}concat(S,D,X){let ie=typeof S=="number"?this.path.concat(S):this.path,ve=X?this.scope.concat(X):this.scope;return new xi(this.registry,this._isConstant,ie,D||null,ve,this.errors)}error(S,...D){let X=`${this.key}${D.map(ie=>`[${ie}]`).join("")}`;this.errors.push(new at(X,S))}checkSubtype(S,D){let X=De(S,D);return X&&this.error(X),X}}class Xr{constructor(S,D){this.type=D.type,this.bindings=[].concat(S),this.result=D}evaluate(S){return this.result.evaluate(S)}eachChild(S){for(let D of this.bindings)S(D[1]);S(this.result)}static parse(S,D){if(S.length<4)return D.error(`Expected at least 3 arguments, but found ${S.length-1} instead.`);let X=[];for(let ve=1;ve=X.length)throw new oi(`Array index out of bounds: ${D} > ${X.length-1}.`);if(D!==Math.floor(D))throw new oi(`Array index must be an integer, but found ${D} instead.`);return X[D]}eachChild(S){S(this.index),S(this.input)}outputDefined(){return!1}}class pr{constructor(S,D){this.type=rt,this.needle=S,this.haystack=D}static parse(S,D){if(S.length!==3)return D.error(`Expected 2 arguments, but found ${S.length-1} instead.`);let X=D.parse(S[1],1,Yt),ie=D.parse(S[2],2,Yt);return X&&ie?ct(X.type,[rt,Ue,st,vt,Yt])?new pr(X,ie):D.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`):null}evaluate(S){let D=this.needle.evaluate(S),X=this.haystack.evaluate(S);if(!X)return!1;if(!ge(D,["boolean","string","number","null"]))throw new oi(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(ti(D))} instead.`);if(!ge(X,["string","array"]))throw new oi(`Expected second argument to be of type array or string, but found ${Oe(ti(X))} instead.`);return X.indexOf(D)>=0}eachChild(S){S(this.needle),S(this.haystack)}outputDefined(){return!0}}class gr{constructor(S,D,X){this.type=st,this.needle=S,this.haystack=D,this.fromIndex=X}static parse(S,D){if(S.length<=2||S.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let X=D.parse(S[1],1,Yt),ie=D.parse(S[2],2,Yt);if(!X||!ie)return null;if(!ct(X.type,[rt,Ue,st,vt,Yt]))return D.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`);if(S.length===4){let ve=D.parse(S[3],3,st);return ve?new gr(X,ie,ve):null}return new gr(X,ie)}evaluate(S){let D=this.needle.evaluate(S),X=this.haystack.evaluate(S);if(!ge(D,["boolean","string","number","null"]))throw new oi(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(ti(D))} instead.`);let ie;if(this.fromIndex&&(ie=this.fromIndex.evaluate(S)),ge(X,["string"])){let ve=X.indexOf(D,ie);return ve===-1?-1:[...X.slice(0,ve)].length}if(ge(X,["array"]))return X.indexOf(D,ie);throw new oi(`Expected second argument to be of type array or string, but found ${Oe(ti(X))} instead.`)}eachChild(S){S(this.needle),S(this.haystack),this.fromIndex&&S(this.fromIndex)}outputDefined(){return!1}}class Zr{constructor(S,D,X,ie,ve,we){this.inputType=S,this.type=D,this.input=X,this.cases=ie,this.outputs=ve,this.otherwise=we}static parse(S,D){if(S.length<5)return D.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if(S.length%2!=1)return D.error("Expected an even number of arguments.");let X,ie;D.expectedType&&D.expectedType.kind!=="value"&&(ie=D.expectedType);let ve={},we=[];for(let Mt=2;MtNumber.MAX_SAFE_INTEGER)return Sr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Jr=="number"&&Math.floor(Jr)!==Jr)return Sr.error("Numeric branch labels must be integer values.");if(X){if(Sr.checkSubtype(X,ti(Jr)))return null}else X=ti(Jr);if(ve[String(Jr)]!==void 0)return Sr.error("Branch labels must be unique.");ve[String(Jr)]=we.length}let Br=D.parse(vr,Mt,ie);if(!Br)return null;ie=ie||Br.type,we.push(Br)}let We=D.parse(S[1],1,Yt);if(!We)return null;let ut=D.parse(S[S.length-1],S.length-1,ie);return ut?We.type.kind!=="value"&&D.concat(1).checkSubtype(X,We.type)?null:new Zr(X,ie,We,ve,we,ut):null}evaluate(S){let D=this.input.evaluate(S);return(ti(D)===this.inputType&&this.outputs[this.cases[D]]||this.otherwise).evaluate(S)}eachChild(S){S(this.input),this.outputs.forEach(S),S(this.otherwise)}outputDefined(){return this.outputs.every(S=>S.outputDefined())&&this.otherwise.outputDefined()}}class Ai{constructor(S,D,X){this.type=S,this.branches=D,this.otherwise=X}static parse(S,D){if(S.length<4)return D.error(`Expected at least 3 arguments, but found only ${S.length-1}.`);if(S.length%2!=0)return D.error("Expected an odd number of arguments.");let X;D.expectedType&&D.expectedType.kind!=="value"&&(X=D.expectedType);let ie=[];for(let we=1;weD.outputDefined())&&this.otherwise.outputDefined()}}class Qi{constructor(S,D,X,ie){this.type=S,this.input=D,this.beginIndex=X,this.endIndex=ie}static parse(S,D){if(S.length<=2||S.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let X=D.parse(S[1],1,Yt),ie=D.parse(S[2],2,st);if(!X||!ie)return null;if(!ct(X.type,[xe(Yt),Ue,Yt]))return D.error(`Expected first argument to be of type array or string, but found ${Oe(X.type)} instead`);if(S.length===4){let ve=D.parse(S[3],3,st);return ve?new Qi(X.type,X,ie,ve):null}return new Qi(X.type,X,ie)}evaluate(S){let D=this.input.evaluate(S),X=this.beginIndex.evaluate(S),ie;if(this.endIndex&&(ie=this.endIndex.evaluate(S)),ge(D,["string"]))return[...D].slice(X,ie).join("");if(ge(D,["array"]))return D.slice(X,ie);throw new oi(`Expected first argument to be of type array or string, but found ${Oe(ti(D))} instead.`)}eachChild(S){S(this.input),S(this.beginIndex),this.endIndex&&S(this.endIndex)}outputDefined(){return!1}}function ni(I,S){let D=I.length-1,X,ie,ve=0,we=D,We=0;for(;ve<=we;)if(We=Math.floor((ve+we)/2),X=I[We],ie=I[We+1],X<=S){if(We===D||SS))throw new oi("Input is not a number.");we=We-1}return 0}class Zi{constructor(S,D,X){this.type=S,this.input=D,this.labels=[],this.outputs=[];for(let[ie,ve]of X)this.labels.push(ie),this.outputs.push(ve)}static parse(S,D){if(S.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return D.error("Expected an even number of arguments.");let X=D.parse(S[1],1,st);if(!X)return null;let ie=[],ve=null;D.expectedType&&D.expectedType.kind!=="value"&&(ve=D.expectedType);for(let we=1;we=We)return D.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Mt);let vr=D.parse(ut,$t,ve);if(!vr)return null;ve=ve||vr.type,ie.push([We,vr])}return new Zi(ve,X,ie)}evaluate(S){let D=this.labels,X=this.outputs;if(D.length===1)return X[0].evaluate(S);let ie=this.input.evaluate(S);if(ie<=D[0])return X[0].evaluate(S);let ve=D.length;return ie>=D[ve-1]?X[ve-1].evaluate(S):X[ni(D,ie)].evaluate(S)}eachChild(S){S(this.input);for(let D of this.outputs)S(D)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function aa(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}var Mn=Un;function Un(I,S,D,X){this.cx=3*I,this.bx=3*(D-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(X-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=S,this.p2x=D,this.p2y=X}Un.prototype={sampleCurveX:function(I){return((this.ax*I+this.bx)*I+this.cx)*I},sampleCurveY:function(I){return((this.ay*I+this.by)*I+this.cy)*I},sampleCurveDerivativeX:function(I){return(3*this.ax*I+2*this.bx)*I+this.cx},solveCurveX:function(I,S){if(S===void 0&&(S=1e-6),I<0)return 0;if(I>1)return 1;for(var D=I,X=0;X<8;X++){var ie=this.sampleCurveX(D)-I;if(Math.abs(ie)ie?we=D:We=D,D=.5*(We-we)+we;return D},solve:function(I,S){return this.sampleCurveY(this.solveCurveX(I,S))}};var Ga=aa(Mn);function ma(I,S,D){return I+D*(S-I)}function oa(I,S,D){return I.map((X,ie)=>ma(X,S[ie],D))}let ka={number:ma,color:function(I,S,D,X="rgb"){switch(X){case"rgb":{let[ie,ve,we,We]=oa(I.rgb,S.rgb,D);return new Wt(ie,ve,we,We,!1)}case"hcl":{let[ie,ve,we,We]=I.hcl,[ut,Mt,$t,vr]=S.hcl,Sr,Br;if(isNaN(ie)||isNaN(ut))isNaN(ie)?isNaN(ut)?Sr=NaN:(Sr=ut,we!==1&&we!==0||(Br=Mt)):(Sr=ie,$t!==1&&$t!==0||(Br=ve));else{let Za=ut-ie;ut>ie&&Za>180?Za-=360:ut180&&(Za+=360),Sr=ie+D*Za}let[Jr,li,Hi,cn]=function([Za,Rn,La,So]){return Za=isNaN(Za)?0:Za*Dr,Ci([La,Math.cos(Za)*Rn,Math.sin(Za)*Rn,So])}([Sr,Br!=null?Br:ma(ve,Mt,D),ma(we,$t,D),ma(We,vr,D)]);return new Wt(Jr,li,Hi,cn,!1)}case"lab":{let[ie,ve,we,We]=Ci(oa(I.lab,S.lab,D));return new Wt(ie,ve,we,We,!1)}}},array:oa,padding:function(I,S,D){return new Ir(oa(I.values,S.values,D))},variableAnchorOffsetCollection:function(I,S,D){let X=I.values,ie=S.values;if(X.length!==ie.length)throw new oi(`Cannot interpolate values of different length. from: ${I.toString()}, to: ${S.toString()}`);let ve=[];for(let we=0;wetypeof $t!="number"||$t<0||$t>1))return D.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);ie={name:"cubic-bezier",controlPoints:Mt}}}if(S.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return D.error("Expected an even number of arguments.");if(ve=D.parse(ve,2,st),!ve)return null;let We=[],ut=null;X==="interpolate-hcl"||X==="interpolate-lab"?ut=$e:D.expectedType&&D.expectedType.kind!=="value"&&(ut=D.expectedType);for(let Mt=0;Mt=$t)return D.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Sr);let Jr=D.parse(vr,Br,ut);if(!Jr)return null;ut=ut||Jr.type,We.push([$t,Jr])}return fe(ut,st)||fe(ut,$e)||fe(ut,br)||fe(ut,Ie)||fe(ut,xe(st))?new so(ut,X,ie,ve,We):D.error(`Type ${Oe(ut)} is not interpolatable.`)}evaluate(S){let D=this.labels,X=this.outputs;if(D.length===1)return X[0].evaluate(S);let ie=this.input.evaluate(S);if(ie<=D[0])return X[0].evaluate(S);let ve=D.length;if(ie>=D[ve-1])return X[ve-1].evaluate(S);let we=ni(D,ie),We=so.interpolationFactor(this.interpolation,ie,D[we],D[we+1]),ut=X[we].evaluate(S),Mt=X[we+1].evaluate(S);switch(this.operator){case"interpolate":return ka[this.type.kind](ut,Mt,We);case"interpolate-hcl":return ka.color(ut,Mt,We,"hcl");case"interpolate-lab":return ka.color(ut,Mt,We,"lab")}}eachChild(S){S(this.input);for(let D of this.outputs)S(D)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function Kr(I,S,D,X){let ie=X-D,ve=I-D;return ie===0?0:S===1?ve/ie:(Math.pow(S,ve)-1)/(Math.pow(S,ie)-1)}class Ia{constructor(S,D){this.type=S,this.args=D}static parse(S,D){if(S.length<2)return D.error("Expectected at least one argument.");let X=null,ie=D.expectedType;ie&&ie.kind!=="value"&&(X=ie);let ve=[];for(let We of S.slice(1)){let ut=D.parse(We,1+ve.length,X,void 0,{typeAnnotation:"omit"});if(!ut)return null;X=X||ut.type,ve.push(ut)}if(!X)throw new Error("No output type");let we=ie&&ve.some(We=>De(ie,We.type));return new Ia(we?Yt:X,ve)}evaluate(S){let D,X=null,ie=0;for(let ve of this.args)if(ie++,X=ve.evaluate(S),X&&X instanceof yi&&!X.available&&(D||(D=X.name),X=null,ie===this.args.length&&(X=D)),X!==null)break;return X}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}function Yo(I,S){return I==="=="||I==="!="?S.kind==="boolean"||S.kind==="string"||S.kind==="number"||S.kind==="null"||S.kind==="value":S.kind==="string"||S.kind==="number"||S.kind==="value"}function fa(I,S,D,X){return X.compare(S,D)===0}function kn(I,S,D){let X=I!=="=="&&I!=="!=";return class TWe{constructor(ve,we,We){this.type=rt,this.lhs=ve,this.rhs=we,this.collator=We,this.hasUntypedArgument=ve.type.kind==="value"||we.type.kind==="value"}static parse(ve,we){if(ve.length!==3&&ve.length!==4)return we.error("Expected two or three arguments.");let We=ve[0],ut=we.parse(ve[1],1,Yt);if(!ut)return null;if(!Yo(We,ut.type))return we.concat(1).error(`"${We}" comparisons are not supported for type '${Oe(ut.type)}'.`);let Mt=we.parse(ve[2],2,Yt);if(!Mt)return null;if(!Yo(We,Mt.type))return we.concat(2).error(`"${We}" comparisons are not supported for type '${Oe(Mt.type)}'.`);if(ut.type.kind!==Mt.type.kind&&ut.type.kind!=="value"&&Mt.type.kind!=="value")return we.error(`Cannot compare types '${Oe(ut.type)}' and '${Oe(Mt.type)}'.`);X&&(ut.type.kind==="value"&&Mt.type.kind!=="value"?ut=new an(Mt.type,[ut]):ut.type.kind!=="value"&&Mt.type.kind==="value"&&(Mt=new an(ut.type,[Mt])));let $t=null;if(ve.length===4){if(ut.type.kind!=="string"&&Mt.type.kind!=="string"&&ut.type.kind!=="value"&&Mt.type.kind!=="value")return we.error("Cannot use collator to compare non-string types.");if($t=we.parse(ve[3],3,hr),!$t)return null}return new TWe(ut,Mt,$t)}evaluate(ve){let we=this.lhs.evaluate(ve),We=this.rhs.evaluate(ve);if(X&&this.hasUntypedArgument){let ut=ti(we),Mt=ti(We);if(ut.kind!==Mt.kind||ut.kind!=="string"&&ut.kind!=="number")throw new oi(`Expected arguments for "${I}" to be (string, string) or (number, number), but found (${ut.kind}, ${Mt.kind}) instead.`)}if(this.collator&&!X&&this.hasUntypedArgument){let ut=ti(we),Mt=ti(We);if(ut.kind!=="string"||Mt.kind!=="string")return S(ve,we,We)}return this.collator?D(ve,we,We,this.collator.evaluate(ve)):S(ve,we,We)}eachChild(ve){ve(this.lhs),ve(this.rhs),this.collator&&ve(this.collator)}outputDefined(){return!0}}}let Ta=kn("==",function(I,S,D){return S===D},fa),ys=kn("!=",function(I,S,D){return S!==D},function(I,S,D,X){return!fa(0,S,D,X)}),uo=kn("<",function(I,S,D){return S",function(I,S,D){return S>D},function(I,S,D,X){return X.compare(S,D)>0}),$a=kn("<=",function(I,S,D){return S<=D},function(I,S,D,X){return X.compare(S,D)<=0}),fo=kn(">=",function(I,S,D){return S>=D},function(I,S,D,X){return X.compare(S,D)>=0});class mn{constructor(S,D,X){this.type=hr,this.locale=X,this.caseSensitive=S,this.diacriticSensitive=D}static parse(S,D){if(S.length!==2)return D.error("Expected one argument.");let X=S[1];if(typeof X!="object"||Array.isArray(X))return D.error("Collator options argument must be an object.");let ie=D.parse(X["case-sensitive"]!==void 0&&X["case-sensitive"],1,rt);if(!ie)return null;let ve=D.parse(X["diacritic-sensitive"]!==void 0&&X["diacritic-sensitive"],1,rt);if(!ve)return null;let we=null;return X.locale&&(we=D.parse(X.locale,1,Ue),!we)?null:new mn(ie,ve,we)}evaluate(S){return new _r(this.caseSensitive.evaluate(S),this.diacriticSensitive.evaluate(S),this.locale?this.locale.evaluate(S):null)}eachChild(S){S(this.caseSensitive),S(this.diacriticSensitive),this.locale&&S(this.locale)}outputDefined(){return!1}}class ra{constructor(S,D,X,ie,ve){this.type=Ue,this.number=S,this.locale=D,this.currency=X,this.minFractionDigits=ie,this.maxFractionDigits=ve}static parse(S,D){if(S.length!==3)return D.error("Expected two arguments.");let X=D.parse(S[1],1,st);if(!X)return null;let ie=S[2];if(typeof ie!="object"||Array.isArray(ie))return D.error("NumberFormat options argument must be an object.");let ve=null;if(ie.locale&&(ve=D.parse(ie.locale,1,Ue),!ve))return null;let we=null;if(ie.currency&&(we=D.parse(ie.currency,1,Ue),!we))return null;let We=null;if(ie["min-fraction-digits"]&&(We=D.parse(ie["min-fraction-digits"],1,st),!We))return null;let ut=null;return ie["max-fraction-digits"]&&(ut=D.parse(ie["max-fraction-digits"],1,st),!ut)?null:new ra(X,ve,we,We,ut)}evaluate(S){return new Intl.NumberFormat(this.locale?this.locale.evaluate(S):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(S):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(S):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(S):void 0}).format(this.number.evaluate(S))}eachChild(S){S(this.number),this.locale&&S(this.locale),this.currency&&S(this.currency),this.minFractionDigits&&S(this.minFractionDigits),this.maxFractionDigits&&S(this.maxFractionDigits)}outputDefined(){return!1}}class wa{constructor(S){this.type=yr,this.sections=S}static parse(S,D){if(S.length<2)return D.error("Expected at least one argument.");let X=S[1];if(!Array.isArray(X)&&typeof X=="object")return D.error("First argument must be an image or text section.");let ie=[],ve=!1;for(let we=1;we<=S.length-1;++we){let We=S[we];if(ve&&typeof We=="object"&&!Array.isArray(We)){ve=!1;let ut=null;if(We["font-scale"]&&(ut=D.parse(We["font-scale"],1,st),!ut))return null;let Mt=null;if(We["text-font"]&&(Mt=D.parse(We["text-font"],1,xe(Ue)),!Mt))return null;let $t=null;if(We["text-color"]&&($t=D.parse(We["text-color"],1,$e),!$t))return null;let vr=ie[ie.length-1];vr.scale=ut,vr.font=Mt,vr.textColor=$t}else{let ut=D.parse(S[we],1,Yt);if(!ut)return null;let Mt=ut.type.kind;if(Mt!=="string"&&Mt!=="value"&&Mt!=="null"&&Mt!=="resolvedImage")return D.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ve=!0,ie.push({content:ut,scale:null,font:null,textColor:null})}}return new wa(ie)}evaluate(S){return new Ur(this.sections.map(D=>{let X=D.content.evaluate(S);return ti(X)===Ut?new Lr("",X,null,null,null):new Lr(en(X),null,D.scale?D.scale.evaluate(S):null,D.font?D.font.evaluate(S).join(","):null,D.textColor?D.textColor.evaluate(S):null)}))}eachChild(S){for(let D of this.sections)S(D.content),D.scale&&S(D.scale),D.font&&S(D.font),D.textColor&&S(D.textColor)}outputDefined(){return!1}}class ws{constructor(S){this.type=Ut,this.input=S}static parse(S,D){if(S.length!==2)return D.error("Expected two arguments.");let X=D.parse(S[1],1,Ue);return X?new ws(X):D.error("No image name provided.")}evaluate(S){let D=this.input.evaluate(S),X=yi.fromString(D);return X&&S.availableImages&&(X.available=S.availableImages.indexOf(D)>-1),X}eachChild(S){S(this.input)}outputDefined(){return!1}}class Co{constructor(S){this.type=st,this.input=S}static parse(S,D){if(S.length!==2)return D.error(`Expected 1 argument, but found ${S.length-1} instead.`);let X=D.parse(S[1],1);return X?X.type.kind!=="array"&&X.type.kind!=="string"&&X.type.kind!=="value"?D.error(`Expected argument of type string or array, but found ${Oe(X.type)} instead.`):new Co(X):null}evaluate(S){let D=this.input.evaluate(S);if(typeof D=="string")return[...D].length;if(Array.isArray(D))return D.length;throw new oi(`Expected value to be of type string or array, but found ${Oe(ti(D))} instead.`)}eachChild(S){S(this.input)}outputDefined(){return!1}}let Po=8192;function ji(I,S){let D=(180+I[0])/360,X=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+I[1]*Math.PI/360)))/360,ie=Math.pow(2,S.z);return[Math.round(D*ie*Po),Math.round(X*ie*Po)]}function gn(I,S){let D=Math.pow(2,S.z);return[(ie=(I[0]/Po+S.x)/D,360*ie-180),(X=(I[1]/Po+S.y)/D,360/Math.PI*Math.atan(Math.exp((180-360*X)*Math.PI/180))-90)];var X,ie}function Ps(I,S){I[0]=Math.min(I[0],S[0]),I[1]=Math.min(I[1],S[1]),I[2]=Math.max(I[2],S[0]),I[3]=Math.max(I[3],S[1])}function Ha(I,S){return!(I[0]<=S[0]||I[2]>=S[2]||I[1]<=S[1]||I[3]>=S[3])}function Sn(I,S,D){let X=I[0]-S[0],ie=I[1]-S[1],ve=I[0]-D[0],we=I[1]-D[1];return X*we-ve*ie==0&&X*ve<=0&&ie*we<=0}function ao(I,S,D,X){return(ie=[X[0]-D[0],X[1]-D[1]])[0]*(ve=[S[0]-I[0],S[1]-I[1]])[1]-ie[1]*ve[0]!=0&&!(!Qa(I,S,D,X)||!Qa(D,X,I,S));var ie,ve}function Ba(I,S,D){for(let X of D)for(let ie=0;ie(ie=I)[1]!=(we=We[ut+1])[1]>ie[1]&&ie[0]<(we[0]-ve[0])*(ie[1]-ve[1])/(we[1]-ve[1])+ve[0]&&(X=!X)}var ie,ve,we;return X}function Qo(I,S){for(let D of S)if(Ko(I,D))return!0;return!1}function Wi(I,S){for(let D of I)if(!Ko(D,S))return!1;for(let D=0;D0&&We<0||we<0&&We>0}function vn(I,S,D){let X=[];for(let ie=0;ieD[2]){let ie=.5*X,ve=I[0]-D[0]>ie?-X:D[0]-I[0]>ie?X:0;ve===0&&(ve=I[0]-D[2]>ie?-X:D[2]-I[0]>ie?X:0),I[0]+=ve}Ps(S,I)}function vo(I,S,D,X){let ie=Math.pow(2,X.z)*Po,ve=[X.x*Po,X.y*Po],we=[];for(let We of I)for(let ut of We){let Mt=[ut.x+ve[0],ut.y+ve[1]];la(Mt,S,D,ie),we.push(Mt)}return we}function As(I,S,D,X){let ie=Math.pow(2,X.z)*Po,ve=[X.x*Po,X.y*Po],we=[];for(let ut of I){let Mt=[];for(let $t of ut){let vr=[$t.x+ve[0],$t.y+ve[1]];Ps(S,vr),Mt.push(vr)}we.push(Mt)}if(S[2]-S[0]<=ie/2){(We=S)[0]=We[1]=1/0,We[2]=We[3]=-1/0;for(let ut of we)for(let Mt of ut)la(Mt,S,D,ie)}var We;return we}class ps{constructor(S,D){this.type=rt,this.geojson=S,this.geometries=D}static parse(S,D){if(S.length!==2)return D.error(`'within' expression requires exactly one argument, but found ${S.length-1} instead.`);if(Vi(S[1])){let X=S[1];if(X.type==="FeatureCollection"){let ie=[];for(let ve of X.features){let{type:we,coordinates:We}=ve.geometry;we==="Polygon"&&ie.push(We),we==="MultiPolygon"&&ie.push(...We)}if(ie.length)return new ps(X,{type:"MultiPolygon",coordinates:ie})}else if(X.type==="Feature"){let ie=X.geometry.type;if(ie==="Polygon"||ie==="MultiPolygon")return new ps(X,X.geometry)}else if(X.type==="Polygon"||X.type==="MultiPolygon")return new ps(X,X)}return D.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(D,X){let ie=[1/0,1/0,-1/0,-1/0],ve=[1/0,1/0,-1/0,-1/0],we=D.canonicalID();if(X.type==="Polygon"){let We=vn(X.coordinates,ve,we),ut=vo(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Ko(Mt,We))return!1}if(X.type==="MultiPolygon"){let We=da(X.coordinates,ve,we),ut=vo(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Qo(Mt,We))return!1}return!0}(S,this.geometries);if(S.geometryType()==="LineString")return function(D,X){let ie=[1/0,1/0,-1/0,-1/0],ve=[1/0,1/0,-1/0,-1/0],we=D.canonicalID();if(X.type==="Polygon"){let We=vn(X.coordinates,ve,we),ut=As(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Wi(Mt,We))return!1}if(X.type==="MultiPolygon"){let We=da(X.coordinates,ve,we),ut=As(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Sa(Mt,We))return!1}return!0}(S,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let co=class{constructor(I=[],S=(D,X)=>DX?1:0){if(this.data=I,this.length=this.data.length,this.compare=S,this.length>0)for(let D=(this.length>>1)-1;D>=0;D--)this._down(D)}push(I){this.data.push(I),this._up(this.length++)}pop(){if(this.length===0)return;let I=this.data[0],S=this.data.pop();return--this.length>0&&(this.data[0]=S,this._down(0)),I}peek(){return this.data[0]}_up(I){let{data:S,compare:D}=this,X=S[I];for(;I>0;){let ie=I-1>>1,ve=S[ie];if(D(X,ve)>=0)break;S[I]=ve,I=ie}S[I]=X}_down(I){let{data:S,compare:D}=this,X=this.length>>1,ie=S[I];for(;I=0)break;S[I]=S[ve],I=ve}S[I]=ie}};function mo(I,S,D,X,ie){No(I,S,D,X||I.length-1,ie||Go)}function No(I,S,D,X,ie){for(;X>D;){if(X-D>600){var ve=X-D+1,we=S-D+1,We=Math.log(ve),ut=.5*Math.exp(2*We/3),Mt=.5*Math.sqrt(We*ut*(ve-ut)/ve)*(we-ve/2<0?-1:1);No(I,S,Math.max(D,Math.floor(S-we*ut/ve+Mt)),Math.min(X,Math.floor(S+(ve-we)*ut/ve+Mt)),ie)}var $t=I[S],vr=D,Sr=X;for(jn(I,D,S),ie(I[X],$t)>0&&jn(I,D,X);vr0;)Sr--}ie(I[D],$t)===0?jn(I,D,Sr):jn(I,++Sr,X),Sr<=S&&(D=Sr+1),S<=Sr&&(X=Sr-1)}}function jn(I,S,D){var X=I[S];I[S]=I[D],I[D]=X}function Go(I,S){return IS?1:0}function Ys(I,S){if(I.length<=1)return[I];let D=[],X,ie;for(let ve of I){let we=Ns(ve);we!==0&&(ve.area=Math.abs(we),ie===void 0&&(ie=we<0),ie===we<0?(X&&D.push(X),X=[ve]):X.push(ve))}if(X&&D.push(X),S>1)for(let ve=0;ve1?(Mt=S[ut+1][0],$t=S[ut+1][1]):Br>0&&(Mt+=vr/this.kx*Br,$t+=Sr/this.ky*Br)),vr=this.wrap(D[0]-Mt)*this.kx,Sr=(D[1]-$t)*this.ky;let Jr=vr*vr+Sr*Sr;Jr180;)S-=360;return S}}function _n(I,S){return S[0]-I[0]}function Vn(I){return I[1]-I[0]+1}function wo(I,S){return I[1]>=I[0]&&I[1]I[1])return[null,null];let D=Vn(I);if(S){if(D===2)return[I,null];let ie=Math.floor(D/2);return[[I[0],I[0]+ie],[I[0]+ie,I[1]]]}if(D===1)return[I,null];let X=Math.floor(D/2)-1;return[[I[0],I[0]+X],[I[0]+X+1,I[1]]]}function Xn(I,S){if(!wo(S,I.length))return[1/0,1/0,-1/0,-1/0];let D=[1/0,1/0,-1/0,-1/0];for(let X=S[0];X<=S[1];++X)Ps(D,I[X]);return D}function un(I){let S=[1/0,1/0,-1/0,-1/0];for(let D of I)for(let X of D)Ps(S,X);return S}function $n(I){return I[0]!==-1/0&&I[1]!==-1/0&&I[2]!==1/0&&I[3]!==1/0}function Ka(I,S,D){if(!$n(I)||!$n(S))return NaN;let X=0,ie=0;return I[2]S[2]&&(X=I[0]-S[2]),I[1]>S[3]&&(ie=I[1]-S[3]),I[3]=X)return X;if(Ha(ie,ve)){if(es(I,S))return 0}else if(es(S,I))return 0;let we=1/0;for(let We of I)for(let ut=0,Mt=We.length,$t=Mt-1;ut0;){let ut=we.pop();if(ut[0]>=ve)continue;let Mt=ut[1],$t=S?50:100;if(Vn(Mt)<=$t){if(!wo(Mt,I.length))return NaN;if(S){let vr=sa(I,Mt,D,X);if(isNaN(vr)||vr===0)return vr;ve=Math.min(ve,vr)}else for(let vr=Mt[0];vr<=Mt[1];++vr){let Sr=eo(I[vr],D,X);if(ve=Math.min(ve,Sr),ve===0)return 0}}else{let vr=Ra(Mt,S);tn(we,ve,X,I,We,vr[0]),tn(we,ve,X,I,We,vr[1])}}return ve}function yo(I,S,D,X,ie,ve=1/0){let we=Math.min(ve,ie.distance(I[0],D[0]));if(we===0)return we;let We=new co([[0,[0,I.length-1],[0,D.length-1]]],_n);for(;We.length>0;){let ut=We.pop();if(ut[0]>=we)continue;let Mt=ut[1],$t=ut[2],vr=S?50:100,Sr=X?50:100;if(Vn(Mt)<=vr&&Vn($t)<=Sr){if(!wo(Mt,I.length)&&wo($t,D.length))return NaN;let Br;if(S&&X)Br=Ja(I,Mt,D,$t,ie),we=Math.min(we,Br);else if(S&&!X){let Jr=I.slice(Mt[0],Mt[1]+1);for(let li=$t[0];li<=$t[1];++li)if(Br=qn(D[li],Jr,ie),we=Math.min(we,Br),we===0)return we}else if(!S&&X){let Jr=D.slice($t[0],$t[1]+1);for(let li=Mt[0];li<=Mt[1];++li)if(Br=qn(I[li],Jr,ie),we=Math.min(we,Br),we===0)return we}else Br=lo(I,Mt,D,$t,ie),we=Math.min(we,Br)}else{let Br=Ra(Mt,S),Jr=Ra($t,X);Pa(We,we,ie,I,D,Br[0],Jr[0]),Pa(We,we,ie,I,D,Br[0],Jr[1]),Pa(We,we,ie,I,D,Br[1],Jr[0]),Pa(We,we,ie,I,D,Br[1],Jr[1])}}return we}function Jo(I){return I.type==="MultiPolygon"?I.coordinates.map(S=>({type:"Polygon",coordinates:S})):I.type==="MultiLineString"?I.coordinates.map(S=>({type:"LineString",coordinates:S})):I.type==="MultiPoint"?I.coordinates.map(S=>({type:"Point",coordinates:S})):[I]}class Ao{constructor(S,D){this.type=st,this.geojson=S,this.geometries=D}static parse(S,D){if(S.length!==2)return D.error(`'distance' expression requires exactly one argument, but found ${S.length-1} instead.`);if(Vi(S[1])){let X=S[1];if(X.type==="FeatureCollection")return new Ao(X,X.features.map(ie=>Jo(ie.geometry)).flat());if(X.type==="Feature")return new Ao(X,Jo(X.geometry));if("type"in X&&"coordinates"in X)return new Ao(X,Jo(X))}return D.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(D,X){let ie=D.geometry(),ve=ie.flat().map(ut=>gn([ut.x,ut.y],D.canonical));if(ie.length===0)return NaN;let we=new Ya(ve[0][1]),We=1/0;for(let ut of X){switch(ut.type){case"Point":We=Math.min(We,yo(ve,!1,[ut.coordinates],!1,we,We));break;case"LineString":We=Math.min(We,yo(ve,!1,ut.coordinates,!0,we,We));break;case"Polygon":We=Math.min(We,to(ve,!1,ut.coordinates,we,We))}if(We===0)return We}return We}(S,this.geometries);if(S.geometryType()==="LineString")return function(D,X){let ie=D.geometry(),ve=ie.flat().map(ut=>gn([ut.x,ut.y],D.canonical));if(ie.length===0)return NaN;let we=new Ya(ve[0][1]),We=1/0;for(let ut of X){switch(ut.type){case"Point":We=Math.min(We,yo(ve,!0,[ut.coordinates],!1,we,We));break;case"LineString":We=Math.min(We,yo(ve,!0,ut.coordinates,!0,we,We));break;case"Polygon":We=Math.min(We,to(ve,!0,ut.coordinates,we,We))}if(We===0)return We}return We}(S,this.geometries);if(S.geometryType()==="Polygon")return function(D,X){let ie=D.geometry();if(ie.length===0||ie[0].length===0)return NaN;let ve=Ys(ie,0).map(ut=>ut.map(Mt=>Mt.map($t=>gn([$t.x,$t.y],D.canonical)))),we=new Ya(ve[0][0][0][1]),We=1/0;for(let ut of X)for(let Mt of ve){switch(ut.type){case"Point":We=Math.min(We,to([ut.coordinates],!1,Mt,we,We));break;case"LineString":We=Math.min(We,to(ut.coordinates,!0,Mt,we,We));break;case"Polygon":We=Math.min(We,Na(Mt,ut.coordinates,we,We))}if(We===0)return We}return We}(S,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let Dn={"==":Ta,"!=":ys,">":ls,"<":uo,">=":fo,"<=":$a,array:an,at:tr,boolean:an,case:Ai,coalesce:Ia,collator:mn,format:wa,image:ws,in:pr,"index-of":gr,interpolate:so,"interpolate-hcl":so,"interpolate-lab":so,length:Co,let:Xr,literal:Yr,match:Zr,number:an,"number-format":ra,object:an,slice:Qi,step:Zi,string:an,"to-boolean":Fi,"to-color":Fi,"to-number":Fi,"to-string":Fi,var:ft,within:ps,distance:Ao};class _a{constructor(S,D,X,ie){this.name=S,this.type=D,this._evaluate=X,this.args=ie}evaluate(S){return this._evaluate(S,this.args)}eachChild(S){this.args.forEach(S)}outputDefined(){return!1}static parse(S,D){let X=S[0],ie=_a.definitions[X];if(!ie)return D.error(`Unknown expression "${X}". If you wanted a literal array, use ["literal", [...]].`,0);let ve=Array.isArray(ie)?ie[0]:ie.type,we=Array.isArray(ie)?[[ie[1],ie[2]]]:ie.overloads,We=we.filter(([Mt])=>!Array.isArray(Mt)||Mt.length===S.length-1),ut=null;for(let[Mt,$t]of We){ut=new xi(D.registry,Ho,D.path,null,D.scope);let vr=[],Sr=!1;for(let Br=1;Br{return Sr=vr,Array.isArray(Sr)?`(${Sr.map(Oe).join(", ")})`:`(${Oe(Sr.type)}...)`;var Sr}).join(" | "),$t=[];for(let vr=1;vr{D=S?D&&Ho(X):D&&X instanceof Yr}),!!D&&Wa(I)&&ts(I,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Wa(I){if(I instanceof _a&&(I.name==="get"&&I.args.length===1||I.name==="feature-state"||I.name==="has"&&I.args.length===1||I.name==="properties"||I.name==="geometry-type"||I.name==="id"||/^filter-/.test(I.name))||I instanceof ps||I instanceof Ao)return!1;let S=!0;return I.eachChild(D=>{S&&!Wa(D)&&(S=!1)}),S}function To(I){if(I instanceof _a&&I.name==="feature-state")return!1;let S=!0;return I.eachChild(D=>{S&&!To(D)&&(S=!1)}),S}function ts(I,S){if(I instanceof _a&&S.indexOf(I.name)>=0)return!1;let D=!0;return I.eachChild(X=>{D&&!ts(X,S)&&(D=!1)}),D}function Wo(I){return{result:"success",value:I}}function qa(I){return{result:"error",value:I}}function ln(I){return I["property-type"]==="data-driven"||I["property-type"]==="cross-faded-data-driven"}function Bo(I){return!!I.expression&&I.expression.parameters.indexOf("zoom")>-1}function ko(I){return!!I.expression&&I.expression.interpolated}function oo(I){return I instanceof Number?"number":I instanceof String?"string":I instanceof Boolean?"boolean":Array.isArray(I)?"array":I===null?"null":typeof I}function za(I){return typeof I=="object"&&I!==null&&!Array.isArray(I)}function ea(I){return I}function rs(I,S){let D=S.type==="color",X=I.stops&&typeof I.stops[0][0]=="object",ie=X||!(X||I.property!==void 0),ve=I.type||(ko(S)?"exponential":"interval");if(D||S.type==="padding"){let $t=D?Wt.parse:Ir.parse;(I=Ae({},I)).stops&&(I.stops=I.stops.map(vr=>[vr[0],$t(vr[1])])),I.default=$t(I.default?I.default:S.default)}if(I.colorSpace&&(we=I.colorSpace)!=="rgb"&&we!=="hcl"&&we!=="lab")throw new Error(`Unknown color space: "${I.colorSpace}"`);var we;let We,ut,Mt;if(ve==="exponential")We=fl;else if(ve==="interval")We=Ds;else if(ve==="categorical"){We=us,ut=Object.create(null);for(let $t of I.stops)ut[$t[0]]=$t[1];Mt=typeof I.stops[0][0]}else{if(ve!=="identity")throw new Error(`Unknown function type "${ve}"`);We=as}if(X){let $t={},vr=[];for(let Jr=0;JrJr[0]),evaluate:({zoom:Jr},li)=>fl({stops:Sr,base:I.base},S,Jr).evaluate(Jr,li)}}if(ie){let $t=ve==="exponential"?{name:"exponential",base:I.base!==void 0?I.base:1}:null;return{kind:"camera",interpolationType:$t,interpolationFactor:so.interpolationFactor.bind(void 0,$t),zoomStops:I.stops.map(vr=>vr[0]),evaluate:({zoom:vr})=>We(I,S,vr,ut,Mt)}}return{kind:"source",evaluate($t,vr){let Sr=vr&&vr.properties?vr.properties[I.property]:void 0;return Sr===void 0?$s(I.default,S.default):We(I,S,Sr,ut,Mt)}}}function $s(I,S,D){return I!==void 0?I:S!==void 0?S:D!==void 0?D:void 0}function us(I,S,D,X,ie){return $s(typeof D===ie?X[D]:void 0,I.default,S.default)}function Ds(I,S,D){if(oo(D)!=="number")return $s(I.default,S.default);let X=I.stops.length;if(X===1||D<=I.stops[0][0])return I.stops[0][1];if(D>=I.stops[X-1][0])return I.stops[X-1][1];let ie=ni(I.stops.map(ve=>ve[0]),D);return I.stops[ie][1]}function fl(I,S,D){let X=I.base!==void 0?I.base:1;if(oo(D)!=="number")return $s(I.default,S.default);let ie=I.stops.length;if(ie===1||D<=I.stops[0][0])return I.stops[0][1];if(D>=I.stops[ie-1][0])return I.stops[ie-1][1];let ve=ni(I.stops.map($t=>$t[0]),D),we=function($t,vr,Sr,Br){let Jr=Br-Sr,li=$t-Sr;return Jr===0?0:vr===1?li/Jr:(Math.pow(vr,li)-1)/(Math.pow(vr,Jr)-1)}(D,X,I.stops[ve][0],I.stops[ve+1][0]),We=I.stops[ve][1],ut=I.stops[ve+1][1],Mt=ka[S.type]||ea;return typeof We.evaluate=="function"?{evaluate(...$t){let vr=We.evaluate.apply(void 0,$t),Sr=ut.evaluate.apply(void 0,$t);if(vr!==void 0&&Sr!==void 0)return Mt(vr,Sr,we,I.colorSpace)}}:Mt(We,ut,we,I.colorSpace)}function as(I,S,D){switch(S.type){case"color":D=Wt.parse(D);break;case"formatted":D=Ur.fromString(D.toString());break;case"resolvedImage":D=yi.fromString(D.toString());break;case"padding":D=Ir.parse(D);break;default:oo(D)===S.type||S.type==="enum"&&S.values[D]||(D=void 0)}return $s(D,I.default,S.default)}_a.register(Dn,{error:[{kind:"error"},[Ue],(I,[S])=>{throw new oi(S.evaluate(I))}],typeof:[Ue,[Yt],(I,[S])=>Oe(ti(S.evaluate(I)))],"to-rgba":[xe(st,4),[$e],(I,[S])=>{let[D,X,ie,ve]=S.evaluate(I).rgb;return[255*D,255*X,255*ie,ve]}],rgb:[$e,[st,st,st],Ws],rgba:[$e,[st,st,st,st],Ws],has:{type:rt,overloads:[[[Ue],(I,[S])=>Ca(S.evaluate(I),I.properties())],[[Ue,zt],(I,[S,D])=>Ca(S.evaluate(I),D.evaluate(I))]]},get:{type:Yt,overloads:[[[Ue],(I,[S])=>Es(S.evaluate(I),I.properties())],[[Ue,zt],(I,[S,D])=>Es(S.evaluate(I),D.evaluate(I))]]},"feature-state":[Yt,[Ue],(I,[S])=>Es(S.evaluate(I),I.featureState||{})],properties:[zt,[],I=>I.properties()],"geometry-type":[Ue,[],I=>I.geometryType()],id:[Yt,[],I=>I.id()],zoom:[st,[],I=>I.globals.zoom],"heatmap-density":[st,[],I=>I.globals.heatmapDensity||0],"line-progress":[st,[],I=>I.globals.lineProgress||0],accumulated:[Yt,[],I=>I.globals.accumulated===void 0?null:I.globals.accumulated],"+":[st,Ts(st),(I,S)=>{let D=0;for(let X of S)D+=X.evaluate(I);return D}],"*":[st,Ts(st),(I,S)=>{let D=1;for(let X of S)D*=X.evaluate(I);return D}],"-":{type:st,overloads:[[[st,st],(I,[S,D])=>S.evaluate(I)-D.evaluate(I)],[[st],(I,[S])=>-S.evaluate(I)]]},"/":[st,[st,st],(I,[S,D])=>S.evaluate(I)/D.evaluate(I)],"%":[st,[st,st],(I,[S,D])=>S.evaluate(I)%D.evaluate(I)],ln2:[st,[],()=>Math.LN2],pi:[st,[],()=>Math.PI],e:[st,[],()=>Math.E],"^":[st,[st,st],(I,[S,D])=>Math.pow(S.evaluate(I),D.evaluate(I))],sqrt:[st,[st],(I,[S])=>Math.sqrt(S.evaluate(I))],log10:[st,[st],(I,[S])=>Math.log(S.evaluate(I))/Math.LN10],ln:[st,[st],(I,[S])=>Math.log(S.evaluate(I))],log2:[st,[st],(I,[S])=>Math.log(S.evaluate(I))/Math.LN2],sin:[st,[st],(I,[S])=>Math.sin(S.evaluate(I))],cos:[st,[st],(I,[S])=>Math.cos(S.evaluate(I))],tan:[st,[st],(I,[S])=>Math.tan(S.evaluate(I))],asin:[st,[st],(I,[S])=>Math.asin(S.evaluate(I))],acos:[st,[st],(I,[S])=>Math.acos(S.evaluate(I))],atan:[st,[st],(I,[S])=>Math.atan(S.evaluate(I))],min:[st,Ts(st),(I,S)=>Math.min(...S.map(D=>D.evaluate(I)))],max:[st,Ts(st),(I,S)=>Math.max(...S.map(D=>D.evaluate(I)))],abs:[st,[st],(I,[S])=>Math.abs(S.evaluate(I))],round:[st,[st],(I,[S])=>{let D=S.evaluate(I);return D<0?-Math.round(-D):Math.round(D)}],floor:[st,[st],(I,[S])=>Math.floor(S.evaluate(I))],ceil:[st,[st],(I,[S])=>Math.ceil(S.evaluate(I))],"filter-==":[rt,[Ue,Yt],(I,[S,D])=>I.properties()[S.value]===D.value],"filter-id-==":[rt,[Yt],(I,[S])=>I.id()===S.value],"filter-type-==":[rt,[Ue],(I,[S])=>I.geometryType()===S.value],"filter-<":[rt,[Ue,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X{let D=I.id(),X=S.value;return typeof D==typeof X&&D":[rt,[Ue,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X>ie}],"filter-id->":[rt,[Yt],(I,[S])=>{let D=I.id(),X=S.value;return typeof D==typeof X&&D>X}],"filter-<=":[rt,[Ue,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X<=ie}],"filter-id-<=":[rt,[Yt],(I,[S])=>{let D=I.id(),X=S.value;return typeof D==typeof X&&D<=X}],"filter->=":[rt,[Ue,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X>=ie}],"filter-id->=":[rt,[Yt],(I,[S])=>{let D=I.id(),X=S.value;return typeof D==typeof X&&D>=X}],"filter-has":[rt,[Yt],(I,[S])=>S.value in I.properties()],"filter-has-id":[rt,[],I=>I.id()!==null&&I.id()!==void 0],"filter-type-in":[rt,[xe(Ue)],(I,[S])=>S.value.indexOf(I.geometryType())>=0],"filter-id-in":[rt,[xe(Yt)],(I,[S])=>S.value.indexOf(I.id())>=0],"filter-in-small":[rt,[Ue,xe(Yt)],(I,[S,D])=>D.value.indexOf(I.properties()[S.value])>=0],"filter-in-large":[rt,[Ue,xe(Yt)],(I,[S,D])=>function(X,ie,ve,we){for(;ve<=we;){let We=ve+we>>1;if(ie[We]===X)return!0;ie[We]>X?we=We-1:ve=We+1}return!1}(I.properties()[S.value],D.value,0,D.value.length-1)],all:{type:rt,overloads:[[[rt,rt],(I,[S,D])=>S.evaluate(I)&&D.evaluate(I)],[Ts(rt),(I,S)=>{for(let D of S)if(!D.evaluate(I))return!1;return!0}]]},any:{type:rt,overloads:[[[rt,rt],(I,[S,D])=>S.evaluate(I)||D.evaluate(I)],[Ts(rt),(I,S)=>{for(let D of S)if(D.evaluate(I))return!0;return!1}]]},"!":[rt,[rt],(I,[S])=>!S.evaluate(I)],"is-supported-script":[rt,[Ue],(I,[S])=>{let D=I.globals&&I.globals.isSupportedScript;return!D||D(S.evaluate(I))}],upcase:[Ue,[Ue],(I,[S])=>S.evaluate(I).toUpperCase()],downcase:[Ue,[Ue],(I,[S])=>S.evaluate(I).toLowerCase()],concat:[Ue,Ts(Yt),(I,S)=>S.map(D=>en(D.evaluate(I))).join("")],"resolved-locale":[Ue,[hr],(I,[S])=>S.evaluate(I).resolvedLocale()]});class Ma{constructor(S,D){var X;this.expression=S,this._warningHistory={},this._evaluator=new xn,this._defaultValue=D?(X=D).type==="color"&&za(X.default)?new Wt(0,0,0,0):X.type==="color"?Wt.parse(X.default)||null:X.type==="padding"?Ir.parse(X.default)||null:X.type==="variableAnchorOffsetCollection"?jr.parse(X.default)||null:X.default===void 0?null:X.default:null,this._enumValues=D&&D.type==="enum"?D.values:null}evaluateWithoutErrorHandling(S,D,X,ie,ve,we){return this._evaluator.globals=S,this._evaluator.feature=D,this._evaluator.featureState=X,this._evaluator.canonical=ie,this._evaluator.availableImages=ve||null,this._evaluator.formattedSection=we,this.expression.evaluate(this._evaluator)}evaluate(S,D,X,ie,ve,we){this._evaluator.globals=S,this._evaluator.feature=D||null,this._evaluator.featureState=X||null,this._evaluator.canonical=ie,this._evaluator.availableImages=ve||null,this._evaluator.formattedSection=we||null;try{let We=this.expression.evaluate(this._evaluator);if(We==null||typeof We=="number"&&We!=We)return this._defaultValue;if(this._enumValues&&!(We in this._enumValues))throw new oi(`Expected value to be one of ${Object.keys(this._enumValues).map(ut=>JSON.stringify(ut)).join(", ")}, but found ${JSON.stringify(We)} instead.`);return We}catch(We){return this._warningHistory[We.message]||(this._warningHistory[We.message]=!0,typeof console!="undefined"&&console.warn(We.message)),this._defaultValue}}}function Qs(I){return Array.isArray(I)&&I.length>0&&typeof I[0]=="string"&&I[0]in Dn}function ho(I,S){let D=new xi(Dn,Ho,[],S?function(ie){let ve={color:$e,string:Ue,number:st,enum:Ue,boolean:rt,formatted:yr,padding:br,resolvedImage:Ut,variableAnchorOffsetCollection:Ie};return ie.type==="array"?xe(ve[ie.value]||Yt,ie.length):ve[ie.type]}(S):void 0),X=D.parse(I,void 0,void 0,void 0,S&&S.type==="string"?{typeAnnotation:"coerce"}:void 0);return X?Wo(new Ma(X,S)):qa(D.errors)}class gs{constructor(S,D){this.kind=S,this._styleExpression=D,this.isStateDependent=S!=="constant"&&!To(D.expression)}evaluateWithoutErrorHandling(S,D,X,ie,ve,we){return this._styleExpression.evaluateWithoutErrorHandling(S,D,X,ie,ve,we)}evaluate(S,D,X,ie,ve,we){return this._styleExpression.evaluate(S,D,X,ie,ve,we)}}class Vo{constructor(S,D,X,ie){this.kind=S,this.zoomStops=X,this._styleExpression=D,this.isStateDependent=S!=="camera"&&!To(D.expression),this.interpolationType=ie}evaluateWithoutErrorHandling(S,D,X,ie,ve,we){return this._styleExpression.evaluateWithoutErrorHandling(S,D,X,ie,ve,we)}evaluate(S,D,X,ie,ve,we){return this._styleExpression.evaluate(S,D,X,ie,ve,we)}interpolationFactor(S,D,X){return this.interpolationType?so.interpolationFactor(this.interpolationType,S,D,X):0}}function Do(I,S){let D=ho(I,S);if(D.result==="error")return D;let X=D.value.expression,ie=Wa(X);if(!ie&&!ln(S))return qa([new at("","data expressions not supported")]);let ve=ts(X,["zoom"]);if(!ve&&!Bo(S))return qa([new at("","zoom expressions not supported")]);let we=xs(X);return we||ve?we instanceof at?qa([we]):we instanceof so&&!ko(S)?qa([new at("",'"interpolate" expressions cannot be used with this property')]):Wo(we?new Vo(ie?"camera":"composite",D.value,we.labels,we instanceof so?we.interpolation:void 0):new gs(ie?"constant":"source",D.value)):qa([new at("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Lo{constructor(S,D){this._parameters=S,this._specification=D,Ae(this,rs(this._parameters,this._specification))}static deserialize(S){return new Lo(S._parameters,S._specification)}static serialize(S){return{_parameters:S._parameters,_specification:S._specification}}}function xs(I){let S=null;if(I instanceof Xr)S=xs(I.result);else if(I instanceof Ia){for(let D of I.args)if(S=xs(D),S)break}else(I instanceof Zi||I instanceof so)&&I.input instanceof _a&&I.input.name==="zoom"&&(S=I);return S instanceof at||I.eachChild(D=>{let X=xs(D);X instanceof at?S=X:!S&&X?S=new at("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):S&&X&&S!==X&&(S=new at("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),S}function ks(I){if(I===!0||I===!1)return!0;if(!Array.isArray(I)||I.length===0)return!1;switch(I[0]){case"has":return I.length>=2&&I[1]!=="$id"&&I[1]!=="$type";case"in":return I.length>=3&&(typeof I[1]!="string"||Array.isArray(I[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return I.length!==3||Array.isArray(I[1])||Array.isArray(I[2]);case"any":case"all":for(let S of I.slice(1))if(!ks(S)&&typeof S!="boolean")return!1;return!0;default:return!0}}let Ea={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Jn(I){if(I==null)return{filter:()=>!0,needGeometry:!1};ks(I)||(I=Gs(I));let S=ho(I,Ea);if(S.result==="error")throw new Error(S.value.map(D=>`${D.key}: ${D.message}`).join(", "));return{filter:(D,X,ie)=>S.value.evaluate(D,X,{},ie),needGeometry:rl(I)}}function Oo(I,S){return IS?1:0}function rl(I){if(!Array.isArray(I))return!1;if(I[0]==="within"||I[0]==="distance")return!0;for(let S=1;S"||S==="<="||S===">="?bs(I[1],I[2],S):S==="any"?(D=I.slice(1),["any"].concat(D.map(Gs))):S==="all"?["all"].concat(I.slice(1).map(Gs)):S==="none"?["all"].concat(I.slice(1).map(Gs).map(Aa)):S==="in"?zs(I[1],I.slice(2)):S==="!in"?Aa(zs(I[1],I.slice(2))):S==="has"?$o(I[1]):S!=="!has"||Aa($o(I[1]));var D}function bs(I,S,D){switch(I){case"$type":return[`filter-type-${D}`,S];case"$id":return[`filter-id-${D}`,S];default:return[`filter-${D}`,I,S]}}function zs(I,S){if(S.length===0)return!1;switch(I){case"$type":return["filter-type-in",["literal",S]];case"$id":return["filter-id-in",["literal",S]];default:return S.length>200&&!S.some(D=>typeof D!=typeof S[0])?["filter-in-large",I,["literal",S.sort(Oo)]]:["filter-in-small",I,["literal",S]]}}function $o(I){switch(I){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",I]}}function Aa(I){return["!",I]}function os(I){let S=typeof I;if(S==="number"||S==="boolean"||S==="string"||I==null)return JSON.stringify(I);if(Array.isArray(I)){let ie="[";for(let ve of I)ie+=`${os(ve)},`;return`${ie}]`}let D=Object.keys(I).sort(),X="{";for(let ie=0;ieX.maximum?[new Et(S,D,`${D} is greater than the maximum value ${X.maximum}`)]:[]}function io(I){let S=I.valueSpec,D=po(I.value.type),X,ie,ve,we={},We=D!=="categorical"&&I.value.property===void 0,ut=!We,Mt=oo(I.value.stops)==="array"&&oo(I.value.stops[0])==="array"&&oo(I.value.stops[0][0])==="object",$t=ss({key:I.key,value:I.value,valueSpec:I.styleSpec.function,validateSpec:I.validateSpec,style:I.style,styleSpec:I.styleSpec,objectElementValidators:{stops:function(Br){if(D==="identity")return[new Et(Br.key,Br.value,'identity function may not have a "stops" property')];let Jr=[],li=Br.value;return Jr=Jr.concat(qo({key:Br.key,value:li,valueSpec:Br.valueSpec,validateSpec:Br.validateSpec,style:Br.style,styleSpec:Br.styleSpec,arrayElementValidator:vr})),oo(li)==="array"&&li.length===0&&Jr.push(new Et(Br.key,li,"array must have at least one stop")),Jr},default:function(Br){return Br.validateSpec({key:Br.key,value:Br.value,valueSpec:S,validateSpec:Br.validateSpec,style:Br.style,styleSpec:Br.styleSpec})}}});return D==="identity"&&We&&$t.push(new Et(I.key,I.value,'missing required property "property"')),D==="identity"||I.value.stops||$t.push(new Et(I.key,I.value,'missing required property "stops"')),D==="exponential"&&I.valueSpec.expression&&!ko(I.valueSpec)&&$t.push(new Et(I.key,I.value,"exponential functions not supported")),I.styleSpec.$version>=8&&(ut&&!ln(I.valueSpec)?$t.push(new Et(I.key,I.value,"property functions not supported")):We&&!Bo(I.valueSpec)&&$t.push(new Et(I.key,I.value,"zoom functions not supported"))),D!=="categorical"&&!Mt||I.value.property!==void 0||$t.push(new Et(I.key,I.value,'"property" property is required')),$t;function vr(Br){let Jr=[],li=Br.value,Hi=Br.key;if(oo(li)!=="array")return[new Et(Hi,li,`array expected, ${oo(li)} found`)];if(li.length!==2)return[new Et(Hi,li,`array length 2 expected, length ${li.length} found`)];if(Mt){if(oo(li[0])!=="object")return[new Et(Hi,li,`object expected, ${oo(li[0])} found`)];if(li[0].zoom===void 0)return[new Et(Hi,li,"object stop key must have zoom")];if(li[0].value===void 0)return[new Et(Hi,li,"object stop key must have value")];if(ve&&ve>po(li[0].zoom))return[new Et(Hi,li[0].zoom,"stop zoom values must appear in ascending order")];po(li[0].zoom)!==ve&&(ve=po(li[0].zoom),ie=void 0,we={}),Jr=Jr.concat(ss({key:`${Hi}[0]`,value:li[0],valueSpec:{zoom:{}},validateSpec:Br.validateSpec,style:Br.style,styleSpec:Br.styleSpec,objectElementValidators:{zoom:zo,value:Sr}}))}else Jr=Jr.concat(Sr({key:`${Hi}[0]`,value:li[0],valueSpec:{},validateSpec:Br.validateSpec,style:Br.style,styleSpec:Br.styleSpec},li));return Qs(go(li[1]))?Jr.concat([new Et(`${Hi}[1]`,li[1],"expressions are not allowed in function stops.")]):Jr.concat(Br.validateSpec({key:`${Hi}[1]`,value:li[1],valueSpec:S,validateSpec:Br.validateSpec,style:Br.style,styleSpec:Br.styleSpec}))}function Sr(Br,Jr){let li=oo(Br.value),Hi=po(Br.value),cn=Br.value!==null?Br.value:Jr;if(X){if(li!==X)return[new Et(Br.key,cn,`${li} stop domain type must match previous stop domain type ${X}`)]}else X=li;if(li!=="number"&&li!=="string"&&li!=="boolean")return[new Et(Br.key,cn,"stop domain value must be a number, string, or boolean")];if(li!=="number"&&D!=="categorical"){let Za=`number expected, ${li} found`;return ln(S)&&D===void 0&&(Za+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Et(Br.key,cn,Za)]}return D!=="categorical"||li!=="number"||isFinite(Hi)&&Math.floor(Hi)===Hi?D!=="categorical"&&li==="number"&&ie!==void 0&&Hinew Et(`${I.key}${X.key}`,I.value,X.message));let D=S.value.expression||S.value._styleExpression.expression;if(I.expressionContext==="property"&&I.propertyKey==="text-font"&&!D.outputDefined())return[new Et(I.key,I.value,`Invalid data expression for "${I.propertyKey}". Output values must be contained as literals within the expression.`)];if(I.expressionContext==="property"&&I.propertyType==="layout"&&!To(D))return[new Et(I.key,I.value,'"feature-state" data expressions are not supported with layout properties.')];if(I.expressionContext==="filter"&&!To(D))return[new Et(I.key,I.value,'"feature-state" data expressions are not supported with filters.')];if(I.expressionContext&&I.expressionContext.indexOf("cluster")===0){if(!ts(D,["zoom","feature-state"]))return[new Et(I.key,I.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(I.expressionContext==="cluster-initial"&&!Wa(D))return[new Et(I.key,I.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Da(I){let S=I.key,D=I.value,X=I.valueSpec,ie=[];return Array.isArray(X.values)?X.values.indexOf(po(D))===-1&&ie.push(new Et(S,D,`expected one of [${X.values.join(", ")}], ${JSON.stringify(D)} found`)):Object.keys(X.values).indexOf(po(D))===-1&&ie.push(new Et(S,D,`expected one of [${Object.keys(X.values).join(", ")}], ${JSON.stringify(D)} found`)),ie}function vs(I){return ks(go(I.value))?Io(Ae({},I,{expressionContext:"filter",valueSpec:{value:"boolean"}})):fs(I)}function fs(I){let S=I.value,D=I.key;if(oo(S)!=="array")return[new Et(D,S,`array expected, ${oo(S)} found`)];let X=I.styleSpec,ie,ve=[];if(S.length<1)return[new Et(D,S,"filter array must have at least 1 element")];switch(ve=ve.concat(Da({key:`${D}[0]`,value:S[0],valueSpec:X.filter_operator,style:I.style,styleSpec:I.styleSpec})),po(S[0])){case"<":case"<=":case">":case">=":S.length>=2&&po(S[1])==="$type"&&ve.push(new Et(D,S,`"$type" cannot be use with operator "${S[0]}"`));case"==":case"!=":S.length!==3&&ve.push(new Et(D,S,`filter array for operator "${S[0]}" must have 3 elements`));case"in":case"!in":S.length>=2&&(ie=oo(S[1]),ie!=="string"&&ve.push(new Et(`${D}[1]`,S[1],`string expected, ${ie} found`)));for(let we=2;we{Mt in D&&S.push(new Et(X,D[Mt],`"${Mt}" is prohibited for ref layers`))}),ie.layers.forEach(Mt=>{po(Mt.id)===We&&(ut=Mt)}),ut?ut.ref?S.push(new Et(X,D.ref,"ref cannot reference another ref layer")):we=po(ut.type):S.push(new Et(X,D.ref,`ref layer "${We}" not found`))}else if(we!=="background")if(D.source){let ut=ie.sources&&ie.sources[D.source],Mt=ut&&po(ut.type);ut?Mt==="vector"&&we==="raster"?S.push(new Et(X,D.source,`layer "${D.id}" requires a raster source`)):Mt!=="raster-dem"&&we==="hillshade"?S.push(new Et(X,D.source,`layer "${D.id}" requires a raster-dem source`)):Mt==="raster"&&we!=="raster"?S.push(new Et(X,D.source,`layer "${D.id}" requires a vector source`)):Mt!=="vector"||D["source-layer"]?Mt==="raster-dem"&&we!=="hillshade"?S.push(new Et(X,D.source,"raster-dem source can only be used with layer type 'hillshade'.")):we!=="line"||!D.paint||!D.paint["line-gradient"]||Mt==="geojson"&&ut.lineMetrics||S.push(new Et(X,D,`layer "${D.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):S.push(new Et(X,D,`layer "${D.id}" must specify a "source-layer"`)):S.push(new Et(X,D.source,`source "${D.source}" not found`))}else S.push(new Et(X,D,'missing required property "source"'));return S=S.concat(ss({key:X,value:D,valueSpec:ve.layer,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,objectElementValidators:{"*":()=>[],type:()=>I.validateSpec({key:`${X}.type`,value:D.type,valueSpec:ve.layer.type,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,object:D,objectKey:"type"}),filter:vs,layout:ut=>ss({layer:D,key:ut.key,value:ut.value,style:ut.style,styleSpec:ut.styleSpec,validateSpec:ut.validateSpec,objectElementValidators:{"*":Mt=>Hs(Ae({layerType:we},Mt))}}),paint:ut=>ss({layer:D,key:ut.key,value:ut.value,style:ut.style,styleSpec:ut.styleSpec,validateSpec:ut.validateSpec,objectElementValidators:{"*":Mt=>el(Ae({layerType:we},Mt))}})}})),S}function tl(I){let S=I.value,D=I.key,X=oo(S);return X!=="string"?[new Et(D,S,`string expected, ${X} found`)]:[]}let Fs={promoteId:function({key:I,value:S}){if(oo(S)==="string")return tl({key:I,value:S});{let D=[];for(let X in S)D.push(...tl({key:`${I}.${X}`,value:S[X]}));return D}}};function hl(I){let S=I.value,D=I.key,X=I.styleSpec,ie=I.style,ve=I.validateSpec;if(!S.type)return[new Et(D,S,'"type" is required')];let we=po(S.type),We;switch(we){case"vector":case"raster":return We=ss({key:D,value:S,valueSpec:X[`source_${we.replace("-","_")}`],style:I.style,styleSpec:X,objectElementValidators:Fs,validateSpec:ve}),We;case"raster-dem":return We=function(ut){var Mt;let $t=(Mt=ut.sourceName)!==null&&Mt!==void 0?Mt:"",vr=ut.value,Sr=ut.styleSpec,Br=Sr.source_raster_dem,Jr=ut.style,li=[],Hi=oo(vr);if(vr===void 0)return li;if(Hi!=="object")return li.push(new Et("source_raster_dem",vr,`object expected, ${Hi} found`)),li;let cn=po(vr.encoding)==="custom",Za=["redFactor","greenFactor","blueFactor","baseShift"],Rn=ut.value.encoding?`"${ut.value.encoding}"`:"Default";for(let La in vr)!cn&&Za.includes(La)?li.push(new Et(La,vr[La],`In "${$t}": "${La}" is only valid when "encoding" is set to "custom". ${Rn} encoding found`)):Br[La]?li=li.concat(ut.validateSpec({key:La,value:vr[La],valueSpec:Br[La],validateSpec:ut.validateSpec,style:Jr,styleSpec:Sr})):li.push(new Et(La,vr[La],`unknown property "${La}"`));return li}({sourceName:D,value:S,style:I.style,styleSpec:X,validateSpec:ve}),We;case"geojson":if(We=ss({key:D,value:S,valueSpec:X.source_geojson,style:ie,styleSpec:X,validateSpec:ve,objectElementValidators:Fs}),S.cluster)for(let ut in S.clusterProperties){let[Mt,$t]=S.clusterProperties[ut],vr=typeof Mt=="string"?[Mt,["accumulated"],["get",ut]]:Mt;We.push(...Io({key:`${D}.${ut}.map`,value:$t,validateSpec:ve,expressionContext:"cluster-map"})),We.push(...Io({key:`${D}.${ut}.reduce`,value:vr,validateSpec:ve,expressionContext:"cluster-reduce"}))}return We;case"video":return ss({key:D,value:S,valueSpec:X.source_video,style:ie,validateSpec:ve,styleSpec:X});case"image":return ss({key:D,value:S,valueSpec:X.source_image,style:ie,validateSpec:ve,styleSpec:X});case"canvas":return[new Et(D,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Da({key:`${D}.type`,value:S.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:ie,validateSpec:ve,styleSpec:X})}}function Fa(I){let S=I.value,D=I.styleSpec,X=D.light,ie=I.style,ve=[],we=oo(S);if(S===void 0)return ve;if(we!=="object")return ve=ve.concat([new Et("light",S,`object expected, ${we} found`)]),ve;for(let We in S){let ut=We.match(/^(.*)-transition$/);ve=ve.concat(ut&&X[ut[1]]&&X[ut[1]].transition?I.validateSpec({key:We,value:S[We],valueSpec:D.transition,validateSpec:I.validateSpec,style:ie,styleSpec:D}):X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],validateSpec:I.validateSpec,style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)])}return ve}function Ms(I){let S=I.value,D=I.styleSpec,X=D.sky,ie=I.style,ve=oo(S);if(S===void 0)return[];if(ve!=="object")return[new Et("sky",S,`object expected, ${ve} found`)];let we=[];for(let We in S)we=we.concat(X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)]);return we}function jo(I){let S=I.value,D=I.styleSpec,X=D.terrain,ie=I.style,ve=[],we=oo(S);if(S===void 0)return ve;if(we!=="object")return ve=ve.concat([new Et("terrain",S,`object expected, ${we} found`)]),ve;for(let We in S)ve=ve.concat(X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],validateSpec:I.validateSpec,style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)]);return ve}function Rs(I){let S=[],D=I.value,X=I.key;if(Array.isArray(D)){let ie=[],ve=[];for(let we in D)D[we].id&&ie.includes(D[we].id)&&S.push(new Et(X,D,`all the sprites' ids must be unique, but ${D[we].id} is duplicated`)),ie.push(D[we].id),D[we].url&&ve.includes(D[we].url)&&S.push(new Et(X,D,`all the sprites' URLs must be unique, but ${D[we].url} is duplicated`)),ve.push(D[we].url),S=S.concat(ss({key:`${X}[${we}]`,value:D[we],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:I.validateSpec}));return S}return tl({key:X,value:D})}let Is={"*":()=>[],array:qo,boolean:function(I){let S=I.value,D=I.key,X=oo(S);return X!=="boolean"?[new Et(D,S,`boolean expected, ${X} found`)]:[]},number:zo,color:function(I){let S=I.key,D=I.value,X=oo(D);return X!=="string"?[new Et(S,D,`color expected, ${X} found`)]:Wt.parse(String(D))?[]:[new Et(S,D,`color expected, "${D}" found`)]},constants:Ss,enum:Da,filter:vs,function:io,layer:Ro,object:ss,source:hl,light:Fa,sky:Ms,terrain:jo,projection:function(I){let S=I.value,D=I.styleSpec,X=D.projection,ie=I.style,ve=oo(S);if(S===void 0)return[];if(ve!=="object")return[new Et("projection",S,`object expected, ${ve} found`)];let we=[];for(let We in S)we=we.concat(X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)]);return we},string:tl,formatted:function(I){return tl(I).length===0?[]:Io(I)},resolvedImage:function(I){return tl(I).length===0?[]:Io(I)},padding:function(I){let S=I.key,D=I.value;if(oo(D)==="array"){if(D.length<1||D.length>4)return[new Et(S,D,`padding requires 1 to 4 values; ${D.length} values found`)];let X={type:"number"},ie=[];for(let ve=0;ve[]}})),I.constants&&(D=D.concat(Ss({key:"constants",value:I.constants,style:I,styleSpec:S,validateSpec:Bs}))),mr(D)}function wr(I){return function(S){return I(xee(_ee({},S),{validateSpec:Bs}))}}function mr(I){return[].concat(I).sort((S,D)=>S.line-D.line)}function Or(I){return function(...S){return mr(I.apply(this,S))}}Gt.source=Or(wr(hl)),Gt.sprite=Or(wr(Rs)),Gt.glyphs=Or(wr(At)),Gt.light=Or(wr(Fa)),Gt.sky=Or(wr(Ms)),Gt.terrain=Or(wr(jo)),Gt.layer=Or(wr(Ro)),Gt.filter=Or(wr(vs)),Gt.paintProperty=Or(wr(el)),Gt.layoutProperty=Or(wr(Hs));let gi=Gt,Ti=gi.light,ki=gi.sky,Ji=gi.paintProperty,Fn=gi.layoutProperty;function Pi(I,S){let D=!1;if(S&&S.length)for(let X of S)I.fire(new ye(new Error(X.message))),D=!0;return D}class hi{constructor(S,D,X){let ie=this.cells=[];if(S instanceof ArrayBuffer){this.arrayBuffer=S;let we=new Int32Array(this.arrayBuffer);S=we[0],this.d=(D=we[1])+2*(X=we[2]);for(let ut=0;ut=vr[Jr+0]&&ie>=vr[Jr+1])?(We[Br]=!0,we.push($t[Br])):We[Br]=!1}}}}_forEachCell(S,D,X,ie,ve,we,We,ut){let Mt=this._convertToCellCoord(S),$t=this._convertToCellCoord(D),vr=this._convertToCellCoord(X),Sr=this._convertToCellCoord(ie);for(let Br=Mt;Br<=vr;Br++)for(let Jr=$t;Jr<=Sr;Jr++){let li=this.d*Jr+Br;if((!ut||ut(this._convertFromCellCoord(Br),this._convertFromCellCoord(Jr),this._convertFromCellCoord(Br+1),this._convertFromCellCoord(Jr+1)))&&ve.call(this,S,D,X,ie,li,we,We,ut))return}}_convertFromCellCoord(S){return(S-this.padding)/this.scale}_convertToCellCoord(S){return Math.max(0,Math.min(this.d-1,Math.floor(S*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let S=this.cells,D=3+this.cells.length+1+1,X=0;for(let we=0;we=0)continue;let we=I[ve];ie[ve]=Li[D].shallow.indexOf(ve)>=0?we:ia(we,S)}I instanceof Error&&(ie.message=I.message)}if(ie.$name)throw new Error("$name property is reserved for worker serialization logic.");return D!=="Object"&&(ie.$name=D),ie}function pa(I){if(ya(I))return I;if(Array.isArray(I))return I.map(pa);if(typeof I!="object")throw new Error("can't deserialize object of type "+typeof I);let S=ta(I)||"Object";if(!Li[S])throw new Error(`can't deserialize unregistered class ${S}`);let{klass:D}=Li[S];if(!D)throw new Error(`can't deserialize unregistered class ${S}`);if(D.deserialize)return D.deserialize(I);let X=Object.create(D.prototype);for(let ie of Object.keys(I)){if(ie==="$name")continue;let ve=I[ie];X[ie]=Li[S].shallow.indexOf(ie)>=0?ve:pa(ve)}return X}class va{constructor(){this.first=!0}update(S,D){let X=Math.floor(S);return this.first?(this.first=!1,this.lastIntegerZoom=X,this.lastIntegerZoomTime=0,this.lastZoom=S,this.lastFloorZoom=X,!0):(this.lastFloorZoom>X?(this.lastIntegerZoom=X+1,this.lastIntegerZoomTime=D):this.lastFloorZoomI>=128&&I<=255,"Hangul Jamo":I=>I>=4352&&I<=4607,Khmer:I=>I>=6016&&I<=6143,"General Punctuation":I=>I>=8192&&I<=8303,"Letterlike Symbols":I=>I>=8448&&I<=8527,"Number Forms":I=>I>=8528&&I<=8591,"Miscellaneous Technical":I=>I>=8960&&I<=9215,"Control Pictures":I=>I>=9216&&I<=9279,"Optical Character Recognition":I=>I>=9280&&I<=9311,"Enclosed Alphanumerics":I=>I>=9312&&I<=9471,"Geometric Shapes":I=>I>=9632&&I<=9727,"Miscellaneous Symbols":I=>I>=9728&&I<=9983,"Miscellaneous Symbols and Arrows":I=>I>=11008&&I<=11263,"Ideographic Description Characters":I=>I>=12272&&I<=12287,"CJK Symbols and Punctuation":I=>I>=12288&&I<=12351,Katakana:I=>I>=12448&&I<=12543,Kanbun:I=>I>=12688&&I<=12703,"CJK Strokes":I=>I>=12736&&I<=12783,"Enclosed CJK Letters and Months":I=>I>=12800&&I<=13055,"CJK Compatibility":I=>I>=13056&&I<=13311,"Yijing Hexagram Symbols":I=>I>=19904&&I<=19967,"Private Use Area":I=>I>=57344&&I<=63743,"Vertical Forms":I=>I>=65040&&I<=65055,"CJK Compatibility Forms":I=>I>=65072&&I<=65103,"Small Form Variants":I=>I>=65104&&I<=65135,"Halfwidth and Fullwidth Forms":I=>I>=65280&&I<=65519};function is(I){for(let S of I)if(bl(S.charCodeAt(0)))return!0;return!1}function Cs(I){for(let S of I)if(!xl(S.charCodeAt(0)))return!1;return!0}function Ks(I){let S=I.map(D=>{try{return new RegExp(`\\p{sc=${D}}`,"u").source}catch(X){return null}}).filter(D=>D);return new RegExp(S.join("|"),"u")}let dl=Ks(["Arab","Dupl","Mong","Ougr","Syrc"]);function xl(I){return!dl.test(String.fromCodePoint(I))}let Ol=Ks(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function bl(I){return!(I!==746&&I!==747&&(I<4352||!(zn["CJK Compatibility Forms"](I)&&!(I>=65097&&I<=65103)||zn["CJK Compatibility"](I)||zn["CJK Strokes"](I)||!(!zn["CJK Symbols and Punctuation"](I)||I>=12296&&I<=12305||I>=12308&&I<=12319||I===12336)||zn["Enclosed CJK Letters and Months"](I)||zn["Ideographic Description Characters"](I)||zn.Kanbun(I)||zn.Katakana(I)&&I!==12540||!(!zn["Halfwidth and Fullwidth Forms"](I)||I===65288||I===65289||I===65293||I>=65306&&I<=65310||I===65339||I===65341||I===65343||I>=65371&&I<=65503||I===65507||I>=65512&&I<=65519)||!(!zn["Small Form Variants"](I)||I>=65112&&I<=65118||I>=65123&&I<=65126)||zn["Vertical Forms"](I)||zn["Yijing Hexagram Symbols"](I)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(I))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(I))||Ol.test(String.fromCodePoint(I)))))}function eu(I){return!(bl(I)||function(S){return!!(zn["Latin-1 Supplement"](S)&&(S===167||S===169||S===174||S===177||S===188||S===189||S===190||S===215||S===247)||zn["General Punctuation"](S)&&(S===8214||S===8224||S===8225||S===8240||S===8241||S===8251||S===8252||S===8258||S===8263||S===8264||S===8265||S===8273)||zn["Letterlike Symbols"](S)||zn["Number Forms"](S)||zn["Miscellaneous Technical"](S)&&(S>=8960&&S<=8967||S>=8972&&S<=8991||S>=8996&&S<=9e3||S===9003||S>=9085&&S<=9114||S>=9150&&S<=9165||S===9167||S>=9169&&S<=9179||S>=9186&&S<=9215)||zn["Control Pictures"](S)&&S!==9251||zn["Optical Character Recognition"](S)||zn["Enclosed Alphanumerics"](S)||zn["Geometric Shapes"](S)||zn["Miscellaneous Symbols"](S)&&!(S>=9754&&S<=9759)||zn["Miscellaneous Symbols and Arrows"](S)&&(S>=11026&&S<=11055||S>=11088&&S<=11097||S>=11192&&S<=11243)||zn["CJK Symbols and Punctuation"](S)||zn.Katakana(S)||zn["Private Use Area"](S)||zn["CJK Compatibility Forms"](S)||zn["Small Form Variants"](S)||zn["Halfwidth and Fullwidth Forms"](S)||S===8734||S===8756||S===8757||S>=9984&&S<=10087||S>=10102&&S<=10131||S===65532||S===65533)}(I))}let Zl=Ks(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Vl(I){return Zl.test(String.fromCodePoint(I))}function ja(I,S){return!(!S&&Vl(I)||I>=2304&&I<=3583||I>=3840&&I<=4255||zn.Khmer(I))}function ns(I){for(let S of I)if(Vl(S.charCodeAt(0)))return!0;return!1}let Js=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(I){this.pluginStatus=I.pluginStatus,this.pluginURL=I.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(I){this.applyArabicShaping=I.applyArabicShaping,this.processBidirectionalText=I.processBidirectionalText,this.processStyledBidirectionalText=I.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class cs{constructor(S,D){this.zoom=S,D?(this.now=D.now,this.fadeDuration=D.fadeDuration,this.zoomHistory=D.zoomHistory,this.transition=D.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new va,this.transition={})}isSupportedScript(S){return function(D,X){for(let ie of D)if(!ja(ie.charCodeAt(0),X))return!1;return!0}(S,Js.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let S=this.zoom,D=S-Math.floor(S),X=this.crossFadingFactor();return S>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:D+(1-D)*X}:{fromScale:.5,toScale:1,t:1-(1-X)*D}}}class sl{constructor(S,D){this.property=S,this.value=D,this.expression=function(X,ie){if(za(X))return new Lo(X,ie);if(Qs(X)){let ve=Do(X,ie);if(ve.result==="error")throw new Error(ve.value.map(we=>`${we.key}: ${we.message}`).join(", "));return ve.value}{let ve=X;return ie.type==="color"&&typeof X=="string"?ve=Wt.parse(X):ie.type!=="padding"||typeof X!="number"&&!Array.isArray(X)?ie.type==="variableAnchorOffsetCollection"&&Array.isArray(X)&&(ve=jr.parse(X)):ve=Ir.parse(X),{kind:"constant",evaluate:()=>ve}}}(D===void 0?S.specification.default:D,S.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(S,D,X){return this.property.possiblyEvaluate(this,S,D,X)}}class ll{constructor(S){this.property=S,this.value=new sl(S,void 0)}transitioned(S,D){return new zl(this.property,this.value,D,L({},S.transition,this.transition),S.now)}untransitioned(){return new zl(this.property,this.value,null,{},0)}}class il{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitionablePropertyValues)}getValue(S){return m(this._values[S].value.value)}setValue(S,D){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ll(this._values[S].property)),this._values[S].value=new sl(this._values[S].property,D===null?void 0:m(D))}getTransition(S){return m(this._values[S].transition)}setTransition(S,D){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ll(this._values[S].property)),this._values[S].transition=m(D)||void 0}serialize(){let S={};for(let D of Object.keys(this._values)){let X=this.getValue(D);X!==void 0&&(S[D]=X);let ie=this.getTransition(D);ie!==void 0&&(S[`${D}-transition`]=ie)}return S}transitioned(S,D){let X=new Ml(this._properties);for(let ie of Object.keys(this._values))X._values[ie]=this._values[ie].transitioned(S,D._values[ie]);return X}untransitioned(){let S=new Ml(this._properties);for(let D of Object.keys(this._values))S._values[D]=this._values[D].untransitioned();return S}}class zl{constructor(S,D,X,ie,ve){this.property=S,this.value=D,this.begin=ve+ie.delay||0,this.end=this.begin+ie.duration||0,S.specification.transition&&(ie.delay||ie.duration)&&(this.prior=X)}possiblyEvaluate(S,D,X){let ie=S.now||0,ve=this.value.possiblyEvaluate(S,D,X),we=this.prior;if(we){if(ie>this.end)return this.prior=null,ve;if(this.value.isDataDriven())return this.prior=null,ve;if(ie=1)return 1;let Mt=ut*ut,$t=Mt*ut;return 4*(ut<.5?$t:3*(ut-Mt)+$t-.75)}(We))}}return ve}}class Ml{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitioningPropertyValues)}possiblyEvaluate(S,D,X){let ie=new Ll(this._properties);for(let ve of Object.keys(this._values))ie._values[ve]=this._values[ve].possiblyEvaluate(S,D,X);return ie}hasTransition(){for(let S of Object.keys(this._values))if(this._values[S].prior)return!0;return!1}}class Rl{constructor(S){this._properties=S,this._values=Object.create(S.defaultPropertyValues)}hasValue(S){return this._values[S].value!==void 0}getValue(S){return m(this._values[S].value)}setValue(S,D){this._values[S]=new sl(this._values[S].property,D===null?void 0:m(D))}serialize(){let S={};for(let D of Object.keys(this._values)){let X=this.getValue(D);X!==void 0&&(S[D]=X)}return S}possiblyEvaluate(S,D,X){let ie=new Ll(this._properties);for(let ve of Object.keys(this._values))ie._values[ve]=this._values[ve].possiblyEvaluate(S,D,X);return ie}}class Al{constructor(S,D,X){this.property=S,this.value=D,this.parameters=X}isConstant(){return this.value.kind==="constant"}constantOr(S){return this.value.kind==="constant"?this.value.value:S}evaluate(S,D,X,ie){return this.property.evaluate(this.value,this.parameters,S,D,X,ie)}}class Ll{constructor(S){this._properties=S,this._values=Object.create(S.defaultPossiblyEvaluatedValues)}get(S){return this._values[S]}}class ms{constructor(S){this.specification=S}possiblyEvaluate(S,D){if(S.isDataDriven())throw new Error("Value should not be data driven");return S.expression.evaluate(D)}interpolate(S,D,X){let ie=ka[this.specification.type];return ie?ie(S,D,X):S}}class Os{constructor(S,D){this.specification=S,this.overrides=D}possiblyEvaluate(S,D,X,ie){return new Al(this,S.expression.kind==="constant"||S.expression.kind==="camera"?{kind:"constant",value:S.expression.evaluate(D,null,{},X,ie)}:S.expression,D)}interpolate(S,D,X){if(S.value.kind!=="constant"||D.value.kind!=="constant")return S;if(S.value.value===void 0||D.value.value===void 0)return new Al(this,{kind:"constant",value:void 0},S.parameters);let ie=ka[this.specification.type];if(ie){let ve=ie(S.value.value,D.value.value,X);return new Al(this,{kind:"constant",value:ve},S.parameters)}return S}evaluate(S,D,X,ie,ve,we){return S.kind==="constant"?S.value:S.evaluate(D,X,ie,ve,we)}}class Xl extends Os{possiblyEvaluate(S,D,X,ie){if(S.value===void 0)return new Al(this,{kind:"constant",value:void 0},D);if(S.expression.kind==="constant"){let ve=S.expression.evaluate(D,null,{},X,ie),we=S.property.specification.type==="resolvedImage"&&typeof ve!="string"?ve.name:ve,We=this._calculate(we,we,we,D);return new Al(this,{kind:"constant",value:We},D)}if(S.expression.kind==="camera"){let ve=this._calculate(S.expression.evaluate({zoom:D.zoom-1}),S.expression.evaluate({zoom:D.zoom}),S.expression.evaluate({zoom:D.zoom+1}),D);return new Al(this,{kind:"constant",value:ve},D)}return new Al(this,S.expression,D)}evaluate(S,D,X,ie,ve,we){if(S.kind==="source"){let We=S.evaluate(D,X,ie,ve,we);return this._calculate(We,We,We,D)}return S.kind==="composite"?this._calculate(S.evaluate({zoom:Math.floor(D.zoom)-1},X,ie),S.evaluate({zoom:Math.floor(D.zoom)},X,ie),S.evaluate({zoom:Math.floor(D.zoom)+1},X,ie),D):S.value}_calculate(S,D,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:S,to:D}:{from:X,to:D}}interpolate(S){return S}}class Gl{constructor(S){this.specification=S}possiblyEvaluate(S,D,X,ie){if(S.value!==void 0){if(S.expression.kind==="constant"){let ve=S.expression.evaluate(D,null,{},X,ie);return this._calculate(ve,ve,ve,D)}return this._calculate(S.expression.evaluate(new cs(Math.floor(D.zoom-1),D)),S.expression.evaluate(new cs(Math.floor(D.zoom),D)),S.expression.evaluate(new cs(Math.floor(D.zoom+1),D)),D)}}_calculate(S,D,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:S,to:D}:{from:X,to:D}}interpolate(S){return S}}class Ul{constructor(S){this.specification=S}possiblyEvaluate(S,D,X,ie){return!!S.expression.evaluate(D,null,{},X,ie)}interpolate(){return!1}}class le{constructor(S){this.properties=S,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let D in S){let X=S[D];X.specification.overridable&&this.overridableProperties.push(D);let ie=this.defaultPropertyValues[D]=new sl(X,void 0),ve=this.defaultTransitionablePropertyValues[D]=new ll(X);this.defaultTransitioningPropertyValues[D]=ve.untransitioned(),this.defaultPossiblyEvaluatedValues[D]=ie.possiblyEvaluate({})}}}Si("DataDrivenProperty",Os),Si("DataConstantProperty",ms),Si("CrossFadedDataDrivenProperty",Xl),Si("CrossFadedProperty",Gl),Si("ColorRampProperty",Ul);let w="-transition";class q extends Ve{constructor(S,D){if(super(),this.id=S.id,this.type=S.type,this._featureFilter={filter:()=>!0,needGeometry:!1},S.type!=="custom"&&(this.metadata=S.metadata,this.minzoom=S.minzoom,this.maxzoom=S.maxzoom,S.type!=="background"&&(this.source=S.source,this.sourceLayer=S["source-layer"],this.filter=S.filter),D.layout&&(this._unevaluatedLayout=new Rl(D.layout)),D.paint)){this._transitionablePaint=new il(D.paint);for(let X in S.paint)this.setPaintProperty(X,S.paint[X],{validate:!1});for(let X in S.layout)this.setLayoutProperty(X,S.layout[X],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ll(D.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(S){return S==="visibility"?this.visibility:this._unevaluatedLayout.getValue(S)}setLayoutProperty(S,D,X={}){D!=null&&this._validate(Fn,`layers.${this.id}.layout.${S}`,S,D,X)||(S!=="visibility"?this._unevaluatedLayout.setValue(S,D):this.visibility=D)}getPaintProperty(S){return S.endsWith(w)?this._transitionablePaint.getTransition(S.slice(0,-11)):this._transitionablePaint.getValue(S)}setPaintProperty(S,D,X={}){if(D!=null&&this._validate(Ji,`layers.${this.id}.paint.${S}`,S,D,X))return!1;if(S.endsWith(w))return this._transitionablePaint.setTransition(S.slice(0,-11),D||void 0),!1;{let ie=this._transitionablePaint._values[S],ve=ie.property.specification["property-type"]==="cross-faded-data-driven",we=ie.value.isDataDriven(),We=ie.value;this._transitionablePaint.setValue(S,D),this._handleSpecialPaintPropertyUpdate(S);let ut=this._transitionablePaint._values[S].value;return ut.isDataDriven()||we||ve||this._handleOverridablePaintPropertyUpdate(S,We,ut)}}_handleSpecialPaintPropertyUpdate(S){}_handleOverridablePaintPropertyUpdate(S,D,X){return!1}isHidden(S){return!!(this.minzoom&&S=this.maxzoom)||this.visibility==="none"}updateTransitions(S){this._transitioningPaint=this._transitionablePaint.transitioned(S,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(S,D){S.getCrossfadeParameters&&(this._crossfadeParameters=S.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(S,void 0,D)),this.paint=this._transitioningPaint.possiblyEvaluate(S,void 0,D)}serialize(){let S={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(S.layout=S.layout||{},S.layout.visibility=this.visibility),M(S,(D,X)=>!(D===void 0||X==="layout"&&!Object.keys(D).length||X==="paint"&&!Object.keys(D).length))}_validate(S,D,X,ie,ve={}){return(!ve||ve.validate!==!1)&&Pi(this,S.call(gi,{key:D,layerType:this.type,objectKey:X,value:ie,styleSpec:ce,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let S in this.paint._values){let D=this.paint.get(S);if(D instanceof Al&&ln(D.property.specification)&&(D.value.kind==="source"||D.value.kind==="composite")&&D.value.isStateDependent)return!0}return!1}}let Q={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class ee{constructor(S,D){this._structArray=S,this._pos1=D*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class ue{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(S,D){return S._trim(),D&&(S.isTransferred=!0,D.push(S.arrayBuffer)),{length:S.length,arrayBuffer:S.arrayBuffer}}static deserialize(S){let D=Object.create(this.prototype);return D.arrayBuffer=S.arrayBuffer,D.length=S.length,D.capacity=S.arrayBuffer.byteLength/D.bytesPerElement,D._refreshViews(),D}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(S){this.reserve(S),this.length=S}reserve(S){if(S>this.capacity){this.capacity=Math.max(S,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let D=this.uint8;this._refreshViews(),D&&this.uint8.set(D)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function Ge(I,S=1){let D=0,X=0;return{members:I.map(ie=>{let ve=Q[ie.type].BYTES_PER_ELEMENT,we=D=et(D,Math.max(S,ve)),We=ie.components||1;return X=Math.max(X,ve),D+=ve*We,{name:ie.name,type:ie.type,components:We,offset:we}}),size:et(D,Math.max(X,S)),alignment:S}}function et(I,S){return Math.ceil(I/S)*S}class mt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D){let X=this.length;return this.resize(X+1),this.emplace(X,S,D)}emplace(S,D,X){let ie=2*S;return this.int16[ie+0]=D,this.int16[ie+1]=X,S}}mt.prototype.bytesPerElement=4,Si("StructArrayLayout2i4",mt);class Ft extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.int16[ve+0]=D,this.int16[ve+1]=X,this.int16[ve+2]=ie,S}}Ft.prototype.bytesPerElement=6,Si("StructArrayLayout3i6",Ft);class ir extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie){let ve=this.length;return this.resize(ve+1),this.emplace(ve,S,D,X,ie)}emplace(S,D,X,ie,ve){let we=4*S;return this.int16[we+0]=D,this.int16[we+1]=X,this.int16[we+2]=ie,this.int16[we+3]=ve,S}}ir.prototype.bytesPerElement=8,Si("StructArrayLayout4i8",ir);class or extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=6*S;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.int16[ut+2]=ie,this.int16[ut+3]=ve,this.int16[ut+4]=we,this.int16[ut+5]=We,S}}or.prototype.bytesPerElement=12,Si("StructArrayLayout2i4i12",or);class kr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=4*S,Mt=8*S;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.uint8[Mt+4]=ie,this.uint8[Mt+5]=ve,this.uint8[Mt+6]=we,this.uint8[Mt+7]=We,S}}kr.prototype.bytesPerElement=8,Si("StructArrayLayout2i4ub8",kr);class Vr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D){let X=this.length;return this.resize(X+1),this.emplace(X,S,D)}emplace(S,D,X){let ie=2*S;return this.float32[ie+0]=D,this.float32[ie+1]=X,S}}Vr.prototype.bytesPerElement=8,Si("StructArrayLayout2f8",Vr);class he extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we,We,ut,Mt,$t){let vr=this.length;return this.resize(vr+1),this.emplace(vr,S,D,X,ie,ve,we,We,ut,Mt,$t)}emplace(S,D,X,ie,ve,we,We,ut,Mt,$t,vr){let Sr=10*S;return this.uint16[Sr+0]=D,this.uint16[Sr+1]=X,this.uint16[Sr+2]=ie,this.uint16[Sr+3]=ve,this.uint16[Sr+4]=we,this.uint16[Sr+5]=We,this.uint16[Sr+6]=ut,this.uint16[Sr+7]=Mt,this.uint16[Sr+8]=$t,this.uint16[Sr+9]=vr,S}}he.prototype.bytesPerElement=20,Si("StructArrayLayout10ui20",he);class Se extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr){let Br=this.length;return this.resize(Br+1),this.emplace(Br,S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr)}emplace(S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br){let Jr=12*S;return this.int16[Jr+0]=D,this.int16[Jr+1]=X,this.int16[Jr+2]=ie,this.int16[Jr+3]=ve,this.uint16[Jr+4]=we,this.uint16[Jr+5]=We,this.uint16[Jr+6]=ut,this.uint16[Jr+7]=Mt,this.int16[Jr+8]=$t,this.int16[Jr+9]=vr,this.int16[Jr+10]=Sr,this.int16[Jr+11]=Br,S}}Se.prototype.bytesPerElement=24,Si("StructArrayLayout4i4ui4i24",Se);class qe extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.float32[ve+0]=D,this.float32[ve+1]=X,this.float32[ve+2]=ie,S}}qe.prototype.bytesPerElement=12,Si("StructArrayLayout3f12",qe);class He extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(S){let D=this.length;return this.resize(D+1),this.emplace(D,S)}emplace(S,D){return this.uint32[1*S+0]=D,S}}He.prototype.bytesPerElement=4,Si("StructArrayLayout1ul4",He);class lt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we,We,ut,Mt){let $t=this.length;return this.resize($t+1),this.emplace($t,S,D,X,ie,ve,we,We,ut,Mt)}emplace(S,D,X,ie,ve,we,We,ut,Mt,$t){let vr=10*S,Sr=5*S;return this.int16[vr+0]=D,this.int16[vr+1]=X,this.int16[vr+2]=ie,this.int16[vr+3]=ve,this.int16[vr+4]=we,this.int16[vr+5]=We,this.uint32[Sr+3]=ut,this.uint16[vr+8]=Mt,this.uint16[vr+9]=$t,S}}lt.prototype.bytesPerElement=20,Si("StructArrayLayout6i1ul2ui20",lt);class tt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=6*S;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.int16[ut+2]=ie,this.int16[ut+3]=ve,this.int16[ut+4]=we,this.int16[ut+5]=We,S}}tt.prototype.bytesPerElement=12,Si("StructArrayLayout2i2i2i12",tt);class pt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve){let we=this.length;return this.resize(we+1),this.emplace(we,S,D,X,ie,ve)}emplace(S,D,X,ie,ve,we){let We=4*S,ut=8*S;return this.float32[We+0]=D,this.float32[We+1]=X,this.float32[We+2]=ie,this.int16[ut+6]=ve,this.int16[ut+7]=we,S}}pt.prototype.bytesPerElement=16,Si("StructArrayLayout2f1f2i16",pt);class Ht extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=16*S,Mt=4*S,$t=8*S;return this.uint8[ut+0]=D,this.uint8[ut+1]=X,this.float32[Mt+1]=ie,this.float32[Mt+2]=ve,this.int16[$t+6]=we,this.int16[$t+7]=We,S}}Ht.prototype.bytesPerElement=16,Si("StructArrayLayout2ub2f2i16",Ht);class nr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.uint16[ve+0]=D,this.uint16[ve+1]=X,this.uint16[ve+2]=ie,S}}nr.prototype.bytesPerElement=6,Si("StructArrayLayout3ui6",nr);class fr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn){let Za=this.length;return this.resize(Za+1),this.emplace(Za,S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn)}emplace(S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn,Za){let Rn=24*S,La=12*S,So=48*S;return this.int16[Rn+0]=D,this.int16[Rn+1]=X,this.uint16[Rn+2]=ie,this.uint16[Rn+3]=ve,this.uint32[La+2]=we,this.uint32[La+3]=We,this.uint32[La+4]=ut,this.uint16[Rn+10]=Mt,this.uint16[Rn+11]=$t,this.uint16[Rn+12]=vr,this.float32[La+7]=Sr,this.float32[La+8]=Br,this.uint8[So+36]=Jr,this.uint8[So+37]=li,this.uint8[So+38]=Hi,this.uint32[La+10]=cn,this.int16[Rn+22]=Za,S}}fr.prototype.bytesPerElement=48,Si("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",fr);class Ar extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu){let _u=this.length;return this.resize(_u+1),this.emplace(_u,S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu)}emplace(S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu,_u){let Xs=32*S,Lu=16*S;return this.int16[Xs+0]=D,this.int16[Xs+1]=X,this.int16[Xs+2]=ie,this.int16[Xs+3]=ve,this.int16[Xs+4]=we,this.int16[Xs+5]=We,this.int16[Xs+6]=ut,this.int16[Xs+7]=Mt,this.uint16[Xs+8]=$t,this.uint16[Xs+9]=vr,this.uint16[Xs+10]=Sr,this.uint16[Xs+11]=Br,this.uint16[Xs+12]=Jr,this.uint16[Xs+13]=li,this.uint16[Xs+14]=Hi,this.uint16[Xs+15]=cn,this.uint16[Xs+16]=Za,this.uint16[Xs+17]=Rn,this.uint16[Xs+18]=La,this.uint16[Xs+19]=So,this.uint16[Xs+20]=kl,this.uint16[Xs+21]=mu,this.uint16[Xs+22]=Iu,this.uint32[Lu+12]=su,this.float32[Lu+13]=yl,this.float32[Lu+14]=Eu,this.uint16[Xs+30]=bu,this.uint16[Xs+31]=_u,S}}Ar.prototype.bytesPerElement=64,Si("StructArrayLayout8i15ui1ul2f2ui64",Ar);class Rr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S){let D=this.length;return this.resize(D+1),this.emplace(D,S)}emplace(S,D){return this.float32[1*S+0]=D,S}}Rr.prototype.bytesPerElement=4,Si("StructArrayLayout1f4",Rr);class ri extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.uint16[6*S+0]=D,this.float32[ve+1]=X,this.float32[ve+2]=ie,S}}ri.prototype.bytesPerElement=12,Si("StructArrayLayout1ui2f12",ri);class si extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=4*S;return this.uint32[2*S+0]=D,this.uint16[ve+2]=X,this.uint16[ve+3]=ie,S}}si.prototype.bytesPerElement=8,Si("StructArrayLayout1ul2ui8",si);class Mi extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D){let X=this.length;return this.resize(X+1),this.emplace(X,S,D)}emplace(S,D,X){let ie=2*S;return this.uint16[ie+0]=D,this.uint16[ie+1]=X,S}}Mi.prototype.bytesPerElement=4,Si("StructArrayLayout2ui4",Mi);class hn extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S){let D=this.length;return this.resize(D+1),this.emplace(D,S)}emplace(S,D){return this.uint16[1*S+0]=D,S}}hn.prototype.bytesPerElement=2,Si("StructArrayLayout1ui2",hn);class Zn extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X,ie){let ve=this.length;return this.resize(ve+1),this.emplace(ve,S,D,X,ie)}emplace(S,D,X,ie,ve){let we=4*S;return this.float32[we+0]=D,this.float32[we+1]=X,this.float32[we+2]=ie,this.float32[we+3]=ve,S}}Zn.prototype.bytesPerElement=16,Si("StructArrayLayout4f16",Zn);class Yn extends ee{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new l(this.anchorPointX,this.anchorPointY)}}Yn.prototype.size=20;class Ua extends lt{get(S){return new Yn(this,S)}}Si("CollisionBoxArray",Ua);class Fo extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(S){this._structArray.uint8[this._pos1+37]=S}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(S){this._structArray.uint8[this._pos1+38]=S}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(S){this._structArray.uint32[this._pos4+10]=S}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Fo.prototype.size=48;class vl extends fr{get(S){return new Fo(this,S)}}Si("PlacedSymbolArray",vl);class Us extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(S){this._structArray.uint32[this._pos4+12]=S}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}Us.prototype.size=64;class ml extends Ar{get(S){return new Us(this,S)}}Si("SymbolInstanceArray",ml);class au extends Rr{getoffsetX(S){return this.float32[1*S+0]}}Si("GlyphOffsetArray",au);class Sl extends Ft{getx(S){return this.int16[3*S+0]}gety(S){return this.int16[3*S+1]}gettileUnitDistanceFromAnchor(S){return this.int16[3*S+2]}}Si("SymbolLineVertexArray",Sl);class Yl extends ee{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}Yl.prototype.size=12;class ql extends ri{get(S){return new Yl(this,S)}}Si("TextAnchorOffsetArray",ql);class ou extends ee{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}ou.prototype.size=8;class Pu extends si{get(S){return new ou(this,S)}}Si("FeatureIndexArray",Pu);class iu extends mt{}class tu extends mt{}class Wu extends mt{}class Qu extends or{}class Ju extends kr{}class ju extends Vr{}class Xu extends he{}class lf extends Se{}class xf extends qe{}class ef extends He{}class tf extends tt{}class Z extends Ht{}class se extends nr{}class ze extends Mi{}let Xe=Ge([{name:"a_pos",components:2,type:"Int16"}],4),{members:Qe}=Xe;class ot{constructor(S=[]){this.segments=S}prepareSegment(S,D,X,ie){let ve=this.segments[this.segments.length-1];return S>ot.MAX_VERTEX_ARRAY_LENGTH&&A(`Max vertices per segment is ${ot.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${S}`),(!ve||ve.vertexLength+S>ot.MAX_VERTEX_ARRAY_LENGTH||ve.sortKey!==ie)&&(ve={vertexOffset:D.length,primitiveOffset:X.length,vertexLength:0,primitiveLength:0},ie!==void 0&&(ve.sortKey=ie),this.segments.push(ve)),ve}get(){return this.segments}destroy(){for(let S of this.segments)for(let D in S.vaos)S.vaos[D].destroy()}static simpleSegment(S,D,X,ie){return new ot([{vertexOffset:S,primitiveOffset:D,vertexLength:X,primitiveLength:ie,vaos:{},sortKey:0}])}}function jt(I,S){return 256*(I=E(Math.floor(I),0,255))+E(Math.floor(S),0,255)}ot.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Si("SegmentVector",ot);let _t=Ge([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var cr={exports:{}},Cr={exports:{}};Cr.exports=function(I,S){var D,X,ie,ve,we,We,ut,Mt;for(X=I.length-(D=3&I.length),ie=S,we=3432918353,We=461845907,Mt=0;Mt>>16)*we&65535)<<16)&4294967295)<<15|ut>>>17))*We+(((ut>>>16)*We&65535)<<16)&4294967295)<<13|ie>>>19))+((5*(ie>>>16)&65535)<<16)&4294967295))+((58964+(ve>>>16)&65535)<<16);switch(ut=0,D){case 3:ut^=(255&I.charCodeAt(Mt+2))<<16;case 2:ut^=(255&I.charCodeAt(Mt+1))<<8;case 1:ie^=ut=(65535&(ut=(ut=(65535&(ut^=255&I.charCodeAt(Mt)))*we+(((ut>>>16)*we&65535)<<16)&4294967295)<<15|ut>>>17))*We+(((ut>>>16)*We&65535)<<16)&4294967295}return ie^=I.length,ie=2246822507*(65535&(ie^=ie>>>16))+((2246822507*(ie>>>16)&65535)<<16)&4294967295,ie=3266489909*(65535&(ie^=ie>>>13))+((3266489909*(ie>>>16)&65535)<<16)&4294967295,(ie^=ie>>>16)>>>0};var zr=Cr.exports,ui={exports:{}};ui.exports=function(I,S){for(var D,X=I.length,ie=S^X,ve=0;X>=4;)D=1540483477*(65535&(D=255&I.charCodeAt(ve)|(255&I.charCodeAt(++ve))<<8|(255&I.charCodeAt(++ve))<<16|(255&I.charCodeAt(++ve))<<24))+((1540483477*(D>>>16)&65535)<<16),ie=1540483477*(65535&ie)+((1540483477*(ie>>>16)&65535)<<16)^(D=1540483477*(65535&(D^=D>>>24))+((1540483477*(D>>>16)&65535)<<16)),X-=4,++ve;switch(X){case 3:ie^=(255&I.charCodeAt(ve+2))<<16;case 2:ie^=(255&I.charCodeAt(ve+1))<<8;case 1:ie=1540483477*(65535&(ie^=255&I.charCodeAt(ve)))+((1540483477*(ie>>>16)&65535)<<16)}return ie=1540483477*(65535&(ie^=ie>>>13))+((1540483477*(ie>>>16)&65535)<<16),(ie^=ie>>>15)>>>0};var $r=zr,Oi=ui.exports;cr.exports=$r,cr.exports.murmur3=$r,cr.exports.murmur2=Oi;var fn=o(cr.exports);class vi{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(S,D,X,ie){this.ids.push(zi(S)),this.positions.push(D,X,ie)}getPositions(S){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let D=zi(S),X=0,ie=this.ids.length-1;for(;X>1;this.ids[we]>=D?ie=we:X=we+1}let ve=[];for(;this.ids[X]===D;)ve.push({index:this.positions[3*X],start:this.positions[3*X+1],end:this.positions[3*X+2]}),X++;return ve}static serialize(S,D){let X=new Float64Array(S.ids),ie=new Uint32Array(S.positions);return Xi(X,ie,0,X.length-1),D&&D.push(X.buffer,ie.buffer),{ids:X,positions:ie}}static deserialize(S){let D=new vi;return D.ids=S.ids,D.positions=S.positions,D.indexed=!0,D}}function zi(I){let S=+I;return!isNaN(S)&&S<=Number.MAX_SAFE_INTEGER?S:fn(String(I))}function Xi(I,S,D,X){for(;D>1],ve=D-1,we=X+1;for(;;){do ve++;while(I[ve]ie);if(ve>=we)break;pn(I,ve,we),pn(S,3*ve,3*we),pn(S,3*ve+1,3*we+1),pn(S,3*ve+2,3*we+2)}we-D`u_${ie}`),this.type=X}setUniform(S,D,X){S.set(X.constantOr(this.value))}getBinding(S,D,X){return this.type==="color"?new no(S,D):new bi(S,D)}}class Pl{constructor(S,D){this.uniformNames=D.map(X=>`u_${X}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(S,D){this.pixelRatioFrom=D.pixelRatio,this.pixelRatioTo=S.pixelRatio,this.patternFrom=D.tlbr,this.patternTo=S.tlbr}setUniform(S,D,X,ie){let ve=ie==="u_pattern_to"?this.patternTo:ie==="u_pattern_from"?this.patternFrom:ie==="u_pixel_ratio_to"?this.pixelRatioTo:ie==="u_pixel_ratio_from"?this.pixelRatioFrom:null;ve&&S.set(ve)}getBinding(S,D,X){return X.substr(0,9)==="u_pattern"?new xo(S,D):new bi(S,D)}}class pu{constructor(S,D,X,ie){this.expression=S,this.type=X,this.maxValue=0,this.paintVertexAttributes=D.map(ve=>({name:`a_${ve}`,type:"Float32",components:X==="color"?2:1,offset:0})),this.paintVertexArray=new ie}populatePaintArray(S,D,X,ie,ve){let we=this.paintVertexArray.length,We=this.expression.evaluate(new cs(0),D,{},ie,[],ve);this.paintVertexArray.resize(S),this._setPaintValue(we,S,We)}updatePaintArray(S,D,X,ie){let ve=this.expression.evaluate({zoom:0},X,ie);this._setPaintValue(S,D,ve)}_setPaintValue(S,D,X){if(this.type==="color"){let ie=js(X);for(let ve=S;ve`u_${We}_t`),this.type=X,this.useIntegerZoom=ie,this.zoom=ve,this.maxValue=0,this.paintVertexAttributes=D.map(We=>({name:`a_${We}`,type:"Float32",components:X==="color"?4:2,offset:0})),this.paintVertexArray=new we}populatePaintArray(S,D,X,ie,ve){let we=this.expression.evaluate(new cs(this.zoom),D,{},ie,[],ve),We=this.expression.evaluate(new cs(this.zoom+1),D,{},ie,[],ve),ut=this.paintVertexArray.length;this.paintVertexArray.resize(S),this._setPaintValue(ut,S,we,We)}updatePaintArray(S,D,X,ie){let ve=this.expression.evaluate({zoom:this.zoom},X,ie),we=this.expression.evaluate({zoom:this.zoom+1},X,ie);this._setPaintValue(S,D,ve,we)}_setPaintValue(S,D,X,ie){if(this.type==="color"){let ve=js(X),we=js(ie);for(let We=S;We`#define HAS_UNIFORM_${ie}`))}return S}getBinderAttributes(){let S=[];for(let D in this.binders){let X=this.binders[D];if(X instanceof pu||X instanceof Il)for(let ie=0;ie!0){this.programConfigurations={};for(let ie of S)this.programConfigurations[ie.id]=new Zu(ie,D,X);this.needsUpload=!1,this._featureMap=new vi,this._bufferOffset=0}populatePaintArrays(S,D,X,ie,ve,we){for(let We in this.programConfigurations)this.programConfigurations[We].populatePaintArrays(S,D,ie,ve,we);D.id!==void 0&&this._featureMap.add(D.id,X,this._bufferOffset,S),this._bufferOffset=S,this.needsUpload=!0}updatePaintArrays(S,D,X,ie){for(let ve of X)this.needsUpload=this.programConfigurations[ve.id].updatePaintArrays(S,this._featureMap,D,ve,ie)||this.needsUpload}get(S){return this.programConfigurations[S]}upload(S){if(this.needsUpload){for(let D in this.programConfigurations)this.programConfigurations[D].upload(S);this.needsUpload=!1}}destroy(){for(let S in this.programConfigurations)this.programConfigurations[S].destroy()}}function rf(I,S){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[I]||[I.replace(`${S}-`,"").replace(/-/g,"_")]}function ds(I,S,D){let X={color:{source:Vr,composite:Zn},number:{source:Rr,composite:Vr}},ie=function(ve){return{"line-pattern":{source:Xu,composite:Xu},"fill-pattern":{source:Xu,composite:Xu},"fill-extrusion-pattern":{source:Xu,composite:Xu}}[ve]}(I);return ie&&ie[D]||X[S][D]}Si("ConstantBinder",El),Si("CrossFadedConstantBinder",Pl),Si("SourceExpressionBinder",pu),Si("CrossFadedCompositeBinder",fu),Si("CompositeExpressionBinder",Il),Si("ProgramConfiguration",Zu,{omit:["_buffers"]}),Si("ProgramConfigurationSet",Gu);let Wl=8192,Au=Math.pow(2,14)-1,Tu=-Au-1;function uf(I){let S=Wl/I.extent,D=I.loadGeometry();for(let X=0;Xwe.x+1||utwe.y+1)&&A("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return D}function df(I,S){return{type:I.type,id:I.id,properties:I.properties,geometry:S?uf(I):[]}}function Ef(I,S,D,X,ie){I.emplaceBack(2*S+(X+1)/2,2*D+(ie+1)/2)}class vf{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(D=>D.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new tu,this.indexArray=new se,this.segments=new ot,this.programConfigurations=new Gu(S.layers,S.zoom),this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){let ie=this.layers[0],ve=[],we=null,We=!1;ie.type==="circle"&&(we=ie.layout.get("circle-sort-key"),We=!we.isConstant());for(let{feature:ut,id:Mt,index:$t,sourceLayerIndex:vr}of S){let Sr=this.layers[0]._featureFilter.needGeometry,Br=df(ut,Sr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Br,X))continue;let Jr=We?we.evaluate(Br,{},X):void 0,li={id:Mt,properties:ut.properties,type:ut.type,sourceLayerIndex:vr,index:$t,geometry:Sr?Br.geometry:uf(ut),patterns:{},sortKey:Jr};ve.push(li)}We&&ve.sort((ut,Mt)=>ut.sortKey-Mt.sortKey);for(let ut of ve){let{geometry:Mt,index:$t,sourceLayerIndex:vr}=ut,Sr=S[$t].feature;this.addFeature(ut,Mt,$t,X),D.featureIndex.insert(Sr,Mt,$t,vr,this.index)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,Qe),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(S,D,X,ie){for(let ve of D)for(let we of ve){let We=we.x,ut=we.y;if(We<0||We>=Wl||ut<0||ut>=Wl)continue;let Mt=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,S.sortKey),$t=Mt.vertexLength;Ef(this.layoutVertexArray,We,ut,-1,-1),Ef(this.layoutVertexArray,We,ut,1,-1),Ef(this.layoutVertexArray,We,ut,1,1),Ef(this.layoutVertexArray,We,ut,-1,1),this.indexArray.emplaceBack($t,$t+1,$t+2),this.indexArray.emplaceBack($t,$t+3,$t+2),Mt.vertexLength+=4,Mt.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,X,{},ie)}}function fc(I,S){for(let D=0;D1){if(Qr(I,S))return!0;for(let X=0;X1?D:D.sub(S)._mult(ie)._add(S))}function on(I,S){let D,X,ie,ve=!1;for(let we=0;weS.y!=ie.y>S.y&&S.x<(ie.x-X.x)*(S.y-X.y)/(ie.y-X.y)+X.x&&(ve=!ve)}return ve}function Bn(I,S){let D=!1;for(let X=0,ie=I.length-1;XS.y!=we.y>S.y&&S.x<(we.x-ve.x)*(S.y-ve.y)/(we.y-ve.y)+ve.x&&(D=!D)}return D}function Ln(I,S,D){let X=D[0],ie=D[2];if(I.xie.x&&S.x>ie.x||I.yie.y&&S.y>ie.y)return!1;let ve=B(I,S,D[0]);return ve!==B(I,S,D[1])||ve!==B(I,S,D[2])||ve!==B(I,S,D[3])}function wn(I,S,D){let X=S.paint.get(I).value;return X.kind==="constant"?X.value:D.programConfigurations.get(S.id).getMaxValue(I)}function Ls(I){return Math.sqrt(I[0]*I[0]+I[1]*I[1])}function ua(I,S,D,X,ie){if(!S[0]&&!S[1])return I;let ve=l.convert(S)._mult(ie);D==="viewport"&&ve._rotate(-X);let we=[];for(let We=0;WeUi(Hi,li))}(Mt,ut),Br=vr?$t*We:$t;for(let Jr of ie)for(let li of Jr){let Hi=vr?li:Ui(li,ut),cn=Br,Za=hs([],[li.x,li.y,0,1],ut);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?cn*=Za[3]/we.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(cn*=we.cameraToCenterDistance/Za[3]),Be(Sr,Hi,cn))return!0}return!1}}function Ui(I,S){let D=hs([],[I.x,I.y,0,1],S);return new l(D[0]/D[3],D[1]/D[3])}class ro extends vf{}let na;Si("HeatmapBucket",ro,{omit:["layers"]});var On={get paint(){return na=na||new le({"heatmap-radius":new Os(ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Os(ce.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new ms(ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Ul(ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new ms(ce.paint_heatmap["heatmap-opacity"])})}};function In(I,{width:S,height:D},X,ie){if(ie){if(ie instanceof Uint8ClampedArray)ie=new Uint8Array(ie.buffer);else if(ie.length!==S*D*X)throw new RangeError(`mismatched image size. expected: ${ie.length} but got: ${S*D*X}`)}else ie=new Uint8Array(S*D*X);return I.width=S,I.height=D,I.data=ie,I}function Va(I,{width:S,height:D},X){if(S===I.width&&D===I.height)return;let ie=In({},{width:S,height:D},X);_s(I,ie,{x:0,y:0},{x:0,y:0},{width:Math.min(I.width,S),height:Math.min(I.height,D)},X),I.width=S,I.height=D,I.data=ie.data}function _s(I,S,D,X,ie,ve){if(ie.width===0||ie.height===0)return S;if(ie.width>I.width||ie.height>I.height||D.x>I.width-ie.width||D.y>I.height-ie.height)throw new RangeError("out of range source coordinates for image copy");if(ie.width>S.width||ie.height>S.height||X.x>S.width-ie.width||X.y>S.height-ie.height)throw new RangeError("out of range destination coordinates for image copy");let we=I.data,We=S.data;if(we===We)throw new Error("srcData equals dstData, so image is already copied");for(let ut=0;ut{S[I.evaluationKey]=ut;let Mt=I.expression.evaluate(S);ie.data[we+We+0]=Math.floor(255*Mt.r/Mt.a),ie.data[we+We+1]=Math.floor(255*Mt.g/Mt.a),ie.data[we+We+2]=Math.floor(255*Mt.b/Mt.a),ie.data[we+We+3]=Math.floor(255*Mt.a)};if(I.clips)for(let we=0,We=0;we80*D){We=1/0,ut=1/0;let $t=-1/0,vr=-1/0;for(let Sr=D;Sr$t&&($t=Br),Jr>vr&&(vr=Jr)}Mt=Math.max($t-We,vr-ut),Mt=Mt!==0?32767/Mt:0}return Lf(ve,we,D,We,ut,Mt,0),we}function _f(I,S,D,X,ie){let ve;if(ie===function(we,We,ut,Mt){let $t=0;for(let vr=We,Sr=ut-Mt;vr0)for(let we=S;we=S;we-=X)ve=lr(we/X|0,I[we],I[we+1],ve);return ve&&ne(ve,ve.next)&&(Je(ve),ve=ve.next),ve}function bf(I,S){if(!I)return I;S||(S=I);let D,X=I;do if(D=!1,X.steiner||!ne(X,X.next)&&_e(X.prev,X,X.next)!==0)X=X.next;else{if(Je(X),X=S=X.prev,X===X.next)break;D=!0}while(D||X!==S);return S}function Lf(I,S,D,X,ie,ve,we){if(!I)return;!we&&ve&&function(ut,Mt,$t,vr){let Sr=ut;do Sr.z===0&&(Sr.z=R(Sr.x,Sr.y,Mt,$t,vr)),Sr.prevZ=Sr.prev,Sr.nextZ=Sr.next,Sr=Sr.next;while(Sr!==ut);Sr.prevZ.nextZ=null,Sr.prevZ=null,function(Br){let Jr,li=1;do{let Hi,cn=Br;Br=null;let Za=null;for(Jr=0;cn;){Jr++;let Rn=cn,La=0;for(let kl=0;kl0||So>0&&Rn;)La!==0&&(So===0||!Rn||cn.z<=Rn.z)?(Hi=cn,cn=cn.nextZ,La--):(Hi=Rn,Rn=Rn.nextZ,So--),Za?Za.nextZ=Hi:Br=Hi,Hi.prevZ=Za,Za=Hi;cn=Rn}Za.nextZ=null,li*=2}while(Jr>1)}(Sr)}(I,X,ie,ve);let We=I;for(;I.prev!==I.next;){let ut=I.prev,Mt=I.next;if(ve?hf(I,X,ie,ve):Hu(I))S.push(ut.i,I.i,Mt.i),Je(I),I=Mt.next,We=Mt.next;else if((I=Mt)===We){we?we===1?Lf(I=yf(bf(I),S),S,D,X,ie,ve,2):we===2&&Fl(I,S,D,X,ie,ve):Lf(bf(I),S,D,X,ie,ve,1);break}}}function Hu(I){let S=I.prev,D=I,X=I.next;if(_e(S,D,X)>=0)return!1;let ie=S.x,ve=D.x,we=X.x,We=S.y,ut=D.y,Mt=X.y,$t=ieve?ie>we?ie:we:ve>we?ve:we,Br=We>ut?We>Mt?We:Mt:ut>Mt?ut:Mt,Jr=X.next;for(;Jr!==S;){if(Jr.x>=$t&&Jr.x<=Sr&&Jr.y>=vr&&Jr.y<=Br&&O(ie,We,ve,ut,we,Mt,Jr.x,Jr.y)&&_e(Jr.prev,Jr,Jr.next)>=0)return!1;Jr=Jr.next}return!0}function hf(I,S,D,X){let ie=I.prev,ve=I,we=I.next;if(_e(ie,ve,we)>=0)return!1;let We=ie.x,ut=ve.x,Mt=we.x,$t=ie.y,vr=ve.y,Sr=we.y,Br=Weut?We>Mt?We:Mt:ut>Mt?ut:Mt,Hi=$t>vr?$t>Sr?$t:Sr:vr>Sr?vr:Sr,cn=R(Br,Jr,S,D,X),Za=R(li,Hi,S,D,X),Rn=I.prevZ,La=I.nextZ;for(;Rn&&Rn.z>=cn&&La&&La.z<=Za;){if(Rn.x>=Br&&Rn.x<=li&&Rn.y>=Jr&&Rn.y<=Hi&&Rn!==ie&&Rn!==we&&O(We,$t,ut,vr,Mt,Sr,Rn.x,Rn.y)&&_e(Rn.prev,Rn,Rn.next)>=0||(Rn=Rn.prevZ,La.x>=Br&&La.x<=li&&La.y>=Jr&&La.y<=Hi&&La!==ie&&La!==we&&O(We,$t,ut,vr,Mt,Sr,La.x,La.y)&&_e(La.prev,La,La.next)>=0))return!1;La=La.nextZ}for(;Rn&&Rn.z>=cn;){if(Rn.x>=Br&&Rn.x<=li&&Rn.y>=Jr&&Rn.y<=Hi&&Rn!==ie&&Rn!==we&&O(We,$t,ut,vr,Mt,Sr,Rn.x,Rn.y)&&_e(Rn.prev,Rn,Rn.next)>=0)return!1;Rn=Rn.prevZ}for(;La&&La.z<=Za;){if(La.x>=Br&&La.x<=li&&La.y>=Jr&&La.y<=Hi&&La!==ie&&La!==we&&O(We,$t,ut,vr,Mt,Sr,La.x,La.y)&&_e(La.prev,La,La.next)>=0)return!1;La=La.nextZ}return!0}function yf(I,S){let D=I;do{let X=D.prev,ie=D.next.next;!ne(X,ie)&&Le(X,D,D.next,ie)&&dr(X,ie)&&dr(ie,X)&&(S.push(X.i,D.i,ie.i),Je(D),Je(D.next),D=I=ie),D=D.next}while(D!==I);return bf(D)}function Fl(I,S,D,X,ie,ve){let we=I;do{let We=we.next.next;for(;We!==we.prev;){if(we.i!==We.i&&K(we,We)){let ut=Er(we,We);return we=bf(we,we.next),ut=bf(ut,ut.next),Lf(we,S,D,X,ie,ve,0),void Lf(ut,S,D,X,ie,ve,0)}We=We.next}we=we.next}while(we!==I)}function wf(I,S){return I.x-S.x}function cu(I,S){let D=function(ie,ve){let we=ve,We=ie.x,ut=ie.y,Mt,$t=-1/0;do{if(ut<=we.y&&ut>=we.next.y&&we.next.y!==we.y){let li=we.x+(ut-we.y)*(we.next.x-we.x)/(we.next.y-we.y);if(li<=We&&li>$t&&($t=li,Mt=we.x=we.x&&we.x>=Sr&&We!==we.x&&O(utMt.x||we.x===Mt.x&&Y(Mt,we)))&&(Mt=we,Jr=li)}we=we.next}while(we!==vr);return Mt}(I,S);if(!D)return S;let X=Er(D,I);return bf(X,X.next),bf(D,D.next)}function Y(I,S){return _e(I.prev,I,S.prev)<0&&_e(S.next,I,I.next)<0}function R(I,S,D,X,ie){return(I=1431655765&((I=858993459&((I=252645135&((I=16711935&((I=(I-D)*ie|0)|I<<8))|I<<4))|I<<2))|I<<1))|(S=1431655765&((S=858993459&((S=252645135&((S=16711935&((S=(S-X)*ie|0)|S<<8))|S<<4))|S<<2))|S<<1))<<1}function J(I){let S=I,D=I;do(S.x=(I-we)*(ve-We)&&(I-we)*(X-We)>=(D-we)*(S-We)&&(D-we)*(ve-We)>=(ie-we)*(X-We)}function K(I,S){return I.next.i!==S.i&&I.prev.i!==S.i&&!function(D,X){let ie=D;do{if(ie.i!==D.i&&ie.next.i!==D.i&&ie.i!==X.i&&ie.next.i!==X.i&&Le(ie,ie.next,D,X))return!0;ie=ie.next}while(ie!==D);return!1}(I,S)&&(dr(I,S)&&dr(S,I)&&function(D,X){let ie=D,ve=!1,we=(D.x+X.x)/2,We=(D.y+X.y)/2;do ie.y>We!=ie.next.y>We&&ie.next.y!==ie.y&&we<(ie.next.x-ie.x)*(We-ie.y)/(ie.next.y-ie.y)+ie.x&&(ve=!ve),ie=ie.next;while(ie!==D);return ve}(I,S)&&(_e(I.prev,I,S.prev)||_e(I,S.prev,S))||ne(I,S)&&_e(I.prev,I,I.next)>0&&_e(S.prev,S,S.next)>0)}function _e(I,S,D){return(S.y-I.y)*(D.x-S.x)-(S.x-I.x)*(D.y-S.y)}function ne(I,S){return I.x===S.x&&I.y===S.y}function Le(I,S,D,X){let ie=Ct(_e(I,S,D)),ve=Ct(_e(I,S,X)),we=Ct(_e(D,X,I)),We=Ct(_e(D,X,S));return ie!==ve&&we!==We||!(ie!==0||!Ze(I,D,S))||!(ve!==0||!Ze(I,X,S))||!(we!==0||!Ze(D,I,X))||!(We!==0||!Ze(D,S,X))}function Ze(I,S,D){return S.x<=Math.max(I.x,D.x)&&S.x>=Math.min(I.x,D.x)&&S.y<=Math.max(I.y,D.y)&&S.y>=Math.min(I.y,D.y)}function Ct(I){return I>0?1:I<0?-1:0}function dr(I,S){return _e(I.prev,I,I.next)<0?_e(I,S,I.next)>=0&&_e(I,I.prev,S)>=0:_e(I,S,I.prev)<0||_e(I,I.next,S)<0}function Er(I,S){let D=ht(I.i,I.x,I.y),X=ht(S.i,S.x,S.y),ie=I.next,ve=S.prev;return I.next=S,S.prev=I,D.next=ie,ie.prev=D,X.next=D,D.prev=X,ve.next=X,X.prev=ve,X}function lr(I,S,D,X){let ie=ht(I,S,D);return X?(ie.next=X.next,ie.prev=X,X.next.prev=ie,X.next=ie):(ie.prev=ie,ie.next=ie),ie}function Je(I){I.next.prev=I.prev,I.prev.next=I.next,I.prevZ&&(I.prevZ.nextZ=I.nextZ),I.nextZ&&(I.nextZ.prevZ=I.prevZ)}function ht(I,S,D){return{i:I,x:S,y:D,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function bt(I,S,D){let X=D.patternDependencies,ie=!1;for(let ve of S){let we=ve.paint.get(`${I}-pattern`);we.isConstant()||(ie=!0);let We=we.constantOr(null);We&&(ie=!0,X[We.to]=!0,X[We.from]=!0)}return ie}function Kt(I,S,D,X,ie){let ve=ie.patternDependencies;for(let we of S){let We=we.paint.get(`${I}-pattern`).value;if(We.kind!=="constant"){let ut=We.evaluate({zoom:X-1},D,{},ie.availableImages),Mt=We.evaluate({zoom:X},D,{},ie.availableImages),$t=We.evaluate({zoom:X+1},D,{},ie.availableImages);ut=ut&&ut.name?ut.name:ut,Mt=Mt&&Mt.name?Mt.name:Mt,$t=$t&&$t.name?$t.name:$t,ve[ut]=!0,ve[Mt]=!0,ve[$t]=!0,D.patterns[we.id]={min:ut,mid:Mt,max:$t}}}return D}class sr{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(D=>D.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Wu,this.indexArray=new se,this.indexArray2=new ze,this.programConfigurations=new Gu(S.layers,S.zoom),this.segments=new ot,this.segments2=new ot,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){this.hasPattern=bt("fill",this.layers,D);let ie=this.layers[0].layout.get("fill-sort-key"),ve=!ie.isConstant(),we=[];for(let{feature:We,id:ut,index:Mt,sourceLayerIndex:$t}of S){let vr=this.layers[0]._featureFilter.needGeometry,Sr=df(We,vr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Sr,X))continue;let Br=ve?ie.evaluate(Sr,{},X,D.availableImages):void 0,Jr={id:ut,properties:We.properties,type:We.type,sourceLayerIndex:$t,index:Mt,geometry:vr?Sr.geometry:uf(We),patterns:{},sortKey:Br};we.push(Jr)}ve&&we.sort((We,ut)=>We.sortKey-ut.sortKey);for(let We of we){let{geometry:ut,index:Mt,sourceLayerIndex:$t}=We;if(this.hasPattern){let vr=Kt("fill",this.layers,We,this.zoom,D);this.patternFeatures.push(vr)}else this.addFeature(We,ut,Mt,X,{});D.featureIndex.insert(S[Mt].feature,ut,Mt,$t,this.index)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}addFeatures(S,D,X){for(let ie of this.patternFeatures)this.addFeature(ie,ie.geometry,ie.index,D,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,kf),this.indexBuffer=S.createIndexBuffer(this.indexArray),this.indexBuffer2=S.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(S,D,X,ie,ve){for(let we of Ys(D,500)){let We=0;for(let Br of we)We+=Br.length;let ut=this.segments.prepareSegment(We,this.layoutVertexArray,this.indexArray),Mt=ut.vertexLength,$t=[],vr=[];for(let Br of we){if(Br.length===0)continue;Br!==we[0]&&vr.push($t.length/2);let Jr=this.segments2.prepareSegment(Br.length,this.layoutVertexArray,this.indexArray2),li=Jr.vertexLength;this.layoutVertexArray.emplaceBack(Br[0].x,Br[0].y),this.indexArray2.emplaceBack(li+Br.length-1,li),$t.push(Br[0].x),$t.push(Br[0].y);for(let Hi=1;Hi>3}if(ie--,X===1||X===2)ve+=I.readSVarint(),we+=I.readSVarint(),X===1&&(S&&We.push(S),S=[]),S.push(new ci(ve,we));else{if(X!==7)throw new Error("unknown command "+X);S&&S.push(S[0].clone())}}return S&&We.push(S),We},Ki.prototype.bbox=function(){var I=this._pbf;I.pos=this._geometry;for(var S=I.readVarint()+I.pos,D=1,X=0,ie=0,ve=0,we=1/0,We=-1/0,ut=1/0,Mt=-1/0;I.pos>3}if(X--,D===1||D===2)(ie+=I.readSVarint())We&&(We=ie),(ve+=I.readSVarint())Mt&&(Mt=ve);else if(D!==7)throw new Error("unknown command "+D)}return[we,ut,We,Mt]},Ki.prototype.toGeoJSON=function(I,S,D){var X,ie,ve=this.extent*Math.pow(2,D),we=this.extent*I,We=this.extent*S,ut=this.loadGeometry(),Mt=Ki.types[this.type];function $t(Br){for(var Jr=0;Jr>3;ie=we===1?X.readString():we===2?X.readFloat():we===3?X.readDouble():we===4?X.readVarint64():we===5?X.readVarint():we===6?X.readSVarint():we===7?X.readBoolean():null}return ie}(D))}Pn.prototype.feature=function(I){if(I<0||I>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[I];var S=this._pbf.readVarint()+this._pbf.pos;return new ca(this._pbf,S,this.extent,this._keys,this._values)};var xa=Tn;function Zo(I,S,D){if(I===3){var X=new xa(D,D.readVarint()+D.pos);X.length&&(S[X.name]=X)}}Nr.VectorTile=function(I,S){this.layers=I.readFields(Zo,{},S)},Nr.VectorTileFeature=Cn,Nr.VectorTileLayer=Tn;let ru=Nr.VectorTileFeature.types,yu=Math.pow(2,13);function Du(I,S,D,X,ie,ve,we,We){I.emplaceBack(S,D,2*Math.floor(X*yu)+we,ie*yu*2,ve*yu*2,Math.round(We))}class vu{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(D=>D.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new Qu,this.centroidVertexArray=new iu,this.indexArray=new se,this.programConfigurations=new Gu(S.layers,S.zoom),this.segments=new ot,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){this.features=[],this.hasPattern=bt("fill-extrusion",this.layers,D);for(let{feature:ie,id:ve,index:we,sourceLayerIndex:We}of S){let ut=this.layers[0]._featureFilter.needGeometry,Mt=df(ie,ut);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Mt,X))continue;let $t={id:ve,sourceLayerIndex:We,index:we,geometry:ut?Mt.geometry:uf(ie),properties:ie.properties,type:ie.type,patterns:{}};this.hasPattern?this.features.push(Kt("fill-extrusion",this.layers,$t,this.zoom,D)):this.addFeature($t,$t.geometry,we,X,{}),D.featureIndex.insert(ie,$t.geometry,we,We,this.index,!0)}}addFeatures(S,D,X){for(let ie of this.features){let{geometry:ve}=ie;this.addFeature(ie,ve,ie.index,D,X)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,Tr),this.centroidVertexBuffer=S.createVertexBuffer(this.centroidVertexArray,Lt.members,!0),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(S,D,X,ie,ve){for(let we of Ys(D,500)){let We={x:0,y:0,vertexCount:0},ut=0;for(let Jr of we)ut+=Jr.length;let Mt=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Jr of we){if(Jr.length===0||$u(Jr))continue;let li=0;for(let Hi=0;Hi=1){let Za=Jr[Hi-1];if(!zu(cn,Za)){Mt.vertexLength+4>ot.MAX_VERTEX_ARRAY_LENGTH&&(Mt=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let Rn=cn.sub(Za)._perp()._unit(),La=Za.dist(cn);li+La>32768&&(li=0),Du(this.layoutVertexArray,cn.x,cn.y,Rn.x,Rn.y,0,0,li),Du(this.layoutVertexArray,cn.x,cn.y,Rn.x,Rn.y,0,1,li),We.x+=2*cn.x,We.y+=2*cn.y,We.vertexCount+=2,li+=La,Du(this.layoutVertexArray,Za.x,Za.y,Rn.x,Rn.y,0,0,li),Du(this.layoutVertexArray,Za.x,Za.y,Rn.x,Rn.y,0,1,li),We.x+=2*Za.x,We.y+=2*Za.y,We.vertexCount+=2;let So=Mt.vertexLength;this.indexArray.emplaceBack(So,So+2,So+1),this.indexArray.emplaceBack(So+1,So+2,So+3),Mt.vertexLength+=4,Mt.primitiveLength+=2}}}}if(Mt.vertexLength+ut>ot.MAX_VERTEX_ARRAY_LENGTH&&(Mt=this.segments.prepareSegment(ut,this.layoutVertexArray,this.indexArray)),ru[S.type]!=="Polygon")continue;let $t=[],vr=[],Sr=Mt.vertexLength;for(let Jr of we)if(Jr.length!==0){Jr!==we[0]&&vr.push($t.length/2);for(let li=0;liWl)||I.y===S.y&&(I.y<0||I.y>Wl)}function $u(I){return I.every(S=>S.x<0)||I.every(S=>S.x>Wl)||I.every(S=>S.y<0)||I.every(S=>S.y>Wl)}let Vf;Si("FillExtrusionBucket",vu,{omit:["layers","features"]});var wd={get paint(){return Vf=Vf||new le({"fill-extrusion-opacity":new ms(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Os(ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new ms(ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new ms(ce["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Xl(ce["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Os(ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Os(ce["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new ms(ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Ad extends q{constructor(S){super(S,wd)}createBucket(S){return new vu(S)}queryRadius(){return Ls(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(S,D,X,ie,ve,we,We,ut){let Mt=ua(S,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),we.angle,We),$t=this.paint.get("fill-extrusion-height").evaluate(D,X),vr=this.paint.get("fill-extrusion-base").evaluate(D,X),Sr=function(Jr,li,Hi,cn){let Za=[];for(let Rn of Jr){let La=[Rn.x,Rn.y,0,1];hs(La,La,li),Za.push(new l(La[0]/La[3],La[1]/La[3]))}return Za}(Mt,ut),Br=function(Jr,li,Hi,cn){let Za=[],Rn=[],La=cn[8]*li,So=cn[9]*li,kl=cn[10]*li,mu=cn[11]*li,Iu=cn[8]*Hi,su=cn[9]*Hi,yl=cn[10]*Hi,Eu=cn[11]*Hi;for(let bu of Jr){let _u=[],Xs=[];for(let Lu of bu){let xu=Lu.x,qu=Lu.y,vc=cn[0]*xu+cn[4]*qu+cn[12],cc=cn[1]*xu+cn[5]*qu+cn[13],Ch=cn[2]*xu+cn[6]*qu+cn[14],$p=cn[3]*xu+cn[7]*qu+cn[15],ud=Ch+kl,Lh=$p+mu,Wd=vc+Iu,jd=cc+su,Xd=Ch+yl,Jc=$p+Eu,Ph=new l((vc+La)/Lh,(cc+So)/Lh);Ph.z=ud/Lh,_u.push(Ph);let Cd=new l(Wd/Jc,jd/Jc);Cd.z=Xd/Jc,Xs.push(Cd)}Za.push(_u),Rn.push(Xs)}return[Za,Rn]}(ie,vr,$t,ut);return function(Jr,li,Hi){let cn=1/0;qt(Hi,li)&&(cn=Yp(Hi,li[0]));for(let Za=0;ZaD.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(D=>{this.gradients[D.id]={}}),this.layoutVertexArray=new Ju,this.layoutVertexArray2=new ju,this.indexArray=new se,this.programConfigurations=new Gu(S.layers,S.zoom),this.segments=new ot,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){this.hasPattern=bt("line",this.layers,D);let ie=this.layers[0].layout.get("line-sort-key"),ve=!ie.isConstant(),we=[];for(let{feature:We,id:ut,index:Mt,sourceLayerIndex:$t}of S){let vr=this.layers[0]._featureFilter.needGeometry,Sr=df(We,vr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Sr,X))continue;let Br=ve?ie.evaluate(Sr,{},X):void 0,Jr={id:ut,properties:We.properties,type:We.type,sourceLayerIndex:$t,index:Mt,geometry:vr?Sr.geometry:uf(We),patterns:{},sortKey:Br};we.push(Jr)}ve&&we.sort((We,ut)=>We.sortKey-ut.sortKey);for(let We of we){let{geometry:ut,index:Mt,sourceLayerIndex:$t}=We;if(this.hasPattern){let vr=Kt("line",this.layers,We,this.zoom,D);this.patternFeatures.push(vr)}else this.addFeature(We,ut,Mt,X,{});D.featureIndex.insert(S[Mt].feature,ut,Mt,$t,this.index)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}addFeatures(S,D,X){for(let ie of this.patternFeatures)this.addFeature(ie,ie.geometry,ie.index,D,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=S.createVertexBuffer(this.layoutVertexArray2,pv)),this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,dv),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(S){if(S.properties&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_end"))return{start:+S.properties.mapbox_clip_start,end:+S.properties.mapbox_clip_end}}addFeature(S,D,X,ie,ve){let we=this.layers[0].layout,We=we.get("line-join").evaluate(S,{}),ut=we.get("line-cap"),Mt=we.get("line-miter-limit"),$t=we.get("line-round-limit");this.lineClips=this.lineFeatureClips(S);for(let vr of D)this.addLine(vr,S,We,ut,Mt,$t);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,X,ve,ie)}addLine(S,D,X,ie,ve,we){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let cn=0;cn=2&&S[ut-1].equals(S[ut-2]);)ut--;let Mt=0;for(;Mt0;if(mu&&cn>Mt){let Eu=Sr.dist(Br);if(Eu>2*$t){let bu=Sr.sub(Sr.sub(Br)._mult($t/Eu)._round());this.updateDistance(Br,bu),this.addCurrentVertex(bu,li,0,0,vr),Br=bu}}let su=Br&&Jr,yl=su?X:We?"butt":ie;if(su&&yl==="round"&&(Sove&&(yl="bevel"),yl==="bevel"&&(So>2&&(yl="flipbevel"),So100)Za=Hi.mult(-1);else{let Eu=So*li.add(Hi).mag()/li.sub(Hi).mag();Za._perp()._mult(Eu*(Iu?-1:1))}this.addCurrentVertex(Sr,Za,0,0,vr),this.addCurrentVertex(Sr,Za.mult(-1),0,0,vr)}else if(yl==="bevel"||yl==="fakeround"){let Eu=-Math.sqrt(So*So-1),bu=Iu?Eu:0,_u=Iu?0:Eu;if(Br&&this.addCurrentVertex(Sr,li,bu,_u,vr),yl==="fakeround"){let Xs=Math.round(180*kl/Math.PI/20);for(let Lu=1;Lu2*$t){let bu=Sr.add(Jr.sub(Sr)._mult($t/Eu)._round());this.updateDistance(Sr,bu),this.addCurrentVertex(bu,Hi,0,0,vr),Sr=bu}}}}addCurrentVertex(S,D,X,ie,ve,we=!1){let We=D.y*ie-D.x,ut=-D.y-D.x*ie;this.addHalfVertex(S,D.x+D.y*X,D.y-D.x*X,we,!1,X,ve),this.addHalfVertex(S,We,ut,we,!0,-ie,ve),this.distance>Lp/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(S,D,X,ie,ve,we))}addHalfVertex({x:S,y:D},X,ie,ve,we,We,ut){let Mt=.5*(this.lineClips?this.scaledDistance*(Lp-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((S<<1)+(ve?1:0),(D<<1)+(we?1:0),Math.round(63*X)+128,Math.round(63*ie)+128,1+(We===0?0:We<0?-1:1)|(63&Mt)<<2,Mt>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let $t=ut.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,$t),ut.primitiveLength++),we?this.e2=$t:this.e1=$t}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(S,D){this.distance+=S.dist(D),this.updateScaledDistance()}}let Pp,ng;Si("LineBucket",Kp,{omit:["layers","patternFeatures"]});var cm={get paint(){return ng=ng||new le({"line-opacity":new Os(ce.paint_line["line-opacity"]),"line-color":new Os(ce.paint_line["line-color"]),"line-translate":new ms(ce.paint_line["line-translate"]),"line-translate-anchor":new ms(ce.paint_line["line-translate-anchor"]),"line-width":new Os(ce.paint_line["line-width"]),"line-gap-width":new Os(ce.paint_line["line-gap-width"]),"line-offset":new Os(ce.paint_line["line-offset"]),"line-blur":new Os(ce.paint_line["line-blur"]),"line-dasharray":new Gl(ce.paint_line["line-dasharray"]),"line-pattern":new Xl(ce.paint_line["line-pattern"]),"line-gradient":new Ul(ce.paint_line["line-gradient"])})},get layout(){return Pp=Pp||new le({"line-cap":new ms(ce.layout_line["line-cap"]),"line-join":new Os(ce.layout_line["line-join"]),"line-miter-limit":new ms(ce.layout_line["line-miter-limit"]),"line-round-limit":new ms(ce.layout_line["line-round-limit"]),"line-sort-key":new Os(ce.layout_line["line-sort-key"])})}};class vh extends Os{possiblyEvaluate(S,D){return D=new cs(Math.floor(D.zoom),{now:D.now,fadeDuration:D.fadeDuration,zoomHistory:D.zoomHistory,transition:D.transition}),super.possiblyEvaluate(S,D)}evaluate(S,D,X,ie){return D=L({},D,{zoom:Math.floor(D.zoom)}),super.evaluate(S,D,X,ie)}}let hm;class ag extends q{constructor(S){super(S,cm),this.gradientVersion=0,hm||(hm=new vh(cm.paint.properties["line-width"].specification),hm.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(S){if(S==="line-gradient"){let D=this.gradientExpression();this.stepInterpolant=!!function(X){return X._styleExpression!==void 0}(D)&&D._styleExpression.expression instanceof Zi,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(S,D){super.recalculate(S,D),this.paint._values["line-floorwidth"]=hm.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,S)}createBucket(S){return new Kp(S)}queryRadius(S){let D=S,X=jh(wn("line-width",this,D),wn("line-gap-width",this,D)),ie=wn("line-offset",this,D);return X/2+Math.abs(ie)+Ls(this.paint.get("line-translate"))}queryIntersectsFeature(S,D,X,ie,ve,we,We){let ut=ua(S,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),we.angle,We),Mt=We/2*jh(this.paint.get("line-width").evaluate(D,X),this.paint.get("line-gap-width").evaluate(D,X)),$t=this.paint.get("line-offset").evaluate(D,X);return $t&&(ie=function(vr,Sr){let Br=[];for(let Jr=0;Jr=3){for(let Hi=0;Hi0?S+2*I:I}let ry=Ge([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),w1=Ge([{name:"a_projected_pos",components:3,type:"Float32"}],4);Ge([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let A1=Ge([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Ge([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let og=Ge([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),iy=Ge([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function ny(I,S,D){return I.sections.forEach(X=>{X.text=function(ie,ve,we){let We=ve.layout.get("text-transform").evaluate(we,{});return We==="uppercase"?ie=ie.toLocaleUpperCase():We==="lowercase"&&(ie=ie.toLocaleLowerCase()),Js.applyArabicShaping&&(ie=Js.applyArabicShaping(ie)),ie}(X.text,S,D)}),I}Ge([{name:"triangle",components:3,type:"Uint16"}]),Ge([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Ge([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),Ge([{type:"Float32",name:"offsetX"}]),Ge([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Ge([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let wc={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};var Wf=24,Ed=ic,sg=function(I,S,D,X,ie){var ve,we,We=8*ie-X-1,ut=(1<>1,$t=-7,vr=D?ie-1:0,Sr=D?-1:1,Br=I[S+vr];for(vr+=Sr,ve=Br&(1<<-$t)-1,Br>>=-$t,$t+=We;$t>0;ve=256*ve+I[S+vr],vr+=Sr,$t-=8);for(we=ve&(1<<-$t)-1,ve>>=-$t,$t+=X;$t>0;we=256*we+I[S+vr],vr+=Sr,$t-=8);if(ve===0)ve=1-Mt;else{if(ve===ut)return we?NaN:1/0*(Br?-1:1);we+=Math.pow(2,X),ve-=Mt}return(Br?-1:1)*we*Math.pow(2,ve-X)},T1=function(I,S,D,X,ie,ve){var we,We,ut,Mt=8*ve-ie-1,$t=(1<>1,Sr=ie===23?Math.pow(2,-24)-Math.pow(2,-77):0,Br=X?0:ve-1,Jr=X?1:-1,li=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(We=isNaN(S)?1:0,we=$t):(we=Math.floor(Math.log(S)/Math.LN2),S*(ut=Math.pow(2,-we))<1&&(we--,ut*=2),(S+=we+vr>=1?Sr/ut:Sr*Math.pow(2,1-vr))*ut>=2&&(we++,ut/=2),we+vr>=$t?(We=0,we=$t):we+vr>=1?(We=(S*ut-1)*Math.pow(2,ie),we+=vr):(We=S*Math.pow(2,vr-1)*Math.pow(2,ie),we=0));ie>=8;I[D+Br]=255&We,Br+=Jr,We/=256,ie-=8);for(we=we<0;I[D+Br]=255&we,Br+=Jr,we/=256,Mt-=8);I[D+Br-Jr]|=128*li};function ic(I){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(I)?I:new Uint8Array(I||0),this.pos=0,this.type=0,this.length=this.buf.length}ic.Varint=0,ic.Fixed64=1,ic.Bytes=2,ic.Fixed32=5;var qx=4294967296,ay=1/qx,Mw=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function zp(I){return I.type===ic.Bytes?I.readVarint()+I.pos:I.pos+1}function oy(I,S,D){return D?4294967296*S+(I>>>0):4294967296*(S>>>0)+(I>>>0)}function Ew(I,S,D){var X=S<=16383?1:S<=2097151?2:S<=268435455?3:Math.floor(Math.log(S)/(7*Math.LN2));D.realloc(X);for(var ie=D.pos-1;ie>=I;ie--)D.buf[ie+X]=D.buf[ie]}function Nx(I,S){for(var D=0;D>>8,I[D+2]=S>>>16,I[D+3]=S>>>24}function mC(I,S){return(I[S]|I[S+1]<<8|I[S+2]<<16)+(I[S+3]<<24)}ic.prototype={destroy:function(){this.buf=null},readFields:function(I,S,D){for(D=D||this.length;this.pos>3,ve=this.pos;this.type=7&X,I(ie,S,this),this.pos===ve&&this.skip(X)}return S},readMessage:function(I,S){return this.readFields(I,S,this.readVarint()+this.pos)},readFixed32:function(){var I=lg(this.buf,this.pos);return this.pos+=4,I},readSFixed32:function(){var I=mC(this.buf,this.pos);return this.pos+=4,I},readFixed64:function(){var I=lg(this.buf,this.pos)+lg(this.buf,this.pos+4)*qx;return this.pos+=8,I},readSFixed64:function(){var I=lg(this.buf,this.pos)+mC(this.buf,this.pos+4)*qx;return this.pos+=8,I},readFloat:function(){var I=sg(this.buf,this.pos,!0,23,4);return this.pos+=4,I},readDouble:function(){var I=sg(this.buf,this.pos,!0,52,8);return this.pos+=8,I},readVarint:function(I){var S,D,X=this.buf;return S=127&(D=X[this.pos++]),D<128?S:(S|=(127&(D=X[this.pos++]))<<7,D<128?S:(S|=(127&(D=X[this.pos++]))<<14,D<128?S:(S|=(127&(D=X[this.pos++]))<<21,D<128?S:function(ie,ve,we){var We,ut,Mt=we.buf;if(We=(112&(ut=Mt[we.pos++]))>>4,ut<128||(We|=(127&(ut=Mt[we.pos++]))<<3,ut<128)||(We|=(127&(ut=Mt[we.pos++]))<<10,ut<128)||(We|=(127&(ut=Mt[we.pos++]))<<17,ut<128)||(We|=(127&(ut=Mt[we.pos++]))<<24,ut<128)||(We|=(1&(ut=Mt[we.pos++]))<<31,ut<128))return oy(ie,We,ve);throw new Error("Expected varint not more than 10 bytes")}(S|=(15&(D=X[this.pos]))<<28,I,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var I=this.readVarint();return I%2==1?(I+1)/-2:I/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var I=this.readVarint()+this.pos,S=this.pos;return this.pos=I,I-S>=12&&Mw?function(D,X,ie){return Mw.decode(D.subarray(X,ie))}(this.buf,S,I):function(D,X,ie){for(var ve="",we=X;we239?4:$t>223?3:$t>191?2:1;if(we+Sr>ie)break;Sr===1?$t<128&&(vr=$t):Sr===2?(192&(We=D[we+1]))==128&&(vr=(31&$t)<<6|63&We)<=127&&(vr=null):Sr===3?(ut=D[we+2],(192&(We=D[we+1]))==128&&(192&ut)==128&&((vr=(15&$t)<<12|(63&We)<<6|63&ut)<=2047||vr>=55296&&vr<=57343)&&(vr=null)):Sr===4&&(ut=D[we+2],Mt=D[we+3],(192&(We=D[we+1]))==128&&(192&ut)==128&&(192&Mt)==128&&((vr=(15&$t)<<18|(63&We)<<12|(63&ut)<<6|63&Mt)<=65535||vr>=1114112)&&(vr=null)),vr===null?(vr=65533,Sr=1):vr>65535&&(vr-=65536,ve+=String.fromCharCode(vr>>>10&1023|55296),vr=56320|1023&vr),ve+=String.fromCharCode(vr),we+=Sr}return ve}(this.buf,S,I)},readBytes:function(){var I=this.readVarint()+this.pos,S=this.buf.subarray(this.pos,I);return this.pos=I,S},readPackedVarint:function(I,S){if(this.type!==ic.Bytes)return I.push(this.readVarint(S));var D=zp(this);for(I=I||[];this.pos127;);else if(S===ic.Bytes)this.pos=this.readVarint()+this.pos;else if(S===ic.Fixed32)this.pos+=4;else{if(S!==ic.Fixed64)throw new Error("Unimplemented type: "+S);this.pos+=8}},writeTag:function(I,S){this.writeVarint(I<<3|S)},realloc:function(I){for(var S=this.length||16;S268435455||I<0?function(S,D){var X,ie;if(S>=0?(X=S%4294967296|0,ie=S/4294967296|0):(ie=~(-S/4294967296),4294967295^(X=~(-S%4294967296))?X=X+1|0:(X=0,ie=ie+1|0)),S>=18446744073709552e3||S<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");D.realloc(10),function(ve,we,We){We.buf[We.pos++]=127&ve|128,ve>>>=7,We.buf[We.pos++]=127&ve|128,ve>>>=7,We.buf[We.pos++]=127&ve|128,ve>>>=7,We.buf[We.pos++]=127&ve|128,We.buf[We.pos]=127&(ve>>>=7)}(X,0,D),function(ve,we){var We=(7&ve)<<4;we.buf[we.pos++]|=We|((ve>>>=3)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve)))))}(ie,D)}(I,this):(this.realloc(4),this.buf[this.pos++]=127&I|(I>127?128:0),I<=127||(this.buf[this.pos++]=127&(I>>>=7)|(I>127?128:0),I<=127||(this.buf[this.pos++]=127&(I>>>=7)|(I>127?128:0),I<=127||(this.buf[this.pos++]=I>>>7&127))))},writeSVarint:function(I){this.writeVarint(I<0?2*-I-1:2*I)},writeBoolean:function(I){this.writeVarint(!!I)},writeString:function(I){I=String(I),this.realloc(4*I.length),this.pos++;var S=this.pos;this.pos=function(X,ie,ve){for(var we,We,ut=0;ut55295&&we<57344){if(!We){we>56319||ut+1===ie.length?(X[ve++]=239,X[ve++]=191,X[ve++]=189):We=we;continue}if(we<56320){X[ve++]=239,X[ve++]=191,X[ve++]=189,We=we;continue}we=We-55296<<10|we-56320|65536,We=null}else We&&(X[ve++]=239,X[ve++]=191,X[ve++]=189,We=null);we<128?X[ve++]=we:(we<2048?X[ve++]=we>>6|192:(we<65536?X[ve++]=we>>12|224:(X[ve++]=we>>18|240,X[ve++]=we>>12&63|128),X[ve++]=we>>6&63|128),X[ve++]=63&we|128)}return ve}(this.buf,I,this.pos);var D=this.pos-S;D>=128&&Ew(S,D,this),this.pos=S-1,this.writeVarint(D),this.pos+=D},writeFloat:function(I){this.realloc(4),T1(this.buf,I,this.pos,!0,23,4),this.pos+=4},writeDouble:function(I){this.realloc(8),T1(this.buf,I,this.pos,!0,52,8),this.pos+=8},writeBytes:function(I){var S=I.length;this.writeVarint(S),this.realloc(S);for(var D=0;D=128&&Ew(D,X,this),this.pos=D-1,this.writeVarint(X),this.pos+=X},writeMessage:function(I,S,D){this.writeTag(I,ic.Bytes),this.writeRawMessage(S,D)},writePackedVarint:function(I,S){S.length&&this.writeMessage(I,Nx,S)},writePackedSVarint:function(I,S){S.length&&this.writeMessage(I,WO,S)},writePackedBoolean:function(I,S){S.length&&this.writeMessage(I,ZO,S)},writePackedFloat:function(I,S){S.length&&this.writeMessage(I,jO,S)},writePackedDouble:function(I,S){S.length&&this.writeMessage(I,XO,S)},writePackedFixed32:function(I,S){S.length&&this.writeMessage(I,qQ,S)},writePackedSFixed32:function(I,S){S.length&&this.writeMessage(I,YO,S)},writePackedFixed64:function(I,S){S.length&&this.writeMessage(I,KO,S)},writePackedSFixed64:function(I,S){S.length&&this.writeMessage(I,JO,S)},writeBytesField:function(I,S){this.writeTag(I,ic.Bytes),this.writeBytes(S)},writeFixed32Field:function(I,S){this.writeTag(I,ic.Fixed32),this.writeFixed32(S)},writeSFixed32Field:function(I,S){this.writeTag(I,ic.Fixed32),this.writeSFixed32(S)},writeFixed64Field:function(I,S){this.writeTag(I,ic.Fixed64),this.writeFixed64(S)},writeSFixed64Field:function(I,S){this.writeTag(I,ic.Fixed64),this.writeSFixed64(S)},writeVarintField:function(I,S){this.writeTag(I,ic.Varint),this.writeVarint(S)},writeSVarintField:function(I,S){this.writeTag(I,ic.Varint),this.writeSVarint(S)},writeStringField:function(I,S){this.writeTag(I,ic.Bytes),this.writeString(S)},writeFloatField:function(I,S){this.writeTag(I,ic.Fixed32),this.writeFloat(S)},writeDoubleField:function(I,S){this.writeTag(I,ic.Fixed64),this.writeDouble(S)},writeBooleanField:function(I,S){this.writeVarintField(I,!!S)}};var tM=o(Ed);let rM=3;function NQ(I,S,D){I===1&&D.readMessage($O,S)}function $O(I,S,D){if(I===3){let{id:X,bitmap:ie,width:ve,height:we,left:We,top:ut,advance:Mt}=D.readMessage(yC,{});S.push({id:X,bitmap:new ul({width:ve+2*rM,height:we+2*rM},ie),metrics:{width:ve,height:we,left:We,top:ut,advance:Mt}})}}function yC(I,S,D){I===1?S.id=D.readVarint():I===2?S.bitmap=D.readBytes():I===3?S.width=D.readVarint():I===4?S.height=D.readVarint():I===5?S.left=D.readSVarint():I===6?S.top=D.readSVarint():I===7&&(S.advance=D.readVarint())}let gC=rM;function iM(I){let S=0,D=0;for(let we of I)S+=we.w*we.h,D=Math.max(D,we.w);I.sort((we,We)=>We.h-we.h);let X=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(S/.95)),D),h:1/0}],ie=0,ve=0;for(let we of I)for(let We=X.length-1;We>=0;We--){let ut=X[We];if(!(we.w>ut.w||we.h>ut.h)){if(we.x=ut.x,we.y=ut.y,ve=Math.max(ve,we.y+we.h),ie=Math.max(ie,we.x+we.w),we.w===ut.w&&we.h===ut.h){let Mt=X.pop();We=0&&X>=S&&Lw[this.text.charCodeAt(X)];X--)D--;this.text=this.text.substring(S,D),this.sectionIndex=this.sectionIndex.slice(S,D)}substring(S,D){let X=new S1;return X.text=this.text.substring(S,D),X.sectionIndex=this.sectionIndex.slice(S,D),X.sections=this.sections,X}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((S,D)=>Math.max(S,this.sections[D].scale),0)}addTextSection(S,D){this.text+=S.text,this.sections.push(Vx.forText(S.scale,S.fontStack||D));let X=this.sections.length-1;for(let ie=0;ie=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Gx(I,S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr){let li=S1.fromFeature(I,ie),Hi;vr===i.ah.vertical&&li.verticalizePunctuation();let{processBidirectionalText:cn,processStyledBidirectionalText:Za}=Js;if(cn&&li.sections.length===1){Hi=[];let So=cn(li.toString(),M1(li,Mt,ve,S,X,Br));for(let kl of So){let mu=new S1;mu.text=kl,mu.sections=li.sections;for(let Iu=0;Iu0&&ev>rh&&(rh=ev)}else{let Rc=mu[jf.fontStack],fh=Rc&&Rc[mc];if(fh&&fh.rect)z1=fh.rect,Hc=fh.metrics;else{let ev=kl[jf.fontStack],mm=ev&&ev[mc];if(!mm)continue;Hc=mm.metrics}Dp=(Ph-jf.scale)*Wf}Qp?(So.verticalizable=!0,Xh.push({glyph:mc,imageName:v0,x:qu,y:vc+Dp,vertical:Qp,scale:jf.scale,fontStack:jf.fontStack,sectionIndex:Ac,metrics:Hc,rect:z1}),qu+=Gv*jf.scale+Xs):(Xh.push({glyph:mc,imageName:v0,x:qu,y:vc+Dp,vertical:Qp,scale:jf.scale,fontStack:jf.fontStack,sectionIndex:Ac,metrics:Hc,rect:z1}),qu+=Hc.advance*jf.scale+Xs)}Xh.length!==0&&(cc=Math.max(qu-Xs,cc),sy(Xh,0,Xh.length-1,$p,rh)),qu=0;let Rp=yl*Ph+rh;fd.lineOffset=Math.max(rh,Cd),vc+=Rp,Ch=Math.max(Rp,Ch),++ud}var Lh;let Wd=vc-kh,{horizontalAlign:jd,verticalAlign:Xd}=zw(Eu);(function(Jc,Ph,Cd,fd,Xh,rh,Rp,fp,jf){let Ac=(Ph-Cd)*Xh,mc=0;mc=rh!==Rp?-fp*fd-kh:(-fd*jf+.5)*Rp;for(let Dp of Jc)for(let Hc of Dp.positionedGlyphs)Hc.x+=Ac,Hc.y+=mc})(So.positionedLines,$p,jd,Xd,cc,Ch,yl,Wd,su.length),So.top+=-Xd*Wd,So.bottom=So.top+Wd,So.left+=-jd*cc,So.right=So.left+cc}(La,S,D,X,Hi,we,We,ut,vr,Mt,Sr,Jr),!function(So){for(let kl of So)if(kl.positionedGlyphs.length!==0)return!1;return!0}(Rn)&&La}let Lw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},QO={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},e9={40:!0};function _C(I,S,D,X,ie,ve){if(S.imageName){let we=X[S.imageName];return we?we.displaySize[0]*S.scale*Wf/ve+ie:0}{let we=D[S.fontStack],We=we&&we[I];return We?We.metrics.advance*S.scale+ie:0}}function xC(I,S,D,X){let ie=Math.pow(I-S,2);return X?I=0,Mt=0;for(let vr=0;vrMt){let $t=Math.ceil(ve/Mt);ie*=$t/we,we=$t}return{x1:X,y1:ie,x2:X+ve,y2:ie+we}}function AC(I,S,D,X,ie,ve){let we=I.image,We;if(we.content){let Hi=we.content,cn=we.pixelRatio||1;We=[Hi[0]/cn,Hi[1]/cn,we.displaySize[0]-Hi[2]/cn,we.displaySize[1]-Hi[3]/cn]}let ut=S.left*ve,Mt=S.right*ve,$t,vr,Sr,Br;D==="width"||D==="both"?(Br=ie[0]+ut-X[3],vr=ie[0]+Mt+X[1]):(Br=ie[0]+(ut+Mt-we.displaySize[0])/2,vr=Br+we.displaySize[0]);let Jr=S.top*ve,li=S.bottom*ve;return D==="height"||D==="both"?($t=ie[1]+Jr-X[0],Sr=ie[1]+li+X[2]):($t=ie[1]+(Jr+li-we.displaySize[1])/2,Sr=$t+we.displaySize[1]),{image:we,top:$t,right:vr,bottom:Sr,left:Br,collisionPadding:We}}let Wx=255,p0=128,ly=Wx*p0;function TC(I,S){let{expression:D}=S;if(D.kind==="constant")return{kind:"constant",layoutSize:D.evaluate(new cs(I+1))};if(D.kind==="source")return{kind:"source"};{let{zoomStops:X,interpolationType:ie}=D,ve=0;for(;vewe.id),this.index=S.index,this.pixelRatio=S.pixelRatio,this.sourceLayerIndex=S.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=En([]),this.placementViewportMatrix=En([]);let D=this.layers[0]._unevaluatedLayout._values;this.textSizeData=TC(this.zoom,D["text-size"]),this.iconSizeData=TC(this.zoom,D["icon-size"]);let X=this.layers[0].layout,ie=X.get("symbol-sort-key"),ve=X.get("symbol-z-order");this.canOverlap=nM(X,"text-overlap","text-allow-overlap")!=="never"||nM(X,"icon-overlap","icon-allow-overlap")!=="never"||X.get("text-ignore-placement")||X.get("icon-ignore-placement"),this.sortFeaturesByKey=ve!=="viewport-y"&&!ie.isConstant(),this.sortFeaturesByY=(ve==="viewport-y"||ve==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,X.get("symbol-placement")==="point"&&(this.writingModes=X.get("text-writing-mode").map(we=>i.ah[we])),this.stateDependentLayerIds=this.layers.filter(we=>we.isStateDependent()).map(we=>we.id),this.sourceID=S.sourceID}createArrays(){this.text=new sM(new Gu(this.layers,this.zoom,S=>/^text/.test(S))),this.icon=new sM(new Gu(this.layers,this.zoom,S=>/^icon/.test(S))),this.glyphOffsetArray=new au,this.lineVertexArray=new Sl,this.symbolInstances=new ml,this.textAnchorOffsets=new ql}calculateGlyphDependencies(S,D,X,ie,ve){for(let we=0;we0)&&(we.value.kind!=="constant"||we.value.value.length>0),$t=ut.value.kind!=="constant"||!!ut.value.value||Object.keys(ut.parameters).length>0,vr=ve.get("symbol-sort-key");if(this.features=[],!Mt&&!$t)return;let Sr=D.iconDependencies,Br=D.glyphDependencies,Jr=D.availableImages,li=new cs(this.zoom);for(let{feature:Hi,id:cn,index:Za,sourceLayerIndex:Rn}of S){let La=ie._featureFilter.needGeometry,So=df(Hi,La);if(!ie._featureFilter.filter(li,So,X))continue;let kl,mu;if(La||(So.geometry=uf(Hi)),Mt){let su=ie.getValueAndResolveTokens("text-field",So,X,Jr),yl=Ur.factory(su),Eu=this.hasRTLText=this.hasRTLText||oM(yl);(!Eu||Js.getRTLTextPluginStatus()==="unavailable"||Eu&&Js.isParsed())&&(kl=ny(yl,ie,So))}if($t){let su=ie.getValueAndResolveTokens("icon-image",So,X,Jr);mu=su instanceof yi?su:yi.fromString(su)}if(!kl&&!mu)continue;let Iu=this.sortFeaturesByKey?vr.evaluate(So,{},X):void 0;if(this.features.push({id:cn,text:kl,icon:mu,index:Za,sourceLayerIndex:Rn,geometry:So.geometry,properties:Hi.properties,type:r9[Hi.type],sortKey:Iu}),mu&&(Sr[mu.name]=!0),kl){let su=we.evaluate(So,{},X).join(","),yl=ve.get("text-rotation-alignment")!=="viewport"&&ve.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let Eu of kl.sections)if(Eu.image)Sr[Eu.image.name]=!0;else{let bu=is(kl.toString()),_u=Eu.fontStack||su,Xs=Br[_u]=Br[_u]||{};this.calculateGlyphDependencies(Eu.text,Xs,yl,this.allowVerticalPlacement,bu)}}}ve.get("symbol-placement")==="line"&&(this.features=function(Hi){let cn={},Za={},Rn=[],La=0;function So(su){Rn.push(Hi[su]),La++}function kl(su,yl,Eu){let bu=Za[su];return delete Za[su],Za[yl]=bu,Rn[bu].geometry[0].pop(),Rn[bu].geometry[0]=Rn[bu].geometry[0].concat(Eu[0]),bu}function mu(su,yl,Eu){let bu=cn[yl];return delete cn[yl],cn[su]=bu,Rn[bu].geometry[0].shift(),Rn[bu].geometry[0]=Eu[0].concat(Rn[bu].geometry[0]),bu}function Iu(su,yl,Eu){let bu=Eu?yl[0][yl[0].length-1]:yl[0][0];return`${su}:${bu.x}:${bu.y}`}for(let su=0;susu.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((Hi,cn)=>Hi.sortKey-cn.sortKey)}update(S,D,X){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(S,D,this.layers,X),this.icon.programConfigurations.updatePaintArrays(S,D,this.layers,X))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(S){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(S),this.iconCollisionBox.upload(S)),this.text.upload(S,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(S,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(S,D){let X=this.lineVertexArray.length;if(S.segment!==void 0){let ie=S.dist(D[S.segment+1]),ve=S.dist(D[S.segment]),we={};for(let We=S.segment+1;We=0;We--)we[We]={x:D[We].x,y:D[We].y,tileUnitDistanceFromAnchor:ve},We>0&&(ve+=D[We-1].dist(D[We]));for(let We=0;We0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(S,D){let X=S.placedSymbolArray.get(D),ie=X.vertexStartIndex+4*X.numGlyphs;for(let ve=X.vertexStartIndex;veie[We]-ie[ut]||ve[ut]-ve[We]),we}addToSortKeyRanges(S,D){let X=this.sortKeyRanges[this.sortKeyRanges.length-1];X&&X.sortKey===D?X.symbolInstanceEnd=S+1:this.sortKeyRanges.push({sortKey:D,symbolInstanceStart:S,symbolInstanceEnd:S+1})}sortFeatures(S){if(this.sortFeaturesByY&&this.sortedAngle!==S&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(S),this.sortedAngle=S,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let D of this.symbolInstanceIndexes){let X=this.symbolInstances.get(D);this.featureSortOrder.push(X.featureIndex),[X.rightJustifiedTextSymbolIndex,X.centerJustifiedTextSymbolIndex,X.leftJustifiedTextSymbolIndex].forEach((ie,ve,we)=>{ie>=0&&we.indexOf(ie)===ve&&this.addIndicesForPlacedSymbol(this.text,ie)}),X.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,X.verticalPlacedTextSymbolIndex),X.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,X.placedIconSymbolIndex),X.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,X.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let Kc,jx;Si("SymbolBucket",E1,{omit:["layers","collisionBoxArray","features","compareText"]}),E1.MAX_GLYPHS=65535,E1.addDynamicAttributes=aM;var Rw={get paint(){return jx=jx||new le({"icon-opacity":new Os(ce.paint_symbol["icon-opacity"]),"icon-color":new Os(ce.paint_symbol["icon-color"]),"icon-halo-color":new Os(ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new Os(ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Os(ce.paint_symbol["icon-halo-blur"]),"icon-translate":new ms(ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new ms(ce.paint_symbol["icon-translate-anchor"]),"text-opacity":new Os(ce.paint_symbol["text-opacity"]),"text-color":new Os(ce.paint_symbol["text-color"],{runtimeType:$e,getOverride:I=>I.textColor,hasOverride:I=>!!I.textColor}),"text-halo-color":new Os(ce.paint_symbol["text-halo-color"]),"text-halo-width":new Os(ce.paint_symbol["text-halo-width"]),"text-halo-blur":new Os(ce.paint_symbol["text-halo-blur"]),"text-translate":new ms(ce.paint_symbol["text-translate"]),"text-translate-anchor":new ms(ce.paint_symbol["text-translate-anchor"])})},get layout(){return Kc=Kc||new le({"symbol-placement":new ms(ce.layout_symbol["symbol-placement"]),"symbol-spacing":new ms(ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new ms(ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Os(ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new ms(ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new ms(ce.layout_symbol["icon-allow-overlap"]),"icon-overlap":new ms(ce.layout_symbol["icon-overlap"]),"icon-ignore-placement":new ms(ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new ms(ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new ms(ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new Os(ce.layout_symbol["icon-size"]),"icon-text-fit":new ms(ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new ms(ce.layout_symbol["icon-text-fit-padding"]),"icon-image":new Os(ce.layout_symbol["icon-image"]),"icon-rotate":new Os(ce.layout_symbol["icon-rotate"]),"icon-padding":new Os(ce.layout_symbol["icon-padding"]),"icon-keep-upright":new ms(ce.layout_symbol["icon-keep-upright"]),"icon-offset":new Os(ce.layout_symbol["icon-offset"]),"icon-anchor":new Os(ce.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new ms(ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new ms(ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new ms(ce.layout_symbol["text-rotation-alignment"]),"text-field":new Os(ce.layout_symbol["text-field"]),"text-font":new Os(ce.layout_symbol["text-font"]),"text-size":new Os(ce.layout_symbol["text-size"]),"text-max-width":new Os(ce.layout_symbol["text-max-width"]),"text-line-height":new ms(ce.layout_symbol["text-line-height"]),"text-letter-spacing":new Os(ce.layout_symbol["text-letter-spacing"]),"text-justify":new Os(ce.layout_symbol["text-justify"]),"text-radial-offset":new Os(ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ms(ce.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new Os(ce.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new Os(ce.layout_symbol["text-anchor"]),"text-max-angle":new ms(ce.layout_symbol["text-max-angle"]),"text-writing-mode":new ms(ce.layout_symbol["text-writing-mode"]),"text-rotate":new Os(ce.layout_symbol["text-rotate"]),"text-padding":new ms(ce.layout_symbol["text-padding"]),"text-keep-upright":new ms(ce.layout_symbol["text-keep-upright"]),"text-transform":new Os(ce.layout_symbol["text-transform"]),"text-offset":new Os(ce.layout_symbol["text-offset"]),"text-allow-overlap":new ms(ce.layout_symbol["text-allow-overlap"]),"text-overlap":new ms(ce.layout_symbol["text-overlap"]),"text-ignore-placement":new ms(ce.layout_symbol["text-ignore-placement"]),"text-optional":new ms(ce.layout_symbol["text-optional"])})}};class Xx{constructor(S){if(S.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=S.property.overrides?S.property.overrides.runtimeType:vt,this.defaultValue=S}evaluate(S){if(S.formattedSection){let D=this.defaultValue.property.overrides;if(D&&D.hasOverride(S.formattedSection))return D.getOverride(S.formattedSection)}return S.feature&&S.featureState?this.defaultValue.evaluate(S.feature,S.featureState):this.defaultValue.property.specification.default}eachChild(S){this.defaultValue.isConstant()||S(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Si("FormatSectionOverride",Xx,{omit:["defaultValue"]});class ug extends q{constructor(S){super(S,Rw)}recalculate(S,D){if(super.recalculate(S,D),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){let X=this.layout.get("text-writing-mode");if(X){let ie=[];for(let ve of X)ie.indexOf(ve)<0&&ie.push(ve);this.layout._values["text-writing-mode"]=ie}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(S,D,X,ie){let ve=this.layout.get(S).evaluate(D,{},X,ie),we=this._unevaluatedLayout._values[S];return we.isDataDriven()||Qs(we.value)||!ve?ve:function(We,ut){return ut.replace(/{([^{}]+)}/g,(Mt,$t)=>We&&$t in We?String(We[$t]):"")}(D.properties,ve)}createBucket(S){return new E1(S)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let S of Rw.paint.overridableProperties){if(!ug.hasPaintOverride(this.layout,S))continue;let D=this.paint.get(S),X=new Xx(D),ie=new Ma(X,D.property.specification),ve=null;ve=D.value.kind==="constant"||D.value.kind==="source"?new gs("source",ie):new Vo("composite",ie,D.value.zoomStops),this.paint._values[S]=new Al(D.property,ve,D.parameters)}}_handleOverridablePaintPropertyUpdate(S,D,X){return!(!this.layout||D.isDataDriven()||X.isDataDriven())&&ug.hasPaintOverride(this.layout,S)}static hasPaintOverride(S,D){let X=S.get("text-field"),ie=Rw.paint.properties[D],ve=!1,we=We=>{for(let ut of We)if(ie.overrides&&ie.overrides.hasOverride(ut))return void(ve=!0)};if(X.value.kind==="constant"&&X.value.value instanceof Ur)we(X.value.value.sections);else if(X.value.kind==="source"){let We=Mt=>{ve||(Mt instanceof Yr&&ti(Mt.value)===yr?we(Mt.value.sections):Mt instanceof wa?we(Mt.sections):Mt.eachChild(We))},ut=X.value;ut._styleExpression&&We(ut._styleExpression.expression)}return ve}}let SC;var Zx={get paint(){return SC=SC||new le({"background-color":new ms(ce.paint_background["background-color"]),"background-pattern":new Gl(ce.paint_background["background-pattern"]),"background-opacity":new ms(ce.paint_background["background-opacity"])})}};class n9 extends q{constructor(S){super(S,Zx)}}let lM;var MC={get paint(){return lM=lM||new le({"raster-opacity":new ms(ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new ms(ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new ms(ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new ms(ce.paint_raster["raster-brightness-max"]),"raster-saturation":new ms(ce.paint_raster["raster-saturation"]),"raster-contrast":new ms(ce.paint_raster["raster-contrast"]),"raster-resampling":new ms(ce.paint_raster["raster-resampling"]),"raster-fade-duration":new ms(ce.paint_raster["raster-fade-duration"])})}};class Yx extends q{constructor(S){super(S,MC)}}class uM extends q{constructor(S){super(S,{}),this.onAdd=D=>{this.implementation.onAdd&&this.implementation.onAdd(D,D.painter.context.gl)},this.onRemove=D=>{this.implementation.onRemove&&this.implementation.onRemove(D,D.painter.context.gl)},this.implementation=S}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class fM{constructor(S){this._methodToThrottle=S,this._triggered=!1,typeof MessageChannel!="undefined"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let cM=63710088e-1;class dm{constructor(S,D){if(isNaN(S)||isNaN(D))throw new Error(`Invalid LngLat object: (${S}, ${D})`);if(this.lng=+S,this.lat=+D,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new dm(T(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(S){let D=Math.PI/180,X=this.lat*D,ie=S.lat*D,ve=Math.sin(X)*Math.sin(ie)+Math.cos(X)*Math.cos(ie)*Math.cos((S.lng-this.lng)*D);return cM*Math.acos(Math.min(ve,1))}static convert(S){if(S instanceof dm)return S;if(Array.isArray(S)&&(S.length===2||S.length===3))return new dm(Number(S[0]),Number(S[1]));if(!Array.isArray(S)&&typeof S=="object"&&S!==null)return new dm(Number("lng"in S?S.lng:S.lon),Number(S.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let k1=2*Math.PI*cM;function EC(I){return k1*Math.cos(I*Math.PI/180)}function Dw(I){return(180+I)/360}function kC(I){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+I*Math.PI/360)))/360}function Fw(I,S){return I/EC(S)}function Kx(I){return 360/Math.PI*Math.atan(Math.exp((180-360*I)*Math.PI/180))-90}class Jx{constructor(S,D,X=0){this.x=+S,this.y=+D,this.z=+X}static fromLngLat(S,D=0){let X=dm.convert(S);return new Jx(Dw(X.lng),kC(X.lat),Fw(D,X.lat))}toLngLat(){return new dm(360*this.x-180,Kx(this.y))}toAltitude(){return this.z*EC(Kx(this.y))}meterInMercatorCoordinateUnits(){return 1/k1*(S=Kx(this.y),1/Math.cos(S*Math.PI/180));var S}}function vv(I,S,D){var X=2*Math.PI*6378137/256/Math.pow(2,D);return[I*X-2*Math.PI*6378137/2,S*X-2*Math.PI*6378137/2]}class hM{constructor(S,D,X){if(!function(ie,ve,we){return!(ie<0||ie>25||we<0||we>=Math.pow(2,ie)||ve<0||ve>=Math.pow(2,ie))}(S,D,X))throw new Error(`x=${D}, y=${X}, z=${S} outside of bounds. 0<=x<${Math.pow(2,S)}, 0<=y<${Math.pow(2,S)} 0<=z<=25 `);this.z=S,this.x=D,this.y=X,this.key=$x(0,S,S,D,X)}equals(S){return this.z===S.z&&this.x===S.x&&this.y===S.y}url(S,D,X){let ie=(we=this.y,We=this.z,ut=vv(256*(ve=this.x),256*(we=Math.pow(2,We)-we-1),We),Mt=vv(256*(ve+1),256*(we+1),We),ut[0]+","+ut[1]+","+Mt[0]+","+Mt[1]);var ve,we,We,ut,Mt;let $t=function(vr,Sr,Br){let Jr,li="";for(let Hi=vr;Hi>0;Hi--)Jr=1<1?"@2x":"").replace(/{quadkey}/g,$t).replace(/{bbox-epsg-3857}/g,ie)}isChildOf(S){let D=this.z-S.z;return D>0&&S.x===this.x>>D&&S.y===this.y>>D}getTilePoint(S){let D=Math.pow(2,this.z);return new l((S.x*D-this.x)*Wl,(S.y*D-this.y)*Wl)}toString(){return`${this.z}/${this.x}/${this.y}`}}class CC{constructor(S,D){this.wrap=S,this.canonical=D,this.key=$x(S,D.z,D.z,D.x,D.y)}}class Jp{constructor(S,D,X,ie,ve){if(S= z; overscaledZ = ${S}; z = ${X}`);this.overscaledZ=S,this.wrap=D,this.canonical=new hM(X,+ie,+ve),this.key=$x(D,S,X,ie,ve)}clone(){return new Jp(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(S){return this.overscaledZ===S.overscaledZ&&this.wrap===S.wrap&&this.canonical.equals(S.canonical)}scaledTo(S){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let D=this.canonical.z-S;return S>this.canonical.z?new Jp(S,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Jp(S,this.wrap,S,this.canonical.x>>D,this.canonical.y>>D)}calculateScaledKey(S,D){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let X=this.canonical.z-S;return S>this.canonical.z?$x(this.wrap*+D,S,this.canonical.z,this.canonical.x,this.canonical.y):$x(this.wrap*+D,S,S,this.canonical.x>>X,this.canonical.y>>X)}isChildOf(S){if(S.wrap!==this.wrap)return!1;let D=this.canonical.z-S.canonical.z;return S.overscaledZ===0||S.overscaledZ>D&&S.canonical.y===this.canonical.y>>D}children(S){if(this.overscaledZ>=S)return[new Jp(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let D=this.canonical.z+1,X=2*this.canonical.x,ie=2*this.canonical.y;return[new Jp(D,this.wrap,D,X,ie),new Jp(D,this.wrap,D,X+1,ie),new Jp(D,this.wrap,D,X,ie+1),new Jp(D,this.wrap,D,X+1,ie+1)]}isLessThan(S){return this.wrapS.wrap)&&(this.overscaledZS.overscaledZ)&&(this.canonical.xS.canonical.x)&&this.canonical.ythis.max&&(this.max=vr),vr=this.dim+1||D<-1||D>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(D+1)*this.stride+(S+1)}unpack(S,D,X){return S*this.redFactor+D*this.greenFactor+X*this.blueFactor-this.baseShift}getPixels(){return new Qn({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(S,D,X){if(this.dim!==S.dim)throw new Error("dem dimension mismatch");let ie=D*this.dim,ve=D*this.dim+this.dim,we=X*this.dim,We=X*this.dim+this.dim;switch(D){case-1:ie=ve-1;break;case 1:ve=ie+1}switch(X){case-1:we=We-1;break;case 1:We=we+1}let ut=-D*this.dim,Mt=-X*this.dim;for(let $t=we;$t=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${S} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[S]}}class dM{constructor(S,D,X,ie,ve){this.type="Feature",this._vectorTileFeature=S,S._z=D,S._x=X,S._y=ie,this.properties=S.properties,this.id=ve}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(S){this._geometry=S}toJSON(){let S={geometry:this.geometry};for(let D in this)D!=="_geometry"&&D!=="_vectorTileFeature"&&(S[D]=this[D]);return S}}class fg{constructor(S,D){this.tileID=S,this.x=S.canonical.x,this.y=S.canonical.y,this.z=S.canonical.z,this.grid=new hi(Wl,16,0),this.grid3D=new hi(Wl,16,0),this.featureIndexArray=new Pu,this.promoteId=D}insert(S,D,X,ie,ve,we){let We=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(X,ie,ve);let ut=we?this.grid3D:this.grid;for(let Mt=0;Mt=0&&vr[3]>=0&&ut.insert(We,vr[0],vr[1],vr[2],vr[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new Nr.VectorTile(new tM(this.rawTileData)).layers,this.sourceLayerCoder=new PC(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(S,D,X,ie){this.loadVTLayers();let ve=S.params||{},we=Wl/S.tileSize/S.scale,We=Jn(ve.filter),ut=S.queryGeometry,Mt=S.queryPadding*we,$t=IC(ut),vr=this.grid.query($t.minX-Mt,$t.minY-Mt,$t.maxX+Mt,$t.maxY+Mt),Sr=IC(S.cameraQueryGeometry),Br=this.grid3D.query(Sr.minX-Mt,Sr.minY-Mt,Sr.maxX+Mt,Sr.maxY+Mt,(Hi,cn,Za,Rn)=>function(La,So,kl,mu,Iu){for(let yl of La)if(So<=yl.x&&kl<=yl.y&&mu>=yl.x&&Iu>=yl.y)return!0;let su=[new l(So,kl),new l(So,Iu),new l(mu,Iu),new l(mu,kl)];if(La.length>2){for(let yl of su)if(Bn(La,yl))return!0}for(let yl=0;yl(Rn||(Rn=uf(La)),So.queryIntersectsFeature(ut,La,kl,Rn,this.z,S.transform,we,S.pixelPosMatrix)))}return Jr}loadMatchingFeature(S,D,X,ie,ve,we,We,ut,Mt,$t,vr){let Sr=this.bucketLayerIDs[D];if(we&&!function(Hi,cn){for(let Za=0;Za=0)return!0;return!1}(we,Sr))return;let Br=this.sourceLayerCoder.decode(X),Jr=this.vtLayers[Br].feature(ie);if(ve.needGeometry){let Hi=df(Jr,!0);if(!ve.filter(new cs(this.tileID.overscaledZ),Hi,this.tileID.canonical))return}else if(!ve.filter(new cs(this.tileID.overscaledZ),Jr))return;let li=this.getId(Jr,Br);for(let Hi=0;Hi{let We=S instanceof Ll?S.get(we):null;return We&&We.evaluate?We.evaluate(D,X,ie):We})}function IC(I){let S=1/0,D=1/0,X=-1/0,ie=-1/0;for(let ve of I)S=Math.min(S,ve.x),D=Math.min(D,ve.y),X=Math.max(X,ve.x),ie=Math.max(ie,ve.y);return{minX:S,minY:D,maxX:X,maxY:ie}}function a9(I,S){return S-I}function RC(I,S,D,X,ie){let ve=[];for(let we=0;we=X&&vr.x>=X||($t.x>=X?$t=new l(X,$t.y+(X-$t.x)/(vr.x-$t.x)*(vr.y-$t.y))._round():vr.x>=X&&(vr=new l(X,$t.y+(X-$t.x)/(vr.x-$t.x)*(vr.y-$t.y))._round()),$t.y>=ie&&vr.y>=ie||($t.y>=ie?$t=new l($t.x+(ie-$t.y)/(vr.y-$t.y)*(vr.x-$t.x),ie)._round():vr.y>=ie&&(vr=new l($t.x+(ie-$t.y)/(vr.y-$t.y)*(vr.x-$t.x),ie)._round()),ut&&$t.equals(ut[ut.length-1])||(ut=[$t],ve.push(ut)),ut.push(vr)))))}}return ve}Si("FeatureIndex",fg,{omit:["rawTileData","sourceLayerCoder"]});class pm extends l{constructor(S,D,X,ie){super(S,D),this.angle=X,ie!==void 0&&(this.segment=ie)}clone(){return new pm(this.x,this.y,this.angle,this.segment)}}function pM(I,S,D,X,ie){if(S.segment===void 0||D===0)return!0;let ve=S,we=S.segment+1,We=0;for(;We>-D/2;){if(we--,we<0)return!1;We-=I[we].dist(ve),ve=I[we]}We+=I[we].dist(I[we+1]),we++;let ut=[],Mt=0;for(;WeX;)Mt-=ut.shift().angleDelta;if(Mt>ie)return!1;we++,We+=$t.dist(vr)}return!0}function DC(I){let S=0;for(let D=0;DMt){let Jr=(Mt-ut)/Br,li=ka.number(vr.x,Sr.x,Jr),Hi=ka.number(vr.y,Sr.y,Jr),cn=new pm(li,Hi,Sr.angleTo(vr),$t);return cn._round(),!we||pM(I,cn,We,we,S)?cn:void 0}ut+=Br}}function s9(I,S,D,X,ie,ve,we,We,ut){let Mt=FC(X,ve,we),$t=BC(X,ie),vr=$t*we,Sr=I[0].x===0||I[0].x===ut||I[0].y===0||I[0].y===ut;return S-vr=0&&La=0&&So=0&&Sr+Mt<=$t){let kl=new pm(La,So,Za,Jr);kl._round(),X&&!pM(I,kl,ve,X,ie)||Br.push(kl)}}vr+=cn}return We||Br.length||we||(Br=OC(I,vr/2,D,X,ie,ve,we,!0,ut)),Br}Si("Anchor",pm);let C1=kd;function qC(I,S,D,X){let ie=[],ve=I.image,we=ve.pixelRatio,We=ve.paddedRect.w-2*C1,ut=ve.paddedRect.h-2*C1,Mt={x1:I.left,y1:I.top,x2:I.right,y2:I.bottom},$t=ve.stretchX||[[0,We]],vr=ve.stretchY||[[0,ut]],Sr=(Xs,Lu)=>Xs+Lu[1]-Lu[0],Br=$t.reduce(Sr,0),Jr=vr.reduce(Sr,0),li=We-Br,Hi=ut-Jr,cn=0,Za=Br,Rn=0,La=Jr,So=0,kl=li,mu=0,Iu=Hi;if(ve.content&&X){let Xs=ve.content,Lu=Xs[2]-Xs[0],xu=Xs[3]-Xs[1];(ve.textFitWidth||ve.textFitHeight)&&(Mt=wC(I)),cn=vm($t,0,Xs[0]),Rn=vm(vr,0,Xs[1]),Za=vm($t,Xs[0],Xs[2]),La=vm(vr,Xs[1],Xs[3]),So=Xs[0]-cn,mu=Xs[1]-Rn,kl=Lu-Za,Iu=xu-La}let su=Mt.x1,yl=Mt.y1,Eu=Mt.x2-su,bu=Mt.y2-yl,_u=(Xs,Lu,xu,qu)=>{let vc=Bw(Xs.stretch-cn,Za,Eu,su),cc=L1(Xs.fixed-So,kl,Xs.stretch,Br),Ch=Bw(Lu.stretch-Rn,La,bu,yl),$p=L1(Lu.fixed-mu,Iu,Lu.stretch,Jr),ud=Bw(xu.stretch-cn,Za,Eu,su),Lh=L1(xu.fixed-So,kl,xu.stretch,Br),Wd=Bw(qu.stretch-Rn,La,bu,yl),jd=L1(qu.fixed-mu,Iu,qu.stretch,Jr),Xd=new l(vc,Ch),Jc=new l(ud,Ch),Ph=new l(ud,Wd),Cd=new l(vc,Wd),fd=new l(cc/we,$p/we),Xh=new l(Lh/we,jd/we),rh=S*Math.PI/180;if(rh){let jf=Math.sin(rh),Ac=Math.cos(rh),mc=[Ac,-jf,jf,Ac];Xd._matMult(mc),Jc._matMult(mc),Cd._matMult(mc),Ph._matMult(mc)}let Rp=Xs.stretch+Xs.fixed,fp=Lu.stretch+Lu.fixed;return{tl:Xd,tr:Jc,bl:Cd,br:Ph,tex:{x:ve.paddedRect.x+C1+Rp,y:ve.paddedRect.y+C1+fp,w:xu.stretch+xu.fixed-Rp,h:qu.stretch+qu.fixed-fp},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:fd,pixelOffsetBR:Xh,minFontScaleX:kl/we/Eu,minFontScaleY:Iu/we/bu,isSDF:D}};if(X&&(ve.stretchX||ve.stretchY)){let Xs=NC($t,li,Br),Lu=NC(vr,Hi,Jr);for(let xu=0;xu0&&(li=Math.max(10,li),this.circleDiameter=li)}else{let Sr=!((vr=we.image)===null||vr===void 0)&&vr.content&&(we.image.textFitWidth||we.image.textFitHeight)?wC(we):{x1:we.left,y1:we.top,x2:we.right,y2:we.bottom};Sr.y1=Sr.y1*We-ut[0],Sr.y2=Sr.y2*We+ut[2],Sr.x1=Sr.x1*We-ut[3],Sr.x2=Sr.x2*We+ut[1];let Br=we.collisionPadding;if(Br&&(Sr.x1-=Br[0]*We,Sr.y1-=Br[1]*We,Sr.x2+=Br[2]*We,Sr.y2+=Br[3]*We),$t){let Jr=new l(Sr.x1,Sr.y1),li=new l(Sr.x2,Sr.y1),Hi=new l(Sr.x1,Sr.y2),cn=new l(Sr.x2,Sr.y2),Za=$t*Math.PI/180;Jr._rotate(Za),li._rotate(Za),Hi._rotate(Za),cn._rotate(Za),Sr.x1=Math.min(Jr.x,li.x,Hi.x,cn.x),Sr.x2=Math.max(Jr.x,li.x,Hi.x,cn.x),Sr.y1=Math.min(Jr.y,li.y,Hi.y,cn.y),Sr.y2=Math.max(Jr.y,li.y,Hi.y,cn.y)}S.emplaceBack(D.x,D.y,Sr.x1,Sr.y1,Sr.x2,Sr.y2,X,ie,ve)}this.boxEndIndex=S.length}}class Vv{constructor(S=[],D=(X,ie)=>Xie?1:0){if(this.data=S,this.length=this.data.length,this.compare=D,this.length>0)for(let X=(this.length>>1)-1;X>=0;X--)this._down(X)}push(S){this.data.push(S),this._up(this.length++)}pop(){if(this.length===0)return;let S=this.data[0],D=this.data.pop();return--this.length>0&&(this.data[0]=D,this._down(0)),S}peek(){return this.data[0]}_up(S){let{data:D,compare:X}=this,ie=D[S];for(;S>0;){let ve=S-1>>1,we=D[ve];if(X(ie,we)>=0)break;D[S]=we,S=ve}D[S]=ie}_down(S){let{data:D,compare:X}=this,ie=this.length>>1,ve=D[S];for(;S=0)break;D[S]=D[we],S=we}D[S]=ve}}function l9(I,S=1,D=!1){let X=1/0,ie=1/0,ve=-1/0,we=-1/0,We=I[0];for(let Br=0;Brve)&&(ve=Jr.x),(!Br||Jr.y>we)&&(we=Jr.y)}let ut=Math.min(ve-X,we-ie),Mt=ut/2,$t=new Vv([],u9);if(ut===0)return new l(X,ie);for(let Br=X;Brvr.d||!vr.d)&&(vr=Br,D&&console.log("found best %d after %d probes",Math.round(1e4*Br.d)/1e4,Sr)),Br.max-vr.d<=S||(Mt=Br.h/2,$t.push(new P1(Br.p.x-Mt,Br.p.y-Mt,Mt,I)),$t.push(new P1(Br.p.x+Mt,Br.p.y-Mt,Mt,I)),$t.push(new P1(Br.p.x-Mt,Br.p.y+Mt,Mt,I)),$t.push(new P1(Br.p.x+Mt,Br.p.y+Mt,Mt,I)),Sr+=4)}return D&&(console.log(`num probes: ${Sr}`),console.log(`best distance: ${vr.d}`)),vr.p}function u9(I,S){return S.max-I.max}function P1(I,S,D,X){this.p=new l(I,S),this.h=D,this.d=function(ie,ve){let we=!1,We=1/0;for(let ut=0;utie.y!=Jr.y>ie.y&&ie.x<(Jr.x-Br.x)*(ie.y-Br.y)/(Jr.y-Br.y)+Br.x&&(we=!we),We=Math.min(We,pi(ie,Br,Jr))}}return(we?1:-1)*Math.sqrt(We)}(this.p,X),this.max=this.d+this.h*Math.SQRT2}var ld;i.aq=void 0,(ld=i.aq||(i.aq={}))[ld.center=1]="center",ld[ld.left=2]="left",ld[ld.right=3]="right",ld[ld.top=4]="top",ld[ld.bottom=5]="bottom",ld[ld["top-left"]=6]="top-left",ld[ld["top-right"]=7]="top-right",ld[ld["bottom-left"]=8]="bottom-left",ld[ld["bottom-right"]=9]="bottom-right";let cy=7,cg=Number.POSITIVE_INFINITY;function vM(I,S){return S[1]!==cg?function(D,X,ie){let ve=0,we=0;switch(X=Math.abs(X),ie=Math.abs(ie),D){case"top-right":case"top-left":case"top":we=ie-cy;break;case"bottom-right":case"bottom-left":case"bottom":we=-ie+cy}switch(D){case"top-right":case"bottom-right":case"right":ve=-X;break;case"top-left":case"bottom-left":case"left":ve=X}return[ve,we]}(I,S[0],S[1]):function(D,X){let ie=0,ve=0;X<0&&(X=0);let we=X/Math.SQRT2;switch(D){case"top-right":case"top-left":ve=we-cy;break;case"bottom-right":case"bottom-left":ve=-we+cy;break;case"bottom":ve=-X+cy;break;case"top":ve=X-cy}switch(D){case"top-right":case"bottom-right":ie=-we;break;case"top-left":case"bottom-left":ie=we;break;case"left":ie=X;break;case"right":ie=-X}return[ie,ve]}(I,S[0])}function UC(I,S,D){var X;let ie=I.layout,ve=(X=ie.get("text-variable-anchor-offset"))===null||X===void 0?void 0:X.evaluate(S,{},D);if(ve){let We=ve.values,ut=[];for(let Mt=0;MtSr*Wf);$t.startsWith("top")?vr[1]-=cy:$t.startsWith("bottom")&&(vr[1]+=cy),ut[Mt+1]=vr}return new jr(ut)}let we=ie.get("text-variable-anchor");if(we){let We;We=I._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[ie.get("text-radial-offset").evaluate(S,{},D)*Wf,cg]:ie.get("text-offset").evaluate(S,{},D).map(Mt=>Mt*Wf);let ut=[];for(let Mt of we)ut.push(Mt,vM(Mt,We));return new jr(ut)}return null}function mM(I){switch(I){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function f9(I,S,D,X,ie,ve,we,We,ut,Mt,$t){let vr=ve.textMaxSize.evaluate(S,{});vr===void 0&&(vr=we);let Sr=I.layers[0].layout,Br=Sr.get("icon-offset").evaluate(S,{},$t),Jr=GC(D.horizontal),li=we/24,Hi=I.tilePixelRatio*li,cn=I.tilePixelRatio*vr/24,Za=I.tilePixelRatio*We,Rn=I.tilePixelRatio*Sr.get("symbol-spacing"),La=Sr.get("text-padding")*I.tilePixelRatio,So=function(Xs,Lu,xu,qu=1){let vc=Xs.get("icon-padding").evaluate(Lu,{},xu),cc=vc&&vc.values;return[cc[0]*qu,cc[1]*qu,cc[2]*qu,cc[3]*qu]}(Sr,S,$t,I.tilePixelRatio),kl=Sr.get("text-max-angle")/180*Math.PI,mu=Sr.get("text-rotation-alignment")!=="viewport"&&Sr.get("symbol-placement")!=="point",Iu=Sr.get("icon-rotation-alignment")==="map"&&Sr.get("symbol-placement")!=="point",su=Sr.get("symbol-placement"),yl=Rn/2,Eu=Sr.get("icon-text-fit"),bu;X&&Eu!=="none"&&(I.allowVerticalPlacement&&D.vertical&&(bu=AC(X,D.vertical,Eu,Sr.get("icon-text-fit-padding"),Br,li)),Jr&&(X=AC(X,Jr,Eu,Sr.get("icon-text-fit-padding"),Br,li)));let _u=(Xs,Lu)=>{Lu.x<0||Lu.x>=Wl||Lu.y<0||Lu.y>=Wl||function(xu,qu,vc,cc,Ch,$p,ud,Lh,Wd,jd,Xd,Jc,Ph,Cd,fd,Xh,rh,Rp,fp,jf,Ac,mc,Dp,Hc,z1){let v0=xu.addToLineVertexArray(qu,vc),Gv,Qp,Rc,fh,ev=0,mm=0,cp=0,I1=0,bM=-1,Uw=-1,m0={},hg=fn("");if(xu.allowVerticalPlacement&&cc.vertical){let Ld=Lh.layout.get("text-rotate").evaluate(Ac,{},Hc)+90;Rc=new fy(Wd,qu,jd,Xd,Jc,cc.vertical,Ph,Cd,fd,Ld),ud&&(fh=new fy(Wd,qu,jd,Xd,Jc,ud,rh,Rp,fd,Ld))}if(Ch){let Ld=Lh.layout.get("icon-rotate").evaluate(Ac,{}),tv=Lh.layout.get("icon-text-fit")!=="none",hy=qC(Ch,Ld,Dp,tv),Zd=ud?qC(ud,Ld,Dp,tv):void 0;Qp=new fy(Wd,qu,jd,Xd,Jc,Ch,rh,Rp,!1,Ld),ev=4*hy.length;let Pd=xu.iconSizeData,yv=null;Pd.kind==="source"?(yv=[p0*Lh.layout.get("icon-size").evaluate(Ac,{})],yv[0]>ly&&A(`${xu.layerIds[0]}: Value for "icon-size" is >= ${Wx}. Reduce your "icon-size".`)):Pd.kind==="composite"&&(yv=[p0*mc.compositeIconSizes[0].evaluate(Ac,{},Hc),p0*mc.compositeIconSizes[1].evaluate(Ac,{},Hc)],(yv[0]>ly||yv[1]>ly)&&A(`${xu.layerIds[0]}: Value for "icon-size" is >= ${Wx}. Reduce your "icon-size".`)),xu.addSymbols(xu.icon,hy,yv,jf,fp,Ac,i.ah.none,qu,v0.lineStartIndex,v0.lineLength,-1,Hc),bM=xu.icon.placedSymbolArray.length-1,Zd&&(mm=4*Zd.length,xu.addSymbols(xu.icon,Zd,yv,jf,fp,Ac,i.ah.vertical,qu,v0.lineStartIndex,v0.lineLength,-1,Hc),Uw=xu.icon.placedSymbolArray.length-1)}let Zh=Object.keys(cc.horizontal);for(let Ld of Zh){let tv=cc.horizontal[Ld];if(!Gv){hg=fn(tv.text);let Zd=Lh.layout.get("text-rotate").evaluate(Ac,{},Hc);Gv=new fy(Wd,qu,jd,Xd,Jc,tv,Ph,Cd,fd,Zd)}let hy=tv.positionedLines.length===1;if(cp+=VC(xu,qu,tv,$p,Lh,fd,Ac,Xh,v0,cc.vertical?i.ah.horizontal:i.ah.horizontalOnly,hy?Zh:[Ld],m0,bM,mc,Hc),hy)break}cc.vertical&&(I1+=VC(xu,qu,cc.vertical,$p,Lh,fd,Ac,Xh,v0,i.ah.vertical,["vertical"],m0,Uw,mc,Hc));let d9=Gv?Gv.boxStartIndex:xu.collisionBoxArray.length,Vw=Gv?Gv.boxEndIndex:xu.collisionBoxArray.length,y0=Rc?Rc.boxStartIndex:xu.collisionBoxArray.length,hp=Rc?Rc.boxEndIndex:xu.collisionBoxArray.length,XC=Qp?Qp.boxStartIndex:xu.collisionBoxArray.length,p9=Qp?Qp.boxEndIndex:xu.collisionBoxArray.length,ZC=fh?fh.boxStartIndex:xu.collisionBoxArray.length,v9=fh?fh.boxEndIndex:xu.collisionBoxArray.length,mv=-1,tb=(Ld,tv)=>Ld&&Ld.circleDiameter?Math.max(Ld.circleDiameter,tv):tv;mv=tb(Gv,mv),mv=tb(Rc,mv),mv=tb(Qp,mv),mv=tb(fh,mv);let Gw=mv>-1?1:0;Gw&&(mv*=z1/Wf),xu.glyphOffsetArray.length>=E1.MAX_GLYPHS&&A("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Ac.sortKey!==void 0&&xu.addToSortKeyRanges(xu.symbolInstances.length,Ac.sortKey);let wM=UC(Lh,Ac,Hc),[m9,y9]=function(Ld,tv){let hy=Ld.length,Zd=tv==null?void 0:tv.values;if((Zd==null?void 0:Zd.length)>0)for(let Pd=0;Pd=0?m0.right:-1,m0.center>=0?m0.center:-1,m0.left>=0?m0.left:-1,m0.vertical||-1,bM,Uw,hg,d9,Vw,y0,hp,XC,p9,ZC,v9,jd,cp,I1,ev,mm,Gw,0,Ph,mv,m9,y9)}(I,Lu,Xs,D,X,ie,bu,I.layers[0],I.collisionBoxArray,S.index,S.sourceLayerIndex,I.index,Hi,[La,La,La,La],mu,ut,Za,So,Iu,Br,S,ve,Mt,$t,we)};if(su==="line")for(let Xs of RC(S.geometry,0,0,Wl,Wl)){let Lu=s9(Xs,Rn,kl,D.vertical||Jr,X,24,cn,I.overscaling,Wl);for(let xu of Lu)Jr&&c9(I,Jr.text,yl,xu)||_u(Xs,xu)}else if(su==="line-center"){for(let Xs of S.geometry)if(Xs.length>1){let Lu=o9(Xs,kl,D.vertical||Jr,X,24,cn);Lu&&_u(Xs,Lu)}}else if(S.type==="Polygon")for(let Xs of Ys(S.geometry,0)){let Lu=l9(Xs,16);_u(Xs[0],new pm(Lu.x,Lu.y,0))}else if(S.type==="LineString")for(let Xs of S.geometry)_u(Xs,new pm(Xs[0].x,Xs[0].y,0));else if(S.type==="Point")for(let Xs of S.geometry)for(let Lu of Xs)_u([Lu],new pm(Lu.x,Lu.y,0))}function VC(I,S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr){let li=function(Za,Rn,La,So,kl,mu,Iu,su){let yl=So.layout.get("text-rotate").evaluate(mu,{})*Math.PI/180,Eu=[];for(let bu of Rn.positionedLines)for(let _u of bu.positionedGlyphs){if(!_u.rect)continue;let Xs=_u.rect||{},Lu=gC+1,xu=!0,qu=1,vc=0,cc=(kl||su)&&_u.vertical,Ch=_u.metrics.advance*_u.scale/2;if(su&&Rn.verticalizable&&(vc=bu.lineOffset/2-(_u.imageName?-(Wf-_u.metrics.width*_u.scale)/2:(_u.scale-1)*Wf)),_u.imageName){let jf=Iu[_u.imageName];xu=jf.sdf,qu=jf.pixelRatio,Lu=kd/qu}let $p=kl?[_u.x+Ch,_u.y]:[0,0],ud=kl?[0,0]:[_u.x+Ch+La[0],_u.y+La[1]-vc],Lh=[0,0];cc&&(Lh=ud,ud=[0,0]);let Wd=_u.metrics.isDoubleResolution?2:1,jd=(_u.metrics.left-Lu)*_u.scale-Ch+ud[0],Xd=(-_u.metrics.top-Lu)*_u.scale+ud[1],Jc=jd+Xs.w/Wd*_u.scale/qu,Ph=Xd+Xs.h/Wd*_u.scale/qu,Cd=new l(jd,Xd),fd=new l(Jc,Xd),Xh=new l(jd,Ph),rh=new l(Jc,Ph);if(cc){let jf=new l(-Ch,Ch-kh),Ac=-Math.PI/2,mc=Wf/2-Ch,Dp=new l(5-kh-mc,-(_u.imageName?mc:0)),Hc=new l(...Lh);Cd._rotateAround(Ac,jf)._add(Dp)._add(Hc),fd._rotateAround(Ac,jf)._add(Dp)._add(Hc),Xh._rotateAround(Ac,jf)._add(Dp)._add(Hc),rh._rotateAround(Ac,jf)._add(Dp)._add(Hc)}if(yl){let jf=Math.sin(yl),Ac=Math.cos(yl),mc=[Ac,-jf,jf,Ac];Cd._matMult(mc),fd._matMult(mc),Xh._matMult(mc),rh._matMult(mc)}let Rp=new l(0,0),fp=new l(0,0);Eu.push({tl:Cd,tr:fd,bl:Xh,br:rh,tex:Xs,writingMode:Rn.writingMode,glyphOffset:$p,sectionIndex:_u.sectionIndex,isSDF:xu,pixelOffsetTL:Rp,pixelOffsetBR:fp,minFontScaleX:0,minFontScaleY:0})}return Eu}(0,D,We,ie,ve,we,X,I.allowVerticalPlacement),Hi=I.textSizeData,cn=null;Hi.kind==="source"?(cn=[p0*ie.layout.get("text-size").evaluate(we,{})],cn[0]>ly&&A(`${I.layerIds[0]}: Value for "text-size" is >= ${Wx}. Reduce your "text-size".`)):Hi.kind==="composite"&&(cn=[p0*Br.compositeTextSizes[0].evaluate(we,{},Jr),p0*Br.compositeTextSizes[1].evaluate(we,{},Jr)],(cn[0]>ly||cn[1]>ly)&&A(`${I.layerIds[0]}: Value for "text-size" is >= ${Wx}. Reduce your "text-size".`)),I.addSymbols(I.text,li,cn,We,ve,we,Mt,S,ut.lineStartIndex,ut.lineLength,Sr,Jr);for(let Za of $t)vr[Za]=I.text.placedSymbolArray.length-1;return 4*li.length}function GC(I){for(let S in I)return I[S];return null}function c9(I,S,D,X){let ie=I.compareText;if(S in ie){let ve=ie[S];for(let we=ve.length-1;we>=0;we--)if(X.dist(ve[we])>4;if(ie!==1)throw new Error(`Got v${ie} data when expected v1.`);let ve=HC[15&X];if(!ve)throw new Error("Unrecognized array type.");let[we]=new Uint16Array(S,2,1),[We]=new Uint32Array(S,4,1);return new yM(We,we,ve,S)}constructor(S,D=64,X=Float64Array,ie){if(isNaN(S)||S<0)throw new Error(`Unpexpected numItems value: ${S}.`);this.numItems=+S,this.nodeSize=Math.min(Math.max(+D,2),65535),this.ArrayType=X,this.IndexArrayType=S<65536?Uint16Array:Uint32Array;let ve=HC.indexOf(this.ArrayType),we=2*S*this.ArrayType.BYTES_PER_ELEMENT,We=S*this.IndexArrayType.BYTES_PER_ELEMENT,ut=(8-We%8)%8;if(ve<0)throw new Error(`Unexpected typed array class: ${X}.`);ie&&ie instanceof ArrayBuffer?(this.data=ie,this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+We+ut,2*S),this._pos=2*S,this._finished=!0):(this.data=new ArrayBuffer(8+we+We+ut),this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+We+ut,2*S),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+ve]),new Uint16Array(this.data,2,1)[0]=D,new Uint32Array(this.data,4,1)[0]=S)}add(S,D){let X=this._pos>>1;return this.ids[X]=X,this.coords[this._pos++]=S,this.coords[this._pos++]=D,X}finish(){let S=this._pos>>1;if(S!==this.numItems)throw new Error(`Added ${S} items when expected ${this.numItems}.`);return Ow(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(S,D,X,ie){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:ve,coords:we,nodeSize:We}=this,ut=[0,ve.length-1,0],Mt=[];for(;ut.length;){let $t=ut.pop()||0,vr=ut.pop()||0,Sr=ut.pop()||0;if(vr-Sr<=We){for(let Hi=Sr;Hi<=vr;Hi++){let cn=we[2*Hi],Za=we[2*Hi+1];cn>=S&&cn<=X&&Za>=D&&Za<=ie&&Mt.push(ve[Hi])}continue}let Br=Sr+vr>>1,Jr=we[2*Br],li=we[2*Br+1];Jr>=S&&Jr<=X&&li>=D&&li<=ie&&Mt.push(ve[Br]),($t===0?S<=Jr:D<=li)&&(ut.push(Sr),ut.push(Br-1),ut.push(1-$t)),($t===0?X>=Jr:ie>=li)&&(ut.push(Br+1),ut.push(vr),ut.push(1-$t))}return Mt}within(S,D,X){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:ie,coords:ve,nodeSize:we}=this,We=[0,ie.length-1,0],ut=[],Mt=X*X;for(;We.length;){let $t=We.pop()||0,vr=We.pop()||0,Sr=We.pop()||0;if(vr-Sr<=we){for(let Hi=Sr;Hi<=vr;Hi++)jC(ve[2*Hi],ve[2*Hi+1],S,D)<=Mt&&ut.push(ie[Hi]);continue}let Br=Sr+vr>>1,Jr=ve[2*Br],li=ve[2*Br+1];jC(Jr,li,S,D)<=Mt&&ut.push(ie[Br]),($t===0?S-X<=Jr:D-X<=li)&&(We.push(Sr),We.push(Br-1),We.push(1-$t)),($t===0?S+X>=Jr:D+X>=li)&&(We.push(Br+1),We.push(vr),We.push(1-$t))}return ut}}function Ow(I,S,D,X,ie,ve){if(ie-X<=D)return;let we=X+ie>>1;WC(I,S,we,X,ie,ve),Ow(I,S,D,X,we-1,1-ve),Ow(I,S,D,we+1,ie,1-ve)}function WC(I,S,D,X,ie,ve){for(;ie>X;){if(ie-X>600){let Mt=ie-X+1,$t=D-X+1,vr=Math.log(Mt),Sr=.5*Math.exp(2*vr/3),Br=.5*Math.sqrt(vr*Sr*(Mt-Sr)/Mt)*($t-Mt/2<0?-1:1);WC(I,S,D,Math.max(X,Math.floor(D-$t*Sr/Mt+Br)),Math.min(ie,Math.floor(D+(Mt-$t)*Sr/Mt+Br)),ve)}let we=S[2*D+ve],We=X,ut=ie;for(Qx(I,S,X,D),S[2*ie+ve]>we&&Qx(I,S,X,ie);Wewe;)ut--}S[2*X+ve]===we?Qx(I,S,X,ut):(ut++,Qx(I,S,ut,ie)),ut<=D&&(X=ut+1),D<=ut&&(ie=ut-1)}}function Qx(I,S,D,X){gM(I,D,X),gM(S,2*D,2*X),gM(S,2*D+1,2*X+1)}function gM(I,S,D){let X=I[S];I[S]=I[D],I[D]=X}function jC(I,S,D,X){let ie=I-D,ve=S-X;return ie*ie+ve*ve}var qw;i.bg=void 0,(qw=i.bg||(i.bg={})).create="create",qw.load="load",qw.fullLoad="fullLoad";let eb=null,mh=[],_M=1e3/60,xM="loadTime",Nw="fullLoadTime",h9={mark(I){performance.mark(I)},frame(I){let S=I;eb!=null&&mh.push(S-eb),eb=S},clearMetrics(){eb=null,mh=[],performance.clearMeasures(xM),performance.clearMeasures(Nw);for(let I in i.bg)performance.clearMarks(i.bg[I])},getPerformanceMetrics(){performance.measure(xM,i.bg.create,i.bg.load),performance.measure(Nw,i.bg.create,i.bg.fullLoad);let I=performance.getEntriesByName(xM)[0].duration,S=performance.getEntriesByName(Nw)[0].duration,D=mh.length,X=1/(mh.reduce((ve,we)=>ve+we,0)/D/1e3),ie=mh.filter(ve=>ve>_M).reduce((ve,we)=>ve+(we-_M)/_M,0);return{loadTime:I,fullLoadTime:S,fps:X,percentDroppedFrames:ie/(D+ie)*100,totalFrames:D}}};i.$=class extends ir{},i.A=dn,i.B=ki,i.C=function(I){if(U==null){let S=I.navigator?I.navigator.userAgent:null;U=!!I.safari||!(!S||!(/\b(iPad|iPhone|iPod)\b/.test(S)||S.match("Safari")&&!S.match("Chrome")))}return U},i.D=ms,i.E=Ve,i.F=class{constructor(I,S){this.target=I,this.mapId=S,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new fM(()=>this.process()),this.subscription=function(D,X,ie,ve){return D.addEventListener(X,ie,!1),{unsubscribe:()=>{D.removeEventListener(X,ie,!1)}}}(this.target,"message",D=>this.receive(D)),this.globalScope=F(self)?I:window}registerMessageHandler(I,S){this.messageHandlers[I]=S}sendAsync(I,S){return new Promise((D,X)=>{let ie=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[ie]={resolve:D,reject:X},S&&S.signal.addEventListener("abort",()=>{delete this.resolveRejects[ie];let We={id:ie,type:"",origin:location.origin,targetMapId:I.targetMapId,sourceMapId:this.mapId};this.target.postMessage(We)},{once:!0});let ve=[],we=Object.assign(Object.assign({},I),{id:ie,sourceMapId:this.mapId,origin:location.origin,data:ia(I.data,ve)});this.target.postMessage(we,{transfer:ve})})}receive(I){let S=I.data,D=S.id;if(!(S.origin!=="file://"&&location.origin!=="file://"&&S.origin!=="resource://android"&&location.origin!=="resource://android"&&S.origin!==location.origin||S.targetMapId&&this.mapId!==S.targetMapId)){if(S.type===""){delete this.tasks[D];let X=this.abortControllers[D];return delete this.abortControllers[D],void(X&&X.abort())}if(F(self)||S.mustQueue)return this.tasks[D]=S,this.taskQueue.push(D),void this.invoker.trigger();this.processTask(D,S)}}process(){if(this.taskQueue.length===0)return;let I=this.taskQueue.shift(),S=this.tasks[I];delete this.tasks[I],this.taskQueue.length>0&&this.invoker.trigger(),S&&this.processTask(I,S)}processTask(I,S){return a(this,void 0,void 0,function*(){if(S.type===""){let ie=this.resolveRejects[I];return delete this.resolveRejects[I],ie?void(S.error?ie.reject(pa(S.error)):ie.resolve(pa(S.data))):void 0}if(!this.messageHandlers[S.type])return void this.completeTask(I,new Error(`Could not find a registered handler for ${S.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let D=pa(S.data),X=new AbortController;this.abortControllers[I]=X;try{let ie=yield this.messageHandlers[S.type](S.sourceMapId,D,X);this.completeTask(I,null,ie)}catch(ie){this.completeTask(I,ie)}})}completeTask(I,S,D){let X=[];delete this.abortControllers[I];let ie={id:I,type:"",sourceMapId:this.mapId,origin:location.origin,error:S?ia(S):null,data:ia(D,X)};this.target.postMessage(ie,{transfer:X})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=Ce,i.H=function(){var I=new dn(16);return dn!=Float32Array&&(I[1]=0,I[2]=0,I[3]=0,I[4]=0,I[6]=0,I[7]=0,I[8]=0,I[9]=0,I[11]=0,I[12]=0,I[13]=0,I[14]=0),I[0]=1,I[5]=1,I[10]=1,I[15]=1,I},i.I=kw,i.J=function(I,S,D){var X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li=D[0],Hi=D[1],cn=D[2];return S===I?(I[12]=S[0]*li+S[4]*Hi+S[8]*cn+S[12],I[13]=S[1]*li+S[5]*Hi+S[9]*cn+S[13],I[14]=S[2]*li+S[6]*Hi+S[10]*cn+S[14],I[15]=S[3]*li+S[7]*Hi+S[11]*cn+S[15]):(ie=S[1],ve=S[2],we=S[3],We=S[4],ut=S[5],Mt=S[6],$t=S[7],vr=S[8],Sr=S[9],Br=S[10],Jr=S[11],I[0]=X=S[0],I[1]=ie,I[2]=ve,I[3]=we,I[4]=We,I[5]=ut,I[6]=Mt,I[7]=$t,I[8]=vr,I[9]=Sr,I[10]=Br,I[11]=Jr,I[12]=X*li+We*Hi+vr*cn+S[12],I[13]=ie*li+ut*Hi+Sr*cn+S[13],I[14]=ve*li+Mt*Hi+Br*cn+S[14],I[15]=we*li+$t*Hi+Jr*cn+S[15]),I},i.K=function(I,S,D){var X=D[0],ie=D[1],ve=D[2];return I[0]=S[0]*X,I[1]=S[1]*X,I[2]=S[2]*X,I[3]=S[3]*X,I[4]=S[4]*ie,I[5]=S[5]*ie,I[6]=S[6]*ie,I[7]=S[7]*ie,I[8]=S[8]*ve,I[9]=S[9]*ve,I[10]=S[10]*ve,I[11]=S[11]*ve,I[12]=S[12],I[13]=S[13],I[14]=S[14],I[15]=S[15],I},i.L=Yi,i.M=function(I,S){let D={};for(let X=0;X{let S=window.document.createElement("video");return S.muted=!0,new Promise(D=>{S.onloadstart=()=>{D(S)};for(let X of I){let ie=window.document.createElement("source");Ee(X)||(S.crossOrigin="Anonymous"),ie.src=X,S.appendChild(ie)}})},i.a4=function(){return _++},i.a5=Ua,i.a6=E1,i.a7=Jn,i.a8=df,i.a9=dM,i.aA=function(I){if(I.type==="custom")return new uM(I);switch(I.type){case"background":return new n9(I);case"circle":return new $i(I);case"fill":return new Ot(I);case"fill-extrusion":return new Ad(I);case"heatmap":return new pl(I);case"hillshade":return new mf(I);case"line":return new ag(I);case"raster":return new Yx(I);case"symbol":return new ug(I)}},i.aB=m,i.aC=function(I,S){if(!I)return[{command:"setStyle",args:[S]}];let D=[];try{if(!gt(I.version,S.version))return[{command:"setStyle",args:[S]}];gt(I.center,S.center)||D.push({command:"setCenter",args:[S.center]}),gt(I.zoom,S.zoom)||D.push({command:"setZoom",args:[S.zoom]}),gt(I.bearing,S.bearing)||D.push({command:"setBearing",args:[S.bearing]}),gt(I.pitch,S.pitch)||D.push({command:"setPitch",args:[S.pitch]}),gt(I.sprite,S.sprite)||D.push({command:"setSprite",args:[S.sprite]}),gt(I.glyphs,S.glyphs)||D.push({command:"setGlyphs",args:[S.glyphs]}),gt(I.transition,S.transition)||D.push({command:"setTransition",args:[S.transition]}),gt(I.light,S.light)||D.push({command:"setLight",args:[S.light]}),gt(I.terrain,S.terrain)||D.push({command:"setTerrain",args:[S.terrain]}),gt(I.sky,S.sky)||D.push({command:"setSky",args:[S.sky]}),gt(I.projection,S.projection)||D.push({command:"setProjection",args:[S.projection]});let X={},ie=[];(function(we,We,ut,Mt){let $t;for($t in We=We||{},we=we||{})Object.prototype.hasOwnProperty.call(we,$t)&&(Object.prototype.hasOwnProperty.call(We,$t)||Ke($t,ut,Mt));for($t in We)Object.prototype.hasOwnProperty.call(We,$t)&&(Object.prototype.hasOwnProperty.call(we,$t)?gt(we[$t],We[$t])||(we[$t].type==="geojson"&&We[$t].type==="geojson"&&Tt(we,We,$t)?Nt(ut,{command:"setGeoJSONSourceData",args:[$t,We[$t].data]}):kt($t,We,ut,Mt)):it($t,We,ut))})(I.sources,S.sources,ie,X);let ve=[];I.layers&&I.layers.forEach(we=>{"source"in we&&X[we.source]?D.push({command:"removeLayer",args:[we.id]}):ve.push(we)}),D=D.concat(ie),function(we,We,ut){We=We||[];let Mt=(we=we||[]).map(Dt),$t=We.map(Dt),vr=we.reduce(Zt,{}),Sr=We.reduce(Zt,{}),Br=Mt.slice(),Jr=Object.create(null),li,Hi,cn,Za,Rn;for(let La=0,So=0;La@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(D,X,ie,ve)=>{let we=ie||ve;return S[X]=!we||we.toLowerCase(),""}),S["max-age"]){let D=parseInt(S["max-age"],10);isNaN(D)?delete S["max-age"]:S["max-age"]=D}return S},i.ab=function(I,S){let D=[];for(let X in I)X in S||D.push(X);return D},i.ac=E,i.ad=function(I,S,D){var X=Math.sin(D),ie=Math.cos(D),ve=S[0],we=S[1],We=S[2],ut=S[3],Mt=S[4],$t=S[5],vr=S[6],Sr=S[7];return S!==I&&(I[8]=S[8],I[9]=S[9],I[10]=S[10],I[11]=S[11],I[12]=S[12],I[13]=S[13],I[14]=S[14],I[15]=S[15]),I[0]=ve*ie+Mt*X,I[1]=we*ie+$t*X,I[2]=We*ie+vr*X,I[3]=ut*ie+Sr*X,I[4]=Mt*ie-ve*X,I[5]=$t*ie-we*X,I[6]=vr*ie-We*X,I[7]=Sr*ie-ut*X,I},i.ae=function(I){var S=new dn(16);return S[0]=I[0],S[1]=I[1],S[2]=I[2],S[3]=I[3],S[4]=I[4],S[5]=I[5],S[6]=I[6],S[7]=I[7],S[8]=I[8],S[9]=I[9],S[10]=I[10],S[11]=I[11],S[12]=I[12],S[13]=I[13],S[14]=I[14],S[15]=I[15],S},i.af=hs,i.ag=function(I,S){let D=0,X=0;if(I.kind==="constant")X=I.layoutSize;else if(I.kind!=="source"){let{interpolationType:ie,minZoom:ve,maxZoom:we}=I,We=ie?E(so.interpolationFactor(ie,S,ve,we),0,1):0;I.kind==="camera"?X=ka.number(I.minSize,I.maxSize,We):D=We}return{uSizeT:D,uSize:X}},i.ai=function(I,{uSize:S,uSizeT:D},{lowerSize:X,upperSize:ie}){return I.kind==="source"?X/p0:I.kind==="composite"?ka.number(X/p0,ie/p0,D):S},i.aj=aM,i.ak=function(I,S,D,X){let ie=S.y-I.y,ve=S.x-I.x,we=X.y-D.y,We=X.x-D.x,ut=we*ve-We*ie;if(ut===0)return null;let Mt=(We*(I.y-D.y)-we*(I.x-D.x))/ut;return new l(I.x+Mt*ve,I.y+Mt*ie)},i.al=RC,i.am=fc,i.an=En,i.ao=function(I){let S=1/0,D=1/0,X=-1/0,ie=-1/0;for(let ve of I)S=Math.min(S,ve.x),D=Math.min(D,ve.y),X=Math.max(X,ve.x),ie=Math.max(ie,ve.y);return[S,D,X,ie]},i.ap=Wf,i.ar=nM,i.as=function(I,S){var D=S[0],X=S[1],ie=S[2],ve=S[3],we=S[4],We=S[5],ut=S[6],Mt=S[7],$t=S[8],vr=S[9],Sr=S[10],Br=S[11],Jr=S[12],li=S[13],Hi=S[14],cn=S[15],Za=D*We-X*we,Rn=D*ut-ie*we,La=D*Mt-ve*we,So=X*ut-ie*We,kl=X*Mt-ve*We,mu=ie*Mt-ve*ut,Iu=$t*li-vr*Jr,su=$t*Hi-Sr*Jr,yl=$t*cn-Br*Jr,Eu=vr*Hi-Sr*li,bu=vr*cn-Br*li,_u=Sr*cn-Br*Hi,Xs=Za*_u-Rn*bu+La*Eu+So*yl-kl*su+mu*Iu;return Xs?(I[0]=(We*_u-ut*bu+Mt*Eu)*(Xs=1/Xs),I[1]=(ie*bu-X*_u-ve*Eu)*Xs,I[2]=(li*mu-Hi*kl+cn*So)*Xs,I[3]=(Sr*kl-vr*mu-Br*So)*Xs,I[4]=(ut*yl-we*_u-Mt*su)*Xs,I[5]=(D*_u-ie*yl+ve*su)*Xs,I[6]=(Hi*La-Jr*mu-cn*Rn)*Xs,I[7]=($t*mu-Sr*La+Br*Rn)*Xs,I[8]=(we*bu-We*yl+Mt*Iu)*Xs,I[9]=(X*yl-D*bu-ve*Iu)*Xs,I[10]=(Jr*kl-li*La+cn*Za)*Xs,I[11]=(vr*La-$t*kl-Br*Za)*Xs,I[12]=(We*su-we*Eu-ut*Iu)*Xs,I[13]=(D*Eu-X*su+ie*Iu)*Xs,I[14]=(li*Rn-Jr*So-Hi*Za)*Xs,I[15]=($t*So-vr*Rn+Sr*Za)*Xs,I):null},i.at=mM,i.au=zw,i.av=yM,i.aw=function(){let I={},S=ce.$version;for(let D in ce.$root){let X=ce.$root[D];if(X.required){let ie=null;ie=D==="version"?S:X.type==="array"?[]:{},ie!=null&&(I[D]=ie)}}return I},i.ax=va,i.ay=te,i.az=function(I){I=I.slice();let S=Object.create(null);for(let D=0;D25||X<0||X>=1||D<0||D>=1)},i.bc=function(I,S){return I[0]=S[0],I[1]=0,I[2]=0,I[3]=0,I[4]=0,I[5]=S[1],I[6]=0,I[7]=0,I[8]=0,I[9]=0,I[10]=S[2],I[11]=0,I[12]=0,I[13]=0,I[14]=0,I[15]=1,I},i.bd=class extends Ft{},i.be=cM,i.bf=h9,i.bh=de,i.bi=function(I,S){be.REGISTERED_PROTOCOLS[I]=S},i.bj=function(I){delete be.REGISTERED_PROTOCOLS[I]},i.bk=function(I,S){let D={};for(let ie=0;ie_u*Wf)}let su=we?"center":D.get("text-justify").evaluate(Mt,{},I.canonical),yl=D.get("symbol-placement")==="point"?D.get("text-max-width").evaluate(Mt,{},I.canonical)*Wf:1/0,Eu=()=>{I.bucket.allowVerticalPlacement&&is(La)&&(Jr.vertical=Gx(li,I.glyphMap,I.glyphPositions,I.imagePositions,$t,yl,ve,mu,"left",kl,cn,i.ah.vertical,!0,Sr,vr))};if(!we&&Iu){let bu=new Set;if(su==="auto")for(let Xs=0;Xsa(void 0,void 0,void 0,function*(){if(I.byteLength===0)return createImageBitmap(new ImageData(1,1));let S=new Blob([new Uint8Array(I)],{type:"image/png"});try{return createImageBitmap(S)}catch(D){throw new Error(`Could not load image because of ${D.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),i.e=L,i.f=I=>new Promise((S,D)=>{let X=new Image;X.onload=()=>{S(X),URL.revokeObjectURL(X.src),X.onload=null,window.requestAnimationFrame(()=>{X.src=j})},X.onerror=()=>D(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let ie=new Blob([new Uint8Array(I)],{type:"image/png"});X.src=I.byteLength?URL.createObjectURL(ie):j}),i.g=Pe,i.h=(I,S)=>ke(L(I,{type:"json"}),S),i.i=F,i.j=ye,i.k=Fe,i.l=(I,S)=>ke(L(I,{type:"arrayBuffer"}),S),i.m=ke,i.n=function(I){return new tM(I).readFields(NQ,[])},i.o=ul,i.p=iM,i.q=le,i.r=Ti,i.s=Ee,i.t=Pi,i.u=gi,i.v=ce,i.w=A,i.x=function([I,S,D]){return S+=90,S*=Math.PI/180,D*=Math.PI/180,{x:I*Math.cos(S)*Math.sin(D),y:I*Math.sin(S)*Math.sin(D),z:I*Math.cos(D)}},i.y=ka,i.z=cs}),r("worker",["./shared"],function(i){"use strict";class a{constructor(xe){this.keyCache={},xe&&this.replace(xe)}replace(xe){this._layerConfigs={},this._layers={},this.update(xe,[])}update(xe,Oe){for(let De of xe){this._layerConfigs[De.id]=De;let ct=this._layers[De.id]=i.aA(De);ct._featureFilter=i.a7(ct.filter),this.keyCache[De.id]&&delete this.keyCache[De.id]}for(let De of Oe)delete this.keyCache[De],delete this._layerConfigs[De],delete this._layers[De];this.familiesBySource={};let Re=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let De of Re){let ct=De.map(Pt=>this._layers[Pt.id]),ge=ct[0];if(ge.visibility==="none")continue;let fe=ge.source||"",pe=this.familiesBySource[fe];pe||(pe=this.familiesBySource[fe]={});let dt=ge.sourceLayer||"_geojsonTileLayer",It=pe[dt];It||(It=pe[dt]=[]),It.push(ct)}}}class o{constructor(xe){let Oe={},Re=[];for(let fe in xe){let pe=xe[fe],dt=Oe[fe]={};for(let It in pe){let Pt=pe[+It];if(!Pt||Pt.bitmap.width===0||Pt.bitmap.height===0)continue;let rr={x:0,y:0,w:Pt.bitmap.width+2,h:Pt.bitmap.height+2};Re.push(rr),dt[It]={rect:rr,metrics:Pt.metrics}}}let{w:De,h:ct}=i.p(Re),ge=new i.o({width:De||1,height:ct||1});for(let fe in xe){let pe=xe[fe];for(let dt in pe){let It=pe[+dt];if(!It||It.bitmap.width===0||It.bitmap.height===0)continue;let Pt=Oe[fe][dt].rect;i.o.copy(It.bitmap,ge,{x:0,y:0},{x:Pt.x+1,y:Pt.y+1},It.bitmap)}}this.image=ge,this.positions=Oe}}i.bl("GlyphAtlas",o);class s{constructor(xe){this.tileID=new i.S(xe.tileID.overscaledZ,xe.tileID.wrap,xe.tileID.canonical.z,xe.tileID.canonical.x,xe.tileID.canonical.y),this.uid=xe.uid,this.zoom=xe.zoom,this.pixelRatio=xe.pixelRatio,this.tileSize=xe.tileSize,this.source=xe.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=xe.showCollisionBoxes,this.collectResourceTiming=!!xe.collectResourceTiming,this.returnDependencies=!!xe.returnDependencies,this.promoteId=xe.promoteId,this.inFlightDependencies=[]}parse(xe,Oe,Re,De){return i._(this,void 0,void 0,function*(){this.status="parsing",this.data=xe,this.collisionBoxArray=new i.a5;let ct=new i.bm(Object.keys(xe.layers).sort()),ge=new i.bn(this.tileID,this.promoteId);ge.bucketLayerIDs=[];let fe={},pe={featureIndex:ge,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:Re},dt=Oe.familiesBySource[this.source];for(let nn in dt){let ii=xe.layers[nn];if(!ii)continue;ii.version===1&&i.w(`Vector tile source "${this.source}" layer "${nn}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let wi=ct.encode(nn),Gi=[];for(let Bt=0;Bt=yt.maxzoom||yt.visibility!=="none"&&(u(Bt,this.zoom,Re),(fe[yt.id]=yt.createBucket({index:ge.bucketLayerIDs.length,layers:Bt,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:wi,sourceID:this.source})).populate(Gi,pe,this.tileID.canonical),ge.bucketLayerIDs.push(Bt.map(Vt=>Vt.id)))}}let It=i.aF(pe.glyphDependencies,nn=>Object.keys(nn).map(Number));this.inFlightDependencies.forEach(nn=>nn==null?void 0:nn.abort()),this.inFlightDependencies=[];let Pt=Promise.resolve({});if(Object.keys(It).length){let nn=new AbortController;this.inFlightDependencies.push(nn),Pt=De.sendAsync({type:"GG",data:{stacks:It,source:this.source,tileID:this.tileID,type:"glyphs"}},nn)}let rr=Object.keys(pe.iconDependencies),Hr=Promise.resolve({});if(rr.length){let nn=new AbortController;this.inFlightDependencies.push(nn),Hr=De.sendAsync({type:"GI",data:{icons:rr,source:this.source,tileID:this.tileID,type:"icons"}},nn)}let Dr=Object.keys(pe.patternDependencies),Mr=Promise.resolve({});if(Dr.length){let nn=new AbortController;this.inFlightDependencies.push(nn),Mr=De.sendAsync({type:"GI",data:{icons:Dr,source:this.source,tileID:this.tileID,type:"patterns"}},nn)}let[Fr,di,Di]=yield Promise.all([Pt,Hr,Mr]),Ii=new o(Fr),Ci=new i.bo(di,Di);for(let nn in fe){let ii=fe[nn];ii instanceof i.a6?(u(ii.layers,this.zoom,Re),i.bp({bucket:ii,glyphMap:Fr,glyphPositions:Ii.positions,imageMap:di,imagePositions:Ci.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):ii.hasPattern&&(ii instanceof i.bq||ii instanceof i.br||ii instanceof i.bs)&&(u(ii.layers,this.zoom,Re),ii.addFeatures(pe,this.tileID.canonical,Ci.patternPositions))}return this.status="done",{buckets:Object.values(fe).filter(nn=>!nn.isEmpty()),featureIndex:ge,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ii.image,imageAtlas:Ci,glyphMap:this.returnDependencies?Fr:null,iconMap:this.returnDependencies?di:null,glyphPositions:this.returnDependencies?Ii.positions:null}})}}function u(Ie,xe,Oe){let Re=new i.z(xe);for(let De of Ie)De.recalculate(Re,Oe)}class l{constructor(xe,Oe,Re){this.actor=xe,this.layerIndex=Oe,this.availableImages=Re,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(xe,Oe){return i._(this,void 0,void 0,function*(){let Re=yield i.l(xe.request,Oe);try{return{vectorTile:new i.bt.VectorTile(new i.bu(Re.data)),rawData:Re.data,cacheControl:Re.cacheControl,expires:Re.expires}}catch(De){let ct=new Uint8Array(Re.data),ge=`Unable to parse the tile at ${xe.request.url}, `;throw ge+=ct[0]===31&&ct[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${De.message}`,new Error(ge)}})}loadTile(xe){return i._(this,void 0,void 0,function*(){let Oe=xe.uid,Re=!!(xe&&xe.request&&xe.request.collectResourceTiming)&&new i.bv(xe.request),De=new s(xe);this.loading[Oe]=De;let ct=new AbortController;De.abort=ct;try{let ge=yield this.loadVectorTile(xe,ct);if(delete this.loading[Oe],!ge)return null;let fe=ge.rawData,pe={};ge.expires&&(pe.expires=ge.expires),ge.cacheControl&&(pe.cacheControl=ge.cacheControl);let dt={};if(Re){let Pt=Re.finish();Pt&&(dt.resourceTiming=JSON.parse(JSON.stringify(Pt)))}De.vectorTile=ge.vectorTile;let It=De.parse(ge.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Oe]=De,this.fetching[Oe]={rawTileData:fe,cacheControl:pe,resourceTiming:dt};try{let Pt=yield It;return i.e({rawTileData:fe.slice(0)},Pt,pe,dt)}finally{delete this.fetching[Oe]}}catch(ge){throw delete this.loading[Oe],De.status="done",this.loaded[Oe]=De,ge}})}reloadTile(xe){return i._(this,void 0,void 0,function*(){let Oe=xe.uid;if(!this.loaded||!this.loaded[Oe])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let Re=this.loaded[Oe];if(Re.showCollisionBoxes=xe.showCollisionBoxes,Re.status==="parsing"){let De=yield Re.parse(Re.vectorTile,this.layerIndex,this.availableImages,this.actor),ct;if(this.fetching[Oe]){let{rawTileData:ge,cacheControl:fe,resourceTiming:pe}=this.fetching[Oe];delete this.fetching[Oe],ct=i.e({rawTileData:ge.slice(0)},De,fe,pe)}else ct=De;return ct}if(Re.status==="done"&&Re.vectorTile)return Re.parse(Re.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(xe){return i._(this,void 0,void 0,function*(){let Oe=this.loading,Re=xe.uid;Oe&&Oe[Re]&&Oe[Re].abort&&(Oe[Re].abort.abort(),delete Oe[Re])})}removeTile(xe){return i._(this,void 0,void 0,function*(){this.loaded&&this.loaded[xe.uid]&&delete this.loaded[xe.uid]})}}class f{constructor(){this.loaded={}}loadTile(xe){return i._(this,void 0,void 0,function*(){let{uid:Oe,encoding:Re,rawImageData:De,redFactor:ct,greenFactor:ge,blueFactor:fe,baseShift:pe}=xe,dt=De.width+2,It=De.height+2,Pt=i.b(De)?new i.R({width:dt,height:It},yield i.bw(De,-1,-1,dt,It)):De,rr=new i.bx(Oe,Pt,Re,ct,ge,fe,pe);return this.loaded=this.loaded||{},this.loaded[Oe]=rr,rr})}removeTile(xe){let Oe=this.loaded,Re=xe.uid;Oe&&Oe[Re]&&delete Oe[Re]}}function c(Ie,xe){if(Ie.length!==0){h(Ie[0],xe);for(var Oe=1;Oe=Math.abs(fe)?Oe-pe+fe:fe-pe+Oe,Oe=pe}Oe+Re>=0!=!!xe&&Ie.reverse()}var d=i.by(function Ie(xe,Oe){var Re,De=xe&&xe.type;if(De==="FeatureCollection")for(Re=0;Re>31}function F(Ie,xe){for(var Oe=Ie.loadGeometry(),Re=Ie.type,De=0,ct=0,ge=Oe.length,fe=0;feIe},H=Math.fround||(N=new Float32Array(1),Ie=>(N[0]=+Ie,N[0]));var N;let W=3,re=5,ae=6;class be{constructor(xe){this.options=Object.assign(Object.create(j),xe),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(xe){let{log:Oe,minZoom:Re,maxZoom:De}=this.options;Oe&&console.time("total time");let ct=`prepare ${xe.length} points`;Oe&&console.time(ct),this.points=xe;let ge=[];for(let pe=0;pe=Re;pe--){let dt=+Date.now();fe=this.trees[pe]=this._createTree(this._cluster(fe,pe)),Oe&&console.log("z%d: %d clusters in %dms",pe,fe.numItems,+Date.now()-dt)}return Oe&&console.timeEnd("total time"),this}getClusters(xe,Oe){let Re=((xe[0]+180)%360+360)%360-180,De=Math.max(-90,Math.min(90,xe[1])),ct=xe[2]===180?180:((xe[2]+180)%360+360)%360-180,ge=Math.max(-90,Math.min(90,xe[3]));if(xe[2]-xe[0]>=360)Re=-180,ct=180;else if(Re>ct){let Pt=this.getClusters([Re,De,180,ge],Oe),rr=this.getClusters([-180,De,ct,ge],Oe);return Pt.concat(rr)}let fe=this.trees[this._limitZoom(Oe)],pe=fe.range(de(Re),te(ge),de(ct),te(De)),dt=fe.data,It=[];for(let Pt of pe){let rr=this.stride*Pt;It.push(dt[rr+re]>1?Pe(dt,rr,this.clusterProps):this.points[dt[rr+W]])}return It}getChildren(xe){let Oe=this._getOriginId(xe),Re=this._getOriginZoom(xe),De="No cluster with the specified id.",ct=this.trees[Re];if(!ct)throw new Error(De);let ge=ct.data;if(Oe*this.stride>=ge.length)throw new Error(De);let fe=this.options.radius/(this.options.extent*Math.pow(2,Re-1)),pe=ct.within(ge[Oe*this.stride],ge[Oe*this.stride+1],fe),dt=[];for(let It of pe){let Pt=It*this.stride;ge[Pt+4]===xe&&dt.push(ge[Pt+re]>1?Pe(ge,Pt,this.clusterProps):this.points[ge[Pt+W]])}if(dt.length===0)throw new Error(De);return dt}getLeaves(xe,Oe,Re){let De=[];return this._appendLeaves(De,xe,Oe=Oe||10,Re=Re||0,0),De}getTile(xe,Oe,Re){let De=this.trees[this._limitZoom(xe)],ct=Math.pow(2,xe),{extent:ge,radius:fe}=this.options,pe=fe/ge,dt=(Re-pe)/ct,It=(Re+1+pe)/ct,Pt={features:[]};return this._addTileFeatures(De.range((Oe-pe)/ct,dt,(Oe+1+pe)/ct,It),De.data,Oe,Re,ct,Pt),Oe===0&&this._addTileFeatures(De.range(1-pe/ct,dt,1,It),De.data,ct,Re,ct,Pt),Oe===ct-1&&this._addTileFeatures(De.range(0,dt,pe/ct,It),De.data,-1,Re,ct,Pt),Pt.features.length?Pt:null}getClusterExpansionZoom(xe){let Oe=this._getOriginZoom(xe)-1;for(;Oe<=this.options.maxZoom;){let Re=this.getChildren(xe);if(Oe++,Re.length!==1)break;xe=Re[0].properties.cluster_id}return Oe}_appendLeaves(xe,Oe,Re,De,ct){let ge=this.getChildren(Oe);for(let fe of ge){let pe=fe.properties;if(pe&&pe.cluster?ct+pe.point_count<=De?ct+=pe.point_count:ct=this._appendLeaves(xe,pe.cluster_id,Re,De,ct):ct1,It,Pt,rr;if(dt)It=Ce(Oe,pe,this.clusterProps),Pt=Oe[pe],rr=Oe[pe+1];else{let Mr=this.points[Oe[pe+W]];It=Mr.properties;let[Fr,di]=Mr.geometry.coordinates;Pt=de(Fr),rr=te(di)}let Hr={type:1,geometry:[[Math.round(this.options.extent*(Pt*ct-Re)),Math.round(this.options.extent*(rr*ct-De))]],tags:It},Dr;Dr=dt||this.options.generateId?Oe[pe+W]:this.points[Oe[pe+W]].id,Dr!==void 0&&(Hr.id=Dr),ge.features.push(Hr)}}_limitZoom(xe){return Math.max(this.options.minZoom,Math.min(Math.floor(+xe),this.options.maxZoom+1))}_cluster(xe,Oe){let{radius:Re,extent:De,reduce:ct,minPoints:ge}=this.options,fe=Re/(De*Math.pow(2,Oe)),pe=xe.data,dt=[],It=this.stride;for(let Pt=0;PtOe&&(Fr+=pe[Di+re])}if(Fr>Mr&&Fr>=ge){let di,Di=rr*Mr,Ii=Hr*Mr,Ci=-1,nn=((Pt/It|0)<<5)+(Oe+1)+this.points.length;for(let ii of Dr){let wi=ii*It;if(pe[wi+2]<=Oe)continue;pe[wi+2]=Oe;let Gi=pe[wi+re];Di+=pe[wi]*Gi,Ii+=pe[wi+1]*Gi,pe[wi+4]=nn,ct&&(di||(di=this._map(pe,Pt,!0),Ci=this.clusterProps.length,this.clusterProps.push(di)),ct(di,this._map(pe,wi)))}pe[Pt+4]=nn,dt.push(Di/Fr,Ii/Fr,1/0,nn,-1,Fr),ct&&dt.push(Ci)}else{for(let di=0;di1)for(let di of Dr){let Di=di*It;if(!(pe[Di+2]<=Oe)){pe[Di+2]=Oe;for(let Ii=0;Ii>5}_getOriginZoom(xe){return(xe-this.points.length)%32}_map(xe,Oe,Re){if(xe[Oe+re]>1){let ge=this.clusterProps[xe[Oe+ae]];return Re?Object.assign({},ge):ge}let De=this.points[xe[Oe+W]].properties,ct=this.options.map(De);return Re&&ct===De?Object.assign({},ct):ct}}function Pe(Ie,xe,Oe){return{type:"Feature",id:Ie[xe+W],properties:Ce(Ie,xe,Oe),geometry:{type:"Point",coordinates:[(Re=Ie[xe],360*(Re-.5)),ke(Ie[xe+1])]}};var Re}function Ce(Ie,xe,Oe){let Re=Ie[xe+re],De=Re>=1e4?`${Math.round(Re/1e3)}k`:Re>=1e3?Math.round(Re/100)/10+"k":Re,ct=Ie[xe+ae],ge=ct===-1?{}:Object.assign({},Oe[ct]);return Object.assign(ge,{cluster:!0,cluster_id:Ie[xe+W],point_count:Re,point_count_abbreviated:De})}function de(Ie){return Ie/360+.5}function te(Ie){let xe=Math.sin(Ie*Math.PI/180),Oe=.5-.25*Math.log((1+xe)/(1-xe))/Math.PI;return Oe<0?0:Oe>1?1:Oe}function ke(Ie){let xe=(180-360*Ie)*Math.PI/180;return 360*Math.atan(Math.exp(xe))/Math.PI-90}function Ee(Ie,xe,Oe,Re){let De=Re,ct=xe+(Oe-xe>>1),ge,fe=Oe-xe,pe=Ie[xe],dt=Ie[xe+1],It=Ie[Oe],Pt=Ie[Oe+1];for(let rr=xe+3;rrDe)ge=rr,De=Hr;else if(Hr===De){let Dr=Math.abs(rr-ct);DrRe&&(ge-xe>3&&Ee(Ie,xe,ge,Re),Ie[ge+2]=De,Oe-ge>3&&Ee(Ie,ge,Oe,Re))}function Me(Ie,xe,Oe,Re,De,ct){let ge=De-Oe,fe=ct-Re;if(ge!==0||fe!==0){let pe=((Ie-Oe)*ge+(xe-Re)*fe)/(ge*ge+fe*fe);pe>1?(Oe=De,Re=ct):pe>0&&(Oe+=ge*pe,Re+=fe*pe)}return ge=Ie-Oe,fe=xe-Re,ge*ge+fe*fe}function Ne(Ie,xe,Oe,Re){let De={id:Ie==null?null:Ie,type:xe,geometry:Oe,tags:Re,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(xe==="Point"||xe==="MultiPoint"||xe==="LineString")Fe(De,Oe);else if(xe==="Polygon")Fe(De,Oe[0]);else if(xe==="MultiLineString")for(let ct of Oe)Fe(De,ct);else if(xe==="MultiPolygon")for(let ct of Oe)Fe(De,ct[0]);return De}function Fe(Ie,xe){for(let Oe=0;Oe0&&(ge+=Re?(De*It-dt*ct)/2:Math.sqrt(Math.pow(dt-De,2)+Math.pow(It-ct,2))),De=dt,ct=It}let fe=xe.length-3;xe[2]=1,Ee(xe,0,fe,Oe),xe[fe+2]=1,xe.size=Math.abs(ge),xe.start=0,xe.end=xe.size}function Ye(Ie,xe,Oe,Re){for(let De=0;De1?1:Oe}function Nt(Ie,xe,Oe,Re,De,ct,ge,fe){if(Re/=xe,ct>=(Oe/=xe)&&ge=Re)return null;let pe=[];for(let dt of Ie){let It=dt.geometry,Pt=dt.type,rr=De===0?dt.minX:dt.minY,Hr=De===0?dt.maxX:dt.maxY;if(rr>=Oe&&Hr=Re)continue;let Dr=[];if(Pt==="Point"||Pt==="MultiPoint")it(It,Dr,Oe,Re,De);else if(Pt==="LineString")Ke(It,Dr,Oe,Re,De,!1,fe.lineMetrics);else if(Pt==="MultiLineString")Tt(It,Dr,Oe,Re,De,!1);else if(Pt==="Polygon")Tt(It,Dr,Oe,Re,De,!0);else if(Pt==="MultiPolygon")for(let Mr of It){let Fr=[];Tt(Mr,Fr,Oe,Re,De,!0),Fr.length&&Dr.push(Fr)}if(Dr.length){if(fe.lineMetrics&&Pt==="LineString"){for(let Mr of Dr)pe.push(Ne(dt.id,Pt,Mr,dt.tags));continue}Pt!=="LineString"&&Pt!=="MultiLineString"||(Dr.length===1?(Pt="LineString",Dr=Dr[0]):Pt="MultiLineString"),Pt!=="Point"&&Pt!=="MultiPoint"||(Pt=Dr.length===3?"Point":"MultiPoint"),pe.push(Ne(dt.id,Pt,Dr,dt.tags))}}return pe.length?pe:null}function it(Ie,xe,Oe,Re,De){for(let ct=0;ct=Oe&&ge<=Re&&St(xe,Ie[ct],Ie[ct+1],Ie[ct+2])}}function Ke(Ie,xe,Oe,Re,De,ct,ge){let fe=kt(Ie),pe=De===0?Dt:Zt,dt,It,Pt=Ie.start;for(let Fr=0;FrOe&&(It=pe(fe,di,Di,Ci,nn,Oe),ge&&(fe.start=Pt+dt*It)):ii>Re?wi=Oe&&(It=pe(fe,di,Di,Ci,nn,Oe),Gi=!0),wi>Re&&ii<=Re&&(It=pe(fe,di,Di,Ci,nn,Re),Gi=!0),!ct&&Gi&&(ge&&(fe.end=Pt+dt*It),xe.push(fe),fe=kt(Ie)),ge&&(Pt+=dt)}let rr=Ie.length-3,Hr=Ie[rr],Dr=Ie[rr+1],Mr=De===0?Hr:Dr;Mr>=Oe&&Mr<=Re&&St(fe,Hr,Dr,Ie[rr+2]),rr=fe.length-3,ct&&rr>=3&&(fe[rr]!==fe[0]||fe[rr+1]!==fe[1])&&St(fe,fe[0],fe[1],fe[2]),fe.length&&xe.push(fe)}function kt(Ie){let xe=[];return xe.size=Ie.size,xe.start=Ie.start,xe.end=Ie.end,xe}function Tt(Ie,xe,Oe,Re,De,ct){for(let ge of Ie)Ke(ge,xe,Oe,Re,De,ct,!1)}function St(Ie,xe,Oe,Re){Ie.push(xe,Oe,Re)}function Dt(Ie,xe,Oe,Re,De,ct){let ge=(ct-xe)/(Re-xe);return St(Ie,ct,Oe+(De-Oe)*ge,1),ge}function Zt(Ie,xe,Oe,Re,De,ct){let ge=(ct-Oe)/(De-Oe);return St(Ie,xe+(Re-xe)*ge,ct,1),ge}function Et(Ie,xe){let Oe=[];for(let Re=0;Re0&&xe.size<(De?ge:Re))return void(Oe.numPoints+=xe.length/3);let fe=[];for(let pe=0;pege)&&(Oe.numSimplified++,fe.push(xe[pe],xe[pe+1])),Oe.numPoints++;De&&function(pe,dt){let It=0;for(let Pt=0,rr=pe.length,Hr=rr-2;Pt0===dt)for(let Pt=0,rr=pe.length;Pt24)throw new Error("maxZoom should be in the 0-24 range");if(Oe.promoteId&&Oe.generateId)throw new Error("promoteId and generateId cannot be used together.");let De=function(ct,ge){let fe=[];if(ct.type==="FeatureCollection")for(let pe=0;pe1&&console.time("creation"),Hr=this.tiles[rr]=vt(xe,Oe,Re,De,dt),this.tileCoords.push({z:Oe,x:Re,y:De}),It)){It>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Oe,Re,De,Hr.numFeatures,Hr.numPoints,Hr.numSimplified),console.timeEnd("creation"));let Gi=`z${Oe}`;this.stats[Gi]=(this.stats[Gi]||0)+1,this.total++}if(Hr.source=xe,ct==null){if(Oe===dt.indexMaxZoom||Hr.numPoints<=dt.indexMaxPoints)continue}else{if(Oe===dt.maxZoom||Oe===ct)continue;if(ct!=null){let Gi=ct-Oe;if(Re!==ge>>Gi||De!==fe>>Gi)continue}}if(Hr.source=null,xe.length===0)continue;It>1&&console.time("clipping");let Dr=.5*dt.buffer/dt.extent,Mr=.5-Dr,Fr=.5+Dr,di=1+Dr,Di=null,Ii=null,Ci=null,nn=null,ii=Nt(xe,Pt,Re-Dr,Re+Fr,0,Hr.minX,Hr.maxX,dt),wi=Nt(xe,Pt,Re+Mr,Re+di,0,Hr.minX,Hr.maxX,dt);xe=null,ii&&(Di=Nt(ii,Pt,De-Dr,De+Fr,1,Hr.minY,Hr.maxY,dt),Ii=Nt(ii,Pt,De+Mr,De+di,1,Hr.minY,Hr.maxY,dt),ii=null),wi&&(Ci=Nt(wi,Pt,De-Dr,De+Fr,1,Hr.minY,Hr.maxY,dt),nn=Nt(wi,Pt,De+Mr,De+di,1,Hr.minY,Hr.maxY,dt),wi=null),It>1&&console.timeEnd("clipping"),pe.push(Di||[],Oe+1,2*Re,2*De),pe.push(Ii||[],Oe+1,2*Re,2*De+1),pe.push(Ci||[],Oe+1,2*Re+1,2*De),pe.push(nn||[],Oe+1,2*Re+1,2*De+1)}}getTile(xe,Oe,Re){xe=+xe,Oe=+Oe,Re=+Re;let De=this.options,{extent:ct,debug:ge}=De;if(xe<0||xe>24)return null;let fe=1<1&&console.log("drilling down to z%d-%d-%d",xe,Oe,Re);let dt,It=xe,Pt=Oe,rr=Re;for(;!dt&&It>0;)It--,Pt>>=1,rr>>=1,dt=this.tiles[zt(It,Pt,rr)];return dt&&dt.source?(ge>1&&(console.log("found parent tile z%d-%d-%d",It,Pt,rr),console.time("drilling down")),this.splitTile(dt.source,It,Pt,rr,xe,Oe,Re),ge>1&&console.timeEnd("drilling down"),this.tiles[pe]?at(this.tiles[pe],ct):null):null}}function zt(Ie,xe,Oe){return 32*((1<{Pt.properties=Hr;let Dr={};for(let Mr of rr)Dr[Mr]=pe[Mr].evaluate(It,Pt);return Dr},ge.reduce=(Hr,Dr)=>{Pt.properties=Dr;for(let Mr of rr)It.accumulated=Hr[Mr],Hr[Mr]=dt[Mr].evaluate(It,Pt)},ge}(xe)).load((yield this._pendingData).features):(De=yield this._pendingData,new $e(De,xe.geojsonVtOptions)),this.loaded={};let ct={};if(Re){let ge=Re.finish();ge&&(ct.resourceTiming={},ct.resourceTiming[xe.source]=JSON.parse(JSON.stringify(ge)))}return ct}catch(ct){if(delete this._pendingRequest,i.bB(ct))return{abandoned:!0};throw ct}var De})}getData(){return i._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(xe){let Oe=this.loaded;return Oe&&Oe[xe.uid]?super.reloadTile(xe):this.loadTile(xe)}loadAndProcessGeoJSON(xe,Oe){return i._(this,void 0,void 0,function*(){let Re=yield this.loadGeoJSON(xe,Oe);if(delete this._pendingRequest,typeof Re!="object")throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`);if(d(Re,!0),xe.filter){let De=i.bC(xe.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(De.result==="error")throw new Error(De.value.map(ge=>`${ge.key}: ${ge.message}`).join(", "));Re={type:"FeatureCollection",features:Re.features.filter(ge=>De.value.evaluate({zoom:0},ge))}}return Re})}loadGeoJSON(xe,Oe){return i._(this,void 0,void 0,function*(){let{promoteId:Re}=xe;if(xe.request){let De=yield i.h(xe.request,Oe);return this._dataUpdateable=hr(De.data,Re)?yr(De.data,Re):void 0,De.data}if(typeof xe.data=="string")try{let De=JSON.parse(xe.data);return this._dataUpdateable=hr(De,Re)?yr(De,Re):void 0,De}catch(De){throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`)}if(!xe.dataDiff)throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${xe.source}`);return function(De,ct,ge){var fe,pe,dt,It;if(ct.removeAll&&De.clear(),ct.remove)for(let Pt of ct.remove)De.delete(Pt);if(ct.add)for(let Pt of ct.add){let rr=Yt(Pt,ge);rr!=null&&De.set(rr,Pt)}if(ct.update)for(let Pt of ct.update){let rr=De.get(Pt.id);if(rr==null)continue;let Hr=!Pt.removeAllProperties&&(((fe=Pt.removeProperties)===null||fe===void 0?void 0:fe.length)>0||((pe=Pt.addOrUpdateProperties)===null||pe===void 0?void 0:pe.length)>0);if((Pt.newGeometry||Pt.removeAllProperties||Hr)&&(rr=Object.assign({},rr),De.set(Pt.id,rr),Hr&&(rr.properties=Object.assign({},rr.properties))),Pt.newGeometry&&(rr.geometry=Pt.newGeometry),Pt.removeAllProperties)rr.properties={};else if(((dt=Pt.removeProperties)===null||dt===void 0?void 0:dt.length)>0)for(let Dr of Pt.removeProperties)Object.prototype.hasOwnProperty.call(rr.properties,Dr)&&delete rr.properties[Dr];if(((It=Pt.addOrUpdateProperties)===null||It===void 0?void 0:It.length)>0)for(let{key:Dr,value:Mr}of Pt.addOrUpdateProperties)rr.properties[Dr]=Mr}}(this._dataUpdateable,xe.dataDiff,Re),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(xe){return i._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(xe){return this._geoJSONIndex.getClusterExpansionZoom(xe.clusterId)}getClusterChildren(xe){return this._geoJSONIndex.getChildren(xe.clusterId)}getClusterLeaves(xe){return this._geoJSONIndex.getLeaves(xe.clusterId,xe.limit,xe.offset)}}class Ut{constructor(xe){this.self=xe,this.actor=new i.F(xe),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Oe,Re)=>{if(this.externalWorkerSourceTypes[Oe])throw new Error(`Worker source with name "${Oe}" already registered.`);this.externalWorkerSourceTypes[Oe]=Re},this.self.addProtocol=i.bi,this.self.removeProtocol=i.bj,this.self.registerRTLTextPlugin=Oe=>{if(i.bD.isParsed())throw new Error("RTL text plugin already registered.");i.bD.setMethods(Oe)},this.actor.registerMessageHandler("LDT",(Oe,Re)=>this._getDEMWorkerSource(Oe,Re.source).loadTile(Re)),this.actor.registerMessageHandler("RDT",(Oe,Re)=>i._(this,void 0,void 0,function*(){this._getDEMWorkerSource(Oe,Re.source).removeTile(Re)})),this.actor.registerMessageHandler("GCEZ",(Oe,Re)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Re.type,Re.source).getClusterExpansionZoom(Re)})),this.actor.registerMessageHandler("GCC",(Oe,Re)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Re.type,Re.source).getClusterChildren(Re)})),this.actor.registerMessageHandler("GCL",(Oe,Re)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Re.type,Re.source).getClusterLeaves(Re)})),this.actor.registerMessageHandler("LD",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).loadData(Re)),this.actor.registerMessageHandler("GD",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).getData()),this.actor.registerMessageHandler("LT",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).loadTile(Re)),this.actor.registerMessageHandler("RT",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).reloadTile(Re)),this.actor.registerMessageHandler("AT",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).abortTile(Re)),this.actor.registerMessageHandler("RMT",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).removeTile(Re)),this.actor.registerMessageHandler("RS",(Oe,Re)=>i._(this,void 0,void 0,function*(){if(!this.workerSources[Oe]||!this.workerSources[Oe][Re.type]||!this.workerSources[Oe][Re.type][Re.source])return;let De=this.workerSources[Oe][Re.type][Re.source];delete this.workerSources[Oe][Re.type][Re.source],De.removeSource!==void 0&&De.removeSource(Re)})),this.actor.registerMessageHandler("RM",Oe=>i._(this,void 0,void 0,function*(){delete this.layerIndexes[Oe],delete this.availableImages[Oe],delete this.workerSources[Oe],delete this.demWorkerSources[Oe]})),this.actor.registerMessageHandler("SR",(Oe,Re)=>i._(this,void 0,void 0,function*(){this.referrer=Re})),this.actor.registerMessageHandler("SRPS",(Oe,Re)=>this._syncRTLPluginState(Oe,Re)),this.actor.registerMessageHandler("IS",(Oe,Re)=>i._(this,void 0,void 0,function*(){this.self.importScripts(Re)})),this.actor.registerMessageHandler("SI",(Oe,Re)=>this._setImages(Oe,Re)),this.actor.registerMessageHandler("UL",(Oe,Re)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Oe).update(Re.layers,Re.removedIds)})),this.actor.registerMessageHandler("SL",(Oe,Re)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Oe).replace(Re)}))}_setImages(xe,Oe){return i._(this,void 0,void 0,function*(){this.availableImages[xe]=Oe;for(let Re in this.workerSources[xe]){let De=this.workerSources[xe][Re];for(let ct in De)De[ct].availableImages=Oe}})}_syncRTLPluginState(xe,Oe){return i._(this,void 0,void 0,function*(){if(i.bD.isParsed())return i.bD.getState();if(Oe.pluginStatus!=="loading")return i.bD.setState(Oe),Oe;let Re=Oe.pluginURL;if(this.self.importScripts(Re),i.bD.isParsed()){let De={pluginStatus:"loaded",pluginURL:Re};return i.bD.setState(De),De}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${Re}`)})}_getAvailableImages(xe){let Oe=this.availableImages[xe];return Oe||(Oe=[]),Oe}_getLayerIndex(xe){let Oe=this.layerIndexes[xe];return Oe||(Oe=this.layerIndexes[xe]=new a),Oe}_getWorkerSource(xe,Oe,Re){if(this.workerSources[xe]||(this.workerSources[xe]={}),this.workerSources[xe][Oe]||(this.workerSources[xe][Oe]={}),!this.workerSources[xe][Oe][Re]){let De={sendAsync:(ct,ge)=>(ct.targetMapId=xe,this.actor.sendAsync(ct,ge))};switch(Oe){case"vector":this.workerSources[xe][Oe][Re]=new l(De,this._getLayerIndex(xe),this._getAvailableImages(xe));break;case"geojson":this.workerSources[xe][Oe][Re]=new br(De,this._getLayerIndex(xe),this._getAvailableImages(xe));break;default:this.workerSources[xe][Oe][Re]=new this.externalWorkerSourceTypes[Oe](De,this._getLayerIndex(xe),this._getAvailableImages(xe))}}return this.workerSources[xe][Oe][Re]}_getDEMWorkerSource(xe,Oe){return this.demWorkerSources[xe]||(this.demWorkerSources[xe]={}),this.demWorkerSources[xe][Oe]||(this.demWorkerSources[xe][Oe]=new f),this.demWorkerSources[xe][Oe]}}return i.i(self)&&(self.worker=new Ut(self)),Ut}),r("index",["exports","./shared"],function(i,a){"use strict";var o="4.7.1";let s,u,l={now:typeof performance!="undefined"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:le=>new Promise((w,q)=>{let Q=requestAnimationFrame(w);le.signal.addEventListener("abort",()=>{cancelAnimationFrame(Q),q(a.c())})}),getImageData(le,w=0){return this.getImageCanvasContext(le).getImageData(-w,-w,le.width+2*w,le.height+2*w)},getImageCanvasContext(le){let w=window.document.createElement("canvas"),q=w.getContext("2d",{willReadFrequently:!0});if(!q)throw new Error("failed to create canvas 2d context");return w.width=le.width,w.height=le.height,q.drawImage(le,0,0,le.width,le.height),q},resolveURL:le=>(s||(s=document.createElement("a")),s.href=le,s.href),hardwareConcurrency:typeof navigator!="undefined"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(u==null&&(u=matchMedia("(prefers-reduced-motion: reduce)")),u.matches)}};class f{static testProp(w){if(!f.docStyle)return w[0];for(let q=0;q{window.removeEventListener("click",f.suppressClickInternal,!0)},0)}static getScale(w){let q=w.getBoundingClientRect();return{x:q.width/w.offsetWidth||1,y:q.height/w.offsetHeight||1,boundingClientRect:q}}static getPoint(w,q,Q){let ee=q.boundingClientRect;return new a.P((Q.clientX-ee.left)/q.x-w.clientLeft,(Q.clientY-ee.top)/q.y-w.clientTop)}static mousePos(w,q){let Q=f.getScale(w);return f.getPoint(w,Q,q)}static touchPos(w,q){let Q=[],ee=f.getScale(w);for(let ue=0;ue{h&&b(h),h=null,x=!0},d.onerror=()=>{p=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(le){let w,q,Q,ee;le.resetRequestQueue=()=>{w=[],q=0,Q=0,ee={}},le.addThrottleControl=mt=>{let Ft=Q++;return ee[Ft]=mt,Ft},le.removeThrottleControl=mt=>{delete ee[mt],Ge()},le.getImage=(mt,Ft,ir=!0)=>new Promise((or,kr)=>{c.supported&&(mt.headers||(mt.headers={}),mt.headers.accept="image/webp,*/*"),a.e(mt,{type:"image"}),w.push({abortController:Ft,requestParameters:mt,supportImageRefresh:ir,state:"queued",onError:Vr=>{kr(Vr)},onSuccess:Vr=>{or(Vr)}}),Ge()});let ue=mt=>a._(this,void 0,void 0,function*(){mt.state="running";let{requestParameters:Ft,supportImageRefresh:ir,onError:or,onSuccess:kr,abortController:Vr}=mt,he=ir===!1&&!a.i(self)&&!a.g(Ft.url)&&(!Ft.headers||Object.keys(Ft.headers).reduce((He,lt)=>He&<==="accept",!0));q++;let Se=he?et(Ft,Vr):a.m(Ft,Vr);try{let He=yield Se;delete mt.abortController,mt.state="completed",He.data instanceof HTMLImageElement||a.b(He.data)?kr(He):He.data&&kr({data:yield(qe=He.data,typeof createImageBitmap=="function"?a.d(qe):a.f(qe)),cacheControl:He.cacheControl,expires:He.expires})}catch(He){delete mt.abortController,or(He)}finally{q--,Ge()}var qe}),Ge=()=>{let mt=(()=>{for(let Ft of Object.keys(ee))if(ee[Ft]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Ft=q;Ft0;Ft++){let ir=w.shift();ir.abortController.signal.aborted?Ft--:ue(ir)}},et=(mt,Ft)=>new Promise((ir,or)=>{let kr=new Image,Vr=mt.url,he=mt.credentials;he&&he==="include"?kr.crossOrigin="use-credentials":(he&&he==="same-origin"||!a.s(Vr))&&(kr.crossOrigin="anonymous"),Ft.signal.addEventListener("abort",()=>{kr.src="",or(a.c())}),kr.fetchPriority="high",kr.onload=()=>{kr.onerror=kr.onload=null,ir({data:kr})},kr.onerror=()=>{kr.onerror=kr.onload=null,Ft.signal.aborted||or(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},kr.src=Vr})}(v||(v={})),v.resetRequestQueue();class k{constructor(w){this._transformRequestFn=w}transformRequest(w,q){return this._transformRequestFn&&this._transformRequestFn(w,q)||{url:w}}setTransformRequest(w){this._transformRequestFn=w}}function E(le){var w=new a.A(3);return w[0]=le[0],w[1]=le[1],w[2]=le[2],w}var T,L=function(le,w,q){return le[0]=w[0]-q[0],le[1]=w[1]-q[1],le[2]=w[2]-q[2],le};T=new a.A(3),a.A!=Float32Array&&(T[0]=0,T[1]=0,T[2]=0);var _=function(le){var w=le[0],q=le[1];return w*w+q*q};function C(le){let w=[];if(typeof le=="string")w.push({id:"default",url:le});else if(le&&le.length>0){let q=[];for(let{id:Q,url:ee}of le){let ue=`${Q}${ee}`;q.indexOf(ue)===-1&&(q.push(ue),w.push({id:Q,url:ee}))}}return w}function M(le,w,q){let Q=le.split("?");return Q[0]+=`${w}${q}`,Q.join("?")}(function(){var le=new a.A(2);a.A!=Float32Array&&(le[0]=0,le[1]=0)})();class m{constructor(w,q,Q,ee){this.context=w,this.format=Q,this.texture=w.gl.createTexture(),this.update(q,ee)}update(w,q,Q){let{width:ee,height:ue}=w,Ge=!(this.size&&this.size[0]===ee&&this.size[1]===ue||Q),{context:et}=this,{gl:mt}=et;if(this.useMipmap=!!(q&&q.useMipmap),mt.bindTexture(mt.TEXTURE_2D,this.texture),et.pixelStoreUnpackFlipY.set(!1),et.pixelStoreUnpack.set(1),et.pixelStoreUnpackPremultiplyAlpha.set(this.format===mt.RGBA&&(!q||q.premultiply!==!1)),Ge)this.size=[ee,ue],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?mt.texImage2D(mt.TEXTURE_2D,0,this.format,this.format,mt.UNSIGNED_BYTE,w):mt.texImage2D(mt.TEXTURE_2D,0,this.format,ee,ue,0,this.format,mt.UNSIGNED_BYTE,w.data);else{let{x:Ft,y:ir}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?mt.texSubImage2D(mt.TEXTURE_2D,0,Ft,ir,mt.RGBA,mt.UNSIGNED_BYTE,w):mt.texSubImage2D(mt.TEXTURE_2D,0,Ft,ir,ee,ue,mt.RGBA,mt.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&mt.generateMipmap(mt.TEXTURE_2D)}bind(w,q,Q){let{context:ee}=this,{gl:ue}=ee;ue.bindTexture(ue.TEXTURE_2D,this.texture),Q!==ue.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Q=ue.LINEAR),w!==this.filter&&(ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MAG_FILTER,w),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MIN_FILTER,Q||w),this.filter=w),q!==this.wrap&&(ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_S,q),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_T,q),this.wrap=q)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:w}=this.context;w.deleteTexture(this.texture),this.texture=null}}function P(le){let{userImage:w}=le;return!!(w&&w.render&&w.render())&&(le.data.replace(new Uint8Array(w.data.buffer)),!0)}class A extends a.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(w){if(this.loaded!==w&&(this.loaded=w,w)){for(let{ids:q,promiseResolve:Q}of this.requestors)Q(this._getImagesForIds(q));this.requestors=[]}}getImage(w){let q=this.images[w];if(q&&!q.data&&q.spriteData){let Q=q.spriteData;q.data=new a.R({width:Q.width,height:Q.height},Q.context.getImageData(Q.x,Q.y,Q.width,Q.height).data),q.spriteData=null}return q}addImage(w,q){if(this.images[w])throw new Error(`Image id ${w} already exist, use updateImage instead`);this._validate(w,q)&&(this.images[w]=q)}_validate(w,q){let Q=!0,ee=q.data||q.spriteData;return this._validateStretch(q.stretchX,ee&&ee.width)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchX" value`))),Q=!1),this._validateStretch(q.stretchY,ee&&ee.height)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchY" value`))),Q=!1),this._validateContent(q.content,q)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "content" value`))),Q=!1),Q}_validateStretch(w,q){if(!w)return!0;let Q=0;for(let ee of w){if(ee[0]{let ee=!0;if(!this.isLoaded())for(let ue of w)this.images[ue]||(ee=!1);this.isLoaded()||ee?q(this._getImagesForIds(w)):this.requestors.push({ids:w,promiseResolve:q})})}_getImagesForIds(w){let q={};for(let Q of w){let ee=this.getImage(Q);ee||(this.fire(new a.k("styleimagemissing",{id:Q})),ee=this.getImage(Q)),ee?q[Q]={data:ee.data.clone(),pixelRatio:ee.pixelRatio,sdf:ee.sdf,version:ee.version,stretchX:ee.stretchX,stretchY:ee.stretchY,content:ee.content,textFitWidth:ee.textFitWidth,textFitHeight:ee.textFitHeight,hasRenderCallback:!!(ee.userImage&&ee.userImage.render)}:a.w(`Image "${Q}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return q}getPixelSize(){let{width:w,height:q}=this.atlasImage;return{width:w,height:q}}getPattern(w){let q=this.patterns[w],Q=this.getImage(w);if(!Q)return null;if(q&&q.position.version===Q.version)return q.position;if(q)q.position.version=Q.version;else{let ee={w:Q.data.width+2,h:Q.data.height+2,x:0,y:0},ue=new a.I(ee,Q);this.patterns[w]={bin:ee,position:ue}}return this._updatePatternAtlas(),this.patterns[w].position}bind(w){let q=w.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new m(w,this.atlasImage,q.RGBA),this.atlasTexture.bind(q.LINEAR,q.CLAMP_TO_EDGE)}_updatePatternAtlas(){let w=[];for(let ue in this.patterns)w.push(this.patterns[ue].bin);let{w:q,h:Q}=a.p(w),ee=this.atlasImage;ee.resize({width:q||1,height:Q||1});for(let ue in this.patterns){let{bin:Ge}=this.patterns[ue],et=Ge.x+1,mt=Ge.y+1,Ft=this.getImage(ue).data,ir=Ft.width,or=Ft.height;a.R.copy(Ft,ee,{x:0,y:0},{x:et,y:mt},{width:ir,height:or}),a.R.copy(Ft,ee,{x:0,y:or-1},{x:et,y:mt-1},{width:ir,height:1}),a.R.copy(Ft,ee,{x:0,y:0},{x:et,y:mt+or},{width:ir,height:1}),a.R.copy(Ft,ee,{x:ir-1,y:0},{x:et-1,y:mt},{width:1,height:or}),a.R.copy(Ft,ee,{x:0,y:0},{x:et+ir,y:mt},{width:1,height:or})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(w){for(let q of w){if(this.callbackDispatchedThisFrame[q])continue;this.callbackDispatchedThisFrame[q]=!0;let Q=this.getImage(q);Q||a.w(`Image with ID: "${q}" was not found`),P(Q)&&this.updateImage(q,Q)}}}let B=1e20;function F(le,w,q,Q,ee,ue,Ge,et,mt){for(let Ft=w;Ft-1);mt++,ue[mt]=et,Ge[mt]=Ft,Ge[mt+1]=B}for(let et=0,mt=0;et65535)throw new Error("glyphs > 65535 not supported");if(Q.ranges[ue])return{stack:w,id:q,glyph:ee};if(!this.url)throw new Error("glyphsUrl is not set");if(!Q.requests[ue]){let et=G.loadGlyphRange(w,ue,this.url,this.requestManager);Q.requests[ue]=et}let Ge=yield Q.requests[ue];for(let et in Ge)this._doesCharSupportLocalGlyph(+et)||(Q.glyphs[+et]=Ge[+et]);return Q.ranges[ue]=!0,{stack:w,id:q,glyph:Ge[q]||null}})}_doesCharSupportLocalGlyph(w){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(w))}_tinySDF(w,q,Q){let ee=this.localIdeographFontFamily;if(!ee||!this._doesCharSupportLocalGlyph(Q))return;let ue=w.tinySDF;if(!ue){let et="400";/bold/i.test(q)?et="900":/medium/i.test(q)?et="500":/light/i.test(q)&&(et="200"),ue=w.tinySDF=new G.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:ee,fontWeight:et})}let Ge=ue.draw(String.fromCharCode(Q));return{id:Q,bitmap:new a.o({width:Ge.width||60,height:Ge.height||60},Ge.data),metrics:{width:Ge.glyphWidth/2||24,height:Ge.glyphHeight/2||24,left:Ge.glyphLeft/2+.5||0,top:Ge.glyphTop/2-27.5||-8,advance:Ge.glyphAdvance/2||24,isDoubleResolution:!0}}}}G.loadGlyphRange=function(le,w,q,Q){return a._(this,void 0,void 0,function*(){let ee=256*w,ue=ee+255,Ge=Q.transformRequest(q.replace("{fontstack}",le).replace("{range}",`${ee}-${ue}`),"Glyphs"),et=yield a.l(Ge,new AbortController);if(!et||!et.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${ue}`);let mt={};for(let Ft of a.n(et.data))mt[Ft.id]=Ft;return mt})},G.TinySDF=class{constructor({fontSize:le=24,buffer:w=3,radius:q=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:ue="normal",fontStyle:Ge="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=q;let et=this.size=le+4*w,mt=this._createCanvas(et),Ft=this.ctx=mt.getContext("2d",{willReadFrequently:!0});Ft.font=`${Ge} ${ue} ${le}px ${ee}`,Ft.textBaseline="alphabetic",Ft.textAlign="left",Ft.fillStyle="black",this.gridOuter=new Float64Array(et*et),this.gridInner=new Float64Array(et*et),this.f=new Float64Array(et),this.z=new Float64Array(et+1),this.v=new Uint16Array(et)}_createCanvas(le){let w=document.createElement("canvas");return w.width=w.height=le,w}draw(le){let{width:w,actualBoundingBoxAscent:q,actualBoundingBoxDescent:Q,actualBoundingBoxLeft:ee,actualBoundingBoxRight:ue}=this.ctx.measureText(le),Ge=Math.ceil(q),et=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(ue-ee))),mt=Math.min(this.size-this.buffer,Ge+Math.ceil(Q)),Ft=et+2*this.buffer,ir=mt+2*this.buffer,or=Math.max(Ft*ir,0),kr=new Uint8ClampedArray(or),Vr={data:kr,width:Ft,height:ir,glyphWidth:et,glyphHeight:mt,glyphTop:Ge,glyphLeft:0,glyphAdvance:w};if(et===0||mt===0)return Vr;let{ctx:he,buffer:Se,gridInner:qe,gridOuter:He}=this;he.clearRect(Se,Se,et,mt),he.fillText(le,Se,Se+Ge);let lt=he.getImageData(Se,Se,et,mt);He.fill(B,0,or),qe.fill(0,0,or);for(let tt=0;tt0?fr*fr:0,qe[nr]=fr<0?fr*fr:0}}F(He,0,0,Ft,ir,Ft,this.f,this.v,this.z),F(qe,Se,Se,et,mt,Ft,this.f,this.v,this.z);for(let tt=0;tt1&&(mt=w[++et]);let ir=Math.abs(Ft-mt.left),or=Math.abs(Ft-mt.right),kr=Math.min(ir,or),Vr,he=ue/Q*(ee+1);if(mt.isDash){let Se=ee-Math.abs(he);Vr=Math.sqrt(kr*kr+Se*Se)}else Vr=ee-Math.sqrt(kr*kr+he*he);this.data[Ge+Ft]=Math.max(0,Math.min(255,Vr+128))}}}addRegularDash(w){for(let et=w.length-1;et>=0;--et){let mt=w[et],Ft=w[et+1];mt.zeroLength?w.splice(et,1):Ft&&Ft.isDash===mt.isDash&&(Ft.left=mt.left,w.splice(et,1))}let q=w[0],Q=w[w.length-1];q.isDash===Q.isDash&&(q.left=Q.left-this.width,Q.right=q.right+this.width);let ee=this.width*this.nextRow,ue=0,Ge=w[ue];for(let et=0;et1&&(Ge=w[++ue]);let mt=Math.abs(et-Ge.left),Ft=Math.abs(et-Ge.right),ir=Math.min(mt,Ft);this.data[ee+et]=Math.max(0,Math.min(255,(Ge.isDash?ir:-ir)+128))}}addDash(w,q){let Q=q?7:0,ee=2*Q+1;if(this.nextRow+ee>this.height)return a.w("LineAtlas out of space"),null;let ue=0;for(let et=0;et{q.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[be]}numActive(){return Object.keys(this.active).length}}let Ce=Math.floor(l.hardwareConcurrency/2),de,te;function ke(){return de||(de=new Pe),de}Pe.workerCount=a.C(globalThis)?Math.max(Math.min(Ce,3),1):1;class Ee{constructor(w,q){this.workerPool=w,this.actors=[],this.currentActor=0,this.id=q;let Q=this.workerPool.acquire(q);for(let ee=0;ee{q.remove()}),this.actors=[],w&&this.workerPool.release(this.id)}registerMessageHandler(w,q){for(let Q of this.actors)Q.registerMessageHandler(w,q)}}function Me(){return te||(te=new Ee(ke(),a.G),te.registerMessageHandler("GR",(le,w,q)=>a.m(w,q))),te}function Ne(le,w){let q=a.H();return a.J(q,q,[1,1,0]),a.K(q,q,[.5*le.width,.5*le.height,1]),a.L(q,q,le.calculatePosMatrix(w.toUnwrapped()))}function Fe(le,w,q,Q,ee,ue){let Ge=function(or,kr,Vr){if(or)for(let he of or){let Se=kr[he];if(Se&&Se.source===Vr&&Se.type==="fill-extrusion")return!0}else for(let he in kr){let Se=kr[he];if(Se.source===Vr&&Se.type==="fill-extrusion")return!0}return!1}(ee&&ee.layers,w,le.id),et=ue.maxPitchScaleFactor(),mt=le.tilesIn(Q,et,Ge);mt.sort(ye);let Ft=[];for(let or of mt)Ft.push({wrappedTileID:or.tileID.wrapped().key,queryResults:or.tile.queryRenderedFeatures(w,q,le._state,or.queryGeometry,or.cameraQueryGeometry,or.scale,ee,ue,et,Ne(le.transform,or.tileID))});let ir=function(or){let kr={},Vr={};for(let he of or){let Se=he.queryResults,qe=he.wrappedTileID,He=Vr[qe]=Vr[qe]||{};for(let lt in Se){let tt=Se[lt],pt=He[lt]=He[lt]||{},Ht=kr[lt]=kr[lt]||[];for(let nr of tt)pt[nr.featureIndex]||(pt[nr.featureIndex]=!0,Ht.push(nr))}}return kr}(Ft);for(let or in ir)ir[or].forEach(kr=>{let Vr=kr.feature,he=le.getFeatureState(Vr.layer["source-layer"],Vr.id);Vr.source=Vr.layer.source,Vr.layer["source-layer"]&&(Vr.sourceLayer=Vr.layer["source-layer"]),Vr.state=he});return ir}function ye(le,w){let q=le.tileID,Q=w.tileID;return q.overscaledZ-Q.overscaledZ||q.canonical.y-Q.canonical.y||q.wrap-Q.wrap||q.canonical.x-Q.canonical.x}function Ve(le,w,q){return a._(this,void 0,void 0,function*(){let Q=le;if(le.url?Q=(yield a.h(w.transformRequest(le.url,"Source"),q)).data:yield l.frameAsync(q),!Q)return null;let ee=a.M(a.e(Q,le),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Q&&Q.vector_layers&&(ee.vectorLayerIds=Q.vector_layers.map(ue=>ue.id)),ee})}class ce{constructor(w,q){w&&(q?this.setSouthWest(w).setNorthEast(q):Array.isArray(w)&&(w.length===4?this.setSouthWest([w[0],w[1]]).setNorthEast([w[2],w[3]]):this.setSouthWest(w[0]).setNorthEast(w[1])))}setNorthEast(w){return this._ne=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}setSouthWest(w){return this._sw=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}extend(w){let q=this._sw,Q=this._ne,ee,ue;if(w instanceof a.N)ee=w,ue=w;else{if(!(w instanceof ce))return Array.isArray(w)?w.length===4||w.every(Array.isArray)?this.extend(ce.convert(w)):this.extend(a.N.convert(w)):w&&("lng"in w||"lon"in w)&&"lat"in w?this.extend(a.N.convert(w)):this;if(ee=w._sw,ue=w._ne,!ee||!ue)return this}return q||Q?(q.lng=Math.min(ee.lng,q.lng),q.lat=Math.min(ee.lat,q.lat),Q.lng=Math.max(ue.lng,Q.lng),Q.lat=Math.max(ue.lat,Q.lat)):(this._sw=new a.N(ee.lng,ee.lat),this._ne=new a.N(ue.lng,ue.lat)),this}getCenter(){return new a.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new a.N(this.getWest(),this.getNorth())}getSouthEast(){return new a.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(w){let{lng:q,lat:Q}=a.N.convert(w),ee=this._sw.lng<=q&&q<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ee=this._sw.lng>=q&&q>=this._ne.lng),this._sw.lat<=Q&&Q<=this._ne.lat&&ee}static convert(w){return w instanceof ce?w:w&&new ce(w)}static fromLngLat(w,q=0){let Q=360*q/40075017,ee=Q/Math.cos(Math.PI/180*w.lat);return new ce(new a.N(w.lng-ee,w.lat-Q),new a.N(w.lng+ee,w.lat+Q))}adjustAntiMeridian(){let w=new a.N(this._sw.lng,this._sw.lat),q=new a.N(this._ne.lng,this._ne.lat);return new ce(w,w.lng>q.lng?new a.N(q.lng+360,q.lat):q)}}class Ye{constructor(w,q,Q){this.bounds=ce.convert(this.validateBounds(w)),this.minzoom=q||0,this.maxzoom=Q||24}validateBounds(w){return Array.isArray(w)&&w.length===4?[Math.max(-180,w[0]),Math.max(-90,w[1]),Math.min(180,w[2]),Math.min(90,w[3])]:[-180,-90,180,90]}contains(w){let q=Math.pow(2,w.z),Q=Math.floor(a.O(this.bounds.getWest())*q),ee=Math.floor(a.Q(this.bounds.getNorth())*q),ue=Math.ceil(a.O(this.bounds.getEast())*q),Ge=Math.ceil(a.Q(this.bounds.getSouth())*q);return w.x>=Q&&w.x=ee&&w.y{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return a.e({},this._options)}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q={request:this.map._requestManager.transformRequest(q,"Tile"),uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,tileSize:this.tileSize*w.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};Q.request.collectResourceTiming=this._collectResourceTiming;let ee="RT";if(w.actor&&w.state!=="expired"){if(w.state==="loading")return new Promise((ue,Ge)=>{w.reloadPromise={resolve:ue,reject:Ge}})}else w.actor=this.dispatcher.getActor(),ee="LT";w.abortController=new AbortController;try{let ue=yield w.actor.sendAsync({type:ee,data:Q},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,ue)}catch(ue){if(delete w.abortController,w.aborted)return;if(ue&&ue.status!==404)throw ue;this._afterTileLoadWorkerResponse(w,null)}})}_afterTileLoadWorkerResponse(w,q){if(q&&q.resourceTiming&&(w.resourceTiming=q.resourceTiming),q&&this.map._refreshExpiredTiles&&w.setExpiryData(q),w.loadVectorData(q,this.map.painter),w.reloadPromise){let Q=w.reloadPromise;w.reloadPromise=null,this.loadTile(w).then(Q.resolve).catch(Q.reject)}}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.actor&&(yield w.actor.sendAsync({type:"AT",data:{uid:w.uid,type:this.type,source:this.id}}))})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),w.actor&&(yield w.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class gt extends a.E{constructor(w,q,Q,ee){super(),this.id=w,this.dispatcher=Q,this.setEventedParent(ee),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.e({type:"raster"},q),a.e(this,a.M(q,["url","scheme","tileSize"]))}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let w=yield Ve(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,w&&(a.e(this,w),w.bounds&&(this.tileBounds=new Ye(w.bounds,this.minzoom,this.maxzoom)),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})))}catch(w){this._tileJSONRequest=null,this.fire(new a.j(w))}})}loaded(){return this._loaded}onAdd(w){this.map=w,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(w){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),w(),this.load()}setTiles(w){return this.setSourceProperty(()=>{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}serialize(){return a.e({},this._options)}hasTile(w){return!this.tileBounds||this.tileBounds.contains(w.canonical)}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);w.abortController=new AbortController;try{let Q=yield v.getImage(this.map._requestManager.transformRequest(q,"Tile"),w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(Q&&Q.data){this.map._refreshExpiredTiles&&Q.cacheControl&&Q.expires&&w.setExpiryData({cacheControl:Q.cacheControl,expires:Q.expires});let ee=this.map.painter.context,ue=ee.gl,Ge=Q.data;w.texture=this.map.painter.getTileTexture(Ge.width),w.texture?w.texture.update(Ge,{useMipmap:!0}):(w.texture=new m(ee,Ge,ue.RGBA,{useMipmap:!0}),w.texture.bind(ue.LINEAR,ue.CLAMP_TO_EDGE,ue.LINEAR_MIPMAP_NEAREST)),w.state="loaded"}}catch(Q){if(delete w.abortController,w.aborted)w.state="unloaded";else if(Q)throw w.state="errored",Q}})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController)})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.texture&&this.map.painter.saveTileTexture(w.texture)})}hasTransition(){return!1}}class Nt extends gt{constructor(w,q,Q,ee){super(w,q,Q,ee),this.type="raster-dem",this.maxzoom=22,this._options=a.e({type:"raster-dem"},q),this.encoding=q.encoding||"mapbox",this.redFactor=q.redFactor,this.greenFactor=q.greenFactor,this.blueFactor=q.blueFactor,this.baseShift=q.baseShift}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q=this.map._requestManager.transformRequest(q,"Tile");w.neighboringTiles=this._getNeighboringTiles(w.tileID),w.abortController=new AbortController;try{let ee=yield v.getImage(Q,w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(ee&&ee.data){let ue=ee.data;this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let Ge=a.b(ue)&&a.U()?ue:yield this.readImageNow(ue),et={type:this.type,uid:w.uid,source:this.id,rawImageData:Ge,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!w.actor||w.state==="expired"){w.actor=this.dispatcher.getActor();let mt=yield w.actor.sendAsync({type:"LDT",data:et});w.dem=mt,w.needsHillshadePrepare=!0,w.needsTerrainPrepare=!0,w.state="loaded"}}}catch(ee){if(delete w.abortController,w.aborted)w.state="unloaded";else if(ee)throw w.state="errored",ee}})}readImageNow(w){return a._(this,void 0,void 0,function*(){if(typeof VideoFrame!="undefined"&&a.V()){let q=w.width+2,Q=w.height+2;try{return new a.R({width:q,height:Q},yield a.W(w,-1,-1,q,Q))}catch(ee){}}return l.getImageData(w,1)})}_getNeighboringTiles(w){let q=w.canonical,Q=Math.pow(2,q.z),ee=(q.x-1+Q)%Q,ue=q.x===0?w.wrap-1:w.wrap,Ge=(q.x+1+Q)%Q,et=q.x+1===Q?w.wrap+1:w.wrap,mt={};return mt[new a.S(w.overscaledZ,ue,q.z,ee,q.y).key]={backfilled:!1},mt[new a.S(w.overscaledZ,et,q.z,Ge,q.y).key]={backfilled:!1},q.y>0&&(mt[new a.S(w.overscaledZ,ue,q.z,ee,q.y-1).key]={backfilled:!1},mt[new a.S(w.overscaledZ,w.wrap,q.z,q.x,q.y-1).key]={backfilled:!1},mt[new a.S(w.overscaledZ,et,q.z,Ge,q.y-1).key]={backfilled:!1}),q.y+10&&a.e(ue,{resourceTiming:ee}),this.fire(new a.k("data",Object.assign(Object.assign({},ue),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},ue),{sourceDataType:"content"})))}catch(Q){if(this._pendingLoads--,this._removed)return void this.fire(new a.k("dataabort",{dataType:"source"}));this.fire(new a.j(Q))}})}loaded(){return this._pendingLoads===0}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.actor?"RT":"LT";w.actor=this.actor;let Q={type:this.type,uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};w.abortController=new AbortController;let ee=yield this.actor.sendAsync({type:q,data:Q},w.abortController);delete w.abortController,w.unloadVectorData(),w.aborted||w.loadVectorData(ee,this.map.painter,q==="RT")})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.aborted=!0})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return a.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var Ke=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class kt extends a.E{constructor(w,q,Q,ee){super(),this.id=w,this.dispatcher=Q,this.coordinates=q.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ee),this.options=q}load(w){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let q=yield v.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,q&&q.data&&(this.image=q.data,w&&(this.coordinates=w),this._finishLoading())}catch(q){this._request=null,this._loaded=!0,this.fire(new a.j(q))}})}loaded(){return this._loaded}updateImage(w){return w.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=w.url,this.load(w.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(w){this.map=w,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(w){this.coordinates=w;let q=w.map(a.Z.fromLngLat);this.tileID=function(ee){let ue=1/0,Ge=1/0,et=-1/0,mt=-1/0;for(let kr of ee)ue=Math.min(ue,kr.x),Ge=Math.min(Ge,kr.y),et=Math.max(et,kr.x),mt=Math.max(mt,kr.y);let Ft=Math.max(et-ue,mt-Ge),ir=Math.max(0,Math.floor(-Math.log(Ft)/Math.LN2)),or=Math.pow(2,ir);return new a.a1(ir,Math.floor((ue+et)/2*or),Math.floor((Ge+mt)/2*or))}(q),this.minzoom=this.maxzoom=this.tileID.z;let Q=q.map(ee=>this.tileID.getTilePoint(ee)._round());return this._boundsArray=new a.$,this._boundsArray.emplaceBack(Q[0].x,Q[0].y,0,0),this._boundsArray.emplaceBack(Q[1].x,Q[1].y,a.X,0),this._boundsArray.emplaceBack(Q[3].x,Q[3].y,0,a.X),this._boundsArray.emplaceBack(Q[2].x,Q[2].y,a.X,a.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let w=this.map.painter.context,q=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,Ke.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new m(w,this.image,q.RGBA),this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let ue=this.tiles[ee];ue.state!=="loaded"&&(ue.state="loaded",ue.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(w){return a._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(w.tileID.canonical)?(this.tiles[String(w.tileID.wrap)]=w,w.buckets={}):w.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class Tt extends kt{constructor(w,q,Q,ee){super(w,q,Q,ee),this.roundZoom=!0,this.type="video",this.options=q}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1;let w=this.options;this.urls=[];for(let q of w.urls)this.urls.push(this.map._requestManager.transformRequest(q,"Source").url);try{let q=yield a.a3(this.urls);if(this._loaded=!0,!q)return;this.video=q,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(q){this.fire(new a.j(q))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(w){if(this.video){let q=this.video.seekable;wq.end(0)?this.fire(new a.j(new a.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${q.start(0)} and ${q.end(0)}-second mark.`))):this.video.currentTime=w}}getVideo(){return this.video}onAdd(w){this.map||(this.map=w,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let w=this.map.painter.context,q=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,Ke.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE),q.texSubImage2D(q.TEXTURE_2D,0,0,0,q.RGBA,q.UNSIGNED_BYTE,this.video)):(this.texture=new m(w,this.video,q.RGBA),this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let ue=this.tiles[ee];ue.state!=="loaded"&&(ue.state="loaded",ue.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class St extends kt{constructor(w,q,Q,ee){super(w,q,Q,ee),q.coordinates?Array.isArray(q.coordinates)&&q.coordinates.length===4&&!q.coordinates.some(ue=>!Array.isArray(ue)||ue.length!==2||ue.some(Ge=>typeof Ge!="number"))||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "coordinates"'))),q.animate&&typeof q.animate!="boolean"&&this.fire(new a.j(new a.a2(`sources.${w}`,null,'optional "animate" property must be a boolean value'))),q.canvas?typeof q.canvas=="string"||q.canvas instanceof HTMLCanvasElement||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "canvas"'))),this.options=q,this.animate=q.animate===void 0||q.animate}load(){return a._(this,void 0,void 0,function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(w){this.map=w,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let w=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,w=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,w=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let q=this.map.painter.context,Q=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Ke.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?(w||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new m(q,this.canvas,Q.RGBA,{premultiply:!0});let ee=!1;for(let ue in this.tiles){let Ge=this.tiles[ue];Ge.state!=="loaded"&&(Ge.state="loaded",Ge.texture=this.texture,ee=!0)}ee&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let w of[this.canvas.width,this.canvas.height])if(isNaN(w)||w<=0)return!0;return!1}}let Dt={},Zt=le=>{switch(le){case"geojson":return it;case"image":return kt;case"raster":return gt;case"raster-dem":return Nt;case"vector":return nt;case"video":return Tt;case"canvas":return St}return Dt[le]},Et="RTLPluginLoaded";class Ae extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Me()}_syncState(w){return this.status=w,this.dispatcher.broadcast("SRPS",{pluginStatus:w,pluginURL:this.url}).catch(q=>{throw this.status="error",q})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(w){return a._(this,arguments,void 0,function*(q,Q=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=l.resolveURL(q),!this.url)throw new Error(`requested url ${q} is invalid`);if(this.status==="unavailable"){if(!Q)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()})}_requestImport(){return a._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new a.k(Et))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let at=null;function wt(){return at||(at=new Ae),at}class vt{constructor(w,q){this.timeAdded=0,this.fadeEndTime=0,this.tileID=w,this.uid=a.a4(),this.uses=0,this.tileSize=q,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(w){let q=w+this.timeAdded;que.getLayer(Ft)).filter(Boolean);if(mt.length!==0){et.layers=mt,et.stateDependentLayerIds&&(et.stateDependentLayers=et.stateDependentLayerIds.map(Ft=>mt.filter(ir=>ir.id===Ft)[0]));for(let Ft of mt)Ge[Ft.id]=et}}return Ge}(w.buckets,q.style),this.hasSymbolBuckets=!1;for(let ee in this.buckets){let ue=this.buckets[ee];if(ue instanceof a.a6){if(this.hasSymbolBuckets=!0,!Q)break;ue.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let ee in this.buckets){let ue=this.buckets[ee];if(ue instanceof a.a6&&ue.hasRTLText){this.hasRTLText=!0,wt().lazyLoad();break}}this.queryPadding=0;for(let ee in this.buckets){let ue=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,q.style.getLayer(ee).queryRadius(ue))}w.imageAtlas&&(this.imageAtlas=w.imageAtlas),w.glyphAtlasImage&&(this.glyphAtlasImage=w.glyphAtlasImage)}else this.collisionBoxArray=new a.a5}unloadVectorData(){for(let w in this.buckets)this.buckets[w].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(w){return this.buckets[w.id]}upload(w){for(let Q in this.buckets){let ee=this.buckets[Q];ee.uploadPending()&&ee.upload(w)}let q=w.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new m(w,this.imageAtlas.image,q.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new m(w,this.glyphAtlasImage,q.ALPHA),this.glyphAtlasImage=null)}prepare(w){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(w,this.imageAtlasTexture)}queryRenderedFeatures(w,q,Q,ee,ue,Ge,et,mt,Ft,ir){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:ue,scale:Ge,tileSize:this.tileSize,pixelPosMatrix:ir,transform:mt,params:et,queryPadding:this.queryPadding*Ft},w,q,Q):{}}querySourceFeatures(w,q){let Q=this.latestFeatureIndex;if(!Q||!Q.rawTileData)return;let ee=Q.loadVTLayers(),ue=q&&q.sourceLayer?q.sourceLayer:"",Ge=ee._geojsonTileLayer||ee[ue];if(!Ge)return;let et=a.a7(q&&q.filter),{z:mt,x:Ft,y:ir}=this.tileID.canonical,or={z:mt,x:Ft,y:ir};for(let kr=0;krQ)ee=!1;else if(q)if(this.expirationTime{this.remove(w,ue)},Q)),this.data[ee].push(ue),this.order.push(ee),this.order.length>this.max){let Ge=this._getAndRemoveByKey(this.order[0]);Ge&&this.onRemove(Ge)}return this}has(w){return w.wrapped().key in this.data}getAndRemove(w){return this.has(w)?this._getAndRemoveByKey(w.wrapped().key):null}_getAndRemoveByKey(w){let q=this.data[w].shift();return q.timeout&&clearTimeout(q.timeout),this.data[w].length===0&&delete this.data[w],this.order.splice(this.order.indexOf(w),1),q.value}getByKey(w){let q=this.data[w];return q?q[0].value:null}get(w){return this.has(w)?this.data[w.wrapped().key][0].value:null}remove(w,q){if(!this.has(w))return this;let Q=w.wrapped().key,ee=q===void 0?0:this.data[Q].indexOf(q),ue=this.data[Q][ee];return this.data[Q].splice(ee,1),ue.timeout&&clearTimeout(ue.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(ue.value),this.order.splice(this.order.indexOf(Q),1),this}setMaxSize(w){for(this.max=w;this.order.length>this.max;){let q=this._getAndRemoveByKey(this.order[0]);q&&this.onRemove(q)}return this}filter(w){let q=[];for(let Q in this.data)for(let ee of this.data[Q])w(ee.value)||q.push(ee);for(let Q of q)this.remove(Q.value.tileID,Q)}}class Ue{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(w,q,Q){let ee=String(q);if(this.stateChanges[w]=this.stateChanges[w]||{},this.stateChanges[w][ee]=this.stateChanges[w][ee]||{},a.e(this.stateChanges[w][ee],Q),this.deletedStates[w]===null){this.deletedStates[w]={};for(let ue in this.state[w])ue!==ee&&(this.deletedStates[w][ue]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][ee]===null){this.deletedStates[w][ee]={};for(let ue in this.state[w][ee])Q[ue]||(this.deletedStates[w][ee][ue]=null)}else for(let ue in Q)this.deletedStates[w]&&this.deletedStates[w][ee]&&this.deletedStates[w][ee][ue]===null&&delete this.deletedStates[w][ee][ue]}removeFeatureState(w,q,Q){if(this.deletedStates[w]===null)return;let ee=String(q);if(this.deletedStates[w]=this.deletedStates[w]||{},Q&&q!==void 0)this.deletedStates[w][ee]!==null&&(this.deletedStates[w][ee]=this.deletedStates[w][ee]||{},this.deletedStates[w][ee][Q]=null);else if(q!==void 0)if(this.stateChanges[w]&&this.stateChanges[w][ee])for(Q in this.deletedStates[w][ee]={},this.stateChanges[w][ee])this.deletedStates[w][ee][Q]=null;else this.deletedStates[w][ee]=null;else this.deletedStates[w]=null}getState(w,q){let Q=String(q),ee=a.e({},(this.state[w]||{})[Q],(this.stateChanges[w]||{})[Q]);if(this.deletedStates[w]===null)return{};if(this.deletedStates[w]){let ue=this.deletedStates[w][q];if(ue===null)return{};for(let Ge in ue)delete ee[Ge]}return ee}initializeTileState(w,q){w.setFeatureState(this.state,q)}coalesceChanges(w,q){let Q={};for(let ee in this.stateChanges){this.state[ee]=this.state[ee]||{};let ue={};for(let Ge in this.stateChanges[ee])this.state[ee][Ge]||(this.state[ee][Ge]={}),a.e(this.state[ee][Ge],this.stateChanges[ee][Ge]),ue[Ge]=this.state[ee][Ge];Q[ee]=ue}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let ue={};if(this.deletedStates[ee]===null)for(let Ge in this.state[ee])ue[Ge]={},this.state[ee][Ge]={};else for(let Ge in this.deletedStates[ee]){if(this.deletedStates[ee][Ge]===null)this.state[ee][Ge]={};else for(let et of Object.keys(this.deletedStates[ee][Ge]))delete this.state[ee][Ge][et];ue[Ge]=this.state[ee][Ge]}Q[ee]=Q[ee]||{},a.e(Q[ee],ue)}if(this.stateChanges={},this.deletedStates={},Object.keys(Q).length!==0)for(let ee in w)w[ee].setFeatureState(Q,q)}}class rt extends a.E{constructor(w,q,Q){super(),this.id=w,this.dispatcher=Q,this.on("data",ee=>this._dataHandler(ee)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((ee,ue,Ge,et)=>{let mt=new(Zt(ue.type))(ee,ue,Ge,et);if(mt.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${mt.id}`);return mt})(w,q,Q,this),this._tiles={},this._cache=new st(0,ee=>this._unloadTile(ee)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new Ue,this._didEmitContent=!1,this._updated=!1}onAdd(w){this.map=w,this._maxTileCacheSize=w?w._maxTileCacheSize:null,this._maxTileCacheZoomLevels=w?w._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(w)}onRemove(w){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(w)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let w in this._tiles){let q=this._tiles[w];if(q.state!=="loaded"&&q.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let w=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,w&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(w,q,Q){return a._(this,void 0,void 0,function*(){try{yield this._source.loadTile(w),this._tileLoaded(w,q,Q)}catch(ee){w.state="errored",ee.status!==404?this._source.fire(new a.j(ee,{tile:w})):this.update(this.transform,this.terrain)}})}_unloadTile(w){this._source.unloadTile&&this._source.unloadTile(w)}_abortTile(w){this._source.abortTile&&this._source.abortTile(w),this._source.fire(new a.k("dataabort",{tile:w,coord:w.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(w){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let q in this._tiles){let Q=this._tiles[q];Q.upload(w),Q.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(w=>w.tileID).sort($e).map(w=>w.key)}getRenderableIds(w){let q=[];for(let Q in this._tiles)this._isIdRenderable(Q,w)&&q.push(this._tiles[Q]);return w?q.sort((Q,ee)=>{let ue=Q.tileID,Ge=ee.tileID,et=new a.P(ue.canonical.x,ue.canonical.y)._rotate(this.transform.angle),mt=new a.P(Ge.canonical.x,Ge.canonical.y)._rotate(this.transform.angle);return ue.overscaledZ-Ge.overscaledZ||mt.y-et.y||mt.x-et.x}).map(Q=>Q.tileID.key):q.map(Q=>Q.tileID).sort($e).map(Q=>Q.key)}hasRenderableParent(w){let q=this.findLoadedParent(w,0);return!!q&&this._isIdRenderable(q.tileID.key)}_isIdRenderable(w,q){return this._tiles[w]&&this._tiles[w].hasData()&&!this._coveredTiles[w]&&(q||!this._tiles[w].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let w in this._tiles)this._tiles[w].state!=="errored"&&this._reloadTile(w,"reloading")}}_reloadTile(w,q){return a._(this,void 0,void 0,function*(){let Q=this._tiles[w];Q&&(Q.state!=="loading"&&(Q.state=q),yield this._loadTile(Q,w,q))})}_tileLoaded(w,q,Q){w.timeAdded=l.now(),Q==="expired"&&(w.refreshedUponExpiration=!0),this._setTileReloadTimer(q,w),this.getSource().type==="raster-dem"&&w.dem&&this._backfillDEM(w),this._state.initializeTileState(w,this.map?this.map.painter:null),w.aborted||this._source.fire(new a.k("data",{dataType:"source",tile:w,coord:w.tileID}))}_backfillDEM(w){let q=this.getRenderableIds();for(let ee=0;ee1||(Math.abs(Ge)>1&&(Math.abs(Ge+mt)===1?Ge+=mt:Math.abs(Ge-mt)===1&&(Ge-=mt)),ue.dem&&ee.dem&&(ee.dem.backfillBorder(ue.dem,Ge,et),ee.neighboringTiles&&ee.neighboringTiles[Ft]&&(ee.neighboringTiles[Ft].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,q,Q,ee){for(let ue in this._tiles){let Ge=this._tiles[ue];if(ee[ue]||!Ge.hasData()||Ge.tileID.overscaledZ<=q||Ge.tileID.overscaledZ>Q)continue;let et=Ge.tileID;for(;Ge&&Ge.tileID.overscaledZ>q+1;){let Ft=Ge.tileID.scaledTo(Ge.tileID.overscaledZ-1);Ge=this._tiles[Ft.key],Ge&&Ge.hasData()&&(et=Ft)}let mt=et;for(;mt.overscaledZ>q;)if(mt=mt.scaledTo(mt.overscaledZ-1),w[mt.key]){ee[et.key]=et;break}}}findLoadedParent(w,q){if(w.key in this._loadedParentTiles){let Q=this._loadedParentTiles[w.key];return Q&&Q.tileID.overscaledZ>=q?Q:null}for(let Q=w.overscaledZ-1;Q>=q;Q--){let ee=w.scaledTo(Q),ue=this._getLoadedTile(ee);if(ue)return ue}}findLoadedSibling(w){return this._getLoadedTile(w)}_getLoadedTile(w){let q=this._tiles[w.key];return q&&q.hasData()?q:this._cache.getByKey(w.wrapped().key)}updateCacheSize(w){let q=Math.ceil(w.width/this._source.tileSize)+1,Q=Math.ceil(w.height/this._source.tileSize)+1,ee=Math.floor(q*Q*(this._maxTileCacheZoomLevels===null?a.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),ue=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ee):ee;this._cache.setMaxSize(ue)}handleWrapJump(w){let q=Math.round((w-(this._prevLng===void 0?w:this._prevLng))/360);if(this._prevLng=w,q){let Q={};for(let ee in this._tiles){let ue=this._tiles[ee];ue.tileID=ue.tileID.unwrapTo(ue.tileID.wrap+q),Q[ue.tileID.key]=ue}this._tiles=Q;for(let ee in this._timers)clearTimeout(this._timers[ee]),delete this._timers[ee];for(let ee in this._tiles)this._setTileReloadTimer(ee,this._tiles[ee])}}_updateCoveredAndRetainedTiles(w,q,Q,ee,ue,Ge){let et={},mt={},Ft=Object.keys(w),ir=l.now();for(let or of Ft){let kr=w[or],Vr=this._tiles[or];if(!Vr||Vr.fadeEndTime!==0&&Vr.fadeEndTime<=ir)continue;let he=this.findLoadedParent(kr,q),Se=this.findLoadedSibling(kr),qe=he||Se||null;qe&&(this._addTile(qe.tileID),et[qe.tileID.key]=qe.tileID),mt[or]=kr}this._retainLoadedChildren(mt,ee,Q,w);for(let or in et)w[or]||(this._coveredTiles[or]=!0,w[or]=et[or]);if(Ge){let or={},kr={};for(let Vr of ue)this._tiles[Vr.key].hasData()?or[Vr.key]=Vr:kr[Vr.key]=Vr;for(let Vr in kr){let he=kr[Vr].children(this._source.maxzoom);this._tiles[he[0].key]&&this._tiles[he[1].key]&&this._tiles[he[2].key]&&this._tiles[he[3].key]&&(or[he[0].key]=w[he[0].key]=he[0],or[he[1].key]=w[he[1].key]=he[1],or[he[2].key]=w[he[2].key]=he[2],or[he[3].key]=w[he[3].key]=he[3],delete kr[Vr])}for(let Vr in kr){let he=kr[Vr],Se=this.findLoadedParent(he,this._source.minzoom),qe=this.findLoadedSibling(he),He=Se||qe||null;if(He){or[He.tileID.key]=w[He.tileID.key]=He.tileID;for(let lt in or)or[lt].isChildOf(He.tileID)&&delete or[lt]}}for(let Vr in this._tiles)or[Vr]||(this._coveredTiles[Vr]=!0)}}update(w,q){if(!this._sourceLoaded||this._paused)return;let Q;this.transform=w,this.terrain=q,this.updateCacheSize(w),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?Q=w.getVisibleUnwrappedCoordinates(this._source.tileID).map(ir=>new a.S(ir.canonical.z,ir.wrap,ir.canonical.z,ir.canonical.x,ir.canonical.y)):(Q=w.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:q}),this._source.hasTile&&(Q=Q.filter(ir=>this._source.hasTile(ir)))):Q=[];let ee=w.coveringZoomLevel(this._source),ue=Math.max(ee-rt.maxOverzooming,this._source.minzoom),Ge=Math.max(ee+rt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let ir={};for(let or of Q)if(or.canonical.z>this._source.minzoom){let kr=or.scaledTo(or.canonical.z-1);ir[kr.key]=kr;let Vr=or.scaledTo(Math.max(this._source.minzoom,Math.min(or.canonical.z,5)));ir[Vr.key]=Vr}Q=Q.concat(Object.values(ir))}let et=Q.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,et&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let mt=this._updateRetainedTiles(Q,ee);zt(this._source.type)&&this._updateCoveredAndRetainedTiles(mt,ue,Ge,ee,Q,q);for(let ir in mt)this._tiles[ir].clearFadeHold();let Ft=a.ab(this._tiles,mt);for(let ir of Ft){let or=this._tiles[ir];or.hasSymbolBuckets&&!or.holdingForFade()?or.setHoldDuration(this.map._fadeDuration):or.hasSymbolBuckets&&!or.symbolFadeFinished()||this._removeTile(ir)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let w in this._tiles)this._tiles[w].holdingForFade()&&this._removeTile(w)}_updateRetainedTiles(w,q){var Q;let ee={},ue={},Ge=Math.max(q-rt.maxOverzooming,this._source.minzoom),et=Math.max(q+rt.maxUnderzooming,this._source.minzoom),mt={};for(let Ft of w){let ir=this._addTile(Ft);ee[Ft.key]=Ft,ir.hasData()||qthis._source.maxzoom){let kr=Ft.children(this._source.maxzoom)[0],Vr=this.getTile(kr);if(Vr&&Vr.hasData()){ee[kr.key]=kr;continue}}else{let kr=Ft.children(this._source.maxzoom);if(ee[kr[0].key]&&ee[kr[1].key]&&ee[kr[2].key]&&ee[kr[3].key])continue}let or=ir.wasRequested();for(let kr=Ft.overscaledZ-1;kr>=Ge;--kr){let Vr=Ft.scaledTo(kr);if(ue[Vr.key])break;if(ue[Vr.key]=!0,ir=this.getTile(Vr),!ir&&or&&(ir=this._addTile(Vr)),ir){let he=ir.hasData();if((he||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||or)&&(ee[Vr.key]=Vr),or=ir.wasRequested(),he)break}}}return ee}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let w in this._tiles){let q=[],Q,ee=this._tiles[w].tileID;for(;ee.overscaledZ>0;){if(ee.key in this._loadedParentTiles){Q=this._loadedParentTiles[ee.key];break}q.push(ee.key);let ue=ee.scaledTo(ee.overscaledZ-1);if(Q=this._getLoadedTile(ue),Q)break;ee=ue}for(let ue of q)this._loadedParentTiles[ue]=Q}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let w in this._tiles){let q=this._tiles[w].tileID,Q=this._getLoadedTile(q);this._loadedSiblingTiles[q.key]=Q}}_addTile(w){let q=this._tiles[w.key];if(q)return q;q=this._cache.getAndRemove(w),q&&(this._setTileReloadTimer(w.key,q),q.tileID=w,this._state.initializeTileState(q,this.map?this.map.painter:null),this._cacheTimers[w.key]&&(clearTimeout(this._cacheTimers[w.key]),delete this._cacheTimers[w.key],this._setTileReloadTimer(w.key,q)));let Q=q;return q||(q=new vt(w,this._source.tileSize*w.overscaleFactor()),this._loadTile(q,w.key,q.state)),q.uses++,this._tiles[w.key]=q,Q||this._source.fire(new a.k("dataloading",{tile:q,coord:q.tileID,dataType:"source"})),q}_setTileReloadTimer(w,q){w in this._timers&&(clearTimeout(this._timers[w]),delete this._timers[w]);let Q=q.getExpiryTimeout();Q&&(this._timers[w]=setTimeout(()=>{this._reloadTile(w,"expired"),delete this._timers[w]},Q))}_removeTile(w){let q=this._tiles[w];q&&(q.uses--,delete this._tiles[w],this._timers[w]&&(clearTimeout(this._timers[w]),delete this._timers[w]),q.uses>0||(q.hasData()&&q.state!=="reloading"?this._cache.add(q.tileID,q,q.getExpiryTimeout()):(q.aborted=!0,this._abortTile(q),this._unloadTile(q))))}_dataHandler(w){let q=w.sourceDataType;w.dataType==="source"&&q==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&w.dataType==="source"&&q==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let w in this._tiles)this._removeTile(w);this._cache.reset()}tilesIn(w,q,Q){let ee=[],ue=this.transform;if(!ue)return ee;let Ge=Q?ue.getCameraQueryGeometry(w):w,et=w.map(he=>ue.pointCoordinate(he,this.terrain)),mt=Ge.map(he=>ue.pointCoordinate(he,this.terrain)),Ft=this.getIds(),ir=1/0,or=1/0,kr=-1/0,Vr=-1/0;for(let he of mt)ir=Math.min(ir,he.x),or=Math.min(or,he.y),kr=Math.max(kr,he.x),Vr=Math.max(Vr,he.y);for(let he=0;he=0&&tt[1].y+lt>=0){let pt=et.map(nr=>qe.getTilePoint(nr)),Ht=mt.map(nr=>qe.getTilePoint(nr));ee.push({tile:Se,tileID:qe,queryGeometry:pt,cameraQueryGeometry:Ht,scale:He})}}return ee}getVisibleCoordinates(w){let q=this.getRenderableIds(w).map(Q=>this._tiles[Q].tileID);for(let Q of q)Q.posMatrix=this.transform.calculatePosMatrix(Q.toUnwrapped());return q}hasTransition(){if(this._source.hasTransition())return!0;if(zt(this._source.type)){let w=l.now();for(let q in this._tiles)if(this._tiles[q].fadeEndTime>=w)return!0}return!1}setFeatureState(w,q,Q){this._state.updateState(w=w||"_geojsonTileLayer",q,Q)}removeFeatureState(w,q,Q){this._state.removeFeatureState(w=w||"_geojsonTileLayer",q,Q)}getFeatureState(w,q){return this._state.getState(w=w||"_geojsonTileLayer",q)}setDependencies(w,q,Q){let ee=this._tiles[w];ee&&ee.setDependencies(q,Q)}reloadTilesForDependencies(w,q){for(let Q in this._tiles)this._tiles[Q].hasDependency(w,q)&&this._reloadTile(Q,"reloading");this._cache.filter(Q=>!Q.hasDependency(w,q))}}function $e(le,w){let q=Math.abs(2*le.wrap)-+(le.wrap<0),Q=Math.abs(2*w.wrap)-+(w.wrap<0);return le.overscaledZ-w.overscaledZ||Q-q||w.canonical.y-le.canonical.y||w.canonical.x-le.canonical.x}function zt(le){return le==="raster"||le==="image"||le==="video"}rt.maxOverzooming=10,rt.maxUnderzooming=3;class Yt{constructor(w,q){this.reset(w,q)}reset(w,q){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-Ge)/et:0;return this.points[ue].mult(1-mt).add(this.points[q].mult(mt))}}function hr(le,w){let q=!0;return le==="always"||le!=="never"&&w!=="never"||(q=!1),q}class yr{constructor(w,q,Q){let ee=this.boxCells=[],ue=this.circleCells=[];this.xCellCount=Math.ceil(w/Q),this.yCellCount=Math.ceil(q/Q);for(let Ge=0;Gethis.width||ee<0||q>this.height)return[];let mt=[];if(w<=0&&q<=0&&this.width<=Q&&this.height<=ee){if(ue)return[{key:null,x1:w,y1:q,x2:Q,y2:ee}];for(let Ft=0;Ft0}hitTestCircle(w,q,Q,ee,ue){let Ge=w-Q,et=w+Q,mt=q-Q,Ft=q+Q;if(et<0||Ge>this.width||Ft<0||mt>this.height)return!1;let ir=[];return this._forEachCell(Ge,mt,et,Ft,this._queryCellCircle,ir,{hitTest:!0,overlapMode:ee,circle:{x:w,y:q,radius:Q},seenUids:{box:{},circle:{}}},ue),ir.length>0}_queryCell(w,q,Q,ee,ue,Ge,et,mt){let{seenUids:Ft,hitTest:ir,overlapMode:or}=et,kr=this.boxCells[ue];if(kr!==null){let he=this.bboxes;for(let Se of kr)if(!Ft.box[Se]){Ft.box[Se]=!0;let qe=4*Se,He=this.boxKeys[Se];if(w<=he[qe+2]&&q<=he[qe+3]&&Q>=he[qe+0]&&ee>=he[qe+1]&&(!mt||mt(He))&&(!ir||!hr(or,He.overlapMode))&&(Ge.push({key:He,x1:he[qe],y1:he[qe+1],x2:he[qe+2],y2:he[qe+3]}),ir))return!0}}let Vr=this.circleCells[ue];if(Vr!==null){let he=this.circles;for(let Se of Vr)if(!Ft.circle[Se]){Ft.circle[Se]=!0;let qe=3*Se,He=this.circleKeys[Se];if(this._circleAndRectCollide(he[qe],he[qe+1],he[qe+2],w,q,Q,ee)&&(!mt||mt(He))&&(!ir||!hr(or,He.overlapMode))){let lt=he[qe],tt=he[qe+1],pt=he[qe+2];if(Ge.push({key:He,x1:lt-pt,y1:tt-pt,x2:lt+pt,y2:tt+pt}),ir)return!0}}}return!1}_queryCellCircle(w,q,Q,ee,ue,Ge,et,mt){let{circle:Ft,seenUids:ir,overlapMode:or}=et,kr=this.boxCells[ue];if(kr!==null){let he=this.bboxes;for(let Se of kr)if(!ir.box[Se]){ir.box[Se]=!0;let qe=4*Se,He=this.boxKeys[Se];if(this._circleAndRectCollide(Ft.x,Ft.y,Ft.radius,he[qe+0],he[qe+1],he[qe+2],he[qe+3])&&(!mt||mt(He))&&!hr(or,He.overlapMode))return Ge.push(!0),!0}}let Vr=this.circleCells[ue];if(Vr!==null){let he=this.circles;for(let Se of Vr)if(!ir.circle[Se]){ir.circle[Se]=!0;let qe=3*Se,He=this.circleKeys[Se];if(this._circlesCollide(he[qe],he[qe+1],he[qe+2],Ft.x,Ft.y,Ft.radius)&&(!mt||mt(He))&&!hr(or,He.overlapMode))return Ge.push(!0),!0}}}_forEachCell(w,q,Q,ee,ue,Ge,et,mt){let Ft=this._convertToXCellCoord(w),ir=this._convertToYCellCoord(q),or=this._convertToXCellCoord(Q),kr=this._convertToYCellCoord(ee);for(let Vr=Ft;Vr<=or;Vr++)for(let he=ir;he<=kr;he++)if(ue.call(this,w,q,Q,ee,this.xCellCount*he+Vr,Ge,et,mt))return}_convertToXCellCoord(w){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(w*this.xScale)))}_convertToYCellCoord(w){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(w*this.yScale)))}_circlesCollide(w,q,Q,ee,ue,Ge){let et=ee-w,mt=ue-q,Ft=Q+Ge;return Ft*Ft>et*et+mt*mt}_circleAndRectCollide(w,q,Q,ee,ue,Ge,et){let mt=(Ge-ee)/2,Ft=Math.abs(w-(ee+mt));if(Ft>mt+Q)return!1;let ir=(et-ue)/2,or=Math.abs(q-(ue+ir));if(or>ir+Q)return!1;if(Ft<=mt||or<=ir)return!0;let kr=Ft-mt,Vr=or-ir;return kr*kr+Vr*Vr<=Q*Q}}function br(le,w,q,Q,ee){let ue=a.H();return w?(a.K(ue,ue,[1/ee,1/ee,1]),q||a.ad(ue,ue,Q.angle)):a.L(ue,Q.labelPlaneMatrix,le),ue}function Ut(le,w,q,Q,ee){if(w){let ue=a.ae(le);return a.K(ue,ue,[ee,ee,1]),q||a.ad(ue,ue,-Q.angle),ue}return Q.glCoordMatrix}function Ie(le,w,q,Q){let ee;Q?(ee=[le,w,Q(le,w),1],a.af(ee,ee,q)):(ee=[le,w,0,1],Mr(ee,ee,q));let ue=ee[3];return{point:new a.P(ee[0]/ue,ee[1]/ue),signedDistanceFromCamera:ue,isOccluded:!1}}function xe(le,w){return .5+le/w*.5}function Oe(le,w){return le.x>=-w[0]&&le.x<=w[0]&&le.y>=-w[1]&&le.y<=w[1]}function Re(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he){let Se=Q?le.textSizeData:le.iconSizeData,qe=a.ag(Se,q.transform.zoom),He=[256/q.width*2+1,256/q.height*2+1],lt=Q?le.text.dynamicLayoutVertexArray:le.icon.dynamicLayoutVertexArray;lt.clear();let tt=le.lineVertexArray,pt=Q?le.text.placedSymbolArray:le.icon.placedSymbolArray,Ht=q.transform.width/q.transform.height,nr=!1;for(let fr=0;frMath.abs(q.x-w.x)*Q?{useVertical:!0}:(le===a.ah.vertical?w.yq.x)?{needsFlipping:!0}:null}function ge(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir){let or=q/24,kr=w.lineOffsetX*or,Vr=w.lineOffsetY*or,he;if(w.numGlyphs>1){let Se=w.glyphStartIndex+w.numGlyphs,qe=w.lineStartIndex,He=w.lineStartIndex+w.lineLength,lt=De(or,et,kr,Vr,Q,w,ir,le);if(!lt)return{notEnoughRoom:!0};let tt=Ie(lt.first.point.x,lt.first.point.y,Ge,le.getElevation).point,pt=Ie(lt.last.point.x,lt.last.point.y,Ge,le.getElevation).point;if(ee&&!Q){let Ht=ct(w.writingMode,tt,pt,Ft);if(Ht)return Ht}he=[lt.first];for(let Ht=w.glyphStartIndex+1;Ht0?tt.point:function(nr,fr,Ar,Rr,ri,si){return fe(nr,fr,Ar,1,ri,si)}(le.tileAnchorPoint,lt,qe,0,ue,le),Ht=ct(w.writingMode,qe,pt,Ft);if(Ht)return Ht}let Se=rr(or*et.getoffsetX(w.glyphStartIndex),kr,Vr,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,le,ir);if(!Se||le.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};he=[Se]}for(let Se of he)a.aj(mt,Se.point,Se.angle);return{}}function fe(le,w,q,Q,ee,ue){let Ge=le.add(le.sub(w)._unit()),et=ee!==void 0?Ie(Ge.x,Ge.y,ee,ue.getElevation).point:dt(Ge.x,Ge.y,ue).point,mt=q.sub(et);return q.add(mt._mult(Q/mt.mag()))}function pe(le,w,q){let Q=w.projectionCache;if(Q.projections[le])return Q.projections[le];let ee=new a.P(w.lineVertexArray.getx(le),w.lineVertexArray.gety(le)),ue=dt(ee.x,ee.y,w);if(ue.signedDistanceFromCamera>0)return Q.projections[le]=ue.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||ue.isOccluded,ue.point;let Ge=le-q.direction;return function(et,mt,Ft,ir,or){return fe(et,mt,Ft,ir,void 0,or)}(q.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(Ge),w.lineVertexArray.gety(Ge)),ee,q.previousVertex,q.absOffsetX-q.distanceFromAnchor+1,w)}function dt(le,w,q){let Q=le+q.translation[0],ee=w+q.translation[1],ue;return!q.pitchWithMap&&q.projection.useSpecialProjectionForSymbols?(ue=q.projection.projectTileCoordinates(Q,ee,q.unwrappedTileID,q.getElevation),ue.point.x=(.5*ue.point.x+.5)*q.width,ue.point.y=(.5*-ue.point.y+.5)*q.height):(ue=Ie(Q,ee,q.labelPlaneMatrix,q.getElevation),ue.isOccluded=!1),ue}function It(le,w,q){return le._unit()._perp()._mult(w*q)}function Pt(le,w,q,Q,ee,ue,Ge,et,mt){if(et.projectionCache.offsets[le])return et.projectionCache.offsets[le];let Ft=q.add(w);if(le+mt.direction=ee)return et.projectionCache.offsets[le]=Ft,Ft;let ir=pe(le+mt.direction,et,mt),or=It(ir.sub(q),Ge,mt.direction),kr=q.add(or),Vr=ir.add(or);return et.projectionCache.offsets[le]=a.ak(ue,Ft,kr,Vr)||Ft,et.projectionCache.offsets[le]}function rr(le,w,q,Q,ee,ue,Ge,et,mt){let Ft=Q?le-w:le+w,ir=Ft>0?1:-1,or=0;Q&&(ir*=-1,or=Math.PI),ir<0&&(or+=Math.PI);let kr,Vr=ir>0?ue+ee:ue+ee+1;et.projectionCache.cachedAnchorPoint?kr=et.projectionCache.cachedAnchorPoint:(kr=dt(et.tileAnchorPoint.x,et.tileAnchorPoint.y,et).point,et.projectionCache.cachedAnchorPoint=kr);let he,Se,qe=kr,He=kr,lt=0,tt=0,pt=Math.abs(Ft),Ht=[],nr;for(;lt+tt<=pt;){if(Vr+=ir,Vr=Ge)return null;lt+=tt,He=qe,Se=he;let Rr={absOffsetX:pt,direction:ir,distanceFromAnchor:lt,previousVertex:He};if(qe=pe(Vr,et,Rr),q===0)Ht.push(He),nr=qe.sub(He);else{let ri,si=qe.sub(He);ri=si.mag()===0?It(pe(Vr+ir,et,Rr).sub(qe),q,ir):It(si,q,ir),Se||(Se=He.add(ri)),he=Pt(Vr,ri,qe,ue,Ge,Se,q,et,Rr),Ht.push(Se),nr=he.sub(Se)}tt=nr.mag()}let fr=nr._mult((pt-lt)/tt)._add(Se||He),Ar=or+Math.atan2(qe.y-He.y,qe.x-He.x);return Ht.push(fr),{point:fr,angle:mt?Ar:0,path:Ht}}let Hr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Dr(le,w){for(let q=0;q=1;Us--)Ua.push(Zn.path[Us]);for(let Us=1;Usml.signedDistanceFromCamera<=0)?[]:Us.map(ml=>ml.point)}let vl=[];if(Ua.length>0){let Us=Ua[0].clone(),ml=Ua[0].clone();for(let au=1;au=si.x&&ml.x<=Mi.x&&Us.y>=si.y&&ml.y<=Mi.y?[Ua]:ml.xMi.x||ml.yMi.y?[]:a.al([Ua],si.x,si.y,Mi.x,Mi.y)}for(let Us of vl){hn.reset(Us,.25*ri);let ml=0;ml=hn.length<=.5*ri?1:Math.ceil(hn.paddedLength/Fo)+1;for(let au=0;auIe(ee.x,ee.y,Q,q.getElevation))}queryRenderedSymbols(w){if(w.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let q=[],Q=1/0,ee=1/0,ue=-1/0,Ge=-1/0;for(let ir of w){let or=new a.P(ir.x+Fr,ir.y+Fr);Q=Math.min(Q,or.x),ee=Math.min(ee,or.y),ue=Math.max(ue,or.x),Ge=Math.max(Ge,or.y),q.push(or)}let et=this.grid.query(Q,ee,ue,Ge).concat(this.ignoredGrid.query(Q,ee,ue,Ge)),mt={},Ft={};for(let ir of et){let or=ir.key;if(mt[or.bucketInstanceId]===void 0&&(mt[or.bucketInstanceId]={}),mt[or.bucketInstanceId][or.featureIndex])continue;let kr=[new a.P(ir.x1,ir.y1),new a.P(ir.x2,ir.y1),new a.P(ir.x2,ir.y2),new a.P(ir.x1,ir.y2)];a.am(q,kr)&&(mt[or.bucketInstanceId][or.featureIndex]=!0,Ft[or.bucketInstanceId]===void 0&&(Ft[or.bucketInstanceId]=[]),Ft[or.bucketInstanceId].push(or.featureIndex))}return Ft}insertCollisionBox(w,q,Q,ee,ue,Ge){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:ue,collisionGroupID:Ge,overlapMode:q},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,q,Q,ee,ue,Ge){let et=Q?this.ignoredGrid:this.grid,mt={bucketInstanceId:ee,featureIndex:ue,collisionGroupID:Ge,overlapMode:q};for(let Ft=0;Ft=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,q,Q,ee){return Q>=0&&w=0&&qthis.projectAndGetPerspectiveRatio(Q,ri.x,ri.y,ee,Ft));Ar=Rr.some(ri=>!ri.isOccluded),fr=Rr.map(ri=>ri.point)}else Ar=!0;return{box:a.ao(fr),allPointsOccluded:!Ar}}}function Di(le,w,q){return w*(a.X/(le.tileSize*Math.pow(2,q-le.tileID.overscaledZ)))}class Ii{constructor(w,q,Q,ee){this.opacity=w?Math.max(0,Math.min(1,w.opacity+(w.placed?q:-q))):ee&&Q?1:0,this.placed=Q}isHidden(){return this.opacity===0&&!this.placed}}class Ci{constructor(w,q,Q,ee,ue){this.text=new Ii(w?w.text:null,q,Q,ue),this.icon=new Ii(w?w.icon:null,q,ee,ue)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class nn{constructor(w,q,Q){this.text=w,this.icon=q,this.skipFade=Q}}class ii{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class wi{constructor(w,q,Q,ee,ue){this.bucketInstanceId=w,this.featureIndex=q,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=ue}}class Gi{constructor(w){this.crossSourceCollisions=w,this.maxGroupID=0,this.collisionGroups={}}get(w){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[w]){let q=++this.maxGroupID;this.collisionGroups[w]={ID:q,predicate:Q=>Q.collisionGroupID===q}}return this.collisionGroups[w]}}function Bt(le,w,q,Q,ee){let{horizontalAlign:ue,verticalAlign:Ge}=a.au(le);return new a.P(-(ue-.5)*w+Q[0]*ee,-(Ge-.5)*q+Q[1]*ee)}class yt{constructor(w,q,Q,ee,ue,Ge){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new di(this.transform,q),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new Gi(ue),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=Ge,Ge&&(Ge.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(w){let q=this.terrain;return q?(Q,ee)=>q.getElevation(w,Q,ee):null}getBucketParts(w,q,Q,ee){let ue=Q.getBucket(q),Ge=Q.latestFeatureIndex;if(!ue||!Ge||q.id!==ue.layerIds[0])return;let et=Q.collisionBoxArray,mt=ue.layers[0].layout,Ft=ue.layers[0].paint,ir=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),or=Q.tileSize/a.X,kr=Q.tileID.toUnwrapped(),Vr=this.transform.calculatePosMatrix(kr),he=mt.get("text-pitch-alignment")==="map",Se=mt.get("text-rotation-alignment")==="map",qe=Di(Q,1,this.transform.zoom),He=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Ft.get("text-translate"),Ft.get("text-translate-anchor")),lt=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Ft.get("icon-translate"),Ft.get("icon-translate-anchor")),tt=br(Vr,he,Se,this.transform,qe),pt=null;if(he){let nr=Ut(Vr,he,Se,this.transform,qe);pt=a.L([],this.transform.labelPlaneMatrix,nr)}this.retainedQueryData[ue.bucketInstanceId]=new wi(ue.bucketInstanceId,Ge,ue.sourceLayerIndex,ue.index,Q.tileID);let Ht={bucket:ue,layout:mt,translationText:He,translationIcon:lt,posMatrix:Vr,unwrappedTileID:kr,textLabelPlaneMatrix:tt,labelToScreenMatrix:pt,scale:ir,textPixelRatio:or,holdingForFade:Q.holdingForFade(),collisionBoxArray:et,partiallyEvaluatedTextSize:a.ag(ue.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(ue.sourceID)};if(ee)for(let nr of ue.sortKeyRanges){let{sortKey:fr,symbolInstanceStart:Ar,symbolInstanceEnd:Rr}=nr;w.push({sortKey:fr,symbolInstanceStart:Ar,symbolInstanceEnd:Rr,parameters:Ht})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:ue.symbolInstances.length,parameters:Ht})}attemptAnchorPlacement(w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt){let pt=a.aq[w.textAnchor],Ht=[w.textOffset0,w.textOffset1],nr=Bt(pt,Q,ee,Ht,ue),fr=this.collisionIndex.placeCollisionBox(q,kr,mt,Ft,ir,et,Ge,qe,or.predicate,tt,nr);if((!lt||this.collisionIndex.placeCollisionBox(lt,kr,mt,Ft,ir,et,Ge,He,or.predicate,tt,nr).placeable)&&fr.placeable){let Ar;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Vr.crossTileID]&&this.prevPlacement.placements[Vr.crossTileID]&&this.prevPlacement.placements[Vr.crossTileID].text&&(Ar=this.prevPlacement.variableOffsets[Vr.crossTileID].anchor),Vr.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Vr.crossTileID]={textOffset:Ht,width:Q,height:ee,anchor:pt,textBoxScale:ue,prevAnchor:Ar},this.markUsedJustification(he,pt,Vr,Se),he.allowVerticalPlacement&&(this.markUsedOrientation(he,Se,Vr),this.placedOrientations[Vr.crossTileID]=Se),{shift:nr,placedGlyphBoxes:fr}}}placeLayerBucketPart(w,q,Q){let{bucket:ee,layout:ue,translationText:Ge,translationIcon:et,posMatrix:mt,unwrappedTileID:Ft,textLabelPlaneMatrix:ir,labelToScreenMatrix:or,textPixelRatio:kr,holdingForFade:Vr,collisionBoxArray:he,partiallyEvaluatedTextSize:Se,collisionGroup:qe}=w.parameters,He=ue.get("text-optional"),lt=ue.get("icon-optional"),tt=a.ar(ue,"text-overlap","text-allow-overlap"),pt=tt==="always",Ht=a.ar(ue,"icon-overlap","icon-allow-overlap"),nr=Ht==="always",fr=ue.get("text-rotation-alignment")==="map",Ar=ue.get("text-pitch-alignment")==="map",Rr=ue.get("icon-text-fit")!=="none",ri=ue.get("symbol-z-order")==="viewport-y",si=pt&&(nr||!ee.hasIconData()||lt),Mi=nr&&(pt||!ee.hasTextData()||He);!ee.collisionArrays&&he&&ee.deserializeCollisionBoxes(he);let hn=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),Zn=(Yn,Ua,Fo)=>{var vl,Us;if(q[Yn.crossTileID])return;if(Vr)return void(this.placements[Yn.crossTileID]=new nn(!1,!1,!1));let ml=!1,au=!1,Sl=!0,Yl=null,ql={box:null,placeable:!1,offscreen:null},ou={box:null,placeable:!1,offscreen:null},Pu=null,iu=null,tu=null,Wu=0,Qu=0,Ju=0;Ua.textFeatureIndex?Wu=Ua.textFeatureIndex:Yn.useRuntimeCollisionCircles&&(Wu=Yn.featureIndex),Ua.verticalTextFeatureIndex&&(Qu=Ua.verticalTextFeatureIndex);let ju=Ua.textBox;if(ju){let ef=ze=>{let Xe=a.ah.horizontal;if(ee.allowVerticalPlacement&&!ze&&this.prevPlacement){let Qe=this.prevPlacement.placedOrientations[Yn.crossTileID];Qe&&(this.placedOrientations[Yn.crossTileID]=Qe,Xe=Qe,this.markUsedOrientation(ee,Xe,Yn))}return Xe},tf=(ze,Xe)=>{if(ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&Ua.verticalTextBox){for(let Qe of ee.writingModes)if(Qe===a.ah.vertical?(ql=Xe(),ou=ql):ql=ze(),ql&&ql.placeable)break}else ql=ze()},Z=Yn.textAnchorOffsetStartIndex,se=Yn.textAnchorOffsetEndIndex;if(se===Z){let ze=(Xe,Qe)=>{let ot=this.collisionIndex.placeCollisionBox(Xe,tt,kr,mt,Ft,Ar,fr,Ge,qe.predicate,hn);return ot&&ot.placeable&&(this.markUsedOrientation(ee,Qe,Yn),this.placedOrientations[Yn.crossTileID]=Qe),ot};tf(()=>ze(ju,a.ah.horizontal),()=>{let Xe=Ua.verticalTextBox;return ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&Xe?ze(Xe,a.ah.vertical):{box:null,offscreen:null}}),ef(ql&&ql.placeable)}else{let ze=a.aq[(Us=(vl=this.prevPlacement)===null||vl===void 0?void 0:vl.variableOffsets[Yn.crossTileID])===null||Us===void 0?void 0:Us.anchor],Xe=(ot,jt,_t)=>{let cr=ot.x2-ot.x1,Cr=ot.y2-ot.y1,zr=Yn.textBoxScale,ui=Rr&&Ht==="never"?jt:null,$r=null,Oi=tt==="never"?1:2,fn="never";ze&&Oi++;for(let vi=0;viXe(ju,Ua.iconBox,a.ah.horizontal),()=>{let ot=Ua.verticalTextBox;return ee.allowVerticalPlacement&&(!ql||!ql.placeable)&&Yn.numVerticalGlyphVertices>0&&ot?Xe(ot,Ua.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),ql&&(ml=ql.placeable,Sl=ql.offscreen);let Qe=ef(ql&&ql.placeable);if(!ml&&this.prevPlacement){let ot=this.prevPlacement.variableOffsets[Yn.crossTileID];ot&&(this.variableOffsets[Yn.crossTileID]=ot,this.markUsedJustification(ee,ot.anchor,Yn,Qe))}}}if(Pu=ql,ml=Pu&&Pu.placeable,Sl=Pu&&Pu.offscreen,Yn.useRuntimeCollisionCircles){let ef=ee.text.placedSymbolArray.get(Yn.centerJustifiedTextSymbolIndex),tf=a.ai(ee.textSizeData,Se,ef),Z=ue.get("text-padding");iu=this.collisionIndex.placeCollisionCircles(tt,ef,ee.lineVertexArray,ee.glyphOffsetArray,tf,mt,Ft,ir,or,Q,Ar,qe.predicate,Yn.collisionCircleDiameter,Z,Ge,hn),iu.circles.length&&iu.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),ml=pt||iu.circles.length>0&&!iu.collisionDetected,Sl=Sl&&iu.offscreen}if(Ua.iconFeatureIndex&&(Ju=Ua.iconFeatureIndex),Ua.iconBox){let ef=tf=>this.collisionIndex.placeCollisionBox(tf,Ht,kr,mt,Ft,Ar,fr,et,qe.predicate,hn,Rr&&Yl?Yl:void 0);ou&&ou.placeable&&Ua.verticalIconBox?(tu=ef(Ua.verticalIconBox),au=tu.placeable):(tu=ef(Ua.iconBox),au=tu.placeable),Sl=Sl&&tu.offscreen}let Xu=He||Yn.numHorizontalGlyphVertices===0&&Yn.numVerticalGlyphVertices===0,lf=lt||Yn.numIconVertices===0;Xu||lf?lf?Xu||(au=au&&ml):ml=au&&ml:au=ml=au&&ml;let xf=au&&tu.placeable;if(ml&&Pu.placeable&&this.collisionIndex.insertCollisionBox(Pu.box,tt,ue.get("text-ignore-placement"),ee.bucketInstanceId,ou&&ou.placeable&&Qu?Qu:Wu,qe.ID),xf&&this.collisionIndex.insertCollisionBox(tu.box,Ht,ue.get("icon-ignore-placement"),ee.bucketInstanceId,Ju,qe.ID),iu&&ml&&this.collisionIndex.insertCollisionCircles(iu.circles,tt,ue.get("text-ignore-placement"),ee.bucketInstanceId,Wu,qe.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Fo,Ua,Pu,tu,iu),Yn.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(ee.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[Yn.crossTileID]=new nn(ml||si,au||Mi,Sl||ee.justReloaded),q[Yn.crossTileID]=!0};if(ri){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let Yn=ee.getSortedSymbolIndexes(this.transform.angle);for(let Ua=Yn.length-1;Ua>=0;--Ua){let Fo=Yn[Ua];Zn(ee.symbolInstances.get(Fo),ee.collisionArrays[Fo],Fo)}}else for(let Yn=w.symbolInstanceStart;Yn=0&&(w.text.placedSymbolArray.get(et).crossTileID=ue>=0&&et!==ue?0:Q.crossTileID)}markUsedOrientation(w,q,Q){let ee=q===a.ah.horizontal||q===a.ah.horizontalOnly?q:0,ue=q===a.ah.vertical?q:0,Ge=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let et of Ge)w.text.placedSymbolArray.get(et).placedOrientation=ee;Q.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(Q.verticalPlacedTextSymbolIndex).placedOrientation=ue)}commit(w){this.commitTime=w,this.zoomAtLastRecencyCheck=this.transform.zoom;let q=this.prevPlacement,Q=!1;this.prevZoomAdjustment=q?q.zoomAdjustment(this.transform.zoom):0;let ee=q?q.symbolFadeChange(w):1,ue=q?q.opacities:{},Ge=q?q.variableOffsets:{},et=q?q.placedOrientations:{};for(let mt in this.placements){let Ft=this.placements[mt],ir=ue[mt];ir?(this.opacities[mt]=new Ci(ir,ee,Ft.text,Ft.icon),Q=Q||Ft.text!==ir.text.placed||Ft.icon!==ir.icon.placed):(this.opacities[mt]=new Ci(null,ee,Ft.text,Ft.icon,Ft.skipFade),Q=Q||Ft.text||Ft.icon)}for(let mt in ue){let Ft=ue[mt];if(!this.opacities[mt]){let ir=new Ci(Ft,ee,!1,!1);ir.isHidden()||(this.opacities[mt]=ir,Q=Q||Ft.text.placed||Ft.icon.placed)}}for(let mt in Ge)this.variableOffsets[mt]||!this.opacities[mt]||this.opacities[mt].isHidden()||(this.variableOffsets[mt]=Ge[mt]);for(let mt in et)this.placedOrientations[mt]||!this.opacities[mt]||this.opacities[mt].isHidden()||(this.placedOrientations[mt]=et[mt]);if(q&&q.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");Q?this.lastPlacementChangeTime=w:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=q?q.lastPlacementChangeTime:w)}updateLayerOpacities(w,q){let Q={};for(let ee of q){let ue=ee.getBucket(w);ue&&ee.latestFeatureIndex&&w.id===ue.layerIds[0]&&this.updateBucketOpacities(ue,ee.tileID,Q,ee.collisionBoxArray)}}updateBucketOpacities(w,q,Q,ee){w.hasTextData()&&(w.text.opacityVertexArray.clear(),w.text.hasVisibleVertices=!1),w.hasIconData()&&(w.icon.opacityVertexArray.clear(),w.icon.hasVisibleVertices=!1),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexArray.clear(),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexArray.clear();let ue=w.layers[0],Ge=ue.layout,et=new Ci(null,0,!1,!1,!0),mt=Ge.get("text-allow-overlap"),Ft=Ge.get("icon-allow-overlap"),ir=ue._unevaluatedLayout.hasValue("text-variable-anchor")||ue._unevaluatedLayout.hasValue("text-variable-anchor-offset"),or=Ge.get("text-rotation-alignment")==="map",kr=Ge.get("text-pitch-alignment")==="map",Vr=Ge.get("icon-text-fit")!=="none",he=new Ci(null,0,mt&&(Ft||!w.hasIconData()||Ge.get("icon-optional")),Ft&&(mt||!w.hasTextData()||Ge.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let Se=(He,lt,tt)=>{for(let pt=0;pt0,Ar=this.placedOrientations[lt.crossTileID],Rr=Ar===a.ah.vertical,ri=Ar===a.ah.horizontal||Ar===a.ah.horizontalOnly;if(tt>0||pt>0){let Mi=yi(nr.text);Se(w.text,tt,Rr?Ei:Mi),Se(w.text,pt,ri?Ei:Mi);let hn=nr.text.isHidden();[lt.rightJustifiedTextSymbolIndex,lt.centerJustifiedTextSymbolIndex,lt.leftJustifiedTextSymbolIndex].forEach(Ua=>{Ua>=0&&(w.text.placedSymbolArray.get(Ua).hidden=hn||Rr?1:0)}),lt.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(lt.verticalPlacedTextSymbolIndex).hidden=hn||ri?1:0);let Zn=this.variableOffsets[lt.crossTileID];Zn&&this.markUsedJustification(w,Zn.anchor,lt,Ar);let Yn=this.placedOrientations[lt.crossTileID];Yn&&(this.markUsedJustification(w,"left",lt,Yn),this.markUsedOrientation(w,Yn,lt))}if(fr){let Mi=yi(nr.icon),hn=!(Vr&<.verticalPlacedIconSymbolIndex&&Rr);lt.placedIconSymbolIndex>=0&&(Se(w.icon,lt.numIconVertices,hn?Mi:Ei),w.icon.placedSymbolArray.get(lt.placedIconSymbolIndex).hidden=nr.icon.isHidden()),lt.verticalPlacedIconSymbolIndex>=0&&(Se(w.icon,lt.numVerticalIconVertices,hn?Ei:Mi),w.icon.placedSymbolArray.get(lt.verticalPlacedIconSymbolIndex).hidden=nr.icon.isHidden())}let si=qe&&qe.has(He)?qe.get(He):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let Mi=w.collisionArrays[He];if(Mi){let hn=new a.P(0,0);if(Mi.textBox||Mi.verticalTextBox){let Zn=!0;if(ir){let Yn=this.variableOffsets[Ht];Yn?(hn=Bt(Yn.anchor,Yn.width,Yn.height,Yn.textOffset,Yn.textBoxScale),or&&hn._rotate(kr?this.transform.angle:-this.transform.angle)):Zn=!1}if(Mi.textBox||Mi.verticalTextBox){let Yn;Mi.textBox&&(Yn=Rr),Mi.verticalTextBox&&(Yn=ri),Vt(w.textCollisionBox.collisionVertexArray,nr.text.placed,!Zn||Yn,si.text,hn.x,hn.y)}}if(Mi.iconBox||Mi.verticalIconBox){let Zn=!!(!ri&&Mi.verticalIconBox),Yn;Mi.iconBox&&(Yn=Zn),Mi.verticalIconBox&&(Yn=!Zn),Vt(w.iconCollisionBox.collisionVertexArray,nr.icon.placed,Yn,si.icon,Vr?hn.x:0,Vr?hn.y:0)}}}}if(w.sortFeatures(this.transform.angle),this.retainedQueryData[w.bucketInstanceId]&&(this.retainedQueryData[w.bucketInstanceId].featureSortOrder=w.featureSortOrder),w.hasTextData()&&w.text.opacityVertexBuffer&&w.text.opacityVertexBuffer.updateData(w.text.opacityVertexArray),w.hasIconData()&&w.icon.opacityVertexBuffer&&w.icon.opacityVertexBuffer.updateData(w.icon.opacityVertexArray),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexBuffer&&w.iconCollisionBox.collisionVertexBuffer.updateData(w.iconCollisionBox.collisionVertexArray),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexBuffer&&w.textCollisionBox.collisionVertexBuffer.updateData(w.textCollisionBox.collisionVertexArray),w.text.opacityVertexArray.length!==w.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${w.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${w.text.layoutVertexArray.length}) / 4`);if(w.icon.opacityVertexArray.length!==w.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${w.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${w.icon.layoutVertexArray.length}) / 4`);if(w.bucketInstanceId in this.collisionCircleArrays){let He=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=He.invProjMatrix,w.placementViewportMatrix=He.viewportMatrix,w.collisionCircleArray=He.circles,delete this.collisionCircleArrays[w.bucketInstanceId]}}symbolFadeChange(w){return this.fadeDuration===0?1:(w-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(w){return Math.max(0,(this.transform.zoom-w)/1.5)}hasTransitions(w){return this.stale||w-this.lastPlacementChangeTimew}setStale(){this.stale=!0}}function Vt(le,w,q,Q,ee,ue){Q&&Q.length!==0||(Q=[0,0,0,0]);let Ge=Q[0]-Fr,et=Q[1]-Fr,mt=Q[2]-Fr,Ft=Q[3]-Fr;le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,Ge,et),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,mt,et),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,mt,Ft),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,Ge,Ft)}let Wt=Math.pow(2,25),_r=Math.pow(2,24),Lr=Math.pow(2,17),Ur=Math.pow(2,16),Ir=Math.pow(2,9),Gr=Math.pow(2,8),jr=Math.pow(2,1);function yi(le){if(le.opacity===0&&!le.placed)return 0;if(le.opacity===1&&le.placed)return 4294967295;let w=le.placed?1:0,q=Math.floor(127*le.opacity);return q*Wt+w*_r+q*Lr+w*Ur+q*Ir+w*Gr+q*jr+w}let Ei=0;function Vi(){return{isOccluded:(le,w,q)=>!1,getPitchedTextCorrection:(le,w,q)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(le,w,q,Q){throw new Error("Not implemented.")},translatePosition:(le,w,q,Q)=>function(ee,ue,Ge,et,mt=!1){if(!Ge[0]&&!Ge[1])return[0,0];let Ft=mt?et==="map"?ee.angle:0:et==="viewport"?-ee.angle:0;if(Ft){let ir=Math.sin(Ft),or=Math.cos(Ft);Ge=[Ge[0]*or-Ge[1]*ir,Ge[0]*ir+Ge[1]*or]}return[mt?Ge[0]:Di(ue,Ge[0],ee.zoom),mt?Ge[1]:Di(ue,Ge[1],ee.zoom)]}(le,w,q,Q),getCircleRadiusCorrection:le=>1}}class ti{constructor(w){this._sortAcrossTiles=w.layout.get("symbol-z-order")!=="viewport-y"&&!w.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(w,q,Q,ee,ue){let Ge=this._bucketParts;for(;this._currentTileIndexet.sortKey-mt.sortKey));this._currentPartIndex!this._forceFullPlacement&&l.now()-ee>2;for(;this._currentPlacementIndex>=0;){let Ge=q[w[this._currentPlacementIndex]],et=this.placement.collisionIndex.transform.zoom;if(Ge.type==="symbol"&&(!Ge.minzoom||Ge.minzoom<=et)&&(!Ge.maxzoom||Ge.maxzoom>et)){if(this._inProgressLayer||(this._inProgressLayer=new ti(Ge)),this._inProgressLayer.continuePlacement(Q[Ge.source],this.placement,this._showCollisionBoxes,Ge,ue))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(w){return this.placement.commit(w),this.placement}}let Yr=512/a.X/2;class oi{constructor(w,q,Q){this.tileID=w,this.bucketInstanceId=Q,this._symbolsByKey={};let ee=new Map;for(let ue=0;ue({x:Math.floor(mt.anchorX*Yr),y:Math.floor(mt.anchorY*Yr)})),crossTileIDs:Ge.map(mt=>mt.crossTileID)};if(et.positions.length>128){let mt=new a.av(et.positions.length,16,Uint16Array);for(let{x:Ft,y:ir}of et.positions)mt.add(Ft,ir);mt.finish(),delete et.positions,et.index=mt}this._symbolsByKey[ue]=et}}getScaledCoordinates(w,q){let{x:Q,y:ee,z:ue}=this.tileID.canonical,{x:Ge,y:et,z:mt}=q.canonical,Ft=Yr/Math.pow(2,mt-ue),ir=(et*a.X+w.anchorY)*Ft,or=ee*a.X*Yr;return{x:Math.floor((Ge*a.X+w.anchorX)*Ft-Q*a.X*Yr),y:Math.floor(ir-or)}}findMatches(w,q,Q){let ee=this.tileID.canonical.zw)}}class Bi{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class an{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(w){let q=Math.round((w-this.lng)/360);if(q!==0)for(let Q in this.indexes){let ee=this.indexes[Q],ue={};for(let Ge in ee){let et=ee[Ge];et.tileID=et.tileID.unwrapTo(et.tileID.wrap+q),ue[et.tileID.key]=et}this.indexes[Q]=ue}this.lng=w}addBucket(w,q,Q){if(this.indexes[w.overscaledZ]&&this.indexes[w.overscaledZ][w.key]){if(this.indexes[w.overscaledZ][w.key].bucketInstanceId===q.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(w.overscaledZ,this.indexes[w.overscaledZ][w.key])}for(let ue=0;uew.overscaledZ)for(let et in Ge){let mt=Ge[et];mt.tileID.isChildOf(w)&&mt.findMatches(q.symbolInstances,w,ee)}else{let et=Ge[w.scaledTo(Number(ue)).key];et&&et.findMatches(q.symbolInstances,w,ee)}}for(let ue=0;ue{q[Q]=!0});for(let Q in this.layerIndexes)q[Q]||delete this.layerIndexes[Q]}}let Fi=(le,w)=>a.t(le,w&&w.filter(q=>q.identifier!=="source.canvas")),Ri=a.aw();class xn extends a.E{constructor(w,q={}){super(),this._rtlPluginLoaded=()=>{for(let Q in this.sourceCaches){let ee=this.sourceCaches[Q].getSource().type;ee!=="vector"&&ee!=="geojson"||this.sourceCaches[Q].reload()}},this.map=w,this.dispatcher=new Ee(ke(),w._getMapId()),this.dispatcher.registerMessageHandler("GG",(Q,ee)=>this.getGlyphs(Q,ee)),this.dispatcher.registerMessageHandler("GI",(Q,ee)=>this.getImages(Q,ee)),this.imageManager=new A,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,q.localIdeographFontFamily),this.lineAtlas=new ae(256,512),this.crossTileSymbolIndex=new rn,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new a.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",a.ay()),wt().on(Et,this._rtlPluginLoaded),this.on("data",Q=>{if(Q.dataType!=="source"||Q.sourceDataType!=="metadata")return;let ee=this.sourceCaches[Q.sourceId];if(!ee)return;let ue=ee.getSource();if(ue&&ue.vectorLayerIds)for(let Ge in this._layers){let et=this._layers[Ge];et.source===ue.id&&this._validateLayer(et)}})}loadURL(w,q={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),q.validate=typeof q.validate!="boolean"||q.validate;let ee=this.map._requestManager.transformRequest(w,"Style");this._loadStyleRequest=new AbortController;let ue=this._loadStyleRequest;a.h(ee,this._loadStyleRequest).then(Ge=>{this._loadStyleRequest=null,this._load(Ge.data,q,Q)}).catch(Ge=>{this._loadStyleRequest=null,Ge&&!ue.signal.aborted&&this.fire(new a.j(Ge))})}loadJSON(w,q={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,l.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,q.validate=q.validate!==!1,this._load(w,q,Q)}).catch(()=>{})}loadEmpty(){this.fire(new a.k("dataloading",{dataType:"style"})),this._load(Ri,{validate:!1})}_load(w,q,Q){var ee;let ue=q.transformStyle?q.transformStyle(Q,w):w;if(!q.validate||!Fi(this,a.u(ue))){this._loaded=!0,this.stylesheet=ue;for(let Ge in ue.sources)this.addSource(Ge,ue.sources[Ge],{validate:!1});ue.sprite?this._loadSprite(ue.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(ue.glyphs),this._createLayers(),this.light=new N(this.stylesheet.light),this.sky=new re(this.stylesheet.sky),this.map.setTerrain((ee=this.stylesheet.terrain)!==null&&ee!==void 0?ee:null),this.fire(new a.k("data",{dataType:"style"})),this.fire(new a.k("style.load"))}}_createLayers(){let w=a.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",w),this._order=w.map(q=>q.id),this._layers={},this._serializedLayers=null;for(let q of w){let Q=a.aA(q);Q.setEventedParent(this,{layer:{id:q.id}}),this._layers[q.id]=Q}}_loadSprite(w,q=!1,Q=void 0){let ee;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(ue,Ge,et,mt){return a._(this,void 0,void 0,function*(){let Ft=C(ue),ir=et>1?"@2x":"",or={},kr={};for(let{id:Vr,url:he}of Ft){let Se=Ge.transformRequest(M(he,ir,".json"),"SpriteJSON");or[Vr]=a.h(Se,mt);let qe=Ge.transformRequest(M(he,ir,".png"),"SpriteImage");kr[Vr]=v.getImage(qe,mt)}return yield Promise.all([...Object.values(or),...Object.values(kr)]),function(Vr,he){return a._(this,void 0,void 0,function*(){let Se={};for(let qe in Vr){Se[qe]={};let He=l.getImageCanvasContext((yield he[qe]).data),lt=(yield Vr[qe]).data;for(let tt in lt){let{width:pt,height:Ht,x:nr,y:fr,sdf:Ar,pixelRatio:Rr,stretchX:ri,stretchY:si,content:Mi,textFitWidth:hn,textFitHeight:Zn}=lt[tt];Se[qe][tt]={data:null,pixelRatio:Rr,sdf:Ar,stretchX:ri,stretchY:si,content:Mi,textFitWidth:hn,textFitHeight:Zn,spriteData:{width:pt,height:Ht,x:nr,y:fr,context:He}}}}return Se})}(or,kr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(ue=>{if(this._spriteRequest=null,ue)for(let Ge in ue){this._spritesImagesIds[Ge]=[];let et=this._spritesImagesIds[Ge]?this._spritesImagesIds[Ge].filter(mt=>!(mt in ue)):[];for(let mt of et)this.imageManager.removeImage(mt),this._changedImages[mt]=!0;for(let mt in ue[Ge]){let Ft=Ge==="default"?mt:`${Ge}:${mt}`;this._spritesImagesIds[Ge].push(Ft),Ft in this.imageManager.images?this.imageManager.updateImage(Ft,ue[Ge][mt],!1):this.imageManager.addImage(Ft,ue[Ge][mt]),q&&(this._changedImages[Ft]=!0)}}}).catch(ue=>{this._spriteRequest=null,ee=ue,this.fire(new a.j(ee))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),q&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"})),Q&&Q(ee)})}_unloadSprite(){for(let w of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(w),this._changedImages[w]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}_validateLayer(w){let q=this.sourceCaches[w.source];if(!q)return;let Q=w.sourceLayer;if(!Q)return;let ee=q.getSource();(ee.type==="geojson"||ee.vectorLayerIds&&ee.vectorLayerIds.indexOf(Q)===-1)&&this.fire(new a.j(new Error(`Source layer "${Q}" does not exist on source "${ee.id}" as specified by style layer "${w.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let w in this.sourceCaches)if(!this.sourceCaches[w].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(w,q=!1){let Q=this._serializedAllLayers();if(!w||w.length===0)return Object.values(q?a.aB(Q):Q);let ee=[];for(let ue of w)if(Q[ue]){let Ge=q?a.aB(Q[ue]):Q[ue];ee.push(Ge)}return ee}_serializedAllLayers(){let w=this._serializedLayers;if(w)return w;w=this._serializedLayers={};let q=Object.keys(this._layers);for(let Q of q){let ee=this._layers[Q];ee.type!=="custom"&&(w[Q]=ee.serialize())}return w}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let w in this.sourceCaches)if(this.sourceCaches[w].hasTransition())return!0;for(let w in this._layers)if(this._layers[w].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(w){if(!this._loaded)return;let q=this._changed;if(q){let ee=Object.keys(this._updatedLayers),ue=Object.keys(this._removedLayers);(ee.length||ue.length)&&this._updateWorkerLayers(ee,ue);for(let Ge in this._updatedSources){let et=this._updatedSources[Ge];if(et==="reload")this._reloadSource(Ge);else{if(et!=="clear")throw new Error(`Invalid action ${et}`);this._clearSource(Ge)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let Ge in this._updatedPaintProps)this._layers[Ge].updateTransitions(w);this.light.updateTransitions(w),this.sky.updateTransitions(w),this._resetUpdates()}let Q={};for(let ee in this.sourceCaches){let ue=this.sourceCaches[ee];Q[ee]=ue.used,ue.used=!1}for(let ee of this._order){let ue=this._layers[ee];ue.recalculate(w,this._availableImages),!ue.isHidden(w.zoom)&&ue.source&&(this.sourceCaches[ue.source].used=!0)}for(let ee in Q){let ue=this.sourceCaches[ee];!!Q[ee]!=!!ue.used&&ue.fire(new a.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:ee}))}this.light.recalculate(w),this.sky.recalculate(w),this.z=w.zoom,q&&this.fire(new a.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let w=Object.keys(this._changedImages);if(w.length){for(let q in this.sourceCaches)this.sourceCaches[q].reloadTilesForDependencies(["icons","patterns"],w);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let w in this.sourceCaches)this.sourceCaches[w].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(w,q){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(w,!1),removedIds:q})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(w,q={}){var Q;this._checkLoaded();let ee=this.serialize();if(w=q.transformStyle?q.transformStyle(ee,w):w,((Q=q.validate)===null||Q===void 0||Q)&&Fi(this,a.u(w)))return!1;(w=a.aB(w)).layers=a.az(w.layers);let ue=a.aC(ee,w),Ge=this._getOperationsToPerform(ue);if(Ge.unimplemented.length>0)throw new Error(`Unimplemented: ${Ge.unimplemented.join(", ")}.`);if(Ge.operations.length===0)return!1;for(let et of Ge.operations)et();return this.stylesheet=w,this._serializedLayers=null,!0}_getOperationsToPerform(w){let q=[],Q=[];for(let ee of w)switch(ee.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":q.push(()=>this.addLayer.apply(this,ee.args));break;case"removeLayer":q.push(()=>this.removeLayer.apply(this,ee.args));break;case"setPaintProperty":q.push(()=>this.setPaintProperty.apply(this,ee.args));break;case"setLayoutProperty":q.push(()=>this.setLayoutProperty.apply(this,ee.args));break;case"setFilter":q.push(()=>this.setFilter.apply(this,ee.args));break;case"addSource":q.push(()=>this.addSource.apply(this,ee.args));break;case"removeSource":q.push(()=>this.removeSource.apply(this,ee.args));break;case"setLayerZoomRange":q.push(()=>this.setLayerZoomRange.apply(this,ee.args));break;case"setLight":q.push(()=>this.setLight.apply(this,ee.args));break;case"setGeoJSONSourceData":q.push(()=>this.setGeoJSONSourceData.apply(this,ee.args));break;case"setGlyphs":q.push(()=>this.setGlyphs.apply(this,ee.args));break;case"setSprite":q.push(()=>this.setSprite.apply(this,ee.args));break;case"setSky":q.push(()=>this.setSky.apply(this,ee.args));break;case"setTerrain":q.push(()=>this.map.setTerrain.apply(this,ee.args));break;case"setTransition":q.push(()=>{});break;default:Q.push(ee.command)}return{operations:q,unimplemented:Q}}addImage(w,q){if(this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" already exists.`)));this.imageManager.addImage(w,q),this._afterImageUpdated(w)}updateImage(w,q){this.imageManager.updateImage(w,q)}getImage(w){return this.imageManager.getImage(w)}removeImage(w){if(!this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" does not exist.`)));this.imageManager.removeImage(w),this._afterImageUpdated(w)}_afterImageUpdated(w){this._availableImages=this.imageManager.listImages(),this._changedImages[w]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(w,q,Q={}){if(this._checkLoaded(),this.sourceCaches[w]!==void 0)throw new Error(`Source "${w}" already exists.`);if(!q.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(q).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(q.type)>=0&&this._validate(a.u.source,`sources.${w}`,q,null,Q))return;this.map&&this.map._collectResourceTiming&&(q.collectResourceTiming=!0);let ee=this.sourceCaches[w]=new rt(w,q,this.dispatcher);ee.style=this,ee.setEventedParent(this,()=>({isSourceLoaded:ee.loaded(),source:ee.serialize(),sourceId:w})),ee.onAdd(this.map),this._changed=!0}removeSource(w){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error("There is no source with this ID");for(let Q in this._layers)if(this._layers[Q].source===w)return this.fire(new a.j(new Error(`Source "${w}" cannot be removed while layer "${Q}" is using it.`)));let q=this.sourceCaches[w];delete this.sourceCaches[w],delete this._updatedSources[w],q.fire(new a.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:w})),q.setEventedParent(null),q.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(w,q){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error(`There is no source with this ID=${w}`);let Q=this.sourceCaches[w].getSource();if(Q.type!=="geojson")throw new Error(`geojsonSource.type is ${Q.type}, which is !== 'geojson`);Q.setData(q),this._changed=!0}getSource(w){return this.sourceCaches[w]&&this.sourceCaches[w].getSource()}addLayer(w,q,Q={}){this._checkLoaded();let ee=w.id;if(this.getLayer(ee))return void this.fire(new a.j(new Error(`Layer "${ee}" already exists on this map.`)));let ue;if(w.type==="custom"){if(Fi(this,a.aD(w)))return;ue=a.aA(w)}else{if("source"in w&&typeof w.source=="object"&&(this.addSource(ee,w.source),w=a.aB(w),w=a.e(w,{source:ee})),this._validate(a.u.layer,`layers.${ee}`,w,{arrayIndex:-1},Q))return;ue=a.aA(w),this._validateLayer(ue),ue.setEventedParent(this,{layer:{id:ee}})}let Ge=q?this._order.indexOf(q):this._order.length;if(q&&Ge===-1)this.fire(new a.j(new Error(`Cannot add layer "${ee}" before non-existing layer "${q}".`)));else{if(this._order.splice(Ge,0,ee),this._layerOrderChanged=!0,this._layers[ee]=ue,this._removedLayers[ee]&&ue.source&&ue.type!=="custom"){let et=this._removedLayers[ee];delete this._removedLayers[ee],et.type!==ue.type?this._updatedSources[ue.source]="clear":(this._updatedSources[ue.source]="reload",this.sourceCaches[ue.source].pause())}this._updateLayer(ue),ue.onAdd&&ue.onAdd(this.map)}}moveLayer(w,q){if(this._checkLoaded(),this._changed=!0,!this._layers[w])return void this.fire(new a.j(new Error(`The layer '${w}' does not exist in the map's style and cannot be moved.`)));if(w===q)return;let Q=this._order.indexOf(w);this._order.splice(Q,1);let ee=q?this._order.indexOf(q):this._order.length;q&&ee===-1?this.fire(new a.j(new Error(`Cannot move layer "${w}" before non-existing layer "${q}".`))):(this._order.splice(ee,0,w),this._layerOrderChanged=!0)}removeLayer(w){this._checkLoaded();let q=this._layers[w];if(!q)return void this.fire(new a.j(new Error(`Cannot remove non-existing layer "${w}".`)));q.setEventedParent(null);let Q=this._order.indexOf(w);this._order.splice(Q,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[w]=q,delete this._layers[w],this._serializedLayers&&delete this._serializedLayers[w],delete this._updatedLayers[w],delete this._updatedPaintProps[w],q.onRemove&&q.onRemove(this.map)}getLayer(w){return this._layers[w]}getLayersOrder(){return[...this._order]}hasLayer(w){return w in this._layers}setLayerZoomRange(w,q,Q){this._checkLoaded();let ee=this.getLayer(w);ee?ee.minzoom===q&&ee.maxzoom===Q||(q!=null&&(ee.minzoom=q),Q!=null&&(ee.maxzoom=Q),this._updateLayer(ee)):this.fire(new a.j(new Error(`Cannot set the zoom range of non-existing layer "${w}".`)))}setFilter(w,q,Q={}){this._checkLoaded();let ee=this.getLayer(w);if(ee){if(!a.aE(ee.filter,q))return q==null?(ee.filter=void 0,void this._updateLayer(ee)):void(this._validate(a.u.filter,`layers.${ee.id}.filter`,q,null,Q)||(ee.filter=a.aB(q),this._updateLayer(ee)))}else this.fire(new a.j(new Error(`Cannot filter non-existing layer "${w}".`)))}getFilter(w){return a.aB(this.getLayer(w).filter)}setLayoutProperty(w,q,Q,ee={}){this._checkLoaded();let ue=this.getLayer(w);ue?a.aE(ue.getLayoutProperty(q),Q)||(ue.setLayoutProperty(q,Q,ee),this._updateLayer(ue)):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getLayoutProperty(w,q){let Q=this.getLayer(w);if(Q)return Q.getLayoutProperty(q);this.fire(new a.j(new Error(`Cannot get style of non-existing layer "${w}".`)))}setPaintProperty(w,q,Q,ee={}){this._checkLoaded();let ue=this.getLayer(w);ue?a.aE(ue.getPaintProperty(q),Q)||(ue.setPaintProperty(q,Q,ee)&&this._updateLayer(ue),this._changed=!0,this._updatedPaintProps[w]=!0,this._serializedLayers=null):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getPaintProperty(w,q){return this.getLayer(w).getPaintProperty(q)}setFeatureState(w,q){this._checkLoaded();let Q=w.source,ee=w.sourceLayer,ue=this.sourceCaches[Q];if(ue===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let Ge=ue.getSource().type;Ge==="geojson"&&ee?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Ge!=="vector"||ee?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ue.setFeatureState(ee,w.id,q)):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(w,q){this._checkLoaded();let Q=w.source,ee=this.sourceCaches[Q];if(ee===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let ue=ee.getSource().type,Ge=ue==="vector"?w.sourceLayer:void 0;ue!=="vector"||Ge?q&&typeof w.id!="string"&&typeof w.id!="number"?this.fire(new a.j(new Error("A feature id is required to remove its specific state property."))):ee.removeFeatureState(Ge,w.id,q):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(w){this._checkLoaded();let q=w.source,Q=w.sourceLayer,ee=this.sourceCaches[q];if(ee!==void 0)return ee.getSource().type!=="vector"||Q?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ee.getFeatureState(Q,w.id)):void this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new a.j(new Error(`The source '${q}' does not exist in the map's style.`)))}getTransition(){return a.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let w=a.aF(this.sourceCaches,ue=>ue.serialize()),q=this._serializeByIds(this._order,!0),Q=this.map.getTerrain()||void 0,ee=this.stylesheet;return a.aG({version:ee.version,name:ee.name,metadata:ee.metadata,light:ee.light,sky:ee.sky,center:ee.center,zoom:ee.zoom,bearing:ee.bearing,pitch:ee.pitch,sprite:ee.sprite,glyphs:ee.glyphs,transition:ee.transition,sources:w,layers:q,terrain:Q},ue=>ue!==void 0)}_updateLayer(w){this._updatedLayers[w.id]=!0,w.source&&!this._updatedSources[w.source]&&this.sourceCaches[w.source].getSource().type!=="raster"&&(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(w){let q=Ge=>this._layers[Ge].type==="fill-extrusion",Q={},ee=[];for(let Ge=this._order.length-1;Ge>=0;Ge--){let et=this._order[Ge];if(q(et)){Q[et]=Ge;for(let mt of w){let Ft=mt[et];if(Ft)for(let ir of Ft)ee.push(ir)}}}ee.sort((Ge,et)=>et.intersectionZ-Ge.intersectionZ);let ue=[];for(let Ge=this._order.length-1;Ge>=0;Ge--){let et=this._order[Ge];if(q(et))for(let mt=ee.length-1;mt>=0;mt--){let Ft=ee[mt].feature;if(Q[Ft.layer.id]{let Ar=He.featureSortOrder;if(Ar){let Rr=Ar.indexOf(nr.featureIndex);return Ar.indexOf(fr.featureIndex)-Rr}return fr.featureIndex-nr.featureIndex});for(let nr of Ht)pt.push(nr)}}for(let He in he)he[He].forEach(lt=>{let tt=lt.feature,pt=Ft[et[He].source].getFeatureState(tt.layer["source-layer"],tt.id);tt.source=tt.layer.source,tt.layer["source-layer"]&&(tt.sourceLayer=tt.layer["source-layer"]),tt.state=pt});return he}(this._layers,Ge,this.sourceCaches,w,q,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(ue)}querySourceFeatures(w,q){q&&q.filter&&this._validate(a.u.filter,"querySourceFeatures.filter",q.filter,null,q);let Q=this.sourceCaches[w];return Q?function(ee,ue){let Ge=ee.getRenderableIds().map(Ft=>ee.getTileByID(Ft)),et=[],mt={};for(let Ft=0;Ftkr.getTileByID(Vr)).sort((Vr,he)=>he.tileID.overscaledZ-Vr.tileID.overscaledZ||(Vr.tileID.isLessThan(he.tileID)?-1:1))}let or=this.crossTileSymbolIndex.addLayer(ir,mt[ir.source],w.center.lng);Ge=Ge||or}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((ue=ue||this._layerOrderChanged||Q===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(l.now(),w.zoom))&&(this.pauseablePlacement=new en(w,this.map.terrain,this._order,ue,q,Q,ee,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,mt),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(l.now()),et=!0),Ge&&this.pauseablePlacement.placement.setStale()),et||Ge)for(let Ft of this._order){let ir=this._layers[Ft];ir.type==="symbol"&&this.placement.updateLayerOpacities(ir,mt[ir.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(l.now())}_releaseSymbolFadeTiles(){for(let w in this.sourceCaches)this.sourceCaches[w].releaseSymbolFadeTiles()}getImages(w,q){return a._(this,void 0,void 0,function*(){let Q=yield this.imageManager.getImages(q.icons);this._updateTilesForChangedImages();let ee=this.sourceCaches[q.source];return ee&&ee.setDependencies(q.tileID.key,q.type,q.icons),Q})}getGlyphs(w,q){return a._(this,void 0,void 0,function*(){let Q=yield this.glyphManager.getGlyphs(q.stacks),ee=this.sourceCaches[q.source];return ee&&ee.setDependencies(q.tileID.key,q.type,[""]),Q})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(w,q={}){this._checkLoaded(),w&&this._validate(a.u.glyphs,"glyphs",w,null,q)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=w,this.glyphManager.entries={},this.glyphManager.setURL(w))}addSprite(w,q,Q={},ee){this._checkLoaded();let ue=[{id:w,url:q}],Ge=[...C(this.stylesheet.sprite),...ue];this._validate(a.u.sprite,"sprite",Ge,null,Q)||(this.stylesheet.sprite=Ge,this._loadSprite(ue,!0,ee))}removeSprite(w){this._checkLoaded();let q=C(this.stylesheet.sprite);if(q.find(Q=>Q.id===w)){if(this._spritesImagesIds[w])for(let Q of this._spritesImagesIds[w])this.imageManager.removeImage(Q),this._changedImages[Q]=!0;q.splice(q.findIndex(Q=>Q.id===w),1),this.stylesheet.sprite=q.length>0?q:void 0,delete this._spritesImagesIds[w],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}else this.fire(new a.j(new Error(`Sprite "${w}" doesn't exists on this map.`)))}getSprite(){return C(this.stylesheet.sprite)}setSprite(w,q={},Q){this._checkLoaded(),w&&this._validate(a.u.sprite,"sprite",w,null,q)||(this.stylesheet.sprite=w,w?this._loadSprite(w,!0,Q):(this._unloadSprite(),Q&&Q(null)))}}var xi=a.Y([{name:"a_pos",type:"Int16",components:2}]);let Xr={prelude:ft(`#ifdef GL_ES +{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var VHe=Te((Fbr,UHe)=>{UHe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var bx=Te((Bbr,XHe)=>{"use strict";var fXt=Z1(),cXt=NHe(),hXt=VHe(),dXt='\xA9 OpenStreetMap contributors',GHe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",HHe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",fB="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",pXt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",vXt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",mXt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",jHe={basic:fB,streets:fB,outdoors:fB,light:GHe,dark:HHe,satellite:hXt,"satellite-streets":cXt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:dXt,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":GHe,"carto-darkmatter":HHe,"carto-voyager":fB,"carto-positron-nolabels":pXt,"carto-darkmatter-nolabels":vXt,"carto-voyager-nolabels":mXt},WHe=fXt(jHe);XHe.exports={styleValueDflt:"basic",stylesMap:jHe,styleValuesMap:WHe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",WHe.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error."}});var Wk=Te((Obr,$He)=>{"use strict";var ZHe=ei(),YHe=jl().defaultLine,yXt=zc().attributes,gXt=gc(),_Xt=Zc().textposition,xXt=Sc().overrideAll,bXt=Pf().templatedArray,KHe=bx(),JHe=gXt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});JHe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var wXt=$He.exports=xXt({_arrayAttrRegexps:[ZHe.counterRegex("map",".layers",!0)],domain:yXt({name:"map"}),style:{valType:"any",values:KHe.styleValuesMap,dflt:KHe.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:bXt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:YHe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:YHe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:JHe,textposition:ZHe.extendFlat({},_Xt,{arrayOk:!1})}})},"plot","from-root");wXt.uirevision={valType:"any",editType:"none"}});var cB=Te((qbr,tWe)=>{"use strict";var AXt=Nu().hovertemplateAttrs,TXt=Nu().texttemplateAttrs,SXt=km(),jk=G2(),SS=Zc(),QHe=Wk(),MXt=Gf(),EXt=nc(),rw=Su().extendFlat,kXt=Sc().overrideAll,CXt=Wk(),eWe=jk.line,MS=jk.marker;tWe.exports=kXt({lon:jk.lon,lat:jk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:rw({},CXt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:rw({},MS.opacity,{dflt:1})},mode:rw({},SS.mode,{dflt:"markers"}),text:rw({},SS.text,{}),texttemplate:TXt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:rw({},SS.hovertext,{}),line:{color:eWe.color,width:eWe.width},connectgaps:SS.connectgaps,marker:rw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:MS.opacity,size:MS.size,sizeref:MS.sizeref,sizemin:MS.sizemin,sizemode:MS.sizemode},EXt("marker")),fill:jk.fill,fillcolor:SXt(),textfont:QHe.layers.symbol.textfont,textposition:QHe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:SS.selected.marker},unselected:{marker:SS.unselected.marker},hoverinfo:rw({},MXt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:AXt()},"calc","nested")});var LJ=Te((Nbr,rWe)=>{"use strict";var LXt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];rWe.exports={isSupportedFont:function(e){return LXt.indexOf(e)!==-1}}});var aWe=Te((Ubr,nWe)=>{"use strict";var Xk=ei(),PJ=lc(),PXt=$v(),zXt=R0(),IXt=D0(),RXt=zm(),iWe=cB(),DXt=LJ().isSupportedFont;nWe.exports=function(t,r,n,i){function a(v,k){return Xk.coerce(t,r,iWe,v,k)}function o(v,k){return Xk.coerce2(t,r,iWe,v,k)}var s=FXt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),PJ.hasMarkers(r)){PXt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var u=r.marker;u.symbol!=="circle"&&(Xk.isArrayOrTypedArray(u.size)&&(u.size=u.size[0]),Xk.isArrayOrTypedArray(u.color)&&(u.color=u.color[0]))}PJ.hasLines(r)&&(zXt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var l=o("cluster.maxzoom"),f=o("cluster.step"),c=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),p=l!==!1||f!==!1||c!==!1||h!==!1||d!==!1,_=a("cluster.enabled",p);if(_||PJ.hasText(r)){var b=i.font.family;IXt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:DXt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&RXt(t,r,n,a),Xk.coerceSelectionMarkerOpacity(r,a)};function FXt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var zJ=Te((Vbr,sWe)=>{"use strict";var oWe=wu();sWe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=oWe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=oWe.tickText(o,o.c2l(s[1]),!0).text,i}});var IJ=Te((Gbr,uWe)=>{"use strict";var lWe=ei();uWe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=lWe.isArrayOrTypedArray(r)?lWe.mean(r):r,s=.5+o/100,u=1.5+o/100,l=["",""],f=[0,0];switch(i){case"top":l[0]="top",f[1]=-u;break;case"bottom":l[0]="bottom",f[1]=u;break}switch(a){case"left":l[1]="right",f[0]=-s;break;case"right":l[1]="left",f[0]=s;break}var c;return l[0]&&l[1]?c=l.join("-"):l[0]?c=l[0]:l[1]?c=l[1]:c="center",{anchor:c,offset:f}}});var vWe=Te((Hbr,pWe)=>{"use strict";var hWe=ku(),lp=ei(),BXt=nf().BADNUM,dB=tx(),fWe=_c(),OXt=Mu(),qXt=S3(),pB=lc(),NXt=LJ().isSupportedFont,UXt=IJ(),VXt=iv().appendArrayPointValue,GXt=Xf().NEWLINES,HXt=Xf().BR_TAG_ALL;pWe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=pB.hasLines(n),s=pB.hasMarkers(n),u=pB.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=hB("fill"),d=hB("line"),p=hB("circle"),_=hB("symbol"),b={fill:h,line:d,circle:p,symbol:_};if(!i)return b;var v;if((a||o)&&(v=dB.calcTraceToLineCoords(r)),a&&(h.geojson=dB.makePolygon(v),h.layout.visibility="visible",lp.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=dB.makeLine(v),d.layout.visibility="visible",lp.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),l){var k=WXt(r);p.geojson=k.geojson,p.layout.visibility="visible",c&&(p.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":DJ(n.cluster.color,n.cluster.step),"circle-radius":DJ(n.cluster.size,n.cluster.step),"circle-opacity":DJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":cWe(n),"text-size":12}}),lp.extendFlat(p.paint,{"circle-color":k.mcc,"circle-radius":k.mrc,"circle-opacity":k.mo})}if(l&&c&&(p.filter=["!",["has","point_count"]]),(f||u)&&(_.geojson=jXt(r,t),lp.extendFlat(_.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(lp.extendFlat(_.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&lp.extendFlat(_.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),_.layout["icon-allow-overlap"]=n.marker.allowoverlap,lp.extendFlat(_.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var E=(n.marker||{}).size,T=UXt(n.textposition,E);lp.extendFlat(_.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":cWe(n)}),lp.extendFlat(_.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function hB(e){return{type:e,geojson:dB.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function WXt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=lp.isArrayOrTypedArray(r.color),a=lp.isArrayOrTypedArray(r.size),o=lp.isArrayOrTypedArray(r.opacity),s;function u(E){return t.opacity*E}function l(E){return E/2}var f;i&&(fWe.hasColorscale(t,"marker")?f=fWe.makeColorScaleFuncFromTrace(r):f=lp.identity);var c;a&&(c=qXt(t));var h;o&&(h=function(E){var T=hWe(E)?+lp.constrain(E,0,1):0;return u(T)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),NXt(s)||(s=r);var u=s.split(", ");return u}});var _We=Te((Wbr,gWe)=>{"use strict";var XXt=ei(),mWe=vWe(),ES=bx().traceLayerPrefix,am={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function yWe(e,t,r,n){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:ES+t+"-fill",line:ES+t+"-line",circle:ES+t+"-circle",symbol:ES+t+"-symbol",cluster:ES+t+"-cluster",clusterCount:ES+t+"-cluster-count"},this.below=null}var Zk=yWe.prototype;Zk.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&XXt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};Zk.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};Zk.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var x=T[L];i.removeLayer(l.layerIds[x])}E||i.removeSource(l.sourceIds.circle)}function h(E){for(var T=am.nonCluster,L=0;L=0;L--){var x=T[L];i.removeLayer(l.layerIds[x]),E||i.removeSource(l.sourceIds[x])}}function p(E){u?c(E):d(E)}function _(E){s?f(E):h(E)}function b(){for(var E=s?am.cluster:am.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};gWe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new yWe(t,n.uid,i,a),s=mWe(t.gd,r),u=o.below=t.belowLookup["trace-"+n.uid],l,f,c;if(i)for(o.addSource("circle",s.circle,n.cluster),l=0;l{"use strict";var ZXt=Xc(),FJ=ei(),YXt=sA(),KXt=FJ.fillText,JXt=nf().BADNUM,$Xt=bx().traceLayerPrefix;function QXt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,u=[],l=$Xt+i.uid+"-circle",f=i.cluster&&i.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[l]});u=c.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function _(M){var m=M.lonlat;if(m[0]===JXt||f&&u.indexOf(M.i+1)===-1)return 1/0;var P=FJ.modHalf(m[0],360),A=m[1],B=s.project([P,A]),F=B.x-a.c2p([p,A]),U=B.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(F*F+U*U)-G,1-3/G)}if(ZXt.getClosest(n,_,e),e.index!==!1){var b=n[e.index],v=b.lonlat,k=[FJ.modHalf(v[0],360)+d,v[1]],E=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=T-L,e.y1=T+L;var x={};x[i.subplot]={_subplot:s};var C=i._module.formatLabels(b,i,x);return e.lonLabel=C.lonLabel,e.latLabel=C.latLabel,e.color=YXt(i,b),e.extraText=xWe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function xWe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=t.lonlat,l=[];function f(c){return c+"\xB0"}return a||o&&s?l.push("("+f(u[1])+", "+f(u[0])+")"):o?l.push(r.lon+f(u[0])):s&&l.push(r.lat+f(u[1])),(a||i.indexOf("text")!==-1)&&KXt(t,e,l),l.join("
")}bWe.exports={hoverPoints:QXt,getExtraText:xWe}});var AWe=Te((Xbr,wWe)=>{"use strict";wWe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var SWe=Te((Zbr,TWe)=>{"use strict";var eZt=ei(),tZt=lc(),rZt=nf().BADNUM;TWe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!tZt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof BJ=="object"&&typeof OJ!="undefined"?OJ.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(BJ,function(){"use strict";var e={},t={};function r(i,a,o){if(t[i]=o,i==="index"){var s="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",u={};return t.shared(u),t.index(e,u),typeof window!="undefined"&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([s],{type:"text/javascript"}))),e}}r("shared",["exports"],function(i){"use strict";function a(I,S,D,X){return new(D||(D=Promise))(function(ie,ve){function we(Mt){try{ut(X.next(Mt))}catch($t){ve($t)}}function We(Mt){try{ut(X.throw(Mt))}catch($t){ve($t)}}function ut(Mt){var $t;Mt.done?ie(Mt.value):($t=Mt.value,$t instanceof D?$t:new D(function(vr){vr($t)})).then(we,We)}ut((X=X.apply(I,S||[])).next())})}function o(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}typeof SuppressedError=="function"&&SuppressedError;var s=u;function u(I,S){this.x=I,this.y=S}u.prototype={clone:function(){return new u(this.x,this.y)},add:function(I){return this.clone()._add(I)},sub:function(I){return this.clone()._sub(I)},multByPoint:function(I){return this.clone()._multByPoint(I)},divByPoint:function(I){return this.clone()._divByPoint(I)},mult:function(I){return this.clone()._mult(I)},div:function(I){return this.clone()._div(I)},rotate:function(I){return this.clone()._rotate(I)},rotateAround:function(I,S){return this.clone()._rotateAround(I,S)},matMult:function(I){return this.clone()._matMult(I)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(I){return this.x===I.x&&this.y===I.y},dist:function(I){return Math.sqrt(this.distSqr(I))},distSqr:function(I){var S=I.x-this.x,D=I.y-this.y;return S*S+D*D},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(I){return Math.atan2(this.y-I.y,this.x-I.x)},angleWith:function(I){return this.angleWithSep(I.x,I.y)},angleWithSep:function(I,S){return Math.atan2(this.x*S-this.y*I,this.x*I+this.y*S)},_matMult:function(I){var S=I[2]*this.x+I[3]*this.y;return this.x=I[0]*this.x+I[1]*this.y,this.y=S,this},_add:function(I){return this.x+=I.x,this.y+=I.y,this},_sub:function(I){return this.x-=I.x,this.y-=I.y,this},_mult:function(I){return this.x*=I,this.y*=I,this},_div:function(I){return this.x/=I,this.y/=I,this},_multByPoint:function(I){return this.x*=I.x,this.y*=I.y,this},_divByPoint:function(I){return this.x/=I.x,this.y/=I.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var I=this.y;return this.y=this.x,this.x=-I,this},_rotate:function(I){var S=Math.cos(I),D=Math.sin(I),X=D*this.x+S*this.y;return this.x=S*this.x-D*this.y,this.y=X,this},_rotateAround:function(I,S){var D=Math.cos(I),X=Math.sin(I),ie=S.y+X*(this.x-S.x)+D*(this.y-S.y);return this.x=S.x+D*(this.x-S.x)-X*(this.y-S.y),this.y=ie,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},u.convert=function(I){return I instanceof u?I:Array.isArray(I)?new u(I[0],I[1]):I};var l=o(s),f=c;function c(I,S,D,X){this.cx=3*I,this.bx=3*(D-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(X-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=S,this.p2x=D,this.p2y=X}c.prototype={sampleCurveX:function(I){return((this.ax*I+this.bx)*I+this.cx)*I},sampleCurveY:function(I){return((this.ay*I+this.by)*I+this.cy)*I},sampleCurveDerivativeX:function(I){return(3*this.ax*I+2*this.bx)*I+this.cx},solveCurveX:function(I,S){if(S===void 0&&(S=1e-6),I<0)return 0;if(I>1)return 1;for(var D=I,X=0;X<8;X++){var ie=this.sampleCurveX(D)-I;if(Math.abs(ie)ie?we=D:We=D,D=.5*(We-we)+we;return D},solve:function(I,S){return this.sampleCurveY(this.solveCurveX(I,S))}};var h=o(f);let d,p;function _(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(p==null&&(p=!1,_())){let S=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(S){for(let X=0;X<5*5;X++){let ie=4*X;S.fillStyle=`rgb(${ie},${ie+1},${ie+2})`,S.fillRect(X%5,Math.floor(X/5),1,1)}let D=S.getImageData(0,0,5,5).data;for(let X=0;X<5*5*4;X++)if(X%4!=3&&D[X]!==X){p=!0;break}}}return p||!1}function v(I,S,D,X){let ie=new h(I,S,D,X);return ve=>ie.solve(ve)}let k=v(.25,.1,.25,1);function E(I,S,D){return Math.min(D,Math.max(S,I))}function T(I,S,D){let X=D-S,ie=((I-S)%X+X)%X+S;return ie===S?D:ie}function L(I,...S){for(let D of S)for(let X in D)I[X]=D[X];return I}let x=1;function C(I,S,D){let X={};for(let ie in I)X[ie]=S.call(this,I[ie],ie,I);return X}function M(I,S,D){let X={};for(let ie in I)S.call(this,I[ie],ie,I)&&(X[ie]=I[ie]);return X}function m(I){return Array.isArray(I)?I.map(m):typeof I=="object"&&I?C(I,m):I}let P={};function A(I){P[I]||(typeof console!="undefined"&&console.warn(I),P[I]=!0)}function B(I,S,D){return(D.y-I.y)*(S.x-I.x)>(S.y-I.y)*(D.x-I.x)}function F(I){return typeof WorkerGlobalScope!="undefined"&&I!==void 0&&I instanceof WorkerGlobalScope}let U=null;function G(I){return typeof ImageBitmap!="undefined"&&I instanceof ImageBitmap}let j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function H(I,S,D,X,ie){return a(this,void 0,void 0,function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let ve=new VideoFrame(I,{timestamp:0});try{let we=ve==null?void 0:ve.format;if(!we||!we.startsWith("BGR")&&!we.startsWith("RGB"))throw new Error(`Unrecognized format ${we}`);let We=we.startsWith("BGR"),ut=new Uint8ClampedArray(X*ie*4);if(yield ve.copyTo(ut,function(Mt,$t,vr,Sr,Br){let Jr=4*Math.max(-$t,0),li=(Math.max(0,vr)-vr)*Sr*4+Jr,Hi=4*Sr,cn=Math.max(0,$t),Za=Math.max(0,vr);return{rect:{x:cn,y:Za,width:Math.min(Mt.width,$t+Sr)-cn,height:Math.min(Mt.height,vr+Br)-Za},layout:[{offset:li,stride:Hi}]}}(I,S,D,X,ie)),We)for(let Mt=0;MtF(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,ke=function(I,S){if(/:\/\//.test(I.url)&&!/^https?:|^file:/.test(I.url)){let X=Pe(I.url);if(X)return X(I,S);if(F(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,targetMapId:Ce},S)}if(!(/^file:/.test(D=I.url)||/^file:/.test(te())&&!/^\w+:/.test(D))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(X,ie){return a(this,void 0,void 0,function*(){let ve=new Request(X.url,{method:X.method||"GET",body:X.body,credentials:X.credentials,headers:X.headers,cache:X.cache,referrer:te(),signal:ie.signal});X.type!=="json"||ve.headers.has("Accept")||ve.headers.set("Accept","application/json");let we=yield fetch(ve);if(!we.ok){let Mt=yield we.blob();throw new de(we.status,we.statusText,X.url,Mt)}let We;We=X.type==="arrayBuffer"||X.type==="image"?we.arrayBuffer():X.type==="json"?we.json():we.text();let ut=yield We;if(ie.signal.aborted)throw ae();return{data:ut,cacheControl:we.headers.get("Cache-Control"),expires:we.headers.get("Expires")}})}(I,S);if(F(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,mustQueue:!0,targetMapId:Ce},S)}var D;return function(X,ie){return new Promise((ve,we)=>{var We;let ut=new XMLHttpRequest;ut.open(X.method||"GET",X.url,!0),X.type!=="arrayBuffer"&&X.type!=="image"||(ut.responseType="arraybuffer");for(let Mt in X.headers)ut.setRequestHeader(Mt,X.headers[Mt]);X.type==="json"&&(ut.responseType="text",!((We=X.headers)===null||We===void 0)&&We.Accept||ut.setRequestHeader("Accept","application/json")),ut.withCredentials=X.credentials==="include",ut.onerror=()=>{we(new Error(ut.statusText))},ut.onload=()=>{if(!ie.signal.aborted)if((ut.status>=200&&ut.status<300||ut.status===0)&&ut.response!==null){let Mt=ut.response;if(X.type==="json")try{Mt=JSON.parse(ut.response)}catch($t){return void we($t)}ve({data:Mt,cacheControl:ut.getResponseHeader("Cache-Control"),expires:ut.getResponseHeader("Expires")})}else{let Mt=new Blob([ut.response],{type:ut.getResponseHeader("Content-Type")});we(new de(ut.status,ut.statusText,X.url,Mt))}},ie.signal.addEventListener("abort",()=>{ut.abort(),we(ae())}),ut.send(X.body)})}(I,S)};function Ee(I){if(!I||I.indexOf("://")<=0||I.indexOf("data:image/")===0||I.indexOf("blob:")===0)return!0;let S=new URL(I),D=window.location;return S.protocol===D.protocol&&S.host===D.host}function Me(I,S,D){D[I]&&D[I].indexOf(S)!==-1||(D[I]=D[I]||[],D[I].push(S))}function Ne(I,S,D){if(D&&D[I]){let X=D[I].indexOf(S);X!==-1&&D[I].splice(X,1)}}class Fe{constructor(S,D={}){L(this,D),this.type=S}}class ye extends Fe{constructor(S,D={}){super("error",L({error:S},D))}}class Ve{on(S,D){return this._listeners=this._listeners||{},Me(S,D,this._listeners),this}off(S,D){return Ne(S,D,this._listeners),Ne(S,D,this._oneTimeListeners),this}once(S,D){return D?(this._oneTimeListeners=this._oneTimeListeners||{},Me(S,D,this._oneTimeListeners),this):new Promise(X=>this.once(S,X))}fire(S,D){typeof S=="string"&&(S=new Fe(S,D||{}));let X=S.type;if(this.listens(X)){S.target=this;let ie=this._listeners&&this._listeners[X]?this._listeners[X].slice():[];for(let We of ie)We.call(this,S);let ve=this._oneTimeListeners&&this._oneTimeListeners[X]?this._oneTimeListeners[X].slice():[];for(let We of ve)Ne(X,We,this._oneTimeListeners),We.call(this,S);let we=this._eventedParent;we&&(L(S,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),we.fire(S))}else S instanceof ye&&console.error(S.error);return this}listens(S){return this._listeners&&this._listeners[S]&&this._listeners[S].length>0||this._oneTimeListeners&&this._oneTimeListeners[S]&&this._oneTimeListeners[S].length>0||this._eventedParent&&this._eventedParent.listens(S)}setEventedParent(S,D){return this._eventedParent=S,this._eventedParentData=D,this}}var ce={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let Ke=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function nt(I,S){let D={};for(let X in I)X!=="ref"&&(D[X]=I[X]);return Ke.forEach(X=>{X in S&&(D[X]=S[X])}),D}function gt(I,S){if(Array.isArray(I)){if(!Array.isArray(S)||I.length!==S.length)return!1;for(let D=0;D`:I.itemType.kind==="value"?"array":`array<${S}>`}return I.kind}let Re=[vt,st,Ue,rt,$e,yr,zt,xe(Yt),br,Ut,Ie];function De(I,S){if(S.kind==="error")return null;if(I.kind==="array"){if(S.kind==="array"&&(S.N===0&&S.itemType.kind==="value"||!De(I.itemType,S.itemType))&&(typeof I.N!="number"||I.N===S.N))return null}else{if(I.kind===S.kind)return null;if(I.kind==="value"){for(let D of Re)if(!De(D,S))return null}}return`Expected ${Oe(I)} but found ${Oe(S)} instead.`}function ct(I,S){return S.some(D=>D.kind===I.kind)}function ge(I,S){return S.some(D=>D==="null"?I===null:D==="array"?Array.isArray(I):D==="object"?I&&!Array.isArray(I)&&typeof I=="object":D===typeof I)}function fe(I,S){return I.kind==="array"&&S.kind==="array"?I.itemType.kind===S.itemType.kind&&typeof I.N=="number":I.kind===S.kind}let pe=.96422,dt=.82521,It=4/29,Pt=6/29,rr=3*Pt*Pt,Hr=Pt*Pt*Pt,Dr=Math.PI/180,Mr=180/Math.PI;function Fr(I){return(I%=360)<0&&(I+=360),I}function di([I,S,D,X]){let ie,ve,we=Ii((.2225045*(I=Di(I))+.7168786*(S=Di(S))+.0606169*(D=Di(D)))/1);I===S&&S===D?ie=ve=we:(ie=Ii((.4360747*I+.3850649*S+.1430804*D)/pe),ve=Ii((.0139322*I+.0971045*S+.7141733*D)/dt));let We=116*we-16;return[We<0?0:We,500*(ie-we),200*(we-ve),X]}function Di(I){return I<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}function Ii(I){return I>Hr?Math.pow(I,1/3):I/rr+It}function Ci([I,S,D,X]){let ie=(I+16)/116,ve=isNaN(S)?ie:ie+S/500,we=isNaN(D)?ie:ie-D/200;return ie=1*ii(ie),ve=pe*ii(ve),we=dt*ii(we),[nn(3.1338561*ve-1.6168667*ie-.4906146*we),nn(-.9787684*ve+1.9161415*ie+.033454*we),nn(.0719453*ve-.2289914*ie+1.4052427*we),X]}function nn(I){return(I=I<=.00304?12.92*I:1.055*Math.pow(I,1/2.4)-.055)<0?0:I>1?1:I}function ii(I){return I>Pt?I*I*I:rr*(I-It)}function wi(I){return parseInt(I.padEnd(2,I),16)/255}function Gi(I,S){return Bt(S?I/100:I,0,1)}function Bt(I,S,D){return Math.min(Math.max(S,I),D)}function yt(I){return!I.some(Number.isNaN)}let Vt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class Wt{constructor(S,D,X,ie=1,ve=!0){this.r=S,this.g=D,this.b=X,this.a=ie,ve||(this.r*=ie,this.g*=ie,this.b*=ie,ie||this.overwriteGetter("rgb",[S,D,X,ie]))}static parse(S){if(S instanceof Wt)return S;if(typeof S!="string")return;let D=function(X){if((X=X.toLowerCase().trim())==="transparent")return[0,0,0,0];let ie=Vt[X];if(ie){let[we,We,ut]=ie;return[we/255,We/255,ut/255,1]}if(X.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(X)){let we=X.length<6?1:2,We=1;return[wi(X.slice(We,We+=we)),wi(X.slice(We,We+=we)),wi(X.slice(We,We+=we)),wi(X.slice(We,We+we)||"ff")]}if(X.startsWith("rgb")){let we=X.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(we){let[We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn,Za]=we,Rn=[$t||" ",Br||" ",Hi].join("");if(Rn===" "||Rn===" /"||Rn===",,"||Rn===",,,"){let La=[Mt,Sr,li].join(""),So=La==="%%%"?100:La===""?255:0;if(So){let kl=[Bt(+ut/So,0,1),Bt(+vr/So,0,1),Bt(+Jr/So,0,1),cn?Gi(+cn,Za):1];if(yt(kl))return kl}}return}}let ve=X.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(ve){let[we,We,ut,Mt,$t,vr,Sr,Br,Jr]=ve,li=[ut||" ",$t||" ",Sr].join("");if(li===" "||li===" /"||li===",,"||li===",,,"){let Hi=[+We,Bt(+Mt,0,100),Bt(+vr,0,100),Br?Gi(+Br,Jr):1];if(yt(Hi))return function([cn,Za,Rn,La]){function So(kl){let mu=(kl+cn/30)%12,Iu=Za*Math.min(Rn,1-Rn);return Rn-Iu*Math.max(-1,Math.min(mu-3,9-mu,1))}return cn=Fr(cn),Za/=100,Rn/=100,[So(0),So(8),So(4),La]}(Hi)}}}(S);return D?new Wt(...D,!1):void 0}get rgb(){let{r:S,g:D,b:X,a:ie}=this,ve=ie||1/0;return this.overwriteGetter("rgb",[S/ve,D/ve,X/ve,ie])}get hcl(){return this.overwriteGetter("hcl",function(S){let[D,X,ie,ve]=di(S),we=Math.sqrt(X*X+ie*ie);return[Math.round(1e4*we)?Fr(Math.atan2(ie,X)*Mr):NaN,we,D,ve]}(this.rgb))}get lab(){return this.overwriteGetter("lab",di(this.rgb))}overwriteGetter(S,D){return Object.defineProperty(this,S,{value:D}),D}toString(){let[S,D,X,ie]=this.rgb;return`rgba(${[S,D,X].map(ve=>Math.round(255*ve)).join(",")},${ie})`}}Wt.black=new Wt(0,0,0,1),Wt.white=new Wt(1,1,1,1),Wt.transparent=new Wt(0,0,0,0),Wt.red=new Wt(1,0,0,1);class _r{constructor(S,D,X){this.sensitivity=S?D?"variant":"case":D?"accent":"base",this.locale=X,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(S,D){return this.collator.compare(S,D)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Lr{constructor(S,D,X,ie,ve){this.text=S,this.image=D,this.scale=X,this.fontStack=ie,this.textColor=ve}}class Ur{constructor(S){this.sections=S}static fromString(S){return new Ur([new Lr(S,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(S=>S.text.length!==0||S.image&&S.image.name.length!==0)}static factory(S){return S instanceof Ur?S:Ur.fromString(S)}toString(){return this.sections.length===0?"":this.sections.map(S=>S.text).join("")}}class Ir{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof Ir)return S;if(typeof S=="number")return new Ir([S,S,S,S]);if(Array.isArray(S)&&!(S.length<1||S.length>4)){for(let D of S)if(typeof D!="number")return;switch(S.length){case 1:S=[S[0],S[0],S[0],S[0]];break;case 2:S=[S[0],S[1],S[0],S[1]];break;case 3:S=[S[0],S[1],S[2],S[1]]}return new Ir(S)}}toString(){return JSON.stringify(this.values)}}let Gr=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class jr{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof jr)return S;if(Array.isArray(S)&&!(S.length<1)&&S.length%2==0){for(let D=0;D=0&&I<=255&&typeof S=="number"&&S>=0&&S<=255&&typeof D=="number"&&D>=0&&D<=255?X===void 0||typeof X=="number"&&X>=0&&X<=1?null:`Invalid rgba value [${[I,S,D,X].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof X=="number"?[I,S,D,X]:[I,S,D]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Vi(I){if(I===null||typeof I=="string"||typeof I=="boolean"||typeof I=="number"||I instanceof Wt||I instanceof _r||I instanceof Ur||I instanceof Ir||I instanceof jr||I instanceof yi)return!0;if(Array.isArray(I)){for(let S of I)if(!Vi(S))return!1;return!0}if(typeof I=="object"){for(let S in I)if(!Vi(I[S]))return!1;return!0}return!1}function ti(I){if(I===null)return vt;if(typeof I=="string")return Ue;if(typeof I=="boolean")return rt;if(typeof I=="number")return st;if(I instanceof Wt)return $e;if(I instanceof _r)return hr;if(I instanceof Ur)return yr;if(I instanceof Ir)return br;if(I instanceof jr)return Ie;if(I instanceof yi)return Ut;if(Array.isArray(I)){let S=I.length,D;for(let X of I){let ie=ti(X);if(D){if(D===ie)continue;D=Yt;break}D=ie}return xe(D||Yt,S)}return zt}function en(I){let S=typeof I;return I===null?"":S==="string"||S==="number"||S==="boolean"?String(I):I instanceof Wt||I instanceof Ur||I instanceof Ir||I instanceof jr||I instanceof yi?I.toString():JSON.stringify(I)}class Yr{constructor(S,D){this.type=S,this.value=D}static parse(S,D){if(S.length!==2)return D.error(`'literal' expression requires exactly one argument, but found ${S.length-1} instead.`);if(!Vi(S[1]))return D.error("invalid value");let X=S[1],ie=ti(X),ve=D.expectedType;return ie.kind!=="array"||ie.N!==0||!ve||ve.kind!=="array"||typeof ve.N=="number"&&ve.N!==0||(ie=ve),new Yr(ie,X)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class oi{constructor(S){this.name="ExpressionEvaluationError",this.message=S}toJSON(){return this.message}}let Bi={string:Ue,number:st,boolean:rt,object:zt};class an{constructor(S,D){this.type=S,this.args=D}static parse(S,D){if(S.length<2)return D.error("Expected at least one argument.");let X,ie=1,ve=S[0];if(ve==="array"){let We,ut;if(S.length>2){let Mt=S[1];if(typeof Mt!="string"||!(Mt in Bi)||Mt==="object")return D.error('The item type argument of "array" must be one of string, number, boolean',1);We=Bi[Mt],ie++}else We=Yt;if(S.length>3){if(S[2]!==null&&(typeof S[2]!="number"||S[2]<0||S[2]!==Math.floor(S[2])))return D.error('The length argument to "array" must be a positive integer literal',2);ut=S[2],ie++}X=xe(We,ut)}else{if(!Bi[ve])throw new Error(`Types doesn't contain name = ${ve}`);X=Bi[ve]}let we=[];for(;ieS.outputDefined())}}let rn={"to-boolean":rt,"to-color":$e,"to-number":st,"to-string":Ue};class Fi{constructor(S,D){this.type=S,this.args=D}static parse(S,D){if(S.length<2)return D.error("Expected at least one argument.");let X=S[0];if(!rn[X])throw new Error(`Can't parse ${X} as it is not part of the known types`);if((X==="to-boolean"||X==="to-string")&&S.length!==2)return D.error("Expected one argument.");let ie=rn[X],ve=[];for(let we=1;we4?`Invalid rbga value ${JSON.stringify(D)}: expected an array containing either three or four numeric values.`:Ei(D[0],D[1],D[2],D[3]),!X))return new Wt(D[0]/255,D[1]/255,D[2]/255,D[3])}throw new oi(X||`Could not parse color from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"padding":{let D;for(let X of this.args){D=X.evaluate(S);let ie=Ir.parse(D);if(ie)return ie}throw new oi(`Could not parse padding from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"variableAnchorOffsetCollection":{let D;for(let X of this.args){D=X.evaluate(S);let ie=jr.parse(D);if(ie)return ie}throw new oi(`Could not parse variableAnchorOffsetCollection from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"number":{let D=null;for(let X of this.args){if(D=X.evaluate(S),D===null)return 0;let ie=Number(D);if(!isNaN(ie))return ie}throw new oi(`Could not convert ${JSON.stringify(D)} to number.`)}case"formatted":return Ur.fromString(en(this.args[0].evaluate(S)));case"resolvedImage":return yi.fromString(en(this.args[0].evaluate(S)));default:return en(this.args[0].evaluate(S))}}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}let Ri=["Unknown","Point","LineString","Polygon"];class xn{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Ri[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(S){let D=this._parseColorCache[S];return D||(D=this._parseColorCache[S]=Wt.parse(S)),D}}class xi{constructor(S,D,X=[],ie,ve=new wt,we=[]){this.registry=S,this.path=X,this.key=X.map(We=>`[${We}]`).join(""),this.scope=ve,this.errors=we,this.expectedType=ie,this._isConstant=D}parse(S,D,X,ie,ve={}){return D?this.concat(D,X,ie)._parse(S,ve):this._parse(S,ve)}_parse(S,D){function X(ie,ve,we){return we==="assert"?new an(ve,[ie]):we==="coerce"?new Fi(ve,[ie]):ie}if(S!==null&&typeof S!="string"&&typeof S!="boolean"&&typeof S!="number"||(S=["literal",S]),Array.isArray(S)){if(S.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let ie=S[0];if(typeof ie!="string")return this.error(`Expression name must be a string, but found ${typeof ie} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let ve=this.registry[ie];if(ve){let we=ve.parse(S,this);if(!we)return null;if(this.expectedType){let We=this.expectedType,ut=we.type;if(We.kind!=="string"&&We.kind!=="number"&&We.kind!=="boolean"&&We.kind!=="object"&&We.kind!=="array"||ut.kind!=="value")if(We.kind!=="color"&&We.kind!=="formatted"&&We.kind!=="resolvedImage"||ut.kind!=="value"&&ut.kind!=="string")if(We.kind!=="padding"||ut.kind!=="value"&&ut.kind!=="number"&&ut.kind!=="array")if(We.kind!=="variableAnchorOffsetCollection"||ut.kind!=="value"&&ut.kind!=="array"){if(this.checkSubtype(We,ut))return null}else we=X(we,We,D.typeAnnotation||"coerce");else we=X(we,We,D.typeAnnotation||"coerce");else we=X(we,We,D.typeAnnotation||"coerce");else we=X(we,We,D.typeAnnotation||"assert")}if(!(we instanceof Yr)&&we.type.kind!=="resolvedImage"&&this._isConstant(we)){let We=new xn;try{we=new Yr(we.type,we.evaluate(We))}catch(ut){return this.error(ut.message),null}}return we}return this.error(`Unknown expression "${ie}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(S===void 0?"'undefined' value invalid. Use null instead.":typeof S=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof S} instead.`)}concat(S,D,X){let ie=typeof S=="number"?this.path.concat(S):this.path,ve=X?this.scope.concat(X):this.scope;return new xi(this.registry,this._isConstant,ie,D||null,ve,this.errors)}error(S,...D){let X=`${this.key}${D.map(ie=>`[${ie}]`).join("")}`;this.errors.push(new at(X,S))}checkSubtype(S,D){let X=De(S,D);return X&&this.error(X),X}}class Xr{constructor(S,D){this.type=D.type,this.bindings=[].concat(S),this.result=D}evaluate(S){return this.result.evaluate(S)}eachChild(S){for(let D of this.bindings)S(D[1]);S(this.result)}static parse(S,D){if(S.length<4)return D.error(`Expected at least 3 arguments, but found ${S.length-1} instead.`);let X=[];for(let ve=1;ve=X.length)throw new oi(`Array index out of bounds: ${D} > ${X.length-1}.`);if(D!==Math.floor(D))throw new oi(`Array index must be an integer, but found ${D} instead.`);return X[D]}eachChild(S){S(this.index),S(this.input)}outputDefined(){return!1}}class pr{constructor(S,D){this.type=rt,this.needle=S,this.haystack=D}static parse(S,D){if(S.length!==3)return D.error(`Expected 2 arguments, but found ${S.length-1} instead.`);let X=D.parse(S[1],1,Yt),ie=D.parse(S[2],2,Yt);return X&&ie?ct(X.type,[rt,Ue,st,vt,Yt])?new pr(X,ie):D.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`):null}evaluate(S){let D=this.needle.evaluate(S),X=this.haystack.evaluate(S);if(!X)return!1;if(!ge(D,["boolean","string","number","null"]))throw new oi(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(ti(D))} instead.`);if(!ge(X,["string","array"]))throw new oi(`Expected second argument to be of type array or string, but found ${Oe(ti(X))} instead.`);return X.indexOf(D)>=0}eachChild(S){S(this.needle),S(this.haystack)}outputDefined(){return!0}}class gr{constructor(S,D,X){this.type=st,this.needle=S,this.haystack=D,this.fromIndex=X}static parse(S,D){if(S.length<=2||S.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let X=D.parse(S[1],1,Yt),ie=D.parse(S[2],2,Yt);if(!X||!ie)return null;if(!ct(X.type,[rt,Ue,st,vt,Yt]))return D.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`);if(S.length===4){let ve=D.parse(S[3],3,st);return ve?new gr(X,ie,ve):null}return new gr(X,ie)}evaluate(S){let D=this.needle.evaluate(S),X=this.haystack.evaluate(S);if(!ge(D,["boolean","string","number","null"]))throw new oi(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(ti(D))} instead.`);let ie;if(this.fromIndex&&(ie=this.fromIndex.evaluate(S)),ge(X,["string"])){let ve=X.indexOf(D,ie);return ve===-1?-1:[...X.slice(0,ve)].length}if(ge(X,["array"]))return X.indexOf(D,ie);throw new oi(`Expected second argument to be of type array or string, but found ${Oe(ti(X))} instead.`)}eachChild(S){S(this.needle),S(this.haystack),this.fromIndex&&S(this.fromIndex)}outputDefined(){return!1}}class Zr{constructor(S,D,X,ie,ve,we){this.inputType=S,this.type=D,this.input=X,this.cases=ie,this.outputs=ve,this.otherwise=we}static parse(S,D){if(S.length<5)return D.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if(S.length%2!=1)return D.error("Expected an even number of arguments.");let X,ie;D.expectedType&&D.expectedType.kind!=="value"&&(ie=D.expectedType);let ve={},we=[];for(let Mt=2;MtNumber.MAX_SAFE_INTEGER)return Sr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Jr=="number"&&Math.floor(Jr)!==Jr)return Sr.error("Numeric branch labels must be integer values.");if(X){if(Sr.checkSubtype(X,ti(Jr)))return null}else X=ti(Jr);if(ve[String(Jr)]!==void 0)return Sr.error("Branch labels must be unique.");ve[String(Jr)]=we.length}let Br=D.parse(vr,Mt,ie);if(!Br)return null;ie=ie||Br.type,we.push(Br)}let We=D.parse(S[1],1,Yt);if(!We)return null;let ut=D.parse(S[S.length-1],S.length-1,ie);return ut?We.type.kind!=="value"&&D.concat(1).checkSubtype(X,We.type)?null:new Zr(X,ie,We,ve,we,ut):null}evaluate(S){let D=this.input.evaluate(S);return(ti(D)===this.inputType&&this.outputs[this.cases[D]]||this.otherwise).evaluate(S)}eachChild(S){S(this.input),this.outputs.forEach(S),S(this.otherwise)}outputDefined(){return this.outputs.every(S=>S.outputDefined())&&this.otherwise.outputDefined()}}class Ai{constructor(S,D,X){this.type=S,this.branches=D,this.otherwise=X}static parse(S,D){if(S.length<4)return D.error(`Expected at least 3 arguments, but found only ${S.length-1}.`);if(S.length%2!=0)return D.error("Expected an odd number of arguments.");let X;D.expectedType&&D.expectedType.kind!=="value"&&(X=D.expectedType);let ie=[];for(let we=1;weD.outputDefined())&&this.otherwise.outputDefined()}}class Qi{constructor(S,D,X,ie){this.type=S,this.input=D,this.beginIndex=X,this.endIndex=ie}static parse(S,D){if(S.length<=2||S.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let X=D.parse(S[1],1,Yt),ie=D.parse(S[2],2,st);if(!X||!ie)return null;if(!ct(X.type,[xe(Yt),Ue,Yt]))return D.error(`Expected first argument to be of type array or string, but found ${Oe(X.type)} instead`);if(S.length===4){let ve=D.parse(S[3],3,st);return ve?new Qi(X.type,X,ie,ve):null}return new Qi(X.type,X,ie)}evaluate(S){let D=this.input.evaluate(S),X=this.beginIndex.evaluate(S),ie;if(this.endIndex&&(ie=this.endIndex.evaluate(S)),ge(D,["string"]))return[...D].slice(X,ie).join("");if(ge(D,["array"]))return D.slice(X,ie);throw new oi(`Expected first argument to be of type array or string, but found ${Oe(ti(D))} instead.`)}eachChild(S){S(this.input),S(this.beginIndex),this.endIndex&&S(this.endIndex)}outputDefined(){return!1}}function ni(I,S){let D=I.length-1,X,ie,ve=0,we=D,We=0;for(;ve<=we;)if(We=Math.floor((ve+we)/2),X=I[We],ie=I[We+1],X<=S){if(We===D||SS))throw new oi("Input is not a number.");we=We-1}return 0}class Zi{constructor(S,D,X){this.type=S,this.input=D,this.labels=[],this.outputs=[];for(let[ie,ve]of X)this.labels.push(ie),this.outputs.push(ve)}static parse(S,D){if(S.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return D.error("Expected an even number of arguments.");let X=D.parse(S[1],1,st);if(!X)return null;let ie=[],ve=null;D.expectedType&&D.expectedType.kind!=="value"&&(ve=D.expectedType);for(let we=1;we=We)return D.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Mt);let vr=D.parse(ut,$t,ve);if(!vr)return null;ve=ve||vr.type,ie.push([We,vr])}return new Zi(ve,X,ie)}evaluate(S){let D=this.labels,X=this.outputs;if(D.length===1)return X[0].evaluate(S);let ie=this.input.evaluate(S);if(ie<=D[0])return X[0].evaluate(S);let ve=D.length;return ie>=D[ve-1]?X[ve-1].evaluate(S):X[ni(D,ie)].evaluate(S)}eachChild(S){S(this.input);for(let D of this.outputs)S(D)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function aa(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}var Mn=Un;function Un(I,S,D,X){this.cx=3*I,this.bx=3*(D-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(X-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=S,this.p2x=D,this.p2y=X}Un.prototype={sampleCurveX:function(I){return((this.ax*I+this.bx)*I+this.cx)*I},sampleCurveY:function(I){return((this.ay*I+this.by)*I+this.cy)*I},sampleCurveDerivativeX:function(I){return(3*this.ax*I+2*this.bx)*I+this.cx},solveCurveX:function(I,S){if(S===void 0&&(S=1e-6),I<0)return 0;if(I>1)return 1;for(var D=I,X=0;X<8;X++){var ie=this.sampleCurveX(D)-I;if(Math.abs(ie)ie?we=D:We=D,D=.5*(We-we)+we;return D},solve:function(I,S){return this.sampleCurveY(this.solveCurveX(I,S))}};var Ga=aa(Mn);function ma(I,S,D){return I+D*(S-I)}function oa(I,S,D){return I.map((X,ie)=>ma(X,S[ie],D))}let ka={number:ma,color:function(I,S,D,X="rgb"){switch(X){case"rgb":{let[ie,ve,we,We]=oa(I.rgb,S.rgb,D);return new Wt(ie,ve,we,We,!1)}case"hcl":{let[ie,ve,we,We]=I.hcl,[ut,Mt,$t,vr]=S.hcl,Sr,Br;if(isNaN(ie)||isNaN(ut))isNaN(ie)?isNaN(ut)?Sr=NaN:(Sr=ut,we!==1&&we!==0||(Br=Mt)):(Sr=ie,$t!==1&&$t!==0||(Br=ve));else{let Za=ut-ie;ut>ie&&Za>180?Za-=360:ut180&&(Za+=360),Sr=ie+D*Za}let[Jr,li,Hi,cn]=function([Za,Rn,La,So]){return Za=isNaN(Za)?0:Za*Dr,Ci([La,Math.cos(Za)*Rn,Math.sin(Za)*Rn,So])}([Sr,Br!=null?Br:ma(ve,Mt,D),ma(we,$t,D),ma(We,vr,D)]);return new Wt(Jr,li,Hi,cn,!1)}case"lab":{let[ie,ve,we,We]=Ci(oa(I.lab,S.lab,D));return new Wt(ie,ve,we,We,!1)}}},array:oa,padding:function(I,S,D){return new Ir(oa(I.values,S.values,D))},variableAnchorOffsetCollection:function(I,S,D){let X=I.values,ie=S.values;if(X.length!==ie.length)throw new oi(`Cannot interpolate values of different length. from: ${I.toString()}, to: ${S.toString()}`);let ve=[];for(let we=0;wetypeof $t!="number"||$t<0||$t>1))return D.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);ie={name:"cubic-bezier",controlPoints:Mt}}}if(S.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return D.error("Expected an even number of arguments.");if(ve=D.parse(ve,2,st),!ve)return null;let We=[],ut=null;X==="interpolate-hcl"||X==="interpolate-lab"?ut=$e:D.expectedType&&D.expectedType.kind!=="value"&&(ut=D.expectedType);for(let Mt=0;Mt=$t)return D.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Sr);let Jr=D.parse(vr,Br,ut);if(!Jr)return null;ut=ut||Jr.type,We.push([$t,Jr])}return fe(ut,st)||fe(ut,$e)||fe(ut,br)||fe(ut,Ie)||fe(ut,xe(st))?new so(ut,X,ie,ve,We):D.error(`Type ${Oe(ut)} is not interpolatable.`)}evaluate(S){let D=this.labels,X=this.outputs;if(D.length===1)return X[0].evaluate(S);let ie=this.input.evaluate(S);if(ie<=D[0])return X[0].evaluate(S);let ve=D.length;if(ie>=D[ve-1])return X[ve-1].evaluate(S);let we=ni(D,ie),We=so.interpolationFactor(this.interpolation,ie,D[we],D[we+1]),ut=X[we].evaluate(S),Mt=X[we+1].evaluate(S);switch(this.operator){case"interpolate":return ka[this.type.kind](ut,Mt,We);case"interpolate-hcl":return ka.color(ut,Mt,We,"hcl");case"interpolate-lab":return ka.color(ut,Mt,We,"lab")}}eachChild(S){S(this.input);for(let D of this.outputs)S(D)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function Kr(I,S,D,X){let ie=X-D,ve=I-D;return ie===0?0:S===1?ve/ie:(Math.pow(S,ve)-1)/(Math.pow(S,ie)-1)}class Ia{constructor(S,D){this.type=S,this.args=D}static parse(S,D){if(S.length<2)return D.error("Expectected at least one argument.");let X=null,ie=D.expectedType;ie&&ie.kind!=="value"&&(X=ie);let ve=[];for(let We of S.slice(1)){let ut=D.parse(We,1+ve.length,X,void 0,{typeAnnotation:"omit"});if(!ut)return null;X=X||ut.type,ve.push(ut)}if(!X)throw new Error("No output type");let we=ie&&ve.some(We=>De(ie,We.type));return new Ia(we?Yt:X,ve)}evaluate(S){let D,X=null,ie=0;for(let ve of this.args)if(ie++,X=ve.evaluate(S),X&&X instanceof yi&&!X.available&&(D||(D=X.name),X=null,ie===this.args.length&&(X=D)),X!==null)break;return X}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}function Yo(I,S){return I==="=="||I==="!="?S.kind==="boolean"||S.kind==="string"||S.kind==="number"||S.kind==="null"||S.kind==="value":S.kind==="string"||S.kind==="number"||S.kind==="value"}function fa(I,S,D,X){return X.compare(S,D)===0}function kn(I,S,D){let X=I!=="=="&&I!=="!=";return class MWe{constructor(ve,we,We){this.type=rt,this.lhs=ve,this.rhs=we,this.collator=We,this.hasUntypedArgument=ve.type.kind==="value"||we.type.kind==="value"}static parse(ve,we){if(ve.length!==3&&ve.length!==4)return we.error("Expected two or three arguments.");let We=ve[0],ut=we.parse(ve[1],1,Yt);if(!ut)return null;if(!Yo(We,ut.type))return we.concat(1).error(`"${We}" comparisons are not supported for type '${Oe(ut.type)}'.`);let Mt=we.parse(ve[2],2,Yt);if(!Mt)return null;if(!Yo(We,Mt.type))return we.concat(2).error(`"${We}" comparisons are not supported for type '${Oe(Mt.type)}'.`);if(ut.type.kind!==Mt.type.kind&&ut.type.kind!=="value"&&Mt.type.kind!=="value")return we.error(`Cannot compare types '${Oe(ut.type)}' and '${Oe(Mt.type)}'.`);X&&(ut.type.kind==="value"&&Mt.type.kind!=="value"?ut=new an(Mt.type,[ut]):ut.type.kind!=="value"&&Mt.type.kind==="value"&&(Mt=new an(ut.type,[Mt])));let $t=null;if(ve.length===4){if(ut.type.kind!=="string"&&Mt.type.kind!=="string"&&ut.type.kind!=="value"&&Mt.type.kind!=="value")return we.error("Cannot use collator to compare non-string types.");if($t=we.parse(ve[3],3,hr),!$t)return null}return new MWe(ut,Mt,$t)}evaluate(ve){let we=this.lhs.evaluate(ve),We=this.rhs.evaluate(ve);if(X&&this.hasUntypedArgument){let ut=ti(we),Mt=ti(We);if(ut.kind!==Mt.kind||ut.kind!=="string"&&ut.kind!=="number")throw new oi(`Expected arguments for "${I}" to be (string, string) or (number, number), but found (${ut.kind}, ${Mt.kind}) instead.`)}if(this.collator&&!X&&this.hasUntypedArgument){let ut=ti(we),Mt=ti(We);if(ut.kind!=="string"||Mt.kind!=="string")return S(ve,we,We)}return this.collator?D(ve,we,We,this.collator.evaluate(ve)):S(ve,we,We)}eachChild(ve){ve(this.lhs),ve(this.rhs),this.collator&&ve(this.collator)}outputDefined(){return!0}}}let Ta=kn("==",function(I,S,D){return S===D},fa),ys=kn("!=",function(I,S,D){return S!==D},function(I,S,D,X){return!fa(0,S,D,X)}),uo=kn("<",function(I,S,D){return S",function(I,S,D){return S>D},function(I,S,D,X){return X.compare(S,D)>0}),$a=kn("<=",function(I,S,D){return S<=D},function(I,S,D,X){return X.compare(S,D)<=0}),fo=kn(">=",function(I,S,D){return S>=D},function(I,S,D,X){return X.compare(S,D)>=0});class mn{constructor(S,D,X){this.type=hr,this.locale=X,this.caseSensitive=S,this.diacriticSensitive=D}static parse(S,D){if(S.length!==2)return D.error("Expected one argument.");let X=S[1];if(typeof X!="object"||Array.isArray(X))return D.error("Collator options argument must be an object.");let ie=D.parse(X["case-sensitive"]!==void 0&&X["case-sensitive"],1,rt);if(!ie)return null;let ve=D.parse(X["diacritic-sensitive"]!==void 0&&X["diacritic-sensitive"],1,rt);if(!ve)return null;let we=null;return X.locale&&(we=D.parse(X.locale,1,Ue),!we)?null:new mn(ie,ve,we)}evaluate(S){return new _r(this.caseSensitive.evaluate(S),this.diacriticSensitive.evaluate(S),this.locale?this.locale.evaluate(S):null)}eachChild(S){S(this.caseSensitive),S(this.diacriticSensitive),this.locale&&S(this.locale)}outputDefined(){return!1}}class ra{constructor(S,D,X,ie,ve){this.type=Ue,this.number=S,this.locale=D,this.currency=X,this.minFractionDigits=ie,this.maxFractionDigits=ve}static parse(S,D){if(S.length!==3)return D.error("Expected two arguments.");let X=D.parse(S[1],1,st);if(!X)return null;let ie=S[2];if(typeof ie!="object"||Array.isArray(ie))return D.error("NumberFormat options argument must be an object.");let ve=null;if(ie.locale&&(ve=D.parse(ie.locale,1,Ue),!ve))return null;let we=null;if(ie.currency&&(we=D.parse(ie.currency,1,Ue),!we))return null;let We=null;if(ie["min-fraction-digits"]&&(We=D.parse(ie["min-fraction-digits"],1,st),!We))return null;let ut=null;return ie["max-fraction-digits"]&&(ut=D.parse(ie["max-fraction-digits"],1,st),!ut)?null:new ra(X,ve,we,We,ut)}evaluate(S){return new Intl.NumberFormat(this.locale?this.locale.evaluate(S):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(S):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(S):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(S):void 0}).format(this.number.evaluate(S))}eachChild(S){S(this.number),this.locale&&S(this.locale),this.currency&&S(this.currency),this.minFractionDigits&&S(this.minFractionDigits),this.maxFractionDigits&&S(this.maxFractionDigits)}outputDefined(){return!1}}class wa{constructor(S){this.type=yr,this.sections=S}static parse(S,D){if(S.length<2)return D.error("Expected at least one argument.");let X=S[1];if(!Array.isArray(X)&&typeof X=="object")return D.error("First argument must be an image or text section.");let ie=[],ve=!1;for(let we=1;we<=S.length-1;++we){let We=S[we];if(ve&&typeof We=="object"&&!Array.isArray(We)){ve=!1;let ut=null;if(We["font-scale"]&&(ut=D.parse(We["font-scale"],1,st),!ut))return null;let Mt=null;if(We["text-font"]&&(Mt=D.parse(We["text-font"],1,xe(Ue)),!Mt))return null;let $t=null;if(We["text-color"]&&($t=D.parse(We["text-color"],1,$e),!$t))return null;let vr=ie[ie.length-1];vr.scale=ut,vr.font=Mt,vr.textColor=$t}else{let ut=D.parse(S[we],1,Yt);if(!ut)return null;let Mt=ut.type.kind;if(Mt!=="string"&&Mt!=="value"&&Mt!=="null"&&Mt!=="resolvedImage")return D.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ve=!0,ie.push({content:ut,scale:null,font:null,textColor:null})}}return new wa(ie)}evaluate(S){return new Ur(this.sections.map(D=>{let X=D.content.evaluate(S);return ti(X)===Ut?new Lr("",X,null,null,null):new Lr(en(X),null,D.scale?D.scale.evaluate(S):null,D.font?D.font.evaluate(S).join(","):null,D.textColor?D.textColor.evaluate(S):null)}))}eachChild(S){for(let D of this.sections)S(D.content),D.scale&&S(D.scale),D.font&&S(D.font),D.textColor&&S(D.textColor)}outputDefined(){return!1}}class ws{constructor(S){this.type=Ut,this.input=S}static parse(S,D){if(S.length!==2)return D.error("Expected two arguments.");let X=D.parse(S[1],1,Ue);return X?new ws(X):D.error("No image name provided.")}evaluate(S){let D=this.input.evaluate(S),X=yi.fromString(D);return X&&S.availableImages&&(X.available=S.availableImages.indexOf(D)>-1),X}eachChild(S){S(this.input)}outputDefined(){return!1}}class Co{constructor(S){this.type=st,this.input=S}static parse(S,D){if(S.length!==2)return D.error(`Expected 1 argument, but found ${S.length-1} instead.`);let X=D.parse(S[1],1);return X?X.type.kind!=="array"&&X.type.kind!=="string"&&X.type.kind!=="value"?D.error(`Expected argument of type string or array, but found ${Oe(X.type)} instead.`):new Co(X):null}evaluate(S){let D=this.input.evaluate(S);if(typeof D=="string")return[...D].length;if(Array.isArray(D))return D.length;throw new oi(`Expected value to be of type string or array, but found ${Oe(ti(D))} instead.`)}eachChild(S){S(this.input)}outputDefined(){return!1}}let Po=8192;function ji(I,S){let D=(180+I[0])/360,X=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+I[1]*Math.PI/360)))/360,ie=Math.pow(2,S.z);return[Math.round(D*ie*Po),Math.round(X*ie*Po)]}function gn(I,S){let D=Math.pow(2,S.z);return[(ie=(I[0]/Po+S.x)/D,360*ie-180),(X=(I[1]/Po+S.y)/D,360/Math.PI*Math.atan(Math.exp((180-360*X)*Math.PI/180))-90)];var X,ie}function Ps(I,S){I[0]=Math.min(I[0],S[0]),I[1]=Math.min(I[1],S[1]),I[2]=Math.max(I[2],S[0]),I[3]=Math.max(I[3],S[1])}function Ha(I,S){return!(I[0]<=S[0]||I[2]>=S[2]||I[1]<=S[1]||I[3]>=S[3])}function Sn(I,S,D){let X=I[0]-S[0],ie=I[1]-S[1],ve=I[0]-D[0],we=I[1]-D[1];return X*we-ve*ie==0&&X*ve<=0&&ie*we<=0}function ao(I,S,D,X){return(ie=[X[0]-D[0],X[1]-D[1]])[0]*(ve=[S[0]-I[0],S[1]-I[1]])[1]-ie[1]*ve[0]!=0&&!(!Qa(I,S,D,X)||!Qa(D,X,I,S));var ie,ve}function Ba(I,S,D){for(let X of D)for(let ie=0;ie(ie=I)[1]!=(we=We[ut+1])[1]>ie[1]&&ie[0]<(we[0]-ve[0])*(ie[1]-ve[1])/(we[1]-ve[1])+ve[0]&&(X=!X)}var ie,ve,we;return X}function Qo(I,S){for(let D of S)if(Ko(I,D))return!0;return!1}function Wi(I,S){for(let D of I)if(!Ko(D,S))return!1;for(let D=0;D0&&We<0||we<0&&We>0}function vn(I,S,D){let X=[];for(let ie=0;ieD[2]){let ie=.5*X,ve=I[0]-D[0]>ie?-X:D[0]-I[0]>ie?X:0;ve===0&&(ve=I[0]-D[2]>ie?-X:D[2]-I[0]>ie?X:0),I[0]+=ve}Ps(S,I)}function vo(I,S,D,X){let ie=Math.pow(2,X.z)*Po,ve=[X.x*Po,X.y*Po],we=[];for(let We of I)for(let ut of We){let Mt=[ut.x+ve[0],ut.y+ve[1]];la(Mt,S,D,ie),we.push(Mt)}return we}function As(I,S,D,X){let ie=Math.pow(2,X.z)*Po,ve=[X.x*Po,X.y*Po],we=[];for(let ut of I){let Mt=[];for(let $t of ut){let vr=[$t.x+ve[0],$t.y+ve[1]];Ps(S,vr),Mt.push(vr)}we.push(Mt)}if(S[2]-S[0]<=ie/2){(We=S)[0]=We[1]=1/0,We[2]=We[3]=-1/0;for(let ut of we)for(let Mt of ut)la(Mt,S,D,ie)}var We;return we}class ps{constructor(S,D){this.type=rt,this.geojson=S,this.geometries=D}static parse(S,D){if(S.length!==2)return D.error(`'within' expression requires exactly one argument, but found ${S.length-1} instead.`);if(Vi(S[1])){let X=S[1];if(X.type==="FeatureCollection"){let ie=[];for(let ve of X.features){let{type:we,coordinates:We}=ve.geometry;we==="Polygon"&&ie.push(We),we==="MultiPolygon"&&ie.push(...We)}if(ie.length)return new ps(X,{type:"MultiPolygon",coordinates:ie})}else if(X.type==="Feature"){let ie=X.geometry.type;if(ie==="Polygon"||ie==="MultiPolygon")return new ps(X,X.geometry)}else if(X.type==="Polygon"||X.type==="MultiPolygon")return new ps(X,X)}return D.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(D,X){let ie=[1/0,1/0,-1/0,-1/0],ve=[1/0,1/0,-1/0,-1/0],we=D.canonicalID();if(X.type==="Polygon"){let We=vn(X.coordinates,ve,we),ut=vo(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Ko(Mt,We))return!1}if(X.type==="MultiPolygon"){let We=da(X.coordinates,ve,we),ut=vo(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Qo(Mt,We))return!1}return!0}(S,this.geometries);if(S.geometryType()==="LineString")return function(D,X){let ie=[1/0,1/0,-1/0,-1/0],ve=[1/0,1/0,-1/0,-1/0],we=D.canonicalID();if(X.type==="Polygon"){let We=vn(X.coordinates,ve,we),ut=As(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Wi(Mt,We))return!1}if(X.type==="MultiPolygon"){let We=da(X.coordinates,ve,we),ut=As(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Sa(Mt,We))return!1}return!0}(S,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let co=class{constructor(I=[],S=(D,X)=>DX?1:0){if(this.data=I,this.length=this.data.length,this.compare=S,this.length>0)for(let D=(this.length>>1)-1;D>=0;D--)this._down(D)}push(I){this.data.push(I),this._up(this.length++)}pop(){if(this.length===0)return;let I=this.data[0],S=this.data.pop();return--this.length>0&&(this.data[0]=S,this._down(0)),I}peek(){return this.data[0]}_up(I){let{data:S,compare:D}=this,X=S[I];for(;I>0;){let ie=I-1>>1,ve=S[ie];if(D(X,ve)>=0)break;S[I]=ve,I=ie}S[I]=X}_down(I){let{data:S,compare:D}=this,X=this.length>>1,ie=S[I];for(;I=0)break;S[I]=S[ve],I=ve}S[I]=ie}};function mo(I,S,D,X,ie){No(I,S,D,X||I.length-1,ie||Go)}function No(I,S,D,X,ie){for(;X>D;){if(X-D>600){var ve=X-D+1,we=S-D+1,We=Math.log(ve),ut=.5*Math.exp(2*We/3),Mt=.5*Math.sqrt(We*ut*(ve-ut)/ve)*(we-ve/2<0?-1:1);No(I,S,Math.max(D,Math.floor(S-we*ut/ve+Mt)),Math.min(X,Math.floor(S+(ve-we)*ut/ve+Mt)),ie)}var $t=I[S],vr=D,Sr=X;for(jn(I,D,S),ie(I[X],$t)>0&&jn(I,D,X);vr0;)Sr--}ie(I[D],$t)===0?jn(I,D,Sr):jn(I,++Sr,X),Sr<=S&&(D=Sr+1),S<=Sr&&(X=Sr-1)}}function jn(I,S,D){var X=I[S];I[S]=I[D],I[D]=X}function Go(I,S){return IS?1:0}function Ys(I,S){if(I.length<=1)return[I];let D=[],X,ie;for(let ve of I){let we=Ns(ve);we!==0&&(ve.area=Math.abs(we),ie===void 0&&(ie=we<0),ie===we<0?(X&&D.push(X),X=[ve]):X.push(ve))}if(X&&D.push(X),S>1)for(let ve=0;ve1?(Mt=S[ut+1][0],$t=S[ut+1][1]):Br>0&&(Mt+=vr/this.kx*Br,$t+=Sr/this.ky*Br)),vr=this.wrap(D[0]-Mt)*this.kx,Sr=(D[1]-$t)*this.ky;let Jr=vr*vr+Sr*Sr;Jr180;)S-=360;return S}}function _n(I,S){return S[0]-I[0]}function Vn(I){return I[1]-I[0]+1}function wo(I,S){return I[1]>=I[0]&&I[1]I[1])return[null,null];let D=Vn(I);if(S){if(D===2)return[I,null];let ie=Math.floor(D/2);return[[I[0],I[0]+ie],[I[0]+ie,I[1]]]}if(D===1)return[I,null];let X=Math.floor(D/2)-1;return[[I[0],I[0]+X],[I[0]+X+1,I[1]]]}function Xn(I,S){if(!wo(S,I.length))return[1/0,1/0,-1/0,-1/0];let D=[1/0,1/0,-1/0,-1/0];for(let X=S[0];X<=S[1];++X)Ps(D,I[X]);return D}function un(I){let S=[1/0,1/0,-1/0,-1/0];for(let D of I)for(let X of D)Ps(S,X);return S}function $n(I){return I[0]!==-1/0&&I[1]!==-1/0&&I[2]!==1/0&&I[3]!==1/0}function Ka(I,S,D){if(!$n(I)||!$n(S))return NaN;let X=0,ie=0;return I[2]S[2]&&(X=I[0]-S[2]),I[1]>S[3]&&(ie=I[1]-S[3]),I[3]=X)return X;if(Ha(ie,ve)){if(es(I,S))return 0}else if(es(S,I))return 0;let we=1/0;for(let We of I)for(let ut=0,Mt=We.length,$t=Mt-1;ut0;){let ut=we.pop();if(ut[0]>=ve)continue;let Mt=ut[1],$t=S?50:100;if(Vn(Mt)<=$t){if(!wo(Mt,I.length))return NaN;if(S){let vr=sa(I,Mt,D,X);if(isNaN(vr)||vr===0)return vr;ve=Math.min(ve,vr)}else for(let vr=Mt[0];vr<=Mt[1];++vr){let Sr=eo(I[vr],D,X);if(ve=Math.min(ve,Sr),ve===0)return 0}}else{let vr=Ra(Mt,S);tn(we,ve,X,I,We,vr[0]),tn(we,ve,X,I,We,vr[1])}}return ve}function yo(I,S,D,X,ie,ve=1/0){let we=Math.min(ve,ie.distance(I[0],D[0]));if(we===0)return we;let We=new co([[0,[0,I.length-1],[0,D.length-1]]],_n);for(;We.length>0;){let ut=We.pop();if(ut[0]>=we)continue;let Mt=ut[1],$t=ut[2],vr=S?50:100,Sr=X?50:100;if(Vn(Mt)<=vr&&Vn($t)<=Sr){if(!wo(Mt,I.length)&&wo($t,D.length))return NaN;let Br;if(S&&X)Br=Ja(I,Mt,D,$t,ie),we=Math.min(we,Br);else if(S&&!X){let Jr=I.slice(Mt[0],Mt[1]+1);for(let li=$t[0];li<=$t[1];++li)if(Br=qn(D[li],Jr,ie),we=Math.min(we,Br),we===0)return we}else if(!S&&X){let Jr=D.slice($t[0],$t[1]+1);for(let li=Mt[0];li<=Mt[1];++li)if(Br=qn(I[li],Jr,ie),we=Math.min(we,Br),we===0)return we}else Br=lo(I,Mt,D,$t,ie),we=Math.min(we,Br)}else{let Br=Ra(Mt,S),Jr=Ra($t,X);Pa(We,we,ie,I,D,Br[0],Jr[0]),Pa(We,we,ie,I,D,Br[0],Jr[1]),Pa(We,we,ie,I,D,Br[1],Jr[0]),Pa(We,we,ie,I,D,Br[1],Jr[1])}}return we}function Jo(I){return I.type==="MultiPolygon"?I.coordinates.map(S=>({type:"Polygon",coordinates:S})):I.type==="MultiLineString"?I.coordinates.map(S=>({type:"LineString",coordinates:S})):I.type==="MultiPoint"?I.coordinates.map(S=>({type:"Point",coordinates:S})):[I]}class Ao{constructor(S,D){this.type=st,this.geojson=S,this.geometries=D}static parse(S,D){if(S.length!==2)return D.error(`'distance' expression requires exactly one argument, but found ${S.length-1} instead.`);if(Vi(S[1])){let X=S[1];if(X.type==="FeatureCollection")return new Ao(X,X.features.map(ie=>Jo(ie.geometry)).flat());if(X.type==="Feature")return new Ao(X,Jo(X.geometry));if("type"in X&&"coordinates"in X)return new Ao(X,Jo(X))}return D.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(D,X){let ie=D.geometry(),ve=ie.flat().map(ut=>gn([ut.x,ut.y],D.canonical));if(ie.length===0)return NaN;let we=new Ya(ve[0][1]),We=1/0;for(let ut of X){switch(ut.type){case"Point":We=Math.min(We,yo(ve,!1,[ut.coordinates],!1,we,We));break;case"LineString":We=Math.min(We,yo(ve,!1,ut.coordinates,!0,we,We));break;case"Polygon":We=Math.min(We,to(ve,!1,ut.coordinates,we,We))}if(We===0)return We}return We}(S,this.geometries);if(S.geometryType()==="LineString")return function(D,X){let ie=D.geometry(),ve=ie.flat().map(ut=>gn([ut.x,ut.y],D.canonical));if(ie.length===0)return NaN;let we=new Ya(ve[0][1]),We=1/0;for(let ut of X){switch(ut.type){case"Point":We=Math.min(We,yo(ve,!0,[ut.coordinates],!1,we,We));break;case"LineString":We=Math.min(We,yo(ve,!0,ut.coordinates,!0,we,We));break;case"Polygon":We=Math.min(We,to(ve,!0,ut.coordinates,we,We))}if(We===0)return We}return We}(S,this.geometries);if(S.geometryType()==="Polygon")return function(D,X){let ie=D.geometry();if(ie.length===0||ie[0].length===0)return NaN;let ve=Ys(ie,0).map(ut=>ut.map(Mt=>Mt.map($t=>gn([$t.x,$t.y],D.canonical)))),we=new Ya(ve[0][0][0][1]),We=1/0;for(let ut of X)for(let Mt of ve){switch(ut.type){case"Point":We=Math.min(We,to([ut.coordinates],!1,Mt,we,We));break;case"LineString":We=Math.min(We,to(ut.coordinates,!0,Mt,we,We));break;case"Polygon":We=Math.min(We,Na(Mt,ut.coordinates,we,We))}if(We===0)return We}return We}(S,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let Dn={"==":Ta,"!=":ys,">":ls,"<":uo,">=":fo,"<=":$a,array:an,at:tr,boolean:an,case:Ai,coalesce:Ia,collator:mn,format:wa,image:ws,in:pr,"index-of":gr,interpolate:so,"interpolate-hcl":so,"interpolate-lab":so,length:Co,let:Xr,literal:Yr,match:Zr,number:an,"number-format":ra,object:an,slice:Qi,step:Zi,string:an,"to-boolean":Fi,"to-color":Fi,"to-number":Fi,"to-string":Fi,var:ft,within:ps,distance:Ao};class _a{constructor(S,D,X,ie){this.name=S,this.type=D,this._evaluate=X,this.args=ie}evaluate(S){return this._evaluate(S,this.args)}eachChild(S){this.args.forEach(S)}outputDefined(){return!1}static parse(S,D){let X=S[0],ie=_a.definitions[X];if(!ie)return D.error(`Unknown expression "${X}". If you wanted a literal array, use ["literal", [...]].`,0);let ve=Array.isArray(ie)?ie[0]:ie.type,we=Array.isArray(ie)?[[ie[1],ie[2]]]:ie.overloads,We=we.filter(([Mt])=>!Array.isArray(Mt)||Mt.length===S.length-1),ut=null;for(let[Mt,$t]of We){ut=new xi(D.registry,Ho,D.path,null,D.scope);let vr=[],Sr=!1;for(let Br=1;Br{return Sr=vr,Array.isArray(Sr)?`(${Sr.map(Oe).join(", ")})`:`(${Oe(Sr.type)}...)`;var Sr}).join(" | "),$t=[];for(let vr=1;vr{D=S?D&&Ho(X):D&&X instanceof Yr}),!!D&&Wa(I)&&ts(I,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Wa(I){if(I instanceof _a&&(I.name==="get"&&I.args.length===1||I.name==="feature-state"||I.name==="has"&&I.args.length===1||I.name==="properties"||I.name==="geometry-type"||I.name==="id"||/^filter-/.test(I.name))||I instanceof ps||I instanceof Ao)return!1;let S=!0;return I.eachChild(D=>{S&&!Wa(D)&&(S=!1)}),S}function To(I){if(I instanceof _a&&I.name==="feature-state")return!1;let S=!0;return I.eachChild(D=>{S&&!To(D)&&(S=!1)}),S}function ts(I,S){if(I instanceof _a&&S.indexOf(I.name)>=0)return!1;let D=!0;return I.eachChild(X=>{D&&!ts(X,S)&&(D=!1)}),D}function Wo(I){return{result:"success",value:I}}function qa(I){return{result:"error",value:I}}function ln(I){return I["property-type"]==="data-driven"||I["property-type"]==="cross-faded-data-driven"}function Bo(I){return!!I.expression&&I.expression.parameters.indexOf("zoom")>-1}function ko(I){return!!I.expression&&I.expression.interpolated}function oo(I){return I instanceof Number?"number":I instanceof String?"string":I instanceof Boolean?"boolean":Array.isArray(I)?"array":I===null?"null":typeof I}function za(I){return typeof I=="object"&&I!==null&&!Array.isArray(I)}function ea(I){return I}function rs(I,S){let D=S.type==="color",X=I.stops&&typeof I.stops[0][0]=="object",ie=X||!(X||I.property!==void 0),ve=I.type||(ko(S)?"exponential":"interval");if(D||S.type==="padding"){let $t=D?Wt.parse:Ir.parse;(I=Ae({},I)).stops&&(I.stops=I.stops.map(vr=>[vr[0],$t(vr[1])])),I.default=$t(I.default?I.default:S.default)}if(I.colorSpace&&(we=I.colorSpace)!=="rgb"&&we!=="hcl"&&we!=="lab")throw new Error(`Unknown color space: "${I.colorSpace}"`);var we;let We,ut,Mt;if(ve==="exponential")We=fl;else if(ve==="interval")We=Ds;else if(ve==="categorical"){We=us,ut=Object.create(null);for(let $t of I.stops)ut[$t[0]]=$t[1];Mt=typeof I.stops[0][0]}else{if(ve!=="identity")throw new Error(`Unknown function type "${ve}"`);We=as}if(X){let $t={},vr=[];for(let Jr=0;JrJr[0]),evaluate:({zoom:Jr},li)=>fl({stops:Sr,base:I.base},S,Jr).evaluate(Jr,li)}}if(ie){let $t=ve==="exponential"?{name:"exponential",base:I.base!==void 0?I.base:1}:null;return{kind:"camera",interpolationType:$t,interpolationFactor:so.interpolationFactor.bind(void 0,$t),zoomStops:I.stops.map(vr=>vr[0]),evaluate:({zoom:vr})=>We(I,S,vr,ut,Mt)}}return{kind:"source",evaluate($t,vr){let Sr=vr&&vr.properties?vr.properties[I.property]:void 0;return Sr===void 0?$s(I.default,S.default):We(I,S,Sr,ut,Mt)}}}function $s(I,S,D){return I!==void 0?I:S!==void 0?S:D!==void 0?D:void 0}function us(I,S,D,X,ie){return $s(typeof D===ie?X[D]:void 0,I.default,S.default)}function Ds(I,S,D){if(oo(D)!=="number")return $s(I.default,S.default);let X=I.stops.length;if(X===1||D<=I.stops[0][0])return I.stops[0][1];if(D>=I.stops[X-1][0])return I.stops[X-1][1];let ie=ni(I.stops.map(ve=>ve[0]),D);return I.stops[ie][1]}function fl(I,S,D){let X=I.base!==void 0?I.base:1;if(oo(D)!=="number")return $s(I.default,S.default);let ie=I.stops.length;if(ie===1||D<=I.stops[0][0])return I.stops[0][1];if(D>=I.stops[ie-1][0])return I.stops[ie-1][1];let ve=ni(I.stops.map($t=>$t[0]),D),we=function($t,vr,Sr,Br){let Jr=Br-Sr,li=$t-Sr;return Jr===0?0:vr===1?li/Jr:(Math.pow(vr,li)-1)/(Math.pow(vr,Jr)-1)}(D,X,I.stops[ve][0],I.stops[ve+1][0]),We=I.stops[ve][1],ut=I.stops[ve+1][1],Mt=ka[S.type]||ea;return typeof We.evaluate=="function"?{evaluate(...$t){let vr=We.evaluate.apply(void 0,$t),Sr=ut.evaluate.apply(void 0,$t);if(vr!==void 0&&Sr!==void 0)return Mt(vr,Sr,we,I.colorSpace)}}:Mt(We,ut,we,I.colorSpace)}function as(I,S,D){switch(S.type){case"color":D=Wt.parse(D);break;case"formatted":D=Ur.fromString(D.toString());break;case"resolvedImage":D=yi.fromString(D.toString());break;case"padding":D=Ir.parse(D);break;default:oo(D)===S.type||S.type==="enum"&&S.values[D]||(D=void 0)}return $s(D,I.default,S.default)}_a.register(Dn,{error:[{kind:"error"},[Ue],(I,[S])=>{throw new oi(S.evaluate(I))}],typeof:[Ue,[Yt],(I,[S])=>Oe(ti(S.evaluate(I)))],"to-rgba":[xe(st,4),[$e],(I,[S])=>{let[D,X,ie,ve]=S.evaluate(I).rgb;return[255*D,255*X,255*ie,ve]}],rgb:[$e,[st,st,st],Ws],rgba:[$e,[st,st,st,st],Ws],has:{type:rt,overloads:[[[Ue],(I,[S])=>Ca(S.evaluate(I),I.properties())],[[Ue,zt],(I,[S,D])=>Ca(S.evaluate(I),D.evaluate(I))]]},get:{type:Yt,overloads:[[[Ue],(I,[S])=>Es(S.evaluate(I),I.properties())],[[Ue,zt],(I,[S,D])=>Es(S.evaluate(I),D.evaluate(I))]]},"feature-state":[Yt,[Ue],(I,[S])=>Es(S.evaluate(I),I.featureState||{})],properties:[zt,[],I=>I.properties()],"geometry-type":[Ue,[],I=>I.geometryType()],id:[Yt,[],I=>I.id()],zoom:[st,[],I=>I.globals.zoom],"heatmap-density":[st,[],I=>I.globals.heatmapDensity||0],"line-progress":[st,[],I=>I.globals.lineProgress||0],accumulated:[Yt,[],I=>I.globals.accumulated===void 0?null:I.globals.accumulated],"+":[st,Ts(st),(I,S)=>{let D=0;for(let X of S)D+=X.evaluate(I);return D}],"*":[st,Ts(st),(I,S)=>{let D=1;for(let X of S)D*=X.evaluate(I);return D}],"-":{type:st,overloads:[[[st,st],(I,[S,D])=>S.evaluate(I)-D.evaluate(I)],[[st],(I,[S])=>-S.evaluate(I)]]},"/":[st,[st,st],(I,[S,D])=>S.evaluate(I)/D.evaluate(I)],"%":[st,[st,st],(I,[S,D])=>S.evaluate(I)%D.evaluate(I)],ln2:[st,[],()=>Math.LN2],pi:[st,[],()=>Math.PI],e:[st,[],()=>Math.E],"^":[st,[st,st],(I,[S,D])=>Math.pow(S.evaluate(I),D.evaluate(I))],sqrt:[st,[st],(I,[S])=>Math.sqrt(S.evaluate(I))],log10:[st,[st],(I,[S])=>Math.log(S.evaluate(I))/Math.LN10],ln:[st,[st],(I,[S])=>Math.log(S.evaluate(I))],log2:[st,[st],(I,[S])=>Math.log(S.evaluate(I))/Math.LN2],sin:[st,[st],(I,[S])=>Math.sin(S.evaluate(I))],cos:[st,[st],(I,[S])=>Math.cos(S.evaluate(I))],tan:[st,[st],(I,[S])=>Math.tan(S.evaluate(I))],asin:[st,[st],(I,[S])=>Math.asin(S.evaluate(I))],acos:[st,[st],(I,[S])=>Math.acos(S.evaluate(I))],atan:[st,[st],(I,[S])=>Math.atan(S.evaluate(I))],min:[st,Ts(st),(I,S)=>Math.min(...S.map(D=>D.evaluate(I)))],max:[st,Ts(st),(I,S)=>Math.max(...S.map(D=>D.evaluate(I)))],abs:[st,[st],(I,[S])=>Math.abs(S.evaluate(I))],round:[st,[st],(I,[S])=>{let D=S.evaluate(I);return D<0?-Math.round(-D):Math.round(D)}],floor:[st,[st],(I,[S])=>Math.floor(S.evaluate(I))],ceil:[st,[st],(I,[S])=>Math.ceil(S.evaluate(I))],"filter-==":[rt,[Ue,Yt],(I,[S,D])=>I.properties()[S.value]===D.value],"filter-id-==":[rt,[Yt],(I,[S])=>I.id()===S.value],"filter-type-==":[rt,[Ue],(I,[S])=>I.geometryType()===S.value],"filter-<":[rt,[Ue,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X{let D=I.id(),X=S.value;return typeof D==typeof X&&D":[rt,[Ue,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X>ie}],"filter-id->":[rt,[Yt],(I,[S])=>{let D=I.id(),X=S.value;return typeof D==typeof X&&D>X}],"filter-<=":[rt,[Ue,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X<=ie}],"filter-id-<=":[rt,[Yt],(I,[S])=>{let D=I.id(),X=S.value;return typeof D==typeof X&&D<=X}],"filter->=":[rt,[Ue,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X>=ie}],"filter-id->=":[rt,[Yt],(I,[S])=>{let D=I.id(),X=S.value;return typeof D==typeof X&&D>=X}],"filter-has":[rt,[Yt],(I,[S])=>S.value in I.properties()],"filter-has-id":[rt,[],I=>I.id()!==null&&I.id()!==void 0],"filter-type-in":[rt,[xe(Ue)],(I,[S])=>S.value.indexOf(I.geometryType())>=0],"filter-id-in":[rt,[xe(Yt)],(I,[S])=>S.value.indexOf(I.id())>=0],"filter-in-small":[rt,[Ue,xe(Yt)],(I,[S,D])=>D.value.indexOf(I.properties()[S.value])>=0],"filter-in-large":[rt,[Ue,xe(Yt)],(I,[S,D])=>function(X,ie,ve,we){for(;ve<=we;){let We=ve+we>>1;if(ie[We]===X)return!0;ie[We]>X?we=We-1:ve=We+1}return!1}(I.properties()[S.value],D.value,0,D.value.length-1)],all:{type:rt,overloads:[[[rt,rt],(I,[S,D])=>S.evaluate(I)&&D.evaluate(I)],[Ts(rt),(I,S)=>{for(let D of S)if(!D.evaluate(I))return!1;return!0}]]},any:{type:rt,overloads:[[[rt,rt],(I,[S,D])=>S.evaluate(I)||D.evaluate(I)],[Ts(rt),(I,S)=>{for(let D of S)if(D.evaluate(I))return!0;return!1}]]},"!":[rt,[rt],(I,[S])=>!S.evaluate(I)],"is-supported-script":[rt,[Ue],(I,[S])=>{let D=I.globals&&I.globals.isSupportedScript;return!D||D(S.evaluate(I))}],upcase:[Ue,[Ue],(I,[S])=>S.evaluate(I).toUpperCase()],downcase:[Ue,[Ue],(I,[S])=>S.evaluate(I).toLowerCase()],concat:[Ue,Ts(Yt),(I,S)=>S.map(D=>en(D.evaluate(I))).join("")],"resolved-locale":[Ue,[hr],(I,[S])=>S.evaluate(I).resolvedLocale()]});class Ma{constructor(S,D){var X;this.expression=S,this._warningHistory={},this._evaluator=new xn,this._defaultValue=D?(X=D).type==="color"&&za(X.default)?new Wt(0,0,0,0):X.type==="color"?Wt.parse(X.default)||null:X.type==="padding"?Ir.parse(X.default)||null:X.type==="variableAnchorOffsetCollection"?jr.parse(X.default)||null:X.default===void 0?null:X.default:null,this._enumValues=D&&D.type==="enum"?D.values:null}evaluateWithoutErrorHandling(S,D,X,ie,ve,we){return this._evaluator.globals=S,this._evaluator.feature=D,this._evaluator.featureState=X,this._evaluator.canonical=ie,this._evaluator.availableImages=ve||null,this._evaluator.formattedSection=we,this.expression.evaluate(this._evaluator)}evaluate(S,D,X,ie,ve,we){this._evaluator.globals=S,this._evaluator.feature=D||null,this._evaluator.featureState=X||null,this._evaluator.canonical=ie,this._evaluator.availableImages=ve||null,this._evaluator.formattedSection=we||null;try{let We=this.expression.evaluate(this._evaluator);if(We==null||typeof We=="number"&&We!=We)return this._defaultValue;if(this._enumValues&&!(We in this._enumValues))throw new oi(`Expected value to be one of ${Object.keys(this._enumValues).map(ut=>JSON.stringify(ut)).join(", ")}, but found ${JSON.stringify(We)} instead.`);return We}catch(We){return this._warningHistory[We.message]||(this._warningHistory[We.message]=!0,typeof console!="undefined"&&console.warn(We.message)),this._defaultValue}}}function Qs(I){return Array.isArray(I)&&I.length>0&&typeof I[0]=="string"&&I[0]in Dn}function ho(I,S){let D=new xi(Dn,Ho,[],S?function(ie){let ve={color:$e,string:Ue,number:st,enum:Ue,boolean:rt,formatted:yr,padding:br,resolvedImage:Ut,variableAnchorOffsetCollection:Ie};return ie.type==="array"?xe(ve[ie.value]||Yt,ie.length):ve[ie.type]}(S):void 0),X=D.parse(I,void 0,void 0,void 0,S&&S.type==="string"?{typeAnnotation:"coerce"}:void 0);return X?Wo(new Ma(X,S)):qa(D.errors)}class gs{constructor(S,D){this.kind=S,this._styleExpression=D,this.isStateDependent=S!=="constant"&&!To(D.expression)}evaluateWithoutErrorHandling(S,D,X,ie,ve,we){return this._styleExpression.evaluateWithoutErrorHandling(S,D,X,ie,ve,we)}evaluate(S,D,X,ie,ve,we){return this._styleExpression.evaluate(S,D,X,ie,ve,we)}}class Vo{constructor(S,D,X,ie){this.kind=S,this.zoomStops=X,this._styleExpression=D,this.isStateDependent=S!=="camera"&&!To(D.expression),this.interpolationType=ie}evaluateWithoutErrorHandling(S,D,X,ie,ve,we){return this._styleExpression.evaluateWithoutErrorHandling(S,D,X,ie,ve,we)}evaluate(S,D,X,ie,ve,we){return this._styleExpression.evaluate(S,D,X,ie,ve,we)}interpolationFactor(S,D,X){return this.interpolationType?so.interpolationFactor(this.interpolationType,S,D,X):0}}function Do(I,S){let D=ho(I,S);if(D.result==="error")return D;let X=D.value.expression,ie=Wa(X);if(!ie&&!ln(S))return qa([new at("","data expressions not supported")]);let ve=ts(X,["zoom"]);if(!ve&&!Bo(S))return qa([new at("","zoom expressions not supported")]);let we=xs(X);return we||ve?we instanceof at?qa([we]):we instanceof so&&!ko(S)?qa([new at("",'"interpolate" expressions cannot be used with this property')]):Wo(we?new Vo(ie?"camera":"composite",D.value,we.labels,we instanceof so?we.interpolation:void 0):new gs(ie?"constant":"source",D.value)):qa([new at("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Lo{constructor(S,D){this._parameters=S,this._specification=D,Ae(this,rs(this._parameters,this._specification))}static deserialize(S){return new Lo(S._parameters,S._specification)}static serialize(S){return{_parameters:S._parameters,_specification:S._specification}}}function xs(I){let S=null;if(I instanceof Xr)S=xs(I.result);else if(I instanceof Ia){for(let D of I.args)if(S=xs(D),S)break}else(I instanceof Zi||I instanceof so)&&I.input instanceof _a&&I.input.name==="zoom"&&(S=I);return S instanceof at||I.eachChild(D=>{let X=xs(D);X instanceof at?S=X:!S&&X?S=new at("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):S&&X&&S!==X&&(S=new at("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),S}function ks(I){if(I===!0||I===!1)return!0;if(!Array.isArray(I)||I.length===0)return!1;switch(I[0]){case"has":return I.length>=2&&I[1]!=="$id"&&I[1]!=="$type";case"in":return I.length>=3&&(typeof I[1]!="string"||Array.isArray(I[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return I.length!==3||Array.isArray(I[1])||Array.isArray(I[2]);case"any":case"all":for(let S of I.slice(1))if(!ks(S)&&typeof S!="boolean")return!1;return!0;default:return!0}}let Ea={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Jn(I){if(I==null)return{filter:()=>!0,needGeometry:!1};ks(I)||(I=Gs(I));let S=ho(I,Ea);if(S.result==="error")throw new Error(S.value.map(D=>`${D.key}: ${D.message}`).join(", "));return{filter:(D,X,ie)=>S.value.evaluate(D,X,{},ie),needGeometry:rl(I)}}function Oo(I,S){return IS?1:0}function rl(I){if(!Array.isArray(I))return!1;if(I[0]==="within"||I[0]==="distance")return!0;for(let S=1;S"||S==="<="||S===">="?bs(I[1],I[2],S):S==="any"?(D=I.slice(1),["any"].concat(D.map(Gs))):S==="all"?["all"].concat(I.slice(1).map(Gs)):S==="none"?["all"].concat(I.slice(1).map(Gs).map(Aa)):S==="in"?zs(I[1],I.slice(2)):S==="!in"?Aa(zs(I[1],I.slice(2))):S==="has"?$o(I[1]):S!=="!has"||Aa($o(I[1]));var D}function bs(I,S,D){switch(I){case"$type":return[`filter-type-${D}`,S];case"$id":return[`filter-id-${D}`,S];default:return[`filter-${D}`,I,S]}}function zs(I,S){if(S.length===0)return!1;switch(I){case"$type":return["filter-type-in",["literal",S]];case"$id":return["filter-id-in",["literal",S]];default:return S.length>200&&!S.some(D=>typeof D!=typeof S[0])?["filter-in-large",I,["literal",S.sort(Oo)]]:["filter-in-small",I,["literal",S]]}}function $o(I){switch(I){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",I]}}function Aa(I){return["!",I]}function os(I){let S=typeof I;if(S==="number"||S==="boolean"||S==="string"||I==null)return JSON.stringify(I);if(Array.isArray(I)){let ie="[";for(let ve of I)ie+=`${os(ve)},`;return`${ie}]`}let D=Object.keys(I).sort(),X="{";for(let ie=0;ieX.maximum?[new Et(S,D,`${D} is greater than the maximum value ${X.maximum}`)]:[]}function io(I){let S=I.valueSpec,D=po(I.value.type),X,ie,ve,we={},We=D!=="categorical"&&I.value.property===void 0,ut=!We,Mt=oo(I.value.stops)==="array"&&oo(I.value.stops[0])==="array"&&oo(I.value.stops[0][0])==="object",$t=ss({key:I.key,value:I.value,valueSpec:I.styleSpec.function,validateSpec:I.validateSpec,style:I.style,styleSpec:I.styleSpec,objectElementValidators:{stops:function(Br){if(D==="identity")return[new Et(Br.key,Br.value,'identity function may not have a "stops" property')];let Jr=[],li=Br.value;return Jr=Jr.concat(qo({key:Br.key,value:li,valueSpec:Br.valueSpec,validateSpec:Br.validateSpec,style:Br.style,styleSpec:Br.styleSpec,arrayElementValidator:vr})),oo(li)==="array"&&li.length===0&&Jr.push(new Et(Br.key,li,"array must have at least one stop")),Jr},default:function(Br){return Br.validateSpec({key:Br.key,value:Br.value,valueSpec:S,validateSpec:Br.validateSpec,style:Br.style,styleSpec:Br.styleSpec})}}});return D==="identity"&&We&&$t.push(new Et(I.key,I.value,'missing required property "property"')),D==="identity"||I.value.stops||$t.push(new Et(I.key,I.value,'missing required property "stops"')),D==="exponential"&&I.valueSpec.expression&&!ko(I.valueSpec)&&$t.push(new Et(I.key,I.value,"exponential functions not supported")),I.styleSpec.$version>=8&&(ut&&!ln(I.valueSpec)?$t.push(new Et(I.key,I.value,"property functions not supported")):We&&!Bo(I.valueSpec)&&$t.push(new Et(I.key,I.value,"zoom functions not supported"))),D!=="categorical"&&!Mt||I.value.property!==void 0||$t.push(new Et(I.key,I.value,'"property" property is required')),$t;function vr(Br){let Jr=[],li=Br.value,Hi=Br.key;if(oo(li)!=="array")return[new Et(Hi,li,`array expected, ${oo(li)} found`)];if(li.length!==2)return[new Et(Hi,li,`array length 2 expected, length ${li.length} found`)];if(Mt){if(oo(li[0])!=="object")return[new Et(Hi,li,`object expected, ${oo(li[0])} found`)];if(li[0].zoom===void 0)return[new Et(Hi,li,"object stop key must have zoom")];if(li[0].value===void 0)return[new Et(Hi,li,"object stop key must have value")];if(ve&&ve>po(li[0].zoom))return[new Et(Hi,li[0].zoom,"stop zoom values must appear in ascending order")];po(li[0].zoom)!==ve&&(ve=po(li[0].zoom),ie=void 0,we={}),Jr=Jr.concat(ss({key:`${Hi}[0]`,value:li[0],valueSpec:{zoom:{}},validateSpec:Br.validateSpec,style:Br.style,styleSpec:Br.styleSpec,objectElementValidators:{zoom:zo,value:Sr}}))}else Jr=Jr.concat(Sr({key:`${Hi}[0]`,value:li[0],valueSpec:{},validateSpec:Br.validateSpec,style:Br.style,styleSpec:Br.styleSpec},li));return Qs(go(li[1]))?Jr.concat([new Et(`${Hi}[1]`,li[1],"expressions are not allowed in function stops.")]):Jr.concat(Br.validateSpec({key:`${Hi}[1]`,value:li[1],valueSpec:S,validateSpec:Br.validateSpec,style:Br.style,styleSpec:Br.styleSpec}))}function Sr(Br,Jr){let li=oo(Br.value),Hi=po(Br.value),cn=Br.value!==null?Br.value:Jr;if(X){if(li!==X)return[new Et(Br.key,cn,`${li} stop domain type must match previous stop domain type ${X}`)]}else X=li;if(li!=="number"&&li!=="string"&&li!=="boolean")return[new Et(Br.key,cn,"stop domain value must be a number, string, or boolean")];if(li!=="number"&&D!=="categorical"){let Za=`number expected, ${li} found`;return ln(S)&&D===void 0&&(Za+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Et(Br.key,cn,Za)]}return D!=="categorical"||li!=="number"||isFinite(Hi)&&Math.floor(Hi)===Hi?D!=="categorical"&&li==="number"&&ie!==void 0&&Hinew Et(`${I.key}${X.key}`,I.value,X.message));let D=S.value.expression||S.value._styleExpression.expression;if(I.expressionContext==="property"&&I.propertyKey==="text-font"&&!D.outputDefined())return[new Et(I.key,I.value,`Invalid data expression for "${I.propertyKey}". Output values must be contained as literals within the expression.`)];if(I.expressionContext==="property"&&I.propertyType==="layout"&&!To(D))return[new Et(I.key,I.value,'"feature-state" data expressions are not supported with layout properties.')];if(I.expressionContext==="filter"&&!To(D))return[new Et(I.key,I.value,'"feature-state" data expressions are not supported with filters.')];if(I.expressionContext&&I.expressionContext.indexOf("cluster")===0){if(!ts(D,["zoom","feature-state"]))return[new Et(I.key,I.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(I.expressionContext==="cluster-initial"&&!Wa(D))return[new Et(I.key,I.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Da(I){let S=I.key,D=I.value,X=I.valueSpec,ie=[];return Array.isArray(X.values)?X.values.indexOf(po(D))===-1&&ie.push(new Et(S,D,`expected one of [${X.values.join(", ")}], ${JSON.stringify(D)} found`)):Object.keys(X.values).indexOf(po(D))===-1&&ie.push(new Et(S,D,`expected one of [${Object.keys(X.values).join(", ")}], ${JSON.stringify(D)} found`)),ie}function vs(I){return ks(go(I.value))?Io(Ae({},I,{expressionContext:"filter",valueSpec:{value:"boolean"}})):fs(I)}function fs(I){let S=I.value,D=I.key;if(oo(S)!=="array")return[new Et(D,S,`array expected, ${oo(S)} found`)];let X=I.styleSpec,ie,ve=[];if(S.length<1)return[new Et(D,S,"filter array must have at least 1 element")];switch(ve=ve.concat(Da({key:`${D}[0]`,value:S[0],valueSpec:X.filter_operator,style:I.style,styleSpec:I.styleSpec})),po(S[0])){case"<":case"<=":case">":case">=":S.length>=2&&po(S[1])==="$type"&&ve.push(new Et(D,S,`"$type" cannot be use with operator "${S[0]}"`));case"==":case"!=":S.length!==3&&ve.push(new Et(D,S,`filter array for operator "${S[0]}" must have 3 elements`));case"in":case"!in":S.length>=2&&(ie=oo(S[1]),ie!=="string"&&ve.push(new Et(`${D}[1]`,S[1],`string expected, ${ie} found`)));for(let we=2;we{Mt in D&&S.push(new Et(X,D[Mt],`"${Mt}" is prohibited for ref layers`))}),ie.layers.forEach(Mt=>{po(Mt.id)===We&&(ut=Mt)}),ut?ut.ref?S.push(new Et(X,D.ref,"ref cannot reference another ref layer")):we=po(ut.type):S.push(new Et(X,D.ref,`ref layer "${We}" not found`))}else if(we!=="background")if(D.source){let ut=ie.sources&&ie.sources[D.source],Mt=ut&&po(ut.type);ut?Mt==="vector"&&we==="raster"?S.push(new Et(X,D.source,`layer "${D.id}" requires a raster source`)):Mt!=="raster-dem"&&we==="hillshade"?S.push(new Et(X,D.source,`layer "${D.id}" requires a raster-dem source`)):Mt==="raster"&&we!=="raster"?S.push(new Et(X,D.source,`layer "${D.id}" requires a vector source`)):Mt!=="vector"||D["source-layer"]?Mt==="raster-dem"&&we!=="hillshade"?S.push(new Et(X,D.source,"raster-dem source can only be used with layer type 'hillshade'.")):we!=="line"||!D.paint||!D.paint["line-gradient"]||Mt==="geojson"&&ut.lineMetrics||S.push(new Et(X,D,`layer "${D.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):S.push(new Et(X,D,`layer "${D.id}" must specify a "source-layer"`)):S.push(new Et(X,D.source,`source "${D.source}" not found`))}else S.push(new Et(X,D,'missing required property "source"'));return S=S.concat(ss({key:X,value:D,valueSpec:ve.layer,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,objectElementValidators:{"*":()=>[],type:()=>I.validateSpec({key:`${X}.type`,value:D.type,valueSpec:ve.layer.type,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,object:D,objectKey:"type"}),filter:vs,layout:ut=>ss({layer:D,key:ut.key,value:ut.value,style:ut.style,styleSpec:ut.styleSpec,validateSpec:ut.validateSpec,objectElementValidators:{"*":Mt=>Hs(Ae({layerType:we},Mt))}}),paint:ut=>ss({layer:D,key:ut.key,value:ut.value,style:ut.style,styleSpec:ut.styleSpec,validateSpec:ut.validateSpec,objectElementValidators:{"*":Mt=>el(Ae({layerType:we},Mt))}})}})),S}function tl(I){let S=I.value,D=I.key,X=oo(S);return X!=="string"?[new Et(D,S,`string expected, ${X} found`)]:[]}let Fs={promoteId:function({key:I,value:S}){if(oo(S)==="string")return tl({key:I,value:S});{let D=[];for(let X in S)D.push(...tl({key:`${I}.${X}`,value:S[X]}));return D}}};function hl(I){let S=I.value,D=I.key,X=I.styleSpec,ie=I.style,ve=I.validateSpec;if(!S.type)return[new Et(D,S,'"type" is required')];let we=po(S.type),We;switch(we){case"vector":case"raster":return We=ss({key:D,value:S,valueSpec:X[`source_${we.replace("-","_")}`],style:I.style,styleSpec:X,objectElementValidators:Fs,validateSpec:ve}),We;case"raster-dem":return We=function(ut){var Mt;let $t=(Mt=ut.sourceName)!==null&&Mt!==void 0?Mt:"",vr=ut.value,Sr=ut.styleSpec,Br=Sr.source_raster_dem,Jr=ut.style,li=[],Hi=oo(vr);if(vr===void 0)return li;if(Hi!=="object")return li.push(new Et("source_raster_dem",vr,`object expected, ${Hi} found`)),li;let cn=po(vr.encoding)==="custom",Za=["redFactor","greenFactor","blueFactor","baseShift"],Rn=ut.value.encoding?`"${ut.value.encoding}"`:"Default";for(let La in vr)!cn&&Za.includes(La)?li.push(new Et(La,vr[La],`In "${$t}": "${La}" is only valid when "encoding" is set to "custom". ${Rn} encoding found`)):Br[La]?li=li.concat(ut.validateSpec({key:La,value:vr[La],valueSpec:Br[La],validateSpec:ut.validateSpec,style:Jr,styleSpec:Sr})):li.push(new Et(La,vr[La],`unknown property "${La}"`));return li}({sourceName:D,value:S,style:I.style,styleSpec:X,validateSpec:ve}),We;case"geojson":if(We=ss({key:D,value:S,valueSpec:X.source_geojson,style:ie,styleSpec:X,validateSpec:ve,objectElementValidators:Fs}),S.cluster)for(let ut in S.clusterProperties){let[Mt,$t]=S.clusterProperties[ut],vr=typeof Mt=="string"?[Mt,["accumulated"],["get",ut]]:Mt;We.push(...Io({key:`${D}.${ut}.map`,value:$t,validateSpec:ve,expressionContext:"cluster-map"})),We.push(...Io({key:`${D}.${ut}.reduce`,value:vr,validateSpec:ve,expressionContext:"cluster-reduce"}))}return We;case"video":return ss({key:D,value:S,valueSpec:X.source_video,style:ie,validateSpec:ve,styleSpec:X});case"image":return ss({key:D,value:S,valueSpec:X.source_image,style:ie,validateSpec:ve,styleSpec:X});case"canvas":return[new Et(D,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Da({key:`${D}.type`,value:S.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:ie,validateSpec:ve,styleSpec:X})}}function Fa(I){let S=I.value,D=I.styleSpec,X=D.light,ie=I.style,ve=[],we=oo(S);if(S===void 0)return ve;if(we!=="object")return ve=ve.concat([new Et("light",S,`object expected, ${we} found`)]),ve;for(let We in S){let ut=We.match(/^(.*)-transition$/);ve=ve.concat(ut&&X[ut[1]]&&X[ut[1]].transition?I.validateSpec({key:We,value:S[We],valueSpec:D.transition,validateSpec:I.validateSpec,style:ie,styleSpec:D}):X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],validateSpec:I.validateSpec,style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)])}return ve}function Ms(I){let S=I.value,D=I.styleSpec,X=D.sky,ie=I.style,ve=oo(S);if(S===void 0)return[];if(ve!=="object")return[new Et("sky",S,`object expected, ${ve} found`)];let we=[];for(let We in S)we=we.concat(X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)]);return we}function jo(I){let S=I.value,D=I.styleSpec,X=D.terrain,ie=I.style,ve=[],we=oo(S);if(S===void 0)return ve;if(we!=="object")return ve=ve.concat([new Et("terrain",S,`object expected, ${we} found`)]),ve;for(let We in S)ve=ve.concat(X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],validateSpec:I.validateSpec,style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)]);return ve}function Rs(I){let S=[],D=I.value,X=I.key;if(Array.isArray(D)){let ie=[],ve=[];for(let we in D)D[we].id&&ie.includes(D[we].id)&&S.push(new Et(X,D,`all the sprites' ids must be unique, but ${D[we].id} is duplicated`)),ie.push(D[we].id),D[we].url&&ve.includes(D[we].url)&&S.push(new Et(X,D,`all the sprites' URLs must be unique, but ${D[we].url} is duplicated`)),ve.push(D[we].url),S=S.concat(ss({key:`${X}[${we}]`,value:D[we],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:I.validateSpec}));return S}return tl({key:X,value:D})}let Is={"*":()=>[],array:qo,boolean:function(I){let S=I.value,D=I.key,X=oo(S);return X!=="boolean"?[new Et(D,S,`boolean expected, ${X} found`)]:[]},number:zo,color:function(I){let S=I.key,D=I.value,X=oo(D);return X!=="string"?[new Et(S,D,`color expected, ${X} found`)]:Wt.parse(String(D))?[]:[new Et(S,D,`color expected, "${D}" found`)]},constants:Ss,enum:Da,filter:vs,function:io,layer:Ro,object:ss,source:hl,light:Fa,sky:Ms,terrain:jo,projection:function(I){let S=I.value,D=I.styleSpec,X=D.projection,ie=I.style,ve=oo(S);if(S===void 0)return[];if(ve!=="object")return[new Et("projection",S,`object expected, ${ve} found`)];let we=[];for(let We in S)we=we.concat(X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)]);return we},string:tl,formatted:function(I){return tl(I).length===0?[]:Io(I)},resolvedImage:function(I){return tl(I).length===0?[]:Io(I)},padding:function(I){let S=I.key,D=I.value;if(oo(D)==="array"){if(D.length<1||D.length>4)return[new Et(S,D,`padding requires 1 to 4 values; ${D.length} values found`)];let X={type:"number"},ie=[];for(let ve=0;ve[]}})),I.constants&&(D=D.concat(Ss({key:"constants",value:I.constants,style:I,styleSpec:S,validateSpec:Bs}))),mr(D)}function wr(I){return function(S){return I(xee(_ee({},S),{validateSpec:Bs}))}}function mr(I){return[].concat(I).sort((S,D)=>S.line-D.line)}function Or(I){return function(...S){return mr(I.apply(this,S))}}Gt.source=Or(wr(hl)),Gt.sprite=Or(wr(Rs)),Gt.glyphs=Or(wr(At)),Gt.light=Or(wr(Fa)),Gt.sky=Or(wr(Ms)),Gt.terrain=Or(wr(jo)),Gt.layer=Or(wr(Ro)),Gt.filter=Or(wr(vs)),Gt.paintProperty=Or(wr(el)),Gt.layoutProperty=Or(wr(Hs));let gi=Gt,Ti=gi.light,ki=gi.sky,Ji=gi.paintProperty,Fn=gi.layoutProperty;function Pi(I,S){let D=!1;if(S&&S.length)for(let X of S)I.fire(new ye(new Error(X.message))),D=!0;return D}class hi{constructor(S,D,X){let ie=this.cells=[];if(S instanceof ArrayBuffer){this.arrayBuffer=S;let we=new Int32Array(this.arrayBuffer);S=we[0],this.d=(D=we[1])+2*(X=we[2]);for(let ut=0;ut=vr[Jr+0]&&ie>=vr[Jr+1])?(We[Br]=!0,we.push($t[Br])):We[Br]=!1}}}}_forEachCell(S,D,X,ie,ve,we,We,ut){let Mt=this._convertToCellCoord(S),$t=this._convertToCellCoord(D),vr=this._convertToCellCoord(X),Sr=this._convertToCellCoord(ie);for(let Br=Mt;Br<=vr;Br++)for(let Jr=$t;Jr<=Sr;Jr++){let li=this.d*Jr+Br;if((!ut||ut(this._convertFromCellCoord(Br),this._convertFromCellCoord(Jr),this._convertFromCellCoord(Br+1),this._convertFromCellCoord(Jr+1)))&&ve.call(this,S,D,X,ie,li,we,We,ut))return}}_convertFromCellCoord(S){return(S-this.padding)/this.scale}_convertToCellCoord(S){return Math.max(0,Math.min(this.d-1,Math.floor(S*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let S=this.cells,D=3+this.cells.length+1+1,X=0;for(let we=0;we=0)continue;let we=I[ve];ie[ve]=Li[D].shallow.indexOf(ve)>=0?we:ia(we,S)}I instanceof Error&&(ie.message=I.message)}if(ie.$name)throw new Error("$name property is reserved for worker serialization logic.");return D!=="Object"&&(ie.$name=D),ie}function pa(I){if(ya(I))return I;if(Array.isArray(I))return I.map(pa);if(typeof I!="object")throw new Error("can't deserialize object of type "+typeof I);let S=ta(I)||"Object";if(!Li[S])throw new Error(`can't deserialize unregistered class ${S}`);let{klass:D}=Li[S];if(!D)throw new Error(`can't deserialize unregistered class ${S}`);if(D.deserialize)return D.deserialize(I);let X=Object.create(D.prototype);for(let ie of Object.keys(I)){if(ie==="$name")continue;let ve=I[ie];X[ie]=Li[S].shallow.indexOf(ie)>=0?ve:pa(ve)}return X}class va{constructor(){this.first=!0}update(S,D){let X=Math.floor(S);return this.first?(this.first=!1,this.lastIntegerZoom=X,this.lastIntegerZoomTime=0,this.lastZoom=S,this.lastFloorZoom=X,!0):(this.lastFloorZoom>X?(this.lastIntegerZoom=X+1,this.lastIntegerZoomTime=D):this.lastFloorZoomI>=128&&I<=255,"Hangul Jamo":I=>I>=4352&&I<=4607,Khmer:I=>I>=6016&&I<=6143,"General Punctuation":I=>I>=8192&&I<=8303,"Letterlike Symbols":I=>I>=8448&&I<=8527,"Number Forms":I=>I>=8528&&I<=8591,"Miscellaneous Technical":I=>I>=8960&&I<=9215,"Control Pictures":I=>I>=9216&&I<=9279,"Optical Character Recognition":I=>I>=9280&&I<=9311,"Enclosed Alphanumerics":I=>I>=9312&&I<=9471,"Geometric Shapes":I=>I>=9632&&I<=9727,"Miscellaneous Symbols":I=>I>=9728&&I<=9983,"Miscellaneous Symbols and Arrows":I=>I>=11008&&I<=11263,"Ideographic Description Characters":I=>I>=12272&&I<=12287,"CJK Symbols and Punctuation":I=>I>=12288&&I<=12351,Katakana:I=>I>=12448&&I<=12543,Kanbun:I=>I>=12688&&I<=12703,"CJK Strokes":I=>I>=12736&&I<=12783,"Enclosed CJK Letters and Months":I=>I>=12800&&I<=13055,"CJK Compatibility":I=>I>=13056&&I<=13311,"Yijing Hexagram Symbols":I=>I>=19904&&I<=19967,"Private Use Area":I=>I>=57344&&I<=63743,"Vertical Forms":I=>I>=65040&&I<=65055,"CJK Compatibility Forms":I=>I>=65072&&I<=65103,"Small Form Variants":I=>I>=65104&&I<=65135,"Halfwidth and Fullwidth Forms":I=>I>=65280&&I<=65519};function is(I){for(let S of I)if(bl(S.charCodeAt(0)))return!0;return!1}function Cs(I){for(let S of I)if(!xl(S.charCodeAt(0)))return!1;return!0}function Ks(I){let S=I.map(D=>{try{return new RegExp(`\\p{sc=${D}}`,"u").source}catch(X){return null}}).filter(D=>D);return new RegExp(S.join("|"),"u")}let dl=Ks(["Arab","Dupl","Mong","Ougr","Syrc"]);function xl(I){return!dl.test(String.fromCodePoint(I))}let Bl=Ks(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function bl(I){return!(I!==746&&I!==747&&(I<4352||!(zn["CJK Compatibility Forms"](I)&&!(I>=65097&&I<=65103)||zn["CJK Compatibility"](I)||zn["CJK Strokes"](I)||!(!zn["CJK Symbols and Punctuation"](I)||I>=12296&&I<=12305||I>=12308&&I<=12319||I===12336)||zn["Enclosed CJK Letters and Months"](I)||zn["Ideographic Description Characters"](I)||zn.Kanbun(I)||zn.Katakana(I)&&I!==12540||!(!zn["Halfwidth and Fullwidth Forms"](I)||I===65288||I===65289||I===65293||I>=65306&&I<=65310||I===65339||I===65341||I===65343||I>=65371&&I<=65503||I===65507||I>=65512&&I<=65519)||!(!zn["Small Form Variants"](I)||I>=65112&&I<=65118||I>=65123&&I<=65126)||zn["Vertical Forms"](I)||zn["Yijing Hexagram Symbols"](I)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(I))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(I))||Bl.test(String.fromCodePoint(I)))))}function eu(I){return!(bl(I)||function(S){return!!(zn["Latin-1 Supplement"](S)&&(S===167||S===169||S===174||S===177||S===188||S===189||S===190||S===215||S===247)||zn["General Punctuation"](S)&&(S===8214||S===8224||S===8225||S===8240||S===8241||S===8251||S===8252||S===8258||S===8263||S===8264||S===8265||S===8273)||zn["Letterlike Symbols"](S)||zn["Number Forms"](S)||zn["Miscellaneous Technical"](S)&&(S>=8960&&S<=8967||S>=8972&&S<=8991||S>=8996&&S<=9e3||S===9003||S>=9085&&S<=9114||S>=9150&&S<=9165||S===9167||S>=9169&&S<=9179||S>=9186&&S<=9215)||zn["Control Pictures"](S)&&S!==9251||zn["Optical Character Recognition"](S)||zn["Enclosed Alphanumerics"](S)||zn["Geometric Shapes"](S)||zn["Miscellaneous Symbols"](S)&&!(S>=9754&&S<=9759)||zn["Miscellaneous Symbols and Arrows"](S)&&(S>=11026&&S<=11055||S>=11088&&S<=11097||S>=11192&&S<=11243)||zn["CJK Symbols and Punctuation"](S)||zn.Katakana(S)||zn["Private Use Area"](S)||zn["CJK Compatibility Forms"](S)||zn["Small Form Variants"](S)||zn["Halfwidth and Fullwidth Forms"](S)||S===8734||S===8756||S===8757||S>=9984&&S<=10087||S>=10102&&S<=10131||S===65532||S===65533)}(I))}let Zl=Ks(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Ul(I){return Zl.test(String.fromCodePoint(I))}function ja(I,S){return!(!S&&Ul(I)||I>=2304&&I<=3583||I>=3840&&I<=4255||zn.Khmer(I))}function ns(I){for(let S of I)if(Ul(S.charCodeAt(0)))return!0;return!1}let Js=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(I){this.pluginStatus=I.pluginStatus,this.pluginURL=I.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(I){this.applyArabicShaping=I.applyArabicShaping,this.processBidirectionalText=I.processBidirectionalText,this.processStyledBidirectionalText=I.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class cs{constructor(S,D){this.zoom=S,D?(this.now=D.now,this.fadeDuration=D.fadeDuration,this.zoomHistory=D.zoomHistory,this.transition=D.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new va,this.transition={})}isSupportedScript(S){return function(D,X){for(let ie of D)if(!ja(ie.charCodeAt(0),X))return!1;return!0}(S,Js.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let S=this.zoom,D=S-Math.floor(S),X=this.crossFadingFactor();return S>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:D+(1-D)*X}:{fromScale:.5,toScale:1,t:1-(1-X)*D}}}class sl{constructor(S,D){this.property=S,this.value=D,this.expression=function(X,ie){if(za(X))return new Lo(X,ie);if(Qs(X)){let ve=Do(X,ie);if(ve.result==="error")throw new Error(ve.value.map(we=>`${we.key}: ${we.message}`).join(", "));return ve.value}{let ve=X;return ie.type==="color"&&typeof X=="string"?ve=Wt.parse(X):ie.type!=="padding"||typeof X!="number"&&!Array.isArray(X)?ie.type==="variableAnchorOffsetCollection"&&Array.isArray(X)&&(ve=jr.parse(X)):ve=Ir.parse(X),{kind:"constant",evaluate:()=>ve}}}(D===void 0?S.specification.default:D,S.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(S,D,X){return this.property.possiblyEvaluate(this,S,D,X)}}class ll{constructor(S){this.property=S,this.value=new sl(S,void 0)}transitioned(S,D){return new zl(this.property,this.value,D,L({},S.transition,this.transition),S.now)}untransitioned(){return new zl(this.property,this.value,null,{},0)}}class il{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitionablePropertyValues)}getValue(S){return m(this._values[S].value.value)}setValue(S,D){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ll(this._values[S].property)),this._values[S].value=new sl(this._values[S].property,D===null?void 0:m(D))}getTransition(S){return m(this._values[S].transition)}setTransition(S,D){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ll(this._values[S].property)),this._values[S].transition=m(D)||void 0}serialize(){let S={};for(let D of Object.keys(this._values)){let X=this.getValue(D);X!==void 0&&(S[D]=X);let ie=this.getTransition(D);ie!==void 0&&(S[`${D}-transition`]=ie)}return S}transitioned(S,D){let X=new Ml(this._properties);for(let ie of Object.keys(this._values))X._values[ie]=this._values[ie].transitioned(S,D._values[ie]);return X}untransitioned(){let S=new Ml(this._properties);for(let D of Object.keys(this._values))S._values[D]=this._values[D].untransitioned();return S}}class zl{constructor(S,D,X,ie,ve){this.property=S,this.value=D,this.begin=ve+ie.delay||0,this.end=this.begin+ie.duration||0,S.specification.transition&&(ie.delay||ie.duration)&&(this.prior=X)}possiblyEvaluate(S,D,X){let ie=S.now||0,ve=this.value.possiblyEvaluate(S,D,X),we=this.prior;if(we){if(ie>this.end)return this.prior=null,ve;if(this.value.isDataDriven())return this.prior=null,ve;if(ie=1)return 1;let Mt=ut*ut,$t=Mt*ut;return 4*(ut<.5?$t:3*(ut-Mt)+$t-.75)}(We))}}return ve}}class Ml{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitioningPropertyValues)}possiblyEvaluate(S,D,X){let ie=new Ll(this._properties);for(let ve of Object.keys(this._values))ie._values[ve]=this._values[ve].possiblyEvaluate(S,D,X);return ie}hasTransition(){for(let S of Object.keys(this._values))if(this._values[S].prior)return!0;return!1}}class Rl{constructor(S){this._properties=S,this._values=Object.create(S.defaultPropertyValues)}hasValue(S){return this._values[S].value!==void 0}getValue(S){return m(this._values[S].value)}setValue(S,D){this._values[S]=new sl(this._values[S].property,D===null?void 0:m(D))}serialize(){let S={};for(let D of Object.keys(this._values)){let X=this.getValue(D);X!==void 0&&(S[D]=X)}return S}possiblyEvaluate(S,D,X){let ie=new Ll(this._properties);for(let ve of Object.keys(this._values))ie._values[ve]=this._values[ve].possiblyEvaluate(S,D,X);return ie}}class Al{constructor(S,D,X){this.property=S,this.value=D,this.parameters=X}isConstant(){return this.value.kind==="constant"}constantOr(S){return this.value.kind==="constant"?this.value.value:S}evaluate(S,D,X,ie){return this.property.evaluate(this.value,this.parameters,S,D,X,ie)}}class Ll{constructor(S){this._properties=S,this._values=Object.create(S.defaultPossiblyEvaluatedValues)}get(S){return this._values[S]}}class ms{constructor(S){this.specification=S}possiblyEvaluate(S,D){if(S.isDataDriven())throw new Error("Value should not be data driven");return S.expression.evaluate(D)}interpolate(S,D,X){let ie=ka[this.specification.type];return ie?ie(S,D,X):S}}class Os{constructor(S,D){this.specification=S,this.overrides=D}possiblyEvaluate(S,D,X,ie){return new Al(this,S.expression.kind==="constant"||S.expression.kind==="camera"?{kind:"constant",value:S.expression.evaluate(D,null,{},X,ie)}:S.expression,D)}interpolate(S,D,X){if(S.value.kind!=="constant"||D.value.kind!=="constant")return S;if(S.value.value===void 0||D.value.value===void 0)return new Al(this,{kind:"constant",value:void 0},S.parameters);let ie=ka[this.specification.type];if(ie){let ve=ie(S.value.value,D.value.value,X);return new Al(this,{kind:"constant",value:ve},S.parameters)}return S}evaluate(S,D,X,ie,ve,we){return S.kind==="constant"?S.value:S.evaluate(D,X,ie,ve,we)}}class Xl extends Os{possiblyEvaluate(S,D,X,ie){if(S.value===void 0)return new Al(this,{kind:"constant",value:void 0},D);if(S.expression.kind==="constant"){let ve=S.expression.evaluate(D,null,{},X,ie),we=S.property.specification.type==="resolvedImage"&&typeof ve!="string"?ve.name:ve,We=this._calculate(we,we,we,D);return new Al(this,{kind:"constant",value:We},D)}if(S.expression.kind==="camera"){let ve=this._calculate(S.expression.evaluate({zoom:D.zoom-1}),S.expression.evaluate({zoom:D.zoom}),S.expression.evaluate({zoom:D.zoom+1}),D);return new Al(this,{kind:"constant",value:ve},D)}return new Al(this,S.expression,D)}evaluate(S,D,X,ie,ve,we){if(S.kind==="source"){let We=S.evaluate(D,X,ie,ve,we);return this._calculate(We,We,We,D)}return S.kind==="composite"?this._calculate(S.evaluate({zoom:Math.floor(D.zoom)-1},X,ie),S.evaluate({zoom:Math.floor(D.zoom)},X,ie),S.evaluate({zoom:Math.floor(D.zoom)+1},X,ie),D):S.value}_calculate(S,D,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:S,to:D}:{from:X,to:D}}interpolate(S){return S}}class Vl{constructor(S){this.specification=S}possiblyEvaluate(S,D,X,ie){if(S.value!==void 0){if(S.expression.kind==="constant"){let ve=S.expression.evaluate(D,null,{},X,ie);return this._calculate(ve,ve,ve,D)}return this._calculate(S.expression.evaluate(new cs(Math.floor(D.zoom-1),D)),S.expression.evaluate(new cs(Math.floor(D.zoom),D)),S.expression.evaluate(new cs(Math.floor(D.zoom+1),D)),D)}}_calculate(S,D,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:S,to:D}:{from:X,to:D}}interpolate(S){return S}}class Nl{constructor(S){this.specification=S}possiblyEvaluate(S,D,X,ie){return!!S.expression.evaluate(D,null,{},X,ie)}interpolate(){return!1}}class le{constructor(S){this.properties=S,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let D in S){let X=S[D];X.specification.overridable&&this.overridableProperties.push(D);let ie=this.defaultPropertyValues[D]=new sl(X,void 0),ve=this.defaultTransitionablePropertyValues[D]=new ll(X);this.defaultTransitioningPropertyValues[D]=ve.untransitioned(),this.defaultPossiblyEvaluatedValues[D]=ie.possiblyEvaluate({})}}}Si("DataDrivenProperty",Os),Si("DataConstantProperty",ms),Si("CrossFadedDataDrivenProperty",Xl),Si("CrossFadedProperty",Vl),Si("ColorRampProperty",Nl);let w="-transition";class q extends Ve{constructor(S,D){if(super(),this.id=S.id,this.type=S.type,this._featureFilter={filter:()=>!0,needGeometry:!1},S.type!=="custom"&&(this.metadata=S.metadata,this.minzoom=S.minzoom,this.maxzoom=S.maxzoom,S.type!=="background"&&(this.source=S.source,this.sourceLayer=S["source-layer"],this.filter=S.filter),D.layout&&(this._unevaluatedLayout=new Rl(D.layout)),D.paint)){this._transitionablePaint=new il(D.paint);for(let X in S.paint)this.setPaintProperty(X,S.paint[X],{validate:!1});for(let X in S.layout)this.setLayoutProperty(X,S.layout[X],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ll(D.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(S){return S==="visibility"?this.visibility:this._unevaluatedLayout.getValue(S)}setLayoutProperty(S,D,X={}){D!=null&&this._validate(Fn,`layers.${this.id}.layout.${S}`,S,D,X)||(S!=="visibility"?this._unevaluatedLayout.setValue(S,D):this.visibility=D)}getPaintProperty(S){return S.endsWith(w)?this._transitionablePaint.getTransition(S.slice(0,-11)):this._transitionablePaint.getValue(S)}setPaintProperty(S,D,X={}){if(D!=null&&this._validate(Ji,`layers.${this.id}.paint.${S}`,S,D,X))return!1;if(S.endsWith(w))return this._transitionablePaint.setTransition(S.slice(0,-11),D||void 0),!1;{let ie=this._transitionablePaint._values[S],ve=ie.property.specification["property-type"]==="cross-faded-data-driven",we=ie.value.isDataDriven(),We=ie.value;this._transitionablePaint.setValue(S,D),this._handleSpecialPaintPropertyUpdate(S);let ut=this._transitionablePaint._values[S].value;return ut.isDataDriven()||we||ve||this._handleOverridablePaintPropertyUpdate(S,We,ut)}}_handleSpecialPaintPropertyUpdate(S){}_handleOverridablePaintPropertyUpdate(S,D,X){return!1}isHidden(S){return!!(this.minzoom&&S=this.maxzoom)||this.visibility==="none"}updateTransitions(S){this._transitioningPaint=this._transitionablePaint.transitioned(S,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(S,D){S.getCrossfadeParameters&&(this._crossfadeParameters=S.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(S,void 0,D)),this.paint=this._transitioningPaint.possiblyEvaluate(S,void 0,D)}serialize(){let S={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(S.layout=S.layout||{},S.layout.visibility=this.visibility),M(S,(D,X)=>!(D===void 0||X==="layout"&&!Object.keys(D).length||X==="paint"&&!Object.keys(D).length))}_validate(S,D,X,ie,ve={}){return(!ve||ve.validate!==!1)&&Pi(this,S.call(gi,{key:D,layerType:this.type,objectKey:X,value:ie,styleSpec:ce,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let S in this.paint._values){let D=this.paint.get(S);if(D instanceof Al&&ln(D.property.specification)&&(D.value.kind==="source"||D.value.kind==="composite")&&D.value.isStateDependent)return!0}return!1}}let Q={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class ee{constructor(S,D){this._structArray=S,this._pos1=D*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class ue{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(S,D){return S._trim(),D&&(S.isTransferred=!0,D.push(S.arrayBuffer)),{length:S.length,arrayBuffer:S.arrayBuffer}}static deserialize(S){let D=Object.create(this.prototype);return D.arrayBuffer=S.arrayBuffer,D.length=S.length,D.capacity=S.arrayBuffer.byteLength/D.bytesPerElement,D._refreshViews(),D}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(S){this.reserve(S),this.length=S}reserve(S){if(S>this.capacity){this.capacity=Math.max(S,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let D=this.uint8;this._refreshViews(),D&&this.uint8.set(D)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function Ge(I,S=1){let D=0,X=0;return{members:I.map(ie=>{let ve=Q[ie.type].BYTES_PER_ELEMENT,we=D=et(D,Math.max(S,ve)),We=ie.components||1;return X=Math.max(X,ve),D+=ve*We,{name:ie.name,type:ie.type,components:We,offset:we}}),size:et(D,Math.max(X,S)),alignment:S}}function et(I,S){return Math.ceil(I/S)*S}class mt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D){let X=this.length;return this.resize(X+1),this.emplace(X,S,D)}emplace(S,D,X){let ie=2*S;return this.int16[ie+0]=D,this.int16[ie+1]=X,S}}mt.prototype.bytesPerElement=4,Si("StructArrayLayout2i4",mt);class Ft extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.int16[ve+0]=D,this.int16[ve+1]=X,this.int16[ve+2]=ie,S}}Ft.prototype.bytesPerElement=6,Si("StructArrayLayout3i6",Ft);class ir extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie){let ve=this.length;return this.resize(ve+1),this.emplace(ve,S,D,X,ie)}emplace(S,D,X,ie,ve){let we=4*S;return this.int16[we+0]=D,this.int16[we+1]=X,this.int16[we+2]=ie,this.int16[we+3]=ve,S}}ir.prototype.bytesPerElement=8,Si("StructArrayLayout4i8",ir);class or extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=6*S;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.int16[ut+2]=ie,this.int16[ut+3]=ve,this.int16[ut+4]=we,this.int16[ut+5]=We,S}}or.prototype.bytesPerElement=12,Si("StructArrayLayout2i4i12",or);class kr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=4*S,Mt=8*S;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.uint8[Mt+4]=ie,this.uint8[Mt+5]=ve,this.uint8[Mt+6]=we,this.uint8[Mt+7]=We,S}}kr.prototype.bytesPerElement=8,Si("StructArrayLayout2i4ub8",kr);class Vr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D){let X=this.length;return this.resize(X+1),this.emplace(X,S,D)}emplace(S,D,X){let ie=2*S;return this.float32[ie+0]=D,this.float32[ie+1]=X,S}}Vr.prototype.bytesPerElement=8,Si("StructArrayLayout2f8",Vr);class he extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we,We,ut,Mt,$t){let vr=this.length;return this.resize(vr+1),this.emplace(vr,S,D,X,ie,ve,we,We,ut,Mt,$t)}emplace(S,D,X,ie,ve,we,We,ut,Mt,$t,vr){let Sr=10*S;return this.uint16[Sr+0]=D,this.uint16[Sr+1]=X,this.uint16[Sr+2]=ie,this.uint16[Sr+3]=ve,this.uint16[Sr+4]=we,this.uint16[Sr+5]=We,this.uint16[Sr+6]=ut,this.uint16[Sr+7]=Mt,this.uint16[Sr+8]=$t,this.uint16[Sr+9]=vr,S}}he.prototype.bytesPerElement=20,Si("StructArrayLayout10ui20",he);class Se extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr){let Br=this.length;return this.resize(Br+1),this.emplace(Br,S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr)}emplace(S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br){let Jr=12*S;return this.int16[Jr+0]=D,this.int16[Jr+1]=X,this.int16[Jr+2]=ie,this.int16[Jr+3]=ve,this.uint16[Jr+4]=we,this.uint16[Jr+5]=We,this.uint16[Jr+6]=ut,this.uint16[Jr+7]=Mt,this.int16[Jr+8]=$t,this.int16[Jr+9]=vr,this.int16[Jr+10]=Sr,this.int16[Jr+11]=Br,S}}Se.prototype.bytesPerElement=24,Si("StructArrayLayout4i4ui4i24",Se);class qe extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.float32[ve+0]=D,this.float32[ve+1]=X,this.float32[ve+2]=ie,S}}qe.prototype.bytesPerElement=12,Si("StructArrayLayout3f12",qe);class He extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(S){let D=this.length;return this.resize(D+1),this.emplace(D,S)}emplace(S,D){return this.uint32[1*S+0]=D,S}}He.prototype.bytesPerElement=4,Si("StructArrayLayout1ul4",He);class lt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we,We,ut,Mt){let $t=this.length;return this.resize($t+1),this.emplace($t,S,D,X,ie,ve,we,We,ut,Mt)}emplace(S,D,X,ie,ve,we,We,ut,Mt,$t){let vr=10*S,Sr=5*S;return this.int16[vr+0]=D,this.int16[vr+1]=X,this.int16[vr+2]=ie,this.int16[vr+3]=ve,this.int16[vr+4]=we,this.int16[vr+5]=We,this.uint32[Sr+3]=ut,this.uint16[vr+8]=Mt,this.uint16[vr+9]=$t,S}}lt.prototype.bytesPerElement=20,Si("StructArrayLayout6i1ul2ui20",lt);class tt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=6*S;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.int16[ut+2]=ie,this.int16[ut+3]=ve,this.int16[ut+4]=we,this.int16[ut+5]=We,S}}tt.prototype.bytesPerElement=12,Si("StructArrayLayout2i2i2i12",tt);class pt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve){let we=this.length;return this.resize(we+1),this.emplace(we,S,D,X,ie,ve)}emplace(S,D,X,ie,ve,we){let We=4*S,ut=8*S;return this.float32[We+0]=D,this.float32[We+1]=X,this.float32[We+2]=ie,this.int16[ut+6]=ve,this.int16[ut+7]=we,S}}pt.prototype.bytesPerElement=16,Si("StructArrayLayout2f1f2i16",pt);class Ht extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=16*S,Mt=4*S,$t=8*S;return this.uint8[ut+0]=D,this.uint8[ut+1]=X,this.float32[Mt+1]=ie,this.float32[Mt+2]=ve,this.int16[$t+6]=we,this.int16[$t+7]=We,S}}Ht.prototype.bytesPerElement=16,Si("StructArrayLayout2ub2f2i16",Ht);class nr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.uint16[ve+0]=D,this.uint16[ve+1]=X,this.uint16[ve+2]=ie,S}}nr.prototype.bytesPerElement=6,Si("StructArrayLayout3ui6",nr);class fr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn){let Za=this.length;return this.resize(Za+1),this.emplace(Za,S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn)}emplace(S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn,Za){let Rn=24*S,La=12*S,So=48*S;return this.int16[Rn+0]=D,this.int16[Rn+1]=X,this.uint16[Rn+2]=ie,this.uint16[Rn+3]=ve,this.uint32[La+2]=we,this.uint32[La+3]=We,this.uint32[La+4]=ut,this.uint16[Rn+10]=Mt,this.uint16[Rn+11]=$t,this.uint16[Rn+12]=vr,this.float32[La+7]=Sr,this.float32[La+8]=Br,this.uint8[So+36]=Jr,this.uint8[So+37]=li,this.uint8[So+38]=Hi,this.uint32[La+10]=cn,this.int16[Rn+22]=Za,S}}fr.prototype.bytesPerElement=48,Si("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",fr);class Ar extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu){let _u=this.length;return this.resize(_u+1),this.emplace(_u,S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu)}emplace(S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu,_u){let Xs=32*S,Lu=16*S;return this.int16[Xs+0]=D,this.int16[Xs+1]=X,this.int16[Xs+2]=ie,this.int16[Xs+3]=ve,this.int16[Xs+4]=we,this.int16[Xs+5]=We,this.int16[Xs+6]=ut,this.int16[Xs+7]=Mt,this.uint16[Xs+8]=$t,this.uint16[Xs+9]=vr,this.uint16[Xs+10]=Sr,this.uint16[Xs+11]=Br,this.uint16[Xs+12]=Jr,this.uint16[Xs+13]=li,this.uint16[Xs+14]=Hi,this.uint16[Xs+15]=cn,this.uint16[Xs+16]=Za,this.uint16[Xs+17]=Rn,this.uint16[Xs+18]=La,this.uint16[Xs+19]=So,this.uint16[Xs+20]=kl,this.uint16[Xs+21]=mu,this.uint16[Xs+22]=Iu,this.uint32[Lu+12]=su,this.float32[Lu+13]=yl,this.float32[Lu+14]=Eu,this.uint16[Xs+30]=bu,this.uint16[Xs+31]=_u,S}}Ar.prototype.bytesPerElement=64,Si("StructArrayLayout8i15ui1ul2f2ui64",Ar);class Rr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S){let D=this.length;return this.resize(D+1),this.emplace(D,S)}emplace(S,D){return this.float32[1*S+0]=D,S}}Rr.prototype.bytesPerElement=4,Si("StructArrayLayout1f4",Rr);class ri extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.uint16[6*S+0]=D,this.float32[ve+1]=X,this.float32[ve+2]=ie,S}}ri.prototype.bytesPerElement=12,Si("StructArrayLayout1ui2f12",ri);class si extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=4*S;return this.uint32[2*S+0]=D,this.uint16[ve+2]=X,this.uint16[ve+3]=ie,S}}si.prototype.bytesPerElement=8,Si("StructArrayLayout1ul2ui8",si);class Mi extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D){let X=this.length;return this.resize(X+1),this.emplace(X,S,D)}emplace(S,D,X){let ie=2*S;return this.uint16[ie+0]=D,this.uint16[ie+1]=X,S}}Mi.prototype.bytesPerElement=4,Si("StructArrayLayout2ui4",Mi);class hn extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S){let D=this.length;return this.resize(D+1),this.emplace(D,S)}emplace(S,D){return this.uint16[1*S+0]=D,S}}hn.prototype.bytesPerElement=2,Si("StructArrayLayout1ui2",hn);class Zn extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X,ie){let ve=this.length;return this.resize(ve+1),this.emplace(ve,S,D,X,ie)}emplace(S,D,X,ie,ve){let we=4*S;return this.float32[we+0]=D,this.float32[we+1]=X,this.float32[we+2]=ie,this.float32[we+3]=ve,S}}Zn.prototype.bytesPerElement=16,Si("StructArrayLayout4f16",Zn);class Yn extends ee{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new l(this.anchorPointX,this.anchorPointY)}}Yn.prototype.size=20;class Ua extends lt{get(S){return new Yn(this,S)}}Si("CollisionBoxArray",Ua);class Fo extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(S){this._structArray.uint8[this._pos1+37]=S}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(S){this._structArray.uint8[this._pos1+38]=S}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(S){this._structArray.uint32[this._pos4+10]=S}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Fo.prototype.size=48;class vl extends fr{get(S){return new Fo(this,S)}}Si("PlacedSymbolArray",vl);class Us extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(S){this._structArray.uint32[this._pos4+12]=S}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}Us.prototype.size=64;class ml extends Ar{get(S){return new Us(this,S)}}Si("SymbolInstanceArray",ml);class au extends Rr{getoffsetX(S){return this.float32[1*S+0]}}Si("GlyphOffsetArray",au);class Sl extends Ft{getx(S){return this.int16[3*S+0]}gety(S){return this.int16[3*S+1]}gettileUnitDistanceFromAnchor(S){return this.int16[3*S+2]}}Si("SymbolLineVertexArray",Sl);class Yl extends ee{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}Yl.prototype.size=12;class Ol extends ri{get(S){return new Yl(this,S)}}Si("TextAnchorOffsetArray",Ol);class ou extends ee{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}ou.prototype.size=8;class Pu extends si{get(S){return new ou(this,S)}}Si("FeatureIndexArray",Pu);class iu extends mt{}class tu extends mt{}class Wu extends mt{}class Qu extends or{}class Ju extends kr{}class ju extends Vr{}class Xu extends he{}class lf extends Se{}class xf extends qe{}class ef extends He{}class tf extends tt{}class Z extends Ht{}class se extends nr{}class ze extends Mi{}let Xe=Ge([{name:"a_pos",components:2,type:"Int16"}],4),{members:Qe}=Xe;class ot{constructor(S=[]){this.segments=S}prepareSegment(S,D,X,ie){let ve=this.segments[this.segments.length-1];return S>ot.MAX_VERTEX_ARRAY_LENGTH&&A(`Max vertices per segment is ${ot.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${S}`),(!ve||ve.vertexLength+S>ot.MAX_VERTEX_ARRAY_LENGTH||ve.sortKey!==ie)&&(ve={vertexOffset:D.length,primitiveOffset:X.length,vertexLength:0,primitiveLength:0},ie!==void 0&&(ve.sortKey=ie),this.segments.push(ve)),ve}get(){return this.segments}destroy(){for(let S of this.segments)for(let D in S.vaos)S.vaos[D].destroy()}static simpleSegment(S,D,X,ie){return new ot([{vertexOffset:S,primitiveOffset:D,vertexLength:X,primitiveLength:ie,vaos:{},sortKey:0}])}}function jt(I,S){return 256*(I=E(Math.floor(I),0,255))+E(Math.floor(S),0,255)}ot.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Si("SegmentVector",ot);let _t=Ge([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var cr={exports:{}},Cr={exports:{}};Cr.exports=function(I,S){var D,X,ie,ve,we,We,ut,Mt;for(X=I.length-(D=3&I.length),ie=S,we=3432918353,We=461845907,Mt=0;Mt>>16)*we&65535)<<16)&4294967295)<<15|ut>>>17))*We+(((ut>>>16)*We&65535)<<16)&4294967295)<<13|ie>>>19))+((5*(ie>>>16)&65535)<<16)&4294967295))+((58964+(ve>>>16)&65535)<<16);switch(ut=0,D){case 3:ut^=(255&I.charCodeAt(Mt+2))<<16;case 2:ut^=(255&I.charCodeAt(Mt+1))<<8;case 1:ie^=ut=(65535&(ut=(ut=(65535&(ut^=255&I.charCodeAt(Mt)))*we+(((ut>>>16)*we&65535)<<16)&4294967295)<<15|ut>>>17))*We+(((ut>>>16)*We&65535)<<16)&4294967295}return ie^=I.length,ie=2246822507*(65535&(ie^=ie>>>16))+((2246822507*(ie>>>16)&65535)<<16)&4294967295,ie=3266489909*(65535&(ie^=ie>>>13))+((3266489909*(ie>>>16)&65535)<<16)&4294967295,(ie^=ie>>>16)>>>0};var zr=Cr.exports,ui={exports:{}};ui.exports=function(I,S){for(var D,X=I.length,ie=S^X,ve=0;X>=4;)D=1540483477*(65535&(D=255&I.charCodeAt(ve)|(255&I.charCodeAt(++ve))<<8|(255&I.charCodeAt(++ve))<<16|(255&I.charCodeAt(++ve))<<24))+((1540483477*(D>>>16)&65535)<<16),ie=1540483477*(65535&ie)+((1540483477*(ie>>>16)&65535)<<16)^(D=1540483477*(65535&(D^=D>>>24))+((1540483477*(D>>>16)&65535)<<16)),X-=4,++ve;switch(X){case 3:ie^=(255&I.charCodeAt(ve+2))<<16;case 2:ie^=(255&I.charCodeAt(ve+1))<<8;case 1:ie=1540483477*(65535&(ie^=255&I.charCodeAt(ve)))+((1540483477*(ie>>>16)&65535)<<16)}return ie=1540483477*(65535&(ie^=ie>>>13))+((1540483477*(ie>>>16)&65535)<<16),(ie^=ie>>>15)>>>0};var $r=zr,Oi=ui.exports;cr.exports=$r,cr.exports.murmur3=$r,cr.exports.murmur2=Oi;var fn=o(cr.exports);class vi{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(S,D,X,ie){this.ids.push(zi(S)),this.positions.push(D,X,ie)}getPositions(S){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let D=zi(S),X=0,ie=this.ids.length-1;for(;X>1;this.ids[we]>=D?ie=we:X=we+1}let ve=[];for(;this.ids[X]===D;)ve.push({index:this.positions[3*X],start:this.positions[3*X+1],end:this.positions[3*X+2]}),X++;return ve}static serialize(S,D){let X=new Float64Array(S.ids),ie=new Uint32Array(S.positions);return Xi(X,ie,0,X.length-1),D&&D.push(X.buffer,ie.buffer),{ids:X,positions:ie}}static deserialize(S){let D=new vi;return D.ids=S.ids,D.positions=S.positions,D.indexed=!0,D}}function zi(I){let S=+I;return!isNaN(S)&&S<=Number.MAX_SAFE_INTEGER?S:fn(String(I))}function Xi(I,S,D,X){for(;D>1],ve=D-1,we=X+1;for(;;){do ve++;while(I[ve]ie);if(ve>=we)break;pn(I,ve,we),pn(S,3*ve,3*we),pn(S,3*ve+1,3*we+1),pn(S,3*ve+2,3*we+2)}we-D`u_${ie}`),this.type=X}setUniform(S,D,X){S.set(X.constantOr(this.value))}getBinding(S,D,X){return this.type==="color"?new no(S,D):new bi(S,D)}}class Pl{constructor(S,D){this.uniformNames=D.map(X=>`u_${X}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(S,D){this.pixelRatioFrom=D.pixelRatio,this.pixelRatioTo=S.pixelRatio,this.patternFrom=D.tlbr,this.patternTo=S.tlbr}setUniform(S,D,X,ie){let ve=ie==="u_pattern_to"?this.patternTo:ie==="u_pattern_from"?this.patternFrom:ie==="u_pixel_ratio_to"?this.pixelRatioTo:ie==="u_pixel_ratio_from"?this.pixelRatioFrom:null;ve&&S.set(ve)}getBinding(S,D,X){return X.substr(0,9)==="u_pattern"?new xo(S,D):new bi(S,D)}}class pu{constructor(S,D,X,ie){this.expression=S,this.type=X,this.maxValue=0,this.paintVertexAttributes=D.map(ve=>({name:`a_${ve}`,type:"Float32",components:X==="color"?2:1,offset:0})),this.paintVertexArray=new ie}populatePaintArray(S,D,X,ie,ve){let we=this.paintVertexArray.length,We=this.expression.evaluate(new cs(0),D,{},ie,[],ve);this.paintVertexArray.resize(S),this._setPaintValue(we,S,We)}updatePaintArray(S,D,X,ie){let ve=this.expression.evaluate({zoom:0},X,ie);this._setPaintValue(S,D,ve)}_setPaintValue(S,D,X){if(this.type==="color"){let ie=js(X);for(let ve=S;ve`u_${We}_t`),this.type=X,this.useIntegerZoom=ie,this.zoom=ve,this.maxValue=0,this.paintVertexAttributes=D.map(We=>({name:`a_${We}`,type:"Float32",components:X==="color"?4:2,offset:0})),this.paintVertexArray=new we}populatePaintArray(S,D,X,ie,ve){let we=this.expression.evaluate(new cs(this.zoom),D,{},ie,[],ve),We=this.expression.evaluate(new cs(this.zoom+1),D,{},ie,[],ve),ut=this.paintVertexArray.length;this.paintVertexArray.resize(S),this._setPaintValue(ut,S,we,We)}updatePaintArray(S,D,X,ie){let ve=this.expression.evaluate({zoom:this.zoom},X,ie),we=this.expression.evaluate({zoom:this.zoom+1},X,ie);this._setPaintValue(S,D,ve,we)}_setPaintValue(S,D,X,ie){if(this.type==="color"){let ve=js(X),we=js(ie);for(let We=S;We`#define HAS_UNIFORM_${ie}`))}return S}getBinderAttributes(){let S=[];for(let D in this.binders){let X=this.binders[D];if(X instanceof pu||X instanceof Il)for(let ie=0;ie!0){this.programConfigurations={};for(let ie of S)this.programConfigurations[ie.id]=new Zu(ie,D,X);this.needsUpload=!1,this._featureMap=new vi,this._bufferOffset=0}populatePaintArrays(S,D,X,ie,ve,we){for(let We in this.programConfigurations)this.programConfigurations[We].populatePaintArrays(S,D,ie,ve,we);D.id!==void 0&&this._featureMap.add(D.id,X,this._bufferOffset,S),this._bufferOffset=S,this.needsUpload=!0}updatePaintArrays(S,D,X,ie){for(let ve of X)this.needsUpload=this.programConfigurations[ve.id].updatePaintArrays(S,this._featureMap,D,ve,ie)||this.needsUpload}get(S){return this.programConfigurations[S]}upload(S){if(this.needsUpload){for(let D in this.programConfigurations)this.programConfigurations[D].upload(S);this.needsUpload=!1}}destroy(){for(let S in this.programConfigurations)this.programConfigurations[S].destroy()}}function rf(I,S){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[I]||[I.replace(`${S}-`,"").replace(/-/g,"_")]}function ds(I,S,D){let X={color:{source:Vr,composite:Zn},number:{source:Rr,composite:Vr}},ie=function(ve){return{"line-pattern":{source:Xu,composite:Xu},"fill-pattern":{source:Xu,composite:Xu},"fill-extrusion-pattern":{source:Xu,composite:Xu}}[ve]}(I);return ie&&ie[D]||X[S][D]}Si("ConstantBinder",El),Si("CrossFadedConstantBinder",Pl),Si("SourceExpressionBinder",pu),Si("CrossFadedCompositeBinder",fu),Si("CompositeExpressionBinder",Il),Si("ProgramConfiguration",Zu,{omit:["_buffers"]}),Si("ProgramConfigurationSet",Gu);let Wl=8192,Au=Math.pow(2,14)-1,Tu=-Au-1;function uf(I){let S=Wl/I.extent,D=I.loadGeometry();for(let X=0;Xwe.x+1||utwe.y+1)&&A("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return D}function df(I,S){return{type:I.type,id:I.id,properties:I.properties,geometry:S?uf(I):[]}}function Ef(I,S,D,X,ie){I.emplaceBack(2*S+(X+1)/2,2*D+(ie+1)/2)}class vf{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(D=>D.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new tu,this.indexArray=new se,this.segments=new ot,this.programConfigurations=new Gu(S.layers,S.zoom),this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){let ie=this.layers[0],ve=[],we=null,We=!1;ie.type==="circle"&&(we=ie.layout.get("circle-sort-key"),We=!we.isConstant());for(let{feature:ut,id:Mt,index:$t,sourceLayerIndex:vr}of S){let Sr=this.layers[0]._featureFilter.needGeometry,Br=df(ut,Sr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Br,X))continue;let Jr=We?we.evaluate(Br,{},X):void 0,li={id:Mt,properties:ut.properties,type:ut.type,sourceLayerIndex:vr,index:$t,geometry:Sr?Br.geometry:uf(ut),patterns:{},sortKey:Jr};ve.push(li)}We&&ve.sort((ut,Mt)=>ut.sortKey-Mt.sortKey);for(let ut of ve){let{geometry:Mt,index:$t,sourceLayerIndex:vr}=ut,Sr=S[$t].feature;this.addFeature(ut,Mt,$t,X),D.featureIndex.insert(Sr,Mt,$t,vr,this.index)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,Qe),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(S,D,X,ie){for(let ve of D)for(let we of ve){let We=we.x,ut=we.y;if(We<0||We>=Wl||ut<0||ut>=Wl)continue;let Mt=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,S.sortKey),$t=Mt.vertexLength;Ef(this.layoutVertexArray,We,ut,-1,-1),Ef(this.layoutVertexArray,We,ut,1,-1),Ef(this.layoutVertexArray,We,ut,1,1),Ef(this.layoutVertexArray,We,ut,-1,1),this.indexArray.emplaceBack($t,$t+1,$t+2),this.indexArray.emplaceBack($t,$t+3,$t+2),Mt.vertexLength+=4,Mt.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,X,{},ie)}}function fc(I,S){for(let D=0;D1){if(Qr(I,S))return!0;for(let X=0;X1?D:D.sub(S)._mult(ie)._add(S))}function on(I,S){let D,X,ie,ve=!1;for(let we=0;weS.y!=ie.y>S.y&&S.x<(ie.x-X.x)*(S.y-X.y)/(ie.y-X.y)+X.x&&(ve=!ve)}return ve}function Bn(I,S){let D=!1;for(let X=0,ie=I.length-1;XS.y!=we.y>S.y&&S.x<(we.x-ve.x)*(S.y-ve.y)/(we.y-ve.y)+ve.x&&(D=!D)}return D}function Ln(I,S,D){let X=D[0],ie=D[2];if(I.xie.x&&S.x>ie.x||I.yie.y&&S.y>ie.y)return!1;let ve=B(I,S,D[0]);return ve!==B(I,S,D[1])||ve!==B(I,S,D[2])||ve!==B(I,S,D[3])}function wn(I,S,D){let X=S.paint.get(I).value;return X.kind==="constant"?X.value:D.programConfigurations.get(S.id).getMaxValue(I)}function Ls(I){return Math.sqrt(I[0]*I[0]+I[1]*I[1])}function ua(I,S,D,X,ie){if(!S[0]&&!S[1])return I;let ve=l.convert(S)._mult(ie);D==="viewport"&&ve._rotate(-X);let we=[];for(let We=0;WeUi(Hi,li))}(Mt,ut),Br=vr?$t*We:$t;for(let Jr of ie)for(let li of Jr){let Hi=vr?li:Ui(li,ut),cn=Br,Za=hs([],[li.x,li.y,0,1],ut);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?cn*=Za[3]/we.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(cn*=we.cameraToCenterDistance/Za[3]),Be(Sr,Hi,cn))return!0}return!1}}function Ui(I,S){let D=hs([],[I.x,I.y,0,1],S);return new l(D[0]/D[3],D[1]/D[3])}class ro extends vf{}let na;Si("HeatmapBucket",ro,{omit:["layers"]});var On={get paint(){return na=na||new le({"heatmap-radius":new Os(ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Os(ce.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new ms(ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Nl(ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new ms(ce.paint_heatmap["heatmap-opacity"])})}};function In(I,{width:S,height:D},X,ie){if(ie){if(ie instanceof Uint8ClampedArray)ie=new Uint8Array(ie.buffer);else if(ie.length!==S*D*X)throw new RangeError(`mismatched image size. expected: ${ie.length} but got: ${S*D*X}`)}else ie=new Uint8Array(S*D*X);return I.width=S,I.height=D,I.data=ie,I}function Va(I,{width:S,height:D},X){if(S===I.width&&D===I.height)return;let ie=In({},{width:S,height:D},X);_s(I,ie,{x:0,y:0},{x:0,y:0},{width:Math.min(I.width,S),height:Math.min(I.height,D)},X),I.width=S,I.height=D,I.data=ie.data}function _s(I,S,D,X,ie,ve){if(ie.width===0||ie.height===0)return S;if(ie.width>I.width||ie.height>I.height||D.x>I.width-ie.width||D.y>I.height-ie.height)throw new RangeError("out of range source coordinates for image copy");if(ie.width>S.width||ie.height>S.height||X.x>S.width-ie.width||X.y>S.height-ie.height)throw new RangeError("out of range destination coordinates for image copy");let we=I.data,We=S.data;if(we===We)throw new Error("srcData equals dstData, so image is already copied");for(let ut=0;ut{S[I.evaluationKey]=ut;let Mt=I.expression.evaluate(S);ie.data[we+We+0]=Math.floor(255*Mt.r/Mt.a),ie.data[we+We+1]=Math.floor(255*Mt.g/Mt.a),ie.data[we+We+2]=Math.floor(255*Mt.b/Mt.a),ie.data[we+We+3]=Math.floor(255*Mt.a)};if(I.clips)for(let we=0,We=0;we80*D){We=1/0,ut=1/0;let $t=-1/0,vr=-1/0;for(let Sr=D;Sr$t&&($t=Br),Jr>vr&&(vr=Jr)}Mt=Math.max($t-We,vr-ut),Mt=Mt!==0?32767/Mt:0}return Lf(ve,we,D,We,ut,Mt,0),we}function _f(I,S,D,X,ie){let ve;if(ie===function(we,We,ut,Mt){let $t=0;for(let vr=We,Sr=ut-Mt;vr0)for(let we=S;we=S;we-=X)ve=lr(we/X|0,I[we],I[we+1],ve);return ve&&ne(ve,ve.next)&&(Je(ve),ve=ve.next),ve}function bf(I,S){if(!I)return I;S||(S=I);let D,X=I;do if(D=!1,X.steiner||!ne(X,X.next)&&_e(X.prev,X,X.next)!==0)X=X.next;else{if(Je(X),X=S=X.prev,X===X.next)break;D=!0}while(D||X!==S);return S}function Lf(I,S,D,X,ie,ve,we){if(!I)return;!we&&ve&&function(ut,Mt,$t,vr){let Sr=ut;do Sr.z===0&&(Sr.z=R(Sr.x,Sr.y,Mt,$t,vr)),Sr.prevZ=Sr.prev,Sr.nextZ=Sr.next,Sr=Sr.next;while(Sr!==ut);Sr.prevZ.nextZ=null,Sr.prevZ=null,function(Br){let Jr,li=1;do{let Hi,cn=Br;Br=null;let Za=null;for(Jr=0;cn;){Jr++;let Rn=cn,La=0;for(let kl=0;kl0||So>0&&Rn;)La!==0&&(So===0||!Rn||cn.z<=Rn.z)?(Hi=cn,cn=cn.nextZ,La--):(Hi=Rn,Rn=Rn.nextZ,So--),Za?Za.nextZ=Hi:Br=Hi,Hi.prevZ=Za,Za=Hi;cn=Rn}Za.nextZ=null,li*=2}while(Jr>1)}(Sr)}(I,X,ie,ve);let We=I;for(;I.prev!==I.next;){let ut=I.prev,Mt=I.next;if(ve?hf(I,X,ie,ve):Hu(I))S.push(ut.i,I.i,Mt.i),Je(I),I=Mt.next,We=Mt.next;else if((I=Mt)===We){we?we===1?Lf(I=yf(bf(I),S),S,D,X,ie,ve,2):we===2&&Fl(I,S,D,X,ie,ve):Lf(bf(I),S,D,X,ie,ve,1);break}}}function Hu(I){let S=I.prev,D=I,X=I.next;if(_e(S,D,X)>=0)return!1;let ie=S.x,ve=D.x,we=X.x,We=S.y,ut=D.y,Mt=X.y,$t=ieve?ie>we?ie:we:ve>we?ve:we,Br=We>ut?We>Mt?We:Mt:ut>Mt?ut:Mt,Jr=X.next;for(;Jr!==S;){if(Jr.x>=$t&&Jr.x<=Sr&&Jr.y>=vr&&Jr.y<=Br&&O(ie,We,ve,ut,we,Mt,Jr.x,Jr.y)&&_e(Jr.prev,Jr,Jr.next)>=0)return!1;Jr=Jr.next}return!0}function hf(I,S,D,X){let ie=I.prev,ve=I,we=I.next;if(_e(ie,ve,we)>=0)return!1;let We=ie.x,ut=ve.x,Mt=we.x,$t=ie.y,vr=ve.y,Sr=we.y,Br=Weut?We>Mt?We:Mt:ut>Mt?ut:Mt,Hi=$t>vr?$t>Sr?$t:Sr:vr>Sr?vr:Sr,cn=R(Br,Jr,S,D,X),Za=R(li,Hi,S,D,X),Rn=I.prevZ,La=I.nextZ;for(;Rn&&Rn.z>=cn&&La&&La.z<=Za;){if(Rn.x>=Br&&Rn.x<=li&&Rn.y>=Jr&&Rn.y<=Hi&&Rn!==ie&&Rn!==we&&O(We,$t,ut,vr,Mt,Sr,Rn.x,Rn.y)&&_e(Rn.prev,Rn,Rn.next)>=0||(Rn=Rn.prevZ,La.x>=Br&&La.x<=li&&La.y>=Jr&&La.y<=Hi&&La!==ie&&La!==we&&O(We,$t,ut,vr,Mt,Sr,La.x,La.y)&&_e(La.prev,La,La.next)>=0))return!1;La=La.nextZ}for(;Rn&&Rn.z>=cn;){if(Rn.x>=Br&&Rn.x<=li&&Rn.y>=Jr&&Rn.y<=Hi&&Rn!==ie&&Rn!==we&&O(We,$t,ut,vr,Mt,Sr,Rn.x,Rn.y)&&_e(Rn.prev,Rn,Rn.next)>=0)return!1;Rn=Rn.prevZ}for(;La&&La.z<=Za;){if(La.x>=Br&&La.x<=li&&La.y>=Jr&&La.y<=Hi&&La!==ie&&La!==we&&O(We,$t,ut,vr,Mt,Sr,La.x,La.y)&&_e(La.prev,La,La.next)>=0)return!1;La=La.nextZ}return!0}function yf(I,S){let D=I;do{let X=D.prev,ie=D.next.next;!ne(X,ie)&&Le(X,D,D.next,ie)&&dr(X,ie)&&dr(ie,X)&&(S.push(X.i,D.i,ie.i),Je(D),Je(D.next),D=I=ie),D=D.next}while(D!==I);return bf(D)}function Fl(I,S,D,X,ie,ve){let we=I;do{let We=we.next.next;for(;We!==we.prev;){if(we.i!==We.i&&K(we,We)){let ut=Er(we,We);return we=bf(we,we.next),ut=bf(ut,ut.next),Lf(we,S,D,X,ie,ve,0),void Lf(ut,S,D,X,ie,ve,0)}We=We.next}we=we.next}while(we!==I)}function wf(I,S){return I.x-S.x}function cu(I,S){let D=function(ie,ve){let we=ve,We=ie.x,ut=ie.y,Mt,$t=-1/0;do{if(ut<=we.y&&ut>=we.next.y&&we.next.y!==we.y){let li=we.x+(ut-we.y)*(we.next.x-we.x)/(we.next.y-we.y);if(li<=We&&li>$t&&($t=li,Mt=we.x=we.x&&we.x>=Sr&&We!==we.x&&O(utMt.x||we.x===Mt.x&&Y(Mt,we)))&&(Mt=we,Jr=li)}we=we.next}while(we!==vr);return Mt}(I,S);if(!D)return S;let X=Er(D,I);return bf(X,X.next),bf(D,D.next)}function Y(I,S){return _e(I.prev,I,S.prev)<0&&_e(S.next,I,I.next)<0}function R(I,S,D,X,ie){return(I=1431655765&((I=858993459&((I=252645135&((I=16711935&((I=(I-D)*ie|0)|I<<8))|I<<4))|I<<2))|I<<1))|(S=1431655765&((S=858993459&((S=252645135&((S=16711935&((S=(S-X)*ie|0)|S<<8))|S<<4))|S<<2))|S<<1))<<1}function J(I){let S=I,D=I;do(S.x=(I-we)*(ve-We)&&(I-we)*(X-We)>=(D-we)*(S-We)&&(D-we)*(ve-We)>=(ie-we)*(X-We)}function K(I,S){return I.next.i!==S.i&&I.prev.i!==S.i&&!function(D,X){let ie=D;do{if(ie.i!==D.i&&ie.next.i!==D.i&&ie.i!==X.i&&ie.next.i!==X.i&&Le(ie,ie.next,D,X))return!0;ie=ie.next}while(ie!==D);return!1}(I,S)&&(dr(I,S)&&dr(S,I)&&function(D,X){let ie=D,ve=!1,we=(D.x+X.x)/2,We=(D.y+X.y)/2;do ie.y>We!=ie.next.y>We&&ie.next.y!==ie.y&&we<(ie.next.x-ie.x)*(We-ie.y)/(ie.next.y-ie.y)+ie.x&&(ve=!ve),ie=ie.next;while(ie!==D);return ve}(I,S)&&(_e(I.prev,I,S.prev)||_e(I,S.prev,S))||ne(I,S)&&_e(I.prev,I,I.next)>0&&_e(S.prev,S,S.next)>0)}function _e(I,S,D){return(S.y-I.y)*(D.x-S.x)-(S.x-I.x)*(D.y-S.y)}function ne(I,S){return I.x===S.x&&I.y===S.y}function Le(I,S,D,X){let ie=Ct(_e(I,S,D)),ve=Ct(_e(I,S,X)),we=Ct(_e(D,X,I)),We=Ct(_e(D,X,S));return ie!==ve&&we!==We||!(ie!==0||!Ze(I,D,S))||!(ve!==0||!Ze(I,X,S))||!(we!==0||!Ze(D,I,X))||!(We!==0||!Ze(D,S,X))}function Ze(I,S,D){return S.x<=Math.max(I.x,D.x)&&S.x>=Math.min(I.x,D.x)&&S.y<=Math.max(I.y,D.y)&&S.y>=Math.min(I.y,D.y)}function Ct(I){return I>0?1:I<0?-1:0}function dr(I,S){return _e(I.prev,I,I.next)<0?_e(I,S,I.next)>=0&&_e(I,I.prev,S)>=0:_e(I,S,I.prev)<0||_e(I,I.next,S)<0}function Er(I,S){let D=ht(I.i,I.x,I.y),X=ht(S.i,S.x,S.y),ie=I.next,ve=S.prev;return I.next=S,S.prev=I,D.next=ie,ie.prev=D,X.next=D,D.prev=X,ve.next=X,X.prev=ve,X}function lr(I,S,D,X){let ie=ht(I,S,D);return X?(ie.next=X.next,ie.prev=X,X.next.prev=ie,X.next=ie):(ie.prev=ie,ie.next=ie),ie}function Je(I){I.next.prev=I.prev,I.prev.next=I.next,I.prevZ&&(I.prevZ.nextZ=I.nextZ),I.nextZ&&(I.nextZ.prevZ=I.prevZ)}function ht(I,S,D){return{i:I,x:S,y:D,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function bt(I,S,D){let X=D.patternDependencies,ie=!1;for(let ve of S){let we=ve.paint.get(`${I}-pattern`);we.isConstant()||(ie=!0);let We=we.constantOr(null);We&&(ie=!0,X[We.to]=!0,X[We.from]=!0)}return ie}function Kt(I,S,D,X,ie){let ve=ie.patternDependencies;for(let we of S){let We=we.paint.get(`${I}-pattern`).value;if(We.kind!=="constant"){let ut=We.evaluate({zoom:X-1},D,{},ie.availableImages),Mt=We.evaluate({zoom:X},D,{},ie.availableImages),$t=We.evaluate({zoom:X+1},D,{},ie.availableImages);ut=ut&&ut.name?ut.name:ut,Mt=Mt&&Mt.name?Mt.name:Mt,$t=$t&&$t.name?$t.name:$t,ve[ut]=!0,ve[Mt]=!0,ve[$t]=!0,D.patterns[we.id]={min:ut,mid:Mt,max:$t}}}return D}class sr{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(D=>D.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Wu,this.indexArray=new se,this.indexArray2=new ze,this.programConfigurations=new Gu(S.layers,S.zoom),this.segments=new ot,this.segments2=new ot,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){this.hasPattern=bt("fill",this.layers,D);let ie=this.layers[0].layout.get("fill-sort-key"),ve=!ie.isConstant(),we=[];for(let{feature:We,id:ut,index:Mt,sourceLayerIndex:$t}of S){let vr=this.layers[0]._featureFilter.needGeometry,Sr=df(We,vr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Sr,X))continue;let Br=ve?ie.evaluate(Sr,{},X,D.availableImages):void 0,Jr={id:ut,properties:We.properties,type:We.type,sourceLayerIndex:$t,index:Mt,geometry:vr?Sr.geometry:uf(We),patterns:{},sortKey:Br};we.push(Jr)}ve&&we.sort((We,ut)=>We.sortKey-ut.sortKey);for(let We of we){let{geometry:ut,index:Mt,sourceLayerIndex:$t}=We;if(this.hasPattern){let vr=Kt("fill",this.layers,We,this.zoom,D);this.patternFeatures.push(vr)}else this.addFeature(We,ut,Mt,X,{});D.featureIndex.insert(S[Mt].feature,ut,Mt,$t,this.index)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}addFeatures(S,D,X){for(let ie of this.patternFeatures)this.addFeature(ie,ie.geometry,ie.index,D,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,kf),this.indexBuffer=S.createIndexBuffer(this.indexArray),this.indexBuffer2=S.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(S,D,X,ie,ve){for(let we of Ys(D,500)){let We=0;for(let Br of we)We+=Br.length;let ut=this.segments.prepareSegment(We,this.layoutVertexArray,this.indexArray),Mt=ut.vertexLength,$t=[],vr=[];for(let Br of we){if(Br.length===0)continue;Br!==we[0]&&vr.push($t.length/2);let Jr=this.segments2.prepareSegment(Br.length,this.layoutVertexArray,this.indexArray2),li=Jr.vertexLength;this.layoutVertexArray.emplaceBack(Br[0].x,Br[0].y),this.indexArray2.emplaceBack(li+Br.length-1,li),$t.push(Br[0].x),$t.push(Br[0].y);for(let Hi=1;Hi>3}if(ie--,X===1||X===2)ve+=I.readSVarint(),we+=I.readSVarint(),X===1&&(S&&We.push(S),S=[]),S.push(new ci(ve,we));else{if(X!==7)throw new Error("unknown command "+X);S&&S.push(S[0].clone())}}return S&&We.push(S),We},Ki.prototype.bbox=function(){var I=this._pbf;I.pos=this._geometry;for(var S=I.readVarint()+I.pos,D=1,X=0,ie=0,ve=0,we=1/0,We=-1/0,ut=1/0,Mt=-1/0;I.pos>3}if(X--,D===1||D===2)(ie+=I.readSVarint())We&&(We=ie),(ve+=I.readSVarint())Mt&&(Mt=ve);else if(D!==7)throw new Error("unknown command "+D)}return[we,ut,We,Mt]},Ki.prototype.toGeoJSON=function(I,S,D){var X,ie,ve=this.extent*Math.pow(2,D),we=this.extent*I,We=this.extent*S,ut=this.loadGeometry(),Mt=Ki.types[this.type];function $t(Br){for(var Jr=0;Jr>3;ie=we===1?X.readString():we===2?X.readFloat():we===3?X.readDouble():we===4?X.readVarint64():we===5?X.readVarint():we===6?X.readSVarint():we===7?X.readBoolean():null}return ie}(D))}Pn.prototype.feature=function(I){if(I<0||I>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[I];var S=this._pbf.readVarint()+this._pbf.pos;return new ca(this._pbf,S,this.extent,this._keys,this._values)};var xa=Tn;function Zo(I,S,D){if(I===3){var X=new xa(D,D.readVarint()+D.pos);X.length&&(S[X.name]=X)}}Nr.VectorTile=function(I,S){this.layers=I.readFields(Zo,{},S)},Nr.VectorTileFeature=Cn,Nr.VectorTileLayer=Tn;let ru=Nr.VectorTileFeature.types,yu=Math.pow(2,13);function Du(I,S,D,X,ie,ve,we,We){I.emplaceBack(S,D,2*Math.floor(X*yu)+we,ie*yu*2,ve*yu*2,Math.round(We))}class vu{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(D=>D.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new Qu,this.centroidVertexArray=new iu,this.indexArray=new se,this.programConfigurations=new Gu(S.layers,S.zoom),this.segments=new ot,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){this.features=[],this.hasPattern=bt("fill-extrusion",this.layers,D);for(let{feature:ie,id:ve,index:we,sourceLayerIndex:We}of S){let ut=this.layers[0]._featureFilter.needGeometry,Mt=df(ie,ut);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Mt,X))continue;let $t={id:ve,sourceLayerIndex:We,index:we,geometry:ut?Mt.geometry:uf(ie),properties:ie.properties,type:ie.type,patterns:{}};this.hasPattern?this.features.push(Kt("fill-extrusion",this.layers,$t,this.zoom,D)):this.addFeature($t,$t.geometry,we,X,{}),D.featureIndex.insert(ie,$t.geometry,we,We,this.index,!0)}}addFeatures(S,D,X){for(let ie of this.features){let{geometry:ve}=ie;this.addFeature(ie,ve,ie.index,D,X)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,Tr),this.centroidVertexBuffer=S.createVertexBuffer(this.centroidVertexArray,Lt.members,!0),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(S,D,X,ie,ve){for(let we of Ys(D,500)){let We={x:0,y:0,vertexCount:0},ut=0;for(let Jr of we)ut+=Jr.length;let Mt=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Jr of we){if(Jr.length===0||$u(Jr))continue;let li=0;for(let Hi=0;Hi=1){let Za=Jr[Hi-1];if(!zu(cn,Za)){Mt.vertexLength+4>ot.MAX_VERTEX_ARRAY_LENGTH&&(Mt=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let Rn=cn.sub(Za)._perp()._unit(),La=Za.dist(cn);li+La>32768&&(li=0),Du(this.layoutVertexArray,cn.x,cn.y,Rn.x,Rn.y,0,0,li),Du(this.layoutVertexArray,cn.x,cn.y,Rn.x,Rn.y,0,1,li),We.x+=2*cn.x,We.y+=2*cn.y,We.vertexCount+=2,li+=La,Du(this.layoutVertexArray,Za.x,Za.y,Rn.x,Rn.y,0,0,li),Du(this.layoutVertexArray,Za.x,Za.y,Rn.x,Rn.y,0,1,li),We.x+=2*Za.x,We.y+=2*Za.y,We.vertexCount+=2;let So=Mt.vertexLength;this.indexArray.emplaceBack(So,So+2,So+1),this.indexArray.emplaceBack(So+1,So+2,So+3),Mt.vertexLength+=4,Mt.primitiveLength+=2}}}}if(Mt.vertexLength+ut>ot.MAX_VERTEX_ARRAY_LENGTH&&(Mt=this.segments.prepareSegment(ut,this.layoutVertexArray,this.indexArray)),ru[S.type]!=="Polygon")continue;let $t=[],vr=[],Sr=Mt.vertexLength;for(let Jr of we)if(Jr.length!==0){Jr!==we[0]&&vr.push($t.length/2);for(let li=0;liWl)||I.y===S.y&&(I.y<0||I.y>Wl)}function $u(I){return I.every(S=>S.x<0)||I.every(S=>S.x>Wl)||I.every(S=>S.y<0)||I.every(S=>S.y>Wl)}let Vf;Si("FillExtrusionBucket",vu,{omit:["layers","features"]});var wd={get paint(){return Vf=Vf||new le({"fill-extrusion-opacity":new ms(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Os(ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new ms(ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new ms(ce["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Xl(ce["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Os(ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Os(ce["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new ms(ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Ad extends q{constructor(S){super(S,wd)}createBucket(S){return new vu(S)}queryRadius(){return Ls(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(S,D,X,ie,ve,we,We,ut){let Mt=ua(S,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),we.angle,We),$t=this.paint.get("fill-extrusion-height").evaluate(D,X),vr=this.paint.get("fill-extrusion-base").evaluate(D,X),Sr=function(Jr,li,Hi,cn){let Za=[];for(let Rn of Jr){let La=[Rn.x,Rn.y,0,1];hs(La,La,li),Za.push(new l(La[0]/La[3],La[1]/La[3]))}return Za}(Mt,ut),Br=function(Jr,li,Hi,cn){let Za=[],Rn=[],La=cn[8]*li,So=cn[9]*li,kl=cn[10]*li,mu=cn[11]*li,Iu=cn[8]*Hi,su=cn[9]*Hi,yl=cn[10]*Hi,Eu=cn[11]*Hi;for(let bu of Jr){let _u=[],Xs=[];for(let Lu of bu){let xu=Lu.x,qu=Lu.y,vc=cn[0]*xu+cn[4]*qu+cn[12],cc=cn[1]*xu+cn[5]*qu+cn[13],Lh=cn[2]*xu+cn[6]*qu+cn[14],Qp=cn[3]*xu+cn[7]*qu+cn[15],ud=Lh+kl,Ph=Qp+mu,Wd=vc+Iu,jd=cc+su,Xd=Lh+yl,Jc=Qp+Eu,zh=new l((vc+La)/Ph,(cc+So)/Ph);zh.z=ud/Ph,_u.push(zh);let Cd=new l(Wd/Jc,jd/Jc);Cd.z=Xd/Jc,Xs.push(Cd)}Za.push(_u),Rn.push(Xs)}return[Za,Rn]}(ie,vr,$t,ut);return function(Jr,li,Hi){let cn=1/0;qt(Hi,li)&&(cn=Kp(Hi,li[0]));for(let Za=0;ZaD.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(D=>{this.gradients[D.id]={}}),this.layoutVertexArray=new Ju,this.layoutVertexArray2=new ju,this.indexArray=new se,this.programConfigurations=new Gu(S.layers,S.zoom),this.segments=new ot,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){this.hasPattern=bt("line",this.layers,D);let ie=this.layers[0].layout.get("line-sort-key"),ve=!ie.isConstant(),we=[];for(let{feature:We,id:ut,index:Mt,sourceLayerIndex:$t}of S){let vr=this.layers[0]._featureFilter.needGeometry,Sr=df(We,vr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Sr,X))continue;let Br=ve?ie.evaluate(Sr,{},X):void 0,Jr={id:ut,properties:We.properties,type:We.type,sourceLayerIndex:$t,index:Mt,geometry:vr?Sr.geometry:uf(We),patterns:{},sortKey:Br};we.push(Jr)}ve&&we.sort((We,ut)=>We.sortKey-ut.sortKey);for(let We of we){let{geometry:ut,index:Mt,sourceLayerIndex:$t}=We;if(this.hasPattern){let vr=Kt("line",this.layers,We,this.zoom,D);this.patternFeatures.push(vr)}else this.addFeature(We,ut,Mt,X,{});D.featureIndex.insert(S[Mt].feature,ut,Mt,$t,this.index)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}addFeatures(S,D,X){for(let ie of this.patternFeatures)this.addFeature(ie,ie.geometry,ie.index,D,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=S.createVertexBuffer(this.layoutVertexArray2,vv)),this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,pv),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(S){if(S.properties&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_end"))return{start:+S.properties.mapbox_clip_start,end:+S.properties.mapbox_clip_end}}addFeature(S,D,X,ie,ve){let we=this.layers[0].layout,We=we.get("line-join").evaluate(S,{}),ut=we.get("line-cap"),Mt=we.get("line-miter-limit"),$t=we.get("line-round-limit");this.lineClips=this.lineFeatureClips(S);for(let vr of D)this.addLine(vr,S,We,ut,Mt,$t);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,X,ve,ie)}addLine(S,D,X,ie,ve,we){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let cn=0;cn=2&&S[ut-1].equals(S[ut-2]);)ut--;let Mt=0;for(;Mt0;if(mu&&cn>Mt){let Eu=Sr.dist(Br);if(Eu>2*$t){let bu=Sr.sub(Sr.sub(Br)._mult($t/Eu)._round());this.updateDistance(Br,bu),this.addCurrentVertex(bu,li,0,0,vr),Br=bu}}let su=Br&&Jr,yl=su?X:We?"butt":ie;if(su&&yl==="round"&&(Sove&&(yl="bevel"),yl==="bevel"&&(So>2&&(yl="flipbevel"),So100)Za=Hi.mult(-1);else{let Eu=So*li.add(Hi).mag()/li.sub(Hi).mag();Za._perp()._mult(Eu*(Iu?-1:1))}this.addCurrentVertex(Sr,Za,0,0,vr),this.addCurrentVertex(Sr,Za.mult(-1),0,0,vr)}else if(yl==="bevel"||yl==="fakeround"){let Eu=-Math.sqrt(So*So-1),bu=Iu?Eu:0,_u=Iu?0:Eu;if(Br&&this.addCurrentVertex(Sr,li,bu,_u,vr),yl==="fakeround"){let Xs=Math.round(180*kl/Math.PI/20);for(let Lu=1;Lu2*$t){let bu=Sr.add(Jr.sub(Sr)._mult($t/Eu)._round());this.updateDistance(Sr,bu),this.addCurrentVertex(bu,Hi,0,0,vr),Sr=bu}}}}addCurrentVertex(S,D,X,ie,ve,we=!1){let We=D.y*ie-D.x,ut=-D.y-D.x*ie;this.addHalfVertex(S,D.x+D.y*X,D.y-D.x*X,we,!1,X,ve),this.addHalfVertex(S,We,ut,we,!0,-ie,ve),this.distance>Lp/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(S,D,X,ie,ve,we))}addHalfVertex({x:S,y:D},X,ie,ve,we,We,ut){let Mt=.5*(this.lineClips?this.scaledDistance*(Lp-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((S<<1)+(ve?1:0),(D<<1)+(we?1:0),Math.round(63*X)+128,Math.round(63*ie)+128,1+(We===0?0:We<0?-1:1)|(63&Mt)<<2,Mt>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let $t=ut.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,$t),ut.primitiveLength++),we?this.e2=$t:this.e1=$t}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(S,D){this.distance+=S.dist(D),this.updateScaledDistance()}}let Pp,ng;Si("LineBucket",Jp,{omit:["layers","patternFeatures"]});var hm={get paint(){return ng=ng||new le({"line-opacity":new Os(ce.paint_line["line-opacity"]),"line-color":new Os(ce.paint_line["line-color"]),"line-translate":new ms(ce.paint_line["line-translate"]),"line-translate-anchor":new ms(ce.paint_line["line-translate-anchor"]),"line-width":new Os(ce.paint_line["line-width"]),"line-gap-width":new Os(ce.paint_line["line-gap-width"]),"line-offset":new Os(ce.paint_line["line-offset"]),"line-blur":new Os(ce.paint_line["line-blur"]),"line-dasharray":new Vl(ce.paint_line["line-dasharray"]),"line-pattern":new Xl(ce.paint_line["line-pattern"]),"line-gradient":new Nl(ce.paint_line["line-gradient"])})},get layout(){return Pp=Pp||new le({"line-cap":new ms(ce.layout_line["line-cap"]),"line-join":new Os(ce.layout_line["line-join"]),"line-miter-limit":new ms(ce.layout_line["line-miter-limit"]),"line-round-limit":new ms(ce.layout_line["line-round-limit"]),"line-sort-key":new Os(ce.layout_line["line-sort-key"])})}};class vh extends Os{possiblyEvaluate(S,D){return D=new cs(Math.floor(D.zoom),{now:D.now,fadeDuration:D.fadeDuration,zoomHistory:D.zoomHistory,transition:D.transition}),super.possiblyEvaluate(S,D)}evaluate(S,D,X,ie){return D=L({},D,{zoom:Math.floor(D.zoom)}),super.evaluate(S,D,X,ie)}}let dm;class ag extends q{constructor(S){super(S,hm),this.gradientVersion=0,dm||(dm=new vh(hm.paint.properties["line-width"].specification),dm.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(S){if(S==="line-gradient"){let D=this.gradientExpression();this.stepInterpolant=!!function(X){return X._styleExpression!==void 0}(D)&&D._styleExpression.expression instanceof Zi,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(S,D){super.recalculate(S,D),this.paint._values["line-floorwidth"]=dm.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,S)}createBucket(S){return new Jp(S)}queryRadius(S){let D=S,X=jh(wn("line-width",this,D),wn("line-gap-width",this,D)),ie=wn("line-offset",this,D);return X/2+Math.abs(ie)+Ls(this.paint.get("line-translate"))}queryIntersectsFeature(S,D,X,ie,ve,we,We){let ut=ua(S,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),we.angle,We),Mt=We/2*jh(this.paint.get("line-width").evaluate(D,X),this.paint.get("line-gap-width").evaluate(D,X)),$t=this.paint.get("line-offset").evaluate(D,X);return $t&&(ie=function(vr,Sr){let Br=[];for(let Jr=0;Jr=3){for(let Hi=0;Hi0?S+2*I:I}let ry=Ge([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),w1=Ge([{name:"a_projected_pos",components:3,type:"Float32"}],4);Ge([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let A1=Ge([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Ge([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let og=Ge([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),iy=Ge([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function ny(I,S,D){return I.sections.forEach(X=>{X.text=function(ie,ve,we){let We=ve.layout.get("text-transform").evaluate(we,{});return We==="uppercase"?ie=ie.toLocaleUpperCase():We==="lowercase"&&(ie=ie.toLocaleLowerCase()),Js.applyArabicShaping&&(ie=Js.applyArabicShaping(ie)),ie}(X.text,S,D)}),I}Ge([{name:"triangle",components:3,type:"Uint16"}]),Ge([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Ge([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),Ge([{type:"Float32",name:"offsetX"}]),Ge([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Ge([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let wc={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};var Wf=24,Ed=ic,sg=function(I,S,D,X,ie){var ve,we,We=8*ie-X-1,ut=(1<>1,$t=-7,vr=D?ie-1:0,Sr=D?-1:1,Br=I[S+vr];for(vr+=Sr,ve=Br&(1<<-$t)-1,Br>>=-$t,$t+=We;$t>0;ve=256*ve+I[S+vr],vr+=Sr,$t-=8);for(we=ve&(1<<-$t)-1,ve>>=-$t,$t+=X;$t>0;we=256*we+I[S+vr],vr+=Sr,$t-=8);if(ve===0)ve=1-Mt;else{if(ve===ut)return we?NaN:1/0*(Br?-1:1);we+=Math.pow(2,X),ve-=Mt}return(Br?-1:1)*we*Math.pow(2,ve-X)},T1=function(I,S,D,X,ie,ve){var we,We,ut,Mt=8*ve-ie-1,$t=(1<>1,Sr=ie===23?Math.pow(2,-24)-Math.pow(2,-77):0,Br=X?0:ve-1,Jr=X?1:-1,li=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(We=isNaN(S)?1:0,we=$t):(we=Math.floor(Math.log(S)/Math.LN2),S*(ut=Math.pow(2,-we))<1&&(we--,ut*=2),(S+=we+vr>=1?Sr/ut:Sr*Math.pow(2,1-vr))*ut>=2&&(we++,ut/=2),we+vr>=$t?(We=0,we=$t):we+vr>=1?(We=(S*ut-1)*Math.pow(2,ie),we+=vr):(We=S*Math.pow(2,vr-1)*Math.pow(2,ie),we=0));ie>=8;I[D+Br]=255&We,Br+=Jr,We/=256,ie-=8);for(we=we<0;I[D+Br]=255&we,Br+=Jr,we/=256,Mt-=8);I[D+Br-Jr]|=128*li};function ic(I){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(I)?I:new Uint8Array(I||0),this.pos=0,this.type=0,this.length=this.buf.length}ic.Varint=0,ic.Fixed64=1,ic.Bytes=2,ic.Fixed32=5;var qx=4294967296,ay=1/qx,Mw=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function zp(I){return I.type===ic.Bytes?I.readVarint()+I.pos:I.pos+1}function oy(I,S,D){return D?4294967296*S+(I>>>0):4294967296*(S>>>0)+(I>>>0)}function Ew(I,S,D){var X=S<=16383?1:S<=2097151?2:S<=268435455?3:Math.floor(Math.log(S)/(7*Math.LN2));D.realloc(X);for(var ie=D.pos-1;ie>=I;ie--)D.buf[ie+X]=D.buf[ie]}function Nx(I,S){for(var D=0;D>>8,I[D+2]=S>>>16,I[D+3]=S>>>24}function yC(I,S){return(I[S]|I[S+1]<<8|I[S+2]<<16)+(I[S+3]<<24)}ic.prototype={destroy:function(){this.buf=null},readFields:function(I,S,D){for(D=D||this.length;this.pos>3,ve=this.pos;this.type=7&X,I(ie,S,this),this.pos===ve&&this.skip(X)}return S},readMessage:function(I,S){return this.readFields(I,S,this.readVarint()+this.pos)},readFixed32:function(){var I=lg(this.buf,this.pos);return this.pos+=4,I},readSFixed32:function(){var I=yC(this.buf,this.pos);return this.pos+=4,I},readFixed64:function(){var I=lg(this.buf,this.pos)+lg(this.buf,this.pos+4)*qx;return this.pos+=8,I},readSFixed64:function(){var I=lg(this.buf,this.pos)+yC(this.buf,this.pos+4)*qx;return this.pos+=8,I},readFloat:function(){var I=sg(this.buf,this.pos,!0,23,4);return this.pos+=4,I},readDouble:function(){var I=sg(this.buf,this.pos,!0,52,8);return this.pos+=8,I},readVarint:function(I){var S,D,X=this.buf;return S=127&(D=X[this.pos++]),D<128?S:(S|=(127&(D=X[this.pos++]))<<7,D<128?S:(S|=(127&(D=X[this.pos++]))<<14,D<128?S:(S|=(127&(D=X[this.pos++]))<<21,D<128?S:function(ie,ve,we){var We,ut,Mt=we.buf;if(We=(112&(ut=Mt[we.pos++]))>>4,ut<128||(We|=(127&(ut=Mt[we.pos++]))<<3,ut<128)||(We|=(127&(ut=Mt[we.pos++]))<<10,ut<128)||(We|=(127&(ut=Mt[we.pos++]))<<17,ut<128)||(We|=(127&(ut=Mt[we.pos++]))<<24,ut<128)||(We|=(1&(ut=Mt[we.pos++]))<<31,ut<128))return oy(ie,We,ve);throw new Error("Expected varint not more than 10 bytes")}(S|=(15&(D=X[this.pos]))<<28,I,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var I=this.readVarint();return I%2==1?(I+1)/-2:I/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var I=this.readVarint()+this.pos,S=this.pos;return this.pos=I,I-S>=12&&Mw?function(D,X,ie){return Mw.decode(D.subarray(X,ie))}(this.buf,S,I):function(D,X,ie){for(var ve="",we=X;we239?4:$t>223?3:$t>191?2:1;if(we+Sr>ie)break;Sr===1?$t<128&&(vr=$t):Sr===2?(192&(We=D[we+1]))==128&&(vr=(31&$t)<<6|63&We)<=127&&(vr=null):Sr===3?(ut=D[we+2],(192&(We=D[we+1]))==128&&(192&ut)==128&&((vr=(15&$t)<<12|(63&We)<<6|63&ut)<=2047||vr>=55296&&vr<=57343)&&(vr=null)):Sr===4&&(ut=D[we+2],Mt=D[we+3],(192&(We=D[we+1]))==128&&(192&ut)==128&&(192&Mt)==128&&((vr=(15&$t)<<18|(63&We)<<12|(63&ut)<<6|63&Mt)<=65535||vr>=1114112)&&(vr=null)),vr===null?(vr=65533,Sr=1):vr>65535&&(vr-=65536,ve+=String.fromCharCode(vr>>>10&1023|55296),vr=56320|1023&vr),ve+=String.fromCharCode(vr),we+=Sr}return ve}(this.buf,S,I)},readBytes:function(){var I=this.readVarint()+this.pos,S=this.buf.subarray(this.pos,I);return this.pos=I,S},readPackedVarint:function(I,S){if(this.type!==ic.Bytes)return I.push(this.readVarint(S));var D=zp(this);for(I=I||[];this.pos127;);else if(S===ic.Bytes)this.pos=this.readVarint()+this.pos;else if(S===ic.Fixed32)this.pos+=4;else{if(S!==ic.Fixed64)throw new Error("Unimplemented type: "+S);this.pos+=8}},writeTag:function(I,S){this.writeVarint(I<<3|S)},realloc:function(I){for(var S=this.length||16;S268435455||I<0?function(S,D){var X,ie;if(S>=0?(X=S%4294967296|0,ie=S/4294967296|0):(ie=~(-S/4294967296),4294967295^(X=~(-S%4294967296))?X=X+1|0:(X=0,ie=ie+1|0)),S>=18446744073709552e3||S<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");D.realloc(10),function(ve,we,We){We.buf[We.pos++]=127&ve|128,ve>>>=7,We.buf[We.pos++]=127&ve|128,ve>>>=7,We.buf[We.pos++]=127&ve|128,ve>>>=7,We.buf[We.pos++]=127&ve|128,We.buf[We.pos]=127&(ve>>>=7)}(X,0,D),function(ve,we){var We=(7&ve)<<4;we.buf[we.pos++]|=We|((ve>>>=3)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve)))))}(ie,D)}(I,this):(this.realloc(4),this.buf[this.pos++]=127&I|(I>127?128:0),I<=127||(this.buf[this.pos++]=127&(I>>>=7)|(I>127?128:0),I<=127||(this.buf[this.pos++]=127&(I>>>=7)|(I>127?128:0),I<=127||(this.buf[this.pos++]=I>>>7&127))))},writeSVarint:function(I){this.writeVarint(I<0?2*-I-1:2*I)},writeBoolean:function(I){this.writeVarint(!!I)},writeString:function(I){I=String(I),this.realloc(4*I.length),this.pos++;var S=this.pos;this.pos=function(X,ie,ve){for(var we,We,ut=0;ut55295&&we<57344){if(!We){we>56319||ut+1===ie.length?(X[ve++]=239,X[ve++]=191,X[ve++]=189):We=we;continue}if(we<56320){X[ve++]=239,X[ve++]=191,X[ve++]=189,We=we;continue}we=We-55296<<10|we-56320|65536,We=null}else We&&(X[ve++]=239,X[ve++]=191,X[ve++]=189,We=null);we<128?X[ve++]=we:(we<2048?X[ve++]=we>>6|192:(we<65536?X[ve++]=we>>12|224:(X[ve++]=we>>18|240,X[ve++]=we>>12&63|128),X[ve++]=we>>6&63|128),X[ve++]=63&we|128)}return ve}(this.buf,I,this.pos);var D=this.pos-S;D>=128&&Ew(S,D,this),this.pos=S-1,this.writeVarint(D),this.pos+=D},writeFloat:function(I){this.realloc(4),T1(this.buf,I,this.pos,!0,23,4),this.pos+=4},writeDouble:function(I){this.realloc(8),T1(this.buf,I,this.pos,!0,52,8),this.pos+=8},writeBytes:function(I){var S=I.length;this.writeVarint(S),this.realloc(S);for(var D=0;D=128&&Ew(D,X,this),this.pos=D-1,this.writeVarint(X),this.pos+=X},writeMessage:function(I,S,D){this.writeTag(I,ic.Bytes),this.writeRawMessage(S,D)},writePackedVarint:function(I,S){S.length&&this.writeMessage(I,Nx,S)},writePackedSVarint:function(I,S){S.length&&this.writeMessage(I,WO,S)},writePackedBoolean:function(I,S){S.length&&this.writeMessage(I,ZO,S)},writePackedFloat:function(I,S){S.length&&this.writeMessage(I,jO,S)},writePackedDouble:function(I,S){S.length&&this.writeMessage(I,XO,S)},writePackedFixed32:function(I,S){S.length&&this.writeMessage(I,qQ,S)},writePackedSFixed32:function(I,S){S.length&&this.writeMessage(I,YO,S)},writePackedFixed64:function(I,S){S.length&&this.writeMessage(I,KO,S)},writePackedSFixed64:function(I,S){S.length&&this.writeMessage(I,JO,S)},writeBytesField:function(I,S){this.writeTag(I,ic.Bytes),this.writeBytes(S)},writeFixed32Field:function(I,S){this.writeTag(I,ic.Fixed32),this.writeFixed32(S)},writeSFixed32Field:function(I,S){this.writeTag(I,ic.Fixed32),this.writeSFixed32(S)},writeFixed64Field:function(I,S){this.writeTag(I,ic.Fixed64),this.writeFixed64(S)},writeSFixed64Field:function(I,S){this.writeTag(I,ic.Fixed64),this.writeSFixed64(S)},writeVarintField:function(I,S){this.writeTag(I,ic.Varint),this.writeVarint(S)},writeSVarintField:function(I,S){this.writeTag(I,ic.Varint),this.writeSVarint(S)},writeStringField:function(I,S){this.writeTag(I,ic.Bytes),this.writeString(S)},writeFloatField:function(I,S){this.writeTag(I,ic.Fixed32),this.writeFloat(S)},writeDoubleField:function(I,S){this.writeTag(I,ic.Fixed64),this.writeDouble(S)},writeBooleanField:function(I,S){this.writeVarintField(I,!!S)}};var rM=o(Ed);let iM=3;function NQ(I,S,D){I===1&&D.readMessage($O,S)}function $O(I,S,D){if(I===3){let{id:X,bitmap:ie,width:ve,height:we,left:We,top:ut,advance:Mt}=D.readMessage(gC,{});S.push({id:X,bitmap:new ul({width:ve+2*iM,height:we+2*iM},ie),metrics:{width:ve,height:we,left:We,top:ut,advance:Mt}})}}function gC(I,S,D){I===1?S.id=D.readVarint():I===2?S.bitmap=D.readBytes():I===3?S.width=D.readVarint():I===4?S.height=D.readVarint():I===5?S.left=D.readSVarint():I===6?S.top=D.readSVarint():I===7&&(S.advance=D.readVarint())}let _C=iM;function nM(I){let S=0,D=0;for(let we of I)S+=we.w*we.h,D=Math.max(D,we.w);I.sort((we,We)=>We.h-we.h);let X=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(S/.95)),D),h:1/0}],ie=0,ve=0;for(let we of I)for(let We=X.length-1;We>=0;We--){let ut=X[We];if(!(we.w>ut.w||we.h>ut.h)){if(we.x=ut.x,we.y=ut.y,ve=Math.max(ve,we.y+we.h),ie=Math.max(ie,we.x+we.w),we.w===ut.w&&we.h===ut.h){let Mt=X.pop();We=0&&X>=S&&Lw[this.text.charCodeAt(X)];X--)D--;this.text=this.text.substring(S,D),this.sectionIndex=this.sectionIndex.slice(S,D)}substring(S,D){let X=new S1;return X.text=this.text.substring(S,D),X.sectionIndex=this.sectionIndex.slice(S,D),X.sections=this.sections,X}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((S,D)=>Math.max(S,this.sections[D].scale),0)}addTextSection(S,D){this.text+=S.text,this.sections.push(Vx.forText(S.scale,S.fontStack||D));let X=this.sections.length-1;for(let ie=0;ie=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Gx(I,S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr){let li=S1.fromFeature(I,ie),Hi;vr===i.ah.vertical&&li.verticalizePunctuation();let{processBidirectionalText:cn,processStyledBidirectionalText:Za}=Js;if(cn&&li.sections.length===1){Hi=[];let So=cn(li.toString(),M1(li,Mt,ve,S,X,Br));for(let kl of So){let mu=new S1;mu.text=kl,mu.sections=li.sections;for(let Iu=0;Iu0&&tv>rh&&(rh=tv)}else{let Rc=mu[jf.fontStack],fh=Rc&&Rc[mc];if(fh&&fh.rect)z1=fh.rect,Hc=fh.metrics;else{let tv=kl[jf.fontStack],ym=tv&&tv[mc];if(!ym)continue;Hc=ym.metrics}Dp=(zh-jf.scale)*Wf}ev?(So.verticalizable=!0,Xh.push({glyph:mc,imageName:v0,x:qu,y:vc+Dp,vertical:ev,scale:jf.scale,fontStack:jf.fontStack,sectionIndex:Ac,metrics:Hc,rect:z1}),qu+=Gv*jf.scale+Xs):(Xh.push({glyph:mc,imageName:v0,x:qu,y:vc+Dp,vertical:ev,scale:jf.scale,fontStack:jf.fontStack,sectionIndex:Ac,metrics:Hc,rect:z1}),qu+=Hc.advance*jf.scale+Xs)}Xh.length!==0&&(cc=Math.max(qu-Xs,cc),sy(Xh,0,Xh.length-1,Qp,rh)),qu=0;let Rp=yl*zh+rh;fd.lineOffset=Math.max(rh,Cd),vc+=Rp,Lh=Math.max(Rp,Lh),++ud}var Ph;let Wd=vc-Ch,{horizontalAlign:jd,verticalAlign:Xd}=zw(Eu);(function(Jc,zh,Cd,fd,Xh,rh,Rp,fp,jf){let Ac=(zh-Cd)*Xh,mc=0;mc=rh!==Rp?-fp*fd-Ch:(-fd*jf+.5)*Rp;for(let Dp of Jc)for(let Hc of Dp.positionedGlyphs)Hc.x+=Ac,Hc.y+=mc})(So.positionedLines,Qp,jd,Xd,cc,Lh,yl,Wd,su.length),So.top+=-Xd*Wd,So.bottom=So.top+Wd,So.left+=-jd*cc,So.right=So.left+cc}(La,S,D,X,Hi,we,We,ut,vr,Mt,Sr,Jr),!function(So){for(let kl of So)if(kl.positionedGlyphs.length!==0)return!1;return!0}(Rn)&&La}let Lw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},QO={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},e9={40:!0};function xC(I,S,D,X,ie,ve){if(S.imageName){let we=X[S.imageName];return we?we.displaySize[0]*S.scale*Wf/ve+ie:0}{let we=D[S.fontStack],We=we&&we[I];return We?We.metrics.advance*S.scale+ie:0}}function bC(I,S,D,X){let ie=Math.pow(I-S,2);return X?I=0,Mt=0;for(let vr=0;vrMt){let $t=Math.ceil(ve/Mt);ie*=$t/we,we=$t}return{x1:X,y1:ie,x2:X+ve,y2:ie+we}}function TC(I,S,D,X,ie,ve){let we=I.image,We;if(we.content){let Hi=we.content,cn=we.pixelRatio||1;We=[Hi[0]/cn,Hi[1]/cn,we.displaySize[0]-Hi[2]/cn,we.displaySize[1]-Hi[3]/cn]}let ut=S.left*ve,Mt=S.right*ve,$t,vr,Sr,Br;D==="width"||D==="both"?(Br=ie[0]+ut-X[3],vr=ie[0]+Mt+X[1]):(Br=ie[0]+(ut+Mt-we.displaySize[0])/2,vr=Br+we.displaySize[0]);let Jr=S.top*ve,li=S.bottom*ve;return D==="height"||D==="both"?($t=ie[1]+Jr-X[0],Sr=ie[1]+li+X[2]):($t=ie[1]+(Jr+li-we.displaySize[1])/2,Sr=$t+we.displaySize[1]),{image:we,top:$t,right:vr,bottom:Sr,left:Br,collisionPadding:We}}let Wx=255,p0=128,ly=Wx*p0;function SC(I,S){let{expression:D}=S;if(D.kind==="constant")return{kind:"constant",layoutSize:D.evaluate(new cs(I+1))};if(D.kind==="source")return{kind:"source"};{let{zoomStops:X,interpolationType:ie}=D,ve=0;for(;vewe.id),this.index=S.index,this.pixelRatio=S.pixelRatio,this.sourceLayerIndex=S.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=En([]),this.placementViewportMatrix=En([]);let D=this.layers[0]._unevaluatedLayout._values;this.textSizeData=SC(this.zoom,D["text-size"]),this.iconSizeData=SC(this.zoom,D["icon-size"]);let X=this.layers[0].layout,ie=X.get("symbol-sort-key"),ve=X.get("symbol-z-order");this.canOverlap=aM(X,"text-overlap","text-allow-overlap")!=="never"||aM(X,"icon-overlap","icon-allow-overlap")!=="never"||X.get("text-ignore-placement")||X.get("icon-ignore-placement"),this.sortFeaturesByKey=ve!=="viewport-y"&&!ie.isConstant(),this.sortFeaturesByY=(ve==="viewport-y"||ve==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,X.get("symbol-placement")==="point"&&(this.writingModes=X.get("text-writing-mode").map(we=>i.ah[we])),this.stateDependentLayerIds=this.layers.filter(we=>we.isStateDependent()).map(we=>we.id),this.sourceID=S.sourceID}createArrays(){this.text=new lM(new Gu(this.layers,this.zoom,S=>/^text/.test(S))),this.icon=new lM(new Gu(this.layers,this.zoom,S=>/^icon/.test(S))),this.glyphOffsetArray=new au,this.lineVertexArray=new Sl,this.symbolInstances=new ml,this.textAnchorOffsets=new Ol}calculateGlyphDependencies(S,D,X,ie,ve){for(let we=0;we0)&&(we.value.kind!=="constant"||we.value.value.length>0),$t=ut.value.kind!=="constant"||!!ut.value.value||Object.keys(ut.parameters).length>0,vr=ve.get("symbol-sort-key");if(this.features=[],!Mt&&!$t)return;let Sr=D.iconDependencies,Br=D.glyphDependencies,Jr=D.availableImages,li=new cs(this.zoom);for(let{feature:Hi,id:cn,index:Za,sourceLayerIndex:Rn}of S){let La=ie._featureFilter.needGeometry,So=df(Hi,La);if(!ie._featureFilter.filter(li,So,X))continue;let kl,mu;if(La||(So.geometry=uf(Hi)),Mt){let su=ie.getValueAndResolveTokens("text-field",So,X,Jr),yl=Ur.factory(su),Eu=this.hasRTLText=this.hasRTLText||sM(yl);(!Eu||Js.getRTLTextPluginStatus()==="unavailable"||Eu&&Js.isParsed())&&(kl=ny(yl,ie,So))}if($t){let su=ie.getValueAndResolveTokens("icon-image",So,X,Jr);mu=su instanceof yi?su:yi.fromString(su)}if(!kl&&!mu)continue;let Iu=this.sortFeaturesByKey?vr.evaluate(So,{},X):void 0;if(this.features.push({id:cn,text:kl,icon:mu,index:Za,sourceLayerIndex:Rn,geometry:So.geometry,properties:Hi.properties,type:r9[Hi.type],sortKey:Iu}),mu&&(Sr[mu.name]=!0),kl){let su=we.evaluate(So,{},X).join(","),yl=ve.get("text-rotation-alignment")!=="viewport"&&ve.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let Eu of kl.sections)if(Eu.image)Sr[Eu.image.name]=!0;else{let bu=is(kl.toString()),_u=Eu.fontStack||su,Xs=Br[_u]=Br[_u]||{};this.calculateGlyphDependencies(Eu.text,Xs,yl,this.allowVerticalPlacement,bu)}}}ve.get("symbol-placement")==="line"&&(this.features=function(Hi){let cn={},Za={},Rn=[],La=0;function So(su){Rn.push(Hi[su]),La++}function kl(su,yl,Eu){let bu=Za[su];return delete Za[su],Za[yl]=bu,Rn[bu].geometry[0].pop(),Rn[bu].geometry[0]=Rn[bu].geometry[0].concat(Eu[0]),bu}function mu(su,yl,Eu){let bu=cn[yl];return delete cn[yl],cn[su]=bu,Rn[bu].geometry[0].shift(),Rn[bu].geometry[0]=Eu[0].concat(Rn[bu].geometry[0]),bu}function Iu(su,yl,Eu){let bu=Eu?yl[0][yl[0].length-1]:yl[0][0];return`${su}:${bu.x}:${bu.y}`}for(let su=0;susu.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((Hi,cn)=>Hi.sortKey-cn.sortKey)}update(S,D,X){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(S,D,this.layers,X),this.icon.programConfigurations.updatePaintArrays(S,D,this.layers,X))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(S){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(S),this.iconCollisionBox.upload(S)),this.text.upload(S,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(S,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(S,D){let X=this.lineVertexArray.length;if(S.segment!==void 0){let ie=S.dist(D[S.segment+1]),ve=S.dist(D[S.segment]),we={};for(let We=S.segment+1;We=0;We--)we[We]={x:D[We].x,y:D[We].y,tileUnitDistanceFromAnchor:ve},We>0&&(ve+=D[We-1].dist(D[We]));for(let We=0;We0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(S,D){let X=S.placedSymbolArray.get(D),ie=X.vertexStartIndex+4*X.numGlyphs;for(let ve=X.vertexStartIndex;veie[We]-ie[ut]||ve[ut]-ve[We]),we}addToSortKeyRanges(S,D){let X=this.sortKeyRanges[this.sortKeyRanges.length-1];X&&X.sortKey===D?X.symbolInstanceEnd=S+1:this.sortKeyRanges.push({sortKey:D,symbolInstanceStart:S,symbolInstanceEnd:S+1})}sortFeatures(S){if(this.sortFeaturesByY&&this.sortedAngle!==S&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(S),this.sortedAngle=S,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let D of this.symbolInstanceIndexes){let X=this.symbolInstances.get(D);this.featureSortOrder.push(X.featureIndex),[X.rightJustifiedTextSymbolIndex,X.centerJustifiedTextSymbolIndex,X.leftJustifiedTextSymbolIndex].forEach((ie,ve,we)=>{ie>=0&&we.indexOf(ie)===ve&&this.addIndicesForPlacedSymbol(this.text,ie)}),X.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,X.verticalPlacedTextSymbolIndex),X.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,X.placedIconSymbolIndex),X.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,X.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let Kc,jx;Si("SymbolBucket",E1,{omit:["layers","collisionBoxArray","features","compareText"]}),E1.MAX_GLYPHS=65535,E1.addDynamicAttributes=oM;var Rw={get paint(){return jx=jx||new le({"icon-opacity":new Os(ce.paint_symbol["icon-opacity"]),"icon-color":new Os(ce.paint_symbol["icon-color"]),"icon-halo-color":new Os(ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new Os(ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Os(ce.paint_symbol["icon-halo-blur"]),"icon-translate":new ms(ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new ms(ce.paint_symbol["icon-translate-anchor"]),"text-opacity":new Os(ce.paint_symbol["text-opacity"]),"text-color":new Os(ce.paint_symbol["text-color"],{runtimeType:$e,getOverride:I=>I.textColor,hasOverride:I=>!!I.textColor}),"text-halo-color":new Os(ce.paint_symbol["text-halo-color"]),"text-halo-width":new Os(ce.paint_symbol["text-halo-width"]),"text-halo-blur":new Os(ce.paint_symbol["text-halo-blur"]),"text-translate":new ms(ce.paint_symbol["text-translate"]),"text-translate-anchor":new ms(ce.paint_symbol["text-translate-anchor"])})},get layout(){return Kc=Kc||new le({"symbol-placement":new ms(ce.layout_symbol["symbol-placement"]),"symbol-spacing":new ms(ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new ms(ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Os(ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new ms(ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new ms(ce.layout_symbol["icon-allow-overlap"]),"icon-overlap":new ms(ce.layout_symbol["icon-overlap"]),"icon-ignore-placement":new ms(ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new ms(ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new ms(ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new Os(ce.layout_symbol["icon-size"]),"icon-text-fit":new ms(ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new ms(ce.layout_symbol["icon-text-fit-padding"]),"icon-image":new Os(ce.layout_symbol["icon-image"]),"icon-rotate":new Os(ce.layout_symbol["icon-rotate"]),"icon-padding":new Os(ce.layout_symbol["icon-padding"]),"icon-keep-upright":new ms(ce.layout_symbol["icon-keep-upright"]),"icon-offset":new Os(ce.layout_symbol["icon-offset"]),"icon-anchor":new Os(ce.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new ms(ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new ms(ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new ms(ce.layout_symbol["text-rotation-alignment"]),"text-field":new Os(ce.layout_symbol["text-field"]),"text-font":new Os(ce.layout_symbol["text-font"]),"text-size":new Os(ce.layout_symbol["text-size"]),"text-max-width":new Os(ce.layout_symbol["text-max-width"]),"text-line-height":new ms(ce.layout_symbol["text-line-height"]),"text-letter-spacing":new Os(ce.layout_symbol["text-letter-spacing"]),"text-justify":new Os(ce.layout_symbol["text-justify"]),"text-radial-offset":new Os(ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ms(ce.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new Os(ce.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new Os(ce.layout_symbol["text-anchor"]),"text-max-angle":new ms(ce.layout_symbol["text-max-angle"]),"text-writing-mode":new ms(ce.layout_symbol["text-writing-mode"]),"text-rotate":new Os(ce.layout_symbol["text-rotate"]),"text-padding":new ms(ce.layout_symbol["text-padding"]),"text-keep-upright":new ms(ce.layout_symbol["text-keep-upright"]),"text-transform":new Os(ce.layout_symbol["text-transform"]),"text-offset":new Os(ce.layout_symbol["text-offset"]),"text-allow-overlap":new ms(ce.layout_symbol["text-allow-overlap"]),"text-overlap":new ms(ce.layout_symbol["text-overlap"]),"text-ignore-placement":new ms(ce.layout_symbol["text-ignore-placement"]),"text-optional":new ms(ce.layout_symbol["text-optional"])})}};class Xx{constructor(S){if(S.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=S.property.overrides?S.property.overrides.runtimeType:vt,this.defaultValue=S}evaluate(S){if(S.formattedSection){let D=this.defaultValue.property.overrides;if(D&&D.hasOverride(S.formattedSection))return D.getOverride(S.formattedSection)}return S.feature&&S.featureState?this.defaultValue.evaluate(S.feature,S.featureState):this.defaultValue.property.specification.default}eachChild(S){this.defaultValue.isConstant()||S(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Si("FormatSectionOverride",Xx,{omit:["defaultValue"]});class ug extends q{constructor(S){super(S,Rw)}recalculate(S,D){if(super.recalculate(S,D),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){let X=this.layout.get("text-writing-mode");if(X){let ie=[];for(let ve of X)ie.indexOf(ve)<0&&ie.push(ve);this.layout._values["text-writing-mode"]=ie}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(S,D,X,ie){let ve=this.layout.get(S).evaluate(D,{},X,ie),we=this._unevaluatedLayout._values[S];return we.isDataDriven()||Qs(we.value)||!ve?ve:function(We,ut){return ut.replace(/{([^{}]+)}/g,(Mt,$t)=>We&&$t in We?String(We[$t]):"")}(D.properties,ve)}createBucket(S){return new E1(S)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let S of Rw.paint.overridableProperties){if(!ug.hasPaintOverride(this.layout,S))continue;let D=this.paint.get(S),X=new Xx(D),ie=new Ma(X,D.property.specification),ve=null;ve=D.value.kind==="constant"||D.value.kind==="source"?new gs("source",ie):new Vo("composite",ie,D.value.zoomStops),this.paint._values[S]=new Al(D.property,ve,D.parameters)}}_handleOverridablePaintPropertyUpdate(S,D,X){return!(!this.layout||D.isDataDriven()||X.isDataDriven())&&ug.hasPaintOverride(this.layout,S)}static hasPaintOverride(S,D){let X=S.get("text-field"),ie=Rw.paint.properties[D],ve=!1,we=We=>{for(let ut of We)if(ie.overrides&&ie.overrides.hasOverride(ut))return void(ve=!0)};if(X.value.kind==="constant"&&X.value.value instanceof Ur)we(X.value.value.sections);else if(X.value.kind==="source"){let We=Mt=>{ve||(Mt instanceof Yr&&ti(Mt.value)===yr?we(Mt.value.sections):Mt instanceof wa?we(Mt.sections):Mt.eachChild(We))},ut=X.value;ut._styleExpression&&We(ut._styleExpression.expression)}return ve}}let MC;var Zx={get paint(){return MC=MC||new le({"background-color":new ms(ce.paint_background["background-color"]),"background-pattern":new Vl(ce.paint_background["background-pattern"]),"background-opacity":new ms(ce.paint_background["background-opacity"])})}};class n9 extends q{constructor(S){super(S,Zx)}}let uM;var EC={get paint(){return uM=uM||new le({"raster-opacity":new ms(ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new ms(ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new ms(ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new ms(ce.paint_raster["raster-brightness-max"]),"raster-saturation":new ms(ce.paint_raster["raster-saturation"]),"raster-contrast":new ms(ce.paint_raster["raster-contrast"]),"raster-resampling":new ms(ce.paint_raster["raster-resampling"]),"raster-fade-duration":new ms(ce.paint_raster["raster-fade-duration"])})}};class Yx extends q{constructor(S){super(S,EC)}}class fM extends q{constructor(S){super(S,{}),this.onAdd=D=>{this.implementation.onAdd&&this.implementation.onAdd(D,D.painter.context.gl)},this.onRemove=D=>{this.implementation.onRemove&&this.implementation.onRemove(D,D.painter.context.gl)},this.implementation=S}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class cM{constructor(S){this._methodToThrottle=S,this._triggered=!1,typeof MessageChannel!="undefined"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let hM=63710088e-1;class pm{constructor(S,D){if(isNaN(S)||isNaN(D))throw new Error(`Invalid LngLat object: (${S}, ${D})`);if(this.lng=+S,this.lat=+D,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new pm(T(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(S){let D=Math.PI/180,X=this.lat*D,ie=S.lat*D,ve=Math.sin(X)*Math.sin(ie)+Math.cos(X)*Math.cos(ie)*Math.cos((S.lng-this.lng)*D);return hM*Math.acos(Math.min(ve,1))}static convert(S){if(S instanceof pm)return S;if(Array.isArray(S)&&(S.length===2||S.length===3))return new pm(Number(S[0]),Number(S[1]));if(!Array.isArray(S)&&typeof S=="object"&&S!==null)return new pm(Number("lng"in S?S.lng:S.lon),Number(S.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let k1=2*Math.PI*hM;function kC(I){return k1*Math.cos(I*Math.PI/180)}function Dw(I){return(180+I)/360}function CC(I){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+I*Math.PI/360)))/360}function Fw(I,S){return I/kC(S)}function Kx(I){return 360/Math.PI*Math.atan(Math.exp((180-360*I)*Math.PI/180))-90}class Jx{constructor(S,D,X=0){this.x=+S,this.y=+D,this.z=+X}static fromLngLat(S,D=0){let X=pm.convert(S);return new Jx(Dw(X.lng),CC(X.lat),Fw(D,X.lat))}toLngLat(){return new pm(360*this.x-180,Kx(this.y))}toAltitude(){return this.z*kC(Kx(this.y))}meterInMercatorCoordinateUnits(){return 1/k1*(S=Kx(this.y),1/Math.cos(S*Math.PI/180));var S}}function mv(I,S,D){var X=2*Math.PI*6378137/256/Math.pow(2,D);return[I*X-2*Math.PI*6378137/2,S*X-2*Math.PI*6378137/2]}class dM{constructor(S,D,X){if(!function(ie,ve,we){return!(ie<0||ie>25||we<0||we>=Math.pow(2,ie)||ve<0||ve>=Math.pow(2,ie))}(S,D,X))throw new Error(`x=${D}, y=${X}, z=${S} outside of bounds. 0<=x<${Math.pow(2,S)}, 0<=y<${Math.pow(2,S)} 0<=z<=25 `);this.z=S,this.x=D,this.y=X,this.key=$x(0,S,S,D,X)}equals(S){return this.z===S.z&&this.x===S.x&&this.y===S.y}url(S,D,X){let ie=(we=this.y,We=this.z,ut=mv(256*(ve=this.x),256*(we=Math.pow(2,We)-we-1),We),Mt=mv(256*(ve+1),256*(we+1),We),ut[0]+","+ut[1]+","+Mt[0]+","+Mt[1]);var ve,we,We,ut,Mt;let $t=function(vr,Sr,Br){let Jr,li="";for(let Hi=vr;Hi>0;Hi--)Jr=1<1?"@2x":"").replace(/{quadkey}/g,$t).replace(/{bbox-epsg-3857}/g,ie)}isChildOf(S){let D=this.z-S.z;return D>0&&S.x===this.x>>D&&S.y===this.y>>D}getTilePoint(S){let D=Math.pow(2,this.z);return new l((S.x*D-this.x)*Wl,(S.y*D-this.y)*Wl)}toString(){return`${this.z}/${this.x}/${this.y}`}}class LC{constructor(S,D){this.wrap=S,this.canonical=D,this.key=$x(S,D.z,D.z,D.x,D.y)}}class $p{constructor(S,D,X,ie,ve){if(S= z; overscaledZ = ${S}; z = ${X}`);this.overscaledZ=S,this.wrap=D,this.canonical=new dM(X,+ie,+ve),this.key=$x(D,S,X,ie,ve)}clone(){return new $p(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(S){return this.overscaledZ===S.overscaledZ&&this.wrap===S.wrap&&this.canonical.equals(S.canonical)}scaledTo(S){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let D=this.canonical.z-S;return S>this.canonical.z?new $p(S,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new $p(S,this.wrap,S,this.canonical.x>>D,this.canonical.y>>D)}calculateScaledKey(S,D){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let X=this.canonical.z-S;return S>this.canonical.z?$x(this.wrap*+D,S,this.canonical.z,this.canonical.x,this.canonical.y):$x(this.wrap*+D,S,S,this.canonical.x>>X,this.canonical.y>>X)}isChildOf(S){if(S.wrap!==this.wrap)return!1;let D=this.canonical.z-S.canonical.z;return S.overscaledZ===0||S.overscaledZ>D&&S.canonical.y===this.canonical.y>>D}children(S){if(this.overscaledZ>=S)return[new $p(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let D=this.canonical.z+1,X=2*this.canonical.x,ie=2*this.canonical.y;return[new $p(D,this.wrap,D,X,ie),new $p(D,this.wrap,D,X+1,ie),new $p(D,this.wrap,D,X,ie+1),new $p(D,this.wrap,D,X+1,ie+1)]}isLessThan(S){return this.wrapS.wrap)&&(this.overscaledZS.overscaledZ)&&(this.canonical.xS.canonical.x)&&this.canonical.ythis.max&&(this.max=vr),vr=this.dim+1||D<-1||D>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(D+1)*this.stride+(S+1)}unpack(S,D,X){return S*this.redFactor+D*this.greenFactor+X*this.blueFactor-this.baseShift}getPixels(){return new Qn({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(S,D,X){if(this.dim!==S.dim)throw new Error("dem dimension mismatch");let ie=D*this.dim,ve=D*this.dim+this.dim,we=X*this.dim,We=X*this.dim+this.dim;switch(D){case-1:ie=ve-1;break;case 1:ve=ie+1}switch(X){case-1:we=We-1;break;case 1:We=we+1}let ut=-D*this.dim,Mt=-X*this.dim;for(let $t=we;$t=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${S} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[S]}}class pM{constructor(S,D,X,ie,ve){this.type="Feature",this._vectorTileFeature=S,S._z=D,S._x=X,S._y=ie,this.properties=S.properties,this.id=ve}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(S){this._geometry=S}toJSON(){let S={geometry:this.geometry};for(let D in this)D!=="_geometry"&&D!=="_vectorTileFeature"&&(S[D]=this[D]);return S}}class fg{constructor(S,D){this.tileID=S,this.x=S.canonical.x,this.y=S.canonical.y,this.z=S.canonical.z,this.grid=new hi(Wl,16,0),this.grid3D=new hi(Wl,16,0),this.featureIndexArray=new Pu,this.promoteId=D}insert(S,D,X,ie,ve,we){let We=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(X,ie,ve);let ut=we?this.grid3D:this.grid;for(let Mt=0;Mt=0&&vr[3]>=0&&ut.insert(We,vr[0],vr[1],vr[2],vr[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new Nr.VectorTile(new rM(this.rawTileData)).layers,this.sourceLayerCoder=new zC(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(S,D,X,ie){this.loadVTLayers();let ve=S.params||{},we=Wl/S.tileSize/S.scale,We=Jn(ve.filter),ut=S.queryGeometry,Mt=S.queryPadding*we,$t=RC(ut),vr=this.grid.query($t.minX-Mt,$t.minY-Mt,$t.maxX+Mt,$t.maxY+Mt),Sr=RC(S.cameraQueryGeometry),Br=this.grid3D.query(Sr.minX-Mt,Sr.minY-Mt,Sr.maxX+Mt,Sr.maxY+Mt,(Hi,cn,Za,Rn)=>function(La,So,kl,mu,Iu){for(let yl of La)if(So<=yl.x&&kl<=yl.y&&mu>=yl.x&&Iu>=yl.y)return!0;let su=[new l(So,kl),new l(So,Iu),new l(mu,Iu),new l(mu,kl)];if(La.length>2){for(let yl of su)if(Bn(La,yl))return!0}for(let yl=0;yl(Rn||(Rn=uf(La)),So.queryIntersectsFeature(ut,La,kl,Rn,this.z,S.transform,we,S.pixelPosMatrix)))}return Jr}loadMatchingFeature(S,D,X,ie,ve,we,We,ut,Mt,$t,vr){let Sr=this.bucketLayerIDs[D];if(we&&!function(Hi,cn){for(let Za=0;Za=0)return!0;return!1}(we,Sr))return;let Br=this.sourceLayerCoder.decode(X),Jr=this.vtLayers[Br].feature(ie);if(ve.needGeometry){let Hi=df(Jr,!0);if(!ve.filter(new cs(this.tileID.overscaledZ),Hi,this.tileID.canonical))return}else if(!ve.filter(new cs(this.tileID.overscaledZ),Jr))return;let li=this.getId(Jr,Br);for(let Hi=0;Hi{let We=S instanceof Ll?S.get(we):null;return We&&We.evaluate?We.evaluate(D,X,ie):We})}function RC(I){let S=1/0,D=1/0,X=-1/0,ie=-1/0;for(let ve of I)S=Math.min(S,ve.x),D=Math.min(D,ve.y),X=Math.max(X,ve.x),ie=Math.max(ie,ve.y);return{minX:S,minY:D,maxX:X,maxY:ie}}function a9(I,S){return S-I}function DC(I,S,D,X,ie){let ve=[];for(let we=0;we=X&&vr.x>=X||($t.x>=X?$t=new l(X,$t.y+(X-$t.x)/(vr.x-$t.x)*(vr.y-$t.y))._round():vr.x>=X&&(vr=new l(X,$t.y+(X-$t.x)/(vr.x-$t.x)*(vr.y-$t.y))._round()),$t.y>=ie&&vr.y>=ie||($t.y>=ie?$t=new l($t.x+(ie-$t.y)/(vr.y-$t.y)*(vr.x-$t.x),ie)._round():vr.y>=ie&&(vr=new l($t.x+(ie-$t.y)/(vr.y-$t.y)*(vr.x-$t.x),ie)._round()),ut&&$t.equals(ut[ut.length-1])||(ut=[$t],ve.push(ut)),ut.push(vr)))))}}return ve}Si("FeatureIndex",fg,{omit:["rawTileData","sourceLayerCoder"]});class vm extends l{constructor(S,D,X,ie){super(S,D),this.angle=X,ie!==void 0&&(this.segment=ie)}clone(){return new vm(this.x,this.y,this.angle,this.segment)}}function vM(I,S,D,X,ie){if(S.segment===void 0||D===0)return!0;let ve=S,we=S.segment+1,We=0;for(;We>-D/2;){if(we--,we<0)return!1;We-=I[we].dist(ve),ve=I[we]}We+=I[we].dist(I[we+1]),we++;let ut=[],Mt=0;for(;WeX;)Mt-=ut.shift().angleDelta;if(Mt>ie)return!1;we++,We+=$t.dist(vr)}return!0}function FC(I){let S=0;for(let D=0;DMt){let Jr=(Mt-ut)/Br,li=ka.number(vr.x,Sr.x,Jr),Hi=ka.number(vr.y,Sr.y,Jr),cn=new vm(li,Hi,Sr.angleTo(vr),$t);return cn._round(),!we||vM(I,cn,We,we,S)?cn:void 0}ut+=Br}}function s9(I,S,D,X,ie,ve,we,We,ut){let Mt=BC(X,ve,we),$t=OC(X,ie),vr=$t*we,Sr=I[0].x===0||I[0].x===ut||I[0].y===0||I[0].y===ut;return S-vr=0&&La=0&&So=0&&Sr+Mt<=$t){let kl=new vm(La,So,Za,Jr);kl._round(),X&&!vM(I,kl,ve,X,ie)||Br.push(kl)}}vr+=cn}return We||Br.length||we||(Br=qC(I,vr/2,D,X,ie,ve,we,!0,ut)),Br}Si("Anchor",vm);let C1=kd;function NC(I,S,D,X){let ie=[],ve=I.image,we=ve.pixelRatio,We=ve.paddedRect.w-2*C1,ut=ve.paddedRect.h-2*C1,Mt={x1:I.left,y1:I.top,x2:I.right,y2:I.bottom},$t=ve.stretchX||[[0,We]],vr=ve.stretchY||[[0,ut]],Sr=(Xs,Lu)=>Xs+Lu[1]-Lu[0],Br=$t.reduce(Sr,0),Jr=vr.reduce(Sr,0),li=We-Br,Hi=ut-Jr,cn=0,Za=Br,Rn=0,La=Jr,So=0,kl=li,mu=0,Iu=Hi;if(ve.content&&X){let Xs=ve.content,Lu=Xs[2]-Xs[0],xu=Xs[3]-Xs[1];(ve.textFitWidth||ve.textFitHeight)&&(Mt=AC(I)),cn=mm($t,0,Xs[0]),Rn=mm(vr,0,Xs[1]),Za=mm($t,Xs[0],Xs[2]),La=mm(vr,Xs[1],Xs[3]),So=Xs[0]-cn,mu=Xs[1]-Rn,kl=Lu-Za,Iu=xu-La}let su=Mt.x1,yl=Mt.y1,Eu=Mt.x2-su,bu=Mt.y2-yl,_u=(Xs,Lu,xu,qu)=>{let vc=Bw(Xs.stretch-cn,Za,Eu,su),cc=L1(Xs.fixed-So,kl,Xs.stretch,Br),Lh=Bw(Lu.stretch-Rn,La,bu,yl),Qp=L1(Lu.fixed-mu,Iu,Lu.stretch,Jr),ud=Bw(xu.stretch-cn,Za,Eu,su),Ph=L1(xu.fixed-So,kl,xu.stretch,Br),Wd=Bw(qu.stretch-Rn,La,bu,yl),jd=L1(qu.fixed-mu,Iu,qu.stretch,Jr),Xd=new l(vc,Lh),Jc=new l(ud,Lh),zh=new l(ud,Wd),Cd=new l(vc,Wd),fd=new l(cc/we,Qp/we),Xh=new l(Ph/we,jd/we),rh=S*Math.PI/180;if(rh){let jf=Math.sin(rh),Ac=Math.cos(rh),mc=[Ac,-jf,jf,Ac];Xd._matMult(mc),Jc._matMult(mc),Cd._matMult(mc),zh._matMult(mc)}let Rp=Xs.stretch+Xs.fixed,fp=Lu.stretch+Lu.fixed;return{tl:Xd,tr:Jc,bl:Cd,br:zh,tex:{x:ve.paddedRect.x+C1+Rp,y:ve.paddedRect.y+C1+fp,w:xu.stretch+xu.fixed-Rp,h:qu.stretch+qu.fixed-fp},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:fd,pixelOffsetBR:Xh,minFontScaleX:kl/we/Eu,minFontScaleY:Iu/we/bu,isSDF:D}};if(X&&(ve.stretchX||ve.stretchY)){let Xs=UC($t,li,Br),Lu=UC(vr,Hi,Jr);for(let xu=0;xu0&&(li=Math.max(10,li),this.circleDiameter=li)}else{let Sr=!((vr=we.image)===null||vr===void 0)&&vr.content&&(we.image.textFitWidth||we.image.textFitHeight)?AC(we):{x1:we.left,y1:we.top,x2:we.right,y2:we.bottom};Sr.y1=Sr.y1*We-ut[0],Sr.y2=Sr.y2*We+ut[2],Sr.x1=Sr.x1*We-ut[3],Sr.x2=Sr.x2*We+ut[1];let Br=we.collisionPadding;if(Br&&(Sr.x1-=Br[0]*We,Sr.y1-=Br[1]*We,Sr.x2+=Br[2]*We,Sr.y2+=Br[3]*We),$t){let Jr=new l(Sr.x1,Sr.y1),li=new l(Sr.x2,Sr.y1),Hi=new l(Sr.x1,Sr.y2),cn=new l(Sr.x2,Sr.y2),Za=$t*Math.PI/180;Jr._rotate(Za),li._rotate(Za),Hi._rotate(Za),cn._rotate(Za),Sr.x1=Math.min(Jr.x,li.x,Hi.x,cn.x),Sr.x2=Math.max(Jr.x,li.x,Hi.x,cn.x),Sr.y1=Math.min(Jr.y,li.y,Hi.y,cn.y),Sr.y2=Math.max(Jr.y,li.y,Hi.y,cn.y)}S.emplaceBack(D.x,D.y,Sr.x1,Sr.y1,Sr.x2,Sr.y2,X,ie,ve)}this.boxEndIndex=S.length}}class Vv{constructor(S=[],D=(X,ie)=>Xie?1:0){if(this.data=S,this.length=this.data.length,this.compare=D,this.length>0)for(let X=(this.length>>1)-1;X>=0;X--)this._down(X)}push(S){this.data.push(S),this._up(this.length++)}pop(){if(this.length===0)return;let S=this.data[0],D=this.data.pop();return--this.length>0&&(this.data[0]=D,this._down(0)),S}peek(){return this.data[0]}_up(S){let{data:D,compare:X}=this,ie=D[S];for(;S>0;){let ve=S-1>>1,we=D[ve];if(X(ie,we)>=0)break;D[S]=we,S=ve}D[S]=ie}_down(S){let{data:D,compare:X}=this,ie=this.length>>1,ve=D[S];for(;S=0)break;D[S]=D[we],S=we}D[S]=ve}}function l9(I,S=1,D=!1){let X=1/0,ie=1/0,ve=-1/0,we=-1/0,We=I[0];for(let Br=0;Brve)&&(ve=Jr.x),(!Br||Jr.y>we)&&(we=Jr.y)}let ut=Math.min(ve-X,we-ie),Mt=ut/2,$t=new Vv([],u9);if(ut===0)return new l(X,ie);for(let Br=X;Brvr.d||!vr.d)&&(vr=Br,D&&console.log("found best %d after %d probes",Math.round(1e4*Br.d)/1e4,Sr)),Br.max-vr.d<=S||(Mt=Br.h/2,$t.push(new P1(Br.p.x-Mt,Br.p.y-Mt,Mt,I)),$t.push(new P1(Br.p.x+Mt,Br.p.y-Mt,Mt,I)),$t.push(new P1(Br.p.x-Mt,Br.p.y+Mt,Mt,I)),$t.push(new P1(Br.p.x+Mt,Br.p.y+Mt,Mt,I)),Sr+=4)}return D&&(console.log(`num probes: ${Sr}`),console.log(`best distance: ${vr.d}`)),vr.p}function u9(I,S){return S.max-I.max}function P1(I,S,D,X){this.p=new l(I,S),this.h=D,this.d=function(ie,ve){let we=!1,We=1/0;for(let ut=0;utie.y!=Jr.y>ie.y&&ie.x<(Jr.x-Br.x)*(ie.y-Br.y)/(Jr.y-Br.y)+Br.x&&(we=!we),We=Math.min(We,pi(ie,Br,Jr))}}return(we?1:-1)*Math.sqrt(We)}(this.p,X),this.max=this.d+this.h*Math.SQRT2}var ld;i.aq=void 0,(ld=i.aq||(i.aq={}))[ld.center=1]="center",ld[ld.left=2]="left",ld[ld.right=3]="right",ld[ld.top=4]="top",ld[ld.bottom=5]="bottom",ld[ld["top-left"]=6]="top-left",ld[ld["top-right"]=7]="top-right",ld[ld["bottom-left"]=8]="bottom-left",ld[ld["bottom-right"]=9]="bottom-right";let cy=7,cg=Number.POSITIVE_INFINITY;function mM(I,S){return S[1]!==cg?function(D,X,ie){let ve=0,we=0;switch(X=Math.abs(X),ie=Math.abs(ie),D){case"top-right":case"top-left":case"top":we=ie-cy;break;case"bottom-right":case"bottom-left":case"bottom":we=-ie+cy}switch(D){case"top-right":case"bottom-right":case"right":ve=-X;break;case"top-left":case"bottom-left":case"left":ve=X}return[ve,we]}(I,S[0],S[1]):function(D,X){let ie=0,ve=0;X<0&&(X=0);let we=X/Math.SQRT2;switch(D){case"top-right":case"top-left":ve=we-cy;break;case"bottom-right":case"bottom-left":ve=-we+cy;break;case"bottom":ve=-X+cy;break;case"top":ve=X-cy}switch(D){case"top-right":case"bottom-right":ie=-we;break;case"top-left":case"bottom-left":ie=we;break;case"left":ie=X;break;case"right":ie=-X}return[ie,ve]}(I,S[0])}function VC(I,S,D){var X;let ie=I.layout,ve=(X=ie.get("text-variable-anchor-offset"))===null||X===void 0?void 0:X.evaluate(S,{},D);if(ve){let We=ve.values,ut=[];for(let Mt=0;MtSr*Wf);$t.startsWith("top")?vr[1]-=cy:$t.startsWith("bottom")&&(vr[1]+=cy),ut[Mt+1]=vr}return new jr(ut)}let we=ie.get("text-variable-anchor");if(we){let We;We=I._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[ie.get("text-radial-offset").evaluate(S,{},D)*Wf,cg]:ie.get("text-offset").evaluate(S,{},D).map(Mt=>Mt*Wf);let ut=[];for(let Mt of we)ut.push(Mt,mM(Mt,We));return new jr(ut)}return null}function yM(I){switch(I){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function f9(I,S,D,X,ie,ve,we,We,ut,Mt,$t){let vr=ve.textMaxSize.evaluate(S,{});vr===void 0&&(vr=we);let Sr=I.layers[0].layout,Br=Sr.get("icon-offset").evaluate(S,{},$t),Jr=HC(D.horizontal),li=we/24,Hi=I.tilePixelRatio*li,cn=I.tilePixelRatio*vr/24,Za=I.tilePixelRatio*We,Rn=I.tilePixelRatio*Sr.get("symbol-spacing"),La=Sr.get("text-padding")*I.tilePixelRatio,So=function(Xs,Lu,xu,qu=1){let vc=Xs.get("icon-padding").evaluate(Lu,{},xu),cc=vc&&vc.values;return[cc[0]*qu,cc[1]*qu,cc[2]*qu,cc[3]*qu]}(Sr,S,$t,I.tilePixelRatio),kl=Sr.get("text-max-angle")/180*Math.PI,mu=Sr.get("text-rotation-alignment")!=="viewport"&&Sr.get("symbol-placement")!=="point",Iu=Sr.get("icon-rotation-alignment")==="map"&&Sr.get("symbol-placement")!=="point",su=Sr.get("symbol-placement"),yl=Rn/2,Eu=Sr.get("icon-text-fit"),bu;X&&Eu!=="none"&&(I.allowVerticalPlacement&&D.vertical&&(bu=TC(X,D.vertical,Eu,Sr.get("icon-text-fit-padding"),Br,li)),Jr&&(X=TC(X,Jr,Eu,Sr.get("icon-text-fit-padding"),Br,li)));let _u=(Xs,Lu)=>{Lu.x<0||Lu.x>=Wl||Lu.y<0||Lu.y>=Wl||function(xu,qu,vc,cc,Lh,Qp,ud,Ph,Wd,jd,Xd,Jc,zh,Cd,fd,Xh,rh,Rp,fp,jf,Ac,mc,Dp,Hc,z1){let v0=xu.addToLineVertexArray(qu,vc),Gv,ev,Rc,fh,tv=0,ym=0,cp=0,I1=0,wM=-1,Uw=-1,m0={},hg=fn("");if(xu.allowVerticalPlacement&&cc.vertical){let Ld=Ph.layout.get("text-rotate").evaluate(Ac,{},Hc)+90;Rc=new fy(Wd,qu,jd,Xd,Jc,cc.vertical,zh,Cd,fd,Ld),ud&&(fh=new fy(Wd,qu,jd,Xd,Jc,ud,rh,Rp,fd,Ld))}if(Lh){let Ld=Ph.layout.get("icon-rotate").evaluate(Ac,{}),rv=Ph.layout.get("icon-text-fit")!=="none",hy=NC(Lh,Ld,Dp,rv),Zd=ud?NC(ud,Ld,Dp,rv):void 0;ev=new fy(Wd,qu,jd,Xd,Jc,Lh,rh,Rp,!1,Ld),tv=4*hy.length;let Pd=xu.iconSizeData,gv=null;Pd.kind==="source"?(gv=[p0*Ph.layout.get("icon-size").evaluate(Ac,{})],gv[0]>ly&&A(`${xu.layerIds[0]}: Value for "icon-size" is >= ${Wx}. Reduce your "icon-size".`)):Pd.kind==="composite"&&(gv=[p0*mc.compositeIconSizes[0].evaluate(Ac,{},Hc),p0*mc.compositeIconSizes[1].evaluate(Ac,{},Hc)],(gv[0]>ly||gv[1]>ly)&&A(`${xu.layerIds[0]}: Value for "icon-size" is >= ${Wx}. Reduce your "icon-size".`)),xu.addSymbols(xu.icon,hy,gv,jf,fp,Ac,i.ah.none,qu,v0.lineStartIndex,v0.lineLength,-1,Hc),wM=xu.icon.placedSymbolArray.length-1,Zd&&(ym=4*Zd.length,xu.addSymbols(xu.icon,Zd,gv,jf,fp,Ac,i.ah.vertical,qu,v0.lineStartIndex,v0.lineLength,-1,Hc),Uw=xu.icon.placedSymbolArray.length-1)}let Zh=Object.keys(cc.horizontal);for(let Ld of Zh){let rv=cc.horizontal[Ld];if(!Gv){hg=fn(rv.text);let Zd=Ph.layout.get("text-rotate").evaluate(Ac,{},Hc);Gv=new fy(Wd,qu,jd,Xd,Jc,rv,zh,Cd,fd,Zd)}let hy=rv.positionedLines.length===1;if(cp+=GC(xu,qu,rv,Qp,Ph,fd,Ac,Xh,v0,cc.vertical?i.ah.horizontal:i.ah.horizontalOnly,hy?Zh:[Ld],m0,wM,mc,Hc),hy)break}cc.vertical&&(I1+=GC(xu,qu,cc.vertical,Qp,Ph,fd,Ac,Xh,v0,i.ah.vertical,["vertical"],m0,Uw,mc,Hc));let d9=Gv?Gv.boxStartIndex:xu.collisionBoxArray.length,Vw=Gv?Gv.boxEndIndex:xu.collisionBoxArray.length,y0=Rc?Rc.boxStartIndex:xu.collisionBoxArray.length,hp=Rc?Rc.boxEndIndex:xu.collisionBoxArray.length,ZC=ev?ev.boxStartIndex:xu.collisionBoxArray.length,p9=ev?ev.boxEndIndex:xu.collisionBoxArray.length,YC=fh?fh.boxStartIndex:xu.collisionBoxArray.length,v9=fh?fh.boxEndIndex:xu.collisionBoxArray.length,yv=-1,tb=(Ld,rv)=>Ld&&Ld.circleDiameter?Math.max(Ld.circleDiameter,rv):rv;yv=tb(Gv,yv),yv=tb(Rc,yv),yv=tb(ev,yv),yv=tb(fh,yv);let Gw=yv>-1?1:0;Gw&&(yv*=z1/Wf),xu.glyphOffsetArray.length>=E1.MAX_GLYPHS&&A("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Ac.sortKey!==void 0&&xu.addToSortKeyRanges(xu.symbolInstances.length,Ac.sortKey);let AM=VC(Ph,Ac,Hc),[m9,y9]=function(Ld,rv){let hy=Ld.length,Zd=rv==null?void 0:rv.values;if((Zd==null?void 0:Zd.length)>0)for(let Pd=0;Pd=0?m0.right:-1,m0.center>=0?m0.center:-1,m0.left>=0?m0.left:-1,m0.vertical||-1,wM,Uw,hg,d9,Vw,y0,hp,ZC,p9,YC,v9,jd,cp,I1,tv,ym,Gw,0,zh,yv,m9,y9)}(I,Lu,Xs,D,X,ie,bu,I.layers[0],I.collisionBoxArray,S.index,S.sourceLayerIndex,I.index,Hi,[La,La,La,La],mu,ut,Za,So,Iu,Br,S,ve,Mt,$t,we)};if(su==="line")for(let Xs of DC(S.geometry,0,0,Wl,Wl)){let Lu=s9(Xs,Rn,kl,D.vertical||Jr,X,24,cn,I.overscaling,Wl);for(let xu of Lu)Jr&&c9(I,Jr.text,yl,xu)||_u(Xs,xu)}else if(su==="line-center"){for(let Xs of S.geometry)if(Xs.length>1){let Lu=o9(Xs,kl,D.vertical||Jr,X,24,cn);Lu&&_u(Xs,Lu)}}else if(S.type==="Polygon")for(let Xs of Ys(S.geometry,0)){let Lu=l9(Xs,16);_u(Xs[0],new vm(Lu.x,Lu.y,0))}else if(S.type==="LineString")for(let Xs of S.geometry)_u(Xs,new vm(Xs[0].x,Xs[0].y,0));else if(S.type==="Point")for(let Xs of S.geometry)for(let Lu of Xs)_u([Lu],new vm(Lu.x,Lu.y,0))}function GC(I,S,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr){let li=function(Za,Rn,La,So,kl,mu,Iu,su){let yl=So.layout.get("text-rotate").evaluate(mu,{})*Math.PI/180,Eu=[];for(let bu of Rn.positionedLines)for(let _u of bu.positionedGlyphs){if(!_u.rect)continue;let Xs=_u.rect||{},Lu=_C+1,xu=!0,qu=1,vc=0,cc=(kl||su)&&_u.vertical,Lh=_u.metrics.advance*_u.scale/2;if(su&&Rn.verticalizable&&(vc=bu.lineOffset/2-(_u.imageName?-(Wf-_u.metrics.width*_u.scale)/2:(_u.scale-1)*Wf)),_u.imageName){let jf=Iu[_u.imageName];xu=jf.sdf,qu=jf.pixelRatio,Lu=kd/qu}let Qp=kl?[_u.x+Lh,_u.y]:[0,0],ud=kl?[0,0]:[_u.x+Lh+La[0],_u.y+La[1]-vc],Ph=[0,0];cc&&(Ph=ud,ud=[0,0]);let Wd=_u.metrics.isDoubleResolution?2:1,jd=(_u.metrics.left-Lu)*_u.scale-Lh+ud[0],Xd=(-_u.metrics.top-Lu)*_u.scale+ud[1],Jc=jd+Xs.w/Wd*_u.scale/qu,zh=Xd+Xs.h/Wd*_u.scale/qu,Cd=new l(jd,Xd),fd=new l(Jc,Xd),Xh=new l(jd,zh),rh=new l(Jc,zh);if(cc){let jf=new l(-Lh,Lh-Ch),Ac=-Math.PI/2,mc=Wf/2-Lh,Dp=new l(5-Ch-mc,-(_u.imageName?mc:0)),Hc=new l(...Ph);Cd._rotateAround(Ac,jf)._add(Dp)._add(Hc),fd._rotateAround(Ac,jf)._add(Dp)._add(Hc),Xh._rotateAround(Ac,jf)._add(Dp)._add(Hc),rh._rotateAround(Ac,jf)._add(Dp)._add(Hc)}if(yl){let jf=Math.sin(yl),Ac=Math.cos(yl),mc=[Ac,-jf,jf,Ac];Cd._matMult(mc),fd._matMult(mc),Xh._matMult(mc),rh._matMult(mc)}let Rp=new l(0,0),fp=new l(0,0);Eu.push({tl:Cd,tr:fd,bl:Xh,br:rh,tex:Xs,writingMode:Rn.writingMode,glyphOffset:Qp,sectionIndex:_u.sectionIndex,isSDF:xu,pixelOffsetTL:Rp,pixelOffsetBR:fp,minFontScaleX:0,minFontScaleY:0})}return Eu}(0,D,We,ie,ve,we,X,I.allowVerticalPlacement),Hi=I.textSizeData,cn=null;Hi.kind==="source"?(cn=[p0*ie.layout.get("text-size").evaluate(we,{})],cn[0]>ly&&A(`${I.layerIds[0]}: Value for "text-size" is >= ${Wx}. Reduce your "text-size".`)):Hi.kind==="composite"&&(cn=[p0*Br.compositeTextSizes[0].evaluate(we,{},Jr),p0*Br.compositeTextSizes[1].evaluate(we,{},Jr)],(cn[0]>ly||cn[1]>ly)&&A(`${I.layerIds[0]}: Value for "text-size" is >= ${Wx}. Reduce your "text-size".`)),I.addSymbols(I.text,li,cn,We,ve,we,Mt,S,ut.lineStartIndex,ut.lineLength,Sr,Jr);for(let Za of $t)vr[Za]=I.text.placedSymbolArray.length-1;return 4*li.length}function HC(I){for(let S in I)return I[S];return null}function c9(I,S,D,X){let ie=I.compareText;if(S in ie){let ve=ie[S];for(let we=ve.length-1;we>=0;we--)if(X.dist(ve[we])>4;if(ie!==1)throw new Error(`Got v${ie} data when expected v1.`);let ve=WC[15&X];if(!ve)throw new Error("Unrecognized array type.");let[we]=new Uint16Array(S,2,1),[We]=new Uint32Array(S,4,1);return new gM(We,we,ve,S)}constructor(S,D=64,X=Float64Array,ie){if(isNaN(S)||S<0)throw new Error(`Unpexpected numItems value: ${S}.`);this.numItems=+S,this.nodeSize=Math.min(Math.max(+D,2),65535),this.ArrayType=X,this.IndexArrayType=S<65536?Uint16Array:Uint32Array;let ve=WC.indexOf(this.ArrayType),we=2*S*this.ArrayType.BYTES_PER_ELEMENT,We=S*this.IndexArrayType.BYTES_PER_ELEMENT,ut=(8-We%8)%8;if(ve<0)throw new Error(`Unexpected typed array class: ${X}.`);ie&&ie instanceof ArrayBuffer?(this.data=ie,this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+We+ut,2*S),this._pos=2*S,this._finished=!0):(this.data=new ArrayBuffer(8+we+We+ut),this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+We+ut,2*S),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+ve]),new Uint16Array(this.data,2,1)[0]=D,new Uint32Array(this.data,4,1)[0]=S)}add(S,D){let X=this._pos>>1;return this.ids[X]=X,this.coords[this._pos++]=S,this.coords[this._pos++]=D,X}finish(){let S=this._pos>>1;if(S!==this.numItems)throw new Error(`Added ${S} items when expected ${this.numItems}.`);return Ow(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(S,D,X,ie){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:ve,coords:we,nodeSize:We}=this,ut=[0,ve.length-1,0],Mt=[];for(;ut.length;){let $t=ut.pop()||0,vr=ut.pop()||0,Sr=ut.pop()||0;if(vr-Sr<=We){for(let Hi=Sr;Hi<=vr;Hi++){let cn=we[2*Hi],Za=we[2*Hi+1];cn>=S&&cn<=X&&Za>=D&&Za<=ie&&Mt.push(ve[Hi])}continue}let Br=Sr+vr>>1,Jr=we[2*Br],li=we[2*Br+1];Jr>=S&&Jr<=X&&li>=D&&li<=ie&&Mt.push(ve[Br]),($t===0?S<=Jr:D<=li)&&(ut.push(Sr),ut.push(Br-1),ut.push(1-$t)),($t===0?X>=Jr:ie>=li)&&(ut.push(Br+1),ut.push(vr),ut.push(1-$t))}return Mt}within(S,D,X){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:ie,coords:ve,nodeSize:we}=this,We=[0,ie.length-1,0],ut=[],Mt=X*X;for(;We.length;){let $t=We.pop()||0,vr=We.pop()||0,Sr=We.pop()||0;if(vr-Sr<=we){for(let Hi=Sr;Hi<=vr;Hi++)XC(ve[2*Hi],ve[2*Hi+1],S,D)<=Mt&&ut.push(ie[Hi]);continue}let Br=Sr+vr>>1,Jr=ve[2*Br],li=ve[2*Br+1];XC(Jr,li,S,D)<=Mt&&ut.push(ie[Br]),($t===0?S-X<=Jr:D-X<=li)&&(We.push(Sr),We.push(Br-1),We.push(1-$t)),($t===0?S+X>=Jr:D+X>=li)&&(We.push(Br+1),We.push(vr),We.push(1-$t))}return ut}}function Ow(I,S,D,X,ie,ve){if(ie-X<=D)return;let we=X+ie>>1;jC(I,S,we,X,ie,ve),Ow(I,S,D,X,we-1,1-ve),Ow(I,S,D,we+1,ie,1-ve)}function jC(I,S,D,X,ie,ve){for(;ie>X;){if(ie-X>600){let Mt=ie-X+1,$t=D-X+1,vr=Math.log(Mt),Sr=.5*Math.exp(2*vr/3),Br=.5*Math.sqrt(vr*Sr*(Mt-Sr)/Mt)*($t-Mt/2<0?-1:1);jC(I,S,D,Math.max(X,Math.floor(D-$t*Sr/Mt+Br)),Math.min(ie,Math.floor(D+(Mt-$t)*Sr/Mt+Br)),ve)}let we=S[2*D+ve],We=X,ut=ie;for(Qx(I,S,X,D),S[2*ie+ve]>we&&Qx(I,S,X,ie);Wewe;)ut--}S[2*X+ve]===we?Qx(I,S,X,ut):(ut++,Qx(I,S,ut,ie)),ut<=D&&(X=ut+1),D<=ut&&(ie=ut-1)}}function Qx(I,S,D,X){_M(I,D,X),_M(S,2*D,2*X),_M(S,2*D+1,2*X+1)}function _M(I,S,D){let X=I[S];I[S]=I[D],I[D]=X}function XC(I,S,D,X){let ie=I-D,ve=S-X;return ie*ie+ve*ve}var qw;i.bg=void 0,(qw=i.bg||(i.bg={})).create="create",qw.load="load",qw.fullLoad="fullLoad";let eb=null,mh=[],xM=1e3/60,bM="loadTime",Nw="fullLoadTime",h9={mark(I){performance.mark(I)},frame(I){let S=I;eb!=null&&mh.push(S-eb),eb=S},clearMetrics(){eb=null,mh=[],performance.clearMeasures(bM),performance.clearMeasures(Nw);for(let I in i.bg)performance.clearMarks(i.bg[I])},getPerformanceMetrics(){performance.measure(bM,i.bg.create,i.bg.load),performance.measure(Nw,i.bg.create,i.bg.fullLoad);let I=performance.getEntriesByName(bM)[0].duration,S=performance.getEntriesByName(Nw)[0].duration,D=mh.length,X=1/(mh.reduce((ve,we)=>ve+we,0)/D/1e3),ie=mh.filter(ve=>ve>xM).reduce((ve,we)=>ve+(we-xM)/xM,0);return{loadTime:I,fullLoadTime:S,fps:X,percentDroppedFrames:ie/(D+ie)*100,totalFrames:D}}};i.$=class extends ir{},i.A=dn,i.B=ki,i.C=function(I){if(U==null){let S=I.navigator?I.navigator.userAgent:null;U=!!I.safari||!(!S||!(/\b(iPad|iPhone|iPod)\b/.test(S)||S.match("Safari")&&!S.match("Chrome")))}return U},i.D=ms,i.E=Ve,i.F=class{constructor(I,S){this.target=I,this.mapId=S,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new cM(()=>this.process()),this.subscription=function(D,X,ie,ve){return D.addEventListener(X,ie,!1),{unsubscribe:()=>{D.removeEventListener(X,ie,!1)}}}(this.target,"message",D=>this.receive(D)),this.globalScope=F(self)?I:window}registerMessageHandler(I,S){this.messageHandlers[I]=S}sendAsync(I,S){return new Promise((D,X)=>{let ie=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[ie]={resolve:D,reject:X},S&&S.signal.addEventListener("abort",()=>{delete this.resolveRejects[ie];let We={id:ie,type:"",origin:location.origin,targetMapId:I.targetMapId,sourceMapId:this.mapId};this.target.postMessage(We)},{once:!0});let ve=[],we=Object.assign(Object.assign({},I),{id:ie,sourceMapId:this.mapId,origin:location.origin,data:ia(I.data,ve)});this.target.postMessage(we,{transfer:ve})})}receive(I){let S=I.data,D=S.id;if(!(S.origin!=="file://"&&location.origin!=="file://"&&S.origin!=="resource://android"&&location.origin!=="resource://android"&&S.origin!==location.origin||S.targetMapId&&this.mapId!==S.targetMapId)){if(S.type===""){delete this.tasks[D];let X=this.abortControllers[D];return delete this.abortControllers[D],void(X&&X.abort())}if(F(self)||S.mustQueue)return this.tasks[D]=S,this.taskQueue.push(D),void this.invoker.trigger();this.processTask(D,S)}}process(){if(this.taskQueue.length===0)return;let I=this.taskQueue.shift(),S=this.tasks[I];delete this.tasks[I],this.taskQueue.length>0&&this.invoker.trigger(),S&&this.processTask(I,S)}processTask(I,S){return a(this,void 0,void 0,function*(){if(S.type===""){let ie=this.resolveRejects[I];return delete this.resolveRejects[I],ie?void(S.error?ie.reject(pa(S.error)):ie.resolve(pa(S.data))):void 0}if(!this.messageHandlers[S.type])return void this.completeTask(I,new Error(`Could not find a registered handler for ${S.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let D=pa(S.data),X=new AbortController;this.abortControllers[I]=X;try{let ie=yield this.messageHandlers[S.type](S.sourceMapId,D,X);this.completeTask(I,null,ie)}catch(ie){this.completeTask(I,ie)}})}completeTask(I,S,D){let X=[];delete this.abortControllers[I];let ie={id:I,type:"",sourceMapId:this.mapId,origin:location.origin,error:S?ia(S):null,data:ia(D,X)};this.target.postMessage(ie,{transfer:X})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=Ce,i.H=function(){var I=new dn(16);return dn!=Float32Array&&(I[1]=0,I[2]=0,I[3]=0,I[4]=0,I[6]=0,I[7]=0,I[8]=0,I[9]=0,I[11]=0,I[12]=0,I[13]=0,I[14]=0),I[0]=1,I[5]=1,I[10]=1,I[15]=1,I},i.I=kw,i.J=function(I,S,D){var X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li=D[0],Hi=D[1],cn=D[2];return S===I?(I[12]=S[0]*li+S[4]*Hi+S[8]*cn+S[12],I[13]=S[1]*li+S[5]*Hi+S[9]*cn+S[13],I[14]=S[2]*li+S[6]*Hi+S[10]*cn+S[14],I[15]=S[3]*li+S[7]*Hi+S[11]*cn+S[15]):(ie=S[1],ve=S[2],we=S[3],We=S[4],ut=S[5],Mt=S[6],$t=S[7],vr=S[8],Sr=S[9],Br=S[10],Jr=S[11],I[0]=X=S[0],I[1]=ie,I[2]=ve,I[3]=we,I[4]=We,I[5]=ut,I[6]=Mt,I[7]=$t,I[8]=vr,I[9]=Sr,I[10]=Br,I[11]=Jr,I[12]=X*li+We*Hi+vr*cn+S[12],I[13]=ie*li+ut*Hi+Sr*cn+S[13],I[14]=ve*li+Mt*Hi+Br*cn+S[14],I[15]=we*li+$t*Hi+Jr*cn+S[15]),I},i.K=function(I,S,D){var X=D[0],ie=D[1],ve=D[2];return I[0]=S[0]*X,I[1]=S[1]*X,I[2]=S[2]*X,I[3]=S[3]*X,I[4]=S[4]*ie,I[5]=S[5]*ie,I[6]=S[6]*ie,I[7]=S[7]*ie,I[8]=S[8]*ve,I[9]=S[9]*ve,I[10]=S[10]*ve,I[11]=S[11]*ve,I[12]=S[12],I[13]=S[13],I[14]=S[14],I[15]=S[15],I},i.L=Yi,i.M=function(I,S){let D={};for(let X=0;X{let S=window.document.createElement("video");return S.muted=!0,new Promise(D=>{S.onloadstart=()=>{D(S)};for(let X of I){let ie=window.document.createElement("source");Ee(X)||(S.crossOrigin="Anonymous"),ie.src=X,S.appendChild(ie)}})},i.a4=function(){return x++},i.a5=Ua,i.a6=E1,i.a7=Jn,i.a8=df,i.a9=pM,i.aA=function(I){if(I.type==="custom")return new fM(I);switch(I.type){case"background":return new n9(I);case"circle":return new $i(I);case"fill":return new Ot(I);case"fill-extrusion":return new Ad(I);case"heatmap":return new pl(I);case"hillshade":return new mf(I);case"line":return new ag(I);case"raster":return new Yx(I);case"symbol":return new ug(I)}},i.aB=m,i.aC=function(I,S){if(!I)return[{command:"setStyle",args:[S]}];let D=[];try{if(!gt(I.version,S.version))return[{command:"setStyle",args:[S]}];gt(I.center,S.center)||D.push({command:"setCenter",args:[S.center]}),gt(I.zoom,S.zoom)||D.push({command:"setZoom",args:[S.zoom]}),gt(I.bearing,S.bearing)||D.push({command:"setBearing",args:[S.bearing]}),gt(I.pitch,S.pitch)||D.push({command:"setPitch",args:[S.pitch]}),gt(I.sprite,S.sprite)||D.push({command:"setSprite",args:[S.sprite]}),gt(I.glyphs,S.glyphs)||D.push({command:"setGlyphs",args:[S.glyphs]}),gt(I.transition,S.transition)||D.push({command:"setTransition",args:[S.transition]}),gt(I.light,S.light)||D.push({command:"setLight",args:[S.light]}),gt(I.terrain,S.terrain)||D.push({command:"setTerrain",args:[S.terrain]}),gt(I.sky,S.sky)||D.push({command:"setSky",args:[S.sky]}),gt(I.projection,S.projection)||D.push({command:"setProjection",args:[S.projection]});let X={},ie=[];(function(we,We,ut,Mt){let $t;for($t in We=We||{},we=we||{})Object.prototype.hasOwnProperty.call(we,$t)&&(Object.prototype.hasOwnProperty.call(We,$t)||Ye($t,ut,Mt));for($t in We)Object.prototype.hasOwnProperty.call(We,$t)&&(Object.prototype.hasOwnProperty.call(we,$t)?gt(we[$t],We[$t])||(we[$t].type==="geojson"&&We[$t].type==="geojson"&&Tt(we,We,$t)?Nt(ut,{command:"setGeoJSONSourceData",args:[$t,We[$t].data]}):kt($t,We,ut,Mt)):it($t,We,ut))})(I.sources,S.sources,ie,X);let ve=[];I.layers&&I.layers.forEach(we=>{"source"in we&&X[we.source]?D.push({command:"removeLayer",args:[we.id]}):ve.push(we)}),D=D.concat(ie),function(we,We,ut){We=We||[];let Mt=(we=we||[]).map(Rt),$t=We.map(Rt),vr=we.reduce(Zt,{}),Sr=We.reduce(Zt,{}),Br=Mt.slice(),Jr=Object.create(null),li,Hi,cn,Za,Rn;for(let La=0,So=0;La@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(D,X,ie,ve)=>{let we=ie||ve;return S[X]=!we||we.toLowerCase(),""}),S["max-age"]){let D=parseInt(S["max-age"],10);isNaN(D)?delete S["max-age"]:S["max-age"]=D}return S},i.ab=function(I,S){let D=[];for(let X in I)X in S||D.push(X);return D},i.ac=E,i.ad=function(I,S,D){var X=Math.sin(D),ie=Math.cos(D),ve=S[0],we=S[1],We=S[2],ut=S[3],Mt=S[4],$t=S[5],vr=S[6],Sr=S[7];return S!==I&&(I[8]=S[8],I[9]=S[9],I[10]=S[10],I[11]=S[11],I[12]=S[12],I[13]=S[13],I[14]=S[14],I[15]=S[15]),I[0]=ve*ie+Mt*X,I[1]=we*ie+$t*X,I[2]=We*ie+vr*X,I[3]=ut*ie+Sr*X,I[4]=Mt*ie-ve*X,I[5]=$t*ie-we*X,I[6]=vr*ie-We*X,I[7]=Sr*ie-ut*X,I},i.ae=function(I){var S=new dn(16);return S[0]=I[0],S[1]=I[1],S[2]=I[2],S[3]=I[3],S[4]=I[4],S[5]=I[5],S[6]=I[6],S[7]=I[7],S[8]=I[8],S[9]=I[9],S[10]=I[10],S[11]=I[11],S[12]=I[12],S[13]=I[13],S[14]=I[14],S[15]=I[15],S},i.af=hs,i.ag=function(I,S){let D=0,X=0;if(I.kind==="constant")X=I.layoutSize;else if(I.kind!=="source"){let{interpolationType:ie,minZoom:ve,maxZoom:we}=I,We=ie?E(so.interpolationFactor(ie,S,ve,we),0,1):0;I.kind==="camera"?X=ka.number(I.minSize,I.maxSize,We):D=We}return{uSizeT:D,uSize:X}},i.ai=function(I,{uSize:S,uSizeT:D},{lowerSize:X,upperSize:ie}){return I.kind==="source"?X/p0:I.kind==="composite"?ka.number(X/p0,ie/p0,D):S},i.aj=oM,i.ak=function(I,S,D,X){let ie=S.y-I.y,ve=S.x-I.x,we=X.y-D.y,We=X.x-D.x,ut=we*ve-We*ie;if(ut===0)return null;let Mt=(We*(I.y-D.y)-we*(I.x-D.x))/ut;return new l(I.x+Mt*ve,I.y+Mt*ie)},i.al=DC,i.am=fc,i.an=En,i.ao=function(I){let S=1/0,D=1/0,X=-1/0,ie=-1/0;for(let ve of I)S=Math.min(S,ve.x),D=Math.min(D,ve.y),X=Math.max(X,ve.x),ie=Math.max(ie,ve.y);return[S,D,X,ie]},i.ap=Wf,i.ar=aM,i.as=function(I,S){var D=S[0],X=S[1],ie=S[2],ve=S[3],we=S[4],We=S[5],ut=S[6],Mt=S[7],$t=S[8],vr=S[9],Sr=S[10],Br=S[11],Jr=S[12],li=S[13],Hi=S[14],cn=S[15],Za=D*We-X*we,Rn=D*ut-ie*we,La=D*Mt-ve*we,So=X*ut-ie*We,kl=X*Mt-ve*We,mu=ie*Mt-ve*ut,Iu=$t*li-vr*Jr,su=$t*Hi-Sr*Jr,yl=$t*cn-Br*Jr,Eu=vr*Hi-Sr*li,bu=vr*cn-Br*li,_u=Sr*cn-Br*Hi,Xs=Za*_u-Rn*bu+La*Eu+So*yl-kl*su+mu*Iu;return Xs?(I[0]=(We*_u-ut*bu+Mt*Eu)*(Xs=1/Xs),I[1]=(ie*bu-X*_u-ve*Eu)*Xs,I[2]=(li*mu-Hi*kl+cn*So)*Xs,I[3]=(Sr*kl-vr*mu-Br*So)*Xs,I[4]=(ut*yl-we*_u-Mt*su)*Xs,I[5]=(D*_u-ie*yl+ve*su)*Xs,I[6]=(Hi*La-Jr*mu-cn*Rn)*Xs,I[7]=($t*mu-Sr*La+Br*Rn)*Xs,I[8]=(we*bu-We*yl+Mt*Iu)*Xs,I[9]=(X*yl-D*bu-ve*Iu)*Xs,I[10]=(Jr*kl-li*La+cn*Za)*Xs,I[11]=(vr*La-$t*kl-Br*Za)*Xs,I[12]=(We*su-we*Eu-ut*Iu)*Xs,I[13]=(D*Eu-X*su+ie*Iu)*Xs,I[14]=(li*Rn-Jr*So-Hi*Za)*Xs,I[15]=($t*So-vr*Rn+Sr*Za)*Xs,I):null},i.at=yM,i.au=zw,i.av=gM,i.aw=function(){let I={},S=ce.$version;for(let D in ce.$root){let X=ce.$root[D];if(X.required){let ie=null;ie=D==="version"?S:X.type==="array"?[]:{},ie!=null&&(I[D]=ie)}}return I},i.ax=va,i.ay=te,i.az=function(I){I=I.slice();let S=Object.create(null);for(let D=0;D25||X<0||X>=1||D<0||D>=1)},i.bc=function(I,S){return I[0]=S[0],I[1]=0,I[2]=0,I[3]=0,I[4]=0,I[5]=S[1],I[6]=0,I[7]=0,I[8]=0,I[9]=0,I[10]=S[2],I[11]=0,I[12]=0,I[13]=0,I[14]=0,I[15]=1,I},i.bd=class extends Ft{},i.be=hM,i.bf=h9,i.bh=de,i.bi=function(I,S){be.REGISTERED_PROTOCOLS[I]=S},i.bj=function(I){delete be.REGISTERED_PROTOCOLS[I]},i.bk=function(I,S){let D={};for(let ie=0;ie_u*Wf)}let su=we?"center":D.get("text-justify").evaluate(Mt,{},I.canonical),yl=D.get("symbol-placement")==="point"?D.get("text-max-width").evaluate(Mt,{},I.canonical)*Wf:1/0,Eu=()=>{I.bucket.allowVerticalPlacement&&is(La)&&(Jr.vertical=Gx(li,I.glyphMap,I.glyphPositions,I.imagePositions,$t,yl,ve,mu,"left",kl,cn,i.ah.vertical,!0,Sr,vr))};if(!we&&Iu){let bu=new Set;if(su==="auto")for(let Xs=0;Xsa(void 0,void 0,void 0,function*(){if(I.byteLength===0)return createImageBitmap(new ImageData(1,1));let S=new Blob([new Uint8Array(I)],{type:"image/png"});try{return createImageBitmap(S)}catch(D){throw new Error(`Could not load image because of ${D.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),i.e=L,i.f=I=>new Promise((S,D)=>{let X=new Image;X.onload=()=>{S(X),URL.revokeObjectURL(X.src),X.onload=null,window.requestAnimationFrame(()=>{X.src=j})},X.onerror=()=>D(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let ie=new Blob([new Uint8Array(I)],{type:"image/png"});X.src=I.byteLength?URL.createObjectURL(ie):j}),i.g=Pe,i.h=(I,S)=>ke(L(I,{type:"json"}),S),i.i=F,i.j=ye,i.k=Fe,i.l=(I,S)=>ke(L(I,{type:"arrayBuffer"}),S),i.m=ke,i.n=function(I){return new rM(I).readFields(NQ,[])},i.o=ul,i.p=nM,i.q=le,i.r=Ti,i.s=Ee,i.t=Pi,i.u=gi,i.v=ce,i.w=A,i.x=function([I,S,D]){return S+=90,S*=Math.PI/180,D*=Math.PI/180,{x:I*Math.cos(S)*Math.sin(D),y:I*Math.sin(S)*Math.sin(D),z:I*Math.cos(D)}},i.y=ka,i.z=cs}),r("worker",["./shared"],function(i){"use strict";class a{constructor(xe){this.keyCache={},xe&&this.replace(xe)}replace(xe){this._layerConfigs={},this._layers={},this.update(xe,[])}update(xe,Oe){for(let De of xe){this._layerConfigs[De.id]=De;let ct=this._layers[De.id]=i.aA(De);ct._featureFilter=i.a7(ct.filter),this.keyCache[De.id]&&delete this.keyCache[De.id]}for(let De of Oe)delete this.keyCache[De],delete this._layerConfigs[De],delete this._layers[De];this.familiesBySource={};let Re=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let De of Re){let ct=De.map(Pt=>this._layers[Pt.id]),ge=ct[0];if(ge.visibility==="none")continue;let fe=ge.source||"",pe=this.familiesBySource[fe];pe||(pe=this.familiesBySource[fe]={});let dt=ge.sourceLayer||"_geojsonTileLayer",It=pe[dt];It||(It=pe[dt]=[]),It.push(ct)}}}class o{constructor(xe){let Oe={},Re=[];for(let fe in xe){let pe=xe[fe],dt=Oe[fe]={};for(let It in pe){let Pt=pe[+It];if(!Pt||Pt.bitmap.width===0||Pt.bitmap.height===0)continue;let rr={x:0,y:0,w:Pt.bitmap.width+2,h:Pt.bitmap.height+2};Re.push(rr),dt[It]={rect:rr,metrics:Pt.metrics}}}let{w:De,h:ct}=i.p(Re),ge=new i.o({width:De||1,height:ct||1});for(let fe in xe){let pe=xe[fe];for(let dt in pe){let It=pe[+dt];if(!It||It.bitmap.width===0||It.bitmap.height===0)continue;let Pt=Oe[fe][dt].rect;i.o.copy(It.bitmap,ge,{x:0,y:0},{x:Pt.x+1,y:Pt.y+1},It.bitmap)}}this.image=ge,this.positions=Oe}}i.bl("GlyphAtlas",o);class s{constructor(xe){this.tileID=new i.S(xe.tileID.overscaledZ,xe.tileID.wrap,xe.tileID.canonical.z,xe.tileID.canonical.x,xe.tileID.canonical.y),this.uid=xe.uid,this.zoom=xe.zoom,this.pixelRatio=xe.pixelRatio,this.tileSize=xe.tileSize,this.source=xe.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=xe.showCollisionBoxes,this.collectResourceTiming=!!xe.collectResourceTiming,this.returnDependencies=!!xe.returnDependencies,this.promoteId=xe.promoteId,this.inFlightDependencies=[]}parse(xe,Oe,Re,De){return i._(this,void 0,void 0,function*(){this.status="parsing",this.data=xe,this.collisionBoxArray=new i.a5;let ct=new i.bm(Object.keys(xe.layers).sort()),ge=new i.bn(this.tileID,this.promoteId);ge.bucketLayerIDs=[];let fe={},pe={featureIndex:ge,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:Re},dt=Oe.familiesBySource[this.source];for(let nn in dt){let ii=xe.layers[nn];if(!ii)continue;ii.version===1&&i.w(`Vector tile source "${this.source}" layer "${nn}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let wi=ct.encode(nn),Gi=[];for(let Bt=0;Bt=yt.maxzoom||yt.visibility!=="none"&&(u(Bt,this.zoom,Re),(fe[yt.id]=yt.createBucket({index:ge.bucketLayerIDs.length,layers:Bt,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:wi,sourceID:this.source})).populate(Gi,pe,this.tileID.canonical),ge.bucketLayerIDs.push(Bt.map(Vt=>Vt.id)))}}let It=i.aF(pe.glyphDependencies,nn=>Object.keys(nn).map(Number));this.inFlightDependencies.forEach(nn=>nn==null?void 0:nn.abort()),this.inFlightDependencies=[];let Pt=Promise.resolve({});if(Object.keys(It).length){let nn=new AbortController;this.inFlightDependencies.push(nn),Pt=De.sendAsync({type:"GG",data:{stacks:It,source:this.source,tileID:this.tileID,type:"glyphs"}},nn)}let rr=Object.keys(pe.iconDependencies),Hr=Promise.resolve({});if(rr.length){let nn=new AbortController;this.inFlightDependencies.push(nn),Hr=De.sendAsync({type:"GI",data:{icons:rr,source:this.source,tileID:this.tileID,type:"icons"}},nn)}let Dr=Object.keys(pe.patternDependencies),Mr=Promise.resolve({});if(Dr.length){let nn=new AbortController;this.inFlightDependencies.push(nn),Mr=De.sendAsync({type:"GI",data:{icons:Dr,source:this.source,tileID:this.tileID,type:"patterns"}},nn)}let[Fr,di,Di]=yield Promise.all([Pt,Hr,Mr]),Ii=new o(Fr),Ci=new i.bo(di,Di);for(let nn in fe){let ii=fe[nn];ii instanceof i.a6?(u(ii.layers,this.zoom,Re),i.bp({bucket:ii,glyphMap:Fr,glyphPositions:Ii.positions,imageMap:di,imagePositions:Ci.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):ii.hasPattern&&(ii instanceof i.bq||ii instanceof i.br||ii instanceof i.bs)&&(u(ii.layers,this.zoom,Re),ii.addFeatures(pe,this.tileID.canonical,Ci.patternPositions))}return this.status="done",{buckets:Object.values(fe).filter(nn=>!nn.isEmpty()),featureIndex:ge,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ii.image,imageAtlas:Ci,glyphMap:this.returnDependencies?Fr:null,iconMap:this.returnDependencies?di:null,glyphPositions:this.returnDependencies?Ii.positions:null}})}}function u(Ie,xe,Oe){let Re=new i.z(xe);for(let De of Ie)De.recalculate(Re,Oe)}class l{constructor(xe,Oe,Re){this.actor=xe,this.layerIndex=Oe,this.availableImages=Re,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(xe,Oe){return i._(this,void 0,void 0,function*(){let Re=yield i.l(xe.request,Oe);try{return{vectorTile:new i.bt.VectorTile(new i.bu(Re.data)),rawData:Re.data,cacheControl:Re.cacheControl,expires:Re.expires}}catch(De){let ct=new Uint8Array(Re.data),ge=`Unable to parse the tile at ${xe.request.url}, `;throw ge+=ct[0]===31&&ct[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${De.message}`,new Error(ge)}})}loadTile(xe){return i._(this,void 0,void 0,function*(){let Oe=xe.uid,Re=!!(xe&&xe.request&&xe.request.collectResourceTiming)&&new i.bv(xe.request),De=new s(xe);this.loading[Oe]=De;let ct=new AbortController;De.abort=ct;try{let ge=yield this.loadVectorTile(xe,ct);if(delete this.loading[Oe],!ge)return null;let fe=ge.rawData,pe={};ge.expires&&(pe.expires=ge.expires),ge.cacheControl&&(pe.cacheControl=ge.cacheControl);let dt={};if(Re){let Pt=Re.finish();Pt&&(dt.resourceTiming=JSON.parse(JSON.stringify(Pt)))}De.vectorTile=ge.vectorTile;let It=De.parse(ge.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Oe]=De,this.fetching[Oe]={rawTileData:fe,cacheControl:pe,resourceTiming:dt};try{let Pt=yield It;return i.e({rawTileData:fe.slice(0)},Pt,pe,dt)}finally{delete this.fetching[Oe]}}catch(ge){throw delete this.loading[Oe],De.status="done",this.loaded[Oe]=De,ge}})}reloadTile(xe){return i._(this,void 0,void 0,function*(){let Oe=xe.uid;if(!this.loaded||!this.loaded[Oe])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let Re=this.loaded[Oe];if(Re.showCollisionBoxes=xe.showCollisionBoxes,Re.status==="parsing"){let De=yield Re.parse(Re.vectorTile,this.layerIndex,this.availableImages,this.actor),ct;if(this.fetching[Oe]){let{rawTileData:ge,cacheControl:fe,resourceTiming:pe}=this.fetching[Oe];delete this.fetching[Oe],ct=i.e({rawTileData:ge.slice(0)},De,fe,pe)}else ct=De;return ct}if(Re.status==="done"&&Re.vectorTile)return Re.parse(Re.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(xe){return i._(this,void 0,void 0,function*(){let Oe=this.loading,Re=xe.uid;Oe&&Oe[Re]&&Oe[Re].abort&&(Oe[Re].abort.abort(),delete Oe[Re])})}removeTile(xe){return i._(this,void 0,void 0,function*(){this.loaded&&this.loaded[xe.uid]&&delete this.loaded[xe.uid]})}}class f{constructor(){this.loaded={}}loadTile(xe){return i._(this,void 0,void 0,function*(){let{uid:Oe,encoding:Re,rawImageData:De,redFactor:ct,greenFactor:ge,blueFactor:fe,baseShift:pe}=xe,dt=De.width+2,It=De.height+2,Pt=i.b(De)?new i.R({width:dt,height:It},yield i.bw(De,-1,-1,dt,It)):De,rr=new i.bx(Oe,Pt,Re,ct,ge,fe,pe);return this.loaded=this.loaded||{},this.loaded[Oe]=rr,rr})}removeTile(xe){let Oe=this.loaded,Re=xe.uid;Oe&&Oe[Re]&&delete Oe[Re]}}function c(Ie,xe){if(Ie.length!==0){h(Ie[0],xe);for(var Oe=1;Oe=Math.abs(fe)?Oe-pe+fe:fe-pe+Oe,Oe=pe}Oe+Re>=0!=!!xe&&Ie.reverse()}var d=i.by(function Ie(xe,Oe){var Re,De=xe&&xe.type;if(De==="FeatureCollection")for(Re=0;Re>31}function F(Ie,xe){for(var Oe=Ie.loadGeometry(),Re=Ie.type,De=0,ct=0,ge=Oe.length,fe=0;feIe},H=Math.fround||(N=new Float32Array(1),Ie=>(N[0]=+Ie,N[0]));var N;let W=3,re=5,ae=6;class be{constructor(xe){this.options=Object.assign(Object.create(j),xe),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(xe){let{log:Oe,minZoom:Re,maxZoom:De}=this.options;Oe&&console.time("total time");let ct=`prepare ${xe.length} points`;Oe&&console.time(ct),this.points=xe;let ge=[];for(let pe=0;pe=Re;pe--){let dt=+Date.now();fe=this.trees[pe]=this._createTree(this._cluster(fe,pe)),Oe&&console.log("z%d: %d clusters in %dms",pe,fe.numItems,+Date.now()-dt)}return Oe&&console.timeEnd("total time"),this}getClusters(xe,Oe){let Re=((xe[0]+180)%360+360)%360-180,De=Math.max(-90,Math.min(90,xe[1])),ct=xe[2]===180?180:((xe[2]+180)%360+360)%360-180,ge=Math.max(-90,Math.min(90,xe[3]));if(xe[2]-xe[0]>=360)Re=-180,ct=180;else if(Re>ct){let Pt=this.getClusters([Re,De,180,ge],Oe),rr=this.getClusters([-180,De,ct,ge],Oe);return Pt.concat(rr)}let fe=this.trees[this._limitZoom(Oe)],pe=fe.range(de(Re),te(ge),de(ct),te(De)),dt=fe.data,It=[];for(let Pt of pe){let rr=this.stride*Pt;It.push(dt[rr+re]>1?Pe(dt,rr,this.clusterProps):this.points[dt[rr+W]])}return It}getChildren(xe){let Oe=this._getOriginId(xe),Re=this._getOriginZoom(xe),De="No cluster with the specified id.",ct=this.trees[Re];if(!ct)throw new Error(De);let ge=ct.data;if(Oe*this.stride>=ge.length)throw new Error(De);let fe=this.options.radius/(this.options.extent*Math.pow(2,Re-1)),pe=ct.within(ge[Oe*this.stride],ge[Oe*this.stride+1],fe),dt=[];for(let It of pe){let Pt=It*this.stride;ge[Pt+4]===xe&&dt.push(ge[Pt+re]>1?Pe(ge,Pt,this.clusterProps):this.points[ge[Pt+W]])}if(dt.length===0)throw new Error(De);return dt}getLeaves(xe,Oe,Re){let De=[];return this._appendLeaves(De,xe,Oe=Oe||10,Re=Re||0,0),De}getTile(xe,Oe,Re){let De=this.trees[this._limitZoom(xe)],ct=Math.pow(2,xe),{extent:ge,radius:fe}=this.options,pe=fe/ge,dt=(Re-pe)/ct,It=(Re+1+pe)/ct,Pt={features:[]};return this._addTileFeatures(De.range((Oe-pe)/ct,dt,(Oe+1+pe)/ct,It),De.data,Oe,Re,ct,Pt),Oe===0&&this._addTileFeatures(De.range(1-pe/ct,dt,1,It),De.data,ct,Re,ct,Pt),Oe===ct-1&&this._addTileFeatures(De.range(0,dt,pe/ct,It),De.data,-1,Re,ct,Pt),Pt.features.length?Pt:null}getClusterExpansionZoom(xe){let Oe=this._getOriginZoom(xe)-1;for(;Oe<=this.options.maxZoom;){let Re=this.getChildren(xe);if(Oe++,Re.length!==1)break;xe=Re[0].properties.cluster_id}return Oe}_appendLeaves(xe,Oe,Re,De,ct){let ge=this.getChildren(Oe);for(let fe of ge){let pe=fe.properties;if(pe&&pe.cluster?ct+pe.point_count<=De?ct+=pe.point_count:ct=this._appendLeaves(xe,pe.cluster_id,Re,De,ct):ct1,It,Pt,rr;if(dt)It=Ce(Oe,pe,this.clusterProps),Pt=Oe[pe],rr=Oe[pe+1];else{let Mr=this.points[Oe[pe+W]];It=Mr.properties;let[Fr,di]=Mr.geometry.coordinates;Pt=de(Fr),rr=te(di)}let Hr={type:1,geometry:[[Math.round(this.options.extent*(Pt*ct-Re)),Math.round(this.options.extent*(rr*ct-De))]],tags:It},Dr;Dr=dt||this.options.generateId?Oe[pe+W]:this.points[Oe[pe+W]].id,Dr!==void 0&&(Hr.id=Dr),ge.features.push(Hr)}}_limitZoom(xe){return Math.max(this.options.minZoom,Math.min(Math.floor(+xe),this.options.maxZoom+1))}_cluster(xe,Oe){let{radius:Re,extent:De,reduce:ct,minPoints:ge}=this.options,fe=Re/(De*Math.pow(2,Oe)),pe=xe.data,dt=[],It=this.stride;for(let Pt=0;PtOe&&(Fr+=pe[Di+re])}if(Fr>Mr&&Fr>=ge){let di,Di=rr*Mr,Ii=Hr*Mr,Ci=-1,nn=((Pt/It|0)<<5)+(Oe+1)+this.points.length;for(let ii of Dr){let wi=ii*It;if(pe[wi+2]<=Oe)continue;pe[wi+2]=Oe;let Gi=pe[wi+re];Di+=pe[wi]*Gi,Ii+=pe[wi+1]*Gi,pe[wi+4]=nn,ct&&(di||(di=this._map(pe,Pt,!0),Ci=this.clusterProps.length,this.clusterProps.push(di)),ct(di,this._map(pe,wi)))}pe[Pt+4]=nn,dt.push(Di/Fr,Ii/Fr,1/0,nn,-1,Fr),ct&&dt.push(Ci)}else{for(let di=0;di1)for(let di of Dr){let Di=di*It;if(!(pe[Di+2]<=Oe)){pe[Di+2]=Oe;for(let Ii=0;Ii>5}_getOriginZoom(xe){return(xe-this.points.length)%32}_map(xe,Oe,Re){if(xe[Oe+re]>1){let ge=this.clusterProps[xe[Oe+ae]];return Re?Object.assign({},ge):ge}let De=this.points[xe[Oe+W]].properties,ct=this.options.map(De);return Re&&ct===De?Object.assign({},ct):ct}}function Pe(Ie,xe,Oe){return{type:"Feature",id:Ie[xe+W],properties:Ce(Ie,xe,Oe),geometry:{type:"Point",coordinates:[(Re=Ie[xe],360*(Re-.5)),ke(Ie[xe+1])]}};var Re}function Ce(Ie,xe,Oe){let Re=Ie[xe+re],De=Re>=1e4?`${Math.round(Re/1e3)}k`:Re>=1e3?Math.round(Re/100)/10+"k":Re,ct=Ie[xe+ae],ge=ct===-1?{}:Object.assign({},Oe[ct]);return Object.assign(ge,{cluster:!0,cluster_id:Ie[xe+W],point_count:Re,point_count_abbreviated:De})}function de(Ie){return Ie/360+.5}function te(Ie){let xe=Math.sin(Ie*Math.PI/180),Oe=.5-.25*Math.log((1+xe)/(1-xe))/Math.PI;return Oe<0?0:Oe>1?1:Oe}function ke(Ie){let xe=(180-360*Ie)*Math.PI/180;return 360*Math.atan(Math.exp(xe))/Math.PI-90}function Ee(Ie,xe,Oe,Re){let De=Re,ct=xe+(Oe-xe>>1),ge,fe=Oe-xe,pe=Ie[xe],dt=Ie[xe+1],It=Ie[Oe],Pt=Ie[Oe+1];for(let rr=xe+3;rrDe)ge=rr,De=Hr;else if(Hr===De){let Dr=Math.abs(rr-ct);DrRe&&(ge-xe>3&&Ee(Ie,xe,ge,Re),Ie[ge+2]=De,Oe-ge>3&&Ee(Ie,ge,Oe,Re))}function Me(Ie,xe,Oe,Re,De,ct){let ge=De-Oe,fe=ct-Re;if(ge!==0||fe!==0){let pe=((Ie-Oe)*ge+(xe-Re)*fe)/(ge*ge+fe*fe);pe>1?(Oe=De,Re=ct):pe>0&&(Oe+=ge*pe,Re+=fe*pe)}return ge=Ie-Oe,fe=xe-Re,ge*ge+fe*fe}function Ne(Ie,xe,Oe,Re){let De={id:Ie==null?null:Ie,type:xe,geometry:Oe,tags:Re,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(xe==="Point"||xe==="MultiPoint"||xe==="LineString")Fe(De,Oe);else if(xe==="Polygon")Fe(De,Oe[0]);else if(xe==="MultiLineString")for(let ct of Oe)Fe(De,ct);else if(xe==="MultiPolygon")for(let ct of Oe)Fe(De,ct[0]);return De}function Fe(Ie,xe){for(let Oe=0;Oe0&&(ge+=Re?(De*It-dt*ct)/2:Math.sqrt(Math.pow(dt-De,2)+Math.pow(It-ct,2))),De=dt,ct=It}let fe=xe.length-3;xe[2]=1,Ee(xe,0,fe,Oe),xe[fe+2]=1,xe.size=Math.abs(ge),xe.start=0,xe.end=xe.size}function Ke(Ie,xe,Oe,Re){for(let De=0;De1?1:Oe}function Nt(Ie,xe,Oe,Re,De,ct,ge,fe){if(Re/=xe,ct>=(Oe/=xe)&&ge=Re)return null;let pe=[];for(let dt of Ie){let It=dt.geometry,Pt=dt.type,rr=De===0?dt.minX:dt.minY,Hr=De===0?dt.maxX:dt.maxY;if(rr>=Oe&&Hr=Re)continue;let Dr=[];if(Pt==="Point"||Pt==="MultiPoint")it(It,Dr,Oe,Re,De);else if(Pt==="LineString")Ye(It,Dr,Oe,Re,De,!1,fe.lineMetrics);else if(Pt==="MultiLineString")Tt(It,Dr,Oe,Re,De,!1);else if(Pt==="Polygon")Tt(It,Dr,Oe,Re,De,!0);else if(Pt==="MultiPolygon")for(let Mr of It){let Fr=[];Tt(Mr,Fr,Oe,Re,De,!0),Fr.length&&Dr.push(Fr)}if(Dr.length){if(fe.lineMetrics&&Pt==="LineString"){for(let Mr of Dr)pe.push(Ne(dt.id,Pt,Mr,dt.tags));continue}Pt!=="LineString"&&Pt!=="MultiLineString"||(Dr.length===1?(Pt="LineString",Dr=Dr[0]):Pt="MultiLineString"),Pt!=="Point"&&Pt!=="MultiPoint"||(Pt=Dr.length===3?"Point":"MultiPoint"),pe.push(Ne(dt.id,Pt,Dr,dt.tags))}}return pe.length?pe:null}function it(Ie,xe,Oe,Re,De){for(let ct=0;ct=Oe&&ge<=Re&&St(xe,Ie[ct],Ie[ct+1],Ie[ct+2])}}function Ye(Ie,xe,Oe,Re,De,ct,ge){let fe=kt(Ie),pe=De===0?Rt:Zt,dt,It,Pt=Ie.start;for(let Fr=0;FrOe&&(It=pe(fe,di,Di,Ci,nn,Oe),ge&&(fe.start=Pt+dt*It)):ii>Re?wi=Oe&&(It=pe(fe,di,Di,Ci,nn,Oe),Gi=!0),wi>Re&&ii<=Re&&(It=pe(fe,di,Di,Ci,nn,Re),Gi=!0),!ct&&Gi&&(ge&&(fe.end=Pt+dt*It),xe.push(fe),fe=kt(Ie)),ge&&(Pt+=dt)}let rr=Ie.length-3,Hr=Ie[rr],Dr=Ie[rr+1],Mr=De===0?Hr:Dr;Mr>=Oe&&Mr<=Re&&St(fe,Hr,Dr,Ie[rr+2]),rr=fe.length-3,ct&&rr>=3&&(fe[rr]!==fe[0]||fe[rr+1]!==fe[1])&&St(fe,fe[0],fe[1],fe[2]),fe.length&&xe.push(fe)}function kt(Ie){let xe=[];return xe.size=Ie.size,xe.start=Ie.start,xe.end=Ie.end,xe}function Tt(Ie,xe,Oe,Re,De,ct){for(let ge of Ie)Ye(ge,xe,Oe,Re,De,ct,!1)}function St(Ie,xe,Oe,Re){Ie.push(xe,Oe,Re)}function Rt(Ie,xe,Oe,Re,De,ct){let ge=(ct-xe)/(Re-xe);return St(Ie,ct,Oe+(De-Oe)*ge,1),ge}function Zt(Ie,xe,Oe,Re,De,ct){let ge=(ct-Oe)/(De-Oe);return St(Ie,xe+(Re-xe)*ge,ct,1),ge}function Et(Ie,xe){let Oe=[];for(let Re=0;Re0&&xe.size<(De?ge:Re))return void(Oe.numPoints+=xe.length/3);let fe=[];for(let pe=0;pege)&&(Oe.numSimplified++,fe.push(xe[pe],xe[pe+1])),Oe.numPoints++;De&&function(pe,dt){let It=0;for(let Pt=0,rr=pe.length,Hr=rr-2;Pt0===dt)for(let Pt=0,rr=pe.length;Pt24)throw new Error("maxZoom should be in the 0-24 range");if(Oe.promoteId&&Oe.generateId)throw new Error("promoteId and generateId cannot be used together.");let De=function(ct,ge){let fe=[];if(ct.type==="FeatureCollection")for(let pe=0;pe1&&console.time("creation"),Hr=this.tiles[rr]=vt(xe,Oe,Re,De,dt),this.tileCoords.push({z:Oe,x:Re,y:De}),It)){It>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Oe,Re,De,Hr.numFeatures,Hr.numPoints,Hr.numSimplified),console.timeEnd("creation"));let Gi=`z${Oe}`;this.stats[Gi]=(this.stats[Gi]||0)+1,this.total++}if(Hr.source=xe,ct==null){if(Oe===dt.indexMaxZoom||Hr.numPoints<=dt.indexMaxPoints)continue}else{if(Oe===dt.maxZoom||Oe===ct)continue;if(ct!=null){let Gi=ct-Oe;if(Re!==ge>>Gi||De!==fe>>Gi)continue}}if(Hr.source=null,xe.length===0)continue;It>1&&console.time("clipping");let Dr=.5*dt.buffer/dt.extent,Mr=.5-Dr,Fr=.5+Dr,di=1+Dr,Di=null,Ii=null,Ci=null,nn=null,ii=Nt(xe,Pt,Re-Dr,Re+Fr,0,Hr.minX,Hr.maxX,dt),wi=Nt(xe,Pt,Re+Mr,Re+di,0,Hr.minX,Hr.maxX,dt);xe=null,ii&&(Di=Nt(ii,Pt,De-Dr,De+Fr,1,Hr.minY,Hr.maxY,dt),Ii=Nt(ii,Pt,De+Mr,De+di,1,Hr.minY,Hr.maxY,dt),ii=null),wi&&(Ci=Nt(wi,Pt,De-Dr,De+Fr,1,Hr.minY,Hr.maxY,dt),nn=Nt(wi,Pt,De+Mr,De+di,1,Hr.minY,Hr.maxY,dt),wi=null),It>1&&console.timeEnd("clipping"),pe.push(Di||[],Oe+1,2*Re,2*De),pe.push(Ii||[],Oe+1,2*Re,2*De+1),pe.push(Ci||[],Oe+1,2*Re+1,2*De),pe.push(nn||[],Oe+1,2*Re+1,2*De+1)}}getTile(xe,Oe,Re){xe=+xe,Oe=+Oe,Re=+Re;let De=this.options,{extent:ct,debug:ge}=De;if(xe<0||xe>24)return null;let fe=1<1&&console.log("drilling down to z%d-%d-%d",xe,Oe,Re);let dt,It=xe,Pt=Oe,rr=Re;for(;!dt&&It>0;)It--,Pt>>=1,rr>>=1,dt=this.tiles[zt(It,Pt,rr)];return dt&&dt.source?(ge>1&&(console.log("found parent tile z%d-%d-%d",It,Pt,rr),console.time("drilling down")),this.splitTile(dt.source,It,Pt,rr,xe,Oe,Re),ge>1&&console.timeEnd("drilling down"),this.tiles[pe]?at(this.tiles[pe],ct):null):null}}function zt(Ie,xe,Oe){return 32*((1<{Pt.properties=Hr;let Dr={};for(let Mr of rr)Dr[Mr]=pe[Mr].evaluate(It,Pt);return Dr},ge.reduce=(Hr,Dr)=>{Pt.properties=Dr;for(let Mr of rr)It.accumulated=Hr[Mr],Hr[Mr]=dt[Mr].evaluate(It,Pt)},ge}(xe)).load((yield this._pendingData).features):(De=yield this._pendingData,new $e(De,xe.geojsonVtOptions)),this.loaded={};let ct={};if(Re){let ge=Re.finish();ge&&(ct.resourceTiming={},ct.resourceTiming[xe.source]=JSON.parse(JSON.stringify(ge)))}return ct}catch(ct){if(delete this._pendingRequest,i.bB(ct))return{abandoned:!0};throw ct}var De})}getData(){return i._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(xe){let Oe=this.loaded;return Oe&&Oe[xe.uid]?super.reloadTile(xe):this.loadTile(xe)}loadAndProcessGeoJSON(xe,Oe){return i._(this,void 0,void 0,function*(){let Re=yield this.loadGeoJSON(xe,Oe);if(delete this._pendingRequest,typeof Re!="object")throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`);if(d(Re,!0),xe.filter){let De=i.bC(xe.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(De.result==="error")throw new Error(De.value.map(ge=>`${ge.key}: ${ge.message}`).join(", "));Re={type:"FeatureCollection",features:Re.features.filter(ge=>De.value.evaluate({zoom:0},ge))}}return Re})}loadGeoJSON(xe,Oe){return i._(this,void 0,void 0,function*(){let{promoteId:Re}=xe;if(xe.request){let De=yield i.h(xe.request,Oe);return this._dataUpdateable=hr(De.data,Re)?yr(De.data,Re):void 0,De.data}if(typeof xe.data=="string")try{let De=JSON.parse(xe.data);return this._dataUpdateable=hr(De,Re)?yr(De,Re):void 0,De}catch(De){throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`)}if(!xe.dataDiff)throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${xe.source}`);return function(De,ct,ge){var fe,pe,dt,It;if(ct.removeAll&&De.clear(),ct.remove)for(let Pt of ct.remove)De.delete(Pt);if(ct.add)for(let Pt of ct.add){let rr=Yt(Pt,ge);rr!=null&&De.set(rr,Pt)}if(ct.update)for(let Pt of ct.update){let rr=De.get(Pt.id);if(rr==null)continue;let Hr=!Pt.removeAllProperties&&(((fe=Pt.removeProperties)===null||fe===void 0?void 0:fe.length)>0||((pe=Pt.addOrUpdateProperties)===null||pe===void 0?void 0:pe.length)>0);if((Pt.newGeometry||Pt.removeAllProperties||Hr)&&(rr=Object.assign({},rr),De.set(Pt.id,rr),Hr&&(rr.properties=Object.assign({},rr.properties))),Pt.newGeometry&&(rr.geometry=Pt.newGeometry),Pt.removeAllProperties)rr.properties={};else if(((dt=Pt.removeProperties)===null||dt===void 0?void 0:dt.length)>0)for(let Dr of Pt.removeProperties)Object.prototype.hasOwnProperty.call(rr.properties,Dr)&&delete rr.properties[Dr];if(((It=Pt.addOrUpdateProperties)===null||It===void 0?void 0:It.length)>0)for(let{key:Dr,value:Mr}of Pt.addOrUpdateProperties)rr.properties[Dr]=Mr}}(this._dataUpdateable,xe.dataDiff,Re),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(xe){return i._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(xe){return this._geoJSONIndex.getClusterExpansionZoom(xe.clusterId)}getClusterChildren(xe){return this._geoJSONIndex.getChildren(xe.clusterId)}getClusterLeaves(xe){return this._geoJSONIndex.getLeaves(xe.clusterId,xe.limit,xe.offset)}}class Ut{constructor(xe){this.self=xe,this.actor=new i.F(xe),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Oe,Re)=>{if(this.externalWorkerSourceTypes[Oe])throw new Error(`Worker source with name "${Oe}" already registered.`);this.externalWorkerSourceTypes[Oe]=Re},this.self.addProtocol=i.bi,this.self.removeProtocol=i.bj,this.self.registerRTLTextPlugin=Oe=>{if(i.bD.isParsed())throw new Error("RTL text plugin already registered.");i.bD.setMethods(Oe)},this.actor.registerMessageHandler("LDT",(Oe,Re)=>this._getDEMWorkerSource(Oe,Re.source).loadTile(Re)),this.actor.registerMessageHandler("RDT",(Oe,Re)=>i._(this,void 0,void 0,function*(){this._getDEMWorkerSource(Oe,Re.source).removeTile(Re)})),this.actor.registerMessageHandler("GCEZ",(Oe,Re)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Re.type,Re.source).getClusterExpansionZoom(Re)})),this.actor.registerMessageHandler("GCC",(Oe,Re)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Re.type,Re.source).getClusterChildren(Re)})),this.actor.registerMessageHandler("GCL",(Oe,Re)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Re.type,Re.source).getClusterLeaves(Re)})),this.actor.registerMessageHandler("LD",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).loadData(Re)),this.actor.registerMessageHandler("GD",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).getData()),this.actor.registerMessageHandler("LT",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).loadTile(Re)),this.actor.registerMessageHandler("RT",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).reloadTile(Re)),this.actor.registerMessageHandler("AT",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).abortTile(Re)),this.actor.registerMessageHandler("RMT",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).removeTile(Re)),this.actor.registerMessageHandler("RS",(Oe,Re)=>i._(this,void 0,void 0,function*(){if(!this.workerSources[Oe]||!this.workerSources[Oe][Re.type]||!this.workerSources[Oe][Re.type][Re.source])return;let De=this.workerSources[Oe][Re.type][Re.source];delete this.workerSources[Oe][Re.type][Re.source],De.removeSource!==void 0&&De.removeSource(Re)})),this.actor.registerMessageHandler("RM",Oe=>i._(this,void 0,void 0,function*(){delete this.layerIndexes[Oe],delete this.availableImages[Oe],delete this.workerSources[Oe],delete this.demWorkerSources[Oe]})),this.actor.registerMessageHandler("SR",(Oe,Re)=>i._(this,void 0,void 0,function*(){this.referrer=Re})),this.actor.registerMessageHandler("SRPS",(Oe,Re)=>this._syncRTLPluginState(Oe,Re)),this.actor.registerMessageHandler("IS",(Oe,Re)=>i._(this,void 0,void 0,function*(){this.self.importScripts(Re)})),this.actor.registerMessageHandler("SI",(Oe,Re)=>this._setImages(Oe,Re)),this.actor.registerMessageHandler("UL",(Oe,Re)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Oe).update(Re.layers,Re.removedIds)})),this.actor.registerMessageHandler("SL",(Oe,Re)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Oe).replace(Re)}))}_setImages(xe,Oe){return i._(this,void 0,void 0,function*(){this.availableImages[xe]=Oe;for(let Re in this.workerSources[xe]){let De=this.workerSources[xe][Re];for(let ct in De)De[ct].availableImages=Oe}})}_syncRTLPluginState(xe,Oe){return i._(this,void 0,void 0,function*(){if(i.bD.isParsed())return i.bD.getState();if(Oe.pluginStatus!=="loading")return i.bD.setState(Oe),Oe;let Re=Oe.pluginURL;if(this.self.importScripts(Re),i.bD.isParsed()){let De={pluginStatus:"loaded",pluginURL:Re};return i.bD.setState(De),De}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${Re}`)})}_getAvailableImages(xe){let Oe=this.availableImages[xe];return Oe||(Oe=[]),Oe}_getLayerIndex(xe){let Oe=this.layerIndexes[xe];return Oe||(Oe=this.layerIndexes[xe]=new a),Oe}_getWorkerSource(xe,Oe,Re){if(this.workerSources[xe]||(this.workerSources[xe]={}),this.workerSources[xe][Oe]||(this.workerSources[xe][Oe]={}),!this.workerSources[xe][Oe][Re]){let De={sendAsync:(ct,ge)=>(ct.targetMapId=xe,this.actor.sendAsync(ct,ge))};switch(Oe){case"vector":this.workerSources[xe][Oe][Re]=new l(De,this._getLayerIndex(xe),this._getAvailableImages(xe));break;case"geojson":this.workerSources[xe][Oe][Re]=new br(De,this._getLayerIndex(xe),this._getAvailableImages(xe));break;default:this.workerSources[xe][Oe][Re]=new this.externalWorkerSourceTypes[Oe](De,this._getLayerIndex(xe),this._getAvailableImages(xe))}}return this.workerSources[xe][Oe][Re]}_getDEMWorkerSource(xe,Oe){return this.demWorkerSources[xe]||(this.demWorkerSources[xe]={}),this.demWorkerSources[xe][Oe]||(this.demWorkerSources[xe][Oe]=new f),this.demWorkerSources[xe][Oe]}}return i.i(self)&&(self.worker=new Ut(self)),Ut}),r("index",["exports","./shared"],function(i,a){"use strict";var o="4.7.1";let s,u,l={now:typeof performance!="undefined"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:le=>new Promise((w,q)=>{let Q=requestAnimationFrame(w);le.signal.addEventListener("abort",()=>{cancelAnimationFrame(Q),q(a.c())})}),getImageData(le,w=0){return this.getImageCanvasContext(le).getImageData(-w,-w,le.width+2*w,le.height+2*w)},getImageCanvasContext(le){let w=window.document.createElement("canvas"),q=w.getContext("2d",{willReadFrequently:!0});if(!q)throw new Error("failed to create canvas 2d context");return w.width=le.width,w.height=le.height,q.drawImage(le,0,0,le.width,le.height),q},resolveURL:le=>(s||(s=document.createElement("a")),s.href=le,s.href),hardwareConcurrency:typeof navigator!="undefined"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(u==null&&(u=matchMedia("(prefers-reduced-motion: reduce)")),u.matches)}};class f{static testProp(w){if(!f.docStyle)return w[0];for(let q=0;q{window.removeEventListener("click",f.suppressClickInternal,!0)},0)}static getScale(w){let q=w.getBoundingClientRect();return{x:q.width/w.offsetWidth||1,y:q.height/w.offsetHeight||1,boundingClientRect:q}}static getPoint(w,q,Q){let ee=q.boundingClientRect;return new a.P((Q.clientX-ee.left)/q.x-w.clientLeft,(Q.clientY-ee.top)/q.y-w.clientTop)}static mousePos(w,q){let Q=f.getScale(w);return f.getPoint(w,Q,q)}static touchPos(w,q){let Q=[],ee=f.getScale(w);for(let ue=0;ue{h&&b(h),h=null,_=!0},d.onerror=()=>{p=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(le){let w,q,Q,ee;le.resetRequestQueue=()=>{w=[],q=0,Q=0,ee={}},le.addThrottleControl=mt=>{let Ft=Q++;return ee[Ft]=mt,Ft},le.removeThrottleControl=mt=>{delete ee[mt],Ge()},le.getImage=(mt,Ft,ir=!0)=>new Promise((or,kr)=>{c.supported&&(mt.headers||(mt.headers={}),mt.headers.accept="image/webp,*/*"),a.e(mt,{type:"image"}),w.push({abortController:Ft,requestParameters:mt,supportImageRefresh:ir,state:"queued",onError:Vr=>{kr(Vr)},onSuccess:Vr=>{or(Vr)}}),Ge()});let ue=mt=>a._(this,void 0,void 0,function*(){mt.state="running";let{requestParameters:Ft,supportImageRefresh:ir,onError:or,onSuccess:kr,abortController:Vr}=mt,he=ir===!1&&!a.i(self)&&!a.g(Ft.url)&&(!Ft.headers||Object.keys(Ft.headers).reduce((He,lt)=>He&<==="accept",!0));q++;let Se=he?et(Ft,Vr):a.m(Ft,Vr);try{let He=yield Se;delete mt.abortController,mt.state="completed",He.data instanceof HTMLImageElement||a.b(He.data)?kr(He):He.data&&kr({data:yield(qe=He.data,typeof createImageBitmap=="function"?a.d(qe):a.f(qe)),cacheControl:He.cacheControl,expires:He.expires})}catch(He){delete mt.abortController,or(He)}finally{q--,Ge()}var qe}),Ge=()=>{let mt=(()=>{for(let Ft of Object.keys(ee))if(ee[Ft]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Ft=q;Ft0;Ft++){let ir=w.shift();ir.abortController.signal.aborted?Ft--:ue(ir)}},et=(mt,Ft)=>new Promise((ir,or)=>{let kr=new Image,Vr=mt.url,he=mt.credentials;he&&he==="include"?kr.crossOrigin="use-credentials":(he&&he==="same-origin"||!a.s(Vr))&&(kr.crossOrigin="anonymous"),Ft.signal.addEventListener("abort",()=>{kr.src="",or(a.c())}),kr.fetchPriority="high",kr.onload=()=>{kr.onerror=kr.onload=null,ir({data:kr})},kr.onerror=()=>{kr.onerror=kr.onload=null,Ft.signal.aborted||or(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},kr.src=Vr})}(v||(v={})),v.resetRequestQueue();class k{constructor(w){this._transformRequestFn=w}transformRequest(w,q){return this._transformRequestFn&&this._transformRequestFn(w,q)||{url:w}}setTransformRequest(w){this._transformRequestFn=w}}function E(le){var w=new a.A(3);return w[0]=le[0],w[1]=le[1],w[2]=le[2],w}var T,L=function(le,w,q){return le[0]=w[0]-q[0],le[1]=w[1]-q[1],le[2]=w[2]-q[2],le};T=new a.A(3),a.A!=Float32Array&&(T[0]=0,T[1]=0,T[2]=0);var x=function(le){var w=le[0],q=le[1];return w*w+q*q};function C(le){let w=[];if(typeof le=="string")w.push({id:"default",url:le});else if(le&&le.length>0){let q=[];for(let{id:Q,url:ee}of le){let ue=`${Q}${ee}`;q.indexOf(ue)===-1&&(q.push(ue),w.push({id:Q,url:ee}))}}return w}function M(le,w,q){let Q=le.split("?");return Q[0]+=`${w}${q}`,Q.join("?")}(function(){var le=new a.A(2);a.A!=Float32Array&&(le[0]=0,le[1]=0)})();class m{constructor(w,q,Q,ee){this.context=w,this.format=Q,this.texture=w.gl.createTexture(),this.update(q,ee)}update(w,q,Q){let{width:ee,height:ue}=w,Ge=!(this.size&&this.size[0]===ee&&this.size[1]===ue||Q),{context:et}=this,{gl:mt}=et;if(this.useMipmap=!!(q&&q.useMipmap),mt.bindTexture(mt.TEXTURE_2D,this.texture),et.pixelStoreUnpackFlipY.set(!1),et.pixelStoreUnpack.set(1),et.pixelStoreUnpackPremultiplyAlpha.set(this.format===mt.RGBA&&(!q||q.premultiply!==!1)),Ge)this.size=[ee,ue],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?mt.texImage2D(mt.TEXTURE_2D,0,this.format,this.format,mt.UNSIGNED_BYTE,w):mt.texImage2D(mt.TEXTURE_2D,0,this.format,ee,ue,0,this.format,mt.UNSIGNED_BYTE,w.data);else{let{x:Ft,y:ir}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?mt.texSubImage2D(mt.TEXTURE_2D,0,Ft,ir,mt.RGBA,mt.UNSIGNED_BYTE,w):mt.texSubImage2D(mt.TEXTURE_2D,0,Ft,ir,ee,ue,mt.RGBA,mt.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&mt.generateMipmap(mt.TEXTURE_2D)}bind(w,q,Q){let{context:ee}=this,{gl:ue}=ee;ue.bindTexture(ue.TEXTURE_2D,this.texture),Q!==ue.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Q=ue.LINEAR),w!==this.filter&&(ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MAG_FILTER,w),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MIN_FILTER,Q||w),this.filter=w),q!==this.wrap&&(ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_S,q),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_T,q),this.wrap=q)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:w}=this.context;w.deleteTexture(this.texture),this.texture=null}}function P(le){let{userImage:w}=le;return!!(w&&w.render&&w.render())&&(le.data.replace(new Uint8Array(w.data.buffer)),!0)}class A extends a.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(w){if(this.loaded!==w&&(this.loaded=w,w)){for(let{ids:q,promiseResolve:Q}of this.requestors)Q(this._getImagesForIds(q));this.requestors=[]}}getImage(w){let q=this.images[w];if(q&&!q.data&&q.spriteData){let Q=q.spriteData;q.data=new a.R({width:Q.width,height:Q.height},Q.context.getImageData(Q.x,Q.y,Q.width,Q.height).data),q.spriteData=null}return q}addImage(w,q){if(this.images[w])throw new Error(`Image id ${w} already exist, use updateImage instead`);this._validate(w,q)&&(this.images[w]=q)}_validate(w,q){let Q=!0,ee=q.data||q.spriteData;return this._validateStretch(q.stretchX,ee&&ee.width)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchX" value`))),Q=!1),this._validateStretch(q.stretchY,ee&&ee.height)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchY" value`))),Q=!1),this._validateContent(q.content,q)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "content" value`))),Q=!1),Q}_validateStretch(w,q){if(!w)return!0;let Q=0;for(let ee of w){if(ee[0]{let ee=!0;if(!this.isLoaded())for(let ue of w)this.images[ue]||(ee=!1);this.isLoaded()||ee?q(this._getImagesForIds(w)):this.requestors.push({ids:w,promiseResolve:q})})}_getImagesForIds(w){let q={};for(let Q of w){let ee=this.getImage(Q);ee||(this.fire(new a.k("styleimagemissing",{id:Q})),ee=this.getImage(Q)),ee?q[Q]={data:ee.data.clone(),pixelRatio:ee.pixelRatio,sdf:ee.sdf,version:ee.version,stretchX:ee.stretchX,stretchY:ee.stretchY,content:ee.content,textFitWidth:ee.textFitWidth,textFitHeight:ee.textFitHeight,hasRenderCallback:!!(ee.userImage&&ee.userImage.render)}:a.w(`Image "${Q}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return q}getPixelSize(){let{width:w,height:q}=this.atlasImage;return{width:w,height:q}}getPattern(w){let q=this.patterns[w],Q=this.getImage(w);if(!Q)return null;if(q&&q.position.version===Q.version)return q.position;if(q)q.position.version=Q.version;else{let ee={w:Q.data.width+2,h:Q.data.height+2,x:0,y:0},ue=new a.I(ee,Q);this.patterns[w]={bin:ee,position:ue}}return this._updatePatternAtlas(),this.patterns[w].position}bind(w){let q=w.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new m(w,this.atlasImage,q.RGBA),this.atlasTexture.bind(q.LINEAR,q.CLAMP_TO_EDGE)}_updatePatternAtlas(){let w=[];for(let ue in this.patterns)w.push(this.patterns[ue].bin);let{w:q,h:Q}=a.p(w),ee=this.atlasImage;ee.resize({width:q||1,height:Q||1});for(let ue in this.patterns){let{bin:Ge}=this.patterns[ue],et=Ge.x+1,mt=Ge.y+1,Ft=this.getImage(ue).data,ir=Ft.width,or=Ft.height;a.R.copy(Ft,ee,{x:0,y:0},{x:et,y:mt},{width:ir,height:or}),a.R.copy(Ft,ee,{x:0,y:or-1},{x:et,y:mt-1},{width:ir,height:1}),a.R.copy(Ft,ee,{x:0,y:0},{x:et,y:mt+or},{width:ir,height:1}),a.R.copy(Ft,ee,{x:ir-1,y:0},{x:et-1,y:mt},{width:1,height:or}),a.R.copy(Ft,ee,{x:0,y:0},{x:et+ir,y:mt},{width:1,height:or})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(w){for(let q of w){if(this.callbackDispatchedThisFrame[q])continue;this.callbackDispatchedThisFrame[q]=!0;let Q=this.getImage(q);Q||a.w(`Image with ID: "${q}" was not found`),P(Q)&&this.updateImage(q,Q)}}}let B=1e20;function F(le,w,q,Q,ee,ue,Ge,et,mt){for(let Ft=w;Ft-1);mt++,ue[mt]=et,Ge[mt]=Ft,Ge[mt+1]=B}for(let et=0,mt=0;et65535)throw new Error("glyphs > 65535 not supported");if(Q.ranges[ue])return{stack:w,id:q,glyph:ee};if(!this.url)throw new Error("glyphsUrl is not set");if(!Q.requests[ue]){let et=G.loadGlyphRange(w,ue,this.url,this.requestManager);Q.requests[ue]=et}let Ge=yield Q.requests[ue];for(let et in Ge)this._doesCharSupportLocalGlyph(+et)||(Q.glyphs[+et]=Ge[+et]);return Q.ranges[ue]=!0,{stack:w,id:q,glyph:Ge[q]||null}})}_doesCharSupportLocalGlyph(w){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(w))}_tinySDF(w,q,Q){let ee=this.localIdeographFontFamily;if(!ee||!this._doesCharSupportLocalGlyph(Q))return;let ue=w.tinySDF;if(!ue){let et="400";/bold/i.test(q)?et="900":/medium/i.test(q)?et="500":/light/i.test(q)&&(et="200"),ue=w.tinySDF=new G.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:ee,fontWeight:et})}let Ge=ue.draw(String.fromCharCode(Q));return{id:Q,bitmap:new a.o({width:Ge.width||60,height:Ge.height||60},Ge.data),metrics:{width:Ge.glyphWidth/2||24,height:Ge.glyphHeight/2||24,left:Ge.glyphLeft/2+.5||0,top:Ge.glyphTop/2-27.5||-8,advance:Ge.glyphAdvance/2||24,isDoubleResolution:!0}}}}G.loadGlyphRange=function(le,w,q,Q){return a._(this,void 0,void 0,function*(){let ee=256*w,ue=ee+255,Ge=Q.transformRequest(q.replace("{fontstack}",le).replace("{range}",`${ee}-${ue}`),"Glyphs"),et=yield a.l(Ge,new AbortController);if(!et||!et.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${ue}`);let mt={};for(let Ft of a.n(et.data))mt[Ft.id]=Ft;return mt})},G.TinySDF=class{constructor({fontSize:le=24,buffer:w=3,radius:q=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:ue="normal",fontStyle:Ge="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=q;let et=this.size=le+4*w,mt=this._createCanvas(et),Ft=this.ctx=mt.getContext("2d",{willReadFrequently:!0});Ft.font=`${Ge} ${ue} ${le}px ${ee}`,Ft.textBaseline="alphabetic",Ft.textAlign="left",Ft.fillStyle="black",this.gridOuter=new Float64Array(et*et),this.gridInner=new Float64Array(et*et),this.f=new Float64Array(et),this.z=new Float64Array(et+1),this.v=new Uint16Array(et)}_createCanvas(le){let w=document.createElement("canvas");return w.width=w.height=le,w}draw(le){let{width:w,actualBoundingBoxAscent:q,actualBoundingBoxDescent:Q,actualBoundingBoxLeft:ee,actualBoundingBoxRight:ue}=this.ctx.measureText(le),Ge=Math.ceil(q),et=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(ue-ee))),mt=Math.min(this.size-this.buffer,Ge+Math.ceil(Q)),Ft=et+2*this.buffer,ir=mt+2*this.buffer,or=Math.max(Ft*ir,0),kr=new Uint8ClampedArray(or),Vr={data:kr,width:Ft,height:ir,glyphWidth:et,glyphHeight:mt,glyphTop:Ge,glyphLeft:0,glyphAdvance:w};if(et===0||mt===0)return Vr;let{ctx:he,buffer:Se,gridInner:qe,gridOuter:He}=this;he.clearRect(Se,Se,et,mt),he.fillText(le,Se,Se+Ge);let lt=he.getImageData(Se,Se,et,mt);He.fill(B,0,or),qe.fill(0,0,or);for(let tt=0;tt0?fr*fr:0,qe[nr]=fr<0?fr*fr:0}}F(He,0,0,Ft,ir,Ft,this.f,this.v,this.z),F(qe,Se,Se,et,mt,Ft,this.f,this.v,this.z);for(let tt=0;tt1&&(mt=w[++et]);let ir=Math.abs(Ft-mt.left),or=Math.abs(Ft-mt.right),kr=Math.min(ir,or),Vr,he=ue/Q*(ee+1);if(mt.isDash){let Se=ee-Math.abs(he);Vr=Math.sqrt(kr*kr+Se*Se)}else Vr=ee-Math.sqrt(kr*kr+he*he);this.data[Ge+Ft]=Math.max(0,Math.min(255,Vr+128))}}}addRegularDash(w){for(let et=w.length-1;et>=0;--et){let mt=w[et],Ft=w[et+1];mt.zeroLength?w.splice(et,1):Ft&&Ft.isDash===mt.isDash&&(Ft.left=mt.left,w.splice(et,1))}let q=w[0],Q=w[w.length-1];q.isDash===Q.isDash&&(q.left=Q.left-this.width,Q.right=q.right+this.width);let ee=this.width*this.nextRow,ue=0,Ge=w[ue];for(let et=0;et1&&(Ge=w[++ue]);let mt=Math.abs(et-Ge.left),Ft=Math.abs(et-Ge.right),ir=Math.min(mt,Ft);this.data[ee+et]=Math.max(0,Math.min(255,(Ge.isDash?ir:-ir)+128))}}addDash(w,q){let Q=q?7:0,ee=2*Q+1;if(this.nextRow+ee>this.height)return a.w("LineAtlas out of space"),null;let ue=0;for(let et=0;et{q.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[be]}numActive(){return Object.keys(this.active).length}}let Ce=Math.floor(l.hardwareConcurrency/2),de,te;function ke(){return de||(de=new Pe),de}Pe.workerCount=a.C(globalThis)?Math.max(Math.min(Ce,3),1):1;class Ee{constructor(w,q){this.workerPool=w,this.actors=[],this.currentActor=0,this.id=q;let Q=this.workerPool.acquire(q);for(let ee=0;ee{q.remove()}),this.actors=[],w&&this.workerPool.release(this.id)}registerMessageHandler(w,q){for(let Q of this.actors)Q.registerMessageHandler(w,q)}}function Me(){return te||(te=new Ee(ke(),a.G),te.registerMessageHandler("GR",(le,w,q)=>a.m(w,q))),te}function Ne(le,w){let q=a.H();return a.J(q,q,[1,1,0]),a.K(q,q,[.5*le.width,.5*le.height,1]),a.L(q,q,le.calculatePosMatrix(w.toUnwrapped()))}function Fe(le,w,q,Q,ee,ue){let Ge=function(or,kr,Vr){if(or)for(let he of or){let Se=kr[he];if(Se&&Se.source===Vr&&Se.type==="fill-extrusion")return!0}else for(let he in kr){let Se=kr[he];if(Se.source===Vr&&Se.type==="fill-extrusion")return!0}return!1}(ee&&ee.layers,w,le.id),et=ue.maxPitchScaleFactor(),mt=le.tilesIn(Q,et,Ge);mt.sort(ye);let Ft=[];for(let or of mt)Ft.push({wrappedTileID:or.tileID.wrapped().key,queryResults:or.tile.queryRenderedFeatures(w,q,le._state,or.queryGeometry,or.cameraQueryGeometry,or.scale,ee,ue,et,Ne(le.transform,or.tileID))});let ir=function(or){let kr={},Vr={};for(let he of or){let Se=he.queryResults,qe=he.wrappedTileID,He=Vr[qe]=Vr[qe]||{};for(let lt in Se){let tt=Se[lt],pt=He[lt]=He[lt]||{},Ht=kr[lt]=kr[lt]||[];for(let nr of tt)pt[nr.featureIndex]||(pt[nr.featureIndex]=!0,Ht.push(nr))}}return kr}(Ft);for(let or in ir)ir[or].forEach(kr=>{let Vr=kr.feature,he=le.getFeatureState(Vr.layer["source-layer"],Vr.id);Vr.source=Vr.layer.source,Vr.layer["source-layer"]&&(Vr.sourceLayer=Vr.layer["source-layer"]),Vr.state=he});return ir}function ye(le,w){let q=le.tileID,Q=w.tileID;return q.overscaledZ-Q.overscaledZ||q.canonical.y-Q.canonical.y||q.wrap-Q.wrap||q.canonical.x-Q.canonical.x}function Ve(le,w,q){return a._(this,void 0,void 0,function*(){let Q=le;if(le.url?Q=(yield a.h(w.transformRequest(le.url,"Source"),q)).data:yield l.frameAsync(q),!Q)return null;let ee=a.M(a.e(Q,le),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Q&&Q.vector_layers&&(ee.vectorLayerIds=Q.vector_layers.map(ue=>ue.id)),ee})}class ce{constructor(w,q){w&&(q?this.setSouthWest(w).setNorthEast(q):Array.isArray(w)&&(w.length===4?this.setSouthWest([w[0],w[1]]).setNorthEast([w[2],w[3]]):this.setSouthWest(w[0]).setNorthEast(w[1])))}setNorthEast(w){return this._ne=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}setSouthWest(w){return this._sw=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}extend(w){let q=this._sw,Q=this._ne,ee,ue;if(w instanceof a.N)ee=w,ue=w;else{if(!(w instanceof ce))return Array.isArray(w)?w.length===4||w.every(Array.isArray)?this.extend(ce.convert(w)):this.extend(a.N.convert(w)):w&&("lng"in w||"lon"in w)&&"lat"in w?this.extend(a.N.convert(w)):this;if(ee=w._sw,ue=w._ne,!ee||!ue)return this}return q||Q?(q.lng=Math.min(ee.lng,q.lng),q.lat=Math.min(ee.lat,q.lat),Q.lng=Math.max(ue.lng,Q.lng),Q.lat=Math.max(ue.lat,Q.lat)):(this._sw=new a.N(ee.lng,ee.lat),this._ne=new a.N(ue.lng,ue.lat)),this}getCenter(){return new a.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new a.N(this.getWest(),this.getNorth())}getSouthEast(){return new a.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(w){let{lng:q,lat:Q}=a.N.convert(w),ee=this._sw.lng<=q&&q<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ee=this._sw.lng>=q&&q>=this._ne.lng),this._sw.lat<=Q&&Q<=this._ne.lat&&ee}static convert(w){return w instanceof ce?w:w&&new ce(w)}static fromLngLat(w,q=0){let Q=360*q/40075017,ee=Q/Math.cos(Math.PI/180*w.lat);return new ce(new a.N(w.lng-ee,w.lat-Q),new a.N(w.lng+ee,w.lat+Q))}adjustAntiMeridian(){let w=new a.N(this._sw.lng,this._sw.lat),q=new a.N(this._ne.lng,this._ne.lat);return new ce(w,w.lng>q.lng?new a.N(q.lng+360,q.lat):q)}}class Ke{constructor(w,q,Q){this.bounds=ce.convert(this.validateBounds(w)),this.minzoom=q||0,this.maxzoom=Q||24}validateBounds(w){return Array.isArray(w)&&w.length===4?[Math.max(-180,w[0]),Math.max(-90,w[1]),Math.min(180,w[2]),Math.min(90,w[3])]:[-180,-90,180,90]}contains(w){let q=Math.pow(2,w.z),Q=Math.floor(a.O(this.bounds.getWest())*q),ee=Math.floor(a.Q(this.bounds.getNorth())*q),ue=Math.ceil(a.O(this.bounds.getEast())*q),Ge=Math.ceil(a.Q(this.bounds.getSouth())*q);return w.x>=Q&&w.x=ee&&w.y{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return a.e({},this._options)}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q={request:this.map._requestManager.transformRequest(q,"Tile"),uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,tileSize:this.tileSize*w.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};Q.request.collectResourceTiming=this._collectResourceTiming;let ee="RT";if(w.actor&&w.state!=="expired"){if(w.state==="loading")return new Promise((ue,Ge)=>{w.reloadPromise={resolve:ue,reject:Ge}})}else w.actor=this.dispatcher.getActor(),ee="LT";w.abortController=new AbortController;try{let ue=yield w.actor.sendAsync({type:ee,data:Q},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,ue)}catch(ue){if(delete w.abortController,w.aborted)return;if(ue&&ue.status!==404)throw ue;this._afterTileLoadWorkerResponse(w,null)}})}_afterTileLoadWorkerResponse(w,q){if(q&&q.resourceTiming&&(w.resourceTiming=q.resourceTiming),q&&this.map._refreshExpiredTiles&&w.setExpiryData(q),w.loadVectorData(q,this.map.painter),w.reloadPromise){let Q=w.reloadPromise;w.reloadPromise=null,this.loadTile(w).then(Q.resolve).catch(Q.reject)}}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.actor&&(yield w.actor.sendAsync({type:"AT",data:{uid:w.uid,type:this.type,source:this.id}}))})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),w.actor&&(yield w.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class gt extends a.E{constructor(w,q,Q,ee){super(),this.id=w,this.dispatcher=Q,this.setEventedParent(ee),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.e({type:"raster"},q),a.e(this,a.M(q,["url","scheme","tileSize"]))}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let w=yield Ve(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,w&&(a.e(this,w),w.bounds&&(this.tileBounds=new Ke(w.bounds,this.minzoom,this.maxzoom)),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})))}catch(w){this._tileJSONRequest=null,this.fire(new a.j(w))}})}loaded(){return this._loaded}onAdd(w){this.map=w,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(w){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),w(),this.load()}setTiles(w){return this.setSourceProperty(()=>{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}serialize(){return a.e({},this._options)}hasTile(w){return!this.tileBounds||this.tileBounds.contains(w.canonical)}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);w.abortController=new AbortController;try{let Q=yield v.getImage(this.map._requestManager.transformRequest(q,"Tile"),w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(Q&&Q.data){this.map._refreshExpiredTiles&&Q.cacheControl&&Q.expires&&w.setExpiryData({cacheControl:Q.cacheControl,expires:Q.expires});let ee=this.map.painter.context,ue=ee.gl,Ge=Q.data;w.texture=this.map.painter.getTileTexture(Ge.width),w.texture?w.texture.update(Ge,{useMipmap:!0}):(w.texture=new m(ee,Ge,ue.RGBA,{useMipmap:!0}),w.texture.bind(ue.LINEAR,ue.CLAMP_TO_EDGE,ue.LINEAR_MIPMAP_NEAREST)),w.state="loaded"}}catch(Q){if(delete w.abortController,w.aborted)w.state="unloaded";else if(Q)throw w.state="errored",Q}})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController)})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.texture&&this.map.painter.saveTileTexture(w.texture)})}hasTransition(){return!1}}class Nt extends gt{constructor(w,q,Q,ee){super(w,q,Q,ee),this.type="raster-dem",this.maxzoom=22,this._options=a.e({type:"raster-dem"},q),this.encoding=q.encoding||"mapbox",this.redFactor=q.redFactor,this.greenFactor=q.greenFactor,this.blueFactor=q.blueFactor,this.baseShift=q.baseShift}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q=this.map._requestManager.transformRequest(q,"Tile");w.neighboringTiles=this._getNeighboringTiles(w.tileID),w.abortController=new AbortController;try{let ee=yield v.getImage(Q,w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(ee&&ee.data){let ue=ee.data;this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let Ge=a.b(ue)&&a.U()?ue:yield this.readImageNow(ue),et={type:this.type,uid:w.uid,source:this.id,rawImageData:Ge,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!w.actor||w.state==="expired"){w.actor=this.dispatcher.getActor();let mt=yield w.actor.sendAsync({type:"LDT",data:et});w.dem=mt,w.needsHillshadePrepare=!0,w.needsTerrainPrepare=!0,w.state="loaded"}}}catch(ee){if(delete w.abortController,w.aborted)w.state="unloaded";else if(ee)throw w.state="errored",ee}})}readImageNow(w){return a._(this,void 0,void 0,function*(){if(typeof VideoFrame!="undefined"&&a.V()){let q=w.width+2,Q=w.height+2;try{return new a.R({width:q,height:Q},yield a.W(w,-1,-1,q,Q))}catch(ee){}}return l.getImageData(w,1)})}_getNeighboringTiles(w){let q=w.canonical,Q=Math.pow(2,q.z),ee=(q.x-1+Q)%Q,ue=q.x===0?w.wrap-1:w.wrap,Ge=(q.x+1+Q)%Q,et=q.x+1===Q?w.wrap+1:w.wrap,mt={};return mt[new a.S(w.overscaledZ,ue,q.z,ee,q.y).key]={backfilled:!1},mt[new a.S(w.overscaledZ,et,q.z,Ge,q.y).key]={backfilled:!1},q.y>0&&(mt[new a.S(w.overscaledZ,ue,q.z,ee,q.y-1).key]={backfilled:!1},mt[new a.S(w.overscaledZ,w.wrap,q.z,q.x,q.y-1).key]={backfilled:!1},mt[new a.S(w.overscaledZ,et,q.z,Ge,q.y-1).key]={backfilled:!1}),q.y+10&&a.e(ue,{resourceTiming:ee}),this.fire(new a.k("data",Object.assign(Object.assign({},ue),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},ue),{sourceDataType:"content"})))}catch(Q){if(this._pendingLoads--,this._removed)return void this.fire(new a.k("dataabort",{dataType:"source"}));this.fire(new a.j(Q))}})}loaded(){return this._pendingLoads===0}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.actor?"RT":"LT";w.actor=this.actor;let Q={type:this.type,uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};w.abortController=new AbortController;let ee=yield this.actor.sendAsync({type:q,data:Q},w.abortController);delete w.abortController,w.unloadVectorData(),w.aborted||w.loadVectorData(ee,this.map.painter,q==="RT")})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.aborted=!0})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return a.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var Ye=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class kt extends a.E{constructor(w,q,Q,ee){super(),this.id=w,this.dispatcher=Q,this.coordinates=q.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ee),this.options=q}load(w){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let q=yield v.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,q&&q.data&&(this.image=q.data,w&&(this.coordinates=w),this._finishLoading())}catch(q){this._request=null,this._loaded=!0,this.fire(new a.j(q))}})}loaded(){return this._loaded}updateImage(w){return w.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=w.url,this.load(w.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(w){this.map=w,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(w){this.coordinates=w;let q=w.map(a.Z.fromLngLat);this.tileID=function(ee){let ue=1/0,Ge=1/0,et=-1/0,mt=-1/0;for(let kr of ee)ue=Math.min(ue,kr.x),Ge=Math.min(Ge,kr.y),et=Math.max(et,kr.x),mt=Math.max(mt,kr.y);let Ft=Math.max(et-ue,mt-Ge),ir=Math.max(0,Math.floor(-Math.log(Ft)/Math.LN2)),or=Math.pow(2,ir);return new a.a1(ir,Math.floor((ue+et)/2*or),Math.floor((Ge+mt)/2*or))}(q),this.minzoom=this.maxzoom=this.tileID.z;let Q=q.map(ee=>this.tileID.getTilePoint(ee)._round());return this._boundsArray=new a.$,this._boundsArray.emplaceBack(Q[0].x,Q[0].y,0,0),this._boundsArray.emplaceBack(Q[1].x,Q[1].y,a.X,0),this._boundsArray.emplaceBack(Q[3].x,Q[3].y,0,a.X),this._boundsArray.emplaceBack(Q[2].x,Q[2].y,a.X,a.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let w=this.map.painter.context,q=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,Ye.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new m(w,this.image,q.RGBA),this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let ue=this.tiles[ee];ue.state!=="loaded"&&(ue.state="loaded",ue.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(w){return a._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(w.tileID.canonical)?(this.tiles[String(w.tileID.wrap)]=w,w.buckets={}):w.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class Tt extends kt{constructor(w,q,Q,ee){super(w,q,Q,ee),this.roundZoom=!0,this.type="video",this.options=q}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1;let w=this.options;this.urls=[];for(let q of w.urls)this.urls.push(this.map._requestManager.transformRequest(q,"Source").url);try{let q=yield a.a3(this.urls);if(this._loaded=!0,!q)return;this.video=q,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(q){this.fire(new a.j(q))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(w){if(this.video){let q=this.video.seekable;wq.end(0)?this.fire(new a.j(new a.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${q.start(0)} and ${q.end(0)}-second mark.`))):this.video.currentTime=w}}getVideo(){return this.video}onAdd(w){this.map||(this.map=w,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let w=this.map.painter.context,q=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,Ye.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE),q.texSubImage2D(q.TEXTURE_2D,0,0,0,q.RGBA,q.UNSIGNED_BYTE,this.video)):(this.texture=new m(w,this.video,q.RGBA),this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let ue=this.tiles[ee];ue.state!=="loaded"&&(ue.state="loaded",ue.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class St extends kt{constructor(w,q,Q,ee){super(w,q,Q,ee),q.coordinates?Array.isArray(q.coordinates)&&q.coordinates.length===4&&!q.coordinates.some(ue=>!Array.isArray(ue)||ue.length!==2||ue.some(Ge=>typeof Ge!="number"))||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "coordinates"'))),q.animate&&typeof q.animate!="boolean"&&this.fire(new a.j(new a.a2(`sources.${w}`,null,'optional "animate" property must be a boolean value'))),q.canvas?typeof q.canvas=="string"||q.canvas instanceof HTMLCanvasElement||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "canvas"'))),this.options=q,this.animate=q.animate===void 0||q.animate}load(){return a._(this,void 0,void 0,function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(w){this.map=w,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let w=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,w=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,w=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let q=this.map.painter.context,Q=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Ye.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?(w||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new m(q,this.canvas,Q.RGBA,{premultiply:!0});let ee=!1;for(let ue in this.tiles){let Ge=this.tiles[ue];Ge.state!=="loaded"&&(Ge.state="loaded",Ge.texture=this.texture,ee=!0)}ee&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let w of[this.canvas.width,this.canvas.height])if(isNaN(w)||w<=0)return!0;return!1}}let Rt={},Zt=le=>{switch(le){case"geojson":return it;case"image":return kt;case"raster":return gt;case"raster-dem":return Nt;case"vector":return nt;case"video":return Tt;case"canvas":return St}return Rt[le]},Et="RTLPluginLoaded";class Ae extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Me()}_syncState(w){return this.status=w,this.dispatcher.broadcast("SRPS",{pluginStatus:w,pluginURL:this.url}).catch(q=>{throw this.status="error",q})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(w){return a._(this,arguments,void 0,function*(q,Q=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=l.resolveURL(q),!this.url)throw new Error(`requested url ${q} is invalid`);if(this.status==="unavailable"){if(!Q)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()})}_requestImport(){return a._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new a.k(Et))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let at=null;function wt(){return at||(at=new Ae),at}class vt{constructor(w,q){this.timeAdded=0,this.fadeEndTime=0,this.tileID=w,this.uid=a.a4(),this.uses=0,this.tileSize=q,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(w){let q=w+this.timeAdded;que.getLayer(Ft)).filter(Boolean);if(mt.length!==0){et.layers=mt,et.stateDependentLayerIds&&(et.stateDependentLayers=et.stateDependentLayerIds.map(Ft=>mt.filter(ir=>ir.id===Ft)[0]));for(let Ft of mt)Ge[Ft.id]=et}}return Ge}(w.buckets,q.style),this.hasSymbolBuckets=!1;for(let ee in this.buckets){let ue=this.buckets[ee];if(ue instanceof a.a6){if(this.hasSymbolBuckets=!0,!Q)break;ue.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let ee in this.buckets){let ue=this.buckets[ee];if(ue instanceof a.a6&&ue.hasRTLText){this.hasRTLText=!0,wt().lazyLoad();break}}this.queryPadding=0;for(let ee in this.buckets){let ue=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,q.style.getLayer(ee).queryRadius(ue))}w.imageAtlas&&(this.imageAtlas=w.imageAtlas),w.glyphAtlasImage&&(this.glyphAtlasImage=w.glyphAtlasImage)}else this.collisionBoxArray=new a.a5}unloadVectorData(){for(let w in this.buckets)this.buckets[w].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(w){return this.buckets[w.id]}upload(w){for(let Q in this.buckets){let ee=this.buckets[Q];ee.uploadPending()&&ee.upload(w)}let q=w.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new m(w,this.imageAtlas.image,q.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new m(w,this.glyphAtlasImage,q.ALPHA),this.glyphAtlasImage=null)}prepare(w){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(w,this.imageAtlasTexture)}queryRenderedFeatures(w,q,Q,ee,ue,Ge,et,mt,Ft,ir){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:ue,scale:Ge,tileSize:this.tileSize,pixelPosMatrix:ir,transform:mt,params:et,queryPadding:this.queryPadding*Ft},w,q,Q):{}}querySourceFeatures(w,q){let Q=this.latestFeatureIndex;if(!Q||!Q.rawTileData)return;let ee=Q.loadVTLayers(),ue=q&&q.sourceLayer?q.sourceLayer:"",Ge=ee._geojsonTileLayer||ee[ue];if(!Ge)return;let et=a.a7(q&&q.filter),{z:mt,x:Ft,y:ir}=this.tileID.canonical,or={z:mt,x:Ft,y:ir};for(let kr=0;krQ)ee=!1;else if(q)if(this.expirationTime{this.remove(w,ue)},Q)),this.data[ee].push(ue),this.order.push(ee),this.order.length>this.max){let Ge=this._getAndRemoveByKey(this.order[0]);Ge&&this.onRemove(Ge)}return this}has(w){return w.wrapped().key in this.data}getAndRemove(w){return this.has(w)?this._getAndRemoveByKey(w.wrapped().key):null}_getAndRemoveByKey(w){let q=this.data[w].shift();return q.timeout&&clearTimeout(q.timeout),this.data[w].length===0&&delete this.data[w],this.order.splice(this.order.indexOf(w),1),q.value}getByKey(w){let q=this.data[w];return q?q[0].value:null}get(w){return this.has(w)?this.data[w.wrapped().key][0].value:null}remove(w,q){if(!this.has(w))return this;let Q=w.wrapped().key,ee=q===void 0?0:this.data[Q].indexOf(q),ue=this.data[Q][ee];return this.data[Q].splice(ee,1),ue.timeout&&clearTimeout(ue.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(ue.value),this.order.splice(this.order.indexOf(Q),1),this}setMaxSize(w){for(this.max=w;this.order.length>this.max;){let q=this._getAndRemoveByKey(this.order[0]);q&&this.onRemove(q)}return this}filter(w){let q=[];for(let Q in this.data)for(let ee of this.data[Q])w(ee.value)||q.push(ee);for(let Q of q)this.remove(Q.value.tileID,Q)}}class Ue{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(w,q,Q){let ee=String(q);if(this.stateChanges[w]=this.stateChanges[w]||{},this.stateChanges[w][ee]=this.stateChanges[w][ee]||{},a.e(this.stateChanges[w][ee],Q),this.deletedStates[w]===null){this.deletedStates[w]={};for(let ue in this.state[w])ue!==ee&&(this.deletedStates[w][ue]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][ee]===null){this.deletedStates[w][ee]={};for(let ue in this.state[w][ee])Q[ue]||(this.deletedStates[w][ee][ue]=null)}else for(let ue in Q)this.deletedStates[w]&&this.deletedStates[w][ee]&&this.deletedStates[w][ee][ue]===null&&delete this.deletedStates[w][ee][ue]}removeFeatureState(w,q,Q){if(this.deletedStates[w]===null)return;let ee=String(q);if(this.deletedStates[w]=this.deletedStates[w]||{},Q&&q!==void 0)this.deletedStates[w][ee]!==null&&(this.deletedStates[w][ee]=this.deletedStates[w][ee]||{},this.deletedStates[w][ee][Q]=null);else if(q!==void 0)if(this.stateChanges[w]&&this.stateChanges[w][ee])for(Q in this.deletedStates[w][ee]={},this.stateChanges[w][ee])this.deletedStates[w][ee][Q]=null;else this.deletedStates[w][ee]=null;else this.deletedStates[w]=null}getState(w,q){let Q=String(q),ee=a.e({},(this.state[w]||{})[Q],(this.stateChanges[w]||{})[Q]);if(this.deletedStates[w]===null)return{};if(this.deletedStates[w]){let ue=this.deletedStates[w][q];if(ue===null)return{};for(let Ge in ue)delete ee[Ge]}return ee}initializeTileState(w,q){w.setFeatureState(this.state,q)}coalesceChanges(w,q){let Q={};for(let ee in this.stateChanges){this.state[ee]=this.state[ee]||{};let ue={};for(let Ge in this.stateChanges[ee])this.state[ee][Ge]||(this.state[ee][Ge]={}),a.e(this.state[ee][Ge],this.stateChanges[ee][Ge]),ue[Ge]=this.state[ee][Ge];Q[ee]=ue}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let ue={};if(this.deletedStates[ee]===null)for(let Ge in this.state[ee])ue[Ge]={},this.state[ee][Ge]={};else for(let Ge in this.deletedStates[ee]){if(this.deletedStates[ee][Ge]===null)this.state[ee][Ge]={};else for(let et of Object.keys(this.deletedStates[ee][Ge]))delete this.state[ee][Ge][et];ue[Ge]=this.state[ee][Ge]}Q[ee]=Q[ee]||{},a.e(Q[ee],ue)}if(this.stateChanges={},this.deletedStates={},Object.keys(Q).length!==0)for(let ee in w)w[ee].setFeatureState(Q,q)}}class rt extends a.E{constructor(w,q,Q){super(),this.id=w,this.dispatcher=Q,this.on("data",ee=>this._dataHandler(ee)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((ee,ue,Ge,et)=>{let mt=new(Zt(ue.type))(ee,ue,Ge,et);if(mt.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${mt.id}`);return mt})(w,q,Q,this),this._tiles={},this._cache=new st(0,ee=>this._unloadTile(ee)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new Ue,this._didEmitContent=!1,this._updated=!1}onAdd(w){this.map=w,this._maxTileCacheSize=w?w._maxTileCacheSize:null,this._maxTileCacheZoomLevels=w?w._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(w)}onRemove(w){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(w)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let w in this._tiles){let q=this._tiles[w];if(q.state!=="loaded"&&q.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let w=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,w&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(w,q,Q){return a._(this,void 0,void 0,function*(){try{yield this._source.loadTile(w),this._tileLoaded(w,q,Q)}catch(ee){w.state="errored",ee.status!==404?this._source.fire(new a.j(ee,{tile:w})):this.update(this.transform,this.terrain)}})}_unloadTile(w){this._source.unloadTile&&this._source.unloadTile(w)}_abortTile(w){this._source.abortTile&&this._source.abortTile(w),this._source.fire(new a.k("dataabort",{tile:w,coord:w.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(w){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let q in this._tiles){let Q=this._tiles[q];Q.upload(w),Q.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(w=>w.tileID).sort($e).map(w=>w.key)}getRenderableIds(w){let q=[];for(let Q in this._tiles)this._isIdRenderable(Q,w)&&q.push(this._tiles[Q]);return w?q.sort((Q,ee)=>{let ue=Q.tileID,Ge=ee.tileID,et=new a.P(ue.canonical.x,ue.canonical.y)._rotate(this.transform.angle),mt=new a.P(Ge.canonical.x,Ge.canonical.y)._rotate(this.transform.angle);return ue.overscaledZ-Ge.overscaledZ||mt.y-et.y||mt.x-et.x}).map(Q=>Q.tileID.key):q.map(Q=>Q.tileID).sort($e).map(Q=>Q.key)}hasRenderableParent(w){let q=this.findLoadedParent(w,0);return!!q&&this._isIdRenderable(q.tileID.key)}_isIdRenderable(w,q){return this._tiles[w]&&this._tiles[w].hasData()&&!this._coveredTiles[w]&&(q||!this._tiles[w].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let w in this._tiles)this._tiles[w].state!=="errored"&&this._reloadTile(w,"reloading")}}_reloadTile(w,q){return a._(this,void 0,void 0,function*(){let Q=this._tiles[w];Q&&(Q.state!=="loading"&&(Q.state=q),yield this._loadTile(Q,w,q))})}_tileLoaded(w,q,Q){w.timeAdded=l.now(),Q==="expired"&&(w.refreshedUponExpiration=!0),this._setTileReloadTimer(q,w),this.getSource().type==="raster-dem"&&w.dem&&this._backfillDEM(w),this._state.initializeTileState(w,this.map?this.map.painter:null),w.aborted||this._source.fire(new a.k("data",{dataType:"source",tile:w,coord:w.tileID}))}_backfillDEM(w){let q=this.getRenderableIds();for(let ee=0;ee1||(Math.abs(Ge)>1&&(Math.abs(Ge+mt)===1?Ge+=mt:Math.abs(Ge-mt)===1&&(Ge-=mt)),ue.dem&&ee.dem&&(ee.dem.backfillBorder(ue.dem,Ge,et),ee.neighboringTiles&&ee.neighboringTiles[Ft]&&(ee.neighboringTiles[Ft].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,q,Q,ee){for(let ue in this._tiles){let Ge=this._tiles[ue];if(ee[ue]||!Ge.hasData()||Ge.tileID.overscaledZ<=q||Ge.tileID.overscaledZ>Q)continue;let et=Ge.tileID;for(;Ge&&Ge.tileID.overscaledZ>q+1;){let Ft=Ge.tileID.scaledTo(Ge.tileID.overscaledZ-1);Ge=this._tiles[Ft.key],Ge&&Ge.hasData()&&(et=Ft)}let mt=et;for(;mt.overscaledZ>q;)if(mt=mt.scaledTo(mt.overscaledZ-1),w[mt.key]){ee[et.key]=et;break}}}findLoadedParent(w,q){if(w.key in this._loadedParentTiles){let Q=this._loadedParentTiles[w.key];return Q&&Q.tileID.overscaledZ>=q?Q:null}for(let Q=w.overscaledZ-1;Q>=q;Q--){let ee=w.scaledTo(Q),ue=this._getLoadedTile(ee);if(ue)return ue}}findLoadedSibling(w){return this._getLoadedTile(w)}_getLoadedTile(w){let q=this._tiles[w.key];return q&&q.hasData()?q:this._cache.getByKey(w.wrapped().key)}updateCacheSize(w){let q=Math.ceil(w.width/this._source.tileSize)+1,Q=Math.ceil(w.height/this._source.tileSize)+1,ee=Math.floor(q*Q*(this._maxTileCacheZoomLevels===null?a.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),ue=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ee):ee;this._cache.setMaxSize(ue)}handleWrapJump(w){let q=Math.round((w-(this._prevLng===void 0?w:this._prevLng))/360);if(this._prevLng=w,q){let Q={};for(let ee in this._tiles){let ue=this._tiles[ee];ue.tileID=ue.tileID.unwrapTo(ue.tileID.wrap+q),Q[ue.tileID.key]=ue}this._tiles=Q;for(let ee in this._timers)clearTimeout(this._timers[ee]),delete this._timers[ee];for(let ee in this._tiles)this._setTileReloadTimer(ee,this._tiles[ee])}}_updateCoveredAndRetainedTiles(w,q,Q,ee,ue,Ge){let et={},mt={},Ft=Object.keys(w),ir=l.now();for(let or of Ft){let kr=w[or],Vr=this._tiles[or];if(!Vr||Vr.fadeEndTime!==0&&Vr.fadeEndTime<=ir)continue;let he=this.findLoadedParent(kr,q),Se=this.findLoadedSibling(kr),qe=he||Se||null;qe&&(this._addTile(qe.tileID),et[qe.tileID.key]=qe.tileID),mt[or]=kr}this._retainLoadedChildren(mt,ee,Q,w);for(let or in et)w[or]||(this._coveredTiles[or]=!0,w[or]=et[or]);if(Ge){let or={},kr={};for(let Vr of ue)this._tiles[Vr.key].hasData()?or[Vr.key]=Vr:kr[Vr.key]=Vr;for(let Vr in kr){let he=kr[Vr].children(this._source.maxzoom);this._tiles[he[0].key]&&this._tiles[he[1].key]&&this._tiles[he[2].key]&&this._tiles[he[3].key]&&(or[he[0].key]=w[he[0].key]=he[0],or[he[1].key]=w[he[1].key]=he[1],or[he[2].key]=w[he[2].key]=he[2],or[he[3].key]=w[he[3].key]=he[3],delete kr[Vr])}for(let Vr in kr){let he=kr[Vr],Se=this.findLoadedParent(he,this._source.minzoom),qe=this.findLoadedSibling(he),He=Se||qe||null;if(He){or[He.tileID.key]=w[He.tileID.key]=He.tileID;for(let lt in or)or[lt].isChildOf(He.tileID)&&delete or[lt]}}for(let Vr in this._tiles)or[Vr]||(this._coveredTiles[Vr]=!0)}}update(w,q){if(!this._sourceLoaded||this._paused)return;let Q;this.transform=w,this.terrain=q,this.updateCacheSize(w),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?Q=w.getVisibleUnwrappedCoordinates(this._source.tileID).map(ir=>new a.S(ir.canonical.z,ir.wrap,ir.canonical.z,ir.canonical.x,ir.canonical.y)):(Q=w.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:q}),this._source.hasTile&&(Q=Q.filter(ir=>this._source.hasTile(ir)))):Q=[];let ee=w.coveringZoomLevel(this._source),ue=Math.max(ee-rt.maxOverzooming,this._source.minzoom),Ge=Math.max(ee+rt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let ir={};for(let or of Q)if(or.canonical.z>this._source.minzoom){let kr=or.scaledTo(or.canonical.z-1);ir[kr.key]=kr;let Vr=or.scaledTo(Math.max(this._source.minzoom,Math.min(or.canonical.z,5)));ir[Vr.key]=Vr}Q=Q.concat(Object.values(ir))}let et=Q.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,et&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let mt=this._updateRetainedTiles(Q,ee);zt(this._source.type)&&this._updateCoveredAndRetainedTiles(mt,ue,Ge,ee,Q,q);for(let ir in mt)this._tiles[ir].clearFadeHold();let Ft=a.ab(this._tiles,mt);for(let ir of Ft){let or=this._tiles[ir];or.hasSymbolBuckets&&!or.holdingForFade()?or.setHoldDuration(this.map._fadeDuration):or.hasSymbolBuckets&&!or.symbolFadeFinished()||this._removeTile(ir)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let w in this._tiles)this._tiles[w].holdingForFade()&&this._removeTile(w)}_updateRetainedTiles(w,q){var Q;let ee={},ue={},Ge=Math.max(q-rt.maxOverzooming,this._source.minzoom),et=Math.max(q+rt.maxUnderzooming,this._source.minzoom),mt={};for(let Ft of w){let ir=this._addTile(Ft);ee[Ft.key]=Ft,ir.hasData()||qthis._source.maxzoom){let kr=Ft.children(this._source.maxzoom)[0],Vr=this.getTile(kr);if(Vr&&Vr.hasData()){ee[kr.key]=kr;continue}}else{let kr=Ft.children(this._source.maxzoom);if(ee[kr[0].key]&&ee[kr[1].key]&&ee[kr[2].key]&&ee[kr[3].key])continue}let or=ir.wasRequested();for(let kr=Ft.overscaledZ-1;kr>=Ge;--kr){let Vr=Ft.scaledTo(kr);if(ue[Vr.key])break;if(ue[Vr.key]=!0,ir=this.getTile(Vr),!ir&&or&&(ir=this._addTile(Vr)),ir){let he=ir.hasData();if((he||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||or)&&(ee[Vr.key]=Vr),or=ir.wasRequested(),he)break}}}return ee}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let w in this._tiles){let q=[],Q,ee=this._tiles[w].tileID;for(;ee.overscaledZ>0;){if(ee.key in this._loadedParentTiles){Q=this._loadedParentTiles[ee.key];break}q.push(ee.key);let ue=ee.scaledTo(ee.overscaledZ-1);if(Q=this._getLoadedTile(ue),Q)break;ee=ue}for(let ue of q)this._loadedParentTiles[ue]=Q}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let w in this._tiles){let q=this._tiles[w].tileID,Q=this._getLoadedTile(q);this._loadedSiblingTiles[q.key]=Q}}_addTile(w){let q=this._tiles[w.key];if(q)return q;q=this._cache.getAndRemove(w),q&&(this._setTileReloadTimer(w.key,q),q.tileID=w,this._state.initializeTileState(q,this.map?this.map.painter:null),this._cacheTimers[w.key]&&(clearTimeout(this._cacheTimers[w.key]),delete this._cacheTimers[w.key],this._setTileReloadTimer(w.key,q)));let Q=q;return q||(q=new vt(w,this._source.tileSize*w.overscaleFactor()),this._loadTile(q,w.key,q.state)),q.uses++,this._tiles[w.key]=q,Q||this._source.fire(new a.k("dataloading",{tile:q,coord:q.tileID,dataType:"source"})),q}_setTileReloadTimer(w,q){w in this._timers&&(clearTimeout(this._timers[w]),delete this._timers[w]);let Q=q.getExpiryTimeout();Q&&(this._timers[w]=setTimeout(()=>{this._reloadTile(w,"expired"),delete this._timers[w]},Q))}_removeTile(w){let q=this._tiles[w];q&&(q.uses--,delete this._tiles[w],this._timers[w]&&(clearTimeout(this._timers[w]),delete this._timers[w]),q.uses>0||(q.hasData()&&q.state!=="reloading"?this._cache.add(q.tileID,q,q.getExpiryTimeout()):(q.aborted=!0,this._abortTile(q),this._unloadTile(q))))}_dataHandler(w){let q=w.sourceDataType;w.dataType==="source"&&q==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&w.dataType==="source"&&q==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let w in this._tiles)this._removeTile(w);this._cache.reset()}tilesIn(w,q,Q){let ee=[],ue=this.transform;if(!ue)return ee;let Ge=Q?ue.getCameraQueryGeometry(w):w,et=w.map(he=>ue.pointCoordinate(he,this.terrain)),mt=Ge.map(he=>ue.pointCoordinate(he,this.terrain)),Ft=this.getIds(),ir=1/0,or=1/0,kr=-1/0,Vr=-1/0;for(let he of mt)ir=Math.min(ir,he.x),or=Math.min(or,he.y),kr=Math.max(kr,he.x),Vr=Math.max(Vr,he.y);for(let he=0;he=0&&tt[1].y+lt>=0){let pt=et.map(nr=>qe.getTilePoint(nr)),Ht=mt.map(nr=>qe.getTilePoint(nr));ee.push({tile:Se,tileID:qe,queryGeometry:pt,cameraQueryGeometry:Ht,scale:He})}}return ee}getVisibleCoordinates(w){let q=this.getRenderableIds(w).map(Q=>this._tiles[Q].tileID);for(let Q of q)Q.posMatrix=this.transform.calculatePosMatrix(Q.toUnwrapped());return q}hasTransition(){if(this._source.hasTransition())return!0;if(zt(this._source.type)){let w=l.now();for(let q in this._tiles)if(this._tiles[q].fadeEndTime>=w)return!0}return!1}setFeatureState(w,q,Q){this._state.updateState(w=w||"_geojsonTileLayer",q,Q)}removeFeatureState(w,q,Q){this._state.removeFeatureState(w=w||"_geojsonTileLayer",q,Q)}getFeatureState(w,q){return this._state.getState(w=w||"_geojsonTileLayer",q)}setDependencies(w,q,Q){let ee=this._tiles[w];ee&&ee.setDependencies(q,Q)}reloadTilesForDependencies(w,q){for(let Q in this._tiles)this._tiles[Q].hasDependency(w,q)&&this._reloadTile(Q,"reloading");this._cache.filter(Q=>!Q.hasDependency(w,q))}}function $e(le,w){let q=Math.abs(2*le.wrap)-+(le.wrap<0),Q=Math.abs(2*w.wrap)-+(w.wrap<0);return le.overscaledZ-w.overscaledZ||Q-q||w.canonical.y-le.canonical.y||w.canonical.x-le.canonical.x}function zt(le){return le==="raster"||le==="image"||le==="video"}rt.maxOverzooming=10,rt.maxUnderzooming=3;class Yt{constructor(w,q){this.reset(w,q)}reset(w,q){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-Ge)/et:0;return this.points[ue].mult(1-mt).add(this.points[q].mult(mt))}}function hr(le,w){let q=!0;return le==="always"||le!=="never"&&w!=="never"||(q=!1),q}class yr{constructor(w,q,Q){let ee=this.boxCells=[],ue=this.circleCells=[];this.xCellCount=Math.ceil(w/Q),this.yCellCount=Math.ceil(q/Q);for(let Ge=0;Gethis.width||ee<0||q>this.height)return[];let mt=[];if(w<=0&&q<=0&&this.width<=Q&&this.height<=ee){if(ue)return[{key:null,x1:w,y1:q,x2:Q,y2:ee}];for(let Ft=0;Ft0}hitTestCircle(w,q,Q,ee,ue){let Ge=w-Q,et=w+Q,mt=q-Q,Ft=q+Q;if(et<0||Ge>this.width||Ft<0||mt>this.height)return!1;let ir=[];return this._forEachCell(Ge,mt,et,Ft,this._queryCellCircle,ir,{hitTest:!0,overlapMode:ee,circle:{x:w,y:q,radius:Q},seenUids:{box:{},circle:{}}},ue),ir.length>0}_queryCell(w,q,Q,ee,ue,Ge,et,mt){let{seenUids:Ft,hitTest:ir,overlapMode:or}=et,kr=this.boxCells[ue];if(kr!==null){let he=this.bboxes;for(let Se of kr)if(!Ft.box[Se]){Ft.box[Se]=!0;let qe=4*Se,He=this.boxKeys[Se];if(w<=he[qe+2]&&q<=he[qe+3]&&Q>=he[qe+0]&&ee>=he[qe+1]&&(!mt||mt(He))&&(!ir||!hr(or,He.overlapMode))&&(Ge.push({key:He,x1:he[qe],y1:he[qe+1],x2:he[qe+2],y2:he[qe+3]}),ir))return!0}}let Vr=this.circleCells[ue];if(Vr!==null){let he=this.circles;for(let Se of Vr)if(!Ft.circle[Se]){Ft.circle[Se]=!0;let qe=3*Se,He=this.circleKeys[Se];if(this._circleAndRectCollide(he[qe],he[qe+1],he[qe+2],w,q,Q,ee)&&(!mt||mt(He))&&(!ir||!hr(or,He.overlapMode))){let lt=he[qe],tt=he[qe+1],pt=he[qe+2];if(Ge.push({key:He,x1:lt-pt,y1:tt-pt,x2:lt+pt,y2:tt+pt}),ir)return!0}}}return!1}_queryCellCircle(w,q,Q,ee,ue,Ge,et,mt){let{circle:Ft,seenUids:ir,overlapMode:or}=et,kr=this.boxCells[ue];if(kr!==null){let he=this.bboxes;for(let Se of kr)if(!ir.box[Se]){ir.box[Se]=!0;let qe=4*Se,He=this.boxKeys[Se];if(this._circleAndRectCollide(Ft.x,Ft.y,Ft.radius,he[qe+0],he[qe+1],he[qe+2],he[qe+3])&&(!mt||mt(He))&&!hr(or,He.overlapMode))return Ge.push(!0),!0}}let Vr=this.circleCells[ue];if(Vr!==null){let he=this.circles;for(let Se of Vr)if(!ir.circle[Se]){ir.circle[Se]=!0;let qe=3*Se,He=this.circleKeys[Se];if(this._circlesCollide(he[qe],he[qe+1],he[qe+2],Ft.x,Ft.y,Ft.radius)&&(!mt||mt(He))&&!hr(or,He.overlapMode))return Ge.push(!0),!0}}}_forEachCell(w,q,Q,ee,ue,Ge,et,mt){let Ft=this._convertToXCellCoord(w),ir=this._convertToYCellCoord(q),or=this._convertToXCellCoord(Q),kr=this._convertToYCellCoord(ee);for(let Vr=Ft;Vr<=or;Vr++)for(let he=ir;he<=kr;he++)if(ue.call(this,w,q,Q,ee,this.xCellCount*he+Vr,Ge,et,mt))return}_convertToXCellCoord(w){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(w*this.xScale)))}_convertToYCellCoord(w){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(w*this.yScale)))}_circlesCollide(w,q,Q,ee,ue,Ge){let et=ee-w,mt=ue-q,Ft=Q+Ge;return Ft*Ft>et*et+mt*mt}_circleAndRectCollide(w,q,Q,ee,ue,Ge,et){let mt=(Ge-ee)/2,Ft=Math.abs(w-(ee+mt));if(Ft>mt+Q)return!1;let ir=(et-ue)/2,or=Math.abs(q-(ue+ir));if(or>ir+Q)return!1;if(Ft<=mt||or<=ir)return!0;let kr=Ft-mt,Vr=or-ir;return kr*kr+Vr*Vr<=Q*Q}}function br(le,w,q,Q,ee){let ue=a.H();return w?(a.K(ue,ue,[1/ee,1/ee,1]),q||a.ad(ue,ue,Q.angle)):a.L(ue,Q.labelPlaneMatrix,le),ue}function Ut(le,w,q,Q,ee){if(w){let ue=a.ae(le);return a.K(ue,ue,[ee,ee,1]),q||a.ad(ue,ue,-Q.angle),ue}return Q.glCoordMatrix}function Ie(le,w,q,Q){let ee;Q?(ee=[le,w,Q(le,w),1],a.af(ee,ee,q)):(ee=[le,w,0,1],Mr(ee,ee,q));let ue=ee[3];return{point:new a.P(ee[0]/ue,ee[1]/ue),signedDistanceFromCamera:ue,isOccluded:!1}}function xe(le,w){return .5+le/w*.5}function Oe(le,w){return le.x>=-w[0]&&le.x<=w[0]&&le.y>=-w[1]&&le.y<=w[1]}function Re(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he){let Se=Q?le.textSizeData:le.iconSizeData,qe=a.ag(Se,q.transform.zoom),He=[256/q.width*2+1,256/q.height*2+1],lt=Q?le.text.dynamicLayoutVertexArray:le.icon.dynamicLayoutVertexArray;lt.clear();let tt=le.lineVertexArray,pt=Q?le.text.placedSymbolArray:le.icon.placedSymbolArray,Ht=q.transform.width/q.transform.height,nr=!1;for(let fr=0;frMath.abs(q.x-w.x)*Q?{useVertical:!0}:(le===a.ah.vertical?w.yq.x)?{needsFlipping:!0}:null}function ge(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir){let or=q/24,kr=w.lineOffsetX*or,Vr=w.lineOffsetY*or,he;if(w.numGlyphs>1){let Se=w.glyphStartIndex+w.numGlyphs,qe=w.lineStartIndex,He=w.lineStartIndex+w.lineLength,lt=De(or,et,kr,Vr,Q,w,ir,le);if(!lt)return{notEnoughRoom:!0};let tt=Ie(lt.first.point.x,lt.first.point.y,Ge,le.getElevation).point,pt=Ie(lt.last.point.x,lt.last.point.y,Ge,le.getElevation).point;if(ee&&!Q){let Ht=ct(w.writingMode,tt,pt,Ft);if(Ht)return Ht}he=[lt.first];for(let Ht=w.glyphStartIndex+1;Ht0?tt.point:function(nr,fr,Ar,Rr,ri,si){return fe(nr,fr,Ar,1,ri,si)}(le.tileAnchorPoint,lt,qe,0,ue,le),Ht=ct(w.writingMode,qe,pt,Ft);if(Ht)return Ht}let Se=rr(or*et.getoffsetX(w.glyphStartIndex),kr,Vr,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,le,ir);if(!Se||le.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};he=[Se]}for(let Se of he)a.aj(mt,Se.point,Se.angle);return{}}function fe(le,w,q,Q,ee,ue){let Ge=le.add(le.sub(w)._unit()),et=ee!==void 0?Ie(Ge.x,Ge.y,ee,ue.getElevation).point:dt(Ge.x,Ge.y,ue).point,mt=q.sub(et);return q.add(mt._mult(Q/mt.mag()))}function pe(le,w,q){let Q=w.projectionCache;if(Q.projections[le])return Q.projections[le];let ee=new a.P(w.lineVertexArray.getx(le),w.lineVertexArray.gety(le)),ue=dt(ee.x,ee.y,w);if(ue.signedDistanceFromCamera>0)return Q.projections[le]=ue.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||ue.isOccluded,ue.point;let Ge=le-q.direction;return function(et,mt,Ft,ir,or){return fe(et,mt,Ft,ir,void 0,or)}(q.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(Ge),w.lineVertexArray.gety(Ge)),ee,q.previousVertex,q.absOffsetX-q.distanceFromAnchor+1,w)}function dt(le,w,q){let Q=le+q.translation[0],ee=w+q.translation[1],ue;return!q.pitchWithMap&&q.projection.useSpecialProjectionForSymbols?(ue=q.projection.projectTileCoordinates(Q,ee,q.unwrappedTileID,q.getElevation),ue.point.x=(.5*ue.point.x+.5)*q.width,ue.point.y=(.5*-ue.point.y+.5)*q.height):(ue=Ie(Q,ee,q.labelPlaneMatrix,q.getElevation),ue.isOccluded=!1),ue}function It(le,w,q){return le._unit()._perp()._mult(w*q)}function Pt(le,w,q,Q,ee,ue,Ge,et,mt){if(et.projectionCache.offsets[le])return et.projectionCache.offsets[le];let Ft=q.add(w);if(le+mt.direction=ee)return et.projectionCache.offsets[le]=Ft,Ft;let ir=pe(le+mt.direction,et,mt),or=It(ir.sub(q),Ge,mt.direction),kr=q.add(or),Vr=ir.add(or);return et.projectionCache.offsets[le]=a.ak(ue,Ft,kr,Vr)||Ft,et.projectionCache.offsets[le]}function rr(le,w,q,Q,ee,ue,Ge,et,mt){let Ft=Q?le-w:le+w,ir=Ft>0?1:-1,or=0;Q&&(ir*=-1,or=Math.PI),ir<0&&(or+=Math.PI);let kr,Vr=ir>0?ue+ee:ue+ee+1;et.projectionCache.cachedAnchorPoint?kr=et.projectionCache.cachedAnchorPoint:(kr=dt(et.tileAnchorPoint.x,et.tileAnchorPoint.y,et).point,et.projectionCache.cachedAnchorPoint=kr);let he,Se,qe=kr,He=kr,lt=0,tt=0,pt=Math.abs(Ft),Ht=[],nr;for(;lt+tt<=pt;){if(Vr+=ir,Vr=Ge)return null;lt+=tt,He=qe,Se=he;let Rr={absOffsetX:pt,direction:ir,distanceFromAnchor:lt,previousVertex:He};if(qe=pe(Vr,et,Rr),q===0)Ht.push(He),nr=qe.sub(He);else{let ri,si=qe.sub(He);ri=si.mag()===0?It(pe(Vr+ir,et,Rr).sub(qe),q,ir):It(si,q,ir),Se||(Se=He.add(ri)),he=Pt(Vr,ri,qe,ue,Ge,Se,q,et,Rr),Ht.push(Se),nr=he.sub(Se)}tt=nr.mag()}let fr=nr._mult((pt-lt)/tt)._add(Se||He),Ar=or+Math.atan2(qe.y-He.y,qe.x-He.x);return Ht.push(fr),{point:fr,angle:mt?Ar:0,path:Ht}}let Hr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Dr(le,w){for(let q=0;q=1;Us--)Ua.push(Zn.path[Us]);for(let Us=1;Usml.signedDistanceFromCamera<=0)?[]:Us.map(ml=>ml.point)}let vl=[];if(Ua.length>0){let Us=Ua[0].clone(),ml=Ua[0].clone();for(let au=1;au=si.x&&ml.x<=Mi.x&&Us.y>=si.y&&ml.y<=Mi.y?[Ua]:ml.xMi.x||ml.yMi.y?[]:a.al([Ua],si.x,si.y,Mi.x,Mi.y)}for(let Us of vl){hn.reset(Us,.25*ri);let ml=0;ml=hn.length<=.5*ri?1:Math.ceil(hn.paddedLength/Fo)+1;for(let au=0;auIe(ee.x,ee.y,Q,q.getElevation))}queryRenderedSymbols(w){if(w.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let q=[],Q=1/0,ee=1/0,ue=-1/0,Ge=-1/0;for(let ir of w){let or=new a.P(ir.x+Fr,ir.y+Fr);Q=Math.min(Q,or.x),ee=Math.min(ee,or.y),ue=Math.max(ue,or.x),Ge=Math.max(Ge,or.y),q.push(or)}let et=this.grid.query(Q,ee,ue,Ge).concat(this.ignoredGrid.query(Q,ee,ue,Ge)),mt={},Ft={};for(let ir of et){let or=ir.key;if(mt[or.bucketInstanceId]===void 0&&(mt[or.bucketInstanceId]={}),mt[or.bucketInstanceId][or.featureIndex])continue;let kr=[new a.P(ir.x1,ir.y1),new a.P(ir.x2,ir.y1),new a.P(ir.x2,ir.y2),new a.P(ir.x1,ir.y2)];a.am(q,kr)&&(mt[or.bucketInstanceId][or.featureIndex]=!0,Ft[or.bucketInstanceId]===void 0&&(Ft[or.bucketInstanceId]=[]),Ft[or.bucketInstanceId].push(or.featureIndex))}return Ft}insertCollisionBox(w,q,Q,ee,ue,Ge){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:ue,collisionGroupID:Ge,overlapMode:q},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,q,Q,ee,ue,Ge){let et=Q?this.ignoredGrid:this.grid,mt={bucketInstanceId:ee,featureIndex:ue,collisionGroupID:Ge,overlapMode:q};for(let Ft=0;Ft=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,q,Q,ee){return Q>=0&&w=0&&qthis.projectAndGetPerspectiveRatio(Q,ri.x,ri.y,ee,Ft));Ar=Rr.some(ri=>!ri.isOccluded),fr=Rr.map(ri=>ri.point)}else Ar=!0;return{box:a.ao(fr),allPointsOccluded:!Ar}}}function Di(le,w,q){return w*(a.X/(le.tileSize*Math.pow(2,q-le.tileID.overscaledZ)))}class Ii{constructor(w,q,Q,ee){this.opacity=w?Math.max(0,Math.min(1,w.opacity+(w.placed?q:-q))):ee&&Q?1:0,this.placed=Q}isHidden(){return this.opacity===0&&!this.placed}}class Ci{constructor(w,q,Q,ee,ue){this.text=new Ii(w?w.text:null,q,Q,ue),this.icon=new Ii(w?w.icon:null,q,ee,ue)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class nn{constructor(w,q,Q){this.text=w,this.icon=q,this.skipFade=Q}}class ii{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class wi{constructor(w,q,Q,ee,ue){this.bucketInstanceId=w,this.featureIndex=q,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=ue}}class Gi{constructor(w){this.crossSourceCollisions=w,this.maxGroupID=0,this.collisionGroups={}}get(w){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[w]){let q=++this.maxGroupID;this.collisionGroups[w]={ID:q,predicate:Q=>Q.collisionGroupID===q}}return this.collisionGroups[w]}}function Bt(le,w,q,Q,ee){let{horizontalAlign:ue,verticalAlign:Ge}=a.au(le);return new a.P(-(ue-.5)*w+Q[0]*ee,-(Ge-.5)*q+Q[1]*ee)}class yt{constructor(w,q,Q,ee,ue,Ge){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new di(this.transform,q),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new Gi(ue),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=Ge,Ge&&(Ge.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(w){let q=this.terrain;return q?(Q,ee)=>q.getElevation(w,Q,ee):null}getBucketParts(w,q,Q,ee){let ue=Q.getBucket(q),Ge=Q.latestFeatureIndex;if(!ue||!Ge||q.id!==ue.layerIds[0])return;let et=Q.collisionBoxArray,mt=ue.layers[0].layout,Ft=ue.layers[0].paint,ir=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),or=Q.tileSize/a.X,kr=Q.tileID.toUnwrapped(),Vr=this.transform.calculatePosMatrix(kr),he=mt.get("text-pitch-alignment")==="map",Se=mt.get("text-rotation-alignment")==="map",qe=Di(Q,1,this.transform.zoom),He=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Ft.get("text-translate"),Ft.get("text-translate-anchor")),lt=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Ft.get("icon-translate"),Ft.get("icon-translate-anchor")),tt=br(Vr,he,Se,this.transform,qe),pt=null;if(he){let nr=Ut(Vr,he,Se,this.transform,qe);pt=a.L([],this.transform.labelPlaneMatrix,nr)}this.retainedQueryData[ue.bucketInstanceId]=new wi(ue.bucketInstanceId,Ge,ue.sourceLayerIndex,ue.index,Q.tileID);let Ht={bucket:ue,layout:mt,translationText:He,translationIcon:lt,posMatrix:Vr,unwrappedTileID:kr,textLabelPlaneMatrix:tt,labelToScreenMatrix:pt,scale:ir,textPixelRatio:or,holdingForFade:Q.holdingForFade(),collisionBoxArray:et,partiallyEvaluatedTextSize:a.ag(ue.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(ue.sourceID)};if(ee)for(let nr of ue.sortKeyRanges){let{sortKey:fr,symbolInstanceStart:Ar,symbolInstanceEnd:Rr}=nr;w.push({sortKey:fr,symbolInstanceStart:Ar,symbolInstanceEnd:Rr,parameters:Ht})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:ue.symbolInstances.length,parameters:Ht})}attemptAnchorPlacement(w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt){let pt=a.aq[w.textAnchor],Ht=[w.textOffset0,w.textOffset1],nr=Bt(pt,Q,ee,Ht,ue),fr=this.collisionIndex.placeCollisionBox(q,kr,mt,Ft,ir,et,Ge,qe,or.predicate,tt,nr);if((!lt||this.collisionIndex.placeCollisionBox(lt,kr,mt,Ft,ir,et,Ge,He,or.predicate,tt,nr).placeable)&&fr.placeable){let Ar;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Vr.crossTileID]&&this.prevPlacement.placements[Vr.crossTileID]&&this.prevPlacement.placements[Vr.crossTileID].text&&(Ar=this.prevPlacement.variableOffsets[Vr.crossTileID].anchor),Vr.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Vr.crossTileID]={textOffset:Ht,width:Q,height:ee,anchor:pt,textBoxScale:ue,prevAnchor:Ar},this.markUsedJustification(he,pt,Vr,Se),he.allowVerticalPlacement&&(this.markUsedOrientation(he,Se,Vr),this.placedOrientations[Vr.crossTileID]=Se),{shift:nr,placedGlyphBoxes:fr}}}placeLayerBucketPart(w,q,Q){let{bucket:ee,layout:ue,translationText:Ge,translationIcon:et,posMatrix:mt,unwrappedTileID:Ft,textLabelPlaneMatrix:ir,labelToScreenMatrix:or,textPixelRatio:kr,holdingForFade:Vr,collisionBoxArray:he,partiallyEvaluatedTextSize:Se,collisionGroup:qe}=w.parameters,He=ue.get("text-optional"),lt=ue.get("icon-optional"),tt=a.ar(ue,"text-overlap","text-allow-overlap"),pt=tt==="always",Ht=a.ar(ue,"icon-overlap","icon-allow-overlap"),nr=Ht==="always",fr=ue.get("text-rotation-alignment")==="map",Ar=ue.get("text-pitch-alignment")==="map",Rr=ue.get("icon-text-fit")!=="none",ri=ue.get("symbol-z-order")==="viewport-y",si=pt&&(nr||!ee.hasIconData()||lt),Mi=nr&&(pt||!ee.hasTextData()||He);!ee.collisionArrays&&he&&ee.deserializeCollisionBoxes(he);let hn=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),Zn=(Yn,Ua,Fo)=>{var vl,Us;if(q[Yn.crossTileID])return;if(Vr)return void(this.placements[Yn.crossTileID]=new nn(!1,!1,!1));let ml=!1,au=!1,Sl=!0,Yl=null,Ol={box:null,placeable:!1,offscreen:null},ou={box:null,placeable:!1,offscreen:null},Pu=null,iu=null,tu=null,Wu=0,Qu=0,Ju=0;Ua.textFeatureIndex?Wu=Ua.textFeatureIndex:Yn.useRuntimeCollisionCircles&&(Wu=Yn.featureIndex),Ua.verticalTextFeatureIndex&&(Qu=Ua.verticalTextFeatureIndex);let ju=Ua.textBox;if(ju){let ef=ze=>{let Xe=a.ah.horizontal;if(ee.allowVerticalPlacement&&!ze&&this.prevPlacement){let Qe=this.prevPlacement.placedOrientations[Yn.crossTileID];Qe&&(this.placedOrientations[Yn.crossTileID]=Qe,Xe=Qe,this.markUsedOrientation(ee,Xe,Yn))}return Xe},tf=(ze,Xe)=>{if(ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&Ua.verticalTextBox){for(let Qe of ee.writingModes)if(Qe===a.ah.vertical?(Ol=Xe(),ou=Ol):Ol=ze(),Ol&&Ol.placeable)break}else Ol=ze()},Z=Yn.textAnchorOffsetStartIndex,se=Yn.textAnchorOffsetEndIndex;if(se===Z){let ze=(Xe,Qe)=>{let ot=this.collisionIndex.placeCollisionBox(Xe,tt,kr,mt,Ft,Ar,fr,Ge,qe.predicate,hn);return ot&&ot.placeable&&(this.markUsedOrientation(ee,Qe,Yn),this.placedOrientations[Yn.crossTileID]=Qe),ot};tf(()=>ze(ju,a.ah.horizontal),()=>{let Xe=Ua.verticalTextBox;return ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&Xe?ze(Xe,a.ah.vertical):{box:null,offscreen:null}}),ef(Ol&&Ol.placeable)}else{let ze=a.aq[(Us=(vl=this.prevPlacement)===null||vl===void 0?void 0:vl.variableOffsets[Yn.crossTileID])===null||Us===void 0?void 0:Us.anchor],Xe=(ot,jt,_t)=>{let cr=ot.x2-ot.x1,Cr=ot.y2-ot.y1,zr=Yn.textBoxScale,ui=Rr&&Ht==="never"?jt:null,$r=null,Oi=tt==="never"?1:2,fn="never";ze&&Oi++;for(let vi=0;viXe(ju,Ua.iconBox,a.ah.horizontal),()=>{let ot=Ua.verticalTextBox;return ee.allowVerticalPlacement&&(!Ol||!Ol.placeable)&&Yn.numVerticalGlyphVertices>0&&ot?Xe(ot,Ua.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),Ol&&(ml=Ol.placeable,Sl=Ol.offscreen);let Qe=ef(Ol&&Ol.placeable);if(!ml&&this.prevPlacement){let ot=this.prevPlacement.variableOffsets[Yn.crossTileID];ot&&(this.variableOffsets[Yn.crossTileID]=ot,this.markUsedJustification(ee,ot.anchor,Yn,Qe))}}}if(Pu=Ol,ml=Pu&&Pu.placeable,Sl=Pu&&Pu.offscreen,Yn.useRuntimeCollisionCircles){let ef=ee.text.placedSymbolArray.get(Yn.centerJustifiedTextSymbolIndex),tf=a.ai(ee.textSizeData,Se,ef),Z=ue.get("text-padding");iu=this.collisionIndex.placeCollisionCircles(tt,ef,ee.lineVertexArray,ee.glyphOffsetArray,tf,mt,Ft,ir,or,Q,Ar,qe.predicate,Yn.collisionCircleDiameter,Z,Ge,hn),iu.circles.length&&iu.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),ml=pt||iu.circles.length>0&&!iu.collisionDetected,Sl=Sl&&iu.offscreen}if(Ua.iconFeatureIndex&&(Ju=Ua.iconFeatureIndex),Ua.iconBox){let ef=tf=>this.collisionIndex.placeCollisionBox(tf,Ht,kr,mt,Ft,Ar,fr,et,qe.predicate,hn,Rr&&Yl?Yl:void 0);ou&&ou.placeable&&Ua.verticalIconBox?(tu=ef(Ua.verticalIconBox),au=tu.placeable):(tu=ef(Ua.iconBox),au=tu.placeable),Sl=Sl&&tu.offscreen}let Xu=He||Yn.numHorizontalGlyphVertices===0&&Yn.numVerticalGlyphVertices===0,lf=lt||Yn.numIconVertices===0;Xu||lf?lf?Xu||(au=au&&ml):ml=au&&ml:au=ml=au&&ml;let xf=au&&tu.placeable;if(ml&&Pu.placeable&&this.collisionIndex.insertCollisionBox(Pu.box,tt,ue.get("text-ignore-placement"),ee.bucketInstanceId,ou&&ou.placeable&&Qu?Qu:Wu,qe.ID),xf&&this.collisionIndex.insertCollisionBox(tu.box,Ht,ue.get("icon-ignore-placement"),ee.bucketInstanceId,Ju,qe.ID),iu&&ml&&this.collisionIndex.insertCollisionCircles(iu.circles,tt,ue.get("text-ignore-placement"),ee.bucketInstanceId,Wu,qe.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Fo,Ua,Pu,tu,iu),Yn.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(ee.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[Yn.crossTileID]=new nn(ml||si,au||Mi,Sl||ee.justReloaded),q[Yn.crossTileID]=!0};if(ri){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let Yn=ee.getSortedSymbolIndexes(this.transform.angle);for(let Ua=Yn.length-1;Ua>=0;--Ua){let Fo=Yn[Ua];Zn(ee.symbolInstances.get(Fo),ee.collisionArrays[Fo],Fo)}}else for(let Yn=w.symbolInstanceStart;Yn=0&&(w.text.placedSymbolArray.get(et).crossTileID=ue>=0&&et!==ue?0:Q.crossTileID)}markUsedOrientation(w,q,Q){let ee=q===a.ah.horizontal||q===a.ah.horizontalOnly?q:0,ue=q===a.ah.vertical?q:0,Ge=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let et of Ge)w.text.placedSymbolArray.get(et).placedOrientation=ee;Q.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(Q.verticalPlacedTextSymbolIndex).placedOrientation=ue)}commit(w){this.commitTime=w,this.zoomAtLastRecencyCheck=this.transform.zoom;let q=this.prevPlacement,Q=!1;this.prevZoomAdjustment=q?q.zoomAdjustment(this.transform.zoom):0;let ee=q?q.symbolFadeChange(w):1,ue=q?q.opacities:{},Ge=q?q.variableOffsets:{},et=q?q.placedOrientations:{};for(let mt in this.placements){let Ft=this.placements[mt],ir=ue[mt];ir?(this.opacities[mt]=new Ci(ir,ee,Ft.text,Ft.icon),Q=Q||Ft.text!==ir.text.placed||Ft.icon!==ir.icon.placed):(this.opacities[mt]=new Ci(null,ee,Ft.text,Ft.icon,Ft.skipFade),Q=Q||Ft.text||Ft.icon)}for(let mt in ue){let Ft=ue[mt];if(!this.opacities[mt]){let ir=new Ci(Ft,ee,!1,!1);ir.isHidden()||(this.opacities[mt]=ir,Q=Q||Ft.text.placed||Ft.icon.placed)}}for(let mt in Ge)this.variableOffsets[mt]||!this.opacities[mt]||this.opacities[mt].isHidden()||(this.variableOffsets[mt]=Ge[mt]);for(let mt in et)this.placedOrientations[mt]||!this.opacities[mt]||this.opacities[mt].isHidden()||(this.placedOrientations[mt]=et[mt]);if(q&&q.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");Q?this.lastPlacementChangeTime=w:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=q?q.lastPlacementChangeTime:w)}updateLayerOpacities(w,q){let Q={};for(let ee of q){let ue=ee.getBucket(w);ue&&ee.latestFeatureIndex&&w.id===ue.layerIds[0]&&this.updateBucketOpacities(ue,ee.tileID,Q,ee.collisionBoxArray)}}updateBucketOpacities(w,q,Q,ee){w.hasTextData()&&(w.text.opacityVertexArray.clear(),w.text.hasVisibleVertices=!1),w.hasIconData()&&(w.icon.opacityVertexArray.clear(),w.icon.hasVisibleVertices=!1),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexArray.clear(),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexArray.clear();let ue=w.layers[0],Ge=ue.layout,et=new Ci(null,0,!1,!1,!0),mt=Ge.get("text-allow-overlap"),Ft=Ge.get("icon-allow-overlap"),ir=ue._unevaluatedLayout.hasValue("text-variable-anchor")||ue._unevaluatedLayout.hasValue("text-variable-anchor-offset"),or=Ge.get("text-rotation-alignment")==="map",kr=Ge.get("text-pitch-alignment")==="map",Vr=Ge.get("icon-text-fit")!=="none",he=new Ci(null,0,mt&&(Ft||!w.hasIconData()||Ge.get("icon-optional")),Ft&&(mt||!w.hasTextData()||Ge.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let Se=(He,lt,tt)=>{for(let pt=0;pt0,Ar=this.placedOrientations[lt.crossTileID],Rr=Ar===a.ah.vertical,ri=Ar===a.ah.horizontal||Ar===a.ah.horizontalOnly;if(tt>0||pt>0){let Mi=yi(nr.text);Se(w.text,tt,Rr?Ei:Mi),Se(w.text,pt,ri?Ei:Mi);let hn=nr.text.isHidden();[lt.rightJustifiedTextSymbolIndex,lt.centerJustifiedTextSymbolIndex,lt.leftJustifiedTextSymbolIndex].forEach(Ua=>{Ua>=0&&(w.text.placedSymbolArray.get(Ua).hidden=hn||Rr?1:0)}),lt.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(lt.verticalPlacedTextSymbolIndex).hidden=hn||ri?1:0);let Zn=this.variableOffsets[lt.crossTileID];Zn&&this.markUsedJustification(w,Zn.anchor,lt,Ar);let Yn=this.placedOrientations[lt.crossTileID];Yn&&(this.markUsedJustification(w,"left",lt,Yn),this.markUsedOrientation(w,Yn,lt))}if(fr){let Mi=yi(nr.icon),hn=!(Vr&<.verticalPlacedIconSymbolIndex&&Rr);lt.placedIconSymbolIndex>=0&&(Se(w.icon,lt.numIconVertices,hn?Mi:Ei),w.icon.placedSymbolArray.get(lt.placedIconSymbolIndex).hidden=nr.icon.isHidden()),lt.verticalPlacedIconSymbolIndex>=0&&(Se(w.icon,lt.numVerticalIconVertices,hn?Ei:Mi),w.icon.placedSymbolArray.get(lt.verticalPlacedIconSymbolIndex).hidden=nr.icon.isHidden())}let si=qe&&qe.has(He)?qe.get(He):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let Mi=w.collisionArrays[He];if(Mi){let hn=new a.P(0,0);if(Mi.textBox||Mi.verticalTextBox){let Zn=!0;if(ir){let Yn=this.variableOffsets[Ht];Yn?(hn=Bt(Yn.anchor,Yn.width,Yn.height,Yn.textOffset,Yn.textBoxScale),or&&hn._rotate(kr?this.transform.angle:-this.transform.angle)):Zn=!1}if(Mi.textBox||Mi.verticalTextBox){let Yn;Mi.textBox&&(Yn=Rr),Mi.verticalTextBox&&(Yn=ri),Vt(w.textCollisionBox.collisionVertexArray,nr.text.placed,!Zn||Yn,si.text,hn.x,hn.y)}}if(Mi.iconBox||Mi.verticalIconBox){let Zn=!!(!ri&&Mi.verticalIconBox),Yn;Mi.iconBox&&(Yn=Zn),Mi.verticalIconBox&&(Yn=!Zn),Vt(w.iconCollisionBox.collisionVertexArray,nr.icon.placed,Yn,si.icon,Vr?hn.x:0,Vr?hn.y:0)}}}}if(w.sortFeatures(this.transform.angle),this.retainedQueryData[w.bucketInstanceId]&&(this.retainedQueryData[w.bucketInstanceId].featureSortOrder=w.featureSortOrder),w.hasTextData()&&w.text.opacityVertexBuffer&&w.text.opacityVertexBuffer.updateData(w.text.opacityVertexArray),w.hasIconData()&&w.icon.opacityVertexBuffer&&w.icon.opacityVertexBuffer.updateData(w.icon.opacityVertexArray),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexBuffer&&w.iconCollisionBox.collisionVertexBuffer.updateData(w.iconCollisionBox.collisionVertexArray),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexBuffer&&w.textCollisionBox.collisionVertexBuffer.updateData(w.textCollisionBox.collisionVertexArray),w.text.opacityVertexArray.length!==w.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${w.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${w.text.layoutVertexArray.length}) / 4`);if(w.icon.opacityVertexArray.length!==w.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${w.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${w.icon.layoutVertexArray.length}) / 4`);if(w.bucketInstanceId in this.collisionCircleArrays){let He=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=He.invProjMatrix,w.placementViewportMatrix=He.viewportMatrix,w.collisionCircleArray=He.circles,delete this.collisionCircleArrays[w.bucketInstanceId]}}symbolFadeChange(w){return this.fadeDuration===0?1:(w-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(w){return Math.max(0,(this.transform.zoom-w)/1.5)}hasTransitions(w){return this.stale||w-this.lastPlacementChangeTimew}setStale(){this.stale=!0}}function Vt(le,w,q,Q,ee,ue){Q&&Q.length!==0||(Q=[0,0,0,0]);let Ge=Q[0]-Fr,et=Q[1]-Fr,mt=Q[2]-Fr,Ft=Q[3]-Fr;le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,Ge,et),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,mt,et),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,mt,Ft),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,Ge,Ft)}let Wt=Math.pow(2,25),_r=Math.pow(2,24),Lr=Math.pow(2,17),Ur=Math.pow(2,16),Ir=Math.pow(2,9),Gr=Math.pow(2,8),jr=Math.pow(2,1);function yi(le){if(le.opacity===0&&!le.placed)return 0;if(le.opacity===1&&le.placed)return 4294967295;let w=le.placed?1:0,q=Math.floor(127*le.opacity);return q*Wt+w*_r+q*Lr+w*Ur+q*Ir+w*Gr+q*jr+w}let Ei=0;function Vi(){return{isOccluded:(le,w,q)=>!1,getPitchedTextCorrection:(le,w,q)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(le,w,q,Q){throw new Error("Not implemented.")},translatePosition:(le,w,q,Q)=>function(ee,ue,Ge,et,mt=!1){if(!Ge[0]&&!Ge[1])return[0,0];let Ft=mt?et==="map"?ee.angle:0:et==="viewport"?-ee.angle:0;if(Ft){let ir=Math.sin(Ft),or=Math.cos(Ft);Ge=[Ge[0]*or-Ge[1]*ir,Ge[0]*ir+Ge[1]*or]}return[mt?Ge[0]:Di(ue,Ge[0],ee.zoom),mt?Ge[1]:Di(ue,Ge[1],ee.zoom)]}(le,w,q,Q),getCircleRadiusCorrection:le=>1}}class ti{constructor(w){this._sortAcrossTiles=w.layout.get("symbol-z-order")!=="viewport-y"&&!w.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(w,q,Q,ee,ue){let Ge=this._bucketParts;for(;this._currentTileIndexet.sortKey-mt.sortKey));this._currentPartIndex!this._forceFullPlacement&&l.now()-ee>2;for(;this._currentPlacementIndex>=0;){let Ge=q[w[this._currentPlacementIndex]],et=this.placement.collisionIndex.transform.zoom;if(Ge.type==="symbol"&&(!Ge.minzoom||Ge.minzoom<=et)&&(!Ge.maxzoom||Ge.maxzoom>et)){if(this._inProgressLayer||(this._inProgressLayer=new ti(Ge)),this._inProgressLayer.continuePlacement(Q[Ge.source],this.placement,this._showCollisionBoxes,Ge,ue))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(w){return this.placement.commit(w),this.placement}}let Yr=512/a.X/2;class oi{constructor(w,q,Q){this.tileID=w,this.bucketInstanceId=Q,this._symbolsByKey={};let ee=new Map;for(let ue=0;ue({x:Math.floor(mt.anchorX*Yr),y:Math.floor(mt.anchorY*Yr)})),crossTileIDs:Ge.map(mt=>mt.crossTileID)};if(et.positions.length>128){let mt=new a.av(et.positions.length,16,Uint16Array);for(let{x:Ft,y:ir}of et.positions)mt.add(Ft,ir);mt.finish(),delete et.positions,et.index=mt}this._symbolsByKey[ue]=et}}getScaledCoordinates(w,q){let{x:Q,y:ee,z:ue}=this.tileID.canonical,{x:Ge,y:et,z:mt}=q.canonical,Ft=Yr/Math.pow(2,mt-ue),ir=(et*a.X+w.anchorY)*Ft,or=ee*a.X*Yr;return{x:Math.floor((Ge*a.X+w.anchorX)*Ft-Q*a.X*Yr),y:Math.floor(ir-or)}}findMatches(w,q,Q){let ee=this.tileID.canonical.zw)}}class Bi{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class an{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(w){let q=Math.round((w-this.lng)/360);if(q!==0)for(let Q in this.indexes){let ee=this.indexes[Q],ue={};for(let Ge in ee){let et=ee[Ge];et.tileID=et.tileID.unwrapTo(et.tileID.wrap+q),ue[et.tileID.key]=et}this.indexes[Q]=ue}this.lng=w}addBucket(w,q,Q){if(this.indexes[w.overscaledZ]&&this.indexes[w.overscaledZ][w.key]){if(this.indexes[w.overscaledZ][w.key].bucketInstanceId===q.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(w.overscaledZ,this.indexes[w.overscaledZ][w.key])}for(let ue=0;uew.overscaledZ)for(let et in Ge){let mt=Ge[et];mt.tileID.isChildOf(w)&&mt.findMatches(q.symbolInstances,w,ee)}else{let et=Ge[w.scaledTo(Number(ue)).key];et&&et.findMatches(q.symbolInstances,w,ee)}}for(let ue=0;ue{q[Q]=!0});for(let Q in this.layerIndexes)q[Q]||delete this.layerIndexes[Q]}}let Fi=(le,w)=>a.t(le,w&&w.filter(q=>q.identifier!=="source.canvas")),Ri=a.aw();class xn extends a.E{constructor(w,q={}){super(),this._rtlPluginLoaded=()=>{for(let Q in this.sourceCaches){let ee=this.sourceCaches[Q].getSource().type;ee!=="vector"&&ee!=="geojson"||this.sourceCaches[Q].reload()}},this.map=w,this.dispatcher=new Ee(ke(),w._getMapId()),this.dispatcher.registerMessageHandler("GG",(Q,ee)=>this.getGlyphs(Q,ee)),this.dispatcher.registerMessageHandler("GI",(Q,ee)=>this.getImages(Q,ee)),this.imageManager=new A,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,q.localIdeographFontFamily),this.lineAtlas=new ae(256,512),this.crossTileSymbolIndex=new rn,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new a.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",a.ay()),wt().on(Et,this._rtlPluginLoaded),this.on("data",Q=>{if(Q.dataType!=="source"||Q.sourceDataType!=="metadata")return;let ee=this.sourceCaches[Q.sourceId];if(!ee)return;let ue=ee.getSource();if(ue&&ue.vectorLayerIds)for(let Ge in this._layers){let et=this._layers[Ge];et.source===ue.id&&this._validateLayer(et)}})}loadURL(w,q={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),q.validate=typeof q.validate!="boolean"||q.validate;let ee=this.map._requestManager.transformRequest(w,"Style");this._loadStyleRequest=new AbortController;let ue=this._loadStyleRequest;a.h(ee,this._loadStyleRequest).then(Ge=>{this._loadStyleRequest=null,this._load(Ge.data,q,Q)}).catch(Ge=>{this._loadStyleRequest=null,Ge&&!ue.signal.aborted&&this.fire(new a.j(Ge))})}loadJSON(w,q={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,l.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,q.validate=q.validate!==!1,this._load(w,q,Q)}).catch(()=>{})}loadEmpty(){this.fire(new a.k("dataloading",{dataType:"style"})),this._load(Ri,{validate:!1})}_load(w,q,Q){var ee;let ue=q.transformStyle?q.transformStyle(Q,w):w;if(!q.validate||!Fi(this,a.u(ue))){this._loaded=!0,this.stylesheet=ue;for(let Ge in ue.sources)this.addSource(Ge,ue.sources[Ge],{validate:!1});ue.sprite?this._loadSprite(ue.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(ue.glyphs),this._createLayers(),this.light=new N(this.stylesheet.light),this.sky=new re(this.stylesheet.sky),this.map.setTerrain((ee=this.stylesheet.terrain)!==null&&ee!==void 0?ee:null),this.fire(new a.k("data",{dataType:"style"})),this.fire(new a.k("style.load"))}}_createLayers(){let w=a.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",w),this._order=w.map(q=>q.id),this._layers={},this._serializedLayers=null;for(let q of w){let Q=a.aA(q);Q.setEventedParent(this,{layer:{id:q.id}}),this._layers[q.id]=Q}}_loadSprite(w,q=!1,Q=void 0){let ee;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(ue,Ge,et,mt){return a._(this,void 0,void 0,function*(){let Ft=C(ue),ir=et>1?"@2x":"",or={},kr={};for(let{id:Vr,url:he}of Ft){let Se=Ge.transformRequest(M(he,ir,".json"),"SpriteJSON");or[Vr]=a.h(Se,mt);let qe=Ge.transformRequest(M(he,ir,".png"),"SpriteImage");kr[Vr]=v.getImage(qe,mt)}return yield Promise.all([...Object.values(or),...Object.values(kr)]),function(Vr,he){return a._(this,void 0,void 0,function*(){let Se={};for(let qe in Vr){Se[qe]={};let He=l.getImageCanvasContext((yield he[qe]).data),lt=(yield Vr[qe]).data;for(let tt in lt){let{width:pt,height:Ht,x:nr,y:fr,sdf:Ar,pixelRatio:Rr,stretchX:ri,stretchY:si,content:Mi,textFitWidth:hn,textFitHeight:Zn}=lt[tt];Se[qe][tt]={data:null,pixelRatio:Rr,sdf:Ar,stretchX:ri,stretchY:si,content:Mi,textFitWidth:hn,textFitHeight:Zn,spriteData:{width:pt,height:Ht,x:nr,y:fr,context:He}}}}return Se})}(or,kr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(ue=>{if(this._spriteRequest=null,ue)for(let Ge in ue){this._spritesImagesIds[Ge]=[];let et=this._spritesImagesIds[Ge]?this._spritesImagesIds[Ge].filter(mt=>!(mt in ue)):[];for(let mt of et)this.imageManager.removeImage(mt),this._changedImages[mt]=!0;for(let mt in ue[Ge]){let Ft=Ge==="default"?mt:`${Ge}:${mt}`;this._spritesImagesIds[Ge].push(Ft),Ft in this.imageManager.images?this.imageManager.updateImage(Ft,ue[Ge][mt],!1):this.imageManager.addImage(Ft,ue[Ge][mt]),q&&(this._changedImages[Ft]=!0)}}}).catch(ue=>{this._spriteRequest=null,ee=ue,this.fire(new a.j(ee))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),q&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"})),Q&&Q(ee)})}_unloadSprite(){for(let w of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(w),this._changedImages[w]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}_validateLayer(w){let q=this.sourceCaches[w.source];if(!q)return;let Q=w.sourceLayer;if(!Q)return;let ee=q.getSource();(ee.type==="geojson"||ee.vectorLayerIds&&ee.vectorLayerIds.indexOf(Q)===-1)&&this.fire(new a.j(new Error(`Source layer "${Q}" does not exist on source "${ee.id}" as specified by style layer "${w.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let w in this.sourceCaches)if(!this.sourceCaches[w].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(w,q=!1){let Q=this._serializedAllLayers();if(!w||w.length===0)return Object.values(q?a.aB(Q):Q);let ee=[];for(let ue of w)if(Q[ue]){let Ge=q?a.aB(Q[ue]):Q[ue];ee.push(Ge)}return ee}_serializedAllLayers(){let w=this._serializedLayers;if(w)return w;w=this._serializedLayers={};let q=Object.keys(this._layers);for(let Q of q){let ee=this._layers[Q];ee.type!=="custom"&&(w[Q]=ee.serialize())}return w}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let w in this.sourceCaches)if(this.sourceCaches[w].hasTransition())return!0;for(let w in this._layers)if(this._layers[w].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(w){if(!this._loaded)return;let q=this._changed;if(q){let ee=Object.keys(this._updatedLayers),ue=Object.keys(this._removedLayers);(ee.length||ue.length)&&this._updateWorkerLayers(ee,ue);for(let Ge in this._updatedSources){let et=this._updatedSources[Ge];if(et==="reload")this._reloadSource(Ge);else{if(et!=="clear")throw new Error(`Invalid action ${et}`);this._clearSource(Ge)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let Ge in this._updatedPaintProps)this._layers[Ge].updateTransitions(w);this.light.updateTransitions(w),this.sky.updateTransitions(w),this._resetUpdates()}let Q={};for(let ee in this.sourceCaches){let ue=this.sourceCaches[ee];Q[ee]=ue.used,ue.used=!1}for(let ee of this._order){let ue=this._layers[ee];ue.recalculate(w,this._availableImages),!ue.isHidden(w.zoom)&&ue.source&&(this.sourceCaches[ue.source].used=!0)}for(let ee in Q){let ue=this.sourceCaches[ee];!!Q[ee]!=!!ue.used&&ue.fire(new a.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:ee}))}this.light.recalculate(w),this.sky.recalculate(w),this.z=w.zoom,q&&this.fire(new a.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let w=Object.keys(this._changedImages);if(w.length){for(let q in this.sourceCaches)this.sourceCaches[q].reloadTilesForDependencies(["icons","patterns"],w);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let w in this.sourceCaches)this.sourceCaches[w].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(w,q){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(w,!1),removedIds:q})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(w,q={}){var Q;this._checkLoaded();let ee=this.serialize();if(w=q.transformStyle?q.transformStyle(ee,w):w,((Q=q.validate)===null||Q===void 0||Q)&&Fi(this,a.u(w)))return!1;(w=a.aB(w)).layers=a.az(w.layers);let ue=a.aC(ee,w),Ge=this._getOperationsToPerform(ue);if(Ge.unimplemented.length>0)throw new Error(`Unimplemented: ${Ge.unimplemented.join(", ")}.`);if(Ge.operations.length===0)return!1;for(let et of Ge.operations)et();return this.stylesheet=w,this._serializedLayers=null,!0}_getOperationsToPerform(w){let q=[],Q=[];for(let ee of w)switch(ee.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":q.push(()=>this.addLayer.apply(this,ee.args));break;case"removeLayer":q.push(()=>this.removeLayer.apply(this,ee.args));break;case"setPaintProperty":q.push(()=>this.setPaintProperty.apply(this,ee.args));break;case"setLayoutProperty":q.push(()=>this.setLayoutProperty.apply(this,ee.args));break;case"setFilter":q.push(()=>this.setFilter.apply(this,ee.args));break;case"addSource":q.push(()=>this.addSource.apply(this,ee.args));break;case"removeSource":q.push(()=>this.removeSource.apply(this,ee.args));break;case"setLayerZoomRange":q.push(()=>this.setLayerZoomRange.apply(this,ee.args));break;case"setLight":q.push(()=>this.setLight.apply(this,ee.args));break;case"setGeoJSONSourceData":q.push(()=>this.setGeoJSONSourceData.apply(this,ee.args));break;case"setGlyphs":q.push(()=>this.setGlyphs.apply(this,ee.args));break;case"setSprite":q.push(()=>this.setSprite.apply(this,ee.args));break;case"setSky":q.push(()=>this.setSky.apply(this,ee.args));break;case"setTerrain":q.push(()=>this.map.setTerrain.apply(this,ee.args));break;case"setTransition":q.push(()=>{});break;default:Q.push(ee.command)}return{operations:q,unimplemented:Q}}addImage(w,q){if(this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" already exists.`)));this.imageManager.addImage(w,q),this._afterImageUpdated(w)}updateImage(w,q){this.imageManager.updateImage(w,q)}getImage(w){return this.imageManager.getImage(w)}removeImage(w){if(!this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" does not exist.`)));this.imageManager.removeImage(w),this._afterImageUpdated(w)}_afterImageUpdated(w){this._availableImages=this.imageManager.listImages(),this._changedImages[w]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(w,q,Q={}){if(this._checkLoaded(),this.sourceCaches[w]!==void 0)throw new Error(`Source "${w}" already exists.`);if(!q.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(q).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(q.type)>=0&&this._validate(a.u.source,`sources.${w}`,q,null,Q))return;this.map&&this.map._collectResourceTiming&&(q.collectResourceTiming=!0);let ee=this.sourceCaches[w]=new rt(w,q,this.dispatcher);ee.style=this,ee.setEventedParent(this,()=>({isSourceLoaded:ee.loaded(),source:ee.serialize(),sourceId:w})),ee.onAdd(this.map),this._changed=!0}removeSource(w){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error("There is no source with this ID");for(let Q in this._layers)if(this._layers[Q].source===w)return this.fire(new a.j(new Error(`Source "${w}" cannot be removed while layer "${Q}" is using it.`)));let q=this.sourceCaches[w];delete this.sourceCaches[w],delete this._updatedSources[w],q.fire(new a.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:w})),q.setEventedParent(null),q.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(w,q){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error(`There is no source with this ID=${w}`);let Q=this.sourceCaches[w].getSource();if(Q.type!=="geojson")throw new Error(`geojsonSource.type is ${Q.type}, which is !== 'geojson`);Q.setData(q),this._changed=!0}getSource(w){return this.sourceCaches[w]&&this.sourceCaches[w].getSource()}addLayer(w,q,Q={}){this._checkLoaded();let ee=w.id;if(this.getLayer(ee))return void this.fire(new a.j(new Error(`Layer "${ee}" already exists on this map.`)));let ue;if(w.type==="custom"){if(Fi(this,a.aD(w)))return;ue=a.aA(w)}else{if("source"in w&&typeof w.source=="object"&&(this.addSource(ee,w.source),w=a.aB(w),w=a.e(w,{source:ee})),this._validate(a.u.layer,`layers.${ee}`,w,{arrayIndex:-1},Q))return;ue=a.aA(w),this._validateLayer(ue),ue.setEventedParent(this,{layer:{id:ee}})}let Ge=q?this._order.indexOf(q):this._order.length;if(q&&Ge===-1)this.fire(new a.j(new Error(`Cannot add layer "${ee}" before non-existing layer "${q}".`)));else{if(this._order.splice(Ge,0,ee),this._layerOrderChanged=!0,this._layers[ee]=ue,this._removedLayers[ee]&&ue.source&&ue.type!=="custom"){let et=this._removedLayers[ee];delete this._removedLayers[ee],et.type!==ue.type?this._updatedSources[ue.source]="clear":(this._updatedSources[ue.source]="reload",this.sourceCaches[ue.source].pause())}this._updateLayer(ue),ue.onAdd&&ue.onAdd(this.map)}}moveLayer(w,q){if(this._checkLoaded(),this._changed=!0,!this._layers[w])return void this.fire(new a.j(new Error(`The layer '${w}' does not exist in the map's style and cannot be moved.`)));if(w===q)return;let Q=this._order.indexOf(w);this._order.splice(Q,1);let ee=q?this._order.indexOf(q):this._order.length;q&&ee===-1?this.fire(new a.j(new Error(`Cannot move layer "${w}" before non-existing layer "${q}".`))):(this._order.splice(ee,0,w),this._layerOrderChanged=!0)}removeLayer(w){this._checkLoaded();let q=this._layers[w];if(!q)return void this.fire(new a.j(new Error(`Cannot remove non-existing layer "${w}".`)));q.setEventedParent(null);let Q=this._order.indexOf(w);this._order.splice(Q,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[w]=q,delete this._layers[w],this._serializedLayers&&delete this._serializedLayers[w],delete this._updatedLayers[w],delete this._updatedPaintProps[w],q.onRemove&&q.onRemove(this.map)}getLayer(w){return this._layers[w]}getLayersOrder(){return[...this._order]}hasLayer(w){return w in this._layers}setLayerZoomRange(w,q,Q){this._checkLoaded();let ee=this.getLayer(w);ee?ee.minzoom===q&&ee.maxzoom===Q||(q!=null&&(ee.minzoom=q),Q!=null&&(ee.maxzoom=Q),this._updateLayer(ee)):this.fire(new a.j(new Error(`Cannot set the zoom range of non-existing layer "${w}".`)))}setFilter(w,q,Q={}){this._checkLoaded();let ee=this.getLayer(w);if(ee){if(!a.aE(ee.filter,q))return q==null?(ee.filter=void 0,void this._updateLayer(ee)):void(this._validate(a.u.filter,`layers.${ee.id}.filter`,q,null,Q)||(ee.filter=a.aB(q),this._updateLayer(ee)))}else this.fire(new a.j(new Error(`Cannot filter non-existing layer "${w}".`)))}getFilter(w){return a.aB(this.getLayer(w).filter)}setLayoutProperty(w,q,Q,ee={}){this._checkLoaded();let ue=this.getLayer(w);ue?a.aE(ue.getLayoutProperty(q),Q)||(ue.setLayoutProperty(q,Q,ee),this._updateLayer(ue)):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getLayoutProperty(w,q){let Q=this.getLayer(w);if(Q)return Q.getLayoutProperty(q);this.fire(new a.j(new Error(`Cannot get style of non-existing layer "${w}".`)))}setPaintProperty(w,q,Q,ee={}){this._checkLoaded();let ue=this.getLayer(w);ue?a.aE(ue.getPaintProperty(q),Q)||(ue.setPaintProperty(q,Q,ee)&&this._updateLayer(ue),this._changed=!0,this._updatedPaintProps[w]=!0,this._serializedLayers=null):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getPaintProperty(w,q){return this.getLayer(w).getPaintProperty(q)}setFeatureState(w,q){this._checkLoaded();let Q=w.source,ee=w.sourceLayer,ue=this.sourceCaches[Q];if(ue===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let Ge=ue.getSource().type;Ge==="geojson"&&ee?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Ge!=="vector"||ee?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ue.setFeatureState(ee,w.id,q)):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(w,q){this._checkLoaded();let Q=w.source,ee=this.sourceCaches[Q];if(ee===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let ue=ee.getSource().type,Ge=ue==="vector"?w.sourceLayer:void 0;ue!=="vector"||Ge?q&&typeof w.id!="string"&&typeof w.id!="number"?this.fire(new a.j(new Error("A feature id is required to remove its specific state property."))):ee.removeFeatureState(Ge,w.id,q):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(w){this._checkLoaded();let q=w.source,Q=w.sourceLayer,ee=this.sourceCaches[q];if(ee!==void 0)return ee.getSource().type!=="vector"||Q?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ee.getFeatureState(Q,w.id)):void this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new a.j(new Error(`The source '${q}' does not exist in the map's style.`)))}getTransition(){return a.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let w=a.aF(this.sourceCaches,ue=>ue.serialize()),q=this._serializeByIds(this._order,!0),Q=this.map.getTerrain()||void 0,ee=this.stylesheet;return a.aG({version:ee.version,name:ee.name,metadata:ee.metadata,light:ee.light,sky:ee.sky,center:ee.center,zoom:ee.zoom,bearing:ee.bearing,pitch:ee.pitch,sprite:ee.sprite,glyphs:ee.glyphs,transition:ee.transition,sources:w,layers:q,terrain:Q},ue=>ue!==void 0)}_updateLayer(w){this._updatedLayers[w.id]=!0,w.source&&!this._updatedSources[w.source]&&this.sourceCaches[w.source].getSource().type!=="raster"&&(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(w){let q=Ge=>this._layers[Ge].type==="fill-extrusion",Q={},ee=[];for(let Ge=this._order.length-1;Ge>=0;Ge--){let et=this._order[Ge];if(q(et)){Q[et]=Ge;for(let mt of w){let Ft=mt[et];if(Ft)for(let ir of Ft)ee.push(ir)}}}ee.sort((Ge,et)=>et.intersectionZ-Ge.intersectionZ);let ue=[];for(let Ge=this._order.length-1;Ge>=0;Ge--){let et=this._order[Ge];if(q(et))for(let mt=ee.length-1;mt>=0;mt--){let Ft=ee[mt].feature;if(Q[Ft.layer.id]{let Ar=He.featureSortOrder;if(Ar){let Rr=Ar.indexOf(nr.featureIndex);return Ar.indexOf(fr.featureIndex)-Rr}return fr.featureIndex-nr.featureIndex});for(let nr of Ht)pt.push(nr)}}for(let He in he)he[He].forEach(lt=>{let tt=lt.feature,pt=Ft[et[He].source].getFeatureState(tt.layer["source-layer"],tt.id);tt.source=tt.layer.source,tt.layer["source-layer"]&&(tt.sourceLayer=tt.layer["source-layer"]),tt.state=pt});return he}(this._layers,Ge,this.sourceCaches,w,q,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(ue)}querySourceFeatures(w,q){q&&q.filter&&this._validate(a.u.filter,"querySourceFeatures.filter",q.filter,null,q);let Q=this.sourceCaches[w];return Q?function(ee,ue){let Ge=ee.getRenderableIds().map(Ft=>ee.getTileByID(Ft)),et=[],mt={};for(let Ft=0;Ftkr.getTileByID(Vr)).sort((Vr,he)=>he.tileID.overscaledZ-Vr.tileID.overscaledZ||(Vr.tileID.isLessThan(he.tileID)?-1:1))}let or=this.crossTileSymbolIndex.addLayer(ir,mt[ir.source],w.center.lng);Ge=Ge||or}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((ue=ue||this._layerOrderChanged||Q===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(l.now(),w.zoom))&&(this.pauseablePlacement=new en(w,this.map.terrain,this._order,ue,q,Q,ee,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,mt),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(l.now()),et=!0),Ge&&this.pauseablePlacement.placement.setStale()),et||Ge)for(let Ft of this._order){let ir=this._layers[Ft];ir.type==="symbol"&&this.placement.updateLayerOpacities(ir,mt[ir.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(l.now())}_releaseSymbolFadeTiles(){for(let w in this.sourceCaches)this.sourceCaches[w].releaseSymbolFadeTiles()}getImages(w,q){return a._(this,void 0,void 0,function*(){let Q=yield this.imageManager.getImages(q.icons);this._updateTilesForChangedImages();let ee=this.sourceCaches[q.source];return ee&&ee.setDependencies(q.tileID.key,q.type,q.icons),Q})}getGlyphs(w,q){return a._(this,void 0,void 0,function*(){let Q=yield this.glyphManager.getGlyphs(q.stacks),ee=this.sourceCaches[q.source];return ee&&ee.setDependencies(q.tileID.key,q.type,[""]),Q})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(w,q={}){this._checkLoaded(),w&&this._validate(a.u.glyphs,"glyphs",w,null,q)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=w,this.glyphManager.entries={},this.glyphManager.setURL(w))}addSprite(w,q,Q={},ee){this._checkLoaded();let ue=[{id:w,url:q}],Ge=[...C(this.stylesheet.sprite),...ue];this._validate(a.u.sprite,"sprite",Ge,null,Q)||(this.stylesheet.sprite=Ge,this._loadSprite(ue,!0,ee))}removeSprite(w){this._checkLoaded();let q=C(this.stylesheet.sprite);if(q.find(Q=>Q.id===w)){if(this._spritesImagesIds[w])for(let Q of this._spritesImagesIds[w])this.imageManager.removeImage(Q),this._changedImages[Q]=!0;q.splice(q.findIndex(Q=>Q.id===w),1),this.stylesheet.sprite=q.length>0?q:void 0,delete this._spritesImagesIds[w],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}else this.fire(new a.j(new Error(`Sprite "${w}" doesn't exists on this map.`)))}getSprite(){return C(this.stylesheet.sprite)}setSprite(w,q={},Q){this._checkLoaded(),w&&this._validate(a.u.sprite,"sprite",w,null,q)||(this.stylesheet.sprite=w,w?this._loadSprite(w,!0,Q):(this._unloadSprite(),Q&&Q(null)))}}var xi=a.Y([{name:"a_pos",type:"Int16",components:2}]);let Xr={prelude:ft(`#ifdef GL_ES precision mediump float; #else #if !defined(lowp) @@ -3800,7 +3800,7 @@ uniform ${ir} ${or} u_${kr}; #endif `}),staticAttributes:Q,staticUniforms:Ge}}class tr{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(w,q,Q,ee,ue,Ge,et,mt,Ft){this.context=w;let ir=this.boundPaintVertexBuffers.length!==ee.length;for(let or=0;!ir&&or({u_matrix:le,u_texture:0,u_ele_delta:w,u_fog_matrix:q,u_fog_color:Q?Q.properties.get("fog-color"):a.aM.white,u_fog_ground_blend:Q?Q.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Q?Q.calculateFogBlendOpacity(ee):0,u_horizon_color:Q?Q.properties.get("horizon-color"):a.aM.white,u_horizon_fog_blend:Q?Q.properties.get("horizon-fog-blend"):1});function gr(le){let w=[];for(let q=0;q({u_depth:new a.aH(nr,fr.u_depth),u_terrain:new a.aH(nr,fr.u_terrain),u_terrain_dim:new a.aI(nr,fr.u_terrain_dim),u_terrain_matrix:new a.aJ(nr,fr.u_terrain_matrix),u_terrain_unpack:new a.aK(nr,fr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(nr,fr.u_terrain_exaggeration)}))(w,Ht),this.binderUniforms=Q?Q.getUniforms(w,Ht):[]}draw(w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt){let tt=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(Q),w.setStencilMode(ee),w.setColorMode(ue),w.setCullFace(Ge),mt){w.activeTexture.set(tt.TEXTURE2),tt.bindTexture(tt.TEXTURE_2D,mt.depthTexture),w.activeTexture.set(tt.TEXTURE3),tt.bindTexture(tt.TEXTURE_2D,mt.texture);for(let Ht in this.terrainUniforms)this.terrainUniforms[Ht].set(mt[Ht])}for(let Ht in this.fixedUniforms)this.fixedUniforms[Ht].set(et[Ht]);Se&&Se.setUniforms(w,this.binderUniforms,Vr,{zoom:he});let pt=0;switch(q){case tt.LINES:pt=2;break;case tt.TRIANGLES:pt=3;break;case tt.LINE_STRIP:pt=1}for(let Ht of kr.get()){let nr=Ht.vaos||(Ht.vaos={});(nr[Ft]||(nr[Ft]=new tr)).bind(w,this,ir,Se?Se.getPaintVertexBuffers():[],or,Ht.vertexOffset,qe,He,lt),tt.drawElements(q,Ht.primitiveLength*pt,tt.UNSIGNED_SHORT,Ht.primitiveOffset*pt*2)}}}function Ai(le,w,q){let Q=1/Di(q,1,w.transform.tileZoom),ee=Math.pow(2,q.tileID.overscaledZ),ue=q.tileSize*Math.pow(2,w.transform.tileZoom)/ee,Ge=ue*(q.tileID.canonical.x+q.tileID.wrap*ee),et=ue*q.tileID.canonical.y;return{u_image:0,u_texsize:q.imageAtlasTexture.size,u_scale:[Q,le.fromScale,le.toScale],u_fade:le.t,u_pixel_coord_upper:[Ge>>16,et>>16],u_pixel_coord_lower:[65535&Ge,65535&et]}}let Qi=(le,w,q,Q)=>{let ee=w.style.light,ue=ee.properties.get("position"),Ge=[ue.x,ue.y,ue.z],et=function(){var Ft=new a.A(9);return a.A!=Float32Array&&(Ft[1]=0,Ft[2]=0,Ft[3]=0,Ft[5]=0,Ft[6]=0,Ft[7]=0),Ft[0]=1,Ft[4]=1,Ft[8]=1,Ft}();ee.properties.get("anchor")==="viewport"&&function(Ft,ir){var or=Math.sin(ir),kr=Math.cos(ir);Ft[0]=kr,Ft[1]=or,Ft[2]=0,Ft[3]=-or,Ft[4]=kr,Ft[5]=0,Ft[6]=0,Ft[7]=0,Ft[8]=1}(et,-w.transform.angle),function(Ft,ir,or){var kr=ir[0],Vr=ir[1],he=ir[2];Ft[0]=kr*or[0]+Vr*or[3]+he*or[6],Ft[1]=kr*or[1]+Vr*or[4]+he*or[7],Ft[2]=kr*or[2]+Vr*or[5]+he*or[8]}(Ge,Ge,et);let mt=ee.properties.get("color");return{u_matrix:le,u_lightpos:Ge,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[mt.r,mt.g,mt.b],u_vertical_gradient:+q,u_opacity:Q}},ni=(le,w,q,Q,ee,ue,Ge)=>a.e(Qi(le,w,q,Q),Ai(ue,w,Ge),{u_height_factor:-Math.pow(2,ee.overscaledZ)/Ge.tileSize/8}),Zi=le=>({u_matrix:le}),aa=(le,w,q,Q)=>a.e(Zi(le),Ai(q,w,Q)),Mn=(le,w)=>({u_matrix:le,u_world:w}),Un=(le,w,q,Q,ee)=>a.e(aa(le,w,q,Q),{u_world:ee}),Ga=(le,w,q,Q)=>{let ee=le.transform,ue,Ge;if(Q.paint.get("circle-pitch-alignment")==="map"){let et=Di(q,1,ee.zoom);ue=!0,Ge=[et,et]}else ue=!1,Ge=ee.pixelsToGLUnits;return{u_camera_to_center_distance:ee.cameraToCenterDistance,u_scale_with_map:+(Q.paint.get("circle-pitch-scale")==="map"),u_matrix:le.translatePosMatrix(w.posMatrix,q,Q.paint.get("circle-translate"),Q.paint.get("circle-translate-anchor")),u_pitch_with_map:+ue,u_device_pixel_ratio:le.pixelRatio,u_extrude_scale:Ge}},ma=(le,w,q)=>({u_matrix:le,u_inv_matrix:w,u_camera_to_center_distance:q.cameraToCenterDistance,u_viewport_size:[q.width,q.height]}),oa=(le,w,q=1)=>({u_matrix:le,u_color:w,u_overlay:0,u_overlay_scale:q}),ka=le=>({u_matrix:le}),so=(le,w,q,Q)=>({u_matrix:le,u_extrude_scale:Di(w,1,q),u_intensity:Q}),Kr=(le,w,q,Q)=>{let ee=a.H();a.aP(ee,0,le.width,le.height,0,0,1);let ue=le.context.gl;return{u_matrix:ee,u_world:[ue.drawingBufferWidth,ue.drawingBufferHeight],u_image:q,u_color_ramp:Q,u_opacity:w.paint.get("heatmap-opacity")}};function Ia(le,w){let q=Math.pow(2,w.canonical.z),Q=w.canonical.y;return[new a.Z(0,Q/q).toLngLat().lat,new a.Z(0,(Q+1)/q).toLngLat().lat]}let Yo=(le,w,q,Q)=>{let ee=le.transform;return{u_matrix:uo(le,w,q,Q),u_ratio:1/Di(w,1,ee.zoom),u_device_pixel_ratio:le.pixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},fa=(le,w,q,Q,ee)=>a.e(Yo(le,w,q,ee),{u_image:0,u_image_height:Q}),kn=(le,w,q,Q,ee)=>{let ue=le.transform,Ge=ys(w,ue);return{u_matrix:uo(le,w,q,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/Di(w,1,ue.zoom),u_device_pixel_ratio:le.pixelRatio,u_image:0,u_scale:[Ge,Q.fromScale,Q.toScale],u_fade:Q.t,u_units_to_pixels:[1/ue.pixelsToGLUnits[0],1/ue.pixelsToGLUnits[1]]}},Ta=(le,w,q,Q,ee,ue)=>{let Ge=le.lineAtlas,et=ys(w,le.transform),mt=q.layout.get("line-cap")==="round",Ft=Ge.getDash(Q.from,mt),ir=Ge.getDash(Q.to,mt),or=Ft.width*ee.fromScale,kr=ir.width*ee.toScale;return a.e(Yo(le,w,q,ue),{u_patternscale_a:[et/or,-Ft.height/2],u_patternscale_b:[et/kr,-ir.height/2],u_sdfgamma:Ge.width/(256*Math.min(or,kr)*le.pixelRatio)/2,u_image:0,u_tex_y_a:Ft.y,u_tex_y_b:ir.y,u_mix:ee.t})};function ys(le,w){return 1/Di(le,1,w.tileZoom)}function uo(le,w,q,Q){return le.translatePosMatrix(Q?Q.posMatrix:w.tileID.posMatrix,w,q.paint.get("line-translate"),q.paint.get("line-translate-anchor"))}let ls=(le,w,q,Q,ee)=>{return{u_matrix:le,u_tl_parent:w,u_scale_parent:q,u_buffer_scale:1,u_fade_t:Q.mix,u_opacity:Q.opacity*ee.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ee.paint.get("raster-brightness-min"),u_brightness_high:ee.paint.get("raster-brightness-max"),u_saturation_factor:(Ge=ee.paint.get("raster-saturation"),Ge>0?1-1/(1.001-Ge):-Ge),u_contrast_factor:(ue=ee.paint.get("raster-contrast"),ue>0?1/(1-ue):1+ue),u_spin_weights:$a(ee.paint.get("raster-hue-rotate"))};var ue,Ge};function $a(le){le*=Math.PI/180;let w=Math.sin(le),q=Math.cos(le);return[(2*q+1)/3,(-Math.sqrt(3)*w-q+1)/3,(Math.sqrt(3)*w-q+1)/3]}let fo=(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr)=>{let he=Ge.transform;return{u_is_size_zoom_constant:+(le==="constant"||le==="source"),u_is_size_feature_constant:+(le==="constant"||le==="camera"),u_size_t:w?w.uSizeT:0,u_size:w?w.uSize:0,u_camera_to_center_distance:he.cameraToCenterDistance,u_pitch:he.pitch/360*2*Math.PI,u_rotate_symbol:+q,u_aspect_ratio:he.width/he.height,u_fade_change:Ge.options.fadeDuration?Ge.symbolFadeChange:1,u_matrix:et,u_label_plane_matrix:mt,u_coord_matrix:Ft,u_is_text:+or,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:ue,u_texsize:kr,u_texture:0,u_translation:ir,u_pitched_scale:Vr}},mn=(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he)=>{let Se=Ge.transform;return a.e(fo(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,he),{u_gamma_scale:Q?Math.cos(Se._pitch)*Se.cameraToCenterDistance:1,u_device_pixel_ratio:Ge.pixelRatio,u_is_halo:+Vr})},ra=(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr)=>a.e(mn(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,!0,or,!0,Vr),{u_texsize_icon:kr,u_texture_icon:1}),wa=(le,w,q)=>({u_matrix:le,u_opacity:w,u_color:q}),ws=(le,w,q,Q,ee,ue)=>a.e(function(Ge,et,mt,Ft){let ir=mt.imageManager.getPattern(Ge.from.toString()),or=mt.imageManager.getPattern(Ge.to.toString()),{width:kr,height:Vr}=mt.imageManager.getPixelSize(),he=Math.pow(2,Ft.tileID.overscaledZ),Se=Ft.tileSize*Math.pow(2,mt.transform.tileZoom)/he,qe=Se*(Ft.tileID.canonical.x+Ft.tileID.wrap*he),He=Se*Ft.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ir.tl,u_pattern_br_a:ir.br,u_pattern_tl_b:or.tl,u_pattern_br_b:or.br,u_texsize:[kr,Vr],u_mix:et.t,u_pattern_size_a:ir.displaySize,u_pattern_size_b:or.displaySize,u_scale_a:et.fromScale,u_scale_b:et.toScale,u_tile_units_to_pixels:1/Di(Ft,1,mt.transform.tileZoom),u_pixel_coord_upper:[qe>>16,He>>16],u_pixel_coord_lower:[65535&qe,65535&He]}}(Q,ue,q,ee),{u_matrix:le,u_opacity:w}),Co={fillExtrusion:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_lightpos:new a.aN(le,w.u_lightpos),u_lightintensity:new a.aI(le,w.u_lightintensity),u_lightcolor:new a.aN(le,w.u_lightcolor),u_vertical_gradient:new a.aI(le,w.u_vertical_gradient),u_opacity:new a.aI(le,w.u_opacity)}),fillExtrusionPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_lightpos:new a.aN(le,w.u_lightpos),u_lightintensity:new a.aI(le,w.u_lightintensity),u_lightcolor:new a.aN(le,w.u_lightcolor),u_vertical_gradient:new a.aI(le,w.u_vertical_gradient),u_height_factor:new a.aI(le,w.u_height_factor),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade),u_opacity:new a.aI(le,w.u_opacity)}),fill:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix)}),fillPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),fillOutline:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world)}),fillOutlinePattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),circle:(le,w)=>({u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(le,w.u_scale_with_map),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_extrude_scale:new a.aO(le,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_matrix:new a.aJ(le,w.u_matrix)}),collisionBox:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_pixel_extrude_scale:new a.aO(le,w.u_pixel_extrude_scale)}),collisionCircle:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_inv_matrix:new a.aJ(le,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_viewport_size:new a.aO(le,w.u_viewport_size)}),debug:(le,w)=>({u_color:new a.aL(le,w.u_color),u_matrix:new a.aJ(le,w.u_matrix),u_overlay:new a.aH(le,w.u_overlay),u_overlay_scale:new a.aI(le,w.u_overlay_scale)}),clippingMask:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix)}),heatmap:(le,w)=>({u_extrude_scale:new a.aI(le,w.u_extrude_scale),u_intensity:new a.aI(le,w.u_intensity),u_matrix:new a.aJ(le,w.u_matrix)}),heatmapTexture:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world),u_image:new a.aH(le,w.u_image),u_color_ramp:new a.aH(le,w.u_color_ramp),u_opacity:new a.aI(le,w.u_opacity)}),hillshade:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_latrange:new a.aO(le,w.u_latrange),u_light:new a.aO(le,w.u_light),u_shadow:new a.aL(le,w.u_shadow),u_highlight:new a.aL(le,w.u_highlight),u_accent:new a.aL(le,w.u_accent)}),hillshadePrepare:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_dimension:new a.aO(le,w.u_dimension),u_zoom:new a.aI(le,w.u_zoom),u_unpack:new a.aK(le,w.u_unpack)}),line:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels)}),lineGradient:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_image:new a.aH(le,w.u_image),u_image_height:new a.aI(le,w.u_image_height)}),linePattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texsize:new a.aO(le,w.u_texsize),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_image:new a.aH(le,w.u_image),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),lineSDF:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_patternscale_a:new a.aO(le,w.u_patternscale_a),u_patternscale_b:new a.aO(le,w.u_patternscale_b),u_sdfgamma:new a.aI(le,w.u_sdfgamma),u_image:new a.aH(le,w.u_image),u_tex_y_a:new a.aI(le,w.u_tex_y_a),u_tex_y_b:new a.aI(le,w.u_tex_y_b),u_mix:new a.aI(le,w.u_mix)}),raster:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_tl_parent:new a.aO(le,w.u_tl_parent),u_scale_parent:new a.aI(le,w.u_scale_parent),u_buffer_scale:new a.aI(le,w.u_buffer_scale),u_fade_t:new a.aI(le,w.u_fade_t),u_opacity:new a.aI(le,w.u_opacity),u_image0:new a.aH(le,w.u_image0),u_image1:new a.aH(le,w.u_image1),u_brightness_low:new a.aI(le,w.u_brightness_low),u_brightness_high:new a.aI(le,w.u_brightness_high),u_saturation_factor:new a.aI(le,w.u_saturation_factor),u_contrast_factor:new a.aI(le,w.u_contrast_factor),u_spin_weights:new a.aN(le,w.u_spin_weights)}),symbolIcon:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texture:new a.aH(le,w.u_texture),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),symbolSDF:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texture:new a.aH(le,w.u_texture),u_gamma_scale:new a.aI(le,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_is_halo:new a.aH(le,w.u_is_halo),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),symbolTextAndIcon:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texsize_icon:new a.aO(le,w.u_texsize_icon),u_texture:new a.aH(le,w.u_texture),u_texture_icon:new a.aH(le,w.u_texture_icon),u_gamma_scale:new a.aI(le,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_is_halo:new a.aH(le,w.u_is_halo),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),background:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_opacity:new a.aI(le,w.u_opacity),u_color:new a.aL(le,w.u_color)}),backgroundPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_opacity:new a.aI(le,w.u_opacity),u_image:new a.aH(le,w.u_image),u_pattern_tl_a:new a.aO(le,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(le,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(le,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(le,w.u_pattern_br_b),u_texsize:new a.aO(le,w.u_texsize),u_mix:new a.aI(le,w.u_mix),u_pattern_size_a:new a.aO(le,w.u_pattern_size_a),u_pattern_size_b:new a.aO(le,w.u_pattern_size_b),u_scale_a:new a.aI(le,w.u_scale_a),u_scale_b:new a.aI(le,w.u_scale_b),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(le,w.u_tile_units_to_pixels)}),terrain:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texture:new a.aH(le,w.u_texture),u_ele_delta:new a.aI(le,w.u_ele_delta),u_fog_matrix:new a.aJ(le,w.u_fog_matrix),u_fog_color:new a.aL(le,w.u_fog_color),u_fog_ground_blend:new a.aI(le,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(le,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(le,w.u_horizon_color),u_horizon_fog_blend:new a.aI(le,w.u_horizon_fog_blend)}),terrainDepth:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ele_delta:new a.aI(le,w.u_ele_delta)}),terrainCoords:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texture:new a.aH(le,w.u_texture),u_terrain_coords_id:new a.aI(le,w.u_terrain_coords_id),u_ele_delta:new a.aI(le,w.u_ele_delta)}),sky:(le,w)=>({u_sky_color:new a.aL(le,w.u_sky_color),u_horizon_color:new a.aL(le,w.u_horizon_color),u_horizon:new a.aI(le,w.u_horizon),u_sky_horizon_blend:new a.aI(le,w.u_sky_horizon_blend)})};class Po{constructor(w,q,Q){this.context=w;let ee=w.gl;this.buffer=ee.createBuffer(),this.dynamicDraw=!!Q,this.context.unbindVAO(),w.bindElementBuffer.set(this.buffer),ee.bufferData(ee.ELEMENT_ARRAY_BUFFER,q.arrayBuffer,this.dynamicDraw?ee.DYNAMIC_DRAW:ee.STATIC_DRAW),this.dynamicDraw||delete q.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(w){let q=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),q.bufferSubData(q.ELEMENT_ARRAY_BUFFER,0,w.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let ji={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class gn{constructor(w,q,Q,ee){this.length=q.length,this.attributes=Q,this.itemSize=q.bytesPerElement,this.dynamicDraw=ee,this.context=w;let ue=w.gl;this.buffer=ue.createBuffer(),w.bindVertexBuffer.set(this.buffer),ue.bufferData(ue.ARRAY_BUFFER,q.arrayBuffer,this.dynamicDraw?ue.DYNAMIC_DRAW:ue.STATIC_DRAW),this.dynamicDraw||delete q.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(w){if(w.length!==this.length)throw new Error(`Length of new data is ${w.length}, which doesn't match current length of ${this.length}`);let q=this.context.gl;this.bind(),q.bufferSubData(q.ARRAY_BUFFER,0,w.arrayBuffer)}enableAttributes(w,q){for(let Q=0;Q0){let nr=a.H();a.aQ(nr,tt.placementInvProjMatrix,le.transform.glCoordMatrix),a.aQ(nr,nr,tt.placementViewportMatrix),mt.push({circleArray:Ht,circleOffset:ir,transform:lt.posMatrix,invTransform:nr,coord:lt}),Ft+=Ht.length/4,ir=Ft}pt&&et.draw(ue,Ge.LINES,sa.disabled,Na.disabled,le.colorModeForRenderPass(),tn.disabled,{u_matrix:lt.posMatrix,u_pixel_extrude_scale:[1/(or=le.transform).width,1/or.height]},le.style.map.terrain&&le.style.map.terrain.getTerrainData(lt),q.id,pt.layoutVertexBuffer,pt.indexBuffer,pt.segments,null,le.transform.zoom,null,null,pt.collisionVertexBuffer)}var or;if(!ee||!mt.length)return;let kr=le.useProgram("collisionCircle"),Vr=new a.aR;Vr.resize(4*Ft),Vr._trim();let he=0;for(let He of mt)for(let lt=0;lt=0&&(He[tt.associatedIconIndex]={shiftedAnchor:Fo,angle:vl})}else Dr(tt.numGlyphs,Se)}if(Ft){qe.clear();let lt=le.icon.placedSymbolArray;for(let tt=0;ttle.style.map.terrain.getElevation(si,_t,cr):null,jt=q.layout.get("text-rotation-alignment")==="map";Re(hn,si.posMatrix,le,ee,Qu,ju,He,Ft,jt,Se,si.toUnwrapped(),he.width,he.height,Xu,ot)}let ef=si.posMatrix,tf=ee&&Ar||xf,Z=lt||tf?yo:Qu,se=Ju,ze=Ua&&q.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Xe;Xe=Ua?hn.iconsInText?ra(Fo.kind,ml,tt,He,lt,tf,le,ef,Z,se,Xu,Sl,Pu,ri):mn(Fo.kind,ml,tt,He,lt,tf,le,ef,Z,se,Xu,ee,Sl,!0,ri):fo(Fo.kind,ml,tt,He,lt,tf,le,ef,Z,se,Xu,ee,Sl,ri);let Qe={program:Us,buffers:Zn,uniformValues:Xe,atlasTexture:Yl,atlasTextureIcon:iu,atlasInterpolation:ql,atlasInterpolationIcon:ou,isSDF:Ua,hasHalo:ze};if(Ht&&hn.canOverlap){nr=!0;let ot=Zn.segments.get();for(let jt of ot)Rr.push({segments:new a.a0([jt]),sortKey:jt.sortKey,state:Qe,terrainData:au})}else Rr.push({segments:Zn.segments,sortKey:0,state:Qe,terrainData:au})}nr&&Rr.sort((si,Mi)=>si.sortKey-Mi.sortKey);for(let si of Rr){let Mi=si.state;if(kr.activeTexture.set(Vr.TEXTURE0),Mi.atlasTexture.bind(Mi.atlasInterpolation,Vr.CLAMP_TO_EDGE),Mi.atlasTextureIcon&&(kr.activeTexture.set(Vr.TEXTURE1),Mi.atlasTextureIcon&&Mi.atlasTextureIcon.bind(Mi.atlasInterpolationIcon,Vr.CLAMP_TO_EDGE)),Mi.isSDF){let hn=Mi.uniformValues;Mi.hasHalo&&(hn.u_is_halo=1,Ca(Mi.buffers,si.segments,q,le,Mi.program,fr,ir,or,hn,si.terrainData)),hn.u_is_halo=0}Ca(Mi.buffers,si.segments,q,le,Mi.program,fr,ir,or,Mi.uniformValues,si.terrainData)}}function Ca(le,w,q,Q,ee,ue,Ge,et,mt,Ft){let ir=Q.context;ee.draw(ir,ir.gl.TRIANGLES,ue,Ge,et,tn.disabled,mt,Ft,q.id,le.layoutVertexBuffer,le.indexBuffer,w,q.paint,Q.transform.zoom,le.programConfigurations.get(q.id),le.dynamicLayoutVertexBuffer,le.opacityVertexBuffer)}function Es(le,w,q,Q){let ee=le.context,ue=ee.gl,Ge=Na.disabled,et=new lo([ue.ONE,ue.ONE],a.aM.transparent,[!0,!0,!0,!0]),mt=w.getBucket(q);if(!mt)return;let Ft=Q.key,ir=q.heatmapFbos.get(Ft);ir||(ir=Ho(ee,w.tileSize,w.tileSize),q.heatmapFbos.set(Ft,ir)),ee.bindFramebuffer.set(ir.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let or=mt.programConfigurations.get(q.id),kr=le.useProgram("heatmap",or),Vr=le.style.map.terrain.getTerrainData(Q);kr.draw(ee,ue.TRIANGLES,sa.disabled,Ge,et,tn.disabled,so(Q.posMatrix,w,le.transform.zoom,q.paint.get("heatmap-intensity")),Vr,q.id,mt.layoutVertexBuffer,mt.indexBuffer,mt.segments,q.paint,le.transform.zoom,or)}function Ts(le,w,q){let Q=le.context,ee=Q.gl;Q.setColorMode(le.colorModeForRenderPass());let ue=Wa(Q,w),Ge=q.key,et=w.heatmapFbos.get(Ge);et&&(Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,et.colorAttachment.get()),Q.activeTexture.set(ee.TEXTURE1),ue.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),le.useProgram("heatmapTexture").draw(Q,ee.TRIANGLES,sa.disabled,Na.disabled,le.colorModeForRenderPass(),tn.disabled,Kr(le,w,0,1),null,w.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments,w.paint,le.transform.zoom),et.destroy(),w.heatmapFbos.delete(Ge))}function Ho(le,w,q){var Q,ee;let ue=le.gl,Ge=ue.createTexture();ue.bindTexture(ue.TEXTURE_2D,Ge),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_S,ue.CLAMP_TO_EDGE),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_T,ue.CLAMP_TO_EDGE),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MIN_FILTER,ue.LINEAR),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MAG_FILTER,ue.LINEAR);let et=(Q=le.HALF_FLOAT)!==null&&Q!==void 0?Q:ue.UNSIGNED_BYTE,mt=(ee=le.RGBA16F)!==null&&ee!==void 0?ee:ue.RGBA;ue.texImage2D(ue.TEXTURE_2D,0,mt,w,q,0,ue.RGBA,et,null);let Ft=le.createFramebuffer(w,q,!1,!1);return Ft.colorAttachment.set(Ge),Ft}function Wa(le,w){return w.colorRampTexture||(w.colorRampTexture=new m(le,w.colorRamp,le.gl.RGBA)),w.colorRampTexture}function To(le,w,q,Q,ee){if(!q||!Q||!Q.imageAtlas)return;let ue=Q.imageAtlas.patternPositions,Ge=ue[q.to.toString()],et=ue[q.from.toString()];if(!Ge&&et&&(Ge=et),!et&&Ge&&(et=Ge),!Ge||!et){let mt=ee.getPaintProperty(w);Ge=ue[mt],et=ue[mt]}Ge&&et&&le.setConstantPatternPositions(Ge,et)}function ts(le,w,q,Q,ee,ue,Ge){let et=le.context.gl,mt="fill-pattern",Ft=q.paint.get(mt),ir=Ft&&Ft.constantOr(1),or=q.getCrossfadeParameters(),kr,Vr,he,Se,qe;Ge?(Vr=ir&&!q.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",kr=et.LINES):(Vr=ir?"fillPattern":"fill",kr=et.TRIANGLES);let He=Ft.constantOr(null);for(let lt of Q){let tt=w.getTile(lt);if(ir&&!tt.patternsLoaded())continue;let pt=tt.getBucket(q);if(!pt)continue;let Ht=pt.programConfigurations.get(q.id),nr=le.useProgram(Vr,Ht),fr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(lt);ir&&(le.context.activeTexture.set(et.TEXTURE0),tt.imageAtlasTexture.bind(et.LINEAR,et.CLAMP_TO_EDGE),Ht.updatePaintBuffers(or)),To(Ht,mt,He,tt,q);let Ar=fr?lt:null,Rr=le.translatePosMatrix(Ar?Ar.posMatrix:lt.posMatrix,tt,q.paint.get("fill-translate"),q.paint.get("fill-translate-anchor"));if(Ge){Se=pt.indexBuffer2,qe=pt.segments2;let ri=[et.drawingBufferWidth,et.drawingBufferHeight];he=Vr==="fillOutlinePattern"&&ir?Un(Rr,le,or,tt,ri):Mn(Rr,ri)}else Se=pt.indexBuffer,qe=pt.segments,he=ir?aa(Rr,le,or,tt):Zi(Rr);nr.draw(le.context,kr,ee,le.stencilModeForClipping(lt),ue,tn.disabled,he,fr,q.id,pt.layoutVertexBuffer,Se,qe,q.paint,le.transform.zoom,Ht)}}function Wo(le,w,q,Q,ee,ue,Ge){let et=le.context,mt=et.gl,Ft="fill-extrusion-pattern",ir=q.paint.get(Ft),or=ir.constantOr(1),kr=q.getCrossfadeParameters(),Vr=q.paint.get("fill-extrusion-opacity"),he=ir.constantOr(null);for(let Se of Q){let qe=w.getTile(Se),He=qe.getBucket(q);if(!He)continue;let lt=le.style.map.terrain&&le.style.map.terrain.getTerrainData(Se),tt=He.programConfigurations.get(q.id),pt=le.useProgram(or?"fillExtrusionPattern":"fillExtrusion",tt);or&&(le.context.activeTexture.set(mt.TEXTURE0),qe.imageAtlasTexture.bind(mt.LINEAR,mt.CLAMP_TO_EDGE),tt.updatePaintBuffers(kr)),To(tt,Ft,he,qe,q);let Ht=le.translatePosMatrix(Se.posMatrix,qe,q.paint.get("fill-extrusion-translate"),q.paint.get("fill-extrusion-translate-anchor")),nr=q.paint.get("fill-extrusion-vertical-gradient"),fr=or?ni(Ht,le,nr,Vr,Se,kr,qe):Qi(Ht,le,nr,Vr);pt.draw(et,et.gl.TRIANGLES,ee,ue,Ge,tn.backCCW,fr,lt,q.id,He.layoutVertexBuffer,He.indexBuffer,He.segments,q.paint,le.transform.zoom,tt,le.style.map.terrain&&He.centroidVertexBuffer)}}function qa(le,w,q,Q,ee,ue,Ge){let et=le.context,mt=et.gl,Ft=q.fbo;if(!Ft)return;let ir=le.useProgram("hillshade"),or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(w);et.activeTexture.set(mt.TEXTURE0),mt.bindTexture(mt.TEXTURE_2D,Ft.colorAttachment.get()),ir.draw(et,mt.TRIANGLES,ee,ue,Ge,tn.disabled,((kr,Vr,he,Se)=>{let qe=he.paint.get("hillshade-shadow-color"),He=he.paint.get("hillshade-highlight-color"),lt=he.paint.get("hillshade-accent-color"),tt=he.paint.get("hillshade-illumination-direction")*(Math.PI/180);he.paint.get("hillshade-illumination-anchor")==="viewport"&&(tt-=kr.transform.angle);let pt=!kr.options.moving;return{u_matrix:Se?Se.posMatrix:kr.transform.calculatePosMatrix(Vr.tileID.toUnwrapped(),pt),u_image:0,u_latrange:Ia(0,Vr.tileID),u_light:[he.paint.get("hillshade-exaggeration"),tt],u_shadow:qe,u_highlight:He,u_accent:lt}})(le,q,Q,or?w:null),or,Q.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments)}function ln(le,w,q,Q,ee,ue){let Ge=le.context,et=Ge.gl,mt=w.dem;if(mt&&mt.data){let Ft=mt.dim,ir=mt.stride,or=mt.getPixels();if(Ge.activeTexture.set(et.TEXTURE1),Ge.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||le.getTileTexture(ir),w.demTexture){let Vr=w.demTexture;Vr.update(or,{premultiply:!1}),Vr.bind(et.NEAREST,et.CLAMP_TO_EDGE)}else w.demTexture=new m(Ge,or,et.RGBA,{premultiply:!1}),w.demTexture.bind(et.NEAREST,et.CLAMP_TO_EDGE);Ge.activeTexture.set(et.TEXTURE0);let kr=w.fbo;if(!kr){let Vr=new m(Ge,{width:Ft,height:Ft,data:null},et.RGBA);Vr.bind(et.LINEAR,et.CLAMP_TO_EDGE),kr=w.fbo=Ge.createFramebuffer(Ft,Ft,!0,!1),kr.colorAttachment.set(Vr.texture)}Ge.bindFramebuffer.set(kr.framebuffer),Ge.viewport.set([0,0,Ft,Ft]),le.useProgram("hillshadePrepare").draw(Ge,et.TRIANGLES,Q,ee,ue,tn.disabled,((Vr,he)=>{let Se=he.stride,qe=a.H();return a.aP(qe,0,a.X,-a.X,0,0,1),a.J(qe,qe,[0,-a.X,0]),{u_matrix:qe,u_image:1,u_dimension:[Se,Se],u_zoom:Vr.overscaledZ,u_unpack:he.getUnpackVector()}})(w.tileID,mt),null,q.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Bo(le,w,q,Q,ee,ue){let Ge=Q.paint.get("raster-fade-duration");if(!ue&&Ge>0){let et=l.now(),mt=(et-le.timeAdded)/Ge,Ft=w?(et-w.timeAdded)/Ge:-1,ir=q.getSource(),or=ee.coveringZoomLevel({tileSize:ir.tileSize,roundZoom:ir.roundZoom}),kr=!w||Math.abs(w.tileID.overscaledZ-or)>Math.abs(le.tileID.overscaledZ-or),Vr=kr&&le.refreshedUponExpiration?1:a.ac(kr?mt:1-Ft,0,1);return le.refreshedUponExpiration&&mt>=1&&(le.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Vr}:{opacity:Vr,mix:0}}return{opacity:1,mix:0}}let ko=new a.aM(1,0,0,1),oo=new a.aM(0,1,0,1),za=new a.aM(0,0,1,1),ea=new a.aM(1,0,1,1),rs=new a.aM(0,1,1,1);function $s(le,w,q,Q){Ds(le,0,w+q/2,le.transform.width,q,Q)}function us(le,w,q,Q){Ds(le,w-q/2,0,q,le.transform.height,Q)}function Ds(le,w,q,Q,ee,ue){let Ge=le.context,et=Ge.gl;et.enable(et.SCISSOR_TEST),et.scissor(w*le.pixelRatio,q*le.pixelRatio,Q*le.pixelRatio,ee*le.pixelRatio),Ge.clear({color:ue}),et.disable(et.SCISSOR_TEST)}function fl(le,w,q){let Q=le.context,ee=Q.gl,ue=q.posMatrix,Ge=le.useProgram("debug"),et=sa.disabled,mt=Na.disabled,Ft=le.colorModeForRenderPass(),ir="$debug",or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(q);Q.activeTexture.set(ee.TEXTURE0);let kr=w.getTileByID(q.key).latestRawTileData,Vr=Math.floor((kr&&kr.byteLength||0)/1024),he=w.getTile(q).tileSize,Se=512/Math.min(he,512)*(q.overscaledZ/le.transform.zoom)*.5,qe=q.canonical.toString();q.overscaledZ!==q.canonical.z&&(qe+=` => ${q.overscaledZ}`),function(He,lt){He.initDebugOverlayCanvas();let tt=He.debugOverlayCanvas,pt=He.context.gl,Ht=He.debugOverlayCanvas.getContext("2d");Ht.clearRect(0,0,tt.width,tt.height),Ht.shadowColor="white",Ht.shadowBlur=2,Ht.lineWidth=1.5,Ht.strokeStyle="white",Ht.textBaseline="top",Ht.font="bold 36px Open Sans, sans-serif",Ht.fillText(lt,5,5),Ht.strokeText(lt,5,5),He.debugOverlayTexture.update(tt),He.debugOverlayTexture.bind(pt.LINEAR,pt.CLAMP_TO_EDGE)}(le,`${qe} ${Vr}kB`),Ge.draw(Q,ee.TRIANGLES,et,mt,lo.alphaBlended,tn.disabled,oa(ue,a.aM.transparent,Se),null,ir,le.debugBuffer,le.quadTriangleIndexBuffer,le.debugSegments),Ge.draw(Q,ee.LINE_STRIP,et,mt,Ft,tn.disabled,oa(ue,a.aM.red),or,ir,le.debugBuffer,le.tileBorderIndexBuffer,le.debugSegments)}function as(le,w,q){let Q=le.context,ee=Q.gl,ue=le.colorModeForRenderPass(),Ge=new sa(ee.LEQUAL,sa.ReadWrite,le.depthRangeFor3D),et=le.useProgram("terrain"),mt=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,le.width,le.height]);for(let Ft of q){let ir=le.renderToTexture.getTexture(Ft),or=w.getTerrainData(Ft.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,ir.texture);let kr=le.transform.calculatePosMatrix(Ft.tileID.toUnwrapped()),Vr=w.getMeshFrameDelta(le.transform.zoom),he=le.transform.calculateFogMatrix(Ft.tileID.toUnwrapped()),Se=pr(kr,Vr,he,le.style.sky,le.transform.pitch);et.draw(Q,ee.TRIANGLES,Ge,Na.disabled,ue,tn.backCCW,Se,or,"terrain",mt.vertexBuffer,mt.indexBuffer,mt.segments)}}class Ma{constructor(w,q,Q){this.vertexBuffer=w,this.indexBuffer=q,this.segments=Q}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class Qs{constructor(w,q){this.context=new eo(w),this.transform=q,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:a.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=rt.maxUnderzooming+rt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new rn}resize(w,q,Q){if(this.width=Math.floor(w*Q),this.height=Math.floor(q*Q),this.pixelRatio=Q,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let ee of this.style._order)this.style._layers[ee].resize()}setup(){let w=this.context,q=new a.aX;q.emplaceBack(0,0),q.emplaceBack(a.X,0),q.emplaceBack(0,a.X),q.emplaceBack(a.X,a.X),this.tileExtentBuffer=w.createVertexBuffer(q,xi.members),this.tileExtentSegments=a.a0.simpleSegment(0,0,4,2);let Q=new a.aX;Q.emplaceBack(0,0),Q.emplaceBack(a.X,0),Q.emplaceBack(0,a.X),Q.emplaceBack(a.X,a.X),this.debugBuffer=w.createVertexBuffer(Q,xi.members),this.debugSegments=a.a0.simpleSegment(0,0,4,5);let ee=new a.$;ee.emplaceBack(0,0,0,0),ee.emplaceBack(a.X,0,a.X,0),ee.emplaceBack(0,a.X,0,a.X),ee.emplaceBack(a.X,a.X,a.X,a.X),this.rasterBoundsBuffer=w.createVertexBuffer(ee,Ke.members),this.rasterBoundsSegments=a.a0.simpleSegment(0,0,4,2);let ue=new a.aX;ue.emplaceBack(0,0),ue.emplaceBack(1,0),ue.emplaceBack(0,1),ue.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(ue,xi.members),this.viewportSegments=a.a0.simpleSegment(0,0,4,2);let Ge=new a.aZ;Ge.emplaceBack(0),Ge.emplaceBack(1),Ge.emplaceBack(3),Ge.emplaceBack(2),Ge.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(Ge);let et=new a.aY;et.emplaceBack(0,1,2),et.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(et);let mt=this.context.gl;this.stencilClearMode=new Na({func:mt.ALWAYS,mask:0},0,255,mt.ZERO,mt.ZERO,mt.ZERO)}clearStencil(){let w=this.context,q=w.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let Q=a.H();a.aP(Q,0,this.width,this.height,0,0,1),a.K(Q,Q,[q.drawingBufferWidth,q.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(w,q.TRIANGLES,sa.disabled,this.stencilClearMode,lo.disabled,tn.disabled,ka(Q),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(w,q){if(this.currentStencilSource===w.source||!w.isTileClipped()||!q||!q.length)return;this.currentStencilSource=w.source;let Q=this.context,ee=Q.gl;this.nextStencilID+q.length>256&&this.clearStencil(),Q.setColorMode(lo.disabled),Q.setDepthMode(sa.disabled);let ue=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let Ge of q){let et=this._tileClippingMaskIDs[Ge.key]=this.nextStencilID++,mt=this.style.map.terrain&&this.style.map.terrain.getTerrainData(Ge);ue.draw(Q,ee.TRIANGLES,sa.disabled,new Na({func:ee.ALWAYS,mask:0},et,255,ee.KEEP,ee.KEEP,ee.REPLACE),lo.disabled,tn.disabled,ka(Ge.posMatrix),mt,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let w=this.nextStencilID++,q=this.context.gl;return new Na({func:q.NOTEQUAL,mask:255},w,255,q.KEEP,q.KEEP,q.REPLACE)}stencilModeForClipping(w){let q=this.context.gl;return new Na({func:q.EQUAL,mask:255},this._tileClippingMaskIDs[w.key],0,q.KEEP,q.KEEP,q.REPLACE)}stencilConfigForOverlap(w){let q=this.context.gl,Q=w.sort((Ge,et)=>et.overscaledZ-Ge.overscaledZ),ee=Q[Q.length-1].overscaledZ,ue=Q[0].overscaledZ-ee+1;if(ue>1){this.currentStencilSource=void 0,this.nextStencilID+ue>256&&this.clearStencil();let Ge={};for(let et=0;et({u_sky_color:He.properties.get("sky-color"),u_horizon_color:He.properties.get("horizon-color"),u_horizon:(lt.height/2+lt.getHorizon())*tt,u_sky_horizon_blend:He.properties.get("sky-horizon-blend")*lt.height/2*tt}))(Ft,mt.style.map.transform,mt.pixelRatio),Vr=new sa(or.LEQUAL,sa.ReadWrite,[0,1]),he=Na.disabled,Se=mt.colorModeForRenderPass(),qe=mt.useProgram("sky");if(!Ft.mesh){let He=new a.aX;He.emplaceBack(-1,-1),He.emplaceBack(1,-1),He.emplaceBack(1,1),He.emplaceBack(-1,1);let lt=new a.aY;lt.emplaceBack(0,1,2),lt.emplaceBack(0,2,3),Ft.mesh=new Ma(ir.createVertexBuffer(He,xi.members),ir.createIndexBuffer(lt),a.a0.simpleSegment(0,0,He.length,lt.length))}qe.draw(ir,or.TRIANGLES,Vr,he,Se,tn.disabled,kr,void 0,"sky",Ft.mesh.vertexBuffer,Ft.mesh.indexBuffer,Ft.mesh.segments)}(this,this.style.sky),this._showOverdrawInspector=q.showOverdrawInspector,this.depthRangeFor3D=[0,1-(w._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=Q.length-1;this.currentLayer>=0;this.currentLayer--){let mt=this.style._layers[Q[this.currentLayer]],Ft=ee[mt.source],ir=ue[mt.source];this._renderTileClippingMasks(mt,ir),this.renderLayer(this,Ft,mt,ir)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerqe.source&&!qe.isHidden(ir)?[Ft.sourceCaches[qe.source]]:[]),Vr=kr.filter(qe=>qe.getSource().type==="vector"),he=kr.filter(qe=>qe.getSource().type!=="vector"),Se=qe=>{(!or||or.getSource().maxzoomSe(qe)),or||he.forEach(qe=>Se(qe)),or}(this.style,this.transform.zoom);mt&&function(Ft,ir,or){for(let kr=0;kr0),ee&&(a.b0(q,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(ue,Ge){let et=ue.context,mt=et.gl,Ft=lo.unblended,ir=new sa(mt.LEQUAL,sa.ReadWrite,[0,1]),or=Ge.getTerrainMesh(),kr=Ge.sourceCache.getRenderableTiles(),Vr=ue.useProgram("terrainDepth");et.bindFramebuffer.set(Ge.getFramebuffer("depth").framebuffer),et.viewport.set([0,0,ue.width/devicePixelRatio,ue.height/devicePixelRatio]),et.clear({color:a.aM.transparent,depth:1});for(let he of kr){let Se=Ge.getTerrainData(he.tileID),qe={u_matrix:ue.transform.calculatePosMatrix(he.tileID.toUnwrapped()),u_ele_delta:Ge.getMeshFrameDelta(ue.transform.zoom)};Vr.draw(et,mt.TRIANGLES,ir,Na.disabled,Ft,tn.backCCW,qe,Se,"terrain",or.vertexBuffer,or.indexBuffer,or.segments)}et.bindFramebuffer.set(null),et.viewport.set([0,0,ue.width,ue.height])}(this,this.style.map.terrain),function(ue,Ge){let et=ue.context,mt=et.gl,Ft=lo.unblended,ir=new sa(mt.LEQUAL,sa.ReadWrite,[0,1]),or=Ge.getTerrainMesh(),kr=Ge.getCoordsTexture(),Vr=Ge.sourceCache.getRenderableTiles(),he=ue.useProgram("terrainCoords");et.bindFramebuffer.set(Ge.getFramebuffer("coords").framebuffer),et.viewport.set([0,0,ue.width/devicePixelRatio,ue.height/devicePixelRatio]),et.clear({color:a.aM.transparent,depth:1}),Ge.coordsIndex=[];for(let Se of Vr){let qe=Ge.getTerrainData(Se.tileID);et.activeTexture.set(mt.TEXTURE0),mt.bindTexture(mt.TEXTURE_2D,kr.texture);let He={u_matrix:ue.transform.calculatePosMatrix(Se.tileID.toUnwrapped()),u_terrain_coords_id:(255-Ge.coordsIndex.length)/255,u_texture:0,u_ele_delta:Ge.getMeshFrameDelta(ue.transform.zoom)};he.draw(et,mt.TRIANGLES,ir,Na.disabled,Ft,tn.backCCW,He,qe,"terrain",or.vertexBuffer,or.indexBuffer,or.segments),Ge.coordsIndex.push(Se.tileID.key)}et.bindFramebuffer.set(null),et.viewport.set([0,0,ue.width,ue.height])}(this,this.style.map.terrain))}renderLayer(w,q,Q,ee){if(!Q.isHidden(this.transform.zoom)&&(Q.type==="background"||Q.type==="custom"||(ee||[]).length))switch(this.id=Q.id,Q.type){case"symbol":(function(ue,Ge,et,mt,Ft){if(ue.renderPass!=="translucent")return;let ir=Na.disabled,or=ue.colorModeForRenderPass();(et._unevaluatedLayout.hasValue("text-variable-anchor")||et._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(kr,Vr,he,Se,qe,He,lt,tt,pt){let Ht=Vr.transform,nr=Vi(),fr=qe==="map",Ar=He==="map";for(let Rr of kr){let ri=Se.getTile(Rr),si=ri.getBucket(he);if(!si||!si.text||!si.text.segments.get().length)continue;let Mi=a.ag(si.textSizeData,Ht.zoom),hn=Di(ri,1,Vr.transform.zoom),Zn=br(Rr.posMatrix,Ar,fr,Vr.transform,hn),Yn=he.layout.get("icon-text-fit")!=="none"&&si.hasIconData();if(Mi){let Ua=Math.pow(2,Ht.zoom-ri.tileID.overscaledZ),Fo=Vr.style.map.terrain?(Us,ml)=>Vr.style.map.terrain.getElevation(Rr,Us,ml):null,vl=nr.translatePosition(Ht,ri,lt,tt);Dn(si,fr,Ar,pt,Ht,Zn,Rr.posMatrix,Ua,Mi,Yn,nr,vl,Rr.toUnwrapped(),Fo)}}}(mt,ue,et,Ge,et.layout.get("text-rotation-alignment"),et.layout.get("text-pitch-alignment"),et.paint.get("text-translate"),et.paint.get("text-translate-anchor"),Ft),et.paint.get("icon-opacity").constantOr(1)!==0&&Ws(ue,Ge,et,mt,!1,et.paint.get("icon-translate"),et.paint.get("icon-translate-anchor"),et.layout.get("icon-rotation-alignment"),et.layout.get("icon-pitch-alignment"),et.layout.get("icon-keep-upright"),ir,or),et.paint.get("text-opacity").constantOr(1)!==0&&Ws(ue,Ge,et,mt,!0,et.paint.get("text-translate"),et.paint.get("text-translate-anchor"),et.layout.get("text-rotation-alignment"),et.layout.get("text-pitch-alignment"),et.layout.get("text-keep-upright"),ir,or),Ge.map.showCollisionBoxes&&(to(ue,Ge,et,mt,!0),to(ue,Ge,et,mt,!1))})(w,q,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(ue,Ge,et,mt){if(ue.renderPass!=="translucent")return;let Ft=et.paint.get("circle-opacity"),ir=et.paint.get("circle-stroke-width"),or=et.paint.get("circle-stroke-opacity"),kr=!et.layout.get("circle-sort-key").isConstant();if(Ft.constantOr(1)===0&&(ir.constantOr(1)===0||or.constantOr(1)===0))return;let Vr=ue.context,he=Vr.gl,Se=ue.depthModeForSublayer(0,sa.ReadOnly),qe=Na.disabled,He=ue.colorModeForRenderPass(),lt=[];for(let tt=0;tttt.sortKey-pt.sortKey);for(let tt of lt){let{programConfiguration:pt,program:Ht,layoutVertexBuffer:nr,indexBuffer:fr,uniformValues:Ar,terrainData:Rr}=tt.state;Ht.draw(Vr,he.TRIANGLES,Se,qe,He,tn.disabled,Ar,Rr,et.id,nr,fr,tt.segments,et.paint,ue.transform.zoom,pt)}})(w,q,Q,ee);break;case"heatmap":(function(ue,Ge,et,mt){if(et.paint.get("heatmap-opacity")===0)return;let Ft=ue.context;if(ue.style.map.terrain){for(let ir of mt){let or=Ge.getTile(ir);Ge.hasRenderableParent(ir)||(ue.renderPass==="offscreen"?Es(ue,or,et,ir):ue.renderPass==="translucent"&&Ts(ue,et,ir))}Ft.viewport.set([0,0,ue.width,ue.height])}else ue.renderPass==="offscreen"?function(ir,or,kr,Vr){let he=ir.context,Se=he.gl,qe=Na.disabled,He=new lo([Se.ONE,Se.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(lt,tt,pt){let Ht=lt.gl;lt.activeTexture.set(Ht.TEXTURE1),lt.viewport.set([0,0,tt.width/4,tt.height/4]);let nr=pt.heatmapFbos.get(a.aU);nr?(Ht.bindTexture(Ht.TEXTURE_2D,nr.colorAttachment.get()),lt.bindFramebuffer.set(nr.framebuffer)):(nr=Ho(lt,tt.width/4,tt.height/4),pt.heatmapFbos.set(a.aU,nr))})(he,ir,kr),he.clear({color:a.aM.transparent});for(let lt=0;lt20&&ir.texParameterf(ir.TEXTURE_2D,Ft.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Ft.extTextureFilterAnisotropicMax);let si=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(lt),Mi=si?lt:null,hn=Mi?Mi.posMatrix:ue.transform.calculatePosMatrix(lt.toUnwrapped(),He),Zn=ls(hn,Rr||[0,0],Ar||1,fr,et);or instanceof kt?kr.draw(Ft,ir.TRIANGLES,tt,Na.disabled,Vr,tn.disabled,Zn,si,et.id,or.boundsBuffer,ue.quadTriangleIndexBuffer,or.boundsSegments):kr.draw(Ft,ir.TRIANGLES,tt,he[lt.overscaledZ],Vr,tn.disabled,Zn,si,et.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}})(w,q,Q,ee);break;case"background":(function(ue,Ge,et,mt){let Ft=et.paint.get("background-color"),ir=et.paint.get("background-opacity");if(ir===0)return;let or=ue.context,kr=or.gl,Vr=ue.transform,he=Vr.tileSize,Se=et.paint.get("background-pattern");if(ue.isPatternMissing(Se))return;let qe=!Se&&Ft.a===1&&ir===1&&ue.opaquePassEnabledForLayer()?"opaque":"translucent";if(ue.renderPass!==qe)return;let He=Na.disabled,lt=ue.depthModeForSublayer(0,qe==="opaque"?sa.ReadWrite:sa.ReadOnly),tt=ue.colorModeForRenderPass(),pt=ue.useProgram(Se?"backgroundPattern":"background"),Ht=mt||Vr.coveringTiles({tileSize:he,terrain:ue.style.map.terrain});Se&&(or.activeTexture.set(kr.TEXTURE0),ue.imageManager.bind(ue.context));let nr=et.getCrossfadeParameters();for(let fr of Ht){let Ar=mt?fr.posMatrix:ue.transform.calculatePosMatrix(fr.toUnwrapped()),Rr=Se?ws(Ar,ir,ue,Se,{tileID:fr,tileSize:he},nr):wa(Ar,ir,Ft),ri=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(fr);pt.draw(or,kr.TRIANGLES,lt,He,tt,tn.disabled,Rr,ri,et.id,ue.tileExtentBuffer,ue.quadTriangleIndexBuffer,ue.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(ue,Ge,et){let mt=ue.context,Ft=et.implementation;if(ue.renderPass==="offscreen"){let ir=Ft.prerender;ir&&(ue.setCustomLayerDefaults(),mt.setColorMode(ue.colorModeForRenderPass()),ir.call(Ft,mt.gl,ue.transform.customLayerMatrix()),mt.setDirty(),ue.setBaseState())}else if(ue.renderPass==="translucent"){ue.setCustomLayerDefaults(),mt.setColorMode(ue.colorModeForRenderPass()),mt.setStencilMode(Na.disabled);let ir=Ft.renderingMode==="3d"?new sa(ue.context.gl.LEQUAL,sa.ReadWrite,ue.depthRangeFor3D):ue.depthModeForSublayer(0,sa.ReadOnly);mt.setDepthMode(ir),Ft.render(mt.gl,ue.transform.customLayerMatrix(),{farZ:ue.transform.farZ,nearZ:ue.transform.nearZ,fov:ue.transform._fov,modelViewProjectionMatrix:ue.transform.modelViewProjectionMatrix,projectionMatrix:ue.transform.projectionMatrix}),mt.setDirty(),ue.setBaseState(),mt.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,q,Q,ee,ue){if(!Q[0]&&!Q[1])return w;let Ge=ue?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(Ge){let Ft=Math.sin(Ge),ir=Math.cos(Ge);Q=[Q[0]*ir-Q[1]*Ft,Q[0]*Ft+Q[1]*ir]}let et=[ue?Q[0]:Di(q,Q[0],this.transform.zoom),ue?Q[1]:Di(q,Q[1],this.transform.zoom),0],mt=new Float32Array(16);return a.J(mt,w,et),mt}saveTileTexture(w){let q=this._tileTextures[w.size[0]];q?q.push(w):this._tileTextures[w.size[0]]=[w]}getTileTexture(w){let q=this._tileTextures[w];return q&&q.length>0?q.pop():null}isPatternMissing(w){if(!w)return!1;if(!w.from||!w.to)return!0;let q=this.imageManager.getPattern(w.from.toString()),Q=this.imageManager.getPattern(w.to.toString());return!q||!Q}useProgram(w,q){this.cache=this.cache||{};let Q=w+(q?q.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[Q]||(this.cache[Q]=new Zr(this.context,Xr[w],q,Co[w],this._showOverdrawInspector,this.style.map.terrain)),this.cache[Q]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let w=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(w.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new m(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:w,drawingBufferHeight:q}=this.context.gl;return this.width!==w||this.height!==q}}class ho{constructor(w,q){this.points=w,this.planes=q}static fromInvProjectionMatrix(w,q,Q){let ee=Math.pow(2,Q),ue=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(et=>{let mt=1/(et=a.af([],et,w))[3]/q*ee;return a.b1(et,et,[mt,mt,1/et[3],mt])}),Ge=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(et=>{let mt=function(kr,Vr){var he=Vr[0],Se=Vr[1],qe=Vr[2],He=he*he+Se*Se+qe*qe;return He>0&&(He=1/Math.sqrt(He)),kr[0]=Vr[0]*He,kr[1]=Vr[1]*He,kr[2]=Vr[2]*He,kr}([],function(kr,Vr,he){var Se=Vr[0],qe=Vr[1],He=Vr[2],lt=he[0],tt=he[1],pt=he[2];return kr[0]=qe*pt-He*tt,kr[1]=He*lt-Se*pt,kr[2]=Se*tt-qe*lt,kr}([],L([],ue[et[0]],ue[et[1]]),L([],ue[et[2]],ue[et[1]]))),Ft=-((ir=mt)[0]*(or=ue[et[1]])[0]+ir[1]*or[1]+ir[2]*or[2]);var ir,or;return mt.concat(Ft)});return new ho(ue,Ge)}}class gs{constructor(w,q){this.min=w,this.max=q,this.center=function(Q,ee,ue){return Q[0]=.5*ee[0],Q[1]=.5*ee[1],Q[2]=.5*ee[2],Q}([],function(Q,ee,ue){return Q[0]=ee[0]+ue[0],Q[1]=ee[1]+ue[1],Q[2]=ee[2]+ue[2],Q}([],this.min,this.max))}quadrant(w){let q=[w%2==0,w<2],Q=E(this.min),ee=E(this.max);for(let ue=0;ue=0&&Ge++;if(Ge===0)return 0;Ge!==q.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let ue=Number.MAX_VALUE,Ge=-Number.MAX_VALUE;for(let et=0;etthis.max[ee]-this.min[ee])return 0}return 1}}class Vo{constructor(w=0,q=0,Q=0,ee=0){if(isNaN(w)||w<0||isNaN(q)||q<0||isNaN(Q)||Q<0||isNaN(ee)||ee<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=w,this.bottom=q,this.left=Q,this.right=ee}interpolate(w,q,Q){return q.top!=null&&w.top!=null&&(this.top=a.y.number(w.top,q.top,Q)),q.bottom!=null&&w.bottom!=null&&(this.bottom=a.y.number(w.bottom,q.bottom,Q)),q.left!=null&&w.left!=null&&(this.left=a.y.number(w.left,q.left,Q)),q.right!=null&&w.right!=null&&(this.right=a.y.number(w.right,q.right,Q)),this}getCenter(w,q){let Q=a.ac((this.left+w-this.right)/2,0,w),ee=a.ac((this.top+q-this.bottom)/2,0,q);return new a.P(Q,ee)}equals(w){return this.top===w.top&&this.bottom===w.bottom&&this.left===w.left&&this.right===w.right}clone(){return new Vo(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let Do=85.051129;class Lo{constructor(w,q,Q,ee,ue){this.tileSize=512,this._renderWorldCopies=ue===void 0||!!ue,this._minZoom=w||0,this._maxZoom=q||22,this._minPitch=Q==null?0:Q,this._maxPitch=ee==null?60:ee,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Vo,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let w=new Lo(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return w.apply(this),w}apply(w){this.tileSize=w.tileSize,this.latRange=w.latRange,this.lngRange=w.lngRange,this.width=w.width,this.height=w.height,this._center=w._center,this._elevation=w._elevation,this.minElevationForCurrentTile=w.minElevationForCurrentTile,this.zoom=w.zoom,this.angle=w.angle,this._fov=w._fov,this._pitch=w._pitch,this._unmodified=w._unmodified,this._edgeInsets=w._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(w){this._minZoom!==w&&(this._minZoom=w,this.zoom=Math.max(this.zoom,w))}get maxZoom(){return this._maxZoom}set maxZoom(w){this._maxZoom!==w&&(this._maxZoom=w,this.zoom=Math.min(this.zoom,w))}get minPitch(){return this._minPitch}set minPitch(w){this._minPitch!==w&&(this._minPitch=w,this.pitch=Math.max(this.pitch,w))}get maxPitch(){return this._maxPitch}set maxPitch(w){this._maxPitch!==w&&(this._maxPitch=w,this.pitch=Math.min(this.pitch,w))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(w){w===void 0?w=!0:w===null&&(w=!1),this._renderWorldCopies=w}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(w){let q=-a.b3(w,-180,180)*Math.PI/180;this.angle!==q&&(this._unmodified=!1,this.angle=q,this._calcMatrices(),this.rotationMatrix=function(){var Q=new a.A(4);return a.A!=Float32Array&&(Q[1]=0,Q[2]=0),Q[0]=1,Q[3]=1,Q}(),function(Q,ee,ue){var Ge=ee[0],et=ee[1],mt=ee[2],Ft=ee[3],ir=Math.sin(ue),or=Math.cos(ue);Q[0]=Ge*or+mt*ir,Q[1]=et*or+Ft*ir,Q[2]=Ge*-ir+mt*or,Q[3]=et*-ir+Ft*or}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(w){let q=a.ac(w,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==q&&(this._unmodified=!1,this._pitch=q,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(w){w=Math.max(.01,Math.min(60,w)),this._fov!==w&&(this._unmodified=!1,this._fov=w/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(w){let q=Math.min(Math.max(w,this.minZoom),this.maxZoom);this._zoom!==q&&(this._unmodified=!1,this._zoom=q,this.tileZoom=Math.max(0,Math.floor(q)),this.scale=this.zoomScale(q),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(w){w.lat===this._center.lat&&w.lng===this._center.lng||(this._unmodified=!1,this._center=w,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(w){w!==this._elevation&&(this._elevation=w,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(w){this._edgeInsets.equals(w)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,w,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(w){return this._edgeInsets.equals(w)}interpolatePadding(w,q,Q){this._unmodified=!1,this._edgeInsets.interpolate(w,q,Q),this._constrain(),this._calcMatrices()}coveringZoomLevel(w){let q=(w.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/w.tileSize));return Math.max(0,q)}getVisibleUnwrappedCoordinates(w){let q=[new a.b4(0,w)];if(this._renderWorldCopies){let Q=this.pointCoordinate(new a.P(0,0)),ee=this.pointCoordinate(new a.P(this.width,0)),ue=this.pointCoordinate(new a.P(this.width,this.height)),Ge=this.pointCoordinate(new a.P(0,this.height)),et=Math.floor(Math.min(Q.x,ee.x,ue.x,Ge.x)),mt=Math.floor(Math.max(Q.x,ee.x,ue.x,Ge.x)),Ft=1;for(let ir=et-Ft;ir<=mt+Ft;ir++)ir!==0&&q.push(new a.b4(ir,w))}return q}coveringTiles(w){var q,Q;let ee=this.coveringZoomLevel(w),ue=ee;if(w.minzoom!==void 0&&eew.maxzoom&&(ee=w.maxzoom);let Ge=this.pointCoordinate(this.getCameraPoint()),et=a.Z.fromLngLat(this.center),mt=Math.pow(2,ee),Ft=[mt*Ge.x,mt*Ge.y,0],ir=[mt*et.x,mt*et.y,0],or=ho.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),kr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(kr=ee);let Vr=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,he=tt=>({aabb:new gs([tt*mt,0,0],[(tt+1)*mt,mt,0]),zoom:0,x:0,y:0,wrap:tt,fullyVisible:!1}),Se=[],qe=[],He=ee,lt=w.reparseOverscaled?ue:ee;if(this._renderWorldCopies)for(let tt=1;tt<=3;tt++)Se.push(he(-tt)),Se.push(he(tt));for(Se.push(he(0));Se.length>0;){let tt=Se.pop(),pt=tt.x,Ht=tt.y,nr=tt.fullyVisible;if(!nr){let si=tt.aabb.intersects(or);if(si===0)continue;nr=si===2}let fr=w.terrain?Ft:ir,Ar=tt.aabb.distanceX(fr),Rr=tt.aabb.distanceY(fr),ri=Math.max(Math.abs(Ar),Math.abs(Rr));if(tt.zoom===He||ri>Vr+(1<=kr){let si=He-tt.zoom,Mi=Ft[0]-.5-(pt<>1),Zn=tt.zoom+1,Yn=tt.aabb.quadrant(si);if(w.terrain){let Ua=new a.S(Zn,tt.wrap,Zn,Mi,hn),Fo=w.terrain.getMinMaxElevation(Ua),vl=(q=Fo.minElevation)!==null&&q!==void 0?q:this.elevation,Us=(Q=Fo.maxElevation)!==null&&Q!==void 0?Q:this.elevation;Yn=new gs([Yn.min[0],Yn.min[1],vl],[Yn.max[0],Yn.max[1],Us])}Se.push({aabb:Yn,zoom:Zn,x:Mi,y:hn,wrap:tt.wrap,fullyVisible:nr})}}return qe.sort((tt,pt)=>tt.distanceSq-pt.distanceSq).map(tt=>tt.tileID)}resize(w,q){this.width=w,this.height=q,this.pixelsToGLUnits=[2/w,-2/q],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(w){return Math.pow(2,w)}scaleZoom(w){return Math.log(w)/Math.LN2}project(w){let q=a.ac(w.lat,-85.051129,Do);return new a.P(a.O(w.lng)*this.worldSize,a.Q(q)*this.worldSize)}unproject(w){return new a.Z(w.x/this.worldSize,w.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(w){let q=this.elevation,Q=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,ee=this.pointLocation(this.centerPoint,w),ue=w.getElevationForLngLatZoom(ee,this.tileZoom);if(!(this.elevation-ue))return;let Ge=Q+q-ue,et=Math.cos(this._pitch)*this.cameraToCenterDistance/Ge/a.b5(1,ee.lat),mt=this.scaleZoom(et/this.tileSize);this._elevation=ue,this._center=ee,this.zoom=mt}setLocationAtPoint(w,q){let Q=this.pointCoordinate(q),ee=this.pointCoordinate(this.centerPoint),ue=this.locationCoordinate(w),Ge=new a.Z(ue.x-(Q.x-ee.x),ue.y-(Q.y-ee.y));this.center=this.coordinateLocation(Ge),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(w,q){return q?this.coordinatePoint(this.locationCoordinate(w),q.getElevationForLngLatZoom(w,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(w))}pointLocation(w,q){return this.coordinateLocation(this.pointCoordinate(w,q))}locationCoordinate(w){return a.Z.fromLngLat(w)}coordinateLocation(w){return w&&w.toLngLat()}pointCoordinate(w,q){if(q){let kr=q.pointCoordinate(w);if(kr!=null)return kr}let Q=[w.x,w.y,0,1],ee=[w.x,w.y,1,1];a.af(Q,Q,this.pixelMatrixInverse),a.af(ee,ee,this.pixelMatrixInverse);let ue=Q[3],Ge=ee[3],et=Q[1]/ue,mt=ee[1]/Ge,Ft=Q[2]/ue,ir=ee[2]/Ge,or=Ft===ir?0:(0-Ft)/(ir-Ft);return new a.Z(a.y.number(Q[0]/ue,ee[0]/Ge,or)/this.worldSize,a.y.number(et,mt,or)/this.worldSize)}coordinatePoint(w,q=0,Q=this.pixelMatrix){let ee=[w.x*this.worldSize,w.y*this.worldSize,q,1];return a.af(ee,ee,Q),new a.P(ee[0]/ee[3],ee[1]/ee[3])}getBounds(){let w=Math.max(0,this.height/2-this.getHorizon());return new ce().extend(this.pointLocation(new a.P(0,w))).extend(this.pointLocation(new a.P(this.width,w))).extend(this.pointLocation(new a.P(this.width,this.height))).extend(this.pointLocation(new a.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new ce([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(w){w?(this.lngRange=[w.getWest(),w.getEast()],this.latRange=[w.getSouth(),w.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,Do])}calculateTileMatrix(w){let q=w.canonical,Q=this.worldSize/this.zoomScale(q.z),ee=q.x+Math.pow(2,q.z)*w.wrap,ue=a.an(new Float64Array(16));return a.J(ue,ue,[ee*Q,q.y*Q,0]),a.K(ue,ue,[Q/a.X,Q/a.X,1]),ue}calculatePosMatrix(w,q=!1){let Q=w.key,ee=q?this._alignedPosMatrixCache:this._posMatrixCache;if(ee[Q])return ee[Q];let ue=this.calculateTileMatrix(w);return a.L(ue,q?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,ue),ee[Q]=new Float32Array(ue),ee[Q]}calculateFogMatrix(w){let q=w.key,Q=this._fogMatrixCache;if(Q[q])return Q[q];let ee=this.calculateTileMatrix(w);return a.L(ee,this.fogMatrix,ee),Q[q]=new Float32Array(ee),Q[q]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(w,q){q=a.ac(+q,this.minZoom,this.maxZoom);let Q={center:new a.N(w.lng,w.lat),zoom:q},ee=this.lngRange;if(!this._renderWorldCopies&&ee===null){let tt=179.9999999999;ee=[-tt,tt]}let ue=this.tileSize*this.zoomScale(Q.zoom),Ge=0,et=ue,mt=0,Ft=ue,ir=0,or=0,{x:kr,y:Vr}=this.size;if(this.latRange){let tt=this.latRange;Ge=a.Q(tt[1])*ue,et=a.Q(tt[0])*ue,et-Geet&&(He=et-tt)}if(ee){let tt=(mt+Ft)/2,pt=he;this._renderWorldCopies&&(pt=a.b3(he,tt-ue/2,tt+ue/2));let Ht=kr/2;pt-HtFt&&(qe=Ft-Ht)}if(qe!==void 0||He!==void 0){let tt=new a.P(qe!=null?qe:he,He!=null?He:Se);Q.center=this.unproject.call({worldSize:ue},tt).wrap()}return Q}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let w=this._unmodified,{center:q,zoom:Q}=this.getConstrained(this.center,this.zoom);this.center=q,this.zoom=Q,this._unmodified=w,this._constraining=!1}_calcMatrices(){if(!this.height)return;let w=this.centerOffset,q=this.point.x,Q=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=a.b5(1,this.center.lat)*this.worldSize;let ee=a.an(new Float64Array(16));a.K(ee,ee,[this.width/2,-this.height/2,1]),a.J(ee,ee,[1,-1,0]),this.labelPlaneMatrix=ee,ee=a.an(new Float64Array(16)),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[-1,-1,0]),a.K(ee,ee,[2/this.width,2/this.height,1]),this.glCoordMatrix=ee;let ue=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),Ge=Math.min(this.elevation,this.minElevationForCurrentTile),et=ue-Ge*this._pixelPerMeter/Math.cos(this._pitch),mt=Ge<0?et:ue,Ft=Math.PI/2+this._pitch,ir=this._fov*(.5+w.y/this.height),or=Math.sin(ir)*mt/Math.sin(a.ac(Math.PI-Ft-ir,.01,Math.PI-.01)),kr=this.getHorizon(),Vr=2*Math.atan(kr/this.cameraToCenterDistance)*(.5+w.y/(2*kr)),he=Math.sin(Vr)*mt/Math.sin(a.ac(Math.PI-Ft-Vr,.01,Math.PI-.01)),Se=Math.min(or,he);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*Se+mt),this.nearZ=this.height/50,ee=new Float64Array(16),a.b6(ee,this._fov,this.width/this.height,this.nearZ,this.farZ),ee[8]=2*-w.x/this.width,ee[9]=2*w.y/this.height,this.projectionMatrix=a.ae(ee),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[0,0,-this.cameraToCenterDistance]),a.b7(ee,ee,this._pitch),a.ad(ee,ee,this.angle),a.J(ee,ee,[-q,-Q,0]),this.mercatorMatrix=a.K([],ee,[this.worldSize,this.worldSize,this.worldSize]),a.K(ee,ee,[1,1,this._pixelPerMeter]),this.pixelMatrix=a.L(new Float64Array(16),this.labelPlaneMatrix,ee),a.J(ee,ee,[0,0,-this.elevation]),this.modelViewProjectionMatrix=ee,this.invModelViewProjectionMatrix=a.as([],ee),this.fogMatrix=new Float64Array(16),a.b6(this.fogMatrix,this._fov,this.width/this.height,ue,this.farZ),this.fogMatrix[8]=2*-w.x/this.width,this.fogMatrix[9]=2*w.y/this.height,a.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),a.b7(this.fogMatrix,this.fogMatrix,this._pitch),a.ad(this.fogMatrix,this.fogMatrix,this.angle),a.J(this.fogMatrix,this.fogMatrix,[-q,-Q,0]),a.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=a.L(new Float64Array(16),this.labelPlaneMatrix,ee);let qe=this.width%2/2,He=this.height%2/2,lt=Math.cos(this.angle),tt=Math.sin(this.angle),pt=q-Math.round(q)+lt*qe+tt*He,Ht=Q-Math.round(Q)+lt*He+tt*qe,nr=new Float64Array(ee);if(a.J(nr,nr,[pt>.5?pt-1:pt,Ht>.5?Ht-1:Ht,0]),this.alignedModelViewProjectionMatrix=nr,ee=a.as(new Float64Array(16),this.pixelMatrix),!ee)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ee,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let w=this.pointCoordinate(new a.P(0,0)),q=[w.x*this.worldSize,w.y*this.worldSize,0,1];return a.af(q,q,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let w=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.P(0,w))}getCameraQueryGeometry(w){let q=this.getCameraPoint();if(w.length===1)return[w[0],q];{let Q=q.x,ee=q.y,ue=q.x,Ge=q.y;for(let et of w)Q=Math.min(Q,et.x),ee=Math.min(ee,et.y),ue=Math.max(ue,et.x),Ge=Math.max(Ge,et.y);return[new a.P(Q,ee),new a.P(ue,ee),new a.P(ue,Ge),new a.P(Q,Ge),new a.P(Q,ee)]}}lngLatToCameraDepth(w,q){let Q=this.locationCoordinate(w),ee=[Q.x*this.worldSize,Q.y*this.worldSize,q,1];return a.af(ee,ee,this.modelViewProjectionMatrix),ee[2]/ee[3]}}function xs(le,w){let q,Q=!1,ee=null,ue=null,Ge=()=>{ee=null,Q&&(le.apply(ue,q),ee=setTimeout(Ge,w),Q=!1)};return(...et)=>(Q=!0,ue=this,q=et,ee||Ge(),ee)}class ks{constructor(w){this._getCurrentHash=()=>{let q=window.location.hash.replace("#","");if(this._hashName){let Q;return q.split("&").map(ee=>ee.split("=")).forEach(ee=>{ee[0]===this._hashName&&(Q=ee)}),(Q&&Q[1]||"").split("/")}return q.split("/")},this._onHashChange=()=>{let q=this._getCurrentHash();if(q.length>=3&&!q.some(Q=>isNaN(Q))){let Q=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(q[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+q[2],+q[1]],zoom:+q[0],bearing:Q,pitch:+(q[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let q=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,q)},this._removeHash=()=>{let q=this._getCurrentHash();if(q.length===0)return;let Q=q.join("/"),ee=Q;ee.split("&").length>0&&(ee=ee.split("&")[0]),this._hashName&&(ee=`${this._hashName}=${Q}`);let ue=window.location.hash.replace(ee,"");ue.startsWith("#&")?ue=ue.slice(0,1)+ue.slice(2):ue==="#"&&(ue="");let Ge=window.location.href.replace(/(#.+)?$/,ue);Ge=Ge.replace("&&","&"),window.history.replaceState(window.history.state,null,Ge)},this._updateHash=xs(this._updateHashUnthrottled,300),this._hashName=w&&encodeURIComponent(w)}addTo(w){return this._map=w,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(w){let q=this._map.getCenter(),Q=Math.round(100*this._map.getZoom())/100,ee=Math.ceil((Q*Math.LN2+Math.log(512/360/.5))/Math.LN10),ue=Math.pow(10,ee),Ge=Math.round(q.lng*ue)/ue,et=Math.round(q.lat*ue)/ue,mt=this._map.getBearing(),Ft=this._map.getPitch(),ir="";if(ir+=w?`/${Ge}/${et}/${Q}`:`${Q}/${et}/${Ge}`,(mt||Ft)&&(ir+="/"+Math.round(10*mt)/10),Ft&&(ir+=`/${Math.round(Ft)}`),this._hashName){let or=this._hashName,kr=!1,Vr=window.location.hash.slice(1).split("&").map(he=>{let Se=he.split("=")[0];return Se===or?(kr=!0,`${Se}=${ir}`):he}).filter(he=>he);return kr||Vr.push(`${or}=${ir}`),`#${Vr.join("&")}`}return`#${ir}`}}let Ea={linearity:.3,easing:a.b8(0,0,.3,1)},Jn=a.e({deceleration:2500,maxSpeed:1400},Ea),Oo=a.e({deceleration:20,maxSpeed:1400},Ea),rl=a.e({deceleration:1e3,maxSpeed:360},Ea),Gs=a.e({deceleration:1e3,maxSpeed:90},Ea);class bs{constructor(w){this._map=w,this.clear()}clear(){this._inertiaBuffer=[]}record(w){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:l.now(),settings:w})}_drainInertiaBuffer(){let w=this._inertiaBuffer,q=l.now();for(;w.length>0&&q-w[0].time>160;)w.shift()}_onMoveEnd(w){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let q={zoom:0,bearing:0,pitch:0,pan:new a.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:ue}of this._inertiaBuffer)q.zoom+=ue.zoomDelta||0,q.bearing+=ue.bearingDelta||0,q.pitch+=ue.pitchDelta||0,ue.panDelta&&q.pan._add(ue.panDelta),ue.around&&(q.around=ue.around),ue.pinchAround&&(q.pinchAround=ue.pinchAround);let Q=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ee={};if(q.pan.mag()){let ue=$o(q.pan.mag(),Q,a.e({},Jn,w||{}));ee.offset=q.pan.mult(ue.amount/q.pan.mag()),ee.center=this._map.transform.center,zs(ee,ue)}if(q.zoom){let ue=$o(q.zoom,Q,Oo);ee.zoom=this._map.transform.zoom+ue.amount,zs(ee,ue)}if(q.bearing){let ue=$o(q.bearing,Q,rl);ee.bearing=this._map.transform.bearing+a.ac(ue.amount,-179,179),zs(ee,ue)}if(q.pitch){let ue=$o(q.pitch,Q,Gs);ee.pitch=this._map.transform.pitch+ue.amount,zs(ee,ue)}if(ee.zoom||ee.bearing){let ue=q.pinchAround===void 0?q.around:q.pinchAround;ee.around=ue?this._map.unproject(ue):this._map.getCenter()}return this.clear(),a.e(ee,{noMoveStart:!0})}}function zs(le,w){(!le.duration||le.durationq.unproject(mt)),et=ue.reduce((mt,Ft,ir,or)=>mt.add(Ft.div(or.length)),new a.P(0,0));super(w,{points:ue,point:et,lngLats:Ge,lngLat:q.unproject(et),originalEvent:Q}),this._defaultPrevented=!1}}class _l extends a.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(w,q,Q){super(w,{originalEvent:Q}),this._defaultPrevented=!1}}class Ss{constructor(w,q){this._map=w,this._clickTolerance=q.clickTolerance}reset(){delete this._mousedownPos}wheel(w){return this._firePreventable(new _l(w.type,this._map,w))}mousedown(w,q){return this._mousedownPos=q,this._firePreventable(new Aa(w.type,this._map,w))}mouseup(w){this._map.fire(new Aa(w.type,this._map,w))}click(w,q){this._mousedownPos&&this._mousedownPos.dist(q)>=this._clickTolerance||this._map.fire(new Aa(w.type,this._map,w))}dblclick(w){return this._firePreventable(new Aa(w.type,this._map,w))}mouseover(w){this._map.fire(new Aa(w.type,this._map,w))}mouseout(w){this._map.fire(new Aa(w.type,this._map,w))}touchstart(w){return this._firePreventable(new os(w.type,this._map,w))}touchmove(w){this._map.fire(new os(w.type,this._map,w))}touchend(w){this._map.fire(new os(w.type,this._map,w))}touchcancel(w){this._map.fire(new os(w.type,this._map,w))}_firePreventable(w){if(this._map.fire(w),w.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class po{constructor(w){this._map=w}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(w){this._map.fire(new Aa(w.type,this._map,w))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Aa("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(w){this._delayContextMenu?this._contextMenuEvent=w:this._ignoreContextMenu||this._map.fire(new Aa(w.type,this._map,w)),this._map.listens("contextmenu")&&w.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class go{constructor(w){this._map=w}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(w){return this.transform.pointLocation(a.P.convert(w),this._map.terrain)}}class ss{constructor(w,q){this._map=w,this._tr=new go(w),this._el=w.getCanvasContainer(),this._container=w.getContainer(),this._clickTolerance=q.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(w,q){this.isEnabled()&&w.shiftKey&&w.button===0&&(f.disableDrag(),this._startPos=this._lastPos=q,this._active=!0)}mousemoveWindow(w,q){if(!this._active)return;let Q=q;if(this._lastPos.equals(Q)||!this._box&&Q.dist(this._startPos)ue.fitScreenCoordinates(Q,ee,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",w)}keydown(w){this._active&&w.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",w))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(f.remove(this._box),this._box=null),f.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(w,q){return this._map.fire(new a.k(w,{originalEvent:q}))}}function qo(le,w){if(le.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${le.length}, points ${w.length}`);let q={};for(let Q=0;Qthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=w.timeStamp),Q.length===this.numTouches&&(this.centroid=function(ee){let ue=new a.P(0,0);for(let Ge of ee)ue._add(Ge);return ue.div(ee.length)}(q),this.touches=qo(Q,q)))}touchmove(w,q,Q){if(this.aborted||!this.centroid)return;let ee=qo(Q,q);for(let ue in this.touches){let Ge=ee[ue];(!Ge||Ge.dist(this.touches[ue])>30)&&(this.aborted=!0)}}touchend(w,q,Q){if((!this.centroid||w.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){let ee=!this.aborted&&this.centroid;if(this.reset(),ee)return ee}}}class io{constructor(w){this.singleTap=new zo(w),this.numTaps=w.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(w,q,Q){this.singleTap.touchstart(w,q,Q)}touchmove(w,q,Q){this.singleTap.touchmove(w,q,Q)}touchend(w,q,Q){let ee=this.singleTap.touchend(w,q,Q);if(ee){let ue=w.timeStamp-this.lastTime<500,Ge=!this.lastTap||this.lastTap.dist(ee)<30;if(ue&&Ge||this.reset(),this.count++,this.lastTime=w.timeStamp,this.lastTap=ee,this.count===this.numTaps)return this.reset(),ee}}}class Io{constructor(w){this._tr=new go(w),this._zoomIn=new io({numTouches:1,numTaps:2}),this._zoomOut=new io({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(w,q,Q){this._zoomIn.touchstart(w,q,Q),this._zoomOut.touchstart(w,q,Q)}touchmove(w,q,Q){this._zoomIn.touchmove(w,q,Q),this._zoomOut.touchmove(w,q,Q)}touchend(w,q,Q){let ee=this._zoomIn.touchend(w,q,Q),ue=this._zoomOut.touchend(w,q,Q),Ge=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:et=>et.easeTo({duration:300,zoom:Ge.zoom+1,around:Ge.unproject(ee)},{originalEvent:w})}):ue?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:et=>et.easeTo({duration:300,zoom:Ge.zoom-1,around:Ge.unproject(ue)},{originalEvent:w})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Da{constructor(w){this._enabled=!!w.enable,this._moveStateManager=w.moveStateManager,this._clickTolerance=w.clickTolerance||1,this._moveFunction=w.move,this._activateOnStart=!!w.activateOnStart,w.assignEvents(this),this.reset()}reset(w){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(w)}_move(...w){let q=this._moveFunction(...w);if(q.bearingDelta||q.pitchDelta||q.around||q.panDelta)return this._active=!0,q}dragStart(w,q){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(w)&&(this._moveStateManager.startMove(w),this._lastPoint=q.length?q[0]:q,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(w,q){if(!this.isEnabled())return;let Q=this._lastPoint;if(!Q)return;if(w.preventDefault(),!this._moveStateManager.isValidMoveEvent(w))return void this.reset(w);let ee=q.length?q[0]:q;return!this._moved&&ee.dist(Q){le.mousedown=le.dragStart,le.mousemoveWindow=le.dragMove,le.mouseup=le.dragEnd,le.contextmenu=w=>{w.preventDefault()}},Hs=({enable:le,clickTolerance:w,bearingDegreesPerPixelMoved:q=.8})=>{let Q=new fs({checkCorrectEvent:ee=>f.mouseButton(ee)===0&&ee.ctrlKey||f.mouseButton(ee)===2});return new Da({clickTolerance:w,move:(ee,ue)=>({bearingDelta:(ue.x-ee.x)*q}),moveStateManager:Q,enable:le,assignEvents:el})},Ro=({enable:le,clickTolerance:w,pitchDegreesPerPixelMoved:q=-.5})=>{let Q=new fs({checkCorrectEvent:ee=>f.mouseButton(ee)===0&&ee.ctrlKey||f.mouseButton(ee)===2});return new Da({clickTolerance:w,move:(ee,ue)=>({pitchDelta:(ue.y-ee.y)*q}),moveStateManager:Q,enable:le,assignEvents:el})};class tl{constructor(w,q){this._clickTolerance=w.clickTolerance||1,this._map=q,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new a.P(0,0)}_shouldBePrevented(w){return w<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(w,q,Q){return this._calculateTransform(w,q,Q)}touchmove(w,q,Q){if(this._active){if(!this._shouldBePrevented(Q.length))return w.preventDefault(),this._calculateTransform(w,q,Q);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",w)}}touchend(w,q,Q){this._calculateTransform(w,q,Q),this._active&&this._shouldBePrevented(Q.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(w,q,Q){Q.length>0&&(this._active=!0);let ee=qo(Q,q),ue=new a.P(0,0),Ge=new a.P(0,0),et=0;for(let Ft in ee){let ir=ee[Ft],or=this._touches[Ft];or&&(ue._add(ir),Ge._add(ir.sub(or)),et++,ee[Ft]=ir)}if(this._touches=ee,this._shouldBePrevented(et)||!Ge.mag())return;let mt=Ge.div(et);return this._sum._add(mt),this._sum.mag()Math.abs(le.x)}class Bs extends Fs{constructor(w){super(),this._currentTouchCount=0,this._map=w}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(w,q,Q){super.touchstart(w,q,Q),this._currentTouchCount=Q.length}_start(w){this._lastPoints=w,Is(w[0].sub(w[1]))&&(this._valid=!1)}_move(w,q,Q){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let ee=w[0].sub(this._lastPoints[0]),ue=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(ee,ue,Q.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(ee.y+ue.y)/2*-.5}):void 0}gestureBeginsVertically(w,q,Q){if(this._valid!==void 0)return this._valid;let ee=w.mag()>=2,ue=q.mag()>=2;if(!ee&&!ue)return;if(!ee||!ue)return this._firstMove===void 0&&(this._firstMove=Q),Q-this._firstMove<100&&void 0;let Ge=w.y>0==q.y>0;return Is(w)&&Is(q)&&Ge}}let At={panStep:100,bearingStep:15,pitchStep:10};class Gt{constructor(w){this._tr=new go(w);let q=At;this._panStep=q.panStep,this._bearingStep=q.bearingStep,this._pitchStep=q.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(w){if(w.altKey||w.ctrlKey||w.metaKey)return;let q=0,Q=0,ee=0,ue=0,Ge=0;switch(w.keyCode){case 61:case 107:case 171:case 187:q=1;break;case 189:case 109:case 173:q=-1;break;case 37:w.shiftKey?Q=-1:(w.preventDefault(),ue=-1);break;case 39:w.shiftKey?Q=1:(w.preventDefault(),ue=1);break;case 38:w.shiftKey?ee=1:(w.preventDefault(),Ge=-1);break;case 40:w.shiftKey?ee=-1:(w.preventDefault(),Ge=1);break;default:return}return this._rotationDisabled&&(Q=0,ee=0),{cameraAnimation:et=>{let mt=this._tr;et.easeTo({duration:300,easeId:"keyboardHandler",easing:wr,zoom:q?Math.round(mt.zoom)+q*(w.shiftKey?2:1):mt.zoom,bearing:mt.bearing+Q*this._bearingStep,pitch:mt.pitch+ee*this._pitchStep,offset:[-ue*this._panStep,-Ge*this._panStep],center:mt.center},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function wr(le){return le*(2-le)}let mr=4.000244140625;class Or{constructor(w,q){this._onTimeout=Q=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Q)},this._map=w,this._tr=new go(w),this._triggerRenderFrame=q,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(w){this._defaultZoomRate=w}setWheelZoomRate(w){this._wheelZoomRate=w}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(w){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!w&&w.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(w){return!!this._map.cooperativeGestures.isEnabled()&&!(w.ctrlKey||this._map.cooperativeGestures.isBypassed(w))}wheel(w){if(!this.isEnabled())return;if(this._shouldBePrevented(w))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",w);let q=w.deltaMode===WheelEvent.DOM_DELTA_LINE?40*w.deltaY:w.deltaY,Q=l.now(),ee=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,q!==0&&q%mr==0?this._type="wheel":q!==0&&Math.abs(q)<4?this._type="trackpad":ee>400?(this._type=null,this._lastValue=q,this._timeout=setTimeout(this._onTimeout,40,w)):this._type||(this._type=Math.abs(ee*q)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,q+=this._lastValue)),w.shiftKey&&q&&(q/=4),this._type&&(this._lastWheelEvent=w,this._delta-=q,this._active||this._start(w)),w.preventDefault()}_start(w){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let q=f.mousePos(this._map.getCanvas(),w),Q=this._tr;this._around=q.y>Q.transform.height/2-Q.transform.getHorizon()?a.N.convert(this._aroundCenter?Q.center:Q.unproject(q)):a.N.convert(Q.center),this._aroundPoint=Q.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let w=this._tr.transform;if(this._delta!==0){let mt=this._type==="wheel"&&Math.abs(this._delta)>mr?this._wheelZoomRate:this._defaultZoomRate,Ft=2/(1+Math.exp(-Math.abs(this._delta*mt)));this._delta<0&&Ft!==0&&(Ft=1/Ft);let ir=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(ir*Ft))),this._type==="wheel"&&(this._startZoom=w.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let q=typeof this._targetZoom=="number"?this._targetZoom:w.zoom,Q=this._startZoom,ee=this._easing,ue,Ge=!1,et=l.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&et){let mt=Math.min(et/200,1),Ft=ee(mt);ue=a.y.number(Q,q,Ft),mt<1?this._frameId||(this._frameId=!0):Ge=!0}else ue=q,Ge=!0;return this._active=!0,Ge&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ge,zoomDelta:ue-w.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(w){let q=a.b9;if(this._prevEase){let Q=this._prevEase,ee=(l.now()-Q.start)/Q.duration,ue=Q.easing(ee+.01)-Q.easing(ee),Ge=.27/Math.sqrt(ue*ue+1e-4)*.01,et=Math.sqrt(.0729-Ge*Ge);q=a.b8(Ge,et,.25,1)}return this._prevEase={start:l.now(),duration:w,easing:q},q}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class gi{constructor(w,q){this._clickZoom=w,this._tapZoom=q}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Ti{constructor(w){this._tr=new go(w),this.reset()}reset(){this._active=!1}dblclick(w,q){return w.preventDefault(),{cameraAnimation:Q=>{Q.easeTo({duration:300,zoom:this._tr.zoom+(w.shiftKey?-1:1),around:this._tr.unproject(q)},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class ki{constructor(){this._tap=new io({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(w,q,Q){if(!this._swipePoint)if(this._tapTime){let ee=q[0],ue=w.timeStamp-this._tapTime<500,Ge=this._tapPoint.dist(ee)<30;ue&&Ge?Q.length>0&&(this._swipePoint=ee,this._swipeTouch=Q[0].identifier):this.reset()}else this._tap.touchstart(w,q,Q)}touchmove(w,q,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;let ee=q[0],ue=ee.y-this._swipePoint.y;return this._swipePoint=ee,w.preventDefault(),this._active=!0,{zoomDelta:ue/128}}}else this._tap.touchmove(w,q,Q)}touchend(w,q,Q){if(this._tapTime)this._swipePoint&&Q.length===0&&this.reset();else{let ee=this._tap.touchend(w,q,Q);ee&&(this._tapTime=w.timeStamp,this._tapPoint=ee)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ji{constructor(w,q,Q){this._el=w,this._mousePan=q,this._touchPan=Q}enable(w){this._inertiaOptions=w||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Fn{constructor(w,q,Q){this._pitchWithRotate=w.pitchWithRotate,this._mouseRotate=q,this._mousePitch=Q}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Pi{constructor(w,q,Q,ee){this._el=w,this._touchZoom=q,this._touchRotate=Q,this._tapDragZoom=ee,this._rotationDisabled=!1,this._enabled=!0}enable(w){this._touchZoom.enable(w),this._rotationDisabled||this._touchRotate.enable(w),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class hi{constructor(w,q){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=w,this._options=q,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let w=this._map.getCanvasContainer();w.classList.add("maplibregl-cooperative-gestures"),this._container=f.create("div","maplibregl-cooperative-gesture-screen",w);let q=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(q=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let Q=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),ee=document.createElement("div");ee.className="maplibregl-desktop-message",ee.textContent=q,this._container.appendChild(ee);let ue=document.createElement("div");ue.className="maplibregl-mobile-message",ue.textContent=Q,this._container.appendChild(ue),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(f.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(w){return w[this._bypassKey]}notifyGestureBlocked(w,q){this._enabled&&(this._map.fire(new a.k("cooperativegestureprevented",{gestureType:w,originalEvent:q})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}let Li=le=>le.zoom||le.drag||le.pitch||le.rotate;class Si extends a.k{}function Gn(le){return le.panDelta&&le.panDelta.mag()||le.zoomDelta||le.bearingDelta||le.pitchDelta}class ta{constructor(w,q){this.handleWindowEvent=ee=>{this.handleEvent(ee,`${ee.type}Window`)},this.handleEvent=(ee,ue)=>{if(ee.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let Ge=ee.type==="renderFrame"?void 0:ee,et={needsRenderFrame:!1},mt={},Ft={},ir=ee.touches,or=ir?this._getMapTouches(ir):void 0,kr=or?f.touchPos(this._map.getCanvas(),or):f.mousePos(this._map.getCanvas(),ee);for(let{handlerName:Se,handler:qe,allowed:He}of this._handlers){if(!qe.isEnabled())continue;let lt;this._blockedByActive(Ft,He,Se)?qe.reset():qe[ue||ee.type]&&(lt=qe[ue||ee.type](ee,kr,or),this.mergeHandlerResult(et,mt,lt,Se,Ge),lt&<.needsRenderFrame&&this._triggerRenderFrame()),(lt||qe.isActive())&&(Ft[Se]=qe)}let Vr={};for(let Se in this._previousActiveHandlers)Ft[Se]||(Vr[Se]=Ge);this._previousActiveHandlers=Ft,(Object.keys(Vr).length||Gn(et))&&(this._changes.push([et,mt,Vr]),this._triggerRenderFrame()),(Object.keys(Ft).length||Gn(et))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:he}=et;he&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],he(this._map))},this._map=w,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new bs(w),this._bearingSnap=q.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(q);let Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[window,"blur",void 0]];for(let[ee,ue,Ge]of this._listeners)f.addEventListener(ee,ue,ee===document?this.handleWindowEvent:this.handleEvent,Ge)}destroy(){for(let[w,q,Q]of this._listeners)f.removeEventListener(w,q,w===document?this.handleWindowEvent:this.handleEvent,Q)}_addDefaultHandlers(w){let q=this._map,Q=q.getCanvasContainer();this._add("mapEvent",new Ss(q,w));let ee=q.boxZoom=new ss(q,w);this._add("boxZoom",ee),w.interactive&&w.boxZoom&&ee.enable();let ue=q.cooperativeGestures=new hi(q,w.cooperativeGestures);this._add("cooperativeGestures",ue),w.cooperativeGestures&&ue.enable();let Ge=new Io(q),et=new Ti(q);q.doubleClickZoom=new gi(et,Ge),this._add("tapZoom",Ge),this._add("clickZoom",et),w.interactive&&w.doubleClickZoom&&q.doubleClickZoom.enable();let mt=new ki;this._add("tapDragZoom",mt);let Ft=q.touchPitch=new Bs(q);this._add("touchPitch",Ft),w.interactive&&w.touchPitch&&q.touchPitch.enable(w.touchPitch);let ir=Hs(w),or=Ro(w);q.dragRotate=new Fn(w,ir,or),this._add("mouseRotate",ir,["mousePitch"]),this._add("mousePitch",or,["mouseRotate"]),w.interactive&&w.dragRotate&&q.dragRotate.enable();let kr=(({enable:lt,clickTolerance:tt})=>{let pt=new fs({checkCorrectEvent:Ht=>f.mouseButton(Ht)===0&&!Ht.ctrlKey});return new Da({clickTolerance:tt,move:(Ht,nr)=>({around:nr,panDelta:nr.sub(Ht)}),activateOnStart:!0,moveStateManager:pt,enable:lt,assignEvents:el})})(w),Vr=new tl(w,q);q.dragPan=new Ji(Q,kr,Vr),this._add("mousePan",kr),this._add("touchPan",Vr,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&q.dragPan.enable(w.dragPan);let he=new Rs,Se=new Ms;q.touchZoomRotate=new Pi(Q,Se,he,mt),this._add("touchRotate",he,["touchPan","touchZoom"]),this._add("touchZoom",Se,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&q.touchZoomRotate.enable(w.touchZoomRotate);let qe=q.scrollZoom=new Or(q,()=>this._triggerRenderFrame());this._add("scrollZoom",qe,["mousePan"]),w.interactive&&w.scrollZoom&&q.scrollZoom.enable(w.scrollZoom);let He=q.keyboard=new Gt(q);this._add("keyboard",He),w.interactive&&w.keyboard&&q.keyboard.enable(),this._add("blockableMapEvent",new po(q))}_add(w,q,Q){this._handlers.push({handlerName:w,handler:q,allowed:Q}),this._handlersById[w]=q}stop(w){if(!this._updatingCamera){for(let{handler:q}of this._handlers)q.reset();this._inertia.clear(),this._fireEvents({},{},w),this._changes=[]}}isActive(){for(let{handler:w}of this._handlers)if(w.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Li(this._eventsInProgress)||this.isZooming()}_blockedByActive(w,q,Q){for(let ee in w)if(ee!==Q&&(!q||q.indexOf(ee)<0))return!0;return!1}_getMapTouches(w){let q=[];for(let Q of w)this._el.contains(Q.target)&&q.push(Q);return q}mergeHandlerResult(w,q,Q,ee,ue){if(!Q)return;a.e(w,Q);let Ge={handlerName:ee,originalEvent:Q.originalEvent||ue};Q.zoomDelta!==void 0&&(q.zoom=Ge),Q.panDelta!==void 0&&(q.drag=Ge),Q.pitchDelta!==void 0&&(q.pitch=Ge),Q.bearingDelta!==void 0&&(q.rotate=Ge)}_applyChanges(){let w={},q={},Q={};for(let[ee,ue,Ge]of this._changes)ee.panDelta&&(w.panDelta=(w.panDelta||new a.P(0,0))._add(ee.panDelta)),ee.zoomDelta&&(w.zoomDelta=(w.zoomDelta||0)+ee.zoomDelta),ee.bearingDelta&&(w.bearingDelta=(w.bearingDelta||0)+ee.bearingDelta),ee.pitchDelta&&(w.pitchDelta=(w.pitchDelta||0)+ee.pitchDelta),ee.around!==void 0&&(w.around=ee.around),ee.pinchAround!==void 0&&(w.pinchAround=ee.pinchAround),ee.noInertia&&(w.noInertia=ee.noInertia),a.e(q,ue),a.e(Q,Ge);this._updateMapTransform(w,q,Q),this._changes=[]}_updateMapTransform(w,q,Q){let ee=this._map,ue=ee._getTransformForUpdate(),Ge=ee.terrain;if(!(Gn(w)||Ge&&this._terrainMovement))return this._fireEvents(q,Q,!0);let{panDelta:et,zoomDelta:mt,bearingDelta:Ft,pitchDelta:ir,around:or,pinchAround:kr}=w;kr!==void 0&&(or=kr),ee._stop(!0),or=or||ee.transform.centerPoint;let Vr=ue.pointLocation(et?or.sub(et):or);Ft&&(ue.bearing+=Ft),ir&&(ue.pitch+=ir),mt&&(ue.zoom+=mt),Ge?this._terrainMovement||!q.drag&&!q.zoom?q.drag&&this._terrainMovement?ue.center=ue.pointLocation(ue.centerPoint.sub(et)):ue.setLocationAtPoint(Vr,or):(this._terrainMovement=!0,this._map._elevationFreeze=!0,ue.setLocationAtPoint(Vr,or)):ue.setLocationAtPoint(Vr,or),ee._applyUpdatedTransform(ue),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(q,Q,!0)}_fireEvents(w,q,Q){let ee=Li(this._eventsInProgress),ue=Li(w),Ge={};for(let or in w){let{originalEvent:kr}=w[or];this._eventsInProgress[or]||(Ge[`${or}start`]=kr),this._eventsInProgress[or]=w[or]}!ee&&ue&&this._fireEvent("movestart",ue.originalEvent);for(let or in Ge)this._fireEvent(or,Ge[or]);ue&&this._fireEvent("move",ue.originalEvent);for(let or in w){let{originalEvent:kr}=w[or];this._fireEvent(or,kr)}let et={},mt;for(let or in this._eventsInProgress){let{handlerName:kr,originalEvent:Vr}=this._eventsInProgress[or];this._handlersById[kr].isActive()||(delete this._eventsInProgress[or],mt=q[kr]||Vr,et[`${or}end`]=mt)}for(let or in et)this._fireEvent(or,et[or]);let Ft=Li(this._eventsInProgress),ir=(ee||ue)&&!Ft;if(ir&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let or=this._map._getTransformForUpdate();or.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(or)}if(Q&&ir){this._updatingCamera=!0;let or=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),kr=Vr=>Vr!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Si("renderFrame",{timeStamp:w})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class ya extends a.E{constructor(w,q){super(),this._renderFrameCallback=()=>{let Q=Math.min((l.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=w,this._bearingSnap=q.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new a.N(this.transform.center.lng,this.transform.center.lat)}setCenter(w,q){return this.jumpTo({center:w},q)}panBy(w,q,Q){return w=a.P.convert(w).mult(-1),this.panTo(this.transform.center,a.e({offset:w},q),Q)}panTo(w,q,Q){return this.easeTo(a.e({center:w},q),Q)}getZoom(){return this.transform.zoom}setZoom(w,q){return this.jumpTo({zoom:w},q),this}zoomTo(w,q,Q){return this.easeTo(a.e({zoom:w},q),Q)}zoomIn(w,q){return this.zoomTo(this.getZoom()+1,w,q),this}zoomOut(w,q){return this.zoomTo(this.getZoom()-1,w,q),this}getBearing(){return this.transform.bearing}setBearing(w,q){return this.jumpTo({bearing:w},q),this}getPadding(){return this.transform.padding}setPadding(w,q){return this.jumpTo({padding:w},q),this}rotateTo(w,q,Q){return this.easeTo(a.e({bearing:w},q),Q)}resetNorth(w,q){return this.rotateTo(0,a.e({duration:1e3},w),q),this}resetNorthPitch(w,q){return this.easeTo(a.e({bearing:0,pitch:0,duration:1e3},w),q),this}snapToNorth(w,q){return Math.abs(this.getBearing()){if(this._zooming&&(ee.zoom=a.y.number(ue,qe,fr)),this._rotating&&(ee.bearing=a.y.number(Ge,Ft,fr)),this._pitching&&(ee.pitch=a.y.number(et,ir,fr)),this._padding&&(ee.interpolatePadding(mt,or,fr),Vr=ee.centerPoint.add(kr)),this.terrain&&!w.freezeElevation&&this._updateElevation(fr),pt)ee.setLocationAtPoint(pt,Ht);else{let Ar=ee.zoomScale(ee.zoom-ue),Rr=qe>ue?Math.min(2,tt):Math.max(.5,tt),ri=Math.pow(Rr,1-fr),si=ee.unproject(He.add(lt.mult(fr*ri)).mult(Ar));ee.setLocationAtPoint(ee.renderWorldCopies?si.wrap():si,Vr)}this._applyUpdatedTransform(ee),this._fireMoveEvents(q)},fr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(q,fr)},w),this}_prepareEase(w,q,Q={}){this._moving=!0,q||Q.moving||this.fire(new a.k("movestart",w)),this._zooming&&!Q.zooming&&this.fire(new a.k("zoomstart",w)),this._rotating&&!Q.rotating&&this.fire(new a.k("rotatestart",w)),this._pitching&&!Q.pitching&&this.fire(new a.k("pitchstart",w))}_prepareElevation(w){this._elevationCenter=w,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(w,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(w){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let q=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(w<1&&q!==this._elevationTarget){let Q=this._elevationTarget-this._elevationStart;this._elevationStart+=w*(Q-(q-(Q*w+this._elevationStart))/(1-w)),this._elevationTarget=q}this.transform.elevation=a.y.number(this._elevationStart,this._elevationTarget,w)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(w){let q=w.getCameraPosition(),Q=this.terrain.getElevationForLngLatZoom(q.lngLat,w.zoom);if(q.altitudethis._elevateCameraIfInsideTerrain(ee)),this.transformCameraUpdate&&q.push(ee=>this.transformCameraUpdate(ee)),!q.length)return;let Q=w.clone();for(let ee of q){let ue=Q.clone(),{center:Ge,zoom:et,pitch:mt,bearing:Ft,elevation:ir}=ee(ue);Ge&&(ue.center=Ge),et!==void 0&&(ue.zoom=et),mt!==void 0&&(ue.pitch=mt),Ft!==void 0&&(ue.bearing=Ft),ir!==void 0&&(ue.elevation=ir),Q.apply(ue)}this.transform.apply(Q)}_fireMoveEvents(w){this.fire(new a.k("move",w)),this._zooming&&this.fire(new a.k("zoom",w)),this._rotating&&this.fire(new a.k("rotate",w)),this._pitching&&this.fire(new a.k("pitch",w))}_afterEase(w,q){if(this._easeId&&q&&this._easeId===q)return;delete this._easeId;let Q=this._zooming,ee=this._rotating,ue=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Q&&this.fire(new a.k("zoomend",w)),ee&&this.fire(new a.k("rotateend",w)),ue&&this.fire(new a.k("pitchend",w)),this.fire(new a.k("moveend",w))}flyTo(w,q){var Q;if(!w.essential&&l.prefersReducedMotion){let Ua=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Ua,q)}this.stop(),w=a.e({offset:[0,0],speed:1.2,curve:1.42,easing:a.b9},w);let ee=this._getTransformForUpdate(),ue=ee.zoom,Ge=ee.bearing,et=ee.pitch,mt=ee.padding,Ft="bearing"in w?this._normalizeBearing(w.bearing,Ge):Ge,ir="pitch"in w?+w.pitch:et,or="padding"in w?w.padding:ee.padding,kr=a.P.convert(w.offset),Vr=ee.centerPoint.add(kr),he=ee.pointLocation(Vr),{center:Se,zoom:qe}=ee.getConstrained(a.N.convert(w.center||he),(Q=w.zoom)!==null&&Q!==void 0?Q:ue);this._normalizeCenter(Se,ee);let He=ee.zoomScale(qe-ue),lt=ee.project(he),tt=ee.project(Se).sub(lt),pt=w.curve,Ht=Math.max(ee.width,ee.height),nr=Ht/He,fr=tt.mag();if("minZoom"in w){let Ua=a.ac(Math.min(w.minZoom,ue,qe),ee.minZoom,ee.maxZoom),Fo=Ht/ee.zoomScale(Ua-ue);pt=Math.sqrt(Fo/fr*2)}let Ar=pt*pt;function Rr(Ua){let Fo=(nr*nr-Ht*Ht+(Ua?-1:1)*Ar*Ar*fr*fr)/(2*(Ua?nr:Ht)*Ar*fr);return Math.log(Math.sqrt(Fo*Fo+1)-Fo)}function ri(Ua){return(Math.exp(Ua)-Math.exp(-Ua))/2}function si(Ua){return(Math.exp(Ua)+Math.exp(-Ua))/2}let Mi=Rr(!1),hn=function(Ua){return si(Mi)/si(Mi+pt*Ua)},Zn=function(Ua){return Ht*((si(Mi)*(ri(Fo=Mi+pt*Ua)/si(Fo))-ri(Mi))/Ar)/fr;var Fo},Yn=(Rr(!0)-Mi)/pt;if(Math.abs(fr)<1e-6||!isFinite(Yn)){if(Math.abs(Ht-nr)<1e-6)return this.easeTo(w,q);let Ua=nr0,hn=Fo=>Math.exp(Ua*pt*Fo)}return w.duration="duration"in w?+w.duration:1e3*Yn/("screenSpeed"in w?+w.screenSpeed/pt:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=Ge!==Ft,this._pitching=ir!==et,this._padding=!ee.isPaddingEqual(or),this._prepareEase(q,!1),this.terrain&&this._prepareElevation(Se),this._ease(Ua=>{let Fo=Ua*Yn,vl=1/hn(Fo);ee.zoom=Ua===1?qe:ue+ee.scaleZoom(vl),this._rotating&&(ee.bearing=a.y.number(Ge,Ft,Ua)),this._pitching&&(ee.pitch=a.y.number(et,ir,Ua)),this._padding&&(ee.interpolatePadding(mt,or,Ua),Vr=ee.centerPoint.add(kr)),this.terrain&&!w.freezeElevation&&this._updateElevation(Ua);let Us=Ua===1?Se:ee.unproject(lt.add(tt.mult(Zn(Fo))).mult(vl));ee.setLocationAtPoint(ee.renderWorldCopies?Us.wrap():Us,Vr),this._applyUpdatedTransform(ee),this._fireMoveEvents(q)},()=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(q)},w),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(w,q){var Q;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let ee=this._onEaseEnd;delete this._onEaseEnd,ee.call(this,q)}return w||(Q=this.handlers)===null||Q===void 0||Q.stop(!1),this}_ease(w,q,Q){Q.animate===!1||Q.duration===0?(w(1),q()):(this._easeStart=l.now(),this._easeOptions=Q,this._onEaseFrame=w,this._onEaseEnd=q,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(w,q){w=a.b3(w,-180,180);let Q=Math.abs(w-q);return Math.abs(w-360-q)180?-360:Q<-180?360:0}queryTerrainElevation(w){return this.terrain?this.terrain.getElevationForLngLatZoom(a.N.convert(w),this.transform.tileZoom)-this.transform.elevation:null}}let ia={compact:!0,customAttribution:'MapLibre'};class pa{constructor(w=ia){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=q=>{!q||q.sourceDataType!=="metadata"&&q.sourceDataType!=="visibility"&&q.dataType!=="style"&&q.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=w}getDefaultPosition(){return"bottom-right"}onAdd(w){return this._map=w,this._compact=this.options.compact,this._container=f.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=f.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=f.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){f.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(w,q){let Q=this._map._getUIString(`AttributionControl.${q}`);w.title=Q,w.setAttribute("aria-label",Q)}_updateAttributions(){if(!this._map.style)return;let w=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?w=w.concat(this.options.customAttribution.map(ee=>typeof ee!="string"?"":ee)):typeof this.options.customAttribution=="string"&&w.push(this.options.customAttribution)),this._map.style.stylesheet){let ee=this._map.style.stylesheet;this.styleOwner=ee.owner,this.styleId=ee.id}let q=this._map.style.sourceCaches;for(let ee in q){let ue=q[ee];if(ue.used||ue.usedForTerrain){let Ge=ue.getSource();Ge.attribution&&w.indexOf(Ge.attribution)<0&&w.push(Ge.attribution)}}w=w.filter(ee=>String(ee).trim()),w.sort((ee,ue)=>ee.length-ue.length),w=w.filter((ee,ue)=>{for(let Ge=ue+1;Ge=0)return!1;return!0});let Q=w.join(" | ");Q!==this._attribHTML&&(this._attribHTML=Q,w.length?(this._innerContainer.innerHTML=Q,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class va{constructor(w={}){this._updateCompact=()=>{let q=this._container.children;if(q.length){let Q=q[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&Q.classList.add("maplibregl-compact"):Q.classList.remove("maplibregl-compact")}},this.options=w}getDefaultPosition(){return"bottom-left"}onAdd(w){this._map=w,this._compact=this.options&&this.options.compact,this._container=f.create("div","maplibregl-ctrl");let q=f.create("a","maplibregl-ctrl-logo");return q.target="_blank",q.rel="noopener nofollow",q.href="https://maplibre.org/",q.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),q.setAttribute("rel","noopener nofollow"),this._container.appendChild(q),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){f.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class zn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(w){let q=++this._id;return this._queue.push({callback:w,id:q,cancelled:!1}),q}remove(w){let q=this._currentlyRunning,Q=q?this._queue.concat(q):this._queue;for(let ee of Q)if(ee.id===w)return void(ee.cancelled=!0)}run(w=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let q=this._currentlyRunning=this._queue;this._queue=[];for(let Q of q)if(!Q.cancelled&&(Q.callback(w),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var is=a.Y([{name:"a_pos3d",type:"Int16",components:3}]);class Cs extends a.E{constructor(w){super(),this.sourceCache=w,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,w.usedForTerrain=!0,w.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(w,q){this.sourceCache.update(w,q),this._renderableTilesKeys=[];let Q={};for(let ee of w.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:q}))Q[ee.key]=!0,this._renderableTilesKeys.push(ee.key),this._tiles[ee.key]||(ee.posMatrix=new Float64Array(16),a.aP(ee.posMatrix,0,a.X,0,a.X,0,1),this._tiles[ee.key]=new vt(ee,this.tileSize));for(let ee in this._tiles)Q[ee]||delete this._tiles[ee]}freeRtt(w){for(let q in this._tiles){let Q=this._tiles[q];(!w||Q.tileID.equals(w)||Q.tileID.isChildOf(w)||w.isChildOf(Q.tileID))&&(Q.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(w=>this.getTileByID(w))}getTileByID(w){return this._tiles[w]}getTerrainCoords(w){let q={};for(let Q of this._renderableTilesKeys){let ee=this._tiles[Q].tileID;if(ee.canonical.equals(w.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16),a.aP(ue.posMatrix,0,a.X,0,a.X,0,1),q[Q]=ue}else if(ee.canonical.isChildOf(w.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16);let Ge=ee.canonical.z-w.canonical.z,et=ee.canonical.x-(ee.canonical.x>>Ge<>Ge<>Ge;a.aP(ue.posMatrix,0,Ft,0,Ft,0,1),a.J(ue.posMatrix,ue.posMatrix,[-et*Ft,-mt*Ft,0]),q[Q]=ue}else if(w.canonical.isChildOf(ee.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16);let Ge=w.canonical.z-ee.canonical.z,et=w.canonical.x-(w.canonical.x>>Ge<>Ge<>Ge;a.aP(ue.posMatrix,0,a.X,0,a.X,0,1),a.J(ue.posMatrix,ue.posMatrix,[et*Ft,mt*Ft,0]),a.K(ue.posMatrix,ue.posMatrix,[1/2**Ge,1/2**Ge,0]),q[Q]=ue}}return q}getSourceTile(w,q){let Q=this.sourceCache._source,ee=w.overscaledZ-this.deltaZoom;if(ee>Q.maxzoom&&(ee=Q.maxzoom),ee=Q.minzoom&&(!ue||!ue.dem);)ue=this.sourceCache.getTileByID(w.scaledTo(ee--).key);return ue}tilesAfterTime(w=Date.now()){return Object.values(this._tiles).filter(q=>q.timeAdded>=w)}}class Ks{constructor(w,q,Q){this.painter=w,this.sourceCache=new Cs(q),this.options=Q,this.exaggeration=typeof Q.exaggeration=="number"?Q.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(w,q,Q,ee=a.X){var ue;if(!(q>=0&&q=0&&Qw.canonical.z&&(w.canonical.z>=ee?ue=w.canonical.z-ee:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let Ge=w.canonical.x-(w.canonical.x>>ue<>ue<>8<<4|ue>>8,q[Ge+3]=0;let Q=new a.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(q.buffer)),ee=new m(w,Q,w.gl.RGBA,{premultiply:!1});return ee.bind(w.gl.NEAREST,w.gl.CLAMP_TO_EDGE),this._coordsTexture=ee,ee}pointCoordinate(w){this.painter.maybeDrawDepthAndCoords(!0);let q=new Uint8Array(4),Q=this.painter.context,ee=Q.gl,ue=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),Ge=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),et=Math.round(this.painter.height/devicePixelRatio);Q.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(ue,et-Ge-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,q),Q.bindFramebuffer.set(null);let mt=q[0]+(q[2]>>4<<8),Ft=q[1]+((15&q[2])<<8),ir=this.coordsIndex[255-q[3]],or=ir&&this.sourceCache.getTileByID(ir);if(!or)return null;let kr=this._coordsTextureSize,Vr=(1<w.id!==q),this._recentlyUsed.push(w.id)}stampObject(w){w.stamp=++this._stamp}getOrCreateFreeObject(){for(let q of this._recentlyUsed)if(!this._objects[q].inUse)return this._objects[q];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let w=this._createObject(this._objects.length);return this._objects.push(w),w}freeObject(w){w.inUse=!1}freeAllObjects(){for(let w of this._objects)this.freeObject(w)}isFull(){return!(this._objects.length!w.inUse)===!1}}let xl={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Ol{constructor(w,q){this.painter=w,this.terrain=q,this.pool=new dl(w.context,30,q.sourceCache.tileSize*q.qualityFactor)}destruct(){this.pool.destruct()}getTexture(w){return this.pool.getObjectForId(w.rtt[this._stacks.length-1].id).texture}prepareForRender(w,q){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=w._order.filter(Q=>!w._layers[Q].isHidden(q)),this._coordsDescendingInv={};for(let Q in w.sourceCaches){this._coordsDescendingInv[Q]={};let ee=w.sourceCaches[Q].getVisibleCoordinates();for(let ue of ee){let Ge=this.terrain.sourceCache.getTerrainCoords(ue);for(let et in Ge)this._coordsDescendingInv[Q][et]||(this._coordsDescendingInv[Q][et]=[]),this._coordsDescendingInv[Q][et].push(Ge[et])}}this._coordsDescendingInvStr={};for(let Q of w._order){let ee=w._layers[Q],ue=ee.source;if(xl[ee.type]&&!this._coordsDescendingInvStr[ue]){this._coordsDescendingInvStr[ue]={};for(let Ge in this._coordsDescendingInv[ue])this._coordsDescendingInvStr[ue][Ge]=this._coordsDescendingInv[ue][Ge].map(et=>et.key).sort().join()}}for(let Q of this._renderableTiles)for(let ee in this._coordsDescendingInvStr){let ue=this._coordsDescendingInvStr[ee][Q.tileID.key];ue&&ue!==Q.rttCoords[ee]&&(Q.rtt=[])}}renderLayer(w){if(w.isHidden(this.painter.transform.zoom))return!1;let q=w.type,Q=this.painter,ee=this._renderableLayerIds[this._renderableLayerIds.length-1]===w.id;if(xl[q]&&(this._prevType&&xl[this._prevType]||this._stacks.push([]),this._prevType=q,this._stacks[this._stacks.length-1].push(w.id),!ee))return!0;if(xl[this._prevType]||xl[q]&&ee){this._prevType=q;let ue=this._stacks.length-1,Ge=this._stacks[ue]||[];for(let et of this._renderableTiles){if(this.pool.isFull()&&(as(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(et),et.rtt[ue]){let Ft=this.pool.getObjectForId(et.rtt[ue].id);if(Ft.stamp===et.rtt[ue].stamp){this.pool.useObject(Ft);continue}}let mt=this.pool.getOrCreateFreeObject();this.pool.useObject(mt),this.pool.stampObject(mt),et.rtt[ue]={id:mt.id,stamp:mt.stamp},Q.context.bindFramebuffer.set(mt.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Ft=0;Ft{le.touchstart=le.dragStart,le.touchmoveWindow=le.dragMove,le.touchend=le.dragEnd},ja={showCompass:!0,showZoom:!0,visualizePitch:!1};class ns{constructor(w,q,Q=!1){this.mousedown=Ge=>{this.startMouse(a.e({},Ge,{ctrlKey:!0,preventDefault:()=>Ge.preventDefault()}),f.mousePos(this.element,Ge)),f.addEventListener(window,"mousemove",this.mousemove),f.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=Ge=>{this.moveMouse(Ge,f.mousePos(this.element,Ge))},this.mouseup=Ge=>{this.mouseRotate.dragEnd(Ge),this.mousePitch&&this.mousePitch.dragEnd(Ge),this.offTemp()},this.touchstart=Ge=>{Ge.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=f.touchPos(this.element,Ge.targetTouches)[0],this.startTouch(Ge,this._startPos),f.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.addEventListener(window,"touchend",this.touchend))},this.touchmove=Ge=>{Ge.targetTouches.length!==1?this.reset():(this._lastPos=f.touchPos(this.element,Ge.targetTouches)[0],this.moveTouch(Ge,this._lastPos))},this.touchend=Ge=>{Ge.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let ee=w.dragRotate._mouseRotate.getClickTolerance(),ue=w.dragRotate._mousePitch.getClickTolerance();this.element=q,this.mouseRotate=Hs({clickTolerance:ee,enable:!0}),this.touchRotate=(({enable:Ge,clickTolerance:et,bearingDegreesPerPixelMoved:mt=.8})=>{let Ft=new cl;return new Da({clickTolerance:et,move:(ir,or)=>({bearingDelta:(or.x-ir.x)*mt}),moveStateManager:Ft,enable:Ge,assignEvents:Vl})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=Ro({clickTolerance:ue,enable:!0}),this.touchPitch=(({enable:Ge,clickTolerance:et,pitchDegreesPerPixelMoved:mt=-.5})=>{let Ft=new cl;return new Da({clickTolerance:et,move:(ir,or)=>({pitchDelta:(or.y-ir.y)*mt}),moveStateManager:Ft,enable:Ge,assignEvents:Vl})})({clickTolerance:ue,enable:!0})),f.addEventListener(q,"mousedown",this.mousedown),f.addEventListener(q,"touchstart",this.touchstart,{passive:!1}),f.addEventListener(q,"touchcancel",this.reset)}startMouse(w,q){this.mouseRotate.dragStart(w,q),this.mousePitch&&this.mousePitch.dragStart(w,q),f.disableDrag()}startTouch(w,q){this.touchRotate.dragStart(w,q),this.touchPitch&&this.touchPitch.dragStart(w,q),f.disableDrag()}moveMouse(w,q){let Q=this.map,{bearingDelta:ee}=this.mouseRotate.dragMove(w,q)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.mousePitch){let{pitchDelta:ue}=this.mousePitch.dragMove(w,q)||{};ue&&Q.setPitch(Q.getPitch()+ue)}}moveTouch(w,q){let Q=this.map,{bearingDelta:ee}=this.touchRotate.dragMove(w,q)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.touchPitch){let{pitchDelta:ue}=this.touchPitch.dragMove(w,q)||{};ue&&Q.setPitch(Q.getPitch()+ue)}}off(){let w=this.element;f.removeEventListener(w,"mousedown",this.mousedown),f.removeEventListener(w,"touchstart",this.touchstart,{passive:!1}),f.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.removeEventListener(window,"touchend",this.touchend),f.removeEventListener(w,"touchcancel",this.reset),this.offTemp()}offTemp(){f.enableDrag(),f.removeEventListener(window,"mousemove",this.mousemove),f.removeEventListener(window,"mouseup",this.mouseup),f.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.removeEventListener(window,"touchend",this.touchend)}}let Js;function cs(le,w,q){let Q=new a.N(le.lng,le.lat);if(le=new a.N(le.lng,le.lat),w){let ee=new a.N(le.lng-360,le.lat),ue=new a.N(le.lng+360,le.lat),Ge=q.locationPoint(le).distSqr(w);q.locationPoint(ee).distSqr(w)180;){let ee=q.locationPoint(le);if(ee.x>=0&&ee.y>=0&&ee.x<=q.width&&ee.y<=q.height)break;le.lng>q.center.lng?le.lng-=360:le.lng+=360}return le.lng!==Q.lng&&q.locationPoint(le).y>q.height/2-q.getHorizon()?le:Q}let sl={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ll(le,w,q){let Q=le.classList;for(let ee in sl)Q.remove(`maplibregl-${q}-anchor-${ee}`);Q.add(`maplibregl-${q}-anchor-${w}`)}class il extends a.E{constructor(w){if(super(),this._onKeyPress=q=>{let Q=q.code,ee=q.charCode||q.keyCode;Q!=="Space"&&Q!=="Enter"&&ee!==32&&ee!==13||this.togglePopup()},this._onMapClick=q=>{let Q=q.originalEvent.target,ee=this._element;this._popup&&(Q===ee||ee.contains(Q))&&this.togglePopup()},this._update=q=>{var Q;if(!this._map)return;let ee=this._map.loaded()&&!this._map.isMoving();((q==null?void 0:q.type)==="terrain"||(q==null?void 0:q.type)==="render"&&!ee)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?cs(this._lngLat,this._flatPos,this._map.transform):(Q=this._lngLat)===null||Q===void 0?void 0:Q.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let ue="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?ue=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(ue=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let Ge="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?Ge="rotateX(0deg)":this._pitchAlignment==="map"&&(Ge=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||q&&q.type!=="moveend"||(this._pos=this._pos.round()),f.setTransform(this._element,`${sl[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${Ge} ${ue}`),l.frameAsync(new AbortController).then(()=>{this._updateOpacity(q&&q.type==="moveend")}).catch(()=>{})},this._onMove=q=>{if(!this._isDragging){let Q=this._clickTolerance||this._map._clickTolerance;this._isDragging=q.point.dist(this._pointerdownPos)>=Q}this._isDragging&&(this._pos=q.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.k("dragstart"))),this.fire(new a.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.k("dragend")),this._state="inactive"},this._addDragHandler=q=>{this._element.contains(q.originalEvent.target)&&(q.preventDefault(),this._positionDelta=q.point.sub(this._pos).add(this._offset),this._pointerdownPos=q.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=w&&w.anchor||"center",this._color=w&&w.color||"#3FB1CE",this._scale=w&&w.scale||1,this._draggable=w&&w.draggable||!1,this._clickTolerance=w&&w.clickTolerance||0,this._subpixelPositioning=w&&w.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=w&&w.rotation||0,this._rotationAlignment=w&&w.rotationAlignment||"auto",this._pitchAlignment=w&&w.pitchAlignment&&w.pitchAlignment!=="auto"?w.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(w==null?void 0:w.opacity,w==null?void 0:w.opacityWhenCovered),w&&w.element)this._element=w.element,this._offset=a.P.convert(w&&w.offset||[0,0]);else{this._defaultMarker=!0,this._element=f.create("div");let q=f.createNS("http://www.w3.org/2000/svg","svg"),Q=41,ee=27;q.setAttributeNS(null,"display","block"),q.setAttributeNS(null,"height",`${Q}px`),q.setAttributeNS(null,"width",`${ee}px`),q.setAttributeNS(null,"viewBox",`0 0 ${ee} ${Q}`);let ue=f.createNS("http://www.w3.org/2000/svg","g");ue.setAttributeNS(null,"stroke","none"),ue.setAttributeNS(null,"stroke-width","1"),ue.setAttributeNS(null,"fill","none"),ue.setAttributeNS(null,"fill-rule","evenodd");let Ge=f.createNS("http://www.w3.org/2000/svg","g");Ge.setAttributeNS(null,"fill-rule","nonzero");let et=f.createNS("http://www.w3.org/2000/svg","g");et.setAttributeNS(null,"transform","translate(3.0, 29.0)"),et.setAttributeNS(null,"fill","#000000");let mt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let He of mt){let lt=f.createNS("http://www.w3.org/2000/svg","ellipse");lt.setAttributeNS(null,"opacity","0.04"),lt.setAttributeNS(null,"cx","10.5"),lt.setAttributeNS(null,"cy","5.80029008"),lt.setAttributeNS(null,"rx",He.rx),lt.setAttributeNS(null,"ry",He.ry),et.appendChild(lt)}let Ft=f.createNS("http://www.w3.org/2000/svg","g");Ft.setAttributeNS(null,"fill",this._color);let ir=f.createNS("http://www.w3.org/2000/svg","path");ir.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),Ft.appendChild(ir);let or=f.createNS("http://www.w3.org/2000/svg","g");or.setAttributeNS(null,"opacity","0.25"),or.setAttributeNS(null,"fill","#000000");let kr=f.createNS("http://www.w3.org/2000/svg","path");kr.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),or.appendChild(kr);let Vr=f.createNS("http://www.w3.org/2000/svg","g");Vr.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Vr.setAttributeNS(null,"fill","#FFFFFF");let he=f.createNS("http://www.w3.org/2000/svg","g");he.setAttributeNS(null,"transform","translate(8.0, 8.0)");let Se=f.createNS("http://www.w3.org/2000/svg","circle");Se.setAttributeNS(null,"fill","#000000"),Se.setAttributeNS(null,"opacity","0.25"),Se.setAttributeNS(null,"cx","5.5"),Se.setAttributeNS(null,"cy","5.5"),Se.setAttributeNS(null,"r","5.4999962");let qe=f.createNS("http://www.w3.org/2000/svg","circle");qe.setAttributeNS(null,"fill","#FFFFFF"),qe.setAttributeNS(null,"cx","5.5"),qe.setAttributeNS(null,"cy","5.5"),qe.setAttributeNS(null,"r","5.4999962"),he.appendChild(Se),he.appendChild(qe),Ge.appendChild(et),Ge.appendChild(Ft),Ge.appendChild(or),Ge.appendChild(Vr),Ge.appendChild(he),q.appendChild(Ge),q.setAttributeNS(null,"height",Q*this._scale+"px"),q.setAttributeNS(null,"width",ee*this._scale+"px"),this._element.appendChild(q),this._offset=a.P.convert(w&&w.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",q=>{q.preventDefault()}),this._element.addEventListener("mousedown",q=>{q.preventDefault()}),ll(this._element,this._anchor,"marker"),w&&w.className)for(let q of w.className.split(" "))this._element.classList.add(q);this._popup=null}addTo(w){return this.remove(),this._map=w,this._element.setAttribute("aria-label",w._getUIString("Marker.Title")),w.getCanvasContainer().appendChild(this._element),w.on("move",this._update),w.on("moveend",this._update),w.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),f.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(w){return this._lngLat=a.N.convert(w),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(w){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),w){if(!("offset"in w.options)){let ee=Math.abs(13.5)/Math.SQRT2;w.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[ee,-1*(38.1-13.5+ee)],"bottom-right":[-ee,-1*(38.1-13.5+ee)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=w,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(w){return this._subpixelPositioning=w,this}getPopup(){return this._popup}togglePopup(){let w=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:w?(w.isOpen()?w.remove():(w.setLngLat(this._lngLat),w.addTo(this._map)),this):this}_updateOpacity(w=!1){var q,Q;if(!(!((q=this._map)===null||q===void 0)&&q.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(w)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}let ee=this._map,ue=ee.terrain.depthAtPoint(this._pos),Ge=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,Ge)-ue<.006)return void(this._element.style.opacity=this._opacity);let et=-this._offset.y/ee.transform._pixelPerMeter,mt=Math.sin(ee.getPitch()*Math.PI/180)*et,Ft=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),ir=ee.transform.lngLatToCameraDepth(this._lngLat,Ge+mt)-Ft>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&ir&&this._popup.remove(),this._element.style.opacity=ir?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(w){return this._offset=a.P.convert(w),this._update(),this}addClassName(w){this._element.classList.add(w)}removeClassName(w){this._element.classList.remove(w)}toggleClassName(w){return this._element.classList.toggle(w)}setDraggable(w){return this._draggable=!!w,this._map&&(w?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(w){return this._rotation=w||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(w){return this._rotationAlignment=w||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(w){return this._pitchAlignment=w&&w!=="auto"?w:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(w,q){return w===void 0&&q===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),w!==void 0&&(this._opacity=w),q!==void 0&&(this._opacityWhenCovered=q),this._map&&this._updateOpacity(!0),this}}let zl={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Ml=0,Rl=!1,Al={maxWidth:100,unit:"metric"};function Ll(le,w,q){let Q=q&&q.maxWidth||100,ee=le._container.clientHeight/2,ue=le.unproject([0,ee]),Ge=le.unproject([Q,ee]),et=ue.distanceTo(Ge);if(q&&q.unit==="imperial"){let mt=3.2808*et;mt>5280?ms(w,Q,mt/5280,le._getUIString("ScaleControl.Miles")):ms(w,Q,mt,le._getUIString("ScaleControl.Feet"))}else q&&q.unit==="nautical"?ms(w,Q,et/1852,le._getUIString("ScaleControl.NauticalMiles")):et>=1e3?ms(w,Q,et/1e3,le._getUIString("ScaleControl.Kilometers")):ms(w,Q,et,le._getUIString("ScaleControl.Meters"))}function ms(le,w,q,Q){let ee=function(ue){let Ge=Math.pow(10,`${Math.floor(ue)}`.length-1),et=ue/Ge;return et=et>=10?10:et>=5?5:et>=3?3:et>=2?2:et>=1?1:function(mt){let Ft=Math.pow(10,Math.ceil(-Math.log(mt)/Math.LN10));return Math.round(mt*Ft)/Ft}(et),Ge*et}(q);le.style.width=w*(ee/q)+"px",le.innerHTML=`${ee} ${Q}`}let Os={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Xl=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function Gl(le){if(le){if(typeof le=="number"){let w=Math.round(Math.abs(le)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,le),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-le),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(le,0),right:new a.P(-le,0)}}if(le instanceof a.P||Array.isArray(le)){let w=a.P.convert(le);return{center:w,top:w,"top-left":w,"top-right":w,bottom:w,"bottom-left":w,"bottom-right":w,left:w,right:w}}return{center:a.P.convert(le.center||[0,0]),top:a.P.convert(le.top||[0,0]),"top-left":a.P.convert(le["top-left"]||[0,0]),"top-right":a.P.convert(le["top-right"]||[0,0]),bottom:a.P.convert(le.bottom||[0,0]),"bottom-left":a.P.convert(le["bottom-left"]||[0,0]),"bottom-right":a.P.convert(le["bottom-right"]||[0,0]),left:a.P.convert(le.left||[0,0]),right:a.P.convert(le.right||[0,0])}}return Gl(new a.P(0,0))}let Ul=o;i.AJAXError=a.bh,i.Evented=a.E,i.LngLat=a.N,i.MercatorCoordinate=a.Z,i.Point=a.P,i.addProtocol=a.bi,i.config=a.a,i.removeProtocol=a.bj,i.AttributionControl=pa,i.BoxZoomHandler=ss,i.CanvasSource=St,i.CooperativeGesturesHandler=hi,i.DoubleClickZoomHandler=gi,i.DragPanHandler=Ji,i.DragRotateHandler=Fn,i.EdgeInsets=Vo,i.FullscreenControl=class extends a.E{constructor(le={}){super(),this._onFullscreenChange=()=>{var w;let q=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((w=q==null?void 0:q.shadowRoot)===null||w===void 0)&&w.fullscreenElement;)q=q.shadowRoot.fullscreenElement;q===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,le&&le.container&&(le.container instanceof HTMLElement?this._container=le.container:a.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(le){return this._map=le,this._container||(this._container=this._map.getContainer()),this._controlContainer=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){f.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let le=this._fullscreenButton=f.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);f.create("span","maplibregl-ctrl-icon",le).setAttribute("aria-hidden","true"),le.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let le=this._getTitle();this._fullscreenButton.setAttribute("aria-label",le),this._fullscreenButton.title=le}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new a.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new a.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},i.GeoJSONSource=it,i.GeolocateControl=class extends a.E{constructor(le){super(),this._onSuccess=w=>{if(this._map){if(this._isOutOfMapMaxBounds(w))return this._setErrorState(),this.fire(new a.k("outofmaxbounds",w)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=w,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(w),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(w),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new a.k("geolocate",w)),this._finish()}},this._updateCamera=w=>{let q=new a.N(w.coords.longitude,w.coords.latitude),Q=w.coords.accuracy,ee=this._map.getBearing(),ue=a.e({bearing:ee},this.options.fitBoundsOptions),Ge=ce.fromLngLat(q,Q);this._map.fitBounds(Ge,ue,{geolocateSource:!0})},this._updateMarker=w=>{if(w){let q=new a.N(w.coords.longitude,w.coords.latitude);this._accuracyCircleMarker.setLngLat(q).addTo(this._map),this._userLocationDotMarker.setLngLat(q).addTo(this._map),this._accuracy=w.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=w=>{if(this._map){if(this.options.trackUserLocation)if(w.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let q=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(w.code===3&&Rl)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new a.k("error",w)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",w=>w.preventDefault()),this._geolocateButton=f.create("button","maplibregl-ctrl-geolocate",this._container),f.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=w=>{if(this._map){if(w===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");let q=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q)}else{let q=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=f.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new il({element:this._dotElement}),this._circleElement=f.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new il({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",q=>{q.geolocateSource||this._watchState!=="ACTIVE_LOCK"||q.originalEvent&&q.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new a.k("trackuserlocationend")),this.fire(new a.k("userlocationlostfocus")))})}},this.options=a.e({},zl,le)}onAdd(le){return this._map=le,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return a._(this,arguments,void 0,function*(w=!1){if(Js!==void 0&&!w)return Js;if(window.navigator.permissions===void 0)return Js=!!window.navigator.geolocation,Js;try{Js=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(q){Js=!!window.navigator.geolocation}return Js})}().then(w=>this._finishSetupUI(w)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),f.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Ml=0,Rl=!1}_isOutOfMapMaxBounds(le){let w=this._map.getMaxBounds(),q=le.coords;return w&&(q.longitudew.getEast()||q.latitudew.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let le=this._map.getBounds(),w=le.getSouthEast(),q=le.getNorthEast(),Q=w.distanceTo(q),ee=Math.ceil(this._accuracy/(Q/this._map._container.clientHeight)*2);this._circleElement.style.width=`${ee}px`,this._circleElement.style.height=`${ee}px`}trigger(){if(!this._setup)return a.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Ml--,Rl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new a.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.k("trackuserlocationstart")),this.fire(new a.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let le;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Ml++,Ml>1?(le={maximumAge:6e5,timeout:0},Rl=!0):(le=this.options.positionOptions,Rl=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,le)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},i.Hash=ks,i.ImageSource=kt,i.KeyboardHandler=Gt,i.LngLatBounds=ce,i.LogoControl=va,i.Map=class extends ya{constructor(le){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Zl),le);if(w.minZoom!=null&&w.maxZoom!=null&&w.minZoom>w.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(w.minPitch!=null&&w.maxPitch!=null&&w.minPitch>w.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(w.minPitch!=null&&w.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(w.maxPitch!=null&&w.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Lo(w.minZoom,w.maxZoom,w.minPitch,w.maxPitch,w.renderWorldCopies),{bearingSnap:w.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new zn,this._controls=[],this._mapId=a.a4(),this._contextLost=q=>{q.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new a.k("webglcontextlost",{originalEvent:q}))},this._contextRestored=q=>{this._setupPainter(),this.resize(),this._update(),this.fire(new a.k("webglcontextrestored",{originalEvent:q}))},this._onMapScroll=q=>{if(q.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=w.interactive,this._maxTileCacheSize=w.maxTileCacheSize,this._maxTileCacheZoomLevels=w.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=w.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=w.preserveDrawingBuffer===!0,this._antialias=w.antialias===!0,this._trackResize=w.trackResize===!0,this._bearingSnap=w.bearingSnap,this._refreshExpiredTiles=w.refreshExpiredTiles===!0,this._fadeDuration=w.fadeDuration,this._crossSourceCollisions=w.crossSourceCollisions===!0,this._collectResourceTiming=w.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},bl),w.locale),this._clickTolerance=w.clickTolerance,this._overridePixelRatio=w.pixelRatio,this._maxCanvasSize=w.maxCanvasSize,this.transformCameraUpdate=w.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=w.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=v.addThrottleControl(()=>this.isMoving()),this._requestManager=new k(w.transformRequest),typeof w.container=="string"){if(this._container=document.getElementById(w.container),!this._container)throw new Error(`Container '${w.container}' not found.`)}else{if(!(w.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=w.container}if(w.maxBounds&&this.setMaxBounds(w.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window!="undefined"){addEventListener("online",this._onWindowOnline,!1);let q=!1,Q=xs(ee=>{this._trackResize&&!this._removed&&(this.resize(ee),this.redraw())},50);this._resizeObserver=new ResizeObserver(ee=>{q?Q(ee):q=!0}),this._resizeObserver.observe(this._container)}this.handlers=new ta(this,w),this._hash=w.hash&&new ks(typeof w.hash=="string"&&w.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:w.center,zoom:w.zoom,bearing:w.bearing,pitch:w.pitch}),w.bounds&&(this.resize(),this.fitBounds(w.bounds,a.e({},w.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=w.localIdeographFontFamily,this._validateStyle=w.validateStyle,w.style&&this.setStyle(w.style,{localIdeographFontFamily:w.localIdeographFontFamily}),w.attributionControl&&this.addControl(new pa(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new va,w.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",q=>{this._update(q.dataType==="style"),this.fire(new a.k(`${q.dataType}data`,q))}),this.on("dataloading",q=>{this.fire(new a.k(`${q.dataType}dataloading`,q))}),this.on("dataabort",q=>{this.fire(new a.k("sourcedataabort",q))})}_getMapId(){return this._mapId}addControl(le,w){if(w===void 0&&(w=le.getDefaultPosition?le.getDefaultPosition():"top-right"),!le||!le.onAdd)return this.fire(new a.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let q=le.onAdd(this);this._controls.push(le);let Q=this._controlPositions[w];return w.indexOf("bottom")!==-1?Q.insertBefore(q,Q.firstChild):Q.appendChild(q),this}removeControl(le){if(!le||!le.onRemove)return this.fire(new a.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let w=this._controls.indexOf(le);return w>-1&&this._controls.splice(w,1),le.onRemove(this),this}hasControl(le){return this._controls.indexOf(le)>-1}calculateCameraOptionsFromTo(le,w,q,Q){return Q==null&&this.terrain&&(Q=this.terrain.getElevationForLngLatZoom(q,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(le,w,q,Q)}resize(le){var w;let q=this._containerDimensions(),Q=q[0],ee=q[1],ue=this._getClampedPixelRatio(Q,ee);if(this._resizeCanvas(Q,ee,ue),this.painter.resize(Q,ee,ue),this.painter.overLimit()){let et=this.painter.context.gl;this._maxCanvasSize=[et.drawingBufferWidth,et.drawingBufferHeight];let mt=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,mt),this.painter.resize(Q,ee,mt)}this.transform.resize(Q,ee),(w=this._requestedCameraState)===null||w===void 0||w.resize(Q,ee);let Ge=!this._moving;return Ge&&(this.stop(),this.fire(new a.k("movestart",le)).fire(new a.k("move",le))),this.fire(new a.k("resize",le)),Ge&&this.fire(new a.k("moveend",le)),this}_getClampedPixelRatio(le,w){let{0:q,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),ue=le*ee,Ge=w*ee;return Math.min(ue>q?q/ue:1,Ge>Q?Q/Ge:1)*ee}getPixelRatio(){var le;return(le=this._overridePixelRatio)!==null&&le!==void 0?le:devicePixelRatio}setPixelRatio(le){this._overridePixelRatio=le,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(le){return this.transform.setMaxBounds(ce.convert(le)),this._update()}setMinZoom(le){if((le=le==null?-2:le)>=-2&&le<=this.transform.maxZoom)return this.transform.minZoom=le,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=le,this._update(),this.getZoom()>le&&this.setZoom(le),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(le){if((le=le==null?0:le)<0)throw new Error("minPitch must be greater than or equal to 0");if(le>=0&&le<=this.transform.maxPitch)return this.transform.minPitch=le,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(le>=this.transform.minPitch)return this.transform.maxPitch=le,this._update(),this.getPitch()>le&&this.setPitch(le),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(le){return this.transform.renderWorldCopies=le,this._update()}project(le){return this.transform.locationPoint(a.N.convert(le),this.style&&this.terrain)}unproject(le){return this.transform.pointLocation(a.P.convert(le),this.terrain)}isMoving(){var le;return this._moving||((le=this.handlers)===null||le===void 0?void 0:le.isMoving())}isZooming(){var le;return this._zooming||((le=this.handlers)===null||le===void 0?void 0:le.isZooming())}isRotating(){var le;return this._rotating||((le=this.handlers)===null||le===void 0?void 0:le.isRotating())}_createDelegatedListener(le,w,q){if(le==="mouseenter"||le==="mouseover"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:ue=>{let Ge=w.filter(mt=>this.getLayer(mt)),et=Ge.length!==0?this.queryRenderedFeatures(ue.point,{layers:Ge}):[];et.length?Q||(Q=!0,q.call(this,new Aa(le,this,ue.originalEvent,{features:et}))):Q=!1},mouseout:()=>{Q=!1}}}}if(le==="mouseleave"||le==="mouseout"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:Ge=>{let et=w.filter(mt=>this.getLayer(mt));(et.length!==0?this.queryRenderedFeatures(Ge.point,{layers:et}):[]).length?Q=!0:Q&&(Q=!1,q.call(this,new Aa(le,this,Ge.originalEvent)))},mouseout:Ge=>{Q&&(Q=!1,q.call(this,new Aa(le,this,Ge.originalEvent)))}}}}{let Q=ee=>{let ue=w.filter(et=>this.getLayer(et)),Ge=ue.length!==0?this.queryRenderedFeatures(ee.point,{layers:ue}):[];Ge.length&&(ee.features=Ge,q.call(this,ee),delete ee.features)};return{layers:w,listener:q,delegates:{[le]:Q}}}}_saveDelegatedListener(le,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[le]=this._delegatedListeners[le]||[],this._delegatedListeners[le].push(w)}_removeDelegatedListener(le,w,q){if(!this._delegatedListeners||!this._delegatedListeners[le])return;let Q=this._delegatedListeners[le];for(let ee=0;eew.includes(Ge))){for(let Ge in ue.delegates)this.off(Ge,ue.delegates[Ge]);return void Q.splice(ee,1)}}}on(le,w,q){if(q===void 0)return super.on(le,w);let Q=this._createDelegatedListener(le,typeof w=="string"?[w]:w,q);this._saveDelegatedListener(le,Q);for(let ee in Q.delegates)this.on(ee,Q.delegates[ee]);return this}once(le,w,q){if(q===void 0)return super.once(le,w);let Q=typeof w=="string"?[w]:w,ee=this._createDelegatedListener(le,Q,q);for(let ue in ee.delegates){let Ge=ee.delegates[ue];ee.delegates[ue]=(...et)=>{this._removeDelegatedListener(le,Q,q),Ge(...et)}}this._saveDelegatedListener(le,ee);for(let ue in ee.delegates)this.once(ue,ee.delegates[ue]);return this}off(le,w,q){return q===void 0?super.off(le,w):(this._removeDelegatedListener(le,typeof w=="string"?[w]:w,q),this)}queryRenderedFeatures(le,w){if(!this.style)return[];let q,Q=le instanceof a.P||Array.isArray(le),ee=Q?le:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(Q?{}:le)||{},ee instanceof a.P||typeof ee[0]=="number")q=[a.P.convert(ee)];else{let ue=a.P.convert(ee[0]),Ge=a.P.convert(ee[1]);q=[ue,new a.P(Ge.x,ue.y),Ge,new a.P(ue.x,Ge.y),ue]}return this.style.queryRenderedFeatures(q,w,this.transform)}querySourceFeatures(le,w){return this.style.querySourceFeatures(le,w)}setStyle(le,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&le?(this._diffStyle(le,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(le,w))}setTransformRequest(le){return this._requestManager.setTransformRequest(le),this}_getUIString(le){let w=this._locale[le];if(w==null)throw new Error(`Missing UI string '${le}'`);return w}_updateStyle(le,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(le,w));let q=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!le)),le?(this.style=new xn(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof le=="string"?this.style.loadURL(le,w,q):this.style.loadJSON(le,w,q),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new xn(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(le,w){if(typeof le=="string"){let q=this._requestManager.transformRequest(le,"Style");a.h(q,new AbortController).then(Q=>{this._updateDiff(Q.data,w)}).catch(Q=>{Q&&this.fire(new a.j(Q))})}else typeof le=="object"&&this._updateDiff(le,w)}_updateDiff(le,w){try{this.style.setState(le,w)&&this._update(!0)}catch(q){a.w(`Unable to perform style diff: ${q.message||q.error||q}. Rebuilding the style from scratch.`),this._updateStyle(le,w)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.w("There is no style added to the map.")}addSource(le,w){return this._lazyInitEmptyStyle(),this.style.addSource(le,w),this._update(!0)}isSourceLoaded(le){let w=this.style&&this.style.sourceCaches[le];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${le}'`)))}setTerrain(le){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),le){let w=this.style.sourceCaches[le.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${le.source}`);this.terrain===null&&w.reload();for(let q in this.style._layers){let Q=this.style._layers[q];Q.type==="hillshade"&&Q.source===le.source&&a.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Ks(this.painter,w,le),this.painter.renderToTexture=new Ol(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=q=>{q.dataType==="style"?this.terrain.sourceCache.freeRtt():q.dataType==="source"&&q.tile&&(q.sourceId!==le.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(q.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new a.k("terrain",{terrain:le})),this}getTerrain(){var le,w;return(w=(le=this.terrain)===null||le===void 0?void 0:le.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let le=this.style&&this.style.sourceCaches;for(let w in le){let q=le[w]._tiles;for(let Q in q){let ee=q[Q];if(ee.state!=="loaded"&&ee.state!=="errored")return!1}}return!0}removeSource(le){return this.style.removeSource(le),this._update(!0)}getSource(le){return this.style.getSource(le)}addImage(le,w,q={}){let{pixelRatio:Q=1,sdf:ee=!1,stretchX:ue,stretchY:Ge,content:et,textFitWidth:mt,textFitHeight:Ft}=q;if(this._lazyInitEmptyStyle(),!(w instanceof HTMLImageElement||a.b(w))){if(w.width===void 0||w.height===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:ir,height:or,data:kr}=w,Vr=w;return this.style.addImage(le,{data:new a.R({width:ir,height:or},new Uint8Array(kr)),pixelRatio:Q,stretchX:ue,stretchY:Ge,content:et,textFitWidth:mt,textFitHeight:Ft,sdf:ee,version:0,userImage:Vr}),Vr.onAdd&&Vr.onAdd(this,le),this}}{let{width:ir,height:or,data:kr}=l.getImageData(w);this.style.addImage(le,{data:new a.R({width:ir,height:or},kr),pixelRatio:Q,stretchX:ue,stretchY:Ge,content:et,textFitWidth:mt,textFitHeight:Ft,sdf:ee,version:0})}}updateImage(le,w){let q=this.style.getImage(le);if(!q)return this.fire(new a.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let Q=w instanceof HTMLImageElement||a.b(w)?l.getImageData(w):w,{width:ee,height:ue,data:Ge}=Q;if(ee===void 0||ue===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(ee!==q.data.width||ue!==q.data.height)return this.fire(new a.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let et=!(w instanceof HTMLImageElement||a.b(w));return q.data.replace(Ge,et),this.style.updateImage(le,q),this}getImage(le){return this.style.getImage(le)}hasImage(le){return le?!!this.style.getImage(le):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(le){this.style.removeImage(le)}loadImage(le){return v.getImage(this._requestManager.transformRequest(le,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(le,w){return this._lazyInitEmptyStyle(),this.style.addLayer(le,w),this._update(!0)}moveLayer(le,w){return this.style.moveLayer(le,w),this._update(!0)}removeLayer(le){return this.style.removeLayer(le),this._update(!0)}getLayer(le){return this.style.getLayer(le)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(le,w,q){return this.style.setLayerZoomRange(le,w,q),this._update(!0)}setFilter(le,w,q={}){return this.style.setFilter(le,w,q),this._update(!0)}getFilter(le){return this.style.getFilter(le)}setPaintProperty(le,w,q,Q={}){return this.style.setPaintProperty(le,w,q,Q),this._update(!0)}getPaintProperty(le,w){return this.style.getPaintProperty(le,w)}setLayoutProperty(le,w,q,Q={}){return this.style.setLayoutProperty(le,w,q,Q),this._update(!0)}getLayoutProperty(le,w){return this.style.getLayoutProperty(le,w)}setGlyphs(le,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(le,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(le,w,q={}){return this._lazyInitEmptyStyle(),this.style.addSprite(le,w,q,Q=>{Q||this._update(!0)}),this}removeSprite(le){return this._lazyInitEmptyStyle(),this.style.removeSprite(le),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(le,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(le,w,q=>{q||this._update(!0)}),this}setLight(le,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(le,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(le){return this._lazyInitEmptyStyle(),this.style.setSky(le),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(le,w){return this.style.setFeatureState(le,w),this._update()}removeFeatureState(le,w){return this.style.removeFeatureState(le,w),this._update()}getFeatureState(le){return this.style.getFeatureState(le)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let le=0,w=0;return this._container&&(le=this._container.clientWidth||400,w=this._container.clientHeight||300),[le,w]}_setupContainer(){let le=this._container;le.classList.add("maplibregl-map");let w=this._canvasContainer=f.create("div","maplibregl-canvas-container",le);this._interactive&&w.classList.add("maplibregl-interactive"),this._canvas=f.create("canvas","maplibregl-canvas",w),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let q=this._containerDimensions(),Q=this._getClampedPixelRatio(q[0],q[1]);this._resizeCanvas(q[0],q[1],Q);let ee=this._controlContainer=f.create("div","maplibregl-control-container",le),ue=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(Ge=>{ue[Ge]=f.create("div",`maplibregl-ctrl-${Ge} `,ee)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(le,w,q){this._canvas.width=Math.floor(q*le),this._canvas.height=Math.floor(q*w),this._canvas.style.width=`${le}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let le={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},w=null;this._canvas.addEventListener("webglcontextcreationerror",Q=>{w={requestedAttributes:le},Q&&(w.statusMessage=Q.statusMessage,w.type=Q.type)},{once:!0});let q=this._canvas.getContext("webgl2",le)||this._canvas.getContext("webgl",le);if(!q){let Q="Failed to initialize WebGL";throw w?(w.message=Q,new Error(JSON.stringify(w))):new Error(Q)}this.painter=new Qs(q,this.transform),c.testSupport(q)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(le){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||le,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(le){return this._update(),this._renderTaskQueue.add(le)}_cancelRenderFrame(le){this._renderTaskQueue.remove(le)}_render(le){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(le),this._removed)return;let q=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let ee=this.transform.zoom,ue=l.now();this.style.zoomHistory.update(ee,ue);let Ge=new a.z(ee,{now:ue,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),et=Ge.crossFadingFactor();et===1&&et===this._crossFadingFactor||(q=!0,this._crossFadingFactor=et),this.style.update(Ge)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,showPadding:this.showPadding}),this.fire(new a.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,a.bf.mark(a.bg.load),this.fire(new a.k("load"))),this.style&&(this.style.hasTransitions()||q)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let Q=this._sourcesDirty||this._styleDirty||this._placementDirty;return Q||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new a.k("idle")),!this._loaded||this._fullyLoaded||Q||(this._fullyLoaded=!0,a.bf.mark(a.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var le;this._hash&&this._hash.remove();for(let q of this._controls)q.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window!="undefined"&&removeEventListener("online",this._onWindowOnline,!1),v.removeThrottleControl(this._imageQueueHandle),(le=this._resizeObserver)===null||le===void 0||le.disconnect();let w=this.painter.context.gl.getExtension("WEBGL_lose_context");w!=null&&w.loseContext&&w.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),f.remove(this._canvasContainer),f.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),a.bf.clearMetrics(),this._removed=!0,this.fire(new a.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,l.frameAsync(this._frameRequest).then(le=>{a.bf.frame(le),this._frameRequest=null,this._render(le)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(le){this._showTileBoundaries!==le&&(this._showTileBoundaries=le,this._update())}get showPadding(){return!!this._showPadding}set showPadding(le){this._showPadding!==le&&(this._showPadding=le,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(le){this._showCollisionBoxes!==le&&(this._showCollisionBoxes=le,le?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(le){this._showOverdrawInspector!==le&&(this._showOverdrawInspector=le,this._update())}get repaint(){return!!this._repaint}set repaint(le){this._repaint!==le&&(this._repaint=le,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(le){this._vertices=le,this._update()}get version(){return eu}getCameraTargetElevation(){return this.transform.elevation}},i.MapMouseEvent=Aa,i.MapTouchEvent=os,i.MapWheelEvent=_l,i.Marker=il,i.NavigationControl=class{constructor(le){this._updateZoomButtons=()=>{let w=this._map.getZoom(),q=w===this._map.getMaxZoom(),Q=w===this._map.getMinZoom();this._zoomInButton.disabled=q,this._zoomOutButton.disabled=Q,this._zoomInButton.setAttribute("aria-disabled",q.toString()),this._zoomOutButton.setAttribute("aria-disabled",Q.toString())},this._rotateCompassArrow=()=>{let w=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=w},this._setButtonTitle=(w,q)=>{let Q=this._map._getUIString(`NavigationControl.${q}`);w.title=Q,w.setAttribute("aria-label",Q)},this.options=a.e({},ja,le),this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",w=>w.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",w=>this._map.zoomIn({},{originalEvent:w})),f.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",w=>this._map.zoomOut({},{originalEvent:w})),f.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",w=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:w}):this._map.resetNorth({},{originalEvent:w})}),this._compassIcon=f.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(le){return this._map=le,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new ns(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){f.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(le,w){let q=f.create("button",le,this._container);return q.type="button",q.addEventListener("click",w),q}},i.Popup=class extends a.E{constructor(le){super(),this.remove=()=>(this._content&&f.remove(this._content),this._container&&(f.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new a.k("close"))),this),this._onMouseUp=w=>{this._update(w.point)},this._onMouseMove=w=>{this._update(w.point)},this._onDrag=w=>{this._update(w.point)},this._update=w=>{var q;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=f.create("div","maplibregl-popup",this._map.getContainer()),this._tip=f.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let et of this.options.className.split(" "))this._container.classList.add(et);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?cs(this._lngLat,this._flatPos,this._map.transform):(q=this._lngLat)===null||q===void 0?void 0:q.wrap(),this._trackPointer&&!w)return;let Q=this._flatPos=this._pos=this._trackPointer&&w?w:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&w?w:this._map.transform.locationPoint(this._lngLat));let ee=this.options.anchor,ue=Gl(this.options.offset);if(!ee){let et=this._container.offsetWidth,mt=this._container.offsetHeight,Ft;Ft=Q.y+ue.bottom.ythis._map.transform.height-mt?["bottom"]:[],Q.xthis._map.transform.width-et/2&&Ft.push("right"),ee=Ft.length===0?"bottom":Ft.join("-")}let Ge=Q.add(ue[ee]);this.options.subpixelPositioning||(Ge=Ge.round()),f.setTransform(this._container,`${sl[ee]} translate(${Ge.x}px,${Ge.y}px)`),ll(this._container,ee,"popup")},this._onClose=()=>{this.remove()},this.options=a.e(Object.create(Os),le)}addTo(le){return this._map&&this.remove(),this._map=le,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new a.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(le){return this._lngLat=a.N.convert(le),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(le){return this.setDOMContent(document.createTextNode(le))}setHTML(le){let w=document.createDocumentFragment(),q=document.createElement("body"),Q;for(q.innerHTML=le;Q=q.firstChild,Q;)w.appendChild(Q);return this.setDOMContent(w)}getMaxWidth(){var le;return(le=this._container)===null||le===void 0?void 0:le.style.maxWidth}setMaxWidth(le){return this.options.maxWidth=le,this._update(),this}setDOMContent(le){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=f.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(le),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(le){return this._container&&this._container.classList.add(le),this}removeClassName(le){return this._container&&this._container.classList.remove(le),this}setOffset(le){return this.options.offset=le,this._update(),this}toggleClassName(le){if(this._container)return this._container.classList.toggle(le)}setSubpixelPositioning(le){this.options.subpixelPositioning=le}_createCloseButton(){this.options.closeButton&&(this._closeButton=f.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let le=this._container.querySelector(Xl);le&&le.focus()}},i.RasterDEMTileSource=Nt,i.RasterTileSource=gt,i.ScaleControl=class{constructor(le){this._onMove=()=>{Ll(this._map,this._container,this.options)},this.setUnit=w=>{this.options.unit=w,Ll(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},Al),le)}getDefaultPosition(){return"bottom-left"}onAdd(le){return this._map=le,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-scale",le.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){f.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},i.ScrollZoomHandler=Or,i.Style=xn,i.TerrainControl=class{constructor(le){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=le}onAdd(le){return this._map=le,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=f.create("button","maplibregl-ctrl-terrain",this._container),f.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){f.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},i.TwoFingersTouchPitchHandler=Bs,i.TwoFingersTouchRotateHandler=Rs,i.TwoFingersTouchZoomHandler=Ms,i.TwoFingersTouchZoomRotateHandler=Pi,i.VectorTileSource=nt,i.VideoSource=Tt,i.addSourceType=(le,w)=>a._(void 0,void 0,void 0,function*(){if(Zt(le))throw new Error(`A source type called "${le}" already exists.`);((q,Q)=>{Dt[q]=Q})(le,w)}),i.clearPrewarmedResources=function(){let le=de;le&&(le.isPreloaded()&&le.numActive()===1?(le.release(be),de=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},i.getMaxParallelImageRequests=function(){return a.a.MAX_PARALLEL_IMAGE_REQUESTS},i.getRTLTextPluginStatus=function(){return wt().getRTLTextPluginStatus()},i.getVersion=function(){return Ul},i.getWorkerCount=function(){return Pe.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(le){return Me().broadcast("IS",le)},i.prewarm=function(){ke().acquire(be)},i.setMaxParallelImageRequests=function(le){a.a.MAX_PARALLEL_IMAGE_REQUESTS=le},i.setRTLTextPlugin=function(le,w){return wt().setRTLTextPlugin(le,w)},i.setWorkerCount=function(le){Pe.workerCount=le},i.setWorkerUrl=function(le){a.a.WORKER_URL=le}});var n=e;return n})});var LWe=Te((y2r,CWe)=>{"use strict";var iw=ei(),eZt=Xf().sanitizeHTML,tZt=IJ(),MWe=bx();function EWe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=MWe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var am=EWe.prototype;am.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=yB(t)};am.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};am.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};am.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};am.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};am.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};am.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!yB(e)){var r=rZt(e);t.addSource(this.idSource,r)}};am.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function kWe(e){var t={},r={};switch(e.type){case"circle":iw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":iw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":iw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=tZt(n.textposition,n.iconsize);iw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),iw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":iw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function rZt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=eZt(e.sourceattribution)),n}CWe.exports=function(t,r,n){var i=new EWe(t,r);return i.update(n),i}});var OWe=Te((g2r,BWe)=>{"use strict";var qJ=SWe(),NJ=ei(),IWe=ix(),PWe=$l(),iZt=wu(),nZt=xp(),gB=Xc(),RWe=Sm(),aZt=RWe.drawMode,oZt=RWe.selectMode,sZt=ah().prepSelect,lZt=ah().clearOutline,uZt=ah().clearSelectionsCache,fZt=ah().selectOnClick,nw=bx(),cZt=LWe();function DWe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Wh=DWe.prototype;Wh.plot=function(e,t,r){var n=this,i;n.map?i=new Promise(function(a,o){n.updateMap(e,t,a,o)}):i=new Promise(function(a,o){n.createMap(e,t,a,o)}),r.push(i)};Wh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=FWe(a.style),s=a.bounds,u=s?[[s.west,s.south],[s.east,s.north]]:null,l=i.map=new qJ.Map({container:i.div,style:o.style,center:UJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:u,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new qJ.AttributionControl({compact:!0})),f={};l.on("styleimagemissing",function(h){var d=h.id;if(!f[d]&&d.includes("-15")){f[d]=!0;var p=new Image(15,15);p.onload=function(){l.addImage(d,p)},p.crossOrigin="Anonymous",p.src="https://unpkg.com/maki@2.1.0/icons/"+d+".svg"}}),l.setTransformRequest(function(h){return h=h.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:h}}),l._canvas.style.left="0px",l._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var c=[];c.push(new Promise(function(h){l.once("load",h)})),c=c.concat(IWe.fetchTraceGeoData(e)),Promise.all(c).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Wh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],u=FWe(o.style);JSON.stringify(i.styleObj)!==JSON.stringify(u)&&(i.styleObj=u,a.setStyle(u.style),i.traceHash={},s.push(new Promise(function(l){a.once("styledata",l)}))),s=s.concat(IWe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Wh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&fZt(u.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),l.indexOf("event")>-1&&gB.click(n,u.originalEvent)}}};Wh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(u){var l=t.map.unproject(u);return[l.lng,l.lat]}var a=e.dragmode,o;o=function(u,l){if(l.isRect){var f=u.range={};f[t.id]=[i([l.xmin,l.ymin]),i([l.xmax,l.ymax])]}else{var c=u.lassoPoints={};c[t.id]=l.map(i)}};var s=t.dragOptions;t.dragOptions=NJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),oZt(a)||aZt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){sZt(u,l,f,t.dragOptions,a)},nZt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Wh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Wh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var VJ=ei(),dZt=k_(),pZt=Jd(),qWe=Hk();NWe.exports=function(t,r,n){dZt(t,r,n,{type:"map",attributes:qWe,handleDefaults:vZt,partition:"y"})};function vZt(e,t,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var n=r("bounds.west"),i=r("bounds.east"),a=r("bounds.south"),o=r("bounds.north");(n===void 0||i===void 0||a===void 0||o===void 0)&&delete t.bounds,pZt(e,t,{name:"layers",handleItemDefaults:mZt}),t._input=e}function mZt(e,t){function r(u,l){return VJ.coerce(e,t,qWe.layers,u,l)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",VJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),VJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var xB=Te(l0=>{"use strict";var _B=ei(),VWe=_B.strTranslate,yZt=_B.strScale,gZt=Rd().getSubplotCalcData,_Zt=jv(),xZt=Jl(),GWe=Mu(),bZt=Xf(),wZt=OWe(),wx="map";l0.name=wx;l0.attr="subplot";l0.idRoot=wx;l0.idRegex=l0.attrRegex=_B.counterRegex(wx);l0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};l0.layoutAttributes=Hk();l0.supplyLayoutDefaults=UWe();l0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[wx],a=0;ax/2){var b=c.split("|").join("
");d.text(b).attr("data-unformatted",b).call(bZt.convertToTspans,e),p=GWe.bBox(d.node())}d.attr("transform",VWe(-3,-p.height+8)),h.insert("rect",".static-attribution").attr({x:-p.width-6,y:-p.height-3,width:p.width+6,height:p.height+3,fill:"rgba(255, 255, 255, 0.75)"});var v=1;p.width+6>x&&(v=x/(p.width+6));var k=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",VWe(k[0],k[1])+yZt(v))}};l0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[wx],n=0;n{"use strict";HWe.exports={attributes:cB(),supplyDefaults:iWe(),colorbar:ep(),formatLabels:zJ(),calc:hF(),plot:yWe(),hoverPoints:mB().hoverPoints,eventData:bWe(),selectPoints:AWe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:xB(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var XWe=Te((w2r,jWe)=>{"use strict";jWe.exports=WWe()});var GJ=Te((A2r,ZWe)=>{"use strict";var d1=JT(),AZt=nc(),TZt=Nu().hovertemplateAttrs,SZt=Gf(),Ax=Su().extendFlat;ZWe.exports=Ax({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Ax({},d1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:d1.text,hovertext:d1.hovertext,marker:{line:{color:Ax({},d1.marker.line.color,{editType:"plot"}),width:Ax({},d1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Ax({},d1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Ax({},d1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Ax({},d1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:d1.hoverinfo,hovertemplate:TZt({},{keys:["properties"]}),showlegend:Ax({},SZt.showlegend,{dflt:!1})},AZt("",{cLetter:"z",editTypeOverride:"calc"}))});var KWe=Te((T2r,YWe)=>{"use strict";var Zk=ei(),MZt=ed(),EZt=GJ();YWe.exports=function(t,r,n,i){function a(f,c){return Zk.coerce(t,r,EZt,f,c)}var o=a("locations"),s=a("z"),u=a("geojson");if(!Zk.isArrayOrTypedArray(o)||!o.length||!Zk.isArrayOrTypedArray(s)||!s.length||!(typeof u=="string"&&u!==""||Zk.isPlainObject(u))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var l=a("marker.line.width");l&&a("marker.line.color"),a("marker.opacity"),MZt(t,r,i,a,{prefix:"",cLetter:"z"}),Zk.coerceSelectionMarkerOpacity(r,a)}});var HJ=Te((S2r,QWe)=>{"use strict";var kZt=ku(),p1=ei(),CZt=_c(),LZt=Mu(),PZt=tx().makeBlank,JWe=ix();function zZt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:PZt()};if(!r)return a;var o=JWe.extractTraceFeature(e);if(!o)return a;var s=CZt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;p1.isArrayOrTypedArray(u.opacity)&&(f=function(k){var E=k.mo;return kZt(E)?+p1.constrain(E,0,1):0});var c;p1.isArrayOrTypedArray(l.color)&&(c=function(k){return k.mlc});var h;p1.isArrayOrTypedArray(l.width)&&(h=function(k){return k.mlw});for(var d=0;d{"use strict";var tje=HJ().convert,IZt=HJ().convertOnSelect,eje=bx().traceLayerPrefix;function rje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",eje+t+"-fill"],["line",eje+t+"-line"]],this.below=null}var ES=rje.prototype;ES.update=function(e){this._update(tje(e)),e[0].trace._glTrace=this};ES.updateOnSelect=function(e){this._update(IZt(e))};ES._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};ES.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};ije.exports=function(t,r){var n=r[0].trace,i=new rje(t,n.uid),a=i.sourceId,o=tje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var oje=Te((E2r,aje)=>{"use strict";aje.exports={attributes:GJ(),supplyDefaults:KWe(),colorbar:S_(),calc:IF(),plot:nje(),hoverPoints:DF(),eventData:FF(),selectPoints:BF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";sje.exports=oje()});var jJ=Te((C2r,fje)=>{"use strict";var RZt=nc(),DZt=Nu().hovertemplateAttrs,uje=Gf(),bB=cB(),WJ=Su().extendFlat;fje.exports=WJ({lon:bB.lon,lat:bB.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:bB.text,hovertext:bB.hovertext,hoverinfo:WJ({},uje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:DZt(),showlegend:WJ({},uje.showlegend,{dflt:!1})},RZt("",{cLetter:"z",editTypeOverride:"calc"}))});var hje=Te((L2r,cje)=>{"use strict";var FZt=ei(),BZt=ed(),OZt=jJ();cje.exports=function(t,r,n,i){function a(l,f){return FZt.coerce(t,r,OZt,l,f)}var o=a("lon")||[],s=a("lat")||[],u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),BZt(t,r,i,a,{prefix:"",cLetter:"z"})}});var vje=Te((P2r,pje)=>{"use strict";var XJ=ku(),qZt=ei().isArrayOrTypedArray,ZJ=nf().BADNUM,NZt=gp(),dje=ei()._;pje.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=qZt(a)&&a.length,s=0;s{"use strict";var UZt=ku(),YJ=ei(),mje=jl(),yje=_c(),gje=nf().BADNUM,VZt=tx().makeBlank;_je.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:VZt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=YJ.isArrayOrTypedArray(u)&&u.length,c=YJ.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=yje.extractOpts(r),v=b.reversescale?yje.flipScale(b.colorscale):b.colorscale,k=v[0][1],E=mje.opacity(k)<1?k:mje.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var bje=xje(),GZt=bx().traceLayerPrefix;function wje(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",GZt+t+"-heatmap"]],this.below=null}var wB=wje.prototype;wB.update=function(e){var t=this.subplot,r=this.layerList,n=bje(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};wB.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Aje.exports=function(t,r){var n=r[0].trace,i=new wje(t,n.uid),a=i.sourceId,o=bje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var Mje=Te((R2r,Sje)=>{"use strict";var HZt=wu(),WZt=mB().hoverPoints,jZt=mB().getExtraText;Sje.exports=function(t,r,n){var i=WZt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,u=o[a.index];if(delete a.color,"z"in u){var l=a.subplot.mockAxis;a.z=u.z,a.zLabel=HZt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=jZt(s,u,o[0].t.labels),[a]}}});var kje=Te((D2r,Eje)=>{"use strict";Eje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var Lje=Te((F2r,Cje)=>{"use strict";Cje.exports={attributes:jJ(),supplyDefaults:hje(),colorbar:S_(),formatLabels:zJ(),calc:vje(),plot:Tje(),hoverPoints:Mje(),eventData:kje(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";Pje.exports=Lje()});var JJ=Te((q2r,Fje)=>{"use strict";var XZt=gc(),ZZt=Gf(),Ije=Ih(),KJ=i3(),YZt=zc().attributes,Rje=Nu().hovertemplateAttrs,KZt=nc(),JZt=Pf().templatedArray,$Zt=jc().descriptionOnlyNumbers,Dje=Su().extendFlat,QZt=Sc().overrideAll,O2r=Fje.exports=QZt({hoverinfo:Dje({},ZZt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:KJ.hoverlabel,domain:YZt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:$Zt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:XZt({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Ije.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:KJ.hoverlabel,hovertemplate:Rje({},{keys:["value","label"]}),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Ije.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:KJ.hoverlabel,hovertemplate:Rje({},{keys:["value","label"]}),colorscales:JZt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:Dje(KZt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var Uje=Te((N2r,Nje)=>{"use strict";var kS=ei(),AB=JJ(),eYt=jl(),Bje=cd(),tYt=zc().defaults,Oje=f5(),qje=Pf(),rYt=Jd();Nje.exports=function(t,r,n,i){function a(T,L){return kS.coerce(t,r,AB,T,L)}var o=kS.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,u=qje.newContainer(r,"node");function l(T,L){return kS.coerce(s,u,AB.node,T,L)}l("label"),l("groups"),l("x"),l("y"),l("pad"),l("thickness"),l("line.color"),l("line.width"),l("hoverinfo",t.hoverinfo),Oje(s,u,l,o),l("hovertemplate"),l("align");var f=i.colorway,c=function(T){return f[T%f.length]};l("color",u.label.map(function(T,L){return eYt.addOpacity(c(L),.8)})),l("customdata");var h=t.link||{},d=qje.newContainer(r,"link");function p(T,L){return kS.coerce(h,d,AB.link,T,L)}p("label"),p("arrowlen"),p("source"),p("target"),p("value"),p("line.color"),p("line.width"),p("hoverinfo",t.hoverinfo),Oje(h,d,p,o),p("hovertemplate");var x=Bje(i.paper_bgcolor).getLuminance()<.333,b=x?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",v=p("color",b);function k(T){var L=Bje(T);if(!L.isValid())return T;var _=L.getAlpha();return _<=.8?L.setAlpha(_+.2):L=x?L.brighten():L.darken(),L.toRgbString()}p("hovercolor",Array.isArray(v)?v.map(k):k(v)),p("customdata"),rYt(h,d,{name:"colorscales",handleItemDefaults:iYt}),tYt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var E;u.x.length&&u.y.length&&(E="freeform"),a("arrangement",E),kS.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function iYt(e,t){function r(n,i){return kS.coerce(e,t,AB.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var $J=Te((U2r,Vje)=>{"use strict";Vje.exports=nYt;function nYt(e){for(var t=e.length,r=new Array(t),n=new Array(t),i=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),u=0;u0;){b=k[k.length-1];var E=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=T}else{if(n[b]===r[b]){for(var _=[],C=[],M=0,T=v.length-1;T>=0;--T){var m=v[T];if(i[m]=!1,_.push(m),C.push(s[m]),M+=s[m].length,o[m]=f.length,m===b){v.length=T;break}}f.push(_);for(var P=new Array(M),T=0;T{"use strict";var aYt=$J(),CS=ei(),oYt=Ky().wrap,Yk=CS.isArrayOrTypedArray,Gje=CS.isIndex,Hje=_c();function sYt(e){var t=e.node,r=e.link,n=[],i=Yk(r.color),a=Yk(r.hovercolor),o=Yk(r.customdata),s={},u={},l=r.colorscales.length,f;for(f=0;fp&&(p=r.source[f]),r.target[f]>p&&(p=r.target[f]);var x=p+1;e.node._count=x;var b,v=e.node.groups,k={};for(f=0;f0&&Gje(M,x)&&Gje(m,x)&&!(k.hasOwnProperty(M)&&k.hasOwnProperty(m)&&k[M]===k[m])){k.hasOwnProperty(m)&&(m=k[m]),k.hasOwnProperty(M)&&(M=k[M]),M=+M,m=+m,s[M]=s[m]=!0;var P="";r.label&&r.label[f]&&(P=r.label[f]);var A=null;P&&u.hasOwnProperty(P)&&(A=u[P]),n.push({pointNumber:f,label:P,color:i?r.color[f]:r.color,hovercolor:a?r.hovercolor[f]:r.hovercolor,customdata:o?r.customdata[f]:r.customdata,concentrationscale:A,source:M,target:m,value:+C}),_.source.push(M),_.target.push(m)}}var B=x+v.length,F=Yk(t.color),U=Yk(t.customdata),G=[];for(f=0;fx-1,childrenNodes:[],pointNumber:f,label:j,color:F?t.color[f]:t.color,customdata:U?t.customdata[f]:t.customdata})}var H=!1;return lYt(B,_.source,_.target)&&(H=!0),{circular:H,links:n,nodes:G,groups:v,groupLookup:k}}function lYt(e,t,r){for(var n=CS.init2dArray(e,0),i=0;i1})}Wje.exports=function(t,r){var n=sYt(r);return oYt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var Zje=Te((TB,Xje)=>{(function(e,t){typeof TB=="object"&&typeof Xje!="undefined"?t(TB):(e=e||self,t(e.d3=e.d3||{}))})(TB,function(e){"use strict";function t(C){var M=+this._x.call(null,C),m=+this._y.call(null,C);return r(this.cover(M,m),M,m,C)}function r(C,M,m,P){if(isNaN(M)||isNaN(m))return C;var A,B=C._root,F={data:P},U=C._x0,G=C._y0,j=C._x1,H=C._y1,N,W,re,ae,be,Pe,Ce,de;if(!B)return C._root=F,C;for(;B.length;)if((be=M>=(N=(U+j)/2))?U=N:j=N,(Pe=m>=(W=(G+H)/2))?G=W:H=W,A=B,!(B=B[Ce=Pe<<1|be]))return A[Ce]=F,C;if(re=+C._x.call(null,B.data),ae=+C._y.call(null,B.data),M===re&&m===ae)return F.next=B,A?A[Ce]=F:C._root=F,C;do A=A?A[Ce]=new Array(4):C._root=new Array(4),(be=M>=(N=(U+j)/2))?U=N:j=N,(Pe=m>=(W=(G+H)/2))?G=W:H=W;while((Ce=Pe<<1|be)===(de=(ae>=W)<<1|re>=N));return A[de]=B,A[Ce]=F,C}function n(C){var M,m,P=C.length,A,B,F=new Array(P),U=new Array(P),G=1/0,j=1/0,H=-1/0,N=-1/0;for(m=0;mH&&(H=A),BN&&(N=B));if(G>H||j>N)return this;for(this.cover(G,j).cover(H,N),m=0;mC||C>=A||P>M||M>=B;)switch(j=(MH||(U=ae.y0)>N||(G=ae.x1)=Ce)<<1|C>=Pe)&&(ae=W[W.length-1],W[W.length-1]=W[W.length-1-be],W[W.length-1-be]=ae)}else{var de=C-+this._x.call(null,re.data),te=M-+this._y.call(null,re.data),ke=de*de+te*te;if(ke=(W=(F+G)/2))?F=W:G=W,(be=N>=(re=(U+j)/2))?U=re:j=re,M=m,!(m=m[Pe=be<<1|ae]))return this;if(!m.length)break;(M[Pe+1&3]||M[Pe+2&3]||M[Pe+3&3])&&(P=M,Ce=Pe)}for(;m.data!==C;)if(A=m,!(m=m.next))return this;return(B=m.next)&&delete m.next,A?(B?A.next=B:delete A.next,this):M?(B?M[Pe]=B:delete M[Pe],(m=M[0]||M[1]||M[2]||M[3])&&m===(M[3]||M[2]||M[1]||M[0])&&!m.length&&(P?P[Ce]=m:this._root=m),this):(this._root=B,this)}function f(C){for(var M=0,m=C.length;M{(function(e,t){t(typeof SB=="object"&&typeof Yje!="undefined"?SB:e.d3=e.d3||{})})(SB,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(x){return t+x in this},get:function(x){return this[t+x]},set:function(x,b){return this[t+x]=b,this},remove:function(x){var b=t+x;return b in this&&delete this[b]},clear:function(){for(var x in this)x[0]===t&&delete this[x]},keys:function(){var x=[];for(var b in this)b[0]===t&&x.push(b.slice(1));return x},values:function(){var x=[];for(var b in this)b[0]===t&&x.push(this[b]);return x},entries:function(){var x=[];for(var b in this)b[0]===t&&x.push({key:b.slice(1),value:this[b]});return x},size:function(){var x=0;for(var b in this)b[0]===t&&++x;return x},empty:function(){for(var x in this)if(x[0]===t)return!1;return!0},each:function(x){for(var b in this)b[0]===t&&x(this[b],b.slice(1),this)}};function n(x,b){var v=new r;if(x instanceof r)x.each(function(_,C){v.set(C,_)});else if(Array.isArray(x)){var k=-1,E=x.length,T;if(b==null)for(;++k=x.length)return v!=null&&_.sort(v),k!=null?k(_):_;for(var P=-1,A=_.length,B=x[C++],F,U,G=n(),j,H=M();++Px.length)return _;var M,m=b[C-1];return k!=null&&C>=x.length?M=_.entries():(M=[],_.each(function(P,A){M.push({key:A,values:L(P,C)})})),m!=null?M.sort(function(P,A){return m(P.key,A.key)}):M}return E={object:function(_){return T(_,0,a,o)},map:function(_){return T(_,0,s,u)},entries:function(_){return L(T(_,0,s,u),0)},key:function(_){return x.push(_),E},sortKeys:function(_){return b[x.length-1]=_,E},sortValues:function(_){return v=_,E},rollup:function(_){return k=_,E}}}function a(){return{}}function o(x,b,v){x[b]=v}function s(){return n()}function u(x,b,v){x.set(b,v)}function l(){}var f=n.prototype;l.prototype=c.prototype={constructor:l,has:f.has,add:function(x){return x+="",this[t+x]=x,this},remove:f.remove,clear:f.clear,values:f.keys,size:f.size,empty:f.empty,each:f.each};function c(x,b){var v=new l;if(x instanceof l)x.each(function(T){v.add(T)});else if(x){var k=-1,E=x.length;if(b==null)for(;++k{(function(e,t){typeof EB=="object"&&typeof Kje!="undefined"?t(EB):(e=e||self,t(e.d3=e.d3||{}))})(EB,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,u=arguments.length,l={},f;s=0&&(f=l.slice(c+1),l=l.slice(0,c)),l&&!u.hasOwnProperty(l))throw new Error("unknown type: "+l);return{type:l,name:f}})}n.prototype=r.prototype={constructor:n,on:function(s,u){var l=this._,f=i(s+"",l),c,h=-1,d=f.length;if(arguments.length<2){for(;++h0)for(var l=new Array(c),f=0,c,h;f{(function(e,t){typeof kB=="object"&&typeof $je!="undefined"?t(kB):(e=e||self,t(e.d3=e.d3||{}))})(kB,function(e){"use strict";var t=0,r=0,n=0,i=1e3,a,o,s=0,u=0,l=0,f=typeof performance=="object"&&performance.now?performance:Date,c=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(C){setTimeout(C,17)};function h(){return u||(c(d),u=f.now()+l)}function d(){u=0}function p(){this._call=this._time=this._next=null}p.prototype=x.prototype={constructor:p,restart:function(C,M,m){if(typeof C!="function")throw new TypeError("callback is not a function");m=(m==null?h():+m)+(M==null?0:+M),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=C,this._time=m,T()},stop:function(){this._call&&(this._call=null,this._time=1/0,T())}};function x(C,M,m){var P=new p;return P.restart(C,M,m),P}function b(){h(),++t;for(var C=a,M;C;)(M=u-C._time)>=0&&C._call.call(null,M),C=C._next;--t}function v(){u=(s=f.now())+l,t=r=0;try{b()}finally{t=0,E(),u=0}}function k(){var C=f.now(),M=C-s;M>i&&(l-=M,s=C)}function E(){for(var C,M=a,m,P=1/0;M;)M._call?(P>M._time&&(P=M._time),C=M,M=M._next):(m=M._next,M._next=null,M=C?C._next=m:a=m);o=C,T(P)}function T(C){if(!t){r&&(r=clearTimeout(r));var M=C-u;M>24?(C<1/0&&(r=setTimeout(v,C-f.now()-l)),n&&(n=clearInterval(n))):(n||(s=f.now(),n=setInterval(k,i)),t=1,c(v))}}function L(C,M,m){var P=new p;return M=M==null?0:+M,P.restart(function(A){P.stop(),C(A+M)},M,m),P}function _(C,M,m){var P=new p,A=M;return M==null?(P.restart(C,M,m),P):(M=+M,m=m==null?h():+m,P.restart(function B(F){F+=A,P.restart(B,A+=M,m),C(F)},M,m),P)}e.interval=_,e.now=h,e.timeout=L,e.timer=x,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var tXe=Te((CB,eXe)=>{(function(e,t){typeof CB=="object"&&typeof eXe!="undefined"?t(CB,Zje(),MB(),Jje(),Qje()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(CB,function(e,t,r,n,i){"use strict";function a(C,M){var m;C==null&&(C=0),M==null&&(M=0);function P(){var A,B=m.length,F,U=0,G=0;for(A=0;AN.index){var Ve=W-Ne.x-Ne.vx,ce=re-Ne.y-Ne.vy,Ye=Ve*Ve+ce*ce;YeW+ye||Eere+ye||MeG.r&&(G.r=G[j].r)}function U(){if(M){var G,j=M.length,H;for(m=new Array(j),G=0;G1?(be==null?U.remove(ae):U.set(ae,re(be)),M):U.get(ae)},find:function(ae,be,Pe){var Ce=0,de=C.length,te,ke,Ee,Me,Ne;for(Pe==null?Pe=1/0:Pe*=Pe,Ce=0;Ce1?(j.on(ae,be),M):j.on(ae)}}}function E(){var C,M,m,P=o(-30),A,B=1,F=1/0,U=.81;function G(W){var re,ae=C.length,be=t.quadtree(C,p,x).visitAfter(H);for(m=W,re=0;re=F)return;(W.data!==M||W.next)&&(Pe===0&&(Pe=s(),te+=Pe*Pe),Ce===0&&(Ce=s(),te+=Ce*Ce),te{(function(e,t){typeof LB=="object"&&typeof rXe!="undefined"?t(LB):(e=e||self,t(e.d3=e.d3||{}))})(LB,function(e){"use strict";var t=Math.PI,r=2*t,n=1e-6,i=r-n;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,u){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+u)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,u){this._+="L"+(this._x1=+s)+","+(this._y1=+u)},quadraticCurveTo:function(s,u,l,f){this._+="Q"+ +s+","+ +u+","+(this._x1=+l)+","+(this._y1=+f)},bezierCurveTo:function(s,u,l,f,c,h){this._+="C"+ +s+","+ +u+","+ +l+","+ +f+","+(this._x1=+c)+","+(this._y1=+h)},arcTo:function(s,u,l,f,c){s=+s,u=+u,l=+l,f=+f,c=+c;var h=this._x1,d=this._y1,p=l-s,x=f-u,b=h-s,v=d-u,k=b*b+v*v;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=u);else if(k>n)if(!(Math.abs(v*p-x*b)>n)||!c)this._+="L"+(this._x1=s)+","+(this._y1=u);else{var E=l-h,T=f-d,L=p*p+x*x,_=E*E+T*T,C=Math.sqrt(L),M=Math.sqrt(k),m=c*Math.tan((t-Math.acos((L+k-_)/(2*C*M)))/2),P=m/M,A=m/C;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(u+P*v)),this._+="A"+c+","+c+",0,0,"+ +(v*E>b*T)+","+(this._x1=s+A*p)+","+(this._y1=u+A*x)}},arc:function(s,u,l,f,c,h){s=+s,u=+u,l=+l,h=!!h;var d=l*Math.cos(f),p=l*Math.sin(f),x=s+d,b=u+p,v=1^h,k=h?f-c:c-f;if(l<0)throw new Error("negative radius: "+l);this._x1===null?this._+="M"+x+","+b:(Math.abs(this._x1-x)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+x+","+b),l&&(k<0&&(k=k%r+r),k>i?this._+="A"+l+","+l+",0,1,"+v+","+(s-d)+","+(u-p)+"A"+l+","+l+",0,1,"+v+","+(this._x1=x)+","+(this._y1=b):k>n&&(this._+="A"+l+","+l+",0,"+ +(k>=t)+","+v+","+(this._x1=s+l*Math.cos(c))+","+(this._y1=u+l*Math.sin(c))))},rect:function(s,u,l,f){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+u)+"h"+ +l+"v"+ +f+"h"+-l+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var QJ=Te((PB,nXe)=>{(function(e,t){typeof PB=="object"&&typeof nXe!="undefined"?t(PB,iXe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(PB,function(e,t){"use strict";function r(ft){return function(){return ft}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,u=Math.sin,l=Math.sqrt,f=1e-12,c=Math.PI,h=c/2,d=2*c;function p(ft){return ft>1?0:ft<-1?c:Math.acos(ft)}function x(ft){return ft>=1?h:ft<=-1?-h:Math.asin(ft)}function b(ft){return ft.innerRadius}function v(ft){return ft.outerRadius}function k(ft){return ft.startAngle}function E(ft){return ft.endAngle}function T(ft){return ft&&ft.padAngle}function L(ft,tr,pr,gr,Zr,Ai,Qi,ni){var Zi=pr-ft,aa=gr-tr,Mn=Qi-Zr,Un=ni-Ai,Ga=Un*Zi-Mn*aa;if(!(Ga*Gawa*wa+ws*ws&&(uo=$a,ls=fo),{cx:uo,cy:ls,x01:-Mn,y01:-Un,x11:uo*(Zr/kn-1),y11:ls*(Zr/kn-1)}}function C(){var ft=b,tr=v,pr=r(0),gr=null,Zr=k,Ai=E,Qi=T,ni=null;function Zi(){var aa,Mn,Un=+ft.apply(this,arguments),Ga=+tr.apply(this,arguments),ma=Zr.apply(this,arguments)-h,oa=Ai.apply(this,arguments)-h,ka=n(oa-ma),so=oa>ma;if(ni||(ni=aa=t.path()),Gaf))ni.moveTo(0,0);else if(ka>d-f)ni.moveTo(Ga*a(ma),Ga*u(ma)),ni.arc(0,0,Ga,ma,oa,!so),Un>f&&(ni.moveTo(Un*a(oa),Un*u(oa)),ni.arc(0,0,Un,oa,ma,so));else{var Kr=ma,Ia=oa,Yo=ma,fa=oa,kn=ka,Ta=ka,ys=Qi.apply(this,arguments)/2,uo=ys>f&&(gr?+gr.apply(this,arguments):l(Un*Un+Ga*Ga)),ls=s(n(Ga-Un)/2,+pr.apply(this,arguments)),$a=ls,fo=ls,mn,ra;if(uo>f){var wa=x(uo/Un*u(ys)),ws=x(uo/Ga*u(ys));(kn-=wa*2)>f?(wa*=so?1:-1,Yo+=wa,fa-=wa):(kn=0,Yo=fa=(ma+oa)/2),(Ta-=ws*2)>f?(ws*=so?1:-1,Kr+=ws,Ia-=ws):(Ta=0,Kr=Ia=(ma+oa)/2)}var Co=Ga*a(Kr),Po=Ga*u(Kr),ji=Un*a(fa),gn=Un*u(fa);if(ls>f){var Ps=Ga*a(Ia),Ha=Ga*u(Ia),Sn=Un*a(Yo),ao=Un*u(Yo),Ba;if(kaf?fo>f?(mn=_(Sn,ao,Co,Po,Ga,fo,so),ra=_(Ps,Ha,ji,gn,Ga,fo,so),ni.moveTo(mn.cx+mn.x01,mn.cy+mn.y01),fof)||!(kn>f)?ni.lineTo(ji,gn):$a>f?(mn=_(ji,gn,Ps,Ha,Un,-$a,so),ra=_(Co,Po,Sn,ao,Un,-$a,so),ni.lineTo(mn.cx+mn.x01,mn.cy+mn.y01),$a=Ga;--ma)ni.point(Ia[ma],Yo[ma]);ni.lineEnd(),ni.areaEnd()}so&&(Ia[Un]=+ft(ka,Un,Mn),Yo[Un]=+pr(ka,Un,Mn),ni.point(tr?+tr(ka,Un,Mn):Ia[Un],gr?+gr(ka,Un,Mn):Yo[Un]))}if(Kr)return ni=null,Kr+""||null}function aa(){return B().defined(Zr).curve(Qi).context(Ai)}return Zi.x=function(Mn){return arguments.length?(ft=typeof Mn=="function"?Mn:r(+Mn),tr=null,Zi):ft},Zi.x0=function(Mn){return arguments.length?(ft=typeof Mn=="function"?Mn:r(+Mn),Zi):ft},Zi.x1=function(Mn){return arguments.length?(tr=Mn==null?null:typeof Mn=="function"?Mn:r(+Mn),Zi):tr},Zi.y=function(Mn){return arguments.length?(pr=typeof Mn=="function"?Mn:r(+Mn),gr=null,Zi):pr},Zi.y0=function(Mn){return arguments.length?(pr=typeof Mn=="function"?Mn:r(+Mn),Zi):pr},Zi.y1=function(Mn){return arguments.length?(gr=Mn==null?null:typeof Mn=="function"?Mn:r(+Mn),Zi):gr},Zi.lineX0=Zi.lineY0=function(){return aa().x(ft).y(pr)},Zi.lineY1=function(){return aa().x(ft).y(gr)},Zi.lineX1=function(){return aa().x(tr).y(pr)},Zi.defined=function(Mn){return arguments.length?(Zr=typeof Mn=="function"?Mn:r(!!Mn),Zi):Zr},Zi.curve=function(Mn){return arguments.length?(Qi=Mn,Ai!=null&&(ni=Qi(Ai)),Zi):Qi},Zi.context=function(Mn){return arguments.length?(Mn==null?Ai=ni=null:ni=Qi(Ai=Mn),Zi):Ai},Zi}function U(ft,tr){return trft?1:tr>=ft?0:NaN}function G(ft){return ft}function j(){var ft=G,tr=U,pr=null,gr=r(0),Zr=r(d),Ai=r(0);function Qi(ni){var Zi,aa=ni.length,Mn,Un,Ga=0,ma=new Array(aa),oa=new Array(aa),ka=+gr.apply(this,arguments),so=Math.min(d,Math.max(-d,Zr.apply(this,arguments)-ka)),Kr,Ia=Math.min(Math.abs(so)/aa,Ai.apply(this,arguments)),Yo=Ia*(so<0?-1:1),fa;for(Zi=0;Zi0&&(Ga+=fa);for(tr!=null?ma.sort(function(kn,Ta){return tr(oa[kn],oa[Ta])}):pr!=null&&ma.sort(function(kn,Ta){return pr(ni[kn],ni[Ta])}),Zi=0,Un=Ga?(so-aa*Yo)/Ga:0;Zi0?fa*Un:0)+Yo,oa[Mn]={data:ni[Mn],index:Zi,value:fa,startAngle:ka,endAngle:Kr,padAngle:Ia};return oa}return Qi.value=function(ni){return arguments.length?(ft=typeof ni=="function"?ni:r(+ni),Qi):ft},Qi.sortValues=function(ni){return arguments.length?(tr=ni,pr=null,Qi):tr},Qi.sort=function(ni){return arguments.length?(pr=ni,tr=null,Qi):pr},Qi.startAngle=function(ni){return arguments.length?(gr=typeof ni=="function"?ni:r(+ni),Qi):gr},Qi.endAngle=function(ni){return arguments.length?(Zr=typeof ni=="function"?ni:r(+ni),Qi):Zr},Qi.padAngle=function(ni){return arguments.length?(Ai=typeof ni=="function"?ni:r(+ni),Qi):Ai},Qi}var H=W(m);function N(ft){this._curve=ft}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(ft,tr){this._curve.point(tr*Math.sin(ft),tr*-Math.cos(ft))}};function W(ft){function tr(pr){return new N(ft(pr))}return tr._curve=ft,tr}function re(ft){var tr=ft.curve;return ft.angle=ft.x,delete ft.x,ft.radius=ft.y,delete ft.y,ft.curve=function(pr){return arguments.length?tr(W(pr)):tr()._curve},ft}function ae(){return re(B().curve(H))}function be(){var ft=F().curve(H),tr=ft.curve,pr=ft.lineX0,gr=ft.lineX1,Zr=ft.lineY0,Ai=ft.lineY1;return ft.angle=ft.x,delete ft.x,ft.startAngle=ft.x0,delete ft.x0,ft.endAngle=ft.x1,delete ft.x1,ft.radius=ft.y,delete ft.y,ft.innerRadius=ft.y0,delete ft.y0,ft.outerRadius=ft.y1,delete ft.y1,ft.lineStartAngle=function(){return re(pr())},delete ft.lineX0,ft.lineEndAngle=function(){return re(gr())},delete ft.lineX1,ft.lineInnerRadius=function(){return re(Zr())},delete ft.lineY0,ft.lineOuterRadius=function(){return re(Ai())},delete ft.lineY1,ft.curve=function(Qi){return arguments.length?tr(W(Qi)):tr()._curve},ft}function Pe(ft,tr){return[(tr=+tr)*Math.cos(ft-=Math.PI/2),tr*Math.sin(ft)]}var Ce=Array.prototype.slice;function de(ft){return ft.source}function te(ft){return ft.target}function ke(ft){var tr=de,pr=te,gr=P,Zr=A,Ai=null;function Qi(){var ni,Zi=Ce.call(arguments),aa=tr.apply(this,Zi),Mn=pr.apply(this,Zi);if(Ai||(Ai=ni=t.path()),ft(Ai,+gr.apply(this,(Zi[0]=aa,Zi)),+Zr.apply(this,Zi),+gr.apply(this,(Zi[0]=Mn,Zi)),+Zr.apply(this,Zi)),ni)return Ai=null,ni+""||null}return Qi.source=function(ni){return arguments.length?(tr=ni,Qi):tr},Qi.target=function(ni){return arguments.length?(pr=ni,Qi):pr},Qi.x=function(ni){return arguments.length?(gr=typeof ni=="function"?ni:r(+ni),Qi):gr},Qi.y=function(ni){return arguments.length?(Zr=typeof ni=="function"?ni:r(+ni),Qi):Zr},Qi.context=function(ni){return arguments.length?(Ai=ni==null?null:ni,Qi):Ai},Qi}function Ee(ft,tr,pr,gr,Zr){ft.moveTo(tr,pr),ft.bezierCurveTo(tr=(tr+gr)/2,pr,tr,Zr,gr,Zr)}function Me(ft,tr,pr,gr,Zr){ft.moveTo(tr,pr),ft.bezierCurveTo(tr,pr=(pr+Zr)/2,gr,pr,gr,Zr)}function Ne(ft,tr,pr,gr,Zr){var Ai=Pe(tr,pr),Qi=Pe(tr,pr=(pr+Zr)/2),ni=Pe(gr,pr),Zi=Pe(gr,Zr);ft.moveTo(Ai[0],Ai[1]),ft.bezierCurveTo(Qi[0],Qi[1],ni[0],ni[1],Zi[0],Zi[1])}function Fe(){return ke(Ee)}function ye(){return ke(Me)}function Ve(){var ft=ke(Ne);return ft.angle=ft.x,delete ft.x,ft.radius=ft.y,delete ft.y,ft}var ce={draw:function(ft,tr){var pr=Math.sqrt(tr/c);ft.moveTo(pr,0),ft.arc(0,0,pr,0,d)}},Ye={draw:function(ft,tr){var pr=Math.sqrt(tr/5)/2;ft.moveTo(-3*pr,-pr),ft.lineTo(-pr,-pr),ft.lineTo(-pr,-3*pr),ft.lineTo(pr,-3*pr),ft.lineTo(pr,-pr),ft.lineTo(3*pr,-pr),ft.lineTo(3*pr,pr),ft.lineTo(pr,pr),ft.lineTo(pr,3*pr),ft.lineTo(-pr,3*pr),ft.lineTo(-pr,pr),ft.lineTo(-3*pr,pr),ft.closePath()}},nt=Math.sqrt(1/3),gt=nt*2,Nt={draw:function(ft,tr){var pr=Math.sqrt(tr/gt),gr=pr*nt;ft.moveTo(0,-pr),ft.lineTo(gr,0),ft.lineTo(0,pr),ft.lineTo(-gr,0),ft.closePath()}},it=.8908130915292852,Ke=Math.sin(c/10)/Math.sin(7*c/10),kt=Math.sin(d/10)*Ke,Tt=-Math.cos(d/10)*Ke,St={draw:function(ft,tr){var pr=Math.sqrt(tr*it),gr=kt*pr,Zr=Tt*pr;ft.moveTo(0,-pr),ft.lineTo(gr,Zr);for(var Ai=1;Ai<5;++Ai){var Qi=d*Ai/5,ni=Math.cos(Qi),Zi=Math.sin(Qi);ft.lineTo(Zi*pr,-ni*pr),ft.lineTo(ni*gr-Zi*Zr,Zi*gr+ni*Zr)}ft.closePath()}},Dt={draw:function(ft,tr){var pr=Math.sqrt(tr),gr=-pr/2;ft.rect(gr,gr,pr,pr)}},Zt=Math.sqrt(3),Et={draw:function(ft,tr){var pr=-Math.sqrt(tr/(Zt*3));ft.moveTo(0,pr*2),ft.lineTo(-Zt*pr,-pr),ft.lineTo(Zt*pr,-pr),ft.closePath()}},Ae=-.5,at=Math.sqrt(3)/2,wt=1/Math.sqrt(12),vt=(wt/2+1)*3,st={draw:function(ft,tr){var pr=Math.sqrt(tr/vt),gr=pr/2,Zr=pr*wt,Ai=gr,Qi=pr*wt+pr,ni=-Ai,Zi=Qi;ft.moveTo(gr,Zr),ft.lineTo(Ai,Qi),ft.lineTo(ni,Zi),ft.lineTo(Ae*gr-at*Zr,at*gr+Ae*Zr),ft.lineTo(Ae*Ai-at*Qi,at*Ai+Ae*Qi),ft.lineTo(Ae*ni-at*Zi,at*ni+Ae*Zi),ft.lineTo(Ae*gr+at*Zr,Ae*Zr-at*gr),ft.lineTo(Ae*Ai+at*Qi,Ae*Qi-at*Ai),ft.lineTo(Ae*ni+at*Zi,Ae*Zi-at*ni),ft.closePath()}},Ue=[ce,Ye,Nt,Dt,St,Et,st];function rt(){var ft=r(ce),tr=r(64),pr=null;function gr(){var Zr;if(pr||(pr=Zr=t.path()),ft.apply(this,arguments).draw(pr,+tr.apply(this,arguments)),Zr)return pr=null,Zr+""||null}return gr.type=function(Zr){return arguments.length?(ft=typeof Zr=="function"?Zr:r(Zr),gr):ft},gr.size=function(Zr){return arguments.length?(tr=typeof Zr=="function"?Zr:r(+Zr),gr):tr},gr.context=function(Zr){return arguments.length?(pr=Zr==null?null:Zr,gr):pr},gr}function $e(){}function zt(ft,tr,pr){ft._context.bezierCurveTo((2*ft._x0+ft._x1)/3,(2*ft._y0+ft._y1)/3,(ft._x0+2*ft._x1)/3,(ft._y0+2*ft._y1)/3,(ft._x0+4*ft._x1+tr)/6,(ft._y0+4*ft._y1+pr)/6)}function Yt(ft){this._context=ft}Yt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:zt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:zt(this,ft,tr);break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr}};function hr(ft){return new Yt(ft)}function yr(ft){this._context=ft}yr.prototype={areaStart:$e,areaEnd:$e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._x2=ft,this._y2=tr;break;case 1:this._point=2,this._x3=ft,this._y3=tr;break;case 2:this._point=3,this._x4=ft,this._y4=tr,this._context.moveTo((this._x0+4*this._x1+ft)/6,(this._y0+4*this._y1+tr)/6);break;default:zt(this,ft,tr);break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr}};function br(ft){return new yr(ft)}function Ut(ft){this._context=ft}Ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var pr=(this._x0+4*this._x1+ft)/6,gr=(this._y0+4*this._y1+tr)/6;this._line?this._context.lineTo(pr,gr):this._context.moveTo(pr,gr);break;case 3:this._point=4;default:zt(this,ft,tr);break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr}};function Ie(ft){return new Ut(ft)}function xe(ft,tr){this._basis=new Yt(ft),this._beta=tr}xe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var ft=this._x,tr=this._y,pr=ft.length-1;if(pr>0)for(var gr=ft[0],Zr=tr[0],Ai=ft[pr]-gr,Qi=tr[pr]-Zr,ni=-1,Zi;++ni<=pr;)Zi=ni/pr,this._basis.point(this._beta*ft[ni]+(1-this._beta)*(gr+Zi*Ai),this._beta*tr[ni]+(1-this._beta)*(Zr+Zi*Qi));this._x=this._y=null,this._basis.lineEnd()},point:function(ft,tr){this._x.push(+ft),this._y.push(+tr)}};var Oe=function ft(tr){function pr(gr){return tr===1?new Yt(gr):new xe(gr,tr)}return pr.beta=function(gr){return ft(+gr)},pr}(.85);function Re(ft,tr,pr){ft._context.bezierCurveTo(ft._x1+ft._k*(ft._x2-ft._x0),ft._y1+ft._k*(ft._y2-ft._y0),ft._x2+ft._k*(ft._x1-tr),ft._y2+ft._k*(ft._y1-pr),ft._x2,ft._y2)}function De(ft,tr){this._context=ft,this._k=(1-tr)/6}De.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Re(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2,this._x1=ft,this._y1=tr;break;case 2:this._point=3;default:Re(this,ft,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var ct=function ft(tr){function pr(gr){return new De(gr,tr)}return pr.tension=function(gr){return ft(+gr)},pr}(0);function ge(ft,tr){this._context=ft,this._k=(1-tr)/6}ge.prototype={areaStart:$e,areaEnd:$e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._x3=ft,this._y3=tr;break;case 1:this._point=2,this._context.moveTo(this._x4=ft,this._y4=tr);break;case 2:this._point=3,this._x5=ft,this._y5=tr;break;default:Re(this,ft,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var fe=function ft(tr){function pr(gr){return new ge(gr,tr)}return pr.tension=function(gr){return ft(+gr)},pr}(0);function pe(ft,tr){this._context=ft,this._k=(1-tr)/6}pe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Re(this,ft,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var dt=function ft(tr){function pr(gr){return new pe(gr,tr)}return pr.tension=function(gr){return ft(+gr)},pr}(0);function It(ft,tr,pr){var gr=ft._x1,Zr=ft._y1,Ai=ft._x2,Qi=ft._y2;if(ft._l01_a>f){var ni=2*ft._l01_2a+3*ft._l01_a*ft._l12_a+ft._l12_2a,Zi=3*ft._l01_a*(ft._l01_a+ft._l12_a);gr=(gr*ni-ft._x0*ft._l12_2a+ft._x2*ft._l01_2a)/Zi,Zr=(Zr*ni-ft._y0*ft._l12_2a+ft._y2*ft._l01_2a)/Zi}if(ft._l23_a>f){var aa=2*ft._l23_2a+3*ft._l23_a*ft._l12_a+ft._l12_2a,Mn=3*ft._l23_a*(ft._l23_a+ft._l12_a);Ai=(Ai*aa+ft._x1*ft._l23_2a-tr*ft._l12_2a)/Mn,Qi=(Qi*aa+ft._y1*ft._l23_2a-pr*ft._l12_2a)/Mn}ft._context.bezierCurveTo(gr,Zr,Ai,Qi,ft._x2,ft._y2)}function Pt(ft,tr){this._context=ft,this._alpha=tr}Pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){if(ft=+ft,tr=+tr,this._point){var pr=this._x2-ft,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;break;case 2:this._point=3;default:It(this,ft,tr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var rr=function ft(tr){function pr(gr){return tr?new Pt(gr,tr):new De(gr,0)}return pr.alpha=function(gr){return ft(+gr)},pr}(.5);function Hr(ft,tr){this._context=ft,this._alpha=tr}Hr.prototype={areaStart:$e,areaEnd:$e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(ft,tr){if(ft=+ft,tr=+tr,this._point){var pr=this._x2-ft,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=ft,this._y3=tr;break;case 1:this._point=2,this._context.moveTo(this._x4=ft,this._y4=tr);break;case 2:this._point=3,this._x5=ft,this._y5=tr;break;default:It(this,ft,tr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var Dr=function ft(tr){function pr(gr){return tr?new Hr(gr,tr):new ge(gr,0)}return pr.alpha=function(gr){return ft(+gr)},pr}(.5);function Mr(ft,tr){this._context=ft,this._alpha=tr}Mr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){if(ft=+ft,tr=+tr,this._point){var pr=this._x2-ft,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:It(this,ft,tr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var Fr=function ft(tr){function pr(gr){return tr?new Mr(gr,tr):new pe(gr,0)}return pr.alpha=function(gr){return ft(+gr)},pr}(.5);function di(ft){this._context=ft}di.prototype={areaStart:$e,areaEnd:$e,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(ft,tr){ft=+ft,tr=+tr,this._point?this._context.lineTo(ft,tr):(this._point=1,this._context.moveTo(ft,tr))}};function Di(ft){return new di(ft)}function Ii(ft){return ft<0?-1:1}function Ci(ft,tr,pr){var gr=ft._x1-ft._x0,Zr=tr-ft._x1,Ai=(ft._y1-ft._y0)/(gr||Zr<0&&-0),Qi=(pr-ft._y1)/(Zr||gr<0&&-0),ni=(Ai*Zr+Qi*gr)/(gr+Zr);return(Ii(Ai)+Ii(Qi))*Math.min(Math.abs(Ai),Math.abs(Qi),.5*Math.abs(ni))||0}function nn(ft,tr){var pr=ft._x1-ft._x0;return pr?(3*(ft._y1-ft._y0)/pr-tr)/2:tr}function ii(ft,tr,pr){var gr=ft._x0,Zr=ft._y0,Ai=ft._x1,Qi=ft._y1,ni=(Ai-gr)/3;ft._context.bezierCurveTo(gr+ni,Zr+ni*tr,Ai-ni,Qi-ni*pr,Ai,Qi)}function wi(ft){this._context=ft}wi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ii(this,this._t0,nn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){var pr=NaN;if(ft=+ft,tr=+tr,!(ft===this._x1&&tr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;break;case 2:this._point=3,ii(this,nn(this,pr=Ci(this,ft,tr)),pr);break;default:ii(this,this._t0,pr=Ci(this,ft,tr));break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr,this._t0=pr}}};function Gi(ft){this._context=new Bt(ft)}(Gi.prototype=Object.create(wi.prototype)).point=function(ft,tr){wi.prototype.point.call(this,tr,ft)};function Bt(ft){this._context=ft}Bt.prototype={moveTo:function(ft,tr){this._context.moveTo(tr,ft)},closePath:function(){this._context.closePath()},lineTo:function(ft,tr){this._context.lineTo(tr,ft)},bezierCurveTo:function(ft,tr,pr,gr,Zr,Ai){this._context.bezierCurveTo(tr,ft,gr,pr,Ai,Zr)}};function yt(ft){return new wi(ft)}function Vt(ft){return new Gi(ft)}function Wt(ft){this._context=ft}Wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var ft=this._x,tr=this._y,pr=ft.length;if(pr)if(this._line?this._context.lineTo(ft[0],tr[0]):this._context.moveTo(ft[0],tr[0]),pr===2)this._context.lineTo(ft[1],tr[1]);else for(var gr=_r(ft),Zr=_r(tr),Ai=0,Qi=1;Qi=0;--tr)Zr[tr]=(Qi[tr]-Zr[tr+1])/Ai[tr];for(Ai[pr-1]=(ft[pr]+Zr[pr-1])/2,tr=0;tr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,tr),this._context.lineTo(ft,tr);else{var pr=this._x*(1-this._t)+ft*this._t;this._context.lineTo(pr,this._y),this._context.lineTo(pr,tr)}break}}this._x=ft,this._y=tr}};function Ir(ft){return new Ur(ft,.5)}function Gr(ft){return new Ur(ft,0)}function jr(ft){return new Ur(ft,1)}function yi(ft,tr){if((Qi=ft.length)>1)for(var pr=1,gr,Zr,Ai=ft[tr[0]],Qi,ni=Ai.length;pr=0;)pr[tr]=tr;return pr}function Vi(ft,tr){return ft[tr]}function ti(){var ft=r([]),tr=Ei,pr=yi,gr=Vi;function Zr(Ai){var Qi=ft.apply(this,arguments),ni,Zi=Ai.length,aa=Qi.length,Mn=new Array(aa),Un;for(ni=0;ni0){for(var pr,gr,Zr=0,Ai=ft[0].length,Qi;Zr0)for(var pr,gr=0,Zr,Ai,Qi,ni,Zi,aa=ft[tr[0]].length;gr0?(Zr[0]=Qi,Zr[1]=Qi+=Ai):Ai<0?(Zr[1]=ni,Zr[0]=ni+=Ai):(Zr[0]=0,Zr[1]=Ai)}function oi(ft,tr){if((Zr=ft.length)>0){for(var pr=0,gr=ft[tr[0]],Zr,Ai=gr.length;pr0)||!((Ai=(Zr=ft[tr[0]]).length)>0))){for(var pr=0,gr=1,Zr,Ai,Qi;grAi&&(Ai=Zr,pr=tr);return pr}function Fi(ft){var tr=ft.map(Ri);return Ei(ft).sort(function(pr,gr){return tr[pr]-tr[gr]})}function Ri(ft){for(var tr=0,pr=-1,gr=ft.length,Zr;++pr{(function(e,t){typeof zB=="object"&&typeof aXe!="undefined"?t(zB,ik(),MB(),QJ()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(zB,function(e,t,r,n){"use strict";function i(m){return m.target.depth}function a(m){return m.depth}function o(m,P){return P-1-m.height}function s(m,P){return m.sourceLinks.length?m.depth:P-1}function u(m){return m.targetLinks.length?m.depth:m.sourceLinks.length?t.min(m.sourceLinks,i)-1:0}function l(m){return function(){return m}}function f(m,P){return h(m.source,P.source)||m.index-P.index}function c(m,P){return h(m.target,P.target)||m.index-P.index}function h(m,P){return m.y0-P.y0}function d(m){return m.value}function p(m){return(m.y0+m.y1)/2}function x(m){return p(m.source)*m.value}function b(m){return p(m.target)*m.value}function v(m){return m.index}function k(m){return m.nodes}function E(m){return m.links}function T(m,P){var A=m.get(P);if(!A)throw new Error("missing: "+P);return A}var L=function(){var m=0,P=0,A=1,B=1,F=24,U=8,G=v,j=s,H=k,N=E,W=32,re=2/3;function ae(){var ke={nodes:H.apply(null,arguments),links:N.apply(null,arguments)};return be(ke),Pe(ke),Ce(ke),de(ke,W),te(ke),ke}ae.update=function(ke){return te(ke),ke},ae.nodeId=function(ke){return arguments.length?(G=typeof ke=="function"?ke:l(ke),ae):G},ae.nodeAlign=function(ke){return arguments.length?(j=typeof ke=="function"?ke:l(ke),ae):j},ae.nodeWidth=function(ke){return arguments.length?(F=+ke,ae):F},ae.nodePadding=function(ke){return arguments.length?(U=+ke,ae):U},ae.nodes=function(ke){return arguments.length?(H=typeof ke=="function"?ke:l(ke),ae):H},ae.links=function(ke){return arguments.length?(N=typeof ke=="function"?ke:l(ke),ae):N},ae.size=function(ke){return arguments.length?(m=P=0,A=+ke[0],B=+ke[1],ae):[A-m,B-P]},ae.extent=function(ke){return arguments.length?(m=+ke[0][0],A=+ke[1][0],P=+ke[0][1],B=+ke[1][1],ae):[[m,P],[A,B]]},ae.iterations=function(ke){return arguments.length?(W=+ke,ae):W};function be(ke){ke.nodes.forEach(function(Me,Ne){Me.index=Ne,Me.sourceLinks=[],Me.targetLinks=[]});var Ee=r.map(ke.nodes,G);ke.links.forEach(function(Me,Ne){Me.index=Ne;var Fe=Me.source,ye=Me.target;typeof Fe!="object"&&(Fe=Me.source=T(Ee,Fe)),typeof ye!="object"&&(ye=Me.target=T(Ee,ye)),Fe.sourceLinks.push(Me),ye.targetLinks.push(Me)})}function Pe(ke){ke.nodes.forEach(function(Ee){Ee.value=Math.max(t.sum(Ee.sourceLinks,d),t.sum(Ee.targetLinks,d))})}function Ce(ke){var Ee,Me,Ne;for(Ee=ke.nodes,Me=[],Ne=0;Ee.length;++Ne,Ee=Me,Me=[])Ee.forEach(function(ye){ye.depth=Ne,ye.sourceLinks.forEach(function(Ve){Me.indexOf(Ve.target)<0&&Me.push(Ve.target)})});for(Ee=ke.nodes,Me=[],Ne=0;Ee.length;++Ne,Ee=Me,Me=[])Ee.forEach(function(ye){ye.height=Ne,ye.targetLinks.forEach(function(Ve){Me.indexOf(Ve.source)<0&&Me.push(Ve.source)})});var Fe=(A-m-F)/(Ne-1);ke.nodes.forEach(function(ye){ye.x1=(ye.x0=m+Math.max(0,Math.min(Ne-1,Math.floor(j.call(null,ye,Ne))))*Fe)+F})}function de(ke){var Ee=r.nest().key(function(Ye){return Ye.x0}).sortKeys(t.ascending).entries(ke.nodes).map(function(Ye){return Ye.values});Fe(),ce();for(var Me=1,Ne=W;Ne>0;--Ne)Ve(Me*=.99),ce(),ye(Me),ce();function Fe(){var Ye=t.max(Ee,function(Nt){return Nt.length}),nt=re*(B-P)/(Ye-1);U>nt&&(U=nt);var gt=t.min(Ee,function(Nt){return(B-P-(Nt.length-1)*U)/t.sum(Nt,d)});Ee.forEach(function(Nt){Nt.forEach(function(it,Ke){it.y1=(it.y0=Ke)+it.value*gt})}),ke.links.forEach(function(Nt){Nt.width=Nt.value*gt})}function ye(Ye){Ee.forEach(function(nt){nt.forEach(function(gt){if(gt.targetLinks.length){var Nt=(t.sum(gt.targetLinks,x)/t.sum(gt.targetLinks,d)-p(gt))*Ye;gt.y0+=Nt,gt.y1+=Nt}})})}function Ve(Ye){Ee.slice().reverse().forEach(function(nt){nt.forEach(function(gt){if(gt.sourceLinks.length){var Nt=(t.sum(gt.sourceLinks,b)/t.sum(gt.sourceLinks,d)-p(gt))*Ye;gt.y0+=Nt,gt.y1+=Nt}})})}function ce(){Ee.forEach(function(Ye){var nt,gt,Nt=P,it=Ye.length,Ke;for(Ye.sort(h),Ke=0;Ke0&&(nt.y0+=gt,nt.y1+=gt),Nt=nt.y1+U;if(gt=Nt-U-B,gt>0)for(Nt=nt.y0-=gt,nt.y1-=gt,Ke=it-2;Ke>=0;--Ke)nt=Ye[Ke],gt=nt.y1+U-Nt,gt>0&&(nt.y0-=gt,nt.y1-=gt),Nt=nt.y0})}}function te(ke){ke.nodes.forEach(function(Ee){Ee.sourceLinks.sort(c),Ee.targetLinks.sort(f)}),ke.nodes.forEach(function(Ee){var Me=Ee.y0,Ne=Me;Ee.sourceLinks.forEach(function(Fe){Fe.y0=Me+Fe.width/2,Me+=Fe.width}),Ee.targetLinks.forEach(function(Fe){Fe.y1=Ne+Fe.width/2,Ne+=Fe.width})})}return ae};function _(m){return[m.source.x1,m.y0]}function C(m){return[m.target.x0,m.y1]}var M=function(){return n.linkHorizontal().source(_).target(C)};e.sankey=L,e.sankeyCenter=u,e.sankeyLeft=a,e.sankeyRight=o,e.sankeyJustify=s,e.sankeyLinkHorizontal=M,Object.defineProperty(e,"__esModule",{value:!0})})});var lXe=Te((G2r,sXe)=>{var uYt=$J();sXe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],u;function l(E){a[E]=!1,o.hasOwnProperty(E)&&Object.keys(o[E]).forEach(function(T){delete o[E][T],a[T]&&l(T)})}function f(E){var T=!1;i.push(E),a[E]=!0;var L,_;for(L=0;L=E})}function d(E){h(E);for(var T=t,L=uYt(T),_=L.components.filter(function(F){return F.length>1}),C=1/0,M,m=0;m<_.length;m++)for(var P=0;P<_[m].length;P++)_[m][P]{(function(e,t){typeof IB=="object"&&typeof uXe!="undefined"?t(IB,ik(),MB(),QJ(),lXe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(IB,function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(it){return it.target.depth}function o(it){return it.depth}function s(it,Ke){return Ke-1-it.height}function u(it,Ke){return it.sourceLinks.length?it.depth:Ke-1}function l(it){return it.targetLinks.length?it.depth:it.sourceLinks.length?t.min(it.sourceLinks,a)-1:0}function f(it){return function(){return it}}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(it){return typeof it}:function(it){return it&&typeof Symbol=="function"&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it};function h(it,Ke){return p(it.source,Ke.source)||it.index-Ke.index}function d(it,Ke){return p(it.target,Ke.target)||it.index-Ke.index}function p(it,Ke){return it.partOfCycle===Ke.partOfCycle?it.y0-Ke.y0:it.circularLinkType==="top"||Ke.circularLinkType==="bottom"?-1:1}function x(it){return it.value}function b(it){return(it.y0+it.y1)/2}function v(it){return b(it.source)}function k(it){return b(it.target)}function E(it){return it.index}function T(it){return it.nodes}function L(it){return it.links}function _(it,Ke){var kt=it.get(Ke);if(!kt)throw new Error("missing: "+Ke);return kt}function C(it,Ke){return Ke(it)}var M=25,m=10,P=.3;function A(){var it=0,Ke=0,kt=1,Tt=1,St=24,Dt,Zt=E,Et=u,Ae=T,at=L,wt=32,vt=2,st,Ue=null;function rt(){var Ie={nodes:Ae.apply(null,arguments),links:at.apply(null,arguments)};$e(Ie),B(Ie,Zt,Ue),zt(Ie),yr(Ie),F(Ie,Zt),br(Ie,wt,Zt),Ut(Ie);for(var xe=4,Oe=0;Oe0?xe+M+m:xe,Oe=Oe>0?Oe+M+m:Oe,Re=Re>0?Re+M+m:Re,De=De>0?De+M+m:De,{top:xe,bottom:Oe,left:De,right:Re}}function hr(Ie,xe){var Oe=t.max(Ie.nodes,function(dt){return dt.column}),Re=kt-it,De=Tt-Ke,ct=Re+xe.right+xe.left,ge=De+xe.top+xe.bottom,fe=Re/ct,pe=De/ge;return it=it*fe+xe.left,kt=xe.right==0?kt:kt*fe,Ke=Ke*pe+xe.top,Tt=Tt*pe,Ie.nodes.forEach(function(dt){dt.x0=it+dt.column*((kt-it-St)/Oe),dt.x1=dt.x0+St}),pe}function yr(Ie){var xe,Oe,Re;for(xe=Ie.nodes,Oe=[],Re=0;xe.length;++Re,xe=Oe,Oe=[])xe.forEach(function(De){De.depth=Re,De.sourceLinks.forEach(function(ct){Oe.indexOf(ct.target)<0&&!ct.circular&&Oe.push(ct.target)})});for(xe=Ie.nodes,Oe=[],Re=0;xe.length;++Re,xe=Oe,Oe=[])xe.forEach(function(De){De.height=Re,De.targetLinks.forEach(function(ct){Oe.indexOf(ct.source)<0&&!ct.circular&&Oe.push(ct.source)})});Ie.nodes.forEach(function(De){De.column=Math.floor(Et.call(null,De,Re))})}function br(Ie,xe,Oe){var Re=r.nest().key(function(dt){return dt.column}).sortKeys(t.ascending).entries(Ie.nodes).map(function(dt){return dt.values});ge(Oe),pe();for(var De=1,ct=xe;ct>0;--ct)fe(De*=.99,Oe),pe();function ge(dt){if(st){var It=1/0;Re.forEach(function(Dr){var Mr=Tt*st/(Dr.length+1);It=Mr0))if(Dr==0&&Hr==1)Fr=Mr.y1-Mr.y0,Mr.y0=Tt/2-Fr/2,Mr.y1=Tt/2+Fr/2;else if(Dr==Pt-1&&Hr==1)Fr=Mr.y1-Mr.y0,Mr.y0=Tt/2-Fr/2,Mr.y1=Tt/2+Fr/2;else{var di=0,Di=t.mean(Mr.sourceLinks,k),Ii=t.mean(Mr.targetLinks,v);Di&&Ii?di=(Di+Ii)/2:di=Di||Ii;var Ci=(di-b(Mr))*dt;Mr.y0+=Ci,Mr.y1+=Ci}})})}function pe(){Re.forEach(function(dt){var It,Pt,rr=Ke,Hr=dt.length,Dr;for(dt.sort(p),Dr=0;Dr0&&(It.y0+=Pt,It.y1+=Pt),rr=It.y1+Dt;if(Pt=rr-Dt-Tt,Pt>0)for(rr=It.y0-=Pt,It.y1-=Pt,Dr=Hr-2;Dr>=0;--Dr)It=dt[Dr],Pt=It.y1+Dt-rr,Pt>0&&(It.y0-=Pt,It.y1-=Pt),rr=It.y0})}}function Ut(Ie){Ie.nodes.forEach(function(xe){xe.sourceLinks.sort(d),xe.targetLinks.sort(h)}),Ie.nodes.forEach(function(xe){var Oe=xe.y0,Re=Oe,De=xe.y1,ct=De;xe.sourceLinks.forEach(function(ge){ge.circular?(ge.y0=De-ge.width/2,De=De-ge.width):(ge.y0=Oe+ge.width/2,Oe+=ge.width)}),xe.targetLinks.forEach(function(ge){ge.circular?(ge.y1=ct-ge.width/2,ct=ct-ge.width):(ge.y1=Re+ge.width/2,Re+=ge.width)})})}return rt}function B(it,Ke,kt){var Tt=0;if(kt===null){for(var St=[],Dt=0;DtKe.source.column)}function j(it,Ke){var kt=0;it.sourceLinks.forEach(function(St){kt=St.circular&&!gt(St,Ke)?kt+1:kt});var Tt=0;return it.targetLinks.forEach(function(St){Tt=St.circular&&!gt(St,Ke)?Tt+1:Tt}),kt+Tt}function H(it){var Ke=it.source.sourceLinks,kt=0;Ke.forEach(function(Dt){kt=Dt.circular?kt+1:kt});var Tt=it.target.targetLinks,St=0;return Tt.forEach(function(Dt){St=Dt.circular?St+1:St}),!(kt>1||St>1)}function N(it,Ke,kt){return it.sort(ae),it.forEach(function(Tt,St){var Dt=0;if(gt(Tt,kt)&&H(Tt))Tt.circularPathData.verticalBuffer=Dt+Tt.width/2;else{var Zt=0;for(Zt;ZtDt?Et:Dt}Tt.circularPathData.verticalBuffer=Dt+Tt.width/2}}),it}function W(it,Ke,kt,Tt){var St=5,Dt=t.min(it.links,function(Ae){return Ae.source.y0});it.links.forEach(function(Ae){Ae.circular&&(Ae.circularPathData={})});var Zt=it.links.filter(function(Ae){return Ae.circularLinkType=="top"});N(Zt,Ke,Tt);var Et=it.links.filter(function(Ae){return Ae.circularLinkType=="bottom"});N(Et,Ke,Tt),it.links.forEach(function(Ae){if(Ae.circular){if(Ae.circularPathData.arcRadius=Ae.width+m,Ae.circularPathData.leftNodeBuffer=St,Ae.circularPathData.rightNodeBuffer=St,Ae.circularPathData.sourceWidth=Ae.source.x1-Ae.source.x0,Ae.circularPathData.sourceX=Ae.source.x0+Ae.circularPathData.sourceWidth,Ae.circularPathData.targetX=Ae.target.x0,Ae.circularPathData.sourceY=Ae.y0,Ae.circularPathData.targetY=Ae.y1,gt(Ae,Tt)&&H(Ae))Ae.circularPathData.leftSmallArcRadius=m+Ae.width/2,Ae.circularPathData.leftLargeArcRadius=m+Ae.width/2,Ae.circularPathData.rightSmallArcRadius=m+Ae.width/2,Ae.circularPathData.rightLargeArcRadius=m+Ae.width/2,Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Ae.source.y1+M+Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.rightLargeArcRadius):(Ae.circularPathData.verticalFullExtent=Ae.source.y0-M-Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.rightLargeArcRadius);else{var at=Ae.source.column,wt=Ae.circularLinkType,vt=it.links.filter(function(rt){return rt.source.column==at&&rt.circularLinkType==wt});Ae.circularLinkType=="bottom"?vt.sort(Pe):vt.sort(be);var st=0;vt.forEach(function(rt,$e){rt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.leftSmallArcRadius=m+Ae.width/2+st,Ae.circularPathData.leftLargeArcRadius=m+Ae.width/2+$e*Ke+st),st=st+rt.width}),at=Ae.target.column,vt=it.links.filter(function(rt){return rt.target.column==at&&rt.circularLinkType==wt}),Ae.circularLinkType=="bottom"?vt.sort(de):vt.sort(Ce),st=0,vt.forEach(function(rt,$e){rt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.rightSmallArcRadius=m+Ae.width/2+st,Ae.circularPathData.rightLargeArcRadius=m+Ae.width/2+$e*Ke+st),st=st+rt.width}),Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Math.max(kt,Ae.source.y1,Ae.target.y1)+M+Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.rightLargeArcRadius):(Ae.circularPathData.verticalFullExtent=Dt-M-Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.rightLargeArcRadius)}Ae.circularPathData.leftInnerExtent=Ae.circularPathData.sourceX+Ae.circularPathData.leftNodeBuffer,Ae.circularPathData.rightInnerExtent=Ae.circularPathData.targetX-Ae.circularPathData.rightNodeBuffer,Ae.circularPathData.leftFullExtent=Ae.circularPathData.sourceX+Ae.circularPathData.leftLargeArcRadius+Ae.circularPathData.leftNodeBuffer,Ae.circularPathData.rightFullExtent=Ae.circularPathData.targetX-Ae.circularPathData.rightLargeArcRadius-Ae.circularPathData.rightNodeBuffer}if(Ae.circular)Ae.path=re(Ae);else{var Ue=n.linkHorizontal().source(function(rt){var $e=rt.source.x0+(rt.source.x1-rt.source.x0),zt=rt.y0;return[$e,zt]}).target(function(rt){var $e=rt.target.x0,zt=rt.y1;return[$e,zt]});Ae.path=Ue(Ae)}})}function re(it){var Ke="";return it.circularLinkType=="top"?Ke="M"+it.circularPathData.sourceX+" "+it.circularPathData.sourceY+" L"+it.circularPathData.leftInnerExtent+" "+it.circularPathData.sourceY+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftSmallArcRadius+" 0 0 0 "+it.circularPathData.leftFullExtent+" "+(it.circularPathData.sourceY-it.circularPathData.leftSmallArcRadius)+" L"+it.circularPathData.leftFullExtent+" "+it.circularPathData.verticalLeftInnerExtent+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftLargeArcRadius+" 0 0 0 "+it.circularPathData.leftInnerExtent+" "+it.circularPathData.verticalFullExtent+" L"+it.circularPathData.rightInnerExtent+" "+it.circularPathData.verticalFullExtent+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightLargeArcRadius+" 0 0 0 "+it.circularPathData.rightFullExtent+" "+it.circularPathData.verticalRightInnerExtent+" L"+it.circularPathData.rightFullExtent+" "+(it.circularPathData.targetY-it.circularPathData.rightSmallArcRadius)+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightSmallArcRadius+" 0 0 0 "+it.circularPathData.rightInnerExtent+" "+it.circularPathData.targetY+" L"+it.circularPathData.targetX+" "+it.circularPathData.targetY:Ke="M"+it.circularPathData.sourceX+" "+it.circularPathData.sourceY+" L"+it.circularPathData.leftInnerExtent+" "+it.circularPathData.sourceY+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftSmallArcRadius+" 0 0 1 "+it.circularPathData.leftFullExtent+" "+(it.circularPathData.sourceY+it.circularPathData.leftSmallArcRadius)+" L"+it.circularPathData.leftFullExtent+" "+it.circularPathData.verticalLeftInnerExtent+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftLargeArcRadius+" 0 0 1 "+it.circularPathData.leftInnerExtent+" "+it.circularPathData.verticalFullExtent+" L"+it.circularPathData.rightInnerExtent+" "+it.circularPathData.verticalFullExtent+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightLargeArcRadius+" 0 0 1 "+it.circularPathData.rightFullExtent+" "+it.circularPathData.verticalRightInnerExtent+" L"+it.circularPathData.rightFullExtent+" "+(it.circularPathData.targetY+it.circularPathData.rightSmallArcRadius)+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightSmallArcRadius+" 0 0 1 "+it.circularPathData.rightInnerExtent+" "+it.circularPathData.targetY+" L"+it.circularPathData.targetX+" "+it.circularPathData.targetY,Ke}function ae(it,Ke){return te(it)==te(Ke)?it.circularLinkType=="bottom"?Pe(it,Ke):be(it,Ke):te(Ke)-te(it)}function be(it,Ke){return it.y0-Ke.y0}function Pe(it,Ke){return Ke.y0-it.y0}function Ce(it,Ke){return it.y1-Ke.y1}function de(it,Ke){return Ke.y1-it.y1}function te(it){return it.target.column-it.source.column}function ke(it){return it.target.x0-it.source.x1}function Ee(it,Ke){var kt=U(it),Tt=ke(Ke)/Math.tan(kt),St=nt(it)=="up"?it.y1+Tt:it.y1-Tt;return St}function Me(it,Ke){var kt=U(it),Tt=ke(Ke)/Math.tan(kt),St=nt(it)=="up"?it.y1-Tt:it.y1+Tt;return St}function Ne(it,Ke,kt,Tt){it.links.forEach(function(St){if(!St.circular&&St.target.column-St.source.column>1){var Dt=St.source.column+1,Zt=St.target.column-1,Et=1,Ae=Zt-Dt+1;for(Et=1;Dt<=Zt;Dt++,Et++)it.nodes.forEach(function(at){if(at.column==Dt){var wt=Et/(Ae+1),vt=Math.pow(1-wt,3),st=3*wt*Math.pow(1-wt,2),Ue=3*Math.pow(wt,2)*(1-wt),rt=Math.pow(wt,3),$e=vt*St.y0+st*St.y0+Ue*St.y1+rt*St.y1,zt=$e-St.width/2,Yt=$e+St.width/2,hr;zt>at.y0&&ztat.y0&&Ytat.y1&&ye(yr,hr,Ke,kt)})):ztat.y1&&(hr=Yt-at.y0+10,at=ye(at,hr,Ke,kt),it.nodes.forEach(function(yr){C(yr,Tt)==C(at,Tt)||yr.column!=at.column||yr.y0at.y1&&ye(yr,hr,Ke,kt)}))}})}})}function Fe(it,Ke){return it.y0>Ke.y0&&it.y0Ke.y0&&it.y1Ke.y1}function ye(it,Ke,kt,Tt){return it.y0+Ke>=kt&&it.y1+Ke<=Tt&&(it.y0=it.y0+Ke,it.y1=it.y1+Ke,it.targetLinks.forEach(function(St){St.y1=St.y1+Ke}),it.sourceLinks.forEach(function(St){St.y0=St.y0+Ke})),it}function Ve(it,Ke,kt,Tt){it.nodes.forEach(function(St){Tt&&St.y+(St.y1-St.y0)>Ke&&(St.y=St.y-(St.y+(St.y1-St.y0)-Ke));var Dt=it.links.filter(function(Ae){return C(Ae.source,kt)==C(St,kt)}),Zt=Dt.length;Zt>1&&Dt.sort(function(Ae,at){if(!Ae.circular&&!at.circular){if(Ae.target.column==at.target.column)return Ae.y1-at.y1;if(Ye(Ae,at)){if(Ae.target.column>at.target.column){var wt=Me(at,Ae);return Ae.y1-wt}if(at.target.column>Ae.target.column){var vt=Me(Ae,at);return vt-at.y1}}else return Ae.y1-at.y1}if(Ae.circular&&!at.circular)return Ae.circularLinkType=="top"?-1:1;if(at.circular&&!Ae.circular)return at.circularLinkType=="top"?1:-1;if(Ae.circular&&at.circular)return Ae.circularLinkType===at.circularLinkType&&Ae.circularLinkType=="top"?Ae.target.column===at.target.column?Ae.target.y1-at.target.y1:at.target.column-Ae.target.column:Ae.circularLinkType===at.circularLinkType&&Ae.circularLinkType=="bottom"?Ae.target.column===at.target.column?at.target.y1-Ae.target.y1:Ae.target.column-at.target.column:Ae.circularLinkType=="top"?-1:1});var Et=St.y0;Dt.forEach(function(Ae){Ae.y0=Et+Ae.width/2,Et=Et+Ae.width}),Dt.forEach(function(Ae,at){if(Ae.circularLinkType=="bottom"){var wt=at+1,vt=0;for(wt;wt1&&St.sort(function(Et,Ae){if(!Et.circular&&!Ae.circular){if(Et.source.column==Ae.source.column)return Et.y0-Ae.y0;if(Ye(Et,Ae)){if(Ae.source.column0?"up":"down"}function gt(it,Ke){return C(it.source,Ke)==C(it.target,Ke)}function Nt(it,Ke,kt){var Tt=it.nodes,St=it.links,Dt=!1,Zt=!1;if(St.forEach(function(st){st.circularLinkType=="top"?Dt=!0:st.circularLinkType=="bottom"&&(Zt=!0)}),Dt==!1||Zt==!1){var Et=t.min(Tt,function(st){return st.y0}),Ae=t.max(Tt,function(st){return st.y1}),at=Ae-Et,wt=kt-Ke,vt=wt/at;Tt.forEach(function(st){var Ue=(st.y1-st.y0)*vt;st.y0=(st.y0-Et)*vt,st.y1=st.y0+Ue}),St.forEach(function(st){st.y0=(st.y0-Et)*vt,st.y1=(st.y1-Et)*vt,st.width=st.width*vt})}}e.sankeyCircular=A,e.sankeyCenter=l,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=u,Object.defineProperty(e,"__esModule",{value:!0})})});var e$=Te((H2r,cXe)=>{"use strict";cXe.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}});var TXe=Te((W2r,AXe)=>{"use strict";var hXe=tXe(),fYt=(I2(),ab(z2)).interpolateNumber,LS=Jl(),Kk=oXe(),cYt=fXe(),dc=e$(),PS=cd(),aw=jl(),hYt=Mu(),v1=ei(),i$=v1.strTranslate,dYt=v1.strRotate,n$=Ky(),Jk=n$.keyFun,RB=n$.repeat,gXe=n$.unwrap,dXe=Xf(),pYt=$l(),_Xe=Qh(),vYt=_Xe.CAP_SHIFT,mYt=_Xe.LINE_SPACING,yYt=3;function gYt(e,t,r){var n=gXe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,u=i.node.thickness,l={justify:Kk.sankeyJustify,left:Kk.sankeyLeft,right:Kk.sankeyRight,center:Kk.sankeyCenter}[i.node.align],f=e.width*(a.x[1]-a.x[0]),c=e.height*(a.y[1]-a.y[0]),h=n._nodes,d=n._links,p=n.circular,x;p?x=cYt.sankeyCircular().circularLinkGap(0):x=Kk.sankey(),x.iterations(dc.sankeyIterations).size(o?[f,c]:[c,f]).nodeWidth(u).nodePadding(s).nodeId(function(U){return U.pointNumber}).nodeAlign(l).nodes(h).links(d);var b=x();x.nodePadding()=N||(H=N-j.y0,H>1e-6&&(j.y0+=H,j.y1+=H)),N=j.y1+s})}function P(U){var G=U.map(function(be,Pe){return{x0:be.x0,index:Pe}}).sort(function(be,Pe){return be.x0-Pe.x0}),j=[],H=-1,N,W=-1/0,re;for(v=0;vW+u&&(H+=1,N=ae.x0),W=ae.x0,j[H]||(j[H]=[]),j[H].push(ae),re=N-ae.x0,ae.x0+=re,ae.x1+=re}return j}if(i.node.x.length&&i.node.y.length){for(v=0;v0?" L "+i.targetX+" "+i.targetY:"")+"Z"):(r="M "+(i.targetX-t)+" "+(i.targetY-n)+" L "+(i.rightInnerExtent-t)+" "+(i.targetY-n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightSmallArcRadius+n)+" 0 0 0 "+(i.rightFullExtent-n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" L "+(i.rightFullExtent-n-t)+" "+i.verticalRightInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-n-t)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent+n-t-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:a?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent-t-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.leftFullExtent+n+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent+n)+" L "+i.leftInnerExtent+" "+(i.verticalFullExtent+n)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent,r+=" L "+(i.leftFullExtent+n)+" "+(i.sourceY+i.leftSmallArcRadius)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftSmallArcRadius+n)+" 0 0 0 "+i.leftInnerExtent+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY+n)+" L "+i.leftInnerExtent+" "+(i.sourceY+n)+" A "+(i.leftLargeArcRadius-n)+" "+(i.leftSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n)+" "+(i.sourceY+i.leftSmallArcRadius)+" L "+(i.leftFullExtent-n)+" "+i.verticalLeftInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.rightFullExtent+n-t+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:a?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent-t-n)+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:r+=" A "+(i.leftLargeArcRadius-n)+" "+(i.leftLargeArcRadius-n)+" 0 0 1 "+i.leftInnerExtent+" "+(i.verticalFullExtent-n)+" L "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightLargeArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent,r+=" L "+(i.rightFullExtent+n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightInnerExtent-t)+" "+(i.targetY+n)+" L "+(i.targetX-t)+" "+(i.targetY+n)+(t>0?" L "+i.targetX+" "+i.targetY:"")+"Z"),r}function a$(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return xYt(r.link,n);var i=Math.abs((r.link.target.x0-r.link.source.x1)/2);n>i&&(n=i);var a=r.link.source.x1,o=r.link.target.x0-n,s=fYt(a,o),u=s(e),l=s(1-e),f=r.link.y0-r.link.width/2,c=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,d=r.link.y1+r.link.width/2,p="M"+a+","+f,x="C"+u+","+f+" "+l+","+h+" "+o+","+h,b="C"+l+","+d+" "+u+","+c+" "+a+","+c,v=n>0?"L"+(o+n)+","+(h+r.link.width/2):"";return v+="L"+o+","+d,p+x+v+b+"Z"}return t}function bYt(e,t){var r=PS(t.color),n=dc.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var a=t.dx,o=Math.max(.5,t.dy),s="node_"+t.pointNumber;return t.group&&(s=v1.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:s,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:aw.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,s].join("_"),interactionState:e.interactionState,figure:e}}function r$(e){e.attr("transform",function(t){return i$(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function wYt(e){e.call(r$)}function xXe(e,t){e.call(wYt),t.attr("d",a$())}function pXe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function t$(e){return e.link.width>1||e.linkLineWidth>0}function vXe(e){var t=i$(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function mXe(e,t,r){e.on(".basic",null).on("mouseover.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.hover(this,n,t),n.interactionState.hovered=[this,n])}).on("mousemove.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.follow(this,n),n.interactionState.hovered=[this,n])}).on("mouseout.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.unhover(this,n,t),n.interactionState.hovered=!1)}).on("click.basic",function(n){n.interactionState.hovered&&(r.unhover(this,n,t),n.interactionState.hovered=!1),!n.interactionState.dragInProgress&&!n.partOfGroup&&r.select(this,n,t)})}function AYt(e,t,r,n){var i=LS.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(v1.ensureSingle(n._fullLayout._infolayer,"g","dragcover",function(s){n._fullLayout._dragCover=s}),v1.raiseToTop(this),a.interactionState.dragInProgress=a.node,yXe(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):TYt(e,o,a,n),SYt(e,t,a,o,n)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=LS.event.x,s=LS.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),yXe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),xXe(e.filter(wXe(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var u=r.node.originalX;r.node.x0=u-r.visibleWidth/2,r.node.x1=u+r.visibleWidth/2,bXe(r,i)}})}function MYt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function bXe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Xp=Jl(),s$=ei(),DB=s$.numberFormat,LYt=TXe(),zS=Xc(),PYt=jl(),Tx=e$().cn,$k=s$._;function SXe(e){return e!==""}function IS(e,t){return e.filter(function(r){return r.key===t.traceId})}function MXe(e,t){Xp.select(e).select("path").style("fill-opacity",t),Xp.select(e).select("rect").style("fill-opacity",t)}function EXe(e){Xp.select(e).select("text.name").style("fill","black")}function kXe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function CXe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function LXe(e,t,r){t&&r&&IS(r,t).selectAll("."+Tx.sankeyLink).filter(kXe(t)).call(PXe.bind(0,t,r,!1))}function o$(e,t,r){t&&r&&IS(r,t).selectAll("."+Tx.sankeyLink).filter(kXe(t)).call(zXe.bind(0,t,r,!1))}function PXe(e,t,r,n){n.style("fill",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverHue}).style("fill-opacity",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverAlpha}),n.each(function(i){var a=i.link.label;a!==""&&IS(t,e).selectAll("."+Tx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverHue}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverAlpha})}),r&&IS(t,e).selectAll("."+Tx.sankeyNode).filter(CXe(e)).call(LXe)}function zXe(e,t,r,n){n.style("fill",function(i){return i.tinyColorHue}).style("fill-opacity",function(i){return i.tinyColorAlpha}),n.each(function(i){var a=i.link.label;a!==""&&IS(t,e).selectAll("."+Tx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){return o.tinyColorHue}).style("fill-opacity",function(o){return o.tinyColorAlpha})}),r&&IS(t,e).selectAll(Tx.sankeyNode).filter(CXe(e)).call(o$)}function th(e,t){var r=e.hoverlabel||{},n=s$.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}IXe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:th(C,"bgcolor")||PYt.addOpacity(B.color,1),borderColor:th(C,"bordercolor"),fontFamily:th(C,"font.family"),fontSize:th(C,"font.size"),fontColor:th(C,"font.color"),fontWeight:th(C,"font.weight"),fontStyle:th(C,"font.style"),fontVariant:th(C,"font.variant"),fontTextcase:th(C,"font.textcase"),fontLineposition:th(C,"font.lineposition"),fontShadow:th(C,"font.shadow"),nameLength:th(C,"namelength"),textAlign:th(C,"align"),idealAlign:Xp.event.x"),color:th(C,"bgcolor")||_.tinyColorHue,borderColor:th(C,"bordercolor"),fontFamily:th(C,"font.family"),fontSize:th(C,"font.size"),fontColor:th(C,"font.color"),fontWeight:th(C,"font.weight"),fontStyle:th(C,"font.style"),fontVariant:th(C,"font.variant"),fontTextcase:th(C,"font.textcase"),fontLineposition:th(C,"font.lineposition"),fontShadow:th(C,"font.shadow"),nameLength:th(C,"namelength"),textAlign:th(C,"align"),idealAlign:"left",hovertemplate:C.hovertemplate,hovertemplateLabels:U,eventData:[_.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});MXe(H,.85),EXe(H)}}},T=function(L,_,C){t._fullLayout.hovermode!==!1&&(Xp.select(L).call(o$,_,C),_.node.trace.node.hoverinfo!=="skip"&&(_.node.fullData=_.node.trace,t.emit("plotly_unhover",{event:Xp.event,points:[_.node]})),zS.loneUnhover(n._hoverlayer.node()))};LYt(t,i,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:l,follow:x,unhover:b,select:u},nodeEvents:{hover:k,follow:E,unhover:T,select:v}})}});var RXe=Te(ow=>{"use strict";var zYt=Sc().overrideAll,IYt=Rd().getModuleCalcData,RYt=l$(),DYt=q1(),FYt=Am(),BYt=xp(),OYt=ah().prepSelect,u$=ei(),qYt=$l(),FB="sankey";ow.name=FB;ow.baseLayoutAttrOverrides=zYt({hoverlabel:DYt.hoverlabel},"plot","nested");ow.plot=function(e){var t=IYt(e.calcdata,FB)[0];RYt(e,t),ow.updateFx(e)};ow.clean=function(e,t,r,n){var i=n._has&&n._has(FB),a=t._has&&t._has(FB);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};ow.updateFx=function(e){for(var t=0;t{"use strict";DXe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";BXe.exports={attributes:JJ(),supplyDefaults:Uje(),calc:jje(),plot:l$(),moduleType:"trace",name:"sankey",basePlotModule:RXe(),selectPoints:FXe(),categories:["noOpacity"],meta:{}}});var NXe=Te((K2r,qXe)=>{"use strict";qXe.exports=OXe()});var VXe=Te(RS=>{"use strict";var UXe=Cc();RS.name="indicator";RS.plot=function(e,t,r,n){UXe.plotBasePlot(RS.name,e,t,r,n)};RS.clean=function(e,t,r,n){UXe.cleanBasePlot(RS.name,e,t,r,n)}});var c$=Te(($2r,ZXe)=>{"use strict";var Sx=Su().extendFlat,HXe=Su().extendDeep,UYt=Sc().overrideAll,WXe=gc(),jXe=Ih(),VYt=zc().attributes,lh=Dd(),GYt=Pf().templatedArray,BB=GA(),GXe=jc().descriptionOnlyNumbers,f$=WXe({editType:"plot",colorEditType:"plot"}),Qk={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:jXe.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},XXe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},HYt=GYt("step",HXe({},Qk,{range:XXe}));ZXe.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:VYt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Sx({},f$,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:GXe("value")},font:Sx({},f$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:GXe("value")},increasing:{symbol:{valType:"string",dflt:BB.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:BB.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:BB.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:BB.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Sx({},f$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:HXe({},Qk,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:jXe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:UYt({range:XXe,visible:Sx({},lh.visible,{dflt:!0}),tickmode:lh.minor.tickmode,nticks:lh.nticks,tick0:lh.tick0,dtick:lh.dtick,tickvals:lh.tickvals,ticktext:lh.ticktext,ticks:Sx({},lh.ticks,{dflt:"outside"}),ticklen:lh.ticklen,tickwidth:lh.tickwidth,tickcolor:lh.tickcolor,ticklabelstep:lh.ticklabelstep,showticklabels:lh.showticklabels,labelalias:lh.labelalias,tickfont:WXe({}),tickangle:lh.tickangle,tickformat:lh.tickformat,tickformatstops:lh.tickformatstops,tickprefix:lh.tickprefix,showtickprefix:lh.showtickprefix,ticksuffix:lh.ticksuffix,showticksuffix:lh.showticksuffix,separatethousands:lh.separatethousands,exponentformat:lh.exponentformat,minexponent:lh.minexponent,showexponent:lh.showexponent,editType:"plot"},"plot"),steps:HYt,threshold:{line:{color:Sx({},Qk.line.color,{}),width:Sx({},Qk.line.width,{dflt:1}),editType:"plot"},thickness:Sx({},Qk.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var h$=Te((Q2r,YXe)=>{"use strict";YXe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var $Xe=Te((ewr,JXe)=>{"use strict";var eg=ei(),qB=c$(),WYt=zc().defaults,KXe=Pf(),jYt=Jd(),OB=h$(),XYt=xb(),ZYt=A3(),YYt=e_(),KYt=t_();function JYt(e,t,r,n){function i(_,C){return eg.coerce(e,t,qB,_,C)}WYt(t,n,i),i("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=i("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){i("number.valueformat");var u=eg.extendFlat({},n.font);u.size=void 0,eg.coerceFont(i,"number.font",u),t.number.font.size===void 0&&(t.number.font.size=OB.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var l;if(t._hasDelta){var f=eg.extendFlat({},n.font);f.size=void 0,eg.coerceFont(i,"delta.font",f),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||OB.defaultNumberFontSize),o[1]=!0),i("delta.reference",t.value),i("delta.relative"),i("delta.valueformat",t.delta.relative?"2%":""),i("delta.increasing.symbol"),i("delta.increasing.color"),i("delta.decreasing.symbol"),i("delta.decreasing.color"),i("delta.position"),i("delta.prefix"),i("delta.suffix"),l=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var c=eg.extendFlat({},n.font);c.size=.25*(s||l||OB.defaultNumberFontSize),eg.coerceFont(i,"title.font",c),i("title.text");var h,d,p,x;function b(_,C){return eg.coerce(h,d,qB.gauge,_,C)}function v(_,C){return eg.coerce(p,x,qB.gauge.axis,_,C)}if(t._hasGauge){h=e.gauge,h||(h={}),d=KXe.newContainer(t,"gauge"),b("shape");var k=t._isBullet=t.gauge.shape==="bullet";k||i("title.align","center");var E=t._isAngular=t.gauge.shape==="angular";E||i("align","center"),b("bgcolor",n.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var T=OB.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",T),jYt(h,d,{name:"steps",handleItemDefaults:$Yt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),p={},h&&(p=h.axis||{}),x=KXe.newContainer(d,"axis"),v("visible"),t._range=v("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};XYt(p,x,v,"linear"),KYt(p,x,v,"linear",L),YYt(p,x,v,"linear",L),ZYt(p,x,v,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function $Yt(e,t){function r(n,i){return eg.coerce(e,t,qB.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}JXe.exports={supplyDefaults:JYt}});var eZe=Te((twr,QXe)=>{"use strict";function QYt(e,t){var r=[],n=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var i=t._lastValue,a=i;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}QXe.exports={calc:QYt}});var oZe=Te((rwr,aZe)=>{"use strict";var cw=Jl(),eKt=(I2(),ab(z2)).interpolate,tZe=(I2(),ab(z2)).interpolateNumber,Mx=ei(),tKt=Mx.strScale,tC=Mx.strTranslate,rKt=Mx.rad2deg,iKt=Qh().MID_SHIFT,fw=Mu(),sw=h$(),UB=Xf(),up=wu(),nKt=tE(),aKt=oI(),oKt=Dd(),DS=jl(),d$={left:"start",center:"middle",right:"end"},lw={left:0,center:.5,right:1},rZe=/[yzafpnµmkMGTPEZY]/;function rC(e){return e&&e.duration>0}aZe.exports=function(t,r,n,i){var a=t._fullLayout,o;rC(n)&&i&&(o=i()),Mx.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var u=s[0],l=u.trace,f=cw.select(this),c=l._hasGauge,h=l._isAngular,d=l._isBullet,p=l.domain,x={w:a._size.w*(p.x[1]-p.x[0]),h:a._size.h*(p.y[1]-p.y[0]),l:a._size.l+a._size.w*p.x[0],r:a._size.r+a._size.w*(1-p.x[1]),t:a._size.t+a._size.h*(1-p.y[1]),b:a._size.b+a._size.h*p.y[0]},b=x.l+x.w/2,v=x.t+x.h/2,k=Math.min(x.w/2,x.h),E=sw.innerRadius*k,T,L,_,C=l.align||"center";if(L=v,!c)T=x.l+lw[C]*x.w,_=function(H){return iZe(H,x.w,x.h)};else if(h&&(T=b,L=v+k/2,_=function(H){return cKt(H,.9*E)}),d){var M=sw.bulletPadding,m=1-sw.bulletNumberDomainSize+M;T=x.l+(m+(1-m)*lw[C])*x.w,_=function(H){return iZe(H,(sw.bulletNumberDomainSize-M)*x.w,x.h)}}uKt(t,f,s,{numbersX:T,numbersY:L,numbersScaler:_,transitionOpts:n,onComplete:o});var P,A;c&&(P={range:l.gauge.axis.range,color:l.gauge.bgcolor,line:{color:l.gauge.bordercolor,width:0},thickness:1},A={range:l.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:l.gauge.bordercolor,width:l.gauge.borderwidth},thickness:1});var B=f.selectAll("g.angular").data(h?s:[]);B.exit().remove();var F=f.selectAll("g.angularaxis").data(h?s:[]);F.exit().remove(),h&&lKt(t,f,s,{radius:k,innerRadius:E,gauge:B,layer:F,size:x,gaugeBg:P,gaugeOutline:A,transitionOpts:n,onComplete:o});var U=f.selectAll("g.bullet").data(d?s:[]);U.exit().remove();var G=f.selectAll("g.bulletaxis").data(d?s:[]);G.exit().remove(),d&&sKt(t,f,s,{gauge:U,layer:G,size:x,gaugeBg:P,gaugeOutline:A,transitionOpts:n,onComplete:o});var j=f.selectAll("text.title").data(s);j.exit().remove(),j.enter().append("text").classed("title",!0),j.attr("text-anchor",function(){return d?d$.right:d$[l.title.align]}).text(l.title.text).call(fw.font,l.title.font).call(UB.convertToTspans,t),j.attr("transform",function(){var H=x.l+x.w*lw[l.title.align],N,W=sw.titlePadding,re=fw.bBox(j.node());if(c){if(h)if(l.gauge.axis.visible){var ae=fw.bBox(F.node());N=ae.top-W-re.bottom}else N=x.t+x.h/2-k/2-re.bottom-W;d&&(N=L-(re.top+re.bottom)/2,H=x.l-sw.bulletPadding*x.w)}else N=l._numbersTop-W-re.bottom;return tC(H,N)})})};function sKt(e,t,r,n){var i=r[0].trace,a=n.gauge,o=n.layer,s=n.gaugeBg,u=n.gaugeOutline,l=n.size,f=i.domain,c=n.transitionOpts,h=n.onComplete,d,p,x,b,v;a.enter().append("g").classed("bullet",!0),a.attr("transform",tC(l.l,l.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var k=l.h,E=i.gauge.bar.thickness*k,T=f.x[0],L=f.x[0]+(f.x[1]-f.x[0])*(i._hasNumber||i._hasDelta?1-sw.bulletNumberDomainSize:1);d=eC(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[T,L],d.setScale(),p=up.calcTicks(d),x=up.makeTransTickFn(d),b=up.getTickSigns(d)[2],v=l.t+l.h,d.visible&&(up.drawTicks(e,d,{vals:d.ticks==="inside"?up.clipEnds(d,p):p,layer:o,path:up.makeTickPath(d,v,b),transFn:x}),up.drawLabels(e,d,{vals:p,layer:o,transFn:x,labelFns:up.makeLabelFns(d,v)}));function _(F){F.attr("width",function(U){return Math.max(0,d.c2p(U.range[1])-d.c2p(U.range[0]))}).attr("x",function(U){return d.c2p(U.range[0])}).attr("y",function(U){return .5*(1-U.thickness)*k}).attr("height",function(U){return U.thickness*k})}var C=[s].concat(i.gauge.steps),M=a.selectAll("g.bg-bullet").data(C);M.enter().append("g").classed("bg-bullet",!0).append("rect"),M.select("rect").call(_).call(uw),M.exit().remove();var m=a.selectAll("g.value-bullet").data([i.gauge.bar]);m.enter().append("g").classed("value-bullet",!0).append("rect"),m.select("rect").attr("height",E).attr("y",(k-E)/2).call(uw),rC(c)?m.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y)))):m.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y))):0),m.exit().remove();var P=r.filter(function(){return i.gauge.threshold.value||i.gauge.threshold.value===0}),A=a.selectAll("g.threshold-bullet").data(P);A.enter().append("g").classed("threshold-bullet",!0).append("line"),A.select("line").attr("x1",d.c2p(i.gauge.threshold.value)).attr("x2",d.c2p(i.gauge.threshold.value)).attr("y1",(1-i.gauge.threshold.thickness)/2*k).attr("y2",(1-(1-i.gauge.threshold.thickness)/2)*k).call(DS.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),A.exit().remove();var B=a.selectAll("g.gauge-outline").data([u]);B.enter().append("g").classed("gauge-outline",!0).append("rect"),B.select("rect").call(_).call(uw),B.exit().remove()}function lKt(e,t,r,n){var i=r[0].trace,a=n.size,o=n.radius,s=n.innerRadius,u=n.gaugeBg,l=n.gaugeOutline,f=[a.l+a.w/2,a.t+a.h/2+o/2],c=n.gauge,h=n.layer,d=n.transitionOpts,p=n.onComplete,x=Math.PI/2;function b(be){var Pe=i.gauge.axis.range[0],Ce=i.gauge.axis.range[1],de=(be-Pe)/(Ce-Pe)*Math.PI-x;return de<-x?-x:de>x?x:de}function v(be){return cw.svg.arc().innerRadius((s+o)/2-be/2*(o-s)).outerRadius((s+o)/2+be/2*(o-s)).startAngle(-x)}function k(be){be.attr("d",function(Pe){return v(Pe.thickness).startAngle(b(Pe.range[0])).endAngle(b(Pe.range[1]))()})}var E,T,L,_;c.enter().append("g").classed("angular",!0),c.attr("transform",tC(f[0],f[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),E=eC(e,i.gauge.axis),E.type="linear",E.range=i.gauge.axis.range,E._id="xangularaxis",E.ticklabeloverflow="allow",E.setScale();var C=function(be){return(E.range[0]-be.x)/(E.range[1]-E.range[0])*Math.PI+Math.PI},M={},m=up.makeLabelFns(E,0),P=m.labelStandoff;M.xFn=function(be){var Pe=C(be);return Math.cos(Pe)*P},M.yFn=function(be){var Pe=C(be),Ce=Math.sin(Pe)>0?.2:1;return-Math.sin(Pe)*(P+be.fontSize*Ce)+Math.abs(Math.cos(Pe))*(be.fontSize*iKt)},M.anchorFn=function(be){var Pe=C(be),Ce=Math.cos(Pe);return Math.abs(Ce)<.1?"middle":Ce>0?"start":"end"},M.heightFn=function(be,Pe,Ce){var de=C(be);return-.5*(1+Math.sin(de))*Ce};var A=function(be){return tC(f[0]+o*Math.cos(be),f[1]-o*Math.sin(be))};L=function(be){return A(C(be))};var B=function(be){var Pe=C(be);return A(Pe)+"rotate("+-rKt(Pe)+")"};if(T=up.calcTicks(E),_=up.getTickSigns(E)[2],E.visible){_=E.ticks==="inside"?-1:1;var F=(E.linewidth||1)/2;up.drawTicks(e,E,{vals:T,layer:h,path:"M"+_*F+",0h"+_*E.ticklen,transFn:B}),up.drawLabels(e,E,{vals:T,layer:h,transFn:L,labelFns:M})}var U=[u].concat(i.gauge.steps),G=c.selectAll("g.bg-arc").data(U);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(k).call(uw),G.exit().remove();var j=v(i.gauge.bar.thickness),H=c.selectAll("g.value-arc").data([i.gauge.bar]);H.enter().append("g").classed("value-arc",!0).append("path");var N=H.select("path");rC(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",fKt(j,b(r[0].lastY),b(r[0].y))),i._lastValue=r[0].y):N.attr("d",typeof r[0].y=="number"?j.endAngle(b(r[0].y)):"M0,0Z"),N.call(uw),H.exit().remove(),U=[];var W=i.gauge.threshold.value;(W||W===0)&&U.push({range:[W,W],color:i.gauge.threshold.color,line:{color:i.gauge.threshold.line.color,width:i.gauge.threshold.line.width},thickness:i.gauge.threshold.thickness});var re=c.selectAll("g.threshold-arc").data(U);re.enter().append("g").classed("threshold-arc",!0).append("path"),re.select("path").call(k).call(uw),re.exit().remove();var ae=c.selectAll("g.gauge-outline").data([l]);ae.enter().append("g").classed("gauge-outline",!0).append("path"),ae.select("path").call(k).call(uw),ae.exit().remove()}function uKt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",u=d$[s],l=n.transitionOpts,f=n.onComplete,c=Mx.ensureSingle(t,"g","numbers"),h,d,p,x=[];i._hasNumber&&x.push("number"),i._hasDelta&&(x.push("delta"),i.delta.position==="left"&&x.reverse());var b=c.selectAll("text").data(x);b.enter().append("text"),b.attr("text-anchor",function(){return u}).attr("class",function(A){return A}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function v(A,B,F,U){if(A.match("s")&&F>=0!=U>=0&&!B(F).slice(-1).match(rZe)&&!B(U).slice(-1).match(rZe)){var G=A.slice().replace("s","f").replace(/\d+/,function(H){return parseInt(H)-1}),j=eC(e,{tickformat:G});return function(H){return Math.abs(H)<1?up.tickText(j,H).text:B(H)}}else return B}function k(){var A=eC(e,{tickformat:i.number.valueformat},i._range);A.setScale(),up.prepTicks(A);var B=function(H){return up.tickText(A,H).text},F=i.number.suffix,U=i.number.prefix,G=c.select("text.number");function j(){var H=typeof r[0].y=="number"?U+B(r[0].y)+F:"-";G.text(H).call(fw.font,i.number.font).call(UB.convertToTspans,e)}return rC(l)?G.transition().duration(l.duration).ease(l.easing).each("end",function(){j(),f&&f()}).each("interrupt",function(){j(),f&&f()}).attrTween("text",function(){var H=cw.select(this),N=tZe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var W=v(i.number.valueformat,B,r[0].lastY,r[0].y);return function(re){H.text(U+W(N(re))+F)}}):j(),h=nZe(U+B(r[0].y)+F,i.number.font,u,e),G}function E(){var A=eC(e,{tickformat:i.delta.valueformat},i._range);A.setScale(),up.prepTicks(A);var B=function(re){return up.tickText(A,re).text},F=i.delta.suffix,U=i.delta.prefix,G=function(re){var ae=i.delta.relative?re.relativeDelta:re.delta;return ae},j=function(re,ae){return re===0||typeof re!="number"||isNaN(re)?"-":(re>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+U+ae(re)+F},H=function(re){return re.delta>=0?i.delta.increasing.color:i.delta.decreasing.color};i._deltaLastValue===void 0&&(i._deltaLastValue=G(r[0]));var N=c.select("text.delta");N.call(fw.font,i.delta.font).call(DS.fill,H({delta:i._deltaLastValue}));function W(){N.text(j(G(r[0]),B)).call(DS.fill,H(r[0])).call(UB.convertToTspans,e)}return rC(l)?N.transition().duration(l.duration).ease(l.easing).tween("text",function(){var re=cw.select(this),ae=G(r[0]),be=i._deltaLastValue,Pe=v(i.delta.valueformat,B,be,ae),Ce=tZe(be,ae);return i._deltaLastValue=ae,function(de){re.text(j(Ce(de),Pe)),re.call(DS.fill,H({delta:Ce(de)}))}}).each("end",function(){W(),f&&f()}).each("interrupt",function(){W(),f&&f()}):W(),d=nZe(j(G(r[0]),B),i.delta.font,u,e),N}var T=i.mode+i.align,L;if(i._hasDelta&&(L=E(),T+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,T+=i.delta.increasing.symbol+i.delta.decreasing.symbol,p=d),i._hasNumber&&(k(),T+=i.number.font.size+i.number.font.family+i.number.valueformat+i.number.suffix+i.number.prefix,p=h),i._hasDelta&&i._hasNumber){var _=[(h.left+h.right)/2,(h.top+h.bottom)/2],C=[(d.left+d.right)/2,(d.top+d.bottom)/2],M,m,P=.75*i.delta.font.size;i.delta.position==="left"&&(M=NB(i,"deltaPos",0,-1*(h.width*lw[i.align]+d.width*(1-lw[i.align])+P),T,Math.min),m=_[1]-C[1],p={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+M,right:h.right,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="right"&&(M=NB(i,"deltaPos",0,h.width*(1-lw[i.align])+d.width*lw[i.align]+P,T,Math.max),m=_[1]-C[1],p={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:h.left,right:d.right+M,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="bottom"&&(M=null,m=d.height,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),i.delta.position==="top"&&(M=null,m=h.top,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),L.attr({dx:M,dy:m})}(i._hasNumber||i._hasDelta)&&c.attr("transform",function(){var A=n.numbersScaler(p);T+=A[2];var B=NB(i,"numbersScale",1,A[0],T,Math.min),F;i._scaleNumbers||(B=1),i._isAngular?F=o-B*p.bottom:F=o-B*(p.top+p.bottom)/2,i._numbersTop=B*p.top+F;var U=p[s];s==="center"&&(U=(p.left+p.right)/2);var G=a-B*U;return G=NB(i,"numbersTranslate",0,G,T,Math.max),tC(G,F)+tKt(B)})}function uw(e){e.each(function(t){DS.stroke(cw.select(this),t.line.color)}).each(function(t){DS.fill(cw.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function fKt(e,t,r){return function(){var n=eKt(t,r);return function(i){return e.endAngle(n(i))()}}}function eC(e,t,r){var n=e._fullLayout,i=Mx.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:n.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(u,l){return Mx.coerce(i,a,oKt,u,l)}return nKt(i,a,s,o,n),aKt(i,a,s,o),a}function iZe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function cKt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function nZe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=cw.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(UB.convertToTspans,n).call(fw.font,t),fw.bBox(a.node())}function NB(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=Mx.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var lZe=Te((iwr,sZe)=>{"use strict";sZe.exports={moduleType:"trace",name:"indicator",basePlotModule:VXe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:c$(),supplyDefaults:$Xe().supplyDefaults,calc:eZe().calc,plot:oZe(),meta:{}}});var fZe=Te((nwr,uZe)=>{"use strict";uZe.exports=lZe()});var p$=Te((owr,pZe)=>{"use strict";var cZe=Nb(),VB=Su().extendFlat,hKt=Sc().overrideAll,hZe=gc(),dKt=zc().attributes,dZe=jc().descriptionOnlyNumbers,awr=pZe.exports=hKt({domain:dKt({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:dZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:VB({},cZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:VB({},hZe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:dZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:VB({},cZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:VB({},hZe({arrayOk:!0}))}},"calc","from-root")});var mZe=Te((swr,vZe)=>{"use strict";var v$=ei(),pKt=p$(),vKt=zc().defaults;function mKt(e,t){for(var r=e.columnorder||[],n=e.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(u,l){return u-l}),o=i.map(function(u){return a.indexOf(u)}),s=o.length;s{"use strict";var yKt=Ky().wrap;yZe.exports=function(){return yKt({})}});var m$=Te((uwr,_Ze)=>{"use strict";_Ze.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"
",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}});var kZe=Te((fwr,EZe)=>{"use strict";var xZe=m$(),g$=Su().extendFlat,gKt=ku(),_Kt=mp().isTypedArray,GB=mp().isArrayOrTypedArray;EZe.exports=function(t,r){var n=y$(r.cells.values),i=function(m){return m.slice(r.header.values.length,m.length)},a=y$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=y$(a));var o=a.concat(i(n).map(function(){return MZe((a[0]||[""]).length)})),s=r.domain,u=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),l=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),f=r.header.values.length?o[0].map(function(){return r.header.height}):[xZe.emptyHeaderHeight],c=n.length?n[0].map(function(){return r.cells.height}):[],h=f.reduce(bZe,0),d=l-h,p=d+xZe.uplift,x=TZe(c,p),b=TZe(f,h),v=AZe(b,[]),k=AZe(x,v),E={},T=r._fullInput.columnorder;GB(T)&&(T=Array.from(T)),T=T.concat(i(n.map(function(m,P){return P})));var L=o.map(function(m,P){var A=GB(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return gKt(A)?Number(A):1}),_=L.reduce(bZe,0);L=L.map(function(m){return m/_*u});var C=Math.max(_$(r.header.line.width),_$(r.cells.line.width)),M={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:u,maxLineWidth:C,height:l,columnOrder:T,groupHeight:l,rowBlocks:k,headerRowBlocks:v,scrollY:0,cells:g$({},r.cells,{values:n}),headerCells:g$({},r.header,{values:o}),gdColumns:o.map(function(m){return m[0]}),gdColumnsOriginalOrder:o.map(function(m){return m[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(m,P){var A=E[m];E[m]=(A||0)+1;var B=m+"__"+E[m];return{key:B,label:m,specIndex:P,xIndex:T[P],xScale:wZe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return M.columns.forEach(function(m){m.calcdata=M,m.x=wZe(m)}),M};function _$(e){if(GB(e)){for(var t=0,r=0;r=t||l===e.length-1)&&(r[i]=o,o.key=u++,o.firstRowIndex=s,o.lastRowIndex=l,o=SZe(),i+=a,s=l+1,a=0);return r}function SZe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var CZe=Te(x$=>{"use strict";var HB=Su().extendFlat;x$.splitToPanels=function(e){var t=[0,0],r=HB({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:HB({},e.calcdata,{cells:e.calcdata.headerCells})}),n=HB({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),i=HB({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[n,i,r]};x$.splitToCells=function(e){var t=xKt(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,n){var i=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:n+i,key:t[0]+n,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function xKt(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,n=t?r+t.rows.length:0;return[r,n]}});var L$=Te((hwr,NZe)=>{"use strict";var uu=m$(),Gc=Jl(),b$=ei(),bKt=b$.numberFormat,pc=Ky(),w$=Mu(),wKt=Xf(),AKt=ei().raiseToTop,om=ei().strTranslate,TKt=ei().cancelTransition,SKt=kZe(),FZe=CZe(),LZe=jl();NZe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+uu.cn.table).data(r.map(function(k){var E=pc.unwrap(k),T=E.trace;return SKt(t,T)}),pc.keyFun);i.exit().remove(),i.enter().append("g").classed(uu.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),i.attr("width",function(k){return k.width+k.size.l+k.size.r}).attr("height",function(k){return k.height+k.size.t+k.size.b}).attr("transform",function(k){return om(k.translateX,k.translateY)});var a=i.selectAll("."+uu.cn.tableControlView).data(pc.repeat,pc.keyFun),o=a.enter().append("g").classed(uu.cn.tableControlView,!0).style("box-sizing","content-box");if(n){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(k){a.filter(function(E){return k===E}).call(iC,t)}).on(s,function(k){if(!k.scrollbarState.wheeling){k.scrollbarState.wheeling=!0;var E=k.scrollY+Gc.event.deltaY,T=jB(t,a,null,E)(k);T||(Gc.event.stopPropagation(),Gc.event.preventDefault()),k.scrollbarState.wheeling=!1}}).call(iC,t,!0)}a.attr("transform",function(k){return om(k.size.l,k.size.t)});var u=a.selectAll("."+uu.cn.scrollBackground).data(pc.repeat,pc.keyFun);u.enter().append("rect").classed(uu.cn.scrollBackground,!0).attr("fill","none"),u.attr("width",function(k){return k.width}).attr("height",function(k){return k.height}),a.each(function(k){w$.setClipUrl(Gc.select(this),PZe(t,k),t)});var l=a.selectAll("."+uu.cn.yColumn).data(function(k){return k.columns},pc.keyFun);l.enter().append("g").classed(uu.cn.yColumn,!0),l.exit().remove(),l.attr("transform",function(k){return om(k.x,0)}),n&&l.call(Gc.behavior.drag().origin(function(k){var E=Gc.select(this);return RZe(E,k,-uu.uplift),AKt(this),k.calcdata.columnDragInProgress=!0,iC(a.filter(function(T){return k.calcdata.key===T.key}),t),k}).on("drag",function(k){var E=Gc.select(this),T=function(C){return(k===C?Gc.event.x:C.x)+C.columnWidth/2};k.x=Math.max(-uu.overdrag,Math.min(k.calcdata.width+uu.overdrag-k.columnWidth,Gc.event.x));var L=BZe(l).filter(function(C){return C.calcdata.key===k.calcdata.key}),_=L.sort(function(C,M){return T(C)-T(M)});_.forEach(function(C,M){C.xIndex=M,C.x=k===C?C.x:C.xScale(C)}),l.filter(function(C){return k!==C}).transition().ease(uu.transitionEase).duration(uu.transitionDuration).attr("transform",function(C){return om(C.x,0)}),E.call(TKt).attr("transform",om(k.x,-uu.uplift))}).on("dragend",function(k){var E=Gc.select(this),T=k.calcdata;k.x=k.xScale(k),k.calcdata.columnDragInProgress=!1,RZe(E,k,0),DKt(t,T,T.columns.map(function(L){return L.xIndex}))})),l.each(function(k){w$.setClipUrl(Gc.select(this),zZe(t,k),t)});var f=l.selectAll("."+uu.cn.columnBlock).data(FZe.splitToPanels,pc.keyFun);f.enter().append("g").classed(uu.cn.columnBlock,!0).attr("id",function(k){return k.key}),f.style("cursor",function(k){return k.dragHandle?"ew-resize":k.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var c=f.filter(FKt),h=f.filter(E$);n&&h.call(Gc.behavior.drag().origin(function(k){return Gc.event.stopPropagation(),k}).on("drag",jB(t,a,-1)).on("dragend",function(){})),A$(t,a,c,f),A$(t,a,h,f);var d=a.selectAll("."+uu.cn.scrollAreaClip).data(pc.repeat,pc.keyFun);d.enter().append("clipPath").classed(uu.cn.scrollAreaClip,!0).attr("id",function(k){return PZe(t,k)});var p=d.selectAll("."+uu.cn.scrollAreaClipRect).data(pc.repeat,pc.keyFun);p.enter().append("rect").classed(uu.cn.scrollAreaClipRect,!0).attr("x",-uu.overdrag).attr("y",-uu.uplift).attr("fill","none"),p.attr("width",function(k){return k.width+2*uu.overdrag}).attr("height",function(k){return k.height+uu.uplift});var x=l.selectAll("."+uu.cn.columnBoundary).data(pc.repeat,pc.keyFun);x.enter().append("g").classed(uu.cn.columnBoundary,!0);var b=l.selectAll("."+uu.cn.columnBoundaryClippath).data(pc.repeat,pc.keyFun);b.enter().append("clipPath").classed(uu.cn.columnBoundaryClippath,!0),b.attr("id",function(k){return zZe(t,k)});var v=b.selectAll("."+uu.cn.columnBoundaryRect).data(pc.repeat,pc.keyFun);v.enter().append("rect").classed(uu.cn.columnBoundaryRect,!0).attr("fill","none"),v.attr("width",function(k){return k.columnWidth+2*WB(k)}).attr("height",function(k){return k.calcdata.height+2*WB(k)+uu.uplift}).attr("x",function(k){return-WB(k)}).attr("y",function(k){return-WB(k)}),k$(null,h,a)};function WB(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function PZe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function zZe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function BZe(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function iC(e,t,r){function n(l){var f=l.rowBlocks;return S$(f,f.length-1)+(f.length?XB(f[f.length-1],1/0):1)}var i=e.selectAll("."+uu.cn.scrollbarKit).data(pc.repeat,pc.keyFun);i.enter().append("g").classed(uu.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),i.each(function(l){var f=l.scrollbarState;f.totalHeight=n(l),f.scrollableAreaHeight=l.groupHeight-T$(l),f.currentlyVisibleHeight=Math.min(f.totalHeight,f.scrollableAreaHeight),f.ratio=f.currentlyVisibleHeight/f.totalHeight,f.barLength=Math.max(f.ratio*f.currentlyVisibleHeight,uu.goldenRatio*uu.scrollbarWidth),f.barWiggleRoom=f.currentlyVisibleHeight-f.barLength,f.wiggleRoom=Math.max(0,f.totalHeight-f.scrollableAreaHeight),f.topY=f.barWiggleRoom===0?0:l.scrollY/f.wiggleRoom*f.barWiggleRoom,f.bottomY=f.topY+f.barLength,f.dragMultiplier=f.wiggleRoom/f.barWiggleRoom}).attr("transform",function(l){var f=l.width+uu.scrollbarWidth/2+uu.scrollbarOffset;return om(f,T$(l))});var a=i.selectAll("."+uu.cn.scrollbar).data(pc.repeat,pc.keyFun);a.enter().append("g").classed(uu.cn.scrollbar,!0);var o=a.selectAll("."+uu.cn.scrollbarSlider).data(pc.repeat,pc.keyFun);o.enter().append("g").classed(uu.cn.scrollbarSlider,!0),o.attr("transform",function(l){return om(0,l.scrollbarState.topY||0)});var s=o.selectAll("."+uu.cn.scrollbarGlyph).data(pc.repeat,pc.keyFun);s.enter().append("line").classed(uu.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",uu.scrollbarWidth).attr("stroke-linecap","round").attr("y1",uu.scrollbarWidth/2),s.attr("y2",function(l){return l.scrollbarState.barLength-uu.scrollbarWidth/2}).attr("stroke-opacity",function(l){return l.columnDragInProgress||!l.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(uu.scrollbarHideDelay).duration(uu.scrollbarHideDuration).attr("stroke-opacity",0);var u=a.selectAll("."+uu.cn.scrollbarCaptureZone).data(pc.repeat,pc.keyFun);u.enter().append("line").classed(uu.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",uu.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(l){var f=Gc.event.y,c=this.getBoundingClientRect(),h=l.scrollbarState,d=f-c.top,p=Gc.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||jB(t,e,null,p(d-h.barLength/2))(l)}).call(Gc.behavior.drag().origin(function(l){return Gc.event.stopPropagation(),l.scrollbarState.scrollbarScrollInProgress=!0,l}).on("drag",jB(t,e)).on("dragend",function(){})),u.attr("y2",function(l){return l.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),u.remove())}function A$(e,t,r,n){var i=MKt(r),a=EKt(i);PKt(a);var o=kKt(a);IKt(o);var s=LKt(a),u=CKt(s);zKt(u),OZe(u,t,n,e),C$(a)}function MKt(e){var t=e.selectAll("."+uu.cn.columnCells).data(pc.repeat,pc.keyFun);return t.enter().append("g").classed(uu.cn.columnCells,!0),t.exit().remove(),t}function EKt(e){var t=e.selectAll("."+uu.cn.columnCell).data(FZe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(uu.cn.columnCell,!0),t.exit().remove(),t}function kKt(e){var t=e.selectAll("."+uu.cn.cellRect).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(uu.cn.cellRect,!0),t}function CKt(e){var t=e.selectAll("."+uu.cn.cellText).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(uu.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){Gc.event.stopPropagation()}),t}function LKt(e){var t=e.selectAll("."+uu.cn.cellTextHolder).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(uu.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function PKt(e){e.each(function(t,r){var n=t.calcdata.cells.font,i=t.column.specIndex,a={size:Zp(n.size,i,r),color:Zp(n.color,i,r),family:Zp(n.family,i,r),weight:Zp(n.weight,i,r),style:Zp(n.style,i,r),variant:Zp(n.variant,i,r),textcase:Zp(n.textcase,i,r),lineposition:Zp(n.lineposition,i,r),shadow:Zp(n.shadow,i,r)};t.rowNumber=t.key,t.align=Zp(t.calcdata.cells.align,i,r),t.cellBorderWidth=Zp(t.calcdata.cells.line.width,i,r),t.font=a})}function zKt(e){e.each(function(t){w$.font(Gc.select(this),t.font)})}function IKt(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=Gc.select(this);LZe.stroke(r,Zp(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),LZe.fill(r,Zp(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function OZe(e,t,r,n){e.text(function(i){var a=i.column.specIndex,o=i.rowNumber,s=i.value,u=typeof s=="string",l=u&&s.match(/
/i),f=!u||l;i.mayHaveMarkup=u&&s.match(/[<&>]/);var c=RKt(s);i.latex=c;var h=c?"":Zp(i.calcdata.cells.prefix,a,o)||"",d=c?"":Zp(i.calcdata.cells.suffix,a,o)||"",p=c?null:Zp(i.calcdata.cells.format,a,o)||null,x=h+(p?bKt(p)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!f&&!c&&(b=IZe(x)),i.cellHeightMayIncrease=l||c||i.mayHaveMarkup||(b===void 0?IZe(x):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var v;if(i.wrappingNeeded){var k=uu.wrapSplitCharacter===" "?x.replace(/i&&n.push(a),i+=u}return n}function k$(e,t,r){var n=BZe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=S$(i,i.length),s=n.calcdata.groupHeight-T$(n),u=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),l=BKt(i,u,s);l.length===1&&(l[0]===i.length-1?l.unshift(l[0]-1):l.push(l[0]+1)),l[0]%2&&l.reverse(),t.each(function(f,c){f.page=l[c],f.scrollY=u}),t.attr("transform",function(f){var c=S$(f.rowBlocks,f.page)-f.scrollY;return om(0,c)}),e&&(DZe(e,r,t,l,n.prevPages,n,0),DZe(e,r,t,l,n.prevPages,n,1),iC(r,e))}}function jB(e,t,r,n){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(c){return o.key===c.key}),u=r||o.scrollbarState.dragMultiplier,l=o.scrollY;o.scrollY=n===void 0?o.scrollY+u*Gc.event.dy:n;var f=s.selectAll("."+uu.cn.yColumn).selectAll("."+uu.cn.columnBlock).filter(E$);return k$(e,f,s),o.scrollY===l}}function DZe(e,t,r,n,i,a,o){var s=n[o]!==i[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var u=r.filter(function(l,f){return f===o&&n[f]!==i[f]});A$(e,t,u,r),i[o]=n[o]}))}function OKt(e,t,r,n){return function(){var a=Gc.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(x,b){s[b].width=this.getComputedTextLength()});var u=s[s.length-1].width,l=s.slice(0,-1),f=[],c,h,d=0,p=o.column.columnWidth-2*uu.cellPad;for(o.value="";l.length;)c=l.shift(),h=c.width+u,d+h>p&&(o.value+=f.join(uu.wrapSpacer)+uu.lineBreaker,f=[],d=0),f.push(c.text),d+=h;d&&(o.value+=f.join(uu.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),OZe(a.select("."+uu.cn.cellText),r,e,n),Gc.select(t.parentNode.parentNode).call(C$)}}function qKt(e,t,r,n,i){return function(){if(!i.settledY){var o=Gc.select(t.parentNode),s=M$(i),u=i.key-s.firstRowIndex,l=s.rows[u].rowHeight,f=i.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*uu.cellPad:l,c=Math.max(f,l),h=c-s.rows[u].rowHeight;h&&(s.rows[u].rowHeight=c,e.selectAll("."+uu.cn.columnCell).call(C$),k$(null,e.filter(E$),0),iC(r,n,!0)),o.attr("transform",function(){var d=this,p=d.parentNode,x=p.getBoundingClientRect(),b=Gc.select(d.parentNode).select("."+uu.cn.cellRect).node().getBoundingClientRect(),v=d.transform.baseVal.consolidate(),k=b.top-x.top+(v?v.matrix.f:uu.cellPad);return om(qZe(i,Gc.select(d.parentNode).select("."+uu.cn.cellTextHolder).node().getBoundingClientRect().width),k)}),i.settledY=!0}}}function qZe(e,t){switch(e.align){case"left":return uu.cellPad;case"right":return e.column.columnWidth-(t||0)-uu.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return uu.cellPad}}function C$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+XB(s,1/0)},0),n=M$(t),i=XB(n,t.key),a=i+r;return om(0,a)}).selectAll("."+uu.cn.cellRect).attr("height",function(t){return UKt(M$(t),t.key).rowHeight})}function S$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=NKt(e[n]);return r}function XB(e,t){for(var r=0,n=0;n{"use strict";var VKt=Rd().getModuleCalcData,GKt=L$(),ZB="table";YB.name=ZB;YB.plot=function(e){var t=VKt(e.calcdata,ZB)[0];t.length&&GKt(e,t)};YB.clean=function(e,t,r,n){var i=n._has&&n._has(ZB),a=t._has&&t._has(ZB);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var GZe=Te((pwr,VZe)=>{"use strict";VZe.exports={attributes:p$(),supplyDefaults:mZe(),calc:gZe(),plot:L$(),moduleType:"trace",name:"table",basePlotModule:UZe(),categories:["noOpacity"],meta:{}}});var WZe=Te((vwr,HZe)=>{"use strict";HZe.exports=GZe()});var KZe=Te((mwr,YZe)=>{"use strict";var jZe=gc(),XZe=Ih(),P$=Dd(),HKt=jc().descriptionWithDates,WKt=Sc().overrideAll,ZZe=Id().dash,z$=Su().extendFlat;YZe.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:jZe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:P$.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:z$({},P$.labelalias,{editType:"calc"}),tickfont:jZe({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:HKt("tick label")},tickformatstops:WKt(P$.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:XZe.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:z$({},ZZe,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:z$({},ZZe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:XZe.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var JB=Te((ywr,QZe)=>{"use strict";var jKt=gc(),JZe=KZe(),$Ze=Ih(),KB=jKt({editType:"calc"}),XKt=Zc().zorder;KB.family.dflt='"Open Sans", verdana, arial, sans-serif';KB.size.dflt=12;KB.color.dflt=$Ze.defaultLine;QZe.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:JZe,baxis:JZe,font:KB,color:{valType:"color",dflt:$Ze.defaultLine,editType:"plot"},zorder:XKt}});var rYe=Te((gwr,tYe)=>{"use strict";var eYe=ei().isArray1D;tYe.exports=function(t,r,n){var i=n("x"),a=i&&i.length,o=n("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!i,(!a||eYe(i))&&(!s||eYe(o))){var u=a?i.length:1/0;s&&(u=Math.min(u,o.length)),r.a&&r.a.length&&(u=Math.min(u,r.a.length)),r.b&&r.b.length&&(u=Math.min(u,r.b.length)),r._length=u}else r._length=null;return!0}});var aYe=Te((_wr,nYe)=>{"use strict";var ZKt=JB(),iYe=jl().addOpacity,YKt=$l(),nC=ei(),KKt=xb(),JKt=e_(),$Kt=t_(),QKt=iI(),eJt=gy(),tJt=L3();nYe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=ZKt[i+"axis"];function s(m,P){return nC.coerce(t,r,o,m,P)}function u(m,P){return nC.coerce2(t,r,o,m,P)}n.name&&(r._name=n.name,r._id=n.name),s("autotypenumbers",n.autotypenumbersDflt);var l=s("type");if(l==="-"&&(n.data&&rJt(r,n.data),r.type==="-"?r.type="linear":l=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",i+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=i,l==="date"){var f=YKt.getComponentMethod("calendars","handleDefaults");f(t,r,"calendar",n.calendar)}eJt(r,n.fullLayout),r.c2p=nC.identity;var c=s("color",n.dfltColor),h=c===t.color?c:a.color,d=s("title.text");d&&(nC.coerceFont(s,"title.font",a,{overrideDflt:{size:nC.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var p=s("autorange",!r.isValidRange(t.range));p&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),KKt(t,r,s,l),$Kt(t,r,s,l,n),JKt(t,r,s,l,n),QKt(t,r,s,{data:n.data,dataAttr:i});var x=u("gridcolor",iYe(c,.3)),b=u("gridwidth"),v=u("griddash"),k=s("showgrid");k||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var E=u("startlinecolor",c),T=u("startlinewidth",b),L=s("startline",r.showgrid||!!E||!!T);L||(delete r.startlinecolor,delete r.startlinewidth);var _=u("endlinecolor",c),C=u("endlinewidth",b),M=s("endline",r.showgrid||!!_||!!C);return M||(delete r.endlinecolor,delete r.endlinewidth),k?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",v),s("minorgridcolor",iYe(x,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function rJt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=tJt(t,a,{autotypenumbers:e.autotypenumbers})}}});var sYe=Te((xwr,oYe)=>{"use strict";var iJt=aYe(),nJt=Pf();oYe.exports=function(t,r,n,i,a){var o=i("a");o||(i("da"),i("a0"));var s=i("b");s||(i("db"),i("b0")),aJt(t,r,n,a)};function aJt(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},u=nJt.newContainer(t,a),l={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:n,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};iJt(s,u,l),u._categories=u._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var fYe=Te((bwr,uYe)=>{"use strict";var lYe=ei(),oJt=rYe(),sJt=sYe(),lJt=JB(),uJt=Ih();uYe.exports=function(t,r,n,i){function a(u,l){return lYe.coerce(t,r,lJt,u,l)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",uJt.defaultLine);if(lYe.coerceFont(a,"font",i.font),a("carpet"),sJt(t,r,i,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=oJt(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var I$=Te((wwr,cYe)=>{"use strict";var fJt=ei().isArrayOrTypedArray;cYe.exports=function(t,r,n){var i;for(fJt(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";hYe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";dYe.exports=function(t,r,n,i,a,o){var s=a[0]*t.dpdx(r),u=a[1]*t.dpdy(n),l=1,f=1;if(o){var c=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=(a[0]*o[0]+a[1]*o[1])/c/h;f=Math.max(0,d)}var p=Math.atan2(u,s)*180/Math.PI;return p<-90?(p+=180,l=-l):p>90&&(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(i,r,n),offsetMultplier:f}}});var wYe=Te((Swr,bYe)=>{"use strict";var tO=Jl(),$B=Mu(),QB=I$(),yYe=R$(),aC=pYe(),D$=Xf(),Nv=ei(),gYe=Nv.strRotate,eO=Nv.strTranslate,_Ye=Qh();bYe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,u=t._fullLayout,l=u._clips;Nv.makeTraceGroups(i,n,"trace").each(function(f){var c=tO.select(this),h=f[0],d=h.trace,p=d.aaxis,x=d.baxis,b=Nv.ensureSingle(c,"g","minorlayer"),v=Nv.ensureSingle(c,"g","majorlayer"),k=Nv.ensureSingle(c,"g","boundarylayer"),E=Nv.ensureSingle(c,"g","labellayer");c.style("opacity",d.opacity),FS(o,s,v,p,"a",p._gridlines,!0,a),FS(o,s,v,x,"b",x._gridlines,!0,a),FS(o,s,b,p,"a",p._minorgridlines,!0,a),FS(o,s,b,x,"b",x._minorgridlines,!0,a),FS(o,s,k,p,"a-boundary",p._boundarylines,a),FS(o,s,k,x,"b-boundary",x._boundarylines,a);var T=vYe(t,o,s,d,h,E,p._labels,"a-label"),L=vYe(t,o,s,d,h,E,x._labels,"b-label");hJt(t,E,d,h,o,s,T,L),cJt(d,h,l,o,s)})};function cJt(e,t,r,n,i){var a,o,s,u,l=r.select("#"+e._clipPathId);l.size()||(l=r.append("clipPath").classed("carpetclip",!0));var f=Nv.ensureSingle(l,"path","carpetboundary"),c=t.clipsegments,h=[];for(u=0;u0?"start":"end","data-notex":1}).call($B.font,c.font).text(c.text).call(D$.convertToTspans,e),v=$B.bBox(this);b.attr("transform",eO(d.p[0],d.p[1])+gYe(d.angle)+eO(c.axis.labelpadding*x,v.height*.3)),l=Math.max(l,v.width+c.axis.labelpadding)}),u.exit().remove(),f.maxExtent=l,f}function hJt(e,t,r,n,i,a,o,s){var u,l,f,c,h=Nv.aggNums(Math.min,null,r.a),d=Nv.aggNums(Math.max,null,r.a),p=Nv.aggNums(Math.min,null,r.b),x=Nv.aggNums(Math.max,null,r.b);u=.5*(h+d),l=p,f=r.ab2xy(u,l,!0),c=r.dxyda_rough(u,l),o.angle===void 0&&Nv.extendFlat(o,aC(r,i,a,f,r.dxydb_rough(u,l))),mYe(e,t,r,n,f,c,r.aaxis,i,a,o,"a-title"),u=h,l=.5*(p+x),f=r.ab2xy(u,l,!0),c=r.dxydb_rough(u,l),s.angle===void 0&&Nv.extendFlat(s,aC(r,i,a,f,r.dxyda_rough(u,l))),mYe(e,t,r,n,f,c,r.baxis,i,a,s,"b-title")}var xYe=_Ye.LINE_SPACING,dJt=(1-_Ye.MID_SHIFT)/xYe+1;function mYe(e,t,r,n,i,a,o,s,u,l,f){var c=[];o.title.text&&c.push(o.title.text);var h=t.selectAll("text."+f).data(c),d=l.maxExtent;h.enter().append("text").classed(f,!0),h.each(function(){var p=aC(r,s,u,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var x=o.title.font.size;d+=x+o.title.offset;var b=l.angle+(l.flip<0?180:0),v=(b-p.angle+450)%360,k=v>90&&v<270,E=tO.select(this);E.text(o.title.text).call(D$.convertToTspans,e),k&&(d=(-D$.lineCount(E)+dJt)*xYe*x-d),E.attr("transform",eO(p.p[0],p.p[1])+gYe(p.angle)+eO(0,d)).attr("text-anchor","middle").call($B.font,o.title.font)}),h.exit().remove()}});var TYe=Te((Mwr,AYe)=>{"use strict";var rO=ei().isArrayOrTypedArray;AYe.exports=function(e,t,r){var n,i,a,o,s,u,l=[],f=rO(e)?e.length:e,c=rO(t)?t.length:t,h=rO(e)?e:null,d=rO(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(f-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(c-1));var p,x=1/0,b=-1/0;for(i=0;i{"use strict";var SYe=ei().isArrayOrTypedArray;EYe.exports=function(e){return MYe(e,0)};function MYe(e,t){if(!SYe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var pJt=wu(),Ex=Su().extendFlat;CYe.exports=function(t,r,n){var i,a,o,s,u,l,f,c,h,d,p,x,b,v,k=t["_"+r],E=t[r+"axis"],T=E._gridlines=[],L=E._minorgridlines=[],_=E._boundarylines=[],C=t["_"+n],M=t[n+"axis"];E.tickmode==="array"&&(E.tickvals=k.slice());var m=t._xctrl,P=t._yctrl,A=m[0].length,B=m.length,F=t._a.length,U=t._b.length;pJt.prepTicks(E),E.tickmode==="array"&&delete E.tickvals;var G=E.smoothing?3:1;function j(N){var W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe=[],ye=[],Ve={};if(r==="b")for(re=t.b2j(N),ae=Math.floor(Math.max(0,Math.min(U-2,re))),be=re-ae,Ve.length=U,Ve.crossLength=F,Ve.xy=function(ce){return t.evalxy([],ce,re)},Ve.dxy=function(ce,Ye){return t.dxydi([],ce,ae,Ye,be)},W=0;W0&&(ke=t.dxydi([],W-1,ae,0,be),Fe.push(Pe[0]+ke[0]/3),ye.push(Pe[1]+ke[1]/3),Ee=t.dxydi([],W-1,ae,1,be),Fe.push(te[0]-Ee[0]/3),ye.push(te[1]-Ee[1]/3)),Fe.push(te[0]),ye.push(te[1]),Pe=te;else for(W=t.a2i(N),Ce=Math.floor(Math.max(0,Math.min(F-2,W))),de=W-Ce,Ve.length=F,Ve.crossLength=U,Ve.xy=function(ce){return t.evalxy([],W,ce)},Ve.dxy=function(ce,Ye){return t.dxydj([],Ce,ce,de,Ye)},re=0;re0&&(Me=t.dxydj([],Ce,re-1,de,0),Fe.push(Pe[0]+Me[0]/3),ye.push(Pe[1]+Me[1]/3),Ne=t.dxydj([],Ce,re-1,de,1),Fe.push(te[0]-Ne[0]/3),ye.push(te[1]-Ne[1]/3)),Fe.push(te[0]),ye.push(te[1]),Pe=te;return Ve.axisLetter=r,Ve.axis=E,Ve.crossAxis=M,Ve.value=N,Ve.constvar=n,Ve.index=c,Ve.x=Fe,Ve.y=ye,Ve.smoothing=M.smoothing,Ve}function H(N){var W,re,ae,be,Pe,Ce=[],de=[],te={};if(te.length=k.length,te.crossLength=C.length,r==="b")for(ae=Math.max(0,Math.min(U-2,N)),Pe=Math.min(1,Math.max(0,N-ae)),te.xy=function(ke){return t.evalxy([],ke,N)},te.dxy=function(ke,Ee){return t.dxydi([],ke,ae,Ee,Pe)},W=0;Wk.length-1)&&T.push(Ex(H(a),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(c=l;ck.length-1)&&!(p<0||p>k.length-1))for(x=k[o],b=k[p],i=0;ik[k.length-1])&&L.push(Ex(j(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash})));E.startline&&_.push(Ex(H(0),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&_.push(Ex(H(k.length-1),{color:E.endlinecolor,width:E.endlinewidth}))}else{for(s=5e-15,u=[Math.floor((k[k.length-1]-E.tick0)/E.dtick*(1+s)),Math.ceil((k[0]-E.tick0)/E.dtick/(1+s))].sort(function(N,W){return N-W}),l=u[0],f=u[1],c=l;c<=f;c++)h=E.tick0+E.dtick*c,T.push(Ex(j(h),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(c=l-1;ck[k.length-1])&&L.push(Ex(j(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash}));E.startline&&_.push(Ex(j(k[0]),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&_.push(Ex(j(k[k.length-1]),{color:E.endlinecolor,width:E.endlinewidth}))}}});var RYe=Te((Cwr,IYe)=>{"use strict";var PYe=wu(),zYe=Su().extendFlat;IYe.exports=function(t,r){var n,i,a,o,s,u=r._labels=[],l=r._gridlines;for(n=0;n{"use strict";DYe.exports=function(t,r,n,i){var a,o,s,u=[],l=!!n.smoothing,f=!!i.smoothing,c=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=c;a++)o[a]=t[0][a],s[a]=r[0][a];for(u.push({x:o,y:s,bicubic:l}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][c],s[a]=r[a][c];for(u.push({x:o,y:s,bicubic:f}),a=c,o=[],s=[];a>=0;a--)o[c-a]=t[h][a],s[c-a]=r[h][a];for(u.push({x:o,y:s,bicubic:l}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return u.push({x:o,y:s,bicubic:f}),u}});var OYe=Te((Pwr,BYe)=>{"use strict";var vJt=ei();BYe.exports=function(t,r,n){var i,a,o,s=[],u=[],l=t[0].length,f=t.length;function c(ae,be){var Pe=0,Ce,de=0;return ae>0&&(Ce=t[be][ae-1])!==void 0&&(de++,Pe+=Ce),ae0&&(Ce=t[be-1][ae])!==void 0&&(de++,Pe+=Ce),be0&&a0&&iM);return vJt.log("Smoother converged to",m,"after",A,"iterations"),t}});var NYe=Te((zwr,qYe)=>{"use strict";qYe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var GYe=Te((Iwr,VYe)=>{"use strict";var UYe=.5;VYe.exports=function(t,r,n,i){var a=t[0]-r[0],o=t[1]-r[1],s=n[0]-r[0],u=n[1]-r[1],l=Math.pow(a*a+o*o,UYe/2),f=Math.pow(s*s+u*u,UYe/2),c=(f*f*a-l*l*s)*i,h=(f*f*o-l*l*u)*i,d=f*(l+f)*3,p=l*(l+f)*3;return[[r[0]+(d&&c/d),r[1]+(d&&h/d)],[r[0]-(p&&c/p),r[1]-(p&&h/p)]]}});var WYe=Te((Rwr,HYe)=>{"use strict";var F$=GYe(),iO=ei().ensureArray;function BS(e,t,r){var n=-.5*r[0]+1.5*t[0],i=-.5*r[1]+1.5*t[1];return[(2*n+e[0])/3,(2*i+e[1])/3]}HYe.exports=function(t,r,n,i,a,o){var s,u,l,f,c,h,d,p,x,b,v=n[0].length,k=n.length,E=a?3*v-2:v,T=o?3*k-2:k;for(t=iO(t,T),r=iO(r,T),l=0;l{"use strict";jYe.exports=function(e,t,r,n,i){var a=t-2,o=r-2;return n&&i?function(s,u,l){s||(s=[]);var f,c,h,d,p,x,b=Math.max(0,Math.min(Math.floor(u),a)),v=Math.max(0,Math.min(Math.floor(l),o)),k=Math.max(0,Math.min(1,u-b)),E=Math.max(0,Math.min(1,l-v));b*=3,v*=3;var T=k*k,L=T*k,_=1-k,C=_*_,M=C*_,m=E*E,P=m*E,A=1-E,B=A*A,F=B*A;for(x=0;x{"use strict";ZYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var u,l,f,c,h,d;i*=3,a*=3;var p=o*o,x=1-o,b=x*x,v=x*o*2,k=-3*b,E=3*(b-v),T=3*(v-p),L=3*p,_=s*s,C=_*s,M=1-s,m=M*M,P=m*M;for(d=0;d{"use strict";KYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var u,l,f,c,h,d;i*=3,a*=3;var p=o*o,x=p*o,b=1-o,v=b*b,k=v*b,E=s*s,T=1-s,L=T*T,_=T*s*2,C=-3*L,M=3*(L-_),m=3*(_-E),P=3*E;for(d=0;d{"use strict";var $Ye=NYe(),QYe=PL().findBin,mJt=WYe(),yJt=XYe(),gJt=YYe(),_Jt=JYe();eKe.exports=function(t){var r=t._a,n=t._b,i=r.length,a=n.length,o=t.aaxis,s=t.baxis,u=r[0],l=r[i-1],f=n[0],c=n[a-1],h=r[r.length-1]-r[0],d=n[n.length-1]-n[0],p=h*$Ye.RELATIVE_CULL_TOLERANCE,x=d*$Ye.RELATIVE_CULL_TOLERANCE;u-=p,l+=p,f-=x,c+=x,t.isVisible=function(b,v){return b>u&&bf&&vl||vc},t.setScale=function(){var b=t._x,v=t._y,k=mJt(t._xctrl,t._yctrl,b,v,o.smoothing,s.smoothing);t._xctrl=k[0],t._yctrl=k[1],t.evalxy=yJt([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=gJt([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=_Jt([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(b){var v=Math.max(0,Math.floor(b[0]),i-2),k=b[0]-v;return(1-k)*r[v]+k*r[v+1]},t.j2b=function(b){var v=Math.max(0,Math.floor(b[1]),i-2),k=b[1]-v;return(1-k)*n[v]+k*n[v+1]},t.ij2ab=function(b){return[t.i2a(b[0]),t.j2b(b[1])]},t.a2i=function(b){var v=Math.max(0,Math.min(QYe(b,r),i-2)),k=r[v],E=r[v+1];return Math.max(0,Math.min(i-1,v+(b-k)/(E-k)))},t.b2j=function(b){var v=Math.max(0,Math.min(QYe(b,n),a-2)),k=n[v],E=n[v+1];return Math.max(0,Math.min(a-1,v+(b-k)/(E-k)))},t.ab2ij=function(b){return[t.a2i(b[0]),t.b2j(b[1])]},t.i2c=function(b,v){return t.evalxy([],b,v)},t.ab2xy=function(b,v,k){if(!k&&(br[i-1]|vn[a-1]))return[!1,!1];var E=t.a2i(b),T=t.b2j(v),L=t.evalxy([],E,T);if(k){var _=0,C=0,M=[],m,P,A,B;br[i-1]?(m=i-2,P=1,_=(b-r[i-1])/(r[i-1]-r[i-2])):(m=Math.max(0,Math.min(i-2,Math.floor(E))),P=E-m),vn[a-1]?(A=a-2,B=1,C=(v-n[a-1])/(n[a-1]-n[a-2])):(A=Math.max(0,Math.min(a-2,Math.floor(T))),B=T-A),_&&(t.dxydi(M,m,A,P,B),L[0]+=M[0]*_,L[1]+=M[1]*_),C&&(t.dxydj(M,m,A,P,B),L[0]+=M[0]*C,L[1]+=M[1]*C)}return L},t.c2p=function(b,v,k){return[v.c2p(b[0]),k.c2p(b[1])]},t.p2x=function(b,v,k){return[v.p2c(b[0]),k.p2c(b[1])]},t.dadi=function(b){var v=Math.max(0,Math.min(r.length-2,b));return r[v+1]-r[v]},t.dbdj=function(b){var v=Math.max(0,Math.min(n.length-2,b));return n[v+1]-n[v]},t.dxyda=function(b,v,k,E){var T=t.dxydi(null,b,v,k,E),L=t.dadi(b,k);return[T[0]/L,T[1]/L]},t.dxydb=function(b,v,k,E){var T=t.dxydj(null,b,v,k,E),L=t.dbdj(v,E);return[T[0]/L,T[1]/L]},t.dxyda_rough=function(b,v,k){var E=h*(k||.1),T=t.ab2xy(b+E,v,!0),L=t.ab2xy(b-E,v,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dxydb_rough=function(b,v,k){var E=d*(k||.1),T=t.ab2xy(b,v+E,!0),L=t.ab2xy(b,v-E,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var uKe=Te((qwr,lKe)=>{"use strict";var nO=wu(),rKe=ei().isArray1D,xJt=TYe(),iKe=kYe(),nKe=LYe(),aKe=RYe(),bJt=FYe(),oKe=rR(),sKe=OYe(),wJt=eR(),AJt=tKe();lKe.exports=function(t,r){var n=nO.getFromId(t,r.xaxis),i=nO.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,u=r.y,l=[];s&&rKe(s)&&l.push("x"),u&&rKe(u)&&l.push("y"),l.length&&wJt(r,a,o,"a","b",l);var f=r._a=r._a||r.a,c=r._b=r._b||r.b;s=r._x||r.x,u=r._y||r.y;var h={};if(r._cheater){var d=a.cheatertype==="index"?f.length:f,p=o.cheatertype==="index"?c.length:c;s=xJt(d,p,r.cheaterslope)}r._x=s=oKe(s),r._y=u=oKe(u),sKe(s,f,c),sKe(u,f,c),AJt(r),r.setScale();var x=iKe(s),b=iKe(u),v=.5*(x[1]-x[0]),k=.5*(x[1]+x[0]),E=.5*(b[1]-b[0]),T=.5*(b[1]+b[0]),L=1.3;return x=[k-v*L,k+v*L],b=[T-E*L,T+E*L],r._extremes[n._id]=nO.findExtremes(n,x,{padded:!0}),r._extremes[i._id]=nO.findExtremes(i,b,{padded:!0}),nKe(r,"a","b"),nKe(r,"b","a"),aKe(r,a),aKe(r,o),h.clipsegments=bJt(r._xctrl,r._yctrl,a,o),h.x=s,h.y=u,h.a=f,h.b=c,[h]}});var cKe=Te((Nwr,fKe)=>{"use strict";fKe.exports={attributes:JB(),supplyDefaults:fYe(),plot:wYe(),calc:uKe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:Ah(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var dKe=Te((Uwr,hKe)=>{"use strict";hKe.exports=cKe()});var B$=Te((Vwr,vKe)=>{"use strict";var TJt=Em(),u0=Zc(),SJt=Gf(),MJt=Nu().hovertemplateAttrs,EJt=Nu().texttemplateAttrs,pKe=nc(),kx=Su().extendFlat,sm=u0.marker,OS=u0.line,kJt=sm.line;vKe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:kx({},u0.mode,{dflt:"markers"}),text:kx({},u0.text,{}),texttemplate:EJt({editType:"plot"},{keys:["a","b","text"]}),hovertext:kx({},u0.hovertext,{}),line:{color:OS.color,width:OS.width,dash:OS.dash,backoff:OS.backoff,shape:kx({},OS.shape,{values:["linear","spline"]}),smoothing:OS.smoothing,editType:"calc"},connectgaps:u0.connectgaps,fill:kx({},u0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:TJt(),marker:kx({symbol:sm.symbol,opacity:sm.opacity,maxdisplayed:sm.maxdisplayed,angle:sm.angle,angleref:sm.angleref,standoff:sm.standoff,size:sm.size,sizeref:sm.sizeref,sizemin:sm.sizemin,sizemode:sm.sizemode,line:kx({width:kJt.width,editType:"calc"},pKe("marker.line")),gradient:sm.gradient,editType:"calc"},pKe("marker")),textfont:u0.textfont,textposition:u0.textposition,selected:u0.selected,unselected:u0.unselected,hoverinfo:kx({},SJt.hoverinfo,{flags:["a","b","text","name"]}),hoveron:u0.hoveron,hovertemplate:MJt(),zorder:u0.zorder}});var _Ke=Te((Gwr,gKe)=>{"use strict";var mKe=ei(),CJt=Sy(),qS=lc(),LJt=$v(),PJt=I0(),yKe=J3(),zJt=R0(),IJt=zm(),RJt=B$();gKe.exports=function(t,r,n,i){function a(h,d){return mKe.coerce(t,r,RJt,h,d)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("text"),a("texttemplate"),a("hovertext");var l=u{"use strict";xKe.exports=function(t,r){var n={},i=r._carpet,a=i.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,u=Math.floor(a[1]),l=a[1]-u,f=i.evalxy([],o,u,s,l);return n.yLabel=f[1].toFixed(3),n}});var aO=Te((Wwr,wKe)=>{"use strict";wKe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var AKe=ku(),DJt=D0(),FJt=ky(),BJt=F0(),OJt=B0().calcMarkerSize,qJt=aO();TKe.exports=function(t,r){var n=r._carpetTrace=qJt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){var i;r.xaxis=n.xaxis,r.yaxis=n.yaxis;var a=r._length,o=new Array(a),s,u,l=!1;for(i=0;i{"use strict";var NJt=iA(),MKe=wu(),UJt=Mu();EKe.exports=function(t,r,n,i){var a,o,s,u=n[0][0].carpet,l=MKe.getFromId(t,u.xaxis||"x"),f=MKe.getFromId(t,u.yaxis||"y"),c={xaxis:l,yaxis:f,plot:r.plot};for(a=0;a{"use strict";var VJt=sA(),GJt=ei().fillText;CKe.exports=function(t,r,n,i){var a=VJt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,u=t.xa._length,l=u*s/2,f=u-l;return o.x0=Math.max(Math.min(o.x0,f),l),o.x1=Math.max(Math.min(o.x1,f),l),a}var c=o.cd[o.index];o.a=c.a,o.b=c.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,d=h._carpet,p=h._module.formatLabels(c,h);o.yLabel=p.yLabel,delete o.text;var x=[];function b(E,T){var L;E.labelprefix&&E.labelprefix.length>0?L=E.labelprefix.replace(/ = $/,""):L=E._hovertitle,x.push(L+": "+T.toFixed(3)+E.labelsuffix)}if(!h.hovertemplate){var v=c.hi||h.hoverinfo,k=v.split("+");k.indexOf("all")!==-1&&(k=["a","b","text"]),k.indexOf("a")!==-1&&b(d.aaxis,c.a),k.indexOf("b")!==-1&&b(d.baxis,c.b),x.push("y: "+o.yLabel),k.indexOf("text")!==-1&&GJt(c,h,x),o.extraText=x.join("
")}return a}});var zKe=Te((Ywr,PKe)=>{"use strict";PKe.exports=function(t,r,n,i,a){var o=i[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var RKe=Te((Kwr,IKe)=>{"use strict";IKe.exports={attributes:B$(),supplyDefaults:_Ke(),colorbar:ep(),formatLabels:bKe(),calc:SKe(),plot:kKe(),style:av().style,styleOnSelect:av().styleOnSelect,hoverPoints:LKe(),selectPoints:lA(),eventData:zKe(),moduleType:"trace",name:"scattercarpet",basePlotModule:Ah(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var FKe=Te((Jwr,DKe)=>{"use strict";DKe.exports=RKe()});var O$=Te(($wr,BKe)=>{"use strict";var lm=EA(),m1=EE(),HJt=nc(),WJt=Su().extendFlat,tg=m1.contours;BKe.exports=WJt({carpet:{valType:"string",editType:"calc"},z:lm.z,a:lm.x,a0:lm.x0,da:lm.dx,b:lm.y,b0:lm.y0,db:lm.dy,text:lm.text,hovertext:lm.hovertext,transpose:lm.transpose,atype:lm.xtype,btype:lm.ytype,fillcolor:m1.fillcolor,autocontour:m1.autocontour,ncontours:m1.ncontours,contours:{type:tg.type,start:tg.start,end:tg.end,size:tg.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:tg.showlines,showlabels:tg.showlabels,labelfont:tg.labelfont,labelformat:tg.labelformat,operation:tg.operation,value:tg.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:m1.line.color,width:m1.line.width,dash:m1.line.dash,smoothing:m1.line.smoothing,editType:"plot"},zorder:m1.zorder},HJt("",{cLetter:"z",autoColorDflt:!1}))});var q$=Te((Qwr,NKe)=>{"use strict";var OKe=ei(),jJt=JI(),qKe=O$(),XJt=RG(),ZJt=bR(),YJt=wR();NKe.exports=function(t,r,n,i){function a(l,f){return OKe.coerce(t,r,qKe,l,f)}function o(l){return OKe.coerce2(t,r,qKe,l)}if(a("carpet"),t.a&&t.b){var s=jJt(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var u=a("contours.type")==="constraint";u?XJt(t,r,a,i,n,{hasHover:!1}):(ZJt(t,r,a,o),YJt(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var HKe=Te((e3r,GKe)=>{"use strict";var KJt=gp(),UKe=ei(),JJt=eR(),$Jt=rR(),QJt=iR(),e$t=nR(),VKe=iG(),t$t=q$(),r$t=aO(),i$t=wG();GKe.exports=function(t,r){var n=r._carpetTrace=r$t(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){if(!r.a||!r.b){var i=t.data[n.index],a=t.data[r.index];a.a||(a.a=i.a),a.b||(a.b=i.b),t$t(a,r,r._defaultColor,t._fullLayout)}var o=n$t(t,r);return i$t(r,r._z),o}};function n$t(e,t){var r=t._carpetTrace,n=r.aaxis,i=r.baxis,a,o,s,u,l,f,c;n._minDtick=0,i._minDtick=0,UKe.isArray1D(t.z)&&JJt(t,n,i,"a","b",["z"]),a=t._a=t._a||t.a,u=t._b=t._b||t.b,a=a?n.makeCalcdata(t,"_a"):[],u=u?i.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,l=t.b0||0,f=t.db||1,c=t._z=$Jt(t._z||t.z,t.transpose),t._emptypoints=e$t(c),QJt(c,t._emptypoints);var h=UKe.maxRowLength(c),d=t.xtype==="scaled"?"":a,p=VKe(t,d,o,s,h,n),x=t.ytype==="scaled"?"":u,b=VKe(t,x,l,f,c.length,i),v={a:p,b,z:c};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&KJt(e,t,{vals:c,containerStr:"",cLetter:"z"}),[v]}});var jKe=Te((t3r,WKe)=>{"use strict";var a$t=ei().isArrayOrTypedArray;WKe.exports=function(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p,x,b,v=a$t(r)?"a":"b",k=v==="a"?e.aaxis:e.baxis,E=k.smoothing,T=v==="a"?e.a2i:e.b2j,L=v==="a"?r:n,_=v==="a"?n:r,C=v==="a"?t.a.length:t.b.length,M=v==="a"?t.b.length:t.a.length,m=Math.floor(v==="a"?e.b2j(_):e.a2i(_)),P=v==="a"?function(be){return e.evalxy([],be,m)}:function(be){return e.evalxy([],m,be)};E&&(o=Math.max(0,Math.min(M-2,m)),s=m-o,a=v==="a"?function(be,Pe){return e.dxydi([],be,o,Pe,s)}:function(be,Pe){return e.dxydj([],o,be,s,Pe)});var A=T(L[0]),B=T(L[1]),F=A0?Math.floor:Math.ceil,j=F>0?Math.ceil:Math.floor,H=F>0?Math.min:Math.max,N=F>0?Math.max:Math.min,W=G(A+U),re=j(B-U);f=P(A);var ae=[[f]];for(i=W;i*F{"use strict";var sO=Jl(),lO=I$(),JKe=R$(),oC=Mu(),y1=ei(),o$t=TG(),s$t=SG(),hw=SR(),oO=CE(),l$t=CG(),u$t=kG(),f$t=LG(),c$t=aO(),XKe=jKe();$Ke.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;y1.makeTraceGroups(i,n,"contour").each(function(s){var u=sO.select(this),l=s[0],f=l.trace,c=f._carpetTrace=c$t(t,f),h=t.calcdata[c.index][0];if(!c.visible||c.visible==="legendonly")return;var d=l.a,p=l.b,x=f.contours,b=u$t(x,r,l),v=x.type==="constraint",k=x._operation,E=v?k==="="?"lines":"fill":x.coloring;function T(G){var j=c.ab2xy(G[0],G[1],!0);return[a.c2p(j[0]),o.c2p(j[1])]}var L=[[d[0],p[p.length-1]],[d[d.length-1],p[p.length-1]],[d[d.length-1],p[0]],[d[0],p[0]]];o$t(b);var _=(d[d.length-1]-d[0])*1e-8,C=(p[p.length-1]-p[0])*1e-8;s$t(b,_,C);var M=b;x.type==="constraint"&&(M=l$t(b,k)),h$t(b,T);var m,P,A,B,F=[];for(B=h.clipsegments.length-1;B>=0;B--)m=h.clipsegments[B],P=lO([],m.x,a.c2p),A=lO([],m.y,o.c2p),P.reverse(),A.reverse(),F.push(JKe(P,A,m.bicubic));var U="M"+F.join("L")+"Z";v$t(u,h.clipsegments,a,o,v,E),m$t(f,u,a,o,M,L,T,c,h,E,U),d$t(u,b,t,l,x,r,c),oC.setClipUrl(u,c._clipPathId,t)})};function h$t(e,t){var r,n,i,a,o,s,u,l,f;for(r=0;rb&&(n.max=b),n.len=n.max-n.min}function ZKe(e,t,r){var n=e.getPointAtLength(t),i=e.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function YKe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function KKe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function v$t(e,t,r,n,i,a){var o,s,u,l,f=y1.ensureSingle(e,"g","contourbg"),c=f.selectAll("path").data(a==="fill"&&!i?[0]:[]);c.enter().append("path"),c.exit().remove();var h=[];for(l=0;l=0&&(d=P,x=b):Math.abs(h[1]-d[1])=0&&(d=P,x=b):y1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(x>=0)break;l+=M(h,d),h=d}if(x===t.edgepaths.length){y1.log("unclosed perimeter path");break}u=x,c=f.indexOf(u)===-1,c&&(u=f[0],l+=M(h,d)+"Z",h=null)}for(u=0;u{"use strict";eJe.exports={attributes:O$(),supplyDefaults:q$(),colorbar:kR(),calc:HKe(),plot:QKe(),style:ER(),moduleType:"trace",name:"contourcarpet",basePlotModule:Ah(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var iJe=Te((n3r,rJe)=>{"use strict";rJe.exports=tJe()});var fO=Te((a3r,lJe)=>{"use strict";var uO=ei().extendFlat,sC=Zc(),nJe=jc().axisHoverFormat,oJe=Id().dash,g$t=i3(),sJe=GA(),_$t=sJe.INCREASING.COLOR,x$t=sJe.DECREASING.COLOR,N$=sC.line;function aJe(e){return{line:{color:uO({},N$.color,{dflt:e}),width:N$.width,dash:oJe,editType:"style"},editType:"style"}}lJe.exports={xperiod:sC.xperiod,xperiod0:sC.xperiod0,xperiodalignment:sC.xperiodalignment,xhoverformat:nJe("x"),yhoverformat:nJe("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:uO({},N$.width,{}),dash:uO({},oJe,{}),editType:"style"},increasing:aJe(_$t),decreasing:aJe(x$t),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:uO({},g$t.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:sC.zorder}});var U$=Te((o3r,uJe)=>{"use strict";var b$t=$l(),w$t=ei();uJe.exports=function(t,r,n,i){var a=n("x"),o=n("open"),s=n("high"),u=n("low"),l=n("close");n("hoverlabel.split");var f=b$t.getComponentMethod("calendars","handleTraceDefaults");if(f(t,r,["x"],i),!!(o&&s&&u&&l)){var c=Math.min(o.length,s.length,u.length,l.length);return a&&(c=Math.min(c,w$t.minRowLength(a))),r._length=c,c}}});var hJe=Te((s3r,cJe)=>{"use strict";var A$t=ei(),T$t=U$(),S$t=Pm(),M$t=fO();cJe.exports=function(t,r,n,i){function a(s,u){return A$t.coerce(t,r,M$t,s,u)}var o=T$t(t,r,a,i);if(!o){r.visible=!1;return}S$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),fJe(t,r,a,"increasing"),fJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function fJe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var V$=Te((l3r,pJe)=>{"use strict";var NS=ei(),cO=NS._,hO=wu(),E$t=Im(),lC=nf().BADNUM;function k$t(e,t){var r=hO.getFromId(e,t.xaxis),n=hO.getFromId(e,t.yaxis),i=L$t(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var u=dJe(e,t,o,s,n,C$t);return t._extremes[r._id]=hO.findExtremes(r,s,{vpad:a/2}),u.length?(NS.extendFlat(u[0].t,{wHover:a/2,tickLen:i}),u):[{t:{empty:!0}}]}function C$t(e,t,r,n){return{o:e,h:t,l:r,c:n}}function dJe(e,t,r,n,i,a){for(var o=i.makeCalcdata(t,"open"),s=i.makeCalcdata(t,"high"),u=i.makeCalcdata(t,"low"),l=i.makeCalcdata(t,"close"),f=NS.isArrayOrTypedArray(t.text),c=NS.isArrayOrTypedArray(t.hovertext),h=!0,d=null,p=!!t.xperiodalignment,x=[],b=0;bd):h=L>k,d=L;var _=a(k,E,T,L);_.pos=v,_.yc=(k+L)/2,_.i=b,_.dir=h?"increasing":"decreasing",_.x=_.pos,_.y=[T,E],p&&(_.orig_p=r[b]),f&&(_.tx=t.text[b]),c&&(_.htx=t.hovertext[b]),x.push(_)}else x.push({pos:v,empty:!0})}return t._extremes[i._id]=hO.findExtremes(i,NS.concat(u,s),{padded:!0}),x.length&&(x[0].t={labels:{open:cO(e,"open:")+" ",high:cO(e,"high:")+" ",low:cO(e,"low:")+" ",close:cO(e,"close:")+" "}}),x}function L$t(e,t,r){var n=r._minDiff;if(!n){var i=e._fullData,a=[];n=1/0;var o;for(o=0;o{"use strict";var P$t=Jl(),vJe=ei();mJe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;vJe.makeTraceGroups(i,n,"trace ohlc").each(function(u){var l=P$t.select(this),f=u[0],c=f.t,h=f.trace;if(h.visible!==!0||c.empty){l.remove();return}var d=c.tickLen,p=l.selectAll("path").data(vJe.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(x){if(x.empty)return"M0,0Z";var b=o.c2p(x.pos-d,!0),v=o.c2p(x.pos+d,!0),k=s?(b+v)/2:o.c2p(x.pos,!0),E=a.c2p(x.o,!0),T=a.c2p(x.h,!0),L=a.c2p(x.l,!0),_=a.c2p(x.c,!0);return"M"+b+","+E+"H"+k+"M"+k+","+T+"V"+L+"M"+v+","+_+"H"+k})})}});var _Je=Te((f3r,gJe)=>{"use strict";var G$=Jl(),z$t=Mu(),I$t=jl();gJe.exports=function(t,r,n){var i=n||G$.select(t).selectAll("g.ohlclayer").selectAll("g.trace");i.style("opacity",function(a){return a[0].trace.opacity}),i.each(function(a){var o=a[0].trace;G$.select(this).selectAll("path").each(function(s){if(!s.empty){var u=o[s.dir].line;G$.select(this).style("fill","none").call(I$t.stroke,u.color).call(z$t.dashLine,u.dash,u.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var W$=Te((c3r,TJe)=>{"use strict";var H$=wu(),R$t=ei(),dO=Xc(),D$t=jl(),F$t=ei().fillText,xJe=GA(),B$t={increasing:xJe.INCREASING.SYMBOL,decreasing:xJe.DECREASING.SYMBOL};function O$t(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?wJe(e,t,r,n):AJe(e,t,r,n)}function bJe(e,t,r,n){var i=e.cd,a=e.xa,o=i[0].trace,s=i[0].t,u=o.type,l=u==="ohlc"?"l":"min",f=u==="ohlc"?"h":"max",c,h,d=s.bPos||0,p=function(P){return P.pos+d-t},x=s.bdPos||s.tickLen,b=s.wHover,v=Math.min(1,x/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));c=e.maxHoverDistance-v,h=e.maxSpikeDistance-v;function k(P){var A=p(P);return dO.inbox(A-b,A+b,c)}function E(P){var A=P[l],B=P[f];return A===B||dO.inbox(A-r,B-r,c)}function T(P){return(k(P)+E(P))/2}var L=dO.getDistanceFunction(n,k,E,T);if(dO.getClosest(i,L,e),e.index===!1)return null;var _=i[e.index];if(_.empty)return null;var C=_.dir,M=o[C],m=M.line.color;return D$t.opacity(m)&&M.line.width?e.color=m:e.color=M.fillcolor,e.x0=a.c2p(_.pos+d-x,!0),e.x1=a.c2p(_.pos+d+x,!0),e.xLabelVal=_.orig_p!==void 0?_.orig_p:_.pos,e.spikeDistance=T(_)*h/c,e.xSpike=a.c2p(_.pos,!0),e}function wJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=[],l=bJe(e,t,r,n);if(!l)return[];var f=l.index,c=i[f],h=c.hi||o.hoverinfo,d=h.split("+"),p=h==="all",x=p||d.indexOf("y")!==-1;if(!x)return[];for(var b=["high","open","close","low"],v={},k=0;k"+s.labels[E]+H$.hoverLabelText(a,T,o.yhoverformat)):(_=R$t.extendFlat({},l),_.y0=_.y1=L,_.yLabelVal=T,_.yLabel=s.labels[E]+H$.hoverLabelText(a,T,o.yhoverformat),_.name="",u.push(_),v[T]=_)}return u}function AJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=bJe(e,t,r,n);if(!u)return[];var l=u.index,f=i[l],c=u.index=f.i,h=f.dir;function d(T){return s.labels[T]+H$.hoverLabelText(a,o[T][c],o.yhoverformat)}var p=f.hi||o.hoverinfo,x=p.split("+"),b=p==="all",v=b||x.indexOf("y")!==-1,k=b||x.indexOf("text")!==-1,E=v?[d("open"),d("high"),d("low"),d("close")+" "+B$t[h]]:[];return k&&F$t(f,o,E),u.extraText=E.join("
"),u.y0=u.y1=a.c2p(f.yc,!0),[u]}TJe.exports={hoverPoints:O$t,hoverSplit:wJe,hoverOnPoints:AJe}});var j$=Te((h3r,SJe)=>{"use strict";SJe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u=n[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";MJe.exports={moduleType:"trace",name:"ohlc",basePlotModule:Ah(),categories:["cartesian","svg","showLegend"],meta:{},attributes:fO(),supplyDefaults:hJe(),calc:V$().calc,plot:yJe(),style:_Je(),hoverPoints:W$().hoverPoints,selectPoints:j$()}});var CJe=Te((p3r,kJe)=>{"use strict";kJe.exports=EJe()});var Z$=Te((v3r,zJe)=>{"use strict";var X$=ei().extendFlat,LJe=jc().axisHoverFormat,f0=fO(),US=gE();function PJe(e){return{line:{color:X$({},US.line.color,{dflt:e}),width:US.line.width,editType:"style"},fillcolor:US.fillcolor,editType:"style"}}zJe.exports={xperiod:f0.xperiod,xperiod0:f0.xperiod0,xperiodalignment:f0.xperiodalignment,xhoverformat:LJe("x"),yhoverformat:LJe("y"),x:f0.x,open:f0.open,high:f0.high,low:f0.low,close:f0.close,line:{width:X$({},US.line.width,{}),editType:"style"},increasing:PJe(f0.increasing.line.color.dflt),decreasing:PJe(f0.decreasing.line.color.dflt),text:f0.text,hovertext:f0.hovertext,whiskerwidth:X$({},US.whiskerwidth,{dflt:0}),hoverlabel:f0.hoverlabel,zorder:US.zorder}});var DJe=Te((m3r,RJe)=>{"use strict";var q$t=ei(),N$t=jl(),U$t=U$(),V$t=Pm(),G$t=Z$();RJe.exports=function(t,r,n,i){function a(s,u){return q$t.coerce(t,r,G$t,s,u)}var o=U$t(t,r,a,i);if(!o){r.visible=!1;return}V$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),IJe(t,r,a,"increasing"),IJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function IJe(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",N$t.addOpacity(i,.5))}});var qJe=Te((y3r,OJe)=>{"use strict";var FJe=ei(),BJe=wu(),H$t=Im(),W$t=V$().calcCommon;OJe.exports=function(e,t){var r=e._fullLayout,n=BJe.getFromId(e,t.xaxis),i=BJe.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=H$t(t,n,"x",a).vals,s=W$t(e,t,a,o,i,j$t);return s.length?(FJe.extendFlat(s[0].t,{num:r._numBoxes,dPos:FJe.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function j$t(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var UJe=Te((g3r,NJe)=>{"use strict";NJe.exports={moduleType:"trace",name:"candlestick",basePlotModule:Ah(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:Z$(),layoutAttributes:_E(),supplyLayoutDefaults:WI().supplyLayoutDefaults,crossTraceCalc:XI().crossTraceCalc,supplyDefaults:DJe(),calc:qJe(),plot:ZI().plot,layerName:"boxlayer",style:YI().style,hoverPoints:W$().hoverPoints,selectPoints:j$()}});var GJe=Te((_3r,VJe)=>{"use strict";VJe.exports=UJe()});var K$=Te((x3r,HJe)=>{"use strict";var vO=ei(),X$t=gy(),pO=vO.deg2rad,Y$=vO.rad2deg;HJe.exports=function(t,r,n){switch(X$t(t,n),t._id){case"x":case"radialaxis":Z$t(t,r);break;case"angularaxis":J$t(t,r);break}};function Z$t(e,t){var r=t._subplot;e.setGeometry=function(){var n=e._rl[0],i=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(i-n),s=a/o,u=n>i?function(l){return l<=0}:function(l){return l>=0};e.c2g=function(l){var f=e.c2l(l)-n;return(u(f)?f:0)+s},e.g2c=function(l){return e.l2c(l+n-s)},e.g2p=function(l){return l*o},e.c2p=function(l){return e.g2p(e.c2g(l))}}}function Y$t(e,t){return t==="degrees"?pO(e):e}function K$t(e,t){return t==="degrees"?Y$(e):e}function J$t(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return Y$t(n(a),o)},e.c2d=function(a,o){return i(K$t(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],u=a._length,l,f,c=function(b){return e.d2c(b,a.thetaunit)};if(s)for(l=new Array(u),f=0;f{"use strict";WJe.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}});var gO=Te((w3r,KJe)=>{"use strict";var dw=ei(),jJe=M5().tester,J$=dw.findIndexOfMin,ZJe=dw.isAngleInsideSector,$$t=dw.angleDelta,XJe=dw.angleDist;function Q$t(e,t,r,n,i){if(!ZJe(t,n))return!1;var a,o;r[0]0?o:1/0},n=J$(t,r),i=dw.mod(n+1,t.length);return[t[n],t[i]]}function yO(e){return Math.abs(e)>1e-10?e:0}function $$(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function JJe(e){return e<0?-1:e>0?1:0}function GS(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var n=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/n,2*r/n]}function HS(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function $Je(e,t){return t*e.radius}function sQt(e,t,r,n){var i=HS(e,GS([r,t])),a=i[0],o=i[1],s=HS(e,GS([n,t])),u=s[0],l=s[1];if(t===0)return["M"+a+","+o,"L"+u+","+l].join(" ");var f=$Je(e,1/Math.abs(t));return["M"+a+","+o,"A"+f+","+f+" 0 0,"+(t<0?1:0)+" "+u+","+l].join(" ")}function lQt(e,t,r,n){var i=$Je(e,1/(t+1)),a=HS(e,GS([t,r])),o=a[0],s=a[1],u=HS(e,GS([t,n])),l=u[0],f=u[1];if(JJe(r)!==JJe(n)){var c=HS(e,GS([t,0])),h=c[0],d=c[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var pw=Jl(),uQt=cd(),mw=$l(),Oc=ei(),rg=Oc.strRotate,bd=Oc.strTranslate,eQ=jl(),uC=Mu(),fQt=Cc(),hv=wu(),cQt=gy(),hQt=K$(),dQt=wm().doAutoRange,g1=Z7(),bO=xp(),e$e=Xc(),pQt=Mb(),vQt=ah().prepSelect,mQt=ah().selectOnClick,tQ=ah().clearOutline,t$e=Am(),r$e=h5(),i$e=x5().redrawReglTraces,yQt=Qh().MID_SHIFT,Cx=mO(),_1=gO(),wO=Q$(),_O=wO.smith,gQt=wO.reactanceArc,_Qt=wO.resistanceArc,xO=wO.smithTransform,xQt=Oc._,n$e=Oc.mod,Lx=Oc.deg2rad,vw=Oc.rad2deg;function a$e(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=e._fullLayout,i="clip"+n._uid+t;this.clipIds.forTraces=i+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var Vd=a$e.prototype;l$e.exports=function(t,r,n){return new a$e(t,r,n)};Vd.plot=function(e,t){for(var r=this,n=t[r.id],i=!1,a=0;ab?(v=l,k=l*b,L=(f-k)/i.h/2,E=[s[0],s[1]],T=[u[0]+L,u[1]-L]):(v=f/b,k=f,L=(l-v)/i.w/2,E=[s[0]+L,s[1]-L],T=[u[0],u[1]]),r.xLength2=v,r.yLength2=k,r.xDomain2=E,r.yDomain2=T;var _=r.xOffset2=i.l+i.w*E[0],C=r.yOffset2=i.t+i.h*(1-T[1]),M=r.radius=v/d,m=r.innerRadius=r.getHole(t)*M,P=r.cx=_-M*h[0],A=r.cy=C+M*h[3],B=r.cxx=P-_,F=r.cyy=A-C,U=a.side,G;U==="counterclockwise"?(G=U,U="top"):U==="clockwise"&&(G=U,U="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:U,_trueSide:G,domain:[m/i.w,M/i.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:E}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:T});var j=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",j).attr("transform",bd(B,F)),n.frontplot.attr("transform",bd(_,C)).call(uC.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",j).attr("transform",bd(P,A)).call(eQ.fill,t.bgcolor)};Vd.mockAxis=function(e,t,r,n){var i=Oc.extendFlat({},r,n);return hQt(i,t,e),i};Vd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Oc.extendFlat({type:"linear"},r);cQt(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var u=n.sectorBBox,l=s[a],f=n.radialAxis._rl,c=(f[1]-f[0])/(1-n.getHole(t));o.range=[u[l[0]]*c,u[l[1]]*c]},o.isPtWithinRange=a==="x"&&!i?function(u){return n.isPtInside(u)}:function(){return!0},o.setRange(),o.setScale(),o};Vd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);dQt(n,i);var o=i.range;if(a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")],i.minallowed!==void 0){var s=i.r2l(i.minallowed);i._rl[0]>i._rl[1]?i._rl[1]=Math.max(i._rl[1],s):i._rl[0]=Math.max(i._rl[0],s)}if(i.maxallowed!==void 0){var u=i.r2l(i.maxallowed);i._rl[0]90&&f<=270&&(c.tickangle=180);var p=d?function(M){var m=xO(r,_O([M.x,0]));return bd(m[0]-s,m[1]-u)}:function(M){return bd(c.l2p(M.x)+o,0)},x=d?function(M){return _Qt(r,M.x,-1/0,1/0)}:function(M){return r.pathArc(c.r2p(M.x)+o)},b=o$e(l);if(r.radialTickLayout!==b&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=b),h){c.setScale();var v=0,k=d?(c.tickvals||[]).filter(function(M){return M>=0}).map(function(M){return hv.tickText(c,M,!0,!1)}):hv.calcTicks(c),E=d?k:hv.clipEnds(c,k),T=hv.getTickSigns(c)[2];d&&((c.ticks==="top"&&c.side==="bottom"||c.ticks==="bottom"&&c.side==="top")&&(T=-T),c.ticks==="top"&&c.side==="top"&&(v=-c.ticklen),c.ticks==="bottom"&&c.side==="bottom"&&(v=c.ticklen)),hv.drawTicks(n,c,{vals:k,layer:i["radial-axis"],path:hv.makeTickPath(c,0,T),transFn:p,crisp:!1}),hv.drawGrid(n,c,{vals:E,layer:i["radial-grid"],path:x,transFn:Oc.noop,crisp:!1}),hv.drawLabels(n,c,{vals:k,layer:i["radial-axis"],transFn:p,labelFns:hv.makeLabelFns(c,v)})}var L=r.radialAxisAngle=r.vangles?vw(s$e(Lx(l.angle),r.vangles)):l.angle,_=bd(s,u),C=_+rg(-L);fC(i["radial-axis"],h&&(l.showticklabels||l.ticks),{transform:C}),fC(i["radial-grid"],h&&l.showgrid,{transform:d?"":_}),fC(i["radial-line"].select("line"),h&&l.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:C}).attr("stroke-width",l.linewidth).call(eQ.stroke,l.linecolor)};Vd.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,u=n.getRadial(t),l=n.id+"title",f=0;if(u.title){var c=uC.bBox(n.layers["radial-axis"].node()).height,h=u.title.font.size,d=u.side;f=d==="top"?h:d==="counterclockwise"?-(c+h*.4):c+h*.8}var p=r!==void 0?r:n.radialAxisAngle,x=Lx(p),b=Math.cos(x),v=Math.sin(x),k=o+a/2*b+f*v,E=s-a/2*v+f*b;n.layers["radial-axis-title"]=pQt.draw(i,l,{propContainer:u,propName:n.id+".radialaxis.title",placeholder:xQt(i,"Click to enter radial axis title"),attributes:{x:k,y:E,"text-anchor":"middle"},transform:{rotate:-p}})}};Vd.updateAngularAxis=function(e,t){var r=this,n=r.gd,i=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,u=r.cy,l=r.getAngular(t),f=r.angularAxis,c=r.isSmith;c||(r.fillViewInitialKey("angularaxis.rotation",l.rotation),f.setGeometry(),f.setScale());var h=c?function(m){var P=xO(r,_O([0,m.x]));return Math.atan2(P[0]-s,P[1]-u)-Math.PI/2}:function(m){return f.t2g(m.x)};f.type==="linear"&&f.thetaunit==="radians"&&(f.tick0=vw(f.tick0),f.dtick=vw(f.dtick));var d=function(m){return bd(s+a*Math.cos(m),u-a*Math.sin(m))},p=c?function(m){var P=xO(r,_O([0,m.x]));return bd(P[0],P[1])}:function(m){return d(h(m))},x=c?function(m){var P=xO(r,_O([0,m.x])),A=Math.atan2(P[0]-s,P[1]-u)-Math.PI/2;return bd(P[0],P[1])+rg(-vw(A))}:function(m){var P=h(m);return d(P)+rg(-vw(P))},b=c?function(m){return gQt(r,m.x,0,1/0)}:function(m){var P=h(m),A=Math.cos(P),B=Math.sin(P);return"M"+[s+o*A,u-o*B]+"L"+[s+a*A,u-a*B]},v=hv.makeLabelFns(f,0),k=v.labelStandoff,E={};E.xFn=function(m){var P=h(m);return Math.cos(P)*k},E.yFn=function(m){var P=h(m),A=Math.sin(P)>0?.2:1;return-Math.sin(P)*(k+m.fontSize*A)+Math.abs(Math.cos(P))*(m.fontSize*yQt)},E.anchorFn=function(m){var P=h(m),A=Math.cos(P);return Math.abs(A)<.1?"middle":A>0?"start":"end"},E.heightFn=function(m,P,A){var B=h(m);return-.5*(1+Math.sin(B))*A};var T=o$e(l);r.angularTickLayout!==T&&(i["angular-axis"].selectAll("."+f._id+"tick").remove(),r.angularTickLayout=T);var L=c?[1/0].concat(f.tickvals||[]).map(function(m){return hv.tickText(f,m,!0,!1)}):hv.calcTicks(f);c&&(L[0].text="\u221E",L[0].fontSize*=1.75);var _;if(t.gridshape==="linear"?(_=L.map(h),Oc.angleDelta(_[0],_[1])<0&&(_=_.slice().reverse())):_=null,r.vangles=_,f.type==="category"&&(L=L.filter(function(m){return Oc.isAngleInsideSector(h(m),r.sectorInRad)})),f.visible){var C=f.ticks==="inside"?-1:1,M=(f.linewidth||1)/2;hv.drawTicks(n,f,{vals:L,layer:i["angular-axis"],path:"M"+C*M+",0h"+C*f.ticklen,transFn:x,crisp:!1}),hv.drawGrid(n,f,{vals:L,layer:i["angular-grid"],path:b,transFn:Oc.noop,crisp:!1}),hv.drawLabels(n,f,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:p,labelFns:E})}fC(i["angular-line"].select("path"),l.showline,{d:r.pathSubplot(),transform:bd(s,u)}).attr("stroke-width",l.linewidth).call(eQ.stroke,l.linecolor)};Vd.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};Vd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=Cx.MINZOOM,s=Cx.OFFEDGE,u=t.radius,l=t.innerRadius,f=t.cx,c=t.cy,h=t.cxx,d=t.cyy,p=t.sectorInRad,x=t.vangles,b=t.radialAxis,v=_1.clampTiny,k=_1.findXYatLength,E=_1.findEnclosingVertexAngles,T=Cx.cornerHalfWidth,L=Cx.cornerLen/2,_,C,M=g1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");pw.select(M).attr("d",t.pathSubplot()).attr("transform",bd(f,c)),M.onmousemove=function(ce){e$e.hover(n,ce,t.id),n._fullLayout._lasthover=M,n._fullLayout._hoversubplot=t.id},M.onmouseout=function(ce){n._dragging||bO.unhover(n,ce)};var m={element:M,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,A,B,F,U,G,j,H,N;function W(ce,Ye){return Math.sqrt(ce*ce+Ye*Ye)}function re(ce,Ye){return W(ce-h,Ye-d)}function ae(ce,Ye){return Math.atan2(d-Ye,ce-h)}function be(ce,Ye){return[ce*Math.cos(Ye),ce*Math.sin(-Ye)]}function Pe(ce,Ye){if(ce===0)return t.pathSector(2*T);var nt=L/ce,gt=Ye-nt,Nt=Ye+nt,it=Math.max(0,Math.min(ce,u)),Ke=it-T,kt=it+T;return"M"+be(Ke,gt)+"A"+[Ke,Ke]+" 0,0,0 "+be(Ke,Nt)+"L"+be(kt,Nt)+"A"+[kt,kt]+" 0,0,1 "+be(kt,gt)+"Z"}function Ce(ce,Ye,nt){if(ce===0)return t.pathSector(2*T);var gt=be(ce,Ye),Nt=be(ce,nt),it=v((gt[0]+Nt[0])/2),Ke=v((gt[1]+Nt[1])/2),kt,Tt;if(it&&Ke){var St=Ke/it,Dt=-1/St,Zt=k(T,St,it,Ke);kt=k(L,Dt,Zt[0][0],Zt[0][1]),Tt=k(L,Dt,Zt[1][0],Zt[1][1])}else{var Et,Ae;Ke?(Et=L,Ae=T):(Et=T,Ae=L),kt=[[it-Et,Ke-Ae],[it+Et,Ke-Ae]],Tt=[[it-Et,Ke+Ae],[it+Et,Ke+Ae]]}return"M"+kt.join("L")+"L"+Tt.reverse().join("L")+"Z"}function de(){B=null,F=null,U=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];j=uQt(ce.bgcolor).getLuminance(),H=g1.makeZoombox(a,j,f,c,U),H.attr("fill-rule","evenodd"),N=g1.makeCorners(a,f,c),tQ(n)}function te(ce,Ye){return Ye=Math.max(Math.min(Ye,u),l),ceo?(ce-1&&ce===1&&mQt(Ye,n,[t.xaxis],[t.yaxis],t.id,m),nt.indexOf("event")>-1&&e$e.click(n,Ye,t.id)}m.prepFn=function(ce,Ye,nt){var gt=n._fullLayout.dragmode,Nt=M.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var it=n._fullLayout._invTransform;_=n._fullLayout._invScaleX,C=n._fullLayout._invScaleY;var Ke=Oc.apply3DTransform(it)(Ye-Nt.left,nt-Nt.top);if(P=Ke[0],A=Ke[1],x){var kt=_1.findPolygonOffset(u,p[0],p[1],x);P+=h+kt[0],A+=d+kt[1]}switch(gt){case"zoom":m.clickFn=Ve,r||(x?m.moveFn=Ne:m.moveFn=Ee,m.doneFn=Fe,de(ce,Ye,nt));break;case"select":case"lasso":vQt(ce,Ye,nt,m,gt);break}},bO.init(m)};Vd.updateRadialDrag=function(e,t,r){var n=this,i=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,u=n.cx,l=n.cy,f=n.radialAxis,c=Cx.radialDragBoxSize,h=c/2;if(!f.visible)return;var d=Lx(n.radialAxisAngle),p=f._rl,x=p[0],b=p[1],v=p[r],k=.75*(p[1]-p[0])/(1-n.getHole(t))/o,E,T,L;r?(E=u+(o+h)*Math.cos(d),T=l-(o+h)*Math.sin(d),L="radialdrag"):(E=u+(s-h)*Math.cos(d),T=l-(s-h)*Math.sin(d),L="radialdrag-inner");var _=g1.makeRectDragger(a,L,"crosshair",-h,-h,c,c),C={element:_,gd:i};e.dragmode===!1&&(C.dragmode=!1),fC(pw.select(_),f.visible&&s0!=(r?P>x:P=90||i>90&&a>=450?d=1:s<=0&&l<=0?d=0:d=Math.max(s,l),i<=180&&a>=180||i>180&&a>=540?f=-1:o>=0&&u>=0?f=0:f=Math.min(o,u),i<=270&&a>=270||i>270&&a>=630?c=-1:s>=0&&l>=0?c=0:c=Math.min(s,l),a>=360?h=1:o<=0&&u<=0?h=0:h=Math.max(o,u),[f,c,h,d]}function s$e(e,t){var r=function(i){return Oc.angleDist(e,i)},n=Oc.findIndexOfMin(t,r);return t[n]}function fC(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var iQ=Te((S3r,p$e)=>{"use strict";var wQt=Ih(),Ku=Dd(),AQt=zc().attributes,c0=ei().extendFlat,u$e=Sc().overrideAll,f$e=u$e({color:Ku.color,showline:c0({},Ku.showline,{dflt:!0}),linecolor:Ku.linecolor,linewidth:Ku.linewidth,showgrid:c0({},Ku.showgrid,{dflt:!0}),gridcolor:Ku.gridcolor,gridwidth:Ku.gridwidth,griddash:Ku.griddash},"plot","from-root"),c$e=u$e({tickmode:Ku.minor.tickmode,nticks:Ku.nticks,tick0:Ku.tick0,dtick:Ku.dtick,tickvals:Ku.tickvals,ticktext:Ku.ticktext,ticks:Ku.ticks,ticklen:Ku.ticklen,tickwidth:Ku.tickwidth,tickcolor:Ku.tickcolor,ticklabelstep:Ku.ticklabelstep,showticklabels:Ku.showticklabels,labelalias:Ku.labelalias,minorloglabels:Ku.minorloglabels,showtickprefix:Ku.showtickprefix,tickprefix:Ku.tickprefix,showticksuffix:Ku.showticksuffix,ticksuffix:Ku.ticksuffix,showexponent:Ku.showexponent,exponentformat:Ku.exponentformat,minexponent:Ku.minexponent,separatethousands:Ku.separatethousands,tickfont:Ku.tickfont,tickangle:Ku.tickangle,tickformat:Ku.tickformat,tickformatstops:Ku.tickformatstops,layer:Ku.layer},"plot","from-root"),h$e={visible:c0({},Ku.visible,{dflt:!0}),type:c0({},Ku.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Ku.autotypenumbers,autorangeoptions:{minallowed:Ku.autorangeoptions.minallowed,maxallowed:Ku.autorangeoptions.maxallowed,clipmin:Ku.autorangeoptions.clipmin,clipmax:Ku.autorangeoptions.clipmax,include:Ku.autorangeoptions.include,editType:"plot"},autorange:c0({},Ku.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:c0({},Ku.minallowed,{editType:"plot"}),maxallowed:c0({},Ku.maxallowed,{editType:"plot"}),range:c0({},Ku.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:Ku.categoryorder,categoryarray:Ku.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:Ku.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:c0({},Ku.title.text,{editType:"plot",dflt:""}),font:c0({},Ku.title.font,{editType:"plot"}),editType:"plot"},hoverformat:Ku.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};c0(h$e,f$e,c$e);var d$e={visible:c0({},Ku.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:Ku.autotypenumbers,categoryorder:Ku.categoryorder,categoryarray:Ku.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:Ku.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};c0(d$e,f$e,c$e);p$e.exports={domain:AQt({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:wQt.background},radialaxis:h$e,angularaxis:d$e,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var g$e=Te((M3r,y$e)=>{"use strict";var AO=ei(),TQt=jl(),SQt=Pf(),MQt=k_(),EQt=Rd().getSubplotData,kQt=xb(),CQt=A3(),LQt=e_(),PQt=t_(),zQt=iI(),IQt=Q5(),RQt=MN(),DQt=L3(),m$e=iQ(),FQt=K$(),TO=mO(),v$e=TO.axisNames;function BQt(e,t,r,n){var i=r("bgcolor");n.bgColor=TQt.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=EQt(n.fullData,TO.name,n.id),s=n.layoutOut,u;function l(H,N){return r(u+"."+H,N)}for(var f=0;f{"use strict";var qQt=Rd().getSubplotCalcData,NQt=ei().counterRegex,UQt=rQ(),x$e=mO(),b$e=x$e.attr,yw=x$e.name,_$e=NQt(yw),w$e={};w$e[b$e]={valType:"subplotid",dflt:yw,editType:"calc"};function VQt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[yw],i=0;i{"use strict";var HQt=Nu().hovertemplateAttrs,WQt=Nu().texttemplateAttrs,MO=Su().extendFlat,jQt=Em(),h0=Zc(),XQt=Gf(),WS=h0.line;T$e.exports={mode:h0.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:h0.text,texttemplate:WQt({editType:"plot"},{keys:["r","theta","text"]}),hovertext:h0.hovertext,line:{color:WS.color,width:WS.width,dash:WS.dash,backoff:WS.backoff,shape:MO({},WS.shape,{values:["linear","spline"]}),smoothing:WS.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:MO({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:MO({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:jQt(),hoverinfo:MO({},XQt.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:HQt(),selected:h0.selected,unselected:h0.unselected}});var kO=Te((C3r,E$e)=>{"use strict";var EO=ei(),jS=lc(),ZQt=$v(),YQt=I0(),S$e=J3(),KQt=R0(),JQt=zm(),$Qt=Sy().PTS_LINESONLY,QQt=cC();function eer(e,t,r,n){function i(s,u){return EO.coerce(e,t,QQt,s,u)}var a=M$e(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a<$Qt?"lines+markers":"lines"),i("text"),i("hovertext"),t.hoveron!=="fills"&&i("hovertemplate"),jS.hasMarkers(t)&&ZQt(e,t,r,n,i,{gradient:!0}),jS.hasLines(t)&&(YQt(e,t,r,n,i,{backoff:!0}),S$e(e,t,i),i("connectgaps")),jS.hasText(t)&&(i("texttemplate"),KQt(e,t,n,i));var o=[];(jS.hasMarkers(t)||jS.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),o.push("points")),i("fill"),t.fill!=="none"&&(JQt(e,t,r,i),jS.hasLines(t)||S$e(e,t,i)),(t.fill==="tonext"||t.fill==="toself")&&o.push("fills"),i("hoveron",o.join("+")||"points"),EO.coerceSelectionMarkerOpacity(t,i)}function M$e(e,t,r,n){var i=n("r"),a=n("theta");EO.isTypedArray(i)&&(t.r=i=Array.from(i)),EO.isTypedArray(a)&&(t.theta=a=Array.from(a));var o;if(i)a?o=Math.min(i.length,a.length):(o=i.length,n("theta0"),n("dtheta"));else{if(!a)return 0;o=t.theta.length,n("r0"),n("dr")}return t._length=o,o}E$e.exports={handleRThetaDefaults:M$e,supplyDefaults:eer}});var CO=Te((L3r,C$e)=>{"use strict";var ter=ei(),k$e=wu();C$e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=n[r.subplot],o=a.radialaxis,s=a.angularaxis);var u=o.c2l(t.r);i.rLabel=k$e.tickText(o,u,!0).text;var l=s.thetaunit==="degrees"?ter.rad2deg(t.theta):t.theta;return i.thetaLabel=k$e.tickText(s,l,!0).text,i}});var z$e=Te((P3r,P$e)=>{"use strict";var L$e=ku(),rer=nf().BADNUM,ier=wu(),ner=D0(),aer=ky(),oer=F0(),ser=B0().calcMarkerSize;P$e.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=a.makeCalcdata(r,"r"),u=o.makeCalcdata(r,"theta"),l=r._length,f=new Array(l),c=0;c{"use strict";var ler=iA(),I$e=nf().BADNUM;R$e.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},u=r.radialAxis,l=r.angularAxis,f=0;f{"use strict";var uer=sA();function fer(e,t,r,n){var i=uer(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],u=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,F$e(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function F$e(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var u=e.hi||t.hoverinfo,l=[];function f(h,d){l.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=u.split("+");c.indexOf("all")!==-1&&(c=["r","theta","text"]),c.indexOf("r")!==-1&&f(i,n.rLabel),c.indexOf("theta")!==-1&&f(a,n.thetaLabel),c.indexOf("text")!==-1&&n.text&&(l.push(n.text),delete n.text),n.extraText=l.join("
")}}B$e.exports={hoverPoints:fer,makeHoverPointText:F$e}});var q$e=Te((R3r,O$e)=>{"use strict";O$e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:SO(),categories:["polar","symbols","showLegend","scatter-like"],attributes:cC(),supplyDefaults:kO().supplyDefaults,colorbar:ep(),formatLabels:CO(),calc:z$e(),plot:D$e(),style:av().style,styleOnSelect:av().styleOnSelect,hoverPoints:LO().hoverPoints,selectPoints:lA(),meta:{}}});var U$e=Te((D3r,N$e)=>{"use strict";N$e.exports=q$e()});var nQ=Te((F3r,V$e)=>{"use strict";var Uv=cC(),x1=sk(),cer=Nu().texttemplateAttrs;V$e.exports={mode:Uv.mode,r:Uv.r,theta:Uv.theta,r0:Uv.r0,dr:Uv.dr,theta0:Uv.theta0,dtheta:Uv.dtheta,thetaunit:Uv.thetaunit,text:Uv.text,texttemplate:cer({editType:"plot"},{keys:["r","theta","text"]}),hovertext:Uv.hovertext,hovertemplate:Uv.hovertemplate,line:{color:x1.line.color,width:x1.line.width,dash:x1.line.dash,editType:"calc"},connectgaps:x1.connectgaps,marker:x1.marker,fill:x1.fill,fillcolor:x1.fillcolor,textposition:x1.textposition,textfont:x1.textfont,hoverinfo:Uv.hoverinfo,selected:Uv.selected,unselected:Uv.unselected}});var W$e=Te((B3r,H$e)=>{"use strict";var G$e=ei(),aQ=lc(),her=kO().handleRThetaDefaults,der=$v(),per=I0(),ver=R0(),mer=zm(),yer=Sy().PTS_LINESONLY,ger=nQ();H$e.exports=function(t,r,n,i){function a(s,u){return G$e.coerce(t,r,ger,s,u)}var o=her(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var _er=CO();j$e.exports=function(t,r,n){var i=t.i;return"r"in t||(t.r=r._r[i]),"theta"in t||(t.theta=r._theta[i]),_er(t,r,n)}});var Y$e=Te((q3r,Z$e)=>{"use strict";var xer=D0(),ber=B0().calcMarkerSize,wer=Y2(),Aer=wu(),Ter=ox().TOO_MANY_POINTS;Z$e.exports=function(t,r){var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=r._r=a.makeCalcdata(r,"r"),u=r._theta=o.makeCalcdata(r,"theta"),l=r._length,f={};l{"use strict";var Ser=OF(),Mer=LO().makeHoverPointText;function Eer(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,u=Ser.hoverPoints(e,t,r,n);if(!(!u||u[0].index===!1)){var l=u[0];if(l.index===void 0)return u;var f=e.subplot,c=l.cd[l.index],h=l.trace;if(c.r=o[l.index],c.theta=s[l.index],!!f.isPtInside(c))return l.xLabelVal=void 0,l.yLabelVal=void 0,Mer(c,h,f,l),u}}K$e.exports={hoverPoints:Eer}});var Q$e=Te((U3r,$$e)=>{"use strict";$$e.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:SO(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:nQ(),supplyDefaults:W$e(),colorbar:ep(),formatLabels:X$e(),calc:Y$e(),hoverPoints:J$e().hoverPoints,selectPoints:mY(),meta:{}}});var eQe=Te((V3r,oQ)=>{"use strict";var ker=UF(),Cer=ku(),Ler=xK(),Per=dY(),PO=Y2(),zO=ei(),zer=ox().TOO_MANY_POINTS,Ier={};oQ.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=Per(t,r);return n.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var u=s[0],l=u.trace,f=u.t,c=l._length,h=f.r,d=f.theta,p=f.opts,x,b=h.slice(),v=d.slice();for(x=0;x=zer&&(p.marker.cluster=f.tree),p.marker&&(p.markerSel.positions=p.markerUnsel.positions=p.marker.positions=k),p.line&&k.length>1&&zO.extendFlat(p.line,PO.linePositions(t,l,k)),p.text&&(zO.extendFlat(p.text,{positions:k},PO.textPosition(t,l,p.text,p.marker)),zO.extendFlat(p.textSel,{positions:k},PO.textPosition(t,l,p.text,p.markerSel)),zO.extendFlat(p.textUnsel,{positions:k},PO.textPosition(t,l,p.text,p.markerUnsel))),p.fill&&!o.fill2d&&(o.fill2d=!0),p.marker&&!o.scatter2d&&(o.scatter2d=!0),p.line&&!o.line2d&&(o.line2d=!0),p.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(p.line),o.fillOptions.push(p.fill),o.markerOptions.push(p.marker),o.markerSelectedOptions.push(p.markerSel),o.markerUnselectedOptions.push(p.markerUnsel),o.textOptions.push(p.text),o.textSelectedOptions.push(p.textSel),o.textUnselectedOptions.push(p.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),f.x=E,f.y=T,f.rawx=E,f.rawy=T,f.r=h,f.theta=d,f.positions=k,f._scene=o,f.index=o.count,o.count++}}),Ler(t,r,n)}};oQ.exports.reglPrecompiled=Ier});var rQe=Te((G3r,tQe)=>{"use strict";var Rer=T8(),Der=S8(),Fer=M8(),Ber=E8(),Oer=k8(),qer=C8(),Ner=L8(),Uer=P8(),Ver=z8(),Ger=I8();tQe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":Rer,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:Der,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":Fer,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:Ber,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:Oer,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":qer,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:Ner,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:Uer,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":Ver,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":Ger}});var nQe=Te((H3r,iQe)=>{"use strict";var sQ=eQe(),Her=rQe(),Wer=bK();Object.assign(sQ.reglPrecompiled,Her);Object.assign(sQ.reglPrecompiled,Wer);iQe.exports=sQ});var sQe=Te((W3r,oQe)=>{"use strict";var aQe=Q$e();aQe.plot=nQe();oQe.exports=aQe});var lQ=Te((j3r,lQe)=>{"use strict";var jer=Nu().hovertemplateAttrs,XS=Su().extendFlat,Px=cC(),zx=Ly();lQe.exports={r:Px.r,theta:Px.theta,r0:Px.r0,dr:Px.dr,theta0:Px.theta0,dtheta:Px.dtheta,thetaunit:Px.thetaunit,base:XS({},zx.base,{}),offset:XS({},zx.offset,{}),width:XS({},zx.width,{}),text:XS({},zx.text,{}),hovertext:XS({},zx.hovertext,{}),marker:Xer(),hoverinfo:Px.hoverinfo,hovertemplate:jer(),selected:zx.selected,unselected:zx.unselected};function Xer(){var e=XS({},zx.marker);return delete e.cornerradius,e}});var uQ=Te((X3r,uQe)=>{"use strict";uQe.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var hQe=Te((Z3r,cQe)=>{"use strict";var fQe=ei(),Zer=kO().handleRThetaDefaults,Yer=qI(),Ker=lQ();cQe.exports=function(t,r,n,i){function a(s,u){return fQe.coerce(t,r,Ker,s,u)}var o=Zer(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),Yer(t,r,a,n,i),fQe.coerceSelectionMarkerOpacity(r,a)}});var pQe=Te((Y3r,dQe)=>{"use strict";var Jer=ei(),$er=uQ();dQe.exports=function(e,t,r){var n={},i;function a(u,l){return Jer.coerce(e[i]||{},t[i],$er,u,l)}for(var o=0;o{"use strict";var vQe=yp().hasColorscale,mQe=gp(),Qer=ei().isArrayOrTypedArray,etr=pE(),ttr=Hb().setGroupPositions,rtr=F0(),itr=$l().traceIs,ntr=ei().extendFlat;function atr(e,t){for(var r=e._fullLayout,n=t.subplot,i=r[n].radialaxis,a=r[n].angularaxis,o=i.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),u=t._length,l=new Array(u),f=o,c=s,h=0;h{"use strict";var gQe=Jl(),IO=ku(),ZS=ei(),str=Mu(),cQ=gO();_Qe.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,u=r.angularAxis,l=ltr(r),f=r.layers.frontplot.select("g.barlayer");ZS.makeTraceGroups(f,n,"trace bars").each(function(){var c=gQe.select(this),h=ZS.ensureSingle(c,"g","points"),d=h.selectAll("g.point").data(ZS.identity);d.enter().append("g").style("vector-effect",i?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(p){var x=gQe.select(this),b=p.rp0=s.c2p(p.s0),v=p.rp1=s.c2p(p.s1),k=p.thetag0=u.c2g(p.p0),E=p.thetag1=u.c2g(p.p1),T;if(!IO(b)||!IO(v)||!IO(k)||!IO(E)||b===v||k===E)T="M0,0Z";else{var L=s.c2g(p.s1),_=(k+E)/2;p.ct=[a.c2p(L*Math.cos(_)),o.c2p(L*Math.sin(_))],T=l(b,v,k,E)}ZS.ensureSingle(x,"path").attr("d",T)}),str.setClipUrl(c,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function ltr(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,u;ZS.angleDelta(a,o)>0?(s=a,u=o):(s=o,u=a);var l=cQ.findEnclosingVertexAngles(s,e.vangles)[0],f=cQ.findEnclosingVertexAngles(u,e.vangles)[1],c=[l,(s+u)/2,f];return cQ.pathPolygonAnnulus(n,i,s,u,c,t,r)}:function(n,i,a,o){return ZS.pathAnnulus(n,i,a,o,t,r)}}});var wQe=Te(($3r,bQe)=>{"use strict";var utr=Xc(),hQ=ei(),ftr=AA().getTraceColor,ctr=hQ.fillText,htr=LO().makeHoverPointText,dtr=gO().isPtInsidePolygon;bQe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s=o.radialAxis,u=o.angularAxis,l=o.vangles,f=l?dtr:hQ.isPtInsideSector,c=t.maxHoverDistance,h=u._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+n*n))),p=Math.atan2(n,r);s.range[0]>s.range[1]&&(p+=Math.PI);var x=function(E){return f(d,p,[E.rp0,E.rp1],[E.thetag0,E.thetag1],l)?c+Math.min(1,Math.abs(E.thetag1-E.thetag0)/h)-1+(E.rp1-d)/(E.rp1-E.rp0)-1:1/0};if(utr.getClosest(i,x,t),t.index!==!1){var b=t.index,v=i[b];t.x0=t.x1=v.ct[0],t.y0=t.y1=v.ct[1];var k=hQ.extendFlat({},v,{r:v.s,theta:v.p});return ctr(v,a,t),htr(k,a,o,t),t.hovertemplate=a.hovertemplate,t.color=ftr(a,v),t.xLabelVal=t.yLabelVal=void 0,v.s<0&&(t.idealAlign="left"),[t]}}});var TQe=Te((Q3r,AQe)=>{"use strict";AQe.exports={moduleType:"trace",name:"barpolar",basePlotModule:SO(),categories:["polar","bar","showLegend"],attributes:lQ(),layoutAttributes:uQ(),supplyDefaults:hQe(),supplyLayoutDefaults:pQe(),calc:fQ().calc,crossTraceCalc:fQ().crossTraceCalc,plot:xQe(),colorbar:ep(),formatLabels:CO(),style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:wQe(),selectPoints:TA(),meta:{}}});var MQe=Te((eAr,SQe)=>{"use strict";SQe.exports=TQe()});var dQ=Te((tAr,EQe)=>{"use strict";EQe.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var pQ=Te((rAr,PQe)=>{"use strict";var ptr=Ih(),uh=Dd(),vtr=zc().attributes,Ix=ei().extendFlat,kQe=Sc().overrideAll,CQe=kQe({color:uh.color,showline:Ix({},uh.showline,{dflt:!0}),linecolor:uh.linecolor,linewidth:uh.linewidth,showgrid:Ix({},uh.showgrid,{dflt:!0}),gridcolor:uh.gridcolor,gridwidth:uh.gridwidth,griddash:uh.griddash},"plot","from-root"),LQe=kQe({ticklen:uh.ticklen,tickwidth:Ix({},uh.tickwidth,{dflt:2}),tickcolor:uh.tickcolor,showticklabels:uh.showticklabels,labelalias:uh.labelalias,showtickprefix:uh.showtickprefix,tickprefix:uh.tickprefix,showticksuffix:uh.showticksuffix,ticksuffix:uh.ticksuffix,tickfont:uh.tickfont,tickformat:uh.tickformat,hoverformat:uh.hoverformat,layer:uh.layer},"plot","from-root"),mtr=Ix({visible:Ix({},uh.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Ix({},uh.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},CQe,LQe),ytr=Ix({visible:Ix({},uh.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:uh.ticks,editType:"calc"},CQe,LQe);PQe.exports={domain:vtr({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:ptr.background},realaxis:mtr,imaginaryaxis:ytr,editType:"calc"}});var RQe=Te((iAr,IQe)=>{"use strict";var YS=ei(),gtr=jl(),_tr=Pf(),xtr=k_(),btr=Rd().getSubplotData,wtr=t_(),Atr=e_(),Ttr=Q5(),Str=gy(),KS=pQ(),vQ=dQ(),zQe=vQ.axisNames,Mtr=ktr(function(e){return YS.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function Etr(e,t,r,n){var i=r("bgcolor");n.bgColor=gtr.combine(i,n.paper_bgcolor);var a=btr(n.fullData,vQ.name,n.id),o=n.layoutOut,s;function u(L,_){return r(s+"."+L,_)}for(var l=0;l{"use strict";var Ctr=Rd().getSubplotCalcData,Ltr=ei().counterRegex,Ptr=rQ(),FQe=dQ(),BQe=FQe.attr,gw=FQe.name,DQe=Ltr(gw),OQe={};OQe[BQe]={valType:"subplotid",dflt:gw,editType:"calc"};function ztr(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[gw],i=0;i{"use strict";var Rtr=Nu().hovertemplateAttrs,Dtr=Nu().texttemplateAttrs,RO=Su().extendFlat,Ftr=Em(),d0=Zc(),Btr=Gf(),JS=d0.line;UQe.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:Dtr({editType:"plot"},{keys:["real","imag","text"]}),hovertext:d0.hovertext,line:{color:JS.color,width:JS.width,dash:JS.dash,backoff:JS.backoff,shape:RO({},JS.shape,{values:["linear","spline"]}),smoothing:JS.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:RO({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:RO({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Ftr(),hoverinfo:RO({},Btr.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:Rtr(),selected:d0.selected,unselected:d0.unselected}});var HQe=Te((oAr,GQe)=>{"use strict";var DO=ei(),$S=lc(),Otr=$v(),qtr=I0(),VQe=J3(),Ntr=R0(),Utr=zm(),Vtr=Sy().PTS_LINESONLY,Gtr=mQ();GQe.exports=function(t,r,n,i){function a(u,l){return DO.coerce(t,r,Gtr,u,l)}var o=Htr(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var WQe=wu();jQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=WQe.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=WQe.tickText(a.angularAxis,t.imag,!0).text,i}});var KQe=Te((lAr,YQe)=>{"use strict";var ZQe=ku(),Wtr=nf().BADNUM,jtr=D0(),Xtr=ky(),Ztr=F0(),Ytr=B0().calcMarkerSize;YQe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].realaxis,o=n[i].imaginaryaxis,s=a.makeCalcdata(r,"real"),u=o.makeCalcdata(r,"imag"),l=r._length,f=new Array(l),c=0;c{"use strict";var Ktr=iA(),JQe=nf().BADNUM,Jtr=Q$(),$tr=Jtr.smith;$Qe.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},u=0;u{"use strict";var Qtr=sA();function err(e,t,r,n){var i=Qtr(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],u=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,eet(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function eet(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var u=e.hi||t.hoverinfo,l=[];function f(h,d){l.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=u.split("+");c.indexOf("all")!==-1&&(c=["real","imag","text"]),c.indexOf("real")!==-1&&f(i,n.realLabel),c.indexOf("imag")!==-1&&f(a,n.imagLabel),c.indexOf("text")!==-1&&n.text&&(l.push(n.text),delete n.text),n.extraText=l.join("
")}}tet.exports={hoverPoints:err,makeHoverPointText:eet}});var net=Te((cAr,iet)=>{"use strict";iet.exports={moduleType:"trace",name:"scattersmith",basePlotModule:NQe(),categories:["smith","symbols","showLegend","scatter-like"],attributes:mQ(),supplyDefaults:HQe(),colorbar:ep(),formatLabels:XQe(),calc:KQe(),plot:QQe(),style:av().style,styleOnSelect:av().styleOnSelect,hoverPoints:ret().hoverPoints,selectPoints:lA(),meta:{}}});var oet=Te((hAr,aet)=>{"use strict";aet.exports=net()});var Cp=Te((dAr,uet)=>{var BO=Uh();function set(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}BO(set.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,i){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,i):n)||this.instance(),n.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(a===0?"":e[a]+t[i])+n,i++,r=Math.floor(r/10)}return n.indexOf(e[1]+t[1])===0&&(n=n.substr(1)),n||e[0]}}});function yQ(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Af.local.invalidDate||Af.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function FO(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}BO(yQ.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Af.local.invalidDate||Af.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Af.local.differentCalendars||Af.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+FO(Math.abs(this.year()),4)+"-"+FO(this.month(),2)+"-"+FO(this.day(),2)}});function gQ(){this.shortYearCutoff="+10"}BO(gQ.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new yQ(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+FO(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Af.local.invalidMonth||Af.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Af.local.invalidMonth||Af.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var n=e.toJD()+t*(r==="w"?this.daysInWeek():1),i=e.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),i=e.day(),s=function(f){for(;oc-1+f.minMonth;)a++,o-=c,c=f.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var u=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,u}catch(l){throw this._validateLevel--,l}},_correctAdd:function(e,t,r,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;t=this._add(e,r*i[0]+a*i[1],i[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Af.local.invalidDate||Af.regionalOptions[""].invalidDate);var n=r==="y"?t:e.year(),i=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(n,i))),e.date(n,i,a)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var i=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),l=i-(u>2.5?4716:4715);return l<=0&&l--,this.newDate(l,u,s)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Af=uet.exports=new set;Af.cdate=yQ;Af.baseCalendar=gQ;Af.calendars.gregorian=_Q});var fet=Te(()=>{var xQ=Uh(),Gd=Cp();xQ(Gd.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Gd.local=Gd.regionalOptions[""];xQ(Gd.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});xQ(Gd.baseCalendar.prototype,{UNIX_EPOCH:Gd.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Gd.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw Gd.local.invalidFormat||Gd.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,u=r.calculateWeek||this.local.calculateWeek,l=function(T,L){for(var _=1;E+_1},f=function(T,L,_,C){var M=""+L;if(l(T,C))for(;M.length<_;)M="0"+M;return M},c=function(T,L,_,C){return l(T)?C[L]:_[L]},h=this,d=function(T){return typeof a=="function"?a.call(h,T,l("m")):b(f("m",T.month(),2))},p=function(T,L){return L?typeof s=="function"?s.call(h,T):s[T.month()-h.minMonth]:typeof o=="function"?o.call(h,T):o[T.month()-h.minMonth]},x=this.local.digits,b=function(T){return r.localNumbers&&x?x(T):T},v="",k=!1,E=0;E1},k=function(B,F){var U=v(B,F),G=[2,3,U?4:2,U?4:2,10,11,20]["oyYJ@!".indexOf(B)+1],j=new RegExp("^-?\\d{1,"+G+"}"),H=t.substring(M).match(j);if(!H)throw(Gd.local.missingNumberAt||Gd.regionalOptions[""].missingNumberAt).replace(/\{0\}/,M);return M+=H[0].length,parseInt(H[0],10)},E=this,T=function(){if(typeof s=="function"){v("m");var B=s.call(E,t.substring(M));return M+=B.length,B}return k("m")},L=function(B,F,U,G){for(var j=v(B,G)?U:F,H=0;H-1){h=1,d=p;for(var A=this.daysInMonth(c,h);d>A;A=this.daysInMonth(c,h))h++,d-=A}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,t,r,n,i){r&&typeof r!="object"&&(i=n,n=r,r=null),typeof n!="string"&&(i=n,n="");var a=this,o=function(s){try{return a.parseDate(n,s,i)}catch(c){}s=s.toLowerCase();for(var u=(s.match(/^c/)&&r?r.newDate():null)||a.today(),l=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=l.exec(s);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=l.exec(s);return u};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var cet=Te(()=>{var Rx=Cp(),trr=Uh(),bQ=Rx.instance();function OO(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}OO.prototype=new Rx.baseCalendar;trr(OO.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(irr);return r?r[0]:""}var n=this._validateYear(e),i=e.month(),a=""+this.toChineseMonth(n,i);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(n,i)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(nrr);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(arr);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),n;if(isNaN(r))t[0]==="\u95F0"&&(n=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var i=t[t.length-1];n=i==="i"||i==="I"}var a=this.toMonthIndex(e,r,n);return a},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var n=this.intercalaryMonth(e),i=r&&t!==n;if(i||t<1||t>12)throw Rx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return n?!r&&t<=n?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),n=r?12:11;if(t<0||t>n)throw Rx.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var n=this._validateYear(e,Rx.local.invalidyear),i=Fx[n-Fx[0]],a=i>>9&4095,o=i>>5&15,s=i&31,u;u=bQ.newDate(a,o,s),u.add(4-(u.dayOfWeek()||7),"d");var l=this.toJD(e,t,r)-u.toJD();return 1+Math.floor(l/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=Dx[e-Dx[0]],n=r>>13,i=n?12:11;if(t>i)throw Rx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,a,r,Rx.local.invalidDate);e=this._validateYear(n.year()),t=n.month(),r=n.day();var i=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=srr(e,a,r,i);return bQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=bQ.fromJD(e),r=orr(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(rrr),r=this._validateYear(+t[1]),n=+t[2],i=!!t[3],a=this.toMonthIndex(r,n,i),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var n=e.year(),i=e.month(),a=this.isIntercalaryMonth(n,i),o=this.toChineseMonth(n,i),s=Object.getPrototypeOf(OO.prototype).add.call(this,e,t,r);if(r==="y"){var u=s.year(),l=s.month(),f=this.isIntercalaryMonth(u,o),c=a&&f?this.toMonthIndex(u,o,!0):this.toMonthIndex(u,o,!1);c!==l&&s.month(c)}return s}});var rrr=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,irr=/^\d?\d[iI]?/m,nrr=/^闰?十?[一二三四五六七八九]?月/m,arr=/^闰?十?[一二三四五六七八九]?/m;Rx.calendars.chinese=OO;var Dx=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Fx=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function orr(e,t,r,n){var i,a;if(typeof e=="object")i=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=31;if(!u)throw new Error("Solar day outside range 1 - 31");i={year:e,month:t,day:r},a=n||{}}var l=Fx[i.year-Fx[0]],f=i.year<<9|i.month<<5|i.day;a.year=f>=l?i.year:i.year-1,l=Fx[a.year-Fx[0]];var c=l>>9&4095,h=l>>5&15,d=l&31,p,x=new Date(c,h-1,d),b=new Date(i.year,i.month-1,i.day);p=Math.round((b-x)/(24*3600*1e3));var v=Dx[a.year-Dx[0]],k;for(k=0;k<13;k++){var E=v&1<<12-k?30:29;if(p>13;return!T||k=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var u=typeof t=="number"&&t>=1&&t<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=30;if(!l)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,a=n):(f=!!n,a=i||{}),o={year:e,month:t,day:r,isIntercalary:f}}var c;c=o.day-1;var h=Dx[o.year-Dx[0]],d=h>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var x=0;x>9&4095,E=v>>5&15,T=v&31,L=new Date(k,E-1,T+c);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var het=Te(()=>{var _w=Cp(),lrr=Uh();function wQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wQ.prototype=new _w.baseCalendar;lrr(wQ.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,_w.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_w.local.invalidYear||_w.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,_w.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,_w.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});_w.calendars.coptic=wQ});var det=Te(()=>{var b1=Cp(),urr=Uh();function AQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}AQ.prototype=new b1.baseCalendar;urr(AQ.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,b1.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return{century:frr[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return e=n.year()+(n.year()<0?1:0),t=n.month(),r=n.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,n)}});var frr={20:"Fruitbat",21:"Anchovy"};b1.calendars.discworld=AQ});var pet=Te(()=>{var xw=Cp(),crr=Uh();function TQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}TQ.prototype=new xw.baseCalendar;crr(TQ.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,xw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,xw.local.invalidYear||xw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,xw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,xw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});xw.calendars.ethiopian=TQ});var vet=Te(()=>{var Bx=Cp(),hrr=Uh();function SQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SQ.prototype=new Bx.baseCalendar;hrr(SQ.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Bx.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,qO(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bx.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Bx.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Bx.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&qO(this.daysInYear(e),10)===5?30:t===9&&qO(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,Bx.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,t,r){var n=this._validate(e,t,r,Bx.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=e<=0?e+1:e,a=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});function qO(e,t){return e-t*Math.floor(e/t)}Bx.calendars.hebrew=SQ});var met=Te(()=>{var hC=Cp(),drr=Uh();function MQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}MQ.prototype=new hC.baseCalendar;drr(MQ.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,hC.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,hC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,hC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});hC.calendars.islamic=MQ});var yet=Te(()=>{var dC=Cp(),prr=Uh();function EQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EQ.prototype=new dC.baseCalendar;prr(EQ.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,dC.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,dC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,dC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),u=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,u)}});dC.calendars.julian=EQ});var _et=Te(()=>{var um=Cp(),vrr=Uh();function CQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CQ.prototype=new um.baseCalendar;vrr(CQ.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,um.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,um.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return r+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";t=t*20+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,um.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,um.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,um.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,um.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,um.local.invalidDate);return n.day()},weekDay:function(e,t,r){return this._validate(e,t,r,um.local.invalidDate),!0},extraInfo:function(e,t,r){var n=this._validate(e,t,r,um.local.invalidDate),i=n.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=kQ(e+8+17*20,365);return[Math.floor(t/20)+1,kQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[get(e+20,20),get(e+4,13)]},toJD:function(e,t,r){var n=this._validate(e,t,r,um.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}});function kQ(e,t){return e-t*Math.floor(e/t)}function get(e,t){return kQ(e-1,t)+1}um.calendars.mayan=CQ});var bet=Te(()=>{var bw=Cp(),mrr=Uh();function LQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LQ.prototype=new bw.baseCalendar;var xet=bw.instance("gregorian");mrr(LQ.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,bw.local.invalidYear||bw.regionalOptions[""].invalidYear);return xet.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,bw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,bw.local.invalidMonth),i=n.year();i<0&&i++;for(var a=n.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}});bw.calendars.nanakshahi=LQ});var wet=Te(()=>{var ww=Cp(),yrr=Uh();function PQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}PQ.prototype=new ww.baseCalendar;yrr(PQ.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ww.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,n=this.minMonth;n<=12;n++)r+=this.NEPALI_CALENDAR_DATA[e][n];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,ww.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var n=this._validate(e,t,r,ww.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=ww.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var u=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=i.daysInYear(u))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(u,1,1).add(a,"d").toJD()},fromJD:function(e){var t=ww.instance(),r=t.fromJD(e),n=r.year(),i=r.dayOfYear(),a=n+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],u=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>u;)o++,o>12&&(o=1,a++),u+=this.NEPALI_CALENDAR_DATA[a][o];var l=this.NEPALI_CALENDAR_DATA[a][o]-(u-i);return this.newDate(a,o,l)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var QS=Cp(),grr=Uh();function UO(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function NO(e){var t=e-475;e<0&&t++;var r=.242197,n=r*t,i=r*(t+1),a=n-Math.floor(n),o=i-Math.floor(i);return a>o}UO.prototype=new QS.baseCalendar;grr(UO.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,QS.local.invalidYear);return NO(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,QS.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,QS.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=0;if(e>0)for(var a=1;a0?e-1:e)*365+i+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,NO(r)?30:29)&&(r++,r===0&&r++);var n=e-this.toJD(r,1,1)+1,i=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),a=e-this.toJD(r,i,1)+1;return this.newDate(r,i,a)}});QS.calendars.persian=UO;QS.calendars.jalali=UO});var Tet=Te(()=>{var Aw=Cp(),_rr=Uh(),VO=Aw.instance();function zQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zQ.prototype=new Aw.baseCalendar;_rr(zQ.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Aw.local.invalidYear),r=this._t2gYear(t.year());return VO.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Aw.local.invalidYear),i=this._t2gYear(n.year());return VO.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Aw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Aw.local.invalidDate),i=this._t2gYear(n.year());return VO.toJD(i,n.month(),n.day())},fromJD:function(e){var t=VO.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Aw.calendars.taiwan=zQ});var Met=Te(()=>{var Tw=Cp(),xrr=Uh(),GO=Tw.instance();function IQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IQ.prototype=new Tw.baseCalendar;xrr(IQ.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Tw.local.invalidYear),r=this._t2gYear(t.year());return GO.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Tw.local.invalidYear),i=this._t2gYear(n.year());return GO.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Tw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Tw.local.invalidDate),i=this._t2gYear(n.year());return GO.toJD(i,n.month(),n.day())},fromJD:function(e){var t=GO.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Tw.calendars.thai=IQ});var Eet=Te(()=>{var Sw=Cp(),brr=Uh();function RQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}RQ.prototype=new Sw.baseCalendar;brr(RQ.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Sw.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Sw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return Ox[i]-Ox[i-1];i++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Sw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+Ox[i-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),o=a+1,s=i-12*a,u=t-Ox[r-1]+1;return this.newDate(o,s,u)},isValid:function(e,t,r){var n=Sw.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,t,r,n){var i=Sw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Sw.calendars.ummalqura=RQ;var Ox=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Cet=Te((HAr,ket)=>{"use strict";ket.exports=Cp();fet();cet();het();det();pet();vet();met();yet();_et();bet();wet();Aet();Tet();Met();Eet()});var Fet=Te((WAr,Det)=>{"use strict";var Pet=Cet(),pC=ei(),zet=nf(),wrr=zet.EPOCHJD,Arr=zet.ONEDAY,BQ={valType:"enumerated",values:pC.sortObjectKeys(Pet.calendars),editType:"calc",dflt:"gregorian"},Iet=function(e,t,r,n){var i={};return i[r]=BQ,pC.coerce(e,t,i,r,n)},Trr=function(e,t,r,n){for(var i=0;i{"use strict";Bet.exports=Fet()});var Lrr=Te((XAr,Net)=>{var qet=dge();qet.register([v1e(),r_e(),vxe(),Dxe(),Zxe(),Hbe(),i2e(),G2e(),gwe(),Qwe(),q3e(),J4e(),qke(),CLe(),mPe(),jPe(),vze(),qIe(),nRe(),wRe(),RRe(),ZRe(),uDe(),SDe(),$6e(),gFe(),XNe(),K7e(),yVe(),VVe(),JGe(),hHe(),FHe(),XWe(),lje(),zje(),NXe(),fZe(),WZe(),dKe(),FKe(),iJe(),CJe(),GJe(),U$e(),sQe(),MQe(),oet(),Oet()]);Net.exports=qet});return Lrr();})(); +`),tt=et.createShader(et.FRAGMENT_SHADER);if(et.isContextLost())return void(this.failedToCreate=!0);if(et.shaderSource(tt,He),et.compileShader(tt),!et.getShaderParameter(tt,et.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${et.getShaderInfoLog(tt)}`);et.attachShader(this.program,tt);let pt=et.createShader(et.VERTEX_SHADER);if(et.isContextLost())return void(this.failedToCreate=!0);if(et.shaderSource(pt,lt),et.compileShader(pt),!et.getShaderParameter(pt,et.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${et.getShaderInfoLog(pt)}`);et.attachShader(this.program,pt),this.attributes={};let Ht={};this.numAttributes=ir.length;for(let nr=0;nr({u_depth:new a.aH(nr,fr.u_depth),u_terrain:new a.aH(nr,fr.u_terrain),u_terrain_dim:new a.aI(nr,fr.u_terrain_dim),u_terrain_matrix:new a.aJ(nr,fr.u_terrain_matrix),u_terrain_unpack:new a.aK(nr,fr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(nr,fr.u_terrain_exaggeration)}))(w,Ht),this.binderUniforms=Q?Q.getUniforms(w,Ht):[]}draw(w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt){let tt=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(Q),w.setStencilMode(ee),w.setColorMode(ue),w.setCullFace(Ge),mt){w.activeTexture.set(tt.TEXTURE2),tt.bindTexture(tt.TEXTURE_2D,mt.depthTexture),w.activeTexture.set(tt.TEXTURE3),tt.bindTexture(tt.TEXTURE_2D,mt.texture);for(let Ht in this.terrainUniforms)this.terrainUniforms[Ht].set(mt[Ht])}for(let Ht in this.fixedUniforms)this.fixedUniforms[Ht].set(et[Ht]);Se&&Se.setUniforms(w,this.binderUniforms,Vr,{zoom:he});let pt=0;switch(q){case tt.LINES:pt=2;break;case tt.TRIANGLES:pt=3;break;case tt.LINE_STRIP:pt=1}for(let Ht of kr.get()){let nr=Ht.vaos||(Ht.vaos={});(nr[Ft]||(nr[Ft]=new tr)).bind(w,this,ir,Se?Se.getPaintVertexBuffers():[],or,Ht.vertexOffset,qe,He,lt),tt.drawElements(q,Ht.primitiveLength*pt,tt.UNSIGNED_SHORT,Ht.primitiveOffset*pt*2)}}}function Ai(le,w,q){let Q=1/Di(q,1,w.transform.tileZoom),ee=Math.pow(2,q.tileID.overscaledZ),ue=q.tileSize*Math.pow(2,w.transform.tileZoom)/ee,Ge=ue*(q.tileID.canonical.x+q.tileID.wrap*ee),et=ue*q.tileID.canonical.y;return{u_image:0,u_texsize:q.imageAtlasTexture.size,u_scale:[Q,le.fromScale,le.toScale],u_fade:le.t,u_pixel_coord_upper:[Ge>>16,et>>16],u_pixel_coord_lower:[65535&Ge,65535&et]}}let Qi=(le,w,q,Q)=>{let ee=w.style.light,ue=ee.properties.get("position"),Ge=[ue.x,ue.y,ue.z],et=function(){var Ft=new a.A(9);return a.A!=Float32Array&&(Ft[1]=0,Ft[2]=0,Ft[3]=0,Ft[5]=0,Ft[6]=0,Ft[7]=0),Ft[0]=1,Ft[4]=1,Ft[8]=1,Ft}();ee.properties.get("anchor")==="viewport"&&function(Ft,ir){var or=Math.sin(ir),kr=Math.cos(ir);Ft[0]=kr,Ft[1]=or,Ft[2]=0,Ft[3]=-or,Ft[4]=kr,Ft[5]=0,Ft[6]=0,Ft[7]=0,Ft[8]=1}(et,-w.transform.angle),function(Ft,ir,or){var kr=ir[0],Vr=ir[1],he=ir[2];Ft[0]=kr*or[0]+Vr*or[3]+he*or[6],Ft[1]=kr*or[1]+Vr*or[4]+he*or[7],Ft[2]=kr*or[2]+Vr*or[5]+he*or[8]}(Ge,Ge,et);let mt=ee.properties.get("color");return{u_matrix:le,u_lightpos:Ge,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[mt.r,mt.g,mt.b],u_vertical_gradient:+q,u_opacity:Q}},ni=(le,w,q,Q,ee,ue,Ge)=>a.e(Qi(le,w,q,Q),Ai(ue,w,Ge),{u_height_factor:-Math.pow(2,ee.overscaledZ)/Ge.tileSize/8}),Zi=le=>({u_matrix:le}),aa=(le,w,q,Q)=>a.e(Zi(le),Ai(q,w,Q)),Mn=(le,w)=>({u_matrix:le,u_world:w}),Un=(le,w,q,Q,ee)=>a.e(aa(le,w,q,Q),{u_world:ee}),Ga=(le,w,q,Q)=>{let ee=le.transform,ue,Ge;if(Q.paint.get("circle-pitch-alignment")==="map"){let et=Di(q,1,ee.zoom);ue=!0,Ge=[et,et]}else ue=!1,Ge=ee.pixelsToGLUnits;return{u_camera_to_center_distance:ee.cameraToCenterDistance,u_scale_with_map:+(Q.paint.get("circle-pitch-scale")==="map"),u_matrix:le.translatePosMatrix(w.posMatrix,q,Q.paint.get("circle-translate"),Q.paint.get("circle-translate-anchor")),u_pitch_with_map:+ue,u_device_pixel_ratio:le.pixelRatio,u_extrude_scale:Ge}},ma=(le,w,q)=>({u_matrix:le,u_inv_matrix:w,u_camera_to_center_distance:q.cameraToCenterDistance,u_viewport_size:[q.width,q.height]}),oa=(le,w,q=1)=>({u_matrix:le,u_color:w,u_overlay:0,u_overlay_scale:q}),ka=le=>({u_matrix:le}),so=(le,w,q,Q)=>({u_matrix:le,u_extrude_scale:Di(w,1,q),u_intensity:Q}),Kr=(le,w,q,Q)=>{let ee=a.H();a.aP(ee,0,le.width,le.height,0,0,1);let ue=le.context.gl;return{u_matrix:ee,u_world:[ue.drawingBufferWidth,ue.drawingBufferHeight],u_image:q,u_color_ramp:Q,u_opacity:w.paint.get("heatmap-opacity")}};function Ia(le,w){let q=Math.pow(2,w.canonical.z),Q=w.canonical.y;return[new a.Z(0,Q/q).toLngLat().lat,new a.Z(0,(Q+1)/q).toLngLat().lat]}let Yo=(le,w,q,Q)=>{let ee=le.transform;return{u_matrix:uo(le,w,q,Q),u_ratio:1/Di(w,1,ee.zoom),u_device_pixel_ratio:le.pixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},fa=(le,w,q,Q,ee)=>a.e(Yo(le,w,q,ee),{u_image:0,u_image_height:Q}),kn=(le,w,q,Q,ee)=>{let ue=le.transform,Ge=ys(w,ue);return{u_matrix:uo(le,w,q,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/Di(w,1,ue.zoom),u_device_pixel_ratio:le.pixelRatio,u_image:0,u_scale:[Ge,Q.fromScale,Q.toScale],u_fade:Q.t,u_units_to_pixels:[1/ue.pixelsToGLUnits[0],1/ue.pixelsToGLUnits[1]]}},Ta=(le,w,q,Q,ee,ue)=>{let Ge=le.lineAtlas,et=ys(w,le.transform),mt=q.layout.get("line-cap")==="round",Ft=Ge.getDash(Q.from,mt),ir=Ge.getDash(Q.to,mt),or=Ft.width*ee.fromScale,kr=ir.width*ee.toScale;return a.e(Yo(le,w,q,ue),{u_patternscale_a:[et/or,-Ft.height/2],u_patternscale_b:[et/kr,-ir.height/2],u_sdfgamma:Ge.width/(256*Math.min(or,kr)*le.pixelRatio)/2,u_image:0,u_tex_y_a:Ft.y,u_tex_y_b:ir.y,u_mix:ee.t})};function ys(le,w){return 1/Di(le,1,w.tileZoom)}function uo(le,w,q,Q){return le.translatePosMatrix(Q?Q.posMatrix:w.tileID.posMatrix,w,q.paint.get("line-translate"),q.paint.get("line-translate-anchor"))}let ls=(le,w,q,Q,ee)=>{return{u_matrix:le,u_tl_parent:w,u_scale_parent:q,u_buffer_scale:1,u_fade_t:Q.mix,u_opacity:Q.opacity*ee.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ee.paint.get("raster-brightness-min"),u_brightness_high:ee.paint.get("raster-brightness-max"),u_saturation_factor:(Ge=ee.paint.get("raster-saturation"),Ge>0?1-1/(1.001-Ge):-Ge),u_contrast_factor:(ue=ee.paint.get("raster-contrast"),ue>0?1/(1-ue):1+ue),u_spin_weights:$a(ee.paint.get("raster-hue-rotate"))};var ue,Ge};function $a(le){le*=Math.PI/180;let w=Math.sin(le),q=Math.cos(le);return[(2*q+1)/3,(-Math.sqrt(3)*w-q+1)/3,(Math.sqrt(3)*w-q+1)/3]}let fo=(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr)=>{let he=Ge.transform;return{u_is_size_zoom_constant:+(le==="constant"||le==="source"),u_is_size_feature_constant:+(le==="constant"||le==="camera"),u_size_t:w?w.uSizeT:0,u_size:w?w.uSize:0,u_camera_to_center_distance:he.cameraToCenterDistance,u_pitch:he.pitch/360*2*Math.PI,u_rotate_symbol:+q,u_aspect_ratio:he.width/he.height,u_fade_change:Ge.options.fadeDuration?Ge.symbolFadeChange:1,u_matrix:et,u_label_plane_matrix:mt,u_coord_matrix:Ft,u_is_text:+or,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:ue,u_texsize:kr,u_texture:0,u_translation:ir,u_pitched_scale:Vr}},mn=(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he)=>{let Se=Ge.transform;return a.e(fo(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,he),{u_gamma_scale:Q?Math.cos(Se._pitch)*Se.cameraToCenterDistance:1,u_device_pixel_ratio:Ge.pixelRatio,u_is_halo:+Vr})},ra=(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr)=>a.e(mn(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,!0,or,!0,Vr),{u_texsize_icon:kr,u_texture_icon:1}),wa=(le,w,q)=>({u_matrix:le,u_opacity:w,u_color:q}),ws=(le,w,q,Q,ee,ue)=>a.e(function(Ge,et,mt,Ft){let ir=mt.imageManager.getPattern(Ge.from.toString()),or=mt.imageManager.getPattern(Ge.to.toString()),{width:kr,height:Vr}=mt.imageManager.getPixelSize(),he=Math.pow(2,Ft.tileID.overscaledZ),Se=Ft.tileSize*Math.pow(2,mt.transform.tileZoom)/he,qe=Se*(Ft.tileID.canonical.x+Ft.tileID.wrap*he),He=Se*Ft.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ir.tl,u_pattern_br_a:ir.br,u_pattern_tl_b:or.tl,u_pattern_br_b:or.br,u_texsize:[kr,Vr],u_mix:et.t,u_pattern_size_a:ir.displaySize,u_pattern_size_b:or.displaySize,u_scale_a:et.fromScale,u_scale_b:et.toScale,u_tile_units_to_pixels:1/Di(Ft,1,mt.transform.tileZoom),u_pixel_coord_upper:[qe>>16,He>>16],u_pixel_coord_lower:[65535&qe,65535&He]}}(Q,ue,q,ee),{u_matrix:le,u_opacity:w}),Co={fillExtrusion:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_lightpos:new a.aN(le,w.u_lightpos),u_lightintensity:new a.aI(le,w.u_lightintensity),u_lightcolor:new a.aN(le,w.u_lightcolor),u_vertical_gradient:new a.aI(le,w.u_vertical_gradient),u_opacity:new a.aI(le,w.u_opacity)}),fillExtrusionPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_lightpos:new a.aN(le,w.u_lightpos),u_lightintensity:new a.aI(le,w.u_lightintensity),u_lightcolor:new a.aN(le,w.u_lightcolor),u_vertical_gradient:new a.aI(le,w.u_vertical_gradient),u_height_factor:new a.aI(le,w.u_height_factor),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade),u_opacity:new a.aI(le,w.u_opacity)}),fill:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix)}),fillPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),fillOutline:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world)}),fillOutlinePattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),circle:(le,w)=>({u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(le,w.u_scale_with_map),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_extrude_scale:new a.aO(le,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_matrix:new a.aJ(le,w.u_matrix)}),collisionBox:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_pixel_extrude_scale:new a.aO(le,w.u_pixel_extrude_scale)}),collisionCircle:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_inv_matrix:new a.aJ(le,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_viewport_size:new a.aO(le,w.u_viewport_size)}),debug:(le,w)=>({u_color:new a.aL(le,w.u_color),u_matrix:new a.aJ(le,w.u_matrix),u_overlay:new a.aH(le,w.u_overlay),u_overlay_scale:new a.aI(le,w.u_overlay_scale)}),clippingMask:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix)}),heatmap:(le,w)=>({u_extrude_scale:new a.aI(le,w.u_extrude_scale),u_intensity:new a.aI(le,w.u_intensity),u_matrix:new a.aJ(le,w.u_matrix)}),heatmapTexture:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world),u_image:new a.aH(le,w.u_image),u_color_ramp:new a.aH(le,w.u_color_ramp),u_opacity:new a.aI(le,w.u_opacity)}),hillshade:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_latrange:new a.aO(le,w.u_latrange),u_light:new a.aO(le,w.u_light),u_shadow:new a.aL(le,w.u_shadow),u_highlight:new a.aL(le,w.u_highlight),u_accent:new a.aL(le,w.u_accent)}),hillshadePrepare:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_dimension:new a.aO(le,w.u_dimension),u_zoom:new a.aI(le,w.u_zoom),u_unpack:new a.aK(le,w.u_unpack)}),line:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels)}),lineGradient:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_image:new a.aH(le,w.u_image),u_image_height:new a.aI(le,w.u_image_height)}),linePattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texsize:new a.aO(le,w.u_texsize),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_image:new a.aH(le,w.u_image),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),lineSDF:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_patternscale_a:new a.aO(le,w.u_patternscale_a),u_patternscale_b:new a.aO(le,w.u_patternscale_b),u_sdfgamma:new a.aI(le,w.u_sdfgamma),u_image:new a.aH(le,w.u_image),u_tex_y_a:new a.aI(le,w.u_tex_y_a),u_tex_y_b:new a.aI(le,w.u_tex_y_b),u_mix:new a.aI(le,w.u_mix)}),raster:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_tl_parent:new a.aO(le,w.u_tl_parent),u_scale_parent:new a.aI(le,w.u_scale_parent),u_buffer_scale:new a.aI(le,w.u_buffer_scale),u_fade_t:new a.aI(le,w.u_fade_t),u_opacity:new a.aI(le,w.u_opacity),u_image0:new a.aH(le,w.u_image0),u_image1:new a.aH(le,w.u_image1),u_brightness_low:new a.aI(le,w.u_brightness_low),u_brightness_high:new a.aI(le,w.u_brightness_high),u_saturation_factor:new a.aI(le,w.u_saturation_factor),u_contrast_factor:new a.aI(le,w.u_contrast_factor),u_spin_weights:new a.aN(le,w.u_spin_weights)}),symbolIcon:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texture:new a.aH(le,w.u_texture),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),symbolSDF:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texture:new a.aH(le,w.u_texture),u_gamma_scale:new a.aI(le,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_is_halo:new a.aH(le,w.u_is_halo),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),symbolTextAndIcon:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texsize_icon:new a.aO(le,w.u_texsize_icon),u_texture:new a.aH(le,w.u_texture),u_texture_icon:new a.aH(le,w.u_texture_icon),u_gamma_scale:new a.aI(le,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_is_halo:new a.aH(le,w.u_is_halo),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),background:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_opacity:new a.aI(le,w.u_opacity),u_color:new a.aL(le,w.u_color)}),backgroundPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_opacity:new a.aI(le,w.u_opacity),u_image:new a.aH(le,w.u_image),u_pattern_tl_a:new a.aO(le,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(le,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(le,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(le,w.u_pattern_br_b),u_texsize:new a.aO(le,w.u_texsize),u_mix:new a.aI(le,w.u_mix),u_pattern_size_a:new a.aO(le,w.u_pattern_size_a),u_pattern_size_b:new a.aO(le,w.u_pattern_size_b),u_scale_a:new a.aI(le,w.u_scale_a),u_scale_b:new a.aI(le,w.u_scale_b),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(le,w.u_tile_units_to_pixels)}),terrain:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texture:new a.aH(le,w.u_texture),u_ele_delta:new a.aI(le,w.u_ele_delta),u_fog_matrix:new a.aJ(le,w.u_fog_matrix),u_fog_color:new a.aL(le,w.u_fog_color),u_fog_ground_blend:new a.aI(le,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(le,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(le,w.u_horizon_color),u_horizon_fog_blend:new a.aI(le,w.u_horizon_fog_blend)}),terrainDepth:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ele_delta:new a.aI(le,w.u_ele_delta)}),terrainCoords:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texture:new a.aH(le,w.u_texture),u_terrain_coords_id:new a.aI(le,w.u_terrain_coords_id),u_ele_delta:new a.aI(le,w.u_ele_delta)}),sky:(le,w)=>({u_sky_color:new a.aL(le,w.u_sky_color),u_horizon_color:new a.aL(le,w.u_horizon_color),u_horizon:new a.aI(le,w.u_horizon),u_sky_horizon_blend:new a.aI(le,w.u_sky_horizon_blend)})};class Po{constructor(w,q,Q){this.context=w;let ee=w.gl;this.buffer=ee.createBuffer(),this.dynamicDraw=!!Q,this.context.unbindVAO(),w.bindElementBuffer.set(this.buffer),ee.bufferData(ee.ELEMENT_ARRAY_BUFFER,q.arrayBuffer,this.dynamicDraw?ee.DYNAMIC_DRAW:ee.STATIC_DRAW),this.dynamicDraw||delete q.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(w){let q=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),q.bufferSubData(q.ELEMENT_ARRAY_BUFFER,0,w.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let ji={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class gn{constructor(w,q,Q,ee){this.length=q.length,this.attributes=Q,this.itemSize=q.bytesPerElement,this.dynamicDraw=ee,this.context=w;let ue=w.gl;this.buffer=ue.createBuffer(),w.bindVertexBuffer.set(this.buffer),ue.bufferData(ue.ARRAY_BUFFER,q.arrayBuffer,this.dynamicDraw?ue.DYNAMIC_DRAW:ue.STATIC_DRAW),this.dynamicDraw||delete q.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(w){if(w.length!==this.length)throw new Error(`Length of new data is ${w.length}, which doesn't match current length of ${this.length}`);let q=this.context.gl;this.bind(),q.bufferSubData(q.ARRAY_BUFFER,0,w.arrayBuffer)}enableAttributes(w,q){for(let Q=0;Q0){let nr=a.H();a.aQ(nr,tt.placementInvProjMatrix,le.transform.glCoordMatrix),a.aQ(nr,nr,tt.placementViewportMatrix),mt.push({circleArray:Ht,circleOffset:ir,transform:lt.posMatrix,invTransform:nr,coord:lt}),Ft+=Ht.length/4,ir=Ft}pt&&et.draw(ue,Ge.LINES,sa.disabled,Na.disabled,le.colorModeForRenderPass(),tn.disabled,{u_matrix:lt.posMatrix,u_pixel_extrude_scale:[1/(or=le.transform).width,1/or.height]},le.style.map.terrain&&le.style.map.terrain.getTerrainData(lt),q.id,pt.layoutVertexBuffer,pt.indexBuffer,pt.segments,null,le.transform.zoom,null,null,pt.collisionVertexBuffer)}var or;if(!ee||!mt.length)return;let kr=le.useProgram("collisionCircle"),Vr=new a.aR;Vr.resize(4*Ft),Vr._trim();let he=0;for(let He of mt)for(let lt=0;lt=0&&(He[tt.associatedIconIndex]={shiftedAnchor:Fo,angle:vl})}else Dr(tt.numGlyphs,Se)}if(Ft){qe.clear();let lt=le.icon.placedSymbolArray;for(let tt=0;ttle.style.map.terrain.getElevation(si,_t,cr):null,jt=q.layout.get("text-rotation-alignment")==="map";Re(hn,si.posMatrix,le,ee,Qu,ju,He,Ft,jt,Se,si.toUnwrapped(),he.width,he.height,Xu,ot)}let ef=si.posMatrix,tf=ee&&Ar||xf,Z=lt||tf?yo:Qu,se=Ju,ze=Ua&&q.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Xe;Xe=Ua?hn.iconsInText?ra(Fo.kind,ml,tt,He,lt,tf,le,ef,Z,se,Xu,Sl,Pu,ri):mn(Fo.kind,ml,tt,He,lt,tf,le,ef,Z,se,Xu,ee,Sl,!0,ri):fo(Fo.kind,ml,tt,He,lt,tf,le,ef,Z,se,Xu,ee,Sl,ri);let Qe={program:Us,buffers:Zn,uniformValues:Xe,atlasTexture:Yl,atlasTextureIcon:iu,atlasInterpolation:Ol,atlasInterpolationIcon:ou,isSDF:Ua,hasHalo:ze};if(Ht&&hn.canOverlap){nr=!0;let ot=Zn.segments.get();for(let jt of ot)Rr.push({segments:new a.a0([jt]),sortKey:jt.sortKey,state:Qe,terrainData:au})}else Rr.push({segments:Zn.segments,sortKey:0,state:Qe,terrainData:au})}nr&&Rr.sort((si,Mi)=>si.sortKey-Mi.sortKey);for(let si of Rr){let Mi=si.state;if(kr.activeTexture.set(Vr.TEXTURE0),Mi.atlasTexture.bind(Mi.atlasInterpolation,Vr.CLAMP_TO_EDGE),Mi.atlasTextureIcon&&(kr.activeTexture.set(Vr.TEXTURE1),Mi.atlasTextureIcon&&Mi.atlasTextureIcon.bind(Mi.atlasInterpolationIcon,Vr.CLAMP_TO_EDGE)),Mi.isSDF){let hn=Mi.uniformValues;Mi.hasHalo&&(hn.u_is_halo=1,Ca(Mi.buffers,si.segments,q,le,Mi.program,fr,ir,or,hn,si.terrainData)),hn.u_is_halo=0}Ca(Mi.buffers,si.segments,q,le,Mi.program,fr,ir,or,Mi.uniformValues,si.terrainData)}}function Ca(le,w,q,Q,ee,ue,Ge,et,mt,Ft){let ir=Q.context;ee.draw(ir,ir.gl.TRIANGLES,ue,Ge,et,tn.disabled,mt,Ft,q.id,le.layoutVertexBuffer,le.indexBuffer,w,q.paint,Q.transform.zoom,le.programConfigurations.get(q.id),le.dynamicLayoutVertexBuffer,le.opacityVertexBuffer)}function Es(le,w,q,Q){let ee=le.context,ue=ee.gl,Ge=Na.disabled,et=new lo([ue.ONE,ue.ONE],a.aM.transparent,[!0,!0,!0,!0]),mt=w.getBucket(q);if(!mt)return;let Ft=Q.key,ir=q.heatmapFbos.get(Ft);ir||(ir=Ho(ee,w.tileSize,w.tileSize),q.heatmapFbos.set(Ft,ir)),ee.bindFramebuffer.set(ir.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let or=mt.programConfigurations.get(q.id),kr=le.useProgram("heatmap",or),Vr=le.style.map.terrain.getTerrainData(Q);kr.draw(ee,ue.TRIANGLES,sa.disabled,Ge,et,tn.disabled,so(Q.posMatrix,w,le.transform.zoom,q.paint.get("heatmap-intensity")),Vr,q.id,mt.layoutVertexBuffer,mt.indexBuffer,mt.segments,q.paint,le.transform.zoom,or)}function Ts(le,w,q){let Q=le.context,ee=Q.gl;Q.setColorMode(le.colorModeForRenderPass());let ue=Wa(Q,w),Ge=q.key,et=w.heatmapFbos.get(Ge);et&&(Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,et.colorAttachment.get()),Q.activeTexture.set(ee.TEXTURE1),ue.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),le.useProgram("heatmapTexture").draw(Q,ee.TRIANGLES,sa.disabled,Na.disabled,le.colorModeForRenderPass(),tn.disabled,Kr(le,w,0,1),null,w.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments,w.paint,le.transform.zoom),et.destroy(),w.heatmapFbos.delete(Ge))}function Ho(le,w,q){var Q,ee;let ue=le.gl,Ge=ue.createTexture();ue.bindTexture(ue.TEXTURE_2D,Ge),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_S,ue.CLAMP_TO_EDGE),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_T,ue.CLAMP_TO_EDGE),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MIN_FILTER,ue.LINEAR),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MAG_FILTER,ue.LINEAR);let et=(Q=le.HALF_FLOAT)!==null&&Q!==void 0?Q:ue.UNSIGNED_BYTE,mt=(ee=le.RGBA16F)!==null&&ee!==void 0?ee:ue.RGBA;ue.texImage2D(ue.TEXTURE_2D,0,mt,w,q,0,ue.RGBA,et,null);let Ft=le.createFramebuffer(w,q,!1,!1);return Ft.colorAttachment.set(Ge),Ft}function Wa(le,w){return w.colorRampTexture||(w.colorRampTexture=new m(le,w.colorRamp,le.gl.RGBA)),w.colorRampTexture}function To(le,w,q,Q,ee){if(!q||!Q||!Q.imageAtlas)return;let ue=Q.imageAtlas.patternPositions,Ge=ue[q.to.toString()],et=ue[q.from.toString()];if(!Ge&&et&&(Ge=et),!et&&Ge&&(et=Ge),!Ge||!et){let mt=ee.getPaintProperty(w);Ge=ue[mt],et=ue[mt]}Ge&&et&&le.setConstantPatternPositions(Ge,et)}function ts(le,w,q,Q,ee,ue,Ge){let et=le.context.gl,mt="fill-pattern",Ft=q.paint.get(mt),ir=Ft&&Ft.constantOr(1),or=q.getCrossfadeParameters(),kr,Vr,he,Se,qe;Ge?(Vr=ir&&!q.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",kr=et.LINES):(Vr=ir?"fillPattern":"fill",kr=et.TRIANGLES);let He=Ft.constantOr(null);for(let lt of Q){let tt=w.getTile(lt);if(ir&&!tt.patternsLoaded())continue;let pt=tt.getBucket(q);if(!pt)continue;let Ht=pt.programConfigurations.get(q.id),nr=le.useProgram(Vr,Ht),fr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(lt);ir&&(le.context.activeTexture.set(et.TEXTURE0),tt.imageAtlasTexture.bind(et.LINEAR,et.CLAMP_TO_EDGE),Ht.updatePaintBuffers(or)),To(Ht,mt,He,tt,q);let Ar=fr?lt:null,Rr=le.translatePosMatrix(Ar?Ar.posMatrix:lt.posMatrix,tt,q.paint.get("fill-translate"),q.paint.get("fill-translate-anchor"));if(Ge){Se=pt.indexBuffer2,qe=pt.segments2;let ri=[et.drawingBufferWidth,et.drawingBufferHeight];he=Vr==="fillOutlinePattern"&&ir?Un(Rr,le,or,tt,ri):Mn(Rr,ri)}else Se=pt.indexBuffer,qe=pt.segments,he=ir?aa(Rr,le,or,tt):Zi(Rr);nr.draw(le.context,kr,ee,le.stencilModeForClipping(lt),ue,tn.disabled,he,fr,q.id,pt.layoutVertexBuffer,Se,qe,q.paint,le.transform.zoom,Ht)}}function Wo(le,w,q,Q,ee,ue,Ge){let et=le.context,mt=et.gl,Ft="fill-extrusion-pattern",ir=q.paint.get(Ft),or=ir.constantOr(1),kr=q.getCrossfadeParameters(),Vr=q.paint.get("fill-extrusion-opacity"),he=ir.constantOr(null);for(let Se of Q){let qe=w.getTile(Se),He=qe.getBucket(q);if(!He)continue;let lt=le.style.map.terrain&&le.style.map.terrain.getTerrainData(Se),tt=He.programConfigurations.get(q.id),pt=le.useProgram(or?"fillExtrusionPattern":"fillExtrusion",tt);or&&(le.context.activeTexture.set(mt.TEXTURE0),qe.imageAtlasTexture.bind(mt.LINEAR,mt.CLAMP_TO_EDGE),tt.updatePaintBuffers(kr)),To(tt,Ft,he,qe,q);let Ht=le.translatePosMatrix(Se.posMatrix,qe,q.paint.get("fill-extrusion-translate"),q.paint.get("fill-extrusion-translate-anchor")),nr=q.paint.get("fill-extrusion-vertical-gradient"),fr=or?ni(Ht,le,nr,Vr,Se,kr,qe):Qi(Ht,le,nr,Vr);pt.draw(et,et.gl.TRIANGLES,ee,ue,Ge,tn.backCCW,fr,lt,q.id,He.layoutVertexBuffer,He.indexBuffer,He.segments,q.paint,le.transform.zoom,tt,le.style.map.terrain&&He.centroidVertexBuffer)}}function qa(le,w,q,Q,ee,ue,Ge){let et=le.context,mt=et.gl,Ft=q.fbo;if(!Ft)return;let ir=le.useProgram("hillshade"),or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(w);et.activeTexture.set(mt.TEXTURE0),mt.bindTexture(mt.TEXTURE_2D,Ft.colorAttachment.get()),ir.draw(et,mt.TRIANGLES,ee,ue,Ge,tn.disabled,((kr,Vr,he,Se)=>{let qe=he.paint.get("hillshade-shadow-color"),He=he.paint.get("hillshade-highlight-color"),lt=he.paint.get("hillshade-accent-color"),tt=he.paint.get("hillshade-illumination-direction")*(Math.PI/180);he.paint.get("hillshade-illumination-anchor")==="viewport"&&(tt-=kr.transform.angle);let pt=!kr.options.moving;return{u_matrix:Se?Se.posMatrix:kr.transform.calculatePosMatrix(Vr.tileID.toUnwrapped(),pt),u_image:0,u_latrange:Ia(0,Vr.tileID),u_light:[he.paint.get("hillshade-exaggeration"),tt],u_shadow:qe,u_highlight:He,u_accent:lt}})(le,q,Q,or?w:null),or,Q.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments)}function ln(le,w,q,Q,ee,ue){let Ge=le.context,et=Ge.gl,mt=w.dem;if(mt&&mt.data){let Ft=mt.dim,ir=mt.stride,or=mt.getPixels();if(Ge.activeTexture.set(et.TEXTURE1),Ge.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||le.getTileTexture(ir),w.demTexture){let Vr=w.demTexture;Vr.update(or,{premultiply:!1}),Vr.bind(et.NEAREST,et.CLAMP_TO_EDGE)}else w.demTexture=new m(Ge,or,et.RGBA,{premultiply:!1}),w.demTexture.bind(et.NEAREST,et.CLAMP_TO_EDGE);Ge.activeTexture.set(et.TEXTURE0);let kr=w.fbo;if(!kr){let Vr=new m(Ge,{width:Ft,height:Ft,data:null},et.RGBA);Vr.bind(et.LINEAR,et.CLAMP_TO_EDGE),kr=w.fbo=Ge.createFramebuffer(Ft,Ft,!0,!1),kr.colorAttachment.set(Vr.texture)}Ge.bindFramebuffer.set(kr.framebuffer),Ge.viewport.set([0,0,Ft,Ft]),le.useProgram("hillshadePrepare").draw(Ge,et.TRIANGLES,Q,ee,ue,tn.disabled,((Vr,he)=>{let Se=he.stride,qe=a.H();return a.aP(qe,0,a.X,-a.X,0,0,1),a.J(qe,qe,[0,-a.X,0]),{u_matrix:qe,u_image:1,u_dimension:[Se,Se],u_zoom:Vr.overscaledZ,u_unpack:he.getUnpackVector()}})(w.tileID,mt),null,q.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Bo(le,w,q,Q,ee,ue){let Ge=Q.paint.get("raster-fade-duration");if(!ue&&Ge>0){let et=l.now(),mt=(et-le.timeAdded)/Ge,Ft=w?(et-w.timeAdded)/Ge:-1,ir=q.getSource(),or=ee.coveringZoomLevel({tileSize:ir.tileSize,roundZoom:ir.roundZoom}),kr=!w||Math.abs(w.tileID.overscaledZ-or)>Math.abs(le.tileID.overscaledZ-or),Vr=kr&&le.refreshedUponExpiration?1:a.ac(kr?mt:1-Ft,0,1);return le.refreshedUponExpiration&&mt>=1&&(le.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Vr}:{opacity:Vr,mix:0}}return{opacity:1,mix:0}}let ko=new a.aM(1,0,0,1),oo=new a.aM(0,1,0,1),za=new a.aM(0,0,1,1),ea=new a.aM(1,0,1,1),rs=new a.aM(0,1,1,1);function $s(le,w,q,Q){Ds(le,0,w+q/2,le.transform.width,q,Q)}function us(le,w,q,Q){Ds(le,w-q/2,0,q,le.transform.height,Q)}function Ds(le,w,q,Q,ee,ue){let Ge=le.context,et=Ge.gl;et.enable(et.SCISSOR_TEST),et.scissor(w*le.pixelRatio,q*le.pixelRatio,Q*le.pixelRatio,ee*le.pixelRatio),Ge.clear({color:ue}),et.disable(et.SCISSOR_TEST)}function fl(le,w,q){let Q=le.context,ee=Q.gl,ue=q.posMatrix,Ge=le.useProgram("debug"),et=sa.disabled,mt=Na.disabled,Ft=le.colorModeForRenderPass(),ir="$debug",or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(q);Q.activeTexture.set(ee.TEXTURE0);let kr=w.getTileByID(q.key).latestRawTileData,Vr=Math.floor((kr&&kr.byteLength||0)/1024),he=w.getTile(q).tileSize,Se=512/Math.min(he,512)*(q.overscaledZ/le.transform.zoom)*.5,qe=q.canonical.toString();q.overscaledZ!==q.canonical.z&&(qe+=` => ${q.overscaledZ}`),function(He,lt){He.initDebugOverlayCanvas();let tt=He.debugOverlayCanvas,pt=He.context.gl,Ht=He.debugOverlayCanvas.getContext("2d");Ht.clearRect(0,0,tt.width,tt.height),Ht.shadowColor="white",Ht.shadowBlur=2,Ht.lineWidth=1.5,Ht.strokeStyle="white",Ht.textBaseline="top",Ht.font="bold 36px Open Sans, sans-serif",Ht.fillText(lt,5,5),Ht.strokeText(lt,5,5),He.debugOverlayTexture.update(tt),He.debugOverlayTexture.bind(pt.LINEAR,pt.CLAMP_TO_EDGE)}(le,`${qe} ${Vr}kB`),Ge.draw(Q,ee.TRIANGLES,et,mt,lo.alphaBlended,tn.disabled,oa(ue,a.aM.transparent,Se),null,ir,le.debugBuffer,le.quadTriangleIndexBuffer,le.debugSegments),Ge.draw(Q,ee.LINE_STRIP,et,mt,Ft,tn.disabled,oa(ue,a.aM.red),or,ir,le.debugBuffer,le.tileBorderIndexBuffer,le.debugSegments)}function as(le,w,q){let Q=le.context,ee=Q.gl,ue=le.colorModeForRenderPass(),Ge=new sa(ee.LEQUAL,sa.ReadWrite,le.depthRangeFor3D),et=le.useProgram("terrain"),mt=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,le.width,le.height]);for(let Ft of q){let ir=le.renderToTexture.getTexture(Ft),or=w.getTerrainData(Ft.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,ir.texture);let kr=le.transform.calculatePosMatrix(Ft.tileID.toUnwrapped()),Vr=w.getMeshFrameDelta(le.transform.zoom),he=le.transform.calculateFogMatrix(Ft.tileID.toUnwrapped()),Se=pr(kr,Vr,he,le.style.sky,le.transform.pitch);et.draw(Q,ee.TRIANGLES,Ge,Na.disabled,ue,tn.backCCW,Se,or,"terrain",mt.vertexBuffer,mt.indexBuffer,mt.segments)}}class Ma{constructor(w,q,Q){this.vertexBuffer=w,this.indexBuffer=q,this.segments=Q}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class Qs{constructor(w,q){this.context=new eo(w),this.transform=q,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:a.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=rt.maxUnderzooming+rt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new rn}resize(w,q,Q){if(this.width=Math.floor(w*Q),this.height=Math.floor(q*Q),this.pixelRatio=Q,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let ee of this.style._order)this.style._layers[ee].resize()}setup(){let w=this.context,q=new a.aX;q.emplaceBack(0,0),q.emplaceBack(a.X,0),q.emplaceBack(0,a.X),q.emplaceBack(a.X,a.X),this.tileExtentBuffer=w.createVertexBuffer(q,xi.members),this.tileExtentSegments=a.a0.simpleSegment(0,0,4,2);let Q=new a.aX;Q.emplaceBack(0,0),Q.emplaceBack(a.X,0),Q.emplaceBack(0,a.X),Q.emplaceBack(a.X,a.X),this.debugBuffer=w.createVertexBuffer(Q,xi.members),this.debugSegments=a.a0.simpleSegment(0,0,4,5);let ee=new a.$;ee.emplaceBack(0,0,0,0),ee.emplaceBack(a.X,0,a.X,0),ee.emplaceBack(0,a.X,0,a.X),ee.emplaceBack(a.X,a.X,a.X,a.X),this.rasterBoundsBuffer=w.createVertexBuffer(ee,Ye.members),this.rasterBoundsSegments=a.a0.simpleSegment(0,0,4,2);let ue=new a.aX;ue.emplaceBack(0,0),ue.emplaceBack(1,0),ue.emplaceBack(0,1),ue.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(ue,xi.members),this.viewportSegments=a.a0.simpleSegment(0,0,4,2);let Ge=new a.aZ;Ge.emplaceBack(0),Ge.emplaceBack(1),Ge.emplaceBack(3),Ge.emplaceBack(2),Ge.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(Ge);let et=new a.aY;et.emplaceBack(0,1,2),et.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(et);let mt=this.context.gl;this.stencilClearMode=new Na({func:mt.ALWAYS,mask:0},0,255,mt.ZERO,mt.ZERO,mt.ZERO)}clearStencil(){let w=this.context,q=w.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let Q=a.H();a.aP(Q,0,this.width,this.height,0,0,1),a.K(Q,Q,[q.drawingBufferWidth,q.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(w,q.TRIANGLES,sa.disabled,this.stencilClearMode,lo.disabled,tn.disabled,ka(Q),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(w,q){if(this.currentStencilSource===w.source||!w.isTileClipped()||!q||!q.length)return;this.currentStencilSource=w.source;let Q=this.context,ee=Q.gl;this.nextStencilID+q.length>256&&this.clearStencil(),Q.setColorMode(lo.disabled),Q.setDepthMode(sa.disabled);let ue=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let Ge of q){let et=this._tileClippingMaskIDs[Ge.key]=this.nextStencilID++,mt=this.style.map.terrain&&this.style.map.terrain.getTerrainData(Ge);ue.draw(Q,ee.TRIANGLES,sa.disabled,new Na({func:ee.ALWAYS,mask:0},et,255,ee.KEEP,ee.KEEP,ee.REPLACE),lo.disabled,tn.disabled,ka(Ge.posMatrix),mt,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let w=this.nextStencilID++,q=this.context.gl;return new Na({func:q.NOTEQUAL,mask:255},w,255,q.KEEP,q.KEEP,q.REPLACE)}stencilModeForClipping(w){let q=this.context.gl;return new Na({func:q.EQUAL,mask:255},this._tileClippingMaskIDs[w.key],0,q.KEEP,q.KEEP,q.REPLACE)}stencilConfigForOverlap(w){let q=this.context.gl,Q=w.sort((Ge,et)=>et.overscaledZ-Ge.overscaledZ),ee=Q[Q.length-1].overscaledZ,ue=Q[0].overscaledZ-ee+1;if(ue>1){this.currentStencilSource=void 0,this.nextStencilID+ue>256&&this.clearStencil();let Ge={};for(let et=0;et({u_sky_color:He.properties.get("sky-color"),u_horizon_color:He.properties.get("horizon-color"),u_horizon:(lt.height/2+lt.getHorizon())*tt,u_sky_horizon_blend:He.properties.get("sky-horizon-blend")*lt.height/2*tt}))(Ft,mt.style.map.transform,mt.pixelRatio),Vr=new sa(or.LEQUAL,sa.ReadWrite,[0,1]),he=Na.disabled,Se=mt.colorModeForRenderPass(),qe=mt.useProgram("sky");if(!Ft.mesh){let He=new a.aX;He.emplaceBack(-1,-1),He.emplaceBack(1,-1),He.emplaceBack(1,1),He.emplaceBack(-1,1);let lt=new a.aY;lt.emplaceBack(0,1,2),lt.emplaceBack(0,2,3),Ft.mesh=new Ma(ir.createVertexBuffer(He,xi.members),ir.createIndexBuffer(lt),a.a0.simpleSegment(0,0,He.length,lt.length))}qe.draw(ir,or.TRIANGLES,Vr,he,Se,tn.disabled,kr,void 0,"sky",Ft.mesh.vertexBuffer,Ft.mesh.indexBuffer,Ft.mesh.segments)}(this,this.style.sky),this._showOverdrawInspector=q.showOverdrawInspector,this.depthRangeFor3D=[0,1-(w._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=Q.length-1;this.currentLayer>=0;this.currentLayer--){let mt=this.style._layers[Q[this.currentLayer]],Ft=ee[mt.source],ir=ue[mt.source];this._renderTileClippingMasks(mt,ir),this.renderLayer(this,Ft,mt,ir)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerqe.source&&!qe.isHidden(ir)?[Ft.sourceCaches[qe.source]]:[]),Vr=kr.filter(qe=>qe.getSource().type==="vector"),he=kr.filter(qe=>qe.getSource().type!=="vector"),Se=qe=>{(!or||or.getSource().maxzoomSe(qe)),or||he.forEach(qe=>Se(qe)),or}(this.style,this.transform.zoom);mt&&function(Ft,ir,or){for(let kr=0;kr0),ee&&(a.b0(q,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(ue,Ge){let et=ue.context,mt=et.gl,Ft=lo.unblended,ir=new sa(mt.LEQUAL,sa.ReadWrite,[0,1]),or=Ge.getTerrainMesh(),kr=Ge.sourceCache.getRenderableTiles(),Vr=ue.useProgram("terrainDepth");et.bindFramebuffer.set(Ge.getFramebuffer("depth").framebuffer),et.viewport.set([0,0,ue.width/devicePixelRatio,ue.height/devicePixelRatio]),et.clear({color:a.aM.transparent,depth:1});for(let he of kr){let Se=Ge.getTerrainData(he.tileID),qe={u_matrix:ue.transform.calculatePosMatrix(he.tileID.toUnwrapped()),u_ele_delta:Ge.getMeshFrameDelta(ue.transform.zoom)};Vr.draw(et,mt.TRIANGLES,ir,Na.disabled,Ft,tn.backCCW,qe,Se,"terrain",or.vertexBuffer,or.indexBuffer,or.segments)}et.bindFramebuffer.set(null),et.viewport.set([0,0,ue.width,ue.height])}(this,this.style.map.terrain),function(ue,Ge){let et=ue.context,mt=et.gl,Ft=lo.unblended,ir=new sa(mt.LEQUAL,sa.ReadWrite,[0,1]),or=Ge.getTerrainMesh(),kr=Ge.getCoordsTexture(),Vr=Ge.sourceCache.getRenderableTiles(),he=ue.useProgram("terrainCoords");et.bindFramebuffer.set(Ge.getFramebuffer("coords").framebuffer),et.viewport.set([0,0,ue.width/devicePixelRatio,ue.height/devicePixelRatio]),et.clear({color:a.aM.transparent,depth:1}),Ge.coordsIndex=[];for(let Se of Vr){let qe=Ge.getTerrainData(Se.tileID);et.activeTexture.set(mt.TEXTURE0),mt.bindTexture(mt.TEXTURE_2D,kr.texture);let He={u_matrix:ue.transform.calculatePosMatrix(Se.tileID.toUnwrapped()),u_terrain_coords_id:(255-Ge.coordsIndex.length)/255,u_texture:0,u_ele_delta:Ge.getMeshFrameDelta(ue.transform.zoom)};he.draw(et,mt.TRIANGLES,ir,Na.disabled,Ft,tn.backCCW,He,qe,"terrain",or.vertexBuffer,or.indexBuffer,or.segments),Ge.coordsIndex.push(Se.tileID.key)}et.bindFramebuffer.set(null),et.viewport.set([0,0,ue.width,ue.height])}(this,this.style.map.terrain))}renderLayer(w,q,Q,ee){if(!Q.isHidden(this.transform.zoom)&&(Q.type==="background"||Q.type==="custom"||(ee||[]).length))switch(this.id=Q.id,Q.type){case"symbol":(function(ue,Ge,et,mt,Ft){if(ue.renderPass!=="translucent")return;let ir=Na.disabled,or=ue.colorModeForRenderPass();(et._unevaluatedLayout.hasValue("text-variable-anchor")||et._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(kr,Vr,he,Se,qe,He,lt,tt,pt){let Ht=Vr.transform,nr=Vi(),fr=qe==="map",Ar=He==="map";for(let Rr of kr){let ri=Se.getTile(Rr),si=ri.getBucket(he);if(!si||!si.text||!si.text.segments.get().length)continue;let Mi=a.ag(si.textSizeData,Ht.zoom),hn=Di(ri,1,Vr.transform.zoom),Zn=br(Rr.posMatrix,Ar,fr,Vr.transform,hn),Yn=he.layout.get("icon-text-fit")!=="none"&&si.hasIconData();if(Mi){let Ua=Math.pow(2,Ht.zoom-ri.tileID.overscaledZ),Fo=Vr.style.map.terrain?(Us,ml)=>Vr.style.map.terrain.getElevation(Rr,Us,ml):null,vl=nr.translatePosition(Ht,ri,lt,tt);Dn(si,fr,Ar,pt,Ht,Zn,Rr.posMatrix,Ua,Mi,Yn,nr,vl,Rr.toUnwrapped(),Fo)}}}(mt,ue,et,Ge,et.layout.get("text-rotation-alignment"),et.layout.get("text-pitch-alignment"),et.paint.get("text-translate"),et.paint.get("text-translate-anchor"),Ft),et.paint.get("icon-opacity").constantOr(1)!==0&&Ws(ue,Ge,et,mt,!1,et.paint.get("icon-translate"),et.paint.get("icon-translate-anchor"),et.layout.get("icon-rotation-alignment"),et.layout.get("icon-pitch-alignment"),et.layout.get("icon-keep-upright"),ir,or),et.paint.get("text-opacity").constantOr(1)!==0&&Ws(ue,Ge,et,mt,!0,et.paint.get("text-translate"),et.paint.get("text-translate-anchor"),et.layout.get("text-rotation-alignment"),et.layout.get("text-pitch-alignment"),et.layout.get("text-keep-upright"),ir,or),Ge.map.showCollisionBoxes&&(to(ue,Ge,et,mt,!0),to(ue,Ge,et,mt,!1))})(w,q,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(ue,Ge,et,mt){if(ue.renderPass!=="translucent")return;let Ft=et.paint.get("circle-opacity"),ir=et.paint.get("circle-stroke-width"),or=et.paint.get("circle-stroke-opacity"),kr=!et.layout.get("circle-sort-key").isConstant();if(Ft.constantOr(1)===0&&(ir.constantOr(1)===0||or.constantOr(1)===0))return;let Vr=ue.context,he=Vr.gl,Se=ue.depthModeForSublayer(0,sa.ReadOnly),qe=Na.disabled,He=ue.colorModeForRenderPass(),lt=[];for(let tt=0;tttt.sortKey-pt.sortKey);for(let tt of lt){let{programConfiguration:pt,program:Ht,layoutVertexBuffer:nr,indexBuffer:fr,uniformValues:Ar,terrainData:Rr}=tt.state;Ht.draw(Vr,he.TRIANGLES,Se,qe,He,tn.disabled,Ar,Rr,et.id,nr,fr,tt.segments,et.paint,ue.transform.zoom,pt)}})(w,q,Q,ee);break;case"heatmap":(function(ue,Ge,et,mt){if(et.paint.get("heatmap-opacity")===0)return;let Ft=ue.context;if(ue.style.map.terrain){for(let ir of mt){let or=Ge.getTile(ir);Ge.hasRenderableParent(ir)||(ue.renderPass==="offscreen"?Es(ue,or,et,ir):ue.renderPass==="translucent"&&Ts(ue,et,ir))}Ft.viewport.set([0,0,ue.width,ue.height])}else ue.renderPass==="offscreen"?function(ir,or,kr,Vr){let he=ir.context,Se=he.gl,qe=Na.disabled,He=new lo([Se.ONE,Se.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(lt,tt,pt){let Ht=lt.gl;lt.activeTexture.set(Ht.TEXTURE1),lt.viewport.set([0,0,tt.width/4,tt.height/4]);let nr=pt.heatmapFbos.get(a.aU);nr?(Ht.bindTexture(Ht.TEXTURE_2D,nr.colorAttachment.get()),lt.bindFramebuffer.set(nr.framebuffer)):(nr=Ho(lt,tt.width/4,tt.height/4),pt.heatmapFbos.set(a.aU,nr))})(he,ir,kr),he.clear({color:a.aM.transparent});for(let lt=0;lt20&&ir.texParameterf(ir.TEXTURE_2D,Ft.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Ft.extTextureFilterAnisotropicMax);let si=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(lt),Mi=si?lt:null,hn=Mi?Mi.posMatrix:ue.transform.calculatePosMatrix(lt.toUnwrapped(),He),Zn=ls(hn,Rr||[0,0],Ar||1,fr,et);or instanceof kt?kr.draw(Ft,ir.TRIANGLES,tt,Na.disabled,Vr,tn.disabled,Zn,si,et.id,or.boundsBuffer,ue.quadTriangleIndexBuffer,or.boundsSegments):kr.draw(Ft,ir.TRIANGLES,tt,he[lt.overscaledZ],Vr,tn.disabled,Zn,si,et.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}})(w,q,Q,ee);break;case"background":(function(ue,Ge,et,mt){let Ft=et.paint.get("background-color"),ir=et.paint.get("background-opacity");if(ir===0)return;let or=ue.context,kr=or.gl,Vr=ue.transform,he=Vr.tileSize,Se=et.paint.get("background-pattern");if(ue.isPatternMissing(Se))return;let qe=!Se&&Ft.a===1&&ir===1&&ue.opaquePassEnabledForLayer()?"opaque":"translucent";if(ue.renderPass!==qe)return;let He=Na.disabled,lt=ue.depthModeForSublayer(0,qe==="opaque"?sa.ReadWrite:sa.ReadOnly),tt=ue.colorModeForRenderPass(),pt=ue.useProgram(Se?"backgroundPattern":"background"),Ht=mt||Vr.coveringTiles({tileSize:he,terrain:ue.style.map.terrain});Se&&(or.activeTexture.set(kr.TEXTURE0),ue.imageManager.bind(ue.context));let nr=et.getCrossfadeParameters();for(let fr of Ht){let Ar=mt?fr.posMatrix:ue.transform.calculatePosMatrix(fr.toUnwrapped()),Rr=Se?ws(Ar,ir,ue,Se,{tileID:fr,tileSize:he},nr):wa(Ar,ir,Ft),ri=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(fr);pt.draw(or,kr.TRIANGLES,lt,He,tt,tn.disabled,Rr,ri,et.id,ue.tileExtentBuffer,ue.quadTriangleIndexBuffer,ue.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(ue,Ge,et){let mt=ue.context,Ft=et.implementation;if(ue.renderPass==="offscreen"){let ir=Ft.prerender;ir&&(ue.setCustomLayerDefaults(),mt.setColorMode(ue.colorModeForRenderPass()),ir.call(Ft,mt.gl,ue.transform.customLayerMatrix()),mt.setDirty(),ue.setBaseState())}else if(ue.renderPass==="translucent"){ue.setCustomLayerDefaults(),mt.setColorMode(ue.colorModeForRenderPass()),mt.setStencilMode(Na.disabled);let ir=Ft.renderingMode==="3d"?new sa(ue.context.gl.LEQUAL,sa.ReadWrite,ue.depthRangeFor3D):ue.depthModeForSublayer(0,sa.ReadOnly);mt.setDepthMode(ir),Ft.render(mt.gl,ue.transform.customLayerMatrix(),{farZ:ue.transform.farZ,nearZ:ue.transform.nearZ,fov:ue.transform._fov,modelViewProjectionMatrix:ue.transform.modelViewProjectionMatrix,projectionMatrix:ue.transform.projectionMatrix}),mt.setDirty(),ue.setBaseState(),mt.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,q,Q,ee,ue){if(!Q[0]&&!Q[1])return w;let Ge=ue?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(Ge){let Ft=Math.sin(Ge),ir=Math.cos(Ge);Q=[Q[0]*ir-Q[1]*Ft,Q[0]*Ft+Q[1]*ir]}let et=[ue?Q[0]:Di(q,Q[0],this.transform.zoom),ue?Q[1]:Di(q,Q[1],this.transform.zoom),0],mt=new Float32Array(16);return a.J(mt,w,et),mt}saveTileTexture(w){let q=this._tileTextures[w.size[0]];q?q.push(w):this._tileTextures[w.size[0]]=[w]}getTileTexture(w){let q=this._tileTextures[w];return q&&q.length>0?q.pop():null}isPatternMissing(w){if(!w)return!1;if(!w.from||!w.to)return!0;let q=this.imageManager.getPattern(w.from.toString()),Q=this.imageManager.getPattern(w.to.toString());return!q||!Q}useProgram(w,q){this.cache=this.cache||{};let Q=w+(q?q.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[Q]||(this.cache[Q]=new Zr(this.context,Xr[w],q,Co[w],this._showOverdrawInspector,this.style.map.terrain)),this.cache[Q]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let w=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(w.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new m(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:w,drawingBufferHeight:q}=this.context.gl;return this.width!==w||this.height!==q}}class ho{constructor(w,q){this.points=w,this.planes=q}static fromInvProjectionMatrix(w,q,Q){let ee=Math.pow(2,Q),ue=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(et=>{let mt=1/(et=a.af([],et,w))[3]/q*ee;return a.b1(et,et,[mt,mt,1/et[3],mt])}),Ge=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(et=>{let mt=function(kr,Vr){var he=Vr[0],Se=Vr[1],qe=Vr[2],He=he*he+Se*Se+qe*qe;return He>0&&(He=1/Math.sqrt(He)),kr[0]=Vr[0]*He,kr[1]=Vr[1]*He,kr[2]=Vr[2]*He,kr}([],function(kr,Vr,he){var Se=Vr[0],qe=Vr[1],He=Vr[2],lt=he[0],tt=he[1],pt=he[2];return kr[0]=qe*pt-He*tt,kr[1]=He*lt-Se*pt,kr[2]=Se*tt-qe*lt,kr}([],L([],ue[et[0]],ue[et[1]]),L([],ue[et[2]],ue[et[1]]))),Ft=-((ir=mt)[0]*(or=ue[et[1]])[0]+ir[1]*or[1]+ir[2]*or[2]);var ir,or;return mt.concat(Ft)});return new ho(ue,Ge)}}class gs{constructor(w,q){this.min=w,this.max=q,this.center=function(Q,ee,ue){return Q[0]=.5*ee[0],Q[1]=.5*ee[1],Q[2]=.5*ee[2],Q}([],function(Q,ee,ue){return Q[0]=ee[0]+ue[0],Q[1]=ee[1]+ue[1],Q[2]=ee[2]+ue[2],Q}([],this.min,this.max))}quadrant(w){let q=[w%2==0,w<2],Q=E(this.min),ee=E(this.max);for(let ue=0;ue=0&&Ge++;if(Ge===0)return 0;Ge!==q.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let ue=Number.MAX_VALUE,Ge=-Number.MAX_VALUE;for(let et=0;etthis.max[ee]-this.min[ee])return 0}return 1}}class Vo{constructor(w=0,q=0,Q=0,ee=0){if(isNaN(w)||w<0||isNaN(q)||q<0||isNaN(Q)||Q<0||isNaN(ee)||ee<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=w,this.bottom=q,this.left=Q,this.right=ee}interpolate(w,q,Q){return q.top!=null&&w.top!=null&&(this.top=a.y.number(w.top,q.top,Q)),q.bottom!=null&&w.bottom!=null&&(this.bottom=a.y.number(w.bottom,q.bottom,Q)),q.left!=null&&w.left!=null&&(this.left=a.y.number(w.left,q.left,Q)),q.right!=null&&w.right!=null&&(this.right=a.y.number(w.right,q.right,Q)),this}getCenter(w,q){let Q=a.ac((this.left+w-this.right)/2,0,w),ee=a.ac((this.top+q-this.bottom)/2,0,q);return new a.P(Q,ee)}equals(w){return this.top===w.top&&this.bottom===w.bottom&&this.left===w.left&&this.right===w.right}clone(){return new Vo(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let Do=85.051129;class Lo{constructor(w,q,Q,ee,ue){this.tileSize=512,this._renderWorldCopies=ue===void 0||!!ue,this._minZoom=w||0,this._maxZoom=q||22,this._minPitch=Q==null?0:Q,this._maxPitch=ee==null?60:ee,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Vo,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let w=new Lo(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return w.apply(this),w}apply(w){this.tileSize=w.tileSize,this.latRange=w.latRange,this.lngRange=w.lngRange,this.width=w.width,this.height=w.height,this._center=w._center,this._elevation=w._elevation,this.minElevationForCurrentTile=w.minElevationForCurrentTile,this.zoom=w.zoom,this.angle=w.angle,this._fov=w._fov,this._pitch=w._pitch,this._unmodified=w._unmodified,this._edgeInsets=w._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(w){this._minZoom!==w&&(this._minZoom=w,this.zoom=Math.max(this.zoom,w))}get maxZoom(){return this._maxZoom}set maxZoom(w){this._maxZoom!==w&&(this._maxZoom=w,this.zoom=Math.min(this.zoom,w))}get minPitch(){return this._minPitch}set minPitch(w){this._minPitch!==w&&(this._minPitch=w,this.pitch=Math.max(this.pitch,w))}get maxPitch(){return this._maxPitch}set maxPitch(w){this._maxPitch!==w&&(this._maxPitch=w,this.pitch=Math.min(this.pitch,w))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(w){w===void 0?w=!0:w===null&&(w=!1),this._renderWorldCopies=w}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(w){let q=-a.b3(w,-180,180)*Math.PI/180;this.angle!==q&&(this._unmodified=!1,this.angle=q,this._calcMatrices(),this.rotationMatrix=function(){var Q=new a.A(4);return a.A!=Float32Array&&(Q[1]=0,Q[2]=0),Q[0]=1,Q[3]=1,Q}(),function(Q,ee,ue){var Ge=ee[0],et=ee[1],mt=ee[2],Ft=ee[3],ir=Math.sin(ue),or=Math.cos(ue);Q[0]=Ge*or+mt*ir,Q[1]=et*or+Ft*ir,Q[2]=Ge*-ir+mt*or,Q[3]=et*-ir+Ft*or}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(w){let q=a.ac(w,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==q&&(this._unmodified=!1,this._pitch=q,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(w){w=Math.max(.01,Math.min(60,w)),this._fov!==w&&(this._unmodified=!1,this._fov=w/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(w){let q=Math.min(Math.max(w,this.minZoom),this.maxZoom);this._zoom!==q&&(this._unmodified=!1,this._zoom=q,this.tileZoom=Math.max(0,Math.floor(q)),this.scale=this.zoomScale(q),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(w){w.lat===this._center.lat&&w.lng===this._center.lng||(this._unmodified=!1,this._center=w,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(w){w!==this._elevation&&(this._elevation=w,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(w){this._edgeInsets.equals(w)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,w,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(w){return this._edgeInsets.equals(w)}interpolatePadding(w,q,Q){this._unmodified=!1,this._edgeInsets.interpolate(w,q,Q),this._constrain(),this._calcMatrices()}coveringZoomLevel(w){let q=(w.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/w.tileSize));return Math.max(0,q)}getVisibleUnwrappedCoordinates(w){let q=[new a.b4(0,w)];if(this._renderWorldCopies){let Q=this.pointCoordinate(new a.P(0,0)),ee=this.pointCoordinate(new a.P(this.width,0)),ue=this.pointCoordinate(new a.P(this.width,this.height)),Ge=this.pointCoordinate(new a.P(0,this.height)),et=Math.floor(Math.min(Q.x,ee.x,ue.x,Ge.x)),mt=Math.floor(Math.max(Q.x,ee.x,ue.x,Ge.x)),Ft=1;for(let ir=et-Ft;ir<=mt+Ft;ir++)ir!==0&&q.push(new a.b4(ir,w))}return q}coveringTiles(w){var q,Q;let ee=this.coveringZoomLevel(w),ue=ee;if(w.minzoom!==void 0&&eew.maxzoom&&(ee=w.maxzoom);let Ge=this.pointCoordinate(this.getCameraPoint()),et=a.Z.fromLngLat(this.center),mt=Math.pow(2,ee),Ft=[mt*Ge.x,mt*Ge.y,0],ir=[mt*et.x,mt*et.y,0],or=ho.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),kr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(kr=ee);let Vr=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,he=tt=>({aabb:new gs([tt*mt,0,0],[(tt+1)*mt,mt,0]),zoom:0,x:0,y:0,wrap:tt,fullyVisible:!1}),Se=[],qe=[],He=ee,lt=w.reparseOverscaled?ue:ee;if(this._renderWorldCopies)for(let tt=1;tt<=3;tt++)Se.push(he(-tt)),Se.push(he(tt));for(Se.push(he(0));Se.length>0;){let tt=Se.pop(),pt=tt.x,Ht=tt.y,nr=tt.fullyVisible;if(!nr){let si=tt.aabb.intersects(or);if(si===0)continue;nr=si===2}let fr=w.terrain?Ft:ir,Ar=tt.aabb.distanceX(fr),Rr=tt.aabb.distanceY(fr),ri=Math.max(Math.abs(Ar),Math.abs(Rr));if(tt.zoom===He||ri>Vr+(1<=kr){let si=He-tt.zoom,Mi=Ft[0]-.5-(pt<>1),Zn=tt.zoom+1,Yn=tt.aabb.quadrant(si);if(w.terrain){let Ua=new a.S(Zn,tt.wrap,Zn,Mi,hn),Fo=w.terrain.getMinMaxElevation(Ua),vl=(q=Fo.minElevation)!==null&&q!==void 0?q:this.elevation,Us=(Q=Fo.maxElevation)!==null&&Q!==void 0?Q:this.elevation;Yn=new gs([Yn.min[0],Yn.min[1],vl],[Yn.max[0],Yn.max[1],Us])}Se.push({aabb:Yn,zoom:Zn,x:Mi,y:hn,wrap:tt.wrap,fullyVisible:nr})}}return qe.sort((tt,pt)=>tt.distanceSq-pt.distanceSq).map(tt=>tt.tileID)}resize(w,q){this.width=w,this.height=q,this.pixelsToGLUnits=[2/w,-2/q],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(w){return Math.pow(2,w)}scaleZoom(w){return Math.log(w)/Math.LN2}project(w){let q=a.ac(w.lat,-85.051129,Do);return new a.P(a.O(w.lng)*this.worldSize,a.Q(q)*this.worldSize)}unproject(w){return new a.Z(w.x/this.worldSize,w.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(w){let q=this.elevation,Q=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,ee=this.pointLocation(this.centerPoint,w),ue=w.getElevationForLngLatZoom(ee,this.tileZoom);if(!(this.elevation-ue))return;let Ge=Q+q-ue,et=Math.cos(this._pitch)*this.cameraToCenterDistance/Ge/a.b5(1,ee.lat),mt=this.scaleZoom(et/this.tileSize);this._elevation=ue,this._center=ee,this.zoom=mt}setLocationAtPoint(w,q){let Q=this.pointCoordinate(q),ee=this.pointCoordinate(this.centerPoint),ue=this.locationCoordinate(w),Ge=new a.Z(ue.x-(Q.x-ee.x),ue.y-(Q.y-ee.y));this.center=this.coordinateLocation(Ge),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(w,q){return q?this.coordinatePoint(this.locationCoordinate(w),q.getElevationForLngLatZoom(w,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(w))}pointLocation(w,q){return this.coordinateLocation(this.pointCoordinate(w,q))}locationCoordinate(w){return a.Z.fromLngLat(w)}coordinateLocation(w){return w&&w.toLngLat()}pointCoordinate(w,q){if(q){let kr=q.pointCoordinate(w);if(kr!=null)return kr}let Q=[w.x,w.y,0,1],ee=[w.x,w.y,1,1];a.af(Q,Q,this.pixelMatrixInverse),a.af(ee,ee,this.pixelMatrixInverse);let ue=Q[3],Ge=ee[3],et=Q[1]/ue,mt=ee[1]/Ge,Ft=Q[2]/ue,ir=ee[2]/Ge,or=Ft===ir?0:(0-Ft)/(ir-Ft);return new a.Z(a.y.number(Q[0]/ue,ee[0]/Ge,or)/this.worldSize,a.y.number(et,mt,or)/this.worldSize)}coordinatePoint(w,q=0,Q=this.pixelMatrix){let ee=[w.x*this.worldSize,w.y*this.worldSize,q,1];return a.af(ee,ee,Q),new a.P(ee[0]/ee[3],ee[1]/ee[3])}getBounds(){let w=Math.max(0,this.height/2-this.getHorizon());return new ce().extend(this.pointLocation(new a.P(0,w))).extend(this.pointLocation(new a.P(this.width,w))).extend(this.pointLocation(new a.P(this.width,this.height))).extend(this.pointLocation(new a.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new ce([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(w){w?(this.lngRange=[w.getWest(),w.getEast()],this.latRange=[w.getSouth(),w.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,Do])}calculateTileMatrix(w){let q=w.canonical,Q=this.worldSize/this.zoomScale(q.z),ee=q.x+Math.pow(2,q.z)*w.wrap,ue=a.an(new Float64Array(16));return a.J(ue,ue,[ee*Q,q.y*Q,0]),a.K(ue,ue,[Q/a.X,Q/a.X,1]),ue}calculatePosMatrix(w,q=!1){let Q=w.key,ee=q?this._alignedPosMatrixCache:this._posMatrixCache;if(ee[Q])return ee[Q];let ue=this.calculateTileMatrix(w);return a.L(ue,q?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,ue),ee[Q]=new Float32Array(ue),ee[Q]}calculateFogMatrix(w){let q=w.key,Q=this._fogMatrixCache;if(Q[q])return Q[q];let ee=this.calculateTileMatrix(w);return a.L(ee,this.fogMatrix,ee),Q[q]=new Float32Array(ee),Q[q]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(w,q){q=a.ac(+q,this.minZoom,this.maxZoom);let Q={center:new a.N(w.lng,w.lat),zoom:q},ee=this.lngRange;if(!this._renderWorldCopies&&ee===null){let tt=179.9999999999;ee=[-tt,tt]}let ue=this.tileSize*this.zoomScale(Q.zoom),Ge=0,et=ue,mt=0,Ft=ue,ir=0,or=0,{x:kr,y:Vr}=this.size;if(this.latRange){let tt=this.latRange;Ge=a.Q(tt[1])*ue,et=a.Q(tt[0])*ue,et-Geet&&(He=et-tt)}if(ee){let tt=(mt+Ft)/2,pt=he;this._renderWorldCopies&&(pt=a.b3(he,tt-ue/2,tt+ue/2));let Ht=kr/2;pt-HtFt&&(qe=Ft-Ht)}if(qe!==void 0||He!==void 0){let tt=new a.P(qe!=null?qe:he,He!=null?He:Se);Q.center=this.unproject.call({worldSize:ue},tt).wrap()}return Q}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let w=this._unmodified,{center:q,zoom:Q}=this.getConstrained(this.center,this.zoom);this.center=q,this.zoom=Q,this._unmodified=w,this._constraining=!1}_calcMatrices(){if(!this.height)return;let w=this.centerOffset,q=this.point.x,Q=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=a.b5(1,this.center.lat)*this.worldSize;let ee=a.an(new Float64Array(16));a.K(ee,ee,[this.width/2,-this.height/2,1]),a.J(ee,ee,[1,-1,0]),this.labelPlaneMatrix=ee,ee=a.an(new Float64Array(16)),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[-1,-1,0]),a.K(ee,ee,[2/this.width,2/this.height,1]),this.glCoordMatrix=ee;let ue=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),Ge=Math.min(this.elevation,this.minElevationForCurrentTile),et=ue-Ge*this._pixelPerMeter/Math.cos(this._pitch),mt=Ge<0?et:ue,Ft=Math.PI/2+this._pitch,ir=this._fov*(.5+w.y/this.height),or=Math.sin(ir)*mt/Math.sin(a.ac(Math.PI-Ft-ir,.01,Math.PI-.01)),kr=this.getHorizon(),Vr=2*Math.atan(kr/this.cameraToCenterDistance)*(.5+w.y/(2*kr)),he=Math.sin(Vr)*mt/Math.sin(a.ac(Math.PI-Ft-Vr,.01,Math.PI-.01)),Se=Math.min(or,he);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*Se+mt),this.nearZ=this.height/50,ee=new Float64Array(16),a.b6(ee,this._fov,this.width/this.height,this.nearZ,this.farZ),ee[8]=2*-w.x/this.width,ee[9]=2*w.y/this.height,this.projectionMatrix=a.ae(ee),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[0,0,-this.cameraToCenterDistance]),a.b7(ee,ee,this._pitch),a.ad(ee,ee,this.angle),a.J(ee,ee,[-q,-Q,0]),this.mercatorMatrix=a.K([],ee,[this.worldSize,this.worldSize,this.worldSize]),a.K(ee,ee,[1,1,this._pixelPerMeter]),this.pixelMatrix=a.L(new Float64Array(16),this.labelPlaneMatrix,ee),a.J(ee,ee,[0,0,-this.elevation]),this.modelViewProjectionMatrix=ee,this.invModelViewProjectionMatrix=a.as([],ee),this.fogMatrix=new Float64Array(16),a.b6(this.fogMatrix,this._fov,this.width/this.height,ue,this.farZ),this.fogMatrix[8]=2*-w.x/this.width,this.fogMatrix[9]=2*w.y/this.height,a.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),a.b7(this.fogMatrix,this.fogMatrix,this._pitch),a.ad(this.fogMatrix,this.fogMatrix,this.angle),a.J(this.fogMatrix,this.fogMatrix,[-q,-Q,0]),a.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=a.L(new Float64Array(16),this.labelPlaneMatrix,ee);let qe=this.width%2/2,He=this.height%2/2,lt=Math.cos(this.angle),tt=Math.sin(this.angle),pt=q-Math.round(q)+lt*qe+tt*He,Ht=Q-Math.round(Q)+lt*He+tt*qe,nr=new Float64Array(ee);if(a.J(nr,nr,[pt>.5?pt-1:pt,Ht>.5?Ht-1:Ht,0]),this.alignedModelViewProjectionMatrix=nr,ee=a.as(new Float64Array(16),this.pixelMatrix),!ee)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ee,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let w=this.pointCoordinate(new a.P(0,0)),q=[w.x*this.worldSize,w.y*this.worldSize,0,1];return a.af(q,q,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let w=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.P(0,w))}getCameraQueryGeometry(w){let q=this.getCameraPoint();if(w.length===1)return[w[0],q];{let Q=q.x,ee=q.y,ue=q.x,Ge=q.y;for(let et of w)Q=Math.min(Q,et.x),ee=Math.min(ee,et.y),ue=Math.max(ue,et.x),Ge=Math.max(Ge,et.y);return[new a.P(Q,ee),new a.P(ue,ee),new a.P(ue,Ge),new a.P(Q,Ge),new a.P(Q,ee)]}}lngLatToCameraDepth(w,q){let Q=this.locationCoordinate(w),ee=[Q.x*this.worldSize,Q.y*this.worldSize,q,1];return a.af(ee,ee,this.modelViewProjectionMatrix),ee[2]/ee[3]}}function xs(le,w){let q,Q=!1,ee=null,ue=null,Ge=()=>{ee=null,Q&&(le.apply(ue,q),ee=setTimeout(Ge,w),Q=!1)};return(...et)=>(Q=!0,ue=this,q=et,ee||Ge(),ee)}class ks{constructor(w){this._getCurrentHash=()=>{let q=window.location.hash.replace("#","");if(this._hashName){let Q;return q.split("&").map(ee=>ee.split("=")).forEach(ee=>{ee[0]===this._hashName&&(Q=ee)}),(Q&&Q[1]||"").split("/")}return q.split("/")},this._onHashChange=()=>{let q=this._getCurrentHash();if(q.length>=3&&!q.some(Q=>isNaN(Q))){let Q=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(q[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+q[2],+q[1]],zoom:+q[0],bearing:Q,pitch:+(q[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let q=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,q)},this._removeHash=()=>{let q=this._getCurrentHash();if(q.length===0)return;let Q=q.join("/"),ee=Q;ee.split("&").length>0&&(ee=ee.split("&")[0]),this._hashName&&(ee=`${this._hashName}=${Q}`);let ue=window.location.hash.replace(ee,"");ue.startsWith("#&")?ue=ue.slice(0,1)+ue.slice(2):ue==="#"&&(ue="");let Ge=window.location.href.replace(/(#.+)?$/,ue);Ge=Ge.replace("&&","&"),window.history.replaceState(window.history.state,null,Ge)},this._updateHash=xs(this._updateHashUnthrottled,300),this._hashName=w&&encodeURIComponent(w)}addTo(w){return this._map=w,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(w){let q=this._map.getCenter(),Q=Math.round(100*this._map.getZoom())/100,ee=Math.ceil((Q*Math.LN2+Math.log(512/360/.5))/Math.LN10),ue=Math.pow(10,ee),Ge=Math.round(q.lng*ue)/ue,et=Math.round(q.lat*ue)/ue,mt=this._map.getBearing(),Ft=this._map.getPitch(),ir="";if(ir+=w?`/${Ge}/${et}/${Q}`:`${Q}/${et}/${Ge}`,(mt||Ft)&&(ir+="/"+Math.round(10*mt)/10),Ft&&(ir+=`/${Math.round(Ft)}`),this._hashName){let or=this._hashName,kr=!1,Vr=window.location.hash.slice(1).split("&").map(he=>{let Se=he.split("=")[0];return Se===or?(kr=!0,`${Se}=${ir}`):he}).filter(he=>he);return kr||Vr.push(`${or}=${ir}`),`#${Vr.join("&")}`}return`#${ir}`}}let Ea={linearity:.3,easing:a.b8(0,0,.3,1)},Jn=a.e({deceleration:2500,maxSpeed:1400},Ea),Oo=a.e({deceleration:20,maxSpeed:1400},Ea),rl=a.e({deceleration:1e3,maxSpeed:360},Ea),Gs=a.e({deceleration:1e3,maxSpeed:90},Ea);class bs{constructor(w){this._map=w,this.clear()}clear(){this._inertiaBuffer=[]}record(w){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:l.now(),settings:w})}_drainInertiaBuffer(){let w=this._inertiaBuffer,q=l.now();for(;w.length>0&&q-w[0].time>160;)w.shift()}_onMoveEnd(w){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let q={zoom:0,bearing:0,pitch:0,pan:new a.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:ue}of this._inertiaBuffer)q.zoom+=ue.zoomDelta||0,q.bearing+=ue.bearingDelta||0,q.pitch+=ue.pitchDelta||0,ue.panDelta&&q.pan._add(ue.panDelta),ue.around&&(q.around=ue.around),ue.pinchAround&&(q.pinchAround=ue.pinchAround);let Q=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ee={};if(q.pan.mag()){let ue=$o(q.pan.mag(),Q,a.e({},Jn,w||{}));ee.offset=q.pan.mult(ue.amount/q.pan.mag()),ee.center=this._map.transform.center,zs(ee,ue)}if(q.zoom){let ue=$o(q.zoom,Q,Oo);ee.zoom=this._map.transform.zoom+ue.amount,zs(ee,ue)}if(q.bearing){let ue=$o(q.bearing,Q,rl);ee.bearing=this._map.transform.bearing+a.ac(ue.amount,-179,179),zs(ee,ue)}if(q.pitch){let ue=$o(q.pitch,Q,Gs);ee.pitch=this._map.transform.pitch+ue.amount,zs(ee,ue)}if(ee.zoom||ee.bearing){let ue=q.pinchAround===void 0?q.around:q.pinchAround;ee.around=ue?this._map.unproject(ue):this._map.getCenter()}return this.clear(),a.e(ee,{noMoveStart:!0})}}function zs(le,w){(!le.duration||le.durationq.unproject(mt)),et=ue.reduce((mt,Ft,ir,or)=>mt.add(Ft.div(or.length)),new a.P(0,0));super(w,{points:ue,point:et,lngLats:Ge,lngLat:q.unproject(et),originalEvent:Q}),this._defaultPrevented=!1}}class _l extends a.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(w,q,Q){super(w,{originalEvent:Q}),this._defaultPrevented=!1}}class Ss{constructor(w,q){this._map=w,this._clickTolerance=q.clickTolerance}reset(){delete this._mousedownPos}wheel(w){return this._firePreventable(new _l(w.type,this._map,w))}mousedown(w,q){return this._mousedownPos=q,this._firePreventable(new Aa(w.type,this._map,w))}mouseup(w){this._map.fire(new Aa(w.type,this._map,w))}click(w,q){this._mousedownPos&&this._mousedownPos.dist(q)>=this._clickTolerance||this._map.fire(new Aa(w.type,this._map,w))}dblclick(w){return this._firePreventable(new Aa(w.type,this._map,w))}mouseover(w){this._map.fire(new Aa(w.type,this._map,w))}mouseout(w){this._map.fire(new Aa(w.type,this._map,w))}touchstart(w){return this._firePreventable(new os(w.type,this._map,w))}touchmove(w){this._map.fire(new os(w.type,this._map,w))}touchend(w){this._map.fire(new os(w.type,this._map,w))}touchcancel(w){this._map.fire(new os(w.type,this._map,w))}_firePreventable(w){if(this._map.fire(w),w.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class po{constructor(w){this._map=w}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(w){this._map.fire(new Aa(w.type,this._map,w))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Aa("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(w){this._delayContextMenu?this._contextMenuEvent=w:this._ignoreContextMenu||this._map.fire(new Aa(w.type,this._map,w)),this._map.listens("contextmenu")&&w.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class go{constructor(w){this._map=w}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(w){return this.transform.pointLocation(a.P.convert(w),this._map.terrain)}}class ss{constructor(w,q){this._map=w,this._tr=new go(w),this._el=w.getCanvasContainer(),this._container=w.getContainer(),this._clickTolerance=q.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(w,q){this.isEnabled()&&w.shiftKey&&w.button===0&&(f.disableDrag(),this._startPos=this._lastPos=q,this._active=!0)}mousemoveWindow(w,q){if(!this._active)return;let Q=q;if(this._lastPos.equals(Q)||!this._box&&Q.dist(this._startPos)ue.fitScreenCoordinates(Q,ee,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",w)}keydown(w){this._active&&w.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",w))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(f.remove(this._box),this._box=null),f.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(w,q){return this._map.fire(new a.k(w,{originalEvent:q}))}}function qo(le,w){if(le.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${le.length}, points ${w.length}`);let q={};for(let Q=0;Qthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=w.timeStamp),Q.length===this.numTouches&&(this.centroid=function(ee){let ue=new a.P(0,0);for(let Ge of ee)ue._add(Ge);return ue.div(ee.length)}(q),this.touches=qo(Q,q)))}touchmove(w,q,Q){if(this.aborted||!this.centroid)return;let ee=qo(Q,q);for(let ue in this.touches){let Ge=ee[ue];(!Ge||Ge.dist(this.touches[ue])>30)&&(this.aborted=!0)}}touchend(w,q,Q){if((!this.centroid||w.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){let ee=!this.aborted&&this.centroid;if(this.reset(),ee)return ee}}}class io{constructor(w){this.singleTap=new zo(w),this.numTaps=w.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(w,q,Q){this.singleTap.touchstart(w,q,Q)}touchmove(w,q,Q){this.singleTap.touchmove(w,q,Q)}touchend(w,q,Q){let ee=this.singleTap.touchend(w,q,Q);if(ee){let ue=w.timeStamp-this.lastTime<500,Ge=!this.lastTap||this.lastTap.dist(ee)<30;if(ue&&Ge||this.reset(),this.count++,this.lastTime=w.timeStamp,this.lastTap=ee,this.count===this.numTaps)return this.reset(),ee}}}class Io{constructor(w){this._tr=new go(w),this._zoomIn=new io({numTouches:1,numTaps:2}),this._zoomOut=new io({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(w,q,Q){this._zoomIn.touchstart(w,q,Q),this._zoomOut.touchstart(w,q,Q)}touchmove(w,q,Q){this._zoomIn.touchmove(w,q,Q),this._zoomOut.touchmove(w,q,Q)}touchend(w,q,Q){let ee=this._zoomIn.touchend(w,q,Q),ue=this._zoomOut.touchend(w,q,Q),Ge=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:et=>et.easeTo({duration:300,zoom:Ge.zoom+1,around:Ge.unproject(ee)},{originalEvent:w})}):ue?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:et=>et.easeTo({duration:300,zoom:Ge.zoom-1,around:Ge.unproject(ue)},{originalEvent:w})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Da{constructor(w){this._enabled=!!w.enable,this._moveStateManager=w.moveStateManager,this._clickTolerance=w.clickTolerance||1,this._moveFunction=w.move,this._activateOnStart=!!w.activateOnStart,w.assignEvents(this),this.reset()}reset(w){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(w)}_move(...w){let q=this._moveFunction(...w);if(q.bearingDelta||q.pitchDelta||q.around||q.panDelta)return this._active=!0,q}dragStart(w,q){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(w)&&(this._moveStateManager.startMove(w),this._lastPoint=q.length?q[0]:q,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(w,q){if(!this.isEnabled())return;let Q=this._lastPoint;if(!Q)return;if(w.preventDefault(),!this._moveStateManager.isValidMoveEvent(w))return void this.reset(w);let ee=q.length?q[0]:q;return!this._moved&&ee.dist(Q){le.mousedown=le.dragStart,le.mousemoveWindow=le.dragMove,le.mouseup=le.dragEnd,le.contextmenu=w=>{w.preventDefault()}},Hs=({enable:le,clickTolerance:w,bearingDegreesPerPixelMoved:q=.8})=>{let Q=new fs({checkCorrectEvent:ee=>f.mouseButton(ee)===0&&ee.ctrlKey||f.mouseButton(ee)===2});return new Da({clickTolerance:w,move:(ee,ue)=>({bearingDelta:(ue.x-ee.x)*q}),moveStateManager:Q,enable:le,assignEvents:el})},Ro=({enable:le,clickTolerance:w,pitchDegreesPerPixelMoved:q=-.5})=>{let Q=new fs({checkCorrectEvent:ee=>f.mouseButton(ee)===0&&ee.ctrlKey||f.mouseButton(ee)===2});return new Da({clickTolerance:w,move:(ee,ue)=>({pitchDelta:(ue.y-ee.y)*q}),moveStateManager:Q,enable:le,assignEvents:el})};class tl{constructor(w,q){this._clickTolerance=w.clickTolerance||1,this._map=q,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new a.P(0,0)}_shouldBePrevented(w){return w<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(w,q,Q){return this._calculateTransform(w,q,Q)}touchmove(w,q,Q){if(this._active){if(!this._shouldBePrevented(Q.length))return w.preventDefault(),this._calculateTransform(w,q,Q);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",w)}}touchend(w,q,Q){this._calculateTransform(w,q,Q),this._active&&this._shouldBePrevented(Q.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(w,q,Q){Q.length>0&&(this._active=!0);let ee=qo(Q,q),ue=new a.P(0,0),Ge=new a.P(0,0),et=0;for(let Ft in ee){let ir=ee[Ft],or=this._touches[Ft];or&&(ue._add(ir),Ge._add(ir.sub(or)),et++,ee[Ft]=ir)}if(this._touches=ee,this._shouldBePrevented(et)||!Ge.mag())return;let mt=Ge.div(et);return this._sum._add(mt),this._sum.mag()Math.abs(le.x)}class Bs extends Fs{constructor(w){super(),this._currentTouchCount=0,this._map=w}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(w,q,Q){super.touchstart(w,q,Q),this._currentTouchCount=Q.length}_start(w){this._lastPoints=w,Is(w[0].sub(w[1]))&&(this._valid=!1)}_move(w,q,Q){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let ee=w[0].sub(this._lastPoints[0]),ue=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(ee,ue,Q.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(ee.y+ue.y)/2*-.5}):void 0}gestureBeginsVertically(w,q,Q){if(this._valid!==void 0)return this._valid;let ee=w.mag()>=2,ue=q.mag()>=2;if(!ee&&!ue)return;if(!ee||!ue)return this._firstMove===void 0&&(this._firstMove=Q),Q-this._firstMove<100&&void 0;let Ge=w.y>0==q.y>0;return Is(w)&&Is(q)&&Ge}}let At={panStep:100,bearingStep:15,pitchStep:10};class Gt{constructor(w){this._tr=new go(w);let q=At;this._panStep=q.panStep,this._bearingStep=q.bearingStep,this._pitchStep=q.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(w){if(w.altKey||w.ctrlKey||w.metaKey)return;let q=0,Q=0,ee=0,ue=0,Ge=0;switch(w.keyCode){case 61:case 107:case 171:case 187:q=1;break;case 189:case 109:case 173:q=-1;break;case 37:w.shiftKey?Q=-1:(w.preventDefault(),ue=-1);break;case 39:w.shiftKey?Q=1:(w.preventDefault(),ue=1);break;case 38:w.shiftKey?ee=1:(w.preventDefault(),Ge=-1);break;case 40:w.shiftKey?ee=-1:(w.preventDefault(),Ge=1);break;default:return}return this._rotationDisabled&&(Q=0,ee=0),{cameraAnimation:et=>{let mt=this._tr;et.easeTo({duration:300,easeId:"keyboardHandler",easing:wr,zoom:q?Math.round(mt.zoom)+q*(w.shiftKey?2:1):mt.zoom,bearing:mt.bearing+Q*this._bearingStep,pitch:mt.pitch+ee*this._pitchStep,offset:[-ue*this._panStep,-Ge*this._panStep],center:mt.center},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function wr(le){return le*(2-le)}let mr=4.000244140625;class Or{constructor(w,q){this._onTimeout=Q=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Q)},this._map=w,this._tr=new go(w),this._triggerRenderFrame=q,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(w){this._defaultZoomRate=w}setWheelZoomRate(w){this._wheelZoomRate=w}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(w){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!w&&w.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(w){return!!this._map.cooperativeGestures.isEnabled()&&!(w.ctrlKey||this._map.cooperativeGestures.isBypassed(w))}wheel(w){if(!this.isEnabled())return;if(this._shouldBePrevented(w))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",w);let q=w.deltaMode===WheelEvent.DOM_DELTA_LINE?40*w.deltaY:w.deltaY,Q=l.now(),ee=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,q!==0&&q%mr==0?this._type="wheel":q!==0&&Math.abs(q)<4?this._type="trackpad":ee>400?(this._type=null,this._lastValue=q,this._timeout=setTimeout(this._onTimeout,40,w)):this._type||(this._type=Math.abs(ee*q)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,q+=this._lastValue)),w.shiftKey&&q&&(q/=4),this._type&&(this._lastWheelEvent=w,this._delta-=q,this._active||this._start(w)),w.preventDefault()}_start(w){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let q=f.mousePos(this._map.getCanvas(),w),Q=this._tr;this._around=q.y>Q.transform.height/2-Q.transform.getHorizon()?a.N.convert(this._aroundCenter?Q.center:Q.unproject(q)):a.N.convert(Q.center),this._aroundPoint=Q.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let w=this._tr.transform;if(this._delta!==0){let mt=this._type==="wheel"&&Math.abs(this._delta)>mr?this._wheelZoomRate:this._defaultZoomRate,Ft=2/(1+Math.exp(-Math.abs(this._delta*mt)));this._delta<0&&Ft!==0&&(Ft=1/Ft);let ir=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(ir*Ft))),this._type==="wheel"&&(this._startZoom=w.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let q=typeof this._targetZoom=="number"?this._targetZoom:w.zoom,Q=this._startZoom,ee=this._easing,ue,Ge=!1,et=l.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&et){let mt=Math.min(et/200,1),Ft=ee(mt);ue=a.y.number(Q,q,Ft),mt<1?this._frameId||(this._frameId=!0):Ge=!0}else ue=q,Ge=!0;return this._active=!0,Ge&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ge,zoomDelta:ue-w.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(w){let q=a.b9;if(this._prevEase){let Q=this._prevEase,ee=(l.now()-Q.start)/Q.duration,ue=Q.easing(ee+.01)-Q.easing(ee),Ge=.27/Math.sqrt(ue*ue+1e-4)*.01,et=Math.sqrt(.0729-Ge*Ge);q=a.b8(Ge,et,.25,1)}return this._prevEase={start:l.now(),duration:w,easing:q},q}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class gi{constructor(w,q){this._clickZoom=w,this._tapZoom=q}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Ti{constructor(w){this._tr=new go(w),this.reset()}reset(){this._active=!1}dblclick(w,q){return w.preventDefault(),{cameraAnimation:Q=>{Q.easeTo({duration:300,zoom:this._tr.zoom+(w.shiftKey?-1:1),around:this._tr.unproject(q)},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class ki{constructor(){this._tap=new io({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(w,q,Q){if(!this._swipePoint)if(this._tapTime){let ee=q[0],ue=w.timeStamp-this._tapTime<500,Ge=this._tapPoint.dist(ee)<30;ue&&Ge?Q.length>0&&(this._swipePoint=ee,this._swipeTouch=Q[0].identifier):this.reset()}else this._tap.touchstart(w,q,Q)}touchmove(w,q,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;let ee=q[0],ue=ee.y-this._swipePoint.y;return this._swipePoint=ee,w.preventDefault(),this._active=!0,{zoomDelta:ue/128}}}else this._tap.touchmove(w,q,Q)}touchend(w,q,Q){if(this._tapTime)this._swipePoint&&Q.length===0&&this.reset();else{let ee=this._tap.touchend(w,q,Q);ee&&(this._tapTime=w.timeStamp,this._tapPoint=ee)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ji{constructor(w,q,Q){this._el=w,this._mousePan=q,this._touchPan=Q}enable(w){this._inertiaOptions=w||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Fn{constructor(w,q,Q){this._pitchWithRotate=w.pitchWithRotate,this._mouseRotate=q,this._mousePitch=Q}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Pi{constructor(w,q,Q,ee){this._el=w,this._touchZoom=q,this._touchRotate=Q,this._tapDragZoom=ee,this._rotationDisabled=!1,this._enabled=!0}enable(w){this._touchZoom.enable(w),this._rotationDisabled||this._touchRotate.enable(w),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class hi{constructor(w,q){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=w,this._options=q,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let w=this._map.getCanvasContainer();w.classList.add("maplibregl-cooperative-gestures"),this._container=f.create("div","maplibregl-cooperative-gesture-screen",w);let q=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(q=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let Q=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),ee=document.createElement("div");ee.className="maplibregl-desktop-message",ee.textContent=q,this._container.appendChild(ee);let ue=document.createElement("div");ue.className="maplibregl-mobile-message",ue.textContent=Q,this._container.appendChild(ue),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(f.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(w){return w[this._bypassKey]}notifyGestureBlocked(w,q){this._enabled&&(this._map.fire(new a.k("cooperativegestureprevented",{gestureType:w,originalEvent:q})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}let Li=le=>le.zoom||le.drag||le.pitch||le.rotate;class Si extends a.k{}function Gn(le){return le.panDelta&&le.panDelta.mag()||le.zoomDelta||le.bearingDelta||le.pitchDelta}class ta{constructor(w,q){this.handleWindowEvent=ee=>{this.handleEvent(ee,`${ee.type}Window`)},this.handleEvent=(ee,ue)=>{if(ee.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let Ge=ee.type==="renderFrame"?void 0:ee,et={needsRenderFrame:!1},mt={},Ft={},ir=ee.touches,or=ir?this._getMapTouches(ir):void 0,kr=or?f.touchPos(this._map.getCanvas(),or):f.mousePos(this._map.getCanvas(),ee);for(let{handlerName:Se,handler:qe,allowed:He}of this._handlers){if(!qe.isEnabled())continue;let lt;this._blockedByActive(Ft,He,Se)?qe.reset():qe[ue||ee.type]&&(lt=qe[ue||ee.type](ee,kr,or),this.mergeHandlerResult(et,mt,lt,Se,Ge),lt&<.needsRenderFrame&&this._triggerRenderFrame()),(lt||qe.isActive())&&(Ft[Se]=qe)}let Vr={};for(let Se in this._previousActiveHandlers)Ft[Se]||(Vr[Se]=Ge);this._previousActiveHandlers=Ft,(Object.keys(Vr).length||Gn(et))&&(this._changes.push([et,mt,Vr]),this._triggerRenderFrame()),(Object.keys(Ft).length||Gn(et))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:he}=et;he&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],he(this._map))},this._map=w,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new bs(w),this._bearingSnap=q.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(q);let Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[window,"blur",void 0]];for(let[ee,ue,Ge]of this._listeners)f.addEventListener(ee,ue,ee===document?this.handleWindowEvent:this.handleEvent,Ge)}destroy(){for(let[w,q,Q]of this._listeners)f.removeEventListener(w,q,w===document?this.handleWindowEvent:this.handleEvent,Q)}_addDefaultHandlers(w){let q=this._map,Q=q.getCanvasContainer();this._add("mapEvent",new Ss(q,w));let ee=q.boxZoom=new ss(q,w);this._add("boxZoom",ee),w.interactive&&w.boxZoom&&ee.enable();let ue=q.cooperativeGestures=new hi(q,w.cooperativeGestures);this._add("cooperativeGestures",ue),w.cooperativeGestures&&ue.enable();let Ge=new Io(q),et=new Ti(q);q.doubleClickZoom=new gi(et,Ge),this._add("tapZoom",Ge),this._add("clickZoom",et),w.interactive&&w.doubleClickZoom&&q.doubleClickZoom.enable();let mt=new ki;this._add("tapDragZoom",mt);let Ft=q.touchPitch=new Bs(q);this._add("touchPitch",Ft),w.interactive&&w.touchPitch&&q.touchPitch.enable(w.touchPitch);let ir=Hs(w),or=Ro(w);q.dragRotate=new Fn(w,ir,or),this._add("mouseRotate",ir,["mousePitch"]),this._add("mousePitch",or,["mouseRotate"]),w.interactive&&w.dragRotate&&q.dragRotate.enable();let kr=(({enable:lt,clickTolerance:tt})=>{let pt=new fs({checkCorrectEvent:Ht=>f.mouseButton(Ht)===0&&!Ht.ctrlKey});return new Da({clickTolerance:tt,move:(Ht,nr)=>({around:nr,panDelta:nr.sub(Ht)}),activateOnStart:!0,moveStateManager:pt,enable:lt,assignEvents:el})})(w),Vr=new tl(w,q);q.dragPan=new Ji(Q,kr,Vr),this._add("mousePan",kr),this._add("touchPan",Vr,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&q.dragPan.enable(w.dragPan);let he=new Rs,Se=new Ms;q.touchZoomRotate=new Pi(Q,Se,he,mt),this._add("touchRotate",he,["touchPan","touchZoom"]),this._add("touchZoom",Se,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&q.touchZoomRotate.enable(w.touchZoomRotate);let qe=q.scrollZoom=new Or(q,()=>this._triggerRenderFrame());this._add("scrollZoom",qe,["mousePan"]),w.interactive&&w.scrollZoom&&q.scrollZoom.enable(w.scrollZoom);let He=q.keyboard=new Gt(q);this._add("keyboard",He),w.interactive&&w.keyboard&&q.keyboard.enable(),this._add("blockableMapEvent",new po(q))}_add(w,q,Q){this._handlers.push({handlerName:w,handler:q,allowed:Q}),this._handlersById[w]=q}stop(w){if(!this._updatingCamera){for(let{handler:q}of this._handlers)q.reset();this._inertia.clear(),this._fireEvents({},{},w),this._changes=[]}}isActive(){for(let{handler:w}of this._handlers)if(w.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Li(this._eventsInProgress)||this.isZooming()}_blockedByActive(w,q,Q){for(let ee in w)if(ee!==Q&&(!q||q.indexOf(ee)<0))return!0;return!1}_getMapTouches(w){let q=[];for(let Q of w)this._el.contains(Q.target)&&q.push(Q);return q}mergeHandlerResult(w,q,Q,ee,ue){if(!Q)return;a.e(w,Q);let Ge={handlerName:ee,originalEvent:Q.originalEvent||ue};Q.zoomDelta!==void 0&&(q.zoom=Ge),Q.panDelta!==void 0&&(q.drag=Ge),Q.pitchDelta!==void 0&&(q.pitch=Ge),Q.bearingDelta!==void 0&&(q.rotate=Ge)}_applyChanges(){let w={},q={},Q={};for(let[ee,ue,Ge]of this._changes)ee.panDelta&&(w.panDelta=(w.panDelta||new a.P(0,0))._add(ee.panDelta)),ee.zoomDelta&&(w.zoomDelta=(w.zoomDelta||0)+ee.zoomDelta),ee.bearingDelta&&(w.bearingDelta=(w.bearingDelta||0)+ee.bearingDelta),ee.pitchDelta&&(w.pitchDelta=(w.pitchDelta||0)+ee.pitchDelta),ee.around!==void 0&&(w.around=ee.around),ee.pinchAround!==void 0&&(w.pinchAround=ee.pinchAround),ee.noInertia&&(w.noInertia=ee.noInertia),a.e(q,ue),a.e(Q,Ge);this._updateMapTransform(w,q,Q),this._changes=[]}_updateMapTransform(w,q,Q){let ee=this._map,ue=ee._getTransformForUpdate(),Ge=ee.terrain;if(!(Gn(w)||Ge&&this._terrainMovement))return this._fireEvents(q,Q,!0);let{panDelta:et,zoomDelta:mt,bearingDelta:Ft,pitchDelta:ir,around:or,pinchAround:kr}=w;kr!==void 0&&(or=kr),ee._stop(!0),or=or||ee.transform.centerPoint;let Vr=ue.pointLocation(et?or.sub(et):or);Ft&&(ue.bearing+=Ft),ir&&(ue.pitch+=ir),mt&&(ue.zoom+=mt),Ge?this._terrainMovement||!q.drag&&!q.zoom?q.drag&&this._terrainMovement?ue.center=ue.pointLocation(ue.centerPoint.sub(et)):ue.setLocationAtPoint(Vr,or):(this._terrainMovement=!0,this._map._elevationFreeze=!0,ue.setLocationAtPoint(Vr,or)):ue.setLocationAtPoint(Vr,or),ee._applyUpdatedTransform(ue),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(q,Q,!0)}_fireEvents(w,q,Q){let ee=Li(this._eventsInProgress),ue=Li(w),Ge={};for(let or in w){let{originalEvent:kr}=w[or];this._eventsInProgress[or]||(Ge[`${or}start`]=kr),this._eventsInProgress[or]=w[or]}!ee&&ue&&this._fireEvent("movestart",ue.originalEvent);for(let or in Ge)this._fireEvent(or,Ge[or]);ue&&this._fireEvent("move",ue.originalEvent);for(let or in w){let{originalEvent:kr}=w[or];this._fireEvent(or,kr)}let et={},mt;for(let or in this._eventsInProgress){let{handlerName:kr,originalEvent:Vr}=this._eventsInProgress[or];this._handlersById[kr].isActive()||(delete this._eventsInProgress[or],mt=q[kr]||Vr,et[`${or}end`]=mt)}for(let or in et)this._fireEvent(or,et[or]);let Ft=Li(this._eventsInProgress),ir=(ee||ue)&&!Ft;if(ir&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let or=this._map._getTransformForUpdate();or.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(or)}if(Q&&ir){this._updatingCamera=!0;let or=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),kr=Vr=>Vr!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Si("renderFrame",{timeStamp:w})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class ya extends a.E{constructor(w,q){super(),this._renderFrameCallback=()=>{let Q=Math.min((l.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=w,this._bearingSnap=q.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new a.N(this.transform.center.lng,this.transform.center.lat)}setCenter(w,q){return this.jumpTo({center:w},q)}panBy(w,q,Q){return w=a.P.convert(w).mult(-1),this.panTo(this.transform.center,a.e({offset:w},q),Q)}panTo(w,q,Q){return this.easeTo(a.e({center:w},q),Q)}getZoom(){return this.transform.zoom}setZoom(w,q){return this.jumpTo({zoom:w},q),this}zoomTo(w,q,Q){return this.easeTo(a.e({zoom:w},q),Q)}zoomIn(w,q){return this.zoomTo(this.getZoom()+1,w,q),this}zoomOut(w,q){return this.zoomTo(this.getZoom()-1,w,q),this}getBearing(){return this.transform.bearing}setBearing(w,q){return this.jumpTo({bearing:w},q),this}getPadding(){return this.transform.padding}setPadding(w,q){return this.jumpTo({padding:w},q),this}rotateTo(w,q,Q){return this.easeTo(a.e({bearing:w},q),Q)}resetNorth(w,q){return this.rotateTo(0,a.e({duration:1e3},w),q),this}resetNorthPitch(w,q){return this.easeTo(a.e({bearing:0,pitch:0,duration:1e3},w),q),this}snapToNorth(w,q){return Math.abs(this.getBearing()){if(this._zooming&&(ee.zoom=a.y.number(ue,qe,fr)),this._rotating&&(ee.bearing=a.y.number(Ge,Ft,fr)),this._pitching&&(ee.pitch=a.y.number(et,ir,fr)),this._padding&&(ee.interpolatePadding(mt,or,fr),Vr=ee.centerPoint.add(kr)),this.terrain&&!w.freezeElevation&&this._updateElevation(fr),pt)ee.setLocationAtPoint(pt,Ht);else{let Ar=ee.zoomScale(ee.zoom-ue),Rr=qe>ue?Math.min(2,tt):Math.max(.5,tt),ri=Math.pow(Rr,1-fr),si=ee.unproject(He.add(lt.mult(fr*ri)).mult(Ar));ee.setLocationAtPoint(ee.renderWorldCopies?si.wrap():si,Vr)}this._applyUpdatedTransform(ee),this._fireMoveEvents(q)},fr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(q,fr)},w),this}_prepareEase(w,q,Q={}){this._moving=!0,q||Q.moving||this.fire(new a.k("movestart",w)),this._zooming&&!Q.zooming&&this.fire(new a.k("zoomstart",w)),this._rotating&&!Q.rotating&&this.fire(new a.k("rotatestart",w)),this._pitching&&!Q.pitching&&this.fire(new a.k("pitchstart",w))}_prepareElevation(w){this._elevationCenter=w,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(w,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(w){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let q=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(w<1&&q!==this._elevationTarget){let Q=this._elevationTarget-this._elevationStart;this._elevationStart+=w*(Q-(q-(Q*w+this._elevationStart))/(1-w)),this._elevationTarget=q}this.transform.elevation=a.y.number(this._elevationStart,this._elevationTarget,w)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(w){let q=w.getCameraPosition(),Q=this.terrain.getElevationForLngLatZoom(q.lngLat,w.zoom);if(q.altitudethis._elevateCameraIfInsideTerrain(ee)),this.transformCameraUpdate&&q.push(ee=>this.transformCameraUpdate(ee)),!q.length)return;let Q=w.clone();for(let ee of q){let ue=Q.clone(),{center:Ge,zoom:et,pitch:mt,bearing:Ft,elevation:ir}=ee(ue);Ge&&(ue.center=Ge),et!==void 0&&(ue.zoom=et),mt!==void 0&&(ue.pitch=mt),Ft!==void 0&&(ue.bearing=Ft),ir!==void 0&&(ue.elevation=ir),Q.apply(ue)}this.transform.apply(Q)}_fireMoveEvents(w){this.fire(new a.k("move",w)),this._zooming&&this.fire(new a.k("zoom",w)),this._rotating&&this.fire(new a.k("rotate",w)),this._pitching&&this.fire(new a.k("pitch",w))}_afterEase(w,q){if(this._easeId&&q&&this._easeId===q)return;delete this._easeId;let Q=this._zooming,ee=this._rotating,ue=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Q&&this.fire(new a.k("zoomend",w)),ee&&this.fire(new a.k("rotateend",w)),ue&&this.fire(new a.k("pitchend",w)),this.fire(new a.k("moveend",w))}flyTo(w,q){var Q;if(!w.essential&&l.prefersReducedMotion){let Ua=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Ua,q)}this.stop(),w=a.e({offset:[0,0],speed:1.2,curve:1.42,easing:a.b9},w);let ee=this._getTransformForUpdate(),ue=ee.zoom,Ge=ee.bearing,et=ee.pitch,mt=ee.padding,Ft="bearing"in w?this._normalizeBearing(w.bearing,Ge):Ge,ir="pitch"in w?+w.pitch:et,or="padding"in w?w.padding:ee.padding,kr=a.P.convert(w.offset),Vr=ee.centerPoint.add(kr),he=ee.pointLocation(Vr),{center:Se,zoom:qe}=ee.getConstrained(a.N.convert(w.center||he),(Q=w.zoom)!==null&&Q!==void 0?Q:ue);this._normalizeCenter(Se,ee);let He=ee.zoomScale(qe-ue),lt=ee.project(he),tt=ee.project(Se).sub(lt),pt=w.curve,Ht=Math.max(ee.width,ee.height),nr=Ht/He,fr=tt.mag();if("minZoom"in w){let Ua=a.ac(Math.min(w.minZoom,ue,qe),ee.minZoom,ee.maxZoom),Fo=Ht/ee.zoomScale(Ua-ue);pt=Math.sqrt(Fo/fr*2)}let Ar=pt*pt;function Rr(Ua){let Fo=(nr*nr-Ht*Ht+(Ua?-1:1)*Ar*Ar*fr*fr)/(2*(Ua?nr:Ht)*Ar*fr);return Math.log(Math.sqrt(Fo*Fo+1)-Fo)}function ri(Ua){return(Math.exp(Ua)-Math.exp(-Ua))/2}function si(Ua){return(Math.exp(Ua)+Math.exp(-Ua))/2}let Mi=Rr(!1),hn=function(Ua){return si(Mi)/si(Mi+pt*Ua)},Zn=function(Ua){return Ht*((si(Mi)*(ri(Fo=Mi+pt*Ua)/si(Fo))-ri(Mi))/Ar)/fr;var Fo},Yn=(Rr(!0)-Mi)/pt;if(Math.abs(fr)<1e-6||!isFinite(Yn)){if(Math.abs(Ht-nr)<1e-6)return this.easeTo(w,q);let Ua=nr0,hn=Fo=>Math.exp(Ua*pt*Fo)}return w.duration="duration"in w?+w.duration:1e3*Yn/("screenSpeed"in w?+w.screenSpeed/pt:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=Ge!==Ft,this._pitching=ir!==et,this._padding=!ee.isPaddingEqual(or),this._prepareEase(q,!1),this.terrain&&this._prepareElevation(Se),this._ease(Ua=>{let Fo=Ua*Yn,vl=1/hn(Fo);ee.zoom=Ua===1?qe:ue+ee.scaleZoom(vl),this._rotating&&(ee.bearing=a.y.number(Ge,Ft,Ua)),this._pitching&&(ee.pitch=a.y.number(et,ir,Ua)),this._padding&&(ee.interpolatePadding(mt,or,Ua),Vr=ee.centerPoint.add(kr)),this.terrain&&!w.freezeElevation&&this._updateElevation(Ua);let Us=Ua===1?Se:ee.unproject(lt.add(tt.mult(Zn(Fo))).mult(vl));ee.setLocationAtPoint(ee.renderWorldCopies?Us.wrap():Us,Vr),this._applyUpdatedTransform(ee),this._fireMoveEvents(q)},()=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(q)},w),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(w,q){var Q;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let ee=this._onEaseEnd;delete this._onEaseEnd,ee.call(this,q)}return w||(Q=this.handlers)===null||Q===void 0||Q.stop(!1),this}_ease(w,q,Q){Q.animate===!1||Q.duration===0?(w(1),q()):(this._easeStart=l.now(),this._easeOptions=Q,this._onEaseFrame=w,this._onEaseEnd=q,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(w,q){w=a.b3(w,-180,180);let Q=Math.abs(w-q);return Math.abs(w-360-q)180?-360:Q<-180?360:0}queryTerrainElevation(w){return this.terrain?this.terrain.getElevationForLngLatZoom(a.N.convert(w),this.transform.tileZoom)-this.transform.elevation:null}}let ia={compact:!0,customAttribution:'
MapLibre'};class pa{constructor(w=ia){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=q=>{!q||q.sourceDataType!=="metadata"&&q.sourceDataType!=="visibility"&&q.dataType!=="style"&&q.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=w}getDefaultPosition(){return"bottom-right"}onAdd(w){return this._map=w,this._compact=this.options.compact,this._container=f.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=f.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=f.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){f.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(w,q){let Q=this._map._getUIString(`AttributionControl.${q}`);w.title=Q,w.setAttribute("aria-label",Q)}_updateAttributions(){if(!this._map.style)return;let w=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?w=w.concat(this.options.customAttribution.map(ee=>typeof ee!="string"?"":ee)):typeof this.options.customAttribution=="string"&&w.push(this.options.customAttribution)),this._map.style.stylesheet){let ee=this._map.style.stylesheet;this.styleOwner=ee.owner,this.styleId=ee.id}let q=this._map.style.sourceCaches;for(let ee in q){let ue=q[ee];if(ue.used||ue.usedForTerrain){let Ge=ue.getSource();Ge.attribution&&w.indexOf(Ge.attribution)<0&&w.push(Ge.attribution)}}w=w.filter(ee=>String(ee).trim()),w.sort((ee,ue)=>ee.length-ue.length),w=w.filter((ee,ue)=>{for(let Ge=ue+1;Ge=0)return!1;return!0});let Q=w.join(" | ");Q!==this._attribHTML&&(this._attribHTML=Q,w.length?(this._innerContainer.innerHTML=Q,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class va{constructor(w={}){this._updateCompact=()=>{let q=this._container.children;if(q.length){let Q=q[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&Q.classList.add("maplibregl-compact"):Q.classList.remove("maplibregl-compact")}},this.options=w}getDefaultPosition(){return"bottom-left"}onAdd(w){this._map=w,this._compact=this.options&&this.options.compact,this._container=f.create("div","maplibregl-ctrl");let q=f.create("a","maplibregl-ctrl-logo");return q.target="_blank",q.rel="noopener nofollow",q.href="https://maplibre.org/",q.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),q.setAttribute("rel","noopener nofollow"),this._container.appendChild(q),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){f.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class zn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(w){let q=++this._id;return this._queue.push({callback:w,id:q,cancelled:!1}),q}remove(w){let q=this._currentlyRunning,Q=q?this._queue.concat(q):this._queue;for(let ee of Q)if(ee.id===w)return void(ee.cancelled=!0)}run(w=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let q=this._currentlyRunning=this._queue;this._queue=[];for(let Q of q)if(!Q.cancelled&&(Q.callback(w),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var is=a.Y([{name:"a_pos3d",type:"Int16",components:3}]);class Cs extends a.E{constructor(w){super(),this.sourceCache=w,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,w.usedForTerrain=!0,w.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(w,q){this.sourceCache.update(w,q),this._renderableTilesKeys=[];let Q={};for(let ee of w.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:q}))Q[ee.key]=!0,this._renderableTilesKeys.push(ee.key),this._tiles[ee.key]||(ee.posMatrix=new Float64Array(16),a.aP(ee.posMatrix,0,a.X,0,a.X,0,1),this._tiles[ee.key]=new vt(ee,this.tileSize));for(let ee in this._tiles)Q[ee]||delete this._tiles[ee]}freeRtt(w){for(let q in this._tiles){let Q=this._tiles[q];(!w||Q.tileID.equals(w)||Q.tileID.isChildOf(w)||w.isChildOf(Q.tileID))&&(Q.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(w=>this.getTileByID(w))}getTileByID(w){return this._tiles[w]}getTerrainCoords(w){let q={};for(let Q of this._renderableTilesKeys){let ee=this._tiles[Q].tileID;if(ee.canonical.equals(w.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16),a.aP(ue.posMatrix,0,a.X,0,a.X,0,1),q[Q]=ue}else if(ee.canonical.isChildOf(w.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16);let Ge=ee.canonical.z-w.canonical.z,et=ee.canonical.x-(ee.canonical.x>>Ge<>Ge<>Ge;a.aP(ue.posMatrix,0,Ft,0,Ft,0,1),a.J(ue.posMatrix,ue.posMatrix,[-et*Ft,-mt*Ft,0]),q[Q]=ue}else if(w.canonical.isChildOf(ee.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16);let Ge=w.canonical.z-ee.canonical.z,et=w.canonical.x-(w.canonical.x>>Ge<>Ge<>Ge;a.aP(ue.posMatrix,0,a.X,0,a.X,0,1),a.J(ue.posMatrix,ue.posMatrix,[et*Ft,mt*Ft,0]),a.K(ue.posMatrix,ue.posMatrix,[1/2**Ge,1/2**Ge,0]),q[Q]=ue}}return q}getSourceTile(w,q){let Q=this.sourceCache._source,ee=w.overscaledZ-this.deltaZoom;if(ee>Q.maxzoom&&(ee=Q.maxzoom),ee=Q.minzoom&&(!ue||!ue.dem);)ue=this.sourceCache.getTileByID(w.scaledTo(ee--).key);return ue}tilesAfterTime(w=Date.now()){return Object.values(this._tiles).filter(q=>q.timeAdded>=w)}}class Ks{constructor(w,q,Q){this.painter=w,this.sourceCache=new Cs(q),this.options=Q,this.exaggeration=typeof Q.exaggeration=="number"?Q.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(w,q,Q,ee=a.X){var ue;if(!(q>=0&&q=0&&Qw.canonical.z&&(w.canonical.z>=ee?ue=w.canonical.z-ee:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let Ge=w.canonical.x-(w.canonical.x>>ue<>ue<>8<<4|ue>>8,q[Ge+3]=0;let Q=new a.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(q.buffer)),ee=new m(w,Q,w.gl.RGBA,{premultiply:!1});return ee.bind(w.gl.NEAREST,w.gl.CLAMP_TO_EDGE),this._coordsTexture=ee,ee}pointCoordinate(w){this.painter.maybeDrawDepthAndCoords(!0);let q=new Uint8Array(4),Q=this.painter.context,ee=Q.gl,ue=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),Ge=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),et=Math.round(this.painter.height/devicePixelRatio);Q.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(ue,et-Ge-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,q),Q.bindFramebuffer.set(null);let mt=q[0]+(q[2]>>4<<8),Ft=q[1]+((15&q[2])<<8),ir=this.coordsIndex[255-q[3]],or=ir&&this.sourceCache.getTileByID(ir);if(!or)return null;let kr=this._coordsTextureSize,Vr=(1<w.id!==q),this._recentlyUsed.push(w.id)}stampObject(w){w.stamp=++this._stamp}getOrCreateFreeObject(){for(let q of this._recentlyUsed)if(!this._objects[q].inUse)return this._objects[q];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let w=this._createObject(this._objects.length);return this._objects.push(w),w}freeObject(w){w.inUse=!1}freeAllObjects(){for(let w of this._objects)this.freeObject(w)}isFull(){return!(this._objects.length!w.inUse)===!1}}let xl={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Bl{constructor(w,q){this.painter=w,this.terrain=q,this.pool=new dl(w.context,30,q.sourceCache.tileSize*q.qualityFactor)}destruct(){this.pool.destruct()}getTexture(w){return this.pool.getObjectForId(w.rtt[this._stacks.length-1].id).texture}prepareForRender(w,q){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=w._order.filter(Q=>!w._layers[Q].isHidden(q)),this._coordsDescendingInv={};for(let Q in w.sourceCaches){this._coordsDescendingInv[Q]={};let ee=w.sourceCaches[Q].getVisibleCoordinates();for(let ue of ee){let Ge=this.terrain.sourceCache.getTerrainCoords(ue);for(let et in Ge)this._coordsDescendingInv[Q][et]||(this._coordsDescendingInv[Q][et]=[]),this._coordsDescendingInv[Q][et].push(Ge[et])}}this._coordsDescendingInvStr={};for(let Q of w._order){let ee=w._layers[Q],ue=ee.source;if(xl[ee.type]&&!this._coordsDescendingInvStr[ue]){this._coordsDescendingInvStr[ue]={};for(let Ge in this._coordsDescendingInv[ue])this._coordsDescendingInvStr[ue][Ge]=this._coordsDescendingInv[ue][Ge].map(et=>et.key).sort().join()}}for(let Q of this._renderableTiles)for(let ee in this._coordsDescendingInvStr){let ue=this._coordsDescendingInvStr[ee][Q.tileID.key];ue&&ue!==Q.rttCoords[ee]&&(Q.rtt=[])}}renderLayer(w){if(w.isHidden(this.painter.transform.zoom))return!1;let q=w.type,Q=this.painter,ee=this._renderableLayerIds[this._renderableLayerIds.length-1]===w.id;if(xl[q]&&(this._prevType&&xl[this._prevType]||this._stacks.push([]),this._prevType=q,this._stacks[this._stacks.length-1].push(w.id),!ee))return!0;if(xl[this._prevType]||xl[q]&&ee){this._prevType=q;let ue=this._stacks.length-1,Ge=this._stacks[ue]||[];for(let et of this._renderableTiles){if(this.pool.isFull()&&(as(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(et),et.rtt[ue]){let Ft=this.pool.getObjectForId(et.rtt[ue].id);if(Ft.stamp===et.rtt[ue].stamp){this.pool.useObject(Ft);continue}}let mt=this.pool.getOrCreateFreeObject();this.pool.useObject(mt),this.pool.stampObject(mt),et.rtt[ue]={id:mt.id,stamp:mt.stamp},Q.context.bindFramebuffer.set(mt.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Ft=0;Ft{le.touchstart=le.dragStart,le.touchmoveWindow=le.dragMove,le.touchend=le.dragEnd},ja={showCompass:!0,showZoom:!0,visualizePitch:!1};class ns{constructor(w,q,Q=!1){this.mousedown=Ge=>{this.startMouse(a.e({},Ge,{ctrlKey:!0,preventDefault:()=>Ge.preventDefault()}),f.mousePos(this.element,Ge)),f.addEventListener(window,"mousemove",this.mousemove),f.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=Ge=>{this.moveMouse(Ge,f.mousePos(this.element,Ge))},this.mouseup=Ge=>{this.mouseRotate.dragEnd(Ge),this.mousePitch&&this.mousePitch.dragEnd(Ge),this.offTemp()},this.touchstart=Ge=>{Ge.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=f.touchPos(this.element,Ge.targetTouches)[0],this.startTouch(Ge,this._startPos),f.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.addEventListener(window,"touchend",this.touchend))},this.touchmove=Ge=>{Ge.targetTouches.length!==1?this.reset():(this._lastPos=f.touchPos(this.element,Ge.targetTouches)[0],this.moveTouch(Ge,this._lastPos))},this.touchend=Ge=>{Ge.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let ee=w.dragRotate._mouseRotate.getClickTolerance(),ue=w.dragRotate._mousePitch.getClickTolerance();this.element=q,this.mouseRotate=Hs({clickTolerance:ee,enable:!0}),this.touchRotate=(({enable:Ge,clickTolerance:et,bearingDegreesPerPixelMoved:mt=.8})=>{let Ft=new cl;return new Da({clickTolerance:et,move:(ir,or)=>({bearingDelta:(or.x-ir.x)*mt}),moveStateManager:Ft,enable:Ge,assignEvents:Ul})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=Ro({clickTolerance:ue,enable:!0}),this.touchPitch=(({enable:Ge,clickTolerance:et,pitchDegreesPerPixelMoved:mt=-.5})=>{let Ft=new cl;return new Da({clickTolerance:et,move:(ir,or)=>({pitchDelta:(or.y-ir.y)*mt}),moveStateManager:Ft,enable:Ge,assignEvents:Ul})})({clickTolerance:ue,enable:!0})),f.addEventListener(q,"mousedown",this.mousedown),f.addEventListener(q,"touchstart",this.touchstart,{passive:!1}),f.addEventListener(q,"touchcancel",this.reset)}startMouse(w,q){this.mouseRotate.dragStart(w,q),this.mousePitch&&this.mousePitch.dragStart(w,q),f.disableDrag()}startTouch(w,q){this.touchRotate.dragStart(w,q),this.touchPitch&&this.touchPitch.dragStart(w,q),f.disableDrag()}moveMouse(w,q){let Q=this.map,{bearingDelta:ee}=this.mouseRotate.dragMove(w,q)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.mousePitch){let{pitchDelta:ue}=this.mousePitch.dragMove(w,q)||{};ue&&Q.setPitch(Q.getPitch()+ue)}}moveTouch(w,q){let Q=this.map,{bearingDelta:ee}=this.touchRotate.dragMove(w,q)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.touchPitch){let{pitchDelta:ue}=this.touchPitch.dragMove(w,q)||{};ue&&Q.setPitch(Q.getPitch()+ue)}}off(){let w=this.element;f.removeEventListener(w,"mousedown",this.mousedown),f.removeEventListener(w,"touchstart",this.touchstart,{passive:!1}),f.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.removeEventListener(window,"touchend",this.touchend),f.removeEventListener(w,"touchcancel",this.reset),this.offTemp()}offTemp(){f.enableDrag(),f.removeEventListener(window,"mousemove",this.mousemove),f.removeEventListener(window,"mouseup",this.mouseup),f.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.removeEventListener(window,"touchend",this.touchend)}}let Js;function cs(le,w,q){let Q=new a.N(le.lng,le.lat);if(le=new a.N(le.lng,le.lat),w){let ee=new a.N(le.lng-360,le.lat),ue=new a.N(le.lng+360,le.lat),Ge=q.locationPoint(le).distSqr(w);q.locationPoint(ee).distSqr(w)180;){let ee=q.locationPoint(le);if(ee.x>=0&&ee.y>=0&&ee.x<=q.width&&ee.y<=q.height)break;le.lng>q.center.lng?le.lng-=360:le.lng+=360}return le.lng!==Q.lng&&q.locationPoint(le).y>q.height/2-q.getHorizon()?le:Q}let sl={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ll(le,w,q){let Q=le.classList;for(let ee in sl)Q.remove(`maplibregl-${q}-anchor-${ee}`);Q.add(`maplibregl-${q}-anchor-${w}`)}class il extends a.E{constructor(w){if(super(),this._onKeyPress=q=>{let Q=q.code,ee=q.charCode||q.keyCode;Q!=="Space"&&Q!=="Enter"&&ee!==32&&ee!==13||this.togglePopup()},this._onMapClick=q=>{let Q=q.originalEvent.target,ee=this._element;this._popup&&(Q===ee||ee.contains(Q))&&this.togglePopup()},this._update=q=>{var Q;if(!this._map)return;let ee=this._map.loaded()&&!this._map.isMoving();((q==null?void 0:q.type)==="terrain"||(q==null?void 0:q.type)==="render"&&!ee)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?cs(this._lngLat,this._flatPos,this._map.transform):(Q=this._lngLat)===null||Q===void 0?void 0:Q.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let ue="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?ue=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(ue=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let Ge="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?Ge="rotateX(0deg)":this._pitchAlignment==="map"&&(Ge=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||q&&q.type!=="moveend"||(this._pos=this._pos.round()),f.setTransform(this._element,`${sl[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${Ge} ${ue}`),l.frameAsync(new AbortController).then(()=>{this._updateOpacity(q&&q.type==="moveend")}).catch(()=>{})},this._onMove=q=>{if(!this._isDragging){let Q=this._clickTolerance||this._map._clickTolerance;this._isDragging=q.point.dist(this._pointerdownPos)>=Q}this._isDragging&&(this._pos=q.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.k("dragstart"))),this.fire(new a.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.k("dragend")),this._state="inactive"},this._addDragHandler=q=>{this._element.contains(q.originalEvent.target)&&(q.preventDefault(),this._positionDelta=q.point.sub(this._pos).add(this._offset),this._pointerdownPos=q.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=w&&w.anchor||"center",this._color=w&&w.color||"#3FB1CE",this._scale=w&&w.scale||1,this._draggable=w&&w.draggable||!1,this._clickTolerance=w&&w.clickTolerance||0,this._subpixelPositioning=w&&w.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=w&&w.rotation||0,this._rotationAlignment=w&&w.rotationAlignment||"auto",this._pitchAlignment=w&&w.pitchAlignment&&w.pitchAlignment!=="auto"?w.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(w==null?void 0:w.opacity,w==null?void 0:w.opacityWhenCovered),w&&w.element)this._element=w.element,this._offset=a.P.convert(w&&w.offset||[0,0]);else{this._defaultMarker=!0,this._element=f.create("div");let q=f.createNS("http://www.w3.org/2000/svg","svg"),Q=41,ee=27;q.setAttributeNS(null,"display","block"),q.setAttributeNS(null,"height",`${Q}px`),q.setAttributeNS(null,"width",`${ee}px`),q.setAttributeNS(null,"viewBox",`0 0 ${ee} ${Q}`);let ue=f.createNS("http://www.w3.org/2000/svg","g");ue.setAttributeNS(null,"stroke","none"),ue.setAttributeNS(null,"stroke-width","1"),ue.setAttributeNS(null,"fill","none"),ue.setAttributeNS(null,"fill-rule","evenodd");let Ge=f.createNS("http://www.w3.org/2000/svg","g");Ge.setAttributeNS(null,"fill-rule","nonzero");let et=f.createNS("http://www.w3.org/2000/svg","g");et.setAttributeNS(null,"transform","translate(3.0, 29.0)"),et.setAttributeNS(null,"fill","#000000");let mt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let He of mt){let lt=f.createNS("http://www.w3.org/2000/svg","ellipse");lt.setAttributeNS(null,"opacity","0.04"),lt.setAttributeNS(null,"cx","10.5"),lt.setAttributeNS(null,"cy","5.80029008"),lt.setAttributeNS(null,"rx",He.rx),lt.setAttributeNS(null,"ry",He.ry),et.appendChild(lt)}let Ft=f.createNS("http://www.w3.org/2000/svg","g");Ft.setAttributeNS(null,"fill",this._color);let ir=f.createNS("http://www.w3.org/2000/svg","path");ir.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),Ft.appendChild(ir);let or=f.createNS("http://www.w3.org/2000/svg","g");or.setAttributeNS(null,"opacity","0.25"),or.setAttributeNS(null,"fill","#000000");let kr=f.createNS("http://www.w3.org/2000/svg","path");kr.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),or.appendChild(kr);let Vr=f.createNS("http://www.w3.org/2000/svg","g");Vr.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Vr.setAttributeNS(null,"fill","#FFFFFF");let he=f.createNS("http://www.w3.org/2000/svg","g");he.setAttributeNS(null,"transform","translate(8.0, 8.0)");let Se=f.createNS("http://www.w3.org/2000/svg","circle");Se.setAttributeNS(null,"fill","#000000"),Se.setAttributeNS(null,"opacity","0.25"),Se.setAttributeNS(null,"cx","5.5"),Se.setAttributeNS(null,"cy","5.5"),Se.setAttributeNS(null,"r","5.4999962");let qe=f.createNS("http://www.w3.org/2000/svg","circle");qe.setAttributeNS(null,"fill","#FFFFFF"),qe.setAttributeNS(null,"cx","5.5"),qe.setAttributeNS(null,"cy","5.5"),qe.setAttributeNS(null,"r","5.4999962"),he.appendChild(Se),he.appendChild(qe),Ge.appendChild(et),Ge.appendChild(Ft),Ge.appendChild(or),Ge.appendChild(Vr),Ge.appendChild(he),q.appendChild(Ge),q.setAttributeNS(null,"height",Q*this._scale+"px"),q.setAttributeNS(null,"width",ee*this._scale+"px"),this._element.appendChild(q),this._offset=a.P.convert(w&&w.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",q=>{q.preventDefault()}),this._element.addEventListener("mousedown",q=>{q.preventDefault()}),ll(this._element,this._anchor,"marker"),w&&w.className)for(let q of w.className.split(" "))this._element.classList.add(q);this._popup=null}addTo(w){return this.remove(),this._map=w,this._element.setAttribute("aria-label",w._getUIString("Marker.Title")),w.getCanvasContainer().appendChild(this._element),w.on("move",this._update),w.on("moveend",this._update),w.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),f.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(w){return this._lngLat=a.N.convert(w),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(w){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),w){if(!("offset"in w.options)){let ee=Math.abs(13.5)/Math.SQRT2;w.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[ee,-1*(38.1-13.5+ee)],"bottom-right":[-ee,-1*(38.1-13.5+ee)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=w,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(w){return this._subpixelPositioning=w,this}getPopup(){return this._popup}togglePopup(){let w=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:w?(w.isOpen()?w.remove():(w.setLngLat(this._lngLat),w.addTo(this._map)),this):this}_updateOpacity(w=!1){var q,Q;if(!(!((q=this._map)===null||q===void 0)&&q.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(w)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}let ee=this._map,ue=ee.terrain.depthAtPoint(this._pos),Ge=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,Ge)-ue<.006)return void(this._element.style.opacity=this._opacity);let et=-this._offset.y/ee.transform._pixelPerMeter,mt=Math.sin(ee.getPitch()*Math.PI/180)*et,Ft=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),ir=ee.transform.lngLatToCameraDepth(this._lngLat,Ge+mt)-Ft>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&ir&&this._popup.remove(),this._element.style.opacity=ir?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(w){return this._offset=a.P.convert(w),this._update(),this}addClassName(w){this._element.classList.add(w)}removeClassName(w){this._element.classList.remove(w)}toggleClassName(w){return this._element.classList.toggle(w)}setDraggable(w){return this._draggable=!!w,this._map&&(w?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(w){return this._rotation=w||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(w){return this._rotationAlignment=w||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(w){return this._pitchAlignment=w&&w!=="auto"?w:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(w,q){return w===void 0&&q===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),w!==void 0&&(this._opacity=w),q!==void 0&&(this._opacityWhenCovered=q),this._map&&this._updateOpacity(!0),this}}let zl={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Ml=0,Rl=!1,Al={maxWidth:100,unit:"metric"};function Ll(le,w,q){let Q=q&&q.maxWidth||100,ee=le._container.clientHeight/2,ue=le.unproject([0,ee]),Ge=le.unproject([Q,ee]),et=ue.distanceTo(Ge);if(q&&q.unit==="imperial"){let mt=3.2808*et;mt>5280?ms(w,Q,mt/5280,le._getUIString("ScaleControl.Miles")):ms(w,Q,mt,le._getUIString("ScaleControl.Feet"))}else q&&q.unit==="nautical"?ms(w,Q,et/1852,le._getUIString("ScaleControl.NauticalMiles")):et>=1e3?ms(w,Q,et/1e3,le._getUIString("ScaleControl.Kilometers")):ms(w,Q,et,le._getUIString("ScaleControl.Meters"))}function ms(le,w,q,Q){let ee=function(ue){let Ge=Math.pow(10,`${Math.floor(ue)}`.length-1),et=ue/Ge;return et=et>=10?10:et>=5?5:et>=3?3:et>=2?2:et>=1?1:function(mt){let Ft=Math.pow(10,Math.ceil(-Math.log(mt)/Math.LN10));return Math.round(mt*Ft)/Ft}(et),Ge*et}(q);le.style.width=w*(ee/q)+"px",le.innerHTML=`${ee} ${Q}`}let Os={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Xl=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function Vl(le){if(le){if(typeof le=="number"){let w=Math.round(Math.abs(le)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,le),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-le),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(le,0),right:new a.P(-le,0)}}if(le instanceof a.P||Array.isArray(le)){let w=a.P.convert(le);return{center:w,top:w,"top-left":w,"top-right":w,bottom:w,"bottom-left":w,"bottom-right":w,left:w,right:w}}return{center:a.P.convert(le.center||[0,0]),top:a.P.convert(le.top||[0,0]),"top-left":a.P.convert(le["top-left"]||[0,0]),"top-right":a.P.convert(le["top-right"]||[0,0]),bottom:a.P.convert(le.bottom||[0,0]),"bottom-left":a.P.convert(le["bottom-left"]||[0,0]),"bottom-right":a.P.convert(le["bottom-right"]||[0,0]),left:a.P.convert(le.left||[0,0]),right:a.P.convert(le.right||[0,0])}}return Vl(new a.P(0,0))}let Nl=o;i.AJAXError=a.bh,i.Evented=a.E,i.LngLat=a.N,i.MercatorCoordinate=a.Z,i.Point=a.P,i.addProtocol=a.bi,i.config=a.a,i.removeProtocol=a.bj,i.AttributionControl=pa,i.BoxZoomHandler=ss,i.CanvasSource=St,i.CooperativeGesturesHandler=hi,i.DoubleClickZoomHandler=gi,i.DragPanHandler=Ji,i.DragRotateHandler=Fn,i.EdgeInsets=Vo,i.FullscreenControl=class extends a.E{constructor(le={}){super(),this._onFullscreenChange=()=>{var w;let q=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((w=q==null?void 0:q.shadowRoot)===null||w===void 0)&&w.fullscreenElement;)q=q.shadowRoot.fullscreenElement;q===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,le&&le.container&&(le.container instanceof HTMLElement?this._container=le.container:a.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(le){return this._map=le,this._container||(this._container=this._map.getContainer()),this._controlContainer=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){f.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let le=this._fullscreenButton=f.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);f.create("span","maplibregl-ctrl-icon",le).setAttribute("aria-hidden","true"),le.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let le=this._getTitle();this._fullscreenButton.setAttribute("aria-label",le),this._fullscreenButton.title=le}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new a.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new a.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},i.GeoJSONSource=it,i.GeolocateControl=class extends a.E{constructor(le){super(),this._onSuccess=w=>{if(this._map){if(this._isOutOfMapMaxBounds(w))return this._setErrorState(),this.fire(new a.k("outofmaxbounds",w)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=w,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(w),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(w),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new a.k("geolocate",w)),this._finish()}},this._updateCamera=w=>{let q=new a.N(w.coords.longitude,w.coords.latitude),Q=w.coords.accuracy,ee=this._map.getBearing(),ue=a.e({bearing:ee},this.options.fitBoundsOptions),Ge=ce.fromLngLat(q,Q);this._map.fitBounds(Ge,ue,{geolocateSource:!0})},this._updateMarker=w=>{if(w){let q=new a.N(w.coords.longitude,w.coords.latitude);this._accuracyCircleMarker.setLngLat(q).addTo(this._map),this._userLocationDotMarker.setLngLat(q).addTo(this._map),this._accuracy=w.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=w=>{if(this._map){if(this.options.trackUserLocation)if(w.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let q=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(w.code===3&&Rl)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new a.k("error",w)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",w=>w.preventDefault()),this._geolocateButton=f.create("button","maplibregl-ctrl-geolocate",this._container),f.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=w=>{if(this._map){if(w===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");let q=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q)}else{let q=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=f.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new il({element:this._dotElement}),this._circleElement=f.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new il({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",q=>{q.geolocateSource||this._watchState!=="ACTIVE_LOCK"||q.originalEvent&&q.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new a.k("trackuserlocationend")),this.fire(new a.k("userlocationlostfocus")))})}},this.options=a.e({},zl,le)}onAdd(le){return this._map=le,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return a._(this,arguments,void 0,function*(w=!1){if(Js!==void 0&&!w)return Js;if(window.navigator.permissions===void 0)return Js=!!window.navigator.geolocation,Js;try{Js=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(q){Js=!!window.navigator.geolocation}return Js})}().then(w=>this._finishSetupUI(w)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),f.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Ml=0,Rl=!1}_isOutOfMapMaxBounds(le){let w=this._map.getMaxBounds(),q=le.coords;return w&&(q.longitudew.getEast()||q.latitudew.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let le=this._map.getBounds(),w=le.getSouthEast(),q=le.getNorthEast(),Q=w.distanceTo(q),ee=Math.ceil(this._accuracy/(Q/this._map._container.clientHeight)*2);this._circleElement.style.width=`${ee}px`,this._circleElement.style.height=`${ee}px`}trigger(){if(!this._setup)return a.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Ml--,Rl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new a.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.k("trackuserlocationstart")),this.fire(new a.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let le;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Ml++,Ml>1?(le={maximumAge:6e5,timeout:0},Rl=!0):(le=this.options.positionOptions,Rl=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,le)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},i.Hash=ks,i.ImageSource=kt,i.KeyboardHandler=Gt,i.LngLatBounds=ce,i.LogoControl=va,i.Map=class extends ya{constructor(le){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Zl),le);if(w.minZoom!=null&&w.maxZoom!=null&&w.minZoom>w.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(w.minPitch!=null&&w.maxPitch!=null&&w.minPitch>w.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(w.minPitch!=null&&w.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(w.maxPitch!=null&&w.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Lo(w.minZoom,w.maxZoom,w.minPitch,w.maxPitch,w.renderWorldCopies),{bearingSnap:w.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new zn,this._controls=[],this._mapId=a.a4(),this._contextLost=q=>{q.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new a.k("webglcontextlost",{originalEvent:q}))},this._contextRestored=q=>{this._setupPainter(),this.resize(),this._update(),this.fire(new a.k("webglcontextrestored",{originalEvent:q}))},this._onMapScroll=q=>{if(q.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=w.interactive,this._maxTileCacheSize=w.maxTileCacheSize,this._maxTileCacheZoomLevels=w.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=w.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=w.preserveDrawingBuffer===!0,this._antialias=w.antialias===!0,this._trackResize=w.trackResize===!0,this._bearingSnap=w.bearingSnap,this._refreshExpiredTiles=w.refreshExpiredTiles===!0,this._fadeDuration=w.fadeDuration,this._crossSourceCollisions=w.crossSourceCollisions===!0,this._collectResourceTiming=w.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},bl),w.locale),this._clickTolerance=w.clickTolerance,this._overridePixelRatio=w.pixelRatio,this._maxCanvasSize=w.maxCanvasSize,this.transformCameraUpdate=w.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=w.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=v.addThrottleControl(()=>this.isMoving()),this._requestManager=new k(w.transformRequest),typeof w.container=="string"){if(this._container=document.getElementById(w.container),!this._container)throw new Error(`Container '${w.container}' not found.`)}else{if(!(w.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=w.container}if(w.maxBounds&&this.setMaxBounds(w.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window!="undefined"){addEventListener("online",this._onWindowOnline,!1);let q=!1,Q=xs(ee=>{this._trackResize&&!this._removed&&(this.resize(ee),this.redraw())},50);this._resizeObserver=new ResizeObserver(ee=>{q?Q(ee):q=!0}),this._resizeObserver.observe(this._container)}this.handlers=new ta(this,w),this._hash=w.hash&&new ks(typeof w.hash=="string"&&w.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:w.center,zoom:w.zoom,bearing:w.bearing,pitch:w.pitch}),w.bounds&&(this.resize(),this.fitBounds(w.bounds,a.e({},w.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=w.localIdeographFontFamily,this._validateStyle=w.validateStyle,w.style&&this.setStyle(w.style,{localIdeographFontFamily:w.localIdeographFontFamily}),w.attributionControl&&this.addControl(new pa(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new va,w.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",q=>{this._update(q.dataType==="style"),this.fire(new a.k(`${q.dataType}data`,q))}),this.on("dataloading",q=>{this.fire(new a.k(`${q.dataType}dataloading`,q))}),this.on("dataabort",q=>{this.fire(new a.k("sourcedataabort",q))})}_getMapId(){return this._mapId}addControl(le,w){if(w===void 0&&(w=le.getDefaultPosition?le.getDefaultPosition():"top-right"),!le||!le.onAdd)return this.fire(new a.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let q=le.onAdd(this);this._controls.push(le);let Q=this._controlPositions[w];return w.indexOf("bottom")!==-1?Q.insertBefore(q,Q.firstChild):Q.appendChild(q),this}removeControl(le){if(!le||!le.onRemove)return this.fire(new a.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let w=this._controls.indexOf(le);return w>-1&&this._controls.splice(w,1),le.onRemove(this),this}hasControl(le){return this._controls.indexOf(le)>-1}calculateCameraOptionsFromTo(le,w,q,Q){return Q==null&&this.terrain&&(Q=this.terrain.getElevationForLngLatZoom(q,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(le,w,q,Q)}resize(le){var w;let q=this._containerDimensions(),Q=q[0],ee=q[1],ue=this._getClampedPixelRatio(Q,ee);if(this._resizeCanvas(Q,ee,ue),this.painter.resize(Q,ee,ue),this.painter.overLimit()){let et=this.painter.context.gl;this._maxCanvasSize=[et.drawingBufferWidth,et.drawingBufferHeight];let mt=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,mt),this.painter.resize(Q,ee,mt)}this.transform.resize(Q,ee),(w=this._requestedCameraState)===null||w===void 0||w.resize(Q,ee);let Ge=!this._moving;return Ge&&(this.stop(),this.fire(new a.k("movestart",le)).fire(new a.k("move",le))),this.fire(new a.k("resize",le)),Ge&&this.fire(new a.k("moveend",le)),this}_getClampedPixelRatio(le,w){let{0:q,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),ue=le*ee,Ge=w*ee;return Math.min(ue>q?q/ue:1,Ge>Q?Q/Ge:1)*ee}getPixelRatio(){var le;return(le=this._overridePixelRatio)!==null&&le!==void 0?le:devicePixelRatio}setPixelRatio(le){this._overridePixelRatio=le,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(le){return this.transform.setMaxBounds(ce.convert(le)),this._update()}setMinZoom(le){if((le=le==null?-2:le)>=-2&&le<=this.transform.maxZoom)return this.transform.minZoom=le,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=le,this._update(),this.getZoom()>le&&this.setZoom(le),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(le){if((le=le==null?0:le)<0)throw new Error("minPitch must be greater than or equal to 0");if(le>=0&&le<=this.transform.maxPitch)return this.transform.minPitch=le,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(le>=this.transform.minPitch)return this.transform.maxPitch=le,this._update(),this.getPitch()>le&&this.setPitch(le),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(le){return this.transform.renderWorldCopies=le,this._update()}project(le){return this.transform.locationPoint(a.N.convert(le),this.style&&this.terrain)}unproject(le){return this.transform.pointLocation(a.P.convert(le),this.terrain)}isMoving(){var le;return this._moving||((le=this.handlers)===null||le===void 0?void 0:le.isMoving())}isZooming(){var le;return this._zooming||((le=this.handlers)===null||le===void 0?void 0:le.isZooming())}isRotating(){var le;return this._rotating||((le=this.handlers)===null||le===void 0?void 0:le.isRotating())}_createDelegatedListener(le,w,q){if(le==="mouseenter"||le==="mouseover"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:ue=>{let Ge=w.filter(mt=>this.getLayer(mt)),et=Ge.length!==0?this.queryRenderedFeatures(ue.point,{layers:Ge}):[];et.length?Q||(Q=!0,q.call(this,new Aa(le,this,ue.originalEvent,{features:et}))):Q=!1},mouseout:()=>{Q=!1}}}}if(le==="mouseleave"||le==="mouseout"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:Ge=>{let et=w.filter(mt=>this.getLayer(mt));(et.length!==0?this.queryRenderedFeatures(Ge.point,{layers:et}):[]).length?Q=!0:Q&&(Q=!1,q.call(this,new Aa(le,this,Ge.originalEvent)))},mouseout:Ge=>{Q&&(Q=!1,q.call(this,new Aa(le,this,Ge.originalEvent)))}}}}{let Q=ee=>{let ue=w.filter(et=>this.getLayer(et)),Ge=ue.length!==0?this.queryRenderedFeatures(ee.point,{layers:ue}):[];Ge.length&&(ee.features=Ge,q.call(this,ee),delete ee.features)};return{layers:w,listener:q,delegates:{[le]:Q}}}}_saveDelegatedListener(le,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[le]=this._delegatedListeners[le]||[],this._delegatedListeners[le].push(w)}_removeDelegatedListener(le,w,q){if(!this._delegatedListeners||!this._delegatedListeners[le])return;let Q=this._delegatedListeners[le];for(let ee=0;eew.includes(Ge))){for(let Ge in ue.delegates)this.off(Ge,ue.delegates[Ge]);return void Q.splice(ee,1)}}}on(le,w,q){if(q===void 0)return super.on(le,w);let Q=this._createDelegatedListener(le,typeof w=="string"?[w]:w,q);this._saveDelegatedListener(le,Q);for(let ee in Q.delegates)this.on(ee,Q.delegates[ee]);return this}once(le,w,q){if(q===void 0)return super.once(le,w);let Q=typeof w=="string"?[w]:w,ee=this._createDelegatedListener(le,Q,q);for(let ue in ee.delegates){let Ge=ee.delegates[ue];ee.delegates[ue]=(...et)=>{this._removeDelegatedListener(le,Q,q),Ge(...et)}}this._saveDelegatedListener(le,ee);for(let ue in ee.delegates)this.once(ue,ee.delegates[ue]);return this}off(le,w,q){return q===void 0?super.off(le,w):(this._removeDelegatedListener(le,typeof w=="string"?[w]:w,q),this)}queryRenderedFeatures(le,w){if(!this.style)return[];let q,Q=le instanceof a.P||Array.isArray(le),ee=Q?le:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(Q?{}:le)||{},ee instanceof a.P||typeof ee[0]=="number")q=[a.P.convert(ee)];else{let ue=a.P.convert(ee[0]),Ge=a.P.convert(ee[1]);q=[ue,new a.P(Ge.x,ue.y),Ge,new a.P(ue.x,Ge.y),ue]}return this.style.queryRenderedFeatures(q,w,this.transform)}querySourceFeatures(le,w){return this.style.querySourceFeatures(le,w)}setStyle(le,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&le?(this._diffStyle(le,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(le,w))}setTransformRequest(le){return this._requestManager.setTransformRequest(le),this}_getUIString(le){let w=this._locale[le];if(w==null)throw new Error(`Missing UI string '${le}'`);return w}_updateStyle(le,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(le,w));let q=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!le)),le?(this.style=new xn(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof le=="string"?this.style.loadURL(le,w,q):this.style.loadJSON(le,w,q),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new xn(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(le,w){if(typeof le=="string"){let q=this._requestManager.transformRequest(le,"Style");a.h(q,new AbortController).then(Q=>{this._updateDiff(Q.data,w)}).catch(Q=>{Q&&this.fire(new a.j(Q))})}else typeof le=="object"&&this._updateDiff(le,w)}_updateDiff(le,w){try{this.style.setState(le,w)&&this._update(!0)}catch(q){a.w(`Unable to perform style diff: ${q.message||q.error||q}. Rebuilding the style from scratch.`),this._updateStyle(le,w)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.w("There is no style added to the map.")}addSource(le,w){return this._lazyInitEmptyStyle(),this.style.addSource(le,w),this._update(!0)}isSourceLoaded(le){let w=this.style&&this.style.sourceCaches[le];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${le}'`)))}setTerrain(le){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),le){let w=this.style.sourceCaches[le.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${le.source}`);this.terrain===null&&w.reload();for(let q in this.style._layers){let Q=this.style._layers[q];Q.type==="hillshade"&&Q.source===le.source&&a.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Ks(this.painter,w,le),this.painter.renderToTexture=new Bl(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=q=>{q.dataType==="style"?this.terrain.sourceCache.freeRtt():q.dataType==="source"&&q.tile&&(q.sourceId!==le.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(q.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new a.k("terrain",{terrain:le})),this}getTerrain(){var le,w;return(w=(le=this.terrain)===null||le===void 0?void 0:le.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let le=this.style&&this.style.sourceCaches;for(let w in le){let q=le[w]._tiles;for(let Q in q){let ee=q[Q];if(ee.state!=="loaded"&&ee.state!=="errored")return!1}}return!0}removeSource(le){return this.style.removeSource(le),this._update(!0)}getSource(le){return this.style.getSource(le)}addImage(le,w,q={}){let{pixelRatio:Q=1,sdf:ee=!1,stretchX:ue,stretchY:Ge,content:et,textFitWidth:mt,textFitHeight:Ft}=q;if(this._lazyInitEmptyStyle(),!(w instanceof HTMLImageElement||a.b(w))){if(w.width===void 0||w.height===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:ir,height:or,data:kr}=w,Vr=w;return this.style.addImage(le,{data:new a.R({width:ir,height:or},new Uint8Array(kr)),pixelRatio:Q,stretchX:ue,stretchY:Ge,content:et,textFitWidth:mt,textFitHeight:Ft,sdf:ee,version:0,userImage:Vr}),Vr.onAdd&&Vr.onAdd(this,le),this}}{let{width:ir,height:or,data:kr}=l.getImageData(w);this.style.addImage(le,{data:new a.R({width:ir,height:or},kr),pixelRatio:Q,stretchX:ue,stretchY:Ge,content:et,textFitWidth:mt,textFitHeight:Ft,sdf:ee,version:0})}}updateImage(le,w){let q=this.style.getImage(le);if(!q)return this.fire(new a.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let Q=w instanceof HTMLImageElement||a.b(w)?l.getImageData(w):w,{width:ee,height:ue,data:Ge}=Q;if(ee===void 0||ue===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(ee!==q.data.width||ue!==q.data.height)return this.fire(new a.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let et=!(w instanceof HTMLImageElement||a.b(w));return q.data.replace(Ge,et),this.style.updateImage(le,q),this}getImage(le){return this.style.getImage(le)}hasImage(le){return le?!!this.style.getImage(le):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(le){this.style.removeImage(le)}loadImage(le){return v.getImage(this._requestManager.transformRequest(le,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(le,w){return this._lazyInitEmptyStyle(),this.style.addLayer(le,w),this._update(!0)}moveLayer(le,w){return this.style.moveLayer(le,w),this._update(!0)}removeLayer(le){return this.style.removeLayer(le),this._update(!0)}getLayer(le){return this.style.getLayer(le)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(le,w,q){return this.style.setLayerZoomRange(le,w,q),this._update(!0)}setFilter(le,w,q={}){return this.style.setFilter(le,w,q),this._update(!0)}getFilter(le){return this.style.getFilter(le)}setPaintProperty(le,w,q,Q={}){return this.style.setPaintProperty(le,w,q,Q),this._update(!0)}getPaintProperty(le,w){return this.style.getPaintProperty(le,w)}setLayoutProperty(le,w,q,Q={}){return this.style.setLayoutProperty(le,w,q,Q),this._update(!0)}getLayoutProperty(le,w){return this.style.getLayoutProperty(le,w)}setGlyphs(le,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(le,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(le,w,q={}){return this._lazyInitEmptyStyle(),this.style.addSprite(le,w,q,Q=>{Q||this._update(!0)}),this}removeSprite(le){return this._lazyInitEmptyStyle(),this.style.removeSprite(le),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(le,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(le,w,q=>{q||this._update(!0)}),this}setLight(le,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(le,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(le){return this._lazyInitEmptyStyle(),this.style.setSky(le),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(le,w){return this.style.setFeatureState(le,w),this._update()}removeFeatureState(le,w){return this.style.removeFeatureState(le,w),this._update()}getFeatureState(le){return this.style.getFeatureState(le)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let le=0,w=0;return this._container&&(le=this._container.clientWidth||400,w=this._container.clientHeight||300),[le,w]}_setupContainer(){let le=this._container;le.classList.add("maplibregl-map");let w=this._canvasContainer=f.create("div","maplibregl-canvas-container",le);this._interactive&&w.classList.add("maplibregl-interactive"),this._canvas=f.create("canvas","maplibregl-canvas",w),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let q=this._containerDimensions(),Q=this._getClampedPixelRatio(q[0],q[1]);this._resizeCanvas(q[0],q[1],Q);let ee=this._controlContainer=f.create("div","maplibregl-control-container",le),ue=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(Ge=>{ue[Ge]=f.create("div",`maplibregl-ctrl-${Ge} `,ee)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(le,w,q){this._canvas.width=Math.floor(q*le),this._canvas.height=Math.floor(q*w),this._canvas.style.width=`${le}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let le={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},w=null;this._canvas.addEventListener("webglcontextcreationerror",Q=>{w={requestedAttributes:le},Q&&(w.statusMessage=Q.statusMessage,w.type=Q.type)},{once:!0});let q=this._canvas.getContext("webgl2",le)||this._canvas.getContext("webgl",le);if(!q){let Q="Failed to initialize WebGL";throw w?(w.message=Q,new Error(JSON.stringify(w))):new Error(Q)}this.painter=new Qs(q,this.transform),c.testSupport(q)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(le){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||le,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(le){return this._update(),this._renderTaskQueue.add(le)}_cancelRenderFrame(le){this._renderTaskQueue.remove(le)}_render(le){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(le),this._removed)return;let q=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let ee=this.transform.zoom,ue=l.now();this.style.zoomHistory.update(ee,ue);let Ge=new a.z(ee,{now:ue,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),et=Ge.crossFadingFactor();et===1&&et===this._crossFadingFactor||(q=!0,this._crossFadingFactor=et),this.style.update(Ge)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,showPadding:this.showPadding}),this.fire(new a.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,a.bf.mark(a.bg.load),this.fire(new a.k("load"))),this.style&&(this.style.hasTransitions()||q)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let Q=this._sourcesDirty||this._styleDirty||this._placementDirty;return Q||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new a.k("idle")),!this._loaded||this._fullyLoaded||Q||(this._fullyLoaded=!0,a.bf.mark(a.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var le;this._hash&&this._hash.remove();for(let q of this._controls)q.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window!="undefined"&&removeEventListener("online",this._onWindowOnline,!1),v.removeThrottleControl(this._imageQueueHandle),(le=this._resizeObserver)===null||le===void 0||le.disconnect();let w=this.painter.context.gl.getExtension("WEBGL_lose_context");w!=null&&w.loseContext&&w.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),f.remove(this._canvasContainer),f.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),a.bf.clearMetrics(),this._removed=!0,this.fire(new a.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,l.frameAsync(this._frameRequest).then(le=>{a.bf.frame(le),this._frameRequest=null,this._render(le)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(le){this._showTileBoundaries!==le&&(this._showTileBoundaries=le,this._update())}get showPadding(){return!!this._showPadding}set showPadding(le){this._showPadding!==le&&(this._showPadding=le,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(le){this._showCollisionBoxes!==le&&(this._showCollisionBoxes=le,le?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(le){this._showOverdrawInspector!==le&&(this._showOverdrawInspector=le,this._update())}get repaint(){return!!this._repaint}set repaint(le){this._repaint!==le&&(this._repaint=le,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(le){this._vertices=le,this._update()}get version(){return eu}getCameraTargetElevation(){return this.transform.elevation}},i.MapMouseEvent=Aa,i.MapTouchEvent=os,i.MapWheelEvent=_l,i.Marker=il,i.NavigationControl=class{constructor(le){this._updateZoomButtons=()=>{let w=this._map.getZoom(),q=w===this._map.getMaxZoom(),Q=w===this._map.getMinZoom();this._zoomInButton.disabled=q,this._zoomOutButton.disabled=Q,this._zoomInButton.setAttribute("aria-disabled",q.toString()),this._zoomOutButton.setAttribute("aria-disabled",Q.toString())},this._rotateCompassArrow=()=>{let w=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=w},this._setButtonTitle=(w,q)=>{let Q=this._map._getUIString(`NavigationControl.${q}`);w.title=Q,w.setAttribute("aria-label",Q)},this.options=a.e({},ja,le),this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",w=>w.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",w=>this._map.zoomIn({},{originalEvent:w})),f.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",w=>this._map.zoomOut({},{originalEvent:w})),f.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",w=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:w}):this._map.resetNorth({},{originalEvent:w})}),this._compassIcon=f.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(le){return this._map=le,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new ns(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){f.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(le,w){let q=f.create("button",le,this._container);return q.type="button",q.addEventListener("click",w),q}},i.Popup=class extends a.E{constructor(le){super(),this.remove=()=>(this._content&&f.remove(this._content),this._container&&(f.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new a.k("close"))),this),this._onMouseUp=w=>{this._update(w.point)},this._onMouseMove=w=>{this._update(w.point)},this._onDrag=w=>{this._update(w.point)},this._update=w=>{var q;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=f.create("div","maplibregl-popup",this._map.getContainer()),this._tip=f.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let et of this.options.className.split(" "))this._container.classList.add(et);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?cs(this._lngLat,this._flatPos,this._map.transform):(q=this._lngLat)===null||q===void 0?void 0:q.wrap(),this._trackPointer&&!w)return;let Q=this._flatPos=this._pos=this._trackPointer&&w?w:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&w?w:this._map.transform.locationPoint(this._lngLat));let ee=this.options.anchor,ue=Vl(this.options.offset);if(!ee){let et=this._container.offsetWidth,mt=this._container.offsetHeight,Ft;Ft=Q.y+ue.bottom.ythis._map.transform.height-mt?["bottom"]:[],Q.xthis._map.transform.width-et/2&&Ft.push("right"),ee=Ft.length===0?"bottom":Ft.join("-")}let Ge=Q.add(ue[ee]);this.options.subpixelPositioning||(Ge=Ge.round()),f.setTransform(this._container,`${sl[ee]} translate(${Ge.x}px,${Ge.y}px)`),ll(this._container,ee,"popup")},this._onClose=()=>{this.remove()},this.options=a.e(Object.create(Os),le)}addTo(le){return this._map&&this.remove(),this._map=le,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new a.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(le){return this._lngLat=a.N.convert(le),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(le){return this.setDOMContent(document.createTextNode(le))}setHTML(le){let w=document.createDocumentFragment(),q=document.createElement("body"),Q;for(q.innerHTML=le;Q=q.firstChild,Q;)w.appendChild(Q);return this.setDOMContent(w)}getMaxWidth(){var le;return(le=this._container)===null||le===void 0?void 0:le.style.maxWidth}setMaxWidth(le){return this.options.maxWidth=le,this._update(),this}setDOMContent(le){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=f.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(le),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(le){return this._container&&this._container.classList.add(le),this}removeClassName(le){return this._container&&this._container.classList.remove(le),this}setOffset(le){return this.options.offset=le,this._update(),this}toggleClassName(le){if(this._container)return this._container.classList.toggle(le)}setSubpixelPositioning(le){this.options.subpixelPositioning=le}_createCloseButton(){this.options.closeButton&&(this._closeButton=f.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let le=this._container.querySelector(Xl);le&&le.focus()}},i.RasterDEMTileSource=Nt,i.RasterTileSource=gt,i.ScaleControl=class{constructor(le){this._onMove=()=>{Ll(this._map,this._container,this.options)},this.setUnit=w=>{this.options.unit=w,Ll(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},Al),le)}getDefaultPosition(){return"bottom-left"}onAdd(le){return this._map=le,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-scale",le.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){f.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},i.ScrollZoomHandler=Or,i.Style=xn,i.TerrainControl=class{constructor(le){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=le}onAdd(le){return this._map=le,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=f.create("button","maplibregl-ctrl-terrain",this._container),f.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){f.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},i.TwoFingersTouchPitchHandler=Bs,i.TwoFingersTouchRotateHandler=Rs,i.TwoFingersTouchZoomHandler=Ms,i.TwoFingersTouchZoomRotateHandler=Pi,i.VectorTileSource=nt,i.VideoSource=Tt,i.addSourceType=(le,w)=>a._(void 0,void 0,void 0,function*(){if(Zt(le))throw new Error(`A source type called "${le}" already exists.`);((q,Q)=>{Rt[q]=Q})(le,w)}),i.clearPrewarmedResources=function(){let le=de;le&&(le.isPreloaded()&&le.numActive()===1?(le.release(be),de=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},i.getMaxParallelImageRequests=function(){return a.a.MAX_PARALLEL_IMAGE_REQUESTS},i.getRTLTextPluginStatus=function(){return wt().getRTLTextPluginStatus()},i.getVersion=function(){return Nl},i.getWorkerCount=function(){return Pe.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(le){return Me().broadcast("IS",le)},i.prewarm=function(){ke().acquire(be)},i.setMaxParallelImageRequests=function(le){a.a.MAX_PARALLEL_IMAGE_REQUESTS=le},i.setRTLTextPlugin=function(le,w){return wt().setRTLTextPlugin(le,w)},i.setWorkerCount=function(le){Pe.workerCount=le},i.setWorkerUrl=function(le){a.a.WORKER_URL=le}});var n=e;return n})});var zWe=Te((_2r,PWe)=>{"use strict";var iw=ei(),iZt=Xf().sanitizeHTML,nZt=IJ(),kWe=bx();function CWe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=kWe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var om=CWe.prototype;om.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=yB(t)};om.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};om.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};om.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};om.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};om.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};om.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!yB(e)){var r=aZt(e);t.addSource(this.idSource,r)}};om.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function LWe(e){var t={},r={};switch(e.type){case"circle":iw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":iw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":iw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=nZt(n.textposition,n.iconsize);iw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),iw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":iw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function aZt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=iZt(e.sourceattribution)),n}PWe.exports=function(t,r,n){var i=new CWe(t,r);return i.update(n),i}});var NWe=Te((x2r,qWe)=>{"use strict";var qJ=EWe(),NJ=ei(),DWe=ix(),IWe=$l(),oZt=wu(),sZt=xp(),gB=Xc(),FWe=Mm(),lZt=FWe.drawMode,uZt=FWe.selectMode,fZt=ah().prepSelect,cZt=ah().clearOutline,hZt=ah().clearSelectionsCache,dZt=ah().selectOnClick,nw=bx(),pZt=zWe();function BWe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Wh=BWe.prototype;Wh.plot=function(e,t,r){var n=this,i;n.map?i=new Promise(function(a,o){n.updateMap(e,t,a,o)}):i=new Promise(function(a,o){n.createMap(e,t,a,o)}),r.push(i)};Wh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=OWe(a.style),s=a.bounds,u=s?[[s.west,s.south],[s.east,s.north]]:null,l=i.map=new qJ.Map({container:i.div,style:o.style,center:UJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:u,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new qJ.AttributionControl({compact:!0})),f={};l.on("styleimagemissing",function(h){var d=h.id;if(!f[d]&&d.includes("-15")){f[d]=!0;var p=new Image(15,15);p.onload=function(){l.addImage(d,p)},p.crossOrigin="Anonymous",p.src="https://unpkg.com/maki@2.1.0/icons/"+d+".svg"}}),l.setTransformRequest(function(h){return h=h.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:h}}),l._canvas.style.left="0px",l._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var c=[];c.push(new Promise(function(h){l.once("load",h)})),c=c.concat(DWe.fetchTraceGeoData(e)),Promise.all(c).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Wh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],u=OWe(o.style);JSON.stringify(i.styleObj)!==JSON.stringify(u)&&(i.styleObj=u,a.setStyle(u.style),i.traceHash={},s.push(new Promise(function(l){a.once("styledata",l)}))),s=s.concat(DWe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Wh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&dZt(u.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),l.indexOf("event")>-1&&gB.click(n,u.originalEvent)}}};Wh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(u){var l=t.map.unproject(u);return[l.lng,l.lat]}var a=e.dragmode,o;o=function(u,l){if(l.isRect){var f=u.range={};f[t.id]=[i([l.xmin,l.ymin]),i([l.xmax,l.ymax])]}else{var c=u.lassoPoints={};c[t.id]=l.map(i)}};var s=t.dragOptions;t.dragOptions=NJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),uZt(a)||lZt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){fZt(u,l,f,t.dragOptions,a)},sZt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Wh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Wh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var VJ=ei(),mZt=k_(),yZt=Jd(),UWe=Wk();VWe.exports=function(t,r,n){mZt(t,r,n,{type:"map",attributes:UWe,handleDefaults:gZt,partition:"y"})};function gZt(e,t,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var n=r("bounds.west"),i=r("bounds.east"),a=r("bounds.south"),o=r("bounds.north");(n===void 0||i===void 0||a===void 0||o===void 0)&&delete t.bounds,yZt(e,t,{name:"layers",handleItemDefaults:_Zt}),t._input=e}function _Zt(e,t){function r(u,l){return VJ.coerce(e,t,UWe.layers,u,l)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",VJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),VJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var xB=Te(l0=>{"use strict";var _B=ei(),HWe=_B.strTranslate,xZt=_B.strScale,bZt=Rd().getSubplotCalcData,wZt=jv(),AZt=Jl(),WWe=Mu(),TZt=Xf(),SZt=NWe(),wx="map";l0.name=wx;l0.attr="subplot";l0.idRoot=wx;l0.idRegex=l0.attrRegex=_B.counterRegex(wx);l0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};l0.layoutAttributes=Wk();l0.supplyLayoutDefaults=GWe();l0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[wx],a=0;a_/2){var b=c.split("|").join("
");d.text(b).attr("data-unformatted",b).call(TZt.convertToTspans,e),p=WWe.bBox(d.node())}d.attr("transform",HWe(-3,-p.height+8)),h.insert("rect",".static-attribution").attr({x:-p.width-6,y:-p.height-3,width:p.width+6,height:p.height+3,fill:"rgba(255, 255, 255, 0.75)"});var v=1;p.width+6>_&&(v=_/(p.width+6));var k=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",HWe(k[0],k[1])+xZt(v))}};l0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[wx],n=0;n{"use strict";jWe.exports={attributes:cB(),supplyDefaults:aWe(),colorbar:ep(),formatLabels:zJ(),calc:hF(),plot:_We(),hoverPoints:mB().hoverPoints,eventData:AWe(),selectPoints:SWe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:xB(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var YWe=Te((T2r,ZWe)=>{"use strict";ZWe.exports=XWe()});var GJ=Te((S2r,KWe)=>{"use strict";var d1=$T(),MZt=nc(),EZt=Nu().hovertemplateAttrs,kZt=Gf(),Ax=Su().extendFlat;KWe.exports=Ax({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Ax({},d1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:d1.text,hovertext:d1.hovertext,marker:{line:{color:Ax({},d1.marker.line.color,{editType:"plot"}),width:Ax({},d1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Ax({},d1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Ax({},d1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Ax({},d1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:d1.hoverinfo,hovertemplate:EZt({},{keys:["properties"]}),showlegend:Ax({},kZt.showlegend,{dflt:!1})},MZt("",{cLetter:"z",editTypeOverride:"calc"}))});var $We=Te((M2r,JWe)=>{"use strict";var Yk=ei(),CZt=ed(),LZt=GJ();JWe.exports=function(t,r,n,i){function a(f,c){return Yk.coerce(t,r,LZt,f,c)}var o=a("locations"),s=a("z"),u=a("geojson");if(!Yk.isArrayOrTypedArray(o)||!o.length||!Yk.isArrayOrTypedArray(s)||!s.length||!(typeof u=="string"&&u!==""||Yk.isPlainObject(u))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var l=a("marker.line.width");l&&a("marker.line.color"),a("marker.opacity"),CZt(t,r,i,a,{prefix:"",cLetter:"z"}),Yk.coerceSelectionMarkerOpacity(r,a)}});var HJ=Te((E2r,tje)=>{"use strict";var PZt=ku(),p1=ei(),zZt=_c(),IZt=Mu(),RZt=tx().makeBlank,QWe=ix();function DZt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:RZt()};if(!r)return a;var o=QWe.extractTraceFeature(e);if(!o)return a;var s=zZt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;p1.isArrayOrTypedArray(u.opacity)&&(f=function(k){var E=k.mo;return PZt(E)?+p1.constrain(E,0,1):0});var c;p1.isArrayOrTypedArray(l.color)&&(c=function(k){return k.mlc});var h;p1.isArrayOrTypedArray(l.width)&&(h=function(k){return k.mlw});for(var d=0;d{"use strict";var ije=HJ().convert,FZt=HJ().convertOnSelect,rje=bx().traceLayerPrefix;function nje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",rje+t+"-fill"],["line",rje+t+"-line"]],this.below=null}var kS=nje.prototype;kS.update=function(e){this._update(ije(e)),e[0].trace._glTrace=this};kS.updateOnSelect=function(e){this._update(FZt(e))};kS._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};kS.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};aje.exports=function(t,r){var n=r[0].trace,i=new nje(t,n.uid),a=i.sourceId,o=ije(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var lje=Te((C2r,sje)=>{"use strict";sje.exports={attributes:GJ(),supplyDefaults:$We(),colorbar:S_(),calc:IF(),plot:oje(),hoverPoints:DF(),eventData:FF(),selectPoints:BF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";uje.exports=lje()});var jJ=Te((P2r,hje)=>{"use strict";var BZt=nc(),OZt=Nu().hovertemplateAttrs,cje=Gf(),bB=cB(),WJ=Su().extendFlat;hje.exports=WJ({lon:bB.lon,lat:bB.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:bB.text,hovertext:bB.hovertext,hoverinfo:WJ({},cje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:OZt(),showlegend:WJ({},cje.showlegend,{dflt:!1})},BZt("",{cLetter:"z",editTypeOverride:"calc"}))});var pje=Te((z2r,dje)=>{"use strict";var qZt=ei(),NZt=ed(),UZt=jJ();dje.exports=function(t,r,n,i){function a(l,f){return qZt.coerce(t,r,UZt,l,f)}var o=a("lon")||[],s=a("lat")||[],u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),NZt(t,r,i,a,{prefix:"",cLetter:"z"})}});var yje=Te((I2r,mje)=>{"use strict";var XJ=ku(),VZt=ei().isArrayOrTypedArray,ZJ=nf().BADNUM,GZt=gp(),vje=ei()._;mje.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=VZt(a)&&a.length,s=0;s{"use strict";var HZt=ku(),YJ=ei(),gje=jl(),_je=_c(),xje=nf().BADNUM,WZt=tx().makeBlank;bje.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:WZt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=YJ.isArrayOrTypedArray(u)&&u.length,c=YJ.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=_je.extractOpts(r),v=b.reversescale?_je.flipScale(b.colorscale):b.colorscale,k=v[0][1],E=gje.opacity(k)<1?k:gje.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var Aje=wje(),jZt=bx().traceLayerPrefix;function Tje(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",jZt+t+"-heatmap"]],this.below=null}var wB=Tje.prototype;wB.update=function(e){var t=this.subplot,r=this.layerList,n=Aje(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};wB.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Sje.exports=function(t,r){var n=r[0].trace,i=new Tje(t,n.uid),a=i.sourceId,o=Aje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var kje=Te((F2r,Eje)=>{"use strict";var XZt=wu(),ZZt=mB().hoverPoints,YZt=mB().getExtraText;Eje.exports=function(t,r,n){var i=ZZt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,u=o[a.index];if(delete a.color,"z"in u){var l=a.subplot.mockAxis;a.z=u.z,a.zLabel=XZt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=YZt(s,u,o[0].t.labels),[a]}}});var Lje=Te((B2r,Cje)=>{"use strict";Cje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var zje=Te((O2r,Pje)=>{"use strict";Pje.exports={attributes:jJ(),supplyDefaults:pje(),colorbar:S_(),formatLabels:zJ(),calc:yje(),plot:Mje(),hoverPoints:kje(),eventData:Lje(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";Ije.exports=zje()});var JJ=Te((U2r,Oje)=>{"use strict";var KZt=gc(),JZt=Gf(),Dje=Rh(),KJ=i3(),$Zt=zc().attributes,Fje=Nu().hovertemplateAttrs,QZt=nc(),eYt=Pf().templatedArray,tYt=jc().descriptionOnlyNumbers,Bje=Su().extendFlat,rYt=Sc().overrideAll,N2r=Oje.exports=rYt({hoverinfo:Bje({},JZt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:KJ.hoverlabel,domain:$Zt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:tYt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:KZt({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Dje.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:KJ.hoverlabel,hovertemplate:Fje({},{keys:["value","label"]}),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Dje.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:KJ.hoverlabel,hovertemplate:Fje({},{keys:["value","label"]}),colorscales:eYt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:Bje(QZt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var Gje=Te((V2r,Vje)=>{"use strict";var CS=ei(),AB=JJ(),iYt=jl(),qje=cd(),nYt=zc().defaults,Nje=c5(),Uje=Pf(),aYt=Jd();Vje.exports=function(t,r,n,i){function a(T,L){return CS.coerce(t,r,AB,T,L)}var o=CS.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,u=Uje.newContainer(r,"node");function l(T,L){return CS.coerce(s,u,AB.node,T,L)}l("label"),l("groups"),l("x"),l("y"),l("pad"),l("thickness"),l("line.color"),l("line.width"),l("hoverinfo",t.hoverinfo),Nje(s,u,l,o),l("hovertemplate"),l("align");var f=i.colorway,c=function(T){return f[T%f.length]};l("color",u.label.map(function(T,L){return iYt.addOpacity(c(L),.8)})),l("customdata");var h=t.link||{},d=Uje.newContainer(r,"link");function p(T,L){return CS.coerce(h,d,AB.link,T,L)}p("label"),p("arrowlen"),p("source"),p("target"),p("value"),p("line.color"),p("line.width"),p("hoverinfo",t.hoverinfo),Nje(h,d,p,o),p("hovertemplate");var _=qje(i.paper_bgcolor).getLuminance()<.333,b=_?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",v=p("color",b);function k(T){var L=qje(T);if(!L.isValid())return T;var x=L.getAlpha();return x<=.8?L.setAlpha(x+.2):L=_?L.brighten():L.darken(),L.toRgbString()}p("hovercolor",Array.isArray(v)?v.map(k):k(v)),p("customdata"),aYt(h,d,{name:"colorscales",handleItemDefaults:oYt}),nYt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var E;u.x.length&&u.y.length&&(E="freeform"),a("arrangement",E),CS.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function oYt(e,t){function r(n,i){return CS.coerce(e,t,AB.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var $J=Te((G2r,Hje)=>{"use strict";Hje.exports=sYt;function sYt(e){for(var t=e.length,r=new Array(t),n=new Array(t),i=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),u=0;u0;){b=k[k.length-1];var E=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=T}else{if(n[b]===r[b]){for(var x=[],C=[],M=0,T=v.length-1;T>=0;--T){var m=v[T];if(i[m]=!1,x.push(m),C.push(s[m]),M+=s[m].length,o[m]=f.length,m===b){v.length=T;break}}f.push(x);for(var P=new Array(M),T=0;T{"use strict";var lYt=$J(),LS=ei(),uYt=Ky().wrap,Kk=LS.isArrayOrTypedArray,Wje=LS.isIndex,jje=_c();function fYt(e){var t=e.node,r=e.link,n=[],i=Kk(r.color),a=Kk(r.hovercolor),o=Kk(r.customdata),s={},u={},l=r.colorscales.length,f;for(f=0;fp&&(p=r.source[f]),r.target[f]>p&&(p=r.target[f]);var _=p+1;e.node._count=_;var b,v=e.node.groups,k={};for(f=0;f0&&Wje(M,_)&&Wje(m,_)&&!(k.hasOwnProperty(M)&&k.hasOwnProperty(m)&&k[M]===k[m])){k.hasOwnProperty(m)&&(m=k[m]),k.hasOwnProperty(M)&&(M=k[M]),M=+M,m=+m,s[M]=s[m]=!0;var P="";r.label&&r.label[f]&&(P=r.label[f]);var A=null;P&&u.hasOwnProperty(P)&&(A=u[P]),n.push({pointNumber:f,label:P,color:i?r.color[f]:r.color,hovercolor:a?r.hovercolor[f]:r.hovercolor,customdata:o?r.customdata[f]:r.customdata,concentrationscale:A,source:M,target:m,value:+C}),x.source.push(M),x.target.push(m)}}var B=_+v.length,F=Kk(t.color),U=Kk(t.customdata),G=[];for(f=0;f_-1,childrenNodes:[],pointNumber:f,label:j,color:F?t.color[f]:t.color,customdata:U?t.customdata[f]:t.customdata})}var H=!1;return cYt(B,x.source,x.target)&&(H=!0),{circular:H,links:n,nodes:G,groups:v,groupLookup:k}}function cYt(e,t,r){for(var n=LS.init2dArray(e,0),i=0;i1})}Xje.exports=function(t,r){var n=fYt(r);return uYt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var Kje=Te((TB,Yje)=>{(function(e,t){typeof TB=="object"&&typeof Yje!="undefined"?t(TB):(e=e||self,t(e.d3=e.d3||{}))})(TB,function(e){"use strict";function t(C){var M=+this._x.call(null,C),m=+this._y.call(null,C);return r(this.cover(M,m),M,m,C)}function r(C,M,m,P){if(isNaN(M)||isNaN(m))return C;var A,B=C._root,F={data:P},U=C._x0,G=C._y0,j=C._x1,H=C._y1,N,W,re,ae,be,Pe,Ce,de;if(!B)return C._root=F,C;for(;B.length;)if((be=M>=(N=(U+j)/2))?U=N:j=N,(Pe=m>=(W=(G+H)/2))?G=W:H=W,A=B,!(B=B[Ce=Pe<<1|be]))return A[Ce]=F,C;if(re=+C._x.call(null,B.data),ae=+C._y.call(null,B.data),M===re&&m===ae)return F.next=B,A?A[Ce]=F:C._root=F,C;do A=A?A[Ce]=new Array(4):C._root=new Array(4),(be=M>=(N=(U+j)/2))?U=N:j=N,(Pe=m>=(W=(G+H)/2))?G=W:H=W;while((Ce=Pe<<1|be)===(de=(ae>=W)<<1|re>=N));return A[de]=B,A[Ce]=F,C}function n(C){var M,m,P=C.length,A,B,F=new Array(P),U=new Array(P),G=1/0,j=1/0,H=-1/0,N=-1/0;for(m=0;mH&&(H=A),BN&&(N=B));if(G>H||j>N)return this;for(this.cover(G,j).cover(H,N),m=0;mC||C>=A||P>M||M>=B;)switch(j=(MH||(U=ae.y0)>N||(G=ae.x1)=Ce)<<1|C>=Pe)&&(ae=W[W.length-1],W[W.length-1]=W[W.length-1-be],W[W.length-1-be]=ae)}else{var de=C-+this._x.call(null,re.data),te=M-+this._y.call(null,re.data),ke=de*de+te*te;if(ke=(W=(F+G)/2))?F=W:G=W,(be=N>=(re=(U+j)/2))?U=re:j=re,M=m,!(m=m[Pe=be<<1|ae]))return this;if(!m.length)break;(M[Pe+1&3]||M[Pe+2&3]||M[Pe+3&3])&&(P=M,Ce=Pe)}for(;m.data!==C;)if(A=m,!(m=m.next))return this;return(B=m.next)&&delete m.next,A?(B?A.next=B:delete A.next,this):M?(B?M[Pe]=B:delete M[Pe],(m=M[0]||M[1]||M[2]||M[3])&&m===(M[3]||M[2]||M[1]||M[0])&&!m.length&&(P?P[Ce]=m:this._root=m),this):(this._root=B,this)}function f(C){for(var M=0,m=C.length;M{(function(e,t){t(typeof SB=="object"&&typeof Jje!="undefined"?SB:e.d3=e.d3||{})})(SB,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(_){return t+_ in this},get:function(_){return this[t+_]},set:function(_,b){return this[t+_]=b,this},remove:function(_){var b=t+_;return b in this&&delete this[b]},clear:function(){for(var _ in this)_[0]===t&&delete this[_]},keys:function(){var _=[];for(var b in this)b[0]===t&&_.push(b.slice(1));return _},values:function(){var _=[];for(var b in this)b[0]===t&&_.push(this[b]);return _},entries:function(){var _=[];for(var b in this)b[0]===t&&_.push({key:b.slice(1),value:this[b]});return _},size:function(){var _=0;for(var b in this)b[0]===t&&++_;return _},empty:function(){for(var _ in this)if(_[0]===t)return!1;return!0},each:function(_){for(var b in this)b[0]===t&&_(this[b],b.slice(1),this)}};function n(_,b){var v=new r;if(_ instanceof r)_.each(function(x,C){v.set(C,x)});else if(Array.isArray(_)){var k=-1,E=_.length,T;if(b==null)for(;++k=_.length)return v!=null&&x.sort(v),k!=null?k(x):x;for(var P=-1,A=x.length,B=_[C++],F,U,G=n(),j,H=M();++P_.length)return x;var M,m=b[C-1];return k!=null&&C>=_.length?M=x.entries():(M=[],x.each(function(P,A){M.push({key:A,values:L(P,C)})})),m!=null?M.sort(function(P,A){return m(P.key,A.key)}):M}return E={object:function(x){return T(x,0,a,o)},map:function(x){return T(x,0,s,u)},entries:function(x){return L(T(x,0,s,u),0)},key:function(x){return _.push(x),E},sortKeys:function(x){return b[_.length-1]=x,E},sortValues:function(x){return v=x,E},rollup:function(x){return k=x,E}}}function a(){return{}}function o(_,b,v){_[b]=v}function s(){return n()}function u(_,b,v){_.set(b,v)}function l(){}var f=n.prototype;l.prototype=c.prototype={constructor:l,has:f.has,add:function(_){return _+="",this[t+_]=_,this},remove:f.remove,clear:f.clear,values:f.keys,size:f.size,empty:f.empty,each:f.each};function c(_,b){var v=new l;if(_ instanceof l)_.each(function(T){v.add(T)});else if(_){var k=-1,E=_.length;if(b==null)for(;++k{(function(e,t){typeof EB=="object"&&typeof $je!="undefined"?t(EB):(e=e||self,t(e.d3=e.d3||{}))})(EB,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,u=arguments.length,l={},f;s=0&&(f=l.slice(c+1),l=l.slice(0,c)),l&&!u.hasOwnProperty(l))throw new Error("unknown type: "+l);return{type:l,name:f}})}n.prototype=r.prototype={constructor:n,on:function(s,u){var l=this._,f=i(s+"",l),c,h=-1,d=f.length;if(arguments.length<2){for(;++h0)for(var l=new Array(c),f=0,c,h;f{(function(e,t){typeof kB=="object"&&typeof eXe!="undefined"?t(kB):(e=e||self,t(e.d3=e.d3||{}))})(kB,function(e){"use strict";var t=0,r=0,n=0,i=1e3,a,o,s=0,u=0,l=0,f=typeof performance=="object"&&performance.now?performance:Date,c=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(C){setTimeout(C,17)};function h(){return u||(c(d),u=f.now()+l)}function d(){u=0}function p(){this._call=this._time=this._next=null}p.prototype=_.prototype={constructor:p,restart:function(C,M,m){if(typeof C!="function")throw new TypeError("callback is not a function");m=(m==null?h():+m)+(M==null?0:+M),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=C,this._time=m,T()},stop:function(){this._call&&(this._call=null,this._time=1/0,T())}};function _(C,M,m){var P=new p;return P.restart(C,M,m),P}function b(){h(),++t;for(var C=a,M;C;)(M=u-C._time)>=0&&C._call.call(null,M),C=C._next;--t}function v(){u=(s=f.now())+l,t=r=0;try{b()}finally{t=0,E(),u=0}}function k(){var C=f.now(),M=C-s;M>i&&(l-=M,s=C)}function E(){for(var C,M=a,m,P=1/0;M;)M._call?(P>M._time&&(P=M._time),C=M,M=M._next):(m=M._next,M._next=null,M=C?C._next=m:a=m);o=C,T(P)}function T(C){if(!t){r&&(r=clearTimeout(r));var M=C-u;M>24?(C<1/0&&(r=setTimeout(v,C-f.now()-l)),n&&(n=clearInterval(n))):(n||(s=f.now(),n=setInterval(k,i)),t=1,c(v))}}function L(C,M,m){var P=new p;return M=M==null?0:+M,P.restart(function(A){P.stop(),C(A+M)},M,m),P}function x(C,M,m){var P=new p,A=M;return M==null?(P.restart(C,M,m),P):(M=+M,m=m==null?h():+m,P.restart(function B(F){F+=A,P.restart(B,A+=M,m),C(F)},M,m),P)}e.interval=x,e.now=h,e.timeout=L,e.timer=_,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var iXe=Te((CB,rXe)=>{(function(e,t){typeof CB=="object"&&typeof rXe!="undefined"?t(CB,Kje(),MB(),Qje(),tXe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(CB,function(e,t,r,n,i){"use strict";function a(C,M){var m;C==null&&(C=0),M==null&&(M=0);function P(){var A,B=m.length,F,U=0,G=0;for(A=0;AN.index){var Ve=W-Ne.x-Ne.vx,ce=re-Ne.y-Ne.vy,Ke=Ve*Ve+ce*ce;KeW+ye||Eere+ye||MeG.r&&(G.r=G[j].r)}function U(){if(M){var G,j=M.length,H;for(m=new Array(j),G=0;G1?(be==null?U.remove(ae):U.set(ae,re(be)),M):U.get(ae)},find:function(ae,be,Pe){var Ce=0,de=C.length,te,ke,Ee,Me,Ne;for(Pe==null?Pe=1/0:Pe*=Pe,Ce=0;Ce1?(j.on(ae,be),M):j.on(ae)}}}function E(){var C,M,m,P=o(-30),A,B=1,F=1/0,U=.81;function G(W){var re,ae=C.length,be=t.quadtree(C,p,_).visitAfter(H);for(m=W,re=0;re=F)return;(W.data!==M||W.next)&&(Pe===0&&(Pe=s(),te+=Pe*Pe),Ce===0&&(Ce=s(),te+=Ce*Ce),te{(function(e,t){typeof LB=="object"&&typeof nXe!="undefined"?t(LB):(e=e||self,t(e.d3=e.d3||{}))})(LB,function(e){"use strict";var t=Math.PI,r=2*t,n=1e-6,i=r-n;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,u){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+u)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,u){this._+="L"+(this._x1=+s)+","+(this._y1=+u)},quadraticCurveTo:function(s,u,l,f){this._+="Q"+ +s+","+ +u+","+(this._x1=+l)+","+(this._y1=+f)},bezierCurveTo:function(s,u,l,f,c,h){this._+="C"+ +s+","+ +u+","+ +l+","+ +f+","+(this._x1=+c)+","+(this._y1=+h)},arcTo:function(s,u,l,f,c){s=+s,u=+u,l=+l,f=+f,c=+c;var h=this._x1,d=this._y1,p=l-s,_=f-u,b=h-s,v=d-u,k=b*b+v*v;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=u);else if(k>n)if(!(Math.abs(v*p-_*b)>n)||!c)this._+="L"+(this._x1=s)+","+(this._y1=u);else{var E=l-h,T=f-d,L=p*p+_*_,x=E*E+T*T,C=Math.sqrt(L),M=Math.sqrt(k),m=c*Math.tan((t-Math.acos((L+k-x)/(2*C*M)))/2),P=m/M,A=m/C;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(u+P*v)),this._+="A"+c+","+c+",0,0,"+ +(v*E>b*T)+","+(this._x1=s+A*p)+","+(this._y1=u+A*_)}},arc:function(s,u,l,f,c,h){s=+s,u=+u,l=+l,h=!!h;var d=l*Math.cos(f),p=l*Math.sin(f),_=s+d,b=u+p,v=1^h,k=h?f-c:c-f;if(l<0)throw new Error("negative radius: "+l);this._x1===null?this._+="M"+_+","+b:(Math.abs(this._x1-_)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+_+","+b),l&&(k<0&&(k=k%r+r),k>i?this._+="A"+l+","+l+",0,1,"+v+","+(s-d)+","+(u-p)+"A"+l+","+l+",0,1,"+v+","+(this._x1=_)+","+(this._y1=b):k>n&&(this._+="A"+l+","+l+",0,"+ +(k>=t)+","+v+","+(this._x1=s+l*Math.cos(c))+","+(this._y1=u+l*Math.sin(c))))},rect:function(s,u,l,f){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+u)+"h"+ +l+"v"+ +f+"h"+-l+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var QJ=Te((PB,oXe)=>{(function(e,t){typeof PB=="object"&&typeof oXe!="undefined"?t(PB,aXe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(PB,function(e,t){"use strict";function r(ft){return function(){return ft}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,u=Math.sin,l=Math.sqrt,f=1e-12,c=Math.PI,h=c/2,d=2*c;function p(ft){return ft>1?0:ft<-1?c:Math.acos(ft)}function _(ft){return ft>=1?h:ft<=-1?-h:Math.asin(ft)}function b(ft){return ft.innerRadius}function v(ft){return ft.outerRadius}function k(ft){return ft.startAngle}function E(ft){return ft.endAngle}function T(ft){return ft&&ft.padAngle}function L(ft,tr,pr,gr,Zr,Ai,Qi,ni){var Zi=pr-ft,aa=gr-tr,Mn=Qi-Zr,Un=ni-Ai,Ga=Un*Zi-Mn*aa;if(!(Ga*Gawa*wa+ws*ws&&(uo=$a,ls=fo),{cx:uo,cy:ls,x01:-Mn,y01:-Un,x11:uo*(Zr/kn-1),y11:ls*(Zr/kn-1)}}function C(){var ft=b,tr=v,pr=r(0),gr=null,Zr=k,Ai=E,Qi=T,ni=null;function Zi(){var aa,Mn,Un=+ft.apply(this,arguments),Ga=+tr.apply(this,arguments),ma=Zr.apply(this,arguments)-h,oa=Ai.apply(this,arguments)-h,ka=n(oa-ma),so=oa>ma;if(ni||(ni=aa=t.path()),Gaf))ni.moveTo(0,0);else if(ka>d-f)ni.moveTo(Ga*a(ma),Ga*u(ma)),ni.arc(0,0,Ga,ma,oa,!so),Un>f&&(ni.moveTo(Un*a(oa),Un*u(oa)),ni.arc(0,0,Un,oa,ma,so));else{var Kr=ma,Ia=oa,Yo=ma,fa=oa,kn=ka,Ta=ka,ys=Qi.apply(this,arguments)/2,uo=ys>f&&(gr?+gr.apply(this,arguments):l(Un*Un+Ga*Ga)),ls=s(n(Ga-Un)/2,+pr.apply(this,arguments)),$a=ls,fo=ls,mn,ra;if(uo>f){var wa=_(uo/Un*u(ys)),ws=_(uo/Ga*u(ys));(kn-=wa*2)>f?(wa*=so?1:-1,Yo+=wa,fa-=wa):(kn=0,Yo=fa=(ma+oa)/2),(Ta-=ws*2)>f?(ws*=so?1:-1,Kr+=ws,Ia-=ws):(Ta=0,Kr=Ia=(ma+oa)/2)}var Co=Ga*a(Kr),Po=Ga*u(Kr),ji=Un*a(fa),gn=Un*u(fa);if(ls>f){var Ps=Ga*a(Ia),Ha=Ga*u(Ia),Sn=Un*a(Yo),ao=Un*u(Yo),Ba;if(kaf?fo>f?(mn=x(Sn,ao,Co,Po,Ga,fo,so),ra=x(Ps,Ha,ji,gn,Ga,fo,so),ni.moveTo(mn.cx+mn.x01,mn.cy+mn.y01),fof)||!(kn>f)?ni.lineTo(ji,gn):$a>f?(mn=x(ji,gn,Ps,Ha,Un,-$a,so),ra=x(Co,Po,Sn,ao,Un,-$a,so),ni.lineTo(mn.cx+mn.x01,mn.cy+mn.y01),$a=Ga;--ma)ni.point(Ia[ma],Yo[ma]);ni.lineEnd(),ni.areaEnd()}so&&(Ia[Un]=+ft(ka,Un,Mn),Yo[Un]=+pr(ka,Un,Mn),ni.point(tr?+tr(ka,Un,Mn):Ia[Un],gr?+gr(ka,Un,Mn):Yo[Un]))}if(Kr)return ni=null,Kr+""||null}function aa(){return B().defined(Zr).curve(Qi).context(Ai)}return Zi.x=function(Mn){return arguments.length?(ft=typeof Mn=="function"?Mn:r(+Mn),tr=null,Zi):ft},Zi.x0=function(Mn){return arguments.length?(ft=typeof Mn=="function"?Mn:r(+Mn),Zi):ft},Zi.x1=function(Mn){return arguments.length?(tr=Mn==null?null:typeof Mn=="function"?Mn:r(+Mn),Zi):tr},Zi.y=function(Mn){return arguments.length?(pr=typeof Mn=="function"?Mn:r(+Mn),gr=null,Zi):pr},Zi.y0=function(Mn){return arguments.length?(pr=typeof Mn=="function"?Mn:r(+Mn),Zi):pr},Zi.y1=function(Mn){return arguments.length?(gr=Mn==null?null:typeof Mn=="function"?Mn:r(+Mn),Zi):gr},Zi.lineX0=Zi.lineY0=function(){return aa().x(ft).y(pr)},Zi.lineY1=function(){return aa().x(ft).y(gr)},Zi.lineX1=function(){return aa().x(tr).y(pr)},Zi.defined=function(Mn){return arguments.length?(Zr=typeof Mn=="function"?Mn:r(!!Mn),Zi):Zr},Zi.curve=function(Mn){return arguments.length?(Qi=Mn,Ai!=null&&(ni=Qi(Ai)),Zi):Qi},Zi.context=function(Mn){return arguments.length?(Mn==null?Ai=ni=null:ni=Qi(Ai=Mn),Zi):Ai},Zi}function U(ft,tr){return trft?1:tr>=ft?0:NaN}function G(ft){return ft}function j(){var ft=G,tr=U,pr=null,gr=r(0),Zr=r(d),Ai=r(0);function Qi(ni){var Zi,aa=ni.length,Mn,Un,Ga=0,ma=new Array(aa),oa=new Array(aa),ka=+gr.apply(this,arguments),so=Math.min(d,Math.max(-d,Zr.apply(this,arguments)-ka)),Kr,Ia=Math.min(Math.abs(so)/aa,Ai.apply(this,arguments)),Yo=Ia*(so<0?-1:1),fa;for(Zi=0;Zi0&&(Ga+=fa);for(tr!=null?ma.sort(function(kn,Ta){return tr(oa[kn],oa[Ta])}):pr!=null&&ma.sort(function(kn,Ta){return pr(ni[kn],ni[Ta])}),Zi=0,Un=Ga?(so-aa*Yo)/Ga:0;Zi0?fa*Un:0)+Yo,oa[Mn]={data:ni[Mn],index:Zi,value:fa,startAngle:ka,endAngle:Kr,padAngle:Ia};return oa}return Qi.value=function(ni){return arguments.length?(ft=typeof ni=="function"?ni:r(+ni),Qi):ft},Qi.sortValues=function(ni){return arguments.length?(tr=ni,pr=null,Qi):tr},Qi.sort=function(ni){return arguments.length?(pr=ni,tr=null,Qi):pr},Qi.startAngle=function(ni){return arguments.length?(gr=typeof ni=="function"?ni:r(+ni),Qi):gr},Qi.endAngle=function(ni){return arguments.length?(Zr=typeof ni=="function"?ni:r(+ni),Qi):Zr},Qi.padAngle=function(ni){return arguments.length?(Ai=typeof ni=="function"?ni:r(+ni),Qi):Ai},Qi}var H=W(m);function N(ft){this._curve=ft}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(ft,tr){this._curve.point(tr*Math.sin(ft),tr*-Math.cos(ft))}};function W(ft){function tr(pr){return new N(ft(pr))}return tr._curve=ft,tr}function re(ft){var tr=ft.curve;return ft.angle=ft.x,delete ft.x,ft.radius=ft.y,delete ft.y,ft.curve=function(pr){return arguments.length?tr(W(pr)):tr()._curve},ft}function ae(){return re(B().curve(H))}function be(){var ft=F().curve(H),tr=ft.curve,pr=ft.lineX0,gr=ft.lineX1,Zr=ft.lineY0,Ai=ft.lineY1;return ft.angle=ft.x,delete ft.x,ft.startAngle=ft.x0,delete ft.x0,ft.endAngle=ft.x1,delete ft.x1,ft.radius=ft.y,delete ft.y,ft.innerRadius=ft.y0,delete ft.y0,ft.outerRadius=ft.y1,delete ft.y1,ft.lineStartAngle=function(){return re(pr())},delete ft.lineX0,ft.lineEndAngle=function(){return re(gr())},delete ft.lineX1,ft.lineInnerRadius=function(){return re(Zr())},delete ft.lineY0,ft.lineOuterRadius=function(){return re(Ai())},delete ft.lineY1,ft.curve=function(Qi){return arguments.length?tr(W(Qi)):tr()._curve},ft}function Pe(ft,tr){return[(tr=+tr)*Math.cos(ft-=Math.PI/2),tr*Math.sin(ft)]}var Ce=Array.prototype.slice;function de(ft){return ft.source}function te(ft){return ft.target}function ke(ft){var tr=de,pr=te,gr=P,Zr=A,Ai=null;function Qi(){var ni,Zi=Ce.call(arguments),aa=tr.apply(this,Zi),Mn=pr.apply(this,Zi);if(Ai||(Ai=ni=t.path()),ft(Ai,+gr.apply(this,(Zi[0]=aa,Zi)),+Zr.apply(this,Zi),+gr.apply(this,(Zi[0]=Mn,Zi)),+Zr.apply(this,Zi)),ni)return Ai=null,ni+""||null}return Qi.source=function(ni){return arguments.length?(tr=ni,Qi):tr},Qi.target=function(ni){return arguments.length?(pr=ni,Qi):pr},Qi.x=function(ni){return arguments.length?(gr=typeof ni=="function"?ni:r(+ni),Qi):gr},Qi.y=function(ni){return arguments.length?(Zr=typeof ni=="function"?ni:r(+ni),Qi):Zr},Qi.context=function(ni){return arguments.length?(Ai=ni==null?null:ni,Qi):Ai},Qi}function Ee(ft,tr,pr,gr,Zr){ft.moveTo(tr,pr),ft.bezierCurveTo(tr=(tr+gr)/2,pr,tr,Zr,gr,Zr)}function Me(ft,tr,pr,gr,Zr){ft.moveTo(tr,pr),ft.bezierCurveTo(tr,pr=(pr+Zr)/2,gr,pr,gr,Zr)}function Ne(ft,tr,pr,gr,Zr){var Ai=Pe(tr,pr),Qi=Pe(tr,pr=(pr+Zr)/2),ni=Pe(gr,pr),Zi=Pe(gr,Zr);ft.moveTo(Ai[0],Ai[1]),ft.bezierCurveTo(Qi[0],Qi[1],ni[0],ni[1],Zi[0],Zi[1])}function Fe(){return ke(Ee)}function ye(){return ke(Me)}function Ve(){var ft=ke(Ne);return ft.angle=ft.x,delete ft.x,ft.radius=ft.y,delete ft.y,ft}var ce={draw:function(ft,tr){var pr=Math.sqrt(tr/c);ft.moveTo(pr,0),ft.arc(0,0,pr,0,d)}},Ke={draw:function(ft,tr){var pr=Math.sqrt(tr/5)/2;ft.moveTo(-3*pr,-pr),ft.lineTo(-pr,-pr),ft.lineTo(-pr,-3*pr),ft.lineTo(pr,-3*pr),ft.lineTo(pr,-pr),ft.lineTo(3*pr,-pr),ft.lineTo(3*pr,pr),ft.lineTo(pr,pr),ft.lineTo(pr,3*pr),ft.lineTo(-pr,3*pr),ft.lineTo(-pr,pr),ft.lineTo(-3*pr,pr),ft.closePath()}},nt=Math.sqrt(1/3),gt=nt*2,Nt={draw:function(ft,tr){var pr=Math.sqrt(tr/gt),gr=pr*nt;ft.moveTo(0,-pr),ft.lineTo(gr,0),ft.lineTo(0,pr),ft.lineTo(-gr,0),ft.closePath()}},it=.8908130915292852,Ye=Math.sin(c/10)/Math.sin(7*c/10),kt=Math.sin(d/10)*Ye,Tt=-Math.cos(d/10)*Ye,St={draw:function(ft,tr){var pr=Math.sqrt(tr*it),gr=kt*pr,Zr=Tt*pr;ft.moveTo(0,-pr),ft.lineTo(gr,Zr);for(var Ai=1;Ai<5;++Ai){var Qi=d*Ai/5,ni=Math.cos(Qi),Zi=Math.sin(Qi);ft.lineTo(Zi*pr,-ni*pr),ft.lineTo(ni*gr-Zi*Zr,Zi*gr+ni*Zr)}ft.closePath()}},Rt={draw:function(ft,tr){var pr=Math.sqrt(tr),gr=-pr/2;ft.rect(gr,gr,pr,pr)}},Zt=Math.sqrt(3),Et={draw:function(ft,tr){var pr=-Math.sqrt(tr/(Zt*3));ft.moveTo(0,pr*2),ft.lineTo(-Zt*pr,-pr),ft.lineTo(Zt*pr,-pr),ft.closePath()}},Ae=-.5,at=Math.sqrt(3)/2,wt=1/Math.sqrt(12),vt=(wt/2+1)*3,st={draw:function(ft,tr){var pr=Math.sqrt(tr/vt),gr=pr/2,Zr=pr*wt,Ai=gr,Qi=pr*wt+pr,ni=-Ai,Zi=Qi;ft.moveTo(gr,Zr),ft.lineTo(Ai,Qi),ft.lineTo(ni,Zi),ft.lineTo(Ae*gr-at*Zr,at*gr+Ae*Zr),ft.lineTo(Ae*Ai-at*Qi,at*Ai+Ae*Qi),ft.lineTo(Ae*ni-at*Zi,at*ni+Ae*Zi),ft.lineTo(Ae*gr+at*Zr,Ae*Zr-at*gr),ft.lineTo(Ae*Ai+at*Qi,Ae*Qi-at*Ai),ft.lineTo(Ae*ni+at*Zi,Ae*Zi-at*ni),ft.closePath()}},Ue=[ce,Ke,Nt,Rt,St,Et,st];function rt(){var ft=r(ce),tr=r(64),pr=null;function gr(){var Zr;if(pr||(pr=Zr=t.path()),ft.apply(this,arguments).draw(pr,+tr.apply(this,arguments)),Zr)return pr=null,Zr+""||null}return gr.type=function(Zr){return arguments.length?(ft=typeof Zr=="function"?Zr:r(Zr),gr):ft},gr.size=function(Zr){return arguments.length?(tr=typeof Zr=="function"?Zr:r(+Zr),gr):tr},gr.context=function(Zr){return arguments.length?(pr=Zr==null?null:Zr,gr):pr},gr}function $e(){}function zt(ft,tr,pr){ft._context.bezierCurveTo((2*ft._x0+ft._x1)/3,(2*ft._y0+ft._y1)/3,(ft._x0+2*ft._x1)/3,(ft._y0+2*ft._y1)/3,(ft._x0+4*ft._x1+tr)/6,(ft._y0+4*ft._y1+pr)/6)}function Yt(ft){this._context=ft}Yt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:zt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:zt(this,ft,tr);break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr}};function hr(ft){return new Yt(ft)}function yr(ft){this._context=ft}yr.prototype={areaStart:$e,areaEnd:$e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._x2=ft,this._y2=tr;break;case 1:this._point=2,this._x3=ft,this._y3=tr;break;case 2:this._point=3,this._x4=ft,this._y4=tr,this._context.moveTo((this._x0+4*this._x1+ft)/6,(this._y0+4*this._y1+tr)/6);break;default:zt(this,ft,tr);break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr}};function br(ft){return new yr(ft)}function Ut(ft){this._context=ft}Ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var pr=(this._x0+4*this._x1+ft)/6,gr=(this._y0+4*this._y1+tr)/6;this._line?this._context.lineTo(pr,gr):this._context.moveTo(pr,gr);break;case 3:this._point=4;default:zt(this,ft,tr);break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr}};function Ie(ft){return new Ut(ft)}function xe(ft,tr){this._basis=new Yt(ft),this._beta=tr}xe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var ft=this._x,tr=this._y,pr=ft.length-1;if(pr>0)for(var gr=ft[0],Zr=tr[0],Ai=ft[pr]-gr,Qi=tr[pr]-Zr,ni=-1,Zi;++ni<=pr;)Zi=ni/pr,this._basis.point(this._beta*ft[ni]+(1-this._beta)*(gr+Zi*Ai),this._beta*tr[ni]+(1-this._beta)*(Zr+Zi*Qi));this._x=this._y=null,this._basis.lineEnd()},point:function(ft,tr){this._x.push(+ft),this._y.push(+tr)}};var Oe=function ft(tr){function pr(gr){return tr===1?new Yt(gr):new xe(gr,tr)}return pr.beta=function(gr){return ft(+gr)},pr}(.85);function Re(ft,tr,pr){ft._context.bezierCurveTo(ft._x1+ft._k*(ft._x2-ft._x0),ft._y1+ft._k*(ft._y2-ft._y0),ft._x2+ft._k*(ft._x1-tr),ft._y2+ft._k*(ft._y1-pr),ft._x2,ft._y2)}function De(ft,tr){this._context=ft,this._k=(1-tr)/6}De.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Re(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2,this._x1=ft,this._y1=tr;break;case 2:this._point=3;default:Re(this,ft,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var ct=function ft(tr){function pr(gr){return new De(gr,tr)}return pr.tension=function(gr){return ft(+gr)},pr}(0);function ge(ft,tr){this._context=ft,this._k=(1-tr)/6}ge.prototype={areaStart:$e,areaEnd:$e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._x3=ft,this._y3=tr;break;case 1:this._point=2,this._context.moveTo(this._x4=ft,this._y4=tr);break;case 2:this._point=3,this._x5=ft,this._y5=tr;break;default:Re(this,ft,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var fe=function ft(tr){function pr(gr){return new ge(gr,tr)}return pr.tension=function(gr){return ft(+gr)},pr}(0);function pe(ft,tr){this._context=ft,this._k=(1-tr)/6}pe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Re(this,ft,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var dt=function ft(tr){function pr(gr){return new pe(gr,tr)}return pr.tension=function(gr){return ft(+gr)},pr}(0);function It(ft,tr,pr){var gr=ft._x1,Zr=ft._y1,Ai=ft._x2,Qi=ft._y2;if(ft._l01_a>f){var ni=2*ft._l01_2a+3*ft._l01_a*ft._l12_a+ft._l12_2a,Zi=3*ft._l01_a*(ft._l01_a+ft._l12_a);gr=(gr*ni-ft._x0*ft._l12_2a+ft._x2*ft._l01_2a)/Zi,Zr=(Zr*ni-ft._y0*ft._l12_2a+ft._y2*ft._l01_2a)/Zi}if(ft._l23_a>f){var aa=2*ft._l23_2a+3*ft._l23_a*ft._l12_a+ft._l12_2a,Mn=3*ft._l23_a*(ft._l23_a+ft._l12_a);Ai=(Ai*aa+ft._x1*ft._l23_2a-tr*ft._l12_2a)/Mn,Qi=(Qi*aa+ft._y1*ft._l23_2a-pr*ft._l12_2a)/Mn}ft._context.bezierCurveTo(gr,Zr,Ai,Qi,ft._x2,ft._y2)}function Pt(ft,tr){this._context=ft,this._alpha=tr}Pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){if(ft=+ft,tr=+tr,this._point){var pr=this._x2-ft,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;break;case 2:this._point=3;default:It(this,ft,tr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var rr=function ft(tr){function pr(gr){return tr?new Pt(gr,tr):new De(gr,0)}return pr.alpha=function(gr){return ft(+gr)},pr}(.5);function Hr(ft,tr){this._context=ft,this._alpha=tr}Hr.prototype={areaStart:$e,areaEnd:$e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(ft,tr){if(ft=+ft,tr=+tr,this._point){var pr=this._x2-ft,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=ft,this._y3=tr;break;case 1:this._point=2,this._context.moveTo(this._x4=ft,this._y4=tr);break;case 2:this._point=3,this._x5=ft,this._y5=tr;break;default:It(this,ft,tr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var Dr=function ft(tr){function pr(gr){return tr?new Hr(gr,tr):new ge(gr,0)}return pr.alpha=function(gr){return ft(+gr)},pr}(.5);function Mr(ft,tr){this._context=ft,this._alpha=tr}Mr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){if(ft=+ft,tr=+tr,this._point){var pr=this._x2-ft,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:It(this,ft,tr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var Fr=function ft(tr){function pr(gr){return tr?new Mr(gr,tr):new pe(gr,0)}return pr.alpha=function(gr){return ft(+gr)},pr}(.5);function di(ft){this._context=ft}di.prototype={areaStart:$e,areaEnd:$e,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(ft,tr){ft=+ft,tr=+tr,this._point?this._context.lineTo(ft,tr):(this._point=1,this._context.moveTo(ft,tr))}};function Di(ft){return new di(ft)}function Ii(ft){return ft<0?-1:1}function Ci(ft,tr,pr){var gr=ft._x1-ft._x0,Zr=tr-ft._x1,Ai=(ft._y1-ft._y0)/(gr||Zr<0&&-0),Qi=(pr-ft._y1)/(Zr||gr<0&&-0),ni=(Ai*Zr+Qi*gr)/(gr+Zr);return(Ii(Ai)+Ii(Qi))*Math.min(Math.abs(Ai),Math.abs(Qi),.5*Math.abs(ni))||0}function nn(ft,tr){var pr=ft._x1-ft._x0;return pr?(3*(ft._y1-ft._y0)/pr-tr)/2:tr}function ii(ft,tr,pr){var gr=ft._x0,Zr=ft._y0,Ai=ft._x1,Qi=ft._y1,ni=(Ai-gr)/3;ft._context.bezierCurveTo(gr+ni,Zr+ni*tr,Ai-ni,Qi-ni*pr,Ai,Qi)}function wi(ft){this._context=ft}wi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ii(this,this._t0,nn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){var pr=NaN;if(ft=+ft,tr=+tr,!(ft===this._x1&&tr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;break;case 2:this._point=3,ii(this,nn(this,pr=Ci(this,ft,tr)),pr);break;default:ii(this,this._t0,pr=Ci(this,ft,tr));break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr,this._t0=pr}}};function Gi(ft){this._context=new Bt(ft)}(Gi.prototype=Object.create(wi.prototype)).point=function(ft,tr){wi.prototype.point.call(this,tr,ft)};function Bt(ft){this._context=ft}Bt.prototype={moveTo:function(ft,tr){this._context.moveTo(tr,ft)},closePath:function(){this._context.closePath()},lineTo:function(ft,tr){this._context.lineTo(tr,ft)},bezierCurveTo:function(ft,tr,pr,gr,Zr,Ai){this._context.bezierCurveTo(tr,ft,gr,pr,Ai,Zr)}};function yt(ft){return new wi(ft)}function Vt(ft){return new Gi(ft)}function Wt(ft){this._context=ft}Wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var ft=this._x,tr=this._y,pr=ft.length;if(pr)if(this._line?this._context.lineTo(ft[0],tr[0]):this._context.moveTo(ft[0],tr[0]),pr===2)this._context.lineTo(ft[1],tr[1]);else for(var gr=_r(ft),Zr=_r(tr),Ai=0,Qi=1;Qi=0;--tr)Zr[tr]=(Qi[tr]-Zr[tr+1])/Ai[tr];for(Ai[pr-1]=(ft[pr]+Zr[pr-1])/2,tr=0;tr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,tr),this._context.lineTo(ft,tr);else{var pr=this._x*(1-this._t)+ft*this._t;this._context.lineTo(pr,this._y),this._context.lineTo(pr,tr)}break}}this._x=ft,this._y=tr}};function Ir(ft){return new Ur(ft,.5)}function Gr(ft){return new Ur(ft,0)}function jr(ft){return new Ur(ft,1)}function yi(ft,tr){if((Qi=ft.length)>1)for(var pr=1,gr,Zr,Ai=ft[tr[0]],Qi,ni=Ai.length;pr=0;)pr[tr]=tr;return pr}function Vi(ft,tr){return ft[tr]}function ti(){var ft=r([]),tr=Ei,pr=yi,gr=Vi;function Zr(Ai){var Qi=ft.apply(this,arguments),ni,Zi=Ai.length,aa=Qi.length,Mn=new Array(aa),Un;for(ni=0;ni0){for(var pr,gr,Zr=0,Ai=ft[0].length,Qi;Zr0)for(var pr,gr=0,Zr,Ai,Qi,ni,Zi,aa=ft[tr[0]].length;gr0?(Zr[0]=Qi,Zr[1]=Qi+=Ai):Ai<0?(Zr[1]=ni,Zr[0]=ni+=Ai):(Zr[0]=0,Zr[1]=Ai)}function oi(ft,tr){if((Zr=ft.length)>0){for(var pr=0,gr=ft[tr[0]],Zr,Ai=gr.length;pr0)||!((Ai=(Zr=ft[tr[0]]).length)>0))){for(var pr=0,gr=1,Zr,Ai,Qi;grAi&&(Ai=Zr,pr=tr);return pr}function Fi(ft){var tr=ft.map(Ri);return Ei(ft).sort(function(pr,gr){return tr[pr]-tr[gr]})}function Ri(ft){for(var tr=0,pr=-1,gr=ft.length,Zr;++pr{(function(e,t){typeof zB=="object"&&typeof sXe!="undefined"?t(zB,nk(),MB(),QJ()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(zB,function(e,t,r,n){"use strict";function i(m){return m.target.depth}function a(m){return m.depth}function o(m,P){return P-1-m.height}function s(m,P){return m.sourceLinks.length?m.depth:P-1}function u(m){return m.targetLinks.length?m.depth:m.sourceLinks.length?t.min(m.sourceLinks,i)-1:0}function l(m){return function(){return m}}function f(m,P){return h(m.source,P.source)||m.index-P.index}function c(m,P){return h(m.target,P.target)||m.index-P.index}function h(m,P){return m.y0-P.y0}function d(m){return m.value}function p(m){return(m.y0+m.y1)/2}function _(m){return p(m.source)*m.value}function b(m){return p(m.target)*m.value}function v(m){return m.index}function k(m){return m.nodes}function E(m){return m.links}function T(m,P){var A=m.get(P);if(!A)throw new Error("missing: "+P);return A}var L=function(){var m=0,P=0,A=1,B=1,F=24,U=8,G=v,j=s,H=k,N=E,W=32,re=2/3;function ae(){var ke={nodes:H.apply(null,arguments),links:N.apply(null,arguments)};return be(ke),Pe(ke),Ce(ke),de(ke,W),te(ke),ke}ae.update=function(ke){return te(ke),ke},ae.nodeId=function(ke){return arguments.length?(G=typeof ke=="function"?ke:l(ke),ae):G},ae.nodeAlign=function(ke){return arguments.length?(j=typeof ke=="function"?ke:l(ke),ae):j},ae.nodeWidth=function(ke){return arguments.length?(F=+ke,ae):F},ae.nodePadding=function(ke){return arguments.length?(U=+ke,ae):U},ae.nodes=function(ke){return arguments.length?(H=typeof ke=="function"?ke:l(ke),ae):H},ae.links=function(ke){return arguments.length?(N=typeof ke=="function"?ke:l(ke),ae):N},ae.size=function(ke){return arguments.length?(m=P=0,A=+ke[0],B=+ke[1],ae):[A-m,B-P]},ae.extent=function(ke){return arguments.length?(m=+ke[0][0],A=+ke[1][0],P=+ke[0][1],B=+ke[1][1],ae):[[m,P],[A,B]]},ae.iterations=function(ke){return arguments.length?(W=+ke,ae):W};function be(ke){ke.nodes.forEach(function(Me,Ne){Me.index=Ne,Me.sourceLinks=[],Me.targetLinks=[]});var Ee=r.map(ke.nodes,G);ke.links.forEach(function(Me,Ne){Me.index=Ne;var Fe=Me.source,ye=Me.target;typeof Fe!="object"&&(Fe=Me.source=T(Ee,Fe)),typeof ye!="object"&&(ye=Me.target=T(Ee,ye)),Fe.sourceLinks.push(Me),ye.targetLinks.push(Me)})}function Pe(ke){ke.nodes.forEach(function(Ee){Ee.value=Math.max(t.sum(Ee.sourceLinks,d),t.sum(Ee.targetLinks,d))})}function Ce(ke){var Ee,Me,Ne;for(Ee=ke.nodes,Me=[],Ne=0;Ee.length;++Ne,Ee=Me,Me=[])Ee.forEach(function(ye){ye.depth=Ne,ye.sourceLinks.forEach(function(Ve){Me.indexOf(Ve.target)<0&&Me.push(Ve.target)})});for(Ee=ke.nodes,Me=[],Ne=0;Ee.length;++Ne,Ee=Me,Me=[])Ee.forEach(function(ye){ye.height=Ne,ye.targetLinks.forEach(function(Ve){Me.indexOf(Ve.source)<0&&Me.push(Ve.source)})});var Fe=(A-m-F)/(Ne-1);ke.nodes.forEach(function(ye){ye.x1=(ye.x0=m+Math.max(0,Math.min(Ne-1,Math.floor(j.call(null,ye,Ne))))*Fe)+F})}function de(ke){var Ee=r.nest().key(function(Ke){return Ke.x0}).sortKeys(t.ascending).entries(ke.nodes).map(function(Ke){return Ke.values});Fe(),ce();for(var Me=1,Ne=W;Ne>0;--Ne)Ve(Me*=.99),ce(),ye(Me),ce();function Fe(){var Ke=t.max(Ee,function(Nt){return Nt.length}),nt=re*(B-P)/(Ke-1);U>nt&&(U=nt);var gt=t.min(Ee,function(Nt){return(B-P-(Nt.length-1)*U)/t.sum(Nt,d)});Ee.forEach(function(Nt){Nt.forEach(function(it,Ye){it.y1=(it.y0=Ye)+it.value*gt})}),ke.links.forEach(function(Nt){Nt.width=Nt.value*gt})}function ye(Ke){Ee.forEach(function(nt){nt.forEach(function(gt){if(gt.targetLinks.length){var Nt=(t.sum(gt.targetLinks,_)/t.sum(gt.targetLinks,d)-p(gt))*Ke;gt.y0+=Nt,gt.y1+=Nt}})})}function Ve(Ke){Ee.slice().reverse().forEach(function(nt){nt.forEach(function(gt){if(gt.sourceLinks.length){var Nt=(t.sum(gt.sourceLinks,b)/t.sum(gt.sourceLinks,d)-p(gt))*Ke;gt.y0+=Nt,gt.y1+=Nt}})})}function ce(){Ee.forEach(function(Ke){var nt,gt,Nt=P,it=Ke.length,Ye;for(Ke.sort(h),Ye=0;Ye0&&(nt.y0+=gt,nt.y1+=gt),Nt=nt.y1+U;if(gt=Nt-U-B,gt>0)for(Nt=nt.y0-=gt,nt.y1-=gt,Ye=it-2;Ye>=0;--Ye)nt=Ke[Ye],gt=nt.y1+U-Nt,gt>0&&(nt.y0-=gt,nt.y1-=gt),Nt=nt.y0})}}function te(ke){ke.nodes.forEach(function(Ee){Ee.sourceLinks.sort(c),Ee.targetLinks.sort(f)}),ke.nodes.forEach(function(Ee){var Me=Ee.y0,Ne=Me;Ee.sourceLinks.forEach(function(Fe){Fe.y0=Me+Fe.width/2,Me+=Fe.width}),Ee.targetLinks.forEach(function(Fe){Fe.y1=Ne+Fe.width/2,Ne+=Fe.width})})}return ae};function x(m){return[m.source.x1,m.y0]}function C(m){return[m.target.x0,m.y1]}var M=function(){return n.linkHorizontal().source(x).target(C)};e.sankey=L,e.sankeyCenter=u,e.sankeyLeft=a,e.sankeyRight=o,e.sankeyJustify=s,e.sankeyLinkHorizontal=M,Object.defineProperty(e,"__esModule",{value:!0})})});var fXe=Te((W2r,uXe)=>{var hYt=$J();uXe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],u;function l(E){a[E]=!1,o.hasOwnProperty(E)&&Object.keys(o[E]).forEach(function(T){delete o[E][T],a[T]&&l(T)})}function f(E){var T=!1;i.push(E),a[E]=!0;var L,x;for(L=0;L=E})}function d(E){h(E);for(var T=t,L=hYt(T),x=L.components.filter(function(F){return F.length>1}),C=1/0,M,m=0;m{(function(e,t){typeof IB=="object"&&typeof cXe!="undefined"?t(IB,nk(),MB(),QJ(),fXe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(IB,function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(it){return it.target.depth}function o(it){return it.depth}function s(it,Ye){return Ye-1-it.height}function u(it,Ye){return it.sourceLinks.length?it.depth:Ye-1}function l(it){return it.targetLinks.length?it.depth:it.sourceLinks.length?t.min(it.sourceLinks,a)-1:0}function f(it){return function(){return it}}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(it){return typeof it}:function(it){return it&&typeof Symbol=="function"&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it};function h(it,Ye){return p(it.source,Ye.source)||it.index-Ye.index}function d(it,Ye){return p(it.target,Ye.target)||it.index-Ye.index}function p(it,Ye){return it.partOfCycle===Ye.partOfCycle?it.y0-Ye.y0:it.circularLinkType==="top"||Ye.circularLinkType==="bottom"?-1:1}function _(it){return it.value}function b(it){return(it.y0+it.y1)/2}function v(it){return b(it.source)}function k(it){return b(it.target)}function E(it){return it.index}function T(it){return it.nodes}function L(it){return it.links}function x(it,Ye){var kt=it.get(Ye);if(!kt)throw new Error("missing: "+Ye);return kt}function C(it,Ye){return Ye(it)}var M=25,m=10,P=.3;function A(){var it=0,Ye=0,kt=1,Tt=1,St=24,Rt,Zt=E,Et=u,Ae=T,at=L,wt=32,vt=2,st,Ue=null;function rt(){var Ie={nodes:Ae.apply(null,arguments),links:at.apply(null,arguments)};$e(Ie),B(Ie,Zt,Ue),zt(Ie),yr(Ie),F(Ie,Zt),br(Ie,wt,Zt),Ut(Ie);for(var xe=4,Oe=0;Oe0?xe+M+m:xe,Oe=Oe>0?Oe+M+m:Oe,Re=Re>0?Re+M+m:Re,De=De>0?De+M+m:De,{top:xe,bottom:Oe,left:De,right:Re}}function hr(Ie,xe){var Oe=t.max(Ie.nodes,function(dt){return dt.column}),Re=kt-it,De=Tt-Ye,ct=Re+xe.right+xe.left,ge=De+xe.top+xe.bottom,fe=Re/ct,pe=De/ge;return it=it*fe+xe.left,kt=xe.right==0?kt:kt*fe,Ye=Ye*pe+xe.top,Tt=Tt*pe,Ie.nodes.forEach(function(dt){dt.x0=it+dt.column*((kt-it-St)/Oe),dt.x1=dt.x0+St}),pe}function yr(Ie){var xe,Oe,Re;for(xe=Ie.nodes,Oe=[],Re=0;xe.length;++Re,xe=Oe,Oe=[])xe.forEach(function(De){De.depth=Re,De.sourceLinks.forEach(function(ct){Oe.indexOf(ct.target)<0&&!ct.circular&&Oe.push(ct.target)})});for(xe=Ie.nodes,Oe=[],Re=0;xe.length;++Re,xe=Oe,Oe=[])xe.forEach(function(De){De.height=Re,De.targetLinks.forEach(function(ct){Oe.indexOf(ct.source)<0&&!ct.circular&&Oe.push(ct.source)})});Ie.nodes.forEach(function(De){De.column=Math.floor(Et.call(null,De,Re))})}function br(Ie,xe,Oe){var Re=r.nest().key(function(dt){return dt.column}).sortKeys(t.ascending).entries(Ie.nodes).map(function(dt){return dt.values});ge(Oe),pe();for(var De=1,ct=xe;ct>0;--ct)fe(De*=.99,Oe),pe();function ge(dt){if(st){var It=1/0;Re.forEach(function(Dr){var Mr=Tt*st/(Dr.length+1);It=Mr0))if(Dr==0&&Hr==1)Fr=Mr.y1-Mr.y0,Mr.y0=Tt/2-Fr/2,Mr.y1=Tt/2+Fr/2;else if(Dr==Pt-1&&Hr==1)Fr=Mr.y1-Mr.y0,Mr.y0=Tt/2-Fr/2,Mr.y1=Tt/2+Fr/2;else{var di=0,Di=t.mean(Mr.sourceLinks,k),Ii=t.mean(Mr.targetLinks,v);Di&&Ii?di=(Di+Ii)/2:di=Di||Ii;var Ci=(di-b(Mr))*dt;Mr.y0+=Ci,Mr.y1+=Ci}})})}function pe(){Re.forEach(function(dt){var It,Pt,rr=Ye,Hr=dt.length,Dr;for(dt.sort(p),Dr=0;Dr0&&(It.y0+=Pt,It.y1+=Pt),rr=It.y1+Rt;if(Pt=rr-Rt-Tt,Pt>0)for(rr=It.y0-=Pt,It.y1-=Pt,Dr=Hr-2;Dr>=0;--Dr)It=dt[Dr],Pt=It.y1+Rt-rr,Pt>0&&(It.y0-=Pt,It.y1-=Pt),rr=It.y0})}}function Ut(Ie){Ie.nodes.forEach(function(xe){xe.sourceLinks.sort(d),xe.targetLinks.sort(h)}),Ie.nodes.forEach(function(xe){var Oe=xe.y0,Re=Oe,De=xe.y1,ct=De;xe.sourceLinks.forEach(function(ge){ge.circular?(ge.y0=De-ge.width/2,De=De-ge.width):(ge.y0=Oe+ge.width/2,Oe+=ge.width)}),xe.targetLinks.forEach(function(ge){ge.circular?(ge.y1=ct-ge.width/2,ct=ct-ge.width):(ge.y1=Re+ge.width/2,Re+=ge.width)})})}return rt}function B(it,Ye,kt){var Tt=0;if(kt===null){for(var St=[],Rt=0;RtYe.source.column)}function j(it,Ye){var kt=0;it.sourceLinks.forEach(function(St){kt=St.circular&&!gt(St,Ye)?kt+1:kt});var Tt=0;return it.targetLinks.forEach(function(St){Tt=St.circular&&!gt(St,Ye)?Tt+1:Tt}),kt+Tt}function H(it){var Ye=it.source.sourceLinks,kt=0;Ye.forEach(function(Rt){kt=Rt.circular?kt+1:kt});var Tt=it.target.targetLinks,St=0;return Tt.forEach(function(Rt){St=Rt.circular?St+1:St}),!(kt>1||St>1)}function N(it,Ye,kt){return it.sort(ae),it.forEach(function(Tt,St){var Rt=0;if(gt(Tt,kt)&&H(Tt))Tt.circularPathData.verticalBuffer=Rt+Tt.width/2;else{var Zt=0;for(Zt;ZtRt?Et:Rt}Tt.circularPathData.verticalBuffer=Rt+Tt.width/2}}),it}function W(it,Ye,kt,Tt){var St=5,Rt=t.min(it.links,function(Ae){return Ae.source.y0});it.links.forEach(function(Ae){Ae.circular&&(Ae.circularPathData={})});var Zt=it.links.filter(function(Ae){return Ae.circularLinkType=="top"});N(Zt,Ye,Tt);var Et=it.links.filter(function(Ae){return Ae.circularLinkType=="bottom"});N(Et,Ye,Tt),it.links.forEach(function(Ae){if(Ae.circular){if(Ae.circularPathData.arcRadius=Ae.width+m,Ae.circularPathData.leftNodeBuffer=St,Ae.circularPathData.rightNodeBuffer=St,Ae.circularPathData.sourceWidth=Ae.source.x1-Ae.source.x0,Ae.circularPathData.sourceX=Ae.source.x0+Ae.circularPathData.sourceWidth,Ae.circularPathData.targetX=Ae.target.x0,Ae.circularPathData.sourceY=Ae.y0,Ae.circularPathData.targetY=Ae.y1,gt(Ae,Tt)&&H(Ae))Ae.circularPathData.leftSmallArcRadius=m+Ae.width/2,Ae.circularPathData.leftLargeArcRadius=m+Ae.width/2,Ae.circularPathData.rightSmallArcRadius=m+Ae.width/2,Ae.circularPathData.rightLargeArcRadius=m+Ae.width/2,Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Ae.source.y1+M+Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.rightLargeArcRadius):(Ae.circularPathData.verticalFullExtent=Ae.source.y0-M-Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.rightLargeArcRadius);else{var at=Ae.source.column,wt=Ae.circularLinkType,vt=it.links.filter(function(rt){return rt.source.column==at&&rt.circularLinkType==wt});Ae.circularLinkType=="bottom"?vt.sort(Pe):vt.sort(be);var st=0;vt.forEach(function(rt,$e){rt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.leftSmallArcRadius=m+Ae.width/2+st,Ae.circularPathData.leftLargeArcRadius=m+Ae.width/2+$e*Ye+st),st=st+rt.width}),at=Ae.target.column,vt=it.links.filter(function(rt){return rt.target.column==at&&rt.circularLinkType==wt}),Ae.circularLinkType=="bottom"?vt.sort(de):vt.sort(Ce),st=0,vt.forEach(function(rt,$e){rt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.rightSmallArcRadius=m+Ae.width/2+st,Ae.circularPathData.rightLargeArcRadius=m+Ae.width/2+$e*Ye+st),st=st+rt.width}),Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Math.max(kt,Ae.source.y1,Ae.target.y1)+M+Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.rightLargeArcRadius):(Ae.circularPathData.verticalFullExtent=Rt-M-Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.rightLargeArcRadius)}Ae.circularPathData.leftInnerExtent=Ae.circularPathData.sourceX+Ae.circularPathData.leftNodeBuffer,Ae.circularPathData.rightInnerExtent=Ae.circularPathData.targetX-Ae.circularPathData.rightNodeBuffer,Ae.circularPathData.leftFullExtent=Ae.circularPathData.sourceX+Ae.circularPathData.leftLargeArcRadius+Ae.circularPathData.leftNodeBuffer,Ae.circularPathData.rightFullExtent=Ae.circularPathData.targetX-Ae.circularPathData.rightLargeArcRadius-Ae.circularPathData.rightNodeBuffer}if(Ae.circular)Ae.path=re(Ae);else{var Ue=n.linkHorizontal().source(function(rt){var $e=rt.source.x0+(rt.source.x1-rt.source.x0),zt=rt.y0;return[$e,zt]}).target(function(rt){var $e=rt.target.x0,zt=rt.y1;return[$e,zt]});Ae.path=Ue(Ae)}})}function re(it){var Ye="";return it.circularLinkType=="top"?Ye="M"+it.circularPathData.sourceX+" "+it.circularPathData.sourceY+" L"+it.circularPathData.leftInnerExtent+" "+it.circularPathData.sourceY+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftSmallArcRadius+" 0 0 0 "+it.circularPathData.leftFullExtent+" "+(it.circularPathData.sourceY-it.circularPathData.leftSmallArcRadius)+" L"+it.circularPathData.leftFullExtent+" "+it.circularPathData.verticalLeftInnerExtent+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftLargeArcRadius+" 0 0 0 "+it.circularPathData.leftInnerExtent+" "+it.circularPathData.verticalFullExtent+" L"+it.circularPathData.rightInnerExtent+" "+it.circularPathData.verticalFullExtent+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightLargeArcRadius+" 0 0 0 "+it.circularPathData.rightFullExtent+" "+it.circularPathData.verticalRightInnerExtent+" L"+it.circularPathData.rightFullExtent+" "+(it.circularPathData.targetY-it.circularPathData.rightSmallArcRadius)+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightSmallArcRadius+" 0 0 0 "+it.circularPathData.rightInnerExtent+" "+it.circularPathData.targetY+" L"+it.circularPathData.targetX+" "+it.circularPathData.targetY:Ye="M"+it.circularPathData.sourceX+" "+it.circularPathData.sourceY+" L"+it.circularPathData.leftInnerExtent+" "+it.circularPathData.sourceY+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftSmallArcRadius+" 0 0 1 "+it.circularPathData.leftFullExtent+" "+(it.circularPathData.sourceY+it.circularPathData.leftSmallArcRadius)+" L"+it.circularPathData.leftFullExtent+" "+it.circularPathData.verticalLeftInnerExtent+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftLargeArcRadius+" 0 0 1 "+it.circularPathData.leftInnerExtent+" "+it.circularPathData.verticalFullExtent+" L"+it.circularPathData.rightInnerExtent+" "+it.circularPathData.verticalFullExtent+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightLargeArcRadius+" 0 0 1 "+it.circularPathData.rightFullExtent+" "+it.circularPathData.verticalRightInnerExtent+" L"+it.circularPathData.rightFullExtent+" "+(it.circularPathData.targetY+it.circularPathData.rightSmallArcRadius)+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightSmallArcRadius+" 0 0 1 "+it.circularPathData.rightInnerExtent+" "+it.circularPathData.targetY+" L"+it.circularPathData.targetX+" "+it.circularPathData.targetY,Ye}function ae(it,Ye){return te(it)==te(Ye)?it.circularLinkType=="bottom"?Pe(it,Ye):be(it,Ye):te(Ye)-te(it)}function be(it,Ye){return it.y0-Ye.y0}function Pe(it,Ye){return Ye.y0-it.y0}function Ce(it,Ye){return it.y1-Ye.y1}function de(it,Ye){return Ye.y1-it.y1}function te(it){return it.target.column-it.source.column}function ke(it){return it.target.x0-it.source.x1}function Ee(it,Ye){var kt=U(it),Tt=ke(Ye)/Math.tan(kt),St=nt(it)=="up"?it.y1+Tt:it.y1-Tt;return St}function Me(it,Ye){var kt=U(it),Tt=ke(Ye)/Math.tan(kt),St=nt(it)=="up"?it.y1-Tt:it.y1+Tt;return St}function Ne(it,Ye,kt,Tt){it.links.forEach(function(St){if(!St.circular&&St.target.column-St.source.column>1){var Rt=St.source.column+1,Zt=St.target.column-1,Et=1,Ae=Zt-Rt+1;for(Et=1;Rt<=Zt;Rt++,Et++)it.nodes.forEach(function(at){if(at.column==Rt){var wt=Et/(Ae+1),vt=Math.pow(1-wt,3),st=3*wt*Math.pow(1-wt,2),Ue=3*Math.pow(wt,2)*(1-wt),rt=Math.pow(wt,3),$e=vt*St.y0+st*St.y0+Ue*St.y1+rt*St.y1,zt=$e-St.width/2,Yt=$e+St.width/2,hr;zt>at.y0&&ztat.y0&&Ytat.y1&&ye(yr,hr,Ye,kt)})):ztat.y1&&(hr=Yt-at.y0+10,at=ye(at,hr,Ye,kt),it.nodes.forEach(function(yr){C(yr,Tt)==C(at,Tt)||yr.column!=at.column||yr.y0at.y1&&ye(yr,hr,Ye,kt)}))}})}})}function Fe(it,Ye){return it.y0>Ye.y0&&it.y0Ye.y0&&it.y1Ye.y1}function ye(it,Ye,kt,Tt){return it.y0+Ye>=kt&&it.y1+Ye<=Tt&&(it.y0=it.y0+Ye,it.y1=it.y1+Ye,it.targetLinks.forEach(function(St){St.y1=St.y1+Ye}),it.sourceLinks.forEach(function(St){St.y0=St.y0+Ye})),it}function Ve(it,Ye,kt,Tt){it.nodes.forEach(function(St){Tt&&St.y+(St.y1-St.y0)>Ye&&(St.y=St.y-(St.y+(St.y1-St.y0)-Ye));var Rt=it.links.filter(function(Ae){return C(Ae.source,kt)==C(St,kt)}),Zt=Rt.length;Zt>1&&Rt.sort(function(Ae,at){if(!Ae.circular&&!at.circular){if(Ae.target.column==at.target.column)return Ae.y1-at.y1;if(Ke(Ae,at)){if(Ae.target.column>at.target.column){var wt=Me(at,Ae);return Ae.y1-wt}if(at.target.column>Ae.target.column){var vt=Me(Ae,at);return vt-at.y1}}else return Ae.y1-at.y1}if(Ae.circular&&!at.circular)return Ae.circularLinkType=="top"?-1:1;if(at.circular&&!Ae.circular)return at.circularLinkType=="top"?1:-1;if(Ae.circular&&at.circular)return Ae.circularLinkType===at.circularLinkType&&Ae.circularLinkType=="top"?Ae.target.column===at.target.column?Ae.target.y1-at.target.y1:at.target.column-Ae.target.column:Ae.circularLinkType===at.circularLinkType&&Ae.circularLinkType=="bottom"?Ae.target.column===at.target.column?at.target.y1-Ae.target.y1:Ae.target.column-at.target.column:Ae.circularLinkType=="top"?-1:1});var Et=St.y0;Rt.forEach(function(Ae){Ae.y0=Et+Ae.width/2,Et=Et+Ae.width}),Rt.forEach(function(Ae,at){if(Ae.circularLinkType=="bottom"){var wt=at+1,vt=0;for(wt;wt1&&St.sort(function(Et,Ae){if(!Et.circular&&!Ae.circular){if(Et.source.column==Ae.source.column)return Et.y0-Ae.y0;if(Ke(Et,Ae)){if(Ae.source.column0?"up":"down"}function gt(it,Ye){return C(it.source,Ye)==C(it.target,Ye)}function Nt(it,Ye,kt){var Tt=it.nodes,St=it.links,Rt=!1,Zt=!1;if(St.forEach(function(st){st.circularLinkType=="top"?Rt=!0:st.circularLinkType=="bottom"&&(Zt=!0)}),Rt==!1||Zt==!1){var Et=t.min(Tt,function(st){return st.y0}),Ae=t.max(Tt,function(st){return st.y1}),at=Ae-Et,wt=kt-Ye,vt=wt/at;Tt.forEach(function(st){var Ue=(st.y1-st.y0)*vt;st.y0=(st.y0-Et)*vt,st.y1=st.y0+Ue}),St.forEach(function(st){st.y0=(st.y0-Et)*vt,st.y1=(st.y1-Et)*vt,st.width=st.width*vt})}}e.sankeyCircular=A,e.sankeyCenter=l,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=u,Object.defineProperty(e,"__esModule",{value:!0})})});var e$=Te((j2r,dXe)=>{"use strict";dXe.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}});var MXe=Te((X2r,SXe)=>{"use strict";var pXe=iXe(),dYt=(I2(),ab(z2)).interpolateNumber,PS=Jl(),Jk=lXe(),pYt=hXe(),dc=e$(),zS=cd(),aw=jl(),vYt=Mu(),v1=ei(),i$=v1.strTranslate,mYt=v1.strRotate,n$=Ky(),$k=n$.keyFun,RB=n$.repeat,xXe=n$.unwrap,vXe=Xf(),yYt=$l(),bXe=Qh(),gYt=bXe.CAP_SHIFT,_Yt=bXe.LINE_SPACING,xYt=3;function bYt(e,t,r){var n=xXe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,u=i.node.thickness,l={justify:Jk.sankeyJustify,left:Jk.sankeyLeft,right:Jk.sankeyRight,center:Jk.sankeyCenter}[i.node.align],f=e.width*(a.x[1]-a.x[0]),c=e.height*(a.y[1]-a.y[0]),h=n._nodes,d=n._links,p=n.circular,_;p?_=pYt.sankeyCircular().circularLinkGap(0):_=Jk.sankey(),_.iterations(dc.sankeyIterations).size(o?[f,c]:[c,f]).nodeWidth(u).nodePadding(s).nodeId(function(U){return U.pointNumber}).nodeAlign(l).nodes(h).links(d);var b=_();_.nodePadding()=N||(H=N-j.y0,H>1e-6&&(j.y0+=H,j.y1+=H)),N=j.y1+s})}function P(U){var G=U.map(function(be,Pe){return{x0:be.x0,index:Pe}}).sort(function(be,Pe){return be.x0-Pe.x0}),j=[],H=-1,N,W=-1/0,re;for(v=0;vW+u&&(H+=1,N=ae.x0),W=ae.x0,j[H]||(j[H]=[]),j[H].push(ae),re=N-ae.x0,ae.x0+=re,ae.x1+=re}return j}if(i.node.x.length&&i.node.y.length){for(v=0;v0?" L "+i.targetX+" "+i.targetY:"")+"Z"):(r="M "+(i.targetX-t)+" "+(i.targetY-n)+" L "+(i.rightInnerExtent-t)+" "+(i.targetY-n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightSmallArcRadius+n)+" 0 0 0 "+(i.rightFullExtent-n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" L "+(i.rightFullExtent-n-t)+" "+i.verticalRightInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-n-t)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent+n-t-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:a?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent-t-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.leftFullExtent+n+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent+n)+" L "+i.leftInnerExtent+" "+(i.verticalFullExtent+n)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent,r+=" L "+(i.leftFullExtent+n)+" "+(i.sourceY+i.leftSmallArcRadius)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftSmallArcRadius+n)+" 0 0 0 "+i.leftInnerExtent+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY+n)+" L "+i.leftInnerExtent+" "+(i.sourceY+n)+" A "+(i.leftLargeArcRadius-n)+" "+(i.leftSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n)+" "+(i.sourceY+i.leftSmallArcRadius)+" L "+(i.leftFullExtent-n)+" "+i.verticalLeftInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.rightFullExtent+n-t+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:a?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent-t-n)+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:r+=" A "+(i.leftLargeArcRadius-n)+" "+(i.leftLargeArcRadius-n)+" 0 0 1 "+i.leftInnerExtent+" "+(i.verticalFullExtent-n)+" L "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightLargeArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent,r+=" L "+(i.rightFullExtent+n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightInnerExtent-t)+" "+(i.targetY+n)+" L "+(i.targetX-t)+" "+(i.targetY+n)+(t>0?" L "+i.targetX+" "+i.targetY:"")+"Z"),r}function a$(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return AYt(r.link,n);var i=Math.abs((r.link.target.x0-r.link.source.x1)/2);n>i&&(n=i);var a=r.link.source.x1,o=r.link.target.x0-n,s=dYt(a,o),u=s(e),l=s(1-e),f=r.link.y0-r.link.width/2,c=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,d=r.link.y1+r.link.width/2,p="M"+a+","+f,_="C"+u+","+f+" "+l+","+h+" "+o+","+h,b="C"+l+","+d+" "+u+","+c+" "+a+","+c,v=n>0?"L"+(o+n)+","+(h+r.link.width/2):"";return v+="L"+o+","+d,p+_+v+b+"Z"}return t}function TYt(e,t){var r=zS(t.color),n=dc.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var a=t.dx,o=Math.max(.5,t.dy),s="node_"+t.pointNumber;return t.group&&(s=v1.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:s,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:aw.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,s].join("_"),interactionState:e.interactionState,figure:e}}function r$(e){e.attr("transform",function(t){return i$(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function SYt(e){e.call(r$)}function wXe(e,t){e.call(SYt),t.attr("d",a$())}function mXe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function t$(e){return e.link.width>1||e.linkLineWidth>0}function yXe(e){var t=i$(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function gXe(e,t,r){e.on(".basic",null).on("mouseover.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.hover(this,n,t),n.interactionState.hovered=[this,n])}).on("mousemove.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.follow(this,n),n.interactionState.hovered=[this,n])}).on("mouseout.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.unhover(this,n,t),n.interactionState.hovered=!1)}).on("click.basic",function(n){n.interactionState.hovered&&(r.unhover(this,n,t),n.interactionState.hovered=!1),!n.interactionState.dragInProgress&&!n.partOfGroup&&r.select(this,n,t)})}function MYt(e,t,r,n){var i=PS.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(v1.ensureSingle(n._fullLayout._infolayer,"g","dragcover",function(s){n._fullLayout._dragCover=s}),v1.raiseToTop(this),a.interactionState.dragInProgress=a.node,_Xe(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):EYt(e,o,a,n),kYt(e,t,a,o,n)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=PS.event.x,s=PS.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),_Xe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),wXe(e.filter(TXe(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var u=r.node.originalX;r.node.x0=u-r.visibleWidth/2,r.node.x1=u+r.visibleWidth/2,AXe(r,i)}})}function CYt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function AXe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Zp=Jl(),s$=ei(),DB=s$.numberFormat,IYt=MXe(),IS=Xc(),RYt=jl(),Tx=e$().cn,Qk=s$._;function EXe(e){return e!==""}function RS(e,t){return e.filter(function(r){return r.key===t.traceId})}function kXe(e,t){Zp.select(e).select("path").style("fill-opacity",t),Zp.select(e).select("rect").style("fill-opacity",t)}function CXe(e){Zp.select(e).select("text.name").style("fill","black")}function LXe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function PXe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function zXe(e,t,r){t&&r&&RS(r,t).selectAll("."+Tx.sankeyLink).filter(LXe(t)).call(IXe.bind(0,t,r,!1))}function o$(e,t,r){t&&r&&RS(r,t).selectAll("."+Tx.sankeyLink).filter(LXe(t)).call(RXe.bind(0,t,r,!1))}function IXe(e,t,r,n){n.style("fill",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverHue}).style("fill-opacity",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverAlpha}),n.each(function(i){var a=i.link.label;a!==""&&RS(t,e).selectAll("."+Tx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverHue}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverAlpha})}),r&&RS(t,e).selectAll("."+Tx.sankeyNode).filter(PXe(e)).call(zXe)}function RXe(e,t,r,n){n.style("fill",function(i){return i.tinyColorHue}).style("fill-opacity",function(i){return i.tinyColorAlpha}),n.each(function(i){var a=i.link.label;a!==""&&RS(t,e).selectAll("."+Tx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){return o.tinyColorHue}).style("fill-opacity",function(o){return o.tinyColorAlpha})}),r&&RS(t,e).selectAll(Tx.sankeyNode).filter(PXe(e)).call(o$)}function th(e,t){var r=e.hoverlabel||{},n=s$.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}DXe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:th(C,"bgcolor")||RYt.addOpacity(B.color,1),borderColor:th(C,"bordercolor"),fontFamily:th(C,"font.family"),fontSize:th(C,"font.size"),fontColor:th(C,"font.color"),fontWeight:th(C,"font.weight"),fontStyle:th(C,"font.style"),fontVariant:th(C,"font.variant"),fontTextcase:th(C,"font.textcase"),fontLineposition:th(C,"font.lineposition"),fontShadow:th(C,"font.shadow"),nameLength:th(C,"namelength"),textAlign:th(C,"align"),idealAlign:Zp.event.x"),color:th(C,"bgcolor")||x.tinyColorHue,borderColor:th(C,"bordercolor"),fontFamily:th(C,"font.family"),fontSize:th(C,"font.size"),fontColor:th(C,"font.color"),fontWeight:th(C,"font.weight"),fontStyle:th(C,"font.style"),fontVariant:th(C,"font.variant"),fontTextcase:th(C,"font.textcase"),fontLineposition:th(C,"font.lineposition"),fontShadow:th(C,"font.shadow"),nameLength:th(C,"namelength"),textAlign:th(C,"align"),idealAlign:"left",hovertemplate:C.hovertemplate,hovertemplateLabels:U,eventData:[x.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});kXe(H,.85),CXe(H)}}},T=function(L,x,C){t._fullLayout.hovermode!==!1&&(Zp.select(L).call(o$,x,C),x.node.trace.node.hoverinfo!=="skip"&&(x.node.fullData=x.node.trace,t.emit("plotly_unhover",{event:Zp.event,points:[x.node]})),IS.loneUnhover(n._hoverlayer.node()))};IYt(t,i,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:l,follow:_,unhover:b,select:u},nodeEvents:{hover:k,follow:E,unhover:T,select:v}})}});var FXe=Te(ow=>{"use strict";var DYt=Sc().overrideAll,FYt=Rd().getModuleCalcData,BYt=l$(),OYt=q1(),qYt=Tm(),NYt=xp(),UYt=ah().prepSelect,u$=ei(),VYt=$l(),FB="sankey";ow.name=FB;ow.baseLayoutAttrOverrides=DYt({hoverlabel:OYt.hoverlabel},"plot","nested");ow.plot=function(e){var t=FYt(e.calcdata,FB)[0];BYt(e,t),ow.updateFx(e)};ow.clean=function(e,t,r,n){var i=n._has&&n._has(FB),a=t._has&&t._has(FB);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};ow.updateFx=function(e){for(var t=0;t{"use strict";BXe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";qXe.exports={attributes:JJ(),supplyDefaults:Gje(),calc:Zje(),plot:l$(),moduleType:"trace",name:"sankey",basePlotModule:FXe(),selectPoints:OXe(),categories:["noOpacity"],meta:{}}});var VXe=Te(($2r,UXe)=>{"use strict";UXe.exports=NXe()});var HXe=Te(DS=>{"use strict";var GXe=Cc();DS.name="indicator";DS.plot=function(e,t,r,n){GXe.plotBasePlot(DS.name,e,t,r,n)};DS.clean=function(e,t,r,n){GXe.cleanBasePlot(DS.name,e,t,r,n)}});var c$=Te((ewr,KXe)=>{"use strict";var Sx=Su().extendFlat,jXe=Su().extendDeep,HYt=Sc().overrideAll,XXe=gc(),ZXe=Rh(),WYt=zc().attributes,lh=Dd(),jYt=Pf().templatedArray,BB=HA(),WXe=jc().descriptionOnlyNumbers,f$=XXe({editType:"plot",colorEditType:"plot"}),eC={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:ZXe.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},YXe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},XYt=jYt("step",jXe({},eC,{range:YXe}));KXe.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:WYt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Sx({},f$,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:WXe("value")},font:Sx({},f$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:WXe("value")},increasing:{symbol:{valType:"string",dflt:BB.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:BB.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:BB.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:BB.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Sx({},f$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:jXe({},eC,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:ZXe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:HYt({range:YXe,visible:Sx({},lh.visible,{dflt:!0}),tickmode:lh.minor.tickmode,nticks:lh.nticks,tick0:lh.tick0,dtick:lh.dtick,tickvals:lh.tickvals,ticktext:lh.ticktext,ticks:Sx({},lh.ticks,{dflt:"outside"}),ticklen:lh.ticklen,tickwidth:lh.tickwidth,tickcolor:lh.tickcolor,ticklabelstep:lh.ticklabelstep,showticklabels:lh.showticklabels,labelalias:lh.labelalias,tickfont:XXe({}),tickangle:lh.tickangle,tickformat:lh.tickformat,tickformatstops:lh.tickformatstops,tickprefix:lh.tickprefix,showtickprefix:lh.showtickprefix,ticksuffix:lh.ticksuffix,showticksuffix:lh.showticksuffix,separatethousands:lh.separatethousands,exponentformat:lh.exponentformat,minexponent:lh.minexponent,showexponent:lh.showexponent,editType:"plot"},"plot"),steps:XYt,threshold:{line:{color:Sx({},eC.line.color,{}),width:Sx({},eC.line.width,{dflt:1}),editType:"plot"},thickness:Sx({},eC.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var h$=Te((twr,JXe)=>{"use strict";JXe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var eZe=Te((rwr,QXe)=>{"use strict";var eg=ei(),qB=c$(),ZYt=zc().defaults,$Xe=Pf(),YYt=Jd(),OB=h$(),KYt=xb(),JYt=A3(),$Yt=e_(),QYt=t_();function eKt(e,t,r,n){function i(x,C){return eg.coerce(e,t,qB,x,C)}ZYt(t,n,i),i("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=i("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){i("number.valueformat");var u=eg.extendFlat({},n.font);u.size=void 0,eg.coerceFont(i,"number.font",u),t.number.font.size===void 0&&(t.number.font.size=OB.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var l;if(t._hasDelta){var f=eg.extendFlat({},n.font);f.size=void 0,eg.coerceFont(i,"delta.font",f),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||OB.defaultNumberFontSize),o[1]=!0),i("delta.reference",t.value),i("delta.relative"),i("delta.valueformat",t.delta.relative?"2%":""),i("delta.increasing.symbol"),i("delta.increasing.color"),i("delta.decreasing.symbol"),i("delta.decreasing.color"),i("delta.position"),i("delta.prefix"),i("delta.suffix"),l=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var c=eg.extendFlat({},n.font);c.size=.25*(s||l||OB.defaultNumberFontSize),eg.coerceFont(i,"title.font",c),i("title.text");var h,d,p,_;function b(x,C){return eg.coerce(h,d,qB.gauge,x,C)}function v(x,C){return eg.coerce(p,_,qB.gauge.axis,x,C)}if(t._hasGauge){h=e.gauge,h||(h={}),d=$Xe.newContainer(t,"gauge"),b("shape");var k=t._isBullet=t.gauge.shape==="bullet";k||i("title.align","center");var E=t._isAngular=t.gauge.shape==="angular";E||i("align","center"),b("bgcolor",n.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var T=OB.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",T),YYt(h,d,{name:"steps",handleItemDefaults:tKt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),p={},h&&(p=h.axis||{}),_=$Xe.newContainer(d,"axis"),v("visible"),t._range=v("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};KYt(p,_,v,"linear"),QYt(p,_,v,"linear",L),$Yt(p,_,v,"linear",L),JYt(p,_,v,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function tKt(e,t){function r(n,i){return eg.coerce(e,t,qB.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}QXe.exports={supplyDefaults:eKt}});var rZe=Te((iwr,tZe)=>{"use strict";function rKt(e,t){var r=[],n=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var i=t._lastValue,a=i;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}tZe.exports={calc:rKt}});var lZe=Te((nwr,sZe)=>{"use strict";var cw=Jl(),iKt=(I2(),ab(z2)).interpolate,iZe=(I2(),ab(z2)).interpolateNumber,Mx=ei(),nKt=Mx.strScale,rC=Mx.strTranslate,aKt=Mx.rad2deg,oKt=Qh().MID_SHIFT,fw=Mu(),sw=h$(),UB=Xf(),up=wu(),sKt=rE(),lKt=oI(),uKt=Dd(),FS=jl(),d$={left:"start",center:"middle",right:"end"},lw={left:0,center:.5,right:1},nZe=/[yzafpnµmkMGTPEZY]/;function iC(e){return e&&e.duration>0}sZe.exports=function(t,r,n,i){var a=t._fullLayout,o;iC(n)&&i&&(o=i()),Mx.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var u=s[0],l=u.trace,f=cw.select(this),c=l._hasGauge,h=l._isAngular,d=l._isBullet,p=l.domain,_={w:a._size.w*(p.x[1]-p.x[0]),h:a._size.h*(p.y[1]-p.y[0]),l:a._size.l+a._size.w*p.x[0],r:a._size.r+a._size.w*(1-p.x[1]),t:a._size.t+a._size.h*(1-p.y[1]),b:a._size.b+a._size.h*p.y[0]},b=_.l+_.w/2,v=_.t+_.h/2,k=Math.min(_.w/2,_.h),E=sw.innerRadius*k,T,L,x,C=l.align||"center";if(L=v,!c)T=_.l+lw[C]*_.w,x=function(H){return aZe(H,_.w,_.h)};else if(h&&(T=b,L=v+k/2,x=function(H){return pKt(H,.9*E)}),d){var M=sw.bulletPadding,m=1-sw.bulletNumberDomainSize+M;T=_.l+(m+(1-m)*lw[C])*_.w,x=function(H){return aZe(H,(sw.bulletNumberDomainSize-M)*_.w,_.h)}}hKt(t,f,s,{numbersX:T,numbersY:L,numbersScaler:x,transitionOpts:n,onComplete:o});var P,A;c&&(P={range:l.gauge.axis.range,color:l.gauge.bgcolor,line:{color:l.gauge.bordercolor,width:0},thickness:1},A={range:l.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:l.gauge.bordercolor,width:l.gauge.borderwidth},thickness:1});var B=f.selectAll("g.angular").data(h?s:[]);B.exit().remove();var F=f.selectAll("g.angularaxis").data(h?s:[]);F.exit().remove(),h&&cKt(t,f,s,{radius:k,innerRadius:E,gauge:B,layer:F,size:_,gaugeBg:P,gaugeOutline:A,transitionOpts:n,onComplete:o});var U=f.selectAll("g.bullet").data(d?s:[]);U.exit().remove();var G=f.selectAll("g.bulletaxis").data(d?s:[]);G.exit().remove(),d&&fKt(t,f,s,{gauge:U,layer:G,size:_,gaugeBg:P,gaugeOutline:A,transitionOpts:n,onComplete:o});var j=f.selectAll("text.title").data(s);j.exit().remove(),j.enter().append("text").classed("title",!0),j.attr("text-anchor",function(){return d?d$.right:d$[l.title.align]}).text(l.title.text).call(fw.font,l.title.font).call(UB.convertToTspans,t),j.attr("transform",function(){var H=_.l+_.w*lw[l.title.align],N,W=sw.titlePadding,re=fw.bBox(j.node());if(c){if(h)if(l.gauge.axis.visible){var ae=fw.bBox(F.node());N=ae.top-W-re.bottom}else N=_.t+_.h/2-k/2-re.bottom-W;d&&(N=L-(re.top+re.bottom)/2,H=_.l-sw.bulletPadding*_.w)}else N=l._numbersTop-W-re.bottom;return rC(H,N)})})};function fKt(e,t,r,n){var i=r[0].trace,a=n.gauge,o=n.layer,s=n.gaugeBg,u=n.gaugeOutline,l=n.size,f=i.domain,c=n.transitionOpts,h=n.onComplete,d,p,_,b,v;a.enter().append("g").classed("bullet",!0),a.attr("transform",rC(l.l,l.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var k=l.h,E=i.gauge.bar.thickness*k,T=f.x[0],L=f.x[0]+(f.x[1]-f.x[0])*(i._hasNumber||i._hasDelta?1-sw.bulletNumberDomainSize:1);d=tC(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[T,L],d.setScale(),p=up.calcTicks(d),_=up.makeTransTickFn(d),b=up.getTickSigns(d)[2],v=l.t+l.h,d.visible&&(up.drawTicks(e,d,{vals:d.ticks==="inside"?up.clipEnds(d,p):p,layer:o,path:up.makeTickPath(d,v,b),transFn:_}),up.drawLabels(e,d,{vals:p,layer:o,transFn:_,labelFns:up.makeLabelFns(d,v)}));function x(F){F.attr("width",function(U){return Math.max(0,d.c2p(U.range[1])-d.c2p(U.range[0]))}).attr("x",function(U){return d.c2p(U.range[0])}).attr("y",function(U){return .5*(1-U.thickness)*k}).attr("height",function(U){return U.thickness*k})}var C=[s].concat(i.gauge.steps),M=a.selectAll("g.bg-bullet").data(C);M.enter().append("g").classed("bg-bullet",!0).append("rect"),M.select("rect").call(x).call(uw),M.exit().remove();var m=a.selectAll("g.value-bullet").data([i.gauge.bar]);m.enter().append("g").classed("value-bullet",!0).append("rect"),m.select("rect").attr("height",E).attr("y",(k-E)/2).call(uw),iC(c)?m.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y)))):m.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y))):0),m.exit().remove();var P=r.filter(function(){return i.gauge.threshold.value||i.gauge.threshold.value===0}),A=a.selectAll("g.threshold-bullet").data(P);A.enter().append("g").classed("threshold-bullet",!0).append("line"),A.select("line").attr("x1",d.c2p(i.gauge.threshold.value)).attr("x2",d.c2p(i.gauge.threshold.value)).attr("y1",(1-i.gauge.threshold.thickness)/2*k).attr("y2",(1-(1-i.gauge.threshold.thickness)/2)*k).call(FS.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),A.exit().remove();var B=a.selectAll("g.gauge-outline").data([u]);B.enter().append("g").classed("gauge-outline",!0).append("rect"),B.select("rect").call(x).call(uw),B.exit().remove()}function cKt(e,t,r,n){var i=r[0].trace,a=n.size,o=n.radius,s=n.innerRadius,u=n.gaugeBg,l=n.gaugeOutline,f=[a.l+a.w/2,a.t+a.h/2+o/2],c=n.gauge,h=n.layer,d=n.transitionOpts,p=n.onComplete,_=Math.PI/2;function b(be){var Pe=i.gauge.axis.range[0],Ce=i.gauge.axis.range[1],de=(be-Pe)/(Ce-Pe)*Math.PI-_;return de<-_?-_:de>_?_:de}function v(be){return cw.svg.arc().innerRadius((s+o)/2-be/2*(o-s)).outerRadius((s+o)/2+be/2*(o-s)).startAngle(-_)}function k(be){be.attr("d",function(Pe){return v(Pe.thickness).startAngle(b(Pe.range[0])).endAngle(b(Pe.range[1]))()})}var E,T,L,x;c.enter().append("g").classed("angular",!0),c.attr("transform",rC(f[0],f[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),E=tC(e,i.gauge.axis),E.type="linear",E.range=i.gauge.axis.range,E._id="xangularaxis",E.ticklabeloverflow="allow",E.setScale();var C=function(be){return(E.range[0]-be.x)/(E.range[1]-E.range[0])*Math.PI+Math.PI},M={},m=up.makeLabelFns(E,0),P=m.labelStandoff;M.xFn=function(be){var Pe=C(be);return Math.cos(Pe)*P},M.yFn=function(be){var Pe=C(be),Ce=Math.sin(Pe)>0?.2:1;return-Math.sin(Pe)*(P+be.fontSize*Ce)+Math.abs(Math.cos(Pe))*(be.fontSize*oKt)},M.anchorFn=function(be){var Pe=C(be),Ce=Math.cos(Pe);return Math.abs(Ce)<.1?"middle":Ce>0?"start":"end"},M.heightFn=function(be,Pe,Ce){var de=C(be);return-.5*(1+Math.sin(de))*Ce};var A=function(be){return rC(f[0]+o*Math.cos(be),f[1]-o*Math.sin(be))};L=function(be){return A(C(be))};var B=function(be){var Pe=C(be);return A(Pe)+"rotate("+-aKt(Pe)+")"};if(T=up.calcTicks(E),x=up.getTickSigns(E)[2],E.visible){x=E.ticks==="inside"?-1:1;var F=(E.linewidth||1)/2;up.drawTicks(e,E,{vals:T,layer:h,path:"M"+x*F+",0h"+x*E.ticklen,transFn:B}),up.drawLabels(e,E,{vals:T,layer:h,transFn:L,labelFns:M})}var U=[u].concat(i.gauge.steps),G=c.selectAll("g.bg-arc").data(U);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(k).call(uw),G.exit().remove();var j=v(i.gauge.bar.thickness),H=c.selectAll("g.value-arc").data([i.gauge.bar]);H.enter().append("g").classed("value-arc",!0).append("path");var N=H.select("path");iC(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",dKt(j,b(r[0].lastY),b(r[0].y))),i._lastValue=r[0].y):N.attr("d",typeof r[0].y=="number"?j.endAngle(b(r[0].y)):"M0,0Z"),N.call(uw),H.exit().remove(),U=[];var W=i.gauge.threshold.value;(W||W===0)&&U.push({range:[W,W],color:i.gauge.threshold.color,line:{color:i.gauge.threshold.line.color,width:i.gauge.threshold.line.width},thickness:i.gauge.threshold.thickness});var re=c.selectAll("g.threshold-arc").data(U);re.enter().append("g").classed("threshold-arc",!0).append("path"),re.select("path").call(k).call(uw),re.exit().remove();var ae=c.selectAll("g.gauge-outline").data([l]);ae.enter().append("g").classed("gauge-outline",!0).append("path"),ae.select("path").call(k).call(uw),ae.exit().remove()}function hKt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",u=d$[s],l=n.transitionOpts,f=n.onComplete,c=Mx.ensureSingle(t,"g","numbers"),h,d,p,_=[];i._hasNumber&&_.push("number"),i._hasDelta&&(_.push("delta"),i.delta.position==="left"&&_.reverse());var b=c.selectAll("text").data(_);b.enter().append("text"),b.attr("text-anchor",function(){return u}).attr("class",function(A){return A}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function v(A,B,F,U){if(A.match("s")&&F>=0!=U>=0&&!B(F).slice(-1).match(nZe)&&!B(U).slice(-1).match(nZe)){var G=A.slice().replace("s","f").replace(/\d+/,function(H){return parseInt(H)-1}),j=tC(e,{tickformat:G});return function(H){return Math.abs(H)<1?up.tickText(j,H).text:B(H)}}else return B}function k(){var A=tC(e,{tickformat:i.number.valueformat},i._range);A.setScale(),up.prepTicks(A);var B=function(H){return up.tickText(A,H).text},F=i.number.suffix,U=i.number.prefix,G=c.select("text.number");function j(){var H=typeof r[0].y=="number"?U+B(r[0].y)+F:"-";G.text(H).call(fw.font,i.number.font).call(UB.convertToTspans,e)}return iC(l)?G.transition().duration(l.duration).ease(l.easing).each("end",function(){j(),f&&f()}).each("interrupt",function(){j(),f&&f()}).attrTween("text",function(){var H=cw.select(this),N=iZe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var W=v(i.number.valueformat,B,r[0].lastY,r[0].y);return function(re){H.text(U+W(N(re))+F)}}):j(),h=oZe(U+B(r[0].y)+F,i.number.font,u,e),G}function E(){var A=tC(e,{tickformat:i.delta.valueformat},i._range);A.setScale(),up.prepTicks(A);var B=function(re){return up.tickText(A,re).text},F=i.delta.suffix,U=i.delta.prefix,G=function(re){var ae=i.delta.relative?re.relativeDelta:re.delta;return ae},j=function(re,ae){return re===0||typeof re!="number"||isNaN(re)?"-":(re>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+U+ae(re)+F},H=function(re){return re.delta>=0?i.delta.increasing.color:i.delta.decreasing.color};i._deltaLastValue===void 0&&(i._deltaLastValue=G(r[0]));var N=c.select("text.delta");N.call(fw.font,i.delta.font).call(FS.fill,H({delta:i._deltaLastValue}));function W(){N.text(j(G(r[0]),B)).call(FS.fill,H(r[0])).call(UB.convertToTspans,e)}return iC(l)?N.transition().duration(l.duration).ease(l.easing).tween("text",function(){var re=cw.select(this),ae=G(r[0]),be=i._deltaLastValue,Pe=v(i.delta.valueformat,B,be,ae),Ce=iZe(be,ae);return i._deltaLastValue=ae,function(de){re.text(j(Ce(de),Pe)),re.call(FS.fill,H({delta:Ce(de)}))}}).each("end",function(){W(),f&&f()}).each("interrupt",function(){W(),f&&f()}):W(),d=oZe(j(G(r[0]),B),i.delta.font,u,e),N}var T=i.mode+i.align,L;if(i._hasDelta&&(L=E(),T+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,T+=i.delta.increasing.symbol+i.delta.decreasing.symbol,p=d),i._hasNumber&&(k(),T+=i.number.font.size+i.number.font.family+i.number.valueformat+i.number.suffix+i.number.prefix,p=h),i._hasDelta&&i._hasNumber){var x=[(h.left+h.right)/2,(h.top+h.bottom)/2],C=[(d.left+d.right)/2,(d.top+d.bottom)/2],M,m,P=.75*i.delta.font.size;i.delta.position==="left"&&(M=NB(i,"deltaPos",0,-1*(h.width*lw[i.align]+d.width*(1-lw[i.align])+P),T,Math.min),m=x[1]-C[1],p={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+M,right:h.right,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="right"&&(M=NB(i,"deltaPos",0,h.width*(1-lw[i.align])+d.width*lw[i.align]+P,T,Math.max),m=x[1]-C[1],p={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:h.left,right:d.right+M,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="bottom"&&(M=null,m=d.height,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),i.delta.position==="top"&&(M=null,m=h.top,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),L.attr({dx:M,dy:m})}(i._hasNumber||i._hasDelta)&&c.attr("transform",function(){var A=n.numbersScaler(p);T+=A[2];var B=NB(i,"numbersScale",1,A[0],T,Math.min),F;i._scaleNumbers||(B=1),i._isAngular?F=o-B*p.bottom:F=o-B*(p.top+p.bottom)/2,i._numbersTop=B*p.top+F;var U=p[s];s==="center"&&(U=(p.left+p.right)/2);var G=a-B*U;return G=NB(i,"numbersTranslate",0,G,T,Math.max),rC(G,F)+nKt(B)})}function uw(e){e.each(function(t){FS.stroke(cw.select(this),t.line.color)}).each(function(t){FS.fill(cw.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function dKt(e,t,r){return function(){var n=iKt(t,r);return function(i){return e.endAngle(n(i))()}}}function tC(e,t,r){var n=e._fullLayout,i=Mx.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:n.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(u,l){return Mx.coerce(i,a,uKt,u,l)}return sKt(i,a,s,o,n),lKt(i,a,s,o),a}function aZe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function pKt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function oZe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=cw.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(UB.convertToTspans,n).call(fw.font,t),fw.bBox(a.node())}function NB(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=Mx.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var fZe=Te((awr,uZe)=>{"use strict";uZe.exports={moduleType:"trace",name:"indicator",basePlotModule:HXe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:c$(),supplyDefaults:eZe().supplyDefaults,calc:rZe().calc,plot:lZe(),meta:{}}});var hZe=Te((owr,cZe)=>{"use strict";cZe.exports=fZe()});var p$=Te((lwr,mZe)=>{"use strict";var dZe=Nb(),VB=Su().extendFlat,vKt=Sc().overrideAll,pZe=gc(),mKt=zc().attributes,vZe=jc().descriptionOnlyNumbers,swr=mZe.exports=vKt({domain:mKt({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:vZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:VB({},dZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:VB({},pZe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:vZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:VB({},dZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:VB({},pZe({arrayOk:!0}))}},"calc","from-root")});var gZe=Te((uwr,yZe)=>{"use strict";var v$=ei(),yKt=p$(),gKt=zc().defaults;function _Kt(e,t){for(var r=e.columnorder||[],n=e.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(u,l){return u-l}),o=i.map(function(u){return a.indexOf(u)}),s=o.length;s{"use strict";var xKt=Ky().wrap;_Ze.exports=function(){return xKt({})}});var m$=Te((cwr,bZe)=>{"use strict";bZe.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"
",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}});var LZe=Te((hwr,CZe)=>{"use strict";var wZe=m$(),g$=Su().extendFlat,bKt=ku(),wKt=mp().isTypedArray,GB=mp().isArrayOrTypedArray;CZe.exports=function(t,r){var n=y$(r.cells.values),i=function(m){return m.slice(r.header.values.length,m.length)},a=y$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=y$(a));var o=a.concat(i(n).map(function(){return kZe((a[0]||[""]).length)})),s=r.domain,u=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),l=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),f=r.header.values.length?o[0].map(function(){return r.header.height}):[wZe.emptyHeaderHeight],c=n.length?n[0].map(function(){return r.cells.height}):[],h=f.reduce(AZe,0),d=l-h,p=d+wZe.uplift,_=MZe(c,p),b=MZe(f,h),v=SZe(b,[]),k=SZe(_,v),E={},T=r._fullInput.columnorder;GB(T)&&(T=Array.from(T)),T=T.concat(i(n.map(function(m,P){return P})));var L=o.map(function(m,P){var A=GB(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return bKt(A)?Number(A):1}),x=L.reduce(AZe,0);L=L.map(function(m){return m/x*u});var C=Math.max(_$(r.header.line.width),_$(r.cells.line.width)),M={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:u,maxLineWidth:C,height:l,columnOrder:T,groupHeight:l,rowBlocks:k,headerRowBlocks:v,scrollY:0,cells:g$({},r.cells,{values:n}),headerCells:g$({},r.header,{values:o}),gdColumns:o.map(function(m){return m[0]}),gdColumnsOriginalOrder:o.map(function(m){return m[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(m,P){var A=E[m];E[m]=(A||0)+1;var B=m+"__"+E[m];return{key:B,label:m,specIndex:P,xIndex:T[P],xScale:TZe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return M.columns.forEach(function(m){m.calcdata=M,m.x=TZe(m)}),M};function _$(e){if(GB(e)){for(var t=0,r=0;r=t||l===e.length-1)&&(r[i]=o,o.key=u++,o.firstRowIndex=s,o.lastRowIndex=l,o=EZe(),i+=a,s=l+1,a=0);return r}function EZe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var PZe=Te(x$=>{"use strict";var HB=Su().extendFlat;x$.splitToPanels=function(e){var t=[0,0],r=HB({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:HB({},e.calcdata,{cells:e.calcdata.headerCells})}),n=HB({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),i=HB({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[n,i,r]};x$.splitToCells=function(e){var t=AKt(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,n){var i=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:n+i,key:t[0]+n,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function AKt(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,n=t?r+t.rows.length:0;return[r,n]}});var L$=Te((pwr,VZe)=>{"use strict";var uu=m$(),Gc=Jl(),b$=ei(),TKt=b$.numberFormat,pc=Ky(),w$=Mu(),SKt=Xf(),MKt=ei().raiseToTop,sm=ei().strTranslate,EKt=ei().cancelTransition,kKt=LZe(),OZe=PZe(),zZe=jl();VZe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+uu.cn.table).data(r.map(function(k){var E=pc.unwrap(k),T=E.trace;return kKt(t,T)}),pc.keyFun);i.exit().remove(),i.enter().append("g").classed(uu.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),i.attr("width",function(k){return k.width+k.size.l+k.size.r}).attr("height",function(k){return k.height+k.size.t+k.size.b}).attr("transform",function(k){return sm(k.translateX,k.translateY)});var a=i.selectAll("."+uu.cn.tableControlView).data(pc.repeat,pc.keyFun),o=a.enter().append("g").classed(uu.cn.tableControlView,!0).style("box-sizing","content-box");if(n){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(k){a.filter(function(E){return k===E}).call(nC,t)}).on(s,function(k){if(!k.scrollbarState.wheeling){k.scrollbarState.wheeling=!0;var E=k.scrollY+Gc.event.deltaY,T=jB(t,a,null,E)(k);T||(Gc.event.stopPropagation(),Gc.event.preventDefault()),k.scrollbarState.wheeling=!1}}).call(nC,t,!0)}a.attr("transform",function(k){return sm(k.size.l,k.size.t)});var u=a.selectAll("."+uu.cn.scrollBackground).data(pc.repeat,pc.keyFun);u.enter().append("rect").classed(uu.cn.scrollBackground,!0).attr("fill","none"),u.attr("width",function(k){return k.width}).attr("height",function(k){return k.height}),a.each(function(k){w$.setClipUrl(Gc.select(this),IZe(t,k),t)});var l=a.selectAll("."+uu.cn.yColumn).data(function(k){return k.columns},pc.keyFun);l.enter().append("g").classed(uu.cn.yColumn,!0),l.exit().remove(),l.attr("transform",function(k){return sm(k.x,0)}),n&&l.call(Gc.behavior.drag().origin(function(k){var E=Gc.select(this);return FZe(E,k,-uu.uplift),MKt(this),k.calcdata.columnDragInProgress=!0,nC(a.filter(function(T){return k.calcdata.key===T.key}),t),k}).on("drag",function(k){var E=Gc.select(this),T=function(C){return(k===C?Gc.event.x:C.x)+C.columnWidth/2};k.x=Math.max(-uu.overdrag,Math.min(k.calcdata.width+uu.overdrag-k.columnWidth,Gc.event.x));var L=qZe(l).filter(function(C){return C.calcdata.key===k.calcdata.key}),x=L.sort(function(C,M){return T(C)-T(M)});x.forEach(function(C,M){C.xIndex=M,C.x=k===C?C.x:C.xScale(C)}),l.filter(function(C){return k!==C}).transition().ease(uu.transitionEase).duration(uu.transitionDuration).attr("transform",function(C){return sm(C.x,0)}),E.call(EKt).attr("transform",sm(k.x,-uu.uplift))}).on("dragend",function(k){var E=Gc.select(this),T=k.calcdata;k.x=k.xScale(k),k.calcdata.columnDragInProgress=!1,FZe(E,k,0),OKt(t,T,T.columns.map(function(L){return L.xIndex}))})),l.each(function(k){w$.setClipUrl(Gc.select(this),RZe(t,k),t)});var f=l.selectAll("."+uu.cn.columnBlock).data(OZe.splitToPanels,pc.keyFun);f.enter().append("g").classed(uu.cn.columnBlock,!0).attr("id",function(k){return k.key}),f.style("cursor",function(k){return k.dragHandle?"ew-resize":k.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var c=f.filter(qKt),h=f.filter(E$);n&&h.call(Gc.behavior.drag().origin(function(k){return Gc.event.stopPropagation(),k}).on("drag",jB(t,a,-1)).on("dragend",function(){})),A$(t,a,c,f),A$(t,a,h,f);var d=a.selectAll("."+uu.cn.scrollAreaClip).data(pc.repeat,pc.keyFun);d.enter().append("clipPath").classed(uu.cn.scrollAreaClip,!0).attr("id",function(k){return IZe(t,k)});var p=d.selectAll("."+uu.cn.scrollAreaClipRect).data(pc.repeat,pc.keyFun);p.enter().append("rect").classed(uu.cn.scrollAreaClipRect,!0).attr("x",-uu.overdrag).attr("y",-uu.uplift).attr("fill","none"),p.attr("width",function(k){return k.width+2*uu.overdrag}).attr("height",function(k){return k.height+uu.uplift});var _=l.selectAll("."+uu.cn.columnBoundary).data(pc.repeat,pc.keyFun);_.enter().append("g").classed(uu.cn.columnBoundary,!0);var b=l.selectAll("."+uu.cn.columnBoundaryClippath).data(pc.repeat,pc.keyFun);b.enter().append("clipPath").classed(uu.cn.columnBoundaryClippath,!0),b.attr("id",function(k){return RZe(t,k)});var v=b.selectAll("."+uu.cn.columnBoundaryRect).data(pc.repeat,pc.keyFun);v.enter().append("rect").classed(uu.cn.columnBoundaryRect,!0).attr("fill","none"),v.attr("width",function(k){return k.columnWidth+2*WB(k)}).attr("height",function(k){return k.calcdata.height+2*WB(k)+uu.uplift}).attr("x",function(k){return-WB(k)}).attr("y",function(k){return-WB(k)}),k$(null,h,a)};function WB(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function IZe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function RZe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function qZe(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function nC(e,t,r){function n(l){var f=l.rowBlocks;return S$(f,f.length-1)+(f.length?XB(f[f.length-1],1/0):1)}var i=e.selectAll("."+uu.cn.scrollbarKit).data(pc.repeat,pc.keyFun);i.enter().append("g").classed(uu.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),i.each(function(l){var f=l.scrollbarState;f.totalHeight=n(l),f.scrollableAreaHeight=l.groupHeight-T$(l),f.currentlyVisibleHeight=Math.min(f.totalHeight,f.scrollableAreaHeight),f.ratio=f.currentlyVisibleHeight/f.totalHeight,f.barLength=Math.max(f.ratio*f.currentlyVisibleHeight,uu.goldenRatio*uu.scrollbarWidth),f.barWiggleRoom=f.currentlyVisibleHeight-f.barLength,f.wiggleRoom=Math.max(0,f.totalHeight-f.scrollableAreaHeight),f.topY=f.barWiggleRoom===0?0:l.scrollY/f.wiggleRoom*f.barWiggleRoom,f.bottomY=f.topY+f.barLength,f.dragMultiplier=f.wiggleRoom/f.barWiggleRoom}).attr("transform",function(l){var f=l.width+uu.scrollbarWidth/2+uu.scrollbarOffset;return sm(f,T$(l))});var a=i.selectAll("."+uu.cn.scrollbar).data(pc.repeat,pc.keyFun);a.enter().append("g").classed(uu.cn.scrollbar,!0);var o=a.selectAll("."+uu.cn.scrollbarSlider).data(pc.repeat,pc.keyFun);o.enter().append("g").classed(uu.cn.scrollbarSlider,!0),o.attr("transform",function(l){return sm(0,l.scrollbarState.topY||0)});var s=o.selectAll("."+uu.cn.scrollbarGlyph).data(pc.repeat,pc.keyFun);s.enter().append("line").classed(uu.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",uu.scrollbarWidth).attr("stroke-linecap","round").attr("y1",uu.scrollbarWidth/2),s.attr("y2",function(l){return l.scrollbarState.barLength-uu.scrollbarWidth/2}).attr("stroke-opacity",function(l){return l.columnDragInProgress||!l.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(uu.scrollbarHideDelay).duration(uu.scrollbarHideDuration).attr("stroke-opacity",0);var u=a.selectAll("."+uu.cn.scrollbarCaptureZone).data(pc.repeat,pc.keyFun);u.enter().append("line").classed(uu.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",uu.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(l){var f=Gc.event.y,c=this.getBoundingClientRect(),h=l.scrollbarState,d=f-c.top,p=Gc.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||jB(t,e,null,p(d-h.barLength/2))(l)}).call(Gc.behavior.drag().origin(function(l){return Gc.event.stopPropagation(),l.scrollbarState.scrollbarScrollInProgress=!0,l}).on("drag",jB(t,e)).on("dragend",function(){})),u.attr("y2",function(l){return l.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),u.remove())}function A$(e,t,r,n){var i=CKt(r),a=LKt(i);RKt(a);var o=PKt(a);FKt(o);var s=IKt(a),u=zKt(s);DKt(u),NZe(u,t,n,e),C$(a)}function CKt(e){var t=e.selectAll("."+uu.cn.columnCells).data(pc.repeat,pc.keyFun);return t.enter().append("g").classed(uu.cn.columnCells,!0),t.exit().remove(),t}function LKt(e){var t=e.selectAll("."+uu.cn.columnCell).data(OZe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(uu.cn.columnCell,!0),t.exit().remove(),t}function PKt(e){var t=e.selectAll("."+uu.cn.cellRect).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(uu.cn.cellRect,!0),t}function zKt(e){var t=e.selectAll("."+uu.cn.cellText).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(uu.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){Gc.event.stopPropagation()}),t}function IKt(e){var t=e.selectAll("."+uu.cn.cellTextHolder).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(uu.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function RKt(e){e.each(function(t,r){var n=t.calcdata.cells.font,i=t.column.specIndex,a={size:Yp(n.size,i,r),color:Yp(n.color,i,r),family:Yp(n.family,i,r),weight:Yp(n.weight,i,r),style:Yp(n.style,i,r),variant:Yp(n.variant,i,r),textcase:Yp(n.textcase,i,r),lineposition:Yp(n.lineposition,i,r),shadow:Yp(n.shadow,i,r)};t.rowNumber=t.key,t.align=Yp(t.calcdata.cells.align,i,r),t.cellBorderWidth=Yp(t.calcdata.cells.line.width,i,r),t.font=a})}function DKt(e){e.each(function(t){w$.font(Gc.select(this),t.font)})}function FKt(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=Gc.select(this);zZe.stroke(r,Yp(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),zZe.fill(r,Yp(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function NZe(e,t,r,n){e.text(function(i){var a=i.column.specIndex,o=i.rowNumber,s=i.value,u=typeof s=="string",l=u&&s.match(/
/i),f=!u||l;i.mayHaveMarkup=u&&s.match(/[<&>]/);var c=BKt(s);i.latex=c;var h=c?"":Yp(i.calcdata.cells.prefix,a,o)||"",d=c?"":Yp(i.calcdata.cells.suffix,a,o)||"",p=c?null:Yp(i.calcdata.cells.format,a,o)||null,_=h+(p?TKt(p)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!f&&!c&&(b=DZe(_)),i.cellHeightMayIncrease=l||c||i.mayHaveMarkup||(b===void 0?DZe(_):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var v;if(i.wrappingNeeded){var k=uu.wrapSplitCharacter===" "?_.replace(/i&&n.push(a),i+=u}return n}function k$(e,t,r){var n=qZe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=S$(i,i.length),s=n.calcdata.groupHeight-T$(n),u=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),l=NKt(i,u,s);l.length===1&&(l[0]===i.length-1?l.unshift(l[0]-1):l.push(l[0]+1)),l[0]%2&&l.reverse(),t.each(function(f,c){f.page=l[c],f.scrollY=u}),t.attr("transform",function(f){var c=S$(f.rowBlocks,f.page)-f.scrollY;return sm(0,c)}),e&&(BZe(e,r,t,l,n.prevPages,n,0),BZe(e,r,t,l,n.prevPages,n,1),nC(r,e))}}function jB(e,t,r,n){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(c){return o.key===c.key}),u=r||o.scrollbarState.dragMultiplier,l=o.scrollY;o.scrollY=n===void 0?o.scrollY+u*Gc.event.dy:n;var f=s.selectAll("."+uu.cn.yColumn).selectAll("."+uu.cn.columnBlock).filter(E$);return k$(e,f,s),o.scrollY===l}}function BZe(e,t,r,n,i,a,o){var s=n[o]!==i[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var u=r.filter(function(l,f){return f===o&&n[f]!==i[f]});A$(e,t,u,r),i[o]=n[o]}))}function UKt(e,t,r,n){return function(){var a=Gc.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(_,b){s[b].width=this.getComputedTextLength()});var u=s[s.length-1].width,l=s.slice(0,-1),f=[],c,h,d=0,p=o.column.columnWidth-2*uu.cellPad;for(o.value="";l.length;)c=l.shift(),h=c.width+u,d+h>p&&(o.value+=f.join(uu.wrapSpacer)+uu.lineBreaker,f=[],d=0),f.push(c.text),d+=h;d&&(o.value+=f.join(uu.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),NZe(a.select("."+uu.cn.cellText),r,e,n),Gc.select(t.parentNode.parentNode).call(C$)}}function VKt(e,t,r,n,i){return function(){if(!i.settledY){var o=Gc.select(t.parentNode),s=M$(i),u=i.key-s.firstRowIndex,l=s.rows[u].rowHeight,f=i.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*uu.cellPad:l,c=Math.max(f,l),h=c-s.rows[u].rowHeight;h&&(s.rows[u].rowHeight=c,e.selectAll("."+uu.cn.columnCell).call(C$),k$(null,e.filter(E$),0),nC(r,n,!0)),o.attr("transform",function(){var d=this,p=d.parentNode,_=p.getBoundingClientRect(),b=Gc.select(d.parentNode).select("."+uu.cn.cellRect).node().getBoundingClientRect(),v=d.transform.baseVal.consolidate(),k=b.top-_.top+(v?v.matrix.f:uu.cellPad);return sm(UZe(i,Gc.select(d.parentNode).select("."+uu.cn.cellTextHolder).node().getBoundingClientRect().width),k)}),i.settledY=!0}}}function UZe(e,t){switch(e.align){case"left":return uu.cellPad;case"right":return e.column.columnWidth-(t||0)-uu.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return uu.cellPad}}function C$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+XB(s,1/0)},0),n=M$(t),i=XB(n,t.key),a=i+r;return sm(0,a)}).selectAll("."+uu.cn.cellRect).attr("height",function(t){return HKt(M$(t),t.key).rowHeight})}function S$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=GKt(e[n]);return r}function XB(e,t){for(var r=0,n=0;n{"use strict";var WKt=Rd().getModuleCalcData,jKt=L$(),ZB="table";YB.name=ZB;YB.plot=function(e){var t=WKt(e.calcdata,ZB)[0];t.length&&jKt(e,t)};YB.clean=function(e,t,r,n){var i=n._has&&n._has(ZB),a=t._has&&t._has(ZB);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var WZe=Te((mwr,HZe)=>{"use strict";HZe.exports={attributes:p$(),supplyDefaults:gZe(),calc:xZe(),plot:L$(),moduleType:"trace",name:"table",basePlotModule:GZe(),categories:["noOpacity"],meta:{}}});var XZe=Te((ywr,jZe)=>{"use strict";jZe.exports=WZe()});var $Ze=Te((gwr,JZe)=>{"use strict";var ZZe=gc(),YZe=Rh(),P$=Dd(),XKt=jc().descriptionWithDates,ZKt=Sc().overrideAll,KZe=Id().dash,z$=Su().extendFlat;JZe.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:ZZe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:P$.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:z$({},P$.labelalias,{editType:"calc"}),tickfont:ZZe({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:XKt("tick label")},tickformatstops:ZKt(P$.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:YZe.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:z$({},KZe,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:z$({},KZe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:YZe.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var JB=Te((_wr,tYe)=>{"use strict";var YKt=gc(),QZe=$Ze(),eYe=Rh(),KB=YKt({editType:"calc"}),KKt=Zc().zorder;KB.family.dflt='"Open Sans", verdana, arial, sans-serif';KB.size.dflt=12;KB.color.dflt=eYe.defaultLine;tYe.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:QZe,baxis:QZe,font:KB,color:{valType:"color",dflt:eYe.defaultLine,editType:"plot"},zorder:KKt}});var nYe=Te((xwr,iYe)=>{"use strict";var rYe=ei().isArray1D;iYe.exports=function(t,r,n){var i=n("x"),a=i&&i.length,o=n("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!i,(!a||rYe(i))&&(!s||rYe(o))){var u=a?i.length:1/0;s&&(u=Math.min(u,o.length)),r.a&&r.a.length&&(u=Math.min(u,r.a.length)),r.b&&r.b.length&&(u=Math.min(u,r.b.length)),r._length=u}else r._length=null;return!0}});var sYe=Te((bwr,oYe)=>{"use strict";var JKt=JB(),aYe=jl().addOpacity,$Kt=$l(),aC=ei(),QKt=xb(),eJt=e_(),tJt=t_(),rJt=iI(),iJt=gy(),nJt=L3();oYe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=JKt[i+"axis"];function s(m,P){return aC.coerce(t,r,o,m,P)}function u(m,P){return aC.coerce2(t,r,o,m,P)}n.name&&(r._name=n.name,r._id=n.name),s("autotypenumbers",n.autotypenumbersDflt);var l=s("type");if(l==="-"&&(n.data&&aJt(r,n.data),r.type==="-"?r.type="linear":l=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",i+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=i,l==="date"){var f=$Kt.getComponentMethod("calendars","handleDefaults");f(t,r,"calendar",n.calendar)}iJt(r,n.fullLayout),r.c2p=aC.identity;var c=s("color",n.dfltColor),h=c===t.color?c:a.color,d=s("title.text");d&&(aC.coerceFont(s,"title.font",a,{overrideDflt:{size:aC.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var p=s("autorange",!r.isValidRange(t.range));p&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),QKt(t,r,s,l),tJt(t,r,s,l,n),eJt(t,r,s,l,n),rJt(t,r,s,{data:n.data,dataAttr:i});var _=u("gridcolor",aYe(c,.3)),b=u("gridwidth"),v=u("griddash"),k=s("showgrid");k||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var E=u("startlinecolor",c),T=u("startlinewidth",b),L=s("startline",r.showgrid||!!E||!!T);L||(delete r.startlinecolor,delete r.startlinewidth);var x=u("endlinecolor",c),C=u("endlinewidth",b),M=s("endline",r.showgrid||!!x||!!C);return M||(delete r.endlinecolor,delete r.endlinewidth),k?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",v),s("minorgridcolor",aYe(_,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function aJt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=nJt(t,a,{autotypenumbers:e.autotypenumbers})}}});var uYe=Te((wwr,lYe)=>{"use strict";var oJt=sYe(),sJt=Pf();lYe.exports=function(t,r,n,i,a){var o=i("a");o||(i("da"),i("a0"));var s=i("b");s||(i("db"),i("b0")),lJt(t,r,n,a)};function lJt(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},u=sJt.newContainer(t,a),l={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:n,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};oJt(s,u,l),u._categories=u._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var hYe=Te((Awr,cYe)=>{"use strict";var fYe=ei(),uJt=nYe(),fJt=uYe(),cJt=JB(),hJt=Rh();cYe.exports=function(t,r,n,i){function a(u,l){return fYe.coerce(t,r,cJt,u,l)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",hJt.defaultLine);if(fYe.coerceFont(a,"font",i.font),a("carpet"),fJt(t,r,i,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=uJt(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var I$=Te((Twr,dYe)=>{"use strict";var dJt=ei().isArrayOrTypedArray;dYe.exports=function(t,r,n){var i;for(dJt(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";pYe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";vYe.exports=function(t,r,n,i,a,o){var s=a[0]*t.dpdx(r),u=a[1]*t.dpdy(n),l=1,f=1;if(o){var c=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=(a[0]*o[0]+a[1]*o[1])/c/h;f=Math.max(0,d)}var p=Math.atan2(u,s)*180/Math.PI;return p<-90?(p+=180,l=-l):p>90&&(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(i,r,n),offsetMultplier:f}}});var TYe=Te((Ewr,AYe)=>{"use strict";var tO=Jl(),$B=Mu(),QB=I$(),_Ye=R$(),oC=mYe(),D$=Xf(),Nv=ei(),xYe=Nv.strRotate,eO=Nv.strTranslate,bYe=Qh();AYe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,u=t._fullLayout,l=u._clips;Nv.makeTraceGroups(i,n,"trace").each(function(f){var c=tO.select(this),h=f[0],d=h.trace,p=d.aaxis,_=d.baxis,b=Nv.ensureSingle(c,"g","minorlayer"),v=Nv.ensureSingle(c,"g","majorlayer"),k=Nv.ensureSingle(c,"g","boundarylayer"),E=Nv.ensureSingle(c,"g","labellayer");c.style("opacity",d.opacity),BS(o,s,v,p,"a",p._gridlines,!0,a),BS(o,s,v,_,"b",_._gridlines,!0,a),BS(o,s,b,p,"a",p._minorgridlines,!0,a),BS(o,s,b,_,"b",_._minorgridlines,!0,a),BS(o,s,k,p,"a-boundary",p._boundarylines,a),BS(o,s,k,_,"b-boundary",_._boundarylines,a);var T=yYe(t,o,s,d,h,E,p._labels,"a-label"),L=yYe(t,o,s,d,h,E,_._labels,"b-label");vJt(t,E,d,h,o,s,T,L),pJt(d,h,l,o,s)})};function pJt(e,t,r,n,i){var a,o,s,u,l=r.select("#"+e._clipPathId);l.size()||(l=r.append("clipPath").classed("carpetclip",!0));var f=Nv.ensureSingle(l,"path","carpetboundary"),c=t.clipsegments,h=[];for(u=0;u0?"start":"end","data-notex":1}).call($B.font,c.font).text(c.text).call(D$.convertToTspans,e),v=$B.bBox(this);b.attr("transform",eO(d.p[0],d.p[1])+xYe(d.angle)+eO(c.axis.labelpadding*_,v.height*.3)),l=Math.max(l,v.width+c.axis.labelpadding)}),u.exit().remove(),f.maxExtent=l,f}function vJt(e,t,r,n,i,a,o,s){var u,l,f,c,h=Nv.aggNums(Math.min,null,r.a),d=Nv.aggNums(Math.max,null,r.a),p=Nv.aggNums(Math.min,null,r.b),_=Nv.aggNums(Math.max,null,r.b);u=.5*(h+d),l=p,f=r.ab2xy(u,l,!0),c=r.dxyda_rough(u,l),o.angle===void 0&&Nv.extendFlat(o,oC(r,i,a,f,r.dxydb_rough(u,l))),gYe(e,t,r,n,f,c,r.aaxis,i,a,o,"a-title"),u=h,l=.5*(p+_),f=r.ab2xy(u,l,!0),c=r.dxydb_rough(u,l),s.angle===void 0&&Nv.extendFlat(s,oC(r,i,a,f,r.dxyda_rough(u,l))),gYe(e,t,r,n,f,c,r.baxis,i,a,s,"b-title")}var wYe=bYe.LINE_SPACING,mJt=(1-bYe.MID_SHIFT)/wYe+1;function gYe(e,t,r,n,i,a,o,s,u,l,f){var c=[];o.title.text&&c.push(o.title.text);var h=t.selectAll("text."+f).data(c),d=l.maxExtent;h.enter().append("text").classed(f,!0),h.each(function(){var p=oC(r,s,u,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var _=o.title.font.size;d+=_+o.title.offset;var b=l.angle+(l.flip<0?180:0),v=(b-p.angle+450)%360,k=v>90&&v<270,E=tO.select(this);E.text(o.title.text).call(D$.convertToTspans,e),k&&(d=(-D$.lineCount(E)+mJt)*wYe*_-d),E.attr("transform",eO(p.p[0],p.p[1])+xYe(p.angle)+eO(0,d)).attr("text-anchor","middle").call($B.font,o.title.font)}),h.exit().remove()}});var MYe=Te((kwr,SYe)=>{"use strict";var rO=ei().isArrayOrTypedArray;SYe.exports=function(e,t,r){var n,i,a,o,s,u,l=[],f=rO(e)?e.length:e,c=rO(t)?t.length:t,h=rO(e)?e:null,d=rO(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(f-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(c-1));var p,_=1/0,b=-1/0;for(i=0;i{"use strict";var EYe=ei().isArrayOrTypedArray;CYe.exports=function(e){return kYe(e,0)};function kYe(e,t){if(!EYe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var yJt=wu(),Ex=Su().extendFlat;PYe.exports=function(t,r,n){var i,a,o,s,u,l,f,c,h,d,p,_,b,v,k=t["_"+r],E=t[r+"axis"],T=E._gridlines=[],L=E._minorgridlines=[],x=E._boundarylines=[],C=t["_"+n],M=t[n+"axis"];E.tickmode==="array"&&(E.tickvals=k.slice());var m=t._xctrl,P=t._yctrl,A=m[0].length,B=m.length,F=t._a.length,U=t._b.length;yJt.prepTicks(E),E.tickmode==="array"&&delete E.tickvals;var G=E.smoothing?3:1;function j(N){var W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ne,Fe=[],ye=[],Ve={};if(r==="b")for(re=t.b2j(N),ae=Math.floor(Math.max(0,Math.min(U-2,re))),be=re-ae,Ve.length=U,Ve.crossLength=F,Ve.xy=function(ce){return t.evalxy([],ce,re)},Ve.dxy=function(ce,Ke){return t.dxydi([],ce,ae,Ke,be)},W=0;W0&&(ke=t.dxydi([],W-1,ae,0,be),Fe.push(Pe[0]+ke[0]/3),ye.push(Pe[1]+ke[1]/3),Ee=t.dxydi([],W-1,ae,1,be),Fe.push(te[0]-Ee[0]/3),ye.push(te[1]-Ee[1]/3)),Fe.push(te[0]),ye.push(te[1]),Pe=te;else for(W=t.a2i(N),Ce=Math.floor(Math.max(0,Math.min(F-2,W))),de=W-Ce,Ve.length=F,Ve.crossLength=U,Ve.xy=function(ce){return t.evalxy([],W,ce)},Ve.dxy=function(ce,Ke){return t.dxydj([],Ce,ce,de,Ke)},re=0;re0&&(Me=t.dxydj([],Ce,re-1,de,0),Fe.push(Pe[0]+Me[0]/3),ye.push(Pe[1]+Me[1]/3),Ne=t.dxydj([],Ce,re-1,de,1),Fe.push(te[0]-Ne[0]/3),ye.push(te[1]-Ne[1]/3)),Fe.push(te[0]),ye.push(te[1]),Pe=te;return Ve.axisLetter=r,Ve.axis=E,Ve.crossAxis=M,Ve.value=N,Ve.constvar=n,Ve.index=c,Ve.x=Fe,Ve.y=ye,Ve.smoothing=M.smoothing,Ve}function H(N){var W,re,ae,be,Pe,Ce=[],de=[],te={};if(te.length=k.length,te.crossLength=C.length,r==="b")for(ae=Math.max(0,Math.min(U-2,N)),Pe=Math.min(1,Math.max(0,N-ae)),te.xy=function(ke){return t.evalxy([],ke,N)},te.dxy=function(ke,Ee){return t.dxydi([],ke,ae,Ee,Pe)},W=0;Wk.length-1)&&T.push(Ex(H(a),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(c=l;ck.length-1)&&!(p<0||p>k.length-1))for(_=k[o],b=k[p],i=0;ik[k.length-1])&&L.push(Ex(j(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash})));E.startline&&x.push(Ex(H(0),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&x.push(Ex(H(k.length-1),{color:E.endlinecolor,width:E.endlinewidth}))}else{for(s=5e-15,u=[Math.floor((k[k.length-1]-E.tick0)/E.dtick*(1+s)),Math.ceil((k[0]-E.tick0)/E.dtick/(1+s))].sort(function(N,W){return N-W}),l=u[0],f=u[1],c=l;c<=f;c++)h=E.tick0+E.dtick*c,T.push(Ex(j(h),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(c=l-1;ck[k.length-1])&&L.push(Ex(j(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash}));E.startline&&x.push(Ex(j(k[0]),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&x.push(Ex(j(k[k.length-1]),{color:E.endlinecolor,width:E.endlinewidth}))}}});var FYe=Te((Pwr,DYe)=>{"use strict";var IYe=wu(),RYe=Su().extendFlat;DYe.exports=function(t,r){var n,i,a,o,s,u=r._labels=[],l=r._gridlines;for(n=0;n{"use strict";BYe.exports=function(t,r,n,i){var a,o,s,u=[],l=!!n.smoothing,f=!!i.smoothing,c=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=c;a++)o[a]=t[0][a],s[a]=r[0][a];for(u.push({x:o,y:s,bicubic:l}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][c],s[a]=r[a][c];for(u.push({x:o,y:s,bicubic:f}),a=c,o=[],s=[];a>=0;a--)o[c-a]=t[h][a],s[c-a]=r[h][a];for(u.push({x:o,y:s,bicubic:l}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return u.push({x:o,y:s,bicubic:f}),u}});var NYe=Te((Iwr,qYe)=>{"use strict";var gJt=ei();qYe.exports=function(t,r,n){var i,a,o,s=[],u=[],l=t[0].length,f=t.length;function c(ae,be){var Pe=0,Ce,de=0;return ae>0&&(Ce=t[be][ae-1])!==void 0&&(de++,Pe+=Ce),ae0&&(Ce=t[be-1][ae])!==void 0&&(de++,Pe+=Ce),be0&&a0&&iM);return gJt.log("Smoother converged to",m,"after",A,"iterations"),t}});var VYe=Te((Rwr,UYe)=>{"use strict";UYe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var WYe=Te((Dwr,HYe)=>{"use strict";var GYe=.5;HYe.exports=function(t,r,n,i){var a=t[0]-r[0],o=t[1]-r[1],s=n[0]-r[0],u=n[1]-r[1],l=Math.pow(a*a+o*o,GYe/2),f=Math.pow(s*s+u*u,GYe/2),c=(f*f*a-l*l*s)*i,h=(f*f*o-l*l*u)*i,d=f*(l+f)*3,p=l*(l+f)*3;return[[r[0]+(d&&c/d),r[1]+(d&&h/d)],[r[0]-(p&&c/p),r[1]-(p&&h/p)]]}});var XYe=Te((Fwr,jYe)=>{"use strict";var F$=WYe(),iO=ei().ensureArray;function OS(e,t,r){var n=-.5*r[0]+1.5*t[0],i=-.5*r[1]+1.5*t[1];return[(2*n+e[0])/3,(2*i+e[1])/3]}jYe.exports=function(t,r,n,i,a,o){var s,u,l,f,c,h,d,p,_,b,v=n[0].length,k=n.length,E=a?3*v-2:v,T=o?3*k-2:k;for(t=iO(t,T),r=iO(r,T),l=0;l{"use strict";ZYe.exports=function(e,t,r,n,i){var a=t-2,o=r-2;return n&&i?function(s,u,l){s||(s=[]);var f,c,h,d,p,_,b=Math.max(0,Math.min(Math.floor(u),a)),v=Math.max(0,Math.min(Math.floor(l),o)),k=Math.max(0,Math.min(1,u-b)),E=Math.max(0,Math.min(1,l-v));b*=3,v*=3;var T=k*k,L=T*k,x=1-k,C=x*x,M=C*x,m=E*E,P=m*E,A=1-E,B=A*A,F=B*A;for(_=0;_{"use strict";KYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var u,l,f,c,h,d;i*=3,a*=3;var p=o*o,_=1-o,b=_*_,v=_*o*2,k=-3*b,E=3*(b-v),T=3*(v-p),L=3*p,x=s*s,C=x*s,M=1-s,m=M*M,P=m*M;for(d=0;d{"use strict";$Ye.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var u,l,f,c,h,d;i*=3,a*=3;var p=o*o,_=p*o,b=1-o,v=b*b,k=v*b,E=s*s,T=1-s,L=T*T,x=T*s*2,C=-3*L,M=3*(L-x),m=3*(x-E),P=3*E;for(d=0;d{"use strict";var eKe=VYe(),tKe=zL().findBin,_Jt=XYe(),xJt=YYe(),bJt=JYe(),wJt=QYe();rKe.exports=function(t){var r=t._a,n=t._b,i=r.length,a=n.length,o=t.aaxis,s=t.baxis,u=r[0],l=r[i-1],f=n[0],c=n[a-1],h=r[r.length-1]-r[0],d=n[n.length-1]-n[0],p=h*eKe.RELATIVE_CULL_TOLERANCE,_=d*eKe.RELATIVE_CULL_TOLERANCE;u-=p,l+=p,f-=_,c+=_,t.isVisible=function(b,v){return b>u&&bf&&vl||vc},t.setScale=function(){var b=t._x,v=t._y,k=_Jt(t._xctrl,t._yctrl,b,v,o.smoothing,s.smoothing);t._xctrl=k[0],t._yctrl=k[1],t.evalxy=xJt([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=bJt([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=wJt([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(b){var v=Math.max(0,Math.floor(b[0]),i-2),k=b[0]-v;return(1-k)*r[v]+k*r[v+1]},t.j2b=function(b){var v=Math.max(0,Math.floor(b[1]),i-2),k=b[1]-v;return(1-k)*n[v]+k*n[v+1]},t.ij2ab=function(b){return[t.i2a(b[0]),t.j2b(b[1])]},t.a2i=function(b){var v=Math.max(0,Math.min(tKe(b,r),i-2)),k=r[v],E=r[v+1];return Math.max(0,Math.min(i-1,v+(b-k)/(E-k)))},t.b2j=function(b){var v=Math.max(0,Math.min(tKe(b,n),a-2)),k=n[v],E=n[v+1];return Math.max(0,Math.min(a-1,v+(b-k)/(E-k)))},t.ab2ij=function(b){return[t.a2i(b[0]),t.b2j(b[1])]},t.i2c=function(b,v){return t.evalxy([],b,v)},t.ab2xy=function(b,v,k){if(!k&&(br[i-1]|vn[a-1]))return[!1,!1];var E=t.a2i(b),T=t.b2j(v),L=t.evalxy([],E,T);if(k){var x=0,C=0,M=[],m,P,A,B;br[i-1]?(m=i-2,P=1,x=(b-r[i-1])/(r[i-1]-r[i-2])):(m=Math.max(0,Math.min(i-2,Math.floor(E))),P=E-m),vn[a-1]?(A=a-2,B=1,C=(v-n[a-1])/(n[a-1]-n[a-2])):(A=Math.max(0,Math.min(a-2,Math.floor(T))),B=T-A),x&&(t.dxydi(M,m,A,P,B),L[0]+=M[0]*x,L[1]+=M[1]*x),C&&(t.dxydj(M,m,A,P,B),L[0]+=M[0]*C,L[1]+=M[1]*C)}return L},t.c2p=function(b,v,k){return[v.c2p(b[0]),k.c2p(b[1])]},t.p2x=function(b,v,k){return[v.p2c(b[0]),k.p2c(b[1])]},t.dadi=function(b){var v=Math.max(0,Math.min(r.length-2,b));return r[v+1]-r[v]},t.dbdj=function(b){var v=Math.max(0,Math.min(n.length-2,b));return n[v+1]-n[v]},t.dxyda=function(b,v,k,E){var T=t.dxydi(null,b,v,k,E),L=t.dadi(b,k);return[T[0]/L,T[1]/L]},t.dxydb=function(b,v,k,E){var T=t.dxydj(null,b,v,k,E),L=t.dbdj(v,E);return[T[0]/L,T[1]/L]},t.dxyda_rough=function(b,v,k){var E=h*(k||.1),T=t.ab2xy(b+E,v,!0),L=t.ab2xy(b-E,v,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dxydb_rough=function(b,v,k){var E=d*(k||.1),T=t.ab2xy(b,v+E,!0),L=t.ab2xy(b,v-E,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var cKe=Te((Uwr,fKe)=>{"use strict";var nO=wu(),nKe=ei().isArray1D,AJt=MYe(),aKe=LYe(),oKe=zYe(),sKe=FYe(),TJt=OYe(),lKe=rR(),uKe=NYe(),SJt=eR(),MJt=iKe();fKe.exports=function(t,r){var n=nO.getFromId(t,r.xaxis),i=nO.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,u=r.y,l=[];s&&nKe(s)&&l.push("x"),u&&nKe(u)&&l.push("y"),l.length&&SJt(r,a,o,"a","b",l);var f=r._a=r._a||r.a,c=r._b=r._b||r.b;s=r._x||r.x,u=r._y||r.y;var h={};if(r._cheater){var d=a.cheatertype==="index"?f.length:f,p=o.cheatertype==="index"?c.length:c;s=AJt(d,p,r.cheaterslope)}r._x=s=lKe(s),r._y=u=lKe(u),uKe(s,f,c),uKe(u,f,c),MJt(r),r.setScale();var _=aKe(s),b=aKe(u),v=.5*(_[1]-_[0]),k=.5*(_[1]+_[0]),E=.5*(b[1]-b[0]),T=.5*(b[1]+b[0]),L=1.3;return _=[k-v*L,k+v*L],b=[T-E*L,T+E*L],r._extremes[n._id]=nO.findExtremes(n,_,{padded:!0}),r._extremes[i._id]=nO.findExtremes(i,b,{padded:!0}),oKe(r,"a","b"),oKe(r,"b","a"),sKe(r,a),sKe(r,o),h.clipsegments=TJt(r._xctrl,r._yctrl,a,o),h.x=s,h.y=u,h.a=f,h.b=c,[h]}});var dKe=Te((Vwr,hKe)=>{"use strict";hKe.exports={attributes:JB(),supplyDefaults:hYe(),plot:TYe(),calc:cKe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:Th(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var vKe=Te((Gwr,pKe)=>{"use strict";pKe.exports=dKe()});var B$=Te((Hwr,yKe)=>{"use strict";var EJt=km(),u0=Zc(),kJt=Gf(),CJt=Nu().hovertemplateAttrs,LJt=Nu().texttemplateAttrs,mKe=nc(),kx=Su().extendFlat,lm=u0.marker,qS=u0.line,PJt=lm.line;yKe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:kx({},u0.mode,{dflt:"markers"}),text:kx({},u0.text,{}),texttemplate:LJt({editType:"plot"},{keys:["a","b","text"]}),hovertext:kx({},u0.hovertext,{}),line:{color:qS.color,width:qS.width,dash:qS.dash,backoff:qS.backoff,shape:kx({},qS.shape,{values:["linear","spline"]}),smoothing:qS.smoothing,editType:"calc"},connectgaps:u0.connectgaps,fill:kx({},u0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:EJt(),marker:kx({symbol:lm.symbol,opacity:lm.opacity,maxdisplayed:lm.maxdisplayed,angle:lm.angle,angleref:lm.angleref,standoff:lm.standoff,size:lm.size,sizeref:lm.sizeref,sizemin:lm.sizemin,sizemode:lm.sizemode,line:kx({width:PJt.width,editType:"calc"},mKe("marker.line")),gradient:lm.gradient,editType:"calc"},mKe("marker")),textfont:u0.textfont,textposition:u0.textposition,selected:u0.selected,unselected:u0.unselected,hoverinfo:kx({},kJt.hoverinfo,{flags:["a","b","text","name"]}),hoveron:u0.hoveron,hovertemplate:CJt(),zorder:u0.zorder}});var bKe=Te((Wwr,xKe)=>{"use strict";var gKe=ei(),zJt=Sy(),NS=lc(),IJt=$v(),RJt=R0(),_Ke=$3(),DJt=D0(),FJt=zm(),BJt=B$();xKe.exports=function(t,r,n,i){function a(h,d){return gKe.coerce(t,r,BJt,h,d)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("text"),a("texttemplate"),a("hovertext");var l=u{"use strict";wKe.exports=function(t,r){var n={},i=r._carpet,a=i.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,u=Math.floor(a[1]),l=a[1]-u,f=i.evalxy([],o,u,s,l);return n.yLabel=f[1].toFixed(3),n}});var aO=Te((Xwr,TKe)=>{"use strict";TKe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var SKe=ku(),OJt=F0(),qJt=ky(),NJt=B0(),UJt=O0().calcMarkerSize,VJt=aO();MKe.exports=function(t,r){var n=r._carpetTrace=VJt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){var i;r.xaxis=n.xaxis,r.yaxis=n.yaxis;var a=r._length,o=new Array(a),s,u,l=!1;for(i=0;i{"use strict";var GJt=nA(),kKe=wu(),HJt=Mu();CKe.exports=function(t,r,n,i){var a,o,s,u=n[0][0].carpet,l=kKe.getFromId(t,u.xaxis||"x"),f=kKe.getFromId(t,u.yaxis||"y"),c={xaxis:l,yaxis:f,plot:r.plot};for(a=0;a{"use strict";var WJt=lA(),jJt=ei().fillText;PKe.exports=function(t,r,n,i){var a=WJt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,u=t.xa._length,l=u*s/2,f=u-l;return o.x0=Math.max(Math.min(o.x0,f),l),o.x1=Math.max(Math.min(o.x1,f),l),a}var c=o.cd[o.index];o.a=c.a,o.b=c.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,d=h._carpet,p=h._module.formatLabels(c,h);o.yLabel=p.yLabel,delete o.text;var _=[];function b(E,T){var L;E.labelprefix&&E.labelprefix.length>0?L=E.labelprefix.replace(/ = $/,""):L=E._hovertitle,_.push(L+": "+T.toFixed(3)+E.labelsuffix)}if(!h.hovertemplate){var v=c.hi||h.hoverinfo,k=v.split("+");k.indexOf("all")!==-1&&(k=["a","b","text"]),k.indexOf("a")!==-1&&b(d.aaxis,c.a),k.indexOf("b")!==-1&&b(d.baxis,c.b),_.push("y: "+o.yLabel),k.indexOf("text")!==-1&&jJt(c,h,_),o.extraText=_.join("
")}return a}});var RKe=Te((Jwr,IKe)=>{"use strict";IKe.exports=function(t,r,n,i,a){var o=i[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var FKe=Te(($wr,DKe)=>{"use strict";DKe.exports={attributes:B$(),supplyDefaults:bKe(),colorbar:ep(),formatLabels:AKe(),calc:EKe(),plot:LKe(),style:ov().style,styleOnSelect:ov().styleOnSelect,hoverPoints:zKe(),selectPoints:uA(),eventData:RKe(),moduleType:"trace",name:"scattercarpet",basePlotModule:Th(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var OKe=Te((Qwr,BKe)=>{"use strict";BKe.exports=FKe()});var O$=Te((e3r,qKe)=>{"use strict";var um=kA(),m1=kE(),XJt=nc(),ZJt=Su().extendFlat,tg=m1.contours;qKe.exports=ZJt({carpet:{valType:"string",editType:"calc"},z:um.z,a:um.x,a0:um.x0,da:um.dx,b:um.y,b0:um.y0,db:um.dy,text:um.text,hovertext:um.hovertext,transpose:um.transpose,atype:um.xtype,btype:um.ytype,fillcolor:m1.fillcolor,autocontour:m1.autocontour,ncontours:m1.ncontours,contours:{type:tg.type,start:tg.start,end:tg.end,size:tg.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:tg.showlines,showlabels:tg.showlabels,labelfont:tg.labelfont,labelformat:tg.labelformat,operation:tg.operation,value:tg.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:m1.line.color,width:m1.line.width,dash:m1.line.dash,smoothing:m1.line.smoothing,editType:"plot"},zorder:m1.zorder},XJt("",{cLetter:"z",autoColorDflt:!1}))});var q$=Te((t3r,VKe)=>{"use strict";var NKe=ei(),YJt=JI(),UKe=O$(),KJt=RG(),JJt=bR(),$Jt=wR();VKe.exports=function(t,r,n,i){function a(l,f){return NKe.coerce(t,r,UKe,l,f)}function o(l){return NKe.coerce2(t,r,UKe,l)}if(a("carpet"),t.a&&t.b){var s=YJt(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var u=a("contours.type")==="constraint";u?KJt(t,r,a,i,n,{hasHover:!1}):(JJt(t,r,a,o),$Jt(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var jKe=Te((r3r,WKe)=>{"use strict";var QJt=gp(),GKe=ei(),e$t=eR(),t$t=rR(),r$t=iR(),i$t=nR(),HKe=iG(),n$t=q$(),a$t=aO(),o$t=wG();WKe.exports=function(t,r){var n=r._carpetTrace=a$t(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){if(!r.a||!r.b){var i=t.data[n.index],a=t.data[r.index];a.a||(a.a=i.a),a.b||(a.b=i.b),n$t(a,r,r._defaultColor,t._fullLayout)}var o=s$t(t,r);return o$t(r,r._z),o}};function s$t(e,t){var r=t._carpetTrace,n=r.aaxis,i=r.baxis,a,o,s,u,l,f,c;n._minDtick=0,i._minDtick=0,GKe.isArray1D(t.z)&&e$t(t,n,i,"a","b",["z"]),a=t._a=t._a||t.a,u=t._b=t._b||t.b,a=a?n.makeCalcdata(t,"_a"):[],u=u?i.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,l=t.b0||0,f=t.db||1,c=t._z=t$t(t._z||t.z,t.transpose),t._emptypoints=i$t(c),r$t(c,t._emptypoints);var h=GKe.maxRowLength(c),d=t.xtype==="scaled"?"":a,p=HKe(t,d,o,s,h,n),_=t.ytype==="scaled"?"":u,b=HKe(t,_,l,f,c.length,i),v={a:p,b,z:c};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&QJt(e,t,{vals:c,containerStr:"",cLetter:"z"}),[v]}});var ZKe=Te((i3r,XKe)=>{"use strict";var l$t=ei().isArrayOrTypedArray;XKe.exports=function(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p,_,b,v=l$t(r)?"a":"b",k=v==="a"?e.aaxis:e.baxis,E=k.smoothing,T=v==="a"?e.a2i:e.b2j,L=v==="a"?r:n,x=v==="a"?n:r,C=v==="a"?t.a.length:t.b.length,M=v==="a"?t.b.length:t.a.length,m=Math.floor(v==="a"?e.b2j(x):e.a2i(x)),P=v==="a"?function(be){return e.evalxy([],be,m)}:function(be){return e.evalxy([],m,be)};E&&(o=Math.max(0,Math.min(M-2,m)),s=m-o,a=v==="a"?function(be,Pe){return e.dxydi([],be,o,Pe,s)}:function(be,Pe){return e.dxydj([],o,be,s,Pe)});var A=T(L[0]),B=T(L[1]),F=A0?Math.floor:Math.ceil,j=F>0?Math.ceil:Math.floor,H=F>0?Math.min:Math.max,N=F>0?Math.max:Math.min,W=G(A+U),re=j(B-U);f=P(A);var ae=[[f]];for(i=W;i*F{"use strict";var sO=Jl(),lO=I$(),QKe=R$(),sC=Mu(),y1=ei(),u$t=TG(),f$t=SG(),hw=SR(),oO=LE(),c$t=CG(),h$t=kG(),d$t=LG(),p$t=aO(),YKe=ZKe();eJe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;y1.makeTraceGroups(i,n,"contour").each(function(s){var u=sO.select(this),l=s[0],f=l.trace,c=f._carpetTrace=p$t(t,f),h=t.calcdata[c.index][0];if(!c.visible||c.visible==="legendonly")return;var d=l.a,p=l.b,_=f.contours,b=h$t(_,r,l),v=_.type==="constraint",k=_._operation,E=v?k==="="?"lines":"fill":_.coloring;function T(G){var j=c.ab2xy(G[0],G[1],!0);return[a.c2p(j[0]),o.c2p(j[1])]}var L=[[d[0],p[p.length-1]],[d[d.length-1],p[p.length-1]],[d[d.length-1],p[0]],[d[0],p[0]]];u$t(b);var x=(d[d.length-1]-d[0])*1e-8,C=(p[p.length-1]-p[0])*1e-8;f$t(b,x,C);var M=b;_.type==="constraint"&&(M=c$t(b,k)),v$t(b,T);var m,P,A,B,F=[];for(B=h.clipsegments.length-1;B>=0;B--)m=h.clipsegments[B],P=lO([],m.x,a.c2p),A=lO([],m.y,o.c2p),P.reverse(),A.reverse(),F.push(QKe(P,A,m.bicubic));var U="M"+F.join("L")+"Z";g$t(u,h.clipsegments,a,o,v,E),_$t(f,u,a,o,M,L,T,c,h,E,U),m$t(u,b,t,l,_,r,c),sC.setClipUrl(u,c._clipPathId,t)})};function v$t(e,t){var r,n,i,a,o,s,u,l,f;for(r=0;rb&&(n.max=b),n.len=n.max-n.min}function KKe(e,t,r){var n=e.getPointAtLength(t),i=e.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function JKe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function $Ke(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function g$t(e,t,r,n,i,a){var o,s,u,l,f=y1.ensureSingle(e,"g","contourbg"),c=f.selectAll("path").data(a==="fill"&&!i?[0]:[]);c.enter().append("path"),c.exit().remove();var h=[];for(l=0;l=0&&(d=P,_=b):Math.abs(h[1]-d[1])=0&&(d=P,_=b):y1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(_>=0)break;l+=M(h,d),h=d}if(_===t.edgepaths.length){y1.log("unclosed perimeter path");break}u=_,c=f.indexOf(u)===-1,c&&(u=f[0],l+=M(h,d)+"Z",h=null)}for(u=0;u{"use strict";rJe.exports={attributes:O$(),supplyDefaults:q$(),colorbar:kR(),calc:jKe(),plot:tJe(),style:ER(),moduleType:"trace",name:"contourcarpet",basePlotModule:Th(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var aJe=Te((o3r,nJe)=>{"use strict";nJe.exports=iJe()});var fO=Te((s3r,fJe)=>{"use strict";var uO=ei().extendFlat,lC=Zc(),oJe=jc().axisHoverFormat,lJe=Id().dash,b$t=i3(),uJe=HA(),w$t=uJe.INCREASING.COLOR,A$t=uJe.DECREASING.COLOR,N$=lC.line;function sJe(e){return{line:{color:uO({},N$.color,{dflt:e}),width:N$.width,dash:lJe,editType:"style"},editType:"style"}}fJe.exports={xperiod:lC.xperiod,xperiod0:lC.xperiod0,xperiodalignment:lC.xperiodalignment,xhoverformat:oJe("x"),yhoverformat:oJe("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:uO({},N$.width,{}),dash:uO({},lJe,{}),editType:"style"},increasing:sJe(w$t),decreasing:sJe(A$t),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:uO({},b$t.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:lC.zorder}});var U$=Te((l3r,cJe)=>{"use strict";var T$t=$l(),S$t=ei();cJe.exports=function(t,r,n,i){var a=n("x"),o=n("open"),s=n("high"),u=n("low"),l=n("close");n("hoverlabel.split");var f=T$t.getComponentMethod("calendars","handleTraceDefaults");if(f(t,r,["x"],i),!!(o&&s&&u&&l)){var c=Math.min(o.length,s.length,u.length,l.length);return a&&(c=Math.min(c,S$t.minRowLength(a))),r._length=c,c}}});var pJe=Te((u3r,dJe)=>{"use strict";var M$t=ei(),E$t=U$(),k$t=Pm(),C$t=fO();dJe.exports=function(t,r,n,i){function a(s,u){return M$t.coerce(t,r,C$t,s,u)}var o=E$t(t,r,a,i);if(!o){r.visible=!1;return}k$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),hJe(t,r,a,"increasing"),hJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function hJe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var V$=Te((f3r,mJe)=>{"use strict";var US=ei(),cO=US._,hO=wu(),L$t=Im(),uC=nf().BADNUM;function P$t(e,t){var r=hO.getFromId(e,t.xaxis),n=hO.getFromId(e,t.yaxis),i=I$t(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var u=vJe(e,t,o,s,n,z$t);return t._extremes[r._id]=hO.findExtremes(r,s,{vpad:a/2}),u.length?(US.extendFlat(u[0].t,{wHover:a/2,tickLen:i}),u):[{t:{empty:!0}}]}function z$t(e,t,r,n){return{o:e,h:t,l:r,c:n}}function vJe(e,t,r,n,i,a){for(var o=i.makeCalcdata(t,"open"),s=i.makeCalcdata(t,"high"),u=i.makeCalcdata(t,"low"),l=i.makeCalcdata(t,"close"),f=US.isArrayOrTypedArray(t.text),c=US.isArrayOrTypedArray(t.hovertext),h=!0,d=null,p=!!t.xperiodalignment,_=[],b=0;bd):h=L>k,d=L;var x=a(k,E,T,L);x.pos=v,x.yc=(k+L)/2,x.i=b,x.dir=h?"increasing":"decreasing",x.x=x.pos,x.y=[T,E],p&&(x.orig_p=r[b]),f&&(x.tx=t.text[b]),c&&(x.htx=t.hovertext[b]),_.push(x)}else _.push({pos:v,empty:!0})}return t._extremes[i._id]=hO.findExtremes(i,US.concat(u,s),{padded:!0}),_.length&&(_[0].t={labels:{open:cO(e,"open:")+" ",high:cO(e,"high:")+" ",low:cO(e,"low:")+" ",close:cO(e,"close:")+" "}}),_}function I$t(e,t,r){var n=r._minDiff;if(!n){var i=e._fullData,a=[];n=1/0;var o;for(o=0;o{"use strict";var R$t=Jl(),yJe=ei();gJe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;yJe.makeTraceGroups(i,n,"trace ohlc").each(function(u){var l=R$t.select(this),f=u[0],c=f.t,h=f.trace;if(h.visible!==!0||c.empty){l.remove();return}var d=c.tickLen,p=l.selectAll("path").data(yJe.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(_){if(_.empty)return"M0,0Z";var b=o.c2p(_.pos-d,!0),v=o.c2p(_.pos+d,!0),k=s?(b+v)/2:o.c2p(_.pos,!0),E=a.c2p(_.o,!0),T=a.c2p(_.h,!0),L=a.c2p(_.l,!0),x=a.c2p(_.c,!0);return"M"+b+","+E+"H"+k+"M"+k+","+T+"V"+L+"M"+v+","+x+"H"+k})})}});var bJe=Te((h3r,xJe)=>{"use strict";var G$=Jl(),D$t=Mu(),F$t=jl();xJe.exports=function(t,r,n){var i=n||G$.select(t).selectAll("g.ohlclayer").selectAll("g.trace");i.style("opacity",function(a){return a[0].trace.opacity}),i.each(function(a){var o=a[0].trace;G$.select(this).selectAll("path").each(function(s){if(!s.empty){var u=o[s.dir].line;G$.select(this).style("fill","none").call(F$t.stroke,u.color).call(D$t.dashLine,u.dash,u.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var W$=Te((d3r,MJe)=>{"use strict";var H$=wu(),B$t=ei(),dO=Xc(),O$t=jl(),q$t=ei().fillText,wJe=HA(),N$t={increasing:wJe.INCREASING.SYMBOL,decreasing:wJe.DECREASING.SYMBOL};function U$t(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?TJe(e,t,r,n):SJe(e,t,r,n)}function AJe(e,t,r,n){var i=e.cd,a=e.xa,o=i[0].trace,s=i[0].t,u=o.type,l=u==="ohlc"?"l":"min",f=u==="ohlc"?"h":"max",c,h,d=s.bPos||0,p=function(P){return P.pos+d-t},_=s.bdPos||s.tickLen,b=s.wHover,v=Math.min(1,_/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));c=e.maxHoverDistance-v,h=e.maxSpikeDistance-v;function k(P){var A=p(P);return dO.inbox(A-b,A+b,c)}function E(P){var A=P[l],B=P[f];return A===B||dO.inbox(A-r,B-r,c)}function T(P){return(k(P)+E(P))/2}var L=dO.getDistanceFunction(n,k,E,T);if(dO.getClosest(i,L,e),e.index===!1)return null;var x=i[e.index];if(x.empty)return null;var C=x.dir,M=o[C],m=M.line.color;return O$t.opacity(m)&&M.line.width?e.color=m:e.color=M.fillcolor,e.x0=a.c2p(x.pos+d-_,!0),e.x1=a.c2p(x.pos+d+_,!0),e.xLabelVal=x.orig_p!==void 0?x.orig_p:x.pos,e.spikeDistance=T(x)*h/c,e.xSpike=a.c2p(x.pos,!0),e}function TJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=[],l=AJe(e,t,r,n);if(!l)return[];var f=l.index,c=i[f],h=c.hi||o.hoverinfo,d=h.split("+"),p=h==="all",_=p||d.indexOf("y")!==-1;if(!_)return[];for(var b=["high","open","close","low"],v={},k=0;k"+s.labels[E]+H$.hoverLabelText(a,T,o.yhoverformat)):(x=B$t.extendFlat({},l),x.y0=x.y1=L,x.yLabelVal=T,x.yLabel=s.labels[E]+H$.hoverLabelText(a,T,o.yhoverformat),x.name="",u.push(x),v[T]=x)}return u}function SJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=AJe(e,t,r,n);if(!u)return[];var l=u.index,f=i[l],c=u.index=f.i,h=f.dir;function d(T){return s.labels[T]+H$.hoverLabelText(a,o[T][c],o.yhoverformat)}var p=f.hi||o.hoverinfo,_=p.split("+"),b=p==="all",v=b||_.indexOf("y")!==-1,k=b||_.indexOf("text")!==-1,E=v?[d("open"),d("high"),d("low"),d("close")+" "+N$t[h]]:[];return k&&q$t(f,o,E),u.extraText=E.join("
"),u.y0=u.y1=a.c2p(f.yc,!0),[u]}MJe.exports={hoverPoints:U$t,hoverSplit:TJe,hoverOnPoints:SJe}});var j$=Te((p3r,EJe)=>{"use strict";EJe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u=n[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";kJe.exports={moduleType:"trace",name:"ohlc",basePlotModule:Th(),categories:["cartesian","svg","showLegend"],meta:{},attributes:fO(),supplyDefaults:pJe(),calc:V$().calc,plot:_Je(),style:bJe(),hoverPoints:W$().hoverPoints,selectPoints:j$()}});var PJe=Te((m3r,LJe)=>{"use strict";LJe.exports=CJe()});var Z$=Te((y3r,RJe)=>{"use strict";var X$=ei().extendFlat,zJe=jc().axisHoverFormat,f0=fO(),VS=_E();function IJe(e){return{line:{color:X$({},VS.line.color,{dflt:e}),width:VS.line.width,editType:"style"},fillcolor:VS.fillcolor,editType:"style"}}RJe.exports={xperiod:f0.xperiod,xperiod0:f0.xperiod0,xperiodalignment:f0.xperiodalignment,xhoverformat:zJe("x"),yhoverformat:zJe("y"),x:f0.x,open:f0.open,high:f0.high,low:f0.low,close:f0.close,line:{width:X$({},VS.line.width,{}),editType:"style"},increasing:IJe(f0.increasing.line.color.dflt),decreasing:IJe(f0.decreasing.line.color.dflt),text:f0.text,hovertext:f0.hovertext,whiskerwidth:X$({},VS.whiskerwidth,{dflt:0}),hoverlabel:f0.hoverlabel,zorder:VS.zorder}});var BJe=Te((g3r,FJe)=>{"use strict";var V$t=ei(),G$t=jl(),H$t=U$(),W$t=Pm(),j$t=Z$();FJe.exports=function(t,r,n,i){function a(s,u){return V$t.coerce(t,r,j$t,s,u)}var o=H$t(t,r,a,i);if(!o){r.visible=!1;return}W$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),DJe(t,r,a,"increasing"),DJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function DJe(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",G$t.addOpacity(i,.5))}});var UJe=Te((_3r,NJe)=>{"use strict";var OJe=ei(),qJe=wu(),X$t=Im(),Z$t=V$().calcCommon;NJe.exports=function(e,t){var r=e._fullLayout,n=qJe.getFromId(e,t.xaxis),i=qJe.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=X$t(t,n,"x",a).vals,s=Z$t(e,t,a,o,i,Y$t);return s.length?(OJe.extendFlat(s[0].t,{num:r._numBoxes,dPos:OJe.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function Y$t(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var GJe=Te((x3r,VJe)=>{"use strict";VJe.exports={moduleType:"trace",name:"candlestick",basePlotModule:Th(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:Z$(),layoutAttributes:xE(),supplyLayoutDefaults:WI().supplyLayoutDefaults,crossTraceCalc:XI().crossTraceCalc,supplyDefaults:BJe(),calc:UJe(),plot:ZI().plot,layerName:"boxlayer",style:YI().style,hoverPoints:W$().hoverPoints,selectPoints:j$()}});var WJe=Te((b3r,HJe)=>{"use strict";HJe.exports=GJe()});var K$=Te((w3r,jJe)=>{"use strict";var vO=ei(),K$t=gy(),pO=vO.deg2rad,Y$=vO.rad2deg;jJe.exports=function(t,r,n){switch(K$t(t,n),t._id){case"x":case"radialaxis":J$t(t,r);break;case"angularaxis":eQt(t,r);break}};function J$t(e,t){var r=t._subplot;e.setGeometry=function(){var n=e._rl[0],i=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(i-n),s=a/o,u=n>i?function(l){return l<=0}:function(l){return l>=0};e.c2g=function(l){var f=e.c2l(l)-n;return(u(f)?f:0)+s},e.g2c=function(l){return e.l2c(l+n-s)},e.g2p=function(l){return l*o},e.c2p=function(l){return e.g2p(e.c2g(l))}}}function $$t(e,t){return t==="degrees"?pO(e):e}function Q$t(e,t){return t==="degrees"?Y$(e):e}function eQt(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return $$t(n(a),o)},e.c2d=function(a,o){return i(Q$t(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],u=a._length,l,f,c=function(b){return e.d2c(b,a.thetaunit)};if(s)for(l=new Array(u),f=0;f{"use strict";XJe.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}});var gO=Te((T3r,$Je)=>{"use strict";var dw=ei(),ZJe=E5().tester,J$=dw.findIndexOfMin,KJe=dw.isAngleInsideSector,tQt=dw.angleDelta,YJe=dw.angleDist;function rQt(e,t,r,n,i){if(!KJe(t,n))return!1;var a,o;r[0]0?o:1/0},n=J$(t,r),i=dw.mod(n+1,t.length);return[t[n],t[i]]}function yO(e){return Math.abs(e)>1e-10?e:0}function $$(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function QJe(e){return e<0?-1:e>0?1:0}function HS(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var n=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/n,2*r/n]}function WS(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function e$e(e,t){return t*e.radius}function fQt(e,t,r,n){var i=WS(e,HS([r,t])),a=i[0],o=i[1],s=WS(e,HS([n,t])),u=s[0],l=s[1];if(t===0)return["M"+a+","+o,"L"+u+","+l].join(" ");var f=e$e(e,1/Math.abs(t));return["M"+a+","+o,"A"+f+","+f+" 0 0,"+(t<0?1:0)+" "+u+","+l].join(" ")}function cQt(e,t,r,n){var i=e$e(e,1/(t+1)),a=WS(e,HS([t,r])),o=a[0],s=a[1],u=WS(e,HS([t,n])),l=u[0],f=u[1];if(QJe(r)!==QJe(n)){var c=WS(e,HS([t,0])),h=c[0],d=c[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var pw=Jl(),hQt=cd(),mw=$l(),Oc=ei(),rg=Oc.strRotate,bd=Oc.strTranslate,eQ=jl(),fC=Mu(),dQt=Cc(),dv=wu(),pQt=gy(),vQt=K$(),mQt=Am().doAutoRange,g1=Z7(),bO=xp(),r$e=Xc(),yQt=Mb(),gQt=ah().prepSelect,_Qt=ah().selectOnClick,tQ=ah().clearOutline,i$e=Tm(),n$e=d5(),a$e=b5().redrawReglTraces,xQt=Qh().MID_SHIFT,Cx=mO(),_1=gO(),wO=Q$(),_O=wO.smith,bQt=wO.reactanceArc,wQt=wO.resistanceArc,xO=wO.smithTransform,AQt=Oc._,o$e=Oc.mod,Lx=Oc.deg2rad,vw=Oc.rad2deg;function s$e(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=e._fullLayout,i="clip"+n._uid+t;this.clipIds.forTraces=i+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var Vd=s$e.prototype;f$e.exports=function(t,r,n){return new s$e(t,r,n)};Vd.plot=function(e,t){for(var r=this,n=t[r.id],i=!1,a=0;ab?(v=l,k=l*b,L=(f-k)/i.h/2,E=[s[0],s[1]],T=[u[0]+L,u[1]-L]):(v=f/b,k=f,L=(l-v)/i.w/2,E=[s[0]+L,s[1]-L],T=[u[0],u[1]]),r.xLength2=v,r.yLength2=k,r.xDomain2=E,r.yDomain2=T;var x=r.xOffset2=i.l+i.w*E[0],C=r.yOffset2=i.t+i.h*(1-T[1]),M=r.radius=v/d,m=r.innerRadius=r.getHole(t)*M,P=r.cx=x-M*h[0],A=r.cy=C+M*h[3],B=r.cxx=P-x,F=r.cyy=A-C,U=a.side,G;U==="counterclockwise"?(G=U,U="top"):U==="clockwise"&&(G=U,U="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:U,_trueSide:G,domain:[m/i.w,M/i.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:E}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:T});var j=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",j).attr("transform",bd(B,F)),n.frontplot.attr("transform",bd(x,C)).call(fC.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",j).attr("transform",bd(P,A)).call(eQ.fill,t.bgcolor)};Vd.mockAxis=function(e,t,r,n){var i=Oc.extendFlat({},r,n);return vQt(i,t,e),i};Vd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Oc.extendFlat({type:"linear"},r);pQt(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var u=n.sectorBBox,l=s[a],f=n.radialAxis._rl,c=(f[1]-f[0])/(1-n.getHole(t));o.range=[u[l[0]]*c,u[l[1]]*c]},o.isPtWithinRange=a==="x"&&!i?function(u){return n.isPtInside(u)}:function(){return!0},o.setRange(),o.setScale(),o};Vd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);mQt(n,i);var o=i.range;if(a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")],i.minallowed!==void 0){var s=i.r2l(i.minallowed);i._rl[0]>i._rl[1]?i._rl[1]=Math.max(i._rl[1],s):i._rl[0]=Math.max(i._rl[0],s)}if(i.maxallowed!==void 0){var u=i.r2l(i.maxallowed);i._rl[0]90&&f<=270&&(c.tickangle=180);var p=d?function(M){var m=xO(r,_O([M.x,0]));return bd(m[0]-s,m[1]-u)}:function(M){return bd(c.l2p(M.x)+o,0)},_=d?function(M){return wQt(r,M.x,-1/0,1/0)}:function(M){return r.pathArc(c.r2p(M.x)+o)},b=l$e(l);if(r.radialTickLayout!==b&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=b),h){c.setScale();var v=0,k=d?(c.tickvals||[]).filter(function(M){return M>=0}).map(function(M){return dv.tickText(c,M,!0,!1)}):dv.calcTicks(c),E=d?k:dv.clipEnds(c,k),T=dv.getTickSigns(c)[2];d&&((c.ticks==="top"&&c.side==="bottom"||c.ticks==="bottom"&&c.side==="top")&&(T=-T),c.ticks==="top"&&c.side==="top"&&(v=-c.ticklen),c.ticks==="bottom"&&c.side==="bottom"&&(v=c.ticklen)),dv.drawTicks(n,c,{vals:k,layer:i["radial-axis"],path:dv.makeTickPath(c,0,T),transFn:p,crisp:!1}),dv.drawGrid(n,c,{vals:E,layer:i["radial-grid"],path:_,transFn:Oc.noop,crisp:!1}),dv.drawLabels(n,c,{vals:k,layer:i["radial-axis"],transFn:p,labelFns:dv.makeLabelFns(c,v)})}var L=r.radialAxisAngle=r.vangles?vw(u$e(Lx(l.angle),r.vangles)):l.angle,x=bd(s,u),C=x+rg(-L);cC(i["radial-axis"],h&&(l.showticklabels||l.ticks),{transform:C}),cC(i["radial-grid"],h&&l.showgrid,{transform:d?"":x}),cC(i["radial-line"].select("line"),h&&l.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:C}).attr("stroke-width",l.linewidth).call(eQ.stroke,l.linecolor)};Vd.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,u=n.getRadial(t),l=n.id+"title",f=0;if(u.title){var c=fC.bBox(n.layers["radial-axis"].node()).height,h=u.title.font.size,d=u.side;f=d==="top"?h:d==="counterclockwise"?-(c+h*.4):c+h*.8}var p=r!==void 0?r:n.radialAxisAngle,_=Lx(p),b=Math.cos(_),v=Math.sin(_),k=o+a/2*b+f*v,E=s-a/2*v+f*b;n.layers["radial-axis-title"]=yQt.draw(i,l,{propContainer:u,propName:n.id+".radialaxis.title.text",placeholder:AQt(i,"Click to enter radial axis title"),attributes:{x:k,y:E,"text-anchor":"middle"},transform:{rotate:-p}})}};Vd.updateAngularAxis=function(e,t){var r=this,n=r.gd,i=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,u=r.cy,l=r.getAngular(t),f=r.angularAxis,c=r.isSmith;c||(r.fillViewInitialKey("angularaxis.rotation",l.rotation),f.setGeometry(),f.setScale());var h=c?function(m){var P=xO(r,_O([0,m.x]));return Math.atan2(P[0]-s,P[1]-u)-Math.PI/2}:function(m){return f.t2g(m.x)};f.type==="linear"&&f.thetaunit==="radians"&&(f.tick0=vw(f.tick0),f.dtick=vw(f.dtick));var d=function(m){return bd(s+a*Math.cos(m),u-a*Math.sin(m))},p=c?function(m){var P=xO(r,_O([0,m.x]));return bd(P[0],P[1])}:function(m){return d(h(m))},_=c?function(m){var P=xO(r,_O([0,m.x])),A=Math.atan2(P[0]-s,P[1]-u)-Math.PI/2;return bd(P[0],P[1])+rg(-vw(A))}:function(m){var P=h(m);return d(P)+rg(-vw(P))},b=c?function(m){return bQt(r,m.x,0,1/0)}:function(m){var P=h(m),A=Math.cos(P),B=Math.sin(P);return"M"+[s+o*A,u-o*B]+"L"+[s+a*A,u-a*B]},v=dv.makeLabelFns(f,0),k=v.labelStandoff,E={};E.xFn=function(m){var P=h(m);return Math.cos(P)*k},E.yFn=function(m){var P=h(m),A=Math.sin(P)>0?.2:1;return-Math.sin(P)*(k+m.fontSize*A)+Math.abs(Math.cos(P))*(m.fontSize*xQt)},E.anchorFn=function(m){var P=h(m),A=Math.cos(P);return Math.abs(A)<.1?"middle":A>0?"start":"end"},E.heightFn=function(m,P,A){var B=h(m);return-.5*(1+Math.sin(B))*A};var T=l$e(l);r.angularTickLayout!==T&&(i["angular-axis"].selectAll("."+f._id+"tick").remove(),r.angularTickLayout=T);var L=c?[1/0].concat(f.tickvals||[]).map(function(m){return dv.tickText(f,m,!0,!1)}):dv.calcTicks(f);c&&(L[0].text="\u221E",L[0].fontSize*=1.75);var x;if(t.gridshape==="linear"?(x=L.map(h),Oc.angleDelta(x[0],x[1])<0&&(x=x.slice().reverse())):x=null,r.vangles=x,f.type==="category"&&(L=L.filter(function(m){return Oc.isAngleInsideSector(h(m),r.sectorInRad)})),f.visible){var C=f.ticks==="inside"?-1:1,M=(f.linewidth||1)/2;dv.drawTicks(n,f,{vals:L,layer:i["angular-axis"],path:"M"+C*M+",0h"+C*f.ticklen,transFn:_,crisp:!1}),dv.drawGrid(n,f,{vals:L,layer:i["angular-grid"],path:b,transFn:Oc.noop,crisp:!1}),dv.drawLabels(n,f,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:p,labelFns:E})}cC(i["angular-line"].select("path"),l.showline,{d:r.pathSubplot(),transform:bd(s,u)}).attr("stroke-width",l.linewidth).call(eQ.stroke,l.linecolor)};Vd.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};Vd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=Cx.MINZOOM,s=Cx.OFFEDGE,u=t.radius,l=t.innerRadius,f=t.cx,c=t.cy,h=t.cxx,d=t.cyy,p=t.sectorInRad,_=t.vangles,b=t.radialAxis,v=_1.clampTiny,k=_1.findXYatLength,E=_1.findEnclosingVertexAngles,T=Cx.cornerHalfWidth,L=Cx.cornerLen/2,x,C,M=g1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");pw.select(M).attr("d",t.pathSubplot()).attr("transform",bd(f,c)),M.onmousemove=function(ce){r$e.hover(n,ce,t.id),n._fullLayout._lasthover=M,n._fullLayout._hoversubplot=t.id},M.onmouseout=function(ce){n._dragging||bO.unhover(n,ce)};var m={element:M,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,A,B,F,U,G,j,H,N;function W(ce,Ke){return Math.sqrt(ce*ce+Ke*Ke)}function re(ce,Ke){return W(ce-h,Ke-d)}function ae(ce,Ke){return Math.atan2(d-Ke,ce-h)}function be(ce,Ke){return[ce*Math.cos(Ke),ce*Math.sin(-Ke)]}function Pe(ce,Ke){if(ce===0)return t.pathSector(2*T);var nt=L/ce,gt=Ke-nt,Nt=Ke+nt,it=Math.max(0,Math.min(ce,u)),Ye=it-T,kt=it+T;return"M"+be(Ye,gt)+"A"+[Ye,Ye]+" 0,0,0 "+be(Ye,Nt)+"L"+be(kt,Nt)+"A"+[kt,kt]+" 0,0,1 "+be(kt,gt)+"Z"}function Ce(ce,Ke,nt){if(ce===0)return t.pathSector(2*T);var gt=be(ce,Ke),Nt=be(ce,nt),it=v((gt[0]+Nt[0])/2),Ye=v((gt[1]+Nt[1])/2),kt,Tt;if(it&&Ye){var St=Ye/it,Rt=-1/St,Zt=k(T,St,it,Ye);kt=k(L,Rt,Zt[0][0],Zt[0][1]),Tt=k(L,Rt,Zt[1][0],Zt[1][1])}else{var Et,Ae;Ye?(Et=L,Ae=T):(Et=T,Ae=L),kt=[[it-Et,Ye-Ae],[it+Et,Ye-Ae]],Tt=[[it-Et,Ye+Ae],[it+Et,Ye+Ae]]}return"M"+kt.join("L")+"L"+Tt.reverse().join("L")+"Z"}function de(){B=null,F=null,U=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];j=hQt(ce.bgcolor).getLuminance(),H=g1.makeZoombox(a,j,f,c,U),H.attr("fill-rule","evenodd"),N=g1.makeCorners(a,f,c),tQ(n)}function te(ce,Ke){return Ke=Math.max(Math.min(Ke,u),l),ceo?(ce-1&&ce===1&&_Qt(Ke,n,[t.xaxis],[t.yaxis],t.id,m),nt.indexOf("event")>-1&&r$e.click(n,Ke,t.id)}m.prepFn=function(ce,Ke,nt){var gt=n._fullLayout.dragmode,Nt=M.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var it=n._fullLayout._invTransform;x=n._fullLayout._invScaleX,C=n._fullLayout._invScaleY;var Ye=Oc.apply3DTransform(it)(Ke-Nt.left,nt-Nt.top);if(P=Ye[0],A=Ye[1],_){var kt=_1.findPolygonOffset(u,p[0],p[1],_);P+=h+kt[0],A+=d+kt[1]}switch(gt){case"zoom":m.clickFn=Ve,r||(_?m.moveFn=Ne:m.moveFn=Ee,m.doneFn=Fe,de(ce,Ke,nt));break;case"select":case"lasso":gQt(ce,Ke,nt,m,gt);break}},bO.init(m)};Vd.updateRadialDrag=function(e,t,r){var n=this,i=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,u=n.cx,l=n.cy,f=n.radialAxis,c=Cx.radialDragBoxSize,h=c/2;if(!f.visible)return;var d=Lx(n.radialAxisAngle),p=f._rl,_=p[0],b=p[1],v=p[r],k=.75*(p[1]-p[0])/(1-n.getHole(t))/o,E,T,L;r?(E=u+(o+h)*Math.cos(d),T=l-(o+h)*Math.sin(d),L="radialdrag"):(E=u+(s-h)*Math.cos(d),T=l-(s-h)*Math.sin(d),L="radialdrag-inner");var x=g1.makeRectDragger(a,L,"crosshair",-h,-h,c,c),C={element:x,gd:i};e.dragmode===!1&&(C.dragmode=!1),cC(pw.select(x),f.visible&&s0!=(r?P>_:P=90||i>90&&a>=450?d=1:s<=0&&l<=0?d=0:d=Math.max(s,l),i<=180&&a>=180||i>180&&a>=540?f=-1:o>=0&&u>=0?f=0:f=Math.min(o,u),i<=270&&a>=270||i>270&&a>=630?c=-1:s>=0&&l>=0?c=0:c=Math.min(s,l),a>=360?h=1:o<=0&&u<=0?h=0:h=Math.max(o,u),[f,c,h,d]}function u$e(e,t){var r=function(i){return Oc.angleDist(e,i)},n=Oc.findIndexOfMin(t,r);return t[n]}function cC(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var iQ=Te((E3r,m$e)=>{"use strict";var SQt=Rh(),Ku=Dd(),MQt=zc().attributes,c0=ei().extendFlat,c$e=Sc().overrideAll,h$e=c$e({color:Ku.color,showline:c0({},Ku.showline,{dflt:!0}),linecolor:Ku.linecolor,linewidth:Ku.linewidth,showgrid:c0({},Ku.showgrid,{dflt:!0}),gridcolor:Ku.gridcolor,gridwidth:Ku.gridwidth,griddash:Ku.griddash},"plot","from-root"),d$e=c$e({tickmode:Ku.minor.tickmode,nticks:Ku.nticks,tick0:Ku.tick0,dtick:Ku.dtick,tickvals:Ku.tickvals,ticktext:Ku.ticktext,ticks:Ku.ticks,ticklen:Ku.ticklen,tickwidth:Ku.tickwidth,tickcolor:Ku.tickcolor,ticklabelstep:Ku.ticklabelstep,showticklabels:Ku.showticklabels,labelalias:Ku.labelalias,minorloglabels:Ku.minorloglabels,showtickprefix:Ku.showtickprefix,tickprefix:Ku.tickprefix,showticksuffix:Ku.showticksuffix,ticksuffix:Ku.ticksuffix,showexponent:Ku.showexponent,exponentformat:Ku.exponentformat,minexponent:Ku.minexponent,separatethousands:Ku.separatethousands,tickfont:Ku.tickfont,tickangle:Ku.tickangle,tickformat:Ku.tickformat,tickformatstops:Ku.tickformatstops,layer:Ku.layer},"plot","from-root"),p$e={visible:c0({},Ku.visible,{dflt:!0}),type:c0({},Ku.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Ku.autotypenumbers,autorangeoptions:{minallowed:Ku.autorangeoptions.minallowed,maxallowed:Ku.autorangeoptions.maxallowed,clipmin:Ku.autorangeoptions.clipmin,clipmax:Ku.autorangeoptions.clipmax,include:Ku.autorangeoptions.include,editType:"plot"},autorange:c0({},Ku.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:c0({},Ku.minallowed,{editType:"plot"}),maxallowed:c0({},Ku.maxallowed,{editType:"plot"}),range:c0({},Ku.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:Ku.categoryorder,categoryarray:Ku.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:Ku.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:c0({},Ku.title.text,{editType:"plot",dflt:""}),font:c0({},Ku.title.font,{editType:"plot"}),editType:"plot"},hoverformat:Ku.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};c0(p$e,h$e,d$e);var v$e={visible:c0({},Ku.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:Ku.autotypenumbers,categoryorder:Ku.categoryorder,categoryarray:Ku.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:Ku.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};c0(v$e,h$e,d$e);m$e.exports={domain:MQt({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:SQt.background},radialaxis:p$e,angularaxis:v$e,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var x$e=Te((k3r,_$e)=>{"use strict";var AO=ei(),EQt=jl(),kQt=Pf(),CQt=k_(),LQt=Rd().getSubplotData,PQt=xb(),zQt=A3(),IQt=e_(),RQt=t_(),DQt=iI(),FQt=eE(),BQt=MN(),OQt=L3(),g$e=iQ(),qQt=K$(),TO=mO(),y$e=TO.axisNames;function NQt(e,t,r,n){var i=r("bgcolor");n.bgColor=EQt.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=LQt(n.fullData,TO.name,n.id),s=n.layoutOut,u;function l(H,N){return r(u+"."+H,N)}for(var f=0;f{"use strict";var VQt=Rd().getSubplotCalcData,GQt=ei().counterRegex,HQt=rQ(),w$e=mO(),A$e=w$e.attr,yw=w$e.name,b$e=GQt(yw),T$e={};T$e[A$e]={valType:"subplotid",dflt:yw,editType:"calc"};function WQt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[yw],i=0;i{"use strict";var XQt=Nu().hovertemplateAttrs,ZQt=Nu().texttemplateAttrs,MO=Su().extendFlat,YQt=km(),h0=Zc(),KQt=Gf(),jS=h0.line;M$e.exports={mode:h0.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:h0.text,texttemplate:ZQt({editType:"plot"},{keys:["r","theta","text"]}),hovertext:h0.hovertext,line:{color:jS.color,width:jS.width,dash:jS.dash,backoff:jS.backoff,shape:MO({},jS.shape,{values:["linear","spline"]}),smoothing:jS.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:MO({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:MO({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:YQt(),hoverinfo:MO({},KQt.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:XQt(),selected:h0.selected,unselected:h0.unselected}});var kO=Te((P3r,C$e)=>{"use strict";var EO=ei(),XS=lc(),JQt=$v(),$Qt=R0(),E$e=$3(),QQt=D0(),eer=zm(),ter=Sy().PTS_LINESONLY,rer=hC();function ier(e,t,r,n){function i(s,u){return EO.coerce(e,t,rer,s,u)}var a=k$e(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var ner=ei(),L$e=wu();P$e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=n[r.subplot],o=a.radialaxis,s=a.angularaxis);var u=o.c2l(t.r);i.rLabel=L$e.tickText(o,u,!0).text;var l=s.thetaunit==="degrees"?ner.rad2deg(t.theta):t.theta;return i.thetaLabel=L$e.tickText(s,l,!0).text,i}});var R$e=Te((I3r,I$e)=>{"use strict";var z$e=ku(),aer=nf().BADNUM,oer=wu(),ser=F0(),ler=ky(),uer=B0(),fer=O0().calcMarkerSize;I$e.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=a.makeCalcdata(r,"r"),u=o.makeCalcdata(r,"theta"),l=r._length,f=new Array(l),c=0;c{"use strict";var cer=nA(),D$e=nf().BADNUM;F$e.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},u=r.radialAxis,l=r.angularAxis,f=0;f{"use strict";var her=lA();function der(e,t,r,n){var i=her(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],u=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,O$e(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function O$e(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var u=e.hi||t.hoverinfo,l=[];function f(h,d){l.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=u.split("+");c.indexOf("all")!==-1&&(c=["r","theta","text"]),c.indexOf("r")!==-1&&f(i,n.rLabel),c.indexOf("theta")!==-1&&f(a,n.thetaLabel),c.indexOf("text")!==-1&&n.text&&(l.push(n.text),delete n.text),n.extraText=l.join("
")}}q$e.exports={hoverPoints:der,makeHoverPointText:O$e}});var U$e=Te((F3r,N$e)=>{"use strict";N$e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:SO(),categories:["polar","symbols","showLegend","scatter-like"],attributes:hC(),supplyDefaults:kO().supplyDefaults,colorbar:ep(),formatLabels:CO(),calc:R$e(),plot:B$e(),style:ov().style,styleOnSelect:ov().styleOnSelect,hoverPoints:LO().hoverPoints,selectPoints:uA(),meta:{}}});var G$e=Te((B3r,V$e)=>{"use strict";V$e.exports=U$e()});var nQ=Te((O3r,H$e)=>{"use strict";var Uv=hC(),x1=lk(),per=Nu().texttemplateAttrs;H$e.exports={mode:Uv.mode,r:Uv.r,theta:Uv.theta,r0:Uv.r0,dr:Uv.dr,theta0:Uv.theta0,dtheta:Uv.dtheta,thetaunit:Uv.thetaunit,text:Uv.text,texttemplate:per({editType:"plot"},{keys:["r","theta","text"]}),hovertext:Uv.hovertext,hovertemplate:Uv.hovertemplate,line:{color:x1.line.color,width:x1.line.width,dash:x1.line.dash,editType:"calc"},connectgaps:x1.connectgaps,marker:x1.marker,fill:x1.fill,fillcolor:x1.fillcolor,textposition:x1.textposition,textfont:x1.textfont,hoverinfo:Uv.hoverinfo,selected:Uv.selected,unselected:Uv.unselected}});var X$e=Te((q3r,j$e)=>{"use strict";var W$e=ei(),aQ=lc(),ver=kO().handleRThetaDefaults,mer=$v(),yer=R0(),ger=D0(),_er=zm(),xer=Sy().PTS_LINESONLY,ber=nQ();j$e.exports=function(t,r,n,i){function a(s,u){return W$e.coerce(t,r,ber,s,u)}var o=ver(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var wer=CO();Z$e.exports=function(t,r,n){var i=t.i;return"r"in t||(t.r=r._r[i]),"theta"in t||(t.theta=r._theta[i]),wer(t,r,n)}});var J$e=Te((U3r,K$e)=>{"use strict";var Aer=F0(),Ter=O0().calcMarkerSize,Ser=Y2(),Mer=wu(),Eer=ox().TOO_MANY_POINTS;K$e.exports=function(t,r){var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=r._r=a.makeCalcdata(r,"r"),u=r._theta=o.makeCalcdata(r,"theta"),l=r._length,f={};l{"use strict";var ker=OF(),Cer=LO().makeHoverPointText;function Ler(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,u=ker.hoverPoints(e,t,r,n);if(!(!u||u[0].index===!1)){var l=u[0];if(l.index===void 0)return u;var f=e.subplot,c=l.cd[l.index],h=l.trace;if(c.r=o[l.index],c.theta=s[l.index],!!f.isPtInside(c))return l.xLabelVal=void 0,l.yLabelVal=void 0,Cer(c,h,f,l),u}}$$e.exports={hoverPoints:Ler}});var tQe=Te((G3r,eQe)=>{"use strict";eQe.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:SO(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:nQ(),supplyDefaults:X$e(),colorbar:ep(),formatLabels:Y$e(),calc:J$e(),hoverPoints:Q$e().hoverPoints,selectPoints:mY(),meta:{}}});var rQe=Te((H3r,oQ)=>{"use strict";var Per=UF(),zer=ku(),Ier=xK(),Rer=dY(),PO=Y2(),zO=ei(),Der=ox().TOO_MANY_POINTS,Fer={};oQ.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=Rer(t,r);return n.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var u=s[0],l=u.trace,f=u.t,c=l._length,h=f.r,d=f.theta,p=f.opts,_,b=h.slice(),v=d.slice();for(_=0;_=Der&&(p.marker.cluster=f.tree),p.marker&&(p.markerSel.positions=p.markerUnsel.positions=p.marker.positions=k),p.line&&k.length>1&&zO.extendFlat(p.line,PO.linePositions(t,l,k)),p.text&&(zO.extendFlat(p.text,{positions:k},PO.textPosition(t,l,p.text,p.marker)),zO.extendFlat(p.textSel,{positions:k},PO.textPosition(t,l,p.text,p.markerSel)),zO.extendFlat(p.textUnsel,{positions:k},PO.textPosition(t,l,p.text,p.markerUnsel))),p.fill&&!o.fill2d&&(o.fill2d=!0),p.marker&&!o.scatter2d&&(o.scatter2d=!0),p.line&&!o.line2d&&(o.line2d=!0),p.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(p.line),o.fillOptions.push(p.fill),o.markerOptions.push(p.marker),o.markerSelectedOptions.push(p.markerSel),o.markerUnselectedOptions.push(p.markerUnsel),o.textOptions.push(p.text),o.textSelectedOptions.push(p.textSel),o.textUnselectedOptions.push(p.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),f.x=E,f.y=T,f.rawx=E,f.rawy=T,f.r=h,f.theta=d,f.positions=k,f._scene=o,f.index=o.count,o.count++}}),Ier(t,r,n)}};oQ.exports.reglPrecompiled=Fer});var nQe=Te((W3r,iQe)=>{"use strict";var Ber=T8(),Oer=S8(),qer=M8(),Ner=E8(),Uer=k8(),Ver=C8(),Ger=L8(),Her=P8(),Wer=z8(),jer=I8();iQe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":Ber,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:Oer,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":qer,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:Ner,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:Uer,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":Ver,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:Ger,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:Her,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":Wer,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":jer}});var oQe=Te((j3r,aQe)=>{"use strict";var sQ=rQe(),Xer=nQe(),Zer=bK();Object.assign(sQ.reglPrecompiled,Xer);Object.assign(sQ.reglPrecompiled,Zer);aQe.exports=sQ});var uQe=Te((X3r,lQe)=>{"use strict";var sQe=tQe();sQe.plot=oQe();lQe.exports=sQe});var lQ=Te((Z3r,fQe)=>{"use strict";var Yer=Nu().hovertemplateAttrs,ZS=Su().extendFlat,Px=hC(),zx=Ly();fQe.exports={r:Px.r,theta:Px.theta,r0:Px.r0,dr:Px.dr,theta0:Px.theta0,dtheta:Px.dtheta,thetaunit:Px.thetaunit,base:ZS({},zx.base,{}),offset:ZS({},zx.offset,{}),width:ZS({},zx.width,{}),text:ZS({},zx.text,{}),hovertext:ZS({},zx.hovertext,{}),marker:Ker(),hoverinfo:Px.hoverinfo,hovertemplate:Yer(),selected:zx.selected,unselected:zx.unselected};function Ker(){var e=ZS({},zx.marker);return delete e.cornerradius,e}});var uQ=Te((Y3r,cQe)=>{"use strict";cQe.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var pQe=Te((K3r,dQe)=>{"use strict";var hQe=ei(),Jer=kO().handleRThetaDefaults,$er=qI(),Qer=lQ();dQe.exports=function(t,r,n,i){function a(s,u){return hQe.coerce(t,r,Qer,s,u)}var o=Jer(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),$er(t,r,a,n,i),hQe.coerceSelectionMarkerOpacity(r,a)}});var mQe=Te((J3r,vQe)=>{"use strict";var etr=ei(),ttr=uQ();vQe.exports=function(e,t,r){var n={},i;function a(u,l){return etr.coerce(e[i]||{},t[i],ttr,u,l)}for(var o=0;o{"use strict";var yQe=yp().hasColorscale,gQe=gp(),rtr=ei().isArrayOrTypedArray,itr=vE(),ntr=Hb().setGroupPositions,atr=B0(),otr=$l().traceIs,str=ei().extendFlat;function ltr(e,t){for(var r=e._fullLayout,n=t.subplot,i=r[n].radialaxis,a=r[n].angularaxis,o=i.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),u=t._length,l=new Array(u),f=o,c=s,h=0;h{"use strict";var xQe=Jl(),IO=ku(),YS=ei(),ftr=Mu(),cQ=gO();bQe.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,u=r.angularAxis,l=ctr(r),f=r.layers.frontplot.select("g.barlayer");YS.makeTraceGroups(f,n,"trace bars").each(function(){var c=xQe.select(this),h=YS.ensureSingle(c,"g","points"),d=h.selectAll("g.point").data(YS.identity);d.enter().append("g").style("vector-effect",i?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(p){var _=xQe.select(this),b=p.rp0=s.c2p(p.s0),v=p.rp1=s.c2p(p.s1),k=p.thetag0=u.c2g(p.p0),E=p.thetag1=u.c2g(p.p1),T;if(!IO(b)||!IO(v)||!IO(k)||!IO(E)||b===v||k===E)T="M0,0Z";else{var L=s.c2g(p.s1),x=(k+E)/2;p.ct=[a.c2p(L*Math.cos(x)),o.c2p(L*Math.sin(x))],T=l(b,v,k,E)}YS.ensureSingle(_,"path").attr("d",T)}),ftr.setClipUrl(c,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function ctr(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,u;YS.angleDelta(a,o)>0?(s=a,u=o):(s=o,u=a);var l=cQ.findEnclosingVertexAngles(s,e.vangles)[0],f=cQ.findEnclosingVertexAngles(u,e.vangles)[1],c=[l,(s+u)/2,f];return cQ.pathPolygonAnnulus(n,i,s,u,c,t,r)}:function(n,i,a,o){return YS.pathAnnulus(n,i,a,o,t,r)}}});var TQe=Te((eAr,AQe)=>{"use strict";var htr=Xc(),hQ=ei(),dtr=TA().getTraceColor,ptr=hQ.fillText,vtr=LO().makeHoverPointText,mtr=gO().isPtInsidePolygon;AQe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s=o.radialAxis,u=o.angularAxis,l=o.vangles,f=l?mtr:hQ.isPtInsideSector,c=t.maxHoverDistance,h=u._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+n*n))),p=Math.atan2(n,r);s.range[0]>s.range[1]&&(p+=Math.PI);var _=function(E){return f(d,p,[E.rp0,E.rp1],[E.thetag0,E.thetag1],l)?c+Math.min(1,Math.abs(E.thetag1-E.thetag0)/h)-1+(E.rp1-d)/(E.rp1-E.rp0)-1:1/0};if(htr.getClosest(i,_,t),t.index!==!1){var b=t.index,v=i[b];t.x0=t.x1=v.ct[0],t.y0=t.y1=v.ct[1];var k=hQ.extendFlat({},v,{r:v.s,theta:v.p});return ptr(v,a,t),vtr(k,a,o,t),t.hovertemplate=a.hovertemplate,t.color=dtr(a,v),t.xLabelVal=t.yLabelVal=void 0,v.s<0&&(t.idealAlign="left"),[t]}}});var MQe=Te((tAr,SQe)=>{"use strict";SQe.exports={moduleType:"trace",name:"barpolar",basePlotModule:SO(),categories:["polar","bar","showLegend"],attributes:lQ(),layoutAttributes:uQ(),supplyDefaults:pQe(),supplyLayoutDefaults:mQe(),calc:fQ().calc,crossTraceCalc:fQ().crossTraceCalc,plot:wQe(),colorbar:ep(),formatLabels:CO(),style:U0().style,styleOnSelect:U0().styleOnSelect,hoverPoints:TQe(),selectPoints:SA(),meta:{}}});var kQe=Te((rAr,EQe)=>{"use strict";EQe.exports=MQe()});var dQ=Te((iAr,CQe)=>{"use strict";CQe.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var pQ=Te((nAr,IQe)=>{"use strict";var ytr=Rh(),uh=Dd(),gtr=zc().attributes,Ix=ei().extendFlat,LQe=Sc().overrideAll,PQe=LQe({color:uh.color,showline:Ix({},uh.showline,{dflt:!0}),linecolor:uh.linecolor,linewidth:uh.linewidth,showgrid:Ix({},uh.showgrid,{dflt:!0}),gridcolor:uh.gridcolor,gridwidth:uh.gridwidth,griddash:uh.griddash},"plot","from-root"),zQe=LQe({ticklen:uh.ticklen,tickwidth:Ix({},uh.tickwidth,{dflt:2}),tickcolor:uh.tickcolor,showticklabels:uh.showticklabels,labelalias:uh.labelalias,showtickprefix:uh.showtickprefix,tickprefix:uh.tickprefix,showticksuffix:uh.showticksuffix,ticksuffix:uh.ticksuffix,tickfont:uh.tickfont,tickformat:uh.tickformat,hoverformat:uh.hoverformat,layer:uh.layer},"plot","from-root"),_tr=Ix({visible:Ix({},uh.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Ix({},uh.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},PQe,zQe),xtr=Ix({visible:Ix({},uh.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:uh.ticks,editType:"calc"},PQe,zQe);IQe.exports={domain:gtr({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:ytr.background},realaxis:_tr,imaginaryaxis:xtr,editType:"calc"}});var FQe=Te((aAr,DQe)=>{"use strict";var KS=ei(),btr=jl(),wtr=Pf(),Atr=k_(),Ttr=Rd().getSubplotData,Str=t_(),Mtr=e_(),Etr=eE(),ktr=gy(),JS=pQ(),vQ=dQ(),RQe=vQ.axisNames,Ctr=Ptr(function(e){return KS.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function Ltr(e,t,r,n){var i=r("bgcolor");n.bgColor=btr.combine(i,n.paper_bgcolor);var a=Ttr(n.fullData,vQ.name,n.id),o=n.layoutOut,s;function u(L,x){return r(s+"."+L,x)}for(var l=0;l{"use strict";var ztr=Rd().getSubplotCalcData,Itr=ei().counterRegex,Rtr=rQ(),OQe=dQ(),qQe=OQe.attr,gw=OQe.name,BQe=Itr(gw),NQe={};NQe[qQe]={valType:"subplotid",dflt:gw,editType:"calc"};function Dtr(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[gw],i=0;i{"use strict";var Btr=Nu().hovertemplateAttrs,Otr=Nu().texttemplateAttrs,RO=Su().extendFlat,qtr=km(),d0=Zc(),Ntr=Gf(),$S=d0.line;GQe.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:Otr({editType:"plot"},{keys:["real","imag","text"]}),hovertext:d0.hovertext,line:{color:$S.color,width:$S.width,dash:$S.dash,backoff:$S.backoff,shape:RO({},$S.shape,{values:["linear","spline"]}),smoothing:$S.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:RO({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:RO({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:qtr(),hoverinfo:RO({},Ntr.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:Btr(),selected:d0.selected,unselected:d0.unselected}});var jQe=Te((lAr,WQe)=>{"use strict";var DO=ei(),QS=lc(),Utr=$v(),Vtr=R0(),HQe=$3(),Gtr=D0(),Htr=zm(),Wtr=Sy().PTS_LINESONLY,jtr=mQ();WQe.exports=function(t,r,n,i){function a(u,l){return DO.coerce(t,r,jtr,u,l)}var o=Xtr(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var XQe=wu();ZQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=XQe.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=XQe.tickText(a.angularAxis,t.imag,!0).text,i}});var $Qe=Te((fAr,JQe)=>{"use strict";var KQe=ku(),Ztr=nf().BADNUM,Ytr=F0(),Ktr=ky(),Jtr=B0(),$tr=O0().calcMarkerSize;JQe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].realaxis,o=n[i].imaginaryaxis,s=a.makeCalcdata(r,"real"),u=o.makeCalcdata(r,"imag"),l=r._length,f=new Array(l),c=0;c{"use strict";var Qtr=nA(),QQe=nf().BADNUM,err=Q$(),trr=err.smith;eet.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},u=0;u{"use strict";var rrr=lA();function irr(e,t,r,n){var i=rrr(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],u=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,ret(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function ret(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var u=e.hi||t.hoverinfo,l=[];function f(h,d){l.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=u.split("+");c.indexOf("all")!==-1&&(c=["real","imag","text"]),c.indexOf("real")!==-1&&f(i,n.realLabel),c.indexOf("imag")!==-1&&f(a,n.imagLabel),c.indexOf("text")!==-1&&n.text&&(l.push(n.text),delete n.text),n.extraText=l.join("
")}}iet.exports={hoverPoints:irr,makeHoverPointText:ret}});var oet=Te((dAr,aet)=>{"use strict";aet.exports={moduleType:"trace",name:"scattersmith",basePlotModule:VQe(),categories:["smith","symbols","showLegend","scatter-like"],attributes:mQ(),supplyDefaults:jQe(),colorbar:ep(),formatLabels:YQe(),calc:$Qe(),plot:tet(),style:ov().style,styleOnSelect:ov().styleOnSelect,hoverPoints:net().hoverPoints,selectPoints:uA(),meta:{}}});var uet=Te((pAr,set)=>{"use strict";set.exports=oet()});var Cp=Te((vAr,cet)=>{var BO=Uh();function fet(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}BO(fet.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,i){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,i):n)||this.instance(),n.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(a===0?"":e[a]+t[i])+n,i++,r=Math.floor(r/10)}return n.indexOf(e[1]+t[1])===0&&(n=n.substr(1)),n||e[0]}}});function yQ(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Af.local.invalidDate||Af.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function FO(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}BO(yQ.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Af.local.invalidDate||Af.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Af.local.differentCalendars||Af.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+FO(Math.abs(this.year()),4)+"-"+FO(this.month(),2)+"-"+FO(this.day(),2)}});function gQ(){this.shortYearCutoff="+10"}BO(gQ.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new yQ(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+FO(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Af.local.invalidMonth||Af.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Af.local.invalidMonth||Af.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var n=e.toJD()+t*(r==="w"?this.daysInWeek():1),i=e.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),i=e.day(),s=function(f){for(;oc-1+f.minMonth;)a++,o-=c,c=f.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var u=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,u}catch(l){throw this._validateLevel--,l}},_correctAdd:function(e,t,r,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;t=this._add(e,r*i[0]+a*i[1],i[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Af.local.invalidDate||Af.regionalOptions[""].invalidDate);var n=r==="y"?t:e.year(),i=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(n,i))),e.date(n,i,a)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var i=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),l=i-(u>2.5?4716:4715);return l<=0&&l--,this.newDate(l,u,s)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Af=cet.exports=new fet;Af.cdate=yQ;Af.baseCalendar=gQ;Af.calendars.gregorian=_Q});var het=Te(()=>{var xQ=Uh(),Gd=Cp();xQ(Gd.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Gd.local=Gd.regionalOptions[""];xQ(Gd.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});xQ(Gd.baseCalendar.prototype,{UNIX_EPOCH:Gd.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Gd.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw Gd.local.invalidFormat||Gd.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,u=r.calculateWeek||this.local.calculateWeek,l=function(T,L){for(var x=1;E+x1},f=function(T,L,x,C){var M=""+L;if(l(T,C))for(;M.length1},k=function(B,F){var U=v(B,F),G=[2,3,U?4:2,U?4:2,10,11,20]["oyYJ@!".indexOf(B)+1],j=new RegExp("^-?\\d{1,"+G+"}"),H=t.substring(M).match(j);if(!H)throw(Gd.local.missingNumberAt||Gd.regionalOptions[""].missingNumberAt).replace(/\{0\}/,M);return M+=H[0].length,parseInt(H[0],10)},E=this,T=function(){if(typeof s=="function"){v("m");var B=s.call(E,t.substring(M));return M+=B.length,B}return k("m")},L=function(B,F,U,G){for(var j=v(B,G)?U:F,H=0;H-1){h=1,d=p;for(var A=this.daysInMonth(c,h);d>A;A=this.daysInMonth(c,h))h++,d-=A}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,t,r,n,i){r&&typeof r!="object"&&(i=n,n=r,r=null),typeof n!="string"&&(i=n,n="");var a=this,o=function(s){try{return a.parseDate(n,s,i)}catch(c){}s=s.toLowerCase();for(var u=(s.match(/^c/)&&r?r.newDate():null)||a.today(),l=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=l.exec(s);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=l.exec(s);return u};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var det=Te(()=>{var Rx=Cp(),nrr=Uh(),bQ=Rx.instance();function OO(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}OO.prototype=new Rx.baseCalendar;nrr(OO.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(orr);return r?r[0]:""}var n=this._validateYear(e),i=e.month(),a=""+this.toChineseMonth(n,i);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(n,i)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(srr);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(lrr);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),n;if(isNaN(r))t[0]==="\u95F0"&&(n=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var i=t[t.length-1];n=i==="i"||i==="I"}var a=this.toMonthIndex(e,r,n);return a},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var n=this.intercalaryMonth(e),i=r&&t!==n;if(i||t<1||t>12)throw Rx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return n?!r&&t<=n?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),n=r?12:11;if(t<0||t>n)throw Rx.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var n=this._validateYear(e,Rx.local.invalidyear),i=Fx[n-Fx[0]],a=i>>9&4095,o=i>>5&15,s=i&31,u;u=bQ.newDate(a,o,s),u.add(4-(u.dayOfWeek()||7),"d");var l=this.toJD(e,t,r)-u.toJD();return 1+Math.floor(l/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=Dx[e-Dx[0]],n=r>>13,i=n?12:11;if(t>i)throw Rx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,a,r,Rx.local.invalidDate);e=this._validateYear(n.year()),t=n.month(),r=n.day();var i=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=frr(e,a,r,i);return bQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=bQ.fromJD(e),r=urr(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(arr),r=this._validateYear(+t[1]),n=+t[2],i=!!t[3],a=this.toMonthIndex(r,n,i),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var n=e.year(),i=e.month(),a=this.isIntercalaryMonth(n,i),o=this.toChineseMonth(n,i),s=Object.getPrototypeOf(OO.prototype).add.call(this,e,t,r);if(r==="y"){var u=s.year(),l=s.month(),f=this.isIntercalaryMonth(u,o),c=a&&f?this.toMonthIndex(u,o,!0):this.toMonthIndex(u,o,!1);c!==l&&s.month(c)}return s}});var arr=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,orr=/^\d?\d[iI]?/m,srr=/^闰?十?[一二三四五六七八九]?月/m,lrr=/^闰?十?[一二三四五六七八九]?/m;Rx.calendars.chinese=OO;var Dx=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Fx=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function urr(e,t,r,n){var i,a;if(typeof e=="object")i=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=31;if(!u)throw new Error("Solar day outside range 1 - 31");i={year:e,month:t,day:r},a=n||{}}var l=Fx[i.year-Fx[0]],f=i.year<<9|i.month<<5|i.day;a.year=f>=l?i.year:i.year-1,l=Fx[a.year-Fx[0]];var c=l>>9&4095,h=l>>5&15,d=l&31,p,_=new Date(c,h-1,d),b=new Date(i.year,i.month-1,i.day);p=Math.round((b-_)/(24*3600*1e3));var v=Dx[a.year-Dx[0]],k;for(k=0;k<13;k++){var E=v&1<<12-k?30:29;if(p>13;return!T||k=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var u=typeof t=="number"&&t>=1&&t<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=30;if(!l)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,a=n):(f=!!n,a=i||{}),o={year:e,month:t,day:r,isIntercalary:f}}var c;c=o.day-1;var h=Dx[o.year-Dx[0]],d=h>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var _=0;_>9&4095,E=v>>5&15,T=v&31,L=new Date(k,E-1,T+c);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var pet=Te(()=>{var _w=Cp(),crr=Uh();function wQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wQ.prototype=new _w.baseCalendar;crr(wQ.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,_w.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_w.local.invalidYear||_w.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,_w.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,_w.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});_w.calendars.coptic=wQ});var vet=Te(()=>{var b1=Cp(),hrr=Uh();function AQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}AQ.prototype=new b1.baseCalendar;hrr(AQ.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,b1.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return{century:drr[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return e=n.year()+(n.year()<0?1:0),t=n.month(),r=n.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,n)}});var drr={20:"Fruitbat",21:"Anchovy"};b1.calendars.discworld=AQ});var met=Te(()=>{var xw=Cp(),prr=Uh();function TQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}TQ.prototype=new xw.baseCalendar;prr(TQ.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,xw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,xw.local.invalidYear||xw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,xw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,xw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});xw.calendars.ethiopian=TQ});var yet=Te(()=>{var Bx=Cp(),vrr=Uh();function SQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SQ.prototype=new Bx.baseCalendar;vrr(SQ.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Bx.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,qO(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bx.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Bx.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Bx.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&qO(this.daysInYear(e),10)===5?30:t===9&&qO(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,Bx.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,t,r){var n=this._validate(e,t,r,Bx.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=e<=0?e+1:e,a=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});function qO(e,t){return e-t*Math.floor(e/t)}Bx.calendars.hebrew=SQ});var get=Te(()=>{var dC=Cp(),mrr=Uh();function MQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}MQ.prototype=new dC.baseCalendar;mrr(MQ.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,dC.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,dC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,dC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});dC.calendars.islamic=MQ});var _et=Te(()=>{var pC=Cp(),yrr=Uh();function EQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EQ.prototype=new pC.baseCalendar;yrr(EQ.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,pC.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,pC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,pC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),u=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,u)}});pC.calendars.julian=EQ});var bet=Te(()=>{var fm=Cp(),grr=Uh();function CQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CQ.prototype=new fm.baseCalendar;grr(CQ.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,fm.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,fm.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return r+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";t=t*20+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,fm.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,fm.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,fm.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,fm.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,fm.local.invalidDate);return n.day()},weekDay:function(e,t,r){return this._validate(e,t,r,fm.local.invalidDate),!0},extraInfo:function(e,t,r){var n=this._validate(e,t,r,fm.local.invalidDate),i=n.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=kQ(e+8+17*20,365);return[Math.floor(t/20)+1,kQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[xet(e+20,20),xet(e+4,13)]},toJD:function(e,t,r){var n=this._validate(e,t,r,fm.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}});function kQ(e,t){return e-t*Math.floor(e/t)}function xet(e,t){return kQ(e-1,t)+1}fm.calendars.mayan=CQ});var Aet=Te(()=>{var bw=Cp(),_rr=Uh();function LQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LQ.prototype=new bw.baseCalendar;var wet=bw.instance("gregorian");_rr(LQ.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,bw.local.invalidYear||bw.regionalOptions[""].invalidYear);return wet.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,bw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,bw.local.invalidMonth),i=n.year();i<0&&i++;for(var a=n.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}});bw.calendars.nanakshahi=LQ});var Tet=Te(()=>{var ww=Cp(),xrr=Uh();function PQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}PQ.prototype=new ww.baseCalendar;xrr(PQ.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ww.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,n=this.minMonth;n<=12;n++)r+=this.NEPALI_CALENDAR_DATA[e][n];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,ww.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var n=this._validate(e,t,r,ww.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=ww.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var u=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=i.daysInYear(u))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(u,1,1).add(a,"d").toJD()},fromJD:function(e){var t=ww.instance(),r=t.fromJD(e),n=r.year(),i=r.dayOfYear(),a=n+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],u=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>u;)o++,o>12&&(o=1,a++),u+=this.NEPALI_CALENDAR_DATA[a][o];var l=this.NEPALI_CALENDAR_DATA[a][o]-(u-i);return this.newDate(a,o,l)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var eM=Cp(),brr=Uh();function UO(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function NO(e){var t=e-475;e<0&&t++;var r=.242197,n=r*t,i=r*(t+1),a=n-Math.floor(n),o=i-Math.floor(i);return a>o}UO.prototype=new eM.baseCalendar;brr(UO.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,eM.local.invalidYear);return NO(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,eM.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,eM.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=0;if(e>0)for(var a=1;a0?e-1:e)*365+i+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,NO(r)?30:29)&&(r++,r===0&&r++);var n=e-this.toJD(r,1,1)+1,i=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),a=e-this.toJD(r,i,1)+1;return this.newDate(r,i,a)}});eM.calendars.persian=UO;eM.calendars.jalali=UO});var Eet=Te(()=>{var Aw=Cp(),wrr=Uh(),VO=Aw.instance();function zQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zQ.prototype=new Aw.baseCalendar;wrr(zQ.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Aw.local.invalidYear),r=this._t2gYear(t.year());return VO.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Aw.local.invalidYear),i=this._t2gYear(n.year());return VO.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Aw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Aw.local.invalidDate),i=this._t2gYear(n.year());return VO.toJD(i,n.month(),n.day())},fromJD:function(e){var t=VO.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Aw.calendars.taiwan=zQ});var ket=Te(()=>{var Tw=Cp(),Arr=Uh(),GO=Tw.instance();function IQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IQ.prototype=new Tw.baseCalendar;Arr(IQ.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Tw.local.invalidYear),r=this._t2gYear(t.year());return GO.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Tw.local.invalidYear),i=this._t2gYear(n.year());return GO.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Tw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Tw.local.invalidDate),i=this._t2gYear(n.year());return GO.toJD(i,n.month(),n.day())},fromJD:function(e){var t=GO.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Tw.calendars.thai=IQ});var Cet=Te(()=>{var Sw=Cp(),Trr=Uh();function RQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}RQ.prototype=new Sw.baseCalendar;Trr(RQ.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Sw.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Sw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return Ox[i]-Ox[i-1];i++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Sw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+Ox[i-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),o=a+1,s=i-12*a,u=t-Ox[r-1]+1;return this.newDate(o,s,u)},isValid:function(e,t,r){var n=Sw.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,t,r,n){var i=Sw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Sw.calendars.ummalqura=RQ;var Ox=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Pet=Te((jAr,Let)=>{"use strict";Let.exports=Cp();het();det();pet();vet();met();yet();get();_et();bet();Aet();Tet();Met();Eet();ket();Cet()});var Oet=Te((XAr,Bet)=>{"use strict";var Iet=Pet(),vC=ei(),Ret=nf(),Srr=Ret.EPOCHJD,Mrr=Ret.ONEDAY,BQ={valType:"enumerated",values:vC.sortObjectKeys(Iet.calendars),editType:"calc",dflt:"gregorian"},Det=function(e,t,r,n){var i={};return i[r]=BQ,vC.coerce(e,t,i,r,n)},Err=function(e,t,r,n){for(var i=0;i{"use strict";qet.exports=Oet()});var Irr=Te((YAr,Vet)=>{var Uet=vge();Uet.register([y1e(),n_e(),yxe(),Bxe(),Kxe(),jbe(),a2e(),W2e(),xwe(),t3e(),U3e(),Q4e(),Uke(),PLe(),gPe(),ZPe(),yze(),UIe(),oRe(),TRe(),FRe(),KRe(),cDe(),EDe(),eFe(),xFe(),YNe(),$7e(),_Ve(),HVe(),QGe(),pHe(),OHe(),YWe(),fje(),Rje(),VXe(),hZe(),XZe(),vKe(),OKe(),aJe(),PJe(),WJe(),G$e(),uQe(),kQe(),uet(),Net()]);Vet.exports=Uet});return Irr();})(); /*! * The buffer module from node.js, for the browser. * diff --git a/dist/plotly-with-meta.js b/dist/plotly-with-meta.js index 42a86d2d71e..a5f65448f4c 100644 --- a/dist/plotly-with-meta.js +++ b/dist/plotly-with-meta.js @@ -1,5 +1,5 @@ /** -* plotly.js v3.1.1 +* plotly.js v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -69,7 +69,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.1"; + exports.version = "3.1.2"; } }); @@ -14858,9 +14858,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -23005,7 +23005,7 @@ var Plotly = (() => { }, exponentformat: { valType: "enumerated", - values: ["none", "e", "E", "power", "SI", "B"], + values: ["none", "e", "E", "power", "SI", "B", "SI extended"], dflt: "B", editType: "ticks", description: [ @@ -23016,7 +23016,11 @@ var Plotly = (() => { "If *E*, 1E+9.", "If *power*, 1x10^9 (with 9 in a super script).", "If *SI*, 1G.", - "If *B*, 1B." + "If *B*, 1B.", + '*SI* uses prefixes from "femto" f (10^-15) to "tera" T (10^12).', + '*SI extended* covers instead the full SI range from "quecto" q (10^-30) to "quetta" Q (10^30).', + "If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule", + "will automatically be switched to the power notation." ].join(" ") }, minexponent: { @@ -26929,7 +26933,7 @@ var Plotly = (() => { var subtitleEnabled = !!subtitleProp; var subtitlePlaceholder = options.subtitlePlaceholder; var subtitle = (cont.title || {}).subtitle || { text: "", font: {} }; - var subtitleTxt = subtitle.text.trim(); + var subtitleTxt = (subtitle.text || "").trim(); var subtitleIsPlaceholder = false; var subtitleOpacity = 1; var subtitleFont = subtitle.font; @@ -26983,7 +26987,7 @@ var Plotly = (() => { var subtitleEl = null; var subtitleClass = titleClass + "-subtitle"; var subtitleElShouldExist = subtitleTxt || editable; - if (subtitleEnabled && subtitleElShouldExist) { + if (subtitleEnabled) { subtitleEl = group.selectAll("text." + subtitleClass).data(subtitleElShouldExist ? [0] : []); subtitleEl.enter().append("text"); subtitleEl.text(subtitleTxt).attr("class", subtitleClass); @@ -27034,7 +27038,7 @@ var Plotly = (() => { shadow: fontShadow, lineposition: fontLineposition }).attr(attributes).call(svgTextUtils.convertToTspans, gd, adjustSubtitlePosition); - if (subtitleEl2) { + if (subtitleEl2 && !subtitleEl2.empty()) { var titleElMathGroup = group.select("." + titleClass + "-math-group"); var titleElBbox2 = titleEl.node().getBBox(); var titleElMathBbox = titleElMathGroup.node() ? titleElMathGroup.node().getBBox() : void 0; @@ -27155,7 +27159,7 @@ var Plotly = (() => { } } el.classed("js-placeholder", titleIsPlaceholder); - if (subtitleEl) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); + if (subtitleEl && !subtitleEl.empty()) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); return group; } module.exports = { @@ -29474,7 +29478,7 @@ var Plotly = (() => { var rangeexp = Math.floor(Math.log(maxend) / Math.LN10 + 0.01); var minexponent = ax.minexponent === void 0 ? 3 : ax.minexponent; if (Math.abs(rangeexp) > minexponent) { - if (isSIFormat(ax.exponentformat) && !beyondSI(rangeexp)) { + if (isSIFormat(ax.exponentformat) && ax.exponentformat !== "SI extended" && !beyondSI(rangeexp) || isSIFormat(ax.exponentformat) && ax.exponentformat === "SI extended" && !beyondSIExtended(rangeexp)) { ax._tickexponent = 3 * Math.round((rangeexp - 1) / 3); } else ax._tickexponent = rangeexp; } @@ -29698,7 +29702,7 @@ var Plotly = (() => { var p = +parts[1]; var absP = Math.abs(p); var exponentFormat = ax.exponentformat; - if (exponentFormat === "power" || isSIFormat(exponentFormat) && beyondSI(p)) { + if (exponentFormat === "power" || isSIFormat(exponentFormat) && exponentFormat !== "SI extended" && beyondSI(p) || isSIFormat(exponentFormat) && exponentFormat === "SI extended" && beyondSIExtended(p)) { out.text = parts[0]; if (absP > 0) out.text += "x10"; if (out.text === "1x10") out.text = "10"; @@ -29814,12 +29818,20 @@ var Plotly = (() => { ]; } var SIPREFIXES = ["f", "p", "n", "\u03BC", "m", "", "k", "M", "G", "T"]; - function isSIFormat(exponentFormat) { - return exponentFormat === "SI" || exponentFormat === "B"; - } + var SIPREFIXES_EXTENDED = ["q", "r", "y", "z", "a", ...SIPREFIXES, "P", "E", "Z", "Y", "R", "Q"]; + var isSIFormat = (exponentFormat) => ["SI", "SI extended", "B"].includes(exponentFormat); function beyondSI(exponent) { return exponent > 14 || exponent < -15; } + function beyondSIExtended(exponent) { + return exponent > 32 || exponent < -30; + } + function shouldSwitchSIToPowerFormat(exponent, exponentFormat) { + if (!isSIFormat(exponentFormat)) return false; + if (exponentFormat === "SI extended" && beyondSIExtended(exponent)) return true; + if (exponentFormat !== "SI extended" && beyondSI(exponent)) return true; + return false; + } function numFormat(v, ax, fmtoverride, hover) { var isNeg = v < 0; var tickRound = ax._tickround; @@ -29867,7 +29879,7 @@ var Plotly = (() => { v = Lib.numSeparate(v, ax._separators, separatethousands); } if (exponent && exponentFormat !== "hide") { - if (isSIFormat(exponentFormat) && beyondSI(exponent)) exponentFormat = "power"; + if (shouldSwitchSIToPowerFormat(exponent, exponentFormat)) exponentFormat = "power"; var signedExponent; if (exponent < 0) signedExponent = MINUS_SIGN + -exponent; else if (exponentFormat !== "power") signedExponent = "+" + exponent; @@ -29879,7 +29891,7 @@ var Plotly = (() => { } else if (exponentFormat === "B" && exponent === 9) { v += "B"; } else if (isSIFormat(exponentFormat)) { - v += SIPREFIXES[exponent / 3 + 5]; + v += exponentFormat === "SI extended" ? SIPREFIXES_EXTENDED[exponent / 3 + 10] : SIPREFIXES[exponent / 3 + 5]; } } if (isNeg) return MINUS_SIGN + v; @@ -32296,9 +32308,11 @@ var Plotly = (() => { return Lib.coerce(traceIn, traceOut, plotsAttrs, attr, dflt); }; var globalFont = layoutOut.font || {}; - var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { overrideDflt: { - size: Math.round(globalFont.size * 1.1) - } }); + var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { + overrideDflt: { + size: Math.round(globalFont.size * 1.1) + } + }); var legendTraceCount = 0; var legendReallyHasATrace = false; var defaultOrder = "normal"; @@ -32445,7 +32459,7 @@ var Plotly = (() => { for (i = 0; i < legends.length; i++) { var legendId = legends[i]; groupDefaults(legendId, layoutIn, layoutOut, allLegendsData); - if (layoutOut[legendId] && layoutOut[legendId].visible) { + if (layoutOut[legendId]) { layoutOut[legendId]._id = legendId; } layoutOut._legends.push(legendId); @@ -38063,7 +38077,7 @@ var Plotly = (() => { } } function setClipPath(shapePath, gd, shapeOptions) { - var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][1-9]* *domain/g, ""); + var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][0-9]* *domain/g, ""); Drawing.setClipUrl( shapePath, clipAxes ? "clip" + gd._fullLayout._uid + clipAxes : null, @@ -46485,7 +46499,6 @@ var Plotly = (() => { "src/plot_api/helpers.js"(exports) { "use strict"; var isNumeric = require_fast_isnumeric(); - var m4FromQuat = require_fromQuat(); var Registry = require_registry(); var Lib = require_lib(); var Plots = require_plots(); @@ -46494,6 +46507,7 @@ var Plotly = (() => { var cleanId = AxisIds.cleanId; var getFromTrace = AxisIds.getFromTrace; var traceIs = Registry.traceIs; + var AX_LETTERS = ["x", "y", "z"]; exports.clearPromiseQueue = function(gd) { if (Array.isArray(gd._promises) && gd._promises.length > 0) { Lib.log("Clearing previous rejected promises from queue."); @@ -46660,12 +46674,7 @@ var Plotly = (() => { var increasingName = cleanFinanceDir(trace.increasing); var decreasingName = cleanFinanceDir(trace.decreasing); if (increasingName !== false && decreasingName !== false) { - var newName = commonPrefix( - increasingName, - decreasingName, - increasingShowlegend, - decreasingShowlegend - ); + var newName = commonPrefix(increasingName, decreasingName, increasingShowlegend, decreasingShowlegend); if (newName) trace.name = newName; } else if ((increasingName || decreasingName) && !trace.name) { trace.name = increasingName || decreasingName; @@ -46795,12 +46804,11 @@ var Plotly = (() => { } return false; }; - var axLetters = ["x", "y", "z"]; exports.clearAxisTypes = function(gd, traces, layoutUpdate) { for (var i = 0; i < traces.length; i++) { var trace = gd._fullData[i]; for (var j = 0; j < 3; j++) { - var ax = getFromTrace(gd, trace, axLetters[j]); + var ax = getFromTrace(gd, trace, AX_LETTERS[j]); if (ax && ax.type !== "log") { var axAttr = ax._name; var sceneName = ax._id.substr(1); @@ -46816,6 +46824,35 @@ var Plotly = (() => { } } }; + var collectionsAreEqual = (collection1, collection2) => { + const isArrayOrObject = (...vals) => vals.every((v) => Lib.isPlainObject(v)) || vals.every((v) => Array.isArray(v)); + if ([collection1, collection2].every((a) => Array.isArray(a))) { + if (collection1.length !== collection2.length) return false; + for (let i = 0; i < collection1.length; i++) { + const oldVal = collection1[i]; + const newVal = collection2[i]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } else if ([collection1, collection2].every((a) => Lib.isPlainObject(a))) { + if (Object.keys(collection1).length !== Object.keys(collection2).length) return false; + for (const k in collection1) { + if (k.startsWith("_")) continue; + const oldVal = collection1[k]; + const newVal = collection2[k]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } + return false; + }; + exports.collectionsAreEqual = collectionsAreEqual; } }); @@ -46923,21 +46960,28 @@ var Plotly = (() => { } } if (!fullLayout._glcanvas && fullLayout._has("gl")) { - fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data([{ - key: "contextLayer", - context: true, - pick: false - }, { - key: "focusLayer", - context: false, - pick: false - }, { - key: "pickLayer", - context: false, - pick: true - }], function(d) { - return d.key; - }); + fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data( + [ + { + key: "contextLayer", + context: true, + pick: false + }, + { + key: "focusLayer", + context: false, + pick: false + }, + { + key: "pickLayer", + context: false, + pick: true + } + ], + function(d) { + return d.key; + } + ); fullLayout._glcanvas.enter().append("canvas").attr("class", function(d) { return "gl-canvas gl-canvas-" + d.key.replace("Layer", ""); }).style({ @@ -46995,21 +47039,21 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([ - marginPushers, - subroutines.layoutStyles - ], gd); + return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); } function positionAndAutorange() { if (!recalc) { doAutoRangeAndConstraints(); return; } - return Lib.syncOrAsync([ - Registry.getComponentMethod("shapes", "calcAutorange"), - Registry.getComponentMethod("annotations", "calcAutorange"), - doAutoRangeAndConstraints - ], gd); + return Lib.syncOrAsync( + [ + Registry.getComponentMethod("shapes", "calcAutorange"), + Registry.getComponentMethod("annotations", "calcAutorange"), + doAutoRangeAndConstraints + ], + gd + ); } function doAutoRangeAndConstraints() { if (gd._transitioning) return; @@ -47020,28 +47064,19 @@ var Plotly = (() => { function drawAxes() { return Axes.draw(gd, graphWasEmpty ? "" : "redraw"); } - var seq = [ - Plots.previousPromises, - addFrames2, - drawFramework, - marginPushers, - marginPushersAgain - ]; + var seq = [Plots.previousPromises, addFrames2, drawFramework, marginPushers, marginPushersAgain]; if (hasCartesian) seq.push(positionAndAutorange); seq.push(subroutines.layoutStyles); if (hasCartesian) { - seq.push( - drawAxes, - function insideTickLabelsAutorange(gd2) { - var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; - if (insideTickLabelsUpdaterange) { - gd2._fullLayout._insideTickLabelsUpdaterange = void 0; - return relayout(gd2, insideTickLabelsUpdaterange).then(function() { - Axes.saveRangeInitial(gd2, true); - }); - } + seq.push(drawAxes, function insideTickLabelsAutorange(gd2) { + var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; + if (insideTickLabelsUpdaterange) { + gd2._fullLayout._insideTickLabelsUpdaterange = void 0; + return relayout(gd2, insideTickLabelsUpdaterange).then(function() { + Axes.saveRangeInitial(gd2, true); + }); } - ); + }); } seq.push( subroutines.drawData, @@ -47247,7 +47282,7 @@ var Plotly = (() => { } for (i = 0; i < traces.length; i++) { value = traces[i]; - if (typeof value !== "object" || (Array.isArray(value) || value === null)) { + if (typeof value !== "object" || Array.isArray(value) || value === null) { throw new Error("all values in traces array must be non-array objects"); } } @@ -47255,9 +47290,7 @@ var Plotly = (() => { newIndices = [newIndices]; } if (typeof newIndices !== "undefined" && newIndices.length !== traces.length) { - throw new Error( - "if indices is specified, traces.length must equal indices.length" - ); + throw new Error("if indices is specified, traces.length must equal indices.length"); } } function assertExtendTracesArgs(gd, update2, indices, maxPoints) { @@ -47277,7 +47310,9 @@ var Plotly = (() => { throw new Error("attribute " + key + " must be an array of length equal to indices array length"); } if (maxPointsIsObject && (!(key in maxPoints) || !Array.isArray(maxPoints[key]) || maxPoints[key].length !== update2[key].length)) { - throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object"); + throw new Error( + "when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object" + ); } } } @@ -47567,18 +47602,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - restyle, - [gd, specs.undoit, specs.traces], - restyle, - [gd, specs.redoit, specs.traces] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, restyle, [gd, specs.undoit, specs.traces], restyle, [gd, specs.redoit, specs.traces]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(); return plotDone.then(function() { @@ -47745,7 +47770,11 @@ var Plotly = (() => { var topOrBottom = orient === "top" || orient === "bottom"; if (finalPart === "thicknessmode") { var thicknorm = topOrBottom ? gs.h : gs.w; - doextra(prefixDot + "thickness", innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), i); + doextra( + prefixDot + "thickness", + innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), + i + ); } else { var lennorm = topOrBottom ? gs.w : gs.h; doextra(prefixDot + "len", innerContFull.len * (newVal === "fraction" ? 1 / lennorm : lennorm), i); @@ -47768,12 +47797,7 @@ var Plotly = (() => { } } undoit[ai][i] = undefinedToNull(oldVal); - var swapAttrs = [ - "swapxy", - "swapxyaxes", - "orientation", - "orientationaxes" - ]; + var swapAttrs = ["swapxy", "swapxyaxes", "orientation", "orientationaxes"]; if (swapAttrs.indexOf(ai) !== -1) { if (ai === "orientation") { param.set(newVal); @@ -47870,18 +47894,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - relayout, - [gd, specs.undoit], - relayout, - [gd, specs.redoit] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, relayout, [gd, specs.undoit], relayout, [gd, specs.redoit]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -48121,7 +48135,7 @@ var Plotly = (() => { } else { if (ai === "dragmode" && (vi === false && vOld !== false || vi !== false && vOld === false)) { flags.plot = true; - } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && (ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select"))) { + } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select")) { flags.plot = true; } else if (valObject) editTypes.update(flags, valObject); else flags.calc = true; @@ -48208,18 +48222,13 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, update, [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], update, [ gd, - update, - [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], - update, - [gd, restyleSpecs.redoit, relayoutSpecs.redoit, restyleSpecs.traces] - ); + restyleSpecs.redoit, + relayoutSpecs.redoit, + restyleSpecs.traces + ]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -48441,10 +48450,10 @@ var Plotly = (() => { } var configChanged = false; if (config) { - var oldConfig = Lib.extendDeep({}, gd._context); + const oldConfig = Lib.extendDeepAll({}, gd._context); gd._context = void 0; setPlotContext(gd, config); - configChanged = diffConfig(oldConfig, gd._context); + configChanged = !helpers.collectionsAreEqual(oldConfig, gd._context); } if (configChanged) { const eventListeners = gd._ev.eventNames().map((name3) => [name3, gd._ev.listeners(name3)]); @@ -48528,11 +48537,7 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); } @@ -48749,38 +48754,6 @@ var Plotly = (() => { } } } - function diffConfig(oldConfig, newConfig) { - var key; - for (key in oldConfig) { - if (key.charAt(0) === "_") continue; - var oldVal = oldConfig[key]; - var newVal = newConfig[key]; - if (oldVal !== newVal) { - if (Lib.isPlainObject(oldVal) && Lib.isPlainObject(newVal)) { - if (diffConfig(oldVal, newVal)) { - return true; - } - } else if (Array.isArray(oldVal) && Array.isArray(newVal)) { - if (oldVal.length !== newVal.length) { - return true; - } - for (var i = 0; i < oldVal.length; i++) { - if (oldVal[i] !== newVal[i]) { - if (Lib.isPlainObject(oldVal[i]) && Lib.isPlainObject(newVal[i])) { - if (diffConfig(oldVal[i], newVal[i])) { - return true; - } - } else { - return true; - } - } - } - } else { - return true; - } - } - } - } function animate(gd, frameOrGroupNameOrFrameList, animationOpts) { gd = Lib.getGraphDiv(gd); if (!Lib.isPlotDiv(gd)) { @@ -49049,9 +49022,13 @@ var Plotly = (() => { var collisionPresent = _frameHash[name2] || _frameHashLocal[name2]; if (name2 && newName && typeof newName === "number" && collisionPresent && numericNameWarningCount < numericNameWarningCountLimit) { numericNameWarningCount++; - Lib.warn('addFrames: overwriting frame "' + (_frameHash[name2] || _frameHashLocal[name2]).name + '" with a frame whose name of type "number" also equates to "' + name2 + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'); + Lib.warn( + 'addFrames: overwriting frame "' + (_frameHash[name2] || _frameHashLocal[name2]).name + '" with a frame whose name of type "number" also equates to "' + name2 + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.' + ); if (numericNameWarningCount === numericNameWarningCountLimit) { - Lib.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed."); + Lib.warn( + "addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed." + ); } } _frameHashLocal[lookupName] = { name: lookupName }; @@ -49071,7 +49048,9 @@ var Plotly = (() => { for (i = insertions.length - 1; i >= 0; i--) { frame = insertions[i].frame; if (typeof frame.name === "number") { - Lib.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"); + Lib.warn( + "Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings" + ); } if (!frame.name) { while (_frameHash[frame.name = "frame " + gd._transitionData._counter++]) ; @@ -59630,7 +59609,7 @@ var Plotly = (() => { if (axisOpts.side === "bottom") { Titles.draw(gd, axisOpts._id + "title", { propContainer: axisOpts, - propName: axisOpts._name + ".title", + propName: axisOpts._name + ".title.text", placeholder: fullLayout._dfltTitle.x, attributes: { x: axisOpts._offset + axisOpts._length / 2, @@ -61650,7 +61629,7 @@ var Plotly = (() => { function drawTitle(titleClass, titleOpts) { var dfltTitleOpts = { propContainer: ax, - propName: opts._propPrefix + "title", + propName: opts._propPrefix + "title.text", traceIndex: opts._traceIndex, _meta: opts._meta, placeholder: fullLayout._dfltTitle.colorbar, @@ -72502,7 +72481,7 @@ var Plotly = (() => { var bpad = (baxis.showticklabels ? baxis.tickfont.size : 0) + (baxis.ticks === "outside" ? baxis.ticklen : 0) + 3; layers["a-title"] = Titles.draw(gd, "a" + titlesuffix, { propContainer: aaxis, - propName: _this.id + ".aaxis.title", + propName: _this.id + ".aaxis.title.text", placeholder: _(gd, "Click to enter Component A title"), attributes: { x: _this.x0 + _this.w / 2, @@ -72512,7 +72491,7 @@ var Plotly = (() => { }); layers["b-title"] = Titles.draw(gd, "b" + titlesuffix, { propContainer: baxis, - propName: _this.id + ".baxis.title", + propName: _this.id + ".baxis.title.text", placeholder: _(gd, "Click to enter Component B title"), attributes: { x: _this.x0 - bpad, @@ -72522,7 +72501,7 @@ var Plotly = (() => { }); layers["c-title"] = Titles.draw(gd, "c" + titlesuffix, { propContainer: caxis, - propName: _this.id + ".caxis.title", + propName: _this.id + ".caxis.title.text", placeholder: _(gd, "Click to enter Component C title"), attributes: { x: _this.x0 + _this.w + bpad, @@ -256896,7 +256875,7 @@ uniform ${i3} ${a3} u_${s3}; }, exponentformat: { valType: "enumerated", - values: ["none", "e", "E", "power", "SI", "B"], + values: ["none", "e", "E", "power", "SI", "B", "SI extended"], dflt: "B", editType: "calc", description: [ @@ -261753,7 +261732,7 @@ uniform ${i3} ${a3} u_${s3}; var y = cy - radius / 2 * sina + pad * cosa; _this.layers["radial-axis-title"] = Titles.draw(gd, titleClass, { propContainer: radialLayout, - propName: _this.id + ".radialaxis.title", + propName: _this.id + ".radialaxis.title.text", placeholder: _(gd, "Click to enter radial axis title"), attributes: { x, diff --git a/dist/plotly.js b/dist/plotly.js index b8a5b4f7b3e..c850bee38af 100644 --- a/dist/plotly.js +++ b/dist/plotly.js @@ -1,5 +1,5 @@ /** -* plotly.js v3.1.1 +* plotly.js v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -69,7 +69,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.1"; + exports.version = "3.1.2"; } }); @@ -13798,9 +13798,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -21473,7 +21473,7 @@ var Plotly = (() => { }, exponentformat: { valType: "enumerated", - values: ["none", "e", "E", "power", "SI", "B"], + values: ["none", "e", "E", "power", "SI", "B", "SI extended"], dflt: "B", editType: "ticks" }, @@ -25059,7 +25059,7 @@ var Plotly = (() => { var subtitleEnabled = !!subtitleProp; var subtitlePlaceholder = options.subtitlePlaceholder; var subtitle = (cont.title || {}).subtitle || { text: "", font: {} }; - var subtitleTxt = subtitle.text.trim(); + var subtitleTxt = (subtitle.text || "").trim(); var subtitleIsPlaceholder = false; var subtitleOpacity = 1; var subtitleFont = subtitle.font; @@ -25113,7 +25113,7 @@ var Plotly = (() => { var subtitleEl = null; var subtitleClass = titleClass + "-subtitle"; var subtitleElShouldExist = subtitleTxt || editable; - if (subtitleEnabled && subtitleElShouldExist) { + if (subtitleEnabled) { subtitleEl = group.selectAll("text." + subtitleClass).data(subtitleElShouldExist ? [0] : []); subtitleEl.enter().append("text"); subtitleEl.text(subtitleTxt).attr("class", subtitleClass); @@ -25164,7 +25164,7 @@ var Plotly = (() => { shadow: fontShadow, lineposition: fontLineposition }).attr(attributes).call(svgTextUtils.convertToTspans, gd, adjustSubtitlePosition); - if (subtitleEl2) { + if (subtitleEl2 && !subtitleEl2.empty()) { var titleElMathGroup = group.select("." + titleClass + "-math-group"); var titleElBbox2 = titleEl.node().getBBox(); var titleElMathBbox = titleElMathGroup.node() ? titleElMathGroup.node().getBBox() : void 0; @@ -25285,7 +25285,7 @@ var Plotly = (() => { } } el.classed("js-placeholder", titleIsPlaceholder); - if (subtitleEl) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); + if (subtitleEl && !subtitleEl.empty()) subtitleEl.classed("js-placeholder", subtitleIsPlaceholder); return group; } module.exports = { @@ -27604,7 +27604,7 @@ var Plotly = (() => { var rangeexp = Math.floor(Math.log(maxend) / Math.LN10 + 0.01); var minexponent = ax.minexponent === void 0 ? 3 : ax.minexponent; if (Math.abs(rangeexp) > minexponent) { - if (isSIFormat(ax.exponentformat) && !beyondSI(rangeexp)) { + if (isSIFormat(ax.exponentformat) && ax.exponentformat !== "SI extended" && !beyondSI(rangeexp) || isSIFormat(ax.exponentformat) && ax.exponentformat === "SI extended" && !beyondSIExtended(rangeexp)) { ax._tickexponent = 3 * Math.round((rangeexp - 1) / 3); } else ax._tickexponent = rangeexp; } @@ -27828,7 +27828,7 @@ var Plotly = (() => { var p = +parts[1]; var absP = Math.abs(p); var exponentFormat = ax.exponentformat; - if (exponentFormat === "power" || isSIFormat(exponentFormat) && beyondSI(p)) { + if (exponentFormat === "power" || isSIFormat(exponentFormat) && exponentFormat !== "SI extended" && beyondSI(p) || isSIFormat(exponentFormat) && exponentFormat === "SI extended" && beyondSIExtended(p)) { out.text = parts[0]; if (absP > 0) out.text += "x10"; if (out.text === "1x10") out.text = "10"; @@ -27944,12 +27944,20 @@ var Plotly = (() => { ]; } var SIPREFIXES = ["f", "p", "n", "\u03BC", "m", "", "k", "M", "G", "T"]; - function isSIFormat(exponentFormat) { - return exponentFormat === "SI" || exponentFormat === "B"; - } + var SIPREFIXES_EXTENDED = ["q", "r", "y", "z", "a", ...SIPREFIXES, "P", "E", "Z", "Y", "R", "Q"]; + var isSIFormat = (exponentFormat) => ["SI", "SI extended", "B"].includes(exponentFormat); function beyondSI(exponent) { return exponent > 14 || exponent < -15; } + function beyondSIExtended(exponent) { + return exponent > 32 || exponent < -30; + } + function shouldSwitchSIToPowerFormat(exponent, exponentFormat) { + if (!isSIFormat(exponentFormat)) return false; + if (exponentFormat === "SI extended" && beyondSIExtended(exponent)) return true; + if (exponentFormat !== "SI extended" && beyondSI(exponent)) return true; + return false; + } function numFormat(v, ax, fmtoverride, hover) { var isNeg = v < 0; var tickRound = ax._tickround; @@ -27997,7 +28005,7 @@ var Plotly = (() => { v = Lib.numSeparate(v, ax._separators, separatethousands); } if (exponent && exponentFormat !== "hide") { - if (isSIFormat(exponentFormat) && beyondSI(exponent)) exponentFormat = "power"; + if (shouldSwitchSIToPowerFormat(exponent, exponentFormat)) exponentFormat = "power"; var signedExponent; if (exponent < 0) signedExponent = MINUS_SIGN + -exponent; else if (exponentFormat !== "power") signedExponent = "+" + exponent; @@ -28009,7 +28017,7 @@ var Plotly = (() => { } else if (exponentFormat === "B" && exponent === 9) { v += "B"; } else if (isSIFormat(exponentFormat)) { - v += SIPREFIXES[exponent / 3 + 5]; + v += exponentFormat === "SI extended" ? SIPREFIXES_EXTENDED[exponent / 3 + 10] : SIPREFIXES[exponent / 3 + 5]; } } if (isNeg) return MINUS_SIGN + v; @@ -30294,9 +30302,11 @@ var Plotly = (() => { return Lib.coerce(traceIn, traceOut, plotsAttrs, attr, dflt); }; var globalFont = layoutOut.font || {}; - var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { overrideDflt: { - size: Math.round(globalFont.size * 1.1) - } }); + var grouptitlefont = Lib.coerceFont(coerce, "grouptitlefont", globalFont, { + overrideDflt: { + size: Math.round(globalFont.size * 1.1) + } + }); var legendTraceCount = 0; var legendReallyHasATrace = false; var defaultOrder = "normal"; @@ -30443,7 +30453,7 @@ var Plotly = (() => { for (i = 0; i < legends.length; i++) { var legendId = legends[i]; groupDefaults(legendId, layoutIn, layoutOut, allLegendsData); - if (layoutOut[legendId] && layoutOut[legendId].visible) { + if (layoutOut[legendId]) { layoutOut[legendId]._id = legendId; } layoutOut._legends.push(legendId); @@ -36061,7 +36071,7 @@ var Plotly = (() => { } } function setClipPath(shapePath, gd, shapeOptions) { - var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][1-9]* *domain/g, ""); + var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, "").replace(/[xyz][0-9]* *domain/g, ""); Drawing.setClipUrl( shapePath, clipAxes ? "clip" + gd._fullLayout._uid + clipAxes : null, @@ -43906,7 +43916,6 @@ var Plotly = (() => { "src/plot_api/helpers.js"(exports) { "use strict"; var isNumeric = require_fast_isnumeric(); - var m4FromQuat = require_fromQuat(); var Registry = require_registry(); var Lib = require_lib(); var Plots = require_plots(); @@ -43915,6 +43924,7 @@ var Plotly = (() => { var cleanId = AxisIds.cleanId; var getFromTrace = AxisIds.getFromTrace; var traceIs = Registry.traceIs; + var AX_LETTERS = ["x", "y", "z"]; exports.clearPromiseQueue = function(gd) { if (Array.isArray(gd._promises) && gd._promises.length > 0) { Lib.log("Clearing previous rejected promises from queue."); @@ -44081,12 +44091,7 @@ var Plotly = (() => { var increasingName = cleanFinanceDir(trace.increasing); var decreasingName = cleanFinanceDir(trace.decreasing); if (increasingName !== false && decreasingName !== false) { - var newName = commonPrefix( - increasingName, - decreasingName, - increasingShowlegend, - decreasingShowlegend - ); + var newName = commonPrefix(increasingName, decreasingName, increasingShowlegend, decreasingShowlegend); if (newName) trace.name = newName; } else if ((increasingName || decreasingName) && !trace.name) { trace.name = increasingName || decreasingName; @@ -44216,12 +44221,11 @@ var Plotly = (() => { } return false; }; - var axLetters = ["x", "y", "z"]; exports.clearAxisTypes = function(gd, traces, layoutUpdate) { for (var i = 0; i < traces.length; i++) { var trace = gd._fullData[i]; for (var j = 0; j < 3; j++) { - var ax = getFromTrace(gd, trace, axLetters[j]); + var ax = getFromTrace(gd, trace, AX_LETTERS[j]); if (ax && ax.type !== "log") { var axAttr = ax._name; var sceneName = ax._id.substr(1); @@ -44237,6 +44241,35 @@ var Plotly = (() => { } } }; + var collectionsAreEqual = (collection1, collection2) => { + const isArrayOrObject = (...vals) => vals.every((v) => Lib.isPlainObject(v)) || vals.every((v) => Array.isArray(v)); + if ([collection1, collection2].every((a) => Array.isArray(a))) { + if (collection1.length !== collection2.length) return false; + for (let i = 0; i < collection1.length; i++) { + const oldVal = collection1[i]; + const newVal = collection2[i]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } else if ([collection1, collection2].every((a) => Lib.isPlainObject(a))) { + if (Object.keys(collection1).length !== Object.keys(collection2).length) return false; + for (const k in collection1) { + if (k.startsWith("_")) continue; + const oldVal = collection1[k]; + const newVal = collection2[k]; + if (oldVal !== newVal) { + const equal = isArrayOrObject(oldVal, newVal) ? collectionsAreEqual(oldVal, newVal) : false; + if (!equal) return false; + } + } + return true; + } + return false; + }; + exports.collectionsAreEqual = collectionsAreEqual; } }); @@ -44344,21 +44377,28 @@ var Plotly = (() => { } } if (!fullLayout._glcanvas && fullLayout._has("gl")) { - fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data([{ - key: "contextLayer", - context: true, - pick: false - }, { - key: "focusLayer", - context: false, - pick: false - }, { - key: "pickLayer", - context: false, - pick: true - }], function(d) { - return d.key; - }); + fullLayout._glcanvas = fullLayout._glcontainer.selectAll(".gl-canvas").data( + [ + { + key: "contextLayer", + context: true, + pick: false + }, + { + key: "focusLayer", + context: false, + pick: false + }, + { + key: "pickLayer", + context: false, + pick: true + } + ], + function(d) { + return d.key; + } + ); fullLayout._glcanvas.enter().append("canvas").attr("class", function(d) { return "gl-canvas gl-canvas-" + d.key.replace("Layer", ""); }).style({ @@ -44416,21 +44456,21 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([ - marginPushers, - subroutines.layoutStyles - ], gd); + return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); } function positionAndAutorange() { if (!recalc) { doAutoRangeAndConstraints(); return; } - return Lib.syncOrAsync([ - Registry.getComponentMethod("shapes", "calcAutorange"), - Registry.getComponentMethod("annotations", "calcAutorange"), - doAutoRangeAndConstraints - ], gd); + return Lib.syncOrAsync( + [ + Registry.getComponentMethod("shapes", "calcAutorange"), + Registry.getComponentMethod("annotations", "calcAutorange"), + doAutoRangeAndConstraints + ], + gd + ); } function doAutoRangeAndConstraints() { if (gd._transitioning) return; @@ -44441,28 +44481,19 @@ var Plotly = (() => { function drawAxes() { return Axes.draw(gd, graphWasEmpty ? "" : "redraw"); } - var seq = [ - Plots.previousPromises, - addFrames2, - drawFramework, - marginPushers, - marginPushersAgain - ]; + var seq = [Plots.previousPromises, addFrames2, drawFramework, marginPushers, marginPushersAgain]; if (hasCartesian) seq.push(positionAndAutorange); seq.push(subroutines.layoutStyles); if (hasCartesian) { - seq.push( - drawAxes, - function insideTickLabelsAutorange(gd2) { - var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; - if (insideTickLabelsUpdaterange) { - gd2._fullLayout._insideTickLabelsUpdaterange = void 0; - return relayout(gd2, insideTickLabelsUpdaterange).then(function() { - Axes.saveRangeInitial(gd2, true); - }); - } + seq.push(drawAxes, function insideTickLabelsAutorange(gd2) { + var insideTickLabelsUpdaterange = gd2._fullLayout._insideTickLabelsUpdaterange; + if (insideTickLabelsUpdaterange) { + gd2._fullLayout._insideTickLabelsUpdaterange = void 0; + return relayout(gd2, insideTickLabelsUpdaterange).then(function() { + Axes.saveRangeInitial(gd2, true); + }); } - ); + }); } seq.push( subroutines.drawData, @@ -44668,7 +44699,7 @@ var Plotly = (() => { } for (i = 0; i < traces.length; i++) { value = traces[i]; - if (typeof value !== "object" || (Array.isArray(value) || value === null)) { + if (typeof value !== "object" || Array.isArray(value) || value === null) { throw new Error("all values in traces array must be non-array objects"); } } @@ -44676,9 +44707,7 @@ var Plotly = (() => { newIndices = [newIndices]; } if (typeof newIndices !== "undefined" && newIndices.length !== traces.length) { - throw new Error( - "if indices is specified, traces.length must equal indices.length" - ); + throw new Error("if indices is specified, traces.length must equal indices.length"); } } function assertExtendTracesArgs(gd, update2, indices, maxPoints) { @@ -44698,7 +44727,9 @@ var Plotly = (() => { throw new Error("attribute " + key + " must be an array of length equal to indices array length"); } if (maxPointsIsObject && (!(key in maxPoints) || !Array.isArray(maxPoints[key]) || maxPoints[key].length !== update2[key].length)) { - throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object"); + throw new Error( + "when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object" + ); } } } @@ -44988,18 +45019,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - restyle, - [gd, specs.undoit, specs.traces], - restyle, - [gd, specs.redoit, specs.traces] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, restyle, [gd, specs.undoit, specs.traces], restyle, [gd, specs.redoit, specs.traces]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(); return plotDone.then(function() { @@ -45166,7 +45187,11 @@ var Plotly = (() => { var topOrBottom = orient === "top" || orient === "bottom"; if (finalPart === "thicknessmode") { var thicknorm = topOrBottom ? gs.h : gs.w; - doextra(prefixDot + "thickness", innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), i); + doextra( + prefixDot + "thickness", + innerContFull.thickness * (newVal === "fraction" ? 1 / thicknorm : thicknorm), + i + ); } else { var lennorm = topOrBottom ? gs.w : gs.h; doextra(prefixDot + "len", innerContFull.len * (newVal === "fraction" ? 1 / lennorm : lennorm), i); @@ -45189,12 +45214,7 @@ var Plotly = (() => { } } undoit[ai][i] = undefinedToNull(oldVal); - var swapAttrs = [ - "swapxy", - "swapxyaxes", - "orientation", - "orientationaxes" - ]; + var swapAttrs = ["swapxy", "swapxyaxes", "orientation", "orientationaxes"]; if (swapAttrs.indexOf(ai) !== -1) { if (ai === "orientation") { param.set(newVal); @@ -45291,18 +45311,8 @@ var Plotly = (() => { if (flags.colorbars) seq.push(subroutines.doColorBars); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( - gd, - relayout, - [gd, specs.undoit], - relayout, - [gd, specs.redoit] - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, relayout, [gd, specs.undoit], relayout, [gd, specs.redoit]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45542,7 +45552,7 @@ var Plotly = (() => { } else { if (ai === "dragmode" && (vi === false && vOld !== false || vi !== false && vOld === false)) { flags.plot = true; - } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && (ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select"))) { + } else if (fullLayout._has("scatter-like") && fullLayout._has("regl") && ai === "dragmode" && (vi === "lasso" || vi === "select") && !(vOld === "lasso" || vOld === "select")) { flags.plot = true; } else if (valObject) editTypes.update(flags, valObject); else flags.calc = true; @@ -45629,18 +45639,13 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); - Queue.add( + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); + Queue.add(gd, update, [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], update, [ gd, - update, - [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces], - update, - [gd, restyleSpecs.redoit, relayoutSpecs.redoit, restyleSpecs.traces] - ); + restyleSpecs.redoit, + relayoutSpecs.redoit, + restyleSpecs.traces + ]); var plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); return plotDone.then(function() { @@ -45862,10 +45867,10 @@ var Plotly = (() => { } var configChanged = false; if (config) { - var oldConfig = Lib.extendDeep({}, gd._context); + const oldConfig = Lib.extendDeepAll({}, gd._context); gd._context = void 0; setPlotContext(gd, config); - configChanged = diffConfig(oldConfig, gd._context); + configChanged = !helpers.collectionsAreEqual(oldConfig, gd._context); } if (configChanged) { const eventListeners = gd._ev.eventNames().map((name3) => [name3, gd._ev.listeners(name3)]); @@ -45949,11 +45954,7 @@ var Plotly = (() => { if (relayoutFlags.camera) seq.push(subroutines.doCamera); seq.push(emitAfterPlot); } - seq.push( - Plots.rehover, - Plots.redrag, - Plots.reselect - ); + seq.push(Plots.rehover, Plots.redrag, Plots.reselect); plotDone = Lib.syncOrAsync(seq, gd); if (!plotDone || !plotDone.then) plotDone = Promise.resolve(gd); } @@ -46170,38 +46171,6 @@ var Plotly = (() => { } } } - function diffConfig(oldConfig, newConfig) { - var key; - for (key in oldConfig) { - if (key.charAt(0) === "_") continue; - var oldVal = oldConfig[key]; - var newVal = newConfig[key]; - if (oldVal !== newVal) { - if (Lib.isPlainObject(oldVal) && Lib.isPlainObject(newVal)) { - if (diffConfig(oldVal, newVal)) { - return true; - } - } else if (Array.isArray(oldVal) && Array.isArray(newVal)) { - if (oldVal.length !== newVal.length) { - return true; - } - for (var i = 0; i < oldVal.length; i++) { - if (oldVal[i] !== newVal[i]) { - if (Lib.isPlainObject(oldVal[i]) && Lib.isPlainObject(newVal[i])) { - if (diffConfig(oldVal[i], newVal[i])) { - return true; - } - } else { - return true; - } - } - } - } else { - return true; - } - } - } - } function animate(gd, frameOrGroupNameOrFrameList, animationOpts) { gd = Lib.getGraphDiv(gd); if (!Lib.isPlotDiv(gd)) { @@ -46470,9 +46439,13 @@ var Plotly = (() => { var collisionPresent = _frameHash[name2] || _frameHashLocal[name2]; if (name2 && newName && typeof newName === "number" && collisionPresent && numericNameWarningCount < numericNameWarningCountLimit) { numericNameWarningCount++; - Lib.warn('addFrames: overwriting frame "' + (_frameHash[name2] || _frameHashLocal[name2]).name + '" with a frame whose name of type "number" also equates to "' + name2 + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'); + Lib.warn( + 'addFrames: overwriting frame "' + (_frameHash[name2] || _frameHashLocal[name2]).name + '" with a frame whose name of type "number" also equates to "' + name2 + '". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.' + ); if (numericNameWarningCount === numericNameWarningCountLimit) { - Lib.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed."); + Lib.warn( + "addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed." + ); } } _frameHashLocal[lookupName] = { name: lookupName }; @@ -46492,7 +46465,9 @@ var Plotly = (() => { for (i = insertions.length - 1; i >= 0; i--) { frame = insertions[i].frame; if (typeof frame.name === "number") { - Lib.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"); + Lib.warn( + "Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings" + ); } if (!frame.name) { while (_frameHash[frame.name = "frame " + gd._transitionData._counter++]) ; @@ -56531,7 +56506,7 @@ var Plotly = (() => { if (axisOpts.side === "bottom") { Titles.draw(gd, axisOpts._id + "title", { propContainer: axisOpts, - propName: axisOpts._name + ".title", + propName: axisOpts._name + ".title.text", placeholder: fullLayout._dfltTitle.x, attributes: { x: axisOpts._offset + axisOpts._length / 2, @@ -58354,7 +58329,7 @@ var Plotly = (() => { function drawTitle(titleClass, titleOpts) { var dfltTitleOpts = { propContainer: ax, - propName: opts._propPrefix + "title", + propName: opts._propPrefix + "title.text", traceIndex: opts._traceIndex, _meta: opts._meta, placeholder: fullLayout._dfltTitle.colorbar, @@ -68433,7 +68408,7 @@ var Plotly = (() => { var bpad = (baxis.showticklabels ? baxis.tickfont.size : 0) + (baxis.ticks === "outside" ? baxis.ticklen : 0) + 3; layers["a-title"] = Titles.draw(gd, "a" + titlesuffix, { propContainer: aaxis, - propName: _this.id + ".aaxis.title", + propName: _this.id + ".aaxis.title.text", placeholder: _(gd, "Click to enter Component A title"), attributes: { x: _this.x0 + _this.w / 2, @@ -68443,7 +68418,7 @@ var Plotly = (() => { }); layers["b-title"] = Titles.draw(gd, "b" + titlesuffix, { propContainer: baxis, - propName: _this.id + ".baxis.title", + propName: _this.id + ".baxis.title.text", placeholder: _(gd, "Click to enter Component B title"), attributes: { x: _this.x0 - bpad, @@ -68453,7 +68428,7 @@ var Plotly = (() => { }); layers["c-title"] = Titles.draw(gd, "c" + titlesuffix, { propContainer: caxis, - propName: _this.id + ".caxis.title", + propName: _this.id + ".caxis.title.text", placeholder: _(gd, "Click to enter Component C title"), attributes: { x: _this.x0 + _this.w + bpad, @@ -250767,7 +250742,7 @@ uniform ${i3} ${a3} u_${s3}; }, exponentformat: { valType: "enumerated", - values: ["none", "e", "E", "power", "SI", "B"], + values: ["none", "e", "E", "power", "SI", "B", "SI extended"], dflt: "B", editType: "calc" }, @@ -255374,7 +255349,7 @@ uniform ${i3} ${a3} u_${s3}; var y = cy - radius / 2 * sina + pad * cosa; _this.layers["radial-axis-title"] = Titles.draw(gd, titleClass, { propContainer: radialLayout, - propName: _this.id + ".radialaxis.title", + propName: _this.id + ".radialaxis.title.text", placeholder: _(gd, "Click to enter radial axis title"), attributes: { x, diff --git a/dist/plotly.min.js b/dist/plotly.min.js index b2d798bc7d8..dd3faa0a4b7 100644 --- a/dist/plotly.min.js +++ b/dist/plotly.min.js @@ -1,5 +1,5 @@ /** -* plotly.js v3.1.1 +* plotly.js v3.1.2 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,39 +12,39 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var Net=Object.create;var ES=Object.defineProperty,Uet=Object.defineProperties,Vet=Object.getOwnPropertyDescriptor,Get=Object.getOwnPropertyDescriptors,Het=Object.getOwnPropertyNames,nee=Object.getOwnPropertySymbols,jet=Object.getPrototypeOf,oee=Object.prototype.hasOwnProperty,Wet=Object.prototype.propertyIsEnumerable;var aee=(e,t,r)=>t in e?ES(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,see=(e,t)=>{for(var r in t||(t={}))oee.call(t,r)&&aee(e,r,t[r]);if(nee)for(var r of nee(t))Wet.call(t,r)&&aee(e,r,t[r]);return e},lee=(e,t)=>Uet(e,Get(t));var gu=(e,t)=>()=>(e&&(t=e(e=0)),t);var ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),uee=(e,t)=>{for(var r in t)ES(e,r,{get:t[r],enumerable:!0})},cee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Het(t))!oee.call(e,i)&&i!==r&&ES(e,i,{get:()=>t[i],enumerable:!(n=Vet(t,i))||n.enumerable});return e};var Xet=(e,t,r)=>(r=e!=null?Net(jet(e)):{},cee(t||!e||!e.__esModule?ES(r,"default",{value:e,enumerable:!0}):r,e)),ab=e=>cee(ES({},"__esModule",{value:!0}),e);var o6=ye(fee=>{"use strict";fee.version="3.1.1"});var dee=ye((hee,s6)=>{(function(t,r,n){r[t]=r[t]||n(),typeof s6!="undefined"&&s6.exports&&(s6.exports=r[t])})("Promise",typeof window!="undefined"?window:hee,function(){"use strict";var t,r,n,i=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(C,E,A,L){return Object.defineProperty(C,E,{value:A,writable:!0,configurable:L!==!1})}}catch(p){t=function(E,A,L){return E[A]=L,E}}n=function(){var C,E,A;function L(_,k){this.fn=_,this.self=k,this.next=void 0}return{add:function(k,M){A=new L(k,M),E?E.next=A:C=A,E=A,A=void 0},drain:function(){var k=C;for(C=E=r=void 0;k;)k.fn.call(k.self),k=k.next}}}();function o(p,C){n.add(p,C),r||(r=a(n.drain))}function s(p){var C,E=typeof p;return p!=null&&(E=="object"||E=="function")&&(C=p.then),typeof C=="function"?C:!1}function l(){for(var p=0;p0&&o(l,E))}catch(A){f.call(new d(E),A)}}}function f(p){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=p,C.state=2,C.chain.length>0&&o(l,C))}function h(p,C,E,A){for(var L=0;L{(function(){var e={version:"3.8.2"},t=[].slice,r=function(X){return t.call(X)},n=self.document;function i(X){return X&&(X.ownerDocument||X.document||X).documentElement}function a(X){return X&&(X.ownerDocument&&X.ownerDocument.defaultView||X.document&&X||X.defaultView)}if(n)try{r(n.documentElement.childNodes)[0].nodeType}catch(X){r=function(se){for(var Te=se.length,Ne=new Array(Te);Te--;)Ne[Te]=se[Te];return Ne}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(X){var o=this.Element.prototype,s=o.setAttribute,l=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,c=u.setProperty;o.setAttribute=function(se,Te){s.call(this,se,Te+"")},o.setAttributeNS=function(se,Te,Ne){l.call(this,se,Te,Ne+"")},u.setProperty=function(se,Te,Ne){c.call(this,se,Te+"",Ne)}}e.ascending=f;function f(X,se){return Xse?1:X>=se?0:NaN}e.descending=function(X,se){return seX?1:se>=X?0:NaN},e.min=function(X,se){var Te=-1,Ne=X.length,He,Ye;if(arguments.length===1){for(;++Te=Ye){He=Ye;break}for(;++TeYe&&(He=Ye)}else{for(;++Te=Ye){He=Ye;break}for(;++TeYe&&(He=Ye)}return He},e.max=function(X,se){var Te=-1,Ne=X.length,He,Ye;if(arguments.length===1){for(;++Te=Ye){He=Ye;break}for(;++TeHe&&(He=Ye)}else{for(;++Te=Ye){He=Ye;break}for(;++TeHe&&(He=Ye)}return He},e.extent=function(X,se){var Te=-1,Ne=X.length,He,Ye,Ct;if(arguments.length===1){for(;++Te=Ye){He=Ct=Ye;break}for(;++TeYe&&(He=Ye),Ct=Ye){He=Ct=Ye;break}for(;++TeYe&&(He=Ye),Ct1)return Ct/(jt-1)},e.deviation=function(){var X=e.variance.apply(this,arguments);return X&&Math.sqrt(X)};function v(X){return{left:function(se,Te,Ne,He){for(arguments.length<3&&(Ne=0),arguments.length<4&&(He=se.length);Ne>>1;X(se[Ye],Te)<0?Ne=Ye+1:He=Ye}return Ne},right:function(se,Te,Ne,He){for(arguments.length<3&&(Ne=0),arguments.length<4&&(He=se.length);Ne>>1;X(se[Ye],Te)>0?He=Ye:Ne=Ye+1}return Ne}}}var x=v(f);e.bisectLeft=x.left,e.bisect=e.bisectRight=x.right,e.bisector=function(X){return v(X.length===1?function(se,Te){return f(X(se),Te)}:X)},e.shuffle=function(X,se,Te){(Ne=arguments.length)<3&&(Te=X.length,Ne<2&&(se=0));for(var Ne=Te-se,He,Ye;Ne;)Ye=Math.random()*Ne--|0,He=X[Ne+se],X[Ne+se]=X[Ye+se],X[Ye+se]=He;return X},e.permute=function(X,se){for(var Te=se.length,Ne=new Array(Te);Te--;)Ne[Te]=X[se[Te]];return Ne},e.pairs=function(X){for(var se=0,Te=X.length-1,Ne,He=X[0],Ye=new Array(Te<0?0:Te);se=0;)for(Ct=X[se],Te=Ct.length;--Te>=0;)Ye[--He]=Ct[Te];return Ye};var p=Math.abs;e.range=function(X,se,Te){if(arguments.length<3&&(Te=1,arguments.length<2&&(se=X,X=0)),(se-X)/Te===1/0)throw new Error("infinite range");var Ne=[],He=C(p(Te)),Ye=-1,Ct;if(X*=He,se*=He,Te*=He,Te<0)for(;(Ct=X+Te*++Ye)>se;)Ne.push(Ct/He);else for(;(Ct=X+Te*++Ye)=se.length)return He?He.call(X,jt):Ne?jt.sort(Ne):jt;for(var yr=-1,Gr=jt.length,qr=se[gr++],_i,bi,Xr,ni=new A,gi;++yr=se.length)return nt;var gr=[],yr=Te[jt++];return nt.forEach(function(Gr,qr){gr.push({key:Gr,values:Ct(qr,jt)})}),yr?gr.sort(function(Gr,qr){return yr(Gr.key,qr.key)}):gr}return X.map=function(nt,jt){return Ye(jt,nt,0)},X.entries=function(nt){return Ct(Ye(e.map,nt,0),0)},X.key=function(nt){return se.push(nt),X},X.sortKeys=function(nt){return Te[se.length-1]=nt,X},X.sortValues=function(nt){return Ne=nt,X},X.rollup=function(nt){return He=nt,X},X},e.set=function(X){var se=new V;if(X)for(var Te=0,Ne=X.length;Te=0&&(Ne=X.slice(Te+1),X=X.slice(0,Te)),X)return arguments.length<2?this[X].on(Ne):this[X].on(Ne,se);if(arguments.length===2){if(se==null)for(X in this)this.hasOwnProperty(X)&&this[X].on(Ne,null);return this}};function oe(X){var se=[],Te=new A;function Ne(){for(var He=se,Ye=-1,Ct=He.length,nt;++Ye=0&&(Te=X.slice(0,se))!=="xmlns"&&(X=X.slice(se+1)),Ze.hasOwnProperty(Te)?{space:Ze[Te],local:X}:X}},Pe.attr=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node();return X=e.ns.qualify(X),X.local?Te.getAttributeNS(X.space,X.local):Te.getAttribute(X)}for(se in X)this.each(ct(se,X[se]));return this}return this.each(ct(X,se))};function ct(X,se){X=e.ns.qualify(X);function Te(){this.removeAttribute(X)}function Ne(){this.removeAttributeNS(X.space,X.local)}function He(){this.setAttribute(X,se)}function Ye(){this.setAttributeNS(X.space,X.local,se)}function Ct(){var jt=se.apply(this,arguments);jt==null?this.removeAttribute(X):this.setAttribute(X,jt)}function nt(){var jt=se.apply(this,arguments);jt==null?this.removeAttributeNS(X.space,X.local):this.setAttributeNS(X.space,X.local,jt)}return se==null?X.local?Ne:Te:typeof se=="function"?X.local?nt:Ct:X.local?Ye:He}function pt(X){return X.trim().replace(/\s+/g," ")}Pe.classed=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node(),Ne=(X=st(X)).length,He=-1;if(se=Te.classList){for(;++He=0;)(Ye=Te[Ne])&&(He&&He!==Ye.nextSibling&&He.parentNode.insertBefore(Ye,He),He=Ye);return this},Pe.sort=function(X){X=Et.apply(this,arguments);for(var se=-1,Te=this.length;++se=se&&(se=He+1);!(jt=Ct[se])&&++se0&&(X=X.slice(0,He));var Ct=Yt.get(X);Ct&&(X=Ct,Ye=Tr);function nt(){var yr=this[Ne];yr&&(this.removeEventListener(X,yr,yr.$),delete this[Ne])}function jt(){var yr=Ye(se,r(arguments));nt.call(this),this.addEventListener(X,this[Ne]=yr,yr.$=Te),yr._=se}function gr(){var yr=new RegExp("^__on([^.]+)"+e.requote(X)+"$"),Gr;for(var qr in this)if(Gr=qr.match(yr)){var _i=this[qr];this.removeEventListener(Gr[1],_i,_i.$),delete this[qr]}}return He?se?jt:nt:se?j:gr}var Yt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&Yt.forEach(function(X){"on"+X in n&&Yt.remove(X)});function lr(X,se){return function(Te){var Ne=e.event;e.event=Te,se[0]=this.__data__;try{X.apply(this,se)}finally{e.event=Ne}}}function Tr(X,se){var Te=lr(X,se);return function(Ne){var He=this,Ye=Ne.relatedTarget;(!Ye||Ye!==He&&!(Ye.compareDocumentPosition(He)&8))&&Te.call(He,Ne)}}var Rr,ei=0;function Wr(X){var se=".dragsuppress-"+ ++ei,Te="click"+se,Ne=e.select(a(X)).on("touchmove"+se,_e).on("dragstart"+se,_e).on("selectstart"+se,_e);if(Rr==null&&(Rr="onselectstart"in X?!1:H(X.style,"userSelect")),Rr){var He=i(X).style,Ye=He[Rr];He[Rr]="none"}return function(Ct){if(Ne.on(se,null),Rr&&(He[Rr]=Ye),Ct){var nt=function(){Ne.on(Te,null)};Ne.on(Te,function(){_e(),nt()},!0),setTimeout(nt,0)}}}e.mouse=function(X){return dt(X,Me())};var Ur=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function dt(X,se){se.changedTouches&&(se=se.changedTouches[0]);var Te=X.ownerSVGElement||X;if(Te.createSVGPoint){var Ne=Te.createSVGPoint();if(Ur<0){var He=a(X);if(He.scrollX||He.scrollY){Te=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Ye=Te[0][0].getScreenCTM();Ur=!(Ye.f||Ye.e),Te.remove()}}return Ur?(Ne.x=se.pageX,Ne.y=se.pageY):(Ne.x=se.clientX,Ne.y=se.clientY),Ne=Ne.matrixTransform(X.getScreenCTM().inverse()),[Ne.x,Ne.y]}var Ct=X.getBoundingClientRect();return[se.clientX-Ct.left-X.clientLeft,se.clientY-Ct.top-X.clientTop]}e.touch=function(X,se,Te){if(arguments.length<3&&(Te=se,se=Me().changedTouches),se){for(var Ne=0,He=se.length,Ye;Ne0?1:X<0?-1:0}function ir(X,se,Te){return(se[0]-X[0])*(Te[1]-X[1])-(se[1]-X[1])*(Te[0]-X[0])}function pr(X){return X>1?0:X<-1?$e:Math.acos(X)}function oi(X){return X>1?xe:X<-1?-xe:Math.asin(X)}function di(X){return((X=Math.exp(X))-1/X)/2}function Jr(X){return((X=Math.exp(X))+1/X)/2}function fi(X){return((X=Math.exp(2*X))-1)/(X+1)}function Hi(X){return(X=Math.sin(X/2))*X}var Pn=Math.SQRT2,wn=2,pn=4;e.interpolateZoom=function(X,se){var Te=X[0],Ne=X[1],He=X[2],Ye=se[0],Ct=se[1],nt=se[2],jt=Ye-Te,gr=Ct-Ne,yr=jt*jt+gr*gr,Gr,qr;if(yr0&&(Gn=Gn.transition().duration(Ct)),Gn.call(Ai.event)}function Ea(){ni&&ni.domain(Xr.range().map(function(Gn){return(Gn-X.x)/X.k}).map(Xr.invert)),Pi&&Pi.domain(gi.range().map(function(Gn){return(Gn-X.y)/X.k}).map(gi.invert))}function Ia(Gn){nt++||Gn({type:"zoomstart"})}function yo(Gn){Ea(),Gn({type:"zoom",scale:X.k,translate:[X.x,X.y]})}function Da(Gn){--nt||(Gn({type:"zoomend"}),Te=null)}function go(){var Gn=this,Ha=bi.of(Gn,arguments),Fo=0,Uo=e.select(a(Gn)).on(gr,bu).on(yr,vl),Qs=ti(e.mouse(Gn)),Ml=Wr(Gn);fa.call(Gn),Ia(Ha);function bu(){Fo=1,Nn(e.mouse(Gn),Qs),yo(Ha)}function vl(){Uo.on(gr,null).on(yr,null),Ml(Fo),Da(Ha)}}function Rs(){var Gn=this,Ha=bi.of(Gn,arguments),Fo={},Uo=0,Qs,Ml=".zoom-"+e.event.changedTouches[0].identifier,bu="touchmove"+Ml,vl="touchend"+Ml,Sc=[],Ee=e.select(Gn),xt=Wr(Gn);Ir(),Ia(Ha),Ee.on(jt,null).on(qr,Ir);function zt(){var Vr=e.touches(Gn);return Qs=X.k,Vr.forEach(function(mi){mi.identifier in Fo&&(Fo[mi.identifier]=ti(mi))}),Vr}function Ir(){var Vr=e.event.target;e.select(Vr).on(bu,Hr).on(vl,Br),Sc.push(Vr);for(var mi=e.event.changedTouches,Ni=0,Oi=mi.length;Ni1){var Qi=Mi[0],ji=Mi[1],si=Qi[0]-ji[0],Mr=Qi[1]-ji[1];Uo=si*si+Mr*Mr}}function Hr(){var Vr=e.touches(Gn),mi,Ni,Oi,Mi;fa.call(Gn);for(var Hn=0,Qi=Vr.length;Hn1?1:se,Te=Te<0?0:Te>1?1:Te,He=Te<=.5?Te*(1+se):Te+se-Te*se,Ne=2*Te-He;function Ye(nt){return nt>360?nt-=360:nt<0&&(nt+=360),nt<60?Ne+(He-Ne)*nt/60:nt<180?He:nt<240?Ne+(He-Ne)*(240-nt)/60:Ne}function Ct(nt){return Math.round(Ye(nt)*255)}return new Wa(Ct(X+120),Ct(X),Ct(X-120))}e.hcl=ar;function ar(X,se,Te){return this instanceof ar?(this.h=+X,this.c=+se,void(this.l=+Te)):arguments.length<2?X instanceof ar?new ar(X.h,X.c,X.l):X instanceof ri?Mn(X.l,X.a,X.b):Mn((X=jn((X=e.rgb(X)).r,X.g,X.b)).l,X.a,X.b):new ar(X,se,Te)}var Er=ar.prototype=new ua;Er.brighter=function(X){return new ar(this.h,this.c,Math.min(100,this.l+$r*(arguments.length?X:1)))},Er.darker=function(X){return new ar(this.h,this.c,Math.max(0,this.l-$r*(arguments.length?X:1)))},Er.rgb=function(){return Zr(this.h,this.c,this.l).rgb()};function Zr(X,se,Te){return isNaN(X)&&(X=0),isNaN(se)&&(se=0),new ri(Te,Math.cos(X*=Ce)*se,Math.sin(X)*se)}e.lab=ri;function ri(X,se,Te){return this instanceof ri?(this.l=+X,this.a=+se,void(this.b=+Te)):arguments.length<2?X instanceof ri?new ri(X.l,X.a,X.b):X instanceof ar?Zr(X.h,X.c,X.l):jn((X=Wa(X)).r,X.g,X.b):new ri(X,se,Te)}var $r=18,zi=.95047,Ji=1,en=1.08883,cn=ri.prototype=new ua;cn.brighter=function(X){return new ri(Math.min(100,this.l+$r*(arguments.length?X:1)),this.a,this.b)},cn.darker=function(X){return new ri(Math.max(0,this.l-$r*(arguments.length?X:1)),this.a,this.b)},cn.rgb=function(){return yn(this.l,this.a,this.b)};function yn(X,se,Te){var Ne=(X+16)/116,He=Ne+se/500,Ye=Ne-Te/200;return He=Ba(He)*zi,Ne=Ba(Ne)*Ji,Ye=Ba(Ye)*en,new Wa(ma(3.2404542*He-1.5371385*Ne-.4985314*Ye),ma(-.969266*He+1.8760108*Ne+.041556*Ye),ma(.0556434*He-.2040259*Ne+1.0572252*Ye))}function Mn(X,se,Te){return X>0?new ar(Math.atan2(Te,se)*vt,Math.sqrt(se*se+Te*Te),X):new ar(NaN,NaN,X)}function Ba(X){return X>.206893034?X*X*X:(X-4/29)/7.787037}function la(X){return X>.008856?Math.pow(X,1/3):7.787037*X+4/29}function ma(X){return Math.round(255*(X<=.00304?12.92*X:1.055*Math.pow(X,1/2.4)-.055))}e.rgb=Wa;function Wa(X,se,Te){return this instanceof Wa?(this.r=~~X,this.g=~~se,void(this.b=~~Te)):arguments.length<2?X instanceof Wa?new Wa(X.r,X.g,X.b):Ga(""+X,Wa,tr):new Wa(X,se,Te)}function Fa(X){return new Wa(X>>16,X>>8&255,X&255)}function Wo(X){return Fa(X)+""}var da=Wa.prototype=new ua;da.brighter=function(X){X=Math.pow(.7,arguments.length?X:1);var se=this.r,Te=this.g,Ne=this.b,He=30;return!se&&!Te&&!Ne?new Wa(He,He,He):(se&&se>4,Ne=Ne>>4|Ne,He=jt&240,He=He>>4|He,Ye=jt&15,Ye=Ye<<4|Ye):X.length===7&&(Ne=(jt&16711680)>>16,He=(jt&65280)>>8,Ye=jt&255)),se(Ne,He,Ye))}function vo(X,se,Te){var Ne=Math.min(X/=255,se/=255,Te/=255),He=Math.max(X,se,Te),Ye=He-Ne,Ct,nt,jt=(He+Ne)/2;return Ye?(nt=jt<.5?Ye/(He+Ne):Ye/(2-He-Ne),X==He?Ct=(se-Te)/Ye+(se0&&jt<1?0:Ct),new Vt(Ct,nt,jt)}function jn(X,se,Te){X=St(X),se=St(se),Te=St(Te);var Ne=la((.4124564*X+.3575761*se+.1804375*Te)/zi),He=la((.2126729*X+.7151522*se+.072175*Te)/Ji),Ye=la((.0193339*X+.119192*se+.9503041*Te)/en);return ri(116*He-16,500*(Ne-He),200*(He-Ye))}function St(X){return(X/=255)<=.04045?X/12.92:Math.pow((X+.055)/1.055,2.4)}function Cr(X){var se=parseFloat(X);return X.charAt(X.length-1)==="%"?Math.round(se*2.55):se}var Qr=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Qr.forEach(function(X,se){Qr.set(X,Fa(se))});function pi(X){return typeof X=="function"?X:function(){return X}}e.functor=pi,e.xhr=fn(G);function fn(X){return function(se,Te,Ne){return arguments.length===2&&typeof Te=="function"&&(Ne=Te,Te=null),Sn(se,Te,X,Ne)}}function Sn(X,se,Te,Ne){var He={},Ye=e.dispatch("beforesend","progress","load","error"),Ct={},nt=new XMLHttpRequest,jt=null;self.XDomainRequest&&!("withCredentials"in nt)&&/^(http(s)?:)?\/\//.test(X)&&(nt=new XDomainRequest),"onload"in nt?nt.onload=nt.onerror=gr:nt.onreadystatechange=function(){nt.readyState>3&&gr()};function gr(){var yr=nt.status,Gr;if(!yr&&ki(nt)||yr>=200&&yr<300||yr===304){try{Gr=Te.call(He,nt)}catch(qr){Ye.error.call(He,qr);return}Ye.load.call(He,Gr)}else Ye.error.call(He,nt)}return nt.onprogress=function(yr){var Gr=e.event;e.event=yr;try{Ye.progress.call(He,nt)}finally{e.event=Gr}},He.header=function(yr,Gr){return yr=(yr+"").toLowerCase(),arguments.length<2?Ct[yr]:(Gr==null?delete Ct[yr]:Ct[yr]=Gr+"",He)},He.mimeType=function(yr){return arguments.length?(se=yr==null?null:yr+"",He):se},He.responseType=function(yr){return arguments.length?(jt=yr,He):jt},He.response=function(yr){return Te=yr,He},["get","post"].forEach(function(yr){He[yr]=function(){return He.send.apply(He,[yr].concat(r(arguments)))}}),He.send=function(yr,Gr,qr){if(arguments.length===2&&typeof Gr=="function"&&(qr=Gr,Gr=null),nt.open(yr,X,!0),se!=null&&!("accept"in Ct)&&(Ct.accept=se+",*/*"),nt.setRequestHeader)for(var _i in Ct)nt.setRequestHeader(_i,Ct[_i]);return se!=null&&nt.overrideMimeType&&nt.overrideMimeType(se),jt!=null&&(nt.responseType=jt),qr!=null&&He.on("error",qr).on("load",function(bi){qr(null,bi)}),Ye.beforesend.call(He,nt),nt.send(Gr==null?null:Gr),He},He.abort=function(){return nt.abort(),He},e.rebind(He,Ye,"on"),Ne==null?He:He.get(En(Ne))}function En(X){return X.length===1?function(se,Te){X(se==null?Te:null)}:X}function ki(X){var se=X.responseType;return se&&se!=="text"?X.response:X.responseText}e.dsv=function(X,se){var Te=new RegExp('["'+X+` +"use strict";var Plotly=(()=>{var Vet=Object.create;var CS=Object.defineProperty,Get=Object.defineProperties,Het=Object.getOwnPropertyDescriptor,jet=Object.getOwnPropertyDescriptors,Wet=Object.getOwnPropertyNames,nee=Object.getOwnPropertySymbols,Xet=Object.getPrototypeOf,oee=Object.prototype.hasOwnProperty,Zet=Object.prototype.propertyIsEnumerable;var aee=(e,t,r)=>t in e?CS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,see=(e,t)=>{for(var r in t||(t={}))oee.call(t,r)&&aee(e,r,t[r]);if(nee)for(var r of nee(t))Zet.call(t,r)&&aee(e,r,t[r]);return e},lee=(e,t)=>Get(e,jet(t));var gu=(e,t)=>()=>(e&&(t=e(e=0)),t);var ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),uee=(e,t)=>{for(var r in t)CS(e,r,{get:t[r],enumerable:!0})},cee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Wet(t))!oee.call(e,i)&&i!==r&&CS(e,i,{get:()=>t[i],enumerable:!(n=Het(t,i))||n.enumerable});return e};var Yet=(e,t,r)=>(r=e!=null?Vet(Xet(e)):{},cee(t||!e||!e.__esModule?CS(r,"default",{value:e,enumerable:!0}):r,e)),ab=e=>cee(CS({},"__esModule",{value:!0}),e);var s6=ye(fee=>{"use strict";fee.version="3.1.2"});var dee=ye((hee,l6)=>{(function(t,r,n){r[t]=r[t]||n(),typeof l6!="undefined"&&l6.exports&&(l6.exports=r[t])})("Promise",typeof window!="undefined"?window:hee,function(){"use strict";var t,r,n,i=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(C,E,A,L){return Object.defineProperty(C,E,{value:A,writable:!0,configurable:L!==!1})}}catch(p){t=function(E,A,L){return E[A]=L,E}}n=function(){var C,E,A;function L(x,k){this.fn=x,this.self=k,this.next=void 0}return{add:function(k,M){A=new L(k,M),E?E.next=A:C=A,E=A,A=void 0},drain:function(){var k=C;for(C=E=r=void 0;k;)k.fn.call(k.self),k=k.next}}}();function o(p,C){n.add(p,C),r||(r=a(n.drain))}function s(p){var C,E=typeof p;return p!=null&&(E=="object"||E=="function")&&(C=p.then),typeof C=="function"?C:!1}function l(){for(var p=0;p0&&o(l,E))}catch(A){f.call(new d(E),A)}}}function f(p){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=p,C.state=2,C.chain.length>0&&o(l,C))}function h(p,C,E,A){for(var L=0;L{(function(){var e={version:"3.8.2"},t=[].slice,r=function(X){return t.call(X)},n=self.document;function i(X){return X&&(X.ownerDocument||X.document||X).documentElement}function a(X){return X&&(X.ownerDocument&&X.ownerDocument.defaultView||X.document&&X||X.defaultView)}if(n)try{r(n.documentElement.childNodes)[0].nodeType}catch(X){r=function(se){for(var Te=se.length,Ne=new Array(Te);Te--;)Ne[Te]=se[Te];return Ne}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(X){var o=this.Element.prototype,s=o.setAttribute,l=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,c=u.setProperty;o.setAttribute=function(se,Te){s.call(this,se,Te+"")},o.setAttributeNS=function(se,Te,Ne){l.call(this,se,Te,Ne+"")},u.setProperty=function(se,Te,Ne){c.call(this,se,Te+"",Ne)}}e.ascending=f;function f(X,se){return Xse?1:X>=se?0:NaN}e.descending=function(X,se){return seX?1:se>=X?0:NaN},e.min=function(X,se){var Te=-1,Ne=X.length,He,Ye;if(arguments.length===1){for(;++Te=Ye){He=Ye;break}for(;++TeYe&&(He=Ye)}else{for(;++Te=Ye){He=Ye;break}for(;++TeYe&&(He=Ye)}return He},e.max=function(X,se){var Te=-1,Ne=X.length,He,Ye;if(arguments.length===1){for(;++Te=Ye){He=Ye;break}for(;++TeHe&&(He=Ye)}else{for(;++Te=Ye){He=Ye;break}for(;++TeHe&&(He=Ye)}return He},e.extent=function(X,se){var Te=-1,Ne=X.length,He,Ye,Ct;if(arguments.length===1){for(;++Te=Ye){He=Ct=Ye;break}for(;++TeYe&&(He=Ye),Ct=Ye){He=Ct=Ye;break}for(;++TeYe&&(He=Ye),Ct1)return Ct/(jt-1)},e.deviation=function(){var X=e.variance.apply(this,arguments);return X&&Math.sqrt(X)};function v(X){return{left:function(se,Te,Ne,He){for(arguments.length<3&&(Ne=0),arguments.length<4&&(He=se.length);Ne>>1;X(se[Ye],Te)<0?Ne=Ye+1:He=Ye}return Ne},right:function(se,Te,Ne,He){for(arguments.length<3&&(Ne=0),arguments.length<4&&(He=se.length);Ne>>1;X(se[Ye],Te)>0?He=Ye:Ne=Ye+1}return Ne}}}var _=v(f);e.bisectLeft=_.left,e.bisect=e.bisectRight=_.right,e.bisector=function(X){return v(X.length===1?function(se,Te){return f(X(se),Te)}:X)},e.shuffle=function(X,se,Te){(Ne=arguments.length)<3&&(Te=X.length,Ne<2&&(se=0));for(var Ne=Te-se,He,Ye;Ne;)Ye=Math.random()*Ne--|0,He=X[Ne+se],X[Ne+se]=X[Ye+se],X[Ye+se]=He;return X},e.permute=function(X,se){for(var Te=se.length,Ne=new Array(Te);Te--;)Ne[Te]=X[se[Te]];return Ne},e.pairs=function(X){for(var se=0,Te=X.length-1,Ne,He=X[0],Ye=new Array(Te<0?0:Te);se=0;)for(Ct=X[se],Te=Ct.length;--Te>=0;)Ye[--He]=Ct[Te];return Ye};var p=Math.abs;e.range=function(X,se,Te){if(arguments.length<3&&(Te=1,arguments.length<2&&(se=X,X=0)),(se-X)/Te===1/0)throw new Error("infinite range");var Ne=[],He=C(p(Te)),Ye=-1,Ct;if(X*=He,se*=He,Te*=He,Te<0)for(;(Ct=X+Te*++Ye)>se;)Ne.push(Ct/He);else for(;(Ct=X+Te*++Ye)=se.length)return He?He.call(X,jt):Ne?jt.sort(Ne):jt;for(var yr=-1,Gr=jt.length,qr=se[gr++],_i,bi,Xr,ni=new A,gi;++yr=se.length)return nt;var gr=[],yr=Te[jt++];return nt.forEach(function(Gr,qr){gr.push({key:Gr,values:Ct(qr,jt)})}),yr?gr.sort(function(Gr,qr){return yr(Gr.key,qr.key)}):gr}return X.map=function(nt,jt){return Ye(jt,nt,0)},X.entries=function(nt){return Ct(Ye(e.map,nt,0),0)},X.key=function(nt){return se.push(nt),X},X.sortKeys=function(nt){return Te[se.length-1]=nt,X},X.sortValues=function(nt){return Ne=nt,X},X.rollup=function(nt){return He=nt,X},X},e.set=function(X){var se=new V;if(X)for(var Te=0,Ne=X.length;Te=0&&(Ne=X.slice(Te+1),X=X.slice(0,Te)),X)return arguments.length<2?this[X].on(Ne):this[X].on(Ne,se);if(arguments.length===2){if(se==null)for(X in this)this.hasOwnProperty(X)&&this[X].on(Ne,null);return this}};function oe(X){var se=[],Te=new A;function Ne(){for(var He=se,Ye=-1,Ct=He.length,nt;++Ye=0&&(Te=X.slice(0,se))!=="xmlns"&&(X=X.slice(se+1)),Ze.hasOwnProperty(Te)?{space:Ze[Te],local:X}:X}},Pe.attr=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node();return X=e.ns.qualify(X),X.local?Te.getAttributeNS(X.space,X.local):Te.getAttribute(X)}for(se in X)this.each(ct(se,X[se]));return this}return this.each(ct(X,se))};function ct(X,se){X=e.ns.qualify(X);function Te(){this.removeAttribute(X)}function Ne(){this.removeAttributeNS(X.space,X.local)}function He(){this.setAttribute(X,se)}function Ye(){this.setAttributeNS(X.space,X.local,se)}function Ct(){var jt=se.apply(this,arguments);jt==null?this.removeAttribute(X):this.setAttribute(X,jt)}function nt(){var jt=se.apply(this,arguments);jt==null?this.removeAttributeNS(X.space,X.local):this.setAttributeNS(X.space,X.local,jt)}return se==null?X.local?Ne:Te:typeof se=="function"?X.local?nt:Ct:X.local?Ye:He}function pt(X){return X.trim().replace(/\s+/g," ")}Pe.classed=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node(),Ne=(X=st(X)).length,He=-1;if(se=Te.classList){for(;++He=0;)(Ye=Te[Ne])&&(He&&He!==Ye.nextSibling&&He.parentNode.insertBefore(Ye,He),He=Ye);return this},Pe.sort=function(X){X=Et.apply(this,arguments);for(var se=-1,Te=this.length;++se=se&&(se=He+1);!(jt=Ct[se])&&++se0&&(X=X.slice(0,He));var Ct=Yt.get(X);Ct&&(X=Ct,Ye=Tr);function nt(){var yr=this[Ne];yr&&(this.removeEventListener(X,yr,yr.$),delete this[Ne])}function jt(){var yr=Ye(se,r(arguments));nt.call(this),this.addEventListener(X,this[Ne]=yr,yr.$=Te),yr._=se}function gr(){var yr=new RegExp("^__on([^.]+)"+e.requote(X)+"$"),Gr;for(var qr in this)if(Gr=qr.match(yr)){var _i=this[qr];this.removeEventListener(Gr[1],_i,_i.$),delete this[qr]}}return He?se?jt:nt:se?j:gr}var Yt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&Yt.forEach(function(X){"on"+X in n&&Yt.remove(X)});function lr(X,se){return function(Te){var Ne=e.event;e.event=Te,se[0]=this.__data__;try{X.apply(this,se)}finally{e.event=Ne}}}function Tr(X,se){var Te=lr(X,se);return function(Ne){var He=this,Ye=Ne.relatedTarget;(!Ye||Ye!==He&&!(Ye.compareDocumentPosition(He)&8))&&Te.call(He,Ne)}}var Rr,ei=0;function Wr(X){var se=".dragsuppress-"+ ++ei,Te="click"+se,Ne=e.select(a(X)).on("touchmove"+se,_e).on("dragstart"+se,_e).on("selectstart"+se,_e);if(Rr==null&&(Rr="onselectstart"in X?!1:H(X.style,"userSelect")),Rr){var He=i(X).style,Ye=He[Rr];He[Rr]="none"}return function(Ct){if(Ne.on(se,null),Rr&&(He[Rr]=Ye),Ct){var nt=function(){Ne.on(Te,null)};Ne.on(Te,function(){_e(),nt()},!0),setTimeout(nt,0)}}}e.mouse=function(X){return dt(X,Me())};var Ur=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function dt(X,se){se.changedTouches&&(se=se.changedTouches[0]);var Te=X.ownerSVGElement||X;if(Te.createSVGPoint){var Ne=Te.createSVGPoint();if(Ur<0){var He=a(X);if(He.scrollX||He.scrollY){Te=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Ye=Te[0][0].getScreenCTM();Ur=!(Ye.f||Ye.e),Te.remove()}}return Ur?(Ne.x=se.pageX,Ne.y=se.pageY):(Ne.x=se.clientX,Ne.y=se.clientY),Ne=Ne.matrixTransform(X.getScreenCTM().inverse()),[Ne.x,Ne.y]}var Ct=X.getBoundingClientRect();return[se.clientX-Ct.left-X.clientLeft,se.clientY-Ct.top-X.clientTop]}e.touch=function(X,se,Te){if(arguments.length<3&&(Te=se,se=Me().changedTouches),se){for(var Ne=0,He=se.length,Ye;Ne0?1:X<0?-1:0}function ir(X,se,Te){return(se[0]-X[0])*(Te[1]-X[1])-(se[1]-X[1])*(Te[0]-X[0])}function pr(X){return X>1?0:X<-1?$e:Math.acos(X)}function oi(X){return X>1?xe:X<-1?-xe:Math.asin(X)}function di(X){return((X=Math.exp(X))-1/X)/2}function Jr(X){return((X=Math.exp(X))+1/X)/2}function fi(X){return((X=Math.exp(2*X))-1)/(X+1)}function Hi(X){return(X=Math.sin(X/2))*X}var Pn=Math.SQRT2,wn=2,pn=4;e.interpolateZoom=function(X,se){var Te=X[0],Ne=X[1],He=X[2],Ye=se[0],Ct=se[1],nt=se[2],jt=Ye-Te,gr=Ct-Ne,yr=jt*jt+gr*gr,Gr,qr;if(yr0&&(Gn=Gn.transition().duration(Ct)),Gn.call(Ai.event)}function Ea(){ni&&ni.domain(Xr.range().map(function(Gn){return(Gn-X.x)/X.k}).map(Xr.invert)),Pi&&Pi.domain(gi.range().map(function(Gn){return(Gn-X.y)/X.k}).map(gi.invert))}function Ia(Gn){nt++||Gn({type:"zoomstart"})}function yo(Gn){Ea(),Gn({type:"zoom",scale:X.k,translate:[X.x,X.y]})}function Da(Gn){--nt||(Gn({type:"zoomend"}),Te=null)}function go(){var Gn=this,Ha=bi.of(Gn,arguments),Fo=0,Uo=e.select(a(Gn)).on(gr,bu).on(yr,vl),Qs=ti(e.mouse(Gn)),Ml=Wr(Gn);fa.call(Gn),Ia(Ha);function bu(){Fo=1,Nn(e.mouse(Gn),Qs),yo(Ha)}function vl(){Uo.on(gr,null).on(yr,null),Ml(Fo),Da(Ha)}}function Rs(){var Gn=this,Ha=bi.of(Gn,arguments),Fo={},Uo=0,Qs,Ml=".zoom-"+e.event.changedTouches[0].identifier,bu="touchmove"+Ml,vl="touchend"+Ml,Sc=[],Ee=e.select(Gn),xt=Wr(Gn);Ir(),Ia(Ha),Ee.on(jt,null).on(qr,Ir);function zt(){var Vr=e.touches(Gn);return Qs=X.k,Vr.forEach(function(mi){mi.identifier in Fo&&(Fo[mi.identifier]=ti(mi))}),Vr}function Ir(){var Vr=e.event.target;e.select(Vr).on(bu,Hr).on(vl,Br),Sc.push(Vr);for(var mi=e.event.changedTouches,Ni=0,Oi=mi.length;Ni1){var Qi=Mi[0],ji=Mi[1],si=Qi[0]-ji[0],Mr=Qi[1]-ji[1];Uo=si*si+Mr*Mr}}function Hr(){var Vr=e.touches(Gn),mi,Ni,Oi,Mi;fa.call(Gn);for(var Hn=0,Qi=Vr.length;Hn1?1:se,Te=Te<0?0:Te>1?1:Te,He=Te<=.5?Te*(1+se):Te+se-Te*se,Ne=2*Te-He;function Ye(nt){return nt>360?nt-=360:nt<0&&(nt+=360),nt<60?Ne+(He-Ne)*nt/60:nt<180?He:nt<240?Ne+(He-Ne)*(240-nt)/60:Ne}function Ct(nt){return Math.round(Ye(nt)*255)}return new Wa(Ct(X+120),Ct(X),Ct(X-120))}e.hcl=ar;function ar(X,se,Te){return this instanceof ar?(this.h=+X,this.c=+se,void(this.l=+Te)):arguments.length<2?X instanceof ar?new ar(X.h,X.c,X.l):X instanceof ri?Mn(X.l,X.a,X.b):Mn((X=jn((X=e.rgb(X)).r,X.g,X.b)).l,X.a,X.b):new ar(X,se,Te)}var Er=ar.prototype=new ua;Er.brighter=function(X){return new ar(this.h,this.c,Math.min(100,this.l+$r*(arguments.length?X:1)))},Er.darker=function(X){return new ar(this.h,this.c,Math.max(0,this.l-$r*(arguments.length?X:1)))},Er.rgb=function(){return Zr(this.h,this.c,this.l).rgb()};function Zr(X,se,Te){return isNaN(X)&&(X=0),isNaN(se)&&(se=0),new ri(Te,Math.cos(X*=Ce)*se,Math.sin(X)*se)}e.lab=ri;function ri(X,se,Te){return this instanceof ri?(this.l=+X,this.a=+se,void(this.b=+Te)):arguments.length<2?X instanceof ri?new ri(X.l,X.a,X.b):X instanceof ar?Zr(X.h,X.c,X.l):jn((X=Wa(X)).r,X.g,X.b):new ri(X,se,Te)}var $r=18,zi=.95047,Ji=1,en=1.08883,cn=ri.prototype=new ua;cn.brighter=function(X){return new ri(Math.min(100,this.l+$r*(arguments.length?X:1)),this.a,this.b)},cn.darker=function(X){return new ri(Math.max(0,this.l-$r*(arguments.length?X:1)),this.a,this.b)},cn.rgb=function(){return yn(this.l,this.a,this.b)};function yn(X,se,Te){var Ne=(X+16)/116,He=Ne+se/500,Ye=Ne-Te/200;return He=Ba(He)*zi,Ne=Ba(Ne)*Ji,Ye=Ba(Ye)*en,new Wa(ma(3.2404542*He-1.5371385*Ne-.4985314*Ye),ma(-.969266*He+1.8760108*Ne+.041556*Ye),ma(.0556434*He-.2040259*Ne+1.0572252*Ye))}function Mn(X,se,Te){return X>0?new ar(Math.atan2(Te,se)*vt,Math.sqrt(se*se+Te*Te),X):new ar(NaN,NaN,X)}function Ba(X){return X>.206893034?X*X*X:(X-4/29)/7.787037}function la(X){return X>.008856?Math.pow(X,1/3):7.787037*X+4/29}function ma(X){return Math.round(255*(X<=.00304?12.92*X:1.055*Math.pow(X,1/2.4)-.055))}e.rgb=Wa;function Wa(X,se,Te){return this instanceof Wa?(this.r=~~X,this.g=~~se,void(this.b=~~Te)):arguments.length<2?X instanceof Wa?new Wa(X.r,X.g,X.b):Ga(""+X,Wa,tr):new Wa(X,se,Te)}function Fa(X){return new Wa(X>>16,X>>8&255,X&255)}function Wo(X){return Fa(X)+""}var da=Wa.prototype=new ua;da.brighter=function(X){X=Math.pow(.7,arguments.length?X:1);var se=this.r,Te=this.g,Ne=this.b,He=30;return!se&&!Te&&!Ne?new Wa(He,He,He):(se&&se>4,Ne=Ne>>4|Ne,He=jt&240,He=He>>4|He,Ye=jt&15,Ye=Ye<<4|Ye):X.length===7&&(Ne=(jt&16711680)>>16,He=(jt&65280)>>8,Ye=jt&255)),se(Ne,He,Ye))}function vo(X,se,Te){var Ne=Math.min(X/=255,se/=255,Te/=255),He=Math.max(X,se,Te),Ye=He-Ne,Ct,nt,jt=(He+Ne)/2;return Ye?(nt=jt<.5?Ye/(He+Ne):Ye/(2-He-Ne),X==He?Ct=(se-Te)/Ye+(se0&&jt<1?0:Ct),new Vt(Ct,nt,jt)}function jn(X,se,Te){X=St(X),se=St(se),Te=St(Te);var Ne=la((.4124564*X+.3575761*se+.1804375*Te)/zi),He=la((.2126729*X+.7151522*se+.072175*Te)/Ji),Ye=la((.0193339*X+.119192*se+.9503041*Te)/en);return ri(116*He-16,500*(Ne-He),200*(He-Ye))}function St(X){return(X/=255)<=.04045?X/12.92:Math.pow((X+.055)/1.055,2.4)}function Cr(X){var se=parseFloat(X);return X.charAt(X.length-1)==="%"?Math.round(se*2.55):se}var Qr=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Qr.forEach(function(X,se){Qr.set(X,Fa(se))});function pi(X){return typeof X=="function"?X:function(){return X}}e.functor=pi,e.xhr=fn(G);function fn(X){return function(se,Te,Ne){return arguments.length===2&&typeof Te=="function"&&(Ne=Te,Te=null),Sn(se,Te,X,Ne)}}function Sn(X,se,Te,Ne){var He={},Ye=e.dispatch("beforesend","progress","load","error"),Ct={},nt=new XMLHttpRequest,jt=null;self.XDomainRequest&&!("withCredentials"in nt)&&/^(http(s)?:)?\/\//.test(X)&&(nt=new XDomainRequest),"onload"in nt?nt.onload=nt.onerror=gr:nt.onreadystatechange=function(){nt.readyState>3&&gr()};function gr(){var yr=nt.status,Gr;if(!yr&&ki(nt)||yr>=200&&yr<300||yr===304){try{Gr=Te.call(He,nt)}catch(qr){Ye.error.call(He,qr);return}Ye.load.call(He,Gr)}else Ye.error.call(He,nt)}return nt.onprogress=function(yr){var Gr=e.event;e.event=yr;try{Ye.progress.call(He,nt)}finally{e.event=Gr}},He.header=function(yr,Gr){return yr=(yr+"").toLowerCase(),arguments.length<2?Ct[yr]:(Gr==null?delete Ct[yr]:Ct[yr]=Gr+"",He)},He.mimeType=function(yr){return arguments.length?(se=yr==null?null:yr+"",He):se},He.responseType=function(yr){return arguments.length?(jt=yr,He):jt},He.response=function(yr){return Te=yr,He},["get","post"].forEach(function(yr){He[yr]=function(){return He.send.apply(He,[yr].concat(r(arguments)))}}),He.send=function(yr,Gr,qr){if(arguments.length===2&&typeof Gr=="function"&&(qr=Gr,Gr=null),nt.open(yr,X,!0),se!=null&&!("accept"in Ct)&&(Ct.accept=se+",*/*"),nt.setRequestHeader)for(var _i in Ct)nt.setRequestHeader(_i,Ct[_i]);return se!=null&&nt.overrideMimeType&&nt.overrideMimeType(se),jt!=null&&(nt.responseType=jt),qr!=null&&He.on("error",qr).on("load",function(bi){qr(null,bi)}),Ye.beforesend.call(He,nt),nt.send(Gr==null?null:Gr),He},He.abort=function(){return nt.abort(),He},e.rebind(He,Ye,"on"),Ne==null?He:He.get(En(Ne))}function En(X){return X.length===1?function(se,Te){X(se==null?Te:null)}:X}function ki(X){var se=X.responseType;return se&&se!=="text"?X.response:X.responseText}e.dsv=function(X,se){var Te=new RegExp('["'+X+` ]`),Ne=X.charCodeAt(0);function He(gr,yr,Gr){arguments.length<3&&(Gr=yr,yr=null);var qr=Sn(gr,se,yr==null?Ye:Ct(yr),Gr);return qr.row=function(_i){return arguments.length?qr.response((yr=_i)==null?Ye:Ct(_i)):yr},qr}function Ye(gr){return He.parse(gr.responseText)}function Ct(gr){return function(yr){return He.parse(yr.responseText,gr)}}He.parse=function(gr,yr){var Gr;return He.parseRows(gr,function(qr,_i){if(Gr)return Gr(qr,_i-1);var bi=function(Xr){for(var ni={},gi=qr.length,Pi=0;Pi=bi)return qr;if(Pi)return Pi=!1,Gr;var Rn=Xr;if(gr.charCodeAt(Rn)===34){for(var Cn=Rn;Cn++24?(isFinite(se)&&(clearTimeout(Ma),Ma=setTimeout(po,se)),Jn=0):(Jn=1,_o(po))}e.timer.flush=function(){Lo(),Co()};function Lo(){for(var X=Date.now(),se=_n;se;)X>=se.t&&se.c(X-se.t)&&(se.c=null),se=se.n;return X}function Co(){for(var X,se=_n,Te=1/0;se;)se.c?(se.t=0;--nt)Xr.push(He[gr[Gr[nt]][2]]);for(nt=+_i;nt1&&ir(X[Te[Ne-2]],X[Te[Ne-1]],X[He])<=0;)--Ne;Te[Ne++]=He}return Te.slice(0,Ne)}function cl(X,se){return X[0]-se[0]||X[1]-se[1]}e.geom.polygon=function(X){return ie(X,zl),X};var zl=e.geom.polygon.prototype=[];zl.area=function(){for(var X=-1,se=this.length,Te,Ne=this[se-1],He=0;++XJe)nt=nt.L;else if(Ct=se-xo(nt,Te),Ct>Je){if(!nt.R){Ne=nt;break}nt=nt.R}else{Ye>-Je?(Ne=nt.P,He=nt):Ct>-Je?(Ne=nt,He=nt.N):Ne=He=nt;break}var jt=ws(X);if(Os.insert(Ne,jt),!(!Ne&&!He)){if(Ne===He){Oo(Ne),He=ws(Ne.site),Os.insert(jt,He),jt.edge=He.edge=rf(Ne.site,jt.site),aa(Ne),aa(He);return}if(!He){jt.edge=rf(Ne.site,jt.site);return}Oo(Ne),Oo(He);var gr=Ne.site,yr=gr.x,Gr=gr.y,qr=X.x-yr,_i=X.y-Gr,bi=He.site,Xr=bi.x-yr,ni=bi.y-Gr,gi=2*(qr*ni-_i*Xr),Pi=qr*qr+_i*_i,Ai=Xr*Xr+ni*ni,ti={x:(ni*Pi-_i*Ai)/gi+yr,y:(qr*Ai-Xr*Pi)/gi+Gr};ml(He.edge,gr,bi,ti),jt.edge=rf(gr,X,null,ti),He.edge=rf(X,bi,null,ti),aa(Ne),aa(He)}}function Ol(X,se){var Te=X.site,Ne=Te.x,He=Te.y,Ye=He-se;if(!Ye)return Ne;var Ct=X.P;if(!Ct)return-1/0;Te=Ct.site;var nt=Te.x,jt=Te.y,gr=jt-se;if(!gr)return nt;var yr=nt-Ne,Gr=1/Ye-1/gr,qr=yr/gr;return Gr?(-qr+Math.sqrt(qr*qr-2*Gr*(yr*yr/(-2*gr)-jt+gr/2+He-Ye/2)))/Gr+Ne:(Ne+nt)/2}function xo(X,se){var Te=X.N;if(Te)return Ol(Te,se);var Ne=X.site;return Ne.y===se?Ne.x:1/0}function Yl(X){this.site=X,this.edges=[]}Yl.prototype.prepare=function(){for(var X=this.edges,se=X.length,Te;se--;)Te=X[se].edge,(!Te.b||!Te.a)&&X.splice(se,1);return X.sort(Hl),X.length};function Us(X){for(var se=X[0][0],Te=X[1][0],Ne=X[0][1],He=X[1][1],Ye,Ct,nt,jt,gr=Js,yr=gr.length,Gr,qr,_i,bi,Xr,ni;yr--;)if(Gr=gr[yr],!(!Gr||!Gr.prepare()))for(_i=Gr.edges,bi=_i.length,qr=0;qrJe||p(jt-Ct)>Je)&&(_i.splice(qr,0,new Zc(Uf(Gr.site,ni,p(nt-se)Je?{x:se,y:p(Ye-se)Je?{x:p(Ct-He)Je?{x:Te,y:p(Ye-Te)Je?{x:p(Ct-Ne)=-je)){var qr=jt*jt+gr*gr,_i=yr*yr+ni*ni,bi=(ni*qr-gr*_i)/Gr,Xr=(jt*_i-yr*qr)/Gr,ni=Xr+nt,gi=Su.pop()||new ac;gi.arc=X,gi.site=He,gi.x=bi+Ct,gi.y=ni+Math.sqrt(bi*bi+Xr*Xr),gi.cy=ni,X.circle=gi;for(var Pi=null,Ai=Zl._;Ai;)if(gi.y0)){if(Xr/=_i,_i<0){if(Xr0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}if(Xr=Te-nt,!(!_i&&Xr<0)){if(Xr/=_i,_i<0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}else if(_i>0){if(Xr0)){if(Xr/=bi,bi<0){if(Xr0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}if(Xr=Ne-jt,!(!bi&&Xr<0)){if(Xr/=bi,bi<0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}else if(bi>0){if(Xr0&&(He.a={x:nt+Gr*_i,y:jt+Gr*bi}),qr<1&&(He.b={x:nt+qr*_i,y:jt+qr*bi}),He}}}}}}function ql(X){for(var se=fl,Te=qo(X[0][0],X[0][1],X[1][0],X[1][1]),Ne=se.length,He;Ne--;)He=se[Ne],(!Pc(He,X)||!Te(He)||p(He.a.x-He.b.x)=Ye)return;if(yr>qr){if(!Ne)Ne={x:bi,y:Ct};else if(Ne.y>=nt)return;Te={x:bi,y:nt}}else{if(!Ne)Ne={x:bi,y:nt};else if(Ne.y1)if(yr>qr){if(!Ne)Ne={x:(Ct-gi)/ni,y:Ct};else if(Ne.y>=nt)return;Te={x:(nt-gi)/ni,y:nt}}else{if(!Ne)Ne={x:(nt-gi)/ni,y:nt};else if(Ne.y=Ye)return;Te={x:Ye,y:ni*Ye+gi}}else{if(!Ne)Ne={x:Ye,y:ni*Ye+gi};else if(Ne.x=yr&&gi.x<=qr&&gi.y>=Gr&&gi.y<=_i?[[yr,_i],[qr,_i],[qr,Gr],[yr,Gr]]:[];Pi.point=jt[Xr]}),gr}function nt(jt){return jt.map(function(gr,yr){return{x:Math.round(Ne(gr,yr)/Je)*Je,y:Math.round(He(gr,yr)/Je)*Je,i:yr}})}return Ct.links=function(jt){return sc(nt(jt)).edges.filter(function(gr){return gr.l&&gr.r}).map(function(gr){return{source:jt[gr.l.i],target:jt[gr.r.i]}})},Ct.triangles=function(jt){var gr=[];return sc(nt(jt)).cells.forEach(function(yr,Gr){for(var qr=yr.site,_i=yr.edges.sort(Hl),bi=-1,Xr=_i.length,ni,gi,Pi=_i[Xr-1].edge,Ai=Pi.l===qr?Pi.r:Pi.l;++biAi&&(Ai=yr.x),yr.y>ti&&(ti=yr.y),_i.push(yr.x),bi.push(yr.y);else for(Xr=0;XrAi&&(Ai=Rn),Cn>ti&&(ti=Cn),_i.push(Rn),bi.push(Cn)}var Nn=Ai-gi,ia=ti-Pi;Nn>ia?ti=Pi+Nn:Ai=gi+ia;function Ea(Da,go,Rs,Es,Zs,Gn,Ha,Fo){if(!(isNaN(Rs)||isNaN(Es)))if(Da.leaf){var Uo=Da.x,Qs=Da.y;if(Uo!=null)if(p(Uo-Rs)+p(Qs-Es)<.01)Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo);else{var Ml=Da.point;Da.x=Da.y=Da.point=null,Ia(Da,Ml,Uo,Qs,Zs,Gn,Ha,Fo),Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo)}else Da.x=Rs,Da.y=Es,Da.point=go}else Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo)}function Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo){var Uo=(Zs+Ha)*.5,Qs=(Gn+Fo)*.5,Ml=Rs>=Uo,bu=Es>=Qs,vl=bu<<1|Ml;Da.leaf=!1,Da=Da.nodes[vl]||(Da.nodes[vl]=Jl()),Ml?Zs=Uo:Ha=Uo,bu?Gn=Qs:Fo=Qs,Ea(Da,go,Rs,Es,Zs,Gn,Ha,Fo)}var yo=Jl();if(yo.add=function(Da){Ea(yo,Da,+Gr(Da,++Xr),+qr(Da,Xr),gi,Pi,Ai,ti)},yo.visit=function(Da){hl(Da,yo,gi,Pi,Ai,ti)},yo.find=function(Da){return lc(yo,Da[0],Da[1],gi,Pi,Ai,ti)},Xr=-1,se==null){for(;++XrYe||qr>Ct||_i=Rn,ia=Te>=Cn,Ea=ia<<1|Nn,Ia=Ea+4;EaTe&&(Ye=se.slice(Te,Ye),nt[Ct]?nt[Ct]+=Ye:nt[++Ct]=Ye),(Ne=Ne[0])===(He=He[0])?nt[Ct]?nt[Ct]+=He:nt[++Ct]=He:(nt[++Ct]=null,jt.push({i:Ct,x:js(Ne,He)})),Te=uc.lastIndex;return Te=0&&!(Ne=e.interpolators[Te](X,se)););return Ne}e.interpolators=[function(X,se){var Te=typeof se;return(Te==="string"?Qr.has(se.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(se)?Fu:Go:se instanceof ua?Fu:Array.isArray(se)?Gu:Te==="object"&&isNaN(se)?Cs:js)(X,se)}],e.interpolateArray=Gu;function Gu(X,se){var Te=[],Ne=[],He=X.length,Ye=se.length,Ct=Math.min(X.length,se.length),nt;for(nt=0;nt=0?X.slice(0,se):X,Ne=se>=0?X.slice(se+1):"in";return Te=ad.get(Te)||Bs,Ne=Po.get(Ne)||G,od(Ne(Te.apply(null,t.call(arguments,1))))};function od(X){return function(se){return se<=0?0:se>=1?1:X(se)}}function Yo(X){return function(se){return 1-X(1-se)}}function Pa(X){return function(se){return .5*(se<.5?X(2*se):2-X(2-2*se))}}function af(X){return X*X}function Hu(X){return X*X*X}function wl(X){if(X<=0)return 0;if(X>=1)return 1;var se=X*X,Te=se*X;return 4*(X<.5?Te:3*(X-se)+Te-.75)}function Gf(X){return function(se){return Math.pow(se,X)}}function Ic(X){return 1-Math.cos(X*xe)}function mf(X){return Math.pow(2,10*(X-1))}function Bl(X){return 1-Math.sqrt(1-X*X)}function _h(X,se){var Te;return arguments.length<2&&(se=.45),arguments.length?Te=se/wt*Math.asin(1/X):(X=1,Te=se/4),function(Ne){return 1+X*Math.pow(2,-10*Ne)*Math.sin((Ne-Te)*wt/se)}}function Qf(X){return X||(X=1.70158),function(se){return se*se*((X+1)*se-X)}}function yf(X){return X<1/2.75?7.5625*X*X:X<2/2.75?7.5625*(X-=1.5/2.75)*X+.75:X<2.5/2.75?7.5625*(X-=2.25/2.75)*X+.9375:7.5625*(X-=2.625/2.75)*X+.984375}e.interpolateHcl=Yc;function Yc(X,se){X=e.hcl(X),se=e.hcl(se);var Te=X.h,Ne=X.c,He=X.l,Ye=se.h-Te,Ct=se.c-Ne,nt=se.l-He;return isNaN(Ct)&&(Ct=0,Ne=isNaN(Ne)?se.c:Ne),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(jt){return Zr(Te+Ye*jt,Ne+Ct*jt,He+nt*jt)+""}}e.interpolateHsl=eh;function eh(X,se){X=e.hsl(X),se=e.hsl(se);var Te=X.h,Ne=X.s,He=X.l,Ye=se.h-Te,Ct=se.s-Ne,nt=se.l-He;return isNaN(Ct)&&(Ct=0,Ne=isNaN(Ne)?se.s:Ne),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(jt){return tr(Te+Ye*jt,Ne+Ct*jt,He+nt*jt)+""}}e.interpolateLab=th;function th(X,se){X=e.lab(X),se=e.lab(se);var Te=X.l,Ne=X.a,He=X.b,Ye=se.l-Te,Ct=se.a-Ne,nt=se.b-He;return function(jt){return yn(Te+Ye*jt,Ne+Ct*jt,He+nt*jt)+""}}e.interpolateRound=ju;function ju(X,se){return se-=X,function(Te){return Math.round(X+se*Te)}}e.transform=function(X){var se=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(Te){if(Te!=null){se.setAttribute("transform",Te);var Ne=se.transform.baseVal.consolidate()}return new Hf(Ne?Ne.matrix:Kc)})(X)};function Hf(X){var se=[X.a,X.b],Te=[X.c,X.d],Ne=of(se),He=cc(se,Te),Ye=of(Nl(Te,se,-He))||0;se[0]*Te[1]180?se+=360:se-X>180&&(X+=360),Ne.push({i:Te.push(Rc(Te)+"rotate(",null,")")-2,x:js(X,se)})):se&&Te.push(Rc(Te)+"rotate("+se+")")}function Uh(X,se,Te,Ne){X!==se?Ne.push({i:Te.push(Rc(Te)+"skewX(",null,")")-2,x:js(X,se)}):se&&Te.push(Rc(Te)+"skewX("+se+")")}function rh(X,se,Te,Ne){if(X[0]!==se[0]||X[1]!==se[1]){var He=Te.push(Rc(Te)+"scale(",null,",",null,")");Ne.push({i:He-4,x:js(X[0],se[0])},{i:He-2,x:js(X[1],se[1])})}else(se[0]!==1||se[1]!==1)&&Te.push(Rc(Te)+"scale("+se+")")}function sf(X,se){var Te=[],Ne=[];return X=e.transform(X),se=e.transform(se),ms(X.translate,se.translate,Te,Ne),jf(X.rotate,se.rotate,Te,Ne),Uh(X.skew,se.skew,Te,Ne),rh(X.scale,se.scale,Te,Ne),X=se=null,function(He){for(var Ye=-1,Ct=Ne.length,nt;++Ye0?Ye=ti:(Te.c=null,Te.t=NaN,Te=null,se.end({type:"end",alpha:Ye=0})):ti>0&&(se.start({type:"start",alpha:Ye=ti}),Te=No(X.tick)),X):Ye},X.start=function(){var ti,Rn=_i.length,Cn=bi.length,Nn=Ne[0],ia=Ne[1],Ea,Ia;for(ti=0;ti=0;)Ye.push(yr=gr[jt]),yr.parent=nt,yr.depth=nt.depth+1;Te&&(nt.value=0),nt.children=gr}else Te&&(nt.value=+Te.call(Ne,nt,nt.depth)||0),delete nt.children;return wc(He,function(Gr){var qr,_i;X&&(qr=Gr.children)&&qr.sort(X),Te&&(_i=Gr.parent)&&(_i.value+=Gr.value)}),Ct}return Ne.sort=function(He){return arguments.length?(X=He,Ne):X},Ne.children=function(He){return arguments.length?(se=He,Ne):se},Ne.value=function(He){return arguments.length?(Te=He,Ne):Te},Ne.revalue=function(He){return Te&&(Fc(He,function(Ye){Ye.children&&(Ye.value=0)}),wc(He,function(Ye){var Ct;Ye.children||(Ye.value=+Te.call(Ne,Ye,Ye.depth)||0),(Ct=Ye.parent)&&(Ct.value+=Ye.value)})),He},Ne};function zu(X,se){return e.rebind(X,se,"sort","children","value"),X.nodes=X,X.links=Ou,X}function Fc(X,se){for(var Te=[X];(X=Te.pop())!=null;)if(se(X),(He=X.children)&&(Ne=He.length))for(var Ne,He;--Ne>=0;)Te.push(He[Ne])}function wc(X,se){for(var Te=[X],Ne=[];(X=Te.pop())!=null;)if(Ne.push(X),(Ct=X.children)&&(Ye=Ct.length))for(var He=-1,Ye,Ct;++HeHe&&(He=nt),Ne.push(nt)}for(Ct=0;CtNe&&(Te=se,Ne=He);return Te}function Vs(X){return X.reduce(bf,0)}function bf(X,se){return X+se[1]}e.layout.histogram=function(){var X=!0,se=Number,Te=If,Ne=zc;function He(Ye,qr){for(var nt=[],jt=Ye.map(se,this),gr=Te.call(this,jt,qr),yr=Ne.call(this,gr,jt,qr),Gr,qr=-1,_i=jt.length,bi=yr.length-1,Xr=X?1:1/_i,ni;++qr0)for(qr=-1;++qr<_i;)ni=jt[qr],ni>=gr[0]&&ni<=gr[1]&&(Gr=nt[e.bisect(yr,ni,1,bi)-1],Gr.y+=Xr,Gr.push(Ye[qr]));return nt}return He.value=function(Ye){return arguments.length?(se=Ye,He):se},He.range=function(Ye){return arguments.length?(Te=pi(Ye),He):Te},He.bins=function(Ye){return arguments.length?(Ne=typeof Ye=="number"?function(Ct){return Wu(Ct,Ye)}:pi(Ye),He):Ne},He.frequency=function(Ye){return arguments.length?(X=!!Ye,He):X},He};function zc(X,se){return Wu(X,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Wu(X,se){for(var Te=-1,Ne=+X[0],He=(X[1]-Ne)/se,Ye=[];++Te<=se;)Ye[Te]=He*Te+Ne;return Ye}function If(X){return[e.min(X),e.max(X)]}e.layout.pack=function(){var X=e.layout.hierarchy().sort(Xu),se=0,Te=[1,1],Ne;function He(Ye,Ct){var nt=X.call(this,Ye,Ct),jt=nt[0],gr=Te[0],yr=Te[1],Gr=Ne==null?Math.sqrt:typeof Ne=="function"?Ne:function(){return Ne};if(jt.x=jt.y=0,wc(jt,function(_i){_i.r=+Gr(_i.value)}),wc(jt,ah),se){var qr=se*(Ne?1:Math.max(2*jt.r/gr,2*jt.r/yr))/2;wc(jt,function(_i){_i.r+=qr}),wc(jt,ah),wc(jt,function(_i){_i.r-=qr})}return Tc(jt,gr/2,yr/2,Ne?1:1/Math.max(2*jt.r/gr,2*jt.r/yr)),nt}return He.size=function(Ye){return arguments.length?(Te=Ye,He):Te},He.radius=function(Ye){return arguments.length?(Ne=Ye==null||typeof Ye=="function"?Ye:+Ye,He):Ne},He.padding=function(Ye){return arguments.length?(se=+Ye,He):se},zu(He,X)};function Xu(X,se){return X.value-se.value}function uf(X,se){var Te=X._pack_next;X._pack_next=se,se._pack_prev=X,se._pack_next=Te,Te._pack_prev=se}function Xf(X,se){X._pack_next=se,se._pack_prev=X}function Wl(X,se){var Te=se.x-X.x,Ne=se.y-X.y,He=X.r+se.r;return .999*He*He>Te*Te+Ne*Ne}function ah(X){if(!(se=X.children)||!(qr=se.length))return;var se,Te=1/0,Ne=-1/0,He=1/0,Ye=-1/0,Ct,nt,jt,gr,yr,Gr,qr;function _i(ti){Te=Math.min(ti.x-ti.r,Te),Ne=Math.max(ti.x+ti.r,Ne),He=Math.min(ti.y-ti.r,He),Ye=Math.max(ti.y+ti.r,Ye)}if(se.forEach(Zu),Ct=se[0],Ct.x=-Ct.r,Ct.y=0,_i(Ct),qr>1&&(nt=se[1],nt.x=nt.r,nt.y=0,_i(nt),qr>2))for(jt=se[2],Tl(Ct,nt,jt),_i(jt),uf(Ct,jt),Ct._pack_prev=jt,uf(jt,nt),nt=Ct._pack_next,gr=3;grni.x&&(ni=Rn),Rn.depth>gi.depth&&(gi=Rn)});var Pi=se(Xr,ni)/2-Xr.x,Ai=Te[0]/(ni.x+se(ni,Xr)/2+Pi),ti=Te[1]/(gi.depth||1);Fc(_i,function(Rn){Rn.x=(Rn.x+Pi)*Ai,Rn.y=Rn.depth*ti})}return qr}function Ye(yr){for(var Gr={A:null,children:[yr]},qr=[Gr],_i;(_i=qr.pop())!=null;)for(var bi=_i.children,Xr,ni=0,gi=bi.length;ni0&&(fc(At(Xr,yr,qr),yr,Rn),gi+=Rn,Pi+=Rn),Ai+=Xr.m,gi+=_i.m,ti+=ni.m,Pi+=bi.m;Xr&&!cf(bi)&&(bi.t=Xr,bi.m+=Ai-Pi),_i&&!qc(ni)&&(ni.t=_i,ni.m+=gi-ti,qr=yr)}return qr}function gr(yr){yr.x*=Te[0],yr.y=yr.depth*Te[1]}return He.separation=function(yr){return arguments.length?(se=yr,He):se},He.size=function(yr){return arguments.length?(Ne=(Te=yr)==null?gr:null,He):Ne?null:Te},He.nodeSize=function(yr){return arguments.length?(Ne=(Te=yr)==null?null:gr,He):Ne?Te:null},zu(He,X)};function vu(X,se){return X.parent==se.parent?1:2}function qc(X){var se=X.children;return se.length?se[0]:X.t}function cf(X){var se=X.children,Te;return(Te=se.length)?se[Te-1]:X.t}function fc(X,se,Te){var Ne=Te/(se.i-X.i);se.c-=Ne,se.s+=Te,X.c+=Ne,se.z+=Te,se.m+=Te}function Bc(X){for(var se=0,Te=0,Ne=X.children,He=Ne.length,Ye;--He>=0;)Ye=Ne[He],Ye.z+=se,Ye.m+=se,se+=Ye.s+(Te+=Ye.c)}function At(X,se,Te){return X.a.parent===se.parent?X.a:Te}e.layout.cluster=function(){var X=e.layout.hierarchy().sort(null).value(null),se=vu,Te=[1,1],Ne=!1;function He(Ye,Ct){var nt=X.call(this,Ye,Ct),jt=nt[0],gr,yr=0;wc(jt,function(Xr){var ni=Xr.children;ni&&ni.length?(Xr.x=kr(ni),Xr.y=Xt(ni)):(Xr.x=gr?yr+=se(Xr,gr):0,Xr.y=0,gr=Xr)});var Gr=Ar(jt),qr=Kr(jt),_i=Gr.x-se(Gr,qr)/2,bi=qr.x+se(qr,Gr)/2;return wc(jt,Ne?function(Xr){Xr.x=(Xr.x-jt.x)*Te[0],Xr.y=(jt.y-Xr.y)*Te[1]}:function(Xr){Xr.x=(Xr.x-_i)/(bi-_i)*Te[0],Xr.y=(1-(jt.y?Xr.y/jt.y:1))*Te[1]}),nt}return He.separation=function(Ye){return arguments.length?(se=Ye,He):se},He.size=function(Ye){return arguments.length?(Ne=(Te=Ye)==null,He):Ne?null:Te},He.nodeSize=function(Ye){return arguments.length?(Ne=(Te=Ye)!=null,He):Ne?Te:null},zu(He,X)};function Xt(X){return 1+e.max(X,function(se){return se.y})}function kr(X){return X.reduce(function(se,Te){return se+Te.x},0)/X.length}function Ar(X){var se=X.children;return se&&se.length?Ar(se[0]):X}function Kr(X){var se=X.children,Te;return se&&(Te=se.length)?Kr(se[Te-1]):X}e.layout.treemap=function(){var X=e.layout.hierarchy(),se=Math.round,Te=[1,1],Ne=null,He=Ei,Ye=!1,Ct,nt="squarify",jt=.5*(1+Math.sqrt(5));function gr(Xr,ni){for(var gi=-1,Pi=Xr.length,Ai,ti;++gi0;)Pi.push(ti=Ai[ia-1]),Pi.area+=ti.area,nt!=="squarify"||(Cn=qr(Pi,Nn))<=Rn?(Ai.pop(),Rn=Cn):(Pi.area-=Pi.pop().area,_i(Pi,Nn,gi,!1),Nn=Math.min(gi.dx,gi.dy),Pi.length=Pi.area=0,Rn=1/0);Pi.length&&(_i(Pi,Nn,gi,!0),Pi.length=Pi.area=0),ni.forEach(yr)}}function Gr(Xr){var ni=Xr.children;if(ni&&ni.length){var gi=He(Xr),Pi=ni.slice(),Ai,ti=[];for(gr(Pi,gi.dx*gi.dy/Xr.value),ti.area=0;Ai=Pi.pop();)ti.push(Ai),ti.area+=Ai.area,Ai.z!=null&&(_i(ti,Ai.z?gi.dx:gi.dy,gi,!Pi.length),ti.length=ti.area=0);ni.forEach(Gr)}}function qr(Xr,ni){for(var gi=Xr.area,Pi,Ai=0,ti=1/0,Rn=-1,Cn=Xr.length;++RnAi&&(Ai=Pi));return gi*=gi,ni*=ni,gi?Math.max(ni*Ai*jt/gi,gi/(ni*ti*jt)):1/0}function _i(Xr,ni,gi,Pi){var Ai=-1,ti=Xr.length,Rn=gi.x,Cn=gi.y,Nn=ni?se(Xr.area/ni):0,ia;if(ni==gi.dx){for((Pi||Nn>gi.dy)&&(Nn=gi.dy);++Aigi.dx)&&(Nn=gi.dx);++Ai1);return X+se*Ne*Math.sqrt(-2*Math.log(Ye)/Ye)}},logNormal:function(){var X=e.random.normal.apply(e,arguments);return function(){return Math.exp(X())}},bates:function(X){var se=e.random.irwinHall(X);return function(){return se()/X}},irwinHall:function(X){return function(){for(var se=0,Te=0;Te2?Di:Bn,gr=Ne?Mu:xh;return He=jt(X,se,gr,Te),Ye=jt(se,X,gr,bl),nt}function nt(jt){return He(jt)}return nt.invert=function(jt){return Ye(jt)},nt.domain=function(jt){return arguments.length?(X=jt.map(Number),Ct()):X},nt.range=function(jt){return arguments.length?(se=jt,Ct()):se},nt.rangeRound=function(jt){return nt.range(jt).interpolate(ju)},nt.clamp=function(jt){return arguments.length?(Ne=jt,Ct()):Ne},nt.interpolate=function(jt){return arguments.length?(Te=jt,Ct()):Te},nt.ticks=function(jt){return Na(X,jt)},nt.tickFormat=function(jt,gr){return d3_scale_linearTickFormat(X,jt,gr)},nt.nice=function(jt){return Ra(X,jt),Ct()},nt.copy=function(){return $n(X,se,Te,Ne)},Ct()}function ka(X,se){return e.rebind(X,se,"range","rangeRound","interpolate","clamp")}function Ra(X,se){return Zi(X,$i(La(X,se)[2])),Zi(X,$i(La(X,se)[2])),X}function La(X,se){se==null&&(se=10);var Te=hn(X),Ne=Te[1]-Te[0],He=Math.pow(10,Math.floor(Math.log(Ne/se)/Math.LN10)),Ye=se/Ne*He;return Ye<=.15?He*=10:Ye<=.35?He*=5:Ye<=.75&&(He*=2),Te[0]=Math.ceil(Te[0]/He)*He,Te[1]=Math.floor(Te[1]/He)*He+He*.5,Te[2]=He,Te}function Na(X,se){return e.range.apply(e,La(X,se))}var Yn={s:1,g:1,p:1,r:1,e:1};function zn(X){return-Math.floor(Math.log(X)/Math.LN10+.01)}function Ka(X,se){var Te=zn(se[2]);return X in Yn?Math.abs(Te-zn(Math.max(p(se[0]),p(se[1]))))+ +(X!=="e"):Te-(X==="%")*2}e.scale.log=function(){return bo(e.scale.linear().domain([0,1]),10,!0,[1,10])};function bo(X,se,Te,Ne){function He(nt){return(Te?Math.log(nt<0?0:nt):-Math.log(nt>0?0:-nt))/Math.log(se)}function Ye(nt){return Te?Math.pow(se,nt):-Math.pow(se,-nt)}function Ct(nt){return X(He(nt))}return Ct.invert=function(nt){return Ye(X.invert(nt))},Ct.domain=function(nt){return arguments.length?(Te=nt[0]>=0,X.domain((Ne=nt.map(Number)).map(He)),Ct):Ne},Ct.base=function(nt){return arguments.length?(se=+nt,X.domain(Ne.map(He)),Ct):se},Ct.nice=function(){var nt=Zi(Ne.map(He),Te?Math:Xo);return X.domain(nt),Ne=nt.map(Ye),Ct},Ct.ticks=function(){var nt=hn(Ne),jt=[],gr=nt[0],yr=nt[1],Gr=Math.floor(He(gr)),qr=Math.ceil(He(yr)),_i=se%1?2:se;if(isFinite(qr-Gr)){if(Te){for(;Gr0;bi--)jt.push(Ye(Gr)*bi);for(Gr=0;jt[Gr]yr;qr--);jt=jt.slice(Gr,qr)}return jt},Ct.copy=function(){return bo(X.copy(),se,Te,Ne)},ka(Ct,X)}var Xo={floor:function(X){return-Math.ceil(-X)},ceil:function(X){return-Math.floor(-X)}};e.scale.pow=function(){return Ms(e.scale.linear(),1,[0,1])};function Ms(X,se,Te){var Ne=os(se),He=os(1/se);function Ye(Ct){return X(Ne(Ct))}return Ye.invert=function(Ct){return He(X.invert(Ct))},Ye.domain=function(Ct){return arguments.length?(X.domain((Te=Ct.map(Number)).map(Ne)),Ye):Te},Ye.ticks=function(Ct){return Na(Te,Ct)},Ye.tickFormat=function(Ct,nt){return d3_scale_linearTickFormat(Te,Ct,nt)},Ye.nice=function(Ct){return Ye.domain(Ra(Te,Ct))},Ye.exponent=function(Ct){return arguments.length?(Ne=os(se=Ct),He=os(1/se),X.domain(Te.map(Ne)),Ye):se},Ye.copy=function(){return Ms(X.copy(),se,Te)},ka(Ye,X)}function os(X){return function(se){return se<0?-Math.pow(-se,X):Math.pow(se,X)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Ts([],{t:"range",a:[[]]})};function Ts(X,se){var Te,Ne,He;function Ye(nt){return Ne[((Te.get(nt)||(se.t==="range"?Te.set(nt,X.push(nt)):NaN))-1)%Ne.length]}function Ct(nt,jt){return e.range(X.length).map(function(gr){return nt+jt*gr})}return Ye.domain=function(nt){if(!arguments.length)return X;X=[],Te=new A;for(var jt=-1,gr=nt.length,yr;++jt0?Te[Ye-1]:X[0],Yeqr?0:1;if(yr=Ie)return jt(yr,bi)+(gr?jt(gr,1-bi):"")+"Z";var Xr,ni,gi,Pi,Ai=0,ti=0,Rn,Cn,Nn,ia,Ea,Ia,yo,Da,go=[];if((Pi=(+Ct.apply(this,arguments)||0)/2)&&(gi=Ne===ku?Math.sqrt(gr*gr+yr*yr):+Ne.apply(this,arguments),bi||(ti*=-1),yr&&(ti=oi(gi/yr*Math.sin(Pi))),gr&&(Ai=oi(gi/gr*Math.sin(Pi)))),yr){Rn=yr*Math.cos(Gr+ti),Cn=yr*Math.sin(Gr+ti),Nn=yr*Math.cos(qr-ti),ia=yr*Math.sin(qr-ti);var Rs=Math.abs(qr-Gr-2*ti)<=$e?0:1;if(ti&&Ac(Rn,Cn,Nn,ia)===bi^Rs){var Es=(Gr+qr)/2;Rn=yr*Math.cos(Es),Cn=yr*Math.sin(Es),Nn=ia=null}}else Rn=Cn=0;if(gr){Ea=gr*Math.cos(qr-Ai),Ia=gr*Math.sin(qr-Ai),yo=gr*Math.cos(Gr+Ai),Da=gr*Math.sin(Gr+Ai);var Zs=Math.abs(Gr-qr+2*Ai)<=$e?0:1;if(Ai&&Ac(Ea,Ia,yo,Da)===1-bi^Zs){var Gn=(Gr+qr)/2;Ea=gr*Math.cos(Gn),Ia=gr*Math.sin(Gn),yo=Da=null}}else Ea=Ia=0;if(_i>Je&&(Xr=Math.min(Math.abs(yr-gr)/2,+Te.apply(this,arguments)))>.001){ni=gr0?0:1}function Ua(X,se,Te,Ne,He){var Ye=X[0]-se[0],Ct=X[1]-se[1],nt=(He?Ne:-Ne)/Math.sqrt(Ye*Ye+Ct*Ct),jt=nt*Ct,gr=-nt*Ye,yr=X[0]+jt,Gr=X[1]+gr,qr=se[0]+jt,_i=se[1]+gr,bi=(yr+qr)/2,Xr=(Gr+_i)/2,ni=qr-yr,gi=_i-Gr,Pi=ni*ni+gi*gi,Ai=Te-Ne,ti=yr*_i-qr*Gr,Rn=(gi<0?-1:1)*Math.sqrt(Math.max(0,Ai*Ai*Pi-ti*ti)),Cn=(ti*gi-ni*Rn)/Pi,Nn=(-ti*ni-gi*Rn)/Pi,ia=(ti*gi+ni*Rn)/Pi,Ea=(-ti*ni+gi*Rn)/Pi,Ia=Cn-bi,yo=Nn-Xr,Da=ia-bi,go=Ea-Xr;return Ia*Ia+yo*yo>Da*Da+go*go&&(Cn=ia,Nn=Ea),[[Cn-jt,Nn-gr],[Cn*Te/Ai,Nn*Te/Ai]]}function oo(){return!0}function Vc(X){var se=Fs,Te=zs,Ne=oo,He=Ku,Ye=He.key,Ct=.7;function nt(jt){var gr=[],yr=[],Gr=-1,qr=jt.length,_i,bi=pi(se),Xr=pi(Te);function ni(){gr.push("M",He(X(yr),Ct))}for(;++Gr1?X.join("L"):X+"Z"}function ue(X){return X.join("L")+"Z"}function w(X){for(var se=0,Te=X.length,Ne=X[0],He=[Ne[0],",",Ne[1]];++se1&&He.push("H",Ne[0]),He.join("")}function B(X){for(var se=0,Te=X.length,Ne=X[0],He=[Ne[0],",",Ne[1]];++se1){nt=se[1],Ye=X[jt],jt++,Ne+="C"+(He[0]+Ct[0])+","+(He[1]+Ct[1])+","+(Ye[0]-nt[0])+","+(Ye[1]-nt[1])+","+Ye[0]+","+Ye[1];for(var gr=2;gr9&&(Ye=Te*3/Math.sqrt(Ye),Ct[nt]=Ye*Ne,Ct[nt+1]=Ye*He));for(nt=-1;++nt<=jt;)Ye=(X[Math.min(jt,nt+1)][0]-X[Math.max(0,nt-1)][0])/(6*(1+Ct[nt]*Ct[nt])),se.push([Ye||0,Ct[nt]*Ye||0]);return se}function Dt(X){return X.length<3?Ku(X):X[0]+Xe(X,it(X))}e.svg.line.radial=function(){var X=Vc(Ht);return X.radius=X.x,delete X.x,X.angle=X.y,delete X.y,X};function Ht(X){for(var se,Te=-1,Ne=X.length,He,Ye;++Te$e)+",1 "+Gr}function gr(yr,Gr,qr,_i){return"Q 0,0 "+_i}return Ye.radius=function(yr){return arguments.length?(Te=pi(yr),Ye):Te},Ye.source=function(yr){return arguments.length?(X=pi(yr),Ye):X},Ye.target=function(yr){return arguments.length?(se=pi(yr),Ye):se},Ye.startAngle=function(yr){return arguments.length?(Ne=pi(yr),Ye):Ne},Ye.endAngle=function(yr){return arguments.length?(He=pi(yr),Ye):He},Ye};function Or(X){return X.radius}e.svg.diagonal=function(){var X=dr,se=Sr,Te=jr;function Ne(He,Ye){var Ct=X.call(this,He,Ye),nt=se.call(this,He,Ye),jt=(Ct.y+nt.y)/2,gr=[Ct,{x:Ct.x,y:jt},{x:nt.x,y:jt},nt];return gr=gr.map(Te),"M"+gr[0]+"C"+gr[1]+" "+gr[2]+" "+gr[3]}return Ne.source=function(He){return arguments.length?(X=pi(He),Ne):X},Ne.target=function(He){return arguments.length?(se=pi(He),Ne):se},Ne.projection=function(He){return arguments.length?(Te=He,Ne):Te},Ne};function jr(X){return[X.x,X.y]}e.svg.diagonal.radial=function(){var X=e.svg.diagonal(),se=jr,Te=X.projection;return X.projection=function(Ne){return arguments.length?Te(ii(se=Ne)):se},X};function ii(X){return function(){var se=X.apply(this,arguments),Te=se[0],Ne=se[1]-xe;return[Te*Math.cos(Ne),Te*Math.sin(Ne)]}}e.svg.symbol=function(){var X=un,se=Li;function Te(Ne,He){return(In.get(X.call(this,Ne,He))||sn)(se.call(this,Ne,He))}return Te.type=function(Ne){return arguments.length?(X=pi(Ne),Te):X},Te.size=function(Ne){return arguments.length?(se=pi(Ne),Te):se},Te};function Li(){return 64}function un(){return"circle"}function sn(X){var se=Math.sqrt(X/$e);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var In=e.map({circle:sn,cross:function(X){var se=Math.sqrt(X/5)/2;return"M"+-3*se+","+-se+"H"+-se+"V"+-3*se+"H"+se+"V"+-se+"H"+3*se+"V"+se+"H"+se+"V"+3*se+"H"+-se+"V"+se+"H"+-3*se+"Z"},diamond:function(X){var se=Math.sqrt(X/(2*Aa)),Te=se*Aa;return"M0,"+-se+"L"+Te+",0 0,"+se+" "+-Te+",0Z"},square:function(X){var se=Math.sqrt(X)/2;return"M"+-se+","+-se+"L"+se+","+-se+" "+se+","+se+" "+-se+","+se+"Z"},"triangle-down":function(X){var se=Math.sqrt(X/Kn),Te=se*Kn/2;return"M0,"+Te+"L"+se+","+-Te+" "+-se+","+-Te+"Z"},"triangle-up":function(X){var se=Math.sqrt(X/Kn),Te=se*Kn/2;return"M0,"+-Te+"L"+se+","+Te+" "+-se+","+Te+"Z"}});e.svg.symbolTypes=In.keys();var Kn=Math.sqrt(3),Aa=Math.tan(30*Ce);Pe.transition=function(X){for(var se=Bo||++mo,Te=To(X),Ne=[],He,Ye,Ct=Is||{time:Date.now(),ease:wl,delay:0,duration:250},nt=-1,jt=this.length;++nt0;)Gr[--Pi].call(X,gi);if(ni>=1)return Ct.event&&Ct.event.end.call(X,X.__data__,se),--Ye.count?delete Ye[Ne]:delete X[Te],1}Ct||(nt=He.time,jt=No(qr,0,nt),Ct=Ye[Ne]={tween:new A,time:nt,timer:jt,delay:He.delay,duration:He.duration,ease:He.ease,index:se},He=null,++Ye.count)}e.svg.axis=function(){var X=e.scale.linear(),se=Ul,Te=6,Ne=6,He=3,Ye=[10],Ct=null,nt;function jt(gr){gr.each(function(){var yr=e.select(this),Gr=this.__chart__||X,qr=this.__chart__=X.copy(),_i=Ct==null?qr.ticks?qr.ticks.apply(qr,Ye):qr.domain():Ct,bi=nt==null?qr.tickFormat?qr.tickFormat.apply(qr,Ye):G:nt,Xr=yr.selectAll(".tick").data(_i,qr),ni=Xr.enter().insert("g",".domain").attr("class","tick").style("opacity",Je),gi=e.transition(Xr.exit()).style("opacity",Je).remove(),Pi=e.transition(Xr.order()).style("opacity",1),Ai=Math.max(Te,0)+He,ti,Rn=Tn(qr),Cn=yr.selectAll(".domain").data([0]),Nn=(Cn.enter().append("path").attr("class","domain"),e.transition(Cn));ni.append("line"),ni.append("text");var ia=ni.select("line"),Ea=Pi.select("line"),Ia=Xr.select("text").text(bi),yo=ni.select("text"),Da=Pi.select("text"),go=se==="top"||se==="left"?-1:1,Rs,Es,Zs,Gn;if(se==="bottom"||se==="top"?(ti=au,Rs="x",Zs="y",Es="x2",Gn="y2",Ia.attr("dy",go<0?"0em":".71em").style("text-anchor","middle"),Nn.attr("d","M"+Rn[0]+","+go*Ne+"V0H"+Rn[1]+"V"+go*Ne)):(ti=$s,Rs="y",Zs="x",Es="y2",Gn="x2",Ia.attr("dy",".32em").style("text-anchor",go<0?"end":"start"),Nn.attr("d","M"+go*Ne+","+Rn[0]+"H0V"+Rn[1]+"H"+go*Ne)),ia.attr(Gn,go*Te),yo.attr(Zs,go*Ai),Ea.attr(Es,0).attr(Gn,go*Te),Da.attr(Rs,0).attr(Zs,go*Ai),qr.rangeBand){var Ha=qr,Fo=Ha.rangeBand()/2;Gr=qr=function(Uo){return Ha(Uo)+Fo}}else Gr.rangeBand?Gr=qr:gi.call(ti,qr,Gr);ni.call(ti,Gr,qr),Pi.call(ti,qr,qr)})}return jt.scale=function(gr){return arguments.length?(X=gr,jt):X},jt.orient=function(gr){return arguments.length?(se=gr in Lu?gr+"":Ul,jt):se},jt.ticks=function(){return arguments.length?(Ye=r(arguments),jt):Ye},jt.tickValues=function(gr){return arguments.length?(Ct=gr,jt):Ct},jt.tickFormat=function(gr){return arguments.length?(nt=gr,jt):nt},jt.tickSize=function(gr){var yr=arguments.length;return yr?(Te=+gr,Ne=+arguments[yr-1],jt):Te},jt.innerTickSize=function(gr){return arguments.length?(Te=+gr,jt):Te},jt.outerTickSize=function(gr){return arguments.length?(Ne=+gr,jt):Ne},jt.tickPadding=function(gr){return arguments.length?(He=+gr,jt):He},jt.tickSubdivide=function(){return arguments.length&&jt},jt};var Ul="bottom",Lu={top:1,right:1,bottom:1,left:1};function au(X,se,Te){X.attr("transform",function(Ne){var He=se(Ne);return"translate("+(isFinite(He)?He:Te(Ne))+",0)"})}function $s(X,se,Te){X.attr("transform",function(Ne){var He=se(Ne);return"translate(0,"+(isFinite(He)?He:Te(Ne))+")"})}e.svg.brush=function(){var X=ke(yr,"brushstart","brush","brushend"),se=null,Te=null,Ne=[0,0],He=[0,0],Ye,Ct,nt=!0,jt=!0,gr=dc[0];function yr(Xr){Xr.each(function(){var ni=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",bi).on("touchstart.brush",bi),gi=ni.selectAll(".background").data([0]);gi.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ni.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Pi=ni.selectAll(".resize").data(gr,G);Pi.exit().remove(),Pi.enter().append("g").attr("class",function(Cn){return"resize "+Cn}).style("cursor",function(Cn){return Ql[Cn]}).append("rect").attr("x",function(Cn){return/[ew]$/.test(Cn)?-3:null}).attr("y",function(Cn){return/^[ns]/.test(Cn)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Pi.style("display",yr.empty()?"none":null);var Ai=e.transition(ni),ti=e.transition(gi),Rn;se&&(Rn=Tn(se),ti.attr("x",Rn[0]).attr("width",Rn[1]-Rn[0]),qr(Ai)),Te&&(Rn=Tn(Te),ti.attr("y",Rn[0]).attr("height",Rn[1]-Rn[0]),_i(Ai)),Gr(Ai)})}yr.event=function(Xr){Xr.each(function(){var ni=X.of(this,arguments),gi={x:Ne,y:He,i:Ye,j:Ct},Pi=this.__chart__||gi;this.__chart__=gi,Bo?e.select(this).transition().each("start.brush",function(){Ye=Pi.i,Ct=Pi.j,Ne=Pi.x,He=Pi.y,ni({type:"brushstart"})}).tween("brush:brush",function(){var Ai=Gu(Ne,gi.x),ti=Gu(He,gi.y);return Ye=Ct=null,function(Rn){Ne=gi.x=Ai(Rn),He=gi.y=ti(Rn),ni({type:"brush",mode:"resize"})}}).each("end.brush",function(){Ye=gi.i,Ct=gi.j,ni({type:"brush",mode:"resize"}),ni({type:"brushend"})}):(ni({type:"brushstart"}),ni({type:"brush",mode:"resize"}),ni({type:"brushend"}))})};function Gr(Xr){Xr.selectAll(".resize").attr("transform",function(ni){return"translate("+Ne[+/e$/.test(ni)]+","+He[+/^s/.test(ni)]+")"})}function qr(Xr){Xr.select(".extent").attr("x",Ne[0]),Xr.selectAll(".extent,.n>rect,.s>rect").attr("width",Ne[1]-Ne[0])}function _i(Xr){Xr.select(".extent").attr("y",He[0]),Xr.selectAll(".extent,.e>rect,.w>rect").attr("height",He[1]-He[0])}function bi(){var Xr=this,ni=e.select(e.event.target),gi=X.of(Xr,arguments),Pi=e.select(Xr),Ai=ni.datum(),ti=!/^(n|s)$/.test(Ai)&&se,Rn=!/^(e|w)$/.test(Ai)&&Te,Cn=ni.classed("extent"),Nn=Wr(Xr),ia,Ea=e.mouse(Xr),Ia,yo=e.select(a(Xr)).on("keydown.brush",Rs).on("keyup.brush",Es);if(e.event.changedTouches?yo.on("touchmove.brush",Zs).on("touchend.brush",Ha):yo.on("mousemove.brush",Zs).on("mouseup.brush",Ha),Pi.interrupt().selectAll("*").interrupt(),Cn)Ea[0]=Ne[0]-Ea[0],Ea[1]=He[0]-Ea[1];else if(Ai){var Da=+/w$/.test(Ai),go=+/^n/.test(Ai);Ia=[Ne[1-Da]-Ea[0],He[1-go]-Ea[1]],Ea[0]=Ne[Da],Ea[1]=He[go]}else e.event.altKey&&(ia=Ea.slice());Pi.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ni.style("cursor")),gi({type:"brushstart"}),Zs();function Rs(){e.event.keyCode==32&&(Cn||(ia=null,Ea[0]-=Ne[1],Ea[1]-=He[1],Cn=2),_e())}function Es(){e.event.keyCode==32&&Cn==2&&(Ea[0]+=Ne[1],Ea[1]+=He[1],Cn=0,_e())}function Zs(){var Fo=e.mouse(Xr),Uo=!1;Ia&&(Fo[0]+=Ia[0],Fo[1]+=Ia[1]),Cn||(e.event.altKey?(ia||(ia=[(Ne[0]+Ne[1])/2,(He[0]+He[1])/2]),Ea[0]=Ne[+(Fo[0]{(function(e,t){typeof u6=="object"&&typeof vee!="undefined"?t(u6):(e=e||self,t(e.d3=e.d3||{}))})(u6,function(e){"use strict";var t=new Date,r=new Date;function n(Qe,Et,er,Ut){function Ft(bt){return Qe(bt=arguments.length===0?new Date:new Date(+bt)),bt}return Ft.floor=function(bt){return Qe(bt=new Date(+bt)),bt},Ft.ceil=function(bt){return Qe(bt=new Date(bt-1)),Et(bt,1),Qe(bt),bt},Ft.round=function(bt){var yt=Ft(bt),Yt=Ft.ceil(bt);return bt-yt0))return lr;do lr.push(Tr=new Date(+bt)),Et(bt,Yt),Qe(bt);while(Tr=yt)for(;Qe(yt),!bt(yt);)yt.setTime(yt-1)},function(yt,Yt){if(yt>=yt)if(Yt<0)for(;++Yt<=0;)for(;Et(yt,-1),!bt(yt););else for(;--Yt>=0;)for(;Et(yt,1),!bt(yt););})},er&&(Ft.count=function(bt,yt){return t.setTime(+bt),r.setTime(+yt),Qe(t),Qe(r),Math.floor(er(t,r))},Ft.every=function(bt){return bt=Math.floor(bt),!isFinite(bt)||!(bt>0)?null:bt>1?Ft.filter(Ut?function(yt){return Ut(yt)%bt===0}:function(yt){return Ft.count(0,yt)%bt===0}):Ft}),Ft}var i=n(function(){},function(Qe,Et){Qe.setTime(+Qe+Et)},function(Qe,Et){return Et-Qe});i.every=function(Qe){return Qe=Math.floor(Qe),!isFinite(Qe)||!(Qe>0)?null:Qe>1?n(function(Et){Et.setTime(Math.floor(Et/Qe)*Qe)},function(Et,er){Et.setTime(+Et+er*Qe)},function(Et,er){return(er-Et)/Qe}):i};var a=i.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,f=n(function(Qe){Qe.setTime(Qe-Qe.getMilliseconds())},function(Qe,Et){Qe.setTime(+Qe+Et*o)},function(Qe,Et){return(Et-Qe)/o},function(Qe){return Qe.getUTCSeconds()}),h=f.range,d=n(function(Qe){Qe.setTime(Qe-Qe.getMilliseconds()-Qe.getSeconds()*o)},function(Qe,Et){Qe.setTime(+Qe+Et*s)},function(Qe,Et){return(Et-Qe)/s},function(Qe){return Qe.getMinutes()}),v=d.range,x=n(function(Qe){Qe.setTime(Qe-Qe.getMilliseconds()-Qe.getSeconds()*o-Qe.getMinutes()*s)},function(Qe,Et){Qe.setTime(+Qe+Et*l)},function(Qe,Et){return(Et-Qe)/l},function(Qe){return Qe.getHours()}),b=x.range,p=n(function(Qe){Qe.setHours(0,0,0,0)},function(Qe,Et){Qe.setDate(Qe.getDate()+Et)},function(Qe,Et){return(Et-Qe-(Et.getTimezoneOffset()-Qe.getTimezoneOffset())*s)/u},function(Qe){return Qe.getDate()-1}),C=p.range;function E(Qe){return n(function(Et){Et.setDate(Et.getDate()-(Et.getDay()+7-Qe)%7),Et.setHours(0,0,0,0)},function(Et,er){Et.setDate(Et.getDate()+er*7)},function(Et,er){return(er-Et-(er.getTimezoneOffset()-Et.getTimezoneOffset())*s)/c})}var A=E(0),L=E(1),_=E(2),k=E(3),M=E(4),g=E(5),P=E(6),T=A.range,z=L.range,O=_.range,V=k.range,G=M.range,Z=g.range,H=P.range,N=n(function(Qe){Qe.setDate(1),Qe.setHours(0,0,0,0)},function(Qe,Et){Qe.setMonth(Qe.getMonth()+Et)},function(Qe,Et){return Et.getMonth()-Qe.getMonth()+(Et.getFullYear()-Qe.getFullYear())*12},function(Qe){return Qe.getMonth()}),j=N.range,re=n(function(Qe){Qe.setMonth(0,1),Qe.setHours(0,0,0,0)},function(Qe,Et){Qe.setFullYear(Qe.getFullYear()+Et)},function(Qe,Et){return Et.getFullYear()-Qe.getFullYear()},function(Qe){return Qe.getFullYear()});re.every=function(Qe){return!isFinite(Qe=Math.floor(Qe))||!(Qe>0)?null:n(function(Et){Et.setFullYear(Math.floor(Et.getFullYear()/Qe)*Qe),Et.setMonth(0,1),Et.setHours(0,0,0,0)},function(Et,er){Et.setFullYear(Et.getFullYear()+er*Qe)})};var oe=re.range,_e=n(function(Qe){Qe.setUTCSeconds(0,0)},function(Qe,Et){Qe.setTime(+Qe+Et*s)},function(Qe,Et){return(Et-Qe)/s},function(Qe){return Qe.getUTCMinutes()}),Me=_e.range,ke=n(function(Qe){Qe.setUTCMinutes(0,0,0)},function(Qe,Et){Qe.setTime(+Qe+Et*l)},function(Qe,Et){return(Et-Qe)/l},function(Qe){return Qe.getUTCHours()}),me=ke.range,ie=n(function(Qe){Qe.setUTCHours(0,0,0,0)},function(Qe,Et){Qe.setUTCDate(Qe.getUTCDate()+Et)},function(Qe,Et){return(Et-Qe)/u},function(Qe){return Qe.getUTCDate()-1}),Se=ie.range;function Le(Qe){return n(function(Et){Et.setUTCDate(Et.getUTCDate()-(Et.getUTCDay()+7-Qe)%7),Et.setUTCHours(0,0,0,0)},function(Et,er){Et.setUTCDate(Et.getUTCDate()+er*7)},function(Et,er){return(er-Et)/c})}var Ae=Le(0),De=Le(1),Pe=Le(2),ge=Le(3),Fe=Le(4),ce=Le(5),Ze=Le(6),ct=Ae.range,pt=De.range,Wt=Pe.range,st=ge.range,lt=Fe.range,Gt=ce.range,Nt=Ze.range,$t=n(function(Qe){Qe.setUTCDate(1),Qe.setUTCHours(0,0,0,0)},function(Qe,Et){Qe.setUTCMonth(Qe.getUTCMonth()+Et)},function(Qe,Et){return Et.getUTCMonth()-Qe.getUTCMonth()+(Et.getUTCFullYear()-Qe.getUTCFullYear())*12},function(Qe){return Qe.getUTCMonth()}),sr=$t.range,wr=n(function(Qe){Qe.setUTCMonth(0,1),Qe.setUTCHours(0,0,0,0)},function(Qe,Et){Qe.setUTCFullYear(Qe.getUTCFullYear()+Et)},function(Qe,Et){return Et.getUTCFullYear()-Qe.getUTCFullYear()},function(Qe){return Qe.getUTCFullYear()});wr.every=function(Qe){return!isFinite(Qe=Math.floor(Qe))||!(Qe>0)?null:n(function(Et){Et.setUTCFullYear(Math.floor(Et.getUTCFullYear()/Qe)*Qe),Et.setUTCMonth(0,1),Et.setUTCHours(0,0,0,0)},function(Et,er){Et.setUTCFullYear(Et.getUTCFullYear()+er*Qe)})};var ur=wr.range;e.timeDay=p,e.timeDays=C,e.timeFriday=g,e.timeFridays=Z,e.timeHour=x,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=v,e.timeMonday=L,e.timeMondays=z,e.timeMonth=N,e.timeMonths=j,e.timeSaturday=P,e.timeSaturdays=H,e.timeSecond=f,e.timeSeconds=h,e.timeSunday=A,e.timeSundays=T,e.timeThursday=M,e.timeThursdays=G,e.timeTuesday=_,e.timeTuesdays=O,e.timeWednesday=k,e.timeWednesdays=V,e.timeWeek=A,e.timeWeeks=T,e.timeYear=re,e.timeYears=oe,e.utcDay=ie,e.utcDays=Se,e.utcFriday=ce,e.utcFridays=Gt,e.utcHour=ke,e.utcHours=me,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=_e,e.utcMinutes=Me,e.utcMonday=De,e.utcMondays=pt,e.utcMonth=$t,e.utcMonths=sr,e.utcSaturday=Ze,e.utcSaturdays=Nt,e.utcSecond=f,e.utcSeconds=h,e.utcSunday=Ae,e.utcSundays=ct,e.utcThursday=Fe,e.utcThursdays=lt,e.utcTuesday=Pe,e.utcTuesdays=Wt,e.utcWednesday=ge,e.utcWednesdays=st,e.utcWeek=Ae,e.utcWeeks=ct,e.utcYear=wr,e.utcYears=ur,Object.defineProperty(e,"__esModule",{value:!0})})});var e3=ye((c6,pee)=>{(function(e,t){typeof c6=="object"&&typeof pee!="undefined"?t(c6,mO()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(c6,function(e,t){"use strict";function r(Ge){if(0<=Ge.y&&Ge.y<100){var Je=new Date(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L);return Je.setFullYear(Ge.y),Je}return new Date(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L)}function n(Ge){if(0<=Ge.y&&Ge.y<100){var Je=new Date(Date.UTC(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L));return Je.setUTCFullYear(Ge.y),Je}return new Date(Date.UTC(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L))}function i(Ge,Je,je){return{y:Ge,m:Je,d:je,H:0,M:0,S:0,L:0}}function a(Ge){var Je=Ge.dateTime,je=Ge.date,$e=Ge.time,wt=Ge.periods,Ie=Ge.days,xe=Ge.shortDays,Ce=Ge.months,vt=Ge.shortMonths,nr=h(wt),ir=d(wt),pr=h(Ie),oi=d(Ie),di=h(xe),Jr=d(xe),fi=h(Ce),Hi=d(Ce),Pn=h(vt),wn=d(vt),pn={a:Ji,A:en,b:cn,B:yn,c:null,d:N,e:N,f:Me,H:j,I:re,j:oe,L:_e,m:ke,M:me,p:Mn,q:Ba,Q:yt,s:Yt,S:ie,u:Se,U:Le,V:Ae,w:De,W:Pe,x:null,X:null,y:ge,Y:Fe,Z:ce,"%":bt},Vn={a:la,A:ma,b:Wa,B:Fa,c:null,d:Ze,e:Ze,f:lt,H:ct,I:pt,j:Wt,L:st,m:Gt,M:Nt,p:Wo,q:da,Q:yt,s:Yt,S:$t,u:sr,U:wr,V:ur,w:Qe,W:Et,x:null,X:null,y:er,Y:Ut,Z:Ft,"%":bt},kn={a:tr,A:ar,b:Er,B:Zr,c:ri,d:M,e:M,f:V,H:P,I:P,j:g,L:O,m:k,M:T,p:_t,q:_,Q:Z,s:H,S:z,u:x,U:b,V:p,w:v,W:C,x:$r,X:zi,y:A,Y:E,Z:L,"%":G};pn.x=ea(je,pn),pn.X=ea($e,pn),pn.c=ea(Je,pn),Vn.x=ea(je,Vn),Vn.X=ea($e,Vn),Vn.c=ea(Je,Vn);function ea(Wn,Ga){return function(vo){var jn=[],St=-1,Cr=0,Qr=Wn.length,pi,fn,Sn;for(vo instanceof Date||(vo=new Date(+vo));++St53)return null;"w"in jn||(jn.w=1),"Z"in jn?(Cr=n(i(jn.y,0,1)),Qr=Cr.getUTCDay(),Cr=Qr>4||Qr===0?t.utcMonday.ceil(Cr):t.utcMonday(Cr),Cr=t.utcDay.offset(Cr,(jn.V-1)*7),jn.y=Cr.getUTCFullYear(),jn.m=Cr.getUTCMonth(),jn.d=Cr.getUTCDate()+(jn.w+6)%7):(Cr=r(i(jn.y,0,1)),Qr=Cr.getDay(),Cr=Qr>4||Qr===0?t.timeMonday.ceil(Cr):t.timeMonday(Cr),Cr=t.timeDay.offset(Cr,(jn.V-1)*7),jn.y=Cr.getFullYear(),jn.m=Cr.getMonth(),jn.d=Cr.getDate()+(jn.w+6)%7)}else("W"in jn||"U"in jn)&&("w"in jn||(jn.w="u"in jn?jn.u%7:"W"in jn?1:0),Qr="Z"in jn?n(i(jn.y,0,1)).getUTCDay():r(i(jn.y,0,1)).getDay(),jn.m=0,jn.d="W"in jn?(jn.w+6)%7+jn.W*7-(Qr+5)%7:jn.w+jn.U*7-(Qr+6)%7);return"Z"in jn?(jn.H+=jn.Z/100|0,jn.M+=jn.Z%100,n(jn)):r(jn)}}function Vt(Wn,Ga,vo,jn){for(var St=0,Cr=Ga.length,Qr=vo.length,pi,fn;St=Qr)return-1;if(pi=Ga.charCodeAt(St++),pi===37){if(pi=Ga.charAt(St++),fn=kn[pi in o?Ga.charAt(St++):pi],!fn||(jn=fn(Wn,vo,jn))<0)return-1}else if(pi!=vo.charCodeAt(jn++))return-1}return jn}function _t(Wn,Ga,vo){var jn=nr.exec(Ga.slice(vo));return jn?(Wn.p=ir[jn[0].toLowerCase()],vo+jn[0].length):-1}function tr(Wn,Ga,vo){var jn=di.exec(Ga.slice(vo));return jn?(Wn.w=Jr[jn[0].toLowerCase()],vo+jn[0].length):-1}function ar(Wn,Ga,vo){var jn=pr.exec(Ga.slice(vo));return jn?(Wn.w=oi[jn[0].toLowerCase()],vo+jn[0].length):-1}function Er(Wn,Ga,vo){var jn=Pn.exec(Ga.slice(vo));return jn?(Wn.m=wn[jn[0].toLowerCase()],vo+jn[0].length):-1}function Zr(Wn,Ga,vo){var jn=fi.exec(Ga.slice(vo));return jn?(Wn.m=Hi[jn[0].toLowerCase()],vo+jn[0].length):-1}function ri(Wn,Ga,vo){return Vt(Wn,Je,Ga,vo)}function $r(Wn,Ga,vo){return Vt(Wn,je,Ga,vo)}function zi(Wn,Ga,vo){return Vt(Wn,$e,Ga,vo)}function Ji(Wn){return xe[Wn.getDay()]}function en(Wn){return Ie[Wn.getDay()]}function cn(Wn){return vt[Wn.getMonth()]}function yn(Wn){return Ce[Wn.getMonth()]}function Mn(Wn){return wt[+(Wn.getHours()>=12)]}function Ba(Wn){return 1+~~(Wn.getMonth()/3)}function la(Wn){return xe[Wn.getUTCDay()]}function ma(Wn){return Ie[Wn.getUTCDay()]}function Wa(Wn){return vt[Wn.getUTCMonth()]}function Fa(Wn){return Ce[Wn.getUTCMonth()]}function Wo(Wn){return wt[+(Wn.getUTCHours()>=12)]}function da(Wn){return 1+~~(Wn.getUTCMonth()/3)}return{format:function(Wn){var Ga=ea(Wn+="",pn);return Ga.toString=function(){return Wn},Ga},parse:function(Wn){var Ga=ua(Wn+="",!1);return Ga.toString=function(){return Wn},Ga},utcFormat:function(Wn){var Ga=ea(Wn+="",Vn);return Ga.toString=function(){return Wn},Ga},utcParse:function(Wn){var Ga=ua(Wn+="",!0);return Ga.toString=function(){return Wn},Ga}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(Ge,Je,je){var $e=Ge<0?"-":"",wt=($e?-Ge:Ge)+"",Ie=wt.length;return $e+(Ie68?1900:2e3),je+$e[0].length):-1}function L(Ge,Je,je){var $e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Je.slice(je,je+6));return $e?(Ge.Z=$e[1]?0:-($e[2]+($e[3]||"00")),je+$e[0].length):-1}function _(Ge,Je,je){var $e=s.exec(Je.slice(je,je+1));return $e?(Ge.q=$e[0]*3-3,je+$e[0].length):-1}function k(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.m=$e[0]-1,je+$e[0].length):-1}function M(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.d=+$e[0],je+$e[0].length):-1}function g(Ge,Je,je){var $e=s.exec(Je.slice(je,je+3));return $e?(Ge.m=0,Ge.d=+$e[0],je+$e[0].length):-1}function P(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.H=+$e[0],je+$e[0].length):-1}function T(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.M=+$e[0],je+$e[0].length):-1}function z(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.S=+$e[0],je+$e[0].length):-1}function O(Ge,Je,je){var $e=s.exec(Je.slice(je,je+3));return $e?(Ge.L=+$e[0],je+$e[0].length):-1}function V(Ge,Je,je){var $e=s.exec(Je.slice(je,je+6));return $e?(Ge.L=Math.floor($e[0]/1e3),je+$e[0].length):-1}function G(Ge,Je,je){var $e=l.exec(Je.slice(je,je+1));return $e?je+$e[0].length:-1}function Z(Ge,Je,je){var $e=s.exec(Je.slice(je));return $e?(Ge.Q=+$e[0],je+$e[0].length):-1}function H(Ge,Je,je){var $e=s.exec(Je.slice(je));return $e?(Ge.s=+$e[0],je+$e[0].length):-1}function N(Ge,Je){return c(Ge.getDate(),Je,2)}function j(Ge,Je){return c(Ge.getHours(),Je,2)}function re(Ge,Je){return c(Ge.getHours()%12||12,Je,2)}function oe(Ge,Je){return c(1+t.timeDay.count(t.timeYear(Ge),Ge),Je,3)}function _e(Ge,Je){return c(Ge.getMilliseconds(),Je,3)}function Me(Ge,Je){return _e(Ge,Je)+"000"}function ke(Ge,Je){return c(Ge.getMonth()+1,Je,2)}function me(Ge,Je){return c(Ge.getMinutes(),Je,2)}function ie(Ge,Je){return c(Ge.getSeconds(),Je,2)}function Se(Ge){var Je=Ge.getDay();return Je===0?7:Je}function Le(Ge,Je){return c(t.timeSunday.count(t.timeYear(Ge)-1,Ge),Je,2)}function Ae(Ge,Je){var je=Ge.getDay();return Ge=je>=4||je===0?t.timeThursday(Ge):t.timeThursday.ceil(Ge),c(t.timeThursday.count(t.timeYear(Ge),Ge)+(t.timeYear(Ge).getDay()===4),Je,2)}function De(Ge){return Ge.getDay()}function Pe(Ge,Je){return c(t.timeMonday.count(t.timeYear(Ge)-1,Ge),Je,2)}function ge(Ge,Je){return c(Ge.getFullYear()%100,Je,2)}function Fe(Ge,Je){return c(Ge.getFullYear()%1e4,Je,4)}function ce(Ge){var Je=Ge.getTimezoneOffset();return(Je>0?"-":(Je*=-1,"+"))+c(Je/60|0,"0",2)+c(Je%60,"0",2)}function Ze(Ge,Je){return c(Ge.getUTCDate(),Je,2)}function ct(Ge,Je){return c(Ge.getUTCHours(),Je,2)}function pt(Ge,Je){return c(Ge.getUTCHours()%12||12,Je,2)}function Wt(Ge,Je){return c(1+t.utcDay.count(t.utcYear(Ge),Ge),Je,3)}function st(Ge,Je){return c(Ge.getUTCMilliseconds(),Je,3)}function lt(Ge,Je){return st(Ge,Je)+"000"}function Gt(Ge,Je){return c(Ge.getUTCMonth()+1,Je,2)}function Nt(Ge,Je){return c(Ge.getUTCMinutes(),Je,2)}function $t(Ge,Je){return c(Ge.getUTCSeconds(),Je,2)}function sr(Ge){var Je=Ge.getUTCDay();return Je===0?7:Je}function wr(Ge,Je){return c(t.utcSunday.count(t.utcYear(Ge)-1,Ge),Je,2)}function ur(Ge,Je){var je=Ge.getUTCDay();return Ge=je>=4||je===0?t.utcThursday(Ge):t.utcThursday.ceil(Ge),c(t.utcThursday.count(t.utcYear(Ge),Ge)+(t.utcYear(Ge).getUTCDay()===4),Je,2)}function Qe(Ge){return Ge.getUTCDay()}function Et(Ge,Je){return c(t.utcMonday.count(t.utcYear(Ge)-1,Ge),Je,2)}function er(Ge,Je){return c(Ge.getUTCFullYear()%100,Je,2)}function Ut(Ge,Je){return c(Ge.getUTCFullYear()%1e4,Je,4)}function Ft(){return"+0000"}function bt(){return"%"}function yt(Ge){return+Ge}function Yt(Ge){return Math.floor(+Ge/1e3)}var lr;Tr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Tr(Ge){return lr=a(Ge),e.timeFormat=lr.format,e.timeParse=lr.parse,e.utcFormat=lr.utcFormat,e.utcParse=lr.utcParse,lr}var Rr="%Y-%m-%dT%H:%M:%S.%LZ";function ei(Ge){return Ge.toISOString()}var Wr=Date.prototype.toISOString?ei:e.utcFormat(Rr);function Ur(Ge){var Je=new Date(Ge);return isNaN(Je)?null:Je}var dt=+new Date("2000-01-01T00:00:00.000Z")?Ur:e.utcParse(Rr);e.isoFormat=Wr,e.isoParse=dt,e.timeFormatDefaultLocale=Tr,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var yO=ye((f6,gee)=>{(function(e,t){typeof f6=="object"&&typeof gee!="undefined"?t(f6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(f6,function(e){"use strict";function t(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function r(k,M){if((g=(k=M?k.toExponential(M-1):k.toExponential()).indexOf("e"))<0)return null;var g,P=k.slice(0,g);return[P.length>1?P[0]+P.slice(2):P,+k.slice(g+1)]}function n(k){return k=r(Math.abs(k)),k?k[1]:NaN}function i(k,M){return function(g,P){for(var T=g.length,z=[],O=0,V=k[0],G=0;T>0&&V>0&&(G+V+1>P&&(V=Math.max(1,P-G)),z.push(g.substring(T-=V,T+V)),!((G+=V+1)>P));)V=k[O=(O+1)%k.length];return z.reverse().join(M)}}function a(k){return function(M){return M.replace(/[0-9]/g,function(g){return k[+g]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(k){if(!(M=o.exec(k)))throw new Error("invalid format: "+k);var M;return new l({fill:M[1],align:M[2],sign:M[3],symbol:M[4],zero:M[5],width:M[6],comma:M[7],precision:M[8]&&M[8].slice(1),trim:M[9],type:M[10]})}s.prototype=l.prototype;function l(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.type+""}l.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(k){e:for(var M=k.length,g=1,P=-1,T;g0&&(P=0);break}return P>0?k.slice(0,P)+k.slice(T+1):k}var c;function f(k,M){var g=r(k,M);if(!g)return k+"";var P=g[0],T=g[1],z=T-(c=Math.max(-8,Math.min(8,Math.floor(T/3)))*3)+1,O=P.length;return z===O?P:z>O?P+new Array(z-O+1).join("0"):z>0?P.slice(0,z)+"."+P.slice(z):"0."+new Array(1-z).join("0")+r(k,Math.max(0,M+z-1))[0]}function h(k,M){var g=r(k,M);if(!g)return k+"";var P=g[0],T=g[1];return T<0?"0."+new Array(-T).join("0")+P:P.length>T+1?P.slice(0,T+1)+"."+P.slice(T+1):P+new Array(T-P.length+2).join("0")}var d={"%":function(k,M){return(k*100).toFixed(M)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:t,e:function(k,M){return k.toExponential(M)},f:function(k,M){return k.toFixed(M)},g:function(k,M){return k.toPrecision(M)},o:function(k){return Math.round(k).toString(8)},p:function(k,M){return h(k*100,M)},r:h,s:f,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function v(k){return k}var x=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function p(k){var M=k.grouping===void 0||k.thousands===void 0?v:i(x.call(k.grouping,Number),k.thousands+""),g=k.currency===void 0?"":k.currency[0]+"",P=k.currency===void 0?"":k.currency[1]+"",T=k.decimal===void 0?".":k.decimal+"",z=k.numerals===void 0?v:a(x.call(k.numerals,String)),O=k.percent===void 0?"%":k.percent+"",V=k.minus===void 0?"-":k.minus+"",G=k.nan===void 0?"NaN":k.nan+"";function Z(N){N=s(N);var j=N.fill,re=N.align,oe=N.sign,_e=N.symbol,Me=N.zero,ke=N.width,me=N.comma,ie=N.precision,Se=N.trim,Le=N.type;Le==="n"?(me=!0,Le="g"):d[Le]||(ie===void 0&&(ie=12),Se=!0,Le="g"),(Me||j==="0"&&re==="=")&&(Me=!0,j="0",re="=");var Ae=_e==="$"?g:_e==="#"&&/[boxX]/.test(Le)?"0"+Le.toLowerCase():"",De=_e==="$"?P:/[%p]/.test(Le)?O:"",Pe=d[Le],ge=/[defgprs%]/.test(Le);ie=ie===void 0?6:/[gprs]/.test(Le)?Math.max(1,Math.min(21,ie)):Math.max(0,Math.min(20,ie));function Fe(ce){var Ze=Ae,ct=De,pt,Wt,st;if(Le==="c")ct=Pe(ce)+ct,ce="";else{ce=+ce;var lt=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Pe(Math.abs(ce),ie),Se&&(ce=u(ce)),lt&&+ce==0&&oe!=="+"&&(lt=!1),Ze=(lt?oe==="("?oe:V:oe==="-"||oe==="("?"":oe)+Ze,ct=(Le==="s"?b[8+c/3]:"")+ct+(lt&&oe==="("?")":""),ge){for(pt=-1,Wt=ce.length;++ptst||st>57){ct=(st===46?T+ce.slice(pt+1):ce.slice(pt))+ct,ce=ce.slice(0,pt);break}}}me&&!Me&&(ce=M(ce,1/0));var Gt=Ze.length+ce.length+ct.length,Nt=Gt>1)+Ze+ce+ct+Nt.slice(Gt);break;default:ce=Nt+Ze+ce+ct;break}return z(ce)}return Fe.toString=function(){return N+""},Fe}function H(N,j){var re=Z((N=s(N),N.type="f",N)),oe=Math.max(-8,Math.min(8,Math.floor(n(j)/3)))*3,_e=Math.pow(10,-oe),Me=b[8+oe/3];return function(ke){return re(_e*ke)+Me}}return{format:Z,formatPrefix:H}}var C;E({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function E(k){return C=p(k),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function A(k){return Math.max(0,-n(Math.abs(k)))}function L(k,M){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(M)/3)))*3-n(Math.abs(k)))}function _(k,M){return k=Math.abs(k),M=Math.abs(M)-k,Math.max(0,n(M)-n(k))+1}e.FormatSpecifier=l,e.formatDefaultLocale=E,e.formatLocale=p,e.formatSpecifier=s,e.precisionFixed=A,e.precisionPrefix=L,e.precisionRound=_,Object.defineProperty(e,"__esModule",{value:!0})})});var yee=ye((utr,mee)=>{"use strict";mee.exports=function(e){for(var t=e.length,r,n=0;n13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var Eo=ye((ctr,_ee)=>{"use strict";var Zet=yee();_ee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Zet(r))return!1}else if(t!=="number")return!1;return e-e<1}});var hs=ye((ftr,xee)=>{"use strict";xee.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var _O=ye((h6,bee)=>{(function(e,t){typeof h6=="object"&&typeof bee!="undefined"?t(h6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(h6,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],c+=t[(s[l]&3)<<4|s[l+1]>>4],c+=t[(s[l+1]&15)<<2|s[l+2]>>6],c+=t[s[l+2]&63];return u%3===2?c=c.substring(0,c.length-1)+"=":u%3===1&&(c=c.substring(0,c.length-2)+"=="),c},a=function(o){var s=o.length*.75,l=o.length,u,c=0,f,h,d,v;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var x=new ArrayBuffer(s),b=new Uint8Array(x);for(u=0;u>4,b[c++]=(h&15)<<4|d>>2,b[c++]=(d&3)<<6|v&63;return x};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var gy=ye((htr,wee)=>{"use strict";wee.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var vv=ye(mg=>{"use strict";var Yet=_O().decode,Ket=gy(),xO=Array.isArray,Jet=ArrayBuffer,$et=DataView;function Tee(e){return Jet.isView(e)&&!(e instanceof $et)}mg.isTypedArray=Tee;function d6(e){return xO(e)||Tee(e)}mg.isArrayOrTypedArray=d6;function Qet(e){return!d6(e[0])}mg.isArray1D=Qet;mg.ensureArray=function(e,t){return xO(e)||(e=[]),e.length=t,e};var Ld={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ld.uint8c=Ld.u1c;Ld.uint8=Ld.u1;Ld.int8=Ld.i1;Ld.uint16=Ld.u2;Ld.int16=Ld.i2;Ld.uint32=Ld.u4;Ld.int32=Ld.i4;Ld.float32=Ld.f4;Ld.float64=Ld.f8;function bO(e){return e.constructor===ArrayBuffer}mg.isArrayBuffer=bO;mg.decodeTypedArraySpec=function(e){var t=[],r=ett(e),n=r.dtype,i=Ld[n];if(!i)throw new Error('Error in dtype: "'+n+'"');var a=i.BYTES_PER_ELEMENT,o=r.bdata;bO(o)||(o=Yet(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var l=s.length,u,c,f=+s[0],h=a*f,d=0;if(l===1)t=new i(o);else if(l===2)for(u=+s[1],c=0;c{"use strict";var See=Eo(),TO=vv().isArrayOrTypedArray;kee.exports=function(t,r){if(See(r))r=String(r);else if(typeof r!="string"||r.substr(r.length-4)==="[-1]")throw"bad property string";var n=r.split("."),i,a,o,s;for(s=0;s{"use strict";var t3=CS(),att=/^\w*$/,ott=0,Lee=1,v6=2,Pee=3,ob=4;Iee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,l={};r&&r.length?(s=t3(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(a=0;a2)return l[d]=l[d]|v6,f.set(h,null);if(c){for(a=d;a{"use strict";var stt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,ltt=/^[^\.\[\]]+$/;Dee.exports=function(e,t){for(;t;){var r=e.match(stt);if(r)e=r[1];else if(e.match(ltt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var p6=ye((mtr,zee)=>{"use strict";var utt=Eo();zee.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return utt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var Bee=ye((ytr,qee)=>{"use strict";var Oee=vv().isArrayOrTypedArray,kS=gy();qee.exports=function e(t,r){for(var n in r){var i=r[n],a=t[n];if(a!==i)if(n.charAt(0)==="_"||typeof i=="function"){if(n in t)continue;t[n]=i}else if(Oee(i)&&Oee(a)&&kS(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function ctt(e,t){var r=e%t;return r<0?r+t:r}function ftt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}Nee.exports={mod:ctt,modHalf:ftt}});var cd=ye((xtr,g6)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function l(ge,Fe){if(ge=ge||"",Fe=Fe||{},ge instanceof l)return ge;if(!(this instanceof l))return new l(ge,Fe);var ce=u(ge);this._originalInput=ge,this._r=ce.r,this._g=ce.g,this._b=ce.b,this._a=ce.a,this._roundA=i(100*this._a)/100,this._format=Fe.format||ce.format,this._gradientType=Fe.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=ce.ok,this._tc_id=n++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ge=this.toRgb();return(ge.r*299+ge.g*587+ge.b*114)/1e3},getLuminance:function(){var ge=this.toRgb(),Fe,ce,Ze,ct,pt,Wt;return Fe=ge.r/255,ce=ge.g/255,Ze=ge.b/255,Fe<=.03928?ct=Fe/12.92:ct=e.pow((Fe+.055)/1.055,2.4),ce<=.03928?pt=ce/12.92:pt=e.pow((ce+.055)/1.055,2.4),Ze<=.03928?Wt=Ze/12.92:Wt=e.pow((Ze+.055)/1.055,2.4),.2126*ct+.7152*pt+.0722*Wt},setAlpha:function(ge){return this._a=N(ge),this._roundA=i(100*this._a)/100,this},toHsv:function(){var ge=d(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,v:ge.v,a:this._a}},toHsvString:function(){var ge=d(this._r,this._g,this._b),Fe=i(ge.h*360),ce=i(ge.s*100),Ze=i(ge.v*100);return this._a==1?"hsv("+Fe+", "+ce+"%, "+Ze+"%)":"hsva("+Fe+", "+ce+"%, "+Ze+"%, "+this._roundA+")"},toHsl:function(){var ge=f(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,l:ge.l,a:this._a}},toHslString:function(){var ge=f(this._r,this._g,this._b),Fe=i(ge.h*360),ce=i(ge.s*100),Ze=i(ge.l*100);return this._a==1?"hsl("+Fe+", "+ce+"%, "+Ze+"%)":"hsla("+Fe+", "+ce+"%, "+Ze+"%, "+this._roundA+")"},toHex:function(ge){return x(this._r,this._g,this._b,ge)},toHexString:function(ge){return"#"+this.toHex(ge)},toHex8:function(ge){return b(this._r,this._g,this._b,this._a,ge)},toHex8String:function(ge){return"#"+this.toHex8(ge)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(j(this._r,255)*100)+"%",g:i(j(this._g,255)*100)+"%",b:i(j(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(j(this._r,255)*100)+"%, "+i(j(this._g,255)*100)+"%, "+i(j(this._b,255)*100)+"%)":"rgba("+i(j(this._r,255)*100)+"%, "+i(j(this._g,255)*100)+"%, "+i(j(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Z[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(ge){var Fe="#"+p(this._r,this._g,this._b,this._a),ce=Fe,Ze=this._gradientType?"GradientType = 1, ":"";if(ge){var ct=l(ge);ce="#"+p(ct._r,ct._g,ct._b,ct._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ze+"startColorstr="+Fe+",endColorstr="+ce+")"},toString:function(ge){var Fe=!!ge;ge=ge||this._format;var ce=!1,Ze=this._a<1&&this._a>=0,ct=!Fe&&Ze&&(ge==="hex"||ge==="hex6"||ge==="hex3"||ge==="hex4"||ge==="hex8"||ge==="name");return ct?ge==="name"&&this._a===0?this.toName():this.toRgbString():(ge==="rgb"&&(ce=this.toRgbString()),ge==="prgb"&&(ce=this.toPercentageRgbString()),(ge==="hex"||ge==="hex6")&&(ce=this.toHexString()),ge==="hex3"&&(ce=this.toHexString(!0)),ge==="hex4"&&(ce=this.toHex8String(!0)),ge==="hex8"&&(ce=this.toHex8String()),ge==="name"&&(ce=this.toName()),ge==="hsl"&&(ce=this.toHslString()),ge==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(ge,Fe){var ce=ge.apply(null,[this].concat([].slice.call(Fe)));return this._r=ce._r,this._g=ce._g,this._b=ce._b,this.setAlpha(ce._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(ge,Fe){return ge.apply(null,[this].concat([].slice.call(Fe)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},l.fromRatio=function(ge,Fe){if(typeof ge=="object"){var ce={};for(var Ze in ge)ge.hasOwnProperty(Ze)&&(Ze==="a"?ce[Ze]=ge[Ze]:ce[Ze]=me(ge[Ze]));ge=ce}return l(ge,Fe)};function u(ge){var Fe={r:0,g:0,b:0},ce=1,Ze=null,ct=null,pt=null,Wt=!1,st=!1;return typeof ge=="string"&&(ge=De(ge)),typeof ge=="object"&&(Ae(ge.r)&&Ae(ge.g)&&Ae(ge.b)?(Fe=c(ge.r,ge.g,ge.b),Wt=!0,st=String(ge.r).substr(-1)==="%"?"prgb":"rgb"):Ae(ge.h)&&Ae(ge.s)&&Ae(ge.v)?(Ze=me(ge.s),ct=me(ge.v),Fe=v(ge.h,Ze,ct),Wt=!0,st="hsv"):Ae(ge.h)&&Ae(ge.s)&&Ae(ge.l)&&(Ze=me(ge.s),pt=me(ge.l),Fe=h(ge.h,Ze,pt),Wt=!0,st="hsl"),ge.hasOwnProperty("a")&&(ce=ge.a)),ce=N(ce),{ok:Wt,format:ge.format||st,r:a(255,o(Fe.r,0)),g:a(255,o(Fe.g,0)),b:a(255,o(Fe.b,0)),a:ce}}function c(ge,Fe,ce){return{r:j(ge,255)*255,g:j(Fe,255)*255,b:j(ce,255)*255}}function f(ge,Fe,ce){ge=j(ge,255),Fe=j(Fe,255),ce=j(ce,255);var Ze=o(ge,Fe,ce),ct=a(ge,Fe,ce),pt,Wt,st=(Ze+ct)/2;if(Ze==ct)pt=Wt=0;else{var lt=Ze-ct;switch(Wt=st>.5?lt/(2-Ze-ct):lt/(Ze+ct),Ze){case ge:pt=(Fe-ce)/lt+(Fe1&&($t-=1),$t<1/6?Gt+(Nt-Gt)*6*$t:$t<1/2?Nt:$t<2/3?Gt+(Nt-Gt)*(2/3-$t)*6:Gt}if(Fe===0)Ze=ct=pt=ce;else{var st=ce<.5?ce*(1+Fe):ce+Fe-ce*Fe,lt=2*ce-st;Ze=Wt(lt,st,ge+1/3),ct=Wt(lt,st,ge),pt=Wt(lt,st,ge-1/3)}return{r:Ze*255,g:ct*255,b:pt*255}}function d(ge,Fe,ce){ge=j(ge,255),Fe=j(Fe,255),ce=j(ce,255);var Ze=o(ge,Fe,ce),ct=a(ge,Fe,ce),pt,Wt,st=Ze,lt=Ze-ct;if(Wt=Ze===0?0:lt/Ze,Ze==ct)pt=0;else{switch(Ze){case ge:pt=(Fe-ce)/lt+(Fe>1)+720)%360;--Fe;)Ze.h=(Ze.h+ct)%360,pt.push(l(Ze));return pt}function V(ge,Fe){Fe=Fe||6;for(var ce=l(ge).toHsv(),Ze=ce.h,ct=ce.s,pt=ce.v,Wt=[],st=1/Fe;Fe--;)Wt.push(l({h:Ze,s:ct,v:pt})),pt=(pt+st)%1;return Wt}l.mix=function(ge,Fe,ce){ce=ce===0?0:ce||50;var Ze=l(ge).toRgb(),ct=l(Fe).toRgb(),pt=ce/100,Wt={r:(ct.r-Ze.r)*pt+Ze.r,g:(ct.g-Ze.g)*pt+Ze.g,b:(ct.b-Ze.b)*pt+Ze.b,a:(ct.a-Ze.a)*pt+Ze.a};return l(Wt)},l.readability=function(ge,Fe){var ce=l(ge),Ze=l(Fe);return(e.max(ce.getLuminance(),Ze.getLuminance())+.05)/(e.min(ce.getLuminance(),Ze.getLuminance())+.05)},l.isReadable=function(ge,Fe,ce){var Ze=l.readability(ge,Fe),ct,pt;switch(pt=!1,ct=Pe(ce),ct.level+ct.size){case"AAsmall":case"AAAlarge":pt=Ze>=4.5;break;case"AAlarge":pt=Ze>=3;break;case"AAAsmall":pt=Ze>=7;break}return pt},l.mostReadable=function(ge,Fe,ce){var Ze=null,ct=0,pt,Wt,st,lt;ce=ce||{},Wt=ce.includeFallbackColors,st=ce.level,lt=ce.size;for(var Gt=0;Gtct&&(ct=pt,Ze=l(Fe[Gt]));return l.isReadable(ge,Ze,{level:st,size:lt})||!Wt?Ze:(ce.includeFallbackColors=!1,l.mostReadable(ge,["#fff","#000"],ce))};var G=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Z=l.hexNames=H(G);function H(ge){var Fe={};for(var ce in ge)ge.hasOwnProperty(ce)&&(Fe[ge[ce]]=ce);return Fe}function N(ge){return ge=parseFloat(ge),(isNaN(ge)||ge<0||ge>1)&&(ge=1),ge}function j(ge,Fe){_e(ge)&&(ge="100%");var ce=Me(ge);return ge=a(Fe,o(0,parseFloat(ge))),ce&&(ge=parseInt(ge*Fe,10)/100),e.abs(ge-Fe)<1e-6?1:ge%Fe/parseFloat(Fe)}function re(ge){return a(1,o(0,ge))}function oe(ge){return parseInt(ge,16)}function _e(ge){return typeof ge=="string"&&ge.indexOf(".")!=-1&&parseFloat(ge)===1}function Me(ge){return typeof ge=="string"&&ge.indexOf("%")!=-1}function ke(ge){return ge.length==1?"0"+ge:""+ge}function me(ge){return ge<=1&&(ge=ge*100+"%"),ge}function ie(ge){return e.round(parseFloat(ge)*255).toString(16)}function Se(ge){return oe(ge)/255}var Le=function(){var ge="[-\\+]?\\d+%?",Fe="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+Fe+")|(?:"+ge+")",Ze="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",ct="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+Ze),rgba:new RegExp("rgba"+ct),hsl:new RegExp("hsl"+Ze),hsla:new RegExp("hsla"+ct),hsv:new RegExp("hsv"+Ze),hsva:new RegExp("hsva"+ct),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ae(ge){return!!Le.CSS_UNIT.exec(ge)}function De(ge){ge=ge.replace(t,"").replace(r,"").toLowerCase();var Fe=!1;if(G[ge])ge=G[ge],Fe=!0;else if(ge=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=Le.rgb.exec(ge))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=Le.rgba.exec(ge))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=Le.hsl.exec(ge))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=Le.hsla.exec(ge))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=Le.hsv.exec(ge))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=Le.hsva.exec(ge))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=Le.hex8.exec(ge))?{r:oe(ce[1]),g:oe(ce[2]),b:oe(ce[3]),a:Se(ce[4]),format:Fe?"name":"hex8"}:(ce=Le.hex6.exec(ge))?{r:oe(ce[1]),g:oe(ce[2]),b:oe(ce[3]),format:Fe?"name":"hex"}:(ce=Le.hex4.exec(ge))?{r:oe(ce[1]+""+ce[1]),g:oe(ce[2]+""+ce[2]),b:oe(ce[3]+""+ce[3]),a:Se(ce[4]+""+ce[4]),format:Fe?"name":"hex8"}:(ce=Le.hex3.exec(ge))?{r:oe(ce[1]+""+ce[1]),g:oe(ce[2]+""+ce[2]),b:oe(ce[3]+""+ce[3]),format:Fe?"name":"hex"}:!1}function Pe(ge){var Fe,ce;return ge=ge||{level:"AA",size:"small"},Fe=(ge.level||"AA").toUpperCase(),ce=(ge.size||"small").toLowerCase(),Fe!=="AA"&&Fe!=="AAA"&&(Fe="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:Fe,size:ce}}typeof g6!="undefined"&&g6.exports?g6.exports=l:window.tinycolor=l})(Math)});var Ao=ye(IS=>{"use strict";var Uee=gy(),LS=Array.isArray;function htt(e,t){var r,n;for(r=0;r{"use strict";Vee.exports=function(e){var t=e.variantValues,r=e.editType,n=e.colorEditType;n===void 0&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:n},weight:i,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var RS=ye((Ttr,Gee)=>{"use strict";Gee.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var B1=ye((Atr,Wee)=>{"use strict";var Hee=RS(),jee=ec(),AO=jee({editType:"none"});AO.family.dflt=Hee.HOVERFONT;AO.size.dflt=Hee.HOVERFONTSIZE;Wee.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:AO,grouptitlefont:jee({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var i3=ye((Str,Xee)=>{"use strict";var dtt=ec(),DS=B1().hoverlabel,FS=Ao().extendFlat;Xee.exports={hoverlabel:{bgcolor:FS({},DS.bgcolor,{arrayOk:!0}),bordercolor:FS({},DS.bordercolor,{arrayOk:!0}),font:dtt({arrayOk:!0,editType:"none"}),align:FS({},DS.align,{arrayOk:!0}),namelength:FS({},DS.namelength,{arrayOk:!0}),showarrow:FS({},DS.showarrow),editType:"none"}}});var Gl=ye((Mtr,Zee)=>{"use strict";var vtt=ec(),ptt=i3();Zee.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:vtt({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:ptt.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var sb=ye((Etr,Jee)=>{"use strict";var gtt=cd(),m6={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Yee=m6.RdBu;function mtt(e,t){if(t||(t=Yee),!e)return t;function r(){try{e=m6[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),Kee(e)?e:t}function Kee(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";lb.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];lb.defaultLine="#444";lb.lightLine="#eee";lb.background="#fff";lb.borderLine="#BEC8D9";lb.lightFraction=100*10/11});var Ca=ye((ktr,$ee)=>{"use strict";var _p=cd(),_tt=Eo(),xtt=vv().isTypedArray,fd=$ee.exports={},y6=Eh();fd.defaults=y6.defaults;var btt=fd.defaultLine=y6.defaultLine;fd.lightLine=y6.lightLine;var MO=fd.background=y6.background;fd.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};fd.rgb=function(e){return fd.tinyRGB(_p(e))};fd.opacity=function(e){return e?_p(e).getAlpha():0};fd.addOpacity=function(e,t){var r=_p(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};fd.combine=function(e,t){var r=_p(e).toRgb();if(r.a===1)return _p(e).toRgbString();var n=_p(t||MO).toRgb(),i=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return _p(a).toRgbString()};fd.interpolate=function(e,t,r){var n=_p(e).toRgb(),i=_p(t).toRgb(),a={r:r*n.r+(1-r)*i.r,g:r*n.g+(1-r)*i.g,b:r*n.b+(1-r)*i.b};return _p(a).toRgbString()};fd.contrast=function(e,t,r){var n=_p(e);n.getAlpha()!==1&&(n=_p(fd.combine(e,MO)));var i=n.isDark()?t?n.lighten(t):MO:r?n.darken(r):btt;return i.toString()};fd.stroke=function(e,t){var r=_p(t);e.style({stroke:fd.tinyRGB(r),"stroke-opacity":r.getAlpha()})};fd.fill=function(e,t){var r=_p(t);e.style({fill:fd.tinyRGB(r),"fill-opacity":r.getAlpha()})};fd.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,n,i,a;for(r=0;r=0)))return e;if(a===3)n[a]>1&&(n[a]=1);else if(n[a]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return i?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var N1=ye((Ltr,Qee)=>{"use strict";Qee.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var n3=ye(ete=>{"use strict";ete.counter=function(e,t,r,n){var i=(t||"")+(r?"":"$"),a=n===!1?"":"^";return e==="xy"?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+e+"([2-9]|[1-9][0-9]+)?"+i)}});var nte=ye(xp=>{"use strict";var EO=Eo(),tte=cd(),rte=Ao().extendFlat,wtt=Gl(),Ttt=sb(),Att=Ca(),Stt=N1().DESELECTDIM,a3=CS(),ite=n3().counter,Mtt=r3().modHalf,dm=vv().isArrayOrTypedArray,U1=vv().isTypedArraySpec,V1=vv().decodeTypedArraySpec;xp.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(dm(e)?e:U1(e)?V1(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;nn.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}U1(e)&&(e=V1(e)),e%1||!EO(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if(typeof e!="string"){var i=typeof e=="number";n.strict===!0||!i?t.set(r):t.set(String(e))}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){U1(e)&&(e=V1(e)),tte(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return tte(i).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(n)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(Ttt.get(e,r))}},angle:{coerceFunction:function(e,t,r){U1(e)&&(e=V1(e)),e==="auto"?t.set("auto"):EO(e)?t.set(Mtt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||ite(r);if(typeof e=="string"&&i.test(e)){t.set(e);return}t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!ite(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var i=e.split("+"),a=0;a{"use strict";var ate={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},ote={};function ste(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),ste(n,t[r]))}}ste(ate,ote);lte.exports={configAttributes:ate,dfltConfig:ote}});var kO=ye((Dtr,ute)=>{"use strict";var CO=Oa(),Ett=Eo(),zS=[];ute.exports=function(e,t){if(zS.indexOf(e)!==-1)return;zS.push(e);var r=1e3;Ett(t)?r=t:t==="long"&&(r=3e3);var n=CO.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(zS);function a(o){o.duration(700).style("opacity",0).each("end",function(s){var l=zS.indexOf(s);l!==-1&&zS.splice(l,1),CO.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var s=CO.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(a)});for(var l=s.append("p"),u=o.split(//g),c=0;c{"use strict";var o3=ub().dfltConfig,LO=kO(),PO=cte.exports={};PO.log=function(){var e;if(o3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};PO.warn=function(){var e;if(o3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};PO.error=function(){var e;if(o3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var x6=ye((ztr,fte)=>{"use strict";fte.exports=function(){}});var IO=ye((Otr,hte)=>{"use strict";hte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{dte.exports=Ctt;function Ctt(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var gte=ye((Btr,pte)=>{pte.exports=ktt;function ktt(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var yte=ye((Ntr,mte)=>{mte.exports=Ltt;function Ltt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var RO=ye((Utr,_te)=>{_te.exports=Ptt;function Ptt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var bte=ye((Vtr,xte)=>{xte.exports=Itt;function Itt(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var Tte=ye((Gtr,wte)=>{wte.exports=Rtt;function Rtt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],x=t[13],b=t[14],p=t[15],C=r*s-n*o,E=r*l-i*o,A=r*u-a*o,L=n*l-i*s,_=n*u-a*s,k=i*u-a*l,M=c*x-f*v,g=c*b-h*v,P=c*p-d*v,T=f*b-h*x,z=f*p-d*x,O=h*p-d*b,V=C*O-E*z+A*T+L*P-_*g+k*M;return V?(V=1/V,e[0]=(s*O-l*z+u*T)*V,e[1]=(i*z-n*O-a*T)*V,e[2]=(x*k-b*_+p*L)*V,e[3]=(h*_-f*k-d*L)*V,e[4]=(l*P-o*O-u*g)*V,e[5]=(r*O-i*P+a*g)*V,e[6]=(b*A-v*k-p*E)*V,e[7]=(c*k-h*A+d*E)*V,e[8]=(o*z-s*P+u*M)*V,e[9]=(n*P-r*z-a*M)*V,e[10]=(v*_-x*A+p*C)*V,e[11]=(f*A-c*_-d*C)*V,e[12]=(s*g-o*T-l*M)*V,e[13]=(r*T-n*g+i*M)*V,e[14]=(x*E-v*L-b*C)*V,e[15]=(c*L-f*E+h*C)*V,e):null}});var Ste=ye((Htr,Ate)=>{Ate.exports=Dtt;function Dtt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],x=t[13],b=t[14],p=t[15];return e[0]=s*(h*p-d*b)-f*(l*p-u*b)+x*(l*d-u*h),e[1]=-(n*(h*p-d*b)-f*(i*p-a*b)+x*(i*d-a*h)),e[2]=n*(l*p-u*b)-s*(i*p-a*b)+x*(i*u-a*l),e[3]=-(n*(l*d-u*h)-s*(i*d-a*h)+f*(i*u-a*l)),e[4]=-(o*(h*p-d*b)-c*(l*p-u*b)+v*(l*d-u*h)),e[5]=r*(h*p-d*b)-c*(i*p-a*b)+v*(i*d-a*h),e[6]=-(r*(l*p-u*b)-o*(i*p-a*b)+v*(i*u-a*l)),e[7]=r*(l*d-u*h)-o*(i*d-a*h)+c*(i*u-a*l),e[8]=o*(f*p-d*x)-c*(s*p-u*x)+v*(s*d-u*f),e[9]=-(r*(f*p-d*x)-c*(n*p-a*x)+v*(n*d-a*f)),e[10]=r*(s*p-u*x)-o*(n*p-a*x)+v*(n*u-a*s),e[11]=-(r*(s*d-u*f)-o*(n*d-a*f)+c*(n*u-a*s)),e[12]=-(o*(f*b-h*x)-c*(s*b-l*x)+v*(s*h-l*f)),e[13]=r*(f*b-h*x)-c*(n*b-i*x)+v*(n*h-i*f),e[14]=-(r*(s*b-l*x)-o*(n*b-i*x)+v*(n*l-i*s)),e[15]=r*(s*h-l*f)-o*(n*h-i*f)+c*(n*l-i*s),e}});var Ete=ye((jtr,Mte)=>{Mte.exports=Ftt;function Ftt(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],h=e[11],d=e[12],v=e[13],x=e[14],b=e[15],p=t*o-r*a,C=t*s-n*a,E=t*l-i*a,A=r*s-n*o,L=r*l-i*o,_=n*l-i*s,k=u*v-c*d,M=u*x-f*d,g=u*b-h*d,P=c*x-f*v,T=c*b-h*v,z=f*b-h*x;return p*z-C*T+E*P+A*g-L*M+_*k}});var kte=ye((Wtr,Cte)=>{Cte.exports=ztt;function ztt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=t[9],d=t[10],v=t[11],x=t[12],b=t[13],p=t[14],C=t[15],E=r[0],A=r[1],L=r[2],_=r[3];return e[0]=E*n+A*s+L*f+_*x,e[1]=E*i+A*l+L*h+_*b,e[2]=E*a+A*u+L*d+_*p,e[3]=E*o+A*c+L*v+_*C,E=r[4],A=r[5],L=r[6],_=r[7],e[4]=E*n+A*s+L*f+_*x,e[5]=E*i+A*l+L*h+_*b,e[6]=E*a+A*u+L*d+_*p,e[7]=E*o+A*c+L*v+_*C,E=r[8],A=r[9],L=r[10],_=r[11],e[8]=E*n+A*s+L*f+_*x,e[9]=E*i+A*l+L*h+_*b,e[10]=E*a+A*u+L*d+_*p,e[11]=E*o+A*c+L*v+_*C,E=r[12],A=r[13],L=r[14],_=r[15],e[12]=E*n+A*s+L*f+_*x,e[13]=E*i+A*l+L*h+_*b,e[14]=E*a+A*u+L*d+_*p,e[15]=E*o+A*c+L*v+_*C,e}});var Pte=ye((Xtr,Lte)=>{Lte.exports=Ott;function Ott(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,l,u,c,f,h,d,v,x,b,p;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],f=t[5],h=t[6],d=t[7],v=t[8],x=t[9],b=t[10],p=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=f,e[6]=h,e[7]=d,e[8]=v,e[9]=x,e[10]=b,e[11]=p,e[12]=o*n+c*i+v*a+t[12],e[13]=s*n+f*i+x*a+t[13],e[14]=l*n+h*i+b*a+t[14],e[15]=u*n+d*i+p*a+t[15]),e}});var Rte=ye((Ztr,Ite)=>{Ite.exports=qtt;function qtt(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var Fte=ye((Ytr,Dte)=>{Dte.exports=Btt;function Btt(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),l,u,c,f,h,d,v,x,b,p,C,E,A,L,_,k,M,g,P,T,z,O,V,G;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,l=Math.sin(r),u=Math.cos(r),c=1-u,f=t[0],h=t[1],d=t[2],v=t[3],x=t[4],b=t[5],p=t[6],C=t[7],E=t[8],A=t[9],L=t[10],_=t[11],k=i*i*c+u,M=a*i*c+o*l,g=o*i*c-a*l,P=i*a*c-o*l,T=a*a*c+u,z=o*a*c+i*l,O=i*o*c+a*l,V=a*o*c-i*l,G=o*o*c+u,e[0]=f*k+x*M+E*g,e[1]=h*k+b*M+A*g,e[2]=d*k+p*M+L*g,e[3]=v*k+C*M+_*g,e[4]=f*P+x*T+E*z,e[5]=h*P+b*T+A*z,e[6]=d*P+p*T+L*z,e[7]=v*P+C*T+_*z,e[8]=f*O+x*V+E*G,e[9]=h*O+b*V+A*G,e[10]=d*O+p*V+L*G,e[11]=v*O+C*V+_*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var Ote=ye((Ktr,zte)=>{zte.exports=Ntt;function Ntt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*n,e[5]=o*i+c*n,e[6]=s*i+f*n,e[7]=l*i+h*n,e[8]=u*i-a*n,e[9]=c*i-o*n,e[10]=f*i-s*n,e[11]=h*i-l*n,e}});var Bte=ye((Jtr,qte)=>{qte.exports=Utt;function Utt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*n,e[1]=o*i-c*n,e[2]=s*i-f*n,e[3]=l*i-h*n,e[8]=a*n+u*i,e[9]=o*n+c*i,e[10]=s*n+f*i,e[11]=l*n+h*i,e}});var Ute=ye(($tr,Nte)=>{Nte.exports=Vtt;function Vtt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],f=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*n,e[1]=o*i+c*n,e[2]=s*i+f*n,e[3]=l*i+h*n,e[4]=u*i-a*n,e[5]=c*i-o*n,e[6]=f*i-s*n,e[7]=h*i-l*n,e}});var Gte=ye((Qtr,Vte)=>{Vte.exports=Gtt;function Gtt(e,t,r){var n,i,a,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,s*=u,l*=u,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+l*n,e[2]=l*o*a-s*n,e[3]=0,e[4]=o*s*a-l*n,e[5]=s*s*a+i,e[6]=l*s*a+o*n,e[7]=0,e[8]=o*l*a+s*n,e[9]=s*l*a-o*n,e[10]=l*l*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var jte=ye((err,Hte)=>{Hte.exports=Htt;function Htt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,l=i+i,u=a+a,c=n*s,f=n*l,h=n*u,d=i*l,v=i*u,x=a*u,b=o*s,p=o*l,C=o*u;return e[0]=1-(d+x),e[1]=f+C,e[2]=h-p,e[3]=0,e[4]=f-C,e[5]=1-(c+x),e[6]=v+b,e[7]=0,e[8]=h+p,e[9]=v-b,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Xte=ye((trr,Wte)=>{Wte.exports=jtt;function jtt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Yte=ye((rrr,Zte)=>{Zte.exports=Wtt;function Wtt(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var Jte=ye((irr,Kte)=>{Kte.exports=Xtt;function Xtt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Qte=ye((nrr,$te)=>{$te.exports=Ztt;function Ztt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var tre=ye((arr,ere)=>{ere.exports=Ytt;function Ytt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var DO=ye((orr,rre)=>{rre.exports=Ktt;function Ktt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,f=n*s,h=i*o,d=i*s,v=i*l,x=a*o,b=a*s,p=a*l;return e[0]=1-f-v,e[1]=c+p,e[2]=h-b,e[3]=0,e[4]=c-p,e[5]=1-u-v,e[6]=d+x,e[7]=0,e[8]=h+b,e[9]=d-x,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var nre=ye((srr,ire)=>{ire.exports=Jtt;function Jtt(e,t,r,n,i,a,o){var s=1/(r-t),l=1/(i-n),u=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*l,e[10]=(o+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*u,e[15]=0,e}});var ore=ye((lrr,are)=>{are.exports=$tt;function $tt(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}});var lre=ye((urr,sre)=>{sre.exports=Qtt;function Qtt(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(i-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}});var cre=ye((crr,ure)=>{ure.exports=ert;function ert(e,t,r,n,i,a,o){var s=1/(t-r),l=1/(n-i),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*l,e[14]=(o+a)*u,e[15]=1,e}});var hre=ye((frr,fre)=>{var trt=RO();fre.exports=rrt;function rrt(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v=t[0],x=t[1],b=t[2],p=n[0],C=n[1],E=n[2],A=r[0],L=r[1],_=r[2];return Math.abs(v-A)<1e-6&&Math.abs(x-L)<1e-6&&Math.abs(b-_)<1e-6?trt(e):(c=v-A,f=x-L,h=b-_,d=1/Math.sqrt(c*c+f*f+h*h),c*=d,f*=d,h*=d,i=C*h-E*f,a=E*c-p*h,o=p*f-C*c,d=Math.sqrt(i*i+a*a+o*o),d?(d=1/d,i*=d,a*=d,o*=d):(i=0,a=0,o=0),s=f*o-h*a,l=h*i-c*o,u=c*a-f*i,d=Math.sqrt(s*s+l*l+u*u),d?(d=1/d,s*=d,l*=d,u*=d):(s=0,l=0,u=0),e[0]=i,e[1]=s,e[2]=c,e[3]=0,e[4]=a,e[5]=l,e[6]=f,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(i*v+a*x+o*b),e[13]=-(s*v+l*x+u*b),e[14]=-(c*v+f*x+h*b),e[15]=1,e)}});var vre=ye((hrr,dre)=>{dre.exports=irt;function irt(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var FO=ye((drr,pre)=>{pre.exports={create:vte(),clone:gte(),copy:yte(),identity:RO(),transpose:bte(),invert:Tte(),adjoint:Ste(),determinant:Ete(),multiply:kte(),translate:Pte(),scale:Rte(),rotate:Fte(),rotateX:Ote(),rotateY:Bte(),rotateZ:Ute(),fromRotation:Gte(),fromRotationTranslation:jte(),fromScaling:Xte(),fromTranslation:Yte(),fromXRotation:Jte(),fromYRotation:Qte(),fromZRotation:tre(),fromQuat:DO(),frustum:nre(),perspective:ore(),perspectiveFromFieldOfView:lre(),ortho:cre(),lookAt:hre(),str:vre()}});var b6=ye(fh=>{"use strict";var nrt=FO();fh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var art=Oa(),gre=G1(),ort=b6(),srt=FO();function lrt(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function urt(e){var t=art.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function mre(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function crt(e,t){yre("global",e,t)}function yre(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);if(!(i&&i.matches(".no-inline-styles"))){i||(i=document.createElement("style"),i.setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):gre.warn("addStyleRule failed"):gre.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function frt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&mre(r)}function hrt(e,t,r,n,i,a){var o=n.split(":"),s=i.split(":"),l="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(u){u.getAttribute(l)||(u.addEventListener("mouseenter",function(){var c=this.querySelector(r);c&&(c.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var c=this.querySelector(r);c&&(t&&this.matches(t)?c.style[o[0]]=o[1]:c.style[s[0]]=s[1])}),u.setAttribute(l,!0))})}function drt(e){var t=xre(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(n){var i=_re(n);if(i){var a=ort.convertCssMatrix(i);r=srt.multiply(r,r,a)}}),r}function _re(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function xre(e){for(var t=[];vrt(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function vrt(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function prt(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}bre.exports={getGraphDiv:lrt,isPlotDiv:urt,removeElement:mre,addStyleRule:crt,addRelatedStyleRule:yre,deleteRelatedStyleRule:frt,setStyleOnHover:hrt,getFullTransformMatrix:drt,getElementTransformMatrix:_re,getElementAndAncestors:xre,equalDomRects:prt}});var qS=ye((grr,wre)=>{"use strict";wre.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var mc=ye((mrr,kre)=>{"use strict";var Are=Ao().extendFlat,grt=gy(),Sre={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Mre={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},mrt=Sre.flags.slice().concat(["fullReplot"]),yrt=Mre.flags.slice().concat("layoutReplot");kre.exports={traces:Sre,layout:Mre,traceFlags:function(){return Tre(mrt)},layoutFlags:function(){return Tre(yrt)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";zO.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};zO.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var OO=ye((_rr,Lre)=>{"use strict";Lre.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Qo=ye(BS=>{"use strict";var Pre=OO(),_rt=Pre.FORMAT_LINK,xrt=Pre.DATE_FORMAT_LINK;function brt(e){var t=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(t?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,_rt,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,xrt,"for details on the date formatting syntax."].join(" ")}BS.templateFormatStringDescription=brt;function qO(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var n=[],i=0;i{"use strict";function H1(e,t){return t?t.d2l(e):e}function Ire(e,t){return t?t.l2d(e):e}function wrt(e){return e.x0}function Trt(e){return e.x1}function Art(e){return e.y0}function Srt(e){return e.y1}function Rre(e){return e.x0shift||0}function Dre(e){return e.x1shift||0}function Fre(e){return e.y0shift||0}function zre(e){return e.y1shift||0}function w6(e,t){return H1(e.x1,t)+Dre(e)-H1(e.x0,t)-Rre(e)}function T6(e,t,r){return H1(e.y1,r)+zre(e)-H1(e.y0,r)-Fre(e)}function Mrt(e,t){return Math.abs(w6(e,t))}function Ert(e,t,r){return Math.abs(T6(e,t,r))}function Crt(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(w6(e,t),2)+Math.pow(T6(e,t,r),2))}function krt(e,t){return Ire((H1(e.x1,t)+Dre(e)+H1(e.x0,t)+Rre(e))/2,t)}function Lrt(e,t,r){return Ire((H1(e.y1,r)+zre(e)+H1(e.y0,r)+Fre(e))/2,r)}function Prt(e,t,r){return e.type!=="line"?void 0:T6(e,t,r)/w6(e,t)}Ore.exports={x0:wrt,x1:Trt,y0:Art,y1:Srt,slope:Prt,dx:w6,dy:T6,width:Mrt,height:Ert,length:Crt,xcenter:krt,ycenter:Lrt}});var Nre=ye((wrr,Bre)=>{"use strict";var Irt=mc().overrideAll,cb=Gl(),qre=ec(),Rrt=Pd().dash,j1=Ao().extendFlat,Drt=Qo().shapeTexttemplateAttrs,Frt=A6();Bre.exports=Irt({newshape:{visible:j1({},cb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:j1({},cb.legend,{}),legendgroup:j1({},cb.legendgroup,{}),legendgrouptitle:{text:j1({},cb.legendgrouptitle.text,{}),font:qre({})},legendrank:j1({},cb.legendrank,{}),legendwidth:j1({},cb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:j1({},Rrt,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:j1({},cb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Drt({newshape:!0},{keys:Object.keys(Frt)}),font:qre({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var Vre=ye((Trr,Ure)=>{"use strict";var zrt=Pd().dash,Ort=Ao().extendFlat;Ure.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:Ort({},zrt,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var S6=ye((Arr,Gre)=>{"use strict";Gre.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var s3=ye((Srr,Xre)=>{"use strict";var BO=ec(),qrt=qS(),M6=Eh(),Hre=Nre(),jre=Vre(),Brt=S6(),Wre=Ao().extendFlat,E6=BO({editType:"calc"});E6.family.dflt='"Open Sans", verdana, arial, sans-serif';E6.size.dflt=12;E6.color.dflt=M6.defaultLine;Xre.exports={font:E6,title:{text:{valType:"string",editType:"layoutstyle"},font:BO({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:BO({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:Wre(Brt({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:M6.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:M6.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:M6.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:Hre.newshape,activeshape:Hre.activeshape,newselection:jre.newselection,activeselection:jre.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Wre({},qrt.transition,{editType:"none"})}});var Zre=ye(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var qa=ye(tl=>{"use strict";var l3=G1(),Yre=x6(),Kre=IO(),Nrt=gy(),Urt=OS().addStyleRule,Jre=Ao(),Vrt=Gl(),Grt=s3(),Hrt=Jre.extendFlat,NO=Jre.extendDeepAll;tl.modules={};tl.allCategories={};tl.allTypes=[];tl.subplotsRegistry={};tl.componentsRegistry={};tl.layoutArrayContainers=[];tl.layoutArrayRegexes=[];tl.traceLayoutAttributes={};tl.localeRegistry={};tl.apiMethodRegistry={};tl.collectableSubplotTypes=null;tl.register=function(t){if(tl.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var Krt=e3().timeFormat,lie=Eo(),UO=G1(),X1=r3().mod,f3=hs(),_0=f3.BADNUM,bp=f3.ONEDAY,NS=f3.ONEHOUR,W1=f3.ONEMIN,c3=f3.ONESEC,US=f3.EPOCHJD,my=qa(),rie=e3().utcFormat,Jrt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,$rt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,iie=new Date().getFullYear()-70;function yy(e){return e&&my.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}hh.dateTick0=function(e,t){var r=Qrt(e,!!t);if(t<2)return r;var n=hh.dateTime2ms(r,e);return n+=bp*(t-1),hh.ms2DateTime(n,0,e)};function Qrt(e,t){return yy(e)?t?my.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:my.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}hh.dfltRange=function(e){return yy(e)?my.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};hh.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var k6,L6;hh.dateTime2ms=function(e,t){if(hh.isJSDate(e)){var r=e.getTimezoneOffset()*W1,n=(e.getUTCMinutes()-e.getMinutes())*W1+(e.getUTCSeconds()-e.getSeconds())*c3+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var i=3*W1;r=r-i/2+X1(n-r+i/2,i)}return e=Number(e)-r,e>=k6&&e<=L6?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=yy(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.substr(1),t="");var s=a&&t.substr(0,7)==="chinese",l=e.match(s?$rt:Jrt);if(!l)return _0;var u=l[1],c=l[3]||"1",f=Number(l[5]||1),h=Number(l[7]||0),d=Number(l[9]||0),v=Number(l[11]||0);if(a){if(u.length===2)return _0;u=Number(u);var x;try{var b=my.getComponentMethod("calendars","getCal")(t);if(s){var p=c.charAt(c.length-1)==="i";c=parseInt(c,10),x=b.newDate(u,b.toMonthIndex(u,c,p),f)}else x=b.newDate(u,Number(c),f)}catch(E){return _0}return x?(x.toJD()-US)*bp+h*NS+d*W1+v*c3:_0}u.length===2?u=(Number(u)+2e3-iie)%100+iie:u=Number(u),c-=1;var C=new Date(Date.UTC(2e3,c,f,h,d));return C.setUTCFullYear(u),C.getUTCMonth()!==c||C.getUTCDate()!==f?_0:C.getTime()+v*c3};k6=hh.MIN_MS=hh.dateTime2ms("-9999");L6=hh.MAX_MS=hh.dateTime2ms("9999-12-31 23:59:59.9999");hh.isDateTime=function(e,t){return hh.dateTime2ms(e,t)!==_0};function u3(e,t){return String(e+Math.pow(10,t)).substr(1)}var C6=90*bp,nie=3*NS,aie=5*W1;hh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=k6&&e<=L6))return _0;t||(t=0);var n=Math.floor(X1(e+.05,1)*10),i=Math.round(e-n/10),a,o,s,l,u,c;if(yy(r)){var f=Math.floor(i/bp)+US,h=Math.floor(X1(e,bp));try{a=my.getComponentMethod("calendars","getCal")(r).fromJD(f).formatDate("yyyy-mm-dd")}catch(d){a=rie("G%Y-%m-%d")(new Date(i))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;o=t=k6+bp&&e<=L6-bp))return _0;var t=Math.floor(X1(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=Krt("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return uie(n,i,a,o,s)};function uie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+u3(t,2)+":"+u3(r,2),(n||i)&&(e+=":"+u3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+u3(i,a)}return e}hh.cleanDate=function(e,t,r){if(e===_0)return t;if(hh.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(yy(r))return UO.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=hh.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!hh.isDateTime(e,r))return UO.error("unrecognized date",e),t;return e};var eit=/%\d?f/g,tit=/%h/g,rit={1:"1",2:"1",3:"2",4:"2"};function oie(e,t,r,n){e=e.replace(eit,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return s});var i=new Date(Math.floor(t+.05));if(e=e.replace(tit,function(){return rit[r("%q")(i)]}),yy(n))try{e=my.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var iit=[59,59.9,59.99,59.999,59.9999];function nit(e,t){var r=X1(e+.05,bp),n=u3(Math.floor(r/NS),2)+":"+u3(X1(Math.floor(r/W1),60),2);if(t!=="M"){lie(t)||(t=0);var i=Math.min(X1(e/c3,60),iit[t]),a=(100+i).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}hh.formatDate=function(e,t,r,n,i,a){if(i=yy(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` -`+a.year;else return nit(e,r)+` -`+oie(a.dayMonthYear,e,n,i);return oie(t,e,n,i)};var sie=3*bp;hh.incrementMonth=function(e,t,r){r=yy(r)&&r;var n=X1(e,bp);if(e=Math.round(e-n),r)try{var i=Math.round(e/bp)+US,a=my.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-US)*bp+n}catch(l){UO.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+sie);return s.setUTCMonth(s.getUTCMonth()+t)+n-sie};hh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,l=yy(t)&&my.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";fie.exports=function(t){return t}});var P6=ye(_y=>{"use strict";var ait=Eo(),oit=G1(),sit=VS(),lit=hs().BADNUM,VO=1e-9;_y.findBin=function(e,t,r){if(ait(t.start))return r?Math.ceil((e-t.start)/t.size-VO)-1:Math.floor((e-t.start)/t.size+VO);var n=0,i=t.length,a=0,o=i>1?(t[i-1]-t[0])/(i-1):1,s,l;for(o>=0?l=r?uit:cit:l=r?hit:fit,e+=o*VO*(r?-1:1)*(o>=0?1:-1);n90&&oit.log("Long binary search..."),n-1};function uit(e,t){return et}function hit(e,t){return e>=t}_y.sorterAsc=function(e,t){return e-t};_y.sorterDes=function(e,t){return t-e};_y.distinctVals=function(e){var t=e.slice();t.sort(_y.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===lit;r--);for(var n=t[r]-t[0]||1,i=n/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var l=t[s],u=l-o;o===void 0?(a.push(l),o=l):u>i&&(n=Math.min(n,u),a.push(l),o=l)}return{vals:a,minDiff:n}};_y.roundUp=function(e,t,r){for(var n=0,i=t.length-1,a,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;n0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()};_y.findIndexOfMin=function(e,t){t=t||sit;for(var r=1/0,n,i=0;i{"use strict";hie.exports=function(t){return Object.keys(t).sort()}});var die=ye(dh=>{"use strict";var GS=Eo(),dit=vv().isArrayOrTypedArray;dh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),GS(t)||(t=!1),dit(r[0])){for(a=new Array(n),i=0;ie.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var yie=ye((Drr,mie)=>{"use strict";var vie=r3(),GO=vie.mod,vit=vie.modHalf,HS=Math.PI,Y1=2*HS;function pit(e){return e/180*HS}function git(e){return e/HS*180}function HO(e){return Math.abs(e[1]-e[0])>Y1-1e-14}function pie(e,t){return vit(t-e,Y1)}function mit(e,t){return Math.abs(pie(e,t))}function gie(e,t){if(HO(t))return!0;var r,n;t[0]n&&(n+=Y1);var i=GO(e,Y1),a=i+Y1;return i>=r&&i<=n||a>=r&&a<=n}function yit(e,t,r,n){if(!gie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function jO(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=HO([r,n]),l,u,c,f,h;s?(l=0,u=HS,c=Y1):r{"use strict";fb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};fb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};fb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};fb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};fb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};fb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var wie=ye(hb=>{"use strict";var WO=r3().mod;hb.segmentsIntersect=bie;function bie(e,t,r,n,i,a,o,s){var l=r-e,u=i-e,c=o-i,f=n-t,h=a-t,d=s-a,v=l*d-c*f;if(v===0)return null;var x=(u*d-c*h)/v,b=(u*f-l*h)/v;return b<0||b>1||x<0||x>1?null:{x:e+l*x,y:t+f*x}}hb.segmentDistance=function(t,r,n,i,a,o,s,l){if(bie(t,r,n,i,a,o,s,l))return 0;var u=n-t,c=i-r,f=s-a,h=l-o,d=u*u+c*c,v=f*f+h*h,x=Math.min(I6(u,c,d,a-t,o-r),I6(u,c,d,s-t,l-r),I6(f,h,v,t-a,r-o),I6(f,h,v,n-a,i-o));return Math.sqrt(x)};function I6(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}else{var l=n*t-i*e;return l*l/r}}var R6,XO,xie;hb.getTextLocation=function(t,r,n,i){if((t!==XO||i!==xie)&&(R6={},XO=t,xie=i),R6[n])return R6[n];var a=t.getPointAtLength(WO(n-i/2,r)),o=t.getPointAtLength(WO(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),l=t.getPointAtLength(WO(n,r)),u=(l.x*4+a.x+o.x)/6,c=(l.y*4+a.y+o.y)/6,f={x:u,y:c,theta:s};return R6[n]=f,f};hb.clearLocationCache=function(){XO=null};hb.getVisibleSegment=function(t,r,n){var i=r.left,a=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),c=u,f,h;function d(x){var b=t.getPointAtLength(x);x===0?f=b:x===u&&(h=b);var p=b.xa?b.x-a:0,C=b.ys?b.y-s:0;return Math.sqrt(p*p+C*C)}for(var v=d(l);v;){if(l+=v+n,l>c)return;v=d(l)}for(v=d(c);v;){if(c-=v+n,l>c)return;v=d(c)}return{min:l,max:c,len:c-l,total:u,isClosed:l===0&&c===u&&Math.abs(f.x-h.x)<.1&&Math.abs(f.y-h.y)<.1}};hb.findPointOnPath=function(t,r,n,i){i=i||{};for(var a=i.pathLength||t.getTotalLength(),o=i.tolerance||.001,s=i.iterationLimit||30,l=t.getPointAtLength(0)[n]>t.getPointAtLength(a)[n]?-1:1,u=0,c=0,f=a,h,d,v;u0?f=h:c=h,u++}return d}});var D6=ye(jS=>{"use strict";var xy={};jS.throttle=function(t,r,n){var i=xy[t],a=Date.now();if(!i){for(var o in xy)xy[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};jS.done=function(e){var t=xy[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};jS.clear=function(e){if(e)Tie(xy[e]),delete xy[e];else for(var t in xy)jS.clear(t)};function Tie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Sie=ye((qrr,Aie)=>{"use strict";Aie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Mie=ye((Brr,F6)=>{"use strict";F6.exports=ZO;F6.exports.isMobile=ZO;F6.exports.default=ZO;var wit=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Tit=/CrOS/,Ait=/android|ipad|playbook|silk/i;function ZO(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=wit.test(t)&&!Tit.test(t)||!!e.tablet&&Ait.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var Cie=ye((Nrr,Eie)=>{"use strict";var Sit=Eo(),Mit=Mie();Eie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=Eit(),typeof r!="string")return!0;var n=Mit({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var i=r.split(" "),a=1;a-1;s--){var l=i[s];if(l.substr(0,8)==="Version/"){var u=l.substr(8).split(".")[0];if(Sit(u)&&(u=+u),u>=13)return!0}}}return n};function Eit(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Lie=ye((Urr,kie)=>{"use strict";var Cit=Oa();kie.exports=function(t,r,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each(function(o){o[0][a]=Cit.select(this)}),i}});var Iie=ye((Vrr,Pie)=>{"use strict";var kit=qa();Pie.exports=function(t,r){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var l=s[r];if(l)return l}a=kit.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return r}});var YO=ye((Grr,Rie)=>{"use strict";Rie.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";Die.exports=function(t){for(var r=Iit(t)?Pit:Lit,n=[],i=0;i{"use strict";zie.exports=function(t,r){if(!r)return t;var n=1/Math.abs(r),i=n>1?(n*t+n*r)/n:t+r,a=String(i).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var l=parseFloat(i).toPrecision(12);l.indexOf("e+")===-1&&(i=+l)}}return i}});var Bie=ye((Wrr,qie)=>{"use strict";var Rit=Eo(),Dit=hs().BADNUM,Fit=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;qie.exports=function(t){return typeof t=="string"&&(t=t.replace(Fit,"")),Rit(t)?Number(t):Dit}});var Dr=ye((Xrr,$ie)=>{"use strict";var WS=Oa(),zit=e3().utcFormat,Oit=yO().format,jie=Eo(),Wie=hs(),Xie=Wie.FP_SAFE,qit=-Xie,Nie=Wie.BADNUM,Si=$ie.exports={};Si.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var Uie={};Si.warnBadFormat=function(e){var t=String(e);Uie[t]||(Uie[t]=1,Si.warn('encountered bad format: "'+t+'"'))};Si.noFormat=function(e){return String(e)};Si.numberFormat=function(e){var t;try{t=Oit(Si.adjustFormat(e))}catch(r){return Si.warnBadFormat(e),Si.noFormat}return t};Si.nestedProperty=CS();Si.keyedContainer=Ree();Si.relativeAttr=Fee();Si.isPlainObject=gy();Si.toLogRange=p6();Si.relinkPrivateKeys=Bee();var K1=vv();Si.isArrayBuffer=K1.isArrayBuffer;Si.isTypedArray=K1.isTypedArray;Si.isArrayOrTypedArray=K1.isArrayOrTypedArray;Si.isArray1D=K1.isArray1D;Si.ensureArray=K1.ensureArray;Si.concat=K1.concat;Si.maxRowLength=K1.maxRowLength;Si.minRowLength=K1.minRowLength;var Zie=r3();Si.mod=Zie.mod;Si.modHalf=Zie.modHalf;var J1=nte();Si.valObjectMeta=J1.valObjectMeta;Si.coerce=J1.coerce;Si.coerce2=J1.coerce2;Si.coerceFont=J1.coerceFont;Si.coercePattern=J1.coercePattern;Si.coerceHoverinfo=J1.coerceHoverinfo;Si.coerceSelectionMarkerOpacity=J1.coerceSelectionMarkerOpacity;Si.validate=J1.validate;var jp=cie();Si.dateTime2ms=jp.dateTime2ms;Si.isDateTime=jp.isDateTime;Si.ms2DateTime=jp.ms2DateTime;Si.ms2DateTimeLocal=jp.ms2DateTimeLocal;Si.cleanDate=jp.cleanDate;Si.isJSDate=jp.isJSDate;Si.formatDate=jp.formatDate;Si.incrementMonth=jp.incrementMonth;Si.dateTick0=jp.dateTick0;Si.dfltRange=jp.dfltRange;Si.findExactDates=jp.findExactDates;Si.MIN_MS=jp.MIN_MS;Si.MAX_MS=jp.MAX_MS;var db=P6();Si.findBin=db.findBin;Si.sorterAsc=db.sorterAsc;Si.sorterDes=db.sorterDes;Si.distinctVals=db.distinctVals;Si.roundUp=db.roundUp;Si.sort=db.sort;Si.findIndexOfMin=db.findIndexOfMin;Si.sortObjectKeys=Z1();var by=die();Si.aggNums=by.aggNums;Si.len=by.len;Si.mean=by.mean;Si.geometricMean=by.geometricMean;Si.median=by.median;Si.midRange=by.midRange;Si.variance=by.variance;Si.stdev=by.stdev;Si.interp=by.interp;var yg=b6();Si.init2dArray=yg.init2dArray;Si.transposeRagged=yg.transposeRagged;Si.dot=yg.dot;Si.translationMatrix=yg.translationMatrix;Si.rotationMatrix=yg.rotationMatrix;Si.rotationXYMatrix=yg.rotationXYMatrix;Si.apply3DTransform=yg.apply3DTransform;Si.apply2DTransform=yg.apply2DTransform;Si.apply2DTransform2=yg.apply2DTransform2;Si.convertCssMatrix=yg.convertCssMatrix;Si.inverseTransformMatrix=yg.inverseTransformMatrix;var vm=yie();Si.deg2rad=vm.deg2rad;Si.rad2deg=vm.rad2deg;Si.angleDelta=vm.angleDelta;Si.angleDist=vm.angleDist;Si.isFullCircle=vm.isFullCircle;Si.isAngleInsideSector=vm.isAngleInsideSector;Si.isPtInsideSector=vm.isPtInsideSector;Si.pathArc=vm.pathArc;Si.pathSector=vm.pathSector;Si.pathAnnulus=vm.pathAnnulus;var d3=_ie();Si.isLeftAnchor=d3.isLeftAnchor;Si.isCenterAnchor=d3.isCenterAnchor;Si.isRightAnchor=d3.isRightAnchor;Si.isTopAnchor=d3.isTopAnchor;Si.isMiddleAnchor=d3.isMiddleAnchor;Si.isBottomAnchor=d3.isBottomAnchor;var v3=wie();Si.segmentsIntersect=v3.segmentsIntersect;Si.segmentDistance=v3.segmentDistance;Si.getTextLocation=v3.getTextLocation;Si.clearLocationCache=v3.clearLocationCache;Si.getVisibleSegment=v3.getVisibleSegment;Si.findPointOnPath=v3.findPointOnPath;var q6=Ao();Si.extendFlat=q6.extendFlat;Si.extendDeep=q6.extendDeep;Si.extendDeepAll=q6.extendDeepAll;Si.extendDeepNoArrays=q6.extendDeepNoArrays;var KO=G1();Si.log=KO.log;Si.warn=KO.warn;Si.error=KO.error;var Bit=n3();Si.counterRegex=Bit.counter;var JO=D6();Si.throttle=JO.throttle;Si.throttleDone=JO.done;Si.clearThrottle=JO.clear;var _g=OS();Si.getGraphDiv=_g.getGraphDiv;Si.isPlotDiv=_g.isPlotDiv;Si.removeElement=_g.removeElement;Si.addStyleRule=_g.addStyleRule;Si.addRelatedStyleRule=_g.addRelatedStyleRule;Si.deleteRelatedStyleRule=_g.deleteRelatedStyleRule;Si.setStyleOnHover=_g.setStyleOnHover;Si.getFullTransformMatrix=_g.getFullTransformMatrix;Si.getElementTransformMatrix=_g.getElementTransformMatrix;Si.getElementAndAncestors=_g.getElementAndAncestors;Si.equalDomRects=_g.equalDomRects;Si.clearResponsive=Sie();Si.preserveDrawingBuffer=Cie();Si.makeTraceGroups=Lie();Si._=Iie();Si.notifier=kO();Si.filterUnique=YO();Si.filterVisible=Fie();Si.pushUnique=IO();Si.increment=Oie();Si.cleanNumber=Bie();Si.ensureNumber=function(t){return jie(t)?(t=Number(t),t>Xie||t=t?!1:jie(e)&&e>=0&&e%1===0};Si.noop=x6();Si.identity=VS();Si.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};Si.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};Si.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(Si.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};Si.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r};Si.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,i=2*t-1,a=new Array(i),o=new Array(r),s,l,u,c;for(s=0;s=n&&(u-=n*Math.floor(u/n)),u<0?u=-1-u:u>=r&&(u=n-1-u),c+=e[u]*a[l];o[s]=c}return o};Si.syncOrAsync=function(e,t,r){var n,i;function a(){return Si.syncOrAsync(e,t,r)}for(;e.length;)if(i=e.splice(0,1)[0],n=i(t),n&&n.then)return n.then(a);return r&&r(t)};Si.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};Si.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};Si.fillArray=function(e,t,r,n){if(n=n||Si.identity,Si.isArrayOrTypedArray(e))for(var i=0;iVit.test(window.navigator.userAgent);var Git=/Firefox\/(\d+)\.\d+/;Si.getFirefoxVersion=function(){var e=Git.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};Si.isD3Selection=function(e){return e instanceof WS.selection};Si.ensureSingle=function(e,t,r,n){var i=e.select(t+(r?"."+r:""));if(i.size())return i;var a=e.append(t);return r&&a.classed(r,!0),n&&a.call(n),a};Si.ensureSingleById=function(e,t,r,n){var i=e.select(t+"#"+r);if(i.size())return i;var a=e.append(t).attr("id",r);return n&&a.call(n),a};Si.objectFromPath=function(e,t){for(var r=e.split("."),n,i=n={},a=0;a1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+l};Si.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Jie=/^\w*$/;Si.templateString=function(e,t){var r={};return e.replace(Si.TEMPLATE_STRING_REGEX,function(n,i){var a;return Jie.test(i)?a=t[i]:(r[i]=r[i]||Si.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var Wit={max:10,count:0,name:"hovertemplate"};Si.hovertemplateString=function(){return $O.apply(Wit,arguments)};var Xit={max:10,count:0,name:"texttemplate"};Si.texttemplateString=function(){return $O.apply(Xit,arguments)};var Zit=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Yit(e){var t=e.match(Zit);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var Kit={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Si.texttemplateStringForShapes=function(){return $O.apply(Kit,arguments)};var Vie=/^[:|\|]/;function $O(e,t,r){var n=this,i=arguments;return t||(t={}),e.replace(Si.TEMPLATE_STRING_REGEX,function(a,o,s){var l=o==="xother"||o==="yother",u=o==="_xother"||o==="_yother",c=o==="_xother_"||o==="_yother_",f=o==="xother_"||o==="yother_",h=l||u||f||c,d=o;(u||c)&&(d=d.substring(1)),(f||c)&&(d=d.substring(0,d.length-1));var v=null,x=null;if(n.parseMultDiv){var b=Yit(d);d=b.key,v=b.op,x=b.number}var p;if(h){if(p=t[d],p===void 0)return""}else{var C,E;for(E=3;E=O6&&o<=Gie,u=s>=O6&&s<=Gie;if(l&&(n=10*n+o-O6),u&&(i=10*i+s-O6),!l||!u){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var h3=2e9;Si.seedPseudoRandom=function(){h3=2e9};Si.pseudoRandom=function(){var e=h3;return h3=(69069*h3+1)%4294967296,Math.abs(h3-e)<429496729?Si.pseudoRandom():h3/4294967296};Si.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=Si.extractOption(e,t,"htx","hovertext");if(Si.isValidTextValue(i))return n(i);var a=Si.extractOption(e,t,"tx","text");if(Si.isValidTextValue(a))return n(a)};Si.isValidTextValue=function(e){return e||e===0};Si.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(u=1):u=0,Si.strTranslate(i-u*(r+o),a-u*(n+s))+Si.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+n)+")":"")};Si.setTransormAndDisplay=function(e,t){e.attr("transform",Si.getTextTransform(t)),e.style("display",t.scale?null:"none")};Si.ensureUniformFontSize=function(e,t){var r=Si.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};Si.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)};Si.bigFont=function(e){return Math.round(1.2*e)};var Hie=Si.getFirefoxVersion(),Jit=Hie!==null&&Hie<86;Si.getPositionFromD3Event=function(){return Jit?[WS.event.layerX,WS.event.layerY]:[WS.event.offsetX,WS.event.offsetY]}});var tne=ye(()=>{"use strict";var $it=Dr(),Qie={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(QO in Qie)ene=QO.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),$it.addStyleRule(ene,Qie[QO]);var ene,QO});var eq=ye((Krr,rne)=>{rne.exports=!0});var rq=ye((Jrr,ine)=>{"use strict";var Qit=eq(),tq;typeof window.matchMedia=="function"?tq=!window.matchMedia("(hover: none)").matches:tq=Qit;ine.exports=tq});var vb=ye(($rr,iq)=>{"use strict";var p3=typeof Reflect=="object"?Reflect:null,nne=p3&&typeof p3.apply=="function"?p3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},B6;p3&&typeof p3.ownKeys=="function"?B6=p3.ownKeys:Object.getOwnPropertySymbols?B6=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:B6=function(t){return Object.getOwnPropertyNames(t)};function ent(e){console&&console.warn&&console.warn(e)}var one=Number.isNaN||function(t){return t!==t};function Jc(){Jc.init.call(this)}iq.exports=Jc;iq.exports.once=nnt;Jc.EventEmitter=Jc;Jc.prototype._events=void 0;Jc.prototype._eventsCount=0;Jc.prototype._maxListeners=void 0;var ane=10;function N6(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Jc,"defaultMaxListeners",{enumerable:!0,get:function(){return ane},set:function(e){if(typeof e!="number"||e<0||one(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ane=e}});Jc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Jc.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||one(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function sne(e){return e._maxListeners===void 0?Jc.defaultMaxListeners:e._maxListeners}Jc.prototype.getMaxListeners=function(){return sne(this)};Jc.prototype.emit=function(t){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[t];if(l===void 0)return!1;if(typeof l=="function")nne(l,this,r);else for(var u=l.length,c=hne(l,u),n=0;n0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,ent(s)}return e}Jc.prototype.addListener=function(t,r){return lne(this,t,r,!1)};Jc.prototype.on=Jc.prototype.addListener;Jc.prototype.prependListener=function(t,r){return lne(this,t,r,!0)};function tnt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function une(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=tnt.bind(n);return i.listener=r,n.wrapFn=i,i}Jc.prototype.once=function(t,r){return N6(r),this.on(t,une(this,t,r)),this};Jc.prototype.prependOnceListener=function(t,r){return N6(r),this.prependListener(t,une(this,t,r)),this};Jc.prototype.removeListener=function(t,r){var n,i,a,o,s;if(N6(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():rnt(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};Jc.prototype.off=Jc.prototype.removeListener;Jc.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(t,r[i]);return this};function cne(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?int(i):hne(i,i.length)}Jc.prototype.listeners=function(t){return cne(this,t,!0)};Jc.prototype.rawListeners=function(t){return cne(this,t,!1)};Jc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):fne.call(e,t)};Jc.prototype.listenerCount=fne;function fne(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Jc.prototype.eventNames=function(){return this._eventsCount>0?B6(this._events):[]};function hne(e,t){for(var r=new Array(t),n=0;n{"use strict";var nq=vb().EventEmitter,ont={init:function(e){if(e._ev instanceof nq)return e;var t=new nq,r=new nq;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,i){t.emit(n,i),r.emit(n,i)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var n,i=e._ev;if(!i)return;var a=i._events[t];if(!a)return;function o(l){if(l.listener){if(i.removeListener(t,l.listener),!l.fired)return l.fired=!0,l.listener.apply(i,[r])}else return l.apply(i,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var pne=Dr(),snt=ub().dfltConfig;function lnt(e,t){for(var r=[],n,i=0;isnt.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};wy.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};wy.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};wy.undo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n{"use strict";yne.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var _3=ye(Yh=>{"use strict";var x0=qa(),XS=Dr(),V6=Gl(),oq=s3(),unt=aq(),cnt=qS(),fnt=ub().configAttributes,_ne=mc(),xg=XS.extendDeepAll,m3=XS.isPlainObject,hnt=XS.isArrayOrTypedArray,G6=XS.nestedProperty,dnt=XS.valObjectMeta,sq="_isSubplotObj",H6="_isLinkedToArray",vnt="_arrayAttrRegexps",bne="_deprecated",lq=[sq,H6,vnt,bne];Yh.IS_SUBPLOT_OBJ=sq;Yh.IS_LINKED_TO_ARRAY=H6;Yh.DEPRECATED=bne;Yh.UNDERSCORE_ATTRS=lq;Yh.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=gnt(t)}),{defs:{valObjects:dnt,metaKeys:lq.concat(["description","role","editType","impliedEdits"]),editType:{traces:_ne.traces,layout:_ne.layout},impliedEdits:{}},traces:e,layout:mnt(),frames:ynt(),animation:y3(cnt),config:y3(fnt)}};Yh.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(lq.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!Yh.isValObject(o)&&m3(o)&&a!=="impliedEdits"&&Yh.crawl(o,t,i+1,s)}})};Yh.isValObject=function(e){return e&&e.valType!==void 0};Yh.findArrayAttributes=function(e){var t=[],r=[],n=[],i,a;function o(l,u,c,f){r=r.slice(0,f).concat([u]),n=n.slice(0,f).concat([l&&l._isLinkedToArray]);var h=l&&(l.valType==="data_array"||l.arrayOk===!0)&&!(r[f-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&s(i,0,"")}function s(l,u,c){var f=l[r[u]],h=c+r[u];if(u===r.length-1)hnt(f)&&t.push(a+h);else if(n[u]){if(Array.isArray(f))for(var d=0;d=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!U6(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function U6(e){return e===Math.round(e)&&e>=0}function gnt(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=xg({},V6),a=xg({},t.attributes);Yh.crawl(a,function(l,u,c,f,h){G6(i,h).set(void 0),l===void 0&&G6(a,h).set(void 0)}),xg(n,i),x0.traceIs(e,"noOpacity")&&delete n.opacity,x0.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),x0.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),t.selectPoints||delete n.selectedpoints,xg(n,a),r.attributes&&xg(n,r.attributes),n.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:y3(n)};if(t.layoutAttributes){var s={};xg(s,t.layoutAttributes),o.layoutAttributes=y3(s)}return t.animatable||Yh.crawl(o,function(l){Yh.isValObject(l)&&"anim"in l&&delete l.anim}),o}function mnt(){var e={},t,r;xg(e,oq);for(t in x0.subplotsRegistry)if(r=x0.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var n=0;n{"use strict";var x3=Dr(),Tnt=Gl(),$1="templateitemname",uq={name:{valType:"string",editType:"none"}};uq[$1]={valType:"string",editType:"calc"};pb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=uq.name,t[$1]=uq[$1],t};pb.traceTemplater=function(e){var t={},r,n;for(r in e)n=e[r],Array.isArray(n)&&n.length&&(t[r]=0);function i(a){r=x3.coerce(a,{},Tnt,"type");var o={type:r,_template:null};if(r in t){n=e[r];var s=t[r]%n.length;t[r]++,o._template=n[s]}return o}return{newTrace:i}};pb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);x3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};pb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Ane(t)],a=n&&n[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(u){var c={name:u.name,_input:u},f=c[$1]=u[$1];if(!Tne(f))return c._template=i,c;for(var h=0;h=n&&(r._input||{})._templateitemname;a&&(i=n);var o=t+"["+i+"]",s;function l(){s={},a&&(s[o]={},s[o][$1]=a)}l();function u(d,v){s[d]=v}function c(d,v){a?x3.nestedProperty(s[o],d).set(v):s[o+"."+d]=v}function f(){var d=s;return l(),d}function h(d,v){d&&c(d,v);var x=f();for(var b in x)x3.nestedProperty(e,b).set(x[b])}return{modifyBase:u,modifyItem:c,getUpdateObj:f,applyUpdate:h}}});var hd=ye((nir,Sne)=>{"use strict";var ZS=n3().counter;Sne.exports={idRegex:{x:ZS("x","( domain)?"),y:ZS("y","( domain)?")},attrRegex:ZS("[xy]axis"),xAxisMatch:ZS("xaxis"),yAxisMatch:ZS("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var hf=ye(wp=>{"use strict";var Ant=qa(),cq=hd();wp.id2name=function(t){if(!(typeof t!="string"||!t.match(cq.AX_ID_PATTERN))){var r=t.split(" ")[0].substr(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};wp.name2id=function(t){if(t.match(cq.AX_NAME_PATTERN)){var r=t.substr(5);return r==="1"&&(r=""),t.charAt(0)+r}};wp.cleanId=function(t,r,n){var i=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(cq.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(i&&!n)){var a=t.split(" ")[0].substr(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(i&&n?" domain":"")}};wp.list=function(e,t,r){var n=e._fullLayout;if(!n)return[];var i=wp.listIds(e,t),a=new Array(i.length),o;for(o=0;on?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)};wp.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Mne(e,t){if(t&&t.length){for(var r=0;r{"use strict";function Snt(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function Mnt(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Ene.exports={clearOutlineControllers:Snt,clearOutline:Mnt}});var j6=ye((sir,Cne)=>{"use strict";Cne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Id=ye(X6=>{"use strict";var W6=qa(),lir=hd().SUBPLOT_PATTERN;X6.getSubplotCalcData=function(e,t,r){var n=W6.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var Ent=qa(),b3=Dr();gb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=gb.hasSimpleAPICommandBindings(e,r,i.lookupTable);if(t&&t._commandObserver){if(o)return i;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,i}if(o){kne(e,o,i.cache),i.check=function(){if(a){var c=kne(e,o,i.cache);return c.changed&&n&&i.lookupTable[c.value]!==void 0&&(i.disable(),Promise.resolve(n({value:c.value,type:o.type,prop:o.prop,traces:o.traces,index:i.lookupTable[c.value]})).then(i.enable,i.enable)),c.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l0?".":"")+i;b3.isPlainObject(a)?fq(a,t,o,n+1):t(o,i,a)}})}});var Mc=ye((fir,Wne)=>{"use strict";var Bne=Oa(),knt=e3().timeFormatLocale,Lnt=yO().formatLocale,YS=Eo(),Pnt=_O(),Xl=qa(),Nne=_3(),Int=pl(),ja=Dr(),Une=Ca(),Rne=hs().BADNUM,Tp=hf(),Rnt=Q1().clearOutline,Dnt=j6(),hq=qS(),Fnt=aq(),znt=Id().getModuleCalcData,Dne=ja.relinkPrivateKeys,mb=ja._,ba=Wne.exports={};ja.extendFlat(ba,Xl);ba.attributes=Gl();ba.attributes.type.values=ba.allTypes;ba.fontAttrs=ec();ba.layoutAttributes=s3();var Y6=Ine();ba.executeAPICommand=Y6.executeAPICommand;ba.computeAPICommandBindings=Y6.computeAPICommandBindings;ba.manageCommandObserver=Y6.manageCommandObserver;ba.hasSimpleAPICommandBindings=Y6.hasSimpleAPICommandBindings;ba.redrawText=function(e){return e=ja.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Xl.getComponentMethod("annotations","draw")(e),Xl.getComponentMethod("legend","draw")(e),Xl.getComponentMethod("colorbar","draw")(e),t(ba.previousPromises(e)))},300)})};ba.resize=function(e){e=ja.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||ja.isHidden(e))&&i(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ja.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Xl.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r};ba.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};ba.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=ja.ensureSingle(t._paper,"text","js-plot-link-container",function(l){l.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Une.defaultLine,"pointer-events":"all"}).each(function(){var u=Bne.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var a=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Ont(e,a),o.text(a.text()&&s.text()?" - ":"")}};function Ont(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){ba.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}ba.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=Bne.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),i=n.append("input").attr({type:"text",name:"data"});return i.node().value=ba.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var qnt=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Bnt=["year","month","dayMonth","dayMonthYear"];ba.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var i=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],c=e._context||{},f;e._transitionData||ba.createTransitionData(e),i._dfltTitle={plot:mb(e,"Click to enter Plot title"),subtitle:mb(e,"Click to enter Plot subtitle"),x:mb(e,"Click to enter X axis title"),y:mb(e,"Click to enter Y axis title"),colorbar:mb(e,"Click to enter Colorscale title"),annotation:mb(e,"new text")},i._traceWord=mb(e,"trace");var h=Fne(e,qnt);if(i._mapboxAccessToken=c.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,v=n.height;ba.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=v),ba.sanitizeMargins(i)}else{ba.supplyLayoutGlobalDefaults(a,i,h);var x=!a.width||!a.height,b=i.autosize,p=c.autosizable,C=x&&(b||p);C?ba.plotAutoSize(e,a,i):x&&ba.sanitizeMargins(i),!b&&x&&(a.width=i.width,a.height=i.height)}i._d3locale=Vnt(h,i.separators),i._extraFormat=Fne(e,Bnt),i._initialAutoSizeIsDone=!0,i._dataLength=l.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var E=i._subplots=Unt(),A=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=Nnt(o,l),ba.supplyDataDefaults(l,s,a,i);var _=Object.keys(A.x),k=Object.keys(A.y);if(_.length>1&&k.length>1){for(Xl.getComponentMethod("grid","sizeDefaults")(a,i),f=0;f<_.length;f++)ja.pushUnique(E.xaxis,_[f]);for(f=0;f15&&k.length>15&&i.shapes.length===0&&i.images.length===0,ba.linkSubplots(s,i,o,n),ba.cleanPlot(s,i,o,n);var z=!!(n._has&&n._has("cartesian")),O=!!(i._has&&i._has("cartesian")),V=z,G=O;V&&!G?n._bgLayer.remove():G&&!V&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&Rnt({_fullLayout:n}),Gnt(s,i),Dne(i,n),Xl.getComponentMethod("colorscale","crossTraceDefaults")(s,i),i._preGUI||(i._preGUI={}),i._tracePreGUI||(i._tracePreGUI={});var Z=i._tracePreGUI,H={},N;for(N in Z)H[N]="old";for(f=0;f0){var c=1-2*a;o=Math.round(c*o),s=Math.round(c*s)}}var f=ba.layoutAttributes.width.min,h=ba.layoutAttributes.height.min;o1,v=!r.height&&Math.abs(n.height-s)>1;(v||d)&&(d&&(n.width=o),v&&(n.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),ba.sanitizeMargins(n)};ba.supplyLayoutModuleDefaults=function(e,t,r,n){var i=Xl.componentsRegistry,a=t._basePlotModules,o,s,l,u=Xl.subplotsRegistry.cartesian;for(o in i)l=i[o],l.includeBasePlot&&l.includeBasePlot(e,t);a.length||a.push(u),t._has("cartesian")&&(Xl.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var c in t._subplots)t._subplots[c].sort(ja.subplotSort);for(s=0;s1&&(r.l/=b,r.r/=b)}if(h){var p=(r.t+r.b)/h;p>1&&(r.t/=p,r.b/=p)}var C=r.xl!==void 0?r.xl:r.x,E=r.xr!==void 0?r.xr:r.x,A=r.yt!==void 0?r.yt:r.y,L=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:C,size:r.l+x},r:{val:E,size:r.r+x},b:{val:L,size:r.b+x},t:{val:A,size:r.t+x}},v[t]=1}if(!n._replotting)return ba.doAutoMargin(e)}};function jnt(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Tp.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}ba.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),Vne(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=ja.extendFlat({},i),l=a.l,u=a.r,c=a.t,f=a.b,h=t._pushmargin,d=t._pushmarginIds,v=t.minreducedwidth,x=t.minreducedheight;if(a.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var p=e._fullLayout._reservedMargin;for(var C in p)for(var E in p[C]){var A=p[C][E];o[E]=Math.max(o[E],A)}h.base={l:{val:0,size:l},r:{val:1,size:u},t:{val:1,size:c},b:{val:0,size:f}};for(var L in o){var _=0;for(var k in h)k!=="base"&&YS(h[k][L].size)&&(_=h[k][L].size>_?h[k][L].size:_);var M=Math.max(0,a[L]-_);o[L]=Math.max(0,o[L]-M)}for(var g in h){var P=h[g].l||{},T=h[g].b||{},z=P.val,O=P.size,V=T.val,G=T.size,Z=r-o.r-o.l,H=n-o.t-o.b;for(var N in h){if(YS(O)&&h[N].r){var j=h[N].r.val,re=h[N].r.size;if(j>z){var oe=(O*j+(re-Z)*z)/(j-z),_e=(re*(1-z)+(O-Z)*(1-j))/(j-z);oe+_e>l+u&&(l=oe,u=_e)}}if(YS(G)&&h[N].t){var Me=h[N].t.val,ke=h[N].t.size;if(Me>V){var me=(G*Me+(ke-H)*V)/(Me-V),ie=(ke*(1-V)+(G-H)*(1-Me))/(Me-V);me+ie>f+c&&(f=me,c=ie)}}}}}var Se=ja.constrain(r-a.l-a.r,Gne,v),Le=ja.constrain(n-a.t-a.b,Hne,x),Ae=Math.max(0,r-Se),De=Math.max(0,n-Le);if(Ae){var Pe=(l+u)/Ae;Pe>1&&(l/=Pe,u/=Pe)}if(De){var ge=(f+c)/De;ge>1&&(f/=ge,c/=ge)}if(i.l=Math.round(l)+o.l,i.r=Math.round(u)+o.r,i.t=Math.round(c)+o.t,i.b=Math.round(f)+o.b,i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&(ba.didMarginChange(s,i)||jnt(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Fe=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};ba.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&ba.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(ja.isPlainObject(h)){var v={},x;return Object.keys(h).sort().forEach(function(E){if(["_","["].indexOf(E.charAt(0))===-1){if(typeof h[E]=="function"){d&&(v[E]="_function");return}if(r==="keepdata"){if(E.substr(E.length-3)==="src")return}else if(r==="keepstream"){if(x=h[E+"src"],typeof x=="string"&&x.indexOf(":")>0&&!ja.isPlainObject(h.stream))return}else if(r!=="keepall"&&(x=h[E+"src"],typeof x=="string"&&x.indexOf(":")>0))return;v[E]=u(h[E],d)}}),v}var b=Array.isArray(h),p=ja.isTypedArray(h);if((b||p)&&h.dtype&&h.shape){var C=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:ja.isArrayBuffer(C)?Pnt.encode(C):C},d)}return b?h.map(function(E){return u(E,d)}):p?ja.simpleMap(h,ja.identity):ja.isJSDate(h)?ja.ms2DateTimeLocal(+h):h}var c={data:(o||[]).map(function(h){var d=u(h);return t&&delete d.fit,d})};if(!t&&(c.layout=u(s),i)){var f=s._size;c.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(c.frames=u(l)),a&&(c.config=u(e._context,!0)),n==="object"?c:JSON.stringify(c)};ba.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Xl.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function v(){return h++,function(){d++,!n&&d===h&&s(f)}}r.runFn(v),setTimeout(v())})}function s(f){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Xl.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(f)}function l(){if(e._transitionData)return e._transitioning=!1,i(e._transitionData._interruptCallbacks)}var u=[ba.previousPromises,l,r.prepareFn,ba.rehover,ba.reselect,o],c=ja.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve()),c.then(function(){return e})}ba.doCalcdata=function(e,t){var r=Tp.list(e),n=e._fullData,i=e._fullLayout,a,o,s,l,u=new Array(n.length),c=(e.calcdata||[]).slice();for(e.calcdata=u,i._numBoxes=0,i._numViolins=0,i._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,i._piecolormap={},i._sunburstcolormap={},i._treemapcolormap={},i._iciclecolormap={},i._funnelareacolormap={},s=0;s=0;l--)if(L[l].enabled){a._indexToPoints=L[l]._indexToPoints;break}o&&o.calc&&(A=o.calc(e,a))}(!Array.isArray(A)||!A[0])&&(A=[{x:Rne,y:Rne}]),A[0].t||(A[0].t={}),A[0].trace=a,u[C]=A}}for(One(r,n,i),s=0;s{"use strict";yb.xmlns="http://www.w3.org/2000/xmlns/";yb.svg="http://www.w3.org/2000/svg";yb.xlink="http://www.w3.org/1999/xlink";yb.svgAttrs={xmlns:yb.svg,"xmlns:xlink":yb.xlink}});var Kh=ye((dir,Xne)=>{"use strict";Xne.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ru=ye(b0=>{"use strict";var Ch=Oa(),Ty=Dr(),Ynt=Ty.strTranslate,dq=Wp(),Knt=Kh().LINE_SPACING,Jnt=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(Jnt),a=Ch.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var l=cat(e.node(),n);l&&e.style("pointer-events","all"),b0.positionText(e),r&&r.call(e)}return i?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),c={fontSize:u};tat(i[2],c,function(f,h,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var v=f&&f.select("svg");if(!v||!v.node()){s(),l();return}var x=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});x.node().appendChild(v.node()),h&&h.node()&&v.node().insertBefore(h.node().cloneNode(!0),v.node().firstChild);var b=d.width,p=d.height;v.attr({class:o,height:p,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var C=e.node().style.fill||"black",E=v.select("g");E.attr({fill:C,stroke:C});var A=E.node().getBoundingClientRect(),L=A.width,_=A.height;(L>b||_>p)&&(v.style("overflow","hidden"),A=v.node().getBoundingClientRect(),L=A.width,_=A.height);var k=+e.attr("x"),M=+e.attr("y"),g=u||e.node().getBoundingClientRect().height,P=-g/4;if(o[0]==="y")x.attr({transform:"rotate("+[-90,k,M]+")"+Ynt(-L/2,P-_/2)});else if(o[0]==="l")M=P-_/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)k=0,M=P;else{var T=e.attr("text-anchor");k=k-L*(T==="middle"?.5:T==="end"?1:0),M=M+P-_/2}v.attr({x:k,y:M}),r&&r.call(e,x),l(x)})})):s(),e};var $nt=/(<|<|<)/g,Qnt=/(>|>|>)/g;function eat(e){return e.replace($nt,"\\lt ").replace(Qnt,"\\gt ")}var Zne=[["$","$"],["\\(","\\)"]];function tat(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Ty.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,l=function(){return a=Ty.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Zne},displayAlign:"left"})},u=function(){a=Ty.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Zne},c=function(){if(i=MathJax.Hub.config.menuSettings.renderer,i!=="SVG")return MathJax.Hub.setRenderer("SVG")},f=function(){i=MathJax.config.startup.output,i!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var C="math-output-"+Ty.randstr({},64);s=Ch.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(eat(e));var E=s.node();return n===2?MathJax.Hub.Typeset(E):MathJax.typeset([E])},d=function(){var C=s.select(n===2?".MathJax_SVG":".MathJax"),E=!C.empty()&&s.select("svg").node();if(!E)Ty.log("There was an error in the tex syntax.",e),r();else{var A=E.getBoundingClientRect(),L;n===2?L=Ch.select("body").select("#MathJax_SVG_glyphs"):L=C.select("defs"),r(C,L,A)}s.remove()},v=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},x=function(){i!=="svg"&&(MathJax.config.startup.output=i)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(a)},p=function(){MathJax.config=a};n===2?MathJax.Hub.Queue(l,c,h,d,v,b):n===3&&(u(),f(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),x(),p()}))}var $ne={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},rat={sub:"0.3em",sup:"-0.6em"},iat={sub:"-0.21em",sup:"0.42em"},Yne="\u200B",Kne=["http:","https:","mailto:","",void 0,":"],Qne=b0.NEWLINES=/(\r\n?|\n)/g,pq=/(<[^<>]*>)/,gq=/<(\/?)([^ >]*)(\s+(.*))?>/i,nat=//i;b0.BR_TAG_ALL=//gi;var eae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,tae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,rae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,aat=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _b(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&K6(n)}var oat=/(^|;)\s*color:/;b0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,n=t.allowedTags!==void 0?t.allowedTags:["br"],i="...",a=i.length,o=e.split(pq),s=[],l="",u=0,c=0;ca?s.push(f.substr(0,x-a)+i):s.push(f.substr(0,x));break}l=""}}return s.join("")};var sat={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},lat=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function K6(e){return e.replace(lat,function(t,r){var n;return r.charAt(0)==="#"?n=uat(r.charAt(1)==="x"?parseInt(r.substr(2),16):parseInt(r.substr(1),10)):n=sat[r],n||t})}b0.convertEntities=K6;function uat(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function cat(e,t){t=t.replace(Qne," ");var r=!1,n=[],i,a=-1;function o(){a++;var _=document.createElementNS(dq.svg,"tspan");Ch.select(_).attr({class:"line",dy:a*Knt+"em"}),e.appendChild(_),i=_;var k=n;if(n=[{node:_}],k.length>1)for(var M=1;M.",t);return}var k=n.pop();_!==k.type&&Ty.log("Start tag <"+k.type+"> doesnt match end tag <"+_+">. Pretending it did match.",t),i=n[n.length-1].node}var c=nat.test(t);c?o():(i=e,n=[{node:e}]);for(var f=t.split(pq),h=0;h{"use strict";var fat=Oa(),$6=cd(),JS=Eo(),J6=Dr(),nae=Ca(),hat=sb().isValid;function dat(e,t,r){var n=t?J6.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if(J6.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function cae(e,t){t=t||{};for(var r=e.domain,n=e.range,i=n.length,a=new Array(i),o=0;o{"use strict";var hae=OO(),pat=hae.FORMAT_LINK,gat=hae.DATE_FORMAT_LINK;function mat(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?mq:dae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function mq(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+pat+"."].join(" ")}function dae(e,t){return mq(e,t)+[" And for dates see: "+gat+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}vae.exports={axisHoverFormat:mat,descriptionOnlyNumbers:mq,descriptionWithDates:dae}});var Rd=ye((yir,Pae)=>{"use strict";var pae=ec(),w3=Eh(),Lae=Pd().dash,_q=Ao().extendFlat,gae=pl().templatedArray,mir=Qo().templateFormatStringDescription,mae=df().descriptionWithDates,yat=hs().ONEDAY,pm=hd(),_at=pm.HOUR_PATTERN,xat=pm.WEEKDAY_PATTERN,yq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},bat=_q({},yq,{values:yq.values.slice().concat(["sync"])});function yae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var _ae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},xae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},bae={valType:"data_array",editType:"ticks"},wae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Tae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Aae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Sae={valType:"color",dflt:w3.defaultLine,editType:"ticks"},Mae={valType:"color",dflt:w3.lightLine,editType:"ticks"};function Eae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Cae=_q({},Lae,{editType:"ticks"}),kae={valType:"boolean",editType:"ticks"};Pae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:pae({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[pm.idRegex.x.toString(),pm.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"calc"},rangebreaks:gae("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[xat,_at,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:yat},editType:"calc"}),tickmode:bat,nticks:yae(),tick0:_ae,dtick:xae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:bae,ticktext:{valType:"data_array",editType:"ticks"},ticks:wae,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Tae(),tickwidth:Aae(),tickcolor:Sae,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:_q({},Lae,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:pae({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:mae("tick label")},tickformatstops:gae("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:mae("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:w3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:kae,gridcolor:Mae,gridwidth:Eae(),griddash:Cae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"plot"},minor:{tickmode:yq,nticks:yae("minor"),tick0:_ae,dtick:xae,tickvals:bae,ticks:wae,ticklen:Tae("minor"),tickwidth:Aae("minor"),tickcolor:Sae,gridcolor:Mae,gridwidth:Eae("minor"),griddash:Cae,showgrid:kae,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Q6=ye((_ir,Dae)=>{"use strict";var $c=Rd(),Iae=ec(),Rae=Ao().extendFlat,wat=mc().overrideAll;Dae.exports=wat({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:$c.linecolor,outlinewidth:$c.linewidth,bordercolor:$c.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:$c.minor.tickmode,nticks:$c.nticks,tick0:$c.tick0,dtick:$c.dtick,tickvals:$c.tickvals,ticktext:$c.ticktext,ticks:Rae({},$c.ticks,{dflt:""}),ticklabeloverflow:Rae({},$c.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:$c.ticklen,tickwidth:$c.tickwidth,tickcolor:$c.tickcolor,ticklabelstep:$c.ticklabelstep,showticklabels:$c.showticklabels,labelalias:$c.labelalias,tickfont:Iae({}),tickangle:$c.tickangle,tickformat:$c.tickformat,tickformatstops:$c.tickformatstops,tickprefix:$c.tickprefix,showtickprefix:$c.showtickprefix,ticksuffix:$c.ticksuffix,showticksuffix:$c.showticksuffix,separatethousands:$c.separatethousands,exponentformat:$c.exponentformat,minexponent:$c.minexponent,showexponent:$c.showexponent,title:{text:{valType:"string"},font:Iae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Tu=ye((bir,zae)=>{"use strict";var Tat=Q6(),Aat=n3().counter,Sat=Z1(),Fae=sb().scales,xir=Sat(Fae);function eL(e){return"`"+e+"`"}zae.exports=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",i="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",s=typeof r.colorscaleDflt=="string"?Fae[r.colorscaleDflt]:null,l=r.editTypeOverride||"",u=t?t+".":"",c,f;"colorAttr"in r?(c=r.colorAttr,f=r.colorAttr):(c={z:"z",c:"color"}[n],f="in "+eL(u+c));var h=i?" Has an effect only if "+f+" is set to a numerical array.":"",d=n+"auto",v=n+"min",x=n+"max",b=n+"mid",p=eL(u+d),C=eL(u+v),E=eL(u+x),A=C+" and "+E,L={};L[v]=L[x]=void 0;var _={};_[d]=!1;var k={};return c==="color"&&(k.color={valType:"color",arrayOk:!0,editType:l||"style"},r.anim&&(k.color.anim=!0)),k[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:L},k[v]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:_},k[x]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:_},k[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:L},k.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},k.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},k.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(k.showscale={valType:"boolean",dflt:o,editType:"calc"},k.colorbar=Tat),r.noColorAxis||(k.coloraxis={valType:"subplotid",regex:Aat("coloraxis"),dflt:null,editType:"calc"}),k}});var bq=ye((wir,Oae)=>{"use strict";var Mat=Ao().extendFlat,Eat=Tu(),xq=sb().scales;Oae.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:xq.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:xq.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:xq.RdBu,editType:"calc"}},coloraxis:Mat({_isSubplotObj:!0,editType:"calc"},Eat("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var wq=ye((Tir,qae)=>{"use strict";var Cat=Dr();qae.exports=function(t){return Cat.isPlainObject(t.colorbar)}});var Sq=ye(Aq=>{"use strict";var Tq=Eo(),Bae=Dr(),Nae=hs(),kat=Nae.ONEDAY,Lat=Nae.ONEWEEK;Aq.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?kat:1;if(!e)return a;if(Tq(e))return e=Number(e),e<=0?a:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return a;var o=e.charAt(0),s=e.substr(1);return s=Tq(s)?Number(s):0,s<=0||!(n&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};Aq.tick0=function(e,t,r,n){if(t==="date")return Bae.cleanDate(e,Bae.dateTick0(r,n%Lat===0?1:0));if(!(n==="D1"||n==="D2"))return Tq(e)?Number(e):0}});var xb=ye((Sir,Vae)=>{"use strict";var Uae=Sq(),Pat=Dr().isArrayOrTypedArray,Iat=vv().isTypedArraySpec,Rat=vv().decodeTypedArraySpec;Vae.exports=function(t,r,n,i,a){a||(a={});var o=a.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function c(C){var E=s[C];return Iat(E)&&(E=Rat(E)),E!==void 0?E:(l._template||{})[C]}var f=c("tick0"),h=c("dtick"),d=c("tickvals"),v=Pat(d)?"array":h?"linear":"auto",x=n(u+"tickmode",v);if(x==="auto"||x==="sync")n(u+"nticks");else if(x==="linear"){var b=l.dtick=Uae.dtick(h,i);l.tick0=Uae.tick0(f,i,r.calendar,b)}else if(i!=="multicategory"){var p=n(u+"tickvals");p===void 0?l.tickmode="auto":o||n("ticktext")}}});var T3=ye((Mir,Hae)=>{"use strict";var Mq=Dr(),Gae=Rd();Hae.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,l=a?Gae.minor:Gae,u=a?"minor.":"",c=Mq.coerce2(o,s,l,"ticklen",a?(r.ticklen||5)*.6:void 0),f=Mq.coerce2(o,s,l,"tickwidth",a?r.tickwidth||1:void 0),h=Mq.coerce2(o,s,l,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=n(u+"ticks",!a&&i.outerTicks||c||f||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var Eq=ye((Eir,jae)=>{"use strict";jae.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(a){return t[a]!==void 0}),i=function(a){return t[a]===t[n[0]]};if(n.every(i)||n.length===1)return t[n[0]]}});var Yd=ye((Cir,Wae)=>{"use strict";var tL=Dr(),Dat=pl();Wae.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=tL.isArrayOrTypedArray(t[i])?t[i]:[],l=r[i]=[],u=Dat.arrayTemplater(r,i,a),c,f;for(c=0;c{"use strict";var Cq=Dr(),Fat=Ca().contrast,Xae=Rd(),zat=Eq(),Oat=Yd();Zae.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");Cq.isPlainObject(o)||delete r.labelalias;var s=zat(t),l=n("showticklabels");if(l){a.noTicklabelshift||n("ticklabelshift"),a.noTicklabelstandoff||n("ticklabelstandoff");var u=a.font||{},c=r.color,f=r.ticklabelposition||"",h=f.indexOf("inside")!==-1?Fat(a.bgColor):c&&c!==Xae.color.dflt?c:u.color;if(Cq.coerceFont(n,"tickfont",u,{overrideDflt:{color:h}}),!a.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!a.noAng){var d=n("tickangle");!a.noAutotickangles&&d==="auto"&&n("autotickangles")}if(i!=="category"){var v=n("tickformat");Oat(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:qat}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!v&&i!=="date"&&(n("showexponent",s),n("exponentformat"),n("minexponent"),n("separatethousands"))}!a.noMinorloglabels&&i==="log"&&n("minorloglabels")}};function qat(e,t){function r(i,a){return Cq.coerce(e,t,Xae.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var t_=ye((Lir,Yae)=>{"use strict";var Bat=Eq();Yae.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=Bat(t),l=n("tickprefix");l&&n("showtickprefix",s);var u=n("ticksuffix",o);u&&n("showticksuffix",s)}});var kq=ye((Pir,Kae)=>{"use strict";var r_=Dr(),Nat=pl(),Uat=xb(),Vat=T3(),Gat=e_(),Hat=t_(),jat=Q6();Kae.exports=function(t,r,n){var i=Nat.newContainer(r,"colorbar"),a=t.colorbar||{};function o(T,z){return r_.coerce(a,i,jat,T,z)}var s=n.margin||{t:0,b:0,l:0,r:0},l=n.width-s.l-s.r,u=n.height-s.t-s.b,c=o("orientation"),f=c==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(f?l:u):30);var d=o("lenmode");o("len",d==="fraction"?1:f?u:l);var v=o("yref"),x=o("xref"),b=v==="paper",p=x==="paper",C,E,A,L="left";f?(A="middle",L=p?"left":"right",C=p?1.02:1,E=.5):(A=b?"bottom":"top",L="center",C=.5,E=b?1.02:1),r_.coerce(a,i,{x:{valType:"number",min:p?-2:0,max:p?3:1,dflt:C}},"x"),r_.coerce(a,i,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:E}},"y"),o("xanchor",L),o("xpad"),o("yanchor",A),o("ypad"),r_.noneOrAll(a,i,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var _=r_.coerce(a,i,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:f?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",_.indexOf("inside")!==-1?"hide past domain":"hide past div"),Uat(a,i,o,"linear");var k=n.font,M={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};_.indexOf("inside")!==-1&&(M.bgColor="black"),Hat(a,i,o,"linear",M),Gat(a,i,o,"linear",M),Vat(a,i,o,"linear",M),o("title.text",n._dfltTitle.colorbar);var g=i.showticklabels?i.tickfont:k,P=r_.extendFlat({},k,{family:g.family,size:r_.bigFont(g.size)});r_.coerceFont(o,"title.font",P),o("title.side",f?"top":"right")}});var Jh=ye((Iir,Qae)=>{"use strict";var Jae=Eo(),Pq=Dr(),Wat=wq(),Xat=kq(),$ae=sb().isValid,Zat=qa().traceIs;function Lq(e,t){var r=t.slice(0,t.length-1);return t?Pq.nestedProperty(e,r).get()||{}:e}Qae.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,l="_module"in r,u=Lq(t,o),c=Lq(r,o),f=Lq(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,n,i,a)};if(l){var d=n._colorAxes||{},v=i(o+"coloraxis");if(v){var x=Zat(r,"contour")&&Pq.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[v];b?(b[2].push(h),b[0]!==x&&(b[0]=!1,Pq.warn(["Ignoring coloraxis:",v,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[v]=[x,r,[h]];return}}var p=u[s+"min"],C=u[s+"max"],E=Jae(p)&&Jae(C)&&p{"use strict";var eoe=Dr(),Yat=pl(),toe=bq(),Kat=Jh();roe.exports=function(t,r){function n(f,h){return eoe.coerce(t,r,toe,f,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(f,h){return eoe.coerce(a,o,toe.coloraxis,f,h)}for(var l in i){var u=i[l];if(u[0])a=t[l]||{},o=Yat.newContainer(r,l,"coloraxis"),o._name=l,Kat(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var Jat=Dr(),$at=pv().hasColorscale,Qat=pv().extractOpts;noe.exports=function(t,r){function n(c,f){var h=c["_"+f];h!==void 0&&(c[f]=h)}function i(c,f){var h=f.container?Jat.nestedProperty(c,f.container).get():c;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=Qat(h),v=d.auto;(v||d.min===void 0)&&n(h,f.min),(v||d.max===void 0)&&n(h,f.max),d.autocolorscale&&n(h,"colorscale")}}for(var a=0;a{"use strict";var ooe=Eo(),Iq=Dr(),eot=pv().extractOpts;soe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?Iq.nestedProperty(r,o).get():r,l=eot(s),u=l.auto!==!1,c=l.min,f=l.max,h=l.mid,d=function(){return Iq.aggNums(Math.min,null,a)},v=function(){return Iq.aggNums(Math.max,null,a)};if(c===void 0?c=d():u&&(s._colorAx&&ooe(c)?c=Math.min(c,d()):c=d()),f===void 0?f=v():u&&(s._colorAx&&ooe(f)?f=Math.max(f,v()):f=v()),u&&h!==void 0&&(f-h>h-c?c=h-(f-h):f-h=0?x=i.colorscale.sequential:x=i.colorscale.sequentialminus,l._sync("colorscale",x)}}});var tc=ye((zir,loe)=>{"use strict";var rL=sb(),A3=pv();loe.exports={moduleType:"component",name:"colorscale",attributes:Tu(),layoutAttributes:bq(),supplyLayoutDefaults:ioe(),handleDefaults:Jh(),crossTraceDefaults:aoe(),calc:gv(),scales:rL.scales,defaultScale:rL.defaultScale,getScale:rL.get,isValidScale:rL.isValid,hasColorscale:A3.hasColorscale,extractOpts:A3.extractOpts,extractScale:A3.extractScale,flipScale:A3.flipScale,makeColorScaleFunc:A3.makeColorScaleFunc,makeColorScaleFuncFromTrace:A3.makeColorScaleFuncFromTrace}});var Ru=ye((Oir,coe)=>{"use strict";var uoe=Dr(),tot=vv().isTypedArraySpec;coe.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return uoe.isPlainObject(t)&&(uoe.isArrayOrTypedArray(t.size)||tot(t.size))}}});var S3=ye((qir,foe)=>{"use strict";var rot=Eo();foe.exports=function(t,r){r||(r=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(s){return Math.sqrt(s/i)}:function(s){return s/i};return function(s){var l=o(s/r);return rot(l)&&l>0?Math.max(l,a):0}}});var rp=ye(mv=>{"use strict";var hoe=Dr();mv.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};mv.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],n=e.yaxes||[],i=0;i=0&&r.index{poe.exports=sot;var Rq={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},oot=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function sot(e){var t=[];return e.replace(oot,function(r,n,i){var a=n.toLowerCase();for(i=uot(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Rq[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var cot=$S(),ca=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},ds="M0,0Z",goe=Math.sqrt(2),i_=Math.sqrt(3),Dq=Math.PI,Fq=Math.cos,zq=Math.sin;boe.exports={circle:{n:0,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?ps(t,r,i):i}},square:{n:1,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.3,2);return ps(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.4,2),i=ca(e*1.2,2);return ps(t,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.8/goe,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return ps(t,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/i_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M-"+n+","+i+"H"+n+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/i_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M-"+n+",-"+i+"H"+n+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/i_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M"+i+",-"+n+"V"+n+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/i_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M-"+i+",-"+n+"V"+n+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.951,2),i=ca(e*.588,2),a=ca(-e,2),o=ca(e*-.309,2),s=ca(e*.809,2);return ps(t,r,"M"+n+","+o+"L"+i+","+s+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e/2,2),a=ca(e*i_/2,2);return ps(t,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e/2,2),a=ca(e*i_/2,2);return ps(t,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.924,2),i=ca(e*.383,2);return ps(t,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(e,t,r){if(vs(t))return ds;var n=e*1.4,i=ca(n*.225,2),a=ca(n*.951,2),o=ca(n*.363,2),s=ca(n*.588,2),l=ca(-n,2),u=ca(n*-.309,2),c=ca(n*.118,2),f=ca(n*.809,2),h=ca(n*.382,2);return ps(t,r,"M"+i+","+u+"H"+a+"L"+o+","+c+"L"+s+","+f+"L0,"+h+"L-"+s+","+f+"L-"+o+","+c+"L-"+a+","+u+"H-"+i+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.66,2),i=ca(e*.38,2),a=ca(e*.76,2);return ps(t,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*i_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return ps(t,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*i_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return ps(t,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.1,2),i=ca(e*2,2),a="A "+i+","+i+" 0 0 1 ";return ps(t,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2),i=ca(e*1.9,2),a="A "+i+","+i+" 0 0 1 ";return ps(t,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.7,2),i=ca(e*1.4,2);return ps(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2),i=ca(e*.7,2);return ps(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e/goe,2);return ps(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.3,2);return ps(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.3,2),i=ca(e*.65,2);return ps(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*.85,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(vs(t))return ds;var n=ca(e/2,2),i=ca(e,2);return ps(t,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2);return ps(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2);return ps(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M0,0L-"+n+",-"+i+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+i+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(vs(t))return ds;var n=Dq/2.5,i=2*e*Fq(n),a=2*e*zq(n);return ps(t,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(vs(t))return ds;var n=Dq/4,i=2*e*Fq(n),a=2*e*zq(n);return ps(t,r,"M0,0L"+-i+","+a+"A "+2*e+","+2*e+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}};function vs(e){return e===null}var moe,yoe,_oe,xoe;function ps(e,t,r){if((!e||e%360===0)&&!t)return r;if(_oe===e&&xoe===t&&moe===r)return yoe;_oe=e,xoe=t,moe=r;function n(b,p){var C=Fq(b),E=zq(b),A=p[0],L=p[1]+(t||0);return[A*C-L*E,A*E+L*C]}for(var i=e/180*Dq,a=0,o=0,s=cot(r),l="",u=0;u{"use strict";var dd=Oa(),Du=Dr(),fot=Du.numberFormat,Ab=Eo(),Vq=cd(),nL=qa(),Kd=Ca(),hot=tc(),eM=Du.strTranslate,aL=ru(),dot=Wp(),vot=Kh(),pot=vot.LINE_SPACING,Ioe=N1().DESELECTDIM,got=Ru(),mot=S3(),yot=rp().appendArrayPointValue,Sa=Voe.exports={};Sa.font=function(e,t){var r=t.variant,n=t.style,i=t.weight,a=t.color,o=t.size,s=t.family,l=t.shadow,u=t.lineposition,c=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call(Kd.fill,a),i&&e.style("font-weight",i),n&&e.style("font-style",n),r&&e.style("font-variant",r),c&&e.style("text-transform",Oq(xot(c))),l&&e.style("text-shadow",l==="auto"?aL.makeTextShadow(Kd.contrast(a)):Oq(l)),u&&e.style("text-decoration-line",Oq(bot(u)))};function Oq(e){return e==="none"?void 0:e}var _ot={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function xot(e){return _ot[e]}function bot(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Sa.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Sa.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Sa.setRect=function(e,t,r,n,i){e.call(Sa.setPosition,t,r).call(Sa.setSize,n,i)};Sa.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),a=n.c2p(e.y);if(Ab(i)&&Ab(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",eM(i,a));else return!1;return!0};Sa.translatePoints=function(e,t,r){e.each(function(n){var i=dd.select(this);Sa.translatePoint(n,i,t,r)})};Sa.hideOutsideRangePoint=function(e,t,r,n,i,a){t.attr("display",r.isPtWithinRange(e,i)&&n.isPtWithinRange(e,a)?null:"none")};Sa.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each(function(i){var a=i[0].trace,o=a.xcalendar,s=a.ycalendar,l=nL.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){Sa.hideOutsideRangePoint(u,dd.select(this),r,n,o,s)})})}};Sa.crispRound=function(e,t,r){return!t||!Ab(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Sa.singleLineStyle=function(e,t,r,n,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";Kd.stroke(t,n||a.color),Sa.dashLine(t,s,o)};Sa.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each(function(i){var a=(((i||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=n||a.dash||"";dd.select(this).call(Kd.stroke,r||a.color).call(Sa.dashLine,s,o)})};Sa.dashLine=function(e,t,r){r=+r||0,t=Sa.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Sa.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function Roe(e,t,r,n){var i=t.fillpattern,a=t.fillgradient,o=Sa.getPatternAttr,s=i&&(o(i.shape,0,"")||o(i.path,0,""));if(s){var l=o(i.bgcolor,0,null),u=o(i.fgcolor,0,null),c=i.fgopacity,f=o(i.size,0,8),h=o(i.solidity,0,.3),d=t.uid;Sa.pattern(e,"point",r,d,s,f,h,void 0,i.fillmode,l,u,c)}else if(a&&a.type!=="none"){var v=a.type,x="scatterfill-"+t.uid;if(n&&(x="legendfill-"+t.uid),!n&&(a.start!==void 0||a.stop!==void 0)){var b,p;v==="horizontal"?(b={x:a.start,y:0},p={x:a.stop,y:0}):v==="vertical"&&(b={x:0,y:a.start},p={x:0,y:a.stop}),b.x=t._xA.c2p(b.x===void 0?t._extremes.x.min[0].val:b.x,!0),b.y=t._yA.c2p(b.y===void 0?t._extremes.y.min[0].val:b.y,!0),p.x=t._xA.c2p(p.x===void 0?t._extremes.x.max[0].val:p.x,!0),p.y=t._yA.c2p(p.y===void 0?t._extremes.y.max[0].val:p.y,!0),e.call(zoe,r,x,"linear",a.colorscale,"fill",b,p,!0,!1)}else v==="horizontal"&&(v=v+"reversed"),e.call(Sa.gradient,r,x,v,a.colorscale,"fill")}else t.fillcolor&&e.call(Kd.fill,t.fillcolor)}Sa.singleFillStyle=function(e,t){var r=dd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};Roe(e,i,t,!1)};Sa.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(n){var i=dd.select(this);n[0].trace&&Roe(i,n[0].trace,t,r)})};var Toe=woe();Sa.symbolNames=[];Sa.symbolFuncs=[];Sa.symbolBackOffs=[];Sa.symbolNeedLines={};Sa.symbolNoDot={};Sa.symbolNoFill={};Sa.symbolList=[];Object.keys(Toe).forEach(function(e){var t=Toe[e],r=t.n;Sa.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Sa.symbolNames[r]=e,Sa.symbolFuncs[r]=t.f,Sa.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Sa.symbolNeedLines[r]=!0),t.noDot?Sa.symbolNoDot[r]=!0:Sa.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Sa.symbolNoFill[r]=!0)});var wot=Sa.symbolNames.length,Tot="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Sa.symbolNumber=function(e){if(Ab(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Sa.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=wot||e>=400?0:Math.floor(Math.max(e,0))};function Doe(e,t,r,n){var i=e%100;return Sa.symbolFuncs[i](t,r,n)+(e>=200?Tot:"")}var Aoe=fot("~f"),Foe={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Sa.gradient=function(e,t,r,n,i,a){var o=Foe[n];return zoe(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function zoe(e,t,r,n,i,a,o,s,l,u){var c=i.length,f;n==="linear"?f={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:l?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:n==="radial"&&(f={node:"radialGradient",reversed:u});for(var h=new Array(c),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var l;e.ms==="various"||o.size==="various"?l=3:l=n.ms2mrc(e.ms),e.mrc=l,n.selectedSizeFn&&(l=e.mrc=n.selectedSizeFn(e));var u=Sa.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var c=jq(e,r),f=Hq(e,r);t.attr("d",Doe(u,l,c,f))}var h=!1,d,v,x;if(e.so)x=s.outlierwidth,v=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;x=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?v=e.mlcc=n.lineScale(e.mlc):Du.isArrayOrTypedArray(s.color)?v=Kd.defaultLine:v=s.color,Du.isArrayOrTypedArray(o.color)&&(d=Kd.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}if(e.om)t.call(Kd.stroke,d).style({"stroke-width":(x||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:x)+"px");var p=o.gradient,C=e.mgt;C?h=!0:C=p&&p.type,Du.isArrayOrTypedArray(C)&&(C=C[0],Foe[C]||(C=0));var E=o.pattern,A=Sa.getPatternAttr,L=E&&(A(E.shape,e.i,"")||A(E.path,e.i,""));if(C&&C!=="none"){var _=e.mgc;_?h=!0:_=p.color;var k=r.uid;h&&(k+="-"+e.i),Sa.gradient(t,i,k,C,[[0,_],[1,d]],"fill")}else if(L){var M=!1,g=E.fgcolor;!g&&a&&a.color&&(g=a.color,M=!0);var P=A(g,e.i,a&&a.color||null),T=A(E.bgcolor,e.i,null),z=E.fgopacity,O=A(E.size,e.i,8),V=A(E.solidity,e.i,.3);M=M||e.mcc||Du.isArrayOrTypedArray(E.shape)||Du.isArrayOrTypedArray(E.path)||Du.isArrayOrTypedArray(E.bgcolor)||Du.isArrayOrTypedArray(E.fgcolor)||Du.isArrayOrTypedArray(E.size)||Du.isArrayOrTypedArray(E.solidity);var G=r.uid;M&&(G+="-"+e.i),Sa.pattern(t,"point",i,G,L,O,V,e.mcc,E.fillmode,T,P,z)}else Du.isArrayOrTypedArray(d)?Kd.fill(t,d[e.i]):Kd.fill(t,d);x&&Kd.stroke(t,v)}};Sa.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Sa.tryColorscale(r,""),t.lineScale=Sa.tryColorscale(r,"line"),nL.traceIs(e,"symbols")&&(t.ms2mrc=got.isBubble(e)?mot(e):function(){return(r.size||6)/2}),e.selectedpoints&&Du.extendFlat(t,Sa.makeSelectedPointStyleFns(e)),t};Sa.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},a=r.marker||{},o=n.marker||{},s=i.opacity,l=a.opacity,u=o.opacity,c=l!==void 0,f=u!==void 0;(Du.isArrayOrTypedArray(s)||c||f)&&(t.selectedOpacityFn=function(A){var L=A.mo===void 0?i.opacity:A.mo;return A.selected?c?l:L:f?u:Ioe*L});var h=i.color,d=a.color,v=o.color;(d||v)&&(t.selectedColorFn=function(A){var L=A.mcc||h;return A.selected?d||L:v||L});var x=i.size,b=a.size,p=o.size,C=b!==void 0,E=p!==void 0;return nL.traceIs(e,"symbols")&&(C||E)&&(t.selectedSizeFn=function(A){var L=A.mrc||x/2;return A.selected?C?b/2:L:E?p/2:L}),t};Sa.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,l=a.color,u=o.color;return t.selectedTextColorFn=function(c){var f=c.tc||s;return c.selected?l||f:u||(l?f:Kd.addOpacity(f,Ioe))},t};Sa.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Sa.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&i.push(function(a,o){Kd.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&i.push(function(a,o){var s=o.mx||n.symbol||0,l=r.selectedSizeFn(o);a.attr("d",Doe(Sa.symbolNumber(s),l,jq(o,t),Hq(o,t))),o.mrc2=l}),i.length&&e.each(function(a){for(var o=dd.select(this),s=0;s0?r:0}Sa.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=Sa.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=dd.select(this),u=a?Du.extractOption(s,t,"txt","texttemplate"):Du.extractOption(s,t,"tx","text");if(!u&&u!==0){l.remove();return}if(a){var c=t._module.formatLabels,f=c?c(s,t,o):{},h={};yot(h,t,s.i);var d=t._meta||{};u=Du.texttemplateString(u,f,o._d3locale,h,s,d)}var v=s.tp||t.textposition,x=qoe(s,t),b=n?n(s):s.tc||t.textfont.color;l.call(Sa.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:x,color:b}).text(u).call(aL.convertToTspans,r).call(Ooe,v,x,s.mrc)})}};Sa.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Sa.makeSelectedTextStyleFns(t);e.each(function(n){var i=dd.select(this),a=r.selectedTextColorFn(n),o=n.tp||t.textposition,s=qoe(n,t);Kd.fill(i,a);var l=nL.traceIs(t,"bar-like");Ooe(i,o,s,n.mrc2||n.mrc,l)})}};var Soe=.5;Sa.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],i;for(i=1;i=l||A>=c&&A<=l)&&(L<=f&&L>=u||L>=f&&L<=u)&&(e=[A,L])}return e}Sa.applyBackoff=Uoe;Sa.makeTester=function(){var e=Du.ensureSingleById(dd.select("body"),"svg","js-plotly-tester",function(r){r.attr(dot.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=Du.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Sa.tester=e,Sa.testref=t};Sa.savedBBoxes={};var Bq=0,Mot=1e4;Sa.bBox=function(e,t,r){r||(r=Moe(e));var n;if(r){if(n=Sa.savedBBoxes[r],n)return Du.extendFlat({},n)}else if(e.childNodes.length===1){var i=e.childNodes[0];if(r=Moe(i),r){var a=+i.getAttribute("x")||0,o=+i.getAttribute("y")||0,s=i.getAttribute("transform");if(!s){var l=Sa.bBox(i,!1,r);return a&&(l.left+=a,l.right+=a),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+a+"~"+o+"~"+s,n=Sa.savedBBoxes[r],n)return Du.extendFlat({},n)}}var u,c;t?u=e:(c=Sa.tester.node(),u=e.cloneNode(!0),c.appendChild(u)),dd.select(u).attr("transform",null).call(aL.positionText,0,0);var f=u.getBoundingClientRect(),h=Sa.testref.node().getBoundingClientRect();t||c.removeChild(u);var d={height:f.height,width:f.width,left:f.left-h.left,top:f.top-h.top,right:f.right-h.left,bottom:f.bottom-h.top};return Bq>=Mot&&(Sa.savedBBoxes={},Bq=0),r&&(Sa.savedBBoxes[r]=d),Bq++,Du.extendFlat({},d)};function Moe(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Sa.setClipUrl=function(e,t,r){e.attr("clip-path",Gq(t,r))};function Gq(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Sa.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}};Sa.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=eM(t,r),o=o.trim(),e[a]("transform",o),o};Sa.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}};Sa.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var Eot=/\s*sc.*/;Sa.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var i=(this.getAttribute("transform")||"").replace(Eot,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var Cot=/translate\([^)]*\)\s*$/;Sa.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,i=dd.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(i.attr("transform")||"").match(Cot);t===1&&r===1?n=[]:n=[eM(o,s),"scale("+t+","+r+")",eM(-o,-s)],l&&n.push(l),i.attr("transform",n.join(""))}})};function Hq(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Sa.getMarkerStandoff=Hq;var QS=Math.atan2,bb=Math.cos,E3=Math.sin;function Eoe(e,t){var r=t[0],n=t[1];return[r*bb(e)-n*E3(e),r*E3(e)+n*bb(e)]}var Coe,koe,Loe,Poe,Nq,Uq;function jq(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||Du.isArrayOrTypedArray(r))&&(r=0));var n,i,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],i=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)n=s.c2p(e.x),i=l.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],c=e.lonlat[1],f=t._geo.project([u,c+1e-5]),h=t._geo.project([u+1e-5,c]),d=QS(h[1]-i,h[0]-n),v=QS(f[1]-i,f[0]-n),x;if(a==="north")x=r/180*Math.PI;else if(a==="previous"){var b=u/180*Math.PI,p=c/180*Math.PI,C=Coe/180*Math.PI,E=koe/180*Math.PI,A=C-b,L=bb(E)*E3(A),_=E3(E)*bb(p)-bb(E)*E3(p)*bb(A);x=-QS(L,_)-Math.PI,Coe=u,koe=c}var k=Eoe(d,[bb(x),0]),M=Eoe(v,[E3(x),0]);r=QS(k[1]+M[1],k[0]+M[0])/Math.PI*180,a==="previous"&&!(Uq===t.uid&&e.i===Nq+1)&&(r=null)}if(a==="previous"&&!t._geo)if(Uq===t.uid&&e.i===Nq+1&&Ab(n)&&Ab(i)){var g=n-Loe,P=i-Poe,T=t.line&&t.line.shape||"",z=T.slice(T.length-1);z==="h"&&(P=0),z==="v"&&(g=0),r+=QS(P,g)/Math.PI*180+90}else r=null}return Loe=n,Poe=i,Nq=e.i,Uq=t.uid,r}Sa.getMarkerAngle=jq});var Mb=ye((Gir,Woe)=>{"use strict";var C3=Oa(),kot=Eo(),Lot=Mc(),Wq=qa(),Sb=Dr(),Goe=Sb.strTranslate,oL=So(),sL=Ca(),k3=ru(),Hoe=N1(),Pot=Kh().OPPOSITE_SIDE,joe=/ [XY][0-9]* /,Xq=1.6,Zq=1.6;function Iot(e,t,r){var n=e._fullLayout,i=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,l=r.avoid||{},u=r.attributes,c=r.transform,f=r.containerGroup,h=1,d=i.title,v=(d&&d.text?d.text:"").trim(),x=!1,b=d&&d.font?d.font:{},p=b.family,C=b.size,E=b.color,A=b.weight,L=b.style,_=b.variant,k=b.textcase,M=b.lineposition,g=b.shadow,P=r.subtitlePropName,T=!!P,z=r.subtitlePlaceholder,O=(i.title||{}).subtitle||{text:"",font:{}},V=O.text.trim(),G=!1,Z=1,H=O.font,N=H.family,j=H.size,re=H.color,oe=H.weight,_e=H.style,Me=H.variant,ke=H.textcase,me=H.lineposition,ie=H.shadow,Se;a==="title.text"?Se="titleText":a.indexOf("axis")!==-1?Se="axisTitleText":a.indexOf("colorbar")!==-1&&(Se="colorbarTitleText");var Le=e._context.edits[Se];function Ae(Nt,$t){return Nt===void 0||$t===void 0?!1:Nt.replace(joe," % ")===$t.replace(joe," % ")}v===""?h=0:Ae(v,o)&&(Le||(v=""),h=.2,x=!0),T&&(V===""?Z=0:Ae(V,z)&&(Le||(V=""),Z=.2,G=!0)),r._meta?v=Sb.templateString(v,r._meta):n._meta&&(v=Sb.templateString(v,n._meta));var De=v||V||Le,Pe;f||(f=Sb.ensureSingle(n._infolayer,"g","g-"+t),Pe=n._hColorbarMoveTitle);var ge=f.selectAll("text."+t).data(De?[0]:[]);ge.enter().append("text"),ge.text(v).attr("class",t),ge.exit().remove();var Fe=null,ce=t+"-subtitle",Ze=V||Le;if(T&&Ze&&(Fe=f.selectAll("text."+ce).data(Ze?[0]:[]),Fe.enter().append("text"),Fe.text(V).attr("class",ce),Fe.exit().remove()),!De)return f;function ct(Nt,$t){Sb.syncOrAsync([pt,Wt],{title:Nt,subtitle:$t})}function pt(Nt){var $t=Nt.title,sr=Nt.subtitle,wr;!c&&Pe&&(c={}),c?(wr="",c.rotate&&(wr+="rotate("+[c.rotate,u.x,u.y]+")"),(c.offset||Pe)&&(wr+=Goe(0,(c.offset||0)-(Pe||0)))):wr=null,$t.attr("transform",wr);function ur(bt){if(bt){var yt=C3.select(bt.node().parentNode).select("."+ce);if(!yt.empty()){var Yt=bt.node().getBBox();if(Yt.height){var lr=Yt.y+Yt.height+Xq*j;yt.attr("y",lr)}}}}if($t.style("opacity",h*sL.opacity(E)).call(oL.font,{color:sL.rgb(E),size:C3.round(C,2),family:p,weight:A,style:L,variant:_,textcase:k,shadow:g,lineposition:M}).attr(u).call(k3.convertToTspans,e,ur),sr){var Qe=f.select("."+t+"-math-group"),Et=$t.node().getBBox(),er=Qe.node()?Qe.node().getBBox():void 0,Ut=er?er.y+er.height+Xq*j:Et.y+Et.height+Zq*j,Ft=Sb.extendFlat({},u,{y:Ut});sr.attr("transform",wr),sr.style("opacity",Z*sL.opacity(re)).call(oL.font,{color:sL.rgb(re),size:C3.round(j,2),family:N,weight:oe,style:_e,variant:Me,textcase:ke,shadow:ie,lineposition:me}).attr(Ft).call(k3.convertToTspans,e)}return Lot.previousPromises(e)}function Wt(Nt){var $t=Nt.title,sr=C3.select($t.node().parentNode);if(l&&l.selection&&l.side&&v){sr.attr("transform",null);var wr=Pot[l.side],ur=l.side==="left"||l.side==="top"?-1:1,Qe=kot(l.pad)?l.pad:2,Et=oL.bBox(sr.node()),er={t:0,b:0,l:0,r:0},Ut=e._fullLayout._reservedMargin;for(var Ft in Ut)for(var bt in Ut[Ft]){var yt=Ut[Ft][bt];er[bt]=Math.max(er[bt],yt)}var Yt={left:er.l,top:er.t,right:n.width-er.r,bottom:n.height-er.b},lr=l.maxShift||ur*(Yt[l.side]-Et[l.side]),Tr=0;if(lr<0)Tr=lr;else{var Rr=l.offsetLeft||0,ei=l.offsetTop||0;Et.left-=Rr,Et.right-=Rr,Et.top-=ei,Et.bottom-=ei,l.selection.each(function(){var Ur=oL.bBox(this);Sb.bBoxIntersect(Et,Ur,Qe)&&(Tr=Math.max(Tr,ur*(Ur[l.side]-Et[wr])+Qe))}),Tr=Math.min(lr,Tr),i._titleScoot=Math.abs(Tr)}if(Tr>0||lr<0){var Wr={left:[-Tr,0],right:[Tr,0],top:[0,-Tr],bottom:[0,Tr]}[l.side];sr.attr("transform",Goe(Wr[0],Wr[1]))}}}ge.call(ct,Fe);function st(Nt,$t){Nt.text($t).on("mouseover.opacity",function(){C3.select(this).transition().duration(Hoe.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){C3.select(this).transition().duration(Hoe.HIDE_PLACEHOLDER).style("opacity",0)})}if(Le&&(v?ge.on(".opacity",null):(st(ge,o),x=!0),ge.call(k3.makeEditable,{gd:e}).on("edit",function(Nt){s!==void 0?Wq.call("_guiRestyle",e,a,Nt,s):Wq.call("_guiRelayout",e,a,Nt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ct)}).on("input",function(Nt){this.text(Nt||" ").call(k3.positionText,u.x,u.y)}),T)){if(T&&!v){var lt=ge.node().getBBox(),Gt=lt.y+lt.height+Zq*j;Fe.attr("y",Gt)}V?Fe.on(".opacity",null):(st(Fe,z),G=!0),Fe.call(k3.makeEditable,{gd:e}).on("edit",function(Nt){Wq.call("_guiRelayout",e,"title.subtitle.text",Nt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ct)}).on("input",function(Nt){this.text(Nt||" ").call(k3.positionText,Fe.attr("x"),Fe.attr("y"))})}return ge.classed("js-placeholder",x),Fe&&Fe.classed("js-placeholder",G),f}Woe.exports={draw:Iot,SUBTITLE_PADDING_EM:Zq,SUBTITLE_PADDING_MATHJAX_EM:Xq}});var ym=ye((Hir,Joe)=>{"use strict";var Rot=Oa(),Dot=e3().utcFormat,yc=Dr(),Fot=yc.numberFormat,gm=Eo(),n_=yc.cleanNumber,zot=yc.ms2DateTime,Xoe=yc.dateTime2ms,mm=yc.ensureNumber,Zoe=yc.isArrayOrTypedArray,a_=hs(),lL=a_.FP_SAFE,bg=a_.BADNUM,Oot=a_.LOG_CLIP,qot=a_.ONEWEEK,uL=a_.ONEDAY,cL=a_.ONEHOUR,Yoe=a_.ONEMIN,Koe=a_.ONESEC,fL=hf(),vL=hd(),hL=vL.HOUR_PATTERN,dL=vL.WEEKDAY_PATTERN;function tM(e){return Math.pow(10,e)}function Yq(e){return e!=null}Joe.exports=function(t,r){r=r||{};var n=t._id||"x",i=n.charAt(0);function a(A,L){if(A>0)return Math.log(A)/Math.LN10;if(A<=0&&L&&t.range&&t.range.length===2){var _=t.range[0],k=t.range[1];return .5*(_+k-2*Oot*Math.abs(_-k))}else return bg}function o(A,L,_,k){if((k||{}).msUTC&&gm(A))return+A;var M=Xoe(A,_||t.calendar);if(M===bg)if(gm(A)){A=+A;var g=Math.floor(yc.mod(A+.05,1)*10),P=Math.round(A-g/10);M=Xoe(new Date(P))+g/10}else return bg;return M}function s(A,L,_){return zot(A,L,_||t.calendar)}function l(A){return t._categories[Math.round(A)]}function u(A){if(Yq(A)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[A]!==void 0)return t._categoriesMap[A];t._categories.push(typeof A=="number"?String(A):A);var L=t._categories.length-1;return t._categoriesMap[A]=L,L}return bg}function c(A,L){for(var _=new Array(L),k=0;kt.range[1]&&(_=!_);for(var k=_?-1:1,M=k*A,g=0,P=0;Pz)g=P+1;else{g=M<(T+z)/2?P:P+1;break}}var O=t._B[g]||0;return isFinite(O)?v(A,t._m2,O):0},p=function(A){var L=t._rangebreaks.length;if(!L)return x(A,t._m,t._b);for(var _=0,k=0;kt._rangebreaks[k].pmax&&(_=k+1);return x(A,t._m2,t._B[_])}}t.c2l=t.type==="log"?a:mm,t.l2c=t.type==="log"?tM:mm,t.l2p=b,t.p2l=p,t.c2p=t.type==="log"?function(A,L){return b(a(A,L))}:b,t.p2c=t.type==="log"?function(A){return tM(p(A))}:p,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=n_,t.c2d=t.c2r=t.l2d=t.l2r=mm,t.d2p=t.r2p=function(A){return t.l2p(n_(A))},t.p2d=t.p2r=p,t.cleanPos=mm):t.type==="log"?(t.d2r=t.d2l=function(A,L){return a(n_(A),L)},t.r2d=t.r2c=function(A){return tM(n_(A))},t.d2c=t.r2l=n_,t.c2d=t.l2r=mm,t.c2r=a,t.l2d=tM,t.d2p=function(A,L){return t.l2p(t.d2r(A,L))},t.p2d=function(A){return tM(p(A))},t.r2p=function(A){return t.l2p(n_(A))},t.p2r=p,t.cleanPos=mm):t.type==="date"?(t.d2r=t.r2d=yc.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(A,L,_){return t.l2p(o(A,0,_))},t.p2d=t.p2r=function(A,L,_){return s(p(A),L,_)},t.cleanPos=function(A){return yc.cleanDate(A,bg,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=u,t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(A){var L=d(A);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=mm,t.r2l=d,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return l(p(A))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(A){return typeof A=="string"&&A!==""?A:mm(A)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(A){var L=h(A);return L!==void 0?L:t.fraction2r(.5)},t.r2c_just_indices=f,t.l2r=t.c2r=mm,t.r2l=h,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return l(p(A))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(A){return Array.isArray(A)||typeof A=="string"&&A!==""?A:mm(A)},t.setupMultiCategory=function(A){var L=t._traceIndices,_,k,M=t._matchGroup;if(M&&t._categories.length===0){for(var g in M)if(g!==n){var P=r[fL.id2name(g)];L=L.concat(P._traceIndices)}}var T=[[0,{}],[0,{}]],z=[];for(_=0;_P[1]&&(k[g?0:1]=_),k[0]===k[1]){var T=t.l2r(L),z=t.l2r(_);if(L!==void 0){var O=T+1;_!==void 0&&(O=Math.min(O,z)),k[g?1:0]=O}if(_!==void 0){var V=z+1;L!==void 0&&(V=Math.max(V,T)),k[g?0:1]=V}}}},t.cleanRange=function(A,L){t._cleanRange(A,L),t.limitRange(A)},t._cleanRange=function(A,L){L||(L={}),A||(A="range");var _=yc.nestedProperty(t,A).get(),k,M;if(t.type==="date"?M=yc.dfltRange(t.calendar):i==="y"?M=vL.DFLTRANGEY:t._name==="realaxis"?M=[0,1]:M=L.dfltRange||vL.DFLTRANGEX,M=M.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(M[0]=0),!_||_.length!==2){yc.nestedProperty(t,A).set(M);return}var g=_[0]===null,P=_[1]===null;for(t.type==="date"&&!t.autorange&&(_[0]=yc.cleanDate(_[0],bg,t.calendar),_[1]=yc.cleanDate(_[1],bg,t.calendar)),k=0;k<2;k++)if(t.type==="date"){if(!yc.isDateTime(_[k],t.calendar)){t[A]=M;break}if(t.r2l(_[0])===t.r2l(_[1])){var T=yc.constrain(t.r2l(_[0]),yc.MIN_MS+1e3,yc.MAX_MS-1e3);_[0]=t.l2r(T-1e3),_[1]=t.l2r(T+1e3);break}}else{if(!gm(_[k]))if(!(g||P)&&gm(_[1-k]))_[k]=_[1-k]*(k?10:.1);else{t[A]=M;break}if(_[k]<-lL?_[k]=-lL:_[k]>lL&&(_[k]=lL),_[0]===_[1]){var z=Math.max(1,Math.abs(_[0]*1e-6));_[0]-=z,_[1]+=z}}},t.setScale=function(A){var L=r._size;if(t.overlaying){var _=fL.getFromId({_fullLayout:r},t.overlaying);t.domain=_.domain}var k=A&&t._r?"_r":"range",M=t.calendar;t.cleanRange(k);var g=t.r2l(t[k][0],M),P=t.r2l(t[k][1],M),T=i==="y";if(T?(t._offset=L.t+(1-t.domain[1])*L.h,t._length=L.h*(t.domain[1]-t.domain[0]),t._m=t._length/(g-P),t._b=-t._m*P):(t._offset=L.l+t.domain[0]*L.w,t._length=L.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-g),t._b=-t._m*g),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var z,O;if(t._rangebreaks=t.locateBreaks(Math.min(g,P),Math.max(g,P)),t._rangebreaks.length){for(z=0;zP&&(V=!V),V&&t._rangebreaks.reverse();var G=V?-1:1;for(t._m2=G*t._length/(Math.abs(P-g)-t._lBreaks),t._B.push(-t._m2*(T?P:g)),z=0;zM&&(M+=7,gM&&(M+=24,g=k&&g=k&&A=ie.min&&(_eie.max&&(ie.max=Me),ke=!1)}ke&&P.push({min:_e,max:Me})}};for(_=0;_{"use strict";var $oe=Eo(),Kq=Dr(),Bot=hs().BADNUM,pL=Kq.isArrayOrTypedArray,Not=Kq.isDateTime,Uot=Kq.cleanNumber,Qoe=Math.round;tse.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(pL(i)&&!i.length)return"-";if(!a&&Wot(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function ese(e){return Math.max(1,(e-1)/1e3)}function jot(e,t){for(var r=e.length,n=ese(r),i=0,a=0,o={},s=0;si*2}function Wot(e){return pL(e[0])&&pL(e[1])}});var wg=ye((Wir,use)=>{"use strict";var Xot=Oa(),ase=Eo(),o_=Dr(),gL=hs().FP_SAFE,Zot=qa(),Yot=So(),ose=hf(),Kot=ose.getFromId,Jot=ose.isLinked;use.exports={applyAutorangeOptions:lse,getAutoRange:Jq,makePadFn:$q,doAutoRange:Qot,findExtremes:est,concatExtremes:tB};function Jq(e,t){var r,n,i=[],a=e._fullLayout,o=$q(a,t,0),s=$q(a,t,1),l=tB(e,t),u=l.min,c=l.max;if(u.length===0||c.length===0)return o_.simpleMap(t.range,t.r2l);var f=u[0].val,h=c[0].val;for(r=1;r0&&(P=E-o(_)-s(k),P>A?T/P>L&&(M=_,g=k,L=T/P):T/E>L&&(M={val:_.val,nopad:1},g={val:k.val,nopad:1},L=T/E));function z(H,N){return Math.max(H,s(N))}if(f===h){var O=f-1,V=f+1;if(p)if(f===0)i=[0,1];else{var G=(f>0?c:u).reduce(z,0),Z=f/(1-Math.min(.5,G/E));i=f>0?[0,Z]:[Z,0]}else C?i=[Math.max(0,O),Math.max(1,V)]:i=[O,V]}else p?(M.val>=0&&(M={val:0,nopad:1}),g.val<=0&&(g={val:0,nopad:1})):C&&(M.val-L*o(M)<0&&(M={val:0,nopad:1}),g.val<=0&&(g={val:1,nopad:1})),L=(g.val-M.val-rse(t,_.val,k.val))/(E-o(M)-s(g)),i=[M.val-L*o(M),g.val+L*s(g)];return i=lse(i,t),t.limitRange&&t.limitRange(),v&&i.reverse(),o_.simpleMap(i,t.l2r||Number)}function rse(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),_=A((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),k=A(r.vpadplus||r.vpad),M=A(r.vpadminus||r.vpad);if(!u){if(C=1/0,E=-1/0,l)for(f=0;f0&&(C=h),h>E&&h-gL&&(C=h),h>E&&h=T;f--)P(f);return{min:n,max:i,opts:r}}function Qq(e,t,r,n){sse(e,t,r,n,tst)}function eB(e,t,r,n){sse(e,t,r,n,rst)}function sse(e,t,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l=r&&(u.extrapad||!o)){s=!1;break}else i(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var c=a&&t===0;e.push({val:t,pad:c?0:r,extrapad:c?!1:o})}}function nse(e){return ase(e)&&Math.abs(e)=t}function ist(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&mL(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&mL(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function nst(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&mL(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&mL(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function mL(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=l&&(a=l,r=l),o<=l&&(o=l,n=l)}}return r=ist(r,t),n=nst(n,t),[r,n]}});var ho=ye((Xir,Pse)=>{"use strict";var w0=Oa(),kh=Eo(),P3=Mc(),iM=qa(),Jo=Dr(),I3=Jo.strTranslate,Eb=ru(),ast=Mb(),nM=Ca(),Xp=So(),ost=Rd(),cse=Sq(),Jd=hs(),sst=Jd.ONEMAXYEAR,xL=Jd.ONEAVGYEAR,bL=Jd.ONEMINYEAR,lst=Jd.ONEMAXQUARTER,aB=Jd.ONEAVGQUARTER,wL=Jd.ONEMINQUARTER,ust=Jd.ONEMAXMONTH,R3=Jd.ONEAVGMONTH,TL=Jd.ONEMINMONTH,Zp=Jd.ONEWEEK,zv=Jd.ONEDAY,s_=zv/2,xm=Jd.ONEHOUR,aM=Jd.ONEMIN,AL=Jd.ONESEC,cst=Jd.ONEMILLI,fst=Jd.ONEMICROSEC,Cb=Jd.MINUS_SIGN,EL=Jd.BADNUM,oB={K:"zeroline"},sB={K:"gridline",L:"path"},lB={K:"minor-gridline",L:"path"},bse={K:"tick",L:"path"},fse={K:"tick",L:"text"},hse={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},CL=Kh(),rM=CL.MID_SHIFT,kb=CL.CAP_SHIFT,oM=CL.LINE_SPACING,hst=CL.OPPOSITE_SIDE,SL=3,Qn=Pse.exports={};Qn.setConvert=ym();var dst=L3(),Ay=hf(),vst=Ay.idSort,pst=Ay.isLinked;Qn.id2name=Ay.id2name;Qn.name2id=Ay.name2id;Qn.cleanId=Ay.cleanId;Qn.list=Ay.list;Qn.listIds=Ay.listIds;Qn.getFromId=Ay.getFromId;Qn.getFromTrace=Ay.getFromTrace;var wse=wg();Qn.getAutoRange=wse.getAutoRange;Qn.findExtremes=wse.findExtremes;var gst=1e-4;function hB(e){var t=(e[1]-e[0])*gst;return[e[0]-t,e[1]+t]}Qn.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],l=n+"ref",u={};return i||(i=s[0]||(typeof a=="string"?a:a[0])),a||(a=i),s=s.concat(s.map(function(c){return c+" domain"})),u[l]={valType:"enumerated",values:s.concat(a?typeof a=="string"?[a]:a:[]),dflt:i},Jo.coerce(e,t,u,l)};Qn.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Qn.coercePosition=function(e,t,r,n,i,a){var o,s,l=Qn.getRefType(n);if(l!=="range")o=Jo.ensureNumber,s=r(i,a);else{var u=Qn.getFromId(t,n);a=u.fraction2r(a),s=r(i,a),o=u.cleanPos}e[i]=o(s)};Qn.cleanPosition=function(e,t,r){var n=r==="paper"||r==="pixel"?Jo.ensureNumber:Qn.getFromId(t,r).cleanPos;return n(e)};Qn.redrawComponents=function(e,t){t=t||Qn.listIds(e);var r=e._fullLayout;function n(i,a,o,s){for(var l=iM.getComponentMethod(i,a),u={},c=0;c2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Qn.saveRangeInitial=function(e,t){for(var r=Qn.list(e,"",!0),n=!1,i=0;if*.3||u(n)||u(i))){var h=r.dtick/2;e+=e+ho){var s=Number(r.substr(1));a.exactYears>o&&s%12===0?e=Qn.tickIncrement(e,"M6","reverse")+zv*1.5:a.exactMonths>o?e=Qn.tickIncrement(e,"M1","reverse")+zv*15.5:e-=s_;var l=Qn.tickIncrement(e,r);if(l<=n)return l}return e}Qn.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var n=t.dtick&&kh(t._tmin),i;if(n){var a=Qn.tickIncrement(t._tmin,t.dtick,!0);i=[t._tmin,a*.99+t._tmin*.01]}else{var o=Jo.simpleMap(t.range,t.r2l);i=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Jo.simpleMap(i,t.l2r),e._isMinor=!0,Qn.prepTicks(e,r),n){var s=kh(t.dtick),l=kh(e.dtick),u=s?t.dtick:+t.dtick.substring(1),c=l?e.dtick:+e.dtick.substring(1);s&&l?rB(u,c)?u===2*Zp&&c===2*zv&&(e.dtick=Zp):u===2*Zp&&c===3*zv?e.dtick=Zp:u===Zp&&!(t._input.minor||{}).nticks?e.dtick=zv:pse(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":rB(u,c)?u>=12&&c===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?rB(u,c)||(e.dtick=pse(u/c,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function rB(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function pse(e,t){return Math.abs(e/t-1)<.001}Qn.prepTicks=function(e,t){var r=Jo.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,i;n||(e.type==="category"||e.type==="multicategory"?(i=e.tickfont?Jo.bigFont(e.tickfont.size||12):15,n=e._length/i):(i=e._id.charAt(0)==="y"?40:80,n=Jo.constrain(e._length/i,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,Qn.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=n-1,o=n):(a=n,o=n);var s=e[a].value,l=e[o].value,u=Math.abs(l-s),c=r||u,f=0;c>=bL?u>=bL&&u<=sst?f=u:f=xL:r===aB&&c>=wL?u>=wL&&u<=lst?f=u:f=aB:c>=TL?u>=TL&&u<=ust?f=u:f=R3:r===Zp&&c>=Zp?f=Zp:c>=zv?f=zv:r===s_&&c>=s_?f=s_:r===xm&&c>=xm&&(f=xm);var h;f>=u&&(f=u,h=!0);var d=i+f;if(t.rangebreaks&&f>0){for(var v=84,x=0,b=0;bZp&&(f=u)}(f>0||n===0)&&(e[n].periodX=i+f/2)}}Qn.calcTicks=function(t,r){for(var n=t.type,i=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],l=!t.ticklabelindex||Jo.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],u=Jo.simpleMap(t.range,t.r2l,void 0,void 0,r),c=u[1]=(E?0:1);A--){var L=!A;A?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var _=A?t:Jo.extendFlat({},t,t.minor);if(L?Qn.prepMinorTicks(_,t,r):Qn.prepTicks(_,r),_.tickmode==="array"){A?(b=[],v=gse(t,!L)):(p=[],x=gse(t,!L));continue}if(_.tickmode==="sync"){b=[],v=wst(t);continue}var k=hB(u),M=k[0],g=k[1],P=kh(_.dtick),T=n==="log"&&!(P||_.dtick.charAt(0)==="L"),z=Qn.tickFirst(_,r);if(A){if(t._tmin=z,z=g:V<=g;V=Qn.tickIncrement(V,H,c,i)){if(A&&G++,_.rangebreaks&&!c){if(V=h)break}if(b.length>d||V===O)break;O=V;var N={value:V};A?(T&&V!==(V|0)&&(N.simpleLabel=!0),a>1&&G%a&&(N.skipLabel=!0),b.push(N)):(N.minor=!0,p.push(N))}}if(!p||p.length<2)l=!1;else{var j=(p[1].value-p[0].value)*(s?-1:1);Wst(j,t.tickformat)||(l=!1)}if(!l)C=b;else{var re=b.concat(p);o&&b.length&&(re=re.slice(1)),re=re.sort(function(Gt,Nt){return Gt.value-Nt.value}).filter(function(Gt,Nt,$t){return Nt===0||Gt.value!==$t[Nt-1].value});var oe=re.map(function(Gt,Nt){return Gt.minor===void 0&&!Gt.skipLabel?Nt:null}).filter(function(Gt){return Gt!==null});oe.forEach(function(Gt){l.map(function(Nt){var $t=Gt+Nt;$t>=0&&$t-1;De--){if(b[De].drop){b.splice(De,1);continue}b[De].value=nB(b[De].value,t);var ce=t.c2p(b[De].value);(Pe?Fe>ce-ge:Feh||srh&&($t.periodX=h),sri&&hxL)t/=xL,n=i(10),e.dtick="M"+12*_m(t,n,yL);else if(a>R3)t/=R3,e.dtick="M"+_m(t,1,mse);else if(a>zv){if(e.dtick=_m(t,zv,e._hasDayOfWeekBreaks?[1,2,7,14]:Tst),!r){var o=Qn.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Jo.dateTick0(e.calendar,2):e.tick0=Jo.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>xm?e.dtick=_m(t,xm,mse):a>aM?e.dtick=_m(t,aM,yse):a>AL?e.dtick=_m(t,AL,yse):(n=i(10),e.dtick=_m(t,n,yL))}else if(e.type==="log"){e.tick0=0;var l=Jo.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var u=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/u,n=i(10),e.dtick="L"+_m(t,n,yL)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):pB(e)?(e.tick0=0,n=1,e.dtick=_m(t,n,Ast)):(e.tick0=0,n=i(10),e.dtick=_m(t,n,yL));if(e.dtick===0&&(e.dtick=1),!kh(e.dtick)&&typeof e.dtick!="string"){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}};function Mse(e){var t=e.dtick;if(e._tickexponent=0,!kh(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if(String(t).charAt(0)==="M")i>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=zv&&i<=10||t>=zv*15)e._tickround="d";else if(t>=aM&&i<=16||t>=xm)e._tickround="M";else if(t>=AL&&i<=19||t>=aM)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(kh(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);kh(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(l)>u&&(ML(e.exponentformat)&&!dB(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}Qn.tickIncrement=function(e,t,r,n){var i=r?-1:1;if(kh(t))return Jo.increment(e,i*t);var a=t.charAt(0),o=i*Number(t.substr(1));if(a==="M")return Jo.incrementMonth(e,o,n);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?Sse:Ase,l=e+i*.01,u=Jo.roundUp(Jo.mod(l,1),s,r);return Math.floor(l)+Math.log(w0.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};Qn.tickFirst=function(e,t){var r=e.r2l||Number,n=Jo.simpleMap(e.range,r,void 0,void 0,t),i=n[1]=0&&p<=e._length?b:null};if(a&&Jo.isArrayOrTypedArray(e.ticktext)){var f=Jo.simpleMap(e.range,e.r2l),h=(Math.abs(f[1]-f[0])-(e._lBreaks||0))/1e4;for(u=0;u"+s;else{var u=lM(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function Mst(e,t,r,n,i){var a=e.dtick,o=t.x,s=e.tickformat,l=typeof a=="string"&&a.charAt(0);if(i==="never"&&(i=""),n&&l!=="L"&&(a="L3",l="L"),s||l==="L")t.text=sM(Math.pow(10,o),e,i,n);else if(kh(a)||l==="D"&&(e.minorloglabels==="complete"||Jo.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Jo.mod(o+.01,1)<.1)&&(u=!0,t.fontSize*=.75);var c=Math.pow(10,o).toExponential(0),f=c.split("e"),h=+f[1],d=Math.abs(h),v=e.exponentformat;v==="power"||ML(v)&&dB(h)?(t.text=f[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":Cb)+d+""),t.fontSize*=1.25):(v==="e"||v==="E")&&d>2?t.text=f[0]+v+(h>0?"+":Cb)+d:(t.text=sM(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Jo.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var x=String(t.text).charAt(0);(x==="0"||x==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function Est(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function Cst(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=i[1]===void 0?"":String(i[1]),o=i[0]===void 0?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function kst(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=sM(t.x,e,i,n)}function Lst(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=Pst(a);if(o[1]>=100)t.text=sM(Jo.deg2rad(t.x),e,i,n);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=Cb+t.text)}}}else t.text=sM(t.x,e,i,n)}function Pst(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function n(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}var Ist=["f","p","n","\u03BC","m","","k","M","G","T"];function ML(e){return e==="SI"||e==="B"}function dB(e){return e>14||e<-15}function sM(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=Qn.getTickFormat(t),u=t.separatethousands;if(n){var c={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:kh(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};Mse(c),a=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,Cb);var f=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+v+"":o==="B"&&s===9?e+="B":ML(o)&&(e+=Ist[s/3+5])}return i?Cb+e:e}Qn.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*R3}function n(l,u){var c=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var f=c.indexOf(l.charAt(0)),h=c.indexOf(u.charAt(0));return f===h?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):f-h}else return typeof l=="number"?1:-1}function i(l,u,c){var f=c||function(v){return v},h=u[0],d=u[1];return(!h&&typeof h!="number"||f(h)<=f(l))&&(!d&&typeof d!="number"||f(d)>=f(l))}function a(l,u){var c=u[0]===null,f=u[1]===null,h=n(l,u[0])>=0,d=n(l,u[1])<=0;return(c||h)&&(f||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&i.unshift(i.splice(c,1).shift())}});var s={false:{left:0,right:0}};return Jo.syncOrAsync(i.map(function(l){return function(){if(l){var u=Qn.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var c=Qn.drawOne(e,u,r);return u._shiftPusher&&fB(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=Jo.simpleMap(u._r,u.r2l),c}}}))};Qn.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},i=r.overlayingShiftedAx||[],a,o,s;t.setScale();var l=e._fullLayout,u=t._id,c=u.charAt(0),f=Qn.counterLetter(u),h=l._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||i.indexOf(t._id)!==-1||i.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var v=t.linewidth/2||0;t.ticks==="inside"&&(v+=t.ticklen),fB(t,v,n,!0),fB(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=jst(t,n));var x=h[c+"axislayer"],b=t._mainLinePosition,p=b+=t._shift,C=t._mainMirrorPosition,E=t._vals=Qn.calcTicks(t),A=[t.mirror,p,C].join("_");for(a=0;a0?sr.bottom-Nt:0,$t))));var Et=0,er=0;if(t._shiftPusher&&(Et=Math.max($t,sr.height>0?lt==="l"?Nt-sr.left:sr.right-Nt:0),t.title.text!==l._dfltTitle[c]&&(er=(t._titleStandoff||0)+(t._titleScoot||0),lt==="l"&&(er+=xse(t))),t._fullDepth=Math.max(Et,er)),t.automargin){wr={x:0,y:0,r:0,l:0,t:0,b:0};var Ut=[0,1],Ft=typeof t._shift=="number"?t._shift:0;if(c==="x"){if(lt==="b"?wr[lt]=t._depth:(wr[lt]=t._depth=Math.max(sr.width>0?Nt-sr.top:0,$t),Ut.reverse()),sr.width>0){var bt=sr.right-(t._offset+t._length);bt>0&&(wr.xr=1,wr.r=bt);var yt=t._offset-sr.left;yt>0&&(wr.xl=0,wr.l=yt)}}else if(lt==="l"?(t._depth=Math.max(sr.height>0?Nt-sr.left:0,$t),wr[lt]=t._depth-Ft):(t._depth=Math.max(sr.height>0?sr.right-Nt:0,$t),wr[lt]=t._depth+Ft,Ut.reverse()),sr.height>0){var Yt=sr.bottom-(t._offset+t._length);Yt>0&&(wr.yb=0,wr.b=Yt);var lr=t._offset-sr.top;lr>0&&(wr.yt=1,wr.t=lr)}wr[f]=t.anchor==="free"?t.position:t._anchorAxis.domain[Ut[0]],t.title.text!==l._dfltTitle[c]&&(wr[lt]+=xse(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(ur={x:0,y:0,r:0,l:0,t:0,b:0},ur[Gt]=t.linewidth,t.mirror&&t.mirror!==!0&&(ur[Gt]+=$t),t.mirror===!0||t.mirror==="ticks"?ur[f]=t._anchorAxis.domain[Ut[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(ur[f]=[t._counterDomainMin,t._counterDomainMax][Ut[1]]))}st&&(Qe=iM.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(_se(wr,t.automargin),_se(ur,t.automargin)),P3.autoMargin(e,vB(t),wr),P3.autoMargin(e,kse(t),ur),P3.autoMargin(e,Lse(t),Qe)}),Jo.syncOrAsync(pt)}};function _se(e,t){if(e){var r=Object.keys(hse).reduce(function(n,i){return t.indexOf(i)!==-1&&hse[i].forEach(function(a){n[a]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function Rst(e,t){var r=[],n,i=function(a,o){var s=a.xbnd[o];s!==null&&r.push(Jo.extendFlat({},a,{x:s}))};if(t.length){for(n=0;ne.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,l=!s;if(r){var u=o?-1:1;r=r*u}if(n){var c=e.side,f=s&&(c==="top"||c==="left")||l&&(c==="bottom"||c==="right")?1:-1;n=n*f}return e._id.charAt(0)==="x"?function(h){return I3(i+e._offset+e.l2p(uB(h))+r,a+n)}:function(h){return I3(a+n,i+e._offset+e.l2p(uB(h))+r)}};function uB(e){return e.periodX!==void 0?e.periodX:e.x}function Ost(e){var t=e.ticklabelposition||"",r=e.tickson||"",n=function(v){return t.indexOf(v)!==-1},i=n("top"),a=n("left"),o=n("right"),s=n("bottom"),l=n("inside"),u=r!=="boundaries"&&(s||a||i||o);if(!u&&!l)return[0,0];var c=e.side,f=u?(e.tickwidth||0)/2:0,h=SL,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(f+=d*kb,h+=(e.linewidth||0)/2),(a||o)&&(f+=(e.linewidth||0)/2,h+=SL),l&&c==="top"&&(h-=d*(1-kb)),(a||i)&&(f=-f),(c==="bottom"||c==="right")&&(h=-h),[u?f:0,l?h:0]}Qn.makeTickPath=function(e,t,r,n){n||(n={});var i=n.minor;if(i&&!e.minor)return"";var a=n.len!==void 0?n.len:i?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};Qn.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(O){return n.indexOf(O)!==-1},o=a("top"),s=a("left"),l=a("right"),u=a("bottom"),c=i!=="boundaries"&&(u||s||o||l),f=a("inside"),h=n==="inside"&&e.ticks==="inside"||!f&&e.ticks==="outside"&&i!=="boundaries",d=0,v=0,x=h?e.ticklen:0;if(f?x*=-1:c&&(x=0),h&&(d+=x,r)){var b=Jo.deg2rad(r);d=x*Math.cos(b)+1,v=x*Math.sin(b)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(f?-1:1);var p={labelStandoff:d,labelShift:v},C,E,A,L,_=0,k=e.side,M=e._id.charAt(0),g=e.tickangle,P;if(M==="x")P=!f&&k==="bottom"||f&&k==="top",L=P?1:-1,f&&(L*=-1),C=v*L,E=t+d*L,A=P?1:-.2,Math.abs(g)===90&&(f?A+=rM:g===-90&&k==="bottom"?A=kb:g===90&&k==="top"?A=rM:A=.5,_=rM/2*(g/90)),p.xFn=function(O){return O.dx+C+_*O.fontSize},p.yFn=function(O){return O.dy+E+O.fontSize*A},p.anchorFn=function(O,V){if(c){if(s)return"end";if(l)return"start"}return!kh(V)||V===0||V===180?"middle":V*L<0!==f?"end":"start"},p.heightFn=function(O,V,G){return V<-60||V>60?-.5*G:e.side==="top"!==f?-G:0};else if(M==="y"){if(P=!f&&k==="left"||f&&k==="right",L=P?1:-1,f&&(L*=-1),C=d,E=v*L,A=0,!f&&Math.abs(g)===90&&(g===-90&&k==="left"||g===90&&k==="right"?A=kb:A=.5),f){var T=kh(g)?+g:0;if(T!==0){var z=Jo.deg2rad(T);_=Math.abs(Math.sin(z))*kb*L,A=0}}p.xFn=function(O){return O.dx+t-(C+O.fontSize*A)*L+_*O.fontSize},p.yFn=function(O){return O.dy+E+O.fontSize*rM},p.anchorFn=function(O,V){return kh(V)&&Math.abs(V)===90?"middle":P?"end":"start"},p.heightFn=function(O,V,G){return e.side==="right"&&(V*=-1),V<-30?-G:V<30?-.5*G:0}}return p};function kL(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Qn.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+n).data(i,kL);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return nM.stroke(w0.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Xp.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),LL(t,[bse]),a.attr("transform",r.transFn)};Qn.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?r.vals.filter(function(p){return p.minor}):[],o=t.showgrid?r.vals.filter(function(p){return!p.minor}):[],s=r.counterAxis;if(s&&Qn.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;v--){var x=v?h:d;if(x){var b=x.selectAll("path."+n).data(v?o:a,kL);b.exit().remove(),b.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(p){return nM.stroke(w0.select(this),p.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(p){return Xp.dashStyle(p.minor?t.minor.griddash:t.griddash,p.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(p){return(p.minor?f:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}LL(t,[sB,lB])}};Qn.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=Qn.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return vst(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(nM.stroke,t.zerolinecolor||nM.defaultLine).style("stroke-width",Xp.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),LL(t,[oB])};Qn.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,i=t._id,a=t.zerolinelayer==="above traces",o=r.cls||i+"tick",s=r.vals.filter(function(j){return j.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,c=(t._prevTickAngles||{})[o],f=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],kL),h=[];f.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(j){var re=w0.select(this),oe=e._promises.length;re.call(Eb.positionText,l.xFn(j),l.yFn(j)).call(Xp.font,{family:j.font,size:j.fontSize,color:j.fontColor,weight:j.fontWeight,style:j.fontStyle,variant:j.fontVariant,textcase:j.fontTextcase,lineposition:j.fontLineposition,shadow:j.fontShadow}).text(j.text).call(Eb.convertToTspans,e),e._promises[oe]?h.push(e._promises.pop().then(function(){d(re,u)})):d(re,u)}),LL(t,[fse]),f.exit().remove(),r.repositionOnUpdate&&f.each(function(j){w0.select(this).select("text").call(Eb.positionText,l.xFn(j),l.yFn(j))});function d(j,re){j.each(function(oe){var _e=w0.select(this),Me=_e.select(".text-math-group"),ke=l.anchorFn(oe,re),me=r.transFn.call(_e.node(),oe)+(kh(re)&&+re!=0?" rotate("+re+","+l.xFn(oe)+","+(l.yFn(oe)-oe.fontSize/2)+")":""),ie=Eb.lineCount(_e),Se=oM*oe.fontSize,Le=l.heightFn(oe,kh(re)?+re:0,(ie-1)*Se);if(Le&&(me+=I3(0,Le)),Me.empty()){var Ae=_e.select("text");Ae.attr({transform:me,"text-anchor":ke}),Ae.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var De=Xp.bBox(Me.node()).width,Pe=De*{end:-.5,start:.5}[ke];Me.attr("transform",me+I3(Pe,0))}})}t._adjustTickLabelsOverflow=function(){var j=t.ticklabeloverflow;if(!(!j||j==="allow")){var re=j.indexOf("hide")!==-1,oe=t._id.charAt(0)==="x",_e=0,Me=oe?e._fullLayout.width:e._fullLayout.height;if(j.indexOf("domain")!==-1){var ke=Jo.simpleMap(t.range,t.r2l);_e=t.l2p(ke[0])+t._offset,Me=t.l2p(ke[1])+t._offset}var me=Math.min(_e,Me),ie=Math.max(_e,Me),Se=t.side,Le=1/0,Ae=-1/0;f.each(function(Fe){var ce=w0.select(this),Ze=ce.select(".text-math-group");if(Ze.empty()){var ct=Xp.bBox(ce.node()),pt=0;oe?(ct.right>ie||ct.leftie||ct.top+(t.tickangle?0:Fe.fontSize/4)t["_visibleLabelMin_"+ke._id]?ce.style("display","none"):ie.K==="tick"&&!me&&ce.node().style.display!=="none"&&ce.style("display",null)})})})})},d(f,c+1?c:u);function v(){return h.length&&Promise.all(h)}var x=null;function b(){if(d(f,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){x=t.autotickangles[0];var j=0,re=[],oe,_e=1;f.each(function(wr){j=Math.max(j,wr.fontSize);var ur=t.l2p(wr.x),Qe=cB(this),Et=Xp.bBox(Qe.node());_e=Math.max(_e,Eb.lineCount(Qe)),re.push({top:0,bottom:10,height:10,left:ur-Et.width/2,right:ur+Et.width/2+2,width:Et.width+2})});var Me=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,ke=s.length,me=Math.abs((s[ke-1].x-s[0].x)*t._m)/(ke-1),ie=Me?me/2:me,Se=Me?t.ticklen:j*1.25*_e,Le=Math.sqrt(Math.pow(ie,2)+Math.pow(Se,2)),Ae=ie/Le,De=t.autotickangles.map(function(wr){return wr*Math.PI/180}),Pe=De.find(function(wr){return Math.abs(Math.cos(wr))<=Ae});Pe===void 0&&(Pe=De.reduce(function(wr,ur){return Math.abs(Math.cos(wr))Z*G&&(z=G,g[M]=P[M]=O[M])}var H=Math.abs(z-T);H-L>0?(H-=L,L*=1+L/H):L=0,t._id.charAt(0)!=="y"&&(L=-L),g[k]=E.p2r(E.r2p(P[k])+_*L),E.autorange==="min"||E.autorange==="max reversed"?(g[0]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0):(E.autorange==="max"||E.autorange==="min reversed")&&(g[1]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[E._name+".range"]=g}var N=Jo.syncOrAsync(p);return N&&N.then&&e._promises.push(N),N};function qst(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,kL);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(nM.stroke,t.dividercolor).style("stroke-width",Xp.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}Qn.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),i=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:n==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),i==="top"||i==="left")return a._offset;if(i==="bottom"||i==="right")return a._offset+a._length};function xse(e){var t=e.title.font.size,r=(e.title.text.match(Eb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(kb+r*oM):r?t*(r+1)*oM:t}function Bst(e,t){var r=e._fullLayout,n=t._id,i=n.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(Eb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*kb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(rM+s*oM));else{var l=lM(t);if(t.type==="multicategory")o=t._depth;else{var u=1.5*a;l&&(u=.5*a,t.ticks==="outside"&&(u+=t.ticklen)),o=10+u+(t.linewidth?t.linewidth-1:0)}l||(i==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var c=Qn.getPxPosition(e,t),f,h,d;i==="x"?(h=t._offset+t._length/2,d=t.side==="top"?c-o:c+o):(d=t._offset+t._length/2,h=t.side==="right"?c+o:c-o,f={rotate:"-90",offset:0});var v;if(t.type!=="multicategory"){var x=t._selections[t._id+"tick"];if(v={selection:x,side:t.side},x&&x.node()&&x.node().parentNode){var b=Xp.getTranslate(x.node().parentNode);v.offsetLeft=b.x,v.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(v.pad=0)}return t._titleStandoff=o,ast.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:v,transform:f,attributes:{x:h,y:d,"text-anchor":"middle"}})}Qn.shouldShowZeroLine=function(e,t,r){var n=Jo.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===EL)&&(Cse(t,0)||!Nst(e,t,r,n)||Ust(e,t))};Qn.clipEnds=function(e,t){return t.filter(function(r){return Cse(e,r.x)})};function Cse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=fst:/%L/.test(t)?e>=cst:/%[SX]/.test(t)?e>=AL:/%M/.test(t)?e>=aM:/%[HI]/.test(t)?e>=xm:/%p/.test(t)?e>=s_:/%[Aadejuwx]/.test(t)?e>=zv:/%[UVW]/.test(t)?e>=Zp:/%[Bbm]/.test(t)?e>=TL:/%[q]/.test(t)?e>=wL:/%[Yy]/.test(t)?e>=bL:!0}});var gB=ye((Zir,Ise)=>{"use strict";Ise.exports=function(t,r,n){var i,a;if(n){var o=r==="reversed"||r==="min reversed"||r==="max reversed";i=n[o?1:0],a=n[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?i:void 0),l=t("autorangeoptions.maxallowed",i===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),l===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var mB=ye((Yir,Rse)=>{"use strict";var Xst=gB();Rse.exports=function(t,r,n,i){var a=r._template||{},o=r.type||a.type||"-";n("minallowed"),n("maxallowed");var s=n("range");if(!s){var l;!i.noInsiderange&&o!=="log"&&(l=n("insiderange"),l&&(l[0]===null||l[1]===null)&&(r.insiderange=!1,l=void 0),l&&(s=n("range",l)))}var u=r.getAutorangeDflt(s,i),c=n("autorange",u),f;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(c==="reversed"||c===!0)||s[0]!==null&&(c==="min"||c==="max reversed")||s[1]!==null&&(c==="max"||c==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,f=!0),f||(u=r.getAutorangeDflt(s,i),c=n("autorange",u)),c&&(Xst(n,c,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var Fse=ye((Kir,Dse)=>{var Zst={left:0,top:0};Dse.exports=Yst;function Yst(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=Kst(t);return r[0]=n-a.left,r[1]=i-a.top,r}function Kst(e){return e===window||e===document||e===document.body?Zst:e.getBoundingClientRect()}});var PL=ye((Jir,zse)=>{"use strict";var Jst=eq();function $st(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}zse.exports=Jst&&$st()});var qse=ye(($ir,Ose)=>{"use strict";Ose.exports=function(t,r,n,i,a){var o=(t-n)/(i-n),s=o+r/(i-n),l=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?l:a==="right"||a==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var Use=ye((Qir,Nse)=>{"use strict";var Bse=Dr(),Qst=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Nse.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=Bse.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=Bse.constrain(Math.floor(r*3),0,2),Qst[r][t]}});var Gse=ye((enr,Vse)=>{"use strict";var elt=g3(),tlt=D6(),rlt=OS().getGraphDiv,ilt=RS(),yB=Vse.exports={};yB.wrapped=function(e,t,r){e=rlt(e),e._fullLayout&&tlt.clear(e._fullLayout._uid+ilt.HOVERID),yB.raw(e,t,r)};yB.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&elt.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&i&&t.emit("plotly_unhover",{event:r,points:i}))}});var yv=ye((tnr,Xse)=>{"use strict";var nlt=Fse(),_B=rq(),alt=PL(),olt=Dr().removeElement,slt=hd(),Lb=Xse.exports={};Lb.align=qse();Lb.getCursor=Use();var jse=Gse();Lb.unhover=jse.wrapped;Lb.unhoverRaw=jse.raw;Lb.init=function(t){var r=t.gd,n=1,i=r._context.doubleClickDelay,a=t.element,o,s,l,u,c,f,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=b,alt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function v(E,A,L){return Math.abs(E)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var A;f.target===h?A=f:(A={target:h,srcElement:h,toElement:h},Object.keys(f).concat(Object.keys(f.__proto__)).forEach(L=>{var _=f[L];!A[L]&&typeof _!="function"&&(A[L]=_)})),t.clickFn&&t.clickFn(n,A),d||h.dispatchEvent(new MouseEvent("click",E))}r._dragging=!1,r._dragged=!1}};function Wse(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Lb.coverSlip=Wse;function Hse(e){return nlt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Tg=ye((rnr,Zse)=>{"use strict";Zse.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)}});var Jse=ye((inr,Kse)=>{"use strict";var xB=Tg(),uM="data-savedcursor",Yse="!!";Kse.exports=function(t,r){var n=t.attr(uM);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var bB=ec(),llt=Eh();$se.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:llt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:bB({editType:"legend"}),grouptitlefont:bB({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:bB({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var RL=ye(IL=>{"use strict";IL.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};IL.isVertical=function(t){return t.orientation!=="h"};IL.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var SB=ye((onr,Qse)=>{"use strict";var TB=qa(),Yp=Dr(),ult=pl(),clt=Gl(),flt=wB(),hlt=s3(),AB=RL();function dlt(e,t,r,n){var i=t[e]||{},a=ult.newContainer(r,e);function o(H,N){return Yp.coerce(i,a,flt,H,N)}var s=Yp.coerceFont(o,"font",r.font);o("bgcolor",r.paper_bgcolor),o("bordercolor");var l=o("visible");if(l){for(var u,c=function(H,N){var j=u._input,re=u;return Yp.coerce(j,re,clt,H,N)},f=r.font||{},h=Yp.coerceFont(o,"grouptitlefont",f,{overrideDflt:{size:Math.round(f.size*1.1)}}),d=0,v=!1,x="normal",b=(r.shapes||[]).filter(function(H){return H.showlegend}),p=n.concat(b).filter(function(H){return e===(H.legend||"legend")}),C=0;C(e==="legend"?1:0));if(A===!1&&(r[e]=void 0),!(A===!1&&!i.uirevision)&&(o("uirevision",r.uirevision),A!==!1)){o("borderwidth");var L=o("orientation"),_=o("yref"),k=o("xref"),M=L==="h",g=_==="paper",P=k==="paper",T,z,O,V="left";M?(T=0,TB.getComponentMethod("rangeslider","isVisible")(t.xaxis)?g?(z=1.1,O="bottom"):(z=1,O="top"):g?(z=-.1,O="top"):(z=0,O="bottom")):(z=1,O="auto",P?T=1.02:(T=1,V="right")),Yp.coerce(i,a,{x:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:T}},"x"),Yp.coerce(i,a,{y:{valType:"number",editType:"legend",min:g?-2:0,max:g?3:1,dflt:z}},"y"),o("traceorder",x),AB.isGrouped(r[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",V),o("yanchor",O),o("maxheight"),o("valign"),Yp.noneOrAll(i,a,["x","y"]);var G=o("title.text");if(G){o("title.side",M?"left":"top");var Z=Yp.extendFlat({},s,{size:Yp.bigFont(s.size)});Yp.coerceFont(o,"title.font",Z)}}}}Qse.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var D3=qa(),EB=Dr(),vlt=EB.pushUnique,MB=!0;ele.exports=function(t,r,n){var i=r._fullLayout;if(r._dragged||r._editing)return;var a=i.legend.itemclick,o=i.legend.itemdoubleclick,s=i.legend.groupclick;n===1&&a==="toggle"&&o==="toggleothers"&&MB&&r.data&&r._context.showTips&&EB.notifier(EB._(r,"Double-click on legend to isolate one trace"),"long"),MB=!1;var l;if(n===1?l=a:n===2&&(l=o),!l)return;var u=s==="togglegroup",c=i.hiddenlabels?i.hiddenlabels.slice():[],f=t.data()[0][0];if(f.groupTitle&&f.noClick)return;var h=r._fullData,d=(i.shapes||[]).filter(function(Gt){return Gt.showlegend}),v=h.concat(d),x=f.trace;x._isShape&&(x=x._fullInput);var b=x.legendgroup,p,C,E,A,L,_,k={},M=[],g=[],P=[];function T(Gt,Nt){var $t=M.indexOf(Gt),sr=k.visible;return sr||(sr=k.visible=[]),M.indexOf(Gt)===-1&&(M.push(Gt),$t=M.length-1),sr[$t]=Nt,$t}var z=(i.shapes||[]).map(function(Gt){return Gt._input}),O=!1;function V(Gt,Nt){z[Gt].visible=Nt,O=!0}function G(Gt,Nt){if(!(f.groupTitle&&!u)){var $t=Gt._fullInput||Gt,sr=$t._isShape,wr=$t.index;wr===void 0&&(wr=$t._index);var ur=$t.visible===!1?!1:Nt;sr?V(wr,ur):T(wr,ur)}}var Z=x.legend,H=x._fullInput,N=H&&H._isShape;if(!N&&D3.traceIs(x,"pie-like")){var j=f.label,re=c.indexOf(j);if(l==="toggle")re===-1?c.push(j):c.splice(re,1);else if(l==="toggleothers"){var oe=re!==-1,_e=[];for(p=0;p{"use strict";rle.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var ale=ye((unr,nle)=>{"use strict";var ile=qa(),kB=RL();nle.exports=function(t,r,n){var i=r._inHover,a=kB.isGrouped(r),o=kB.isReversed(r),s={},l=[],u=!1,c={},f=0,h=0,d,v;function x(H,N,j){if(r.visible!==!1&&!(n&&H!==r._id))if(N===""||!kB.isGrouped(r)){var re="~~i"+f;l.push(re),s[re]=[j],f++}else l.indexOf(N)===-1?(l.push(N),u=!0,s[N]=[j]):s[N].push(j)}for(d=0;dP&&(g=P)}k[d][0]._groupMinRank=g,k[d][0]._preGroupSort=d}var T=function(H,N){return H[0]._groupMinRank-N[0]._groupMinRank||H[0]._preGroupSort-N[0]._preGroupSort},z=function(H,N){return H.trace.legendrank-N.trace.legendrank||H._preSort-N._preSort};for(k.forEach(function(H,N){H[0]._preGroupSort=N}),k.sort(T),d=0;d{"use strict";var DL=Dr();function ole(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Pb.formatPiePercent=function(t,r){var n=ole((t*100).toPrecision(3));return DL.numSeparate(n,r)+"%"};Pb.formatPieValue=function(t,r){var n=ole(t.toPrecision(10));return DL.numSeparate(n,r)};Pb.getFirstFilled=function(t,r){if(DL.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var plt=So(),glt=Ca();sle.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?plt.pointStyle(t,n,i,r):glt.fill(t,r.color)}});var F3=ye((hnr,fle)=>{"use strict";var ule=Ca(),cle=l_().castOption,mlt=lle();fle.exports=function(t,r,n,i){var a=n.marker.line,o=cle(a.color,r.pts)||ule.defaultLine,s=cle(a.width,r.pts)||0;t.call(mlt,r,n,i).style("stroke-width",s).call(ule.stroke,o)}});var RB=ye((dnr,mle)=>{"use strict";var Ov=Oa(),LB=qa(),_v=Dr(),hle=_v.strTranslate,Kp=So(),T0=Ca(),PB=pv().extractOpts,FL=Ru(),ylt=F3(),_lt=l_().castOption,xlt=CB(),dle=12,vle=5,Ib=2,blt=10,z3=5;mle.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+xlt.itemGap*2)/2,l=hle(s,0),u=function(k,M,g,P){var T;if(k+1)T=k;else if(M&&M.width>0)T=M.width;else return 0;return a?P:Math.min(T,g)};t.each(function(k){var M=Ov.select(this),g=_v.ensureSingle(M,"g","layers");g.style("opacity",k[0].trace.opacity);var P=n.indentation,T=n.valign,z=k[0].lineHeight,O=k[0].height;if(T==="middle"&&P===0||!z||!O)g.attr("transform",null);else{var V={top:1,bottom:-1}[T],G=V*(.5*(z-O+3))||0,Z=n.indentation;g.attr("transform",hle(Z,G))}var H=g.selectAll("g.legendfill").data([k]);H.enter().append("g").classed("legendfill",!0);var N=g.selectAll("g.legendlines").data([k]);N.enter().append("g").classed("legendlines",!0);var j=g.selectAll("g.legendsymbols").data([k]);j.enter().append("g").classed("legendsymbols",!0),j.selectAll("g.legendpoints").data([k]).enter().append("g").classed("legendpoints",!0)}).each(_).each(h).each(v).each(d).each(b).each(A).each(E).each(c).each(f).each(p).each(C);function c(k){var M=ple(k),g=M.showFill,P=M.showLine,T=M.showGradientLine,z=M.showGradientFill,O=M.anyFill,V=M.anyLine,G=k[0],Z=G.trace,H,N,j=PB(Z),re=j.colorscale,oe=j.reversescale,_e=function(Ae){if(Ae.size())if(g)Kp.fillGroupStyle(Ae,r,!0);else{var De="legendfill-"+Z.uid;Kp.gradient(Ae,r,De,IB(oe),re,"fill")}},Me=function(Ae){if(Ae.size()){var De="legendline-"+Z.uid;Kp.lineGroupStyle(Ae),Kp.gradient(Ae,r,De,IB(oe),re,"stroke")}},ke=FL.hasMarkers(Z)||!O?"M5,0":V?"M5,-2":"M5,-3",me=Ov.select(this),ie=me.select(".legendfill").selectAll("path").data(g||z?[k]:[]);if(ie.enter().append("path").classed("js-fill",!0),ie.exit().remove(),ie.attr("d",ke+"h"+o+"v6h-"+o+"z").call(_e),P||T){var Se=u(void 0,Z.line,blt,vle);N=_v.minExtend(Z,{line:{width:Se}}),H=[_v.minExtend(G,{trace:N})]}var Le=me.select(".legendlines").selectAll("path").data(P||T?[H]:[]);Le.enter().append("path").classed("js-line",!0),Le.exit().remove(),Le.attr("d",ke+(T?"l"+o+",0.0001":"h"+o)).call(P?Kp.lineGroupStyle:Me)}function f(k){var M=ple(k),g=M.anyFill,P=M.anyLine,T=M.showLine,z=M.showMarker,O=k[0],V=O.trace,G=!z&&!P&&!g&&FL.hasText(V),Z,H;function N(ie,Se,Le,Ae){var De=_v.nestedProperty(V,ie).get(),Pe=_v.isArrayOrTypedArray(De)&&Se?Se(De):De;if(a&&Pe&&Ae!==void 0&&(Pe=Ae),Le){if(PeLe[1])return Le[1]}return Pe}function j(ie){return O._distinct&&O.index&&ie[O.index]?ie[O.index]:ie[0]}if(z||G||T){var re={},oe={};if(z){re.mc=N("marker.color",j),re.mx=N("marker.symbol",j),re.mo=N("marker.opacity",_v.mean,[.2,1]),re.mlc=N("marker.line.color",j),re.mlw=N("marker.line.width",_v.mean,[0,5],Ib),oe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var _e=N("marker.size",_v.mean,[2,16],dle);re.ms=_e,oe.marker.size=_e}T&&(oe.line={width:N("line.width",j,[0,10],vle)}),G&&(re.tx="Aa",re.tp=N("textposition",j),re.ts=10,re.tc=N("textfont.color",j),re.tf=N("textfont.family",j),re.tw=N("textfont.weight",j),re.ty=N("textfont.style",j),re.tv=N("textfont.variant",j),re.tC=N("textfont.textcase",j),re.tE=N("textfont.lineposition",j),re.tS=N("textfont.shadow",j)),Z=[_v.minExtend(O,re)],H=_v.minExtend(V,oe),H.selectedpoints=null,H.texttemplate=null}var Me=Ov.select(this).select("g.legendpoints"),ke=Me.selectAll("path.scatterpts").data(z?Z:[]);ke.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),ke.exit().remove(),ke.call(Kp.pointStyle,H,r),z&&(Z[0].mrc=3);var me=Me.selectAll("g.pointtext").data(G?Z:[]);me.enter().append("g").classed("pointtext",!0).append("text").attr("transform",l),me.exit().remove(),me.selectAll("text").call(Kp.textPointStyle,H,r)}function h(k){var M=k[0].trace,g=M.type==="waterfall";if(k[0]._distinct&&g){var P=k[0].trace[k[0].dir].marker;return k[0].mc=P.color,k[0].mlw=P.line.width,k[0].mlc=P.line.color,x(k,this,"waterfall")}var T=[];M.visible&&g&&(T=k[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var z=Ov.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(T);z.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(O){var V=Ov.select(this),G=M[O[0]].marker,Z=u(void 0,G.line,z3,Ib);V.attr("d",O[1]).style("stroke-width",Z+"px").call(T0.fill,G.color),Z&&V.call(T0.stroke,G.line.color)})}function d(k){x(k,this)}function v(k){x(k,this,"funnel")}function x(k,M,g){var P=k[0].trace,T=P.marker||{},z=T.line||{},O=T.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",V=g?P.visible&&P.type===g:LB.traceIs(P,"bar"),G=Ov.select(M).select("g.legendpoints").selectAll("path.legend"+g).data(V?[k]:[]);G.enter().append("path").classed("legend"+g,!0).attr("d",O).attr("transform",l),G.exit().remove(),G.each(function(Z){var H=Ov.select(this),N=Z[0],j=u(N.mlw,T.line,z3,Ib);H.style("stroke-width",j+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var oe=PB(T),_e=oe.mid;_e===void 0&&(_e=(oe.max+oe.min)/2),re=Kp.tryColorscale(T,"")(_e)}var Me=re||N.mc||T.color,ke=T.pattern,me=Kp.getPatternAttr,ie=ke&&(me(ke.shape,0,"")||me(ke.path,0,""));if(ie){var Se=me(ke.bgcolor,0,null),Le=me(ke.fgcolor,0,null),Ae=ke.fgopacity,De=gle(ke.size,8,10),Pe=gle(ke.solidity,.5,1),ge="legend-"+P.uid;H.call(Kp.pattern,"legend",r,ge,ie,De,Pe,re,ke.fillmode,Se,Le,Ae)}else H.call(T0.fill,Me);j&&T0.stroke(H,N.mlc||z.color)})}function b(k){var M=k[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendbox").data(M.visible&&LB.traceIs(M,"box-violin")?[k]:[]);g.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),g.exit().remove(),g.each(function(){var P=Ov.select(this);if((M.boxpoints==="all"||M.points==="all")&&T0.opacity(M.fillcolor)===0&&T0.opacity((M.line||{}).color)===0){var T=_v.minExtend(M,{marker:{size:a?dle:_v.constrain(M.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});g.call(Kp.pointStyle,T,r)}else{var z=u(void 0,M.line,z3,Ib);P.style("stroke-width",z+"px").call(T0.fill,M.fillcolor),z&&T0.stroke(P,M.line.color)}})}function p(k){var M=k[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(M.visible&&M.type==="candlestick"?[k,k]:[]);g.enter().append("path").classed("legendcandle",!0).attr("d",function(P,T){return T?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,T){var z=Ov.select(this),O=M[T?"increasing":"decreasing"],V=u(void 0,O.line,z3,Ib);z.style("stroke-width",V+"px").call(T0.fill,O.fillcolor),V&&T0.stroke(z,O.line.color)})}function C(k){var M=k[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(M.visible&&M.type==="ohlc"?[k,k]:[]);g.enter().append("path").classed("legendohlc",!0).attr("d",function(P,T){return T?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,T){var z=Ov.select(this),O=M[T?"increasing":"decreasing"],V=u(void 0,O.line,z3,Ib);z.style("fill","none").call(Kp.dashLine,O.line.dash,V),V&&T0.stroke(z,O.line.color)})}function E(k){L(k,this,"pie")}function A(k){L(k,this,"funnelarea")}function L(k,M,g){var P=k[0],T=P.trace,z=g?T.visible&&T.type===g:LB.traceIs(T,g),O=Ov.select(M).select("g.legendpoints").selectAll("path.legend"+g).data(z?[k]:[]);if(O.enter().append("path").classed("legend"+g,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),O.exit().remove(),O.size()){var V=T.marker||{},G=u(_lt(V.line.width,P.pts),V.line,z3,Ib),Z="pieLike",H=_v.minExtend(T,{marker:{line:{width:G}}},Z),N=_v.minExtend(P,{trace:H},Z);ylt(O,N,H,r)}}function _(k){var M=k[0].trace,g,P=[];if(M.visible)switch(M.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],g=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],g=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],g="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],g=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],g=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],g=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],g=!1;break}var T=Ov.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);T.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),T.exit().remove(),T.each(function(z,O){var V=Ov.select(this),G=PB(M),Z=G.colorscale,H=G.reversescale,N=function(_e){if(_e.size()){var Me="legendfill-"+M.uid;Kp.gradient(_e,r,Me,IB(H,g==="radial"),Z,"fill")}},j;if(Z){if(!g){var oe=Z.length;j=O===0?Z[H?oe-1:0][1]:O===1?Z[H?0:oe-1][1]:Z[Math.floor((oe-1)/2)][1]}}else{var re=M.vertexcolor||M.facecolor||M.color;j=_v.isArrayOrTypedArray(re)?re[O]||re[0]:re}V.attr("d",z[0]),j?V.call(T0.fill,j):V.call(N)})}};function IB(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function ple(e){var t=e[0].trace,r=t.contours,n=FL.hasLines(t),i=FL.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:n=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function gle(e,t,r){return e&&_v.isArrayOrTypedArray(e)?t:e>r?r:e}});var OB=ye((vnr,Ele)=>{"use strict";var Ap=Oa(),Lh=Dr(),FB=Mc(),B3=qa(),yle=g3(),DB=yv(),Ph=So(),OL=Ca(),Rb=ru(),_le=tle(),$h=CB(),zB=Kh(),Sle=zB.LINE_SPACING,q3=zB.FROM_TL,xle=zB.FROM_BR,ble=ale(),wlt=RB(),wle=RL(),O3=1,Tlt=/^legend[0-9]*$/;Ele.exports=function(t,r){if(r)Tle(t,r);else{var n=t._fullLayout,i=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var u=Ap.select(this),c=u.attr("class"),f=c.split(" ")[0];f.match(Tlt)&&i.indexOf(f)===-1&&u.remove()});for(var o=0;o1)}var v=n.hiddenlabels||[];if(!s&&(!n.showlegend||!l.length))return o.selectAll("."+i).remove(),n._topdefs.select("#"+a).remove(),FB.autoMargin(e,i);var x=Lh.ensureSingle(o,"g",i,function(M){s||M.attr("pointer-events","all")}),b=Lh.ensureSingleById(n._topdefs,"clipPath",a,function(M){M.append("rect")}),p=Lh.ensureSingle(x,"rect","bg",function(M){M.attr("shape-rendering","crispEdges")});p.call(OL.stroke,r.bordercolor).call(OL.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var C=Lh.ensureSingle(x,"g","scrollbox"),E=r.title;r._titleWidth=0,r._titleHeight=0;var A;E.text?(A=Lh.ensureSingle(C,"text",i+"titletext"),A.attr("text-anchor","start").call(Ph.font,E.font).text(E.text),qL(A,C,e,r,O3)):C.selectAll("."+i+"titletext").remove();var L=Lh.ensureSingle(x,"rect","scrollbar",function(M){M.attr($h.scrollBarEnterAttrs).call(OL.fill,$h.scrollBarColor)}),_=C.selectAll("g.groups").data(l);_.enter().append("g").attr("class","groups"),_.exit().remove();var k=_.selectAll("g.traces").data(Lh.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(M){var g=M[0].trace;return B3.traceIs(g,"pie-like")?v.indexOf(M[0].label)!==-1?.5:1:g.visible==="legendonly"?.5:1}).each(function(){Ap.select(this).call(Slt,e,r)}).call(wlt,e,r).each(function(){s||Ap.select(this).call(Mlt,e,i)}),Lh.syncOrAsync([FB.previousPromises,function(){return klt(e,_,k,r)},function(){var M=n._size,g=r.borderwidth,P=r.xref==="paper",T=r.yref==="paper";if(E.text&&Alt(A,r,g),!s){var z,O;P?z=M.l+M.w*r.x-q3[BL(r)]*r._width:z=n.width*r.x-q3[BL(r)]*r._width,T?O=M.t+M.h*(1-r.y)-q3[NL(r)]*r._effHeight:O=n.height*(1-r.y)-q3[NL(r)]*r._effHeight;var V=Llt(e,i,z,O);if(V)return;if(n.margin.autoexpand){var G=z,Z=O;z=P?Lh.constrain(z,0,n.width-r._width):G,O=T?Lh.constrain(O,0,n.height-r._effHeight):Z,z!==G&&Lh.log("Constrain "+i+".x to make legend fit inside graph"),O!==Z&&Lh.log("Constrain "+i+".y to make legend fit inside graph")}Ph.setTranslate(x,z,O)}if(L.on(".drag",null),x.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var H=r._effHeight;s&&(H=r._height),p.attr({width:r._width-g,height:H-g,x:g/2,y:g/2}),Ph.setTranslate(C,0,0),b.select("rect").attr({width:r._width-2*g,height:H-2*g,x:g,y:g}),Ph.setClipUrl(C,a,e),Ph.setRect(L,0,0,0,0),delete r._scrollY}else{var N=Math.max($h.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),j=r._effHeight-N-2*$h.scrollBarMargin,re=r._height-r._effHeight,oe=j/re,_e=Math.min(r._scrollY||0,re);p.attr({width:r._width-2*g+$h.scrollBarWidth+$h.scrollBarMargin,height:r._effHeight-g,x:g/2,y:g/2}),b.select("rect").attr({width:r._width-2*g+$h.scrollBarWidth+$h.scrollBarMargin,height:r._effHeight-2*g,x:g,y:g+_e}),Ph.setClipUrl(C,a,e),De(_e,N,oe),x.on("wheel",function(){_e=Lh.constrain(r._scrollY+Ap.event.deltaY/j*re,0,re),De(_e,N,oe),_e!==0&&_e!==re&&Ap.event.preventDefault()});var Me,ke,me,ie=function(Ze,ct,pt){var Wt=(pt-ct)/oe+Ze;return Lh.constrain(Wt,0,re)},Se=function(Ze,ct,pt){var Wt=(ct-pt)/oe+Ze;return Lh.constrain(Wt,0,re)},Le=Ap.behavior.drag().on("dragstart",function(){var Ze=Ap.event.sourceEvent;Ze.type==="touchstart"?Me=Ze.changedTouches[0].clientY:Me=Ze.clientY,me=_e}).on("drag",function(){var Ze=Ap.event.sourceEvent;Ze.buttons===2||Ze.ctrlKey||(Ze.type==="touchmove"?ke=Ze.changedTouches[0].clientY:ke=Ze.clientY,_e=ie(me,Me,ke),De(_e,N,oe))});L.call(Le);var Ae=Ap.behavior.drag().on("dragstart",function(){var Ze=Ap.event.sourceEvent;Ze.type==="touchstart"&&(Me=Ze.changedTouches[0].clientY,me=_e)}).on("drag",function(){var Ze=Ap.event.sourceEvent;Ze.type==="touchmove"&&(ke=Ze.changedTouches[0].clientY,_e=Se(me,Me,ke),De(_e,N,oe))});C.call(Ae)}function De(Ze,ct,pt){r._scrollY=e._fullLayout[i]._scrollY=Ze,Ph.setTranslate(C,0,-Ze),Ph.setRect(L,r._width,$h.scrollBarMargin+Ze*pt,$h.scrollBarWidth,ct),b.select("rect").attr("y",g+Ze)}if(e._context.edits.legendPosition){var Pe,ge,Fe,ce;x.classed("cursor-move",!0),DB.init({element:x.node(),gd:e,prepFn:function(Ze){if(Ze.target!==L.node()){var ct=Ph.getTranslate(x);Fe=ct.x,ce=ct.y}},moveFn:function(Ze,ct){if(Fe!==void 0&&ce!==void 0){var pt=Fe+Ze,Wt=ce+ct;Ph.setTranslate(x,pt,Wt),Pe=DB.align(pt,r._width,M.l,M.l+M.w,r.xanchor),ge=DB.align(Wt+r._height,-r._height,M.t+M.h,M.t,r.yanchor)}},doneFn:function(){if(Pe!==void 0&&ge!==void 0){var Ze={};Ze[i+".x"]=Pe,Ze[i+".y"]=ge,B3.call("_guiRelayout",e,Ze)}},clickFn:function(Ze,ct){var pt=o.selectAll("g.traces").filter(function(){var Wt=this.getBoundingClientRect();return ct.clientX>=Wt.left&&ct.clientX<=Wt.right&&ct.clientY>=Wt.top&&ct.clientY<=Wt.bottom});pt.size()>0&&Mle(e,x,pt,Ze,ct)}})}}],e)}}function zL(e,t,r){var n=e[0],i=n.width,a=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||i)}function Mle(e,t,r,n,i){var a=r.data()[0][0].trace,o={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};a._group&&(o.group=a._group),B3.traceIs(a,"pie-like")&&(o.label=r.datum()[0].label);var s=yle.triggerHandler(e,"plotly_legendclick",o);if(n===1){if(s===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&_le(r,e,n)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var l=yle.triggerHandler(e,"plotly_legenddoubleclick",o);l!==!1&&s!==!1&&_le(r,e,n)}}function Slt(e,t,r){var n=UL(r),i=e.data()[0][0],a=i.trace,o=B3.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,l=r._maxNameLength,u,c;i.groupTitle?(u=i.groupTitle.text,c=i.groupTitle.font):(c=r.font,r.entries?u=i.text:(u=o?i.label:a.name,a._meta&&(u=Lh.templateString(u,a._meta))));var f=Lh.ensureSingle(e,"text",n+"text");f.attr("text-anchor","start").call(Ph.font,c).text(s?Ale(u,l):u);var h=r.indentation+r.itemwidth+$h.itemGap*2;Rb.positionText(f,h,0),s?f.call(Rb.makeEditable,{gd:t,text:u}).call(qL,e,t,r).on("edit",function(d){this.text(Ale(d,l)).call(qL,e,t,r);var v=i.trace._fullInput||{},x={};return x.name=d,v._isShape?B3.call("_guiRelayout",t,"shapes["+a.index+"].name",x.name):B3.call("_guiRestyle",t,x,a.index)}):qL(f,e,t,r)}function Ale(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function Mlt(e,t,r){var n=t._context.doubleClickDelay,i,a=1,o=Lh.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(OL.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){i=new Date().getTime(),i-t._legendMouseDownTimen&&(a=Math.max(a-1,1)),Mle(t,s,e,a,Ap.event)}}))}function qL(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Rb.convertToTspans(e,r,function(){Elt(t,r,n,i)})}function Elt(e,t,r,n){var i=e.data()[0][0];if(!r._inHover&&i&&!i.trace.showlegend){e.remove();return}var a=e.select("g[class*=math-group]"),o=a.node(),s=UL(r);r||(r=t._fullLayout[s]);var l=r.borderwidth,u;n===O3?u=r.title.font:i.groupTitle?u=i.groupTitle.font:u=r.font;var c=u.size*Sle,f,h;if(o){var d=Ph.bBox(o);f=d.height,h=d.width,n===O3?Ph.setTranslate(a,l,l+f*.75):Ph.setTranslate(a,0,f*.25)}else{var v="."+s+(n===O3?"title":"")+"text",x=e.select(v),b=Rb.lineCount(x),p=x.node();if(f=c*b,h=p?Ph.bBox(p).width:0,n===O3)r.title.side==="left"&&(h+=$h.itemGap*2),Rb.positionText(x,l+$h.titlePad,l+c);else{var C=$h.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(C=$h.itemGap,h-=r.indentation+r.itemwidth),Rb.positionText(x,C,-c*((b-1)/2-.3))}}n===O3?(r._titleWidth=h,r._titleHeight=f):(i.lineHeight=c,i.height=Math.max(f,16)+3,i.width=h)}function Clt(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function klt(e,t,r,n){var i=e._fullLayout,a=UL(n);n||(n=i[a]);var o=i._size,s=wle.isVertical(n),l=wle.isGrouped(n),u=n.entrywidthmode==="fraction",c=n.borderwidth,f=2*c,h=$h.itemGap,d=n.indentation+n.itemwidth+h*2,v=2*(c+h),x=NL(n),b=n.y<0||n.y===0&&x==="top",p=n.y>1||n.y===1&&x==="bottom",C=n.tracegroupgap,E={};let{orientation:A,yref:L}=n,{maxheight:_}=n,k=b||p||A!=="v"||L!=="paper";_||(_=k?.5:1);let M=k?i.height:o.h;n._maxHeight=Math.max(_>1?_:_*M,30);var g=0;n._width=0,n._height=0;var P=Clt(n);if(s)r.each(function(De){var Pe=De[0].height;Ph.setTranslate(this,c+P[0],c+P[1]+n._height+Pe/2+h),n._height+=Pe,n._width=Math.max(n._width,De[0].width)}),g=d+n._width,n._width+=h+d+f,n._height+=v,l&&(t.each(function(De,Pe){Ph.setTranslate(this,0,Pe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var T=BL(n),z=n.x<0||n.x===0&&T==="right",O=n.x>1||n.x===1&&T==="left",V=p||b,G=i.width/2;n._maxWidth=Math.max(z?V&&T==="left"?o.l+o.w:G:O?V&&T==="right"?o.r+o.w:G:o.w,2*d);var Z=0,H=0;r.each(function(De){var Pe=zL(De,n,d);Z=Math.max(Z,Pe),H+=Pe}),g=null;var N=0;if(l){var j=0,re=0,oe=0;t.each(function(){var De=0,Pe=0;Ap.select(this).selectAll("g.traces").each(function(Fe){var ce=zL(Fe,n,d),Ze=Fe[0].height;Ph.setTranslate(this,P[0],P[1]+c+h+Ze/2+Pe),Pe+=Ze,De=Math.max(De,ce),E[Fe[0].trace.legendgroup]=De});var ge=De+h;re>0&&ge+c+re>n._maxWidth?(N=Math.max(N,re),re=0,oe+=j+C,j=Pe):j=Math.max(j,Pe),Ph.setTranslate(this,re,oe),re+=ge}),n._width=Math.max(N,re)+c,n._height=oe+j+v}else{var _e=r.size(),Me=H+f+(_e-1)*h=n._maxWidth&&(N=Math.max(N,Se),me=0,ie+=ke,n._height+=ke,ke=0),Ph.setTranslate(this,P[0]+c+me,P[1]+c+ie+Pe/2+h),Se=me+ge+h,me+=Fe,ke=Math.max(ke,Pe)}),Me?(n._width=me+f,n._height=ke+v):(n._width=Math.max(N,Se)+f,n._height+=ke+v)}}n._width=Math.ceil(Math.max(n._width+P[0],n._titleWidth+2*(c+$h.titlePad))),n._height=Math.ceil(Math.max(n._height+P[1],n._titleHeight+2*(c+$h.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Le=e._context.edits,Ae=Le.legendText||Le.legendPosition;r.each(function(De){var Pe=Ap.select(this).select("."+a+"toggle"),ge=De[0].height,Fe=De[0].trace.legendgroup,ce=zL(De,n,d);l&&Fe!==""&&(ce=E[Fe]);var Ze=Ae?d:g||ce;!s&&!u&&(Ze+=h/2),Ph.setRect(Pe,0,-ge/2,Ze,ge)})}function Llt(e,t,r,n){var i=e._fullLayout,a=i[t],o=BL(a),s=NL(a),l=a.xref==="paper",u=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var c=a.y<.5?"b":"t",f=a.x<.5?"l":"r",h={r:i.width-r,l:r+a._width,b:i.height-n,t:n+a._effHeight};if(l&&u)return FB.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*q3[o],r:a._width*xle[o],b:a._effHeight*xle[s],t:a._effHeight*q3[s]});l?e._fullLayout._reservedMargin[t][c]=h[c]:u||a.orientation==="v"?e._fullLayout._reservedMargin[t][f]=h[f]:e._fullLayout._reservedMargin[t][c]=h[c]}function BL(e){return Lh.isRightAnchor(e)?"right":Lh.isCenterAnchor(e)?"center":"left"}function NL(e){return Lh.isBottomAnchor(e)?"bottom":Lh.isMiddleAnchor(e)?"middle":"top"}function UL(e){return e._id||"legend"}});var UB=ye(NB=>{"use strict";var Db=Oa(),Sy=Eo(),Cle=cd(),Ff=Dr(),Plt=Ff.pushUnique,qB=Ff.strTranslate,Ilt=Ff.strRotate,Rlt=g3(),A0=ru(),Dlt=Jse(),bm=So(),vd=Ca(),VL=yv(),wm=ho(),Flt=hd().zindexSeparator,U3=qa(),Ag=rp(),Fb=RS(),zlt=SB(),Olt=OB(),zle=Fb.YANGLE,BB=Math.PI*zle/180,qlt=1/Math.sin(BB),Blt=Math.cos(BB),Nlt=Math.sin(BB),Qc=Fb.HOVERARROWSIZE,ll=Fb.HOVERTEXTPAD,kle={box:!0,ohlc:!0,violin:!0,candlestick:!0},Ult={scatter:!0,scattergl:!0,splom:!0};function Lle(e,t){return e.distance-t.distance}NB.hover=function(t,r,n,i){t=Ff.getGraphDiv(t);var a=r.target;Ff.throttle(t._fullLayout._uid+Fb.HOVERID,Fb.HOVERMINTIME,function(){Vlt(t,r,n,i,a)})};NB.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=Ule(i),o=Vle(i),s=t.map(function(b){var p=b._x0||b.x0||b.x||0,C=b._x1||b.x1||b.x||0,E=b._y0||b.y0||b.y||0,A=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var _=Math.min(p,C),k=Math.max(p,C),M=Math.min(E,A),g=Math.max(E,A),P=b.trace;if(U3.traceIs(P,"gl3d")){var T=i._fullLayout[P.scene]._scene.container,z=T.offsetLeft,O=T.offsetTop;_+=z,k+=z,M+=O,g+=O}L.bbox={x0:_+o,x1:k+o,y0:M+a,y1:g+a},r.inOut_bbox&&r.inOut_bbox.push(L.bbox)}else L=!1;return{color:b.color||vd.defaultLine,x0:b.x0||b.x||0,x1:b.x1||b.x||0,y0:b.y0||b.y||0,y1:b.y1||b.y||0,xLabel:b.xLabel,yLabel:b.yLabel,zLabel:b.zLabel,text:b.text,name:b.name,idealAlign:b.idealAlign,borderColor:b.borderColor,fontFamily:b.fontFamily,fontSize:b.fontSize,fontColor:b.fontColor,fontWeight:b.fontWeight,fontStyle:b.fontStyle,fontVariant:b.fontVariant,nameLength:b.nameLength,textAlign:b.textAlign,trace:b.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:b.hovertemplate||!1,hovertemplateLabels:b.hovertemplateLabels||!1,eventData:L}}),l=!1,u=qle(s,{gd:i,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||vd.background,container:Db.select(r.container),outerContainer:r.outerContainer||r.container}),c=u.hoverLabels,f=5,h=0,d=0;c.sort(function(b,p){return b.y0-p.y0}).each(function(b,p){var C=b.y0-b.by/2;C-fk[0]._length||ce<0||ce>M[0]._length)return VL.unhoverRaw(e,t)}if(t.pointerX=Fe+k[0]._offset,t.pointerY=ce+M[0]._offset,"xval"in t?Z=Ag.flat(a,t.xval):Z=Ag.p2c(k,Fe),"yval"in t?H=Ag.flat(a,t.yval):H=Ag.p2c(M,ce),!Sy(Z[0])||!Sy(H[0]))return Ff.warn("Fx.hover failed",t,e),VL.unhoverRaw(e,t)}var pt=1/0;function Wt(pn,Vn){for(j=0;jLe&&(V.splice(0,Le),pt=V[0].distance),f&&O!==0&&V.length===0){Se.distance=O,Se.index=!1;var _t=oe._module.hoverPoints(Se,me,ie,"closest",{hoverLayer:s._hoverlayer});if(_t&&(_t=_t.filter(function($r){return $r.spikeDistance<=O})),_t&&_t.length){var tr,ar=_t.filter(function($r){return $r.xa.showspikes&&$r.xa.spikesnap!=="hovered data"});if(ar.length){var Er=ar[0];Sy(Er.x0)&&Sy(Er.y0)&&(tr=lt(Er),(!Ae.vLinePoint||Ae.vLinePoint.spikeDistance>tr.spikeDistance)&&(Ae.vLinePoint=tr))}var Zr=_t.filter(function($r){return $r.ya.showspikes&&$r.ya.spikesnap!=="hovered data"});if(Zr.length){var ri=Zr[0];Sy(ri.x0)&&Sy(ri.y0)&&(tr=lt(ri),(!Ae.hLinePoint||Ae.hLinePoint.spikeDistance>tr.spikeDistance)&&(Ae.hLinePoint=tr))}}}}}Wt();function st(pn,Vn,kn){for(var ea=null,ua=1/0,Vt,_t=0;_t0&&Math.abs(pn.distance)yt-1;Ur--)Wr(V[Ur]);V=Tr,sr()}var dt=e._hoverdata,Ge=[],Je=Ule(e),je=Vle(e);for(N=0;N1||V.length>1)||h==="closest"&&De&&V.length>1,fi=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),Hi=qle(V,{gd:e,hovermode:h,rotateLabels:Jr,bgColor:fi,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),Pn=Hi.hoverLabels;if(Ag.isUnifiedHover(h)||(Hlt(Pn,Jr,s,Hi.commonLabelBoundingBox),Nle(Pn,Jr,s._invScaleX,s._invScaleY)),i&&i.tagName){var wn=U3.getComponentMethod("annotations","hasClickToShow")(e,Ge);Dlt(Db.select(i),wn?"pointer":"")}!i||n||!Xlt(e,t,dt)||(dt&&e.emit("plotly_unhover",{event:t,points:dt}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:k,yaxes:M,xvals:Z,yvals:H}))}function Ole(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Glt=/([\s\S]*)<\/extra>/;function qle(e,t){var r=t.gd,n=r._fullLayout,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var c=t.fontFamily||Fb.HOVERFONT,f=t.fontSize||Fb.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,v=t.fontVariant||n.font.variant,x=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,p=t.fontShadow||n.font.shadow,C=e[0],E=C.xa,A=C.ya,L=i.charAt(0),_=L+"Label",k=C[_];if(k===void 0&&E.type==="multicategory")for(var M=0;Mn.width-je&&($e=n.width-je),yt.attr("d","M"+(dt-$e)+",0L"+(dt-$e+Qc)+","+Je+Qc+"H"+je+"v"+Je+(ll*2+Ur.height)+"H"+-je+"V"+Je+Qc+"H"+(dt-$e-Qc)+"Z"),dt=$e,j.minX=dt-je,j.maxX=dt+je,E.side==="top"?(j.minY=Ge-(ll*2+Ur.height),j.maxY=Ge-ll):(j.minY=Ge+ll,j.maxY=Ge+(ll*2+Ur.height))}else{var wt,Ie,xe;A.side==="right"?(wt="start",Ie=1,xe="",dt=E._offset+E._length):(wt="end",Ie=-1,xe="-",dt=E._offset),Ge=A._offset+(C.y0+C.y1)/2,Yt.attr("text-anchor",wt),yt.attr("d","M0,0L"+xe+Qc+","+Qc+"V"+(ll+Ur.height/2)+"h"+xe+(ll*2+Ur.width)+"V-"+(ll+Ur.height/2)+"H"+xe+Qc+"V-"+Qc+"Z"),j.minY=Ge-(ll+Ur.height/2),j.maxY=Ge+(ll+Ur.height/2),A.side==="right"?(j.minX=dt+Qc,j.maxX=dt+Qc+(ll*2+Ur.width)):(j.minX=dt-Qc-(ll*2+Ur.width),j.maxX=dt-Qc);var Ce=Ur.height/2,vt=P-Ur.top-Ce,nr="clip"+n._uid+"commonlabel"+A._id,ir;if(dt=0?er=wr:ur+pt=0?er=ur:Qe+pt=0?Ut=$t:sr+Wt=0?Ut=sr:Et+Wt=0,(bt.idealAlign==="top"||!di)&&Jr?(xe-=vt/2,bt.anchor="end"):di?(xe+=vt/2,bt.anchor="start"):bt.anchor="middle",bt.crossPos=xe;else{if(bt.pos=xe,di=Ie+Ce/2+oi<=T,Jr=Ie-Ce/2-oi>=0,(bt.idealAlign==="left"||!di)&&Jr)Ie-=Ce/2,bt.anchor="end";else if(di)Ie+=Ce/2,bt.anchor="start";else{bt.anchor="middle";var fi=oi/2,Hi=Ie+fi-T,Pn=Ie-fi;Hi>0&&(Ie-=Hi),Pn<0&&(Ie+=-Pn)}bt.crossPos=Ie}Ge.attr("text-anchor",bt.anchor),je&&Je.attr("text-anchor",bt.anchor),yt.attr("transform",qB(Ie,xe)+(a?Ilt(zle):""))}),{hoverLabels:Ft,commonLabelBoundingBox:j}}function Ple(e,t,r,n,i,a){var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ff.templateString(e.name,e.trace._meta)),o=Dle(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===i?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o);var c=e.hovertemplate||!1;if(c){var f=e.hovertemplateLabels||e;e[l+"Label"]!==i&&(f[l+"other"]=f[l+"Val"],f[l+"otherLabel"]=f[l+"Label"]),s=Ff.hovertemplateString(c,f,n._d3locale,e.eventData[0]||{},e.trace._meta),s=s.replace(Glt,function(h,d){return o=Dle(d,e.nameLength),""})}return[s,o]}function Hlt(e,t,r,n){var i=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,l=e.size(),u=new Array(l),c=0,f=n.minX,h=n.maxX,d=n.minY,v=n.maxY,x=function(Z){return Z*r._invScaleX},b=function(Z){return Z*r._invScaleY};e.each(function(Z){var H=Z[i],N=Z[a],j=H._id.charAt(0)==="x",re=H.range;c===0&&re&&re[0]>re[1]!==j&&(s=-1);var oe=0,_e=j?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Me=Ble(Z,t),ke=Z.anchor,me=ke==="end"?-1:1,ie,Se;if(ke==="middle")ie=Z.crossPos+(j?b(Me.y-Z.by/2):x(Z.bx/2+Z.tx2width/2)),Se=ie+(j?b(Z.by):x(Z.bx));else if(j)ie=Z.crossPos+b(Qc+Me.y)-b(Z.by/2-Qc),Se=ie+b(Z.by);else{var Le=x(me*Qc+Me.x),Ae=Le+x(me*Z.bx);ie=Z.crossPos+Math.min(Le,Ae),Se=Z.crossPos+Math.max(Le,Ae)}j?d!==void 0&&v!==void 0&&Math.min(Se,v)-Math.max(ie,d)>1&&(N.side==="left"?(oe=N._mainLinePosition,_e=r.width):_e=N._mainLinePosition):f!==void 0&&h!==void 0&&Math.min(Se,h)-Math.max(ie,f)>1&&(N.side==="top"?(oe=N._mainLinePosition,_e=r.height):_e=N._mainLinePosition)}u[c++]=[{datum:Z,traceIndex:Z.trace.index,dp:0,pos:Z.pos,posref:Z.posref,size:Z.by*(j?qlt:1)/2,pmin:oe,pmax:_e}]}),u.sort(function(Z,H){return Z[0].posref-H[0].posref||s*(H[0].traceIndex-Z[0].traceIndex)});var p,C,E,A,L,_,k;function M(Z){var H=Z[0],N=Z[Z.length-1];if(C=H.pmin-H.pos-H.dp+H.size,E=N.pos+N.dp+N.size-H.pmax,C>.01){for(L=Z.length-1;L>=0;L--)Z[L].dp+=C;p=!1}if(!(E<.01)){if(C<-.01){for(L=Z.length-1;L>=0;L--)Z[L].dp-=E;p=!1}if(p){var j=0;for(A=0;AH.pmax&&j++;for(A=Z.length-1;A>=0&&!(j<=0);A--)_=Z[A],_.pos>H.pmax-1&&(_.del=!0,j--);for(A=0;A=0;L--)Z[L].dp-=E;for(A=Z.length-1;A>=0&&!(j<=0);A--)_=Z[A],_.pos+_.dp+_.size>H.pmax&&(_.del=!0,j--)}}}for(;!p&&o<=l;){for(o++,p=!0,A=0;A.01){for(L=P.length-1;L>=0;L--)P[L].dp+=C;for(g.push.apply(g,P),u.splice(A+1,1),k=0,L=g.length-1;L>=0;L--)k+=g[L].dp;for(E=k/g.length,L=g.length-1;L>=0;L--)g[L].dp-=E;p=!1}else A++}u.forEach(M)}for(A=u.length-1;A>=0;A--){var O=u[A];for(L=O.length-1;L>=0;L--){var V=O[L],G=V.datum;G.offset=V.dp,G.del=V.del}}}function Ble(e,t){var r=0,n=e.offset;return t&&(n*=-Nlt,r=e.offset*Blt),{x:r,y:n}}function jlt(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Qc+ll),n=r+t*(e.txwidth+ll),i=e.anchor==="middle";return i&&(r-=e.tx2width/2,n+=e.txwidth/2+ll),{alignShift:t,textShiftX:r,text2ShiftX:n}}function Nle(e,t,r,n){var i=function(o){return o*r},a=function(o){return o*n};e.each(function(o){var s=Db.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,f=jlt(o),h=Ble(o,t),d=h.x,v=h.y,x=u==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,p;x?p="M-"+i(o.bx/2+o.tx2width/2)+","+a(v-o.by/2)+"h"+i(o.bx)+"v"+a(o.by)+"h-"+i(o.bx)+"Z":b?p="M0,0L"+i(c*Qc+d)+","+a(Qc+v)+"v"+a(o.by/2-Qc)+"h"+i(c*o.bx)+"v-"+a(o.by)+"H"+i(c*Qc+d)+"V"+a(v-Qc)+"Z":p="M"+i(c*Qc+d)+","+a(v-o.by/2)+"h"+i(c*o.bx)+"v"+a(o.by)+"h"+i(-c*o.bx)+"Z",s.select("path").attr("d",p);var C=d+f.textShiftX,E=v+o.ty0-o.by/2+ll,A=o.textAlign||"auto";A!=="auto"&&(A==="left"&&u!=="start"?(l.attr("text-anchor","start"),C=x?-o.bx/2-o.tx2width/2+ll:-o.bx-ll):A==="right"&&u!=="end"&&(l.attr("text-anchor","end"),C=x?o.bx/2-o.tx2width/2-ll:o.bx+ll)),l.call(A0.positionText,i(C),a(E)),o.tx2width&&(s.select("text.name").call(A0.positionText,i(f.text2ShiftX+f.alignShift*ll+d),a(v+o.ty0-o.by/2+ll)),s.select("rect").call(bm.setRect,i(f.text2ShiftX+(f.alignShift-1)*o.tx2width/2+d),a(v-o.by/2-1),i(o.tx2width),a(o.by+2)))})}function Wlt(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Sy(h)&&h===0}var s=Array.isArray(r)?function(h,d){var v=Ff.castOption(i,r,h);return o(v)?v:Ff.extractOption({},n,"",d)}:function(h,d){return Ff.extractOption(a,n,h,d)};function l(h,d,v){var x=s(d,v);o(x)&&(e[h]=x)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("fontWeight","htw","hoverlabel.font.weight"),l("fontStyle","hty","hoverlabel.font.style"),l("fontVariant","htv","hoverlabel.font.variant"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ff.constrain(e.x0,0,e.xa._length),e.x1=Ff.constrain(e.x1,0,e.xa._length),e.y0=Ff.constrain(e.y0,0,e.ya._length),e.y1=Ff.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:wm.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:wm.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=wm.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+wm.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var c=wm.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+wm.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+c,t==="y"&&(e.distance+=1)}var f=e.hoverinfo||e.trace.hoverinfo;return f&&f!=="all"&&(f=Array.isArray(f)?f:f.split("+"),f.indexOf("x")===-1&&(e.xLabel=void 0),f.indexOf("y")===-1&&(e.yLabel=void 0),f.indexOf("z")===-1&&(e.zLabel=void 0),f.indexOf("text")===-1&&(e.text=void 0),f.indexOf("name")===-1&&(e.name=void 0)),e}function Ile(e,t,r){var n=r.container,i=r.fullLayout,a=i._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,c;if(n.selectAll(".spikeline").remove(),!!(l||s)){var f=vd.combine(i.plot_bgcolor,i.paper_bgcolor);if(s){var h=t.hLinePoint,d,v;u=h&&h.xa,c=h&&h.ya;var x=c.spikesnap;x==="cursor"?(d=o.pointerX,v=o.pointerY):(d=u._offset+h.x,v=c._offset+h.y);var b=Cle.readability(h.color,f)<1.5?vd.contrast(f):h.color,p=c.spikemode,C=c.spikethickness,E=c.spikecolor||b,A=wm.getPxPosition(e,c),L,_;if(p.indexOf("toaxis")!==-1||p.indexOf("across")!==-1){if(p.indexOf("toaxis")!==-1&&(L=A,_=d),p.indexOf("across")!==-1){var k=c._counterDomainMin,M=c._counterDomainMax;c.anchor==="free"&&(k=Math.min(k,c.position),M=Math.max(M,c.position)),L=a.l+k*a.w,_=a.l+M*a.w}n.insert("line",":first-child").attr({x1:L,x2:_,y1:v,y2:v,"stroke-width":C,stroke:E,"stroke-dasharray":bm.dashStyle(c.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:L,x2:_,y1:v,y2:v,"stroke-width":C+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}p.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A+(c.side!=="right"?C:-C),cy:v,r:C,fill:E}).classed("spikeline",!0)}if(l){var g=t.vLinePoint,P,T;u=g&&g.xa,c=g&&g.ya;var z=u.spikesnap;z==="cursor"?(P=o.pointerX,T=o.pointerY):(P=u._offset+g.x,T=c._offset+g.y);var O=Cle.readability(g.color,f)<1.5?vd.contrast(f):g.color,V=u.spikemode,G=u.spikethickness,Z=u.spikecolor||O,H=wm.getPxPosition(e,u),N,j;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(N=H,j=T),V.indexOf("across")!==-1){var re=u._counterDomainMin,oe=u._counterDomainMax;u.anchor==="free"&&(re=Math.min(re,u.position),oe=Math.max(oe,u.position)),N=a.t+(1-oe)*a.h,j=a.t+(1-re)*a.h}n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:j,"stroke-width":G,stroke:Z,"stroke-dasharray":bm.dashStyle(u.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:j,"stroke-width":G+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:P,cy:H-(u.side!=="top"?G:-G),r:G,fill:Z}).classed("spikeline",!0)}}}function Xlt(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers)||i.binNumber!==a.binNumber)return!0}return!1}function Rle(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function Dle(e,t){return A0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Zlt(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;o{"use strict";var Ylt=Dr(),Klt=Ca(),Jlt=rp().isUnifiedHover;Gle.exports=function(t,r,n,i){i=i||{};var a=r.legend;function o(s){i.font[s]||(i.font[s]=a?r.legend.font[s]:r.font[s])}r&&Jlt(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=Klt.combine(r.legend.bgcolor,r.paper_bgcolor)),i.bordercolor||(i.bordercolor=r.legend.bordercolor)):i.bgcolor||(i.bgcolor=r.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),n("hoverlabel.showarrow",i.showarrow),Ylt.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var jle=ye((mnr,Hle)=>{"use strict";var $lt=Dr(),Qlt=cM(),eut=B1();Hle.exports=function(t,r){function n(i,a){return $lt.coerce(t,r,eut,i,a)}Qlt(t,r,n)}});var Zle=ye((ynr,Xle)=>{"use strict";var Wle=Dr(),tut=i3(),rut=cM();Xle.exports=function(t,r,n,i){function a(s,l){return Wle.coerce(t,r,tut,s,l)}var o=Wle.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),rut(t,r,a,o)}});var VB=ye((_nr,Yle)=>{"use strict";var iut=Dr(),nut=B1();Yle.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:iut.coerce(t,r,nut,i,a)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var $le=ye((xnr,Jle)=>{"use strict";var Kle=Dr(),aut=B1(),out=VB(),sut=cM();Jle.exports=function(t,r){function n(c,f){return Kle.coerce(t,r,aut,c,f)}var i=out(t,r);i&&(n("hoverdistance"),n("spikedistance"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=r._has("mapbox"),s=r._has("map"),l=r._has("geo"),u=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s||l)&&u===1||(o||s)&&l&&u===2)&&(r.dragmode="pan"),sut(t,r,n),Kle.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var tue=ye((bnr,eue)=>{"use strict";var GB=Dr(),Qle=qa();eue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(u){return function(c){return GB.coerceHoverinfo({hoverinfo:c},{_module:u._module},n)}}for(var a=0;a{"use strict";var uut=qa(),cut=UB().hover;rue.exports=function(t,r,n){var i=uut.getComponentMethod("annotations","onClick")(t,t._hoverdata);n!==void 0&&cut(t,r,n,!0);function a(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(i&&i.then?i.then(a):a(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var vf=ye((Tnr,oue)=>{"use strict";var fut=Oa(),GL=Dr(),hut=yv(),fM=rp(),nue=B1(),aue=UB();oue.exports={moduleType:"component",name:"fx",constants:RS(),schema:{layout:nue},attributes:i3(),layoutAttributes:nue,supplyLayoutGlobalDefaults:jle(),supplyDefaults:Zle(),supplyLayoutDefaults:$le(),calc:tue(),getDistanceFunction:fM.getDistanceFunction,getClosest:fM.getClosest,inbox:fM.inbox,quadrature:fM.quadrature,appendArrayPointValue:fM.appendArrayPointValue,castHoverOption:vut,castHoverinfo:put,hover:aue.hover,unhover:hut.unhover,loneHover:aue.loneHover,loneUnhover:dut,click:iue()};function dut(e){var t=GL.isD3Selection(e)?e:fut.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function vut(e,t,r){return GL.castOption(e,t,"hoverlabel."+r)}function put(e,t,r){function n(i){return GL.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return GL.castOption(e,r,"hoverinfo",n)}});var Sg=ye(My=>{"use strict";My.selectMode=function(e){return e==="lasso"||e==="select"};My.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};My.openMode=function(e){return e==="drawline"||e==="drawopenpath"};My.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};My.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};My.selectingOrDrawing=function(e){return My.freeMode(e)||My.rectMode(e)}});var hM=ye((Snr,sue)=>{"use strict";sue.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var HL=ye((Mnr,lue)=>{"use strict";lue.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var WL=ye((Enr,uue)=>{"use strict";var jL=32;uue.exports={CIRCLE_SIDES:jL,i000:0,i090:jL/4,i180:jL/2,i270:jL/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var XL=ye((Cnr,fue)=>{"use strict";var gut=Dr().strTranslate;function cue(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function mut(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function yut(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return cue(e,r[t])}}function _ut(e){return gut(e.xaxis._offset,e.yaxis._offset)}fue.exports={p2r:cue,r2p:mut,axValue:yut,getTransform:_ut}});var u_=ye(Ey=>{"use strict";var xut=$S(),vue=WL(),V3=vue.CIRCLE_SIDES,HB=vue.SQRT2,pue=XL(),hue=pue.p2r,due=pue.r2p,but=[0,3,4,5,6,1,2],wut=[0,3,4,1,2];Ey.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&l{"use strict";var gue=hf(),bue=Sg(),Tut=bue.drawMode,Aut=bue.openMode,G3=WL(),mue=G3.i000,yue=G3.i090,_ue=G3.i180,xue=G3.i270,Sut=G3.cos45,Mut=G3.sin45,wue=XL(),YL=wue.p2r,c_=wue.r2p,Eut=Q1(),Cut=Eut.clearOutline,KL=u_(),kut=KL.readPaths,Lut=KL.writePaths,Put=KL.ellipseOver,Iut=KL.fixDatesForPaths;function Rut(e,t){if(e.length){var r=e[0][0];if(r){var n=t.gd,i=t.isActiveShape,a=t.dragmode,o=(n.layout||{}).shapes||[];if(!Tut(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var Dut=Sg(),Fut=Dut.selectMode,zut=Q1(),Out=zut.clearOutline,jB=u_(),qut=jB.readPaths,But=jB.writePaths,Nut=jB.fixDatesForPaths;Sue.exports=function(t,r){if(t.length){var n=t[0][0];if(n){var i=n.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=r.isActiveSelection,f=r.dragmode,h=(a.layout||{}).selections||[];if(!Fut(f)&&c!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Mue.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var f_=ye(Dd=>{"use strict";var zb=vM(),Eue=Dr(),$L=ho();Dd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Dd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Dd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Dd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Dd.extractPathCoords=function(e,t,r){var n=[],i=e.match(zb.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.substr(1).match(zb.paramRE);if(!(!s||s.lengthd&&(x="X"),x});return u>d&&(v=v.replace(/[\s,]*X.*/,""),Eue.log("Ignoring extra params in segment "+l)),c+v})}function pM(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var ZB=ye((Dnr,Pue)=>{"use strict";var Vut=Dr(),H3=ho(),Cue=ru(),kue=So(),Gut=u_().readPaths,XB=f_(),Hut=XB.getPathString,Lue=A6(),jut=Kh().FROM_TL;Pue.exports=function(t,r,n,i){if(i.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var s=H3.getFromId(t,n.xref),l=H3.getFromId(t,n.yref);for(var u in Lue){var c=Lue[u](n,s,l);c!==void 0&&(o[u]=c)}}a=Vut.texttemplateStringForShapes(n.label.texttemplate,{},t._fullLayout._d3locale,o)}else a=n.label.text;var f={"data-index":r},h=n.label.font,d={"data-notex":1},v=i.append("g").attr(f).classed("shape-label",!0),x=v.append("text").attr(d).classed("shape-label-text",!0).text(a),b,p,C,E;if(n.path){var A=Hut(t,n),L=Gut(A,t);b=1/0,C=1/0,p=-1/0,E=-1/0;for(var _=0;_=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function Xut(e,t,r,n,i,a,o){var s=i.label.textposition,l=i.label.textangle,u=i.label.padding,c=i.type,f=Math.PI/180*a,h=Math.sin(f),d=Math.cos(f),v=i.label.xanchor,x=i.label.yanchor,b,p,C,E;if(c==="line"){s==="start"?(b=e,p=t):s==="end"?(b=r,p=n):(b=(e+r)/2,p=(t+n)/2),v==="auto"&&(s==="start"?l==="auto"?r>e?v="left":re?v="right":re?v="right":re?v="left":r{"use strict";var Zut=Dr(),Yut=Zut.strTranslate,Iue=yv(),Fue=Sg(),Kut=Fue.drawMode,zue=Fue.selectMode,Oue=qa(),Rue=Ca(),eP=WL(),Jut=eP.i000,$ut=eP.i090,Qut=eP.i180,ect=eP.i270,tct=Q1(),que=tct.clearOutlineControllers,KB=u_(),QL=KB.pointsOnRectangle,YB=KB.pointsOnEllipse,rct=KB.writePaths,ict=JL().newShapes,nct=JL().createShapeObj,act=WB(),oct=ZB();Bue.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(YB(t[0])||n.hasText)&&s({redrawing:!0})}function s(H){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=ict(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=act(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&Oue.call((H||{}).redrawing?"relayout":"_guiRelayout",a,N)}var l=a._fullLayout,u=l._zoomlayer,c=n.dragmode,f=Kut(c),h=zue(c);(f||h)&&(a._fullLayout._outlining=!0),que(a),r.attr("d",rct(t));var d,v,x,b,p;if(!i&&(n.isActiveShape||n.isActiveSelection)){p=sct([],t);var C=u.append("g").attr("class","outline-controllers");P(C),Z()}if(f&&n.hasText){var E=u.select(".label-temp"),A=nct(r,n,n.dragmode);oct(a,"label-temp",A,E)}function L(H){x=+H.srcElement.getAttribute("data-i"),b=+H.srcElement.getAttribute("data-j"),d[x][b].moveFn=_}function _(H,N){if(t.length){var j=p[x][b][1],re=p[x][b][2],oe=t[x],_e=oe.length;if(QL(oe)){var Me=H,ke=N;if(n.isActiveSelection){var me=Due(oe,b);me[1]===oe[b][1]?ke=0:Me=0}for(var ie=0;ie<_e;ie++)if(ie!==b){var Se=oe[ie];Se[1]===oe[b][1]&&(Se[1]=j+Me),Se[2]===oe[b][2]&&(Se[2]=re+ke)}if(oe[b][1]=j+Me,oe[b][2]=re+ke,!QL(oe))for(var Le=0;Le<_e;Le++)for(var Ae=0;Ae1&&!(H.length===2&&H[1][0]==="Z")&&(b===0&&(H[0][0]="M"),t[x]=H,o(),s())}}function g(H,N){if(H===2){x=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var j=t[x];!QL(j)&&!YB(j)&&M()}}function P(H){d=[];for(var N=0;N{"use strict";var uct=Oa(),jue=qa(),Nue=Dr(),j3=ho(),cct=u_().readPaths,fct=tP(),iP=ZB(),Wue=Q1().clearOutlineControllers,JB=Ca(),QB=So(),hct=pl().arrayEditor,Uue=yv(),Vue=Tg(),Ob=vM(),Sp=f_(),$B=Sp.getPathString;Yue.exports={draw:eN,drawOne:Xue,eraseActiveShape:pct,drawLabel:iP};function eN(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;io&&Nt>s&&!st.shiftKey?Uue.getCursor($t/Gt,1-sr/Nt):"move";Vue(t,wr),Se=wr.split("-")[0]}}function Pe(st){rP(e)||(l&&(p=oe(r.xanchor)),u&&(C=_e(r.yanchor)),r.type==="path"?T=r.path:(d=l?r.x0:oe(r.x0),v=u?r.y0:_e(r.y0),x=l?r.x1:oe(r.x1),b=u?r.y1:_e(r.y1)),db?(E=v,k="y0",A=b,M="y1"):(E=b,k="y1",A=v,M="y0"),De(st),ct(i,r),Wt(t,r,e),ie.moveFn=Se==="move"?ce:Ze,ie.altKey=st.altKey)}function ge(){rP(e)||(Vue(t),pt(i),Zue(t,e,r),jue.call("_guiRelayout",e,a.getUpdateObj()))}function Fe(){rP(e)||pt(i)}function ce(st,lt){if(r.type==="path"){var Gt=function(sr){return sr},Nt=Gt,$t=Gt;l?h("xanchor",r.xanchor=Me(p+st)):(Nt=function(wr){return Me(oe(wr)+st)},O&&O.type==="date"&&(Nt=Sp.encodeDate(Nt))),u?h("yanchor",r.yanchor=ke(C+lt)):($t=function(wr){return ke(_e(wr)+lt)},G&&G.type==="date"&&($t=Sp.encodeDate($t))),h("path",r.path=Gue(T,Nt,$t))}else l?h("xanchor",r.xanchor=Me(p+st)):(h("x0",r.x0=Me(d+st)),h("x1",r.x1=Me(x+st))),u?h("yanchor",r.yanchor=ke(C+lt)):(h("y0",r.y0=ke(v+lt)),h("y1",r.y1=ke(b+lt)));t.attr("d",$B(e,r)),ct(i,r),iP(e,n,r,z)}function Ze(st,lt){if(f){var Gt=function(Rr){return Rr},Nt=Gt,$t=Gt;l?h("xanchor",r.xanchor=Me(p+st)):(Nt=function(ei){return Me(oe(ei)+st)},O&&O.type==="date"&&(Nt=Sp.encodeDate(Nt))),u?h("yanchor",r.yanchor=ke(C+lt)):($t=function(ei){return ke(_e(ei)+lt)},G&&G.type==="date"&&($t=Sp.encodeDate($t))),h("path",r.path=Gue(T,Nt,$t))}else if(c){if(Se==="resize-over-start-point"){var sr=d+st,wr=u?v-lt:v+lt;h("x0",r.x0=l?sr:Me(sr)),h("y0",r.y0=u?wr:ke(wr))}else if(Se==="resize-over-end-point"){var ur=x+st,Qe=u?b-lt:b+lt;h("x1",r.x1=l?ur:Me(ur)),h("y1",r.y1=u?Qe:ke(Qe))}}else{var Et=function(Rr){return Se.indexOf(Rr)!==-1},er=Et("n"),Ut=Et("s"),Ft=Et("w"),bt=Et("e"),yt=er?E+lt:E,Yt=Ut?A+lt:A,lr=Ft?L+st:L,Tr=bt?_+st:_;u&&(er&&(yt=E-lt),Ut&&(Yt=A-lt)),(!u&&Yt-yt>s||u&&yt-Yt>s)&&(h(k,r[k]=u?yt:ke(yt)),h(M,r[M]=u?Yt:ke(Yt))),Tr-lr>o&&(h(g,r[g]=l?lr:Me(lr)),h(P,r[P]=l?Tr:Me(Tr)))}t.attr("d",$B(e,r)),ct(i,r),iP(e,n,r,z)}function ct(st,lt){(l||u)&&Gt();function Gt(){var Nt=lt.type!=="path",$t=st.selectAll(".visual-cue").data([0]),sr=1;$t.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":sr}).classed("visual-cue",!0);var wr=oe(l?lt.xanchor:Nue.midRange(Nt?[lt.x0,lt.x1]:Sp.extractPathCoords(lt.path,Ob.paramIsX))),ur=_e(u?lt.yanchor:Nue.midRange(Nt?[lt.y0,lt.y1]:Sp.extractPathCoords(lt.path,Ob.paramIsY)));if(wr=Sp.roundPositionForSharpStrokeRendering(wr,sr),ur=Sp.roundPositionForSharpStrokeRendering(ur,sr),l&&u){var Qe="M"+(wr-1-sr)+","+(ur-1-sr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";$t.attr("d",Qe)}else if(l){var Et="M"+(wr-1-sr)+","+(ur-9-sr)+"v18 h2 v-18 Z";$t.attr("d",Et)}else{var er="M"+(wr-9-sr)+","+(ur-1-sr)+"h18 v2 h-18 Z";$t.attr("d",er)}}}function pt(st){st.selectAll(".visual-cue").remove()}function Wt(st,lt,Gt){var Nt=lt.xref,$t=lt.yref,sr=j3.getFromId(Gt,Nt),wr=j3.getFromId(Gt,$t),ur="";Nt!=="paper"&&!sr.autorange&&(ur+=Nt),$t!=="paper"&&!wr.autorange&&(ur+=$t),QB.setClipUrl(st,ur?"clip"+Gt._fullLayout._uid+ur:null,Gt)}}function Gue(e,t,r){return e.replace(Ob.segmentRE,function(n){var i=0,a=n.charAt(0),o=Ob.paramIsX[a],s=Ob.paramIsY[a],l=Ob.numParams[a],u=n.substr(1).replace(Ob.paramRE,function(c){return i>=l||(o[i]?c=t(c):s[i]&&(c=r(c)),i++),c});return a+u})}function vct(e,t){if(nP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Hue(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Hue,eN(e)}}}function Hue(e){if(nP(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(Wue(e),delete e._fullLayout._activeShapeIndex,eN(e))}}function pct(e){if(nP(e)){Wue(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var S0=qa(),Kue=Mc(),Jue=hf(),Pl=HL(),gct=aP().eraseActiveShape,oP=Dr(),rl=oP._,Il=nce.exports={};Il.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?rl(e,"Download plot as a PNG"):rl(e,"Download plot")},icon:Pl.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};oP.notifier(rl(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){oP.notifier(rl(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){oP.notifier(rl(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Il.sendDataToCloud={name:"sendDataToCloud",title:function(e){return rl(e,"Edit in Chart Studio")},icon:Pl.disk,click:function(e){Kue.sendDataToCloud(e)}};Il.editInChartStudio={name:"editInChartStudio",title:function(e){return rl(e,"Edit in Chart Studio")},icon:Pl.pencil,click:function(e){Kue.sendDataToCloud(e)}};Il.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return rl(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Pl.zoombox,click:qv};Il.pan2d={name:"pan2d",_cat:"pan",title:function(e){return rl(e,"Pan")},attr:"dragmode",val:"pan",icon:Pl.pan,click:qv};Il.select2d={name:"select2d",_cat:"select",title:function(e){return rl(e,"Box Select")},attr:"dragmode",val:"select",icon:Pl.selectbox,click:qv};Il.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return rl(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Pl.lasso,click:qv};Il.drawclosedpath={name:"drawclosedpath",title:function(e){return rl(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Pl.drawclosedpath,click:qv};Il.drawopenpath={name:"drawopenpath",title:function(e){return rl(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Pl.drawopenpath,click:qv};Il.drawline={name:"drawline",title:function(e){return rl(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Pl.drawline,click:qv};Il.drawrect={name:"drawrect",title:function(e){return rl(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Pl.drawrect,click:qv};Il.drawcircle={name:"drawcircle",title:function(e){return rl(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Pl.drawcircle,click:qv};Il.eraseshape={name:"eraseshape",title:function(e){return rl(e,"Erase active shape")},icon:Pl.eraseshape,click:gct};Il.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return rl(e,"Zoom in")},attr:"zoom",val:"in",icon:Pl.zoom_plus,click:qv};Il.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return rl(e,"Zoom out")},attr:"zoom",val:"out",icon:Pl.zoom_minus,click:qv};Il.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return rl(e,"Autoscale")},attr:"zoom",val:"auto",icon:Pl.autoscale,click:qv};Il.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return rl(e,"Reset axes")},attr:"zoom",val:"reset",icon:Pl.home,click:qv};Il.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return rl(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Pl.tooltip_basic,gravity:"ne",click:qv};Il.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return rl(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Pl.tooltip_compare,gravity:"ne",click:qv};function qv(e,t){var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=Jue.list(e,null,!0),l=a._cartesianSpikesEnabled,u,c;if(n==="zoom"){var f=i==="in"?.5:2,h=(1+f)/2,d=(1-f)/2,v,x;for(c=0;c{"use strict";var ace=iN(),_ct=Object.keys(ace),oce=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],sce=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(oce),X3=[],xct=function(e){if(sce.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();X3.indexOf(t)===-1&&X3.push(t),X3.indexOf(r)===-1&&X3.push(r)}};_ct.forEach(function(e){xct(ace[e])});X3.sort();lce.exports={DRAW_MODES:oce,backButtons:sce,foreButtons:X3}});var aN=ye((Nnr,uce)=>{"use strict";var Bnr=nN();uce.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var fce=ye((Unr,cce)=>{"use strict";var bct=Dr(),gM=Ca(),wct=pl(),Tct=aN();cce.exports=function(t,r){var n=t.modebar||{},i=wct.newContainer(r,"modebar");function a(s,l){return bct.coerce(n,i,Tct,s,l)}a("orientation"),a("bgcolor",gM.addOpacity(r.paper_bgcolor,.5));var o=gM.contrast(gM.rgb(r.modebar.bgcolor));a("color",gM.addOpacity(o,.3)),a("activecolor",gM.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var pce=ye((Vnr,vce)=>{"use strict";var oN=Oa(),Act=Eo(),lP=Dr(),hce=HL(),Sct=o6().version,Mct=new DOMParser;function dce(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Tm=dce.prototype;Tm.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this.element.setAttribute("role","toolbar"),this._uid=i,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=n.modebar,o="#"+i+" .modebar-group";document.querySelectorAll(o).forEach(function(f){f.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var c=this.getLogo();r.watermark&&(c.className=c.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(c,this.element.childNodes[0]):this.element.appendChild(c),this.hasLogo=!0}this.updateActiveButton(),lP.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Tm.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var n=t.createGroup();r.forEach(function(i){var a=i.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(i);t.buttonElements.push(o),n.appendChild(o)}),t.element.appendChild(n)})};Tm.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Tm.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(r.setAttribute("data-title",n),r.setAttribute("aria-label",n)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var i=e.val;i!==void 0&&(typeof i=="function"&&(i=i(this.graphInfo)),r.setAttribute("data-val",i));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&oN.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||hce.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Tm.createIcon=function(e){var t=Act(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(r,"svg"),n.setAttribute("viewBox",[0,0,e.width,t].join(" ")),n.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):e.ascent!==void 0&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(i)}if(e.svg){var a=Mct.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Tm.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var i=n.getAttribute("data-val")||!0,a=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",s=oN.select(n),l=function(f,h){var d=t.modebar,v=f.querySelector(".icon path");v&&(h||f.matches(":hover")?v.style.fill=d.activecolor:v.style.fill=d.color)};if(o){if(a===r){var u=!s.classed("active");s.classed("active",u),l(n,u)}}else{var c=a===null?a:lP.nestedProperty(t,a).get();s.classed("active",c===i),l(n,c===i)}})};Tm.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var kct=hf(),gce=Ru(),sN=qa(),Lct=rp().isUnifiedHover,Pct=pce(),uP=iN(),Ict=nN().DRAW_MODES,Rct=Dr().extendDeep;mce.exports=function(t){var r=t._fullLayout,n=t._context,i=r._modeBar;if(!n.displayModeBar&&!n.watermark){i&&(i.destroy(),delete r._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=Bct(a):!n.displayModeBar&&n.watermark?o=[]:o=Dct(t),i?i.update(t,o):r._modeBar=Pct(t,o)};function Dct(e){var t=e._fullLayout,r=e._fullData,n=e._context;function i(N,j){if(typeof j=="string"){if(j.toLowerCase()===N.toLowerCase())return!0}else{var re=j.name,oe=j._cat||j.name;if(re===N||oe===N.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=n.modeBarButtonsToAdd.concat(a.filter(function(N){for(var j=0;j1?(P=["toggleHover"],T=["resetViews"]):f?(g=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],T=["resetGeo"]):c?(P=["hoverClosest3d"],T=["resetCameraDefault3d","resetCameraLastSave3d"]):x?(g=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],T=["resetViewMapbox"]):b?(g=["zoomInMap","zoomOutMap"],P=["toggleHover"],T=["resetViewMap"]):h?P=["hoverClosestPie"]:E?(P=["hoverClosestCartesian","hoverCompareCartesian"],T=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Oct(r)||L)&&(P=[]),u&&!A&&(g=["zoomIn2d","zoomOut2d","autoScale2d"],T[0]!=="resetViews"&&(T=["resetScale2d"])),c?z=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!A||v?z=["zoom2d","pan2d"]:x||b||f?z=["pan2d"]:p&&(z=["zoom2d"]),zct(r)&&z.push("select2d","lasso2d");var O=[],V=function(N){O.indexOf(N)===-1&&P.indexOf(N)!==-1&&O.push(N)};if(Array.isArray(s)){for(var G=[],Z=0;Z{"use strict";_ce.exports={moduleType:"component",name:"modebar",layoutAttributes:aN(),supplyLayoutDefaults:fce(),manage:yce()}});var uN=ye((jnr,xce)=>{"use strict";var Nct=Kh().FROM_BL;xce.exports=function(t,r,n){n===void 0&&(n=Nct[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*r),t.l2r(a+(i[1]-a)*r)],t.setScale()}});var Bb=ye(mM=>{"use strict";var qb=Dr(),cN=wg(),Mg=hf().id2name,Uct=Rd(),bce=uN(),Vct=ym(),Gct=hs().ALMOST_EQUAL,Hct=Kh().FROM_BL;mM.handleDefaults=function(e,t,r){var n=r.axIds,i=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,c,f,h,d,v;for(s=0;sa?r.substr(a):n.substr(i))+o}function Wct(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;oGct*v&&!C)){for(a=0;az&&reP&&(P=re);var _e=(P-g)/(2*T);f/=_e,g=l.l2r(g),P=l.l2r(P),l.range=l._input.range=_{"use strict";var fP=Oa(),Bv=qa(),Jp=Mc(),M0=Dr(),dN=ru(),vN=hM(),yM=Ca(),Z3=So(),Sce=Mb(),Lce=lN(),_M=ho(),Cy=Kh(),Pce=Bb(),Xct=Pce.enforce,Zct=Pce.clean,Mce=wg().doAutoRange,Ice="start",Yct="middle",Rce="end",Kct=hd().zindexSeparator;pd.layoutStyles=function(e){return M0.syncOrAsync([Jp.doAutoMargin,$ct],e)};function Jct(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function $ct(e){var t=e._fullLayout,r=t._size,n=r.p,i=_M.list(e,"",!0),a,o,s,l,u,c;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(Z3.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),pd.drawMainTitle(e),Lce.manage(e),!t._has("cartesian"))return Jp.previousPromises(e);function f(Pe,ge,Fe){var ce=Pe._lw/2;if(Pe._id.charAt(0)==="x"){if(ge){if(Fe==="top")return ge._offset-n-ce}else return r.t+r.h*(1-(Pe.position||0))+ce%1;return ge._offset+ge._length+n+ce}if(ge){if(Fe==="right")return ge._offset+ge._length+n+ce}else return r.l+r.w*(Pe.position||0)+ce%1;return ge._offset-n-ce}for(a=0;a0){rft(e,a,u,l),s.attr({x:o,y:a,"text-anchor":n,dy:kce(t.yanchor)}).call(dN.positionText,o,a);var c=(t.text.match(dN.BR_TAG_ALL)||[]).length;if(c){var f=Cy.LINE_SPACING*c+Cy.MID_SHIFT;t.y===0&&(f=-f),s.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-f+"em";this.setAttribute("dy",b)})}var h=fP.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),v=d.y+d.height,x=v+Sce.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:x,"text-anchor":n,dy:kce(t.yanchor)}).call(dN.positionText,o,x)}}}};function Qct(e,t,r,n,i){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=M0.isTopAnchor(t)?n:n-i,s=r==="b"?a-o:o;return M0.isTopAnchor(t)&&r==="t"||M0.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=eft(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function rft(e,t,r,n){var i="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},l={};a.yref==="paper"&&Qct(e,a,o,t,n)?s[o]=r:a.yref==="container"&&(l[o]=r,e._fullLayout._reservedMargin[i]=l),Jp.allowAutoMargin(e,i),Jp.autoMargin(e,i,s)}function ift(e,t){var r=e.title,n=e._size,i=0;switch(t===Ice?i=r.pad.l:t===Rce&&(i=-r.pad.r),r.xref){case"paper":return n.l+n.w*r.x+i;case"container":default:return e.width*r.x+i}}function nft(e,t){var r=e.title,n=e._size,i=0;if(t==="0em"||!t?i=-r.pad.b:t===Cy.CAP_SHIFT+"em"&&(i=r.pad.t),r.y==="auto")return n.t/2;switch(r.yref){case"paper":return n.t+n.h-n.h*r.y+i;case"container":default:return e.height-e.height*r.y+i}}function kce(e){return e==="top"?Cy.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Cy.MID_SHIFT+"em"}function aft(e){var t=e.title,r=Yct;return M0.isRightAnchor(t)?r=Rce:M0.isLeftAnchor(t)&&(r=Ice),r}function oft(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=Cy.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=Cy.MID_SHIFT+"em"),r}pd.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var sft=u_().readPaths,lft=tP(),Dce=Q1().clearOutlineControllers,pN=Ca(),Fce=So(),uft=pl().arrayEditor,zce=f_(),cft=zce.getPathString;qce.exports={draw:hP,drawOne:Oce,activateLastSelection:dft};function hP(e){var t=e._fullLayout;Dce(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i=0;b--){var p=o.append("path").attr(l).style("opacity",b?.1:u).call(pN.stroke,f).call(pN.fill,c).call(Fce.dashLine,b?"solid":d,b?4+h:h);if(fft(p,e,n),v){var C=uft(e.layout,"selections",n);p.style({cursor:"move"});var E={element:p.node(),plotinfo:i,gd:e,editHelpers:C,isActiveSelection:!0},A=sft(s,e);lft(A,p,E)}else p.style("pointer-events",b?"all":"none");x[b]=p}var L=x[0],_=x[1];_.node().addEventListener("click",function(){return hft(e,L)})}}function fft(e,t,r){var n=r.xref+r.yref;Fce.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function hft(e,t){if(dP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){gN(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=gN,hP(e)}}}function dft(e){if(dP(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=gN,hP(e)}}function gN(e){if(dP(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Dce(e),delete e._fullLayout._activeSelectionIndex,hP(e))}}});var Nce=ye((Ynr,Bce)=>{function vft(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}Bce.exports=vft});var Vce=ye((Knr,Uce)=>{function pft(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],s=i[0],l=i[1],u=r[0],c=r[1];return(s-a)*(c-o)-(l-o)*(u-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],l=i[1]-n[1],u=s*o+a*l;if(u-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])e!=s-a>e&&(o-c)*(a-f)/(s-f)+c-i>e&&(l=!l),o=c,s=f}return l}};return t}Uce.exports=pft});var Hce=ye((Jnr,Gce)=>{var gft={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};Gce.exports=gft});var Wce=ye(($nr,jce)=>{var bM=Hce();function mft(e,t,r){function n(v,x){return{id:r?r.segmentId():-1,start:v,end:x,myFill:{above:null,below:null},otherFill:null}}function i(v,x,b){return{id:r?r.segmentId():-1,start:v,end:x,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=bM.create();function o(v,x,b,p,C,E){var A=t.pointsCompare(x,C);return A!==0?A:t.pointsSame(b,E)?0:v!==p?v?1:-1:t.pointAboveOrOnLine(b,p?C:E,p?E:C)?1:-1}function s(v,x){a.insertBefore(v,function(b){var p=o(v.isStart,v.pt,x,b.isStart,b.pt,b.other.pt);return p<0})}function l(v,x){var b=bM.node({isStart:!0,pt:v.start,seg:v,primary:x,other:null,status:null});return s(b,v.end),b}function u(v,x,b){var p=bM.node({isStart:!1,pt:x.end,seg:x,primary:b,other:v,status:null});v.other=p,s(p,v.pt)}function c(v,x){var b=l(v,x);return u(b,v,x),b}function f(v,x){r&&r.segmentChop(v.seg,x),v.other.remove(),v.seg.end=x,v.other.pt=x,s(v.other,v.pt)}function h(v,x){var b=i(x,v.seg.end,v.seg);return f(v,x),c(b,v.primary)}function d(v,x){var b=bM.create();function p(G,Z){var H=G.seg.start,N=G.seg.end,j=Z.seg.start,re=Z.seg.end;return t.pointsCollinear(H,j,re)?t.pointsCollinear(N,j,re)||t.pointAboveOrOnLine(N,j,re)?1:-1:t.pointAboveOrOnLine(H,j,re)?1:-1}function C(G){return b.findTransition(function(Z){var H=p(G,Z.ev);return H>0})}function E(G,Z){var H=G.seg,N=Z.seg,j=H.start,re=H.end,oe=N.start,_e=N.end;r&&r.checkIntersection(H,N);var Me=t.linesIntersect(j,re,oe,_e);if(Me===!1){if(!t.pointsCollinear(j,re,oe)||t.pointsSame(j,_e)||t.pointsSame(re,oe))return!1;var ke=t.pointsSame(j,oe),me=t.pointsSame(re,_e);if(ke&&me)return Z;var ie=!ke&&t.pointBetween(j,oe,_e),Se=!me&&t.pointBetween(re,oe,_e);if(ke)return Se?h(Z,re):h(G,_e),Z;ie&&(me||(Se?h(Z,re):h(G,_e)),h(Z,j))}else Me.alongA===0&&(Me.alongB===-1?h(G,oe):Me.alongB===0?h(G,Me.pt):Me.alongB===1&&h(G,_e)),Me.alongB===0&&(Me.alongA===-1?h(Z,j):Me.alongA===0?h(Z,Me.pt):Me.alongA===1&&h(Z,re));return!1}for(var A=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let G=function(){if(k){var Z=E(L,k);if(Z)return Z}return M?E(L,M):!1};var V=G;r&&r.segmentNew(L.seg,L.primary);var _=C(L),k=_.before?_.before.ev:null,M=_.after?_.after.ev:null;r&&r.tempStatus(L.seg,k?k.seg:!1,M?M.seg:!1);var g=G();if(g){if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,P&&(g.seg.myFill.above=!g.seg.myFill.above)}else g.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(g.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,M?L.seg.myFill.below=M.seg.myFill.above:L.seg.myFill.below=v,P?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var T;M?L.primary===M.primary?T=M.seg.otherFill.above:T=M.seg.myFill.above:T=L.primary?x:v,L.seg.otherFill={above:T,below:T}}r&&r.status(L.seg,k?k.seg:!1,M?M.seg:!1),L.other.status=_.insert(bM.node({ev:L}))}else{var z=L.status;if(z===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(z.prev)&&b.exists(z.next)&&E(z.prev.ev,z.next.ev),r&&r.statusRemove(z.ev.seg),z.remove(),!L.primary){var O=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=O}A.push(L.seg)}a.getHead().remove()}return r&&r.done(),A}return e?{addRegion:function(v){for(var x,b=v[v.length-1],p=0;p{function yft(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},c=l;function f(V,G,Z){return c.index=V,c.matches_head=G,c.matches_pt1=Z,c===l?(c=u,!1):(c=null,!0)}for(var h=0;h{function wM(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var _ft={union:function(e,t){return wM(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return wM(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return wM(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return wM(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return wM(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};Yce.exports=_ft});var $ce=ye((tar,Jce)=>{var xft={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var c=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[c]})}for(var s=o(a[0]),l=1;l{var bft=Nce(),wft=Vce(),Qce=Wce(),Tft=Zce(),TM=Kce(),efe=$ce(),E0=!1,AM=wft(),Mp;Mp={buildLog:function(e){return e===!0?E0=bft():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return AM.epsilon(e)},segments:function(e){var t=Qce(!0,AM,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=Qce(!1,AM,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:TM.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:TM.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:TM.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:TM.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:TM.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Tft(e.segments,AM,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return efe.toPolygon(Mp,e)},polygonToGeoJSON:function(e){return efe.fromPolygon(Mp,AM,e)},union:function(e,t){return SM(e,t,Mp.selectUnion)},intersect:function(e,t){return SM(e,t,Mp.selectIntersect)},difference:function(e,t){return SM(e,t,Mp.selectDifference)},differenceRev:function(e,t){return SM(e,t,Mp.selectDifferenceRev)},xor:function(e,t){return SM(e,t,Mp.selectXor)}};function SM(e,t,r){var n=Mp.segments(e),i=Mp.segments(t),a=Mp.combine(n,i),o=r(a);return Mp.polygon(o)}typeof window=="object"&&(window.PolyBool=Mp);tfe.exports=Mp});var nfe=ye((iar,ife)=>{ife.exports=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var l=i-n,u=0,c=l-1;uo!=v>o&&a<(d-f)*(o-h)/(v-h)+f;x&&(s=!s)}return s}});var MM=ye((nar,afe)=>{"use strict";var yN=b6().dot,vP=hs().BADNUM,pP=afe.exports={};pP.tester=function(t){var r=t.slice(),n=r[0][0],i=n,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;si||p===vP||po||x&&u(v))}function f(v,x){var b=v[0],p=v[1];if(b===vP||bi||p===vP||po)return!1;var C=r.length,E=r[0][0],A=r[0][1],L=0,_,k,M,g,P;for(_=1;_Math.max(k,E)||p>Math.max(M,A)))if(ps||Math.abs(yN(f,u))>i)return!0;return!1};pP.filter=function(t,r){var n=[t[0]],i=0,a=0;function o(l){t.push(l);var u=n.length,c=i;n.splice(a+1);for(var f=c+1;f1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:n}}});var sfe=ye((aar,ofe)=>{"use strict";ofe.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var kfe=ye((oar,Cfe)=>{"use strict";var lfe=rfe(),Aft=nfe(),kM=qa(),Sft=So().dashStyle,EM=Ca(),Mft=vf(),Eft=rp().makeEventData,DM=Sg(),Cft=DM.freeMode,kft=DM.rectMode,LM=DM.drawMode,wN=DM.openMode,TN=DM.selectMode,ufe=f_(),cfe=vM(),pfe=tP(),gfe=Q1().clearOutline,mfe=u_(),_N=mfe.handleEllipse,Lft=mfe.readPaths,Pft=JL().newShapes,Ift=WB(),Rft=mN().activateLastSelection,mP=Dr(),Dft=mP.sorterAsc,yfe=MM(),CM=D6(),C0=hf().getFromId,Fft=hM(),zft=xM().redrawReglTraces,yP=sfe(),Am=yP.MINSELECT,Oft=yfe.filter,AN=yfe.tester,SN=XL(),ffe=SN.p2r,qft=SN.axValue,Bft=SN.getTransform;function MN(e){return e.subplot!==void 0}function Nft(e,t,r,n,i){var a=!MN(n),o=Cft(i),s=kft(i),l=wN(i),u=LM(i),c=TN(i),f=i==="drawline",h=i==="drawcircle",d=f||h,v=n.gd,x=v._fullLayout,b=c&&x.newselection.mode==="immediate"&&a,p=x._zoomlayer,C=n.element.getBoundingClientRect(),E=n.plotinfo,A=Bft(E),L=t-C.left,_=r-C.top;x._calcInverseTransform(v);var k=mP.apply3DTransform(x._invTransform)(L,_);L=k[0],_=k[1];var M=x._invScaleX,g=x._invScaleY,P=L,T=_,z="M"+L+","+_,O=n.xaxes[0],V=n.yaxes[0],G=O._length,Z=V._length,H=e.altKey&&!(LM(i)&&l),N,j,re,oe,_e,Me,ke;xfe(e,v,n),o&&(N=Oft([[L,_]],yP.BENDPX));var me=p.selectAll("path.select-outline-"+E.id).data([1]),ie=u?x.newshape:x.newselection;u&&(n.hasText=ie.label.text||ie.label.texttemplate);var Se=u&&!l?ie.fillcolor:"rgba(0,0,0,0)",Le=ie.line.color||(a?EM.contrast(v._fullLayout.plot_bgcolor):"#7f7f7f");me.enter().append("path").attr("class","select-outline select-outline-"+E.id).style({opacity:u?ie.opacity/2:1,"stroke-dasharray":Sft(ie.line.dash,ie.line.width),"stroke-width":ie.line.width+"px","shape-rendering":"crispEdges"}).call(EM.stroke,Le).call(EM.fill,Se).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",A).attr("d",z+"Z");var Ae=p.append("path").attr("class","zoombox-corners").style({fill:EM.background,stroke:EM.defaultLine,"stroke-width":1}).attr("transform",A).attr("d","M0,0Z");if(u&&n.hasText){var De=p.select(".label-temp");De.empty()&&(De=p.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Pe=x._uid+yP.SELECTID,ge=[],Fe=_P(v,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var Ze=O._id,ct=V._id;Sfe(v,Ze,ct,Fe);for(var pt=(v.layout||{}).selections||[],Wt=[],st=!1,lt=0;lt=0){v._fullLayout._deactivateShape(v);return}if(!u){var pt=x.clickmode;CM.done(Pe).then(function(){if(CM.clear(Pe),Ze===2){for(me.remove(),_e=0;_e-1&&_fe(ct,v,n.xaxes,n.yaxes,n.subplot,n,me),pt==="event"&&RM(v,void 0);Mft.click(v,ct,E.id)}).catch(mP.error)}},n.doneFn=function(){Ae.remove(),CM.done(Pe).then(function(){CM.clear(Pe),!b&&oe&&n.selectionDefs&&(oe.subtract=H,n.selectionDefs.push(oe),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,re)),(b||u)&&PM(n,b),n.doneFnCompleted&&n.doneFnCompleted(ge),c&&RM(v,ke)}).catch(mP.error)}}function _fe(e,t,r,n,i,a,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,c=u.indexOf("event")>-1,f=[],h,d,v,x,b,p,C,E,A,L;if(jft(s)){xfe(e,t,a),h=_P(t,r,n,i);var _=Wft(s,h),k=_.pointNumbers.length>0;if(k?Xft(h,_):Zft(h)&&(C=dfe(_))){for(o&&o.remove(),L=0;L=0}function Hft(e){return e._fullLayout._activeSelectionIndex>=0}function PM(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;Gft(i)&&i._fullLayout._deactivateShape(i),Hft(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=LM(r),l=TN(r);if(s||l){var u=o.selectAll(".select-outline-"+n.id);if(u&&i._fullLayout._outlining){var c;s&&(c=Pft(u,e)),c&&kM.call("_guiRelayout",i,{shapes:c});var f;l&&!MN(e)&&(f=Ift(u,e)),f&&(i._fullLayout._noEmitSelectedAtStart=!0,kM.call("_guiRelayout",i,{selections:f}).then(function(){t&&Rft(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function hfe(e){return e._id}function _P(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(hfe),o=r.map(hfe),s,l,u;for(u=0;u0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function Xft(e,t){var r=[],n,i,a,o;for(o=0;o0&&r.push(n);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(i=t.searchInfo.cd[0].trace,i.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function IM(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var Ze=vfe(e,!0);if(Ze.length){var ct=Ze[0].xref,pt=Ze[0].yref;if(ct&&pt){var Wt=Mfe(Ze),st=Efe([C0(e,ct,"x"),C0(e,pt,"y")]);st(ge,Wt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&RM(e,ge),h._reselect=!1}if(!o&&h._deselect){var lt=h._deselect;s=lt.xref,l=lt.yref,Jft(s,l,c)||Sfe(e,s,l,n),ce&&(ge.points.length?RM(e,ge):kN(e)),h._deselect=!1}return{eventData:ge,selectionTesters:r}}function Kft(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";Lfe.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var FM=ye((lar,Pfe)=>{"use strict";Pfe.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Nb=ye((car,Dfe)=>{"use strict";var Ife=LN(),Rfe=ec(),xP=hd(),rht=pl().templatedArray,uar=FM();Dfe.exports=rht("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Rfe({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Ife.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Ife.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",xP.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",xP.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",xP.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",xP.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Rfe({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Sm=ye((far,Ffe)=>{"use strict";Ffe.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Eg=ye((har,zfe)=>{"use strict";zfe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var pf=ye((dar,Vfe)=>{"use strict";var Ofe=df().axisHoverFormat,iht=Qo().texttemplateAttrs,nht=Qo().hovertemplateAttrs,qfe=Tu(),aht=ec(),oht=Pd().dash,sht=Pd().pattern,lht=So(),uht=Sm(),bP=Ao().extendFlat,cht=Eg();function Bfe(e){return{valType:"any",dflt:0,editType:"calc"}}function Nfe(e){return{valType:"any",editType:"calc"}}function Ufe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Vfe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Bfe("x"),yperiod:Bfe("y"),xperiod0:Nfe("x0"),yperiod0:Nfe("y0"),xperiodalignment:Ufe("x"),yperiodalignment:Ufe("y"),xhoverformat:Ofe("x"),yhoverformat:Ofe("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:iht({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:nht({},{keys:uht.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:bP({},oht,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:cht(!0),fillgradient:bP({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:sht,marker:bP({symbol:{valType:"enumerated",values:lht.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:bP({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},qfe("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},qfe("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:aht({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var PN=ye((gar,jfe)=>{"use strict";var Gfe=Nb(),Hfe=pf().line,fht=Pd().dash,wP=Ao().extendFlat,hht=mc().overrideAll,dht=pl().templatedArray,par=FM();jfe.exports=hht(dht("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:wP({},Gfe.xref,{}),yref:wP({},Gfe.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:Hfe.color,width:wP({},Hfe.width,{min:1,dflt:1}),dash:wP({},fht,{dflt:"dot"})}}),"arraydraw","from-root")});var Yfe=ye((mar,Zfe)=>{"use strict";var Wfe=Dr(),TP=ho(),vht=Yd(),pht=PN(),Xfe=f_();Zfe.exports=function(t,r){vht(t,r,{name:"selections",handleItemDefaults:ght});for(var n=r.selections,i=0;i{"use strict";Kfe.exports=function(t,r,n){n("newselection.mode");var i=n("newselection.line.width");i&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var zM=ye((_ar,ehe)=>{"use strict";var mht=qa(),$fe=Dr(),Qfe=hf();ehe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=mht.subplotsRegistry.cartesian,s=o.idRegex,l=i._subplots,u=l.xaxis,c=l.yaxis,f=l.cartesian,h=i._has("cartesian"),d=0;d{"use strict";var the=mN(),OM=kfe();rhe.exports={moduleType:"component",name:"selections",layoutAttributes:PN(),supplyLayoutDefaults:Yfe(),supplyDrawNewSelectionDefaults:Jfe(),includeBasePlot:zM()("selections"),draw:the.draw,drawOne:the.drawOne,reselect:OM.reselect,prepSelect:OM.prepSelect,clearOutline:OM.clearOutline,clearSelectionsCache:OM.clearSelectionsCache,selectOnClick:OM.selectOnClick}});var qN=ye((bar,whe)=>{"use strict";var zN=Oa(),k0=Dr(),ihe=k0.numberFormat,yht=cd(),_ht=PL(),AP=qa(),hhe=k0.strTranslate,xht=ru(),nhe=Ca(),d_=So(),bht=vf(),ahe=ho(),wht=Tg(),Tht=yv(),dhe=Sg(),SP=dhe.selectingOrDrawing,Aht=dhe.freeMode,Sht=Kh().FROM_TL,Mht=hM(),Eht=xM().redrawReglTraces,Cht=Mc(),RN=hf().getFromId,kht=zf().prepSelect,Lht=zf().clearOutline,Pht=zf().selectOnClick,IN=uN(),ON=hd(),ohe=ON.MINDRAG,ip=ON.MINZOOM,she=!0;function Iht(e,t,r,n,i,a,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",c=(o+s).length===1,f,h,d,v,x,b,p,C,E,A,L,_,k,M,g,P,T,z,O,V,G,Z,H;r+=t.yaxis._shift;function N(){if(f=t.xaxis,h=t.yaxis,E=f._length,A=h._length,p=f._offset,C=h._offset,d={},d[f._id]=f,v={},v[h._id]=h,o&&s)for(var bt=t.overlays,yt=0;yt=0){Yt._fullLayout._deactivateShape(Yt);return}var lr=Yt._fullLayout.clickmode;if(FN(Yt),bt===2&&!c&&ur(),u)lr.indexOf("select")>-1&&Pht(yt,Yt,x,b,t.id,oe),lr.indexOf("event")>-1&&bht.click(Yt,yt,t.id);else if(bt===1&&c){var Tr=o?h:f,Rr=o==="s"||s==="w"?0:1,ei=Tr._name+".range["+Rr+"]",Wr=Rht(Tr,Rr),Ur="left",dt="middle";if(Tr.fixedrange)return;o?(dt=o==="n"?"top":"bottom",Tr.side==="right"&&(Ur="right")):s==="e"&&(Ur="right"),Yt._context.showAxisRangeEntryBoxes&&zN.select(re).call(xht.makeEditable,{gd:Yt,immediate:!0,background:Yt._fullLayout.paper_bgcolor,text:String(Wr),fill:Tr.tickfont?Tr.tickfont.color:"#444",horizontalAlign:Ur,verticalAlign:dt}).on("edit",function(Ge){var Je=Tr.d2r(Ge);Je!==void 0&&AP.call("_guiRelayout",Yt,ei,Je)})}}Tht.init(oe);var ke,me,ie,Se,Le,Ae,De,Pe,ge,Fe;function ce(bt,yt,Yt){var lr=re.getBoundingClientRect();ke=yt-lr.left,me=Yt-lr.top,e._fullLayout._calcInverseTransform(e);var Tr=k0.apply3DTransform(e._fullLayout._invTransform)(ke,me);ke=Tr[0],me=Tr[1],ie={l:ke,r:ke,w:0,t:me,b:me,h:0},Se=e._hmpixcount?e._hmlumcount/e._hmpixcount:yht(e._fullLayout.plot_bgcolor).getLuminance(),Le="M0,0H"+E+"V"+A+"H0V0",Ae=!1,De="xy",Fe=!1,Pe=ghe(l,Se,p,C,Le),ge=mhe(l,p,C)}function Ze(bt,yt){if(e._transitioningWithDuration)return!1;var Yt=Math.max(0,Math.min(E,Z*bt+ke)),lr=Math.max(0,Math.min(A,H*yt+me)),Tr=Math.abs(Yt-ke),Rr=Math.abs(lr-me);ie.l=Math.min(ke,Yt),ie.r=Math.max(ke,Yt),ie.t=Math.min(me,lr),ie.b=Math.max(me,lr);function ei(){De="",ie.r=ie.l,ie.t=ie.b,ge.attr("d","M0,0Z")}if(L.isSubplotConstrained)Tr>ip||Rr>ip?(De="xy",Tr/E>Rr/A?(Rr=Tr*A/E,me>lr?ie.t=me-Rr:ie.b=me+Rr):(Tr=Rr*E/A,ke>Yt?ie.l=ke-Tr:ie.r=ke+Tr),ge.attr("d",MP(ie))):ei();else if(_.isSubplotConstrained)if(Tr>ip||Rr>ip){De="xy";var Wr=Math.min(ie.l/E,(A-ie.b)/A),Ur=Math.max(ie.r/E,(A-ie.t)/A);ie.l=Wr*E,ie.r=Ur*E,ie.b=(1-Wr)*A,ie.t=(1-Ur)*A,ge.attr("d",MP(ie))}else ei();else!M||Rr0){var Ge;if(_.isSubplotConstrained||!k&&M.length===1){for(Ge=0;Ge1&&(ei.maxallowed!==void 0&&P===(ei.range[0]1&&(Wr.maxallowed!==void 0&&T===(Wr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Fht(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function ghe(e,t,r,n,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",hhe(r,n)).attr("d",i+"Z")}function mhe(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:nhe.background,stroke:nhe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",hhe(t,r)).attr("d","M0,0Z")}function yhe(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),_he(e,t,i,a)}function _he(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function FN(e){zN.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function xhe(e){she&&e.data&&e._context.showTips&&(k0.notifier(k0._(e,"Double-click to zoom back out"),"long"),she=!1)}function zht(e,t){return"M"+(e.l-.5)+","+(t-ip-.5)+"h-3v"+(2*ip+1)+"h3ZM"+(e.r+.5)+","+(t-ip-.5)+"h3v"+(2*ip+1)+"h-3Z"}function Oht(e,t){return"M"+(t-ip-.5)+","+(e.t-.5)+"v-3h"+(2*ip+1)+"v3ZM"+(t-ip-.5)+","+(e.b+.5)+"v3h"+(2*ip+1)+"v-3Z"}function MP(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,ip)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function che(e,t,r,n,i){for(var a=!1,o={},s={},l,u,c,f,h=(i||{}).xaHash,d=(i||{}).yaHash,v=0;v{"use strict";var qht=Oa(),EP=vf(),Bht=yv(),Nht=Tg(),Cg=qN().makeDragBox,gd=hd().DRAGGERSIZE;CP.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){qht.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var n=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[a].mainplot?1:-1});n.forEach(function(a){var o=r._plots[a],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=Cg(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&EP.hover(t,h,a)},EP.hover(t,h,a),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=a},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,Bht.unhover(t,h))},t._context.showAxisDragHandles&&(Cg(t,o,s._offset-gd,l._offset-gd,gd,gd,"n","w"),Cg(t,o,s._offset+s._length,l._offset-gd,gd,gd,"n","e"),Cg(t,o,s._offset-gd,l._offset+l._length,gd,gd,"s","w"),Cg(t,o,s._offset+s._length,l._offset+l._length,gd,gd,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var c=s._mainLinePosition;s.side==="top"&&(c-=gd),Cg(t,o,s._offset+s._length*.1,c,s._length*.8,gd,"","ew"),Cg(t,o,s._offset,c,s._length*.1,gd,"","w"),Cg(t,o,s._offset+s._length*.9,c,s._length*.1,gd,"","e")}if(a===l._mainSubplot){var f=l._mainLinePosition;l.side!=="right"&&(f-=gd),Cg(t,o,f,l._offset+l._length*.1,gd,l._length*.8,"ns",""),Cg(t,o,f,l._offset+l._length*.9,gd,l._length*.1,"s",""),Cg(t,o,f,l._offset,gd,l._length*.1,"n","")}}});var i=r._hoverlayer.node();i.onmousemove=function(a){a.target=t._fullLayout._lasthover,EP.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,EP.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},CP.updateFx(t)}};CP.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Nht(t._draggers,r)}});var She=ye((Tar,Ahe)=>{"use strict";var The=qa();Ahe.exports=function(t){for(var r=The.layoutArrayContainers,n=The.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var Uht=gy(),NN=x6(),qM=G1(),Vht=P6().sorterAsc,UN=qa();BM.containerArrayMatch=She();var Ght=BM.isAddVal=function(t){return t==="add"||Uht(t)},Mhe=BM.isRemoveVal=function(t){return t===null||t==="remove"};BM.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=UN.getComponentMethod(o,"supplyLayoutDefaults"),l=UN.getComponentMethod(o,"draw"),u=UN.getComponentMethod(o,"drawOne"),c=i.replot||i.recalc||s===NN||l===NN,f=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&qM.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(Mhe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return qM.warn("Unrecognized full array edit value",o,d),!0;return c?!1:(s(f,h),l(t),!0)}var v=Object.keys(n).map(Number).sort(Vht),x=r.get(),b=x||[],p=a(h,o).get(),C=[],E=-1,A=b.length,L,_,k,M,g,P,T,z;for(L=0;Lb.length-(T?0:1)){qM.warn("index out of range",o,k);continue}if(P!==void 0)g.length>1&&qM.warn("Insertion & removal are incompatible with edits to the same index.",o,k),Mhe(P)?C.push(k):T?(P==="add"&&(P={}),b.splice(k,0,P),p&&p.splice(k,0,{})):qM.warn("Unrecognized full object edit value",o,k,P),E===-1&&(E=k);else for(_=0;_=0;L--)b.splice(C[L],1),p&&p.splice(C[L],1);if(b.length?x||r.set(b):r.set(null),c)return!1;if(s(f,h),u!==NN){var O;if(E===-1)O=v;else{for(A=Math.max(b.length,A),O=[],L=0;L=E));L++)O.push(k);for(L=E;L{"use strict";var Phe=Eo(),Sar=DO(),Ihe=qa(),Ep=Dr(),NM=Mc(),Rhe=hf(),Dhe=Ca(),UM=Rhe.cleanId,Hht=Rhe.getFromTrace,VN=Ihe.traceIs;kg.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ep.log("Clearing previous rejected promises from queue."),e._promises=[]};kg.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(NM.subplotsRegistry.cartesian||{}).attrRegex,i=(NM.subplotsRegistry.polar||{}).attrRegex,a=(NM.subplotsRegistry.ternary||{}).attrRegex,o=(NM.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),Dhe.clean(e),e.template&&e.template.layout&&kg.cleanLayout(e.template.layout),e};function Y3(e,t){var r=e[t],n=t.charAt(0);r&&r!=="paper"&&(e[t]=UM(r,n,!0))}kg.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}kg.hasParent=function(e,t){for(var r=Lhe(t);r;){if(r in e)return!0;r=Lhe(r)}return!1};var Xht=["x","y","z"];kg.clearAxisTypes=function(e,t,r){for(var n=0;n{"use strict";var IP=Oa(),Zht=Eo(),Yht=rq(),xa=Dr(),Ec=xa.nestedProperty,jN=g3(),np=mne(),L0=qa(),BP=_3(),es=Mc(),Nv=ho(),Kht=mB(),Jht=Rd(),GN=So(),$ht=Ca(),Qht=BN().initInteractions,edt=Wp(),tdt=zf().clearOutline,Nhe=ub().dfltConfig,LP=Ehe(),Ih=Fhe(),Au=xM(),v_=mc(),rdt=hd().AX_NAME_PATTERN,HN=0,zhe=5;function idt(e,t,r,n){var i;if(e=xa.getGraphDiv(e),jN.init(e),xa.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=jN.triggerHandler(e,"plotly_beforeplot",[t,r,n]);if(o===!1)return Promise.reject();!t&&!r&&!xa.isPlotDiv(e)&&xa.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(i)return xl.addFrames(e,i)}Vhe(e,n),r||(r={}),IP.select(e).classed("js-plotly-plot",!0),GN.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Ih.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=Ih.cleanLayout(r)),es.supplyDefaults(e);var u=e._fullLayout,c=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(Mdt(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),GN.initGradients(e),GN.initPatterns(e),l&&Nv.saveShowSpikeInitial(e);var f=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;f&&es.doCalcdata(e);for(var h=0;h=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function Ghe(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),DP(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&DP(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function ldt(e,t,r){var n,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&c=0&&c0&&typeof M.parts[T]!="string";)T--;var z=M.parts[T],O=M.parts[T-1]+"."+z,V=M.parts.slice(0,T).join("."),G=Ec(e.layout,V).get(),Z=Ec(n,V).get(),H=M.get();if(g!==void 0){p[k]=g,C[k]=z==="reverse"?g:ky(H);var N=BP.getLayoutValObject(n,M.parts);if(N&&N.impliedEdits&&g!==null)for(var j in N.impliedEdits)E(xa.relativeAttr(k,j),N.impliedEdits[j]);if(["width","height"].indexOf(k)!==-1)if(g){E("autosize",null);var re=k==="height"?"width":"height";E(re,n[re])}else n[k]=e._initialAutoSize[k];else if(k==="autosize")E("width",g?null:n.width),E("height",g?null:n.height);else if(O.match($he))_(O),Ec(n,V+"._inputRange").set(null);else if(O.match(Qhe)){_(O),Ec(n,V+"._inputRange").set(null);var oe=Ec(n,V).get();oe._inputDomain&&(oe._input.domain=oe._inputDomain.slice())}else O.match(hdt)&&Ec(n,V+"._inputDomain").set(null);if(z==="type"){L=G;var _e=Z.type==="linear"&&g==="log",Me=Z.type==="log"&&g==="linear";if(_e||Me){if(!L||!L.range)E(V+".autorange",!0);else if(Z.autorange)_e&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var ke=L.range[0],me=L.range[1];_e?(ke<=0&&me<=0&&E(V+".autorange",!0),ke<=0?ke=me/1e6:me<=0&&(me=ke/1e6),E(V+".range[0]",Math.log(ke)/Math.LN10),E(V+".range[1]",Math.log(me)/Math.LN10)):(E(V+".range[0]",Math.pow(10,ke)),E(V+".range[1]",Math.pow(10,me)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[M.parts[0]]&&M.parts[1]==="radialaxis"&&delete n[M.parts[0]]._subplot.viewInitial["radialaxis.range"],L0.getComponentMethod("annotations","convertCoords")(e,Z,g,E),L0.getComponentMethod("images","convertCoords")(e,Z,g,E)}else E(V+".autorange",!0),E(V+".range",null);Ec(n,V+"._inputRange").set(null)}else if(z.match(rdt)){var ie=Ec(n,k).get(),Se=(g||{}).type;(!Se||Se==="-")&&(Se="linear"),L0.getComponentMethod("annotations","convertCoords")(e,ie,Se,E),L0.getComponentMethod("images","convertCoords")(e,ie,Se,E)}var Le=LP.containerArrayMatch(k);if(Le){c=Le.array,f=Le.index;var Ae=Le.property,De=N||{editType:"calc"};f!==""&&Ae===""&&(LP.isAddVal(g)?C[k]=null:LP.isRemoveVal(g)?C[k]=(Ec(r,c).get()||[])[f]:xa.warn("unrecognized full object value",t)),v_.update(b,De),u[c]||(u[c]={});var Pe=u[c][f];Pe||(Pe=u[c][f]={}),Pe[Ae]=g,delete t[k]}else z==="reverse"?(G.range?G.range.reverse():(E(V+".autorange",!0),G.range=[1,0]),Z.autorange?b.calc=!0:b.plot=!0):(k==="dragmode"&&(g===!1&&H!==!1||g!==!1&&H===!1)||n._has("scatter-like")&&n._has("regl")&&k==="dragmode"&&(g==="lasso"||g==="select")&&!(H==="lasso"||H==="select")?b.plot=!0:N?v_.update(b,N):b.calc=!0,M.set(g))}}for(c in u){var ge=LP.applyContainerArrayChanges(e,a(r,c),u[c],b,a);ge||(b.plot=!0)}for(var Fe in A){L=Nv.getFromId(e,Fe);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var Ze in ce)A[Ze]||(Nv.getFromId(e,Ze)._constraintShrinkable=!0)}}(tde(e)||t.height||t.width)&&(b.plot=!0);var ct=n.shapes;for(f=0;f1;)if(n.pop(),r=Ec(t,n.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function pdt(e,t){for(var r=0;r[G,e._ev.listeners(G)]);a=xl.newPlot(e,t,r,n).then(()=>{for(let[G,Z]of V)Z.forEach(H=>e.on(G,H));return xl.react(e,t,r,n)})}else{e.data=t||[],Ih.cleanData(e.data),e.layout=r||{},Ih.cleanLayout(e.layout),mdt(e.data,e.layout,s,l),es.supplyDefaults(e,{skipUpdateCalc:!0});var h=e._fullData,d=e._fullLayout,v=d.datarevision===void 0,x=d.transition,b=xdt(e,l,d,v,x),p=b.newDataRevision,C=_dt(e,s,h,v,x,p);if(tde(e)&&(b.layoutReplot=!0),C.calc||b.calc){e.calcdata=void 0;for(var E=Object.getOwnPropertyNames(d),A=0;A(c||e.emit("plotly_react",{config:n,data:t,layout:r}),e))}function _dt(e,t,r,n,i,a){var o=t.length===r.length;if(!i&&!o)return{fullReplot:!0,calc:!0};var s=v_.traceFlags();s.arrays={},s.nChanges=0,s.nChangesAnim=0;var l,u;function c(d){var v=BP.getTraceValObject(u,d);return!u._module.animatable&&v.anim&&(v.anim=!1),v}var f={getValObject:c,flags:s,immutable:n,transition:i,newDataRevision:a,gd:e},h={};for(l=0;l=i.length?i[0]:i[u]:i}function s(u){return Array.isArray(a)?u>=a.length?a[0]:a[u]:a}function l(u,c){var f=0;return function(){if(u&&++f===c)return u()}}return new Promise(function(u,c){function f(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var z=n._frameQueue.pop();z.onInterrupt&&z.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(z){if(z.length!==0){for(var O=0;On._timeToNext&&v()};z()}var b=0;function p(z){return Array.isArray(i)?b>=i.length?z.transitionOpts=i[b]:z.transitionOpts=i[0]:z.transitionOpts=i,b++,z}var C,E,A=[],L=t==null,_=Array.isArray(t),k=!L&&!_&&xa.isPlainObject(t);if(k)A.push({type:"object",data:p(xa.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(C=0;C0&&PP)&&T.push(E);A=T}}A.length>0?h(A):(e.emit("plotly_animated"),u())})}function wdt(e,t,r){if(e=xa.getGraphDiv(e),t==null)return Promise.resolve();if(!xa.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,i,a,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,c=[],f={};for(n=t.length-1;n>=0;n--)if(xa.isPlainObject(t[n])){var h=t[n].name,d=(l[h]||f[h]||{}).name,v=t[n].name,x=l[d]||f[d];d&&v&&typeof v=="number"&&x&&HNM.index?-1:k.index=0;n--){if(i=c[n].frame,typeof i.name=="number"&&xa.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;l[i.name="frame "+e._transitionData._counter++];);if(l[i.name]){for(a=0;a=0;r--)n=t[r],a.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:i[n]});var s=es.modifyFrames,l=es.modifyFrames,u=[e,o],c=[e,a];return np&&np.add(e,s,u,l,c),es.modifyFrames(e,a)}function Adt(e){e=xa.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return es.cleanPlot([],{},r,t),es.purge(e),jN.purge(e),t._container&&t._container.remove(),delete e._context,e}function Sdt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!xa.equalDomRects(r,t._lastBBox)){var n=t._invTransform=xa.inverseTransformMatrix(xa.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}function Mdt(e){var t=IP.select(e),r=e._fullLayout;if(r._calcInverseTransform=Sdt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var n={};IP.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=xa.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(edt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}xl.animate=bdt;xl.addFrames=wdt;xl.deleteFrames=Tdt;xl.addTraces=Zhe;xl.deleteTraces=Yhe;xl.extendTraces=Whe;xl.moveTraces=WN;xl.prependTraces=Xhe;xl.newPlot=sdt;xl._doPlot=idt;xl.purge=Adt;xl.react=ydt;xl.redraw=odt;xl.relayout=VM;xl.restyle=FP;xl.setPlotConfig=ndt;xl.update=OP;xl._guiRelayout=ZN(VM);xl._guiRestyle=ZN(FP);xl._guiUpdate=ZN(OP);xl._storeDirectGUIEdit=fdt});var Ly=ye(Mm=>{"use strict";var Edt=qa();Mm.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Mm.getRedrawFunc=function(e){return function(){Edt.getComponentMethod("colorbar","draw")(e)}};Mm.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Mm.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var rde=window.URL||window.webkitURL;Mm.createObjectURL=function(e){return rde.createObjectURL(e)};Mm.revokeObjectURL=function(e){return rde.revokeObjectURL(e)};Mm.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=Cdt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Mm.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Cdt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var KN=Oa(),kar=Dr(),kdt=So(),Ldt=Ca(),Lar=Wp(),YN=/"/g,HM="TOBESTRIPPED",Pdt=new RegExp('("'+HM+")|("+HM+'")',"g");function Idt(e){var t=KN.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":t.html(n).text()});return t.remove(),r}function Rdt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}ide.exports=function(t,r,n){var i=t._fullLayout,a=i._paper,o=i._toppaper,s=i.width,l=i.height,u;a.insert("rect",":first-child").call(kdt.setRect,0,0,s,l).call(Ldt.fill,i.paper_bgcolor);var c=i._basePlotModules||[];for(u=0;u{"use strict";var Ddt=Dr(),Fdt=vb().EventEmitter,jM=Ly();function zdt(e){var t=e.emitter||new Fdt,r=new Promise(function(n,i){var a=window.Image,o=e.svg,s=e.format||"png",l=e.canvas,u=e.scale||1,c=e.width||300,f=e.height||150,h=u*c,d=u*f,v=l.getContext("2d",{willReadFrequently:!0}),x=new a,b,p;s==="svg"||Ddt.isSafari()?p=jM.encodeSVG(o):(b=jM.createBlob(o,"svg"),p=jM.createObjectURL(b)),l.width=h,l.height=d,x.onload=function(){var C;switch(b=null,jM.revokeObjectURL(p),s!=="svg"&&v.drawImage(x,0,0,h,d),s){case"jpeg":C=l.toDataURL("image/jpeg");break;case"png":C=l.toDataURL("image/png");break;case"webp":C=l.toDataURL("image/webp");break;case"svg":C=p;break;default:var E="Image format is not jpeg, png, svg or webp.";if(i(new Error(E)),!e.promise)return t.emit("error",E)}n(C),e.promise||t.emit("success",C)},x.onerror=function(C){if(b=null,jM.revokeObjectURL(p),i(C),!e.promise)return t.emit("error",C)},x.src=p});return e.promise?r:t}nde.exports=zdt});var $N=ye((Rar,sde)=>{"use strict";var ade=Eo(),ode=UP(),Odt=Mc(),Em=Dr(),WM=Ly(),qdt=VP(),Bdt=GP(),Ndt=o6().version,JN={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Udt(e,t){t=t||{};var r,n,i,a;Em.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Em.getGraphDiv(e),r=Em.extendDeep([],e.data),n=Em.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(_){return!(_ in t)||Em.validate(t[_],JN[_])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Em.join2(JN.format.values,", "," or ")+".");var s={};function l(_,k){return Em.coerce(t,s,JN,_,k)}var u=l("format"),c=l("width"),f=l("height"),h=l("scale"),d=l("setBackground"),v=l("imageDataOnly"),x=document.createElement("div");x.style.position="absolute",x.style.left="-5000px",document.body.appendChild(x);var b=Em.extendFlat({},n);c?b.width=c:t.width===null&&ade(a.width)&&(b.width=a.width),f?b.height=f:t.height===null&&ade(a.height)&&(b.height=a.height);var p=Em.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=WM.getRedrawFunc(x);function E(){return new Promise(function(_){setTimeout(_,WM.getDelay(x._fullLayout))})}function A(){return new Promise(function(_,k){var M=qdt(x,u,h),g=x._fullLayout.width,P=x._fullLayout.height;function T(){ode.purge(x),document.body.removeChild(x)}if(u==="full-json"){var z=Odt.graphJson(x,!1,"keepdata","object",!0,!0);return z.version=Ndt,z=JSON.stringify(z),T(),_(v?z:WM.encodeJSON(z))}if(T(),u==="svg")return _(v?M:WM.encodeSVG(M));var O=document.createElement("canvas");O.id=Em.randstr(),Bdt({format:u,width:g,height:P,scale:h,canvas:O,svg:M,promise:!0}).then(_).catch(k)})}function L(_){return v?_.replace(WM.IMAGE_URL_PREFIX,""):_}return new Promise(function(_,k){ode.newPlot(x,r,b,p).then(C).then(E).then(A).then(function(M){_(L(M))}).catch(function(M){k(M)})})}sde.exports=Udt});var cde=ye((Dar,ude)=>{"use strict";var P0=Dr(),Vdt=Mc(),Gdt=_3(),Hdt=ub().dfltConfig,Lg=P0.isPlainObject,Vb=Array.isArray,QN=P0.isArrayOrTypedArray;ude.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=Gdt.get(),i=[],a={_context:P0.extendFlat({},Hdt)},o,s;Vb(t)?(a.data=P0.extendDeep([],t),o=t):(a.data=[],o=[],i.push(md("array","data"))),Lg(r)?(a.layout=P0.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&i.push(md("object","layout"))),Vdt.supplyDefaults(a);for(var l=a._fullData,u=o.length,c=0;cf.length&&n.push(md("unused",i,u.concat(f.length)));var p=f.length,C=Array.isArray(b);C&&(p=Math.min(p,b.length));var E,A,L,_,k;if(h.dimensions===2)for(A=0;Af[A].length&&n.push(md("unused",i,u.concat(A,f[A].length)));var M=f[A].length;for(E=0;E<(C?Math.min(M,b[A].length):M);E++)L=C?b[A][E]:b,_=c[A][E],k=f[A][E],P0.validate(_,L)?k!==_&&k!==+_&&n.push(md("dynamic",i,u.concat(A,E),_,k)):n.push(md("value",i,u.concat(A,E),_))}else n.push(md("array",i,u.concat(A),c[A]));else for(A=0;A{"use strict";var Jdt=Dr(),jP=Ly();function $dt(e,t,r){var n=document.createElement("a"),i="download"in n,a=new Promise(function(o,s){var l,u;if(i)return l=jP.createBlob(e,r),u=jP.createObjectURL(l),n.href=u,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),jP.revokeObjectURL(u),l=null,o(t);if(Jdt.isSafari()){var c=r==="svg"?",":";base64,";return jP.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}fde.exports=$dt});var eU=ye((Oar,vde)=>{"use strict";var dde=Dr(),Qdt=$N(),evt=hde(),zar=Ly();function tvt(e,t){var r;return dde.isPlainObject(e)||(r=dde.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(n,i){r&&r._snapshotInProgress&&i(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var a=Qdt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),evt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}vde.exports=tvt});var _de=ye(tU=>{"use strict";var Cp=Dr(),kp=Cp.isPlainObject,pde=_3(),gde=Mc(),rvt=Gl(),mde=pl(),yde=ub().dfltConfig;tU.makeTemplate=function(e){e=Cp.isPlainObject(e)?e:Cp.getGraphDiv(e),e=Cp.extendDeep({_context:yde},{data:e.data,layout:e.layout}),gde.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var n={data:{},layout:{}};t.forEach(function(d){var v={};XM(d,v,nvt.bind(null,d));var x=Cp.coerce(d,{},rvt,"type"),b=n.data[x];b||(b=n.data[x]=[]),b.push(v)}),XM(r,n.layout,ivt.bind(null,r)),delete n.layout.template;var i=r.template;if(kp(i)){var a=i.layout,o,s,l,u,c,f;kp(a)&&WP(a,n.layout);var h=i.data;if(kp(h)){for(s in n.data)if(l=h[s],Array.isArray(l)){for(c=n.data[s],f=c.length,u=l.length,o=0;op?o.push({code:"unused",traceType:d,templateCount:b,dataCount:p}):p>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:p})}}function C(E,A){for(var L in E)if(L.charAt(0)!=="_"){var _=E[L],k=I0(E,L,A);kp(_)?(Array.isArray(E)&&_._template===!1&&_.templateitemname&&o.push({code:"missing",path:k,templateitemname:_.templateitemname}),C(_,k)):Array.isArray(_)&&avt(_)&&C(_,k)}}if(C({data:l,layout:s},""),o.length)return o.map(ovt)};function avt(e){for(var t=0;t{"use strict";var Qh=UP();ef._doPlot=Qh._doPlot;ef.newPlot=Qh.newPlot;ef.restyle=Qh.restyle;ef.relayout=Qh.relayout;ef.redraw=Qh.redraw;ef.update=Qh.update;ef._guiRestyle=Qh._guiRestyle;ef._guiRelayout=Qh._guiRelayout;ef._guiUpdate=Qh._guiUpdate;ef._storeDirectGUIEdit=Qh._storeDirectGUIEdit;ef.react=Qh.react;ef.extendTraces=Qh.extendTraces;ef.prependTraces=Qh.prependTraces;ef.addTraces=Qh.addTraces;ef.deleteTraces=Qh.deleteTraces;ef.moveTraces=Qh.moveTraces;ef.purge=Qh.purge;ef.addFrames=Qh.addFrames;ef.deleteFrames=Qh.deleteFrames;ef.animate=Qh.animate;ef.setPlotConfig=Qh.setPlotConfig;var svt=OS().getGraphDiv,lvt=aP().eraseActiveShape;ef.deleteActiveShape=function(e){return lvt(svt(e))};ef.toImage=$N();ef.validate=cde();ef.downloadImage=eU();var xde=_de();ef.makeTemplate=xde.makeTemplate;ef.validateTemplate=xde.validateTemplate});var K3=ye((Nar,wde)=>{"use strict";var rU=Dr(),uvt=qa();wde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,l=uvt.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],n),a){var u=rU.minRowLength(a);o?s=Math.min(u,rU.minRowLength(o)):(s=u,i("y0"),i("dy"))}else{if(!o)return 0;s=rU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Pg=ye((Uar,Sde)=>{"use strict";var Tde=Dr().dateTick0,cvt=hs(),fvt=cvt.ONEWEEK;function Ade(e,t){return e%fvt===0?Tde(t,1):Tde(t,0)}Sde.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Ade(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Ade(s,r.ycalendar)),i("yperiodalignment"))}}});var Cde=ye((Var,Ede)=>{"use strict";var Mde=["orientation","groupnorm","stackgaps"];Ede.exports=function(t,r,n,i){var a=n._scatterStackOpts,o=i("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=a[s];l||(l=a[s]={});var u=l[o],c=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},c=!0);for(var f={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var kde=Ca(),Lde=pv().hasColorscale,Pde=Jh(),hvt=Ru();Ide.exports=function(t,r,n,i,a,o){var s=hvt.isBubble(t),l=(t.line||{}).color,u;if(o=o||{},l&&(n=l),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",n),Lde(t,"marker")&&Pde(t,r,i,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=kde.background:u=kde.defaultLine,a("marker.line.color",u),Lde(t,"marker.line")&&Pde(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0)),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var c=a("marker.gradient.type");c!=="none"&&a("marker.gradient.color")}}});var R0=ye((Har,Rde)=>{"use strict";var dvt=Dr().isArrayOrTypedArray,vvt=pv().hasColorscale,pvt=Jh();Rde.exports=function(t,r,n,i,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",n),vvt(t,"line"))pvt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var l=(dvt(s)?!1:s)||n;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var J3=ye((jar,Dde)=>{"use strict";Dde.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var D0=ye((War,Fde)=>{"use strict";var gvt=Dr();Fde.exports=function(e,t,r,n,i){i=i||{},n("textposition"),gvt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Ig=ye((Xar,Ode)=>{"use strict";var ZP=Ca(),zde=Dr().isArrayOrTypedArray;function mvt(e){for(var t=ZP.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var qde=Dr(),yvt=qa(),_vt=pf(),xvt=Sm(),$3=Ru(),bvt=K3(),wvt=Pg(),Tvt=Cde(),Avt=$p(),Svt=R0(),Bde=J3(),Mvt=D0(),Evt=Ig(),Cvt=Dr().coercePattern;Nde.exports=function(t,r,n,i){function a(d,v){return qde.coerce(t,r,_vt,d,v)}var o=bvt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){wvt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=Tvt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var kvt=Bb().getAxisGroup;Vde.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=kvt(n,s)+o,u=n._alignmentOpts||{},c=i("alignmentgroup"),f=u[l];f||(f=u[l]={});var h=f[c];h?h.traces.push(r):h=f[c]={traces:[r],alignmentIndex:Object.keys(f).length,offsetGroups:{}};var d=i("offsetgroup")||"",v=h.offsetGroups,x=v[d];r._offsetIndex=0,(a!=="group"||d)&&(x||(x=v[d]={offsetIndex:Object.keys(v).length}),r._offsetIndex=x.offsetIndex)}});var iU=ye((Kar,Gde)=>{"use strict";var Lvt=Dr(),Pvt=Gb(),Ivt=pf();Gde.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return Lvt.coerce(i._input,i,Ivt,h)}if(r.scattermode==="group")for(a=0;a=0;c--){var f=t[c];if(f.type==="scatter"&&f.xaxis===l.xaxis&&f.yaxis===l.yaxis){f.opacity=void 0;break}}}}}});var jde=ye((Jar,Hde)=>{"use strict";var Rvt=Dr(),Dvt=j6();Hde.exports=function(e,t){function r(i,a){return Rvt.coerce(e,t,Dvt,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var Rg=ye(($ar,Xde)=>{"use strict";var Fvt=Eo(),Wde=Dr(),zvt=Wde.dateTime2ms,YP=Wde.incrementMonth,Ovt=hs(),qvt=Ovt.ONEAVGMONTH;Xde.exports=function(t,r,n,i){if(r.type!=="date")return{vals:i};var a=t[n+"periodalignment"];if(!a)return{vals:i};var o=t[n+"period"],s;if(Fvt(o)){if(o=+o,o<=0)return{vals:i}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:i}}for(var u=r.calendar,c=a==="start",f=a==="end",h=t[n+"period0"],d=zvt(h,u)||0,v=[],x=[],b=[],p=i.length,C=0;CE;)_=YP(_,-s,u);for(;_<=E;)_=YP(_,s,u);L=YP(_,-s,u)}else{for(A=Math.round((E-d)/o),_=d+A*o;_>E;)_-=o;for(;_<=E;)_+=o;L=_-o}v[C]=c?L:f?_:(L+_)/2,x[C]=L,b[C]=_}return{vals:v,starts:x,ends:b}}});var F0=ye((Qar,Yde)=>{"use strict";var nU=pv().hasColorscale,aU=gv(),Zde=Ru();Yde.exports=function(t,r){Zde.hasLines(r)&&nU(r,"line")&&aU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),Zde.hasMarkers(r)&&(nU(r,"marker")&&aU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),nU(r,"marker.line")&&aU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Cm=ye((eor,Kde)=>{"use strict";var Yf=Dr();Kde.exports=function(t,r){for(var n=0;n{"use strict";var Jde=Dr();$de.exports=function(t,r){Jde.isArrayOrTypedArray(r.selectedpoints)&&Jde.tagSelected(t,r)}});var O0=ye((ror,ave)=>{"use strict";var Qde=Eo(),sU=Dr(),ZM=ho(),eve=Rg(),oU=hs().BADNUM,lU=Ru(),Bvt=F0(),Nvt=Cm(),Uvt=z0();function Vvt(e,t){var r=e._fullLayout,n=t._xA=ZM.getFromId(e,t.xaxis||"x","x"),i=t._yA=ZM.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=eve(t,n,"x",a),l=eve(t,i,"y",o),u=s.vals,c=l.vals,f=t._length,h=new Array(f),d=t.ids,v=uU(t,r,n,i),x=!1,b,p,C,E,A,L;ive(r,t);var _="x",k="y",M;if(v)sU.pushUnique(v.traceIndices,t.index),b=v.orientation==="v",b?(k="s",M="x"):(_="s",M="y"),A=v.stackgaps==="interpolate";else{var g=rve(t,f);tve(e,t,n,i,u,c,g)}var P=!!t.xperiodalignment,T=!!t.yperiodalignment;for(p=0;pp&&h[E].gap;)E--;for(L=h[E].s,C=h.length-1;C>E;C--)h[C].s=L;for(;p{"use strict";ove.exports=KP;var Gvt=Dr().distinctVals;function KP(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,n=t.posAxis._id.charAt(0),i=[],a=0;a{"use strict";var q0=Eo(),p_=Dr().isArrayOrTypedArray,Q3=hs().BADNUM,Hvt=qa(),YM=ho(),jvt=Bb().getAxisGroup,JP=sve();function Wvt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!q0(s))}for(var c=0;c{"use strict";var hve=O0(),dve=Hb().setGroupPositions;function npt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ug[c]&&c{"use strict";var opt=So(),_ve=hs(),KM=_ve.BADNUM,xve=_ve.LOG_CLIP,gve=xve+.5,mve=xve-.5,$P=Dr(),spt=$P.segmentsIntersect,yve=$P.constrain,pU=Sm();bve.exports=function(t,r){var n=r.trace||{},i=r.xaxis,a=r.yaxis,o=i.type==="log",s=a.type==="log",l=i._length,u=a._length,c=r.backoff,f=n.marker,h=r.connectGaps,d=r.baseTolerance,v=r.shape,x=v==="linear",b=n.fill&&n.fill!=="none",p=[],C=pU.minTolerance,E=t.length,A=new Array(E),L=0,_,k,M,g,P,T,z,O,V,G,Z,H,N,j,re,oe;function _e(dt){var Ge=t[dt];if(!Ge)return!1;var Je=r.linearized?i.l2p(Ge.x):i.c2p(Ge.x),je=r.linearized?a.l2p(Ge.y):a.c2p(Ge.y);if(Je===KM){if(o&&(Je=i.c2p(Ge.x,!0)),Je===KM)return!1;s&&je===KM&&(Je*=Math.abs(i._m*u*(i._m>0?gve:mve)/(a._m*l*(a._m>0?gve:mve)))),Je*=1e3}if(je===KM){if(s&&(je=a.c2p(Ge.y,!0)),je===KM)return!1;je*=1e3}return[Je,je]}function Me(dt,Ge,Je,je){var $e=Je-dt,wt=je-Ge,Ie=.5-dt,xe=.5-Ge,Ce=$e*$e+wt*wt,vt=$e*Ie+wt*xe;if(vt>0&&vt1||Math.abs(Ie.y-Je[0][1])>1)&&(Ie=[Ie.x,Ie.y],je&&Se(Ie,dt)De||dt[1]ge)return[yve(dt[0],Ae,De),yve(dt[1],Pe,ge)]}function Nt(dt,Ge){if(dt[0]===Ge[0]&&(dt[0]===Ae||dt[0]===De)||dt[1]===Ge[1]&&(dt[1]===Pe||dt[1]===ge))return!0}function $t(dt,Ge){var Je=[],je=Gt(dt),$e=Gt(Ge);return je&&$e&&Nt(je,$e)||(je&&Je.push(je),$e&&Je.push($e)),Je}function sr(dt,Ge,Je){return function(je,$e){var wt=Gt(je),Ie=Gt($e),xe=[];if(wt&&Ie&&Nt(wt,Ie))return xe;wt&&xe.push(wt),Ie&&xe.push(Ie);var Ce=2*$P.constrain((je[dt]+$e[dt])/2,Ge,Je)-((wt||je)[dt]+(Ie||$e)[dt]);if(Ce){var vt;wt&&Ie?vt=Ce>0==wt[dt]>Ie[dt]?wt:Ie:vt=wt||Ie,vt[dt]+=Ce}return xe}}var wr;v==="linear"||v==="spline"?wr=lt:v==="hv"||v==="vh"?wr=$t:v==="hvh"?wr=sr(0,Ae,De):v==="vhv"&&(wr=sr(1,Pe,ge));function ur(dt,Ge){var Je=Ge[0]-dt[0],je=(Ge[1]-dt[1])/Je,$e=(dt[1]*Ge[0]-Ge[1]*dt[0])/Je;return $e>0?[je>0?Ae:De,ge]:[je>0?De:Ae,Pe]}function Qe(dt){var Ge=dt[0],Je=dt[1],je=Ge===A[L-1][0],$e=Je===A[L-1][1];if(!(je&&$e))if(L>1){var wt=Ge===A[L-2][0],Ie=Je===A[L-2][1];je&&(Ge===Ae||Ge===De)&&wt?Ie?L--:A[L-1]=dt:$e&&(Je===Pe||Je===ge)&&Ie?wt?L--:A[L-1]=dt:A[L++]=dt}else A[L++]=dt}function Et(dt){A[L-1][0]!==dt[0]&&A[L-1][1]!==dt[1]&&Qe([ct,pt]),Qe(dt),Wt=null,ct=pt=0}var er=$P.isArrayOrTypedArray(f);function Ut(dt){if(dt&&c&&(dt.i=_,dt.d=t,dt.trace=n,dt.marker=er?f[dt.i]:f,dt.backoff=c),ke=dt[0]/l,me=dt[1]/u,ce=dt[0]De?De:0,Ze=dt[1]ge?ge:0,ce||Ze){if(!L)A[L++]=[ce||dt[0],Ze||dt[1]];else if(Wt){var Ge=wr(Wt,dt);Ge.length>1&&(Et(Ge[0]),A[L++]=Ge[1])}else st=wr(A[L-1],dt)[0],A[L++]=st;var Je=A[L-1];ce&&Ze&&(Je[0]!==ce||Je[1]!==Ze)?(Wt&&(ct!==ce&&pt!==Ze?Qe(ct&&pt?ur(Wt,dt):[ct||ce,pt||Ze]):ct&&pt&&Qe([ct,pt])),Qe([ce,Ze])):ct-ce&&pt-Ze&&Qe([ce||ct,Ze||pt]),Wt=dt,ct=ce,pt=Ze}else Wt&&Et(wr(Wt,dt)[0]),A[L++]=dt}for(_=0;_ie(T,Ft))break;M=T,N=V[0]*O[0]+V[1]*O[1],N>Z?(Z=N,g=T,z=!1):N=t.length||!T)break;Ut(T),k=T}}Wt&&Qe([ct||Wt[0],pt||Wt[1]]),p.push(A.slice(0,L))}var bt=v.slice(v.length-1);if(c&&bt!=="h"&&bt!=="v"){for(var yt=!1,Yt=-1,lr=[],Tr=0;Tr{"use strict";var wve={tonextx:1,tonexty:1,tonext:1};Tve.exports=function(t,r,n){var i,a,o,s,l,u={},c=!1,f=-1,h=0,d=-1;for(a=0;a=0?l=d:(l=d=h,h++),l{"use strict";var Dg=Oa(),lpt=qa(),JM=Dr(),tT=JM.ensureSingle,Sve=JM.identity,Kf=So(),rT=Ru(),upt=gU(),cpt=mU(),QP=MM().tester;Mve.exports=function(t,r,n,i,a,o){var s,l,u=!a,c=!!a&&a.duration>0,f=cpt(t,r,n);if(s=i.selectAll("g.trace").data(f,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),fpt(t,s,r),c){o&&(l=o());var h=Dg.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});h.each(function(){i.selectAll("g.trace").each(function(d,v){Ave(t,v,r,d,f,this,a)})})}else s.each(function(d,v){Ave(t,v,r,d,f,this,a)});u&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function fpt(e,t,r){t.each(function(n){var i=tT(Dg.select(this),"g","fills");Kf.setClipUrl(i,r.layerClipId,e);var a=n[0].trace,o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=i.selectAll("g").data(o,Sve);s.enter().append("g"),s.exit().each(function(l){a[l]=null}).remove(),s.order().each(function(l){a[l]=tT(Dg.select(this),"path","js-fill")})})}function Ave(e,t,r,n,i,a,o){var s=e._context.staticPlot,l;hpt(e,t,r,n,i);var u=!!o&&o.duration>0;function c(sr){return u?sr.transition():sr}var f=r.xaxis,h=r.yaxis,d=n[0].trace,v=d.line,x=Dg.select(a),b=tT(x,"g","errorbars"),p=tT(x,"g","lines"),C=tT(x,"g","points"),E=tT(x,"g","text");if(lpt.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;c(x).style("opacity",d.opacity);var A,L,_=d.fill.charAt(d.fill.length-1);_!=="x"&&_!=="y"&&(_="");var k,M;_==="y"?(k=1,M=h.c2p(0,!0)):_==="x"&&(k=0,M=f.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=x;var g="",P=[],T=d._prevtrace,z=null,O=null;T&&(g=T._prevRevpath||"",L=T._nextFill,P=T._ownPolygons,z=T._fillsegments,O=T._fillElement);var V,G,Z="",H="",N,j,re,oe,_e,Me,ke=[];d._polygons=[];var me=[],ie=[],Se=JM.noop;if(A=d._ownFill,rT.hasLines(d)||d.fill!=="none"){L&&L.datum(n),["hv","vh","hvh","vhv"].indexOf(v.shape)!==-1?(N=Kf.steps(v.shape),j=Kf.steps(v.shape.split("").reverse().join(""))):v.shape==="spline"?N=j=function(sr){var wr=sr[sr.length-1];return sr.length>1&&sr[0][0]===wr[0]&&sr[0][1]===wr[1]?Kf.smoothclosed(sr.slice(1),v.smoothing):Kf.smoothopen(sr,v.smoothing)}:N=j=function(sr){return"M"+sr.join("L")},re=function(sr){return j(sr.reverse())},ie=upt(n,{xaxis:f,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(v.width||1,3)/4,shape:v.shape,backoff:v.backoff,simplify:v.simplify,fill:d.fill}),me=new Array(ie.length);var Le=0;for(l=0;l=s[0]&&x.x<=s[1]&&x.y>=l[0]&&x.y<=l[1]}),h=Math.ceil(f.length/c),d=0;i.forEach(function(x,b){var p=x[0].trace;rT.hasMarkers(p)&&p.marker.maxdisplayed>0&&b{"use strict";Eve.exports={container:"marker",min:"cmin",max:"cmax"}});var tI=ye((cor,Cve)=>{"use strict";var eI=ho();Cve.exports=function(t,r,n){var i={},a={_fullLayout:n},o=eI.getFromTrace(a,r,"x"),s=eI.getFromTrace(a,r,"y"),l=t.orig_x;l===void 0&&(l=t.x);var u=t.orig_y;return u===void 0&&(u=t.y),i.xLabel=eI.tickText(o,o.c2l(l),!0).text,i.yLabel=eI.tickText(s,s.c2l(u),!0).text,i}});var ap=ye((hor,kve)=>{"use strict";var yU=Oa(),nT=So(),dpt=qa();function vpt(e){var t=yU.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var n=yU.select(this),i=r.trace||r[0].trace;_U(n,i,e)}),t.selectAll("g.text").each(function(r){var n=yU.select(this),i=r.trace||r[0].trace;xU(n,i,e)}),t.selectAll("g.trace path.js-line").call(nT.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(nT.fillGroupStyle,e,!1),dpt.getComponentMethod("errorbars","style")(t)}function _U(e,t,r){nT.pointStyle(e.selectAll("path.point"),t,r)}function xU(e,t,r){nT.textPointStyle(e.selectAll("text"),t,r)}function ppt(e,t,r){var n=t[0].trace;n.selectedpoints?(nT.selectedPointStyle(r.selectAll("path.point"),n),nT.selectedTextStyle(r.selectAll("text"),n)):(_U(r,n,e),xU(r,n,e))}kve.exports={style:vpt,stylePoints:_U,styleText:xU,styleOnSelect:ppt}});var oT=ye((dor,Lve)=>{"use strict";var aT=Ca(),gpt=Ru();Lve.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&aT.opacity(n)?n:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return i=a&&aT.opacity(a)?a:o&&aT.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?aT.opacity(i)<.3?aT.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&aT.opacity(n)&&gpt.hasLines(t)&&t.line.width?n:t.fillcolor)}});var sT=ye((vor,Ive)=>{"use strict";var rI=Dr(),Pve=vf(),mpt=qa(),ypt=oT(),bU=Ca(),_pt=rI.fillText;Ive.exports=function(t,r,n,i){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(n),f=[u,c],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,v=!!o.xperiodalignment,x=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(H){if(v){var N=s.c2p(H.xStart),j=s.c2p(H.xEnd);return u>=Math.min(N,j)&&u<=Math.max(N,j)?0:1/0}var re=Math.max(3,H.mrc||0),oe=1-1/re,_e=Math.abs(s.c2p(H.x)-u);return _e=Math.min(N,j)&&c<=Math.max(N,j)?0:1/0}var re=Math.max(3,H.mrc||0),oe=1-1/re,_e=Math.abs(l.c2p(H.y)-c);return _eke!=ge>=ke&&(Ae=Se[ie-1][0],De=Se[ie][0],ge-Pe&&(Le=Ae+(De-Ae)*(ke-Pe)/(ge-Pe),re=Math.min(re,Le),oe=Math.max(oe,Le)));return re=Math.max(re,0),oe=Math.min(oe,s._length),{x0:re,x1:oe,y0:ke,y1:ke}}if(h.indexOf("fills")!==-1&&o._fillElement){var V=z(o._fillElement)&&!z(o._fillExclusionElement);if(V){var G=O(o._polygons);G===null&&(G={x0:f[0],x1:f[0],y0:f[1],y1:f[1]});var Z=bU.defaultLine;return bU.opacity(o.fillcolor)?Z=o.fillcolor:bU.opacity((o.line||{}).color)&&(Z=o.line.color),rI.extendFlat(t,{distance:t.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:Z,hovertemplate:!1}),delete t.index,o.text&&!rI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var lT=ye((por,Dve)=>{"use strict";var Rve=Ru();Dve.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h=!Rve.hasMarkers(s)&&!Rve.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";Fve.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var TU=ye((mor,Bve)=>{"use strict";var $M=qa().traceIs,wU=L3();Bve.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(xpt(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function xpt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=bpt(t,r,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=n+"calendar",s=a[o],l={noMultiCategory:!$M(a,"cartesian")||$M(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,qve(a,n)){var u=Ove(a),c=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(qve(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function Ove(e){return{v:"x",h:"y"}[e.orientation||"v"]}function qve(e,t){var r=Ove(e),n=$M(e,"box-violin"),i=$M(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var iI=ye((yor,Nve)=>{"use strict";var wpt=vv().isTypedArraySpec;function Tpt(e,t){var r=t.dataAttr||e._id.charAt(0),n={},i,a,o;if(t.axData)i=t.axData;else for(i=[],a=0;a0||wpt(a),s;o&&(s="array");var l=n("categoryorder",s),u;l==="array"&&(u=n("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=Tpt(r,i).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var QM=ye((_or,Vve)=>{"use strict";var Uve=cd().mix,Apt=Eh(),Spt=Dr();Vve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(M,g){return Spt.coerce2(t,r,i.attributes,M,g)}var s=o("linecolor",a),l=o("linewidth"),u=n("showline",i.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var c=Uve(a,i.bgColor,i.blend||Apt.lightFraction).toRgbString(),f=o("gridcolor",c),h=o("gridwidth"),d=o("griddash"),v=n("showgrid",i.showGrid||!!f||!!h||!!d);if(v||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),i.hasMinor){var x=Uve(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",x),p=o("minor.gridwidth",r.gridwidth||1),C=o("minor.griddash",r.griddash||"solid"),E=n("minor.showgrid",!!b||!!p||!!C);E||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!i.noZeroLine){var A=o("zerolinelayer"),L=o("zerolinecolor",a),_=o("zerolinewidth"),k=n("zeroline",i.showGrid||!!L||!!_);k||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var t4=ye((xor,Zve)=>{"use strict";var Gve=Eo(),Mpt=qa(),e4=Dr(),Ept=pl(),Cpt=Yd(),AU=Rd(),Hve=xb(),jve=T3(),kpt=e_(),Lpt=t_(),Ppt=iI(),Ipt=QM(),Rpt=mB(),Wve=ym(),nI=hd().WEEKDAY_PATTERN,Dpt=hd().HOUR_PATTERN;Zve.exports=function(t,r,n,i,a){var o=i.letter,s=i.font||{},l=i.splomStash||{},u=n("visible",!i.visibleDflt),c=r._template||{},f=r.type||c.type||"-",h;if(f==="date"){var d=Mpt.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",i.calendar),i.noTicklabelmode||(h=n("ticklabelmode"))}!i.noTicklabelindex&&(f==="date"||f==="linear")&&n("ticklabelindex");var v="";(!i.noTicklabelposition||f==="multicategory")&&(v=e4.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),i.noTicklabeloverflow||n("ticklabeloverflow",v.indexOf("inside")!==-1?"hide past domain":f==="category"||f==="multicategory"?"allow":"hide past div"),Wve(r,a),Rpt(t,r,n,i),Ppt(t,r,n,i),i.noHover||(f!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var x=n("color"),b=x!==AU.color.dflt?x:s.color,p=l.label||a._dfltTitle[o];if(Lpt(t,r,n,f,i),!u)return r;n("title.text",p),e4.coerceFont(n,"title.font",s,{overrideDflt:{size:e4.bigFont(s.size),color:b}}),Hve(t,r,n,f);var C=i.hasMinor;if(C&&(Ept.newContainer(r,"minor"),Hve(t,r,n,f,{isMinor:!0})),kpt(t,r,n,f,i),jve(t,r,n,i),C){var E=i.isMinor;i.isMinor=!0,jve(t,r,n,i),i.isMinor=E}Ipt(t,r,n,{dfltColor:x,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:C,attributes:AU}),C&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var A=f==="multicategory";if(!i.noTickson&&(f==="category"||A)&&(r.ticks||r.showgrid)&&(A?(n("tickson","boundaries"),delete r.ticklabelposition):n("tickson")),A){var L=n("showdividers");L&&(n("dividercolor"),n("dividerwidth"))}if(f==="date")if(Cpt(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Fpt}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var _=0;_=2){var o="",s,l;if(a.length===2){for(s=0;s<2;s++)if(l=Xve(a[s]),l){o=nI;break}}var u=n("pattern",o);if(u===nI)for(s=0;s<2;s++)l=Xve(a[s]),l&&(t.bounds[s]=a[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=a[s],u){case nI:if(!Gve(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=a[s]=l;break;case Dpt:if(!Gve(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=a[s]=l;break}if(r.autorange===!1){var c=r.range;if(c[0]c[1]){t.enabled=!1;return}}else if(a[0]>c[0]&&a[1]{"use strict";var Opt=Eo(),aI=Dr();Yve.exports=function(t,r,n,i){var a=i.counterAxes||[],o=i.overlayableAxes||[],s=i.letter,l=i.grid,u=i.overlayingDomain,c,f,h,d,v,x;l&&(f=l._domains[s][l._axisMap[r._id]],c=l._anchors[r._id],f&&(h=l[s+"side"].split(" ")[0],d=l.domain[s][h==="right"||h==="top"?1:0])),f=f||[0,1],c=c||(Opt(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,v=0,x=!1;var b=aI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:c}},"anchor"),p=aI.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(s==="y"){var C=n("autoshift");C&&(d=p==="left"?u[0]:u[1],x=r.automargin?r.automargin:!0,v=p==="left"?-3:3),n("shift",v)}n("position",d)}n("automargin",x);var E=!1;if(o.length&&(E=aI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!E){var A=n("domain",f);A[0]>A[1]-1/4096&&(r.domain=f),aI.noneOrAll(t.domain,r.domain,f),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var npe=ye((wor,ipe)=>{"use strict";var jb=Dr(),Kve=Ca(),qpt=rp().isUnifiedHover,Bpt=VB(),Jve=pl(),Npt=s3(),$ve=Rd(),Upt=TU(),Qve=t4(),Vpt=Bb(),epe=oI(),MU=hf(),km=MU.id2name,tpe=MU.name2id,Gpt=hd().AX_ID_PATTERN,rpe=qa(),sI=rpe.traceIs,SU=rpe.getComponentMethod;function lI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}ipe.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},l={},u={},c={},f={},h={},d={},v={},x,b;for(x=0;x{"use strict";var Hpt=Oa(),ape=qa(),uI=Dr(),Qp=So(),cI=ho();ope.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){cI.redrawComponents(t);return}function o(b){var p=b.xaxis,C=b.yaxis;a._defs.select("#"+b.clipId+"> rect").call(Qp.setTranslate,0,0).call(Qp.setScale,1,1),b.plot.call(Qp.setTranslate,p._offset,C._offset).call(Qp.setScale,1,1);var E=b.plot.selectAll(".scatterlayer .trace");E.selectAll(".point").call(Qp.setPointGroupScale,1,1),E.selectAll(".textpoint").call(Qp.setTextPointsScale,1,1),E.call(Qp.hideOutsideRangePoints,b)}function s(b,p){var C=b.plotinfo,E=C.xaxis,A=C.yaxis,L=E._length,_=A._length,k=!!b.xr1,M=!!b.yr1,g=[];if(k){var P=uI.simpleMap(b.xr0,E.r2l),T=uI.simpleMap(b.xr1,E.r2l),z=P[1]-P[0],O=T[1]-T[0];g[0]=(P[0]*(1-p)+p*T[0]-P[0])/(P[1]-P[0])*L,g[2]=L*(1-p+p*O/z),E.range[0]=E.l2r(P[0]*(1-p)+p*T[0]),E.range[1]=E.l2r(P[1]*(1-p)+p*T[1])}else g[0]=0,g[2]=L;if(M){var V=uI.simpleMap(b.yr0,A.r2l),G=uI.simpleMap(b.yr1,A.r2l),Z=V[1]-V[0],H=G[1]-G[0];g[1]=(V[1]*(1-p)+p*G[1]-V[1])/(V[0]-V[1])*_,g[3]=_*(1-p+p*H/Z),A.range[0]=E.l2r(V[0]*(1-p)+p*G[0]),A.range[1]=A.l2r(V[1]*(1-p)+p*G[1])}else g[1]=0,g[3]=_;cI.drawOne(t,E,{skipTitle:!0}),cI.drawOne(t,A,{skipTitle:!0}),cI.redrawComponents(t,[E._id,A._id]);var N=k?L/g[2]:1,j=M?_/g[3]:1,re=k?g[0]:0,oe=M?g[1]:0,_e=k?g[0]/g[2]*L:0,Me=M?g[1]/g[3]*_:0,ke=E._offset-_e,me=A._offset-Me;C.clipRect.call(Qp.setTranslate,re,oe).call(Qp.setScale,1/N,1/j),C.plot.call(Qp.setTranslate,ke,me).call(Qp.setScale,N,j),Qp.setPointGroupScale(C.zoomScalePts,1/N,1/j),Qp.setTextPointsScale(C.zoomScaleTxt,1/N,1/j)}var l;i&&(l=i());function u(){for(var b={},p=0;pn.duration?(u(),d=window.cancelAnimationFrame(x)):d=window.requestAnimationFrame(x)}return f=Date.now(),d=window.requestAnimationFrame(x),Promise.resolve()}});var vh=ye(xv=>{"use strict";var hI=Oa(),lpe=qa(),Wb=Dr(),jpt=Mc(),Wpt=So(),upe=Id().getModuleCalcData,g_=hf(),Fg=hd(),Xpt=Wp(),iu=Wb.ensureSingle;function fI(e,t,r){return Wb.ensureSingle(e,t,r,function(n){n.datum(r)})}var Xb=Fg.zindexSeparator;xv.name="cartesian";xv.attr=["xaxis","yaxis"];xv.idRoot=["x","y"];xv.idRegex=Fg.idRegex;xv.attrRegex=Fg.attrRegex;xv.attributes=zve();xv.layoutAttributes=Rd();xv.supplyLayoutDefaults=npe();xv.transitionAxes=spe();xv.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,i=r.yaxis,a=r.cartesian,o=a,s={},l={},u,c,f;for(u=0;u0){var d=h.id;if(d.indexOf(Xb)!==-1)continue;d+=Xb+(u+1),h=Wb.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var v=[],x,b=0;b1&&(L+=Xb+A),E.push(s+L),o=0;o1,f=t.mainplotinfo;if(!t.mainplot||c)if(u)t.xlines=iu(n,"path","xlines-above"),t.ylines=iu(n,"path","ylines-above"),t.xaxislayer=iu(n,"g","xaxislayer-above"),t.yaxislayer=iu(n,"g","yaxislayer-above");else{if(!o){var h=iu(n,"g","layer-subplot");t.shapelayer=iu(h,"g","shapelayer"),t.imagelayer=iu(h,"g","imagelayer"),f&&c?(t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer):(t.minorGridlayer=iu(n,"g","minor-gridlayer"),t.gridlayer=iu(n,"g","gridlayer"),t.zerolinelayer=iu(n,"g","zerolinelayer"));var d=iu(n,"g","layer-between");t.shapelayerBetween=iu(d,"g","shapelayer"),t.imagelayerBetween=iu(d,"g","imagelayer"),iu(n,"path","xlines-below"),iu(n,"path","ylines-below"),t.overlinesBelow=iu(n,"g","overlines-below"),iu(n,"g","xaxislayer-below"),iu(n,"g","yaxislayer-below"),t.overaxesBelow=iu(n,"g","overaxes-below")}t.overplot=iu(n,"g","overplot"),t.plot=iu(t.overplot,"g",i),f&&c?t.zerolinelayerAbove=f.zerolinelayerAbove:t.zerolinelayerAbove=iu(n,"g","zerolinelayer-above"),o||(t.xlines=iu(n,"path","xlines-above"),t.ylines=iu(n,"path","ylines-above"),t.overlinesAbove=iu(n,"g","overlines-above"),iu(n,"g","xaxislayer-above"),iu(n,"g","yaxislayer-above"),t.overaxesAbove=iu(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+s),t.ylines=n.select(".ylines-"+l),t.xaxislayer=n.select(".xaxislayer-"+s),t.yaxislayer=n.select(".yaxislayer-"+l))}else{var v=f.plotgroup,x=i+"-x",b=i+"-y";t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer,t.zerolinelayerAbove=f.zerolinelayerAbove,iu(f.overlinesBelow,"path",x),iu(f.overlinesBelow,"path",b),iu(f.overaxesBelow,"g",x),iu(f.overaxesBelow,"g",b),t.plot=iu(f.overplot,"g",i),iu(f.overlinesAbove,"path",x),iu(f.overlinesAbove,"path",b),iu(f.overaxesAbove,"g",x),iu(f.overaxesAbove,"g",b),t.xlines=v.select(".overlines-"+s).select("."+x),t.ylines=v.select(".overlines-"+l).select("."+b),t.xaxislayer=v.select(".overaxes-"+s).select("."+x),t.yaxislayer=v.select(".overaxes-"+l).select("."+b)}o||(u||(fI(t.minorGridlayer,"g",t.xaxis._id),fI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(p){return p[0]}).sort(g_.idSort),fI(t.gridlayer,"g",t.xaxis._id),fI(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(p){return p[0]}).sort(g_.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function hpe(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=hI.select(this);c.remove(),dpe(u,t),r[u]=!0});for(var n in t._plots)for(var i=t._plots[n],a=i.overlays||[],o=0;o{"use strict";var dI=Ru();vpe.exports={hasLines:dI.hasLines,hasMarkers:dI.hasMarkers,hasText:dI.hasText,isBubble:dI.isBubble,attributes:pf(),layoutAttributes:j6(),supplyDefaults:Ude(),crossTraceDefaults:iU(),supplyLayoutDefaults:jde(),calc:O0().calc,crossTraceCalc:pve(),arraysToCalcdata:Cm(),plot:iT(),colorbar:$d(),formatLabels:tI(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:sT(),selectPoints:lT(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:vh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var ype=ye((Mor,mpe)=>{"use strict";var Ypt=Oa(),Kpt=Ca(),gpe=LN(),EU=Dr(),Jpt=EU.strScale,$pt=EU.strRotate,Qpt=EU.strTranslate;mpe.exports=function(t,r,n){var i=t.node(),a=gpe[n.arrowhead||0],o=gpe[n.startarrowhead||0],s=(n.arrowwidth||1)*(n.arrowsize||1),l=(n.arrowwidth||1)*(n.startarrowsize||1),u=r.indexOf("start")>=0,c=r.indexOf("end")>=0,f=a.backoff*s+n.standoff,h=o.backoff*l+n.startstandoff,d,v,x,b;if(i.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},v={x:+t.attr("x2"),y:+t.attr("y2")};var p=d.x-v.x,C=d.y-v.y;if(x=Math.atan2(C,p),b=x+Math.PI,f&&h&&f+h>Math.sqrt(p*p+C*C)){V();return}if(f){if(f*f>p*p+C*C){V();return}var E=f*Math.cos(x),A=f*Math.sin(x);v.x+=E,v.y+=A,t.attr({x2:v.x,y2:v.y})}if(h){if(h*h>p*p+C*C){V();return}var L=h*Math.cos(x),_=h*Math.sin(x);d.x-=L,d.y-=_,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var k=i.getTotalLength(),M="";if(k{"use strict";var _pe=Oa(),CU=qa(),e0t=Mc(),y_=Dr(),kU=y_.strTranslate,i4=ho(),Zb=Ca(),Py=So(),xpe=vf(),LU=ru(),PU=Tg(),r4=yv(),t0t=pl().arrayEditor,r0t=ype();Tpe.exports={draw:i0t,drawOne:bpe,drawRaw:wpe};function i0t(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?$e="right":$e="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[$e]}for(var Pe=!1,ge=["x","y"],Fe=0;Fe1)&&(ct===Ze?(Ft=pt.r2fraction(t["a"+ce]),(Ft<0||Ft>1)&&(Pe=!0)):Pe=!0),wr=pt._offset+pt.r2p(t[ce]),Et=.5}else{var bt=Ut==="domain";ce==="x"?(Qe=t[ce],wr=bt?pt._offset+pt._length*Qe:wr=s.l+s.w*Qe):(Qe=1-t[ce],wr=bt?pt._offset+pt._length*Qe:wr=s.t+s.h*Qe),Et=t.showarrow?.5:Qe}if(t.showarrow){sr.head=wr;var yt=t["a"+ce];if(er=st*De(.5,t.xanchor)-lt*De(.5,t.yanchor),ct===Ze){var Yt=i4.getRefType(ct);Yt==="domain"?(ce==="y"&&(yt=1-yt),sr.tail=pt._offset+pt._length*yt):Yt==="paper"?ce==="y"?(yt=1-yt,sr.tail=s.t+s.h*yt):sr.tail=s.l+s.w*yt:sr.tail=pt._offset+pt.r2p(yt),ur=er}else sr.tail=wr+yt,ur=er+yt;sr.text=sr.tail+er;var lr=o[ce==="x"?"width":"height"];if(Ze==="paper"&&(sr.head=y_.constrain(sr.head,1,lr-1)),ct==="pixel"){var Tr=-Math.max(sr.tail-3,sr.text),Rr=Math.min(sr.tail+3,sr.text)-lr;Tr>0?(sr.tail+=Tr,sr.text+=Tr):Rr>0&&(sr.tail-=Rr,sr.text-=Rr)}sr.tail+=$t,sr.head+=$t}else er=Gt*De(Et,Nt),ur=er,sr.text=wr+er;sr.text+=$t,er+=$t,ur+=$t,t["_"+ce+"padplus"]=Gt/2+ur,t["_"+ce+"padminus"]=Gt/2-ur,t["_"+ce+"size"]=Gt,t["_"+ce+"shift"]=er}if(Pe){k.remove();return}var ei=0,Wr=0;if(t.align!=="left"&&(ei=(ie-ke)*(t.align==="center"?.5:1)),t.valign!=="top"&&(Wr=(Se-me)*(t.valign==="middle"?.5:1)),_e)oe.select("svg").attr({x:P+ei-1,y:P+Wr}).call(Py.setClipUrl,z?x:null,e);else{var Ur=P+Wr-Me.top,dt=P+ei-Me.left;Z.call(LU.positionText,dt,Ur).call(Py.setClipUrl,z?x:null,e)}O.select("rect").call(Py.setRect,P,P,ie,Se),T.call(Py.setRect,M/2,M/2,Le-M,Ae-M),k.call(Py.setTranslate,Math.round(b.x.text-Le/2),Math.round(b.y.text-Ae/2)),E.attr({transform:"rotate("+p+","+b.x.text+","+b.y.text+")"});var Ge=function(je,$e){C.selectAll(".annotation-arrow-g").remove();var wt=b.x.head,Ie=b.y.head,xe=b.x.tail+je,Ce=b.y.tail+$e,vt=b.x.text+je,nr=b.y.text+$e,ir=y_.rotationXYMatrix(p,vt,nr),pr=y_.apply2DTransform(ir),oi=y_.apply2DTransform2(ir),di=+T.attr("width"),Jr=+T.attr("height"),fi=vt-.5*di,Hi=fi+di,Pn=nr-.5*Jr,wn=Pn+Jr,pn=[[fi,Pn,fi,wn],[fi,wn,Hi,wn],[Hi,wn,Hi,Pn],[Hi,Pn,fi,Pn]].map(oi);if(!pn.reduce(function($r,zi){return $r^!!y_.segmentsIntersect(wt,Ie,wt+1e6,Ie+1e6,zi[0],zi[1],zi[2],zi[3])},!1)){pn.forEach(function($r){var zi=y_.segmentsIntersect(xe,Ce,wt,Ie,$r[0],$r[1],$r[2],$r[3]);zi&&(xe=zi.x,Ce=zi.y)});var Vn=t.arrowwidth,kn=t.arrowcolor,ea=t.arrowside,ua=C.append("g").style({opacity:Zb.opacity(kn)}).classed("annotation-arrow-g",!0),Vt=ua.append("path").attr("d","M"+xe+","+Ce+"L"+wt+","+Ie).style("stroke-width",Vn+"px").call(Zb.stroke,Zb.rgb(kn));if(r0t(Vt,ea,t),l.annotationPosition&&Vt.node().parentNode&&!n){var _t=wt,tr=Ie;if(t.standoff){var ar=Math.sqrt(Math.pow(wt-xe,2)+Math.pow(Ie-Ce,2));_t+=t.standoff*(xe-wt)/ar,tr+=t.standoff*(Ce-Ie)/ar}var Er=ua.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(xe-_t)+","+(Ce-tr),transform:kU(_t,tr)}).style("stroke-width",Vn+6+"px").call(Zb.stroke,"rgba(0,0,0,0)").call(Zb.fill,"rgba(0,0,0,0)"),Zr,ri;r4.init({element:Er.node(),gd:e,prepFn:function(){var $r=Py.getTranslate(k);Zr=$r.x,ri=$r.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function($r,zi){var Ji=pr(Zr,ri),en=Ji[0]+$r,cn=Ji[1]+zi;k.call(Py.setTranslate,en,cn),d("x",m_(i,$r,"x",s,t)),d("y",m_(a,zi,"y",s,t)),t.axref===t.xref&&d("ax",m_(i,$r,"ax",s,t)),t.ayref===t.yref&&d("ay",m_(a,zi,"ay",s,t)),ua.attr("transform",kU($r,zi)),E.attr({transform:"rotate("+p+","+en+","+cn+")"})},doneFn:function(){CU.call("_guiRelayout",e,v());var $r=document.querySelector(".js-notes-box-panel");$r&&$r.redraw($r.selectedObj)}})}}};if(t.showarrow&&Ge(0,0),A){var Je;r4.init({element:k.node(),gd:e,prepFn:function(){Je=E.attr("transform")},moveFn:function(je,$e){var wt="pointer";if(t.showarrow)t.axref===t.xref?d("ax",m_(i,je,"ax",s,t)):d("ax",t.ax+je),t.ayref===t.yref?d("ay",m_(a,$e,"ay",s.w,t)):d("ay",t.ay+$e),Ge(je,$e);else{if(n)return;var Ie,xe;if(i)Ie=m_(i,je,"x",s,t);else{var Ce=t._xsize/s.w,vt=t.x+(t._xshift-t.xshift)/s.w-Ce/2;Ie=r4.align(vt+je/s.w,Ce,0,1,t.xanchor)}if(a)xe=m_(a,$e,"y",s,t);else{var nr=t._ysize/s.h,ir=t.y-(t._yshift+t.yshift)/s.h-nr/2;xe=r4.align(ir-$e/s.h,nr,0,1,t.yanchor)}d("x",Ie),d("y",xe),(!i||!a)&&(wt=r4.getCursor(i?.5:Ie,a?.5:xe,t.xanchor,t.yanchor))}E.attr({transform:kU(je,$e)+Je}),PU(k,wt)},clickFn:function(je,$e){t.captureevents&&e.emit("plotly_clickannotation",_($e))},doneFn:function(){PU(k),CU.call("_guiRelayout",e,v());var je=document.querySelector(".js-notes-box-panel");je&&je.redraw(je.selectedObj)}})}}l.annotationText?Z.call(LU.makeEditable,{delegate:k,gd:e}).call(H).on("edit",function(j){t.text=j,this.call(H),d("text",j),i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),CU.call("_guiRelayout",e,v())}):Z.call(H)}});var kpe=ye((Cor,Cpe)=>{"use strict";var Ape=Dr(),n0t=qa(),Spe=pl().arrayEditor;Cpe.exports={hasClickToShow:a0t,onClick:o0t};function a0t(e,t){var r=Epe(e,t);return r.on.length>0||r.explicitOff.length>0}function o0t(e,t){var r=Epe(e,t),n=r.on,i=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,l;if(n.length||i.length){for(s=0;s{"use strict";var IU=Dr(),uT=Ca();Lpe.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=uT.opacity(o);i("borderpad");var l=i("borderwidth"),u=i("showarrow");i("text",u?" ":n._dfltTitle.annotation),i("textangle"),IU.coerceFont(i,"font",n.font),i("width"),i("align");var c=i("height");if(c&&i("valign"),u){var f=i("arrowside"),h,d;f.indexOf("end")!==-1&&(h=i("arrowhead"),d=i("arrowsize")),f.indexOf("start")!==-1&&(i("startarrowhead",h),i("startarrowsize",d)),i("arrowcolor",s?r.bordercolor:uT.defaultLine),i("arrowwidth",(s&&l||1)*2),i("standoff"),i("startstandoff")}var v=i("hovertext"),x=n.hoverlabel||{};if(v){var b=i("hoverlabel.bgcolor",x.bgcolor||(uT.opacity(a)?uT.rgb(a):uT.defaultLine)),p=i("hoverlabel.bordercolor",x.bordercolor||uT.contrast(b)),C=IU.extendFlat({},x.font);C.color||(C.color=p),IU.coerceFont(i,"hoverlabel.font",C)}i("captureevents",!!v)}});var Ipe=ye((Lor,Ppe)=>{"use strict";var DU=Dr(),Yb=ho(),s0t=Yd(),l0t=RU(),u0t=Nb();Ppe.exports=function(t,r){s0t(t,r,{name:"annotations",handleItemDefaults:c0t})};function c0t(e,t,r){function n(E,A){return DU.coerce(e,t,u0t,E,A)}var i=n("visible"),a=n("clicktoshow");if(i||a){l0t(e,t,r,n);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},c=0;c<2;c++){var f=s[c],h=Yb.coerceRef(e,t,u,f,"","paper");if(h!=="paper"){var d=Yb.getFromId(u,h);d._annIndices.push(t._index)}if(Yb.coercePosition(t,u,n,h,f,.5),o){var v="a"+f,x=Yb.coerceRef(e,t,u,v,"pixel",["pixel","paper"]);x!=="pixel"&&x!==h&&(x=t[v]="pixel");var b=x==="pixel"?l[c]:.4;Yb.coercePosition(t,u,n,x,v,b)}n(f+"anchor"),n(f+"shift")}if(DU.noneOrAll(e,t,["x","y"]),o&&DU.noneOrAll(e,t,["ax","ay"]),a){var p=n("xclick"),C=n("yclick");t._xclick=p===void 0?t.x:Yb.cleanPosition(p,u,t.xref),t._yclick=C===void 0?t.y:Yb.cleanPosition(C,u,t.yref)}}}});var Fpe=ye((Por,Dpe)=>{"use strict";var FU=Dr(),Kb=ho(),f0t=vI().draw;Dpe.exports=function(t){var r=t._fullLayout,n=FU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return FU.syncOrAsync([f0t,h0t],t)};function h0t(e){var t=e._fullLayout;FU.filterVisible(t.annotations).forEach(function(r){var n=Kb.getFromId(e,r.xref),i=Kb.getFromId(e,r.yref),a=Kb.getRefType(r.xref),o=Kb.getRefType(r.yref);r._extremes={},a==="range"&&Rpe(r,n),o==="range"&&Rpe(r,i)})}function Rpe(e,t){var r=t._id,n=r.charAt(0),i=e[n],a=e["a"+n],o=e[n+"ref"],s=e["a"+n+"ref"],l=e["_"+n+"padplus"],u=e["_"+n+"padminus"],c={x:1,y:-1}[n]*e[n+"shift"],f=3*e.arrowsize*e.arrowwidth||0,h=f+c,d=f-c,v=3*e.startarrowsize*e.arrowwidth||0,x=v+c,b=v-c,p;if(s===o){var C=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),E=Kb.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,x),ppadminus:Math.max(u,b)});p={min:[C.min[0],E.min[0]],max:[C.max[0],E.max[0]]}}else x=a?x+a:x,b=a?b-a:b,p=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(l,h,x),ppadminus:Math.max(u,d,b)});e._extremes[r]=p}});var Ope=ye((Ior,zpe)=>{"use strict";var d0t=Eo(),v0t=p6();zpe.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,c;function f(d){var v=u[d],x=null;a?x=v0t(v,r.range):x=Math.pow(10,v),d0t(x)||(x=null),i(c+d,x)}for(var h=0;h{"use strict";var zU=vI(),qpe=kpe();Bpe.exports={moduleType:"component",name:"annotations",layoutAttributes:Nb(),supplyLayoutDefaults:Ipe(),includeBasePlot:zM()("annotations"),calcAutorange:Fpe(),draw:zU.draw,drawOne:zU.drawOne,drawRaw:zU.drawRaw,hasClickToShow:qpe.hasClickToShow,onClick:qpe.onClick,convertCoords:Ope()}});var pI=ye((Dor,Upe)=>{"use strict";var Cc=Nb(),p0t=mc().overrideAll,g0t=pl().templatedArray;Upe.exports=p0t(g0t("annotation",{visible:Cc.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Cc.xanchor,xshift:Cc.xshift,yanchor:Cc.yanchor,yshift:Cc.yshift,text:Cc.text,textangle:Cc.textangle,font:Cc.font,width:Cc.width,height:Cc.height,opacity:Cc.opacity,align:Cc.align,valign:Cc.valign,bgcolor:Cc.bgcolor,bordercolor:Cc.bordercolor,borderpad:Cc.borderpad,borderwidth:Cc.borderwidth,showarrow:Cc.showarrow,arrowcolor:Cc.arrowcolor,arrowhead:Cc.arrowhead,startarrowhead:Cc.startarrowhead,arrowside:Cc.arrowside,arrowsize:Cc.arrowsize,startarrowsize:Cc.startarrowsize,arrowwidth:Cc.arrowwidth,standoff:Cc.standoff,startstandoff:Cc.startstandoff,hovertext:Cc.hovertext,hoverlabel:Cc.hoverlabel,captureevents:Cc.captureevents}),"calc","from-root")});var Gpe=ye((For,Vpe)=>{"use strict";var OU=Dr(),m0t=ho(),y0t=Yd(),_0t=RU(),x0t=pI();Vpe.exports=function(t,r,n){y0t(t,r,{name:"annotations",handleItemDefaults:b0t,fullLayout:n.fullLayout})};function b0t(e,t,r,n){function i(s,l){return OU.coerce(e,t,x0t,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],m0t.coercePosition(t,u,i,s,s,.5)}var o=i("visible");o&&(_0t(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),OU.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",i("ax",-10),i("ay",-30),OU.noneOrAll(e,t,["ax","ay"])))}});var Xpe=ye((zor,Wpe)=>{"use strict";var Hpe=Dr(),jpe=ho();Wpe.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function qU(e,t){var r=[0,0,0,0],n,i;for(n=0;n<4;++n)for(i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function T0t(e,t){var r=qU(e.projection,qU(e.view,qU(e.model,[t[0],t[1],t[2],1])));return r}Zpe.exports=T0t});var Kpe=ye((qor,Ype)=>{"use strict";var A0t=vI().drawRaw,S0t=BU(),M0t=["x","y","z"];Ype.exports=function(t){for(var r=t.fullSceneLayout,n=t.dataScale,i=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=S0t(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),A0t(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var Qpe=ye((Bor,$pe)=>{"use strict";var E0t=qa(),Jpe=Dr();$pe.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:pI()}}},layoutAttributes:pI(),handleDefaults:Gpe(),includeBasePlot:C0t,convert:Xpe(),draw:Kpe()};function C0t(e,t){var r=E0t.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var e0e=Nb(),t0e=ec(),r0e=pf().line,k0t=Pd().dash,zg=Ao().extendFlat,L0t=pl().templatedArray,Nor=FM(),cT=Gl(),P0t=Qo().shapeTexttemplateAttrs,I0t=A6();i0e.exports=L0t("shape",{visible:zg({},cT.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:zg({},cT.legend,{editType:"calc+arraydraw"}),legendgroup:zg({},cT.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:zg({},cT.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:t0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:zg({},cT.legendrank,{editType:"calc+arraydraw"}),legendwidth:zg({},cT.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:zg({},e0e.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:zg({},e0e.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:zg({},r0e.color,{editType:"arraydraw"}),width:zg({},r0e.width,{editType:"calc+arraydraw"}),dash:zg({},k0t,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:P0t({},{keys:Object.keys(I0t)}),font:t0e({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var o0e=ye((Vor,a0e)=>{"use strict";var n4=Dr(),fT=ho(),R0t=Yd(),D0t=NU(),n0e=f_();a0e.exports=function(t,r){R0t(t,r,{name:"shapes",handleItemDefaults:z0t})};function F0t(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function z0t(e,t,r){function n(j,re){return n4.coerce(e,t,D0t,j,re)}t._isShape=!0;var i=n("visible");if(i){var a=n("showlegend");a&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),n4.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),s=o?"path":"rect",l=n("type",s),u=l!=="path";u&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var c=n("line.width");c&&(n("line.color"),n("line.dash"));for(var f=n("xsizemode"),h=n("ysizemode"),d=["x","y"],v=0;v<2;v++){var x=d[v],b=x+"anchor",p=x==="x"?f:h,C={_fullLayout:r},E,A,L,_=fT.coerceRef(e,t,C,x,void 0,"paper"),k=fT.getRefType(_);if(k==="range"?(E=fT.getFromId(C,_),E._shapeIndices.push(t._index),L=n0e.rangeToShapePosition(E),A=n0e.shapePositionToRange(E),(E.type==="category"||E.type==="multicategory")&&(n(x+"0shift"),n(x+"1shift"))):A=L=n4.identity,u){var M=.25,g=.75,P=x+"0",T=x+"1",z=e[P],O=e[T];e[P]=A(e[P],!0),e[T]=A(e[T],!0),p==="pixel"?(n(P,0),n(T,10)):(fT.coercePosition(t,C,n,_,P,M),fT.coercePosition(t,C,n,_,T,g)),t[P]=L(t[P]),t[T]=L(t[T]),e[P]=z,e[T]=O}if(p==="pixel"){var V=e[b];e[b]=A(e[b],!0),fT.coercePosition(t,C,n,_,b,.25),t[b]=L(t[b]),e[b]=V}}u&&n4.noneOrAll(e,t,["x0","x1","y0","y1"]);var G=l==="line",Z,H;if(u&&(Z=n("label.texttemplate")),Z||(H=n("label.text")),H||Z){n("label.textangle");var N=n("label.textposition",G?"middle":"middle center");n("label.xanchor"),n("label.yanchor",F0t(G,N)),n("label.padding"),n4.coerceFont(n,"label.font",r.font)}}}});var u0e=ye((Gor,l0e)=>{"use strict";var O0t=Ca(),s0e=Dr();function q0t(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}l0e.exports=function(t,r,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),s0e.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var i=n("newshape.line.width");if(i){var a=(t||{}).plot_bgcolor||"#FFF";n("newshape.line.color",O0t.contrast(a)),n("newshape.line.dash")}var o=t.dragmode==="drawline",s=n("newshape.label.text"),l=n("newshape.label.texttemplate");if(s||l){n("newshape.label.textangle");var u=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",q0t(o,u)),n("newshape.label.padding"),s0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var v0e=ye((Hor,d0e)=>{"use strict";var UU=Dr(),hT=ho(),dT=vM(),f0e=f_();d0e.exports=function(t){var r=t._fullLayout,n=UU.filterVisible(r.shapes);if(!(!n.length||!t._fullData.length))for(var i=0;i0?u+o:o;return{ppad:o,ppadplus:s?f:h,ppadminus:s?h:f}}else return{ppad:o}}function c0e(e,t,r){var n=e._id.charAt(0)==="x"?"x":"y",i=e.type==="category"||e.type==="multicategory",a,o,s=0,l=0,u=i?e.r2c:e.d2c,c=t[n+"sizemode"]==="scaled";if(c?(a=t[n+"0"],o=t[n+"1"],i&&(s=t[n+"0shift"],l=t[n+"1shift"])):(a=t[n+"anchor"],o=t[n+"anchor"]),a!==void 0)return[u(a)+s,u(o)+l];if(t.path){var f=1/0,h=-1/0,d=t.path.match(dT.segmentRE),v,x,b,p,C;for(e.type==="date"&&(u=f0e.decodeDate(u)),v=0;vh&&(h=C)));if(h>=f)return[f,h]}}});var m0e=ye((jor,g0e)=>{"use strict";var p0e=aP();g0e.exports={moduleType:"component",name:"shapes",layoutAttributes:NU(),supplyLayoutDefaults:o0e(),supplyDrawNewShapeDefaults:u0e(),includeBasePlot:zM()("shapes"),calcAutorange:v0e(),draw:p0e.draw,drawOne:p0e.drawOne}});var VU=ye((Xor,_0e)=>{"use strict";var y0e=hd(),U0t=pl().templatedArray,Wor=FM();_0e.exports=U0t("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",y0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",y0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var b0e=ye((Zor,x0e)=>{"use strict";var V0t=Dr(),GU=ho(),G0t=Yd(),H0t=VU(),j0t="images";x0e.exports=function(t,r){var n={name:j0t,handleItemDefaults:W0t};G0t(t,r,n)};function W0t(e,t,r){function n(h,d){return V0t.coerce(e,t,H0t,h,d)}var i=n("source"),a=n("visible",!!i);if(!a)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],c=GU.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var f=GU.getFromId(o,c);f._imgIndices.push(t._index)}GU.coercePosition(t,o,n,c,u,0)}return t}});var S0e=ye((Yor,A0e)=>{"use strict";var w0e=Oa(),X0t=So(),vT=ho(),T0e=hf(),Z0t=Wp();A0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var M0e=Eo(),Y0t=p6();E0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,c,f=0;f{"use strict";k0e.exports={moduleType:"component",name:"images",layoutAttributes:VU(),supplyLayoutDefaults:b0e(),includeBasePlot:zM()("images"),draw:S0e(),convertCoords:C0e()}});var gI=ye(($or,P0e)=>{"use strict";P0e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var HU=ye((Qor,R0e)=>{"use strict";var K0t=ec(),J0t=Eh(),$0t=Ao().extendFlat,Q0t=mc().overrideAll,egt=S6(),I0e=pl().templatedArray,tgt=I0e("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});R0e.exports=Q0t(I0e("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:tgt,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:$0t(egt({editType:"arraydraw"}),{}),font:K0t({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:J0t.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var O0e=ye((esr,z0e)=>{"use strict";var mI=Dr(),D0e=Yd(),F0e=HU(),rgt=gI(),igt=rgt.name,ngt=F0e.buttons;z0e.exports=function(t,r){var n={name:igt,handleItemDefaults:agt};D0e(t,r,n)};function agt(e,t,r){function n(o,s){return mI.coerce(e,t,F0e,o,s)}var i=D0e(e,t,{name:"buttons",handleItemDefaults:ogt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),mI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),mI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function ogt(e,t){function r(i,a){return mI.coerce(e,t,ngt,i,a)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var N0e=ye((tsr,B0e)=>{"use strict";B0e.exports=Sf;var Og=Oa(),q0e=Ca(),pT=So(),yI=Dr();function Sf(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Sf.barWidth=2;Sf.barLength=20;Sf.barRadius=2;Sf.barPad=1;Sf.barColor="#808BA4";Sf.prototype.enable=function(t,r,n){var i=this.gd._fullLayout,a=i.width,o=i.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,c=this.position.h,f=this.position.direction,h=f==="down",d=f==="left",v=f==="right",x=f==="up",b=l,p=c,C,E,A,L;!h&&!d&&!v&&!x&&(this.position.direction="down",h=!0);var _=h||x;_?(C=s,E=C+b,h?(A=u,L=Math.min(A+p,o),p=L-A):(L=u+p,A=Math.max(L-p,0),p=L-A)):(A=u,L=A+p,d?(E=s+b,C=Math.max(E-b,0),b=E-C):(C=s,E=Math.min(C+b,a),b=E-C)),this._box={l:C,t:A,w:b,h:p};var k=l>b,M=Sf.barLength+2*Sf.barPad,g=Sf.barWidth+2*Sf.barPad,P=s,T=u+c;T+g>o&&(T=o-g);var z=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);z.exit().on(".drag",null).remove(),z.enter().append("rect").classed("scrollbar-horizontal",!0).call(q0e.fill,Sf.barColor),k?(this.hbar=z.attr({rx:Sf.barRadius,ry:Sf.barRadius,x:P,y:T,width:M,height:g}),this._hbarXMin=P+M/2,this._hbarTranslateMax=b-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=c>p,V=Sf.barWidth+2*Sf.barPad,G=Sf.barLength+2*Sf.barPad,Z=s+l,H=u;Z+V>a&&(Z=a-V);var N=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(q0e.fill,Sf.barColor),O?(this.vbar=N.attr({rx:Sf.barRadius,ry:Sf.barRadius,x:Z,y:H,width:V,height:G}),this._vbarYMin=H+G/2,this._vbarTranslateMax=p-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var j=this.id,re=C-.5,oe=O?E+V+.5:E+.5,_e=A-.5,Me=k?L+g+.5:L+.5,ke=i._topdefs.selectAll("#"+j).data(k||O?[0]:[]);if(ke.exit().remove(),ke.enter().append("clipPath").attr("id",j).append("rect"),k||O?(this._clipRect=ke.select("rect").attr({x:Math.floor(re),y:Math.floor(_e),width:Math.ceil(oe)-Math.floor(re),height:Math.ceil(Me)-Math.floor(_e)}),this.container.call(pT.setClipUrl,j,this.gd),this.bg.attr({x:s,y:u,width:l,height:c})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pT.setClipUrl,null),delete this._clipRect),k||O){var me=Og.behavior.drag().on("dragstart",function(){Og.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(me);var ie=Og.behavior.drag().on("dragstart",function(){Og.event.sourceEvent.preventDefault(),Og.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(ie),O&&this.vbar.on(".drag",null).call(ie)}this.setTranslate(r,n)};Sf.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pT.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Sf.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Og.event.dx),this.vbar&&(r-=Og.event.dy),this.setTranslate(t,r)};Sf.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Og.event.deltaY),this.vbar&&(r+=Og.event.deltaY),this.setTranslate(t,r)};Sf.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax,a=yI.constrain(Og.event.x,n,i),o=(a-n)/(i-n),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,c=yI.constrain(Og.event.y,l,u),f=(c-l)/(u-l),h=this.position.h-this._box.h;r=f*h}this.setTranslate(t,r)};Sf.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,i=this.position.h-this._box.h;if(t=yI.constrain(t||0,0,n),r=yI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(pT.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/n;this.hbar.call(pT.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(pT.setTranslate,t,r+o*this._vbarTranslateMax)}}});var K0e=ye((rsr,Y0e)=>{"use strict";var gT=Oa(),a4=Mc(),o4=Ca(),mT=So(),e0=Dr(),_I=ru(),sgt=pl().arrayEditor,V0e=Kh().LINE_SPACING,ts=gI(),lgt=N0e();Y0e.exports=function(t){var r=t._fullLayout,n=e0.filterVisible(r[ts.name]);function i(h){a4.autoMargin(t,X0e(h))}var a=r._menulayer.selectAll("g."+ts.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(ts.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){gT.select(this).selectAll("g."+ts.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+ts.headerGroupClassName).data(n,ugt);o.enter().append("g").classed(ts.headerGroupClassName,!0);for(var s=e0.ensureSingle(a,"g",ts.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),l=0;l{"use strict";var ggt=gI();J0e.exports={moduleType:"component",name:ggt.name,layoutAttributes:HU(),supplyLayoutDefaults:O0e(),draw:K0e()}});var l4=ye((nsr,Q0e)=>{"use strict";Q0e.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var ZU=ye((asr,rge)=>{"use strict";var ege=ec(),mgt=S6(),ygt=Ao().extendDeepAll,_gt=mc().overrideAll,xgt=qS(),tge=pl().templatedArray,Jb=l4(),bgt=tge("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});rge.exports=_gt(tge("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:bgt,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:ygt(mgt({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:xgt.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:ege({})},font:ege({}),activebgcolor:{valType:"color",dflt:Jb.gripBgActiveColor},bgcolor:{valType:"color",dflt:Jb.railBgColor},bordercolor:{valType:"color",dflt:Jb.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Jb.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Jb.tickLength},tickcolor:{valType:"color",dflt:Jb.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Jb.minorTickLength}}),"arraydraw","from-root")});var oge=ye((osr,age)=>{"use strict";var yT=Dr(),ige=Yd(),nge=ZU(),wgt=l4(),Tgt=wgt.name,Agt=nge.steps;age.exports=function(t,r){ige(t,r,{name:Tgt,handleItemDefaults:Sgt})};function Sgt(e,t,r){function n(f,h){return yT.coerce(e,t,nge,f,h)}for(var i=ige(e,t,{name:"steps",handleItemDefaults:Mgt}),a=0,o=0;o{"use strict";var qg=Oa(),xI=Mc(),__=Ca(),Bg=So(),t0=Dr(),Egt=t0.strTranslate,u4=ru(),Cgt=pl().arrayEditor,Ds=l4(),JU=Kh(),uge=JU.LINE_SPACING,YU=JU.FROM_TL,KU=JU.FROM_BR;pge.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=kgt(n,t),a=n._infolayer.selectAll("g."+Ds.containerClassName).data(i.length>0?[0]:[]);a.enter().append("g").classed(Ds.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(c){c._commandObserver&&(c._commandObserver.remove(),delete c._commandObserver),xI.autoMargin(t,cge(c))}if(a.exit().each(function(){qg.select(this).selectAll("g."+Ds.groupClassName).each(o)}).remove(),i.length!==0){var s=a.selectAll("g."+Ds.groupClassName).data(i,Lgt);s.enter().append("g").classed(Ds.groupClassName,!0),s.exit().each(o).remove();for(var l=0;l0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",Egt(o-Ds.gripWidth*.5,t._dims.currentValueTotalHeight))}}function $U(e,t){var r=e._dims;return r.inputAreaStart+Ds.stepInset+(r.inputAreaLength-2*Ds.stepInset)*Math.min(1,Math.max(0,t))}function lge(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-Ds.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*Ds.stepInset-2*r.inputAreaStart)))}function Ogt(e,t,r){var n=r._dims,i=t0.ensureSingle(e,"rect",Ds.railTouchRectClass,function(a){a.call(dge,t,e,r).style("pointer-events","all")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Ds.tickOffset+r.ticklen+n.labelHeight)}).call(__.fill,r.bgcolor).attr("opacity",0),Bg.setTranslate(i,0,n.currentValueTotalHeight)}function qgt(e,t){var r=t._dims,n=r.inputAreaLength-Ds.railInset*2,i=t0.ensureSingle(e,"rect",Ds.railRectClass);i.attr({width:n,height:Ds.railWidth,rx:Ds.railRadius,ry:Ds.railRadius,"shape-rendering":"crispEdges"}).call(__.stroke,t.bordercolor).call(__.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Bg.setTranslate(i,Ds.railInset,(r.inputAreaWidth-Ds.railWidth)*.5+r.currentValueTotalHeight)}});var yge=ye((lsr,mge)=>{"use strict";var Bgt=l4();mge.exports={moduleType:"component",name:Bgt.name,layoutAttributes:ZU(),supplyLayoutDefaults:oge(),draw:gge()}});var wI=ye((usr,xge)=>{"use strict";var _ge=Eh();xge.exports={bgcolor:{valType:"color",dflt:_ge.background,editType:"plot"},bordercolor:{valType:"color",dflt:_ge.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var QU=ye((csr,bge)=>{"use strict";bge.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var TI=ye((fsr,wge)=>{"use strict";wge.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Sge=ye(SI=>{"use strict";var Ngt=hf(),Ugt=ru(),Tge=TI(),Vgt=Kh().LINE_SPACING,AI=Tge.name;function Age(e){var t=e&&e[AI];return t&&t.visible}SI.isVisible=Age;SI.makeData=function(e){for(var t=Ngt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var MI=Dr(),Mge=pl(),Ege=hf(),Ggt=wI(),Hgt=QU();Cge.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;MI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=Mge.newContainer(a,"rangeslider");function l(L,_){return MI.coerce(o,s,Ggt,L,_)}var u,c;function f(L,_){return MI.coerce(u,c,Hgt,L,_)}var h=l("visible");if(h){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!a.isValidRange(o.range)),l("range");var d=r._subplots;if(d)for(var v=d.cartesian.filter(function(L){return L.substr(0,L.indexOf("y"))===Ege.name2id(n)}).map(function(L){return L.substr(L.indexOf("y"),L.length)}),x=MI.simpleMap(v,Ege.id2name),b=0;b{"use strict";var jgt=hf().list,Wgt=wg().getAutoRange,Xgt=TI();Lge.exports=function(t){for(var r=jgt(t,"x",!0),n=0;n{"use strict";var EI=Oa(),Zgt=qa(),Ygt=Mc(),Jf=Dr(),CI=Jf.strTranslate,Rge=So(),x_=Ca(),Kgt=Mb(),Jgt=vh(),eV=hf(),$gt=yv(),Qgt=Tg(),il=TI();Dge.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)Z=T[H+1];else if(G=N.pmax)Z=T[H+1];else if(G0?e.touches[0].clientX:0}function emt(e,t,r,n){if(t._context.staticPlot)return;var i=e.select("rect."+il.slideBoxClassName).node(),a=e.select("rect."+il.grabAreaMinClassName).node(),o=e.select("rect."+il.grabAreaMaxClassName).node();function s(){var l=EI.event,u=l.target,c=Ige(l),f=c-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),v=$gt.coverSlip();this.addEventListener("touchmove",x),this.addEventListener("touchend",b),v.addEventListener("mousemove",x),v.addEventListener("mouseup",b);function x(p){var C=Ige(p),E=+C-c,A,L,_;switch(u){case i:if(_="ew-resize",h+E>r._length||d+E<0)return;A=h+E,L=d+E;break;case a:if(_="col-resize",h+E>r._length)return;A=h+E,L=d;break;case o:if(_="col-resize",d+E<0)return;A=h,L=d+E;break;default:_="ew-resize",A=f,L=f+E;break}if(L{"use strict";var cmt=Dr(),fmt=wI(),hmt=QU(),tV=Sge();zge.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:cmt.extendFlat({},fmt,{yaxis:hmt})}}},layoutAttributes:wI(),handleDefaults:kge(),calcAutorange:Pge(),draw:Fge(),isVisible:tV.isVisible,makeData:tV.makeData,autoMarginOpts:tV.autoMarginOpts}});var kI=ye((msr,Bge)=>{"use strict";var dmt=ec(),qge=Eh(),vmt=pl().templatedArray,pmt=vmt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});Bge.exports={visible:{valType:"boolean",editType:"plot"},buttons:pmt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:dmt({editType:"plot"}),bgcolor:{valType:"color",dflt:qge.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:qge.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var rV=ye((ysr,Nge)=>{"use strict";Nge.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var Gge=ye((_sr,Vge)=>{"use strict";var LI=Dr(),gmt=Ca(),mmt=pl(),ymt=Yd(),Uge=kI(),iV=rV();Vge.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=mmt.newContainer(r,"rangeselector");function l(d,v){return LI.coerce(o,s,Uge,d,v)}var u=ymt(o,s,{name:"buttons",handleItemDefaults:_mt,calendar:a}),c=l("visible",u.length>0);if(c){var f=xmt(r,n,i);l("x",f[0]),l("y",f[1]),LI.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),LI.coerceFont(l,"font",n.font);var h=l("bgcolor");l("activecolor",gmt.contrast(h,iV.lightAmount,iV.darkAmount)),l("bordercolor"),l("borderwidth")}};function _mt(e,t,r,n){var i=n.calendar;function a(l,u){return LI.coerce(e,t,Uge.buttons,l,u)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(i&&i!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function xmt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var bmt=mO(),wmt=Dr().titleCase;Hge.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=Tmt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function Tmt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=bmt["utc"+wmt(i)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(n,-o));break;case"todate":var l=a.offset(n,-o);s=e.l2r(+a.ceil(l));break}var u=r[1];return[s,u]}});var Qge=ye((bsr,$ge)=>{"use strict";var II=Oa(),Amt=qa(),Smt=Mc(),Wge=Ca(),Jge=So(),Iy=Dr(),Xge=Iy.strTranslate,PI=ru(),Mmt=hf(),oV=Kh(),Zge=oV.LINE_SPACING,Yge=oV.FROM_TL,Kge=oV.FROM_BR,aV=rV(),Emt=jge();$ge.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(Cmt(t),kmt);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=II.select(this),o=i,s=o.rangeselector,l=a.selectAll("g.button").data(Iy.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var c=II.select(this),f=Emt(o,u);u._isActive=Lmt(o,u,f),c.call(nV,s,u),c.call(Imt,s,u,t),c.on("click",function(){t._dragged||Amt.call("_guiRelayout",t,f)}),c.on("mouseover",function(){u._isHovered=!0,c.call(nV,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(nV,s,u)})}),Dmt(t,l,s,o._name,a)})};function Cmt(e){for(var t=Mmt.list(e,"x",!0),r=[],n=0;n{"use strict";eme.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:kI()}}},layoutAttributes:kI(),handleDefaults:Gge(),draw:Qge()}});var kc=ye(sV=>{"use strict";var rme=Ao().extendFlat;sV.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",o={x:rme({},r,{}),y:rme({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};sV.defaults=function(e,t,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var Fmt=Dr(),zmt=n3().counter,Omt=kc().attributes,ime=hd().idRegex,qmt=pl(),lV={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[zmt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[ime.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[ime.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Omt({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function RI(e,t,r){var n=t[r+"axes"],i=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(n))return n;if(i.length)return i}function Bmt(e,t){var r=e.grid||{},n=RI(t,r,"x"),i=RI(t,r,"y");if(!e.grid&&!n&&!i)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(n),s=Array.isArray(i),l=o&&n!==r.xaxes&&s&&i!==r.yaxes,u,c;a?(u=r.subplots.length,c=r.subplots[0].length):(s&&(u=i.length),o&&(c=n.length));var f=qmt.newContainer(t,"grid");function h(_,k){return Fmt.coerce(r,f,lV,_,k)}var d=h("rows",u),v=h("columns",c);if(!(d*v>1)){delete t.grid;return}if(!a&&!o&&!s){var x=h("pattern")==="independent";x&&(a=!0)}f._hasSubplotGrid=a;var b=h("roworder"),p=b==="top to bottom",C=a?.2:.1,E=a?.3:.1,A,L;l&&t._splomGridDflt&&(A=t._splomGridDflt.xside,L=t._splomGridDflt.yside),f._domains={x:nme("x",h,C,A,v),y:nme("y",h,E,L,d,p)}}function nme(e,t,r,n,i,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",n);for(var l=new Array(i),u=s[0],c=(s[1]-u)/(i-o),f=c*(1-o),h=0;h{"use strict";sme.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var cme=ye((Msr,ume)=>{"use strict";var lme=Eo(),Umt=qa(),Vmt=Dr(),Gmt=pl(),Hmt=cV();ume.exports=function(e,t,r,n){var i="error_"+n.axis,a=Gmt.newContainer(t,i),o=e[i]||{};function s(v,x){return Vmt.coerce(o,a,Hmt,v,x)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var c=s("type","array"in o?"data":"percent"),f=!0;c!=="sqrt"&&(f=s("symmetric",!((c==="data"?"arrayminus":"valueminus")in o))),c==="data"?(s("array"),s("traceref"),f||(s("arrayminus"),s("tracerefminus"))):(c==="percent"||c==="constant")&&(s("value"),f||s("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=t["error_"+n.inherit];(d||{}).visible&&s(h,!(o.color||lme(o.thickness)||lme(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",Umt.traceIs(t,"gl3d")?0:4))}}});var fV=ye((Esr,hme)=>{"use strict";hme.exports=function(t){var r=t.type,n=t.symmetric;if(r==="data"){var i=t.array||[];if(n)return function(u,c){var f=+i[c];return[f,f]};var a=t.arrayminus||[];return function(u,c){var f=+i[c],h=+a[c];return!isNaN(f)||!isNaN(h)?[h||0,f||0]:[NaN,NaN]}}else{var o=fme(r,t.value),s=fme(r,t.valueminus);return n||t.valueminus===void 0?function(u){var c=o(u);return[c,c]}:function(u){return[s(u),o(u)]}}};function fme(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var pme=ye((Csr,vme)=>{"use strict";var hV=Eo(),jmt=qa(),dV=ho(),Wmt=Dr(),Xmt=fV();vme.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var gme=Oa(),b_=Eo(),Zmt=So(),Ymt=Ru();mme.exports=function(t,r,n,i){var a,o=n.xaxis,s=n.yaxis,l=i&&i.duration>0,u=t._context.staticPlot;r.each(function(c){var f=c[0].trace,h=f.error_x||{},d=f.error_y||{},v;f.ids&&(v=function(C){return C.id});var x=Ymt.hasMarkers(f)&&f.marker.maxdisplayed>0;!d.visible&&!h.visible&&(c=[]);var b=gme.select(this).selectAll("g.errorbar").data(c,v);if(b.exit().remove(),!!c.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var p=b.enter().append("g").classed("errorbar",!0);l&&p.style("opacity",0).transition().duration(i.duration).style("opacity",1),Zmt.setClipUrl(b,n.layerClipId,t),b.each(function(C){var E=gme.select(this),A=Kmt(C,o,s);if(!(x&&!C.vis)){var L,_=E.select("path.yerror");if(d.visible&&b_(A.x)&&b_(A.yh)&&b_(A.ys)){var k=d.width;L="M"+(A.x-k)+","+A.yh+"h"+2*k+"m-"+k+",0V"+A.ys,A.noYS||(L+="m-"+k+",0h"+2*k),a=!_.size(),a?_=E.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):l&&(_=_.transition().duration(i.duration).ease(i.easing)),_.attr("d",L)}else _.remove();var M=E.select("path.xerror");if(h.visible&&b_(A.y)&&b_(A.xh)&&b_(A.xs)){var g=(h.copy_ystyle?d:h).width;L="M"+A.xh+","+(A.y-g)+"v"+2*g+"m0,-"+g+"H"+A.xs,A.noXS||(L+="m0,-"+g+"v"+2*g),a=!M.size(),a?M=E.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(M=M.transition().duration(i.duration).ease(i.easing)),M.attr("d",L)}else M.remove()}})}})};function Kmt(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),b_(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),b_(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}});var bme=ye((Lsr,xme)=>{"use strict";var Jmt=Oa(),_me=Ca();xme.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=Jmt.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(_me.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(_me.stroke,a.color)})}});var Ame=ye((Psr,Tme)=>{"use strict";var c4=Dr(),wme=mc().overrideAll,f4=cV(),$b={error_x:c4.extendFlat({},f4),error_y:c4.extendFlat({},f4)};delete $b.error_x.copy_zstyle;delete $b.error_y.copy_zstyle;delete $b.error_y.copy_ystyle;var h4={error_x:c4.extendFlat({},f4),error_y:c4.extendFlat({},f4),error_z:c4.extendFlat({},f4)};delete h4.error_x.copy_ystyle;delete h4.error_y.copy_ystyle;delete h4.error_z.copy_ystyle;delete h4.error_z.copy_zstyle;Tme.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:$b,bar:$b,histogram:$b,scatter3d:wme(h4,"calc","nested"),scattergl:wme($b,"calc","nested")}},supplyDefaults:cme(),calc:pme(),makeComputeError:fV(),plot:yme(),style:bme(),hoverInfo:$mt};function $mt(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var Mme=ye((Isr,Sme)=>{"use strict";Sme.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Rme=ye((Rsr,Ime)=>{"use strict";var w_=Oa(),vV=cd(),FI=Mc(),Eme=qa(),Ry=ho(),DI=yv(),B0=Dr(),Ug=B0.strTranslate,Pme=Ao().extendFlat,pV=Tg(),Ng=So(),gV=Ca(),Qmt=Mb(),eyt=ru(),tyt=pv().flipScale,ryt=t4(),iyt=oI(),nyt=Rd(),mV=Kh(),Cme=mV.LINE_SPACING,kme=mV.FROM_TL,Lme=mV.FROM_BR,gf=Mme().cn;function ayt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+gf.colorbar).data(oyt(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(gf.colorbar,!0),r.each(function(n){var i=w_.select(this);B0.ensureSingle(i,"rect",gf.cbbg),B0.ensureSingle(i,"g",gf.cbfills),B0.ensureSingle(i,"g",gf.cblines),B0.ensureSingle(i,"g",gf.cbaxis,function(o){o.classed(gf.crisp,!0)}),B0.ensureSingle(i,"g",gf.cbtitleunshift,function(o){o.append("g").classed(gf.cbtitle,!0)}),B0.ensureSingle(i,"rect",gf.cboutline);var a=syt(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&lyt(i,n,e)}),r.exit().each(function(n){FI.autoMargin(e,n._id)}).remove(),r.order()}function oyt(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function l(E){return Pme(E,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof s.calc=="function"?s.calc(e,o,i):(i._fillgradient=a.reversescale?tyt(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var c=0;c1){var Fe=Math.pow(10,Math.floor(Math.log(ge)/Math.LN10));De*=Fe*B0.roundUp(ge/Fe,[2,5,10]),(Math.abs(z.start)/z.size+1e-6)%1<2e-6&&(Le.tick0=0)}Le.dtick=De}Le.domain=n?[ie+v/A.h,ie+j-v/A.h]:[ie+d/A.w,ie+j-d/A.w],Le.setScale(),e.attr("transform",Ug(Math.round(A.l),Math.round(A.t)));var ce=e.select("."+gf.cbtitleunshift).attr("transform",Ug(-Math.round(A.l),-Math.round(A.t))),Ze=Le.ticklabelposition,ct=Le.title.font.size,pt=e.select("."+gf.cbaxis),Wt,st=0,lt=0;function Gt(ur,Qe){var Et={propContainer:Le,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:E._dfltTitle.colorbar,containerGroup:e.select("."+gf.cbtitle)},er=ur.charAt(0)==="h"?ur.substr(1):"h"+ur;e.selectAll("."+er+",."+er+"-math-group").remove(),Qmt.draw(r,ur,Pme(Et,Qe||{}))}function Nt(){if(n&&Ae||!n&&!Ae){var ur,Qe;M==="top"&&(ur=d+A.l+re*x,Qe=v+A.t+oe*(1-ie-j)+3+ct*.75),M==="bottom"&&(ur=d+A.l+re*x,Qe=v+A.t+oe*(1-ie)-3-ct*.25),M==="right"&&(Qe=v+A.t+oe*b+3+ct*.75,ur=d+A.l+re*ie),Gt(Le._id+"title",{attributes:{x:ur,y:Qe,"text-anchor":n?"start":"middle"}})}}function $t(){if(n&&!Ae||!n&&Ae){var ur=Le.position||0,Qe=Le._offset+Le._length/2,Et,er;if(M==="right")er=Qe,Et=A.l+re*ur+10+ct*(Le.showticklabels?1:.5);else if(Et=Qe,M==="bottom"&&(er=A.t+oe*ur+10+(Ze.indexOf("inside")===-1?Le.tickfont.size:0)+(Le.ticks!=="inside"&&t.ticklen||0)),M==="top"){var Ut=k.text.split("
").length;er=A.t+oe*ur+10-Z-Cme*ct*Ut}Gt((n?"h":"v")+Le._id+"title",{avoid:{selection:w_.select(r).selectAll("g."+Le._id+"tick"),side:M,offsetTop:n?0:A.t,offsetLeft:n?A.l:0,maxShift:n?E.width:E.height},attributes:{x:Et,y:er,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function sr(){if(!n&&!Ae||n&&Ae){var ur=e.select("."+gf.cbtitle),Qe=ur.select("text"),Et=[-l/2,l/2],er=ur.select(".h"+Le._id+"title-math-group").node(),Ut=15.6;Qe.node()&&(Ut=parseInt(Qe.node().style.fontSize,10)*Cme);var Ft;if(er?(Ft=Ng.bBox(er),lt=Ft.width,st=Ft.height,st>Ut&&(Et[1]-=(st-Ut)/2)):Qe.node()&&!Qe.classed(gf.jsPlaceholder)&&(Ft=Ng.bBox(Qe.node()),lt=Ft.width,st=Ft.height),n){if(st){if(st+=5,M==="top")Le.domain[1]-=st/A.h,Et[1]*=-1;else{Le.domain[0]+=st/A.h;var bt=eyt.lineCount(Qe);Et[1]+=(1-bt)*Ut}ur.attr("transform",Ug(Et[0],Et[1])),Le.setScale()}}else lt&&(M==="right"&&(Le.domain[0]+=(lt+ct/2)/A.w),ur.attr("transform",Ug(Et[0],Et[1])),Le.setScale())}e.selectAll("."+gf.cbfills+",."+gf.cblines).attr("transform",n?Ug(0,Math.round(A.h*(1-Le.domain[1]))):Ug(Math.round(A.w*Le.domain[0]),0)),pt.attr("transform",n?Ug(0,Math.round(-A.t)):Ug(Math.round(-A.l),0));var yt=e.select("."+gf.cbfills).selectAll("rect."+gf.cbfill).attr("style","").data(V);yt.enter().append("rect").classed(gf.cbfill,!0).attr("style",""),yt.exit().remove();var Yt=g.map(Le.c2p).map(Math.round).sort(function(Wr,Ur){return Wr-Ur});yt.each(function(Wr,Ur){var dt=[Ur===0?g[0]:(V[Ur]+V[Ur-1])/2,Ur===V.length-1?g[1]:(V[Ur]+V[Ur+1])/2].map(Le.c2p).map(Math.round);n&&(dt[1]=B0.constrain(dt[1]+(dt[1]>dt[0])?1:-1,Yt[0],Yt[1]));var Ge=w_.select(this).attr(n?"x":"y",_e).attr(n?"y":"x",w_.min(dt)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(w_.max(dt)-w_.min(dt),2));if(t._fillgradient)Ng.gradient(Ge,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Je=T(Wr).replace("e-","");Ge.attr("fill",vV(Je).toHexString())}});var lr=e.select("."+gf.cblines).selectAll("path."+gf.cbline).data(_.color&&_.width?G:[]);lr.enter().append("path").classed(gf.cbline,!0),lr.exit().remove(),lr.each(function(Wr){var Ur=_e,dt=Math.round(Le.c2p(Wr))+_.width/2%1;w_.select(this).attr("d","M"+(n?Ur+","+dt:dt+","+Ur)+(n?"h":"v")+Z).call(Ng.lineGroupStyle,_.width,P(Wr),_.dash)}),pt.selectAll("g."+Le._id+"tick,path").remove();var Tr=_e+Z+(l||0)/2-(t.ticks==="outside"?1:0),Rr=Ry.calcTicks(Le),ei=Ry.getTickSigns(Le)[2];return Ry.drawTicks(r,Le,{vals:Le.ticks==="inside"?Ry.clipEnds(Le,Rr):Rr,layer:pt,path:Ry.makeTickPath(Le,Tr,ei),transFn:Ry.makeTransTickFn(Le)}),Ry.drawLabels(r,Le,{vals:Rr,layer:pt,transFn:Ry.makeTransTickLabelFn(Le),labelFns:Ry.makeLabelFns(Le,Tr)})}function wr(){var ur,Qe=Z+l/2;Ze.indexOf("inside")===-1&&(ur=Ng.bBox(pt.node()),Qe+=n?ur.width:ur.height),Wt=ce.select("text");var Et=0,er=n&&M==="top",Ut=!n&&M==="right",Ft=0;if(Wt.node()&&!Wt.classed(gf.jsPlaceholder)){var bt,yt=ce.select(".h"+Le._id+"title-math-group").node();yt&&(n&&Ae||!n&&!Ae)?(ur=Ng.bBox(yt),Et=ur.width,bt=ur.height):(ur=Ng.bBox(ce.node()),Et=ur.right-A.l-(n?_e:Se),bt=ur.bottom-A.t-(n?Se:_e),!n&&M==="top"&&(Qe+=ur.height,Ft=ur.height)),Ut&&(Wt.attr("transform",Ug(Et/2+ct/2,0)),Et*=2),Qe=Math.max(Qe,n?Et:bt)}var Yt=(n?d:v)*2+Qe+u+l/2,lr=0;!n&&k.text&&h==="bottom"&&b<=0&&(lr=Yt/2,Yt+=lr,Ft+=lr),E._hColorbarMoveTitle=lr,E._hColorbarMoveCBTitle=Ft;var Tr=u+l,Rr=(n?_e:Se)-Tr/2-(n?d:0),ei=(n?Se:_e)-(n?N:v+Ft-lr);e.select("."+gf.cbbg).attr("x",Rr).attr("y",ei).attr(n?"width":"height",Math.max(Yt-lr,2)).attr(n?"height":"width",Math.max(N+Tr,2)).call(gV.fill,c).call(gV.stroke,t.bordercolor).style("stroke-width",u);var Wr=Ut?Math.max(Et-10,0):0;e.selectAll("."+gf.cboutline).attr("x",(n?_e:Se+d)+Wr).attr("y",(n?Se+v-N:_e)+(er?st:0)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(N-(n?2*v+st:2*d+Wr),2)).call(gV.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var Ur=n?Me*Yt:0,dt=n?0:(1-ke)*Yt-Ft;if(Ur=C?A.l-Ur:-Ur,dt=p?A.t-dt:-dt,e.attr("transform",Ug(Ur,dt)),!n&&(u||vV(c).getAlpha()&&!vV.equals(E.paper_bgcolor,c))){var Ge=pt.selectAll("text"),Je=Ge[0].length,je=e.select("."+gf.cbbg).node(),$e=Ng.bBox(je),wt=Ng.getTranslate(e),Ie=2;Ge.each(function(fi,Hi){var Pn=0,wn=Je-1;if(Hi===Pn||Hi===wn){var pn=Ng.bBox(this),Vn=Ng.getTranslate(this),kn;if(Hi===wn){var ea=pn.right+Vn.x,ua=$e.right+wt.x+Se-u-Ie+x;kn=ua-ea,kn>0&&(kn=0)}else if(Hi===Pn){var Vt=pn.left+Vn.x,_t=$e.left+wt.x+Se+u+Ie;kn=_t-Vt,kn<0&&(kn=0)}kn&&(Je<3?this.setAttribute("transform","translate("+kn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var xe={},Ce=kme[f],vt=Lme[f],nr=kme[h],ir=Lme[h],pr=Yt-Z;n?(a==="pixels"?(xe.y=b,xe.t=N*nr,xe.b=N*ir):(xe.t=xe.b=0,xe.yt=b+i*nr,xe.yb=b-i*ir),s==="pixels"?(xe.x=x,xe.l=Yt*Ce,xe.r=Yt*vt):(xe.l=pr*Ce,xe.r=pr*vt,xe.xl=x-o*Ce,xe.xr=x+o*vt)):(a==="pixels"?(xe.x=x,xe.l=N*Ce,xe.r=N*vt):(xe.l=xe.r=0,xe.xl=x+i*Ce,xe.xr=x-i*vt),s==="pixels"?(xe.y=1-b,xe.t=Yt*nr,xe.b=Yt*ir):(xe.t=pr*nr,xe.b=pr*ir,xe.yt=b-o*nr,xe.yb=b+o*ir));var oi=t.y<.5?"b":"t",di=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Jr={r:E.width-Rr-Ur,l:Rr+xe.r,b:E.height-ei-dt,t:ei+xe.b};C&&p?FI.autoMargin(r,t._id,xe):C?r._fullLayout._reservedMargin[t._id][oi]=Jr[oi]:p||n?r._fullLayout._reservedMargin[t._id][di]=Jr[di]:r._fullLayout._reservedMargin[t._id][oi]=Jr[oi]}return B0.syncOrAsync([FI.previousPromises,Nt,sr,$t,FI.previousPromises,wr],r)}function lyt(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,l;DI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),pV(e)},moveFn:function(u,c){e.attr("transform",o+Ug(u,c)),s=DI.align((n?t._uFrac:t._vFrac)+u/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=DI.align((n?t._vFrac:1-t._uFrac)-c/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=DI.getCursor(s,l,t.xanchor,t.yanchor);pV(e,f)},doneFn:function(){if(pV(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?Eme.call("_guiRestyle",r,u,t._traceIndex):Eme.call("_guiRelayout",r,u)}}})}function uyt(e,t,r){var n=t._levels,i=[],a=[],o,s,l=n.end+n.size/100,u=n.size,c=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=n.start+s*u,!(u>0?o>=l:o<=l));s++)o>c&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";Dme.exports={moduleType:"component",name:"colorbar",attributes:Q6(),supplyDefaults:kq(),draw:Rme().draw,hasColorbar:wq()}});var Ome=ye((Fsr,zme)=>{"use strict";zme.exports={moduleType:"component",name:"legend",layoutAttributes:wB(),supplyLayoutDefaults:SB(),draw:OB(),style:RB()}});var Bme=ye((zsr,qme)=>{"use strict";qme.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var Ume=ye((Osr,Nme)=>{"use strict";Nme.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var _V=ye((qsr,jme)=>{"use strict";var fyt=qa(),Hme=Dr(),yV=Hme.extendFlat,Vme=Hme.extendDeep;function Gme(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function hyt(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}jme.exports=function(t,r){var n,i=t.data,a=t.layout,o=Vme([],i),s=Vme({},a,Gme(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(n=0;n{"use strict";var dyt=vb().EventEmitter,vyt=qa(),pyt=Dr(),Wme=Ly(),gyt=_V(),myt=VP(),yyt=GP();function _yt(e,t){var r=new dyt,n=gyt(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=Wme.getDelay(i._fullLayout);setTimeout(function(){var l=myt(i),u=document.createElement("canvas");u.id=pyt.randstr(),r=yyt({format:t.format,width:i._fullLayout.width,height:i._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){i&&document.body.removeChild(i)}},s)}var o=Wme.getRedrawFunc(i);return vyt.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}Xme.exports=_yt});var Jme=ye((Nsr,Kme)=>{"use strict";var Yme=Ly(),xyt={getDelay:Yme.getDelay,getRedrawFunc:Yme.getRedrawFunc,clone:_V(),toSVG:VP(),svgToImg:GP(),toImage:Zme(),downloadImage:eU()};Kme.exports=xyt});var Qme=ye(Dy=>{"use strict";Dy.version=o6().version;dee();tne();var byt=qa(),d4=Dy.register=byt.register,bV=bde(),$me=Object.keys(bV);for(zI=0;zI<$me.length;zI++)_T=$me[zI],_T.charAt(0)!=="_"&&(Dy[_T]=bV[_T]),d4({moduleType:"apiMethod",name:_T,fn:bV[_T]});var _T,zI;d4(ppe());d4([Npe(),Qpe(),zf(),m0e(),L0e(),$0e(),yge(),Oge(),tme(),uV(),Ame(),tc(),Fme(),Ome(),vf(),lN()]);d4([Bme(),Ume()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(d4(window.PlotlyLocales),delete window.PlotlyLocales);Dy.Icons=HL();var OI=vf(),xV=Mc();Dy.Plots={resize:xV.resize,graphJson:xV.graphJson,sendDataToCloud:xV.sendDataToCloud};Dy.Fx={hover:OI.hover,unhover:OI.unhover,loneHover:OI.loneHover,loneUnhover:OI.loneUnhover};Dy.Snapshot=Jme();Dy.PlotSchema=_3()});var tye=ye((Vsr,eye)=>{"use strict";eye.exports=Qme()});var Qb=ye((Gsr,rye)=>{"use strict";rye.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Lm=ye((Hsr,oye)=>{"use strict";var Of=pf(),iye=df().axisHoverFormat,wyt=Qo().hovertemplateAttrs,Tyt=Qo().texttemplateAttrs,aye=Tu(),Ayt=ec(),nye=Qb(),Syt=Pd().pattern,e2=Ao().extendFlat,wV=Ayt({editType:"calc",arrayOk:!0,colorEditType:"style"}),Myt=Of.marker,Eyt=Myt.line,Cyt=e2({},Eyt.width,{dflt:0}),kyt=e2({width:Cyt,editType:"calc"},aye("marker.line")),Lyt=e2({line:kyt,editType:"calc"},aye("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Syt,cornerradius:{valType:"any",editType:"calc"}});oye.exports={x:Of.x,x0:Of.x0,dx:Of.dx,y:Of.y,y0:Of.y0,dy:Of.dy,xperiod:Of.xperiod,yperiod:Of.yperiod,xperiod0:Of.xperiod0,yperiod0:Of.yperiod0,xperiodalignment:Of.xperiodalignment,yperiodalignment:Of.yperiodalignment,xhoverformat:iye("x"),yhoverformat:iye("y"),text:Of.text,texttemplate:Tyt({editType:"plot"},{keys:nye.eventDataKeys}),hovertext:Of.hovertext,hovertemplate:wyt({},{keys:nye.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:e2({},wV,{}),insidetextfont:e2({},wV,{}),outsidetextfont:e2({},wV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:e2({},Of.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Lyt,offsetgroup:Of.offsetgroup,alignmentgroup:Of.alignmentgroup,selected:{marker:{opacity:Of.selected.marker.opacity,color:Of.selected.marker.color,editType:"style"},textfont:Of.selected.textfont,editType:"style"},unselected:{marker:{opacity:Of.unselected.marker.opacity,color:Of.unselected.marker.color,editType:"style"},textfont:Of.unselected.textfont,editType:"style"},zorder:Of.zorder}});var qI=ye((jsr,sye)=>{"use strict";sye.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var BI=ye((Wsr,cye)=>{"use strict";var Pyt=Ca(),lye=pv().hasColorscale,uye=Jh(),Iyt=Dr().coercePattern;cye.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=lye(t,"marker");s&&uye(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",Pyt.defaultLine),lye(t,"marker.line")&&uye(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),Iyt(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var r0=ye((Xsr,gye)=>{"use strict";var fye=Eo(),xT=Dr(),hye=Ca(),Ryt=qa(),Dyt=K3(),Fyt=Pg(),zyt=BI(),Oyt=Gb(),dye=Lm(),NI=xT.coerceFont;function qyt(e,t,r,n){function i(u,c){return xT.coerce(e,t,dye,u,c)}var a=Dyt(e,t,n,i);if(!a){t.visible=!1;return}Fyt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");pye(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),zyt(e,t,i,r,n);var s=(t.marker.line||{}).color,l=Ryt.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||hye.defaultLine,{axis:"y"}),l(e,t,s||hye.defaultLine,{axis:"x",inherit:"y"}),xT.coerceSelectionMarkerOpacity(t,i)}function Byt(e,t){var r,n;function i(s,l){return xT.coerce(n._input,n,dye,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&fye(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function pye(e,t,r,n,i,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,l=a.moduleHasConstrain!==!1,u=a.moduleHasCliponaxis!==!1,c=a.moduleHasTextangle!==!1,f=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(i)||i==="auto",v=d||i==="inside",x=d||i==="outside";if(v||x){var b=NI(n,"textfont",r.font),p=xT.extendFlat({},b),C=e.textfont&&e.textfont.color,E=!C;if(E&&delete p.color,NI(n,"insidetextfont",p),h){var A=xT.extendFlat({},b);E&&delete A.color,NI(n,"pathbar.textfont",A)}x&&NI(n,"outsidetextfont",b),o&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),l&&n("constraintext"),u&&n("cliponaxis"),c&&n("textangle"),n("texttemplate")}v&&f&&n("insidetextanchor")}gye.exports={supplyDefaults:qyt,crossTraceDefaults:Byt,handleText:pye,validateCornerradius:vye}});var TV=ye((Zsr,mye)=>{"use strict";var Nyt=qa(),Uyt=ho(),Vyt=Dr(),Gyt=qI(),Hyt=r0().validateCornerradius;mye.exports=function(e,t,r){function n(x,b){return Vyt.coerce(e,t,Gyt,x,b)}for(var i=!1,a=!1,o=!1,s={},l=n("barmode"),u=l==="group",c=0;c0&&!s[h]&&(o=!0),s[h]=!0),f.visible&&f.type==="histogram"){var d=Uyt.getFromId({_fullLayout:t},f[f.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!i){delete t.barmode;return}l!=="overlay"&&n("barnorm"),n("bargap",a&&!o?0:.2),n("bargroupgap");var v=n("barcornerradius");t.barcornerradius=Hyt(v)}});var v4=ye((Ysr,yye)=>{"use strict";var bT=Dr();yye.exports=function(t,r){for(var n=0;n{"use strict";var _ye=ho(),xye=Rg(),bye=pv().hasColorscale,wye=gv(),jyt=v4(),Wyt=z0();Tye.exports=function(t,r){var n=_ye.getFromId(t,r.xaxis||"x"),i=_ye.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=n.makeCalcdata(r,"x",f),s=i.makeCalcdata(r,"y"),l=xye(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y",f),s=n.makeCalcdata(r,"x"),l=xye(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),v=0;v{"use strict";var Xyt=Oa(),Zyt=Dr();function Yyt(e,t,r){var n=e._fullLayout,i=n["_"+r+"Text_minsize"];if(i){var a=n.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var l=s.transform;if(l){l.scale=a&&l.hide?0:i/l.fontSize;var u=Xyt.select(this).select("text");Zyt.setTransormAndDisplay(u,l)}})}}function Kyt(e,t,r){if(r.uniformtext.mode){var n=Sye(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var $yt=Eo(),Qyt=cd(),Eye=Dr().isArrayOrTypedArray;t2.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};t2.coerceNumber=function(e,t,r){if($yt(t)){t=+t;var n=e.min,i=e.max,a=n!==void 0&&ti;if(!a)return t}return r!==void 0?r:e.dflt};t2.coerceColor=function(e,t,r){return Qyt(t).isValid()?t:r!==void 0?r:e.dflt};t2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};t2.getValue=function(e,t){var r;return Eye(e)?t{"use strict";var p4=Oa(),e1t=Ca(),g4=So(),Cye=Dr(),kye=qa(),Lye=bv().resizeText,AV=Lm(),t1t=AV.textfont,r1t=AV.insidetextfont,i1t=AV.outsidetextfont,Qd=UI();function n1t(e){var t=p4.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");Lye(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",function(i){return i[0].trace.opacity}).each(function(i){(n.barmode==="stack"&&r>1||n.bargap===0&&n.bargroupgap===0&&!i[0].trace.marker.line.width)&&p4.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=p4.select(this),o=i[0].trace;Pye(a,o,e)}),kye.getComponentMethod("errorbars","style")(t)}function Pye(e,t,r){g4.pointStyle(e.selectAll("path"),t,r),Iye(e,t,r)}function Iye(e,t,r){e.selectAll("text").each(function(n){var i=p4.select(this),a=Cye.ensureUniformFontSize(r,Rye(i,n,t,r));g4.font(i,a)})}function a1t(e,t,r){var n=t[0].trace;n.selectedpoints?o1t(r,n,e):(Pye(r,n,e),kye.getComponentMethod("errorbars","style")(r))}function o1t(e,t,r){g4.selectedPointStyle(e.selectAll("path"),t),s1t(e.selectAll("text"),t,r)}function s1t(e,t,r){e.each(function(n){var i=p4.select(this),a;if(n.selected){a=Cye.ensureUniformFontSize(r,Rye(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),g4.font(i,a)}else g4.selectedTextStyle(i,t)})}function Rye(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=Oye(t,r);a=Fye(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=zye(r,t.i,i));return a}function Dye(e,t,r){return SV(t1t,e.textfont,t,r)}function Fye(e,t,r,n){var i=Dye(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(i={color:e1t.contrast(n),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),SV(r1t,e.insidetextfont,t,i)}function zye(e,t,r){var n=Dye(e,t,r);return SV(i1t,e.outsidetextfont,t,n)}function SV(e,t,r,n){t=t||{};var i=Qd.getValue(t.family,r),a=Qd.getValue(t.size,r),o=Qd.getValue(t.color,r),s=Qd.getValue(t.weight,r),l=Qd.getValue(t.style,r),u=Qd.getValue(t.variant,r),c=Qd.getValue(t.textcase,r),f=Qd.getValue(t.lineposition,r),h=Qd.getValue(t.shadow,r);return{family:Qd.coerceString(e.family,i,n.family),size:Qd.coerceNumber(e.size,a,n.size),color:Qd.coerceColor(e.color,o,n.color),weight:Qd.coerceString(e.weight,s,n.weight),style:Qd.coerceString(e.style,l,n.style),variant:Qd.coerceString(e.variant,u,n.variant),textcase:Qd.coerceString(e.variant,c,n.textcase),lineposition:Qd.coerceString(e.variant,f,n.lineposition),shadow:Qd.coerceString(e.variant,h,n.shadow)}}function Oye(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}qye.exports={style:n1t,styleTextPoints:Iye,styleOnSelect:a1t,getInsideTextFont:Fye,getOutsideTextFont:zye,getBarColor:Oye,resizeText:Lye}});var i2=ye((elr,Wye)=>{"use strict";var VI=Oa(),GI=Eo(),Fd=Dr(),l1t=ru(),u1t=Ca(),T_=So(),c1t=qa(),HI=ho().tickText,Bye=bv(),f1t=Bye.recordMinTextSize,h1t=Bye.clearMinTextSize,MV=N0(),wT=UI(),d1t=Qb(),Nye=Lm(),v1t=Nye.text,p1t=Nye.textposition,g1t=rp().appendArrayPointValue,Uv=d1t.TEXTPAD;function m1t(e){return e.id}function y1t(e){if(e.ids)return m1t}function EV(e){return(e>0)-(e<0)}function Pm(e,t){return e0}function x1t(e,t,r,n,i,a){var o=t.xaxis,s=t.yaxis,l=e._fullLayout,u=e._context.staticPlot;i||(i={mode:l.barmode,norm:l.barmode,gap:l.bargap,groupgap:l.bargroupgap},h1t("bar",l));var c=Fd.makeTraceGroups(n,r,"trace bars").each(function(f){var h=VI.select(this),d=f[0].trace,v=f[0].t,x=d.type==="waterfall",b=d.type==="funnel",p=d.type==="histogram",C=d.type==="bar",E=C||b,A=0;x&&d.connector.visible&&d.connector.mode==="between"&&(A=d.connector.line.width/2);var L=d.orientation==="h",_=Vye(i),k=Fd.ensureSingle(h,"g","points"),M=y1t(d),g=k.selectAll("g.point").data(Fd.identity,M);g.enter().append("g").classed("point",!0),g.exit().remove(),g.each(function(T,z){var O=VI.select(this),V=_1t(T,o,s,L),G=V[0][0],Z=V[0][1],H=V[1][0],N=V[1][1],j=(L?Z-G:N-H)===0;j&&E&&wT.getLineWidth(d,T)&&(j=!1),j||(j=!GI(G)||!GI(Z)||!GI(H)||!GI(N)),T.isBlank=j,j&&(L?Z=G:N=H),A&&!j&&(L?(G-=Pm(G,Z)*A,Z+=Pm(G,Z)*A):(H-=Pm(H,N)*A,N+=Pm(H,N)*A));var re,oe;if(d.type==="waterfall"){if(!j){var _e=d[T.dir].marker;re=_e.line.width,oe=_e.color}}else re=wT.getLineWidth(d,T),oe=T.mc||d.marker.color;function Me(Qe){var Et=VI.round(re/2%1,2);return i.gap===0&&i.groupgap===0?VI.round(Math.round(Qe)-Et,2):Qe}function ke(Qe,Et,er){return er&&Qe===Et?Qe:Math.abs(Qe-Et)>=2?Me(Qe):Qe>Et?Math.ceil(Qe):Math.floor(Qe)}var me=u1t.opacity(oe),ie=me<1||re>.01?Me:ke;e._context.staticPlot||(G=ie(G,Z,L),Z=ie(Z,G,L),H=ie(H,N,!L),N=ie(N,H,!L));var Se=L?o.c2p:s.c2p,Le;T.s0>0?Le=T._sMax:T.s0<0?Le=T._sMin:Le=T.s1>0?T._sMax:T._sMin;function Ae(Qe,Et){if(!Qe)return 0;var er=Math.abs(L?N-H:Z-G),Ut=Math.abs(L?Z-G:N-H),Ft=ie(Math.abs(Se(Le,!0)-Se(0,!0))),bt=T.hasB?Math.min(er/2,Ut/2):Math.min(er/2,Ft),yt;if(Et==="%"){var Yt=Math.min(50,Qe);yt=er*(Yt/100)}else yt=Qe;return ie(Math.max(Math.min(yt,bt),0))}var De=C||p?Ae(v.cornerradiusvalue,v.cornerradiusform):0,Pe,ge,Fe="M"+G+","+H+"V"+N+"H"+Z+"V"+H+"Z",ce=0;if(De&&T.s){var Ze=EV(T.s0)===0||EV(T.s)===EV(T.s0)?T.s1:T.s0;if(ce=ie(T.hasB?0:Math.abs(Se(Le,!0)-Se(Ze,!0))),ce0?Math.sqrt(ce*(2*De-ce)):0,Gt=ct>0?Math.max:Math.min;Pe="M"+G+","+H+"V"+(N-st*pt)+"H"+Gt(Z-(De-ce)*ct,G)+"A "+De+","+De+" 0 0 "+Wt+" "+Z+","+(N-De*pt-lt)+"V"+(H+De*pt+lt)+"A "+De+","+De+" 0 0 "+Wt+" "+Gt(Z-(De-ce)*ct,G)+","+(H+st*pt)+"Z"}else if(T.hasB)Pe="M"+(G+De*ct)+","+H+"A "+De+","+De+" 0 0 "+Wt+" "+G+","+(H+De*pt)+"V"+(N-De*pt)+"A "+De+","+De+" 0 0 "+Wt+" "+(G+De*ct)+","+N+"H"+(Z-De*ct)+"A "+De+","+De+" 0 0 "+Wt+" "+Z+","+(N-De*pt)+"V"+(H+De*pt)+"A "+De+","+De+" 0 0 "+Wt+" "+(Z-De*ct)+","+H+"Z";else{ge=Math.abs(N-H)+ce;var Nt=ge0?Math.sqrt(ce*(2*De-ce)):0,sr=pt>0?Math.max:Math.min;Pe="M"+(G+Nt*ct)+","+H+"V"+sr(N-(De-ce)*pt,H)+"A "+De+","+De+" 0 0 "+Wt+" "+(G+De*ct-$t)+","+N+"H"+(Z-De*ct+$t)+"A "+De+","+De+" 0 0 "+Wt+" "+(Z-Nt*ct)+","+sr(N-(De-ce)*pt,H)+"V"+H+"Z"}}else Pe=Fe}else Pe=Fe;var wr=Uye(Fd.ensureSingle(O,"path"),l,i,a);if(wr.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Z-G)*(N-H))||j&&e._context.staticPlot?"M0,0Z":Pe).call(T_.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&_){var ur=T_.makePointStyleFns(d);T_.singlePointStyle(T,wr,d,ur,e)}b1t(e,t,O,f,z,G,Z,H,N,De,ce,i,a),t.layerClipId&&T_.hideOutsideRangePoint(T,O.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;T_.setClipUrl(h,P?null:t.layerClipId,e)});c1t.getComponentMethod("errorbars","plot")(e,c,t,i)}function b1t(e,t,r,n,i,a,o,s,l,u,c,f,h){var d=t.xaxis,v=t.yaxis,x=e._fullLayout,b;function p(ge,Fe,ce){var Ze=Fd.ensureSingle(ge,"text").text(Fe).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(T_.font,ce).call(l1t.convertToTspans,e);return Ze}var C=n[0].trace,E=C.orientation==="h",A=A1t(x,n,i,d,v);b=S1t(C,i);var L=f.mode==="stack"||f.mode==="relative",_=n[i],k=!L||_._outmost,M=_.hasB,g=u&&u-c>Uv;if(!A||b==="none"||(_.isBlank||a===o||s===l)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=x.font,T=MV.getBarColor(n[i],C),z=MV.getInsideTextFont(C,i,P,T),O=MV.getOutsideTextFont(C,i,P),V=C.insidetextanchor||"end",G=r.datum();E?d.type==="log"&&G.s0<=0&&(d.range[0]0&&Me>0,ie;g?M?ie=r2(N-2*u,j,_e,Me,E)||r2(N,j-2*u,_e,Me,E):E?ie=r2(N-(u-c),j,_e,Me,E)||r2(N,j-2*(u-c),_e,Me,E):ie=r2(N,j-(u-c),_e,Me,E)||r2(N-2*(u-c),j,_e,Me,E):ie=r2(N,j,_e,Me,E),me&&ie?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){ke=Fd.ensureUniformFontSize(e,b==="outside"?O:z),re=p(r,A,ke);var Se=re.attr("transform");if(re.attr("transform",""),oe=T_.bBox(re.node()),_e=oe.width,Me=oe.height,re.attr("transform",Se),_e<=0||Me<=0){re.remove();return}}var Le=C.textangle,Ae,De;b==="outside"?(De=C.constraintext==="both"||C.constraintext==="outside",Ae=T1t(a,o,s,l,oe,{isHorizontal:E,constrained:De,angle:Le})):(De=C.constraintext==="both"||C.constraintext==="inside",Ae=jye(a,o,s,l,oe,{isHorizontal:E,constrained:De,angle:Le,anchor:V,hasB:M,r:u,overhead:c})),Ae.fontSize=ke.size,f1t(C.type==="histogram"?"bar":C.type,Ae,x),_.transform=Ae;var Pe=Uye(re,x,f,h);Fd.setTransormAndDisplay(Pe,Ae)}function r2(e,t,r,n,i){if(e<0||t<0)return!1;var a=r<=e&&n<=t,o=r<=t&&n<=e,s=i?e>=r*(t/n):t>=n*(e/r);return a||o||s}function Gye(e){return e==="auto"?0:e}function Hye(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function jye(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=a.anchor,c=u==="end",f=u==="start",h=a.leftToRight||0,d=(h+1)/2,v=1-d,x=a.hasB,b=a.r,p=a.overhead,C=i.width,E=i.height,A=Math.abs(t-e),L=Math.abs(n-r),_=A>2*Uv&&L>2*Uv?Uv:0;A-=2*_,L-=2*_;var k=Gye(l);l==="auto"&&!(C<=A&&E<=L)&&(C>A||E>L)&&(!(C>L||E>A)||CUv){var T=w1t(e,t,r,n,M,b,p,o,x);g=T.scale,P=T.pad}else g=1,s&&(g=Math.min(1,A/M.x,L/M.y)),P=0;var z=i.left*v+i.right*d,O=(i.top+i.bottom)/2,V=(e+Uv)*v+(t-Uv)*d,G=(r+n)/2,Z=0,H=0;if(f||c){var N=(o?M.x:M.y)/2;b&&(c||x)&&(_+=P);var j=o?Pm(e,t):Pm(r,n);o?f?(V=e+j*_,Z=-j*N):(V=t-j*_,Z=j*N):f?(G=r+j*_,H=-j*N):(G=n-j*_,H=j*N)}return{textX:z,textY:O,targetX:V,targetY:G,anchorX:Z,anchorY:H,scale:g,rotate:k}}function w1t(e,t,r,n,i,a,o,s,l){var u=Math.max(0,Math.abs(t-e)-2*Uv),c=Math.max(0,Math.abs(n-r)-2*Uv),f=a-Uv,h=o?f-Math.sqrt(f*f-(f-o)*(f-o)):f,d=l?f*2:s?f-o:2*h,v=l?f*2:s?2*h:f-o,x,b,p,C,E;return i.y/i.x>=c/(u-d)?C=c/i.y:i.y/i.x<=(c-v)/u?C=u/i.x:!l&&s?(x=i.x*i.x+i.y*i.y/4,b=-2*i.x*(u-f)-i.y*(c/2-f),p=(u-f)*(u-f)+(c/2-f)*(c/2-f)-f*f,C=(-b+Math.sqrt(b*b-4*x*p))/(2*x)):l?(x=(i.x*i.x+i.y*i.y)/4,b=-i.x*(u/2-f)-i.y*(c/2-f),p=(u/2-f)*(u/2-f)+(c/2-f)*(c/2-f)-f*f,C=(-b+Math.sqrt(b*b-4*x*p))/(2*x)):(x=i.x*i.x/4+i.y*i.y,b=-i.x*(u/2-f)-2*i.y*(c-f),p=(u/2-f)*(u/2-f)+(c-f)*(c-f)-f*f,C=(-b+Math.sqrt(b*b-4*x*p))/(2*x)),C=Math.min(1,C),s?E=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(c-i.y*C)/2)*(f-(c-i.y*C)/2)))-o):E=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(u-i.x*C)/2)*(f-(u-i.x*C)/2)))-o),{scale:C,pad:E}}function T1t(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=i.width,c=i.height,f=Math.abs(t-e),h=Math.abs(n-r),d;o?d=h>2*Uv?Uv:0:d=f>2*Uv?Uv:0;var v=1;s&&(v=o?Math.min(1,h/c):Math.min(1,f/u));var x=Gye(l),b=Hye(i,x),p=(o?b.x:b.y)/2,C=(i.left+i.right)/2,E=(i.top+i.bottom)/2,A=(e+t)/2,L=(r+n)/2,_=0,k=0,M=o?Pm(t,e):Pm(r,n);return o?(A=t-M*d,_=M*p):(L=n+M*d,k=-M*p),{textX:C,textY:E,targetX:A,targetY:L,anchorX:_,anchorY:k,scale:v,rotate:x}}function A1t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=M1t(e,t,r,n,i):a.textinfo?s=E1t(t,r,n,i):s=wT.getValue(a.text,r),wT.coerceString(v1t,s)}function S1t(e,t){var r=wT.getValue(e.textposition,t);return wT.coerceEnumerated(p1t,r)}function M1t(e,t,r,n,i){var a=t[0].trace,o=Fd.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",l=a.type==="waterfall",u=a.type==="funnel",c=a.orientation==="h",f,h,d,v;c?(f="y",h=i,d="x",v=n):(f="x",h=n,d="y",v=i);function x(_){return HI(h,h.c2l(_),!0).text}function b(_){return HI(v,v.c2l(_),!0).text}var p=t[r],C={};C.label=p.p,C.labelLabel=C[f+"Label"]=x(p.p);var E=Fd.castOption(a,p.i,"text");(E===0||E)&&(C.text=E),C.value=p.s,C.valueLabel=C[d+"Label"]=b(p.s);var A={};g1t(A,a,p.i),(s||A.x===void 0)&&(A.x=c?C.value:C.label),(s||A.y===void 0)&&(A.y=c?C.label:C.value),(s||A.xLabel===void 0)&&(A.xLabel=c?C.valueLabel:C.labelLabel),(s||A.yLabel===void 0)&&(A.yLabel=c?C.labelLabel:C.valueLabel),l&&(C.delta=+p.rawS||p.s,C.deltaLabel=b(C.delta),C.final=p.v,C.finalLabel=b(C.final),C.initial=C.final-C.delta,C.initialLabel=b(C.initial)),u&&(C.value=p.s,C.valueLabel=b(C.value),C.percentInitial=p.begR,C.percentInitialLabel=Fd.formatPercent(p.begR),C.percentPrevious=p.difR,C.percentPreviousLabel=Fd.formatPercent(p.difR),C.percentTotal=p.sumR,C.percenTotalLabel=Fd.formatPercent(p.sumR));var L=Fd.castOption(a,p.i,"customdata");return L&&(C.customdata=L),Fd.texttemplateString(o,C,e._d3locale,A,C,a._meta||{})}function E1t(e,t,r,n){var i=e[0].trace,a=i.orientation==="h",o=i.type==="waterfall",s=i.type==="funnel";function l(L){var _=a?n:r;return HI(_,L,!0).text}function u(L){var _=a?r:n;return HI(_,+L,!0).text}var c=i.textinfo,f=e[t],h=c.split("+"),d=[],v,x=function(L){return h.indexOf(L)!==-1};if(x("label")&&d.push(l(e[t].p)),x("text")&&(v=Fd.castOption(i,f.i,"text"),(v===0||v)&&d.push(v)),o){var b=+f.rawS||f.s,p=f.v,C=p-b;x("initial")&&d.push(u(C)),x("delta")&&d.push(u(b)),x("final")&&d.push(u(p))}if(s){x("value")&&d.push(u(f.s));var E=0;x("percent initial")&&E++,x("percent previous")&&E++,x("percent total")&&E++;var A=E>1;x("percent initial")&&(v=Fd.formatPercent(f.begR),A&&(v+=" of initial"),d.push(v)),x("percent previous")&&(v=Fd.formatPercent(f.difR),A&&(v+=" of previous"),d.push(v)),x("percent total")&&(v=Fd.formatPercent(f.sumR),A&&(v+=" of total"),d.push(v))}return d.join("
")}Wye.exports={plot:x1t,toMoveInsideBar:jye}});var TT=ye((tlr,Kye)=>{"use strict";var m4=vf(),C1t=qa(),Xye=Ca(),k1t=Dr().fillText,L1t=UI().getLineWidth,CV=ho().hoverLabelText,P1t=hs().BADNUM;function I1t(e,t,r,n,i){var a=Zye(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=Yye(s,l),C1t.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function Zye(e,t,r,n,i){var a=e.cd,o=a[0].trace,s=a[0].t,l=n==="closest",u=o.type==="waterfall",c=e.maxHoverDistance,f=e.maxSpikeDistance,h,d,v,x,b,p,C;o.orientation==="h"?(h=r,d=t,v="y",x="x",b=G,p=z):(h=t,d=r,v="x",x="y",p=G,b=z);var E=o[v+"period"],A=l||E;function L(ie){return k(ie,-1)}function _(ie){return k(ie,1)}function k(ie,Se){var Le=ie.w;return ie[v]+Se*Le/2}function M(ie){return ie[v+"End"]-ie[v+"Start"]}var g=l?L:E?function(ie){return ie.p-M(ie)/2}:function(ie){return Math.min(L(ie),ie.p-s.bardelta/2)},P=l?_:E?function(ie){return ie.p+M(ie)/2}:function(ie){return Math.max(_(ie),ie.p+s.bardelta/2)};function T(ie,Se,Le){return i.finiteRange&&(Le=0),m4.inbox(ie-h,Se-h,Le+Math.min(1,Math.abs(Se-ie)/C)-1)}function z(ie){return T(g(ie),P(ie),c)}function O(ie){return T(L(ie),_(ie),f)}function V(ie){var Se=ie[x];if(u){var Le=Math.abs(ie.rawS)||0;d>0?Se+=Le:d<0&&(Se-=Le)}return Se}function G(ie){var Se=d,Le=ie.b,Ae=V(ie);return m4.inbox(Le-Se,Ae-Se,c+(Ae-Se)/(Ae-Le)-1)}function Z(ie){var Se=d,Le=ie.b,Ae=V(ie);return m4.inbox(Le-Se,Ae-Se,f+(Ae-Se)/(Ae-Le)-1)}var H=e[v+"a"],N=e[x+"a"];C=Math.abs(H.r2c(H.range[1])-H.r2c(H.range[0]));function j(ie){return(b(ie)+p(ie))/2}var re=m4.getDistanceFunction(n,b,p,j);if(m4.getClosest(a,re,e),e.index!==!1&&a[e.index].p!==P1t){A||(g=function(ie){return Math.min(L(ie),ie.p-s.bargroupwidth/2)},P=function(ie){return Math.max(_(ie),ie.p+s.bargroupwidth/2)});var oe=e.index,_e=a[oe],Me=o.base?_e.b+_e.s:_e.s;e[x+"0"]=e[x+"1"]=N.c2p(_e[x],!0),e[x+"LabelVal"]=Me;var ke=s.extents[s.extents.round(_e.p)];e[v+"0"]=H.c2p(l?g(_e):ke[0],!0),e[v+"1"]=H.c2p(l?P(_e):ke[1],!0);var me=_e.orig_p!==void 0;return e[v+"LabelVal"]=me?_e.orig_p:_e.p,e.labelLabel=CV(H,e[v+"LabelVal"],o[v+"hoverformat"]),e.valueLabel=CV(N,e[x+"LabelVal"],o[x+"hoverformat"]),e.baseLabel=CV(N,_e.b,o[x+"hoverformat"]),e.spikeDistance=(Z(_e)+O(_e))/2,e[v+"Spike"]=H.c2p(_e.p,!0),k1t(_e,o,e),e.hovertemplate=o.hovertemplate,e}}function Yye(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=L1t(e,t);if(Xye.opacity(r))return r;if(Xye.opacity(n)&&i)return n}Kye.exports={hoverPoints:I1t,hoverOnBars:Zye,getTraceColor:Yye}});var $ye=ye((rlr,Jye)=>{"use strict";Jye.exports=function(t,r,n){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var AT=ye((ilr,Qye)=>{"use strict";Qye.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=n[0].trace,s=o.type==="funnel",l=o.orientation==="h",u=[],c;if(r===!1)for(c=0;c{"use strict";e1e.exports={attributes:Lm(),layoutAttributes:qI(),supplyDefaults:r0().supplyDefaults,crossTraceDefaults:r0().crossTraceDefaults,supplyLayoutDefaults:TV(),calc:Aye(),crossTraceCalc:Hb().crossTraceCalc,colorbar:$d(),arraysToCalcdata:v4(),plot:i2().plot,style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:TT().hoverPoints,eventData:$ye(),selectPoints:AT(),moduleType:"trace",name:"bar",basePlotModule:vh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var i1e=ye((alr,r1e)=>{"use strict";r1e.exports=t1e()});var y4=ye((olr,s1e)=>{"use strict";var D1t=Eg(),U0=pf(),n1e=Lm(),F1t=Eh(),a1e=df().axisHoverFormat,z1t=Qo().hovertemplateAttrs,Fy=Ao().extendFlat,ST=U0.marker,o1e=ST.line;s1e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:U0.xperiod,yperiod:U0.yperiod,xperiod0:U0.xperiod0,yperiod0:U0.yperiod0,xperiodalignment:U0.xperiodalignment,yperiodalignment:U0.yperiodalignment,xhoverformat:a1e("x"),yhoverformat:a1e("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Fy({},ST.symbol,{arrayOk:!1,editType:"plot"}),opacity:Fy({},ST.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Fy({},ST.angle,{arrayOk:!1,editType:"calc"}),size:Fy({},ST.size,{arrayOk:!1,editType:"calc"}),color:Fy({},ST.color,{arrayOk:!1,editType:"style"}),line:{color:Fy({},o1e.color,{arrayOk:!1,dflt:F1t.defaultLine,editType:"style"}),width:Fy({},o1e.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:D1t(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:n1e.offsetgroup,alignmentgroup:n1e.alignmentgroup,selected:{marker:U0.selected.marker,editType:"style"},unselected:{marker:U0.unselected.marker,editType:"style"},text:Fy({},U0.text,{}),hovertext:Fy({},U0.hovertext,{}),hovertemplate:z1t({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:U0.zorder}});var _4=ye((slr,l1e)=>{"use strict";l1e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var b4=ye((llr,h1e)=>{"use strict";var V0=Dr(),O1t=qa(),q1t=Ca(),B1t=Pg(),N1t=Gb(),u1e=L3(),x4=y4();function U1t(e,t,r,n){function i(v,x){return V0.coerce(e,t,x4,v,x)}if(c1e(e,t,i,n),t.visible!==!1){B1t(e,t,n,i),i("xhoverformat"),i("yhoverformat");var a=t._hasPreCompStats;a&&(i("lowerfence"),i("upperfence")),i("line.color",(e.marker||{}).color||r),i("line.width"),i("fillcolor",q1t.addOpacity(t.line.color,.5));var o=!1;if(a){var s=i("mean"),l=i("sd");s&&s.length&&(o=!0,l&&l.length&&(o="sd"))}i("whiskerwidth");var u=i("sizemode"),c;u==="quartiles"&&(c=i("boxmean",o)),i("showwhiskers",u==="quartiles"),(u==="sd"||c==="sd")&&i("sdmultiple"),i("width"),i("quartilemethod");var f=!1;if(a){var h=i("notchspan");h&&h.length&&(f=!0)}else V0.validate(e.notchwidth,x4.notchwidth)&&(f=!0);var d=i("notched",f);d&&i("notchwidth"),f1e(e,t,i,{prefix:"box"}),i("zorder")}}function c1e(e,t,r,n){function i(P){var T=0;return P&&P.length&&(T+=1,V0.isArrayOrTypedArray(P[0])&&P[0].length&&(T+=1)),T}function a(P){return V0.validate(e[P],x4[P])}var o=r("y"),s=r("x"),l;if(t.type==="box"){var u=r("q1"),c=r("median"),f=r("q3");t._hasPreCompStats=u&&u.length&&c&&c.length&&f&&f.length,l=Math.min(V0.minRowLength(u),V0.minRowLength(c),V0.minRowLength(f))}var h=i(o),d=i(s),v=h&&V0.minRowLength(o),x=d&&V0.minRowLength(s),b=n.calendar,p={autotypenumbers:n.autotypenumbers},C,E;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var A=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!A?C="h":C="v",E=l;break;case"10":C="v",E=Math.min(l,x);break;case"20":C="h",E=Math.min(l,s.length);break;case"01":C="h",E=Math.min(l,v);break;case"02":C="v",E=Math.min(l,o.length);break;case"12":C="v",E=Math.min(l,x,o.length);break;case"21":C="h",E=Math.min(l,s.length,v);break;case"11":E=0;break;case"22":var _=!1,k;for(k=0;k0?(C="v",d>0?E=Math.min(x,v):E=Math.min(v)):d>0?(C="h",E=Math.min(x)):E=0;if(!E){t.visible=!1;return}t._length=E;var M=r("orientation",C);t._hasPreCompStats?M==="v"&&d===0?(r("x0",0),r("dx",1)):M==="h"&&h===0&&(r("y0",0),r("dy",1)):M==="v"&&d===0?r("x0"):M==="h"&&h===0&&r("y0");var g=O1t.getComponentMethod("calendars","handleTraceDefaults");g(e,t,["x","y"],n)}function f1e(e,t,r,n){var i=n.prefix,a=V0.coerce2(e,t,x4,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var l=r(i+"points",s);l?(r("jitter",l==="all"?.3:0),r("pointpos",l==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),l==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var u=r("hoveron");(u==="all"||u.indexOf("points")!==-1)&&r("hovertemplate"),V0.coerceSelectionMarkerOpacity(t,r)}function V1t(e,t){var r,n;function i(l){return V0.coerce(n._input,n,x4,l)}for(var a=0;a{"use strict";var G1t=qa(),H1t=Dr(),j1t=_4();function d1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var LV=Eo(),WI=ho(),X1t=Rg(),ph=Dr(),i0=hs().BADNUM,zy=ph._;T1e.exports=function(t,r){var n=t._fullLayout,i=WI.getFromId(t,r.xaxis||"x"),a=WI.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",l,u,c,f,h,d,v;r.orientation==="h"?(c=i,f="x",h=a,d="y",v=!!r.yperiodalignment):(c=a,f="y",h=i,d="x",v=!!r.xperiodalignment);var x=Z1t(r,d,h,n[s]),b=x[0],p=x[1],C=ph.distinctVals(b,h),E=C.vals,A=C.minDiff/2,L,_,k,M,g,P,T=(r.boxpoints||r.points)==="all"?ph.identity:function(Wt){return Wt.vL.uf};if(r._hasPreCompStats){var z=r[f],O=function(Wt){return c.d2c((r[Wt]||[])[l])},V=1/0,G=-1/0;for(l=0;l=L.q1&&L.q3>=L.med){var H=O("lowerfence");L.lf=H!==i0&&H<=L.q1?H:y1e(L,k,M);var N=O("upperfence");L.uf=N!==i0&&N>=L.q3?N:_1e(L,k,M);var j=O("mean");L.mean=j!==i0?j:M?ph.mean(k,M):(L.q1+L.q3)/2;var re=O("sd");L.sd=j!==i0&&re>=0?re:M?ph.stdev(k,M,L.mean):L.q3-L.q1,L.lo=x1e(L),L.uo=b1e(L);var oe=O("notchspan");oe=oe!==i0&&oe>0?oe:w1e(L,M),L.ln=L.med-oe,L.un=L.med+oe;var _e=L.lf,Me=L.uf;r.boxpoints&&k.length&&(_e=Math.min(_e,k[0]),Me=Math.max(Me,k[M-1])),r.notched&&(_e=Math.min(_e,L.ln),Me=Math.max(Me,L.un)),L.min=_e,L.max=Me}else{ph.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` -`));var ke;L.med!==i0?ke=L.med:L.q1!==i0?L.q3!==i0?ke=(L.q1+L.q3)/2:ke=L.q1:L.q3!==i0?ke=L.q3:ke=0,L.med=ke,L.q1=L.q3=ke,L.lf=L.uf=ke,L.mean=L.sd=ke,L.ln=L.un=ke,L.min=L.max=ke}V=Math.min(V,L.min),G=Math.max(G,L.max),L.pts2=_.filter(T),o.push(L)}}r._extremes[c._id]=WI.findExtremes(c,[V,G],{padded:!0})}else{var me=c.makeCalcdata(r,f),ie=Y1t(E,A),Se=E.length,Le=K1t(Se);for(l=0;l=0&&Ae0){if(L={},L.pos=L[d]=E[l],_=L.pts=Le[l].sort(g1e),k=L[f]=_.map(m1e),M=k.length,L.min=k[0],L.max=k[M-1],L.mean=ph.mean(k,M),L.sd=ph.stdev(k,M,L.mean)*r.sdmultiple,L.med=ph.interp(k,.5),M%2&&(Fe||ce)){var Ze,ct;Fe?(Ze=k.slice(0,M/2),ct=k.slice(M/2+1)):ce&&(Ze=k.slice(0,M/2+1),ct=k.slice(M/2)),L.q1=ph.interp(Ze,.5),L.q3=ph.interp(ct,.5)}else L.q1=ph.interp(k,.25),L.q3=ph.interp(k,.75);L.lf=y1e(L,k,M),L.uf=_1e(L,k,M),L.lo=x1e(L),L.uo=b1e(L);var pt=w1e(L,M);L.ln=L.med-pt,L.un=L.med+pt,De=Math.min(De,L.ln),Pe=Math.max(Pe,L.un),L.pts2=_.filter(T),o.push(L)}r.notched&&ph.isTypedArray(me)&&(me=Array.from(me)),r._extremes[c._id]=WI.findExtremes(c,r.notched?me.concat([De,Pe]):me,{padded:!0})}return J1t(o,r),o.length>0?(o[0].t={num:n[s],dPos:A,posLetter:d,valLetter:f,labels:{med:zy(t,"median:"),min:zy(t,"min:"),q1:zy(t,"q1:"),q3:zy(t,"q3:"),max:zy(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?zy(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):zy(t,"mean:"),lf:zy(t,"lower fence:"),uf:zy(t,"upper fence:")}},n[s]++,o):[{t:{empty:!0}}]};function Z1t(e,t,r,n){var i=t in e,a=t+"0"in e,o="d"+t in e;if(i||a&&o){var s=r.makeCalcdata(e,t),l=X1t(e,r,t,s).vals;return[l,s]}var u;a?u=e[t+"0"]:"name"in e&&(r.type==="category"||LV(e.name)&&["linear","log"].indexOf(r.type)!==-1||ph.isDateTime(e.name)&&r.type==="date")?u=e.name:u=n;for(var c=r.type==="multicategory"?r.r2c_just_indices(u):r.d2c(u,0,e[t+"calendar"]),f=e._length,h=new Array(f),d=0;d{"use strict";var A1e=ho(),$1t=Dr(),Q1t=Bb().getAxisGroup,S1e=["v","h"];function e_t(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,C=1-a[e+"gap"],E=1-a[e+"groupgap"];for(l=0;l0;if(k==="positive"?(N=M*(_?1:.5),oe=re,j=oe=P):k==="negative"?(N=oe=P,j=M*(_?1:.5),_e=re):(N=j=M,oe=_e=re),Le){var Ae=A.pointpos,De=A.jitter,Pe=A.marker.size/2,ge=0;Ae+De>=0&&(ge=re*(Ae+De),ge>N?(Se=!0,me=Pe,Me=ge):ge>oe&&(me=Pe,Me=N)),ge<=N&&(Me=N);var Fe=0;Ae-De<=0&&(Fe=-re*(Ae-De),Fe>j?(Se=!0,ie=Pe,ke=Fe):Fe>_e&&(ie=Pe,ke=j)),Fe<=j&&(ke=j)}else Me=N,ke=j;var ce=new Array(c.length);for(u=0;u{"use strict";var MT=Oa(),n2=Dr(),t_t=So(),C1e=5,r_t=.01;function i_t(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;n2.makeTraceGroups(n,r,"trace boxes").each(function(s){var l=MT.select(this),u=s[0],c=u.t,f=u.trace;if(c.wdPos=c.bdPos*f.whiskerwidth,f.visible!==!0||c.empty){l.remove();return}var h,d;f.orientation==="h"?(h=o,d=a):(h=a,d=o),k1e(l,{pos:h,val:d},f,c,i),L1e(l,{x:a,y:o},f,c),P1e(l,{pos:h,val:d},f,c)})}function k1e(e,t,r,n,i){var a=r.orientation==="h",o=t.val,s=t.pos,l=!!s.rangebreaks,u=n.bPos,c=n.wdPos||0,f=n.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,v=r.notched||!1,x=v?1-2*r.notchwidth:1,b,p;Array.isArray(n.bdPos)?(b=n.bdPos[0],p=n.bdPos[1]):(b=n.bdPos,p=n.bdPos);var C=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?n2.identity:[]);C.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),C.exit().remove(),C.each(function(E){if(E.empty)return MT.select(this).attr("d","M0,0Z");var A=s.c2l(E.pos+u,!0),L=s.l2p(A-b)+f,_=s.l2p(A+p)+f,k=l?(L+_)/2:s.l2p(A)+f,M=r.whiskerwidth,g=l?L*M+(1-M)*k:s.l2p(A-c)+f,P=l?_*M+(1-M)*k:s.l2p(A+c)+f,T=s.l2p(A-b*x)+f,z=s.l2p(A+p*x)+f,O=r.sizemode==="sd",V=o.c2p(O?E.mean-E.sd:E.q1,!0),G=O?o.c2p(E.mean+E.sd,!0):o.c2p(E.q3,!0),Z=n2.constrain(O?o.c2p(E.mean,!0):o.c2p(E.med,!0),Math.min(V,G)+1,Math.max(V,G)-1),H=E.lf===void 0||r.boxpoints===!1||O,N=o.c2p(H?E.min:E.lf,!0),j=o.c2p(H?E.max:E.uf,!0),re=o.c2p(E.ln,!0),oe=o.c2p(E.un,!0);a?MT.select(this).attr("d","M"+Z+","+T+"V"+z+"M"+V+","+L+"V"+_+(v?"H"+re+"L"+Z+","+z+"L"+oe+","+_:"")+"H"+G+"V"+L+(v?"H"+oe+"L"+Z+","+T+"L"+re+","+L:"")+"Z"+(d?"M"+V+","+k+"H"+N+"M"+G+","+k+"H"+j+(h===0?"":"M"+N+","+g+"V"+P+"M"+j+","+g+"V"+P):"")):MT.select(this).attr("d","M"+T+","+Z+"H"+z+"M"+L+","+V+"H"+_+(v?"V"+re+"L"+z+","+Z+"L"+_+","+oe:"")+"V"+G+"H"+L+(v?"V"+oe+"L"+T+","+Z+"L"+L+","+re:"")+"Z"+(d?"M"+k+","+V+"V"+N+"M"+k+","+G+"V"+j+(h===0?"":"M"+g+","+N+"H"+P+"M"+g+","+j+"H"+P):""))})}function L1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,l=r.boxpoints||r.points;n2.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=n,d.trace=r}),h},c=e.selectAll("g.points").data(l?u:[]);c.enter().append("g").attr("class","points"),c.exit().remove();var f=c.selectAll("path").data(function(h){var d,v=h.pts2,x=Math.max((h.max-h.min)/10,h.q3-h.q1),b=x*1e-9,p=x*r_t,C=[],E=0,A;if(r.jitter){if(x===0)for(E=1,C=new Array(v.length),d=0;dh.lo&&(P.so=!0)}return v});f.enter().append("path").classed("point",!0),f.exit().remove(),f.call(t_t.translatePoints,i,a)}function P1e(e,t,r,n){var i=t.val,a=t.pos,o=!!a.rangebreaks,s=n.bPos,l=n.bPosPxOffset||0,u=r.boxmean||(r.meanline||{}).visible,c,f;Array.isArray(n.bdPos)?(c=n.bdPos[0],f=n.bdPos[1]):(c=n.bdPos,f=n.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?n2.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var v=a.c2l(d.pos+s,!0),x=a.l2p(v-c)+l,b=a.l2p(v+f)+l,p=o?(x+b)/2:a.l2p(v)+l,C=i.c2p(d.mean,!0),E=i.c2p(d.mean-d.sd,!0),A=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?MT.select(this).attr("d","M"+C+","+x+"V"+b+(u==="sd"?"m0,0L"+E+","+p+"L"+C+","+x+"L"+A+","+p+"Z":"")):MT.select(this).attr("d","M"+x+","+C+"H"+b+(u==="sd"?"m0,0L"+p+","+E+"L"+x+","+C+"L"+p+","+A+"Z":""))})}I1e.exports={plot:i_t,plotBoxAndWhiskers:k1e,plotPoints:L1e,plotBoxMean:P1e}});var YI=ye((dlr,R1e)=>{"use strict";var IV=Oa(),RV=Ca(),DV=So();function n_t(e,t,r){var n=r||IV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=IV.select(this),o=i[0].trace,s=o.line.width;function l(f,h,d,v){f.style("stroke-width",h+"px").call(RV.stroke,d).call(RV.fill,v)}var u=a.selectAll("path.box");if(o.type==="candlestick")u.each(function(f){if(!f.empty){var h=IV.select(this),d=o[f.dir];l(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!f.selected?.3:1)}});else{l(u,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(RV.stroke,o.line.color);var c=a.selectAll("path.point");DV.pointStyle(c,o,e)}})}function a_t(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?DV.selectedPointStyle(i,n):DV.pointStyle(i,n,e)}R1e.exports={style:n_t,styleOnSelect:a_t}});var zV=ye((vlr,O1e)=>{"use strict";var o_t=ho(),FV=Dr(),A_=vf(),D1e=Ca(),s_t=FV.fillText;function l_t(e,t,r,n){var i=e.cd,a=i[0].trace,o=a.hoveron,s=[],l;return o.indexOf("boxes")!==-1&&(s=s.concat(F1e(e,t,r,n))),o.indexOf("points")!==-1&&(l=z1e(e,t,r)),n==="closest"?l?[l]:s:(l&&s.push(l),s)}function F1e(e,t,r,n){var i=e.cd,a=e.xa,o=e.ya,s=i[0].trace,l=i[0].t,u=s.type==="violin",c,f,h,d,v,x,b,p,C,E,A,L=l.bdPos,_,k,M=l.wHover,g=function(Pe){return h.c2l(Pe.pos)+l.bPos-h.c2l(x)};u&&s.side!=="both"?(s.side==="positive"&&(C=function(Pe){var ge=g(Pe);return A_.inbox(ge,ge+M,E)},_=L,k=0),s.side==="negative"&&(C=function(Pe){var ge=g(Pe);return A_.inbox(ge-M,ge,E)},_=0,k=L)):(C=function(Pe){var ge=g(Pe);return A_.inbox(ge-M,ge+M,E)},_=k=L);var P;u?P=function(Pe){return A_.inbox(Pe.span[0]-v,Pe.span[1]-v,E)}:P=function(Pe){return A_.inbox(Pe.min-v,Pe.max-v,E)},s.orientation==="h"?(v=t,x=r,b=P,p=C,c="y",h=o,f="x",d=a):(v=r,x=t,b=C,p=P,c="x",h=a,f="y",d=o);var T=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));E=e.maxHoverDistance-T,A=e.maxSpikeDistance-T;function z(Pe){return(b(Pe)+p(Pe))/2}var O=A_.getDistanceFunction(n,b,p,z);if(A_.getClosest(i,O,e),e.index===!1)return[];var V=i[e.index],G=s.line.color,Z=(s.marker||{}).color;D1e.opacity(G)&&s.line.width?e.color=G:D1e.opacity(Z)&&s.boxpoints?e.color=Z:e.color=s.fillcolor,e[c+"0"]=h.c2p(V.pos+l.bPos-k,!0),e[c+"1"]=h.c2p(V.pos+l.bPos+_,!0),e[c+"LabelVal"]=V.orig_p!==void 0?V.orig_p:V.pos;var H=c+"Spike";e.spikeDistance=z(V)*A/E,e[H]=h.c2p(V.pos,!0);var N=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,j=s.boxpoints||s.points,re=j&&N?["max","uf","q3","med","mean","q1","lf","min"]:j&&!N?["max","uf","q3","med","q1","lf","min"]:!j&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],oe=d.range[1]{"use strict";q1e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var OV=ye((glr,N1e)=>{"use strict";N1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l;if(r===!1)for(s=0;s{"use strict";U1e.exports={attributes:y4(),layoutAttributes:_4(),supplyDefaults:b4().supplyDefaults,crossTraceDefaults:b4().crossTraceDefaults,supplyLayoutDefaults:jI().supplyLayoutDefaults,calc:PV(),crossTraceCalc:XI().crossTraceCalc,plot:ZI().plot,style:YI().style,styleOnSelect:YI().styleOnSelect,hoverPoints:zV().hoverPoints,eventData:B1e(),selectPoints:OV(),moduleType:"trace",name:"box",basePlotModule:vh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var H1e=ye((ylr,G1e)=>{"use strict";G1e.exports=V1e()});var ET=ye((_lr,j1e)=>{"use strict";var n0=pf(),u_t=Gl(),c_t=ec(),qV=df().axisHoverFormat,f_t=Qo().hovertemplateAttrs,h_t=Qo().texttemplateAttrs,d_t=Tu(),Lp=Ao().extendFlat;j1e.exports=Lp({z:{valType:"data_array",editType:"calc"},x:Lp({},n0.x,{impliedEdits:{xtype:"array"}}),x0:Lp({},n0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Lp({},n0.dx,{impliedEdits:{xtype:"scaled"}}),y:Lp({},n0.y,{impliedEdits:{ytype:"array"}}),y0:Lp({},n0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Lp({},n0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Lp({},n0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Lp({},n0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Lp({},n0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Lp({},n0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Lp({},n0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Lp({},n0.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:qV("x"),yhoverformat:qV("y"),zhoverformat:qV("z",1),hovertemplate:f_t(),texttemplate:h_t({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:c_t({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Lp({},u_t.showlegend,{dflt:!1}),zorder:n0.zorder},d_t("",{cLetter:"z",autoColorDflt:!1}))});var JI=ye((xlr,X1e)=>{"use strict";var v_t=Eo(),KI=Dr(),p_t=qa();X1e.exports=function(t,r,n,i,a,o){var s=n("z");a=a||"x",o=o||"y";var l,u;if(s===void 0||!s.length)return 0;if(KI.isArray1D(s)){l=n(a),u=n(o);var c=KI.minRowLength(l),f=KI.minRowLength(u);if(c===0||f===0)return 0;r._length=Math.min(c,f,s.length)}else{if(l=W1e(a,n),u=W1e(o,n),!g_t(s))return 0;n("transpose"),r._length=null}var h=p_t.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function W1e(e,t){var r=t(e),n=r?t(e+"type","array"):"scaled";return n==="scaled"&&(t(e+"0"),t("d"+e)),r}function g_t(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var Z1e=Dr();Y1e.exports=function(t,r){t("texttemplate");var n=Z1e.extendFlat({},r.font,{color:"auto",size:"auto"});Z1e.coerceFont(t,"textfont",n)}});var BV=ye((wlr,K1e)=>{"use strict";K1e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var Q1e=ye((Tlr,$1e)=>{"use strict";var J1e=Dr(),m_t=JI(),y_t=w4(),__t=Pg(),x_t=BV(),b_t=Jh(),w_t=ET();$1e.exports=function(t,r,n,i){function a(s,l){return J1e.coerce(t,r,w_t,s,l)}var o=m_t(t,r,a,i);if(!o){r.visible=!1;return}__t(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),y_t(a,i),x_t(t,r,a,i),a("hoverongaps"),a("connectgaps",J1e.isArray1D(r.z)&&r.zsmooth!==!1),b_t(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var NV=ye((Alr,e_e)=>{"use strict";var CT=Eo();e_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return CT(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return CT(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(CT(i))if(i=Number(i),CT(r[e])){if(r[e]>i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0},max:function(e,t,r,n){var i=n[t];if(CT(i))if(i=Number(i),CT(r[e])){if(r[e]{"use strict";t_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";r_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var kT=hs(),a2=kT.ONEAVGYEAR,i_e=kT.ONEAVGMONTH,QI=kT.ONEDAY,n_e=kT.ONEHOUR,a_e=kT.ONEMIN,o_e=kT.ONESEC,s_e=ho().tickIncrement;c_e.exports=function(t,r,n,i,a){var o=-1.1*r,s=-.1*r,l=t-s,u=n[0],c=n[1],f=Math.min($I(u+s,u+l,i,a),$I(c+s,c+l,i,a)),h=Math.min($I(u+o,u+s,i,a),$I(c+o,c+s,i,a)),d,v;if(f>h&&hQI){var x=d===a2?1:6,b=d===a2?"M12":"M1";return function(p,C){var E=i.c2d(p,a2,a),A=E.indexOf("-",x);A>0&&(E=E.substr(0,A));var L=i.d2c(E,0,a);if(Lo_e?e>QI?e>a2*1.1?a2:e>i_e*1.1?i_e:QI:e>n_e?n_e:e>a_e?a_e:o_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function T_t(e,t,r,n,i,a){if(n&&e>QI){var o=u_e(t,i,a),s=u_e(r,i,a),l=e===a2?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function u_e(e,t,r){var n=t.c2d(e,a2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var WV=ye((Clr,p_e)=>{"use strict";var HV=Eo(),Vv=Dr(),f_e=qa(),G0=ho(),{hasColorscale:h_e}=pv(),d_e=gv(),A_t=v4(),v_e=NV(),S_t=UV(),M_t=VV(),E_t=GV();function C_t(e,t){var r=[],n=[],i=t.orientation==="h",a=G0.getFromId(e,i?t.yaxis:t.xaxis),o=i?"y":"x",s={x:"y",y:"x"}[o],l=t[o+"calendar"],u=t.cumulative,c,f=jV(e,t,a,o),h=f[0],d=f[1],v=typeof h.size=="string",x=[],b=v?x:h,p=[],C=[],E=[],A=0,L=t.histnorm,_=t.histfunc,k=L.indexOf("density")!==-1,M,g,P;u.enabled&&k&&(L=L.replace(/ ?density$/,""),k=!1);var T=_==="max"||_==="min",z=T?null:0,O=v_e.count,V=S_t[L],G=!1,Z=function(ge){return a.r2c(ge,0,l)},H;for(Vv.isArrayOrTypedArray(t[s])&&_!=="count"&&(H=t[s],G=_==="avg",O=v_e[_]),c=Z(h.start),g=Z(h.end)+(c-G0.tickIncrement(c,h.size,!1,l))/1e6;c=0&&P=Ae;c--)if(n[c]){De=c;break}for(c=Ae;c<=De;c++)if(HV(r[c])&&HV(n[c])){var Pe={p:r[c],s:n[c],b:0};u.enabled||(Pe.pts=E[c],oe?Pe.ph0=Pe.ph1=E[c].length?d[E[c][0]]:r[c]:(t._computePh=!0,Pe.ph0=ie(x[c]),Pe.ph1=ie(x[c+1],!0))),Le.push(Pe)}return Le.length===1&&(Le[0].width1=G0.tickIncrement(Le[0].p,h.size,!1,l)-Le[0].p),h_e(t,"marker")&&d_e(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),h_e(t,"marker.line")&&d_e(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),A_t(Le,t),Vv.isArrayOrTypedArray(t.selectedpoints)&&Vv.tagSelected(Le,t,ke),Le}function jV(e,t,r,n,i){var a=n+"bins",o=e._fullLayout,s=t["_"+n+"bingroup"],l=o._histogramBinOpts[s],u=o.barmode==="overlay",c,f,h,d,v,x,b,p=function(me){return r.r2c(me,0,d)},C=function(me){return r.c2r(me,0,d)},E=r.type==="date"?function(me){return me||me===0?Vv.cleanDate(me,null,d):null}:function(me){return HV(me)?Number(me):null};function A(me,ie,Se){ie[me+"Found"]?(ie[me]=E(ie[me]),ie[me]===null&&(ie[me]=Se[me])):(x[me]=ie[me]=Se[me],Vv.nestedProperty(f[0],a+"."+me).set(Se[me]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{f=l.traces;var L=[],_=!0,k=!1,M=!1;for(c=0;cr.r2l(H)&&(j=G0.tickIncrement(j,l.size,!0,d)),O.start=r.l2r(j),Z||Vv.nestedProperty(t,a+".start").set(O.start)}var re=l.end,oe=r.r2l(z.end),_e=oe!==void 0;if((l.endFound||_e)&&oe!==r.r2l(re)){var Me=_e?oe:Vv.aggNums(Math.max,null,v);O.end=r.l2r(Me),_e||Vv.nestedProperty(t,a+".start").set(O.end)}var ke="autobin"+n;return t._input[ke]===!1&&(t._input[a]=Vv.extendFlat({},t[a]||{}),delete t._input[ke],delete t[ke]),[O,v]}function k_t(e,t,r,n,i){var a=e._fullLayout,o=L_t(e,t),s=!1,l=1/0,u=[t],c,f,h;for(c=0;c=0;n--)s(n);else if(t==="increasing"){for(n=1;n=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}p_e.exports={calc:C_t,calcAllAutoBins:jV}});var T_e=ye((klr,w_e)=>{"use strict";var g_e=Dr(),LT=ho(),m_e=NV(),I_t=UV(),R_t=VV(),D_t=GV(),y_e=WV().calcAllAutoBins;w_e.exports=function(t,r){var n=LT.getFromId(t,r.xaxis),i=LT.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(bt){return n.r2c(bt,0,a)},l=function(bt){return i.r2c(bt,0,o)},u=function(bt){return n.c2r(bt,0,a)},c=function(bt){return i.c2r(bt,0,o)},f,h,d,v,x=y_e(t,r,n,"x"),b=x[0],p=x[1],C=y_e(t,r,i,"y"),E=C[0],A=C[1],L=r._length;p.length>L&&p.splice(L,p.length-L),A.length>L&&A.splice(L,A.length-L);var _=[],k=[],M=[],g=typeof b.size=="string",P=typeof E.size=="string",T=[],z=[],O=g?T:b,V=P?z:E,G=0,Z=[],H=[],N=r.histnorm,j=r.histfunc,re=N.indexOf("density")!==-1,oe=j==="max"||j==="min",_e=oe?null:0,Me=m_e.count,ke=I_t[N],me=!1,ie=[],Se=[],Le="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";Le&&j!=="count"&&(me=j==="avg",Me=m_e[j]);var Ae=b.size,De=s(b.start),Pe=s(b.end)+(De-LT.tickIncrement(De,Ae,!1,a))/1e6;for(f=De;f=0&&d=0&&v{"use strict";var Im=Dr(),A_e=hs().BADNUM,S_e=Rg();M_e.exports=function(t,r,n,i,a,o){var s=t._length,l=r.makeCalcdata(t,i),u=n.makeCalcdata(t,a);l=S_e(t,r,i,l).vals,u=S_e(t,n,a,u).vals;var c=t.text,f=c!==void 0&&Im.isArray1D(c),h=t.hovertext,d=h!==void 0&&Im.isArray1D(h),v,x,b=Im.distinctVals(l),p=b.vals,C=Im.distinctVals(u),E=C.vals,A=[],L,_,k=E.length,M=p.length;for(v=0;v{"use strict";var F_t=Eo(),z_t=Dr(),t8=hs().BADNUM;E_e.exports=function(t,r,n,i){var a,o,s,l,u,c;function f(p){if(F_t(p))return+p}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var O_t=Dr(),C_e=.01,q_t=[[-1,0],[1,0],[0,-1],[0,1]];function B_t(e){return .5-.25*Math.min(1,e*.5)}L_e.exports=function(t,r){var n=1,i;for(k_e(t,r),i=0;iC_e;i++)n=k_e(t,r,B_t(n));return n>C_e&&O_t.log("interp2d didn't converge quickly",n),t};function k_e(e,t,r){var n=0,i,a,o,s,l,u,c,f,h,d,v,x,b;for(s=0;sx&&(n=Math.max(n,Math.abs(e[a][o]-v)/(b-x))))}return n}});var n8=ye((Rlr,P_e)=>{"use strict";var N_t=Dr().maxRowLength;P_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],l=N_t(t),u,c,f,h,d,v,x,b;for(c=0;c=0;d--)h=i[d],c=h[0],f=h[1],v=((n[[c-1,f]]||s)[2]+(n[[c+1,f]]||s)[2]+(n[[c,f-1]]||s)[2]+(n[[c,f+1]]||s)[2])/20,v&&(x[h]=[c,f,v],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in x)n[h]=x[h],r.push(x[h])}return r.sort(function(p,C){return C[2]-p[2]})}});var XV=ye((Dlr,D_e)=>{"use strict";var I_e=qa(),R_e=Dr().isArrayOrTypedArray;D_e.exports=function(t,r,n,i,a,o){var s=[],l=I_e.traceIs(t,"contour"),u=I_e.traceIs(t,"histogram"),c,f,h,d=R_e(r)&&r.length>1;if(d&&!u&&o.type!=="category"){var v=r.length;if(v<=a){if(l)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var F_e=qa(),ZV=Dr(),a8=ho(),z_e=Rg(),U_t=T_e(),V_t=gv(),G_t=e8(),H_t=r8(),j_t=i8(),W_t=n8(),o8=XV(),YV=hs().BADNUM;q_e.exports=function(t,r){var n=a8.getFromId(t,r.xaxis||"x"),i=a8.getFromId(t,r.yaxis||"y"),a=F_e.traceIs(r,"contour"),o=F_e.traceIs(r,"histogram"),s=a?"best":r.zsmooth,l,u,c,f,h,d,v,x,b,p,C;if(n._minDtick=0,i._minDtick=0,o)C=U_t(t,r),f=C.orig_x,l=C.x,u=C.x0,c=C.dx,x=C.orig_y,h=C.y,d=C.y0,v=C.dy,b=C.z;else{var E=r.z;ZV.isArray1D(E)?(G_t(r,n,i,"x","y",["z"]),l=r._x,h=r._y,E=r._z):(f=r.x?n.makeCalcdata(r,"x"):[],x=r.y?i.makeCalcdata(r,"y"):[],l=z_e(r,n,"x",f).vals,h=z_e(r,i,"y",x).vals,r._x=l,r._y=h),u=r.x0,c=r.dx,d=r.y0,v=r.dy,b=H_t(E,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=X_t(l,h,b),o||(l=O_e(l),h=O_e(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=W_t(b),j_t(b,r._emptypoints));function A(O){s=r._input.zsmooth=r.zsmooth=!1,ZV.warn('cannot use zsmooth: "fast": '+O)}function L(O){if(O.length>1){var V=(O[O.length-1]-O[0])/(O.length-1),G=Math.abs(V/100);for(p=0;pG)return!1}return!0}r._islinear=!1,n.type==="log"||i.type==="log"?s==="fast"&&A("log axis found"):L(l)?L(h)?r._islinear=!0:s==="fast"&&A("y scale is not linear"):s==="fast"&&A("x scale is not linear");var _=ZV.maxRowLength(b),k=r.xtype==="scaled"?"":l,M=o8(r,k,u,c,_,n),g=r.ytype==="scaled"?"":h,P=o8(r,g,d,v,b.length,i);r._extremes[n._id]=a8.findExtremes(n,M),r._extremes[i._id]=a8.findExtremes(i,P);var T={x:M,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&f&&(T.orig_x=f),r.yperiodalignment&&x&&(T.orig_y=x),k&&k.length===M.length-1&&(T.xCenter=k),g&&g.length===P.length-1&&(T.yCenter=g),o&&(T.xRanges=C.xRanges,T.yRanges=C.yRanges,T.pts=C.pts),a||V_t(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var z={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};T.xfill=o8(z,k,u,c,_,n),T.yfill=o8(z,g,d,v,b.length,i)}return[T]};function O_e(e){for(var t=[],r=e.length,n=0;n{"use strict";l8.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];l8.STYLE=l8.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var JV=ye((Olr,N_e)=>{"use strict";var B_e=u8(),Z_t=So(),KV=Dr(),PT=null;function Y_t(){if(PT!==null)return PT;PT=!1;var e=KV.isSafari()||KV.isMacWKWebView()||KV.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(B_e.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")PT=t.some(function(o){return r.apply(null,o)});else{var n=Z_t.tester.append("image").attr("style",B_e.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;PT=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return PT}N_e.exports=Y_t});var c8=ye((qlr,Y_e)=>{"use strict";var U_e=Oa(),K_t=cd(),J_t=qa(),$_t=So(),Q_t=ho(),H0=Dr(),V_e=ru(),ext=tI(),txt=Ca(),rxt=tc().extractOpts,ixt=tc().makeColorScaleFuncFromTrace,nxt=Wp(),axt=Kh(),$V=axt.LINE_SPACING,oxt=JV(),sxt=u8().STYLE,X_e="heatmap-label";function Z_e(e){return e.selectAll("g."+X_e)}function G_e(e){Z_e(e).remove()}Y_e.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;H0.makeTraceGroups(n,r,"hm").each(function(o){var s=U_e.select(this),l=o[0],u=l.trace,c=u.xgap||0,f=u.ygap||0,h=l.z,d=l.x,v=l.y,x=l.xCenter,b=l.yCenter,p=J_t.traceIs(u,"contour"),C=p?"best":u.zsmooth,E=h.length,A=H0.maxRowLength(h),L=!1,_=!1,k,M,g,P,T,z,O,V;for(z=0;k===void 0&&z0;)M=i.c2p(d[z]),z--;for(M0;)T=a.c2p(v[z]),z--;T=i._length||M<=0||P>=a._length||T<=0;if(j){var re=s.selectAll("image").data([]);re.exit().remove(),G_e(s);return}var oe,_e;G==="fast"?(oe=A,_e=E):(oe=H,_e=N);var Me=document.createElement("canvas");Me.width=oe,Me.height=_e;var ke=Me.getContext("2d",{willReadFrequently:!0}),me=ixt(u,{noNumericCheck:!0,returnArray:!0}),ie,Se;G==="fast"?(ie=L?function(cn){return A-1-cn}:H0.identity,Se=_?function(cn){return E-1-cn}:H0.identity):(ie=function(cn){return H0.constrain(Math.round(i.c2p(d[cn])-k),0,H)},Se=function(cn){return H0.constrain(Math.round(a.c2p(v[cn])-P),0,N)});var Le=Se(0),Ae=[Le,Le],De=L?0:1,Pe=_?0:1,ge=0,Fe=0,ce=0,Ze=0,ct,pt,Wt,st,lt;function Gt(cn,yn){if(cn!==void 0){var Mn=me(cn);return Mn[0]=Math.round(Mn[0]),Mn[1]=Math.round(Mn[1]),Mn[2]=Math.round(Mn[2]),ge+=yn,Fe+=Mn[0]*yn,ce+=Mn[1]*yn,Ze+=Mn[2]*yn,Mn}return[0,0,0,0]}function Nt(cn,yn,Mn,Ba){var la=cn[Mn.bin0];if(la===void 0)return Gt(void 0,1);var ma=cn[Mn.bin1],Wa=yn[Mn.bin0],Fa=yn[Mn.bin1],Wo=ma-la||0,da=Wa-la||0,Wn;return ma===void 0?Fa===void 0?Wn=0:Wa===void 0?Wn=2*(Fa-la):Wn=(2*Fa-Wa-la)*2/3:Fa===void 0?Wa===void 0?Wn=0:Wn=(2*la-ma-Wa)*2/3:Wa===void 0?Wn=(2*Fa-ma-la)*2/3:Wn=Fa+la-ma-Wa,Gt(la+Mn.frac*Wo+Ba.frac*(da+Mn.frac*Wn))}if(G!=="default"){var $t=0,sr;try{sr=new Uint8Array(oe*_e*4)}catch(cn){sr=new Array(oe*_e*4)}if(G==="smooth"){var wr=x||d,ur=b||v,Qe=new Array(wr.length),Et=new Array(ur.length),er=new Array(H),Ut=x?j_e:H_e,Ft=b?j_e:H_e,bt,yt,Yt;for(z=0;zpr||pr>a._length))for(O=Ce;Odi||di>i._length)){var Jr=ext({x:oi,y:ir},u,e._fullLayout);Jr.x=oi,Jr.y=ir;var fi=l.z[z][O];fi===void 0?(Jr.z="",Jr.zLabel=""):(Jr.z=fi,Jr.zLabel=Q_t.tickText(je,fi,"hover").text);var Hi=l.text&&l.text[z]&&l.text[z][O];(Hi===void 0||Hi===!1)&&(Hi=""),Jr.text=Hi;var Pn=H0.texttemplateString(Ge,Jr,e._fullLayout._d3locale,Jr,u._meta||{});if(Pn){var wn=Pn.split("
"),pn=wn.length,Vn=0;for(V=0;V{"use strict";K_e.exports={min:"zmin",max:"zmax"}});var f8=ye((Nlr,J_e)=>{"use strict";var lxt=Oa();J_e.exports=function(t){lxt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var d8=ye((Ulr,Q_e)=>{"use strict";var $_e=vf(),T4=Dr(),h8=T4.isArrayOrTypedArray,uxt=ho(),cxt=tc().extractOpts;Q_e.exports=function(t,r,n,i,a){a||(a={});var o=a.isContour,s=t.cd[0],l=s.trace,u=t.xa,c=t.ya,f=s.x,h=s.y,d=s.z,v=s.xCenter,x=s.yCenter,b=s.zmask,p=l.zhoverformat,C=f,E=h,A,L,_,k;if(t.index!==!1){try{_=Math.round(t.index[1]),k=Math.round(t.index[0])}catch(re){T4.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(_<0||_>=d[0].length||k<0||k>d.length)return}else{if($_e.inbox(r-f[0],r-f[f.length-1],0)>0||$_e.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var M;for(C=[2*f[0]-f[1]],M=1;M{"use strict";exe.exports={attributes:ET(),supplyDefaults:Q1e(),calc:s8(),plot:c8(),colorbar:S_(),style:f8(),hoverPoints:d8(),moduleType:"trace",name:"heatmap",basePlotModule:vh(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var ixe=ye((Glr,rxe)=>{"use strict";rxe.exports=txe()});var QV=ye((Hlr,nxe)=>{"use strict";nxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var oxe=ye((jlr,axe)=>{"use strict";axe.exports={eventDataKeys:["binNumber"]}});var v8=ye((Wlr,uxe)=>{"use strict";var Pp=Lm(),sxe=df().axisHoverFormat,fxt=Qo().hovertemplateAttrs,hxt=Qo().texttemplateAttrs,eG=ec(),lxe=QV(),dxt=oxe(),tG=Ao().extendFlat;uxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:sxe("x"),yhoverformat:sxe("y"),text:tG({},Pp.text,{}),hovertext:tG({},Pp.hovertext,{}),orientation:Pp.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:lxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:lxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:fxt({},{keys:dxt.eventDataKeys}),texttemplate:hxt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:tG({},Pp.textposition,{arrayOk:!1}),textfont:eG({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:eG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:eG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Pp.insidetextanchor,textangle:Pp.textangle,cliponaxis:Pp.cliponaxis,constraintext:Pp.constraintext,marker:Pp.marker,offsetgroup:Pp.offsetgroup,alignmentgroup:Pp.alignmentgroup,selected:Pp.selected,unselected:Pp.unselected,zorder:Pp.zorder}});var dxe=ye((Xlr,hxe)=>{"use strict";var cxe=qa(),A4=Dr(),fxe=Ca(),vxt=r0().handleText,pxt=BI(),gxt=v8();hxe.exports=function(t,r,n,i){function a(C,E){return A4.coerce(t,r,gxt,C,E)}var o=a("x"),s=a("y"),l=a("cumulative.enabled");l&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var u=a("textposition");vxt(t,r,i,a,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat");var c=a("orientation",s&&!o?"h":"v"),f=c==="v"?"x":"y",h=c==="v"?"y":"x",d=o&&s?Math.min(A4.minRowLength(o)&&A4.minRowLength(s)):A4.minRowLength(r[f]||[]);if(!d){r.visible=!1;return}r._length=d;var v=cxe.getComponentMethod("calendars","handleTraceDefaults");v(t,r,["x","y"],i);var x=r[h];x&&a("histfunc"),a("histnorm"),a("autobin"+f),pxt(t,r,a,n,i),A4.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,p=cxe.getComponentMethod("errorbars","supplyDefaults");p(t,r,b||fxe.defaultLine,{axis:"y"}),p(t,r,b||fxe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var g8=ye((Zlr,gxe)=>{"use strict";var S4=Dr(),mxt=hf(),p8=qa().traceIs,yxt=Gb(),_xt=r0().validateCornerradius,vxe=S4.nestedProperty,rG=Bb().getAxisGroup,pxe=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],xxt=["x","y"];gxe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,l,u,c,f,h,d;function v(G,Z){return S4.coerce(s._input,s,s._module.attributes,G,Z)}function x(G){return G.orientation==="v"?"x":"y"}function b(G,Z){var H=mxt.getFromTrace({_fullLayout:r},G,Z);return H.type}function p(G,Z,H){var N=G.uid+"__"+H;Z||(Z=N);var j=b(G,H),re=G[H+"calendar"]||"",oe=n[Z],_e=!0;oe&&(j===oe.axType&&re===oe.calendar?(_e=!1,oe.traces.push(G),oe.dirs.push(H)):(Z=N,j!==oe.axType&&S4.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+j,"axis","with bins on","type:"+oe.axType,"axis."].join(" ")),re!==oe.calendar&&S4.warn(["Attempted to group the bins of trace",G.index,"set with a",re,"calendar","with bins",oe.calendar?"on a "+oe.calendar+" calendar":"w/o a set calendar"].join(" ")))),_e&&(n[Z]={traces:[G],dirs:[H],axType:j,calendar:G[H+"calendar"]||""}),G["_"+H+"bingroup"]=Z}for(f=0;f{"use strict";var bxt=TT().hoverPoints,wxt=ho().hoverLabelText;mxe.exports=function(t,r,n,i,a){var o=bxt(t,r,n,i,a);if(o){t=o[0];var s=t.cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var u=l.orientation==="h"?"y":"x";t[u+"Label"]=wxt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var iG=ye((Klr,_xe)=>{"use strict";_xe.exports=function(t,r,n,i,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(n.cumulative||{}).enabled){var o=Array.isArray(a)?i[0].pts[a[0]][a[1]]:i[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex;var s;if(n._indexToPoints){s=[];for(var l=0;l{"use strict";xxe.exports={attributes:v8(),layoutAttributes:qI(),supplyDefaults:dxe(),crossTraceDefaults:g8(),supplyLayoutDefaults:TV(),calc:WV().calc,crossTraceCalc:Hb().crossTraceCalc,plot:i2().plot,layerName:"barlayer",style:N0().style,styleOnSelect:N0().styleOnSelect,colorbar:$d(),hoverPoints:yxe(),selectPoints:AT(),eventData:iG(),moduleType:"trace",name:"histogram",basePlotModule:vh(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Txe=ye(($lr,wxe)=>{"use strict";wxe.exports=bxe()});var y8=ye((Qlr,Sxe)=>{"use strict";var Vg=v8(),Axe=QV(),m8=ET(),Txt=Gl(),nG=df().axisHoverFormat,Axt=Qo().hovertemplateAttrs,Sxt=Qo().texttemplateAttrs,Mxt=Tu(),M4=Ao().extendFlat;Sxe.exports=M4({x:Vg.x,y:Vg.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Vg.histnorm,histfunc:Vg.histfunc,nbinsx:Vg.nbinsx,xbins:Axe("x"),nbinsy:Vg.nbinsy,ybins:Axe("y"),autobinx:Vg.autobinx,autobiny:Vg.autobiny,bingroup:M4({},Vg.bingroup,{}),xbingroup:M4({},Vg.bingroup,{}),ybingroup:M4({},Vg.bingroup,{}),xgap:m8.xgap,ygap:m8.ygap,zsmooth:m8.zsmooth,xhoverformat:nG("x"),yhoverformat:nG("y"),zhoverformat:nG("z",1),hovertemplate:Axt({},{keys:"z"}),texttemplate:Sxt({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:m8.textfont,showlegend:M4({},Txt.showlegend,{dflt:!1})},Mxt("",{cLetter:"z",autoColorDflt:!1}))});var aG=ye((eur,Exe)=>{"use strict";var Ext=qa(),Mxe=Dr();Exe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Mxe.minRowLength(a),l=Mxe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=Ext.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y"],i);var c=n("z")||n("marker.color");c&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}});var kxe=ye((tur,Cxe)=>{"use strict";var Cxt=Dr(),kxt=aG(),Lxt=BV(),Pxt=Jh(),Ixt=w4(),Rxt=y8();Cxe.exports=function(t,r,n,i){function a(o,s){return Cxt.coerce(t,r,Rxt,o,s)}kxt(t,r,a,i),r.visible!==!1&&(Lxt(t,r,a,i),Pxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),Ixt(a,i),a("xhoverformat"),a("yhoverformat"))}});var Ixe=ye((rur,Pxe)=>{"use strict";var Dxt=d8(),Lxe=ho().hoverLabelText;Pxe.exports=function(t,r,n,i,a){var o=Dxt(t,r,n,i,a);if(o){t=o[0];var s=t.index,l=s[0],u=s[1],c=t.cd[0],f=c.trace,h=c.xRanges[u],d=c.yRanges[l];return t.xLabel=Lxe(t.xa,[h[0],h[1]],f.xhoverformat),t.yLabel=Lxe(t.ya,[d[0],d[1]],f.yhoverformat),o}}});var Dxe=ye((iur,Rxe)=>{"use strict";Rxe.exports={attributes:y8(),supplyDefaults:kxe(),crossTraceDefaults:g8(),calc:s8(),plot:c8(),layerName:"heatmaplayer",colorbar:S_(),style:f8(),hoverPoints:Ixe(),eventData:iG(),moduleType:"trace",name:"histogram2d",basePlotModule:vh(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var zxe=ye((nur,Fxe)=>{"use strict";Fxe.exports=Dxe()});var _8=ye((aur,Oxe)=>{"use strict";Oxe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var E4=ye((our,Uxe)=>{"use strict";var ed=ET(),x8=pf(),Bxe=df(),oG=Bxe.axisHoverFormat,Fxt=Bxe.descriptionOnlyNumbers,zxt=Tu(),Oxt=Pd().dash,qxt=ec(),IT=Ao().extendFlat,Nxe=_8(),Bxt=Nxe.COMPARISON_OPS2,Nxt=Nxe.INTERVAL_OPS,qxe=x8.line;Uxe.exports=IT({z:ed.z,x:ed.x,x0:ed.x0,dx:ed.dx,y:ed.y,y0:ed.y0,dy:ed.dy,xperiod:ed.xperiod,yperiod:ed.yperiod,xperiod0:x8.xperiod0,yperiod0:x8.yperiod0,xperiodalignment:ed.xperiodalignment,yperiodalignment:ed.yperiodalignment,text:ed.text,hovertext:ed.hovertext,transpose:ed.transpose,xtype:ed.xtype,ytype:ed.ytype,xhoverformat:oG("x"),yhoverformat:oG("y"),zhoverformat:oG("z",1),hovertemplate:ed.hovertemplate,texttemplate:IT({},ed.texttemplate,{}),textfont:IT({},ed.textfont,{}),hoverongaps:ed.hoverongaps,connectgaps:IT({},ed.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:qxt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:Fxt("contour label")},operation:{valType:"enumerated",values:[].concat(Bxt).concat(Nxt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:IT({},qxe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:Oxt,smoothing:IT({},qxe.smoothing,{}),editType:"plot"},zorder:x8.zorder},zxt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var lG=ye((sur,Gxe)=>{"use strict";var Gv=y8(),Oy=E4(),Uxt=Tu(),sG=df().axisHoverFormat,Vxe=Ao().extendFlat;Gxe.exports=Vxe({x:Gv.x,y:Gv.y,z:Gv.z,marker:Gv.marker,histnorm:Gv.histnorm,histfunc:Gv.histfunc,nbinsx:Gv.nbinsx,xbins:Gv.xbins,nbinsy:Gv.nbinsy,ybins:Gv.ybins,autobinx:Gv.autobinx,autobiny:Gv.autobiny,bingroup:Gv.bingroup,xbingroup:Gv.xbingroup,ybingroup:Gv.ybingroup,autocontour:Oy.autocontour,ncontours:Oy.ncontours,contours:Oy.contours,line:{color:Oy.line.color,width:Vxe({},Oy.line.width,{dflt:.5}),dash:Oy.line.dash,smoothing:Oy.line.smoothing,editType:"plot"},xhoverformat:sG("x"),yhoverformat:sG("y"),zhoverformat:sG("z",1),hovertemplate:Gv.hovertemplate,texttemplate:Oy.texttemplate,textfont:Oy.textfont},Uxt("",{cLetter:"z",editTypeOverride:"calc"}))});var b8=ye((lur,Hxe)=>{"use strict";Hxe.exports=function(t,r,n,i){var a=i("contours.start"),o=i("contours.end"),s=a===!1||o===!1,l=n("contours.size"),u;s?u=r.autocontour=!0:u=n("autocontour",!1),(u||!l)&&n("ncontours")}});var uG=ye((uur,jxe)=>{"use strict";var Vxt=Dr();jxe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;Vxt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var w8=ye((cur,Wxe)=>{"use strict";var Gxt=Jh(),Hxt=uG();Wxe.exports=function(t,r,n,i,a){var o=n("contours.coloring"),s,l="";o==="fill"&&(s=n("contours.showlines")),s!==!1&&(o!=="lines"&&(l=n("line.color","#000")),n("line.width",.5),n("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,Gxt(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),Hxt(n,i,l,a)}});var Kxe=ye((fur,Yxe)=>{"use strict";var Xxe=Dr(),jxt=aG(),Wxt=b8(),Xxt=w8(),Zxt=w4(),Zxe=lG();Yxe.exports=function(t,r,n,i){function a(s,l){return Xxe.coerce(t,r,Zxe,s,l)}function o(s){return Xxe.coerce2(t,r,Zxe,s)}jxt(t,r,a,i),r.visible!==!1&&(Wxt(t,r,a,o),Xxt(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),r.contours&&r.contours.coloring==="heatmap"&&Zxt(a,i))}});var hG=ye((hur,$xe)=>{"use strict";var fG=ho(),cG=Dr();$xe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=cG.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=cG.aggNums(Math.max,null,r));var o=Jxe(i,a,t.ncontours);n.size=o.dtick,n.start=fG.tickFirst(o),o.range.reverse(),n.end=fG.tickFirst(o),n.start===i&&(n.start+=n.size),n.end===a&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),t._input.contours||(t._input.contours={}),cG.extendFlat(t._input.contours,{start:n.start,end:n.end,size:n.size}),t._input.autocontour=!0}else if(n.type!=="constraint"){var s=n.start,l=n.end,u=t._input.contours;if(s>l&&(n.start=u.start=l,l=n.end=u.end=s,s=n.start),!(n.size>0)){var c;s===l?c=1:c=Jxe(s,l,t.ncontours).dtick,u.size=n.size=c}}};function Jxe(e,t,r){var n={type:"linear",range:[e,t]};return fG.autoTicks(n,(t-e)/(r||15)),n}});var C4=ye((dur,Qxe)=>{"use strict";Qxe.exports=function(t){return t.end+t.size/1e6}});var dG=ye((vur,tbe)=>{"use strict";var ebe=tc(),Yxt=s8(),Kxt=hG(),Jxt=C4();tbe.exports=function(t,r){var n=Yxt(t,r),i=n[0].z;Kxt(r,i);var a=r.contours,o=ebe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=Jxt(a),c=a.size||1,f=Math.floor((u-l)/c)+1;isFinite(c)||(c=1,f=1);var h=l-c/2,d=h+f*c;s=[h,d]}else s=i;return ebe.calc(t,r,{vals:s,cLetter:"z"}),n}});var k4=ye((pur,rbe)=>{"use strict";rbe.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var vG=ye((gur,ibe)=>{"use strict";var T8=k4();ibe.exports=function(t){var r=t[0].z,n=r.length,i=r[0].length,a=n===2||i===2,o,s,l,u,c,f,h,d,v;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var n=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>n?r===5?713:1114:r===5?104:208}return r===15?0:r}});var pG=ye((mur,obe)=>{"use strict";var A8=Dr(),RT=k4();obe.exports=function(t,r,n){var i,a,o,s,l;for(r=r||.01,n=n||.01,o=0;o20?(o=RT.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=RT.SADDLEREMAINDER[o]):delete e.crossings[a],s=RT.NEWDELTA[o],!s){A8.log("Found bad marching index:",o,t,e.level);break}l.push(abe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),L4(l[l.length-1],l[l.length-2],n,i)&&l.pop();var v=s[0]&&(t[0]<0||t[0]>c-2)||s[1]&&(t[1]<0||t[1]>u-2),x=t[0]===f[0]&&t[1]===f[1]&&s[0]===h[0]&&s[1]===h[1];if(x||r&&v)break;o=e.crossings[a]}d===1e4&&A8.log("Infinite loop in contour?");var b=L4(l[0],l[l.length-1],n,i),p=0,C=.2*e.smoothing,E=[],A=0,L,_,k,M,g,P,T,z,O,V,G;for(d=1;d=A;d--)if(L=E[d],L=A&&L+E[_]z&&O--,e.edgepaths[O]=G.concat(l,V));break}j||(e.edgepaths[z]=l.concat(V))}for(z=0;z20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:RT.BOTTOMSTART.indexOf(e)!==-1?i=1:RT.LEFTSTART.indexOf(e)!==-1?n=1:RT.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function abe(e,t,r){var n=t[0]+Math.max(r[0],0),i=t[1]+Math.max(r[1],0),a=e.z[i][n],o=e.xaxis,s=e.yaxis;if(r[1]){var l=(e.level-a)/(e.z[i][n+1]-a),u=(l!==1?(1-l)*o.c2l(e.x[n]):0)+(l!==0?l*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(u),!0),s.c2p(e.y[i],!0),n+l,i]}else{var c=(e.level-a)/(e.z[i+1][n]-a),f=(c!==1?(1-c)*s.c2l(e.y[i]):0)+(c!==0?c*s.c2l(e.y[i+1]):0);return[o.c2p(e.x[n],!0),s.c2p(s.l2c(f),!0),n,i+c]}}});var cbe=ye((yur,ube)=>{"use strict";var gG=_8(),tbt=Eo();ube.exports={"[]":sbe("[]"),"][":sbe("]["),">":mG(">"),"<":mG("<"),"=":mG("=")};function lbe(e,t){var r=Array.isArray(t),n;function i(a){return tbt(a)?+a:null}return gG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):gG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:gG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function sbe(e){return function(t){t=lbe(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function mG(e){return function(t){return t=lbe(e,t),{start:t,end:1/0,size:1/0}}}});var yG=ye((_ur,hbe)=>{"use strict";var fbe=Dr(),rbt=cbe(),ibt=C4();hbe.exports=function(t,r,n){for(var i=t.type==="constraint"?rbt[t._operation](t.value):t,a=i.size,o=[],s=ibt(i),l=n.trace._carpetTrace,u=l?{xaxis:l.aaxis,yaxis:l.baxis,x:n.a,y:n.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:n.x,y:n.y},c=i.start;c1e3){fbe.warn("Too many contours, clipping at 1000",t);break}return o}});var _G=ye((xur,vbe)=>{"use strict";var DT=Dr();vbe.exports=function(e,t){var r,n,i,a=function(l){return l.reverse()},o=function(l){return l};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&DT.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";pbe.exports=function(e,t){var r=e[0],n=r.z,i;switch(t.type){case"levels":var a=Math.min(n[0][0],n[0][1]);for(i=0;io.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,l=r.y.length,u=-1/0,c=1/0;for(i=0;i":f>u&&(r.prefixBoundary=!0);break;case"<":(fu||r.starts.length&&d===c)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(f[0],f[1]),d=Math.max(f[0],f[1]),hu&&(r.prefixBoundary=!0);break}break}}});var S8=ye(Hv=>{"use strict";var I4=Oa(),zd=Dr(),qy=So(),nbt=tc(),ybe=ru(),gbe=ho(),mbe=ym(),abt=c8(),_be=vG(),xbe=pG(),obt=yG(),sbt=_G(),bbe=xG(),P4=k4(),Rm=P4.LABELOPTIMIZER;Hv.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;zd.makeTraceGroups(i,n,"contour").each(function(s){var l=I4.select(this),u=s[0],c=u.trace,f=u.x,h=u.y,d=c.contours,v=obt(d,r,u),x=zd.ensureSingle(l,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),abt(t,r,b,x),_be(v),xbe(v);var p=a.c2p(f[0],!0),C=a.c2p(f[f.length-1],!0),E=o.c2p(h[0],!0),A=o.c2p(h[h.length-1],!0),L=[[p,A],[C,A],[C,E],[p,E]],_=v;d.type==="constraint"&&(_=sbt(v,d._operation)),lbt(l,L,d),ubt(l,_,L,d),cbt(l,v,t,u,d),hbt(l,r,t,u,L)})};function lbt(e,t,r){var n=zd.ensureSingle(e,"g","contourbg"),i=n.selectAll("path").data(r.coloring==="fill"?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function ubt(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&bbe(t,n);var o=zd.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(l){var u=(l.prefixBoundary?a:"")+wbe(l,r);u?I4.select(this).attr("d",u).style("stroke","none"):I4.select(this).remove()})}function wbe(e,t){var r="",n=0,i=e.edgepaths.map(function(p,C){return C}),a=!0,o,s,l,u,c,f;function h(p){return Math.abs(p[1]-t[0][1])<.01}function d(p){return Math.abs(p[1]-t[2][1])<.01}function v(p){return Math.abs(p[0]-t[0][0])<.01}function x(p){return Math.abs(p[0]-t[2][0])<.01}for(;i.length;){for(f=qy.smoothopen(e.edgepaths[n],e.smoothing),r+=a?f:f.replace(/^M/,"L"),i.splice(i.indexOf(n),1),o=e.edgepaths[n][e.edgepaths[n].length-1],u=-1,l=0;l<4;l++){if(!o){zd.log("Missing end?",n,e);break}for(h(o)&&!x(o)?s=t[1]:v(o)?s=t[0]:d(o)?s=t[3]:x(o)&&(s=t[2]),c=0;c=0&&(s=b,u=c):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-b[1])<.01&&(b[0]-o[0])*(s[0]-b[0])>=0&&(s=b,u=c):zd.log("endpt to newendpt is not vert. or horz.",o,s,b)}if(o=s,u>=0)break;r+="L"+s}if(u===e.edgepaths.length){zd.log("unclosed perimeter path");break}n=u,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nRm.MAXCOST*2)break;h&&(s/=2),o=u-s/2,l=o+s*1.5}if(f<=Rm.MAXCOST)return c};function fbt(e,t,r,n){var i=t.width/2,a=t.height/2,o=e.x,s=e.y,l=e.theta,u=Math.cos(l)*i,c=Math.sin(l)*i,f=(o>n.center?n.right-o:o-n.left)/(u+Math.abs(Math.sin(l)*a)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(c)+Math.cos(l)*a);if(f<1||h<1)return 1/0;var d=Rm.EDGECOST*(1/(f-1)+1/(h-1));d+=Rm.ANGLECOST*l*l;for(var v=o-u,x=s-c,b=o+u,p=s+c,C=0;C{"use strict";var vbt=Oa(),bG=tc(),pbt=C4();Tbe.exports=function(t){var r=t.contours,n=r.start,i=pbt(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,l=bG.extractOpts(t);isFinite(a)||(a=1,o=1);var u=l.reversescale?bG.flipScale(l.colorscale):l.colorscale,c=u.length,f=new Array(c),h=new Array(c),d,v,x=l.min,b=l.max;if(r.coloring==="heatmap"){for(v=0;v=b)&&(n<=x&&(n=x),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),v=0;vx&&(f.unshift(x),h.unshift(h[0])),f[f.length-1]{"use strict";var M8=Oa(),Abe=So(),gbt=f8(),mbt=wG();Sbe.exports=function(t){var r=M8.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=M8.select(this),a=n[0].trace,o=a.contours,s=a.line,l=o.size||1,u=o.start,c=o.type==="constraint",f=!c&&o.coloring==="lines",h=!c&&o.coloring==="fill",d=f||h?mbt(a):null;i.selectAll("g.contourlevel").each(function(b){M8.select(this).selectAll("path").call(Abe.lineGroupStyle,s.width,f?d(b.level):s.color,s.dash)});var v=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Abe.font(M8.select(this),{weight:v.weight,style:v.style,variant:v.variant,textcase:v.textcase,lineposition:v.lineposition,shadow:v.shadow,family:v.family,size:v.size,color:v.color||(f?d(b.level):s.color)})}),c)i.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var x;i.selectAll("g.contourfill path").style("fill",function(b){return x===void 0&&(x=b.level),d(b.level+.5*l)}),x===void 0&&(x=u),i.selectAll("g.contourbg path").style("fill",d(x-.5*l))}}),gbt(t)}});var C8=ye((Sur,Ebe)=>{"use strict";var Mbe=tc(),ybt=wG(),_bt=C4();function xbt(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=ybt(t,{isColorbar:!0});if(o==="heatmap"){var l=Mbe.extractOpts(t);r._fillgradient=l.reversescale?Mbe.flipScale(l.colorscale):l.colorscale,r._zrange=[l.min,l.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:i.color,width:n.showlines!==!1?i.width:0,dash:i.dash},r._levels={start:n.start,end:_bt(n),size:a}}Ebe.exports={min:"zmin",max:"zmax",calc:xbt}});var TG=ye((Mur,Cbe)=>{"use strict";var k8=Ca(),bbt=d8();Cbe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=bbt(t,r,n,i,a);return o&&o.forEach(function(s){var l=s.trace;l.contours.type==="constraint"&&(l.fillcolor&&k8.opacity(l.fillcolor)?s.color=k8.addOpacity(l.fillcolor,1):l.contours.showlines&&k8.opacity(l.line.color)&&(s.color=k8.addOpacity(l.line.color,1)))}),o}});var Lbe=ye((Eur,kbe)=>{"use strict";kbe.exports={attributes:lG(),supplyDefaults:Kxe(),crossTraceDefaults:g8(),calc:dG(),plot:S8().plot,layerName:"contourlayer",style:E8(),colorbar:C8(),hoverPoints:TG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:vh(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Ibe=ye((Cur,Pbe)=>{"use strict";Pbe.exports=Lbe()});var AG=ye((kur,qbe)=>{"use strict";var Rbe=Eo(),wbt=uG(),zbe=Ca(),Dbe=zbe.addOpacity,Tbt=zbe.opacity,Obe=_8(),Fbe=Dr().isArrayOrTypedArray,Abt=Obe.CONSTRAINT_REDUCTION,Sbt=Obe.COMPARISON_OPS2;qbe.exports=function(t,r,n,i,a,o){var s=r.contours,l,u,c,f=n("contours.operation");if(s._operation=Abt[f],Mbt(n,s),f==="="?l=s.showlines=!0:(l=n("contours.showlines"),c=n("fillcolor",Dbe((t.line||{}).color||a,.5))),l){var h=c&&Tbt(c)?Dbe(r.fillcolor,1):a;u=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),wbt(n,i,u,o)};function Mbt(e,t){var r;Sbt.indexOf(t.operation)===-1?(e("contours.value",[0,1]),Fbe(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:Rbe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),Rbe(t.value)||(Fbe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var Ube=ye((Lur,Nbe)=>{"use strict";var SG=Dr(),Ebt=JI(),Cbt=Pg(),kbt=AG(),Lbt=b8(),Pbt=w8(),Ibt=w4(),Bbe=E4();Nbe.exports=function(t,r,n,i){function a(u,c){return SG.coerce(t,r,Bbe,u,c)}function o(u){return SG.coerce2(t,r,Bbe,u)}var s=Ebt(t,r,a,i);if(!s){r.visible=!1;return}Cbt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate");var l=a("contours.type")==="constraint";a("connectgaps",SG.isArray1D(r.z)),l?kbt(t,r,a,i,n):(Lbt(t,r,a,o),Pbt(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&Ibt(a,i),a("zorder")}});var Gbe=ye((Pur,Vbe)=>{"use strict";Vbe.exports={attributes:E4(),supplyDefaults:Ube(),calc:dG(),plot:S8().plot,style:E8(),colorbar:C8(),hoverPoints:TG(),moduleType:"trace",name:"contour",basePlotModule:vh(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var jbe=ye((Iur,Hbe)=>{"use strict";Hbe.exports=Gbe()});var MG=ye((Rur,Xbe)=>{"use strict";var Rbt=Qo().hovertemplateAttrs,Dbt=Qo().texttemplateAttrs,Fbt=Eg(),a0=pf(),zbt=Gl(),Wbe=Tu(),Obt=Pd().dash,M_=Ao().extendFlat,j0=a0.marker,R4=a0.line,qbt=j0.line;Xbe.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:M_({},a0.mode,{dflt:"markers"}),text:M_({},a0.text,{}),texttemplate:Dbt({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:M_({},a0.hovertext,{}),line:{color:R4.color,width:R4.width,dash:Obt,backoff:R4.backoff,shape:M_({},R4.shape,{values:["linear","spline"]}),smoothing:R4.smoothing,editType:"calc"},connectgaps:a0.connectgaps,cliponaxis:a0.cliponaxis,fill:M_({},a0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Fbt(),marker:M_({symbol:j0.symbol,opacity:j0.opacity,angle:j0.angle,angleref:j0.angleref,standoff:j0.standoff,maxdisplayed:j0.maxdisplayed,size:j0.size,sizeref:j0.sizeref,sizemin:j0.sizemin,sizemode:j0.sizemode,line:M_({width:qbt.width,editType:"calc"},Wbe("marker.line")),gradient:j0.gradient,editType:"calc"},Wbe("marker")),textfont:a0.textfont,textposition:a0.textposition,selected:a0.selected,unselected:a0.unselected,hoverinfo:M_({},zbt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:a0.hoveron,hovertemplate:Rbt()}});var Jbe=ye((Dur,Kbe)=>{"use strict";var Zbe=Dr(),Bbt=Sm(),FT=Ru(),Nbt=$p(),Ubt=R0(),Ybe=J3(),Vbt=D0(),Gbt=Ig(),Hbt=MG();Kbe.exports=function(t,r,n,i){function a(h,d){return Zbe.coerce(t,r,Hbt,h,d)}var o=a("a"),s=a("b"),l=a("c"),u;if(o?(u=o.length,s?(u=Math.min(u,s.length),l&&(u=Math.min(u,l.length))):l?u=Math.min(u,l.length):u=0):s&&l&&(u=Math.min(s.length,l.length)),!u){r.visible=!1;return}r._length=u,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&a("hovertemplate");var c=u{"use strict";var EG=ho();$be.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=EG.tickText(a.aaxis,t.a,!0).text,i.bLabel=EG.tickText(a.baxis,t.b,!0).text,i.cLabel=EG.tickText(a.caxis,t.c,!0).text,i}});var i2e=ye((zur,r2e)=>{"use strict";var CG=Eo(),jbt=F0(),Wbt=Cm(),Xbt=z0(),Zbt=O0().calcMarkerSize,e2e=["a","b","c"],t2e={a:["b","c"],b:["a","c"],c:["a","b"]};r2e.exports=function(t,r){var n=t._fullLayout[r.subplot],i=n.sum,a=r.sum||i,o={a:r.a,b:r.b,c:r.c},s=r.ids,l,u,c,f,h,d;for(l=0;l{"use strict";var Ybt=iT();n2e.exports=function(t,r,n){var i=r.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},l=r.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var Kbt=sT();o2e.exports=function(t,r,n,i){var a=Kbt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index],h=o.trace,d=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var v={};v[h.subplot]={_subplot:d};var x=h._module.formatLabels(f,h,v);o.aLabel=x.aLabel,o.bLabel=x.bLabel,o.cLabel=x.cLabel;var b=f.hi||h.hoverinfo,p=[];function C(A,L){p.push(A._hovertitle+": "+L)}if(!h.hovertemplate){var E=b.split("+");E.indexOf("all")!==-1&&(E=["a","b","c"]),E.indexOf("a")!==-1&&C(d.aaxis,o.aLabel),E.indexOf("b")!==-1&&C(d.baxis,o.bLabel),E.indexOf("c")!==-1&&C(d.caxis,o.cLabel)}return o.extraText=p.join("
"),o.hovertemplate=h.hovertemplate,a}});var u2e=ye((Bur,l2e)=>{"use strict";l2e.exports=function(t,r,n,i,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i[a]){var o=i[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var x2e=ye((Nur,_2e)=>{"use strict";var p2e=Oa(),Jbt=cd(),kG=qa(),By=Dr(),Dm=By.strTranslate,L8=By._,OT=Ca(),P8=So(),D4=ym(),LG=Ao().extendFlat,$bt=Mc(),E_=ho(),c2e=yv(),f2e=vf(),g2e=Sg(),h2e=g2e.freeMode,Qbt=g2e.rectMode,PG=Mb(),e2t=zf().prepSelect,t2t=zf().selectOnClick,r2t=zf().clearOutline,i2t=zf().clearSelectionsCache,m2e=hd();function y2e(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}_2e.exports=y2e;var Fm=y2e.prototype;Fm.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Fm.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;azT*u?(p=u,b=p*zT):(b=l,p=b/zT),C=o*b/l,E=s*p/u,v=t.l+t.w*i-b/2,x=t.t+t.h*(1-a)-p/2,r.x0=v,r.y0=x,r.w=b,r.h=p,r.sum=c,r.xaxis={type:"linear",range:[f+2*d-c,c-f-2*h],domain:[i-C/2,i+C/2],_id:"x"},D4(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(V){return V.a>=r.aaxis.range[0]&&V.a<=r.aaxis.range[1]&&V.b>=r.baxis.range[1]&&V.b<=r.baxis.range[0]&&V.c>=r.caxis.range[1]&&V.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[f,c-h-d],domain:[a-E/2,a+E/2],_id:"y"},D4(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var A=r.yaxis.domain[0],L=r.aaxis=LG({},e.aaxis,{range:[f,c-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[A,A+E*zT],anchor:"free",position:0,_id:"y",_length:b});D4(L,r.graphDiv._fullLayout),L.setScale();var _=r.baxis=LG({},e.baxis,{range:[c-f-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});D4(_,r.graphDiv._fullLayout),_.setScale();var k=r.caxis=LG({},e.caxis,{range:[c-f-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[A,A+E*zT],anchor:"free",position:0,_id:"y",_length:b});D4(k,r.graphDiv._fullLayout),k.setScale();var M="M"+v+","+(x+p)+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDef.select("path").attr("d",M),r.layers.plotbg.select("path").attr("d",M);var g="M0,"+p+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDefRelative.select("path").attr("d",g);var P=Dm(v,x);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var T=Dm(v-_._offset,x+p);r.layers.baxis.attr("transform",T),r.layers.bgrid.attr("transform",T);var z=Dm(v+b/2,x)+"rotate(30)"+Dm(0,-L._offset);r.layers.aaxis.attr("transform",z),r.layers.agrid.attr("transform",z);var O=Dm(v+b/2,x)+"rotate(-30)"+Dm(0,-k._offset);r.layers.caxis.attr("transform",O),r.layers.cgrid.attr("transform",O),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+v+","+(x+p)+"l"+b/2+",-"+p:"M0,0").call(OT.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",_.showline?"M"+v+","+(x+p)+"h"+b:"M0,0").call(OT.stroke,_.linecolor||"#000").style("stroke-width",(_.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",k.showline?"M"+(v+b/2)+","+x+"l"+b/2+","+p:"M0,0").call(OT.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),P8.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Fm.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.substr(7)+"title",i=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var l=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;i["a-title"]=PG.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title",placeholder:L8(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-l,"text-anchor":"middle"}}),i["b-title"]=PG.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title",placeholder:L8(r,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),i["c-title"]=PG.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title",placeholder:L8(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+s.title.font.size*.83+u,"text-anchor":"middle"}})}};Fm.drawAx=function(e){var t=this,r=t.graphDiv,n=e._name,i=n.charAt(0),a=e._id,o=t.layers[n],s=30,l=i+"tickLayout",u=n2t(e);t[l]!==u&&(o.selectAll("."+a+"tick").remove(),t[l]=u),e.setScale();var c=E_.calcTicks(e),f=E_.clipEnds(e,c),h=E_.makeTransTickFn(e),d=E_.getTickSigns(e)[2],v=By.deg2rad(s),x=d*(e.linewidth||1)/2,b=d*e.ticklen,p=t.w,C=t.h,E=i==="b"?"M0,"+x+"l"+Math.sin(v)*b+","+Math.cos(v)*b:"M"+x+",0l"+Math.cos(v)*b+","+-Math.sin(v)*b,A={a:"M0,0l"+C+",-"+p/2,b:"M0,0l-"+p/2+",-"+C,c:"M0,0l-"+C+","+p/2}[i];E_.drawTicks(r,e,{vals:e.ticks==="inside"?f:c,layer:o,path:E,transFn:h,crisp:!1}),E_.drawGrid(r,e,{vals:f,layer:t.layers[i+"grid"],path:A,transFn:h,crisp:!1}),E_.drawLabels(r,e,{vals:c,layer:o,transFn:h,labelFns:E_.makeLabelFns(e,0,s)})};function n2t(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var yd=m2e.MINZOOM/2+.87,a2t="m-0.87,.5h"+yd+"v3h-"+(yd+5.2)+"l"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l2.6,1.5l-"+yd/2+","+yd*.87+"Z",o2t="m0.87,.5h-"+yd+"v3h"+(yd+5.2)+"l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-2.6,1.5l"+yd/2+","+yd*.87+"Z",s2t="m0,1l"+yd/2+","+yd*.87+"l2.6,-1.5l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-"+(yd/2+2.6)+","+(yd*.87+4.5)+"l2.6,1.5l"+yd/2+",-"+yd*.87+"Z",l2t="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",d2e=!0;Fm.clearOutline=function(){i2t(this.dragOptions),r2t(this.dragOptions.gd)};Fm.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,n=r._fullLayout._zoomlayer,i,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(T,z,O){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],i=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var V=e.dragOptions.dragmode=r._fullLayout.dragmode;h2e(V)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,V==="zoom"?(e.dragOptions.moveFn=_,e.dragOptions.clickFn=p,e.dragOptions.doneFn=k,C(T,z,O)):V==="pan"?(e.dragOptions.moveFn=g,e.dragOptions.clickFn=p,e.dragOptions.doneFn=P,M(),e.clearOutline(r)):(Qbt(V)||h2e(V))&&e2t(T,z,O,e.dragOptions,V)}};var o,s,l,u,c,f,h,d,v,x;function b(T){var z={};return z[e.id+".aaxis.min"]=T.a,z[e.id+".baxis.min"]=T.b,z[e.id+".caxis.min"]=T.c,z}function p(T,z){var O=r._fullLayout.clickmode;v2e(r),T===2&&(r.emit("plotly_doubleclick",null),kG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),O.indexOf("select")>-1&&T===1&&t2t(z,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),O.indexOf("event")>-1&&f2e.click(r,z,e.id)}function C(T,z,O){var V=t.getBoundingClientRect();o=z-V.left,s=O-V.top,r._fullLayout._calcInverseTransform(r);var G=r._fullLayout._invTransform,Z=By.apply3DTransform(G)(o,s);o=Z[0],s=Z[1],l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l,u=e.aaxis.range[1]-l.a,f=Jbt(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,v=n.append("path").attr("class","zoombox").attr("transform",Dm(e.x0,e.y0)).style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),x=n.append("path").attr("class","zoombox-corners").attr("transform",Dm(e.x0,e.y0)).style({fill:OT.background,stroke:OT.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function E(T,z){return 1-z/e.h}function A(T,z){return 1-(T+(e.h-z)/Math.sqrt(3))/e.w}function L(T,z){return(T-(e.h-z)/Math.sqrt(3))/e.w}function _(T,z){var O=o+T*i,V=s+z*a,G=Math.max(0,Math.min(1,E(o,s),E(O,V))),Z=Math.max(0,Math.min(1,A(o,s),A(O,V))),H=Math.max(0,Math.min(1,L(o,s),L(O,V))),N=(G/2+H)*e.w,j=(1-G/2-Z)*e.w,re=(N+j)/2,oe=j-N,_e=(1-G)*e.h,Me=_e-oe/zT;oe.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),x.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(c))}function k(){v2e(r),c!==l&&(kG.call("_guiRelayout",r,b(c)),d2e&&r.data&&r._context.showTips&&(By.notifier(L8(r,"Double-click to zoom back out"),"long"),d2e=!1))}function M(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l}function g(T,z){var O=T/e.xaxis._m,V=z/e.yaxis._m;c={a:l.a-V,b:l.b+(O+V)/2,c:l.c-(O-V)/2};var G=[c.a,c.b,c.c].sort(By.sorterAsc),Z={a:G.indexOf(c.a),b:G.indexOf(c.b),c:G.indexOf(c.c)};G[0]<0&&(G[1]+G[0]/2<0?(G[2]+=G[0]+G[1],G[0]=G[1]=0):(G[2]+=G[0]/2,G[1]+=G[0]/2,G[0]=0),c={a:G[Z.a],b:G[Z.b],c:G[Z.c]},z=(l.a-c.a)*e.yaxis._m,T=(l.c-c.c-l.b+c.b)*e.xaxis._m);var H=Dm(e.x0+T,e.y0+z);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",H);var N=Dm(-T,-z);e.clipDefRelative.select("path").attr("transform",N),e.aaxis.range=[c.a,e.sum-c.b-c.c],e.baxis.range=[e.sum-c.a-c.c,c.b],e.caxis.range=[e.sum-c.a-c.b,c.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(P8.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(c))}function P(){kG.call("_guiRelayout",r,b(c))}t.onmousemove=function(T){f2e.hover(r,T,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(T){r._dragging||c2e.unhover(r,T)},c2e.init(this.dragOptions)};function v2e(e){p2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var DG=ye((Uur,b2e)=>{"use strict";var u2t=Eh(),c2t=kc().attributes,su=Rd(),f2t=mc().overrideAll,IG=Ao().extendFlat,RG={title:{text:su.title.text,font:su.title.font},color:su.color,tickmode:su.minor.tickmode,nticks:IG({},su.nticks,{dflt:6,min:1}),tick0:su.tick0,dtick:su.dtick,tickvals:su.tickvals,ticktext:su.ticktext,ticks:su.ticks,ticklen:su.ticklen,tickwidth:su.tickwidth,tickcolor:su.tickcolor,ticklabelstep:su.ticklabelstep,showticklabels:su.showticklabels,labelalias:su.labelalias,showtickprefix:su.showtickprefix,tickprefix:su.tickprefix,showticksuffix:su.showticksuffix,ticksuffix:su.ticksuffix,showexponent:su.showexponent,exponentformat:su.exponentformat,minexponent:su.minexponent,separatethousands:su.separatethousands,tickfont:su.tickfont,tickangle:su.tickangle,tickformat:su.tickformat,tickformatstops:su.tickformatstops,hoverformat:su.hoverformat,showline:IG({},su.showline,{dflt:!0}),linecolor:su.linecolor,linewidth:su.linewidth,showgrid:IG({},su.showgrid,{dflt:!0}),gridcolor:su.gridcolor,gridwidth:su.gridwidth,griddash:su.griddash,layer:su.layer,min:{valType:"number",dflt:0,min:0}},I8=b2e.exports=f2t({domain:c2t({name:"ternary"}),bgcolor:{valType:"color",dflt:u2t.background},sum:{valType:"number",dflt:1,min:0},aaxis:RG,baxis:RG,caxis:RG},"plot","from-root");I8.uirevision={valType:"any",editType:"none"};I8.aaxis.uirevision=I8.baxis.uirevision=I8.caxis.uirevision={valType:"any",editType:"none"}});var C_=ye((Vur,w2e)=>{"use strict";var h2t=Dr(),d2t=pl(),v2t=kc().defaults;w2e.exports=function(t,r,n,i){var a=i.type,o=i.attributes,s=i.handleDefaults,l=i.partition||"x",u=r._subplots[a],c=u.length,f=c&&u[0].replace(/\d+$/,""),h,d;function v(C,E){return h2t.coerce(h,d,o,C,E)}for(var x=0;x{"use strict";var p2t=Ca(),g2t=pl(),R8=Dr(),m2t=C_(),y2t=e_(),_2t=t_(),x2t=T3(),b2t=xb(),w2t=QM(),A2e=DG(),T2e=["aaxis","baxis","caxis"];S2e.exports=function(t,r,n){m2t(t,r,n,{type:"ternary",attributes:A2e,handleDefaults:T2t,font:r.font,paper_bgcolor:r.paper_bgcolor})};function T2t(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=p2t.combine(i,n.paper_bgcolor);for(var o,s,l,u=0;u=a&&(c.min=0,f.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function A2t(e,t,r,n){var i=A2e[t._name];function a(d,v){return R8.coerce(e,t,i,d,v)}a("uirevision",n.uirevision),t.type="linear";var o=a("color"),s=o!==i.color.dflt?o:r.font.color,l=t._name,u=l.charAt(0).toUpperCase(),c="Component "+u,f=a("title.text",c);t._hovertitle=f===c?f:u,R8.coerceFont(a,"title.font",r.font,{overrideDflt:{size:R8.bigFont(r.font.size),color:s}}),a("min"),b2t(e,t,a,"linear"),_2t(e,t,a,"linear"),y2t(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),x2t(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(R8.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),w2t(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var E2e=ye(W0=>{"use strict";var S2t=x2e(),M2t=Id().getSubplotCalcData,E2t=Dr().counterRegex,qT="ternary";W0.name=qT;var C2t=W0.attr="subplot";W0.idRoot=qT;W0.idRegex=W0.attrRegex=E2t(qT);var k2t=W0.attributes={};k2t[C2t]={valType:"subplotid",dflt:"ternary",editType:"calc"};W0.layoutAttributes=DG();W0.supplyLayoutDefaults=M2e();W0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[qT],a=0;a{"use strict";C2e.exports={attributes:MG(),supplyDefaults:Jbe(),colorbar:$d(),formatLabels:Qbe(),calc:i2e(),plot:a2e(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:s2e(),selectPoints:lT(),eventData:u2e(),moduleType:"trace",name:"scatterternary",basePlotModule:E2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var P2e=ye((Wur,L2e)=>{"use strict";L2e.exports=k2e()});var FG=ye((Xur,R2e)=>{"use strict";var td=y4(),BT=Ao().extendFlat,I2e=df().axisHoverFormat;R2e.exports={y:td.y,x:td.x,x0:td.x0,y0:td.y0,xhoverformat:I2e("x"),yhoverformat:I2e("y"),name:BT({},td.name,{}),orientation:BT({},td.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:td.fillcolor,points:BT({},td.boxpoints,{}),jitter:BT({},td.jitter,{}),pointpos:BT({},td.pointpos,{}),width:BT({},td.width,{}),marker:td.marker,text:td.text,hovertext:td.hovertext,hovertemplate:td.hovertemplate,quartilemethod:td.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:td.offsetgroup,alignmentgroup:td.alignmentgroup,selected:td.selected,unselected:td.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:td.zorder}});var qG=ye((Zur,D2e)=>{"use strict";var zG=_4(),OG=Dr().extendFlat;D2e.exports={violinmode:OG({},zG.boxmode,{}),violingap:OG({},zG.boxgap,{}),violingroupgap:OG({},zG.boxgroupgap,{})}});var B2e=ye((Yur,q2e)=>{"use strict";var F2e=Dr(),L2t=Ca(),z2e=b4(),O2e=FG();q2e.exports=function(t,r,n,i){function a(L,_){return F2e.coerce(t,r,O2e,L,_)}function o(L,_){return F2e.coerce2(t,r,O2e,L,_)}if(z2e.handleSampleDefaults(t,r,a,i),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var l=a("span"),u;Array.isArray(l)&&(u="manual"),a("spanmode",u);var c=a("line.color",(t.marker||{}).color||n),f=a("line.width"),h=a("fillcolor",L2t.addOpacity(r.line.color,.5));z2e.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),v=o("box.fillcolor",h),x=o("box.line.color",c),b=o("box.line.width",f),p=a("box.visible",!!(d||v||x||b));p||(r.box={visible:!1});var C=o("meanline.color",c),E=o("meanline.width",f),A=a("meanline.visible",!!(C||E));A||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var U2e=ye((Kur,N2e)=>{"use strict";var P2t=Dr(),I2t=qG(),R2t=jI();N2e.exports=function(t,r,n){function i(a,o){return P2t.coerce(t,r,I2t,a,o)}R2t._supply(t,r,n,i,"violin")}});var D8=ye(o2=>{"use strict";var D2t=Dr(),F2t={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};o2.makeKDE=function(e,t,r){var n=r.length,i=F2t.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var l=0,u=0;u{"use strict";var BG=Dr(),NG=ho(),z2t=PV(),V2e=D8(),O2t=hs().BADNUM;G2e.exports=function(t,r){var n=z2t(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=NG.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,l=0,u=0,c=0;c{"use strict";var U2t=XI().setPositionOffset,j2e=["v","h"];W2e.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var UG=Oa(),VG=Dr(),V2t=So(),GG=ZI(),G2t=gU(),H2t=D8();Z2e.exports=function(t,r,n,i){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,l=r.yaxis;function u(c,f){var h=G2t(c,{xaxis:s,yaxis:l,trace:f,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return V2t.smoothopen(h[0],1)}VG.makeTraceGroups(i,n,"trace violins").each(function(c){var f=UG.select(this),h=c[0],d=h.t,v=h.trace;if(v.visible!==!0||d.empty){f.remove();return}var x=d.bPos,b=d.bdPos,p=r[d.valLetter+"axis"],C=r[d.posLetter+"axis"],E=v.side==="both",A=E||v.side==="positive",L=E||v.side==="negative",_=f.selectAll("path.violin").data(VG.identity);_.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),_.exit().remove(),_.each(function(V){var G=UG.select(this),Z=V.density,H=Z.length,N=C.c2l(V.pos+x,!0),j=C.l2p(N),re;if(v.width)re=d.maxKDE/b;else{var oe=o._violinScaleGroupStats[v.scalegroup];re=v.scalemode==="count"?oe.maxKDE/b*(oe.maxCount/V.pts.length):oe.maxKDE/b}var _e,Me,ke,me,ie,Se,Le;if(A){for(Se=new Array(H),me=0;me{"use strict";var K2e=Oa(),NT=Ca(),j2t=ap().stylePoints;J2e.exports=function(t){var r=K2e.select(t).selectAll("g.trace.violins");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=n[0].trace,a=K2e.select(this),o=i.box||{},s=o.line||{},l=i.meanline||{},u=l.width;a.selectAll("path.violin").style("stroke-width",i.line.width+"px").call(NT.stroke,i.line.color).call(NT.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(NT.stroke,s.color).call(NT.fill,o.fillcolor);var c={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};a.selectAll("path.mean").style(c).call(NT.stroke,l.color),a.selectAll("path.meanline").style(c).call(NT.stroke,l.color),j2t(a,i,t)})}});var rwe=ye((rcr,twe)=>{"use strict";var W2t=Ca(),HG=Dr(),X2t=ho(),Q2e=zV(),ewe=D8();twe.exports=function(t,r,n,i,a){a||(a={});var o=a.hoverLayer,s=t.cd,l=s[0].trace,u=l.hoveron,c=u.indexOf("violins")!==-1,f=u.indexOf("kde")!==-1,h=[],d,v;if(c||f){var x=Q2e.hoverOnBoxes(t,r,n,i);if(f&&x.length>0){var b=t.xa,p=t.ya,C,E,A,L,_;l.orientation==="h"?(_=r,C="y",A=p,E="x",L=b):(_=n,C="x",A=b,E="y",L=p);var k=s[t.index];if(_>=k.span[0]&&_<=k.span[1]){var M=HG.extendFlat({},t),g=L.c2p(_,!0),P=ewe.getKdeValue(k,l,_),T=ewe.getPositionOnKdePath(k,l,g),z=A._offset,O=A._length;M[C+"0"]=T[0],M[C+"1"]=T[1],M[E+"0"]=M[E+"1"]=g,M[E+"Label"]=E+": "+X2t.hoverLabelText(L,_,l[E+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var V=0,G=0;G{"use strict";iwe.exports={attributes:FG(),layoutAttributes:qG(),supplyDefaults:B2e(),crossTraceDefaults:b4().crossTraceDefaults,supplyLayoutDefaults:U2e(),calc:H2e(),crossTraceCalc:X2e(),plot:Y2e(),style:$2e(),styleOnSelect:ap().styleOnSelect,hoverPoints:rwe(),selectPoints:OV(),moduleType:"trace",name:"violin",basePlotModule:vh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var owe=ye((ncr,awe)=>{"use strict";awe.exports=nwe()});var lwe=ye((acr,swe)=>{"use strict";swe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var WG=ye((ocr,fwe)=>{"use strict";var jc=Lm(),jG=pf().line,Z2t=Gl(),uwe=df().axisHoverFormat,Y2t=Qo().hovertemplateAttrs,K2t=Qo().texttemplateAttrs,cwe=lwe(),Ny=Ao().extendFlat,J2t=Ca();fwe.exports={x:jc.x,x0:jc.x0,dx:jc.dx,y:jc.y,y0:jc.y0,dy:jc.dy,xperiod:jc.xperiod,yperiod:jc.yperiod,xperiod0:jc.xperiod0,yperiod0:jc.yperiod0,xperiodalignment:jc.xperiodalignment,yperiodalignment:jc.yperiodalignment,xhoverformat:uwe("x"),yhoverformat:uwe("y"),hovertext:jc.hovertext,hovertemplate:Y2t({},{keys:cwe.eventDataKeys}),hoverinfo:Ny({},Z2t.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:K2t({editType:"plot"},{keys:cwe.eventDataKeys.concat(["label","value"])}),text:jc.text,textposition:jc.textposition,insidetextanchor:Ny({},jc.insidetextanchor,{dflt:"middle"}),textangle:Ny({},jc.textangle,{dflt:0}),textfont:jc.textfont,insidetextfont:jc.insidetextfont,outsidetextfont:jc.outsidetextfont,constraintext:jc.constraintext,cliponaxis:jc.cliponaxis,orientation:Ny({},jc.orientation,{}),offset:Ny({},jc.offset,{arrayOk:!1}),width:Ny({},jc.width,{arrayOk:!1}),marker:$2t(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Ny({},jG.color,{dflt:J2t.defaultLine}),width:Ny({},jG.width,{dflt:0,editType:"plot"}),dash:jG.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:jc.offsetgroup,alignmentgroup:jc.alignmentgroup,zorder:jc.zorder};function $2t(){var e=Ny({},jc.marker);return delete e.pattern,delete e.cornerradius,e}});var XG=ye((scr,hwe)=>{"use strict";hwe.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var YG=ye((lcr,vwe)=>{"use strict";var F8=Dr(),Q2t=Gb(),ewt=r0().handleText,twt=K3(),rwt=Pg(),dwe=WG(),ZG=Ca();function iwt(e,t,r,n){function i(f,h){return F8.coerce(e,t,dwe,f,h)}var a=twt(e,t,n,i);if(!a){t.visible=!1;return}rwt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("orientation",t.y&&!t.x?"v":"h"),i("offset"),i("width");var o=i("text");i("hovertext"),i("hovertemplate");var s=i("textposition");ewt(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",F8.isArrayOrTypedArray(o)?"text+value":"value");var l=i("marker.color",r);i("marker.line.color",ZG.defaultLine),i("marker.line.width");var u=i("connector.visible");if(u){i("connector.fillcolor",nwt(l));var c=i("connector.line.width");c&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function nwt(e){var t=F8.isArrayOrTypedArray(e)?"#000":e;return ZG.addOpacity(t,.5*ZG.opacity(t))}function awt(e,t){var r,n;function i(o){return F8.coerce(n._input,n,dwe,o)}for(var a=0;a{"use strict";var owt=Dr(),swt=XG();pwe.exports=function(e,t,r){var n=!1;function i(s,l){return owt.coerce(e,t,swt,s,l)}for(var a=0;a{"use strict";var UT=Dr();mwe.exports=function(t,r){for(var n=0;n{"use strict";var _we=ho(),xwe=Rg(),lwt=ywe(),uwt=z0(),F4=hs().BADNUM;bwe.exports=function(t,r){var n=_we.getFromId(t,r.xaxis||"x"),i=_we.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f,h;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=xwe(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=xwe(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;var d=Math.min(o.length,a.length),v=new Array(d);for(r._base=[],f=0;f{"use strict";var Twe=Hb().setGroupPositions;Awe.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var z8=Oa(),L_=Dr(),Mwe=So(),k_=hs().BADNUM,cwt=i2(),fwt=bv().clearMinTextSize;Cwe.exports=function(t,r,n,i){var a=t._fullLayout;fwt("funnel",a),hwt(t,r,n,i),dwt(t,r,n,i),cwt.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function hwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;L_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=z8.select(this),l=o[0].trace,u=L_.ensureSingle(s,"g","regions");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.region").data(L_.identity);f.enter().append("g").classed("region",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var x=Ewe(d,i,a,c),b=x[0],p=x[1],C="";b[0]!==k_&&p[0]!==k_&&b[1]!==k_&&p[1]!==k_&&b[2]!==k_&&p[2]!==k_&&b[3]!==k_&&p[3]!==k_&&(c?C+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2]+"H"+b[3]+"L"+b[1]+","+p[1]+"Z":C+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3]+"V"+p[2]+"L"+b[1]+","+p[0]+"Z"),C===""&&(C="M0,0Z"),L_.ensureSingle(z8.select(this),"path").attr("d",C).call(Mwe.setClipUrl,t.layerClipId,e)}})})}function dwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;L_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=z8.select(this),l=o[0].trace,u=L_.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible||!l.connector.line.width){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.line").data(L_.identity);f.enter().append("g").classed("line",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var x=Ewe(d,i,a,c),b=x[0],p=x[1],C="";b[3]!==void 0&&p[3]!==void 0&&(c?(C+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2],C+="M"+b[1]+","+p[1]+"L"+b[3]+","+p[2]):(C+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3],C+="M"+b[1]+","+p[0]+"L"+b[2]+","+p[2])),C===""&&(C="M0,0Z"),L_.ensureSingle(z8.select(this),"path").attr("d",C).call(Mwe.setClipUrl,t.layerClipId,e)}})})}function Ewe(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}});var Iwe=ye((vcr,Pwe)=>{"use strict";var z4=Oa(),Lwe=So(),JG=Ca(),vwt=N1().DESELECTDIM,pwt=N0(),gwt=bv().resizeText,mwt=pwt.styleTextPoints;function ywt(e,t,r){var n=r||z4.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");gwt(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=z4.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o.marker;z4.select(this).call(JG.fill,s.mc||l.color).call(JG.stroke,s.mlc||l.line.color).call(Lwe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?vwt:1)}}),mwt(a,o,e),a.selectAll(".regions").each(function(){z4.select(this).selectAll("path").style("stroke-width",0).call(JG.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;Lwe.lineGroupStyle(z4.select(this).selectAll("path"),s.width,s.color,s.dash)})})}Pwe.exports={style:ywt}});var Fwe=ye((pcr,Dwe)=>{"use strict";var Rwe=Ca().opacity,_wt=TT().hoverOnBars,$G=Dr().formatPercent;Dwe.exports=function(t,r,n,i,a){var o=_wt(t,r,n,i,a);if(o){var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=o.index,f=s[c],h=u?"x":"y";o[h+"LabelVal"]=f.s,o.percentInitial=f.begR,o.percentInitialLabel=$G(f.begR,1),o.percentPrevious=f.difR,o.percentPreviousLabel=$G(f.difR,1),o.percentTotal=f.sumR,o.percentTotalLabel=$G(f.sumR,1);var d=f.hi||l.hoverinfo,v=[];if(d&&d!=="none"&&d!=="skip"){var x=d==="all",b=d.split("+"),p=function(C){return x||b.indexOf(C)!==-1};p("percent initial")&&v.push(o.percentInitialLabel+" of initial"),p("percent previous")&&v.push(o.percentPreviousLabel+" of previous"),p("percent total")&&v.push(o.percentTotalLabel+" of total")}return o.extraText=v.join("
"),o.color=xwt(l,f),[o]}};function xwt(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(Rwe(n))return n;if(Rwe(i)&&a)return i}});var Owe=ye((gcr,zwe)=>{"use strict";zwe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var Bwe=ye((mcr,qwe)=>{"use strict";qwe.exports={attributes:WG(),layoutAttributes:XG(),supplyDefaults:YG().supplyDefaults,crossTraceDefaults:YG().crossTraceDefaults,supplyLayoutDefaults:gwe(),calc:wwe(),crossTraceCalc:Swe(),plot:kwe(),style:Iwe().style,hoverPoints:Fwe(),eventData:Owe(),selectPoints:AT(),moduleType:"trace",name:"funnel",basePlotModule:vh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var Uwe=ye((ycr,Nwe)=>{"use strict";Nwe.exports=Bwe()});var Gwe=ye((_cr,Vwe)=>{"use strict";Vwe.exports={eventDataKeys:["initial","delta","final"]}});var tH=ye((xcr,Wwe)=>{"use strict";var _c=Lm(),QG=pf().line,bwt=Gl(),Hwe=df().axisHoverFormat,wwt=Qo().hovertemplateAttrs,Twt=Qo().texttemplateAttrs,jwe=Gwe(),VT=Ao().extendFlat,Awt=Ca();function eH(e){return{marker:{color:VT({},_c.marker.color,{arrayOk:!1,editType:"style"}),line:{color:VT({},_c.marker.line.color,{arrayOk:!1,editType:"style"}),width:VT({},_c.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}Wwe.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:_c.x,x0:_c.x0,dx:_c.dx,y:_c.y,y0:_c.y0,dy:_c.dy,xperiod:_c.xperiod,yperiod:_c.yperiod,xperiod0:_c.xperiod0,yperiod0:_c.yperiod0,xperiodalignment:_c.xperiodalignment,yperiodalignment:_c.yperiodalignment,xhoverformat:Hwe("x"),yhoverformat:Hwe("y"),hovertext:_c.hovertext,hovertemplate:wwt({},{keys:jwe.eventDataKeys}),hoverinfo:VT({},bwt.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:Twt({editType:"plot"},{keys:jwe.eventDataKeys.concat(["label"])}),text:_c.text,textposition:_c.textposition,insidetextanchor:_c.insidetextanchor,textangle:_c.textangle,textfont:_c.textfont,insidetextfont:_c.insidetextfont,outsidetextfont:_c.outsidetextfont,constraintext:_c.constraintext,cliponaxis:_c.cliponaxis,orientation:_c.orientation,offset:_c.offset,width:_c.width,increasing:eH("increasing"),decreasing:eH("decreasing"),totals:eH("intermediate sums and total"),connector:{line:{color:VT({},QG.color,{dflt:Awt.defaultLine}),width:VT({},QG.width,{editType:"plot"}),dash:QG.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:_c.offsetgroup,alignmentgroup:_c.alignmentgroup,zorder:_c.zorder}});var rH=ye((bcr,Xwe)=>{"use strict";Xwe.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var GT=ye((wcr,Zwe)=>{"use strict";Zwe.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var nH=ye((Tcr,$we)=>{"use strict";var Ywe=Dr(),Swt=Gb(),Mwt=r0().handleText,Ewt=K3(),Cwt=Pg(),Kwe=tH(),kwt=Ca(),Jwe=GT(),Lwt=Jwe.INCREASING.COLOR,Pwt=Jwe.DECREASING.COLOR,Iwt="#4499FF";function iH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",kwt.defaultLine),e(t+".marker.line.width")}function Rwt(e,t,r,n){function i(u,c){return Ywe.coerce(e,t,Kwe,u,c)}var a=Ewt(e,t,n,i);if(!a){t.visible=!1;return}Cwt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("measure"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");Mwt(e,t,n,i,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(i("texttemplate"),t.texttemplate||i("textinfo")),iH(i,"increasing",Lwt),iH(i,"decreasing",Pwt),iH(i,"totals",Iwt);var s=i("connector.visible");if(s){i("connector.mode");var l=i("connector.line.width");l&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function Dwt(e,t){var r,n;function i(o){return Ywe.coerce(n._input,n,Kwe,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var Fwt=Dr(),zwt=rH();Qwe.exports=function(e,t,r){var n=!1;function i(s,l){return Fwt.coerce(e,t,zwt,s,l)}for(var a=0;a{"use strict";var t3e=ho(),r3e=Rg(),i3e=Dr().mergeArray,Owt=z0(),n3e=hs().BADNUM;function aH(e){return e==="a"||e==="absolute"}function oH(e){return e==="t"||e==="total"}a3e.exports=function(t,r){var n=t3e.getFromId(t,r.xaxis||"x"),i=t3e.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=r3e(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=r3e(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var f=Math.min(o.length,a.length),h=new Array(f),d=0,v,x=!1,b=0;b{"use strict";var s3e=Hb().setGroupPositions;l3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var c3e=Oa(),O8=Dr(),qwt=So(),HT=hs().BADNUM,Bwt=i2(),Nwt=bv().clearMinTextSize;f3e.exports=function(t,r,n,i){var a=t._fullLayout;Nwt("waterfall",a),Bwt.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),Uwt(t,r,n,i)};function Uwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;O8.makeTraceGroups(n,r,"trace bars").each(function(o){var s=c3e.select(this),l=o[0].trace,u=O8.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=l.connector.mode,h=u.selectAll("g.line").data(O8.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(v,x){if(!(x!==d-1&&!v.cNext)){var b=Vwt(v,i,a,c),p=b[0],C=b[1],E="";p[0]!==HT&&C[0]!==HT&&p[1]!==HT&&C[1]!==HT&&(f==="spanning"&&!v.isSum&&x>0&&(c?E+="M"+p[0]+","+C[1]+"V"+C[0]:E+="M"+p[1]+","+C[0]+"H"+p[0]),f!=="between"&&(v.isSum||x{"use strict";var q8=Oa(),d3e=So(),v3e=Ca(),Gwt=N1().DESELECTDIM,Hwt=N0(),jwt=bv().resizeText,Wwt=Hwt.styleTextPoints;function Xwt(e,t,r){var n=r||q8.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");jwt(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=q8.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o[s.dir].marker;q8.select(this).call(v3e.fill,l.color).call(v3e.stroke,l.line.color).call(d3e.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?Gwt:1)}}),Wwt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;d3e.lineGroupStyle(q8.select(this).selectAll("path"),s.width,s.color,s.dash)})})}p3e.exports={style:Xwt}});var b3e=ye((kcr,x3e)=>{"use strict";var Zwt=ho().hoverLabelText,m3e=Ca().opacity,Ywt=TT().hoverOnBars,y3e=GT(),_3e={increasing:y3e.INCREASING.SYMBOL,decreasing:y3e.DECREASING.SYMBOL};x3e.exports=function(t,r,n,i,a){var o=Ywt(t,r,n,i,a);if(!o)return;var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=u?"x":"y",f=u?t.xa:t.ya;function h(_){return Zwt(f,_,l[c+"hoverformat"])}var d=o.index,v=s[d],x=v.isSum?v.b+v.s:v.rawS;o.initial=v.b+v.s-x,o.delta=x,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=x<0?"("+b+")":b,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var p=v.hi||l.hoverinfo,C=[];if(p&&p!=="none"&&p!=="skip"){var E=p==="all",A=p.split("+"),L=function(_){return E||A.indexOf(_)!==-1};v.isSum||(L("final")&&(u?!L("x"):!L("y"))&&C.push(o.finalLabel),L("delta")&&(x<0?C.push(o.deltaLabel+" "+_3e.decreasing):C.push(o.deltaLabel+" "+_3e.increasing)),L("initial")&&C.push("Initial: "+o.initialLabel))}return C.length&&(o.extraText=C.join("
")),o.color=Kwt(l,v),[o]};function Kwt(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(m3e(n))return n;if(m3e(i)&&a)return i}});var T3e=ye((Lcr,w3e)=>{"use strict";w3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var S3e=ye((Pcr,A3e)=>{"use strict";A3e.exports={attributes:tH(),layoutAttributes:rH(),supplyDefaults:nH().supplyDefaults,crossTraceDefaults:nH().crossTraceDefaults,supplyLayoutDefaults:e3e(),calc:o3e(),crossTraceCalc:u3e(),plot:h3e(),style:g3e().style,hoverPoints:b3e(),eventData:T3e(),selectPoints:AT(),moduleType:"trace",name:"waterfall",basePlotModule:vh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var E3e=ye((Icr,M3e)=>{"use strict";M3e.exports=S3e()});var jT=ye((Rcr,C3e)=>{"use strict";C3e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}}});var sH=ye((Dcr,L3e)=>{"use strict";var Jwt=Gl(),$wt=pf().zorder,Qwt=Qo().hovertemplateAttrs,k3e=Ao().extendFlat,e3t=jT().colormodel,q4=["rgb","rgba","rgba256","hsl","hsla"],t3t=[],r3t=[];for(WT=0;WT{"use strict";var i3t=Dr(),n3t=sH(),P3e=jT(),a3t=Ly().IMAGE_URL_PREFIX;I3e.exports=function(t,r){function n(o,s){return i3t.coerce(t,r,n3t,o,s)}n("source"),r.source&&!r.source.match(a3t)&&delete r.source,r._hasSource=!!r.source;var i=n("z");if(r._hasZ=!(i===void 0||!i.length||!i[0]||!i[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}n("x0"),n("y0"),n("dx"),n("dy");var a;r._hasZ?(n("colormodel","rgb"),a=P3e.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=P3e.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),n("zsmooth"),n("text"),n("hovertext"),n("hovertemplate"),r._length=null,n("zorder")}});var Uy=ye((zcr,lH)=>{typeof Object.create=="function"?lH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:lH.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var uH=ye((Ocr,D3e)=>{D3e.exports=vb().EventEmitter});var O3e=ye(B8=>{"use strict";B8.byteLength=s3t;B8.toByteArray=u3t;B8.fromByteArray=h3t;var zm=[],X0=[],o3t=typeof Uint8Array!="undefined"?Uint8Array:Array,cH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(s2=0,F3e=cH.length;s20)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function s3t(e){var t=z3e(e),r=t[0],n=t[1];return(r+n)*3/4-n}function l3t(e,t,r){return(t+r)*3/4-r}function u3t(e){var t,r=z3e(e),n=r[0],i=r[1],a=new o3t(l3t(e,n,i)),o=0,s=i>0?n-4:n,l;for(l=0;l>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=X0[e.charCodeAt(l)]<<2|X0[e.charCodeAt(l+1)]>>4,a[o++]=t&255),i===1&&(t=X0[e.charCodeAt(l)]<<10|X0[e.charCodeAt(l+1)]<<4|X0[e.charCodeAt(l+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function c3t(e){return zm[e>>18&63]+zm[e>>12&63]+zm[e>>6&63]+zm[e&63]}function f3t(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(zm[t>>2]+zm[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(zm[t>>10]+zm[t>>4&63]+zm[t<<2&63]+"=")),i.join("")}});var q3e=ye(fH=>{fH.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,l=(1<>1,c=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,a=d&(1<<-c)-1,d>>=-c,c+=s;c>0;a=a*256+e[t+f],f+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=o*256+e[t+f],f+=h,c-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-u}return(d?-1:1)*o*Math.pow(2,a-n)};fH.write=function(e,t,r,n,i,a){var o,s,l,u=a*8-i-1,c=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,v=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=s&255,d+=v,s/=256,i-=8);for(o=o<0;e[r+d]=o&255,d+=v,o/=256,u-=8);e[r+d-v]|=x*128}});var u2=ye(KT=>{"use strict";var hH=O3e(),ZT=q3e(),B3e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;KT.Buffer=ta;KT.SlowBuffer=y3t;KT.INSPECT_MAX_BYTES=50;var N8=2147483647;KT.kMaxLength=N8;ta.TYPED_ARRAY_SUPPORT=d3t();!ta.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d3t(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(ta.prototype,"parent",{enumerable:!0,get:function(){if(ta.isBuffer(this))return this.buffer}});Object.defineProperty(ta.prototype,"offset",{enumerable:!0,get:function(){if(ta.isBuffer(this))return this.byteOffset}});function Vy(e){if(e>N8)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ta.prototype),t}function ta(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return gH(e)}return G3e(e,t,r)}ta.poolSize=8192;function G3e(e,t,r){if(typeof e=="string")return p3t(e,t);if(ArrayBuffer.isView(e))return g3t(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Om(e,ArrayBuffer)||e&&Om(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Om(e,SharedArrayBuffer)||e&&Om(e.buffer,SharedArrayBuffer)))return vH(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return ta.from(n,t,r);let i=m3t(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ta.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}ta.from=function(e,t,r){return G3e(e,t,r)};Object.setPrototypeOf(ta.prototype,Uint8Array.prototype);Object.setPrototypeOf(ta,Uint8Array);function H3e(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function v3t(e,t,r){return H3e(e),e<=0?Vy(e):t!==void 0?typeof r=="string"?Vy(e).fill(t,r):Vy(e).fill(t):Vy(e)}ta.alloc=function(e,t,r){return v3t(e,t,r)};function gH(e){return H3e(e),Vy(e<0?0:mH(e)|0)}ta.allocUnsafe=function(e){return gH(e)};ta.allocUnsafeSlow=function(e){return gH(e)};function p3t(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ta.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=j3e(e,t)|0,n=Vy(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function dH(e){let t=e.length<0?0:mH(e.length)|0,r=Vy(t);for(let n=0;n=N8)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N8.toString(16)+" bytes");return e|0}function y3t(e){return+e!=e&&(e=0),ta.alloc(+e)}ta.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ta.prototype};ta.compare=function(t,r){if(Om(t,Uint8Array)&&(t=ta.from(t,t.offset,t.byteLength)),Om(r,Uint8Array)&&(r=ta.from(r,r.offset,r.byteLength)),!ta.isBuffer(t)||!ta.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);ai.length?(ta.isBuffer(o)||(o=ta.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ta.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function j3e(e,t){if(ta.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Om(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return pH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return eTe(e).length;default:if(i)return n?-1:pH(e).length;t=(""+t).toLowerCase(),i=!0}}ta.byteLength=j3e;function _3t(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return k3t(this,t,r);case"utf8":case"utf-8":return X3e(this,t,r);case"ascii":return E3t(this,t,r);case"latin1":case"binary":return C3t(this,t,r);case"base64":return S3t(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L3t(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ta.prototype._isBuffer=!0;function l2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ta.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};B3e&&(ta.prototype[B3e]=ta.prototype.inspect);ta.prototype.compare=function(t,r,n,i,a){if(Om(t,Uint8Array)&&(t=ta.from(t,t.offset,t.byteLength)),!ta.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,s=n-r,l=Math.min(o,s),u=this.slice(i,a),c=t.slice(r,n);for(let f=0;f2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,_H(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ta.from(t,n)),ta.isBuffer(t))return t.length===0?-1:N3e(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):N3e(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function N3e(e,t,r,n,i){let a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function l(c,f){return a===1?c[f]:c.readUInt16BE(f*a)}let u;if(i){let c=-1;for(u=r;uo&&(r=o-s),u=r;u>=0;u--){let c=!0;for(let f=0;fi&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return x3t(this,t,r,n);case"utf8":case"utf-8":return b3t(this,t,r,n);case"ascii":case"latin1":case"binary":return w3t(this,t,r,n);case"base64":return T3t(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A3t(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ta.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S3t(e,t,r){return t===0&&r===e.length?hH.fromByteArray(e):hH.fromByteArray(e.slice(t,r))}function X3e(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let l,u,c,f;switch(s){case 1:a<128&&(o=a);break;case 2:l=e[i+1],(l&192)===128&&(f=(a&31)<<6|l&63,f>127&&(o=f));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(f=(a&15)<<12|(l&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:l=e[i+1],u=e[i+2],c=e[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(f=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return M3t(n)}var U3e=4096;function M3t(e){let t=e.length;if(t<=U3e)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let a=t;an&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}ta.prototype.readUintLE=ta.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ta.prototype.readUint8=ta.prototype.readUInt8=function(t,r){return t=t>>>0,r||ev(t,1,this.length),this[t]};ta.prototype.readUint16LE=ta.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||ev(t,2,this.length),this[t]|this[t+1]<<8};ta.prototype.readUint16BE=ta.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||ev(t,2,this.length),this[t]<<8|this[t+1]};ta.prototype.readUint32LE=ta.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ta.prototype.readUint32BE=ta.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ta.prototype.readBigUInt64LE=P_(function(t){t=t>>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&B4(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&B4(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};ta.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||ev(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};ta.prototype.readInt8=function(t,r){return t=t>>>0,r||ev(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ta.prototype.readInt16LE=function(t,r){t=t>>>0,r||ev(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ta.prototype.readInt16BE=function(t,r){t=t>>>0,r||ev(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ta.prototype.readInt32LE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ta.prototype.readInt32BE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ta.prototype.readBigInt64LE=P_(function(t){t=t>>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&B4(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&B4(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||ev(t,4,this.length),ZT.read(this,t,!0,23,4)};ta.prototype.readFloatBE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),ZT.read(this,t,!1,23,4)};ta.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||ev(t,8,this.length),ZT.read(this,t,!0,52,8)};ta.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||ev(t,8,this.length),ZT.read(this,t,!1,52,8)};function Ip(e,t,r,n,i,a){if(!ta.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}ta.prototype.writeUintLE=ta.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Ip(this,t,r,n,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Ip(this,t,r,n,s,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};ta.prototype.writeUint8=ta.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,1,255,0),this[r]=t&255,r+1};ta.prototype.writeUint16LE=ta.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};ta.prototype.writeUint16BE=ta.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};ta.prototype.writeUint32LE=ta.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};ta.prototype.writeUint32BE=ta.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function Z3e(e,t,r,n,i){Q3e(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function Y3e(e,t,r,n,i){Q3e(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}ta.prototype.writeBigUInt64LE=P_(function(t,r=0){return Z3e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ta.prototype.writeBigUInt64BE=P_(function(t,r=0){return Y3e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ta.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Ip(this,t,r,n,l-1,-l)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+n};ta.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Ip(this,t,r,n,l-1,-l)}let a=n-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+n};ta.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};ta.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};ta.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};ta.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};ta.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};ta.prototype.writeBigInt64LE=P_(function(t,r=0){return Z3e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ta.prototype.writeBigInt64BE=P_(function(t,r=0){return Y3e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function K3e(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function J3e(e,t,r,n,i){return t=+t,r=r>>>0,i||K3e(e,t,r,4,34028234663852886e22,-34028234663852886e22),ZT.write(e,t,r,n,23,4),r+4}ta.prototype.writeFloatLE=function(t,r,n){return J3e(this,t,r,!0,n)};ta.prototype.writeFloatBE=function(t,r,n){return J3e(this,t,r,!1,n)};function $3e(e,t,r,n,i){return t=+t,r=r>>>0,i||K3e(e,t,r,8,17976931348623157e292,-17976931348623157e292),ZT.write(e,t,r,n,52,8),r+8}ta.prototype.writeDoubleLE=function(t,r,n){return $3e(this,t,r,!0,n)};ta.prototype.writeDoubleBE=function(t,r,n){return $3e(this,t,r,!1,n)};ta.prototype.copy=function(t,r,n,i){if(!ta.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?i=V3e(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=V3e(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function V3e(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function P3t(e,t,r){YT(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&B4(t,e.length-(r+1))}function Q3e(e,t,r,n,i,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new XT.ERR_OUT_OF_RANGE("value",s,e)}P3t(n,i,a)}function YT(e,t){if(typeof e!="number")throw new XT.ERR_INVALID_ARG_TYPE(t,"number",e)}function B4(e,t,r){throw Math.floor(e)!==e?(YT(e,r),new XT.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new XT.ERR_BUFFER_OUT_OF_BOUNDS:new XT.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var I3t=/[^+/0-9A-Za-z-_]/g;function R3t(e){if(e=e.split("=")[0],e=e.trim().replace(I3t,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function pH(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function D3t(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function eTe(e){return hH.toByteArray(R3t(e))}function U8(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Om(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function _H(e){return e!==e}var z3t=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function P_(e){return typeof BigInt=="undefined"?O3t:e}function O3t(){throw new Error("BigInt not supported")}});var V8=ye((Vcr,tTe)=>{"use strict";tTe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var N4=ye((Gcr,rTe)=>{"use strict";var q3t=V8();rTe.exports=function(){return q3t()&&!!Symbol.toStringTag}});var xH=ye((Hcr,iTe)=>{"use strict";iTe.exports=Object});var aTe=ye((jcr,nTe)=>{"use strict";nTe.exports=Error});var sTe=ye((Wcr,oTe)=>{"use strict";oTe.exports=EvalError});var uTe=ye((Xcr,lTe)=>{"use strict";lTe.exports=RangeError});var fTe=ye((Zcr,cTe)=>{"use strict";cTe.exports=ReferenceError});var bH=ye((Ycr,hTe)=>{"use strict";hTe.exports=SyntaxError});var JT=ye((Kcr,dTe)=>{"use strict";dTe.exports=TypeError});var pTe=ye((Jcr,vTe)=>{"use strict";vTe.exports=URIError});var mTe=ye(($cr,gTe)=>{"use strict";gTe.exports=Math.abs});var _Te=ye((Qcr,yTe)=>{"use strict";yTe.exports=Math.floor});var bTe=ye((efr,xTe)=>{"use strict";xTe.exports=Math.max});var TTe=ye((tfr,wTe)=>{"use strict";wTe.exports=Math.min});var STe=ye((rfr,ATe)=>{"use strict";ATe.exports=Math.pow});var ETe=ye((ifr,MTe)=>{"use strict";MTe.exports=Math.round});var kTe=ye((nfr,CTe)=>{"use strict";CTe.exports=Number.isNaN||function(t){return t!==t}});var PTe=ye((afr,LTe)=>{"use strict";var B3t=kTe();LTe.exports=function(t){return B3t(t)||t===0?t:t<0?-1:1}});var RTe=ye((ofr,ITe)=>{"use strict";ITe.exports=Object.getOwnPropertyDescriptor});var c2=ye((sfr,DTe)=>{"use strict";var G8=RTe();if(G8)try{G8([],"length")}catch(e){G8=null}DTe.exports=G8});var U4=ye((lfr,FTe)=>{"use strict";var H8=Object.defineProperty||!1;if(H8)try{H8({},"a",{value:1})}catch(e){H8=!1}FTe.exports=H8});var qTe=ye((ufr,OTe)=>{"use strict";var zTe=typeof Symbol!="undefined"&&Symbol,N3t=V8();OTe.exports=function(){return typeof zTe!="function"||typeof Symbol!="function"||typeof zTe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:N3t()}});var wH=ye((cfr,BTe)=>{"use strict";BTe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var TH=ye((ffr,NTe)=>{"use strict";var U3t=xH();NTe.exports=U3t.getPrototypeOf||null});var GTe=ye((hfr,VTe)=>{"use strict";var V3t="Function.prototype.bind called on incompatible ",G3t=Object.prototype.toString,H3t=Math.max,j3t="[object Function]",UTe=function(t,r){for(var n=[],i=0;i{"use strict";var Z3t=GTe();HTe.exports=Function.prototype.bind||Z3t});var j8=ye((vfr,jTe)=>{"use strict";jTe.exports=Function.prototype.call});var AH=ye((pfr,WTe)=>{"use strict";WTe.exports=Function.prototype.apply});var ZTe=ye((gfr,XTe)=>{"use strict";XTe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var KTe=ye((mfr,YTe)=>{"use strict";var Y3t=$T(),K3t=AH(),J3t=j8(),$3t=ZTe();YTe.exports=$3t||Y3t.call(J3t,K3t)});var $Te=ye((yfr,JTe)=>{"use strict";var Q3t=$T(),eTt=JT(),tTt=j8(),rTt=KTe();JTe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new eTt("a function is required");return rTt(Q3t,tTt,t)}});var nAe=ye((_fr,iAe)=>{"use strict";var iTt=$Te(),QTe=c2(),tAe;try{tAe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var SH=!!tAe&&QTe&&QTe(Object.prototype,"__proto__"),rAe=Object,eAe=rAe.getPrototypeOf;iAe.exports=SH&&typeof SH.get=="function"?iTt([SH.get]):typeof eAe=="function"?function(t){return eAe(t==null?t:rAe(t))}:!1});var uAe=ye((xfr,lAe)=>{"use strict";var aAe=wH(),oAe=TH(),sAe=nAe();lAe.exports=aAe?function(t){return aAe(t)}:oAe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return oAe(t)}:sAe?function(t){return sAe(t)}:null});var fAe=ye((bfr,cAe)=>{"use strict";var nTt=Function.prototype.call,aTt=Object.prototype.hasOwnProperty,oTt=$T();cAe.exports=oTt.call(nTt,aTt)});var Z8=ye((wfr,mAe)=>{"use strict";var lu,sTt=xH(),lTt=aTe(),uTt=sTe(),cTt=uTe(),fTt=fTe(),rA=bH(),tA=JT(),hTt=pTe(),dTt=mTe(),vTt=_Te(),pTt=bTe(),gTt=TTe(),mTt=STe(),yTt=ETe(),_Tt=PTe(),pAe=Function,MH=function(e){try{return pAe('"use strict"; return ('+e+").constructor;")()}catch(t){}},V4=c2(),xTt=U4(),EH=function(){throw new tA},bTt=V4?function(){try{return arguments.callee,EH}catch(e){try{return V4(arguments,"callee").get}catch(t){return EH}}}():EH,QT=qTe()(),tv=uAe(),wTt=TH(),TTt=wH(),gAe=AH(),G4=j8(),eA={},ATt=typeof Uint8Array=="undefined"||!tv?lu:tv(Uint8Array),f2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?lu:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?lu:ArrayBuffer,"%ArrayIteratorPrototype%":QT&&tv?tv([][Symbol.iterator]()):lu,"%AsyncFromSyncIteratorPrototype%":lu,"%AsyncFunction%":eA,"%AsyncGenerator%":eA,"%AsyncGeneratorFunction%":eA,"%AsyncIteratorPrototype%":eA,"%Atomics%":typeof Atomics=="undefined"?lu:Atomics,"%BigInt%":typeof BigInt=="undefined"?lu:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?lu:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?lu:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?lu:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":lTt,"%eval%":eval,"%EvalError%":uTt,"%Float16Array%":typeof Float16Array=="undefined"?lu:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?lu:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?lu:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?lu:FinalizationRegistry,"%Function%":pAe,"%GeneratorFunction%":eA,"%Int8Array%":typeof Int8Array=="undefined"?lu:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?lu:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?lu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":QT&&tv?tv(tv([][Symbol.iterator]())):lu,"%JSON%":typeof JSON=="object"?JSON:lu,"%Map%":typeof Map=="undefined"?lu:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!QT||!tv?lu:tv(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":sTt,"%Object.getOwnPropertyDescriptor%":V4,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?lu:Promise,"%Proxy%":typeof Proxy=="undefined"?lu:Proxy,"%RangeError%":cTt,"%ReferenceError%":fTt,"%Reflect%":typeof Reflect=="undefined"?lu:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?lu:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!QT||!tv?lu:tv(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?lu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":QT&&tv?tv(""[Symbol.iterator]()):lu,"%Symbol%":QT?Symbol:lu,"%SyntaxError%":rA,"%ThrowTypeError%":bTt,"%TypedArray%":ATt,"%TypeError%":tA,"%Uint8Array%":typeof Uint8Array=="undefined"?lu:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?lu:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?lu:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?lu:Uint32Array,"%URIError%":hTt,"%WeakMap%":typeof WeakMap=="undefined"?lu:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?lu:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?lu:WeakSet,"%Function.prototype.call%":G4,"%Function.prototype.apply%":gAe,"%Object.defineProperty%":xTt,"%Object.getPrototypeOf%":wTt,"%Math.abs%":dTt,"%Math.floor%":vTt,"%Math.max%":pTt,"%Math.min%":gTt,"%Math.pow%":mTt,"%Math.round%":yTt,"%Math.sign%":_Tt,"%Reflect.getPrototypeOf%":TTt};if(tv)try{null.error}catch(e){hAe=tv(tv(e)),f2["%Error.prototype%"]=hAe}var hAe,STt=function e(t){var r;if(t==="%AsyncFunction%")r=MH("async function () {}");else if(t==="%GeneratorFunction%")r=MH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=MH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&tv&&(r=tv(i.prototype))}return f2[t]=r,r},dAe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},H4=$T(),W8=fAe(),MTt=H4.call(G4,Array.prototype.concat),ETt=H4.call(gAe,Array.prototype.splice),vAe=H4.call(G4,String.prototype.replace),X8=H4.call(G4,String.prototype.slice),CTt=H4.call(G4,RegExp.prototype.exec),kTt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,LTt=/\\(\\)?/g,PTt=function(t){var r=X8(t,0,1),n=X8(t,-1);if(r==="%"&&n!=="%")throw new rA("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new rA("invalid intrinsic syntax, expected opening `%`");var i=[];return vAe(t,kTt,function(a,o,s,l){i[i.length]=s?vAe(l,LTt,"$1"):o||a}),i},ITt=function(t,r){var n=t,i;if(W8(dAe,n)&&(i=dAe[n],n="%"+i[0]+"%"),W8(f2,n)){var a=f2[n];if(a===eA&&(a=STt(n)),typeof a=="undefined"&&!r)throw new tA("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new rA("intrinsic "+t+" does not exist!")};mAe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new tA("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new tA('"allowMissing" argument must be a boolean');if(CTt(/^%?[^%]*%?$/,t)===null)throw new rA("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=PTt(t),i=n.length>0?n[0]:"",a=ITt("%"+i+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(i=u[0],ETt(n,MTt([0,1],u)));for(var c=1,f=!0;c=n.length){var x=V4(s,h);f=!!x,f&&"get"in x&&!("originalValue"in x.get)?s=x.get:s=s[h]}else f=W8(s,h),s=s[h];f&&!l&&(f2[o]=s)}}return s}});var bAe=ye((Tfr,xAe)=>{"use strict";var yAe=U4(),RTt=bH(),iA=JT(),_Ae=c2();xAe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new iA("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new iA("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new iA("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new iA("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new iA("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new iA("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!_Ae&&_Ae(t,r);if(yAe)yAe(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:a===null&&l?l.writable:!a});else if(s||!i&&!a&&!o)t[r]=n;else throw new RTt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var kH=ye((Afr,TAe)=>{"use strict";var CH=U4(),wAe=function(){return!!CH};wAe.hasArrayLengthDefineBug=function(){if(!CH)return null;try{return CH([],"length",{value:1}).length!==1}catch(t){return!0}};TAe.exports=wAe});var CAe=ye((Sfr,EAe)=>{"use strict";var DTt=Z8(),AAe=bAe(),FTt=kH()(),SAe=c2(),MAe=JT(),zTt=DTt("%Math.floor%");EAe.exports=function(t,r){if(typeof t!="function")throw new MAe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||zTt(r)!==r)throw new MAe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&SAe){var o=SAe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(FTt?AAe(t,"length",r,!0,!0):AAe(t,"length",r)),t}});var j4=ye((Mfr,Y8)=>{"use strict";var LH=$T(),K8=Z8(),OTt=CAe(),qTt=JT(),PAe=K8("%Function.prototype.apply%"),IAe=K8("%Function.prototype.call%"),RAe=K8("%Reflect.apply%",!0)||LH.call(IAe,PAe),kAe=U4(),BTt=K8("%Math.max%");Y8.exports=function(t){if(typeof t!="function")throw new qTt("a function is required");var r=RAe(LH,IAe,arguments);return OTt(r,1+BTt(0,t.length-(arguments.length-1)),!0)};var LAe=function(){return RAe(LH,PAe,arguments)};kAe?kAe(Y8.exports,"apply",{value:LAe}):Y8.exports.apply=LAe});var nA=ye((Efr,zAe)=>{"use strict";var DAe=Z8(),FAe=j4(),NTt=FAe(DAe("String.prototype.indexOf"));zAe.exports=function(t,r){var n=DAe(t,!!r);return typeof n=="function"&&NTt(t,".prototype.")>-1?FAe(n):n}});var BAe=ye((Cfr,qAe)=>{"use strict";var UTt=N4()(),VTt=nA(),PH=VTt("Object.prototype.toString"),J8=function(t){return UTt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:PH(t)==="[object Arguments]"},OAe=function(t){return J8(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&PH(t)!=="[object Array]"&&PH(t.callee)==="[object Function]"},GTt=function(){return J8(arguments)}();J8.isLegacyArguments=OAe;qAe.exports=GTt?J8:OAe});var VAe=ye((kfr,UAe)=>{"use strict";var HTt=Object.prototype.toString,jTt=Function.prototype.toString,WTt=/^\s*(?:function)?\*/,NAe=N4()(),IH=Object.getPrototypeOf,XTt=function(){if(!NAe)return!1;try{return Function("return function*() {}")()}catch(e){}},RH;UAe.exports=function(t){if(typeof t!="function")return!1;if(WTt.test(jTt.call(t)))return!0;if(!NAe){var r=HTt.call(t);return r==="[object GeneratorFunction]"}if(!IH)return!1;if(typeof RH=="undefined"){var n=XTt();RH=n?IH(n):!1}return IH(t)===RH}});var WAe=ye((Lfr,jAe)=>{"use strict";var HAe=Function.prototype.toString,aA=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,FH,$8;if(typeof aA=="function"&&typeof Object.defineProperty=="function")try{FH=Object.defineProperty({},"length",{get:function(){throw $8}}),$8={},aA(function(){throw 42},null,FH)}catch(e){e!==$8&&(aA=null)}else aA=null;var ZTt=/^\s*class\b/,zH=function(t){try{var r=HAe.call(t);return ZTt.test(r)}catch(n){return!1}},DH=function(t){try{return zH(t)?!1:(HAe.call(t),!0)}catch(r){return!1}},Q8=Object.prototype.toString,YTt="[object Object]",KTt="[object Function]",JTt="[object GeneratorFunction]",$Tt="[object HTMLAllCollection]",QTt="[object HTML document.all class]",eAt="[object HTMLCollection]",tAt=typeof Symbol=="function"&&!!Symbol.toStringTag,rAt=!(0 in[,]),OH=function(){return!1};typeof document=="object"&&(GAe=document.all,Q8.call(GAe)===Q8.call(document.all)&&(OH=function(t){if((rAt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=Q8.call(t);return(r===$Tt||r===QTt||r===eAt||r===YTt)&&t("")==null}catch(n){}return!1}));var GAe;jAe.exports=aA?function(t){if(OH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{aA(t,null,FH)}catch(r){if(r!==$8)return!1}return!zH(t)&&DH(t)}:function(t){if(OH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(tAt)return DH(t);if(zH(t))return!1;var r=Q8.call(t);return r!==KTt&&r!==JTt&&!/^\[object HTML/.test(r)?!1:DH(t)}});var qH=ye((Pfr,ZAe)=>{"use strict";var iAt=WAe(),nAt=Object.prototype.toString,XAe=Object.prototype.hasOwnProperty,aAt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),nAt.call(t)==="[object Array]"?aAt(t,r,i):typeof t=="string"?oAt(t,r,i):sAt(t,r,i)};ZAe.exports=lAt});var NH=ye((Ifr,YAe)=>{"use strict";var BH=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],uAt=typeof globalThis=="undefined"?window:globalThis;YAe.exports=function(){for(var t=[],r=0;r{"use strict";var tR=qH(),cAt=NH(),KAe=j4(),GH=nA(),eR=c2(),fAt=GH("Object.prototype.toString"),$Ae=N4()(),JAe=typeof globalThis=="undefined"?window:globalThis,VH=cAt(),HH=GH("String.prototype.slice"),UH=Object.getPrototypeOf,hAt=GH("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:vAt(t)}return eR?dAt(t):null}});var o5e=ye((Dfr,a5e)=>{"use strict";var t5e=qH(),pAt=NH(),WH=nA(),gAt=WH("Object.prototype.toString"),r5e=N4()(),iR=c2(),mAt=typeof globalThis=="undefined"?window:globalThis,i5e=pAt(),yAt=WH("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return iR?xAt(t):!1}});var YH=ye(uu=>{"use strict";var bAt=BAe(),wAt=VAe(),Gg=e5e(),s5e=o5e();function oA(e){return e.call.bind(e)}var l5e=typeof BigInt!="undefined",u5e=typeof Symbol!="undefined",Z0=oA(Object.prototype.toString),TAt=oA(Number.prototype.valueOf),AAt=oA(String.prototype.valueOf),SAt=oA(Boolean.prototype.valueOf);l5e&&(c5e=oA(BigInt.prototype.valueOf));var c5e;u5e&&(f5e=oA(Symbol.prototype.valueOf));var f5e;function X4(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}uu.isArgumentsObject=bAt;uu.isGeneratorFunction=wAt;uu.isTypedArray=s5e;function MAt(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}uu.isPromise=MAt;function EAt(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):s5e(e)||d5e(e)}uu.isArrayBufferView=EAt;function CAt(e){return Gg(e)==="Uint8Array"}uu.isUint8Array=CAt;function kAt(e){return Gg(e)==="Uint8ClampedArray"}uu.isUint8ClampedArray=kAt;function LAt(e){return Gg(e)==="Uint16Array"}uu.isUint16Array=LAt;function PAt(e){return Gg(e)==="Uint32Array"}uu.isUint32Array=PAt;function IAt(e){return Gg(e)==="Int8Array"}uu.isInt8Array=IAt;function RAt(e){return Gg(e)==="Int16Array"}uu.isInt16Array=RAt;function DAt(e){return Gg(e)==="Int32Array"}uu.isInt32Array=DAt;function FAt(e){return Gg(e)==="Float32Array"}uu.isFloat32Array=FAt;function zAt(e){return Gg(e)==="Float64Array"}uu.isFloat64Array=zAt;function OAt(e){return Gg(e)==="BigInt64Array"}uu.isBigInt64Array=OAt;function qAt(e){return Gg(e)==="BigUint64Array"}uu.isBigUint64Array=qAt;function nR(e){return Z0(e)==="[object Map]"}nR.working=typeof Map!="undefined"&&nR(new Map);function BAt(e){return typeof Map=="undefined"?!1:nR.working?nR(e):e instanceof Map}uu.isMap=BAt;function aR(e){return Z0(e)==="[object Set]"}aR.working=typeof Set!="undefined"&&aR(new Set);function NAt(e){return typeof Set=="undefined"?!1:aR.working?aR(e):e instanceof Set}uu.isSet=NAt;function oR(e){return Z0(e)==="[object WeakMap]"}oR.working=typeof WeakMap!="undefined"&&oR(new WeakMap);function UAt(e){return typeof WeakMap=="undefined"?!1:oR.working?oR(e):e instanceof WeakMap}uu.isWeakMap=UAt;function ZH(e){return Z0(e)==="[object WeakSet]"}ZH.working=typeof WeakSet!="undefined"&&ZH(new WeakSet);function VAt(e){return ZH(e)}uu.isWeakSet=VAt;function sR(e){return Z0(e)==="[object ArrayBuffer]"}sR.working=typeof ArrayBuffer!="undefined"&&sR(new ArrayBuffer);function h5e(e){return typeof ArrayBuffer=="undefined"?!1:sR.working?sR(e):e instanceof ArrayBuffer}uu.isArrayBuffer=h5e;function lR(e){return Z0(e)==="[object DataView]"}lR.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&lR(new DataView(new ArrayBuffer(1),0,1));function d5e(e){return typeof DataView=="undefined"?!1:lR.working?lR(e):e instanceof DataView}uu.isDataView=d5e;var XH=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function W4(e){return Z0(e)==="[object SharedArrayBuffer]"}function v5e(e){return typeof XH=="undefined"?!1:(typeof W4.working=="undefined"&&(W4.working=W4(new XH)),W4.working?W4(e):e instanceof XH)}uu.isSharedArrayBuffer=v5e;function GAt(e){return Z0(e)==="[object AsyncFunction]"}uu.isAsyncFunction=GAt;function HAt(e){return Z0(e)==="[object Map Iterator]"}uu.isMapIterator=HAt;function jAt(e){return Z0(e)==="[object Set Iterator]"}uu.isSetIterator=jAt;function WAt(e){return Z0(e)==="[object Generator]"}uu.isGeneratorObject=WAt;function XAt(e){return Z0(e)==="[object WebAssembly.Module]"}uu.isWebAssemblyCompiledModule=XAt;function p5e(e){return X4(e,TAt)}uu.isNumberObject=p5e;function g5e(e){return X4(e,AAt)}uu.isStringObject=g5e;function m5e(e){return X4(e,SAt)}uu.isBooleanObject=m5e;function y5e(e){return l5e&&X4(e,c5e)}uu.isBigIntObject=y5e;function _5e(e){return u5e&&X4(e,f5e)}uu.isSymbolObject=_5e;function ZAt(e){return p5e(e)||g5e(e)||m5e(e)||y5e(e)||_5e(e)}uu.isBoxedPrimitive=ZAt;function YAt(e){return typeof Uint8Array!="undefined"&&(h5e(e)||v5e(e))}uu.isAnyArrayBuffer=YAt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(uu,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var KH=ye((zfr,x5e)=>{x5e.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var rj=ye(cu=>{var b5e=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),ej(t)?r.showHidden=t:t&&cu._extend(r,t),d2(r.showHidden)&&(r.showHidden=!1),d2(r.depth)&&(r.depth=2),d2(r.colors)&&(r.colors=!1),d2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=JAt),hR(r,e,r.depth)}cu.inspect=I_;I_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};I_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function JAt(e,t){var r=I_.styles[t];return r?"\x1B["+I_.colors[r][0]+"m"+e+"\x1B["+I_.colors[r][1]+"m":e}function $At(e,t){return e}function QAt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function hR(e,t,r){if(e.customInspect&&t&&fR(t.inspect)&&t.inspect!==cu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return pR(n)||(n=hR(e,n,r)),n}var i=e5t(e,t);if(i)return i;var a=Object.keys(t),o=QAt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),Y4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return JH(t);if(a.length===0){if(fR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Z4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(dR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Y4(t))return JH(t)}var l="",u=!1,c=["{","}"];if(T5e(t)&&(u=!0,c=["[","]"]),fR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(Z4(t)&&(l=" "+RegExp.prototype.toString.call(t)),dR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Y4(t)&&(l=" "+JH(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return Z4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=t5t(e,t,r,o,a):h=a.map(function(d){return QH(e,t,r,o,d,u)}),e.seen.pop(),r5t(h,l,c)}function e5t(e,t){if(d2(t))return e.stylize("undefined","undefined");if(pR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(A5e(t))return e.stylize(""+t,"number");if(ej(t))return e.stylize(""+t,"boolean");if(vR(t))return e.stylize("null","null")}function JH(e){return"["+Error.prototype.toString.call(e)+"]"}function t5t(e,t,r,n,i){for(var a=[],o=0,s=t.length;o24?(isFinite(se)&&(clearTimeout(Ma),Ma=setTimeout(po,se)),Jn=0):(Jn=1,_o(po))}e.timer.flush=function(){Lo(),Co()};function Lo(){for(var X=Date.now(),se=_n;se;)X>=se.t&&se.c(X-se.t)&&(se.c=null),se=se.n;return X}function Co(){for(var X,se=_n,Te=1/0;se;)se.c?(se.t=0;--nt)Xr.push(He[gr[Gr[nt]][2]]);for(nt=+_i;nt1&&ir(X[Te[Ne-2]],X[Te[Ne-1]],X[He])<=0;)--Ne;Te[Ne++]=He}return Te.slice(0,Ne)}function cl(X,se){return X[0]-se[0]||X[1]-se[1]}e.geom.polygon=function(X){return ie(X,zl),X};var zl=e.geom.polygon.prototype=[];zl.area=function(){for(var X=-1,se=this.length,Te,Ne=this[se-1],He=0;++XJe)nt=nt.L;else if(Ct=se-xo(nt,Te),Ct>Je){if(!nt.R){Ne=nt;break}nt=nt.R}else{Ye>-Je?(Ne=nt.P,He=nt):Ct>-Je?(Ne=nt,He=nt.N):Ne=He=nt;break}var jt=ws(X);if(Os.insert(Ne,jt),!(!Ne&&!He)){if(Ne===He){Oo(Ne),He=ws(Ne.site),Os.insert(jt,He),jt.edge=He.edge=rf(Ne.site,jt.site),aa(Ne),aa(He);return}if(!He){jt.edge=rf(Ne.site,jt.site);return}Oo(Ne),Oo(He);var gr=Ne.site,yr=gr.x,Gr=gr.y,qr=X.x-yr,_i=X.y-Gr,bi=He.site,Xr=bi.x-yr,ni=bi.y-Gr,gi=2*(qr*ni-_i*Xr),Pi=qr*qr+_i*_i,Ai=Xr*Xr+ni*ni,ti={x:(ni*Pi-_i*Ai)/gi+yr,y:(qr*Ai-Xr*Pi)/gi+Gr};ml(He.edge,gr,bi,ti),jt.edge=rf(gr,X,null,ti),He.edge=rf(X,bi,null,ti),aa(Ne),aa(He)}}function Ol(X,se){var Te=X.site,Ne=Te.x,He=Te.y,Ye=He-se;if(!Ye)return Ne;var Ct=X.P;if(!Ct)return-1/0;Te=Ct.site;var nt=Te.x,jt=Te.y,gr=jt-se;if(!gr)return nt;var yr=nt-Ne,Gr=1/Ye-1/gr,qr=yr/gr;return Gr?(-qr+Math.sqrt(qr*qr-2*Gr*(yr*yr/(-2*gr)-jt+gr/2+He-Ye/2)))/Gr+Ne:(Ne+nt)/2}function xo(X,se){var Te=X.N;if(Te)return Ol(Te,se);var Ne=X.site;return Ne.y===se?Ne.x:1/0}function Yl(X){this.site=X,this.edges=[]}Yl.prototype.prepare=function(){for(var X=this.edges,se=X.length,Te;se--;)Te=X[se].edge,(!Te.b||!Te.a)&&X.splice(se,1);return X.sort(Hl),X.length};function Us(X){for(var se=X[0][0],Te=X[1][0],Ne=X[0][1],He=X[1][1],Ye,Ct,nt,jt,gr=Js,yr=gr.length,Gr,qr,_i,bi,Xr,ni;yr--;)if(Gr=gr[yr],!(!Gr||!Gr.prepare()))for(_i=Gr.edges,bi=_i.length,qr=0;qrJe||p(jt-Ct)>Je)&&(_i.splice(qr,0,new Zc(Uf(Gr.site,ni,p(nt-se)Je?{x:se,y:p(Ye-se)Je?{x:p(Ct-He)Je?{x:Te,y:p(Ye-Te)Je?{x:p(Ct-Ne)=-je)){var qr=jt*jt+gr*gr,_i=yr*yr+ni*ni,bi=(ni*qr-gr*_i)/Gr,Xr=(jt*_i-yr*qr)/Gr,ni=Xr+nt,gi=Su.pop()||new ac;gi.arc=X,gi.site=He,gi.x=bi+Ct,gi.y=ni+Math.sqrt(bi*bi+Xr*Xr),gi.cy=ni,X.circle=gi;for(var Pi=null,Ai=Zl._;Ai;)if(gi.y0)){if(Xr/=_i,_i<0){if(Xr0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}if(Xr=Te-nt,!(!_i&&Xr<0)){if(Xr/=_i,_i<0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}else if(_i>0){if(Xr0)){if(Xr/=bi,bi<0){if(Xr0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}if(Xr=Ne-jt,!(!bi&&Xr<0)){if(Xr/=bi,bi<0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}else if(bi>0){if(Xr0&&(He.a={x:nt+Gr*_i,y:jt+Gr*bi}),qr<1&&(He.b={x:nt+qr*_i,y:jt+qr*bi}),He}}}}}}function ql(X){for(var se=fl,Te=qo(X[0][0],X[0][1],X[1][0],X[1][1]),Ne=se.length,He;Ne--;)He=se[Ne],(!Pc(He,X)||!Te(He)||p(He.a.x-He.b.x)=Ye)return;if(yr>qr){if(!Ne)Ne={x:bi,y:Ct};else if(Ne.y>=nt)return;Te={x:bi,y:nt}}else{if(!Ne)Ne={x:bi,y:nt};else if(Ne.y1)if(yr>qr){if(!Ne)Ne={x:(Ct-gi)/ni,y:Ct};else if(Ne.y>=nt)return;Te={x:(nt-gi)/ni,y:nt}}else{if(!Ne)Ne={x:(nt-gi)/ni,y:nt};else if(Ne.y=Ye)return;Te={x:Ye,y:ni*Ye+gi}}else{if(!Ne)Ne={x:Ye,y:ni*Ye+gi};else if(Ne.x=yr&&gi.x<=qr&&gi.y>=Gr&&gi.y<=_i?[[yr,_i],[qr,_i],[qr,Gr],[yr,Gr]]:[];Pi.point=jt[Xr]}),gr}function nt(jt){return jt.map(function(gr,yr){return{x:Math.round(Ne(gr,yr)/Je)*Je,y:Math.round(He(gr,yr)/Je)*Je,i:yr}})}return Ct.links=function(jt){return sc(nt(jt)).edges.filter(function(gr){return gr.l&&gr.r}).map(function(gr){return{source:jt[gr.l.i],target:jt[gr.r.i]}})},Ct.triangles=function(jt){var gr=[];return sc(nt(jt)).cells.forEach(function(yr,Gr){for(var qr=yr.site,_i=yr.edges.sort(Hl),bi=-1,Xr=_i.length,ni,gi,Pi=_i[Xr-1].edge,Ai=Pi.l===qr?Pi.r:Pi.l;++biAi&&(Ai=yr.x),yr.y>ti&&(ti=yr.y),_i.push(yr.x),bi.push(yr.y);else for(Xr=0;XrAi&&(Ai=Rn),Cn>ti&&(ti=Cn),_i.push(Rn),bi.push(Cn)}var Nn=Ai-gi,ia=ti-Pi;Nn>ia?ti=Pi+Nn:Ai=gi+ia;function Ea(Da,go,Rs,Es,Zs,Gn,Ha,Fo){if(!(isNaN(Rs)||isNaN(Es)))if(Da.leaf){var Uo=Da.x,Qs=Da.y;if(Uo!=null)if(p(Uo-Rs)+p(Qs-Es)<.01)Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo);else{var Ml=Da.point;Da.x=Da.y=Da.point=null,Ia(Da,Ml,Uo,Qs,Zs,Gn,Ha,Fo),Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo)}else Da.x=Rs,Da.y=Es,Da.point=go}else Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo)}function Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo){var Uo=(Zs+Ha)*.5,Qs=(Gn+Fo)*.5,Ml=Rs>=Uo,bu=Es>=Qs,vl=bu<<1|Ml;Da.leaf=!1,Da=Da.nodes[vl]||(Da.nodes[vl]=Jl()),Ml?Zs=Uo:Ha=Uo,bu?Gn=Qs:Fo=Qs,Ea(Da,go,Rs,Es,Zs,Gn,Ha,Fo)}var yo=Jl();if(yo.add=function(Da){Ea(yo,Da,+Gr(Da,++Xr),+qr(Da,Xr),gi,Pi,Ai,ti)},yo.visit=function(Da){hl(Da,yo,gi,Pi,Ai,ti)},yo.find=function(Da){return lc(yo,Da[0],Da[1],gi,Pi,Ai,ti)},Xr=-1,se==null){for(;++XrYe||qr>Ct||_i=Rn,ia=Te>=Cn,Ea=ia<<1|Nn,Ia=Ea+4;EaTe&&(Ye=se.slice(Te,Ye),nt[Ct]?nt[Ct]+=Ye:nt[++Ct]=Ye),(Ne=Ne[0])===(He=He[0])?nt[Ct]?nt[Ct]+=He:nt[++Ct]=He:(nt[++Ct]=null,jt.push({i:Ct,x:js(Ne,He)})),Te=uc.lastIndex;return Te=0&&!(Ne=e.interpolators[Te](X,se)););return Ne}e.interpolators=[function(X,se){var Te=typeof se;return(Te==="string"?Qr.has(se.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(se)?Fu:Go:se instanceof ua?Fu:Array.isArray(se)?Gu:Te==="object"&&isNaN(se)?Cs:js)(X,se)}],e.interpolateArray=Gu;function Gu(X,se){var Te=[],Ne=[],He=X.length,Ye=se.length,Ct=Math.min(X.length,se.length),nt;for(nt=0;nt=0?X.slice(0,se):X,Ne=se>=0?X.slice(se+1):"in";return Te=ad.get(Te)||Bs,Ne=Po.get(Ne)||G,od(Ne(Te.apply(null,t.call(arguments,1))))};function od(X){return function(se){return se<=0?0:se>=1?1:X(se)}}function Yo(X){return function(se){return 1-X(1-se)}}function Pa(X){return function(se){return .5*(se<.5?X(2*se):2-X(2-2*se))}}function af(X){return X*X}function Hu(X){return X*X*X}function wl(X){if(X<=0)return 0;if(X>=1)return 1;var se=X*X,Te=se*X;return 4*(X<.5?Te:3*(X-se)+Te-.75)}function Gf(X){return function(se){return Math.pow(se,X)}}function Ic(X){return 1-Math.cos(X*xe)}function mf(X){return Math.pow(2,10*(X-1))}function Bl(X){return 1-Math.sqrt(1-X*X)}function xh(X,se){var Te;return arguments.length<2&&(se=.45),arguments.length?Te=se/wt*Math.asin(1/X):(X=1,Te=se/4),function(Ne){return 1+X*Math.pow(2,-10*Ne)*Math.sin((Ne-Te)*wt/se)}}function Qf(X){return X||(X=1.70158),function(se){return se*se*((X+1)*se-X)}}function yf(X){return X<1/2.75?7.5625*X*X:X<2/2.75?7.5625*(X-=1.5/2.75)*X+.75:X<2.5/2.75?7.5625*(X-=2.25/2.75)*X+.9375:7.5625*(X-=2.625/2.75)*X+.984375}e.interpolateHcl=Yc;function Yc(X,se){X=e.hcl(X),se=e.hcl(se);var Te=X.h,Ne=X.c,He=X.l,Ye=se.h-Te,Ct=se.c-Ne,nt=se.l-He;return isNaN(Ct)&&(Ct=0,Ne=isNaN(Ne)?se.c:Ne),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(jt){return Zr(Te+Ye*jt,Ne+Ct*jt,He+nt*jt)+""}}e.interpolateHsl=eh;function eh(X,se){X=e.hsl(X),se=e.hsl(se);var Te=X.h,Ne=X.s,He=X.l,Ye=se.h-Te,Ct=se.s-Ne,nt=se.l-He;return isNaN(Ct)&&(Ct=0,Ne=isNaN(Ne)?se.s:Ne),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(jt){return tr(Te+Ye*jt,Ne+Ct*jt,He+nt*jt)+""}}e.interpolateLab=th;function th(X,se){X=e.lab(X),se=e.lab(se);var Te=X.l,Ne=X.a,He=X.b,Ye=se.l-Te,Ct=se.a-Ne,nt=se.b-He;return function(jt){return yn(Te+Ye*jt,Ne+Ct*jt,He+nt*jt)+""}}e.interpolateRound=ju;function ju(X,se){return se-=X,function(Te){return Math.round(X+se*Te)}}e.transform=function(X){var se=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(Te){if(Te!=null){se.setAttribute("transform",Te);var Ne=se.transform.baseVal.consolidate()}return new Hf(Ne?Ne.matrix:Kc)})(X)};function Hf(X){var se=[X.a,X.b],Te=[X.c,X.d],Ne=of(se),He=cc(se,Te),Ye=of(Nl(Te,se,-He))||0;se[0]*Te[1]180?se+=360:se-X>180&&(X+=360),Ne.push({i:Te.push(Rc(Te)+"rotate(",null,")")-2,x:js(X,se)})):se&&Te.push(Rc(Te)+"rotate("+se+")")}function Uh(X,se,Te,Ne){X!==se?Ne.push({i:Te.push(Rc(Te)+"skewX(",null,")")-2,x:js(X,se)}):se&&Te.push(Rc(Te)+"skewX("+se+")")}function rh(X,se,Te,Ne){if(X[0]!==se[0]||X[1]!==se[1]){var He=Te.push(Rc(Te)+"scale(",null,",",null,")");Ne.push({i:He-4,x:js(X[0],se[0])},{i:He-2,x:js(X[1],se[1])})}else(se[0]!==1||se[1]!==1)&&Te.push(Rc(Te)+"scale("+se+")")}function sf(X,se){var Te=[],Ne=[];return X=e.transform(X),se=e.transform(se),ms(X.translate,se.translate,Te,Ne),jf(X.rotate,se.rotate,Te,Ne),Uh(X.skew,se.skew,Te,Ne),rh(X.scale,se.scale,Te,Ne),X=se=null,function(He){for(var Ye=-1,Ct=Ne.length,nt;++Ye0?Ye=ti:(Te.c=null,Te.t=NaN,Te=null,se.end({type:"end",alpha:Ye=0})):ti>0&&(se.start({type:"start",alpha:Ye=ti}),Te=No(X.tick)),X):Ye},X.start=function(){var ti,Rn=_i.length,Cn=bi.length,Nn=Ne[0],ia=Ne[1],Ea,Ia;for(ti=0;ti=0;)Ye.push(yr=gr[jt]),yr.parent=nt,yr.depth=nt.depth+1;Te&&(nt.value=0),nt.children=gr}else Te&&(nt.value=+Te.call(Ne,nt,nt.depth)||0),delete nt.children;return wc(He,function(Gr){var qr,_i;X&&(qr=Gr.children)&&qr.sort(X),Te&&(_i=Gr.parent)&&(_i.value+=Gr.value)}),Ct}return Ne.sort=function(He){return arguments.length?(X=He,Ne):X},Ne.children=function(He){return arguments.length?(se=He,Ne):se},Ne.value=function(He){return arguments.length?(Te=He,Ne):Te},Ne.revalue=function(He){return Te&&(Fc(He,function(Ye){Ye.children&&(Ye.value=0)}),wc(He,function(Ye){var Ct;Ye.children||(Ye.value=+Te.call(Ne,Ye,Ye.depth)||0),(Ct=Ye.parent)&&(Ct.value+=Ye.value)})),He},Ne};function zu(X,se){return e.rebind(X,se,"sort","children","value"),X.nodes=X,X.links=Ou,X}function Fc(X,se){for(var Te=[X];(X=Te.pop())!=null;)if(se(X),(He=X.children)&&(Ne=He.length))for(var Ne,He;--Ne>=0;)Te.push(He[Ne])}function wc(X,se){for(var Te=[X],Ne=[];(X=Te.pop())!=null;)if(Ne.push(X),(Ct=X.children)&&(Ye=Ct.length))for(var He=-1,Ye,Ct;++HeHe&&(He=nt),Ne.push(nt)}for(Ct=0;CtNe&&(Te=se,Ne=He);return Te}function Vs(X){return X.reduce(bf,0)}function bf(X,se){return X+se[1]}e.layout.histogram=function(){var X=!0,se=Number,Te=If,Ne=zc;function He(Ye,qr){for(var nt=[],jt=Ye.map(se,this),gr=Te.call(this,jt,qr),yr=Ne.call(this,gr,jt,qr),Gr,qr=-1,_i=jt.length,bi=yr.length-1,Xr=X?1:1/_i,ni;++qr0)for(qr=-1;++qr<_i;)ni=jt[qr],ni>=gr[0]&&ni<=gr[1]&&(Gr=nt[e.bisect(yr,ni,1,bi)-1],Gr.y+=Xr,Gr.push(Ye[qr]));return nt}return He.value=function(Ye){return arguments.length?(se=Ye,He):se},He.range=function(Ye){return arguments.length?(Te=pi(Ye),He):Te},He.bins=function(Ye){return arguments.length?(Ne=typeof Ye=="number"?function(Ct){return Wu(Ct,Ye)}:pi(Ye),He):Ne},He.frequency=function(Ye){return arguments.length?(X=!!Ye,He):X},He};function zc(X,se){return Wu(X,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Wu(X,se){for(var Te=-1,Ne=+X[0],He=(X[1]-Ne)/se,Ye=[];++Te<=se;)Ye[Te]=He*Te+Ne;return Ye}function If(X){return[e.min(X),e.max(X)]}e.layout.pack=function(){var X=e.layout.hierarchy().sort(Xu),se=0,Te=[1,1],Ne;function He(Ye,Ct){var nt=X.call(this,Ye,Ct),jt=nt[0],gr=Te[0],yr=Te[1],Gr=Ne==null?Math.sqrt:typeof Ne=="function"?Ne:function(){return Ne};if(jt.x=jt.y=0,wc(jt,function(_i){_i.r=+Gr(_i.value)}),wc(jt,ah),se){var qr=se*(Ne?1:Math.max(2*jt.r/gr,2*jt.r/yr))/2;wc(jt,function(_i){_i.r+=qr}),wc(jt,ah),wc(jt,function(_i){_i.r-=qr})}return Tc(jt,gr/2,yr/2,Ne?1:1/Math.max(2*jt.r/gr,2*jt.r/yr)),nt}return He.size=function(Ye){return arguments.length?(Te=Ye,He):Te},He.radius=function(Ye){return arguments.length?(Ne=Ye==null||typeof Ye=="function"?Ye:+Ye,He):Ne},He.padding=function(Ye){return arguments.length?(se=+Ye,He):se},zu(He,X)};function Xu(X,se){return X.value-se.value}function uf(X,se){var Te=X._pack_next;X._pack_next=se,se._pack_prev=X,se._pack_next=Te,Te._pack_prev=se}function Xf(X,se){X._pack_next=se,se._pack_prev=X}function Wl(X,se){var Te=se.x-X.x,Ne=se.y-X.y,He=X.r+se.r;return .999*He*He>Te*Te+Ne*Ne}function ah(X){if(!(se=X.children)||!(qr=se.length))return;var se,Te=1/0,Ne=-1/0,He=1/0,Ye=-1/0,Ct,nt,jt,gr,yr,Gr,qr;function _i(ti){Te=Math.min(ti.x-ti.r,Te),Ne=Math.max(ti.x+ti.r,Ne),He=Math.min(ti.y-ti.r,He),Ye=Math.max(ti.y+ti.r,Ye)}if(se.forEach(Zu),Ct=se[0],Ct.x=-Ct.r,Ct.y=0,_i(Ct),qr>1&&(nt=se[1],nt.x=nt.r,nt.y=0,_i(nt),qr>2))for(jt=se[2],Tl(Ct,nt,jt),_i(jt),uf(Ct,jt),Ct._pack_prev=jt,uf(jt,nt),nt=Ct._pack_next,gr=3;grni.x&&(ni=Rn),Rn.depth>gi.depth&&(gi=Rn)});var Pi=se(Xr,ni)/2-Xr.x,Ai=Te[0]/(ni.x+se(ni,Xr)/2+Pi),ti=Te[1]/(gi.depth||1);Fc(_i,function(Rn){Rn.x=(Rn.x+Pi)*Ai,Rn.y=Rn.depth*ti})}return qr}function Ye(yr){for(var Gr={A:null,children:[yr]},qr=[Gr],_i;(_i=qr.pop())!=null;)for(var bi=_i.children,Xr,ni=0,gi=bi.length;ni0&&(fc(At(Xr,yr,qr),yr,Rn),gi+=Rn,Pi+=Rn),Ai+=Xr.m,gi+=_i.m,ti+=ni.m,Pi+=bi.m;Xr&&!cf(bi)&&(bi.t=Xr,bi.m+=Ai-Pi),_i&&!qc(ni)&&(ni.t=_i,ni.m+=gi-ti,qr=yr)}return qr}function gr(yr){yr.x*=Te[0],yr.y=yr.depth*Te[1]}return He.separation=function(yr){return arguments.length?(se=yr,He):se},He.size=function(yr){return arguments.length?(Ne=(Te=yr)==null?gr:null,He):Ne?null:Te},He.nodeSize=function(yr){return arguments.length?(Ne=(Te=yr)==null?null:gr,He):Ne?Te:null},zu(He,X)};function vu(X,se){return X.parent==se.parent?1:2}function qc(X){var se=X.children;return se.length?se[0]:X.t}function cf(X){var se=X.children,Te;return(Te=se.length)?se[Te-1]:X.t}function fc(X,se,Te){var Ne=Te/(se.i-X.i);se.c-=Ne,se.s+=Te,X.c+=Ne,se.z+=Te,se.m+=Te}function Bc(X){for(var se=0,Te=0,Ne=X.children,He=Ne.length,Ye;--He>=0;)Ye=Ne[He],Ye.z+=se,Ye.m+=se,se+=Ye.s+(Te+=Ye.c)}function At(X,se,Te){return X.a.parent===se.parent?X.a:Te}e.layout.cluster=function(){var X=e.layout.hierarchy().sort(null).value(null),se=vu,Te=[1,1],Ne=!1;function He(Ye,Ct){var nt=X.call(this,Ye,Ct),jt=nt[0],gr,yr=0;wc(jt,function(Xr){var ni=Xr.children;ni&&ni.length?(Xr.x=kr(ni),Xr.y=Xt(ni)):(Xr.x=gr?yr+=se(Xr,gr):0,Xr.y=0,gr=Xr)});var Gr=Ar(jt),qr=Kr(jt),_i=Gr.x-se(Gr,qr)/2,bi=qr.x+se(qr,Gr)/2;return wc(jt,Ne?function(Xr){Xr.x=(Xr.x-jt.x)*Te[0],Xr.y=(jt.y-Xr.y)*Te[1]}:function(Xr){Xr.x=(Xr.x-_i)/(bi-_i)*Te[0],Xr.y=(1-(jt.y?Xr.y/jt.y:1))*Te[1]}),nt}return He.separation=function(Ye){return arguments.length?(se=Ye,He):se},He.size=function(Ye){return arguments.length?(Ne=(Te=Ye)==null,He):Ne?null:Te},He.nodeSize=function(Ye){return arguments.length?(Ne=(Te=Ye)!=null,He):Ne?Te:null},zu(He,X)};function Xt(X){return 1+e.max(X,function(se){return se.y})}function kr(X){return X.reduce(function(se,Te){return se+Te.x},0)/X.length}function Ar(X){var se=X.children;return se&&se.length?Ar(se[0]):X}function Kr(X){var se=X.children,Te;return se&&(Te=se.length)?Kr(se[Te-1]):X}e.layout.treemap=function(){var X=e.layout.hierarchy(),se=Math.round,Te=[1,1],Ne=null,He=Ei,Ye=!1,Ct,nt="squarify",jt=.5*(1+Math.sqrt(5));function gr(Xr,ni){for(var gi=-1,Pi=Xr.length,Ai,ti;++gi0;)Pi.push(ti=Ai[ia-1]),Pi.area+=ti.area,nt!=="squarify"||(Cn=qr(Pi,Nn))<=Rn?(Ai.pop(),Rn=Cn):(Pi.area-=Pi.pop().area,_i(Pi,Nn,gi,!1),Nn=Math.min(gi.dx,gi.dy),Pi.length=Pi.area=0,Rn=1/0);Pi.length&&(_i(Pi,Nn,gi,!0),Pi.length=Pi.area=0),ni.forEach(yr)}}function Gr(Xr){var ni=Xr.children;if(ni&&ni.length){var gi=He(Xr),Pi=ni.slice(),Ai,ti=[];for(gr(Pi,gi.dx*gi.dy/Xr.value),ti.area=0;Ai=Pi.pop();)ti.push(Ai),ti.area+=Ai.area,Ai.z!=null&&(_i(ti,Ai.z?gi.dx:gi.dy,gi,!Pi.length),ti.length=ti.area=0);ni.forEach(Gr)}}function qr(Xr,ni){for(var gi=Xr.area,Pi,Ai=0,ti=1/0,Rn=-1,Cn=Xr.length;++RnAi&&(Ai=Pi));return gi*=gi,ni*=ni,gi?Math.max(ni*Ai*jt/gi,gi/(ni*ti*jt)):1/0}function _i(Xr,ni,gi,Pi){var Ai=-1,ti=Xr.length,Rn=gi.x,Cn=gi.y,Nn=ni?se(Xr.area/ni):0,ia;if(ni==gi.dx){for((Pi||Nn>gi.dy)&&(Nn=gi.dy);++Aigi.dx)&&(Nn=gi.dx);++Ai1);return X+se*Ne*Math.sqrt(-2*Math.log(Ye)/Ye)}},logNormal:function(){var X=e.random.normal.apply(e,arguments);return function(){return Math.exp(X())}},bates:function(X){var se=e.random.irwinHall(X);return function(){return se()/X}},irwinHall:function(X){return function(){for(var se=0,Te=0;Te2?Di:Bn,gr=Ne?Mu:bh;return He=jt(X,se,gr,Te),Ye=jt(se,X,gr,bl),nt}function nt(jt){return He(jt)}return nt.invert=function(jt){return Ye(jt)},nt.domain=function(jt){return arguments.length?(X=jt.map(Number),Ct()):X},nt.range=function(jt){return arguments.length?(se=jt,Ct()):se},nt.rangeRound=function(jt){return nt.range(jt).interpolate(ju)},nt.clamp=function(jt){return arguments.length?(Ne=jt,Ct()):Ne},nt.interpolate=function(jt){return arguments.length?(Te=jt,Ct()):Te},nt.ticks=function(jt){return Na(X,jt)},nt.tickFormat=function(jt,gr){return d3_scale_linearTickFormat(X,jt,gr)},nt.nice=function(jt){return Ra(X,jt),Ct()},nt.copy=function(){return $n(X,se,Te,Ne)},Ct()}function ka(X,se){return e.rebind(X,se,"range","rangeRound","interpolate","clamp")}function Ra(X,se){return Zi(X,$i(La(X,se)[2])),Zi(X,$i(La(X,se)[2])),X}function La(X,se){se==null&&(se=10);var Te=hn(X),Ne=Te[1]-Te[0],He=Math.pow(10,Math.floor(Math.log(Ne/se)/Math.LN10)),Ye=se/Ne*He;return Ye<=.15?He*=10:Ye<=.35?He*=5:Ye<=.75&&(He*=2),Te[0]=Math.ceil(Te[0]/He)*He,Te[1]=Math.floor(Te[1]/He)*He+He*.5,Te[2]=He,Te}function Na(X,se){return e.range.apply(e,La(X,se))}var Yn={s:1,g:1,p:1,r:1,e:1};function zn(X){return-Math.floor(Math.log(X)/Math.LN10+.01)}function Ka(X,se){var Te=zn(se[2]);return X in Yn?Math.abs(Te-zn(Math.max(p(se[0]),p(se[1]))))+ +(X!=="e"):Te-(X==="%")*2}e.scale.log=function(){return bo(e.scale.linear().domain([0,1]),10,!0,[1,10])};function bo(X,se,Te,Ne){function He(nt){return(Te?Math.log(nt<0?0:nt):-Math.log(nt>0?0:-nt))/Math.log(se)}function Ye(nt){return Te?Math.pow(se,nt):-Math.pow(se,-nt)}function Ct(nt){return X(He(nt))}return Ct.invert=function(nt){return Ye(X.invert(nt))},Ct.domain=function(nt){return arguments.length?(Te=nt[0]>=0,X.domain((Ne=nt.map(Number)).map(He)),Ct):Ne},Ct.base=function(nt){return arguments.length?(se=+nt,X.domain(Ne.map(He)),Ct):se},Ct.nice=function(){var nt=Zi(Ne.map(He),Te?Math:Xo);return X.domain(nt),Ne=nt.map(Ye),Ct},Ct.ticks=function(){var nt=hn(Ne),jt=[],gr=nt[0],yr=nt[1],Gr=Math.floor(He(gr)),qr=Math.ceil(He(yr)),_i=se%1?2:se;if(isFinite(qr-Gr)){if(Te){for(;Gr0;bi--)jt.push(Ye(Gr)*bi);for(Gr=0;jt[Gr]yr;qr--);jt=jt.slice(Gr,qr)}return jt},Ct.copy=function(){return bo(X.copy(),se,Te,Ne)},ka(Ct,X)}var Xo={floor:function(X){return-Math.ceil(-X)},ceil:function(X){return-Math.floor(-X)}};e.scale.pow=function(){return Ms(e.scale.linear(),1,[0,1])};function Ms(X,se,Te){var Ne=os(se),He=os(1/se);function Ye(Ct){return X(Ne(Ct))}return Ye.invert=function(Ct){return He(X.invert(Ct))},Ye.domain=function(Ct){return arguments.length?(X.domain((Te=Ct.map(Number)).map(Ne)),Ye):Te},Ye.ticks=function(Ct){return Na(Te,Ct)},Ye.tickFormat=function(Ct,nt){return d3_scale_linearTickFormat(Te,Ct,nt)},Ye.nice=function(Ct){return Ye.domain(Ra(Te,Ct))},Ye.exponent=function(Ct){return arguments.length?(Ne=os(se=Ct),He=os(1/se),X.domain(Te.map(Ne)),Ye):se},Ye.copy=function(){return Ms(X.copy(),se,Te)},ka(Ye,X)}function os(X){return function(se){return se<0?-Math.pow(-se,X):Math.pow(se,X)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Ts([],{t:"range",a:[[]]})};function Ts(X,se){var Te,Ne,He;function Ye(nt){return Ne[((Te.get(nt)||(se.t==="range"?Te.set(nt,X.push(nt)):NaN))-1)%Ne.length]}function Ct(nt,jt){return e.range(X.length).map(function(gr){return nt+jt*gr})}return Ye.domain=function(nt){if(!arguments.length)return X;X=[],Te=new A;for(var jt=-1,gr=nt.length,yr;++jt0?Te[Ye-1]:X[0],Yeqr?0:1;if(yr=Ie)return jt(yr,bi)+(gr?jt(gr,1-bi):"")+"Z";var Xr,ni,gi,Pi,Ai=0,ti=0,Rn,Cn,Nn,ia,Ea,Ia,yo,Da,go=[];if((Pi=(+Ct.apply(this,arguments)||0)/2)&&(gi=Ne===ku?Math.sqrt(gr*gr+yr*yr):+Ne.apply(this,arguments),bi||(ti*=-1),yr&&(ti=oi(gi/yr*Math.sin(Pi))),gr&&(Ai=oi(gi/gr*Math.sin(Pi)))),yr){Rn=yr*Math.cos(Gr+ti),Cn=yr*Math.sin(Gr+ti),Nn=yr*Math.cos(qr-ti),ia=yr*Math.sin(qr-ti);var Rs=Math.abs(qr-Gr-2*ti)<=$e?0:1;if(ti&&Ac(Rn,Cn,Nn,ia)===bi^Rs){var Es=(Gr+qr)/2;Rn=yr*Math.cos(Es),Cn=yr*Math.sin(Es),Nn=ia=null}}else Rn=Cn=0;if(gr){Ea=gr*Math.cos(qr-Ai),Ia=gr*Math.sin(qr-Ai),yo=gr*Math.cos(Gr+Ai),Da=gr*Math.sin(Gr+Ai);var Zs=Math.abs(Gr-qr+2*Ai)<=$e?0:1;if(Ai&&Ac(Ea,Ia,yo,Da)===1-bi^Zs){var Gn=(Gr+qr)/2;Ea=gr*Math.cos(Gn),Ia=gr*Math.sin(Gn),yo=Da=null}}else Ea=Ia=0;if(_i>Je&&(Xr=Math.min(Math.abs(yr-gr)/2,+Te.apply(this,arguments)))>.001){ni=gr0?0:1}function Ua(X,se,Te,Ne,He){var Ye=X[0]-se[0],Ct=X[1]-se[1],nt=(He?Ne:-Ne)/Math.sqrt(Ye*Ye+Ct*Ct),jt=nt*Ct,gr=-nt*Ye,yr=X[0]+jt,Gr=X[1]+gr,qr=se[0]+jt,_i=se[1]+gr,bi=(yr+qr)/2,Xr=(Gr+_i)/2,ni=qr-yr,gi=_i-Gr,Pi=ni*ni+gi*gi,Ai=Te-Ne,ti=yr*_i-qr*Gr,Rn=(gi<0?-1:1)*Math.sqrt(Math.max(0,Ai*Ai*Pi-ti*ti)),Cn=(ti*gi-ni*Rn)/Pi,Nn=(-ti*ni-gi*Rn)/Pi,ia=(ti*gi+ni*Rn)/Pi,Ea=(-ti*ni+gi*Rn)/Pi,Ia=Cn-bi,yo=Nn-Xr,Da=ia-bi,go=Ea-Xr;return Ia*Ia+yo*yo>Da*Da+go*go&&(Cn=ia,Nn=Ea),[[Cn-jt,Nn-gr],[Cn*Te/Ai,Nn*Te/Ai]]}function oo(){return!0}function Vc(X){var se=Fs,Te=zs,Ne=oo,He=Ku,Ye=He.key,Ct=.7;function nt(jt){var gr=[],yr=[],Gr=-1,qr=jt.length,_i,bi=pi(se),Xr=pi(Te);function ni(){gr.push("M",He(X(yr),Ct))}for(;++Gr1?X.join("L"):X+"Z"}function ue(X){return X.join("L")+"Z"}function w(X){for(var se=0,Te=X.length,Ne=X[0],He=[Ne[0],",",Ne[1]];++se1&&He.push("H",Ne[0]),He.join("")}function B(X){for(var se=0,Te=X.length,Ne=X[0],He=[Ne[0],",",Ne[1]];++se1){nt=se[1],Ye=X[jt],jt++,Ne+="C"+(He[0]+Ct[0])+","+(He[1]+Ct[1])+","+(Ye[0]-nt[0])+","+(Ye[1]-nt[1])+","+Ye[0]+","+Ye[1];for(var gr=2;gr9&&(Ye=Te*3/Math.sqrt(Ye),Ct[nt]=Ye*Ne,Ct[nt+1]=Ye*He));for(nt=-1;++nt<=jt;)Ye=(X[Math.min(jt,nt+1)][0]-X[Math.max(0,nt-1)][0])/(6*(1+Ct[nt]*Ct[nt])),se.push([Ye||0,Ct[nt]*Ye||0]);return se}function Dt(X){return X.length<3?Ku(X):X[0]+Xe(X,it(X))}e.svg.line.radial=function(){var X=Vc(Ht);return X.radius=X.x,delete X.x,X.angle=X.y,delete X.y,X};function Ht(X){for(var se,Te=-1,Ne=X.length,He,Ye;++Te$e)+",1 "+Gr}function gr(yr,Gr,qr,_i){return"Q 0,0 "+_i}return Ye.radius=function(yr){return arguments.length?(Te=pi(yr),Ye):Te},Ye.source=function(yr){return arguments.length?(X=pi(yr),Ye):X},Ye.target=function(yr){return arguments.length?(se=pi(yr),Ye):se},Ye.startAngle=function(yr){return arguments.length?(Ne=pi(yr),Ye):Ne},Ye.endAngle=function(yr){return arguments.length?(He=pi(yr),Ye):He},Ye};function Or(X){return X.radius}e.svg.diagonal=function(){var X=dr,se=Sr,Te=jr;function Ne(He,Ye){var Ct=X.call(this,He,Ye),nt=se.call(this,He,Ye),jt=(Ct.y+nt.y)/2,gr=[Ct,{x:Ct.x,y:jt},{x:nt.x,y:jt},nt];return gr=gr.map(Te),"M"+gr[0]+"C"+gr[1]+" "+gr[2]+" "+gr[3]}return Ne.source=function(He){return arguments.length?(X=pi(He),Ne):X},Ne.target=function(He){return arguments.length?(se=pi(He),Ne):se},Ne.projection=function(He){return arguments.length?(Te=He,Ne):Te},Ne};function jr(X){return[X.x,X.y]}e.svg.diagonal.radial=function(){var X=e.svg.diagonal(),se=jr,Te=X.projection;return X.projection=function(Ne){return arguments.length?Te(ii(se=Ne)):se},X};function ii(X){return function(){var se=X.apply(this,arguments),Te=se[0],Ne=se[1]-xe;return[Te*Math.cos(Ne),Te*Math.sin(Ne)]}}e.svg.symbol=function(){var X=un,se=Li;function Te(Ne,He){return(In.get(X.call(this,Ne,He))||sn)(se.call(this,Ne,He))}return Te.type=function(Ne){return arguments.length?(X=pi(Ne),Te):X},Te.size=function(Ne){return arguments.length?(se=pi(Ne),Te):se},Te};function Li(){return 64}function un(){return"circle"}function sn(X){var se=Math.sqrt(X/$e);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var In=e.map({circle:sn,cross:function(X){var se=Math.sqrt(X/5)/2;return"M"+-3*se+","+-se+"H"+-se+"V"+-3*se+"H"+se+"V"+-se+"H"+3*se+"V"+se+"H"+se+"V"+3*se+"H"+-se+"V"+se+"H"+-3*se+"Z"},diamond:function(X){var se=Math.sqrt(X/(2*Ta)),Te=se*Ta;return"M0,"+-se+"L"+Te+",0 0,"+se+" "+-Te+",0Z"},square:function(X){var se=Math.sqrt(X)/2;return"M"+-se+","+-se+"L"+se+","+-se+" "+se+","+se+" "+-se+","+se+"Z"},"triangle-down":function(X){var se=Math.sqrt(X/Kn),Te=se*Kn/2;return"M0,"+Te+"L"+se+","+-Te+" "+-se+","+-Te+"Z"},"triangle-up":function(X){var se=Math.sqrt(X/Kn),Te=se*Kn/2;return"M0,"+-Te+"L"+se+","+Te+" "+-se+","+Te+"Z"}});e.svg.symbolTypes=In.keys();var Kn=Math.sqrt(3),Ta=Math.tan(30*Ce);Pe.transition=function(X){for(var se=Bo||++mo,Te=To(X),Ne=[],He,Ye,Ct=Is||{time:Date.now(),ease:wl,delay:0,duration:250},nt=-1,jt=this.length;++nt0;)Gr[--Pi].call(X,gi);if(ni>=1)return Ct.event&&Ct.event.end.call(X,X.__data__,se),--Ye.count?delete Ye[Ne]:delete X[Te],1}Ct||(nt=He.time,jt=No(qr,0,nt),Ct=Ye[Ne]={tween:new A,time:nt,timer:jt,delay:He.delay,duration:He.duration,ease:He.ease,index:se},He=null,++Ye.count)}e.svg.axis=function(){var X=e.scale.linear(),se=Ul,Te=6,Ne=6,He=3,Ye=[10],Ct=null,nt;function jt(gr){gr.each(function(){var yr=e.select(this),Gr=this.__chart__||X,qr=this.__chart__=X.copy(),_i=Ct==null?qr.ticks?qr.ticks.apply(qr,Ye):qr.domain():Ct,bi=nt==null?qr.tickFormat?qr.tickFormat.apply(qr,Ye):G:nt,Xr=yr.selectAll(".tick").data(_i,qr),ni=Xr.enter().insert("g",".domain").attr("class","tick").style("opacity",Je),gi=e.transition(Xr.exit()).style("opacity",Je).remove(),Pi=e.transition(Xr.order()).style("opacity",1),Ai=Math.max(Te,0)+He,ti,Rn=Tn(qr),Cn=yr.selectAll(".domain").data([0]),Nn=(Cn.enter().append("path").attr("class","domain"),e.transition(Cn));ni.append("line"),ni.append("text");var ia=ni.select("line"),Ea=Pi.select("line"),Ia=Xr.select("text").text(bi),yo=ni.select("text"),Da=Pi.select("text"),go=se==="top"||se==="left"?-1:1,Rs,Es,Zs,Gn;if(se==="bottom"||se==="top"?(ti=au,Rs="x",Zs="y",Es="x2",Gn="y2",Ia.attr("dy",go<0?"0em":".71em").style("text-anchor","middle"),Nn.attr("d","M"+Rn[0]+","+go*Ne+"V0H"+Rn[1]+"V"+go*Ne)):(ti=$s,Rs="y",Zs="x",Es="y2",Gn="x2",Ia.attr("dy",".32em").style("text-anchor",go<0?"end":"start"),Nn.attr("d","M"+go*Ne+","+Rn[0]+"H0V"+Rn[1]+"H"+go*Ne)),ia.attr(Gn,go*Te),yo.attr(Zs,go*Ai),Ea.attr(Es,0).attr(Gn,go*Te),Da.attr(Rs,0).attr(Zs,go*Ai),qr.rangeBand){var Ha=qr,Fo=Ha.rangeBand()/2;Gr=qr=function(Uo){return Ha(Uo)+Fo}}else Gr.rangeBand?Gr=qr:gi.call(ti,qr,Gr);ni.call(ti,Gr,qr),Pi.call(ti,qr,qr)})}return jt.scale=function(gr){return arguments.length?(X=gr,jt):X},jt.orient=function(gr){return arguments.length?(se=gr in Lu?gr+"":Ul,jt):se},jt.ticks=function(){return arguments.length?(Ye=r(arguments),jt):Ye},jt.tickValues=function(gr){return arguments.length?(Ct=gr,jt):Ct},jt.tickFormat=function(gr){return arguments.length?(nt=gr,jt):nt},jt.tickSize=function(gr){var yr=arguments.length;return yr?(Te=+gr,Ne=+arguments[yr-1],jt):Te},jt.innerTickSize=function(gr){return arguments.length?(Te=+gr,jt):Te},jt.outerTickSize=function(gr){return arguments.length?(Ne=+gr,jt):Ne},jt.tickPadding=function(gr){return arguments.length?(He=+gr,jt):He},jt.tickSubdivide=function(){return arguments.length&&jt},jt};var Ul="bottom",Lu={top:1,right:1,bottom:1,left:1};function au(X,se,Te){X.attr("transform",function(Ne){var He=se(Ne);return"translate("+(isFinite(He)?He:Te(Ne))+",0)"})}function $s(X,se,Te){X.attr("transform",function(Ne){var He=se(Ne);return"translate(0,"+(isFinite(He)?He:Te(Ne))+")"})}e.svg.brush=function(){var X=ke(yr,"brushstart","brush","brushend"),se=null,Te=null,Ne=[0,0],He=[0,0],Ye,Ct,nt=!0,jt=!0,gr=dc[0];function yr(Xr){Xr.each(function(){var ni=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",bi).on("touchstart.brush",bi),gi=ni.selectAll(".background").data([0]);gi.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ni.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Pi=ni.selectAll(".resize").data(gr,G);Pi.exit().remove(),Pi.enter().append("g").attr("class",function(Cn){return"resize "+Cn}).style("cursor",function(Cn){return Ql[Cn]}).append("rect").attr("x",function(Cn){return/[ew]$/.test(Cn)?-3:null}).attr("y",function(Cn){return/^[ns]/.test(Cn)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Pi.style("display",yr.empty()?"none":null);var Ai=e.transition(ni),ti=e.transition(gi),Rn;se&&(Rn=Tn(se),ti.attr("x",Rn[0]).attr("width",Rn[1]-Rn[0]),qr(Ai)),Te&&(Rn=Tn(Te),ti.attr("y",Rn[0]).attr("height",Rn[1]-Rn[0]),_i(Ai)),Gr(Ai)})}yr.event=function(Xr){Xr.each(function(){var ni=X.of(this,arguments),gi={x:Ne,y:He,i:Ye,j:Ct},Pi=this.__chart__||gi;this.__chart__=gi,Bo?e.select(this).transition().each("start.brush",function(){Ye=Pi.i,Ct=Pi.j,Ne=Pi.x,He=Pi.y,ni({type:"brushstart"})}).tween("brush:brush",function(){var Ai=Gu(Ne,gi.x),ti=Gu(He,gi.y);return Ye=Ct=null,function(Rn){Ne=gi.x=Ai(Rn),He=gi.y=ti(Rn),ni({type:"brush",mode:"resize"})}}).each("end.brush",function(){Ye=gi.i,Ct=gi.j,ni({type:"brush",mode:"resize"}),ni({type:"brushend"})}):(ni({type:"brushstart"}),ni({type:"brush",mode:"resize"}),ni({type:"brushend"}))})};function Gr(Xr){Xr.selectAll(".resize").attr("transform",function(ni){return"translate("+Ne[+/e$/.test(ni)]+","+He[+/^s/.test(ni)]+")"})}function qr(Xr){Xr.select(".extent").attr("x",Ne[0]),Xr.selectAll(".extent,.n>rect,.s>rect").attr("width",Ne[1]-Ne[0])}function _i(Xr){Xr.select(".extent").attr("y",He[0]),Xr.selectAll(".extent,.e>rect,.w>rect").attr("height",He[1]-He[0])}function bi(){var Xr=this,ni=e.select(e.event.target),gi=X.of(Xr,arguments),Pi=e.select(Xr),Ai=ni.datum(),ti=!/^(n|s)$/.test(Ai)&&se,Rn=!/^(e|w)$/.test(Ai)&&Te,Cn=ni.classed("extent"),Nn=Wr(Xr),ia,Ea=e.mouse(Xr),Ia,yo=e.select(a(Xr)).on("keydown.brush",Rs).on("keyup.brush",Es);if(e.event.changedTouches?yo.on("touchmove.brush",Zs).on("touchend.brush",Ha):yo.on("mousemove.brush",Zs).on("mouseup.brush",Ha),Pi.interrupt().selectAll("*").interrupt(),Cn)Ea[0]=Ne[0]-Ea[0],Ea[1]=He[0]-Ea[1];else if(Ai){var Da=+/w$/.test(Ai),go=+/^n/.test(Ai);Ia=[Ne[1-Da]-Ea[0],He[1-go]-Ea[1]],Ea[0]=Ne[Da],Ea[1]=He[go]}else e.event.altKey&&(ia=Ea.slice());Pi.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ni.style("cursor")),gi({type:"brushstart"}),Zs();function Rs(){e.event.keyCode==32&&(Cn||(ia=null,Ea[0]-=Ne[1],Ea[1]-=He[1],Cn=2),_e())}function Es(){e.event.keyCode==32&&Cn==2&&(Ea[0]+=Ne[1],Ea[1]+=He[1],Cn=0,_e())}function Zs(){var Fo=e.mouse(Xr),Uo=!1;Ia&&(Fo[0]+=Ia[0],Fo[1]+=Ia[1]),Cn||(e.event.altKey?(ia||(ia=[(Ne[0]+Ne[1])/2,(He[0]+He[1])/2]),Ea[0]=Ne[+(Fo[0]{(function(e,t){typeof c6=="object"&&typeof vee!="undefined"?t(c6):(e=e||self,t(e.d3=e.d3||{}))})(c6,function(e){"use strict";var t=new Date,r=new Date;function n(Qe,Et,er,Ut){function Ft(bt){return Qe(bt=arguments.length===0?new Date:new Date(+bt)),bt}return Ft.floor=function(bt){return Qe(bt=new Date(+bt)),bt},Ft.ceil=function(bt){return Qe(bt=new Date(bt-1)),Et(bt,1),Qe(bt),bt},Ft.round=function(bt){var yt=Ft(bt),Yt=Ft.ceil(bt);return bt-yt0))return lr;do lr.push(Tr=new Date(+bt)),Et(bt,Yt),Qe(bt);while(Tr=yt)for(;Qe(yt),!bt(yt);)yt.setTime(yt-1)},function(yt,Yt){if(yt>=yt)if(Yt<0)for(;++Yt<=0;)for(;Et(yt,-1),!bt(yt););else for(;--Yt>=0;)for(;Et(yt,1),!bt(yt););})},er&&(Ft.count=function(bt,yt){return t.setTime(+bt),r.setTime(+yt),Qe(t),Qe(r),Math.floor(er(t,r))},Ft.every=function(bt){return bt=Math.floor(bt),!isFinite(bt)||!(bt>0)?null:bt>1?Ft.filter(Ut?function(yt){return Ut(yt)%bt===0}:function(yt){return Ft.count(0,yt)%bt===0}):Ft}),Ft}var i=n(function(){},function(Qe,Et){Qe.setTime(+Qe+Et)},function(Qe,Et){return Et-Qe});i.every=function(Qe){return Qe=Math.floor(Qe),!isFinite(Qe)||!(Qe>0)?null:Qe>1?n(function(Et){Et.setTime(Math.floor(Et/Qe)*Qe)},function(Et,er){Et.setTime(+Et+er*Qe)},function(Et,er){return(er-Et)/Qe}):i};var a=i.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,f=n(function(Qe){Qe.setTime(Qe-Qe.getMilliseconds())},function(Qe,Et){Qe.setTime(+Qe+Et*o)},function(Qe,Et){return(Et-Qe)/o},function(Qe){return Qe.getUTCSeconds()}),h=f.range,d=n(function(Qe){Qe.setTime(Qe-Qe.getMilliseconds()-Qe.getSeconds()*o)},function(Qe,Et){Qe.setTime(+Qe+Et*s)},function(Qe,Et){return(Et-Qe)/s},function(Qe){return Qe.getMinutes()}),v=d.range,_=n(function(Qe){Qe.setTime(Qe-Qe.getMilliseconds()-Qe.getSeconds()*o-Qe.getMinutes()*s)},function(Qe,Et){Qe.setTime(+Qe+Et*l)},function(Qe,Et){return(Et-Qe)/l},function(Qe){return Qe.getHours()}),b=_.range,p=n(function(Qe){Qe.setHours(0,0,0,0)},function(Qe,Et){Qe.setDate(Qe.getDate()+Et)},function(Qe,Et){return(Et-Qe-(Et.getTimezoneOffset()-Qe.getTimezoneOffset())*s)/u},function(Qe){return Qe.getDate()-1}),C=p.range;function E(Qe){return n(function(Et){Et.setDate(Et.getDate()-(Et.getDay()+7-Qe)%7),Et.setHours(0,0,0,0)},function(Et,er){Et.setDate(Et.getDate()+er*7)},function(Et,er){return(er-Et-(er.getTimezoneOffset()-Et.getTimezoneOffset())*s)/c})}var A=E(0),L=E(1),x=E(2),k=E(3),M=E(4),g=E(5),P=E(6),T=A.range,z=L.range,O=x.range,V=k.range,G=M.range,Z=g.range,H=P.range,N=n(function(Qe){Qe.setDate(1),Qe.setHours(0,0,0,0)},function(Qe,Et){Qe.setMonth(Qe.getMonth()+Et)},function(Qe,Et){return Et.getMonth()-Qe.getMonth()+(Et.getFullYear()-Qe.getFullYear())*12},function(Qe){return Qe.getMonth()}),j=N.range,re=n(function(Qe){Qe.setMonth(0,1),Qe.setHours(0,0,0,0)},function(Qe,Et){Qe.setFullYear(Qe.getFullYear()+Et)},function(Qe,Et){return Et.getFullYear()-Qe.getFullYear()},function(Qe){return Qe.getFullYear()});re.every=function(Qe){return!isFinite(Qe=Math.floor(Qe))||!(Qe>0)?null:n(function(Et){Et.setFullYear(Math.floor(Et.getFullYear()/Qe)*Qe),Et.setMonth(0,1),Et.setHours(0,0,0,0)},function(Et,er){Et.setFullYear(Et.getFullYear()+er*Qe)})};var oe=re.range,_e=n(function(Qe){Qe.setUTCSeconds(0,0)},function(Qe,Et){Qe.setTime(+Qe+Et*s)},function(Qe,Et){return(Et-Qe)/s},function(Qe){return Qe.getUTCMinutes()}),Me=_e.range,ke=n(function(Qe){Qe.setUTCMinutes(0,0,0)},function(Qe,Et){Qe.setTime(+Qe+Et*l)},function(Qe,Et){return(Et-Qe)/l},function(Qe){return Qe.getUTCHours()}),me=ke.range,ie=n(function(Qe){Qe.setUTCHours(0,0,0,0)},function(Qe,Et){Qe.setUTCDate(Qe.getUTCDate()+Et)},function(Qe,Et){return(Et-Qe)/u},function(Qe){return Qe.getUTCDate()-1}),Se=ie.range;function Le(Qe){return n(function(Et){Et.setUTCDate(Et.getUTCDate()-(Et.getUTCDay()+7-Qe)%7),Et.setUTCHours(0,0,0,0)},function(Et,er){Et.setUTCDate(Et.getUTCDate()+er*7)},function(Et,er){return(er-Et)/c})}var Ae=Le(0),De=Le(1),Pe=Le(2),ge=Le(3),Fe=Le(4),ce=Le(5),Ze=Le(6),ct=Ae.range,pt=De.range,Wt=Pe.range,st=ge.range,lt=Fe.range,Gt=ce.range,Nt=Ze.range,$t=n(function(Qe){Qe.setUTCDate(1),Qe.setUTCHours(0,0,0,0)},function(Qe,Et){Qe.setUTCMonth(Qe.getUTCMonth()+Et)},function(Qe,Et){return Et.getUTCMonth()-Qe.getUTCMonth()+(Et.getUTCFullYear()-Qe.getUTCFullYear())*12},function(Qe){return Qe.getUTCMonth()}),sr=$t.range,wr=n(function(Qe){Qe.setUTCMonth(0,1),Qe.setUTCHours(0,0,0,0)},function(Qe,Et){Qe.setUTCFullYear(Qe.getUTCFullYear()+Et)},function(Qe,Et){return Et.getUTCFullYear()-Qe.getUTCFullYear()},function(Qe){return Qe.getUTCFullYear()});wr.every=function(Qe){return!isFinite(Qe=Math.floor(Qe))||!(Qe>0)?null:n(function(Et){Et.setUTCFullYear(Math.floor(Et.getUTCFullYear()/Qe)*Qe),Et.setUTCMonth(0,1),Et.setUTCHours(0,0,0,0)},function(Et,er){Et.setUTCFullYear(Et.getUTCFullYear()+er*Qe)})};var ur=wr.range;e.timeDay=p,e.timeDays=C,e.timeFriday=g,e.timeFridays=Z,e.timeHour=_,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=v,e.timeMonday=L,e.timeMondays=z,e.timeMonth=N,e.timeMonths=j,e.timeSaturday=P,e.timeSaturdays=H,e.timeSecond=f,e.timeSeconds=h,e.timeSunday=A,e.timeSundays=T,e.timeThursday=M,e.timeThursdays=G,e.timeTuesday=x,e.timeTuesdays=O,e.timeWednesday=k,e.timeWednesdays=V,e.timeWeek=A,e.timeWeeks=T,e.timeYear=re,e.timeYears=oe,e.utcDay=ie,e.utcDays=Se,e.utcFriday=ce,e.utcFridays=Gt,e.utcHour=ke,e.utcHours=me,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=_e,e.utcMinutes=Me,e.utcMonday=De,e.utcMondays=pt,e.utcMonth=$t,e.utcMonths=sr,e.utcSaturday=Ze,e.utcSaturdays=Nt,e.utcSecond=f,e.utcSeconds=h,e.utcSunday=Ae,e.utcSundays=ct,e.utcThursday=Fe,e.utcThursdays=lt,e.utcTuesday=Pe,e.utcTuesdays=Wt,e.utcWednesday=ge,e.utcWednesdays=st,e.utcWeek=Ae,e.utcWeeks=ct,e.utcYear=wr,e.utcYears=ur,Object.defineProperty(e,"__esModule",{value:!0})})});var e3=ye((f6,pee)=>{(function(e,t){typeof f6=="object"&&typeof pee!="undefined"?t(f6,mO()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(f6,function(e,t){"use strict";function r(Ge){if(0<=Ge.y&&Ge.y<100){var Je=new Date(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L);return Je.setFullYear(Ge.y),Je}return new Date(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L)}function n(Ge){if(0<=Ge.y&&Ge.y<100){var Je=new Date(Date.UTC(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L));return Je.setUTCFullYear(Ge.y),Je}return new Date(Date.UTC(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L))}function i(Ge,Je,je){return{y:Ge,m:Je,d:je,H:0,M:0,S:0,L:0}}function a(Ge){var Je=Ge.dateTime,je=Ge.date,$e=Ge.time,wt=Ge.periods,Ie=Ge.days,xe=Ge.shortDays,Ce=Ge.months,vt=Ge.shortMonths,nr=h(wt),ir=d(wt),pr=h(Ie),oi=d(Ie),di=h(xe),Jr=d(xe),fi=h(Ce),Hi=d(Ce),Pn=h(vt),wn=d(vt),pn={a:Ji,A:en,b:cn,B:yn,c:null,d:N,e:N,f:Me,H:j,I:re,j:oe,L:_e,m:ke,M:me,p:Mn,q:Ba,Q:yt,s:Yt,S:ie,u:Se,U:Le,V:Ae,w:De,W:Pe,x:null,X:null,y:ge,Y:Fe,Z:ce,"%":bt},Vn={a:la,A:ma,b:Wa,B:Fa,c:null,d:Ze,e:Ze,f:lt,H:ct,I:pt,j:Wt,L:st,m:Gt,M:Nt,p:Wo,q:da,Q:yt,s:Yt,S:$t,u:sr,U:wr,V:ur,w:Qe,W:Et,x:null,X:null,y:er,Y:Ut,Z:Ft,"%":bt},kn={a:tr,A:ar,b:Er,B:Zr,c:ri,d:M,e:M,f:V,H:P,I:P,j:g,L:O,m:k,M:T,p:_t,q:x,Q:Z,s:H,S:z,u:_,U:b,V:p,w:v,W:C,x:$r,X:zi,y:A,Y:E,Z:L,"%":G};pn.x=ea(je,pn),pn.X=ea($e,pn),pn.c=ea(Je,pn),Vn.x=ea(je,Vn),Vn.X=ea($e,Vn),Vn.c=ea(Je,Vn);function ea(Wn,Ga){return function(vo){var jn=[],St=-1,Cr=0,Qr=Wn.length,pi,fn,Sn;for(vo instanceof Date||(vo=new Date(+vo));++St53)return null;"w"in jn||(jn.w=1),"Z"in jn?(Cr=n(i(jn.y,0,1)),Qr=Cr.getUTCDay(),Cr=Qr>4||Qr===0?t.utcMonday.ceil(Cr):t.utcMonday(Cr),Cr=t.utcDay.offset(Cr,(jn.V-1)*7),jn.y=Cr.getUTCFullYear(),jn.m=Cr.getUTCMonth(),jn.d=Cr.getUTCDate()+(jn.w+6)%7):(Cr=r(i(jn.y,0,1)),Qr=Cr.getDay(),Cr=Qr>4||Qr===0?t.timeMonday.ceil(Cr):t.timeMonday(Cr),Cr=t.timeDay.offset(Cr,(jn.V-1)*7),jn.y=Cr.getFullYear(),jn.m=Cr.getMonth(),jn.d=Cr.getDate()+(jn.w+6)%7)}else("W"in jn||"U"in jn)&&("w"in jn||(jn.w="u"in jn?jn.u%7:"W"in jn?1:0),Qr="Z"in jn?n(i(jn.y,0,1)).getUTCDay():r(i(jn.y,0,1)).getDay(),jn.m=0,jn.d="W"in jn?(jn.w+6)%7+jn.W*7-(Qr+5)%7:jn.w+jn.U*7-(Qr+6)%7);return"Z"in jn?(jn.H+=jn.Z/100|0,jn.M+=jn.Z%100,n(jn)):r(jn)}}function Vt(Wn,Ga,vo,jn){for(var St=0,Cr=Ga.length,Qr=vo.length,pi,fn;St=Qr)return-1;if(pi=Ga.charCodeAt(St++),pi===37){if(pi=Ga.charAt(St++),fn=kn[pi in o?Ga.charAt(St++):pi],!fn||(jn=fn(Wn,vo,jn))<0)return-1}else if(pi!=vo.charCodeAt(jn++))return-1}return jn}function _t(Wn,Ga,vo){var jn=nr.exec(Ga.slice(vo));return jn?(Wn.p=ir[jn[0].toLowerCase()],vo+jn[0].length):-1}function tr(Wn,Ga,vo){var jn=di.exec(Ga.slice(vo));return jn?(Wn.w=Jr[jn[0].toLowerCase()],vo+jn[0].length):-1}function ar(Wn,Ga,vo){var jn=pr.exec(Ga.slice(vo));return jn?(Wn.w=oi[jn[0].toLowerCase()],vo+jn[0].length):-1}function Er(Wn,Ga,vo){var jn=Pn.exec(Ga.slice(vo));return jn?(Wn.m=wn[jn[0].toLowerCase()],vo+jn[0].length):-1}function Zr(Wn,Ga,vo){var jn=fi.exec(Ga.slice(vo));return jn?(Wn.m=Hi[jn[0].toLowerCase()],vo+jn[0].length):-1}function ri(Wn,Ga,vo){return Vt(Wn,Je,Ga,vo)}function $r(Wn,Ga,vo){return Vt(Wn,je,Ga,vo)}function zi(Wn,Ga,vo){return Vt(Wn,$e,Ga,vo)}function Ji(Wn){return xe[Wn.getDay()]}function en(Wn){return Ie[Wn.getDay()]}function cn(Wn){return vt[Wn.getMonth()]}function yn(Wn){return Ce[Wn.getMonth()]}function Mn(Wn){return wt[+(Wn.getHours()>=12)]}function Ba(Wn){return 1+~~(Wn.getMonth()/3)}function la(Wn){return xe[Wn.getUTCDay()]}function ma(Wn){return Ie[Wn.getUTCDay()]}function Wa(Wn){return vt[Wn.getUTCMonth()]}function Fa(Wn){return Ce[Wn.getUTCMonth()]}function Wo(Wn){return wt[+(Wn.getUTCHours()>=12)]}function da(Wn){return 1+~~(Wn.getUTCMonth()/3)}return{format:function(Wn){var Ga=ea(Wn+="",pn);return Ga.toString=function(){return Wn},Ga},parse:function(Wn){var Ga=ua(Wn+="",!1);return Ga.toString=function(){return Wn},Ga},utcFormat:function(Wn){var Ga=ea(Wn+="",Vn);return Ga.toString=function(){return Wn},Ga},utcParse:function(Wn){var Ga=ua(Wn+="",!0);return Ga.toString=function(){return Wn},Ga}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(Ge,Je,je){var $e=Ge<0?"-":"",wt=($e?-Ge:Ge)+"",Ie=wt.length;return $e+(Ie68?1900:2e3),je+$e[0].length):-1}function L(Ge,Je,je){var $e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Je.slice(je,je+6));return $e?(Ge.Z=$e[1]?0:-($e[2]+($e[3]||"00")),je+$e[0].length):-1}function x(Ge,Je,je){var $e=s.exec(Je.slice(je,je+1));return $e?(Ge.q=$e[0]*3-3,je+$e[0].length):-1}function k(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.m=$e[0]-1,je+$e[0].length):-1}function M(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.d=+$e[0],je+$e[0].length):-1}function g(Ge,Je,je){var $e=s.exec(Je.slice(je,je+3));return $e?(Ge.m=0,Ge.d=+$e[0],je+$e[0].length):-1}function P(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.H=+$e[0],je+$e[0].length):-1}function T(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.M=+$e[0],je+$e[0].length):-1}function z(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.S=+$e[0],je+$e[0].length):-1}function O(Ge,Je,je){var $e=s.exec(Je.slice(je,je+3));return $e?(Ge.L=+$e[0],je+$e[0].length):-1}function V(Ge,Je,je){var $e=s.exec(Je.slice(je,je+6));return $e?(Ge.L=Math.floor($e[0]/1e3),je+$e[0].length):-1}function G(Ge,Je,je){var $e=l.exec(Je.slice(je,je+1));return $e?je+$e[0].length:-1}function Z(Ge,Je,je){var $e=s.exec(Je.slice(je));return $e?(Ge.Q=+$e[0],je+$e[0].length):-1}function H(Ge,Je,je){var $e=s.exec(Je.slice(je));return $e?(Ge.s=+$e[0],je+$e[0].length):-1}function N(Ge,Je){return c(Ge.getDate(),Je,2)}function j(Ge,Je){return c(Ge.getHours(),Je,2)}function re(Ge,Je){return c(Ge.getHours()%12||12,Je,2)}function oe(Ge,Je){return c(1+t.timeDay.count(t.timeYear(Ge),Ge),Je,3)}function _e(Ge,Je){return c(Ge.getMilliseconds(),Je,3)}function Me(Ge,Je){return _e(Ge,Je)+"000"}function ke(Ge,Je){return c(Ge.getMonth()+1,Je,2)}function me(Ge,Je){return c(Ge.getMinutes(),Je,2)}function ie(Ge,Je){return c(Ge.getSeconds(),Je,2)}function Se(Ge){var Je=Ge.getDay();return Je===0?7:Je}function Le(Ge,Je){return c(t.timeSunday.count(t.timeYear(Ge)-1,Ge),Je,2)}function Ae(Ge,Je){var je=Ge.getDay();return Ge=je>=4||je===0?t.timeThursday(Ge):t.timeThursday.ceil(Ge),c(t.timeThursday.count(t.timeYear(Ge),Ge)+(t.timeYear(Ge).getDay()===4),Je,2)}function De(Ge){return Ge.getDay()}function Pe(Ge,Je){return c(t.timeMonday.count(t.timeYear(Ge)-1,Ge),Je,2)}function ge(Ge,Je){return c(Ge.getFullYear()%100,Je,2)}function Fe(Ge,Je){return c(Ge.getFullYear()%1e4,Je,4)}function ce(Ge){var Je=Ge.getTimezoneOffset();return(Je>0?"-":(Je*=-1,"+"))+c(Je/60|0,"0",2)+c(Je%60,"0",2)}function Ze(Ge,Je){return c(Ge.getUTCDate(),Je,2)}function ct(Ge,Je){return c(Ge.getUTCHours(),Je,2)}function pt(Ge,Je){return c(Ge.getUTCHours()%12||12,Je,2)}function Wt(Ge,Je){return c(1+t.utcDay.count(t.utcYear(Ge),Ge),Je,3)}function st(Ge,Je){return c(Ge.getUTCMilliseconds(),Je,3)}function lt(Ge,Je){return st(Ge,Je)+"000"}function Gt(Ge,Je){return c(Ge.getUTCMonth()+1,Je,2)}function Nt(Ge,Je){return c(Ge.getUTCMinutes(),Je,2)}function $t(Ge,Je){return c(Ge.getUTCSeconds(),Je,2)}function sr(Ge){var Je=Ge.getUTCDay();return Je===0?7:Je}function wr(Ge,Je){return c(t.utcSunday.count(t.utcYear(Ge)-1,Ge),Je,2)}function ur(Ge,Je){var je=Ge.getUTCDay();return Ge=je>=4||je===0?t.utcThursday(Ge):t.utcThursday.ceil(Ge),c(t.utcThursday.count(t.utcYear(Ge),Ge)+(t.utcYear(Ge).getUTCDay()===4),Je,2)}function Qe(Ge){return Ge.getUTCDay()}function Et(Ge,Je){return c(t.utcMonday.count(t.utcYear(Ge)-1,Ge),Je,2)}function er(Ge,Je){return c(Ge.getUTCFullYear()%100,Je,2)}function Ut(Ge,Je){return c(Ge.getUTCFullYear()%1e4,Je,4)}function Ft(){return"+0000"}function bt(){return"%"}function yt(Ge){return+Ge}function Yt(Ge){return Math.floor(+Ge/1e3)}var lr;Tr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Tr(Ge){return lr=a(Ge),e.timeFormat=lr.format,e.timeParse=lr.parse,e.utcFormat=lr.utcFormat,e.utcParse=lr.utcParse,lr}var Rr="%Y-%m-%dT%H:%M:%S.%LZ";function ei(Ge){return Ge.toISOString()}var Wr=Date.prototype.toISOString?ei:e.utcFormat(Rr);function Ur(Ge){var Je=new Date(Ge);return isNaN(Je)?null:Je}var dt=+new Date("2000-01-01T00:00:00.000Z")?Ur:e.utcParse(Rr);e.isoFormat=Wr,e.isoParse=dt,e.timeFormatDefaultLocale=Tr,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var yO=ye((h6,gee)=>{(function(e,t){typeof h6=="object"&&typeof gee!="undefined"?t(h6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(h6,function(e){"use strict";function t(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function r(k,M){if((g=(k=M?k.toExponential(M-1):k.toExponential()).indexOf("e"))<0)return null;var g,P=k.slice(0,g);return[P.length>1?P[0]+P.slice(2):P,+k.slice(g+1)]}function n(k){return k=r(Math.abs(k)),k?k[1]:NaN}function i(k,M){return function(g,P){for(var T=g.length,z=[],O=0,V=k[0],G=0;T>0&&V>0&&(G+V+1>P&&(V=Math.max(1,P-G)),z.push(g.substring(T-=V,T+V)),!((G+=V+1)>P));)V=k[O=(O+1)%k.length];return z.reverse().join(M)}}function a(k){return function(M){return M.replace(/[0-9]/g,function(g){return k[+g]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(k){if(!(M=o.exec(k)))throw new Error("invalid format: "+k);var M;return new l({fill:M[1],align:M[2],sign:M[3],symbol:M[4],zero:M[5],width:M[6],comma:M[7],precision:M[8]&&M[8].slice(1),trim:M[9],type:M[10]})}s.prototype=l.prototype;function l(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.type+""}l.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(k){e:for(var M=k.length,g=1,P=-1,T;g0&&(P=0);break}return P>0?k.slice(0,P)+k.slice(T+1):k}var c;function f(k,M){var g=r(k,M);if(!g)return k+"";var P=g[0],T=g[1],z=T-(c=Math.max(-8,Math.min(8,Math.floor(T/3)))*3)+1,O=P.length;return z===O?P:z>O?P+new Array(z-O+1).join("0"):z>0?P.slice(0,z)+"."+P.slice(z):"0."+new Array(1-z).join("0")+r(k,Math.max(0,M+z-1))[0]}function h(k,M){var g=r(k,M);if(!g)return k+"";var P=g[0],T=g[1];return T<0?"0."+new Array(-T).join("0")+P:P.length>T+1?P.slice(0,T+1)+"."+P.slice(T+1):P+new Array(T-P.length+2).join("0")}var d={"%":function(k,M){return(k*100).toFixed(M)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:t,e:function(k,M){return k.toExponential(M)},f:function(k,M){return k.toFixed(M)},g:function(k,M){return k.toPrecision(M)},o:function(k){return Math.round(k).toString(8)},p:function(k,M){return h(k*100,M)},r:h,s:f,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function v(k){return k}var _=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function p(k){var M=k.grouping===void 0||k.thousands===void 0?v:i(_.call(k.grouping,Number),k.thousands+""),g=k.currency===void 0?"":k.currency[0]+"",P=k.currency===void 0?"":k.currency[1]+"",T=k.decimal===void 0?".":k.decimal+"",z=k.numerals===void 0?v:a(_.call(k.numerals,String)),O=k.percent===void 0?"%":k.percent+"",V=k.minus===void 0?"-":k.minus+"",G=k.nan===void 0?"NaN":k.nan+"";function Z(N){N=s(N);var j=N.fill,re=N.align,oe=N.sign,_e=N.symbol,Me=N.zero,ke=N.width,me=N.comma,ie=N.precision,Se=N.trim,Le=N.type;Le==="n"?(me=!0,Le="g"):d[Le]||(ie===void 0&&(ie=12),Se=!0,Le="g"),(Me||j==="0"&&re==="=")&&(Me=!0,j="0",re="=");var Ae=_e==="$"?g:_e==="#"&&/[boxX]/.test(Le)?"0"+Le.toLowerCase():"",De=_e==="$"?P:/[%p]/.test(Le)?O:"",Pe=d[Le],ge=/[defgprs%]/.test(Le);ie=ie===void 0?6:/[gprs]/.test(Le)?Math.max(1,Math.min(21,ie)):Math.max(0,Math.min(20,ie));function Fe(ce){var Ze=Ae,ct=De,pt,Wt,st;if(Le==="c")ct=Pe(ce)+ct,ce="";else{ce=+ce;var lt=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Pe(Math.abs(ce),ie),Se&&(ce=u(ce)),lt&&+ce==0&&oe!=="+"&&(lt=!1),Ze=(lt?oe==="("?oe:V:oe==="-"||oe==="("?"":oe)+Ze,ct=(Le==="s"?b[8+c/3]:"")+ct+(lt&&oe==="("?")":""),ge){for(pt=-1,Wt=ce.length;++ptst||st>57){ct=(st===46?T+ce.slice(pt+1):ce.slice(pt))+ct,ce=ce.slice(0,pt);break}}}me&&!Me&&(ce=M(ce,1/0));var Gt=Ze.length+ce.length+ct.length,Nt=Gt>1)+Ze+ce+ct+Nt.slice(Gt);break;default:ce=Nt+Ze+ce+ct;break}return z(ce)}return Fe.toString=function(){return N+""},Fe}function H(N,j){var re=Z((N=s(N),N.type="f",N)),oe=Math.max(-8,Math.min(8,Math.floor(n(j)/3)))*3,_e=Math.pow(10,-oe),Me=b[8+oe/3];return function(ke){return re(_e*ke)+Me}}return{format:Z,formatPrefix:H}}var C;E({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function E(k){return C=p(k),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function A(k){return Math.max(0,-n(Math.abs(k)))}function L(k,M){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(M)/3)))*3-n(Math.abs(k)))}function x(k,M){return k=Math.abs(k),M=Math.abs(M)-k,Math.max(0,n(M)-n(k))+1}e.FormatSpecifier=l,e.formatDefaultLocale=E,e.formatLocale=p,e.formatSpecifier=s,e.precisionFixed=A,e.precisionPrefix=L,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})})});var yee=ye((htr,mee)=>{"use strict";mee.exports=function(e){for(var t=e.length,r,n=0;n13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var Eo=ye((dtr,_ee)=>{"use strict";var Ket=yee();_ee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Ket(r))return!1}else if(t!=="number")return!1;return e-e<1}});var hs=ye((vtr,xee)=>{"use strict";xee.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var _O=ye((d6,bee)=>{(function(e,t){typeof d6=="object"&&typeof bee!="undefined"?t(d6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(d6,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],c+=t[(s[l]&3)<<4|s[l+1]>>4],c+=t[(s[l+1]&15)<<2|s[l+2]>>6],c+=t[s[l+2]&63];return u%3===2?c=c.substring(0,c.length-1)+"=":u%3===1&&(c=c.substring(0,c.length-2)+"=="),c},a=function(o){var s=o.length*.75,l=o.length,u,c=0,f,h,d,v;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var _=new ArrayBuffer(s),b=new Uint8Array(_);for(u=0;u>4,b[c++]=(h&15)<<4|d>>2,b[c++]=(d&3)<<6|v&63;return _};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var gy=ye((ptr,wee)=>{"use strict";wee.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var vv=ye(yg=>{"use strict";var Jet=_O().decode,$et=gy(),xO=Array.isArray,Qet=ArrayBuffer,ett=DataView;function Tee(e){return Qet.isView(e)&&!(e instanceof ett)}yg.isTypedArray=Tee;function v6(e){return xO(e)||Tee(e)}yg.isArrayOrTypedArray=v6;function ttt(e){return!v6(e[0])}yg.isArray1D=ttt;yg.ensureArray=function(e,t){return xO(e)||(e=[]),e.length=t,e};var Ld={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ld.uint8c=Ld.u1c;Ld.uint8=Ld.u1;Ld.int8=Ld.i1;Ld.uint16=Ld.u2;Ld.int16=Ld.i2;Ld.uint32=Ld.u4;Ld.int32=Ld.i4;Ld.float32=Ld.f4;Ld.float64=Ld.f8;function bO(e){return e.constructor===ArrayBuffer}yg.isArrayBuffer=bO;yg.decodeTypedArraySpec=function(e){var t=[],r=rtt(e),n=r.dtype,i=Ld[n];if(!i)throw new Error('Error in dtype: "'+n+'"');var a=i.BYTES_PER_ELEMENT,o=r.bdata;bO(o)||(o=Jet(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var l=s.length,u,c,f=+s[0],h=a*f,d=0;if(l===1)t=new i(o);else if(l===2)for(u=+s[1],c=0;c{"use strict";var See=Eo(),TO=vv().isArrayOrTypedArray;kee.exports=function(t,r){if(See(r))r=String(r);else if(typeof r!="string"||r.substr(r.length-4)==="[-1]")throw"bad property string";var n=r.split("."),i,a,o,s;for(s=0;s{"use strict";var t3=kS(),stt=/^\w*$/,ltt=0,Lee=1,p6=2,Pee=3,ob=4;Iee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,l={};r&&r.length?(s=t3(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(a=0;a2)return l[d]=l[d]|p6,f.set(h,null);if(c){for(a=d;a{"use strict";var utt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,ctt=/^[^\.\[\]]+$/;Dee.exports=function(e,t){for(;t;){var r=e.match(utt);if(r)e=r[1];else if(e.match(ctt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var g6=ye((xtr,zee)=>{"use strict";var ftt=Eo();zee.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return ftt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var Bee=ye((btr,qee)=>{"use strict";var Oee=vv().isArrayOrTypedArray,LS=gy();qee.exports=function e(t,r){for(var n in r){var i=r[n],a=t[n];if(a!==i)if(n.charAt(0)==="_"||typeof i=="function"){if(n in t)continue;t[n]=i}else if(Oee(i)&&Oee(a)&&LS(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function htt(e,t){var r=e%t;return r<0?r+t:r}function dtt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}Nee.exports={mod:htt,modHalf:dtt}});var cd=ye((Ttr,m6)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function l(ge,Fe){if(ge=ge||"",Fe=Fe||{},ge instanceof l)return ge;if(!(this instanceof l))return new l(ge,Fe);var ce=u(ge);this._originalInput=ge,this._r=ce.r,this._g=ce.g,this._b=ce.b,this._a=ce.a,this._roundA=i(100*this._a)/100,this._format=Fe.format||ce.format,this._gradientType=Fe.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=ce.ok,this._tc_id=n++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ge=this.toRgb();return(ge.r*299+ge.g*587+ge.b*114)/1e3},getLuminance:function(){var ge=this.toRgb(),Fe,ce,Ze,ct,pt,Wt;return Fe=ge.r/255,ce=ge.g/255,Ze=ge.b/255,Fe<=.03928?ct=Fe/12.92:ct=e.pow((Fe+.055)/1.055,2.4),ce<=.03928?pt=ce/12.92:pt=e.pow((ce+.055)/1.055,2.4),Ze<=.03928?Wt=Ze/12.92:Wt=e.pow((Ze+.055)/1.055,2.4),.2126*ct+.7152*pt+.0722*Wt},setAlpha:function(ge){return this._a=N(ge),this._roundA=i(100*this._a)/100,this},toHsv:function(){var ge=d(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,v:ge.v,a:this._a}},toHsvString:function(){var ge=d(this._r,this._g,this._b),Fe=i(ge.h*360),ce=i(ge.s*100),Ze=i(ge.v*100);return this._a==1?"hsv("+Fe+", "+ce+"%, "+Ze+"%)":"hsva("+Fe+", "+ce+"%, "+Ze+"%, "+this._roundA+")"},toHsl:function(){var ge=f(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,l:ge.l,a:this._a}},toHslString:function(){var ge=f(this._r,this._g,this._b),Fe=i(ge.h*360),ce=i(ge.s*100),Ze=i(ge.l*100);return this._a==1?"hsl("+Fe+", "+ce+"%, "+Ze+"%)":"hsla("+Fe+", "+ce+"%, "+Ze+"%, "+this._roundA+")"},toHex:function(ge){return _(this._r,this._g,this._b,ge)},toHexString:function(ge){return"#"+this.toHex(ge)},toHex8:function(ge){return b(this._r,this._g,this._b,this._a,ge)},toHex8String:function(ge){return"#"+this.toHex8(ge)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(j(this._r,255)*100)+"%",g:i(j(this._g,255)*100)+"%",b:i(j(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(j(this._r,255)*100)+"%, "+i(j(this._g,255)*100)+"%, "+i(j(this._b,255)*100)+"%)":"rgba("+i(j(this._r,255)*100)+"%, "+i(j(this._g,255)*100)+"%, "+i(j(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Z[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(ge){var Fe="#"+p(this._r,this._g,this._b,this._a),ce=Fe,Ze=this._gradientType?"GradientType = 1, ":"";if(ge){var ct=l(ge);ce="#"+p(ct._r,ct._g,ct._b,ct._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ze+"startColorstr="+Fe+",endColorstr="+ce+")"},toString:function(ge){var Fe=!!ge;ge=ge||this._format;var ce=!1,Ze=this._a<1&&this._a>=0,ct=!Fe&&Ze&&(ge==="hex"||ge==="hex6"||ge==="hex3"||ge==="hex4"||ge==="hex8"||ge==="name");return ct?ge==="name"&&this._a===0?this.toName():this.toRgbString():(ge==="rgb"&&(ce=this.toRgbString()),ge==="prgb"&&(ce=this.toPercentageRgbString()),(ge==="hex"||ge==="hex6")&&(ce=this.toHexString()),ge==="hex3"&&(ce=this.toHexString(!0)),ge==="hex4"&&(ce=this.toHex8String(!0)),ge==="hex8"&&(ce=this.toHex8String()),ge==="name"&&(ce=this.toName()),ge==="hsl"&&(ce=this.toHslString()),ge==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(ge,Fe){var ce=ge.apply(null,[this].concat([].slice.call(Fe)));return this._r=ce._r,this._g=ce._g,this._b=ce._b,this.setAlpha(ce._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(ge,Fe){return ge.apply(null,[this].concat([].slice.call(Fe)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},l.fromRatio=function(ge,Fe){if(typeof ge=="object"){var ce={};for(var Ze in ge)ge.hasOwnProperty(Ze)&&(Ze==="a"?ce[Ze]=ge[Ze]:ce[Ze]=me(ge[Ze]));ge=ce}return l(ge,Fe)};function u(ge){var Fe={r:0,g:0,b:0},ce=1,Ze=null,ct=null,pt=null,Wt=!1,st=!1;return typeof ge=="string"&&(ge=De(ge)),typeof ge=="object"&&(Ae(ge.r)&&Ae(ge.g)&&Ae(ge.b)?(Fe=c(ge.r,ge.g,ge.b),Wt=!0,st=String(ge.r).substr(-1)==="%"?"prgb":"rgb"):Ae(ge.h)&&Ae(ge.s)&&Ae(ge.v)?(Ze=me(ge.s),ct=me(ge.v),Fe=v(ge.h,Ze,ct),Wt=!0,st="hsv"):Ae(ge.h)&&Ae(ge.s)&&Ae(ge.l)&&(Ze=me(ge.s),pt=me(ge.l),Fe=h(ge.h,Ze,pt),Wt=!0,st="hsl"),ge.hasOwnProperty("a")&&(ce=ge.a)),ce=N(ce),{ok:Wt,format:ge.format||st,r:a(255,o(Fe.r,0)),g:a(255,o(Fe.g,0)),b:a(255,o(Fe.b,0)),a:ce}}function c(ge,Fe,ce){return{r:j(ge,255)*255,g:j(Fe,255)*255,b:j(ce,255)*255}}function f(ge,Fe,ce){ge=j(ge,255),Fe=j(Fe,255),ce=j(ce,255);var Ze=o(ge,Fe,ce),ct=a(ge,Fe,ce),pt,Wt,st=(Ze+ct)/2;if(Ze==ct)pt=Wt=0;else{var lt=Ze-ct;switch(Wt=st>.5?lt/(2-Ze-ct):lt/(Ze+ct),Ze){case ge:pt=(Fe-ce)/lt+(Fe1&&($t-=1),$t<1/6?Gt+(Nt-Gt)*6*$t:$t<1/2?Nt:$t<2/3?Gt+(Nt-Gt)*(2/3-$t)*6:Gt}if(Fe===0)Ze=ct=pt=ce;else{var st=ce<.5?ce*(1+Fe):ce+Fe-ce*Fe,lt=2*ce-st;Ze=Wt(lt,st,ge+1/3),ct=Wt(lt,st,ge),pt=Wt(lt,st,ge-1/3)}return{r:Ze*255,g:ct*255,b:pt*255}}function d(ge,Fe,ce){ge=j(ge,255),Fe=j(Fe,255),ce=j(ce,255);var Ze=o(ge,Fe,ce),ct=a(ge,Fe,ce),pt,Wt,st=Ze,lt=Ze-ct;if(Wt=Ze===0?0:lt/Ze,Ze==ct)pt=0;else{switch(Ze){case ge:pt=(Fe-ce)/lt+(Fe>1)+720)%360;--Fe;)Ze.h=(Ze.h+ct)%360,pt.push(l(Ze));return pt}function V(ge,Fe){Fe=Fe||6;for(var ce=l(ge).toHsv(),Ze=ce.h,ct=ce.s,pt=ce.v,Wt=[],st=1/Fe;Fe--;)Wt.push(l({h:Ze,s:ct,v:pt})),pt=(pt+st)%1;return Wt}l.mix=function(ge,Fe,ce){ce=ce===0?0:ce||50;var Ze=l(ge).toRgb(),ct=l(Fe).toRgb(),pt=ce/100,Wt={r:(ct.r-Ze.r)*pt+Ze.r,g:(ct.g-Ze.g)*pt+Ze.g,b:(ct.b-Ze.b)*pt+Ze.b,a:(ct.a-Ze.a)*pt+Ze.a};return l(Wt)},l.readability=function(ge,Fe){var ce=l(ge),Ze=l(Fe);return(e.max(ce.getLuminance(),Ze.getLuminance())+.05)/(e.min(ce.getLuminance(),Ze.getLuminance())+.05)},l.isReadable=function(ge,Fe,ce){var Ze=l.readability(ge,Fe),ct,pt;switch(pt=!1,ct=Pe(ce),ct.level+ct.size){case"AAsmall":case"AAAlarge":pt=Ze>=4.5;break;case"AAlarge":pt=Ze>=3;break;case"AAAsmall":pt=Ze>=7;break}return pt},l.mostReadable=function(ge,Fe,ce){var Ze=null,ct=0,pt,Wt,st,lt;ce=ce||{},Wt=ce.includeFallbackColors,st=ce.level,lt=ce.size;for(var Gt=0;Gtct&&(ct=pt,Ze=l(Fe[Gt]));return l.isReadable(ge,Ze,{level:st,size:lt})||!Wt?Ze:(ce.includeFallbackColors=!1,l.mostReadable(ge,["#fff","#000"],ce))};var G=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Z=l.hexNames=H(G);function H(ge){var Fe={};for(var ce in ge)ge.hasOwnProperty(ce)&&(Fe[ge[ce]]=ce);return Fe}function N(ge){return ge=parseFloat(ge),(isNaN(ge)||ge<0||ge>1)&&(ge=1),ge}function j(ge,Fe){_e(ge)&&(ge="100%");var ce=Me(ge);return ge=a(Fe,o(0,parseFloat(ge))),ce&&(ge=parseInt(ge*Fe,10)/100),e.abs(ge-Fe)<1e-6?1:ge%Fe/parseFloat(Fe)}function re(ge){return a(1,o(0,ge))}function oe(ge){return parseInt(ge,16)}function _e(ge){return typeof ge=="string"&&ge.indexOf(".")!=-1&&parseFloat(ge)===1}function Me(ge){return typeof ge=="string"&&ge.indexOf("%")!=-1}function ke(ge){return ge.length==1?"0"+ge:""+ge}function me(ge){return ge<=1&&(ge=ge*100+"%"),ge}function ie(ge){return e.round(parseFloat(ge)*255).toString(16)}function Se(ge){return oe(ge)/255}var Le=function(){var ge="[-\\+]?\\d+%?",Fe="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+Fe+")|(?:"+ge+")",Ze="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",ct="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+Ze),rgba:new RegExp("rgba"+ct),hsl:new RegExp("hsl"+Ze),hsla:new RegExp("hsla"+ct),hsv:new RegExp("hsv"+Ze),hsva:new RegExp("hsva"+ct),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ae(ge){return!!Le.CSS_UNIT.exec(ge)}function De(ge){ge=ge.replace(t,"").replace(r,"").toLowerCase();var Fe=!1;if(G[ge])ge=G[ge],Fe=!0;else if(ge=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=Le.rgb.exec(ge))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=Le.rgba.exec(ge))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=Le.hsl.exec(ge))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=Le.hsla.exec(ge))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=Le.hsv.exec(ge))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=Le.hsva.exec(ge))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=Le.hex8.exec(ge))?{r:oe(ce[1]),g:oe(ce[2]),b:oe(ce[3]),a:Se(ce[4]),format:Fe?"name":"hex8"}:(ce=Le.hex6.exec(ge))?{r:oe(ce[1]),g:oe(ce[2]),b:oe(ce[3]),format:Fe?"name":"hex"}:(ce=Le.hex4.exec(ge))?{r:oe(ce[1]+""+ce[1]),g:oe(ce[2]+""+ce[2]),b:oe(ce[3]+""+ce[3]),a:Se(ce[4]+""+ce[4]),format:Fe?"name":"hex8"}:(ce=Le.hex3.exec(ge))?{r:oe(ce[1]+""+ce[1]),g:oe(ce[2]+""+ce[2]),b:oe(ce[3]+""+ce[3]),format:Fe?"name":"hex"}:!1}function Pe(ge){var Fe,ce;return ge=ge||{level:"AA",size:"small"},Fe=(ge.level||"AA").toUpperCase(),ce=(ge.size||"small").toLowerCase(),Fe!=="AA"&&Fe!=="AAA"&&(Fe="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:Fe,size:ce}}typeof m6!="undefined"&&m6.exports?m6.exports=l:window.tinycolor=l})(Math)});var Ao=ye(RS=>{"use strict";var Uee=gy(),PS=Array.isArray;function vtt(e,t){var r,n;for(r=0;r{"use strict";Vee.exports=function(e){var t=e.variantValues,r=e.editType,n=e.colorEditType;n===void 0&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:n},weight:i,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var DS=ye((Mtr,Gee)=>{"use strict";Gee.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var B1=ye((Etr,Wee)=>{"use strict";var Hee=DS(),jee=ec(),AO=jee({editType:"none"});AO.family.dflt=Hee.HOVERFONT;AO.size.dflt=Hee.HOVERFONTSIZE;Wee.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:AO,grouptitlefont:jee({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var i3=ye((Ctr,Xee)=>{"use strict";var ptt=ec(),FS=B1().hoverlabel,zS=Ao().extendFlat;Xee.exports={hoverlabel:{bgcolor:zS({},FS.bgcolor,{arrayOk:!0}),bordercolor:zS({},FS.bordercolor,{arrayOk:!0}),font:ptt({arrayOk:!0,editType:"none"}),align:zS({},FS.align,{arrayOk:!0}),namelength:zS({},FS.namelength,{arrayOk:!0}),showarrow:zS({},FS.showarrow),editType:"none"}}});var Gl=ye((ktr,Zee)=>{"use strict";var gtt=ec(),mtt=i3();Zee.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:gtt({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:mtt.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var sb=ye((Ltr,Jee)=>{"use strict";var ytt=cd(),y6={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Yee=y6.RdBu;function _tt(e,t){if(t||(t=Yee),!e)return t;function r(){try{e=y6[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),Kee(e)?e:t}function Kee(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";lb.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];lb.defaultLine="#444";lb.lightLine="#eee";lb.background="#fff";lb.borderLine="#BEC8D9";lb.lightFraction=100*10/11});var Ca=ye((Itr,$ee)=>{"use strict";var xp=cd(),btt=Eo(),wtt=vv().isTypedArray,fd=$ee.exports={},_6=Ch();fd.defaults=_6.defaults;var Ttt=fd.defaultLine=_6.defaultLine;fd.lightLine=_6.lightLine;var MO=fd.background=_6.background;fd.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};fd.rgb=function(e){return fd.tinyRGB(xp(e))};fd.opacity=function(e){return e?xp(e).getAlpha():0};fd.addOpacity=function(e,t){var r=xp(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};fd.combine=function(e,t){var r=xp(e).toRgb();if(r.a===1)return xp(e).toRgbString();var n=xp(t||MO).toRgb(),i=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return xp(a).toRgbString()};fd.interpolate=function(e,t,r){var n=xp(e).toRgb(),i=xp(t).toRgb(),a={r:r*n.r+(1-r)*i.r,g:r*n.g+(1-r)*i.g,b:r*n.b+(1-r)*i.b};return xp(a).toRgbString()};fd.contrast=function(e,t,r){var n=xp(e);n.getAlpha()!==1&&(n=xp(fd.combine(e,MO)));var i=n.isDark()?t?n.lighten(t):MO:r?n.darken(r):Ttt;return i.toString()};fd.stroke=function(e,t){var r=xp(t);e.style({stroke:fd.tinyRGB(r),"stroke-opacity":r.getAlpha()})};fd.fill=function(e,t){var r=xp(t);e.style({fill:fd.tinyRGB(r),"fill-opacity":r.getAlpha()})};fd.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,n,i,a;for(r=0;r=0)))return e;if(a===3)n[a]>1&&(n[a]=1);else if(n[a]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return i?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var N1=ye((Rtr,Qee)=>{"use strict";Qee.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var n3=ye(ete=>{"use strict";ete.counter=function(e,t,r,n){var i=(t||"")+(r?"":"$"),a=n===!1?"":"^";return e==="xy"?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+e+"([2-9]|[1-9][0-9]+)?"+i)}});var nte=ye(bp=>{"use strict";var EO=Eo(),tte=cd(),rte=Ao().extendFlat,Att=Gl(),Stt=sb(),Mtt=Ca(),Ett=N1().DESELECTDIM,a3=kS(),ite=n3().counter,Ctt=r3().modHalf,dm=vv().isArrayOrTypedArray,U1=vv().isTypedArraySpec,V1=vv().decodeTypedArraySpec;bp.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(dm(e)?e:U1(e)?V1(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;nn.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}U1(e)&&(e=V1(e)),e%1||!EO(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if(typeof e!="string"){var i=typeof e=="number";n.strict===!0||!i?t.set(r):t.set(String(e))}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){U1(e)&&(e=V1(e)),tte(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return tte(i).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(n)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(Stt.get(e,r))}},angle:{coerceFunction:function(e,t,r){U1(e)&&(e=V1(e)),e==="auto"?t.set("auto"):EO(e)?t.set(Ctt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||ite(r);if(typeof e=="string"&&i.test(e)){t.set(e);return}t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!ite(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var i=e.split("+"),a=0;a{"use strict";var ate={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},ote={};function ste(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),ste(n,t[r]))}}ste(ate,ote);lte.exports={configAttributes:ate,dfltConfig:ote}});var kO=ye((Otr,ute)=>{"use strict";var CO=Oa(),ktt=Eo(),OS=[];ute.exports=function(e,t){if(OS.indexOf(e)!==-1)return;OS.push(e);var r=1e3;ktt(t)?r=t:t==="long"&&(r=3e3);var n=CO.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(OS);function a(o){o.duration(700).style("opacity",0).each("end",function(s){var l=OS.indexOf(s);l!==-1&&OS.splice(l,1),CO.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var s=CO.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(a)});for(var l=s.append("p"),u=o.split(//g),c=0;c{"use strict";var o3=ub().dfltConfig,LO=kO(),PO=cte.exports={};PO.log=function(){var e;if(o3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};PO.warn=function(){var e;if(o3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};PO.error=function(){var e;if(o3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var b6=ye((Btr,fte)=>{"use strict";fte.exports=function(){}});var IO=ye((Ntr,hte)=>{"use strict";hte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{dte.exports=Ltt;function Ltt(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var gte=ye((Vtr,pte)=>{pte.exports=Ptt;function Ptt(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var yte=ye((Gtr,mte)=>{mte.exports=Itt;function Itt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var RO=ye((Htr,_te)=>{_te.exports=Rtt;function Rtt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var bte=ye((jtr,xte)=>{xte.exports=Dtt;function Dtt(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var Tte=ye((Wtr,wte)=>{wte.exports=Ftt;function Ftt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],_=t[13],b=t[14],p=t[15],C=r*s-n*o,E=r*l-i*o,A=r*u-a*o,L=n*l-i*s,x=n*u-a*s,k=i*u-a*l,M=c*_-f*v,g=c*b-h*v,P=c*p-d*v,T=f*b-h*_,z=f*p-d*_,O=h*p-d*b,V=C*O-E*z+A*T+L*P-x*g+k*M;return V?(V=1/V,e[0]=(s*O-l*z+u*T)*V,e[1]=(i*z-n*O-a*T)*V,e[2]=(_*k-b*x+p*L)*V,e[3]=(h*x-f*k-d*L)*V,e[4]=(l*P-o*O-u*g)*V,e[5]=(r*O-i*P+a*g)*V,e[6]=(b*A-v*k-p*E)*V,e[7]=(c*k-h*A+d*E)*V,e[8]=(o*z-s*P+u*M)*V,e[9]=(n*P-r*z-a*M)*V,e[10]=(v*x-_*A+p*C)*V,e[11]=(f*A-c*x-d*C)*V,e[12]=(s*g-o*T-l*M)*V,e[13]=(r*T-n*g+i*M)*V,e[14]=(_*E-v*L-b*C)*V,e[15]=(c*L-f*E+h*C)*V,e):null}});var Ste=ye((Xtr,Ate)=>{Ate.exports=ztt;function ztt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],_=t[13],b=t[14],p=t[15];return e[0]=s*(h*p-d*b)-f*(l*p-u*b)+_*(l*d-u*h),e[1]=-(n*(h*p-d*b)-f*(i*p-a*b)+_*(i*d-a*h)),e[2]=n*(l*p-u*b)-s*(i*p-a*b)+_*(i*u-a*l),e[3]=-(n*(l*d-u*h)-s*(i*d-a*h)+f*(i*u-a*l)),e[4]=-(o*(h*p-d*b)-c*(l*p-u*b)+v*(l*d-u*h)),e[5]=r*(h*p-d*b)-c*(i*p-a*b)+v*(i*d-a*h),e[6]=-(r*(l*p-u*b)-o*(i*p-a*b)+v*(i*u-a*l)),e[7]=r*(l*d-u*h)-o*(i*d-a*h)+c*(i*u-a*l),e[8]=o*(f*p-d*_)-c*(s*p-u*_)+v*(s*d-u*f),e[9]=-(r*(f*p-d*_)-c*(n*p-a*_)+v*(n*d-a*f)),e[10]=r*(s*p-u*_)-o*(n*p-a*_)+v*(n*u-a*s),e[11]=-(r*(s*d-u*f)-o*(n*d-a*f)+c*(n*u-a*s)),e[12]=-(o*(f*b-h*_)-c*(s*b-l*_)+v*(s*h-l*f)),e[13]=r*(f*b-h*_)-c*(n*b-i*_)+v*(n*h-i*f),e[14]=-(r*(s*b-l*_)-o*(n*b-i*_)+v*(n*l-i*s)),e[15]=r*(s*h-l*f)-o*(n*h-i*f)+c*(n*l-i*s),e}});var Ete=ye((Ztr,Mte)=>{Mte.exports=Ott;function Ott(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],h=e[11],d=e[12],v=e[13],_=e[14],b=e[15],p=t*o-r*a,C=t*s-n*a,E=t*l-i*a,A=r*s-n*o,L=r*l-i*o,x=n*l-i*s,k=u*v-c*d,M=u*_-f*d,g=u*b-h*d,P=c*_-f*v,T=c*b-h*v,z=f*b-h*_;return p*z-C*T+E*P+A*g-L*M+x*k}});var kte=ye((Ytr,Cte)=>{Cte.exports=qtt;function qtt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=t[9],d=t[10],v=t[11],_=t[12],b=t[13],p=t[14],C=t[15],E=r[0],A=r[1],L=r[2],x=r[3];return e[0]=E*n+A*s+L*f+x*_,e[1]=E*i+A*l+L*h+x*b,e[2]=E*a+A*u+L*d+x*p,e[3]=E*o+A*c+L*v+x*C,E=r[4],A=r[5],L=r[6],x=r[7],e[4]=E*n+A*s+L*f+x*_,e[5]=E*i+A*l+L*h+x*b,e[6]=E*a+A*u+L*d+x*p,e[7]=E*o+A*c+L*v+x*C,E=r[8],A=r[9],L=r[10],x=r[11],e[8]=E*n+A*s+L*f+x*_,e[9]=E*i+A*l+L*h+x*b,e[10]=E*a+A*u+L*d+x*p,e[11]=E*o+A*c+L*v+x*C,E=r[12],A=r[13],L=r[14],x=r[15],e[12]=E*n+A*s+L*f+x*_,e[13]=E*i+A*l+L*h+x*b,e[14]=E*a+A*u+L*d+x*p,e[15]=E*o+A*c+L*v+x*C,e}});var Pte=ye((Ktr,Lte)=>{Lte.exports=Btt;function Btt(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,l,u,c,f,h,d,v,_,b,p;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],f=t[5],h=t[6],d=t[7],v=t[8],_=t[9],b=t[10],p=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=f,e[6]=h,e[7]=d,e[8]=v,e[9]=_,e[10]=b,e[11]=p,e[12]=o*n+c*i+v*a+t[12],e[13]=s*n+f*i+_*a+t[13],e[14]=l*n+h*i+b*a+t[14],e[15]=u*n+d*i+p*a+t[15]),e}});var Rte=ye((Jtr,Ite)=>{Ite.exports=Ntt;function Ntt(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var Fte=ye(($tr,Dte)=>{Dte.exports=Utt;function Utt(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),l,u,c,f,h,d,v,_,b,p,C,E,A,L,x,k,M,g,P,T,z,O,V,G;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,l=Math.sin(r),u=Math.cos(r),c=1-u,f=t[0],h=t[1],d=t[2],v=t[3],_=t[4],b=t[5],p=t[6],C=t[7],E=t[8],A=t[9],L=t[10],x=t[11],k=i*i*c+u,M=a*i*c+o*l,g=o*i*c-a*l,P=i*a*c-o*l,T=a*a*c+u,z=o*a*c+i*l,O=i*o*c+a*l,V=a*o*c-i*l,G=o*o*c+u,e[0]=f*k+_*M+E*g,e[1]=h*k+b*M+A*g,e[2]=d*k+p*M+L*g,e[3]=v*k+C*M+x*g,e[4]=f*P+_*T+E*z,e[5]=h*P+b*T+A*z,e[6]=d*P+p*T+L*z,e[7]=v*P+C*T+x*z,e[8]=f*O+_*V+E*G,e[9]=h*O+b*V+A*G,e[10]=d*O+p*V+L*G,e[11]=v*O+C*V+x*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var Ote=ye((Qtr,zte)=>{zte.exports=Vtt;function Vtt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*n,e[5]=o*i+c*n,e[6]=s*i+f*n,e[7]=l*i+h*n,e[8]=u*i-a*n,e[9]=c*i-o*n,e[10]=f*i-s*n,e[11]=h*i-l*n,e}});var Bte=ye((err,qte)=>{qte.exports=Gtt;function Gtt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*n,e[1]=o*i-c*n,e[2]=s*i-f*n,e[3]=l*i-h*n,e[8]=a*n+u*i,e[9]=o*n+c*i,e[10]=s*n+f*i,e[11]=l*n+h*i,e}});var Ute=ye((trr,Nte)=>{Nte.exports=Htt;function Htt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],f=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*n,e[1]=o*i+c*n,e[2]=s*i+f*n,e[3]=l*i+h*n,e[4]=u*i-a*n,e[5]=c*i-o*n,e[6]=f*i-s*n,e[7]=h*i-l*n,e}});var Gte=ye((rrr,Vte)=>{Vte.exports=jtt;function jtt(e,t,r){var n,i,a,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,s*=u,l*=u,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+l*n,e[2]=l*o*a-s*n,e[3]=0,e[4]=o*s*a-l*n,e[5]=s*s*a+i,e[6]=l*s*a+o*n,e[7]=0,e[8]=o*l*a+s*n,e[9]=s*l*a-o*n,e[10]=l*l*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var jte=ye((irr,Hte)=>{Hte.exports=Wtt;function Wtt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,l=i+i,u=a+a,c=n*s,f=n*l,h=n*u,d=i*l,v=i*u,_=a*u,b=o*s,p=o*l,C=o*u;return e[0]=1-(d+_),e[1]=f+C,e[2]=h-p,e[3]=0,e[4]=f-C,e[5]=1-(c+_),e[6]=v+b,e[7]=0,e[8]=h+p,e[9]=v-b,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Xte=ye((nrr,Wte)=>{Wte.exports=Xtt;function Xtt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Yte=ye((arr,Zte)=>{Zte.exports=Ztt;function Ztt(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var Jte=ye((orr,Kte)=>{Kte.exports=Ytt;function Ytt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Qte=ye((srr,$te)=>{$te.exports=Ktt;function Ktt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var tre=ye((lrr,ere)=>{ere.exports=Jtt;function Jtt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ire=ye((urr,rre)=>{rre.exports=$tt;function $tt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,f=n*s,h=i*o,d=i*s,v=i*l,_=a*o,b=a*s,p=a*l;return e[0]=1-f-v,e[1]=c+p,e[2]=h-b,e[3]=0,e[4]=c-p,e[5]=1-u-v,e[6]=d+_,e[7]=0,e[8]=h+b,e[9]=d-_,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var are=ye((crr,nre)=>{nre.exports=Qtt;function Qtt(e,t,r,n,i,a,o){var s=1/(r-t),l=1/(i-n),u=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*l,e[10]=(o+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*u,e[15]=0,e}});var sre=ye((frr,ore)=>{ore.exports=ert;function ert(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}});var ure=ye((hrr,lre)=>{lre.exports=trt;function trt(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(i-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}});var fre=ye((drr,cre)=>{cre.exports=rrt;function rrt(e,t,r,n,i,a,o){var s=1/(t-r),l=1/(n-i),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*l,e[14]=(o+a)*u,e[15]=1,e}});var dre=ye((vrr,hre)=>{var irt=RO();hre.exports=nrt;function nrt(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v=t[0],_=t[1],b=t[2],p=n[0],C=n[1],E=n[2],A=r[0],L=r[1],x=r[2];return Math.abs(v-A)<1e-6&&Math.abs(_-L)<1e-6&&Math.abs(b-x)<1e-6?irt(e):(c=v-A,f=_-L,h=b-x,d=1/Math.sqrt(c*c+f*f+h*h),c*=d,f*=d,h*=d,i=C*h-E*f,a=E*c-p*h,o=p*f-C*c,d=Math.sqrt(i*i+a*a+o*o),d?(d=1/d,i*=d,a*=d,o*=d):(i=0,a=0,o=0),s=f*o-h*a,l=h*i-c*o,u=c*a-f*i,d=Math.sqrt(s*s+l*l+u*u),d?(d=1/d,s*=d,l*=d,u*=d):(s=0,l=0,u=0),e[0]=i,e[1]=s,e[2]=c,e[3]=0,e[4]=a,e[5]=l,e[6]=f,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(i*v+a*_+o*b),e[13]=-(s*v+l*_+u*b),e[14]=-(c*v+f*_+h*b),e[15]=1,e)}});var pre=ye((prr,vre)=>{vre.exports=art;function art(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var DO=ye((grr,gre)=>{gre.exports={create:vte(),clone:gte(),copy:yte(),identity:RO(),transpose:bte(),invert:Tte(),adjoint:Ste(),determinant:Ete(),multiply:kte(),translate:Pte(),scale:Rte(),rotate:Fte(),rotateX:Ote(),rotateY:Bte(),rotateZ:Ute(),fromRotation:Gte(),fromRotationTranslation:jte(),fromScaling:Xte(),fromTranslation:Yte(),fromXRotation:Jte(),fromYRotation:Qte(),fromZRotation:tre(),fromQuat:ire(),frustum:are(),perspective:sre(),perspectiveFromFieldOfView:ure(),ortho:fre(),lookAt:dre(),str:pre()}});var w6=ye(fh=>{"use strict";var ort=DO();fh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var srt=Oa(),mre=G1(),lrt=w6(),urt=DO();function crt(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function frt(e){var t=srt.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function yre(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function hrt(e,t){_re("global",e,t)}function _re(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);if(!(i&&i.matches(".no-inline-styles"))){i||(i=document.createElement("style"),i.setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):mre.warn("addStyleRule failed"):mre.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function drt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&yre(r)}function vrt(e,t,r,n,i,a){var o=n.split(":"),s=i.split(":"),l="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(u){u.getAttribute(l)||(u.addEventListener("mouseenter",function(){var c=this.querySelector(r);c&&(c.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var c=this.querySelector(r);c&&(t&&this.matches(t)?c.style[o[0]]=o[1]:c.style[s[0]]=s[1])}),u.setAttribute(l,!0))})}function prt(e){var t=bre(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(n){var i=xre(n);if(i){var a=lrt.convertCssMatrix(i);r=urt.multiply(r,r,a)}}),r}function xre(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function bre(e){for(var t=[];grt(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function grt(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function mrt(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}wre.exports={getGraphDiv:crt,isPlotDiv:frt,removeElement:yre,addStyleRule:hrt,addRelatedStyleRule:_re,deleteRelatedStyleRule:drt,setStyleOnHover:vrt,getFullTransformMatrix:prt,getElementTransformMatrix:xre,getElementAndAncestors:bre,equalDomRects:mrt}});var BS=ye((_rr,Tre)=>{"use strict";Tre.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var mc=ye((xrr,Lre)=>{"use strict";var Sre=Ao().extendFlat,yrt=gy(),Mre={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Ere={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},_rt=Mre.flags.slice().concat(["fullReplot"]),xrt=Ere.flags.slice().concat("layoutReplot");Lre.exports={traces:Mre,layout:Ere,traceFlags:function(){return Are(_rt)},layoutFlags:function(){return Are(xrt)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";FO.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};FO.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var zO=ye((wrr,Pre)=>{"use strict";Pre.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Qo=ye(NS=>{"use strict";var Ire=zO(),brt=Ire.FORMAT_LINK,wrt=Ire.DATE_FORMAT_LINK;function Trt(e){var t=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(t?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,brt,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,wrt,"for details on the date formatting syntax."].join(" ")}NS.templateFormatStringDescription=Trt;function OO(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var n=[],i=0;i{"use strict";function H1(e,t){return t?t.d2l(e):e}function Rre(e,t){return t?t.l2d(e):e}function Art(e){return e.x0}function Srt(e){return e.x1}function Mrt(e){return e.y0}function Ert(e){return e.y1}function Dre(e){return e.x0shift||0}function Fre(e){return e.x1shift||0}function zre(e){return e.y0shift||0}function Ore(e){return e.y1shift||0}function T6(e,t){return H1(e.x1,t)+Fre(e)-H1(e.x0,t)-Dre(e)}function A6(e,t,r){return H1(e.y1,r)+Ore(e)-H1(e.y0,r)-zre(e)}function Crt(e,t){return Math.abs(T6(e,t))}function krt(e,t,r){return Math.abs(A6(e,t,r))}function Lrt(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(T6(e,t),2)+Math.pow(A6(e,t,r),2))}function Prt(e,t){return Rre((H1(e.x1,t)+Fre(e)+H1(e.x0,t)+Dre(e))/2,t)}function Irt(e,t,r){return Rre((H1(e.y1,r)+Ore(e)+H1(e.y0,r)+zre(e))/2,r)}function Rrt(e,t,r){return e.type!=="line"?void 0:A6(e,t,r)/T6(e,t)}qre.exports={x0:Art,x1:Srt,y0:Mrt,y1:Ert,slope:Rrt,dx:T6,dy:A6,width:Crt,height:krt,length:Lrt,xcenter:Prt,ycenter:Irt}});var Ure=ye((Srr,Nre)=>{"use strict";var Drt=mc().overrideAll,cb=Gl(),Bre=ec(),Frt=Pd().dash,j1=Ao().extendFlat,zrt=Qo().shapeTexttemplateAttrs,Ort=S6();Nre.exports=Drt({newshape:{visible:j1({},cb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:j1({},cb.legend,{}),legendgroup:j1({},cb.legendgroup,{}),legendgrouptitle:{text:j1({},cb.legendgrouptitle.text,{}),font:Bre({})},legendrank:j1({},cb.legendrank,{}),legendwidth:j1({},cb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:j1({},Frt,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:j1({},cb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:zrt({newshape:!0},{keys:Object.keys(Ort)}),font:Bre({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var Gre=ye((Mrr,Vre)=>{"use strict";var qrt=Pd().dash,Brt=Ao().extendFlat;Vre.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:Brt({},qrt,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var M6=ye((Err,Hre)=>{"use strict";Hre.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var s3=ye((Crr,Zre)=>{"use strict";var qO=ec(),Nrt=BS(),E6=Ch(),jre=Ure(),Wre=Gre(),Urt=M6(),Xre=Ao().extendFlat,C6=qO({editType:"calc"});C6.family.dflt='"Open Sans", verdana, arial, sans-serif';C6.size.dflt=12;C6.color.dflt=E6.defaultLine;Zre.exports={font:C6,title:{text:{valType:"string",editType:"layoutstyle"},font:qO({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:qO({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:Xre(Urt({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:E6.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:E6.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:E6.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:jre.newshape,activeshape:jre.activeshape,newselection:Wre.newselection,activeselection:Wre.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Xre({},Nrt.transition,{editType:"none"})}});var Yre=ye(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var qa=ye(tl=>{"use strict";var l3=G1(),Kre=b6(),Jre=IO(),Vrt=gy(),Grt=qS().addStyleRule,$re=Ao(),Hrt=Gl(),jrt=s3(),Wrt=$re.extendFlat,BO=$re.extendDeepAll;tl.modules={};tl.allCategories={};tl.allTypes=[];tl.subplotsRegistry={};tl.componentsRegistry={};tl.layoutArrayContainers=[];tl.layoutArrayRegexes=[];tl.traceLayoutAttributes={};tl.localeRegistry={};tl.apiMethodRegistry={};tl.collectableSubplotTypes=null;tl.register=function(t){if(tl.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var $rt=e3().timeFormat,uie=Eo(),NO=G1(),X1=r3().mod,f3=hs(),_0=f3.BADNUM,wp=f3.ONEDAY,US=f3.ONEHOUR,W1=f3.ONEMIN,c3=f3.ONESEC,VS=f3.EPOCHJD,my=qa(),iie=e3().utcFormat,Qrt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,eit=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,nie=new Date().getFullYear()-70;function yy(e){return e&&my.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}hh.dateTick0=function(e,t){var r=tit(e,!!t);if(t<2)return r;var n=hh.dateTime2ms(r,e);return n+=wp*(t-1),hh.ms2DateTime(n,0,e)};function tit(e,t){return yy(e)?t?my.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:my.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}hh.dfltRange=function(e){return yy(e)?my.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};hh.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var L6,P6;hh.dateTime2ms=function(e,t){if(hh.isJSDate(e)){var r=e.getTimezoneOffset()*W1,n=(e.getUTCMinutes()-e.getMinutes())*W1+(e.getUTCSeconds()-e.getSeconds())*c3+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var i=3*W1;r=r-i/2+X1(n-r+i/2,i)}return e=Number(e)-r,e>=L6&&e<=P6?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=yy(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.substr(1),t="");var s=a&&t.substr(0,7)==="chinese",l=e.match(s?eit:Qrt);if(!l)return _0;var u=l[1],c=l[3]||"1",f=Number(l[5]||1),h=Number(l[7]||0),d=Number(l[9]||0),v=Number(l[11]||0);if(a){if(u.length===2)return _0;u=Number(u);var _;try{var b=my.getComponentMethod("calendars","getCal")(t);if(s){var p=c.charAt(c.length-1)==="i";c=parseInt(c,10),_=b.newDate(u,b.toMonthIndex(u,c,p),f)}else _=b.newDate(u,Number(c),f)}catch(E){return _0}return _?(_.toJD()-VS)*wp+h*US+d*W1+v*c3:_0}u.length===2?u=(Number(u)+2e3-nie)%100+nie:u=Number(u),c-=1;var C=new Date(Date.UTC(2e3,c,f,h,d));return C.setUTCFullYear(u),C.getUTCMonth()!==c||C.getUTCDate()!==f?_0:C.getTime()+v*c3};L6=hh.MIN_MS=hh.dateTime2ms("-9999");P6=hh.MAX_MS=hh.dateTime2ms("9999-12-31 23:59:59.9999");hh.isDateTime=function(e,t){return hh.dateTime2ms(e,t)!==_0};function u3(e,t){return String(e+Math.pow(10,t)).substr(1)}var k6=90*wp,aie=3*US,oie=5*W1;hh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=L6&&e<=P6))return _0;t||(t=0);var n=Math.floor(X1(e+.05,1)*10),i=Math.round(e-n/10),a,o,s,l,u,c;if(yy(r)){var f=Math.floor(i/wp)+VS,h=Math.floor(X1(e,wp));try{a=my.getComponentMethod("calendars","getCal")(r).fromJD(f).formatDate("yyyy-mm-dd")}catch(d){a=iie("G%Y-%m-%d")(new Date(i))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;o=t=L6+wp&&e<=P6-wp))return _0;var t=Math.floor(X1(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=$rt("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return cie(n,i,a,o,s)};function cie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+u3(t,2)+":"+u3(r,2),(n||i)&&(e+=":"+u3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+u3(i,a)}return e}hh.cleanDate=function(e,t,r){if(e===_0)return t;if(hh.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(yy(r))return NO.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=hh.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!hh.isDateTime(e,r))return NO.error("unrecognized date",e),t;return e};var rit=/%\d?f/g,iit=/%h/g,nit={1:"1",2:"1",3:"2",4:"2"};function sie(e,t,r,n){e=e.replace(rit,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return s});var i=new Date(Math.floor(t+.05));if(e=e.replace(iit,function(){return nit[r("%q")(i)]}),yy(n))try{e=my.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var ait=[59,59.9,59.99,59.999,59.9999];function oit(e,t){var r=X1(e+.05,wp),n=u3(Math.floor(r/US),2)+":"+u3(X1(Math.floor(r/W1),60),2);if(t!=="M"){uie(t)||(t=0);var i=Math.min(X1(e/c3,60),ait[t]),a=(100+i).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}hh.formatDate=function(e,t,r,n,i,a){if(i=yy(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` +`+a.year;else return oit(e,r)+` +`+sie(a.dayMonthYear,e,n,i);return sie(t,e,n,i)};var lie=3*wp;hh.incrementMonth=function(e,t,r){r=yy(r)&&r;var n=X1(e,wp);if(e=Math.round(e-n),r)try{var i=Math.round(e/wp)+VS,a=my.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-VS)*wp+n}catch(l){NO.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+lie);return s.setUTCMonth(s.getUTCMonth()+t)+n-lie};hh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,l=yy(t)&&my.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";hie.exports=function(t){return t}});var I6=ye(_y=>{"use strict";var sit=Eo(),lit=G1(),uit=GS(),cit=hs().BADNUM,UO=1e-9;_y.findBin=function(e,t,r){if(sit(t.start))return r?Math.ceil((e-t.start)/t.size-UO)-1:Math.floor((e-t.start)/t.size+UO);var n=0,i=t.length,a=0,o=i>1?(t[i-1]-t[0])/(i-1):1,s,l;for(o>=0?l=r?fit:hit:l=r?vit:dit,e+=o*UO*(r?-1:1)*(o>=0?1:-1);n90&&lit.log("Long binary search..."),n-1};function fit(e,t){return et}function vit(e,t){return e>=t}_y.sorterAsc=function(e,t){return e-t};_y.sorterDes=function(e,t){return t-e};_y.distinctVals=function(e){var t=e.slice();t.sort(_y.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===cit;r--);for(var n=t[r]-t[0]||1,i=n/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var l=t[s],u=l-o;o===void 0?(a.push(l),o=l):u>i&&(n=Math.min(n,u),a.push(l),o=l)}return{vals:a,minDiff:n}};_y.roundUp=function(e,t,r){for(var n=0,i=t.length-1,a,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;n0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()};_y.findIndexOfMin=function(e,t){t=t||uit;for(var r=1/0,n,i=0;i{"use strict";die.exports=function(t){return Object.keys(t).sort()}});var vie=ye(dh=>{"use strict";var HS=Eo(),pit=vv().isArrayOrTypedArray;dh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),HS(t)||(t=!1),pit(r[0])){for(a=new Array(n),i=0;ie.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var _ie=ye((Orr,yie)=>{"use strict";var pie=r3(),VO=pie.mod,git=pie.modHalf,jS=Math.PI,Y1=2*jS;function mit(e){return e/180*jS}function yit(e){return e/jS*180}function GO(e){return Math.abs(e[1]-e[0])>Y1-1e-14}function gie(e,t){return git(t-e,Y1)}function _it(e,t){return Math.abs(gie(e,t))}function mie(e,t){if(GO(t))return!0;var r,n;t[0]n&&(n+=Y1);var i=VO(e,Y1),a=i+Y1;return i>=r&&i<=n||a>=r&&a<=n}function xit(e,t,r,n){if(!mie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function HO(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=GO([r,n]),l,u,c,f,h;s?(l=0,u=jS,c=Y1):r{"use strict";fb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};fb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};fb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};fb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};fb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};fb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Tie=ye(hb=>{"use strict";var jO=r3().mod;hb.segmentsIntersect=wie;function wie(e,t,r,n,i,a,o,s){var l=r-e,u=i-e,c=o-i,f=n-t,h=a-t,d=s-a,v=l*d-c*f;if(v===0)return null;var _=(u*d-c*h)/v,b=(u*f-l*h)/v;return b<0||b>1||_<0||_>1?null:{x:e+l*_,y:t+f*_}}hb.segmentDistance=function(t,r,n,i,a,o,s,l){if(wie(t,r,n,i,a,o,s,l))return 0;var u=n-t,c=i-r,f=s-a,h=l-o,d=u*u+c*c,v=f*f+h*h,_=Math.min(R6(u,c,d,a-t,o-r),R6(u,c,d,s-t,l-r),R6(f,h,v,t-a,r-o),R6(f,h,v,n-a,i-o));return Math.sqrt(_)};function R6(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}else{var l=n*t-i*e;return l*l/r}}var D6,WO,bie;hb.getTextLocation=function(t,r,n,i){if((t!==WO||i!==bie)&&(D6={},WO=t,bie=i),D6[n])return D6[n];var a=t.getPointAtLength(jO(n-i/2,r)),o=t.getPointAtLength(jO(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),l=t.getPointAtLength(jO(n,r)),u=(l.x*4+a.x+o.x)/6,c=(l.y*4+a.y+o.y)/6,f={x:u,y:c,theta:s};return D6[n]=f,f};hb.clearLocationCache=function(){WO=null};hb.getVisibleSegment=function(t,r,n){var i=r.left,a=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),c=u,f,h;function d(_){var b=t.getPointAtLength(_);_===0?f=b:_===u&&(h=b);var p=b.xa?b.x-a:0,C=b.ys?b.y-s:0;return Math.sqrt(p*p+C*C)}for(var v=d(l);v;){if(l+=v+n,l>c)return;v=d(l)}for(v=d(c);v;){if(c-=v+n,l>c)return;v=d(c)}return{min:l,max:c,len:c-l,total:u,isClosed:l===0&&c===u&&Math.abs(f.x-h.x)<.1&&Math.abs(f.y-h.y)<.1}};hb.findPointOnPath=function(t,r,n,i){i=i||{};for(var a=i.pathLength||t.getTotalLength(),o=i.tolerance||.001,s=i.iterationLimit||30,l=t.getPointAtLength(0)[n]>t.getPointAtLength(a)[n]?-1:1,u=0,c=0,f=a,h,d,v;u0?f=h:c=h,u++}return d}});var F6=ye(WS=>{"use strict";var xy={};WS.throttle=function(t,r,n){var i=xy[t],a=Date.now();if(!i){for(var o in xy)xy[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};WS.done=function(e){var t=xy[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};WS.clear=function(e){if(e)Aie(xy[e]),delete xy[e];else for(var t in xy)WS.clear(t)};function Aie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Mie=ye((Urr,Sie)=>{"use strict";Sie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Eie=ye((Vrr,z6)=>{"use strict";z6.exports=XO;z6.exports.isMobile=XO;z6.exports.default=XO;var Ait=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Sit=/CrOS/,Mit=/android|ipad|playbook|silk/i;function XO(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=Ait.test(t)&&!Sit.test(t)||!!e.tablet&&Mit.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var kie=ye((Grr,Cie)=>{"use strict";var Eit=Eo(),Cit=Eie();Cie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=kit(),typeof r!="string")return!0;var n=Cit({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var i=r.split(" "),a=1;a-1;s--){var l=i[s];if(l.substr(0,8)==="Version/"){var u=l.substr(8).split(".")[0];if(Eit(u)&&(u=+u),u>=13)return!0}}}return n};function kit(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Pie=ye((Hrr,Lie)=>{"use strict";var Lit=Oa();Lie.exports=function(t,r,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each(function(o){o[0][a]=Lit.select(this)}),i}});var Rie=ye((jrr,Iie)=>{"use strict";var Pit=qa();Iie.exports=function(t,r){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var l=s[r];if(l)return l}a=Pit.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return r}});var ZO=ye((Wrr,Die)=>{"use strict";Die.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";Fie.exports=function(t){for(var r=Dit(t)?Rit:Iit,n=[],i=0;i{"use strict";Oie.exports=function(t,r){if(!r)return t;var n=1/Math.abs(r),i=n>1?(n*t+n*r)/n:t+r,a=String(i).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var l=parseFloat(i).toPrecision(12);l.indexOf("e+")===-1&&(i=+l)}}return i}});var Nie=ye((Yrr,Bie)=>{"use strict";var Fit=Eo(),zit=hs().BADNUM,Oit=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Bie.exports=function(t){return typeof t=="string"&&(t=t.replace(Oit,"")),Fit(t)?Number(t):zit}});var Dr=ye((Krr,Qie)=>{"use strict";var XS=Oa(),qit=e3().utcFormat,Bit=yO().format,Wie=Eo(),Xie=hs(),Zie=Xie.FP_SAFE,Nit=-Zie,Uie=Xie.BADNUM,Si=Qie.exports={};Si.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var Vie={};Si.warnBadFormat=function(e){var t=String(e);Vie[t]||(Vie[t]=1,Si.warn('encountered bad format: "'+t+'"'))};Si.noFormat=function(e){return String(e)};Si.numberFormat=function(e){var t;try{t=Bit(Si.adjustFormat(e))}catch(r){return Si.warnBadFormat(e),Si.noFormat}return t};Si.nestedProperty=kS();Si.keyedContainer=Ree();Si.relativeAttr=Fee();Si.isPlainObject=gy();Si.toLogRange=g6();Si.relinkPrivateKeys=Bee();var K1=vv();Si.isArrayBuffer=K1.isArrayBuffer;Si.isTypedArray=K1.isTypedArray;Si.isArrayOrTypedArray=K1.isArrayOrTypedArray;Si.isArray1D=K1.isArray1D;Si.ensureArray=K1.ensureArray;Si.concat=K1.concat;Si.maxRowLength=K1.maxRowLength;Si.minRowLength=K1.minRowLength;var Yie=r3();Si.mod=Yie.mod;Si.modHalf=Yie.modHalf;var J1=nte();Si.valObjectMeta=J1.valObjectMeta;Si.coerce=J1.coerce;Si.coerce2=J1.coerce2;Si.coerceFont=J1.coerceFont;Si.coercePattern=J1.coercePattern;Si.coerceHoverinfo=J1.coerceHoverinfo;Si.coerceSelectionMarkerOpacity=J1.coerceSelectionMarkerOpacity;Si.validate=J1.validate;var jp=fie();Si.dateTime2ms=jp.dateTime2ms;Si.isDateTime=jp.isDateTime;Si.ms2DateTime=jp.ms2DateTime;Si.ms2DateTimeLocal=jp.ms2DateTimeLocal;Si.cleanDate=jp.cleanDate;Si.isJSDate=jp.isJSDate;Si.formatDate=jp.formatDate;Si.incrementMonth=jp.incrementMonth;Si.dateTick0=jp.dateTick0;Si.dfltRange=jp.dfltRange;Si.findExactDates=jp.findExactDates;Si.MIN_MS=jp.MIN_MS;Si.MAX_MS=jp.MAX_MS;var db=I6();Si.findBin=db.findBin;Si.sorterAsc=db.sorterAsc;Si.sorterDes=db.sorterDes;Si.distinctVals=db.distinctVals;Si.roundUp=db.roundUp;Si.sort=db.sort;Si.findIndexOfMin=db.findIndexOfMin;Si.sortObjectKeys=Z1();var by=vie();Si.aggNums=by.aggNums;Si.len=by.len;Si.mean=by.mean;Si.geometricMean=by.geometricMean;Si.median=by.median;Si.midRange=by.midRange;Si.variance=by.variance;Si.stdev=by.stdev;Si.interp=by.interp;var _g=w6();Si.init2dArray=_g.init2dArray;Si.transposeRagged=_g.transposeRagged;Si.dot=_g.dot;Si.translationMatrix=_g.translationMatrix;Si.rotationMatrix=_g.rotationMatrix;Si.rotationXYMatrix=_g.rotationXYMatrix;Si.apply3DTransform=_g.apply3DTransform;Si.apply2DTransform=_g.apply2DTransform;Si.apply2DTransform2=_g.apply2DTransform2;Si.convertCssMatrix=_g.convertCssMatrix;Si.inverseTransformMatrix=_g.inverseTransformMatrix;var vm=_ie();Si.deg2rad=vm.deg2rad;Si.rad2deg=vm.rad2deg;Si.angleDelta=vm.angleDelta;Si.angleDist=vm.angleDist;Si.isFullCircle=vm.isFullCircle;Si.isAngleInsideSector=vm.isAngleInsideSector;Si.isPtInsideSector=vm.isPtInsideSector;Si.pathArc=vm.pathArc;Si.pathSector=vm.pathSector;Si.pathAnnulus=vm.pathAnnulus;var d3=xie();Si.isLeftAnchor=d3.isLeftAnchor;Si.isCenterAnchor=d3.isCenterAnchor;Si.isRightAnchor=d3.isRightAnchor;Si.isTopAnchor=d3.isTopAnchor;Si.isMiddleAnchor=d3.isMiddleAnchor;Si.isBottomAnchor=d3.isBottomAnchor;var v3=Tie();Si.segmentsIntersect=v3.segmentsIntersect;Si.segmentDistance=v3.segmentDistance;Si.getTextLocation=v3.getTextLocation;Si.clearLocationCache=v3.clearLocationCache;Si.getVisibleSegment=v3.getVisibleSegment;Si.findPointOnPath=v3.findPointOnPath;var B6=Ao();Si.extendFlat=B6.extendFlat;Si.extendDeep=B6.extendDeep;Si.extendDeepAll=B6.extendDeepAll;Si.extendDeepNoArrays=B6.extendDeepNoArrays;var YO=G1();Si.log=YO.log;Si.warn=YO.warn;Si.error=YO.error;var Uit=n3();Si.counterRegex=Uit.counter;var KO=F6();Si.throttle=KO.throttle;Si.throttleDone=KO.done;Si.clearThrottle=KO.clear;var xg=qS();Si.getGraphDiv=xg.getGraphDiv;Si.isPlotDiv=xg.isPlotDiv;Si.removeElement=xg.removeElement;Si.addStyleRule=xg.addStyleRule;Si.addRelatedStyleRule=xg.addRelatedStyleRule;Si.deleteRelatedStyleRule=xg.deleteRelatedStyleRule;Si.setStyleOnHover=xg.setStyleOnHover;Si.getFullTransformMatrix=xg.getFullTransformMatrix;Si.getElementTransformMatrix=xg.getElementTransformMatrix;Si.getElementAndAncestors=xg.getElementAndAncestors;Si.equalDomRects=xg.equalDomRects;Si.clearResponsive=Mie();Si.preserveDrawingBuffer=kie();Si.makeTraceGroups=Pie();Si._=Rie();Si.notifier=kO();Si.filterUnique=ZO();Si.filterVisible=zie();Si.pushUnique=IO();Si.increment=qie();Si.cleanNumber=Nie();Si.ensureNumber=function(t){return Wie(t)?(t=Number(t),t>Zie||t=t?!1:Wie(e)&&e>=0&&e%1===0};Si.noop=b6();Si.identity=GS();Si.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};Si.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};Si.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(Si.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};Si.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r};Si.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,i=2*t-1,a=new Array(i),o=new Array(r),s,l,u,c;for(s=0;s=n&&(u-=n*Math.floor(u/n)),u<0?u=-1-u:u>=r&&(u=n-1-u),c+=e[u]*a[l];o[s]=c}return o};Si.syncOrAsync=function(e,t,r){var n,i;function a(){return Si.syncOrAsync(e,t,r)}for(;e.length;)if(i=e.splice(0,1)[0],n=i(t),n&&n.then)return n.then(a);return r&&r(t)};Si.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};Si.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};Si.fillArray=function(e,t,r,n){if(n=n||Si.identity,Si.isArrayOrTypedArray(e))for(var i=0;iHit.test(window.navigator.userAgent);var jit=/Firefox\/(\d+)\.\d+/;Si.getFirefoxVersion=function(){var e=jit.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};Si.isD3Selection=function(e){return e instanceof XS.selection};Si.ensureSingle=function(e,t,r,n){var i=e.select(t+(r?"."+r:""));if(i.size())return i;var a=e.append(t);return r&&a.classed(r,!0),n&&a.call(n),a};Si.ensureSingleById=function(e,t,r,n){var i=e.select(t+"#"+r);if(i.size())return i;var a=e.append(t).attr("id",r);return n&&a.call(n),a};Si.objectFromPath=function(e,t){for(var r=e.split("."),n,i=n={},a=0;a1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+l};Si.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var $ie=/^\w*$/;Si.templateString=function(e,t){var r={};return e.replace(Si.TEMPLATE_STRING_REGEX,function(n,i){var a;return $ie.test(i)?a=t[i]:(r[i]=r[i]||Si.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var Zit={max:10,count:0,name:"hovertemplate"};Si.hovertemplateString=function(){return JO.apply(Zit,arguments)};var Yit={max:10,count:0,name:"texttemplate"};Si.texttemplateString=function(){return JO.apply(Yit,arguments)};var Kit=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Jit(e){var t=e.match(Kit);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var $it={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Si.texttemplateStringForShapes=function(){return JO.apply($it,arguments)};var Gie=/^[:|\|]/;function JO(e,t,r){var n=this,i=arguments;return t||(t={}),e.replace(Si.TEMPLATE_STRING_REGEX,function(a,o,s){var l=o==="xother"||o==="yother",u=o==="_xother"||o==="_yother",c=o==="_xother_"||o==="_yother_",f=o==="xother_"||o==="yother_",h=l||u||f||c,d=o;(u||c)&&(d=d.substring(1)),(f||c)&&(d=d.substring(0,d.length-1));var v=null,_=null;if(n.parseMultDiv){var b=Jit(d);d=b.key,v=b.op,_=b.number}var p;if(h){if(p=t[d],p===void 0)return""}else{var C,E;for(E=3;E=q6&&o<=Hie,u=s>=q6&&s<=Hie;if(l&&(n=10*n+o-q6),u&&(i=10*i+s-q6),!l||!u){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var h3=2e9;Si.seedPseudoRandom=function(){h3=2e9};Si.pseudoRandom=function(){var e=h3;return h3=(69069*h3+1)%4294967296,Math.abs(h3-e)<429496729?Si.pseudoRandom():h3/4294967296};Si.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=Si.extractOption(e,t,"htx","hovertext");if(Si.isValidTextValue(i))return n(i);var a=Si.extractOption(e,t,"tx","text");if(Si.isValidTextValue(a))return n(a)};Si.isValidTextValue=function(e){return e||e===0};Si.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(u=1):u=0,Si.strTranslate(i-u*(r+o),a-u*(n+s))+Si.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+n)+")":"")};Si.setTransormAndDisplay=function(e,t){e.attr("transform",Si.getTextTransform(t)),e.style("display",t.scale?null:"none")};Si.ensureUniformFontSize=function(e,t){var r=Si.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};Si.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)};Si.bigFont=function(e){return Math.round(1.2*e)};var jie=Si.getFirefoxVersion(),Qit=jie!==null&&jie<86;Si.getPositionFromD3Event=function(){return Qit?[XS.event.layerX,XS.event.layerY]:[XS.event.offsetX,XS.event.offsetY]}});var rne=ye(()=>{"use strict";var ent=Dr(),ene={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for($O in ene)tne=$O.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),ent.addStyleRule(tne,ene[$O]);var tne,$O});var QO=ye((Qrr,ine)=>{ine.exports=!0});var tq=ye((eir,nne)=>{"use strict";var tnt=QO(),eq;typeof window.matchMedia=="function"?eq=!window.matchMedia("(hover: none)").matches:eq=tnt;nne.exports=eq});var vb=ye((tir,rq)=>{"use strict";var p3=typeof Reflect=="object"?Reflect:null,ane=p3&&typeof p3.apply=="function"?p3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},N6;p3&&typeof p3.ownKeys=="function"?N6=p3.ownKeys:Object.getOwnPropertySymbols?N6=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:N6=function(t){return Object.getOwnPropertyNames(t)};function rnt(e){console&&console.warn&&console.warn(e)}var sne=Number.isNaN||function(t){return t!==t};function Jc(){Jc.init.call(this)}rq.exports=Jc;rq.exports.once=ont;Jc.EventEmitter=Jc;Jc.prototype._events=void 0;Jc.prototype._eventsCount=0;Jc.prototype._maxListeners=void 0;var one=10;function U6(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Jc,"defaultMaxListeners",{enumerable:!0,get:function(){return one},set:function(e){if(typeof e!="number"||e<0||sne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");one=e}});Jc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Jc.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||sne(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function lne(e){return e._maxListeners===void 0?Jc.defaultMaxListeners:e._maxListeners}Jc.prototype.getMaxListeners=function(){return lne(this)};Jc.prototype.emit=function(t){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[t];if(l===void 0)return!1;if(typeof l=="function")ane(l,this,r);else for(var u=l.length,c=dne(l,u),n=0;n0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,rnt(s)}return e}Jc.prototype.addListener=function(t,r){return une(this,t,r,!1)};Jc.prototype.on=Jc.prototype.addListener;Jc.prototype.prependListener=function(t,r){return une(this,t,r,!0)};function int(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function cne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=int.bind(n);return i.listener=r,n.wrapFn=i,i}Jc.prototype.once=function(t,r){return U6(r),this.on(t,cne(this,t,r)),this};Jc.prototype.prependOnceListener=function(t,r){return U6(r),this.prependListener(t,cne(this,t,r)),this};Jc.prototype.removeListener=function(t,r){var n,i,a,o,s;if(U6(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():nnt(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};Jc.prototype.off=Jc.prototype.removeListener;Jc.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(t,r[i]);return this};function fne(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?ant(i):dne(i,i.length)}Jc.prototype.listeners=function(t){return fne(this,t,!0)};Jc.prototype.rawListeners=function(t){return fne(this,t,!1)};Jc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):hne.call(e,t)};Jc.prototype.listenerCount=hne;function hne(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Jc.prototype.eventNames=function(){return this._eventsCount>0?N6(this._events):[]};function dne(e,t){for(var r=new Array(t),n=0;n{"use strict";var iq=vb().EventEmitter,lnt={init:function(e){if(e._ev instanceof iq)return e;var t=new iq,r=new iq;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,i){t.emit(n,i),r.emit(n,i)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var n,i=e._ev;if(!i)return;var a=i._events[t];if(!a)return;function o(l){if(l.listener){if(i.removeListener(t,l.listener),!l.fired)return l.fired=!0,l.listener.apply(i,[r])}else return l.apply(i,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var gne=Dr(),unt=ub().dfltConfig;function cnt(e,t){for(var r=[],n,i=0;iunt.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};wy.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};wy.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};wy.undo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n{"use strict";_ne.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var _3=ye(Yh=>{"use strict";var x0=qa(),ZS=Dr(),G6=Gl(),aq=s3(),fnt=nq(),hnt=BS(),dnt=ub().configAttributes,xne=mc(),bg=ZS.extendDeepAll,m3=ZS.isPlainObject,vnt=ZS.isArrayOrTypedArray,H6=ZS.nestedProperty,pnt=ZS.valObjectMeta,oq="_isSubplotObj",j6="_isLinkedToArray",gnt="_arrayAttrRegexps",wne="_deprecated",sq=[oq,j6,gnt,wne];Yh.IS_SUBPLOT_OBJ=oq;Yh.IS_LINKED_TO_ARRAY=j6;Yh.DEPRECATED=wne;Yh.UNDERSCORE_ATTRS=sq;Yh.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=ynt(t)}),{defs:{valObjects:pnt,metaKeys:sq.concat(["description","role","editType","impliedEdits"]),editType:{traces:xne.traces,layout:xne.layout},impliedEdits:{}},traces:e,layout:_nt(),frames:xnt(),animation:y3(hnt),config:y3(dnt)}};Yh.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(sq.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!Yh.isValObject(o)&&m3(o)&&a!=="impliedEdits"&&Yh.crawl(o,t,i+1,s)}})};Yh.isValObject=function(e){return e&&e.valType!==void 0};Yh.findArrayAttributes=function(e){var t=[],r=[],n=[],i,a;function o(l,u,c,f){r=r.slice(0,f).concat([u]),n=n.slice(0,f).concat([l&&l._isLinkedToArray]);var h=l&&(l.valType==="data_array"||l.arrayOk===!0)&&!(r[f-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&s(i,0,"")}function s(l,u,c){var f=l[r[u]],h=c+r[u];if(u===r.length-1)vnt(f)&&t.push(a+h);else if(n[u]){if(Array.isArray(f))for(var d=0;d=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!V6(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function V6(e){return e===Math.round(e)&&e>=0}function ynt(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=bg({},G6),a=bg({},t.attributes);Yh.crawl(a,function(l,u,c,f,h){H6(i,h).set(void 0),l===void 0&&H6(a,h).set(void 0)}),bg(n,i),x0.traceIs(e,"noOpacity")&&delete n.opacity,x0.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),x0.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),t.selectPoints||delete n.selectedpoints,bg(n,a),r.attributes&&bg(n,r.attributes),n.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:y3(n)};if(t.layoutAttributes){var s={};bg(s,t.layoutAttributes),o.layoutAttributes=y3(s)}return t.animatable||Yh.crawl(o,function(l){Yh.isValObject(l)&&"anim"in l&&delete l.anim}),o}function _nt(){var e={},t,r;bg(e,aq);for(t in x0.subplotsRegistry)if(r=x0.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var n=0;n{"use strict";var x3=Dr(),Snt=Gl(),$1="templateitemname",lq={name:{valType:"string",editType:"none"}};lq[$1]={valType:"string",editType:"calc"};pb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=lq.name,t[$1]=lq[$1],t};pb.traceTemplater=function(e){var t={},r,n;for(r in e)n=e[r],Array.isArray(n)&&n.length&&(t[r]=0);function i(a){r=x3.coerce(a,{},Snt,"type");var o={type:r,_template:null};if(r in t){n=e[r];var s=t[r]%n.length;t[r]++,o._template=n[s]}return o}return{newTrace:i}};pb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);x3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};pb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Sne(t)],a=n&&n[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(u){var c={name:u.name,_input:u},f=c[$1]=u[$1];if(!Ane(f))return c._template=i,c;for(var h=0;h=n&&(r._input||{})._templateitemname;a&&(i=n);var o=t+"["+i+"]",s;function l(){s={},a&&(s[o]={},s[o][$1]=a)}l();function u(d,v){s[d]=v}function c(d,v){a?x3.nestedProperty(s[o],d).set(v):s[o+"."+d]=v}function f(){var d=s;return l(),d}function h(d,v){d&&c(d,v);var _=f();for(var b in _)x3.nestedProperty(e,b).set(_[b])}return{modifyBase:u,modifyItem:c,getUpdateObj:f,applyUpdate:h}}});var hd=ye((sir,Mne)=>{"use strict";var YS=n3().counter;Mne.exports={idRegex:{x:YS("x","( domain)?"),y:YS("y","( domain)?")},attrRegex:YS("[xy]axis"),xAxisMatch:YS("xaxis"),yAxisMatch:YS("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var hf=ye(Tp=>{"use strict";var Mnt=qa(),uq=hd();Tp.id2name=function(t){if(!(typeof t!="string"||!t.match(uq.AX_ID_PATTERN))){var r=t.split(" ")[0].substr(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Tp.name2id=function(t){if(t.match(uq.AX_NAME_PATTERN)){var r=t.substr(5);return r==="1"&&(r=""),t.charAt(0)+r}};Tp.cleanId=function(t,r,n){var i=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(uq.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(i&&!n)){var a=t.split(" ")[0].substr(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(i&&n?" domain":"")}};Tp.list=function(e,t,r){var n=e._fullLayout;if(!n)return[];var i=Tp.listIds(e,t),a=new Array(i.length),o;for(o=0;on?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)};Tp.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Ene(e,t){if(t&&t.length){for(var r=0;r{"use strict";function Ent(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function Cnt(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Cne.exports={clearOutlineControllers:Ent,clearOutline:Cnt}});var W6=ye((cir,kne)=>{"use strict";kne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Id=ye(Z6=>{"use strict";var X6=qa(),fir=hd().SUBPLOT_PATTERN;Z6.getSubplotCalcData=function(e,t,r){var n=X6.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var knt=qa(),b3=Dr();gb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=gb.hasSimpleAPICommandBindings(e,r,i.lookupTable);if(t&&t._commandObserver){if(o)return i;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,i}if(o){Lne(e,o,i.cache),i.check=function(){if(a){var c=Lne(e,o,i.cache);return c.changed&&n&&i.lookupTable[c.value]!==void 0&&(i.disable(),Promise.resolve(n({value:c.value,type:o.type,prop:o.prop,traces:o.traces,index:i.lookupTable[c.value]})).then(i.enable,i.enable)),c.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l0?".":"")+i;b3.isPlainObject(a)?cq(a,t,o,n+1):t(o,i,a)}})}});var Mc=ye((vir,Xne)=>{"use strict";var Nne=Oa(),Pnt=e3().timeFormatLocale,Int=yO().formatLocale,KS=Eo(),Rnt=_O(),Xl=qa(),Une=_3(),Dnt=pl(),ja=Dr(),Vne=Ca(),Dne=hs().BADNUM,Ap=hf(),Fnt=Q1().clearOutline,znt=W6(),fq=BS(),Ont=nq(),qnt=Id().getModuleCalcData,Fne=ja.relinkPrivateKeys,mb=ja._,xa=Xne.exports={};ja.extendFlat(xa,Xl);xa.attributes=Gl();xa.attributes.type.values=xa.allTypes;xa.fontAttrs=ec();xa.layoutAttributes=s3();var K6=Rne();xa.executeAPICommand=K6.executeAPICommand;xa.computeAPICommandBindings=K6.computeAPICommandBindings;xa.manageCommandObserver=K6.manageCommandObserver;xa.hasSimpleAPICommandBindings=K6.hasSimpleAPICommandBindings;xa.redrawText=function(e){return e=ja.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Xl.getComponentMethod("annotations","draw")(e),Xl.getComponentMethod("legend","draw")(e),Xl.getComponentMethod("colorbar","draw")(e),t(xa.previousPromises(e)))},300)})};xa.resize=function(e){e=ja.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||ja.isHidden(e))&&i(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ja.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Xl.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r};xa.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};xa.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=ja.ensureSingle(t._paper,"text","js-plot-link-container",function(l){l.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Vne.defaultLine,"pointer-events":"all"}).each(function(){var u=Nne.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var a=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Bnt(e,a),o.text(a.text()&&s.text()?" - ":"")}};function Bnt(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){xa.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}xa.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=Nne.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),i=n.append("input").attr({type:"text",name:"data"});return i.node().value=xa.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var Nnt=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Unt=["year","month","dayMonth","dayMonthYear"];xa.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var i=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],c=e._context||{},f;e._transitionData||xa.createTransitionData(e),i._dfltTitle={plot:mb(e,"Click to enter Plot title"),subtitle:mb(e,"Click to enter Plot subtitle"),x:mb(e,"Click to enter X axis title"),y:mb(e,"Click to enter Y axis title"),colorbar:mb(e,"Click to enter Colorscale title"),annotation:mb(e,"new text")},i._traceWord=mb(e,"trace");var h=zne(e,Nnt);if(i._mapboxAccessToken=c.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,v=n.height;xa.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=v),xa.sanitizeMargins(i)}else{xa.supplyLayoutGlobalDefaults(a,i,h);var _=!a.width||!a.height,b=i.autosize,p=c.autosizable,C=_&&(b||p);C?xa.plotAutoSize(e,a,i):_&&xa.sanitizeMargins(i),!b&&_&&(a.width=i.width,a.height=i.height)}i._d3locale=Hnt(h,i.separators),i._extraFormat=zne(e,Unt),i._initialAutoSizeIsDone=!0,i._dataLength=l.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var E=i._subplots=Gnt(),A=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=Vnt(o,l),xa.supplyDataDefaults(l,s,a,i);var x=Object.keys(A.x),k=Object.keys(A.y);if(x.length>1&&k.length>1){for(Xl.getComponentMethod("grid","sizeDefaults")(a,i),f=0;f15&&k.length>15&&i.shapes.length===0&&i.images.length===0,xa.linkSubplots(s,i,o,n),xa.cleanPlot(s,i,o,n);var z=!!(n._has&&n._has("cartesian")),O=!!(i._has&&i._has("cartesian")),V=z,G=O;V&&!G?n._bgLayer.remove():G&&!V&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&Fnt({_fullLayout:n}),jnt(s,i),Fne(i,n),Xl.getComponentMethod("colorscale","crossTraceDefaults")(s,i),i._preGUI||(i._preGUI={}),i._tracePreGUI||(i._tracePreGUI={});var Z=i._tracePreGUI,H={},N;for(N in Z)H[N]="old";for(f=0;f0){var c=1-2*a;o=Math.round(c*o),s=Math.round(c*s)}}var f=xa.layoutAttributes.width.min,h=xa.layoutAttributes.height.min;o1,v=!r.height&&Math.abs(n.height-s)>1;(v||d)&&(d&&(n.width=o),v&&(n.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),xa.sanitizeMargins(n)};xa.supplyLayoutModuleDefaults=function(e,t,r,n){var i=Xl.componentsRegistry,a=t._basePlotModules,o,s,l,u=Xl.subplotsRegistry.cartesian;for(o in i)l=i[o],l.includeBasePlot&&l.includeBasePlot(e,t);a.length||a.push(u),t._has("cartesian")&&(Xl.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var c in t._subplots)t._subplots[c].sort(ja.subplotSort);for(s=0;s1&&(r.l/=b,r.r/=b)}if(h){var p=(r.t+r.b)/h;p>1&&(r.t/=p,r.b/=p)}var C=r.xl!==void 0?r.xl:r.x,E=r.xr!==void 0?r.xr:r.x,A=r.yt!==void 0?r.yt:r.y,L=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:C,size:r.l+_},r:{val:E,size:r.r+_},b:{val:L,size:r.b+_},t:{val:A,size:r.t+_}},v[t]=1}if(!n._replotting)return xa.doAutoMargin(e)}};function Xnt(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Ap.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}xa.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),Gne(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=ja.extendFlat({},i),l=a.l,u=a.r,c=a.t,f=a.b,h=t._pushmargin,d=t._pushmarginIds,v=t.minreducedwidth,_=t.minreducedheight;if(a.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var p=e._fullLayout._reservedMargin;for(var C in p)for(var E in p[C]){var A=p[C][E];o[E]=Math.max(o[E],A)}h.base={l:{val:0,size:l},r:{val:1,size:u},t:{val:1,size:c},b:{val:0,size:f}};for(var L in o){var x=0;for(var k in h)k!=="base"&&KS(h[k][L].size)&&(x=h[k][L].size>x?h[k][L].size:x);var M=Math.max(0,a[L]-x);o[L]=Math.max(0,o[L]-M)}for(var g in h){var P=h[g].l||{},T=h[g].b||{},z=P.val,O=P.size,V=T.val,G=T.size,Z=r-o.r-o.l,H=n-o.t-o.b;for(var N in h){if(KS(O)&&h[N].r){var j=h[N].r.val,re=h[N].r.size;if(j>z){var oe=(O*j+(re-Z)*z)/(j-z),_e=(re*(1-z)+(O-Z)*(1-j))/(j-z);oe+_e>l+u&&(l=oe,u=_e)}}if(KS(G)&&h[N].t){var Me=h[N].t.val,ke=h[N].t.size;if(Me>V){var me=(G*Me+(ke-H)*V)/(Me-V),ie=(ke*(1-V)+(G-H)*(1-Me))/(Me-V);me+ie>f+c&&(f=me,c=ie)}}}}}var Se=ja.constrain(r-a.l-a.r,Hne,v),Le=ja.constrain(n-a.t-a.b,jne,_),Ae=Math.max(0,r-Se),De=Math.max(0,n-Le);if(Ae){var Pe=(l+u)/Ae;Pe>1&&(l/=Pe,u/=Pe)}if(De){var ge=(f+c)/De;ge>1&&(f/=ge,c/=ge)}if(i.l=Math.round(l)+o.l,i.r=Math.round(u)+o.r,i.t=Math.round(c)+o.t,i.b=Math.round(f)+o.b,i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&(xa.didMarginChange(s,i)||Xnt(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Fe=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};xa.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&xa.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(ja.isPlainObject(h)){var v={},_;return Object.keys(h).sort().forEach(function(E){if(["_","["].indexOf(E.charAt(0))===-1){if(typeof h[E]=="function"){d&&(v[E]="_function");return}if(r==="keepdata"){if(E.substr(E.length-3)==="src")return}else if(r==="keepstream"){if(_=h[E+"src"],typeof _=="string"&&_.indexOf(":")>0&&!ja.isPlainObject(h.stream))return}else if(r!=="keepall"&&(_=h[E+"src"],typeof _=="string"&&_.indexOf(":")>0))return;v[E]=u(h[E],d)}}),v}var b=Array.isArray(h),p=ja.isTypedArray(h);if((b||p)&&h.dtype&&h.shape){var C=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:ja.isArrayBuffer(C)?Rnt.encode(C):C},d)}return b?h.map(function(E){return u(E,d)}):p?ja.simpleMap(h,ja.identity):ja.isJSDate(h)?ja.ms2DateTimeLocal(+h):h}var c={data:(o||[]).map(function(h){var d=u(h);return t&&delete d.fit,d})};if(!t&&(c.layout=u(s),i)){var f=s._size;c.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(c.frames=u(l)),a&&(c.config=u(e._context,!0)),n==="object"?c:JSON.stringify(c)};xa.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Xl.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function v(){return h++,function(){d++,!n&&d===h&&s(f)}}r.runFn(v),setTimeout(v())})}function s(f){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Xl.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(f)}function l(){if(e._transitionData)return e._transitioning=!1,i(e._transitionData._interruptCallbacks)}var u=[xa.previousPromises,l,r.prepareFn,xa.rehover,xa.reselect,o],c=ja.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve()),c.then(function(){return e})}xa.doCalcdata=function(e,t){var r=Ap.list(e),n=e._fullData,i=e._fullLayout,a,o,s,l,u=new Array(n.length),c=(e.calcdata||[]).slice();for(e.calcdata=u,i._numBoxes=0,i._numViolins=0,i._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,i._piecolormap={},i._sunburstcolormap={},i._treemapcolormap={},i._iciclecolormap={},i._funnelareacolormap={},s=0;s=0;l--)if(L[l].enabled){a._indexToPoints=L[l]._indexToPoints;break}o&&o.calc&&(A=o.calc(e,a))}(!Array.isArray(A)||!A[0])&&(A=[{x:Dne,y:Dne}]),A[0].t||(A[0].t={}),A[0].trace=a,u[C]=A}}for(qne(r,n,i),s=0;s{"use strict";yb.xmlns="http://www.w3.org/2000/xmlns/";yb.svg="http://www.w3.org/2000/svg";yb.xlink="http://www.w3.org/1999/xlink";yb.svgAttrs={xmlns:yb.svg,"xmlns:xlink":yb.xlink}});var Kh=ye((gir,Zne)=>{"use strict";Zne.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ru=ye(b0=>{"use strict";var kh=Oa(),Ty=Dr(),Jnt=Ty.strTranslate,hq=Wp(),$nt=Kh().LINE_SPACING,Qnt=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(Qnt),a=kh.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var l=hat(e.node(),n);l&&e.style("pointer-events","all"),b0.positionText(e),r&&r.call(e)}return i?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),c={fontSize:u};iat(i[2],c,function(f,h,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var v=f&&f.select("svg");if(!v||!v.node()){s(),l();return}var _=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});_.node().appendChild(v.node()),h&&h.node()&&v.node().insertBefore(h.node().cloneNode(!0),v.node().firstChild);var b=d.width,p=d.height;v.attr({class:o,height:p,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var C=e.node().style.fill||"black",E=v.select("g");E.attr({fill:C,stroke:C});var A=E.node().getBoundingClientRect(),L=A.width,x=A.height;(L>b||x>p)&&(v.style("overflow","hidden"),A=v.node().getBoundingClientRect(),L=A.width,x=A.height);var k=+e.attr("x"),M=+e.attr("y"),g=u||e.node().getBoundingClientRect().height,P=-g/4;if(o[0]==="y")_.attr({transform:"rotate("+[-90,k,M]+")"+Jnt(-L/2,P-x/2)});else if(o[0]==="l")M=P-x/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)k=0,M=P;else{var T=e.attr("text-anchor");k=k-L*(T==="middle"?.5:T==="end"?1:0),M=M+P-x/2}v.attr({x:k,y:M}),r&&r.call(e,_),l(_)})})):s(),e};var eat=/(<|<|<)/g,tat=/(>|>|>)/g;function rat(e){return e.replace(eat,"\\lt ").replace(tat,"\\gt ")}var Yne=[["$","$"],["\\(","\\)"]];function iat(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Ty.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,l=function(){return a=Ty.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Yne},displayAlign:"left"})},u=function(){a=Ty.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Yne},c=function(){if(i=MathJax.Hub.config.menuSettings.renderer,i!=="SVG")return MathJax.Hub.setRenderer("SVG")},f=function(){i=MathJax.config.startup.output,i!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var C="math-output-"+Ty.randstr({},64);s=kh.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(rat(e));var E=s.node();return n===2?MathJax.Hub.Typeset(E):MathJax.typeset([E])},d=function(){var C=s.select(n===2?".MathJax_SVG":".MathJax"),E=!C.empty()&&s.select("svg").node();if(!E)Ty.log("There was an error in the tex syntax.",e),r();else{var A=E.getBoundingClientRect(),L;n===2?L=kh.select("body").select("#MathJax_SVG_glyphs"):L=C.select("defs"),r(C,L,A)}s.remove()},v=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},_=function(){i!=="svg"&&(MathJax.config.startup.output=i)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(a)},p=function(){MathJax.config=a};n===2?MathJax.Hub.Queue(l,c,h,d,v,b):n===3&&(u(),f(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),_(),p()}))}var Qne={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},nat={sub:"0.3em",sup:"-0.6em"},aat={sub:"-0.21em",sup:"0.42em"},Kne="\u200B",Jne=["http:","https:","mailto:","",void 0,":"],eae=b0.NEWLINES=/(\r\n?|\n)/g,vq=/(<[^<>]*>)/,pq=/<(\/?)([^ >]*)(\s+(.*))?>/i,oat=//i;b0.BR_TAG_ALL=//gi;var tae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,rae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,iae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,sat=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _b(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&J6(n)}var lat=/(^|;)\s*color:/;b0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,n=t.allowedTags!==void 0?t.allowedTags:["br"],i="...",a=i.length,o=e.split(vq),s=[],l="",u=0,c=0;ca?s.push(f.substr(0,_-a)+i):s.push(f.substr(0,_));break}l=""}}return s.join("")};var uat={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},cat=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function J6(e){return e.replace(cat,function(t,r){var n;return r.charAt(0)==="#"?n=fat(r.charAt(1)==="x"?parseInt(r.substr(2),16):parseInt(r.substr(1),10)):n=uat[r],n||t})}b0.convertEntities=J6;function fat(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function hat(e,t){t=t.replace(eae," ");var r=!1,n=[],i,a=-1;function o(){a++;var x=document.createElementNS(hq.svg,"tspan");kh.select(x).attr({class:"line",dy:a*$nt+"em"}),e.appendChild(x),i=x;var k=n;if(n=[{node:x}],k.length>1)for(var M=1;M.",t);return}var k=n.pop();x!==k.type&&Ty.log("Start tag <"+k.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),i=n[n.length-1].node}var c=oat.test(t);c?o():(i=e,n=[{node:e}]);for(var f=t.split(vq),h=0;h{"use strict";var dat=Oa(),Q6=cd(),$S=Eo(),$6=Dr(),aae=Ca(),vat=sb().isValid;function pat(e,t,r){var n=t?$6.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if($6.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function fae(e,t){t=t||{};for(var r=e.domain,n=e.range,i=n.length,a=new Array(i),o=0;o{"use strict";var dae=zO(),mat=dae.FORMAT_LINK,yat=dae.DATE_FORMAT_LINK;function _at(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?gq:vae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function gq(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+mat+"."].join(" ")}function vae(e,t){return gq(e,t)+[" And for dates see: "+yat+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}pae.exports={axisHoverFormat:_at,descriptionOnlyNumbers:gq,descriptionWithDates:vae}});var Rd=ye((bir,Iae)=>{"use strict";var gae=ec(),w3=Ch(),Pae=Pd().dash,yq=Ao().extendFlat,mae=pl().templatedArray,xir=Qo().templateFormatStringDescription,yae=df().descriptionWithDates,xat=hs().ONEDAY,pm=hd(),bat=pm.HOUR_PATTERN,wat=pm.WEEKDAY_PATTERN,mq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Tat=yq({},mq,{values:mq.values.slice().concat(["sync"])});function _ae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var xae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},bae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},wae={valType:"data_array",editType:"ticks"},Tae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Aae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Sae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Mae={valType:"color",dflt:w3.defaultLine,editType:"ticks"},Eae={valType:"color",dflt:w3.lightLine,editType:"ticks"};function Cae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var kae=yq({},Pae,{editType:"ticks"}),Lae={valType:"boolean",editType:"ticks"};Iae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:gae({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[pm.idRegex.x.toString(),pm.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"calc"},rangebreaks:mae("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[wat,bat,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:xat},editType:"calc"}),tickmode:Tat,nticks:_ae(),tick0:xae,dtick:bae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:wae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Tae,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Aae(),tickwidth:Sae(),tickcolor:Mae,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:yq({},Pae,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:gae({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:yae("tick label")},tickformatstops:mae("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:yae("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:w3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Lae,gridcolor:Eae,gridwidth:Cae(),griddash:kae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"plot"},minor:{tickmode:mq,nticks:_ae("minor"),tick0:xae,dtick:bae,tickvals:wae,ticks:Tae,ticklen:Aae("minor"),tickwidth:Sae("minor"),tickcolor:Mae,gridcolor:Eae,gridwidth:Cae("minor"),griddash:kae,showgrid:Lae,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var eL=ye((wir,Fae)=>{"use strict";var $c=Rd(),Rae=ec(),Dae=Ao().extendFlat,Aat=mc().overrideAll;Fae.exports=Aat({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:$c.linecolor,outlinewidth:$c.linewidth,bordercolor:$c.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:$c.minor.tickmode,nticks:$c.nticks,tick0:$c.tick0,dtick:$c.dtick,tickvals:$c.tickvals,ticktext:$c.ticktext,ticks:Dae({},$c.ticks,{dflt:""}),ticklabeloverflow:Dae({},$c.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:$c.ticklen,tickwidth:$c.tickwidth,tickcolor:$c.tickcolor,ticklabelstep:$c.ticklabelstep,showticklabels:$c.showticklabels,labelalias:$c.labelalias,tickfont:Rae({}),tickangle:$c.tickangle,tickformat:$c.tickformat,tickformatstops:$c.tickformatstops,tickprefix:$c.tickprefix,showtickprefix:$c.showtickprefix,ticksuffix:$c.ticksuffix,showticksuffix:$c.showticksuffix,separatethousands:$c.separatethousands,exponentformat:$c.exponentformat,minexponent:$c.minexponent,showexponent:$c.showexponent,title:{text:{valType:"string"},font:Rae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Tu=ye((Air,Oae)=>{"use strict";var Sat=eL(),Mat=n3().counter,Eat=Z1(),zae=sb().scales,Tir=Eat(zae);function tL(e){return"`"+e+"`"}Oae.exports=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",i="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",s=typeof r.colorscaleDflt=="string"?zae[r.colorscaleDflt]:null,l=r.editTypeOverride||"",u=t?t+".":"",c,f;"colorAttr"in r?(c=r.colorAttr,f=r.colorAttr):(c={z:"z",c:"color"}[n],f="in "+tL(u+c));var h=i?" Has an effect only if "+f+" is set to a numerical array.":"",d=n+"auto",v=n+"min",_=n+"max",b=n+"mid",p=tL(u+d),C=tL(u+v),E=tL(u+_),A=C+" and "+E,L={};L[v]=L[_]=void 0;var x={};x[d]=!1;var k={};return c==="color"&&(k.color={valType:"color",arrayOk:!0,editType:l||"style"},r.anim&&(k.color.anim=!0)),k[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:L},k[v]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},k[_]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},k[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:L},k.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},k.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},k.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(k.showscale={valType:"boolean",dflt:o,editType:"calc"},k.colorbar=Sat),r.noColorAxis||(k.coloraxis={valType:"subplotid",regex:Mat("coloraxis"),dflt:null,editType:"calc"}),k}});var xq=ye((Sir,qae)=>{"use strict";var Cat=Ao().extendFlat,kat=Tu(),_q=sb().scales;qae.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:_q.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:_q.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:_q.RdBu,editType:"calc"}},coloraxis:Cat({_isSubplotObj:!0,editType:"calc"},kat("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var bq=ye((Mir,Bae)=>{"use strict";var Lat=Dr();Bae.exports=function(t){return Lat.isPlainObject(t.colorbar)}});var Aq=ye(Tq=>{"use strict";var wq=Eo(),Nae=Dr(),Uae=hs(),Pat=Uae.ONEDAY,Iat=Uae.ONEWEEK;Tq.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?Pat:1;if(!e)return a;if(wq(e))return e=Number(e),e<=0?a:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return a;var o=e.charAt(0),s=e.substr(1);return s=wq(s)?Number(s):0,s<=0||!(n&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};Tq.tick0=function(e,t,r,n){if(t==="date")return Nae.cleanDate(e,Nae.dateTick0(r,n%Iat===0?1:0));if(!(n==="D1"||n==="D2"))return wq(e)?Number(e):0}});var xb=ye((Cir,Gae)=>{"use strict";var Vae=Aq(),Rat=Dr().isArrayOrTypedArray,Dat=vv().isTypedArraySpec,Fat=vv().decodeTypedArraySpec;Gae.exports=function(t,r,n,i,a){a||(a={});var o=a.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function c(C){var E=s[C];return Dat(E)&&(E=Fat(E)),E!==void 0?E:(l._template||{})[C]}var f=c("tick0"),h=c("dtick"),d=c("tickvals"),v=Rat(d)?"array":h?"linear":"auto",_=n(u+"tickmode",v);if(_==="auto"||_==="sync")n(u+"nticks");else if(_==="linear"){var b=l.dtick=Vae.dtick(h,i);l.tick0=Vae.tick0(f,i,r.calendar,b)}else if(i!=="multicategory"){var p=n(u+"tickvals");p===void 0?l.tickmode="auto":o||n("ticktext")}}});var T3=ye((kir,jae)=>{"use strict";var Sq=Dr(),Hae=Rd();jae.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,l=a?Hae.minor:Hae,u=a?"minor.":"",c=Sq.coerce2(o,s,l,"ticklen",a?(r.ticklen||5)*.6:void 0),f=Sq.coerce2(o,s,l,"tickwidth",a?r.tickwidth||1:void 0),h=Sq.coerce2(o,s,l,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=n(u+"ticks",!a&&i.outerTicks||c||f||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var Mq=ye((Lir,Wae)=>{"use strict";Wae.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(a){return t[a]!==void 0}),i=function(a){return t[a]===t[n[0]]};if(n.every(i)||n.length===1)return t[n[0]]}});var Yd=ye((Pir,Xae)=>{"use strict";var rL=Dr(),zat=pl();Xae.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=rL.isArrayOrTypedArray(t[i])?t[i]:[],l=r[i]=[],u=zat.arrayTemplater(r,i,a),c,f;for(c=0;c{"use strict";var Eq=Dr(),Oat=Ca().contrast,Zae=Rd(),qat=Mq(),Bat=Yd();Yae.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");Eq.isPlainObject(o)||delete r.labelalias;var s=qat(t),l=n("showticklabels");if(l){a.noTicklabelshift||n("ticklabelshift"),a.noTicklabelstandoff||n("ticklabelstandoff");var u=a.font||{},c=r.color,f=r.ticklabelposition||"",h=f.indexOf("inside")!==-1?Oat(a.bgColor):c&&c!==Zae.color.dflt?c:u.color;if(Eq.coerceFont(n,"tickfont",u,{overrideDflt:{color:h}}),!a.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!a.noAng){var d=n("tickangle");!a.noAutotickangles&&d==="auto"&&n("autotickangles")}if(i!=="category"){var v=n("tickformat");Bat(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Nat}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!v&&i!=="date"&&(n("showexponent",s),n("exponentformat"),n("minexponent"),n("separatethousands"))}!a.noMinorloglabels&&i==="log"&&n("minorloglabels")}};function Nat(e,t){function r(i,a){return Eq.coerce(e,t,Zae.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var t_=ye((Rir,Kae)=>{"use strict";var Uat=Mq();Kae.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=Uat(t),l=n("tickprefix");l&&n("showtickprefix",s);var u=n("ticksuffix",o);u&&n("showticksuffix",s)}});var Cq=ye((Dir,Jae)=>{"use strict";var r_=Dr(),Vat=pl(),Gat=xb(),Hat=T3(),jat=e_(),Wat=t_(),Xat=eL();Jae.exports=function(t,r,n){var i=Vat.newContainer(r,"colorbar"),a=t.colorbar||{};function o(T,z){return r_.coerce(a,i,Xat,T,z)}var s=n.margin||{t:0,b:0,l:0,r:0},l=n.width-s.l-s.r,u=n.height-s.t-s.b,c=o("orientation"),f=c==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(f?l:u):30);var d=o("lenmode");o("len",d==="fraction"?1:f?u:l);var v=o("yref"),_=o("xref"),b=v==="paper",p=_==="paper",C,E,A,L="left";f?(A="middle",L=p?"left":"right",C=p?1.02:1,E=.5):(A=b?"bottom":"top",L="center",C=.5,E=b?1.02:1),r_.coerce(a,i,{x:{valType:"number",min:p?-2:0,max:p?3:1,dflt:C}},"x"),r_.coerce(a,i,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:E}},"y"),o("xanchor",L),o("xpad"),o("yanchor",A),o("ypad"),r_.noneOrAll(a,i,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var x=r_.coerce(a,i,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:f?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",x.indexOf("inside")!==-1?"hide past domain":"hide past div"),Gat(a,i,o,"linear");var k=n.font,M={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};x.indexOf("inside")!==-1&&(M.bgColor="black"),Wat(a,i,o,"linear",M),jat(a,i,o,"linear",M),Hat(a,i,o,"linear",M),o("title.text",n._dfltTitle.colorbar);var g=i.showticklabels?i.tickfont:k,P=r_.extendFlat({},k,{family:g.family,size:r_.bigFont(g.size)});r_.coerceFont(o,"title.font",P),o("title.side",f?"top":"right")}});var Jh=ye((Fir,eoe)=>{"use strict";var $ae=Eo(),Lq=Dr(),Zat=bq(),Yat=Cq(),Qae=sb().isValid,Kat=qa().traceIs;function kq(e,t){var r=t.slice(0,t.length-1);return t?Lq.nestedProperty(e,r).get()||{}:e}eoe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,l="_module"in r,u=kq(t,o),c=kq(r,o),f=kq(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,n,i,a)};if(l){var d=n._colorAxes||{},v=i(o+"coloraxis");if(v){var _=Kat(r,"contour")&&Lq.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[v];b?(b[2].push(h),b[0]!==_&&(b[0]=!1,Lq.warn(["Ignoring coloraxis:",v,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[v]=[_,r,[h]];return}}var p=u[s+"min"],C=u[s+"max"],E=$ae(p)&&$ae(C)&&p{"use strict";var toe=Dr(),Jat=pl(),roe=xq(),$at=Jh();ioe.exports=function(t,r){function n(f,h){return toe.coerce(t,r,roe,f,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(f,h){return toe.coerce(a,o,roe.coloraxis,f,h)}for(var l in i){var u=i[l];if(u[0])a=t[l]||{},o=Jat.newContainer(r,l,"coloraxis"),o._name=l,$at(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var Qat=Dr(),eot=pv().hasColorscale,tot=pv().extractOpts;aoe.exports=function(t,r){function n(c,f){var h=c["_"+f];h!==void 0&&(c[f]=h)}function i(c,f){var h=f.container?Qat.nestedProperty(c,f.container).get():c;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=tot(h),v=d.auto;(v||d.min===void 0)&&n(h,f.min),(v||d.max===void 0)&&n(h,f.max),d.autocolorscale&&n(h,"colorscale")}}for(var a=0;a{"use strict";var soe=Eo(),Pq=Dr(),rot=pv().extractOpts;loe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?Pq.nestedProperty(r,o).get():r,l=rot(s),u=l.auto!==!1,c=l.min,f=l.max,h=l.mid,d=function(){return Pq.aggNums(Math.min,null,a)},v=function(){return Pq.aggNums(Math.max,null,a)};if(c===void 0?c=d():u&&(s._colorAx&&soe(c)?c=Math.min(c,d()):c=d()),f===void 0?f=v():u&&(s._colorAx&&soe(f)?f=Math.max(f,v()):f=v()),u&&h!==void 0&&(f-h>h-c?c=h-(f-h):f-h=0?_=i.colorscale.sequential:_=i.colorscale.sequentialminus,l._sync("colorscale",_)}}});var tc=ye((Bir,uoe)=>{"use strict";var iL=sb(),A3=pv();uoe.exports={moduleType:"component",name:"colorscale",attributes:Tu(),layoutAttributes:xq(),supplyLayoutDefaults:noe(),handleDefaults:Jh(),crossTraceDefaults:ooe(),calc:gv(),scales:iL.scales,defaultScale:iL.defaultScale,getScale:iL.get,isValidScale:iL.isValid,hasColorscale:A3.hasColorscale,extractOpts:A3.extractOpts,extractScale:A3.extractScale,flipScale:A3.flipScale,makeColorScaleFunc:A3.makeColorScaleFunc,makeColorScaleFuncFromTrace:A3.makeColorScaleFuncFromTrace}});var Ru=ye((Nir,foe)=>{"use strict";var coe=Dr(),iot=vv().isTypedArraySpec;foe.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return coe.isPlainObject(t)&&(coe.isArrayOrTypedArray(t.size)||iot(t.size))}}});var S3=ye((Uir,hoe)=>{"use strict";var not=Eo();hoe.exports=function(t,r){r||(r=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(s){return Math.sqrt(s/i)}:function(s){return s/i};return function(s){var l=o(s/r);return not(l)&&l>0?Math.max(l,a):0}}});var ip=ye(mv=>{"use strict";var doe=Dr();mv.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};mv.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],n=e.yaxes||[],i=0;i=0&&r.index{goe.exports=uot;var Iq={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},lot=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function uot(e){var t=[];return e.replace(lot,function(r,n,i){var a=n.toLowerCase();for(i=fot(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Iq[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var hot=QS(),ca=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},ds="M0,0Z",moe=Math.sqrt(2),i_=Math.sqrt(3),Rq=Math.PI,Dq=Math.cos,Fq=Math.sin;woe.exports={circle:{n:0,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?ps(t,r,i):i}},square:{n:1,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.3,2);return ps(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.4,2),i=ca(e*1.2,2);return ps(t,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.8/moe,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return ps(t,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/i_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M-"+n+","+i+"H"+n+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/i_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M-"+n+",-"+i+"H"+n+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/i_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M"+i+",-"+n+"V"+n+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/i_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M-"+i+",-"+n+"V"+n+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.951,2),i=ca(e*.588,2),a=ca(-e,2),o=ca(e*-.309,2),s=ca(e*.809,2);return ps(t,r,"M"+n+","+o+"L"+i+","+s+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e/2,2),a=ca(e*i_/2,2);return ps(t,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e/2,2),a=ca(e*i_/2,2);return ps(t,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.924,2),i=ca(e*.383,2);return ps(t,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(e,t,r){if(vs(t))return ds;var n=e*1.4,i=ca(n*.225,2),a=ca(n*.951,2),o=ca(n*.363,2),s=ca(n*.588,2),l=ca(-n,2),u=ca(n*-.309,2),c=ca(n*.118,2),f=ca(n*.809,2),h=ca(n*.382,2);return ps(t,r,"M"+i+","+u+"H"+a+"L"+o+","+c+"L"+s+","+f+"L0,"+h+"L-"+s+","+f+"L-"+o+","+c+"L-"+a+","+u+"H-"+i+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.66,2),i=ca(e*.38,2),a=ca(e*.76,2);return ps(t,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*i_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return ps(t,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*i_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return ps(t,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.1,2),i=ca(e*2,2),a="A "+i+","+i+" 0 0 1 ";return ps(t,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2),i=ca(e*1.9,2),a="A "+i+","+i+" 0 0 1 ";return ps(t,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.7,2),i=ca(e*1.4,2);return ps(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2),i=ca(e*.7,2);return ps(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e/moe,2);return ps(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.3,2);return ps(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.3,2),i=ca(e*.65,2);return ps(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*.85,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(vs(t))return ds;var n=ca(e/2,2),i=ca(e,2);return ps(t,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2);return ps(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2);return ps(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M0,0L-"+n+",-"+i+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+i+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(vs(t))return ds;var n=Rq/2.5,i=2*e*Dq(n),a=2*e*Fq(n);return ps(t,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(vs(t))return ds;var n=Rq/4,i=2*e*Dq(n),a=2*e*Fq(n);return ps(t,r,"M0,0L"+-i+","+a+"A "+2*e+","+2*e+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}};function vs(e){return e===null}var yoe,_oe,xoe,boe;function ps(e,t,r){if((!e||e%360===0)&&!t)return r;if(xoe===e&&boe===t&&yoe===r)return _oe;xoe=e,boe=t,yoe=r;function n(b,p){var C=Dq(b),E=Fq(b),A=p[0],L=p[1]+(t||0);return[A*C-L*E,A*E+L*C]}for(var i=e/180*Rq,a=0,o=0,s=hot(r),l="",u=0;u{"use strict";var dd=Oa(),Du=Dr(),dot=Du.numberFormat,Ab=Eo(),Uq=cd(),aL=qa(),Kd=Ca(),vot=tc(),tM=Du.strTranslate,oL=ru(),pot=Wp(),got=Kh(),mot=got.LINE_SPACING,Roe=N1().DESELECTDIM,yot=Ru(),_ot=S3(),xot=ip().appendArrayPointValue,Aa=Goe.exports={};Aa.font=function(e,t){var r=t.variant,n=t.style,i=t.weight,a=t.color,o=t.size,s=t.family,l=t.shadow,u=t.lineposition,c=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call(Kd.fill,a),i&&e.style("font-weight",i),n&&e.style("font-style",n),r&&e.style("font-variant",r),c&&e.style("text-transform",zq(wot(c))),l&&e.style("text-shadow",l==="auto"?oL.makeTextShadow(Kd.contrast(a)):zq(l)),u&&e.style("text-decoration-line",zq(Tot(u)))};function zq(e){return e==="none"?void 0:e}var bot={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function wot(e){return bot[e]}function Tot(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Aa.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Aa.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Aa.setRect=function(e,t,r,n,i){e.call(Aa.setPosition,t,r).call(Aa.setSize,n,i)};Aa.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),a=n.c2p(e.y);if(Ab(i)&&Ab(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",tM(i,a));else return!1;return!0};Aa.translatePoints=function(e,t,r){e.each(function(n){var i=dd.select(this);Aa.translatePoint(n,i,t,r)})};Aa.hideOutsideRangePoint=function(e,t,r,n,i,a){t.attr("display",r.isPtWithinRange(e,i)&&n.isPtWithinRange(e,a)?null:"none")};Aa.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each(function(i){var a=i[0].trace,o=a.xcalendar,s=a.ycalendar,l=aL.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){Aa.hideOutsideRangePoint(u,dd.select(this),r,n,o,s)})})}};Aa.crispRound=function(e,t,r){return!t||!Ab(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Aa.singleLineStyle=function(e,t,r,n,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";Kd.stroke(t,n||a.color),Aa.dashLine(t,s,o)};Aa.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each(function(i){var a=(((i||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=n||a.dash||"";dd.select(this).call(Kd.stroke,r||a.color).call(Aa.dashLine,s,o)})};Aa.dashLine=function(e,t,r){r=+r||0,t=Aa.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Aa.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function Doe(e,t,r,n){var i=t.fillpattern,a=t.fillgradient,o=Aa.getPatternAttr,s=i&&(o(i.shape,0,"")||o(i.path,0,""));if(s){var l=o(i.bgcolor,0,null),u=o(i.fgcolor,0,null),c=i.fgopacity,f=o(i.size,0,8),h=o(i.solidity,0,.3),d=t.uid;Aa.pattern(e,"point",r,d,s,f,h,void 0,i.fillmode,l,u,c)}else if(a&&a.type!=="none"){var v=a.type,_="scatterfill-"+t.uid;if(n&&(_="legendfill-"+t.uid),!n&&(a.start!==void 0||a.stop!==void 0)){var b,p;v==="horizontal"?(b={x:a.start,y:0},p={x:a.stop,y:0}):v==="vertical"&&(b={x:0,y:a.start},p={x:0,y:a.stop}),b.x=t._xA.c2p(b.x===void 0?t._extremes.x.min[0].val:b.x,!0),b.y=t._yA.c2p(b.y===void 0?t._extremes.y.min[0].val:b.y,!0),p.x=t._xA.c2p(p.x===void 0?t._extremes.x.max[0].val:p.x,!0),p.y=t._yA.c2p(p.y===void 0?t._extremes.y.max[0].val:p.y,!0),e.call(Ooe,r,_,"linear",a.colorscale,"fill",b,p,!0,!1)}else v==="horizontal"&&(v=v+"reversed"),e.call(Aa.gradient,r,_,v,a.colorscale,"fill")}else t.fillcolor&&e.call(Kd.fill,t.fillcolor)}Aa.singleFillStyle=function(e,t){var r=dd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};Doe(e,i,t,!1)};Aa.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(n){var i=dd.select(this);n[0].trace&&Doe(i,n[0].trace,t,r)})};var Aoe=Toe();Aa.symbolNames=[];Aa.symbolFuncs=[];Aa.symbolBackOffs=[];Aa.symbolNeedLines={};Aa.symbolNoDot={};Aa.symbolNoFill={};Aa.symbolList=[];Object.keys(Aoe).forEach(function(e){var t=Aoe[e],r=t.n;Aa.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Aa.symbolNames[r]=e,Aa.symbolFuncs[r]=t.f,Aa.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Aa.symbolNeedLines[r]=!0),t.noDot?Aa.symbolNoDot[r]=!0:Aa.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Aa.symbolNoFill[r]=!0)});var Aot=Aa.symbolNames.length,Sot="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Aa.symbolNumber=function(e){if(Ab(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Aa.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=Aot||e>=400?0:Math.floor(Math.max(e,0))};function Foe(e,t,r,n){var i=e%100;return Aa.symbolFuncs[i](t,r,n)+(e>=200?Sot:"")}var Soe=dot("~f"),zoe={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Aa.gradient=function(e,t,r,n,i,a){var o=zoe[n];return Ooe(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function Ooe(e,t,r,n,i,a,o,s,l,u){var c=i.length,f;n==="linear"?f={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:l?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:n==="radial"&&(f={node:"radialGradient",reversed:u});for(var h=new Array(c),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var l;e.ms==="various"||o.size==="various"?l=3:l=n.ms2mrc(e.ms),e.mrc=l,n.selectedSizeFn&&(l=e.mrc=n.selectedSizeFn(e));var u=Aa.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var c=Hq(e,r),f=Gq(e,r);t.attr("d",Foe(u,l,c,f))}var h=!1,d,v,_;if(e.so)_=s.outlierwidth,v=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;_=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?v=e.mlcc=n.lineScale(e.mlc):Du.isArrayOrTypedArray(s.color)?v=Kd.defaultLine:v=s.color,Du.isArrayOrTypedArray(o.color)&&(d=Kd.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}if(e.om)t.call(Kd.stroke,d).style({"stroke-width":(_||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:_)+"px");var p=o.gradient,C=e.mgt;C?h=!0:C=p&&p.type,Du.isArrayOrTypedArray(C)&&(C=C[0],zoe[C]||(C=0));var E=o.pattern,A=Aa.getPatternAttr,L=E&&(A(E.shape,e.i,"")||A(E.path,e.i,""));if(C&&C!=="none"){var x=e.mgc;x?h=!0:x=p.color;var k=r.uid;h&&(k+="-"+e.i),Aa.gradient(t,i,k,C,[[0,x],[1,d]],"fill")}else if(L){var M=!1,g=E.fgcolor;!g&&a&&a.color&&(g=a.color,M=!0);var P=A(g,e.i,a&&a.color||null),T=A(E.bgcolor,e.i,null),z=E.fgopacity,O=A(E.size,e.i,8),V=A(E.solidity,e.i,.3);M=M||e.mcc||Du.isArrayOrTypedArray(E.shape)||Du.isArrayOrTypedArray(E.path)||Du.isArrayOrTypedArray(E.bgcolor)||Du.isArrayOrTypedArray(E.fgcolor)||Du.isArrayOrTypedArray(E.size)||Du.isArrayOrTypedArray(E.solidity);var G=r.uid;M&&(G+="-"+e.i),Aa.pattern(t,"point",i,G,L,O,V,e.mcc,E.fillmode,T,P,z)}else Du.isArrayOrTypedArray(d)?Kd.fill(t,d[e.i]):Kd.fill(t,d);_&&Kd.stroke(t,v)}};Aa.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Aa.tryColorscale(r,""),t.lineScale=Aa.tryColorscale(r,"line"),aL.traceIs(e,"symbols")&&(t.ms2mrc=yot.isBubble(e)?_ot(e):function(){return(r.size||6)/2}),e.selectedpoints&&Du.extendFlat(t,Aa.makeSelectedPointStyleFns(e)),t};Aa.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},a=r.marker||{},o=n.marker||{},s=i.opacity,l=a.opacity,u=o.opacity,c=l!==void 0,f=u!==void 0;(Du.isArrayOrTypedArray(s)||c||f)&&(t.selectedOpacityFn=function(A){var L=A.mo===void 0?i.opacity:A.mo;return A.selected?c?l:L:f?u:Roe*L});var h=i.color,d=a.color,v=o.color;(d||v)&&(t.selectedColorFn=function(A){var L=A.mcc||h;return A.selected?d||L:v||L});var _=i.size,b=a.size,p=o.size,C=b!==void 0,E=p!==void 0;return aL.traceIs(e,"symbols")&&(C||E)&&(t.selectedSizeFn=function(A){var L=A.mrc||_/2;return A.selected?C?b/2:L:E?p/2:L}),t};Aa.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,l=a.color,u=o.color;return t.selectedTextColorFn=function(c){var f=c.tc||s;return c.selected?l||f:u||(l?f:Kd.addOpacity(f,Roe))},t};Aa.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Aa.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&i.push(function(a,o){Kd.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&i.push(function(a,o){var s=o.mx||n.symbol||0,l=r.selectedSizeFn(o);a.attr("d",Foe(Aa.symbolNumber(s),l,Hq(o,t),Gq(o,t))),o.mrc2=l}),i.length&&e.each(function(a){for(var o=dd.select(this),s=0;s0?r:0}Aa.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=Aa.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=dd.select(this),u=a?Du.extractOption(s,t,"txt","texttemplate"):Du.extractOption(s,t,"tx","text");if(!u&&u!==0){l.remove();return}if(a){var c=t._module.formatLabels,f=c?c(s,t,o):{},h={};xot(h,t,s.i);var d=t._meta||{};u=Du.texttemplateString(u,f,o._d3locale,h,s,d)}var v=s.tp||t.textposition,_=Boe(s,t),b=n?n(s):s.tc||t.textfont.color;l.call(Aa.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:_,color:b}).text(u).call(oL.convertToTspans,r).call(qoe,v,_,s.mrc)})}};Aa.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Aa.makeSelectedTextStyleFns(t);e.each(function(n){var i=dd.select(this),a=r.selectedTextColorFn(n),o=n.tp||t.textposition,s=Boe(n,t);Kd.fill(i,a);var l=aL.traceIs(t,"bar-like");qoe(i,o,s,n.mrc2||n.mrc,l)})}};var Moe=.5;Aa.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],i;for(i=1;i=l||A>=c&&A<=l)&&(L<=f&&L>=u||L>=f&&L<=u)&&(e=[A,L])}return e}Aa.applyBackoff=Voe;Aa.makeTester=function(){var e=Du.ensureSingleById(dd.select("body"),"svg","js-plotly-tester",function(r){r.attr(pot.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=Du.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Aa.tester=e,Aa.testref=t};Aa.savedBBoxes={};var qq=0,Cot=1e4;Aa.bBox=function(e,t,r){r||(r=Eoe(e));var n;if(r){if(n=Aa.savedBBoxes[r],n)return Du.extendFlat({},n)}else if(e.childNodes.length===1){var i=e.childNodes[0];if(r=Eoe(i),r){var a=+i.getAttribute("x")||0,o=+i.getAttribute("y")||0,s=i.getAttribute("transform");if(!s){var l=Aa.bBox(i,!1,r);return a&&(l.left+=a,l.right+=a),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+a+"~"+o+"~"+s,n=Aa.savedBBoxes[r],n)return Du.extendFlat({},n)}}var u,c;t?u=e:(c=Aa.tester.node(),u=e.cloneNode(!0),c.appendChild(u)),dd.select(u).attr("transform",null).call(oL.positionText,0,0);var f=u.getBoundingClientRect(),h=Aa.testref.node().getBoundingClientRect();t||c.removeChild(u);var d={height:f.height,width:f.width,left:f.left-h.left,top:f.top-h.top,right:f.right-h.left,bottom:f.bottom-h.top};return qq>=Cot&&(Aa.savedBBoxes={},qq=0),r&&(Aa.savedBBoxes[r]=d),qq++,Du.extendFlat({},d)};function Eoe(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Aa.setClipUrl=function(e,t,r){e.attr("clip-path",Vq(t,r))};function Vq(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Aa.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}};Aa.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=tM(t,r),o=o.trim(),e[a]("transform",o),o};Aa.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}};Aa.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var kot=/\s*sc.*/;Aa.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var i=(this.getAttribute("transform")||"").replace(kot,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var Lot=/translate\([^)]*\)\s*$/;Aa.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,i=dd.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(i.attr("transform")||"").match(Lot);t===1&&r===1?n=[]:n=[tM(o,s),"scale("+t+","+r+")",tM(-o,-s)],l&&n.push(l),i.attr("transform",n.join(""))}})};function Gq(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Aa.getMarkerStandoff=Gq;var eM=Math.atan2,bb=Math.cos,E3=Math.sin;function Coe(e,t){var r=t[0],n=t[1];return[r*bb(e)-n*E3(e),r*E3(e)+n*bb(e)]}var koe,Loe,Poe,Ioe,Bq,Nq;function Hq(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||Du.isArrayOrTypedArray(r))&&(r=0));var n,i,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],i=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)n=s.c2p(e.x),i=l.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],c=e.lonlat[1],f=t._geo.project([u,c+1e-5]),h=t._geo.project([u+1e-5,c]),d=eM(h[1]-i,h[0]-n),v=eM(f[1]-i,f[0]-n),_;if(a==="north")_=r/180*Math.PI;else if(a==="previous"){var b=u/180*Math.PI,p=c/180*Math.PI,C=koe/180*Math.PI,E=Loe/180*Math.PI,A=C-b,L=bb(E)*E3(A),x=E3(E)*bb(p)-bb(E)*E3(p)*bb(A);_=-eM(L,x)-Math.PI,koe=u,Loe=c}var k=Coe(d,[bb(_),0]),M=Coe(v,[E3(_),0]);r=eM(k[1]+M[1],k[0]+M[0])/Math.PI*180,a==="previous"&&!(Nq===t.uid&&e.i===Bq+1)&&(r=null)}if(a==="previous"&&!t._geo)if(Nq===t.uid&&e.i===Bq+1&&Ab(n)&&Ab(i)){var g=n-Poe,P=i-Ioe,T=t.line&&t.line.shape||"",z=T.slice(T.length-1);z==="h"&&(P=0),z==="v"&&(g=0),r+=eM(P,g)/Math.PI*180+90}else r=null}return Poe=n,Ioe=i,Bq=e.i,Nq=t.uid,r}Aa.getMarkerAngle=Hq});var Mb=ye((Wir,Xoe)=>{"use strict";var C3=Oa(),Pot=Eo(),Iot=Mc(),jq=qa(),Sb=Dr(),Hoe=Sb.strTranslate,sL=So(),lL=Ca(),k3=ru(),joe=N1(),Rot=Kh().OPPOSITE_SIDE,Woe=/ [XY][0-9]* /,Wq=1.6,Xq=1.6;function Dot(e,t,r){var n=e._fullLayout,i=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,l=r.avoid||{},u=r.attributes,c=r.transform,f=r.containerGroup,h=1,d=i.title,v=(d&&d.text?d.text:"").trim(),_=!1,b=d&&d.font?d.font:{},p=b.family,C=b.size,E=b.color,A=b.weight,L=b.style,x=b.variant,k=b.textcase,M=b.lineposition,g=b.shadow,P=r.subtitlePropName,T=!!P,z=r.subtitlePlaceholder,O=(i.title||{}).subtitle||{text:"",font:{}},V=(O.text||"").trim(),G=!1,Z=1,H=O.font,N=H.family,j=H.size,re=H.color,oe=H.weight,_e=H.style,Me=H.variant,ke=H.textcase,me=H.lineposition,ie=H.shadow,Se;a==="title.text"?Se="titleText":a.indexOf("axis")!==-1?Se="axisTitleText":a.indexOf("colorbar")!==-1&&(Se="colorbarTitleText");var Le=e._context.edits[Se];function Ae(Nt,$t){return Nt===void 0||$t===void 0?!1:Nt.replace(Woe," % ")===$t.replace(Woe," % ")}v===""?h=0:Ae(v,o)&&(Le||(v=""),h=.2,_=!0),T&&(V===""?Z=0:Ae(V,z)&&(Le||(V=""),Z=.2,G=!0)),r._meta?v=Sb.templateString(v,r._meta):n._meta&&(v=Sb.templateString(v,n._meta));var De=v||V||Le,Pe;f||(f=Sb.ensureSingle(n._infolayer,"g","g-"+t),Pe=n._hColorbarMoveTitle);var ge=f.selectAll("text."+t).data(De?[0]:[]);ge.enter().append("text"),ge.text(v).attr("class",t),ge.exit().remove();var Fe=null,ce=t+"-subtitle",Ze=V||Le;if(T&&(Fe=f.selectAll("text."+ce).data(Ze?[0]:[]),Fe.enter().append("text"),Fe.text(V).attr("class",ce),Fe.exit().remove()),!De)return f;function ct(Nt,$t){Sb.syncOrAsync([pt,Wt],{title:Nt,subtitle:$t})}function pt(Nt){var $t=Nt.title,sr=Nt.subtitle,wr;!c&&Pe&&(c={}),c?(wr="",c.rotate&&(wr+="rotate("+[c.rotate,u.x,u.y]+")"),(c.offset||Pe)&&(wr+=Hoe(0,(c.offset||0)-(Pe||0)))):wr=null,$t.attr("transform",wr);function ur(bt){if(bt){var yt=C3.select(bt.node().parentNode).select("."+ce);if(!yt.empty()){var Yt=bt.node().getBBox();if(Yt.height){var lr=Yt.y+Yt.height+Wq*j;yt.attr("y",lr)}}}}if($t.style("opacity",h*lL.opacity(E)).call(sL.font,{color:lL.rgb(E),size:C3.round(C,2),family:p,weight:A,style:L,variant:x,textcase:k,shadow:g,lineposition:M}).attr(u).call(k3.convertToTspans,e,ur),sr&&!sr.empty()){var Qe=f.select("."+t+"-math-group"),Et=$t.node().getBBox(),er=Qe.node()?Qe.node().getBBox():void 0,Ut=er?er.y+er.height+Wq*j:Et.y+Et.height+Xq*j,Ft=Sb.extendFlat({},u,{y:Ut});sr.attr("transform",wr),sr.style("opacity",Z*lL.opacity(re)).call(sL.font,{color:lL.rgb(re),size:C3.round(j,2),family:N,weight:oe,style:_e,variant:Me,textcase:ke,shadow:ie,lineposition:me}).attr(Ft).call(k3.convertToTspans,e)}return Iot.previousPromises(e)}function Wt(Nt){var $t=Nt.title,sr=C3.select($t.node().parentNode);if(l&&l.selection&&l.side&&v){sr.attr("transform",null);var wr=Rot[l.side],ur=l.side==="left"||l.side==="top"?-1:1,Qe=Pot(l.pad)?l.pad:2,Et=sL.bBox(sr.node()),er={t:0,b:0,l:0,r:0},Ut=e._fullLayout._reservedMargin;for(var Ft in Ut)for(var bt in Ut[Ft]){var yt=Ut[Ft][bt];er[bt]=Math.max(er[bt],yt)}var Yt={left:er.l,top:er.t,right:n.width-er.r,bottom:n.height-er.b},lr=l.maxShift||ur*(Yt[l.side]-Et[l.side]),Tr=0;if(lr<0)Tr=lr;else{var Rr=l.offsetLeft||0,ei=l.offsetTop||0;Et.left-=Rr,Et.right-=Rr,Et.top-=ei,Et.bottom-=ei,l.selection.each(function(){var Ur=sL.bBox(this);Sb.bBoxIntersect(Et,Ur,Qe)&&(Tr=Math.max(Tr,ur*(Ur[l.side]-Et[wr])+Qe))}),Tr=Math.min(lr,Tr),i._titleScoot=Math.abs(Tr)}if(Tr>0||lr<0){var Wr={left:[-Tr,0],right:[Tr,0],top:[0,-Tr],bottom:[0,Tr]}[l.side];sr.attr("transform",Hoe(Wr[0],Wr[1]))}}}ge.call(ct,Fe);function st(Nt,$t){Nt.text($t).on("mouseover.opacity",function(){C3.select(this).transition().duration(joe.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){C3.select(this).transition().duration(joe.HIDE_PLACEHOLDER).style("opacity",0)})}if(Le&&(v?ge.on(".opacity",null):(st(ge,o),_=!0),ge.call(k3.makeEditable,{gd:e}).on("edit",function(Nt){s!==void 0?jq.call("_guiRestyle",e,a,Nt,s):jq.call("_guiRelayout",e,a,Nt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ct)}).on("input",function(Nt){this.text(Nt||" ").call(k3.positionText,u.x,u.y)}),T)){if(T&&!v){var lt=ge.node().getBBox(),Gt=lt.y+lt.height+Xq*j;Fe.attr("y",Gt)}V?Fe.on(".opacity",null):(st(Fe,z),G=!0),Fe.call(k3.makeEditable,{gd:e}).on("edit",function(Nt){jq.call("_guiRelayout",e,"title.subtitle.text",Nt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ct)}).on("input",function(Nt){this.text(Nt||" ").call(k3.positionText,Fe.attr("x"),Fe.attr("y"))})}return ge.classed("js-placeholder",_),Fe&&!Fe.empty()&&Fe.classed("js-placeholder",G),f}Xoe.exports={draw:Dot,SUBTITLE_PADDING_EM:Xq,SUBTITLE_PADDING_MATHJAX_EM:Wq}});var ym=ye((Xir,$oe)=>{"use strict";var Fot=Oa(),zot=e3().utcFormat,yc=Dr(),Oot=yc.numberFormat,gm=Eo(),n_=yc.cleanNumber,qot=yc.ms2DateTime,Zoe=yc.dateTime2ms,mm=yc.ensureNumber,Yoe=yc.isArrayOrTypedArray,a_=hs(),uL=a_.FP_SAFE,wg=a_.BADNUM,Bot=a_.LOG_CLIP,Not=a_.ONEWEEK,cL=a_.ONEDAY,fL=a_.ONEHOUR,Koe=a_.ONEMIN,Joe=a_.ONESEC,hL=hf(),pL=hd(),dL=pL.HOUR_PATTERN,vL=pL.WEEKDAY_PATTERN;function rM(e){return Math.pow(10,e)}function Zq(e){return e!=null}$oe.exports=function(t,r){r=r||{};var n=t._id||"x",i=n.charAt(0);function a(A,L){if(A>0)return Math.log(A)/Math.LN10;if(A<=0&&L&&t.range&&t.range.length===2){var x=t.range[0],k=t.range[1];return .5*(x+k-2*Bot*Math.abs(x-k))}else return wg}function o(A,L,x,k){if((k||{}).msUTC&&gm(A))return+A;var M=Zoe(A,x||t.calendar);if(M===wg)if(gm(A)){A=+A;var g=Math.floor(yc.mod(A+.05,1)*10),P=Math.round(A-g/10);M=Zoe(new Date(P))+g/10}else return wg;return M}function s(A,L,x){return qot(A,L,x||t.calendar)}function l(A){return t._categories[Math.round(A)]}function u(A){if(Zq(A)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[A]!==void 0)return t._categoriesMap[A];t._categories.push(typeof A=="number"?String(A):A);var L=t._categories.length-1;return t._categoriesMap[A]=L,L}return wg}function c(A,L){for(var x=new Array(L),k=0;kt.range[1]&&(x=!x);for(var k=x?-1:1,M=k*A,g=0,P=0;Pz)g=P+1;else{g=M<(T+z)/2?P:P+1;break}}var O=t._B[g]||0;return isFinite(O)?v(A,t._m2,O):0},p=function(A){var L=t._rangebreaks.length;if(!L)return _(A,t._m,t._b);for(var x=0,k=0;kt._rangebreaks[k].pmax&&(x=k+1);return _(A,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:mm,t.l2c=t.type==="log"?rM:mm,t.l2p=b,t.p2l=p,t.c2p=t.type==="log"?function(A,L){return b(a(A,L))}:b,t.p2c=t.type==="log"?function(A){return rM(p(A))}:p,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=n_,t.c2d=t.c2r=t.l2d=t.l2r=mm,t.d2p=t.r2p=function(A){return t.l2p(n_(A))},t.p2d=t.p2r=p,t.cleanPos=mm):t.type==="log"?(t.d2r=t.d2l=function(A,L){return a(n_(A),L)},t.r2d=t.r2c=function(A){return rM(n_(A))},t.d2c=t.r2l=n_,t.c2d=t.l2r=mm,t.c2r=a,t.l2d=rM,t.d2p=function(A,L){return t.l2p(t.d2r(A,L))},t.p2d=function(A){return rM(p(A))},t.r2p=function(A){return t.l2p(n_(A))},t.p2r=p,t.cleanPos=mm):t.type==="date"?(t.d2r=t.r2d=yc.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(A,L,x){return t.l2p(o(A,0,x))},t.p2d=t.p2r=function(A,L,x){return s(p(A),L,x)},t.cleanPos=function(A){return yc.cleanDate(A,wg,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=u,t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(A){var L=d(A);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=mm,t.r2l=d,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return l(p(A))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(A){return typeof A=="string"&&A!==""?A:mm(A)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(A){var L=h(A);return L!==void 0?L:t.fraction2r(.5)},t.r2c_just_indices=f,t.l2r=t.c2r=mm,t.r2l=h,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return l(p(A))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(A){return Array.isArray(A)||typeof A=="string"&&A!==""?A:mm(A)},t.setupMultiCategory=function(A){var L=t._traceIndices,x,k,M=t._matchGroup;if(M&&t._categories.length===0){for(var g in M)if(g!==n){var P=r[hL.id2name(g)];L=L.concat(P._traceIndices)}}var T=[[0,{}],[0,{}]],z=[];for(x=0;xP[1]&&(k[g?0:1]=x),k[0]===k[1]){var T=t.l2r(L),z=t.l2r(x);if(L!==void 0){var O=T+1;x!==void 0&&(O=Math.min(O,z)),k[g?1:0]=O}if(x!==void 0){var V=z+1;L!==void 0&&(V=Math.max(V,T)),k[g?0:1]=V}}}},t.cleanRange=function(A,L){t._cleanRange(A,L),t.limitRange(A)},t._cleanRange=function(A,L){L||(L={}),A||(A="range");var x=yc.nestedProperty(t,A).get(),k,M;if(t.type==="date"?M=yc.dfltRange(t.calendar):i==="y"?M=pL.DFLTRANGEY:t._name==="realaxis"?M=[0,1]:M=L.dfltRange||pL.DFLTRANGEX,M=M.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(M[0]=0),!x||x.length!==2){yc.nestedProperty(t,A).set(M);return}var g=x[0]===null,P=x[1]===null;for(t.type==="date"&&!t.autorange&&(x[0]=yc.cleanDate(x[0],wg,t.calendar),x[1]=yc.cleanDate(x[1],wg,t.calendar)),k=0;k<2;k++)if(t.type==="date"){if(!yc.isDateTime(x[k],t.calendar)){t[A]=M;break}if(t.r2l(x[0])===t.r2l(x[1])){var T=yc.constrain(t.r2l(x[0]),yc.MIN_MS+1e3,yc.MAX_MS-1e3);x[0]=t.l2r(T-1e3),x[1]=t.l2r(T+1e3);break}}else{if(!gm(x[k]))if(!(g||P)&&gm(x[1-k]))x[k]=x[1-k]*(k?10:.1);else{t[A]=M;break}if(x[k]<-uL?x[k]=-uL:x[k]>uL&&(x[k]=uL),x[0]===x[1]){var z=Math.max(1,Math.abs(x[0]*1e-6));x[0]-=z,x[1]+=z}}},t.setScale=function(A){var L=r._size;if(t.overlaying){var x=hL.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain}var k=A&&t._r?"_r":"range",M=t.calendar;t.cleanRange(k);var g=t.r2l(t[k][0],M),P=t.r2l(t[k][1],M),T=i==="y";if(T?(t._offset=L.t+(1-t.domain[1])*L.h,t._length=L.h*(t.domain[1]-t.domain[0]),t._m=t._length/(g-P),t._b=-t._m*P):(t._offset=L.l+t.domain[0]*L.w,t._length=L.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-g),t._b=-t._m*g),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var z,O;if(t._rangebreaks=t.locateBreaks(Math.min(g,P),Math.max(g,P)),t._rangebreaks.length){for(z=0;zP&&(V=!V),V&&t._rangebreaks.reverse();var G=V?-1:1;for(t._m2=G*t._length/(Math.abs(P-g)-t._lBreaks),t._B.push(-t._m2*(T?P:g)),z=0;zM&&(M+=7,gM&&(M+=24,g=k&&g=k&&A=ie.min&&(_eie.max&&(ie.max=Me),ke=!1)}ke&&P.push({min:_e,max:Me})}};for(x=0;x{"use strict";var Qoe=Eo(),Yq=Dr(),Uot=hs().BADNUM,gL=Yq.isArrayOrTypedArray,Vot=Yq.isDateTime,Got=Yq.cleanNumber,ese=Math.round;rse.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(gL(i)&&!i.length)return"-";if(!a&&Zot(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function tse(e){return Math.max(1,(e-1)/1e3)}function Xot(e,t){for(var r=e.length,n=tse(r),i=0,a=0,o={},s=0;si*2}function Zot(e){return gL(e[0])&&gL(e[1])}});var Tg=ye((Yir,cse)=>{"use strict";var Yot=Oa(),ose=Eo(),o_=Dr(),mL=hs().FP_SAFE,Kot=qa(),Jot=So(),sse=hf(),$ot=sse.getFromId,Qot=sse.isLinked;cse.exports={applyAutorangeOptions:use,getAutoRange:Kq,makePadFn:Jq,doAutoRange:tst,findExtremes:rst,concatExtremes:eB};function Kq(e,t){var r,n,i=[],a=e._fullLayout,o=Jq(a,t,0),s=Jq(a,t,1),l=eB(e,t),u=l.min,c=l.max;if(u.length===0||c.length===0)return o_.simpleMap(t.range,t.r2l);var f=u[0].val,h=c[0].val;for(r=1;r0&&(P=E-o(x)-s(k),P>A?T/P>L&&(M=x,g=k,L=T/P):T/E>L&&(M={val:x.val,nopad:1},g={val:k.val,nopad:1},L=T/E));function z(H,N){return Math.max(H,s(N))}if(f===h){var O=f-1,V=f+1;if(p)if(f===0)i=[0,1];else{var G=(f>0?c:u).reduce(z,0),Z=f/(1-Math.min(.5,G/E));i=f>0?[0,Z]:[Z,0]}else C?i=[Math.max(0,O),Math.max(1,V)]:i=[O,V]}else p?(M.val>=0&&(M={val:0,nopad:1}),g.val<=0&&(g={val:0,nopad:1})):C&&(M.val-L*o(M)<0&&(M={val:0,nopad:1}),g.val<=0&&(g={val:1,nopad:1})),L=(g.val-M.val-ise(t,x.val,k.val))/(E-o(M)-s(g)),i=[M.val-L*o(M),g.val+L*s(g)];return i=use(i,t),t.limitRange&&t.limitRange(),v&&i.reverse(),o_.simpleMap(i,t.l2r||Number)}function ise(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),x=A((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),k=A(r.vpadplus||r.vpad),M=A(r.vpadminus||r.vpad);if(!u){if(C=1/0,E=-1/0,l)for(f=0;f0&&(C=h),h>E&&h-mL&&(C=h),h>E&&h=T;f--)P(f);return{min:n,max:i,opts:r}}function $q(e,t,r,n){lse(e,t,r,n,ist)}function Qq(e,t,r,n){lse(e,t,r,n,nst)}function lse(e,t,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l=r&&(u.extrapad||!o)){s=!1;break}else i(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var c=a&&t===0;e.push({val:t,pad:c?0:r,extrapad:c?!1:o})}}function ase(e){return ose(e)&&Math.abs(e)=t}function ast(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&yL(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&yL(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function ost(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&yL(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&yL(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function yL(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=l&&(a=l,r=l),o<=l&&(o=l,n=l)}}return r=ast(r,t),n=ost(n,t),[r,n]}});var ho=ye((Kir,Rse)=>{"use strict";var w0=Oa(),Lh=Eo(),P3=Mc(),nM=qa(),Jo=Dr(),I3=Jo.strTranslate,Eb=ru(),sst=Mb(),aM=Ca(),Xp=So(),lst=Rd(),fse=Aq(),Jd=hs(),ust=Jd.ONEMAXYEAR,bL=Jd.ONEAVGYEAR,wL=Jd.ONEMINYEAR,cst=Jd.ONEMAXQUARTER,nB=Jd.ONEAVGQUARTER,TL=Jd.ONEMINQUARTER,fst=Jd.ONEMAXMONTH,R3=Jd.ONEAVGMONTH,AL=Jd.ONEMINMONTH,Zp=Jd.ONEWEEK,zv=Jd.ONEDAY,s_=zv/2,xm=Jd.ONEHOUR,oM=Jd.ONEMIN,SL=Jd.ONESEC,hst=Jd.ONEMILLI,dst=Jd.ONEMICROSEC,Cb=Jd.MINUS_SIGN,EL=Jd.BADNUM,aB={K:"zeroline"},oB={K:"gridline",L:"path"},sB={K:"minor-gridline",L:"path"},wse={K:"tick",L:"path"},hse={K:"tick",L:"text"},dse={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},CL=Kh(),iM=CL.MID_SHIFT,kb=CL.CAP_SHIFT,sM=CL.LINE_SPACING,vst=CL.OPPOSITE_SIDE,ML=3,Qn=Rse.exports={};Qn.setConvert=ym();var pst=L3(),Ay=hf(),gst=Ay.idSort,mst=Ay.isLinked;Qn.id2name=Ay.id2name;Qn.name2id=Ay.name2id;Qn.cleanId=Ay.cleanId;Qn.list=Ay.list;Qn.listIds=Ay.listIds;Qn.getFromId=Ay.getFromId;Qn.getFromTrace=Ay.getFromTrace;var Tse=Tg();Qn.getAutoRange=Tse.getAutoRange;Qn.findExtremes=Tse.findExtremes;var yst=1e-4;function fB(e){var t=(e[1]-e[0])*yst;return[e[0]-t,e[1]+t]}Qn.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],l=n+"ref",u={};return i||(i=s[0]||(typeof a=="string"?a:a[0])),a||(a=i),s=s.concat(s.map(function(c){return c+" domain"})),u[l]={valType:"enumerated",values:s.concat(a?typeof a=="string"?[a]:a:[]),dflt:i},Jo.coerce(e,t,u,l)};Qn.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Qn.coercePosition=function(e,t,r,n,i,a){var o,s,l=Qn.getRefType(n);if(l!=="range")o=Jo.ensureNumber,s=r(i,a);else{var u=Qn.getFromId(t,n);a=u.fraction2r(a),s=r(i,a),o=u.cleanPos}e[i]=o(s)};Qn.cleanPosition=function(e,t,r){var n=r==="paper"||r==="pixel"?Jo.ensureNumber:Qn.getFromId(t,r).cleanPos;return n(e)};Qn.redrawComponents=function(e,t){t=t||Qn.listIds(e);var r=e._fullLayout;function n(i,a,o,s){for(var l=nM.getComponentMethod(i,a),u={},c=0;c2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Qn.saveRangeInitial=function(e,t){for(var r=Qn.list(e,"",!0),n=!1,i=0;if*.3||u(n)||u(i))){var h=r.dtick/2;e+=e+ho){var s=Number(r.substr(1));a.exactYears>o&&s%12===0?e=Qn.tickIncrement(e,"M6","reverse")+zv*1.5:a.exactMonths>o?e=Qn.tickIncrement(e,"M1","reverse")+zv*15.5:e-=s_;var l=Qn.tickIncrement(e,r);if(l<=n)return l}return e}Qn.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var n=t.dtick&&Lh(t._tmin),i;if(n){var a=Qn.tickIncrement(t._tmin,t.dtick,!0);i=[t._tmin,a*.99+t._tmin*.01]}else{var o=Jo.simpleMap(t.range,t.r2l);i=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Jo.simpleMap(i,t.l2r),e._isMinor=!0,Qn.prepTicks(e,r),n){var s=Lh(t.dtick),l=Lh(e.dtick),u=s?t.dtick:+t.dtick.substring(1),c=l?e.dtick:+e.dtick.substring(1);s&&l?tB(u,c)?u===2*Zp&&c===2*zv&&(e.dtick=Zp):u===2*Zp&&c===3*zv?e.dtick=Zp:u===Zp&&!(t._input.minor||{}).nticks?e.dtick=zv:gse(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":tB(u,c)?u>=12&&c===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?tB(u,c)||(e.dtick=gse(u/c,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function tB(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function gse(e,t){return Math.abs(e/t-1)<.001}Qn.prepTicks=function(e,t){var r=Jo.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,i;n||(e.type==="category"||e.type==="multicategory"?(i=e.tickfont?Jo.bigFont(e.tickfont.size||12):15,n=e._length/i):(i=e._id.charAt(0)==="y"?40:80,n=Jo.constrain(e._length/i,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,Qn.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=n-1,o=n):(a=n,o=n);var s=e[a].value,l=e[o].value,u=Math.abs(l-s),c=r||u,f=0;c>=wL?u>=wL&&u<=ust?f=u:f=bL:r===nB&&c>=TL?u>=TL&&u<=cst?f=u:f=nB:c>=AL?u>=AL&&u<=fst?f=u:f=R3:r===Zp&&c>=Zp?f=Zp:c>=zv?f=zv:r===s_&&c>=s_?f=s_:r===xm&&c>=xm&&(f=xm);var h;f>=u&&(f=u,h=!0);var d=i+f;if(t.rangebreaks&&f>0){for(var v=84,_=0,b=0;bZp&&(f=u)}(f>0||n===0)&&(e[n].periodX=i+f/2)}}Qn.calcTicks=function(t,r){for(var n=t.type,i=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],l=!t.ticklabelindex||Jo.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],u=Jo.simpleMap(t.range,t.r2l,void 0,void 0,r),c=u[1]=(E?0:1);A--){var L=!A;A?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var x=A?t:Jo.extendFlat({},t,t.minor);if(L?Qn.prepMinorTicks(x,t,r):Qn.prepTicks(x,r),x.tickmode==="array"){A?(b=[],v=mse(t,!L)):(p=[],_=mse(t,!L));continue}if(x.tickmode==="sync"){b=[],v=Ast(t);continue}var k=fB(u),M=k[0],g=k[1],P=Lh(x.dtick),T=n==="log"&&!(P||x.dtick.charAt(0)==="L"),z=Qn.tickFirst(x,r);if(A){if(t._tmin=z,z=g:V<=g;V=Qn.tickIncrement(V,H,c,i)){if(A&&G++,x.rangebreaks&&!c){if(V=h)break}if(b.length>d||V===O)break;O=V;var N={value:V};A?(T&&V!==(V|0)&&(N.simpleLabel=!0),a>1&&G%a&&(N.skipLabel=!0),b.push(N)):(N.minor=!0,p.push(N))}}if(!p||p.length<2)l=!1;else{var j=(p[1].value-p[0].value)*(s?-1:1);Yst(j,t.tickformat)||(l=!1)}if(!l)C=b;else{var re=b.concat(p);o&&b.length&&(re=re.slice(1)),re=re.sort(function(Gt,Nt){return Gt.value-Nt.value}).filter(function(Gt,Nt,$t){return Nt===0||Gt.value!==$t[Nt-1].value});var oe=re.map(function(Gt,Nt){return Gt.minor===void 0&&!Gt.skipLabel?Nt:null}).filter(function(Gt){return Gt!==null});oe.forEach(function(Gt){l.map(function(Nt){var $t=Gt+Nt;$t>=0&&$t-1;De--){if(b[De].drop){b.splice(De,1);continue}b[De].value=iB(b[De].value,t);var ce=t.c2p(b[De].value);(Pe?Fe>ce-ge:Feh||srh&&($t.periodX=h),sri&&hbL)t/=bL,n=i(10),e.dtick="M"+12*_m(t,n,_L);else if(a>R3)t/=R3,e.dtick="M"+_m(t,1,yse);else if(a>zv){if(e.dtick=_m(t,zv,e._hasDayOfWeekBreaks?[1,2,7,14]:Sst),!r){var o=Qn.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Jo.dateTick0(e.calendar,2):e.tick0=Jo.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>xm?e.dtick=_m(t,xm,yse):a>oM?e.dtick=_m(t,oM,_se):a>SL?e.dtick=_m(t,SL,_se):(n=i(10),e.dtick=_m(t,n,_L))}else if(e.type==="log"){e.tick0=0;var l=Jo.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var u=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/u,n=i(10),e.dtick="L"+_m(t,n,_L)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):pB(e)?(e.tick0=0,n=1,e.dtick=_m(t,n,Mst)):(e.tick0=0,n=i(10),e.dtick=_m(t,n,_L));if(e.dtick===0&&(e.dtick=1),!Lh(e.dtick)&&typeof e.dtick!="string"){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}};function Ese(e){var t=e.dtick;if(e._tickexponent=0,!Lh(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if(String(t).charAt(0)==="M")i>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=zv&&i<=10||t>=zv*15)e._tickround="d";else if(t>=oM&&i<=16||t>=xm)e._tickround="M";else if(t>=SL&&i<=19||t>=oM)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(Lh(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);Lh(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(l)>u&&(D3(e.exponentformat)&&e.exponentformat!=="SI extended"&&!hB(l)||D3(e.exponentformat)&&e.exponentformat==="SI extended"&&!dB(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}Qn.tickIncrement=function(e,t,r,n){var i=r?-1:1;if(Lh(t))return Jo.increment(e,i*t);var a=t.charAt(0),o=i*Number(t.substr(1));if(a==="M")return Jo.incrementMonth(e,o,n);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?Mse:Sse,l=e+i*.01,u=Jo.roundUp(Jo.mod(l,1),s,r);return Math.floor(l)+Math.log(w0.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};Qn.tickFirst=function(e,t){var r=e.r2l||Number,n=Jo.simpleMap(e.range,r,void 0,void 0,t),i=n[1]=0&&p<=e._length?b:null};if(a&&Jo.isArrayOrTypedArray(e.ticktext)){var f=Jo.simpleMap(e.range,e.r2l),h=(Math.abs(f[1]-f[0])-(e._lBreaks||0))/1e4;for(u=0;u"+s;else{var u=uM(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function Cst(e,t,r,n,i){var a=e.dtick,o=t.x,s=e.tickformat,l=typeof a=="string"&&a.charAt(0);if(i==="never"&&(i=""),n&&l!=="L"&&(a="L3",l="L"),s||l==="L")t.text=lM(Math.pow(10,o),e,i,n);else if(Lh(a)||l==="D"&&(e.minorloglabels==="complete"||Jo.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Jo.mod(o+.01,1)<.1)&&(u=!0,t.fontSize*=.75);var c=Math.pow(10,o).toExponential(0),f=c.split("e"),h=+f[1],d=Math.abs(h),v=e.exponentformat;v==="power"||D3(v)&&v!=="SI extended"&&hB(h)||D3(v)&&v==="SI extended"&&dB(h)?(t.text=f[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":Cb)+d+""),t.fontSize*=1.25):(v==="e"||v==="E")&&d>2?t.text=f[0]+v+(h>0?"+":Cb)+d:(t.text=lM(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Jo.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var _=String(t.text).charAt(0);(_==="0"||_==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function kst(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function Lst(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=i[1]===void 0?"":String(i[1]),o=i[0]===void 0?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function Pst(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=lM(t.x,e,i,n)}function Ist(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=Rst(a);if(o[1]>=100)t.text=lM(Jo.deg2rad(t.x),e,i,n);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=Cb+t.text)}}}else t.text=lM(t.x,e,i,n)}function Rst(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function n(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}var kse=["f","p","n","\u03BC","m","","k","M","G","T"],Dst=["q","r","y","z","a",...kse,"P","E","Z","Y","R","Q"],D3=e=>["SI","SI extended","B"].includes(e);function hB(e){return e>14||e<-15}function dB(e){return e>32||e<-30}function Fst(e,t){return D3(t)?!!(t==="SI extended"&&dB(e)||t!=="SI extended"&&hB(e)):!1}function lM(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=Qn.getTickFormat(t),u=t.separatethousands;if(n){var c={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Lh(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};Ese(c),a=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,Cb);var f=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+v+"":o==="B"&&s===9?e+="B":D3(o)&&(e+=o==="SI extended"?Dst[s/3+10]:kse[s/3+5])}return i?Cb+e:e}Qn.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*R3}function n(l,u){var c=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var f=c.indexOf(l.charAt(0)),h=c.indexOf(u.charAt(0));return f===h?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):f-h}else return typeof l=="number"?1:-1}function i(l,u,c){var f=c||function(v){return v},h=u[0],d=u[1];return(!h&&typeof h!="number"||f(h)<=f(l))&&(!d&&typeof d!="number"||f(d)>=f(l))}function a(l,u){var c=u[0]===null,f=u[1]===null,h=n(l,u[0])>=0,d=n(l,u[1])<=0;return(c||h)&&(f||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&i.unshift(i.splice(c,1).shift())}});var s={false:{left:0,right:0}};return Jo.syncOrAsync(i.map(function(l){return function(){if(l){var u=Qn.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var c=Qn.drawOne(e,u,r);return u._shiftPusher&&cB(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=Jo.simpleMap(u._r,u.r2l),c}}}))};Qn.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},i=r.overlayingShiftedAx||[],a,o,s;t.setScale();var l=e._fullLayout,u=t._id,c=u.charAt(0),f=Qn.counterLetter(u),h=l._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||i.indexOf(t._id)!==-1||i.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var v=t.linewidth/2||0;t.ticks==="inside"&&(v+=t.ticklen),cB(t,v,n,!0),cB(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Zst(t,n));var _=h[c+"axislayer"],b=t._mainLinePosition,p=b+=t._shift,C=t._mainMirrorPosition,E=t._vals=Qn.calcTicks(t),A=[t.mirror,p,C].join("_");for(a=0;a0?sr.bottom-Nt:0,$t))));var Et=0,er=0;if(t._shiftPusher&&(Et=Math.max($t,sr.height>0?lt==="l"?Nt-sr.left:sr.right-Nt:0),t.title.text!==l._dfltTitle[c]&&(er=(t._titleStandoff||0)+(t._titleScoot||0),lt==="l"&&(er+=bse(t))),t._fullDepth=Math.max(Et,er)),t.automargin){wr={x:0,y:0,r:0,l:0,t:0,b:0};var Ut=[0,1],Ft=typeof t._shift=="number"?t._shift:0;if(c==="x"){if(lt==="b"?wr[lt]=t._depth:(wr[lt]=t._depth=Math.max(sr.width>0?Nt-sr.top:0,$t),Ut.reverse()),sr.width>0){var bt=sr.right-(t._offset+t._length);bt>0&&(wr.xr=1,wr.r=bt);var yt=t._offset-sr.left;yt>0&&(wr.xl=0,wr.l=yt)}}else if(lt==="l"?(t._depth=Math.max(sr.height>0?Nt-sr.left:0,$t),wr[lt]=t._depth-Ft):(t._depth=Math.max(sr.height>0?sr.right-Nt:0,$t),wr[lt]=t._depth+Ft,Ut.reverse()),sr.height>0){var Yt=sr.bottom-(t._offset+t._length);Yt>0&&(wr.yb=0,wr.b=Yt);var lr=t._offset-sr.top;lr>0&&(wr.yt=1,wr.t=lr)}wr[f]=t.anchor==="free"?t.position:t._anchorAxis.domain[Ut[0]],t.title.text!==l._dfltTitle[c]&&(wr[lt]+=bse(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(ur={x:0,y:0,r:0,l:0,t:0,b:0},ur[Gt]=t.linewidth,t.mirror&&t.mirror!==!0&&(ur[Gt]+=$t),t.mirror===!0||t.mirror==="ticks"?ur[f]=t._anchorAxis.domain[Ut[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(ur[f]=[t._counterDomainMin,t._counterDomainMax][Ut[1]]))}st&&(Qe=nM.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(xse(wr,t.automargin),xse(ur,t.automargin)),P3.autoMargin(e,vB(t),wr),P3.autoMargin(e,Pse(t),ur),P3.autoMargin(e,Ise(t),Qe)}),Jo.syncOrAsync(pt)}};function xse(e,t){if(e){var r=Object.keys(dse).reduce(function(n,i){return t.indexOf(i)!==-1&&dse[i].forEach(function(a){n[a]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function zst(e,t){var r=[],n,i=function(a,o){var s=a.xbnd[o];s!==null&&r.push(Jo.extendFlat({},a,{x:s}))};if(t.length){for(n=0;ne.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,l=!s;if(r){var u=o?-1:1;r=r*u}if(n){var c=e.side,f=s&&(c==="top"||c==="left")||l&&(c==="bottom"||c==="right")?1:-1;n=n*f}return e._id.charAt(0)==="x"?function(h){return I3(i+e._offset+e.l2p(lB(h))+r,a+n)}:function(h){return I3(a+n,i+e._offset+e.l2p(lB(h))+r)}};function lB(e){return e.periodX!==void 0?e.periodX:e.x}function Nst(e){var t=e.ticklabelposition||"",r=e.tickson||"",n=function(v){return t.indexOf(v)!==-1},i=n("top"),a=n("left"),o=n("right"),s=n("bottom"),l=n("inside"),u=r!=="boundaries"&&(s||a||i||o);if(!u&&!l)return[0,0];var c=e.side,f=u?(e.tickwidth||0)/2:0,h=ML,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(f+=d*kb,h+=(e.linewidth||0)/2),(a||o)&&(f+=(e.linewidth||0)/2,h+=ML),l&&c==="top"&&(h-=d*(1-kb)),(a||i)&&(f=-f),(c==="bottom"||c==="right")&&(h=-h),[u?f:0,l?h:0]}Qn.makeTickPath=function(e,t,r,n){n||(n={});var i=n.minor;if(i&&!e.minor)return"";var a=n.len!==void 0?n.len:i?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};Qn.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(O){return n.indexOf(O)!==-1},o=a("top"),s=a("left"),l=a("right"),u=a("bottom"),c=i!=="boundaries"&&(u||s||o||l),f=a("inside"),h=n==="inside"&&e.ticks==="inside"||!f&&e.ticks==="outside"&&i!=="boundaries",d=0,v=0,_=h?e.ticklen:0;if(f?_*=-1:c&&(_=0),h&&(d+=_,r)){var b=Jo.deg2rad(r);d=_*Math.cos(b)+1,v=_*Math.sin(b)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(f?-1:1);var p={labelStandoff:d,labelShift:v},C,E,A,L,x=0,k=e.side,M=e._id.charAt(0),g=e.tickangle,P;if(M==="x")P=!f&&k==="bottom"||f&&k==="top",L=P?1:-1,f&&(L*=-1),C=v*L,E=t+d*L,A=P?1:-.2,Math.abs(g)===90&&(f?A+=iM:g===-90&&k==="bottom"?A=kb:g===90&&k==="top"?A=iM:A=.5,x=iM/2*(g/90)),p.xFn=function(O){return O.dx+C+x*O.fontSize},p.yFn=function(O){return O.dy+E+O.fontSize*A},p.anchorFn=function(O,V){if(c){if(s)return"end";if(l)return"start"}return!Lh(V)||V===0||V===180?"middle":V*L<0!==f?"end":"start"},p.heightFn=function(O,V,G){return V<-60||V>60?-.5*G:e.side==="top"!==f?-G:0};else if(M==="y"){if(P=!f&&k==="left"||f&&k==="right",L=P?1:-1,f&&(L*=-1),C=d,E=v*L,A=0,!f&&Math.abs(g)===90&&(g===-90&&k==="left"||g===90&&k==="right"?A=kb:A=.5),f){var T=Lh(g)?+g:0;if(T!==0){var z=Jo.deg2rad(T);x=Math.abs(Math.sin(z))*kb*L,A=0}}p.xFn=function(O){return O.dx+t-(C+O.fontSize*A)*L+x*O.fontSize},p.yFn=function(O){return O.dy+E+O.fontSize*iM},p.anchorFn=function(O,V){return Lh(V)&&Math.abs(V)===90?"middle":P?"end":"start"},p.heightFn=function(O,V,G){return e.side==="right"&&(V*=-1),V<-30?-G:V<30?-.5*G:0}}return p};function kL(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Qn.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+n).data(i,kL);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return aM.stroke(w0.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Xp.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),LL(t,[wse]),a.attr("transform",r.transFn)};Qn.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?r.vals.filter(function(p){return p.minor}):[],o=t.showgrid?r.vals.filter(function(p){return!p.minor}):[],s=r.counterAxis;if(s&&Qn.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;v--){var _=v?h:d;if(_){var b=_.selectAll("path."+n).data(v?o:a,kL);b.exit().remove(),b.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(p){return aM.stroke(w0.select(this),p.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(p){return Xp.dashStyle(p.minor?t.minor.griddash:t.griddash,p.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(p){return(p.minor?f:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}LL(t,[oB,sB])}};Qn.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=Qn.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return gst(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(aM.stroke,t.zerolinecolor||aM.defaultLine).style("stroke-width",Xp.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),LL(t,[aB])};Qn.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,i=t._id,a=t.zerolinelayer==="above traces",o=r.cls||i+"tick",s=r.vals.filter(function(j){return j.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,c=(t._prevTickAngles||{})[o],f=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],kL),h=[];f.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(j){var re=w0.select(this),oe=e._promises.length;re.call(Eb.positionText,l.xFn(j),l.yFn(j)).call(Xp.font,{family:j.font,size:j.fontSize,color:j.fontColor,weight:j.fontWeight,style:j.fontStyle,variant:j.fontVariant,textcase:j.fontTextcase,lineposition:j.fontLineposition,shadow:j.fontShadow}).text(j.text).call(Eb.convertToTspans,e),e._promises[oe]?h.push(e._promises.pop().then(function(){d(re,u)})):d(re,u)}),LL(t,[hse]),f.exit().remove(),r.repositionOnUpdate&&f.each(function(j){w0.select(this).select("text").call(Eb.positionText,l.xFn(j),l.yFn(j))});function d(j,re){j.each(function(oe){var _e=w0.select(this),Me=_e.select(".text-math-group"),ke=l.anchorFn(oe,re),me=r.transFn.call(_e.node(),oe)+(Lh(re)&&+re!=0?" rotate("+re+","+l.xFn(oe)+","+(l.yFn(oe)-oe.fontSize/2)+")":""),ie=Eb.lineCount(_e),Se=sM*oe.fontSize,Le=l.heightFn(oe,Lh(re)?+re:0,(ie-1)*Se);if(Le&&(me+=I3(0,Le)),Me.empty()){var Ae=_e.select("text");Ae.attr({transform:me,"text-anchor":ke}),Ae.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var De=Xp.bBox(Me.node()).width,Pe=De*{end:-.5,start:.5}[ke];Me.attr("transform",me+I3(Pe,0))}})}t._adjustTickLabelsOverflow=function(){var j=t.ticklabeloverflow;if(!(!j||j==="allow")){var re=j.indexOf("hide")!==-1,oe=t._id.charAt(0)==="x",_e=0,Me=oe?e._fullLayout.width:e._fullLayout.height;if(j.indexOf("domain")!==-1){var ke=Jo.simpleMap(t.range,t.r2l);_e=t.l2p(ke[0])+t._offset,Me=t.l2p(ke[1])+t._offset}var me=Math.min(_e,Me),ie=Math.max(_e,Me),Se=t.side,Le=1/0,Ae=-1/0;f.each(function(Fe){var ce=w0.select(this),Ze=ce.select(".text-math-group");if(Ze.empty()){var ct=Xp.bBox(ce.node()),pt=0;oe?(ct.right>ie||ct.leftie||ct.top+(t.tickangle?0:Fe.fontSize/4)t["_visibleLabelMin_"+ke._id]?ce.style("display","none"):ie.K==="tick"&&!me&&ce.node().style.display!=="none"&&ce.style("display",null)})})})})},d(f,c+1?c:u);function v(){return h.length&&Promise.all(h)}var _=null;function b(){if(d(f,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){_=t.autotickangles[0];var j=0,re=[],oe,_e=1;f.each(function(wr){j=Math.max(j,wr.fontSize);var ur=t.l2p(wr.x),Qe=uB(this),Et=Xp.bBox(Qe.node());_e=Math.max(_e,Eb.lineCount(Qe)),re.push({top:0,bottom:10,height:10,left:ur-Et.width/2,right:ur+Et.width/2+2,width:Et.width+2})});var Me=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,ke=s.length,me=Math.abs((s[ke-1].x-s[0].x)*t._m)/(ke-1),ie=Me?me/2:me,Se=Me?t.ticklen:j*1.25*_e,Le=Math.sqrt(Math.pow(ie,2)+Math.pow(Se,2)),Ae=ie/Le,De=t.autotickangles.map(function(wr){return wr*Math.PI/180}),Pe=De.find(function(wr){return Math.abs(Math.cos(wr))<=Ae});Pe===void 0&&(Pe=De.reduce(function(wr,ur){return Math.abs(Math.cos(wr))Z*G&&(z=G,g[M]=P[M]=O[M])}var H=Math.abs(z-T);H-L>0?(H-=L,L*=1+L/H):L=0,t._id.charAt(0)!=="y"&&(L=-L),g[k]=E.p2r(E.r2p(P[k])+x*L),E.autorange==="min"||E.autorange==="max reversed"?(g[0]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0):(E.autorange==="max"||E.autorange==="min reversed")&&(g[1]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[E._name+".range"]=g}var N=Jo.syncOrAsync(p);return N&&N.then&&e._promises.push(N),N};function Ust(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,kL);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(aM.stroke,t.dividercolor).style("stroke-width",Xp.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}Qn.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),i=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:n==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),i==="top"||i==="left")return a._offset;if(i==="bottom"||i==="right")return a._offset+a._length};function bse(e){var t=e.title.font.size,r=(e.title.text.match(Eb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(kb+r*sM):r?t*(r+1)*sM:t}function Vst(e,t){var r=e._fullLayout,n=t._id,i=n.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(Eb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*kb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(iM+s*sM));else{var l=uM(t);if(t.type==="multicategory")o=t._depth;else{var u=1.5*a;l&&(u=.5*a,t.ticks==="outside"&&(u+=t.ticklen)),o=10+u+(t.linewidth?t.linewidth-1:0)}l||(i==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var c=Qn.getPxPosition(e,t),f,h,d;i==="x"?(h=t._offset+t._length/2,d=t.side==="top"?c-o:c+o):(d=t._offset+t._length/2,h=t.side==="right"?c+o:c-o,f={rotate:"-90",offset:0});var v;if(t.type!=="multicategory"){var _=t._selections[t._id+"tick"];if(v={selection:_,side:t.side},_&&_.node()&&_.node().parentNode){var b=Xp.getTranslate(_.node().parentNode);v.offsetLeft=b.x,v.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(v.pad=0)}return t._titleStandoff=o,sst.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:v,transform:f,attributes:{x:h,y:d,"text-anchor":"middle"}})}Qn.shouldShowZeroLine=function(e,t,r){var n=Jo.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===EL)&&(Lse(t,0)||!Gst(e,t,r,n)||Hst(e,t))};Qn.clipEnds=function(e,t){return t.filter(function(r){return Lse(e,r.x)})};function Lse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=dst:/%L/.test(t)?e>=hst:/%[SX]/.test(t)?e>=SL:/%M/.test(t)?e>=oM:/%[HI]/.test(t)?e>=xm:/%p/.test(t)?e>=s_:/%[Aadejuwx]/.test(t)?e>=zv:/%[UVW]/.test(t)?e>=Zp:/%[Bbm]/.test(t)?e>=AL:/%[q]/.test(t)?e>=TL:/%[Yy]/.test(t)?e>=wL:!0}});var gB=ye((Jir,Dse)=>{"use strict";Dse.exports=function(t,r,n){var i,a;if(n){var o=r==="reversed"||r==="min reversed"||r==="max reversed";i=n[o?1:0],a=n[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?i:void 0),l=t("autorangeoptions.maxallowed",i===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),l===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var mB=ye(($ir,Fse)=>{"use strict";var Kst=gB();Fse.exports=function(t,r,n,i){var a=r._template||{},o=r.type||a.type||"-";n("minallowed"),n("maxallowed");var s=n("range");if(!s){var l;!i.noInsiderange&&o!=="log"&&(l=n("insiderange"),l&&(l[0]===null||l[1]===null)&&(r.insiderange=!1,l=void 0),l&&(s=n("range",l)))}var u=r.getAutorangeDflt(s,i),c=n("autorange",u),f;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(c==="reversed"||c===!0)||s[0]!==null&&(c==="min"||c==="max reversed")||s[1]!==null&&(c==="max"||c==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,f=!0),f||(u=r.getAutorangeDflt(s,i),c=n("autorange",u)),c&&(Kst(n,c,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var Ose=ye((Qir,zse)=>{var Jst={left:0,top:0};zse.exports=$st;function $st(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=Qst(t);return r[0]=n-a.left,r[1]=i-a.top,r}function Qst(e){return e===window||e===document||e===document.body?Jst:e.getBoundingClientRect()}});var PL=ye((enr,qse)=>{"use strict";var elt=QO();function tlt(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}qse.exports=elt&&tlt()});var Nse=ye((tnr,Bse)=>{"use strict";Bse.exports=function(t,r,n,i,a){var o=(t-n)/(i-n),s=o+r/(i-n),l=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?l:a==="right"||a==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var Gse=ye((rnr,Vse)=>{"use strict";var Use=Dr(),rlt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Vse.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=Use.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=Use.constrain(Math.floor(r*3),0,2),rlt[r][t]}});var jse=ye((inr,Hse)=>{"use strict";var ilt=g3(),nlt=F6(),alt=qS().getGraphDiv,olt=DS(),yB=Hse.exports={};yB.wrapped=function(e,t,r){e=alt(e),e._fullLayout&&nlt.clear(e._fullLayout._uid+olt.HOVERID),yB.raw(e,t,r)};yB.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&ilt.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&i&&t.emit("plotly_unhover",{event:r,points:i}))}});var yv=ye((nnr,Yse)=>{"use strict";var slt=Ose(),_B=tq(),llt=PL(),ult=Dr().removeElement,clt=hd(),Lb=Yse.exports={};Lb.align=Nse();Lb.getCursor=Gse();var Xse=jse();Lb.unhover=Xse.wrapped;Lb.unhoverRaw=Xse.raw;Lb.init=function(t){var r=t.gd,n=1,i=r._context.doubleClickDelay,a=t.element,o,s,l,u,c,f,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=b,llt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function v(E,A,L){return Math.abs(E)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var A;f.target===h?A=f:(A={target:h,srcElement:h,toElement:h},Object.keys(f).concat(Object.keys(f.__proto__)).forEach(L=>{var x=f[L];!A[L]&&typeof x!="function"&&(A[L]=x)})),t.clickFn&&t.clickFn(n,A),d||h.dispatchEvent(new MouseEvent("click",E))}r._dragging=!1,r._dragged=!1}};function Zse(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Lb.coverSlip=Zse;function Wse(e){return slt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ag=ye((anr,Kse)=>{"use strict";Kse.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)}});var Qse=ye((onr,$se)=>{"use strict";var xB=Ag(),cM="data-savedcursor",Jse="!!";$se.exports=function(t,r){var n=t.attr(cM);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var bB=ec(),flt=Ch();ele.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:flt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:bB({editType:"legend"}),grouptitlefont:bB({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:bB({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var RL=ye(IL=>{"use strict";IL.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};IL.isVertical=function(t){return t.orientation!=="h"};IL.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var SB=ye((unr,tle)=>{"use strict";var TB=qa(),Yp=Dr(),hlt=pl(),dlt=Gl(),vlt=wB(),plt=s3(),AB=RL();function glt(e,t,r,n){var i=t[e]||{},a=hlt.newContainer(r,e);function o(H,N){return Yp.coerce(i,a,vlt,H,N)}var s=Yp.coerceFont(o,"font",r.font);o("bgcolor",r.paper_bgcolor),o("bordercolor");var l=o("visible");if(l){for(var u,c=function(H,N){var j=u._input,re=u;return Yp.coerce(j,re,dlt,H,N)},f=r.font||{},h=Yp.coerceFont(o,"grouptitlefont",f,{overrideDflt:{size:Math.round(f.size*1.1)}}),d=0,v=!1,_="normal",b=(r.shapes||[]).filter(function(H){return H.showlegend}),p=n.concat(b).filter(function(H){return e===(H.legend||"legend")}),C=0;C(e==="legend"?1:0));if(A===!1&&(r[e]=void 0),!(A===!1&&!i.uirevision)&&(o("uirevision",r.uirevision),A!==!1)){o("borderwidth");var L=o("orientation"),x=o("yref"),k=o("xref"),M=L==="h",g=x==="paper",P=k==="paper",T,z,O,V="left";M?(T=0,TB.getComponentMethod("rangeslider","isVisible")(t.xaxis)?g?(z=1.1,O="bottom"):(z=1,O="top"):g?(z=-.1,O="top"):(z=0,O="bottom")):(z=1,O="auto",P?T=1.02:(T=1,V="right")),Yp.coerce(i,a,{x:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:T}},"x"),Yp.coerce(i,a,{y:{valType:"number",editType:"legend",min:g?-2:0,max:g?3:1,dflt:z}},"y"),o("traceorder",_),AB.isGrouped(r[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",V),o("yanchor",O),o("maxheight"),o("valign"),Yp.noneOrAll(i,a,["x","y"]);var G=o("title.text");if(G){o("title.side",M?"left":"top");var Z=Yp.extendFlat({},s,{size:Yp.bigFont(s.size)});Yp.coerceFont(o,"title.font",Z)}}}}tle.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var F3=qa(),EB=Dr(),mlt=EB.pushUnique,MB=!0;rle.exports=function(t,r,n){var i=r._fullLayout;if(r._dragged||r._editing)return;var a=i.legend.itemclick,o=i.legend.itemdoubleclick,s=i.legend.groupclick;n===1&&a==="toggle"&&o==="toggleothers"&&MB&&r.data&&r._context.showTips&&EB.notifier(EB._(r,"Double-click on legend to isolate one trace"),"long"),MB=!1;var l;if(n===1?l=a:n===2&&(l=o),!l)return;var u=s==="togglegroup",c=i.hiddenlabels?i.hiddenlabels.slice():[],f=t.data()[0][0];if(f.groupTitle&&f.noClick)return;var h=r._fullData,d=(i.shapes||[]).filter(function(Gt){return Gt.showlegend}),v=h.concat(d),_=f.trace;_._isShape&&(_=_._fullInput);var b=_.legendgroup,p,C,E,A,L,x,k={},M=[],g=[],P=[];function T(Gt,Nt){var $t=M.indexOf(Gt),sr=k.visible;return sr||(sr=k.visible=[]),M.indexOf(Gt)===-1&&(M.push(Gt),$t=M.length-1),sr[$t]=Nt,$t}var z=(i.shapes||[]).map(function(Gt){return Gt._input}),O=!1;function V(Gt,Nt){z[Gt].visible=Nt,O=!0}function G(Gt,Nt){if(!(f.groupTitle&&!u)){var $t=Gt._fullInput||Gt,sr=$t._isShape,wr=$t.index;wr===void 0&&(wr=$t._index);var ur=$t.visible===!1?!1:Nt;sr?V(wr,ur):T(wr,ur)}}var Z=_.legend,H=_._fullInput,N=H&&H._isShape;if(!N&&F3.traceIs(_,"pie-like")){var j=f.label,re=c.indexOf(j);if(l==="toggle")re===-1?c.push(j):c.splice(re,1);else if(l==="toggleothers"){var oe=re!==-1,_e=[];for(p=0;p{"use strict";nle.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var sle=ye((hnr,ole)=>{"use strict";var ale=qa(),kB=RL();ole.exports=function(t,r,n){var i=r._inHover,a=kB.isGrouped(r),o=kB.isReversed(r),s={},l=[],u=!1,c={},f=0,h=0,d,v;function _(H,N,j){if(r.visible!==!1&&!(n&&H!==r._id))if(N===""||!kB.isGrouped(r)){var re="~~i"+f;l.push(re),s[re]=[j],f++}else l.indexOf(N)===-1?(l.push(N),u=!0,s[N]=[j]):s[N].push(j)}for(d=0;dP&&(g=P)}k[d][0]._groupMinRank=g,k[d][0]._preGroupSort=d}var T=function(H,N){return H[0]._groupMinRank-N[0]._groupMinRank||H[0]._preGroupSort-N[0]._preGroupSort},z=function(H,N){return H.trace.legendrank-N.trace.legendrank||H._preSort-N._preSort};for(k.forEach(function(H,N){H[0]._preGroupSort=N}),k.sort(T),d=0;d{"use strict";var DL=Dr();function lle(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Pb.formatPiePercent=function(t,r){var n=lle((t*100).toPrecision(3));return DL.numSeparate(n,r)+"%"};Pb.formatPieValue=function(t,r){var n=lle(t.toPrecision(10));return DL.numSeparate(n,r)};Pb.getFirstFilled=function(t,r){if(DL.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var ylt=So(),_lt=Ca();ule.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?ylt.pointStyle(t,n,i,r):_lt.fill(t,r.color)}});var z3=ye((pnr,dle)=>{"use strict";var fle=Ca(),hle=l_().castOption,xlt=cle();dle.exports=function(t,r,n,i){var a=n.marker.line,o=hle(a.color,r.pts)||fle.defaultLine,s=hle(a.width,r.pts)||0;t.call(xlt,r,n,i).style("stroke-width",s).call(fle.stroke,o)}});var RB=ye((gnr,_le)=>{"use strict";var Ov=Oa(),LB=qa(),_v=Dr(),vle=_v.strTranslate,Kp=So(),T0=Ca(),PB=pv().extractOpts,FL=Ru(),blt=z3(),wlt=l_().castOption,Tlt=CB(),ple=12,gle=5,Ib=2,Alt=10,O3=5;_le.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+Tlt.itemGap*2)/2,l=vle(s,0),u=function(k,M,g,P){var T;if(k+1)T=k;else if(M&&M.width>0)T=M.width;else return 0;return a?P:Math.min(T,g)};t.each(function(k){var M=Ov.select(this),g=_v.ensureSingle(M,"g","layers");g.style("opacity",k[0].trace.opacity);var P=n.indentation,T=n.valign,z=k[0].lineHeight,O=k[0].height;if(T==="middle"&&P===0||!z||!O)g.attr("transform",null);else{var V={top:1,bottom:-1}[T],G=V*(.5*(z-O+3))||0,Z=n.indentation;g.attr("transform",vle(Z,G))}var H=g.selectAll("g.legendfill").data([k]);H.enter().append("g").classed("legendfill",!0);var N=g.selectAll("g.legendlines").data([k]);N.enter().append("g").classed("legendlines",!0);var j=g.selectAll("g.legendsymbols").data([k]);j.enter().append("g").classed("legendsymbols",!0),j.selectAll("g.legendpoints").data([k]).enter().append("g").classed("legendpoints",!0)}).each(x).each(h).each(v).each(d).each(b).each(A).each(E).each(c).each(f).each(p).each(C);function c(k){var M=mle(k),g=M.showFill,P=M.showLine,T=M.showGradientLine,z=M.showGradientFill,O=M.anyFill,V=M.anyLine,G=k[0],Z=G.trace,H,N,j=PB(Z),re=j.colorscale,oe=j.reversescale,_e=function(Ae){if(Ae.size())if(g)Kp.fillGroupStyle(Ae,r,!0);else{var De="legendfill-"+Z.uid;Kp.gradient(Ae,r,De,IB(oe),re,"fill")}},Me=function(Ae){if(Ae.size()){var De="legendline-"+Z.uid;Kp.lineGroupStyle(Ae),Kp.gradient(Ae,r,De,IB(oe),re,"stroke")}},ke=FL.hasMarkers(Z)||!O?"M5,0":V?"M5,-2":"M5,-3",me=Ov.select(this),ie=me.select(".legendfill").selectAll("path").data(g||z?[k]:[]);if(ie.enter().append("path").classed("js-fill",!0),ie.exit().remove(),ie.attr("d",ke+"h"+o+"v6h-"+o+"z").call(_e),P||T){var Se=u(void 0,Z.line,Alt,gle);N=_v.minExtend(Z,{line:{width:Se}}),H=[_v.minExtend(G,{trace:N})]}var Le=me.select(".legendlines").selectAll("path").data(P||T?[H]:[]);Le.enter().append("path").classed("js-line",!0),Le.exit().remove(),Le.attr("d",ke+(T?"l"+o+",0.0001":"h"+o)).call(P?Kp.lineGroupStyle:Me)}function f(k){var M=mle(k),g=M.anyFill,P=M.anyLine,T=M.showLine,z=M.showMarker,O=k[0],V=O.trace,G=!z&&!P&&!g&&FL.hasText(V),Z,H;function N(ie,Se,Le,Ae){var De=_v.nestedProperty(V,ie).get(),Pe=_v.isArrayOrTypedArray(De)&&Se?Se(De):De;if(a&&Pe&&Ae!==void 0&&(Pe=Ae),Le){if(PeLe[1])return Le[1]}return Pe}function j(ie){return O._distinct&&O.index&&ie[O.index]?ie[O.index]:ie[0]}if(z||G||T){var re={},oe={};if(z){re.mc=N("marker.color",j),re.mx=N("marker.symbol",j),re.mo=N("marker.opacity",_v.mean,[.2,1]),re.mlc=N("marker.line.color",j),re.mlw=N("marker.line.width",_v.mean,[0,5],Ib),oe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var _e=N("marker.size",_v.mean,[2,16],ple);re.ms=_e,oe.marker.size=_e}T&&(oe.line={width:N("line.width",j,[0,10],gle)}),G&&(re.tx="Aa",re.tp=N("textposition",j),re.ts=10,re.tc=N("textfont.color",j),re.tf=N("textfont.family",j),re.tw=N("textfont.weight",j),re.ty=N("textfont.style",j),re.tv=N("textfont.variant",j),re.tC=N("textfont.textcase",j),re.tE=N("textfont.lineposition",j),re.tS=N("textfont.shadow",j)),Z=[_v.minExtend(O,re)],H=_v.minExtend(V,oe),H.selectedpoints=null,H.texttemplate=null}var Me=Ov.select(this).select("g.legendpoints"),ke=Me.selectAll("path.scatterpts").data(z?Z:[]);ke.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),ke.exit().remove(),ke.call(Kp.pointStyle,H,r),z&&(Z[0].mrc=3);var me=Me.selectAll("g.pointtext").data(G?Z:[]);me.enter().append("g").classed("pointtext",!0).append("text").attr("transform",l),me.exit().remove(),me.selectAll("text").call(Kp.textPointStyle,H,r)}function h(k){var M=k[0].trace,g=M.type==="waterfall";if(k[0]._distinct&&g){var P=k[0].trace[k[0].dir].marker;return k[0].mc=P.color,k[0].mlw=P.line.width,k[0].mlc=P.line.color,_(k,this,"waterfall")}var T=[];M.visible&&g&&(T=k[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var z=Ov.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(T);z.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(O){var V=Ov.select(this),G=M[O[0]].marker,Z=u(void 0,G.line,O3,Ib);V.attr("d",O[1]).style("stroke-width",Z+"px").call(T0.fill,G.color),Z&&V.call(T0.stroke,G.line.color)})}function d(k){_(k,this)}function v(k){_(k,this,"funnel")}function _(k,M,g){var P=k[0].trace,T=P.marker||{},z=T.line||{},O=T.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",V=g?P.visible&&P.type===g:LB.traceIs(P,"bar"),G=Ov.select(M).select("g.legendpoints").selectAll("path.legend"+g).data(V?[k]:[]);G.enter().append("path").classed("legend"+g,!0).attr("d",O).attr("transform",l),G.exit().remove(),G.each(function(Z){var H=Ov.select(this),N=Z[0],j=u(N.mlw,T.line,O3,Ib);H.style("stroke-width",j+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var oe=PB(T),_e=oe.mid;_e===void 0&&(_e=(oe.max+oe.min)/2),re=Kp.tryColorscale(T,"")(_e)}var Me=re||N.mc||T.color,ke=T.pattern,me=Kp.getPatternAttr,ie=ke&&(me(ke.shape,0,"")||me(ke.path,0,""));if(ie){var Se=me(ke.bgcolor,0,null),Le=me(ke.fgcolor,0,null),Ae=ke.fgopacity,De=yle(ke.size,8,10),Pe=yle(ke.solidity,.5,1),ge="legend-"+P.uid;H.call(Kp.pattern,"legend",r,ge,ie,De,Pe,re,ke.fillmode,Se,Le,Ae)}else H.call(T0.fill,Me);j&&T0.stroke(H,N.mlc||z.color)})}function b(k){var M=k[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendbox").data(M.visible&&LB.traceIs(M,"box-violin")?[k]:[]);g.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),g.exit().remove(),g.each(function(){var P=Ov.select(this);if((M.boxpoints==="all"||M.points==="all")&&T0.opacity(M.fillcolor)===0&&T0.opacity((M.line||{}).color)===0){var T=_v.minExtend(M,{marker:{size:a?ple:_v.constrain(M.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});g.call(Kp.pointStyle,T,r)}else{var z=u(void 0,M.line,O3,Ib);P.style("stroke-width",z+"px").call(T0.fill,M.fillcolor),z&&T0.stroke(P,M.line.color)}})}function p(k){var M=k[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(M.visible&&M.type==="candlestick"?[k,k]:[]);g.enter().append("path").classed("legendcandle",!0).attr("d",function(P,T){return T?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,T){var z=Ov.select(this),O=M[T?"increasing":"decreasing"],V=u(void 0,O.line,O3,Ib);z.style("stroke-width",V+"px").call(T0.fill,O.fillcolor),V&&T0.stroke(z,O.line.color)})}function C(k){var M=k[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(M.visible&&M.type==="ohlc"?[k,k]:[]);g.enter().append("path").classed("legendohlc",!0).attr("d",function(P,T){return T?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,T){var z=Ov.select(this),O=M[T?"increasing":"decreasing"],V=u(void 0,O.line,O3,Ib);z.style("fill","none").call(Kp.dashLine,O.line.dash,V),V&&T0.stroke(z,O.line.color)})}function E(k){L(k,this,"pie")}function A(k){L(k,this,"funnelarea")}function L(k,M,g){var P=k[0],T=P.trace,z=g?T.visible&&T.type===g:LB.traceIs(T,g),O=Ov.select(M).select("g.legendpoints").selectAll("path.legend"+g).data(z?[k]:[]);if(O.enter().append("path").classed("legend"+g,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),O.exit().remove(),O.size()){var V=T.marker||{},G=u(wlt(V.line.width,P.pts),V.line,O3,Ib),Z="pieLike",H=_v.minExtend(T,{marker:{line:{width:G}}},Z),N=_v.minExtend(P,{trace:H},Z);blt(O,N,H,r)}}function x(k){var M=k[0].trace,g,P=[];if(M.visible)switch(M.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],g=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],g=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],g="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],g=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],g=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],g=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],g=!1;break}var T=Ov.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);T.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),T.exit().remove(),T.each(function(z,O){var V=Ov.select(this),G=PB(M),Z=G.colorscale,H=G.reversescale,N=function(_e){if(_e.size()){var Me="legendfill-"+M.uid;Kp.gradient(_e,r,Me,IB(H,g==="radial"),Z,"fill")}},j;if(Z){if(!g){var oe=Z.length;j=O===0?Z[H?oe-1:0][1]:O===1?Z[H?0:oe-1][1]:Z[Math.floor((oe-1)/2)][1]}}else{var re=M.vertexcolor||M.facecolor||M.color;j=_v.isArrayOrTypedArray(re)?re[O]||re[0]:re}V.attr("d",z[0]),j?V.call(T0.fill,j):V.call(N)})}};function IB(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function mle(e){var t=e[0].trace,r=t.contours,n=FL.hasLines(t),i=FL.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:n=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function yle(e,t,r){return e&&_v.isArrayOrTypedArray(e)?t:e>r?r:e}});var OB=ye((mnr,kle)=>{"use strict";var Sp=Oa(),Ph=Dr(),FB=Mc(),N3=qa(),xle=g3(),DB=yv(),Ih=So(),OL=Ca(),Rb=ru(),ble=ile(),$h=CB(),zB=Kh(),Ele=zB.LINE_SPACING,B3=zB.FROM_TL,wle=zB.FROM_BR,Tle=sle(),Slt=RB(),Ale=RL(),q3=1,Mlt=/^legend[0-9]*$/;kle.exports=function(t,r){if(r)Sle(t,r);else{var n=t._fullLayout,i=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var u=Sp.select(this),c=u.attr("class"),f=c.split(" ")[0];f.match(Mlt)&&i.indexOf(f)===-1&&u.remove()});for(var o=0;o1)}var v=n.hiddenlabels||[];if(!s&&(!n.showlegend||!l.length))return o.selectAll("."+i).remove(),n._topdefs.select("#"+a).remove(),FB.autoMargin(e,i);var _=Ph.ensureSingle(o,"g",i,function(M){s||M.attr("pointer-events","all")}),b=Ph.ensureSingleById(n._topdefs,"clipPath",a,function(M){M.append("rect")}),p=Ph.ensureSingle(_,"rect","bg",function(M){M.attr("shape-rendering","crispEdges")});p.call(OL.stroke,r.bordercolor).call(OL.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var C=Ph.ensureSingle(_,"g","scrollbox"),E=r.title;r._titleWidth=0,r._titleHeight=0;var A;E.text?(A=Ph.ensureSingle(C,"text",i+"titletext"),A.attr("text-anchor","start").call(Ih.font,E.font).text(E.text),qL(A,C,e,r,q3)):C.selectAll("."+i+"titletext").remove();var L=Ph.ensureSingle(_,"rect","scrollbar",function(M){M.attr($h.scrollBarEnterAttrs).call(OL.fill,$h.scrollBarColor)}),x=C.selectAll("g.groups").data(l);x.enter().append("g").attr("class","groups"),x.exit().remove();var k=x.selectAll("g.traces").data(Ph.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(M){var g=M[0].trace;return N3.traceIs(g,"pie-like")?v.indexOf(M[0].label)!==-1?.5:1:g.visible==="legendonly"?.5:1}).each(function(){Sp.select(this).call(Clt,e,r)}).call(Slt,e,r).each(function(){s||Sp.select(this).call(klt,e,i)}),Ph.syncOrAsync([FB.previousPromises,function(){return Ilt(e,x,k,r)},function(){var M=n._size,g=r.borderwidth,P=r.xref==="paper",T=r.yref==="paper";if(E.text&&Elt(A,r,g),!s){var z,O;P?z=M.l+M.w*r.x-B3[BL(r)]*r._width:z=n.width*r.x-B3[BL(r)]*r._width,T?O=M.t+M.h*(1-r.y)-B3[NL(r)]*r._effHeight:O=n.height*(1-r.y)-B3[NL(r)]*r._effHeight;var V=Rlt(e,i,z,O);if(V)return;if(n.margin.autoexpand){var G=z,Z=O;z=P?Ph.constrain(z,0,n.width-r._width):G,O=T?Ph.constrain(O,0,n.height-r._effHeight):Z,z!==G&&Ph.log("Constrain "+i+".x to make legend fit inside graph"),O!==Z&&Ph.log("Constrain "+i+".y to make legend fit inside graph")}Ih.setTranslate(_,z,O)}if(L.on(".drag",null),_.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var H=r._effHeight;s&&(H=r._height),p.attr({width:r._width-g,height:H-g,x:g/2,y:g/2}),Ih.setTranslate(C,0,0),b.select("rect").attr({width:r._width-2*g,height:H-2*g,x:g,y:g}),Ih.setClipUrl(C,a,e),Ih.setRect(L,0,0,0,0),delete r._scrollY}else{var N=Math.max($h.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),j=r._effHeight-N-2*$h.scrollBarMargin,re=r._height-r._effHeight,oe=j/re,_e=Math.min(r._scrollY||0,re);p.attr({width:r._width-2*g+$h.scrollBarWidth+$h.scrollBarMargin,height:r._effHeight-g,x:g/2,y:g/2}),b.select("rect").attr({width:r._width-2*g+$h.scrollBarWidth+$h.scrollBarMargin,height:r._effHeight-2*g,x:g,y:g+_e}),Ih.setClipUrl(C,a,e),De(_e,N,oe),_.on("wheel",function(){_e=Ph.constrain(r._scrollY+Sp.event.deltaY/j*re,0,re),De(_e,N,oe),_e!==0&&_e!==re&&Sp.event.preventDefault()});var Me,ke,me,ie=function(Ze,ct,pt){var Wt=(pt-ct)/oe+Ze;return Ph.constrain(Wt,0,re)},Se=function(Ze,ct,pt){var Wt=(ct-pt)/oe+Ze;return Ph.constrain(Wt,0,re)},Le=Sp.behavior.drag().on("dragstart",function(){var Ze=Sp.event.sourceEvent;Ze.type==="touchstart"?Me=Ze.changedTouches[0].clientY:Me=Ze.clientY,me=_e}).on("drag",function(){var Ze=Sp.event.sourceEvent;Ze.buttons===2||Ze.ctrlKey||(Ze.type==="touchmove"?ke=Ze.changedTouches[0].clientY:ke=Ze.clientY,_e=ie(me,Me,ke),De(_e,N,oe))});L.call(Le);var Ae=Sp.behavior.drag().on("dragstart",function(){var Ze=Sp.event.sourceEvent;Ze.type==="touchstart"&&(Me=Ze.changedTouches[0].clientY,me=_e)}).on("drag",function(){var Ze=Sp.event.sourceEvent;Ze.type==="touchmove"&&(ke=Ze.changedTouches[0].clientY,_e=Se(me,Me,ke),De(_e,N,oe))});C.call(Ae)}function De(Ze,ct,pt){r._scrollY=e._fullLayout[i]._scrollY=Ze,Ih.setTranslate(C,0,-Ze),Ih.setRect(L,r._width,$h.scrollBarMargin+Ze*pt,$h.scrollBarWidth,ct),b.select("rect").attr("y",g+Ze)}if(e._context.edits.legendPosition){var Pe,ge,Fe,ce;_.classed("cursor-move",!0),DB.init({element:_.node(),gd:e,prepFn:function(Ze){if(Ze.target!==L.node()){var ct=Ih.getTranslate(_);Fe=ct.x,ce=ct.y}},moveFn:function(Ze,ct){if(Fe!==void 0&&ce!==void 0){var pt=Fe+Ze,Wt=ce+ct;Ih.setTranslate(_,pt,Wt),Pe=DB.align(pt,r._width,M.l,M.l+M.w,r.xanchor),ge=DB.align(Wt+r._height,-r._height,M.t+M.h,M.t,r.yanchor)}},doneFn:function(){if(Pe!==void 0&&ge!==void 0){var Ze={};Ze[i+".x"]=Pe,Ze[i+".y"]=ge,N3.call("_guiRelayout",e,Ze)}},clickFn:function(Ze,ct){var pt=o.selectAll("g.traces").filter(function(){var Wt=this.getBoundingClientRect();return ct.clientX>=Wt.left&&ct.clientX<=Wt.right&&ct.clientY>=Wt.top&&ct.clientY<=Wt.bottom});pt.size()>0&&Cle(e,_,pt,Ze,ct)}})}}],e)}}function zL(e,t,r){var n=e[0],i=n.width,a=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||i)}function Cle(e,t,r,n,i){var a=r.data()[0][0].trace,o={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};a._group&&(o.group=a._group),N3.traceIs(a,"pie-like")&&(o.label=r.datum()[0].label);var s=xle.triggerHandler(e,"plotly_legendclick",o);if(n===1){if(s===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&ble(r,e,n)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var l=xle.triggerHandler(e,"plotly_legenddoubleclick",o);l!==!1&&s!==!1&&ble(r,e,n)}}function Clt(e,t,r){var n=UL(r),i=e.data()[0][0],a=i.trace,o=N3.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,l=r._maxNameLength,u,c;i.groupTitle?(u=i.groupTitle.text,c=i.groupTitle.font):(c=r.font,r.entries?u=i.text:(u=o?i.label:a.name,a._meta&&(u=Ph.templateString(u,a._meta))));var f=Ph.ensureSingle(e,"text",n+"text");f.attr("text-anchor","start").call(Ih.font,c).text(s?Mle(u,l):u);var h=r.indentation+r.itemwidth+$h.itemGap*2;Rb.positionText(f,h,0),s?f.call(Rb.makeEditable,{gd:t,text:u}).call(qL,e,t,r).on("edit",function(d){this.text(Mle(d,l)).call(qL,e,t,r);var v=i.trace._fullInput||{},_={};return _.name=d,v._isShape?N3.call("_guiRelayout",t,"shapes["+a.index+"].name",_.name):N3.call("_guiRestyle",t,_,a.index)}):qL(f,e,t,r)}function Mle(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function klt(e,t,r){var n=t._context.doubleClickDelay,i,a=1,o=Ph.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(OL.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){i=new Date().getTime(),i-t._legendMouseDownTimen&&(a=Math.max(a-1,1)),Cle(t,s,e,a,Sp.event)}}))}function qL(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Rb.convertToTspans(e,r,function(){Llt(t,r,n,i)})}function Llt(e,t,r,n){var i=e.data()[0][0];if(!r._inHover&&i&&!i.trace.showlegend){e.remove();return}var a=e.select("g[class*=math-group]"),o=a.node(),s=UL(r);r||(r=t._fullLayout[s]);var l=r.borderwidth,u;n===q3?u=r.title.font:i.groupTitle?u=i.groupTitle.font:u=r.font;var c=u.size*Ele,f,h;if(o){var d=Ih.bBox(o);f=d.height,h=d.width,n===q3?Ih.setTranslate(a,l,l+f*.75):Ih.setTranslate(a,0,f*.25)}else{var v="."+s+(n===q3?"title":"")+"text",_=e.select(v),b=Rb.lineCount(_),p=_.node();if(f=c*b,h=p?Ih.bBox(p).width:0,n===q3)r.title.side==="left"&&(h+=$h.itemGap*2),Rb.positionText(_,l+$h.titlePad,l+c);else{var C=$h.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(C=$h.itemGap,h-=r.indentation+r.itemwidth),Rb.positionText(_,C,-c*((b-1)/2-.3))}}n===q3?(r._titleWidth=h,r._titleHeight=f):(i.lineHeight=c,i.height=Math.max(f,16)+3,i.width=h)}function Plt(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function Ilt(e,t,r,n){var i=e._fullLayout,a=UL(n);n||(n=i[a]);var o=i._size,s=Ale.isVertical(n),l=Ale.isGrouped(n),u=n.entrywidthmode==="fraction",c=n.borderwidth,f=2*c,h=$h.itemGap,d=n.indentation+n.itemwidth+h*2,v=2*(c+h),_=NL(n),b=n.y<0||n.y===0&&_==="top",p=n.y>1||n.y===1&&_==="bottom",C=n.tracegroupgap,E={};let{orientation:A,yref:L}=n,{maxheight:x}=n,k=b||p||A!=="v"||L!=="paper";x||(x=k?.5:1);let M=k?i.height:o.h;n._maxHeight=Math.max(x>1?x:x*M,30);var g=0;n._width=0,n._height=0;var P=Plt(n);if(s)r.each(function(De){var Pe=De[0].height;Ih.setTranslate(this,c+P[0],c+P[1]+n._height+Pe/2+h),n._height+=Pe,n._width=Math.max(n._width,De[0].width)}),g=d+n._width,n._width+=h+d+f,n._height+=v,l&&(t.each(function(De,Pe){Ih.setTranslate(this,0,Pe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var T=BL(n),z=n.x<0||n.x===0&&T==="right",O=n.x>1||n.x===1&&T==="left",V=p||b,G=i.width/2;n._maxWidth=Math.max(z?V&&T==="left"?o.l+o.w:G:O?V&&T==="right"?o.r+o.w:G:o.w,2*d);var Z=0,H=0;r.each(function(De){var Pe=zL(De,n,d);Z=Math.max(Z,Pe),H+=Pe}),g=null;var N=0;if(l){var j=0,re=0,oe=0;t.each(function(){var De=0,Pe=0;Sp.select(this).selectAll("g.traces").each(function(Fe){var ce=zL(Fe,n,d),Ze=Fe[0].height;Ih.setTranslate(this,P[0],P[1]+c+h+Ze/2+Pe),Pe+=Ze,De=Math.max(De,ce),E[Fe[0].trace.legendgroup]=De});var ge=De+h;re>0&&ge+c+re>n._maxWidth?(N=Math.max(N,re),re=0,oe+=j+C,j=Pe):j=Math.max(j,Pe),Ih.setTranslate(this,re,oe),re+=ge}),n._width=Math.max(N,re)+c,n._height=oe+j+v}else{var _e=r.size(),Me=H+f+(_e-1)*h=n._maxWidth&&(N=Math.max(N,Se),me=0,ie+=ke,n._height+=ke,ke=0),Ih.setTranslate(this,P[0]+c+me,P[1]+c+ie+Pe/2+h),Se=me+ge+h,me+=Fe,ke=Math.max(ke,Pe)}),Me?(n._width=me+f,n._height=ke+v):(n._width=Math.max(N,Se)+f,n._height+=ke+v)}}n._width=Math.ceil(Math.max(n._width+P[0],n._titleWidth+2*(c+$h.titlePad))),n._height=Math.ceil(Math.max(n._height+P[1],n._titleHeight+2*(c+$h.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Le=e._context.edits,Ae=Le.legendText||Le.legendPosition;r.each(function(De){var Pe=Sp.select(this).select("."+a+"toggle"),ge=De[0].height,Fe=De[0].trace.legendgroup,ce=zL(De,n,d);l&&Fe!==""&&(ce=E[Fe]);var Ze=Ae?d:g||ce;!s&&!u&&(Ze+=h/2),Ih.setRect(Pe,0,-ge/2,Ze,ge)})}function Rlt(e,t,r,n){var i=e._fullLayout,a=i[t],o=BL(a),s=NL(a),l=a.xref==="paper",u=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var c=a.y<.5?"b":"t",f=a.x<.5?"l":"r",h={r:i.width-r,l:r+a._width,b:i.height-n,t:n+a._effHeight};if(l&&u)return FB.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*B3[o],r:a._width*wle[o],b:a._effHeight*wle[s],t:a._effHeight*B3[s]});l?e._fullLayout._reservedMargin[t][c]=h[c]:u||a.orientation==="v"?e._fullLayout._reservedMargin[t][f]=h[f]:e._fullLayout._reservedMargin[t][c]=h[c]}function BL(e){return Ph.isRightAnchor(e)?"right":Ph.isCenterAnchor(e)?"center":"left"}function NL(e){return Ph.isBottomAnchor(e)?"bottom":Ph.isMiddleAnchor(e)?"middle":"top"}function UL(e){return e._id||"legend"}});var UB=ye(NB=>{"use strict";var Db=Oa(),Sy=Eo(),Lle=cd(),Ff=Dr(),Dlt=Ff.pushUnique,qB=Ff.strTranslate,Flt=Ff.strRotate,zlt=g3(),A0=ru(),Olt=Qse(),bm=So(),vd=Ca(),VL=yv(),wm=ho(),qlt=hd().zindexSeparator,V3=qa(),Sg=ip(),Fb=DS(),Blt=SB(),Nlt=OB(),qle=Fb.YANGLE,BB=Math.PI*qle/180,Ult=1/Math.sin(BB),Vlt=Math.cos(BB),Glt=Math.sin(BB),Qc=Fb.HOVERARROWSIZE,ll=Fb.HOVERTEXTPAD,Ple={box:!0,ohlc:!0,violin:!0,candlestick:!0},Hlt={scatter:!0,scattergl:!0,splom:!0};function Ile(e,t){return e.distance-t.distance}NB.hover=function(t,r,n,i){t=Ff.getGraphDiv(t);var a=r.target;Ff.throttle(t._fullLayout._uid+Fb.HOVERID,Fb.HOVERMINTIME,function(){jlt(t,r,n,i,a)})};NB.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=Gle(i),o=Hle(i),s=t.map(function(b){var p=b._x0||b.x0||b.x||0,C=b._x1||b.x1||b.x||0,E=b._y0||b.y0||b.y||0,A=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var x=Math.min(p,C),k=Math.max(p,C),M=Math.min(E,A),g=Math.max(E,A),P=b.trace;if(V3.traceIs(P,"gl3d")){var T=i._fullLayout[P.scene]._scene.container,z=T.offsetLeft,O=T.offsetTop;x+=z,k+=z,M+=O,g+=O}L.bbox={x0:x+o,x1:k+o,y0:M+a,y1:g+a},r.inOut_bbox&&r.inOut_bbox.push(L.bbox)}else L=!1;return{color:b.color||vd.defaultLine,x0:b.x0||b.x||0,x1:b.x1||b.x||0,y0:b.y0||b.y||0,y1:b.y1||b.y||0,xLabel:b.xLabel,yLabel:b.yLabel,zLabel:b.zLabel,text:b.text,name:b.name,idealAlign:b.idealAlign,borderColor:b.borderColor,fontFamily:b.fontFamily,fontSize:b.fontSize,fontColor:b.fontColor,fontWeight:b.fontWeight,fontStyle:b.fontStyle,fontVariant:b.fontVariant,nameLength:b.nameLength,textAlign:b.textAlign,trace:b.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:b.hovertemplate||!1,hovertemplateLabels:b.hovertemplateLabels||!1,eventData:L}}),l=!1,u=Nle(s,{gd:i,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||vd.background,container:Db.select(r.container),outerContainer:r.outerContainer||r.container}),c=u.hoverLabels,f=5,h=0,d=0;c.sort(function(b,p){return b.y0-p.y0}).each(function(b,p){var C=b.y0-b.by/2;C-fk[0]._length||ce<0||ce>M[0]._length)return VL.unhoverRaw(e,t)}if(t.pointerX=Fe+k[0]._offset,t.pointerY=ce+M[0]._offset,"xval"in t?Z=Sg.flat(a,t.xval):Z=Sg.p2c(k,Fe),"yval"in t?H=Sg.flat(a,t.yval):H=Sg.p2c(M,ce),!Sy(Z[0])||!Sy(H[0]))return Ff.warn("Fx.hover failed",t,e),VL.unhoverRaw(e,t)}var pt=1/0;function Wt(pn,Vn){for(j=0;jLe&&(V.splice(0,Le),pt=V[0].distance),f&&O!==0&&V.length===0){Se.distance=O,Se.index=!1;var _t=oe._module.hoverPoints(Se,me,ie,"closest",{hoverLayer:s._hoverlayer});if(_t&&(_t=_t.filter(function($r){return $r.spikeDistance<=O})),_t&&_t.length){var tr,ar=_t.filter(function($r){return $r.xa.showspikes&&$r.xa.spikesnap!=="hovered data"});if(ar.length){var Er=ar[0];Sy(Er.x0)&&Sy(Er.y0)&&(tr=lt(Er),(!Ae.vLinePoint||Ae.vLinePoint.spikeDistance>tr.spikeDistance)&&(Ae.vLinePoint=tr))}var Zr=_t.filter(function($r){return $r.ya.showspikes&&$r.ya.spikesnap!=="hovered data"});if(Zr.length){var ri=Zr[0];Sy(ri.x0)&&Sy(ri.y0)&&(tr=lt(ri),(!Ae.hLinePoint||Ae.hLinePoint.spikeDistance>tr.spikeDistance)&&(Ae.hLinePoint=tr))}}}}}Wt();function st(pn,Vn,kn){for(var ea=null,ua=1/0,Vt,_t=0;_t0&&Math.abs(pn.distance)yt-1;Ur--)Wr(V[Ur]);V=Tr,sr()}var dt=e._hoverdata,Ge=[],Je=Gle(e),je=Hle(e);for(N=0;N1||V.length>1)||h==="closest"&&De&&V.length>1,fi=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),Hi=Nle(V,{gd:e,hovermode:h,rotateLabels:Jr,bgColor:fi,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),Pn=Hi.hoverLabels;if(Sg.isUnifiedHover(h)||(Xlt(Pn,Jr,s,Hi.commonLabelBoundingBox),Vle(Pn,Jr,s._invScaleX,s._invScaleY)),i&&i.tagName){var wn=V3.getComponentMethod("annotations","hasClickToShow")(e,Ge);Olt(Db.select(i),wn?"pointer":"")}!i||n||!Klt(e,t,dt)||(dt&&e.emit("plotly_unhover",{event:t,points:dt}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:k,yaxes:M,xvals:Z,yvals:H}))}function Ble(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Wlt=/([\s\S]*)<\/extra>/;function Nle(e,t){var r=t.gd,n=r._fullLayout,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var c=t.fontFamily||Fb.HOVERFONT,f=t.fontSize||Fb.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,v=t.fontVariant||n.font.variant,_=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,p=t.fontShadow||n.font.shadow,C=e[0],E=C.xa,A=C.ya,L=i.charAt(0),x=L+"Label",k=C[x];if(k===void 0&&E.type==="multicategory")for(var M=0;Mn.width-je&&($e=n.width-je),yt.attr("d","M"+(dt-$e)+",0L"+(dt-$e+Qc)+","+Je+Qc+"H"+je+"v"+Je+(ll*2+Ur.height)+"H"+-je+"V"+Je+Qc+"H"+(dt-$e-Qc)+"Z"),dt=$e,j.minX=dt-je,j.maxX=dt+je,E.side==="top"?(j.minY=Ge-(ll*2+Ur.height),j.maxY=Ge-ll):(j.minY=Ge+ll,j.maxY=Ge+(ll*2+Ur.height))}else{var wt,Ie,xe;A.side==="right"?(wt="start",Ie=1,xe="",dt=E._offset+E._length):(wt="end",Ie=-1,xe="-",dt=E._offset),Ge=A._offset+(C.y0+C.y1)/2,Yt.attr("text-anchor",wt),yt.attr("d","M0,0L"+xe+Qc+","+Qc+"V"+(ll+Ur.height/2)+"h"+xe+(ll*2+Ur.width)+"V-"+(ll+Ur.height/2)+"H"+xe+Qc+"V-"+Qc+"Z"),j.minY=Ge-(ll+Ur.height/2),j.maxY=Ge+(ll+Ur.height/2),A.side==="right"?(j.minX=dt+Qc,j.maxX=dt+Qc+(ll*2+Ur.width)):(j.minX=dt-Qc-(ll*2+Ur.width),j.maxX=dt-Qc);var Ce=Ur.height/2,vt=P-Ur.top-Ce,nr="clip"+n._uid+"commonlabel"+A._id,ir;if(dt=0?er=wr:ur+pt=0?er=ur:Qe+pt=0?Ut=$t:sr+Wt=0?Ut=sr:Et+Wt=0,(bt.idealAlign==="top"||!di)&&Jr?(xe-=vt/2,bt.anchor="end"):di?(xe+=vt/2,bt.anchor="start"):bt.anchor="middle",bt.crossPos=xe;else{if(bt.pos=xe,di=Ie+Ce/2+oi<=T,Jr=Ie-Ce/2-oi>=0,(bt.idealAlign==="left"||!di)&&Jr)Ie-=Ce/2,bt.anchor="end";else if(di)Ie+=Ce/2,bt.anchor="start";else{bt.anchor="middle";var fi=oi/2,Hi=Ie+fi-T,Pn=Ie-fi;Hi>0&&(Ie-=Hi),Pn<0&&(Ie+=-Pn)}bt.crossPos=Ie}Ge.attr("text-anchor",bt.anchor),je&&Je.attr("text-anchor",bt.anchor),yt.attr("transform",qB(Ie,xe)+(a?Flt(qle):""))}),{hoverLabels:Ft,commonLabelBoundingBox:j}}function Rle(e,t,r,n,i,a){var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ff.templateString(e.name,e.trace._meta)),o=zle(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===i?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o);var c=e.hovertemplate||!1;if(c){var f=e.hovertemplateLabels||e;e[l+"Label"]!==i&&(f[l+"other"]=f[l+"Val"],f[l+"otherLabel"]=f[l+"Label"]),s=Ff.hovertemplateString(c,f,n._d3locale,e.eventData[0]||{},e.trace._meta),s=s.replace(Wlt,function(h,d){return o=zle(d,e.nameLength),""})}return[s,o]}function Xlt(e,t,r,n){var i=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,l=e.size(),u=new Array(l),c=0,f=n.minX,h=n.maxX,d=n.minY,v=n.maxY,_=function(Z){return Z*r._invScaleX},b=function(Z){return Z*r._invScaleY};e.each(function(Z){var H=Z[i],N=Z[a],j=H._id.charAt(0)==="x",re=H.range;c===0&&re&&re[0]>re[1]!==j&&(s=-1);var oe=0,_e=j?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Me=Ule(Z,t),ke=Z.anchor,me=ke==="end"?-1:1,ie,Se;if(ke==="middle")ie=Z.crossPos+(j?b(Me.y-Z.by/2):_(Z.bx/2+Z.tx2width/2)),Se=ie+(j?b(Z.by):_(Z.bx));else if(j)ie=Z.crossPos+b(Qc+Me.y)-b(Z.by/2-Qc),Se=ie+b(Z.by);else{var Le=_(me*Qc+Me.x),Ae=Le+_(me*Z.bx);ie=Z.crossPos+Math.min(Le,Ae),Se=Z.crossPos+Math.max(Le,Ae)}j?d!==void 0&&v!==void 0&&Math.min(Se,v)-Math.max(ie,d)>1&&(N.side==="left"?(oe=N._mainLinePosition,_e=r.width):_e=N._mainLinePosition):f!==void 0&&h!==void 0&&Math.min(Se,h)-Math.max(ie,f)>1&&(N.side==="top"?(oe=N._mainLinePosition,_e=r.height):_e=N._mainLinePosition)}u[c++]=[{datum:Z,traceIndex:Z.trace.index,dp:0,pos:Z.pos,posref:Z.posref,size:Z.by*(j?Ult:1)/2,pmin:oe,pmax:_e}]}),u.sort(function(Z,H){return Z[0].posref-H[0].posref||s*(H[0].traceIndex-Z[0].traceIndex)});var p,C,E,A,L,x,k;function M(Z){var H=Z[0],N=Z[Z.length-1];if(C=H.pmin-H.pos-H.dp+H.size,E=N.pos+N.dp+N.size-H.pmax,C>.01){for(L=Z.length-1;L>=0;L--)Z[L].dp+=C;p=!1}if(!(E<.01)){if(C<-.01){for(L=Z.length-1;L>=0;L--)Z[L].dp-=E;p=!1}if(p){var j=0;for(A=0;AH.pmax&&j++;for(A=Z.length-1;A>=0&&!(j<=0);A--)x=Z[A],x.pos>H.pmax-1&&(x.del=!0,j--);for(A=0;A=0;L--)Z[L].dp-=E;for(A=Z.length-1;A>=0&&!(j<=0);A--)x=Z[A],x.pos+x.dp+x.size>H.pmax&&(x.del=!0,j--)}}}for(;!p&&o<=l;){for(o++,p=!0,A=0;A.01){for(L=P.length-1;L>=0;L--)P[L].dp+=C;for(g.push.apply(g,P),u.splice(A+1,1),k=0,L=g.length-1;L>=0;L--)k+=g[L].dp;for(E=k/g.length,L=g.length-1;L>=0;L--)g[L].dp-=E;p=!1}else A++}u.forEach(M)}for(A=u.length-1;A>=0;A--){var O=u[A];for(L=O.length-1;L>=0;L--){var V=O[L],G=V.datum;G.offset=V.dp,G.del=V.del}}}function Ule(e,t){var r=0,n=e.offset;return t&&(n*=-Glt,r=e.offset*Vlt),{x:r,y:n}}function Zlt(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Qc+ll),n=r+t*(e.txwidth+ll),i=e.anchor==="middle";return i&&(r-=e.tx2width/2,n+=e.txwidth/2+ll),{alignShift:t,textShiftX:r,text2ShiftX:n}}function Vle(e,t,r,n){var i=function(o){return o*r},a=function(o){return o*n};e.each(function(o){var s=Db.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,f=Zlt(o),h=Ule(o,t),d=h.x,v=h.y,_=u==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,p;_?p="M-"+i(o.bx/2+o.tx2width/2)+","+a(v-o.by/2)+"h"+i(o.bx)+"v"+a(o.by)+"h-"+i(o.bx)+"Z":b?p="M0,0L"+i(c*Qc+d)+","+a(Qc+v)+"v"+a(o.by/2-Qc)+"h"+i(c*o.bx)+"v-"+a(o.by)+"H"+i(c*Qc+d)+"V"+a(v-Qc)+"Z":p="M"+i(c*Qc+d)+","+a(v-o.by/2)+"h"+i(c*o.bx)+"v"+a(o.by)+"h"+i(-c*o.bx)+"Z",s.select("path").attr("d",p);var C=d+f.textShiftX,E=v+o.ty0-o.by/2+ll,A=o.textAlign||"auto";A!=="auto"&&(A==="left"&&u!=="start"?(l.attr("text-anchor","start"),C=_?-o.bx/2-o.tx2width/2+ll:-o.bx-ll):A==="right"&&u!=="end"&&(l.attr("text-anchor","end"),C=_?o.bx/2-o.tx2width/2-ll:o.bx+ll)),l.call(A0.positionText,i(C),a(E)),o.tx2width&&(s.select("text.name").call(A0.positionText,i(f.text2ShiftX+f.alignShift*ll+d),a(v+o.ty0-o.by/2+ll)),s.select("rect").call(bm.setRect,i(f.text2ShiftX+(f.alignShift-1)*o.tx2width/2+d),a(v-o.by/2-1),i(o.tx2width),a(o.by+2)))})}function Ylt(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Sy(h)&&h===0}var s=Array.isArray(r)?function(h,d){var v=Ff.castOption(i,r,h);return o(v)?v:Ff.extractOption({},n,"",d)}:function(h,d){return Ff.extractOption(a,n,h,d)};function l(h,d,v){var _=s(d,v);o(_)&&(e[h]=_)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("fontWeight","htw","hoverlabel.font.weight"),l("fontStyle","hty","hoverlabel.font.style"),l("fontVariant","htv","hoverlabel.font.variant"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ff.constrain(e.x0,0,e.xa._length),e.x1=Ff.constrain(e.x1,0,e.xa._length),e.y0=Ff.constrain(e.y0,0,e.ya._length),e.y1=Ff.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:wm.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:wm.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=wm.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+wm.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var c=wm.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+wm.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+c,t==="y"&&(e.distance+=1)}var f=e.hoverinfo||e.trace.hoverinfo;return f&&f!=="all"&&(f=Array.isArray(f)?f:f.split("+"),f.indexOf("x")===-1&&(e.xLabel=void 0),f.indexOf("y")===-1&&(e.yLabel=void 0),f.indexOf("z")===-1&&(e.zLabel=void 0),f.indexOf("text")===-1&&(e.text=void 0),f.indexOf("name")===-1&&(e.name=void 0)),e}function Dle(e,t,r){var n=r.container,i=r.fullLayout,a=i._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,c;if(n.selectAll(".spikeline").remove(),!!(l||s)){var f=vd.combine(i.plot_bgcolor,i.paper_bgcolor);if(s){var h=t.hLinePoint,d,v;u=h&&h.xa,c=h&&h.ya;var _=c.spikesnap;_==="cursor"?(d=o.pointerX,v=o.pointerY):(d=u._offset+h.x,v=c._offset+h.y);var b=Lle.readability(h.color,f)<1.5?vd.contrast(f):h.color,p=c.spikemode,C=c.spikethickness,E=c.spikecolor||b,A=wm.getPxPosition(e,c),L,x;if(p.indexOf("toaxis")!==-1||p.indexOf("across")!==-1){if(p.indexOf("toaxis")!==-1&&(L=A,x=d),p.indexOf("across")!==-1){var k=c._counterDomainMin,M=c._counterDomainMax;c.anchor==="free"&&(k=Math.min(k,c.position),M=Math.max(M,c.position)),L=a.l+k*a.w,x=a.l+M*a.w}n.insert("line",":first-child").attr({x1:L,x2:x,y1:v,y2:v,"stroke-width":C,stroke:E,"stroke-dasharray":bm.dashStyle(c.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:L,x2:x,y1:v,y2:v,"stroke-width":C+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}p.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A+(c.side!=="right"?C:-C),cy:v,r:C,fill:E}).classed("spikeline",!0)}if(l){var g=t.vLinePoint,P,T;u=g&&g.xa,c=g&&g.ya;var z=u.spikesnap;z==="cursor"?(P=o.pointerX,T=o.pointerY):(P=u._offset+g.x,T=c._offset+g.y);var O=Lle.readability(g.color,f)<1.5?vd.contrast(f):g.color,V=u.spikemode,G=u.spikethickness,Z=u.spikecolor||O,H=wm.getPxPosition(e,u),N,j;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(N=H,j=T),V.indexOf("across")!==-1){var re=u._counterDomainMin,oe=u._counterDomainMax;u.anchor==="free"&&(re=Math.min(re,u.position),oe=Math.max(oe,u.position)),N=a.t+(1-oe)*a.h,j=a.t+(1-re)*a.h}n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:j,"stroke-width":G,stroke:Z,"stroke-dasharray":bm.dashStyle(u.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:j,"stroke-width":G+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:P,cy:H-(u.side!=="top"?G:-G),r:G,fill:Z}).classed("spikeline",!0)}}}function Klt(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers)||i.binNumber!==a.binNumber)return!0}return!1}function Fle(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function zle(e,t){return A0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Jlt(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;o{"use strict";var $lt=Dr(),Qlt=Ca(),eut=ip().isUnifiedHover;jle.exports=function(t,r,n,i){i=i||{};var a=r.legend;function o(s){i.font[s]||(i.font[s]=a?r.legend.font[s]:r.font[s])}r&&eut(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=Qlt.combine(r.legend.bgcolor,r.paper_bgcolor)),i.bordercolor||(i.bordercolor=r.legend.bordercolor)):i.bgcolor||(i.bgcolor=r.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),n("hoverlabel.showarrow",i.showarrow),$lt.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var Xle=ye((xnr,Wle)=>{"use strict";var tut=Dr(),rut=fM(),iut=B1();Wle.exports=function(t,r){function n(i,a){return tut.coerce(t,r,iut,i,a)}rut(t,r,n)}});var Kle=ye((bnr,Yle)=>{"use strict";var Zle=Dr(),nut=i3(),aut=fM();Yle.exports=function(t,r,n,i){function a(s,l){return Zle.coerce(t,r,nut,s,l)}var o=Zle.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),aut(t,r,a,o)}});var VB=ye((wnr,Jle)=>{"use strict";var out=Dr(),sut=B1();Jle.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:out.coerce(t,r,sut,i,a)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var eue=ye((Tnr,Qle)=>{"use strict";var $le=Dr(),lut=B1(),uut=VB(),cut=fM();Qle.exports=function(t,r){function n(c,f){return $le.coerce(t,r,lut,c,f)}var i=uut(t,r);i&&(n("hoverdistance"),n("spikedistance"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=r._has("mapbox"),s=r._has("map"),l=r._has("geo"),u=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s||l)&&u===1||(o||s)&&l&&u===2)&&(r.dragmode="pan"),cut(t,r,n),$le.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var iue=ye((Anr,rue)=>{"use strict";var GB=Dr(),tue=qa();rue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(u){return function(c){return GB.coerceHoverinfo({hoverinfo:c},{_module:u._module},n)}}for(var a=0;a{"use strict";var hut=qa(),dut=UB().hover;nue.exports=function(t,r,n){var i=hut.getComponentMethod("annotations","onClick")(t,t._hoverdata);n!==void 0&&dut(t,r,n,!0);function a(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(i&&i.then?i.then(a):a(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var vf=ye((Mnr,lue)=>{"use strict";var vut=Oa(),GL=Dr(),put=yv(),hM=ip(),oue=B1(),sue=UB();lue.exports={moduleType:"component",name:"fx",constants:DS(),schema:{layout:oue},attributes:i3(),layoutAttributes:oue,supplyLayoutGlobalDefaults:Xle(),supplyDefaults:Kle(),supplyLayoutDefaults:eue(),calc:iue(),getDistanceFunction:hM.getDistanceFunction,getClosest:hM.getClosest,inbox:hM.inbox,quadrature:hM.quadrature,appendArrayPointValue:hM.appendArrayPointValue,castHoverOption:mut,castHoverinfo:yut,hover:sue.hover,unhover:put.unhover,loneHover:sue.loneHover,loneUnhover:gut,click:aue()};function gut(e){var t=GL.isD3Selection(e)?e:vut.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function mut(e,t,r){return GL.castOption(e,t,"hoverlabel."+r)}function yut(e,t,r){function n(i){return GL.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return GL.castOption(e,r,"hoverinfo",n)}});var Mg=ye(My=>{"use strict";My.selectMode=function(e){return e==="lasso"||e==="select"};My.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};My.openMode=function(e){return e==="drawline"||e==="drawopenpath"};My.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};My.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};My.selectingOrDrawing=function(e){return My.freeMode(e)||My.rectMode(e)}});var dM=ye((Cnr,uue)=>{"use strict";uue.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var HL=ye((knr,cue)=>{"use strict";cue.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var WL=ye((Lnr,fue)=>{"use strict";var jL=32;fue.exports={CIRCLE_SIDES:jL,i000:0,i090:jL/4,i180:jL/2,i270:jL/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var XL=ye((Pnr,due)=>{"use strict";var _ut=Dr().strTranslate;function hue(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function xut(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function but(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return hue(e,r[t])}}function wut(e){return _ut(e.xaxis._offset,e.yaxis._offset)}due.exports={p2r:hue,r2p:xut,axValue:but,getTransform:wut}});var u_=ye(Ey=>{"use strict";var Tut=QS(),gue=WL(),G3=gue.CIRCLE_SIDES,HB=gue.SQRT2,mue=XL(),vue=mue.p2r,pue=mue.r2p,Aut=[0,3,4,5,6,1,2],Sut=[0,3,4,1,2];Ey.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&l{"use strict";var yue=hf(),Tue=Mg(),Mut=Tue.drawMode,Eut=Tue.openMode,H3=WL(),_ue=H3.i000,xue=H3.i090,bue=H3.i180,wue=H3.i270,Cut=H3.cos45,kut=H3.sin45,Aue=XL(),YL=Aue.p2r,c_=Aue.r2p,Lut=Q1(),Put=Lut.clearOutline,KL=u_(),Iut=KL.readPaths,Rut=KL.writePaths,Dut=KL.ellipseOver,Fut=KL.fixDatesForPaths;function zut(e,t){if(e.length){var r=e[0][0];if(r){var n=t.gd,i=t.isActiveShape,a=t.dragmode,o=(n.layout||{}).shapes||[];if(!Mut(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var Out=Mg(),qut=Out.selectMode,But=Q1(),Nut=But.clearOutline,jB=u_(),Uut=jB.readPaths,Vut=jB.writePaths,Gut=jB.fixDatesForPaths;Eue.exports=function(t,r){if(t.length){var n=t[0][0];if(n){var i=n.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=r.isActiveSelection,f=r.dragmode,h=(a.layout||{}).selections||[];if(!qut(f)&&c!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Cue.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var f_=ye(Dd=>{"use strict";var zb=pM(),kue=Dr(),$L=ho();Dd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Dd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Dd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Dd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Dd.extractPathCoords=function(e,t,r){var n=[],i=e.match(zb.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.substr(1).match(zb.paramRE);if(!(!s||s.lengthd&&(_="X"),_});return u>d&&(v=v.replace(/[\s,]*X.*/,""),kue.log("Ignoring extra params in segment "+l)),c+v})}function gM(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var ZB=ye((Onr,Rue)=>{"use strict";var jut=Dr(),j3=ho(),Lue=ru(),Pue=So(),Wut=u_().readPaths,XB=f_(),Xut=XB.getPathString,Iue=S6(),Zut=Kh().FROM_TL;Rue.exports=function(t,r,n,i){if(i.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var s=j3.getFromId(t,n.xref),l=j3.getFromId(t,n.yref);for(var u in Iue){var c=Iue[u](n,s,l);c!==void 0&&(o[u]=c)}}a=jut.texttemplateStringForShapes(n.label.texttemplate,{},t._fullLayout._d3locale,o)}else a=n.label.text;var f={"data-index":r},h=n.label.font,d={"data-notex":1},v=i.append("g").attr(f).classed("shape-label",!0),_=v.append("text").attr(d).classed("shape-label-text",!0).text(a),b,p,C,E;if(n.path){var A=Xut(t,n),L=Wut(A,t);b=1/0,C=1/0,p=-1/0,E=-1/0;for(var x=0;x=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function Kut(e,t,r,n,i,a,o){var s=i.label.textposition,l=i.label.textangle,u=i.label.padding,c=i.type,f=Math.PI/180*a,h=Math.sin(f),d=Math.cos(f),v=i.label.xanchor,_=i.label.yanchor,b,p,C,E;if(c==="line"){s==="start"?(b=e,p=t):s==="end"?(b=r,p=n):(b=(e+r)/2,p=(t+n)/2),v==="auto"&&(s==="start"?l==="auto"?r>e?v="left":re?v="right":re?v="right":re?v="left":r{"use strict";var Jut=Dr(),$ut=Jut.strTranslate,Due=yv(),Oue=Mg(),Qut=Oue.drawMode,que=Oue.selectMode,Bue=qa(),Fue=Ca(),eP=WL(),ect=eP.i000,tct=eP.i090,rct=eP.i180,ict=eP.i270,nct=Q1(),Nue=nct.clearOutlineControllers,KB=u_(),QL=KB.pointsOnRectangle,YB=KB.pointsOnEllipse,act=KB.writePaths,oct=JL().newShapes,sct=JL().createShapeObj,lct=WB(),uct=ZB();Uue.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(YB(t[0])||n.hasText)&&s({redrawing:!0})}function s(H){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=oct(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=lct(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&Bue.call((H||{}).redrawing?"relayout":"_guiRelayout",a,N)}var l=a._fullLayout,u=l._zoomlayer,c=n.dragmode,f=Qut(c),h=que(c);(f||h)&&(a._fullLayout._outlining=!0),Nue(a),r.attr("d",act(t));var d,v,_,b,p;if(!i&&(n.isActiveShape||n.isActiveSelection)){p=cct([],t);var C=u.append("g").attr("class","outline-controllers");P(C),Z()}if(f&&n.hasText){var E=u.select(".label-temp"),A=sct(r,n,n.dragmode);uct(a,"label-temp",A,E)}function L(H){_=+H.srcElement.getAttribute("data-i"),b=+H.srcElement.getAttribute("data-j"),d[_][b].moveFn=x}function x(H,N){if(t.length){var j=p[_][b][1],re=p[_][b][2],oe=t[_],_e=oe.length;if(QL(oe)){var Me=H,ke=N;if(n.isActiveSelection){var me=zue(oe,b);me[1]===oe[b][1]?ke=0:Me=0}for(var ie=0;ie<_e;ie++)if(ie!==b){var Se=oe[ie];Se[1]===oe[b][1]&&(Se[1]=j+Me),Se[2]===oe[b][2]&&(Se[2]=re+ke)}if(oe[b][1]=j+Me,oe[b][2]=re+ke,!QL(oe))for(var Le=0;Le<_e;Le++)for(var Ae=0;Ae1&&!(H.length===2&&H[1][0]==="Z")&&(b===0&&(H[0][0]="M"),t[_]=H,o(),s())}}function g(H,N){if(H===2){_=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var j=t[_];!QL(j)&&!YB(j)&&M()}}function P(H){d=[];for(var N=0;N{"use strict";var hct=Oa(),Xue=qa(),Vue=Dr(),W3=ho(),dct=u_().readPaths,vct=tP(),iP=ZB(),Zue=Q1().clearOutlineControllers,JB=Ca(),QB=So(),pct=pl().arrayEditor,Gue=yv(),Hue=Ag(),Ob=pM(),Mp=f_(),$B=Mp.getPathString;Jue.exports={draw:eN,drawOne:Yue,eraseActiveShape:yct,drawLabel:iP};function eN(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;io&&Nt>s&&!st.shiftKey?Gue.getCursor($t/Gt,1-sr/Nt):"move";Hue(t,wr),Se=wr.split("-")[0]}}function Pe(st){rP(e)||(l&&(p=oe(r.xanchor)),u&&(C=_e(r.yanchor)),r.type==="path"?T=r.path:(d=l?r.x0:oe(r.x0),v=u?r.y0:_e(r.y0),_=l?r.x1:oe(r.x1),b=u?r.y1:_e(r.y1)),d<_?(L=d,g="x0",x=_,P="x1"):(L=_,g="x1",x=d,P="x0"),!u&&vb?(E=v,k="y0",A=b,M="y1"):(E=b,k="y1",A=v,M="y0"),De(st),ct(i,r),Wt(t,r,e),ie.moveFn=Se==="move"?ce:Ze,ie.altKey=st.altKey)}function ge(){rP(e)||(Hue(t),pt(i),Kue(t,e,r),Xue.call("_guiRelayout",e,a.getUpdateObj()))}function Fe(){rP(e)||pt(i)}function ce(st,lt){if(r.type==="path"){var Gt=function(sr){return sr},Nt=Gt,$t=Gt;l?h("xanchor",r.xanchor=Me(p+st)):(Nt=function(wr){return Me(oe(wr)+st)},O&&O.type==="date"&&(Nt=Mp.encodeDate(Nt))),u?h("yanchor",r.yanchor=ke(C+lt)):($t=function(wr){return ke(_e(wr)+lt)},G&&G.type==="date"&&($t=Mp.encodeDate($t))),h("path",r.path=jue(T,Nt,$t))}else l?h("xanchor",r.xanchor=Me(p+st)):(h("x0",r.x0=Me(d+st)),h("x1",r.x1=Me(_+st))),u?h("yanchor",r.yanchor=ke(C+lt)):(h("y0",r.y0=ke(v+lt)),h("y1",r.y1=ke(b+lt)));t.attr("d",$B(e,r)),ct(i,r),iP(e,n,r,z)}function Ze(st,lt){if(f){var Gt=function(Rr){return Rr},Nt=Gt,$t=Gt;l?h("xanchor",r.xanchor=Me(p+st)):(Nt=function(ei){return Me(oe(ei)+st)},O&&O.type==="date"&&(Nt=Mp.encodeDate(Nt))),u?h("yanchor",r.yanchor=ke(C+lt)):($t=function(ei){return ke(_e(ei)+lt)},G&&G.type==="date"&&($t=Mp.encodeDate($t))),h("path",r.path=jue(T,Nt,$t))}else if(c){if(Se==="resize-over-start-point"){var sr=d+st,wr=u?v-lt:v+lt;h("x0",r.x0=l?sr:Me(sr)),h("y0",r.y0=u?wr:ke(wr))}else if(Se==="resize-over-end-point"){var ur=_+st,Qe=u?b-lt:b+lt;h("x1",r.x1=l?ur:Me(ur)),h("y1",r.y1=u?Qe:ke(Qe))}}else{var Et=function(Rr){return Se.indexOf(Rr)!==-1},er=Et("n"),Ut=Et("s"),Ft=Et("w"),bt=Et("e"),yt=er?E+lt:E,Yt=Ut?A+lt:A,lr=Ft?L+st:L,Tr=bt?x+st:x;u&&(er&&(yt=E-lt),Ut&&(Yt=A-lt)),(!u&&Yt-yt>s||u&&yt-Yt>s)&&(h(k,r[k]=u?yt:ke(yt)),h(M,r[M]=u?Yt:ke(Yt))),Tr-lr>o&&(h(g,r[g]=l?lr:Me(lr)),h(P,r[P]=l?Tr:Me(Tr)))}t.attr("d",$B(e,r)),ct(i,r),iP(e,n,r,z)}function ct(st,lt){(l||u)&&Gt();function Gt(){var Nt=lt.type!=="path",$t=st.selectAll(".visual-cue").data([0]),sr=1;$t.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":sr}).classed("visual-cue",!0);var wr=oe(l?lt.xanchor:Vue.midRange(Nt?[lt.x0,lt.x1]:Mp.extractPathCoords(lt.path,Ob.paramIsX))),ur=_e(u?lt.yanchor:Vue.midRange(Nt?[lt.y0,lt.y1]:Mp.extractPathCoords(lt.path,Ob.paramIsY)));if(wr=Mp.roundPositionForSharpStrokeRendering(wr,sr),ur=Mp.roundPositionForSharpStrokeRendering(ur,sr),l&&u){var Qe="M"+(wr-1-sr)+","+(ur-1-sr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";$t.attr("d",Qe)}else if(l){var Et="M"+(wr-1-sr)+","+(ur-9-sr)+"v18 h2 v-18 Z";$t.attr("d",Et)}else{var er="M"+(wr-9-sr)+","+(ur-1-sr)+"h18 v2 h-18 Z";$t.attr("d",er)}}}function pt(st){st.selectAll(".visual-cue").remove()}function Wt(st,lt,Gt){var Nt=lt.xref,$t=lt.yref,sr=W3.getFromId(Gt,Nt),wr=W3.getFromId(Gt,$t),ur="";Nt!=="paper"&&!sr.autorange&&(ur+=Nt),$t!=="paper"&&!wr.autorange&&(ur+=$t),QB.setClipUrl(st,ur?"clip"+Gt._fullLayout._uid+ur:null,Gt)}}function jue(e,t,r){return e.replace(Ob.segmentRE,function(n){var i=0,a=n.charAt(0),o=Ob.paramIsX[a],s=Ob.paramIsY[a],l=Ob.numParams[a],u=n.substr(1).replace(Ob.paramRE,function(c){return i>=l||(o[i]?c=t(c):s[i]&&(c=r(c)),i++),c});return a+u})}function mct(e,t){if(nP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Wue(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Wue,eN(e)}}}function Wue(e){if(nP(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(Zue(e),delete e._fullLayout._activeShapeIndex,eN(e))}}function yct(e){if(nP(e)){Zue(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var S0=qa(),$ue=Mc(),Que=hf(),Pl=HL(),_ct=aP().eraseActiveShape,oP=Dr(),rl=oP._,Il=oce.exports={};Il.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?rl(e,"Download plot as a PNG"):rl(e,"Download plot")},icon:Pl.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};oP.notifier(rl(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){oP.notifier(rl(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){oP.notifier(rl(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Il.sendDataToCloud={name:"sendDataToCloud",title:function(e){return rl(e,"Edit in Chart Studio")},icon:Pl.disk,click:function(e){$ue.sendDataToCloud(e)}};Il.editInChartStudio={name:"editInChartStudio",title:function(e){return rl(e,"Edit in Chart Studio")},icon:Pl.pencil,click:function(e){$ue.sendDataToCloud(e)}};Il.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return rl(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Pl.zoombox,click:qv};Il.pan2d={name:"pan2d",_cat:"pan",title:function(e){return rl(e,"Pan")},attr:"dragmode",val:"pan",icon:Pl.pan,click:qv};Il.select2d={name:"select2d",_cat:"select",title:function(e){return rl(e,"Box Select")},attr:"dragmode",val:"select",icon:Pl.selectbox,click:qv};Il.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return rl(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Pl.lasso,click:qv};Il.drawclosedpath={name:"drawclosedpath",title:function(e){return rl(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Pl.drawclosedpath,click:qv};Il.drawopenpath={name:"drawopenpath",title:function(e){return rl(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Pl.drawopenpath,click:qv};Il.drawline={name:"drawline",title:function(e){return rl(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Pl.drawline,click:qv};Il.drawrect={name:"drawrect",title:function(e){return rl(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Pl.drawrect,click:qv};Il.drawcircle={name:"drawcircle",title:function(e){return rl(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Pl.drawcircle,click:qv};Il.eraseshape={name:"eraseshape",title:function(e){return rl(e,"Erase active shape")},icon:Pl.eraseshape,click:_ct};Il.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return rl(e,"Zoom in")},attr:"zoom",val:"in",icon:Pl.zoom_plus,click:qv};Il.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return rl(e,"Zoom out")},attr:"zoom",val:"out",icon:Pl.zoom_minus,click:qv};Il.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return rl(e,"Autoscale")},attr:"zoom",val:"auto",icon:Pl.autoscale,click:qv};Il.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return rl(e,"Reset axes")},attr:"zoom",val:"reset",icon:Pl.home,click:qv};Il.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return rl(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Pl.tooltip_basic,gravity:"ne",click:qv};Il.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return rl(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Pl.tooltip_compare,gravity:"ne",click:qv};function qv(e,t){var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=Que.list(e,null,!0),l=a._cartesianSpikesEnabled,u,c;if(n==="zoom"){var f=i==="in"?.5:2,h=(1+f)/2,d=(1-f)/2,v,_;for(c=0;c{"use strict";var sce=iN(),wct=Object.keys(sce),lce=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],uce=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(lce),Z3=[],Tct=function(e){if(uce.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();Z3.indexOf(t)===-1&&Z3.push(t),Z3.indexOf(r)===-1&&Z3.push(r)}};wct.forEach(function(e){Tct(sce[e])});Z3.sort();cce.exports={DRAW_MODES:lce,backButtons:uce,foreButtons:Z3}});var aN=ye((Gnr,fce)=>{"use strict";var Vnr=nN();fce.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var dce=ye((Hnr,hce)=>{"use strict";var Act=Dr(),mM=Ca(),Sct=pl(),Mct=aN();hce.exports=function(t,r){var n=t.modebar||{},i=Sct.newContainer(r,"modebar");function a(s,l){return Act.coerce(n,i,Mct,s,l)}a("orientation"),a("bgcolor",mM.addOpacity(r.paper_bgcolor,.5));var o=mM.contrast(mM.rgb(r.modebar.bgcolor));a("color",mM.addOpacity(o,.3)),a("activecolor",mM.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var mce=ye((jnr,gce)=>{"use strict";var oN=Oa(),Ect=Eo(),lP=Dr(),vce=HL(),Cct=s6().version,kct=new DOMParser;function pce(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Tm=pce.prototype;Tm.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this.element.setAttribute("role","toolbar"),this._uid=i,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=n.modebar,o="#"+i+" .modebar-group";document.querySelectorAll(o).forEach(function(f){f.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var c=this.getLogo();r.watermark&&(c.className=c.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(c,this.element.childNodes[0]):this.element.appendChild(c),this.hasLogo=!0}this.updateActiveButton(),lP.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Tm.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var n=t.createGroup();r.forEach(function(i){var a=i.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(i);t.buttonElements.push(o),n.appendChild(o)}),t.element.appendChild(n)})};Tm.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Tm.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(r.setAttribute("data-title",n),r.setAttribute("aria-label",n)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var i=e.val;i!==void 0&&(typeof i=="function"&&(i=i(this.graphInfo)),r.setAttribute("data-val",i));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&oN.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||vce.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Tm.createIcon=function(e){var t=Ect(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(r,"svg"),n.setAttribute("viewBox",[0,0,e.width,t].join(" ")),n.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):e.ascent!==void 0&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(i)}if(e.svg){var a=kct.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Tm.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var i=n.getAttribute("data-val")||!0,a=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",s=oN.select(n),l=function(f,h){var d=t.modebar,v=f.querySelector(".icon path");v&&(h||f.matches(":hover")?v.style.fill=d.activecolor:v.style.fill=d.color)};if(o){if(a===r){var u=!s.classed("active");s.classed("active",u),l(n,u)}}else{var c=a===null?a:lP.nestedProperty(t,a).get();s.classed("active",c===i),l(n,c===i)}})};Tm.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var Ict=hf(),yce=Ru(),sN=qa(),Rct=ip().isUnifiedHover,Dct=mce(),uP=iN(),Fct=nN().DRAW_MODES,zct=Dr().extendDeep;_ce.exports=function(t){var r=t._fullLayout,n=t._context,i=r._modeBar;if(!n.displayModeBar&&!n.watermark){i&&(i.destroy(),delete r._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=Vct(a):!n.displayModeBar&&n.watermark?o=[]:o=Oct(t),i?i.update(t,o):r._modeBar=Dct(t,o)};function Oct(e){var t=e._fullLayout,r=e._fullData,n=e._context;function i(N,j){if(typeof j=="string"){if(j.toLowerCase()===N.toLowerCase())return!0}else{var re=j.name,oe=j._cat||j.name;if(re===N||oe===N.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=n.modeBarButtonsToAdd.concat(a.filter(function(N){for(var j=0;j1?(P=["toggleHover"],T=["resetViews"]):f?(g=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],T=["resetGeo"]):c?(P=["hoverClosest3d"],T=["resetCameraDefault3d","resetCameraLastSave3d"]):_?(g=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],T=["resetViewMapbox"]):b?(g=["zoomInMap","zoomOutMap"],P=["toggleHover"],T=["resetViewMap"]):h?P=["hoverClosestPie"]:E?(P=["hoverClosestCartesian","hoverCompareCartesian"],T=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Nct(r)||L)&&(P=[]),u&&!A&&(g=["zoomIn2d","zoomOut2d","autoScale2d"],T[0]!=="resetViews"&&(T=["resetScale2d"])),c?z=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!A||v?z=["zoom2d","pan2d"]:_||b||f?z=["pan2d"]:p&&(z=["zoom2d"]),Bct(r)&&z.push("select2d","lasso2d");var O=[],V=function(N){O.indexOf(N)===-1&&P.indexOf(N)!==-1&&O.push(N)};if(Array.isArray(s)){for(var G=[],Z=0;Z{"use strict";bce.exports={moduleType:"component",name:"modebar",layoutAttributes:aN(),supplyLayoutDefaults:dce(),manage:xce()}});var uN=ye((Znr,wce)=>{"use strict";var Gct=Kh().FROM_BL;wce.exports=function(t,r,n){n===void 0&&(n=Gct[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*r),t.l2r(a+(i[1]-a)*r)],t.setScale()}});var Bb=ye(yM=>{"use strict";var qb=Dr(),cN=Tg(),Eg=hf().id2name,Hct=Rd(),Tce=uN(),jct=ym(),Wct=hs().ALMOST_EQUAL,Xct=Kh().FROM_BL;yM.handleDefaults=function(e,t,r){var n=r.axIds,i=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,c,f,h,d,v;for(s=0;sa?r.substr(a):n.substr(i))+o}function Yct(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;oWct*v&&!C)){for(a=0;az&&reP&&(P=re);var _e=(P-g)/(2*T);f/=_e,g=l.l2r(g),P=l.l2r(P),l.range=l._input.range=x{"use strict";var fP=Oa(),Bv=qa(),Jp=Mc(),M0=Dr(),dN=ru(),vN=dM(),_M=Ca(),Y3=So(),Ece=Mb(),Ice=lN(),xM=ho(),Cy=Kh(),Rce=Bb(),Kct=Rce.enforce,Jct=Rce.clean,Cce=Tg().doAutoRange,Dce="start",$ct="middle",Fce="end",Qct=hd().zindexSeparator;pd.layoutStyles=function(e){return M0.syncOrAsync([Jp.doAutoMargin,tft],e)};function eft(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function tft(e){var t=e._fullLayout,r=t._size,n=r.p,i=xM.list(e,"",!0),a,o,s,l,u,c;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(Y3.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),pd.drawMainTitle(e),Ice.manage(e),!t._has("cartesian"))return Jp.previousPromises(e);function f(Pe,ge,Fe){var ce=Pe._lw/2;if(Pe._id.charAt(0)==="x"){if(ge){if(Fe==="top")return ge._offset-n-ce}else return r.t+r.h*(1-(Pe.position||0))+ce%1;return ge._offset+ge._length+n+ce}if(ge){if(Fe==="right")return ge._offset+ge._length+n+ce}else return r.l+r.w*(Pe.position||0)+ce%1;return ge._offset-n-ce}for(a=0;a0){aft(e,a,u,l),s.attr({x:o,y:a,"text-anchor":n,dy:Pce(t.yanchor)}).call(dN.positionText,o,a);var c=(t.text.match(dN.BR_TAG_ALL)||[]).length;if(c){var f=Cy.LINE_SPACING*c+Cy.MID_SHIFT;t.y===0&&(f=-f),s.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-f+"em";this.setAttribute("dy",b)})}var h=fP.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),v=d.y+d.height,_=v+Ece.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:_,"text-anchor":n,dy:Pce(t.yanchor)}).call(dN.positionText,o,_)}}}};function rft(e,t,r,n,i){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=M0.isTopAnchor(t)?n:n-i,s=r==="b"?a-o:o;return M0.isTopAnchor(t)&&r==="t"||M0.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=ift(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function aft(e,t,r,n){var i="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},l={};a.yref==="paper"&&rft(e,a,o,t,n)?s[o]=r:a.yref==="container"&&(l[o]=r,e._fullLayout._reservedMargin[i]=l),Jp.allowAutoMargin(e,i),Jp.autoMargin(e,i,s)}function oft(e,t){var r=e.title,n=e._size,i=0;switch(t===Dce?i=r.pad.l:t===Fce&&(i=-r.pad.r),r.xref){case"paper":return n.l+n.w*r.x+i;case"container":default:return e.width*r.x+i}}function sft(e,t){var r=e.title,n=e._size,i=0;if(t==="0em"||!t?i=-r.pad.b:t===Cy.CAP_SHIFT+"em"&&(i=r.pad.t),r.y==="auto")return n.t/2;switch(r.yref){case"paper":return n.t+n.h-n.h*r.y+i;case"container":default:return e.height-e.height*r.y+i}}function Pce(e){return e==="top"?Cy.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Cy.MID_SHIFT+"em"}function lft(e){var t=e.title,r=$ct;return M0.isRightAnchor(t)?r=Fce:M0.isLeftAnchor(t)&&(r=Dce),r}function uft(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=Cy.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=Cy.MID_SHIFT+"em"),r}pd.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var cft=u_().readPaths,fft=tP(),zce=Q1().clearOutlineControllers,pN=Ca(),Oce=So(),hft=pl().arrayEditor,qce=f_(),dft=qce.getPathString;Nce.exports={draw:hP,drawOne:Bce,activateLastSelection:gft};function hP(e){var t=e._fullLayout;zce(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i=0;b--){var p=o.append("path").attr(l).style("opacity",b?.1:u).call(pN.stroke,f).call(pN.fill,c).call(Oce.dashLine,b?"solid":d,b?4+h:h);if(vft(p,e,n),v){var C=hft(e.layout,"selections",n);p.style({cursor:"move"});var E={element:p.node(),plotinfo:i,gd:e,editHelpers:C,isActiveSelection:!0},A=cft(s,e);fft(A,p,E)}else p.style("pointer-events",b?"all":"none");_[b]=p}var L=_[0],x=_[1];x.node().addEventListener("click",function(){return pft(e,L)})}}function vft(e,t,r){var n=r.xref+r.yref;Oce.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function pft(e,t){if(dP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){gN(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=gN,hP(e)}}}function gft(e){if(dP(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=gN,hP(e)}}function gN(e){if(dP(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(zce(e),delete e._fullLayout._activeSelectionIndex,hP(e))}}});var Vce=ye(($nr,Uce)=>{function mft(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}Uce.exports=mft});var Hce=ye((Qnr,Gce)=>{function yft(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],s=i[0],l=i[1],u=r[0],c=r[1];return(s-a)*(c-o)-(l-o)*(u-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],l=i[1]-n[1],u=s*o+a*l;if(u-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])e!=s-a>e&&(o-c)*(a-f)/(s-f)+c-i>e&&(l=!l),o=c,s=f}return l}};return t}Gce.exports=yft});var Wce=ye((ear,jce)=>{var _ft={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};jce.exports=_ft});var Zce=ye((tar,Xce)=>{var wM=Wce();function xft(e,t,r){function n(v,_){return{id:r?r.segmentId():-1,start:v,end:_,myFill:{above:null,below:null},otherFill:null}}function i(v,_,b){return{id:r?r.segmentId():-1,start:v,end:_,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=wM.create();function o(v,_,b,p,C,E){var A=t.pointsCompare(_,C);return A!==0?A:t.pointsSame(b,E)?0:v!==p?v?1:-1:t.pointAboveOrOnLine(b,p?C:E,p?E:C)?1:-1}function s(v,_){a.insertBefore(v,function(b){var p=o(v.isStart,v.pt,_,b.isStart,b.pt,b.other.pt);return p<0})}function l(v,_){var b=wM.node({isStart:!0,pt:v.start,seg:v,primary:_,other:null,status:null});return s(b,v.end),b}function u(v,_,b){var p=wM.node({isStart:!1,pt:_.end,seg:_,primary:b,other:v,status:null});v.other=p,s(p,v.pt)}function c(v,_){var b=l(v,_);return u(b,v,_),b}function f(v,_){r&&r.segmentChop(v.seg,_),v.other.remove(),v.seg.end=_,v.other.pt=_,s(v.other,v.pt)}function h(v,_){var b=i(_,v.seg.end,v.seg);return f(v,_),c(b,v.primary)}function d(v,_){var b=wM.create();function p(G,Z){var H=G.seg.start,N=G.seg.end,j=Z.seg.start,re=Z.seg.end;return t.pointsCollinear(H,j,re)?t.pointsCollinear(N,j,re)||t.pointAboveOrOnLine(N,j,re)?1:-1:t.pointAboveOrOnLine(H,j,re)?1:-1}function C(G){return b.findTransition(function(Z){var H=p(G,Z.ev);return H>0})}function E(G,Z){var H=G.seg,N=Z.seg,j=H.start,re=H.end,oe=N.start,_e=N.end;r&&r.checkIntersection(H,N);var Me=t.linesIntersect(j,re,oe,_e);if(Me===!1){if(!t.pointsCollinear(j,re,oe)||t.pointsSame(j,_e)||t.pointsSame(re,oe))return!1;var ke=t.pointsSame(j,oe),me=t.pointsSame(re,_e);if(ke&&me)return Z;var ie=!ke&&t.pointBetween(j,oe,_e),Se=!me&&t.pointBetween(re,oe,_e);if(ke)return Se?h(Z,re):h(G,_e),Z;ie&&(me||(Se?h(Z,re):h(G,_e)),h(Z,j))}else Me.alongA===0&&(Me.alongB===-1?h(G,oe):Me.alongB===0?h(G,Me.pt):Me.alongB===1&&h(G,_e)),Me.alongB===0&&(Me.alongA===-1?h(Z,j):Me.alongA===0?h(Z,Me.pt):Me.alongA===1&&h(Z,re));return!1}for(var A=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let G=function(){if(k){var Z=E(L,k);if(Z)return Z}return M?E(L,M):!1};var V=G;r&&r.segmentNew(L.seg,L.primary);var x=C(L),k=x.before?x.before.ev:null,M=x.after?x.after.ev:null;r&&r.tempStatus(L.seg,k?k.seg:!1,M?M.seg:!1);var g=G();if(g){if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,P&&(g.seg.myFill.above=!g.seg.myFill.above)}else g.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(g.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,M?L.seg.myFill.below=M.seg.myFill.above:L.seg.myFill.below=v,P?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var T;M?L.primary===M.primary?T=M.seg.otherFill.above:T=M.seg.myFill.above:T=L.primary?_:v,L.seg.otherFill={above:T,below:T}}r&&r.status(L.seg,k?k.seg:!1,M?M.seg:!1),L.other.status=x.insert(wM.node({ev:L}))}else{var z=L.status;if(z===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(z.prev)&&b.exists(z.next)&&E(z.prev.ev,z.next.ev),r&&r.statusRemove(z.ev.seg),z.remove(),!L.primary){var O=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=O}A.push(L.seg)}a.getHead().remove()}return r&&r.done(),A}return e?{addRegion:function(v){for(var _,b=v[v.length-1],p=0;p{function bft(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},c=l;function f(V,G,Z){return c.index=V,c.matches_head=G,c.matches_pt1=Z,c===l?(c=u,!1):(c=null,!0)}for(var h=0;h{function TM(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var wft={union:function(e,t){return TM(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return TM(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return TM(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return TM(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return TM(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};Jce.exports=wft});var efe=ye((nar,Qce)=>{var Tft={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var c=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[c]})}for(var s=o(a[0]),l=1;l{var Aft=Vce(),Sft=Hce(),tfe=Zce(),Mft=Kce(),AM=$ce(),rfe=efe(),E0=!1,SM=Sft(),Ep;Ep={buildLog:function(e){return e===!0?E0=Aft():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return SM.epsilon(e)},segments:function(e){var t=tfe(!0,SM,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=tfe(!1,SM,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:AM.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:AM.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:AM.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:AM.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:AM.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Mft(e.segments,SM,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return rfe.toPolygon(Ep,e)},polygonToGeoJSON:function(e){return rfe.fromPolygon(Ep,SM,e)},union:function(e,t){return MM(e,t,Ep.selectUnion)},intersect:function(e,t){return MM(e,t,Ep.selectIntersect)},difference:function(e,t){return MM(e,t,Ep.selectDifference)},differenceRev:function(e,t){return MM(e,t,Ep.selectDifferenceRev)},xor:function(e,t){return MM(e,t,Ep.selectXor)}};function MM(e,t,r){var n=Ep.segments(e),i=Ep.segments(t),a=Ep.combine(n,i),o=r(a);return Ep.polygon(o)}typeof window=="object"&&(window.PolyBool=Ep);ife.exports=Ep});var ofe=ye((oar,afe)=>{afe.exports=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var l=i-n,u=0,c=l-1;uo!=v>o&&a<(d-f)*(o-h)/(v-h)+f;_&&(s=!s)}return s}});var EM=ye((sar,sfe)=>{"use strict";var yN=w6().dot,vP=hs().BADNUM,pP=sfe.exports={};pP.tester=function(t){var r=t.slice(),n=r[0][0],i=n,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;si||p===vP||po||_&&u(v))}function f(v,_){var b=v[0],p=v[1];if(b===vP||bi||p===vP||po)return!1;var C=r.length,E=r[0][0],A=r[0][1],L=0,x,k,M,g,P;for(x=1;xMath.max(k,E)||p>Math.max(M,A)))if(ps||Math.abs(yN(f,u))>i)return!0;return!1};pP.filter=function(t,r){var n=[t[0]],i=0,a=0;function o(l){t.push(l);var u=n.length,c=i;n.splice(a+1);for(var f=c+1;f1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:n}}});var ufe=ye((lar,lfe)=>{"use strict";lfe.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Pfe=ye((uar,Lfe)=>{"use strict";var cfe=nfe(),Eft=ofe(),LM=qa(),Cft=So().dashStyle,CM=Ca(),kft=vf(),Lft=ip().makeEventData,FM=Mg(),Pft=FM.freeMode,Ift=FM.rectMode,PM=FM.drawMode,wN=FM.openMode,TN=FM.selectMode,ffe=f_(),hfe=pM(),mfe=tP(),yfe=Q1().clearOutline,_fe=u_(),_N=_fe.handleEllipse,Rft=_fe.readPaths,Dft=JL().newShapes,Fft=WB(),zft=mN().activateLastSelection,mP=Dr(),Oft=mP.sorterAsc,xfe=EM(),kM=F6(),C0=hf().getFromId,qft=dM(),Bft=bM().redrawReglTraces,yP=ufe(),Am=yP.MINSELECT,Nft=xfe.filter,AN=xfe.tester,SN=XL(),dfe=SN.p2r,Uft=SN.axValue,Vft=SN.getTransform;function MN(e){return e.subplot!==void 0}function Gft(e,t,r,n,i){var a=!MN(n),o=Pft(i),s=Ift(i),l=wN(i),u=PM(i),c=TN(i),f=i==="drawline",h=i==="drawcircle",d=f||h,v=n.gd,_=v._fullLayout,b=c&&_.newselection.mode==="immediate"&&a,p=_._zoomlayer,C=n.element.getBoundingClientRect(),E=n.plotinfo,A=Vft(E),L=t-C.left,x=r-C.top;_._calcInverseTransform(v);var k=mP.apply3DTransform(_._invTransform)(L,x);L=k[0],x=k[1];var M=_._invScaleX,g=_._invScaleY,P=L,T=x,z="M"+L+","+x,O=n.xaxes[0],V=n.yaxes[0],G=O._length,Z=V._length,H=e.altKey&&!(PM(i)&&l),N,j,re,oe,_e,Me,ke;wfe(e,v,n),o&&(N=Nft([[L,x]],yP.BENDPX));var me=p.selectAll("path.select-outline-"+E.id).data([1]),ie=u?_.newshape:_.newselection;u&&(n.hasText=ie.label.text||ie.label.texttemplate);var Se=u&&!l?ie.fillcolor:"rgba(0,0,0,0)",Le=ie.line.color||(a?CM.contrast(v._fullLayout.plot_bgcolor):"#7f7f7f");me.enter().append("path").attr("class","select-outline select-outline-"+E.id).style({opacity:u?ie.opacity/2:1,"stroke-dasharray":Cft(ie.line.dash,ie.line.width),"stroke-width":ie.line.width+"px","shape-rendering":"crispEdges"}).call(CM.stroke,Le).call(CM.fill,Se).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",A).attr("d",z+"Z");var Ae=p.append("path").attr("class","zoombox-corners").style({fill:CM.background,stroke:CM.defaultLine,"stroke-width":1}).attr("transform",A).attr("d","M0,0Z");if(u&&n.hasText){var De=p.select(".label-temp");De.empty()&&(De=p.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Pe=_._uid+yP.SELECTID,ge=[],Fe=_P(v,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var Ze=O._id,ct=V._id;Efe(v,Ze,ct,Fe);for(var pt=(v.layout||{}).selections||[],Wt=[],st=!1,lt=0;lt=0){v._fullLayout._deactivateShape(v);return}if(!u){var pt=_.clickmode;kM.done(Pe).then(function(){if(kM.clear(Pe),Ze===2){for(me.remove(),_e=0;_e-1&&bfe(ct,v,n.xaxes,n.yaxes,n.subplot,n,me),pt==="event"&&DM(v,void 0);kft.click(v,ct,E.id)}).catch(mP.error)}},n.doneFn=function(){Ae.remove(),kM.done(Pe).then(function(){kM.clear(Pe),!b&&oe&&n.selectionDefs&&(oe.subtract=H,n.selectionDefs.push(oe),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,re)),(b||u)&&IM(n,b),n.doneFnCompleted&&n.doneFnCompleted(ge),c&&DM(v,ke)}).catch(mP.error)}}function bfe(e,t,r,n,i,a,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,c=u.indexOf("event")>-1,f=[],h,d,v,_,b,p,C,E,A,L;if(Zft(s)){wfe(e,t,a),h=_P(t,r,n,i);var x=Yft(s,h),k=x.pointNumbers.length>0;if(k?Kft(h,x):Jft(h)&&(C=pfe(x))){for(o&&o.remove(),L=0;L=0}function Xft(e){return e._fullLayout._activeSelectionIndex>=0}function IM(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;Wft(i)&&i._fullLayout._deactivateShape(i),Xft(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=PM(r),l=TN(r);if(s||l){var u=o.selectAll(".select-outline-"+n.id);if(u&&i._fullLayout._outlining){var c;s&&(c=Dft(u,e)),c&&LM.call("_guiRelayout",i,{shapes:c});var f;l&&!MN(e)&&(f=Fft(u,e)),f&&(i._fullLayout._noEmitSelectedAtStart=!0,LM.call("_guiRelayout",i,{selections:f}).then(function(){t&&zft(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function vfe(e){return e._id}function _P(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(vfe),o=r.map(vfe),s,l,u;for(u=0;u0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function Kft(e,t){var r=[],n,i,a,o;for(o=0;o0&&r.push(n);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(i=t.searchInfo.cd[0].trace,i.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function RM(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var Ze=gfe(e,!0);if(Ze.length){var ct=Ze[0].xref,pt=Ze[0].yref;if(ct&&pt){var Wt=Cfe(Ze),st=kfe([C0(e,ct,"x"),C0(e,pt,"y")]);st(ge,Wt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&DM(e,ge),h._reselect=!1}if(!o&&h._deselect){var lt=h._deselect;s=lt.xref,l=lt.yref,eht(s,l,c)||Efe(e,s,l,n),ce&&(ge.points.length?DM(e,ge):kN(e)),h._deselect=!1}return{eventData:ge,selectionTesters:r}}function Qft(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";Ife.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var zM=ye((far,Rfe)=>{"use strict";Rfe.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Nb=ye((dar,zfe)=>{"use strict";var Dfe=LN(),Ffe=ec(),xP=hd(),aht=pl().templatedArray,har=zM();zfe.exports=aht("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Ffe({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Dfe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Dfe.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",xP.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",xP.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",xP.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",xP.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Ffe({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Sm=ye((par,Ofe)=>{"use strict";Ofe.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Cg=ye((gar,qfe)=>{"use strict";qfe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var pf=ye((mar,Hfe)=>{"use strict";var Bfe=df().axisHoverFormat,oht=Qo().texttemplateAttrs,sht=Qo().hovertemplateAttrs,Nfe=Tu(),lht=ec(),uht=Pd().dash,cht=Pd().pattern,fht=So(),hht=Sm(),bP=Ao().extendFlat,dht=Cg();function Ufe(e){return{valType:"any",dflt:0,editType:"calc"}}function Vfe(e){return{valType:"any",editType:"calc"}}function Gfe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Hfe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Ufe("x"),yperiod:Ufe("y"),xperiod0:Vfe("x0"),yperiod0:Vfe("y0"),xperiodalignment:Gfe("x"),yperiodalignment:Gfe("y"),xhoverformat:Bfe("x"),yhoverformat:Bfe("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:oht({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:sht({},{keys:hht.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:bP({},uht,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:dht(!0),fillgradient:bP({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:cht,marker:bP({symbol:{valType:"enumerated",values:fht.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:bP({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},Nfe("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Nfe("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:lht({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var PN=ye((_ar,Xfe)=>{"use strict";var jfe=Nb(),Wfe=pf().line,vht=Pd().dash,wP=Ao().extendFlat,pht=mc().overrideAll,ght=pl().templatedArray,yar=zM();Xfe.exports=pht(ght("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:wP({},jfe.xref,{}),yref:wP({},jfe.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:Wfe.color,width:wP({},Wfe.width,{min:1,dflt:1}),dash:wP({},vht,{dflt:"dot"})}}),"arraydraw","from-root")});var Jfe=ye((xar,Kfe)=>{"use strict";var Zfe=Dr(),TP=ho(),mht=Yd(),yht=PN(),Yfe=f_();Kfe.exports=function(t,r){mht(t,r,{name:"selections",handleItemDefaults:_ht});for(var n=r.selections,i=0;i{"use strict";$fe.exports=function(t,r,n){n("newselection.mode");var i=n("newselection.line.width");i&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var OM=ye((war,rhe)=>{"use strict";var xht=qa(),ehe=Dr(),the=hf();rhe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=xht.subplotsRegistry.cartesian,s=o.idRegex,l=i._subplots,u=l.xaxis,c=l.yaxis,f=l.cartesian,h=i._has("cartesian"),d=0;d{"use strict";var ihe=mN(),qM=Pfe();nhe.exports={moduleType:"component",name:"selections",layoutAttributes:PN(),supplyLayoutDefaults:Jfe(),supplyDrawNewSelectionDefaults:Qfe(),includeBasePlot:OM()("selections"),draw:ihe.draw,drawOne:ihe.drawOne,reselect:qM.reselect,prepSelect:qM.prepSelect,clearOutline:qM.clearOutline,clearSelectionsCache:qM.clearSelectionsCache,selectOnClick:qM.selectOnClick}});var qN=ye((Aar,Ahe)=>{"use strict";var zN=Oa(),k0=Dr(),ahe=k0.numberFormat,bht=cd(),wht=PL(),AP=qa(),vhe=k0.strTranslate,Tht=ru(),ohe=Ca(),d_=So(),Aht=vf(),she=ho(),Sht=Ag(),Mht=yv(),phe=Mg(),SP=phe.selectingOrDrawing,Eht=phe.freeMode,Cht=Kh().FROM_TL,kht=dM(),Lht=bM().redrawReglTraces,Pht=Mc(),RN=hf().getFromId,Iht=zf().prepSelect,Rht=zf().clearOutline,Dht=zf().selectOnClick,IN=uN(),ON=hd(),lhe=ON.MINDRAG,np=ON.MINZOOM,uhe=!0;function Fht(e,t,r,n,i,a,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",c=(o+s).length===1,f,h,d,v,_,b,p,C,E,A,L,x,k,M,g,P,T,z,O,V,G,Z,H;r+=t.yaxis._shift;function N(){if(f=t.xaxis,h=t.yaxis,E=f._length,A=h._length,p=f._offset,C=h._offset,d={},d[f._id]=f,v={},v[h._id]=h,o&&s)for(var bt=t.overlays,yt=0;yt=0){Yt._fullLayout._deactivateShape(Yt);return}var lr=Yt._fullLayout.clickmode;if(FN(Yt),bt===2&&!c&&ur(),u)lr.indexOf("select")>-1&&Dht(yt,Yt,_,b,t.id,oe),lr.indexOf("event")>-1&&Aht.click(Yt,yt,t.id);else if(bt===1&&c){var Tr=o?h:f,Rr=o==="s"||s==="w"?0:1,ei=Tr._name+".range["+Rr+"]",Wr=zht(Tr,Rr),Ur="left",dt="middle";if(Tr.fixedrange)return;o?(dt=o==="n"?"top":"bottom",Tr.side==="right"&&(Ur="right")):s==="e"&&(Ur="right"),Yt._context.showAxisRangeEntryBoxes&&zN.select(re).call(Tht.makeEditable,{gd:Yt,immediate:!0,background:Yt._fullLayout.paper_bgcolor,text:String(Wr),fill:Tr.tickfont?Tr.tickfont.color:"#444",horizontalAlign:Ur,verticalAlign:dt}).on("edit",function(Ge){var Je=Tr.d2r(Ge);Je!==void 0&&AP.call("_guiRelayout",Yt,ei,Je)})}}Mht.init(oe);var ke,me,ie,Se,Le,Ae,De,Pe,ge,Fe;function ce(bt,yt,Yt){var lr=re.getBoundingClientRect();ke=yt-lr.left,me=Yt-lr.top,e._fullLayout._calcInverseTransform(e);var Tr=k0.apply3DTransform(e._fullLayout._invTransform)(ke,me);ke=Tr[0],me=Tr[1],ie={l:ke,r:ke,w:0,t:me,b:me,h:0},Se=e._hmpixcount?e._hmlumcount/e._hmpixcount:bht(e._fullLayout.plot_bgcolor).getLuminance(),Le="M0,0H"+E+"V"+A+"H0V0",Ae=!1,De="xy",Fe=!1,Pe=yhe(l,Se,p,C,Le),ge=_he(l,p,C)}function Ze(bt,yt){if(e._transitioningWithDuration)return!1;var Yt=Math.max(0,Math.min(E,Z*bt+ke)),lr=Math.max(0,Math.min(A,H*yt+me)),Tr=Math.abs(Yt-ke),Rr=Math.abs(lr-me);ie.l=Math.min(ke,Yt),ie.r=Math.max(ke,Yt),ie.t=Math.min(me,lr),ie.b=Math.max(me,lr);function ei(){De="",ie.r=ie.l,ie.t=ie.b,ge.attr("d","M0,0Z")}if(L.isSubplotConstrained)Tr>np||Rr>np?(De="xy",Tr/E>Rr/A?(Rr=Tr*A/E,me>lr?ie.t=me-Rr:ie.b=me+Rr):(Tr=Rr*E/A,ke>Yt?ie.l=ke-Tr:ie.r=ke+Tr),ge.attr("d",MP(ie))):ei();else if(x.isSubplotConstrained)if(Tr>np||Rr>np){De="xy";var Wr=Math.min(ie.l/E,(A-ie.b)/A),Ur=Math.max(ie.r/E,(A-ie.t)/A);ie.l=Wr*E,ie.r=Ur*E,ie.b=(1-Wr)*A,ie.t=(1-Ur)*A,ge.attr("d",MP(ie))}else ei();else!M||Rr0){var Ge;if(x.isSubplotConstrained||!k&&M.length===1){for(Ge=0;Ge<_.length;Ge++)_[Ge].range=_[Ge]._r.slice(),IN(_[Ge],1-yt/A);bt=yt*E/A,Ur=bt/2}if(x.isSubplotConstrained||!M&&k.length===1){for(Ge=0;Ge1&&(ei.maxallowed!==void 0&&P===(ei.range[0]1&&(Wr.maxallowed!==void 0&&T===(Wr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function qht(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function yhe(e,t,r,n,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",vhe(r,n)).attr("d",i+"Z")}function _he(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:ohe.background,stroke:ohe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",vhe(t,r)).attr("d","M0,0Z")}function xhe(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),bhe(e,t,i,a)}function bhe(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function FN(e){zN.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function whe(e){uhe&&e.data&&e._context.showTips&&(k0.notifier(k0._(e,"Double-click to zoom back out"),"long"),uhe=!1)}function Bht(e,t){return"M"+(e.l-.5)+","+(t-np-.5)+"h-3v"+(2*np+1)+"h3ZM"+(e.r+.5)+","+(t-np-.5)+"h3v"+(2*np+1)+"h-3Z"}function Nht(e,t){return"M"+(t-np-.5)+","+(e.t-.5)+"v-3h"+(2*np+1)+"v3ZM"+(t-np-.5)+","+(e.b+.5)+"v3h"+(2*np+1)+"v-3Z"}function MP(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,np)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function hhe(e,t,r,n,i){for(var a=!1,o={},s={},l,u,c,f,h=(i||{}).xaHash,d=(i||{}).yaHash,v=0;v{"use strict";var Uht=Oa(),EP=vf(),Vht=yv(),Ght=Ag(),kg=qN().makeDragBox,gd=hd().DRAGGERSIZE;CP.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Uht.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var n=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[a].mainplot?1:-1});n.forEach(function(a){var o=r._plots[a],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=kg(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&EP.hover(t,h,a)},EP.hover(t,h,a),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=a},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,Vht.unhover(t,h))},t._context.showAxisDragHandles&&(kg(t,o,s._offset-gd,l._offset-gd,gd,gd,"n","w"),kg(t,o,s._offset+s._length,l._offset-gd,gd,gd,"n","e"),kg(t,o,s._offset-gd,l._offset+l._length,gd,gd,"s","w"),kg(t,o,s._offset+s._length,l._offset+l._length,gd,gd,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var c=s._mainLinePosition;s.side==="top"&&(c-=gd),kg(t,o,s._offset+s._length*.1,c,s._length*.8,gd,"","ew"),kg(t,o,s._offset,c,s._length*.1,gd,"","w"),kg(t,o,s._offset+s._length*.9,c,s._length*.1,gd,"","e")}if(a===l._mainSubplot){var f=l._mainLinePosition;l.side!=="right"&&(f-=gd),kg(t,o,f,l._offset+l._length*.1,gd,l._length*.8,"ns",""),kg(t,o,f,l._offset+l._length*.9,gd,l._length*.1,"s",""),kg(t,o,f,l._offset,gd,l._length*.1,"n","")}}});var i=r._hoverlayer.node();i.onmousemove=function(a){a.target=t._fullLayout._lasthover,EP.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,EP.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},CP.updateFx(t)}};CP.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Ght(t._draggers,r)}});var Ehe=ye((Mar,Mhe)=>{"use strict";var She=qa();Mhe.exports=function(t){for(var r=She.layoutArrayContainers,n=She.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var Hht=gy(),NN=b6(),BM=G1(),jht=I6().sorterAsc,UN=qa();NM.containerArrayMatch=Ehe();var Wht=NM.isAddVal=function(t){return t==="add"||Hht(t)},Che=NM.isRemoveVal=function(t){return t===null||t==="remove"};NM.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=UN.getComponentMethod(o,"supplyLayoutDefaults"),l=UN.getComponentMethod(o,"draw"),u=UN.getComponentMethod(o,"drawOne"),c=i.replot||i.recalc||s===NN||l===NN,f=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&BM.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(Che(d))r.set(null);else if(Array.isArray(d))r.set(d);else return BM.warn("Unrecognized full array edit value",o,d),!0;return c?!1:(s(f,h),l(t),!0)}var v=Object.keys(n).map(Number).sort(jht),_=r.get(),b=_||[],p=a(h,o).get(),C=[],E=-1,A=b.length,L,x,k,M,g,P,T,z;for(L=0;Lb.length-(T?0:1)){BM.warn("index out of range",o,k);continue}if(P!==void 0)g.length>1&&BM.warn("Insertion & removal are incompatible with edits to the same index.",o,k),Che(P)?C.push(k):T?(P==="add"&&(P={}),b.splice(k,0,P),p&&p.splice(k,0,{})):BM.warn("Unrecognized full object edit value",o,k,P),E===-1&&(E=k);else for(x=0;x=0;L--)b.splice(C[L],1),p&&p.splice(C[L],1);if(b.length?_||r.set(b):r.set(null),c)return!1;if(s(f,h),u!==NN){var O;if(E===-1)O=v;else{for(A=Math.max(b.length,A),O=[],L=0;L=E));L++)O.push(k);for(L=E;L{"use strict";var Rhe=Eo(),Dhe=qa(),Nv=Dr(),UM=Mc(),Fhe=hf(),zhe=Ca(),VM=Fhe.cleanId,Xht=Fhe.getFromTrace,VN=Dhe.traceIs,Zht=["x","y","z"];L0.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Nv.log("Clearing previous rejected promises from queue."),e._promises=[]};L0.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(UM.subplotsRegistry.cartesian||{}).attrRegex,i=(UM.subplotsRegistry.polar||{}).attrRegex,a=(UM.subplotsRegistry.ternary||{}).attrRegex,o=(UM.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),zhe.clean(e),e.template&&e.template.layout&&L0.cleanLayout(e.template.layout),e};function K3(e,t){var r=e[t],n=t.charAt(0);r&&r!=="paper"&&(e[t]=VM(r,n,!0))}L0.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}L0.hasParent=function(e,t){for(var r=Ihe(t);r;){if(r in e)return!0;r=Ihe(r)}return!1};L0.clearAxisTypes=function(e,t,r){for(var n=0;n{let r=(...n)=>n.every(i=>Nv.isPlainObject(i))||n.every(i=>Array.isArray(i));if([e,t].every(n=>Array.isArray(n))){if(e.length!==t.length)return!1;for(let n=0;nNv.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let i=e[n],a=t[n];if(i!==a&&!(r(i,a)?GN(i,a):!1))return!1}return!0}return!1};L0.collectionsAreEqual=GN});var UP=ye(xl=>{"use strict";var IP=Oa(),Jht=Eo(),$ht=tq(),Sa=Dr(),Ec=Sa.nestedProperty,WN=g3(),ap=yne(),P0=qa(),BP=_3(),es=Mc(),Uv=ho(),Qht=mB(),edt=Rd(),HN=So(),tdt=Ca(),rdt=BN().initInteractions,idt=Wp(),ndt=zf().clearOutline,Vhe=ub().dfltConfig,LP=khe(),vh=Ohe(),Au=bM(),v_=mc(),adt=hd().AX_NAME_PATTERN,jN=0,qhe=5;function odt(e,t,r,n){var i;if(e=Sa.getGraphDiv(e),WN.init(e),Sa.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=WN.triggerHandler(e,"plotly_beforeplot",[t,r,n]);if(o===!1)return Promise.reject();!t&&!r&&!Sa.isPlotDiv(e)&&Sa.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(i)return xl.addFrames(e,i)}Hhe(e,n),r||(r={}),IP.select(e).classed("js-plotly-plot",!0),HN.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(vh.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=vh.cleanLayout(r)),es.supplyDefaults(e);var u=e._fullLayout,c=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(kdt(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),HN.initGradients(e),HN.initPatterns(e),l&&Uv.saveShowSpikeInitial(e);var f=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;f&&es.doCalcdata(e);for(var h=0;h=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function jhe(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),DP(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&DP(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function fdt(e,t,r){var n,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&c=0&&c0&&typeof M.parts[T]!="string";)T--;var z=M.parts[T],O=M.parts[T-1]+"."+z,V=M.parts.slice(0,T).join("."),G=Ec(e.layout,V).get(),Z=Ec(n,V).get(),H=M.get();if(g!==void 0){p[k]=g,C[k]=z==="reverse"?g:ky(H);var N=BP.getLayoutValObject(n,M.parts);if(N&&N.impliedEdits&&g!==null)for(var j in N.impliedEdits)E(Sa.relativeAttr(k,j),N.impliedEdits[j]);if(["width","height"].indexOf(k)!==-1)if(g){E("autosize",null);var re=k==="height"?"width":"height";E(re,n[re])}else n[k]=e._initialAutoSize[k];else if(k==="autosize")E("width",g?null:n.width),E("height",g?null:n.height);else if(O.match(ede))x(O),Ec(n,V+"._inputRange").set(null);else if(O.match(tde)){x(O),Ec(n,V+"._inputRange").set(null);var oe=Ec(n,V).get();oe._inputDomain&&(oe._input.domain=oe._inputDomain.slice())}else O.match(pdt)&&Ec(n,V+"._inputDomain").set(null);if(z==="type"){L=G;var _e=Z.type==="linear"&&g==="log",Me=Z.type==="log"&&g==="linear";if(_e||Me){if(!L||!L.range)E(V+".autorange",!0);else if(Z.autorange)_e&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var ke=L.range[0],me=L.range[1];_e?(ke<=0&&me<=0&&E(V+".autorange",!0),ke<=0?ke=me/1e6:me<=0&&(me=ke/1e6),E(V+".range[0]",Math.log(ke)/Math.LN10),E(V+".range[1]",Math.log(me)/Math.LN10)):(E(V+".range[0]",Math.pow(10,ke)),E(V+".range[1]",Math.pow(10,me)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[M.parts[0]]&&M.parts[1]==="radialaxis"&&delete n[M.parts[0]]._subplot.viewInitial["radialaxis.range"],P0.getComponentMethod("annotations","convertCoords")(e,Z,g,E),P0.getComponentMethod("images","convertCoords")(e,Z,g,E)}else E(V+".autorange",!0),E(V+".range",null);Ec(n,V+"._inputRange").set(null)}else if(z.match(adt)){var ie=Ec(n,k).get(),Se=(g||{}).type;(!Se||Se==="-")&&(Se="linear"),P0.getComponentMethod("annotations","convertCoords")(e,ie,Se,E),P0.getComponentMethod("images","convertCoords")(e,ie,Se,E)}var Le=LP.containerArrayMatch(k);if(Le){c=Le.array,f=Le.index;var Ae=Le.property,De=N||{editType:"calc"};f!==""&&Ae===""&&(LP.isAddVal(g)?C[k]=null:LP.isRemoveVal(g)?C[k]=(Ec(r,c).get()||[])[f]:Sa.warn("unrecognized full object value",t)),v_.update(b,De),u[c]||(u[c]={});var Pe=u[c][f];Pe||(Pe=u[c][f]={}),Pe[Ae]=g,delete t[k]}else z==="reverse"?(G.range?G.range.reverse():(E(V+".autorange",!0),G.range=[1,0]),Z.autorange?b.calc=!0:b.plot=!0):(k==="dragmode"&&(g===!1&&H!==!1||g!==!1&&H===!1)||n._has("scatter-like")&&n._has("regl")&&k==="dragmode"&&(g==="lasso"||g==="select")&&!(H==="lasso"||H==="select")?b.plot=!0:N?v_.update(b,N):b.calc=!0,M.set(g))}}for(c in u){var ge=LP.applyContainerArrayChanges(e,a(r,c),u[c],b,a);ge||(b.plot=!0)}for(var Fe in A){L=Uv.getFromId(e,Fe);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var Ze in ce)A[Ze]||(Uv.getFromId(e,Ze)._constraintShrinkable=!0)}}(ide(e)||t.height||t.width)&&(b.plot=!0);var ct=n.shapes;for(f=0;f1;)if(n.pop(),r=Ec(t,n.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function ydt(e,t){for(var r=0;r[V,e._ev.listeners(V)]);a=xl.newPlot(e,t,r,n).then(()=>{for(let[V,G]of O)G.forEach(Z=>e.on(V,Z));return xl.react(e,t,r,n)})}else{e.data=t||[],vh.cleanData(e.data),e.layout=r||{},vh.cleanLayout(e.layout),xdt(e.data,e.layout,s,l),es.supplyDefaults(e,{skipUpdateCalc:!0});var f=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,v=h.transition,_=Tdt(e,l,h,d,v),b=_.newDataRevision,p=wdt(e,s,f,d,v,b);if(ide(e)&&(_.layoutReplot=!0),p.calc||_.calc){e.calcdata=void 0;for(var C=Object.getOwnPropertyNames(h),E=0;E(c||e.emit("plotly_react",{config:n,data:t,layout:r}),e))}function wdt(e,t,r,n,i,a){var o=t.length===r.length;if(!i&&!o)return{fullReplot:!0,calc:!0};var s=v_.traceFlags();s.arrays={},s.nChanges=0,s.nChangesAnim=0;var l,u;function c(d){var v=BP.getTraceValObject(u,d);return!u._module.animatable&&v.anim&&(v.anim=!1),v}var f={getValObject:c,flags:s,immutable:n,transition:i,newDataRevision:a,gd:e},h={};for(l=0;l=i.length?i[0]:i[u]:i}function s(u){return Array.isArray(a)?u>=a.length?a[0]:a[u]:a}function l(u,c){var f=0;return function(){if(u&&++f===c)return u()}}return new Promise(function(u,c){function f(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var z=n._frameQueue.pop();z.onInterrupt&&z.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(z){if(z.length!==0){for(var O=0;On._timeToNext&&v()};z()}var b=0;function p(z){return Array.isArray(i)?b>=i.length?z.transitionOpts=i[b]:z.transitionOpts=i[0]:z.transitionOpts=i,b++,z}var C,E,A=[],L=t==null,x=Array.isArray(t),k=!L&&!x&&Sa.isPlainObject(t);if(k)A.push({type:"object",data:p(Sa.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(C=0;C0&&PP)&&T.push(E);A=T}}A.length>0?h(A):(e.emit("plotly_animated"),u())})}function Sdt(e,t,r){if(e=Sa.getGraphDiv(e),t==null)return Promise.resolve();if(!Sa.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,i,a,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,c=[],f={};for(n=t.length-1;n>=0;n--)if(Sa.isPlainObject(t[n])){var h=t[n].name,d=(l[h]||f[h]||{}).name,v=t[n].name,_=l[d]||f[d];d&&v&&typeof v=="number"&&_&&jNM.index?-1:k.index=0;n--){if(i=c[n].frame,typeof i.name=="number"&&Sa.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;l[i.name="frame "+e._transitionData._counter++];);if(l[i.name]){for(a=0;a=0;r--)n=t[r],a.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:i[n]});var s=es.modifyFrames,l=es.modifyFrames,u=[e,o],c=[e,a];return ap&&ap.add(e,s,u,l,c),es.modifyFrames(e,a)}function Edt(e){e=Sa.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return es.cleanPlot([],{},r,t),es.purge(e),WN.purge(e),t._container&&t._container.remove(),delete e._context,e}function Cdt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!Sa.equalDomRects(r,t._lastBBox)){var n=t._invTransform=Sa.inverseTransformMatrix(Sa.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}function kdt(e){var t=IP.select(e),r=e._fullLayout;if(r._calcInverseTransform=Cdt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var n={};IP.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=Sa.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(idt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}xl.animate=Adt;xl.addFrames=Sdt;xl.deleteFrames=Mdt;xl.addTraces=Khe;xl.deleteTraces=Jhe;xl.extendTraces=Zhe;xl.moveTraces=XN;xl.prependTraces=Yhe;xl.newPlot=cdt;xl._doPlot=odt;xl.purge=Edt;xl.react=bdt;xl.redraw=udt;xl.relayout=GM;xl.restyle=FP;xl.setPlotConfig=sdt;xl.update=OP;xl._guiRelayout=ZN(GM);xl._guiRestyle=ZN(FP);xl._guiUpdate=ZN(OP);xl._storeDirectGUIEdit=vdt});var Ly=ye(Mm=>{"use strict";var Ldt=qa();Mm.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Mm.getRedrawFunc=function(e){return function(){Ldt.getComponentMethod("colorbar","draw")(e)}};Mm.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Mm.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var nde=window.URL||window.webkitURL;Mm.createObjectURL=function(e){return nde.createObjectURL(e)};Mm.revokeObjectURL=function(e){return nde.revokeObjectURL(e)};Mm.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=Pdt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Mm.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Pdt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var KN=Oa(),Par=Dr(),Idt=So(),Rdt=Ca(),Iar=Wp(),YN=/"/g,jM="TOBESTRIPPED",Ddt=new RegExp('("'+jM+")|("+jM+'")',"g");function Fdt(e){var t=KN.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":t.html(n).text()});return t.remove(),r}function zdt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}ade.exports=function(t,r,n){var i=t._fullLayout,a=i._paper,o=i._toppaper,s=i.width,l=i.height,u;a.insert("rect",":first-child").call(Idt.setRect,0,0,s,l).call(Rdt.fill,i.paper_bgcolor);var c=i._basePlotModules||[];for(u=0;u{"use strict";var Odt=Dr(),qdt=vb().EventEmitter,WM=Ly();function Bdt(e){var t=e.emitter||new qdt,r=new Promise(function(n,i){var a=window.Image,o=e.svg,s=e.format||"png",l=e.canvas,u=e.scale||1,c=e.width||300,f=e.height||150,h=u*c,d=u*f,v=l.getContext("2d",{willReadFrequently:!0}),_=new a,b,p;s==="svg"||Odt.isSafari()?p=WM.encodeSVG(o):(b=WM.createBlob(o,"svg"),p=WM.createObjectURL(b)),l.width=h,l.height=d,_.onload=function(){var C;switch(b=null,WM.revokeObjectURL(p),s!=="svg"&&v.drawImage(_,0,0,h,d),s){case"jpeg":C=l.toDataURL("image/jpeg");break;case"png":C=l.toDataURL("image/png");break;case"webp":C=l.toDataURL("image/webp");break;case"svg":C=p;break;default:var E="Image format is not jpeg, png, svg or webp.";if(i(new Error(E)),!e.promise)return t.emit("error",E)}n(C),e.promise||t.emit("success",C)},_.onerror=function(C){if(b=null,WM.revokeObjectURL(p),i(C),!e.promise)return t.emit("error",C)},_.src=p});return e.promise?r:t}ode.exports=Bdt});var $N=ye((Far,ude)=>{"use strict";var sde=Eo(),lde=UP(),Ndt=Mc(),Em=Dr(),XM=Ly(),Udt=VP(),Vdt=GP(),Gdt=s6().version,JN={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Hdt(e,t){t=t||{};var r,n,i,a;Em.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Em.getGraphDiv(e),r=Em.extendDeep([],e.data),n=Em.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||Em.validate(t[x],JN[x])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Em.join2(JN.format.values,", "," or ")+".");var s={};function l(x,k){return Em.coerce(t,s,JN,x,k)}var u=l("format"),c=l("width"),f=l("height"),h=l("scale"),d=l("setBackground"),v=l("imageDataOnly"),_=document.createElement("div");_.style.position="absolute",_.style.left="-5000px",document.body.appendChild(_);var b=Em.extendFlat({},n);c?b.width=c:t.width===null&&sde(a.width)&&(b.width=a.width),f?b.height=f:t.height===null&&sde(a.height)&&(b.height=a.height);var p=Em.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=XM.getRedrawFunc(_);function E(){return new Promise(function(x){setTimeout(x,XM.getDelay(_._fullLayout))})}function A(){return new Promise(function(x,k){var M=Udt(_,u,h),g=_._fullLayout.width,P=_._fullLayout.height;function T(){lde.purge(_),document.body.removeChild(_)}if(u==="full-json"){var z=Ndt.graphJson(_,!1,"keepdata","object",!0,!0);return z.version=Gdt,z=JSON.stringify(z),T(),x(v?z:XM.encodeJSON(z))}if(T(),u==="svg")return x(v?M:XM.encodeSVG(M));var O=document.createElement("canvas");O.id=Em.randstr(),Vdt({format:u,width:g,height:P,scale:h,canvas:O,svg:M,promise:!0}).then(x).catch(k)})}function L(x){return v?x.replace(XM.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,k){lde.newPlot(_,r,b,p).then(C).then(E).then(A).then(function(M){x(L(M))}).catch(function(M){k(M)})})}ude.exports=Hdt});var hde=ye((zar,fde)=>{"use strict";var I0=Dr(),jdt=Mc(),Wdt=_3(),Xdt=ub().dfltConfig,Lg=I0.isPlainObject,Vb=Array.isArray,QN=I0.isArrayOrTypedArray;fde.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=Wdt.get(),i=[],a={_context:I0.extendFlat({},Xdt)},o,s;Vb(t)?(a.data=I0.extendDeep([],t),o=t):(a.data=[],o=[],i.push(md("array","data"))),Lg(r)?(a.layout=I0.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&i.push(md("object","layout"))),jdt.supplyDefaults(a);for(var l=a._fullData,u=o.length,c=0;cf.length&&n.push(md("unused",i,u.concat(f.length)));var p=f.length,C=Array.isArray(b);C&&(p=Math.min(p,b.length));var E,A,L,x,k;if(h.dimensions===2)for(A=0;Af[A].length&&n.push(md("unused",i,u.concat(A,f[A].length)));var M=f[A].length;for(E=0;E<(C?Math.min(M,b[A].length):M);E++)L=C?b[A][E]:b,x=c[A][E],k=f[A][E],I0.validate(x,L)?k!==x&&k!==+x&&n.push(md("dynamic",i,u.concat(A,E),x,k)):n.push(md("value",i,u.concat(A,E),x))}else n.push(md("array",i,u.concat(A),c[A]));else for(A=0;A{"use strict";var evt=Dr(),jP=Ly();function tvt(e,t,r){var n=document.createElement("a"),i="download"in n,a=new Promise(function(o,s){var l,u;if(i)return l=jP.createBlob(e,r),u=jP.createObjectURL(l),n.href=u,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),jP.revokeObjectURL(u),l=null,o(t);if(evt.isSafari()){var c=r==="svg"?",":";base64,";return jP.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}dde.exports=tvt});var eU=ye((Bar,gde)=>{"use strict";var pde=Dr(),rvt=$N(),ivt=vde(),qar=Ly();function nvt(e,t){var r;return pde.isPlainObject(e)||(r=pde.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(n,i){r&&r._snapshotInProgress&&i(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var a=rvt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),ivt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}gde.exports=nvt});var bde=ye(tU=>{"use strict";var Cp=Dr(),kp=Cp.isPlainObject,mde=_3(),yde=Mc(),avt=Gl(),_de=pl(),xde=ub().dfltConfig;tU.makeTemplate=function(e){e=Cp.isPlainObject(e)?e:Cp.getGraphDiv(e),e=Cp.extendDeep({_context:xde},{data:e.data,layout:e.layout}),yde.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var n={data:{},layout:{}};t.forEach(function(d){var v={};ZM(d,v,svt.bind(null,d));var _=Cp.coerce(d,{},avt,"type"),b=n.data[_];b||(b=n.data[_]=[]),b.push(v)}),ZM(r,n.layout,ovt.bind(null,r)),delete n.layout.template;var i=r.template;if(kp(i)){var a=i.layout,o,s,l,u,c,f;kp(a)&&WP(a,n.layout);var h=i.data;if(kp(h)){for(s in n.data)if(l=h[s],Array.isArray(l)){for(c=n.data[s],f=c.length,u=l.length,o=0;op?o.push({code:"unused",traceType:d,templateCount:b,dataCount:p}):p>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:p})}}function C(E,A){for(var L in E)if(L.charAt(0)!=="_"){var x=E[L],k=R0(E,L,A);kp(x)?(Array.isArray(E)&&x._template===!1&&x.templateitemname&&o.push({code:"missing",path:k,templateitemname:x.templateitemname}),C(x,k)):Array.isArray(x)&&lvt(x)&&C(x,k)}}if(C({data:l,layout:s},""),o.length)return o.map(uvt)};function lvt(e){for(var t=0;t{"use strict";var Qh=UP();ef._doPlot=Qh._doPlot;ef.newPlot=Qh.newPlot;ef.restyle=Qh.restyle;ef.relayout=Qh.relayout;ef.redraw=Qh.redraw;ef.update=Qh.update;ef._guiRestyle=Qh._guiRestyle;ef._guiRelayout=Qh._guiRelayout;ef._guiUpdate=Qh._guiUpdate;ef._storeDirectGUIEdit=Qh._storeDirectGUIEdit;ef.react=Qh.react;ef.extendTraces=Qh.extendTraces;ef.prependTraces=Qh.prependTraces;ef.addTraces=Qh.addTraces;ef.deleteTraces=Qh.deleteTraces;ef.moveTraces=Qh.moveTraces;ef.purge=Qh.purge;ef.addFrames=Qh.addFrames;ef.deleteFrames=Qh.deleteFrames;ef.animate=Qh.animate;ef.setPlotConfig=Qh.setPlotConfig;var cvt=qS().getGraphDiv,fvt=aP().eraseActiveShape;ef.deleteActiveShape=function(e){return fvt(cvt(e))};ef.toImage=$N();ef.validate=hde();ef.downloadImage=eU();var wde=bde();ef.makeTemplate=wde.makeTemplate;ef.validateTemplate=wde.validateTemplate});var J3=ye((Var,Ade)=>{"use strict";var rU=Dr(),hvt=qa();Ade.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,l=hvt.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],n),a){var u=rU.minRowLength(a);o?s=Math.min(u,rU.minRowLength(o)):(s=u,i("y0"),i("dy"))}else{if(!o)return 0;s=rU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Pg=ye((Gar,Ede)=>{"use strict";var Sde=Dr().dateTick0,dvt=hs(),vvt=dvt.ONEWEEK;function Mde(e,t){return e%vvt===0?Sde(t,1):Sde(t,0)}Ede.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Mde(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Mde(s,r.ycalendar)),i("yperiodalignment"))}}});var Lde=ye((Har,kde)=>{"use strict";var Cde=["orientation","groupnorm","stackgaps"];kde.exports=function(t,r,n,i){var a=n._scatterStackOpts,o=i("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=a[s];l||(l=a[s]={});var u=l[o],c=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},c=!0);for(var f={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var Pde=Ca(),Ide=pv().hasColorscale,Rde=Jh(),pvt=Ru();Dde.exports=function(t,r,n,i,a,o){var s=pvt.isBubble(t),l=(t.line||{}).color,u;if(o=o||{},l&&(n=l),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",n),Ide(t,"marker")&&Rde(t,r,i,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=Pde.background:u=Pde.defaultLine,a("marker.line.color",u),Ide(t,"marker.line")&&Rde(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0)),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var c=a("marker.gradient.type");c!=="none"&&a("marker.gradient.color")}}});var D0=ye((War,Fde)=>{"use strict";var gvt=Dr().isArrayOrTypedArray,mvt=pv().hasColorscale,yvt=Jh();Fde.exports=function(t,r,n,i,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",n),mvt(t,"line"))yvt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var l=(gvt(s)?!1:s)||n;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var $3=ye((Xar,zde)=>{"use strict";zde.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var F0=ye((Zar,Ode)=>{"use strict";var _vt=Dr();Ode.exports=function(e,t,r,n,i){i=i||{},n("textposition"),_vt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Ig=ye((Yar,Bde)=>{"use strict";var ZP=Ca(),qde=Dr().isArrayOrTypedArray;function xvt(e){for(var t=ZP.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var Nde=Dr(),bvt=qa(),wvt=pf(),Tvt=Sm(),Q3=Ru(),Avt=J3(),Svt=Pg(),Mvt=Lde(),Evt=$p(),Cvt=D0(),Ude=$3(),kvt=F0(),Lvt=Ig(),Pvt=Dr().coercePattern;Vde.exports=function(t,r,n,i){function a(d,v){return Nde.coerce(t,r,wvt,d,v)}var o=Avt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){Svt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=Mvt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var Ivt=Bb().getAxisGroup;Hde.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=Ivt(n,s)+o,u=n._alignmentOpts||{},c=i("alignmentgroup"),f=u[l];f||(f=u[l]={});var h=f[c];h?h.traces.push(r):h=f[c]={traces:[r],alignmentIndex:Object.keys(f).length,offsetGroups:{}};var d=i("offsetgroup")||"",v=h.offsetGroups,_=v[d];r._offsetIndex=0,(a!=="group"||d)&&(_||(_=v[d]={offsetIndex:Object.keys(v).length}),r._offsetIndex=_.offsetIndex)}});var iU=ye(($ar,jde)=>{"use strict";var Rvt=Dr(),Dvt=Gb(),Fvt=pf();jde.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return Rvt.coerce(i._input,i,Fvt,h)}if(r.scattermode==="group")for(a=0;a=0;c--){var f=t[c];if(f.type==="scatter"&&f.xaxis===l.xaxis&&f.yaxis===l.yaxis){f.opacity=void 0;break}}}}}});var Xde=ye((Qar,Wde)=>{"use strict";var zvt=Dr(),Ovt=W6();Wde.exports=function(e,t){function r(i,a){return zvt.coerce(e,t,Ovt,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var Rg=ye((eor,Yde)=>{"use strict";var qvt=Eo(),Zde=Dr(),Bvt=Zde.dateTime2ms,YP=Zde.incrementMonth,Nvt=hs(),Uvt=Nvt.ONEAVGMONTH;Yde.exports=function(t,r,n,i){if(r.type!=="date")return{vals:i};var a=t[n+"periodalignment"];if(!a)return{vals:i};var o=t[n+"period"],s;if(qvt(o)){if(o=+o,o<=0)return{vals:i}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:i}}for(var u=r.calendar,c=a==="start",f=a==="end",h=t[n+"period0"],d=Bvt(h,u)||0,v=[],_=[],b=[],p=i.length,C=0;CE;)x=YP(x,-s,u);for(;x<=E;)x=YP(x,s,u);L=YP(x,-s,u)}else{for(A=Math.round((E-d)/o),x=d+A*o;x>E;)x-=o;for(;x<=E;)x+=o;L=x-o}v[C]=c?L:f?x:(L+x)/2,_[C]=L,b[C]=x}return{vals:v,starts:_,ends:b}}});var z0=ye((tor,Jde)=>{"use strict";var nU=pv().hasColorscale,aU=gv(),Kde=Ru();Jde.exports=function(t,r){Kde.hasLines(r)&&nU(r,"line")&&aU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),Kde.hasMarkers(r)&&(nU(r,"marker")&&aU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),nU(r,"marker.line")&&aU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Cm=ye((ror,$de)=>{"use strict";var Yf=Dr();$de.exports=function(t,r){for(var n=0;n{"use strict";var Qde=Dr();eve.exports=function(t,r){Qde.isArrayOrTypedArray(r.selectedpoints)&&Qde.tagSelected(t,r)}});var q0=ye((nor,sve)=>{"use strict";var tve=Eo(),sU=Dr(),YM=ho(),rve=Rg(),oU=hs().BADNUM,lU=Ru(),Vvt=z0(),Gvt=Cm(),Hvt=O0();function jvt(e,t){var r=e._fullLayout,n=t._xA=YM.getFromId(e,t.xaxis||"x","x"),i=t._yA=YM.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=rve(t,n,"x",a),l=rve(t,i,"y",o),u=s.vals,c=l.vals,f=t._length,h=new Array(f),d=t.ids,v=uU(t,r,n,i),_=!1,b,p,C,E,A,L;ave(r,t);var x="x",k="y",M;if(v)sU.pushUnique(v.traceIndices,t.index),b=v.orientation==="v",b?(k="s",M="x"):(x="s",M="y"),A=v.stackgaps==="interpolate";else{var g=nve(t,f);ive(e,t,n,i,u,c,g)}var P=!!t.xperiodalignment,T=!!t.yperiodalignment;for(p=0;pp&&h[E].gap;)E--;for(L=h[E].s,C=h.length-1;C>E;C--)h[C].s=L;for(;p{"use strict";lve.exports=KP;var Wvt=Dr().distinctVals;function KP(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,n=t.posAxis._id.charAt(0),i=[],a=0;a{"use strict";var B0=Eo(),p_=Dr().isArrayOrTypedArray,eT=hs().BADNUM,Xvt=qa(),KM=ho(),Zvt=Bb().getAxisGroup,JP=uve();function Yvt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!B0(s))}for(var c=0;c{"use strict";var vve=q0(),pve=Hb().setGroupPositions;function spt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ug[c]&&c{"use strict";var upt=So(),bve=hs(),JM=bve.BADNUM,wve=bve.LOG_CLIP,yve=wve+.5,_ve=wve-.5,$P=Dr(),cpt=$P.segmentsIntersect,xve=$P.constrain,pU=Sm();Tve.exports=function(t,r){var n=r.trace||{},i=r.xaxis,a=r.yaxis,o=i.type==="log",s=a.type==="log",l=i._length,u=a._length,c=r.backoff,f=n.marker,h=r.connectGaps,d=r.baseTolerance,v=r.shape,_=v==="linear",b=n.fill&&n.fill!=="none",p=[],C=pU.minTolerance,E=t.length,A=new Array(E),L=0,x,k,M,g,P,T,z,O,V,G,Z,H,N,j,re,oe;function _e(dt){var Ge=t[dt];if(!Ge)return!1;var Je=r.linearized?i.l2p(Ge.x):i.c2p(Ge.x),je=r.linearized?a.l2p(Ge.y):a.c2p(Ge.y);if(Je===JM){if(o&&(Je=i.c2p(Ge.x,!0)),Je===JM)return!1;s&&je===JM&&(Je*=Math.abs(i._m*u*(i._m>0?yve:_ve)/(a._m*l*(a._m>0?yve:_ve)))),Je*=1e3}if(je===JM){if(s&&(je=a.c2p(Ge.y,!0)),je===JM)return!1;je*=1e3}return[Je,je]}function Me(dt,Ge,Je,je){var $e=Je-dt,wt=je-Ge,Ie=.5-dt,xe=.5-Ge,Ce=$e*$e+wt*wt,vt=$e*Ie+wt*xe;if(vt>0&&vt1||Math.abs(Ie.y-Je[0][1])>1)&&(Ie=[Ie.x,Ie.y],je&&Se(Ie,dt)De||dt[1]ge)return[xve(dt[0],Ae,De),xve(dt[1],Pe,ge)]}function Nt(dt,Ge){if(dt[0]===Ge[0]&&(dt[0]===Ae||dt[0]===De)||dt[1]===Ge[1]&&(dt[1]===Pe||dt[1]===ge))return!0}function $t(dt,Ge){var Je=[],je=Gt(dt),$e=Gt(Ge);return je&&$e&&Nt(je,$e)||(je&&Je.push(je),$e&&Je.push($e)),Je}function sr(dt,Ge,Je){return function(je,$e){var wt=Gt(je),Ie=Gt($e),xe=[];if(wt&&Ie&&Nt(wt,Ie))return xe;wt&&xe.push(wt),Ie&&xe.push(Ie);var Ce=2*$P.constrain((je[dt]+$e[dt])/2,Ge,Je)-((wt||je)[dt]+(Ie||$e)[dt]);if(Ce){var vt;wt&&Ie?vt=Ce>0==wt[dt]>Ie[dt]?wt:Ie:vt=wt||Ie,vt[dt]+=Ce}return xe}}var wr;v==="linear"||v==="spline"?wr=lt:v==="hv"||v==="vh"?wr=$t:v==="hvh"?wr=sr(0,Ae,De):v==="vhv"&&(wr=sr(1,Pe,ge));function ur(dt,Ge){var Je=Ge[0]-dt[0],je=(Ge[1]-dt[1])/Je,$e=(dt[1]*Ge[0]-Ge[1]*dt[0])/Je;return $e>0?[je>0?Ae:De,ge]:[je>0?De:Ae,Pe]}function Qe(dt){var Ge=dt[0],Je=dt[1],je=Ge===A[L-1][0],$e=Je===A[L-1][1];if(!(je&&$e))if(L>1){var wt=Ge===A[L-2][0],Ie=Je===A[L-2][1];je&&(Ge===Ae||Ge===De)&&wt?Ie?L--:A[L-1]=dt:$e&&(Je===Pe||Je===ge)&&Ie?wt?L--:A[L-1]=dt:A[L++]=dt}else A[L++]=dt}function Et(dt){A[L-1][0]!==dt[0]&&A[L-1][1]!==dt[1]&&Qe([ct,pt]),Qe(dt),Wt=null,ct=pt=0}var er=$P.isArrayOrTypedArray(f);function Ut(dt){if(dt&&c&&(dt.i=x,dt.d=t,dt.trace=n,dt.marker=er?f[dt.i]:f,dt.backoff=c),ke=dt[0]/l,me=dt[1]/u,ce=dt[0]De?De:0,Ze=dt[1]ge?ge:0,ce||Ze){if(!L)A[L++]=[ce||dt[0],Ze||dt[1]];else if(Wt){var Ge=wr(Wt,dt);Ge.length>1&&(Et(Ge[0]),A[L++]=Ge[1])}else st=wr(A[L-1],dt)[0],A[L++]=st;var Je=A[L-1];ce&&Ze&&(Je[0]!==ce||Je[1]!==Ze)?(Wt&&(ct!==ce&&pt!==Ze?Qe(ct&&pt?ur(Wt,dt):[ct||ce,pt||Ze]):ct&&pt&&Qe([ct,pt])),Qe([ce,Ze])):ct-ce&&pt-Ze&&Qe([ce||ct,Ze||pt]),Wt=dt,ct=ce,pt=Ze}else Wt&&Et(wr(Wt,dt)[0]),A[L++]=dt}for(x=0;xie(T,Ft))break;M=T,N=V[0]*O[0]+V[1]*O[1],N>Z?(Z=N,g=T,z=!1):N=t.length||!T)break;Ut(T),k=T}}Wt&&Qe([ct||Wt[0],pt||Wt[1]]),p.push(A.slice(0,L))}var bt=v.slice(v.length-1);if(c&&bt!=="h"&&bt!=="v"){for(var yt=!1,Yt=-1,lr=[],Tr=0;Tr{"use strict";var Ave={tonextx:1,tonexty:1,tonext:1};Sve.exports=function(t,r,n){var i,a,o,s,l,u={},c=!1,f=-1,h=0,d=-1;for(a=0;a=0?l=d:(l=d=h,h++),l{"use strict";var Dg=Oa(),fpt=qa(),$M=Dr(),rT=$M.ensureSingle,Eve=$M.identity,Kf=So(),iT=Ru(),hpt=gU(),dpt=mU(),QP=EM().tester;Cve.exports=function(t,r,n,i,a,o){var s,l,u=!a,c=!!a&&a.duration>0,f=dpt(t,r,n);if(s=i.selectAll("g.trace").data(f,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),vpt(t,s,r),c){o&&(l=o());var h=Dg.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});h.each(function(){i.selectAll("g.trace").each(function(d,v){Mve(t,v,r,d,f,this,a)})})}else s.each(function(d,v){Mve(t,v,r,d,f,this,a)});u&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function vpt(e,t,r){t.each(function(n){var i=rT(Dg.select(this),"g","fills");Kf.setClipUrl(i,r.layerClipId,e);var a=n[0].trace,o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=i.selectAll("g").data(o,Eve);s.enter().append("g"),s.exit().each(function(l){a[l]=null}).remove(),s.order().each(function(l){a[l]=rT(Dg.select(this),"path","js-fill")})})}function Mve(e,t,r,n,i,a,o){var s=e._context.staticPlot,l;ppt(e,t,r,n,i);var u=!!o&&o.duration>0;function c(sr){return u?sr.transition():sr}var f=r.xaxis,h=r.yaxis,d=n[0].trace,v=d.line,_=Dg.select(a),b=rT(_,"g","errorbars"),p=rT(_,"g","lines"),C=rT(_,"g","points"),E=rT(_,"g","text");if(fpt.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;c(_).style("opacity",d.opacity);var A,L,x=d.fill.charAt(d.fill.length-1);x!=="x"&&x!=="y"&&(x="");var k,M;x==="y"?(k=1,M=h.c2p(0,!0)):x==="x"&&(k=0,M=f.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=_;var g="",P=[],T=d._prevtrace,z=null,O=null;T&&(g=T._prevRevpath||"",L=T._nextFill,P=T._ownPolygons,z=T._fillsegments,O=T._fillElement);var V,G,Z="",H="",N,j,re,oe,_e,Me,ke=[];d._polygons=[];var me=[],ie=[],Se=$M.noop;if(A=d._ownFill,iT.hasLines(d)||d.fill!=="none"){L&&L.datum(n),["hv","vh","hvh","vhv"].indexOf(v.shape)!==-1?(N=Kf.steps(v.shape),j=Kf.steps(v.shape.split("").reverse().join(""))):v.shape==="spline"?N=j=function(sr){var wr=sr[sr.length-1];return sr.length>1&&sr[0][0]===wr[0]&&sr[0][1]===wr[1]?Kf.smoothclosed(sr.slice(1),v.smoothing):Kf.smoothopen(sr,v.smoothing)}:N=j=function(sr){return"M"+sr.join("L")},re=function(sr){return j(sr.reverse())},ie=hpt(n,{xaxis:f,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(v.width||1,3)/4,shape:v.shape,backoff:v.backoff,simplify:v.simplify,fill:d.fill}),me=new Array(ie.length);var Le=0;for(l=0;l=s[0]&&_.x<=s[1]&&_.y>=l[0]&&_.y<=l[1]}),h=Math.ceil(f.length/c),d=0;i.forEach(function(_,b){var p=_[0].trace;iT.hasMarkers(p)&&p.marker.maxdisplayed>0&&b{"use strict";kve.exports={container:"marker",min:"cmin",max:"cmax"}});var tI=ye((dor,Lve)=>{"use strict";var eI=ho();Lve.exports=function(t,r,n){var i={},a={_fullLayout:n},o=eI.getFromTrace(a,r,"x"),s=eI.getFromTrace(a,r,"y"),l=t.orig_x;l===void 0&&(l=t.x);var u=t.orig_y;return u===void 0&&(u=t.y),i.xLabel=eI.tickText(o,o.c2l(l),!0).text,i.yLabel=eI.tickText(s,s.c2l(u),!0).text,i}});var op=ye((vor,Pve)=>{"use strict";var yU=Oa(),aT=So(),gpt=qa();function mpt(e){var t=yU.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var n=yU.select(this),i=r.trace||r[0].trace;_U(n,i,e)}),t.selectAll("g.text").each(function(r){var n=yU.select(this),i=r.trace||r[0].trace;xU(n,i,e)}),t.selectAll("g.trace path.js-line").call(aT.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(aT.fillGroupStyle,e,!1),gpt.getComponentMethod("errorbars","style")(t)}function _U(e,t,r){aT.pointStyle(e.selectAll("path.point"),t,r)}function xU(e,t,r){aT.textPointStyle(e.selectAll("text"),t,r)}function ypt(e,t,r){var n=t[0].trace;n.selectedpoints?(aT.selectedPointStyle(r.selectAll("path.point"),n),aT.selectedTextStyle(r.selectAll("text"),n)):(_U(r,n,e),xU(r,n,e))}Pve.exports={style:mpt,stylePoints:_U,styleText:xU,styleOnSelect:ypt}});var sT=ye((por,Ive)=>{"use strict";var oT=Ca(),_pt=Ru();Ive.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&oT.opacity(n)?n:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return i=a&&oT.opacity(a)?a:o&&oT.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?oT.opacity(i)<.3?oT.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&oT.opacity(n)&&_pt.hasLines(t)&&t.line.width?n:t.fillcolor)}});var lT=ye((gor,Dve)=>{"use strict";var rI=Dr(),Rve=vf(),xpt=qa(),bpt=sT(),bU=Ca(),wpt=rI.fillText;Dve.exports=function(t,r,n,i){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(n),f=[u,c],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,v=!!o.xperiodalignment,_=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(H){if(v){var N=s.c2p(H.xStart),j=s.c2p(H.xEnd);return u>=Math.min(N,j)&&u<=Math.max(N,j)?0:1/0}var re=Math.max(3,H.mrc||0),oe=1-1/re,_e=Math.abs(s.c2p(H.x)-u);return _e=Math.min(N,j)&&c<=Math.max(N,j)?0:1/0}var re=Math.max(3,H.mrc||0),oe=1-1/re,_e=Math.abs(l.c2p(H.y)-c);return _eke!=ge>=ke&&(Ae=Se[ie-1][0],De=Se[ie][0],ge-Pe&&(Le=Ae+(De-Ae)*(ke-Pe)/(ge-Pe),re=Math.min(re,Le),oe=Math.max(oe,Le)));return re=Math.max(re,0),oe=Math.min(oe,s._length),{x0:re,x1:oe,y0:ke,y1:ke}}if(h.indexOf("fills")!==-1&&o._fillElement){var V=z(o._fillElement)&&!z(o._fillExclusionElement);if(V){var G=O(o._polygons);G===null&&(G={x0:f[0],x1:f[0],y0:f[1],y1:f[1]});var Z=bU.defaultLine;return bU.opacity(o.fillcolor)?Z=o.fillcolor:bU.opacity((o.line||{}).color)&&(Z=o.line.color),rI.extendFlat(t,{distance:t.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:Z,hovertemplate:!1}),delete t.index,o.text&&!rI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var uT=ye((mor,zve)=>{"use strict";var Fve=Ru();zve.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h=!Fve.hasMarkers(s)&&!Fve.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";Ove.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var TU=ye((_or,Uve)=>{"use strict";var QM=qa().traceIs,wU=L3();Uve.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(Tpt(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function Tpt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=Apt(t,r,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=n+"calendar",s=a[o],l={noMultiCategory:!QM(a,"cartesian")||QM(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,Nve(a,n)){var u=Bve(a),c=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(Nve(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function Bve(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Nve(e,t){var r=Bve(e),n=QM(e,"box-violin"),i=QM(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var iI=ye((xor,Vve)=>{"use strict";var Spt=vv().isTypedArraySpec;function Mpt(e,t){var r=t.dataAttr||e._id.charAt(0),n={},i,a,o;if(t.axData)i=t.axData;else for(i=[],a=0;a0||Spt(a),s;o&&(s="array");var l=n("categoryorder",s),u;l==="array"&&(u=n("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=Mpt(r,i).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var e4=ye((bor,Hve)=>{"use strict";var Gve=cd().mix,Ept=Ch(),Cpt=Dr();Hve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(M,g){return Cpt.coerce2(t,r,i.attributes,M,g)}var s=o("linecolor",a),l=o("linewidth"),u=n("showline",i.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var c=Gve(a,i.bgColor,i.blend||Ept.lightFraction).toRgbString(),f=o("gridcolor",c),h=o("gridwidth"),d=o("griddash"),v=n("showgrid",i.showGrid||!!f||!!h||!!d);if(v||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),i.hasMinor){var _=Gve(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",_),p=o("minor.gridwidth",r.gridwidth||1),C=o("minor.griddash",r.griddash||"solid"),E=n("minor.showgrid",!!b||!!p||!!C);E||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!i.noZeroLine){var A=o("zerolinelayer"),L=o("zerolinecolor",a),x=o("zerolinewidth"),k=n("zeroline",i.showGrid||!!L||!!x);k||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var r4=ye((wor,Kve)=>{"use strict";var jve=Eo(),kpt=qa(),t4=Dr(),Lpt=pl(),Ppt=Yd(),AU=Rd(),Wve=xb(),Xve=T3(),Ipt=e_(),Rpt=t_(),Dpt=iI(),Fpt=e4(),zpt=mB(),Zve=ym(),nI=hd().WEEKDAY_PATTERN,Opt=hd().HOUR_PATTERN;Kve.exports=function(t,r,n,i,a){var o=i.letter,s=i.font||{},l=i.splomStash||{},u=n("visible",!i.visibleDflt),c=r._template||{},f=r.type||c.type||"-",h;if(f==="date"){var d=kpt.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",i.calendar),i.noTicklabelmode||(h=n("ticklabelmode"))}!i.noTicklabelindex&&(f==="date"||f==="linear")&&n("ticklabelindex");var v="";(!i.noTicklabelposition||f==="multicategory")&&(v=t4.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),i.noTicklabeloverflow||n("ticklabeloverflow",v.indexOf("inside")!==-1?"hide past domain":f==="category"||f==="multicategory"?"allow":"hide past div"),Zve(r,a),zpt(t,r,n,i),Dpt(t,r,n,i),i.noHover||(f!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var _=n("color"),b=_!==AU.color.dflt?_:s.color,p=l.label||a._dfltTitle[o];if(Rpt(t,r,n,f,i),!u)return r;n("title.text",p),t4.coerceFont(n,"title.font",s,{overrideDflt:{size:t4.bigFont(s.size),color:b}}),Wve(t,r,n,f);var C=i.hasMinor;if(C&&(Lpt.newContainer(r,"minor"),Wve(t,r,n,f,{isMinor:!0})),Ipt(t,r,n,f,i),Xve(t,r,n,i),C){var E=i.isMinor;i.isMinor=!0,Xve(t,r,n,i),i.isMinor=E}Fpt(t,r,n,{dfltColor:_,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:C,attributes:AU}),C&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var A=f==="multicategory";if(!i.noTickson&&(f==="category"||A)&&(r.ticks||r.showgrid)&&(A?(n("tickson","boundaries"),delete r.ticklabelposition):n("tickson")),A){var L=n("showdividers");L&&(n("dividercolor"),n("dividerwidth"))}if(f==="date")if(Ppt(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:qpt}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var x=0;x=2){var o="",s,l;if(a.length===2){for(s=0;s<2;s++)if(l=Yve(a[s]),l){o=nI;break}}var u=n("pattern",o);if(u===nI)for(s=0;s<2;s++)l=Yve(a[s]),l&&(t.bounds[s]=a[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=a[s],u){case nI:if(!jve(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=a[s]=l;break;case Opt:if(!jve(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=a[s]=l;break}if(r.autorange===!1){var c=r.range;if(c[0]c[1]){t.enabled=!1;return}}else if(a[0]>c[0]&&a[1]{"use strict";var Npt=Eo(),aI=Dr();Jve.exports=function(t,r,n,i){var a=i.counterAxes||[],o=i.overlayableAxes||[],s=i.letter,l=i.grid,u=i.overlayingDomain,c,f,h,d,v,_;l&&(f=l._domains[s][l._axisMap[r._id]],c=l._anchors[r._id],f&&(h=l[s+"side"].split(" ")[0],d=l.domain[s][h==="right"||h==="top"?1:0])),f=f||[0,1],c=c||(Npt(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,v=0,_=!1;var b=aI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:c}},"anchor"),p=aI.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(s==="y"){var C=n("autoshift");C&&(d=p==="left"?u[0]:u[1],_=r.automargin?r.automargin:!0,v=p==="left"?-3:3),n("shift",v)}n("position",d)}n("automargin",_);var E=!1;if(o.length&&(E=aI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!E){var A=n("domain",f);A[0]>A[1]-1/4096&&(r.domain=f),aI.noneOrAll(t.domain,r.domain,f),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var ope=ye((Aor,ape)=>{"use strict";var jb=Dr(),$ve=Ca(),Upt=ip().isUnifiedHover,Vpt=VB(),Qve=pl(),Gpt=s3(),epe=Rd(),Hpt=TU(),tpe=r4(),jpt=Bb(),rpe=oI(),MU=hf(),km=MU.id2name,ipe=MU.name2id,Wpt=hd().AX_ID_PATTERN,npe=qa(),sI=npe.traceIs,SU=npe.getComponentMethod;function lI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}ape.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},l={},u={},c={},f={},h={},d={},v={},_,b;for(_=0;_{"use strict";var Xpt=Oa(),spe=qa(),uI=Dr(),Qp=So(),cI=ho();lpe.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){cI.redrawComponents(t);return}function o(b){var p=b.xaxis,C=b.yaxis;a._defs.select("#"+b.clipId+"> rect").call(Qp.setTranslate,0,0).call(Qp.setScale,1,1),b.plot.call(Qp.setTranslate,p._offset,C._offset).call(Qp.setScale,1,1);var E=b.plot.selectAll(".scatterlayer .trace");E.selectAll(".point").call(Qp.setPointGroupScale,1,1),E.selectAll(".textpoint").call(Qp.setTextPointsScale,1,1),E.call(Qp.hideOutsideRangePoints,b)}function s(b,p){var C=b.plotinfo,E=C.xaxis,A=C.yaxis,L=E._length,x=A._length,k=!!b.xr1,M=!!b.yr1,g=[];if(k){var P=uI.simpleMap(b.xr0,E.r2l),T=uI.simpleMap(b.xr1,E.r2l),z=P[1]-P[0],O=T[1]-T[0];g[0]=(P[0]*(1-p)+p*T[0]-P[0])/(P[1]-P[0])*L,g[2]=L*(1-p+p*O/z),E.range[0]=E.l2r(P[0]*(1-p)+p*T[0]),E.range[1]=E.l2r(P[1]*(1-p)+p*T[1])}else g[0]=0,g[2]=L;if(M){var V=uI.simpleMap(b.yr0,A.r2l),G=uI.simpleMap(b.yr1,A.r2l),Z=V[1]-V[0],H=G[1]-G[0];g[1]=(V[1]*(1-p)+p*G[1]-V[1])/(V[0]-V[1])*x,g[3]=x*(1-p+p*H/Z),A.range[0]=E.l2r(V[0]*(1-p)+p*G[0]),A.range[1]=A.l2r(V[1]*(1-p)+p*G[1])}else g[1]=0,g[3]=x;cI.drawOne(t,E,{skipTitle:!0}),cI.drawOne(t,A,{skipTitle:!0}),cI.redrawComponents(t,[E._id,A._id]);var N=k?L/g[2]:1,j=M?x/g[3]:1,re=k?g[0]:0,oe=M?g[1]:0,_e=k?g[0]/g[2]*L:0,Me=M?g[1]/g[3]*x:0,ke=E._offset-_e,me=A._offset-Me;C.clipRect.call(Qp.setTranslate,re,oe).call(Qp.setScale,1/N,1/j),C.plot.call(Qp.setTranslate,ke,me).call(Qp.setScale,N,j),Qp.setPointGroupScale(C.zoomScalePts,1/N,1/j),Qp.setTextPointsScale(C.zoomScaleTxt,1/N,1/j)}var l;i&&(l=i());function u(){for(var b={},p=0;pn.duration?(u(),d=window.cancelAnimationFrame(_)):d=window.requestAnimationFrame(_)}return f=Date.now(),d=window.requestAnimationFrame(_),Promise.resolve()}});var ph=ye(xv=>{"use strict";var hI=Oa(),cpe=qa(),Wb=Dr(),Zpt=Mc(),Ypt=So(),fpe=Id().getModuleCalcData,g_=hf(),Fg=hd(),Kpt=Wp(),iu=Wb.ensureSingle;function fI(e,t,r){return Wb.ensureSingle(e,t,r,function(n){n.datum(r)})}var Xb=Fg.zindexSeparator;xv.name="cartesian";xv.attr=["xaxis","yaxis"];xv.idRoot=["x","y"];xv.idRegex=Fg.idRegex;xv.attrRegex=Fg.attrRegex;xv.attributes=qve();xv.layoutAttributes=Rd();xv.supplyLayoutDefaults=ope();xv.transitionAxes=upe();xv.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,i=r.yaxis,a=r.cartesian,o=a,s={},l={},u,c,f;for(u=0;u0){var d=h.id;if(d.indexOf(Xb)!==-1)continue;d+=Xb+(u+1),h=Wb.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var v=[],_,b=0;b1&&(L+=Xb+A),E.push(s+L),o=0;o1,f=t.mainplotinfo;if(!t.mainplot||c)if(u)t.xlines=iu(n,"path","xlines-above"),t.ylines=iu(n,"path","ylines-above"),t.xaxislayer=iu(n,"g","xaxislayer-above"),t.yaxislayer=iu(n,"g","yaxislayer-above");else{if(!o){var h=iu(n,"g","layer-subplot");t.shapelayer=iu(h,"g","shapelayer"),t.imagelayer=iu(h,"g","imagelayer"),f&&c?(t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer):(t.minorGridlayer=iu(n,"g","minor-gridlayer"),t.gridlayer=iu(n,"g","gridlayer"),t.zerolinelayer=iu(n,"g","zerolinelayer"));var d=iu(n,"g","layer-between");t.shapelayerBetween=iu(d,"g","shapelayer"),t.imagelayerBetween=iu(d,"g","imagelayer"),iu(n,"path","xlines-below"),iu(n,"path","ylines-below"),t.overlinesBelow=iu(n,"g","overlines-below"),iu(n,"g","xaxislayer-below"),iu(n,"g","yaxislayer-below"),t.overaxesBelow=iu(n,"g","overaxes-below")}t.overplot=iu(n,"g","overplot"),t.plot=iu(t.overplot,"g",i),f&&c?t.zerolinelayerAbove=f.zerolinelayerAbove:t.zerolinelayerAbove=iu(n,"g","zerolinelayer-above"),o||(t.xlines=iu(n,"path","xlines-above"),t.ylines=iu(n,"path","ylines-above"),t.overlinesAbove=iu(n,"g","overlines-above"),iu(n,"g","xaxislayer-above"),iu(n,"g","yaxislayer-above"),t.overaxesAbove=iu(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+s),t.ylines=n.select(".ylines-"+l),t.xaxislayer=n.select(".xaxislayer-"+s),t.yaxislayer=n.select(".yaxislayer-"+l))}else{var v=f.plotgroup,_=i+"-x",b=i+"-y";t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer,t.zerolinelayerAbove=f.zerolinelayerAbove,iu(f.overlinesBelow,"path",_),iu(f.overlinesBelow,"path",b),iu(f.overaxesBelow,"g",_),iu(f.overaxesBelow,"g",b),t.plot=iu(f.overplot,"g",i),iu(f.overlinesAbove,"path",_),iu(f.overlinesAbove,"path",b),iu(f.overaxesAbove,"g",_),iu(f.overaxesAbove,"g",b),t.xlines=v.select(".overlines-"+s).select("."+_),t.ylines=v.select(".overlines-"+l).select("."+b),t.xaxislayer=v.select(".overaxes-"+s).select("."+_),t.yaxislayer=v.select(".overaxes-"+l).select("."+b)}o||(u||(fI(t.minorGridlayer,"g",t.xaxis._id),fI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(p){return p[0]}).sort(g_.idSort),fI(t.gridlayer,"g",t.xaxis._id),fI(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(p){return p[0]}).sort(g_.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function vpe(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=hI.select(this);c.remove(),ppe(u,t),r[u]=!0});for(var n in t._plots)for(var i=t._plots[n],a=i.overlays||[],o=0;o{"use strict";var dI=Ru();gpe.exports={hasLines:dI.hasLines,hasMarkers:dI.hasMarkers,hasText:dI.hasText,isBubble:dI.isBubble,attributes:pf(),layoutAttributes:W6(),supplyDefaults:Gde(),crossTraceDefaults:iU(),supplyLayoutDefaults:Xde(),calc:q0().calc,crossTraceCalc:mve(),arraysToCalcdata:Cm(),plot:nT(),colorbar:$d(),formatLabels:tI(),style:op().style,styleOnSelect:op().styleOnSelect,hoverPoints:lT(),selectPoints:uT(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:ph(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var xpe=ye((Cor,_pe)=>{"use strict";var $pt=Oa(),Qpt=Ca(),ype=LN(),EU=Dr(),e0t=EU.strScale,t0t=EU.strRotate,r0t=EU.strTranslate;_pe.exports=function(t,r,n){var i=t.node(),a=ype[n.arrowhead||0],o=ype[n.startarrowhead||0],s=(n.arrowwidth||1)*(n.arrowsize||1),l=(n.arrowwidth||1)*(n.startarrowsize||1),u=r.indexOf("start")>=0,c=r.indexOf("end")>=0,f=a.backoff*s+n.standoff,h=o.backoff*l+n.startstandoff,d,v,_,b;if(i.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},v={x:+t.attr("x2"),y:+t.attr("y2")};var p=d.x-v.x,C=d.y-v.y;if(_=Math.atan2(C,p),b=_+Math.PI,f&&h&&f+h>Math.sqrt(p*p+C*C)){V();return}if(f){if(f*f>p*p+C*C){V();return}var E=f*Math.cos(_),A=f*Math.sin(_);v.x+=E,v.y+=A,t.attr({x2:v.x,y2:v.y})}if(h){if(h*h>p*p+C*C){V();return}var L=h*Math.cos(_),x=h*Math.sin(_);d.x-=L,d.y-=x,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var k=i.getTotalLength(),M="";if(k{"use strict";var bpe=Oa(),CU=qa(),i0t=Mc(),y_=Dr(),kU=y_.strTranslate,n4=ho(),Zb=Ca(),Py=So(),wpe=vf(),LU=ru(),PU=Ag(),i4=yv(),n0t=pl().arrayEditor,a0t=xpe();Spe.exports={draw:o0t,drawOne:Tpe,drawRaw:Ape};function o0t(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?$e="right":$e="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[$e]}for(var Pe=!1,ge=["x","y"],Fe=0;Fe1)&&(ct===Ze?(Ft=pt.r2fraction(t["a"+ce]),(Ft<0||Ft>1)&&(Pe=!0)):Pe=!0),wr=pt._offset+pt.r2p(t[ce]),Et=.5}else{var bt=Ut==="domain";ce==="x"?(Qe=t[ce],wr=bt?pt._offset+pt._length*Qe:wr=s.l+s.w*Qe):(Qe=1-t[ce],wr=bt?pt._offset+pt._length*Qe:wr=s.t+s.h*Qe),Et=t.showarrow?.5:Qe}if(t.showarrow){sr.head=wr;var yt=t["a"+ce];if(er=st*De(.5,t.xanchor)-lt*De(.5,t.yanchor),ct===Ze){var Yt=n4.getRefType(ct);Yt==="domain"?(ce==="y"&&(yt=1-yt),sr.tail=pt._offset+pt._length*yt):Yt==="paper"?ce==="y"?(yt=1-yt,sr.tail=s.t+s.h*yt):sr.tail=s.l+s.w*yt:sr.tail=pt._offset+pt.r2p(yt),ur=er}else sr.tail=wr+yt,ur=er+yt;sr.text=sr.tail+er;var lr=o[ce==="x"?"width":"height"];if(Ze==="paper"&&(sr.head=y_.constrain(sr.head,1,lr-1)),ct==="pixel"){var Tr=-Math.max(sr.tail-3,sr.text),Rr=Math.min(sr.tail+3,sr.text)-lr;Tr>0?(sr.tail+=Tr,sr.text+=Tr):Rr>0&&(sr.tail-=Rr,sr.text-=Rr)}sr.tail+=$t,sr.head+=$t}else er=Gt*De(Et,Nt),ur=er,sr.text=wr+er;sr.text+=$t,er+=$t,ur+=$t,t["_"+ce+"padplus"]=Gt/2+ur,t["_"+ce+"padminus"]=Gt/2-ur,t["_"+ce+"size"]=Gt,t["_"+ce+"shift"]=er}if(Pe){k.remove();return}var ei=0,Wr=0;if(t.align!=="left"&&(ei=(ie-ke)*(t.align==="center"?.5:1)),t.valign!=="top"&&(Wr=(Se-me)*(t.valign==="middle"?.5:1)),_e)oe.select("svg").attr({x:P+ei-1,y:P+Wr}).call(Py.setClipUrl,z?_:null,e);else{var Ur=P+Wr-Me.top,dt=P+ei-Me.left;Z.call(LU.positionText,dt,Ur).call(Py.setClipUrl,z?_:null,e)}O.select("rect").call(Py.setRect,P,P,ie,Se),T.call(Py.setRect,M/2,M/2,Le-M,Ae-M),k.call(Py.setTranslate,Math.round(b.x.text-Le/2),Math.round(b.y.text-Ae/2)),E.attr({transform:"rotate("+p+","+b.x.text+","+b.y.text+")"});var Ge=function(je,$e){C.selectAll(".annotation-arrow-g").remove();var wt=b.x.head,Ie=b.y.head,xe=b.x.tail+je,Ce=b.y.tail+$e,vt=b.x.text+je,nr=b.y.text+$e,ir=y_.rotationXYMatrix(p,vt,nr),pr=y_.apply2DTransform(ir),oi=y_.apply2DTransform2(ir),di=+T.attr("width"),Jr=+T.attr("height"),fi=vt-.5*di,Hi=fi+di,Pn=nr-.5*Jr,wn=Pn+Jr,pn=[[fi,Pn,fi,wn],[fi,wn,Hi,wn],[Hi,wn,Hi,Pn],[Hi,Pn,fi,Pn]].map(oi);if(!pn.reduce(function($r,zi){return $r^!!y_.segmentsIntersect(wt,Ie,wt+1e6,Ie+1e6,zi[0],zi[1],zi[2],zi[3])},!1)){pn.forEach(function($r){var zi=y_.segmentsIntersect(xe,Ce,wt,Ie,$r[0],$r[1],$r[2],$r[3]);zi&&(xe=zi.x,Ce=zi.y)});var Vn=t.arrowwidth,kn=t.arrowcolor,ea=t.arrowside,ua=C.append("g").style({opacity:Zb.opacity(kn)}).classed("annotation-arrow-g",!0),Vt=ua.append("path").attr("d","M"+xe+","+Ce+"L"+wt+","+Ie).style("stroke-width",Vn+"px").call(Zb.stroke,Zb.rgb(kn));if(a0t(Vt,ea,t),l.annotationPosition&&Vt.node().parentNode&&!n){var _t=wt,tr=Ie;if(t.standoff){var ar=Math.sqrt(Math.pow(wt-xe,2)+Math.pow(Ie-Ce,2));_t+=t.standoff*(xe-wt)/ar,tr+=t.standoff*(Ce-Ie)/ar}var Er=ua.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(xe-_t)+","+(Ce-tr),transform:kU(_t,tr)}).style("stroke-width",Vn+6+"px").call(Zb.stroke,"rgba(0,0,0,0)").call(Zb.fill,"rgba(0,0,0,0)"),Zr,ri;i4.init({element:Er.node(),gd:e,prepFn:function(){var $r=Py.getTranslate(k);Zr=$r.x,ri=$r.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function($r,zi){var Ji=pr(Zr,ri),en=Ji[0]+$r,cn=Ji[1]+zi;k.call(Py.setTranslate,en,cn),d("x",m_(i,$r,"x",s,t)),d("y",m_(a,zi,"y",s,t)),t.axref===t.xref&&d("ax",m_(i,$r,"ax",s,t)),t.ayref===t.yref&&d("ay",m_(a,zi,"ay",s,t)),ua.attr("transform",kU($r,zi)),E.attr({transform:"rotate("+p+","+en+","+cn+")"})},doneFn:function(){CU.call("_guiRelayout",e,v());var $r=document.querySelector(".js-notes-box-panel");$r&&$r.redraw($r.selectedObj)}})}}};if(t.showarrow&&Ge(0,0),A){var Je;i4.init({element:k.node(),gd:e,prepFn:function(){Je=E.attr("transform")},moveFn:function(je,$e){var wt="pointer";if(t.showarrow)t.axref===t.xref?d("ax",m_(i,je,"ax",s,t)):d("ax",t.ax+je),t.ayref===t.yref?d("ay",m_(a,$e,"ay",s.w,t)):d("ay",t.ay+$e),Ge(je,$e);else{if(n)return;var Ie,xe;if(i)Ie=m_(i,je,"x",s,t);else{var Ce=t._xsize/s.w,vt=t.x+(t._xshift-t.xshift)/s.w-Ce/2;Ie=i4.align(vt+je/s.w,Ce,0,1,t.xanchor)}if(a)xe=m_(a,$e,"y",s,t);else{var nr=t._ysize/s.h,ir=t.y-(t._yshift+t.yshift)/s.h-nr/2;xe=i4.align(ir-$e/s.h,nr,0,1,t.yanchor)}d("x",Ie),d("y",xe),(!i||!a)&&(wt=i4.getCursor(i?.5:Ie,a?.5:xe,t.xanchor,t.yanchor))}E.attr({transform:kU(je,$e)+Je}),PU(k,wt)},clickFn:function(je,$e){t.captureevents&&e.emit("plotly_clickannotation",x($e))},doneFn:function(){PU(k),CU.call("_guiRelayout",e,v());var je=document.querySelector(".js-notes-box-panel");je&&je.redraw(je.selectedObj)}})}}l.annotationText?Z.call(LU.makeEditable,{delegate:k,gd:e}).call(H).on("edit",function(j){t.text=j,this.call(H),d("text",j),i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),CU.call("_guiRelayout",e,v())}):Z.call(H)}});var Ppe=ye((Lor,Lpe)=>{"use strict";var Mpe=Dr(),s0t=qa(),Epe=pl().arrayEditor;Lpe.exports={hasClickToShow:l0t,onClick:u0t};function l0t(e,t){var r=kpe(e,t);return r.on.length>0||r.explicitOff.length>0}function u0t(e,t){var r=kpe(e,t),n=r.on,i=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,l;if(n.length||i.length){for(s=0;s{"use strict";var IU=Dr(),cT=Ca();Ipe.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=cT.opacity(o);i("borderpad");var l=i("borderwidth"),u=i("showarrow");i("text",u?" ":n._dfltTitle.annotation),i("textangle"),IU.coerceFont(i,"font",n.font),i("width"),i("align");var c=i("height");if(c&&i("valign"),u){var f=i("arrowside"),h,d;f.indexOf("end")!==-1&&(h=i("arrowhead"),d=i("arrowsize")),f.indexOf("start")!==-1&&(i("startarrowhead",h),i("startarrowsize",d)),i("arrowcolor",s?r.bordercolor:cT.defaultLine),i("arrowwidth",(s&&l||1)*2),i("standoff"),i("startstandoff")}var v=i("hovertext"),_=n.hoverlabel||{};if(v){var b=i("hoverlabel.bgcolor",_.bgcolor||(cT.opacity(a)?cT.rgb(a):cT.defaultLine)),p=i("hoverlabel.bordercolor",_.bordercolor||cT.contrast(b)),C=IU.extendFlat({},_.font);C.color||(C.color=p),IU.coerceFont(i,"hoverlabel.font",C)}i("captureevents",!!v)}});var Dpe=ye((Ior,Rpe)=>{"use strict";var DU=Dr(),Yb=ho(),c0t=Yd(),f0t=RU(),h0t=Nb();Rpe.exports=function(t,r){c0t(t,r,{name:"annotations",handleItemDefaults:d0t})};function d0t(e,t,r){function n(E,A){return DU.coerce(e,t,h0t,E,A)}var i=n("visible"),a=n("clicktoshow");if(i||a){f0t(e,t,r,n);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},c=0;c<2;c++){var f=s[c],h=Yb.coerceRef(e,t,u,f,"","paper");if(h!=="paper"){var d=Yb.getFromId(u,h);d._annIndices.push(t._index)}if(Yb.coercePosition(t,u,n,h,f,.5),o){var v="a"+f,_=Yb.coerceRef(e,t,u,v,"pixel",["pixel","paper"]);_!=="pixel"&&_!==h&&(_=t[v]="pixel");var b=_==="pixel"?l[c]:.4;Yb.coercePosition(t,u,n,_,v,b)}n(f+"anchor"),n(f+"shift")}if(DU.noneOrAll(e,t,["x","y"]),o&&DU.noneOrAll(e,t,["ax","ay"]),a){var p=n("xclick"),C=n("yclick");t._xclick=p===void 0?t.x:Yb.cleanPosition(p,u,t.xref),t._yclick=C===void 0?t.y:Yb.cleanPosition(C,u,t.yref)}}}});var Ope=ye((Ror,zpe)=>{"use strict";var FU=Dr(),Kb=ho(),v0t=vI().draw;zpe.exports=function(t){var r=t._fullLayout,n=FU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return FU.syncOrAsync([v0t,p0t],t)};function p0t(e){var t=e._fullLayout;FU.filterVisible(t.annotations).forEach(function(r){var n=Kb.getFromId(e,r.xref),i=Kb.getFromId(e,r.yref),a=Kb.getRefType(r.xref),o=Kb.getRefType(r.yref);r._extremes={},a==="range"&&Fpe(r,n),o==="range"&&Fpe(r,i)})}function Fpe(e,t){var r=t._id,n=r.charAt(0),i=e[n],a=e["a"+n],o=e[n+"ref"],s=e["a"+n+"ref"],l=e["_"+n+"padplus"],u=e["_"+n+"padminus"],c={x:1,y:-1}[n]*e[n+"shift"],f=3*e.arrowsize*e.arrowwidth||0,h=f+c,d=f-c,v=3*e.startarrowsize*e.arrowwidth||0,_=v+c,b=v-c,p;if(s===o){var C=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),E=Kb.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,_),ppadminus:Math.max(u,b)});p={min:[C.min[0],E.min[0]],max:[C.max[0],E.max[0]]}}else _=a?_+a:_,b=a?b-a:b,p=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(l,h,_),ppadminus:Math.max(u,d,b)});e._extremes[r]=p}});var Bpe=ye((Dor,qpe)=>{"use strict";var g0t=Eo(),m0t=g6();qpe.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,c;function f(d){var v=u[d],_=null;a?_=m0t(v,r.range):_=Math.pow(10,v),g0t(_)||(_=null),i(c+d,_)}for(var h=0;h{"use strict";var zU=vI(),Npe=Ppe();Upe.exports={moduleType:"component",name:"annotations",layoutAttributes:Nb(),supplyLayoutDefaults:Dpe(),includeBasePlot:OM()("annotations"),calcAutorange:Ope(),draw:zU.draw,drawOne:zU.drawOne,drawRaw:zU.drawRaw,hasClickToShow:Npe.hasClickToShow,onClick:Npe.onClick,convertCoords:Bpe()}});var pI=ye((zor,Gpe)=>{"use strict";var Cc=Nb(),y0t=mc().overrideAll,_0t=pl().templatedArray;Gpe.exports=y0t(_0t("annotation",{visible:Cc.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Cc.xanchor,xshift:Cc.xshift,yanchor:Cc.yanchor,yshift:Cc.yshift,text:Cc.text,textangle:Cc.textangle,font:Cc.font,width:Cc.width,height:Cc.height,opacity:Cc.opacity,align:Cc.align,valign:Cc.valign,bgcolor:Cc.bgcolor,bordercolor:Cc.bordercolor,borderpad:Cc.borderpad,borderwidth:Cc.borderwidth,showarrow:Cc.showarrow,arrowcolor:Cc.arrowcolor,arrowhead:Cc.arrowhead,startarrowhead:Cc.startarrowhead,arrowside:Cc.arrowside,arrowsize:Cc.arrowsize,startarrowsize:Cc.startarrowsize,arrowwidth:Cc.arrowwidth,standoff:Cc.standoff,startstandoff:Cc.startstandoff,hovertext:Cc.hovertext,hoverlabel:Cc.hoverlabel,captureevents:Cc.captureevents}),"calc","from-root")});var jpe=ye((Oor,Hpe)=>{"use strict";var OU=Dr(),x0t=ho(),b0t=Yd(),w0t=RU(),T0t=pI();Hpe.exports=function(t,r,n){b0t(t,r,{name:"annotations",handleItemDefaults:A0t,fullLayout:n.fullLayout})};function A0t(e,t,r,n){function i(s,l){return OU.coerce(e,t,T0t,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],x0t.coercePosition(t,u,i,s,s,.5)}var o=i("visible");o&&(w0t(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),OU.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",i("ax",-10),i("ay",-30),OU.noneOrAll(e,t,["ax","ay"])))}});var Ype=ye((qor,Zpe)=>{"use strict";var Wpe=Dr(),Xpe=ho();Zpe.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function qU(e,t){var r=[0,0,0,0],n,i;for(n=0;n<4;++n)for(i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function M0t(e,t){var r=qU(e.projection,qU(e.view,qU(e.model,[t[0],t[1],t[2],1])));return r}Kpe.exports=M0t});var $pe=ye((Nor,Jpe)=>{"use strict";var E0t=vI().drawRaw,C0t=BU(),k0t=["x","y","z"];Jpe.exports=function(t){for(var r=t.fullSceneLayout,n=t.dataScale,i=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=C0t(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),E0t(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var t0e=ye((Uor,e0e)=>{"use strict";var L0t=qa(),Qpe=Dr();e0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:pI()}}},layoutAttributes:pI(),handleDefaults:jpe(),includeBasePlot:P0t,convert:Ype(),draw:$pe()};function P0t(e,t){var r=L0t.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var r0e=Nb(),i0e=ec(),n0e=pf().line,I0t=Pd().dash,zg=Ao().extendFlat,R0t=pl().templatedArray,Vor=zM(),fT=Gl(),D0t=Qo().shapeTexttemplateAttrs,F0t=S6();a0e.exports=R0t("shape",{visible:zg({},fT.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:zg({},fT.legend,{editType:"calc+arraydraw"}),legendgroup:zg({},fT.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:zg({},fT.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:i0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:zg({},fT.legendrank,{editType:"calc+arraydraw"}),legendwidth:zg({},fT.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:zg({},r0e.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:zg({},r0e.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:zg({},n0e.color,{editType:"arraydraw"}),width:zg({},n0e.width,{editType:"calc+arraydraw"}),dash:zg({},I0t,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:D0t({},{keys:Object.keys(F0t)}),font:i0e({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var l0e=ye((Hor,s0e)=>{"use strict";var a4=Dr(),hT=ho(),z0t=Yd(),O0t=NU(),o0e=f_();s0e.exports=function(t,r){z0t(t,r,{name:"shapes",handleItemDefaults:B0t})};function q0t(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function B0t(e,t,r){function n(j,re){return a4.coerce(e,t,O0t,j,re)}t._isShape=!0;var i=n("visible");if(i){var a=n("showlegend");a&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),a4.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),s=o?"path":"rect",l=n("type",s),u=l!=="path";u&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var c=n("line.width");c&&(n("line.color"),n("line.dash"));for(var f=n("xsizemode"),h=n("ysizemode"),d=["x","y"],v=0;v<2;v++){var _=d[v],b=_+"anchor",p=_==="x"?f:h,C={_fullLayout:r},E,A,L,x=hT.coerceRef(e,t,C,_,void 0,"paper"),k=hT.getRefType(x);if(k==="range"?(E=hT.getFromId(C,x),E._shapeIndices.push(t._index),L=o0e.rangeToShapePosition(E),A=o0e.shapePositionToRange(E),(E.type==="category"||E.type==="multicategory")&&(n(_+"0shift"),n(_+"1shift"))):A=L=a4.identity,u){var M=.25,g=.75,P=_+"0",T=_+"1",z=e[P],O=e[T];e[P]=A(e[P],!0),e[T]=A(e[T],!0),p==="pixel"?(n(P,0),n(T,10)):(hT.coercePosition(t,C,n,x,P,M),hT.coercePosition(t,C,n,x,T,g)),t[P]=L(t[P]),t[T]=L(t[T]),e[P]=z,e[T]=O}if(p==="pixel"){var V=e[b];e[b]=A(e[b],!0),hT.coercePosition(t,C,n,x,b,.25),t[b]=L(t[b]),e[b]=V}}u&&a4.noneOrAll(e,t,["x0","x1","y0","y1"]);var G=l==="line",Z,H;if(u&&(Z=n("label.texttemplate")),Z||(H=n("label.text")),H||Z){n("label.textangle");var N=n("label.textposition",G?"middle":"middle center");n("label.xanchor"),n("label.yanchor",q0t(G,N)),n("label.padding"),a4.coerceFont(n,"label.font",r.font)}}}});var f0e=ye((jor,c0e)=>{"use strict";var N0t=Ca(),u0e=Dr();function U0t(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}c0e.exports=function(t,r,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),u0e.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var i=n("newshape.line.width");if(i){var a=(t||{}).plot_bgcolor||"#FFF";n("newshape.line.color",N0t.contrast(a)),n("newshape.line.dash")}var o=t.dragmode==="drawline",s=n("newshape.label.text"),l=n("newshape.label.texttemplate");if(s||l){n("newshape.label.textangle");var u=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",U0t(o,u)),n("newshape.label.padding"),u0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var g0e=ye((Wor,p0e)=>{"use strict";var UU=Dr(),dT=ho(),vT=pM(),d0e=f_();p0e.exports=function(t){var r=t._fullLayout,n=UU.filterVisible(r.shapes);if(!(!n.length||!t._fullData.length))for(var i=0;i0?u+o:o;return{ppad:o,ppadplus:s?f:h,ppadminus:s?h:f}}else return{ppad:o}}function h0e(e,t,r){var n=e._id.charAt(0)==="x"?"x":"y",i=e.type==="category"||e.type==="multicategory",a,o,s=0,l=0,u=i?e.r2c:e.d2c,c=t[n+"sizemode"]==="scaled";if(c?(a=t[n+"0"],o=t[n+"1"],i&&(s=t[n+"0shift"],l=t[n+"1shift"])):(a=t[n+"anchor"],o=t[n+"anchor"]),a!==void 0)return[u(a)+s,u(o)+l];if(t.path){var f=1/0,h=-1/0,d=t.path.match(vT.segmentRE),v,_,b,p,C;for(e.type==="date"&&(u=d0e.decodeDate(u)),v=0;vh&&(h=C)));if(h>=f)return[f,h]}}});var _0e=ye((Xor,y0e)=>{"use strict";var m0e=aP();y0e.exports={moduleType:"component",name:"shapes",layoutAttributes:NU(),supplyLayoutDefaults:l0e(),supplyDrawNewShapeDefaults:f0e(),includeBasePlot:OM()("shapes"),calcAutorange:g0e(),draw:m0e.draw,drawOne:m0e.drawOne}});var VU=ye((Yor,b0e)=>{"use strict";var x0e=hd(),H0t=pl().templatedArray,Zor=zM();b0e.exports=H0t("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",x0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",x0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var T0e=ye((Kor,w0e)=>{"use strict";var j0t=Dr(),GU=ho(),W0t=Yd(),X0t=VU(),Z0t="images";w0e.exports=function(t,r){var n={name:Z0t,handleItemDefaults:Y0t};W0t(t,r,n)};function Y0t(e,t,r){function n(h,d){return j0t.coerce(e,t,X0t,h,d)}var i=n("source"),a=n("visible",!!i);if(!a)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],c=GU.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var f=GU.getFromId(o,c);f._imgIndices.push(t._index)}GU.coercePosition(t,o,n,c,u,0)}return t}});var E0e=ye((Jor,M0e)=>{"use strict";var A0e=Oa(),K0t=So(),pT=ho(),S0e=hf(),J0t=Wp();M0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var C0e=Eo(),$0t=g6();k0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,c,f=0;f{"use strict";P0e.exports={moduleType:"component",name:"images",layoutAttributes:VU(),supplyLayoutDefaults:T0e(),includeBasePlot:OM()("images"),draw:E0e(),convertCoords:L0e()}});var gI=ye((esr,R0e)=>{"use strict";R0e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var HU=ye((tsr,F0e)=>{"use strict";var Q0t=ec(),egt=Ch(),tgt=Ao().extendFlat,rgt=mc().overrideAll,igt=M6(),D0e=pl().templatedArray,ngt=D0e("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});F0e.exports=rgt(D0e("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:ngt,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:tgt(igt({editType:"arraydraw"}),{}),font:Q0t({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:egt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var B0e=ye((rsr,q0e)=>{"use strict";var mI=Dr(),z0e=Yd(),O0e=HU(),agt=gI(),ogt=agt.name,sgt=O0e.buttons;q0e.exports=function(t,r){var n={name:ogt,handleItemDefaults:lgt};z0e(t,r,n)};function lgt(e,t,r){function n(o,s){return mI.coerce(e,t,O0e,o,s)}var i=z0e(e,t,{name:"buttons",handleItemDefaults:ugt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),mI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),mI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function ugt(e,t){function r(i,a){return mI.coerce(e,t,sgt,i,a)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var V0e=ye((isr,U0e)=>{"use strict";U0e.exports=Sf;var Og=Oa(),N0e=Ca(),gT=So(),yI=Dr();function Sf(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Sf.barWidth=2;Sf.barLength=20;Sf.barRadius=2;Sf.barPad=1;Sf.barColor="#808BA4";Sf.prototype.enable=function(t,r,n){var i=this.gd._fullLayout,a=i.width,o=i.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,c=this.position.h,f=this.position.direction,h=f==="down",d=f==="left",v=f==="right",_=f==="up",b=l,p=c,C,E,A,L;!h&&!d&&!v&&!_&&(this.position.direction="down",h=!0);var x=h||_;x?(C=s,E=C+b,h?(A=u,L=Math.min(A+p,o),p=L-A):(L=u+p,A=Math.max(L-p,0),p=L-A)):(A=u,L=A+p,d?(E=s+b,C=Math.max(E-b,0),b=E-C):(C=s,E=Math.min(C+b,a),b=E-C)),this._box={l:C,t:A,w:b,h:p};var k=l>b,M=Sf.barLength+2*Sf.barPad,g=Sf.barWidth+2*Sf.barPad,P=s,T=u+c;T+g>o&&(T=o-g);var z=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);z.exit().on(".drag",null).remove(),z.enter().append("rect").classed("scrollbar-horizontal",!0).call(N0e.fill,Sf.barColor),k?(this.hbar=z.attr({rx:Sf.barRadius,ry:Sf.barRadius,x:P,y:T,width:M,height:g}),this._hbarXMin=P+M/2,this._hbarTranslateMax=b-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=c>p,V=Sf.barWidth+2*Sf.barPad,G=Sf.barLength+2*Sf.barPad,Z=s+l,H=u;Z+V>a&&(Z=a-V);var N=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(N0e.fill,Sf.barColor),O?(this.vbar=N.attr({rx:Sf.barRadius,ry:Sf.barRadius,x:Z,y:H,width:V,height:G}),this._vbarYMin=H+G/2,this._vbarTranslateMax=p-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var j=this.id,re=C-.5,oe=O?E+V+.5:E+.5,_e=A-.5,Me=k?L+g+.5:L+.5,ke=i._topdefs.selectAll("#"+j).data(k||O?[0]:[]);if(ke.exit().remove(),ke.enter().append("clipPath").attr("id",j).append("rect"),k||O?(this._clipRect=ke.select("rect").attr({x:Math.floor(re),y:Math.floor(_e),width:Math.ceil(oe)-Math.floor(re),height:Math.ceil(Me)-Math.floor(_e)}),this.container.call(gT.setClipUrl,j,this.gd),this.bg.attr({x:s,y:u,width:l,height:c})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(gT.setClipUrl,null),delete this._clipRect),k||O){var me=Og.behavior.drag().on("dragstart",function(){Og.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(me);var ie=Og.behavior.drag().on("dragstart",function(){Og.event.sourceEvent.preventDefault(),Og.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(ie),O&&this.vbar.on(".drag",null).call(ie)}this.setTranslate(r,n)};Sf.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(gT.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Sf.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Og.event.dx),this.vbar&&(r-=Og.event.dy),this.setTranslate(t,r)};Sf.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Og.event.deltaY),this.vbar&&(r+=Og.event.deltaY),this.setTranslate(t,r)};Sf.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax,a=yI.constrain(Og.event.x,n,i),o=(a-n)/(i-n),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,c=yI.constrain(Og.event.y,l,u),f=(c-l)/(u-l),h=this.position.h-this._box.h;r=f*h}this.setTranslate(t,r)};Sf.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,i=this.position.h-this._box.h;if(t=yI.constrain(t||0,0,n),r=yI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(gT.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/n;this.hbar.call(gT.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(gT.setTranslate,t,r+o*this._vbarTranslateMax)}}});var $0e=ye((nsr,J0e)=>{"use strict";var mT=Oa(),o4=Mc(),s4=Ca(),yT=So(),e0=Dr(),_I=ru(),cgt=pl().arrayEditor,H0e=Kh().LINE_SPACING,ts=gI(),fgt=V0e();J0e.exports=function(t){var r=t._fullLayout,n=e0.filterVisible(r[ts.name]);function i(h){o4.autoMargin(t,Y0e(h))}var a=r._menulayer.selectAll("g."+ts.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(ts.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){mT.select(this).selectAll("g."+ts.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+ts.headerGroupClassName).data(n,hgt);o.enter().append("g").classed(ts.headerGroupClassName,!0);for(var s=e0.ensureSingle(a,"g",ts.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),l=0;l{"use strict";var _gt=gI();Q0e.exports={moduleType:"component",name:_gt.name,layoutAttributes:HU(),supplyLayoutDefaults:B0e(),draw:$0e()}});var u4=ye((osr,tge)=>{"use strict";tge.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var ZU=ye((ssr,nge)=>{"use strict";var rge=ec(),xgt=M6(),bgt=Ao().extendDeepAll,wgt=mc().overrideAll,Tgt=BS(),ige=pl().templatedArray,Jb=u4(),Agt=ige("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});nge.exports=wgt(ige("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Agt,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:bgt(xgt({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Tgt.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:rge({})},font:rge({}),activebgcolor:{valType:"color",dflt:Jb.gripBgActiveColor},bgcolor:{valType:"color",dflt:Jb.railBgColor},bordercolor:{valType:"color",dflt:Jb.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Jb.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Jb.tickLength},tickcolor:{valType:"color",dflt:Jb.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Jb.minorTickLength}}),"arraydraw","from-root")});var lge=ye((lsr,sge)=>{"use strict";var _T=Dr(),age=Yd(),oge=ZU(),Sgt=u4(),Mgt=Sgt.name,Egt=oge.steps;sge.exports=function(t,r){age(t,r,{name:Mgt,handleItemDefaults:Cgt})};function Cgt(e,t,r){function n(f,h){return _T.coerce(e,t,oge,f,h)}for(var i=age(e,t,{name:"steps",handleItemDefaults:kgt}),a=0,o=0;o{"use strict";var qg=Oa(),xI=Mc(),__=Ca(),Bg=So(),t0=Dr(),Lgt=t0.strTranslate,c4=ru(),Pgt=pl().arrayEditor,Ds=u4(),JU=Kh(),fge=JU.LINE_SPACING,YU=JU.FROM_TL,KU=JU.FROM_BR;mge.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=Igt(n,t),a=n._infolayer.selectAll("g."+Ds.containerClassName).data(i.length>0?[0]:[]);a.enter().append("g").classed(Ds.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(c){c._commandObserver&&(c._commandObserver.remove(),delete c._commandObserver),xI.autoMargin(t,hge(c))}if(a.exit().each(function(){qg.select(this).selectAll("g."+Ds.groupClassName).each(o)}).remove(),i.length!==0){var s=a.selectAll("g."+Ds.groupClassName).data(i,Rgt);s.enter().append("g").classed(Ds.groupClassName,!0),s.exit().each(o).remove();for(var l=0;l0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",Lgt(o-Ds.gripWidth*.5,t._dims.currentValueTotalHeight))}}function $U(e,t){var r=e._dims;return r.inputAreaStart+Ds.stepInset+(r.inputAreaLength-2*Ds.stepInset)*Math.min(1,Math.max(0,t))}function cge(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-Ds.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*Ds.stepInset-2*r.inputAreaStart)))}function Ngt(e,t,r){var n=r._dims,i=t0.ensureSingle(e,"rect",Ds.railTouchRectClass,function(a){a.call(pge,t,e,r).style("pointer-events","all")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Ds.tickOffset+r.ticklen+n.labelHeight)}).call(__.fill,r.bgcolor).attr("opacity",0),Bg.setTranslate(i,0,n.currentValueTotalHeight)}function Ugt(e,t){var r=t._dims,n=r.inputAreaLength-Ds.railInset*2,i=t0.ensureSingle(e,"rect",Ds.railRectClass);i.attr({width:n,height:Ds.railWidth,rx:Ds.railRadius,ry:Ds.railRadius,"shape-rendering":"crispEdges"}).call(__.stroke,t.bordercolor).call(__.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Bg.setTranslate(i,Ds.railInset,(r.inputAreaWidth-Ds.railWidth)*.5+r.currentValueTotalHeight)}});var xge=ye((csr,_ge)=>{"use strict";var Vgt=u4();_ge.exports={moduleType:"component",name:Vgt.name,layoutAttributes:ZU(),supplyLayoutDefaults:lge(),draw:yge()}});var wI=ye((fsr,wge)=>{"use strict";var bge=Ch();wge.exports={bgcolor:{valType:"color",dflt:bge.background,editType:"plot"},bordercolor:{valType:"color",dflt:bge.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var QU=ye((hsr,Tge)=>{"use strict";Tge.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var TI=ye((dsr,Age)=>{"use strict";Age.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Ege=ye(SI=>{"use strict";var Ggt=hf(),Hgt=ru(),Sge=TI(),jgt=Kh().LINE_SPACING,AI=Sge.name;function Mge(e){var t=e&&e[AI];return t&&t.visible}SI.isVisible=Mge;SI.makeData=function(e){for(var t=Ggt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var MI=Dr(),Cge=pl(),kge=hf(),Wgt=wI(),Xgt=QU();Lge.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;MI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=Cge.newContainer(a,"rangeslider");function l(L,x){return MI.coerce(o,s,Wgt,L,x)}var u,c;function f(L,x){return MI.coerce(u,c,Xgt,L,x)}var h=l("visible");if(h){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!a.isValidRange(o.range)),l("range");var d=r._subplots;if(d)for(var v=d.cartesian.filter(function(L){return L.substr(0,L.indexOf("y"))===kge.name2id(n)}).map(function(L){return L.substr(L.indexOf("y"),L.length)}),_=MI.simpleMap(v,kge.id2name),b=0;b<_.length;b++){var p=_[b];u=o[p]||{},c=Cge.newContainer(s,p,"yaxis");var C=r[p],E;u.range&&C.isValidRange(u.range)&&(E="fixed");var A=f("rangemode",E);A!=="match"&&f("range",C.range.slice())}s._input=o}}});var Rge=ye((gsr,Ige)=>{"use strict";var Zgt=hf().list,Ygt=Tg().getAutoRange,Kgt=TI();Ige.exports=function(t){for(var r=Zgt(t,"x",!0),n=0;n{"use strict";var EI=Oa(),Jgt=qa(),$gt=Mc(),Jf=Dr(),CI=Jf.strTranslate,Fge=So(),x_=Ca(),Qgt=Mb(),emt=ph(),eV=hf(),tmt=yv(),rmt=Ag(),il=TI();zge.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)Z=T[H+1];else if(G=N.pmax)Z=T[H+1];else if(G0?e.touches[0].clientX:0}function imt(e,t,r,n){if(t._context.staticPlot)return;var i=e.select("rect."+il.slideBoxClassName).node(),a=e.select("rect."+il.grabAreaMinClassName).node(),o=e.select("rect."+il.grabAreaMaxClassName).node();function s(){var l=EI.event,u=l.target,c=Dge(l),f=c-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),v=tmt.coverSlip();this.addEventListener("touchmove",_),this.addEventListener("touchend",b),v.addEventListener("mousemove",_),v.addEventListener("mouseup",b);function _(p){var C=Dge(p),E=+C-c,A,L,x;switch(u){case i:if(x="ew-resize",h+E>r._length||d+E<0)return;A=h+E,L=d+E;break;case a:if(x="col-resize",h+E>r._length)return;A=h+E,L=d;break;case o:if(x="col-resize",d+E<0)return;A=h,L=d+E;break;default:x="ew-resize",A=f,L=f+E;break}if(L{"use strict";var dmt=Dr(),vmt=wI(),pmt=QU(),tV=Ege();qge.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:dmt.extendFlat({},vmt,{yaxis:pmt})}}},layoutAttributes:wI(),handleDefaults:Pge(),calcAutorange:Rge(),draw:Oge(),isVisible:tV.isVisible,makeData:tV.makeData,autoMarginOpts:tV.autoMarginOpts}});var kI=ye((_sr,Uge)=>{"use strict";var gmt=ec(),Nge=Ch(),mmt=pl().templatedArray,ymt=mmt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});Uge.exports={visible:{valType:"boolean",editType:"plot"},buttons:ymt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:gmt({editType:"plot"}),bgcolor:{valType:"color",dflt:Nge.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Nge.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var rV=ye((xsr,Vge)=>{"use strict";Vge.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var jge=ye((bsr,Hge)=>{"use strict";var LI=Dr(),_mt=Ca(),xmt=pl(),bmt=Yd(),Gge=kI(),iV=rV();Hge.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=xmt.newContainer(r,"rangeselector");function l(d,v){return LI.coerce(o,s,Gge,d,v)}var u=bmt(o,s,{name:"buttons",handleItemDefaults:wmt,calendar:a}),c=l("visible",u.length>0);if(c){var f=Tmt(r,n,i);l("x",f[0]),l("y",f[1]),LI.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),LI.coerceFont(l,"font",n.font);var h=l("bgcolor");l("activecolor",_mt.contrast(h,iV.lightAmount,iV.darkAmount)),l("bordercolor"),l("borderwidth")}};function wmt(e,t,r,n){var i=n.calendar;function a(l,u){return LI.coerce(e,t,Gge.buttons,l,u)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(i&&i!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function Tmt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var Amt=mO(),Smt=Dr().titleCase;Wge.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=Mmt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function Mmt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=Amt["utc"+Smt(i)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(n,-o));break;case"todate":var l=a.offset(n,-o);s=e.l2r(+a.ceil(l));break}var u=r[1];return[s,u]}});var tme=ye((Tsr,eme)=>{"use strict";var II=Oa(),Emt=qa(),Cmt=Mc(),Zge=Ca(),Qge=So(),Iy=Dr(),Yge=Iy.strTranslate,PI=ru(),kmt=hf(),oV=Kh(),Kge=oV.LINE_SPACING,Jge=oV.FROM_TL,$ge=oV.FROM_BR,aV=rV(),Lmt=Xge();eme.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(Pmt(t),Imt);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=II.select(this),o=i,s=o.rangeselector,l=a.selectAll("g.button").data(Iy.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var c=II.select(this),f=Lmt(o,u);u._isActive=Rmt(o,u,f),c.call(nV,s,u),c.call(Fmt,s,u,t),c.on("click",function(){t._dragged||Emt.call("_guiRelayout",t,f)}),c.on("mouseover",function(){u._isHovered=!0,c.call(nV,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(nV,s,u)})}),Omt(t,l,s,o._name,a)})};function Pmt(e){for(var t=kmt.list(e,"x",!0),r=[],n=0;n{"use strict";rme.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:kI()}}},layoutAttributes:kI(),handleDefaults:jge(),draw:tme()}});var kc=ye(sV=>{"use strict";var nme=Ao().extendFlat;sV.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",o={x:nme({},r,{}),y:nme({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};sV.defaults=function(e,t,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var qmt=Dr(),Bmt=n3().counter,Nmt=kc().attributes,ame=hd().idRegex,Umt=pl(),lV={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Bmt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[ame.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[ame.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Nmt({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function RI(e,t,r){var n=t[r+"axes"],i=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(n))return n;if(i.length)return i}function Vmt(e,t){var r=e.grid||{},n=RI(t,r,"x"),i=RI(t,r,"y");if(!e.grid&&!n&&!i)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(n),s=Array.isArray(i),l=o&&n!==r.xaxes&&s&&i!==r.yaxes,u,c;a?(u=r.subplots.length,c=r.subplots[0].length):(s&&(u=i.length),o&&(c=n.length));var f=Umt.newContainer(t,"grid");function h(x,k){return qmt.coerce(r,f,lV,x,k)}var d=h("rows",u),v=h("columns",c);if(!(d*v>1)){delete t.grid;return}if(!a&&!o&&!s){var _=h("pattern")==="independent";_&&(a=!0)}f._hasSubplotGrid=a;var b=h("roworder"),p=b==="top to bottom",C=a?.2:.1,E=a?.3:.1,A,L;l&&t._splomGridDflt&&(A=t._splomGridDflt.xside,L=t._splomGridDflt.yside),f._domains={x:ome("x",h,C,A,v),y:ome("y",h,E,L,d,p)}}function ome(e,t,r,n,i,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",n);for(var l=new Array(i),u=s[0],c=(s[1]-u)/(i-o),f=c*(1-o),h=0;h{"use strict";ume.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var hme=ye((Csr,fme)=>{"use strict";var cme=Eo(),Hmt=qa(),jmt=Dr(),Wmt=pl(),Xmt=cV();fme.exports=function(e,t,r,n){var i="error_"+n.axis,a=Wmt.newContainer(t,i),o=e[i]||{};function s(v,_){return jmt.coerce(o,a,Xmt,v,_)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var c=s("type","array"in o?"data":"percent"),f=!0;c!=="sqrt"&&(f=s("symmetric",!((c==="data"?"arrayminus":"valueminus")in o))),c==="data"?(s("array"),s("traceref"),f||(s("arrayminus"),s("tracerefminus"))):(c==="percent"||c==="constant")&&(s("value"),f||s("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=t["error_"+n.inherit];(d||{}).visible&&s(h,!(o.color||cme(o.thickness)||cme(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",Hmt.traceIs(t,"gl3d")?0:4))}}});var fV=ye((ksr,vme)=>{"use strict";vme.exports=function(t){var r=t.type,n=t.symmetric;if(r==="data"){var i=t.array||[];if(n)return function(u,c){var f=+i[c];return[f,f]};var a=t.arrayminus||[];return function(u,c){var f=+i[c],h=+a[c];return!isNaN(f)||!isNaN(h)?[h||0,f||0]:[NaN,NaN]}}else{var o=dme(r,t.value),s=dme(r,t.valueminus);return n||t.valueminus===void 0?function(u){var c=o(u);return[c,c]}:function(u){return[s(u),o(u)]}}};function dme(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var mme=ye((Lsr,gme)=>{"use strict";var hV=Eo(),Zmt=qa(),dV=ho(),Ymt=Dr(),Kmt=fV();gme.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var yme=Oa(),b_=Eo(),Jmt=So(),$mt=Ru();_me.exports=function(t,r,n,i){var a,o=n.xaxis,s=n.yaxis,l=i&&i.duration>0,u=t._context.staticPlot;r.each(function(c){var f=c[0].trace,h=f.error_x||{},d=f.error_y||{},v;f.ids&&(v=function(C){return C.id});var _=$mt.hasMarkers(f)&&f.marker.maxdisplayed>0;!d.visible&&!h.visible&&(c=[]);var b=yme.select(this).selectAll("g.errorbar").data(c,v);if(b.exit().remove(),!!c.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var p=b.enter().append("g").classed("errorbar",!0);l&&p.style("opacity",0).transition().duration(i.duration).style("opacity",1),Jmt.setClipUrl(b,n.layerClipId,t),b.each(function(C){var E=yme.select(this),A=Qmt(C,o,s);if(!(_&&!C.vis)){var L,x=E.select("path.yerror");if(d.visible&&b_(A.x)&&b_(A.yh)&&b_(A.ys)){var k=d.width;L="M"+(A.x-k)+","+A.yh+"h"+2*k+"m-"+k+",0V"+A.ys,A.noYS||(L+="m-"+k+",0h"+2*k),a=!x.size(),a?x=E.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):l&&(x=x.transition().duration(i.duration).ease(i.easing)),x.attr("d",L)}else x.remove();var M=E.select("path.xerror");if(h.visible&&b_(A.y)&&b_(A.xh)&&b_(A.xs)){var g=(h.copy_ystyle?d:h).width;L="M"+A.xh+","+(A.y-g)+"v"+2*g+"m0,-"+g+"H"+A.xs,A.noXS||(L+="m0,-"+g+"v"+2*g),a=!M.size(),a?M=E.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(M=M.transition().duration(i.duration).ease(i.easing)),M.attr("d",L)}else M.remove()}})}})};function Qmt(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),b_(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),b_(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}});var Tme=ye((Isr,wme)=>{"use strict";var eyt=Oa(),bme=Ca();wme.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=eyt.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(bme.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(bme.stroke,a.color)})}});var Mme=ye((Rsr,Sme)=>{"use strict";var f4=Dr(),Ame=mc().overrideAll,h4=cV(),$b={error_x:f4.extendFlat({},h4),error_y:f4.extendFlat({},h4)};delete $b.error_x.copy_zstyle;delete $b.error_y.copy_zstyle;delete $b.error_y.copy_ystyle;var d4={error_x:f4.extendFlat({},h4),error_y:f4.extendFlat({},h4),error_z:f4.extendFlat({},h4)};delete d4.error_x.copy_ystyle;delete d4.error_y.copy_ystyle;delete d4.error_z.copy_ystyle;delete d4.error_z.copy_zstyle;Sme.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:$b,bar:$b,histogram:$b,scatter3d:Ame(d4,"calc","nested"),scattergl:Ame($b,"calc","nested")}},supplyDefaults:hme(),calc:mme(),makeComputeError:fV(),plot:xme(),style:Tme(),hoverInfo:tyt};function tyt(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var Cme=ye((Dsr,Eme)=>{"use strict";Eme.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Fme=ye((Fsr,Dme)=>{"use strict";var w_=Oa(),vV=cd(),FI=Mc(),kme=qa(),Ry=ho(),DI=yv(),N0=Dr(),Ug=N0.strTranslate,Rme=Ao().extendFlat,pV=Ag(),Ng=So(),gV=Ca(),ryt=Mb(),iyt=ru(),nyt=pv().flipScale,ayt=r4(),oyt=oI(),syt=Rd(),mV=Kh(),Lme=mV.LINE_SPACING,Pme=mV.FROM_TL,Ime=mV.FROM_BR,gf=Cme().cn;function lyt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+gf.colorbar).data(uyt(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(gf.colorbar,!0),r.each(function(n){var i=w_.select(this);N0.ensureSingle(i,"rect",gf.cbbg),N0.ensureSingle(i,"g",gf.cbfills),N0.ensureSingle(i,"g",gf.cblines),N0.ensureSingle(i,"g",gf.cbaxis,function(o){o.classed(gf.crisp,!0)}),N0.ensureSingle(i,"g",gf.cbtitleunshift,function(o){o.append("g").classed(gf.cbtitle,!0)}),N0.ensureSingle(i,"rect",gf.cboutline);var a=cyt(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&fyt(i,n,e)}),r.exit().each(function(n){FI.autoMargin(e,n._id)}).remove(),r.order()}function uyt(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function l(E){return Rme(E,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof s.calc=="function"?s.calc(e,o,i):(i._fillgradient=a.reversescale?nyt(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var c=0;c1){var Fe=Math.pow(10,Math.floor(Math.log(ge)/Math.LN10));De*=Fe*N0.roundUp(ge/Fe,[2,5,10]),(Math.abs(z.start)/z.size+1e-6)%1<2e-6&&(Le.tick0=0)}Le.dtick=De}Le.domain=n?[ie+v/A.h,ie+j-v/A.h]:[ie+d/A.w,ie+j-d/A.w],Le.setScale(),e.attr("transform",Ug(Math.round(A.l),Math.round(A.t)));var ce=e.select("."+gf.cbtitleunshift).attr("transform",Ug(-Math.round(A.l),-Math.round(A.t))),Ze=Le.ticklabelposition,ct=Le.title.font.size,pt=e.select("."+gf.cbaxis),Wt,st=0,lt=0;function Gt(ur,Qe){var Et={propContainer:Le,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:E._dfltTitle.colorbar,containerGroup:e.select("."+gf.cbtitle)},er=ur.charAt(0)==="h"?ur.substr(1):"h"+ur;e.selectAll("."+er+",."+er+"-math-group").remove(),ryt.draw(r,ur,Rme(Et,Qe||{}))}function Nt(){if(n&&Ae||!n&&!Ae){var ur,Qe;M==="top"&&(ur=d+A.l+re*_,Qe=v+A.t+oe*(1-ie-j)+3+ct*.75),M==="bottom"&&(ur=d+A.l+re*_,Qe=v+A.t+oe*(1-ie)-3-ct*.25),M==="right"&&(Qe=v+A.t+oe*b+3+ct*.75,ur=d+A.l+re*ie),Gt(Le._id+"title",{attributes:{x:ur,y:Qe,"text-anchor":n?"start":"middle"}})}}function $t(){if(n&&!Ae||!n&&Ae){var ur=Le.position||0,Qe=Le._offset+Le._length/2,Et,er;if(M==="right")er=Qe,Et=A.l+re*ur+10+ct*(Le.showticklabels?1:.5);else if(Et=Qe,M==="bottom"&&(er=A.t+oe*ur+10+(Ze.indexOf("inside")===-1?Le.tickfont.size:0)+(Le.ticks!=="inside"&&t.ticklen||0)),M==="top"){var Ut=k.text.split("
").length;er=A.t+oe*ur+10-Z-Lme*ct*Ut}Gt((n?"h":"v")+Le._id+"title",{avoid:{selection:w_.select(r).selectAll("g."+Le._id+"tick"),side:M,offsetTop:n?0:A.t,offsetLeft:n?A.l:0,maxShift:n?E.width:E.height},attributes:{x:Et,y:er,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function sr(){if(!n&&!Ae||n&&Ae){var ur=e.select("."+gf.cbtitle),Qe=ur.select("text"),Et=[-l/2,l/2],er=ur.select(".h"+Le._id+"title-math-group").node(),Ut=15.6;Qe.node()&&(Ut=parseInt(Qe.node().style.fontSize,10)*Lme);var Ft;if(er?(Ft=Ng.bBox(er),lt=Ft.width,st=Ft.height,st>Ut&&(Et[1]-=(st-Ut)/2)):Qe.node()&&!Qe.classed(gf.jsPlaceholder)&&(Ft=Ng.bBox(Qe.node()),lt=Ft.width,st=Ft.height),n){if(st){if(st+=5,M==="top")Le.domain[1]-=st/A.h,Et[1]*=-1;else{Le.domain[0]+=st/A.h;var bt=iyt.lineCount(Qe);Et[1]+=(1-bt)*Ut}ur.attr("transform",Ug(Et[0],Et[1])),Le.setScale()}}else lt&&(M==="right"&&(Le.domain[0]+=(lt+ct/2)/A.w),ur.attr("transform",Ug(Et[0],Et[1])),Le.setScale())}e.selectAll("."+gf.cbfills+",."+gf.cblines).attr("transform",n?Ug(0,Math.round(A.h*(1-Le.domain[1]))):Ug(Math.round(A.w*Le.domain[0]),0)),pt.attr("transform",n?Ug(0,Math.round(-A.t)):Ug(Math.round(-A.l),0));var yt=e.select("."+gf.cbfills).selectAll("rect."+gf.cbfill).attr("style","").data(V);yt.enter().append("rect").classed(gf.cbfill,!0).attr("style",""),yt.exit().remove();var Yt=g.map(Le.c2p).map(Math.round).sort(function(Wr,Ur){return Wr-Ur});yt.each(function(Wr,Ur){var dt=[Ur===0?g[0]:(V[Ur]+V[Ur-1])/2,Ur===V.length-1?g[1]:(V[Ur]+V[Ur+1])/2].map(Le.c2p).map(Math.round);n&&(dt[1]=N0.constrain(dt[1]+(dt[1]>dt[0])?1:-1,Yt[0],Yt[1]));var Ge=w_.select(this).attr(n?"x":"y",_e).attr(n?"y":"x",w_.min(dt)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(w_.max(dt)-w_.min(dt),2));if(t._fillgradient)Ng.gradient(Ge,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Je=T(Wr).replace("e-","");Ge.attr("fill",vV(Je).toHexString())}});var lr=e.select("."+gf.cblines).selectAll("path."+gf.cbline).data(x.color&&x.width?G:[]);lr.enter().append("path").classed(gf.cbline,!0),lr.exit().remove(),lr.each(function(Wr){var Ur=_e,dt=Math.round(Le.c2p(Wr))+x.width/2%1;w_.select(this).attr("d","M"+(n?Ur+","+dt:dt+","+Ur)+(n?"h":"v")+Z).call(Ng.lineGroupStyle,x.width,P(Wr),x.dash)}),pt.selectAll("g."+Le._id+"tick,path").remove();var Tr=_e+Z+(l||0)/2-(t.ticks==="outside"?1:0),Rr=Ry.calcTicks(Le),ei=Ry.getTickSigns(Le)[2];return Ry.drawTicks(r,Le,{vals:Le.ticks==="inside"?Ry.clipEnds(Le,Rr):Rr,layer:pt,path:Ry.makeTickPath(Le,Tr,ei),transFn:Ry.makeTransTickFn(Le)}),Ry.drawLabels(r,Le,{vals:Rr,layer:pt,transFn:Ry.makeTransTickLabelFn(Le),labelFns:Ry.makeLabelFns(Le,Tr)})}function wr(){var ur,Qe=Z+l/2;Ze.indexOf("inside")===-1&&(ur=Ng.bBox(pt.node()),Qe+=n?ur.width:ur.height),Wt=ce.select("text");var Et=0,er=n&&M==="top",Ut=!n&&M==="right",Ft=0;if(Wt.node()&&!Wt.classed(gf.jsPlaceholder)){var bt,yt=ce.select(".h"+Le._id+"title-math-group").node();yt&&(n&&Ae||!n&&!Ae)?(ur=Ng.bBox(yt),Et=ur.width,bt=ur.height):(ur=Ng.bBox(ce.node()),Et=ur.right-A.l-(n?_e:Se),bt=ur.bottom-A.t-(n?Se:_e),!n&&M==="top"&&(Qe+=ur.height,Ft=ur.height)),Ut&&(Wt.attr("transform",Ug(Et/2+ct/2,0)),Et*=2),Qe=Math.max(Qe,n?Et:bt)}var Yt=(n?d:v)*2+Qe+u+l/2,lr=0;!n&&k.text&&h==="bottom"&&b<=0&&(lr=Yt/2,Yt+=lr,Ft+=lr),E._hColorbarMoveTitle=lr,E._hColorbarMoveCBTitle=Ft;var Tr=u+l,Rr=(n?_e:Se)-Tr/2-(n?d:0),ei=(n?Se:_e)-(n?N:v+Ft-lr);e.select("."+gf.cbbg).attr("x",Rr).attr("y",ei).attr(n?"width":"height",Math.max(Yt-lr,2)).attr(n?"height":"width",Math.max(N+Tr,2)).call(gV.fill,c).call(gV.stroke,t.bordercolor).style("stroke-width",u);var Wr=Ut?Math.max(Et-10,0):0;e.selectAll("."+gf.cboutline).attr("x",(n?_e:Se+d)+Wr).attr("y",(n?Se+v-N:_e)+(er?st:0)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(N-(n?2*v+st:2*d+Wr),2)).call(gV.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var Ur=n?Me*Yt:0,dt=n?0:(1-ke)*Yt-Ft;if(Ur=C?A.l-Ur:-Ur,dt=p?A.t-dt:-dt,e.attr("transform",Ug(Ur,dt)),!n&&(u||vV(c).getAlpha()&&!vV.equals(E.paper_bgcolor,c))){var Ge=pt.selectAll("text"),Je=Ge[0].length,je=e.select("."+gf.cbbg).node(),$e=Ng.bBox(je),wt=Ng.getTranslate(e),Ie=2;Ge.each(function(fi,Hi){var Pn=0,wn=Je-1;if(Hi===Pn||Hi===wn){var pn=Ng.bBox(this),Vn=Ng.getTranslate(this),kn;if(Hi===wn){var ea=pn.right+Vn.x,ua=$e.right+wt.x+Se-u-Ie+_;kn=ua-ea,kn>0&&(kn=0)}else if(Hi===Pn){var Vt=pn.left+Vn.x,_t=$e.left+wt.x+Se+u+Ie;kn=_t-Vt,kn<0&&(kn=0)}kn&&(Je<3?this.setAttribute("transform","translate("+kn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var xe={},Ce=Pme[f],vt=Ime[f],nr=Pme[h],ir=Ime[h],pr=Yt-Z;n?(a==="pixels"?(xe.y=b,xe.t=N*nr,xe.b=N*ir):(xe.t=xe.b=0,xe.yt=b+i*nr,xe.yb=b-i*ir),s==="pixels"?(xe.x=_,xe.l=Yt*Ce,xe.r=Yt*vt):(xe.l=pr*Ce,xe.r=pr*vt,xe.xl=_-o*Ce,xe.xr=_+o*vt)):(a==="pixels"?(xe.x=_,xe.l=N*Ce,xe.r=N*vt):(xe.l=xe.r=0,xe.xl=_+i*Ce,xe.xr=_-i*vt),s==="pixels"?(xe.y=1-b,xe.t=Yt*nr,xe.b=Yt*ir):(xe.t=pr*nr,xe.b=pr*ir,xe.yt=b-o*nr,xe.yb=b+o*ir));var oi=t.y<.5?"b":"t",di=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Jr={r:E.width-Rr-Ur,l:Rr+xe.r,b:E.height-ei-dt,t:ei+xe.b};C&&p?FI.autoMargin(r,t._id,xe):C?r._fullLayout._reservedMargin[t._id][oi]=Jr[oi]:p||n?r._fullLayout._reservedMargin[t._id][di]=Jr[di]:r._fullLayout._reservedMargin[t._id][oi]=Jr[oi]}return N0.syncOrAsync([FI.previousPromises,Nt,sr,$t,FI.previousPromises,wr],r)}function fyt(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,l;DI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),pV(e)},moveFn:function(u,c){e.attr("transform",o+Ug(u,c)),s=DI.align((n?t._uFrac:t._vFrac)+u/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=DI.align((n?t._vFrac:1-t._uFrac)-c/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=DI.getCursor(s,l,t.xanchor,t.yanchor);pV(e,f)},doneFn:function(){if(pV(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?kme.call("_guiRestyle",r,u,t._traceIndex):kme.call("_guiRelayout",r,u)}}})}function hyt(e,t,r){var n=t._levels,i=[],a=[],o,s,l=n.end+n.size/100,u=n.size,c=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=n.start+s*u,!(u>0?o>=l:o<=l));s++)o>c&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";zme.exports={moduleType:"component",name:"colorbar",attributes:eL(),supplyDefaults:Cq(),draw:Fme().draw,hasColorbar:bq()}});var Bme=ye((Osr,qme)=>{"use strict";qme.exports={moduleType:"component",name:"legend",layoutAttributes:wB(),supplyLayoutDefaults:SB(),draw:OB(),style:RB()}});var Ume=ye((qsr,Nme)=>{"use strict";Nme.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var Gme=ye((Bsr,Vme)=>{"use strict";Vme.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var _V=ye((Nsr,Xme)=>{"use strict";var vyt=qa(),Wme=Dr(),yV=Wme.extendFlat,Hme=Wme.extendDeep;function jme(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function pyt(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}Xme.exports=function(t,r){var n,i=t.data,a=t.layout,o=Hme([],i),s=Hme({},a,jme(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(n=0;n{"use strict";var gyt=vb().EventEmitter,myt=qa(),yyt=Dr(),Zme=Ly(),_yt=_V(),xyt=VP(),byt=GP();function wyt(e,t){var r=new gyt,n=_yt(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=Zme.getDelay(i._fullLayout);setTimeout(function(){var l=xyt(i),u=document.createElement("canvas");u.id=yyt.randstr(),r=byt({format:t.format,width:i._fullLayout.width,height:i._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){i&&document.body.removeChild(i)}},s)}var o=Zme.getRedrawFunc(i);return myt.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}Yme.exports=wyt});var Qme=ye((Vsr,$me)=>{"use strict";var Jme=Ly(),Tyt={getDelay:Jme.getDelay,getRedrawFunc:Jme.getRedrawFunc,clone:_V(),toSVG:VP(),svgToImg:GP(),toImage:Kme(),downloadImage:eU()};$me.exports=Tyt});var tye=ye(Dy=>{"use strict";Dy.version=s6().version;dee();rne();var Ayt=qa(),v4=Dy.register=Ayt.register,bV=Tde(),eye=Object.keys(bV);for(zI=0;zI{"use strict";rye.exports=tye()});var Qb=ye((jsr,nye)=>{"use strict";nye.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Lm=ye((Wsr,lye)=>{"use strict";var Of=pf(),aye=df().axisHoverFormat,Syt=Qo().hovertemplateAttrs,Myt=Qo().texttemplateAttrs,sye=Tu(),Eyt=ec(),oye=Qb(),Cyt=Pd().pattern,e2=Ao().extendFlat,wV=Eyt({editType:"calc",arrayOk:!0,colorEditType:"style"}),kyt=Of.marker,Lyt=kyt.line,Pyt=e2({},Lyt.width,{dflt:0}),Iyt=e2({width:Pyt,editType:"calc"},sye("marker.line")),Ryt=e2({line:Iyt,editType:"calc"},sye("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Cyt,cornerradius:{valType:"any",editType:"calc"}});lye.exports={x:Of.x,x0:Of.x0,dx:Of.dx,y:Of.y,y0:Of.y0,dy:Of.dy,xperiod:Of.xperiod,yperiod:Of.yperiod,xperiod0:Of.xperiod0,yperiod0:Of.yperiod0,xperiodalignment:Of.xperiodalignment,yperiodalignment:Of.yperiodalignment,xhoverformat:aye("x"),yhoverformat:aye("y"),text:Of.text,texttemplate:Myt({editType:"plot"},{keys:oye.eventDataKeys}),hovertext:Of.hovertext,hovertemplate:Syt({},{keys:oye.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:e2({},wV,{}),insidetextfont:e2({},wV,{}),outsidetextfont:e2({},wV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:e2({},Of.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Ryt,offsetgroup:Of.offsetgroup,alignmentgroup:Of.alignmentgroup,selected:{marker:{opacity:Of.selected.marker.opacity,color:Of.selected.marker.color,editType:"style"},textfont:Of.selected.textfont,editType:"style"},unselected:{marker:{opacity:Of.unselected.marker.opacity,color:Of.unselected.marker.color,editType:"style"},textfont:Of.unselected.textfont,editType:"style"},zorder:Of.zorder}});var qI=ye((Xsr,uye)=>{"use strict";uye.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var BI=ye((Zsr,hye)=>{"use strict";var Dyt=Ca(),cye=pv().hasColorscale,fye=Jh(),Fyt=Dr().coercePattern;hye.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=cye(t,"marker");s&&fye(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",Dyt.defaultLine),cye(t,"marker.line")&&fye(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),Fyt(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var r0=ye((Ysr,yye)=>{"use strict";var dye=Eo(),bT=Dr(),vye=Ca(),zyt=qa(),Oyt=J3(),qyt=Pg(),Byt=BI(),Nyt=Gb(),pye=Lm(),NI=bT.coerceFont;function Uyt(e,t,r,n){function i(u,c){return bT.coerce(e,t,pye,u,c)}var a=Oyt(e,t,n,i);if(!a){t.visible=!1;return}qyt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");mye(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Byt(e,t,i,r,n);var s=(t.marker.line||{}).color,l=zyt.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||vye.defaultLine,{axis:"y"}),l(e,t,s||vye.defaultLine,{axis:"x",inherit:"y"}),bT.coerceSelectionMarkerOpacity(t,i)}function Vyt(e,t){var r,n;function i(s,l){return bT.coerce(n._input,n,pye,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&dye(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function mye(e,t,r,n,i,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,l=a.moduleHasConstrain!==!1,u=a.moduleHasCliponaxis!==!1,c=a.moduleHasTextangle!==!1,f=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(i)||i==="auto",v=d||i==="inside",_=d||i==="outside";if(v||_){var b=NI(n,"textfont",r.font),p=bT.extendFlat({},b),C=e.textfont&&e.textfont.color,E=!C;if(E&&delete p.color,NI(n,"insidetextfont",p),h){var A=bT.extendFlat({},b);E&&delete A.color,NI(n,"pathbar.textfont",A)}_&&NI(n,"outsidetextfont",b),o&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),l&&n("constraintext"),u&&n("cliponaxis"),c&&n("textangle"),n("texttemplate")}v&&f&&n("insidetextanchor")}yye.exports={supplyDefaults:Uyt,crossTraceDefaults:Vyt,handleText:mye,validateCornerradius:gye}});var TV=ye((Ksr,_ye)=>{"use strict";var Gyt=qa(),Hyt=ho(),jyt=Dr(),Wyt=qI(),Xyt=r0().validateCornerradius;_ye.exports=function(e,t,r){function n(_,b){return jyt.coerce(e,t,Wyt,_,b)}for(var i=!1,a=!1,o=!1,s={},l=n("barmode"),u=l==="group",c=0;c0&&!s[h]&&(o=!0),s[h]=!0),f.visible&&f.type==="histogram"){var d=Hyt.getFromId({_fullLayout:t},f[f.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!i){delete t.barmode;return}l!=="overlay"&&n("barnorm"),n("bargap",a&&!o?0:.2),n("bargroupgap");var v=n("barcornerradius");t.barcornerradius=Xyt(v)}});var p4=ye((Jsr,xye)=>{"use strict";var wT=Dr();xye.exports=function(t,r){for(var n=0;n{"use strict";var bye=ho(),wye=Rg(),Tye=pv().hasColorscale,Aye=gv(),Zyt=p4(),Yyt=O0();Sye.exports=function(t,r){var n=bye.getFromId(t,r.xaxis||"x"),i=bye.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=n.makeCalcdata(r,"x",f),s=i.makeCalcdata(r,"y"),l=wye(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y",f),s=n.makeCalcdata(r,"x"),l=wye(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),v=0;v{"use strict";var Kyt=Oa(),Jyt=Dr();function $yt(e,t,r){var n=e._fullLayout,i=n["_"+r+"Text_minsize"];if(i){var a=n.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var l=s.transform;if(l){l.scale=a&&l.hide?0:i/l.fontSize;var u=Kyt.select(this).select("text");Jyt.setTransormAndDisplay(u,l)}})}}function Qyt(e,t,r){if(r.uniformtext.mode){var n=Eye(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var t1t=Eo(),r1t=cd(),kye=Dr().isArrayOrTypedArray;t2.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};t2.coerceNumber=function(e,t,r){if(t1t(t)){t=+t;var n=e.min,i=e.max,a=n!==void 0&&ti;if(!a)return t}return r!==void 0?r:e.dflt};t2.coerceColor=function(e,t,r){return r1t(t).isValid()?t:r!==void 0?r:e.dflt};t2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};t2.getValue=function(e,t){var r;return kye(e)?t{"use strict";var g4=Oa(),i1t=Ca(),m4=So(),Lye=Dr(),Pye=qa(),Iye=bv().resizeText,AV=Lm(),n1t=AV.textfont,a1t=AV.insidetextfont,o1t=AV.outsidetextfont,Qd=UI();function s1t(e){var t=g4.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");Iye(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",function(i){return i[0].trace.opacity}).each(function(i){(n.barmode==="stack"&&r>1||n.bargap===0&&n.bargroupgap===0&&!i[0].trace.marker.line.width)&&g4.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=g4.select(this),o=i[0].trace;Rye(a,o,e)}),Pye.getComponentMethod("errorbars","style")(t)}function Rye(e,t,r){m4.pointStyle(e.selectAll("path"),t,r),Dye(e,t,r)}function Dye(e,t,r){e.selectAll("text").each(function(n){var i=g4.select(this),a=Lye.ensureUniformFontSize(r,Fye(i,n,t,r));m4.font(i,a)})}function l1t(e,t,r){var n=t[0].trace;n.selectedpoints?u1t(r,n,e):(Rye(r,n,e),Pye.getComponentMethod("errorbars","style")(r))}function u1t(e,t,r){m4.selectedPointStyle(e.selectAll("path"),t),c1t(e.selectAll("text"),t,r)}function c1t(e,t,r){e.each(function(n){var i=g4.select(this),a;if(n.selected){a=Lye.ensureUniformFontSize(r,Fye(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),m4.font(i,a)}else m4.selectedTextStyle(i,t)})}function Fye(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=Bye(t,r);a=Oye(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=qye(r,t.i,i));return a}function zye(e,t,r){return SV(n1t,e.textfont,t,r)}function Oye(e,t,r,n){var i=zye(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(i={color:i1t.contrast(n),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),SV(a1t,e.insidetextfont,t,i)}function qye(e,t,r){var n=zye(e,t,r);return SV(o1t,e.outsidetextfont,t,n)}function SV(e,t,r,n){t=t||{};var i=Qd.getValue(t.family,r),a=Qd.getValue(t.size,r),o=Qd.getValue(t.color,r),s=Qd.getValue(t.weight,r),l=Qd.getValue(t.style,r),u=Qd.getValue(t.variant,r),c=Qd.getValue(t.textcase,r),f=Qd.getValue(t.lineposition,r),h=Qd.getValue(t.shadow,r);return{family:Qd.coerceString(e.family,i,n.family),size:Qd.coerceNumber(e.size,a,n.size),color:Qd.coerceColor(e.color,o,n.color),weight:Qd.coerceString(e.weight,s,n.weight),style:Qd.coerceString(e.style,l,n.style),variant:Qd.coerceString(e.variant,u,n.variant),textcase:Qd.coerceString(e.variant,c,n.textcase),lineposition:Qd.coerceString(e.variant,f,n.lineposition),shadow:Qd.coerceString(e.variant,h,n.shadow)}}function Bye(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}Nye.exports={style:s1t,styleTextPoints:Dye,styleOnSelect:l1t,getInsideTextFont:Oye,getOutsideTextFont:qye,getBarColor:Bye,resizeText:Iye}});var i2=ye((rlr,Zye)=>{"use strict";var VI=Oa(),GI=Eo(),Fd=Dr(),f1t=ru(),h1t=Ca(),T_=So(),d1t=qa(),HI=ho().tickText,Uye=bv(),v1t=Uye.recordMinTextSize,p1t=Uye.clearMinTextSize,MV=U0(),TT=UI(),g1t=Qb(),Vye=Lm(),m1t=Vye.text,y1t=Vye.textposition,_1t=ip().appendArrayPointValue,Vv=g1t.TEXTPAD;function x1t(e){return e.id}function b1t(e){if(e.ids)return x1t}function EV(e){return(e>0)-(e<0)}function Pm(e,t){return e0}function T1t(e,t,r,n,i,a){var o=t.xaxis,s=t.yaxis,l=e._fullLayout,u=e._context.staticPlot;i||(i={mode:l.barmode,norm:l.barmode,gap:l.bargap,groupgap:l.bargroupgap},p1t("bar",l));var c=Fd.makeTraceGroups(n,r,"trace bars").each(function(f){var h=VI.select(this),d=f[0].trace,v=f[0].t,_=d.type==="waterfall",b=d.type==="funnel",p=d.type==="histogram",C=d.type==="bar",E=C||b,A=0;_&&d.connector.visible&&d.connector.mode==="between"&&(A=d.connector.line.width/2);var L=d.orientation==="h",x=Hye(i),k=Fd.ensureSingle(h,"g","points"),M=b1t(d),g=k.selectAll("g.point").data(Fd.identity,M);g.enter().append("g").classed("point",!0),g.exit().remove(),g.each(function(T,z){var O=VI.select(this),V=w1t(T,o,s,L),G=V[0][0],Z=V[0][1],H=V[1][0],N=V[1][1],j=(L?Z-G:N-H)===0;j&&E&&TT.getLineWidth(d,T)&&(j=!1),j||(j=!GI(G)||!GI(Z)||!GI(H)||!GI(N)),T.isBlank=j,j&&(L?Z=G:N=H),A&&!j&&(L?(G-=Pm(G,Z)*A,Z+=Pm(G,Z)*A):(H-=Pm(H,N)*A,N+=Pm(H,N)*A));var re,oe;if(d.type==="waterfall"){if(!j){var _e=d[T.dir].marker;re=_e.line.width,oe=_e.color}}else re=TT.getLineWidth(d,T),oe=T.mc||d.marker.color;function Me(Qe){var Et=VI.round(re/2%1,2);return i.gap===0&&i.groupgap===0?VI.round(Math.round(Qe)-Et,2):Qe}function ke(Qe,Et,er){return er&&Qe===Et?Qe:Math.abs(Qe-Et)>=2?Me(Qe):Qe>Et?Math.ceil(Qe):Math.floor(Qe)}var me=h1t.opacity(oe),ie=me<1||re>.01?Me:ke;e._context.staticPlot||(G=ie(G,Z,L),Z=ie(Z,G,L),H=ie(H,N,!L),N=ie(N,H,!L));var Se=L?o.c2p:s.c2p,Le;T.s0>0?Le=T._sMax:T.s0<0?Le=T._sMin:Le=T.s1>0?T._sMax:T._sMin;function Ae(Qe,Et){if(!Qe)return 0;var er=Math.abs(L?N-H:Z-G),Ut=Math.abs(L?Z-G:N-H),Ft=ie(Math.abs(Se(Le,!0)-Se(0,!0))),bt=T.hasB?Math.min(er/2,Ut/2):Math.min(er/2,Ft),yt;if(Et==="%"){var Yt=Math.min(50,Qe);yt=er*(Yt/100)}else yt=Qe;return ie(Math.max(Math.min(yt,bt),0))}var De=C||p?Ae(v.cornerradiusvalue,v.cornerradiusform):0,Pe,ge,Fe="M"+G+","+H+"V"+N+"H"+Z+"V"+H+"Z",ce=0;if(De&&T.s){var Ze=EV(T.s0)===0||EV(T.s)===EV(T.s0)?T.s1:T.s0;if(ce=ie(T.hasB?0:Math.abs(Se(Le,!0)-Se(Ze,!0))),ce0?Math.sqrt(ce*(2*De-ce)):0,Gt=ct>0?Math.max:Math.min;Pe="M"+G+","+H+"V"+(N-st*pt)+"H"+Gt(Z-(De-ce)*ct,G)+"A "+De+","+De+" 0 0 "+Wt+" "+Z+","+(N-De*pt-lt)+"V"+(H+De*pt+lt)+"A "+De+","+De+" 0 0 "+Wt+" "+Gt(Z-(De-ce)*ct,G)+","+(H+st*pt)+"Z"}else if(T.hasB)Pe="M"+(G+De*ct)+","+H+"A "+De+","+De+" 0 0 "+Wt+" "+G+","+(H+De*pt)+"V"+(N-De*pt)+"A "+De+","+De+" 0 0 "+Wt+" "+(G+De*ct)+","+N+"H"+(Z-De*ct)+"A "+De+","+De+" 0 0 "+Wt+" "+Z+","+(N-De*pt)+"V"+(H+De*pt)+"A "+De+","+De+" 0 0 "+Wt+" "+(Z-De*ct)+","+H+"Z";else{ge=Math.abs(N-H)+ce;var Nt=ge0?Math.sqrt(ce*(2*De-ce)):0,sr=pt>0?Math.max:Math.min;Pe="M"+(G+Nt*ct)+","+H+"V"+sr(N-(De-ce)*pt,H)+"A "+De+","+De+" 0 0 "+Wt+" "+(G+De*ct-$t)+","+N+"H"+(Z-De*ct+$t)+"A "+De+","+De+" 0 0 "+Wt+" "+(Z-Nt*ct)+","+sr(N-(De-ce)*pt,H)+"V"+H+"Z"}}else Pe=Fe}else Pe=Fe;var wr=Gye(Fd.ensureSingle(O,"path"),l,i,a);if(wr.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Z-G)*(N-H))||j&&e._context.staticPlot?"M0,0Z":Pe).call(T_.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&x){var ur=T_.makePointStyleFns(d);T_.singlePointStyle(T,wr,d,ur,e)}A1t(e,t,O,f,z,G,Z,H,N,De,ce,i,a),t.layerClipId&&T_.hideOutsideRangePoint(T,O.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;T_.setClipUrl(h,P?null:t.layerClipId,e)});d1t.getComponentMethod("errorbars","plot")(e,c,t,i)}function A1t(e,t,r,n,i,a,o,s,l,u,c,f,h){var d=t.xaxis,v=t.yaxis,_=e._fullLayout,b;function p(ge,Fe,ce){var Ze=Fd.ensureSingle(ge,"text").text(Fe).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(T_.font,ce).call(f1t.convertToTspans,e);return Ze}var C=n[0].trace,E=C.orientation==="h",A=E1t(_,n,i,d,v);b=C1t(C,i);var L=f.mode==="stack"||f.mode==="relative",x=n[i],k=!L||x._outmost,M=x.hasB,g=u&&u-c>Vv;if(!A||b==="none"||(x.isBlank||a===o||s===l)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=_.font,T=MV.getBarColor(n[i],C),z=MV.getInsideTextFont(C,i,P,T),O=MV.getOutsideTextFont(C,i,P),V=C.insidetextanchor||"end",G=r.datum();E?d.type==="log"&&G.s0<=0&&(d.range[0]0&&Me>0,ie;g?M?ie=r2(N-2*u,j,_e,Me,E)||r2(N,j-2*u,_e,Me,E):E?ie=r2(N-(u-c),j,_e,Me,E)||r2(N,j-2*(u-c),_e,Me,E):ie=r2(N,j-(u-c),_e,Me,E)||r2(N-2*(u-c),j,_e,Me,E):ie=r2(N,j,_e,Me,E),me&&ie?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){ke=Fd.ensureUniformFontSize(e,b==="outside"?O:z),re=p(r,A,ke);var Se=re.attr("transform");if(re.attr("transform",""),oe=T_.bBox(re.node()),_e=oe.width,Me=oe.height,re.attr("transform",Se),_e<=0||Me<=0){re.remove();return}}var Le=C.textangle,Ae,De;b==="outside"?(De=C.constraintext==="both"||C.constraintext==="outside",Ae=M1t(a,o,s,l,oe,{isHorizontal:E,constrained:De,angle:Le})):(De=C.constraintext==="both"||C.constraintext==="inside",Ae=Xye(a,o,s,l,oe,{isHorizontal:E,constrained:De,angle:Le,anchor:V,hasB:M,r:u,overhead:c})),Ae.fontSize=ke.size,v1t(C.type==="histogram"?"bar":C.type,Ae,_),x.transform=Ae;var Pe=Gye(re,_,f,h);Fd.setTransormAndDisplay(Pe,Ae)}function r2(e,t,r,n,i){if(e<0||t<0)return!1;var a=r<=e&&n<=t,o=r<=t&&n<=e,s=i?e>=r*(t/n):t>=n*(e/r);return a||o||s}function jye(e){return e==="auto"?0:e}function Wye(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function Xye(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=a.anchor,c=u==="end",f=u==="start",h=a.leftToRight||0,d=(h+1)/2,v=1-d,_=a.hasB,b=a.r,p=a.overhead,C=i.width,E=i.height,A=Math.abs(t-e),L=Math.abs(n-r),x=A>2*Vv&&L>2*Vv?Vv:0;A-=2*x,L-=2*x;var k=jye(l);l==="auto"&&!(C<=A&&E<=L)&&(C>A||E>L)&&(!(C>L||E>A)||CVv){var T=S1t(e,t,r,n,M,b,p,o,_);g=T.scale,P=T.pad}else g=1,s&&(g=Math.min(1,A/M.x,L/M.y)),P=0;var z=i.left*v+i.right*d,O=(i.top+i.bottom)/2,V=(e+Vv)*v+(t-Vv)*d,G=(r+n)/2,Z=0,H=0;if(f||c){var N=(o?M.x:M.y)/2;b&&(c||_)&&(x+=P);var j=o?Pm(e,t):Pm(r,n);o?f?(V=e+j*x,Z=-j*N):(V=t-j*x,Z=j*N):f?(G=r+j*x,H=-j*N):(G=n-j*x,H=j*N)}return{textX:z,textY:O,targetX:V,targetY:G,anchorX:Z,anchorY:H,scale:g,rotate:k}}function S1t(e,t,r,n,i,a,o,s,l){var u=Math.max(0,Math.abs(t-e)-2*Vv),c=Math.max(0,Math.abs(n-r)-2*Vv),f=a-Vv,h=o?f-Math.sqrt(f*f-(f-o)*(f-o)):f,d=l?f*2:s?f-o:2*h,v=l?f*2:s?2*h:f-o,_,b,p,C,E;return i.y/i.x>=c/(u-d)?C=c/i.y:i.y/i.x<=(c-v)/u?C=u/i.x:!l&&s?(_=i.x*i.x+i.y*i.y/4,b=-2*i.x*(u-f)-i.y*(c/2-f),p=(u-f)*(u-f)+(c/2-f)*(c/2-f)-f*f,C=(-b+Math.sqrt(b*b-4*_*p))/(2*_)):l?(_=(i.x*i.x+i.y*i.y)/4,b=-i.x*(u/2-f)-i.y*(c/2-f),p=(u/2-f)*(u/2-f)+(c/2-f)*(c/2-f)-f*f,C=(-b+Math.sqrt(b*b-4*_*p))/(2*_)):(_=i.x*i.x/4+i.y*i.y,b=-i.x*(u/2-f)-2*i.y*(c-f),p=(u/2-f)*(u/2-f)+(c-f)*(c-f)-f*f,C=(-b+Math.sqrt(b*b-4*_*p))/(2*_)),C=Math.min(1,C),s?E=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(c-i.y*C)/2)*(f-(c-i.y*C)/2)))-o):E=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(u-i.x*C)/2)*(f-(u-i.x*C)/2)))-o),{scale:C,pad:E}}function M1t(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=i.width,c=i.height,f=Math.abs(t-e),h=Math.abs(n-r),d;o?d=h>2*Vv?Vv:0:d=f>2*Vv?Vv:0;var v=1;s&&(v=o?Math.min(1,h/c):Math.min(1,f/u));var _=jye(l),b=Wye(i,_),p=(o?b.x:b.y)/2,C=(i.left+i.right)/2,E=(i.top+i.bottom)/2,A=(e+t)/2,L=(r+n)/2,x=0,k=0,M=o?Pm(t,e):Pm(r,n);return o?(A=t-M*d,x=M*p):(L=n+M*d,k=-M*p),{textX:C,textY:E,targetX:A,targetY:L,anchorX:x,anchorY:k,scale:v,rotate:_}}function E1t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=k1t(e,t,r,n,i):a.textinfo?s=L1t(t,r,n,i):s=TT.getValue(a.text,r),TT.coerceString(m1t,s)}function C1t(e,t){var r=TT.getValue(e.textposition,t);return TT.coerceEnumerated(y1t,r)}function k1t(e,t,r,n,i){var a=t[0].trace,o=Fd.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",l=a.type==="waterfall",u=a.type==="funnel",c=a.orientation==="h",f,h,d,v;c?(f="y",h=i,d="x",v=n):(f="x",h=n,d="y",v=i);function _(x){return HI(h,h.c2l(x),!0).text}function b(x){return HI(v,v.c2l(x),!0).text}var p=t[r],C={};C.label=p.p,C.labelLabel=C[f+"Label"]=_(p.p);var E=Fd.castOption(a,p.i,"text");(E===0||E)&&(C.text=E),C.value=p.s,C.valueLabel=C[d+"Label"]=b(p.s);var A={};_1t(A,a,p.i),(s||A.x===void 0)&&(A.x=c?C.value:C.label),(s||A.y===void 0)&&(A.y=c?C.label:C.value),(s||A.xLabel===void 0)&&(A.xLabel=c?C.valueLabel:C.labelLabel),(s||A.yLabel===void 0)&&(A.yLabel=c?C.labelLabel:C.valueLabel),l&&(C.delta=+p.rawS||p.s,C.deltaLabel=b(C.delta),C.final=p.v,C.finalLabel=b(C.final),C.initial=C.final-C.delta,C.initialLabel=b(C.initial)),u&&(C.value=p.s,C.valueLabel=b(C.value),C.percentInitial=p.begR,C.percentInitialLabel=Fd.formatPercent(p.begR),C.percentPrevious=p.difR,C.percentPreviousLabel=Fd.formatPercent(p.difR),C.percentTotal=p.sumR,C.percenTotalLabel=Fd.formatPercent(p.sumR));var L=Fd.castOption(a,p.i,"customdata");return L&&(C.customdata=L),Fd.texttemplateString(o,C,e._d3locale,A,C,a._meta||{})}function L1t(e,t,r,n){var i=e[0].trace,a=i.orientation==="h",o=i.type==="waterfall",s=i.type==="funnel";function l(L){var x=a?n:r;return HI(x,L,!0).text}function u(L){var x=a?r:n;return HI(x,+L,!0).text}var c=i.textinfo,f=e[t],h=c.split("+"),d=[],v,_=function(L){return h.indexOf(L)!==-1};if(_("label")&&d.push(l(e[t].p)),_("text")&&(v=Fd.castOption(i,f.i,"text"),(v===0||v)&&d.push(v)),o){var b=+f.rawS||f.s,p=f.v,C=p-b;_("initial")&&d.push(u(C)),_("delta")&&d.push(u(b)),_("final")&&d.push(u(p))}if(s){_("value")&&d.push(u(f.s));var E=0;_("percent initial")&&E++,_("percent previous")&&E++,_("percent total")&&E++;var A=E>1;_("percent initial")&&(v=Fd.formatPercent(f.begR),A&&(v+=" of initial"),d.push(v)),_("percent previous")&&(v=Fd.formatPercent(f.difR),A&&(v+=" of previous"),d.push(v)),_("percent total")&&(v=Fd.formatPercent(f.sumR),A&&(v+=" of total"),d.push(v))}return d.join("
")}Zye.exports={plot:T1t,toMoveInsideBar:Xye}});var AT=ye((ilr,$ye)=>{"use strict";var y4=vf(),P1t=qa(),Yye=Ca(),I1t=Dr().fillText,R1t=UI().getLineWidth,CV=ho().hoverLabelText,D1t=hs().BADNUM;function F1t(e,t,r,n,i){var a=Kye(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=Jye(s,l),P1t.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function Kye(e,t,r,n,i){var a=e.cd,o=a[0].trace,s=a[0].t,l=n==="closest",u=o.type==="waterfall",c=e.maxHoverDistance,f=e.maxSpikeDistance,h,d,v,_,b,p,C;o.orientation==="h"?(h=r,d=t,v="y",_="x",b=G,p=z):(h=t,d=r,v="x",_="y",p=G,b=z);var E=o[v+"period"],A=l||E;function L(ie){return k(ie,-1)}function x(ie){return k(ie,1)}function k(ie,Se){var Le=ie.w;return ie[v]+Se*Le/2}function M(ie){return ie[v+"End"]-ie[v+"Start"]}var g=l?L:E?function(ie){return ie.p-M(ie)/2}:function(ie){return Math.min(L(ie),ie.p-s.bardelta/2)},P=l?x:E?function(ie){return ie.p+M(ie)/2}:function(ie){return Math.max(x(ie),ie.p+s.bardelta/2)};function T(ie,Se,Le){return i.finiteRange&&(Le=0),y4.inbox(ie-h,Se-h,Le+Math.min(1,Math.abs(Se-ie)/C)-1)}function z(ie){return T(g(ie),P(ie),c)}function O(ie){return T(L(ie),x(ie),f)}function V(ie){var Se=ie[_];if(u){var Le=Math.abs(ie.rawS)||0;d>0?Se+=Le:d<0&&(Se-=Le)}return Se}function G(ie){var Se=d,Le=ie.b,Ae=V(ie);return y4.inbox(Le-Se,Ae-Se,c+(Ae-Se)/(Ae-Le)-1)}function Z(ie){var Se=d,Le=ie.b,Ae=V(ie);return y4.inbox(Le-Se,Ae-Se,f+(Ae-Se)/(Ae-Le)-1)}var H=e[v+"a"],N=e[_+"a"];C=Math.abs(H.r2c(H.range[1])-H.r2c(H.range[0]));function j(ie){return(b(ie)+p(ie))/2}var re=y4.getDistanceFunction(n,b,p,j);if(y4.getClosest(a,re,e),e.index!==!1&&a[e.index].p!==D1t){A||(g=function(ie){return Math.min(L(ie),ie.p-s.bargroupwidth/2)},P=function(ie){return Math.max(x(ie),ie.p+s.bargroupwidth/2)});var oe=e.index,_e=a[oe],Me=o.base?_e.b+_e.s:_e.s;e[_+"0"]=e[_+"1"]=N.c2p(_e[_],!0),e[_+"LabelVal"]=Me;var ke=s.extents[s.extents.round(_e.p)];e[v+"0"]=H.c2p(l?g(_e):ke[0],!0),e[v+"1"]=H.c2p(l?P(_e):ke[1],!0);var me=_e.orig_p!==void 0;return e[v+"LabelVal"]=me?_e.orig_p:_e.p,e.labelLabel=CV(H,e[v+"LabelVal"],o[v+"hoverformat"]),e.valueLabel=CV(N,e[_+"LabelVal"],o[_+"hoverformat"]),e.baseLabel=CV(N,_e.b,o[_+"hoverformat"]),e.spikeDistance=(Z(_e)+O(_e))/2,e[v+"Spike"]=H.c2p(_e.p,!0),I1t(_e,o,e),e.hovertemplate=o.hovertemplate,e}}function Jye(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=R1t(e,t);if(Yye.opacity(r))return r;if(Yye.opacity(n)&&i)return n}$ye.exports={hoverPoints:F1t,hoverOnBars:Kye,getTraceColor:Jye}});var e1e=ye((nlr,Qye)=>{"use strict";Qye.exports=function(t,r,n){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var ST=ye((alr,t1e)=>{"use strict";t1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=n[0].trace,s=o.type==="funnel",l=o.orientation==="h",u=[],c;if(r===!1)for(c=0;c{"use strict";r1e.exports={attributes:Lm(),layoutAttributes:qI(),supplyDefaults:r0().supplyDefaults,crossTraceDefaults:r0().crossTraceDefaults,supplyLayoutDefaults:TV(),calc:Mye(),crossTraceCalc:Hb().crossTraceCalc,colorbar:$d(),arraysToCalcdata:p4(),plot:i2().plot,style:U0().style,styleOnSelect:U0().styleOnSelect,hoverPoints:AT().hoverPoints,eventData:e1e(),selectPoints:ST(),moduleType:"trace",name:"bar",basePlotModule:ph(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var a1e=ye((slr,n1e)=>{"use strict";n1e.exports=i1e()});var _4=ye((llr,u1e)=>{"use strict";var O1t=Cg(),V0=pf(),o1e=Lm(),q1t=Ch(),s1e=df().axisHoverFormat,B1t=Qo().hovertemplateAttrs,Fy=Ao().extendFlat,MT=V0.marker,l1e=MT.line;u1e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:V0.xperiod,yperiod:V0.yperiod,xperiod0:V0.xperiod0,yperiod0:V0.yperiod0,xperiodalignment:V0.xperiodalignment,yperiodalignment:V0.yperiodalignment,xhoverformat:s1e("x"),yhoverformat:s1e("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Fy({},MT.symbol,{arrayOk:!1,editType:"plot"}),opacity:Fy({},MT.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Fy({},MT.angle,{arrayOk:!1,editType:"calc"}),size:Fy({},MT.size,{arrayOk:!1,editType:"calc"}),color:Fy({},MT.color,{arrayOk:!1,editType:"style"}),line:{color:Fy({},l1e.color,{arrayOk:!1,dflt:q1t.defaultLine,editType:"style"}),width:Fy({},l1e.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:O1t(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:o1e.offsetgroup,alignmentgroup:o1e.alignmentgroup,selected:{marker:V0.selected.marker,editType:"style"},unselected:{marker:V0.unselected.marker,editType:"style"},text:Fy({},V0.text,{}),hovertext:Fy({},V0.hovertext,{}),hovertemplate:B1t({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:V0.zorder}});var x4=ye((ulr,c1e)=>{"use strict";c1e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var w4=ye((clr,v1e)=>{"use strict";var G0=Dr(),N1t=qa(),U1t=Ca(),V1t=Pg(),G1t=Gb(),f1e=L3(),b4=_4();function H1t(e,t,r,n){function i(v,_){return G0.coerce(e,t,b4,v,_)}if(h1e(e,t,i,n),t.visible!==!1){V1t(e,t,n,i),i("xhoverformat"),i("yhoverformat");var a=t._hasPreCompStats;a&&(i("lowerfence"),i("upperfence")),i("line.color",(e.marker||{}).color||r),i("line.width"),i("fillcolor",U1t.addOpacity(t.line.color,.5));var o=!1;if(a){var s=i("mean"),l=i("sd");s&&s.length&&(o=!0,l&&l.length&&(o="sd"))}i("whiskerwidth");var u=i("sizemode"),c;u==="quartiles"&&(c=i("boxmean",o)),i("showwhiskers",u==="quartiles"),(u==="sd"||c==="sd")&&i("sdmultiple"),i("width"),i("quartilemethod");var f=!1;if(a){var h=i("notchspan");h&&h.length&&(f=!0)}else G0.validate(e.notchwidth,b4.notchwidth)&&(f=!0);var d=i("notched",f);d&&i("notchwidth"),d1e(e,t,i,{prefix:"box"}),i("zorder")}}function h1e(e,t,r,n){function i(P){var T=0;return P&&P.length&&(T+=1,G0.isArrayOrTypedArray(P[0])&&P[0].length&&(T+=1)),T}function a(P){return G0.validate(e[P],b4[P])}var o=r("y"),s=r("x"),l;if(t.type==="box"){var u=r("q1"),c=r("median"),f=r("q3");t._hasPreCompStats=u&&u.length&&c&&c.length&&f&&f.length,l=Math.min(G0.minRowLength(u),G0.minRowLength(c),G0.minRowLength(f))}var h=i(o),d=i(s),v=h&&G0.minRowLength(o),_=d&&G0.minRowLength(s),b=n.calendar,p={autotypenumbers:n.autotypenumbers},C,E;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var A=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!A?C="h":C="v",E=l;break;case"10":C="v",E=Math.min(l,_);break;case"20":C="h",E=Math.min(l,s.length);break;case"01":C="h",E=Math.min(l,v);break;case"02":C="v",E=Math.min(l,o.length);break;case"12":C="v",E=Math.min(l,_,o.length);break;case"21":C="h",E=Math.min(l,s.length,v);break;case"11":E=0;break;case"22":var x=!1,k;for(k=0;k0?(C="v",d>0?E=Math.min(_,v):E=Math.min(v)):d>0?(C="h",E=Math.min(_)):E=0;if(!E){t.visible=!1;return}t._length=E;var M=r("orientation",C);t._hasPreCompStats?M==="v"&&d===0?(r("x0",0),r("dx",1)):M==="h"&&h===0&&(r("y0",0),r("dy",1)):M==="v"&&d===0?r("x0"):M==="h"&&h===0&&r("y0");var g=N1t.getComponentMethod("calendars","handleTraceDefaults");g(e,t,["x","y"],n)}function d1e(e,t,r,n){var i=n.prefix,a=G0.coerce2(e,t,b4,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var l=r(i+"points",s);l?(r("jitter",l==="all"?.3:0),r("pointpos",l==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),l==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var u=r("hoveron");(u==="all"||u.indexOf("points")!==-1)&&r("hovertemplate"),G0.coerceSelectionMarkerOpacity(t,r)}function j1t(e,t){var r,n;function i(l){return G0.coerce(n._input,n,b4,l)}for(var a=0;a{"use strict";var W1t=qa(),X1t=Dr(),Z1t=x4();function p1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var LV=Eo(),WI=ho(),K1t=Rg(),gh=Dr(),i0=hs().BADNUM,zy=gh._;S1e.exports=function(t,r){var n=t._fullLayout,i=WI.getFromId(t,r.xaxis||"x"),a=WI.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",l,u,c,f,h,d,v;r.orientation==="h"?(c=i,f="x",h=a,d="y",v=!!r.yperiodalignment):(c=a,f="y",h=i,d="x",v=!!r.xperiodalignment);var _=J1t(r,d,h,n[s]),b=_[0],p=_[1],C=gh.distinctVals(b,h),E=C.vals,A=C.minDiff/2,L,x,k,M,g,P,T=(r.boxpoints||r.points)==="all"?gh.identity:function(Wt){return Wt.vL.uf};if(r._hasPreCompStats){var z=r[f],O=function(Wt){return c.d2c((r[Wt]||[])[l])},V=1/0,G=-1/0;for(l=0;l=L.q1&&L.q3>=L.med){var H=O("lowerfence");L.lf=H!==i0&&H<=L.q1?H:x1e(L,k,M);var N=O("upperfence");L.uf=N!==i0&&N>=L.q3?N:b1e(L,k,M);var j=O("mean");L.mean=j!==i0?j:M?gh.mean(k,M):(L.q1+L.q3)/2;var re=O("sd");L.sd=j!==i0&&re>=0?re:M?gh.stdev(k,M,L.mean):L.q3-L.q1,L.lo=w1e(L),L.uo=T1e(L);var oe=O("notchspan");oe=oe!==i0&&oe>0?oe:A1e(L,M),L.ln=L.med-oe,L.un=L.med+oe;var _e=L.lf,Me=L.uf;r.boxpoints&&k.length&&(_e=Math.min(_e,k[0]),Me=Math.max(Me,k[M-1])),r.notched&&(_e=Math.min(_e,L.ln),Me=Math.max(Me,L.un)),L.min=_e,L.max=Me}else{gh.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` +`));var ke;L.med!==i0?ke=L.med:L.q1!==i0?L.q3!==i0?ke=(L.q1+L.q3)/2:ke=L.q1:L.q3!==i0?ke=L.q3:ke=0,L.med=ke,L.q1=L.q3=ke,L.lf=L.uf=ke,L.mean=L.sd=ke,L.ln=L.un=ke,L.min=L.max=ke}V=Math.min(V,L.min),G=Math.max(G,L.max),L.pts2=x.filter(T),o.push(L)}}r._extremes[c._id]=WI.findExtremes(c,[V,G],{padded:!0})}else{var me=c.makeCalcdata(r,f),ie=$1t(E,A),Se=E.length,Le=Q1t(Se);for(l=0;l=0&&Ae0){if(L={},L.pos=L[d]=E[l],x=L.pts=Le[l].sort(y1e),k=L[f]=x.map(_1e),M=k.length,L.min=k[0],L.max=k[M-1],L.mean=gh.mean(k,M),L.sd=gh.stdev(k,M,L.mean)*r.sdmultiple,L.med=gh.interp(k,.5),M%2&&(Fe||ce)){var Ze,ct;Fe?(Ze=k.slice(0,M/2),ct=k.slice(M/2+1)):ce&&(Ze=k.slice(0,M/2+1),ct=k.slice(M/2)),L.q1=gh.interp(Ze,.5),L.q3=gh.interp(ct,.5)}else L.q1=gh.interp(k,.25),L.q3=gh.interp(k,.75);L.lf=x1e(L,k,M),L.uf=b1e(L,k,M),L.lo=w1e(L),L.uo=T1e(L);var pt=A1e(L,M);L.ln=L.med-pt,L.un=L.med+pt,De=Math.min(De,L.ln),Pe=Math.max(Pe,L.un),L.pts2=x.filter(T),o.push(L)}r.notched&&gh.isTypedArray(me)&&(me=Array.from(me)),r._extremes[c._id]=WI.findExtremes(c,r.notched?me.concat([De,Pe]):me,{padded:!0})}return e_t(o,r),o.length>0?(o[0].t={num:n[s],dPos:A,posLetter:d,valLetter:f,labels:{med:zy(t,"median:"),min:zy(t,"min:"),q1:zy(t,"q1:"),q3:zy(t,"q3:"),max:zy(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?zy(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):zy(t,"mean:"),lf:zy(t,"lower fence:"),uf:zy(t,"upper fence:")}},n[s]++,o):[{t:{empty:!0}}]};function J1t(e,t,r,n){var i=t in e,a=t+"0"in e,o="d"+t in e;if(i||a&&o){var s=r.makeCalcdata(e,t),l=K1t(e,r,t,s).vals;return[l,s]}var u;a?u=e[t+"0"]:"name"in e&&(r.type==="category"||LV(e.name)&&["linear","log"].indexOf(r.type)!==-1||gh.isDateTime(e.name)&&r.type==="date")?u=e.name:u=n;for(var c=r.type==="multicategory"?r.r2c_just_indices(u):r.d2c(u,0,e[t+"calendar"]),f=e._length,h=new Array(f),d=0;d{"use strict";var M1e=ho(),t_t=Dr(),r_t=Bb().getAxisGroup,E1e=["v","h"];function i_t(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,C=1-a[e+"gap"],E=1-a[e+"groupgap"];for(l=0;l0;if(k==="positive"?(N=M*(x?1:.5),oe=re,j=oe=P):k==="negative"?(N=oe=P,j=M*(x?1:.5),_e=re):(N=j=M,oe=_e=re),Le){var Ae=A.pointpos,De=A.jitter,Pe=A.marker.size/2,ge=0;Ae+De>=0&&(ge=re*(Ae+De),ge>N?(Se=!0,me=Pe,Me=ge):ge>oe&&(me=Pe,Me=N)),ge<=N&&(Me=N);var Fe=0;Ae-De<=0&&(Fe=-re*(Ae-De),Fe>j?(Se=!0,ie=Pe,ke=Fe):Fe>_e&&(ie=Pe,ke=j)),Fe<=j&&(ke=j)}else Me=N,ke=j;var ce=new Array(c.length);for(u=0;u{"use strict";var ET=Oa(),n2=Dr(),n_t=So(),L1e=5,a_t=.01;function o_t(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;n2.makeTraceGroups(n,r,"trace boxes").each(function(s){var l=ET.select(this),u=s[0],c=u.t,f=u.trace;if(c.wdPos=c.bdPos*f.whiskerwidth,f.visible!==!0||c.empty){l.remove();return}var h,d;f.orientation==="h"?(h=o,d=a):(h=a,d=o),P1e(l,{pos:h,val:d},f,c,i),I1e(l,{x:a,y:o},f,c),R1e(l,{pos:h,val:d},f,c)})}function P1e(e,t,r,n,i){var a=r.orientation==="h",o=t.val,s=t.pos,l=!!s.rangebreaks,u=n.bPos,c=n.wdPos||0,f=n.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,v=r.notched||!1,_=v?1-2*r.notchwidth:1,b,p;Array.isArray(n.bdPos)?(b=n.bdPos[0],p=n.bdPos[1]):(b=n.bdPos,p=n.bdPos);var C=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?n2.identity:[]);C.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),C.exit().remove(),C.each(function(E){if(E.empty)return ET.select(this).attr("d","M0,0Z");var A=s.c2l(E.pos+u,!0),L=s.l2p(A-b)+f,x=s.l2p(A+p)+f,k=l?(L+x)/2:s.l2p(A)+f,M=r.whiskerwidth,g=l?L*M+(1-M)*k:s.l2p(A-c)+f,P=l?x*M+(1-M)*k:s.l2p(A+c)+f,T=s.l2p(A-b*_)+f,z=s.l2p(A+p*_)+f,O=r.sizemode==="sd",V=o.c2p(O?E.mean-E.sd:E.q1,!0),G=O?o.c2p(E.mean+E.sd,!0):o.c2p(E.q3,!0),Z=n2.constrain(O?o.c2p(E.mean,!0):o.c2p(E.med,!0),Math.min(V,G)+1,Math.max(V,G)-1),H=E.lf===void 0||r.boxpoints===!1||O,N=o.c2p(H?E.min:E.lf,!0),j=o.c2p(H?E.max:E.uf,!0),re=o.c2p(E.ln,!0),oe=o.c2p(E.un,!0);a?ET.select(this).attr("d","M"+Z+","+T+"V"+z+"M"+V+","+L+"V"+x+(v?"H"+re+"L"+Z+","+z+"L"+oe+","+x:"")+"H"+G+"V"+L+(v?"H"+oe+"L"+Z+","+T+"L"+re+","+L:"")+"Z"+(d?"M"+V+","+k+"H"+N+"M"+G+","+k+"H"+j+(h===0?"":"M"+N+","+g+"V"+P+"M"+j+","+g+"V"+P):"")):ET.select(this).attr("d","M"+T+","+Z+"H"+z+"M"+L+","+V+"H"+x+(v?"V"+re+"L"+z+","+Z+"L"+x+","+oe:"")+"V"+G+"H"+L+(v?"V"+oe+"L"+T+","+Z+"L"+L+","+re:"")+"Z"+(d?"M"+k+","+V+"V"+N+"M"+k+","+G+"V"+j+(h===0?"":"M"+g+","+N+"H"+P+"M"+g+","+j+"H"+P):""))})}function I1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,l=r.boxpoints||r.points;n2.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=n,d.trace=r}),h},c=e.selectAll("g.points").data(l?u:[]);c.enter().append("g").attr("class","points"),c.exit().remove();var f=c.selectAll("path").data(function(h){var d,v=h.pts2,_=Math.max((h.max-h.min)/10,h.q3-h.q1),b=_*1e-9,p=_*a_t,C=[],E=0,A;if(r.jitter){if(_===0)for(E=1,C=new Array(v.length),d=0;dh.lo&&(P.so=!0)}return v});f.enter().append("path").classed("point",!0),f.exit().remove(),f.call(n_t.translatePoints,i,a)}function R1e(e,t,r,n){var i=t.val,a=t.pos,o=!!a.rangebreaks,s=n.bPos,l=n.bPosPxOffset||0,u=r.boxmean||(r.meanline||{}).visible,c,f;Array.isArray(n.bdPos)?(c=n.bdPos[0],f=n.bdPos[1]):(c=n.bdPos,f=n.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?n2.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var v=a.c2l(d.pos+s,!0),_=a.l2p(v-c)+l,b=a.l2p(v+f)+l,p=o?(_+b)/2:a.l2p(v)+l,C=i.c2p(d.mean,!0),E=i.c2p(d.mean-d.sd,!0),A=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?ET.select(this).attr("d","M"+C+","+_+"V"+b+(u==="sd"?"m0,0L"+E+","+p+"L"+C+","+_+"L"+A+","+p+"Z":"")):ET.select(this).attr("d","M"+_+","+C+"H"+b+(u==="sd"?"m0,0L"+p+","+E+"L"+_+","+C+"L"+p+","+A+"Z":""))})}D1e.exports={plot:o_t,plotBoxAndWhiskers:P1e,plotPoints:I1e,plotBoxMean:R1e}});var YI=ye((plr,F1e)=>{"use strict";var IV=Oa(),RV=Ca(),DV=So();function s_t(e,t,r){var n=r||IV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=IV.select(this),o=i[0].trace,s=o.line.width;function l(f,h,d,v){f.style("stroke-width",h+"px").call(RV.stroke,d).call(RV.fill,v)}var u=a.selectAll("path.box");if(o.type==="candlestick")u.each(function(f){if(!f.empty){var h=IV.select(this),d=o[f.dir];l(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!f.selected?.3:1)}});else{l(u,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(RV.stroke,o.line.color);var c=a.selectAll("path.point");DV.pointStyle(c,o,e)}})}function l_t(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?DV.selectedPointStyle(i,n):DV.pointStyle(i,n,e)}F1e.exports={style:s_t,styleOnSelect:l_t}});var zV=ye((glr,B1e)=>{"use strict";var u_t=ho(),FV=Dr(),A_=vf(),z1e=Ca(),c_t=FV.fillText;function f_t(e,t,r,n){var i=e.cd,a=i[0].trace,o=a.hoveron,s=[],l;return o.indexOf("boxes")!==-1&&(s=s.concat(O1e(e,t,r,n))),o.indexOf("points")!==-1&&(l=q1e(e,t,r)),n==="closest"?l?[l]:s:(l&&s.push(l),s)}function O1e(e,t,r,n){var i=e.cd,a=e.xa,o=e.ya,s=i[0].trace,l=i[0].t,u=s.type==="violin",c,f,h,d,v,_,b,p,C,E,A,L=l.bdPos,x,k,M=l.wHover,g=function(Pe){return h.c2l(Pe.pos)+l.bPos-h.c2l(_)};u&&s.side!=="both"?(s.side==="positive"&&(C=function(Pe){var ge=g(Pe);return A_.inbox(ge,ge+M,E)},x=L,k=0),s.side==="negative"&&(C=function(Pe){var ge=g(Pe);return A_.inbox(ge-M,ge,E)},x=0,k=L)):(C=function(Pe){var ge=g(Pe);return A_.inbox(ge-M,ge+M,E)},x=k=L);var P;u?P=function(Pe){return A_.inbox(Pe.span[0]-v,Pe.span[1]-v,E)}:P=function(Pe){return A_.inbox(Pe.min-v,Pe.max-v,E)},s.orientation==="h"?(v=t,_=r,b=P,p=C,c="y",h=o,f="x",d=a):(v=r,_=t,b=C,p=P,c="x",h=a,f="y",d=o);var T=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));E=e.maxHoverDistance-T,A=e.maxSpikeDistance-T;function z(Pe){return(b(Pe)+p(Pe))/2}var O=A_.getDistanceFunction(n,b,p,z);if(A_.getClosest(i,O,e),e.index===!1)return[];var V=i[e.index],G=s.line.color,Z=(s.marker||{}).color;z1e.opacity(G)&&s.line.width?e.color=G:z1e.opacity(Z)&&s.boxpoints?e.color=Z:e.color=s.fillcolor,e[c+"0"]=h.c2p(V.pos+l.bPos-k,!0),e[c+"1"]=h.c2p(V.pos+l.bPos+x,!0),e[c+"LabelVal"]=V.orig_p!==void 0?V.orig_p:V.pos;var H=c+"Spike";e.spikeDistance=z(V)*A/E,e[H]=h.c2p(V.pos,!0);var N=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,j=s.boxpoints||s.points,re=j&&N?["max","uf","q3","med","mean","q1","lf","min"]:j&&!N?["max","uf","q3","med","q1","lf","min"]:!j&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],oe=d.range[1]{"use strict";N1e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var OV=ye((ylr,V1e)=>{"use strict";V1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l;if(r===!1)for(s=0;s{"use strict";G1e.exports={attributes:_4(),layoutAttributes:x4(),supplyDefaults:w4().supplyDefaults,crossTraceDefaults:w4().crossTraceDefaults,supplyLayoutDefaults:jI().supplyLayoutDefaults,calc:PV(),crossTraceCalc:XI().crossTraceCalc,plot:ZI().plot,style:YI().style,styleOnSelect:YI().styleOnSelect,hoverPoints:zV().hoverPoints,eventData:U1e(),selectPoints:OV(),moduleType:"trace",name:"box",basePlotModule:ph(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var W1e=ye((xlr,j1e)=>{"use strict";j1e.exports=H1e()});var CT=ye((blr,X1e)=>{"use strict";var n0=pf(),h_t=Gl(),d_t=ec(),qV=df().axisHoverFormat,v_t=Qo().hovertemplateAttrs,p_t=Qo().texttemplateAttrs,g_t=Tu(),Lp=Ao().extendFlat;X1e.exports=Lp({z:{valType:"data_array",editType:"calc"},x:Lp({},n0.x,{impliedEdits:{xtype:"array"}}),x0:Lp({},n0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Lp({},n0.dx,{impliedEdits:{xtype:"scaled"}}),y:Lp({},n0.y,{impliedEdits:{ytype:"array"}}),y0:Lp({},n0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Lp({},n0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Lp({},n0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Lp({},n0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Lp({},n0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Lp({},n0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Lp({},n0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Lp({},n0.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:qV("x"),yhoverformat:qV("y"),zhoverformat:qV("z",1),hovertemplate:v_t(),texttemplate:p_t({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:d_t({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Lp({},h_t.showlegend,{dflt:!1}),zorder:n0.zorder},g_t("",{cLetter:"z",autoColorDflt:!1}))});var JI=ye((wlr,Y1e)=>{"use strict";var m_t=Eo(),KI=Dr(),y_t=qa();Y1e.exports=function(t,r,n,i,a,o){var s=n("z");a=a||"x",o=o||"y";var l,u;if(s===void 0||!s.length)return 0;if(KI.isArray1D(s)){l=n(a),u=n(o);var c=KI.minRowLength(l),f=KI.minRowLength(u);if(c===0||f===0)return 0;r._length=Math.min(c,f,s.length)}else{if(l=Z1e(a,n),u=Z1e(o,n),!__t(s))return 0;n("transpose"),r._length=null}var h=y_t.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function Z1e(e,t){var r=t(e),n=r?t(e+"type","array"):"scaled";return n==="scaled"&&(t(e+"0"),t("d"+e)),r}function __t(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var K1e=Dr();J1e.exports=function(t,r){t("texttemplate");var n=K1e.extendFlat({},r.font,{color:"auto",size:"auto"});K1e.coerceFont(t,"textfont",n)}});var BV=ye((Alr,$1e)=>{"use strict";$1e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var t_e=ye((Slr,e_e)=>{"use strict";var Q1e=Dr(),x_t=JI(),b_t=T4(),w_t=Pg(),T_t=BV(),A_t=Jh(),S_t=CT();e_e.exports=function(t,r,n,i){function a(s,l){return Q1e.coerce(t,r,S_t,s,l)}var o=x_t(t,r,a,i);if(!o){r.visible=!1;return}w_t(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),b_t(a,i),T_t(t,r,a,i),a("hoverongaps"),a("connectgaps",Q1e.isArray1D(r.z)&&r.zsmooth!==!1),A_t(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var NV=ye((Mlr,r_e)=>{"use strict";var kT=Eo();r_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return kT(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return kT(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(kT(i))if(i=Number(i),kT(r[e])){if(r[e]>i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0},max:function(e,t,r,n){var i=n[t];if(kT(i))if(i=Number(i),kT(r[e])){if(r[e]{"use strict";i_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";n_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var LT=hs(),a2=LT.ONEAVGYEAR,a_e=LT.ONEAVGMONTH,QI=LT.ONEDAY,o_e=LT.ONEHOUR,s_e=LT.ONEMIN,l_e=LT.ONESEC,u_e=ho().tickIncrement;h_e.exports=function(t,r,n,i,a){var o=-1.1*r,s=-.1*r,l=t-s,u=n[0],c=n[1],f=Math.min($I(u+s,u+l,i,a),$I(c+s,c+l,i,a)),h=Math.min($I(u+o,u+s,i,a),$I(c+o,c+s,i,a)),d,v;if(f>h&&hQI){var _=d===a2?1:6,b=d===a2?"M12":"M1";return function(p,C){var E=i.c2d(p,a2,a),A=E.indexOf("-",_);A>0&&(E=E.substr(0,A));var L=i.d2c(E,0,a);if(Ll_e?e>QI?e>a2*1.1?a2:e>a_e*1.1?a_e:QI:e>o_e?o_e:e>s_e?s_e:l_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function M_t(e,t,r,n,i,a){if(n&&e>QI){var o=f_e(t,i,a),s=f_e(r,i,a),l=e===a2?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function f_e(e,t,r){var n=t.c2d(e,a2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var WV=ye((Llr,m_e)=>{"use strict";var HV=Eo(),Gv=Dr(),d_e=qa(),H0=ho(),{hasColorscale:v_e}=pv(),p_e=gv(),E_t=p4(),g_e=NV(),C_t=UV(),k_t=VV(),L_t=GV();function P_t(e,t){var r=[],n=[],i=t.orientation==="h",a=H0.getFromId(e,i?t.yaxis:t.xaxis),o=i?"y":"x",s={x:"y",y:"x"}[o],l=t[o+"calendar"],u=t.cumulative,c,f=jV(e,t,a,o),h=f[0],d=f[1],v=typeof h.size=="string",_=[],b=v?_:h,p=[],C=[],E=[],A=0,L=t.histnorm,x=t.histfunc,k=L.indexOf("density")!==-1,M,g,P;u.enabled&&k&&(L=L.replace(/ ?density$/,""),k=!1);var T=x==="max"||x==="min",z=T?null:0,O=g_e.count,V=C_t[L],G=!1,Z=function(ge){return a.r2c(ge,0,l)},H;for(Gv.isArrayOrTypedArray(t[s])&&x!=="count"&&(H=t[s],G=x==="avg",O=g_e[x]),c=Z(h.start),g=Z(h.end)+(c-H0.tickIncrement(c,h.size,!1,l))/1e6;c=0&&P=Ae;c--)if(n[c]){De=c;break}for(c=Ae;c<=De;c++)if(HV(r[c])&&HV(n[c])){var Pe={p:r[c],s:n[c],b:0};u.enabled||(Pe.pts=E[c],oe?Pe.ph0=Pe.ph1=E[c].length?d[E[c][0]]:r[c]:(t._computePh=!0,Pe.ph0=ie(_[c]),Pe.ph1=ie(_[c+1],!0))),Le.push(Pe)}return Le.length===1&&(Le[0].width1=H0.tickIncrement(Le[0].p,h.size,!1,l)-Le[0].p),v_e(t,"marker")&&p_e(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),v_e(t,"marker.line")&&p_e(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),E_t(Le,t),Gv.isArrayOrTypedArray(t.selectedpoints)&&Gv.tagSelected(Le,t,ke),Le}function jV(e,t,r,n,i){var a=n+"bins",o=e._fullLayout,s=t["_"+n+"bingroup"],l=o._histogramBinOpts[s],u=o.barmode==="overlay",c,f,h,d,v,_,b,p=function(me){return r.r2c(me,0,d)},C=function(me){return r.c2r(me,0,d)},E=r.type==="date"?function(me){return me||me===0?Gv.cleanDate(me,null,d):null}:function(me){return HV(me)?Number(me):null};function A(me,ie,Se){ie[me+"Found"]?(ie[me]=E(ie[me]),ie[me]===null&&(ie[me]=Se[me])):(_[me]=ie[me]=Se[me],Gv.nestedProperty(f[0],a+"."+me).set(Se[me]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{f=l.traces;var L=[],x=!0,k=!1,M=!1;for(c=0;cr.r2l(H)&&(j=H0.tickIncrement(j,l.size,!0,d)),O.start=r.l2r(j),Z||Gv.nestedProperty(t,a+".start").set(O.start)}var re=l.end,oe=r.r2l(z.end),_e=oe!==void 0;if((l.endFound||_e)&&oe!==r.r2l(re)){var Me=_e?oe:Gv.aggNums(Math.max,null,v);O.end=r.l2r(Me),_e||Gv.nestedProperty(t,a+".start").set(O.end)}var ke="autobin"+n;return t._input[ke]===!1&&(t._input[a]=Gv.extendFlat({},t[a]||{}),delete t._input[ke],delete t[ke]),[O,v]}function I_t(e,t,r,n,i){var a=e._fullLayout,o=R_t(e,t),s=!1,l=1/0,u=[t],c,f,h;for(c=0;c=0;n--)s(n);else if(t==="increasing"){for(n=1;n=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}m_e.exports={calc:P_t,calcAllAutoBins:jV}});var S_e=ye((Plr,A_e)=>{"use strict";var y_e=Dr(),PT=ho(),__e=NV(),F_t=UV(),z_t=VV(),O_t=GV(),x_e=WV().calcAllAutoBins;A_e.exports=function(t,r){var n=PT.getFromId(t,r.xaxis),i=PT.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(bt){return n.r2c(bt,0,a)},l=function(bt){return i.r2c(bt,0,o)},u=function(bt){return n.c2r(bt,0,a)},c=function(bt){return i.c2r(bt,0,o)},f,h,d,v,_=x_e(t,r,n,"x"),b=_[0],p=_[1],C=x_e(t,r,i,"y"),E=C[0],A=C[1],L=r._length;p.length>L&&p.splice(L,p.length-L),A.length>L&&A.splice(L,A.length-L);var x=[],k=[],M=[],g=typeof b.size=="string",P=typeof E.size=="string",T=[],z=[],O=g?T:b,V=P?z:E,G=0,Z=[],H=[],N=r.histnorm,j=r.histfunc,re=N.indexOf("density")!==-1,oe=j==="max"||j==="min",_e=oe?null:0,Me=__e.count,ke=F_t[N],me=!1,ie=[],Se=[],Le="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";Le&&j!=="count"&&(me=j==="avg",Me=__e[j]);var Ae=b.size,De=s(b.start),Pe=s(b.end)+(De-PT.tickIncrement(De,Ae,!1,a))/1e6;for(f=De;f=0&&d=0&&v{"use strict";var Im=Dr(),M_e=hs().BADNUM,E_e=Rg();C_e.exports=function(t,r,n,i,a,o){var s=t._length,l=r.makeCalcdata(t,i),u=n.makeCalcdata(t,a);l=E_e(t,r,i,l).vals,u=E_e(t,n,a,u).vals;var c=t.text,f=c!==void 0&&Im.isArray1D(c),h=t.hovertext,d=h!==void 0&&Im.isArray1D(h),v,_,b=Im.distinctVals(l),p=b.vals,C=Im.distinctVals(u),E=C.vals,A=[],L,x,k=E.length,M=p.length;for(v=0;v{"use strict";var q_t=Eo(),B_t=Dr(),t8=hs().BADNUM;k_e.exports=function(t,r,n,i){var a,o,s,l,u,c;function f(p){if(q_t(p))return+p}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var N_t=Dr(),L_e=.01,U_t=[[-1,0],[1,0],[0,-1],[0,1]];function V_t(e){return .5-.25*Math.min(1,e*.5)}I_e.exports=function(t,r){var n=1,i;for(P_e(t,r),i=0;iL_e;i++)n=P_e(t,r,V_t(n));return n>L_e&&N_t.log("interp2d didn't converge quickly",n),t};function P_e(e,t,r){var n=0,i,a,o,s,l,u,c,f,h,d,v,_,b;for(s=0;s_&&(n=Math.max(n,Math.abs(e[a][o]-v)/(b-_))))}return n}});var n8=ye((Flr,R_e)=>{"use strict";var G_t=Dr().maxRowLength;R_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],l=G_t(t),u,c,f,h,d,v,_,b;for(c=0;c=0;d--)h=i[d],c=h[0],f=h[1],v=((n[[c-1,f]]||s)[2]+(n[[c+1,f]]||s)[2]+(n[[c,f-1]]||s)[2]+(n[[c,f+1]]||s)[2])/20,v&&(_[h]=[c,f,v],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in _)n[h]=_[h],r.push(_[h])}return r.sort(function(p,C){return C[2]-p[2]})}});var XV=ye((zlr,z_e)=>{"use strict";var D_e=qa(),F_e=Dr().isArrayOrTypedArray;z_e.exports=function(t,r,n,i,a,o){var s=[],l=D_e.traceIs(t,"contour"),u=D_e.traceIs(t,"histogram"),c,f,h,d=F_e(r)&&r.length>1;if(d&&!u&&o.type!=="category"){var v=r.length;if(v<=a){if(l)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var O_e=qa(),ZV=Dr(),a8=ho(),q_e=Rg(),H_t=S_e(),j_t=gv(),W_t=e8(),X_t=r8(),Z_t=i8(),Y_t=n8(),o8=XV(),YV=hs().BADNUM;N_e.exports=function(t,r){var n=a8.getFromId(t,r.xaxis||"x"),i=a8.getFromId(t,r.yaxis||"y"),a=O_e.traceIs(r,"contour"),o=O_e.traceIs(r,"histogram"),s=a?"best":r.zsmooth,l,u,c,f,h,d,v,_,b,p,C;if(n._minDtick=0,i._minDtick=0,o)C=H_t(t,r),f=C.orig_x,l=C.x,u=C.x0,c=C.dx,_=C.orig_y,h=C.y,d=C.y0,v=C.dy,b=C.z;else{var E=r.z;ZV.isArray1D(E)?(W_t(r,n,i,"x","y",["z"]),l=r._x,h=r._y,E=r._z):(f=r.x?n.makeCalcdata(r,"x"):[],_=r.y?i.makeCalcdata(r,"y"):[],l=q_e(r,n,"x",f).vals,h=q_e(r,i,"y",_).vals,r._x=l,r._y=h),u=r.x0,c=r.dx,d=r.y0,v=r.dy,b=X_t(E,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=K_t(l,h,b),o||(l=B_e(l),h=B_e(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=Y_t(b),Z_t(b,r._emptypoints));function A(O){s=r._input.zsmooth=r.zsmooth=!1,ZV.warn('cannot use zsmooth: "fast": '+O)}function L(O){if(O.length>1){var V=(O[O.length-1]-O[0])/(O.length-1),G=Math.abs(V/100);for(p=0;pG)return!1}return!0}r._islinear=!1,n.type==="log"||i.type==="log"?s==="fast"&&A("log axis found"):L(l)?L(h)?r._islinear=!0:s==="fast"&&A("y scale is not linear"):s==="fast"&&A("x scale is not linear");var x=ZV.maxRowLength(b),k=r.xtype==="scaled"?"":l,M=o8(r,k,u,c,x,n),g=r.ytype==="scaled"?"":h,P=o8(r,g,d,v,b.length,i);r._extremes[n._id]=a8.findExtremes(n,M),r._extremes[i._id]=a8.findExtremes(i,P);var T={x:M,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&f&&(T.orig_x=f),r.yperiodalignment&&_&&(T.orig_y=_),k&&k.length===M.length-1&&(T.xCenter=k),g&&g.length===P.length-1&&(T.yCenter=g),o&&(T.xRanges=C.xRanges,T.yRanges=C.yRanges,T.pts=C.pts),a||j_t(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var z={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};T.xfill=o8(z,k,u,c,x,n),T.yfill=o8(z,g,d,v,b.length,i)}return[T]};function B_e(e){for(var t=[],r=e.length,n=0;n{"use strict";l8.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];l8.STYLE=l8.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var JV=ye((Blr,V_e)=>{"use strict";var U_e=u8(),J_t=So(),KV=Dr(),IT=null;function $_t(){if(IT!==null)return IT;IT=!1;var e=KV.isSafari()||KV.isMacWKWebView()||KV.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(U_e.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")IT=t.some(function(o){return r.apply(null,o)});else{var n=J_t.tester.append("image").attr("style",U_e.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;IT=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return IT}V_e.exports=$_t});var c8=ye((Nlr,J_e)=>{"use strict";var G_e=Oa(),Q_t=cd(),ext=qa(),txt=So(),rxt=ho(),j0=Dr(),H_e=ru(),ixt=tI(),nxt=Ca(),axt=tc().extractOpts,oxt=tc().makeColorScaleFuncFromTrace,sxt=Wp(),lxt=Kh(),$V=lxt.LINE_SPACING,uxt=JV(),cxt=u8().STYLE,Y_e="heatmap-label";function K_e(e){return e.selectAll("g."+Y_e)}function j_e(e){K_e(e).remove()}J_e.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;j0.makeTraceGroups(n,r,"hm").each(function(o){var s=G_e.select(this),l=o[0],u=l.trace,c=u.xgap||0,f=u.ygap||0,h=l.z,d=l.x,v=l.y,_=l.xCenter,b=l.yCenter,p=ext.traceIs(u,"contour"),C=p?"best":u.zsmooth,E=h.length,A=j0.maxRowLength(h),L=!1,x=!1,k,M,g,P,T,z,O,V;for(z=0;k===void 0&&z0;)M=i.c2p(d[z]),z--;for(M0;)T=a.c2p(v[z]),z--;T=i._length||M<=0||P>=a._length||T<=0;if(j){var re=s.selectAll("image").data([]);re.exit().remove(),j_e(s);return}var oe,_e;G==="fast"?(oe=A,_e=E):(oe=H,_e=N);var Me=document.createElement("canvas");Me.width=oe,Me.height=_e;var ke=Me.getContext("2d",{willReadFrequently:!0}),me=oxt(u,{noNumericCheck:!0,returnArray:!0}),ie,Se;G==="fast"?(ie=L?function(cn){return A-1-cn}:j0.identity,Se=x?function(cn){return E-1-cn}:j0.identity):(ie=function(cn){return j0.constrain(Math.round(i.c2p(d[cn])-k),0,H)},Se=function(cn){return j0.constrain(Math.round(a.c2p(v[cn])-P),0,N)});var Le=Se(0),Ae=[Le,Le],De=L?0:1,Pe=x?0:1,ge=0,Fe=0,ce=0,Ze=0,ct,pt,Wt,st,lt;function Gt(cn,yn){if(cn!==void 0){var Mn=me(cn);return Mn[0]=Math.round(Mn[0]),Mn[1]=Math.round(Mn[1]),Mn[2]=Math.round(Mn[2]),ge+=yn,Fe+=Mn[0]*yn,ce+=Mn[1]*yn,Ze+=Mn[2]*yn,Mn}return[0,0,0,0]}function Nt(cn,yn,Mn,Ba){var la=cn[Mn.bin0];if(la===void 0)return Gt(void 0,1);var ma=cn[Mn.bin1],Wa=yn[Mn.bin0],Fa=yn[Mn.bin1],Wo=ma-la||0,da=Wa-la||0,Wn;return ma===void 0?Fa===void 0?Wn=0:Wa===void 0?Wn=2*(Fa-la):Wn=(2*Fa-Wa-la)*2/3:Fa===void 0?Wa===void 0?Wn=0:Wn=(2*la-ma-Wa)*2/3:Wa===void 0?Wn=(2*Fa-ma-la)*2/3:Wn=Fa+la-ma-Wa,Gt(la+Mn.frac*Wo+Ba.frac*(da+Mn.frac*Wn))}if(G!=="default"){var $t=0,sr;try{sr=new Uint8Array(oe*_e*4)}catch(cn){sr=new Array(oe*_e*4)}if(G==="smooth"){var wr=_||d,ur=b||v,Qe=new Array(wr.length),Et=new Array(ur.length),er=new Array(H),Ut=_?X_e:W_e,Ft=b?X_e:W_e,bt,yt,Yt;for(z=0;zpr||pr>a._length))for(O=Ce;Odi||di>i._length)){var Jr=ixt({x:oi,y:ir},u,e._fullLayout);Jr.x=oi,Jr.y=ir;var fi=l.z[z][O];fi===void 0?(Jr.z="",Jr.zLabel=""):(Jr.z=fi,Jr.zLabel=rxt.tickText(je,fi,"hover").text);var Hi=l.text&&l.text[z]&&l.text[z][O];(Hi===void 0||Hi===!1)&&(Hi=""),Jr.text=Hi;var Pn=j0.texttemplateString(Ge,Jr,e._fullLayout._d3locale,Jr,u._meta||{});if(Pn){var wn=Pn.split("
"),pn=wn.length,Vn=0;for(V=0;V{"use strict";$_e.exports={min:"zmin",max:"zmax"}});var f8=ye((Vlr,Q_e)=>{"use strict";var fxt=Oa();Q_e.exports=function(t){fxt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var d8=ye((Glr,txe)=>{"use strict";var exe=vf(),A4=Dr(),h8=A4.isArrayOrTypedArray,hxt=ho(),dxt=tc().extractOpts;txe.exports=function(t,r,n,i,a){a||(a={});var o=a.isContour,s=t.cd[0],l=s.trace,u=t.xa,c=t.ya,f=s.x,h=s.y,d=s.z,v=s.xCenter,_=s.yCenter,b=s.zmask,p=l.zhoverformat,C=f,E=h,A,L,x,k;if(t.index!==!1){try{x=Math.round(t.index[1]),k=Math.round(t.index[0])}catch(re){A4.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(x<0||x>=d[0].length||k<0||k>d.length)return}else{if(exe.inbox(r-f[0],r-f[f.length-1],0)>0||exe.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var M;for(C=[2*f[0]-f[1]],M=1;M{"use strict";rxe.exports={attributes:CT(),supplyDefaults:t_e(),calc:s8(),plot:c8(),colorbar:S_(),style:f8(),hoverPoints:d8(),moduleType:"trace",name:"heatmap",basePlotModule:ph(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var axe=ye((jlr,nxe)=>{"use strict";nxe.exports=ixe()});var QV=ye((Wlr,oxe)=>{"use strict";oxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var lxe=ye((Xlr,sxe)=>{"use strict";sxe.exports={eventDataKeys:["binNumber"]}});var v8=ye((Zlr,fxe)=>{"use strict";var Pp=Lm(),uxe=df().axisHoverFormat,vxt=Qo().hovertemplateAttrs,pxt=Qo().texttemplateAttrs,eG=ec(),cxe=QV(),gxt=lxe(),tG=Ao().extendFlat;fxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:uxe("x"),yhoverformat:uxe("y"),text:tG({},Pp.text,{}),hovertext:tG({},Pp.hovertext,{}),orientation:Pp.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:cxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:cxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:vxt({},{keys:gxt.eventDataKeys}),texttemplate:pxt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:tG({},Pp.textposition,{arrayOk:!1}),textfont:eG({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:eG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:eG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Pp.insidetextanchor,textangle:Pp.textangle,cliponaxis:Pp.cliponaxis,constraintext:Pp.constraintext,marker:Pp.marker,offsetgroup:Pp.offsetgroup,alignmentgroup:Pp.alignmentgroup,selected:Pp.selected,unselected:Pp.unselected,zorder:Pp.zorder}});var pxe=ye((Ylr,vxe)=>{"use strict";var hxe=qa(),S4=Dr(),dxe=Ca(),mxt=r0().handleText,yxt=BI(),_xt=v8();vxe.exports=function(t,r,n,i){function a(C,E){return S4.coerce(t,r,_xt,C,E)}var o=a("x"),s=a("y"),l=a("cumulative.enabled");l&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var u=a("textposition");mxt(t,r,i,a,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat");var c=a("orientation",s&&!o?"h":"v"),f=c==="v"?"x":"y",h=c==="v"?"y":"x",d=o&&s?Math.min(S4.minRowLength(o)&&S4.minRowLength(s)):S4.minRowLength(r[f]||[]);if(!d){r.visible=!1;return}r._length=d;var v=hxe.getComponentMethod("calendars","handleTraceDefaults");v(t,r,["x","y"],i);var _=r[h];_&&a("histfunc"),a("histnorm"),a("autobin"+f),yxt(t,r,a,n,i),S4.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,p=hxe.getComponentMethod("errorbars","supplyDefaults");p(t,r,b||dxe.defaultLine,{axis:"y"}),p(t,r,b||dxe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var g8=ye((Klr,yxe)=>{"use strict";var M4=Dr(),xxt=hf(),p8=qa().traceIs,bxt=Gb(),wxt=r0().validateCornerradius,gxe=M4.nestedProperty,rG=Bb().getAxisGroup,mxe=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],Txt=["x","y"];yxe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,l,u,c,f,h,d;function v(G,Z){return M4.coerce(s._input,s,s._module.attributes,G,Z)}function _(G){return G.orientation==="v"?"x":"y"}function b(G,Z){var H=xxt.getFromTrace({_fullLayout:r},G,Z);return H.type}function p(G,Z,H){var N=G.uid+"__"+H;Z||(Z=N);var j=b(G,H),re=G[H+"calendar"]||"",oe=n[Z],_e=!0;oe&&(j===oe.axType&&re===oe.calendar?(_e=!1,oe.traces.push(G),oe.dirs.push(H)):(Z=N,j!==oe.axType&&M4.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+j,"axis","with bins on","type:"+oe.axType,"axis."].join(" ")),re!==oe.calendar&&M4.warn(["Attempted to group the bins of trace",G.index,"set with a",re,"calendar","with bins",oe.calendar?"on a "+oe.calendar+" calendar":"w/o a set calendar"].join(" ")))),_e&&(n[Z]={traces:[G],dirs:[H],axType:j,calendar:G[H+"calendar"]||""}),G["_"+H+"bingroup"]=Z}for(f=0;f{"use strict";var Axt=AT().hoverPoints,Sxt=ho().hoverLabelText;_xe.exports=function(t,r,n,i,a){var o=Axt(t,r,n,i,a);if(o){t=o[0];var s=t.cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var u=l.orientation==="h"?"y":"x";t[u+"Label"]=Sxt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var iG=ye(($lr,bxe)=>{"use strict";bxe.exports=function(t,r,n,i,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(n.cumulative||{}).enabled){var o=Array.isArray(a)?i[0].pts[a[0]][a[1]]:i[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex;var s;if(n._indexToPoints){s=[];for(var l=0;l{"use strict";wxe.exports={attributes:v8(),layoutAttributes:qI(),supplyDefaults:pxe(),crossTraceDefaults:g8(),supplyLayoutDefaults:TV(),calc:WV().calc,crossTraceCalc:Hb().crossTraceCalc,plot:i2().plot,layerName:"barlayer",style:U0().style,styleOnSelect:U0().styleOnSelect,colorbar:$d(),hoverPoints:xxe(),selectPoints:ST(),eventData:iG(),moduleType:"trace",name:"histogram",basePlotModule:ph(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Sxe=ye((eur,Axe)=>{"use strict";Axe.exports=Txe()});var y8=ye((tur,Exe)=>{"use strict";var Vg=v8(),Mxe=QV(),m8=CT(),Mxt=Gl(),nG=df().axisHoverFormat,Ext=Qo().hovertemplateAttrs,Cxt=Qo().texttemplateAttrs,kxt=Tu(),E4=Ao().extendFlat;Exe.exports=E4({x:Vg.x,y:Vg.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Vg.histnorm,histfunc:Vg.histfunc,nbinsx:Vg.nbinsx,xbins:Mxe("x"),nbinsy:Vg.nbinsy,ybins:Mxe("y"),autobinx:Vg.autobinx,autobiny:Vg.autobiny,bingroup:E4({},Vg.bingroup,{}),xbingroup:E4({},Vg.bingroup,{}),ybingroup:E4({},Vg.bingroup,{}),xgap:m8.xgap,ygap:m8.ygap,zsmooth:m8.zsmooth,xhoverformat:nG("x"),yhoverformat:nG("y"),zhoverformat:nG("z",1),hovertemplate:Ext({},{keys:"z"}),texttemplate:Cxt({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:m8.textfont,showlegend:E4({},Mxt.showlegend,{dflt:!1})},kxt("",{cLetter:"z",autoColorDflt:!1}))});var aG=ye((rur,kxe)=>{"use strict";var Lxt=qa(),Cxe=Dr();kxe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Cxe.minRowLength(a),l=Cxe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=Lxt.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y"],i);var c=n("z")||n("marker.color");c&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}});var Pxe=ye((iur,Lxe)=>{"use strict";var Pxt=Dr(),Ixt=aG(),Rxt=BV(),Dxt=Jh(),Fxt=T4(),zxt=y8();Lxe.exports=function(t,r,n,i){function a(o,s){return Pxt.coerce(t,r,zxt,o,s)}Ixt(t,r,a,i),r.visible!==!1&&(Rxt(t,r,a,i),Dxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),Fxt(a,i),a("xhoverformat"),a("yhoverformat"))}});var Dxe=ye((nur,Rxe)=>{"use strict";var Oxt=d8(),Ixe=ho().hoverLabelText;Rxe.exports=function(t,r,n,i,a){var o=Oxt(t,r,n,i,a);if(o){t=o[0];var s=t.index,l=s[0],u=s[1],c=t.cd[0],f=c.trace,h=c.xRanges[u],d=c.yRanges[l];return t.xLabel=Ixe(t.xa,[h[0],h[1]],f.xhoverformat),t.yLabel=Ixe(t.ya,[d[0],d[1]],f.yhoverformat),o}}});var zxe=ye((aur,Fxe)=>{"use strict";Fxe.exports={attributes:y8(),supplyDefaults:Pxe(),crossTraceDefaults:g8(),calc:s8(),plot:c8(),layerName:"heatmaplayer",colorbar:S_(),style:f8(),hoverPoints:Dxe(),eventData:iG(),moduleType:"trace",name:"histogram2d",basePlotModule:ph(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var qxe=ye((our,Oxe)=>{"use strict";Oxe.exports=zxe()});var _8=ye((sur,Bxe)=>{"use strict";Bxe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var C4=ye((lur,Gxe)=>{"use strict";var ed=CT(),x8=pf(),Uxe=df(),oG=Uxe.axisHoverFormat,qxt=Uxe.descriptionOnlyNumbers,Bxt=Tu(),Nxt=Pd().dash,Uxt=ec(),RT=Ao().extendFlat,Vxe=_8(),Vxt=Vxe.COMPARISON_OPS2,Gxt=Vxe.INTERVAL_OPS,Nxe=x8.line;Gxe.exports=RT({z:ed.z,x:ed.x,x0:ed.x0,dx:ed.dx,y:ed.y,y0:ed.y0,dy:ed.dy,xperiod:ed.xperiod,yperiod:ed.yperiod,xperiod0:x8.xperiod0,yperiod0:x8.yperiod0,xperiodalignment:ed.xperiodalignment,yperiodalignment:ed.yperiodalignment,text:ed.text,hovertext:ed.hovertext,transpose:ed.transpose,xtype:ed.xtype,ytype:ed.ytype,xhoverformat:oG("x"),yhoverformat:oG("y"),zhoverformat:oG("z",1),hovertemplate:ed.hovertemplate,texttemplate:RT({},ed.texttemplate,{}),textfont:RT({},ed.textfont,{}),hoverongaps:ed.hoverongaps,connectgaps:RT({},ed.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:Uxt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:qxt("contour label")},operation:{valType:"enumerated",values:[].concat(Vxt).concat(Gxt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:RT({},Nxe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:Nxt,smoothing:RT({},Nxe.smoothing,{}),editType:"plot"},zorder:x8.zorder},Bxt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var lG=ye((uur,jxe)=>{"use strict";var Hv=y8(),Oy=C4(),Hxt=Tu(),sG=df().axisHoverFormat,Hxe=Ao().extendFlat;jxe.exports=Hxe({x:Hv.x,y:Hv.y,z:Hv.z,marker:Hv.marker,histnorm:Hv.histnorm,histfunc:Hv.histfunc,nbinsx:Hv.nbinsx,xbins:Hv.xbins,nbinsy:Hv.nbinsy,ybins:Hv.ybins,autobinx:Hv.autobinx,autobiny:Hv.autobiny,bingroup:Hv.bingroup,xbingroup:Hv.xbingroup,ybingroup:Hv.ybingroup,autocontour:Oy.autocontour,ncontours:Oy.ncontours,contours:Oy.contours,line:{color:Oy.line.color,width:Hxe({},Oy.line.width,{dflt:.5}),dash:Oy.line.dash,smoothing:Oy.line.smoothing,editType:"plot"},xhoverformat:sG("x"),yhoverformat:sG("y"),zhoverformat:sG("z",1),hovertemplate:Hv.hovertemplate,texttemplate:Oy.texttemplate,textfont:Oy.textfont},Hxt("",{cLetter:"z",editTypeOverride:"calc"}))});var b8=ye((cur,Wxe)=>{"use strict";Wxe.exports=function(t,r,n,i){var a=i("contours.start"),o=i("contours.end"),s=a===!1||o===!1,l=n("contours.size"),u;s?u=r.autocontour=!0:u=n("autocontour",!1),(u||!l)&&n("ncontours")}});var uG=ye((fur,Xxe)=>{"use strict";var jxt=Dr();Xxe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;jxt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var w8=ye((hur,Zxe)=>{"use strict";var Wxt=Jh(),Xxt=uG();Zxe.exports=function(t,r,n,i,a){var o=n("contours.coloring"),s,l="";o==="fill"&&(s=n("contours.showlines")),s!==!1&&(o!=="lines"&&(l=n("line.color","#000")),n("line.width",.5),n("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,Wxt(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),Xxt(n,i,l,a)}});var $xe=ye((dur,Jxe)=>{"use strict";var Yxe=Dr(),Zxt=aG(),Yxt=b8(),Kxt=w8(),Jxt=T4(),Kxe=lG();Jxe.exports=function(t,r,n,i){function a(s,l){return Yxe.coerce(t,r,Kxe,s,l)}function o(s){return Yxe.coerce2(t,r,Kxe,s)}Zxt(t,r,a,i),r.visible!==!1&&(Yxt(t,r,a,o),Kxt(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),r.contours&&r.contours.coloring==="heatmap"&&Jxt(a,i))}});var hG=ye((vur,ebe)=>{"use strict";var fG=ho(),cG=Dr();ebe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=cG.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=cG.aggNums(Math.max,null,r));var o=Qxe(i,a,t.ncontours);n.size=o.dtick,n.start=fG.tickFirst(o),o.range.reverse(),n.end=fG.tickFirst(o),n.start===i&&(n.start+=n.size),n.end===a&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),t._input.contours||(t._input.contours={}),cG.extendFlat(t._input.contours,{start:n.start,end:n.end,size:n.size}),t._input.autocontour=!0}else if(n.type!=="constraint"){var s=n.start,l=n.end,u=t._input.contours;if(s>l&&(n.start=u.start=l,l=n.end=u.end=s,s=n.start),!(n.size>0)){var c;s===l?c=1:c=Qxe(s,l,t.ncontours).dtick,u.size=n.size=c}}};function Qxe(e,t,r){var n={type:"linear",range:[e,t]};return fG.autoTicks(n,(t-e)/(r||15)),n}});var k4=ye((pur,tbe)=>{"use strict";tbe.exports=function(t){return t.end+t.size/1e6}});var dG=ye((gur,ibe)=>{"use strict";var rbe=tc(),$xt=s8(),Qxt=hG(),ebt=k4();ibe.exports=function(t,r){var n=$xt(t,r),i=n[0].z;Qxt(r,i);var a=r.contours,o=rbe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=ebt(a),c=a.size||1,f=Math.floor((u-l)/c)+1;isFinite(c)||(c=1,f=1);var h=l-c/2,d=h+f*c;s=[h,d]}else s=i;return rbe.calc(t,r,{vals:s,cLetter:"z"}),n}});var L4=ye((mur,nbe)=>{"use strict";nbe.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var vG=ye((yur,abe)=>{"use strict";var T8=L4();abe.exports=function(t){var r=t[0].z,n=r.length,i=r[0].length,a=n===2||i===2,o,s,l,u,c,f,h,d,v;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var n=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>n?r===5?713:1114:r===5?104:208}return r===15?0:r}});var pG=ye((_ur,lbe)=>{"use strict";var A8=Dr(),DT=L4();lbe.exports=function(t,r,n){var i,a,o,s,l;for(r=r||.01,n=n||.01,o=0;o20?(o=DT.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=DT.SADDLEREMAINDER[o]):delete e.crossings[a],s=DT.NEWDELTA[o],!s){A8.log("Found bad marching index:",o,t,e.level);break}l.push(sbe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),P4(l[l.length-1],l[l.length-2],n,i)&&l.pop();var v=s[0]&&(t[0]<0||t[0]>c-2)||s[1]&&(t[1]<0||t[1]>u-2),_=t[0]===f[0]&&t[1]===f[1]&&s[0]===h[0]&&s[1]===h[1];if(_||r&&v)break;o=e.crossings[a]}d===1e4&&A8.log("Infinite loop in contour?");var b=P4(l[0],l[l.length-1],n,i),p=0,C=.2*e.smoothing,E=[],A=0,L,x,k,M,g,P,T,z,O,V,G;for(d=1;d=A;d--)if(L=E[d],L=A&&L+E[x]z&&O--,e.edgepaths[O]=G.concat(l,V));break}j||(e.edgepaths[z]=l.concat(V))}for(z=0;z20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:DT.BOTTOMSTART.indexOf(e)!==-1?i=1:DT.LEFTSTART.indexOf(e)!==-1?n=1:DT.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function sbe(e,t,r){var n=t[0]+Math.max(r[0],0),i=t[1]+Math.max(r[1],0),a=e.z[i][n],o=e.xaxis,s=e.yaxis;if(r[1]){var l=(e.level-a)/(e.z[i][n+1]-a),u=(l!==1?(1-l)*o.c2l(e.x[n]):0)+(l!==0?l*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(u),!0),s.c2p(e.y[i],!0),n+l,i]}else{var c=(e.level-a)/(e.z[i+1][n]-a),f=(c!==1?(1-c)*s.c2l(e.y[i]):0)+(c!==0?c*s.c2l(e.y[i+1]):0);return[o.c2p(e.x[n],!0),s.c2p(s.l2c(f),!0),n,i+c]}}});var hbe=ye((xur,fbe)=>{"use strict";var gG=_8(),nbt=Eo();fbe.exports={"[]":ube("[]"),"][":ube("]["),">":mG(">"),"<":mG("<"),"=":mG("=")};function cbe(e,t){var r=Array.isArray(t),n;function i(a){return nbt(a)?+a:null}return gG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):gG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:gG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function ube(e){return function(t){t=cbe(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function mG(e){return function(t){return t=cbe(e,t),{start:t,end:1/0,size:1/0}}}});var yG=ye((bur,vbe)=>{"use strict";var dbe=Dr(),abt=hbe(),obt=k4();vbe.exports=function(t,r,n){for(var i=t.type==="constraint"?abt[t._operation](t.value):t,a=i.size,o=[],s=obt(i),l=n.trace._carpetTrace,u=l?{xaxis:l.aaxis,yaxis:l.baxis,x:n.a,y:n.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:n.x,y:n.y},c=i.start;c1e3){dbe.warn("Too many contours, clipping at 1000",t);break}return o}});var _G=ye((wur,gbe)=>{"use strict";var FT=Dr();gbe.exports=function(e,t){var r,n,i,a=function(l){return l.reverse()},o=function(l){return l};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&FT.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";mbe.exports=function(e,t){var r=e[0],n=r.z,i;switch(t.type){case"levels":var a=Math.min(n[0][0],n[0][1]);for(i=0;io.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,l=r.y.length,u=-1/0,c=1/0;for(i=0;i":f>u&&(r.prefixBoundary=!0);break;case"<":(fu||r.starts.length&&d===c)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(f[0],f[1]),d=Math.max(f[0],f[1]),hu&&(r.prefixBoundary=!0);break}break}}});var S8=ye(jv=>{"use strict";var R4=Oa(),zd=Dr(),qy=So(),sbt=tc(),xbe=ru(),ybe=ho(),_be=ym(),lbt=c8(),bbe=vG(),wbe=pG(),ubt=yG(),cbt=_G(),Tbe=xG(),I4=L4(),Rm=I4.LABELOPTIMIZER;jv.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;zd.makeTraceGroups(i,n,"contour").each(function(s){var l=R4.select(this),u=s[0],c=u.trace,f=u.x,h=u.y,d=c.contours,v=ubt(d,r,u),_=zd.ensureSingle(l,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),lbt(t,r,b,_),bbe(v),wbe(v);var p=a.c2p(f[0],!0),C=a.c2p(f[f.length-1],!0),E=o.c2p(h[0],!0),A=o.c2p(h[h.length-1],!0),L=[[p,A],[C,A],[C,E],[p,E]],x=v;d.type==="constraint"&&(x=cbt(v,d._operation)),fbt(l,L,d),hbt(l,x,L,d),dbt(l,v,t,u,d),pbt(l,r,t,u,L)})};function fbt(e,t,r){var n=zd.ensureSingle(e,"g","contourbg"),i=n.selectAll("path").data(r.coloring==="fill"?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function hbt(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&Tbe(t,n);var o=zd.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(l){var u=(l.prefixBoundary?a:"")+Abe(l,r);u?R4.select(this).attr("d",u).style("stroke","none"):R4.select(this).remove()})}function Abe(e,t){var r="",n=0,i=e.edgepaths.map(function(p,C){return C}),a=!0,o,s,l,u,c,f;function h(p){return Math.abs(p[1]-t[0][1])<.01}function d(p){return Math.abs(p[1]-t[2][1])<.01}function v(p){return Math.abs(p[0]-t[0][0])<.01}function _(p){return Math.abs(p[0]-t[2][0])<.01}for(;i.length;){for(f=qy.smoothopen(e.edgepaths[n],e.smoothing),r+=a?f:f.replace(/^M/,"L"),i.splice(i.indexOf(n),1),o=e.edgepaths[n][e.edgepaths[n].length-1],u=-1,l=0;l<4;l++){if(!o){zd.log("Missing end?",n,e);break}for(h(o)&&!_(o)?s=t[1]:v(o)?s=t[0]:d(o)?s=t[3]:_(o)&&(s=t[2]),c=0;c=0&&(s=b,u=c):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-b[1])<.01&&(b[0]-o[0])*(s[0]-b[0])>=0&&(s=b,u=c):zd.log("endpt to newendpt is not vert. or horz.",o,s,b)}if(o=s,u>=0)break;r+="L"+s}if(u===e.edgepaths.length){zd.log("unclosed perimeter path");break}n=u,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nRm.MAXCOST*2)break;h&&(s/=2),o=u-s/2,l=o+s*1.5}if(f<=Rm.MAXCOST)return c};function vbt(e,t,r,n){var i=t.width/2,a=t.height/2,o=e.x,s=e.y,l=e.theta,u=Math.cos(l)*i,c=Math.sin(l)*i,f=(o>n.center?n.right-o:o-n.left)/(u+Math.abs(Math.sin(l)*a)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(c)+Math.cos(l)*a);if(f<1||h<1)return 1/0;var d=Rm.EDGECOST*(1/(f-1)+1/(h-1));d+=Rm.ANGLECOST*l*l;for(var v=o-u,_=s-c,b=o+u,p=s+c,C=0;C{"use strict";var mbt=Oa(),bG=tc(),ybt=k4();Sbe.exports=function(t){var r=t.contours,n=r.start,i=ybt(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,l=bG.extractOpts(t);isFinite(a)||(a=1,o=1);var u=l.reversescale?bG.flipScale(l.colorscale):l.colorscale,c=u.length,f=new Array(c),h=new Array(c),d,v,_=l.min,b=l.max;if(r.coloring==="heatmap"){for(v=0;v=b)&&(n<=_&&(n=_),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),v=0;v_&&(f.unshift(_),h.unshift(h[0])),f[f.length-1]{"use strict";var M8=Oa(),Mbe=So(),_bt=f8(),xbt=wG();Ebe.exports=function(t){var r=M8.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=M8.select(this),a=n[0].trace,o=a.contours,s=a.line,l=o.size||1,u=o.start,c=o.type==="constraint",f=!c&&o.coloring==="lines",h=!c&&o.coloring==="fill",d=f||h?xbt(a):null;i.selectAll("g.contourlevel").each(function(b){M8.select(this).selectAll("path").call(Mbe.lineGroupStyle,s.width,f?d(b.level):s.color,s.dash)});var v=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Mbe.font(M8.select(this),{weight:v.weight,style:v.style,variant:v.variant,textcase:v.textcase,lineposition:v.lineposition,shadow:v.shadow,family:v.family,size:v.size,color:v.color||(f?d(b.level):s.color)})}),c)i.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var _;i.selectAll("g.contourfill path").style("fill",function(b){return _===void 0&&(_=b.level),d(b.level+.5*l)}),_===void 0&&(_=u),i.selectAll("g.contourbg path").style("fill",d(_-.5*l))}}),_bt(t)}});var C8=ye((Eur,kbe)=>{"use strict";var Cbe=tc(),bbt=wG(),wbt=k4();function Tbt(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=bbt(t,{isColorbar:!0});if(o==="heatmap"){var l=Cbe.extractOpts(t);r._fillgradient=l.reversescale?Cbe.flipScale(l.colorscale):l.colorscale,r._zrange=[l.min,l.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:i.color,width:n.showlines!==!1?i.width:0,dash:i.dash},r._levels={start:n.start,end:wbt(n),size:a}}kbe.exports={min:"zmin",max:"zmax",calc:Tbt}});var TG=ye((Cur,Lbe)=>{"use strict";var k8=Ca(),Abt=d8();Lbe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=Abt(t,r,n,i,a);return o&&o.forEach(function(s){var l=s.trace;l.contours.type==="constraint"&&(l.fillcolor&&k8.opacity(l.fillcolor)?s.color=k8.addOpacity(l.fillcolor,1):l.contours.showlines&&k8.opacity(l.line.color)&&(s.color=k8.addOpacity(l.line.color,1)))}),o}});var Ibe=ye((kur,Pbe)=>{"use strict";Pbe.exports={attributes:lG(),supplyDefaults:$xe(),crossTraceDefaults:g8(),calc:dG(),plot:S8().plot,layerName:"contourlayer",style:E8(),colorbar:C8(),hoverPoints:TG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:ph(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Dbe=ye((Lur,Rbe)=>{"use strict";Rbe.exports=Ibe()});var AG=ye((Pur,Nbe)=>{"use strict";var Fbe=Eo(),Sbt=uG(),qbe=Ca(),zbe=qbe.addOpacity,Mbt=qbe.opacity,Bbe=_8(),Obe=Dr().isArrayOrTypedArray,Ebt=Bbe.CONSTRAINT_REDUCTION,Cbt=Bbe.COMPARISON_OPS2;Nbe.exports=function(t,r,n,i,a,o){var s=r.contours,l,u,c,f=n("contours.operation");if(s._operation=Ebt[f],kbt(n,s),f==="="?l=s.showlines=!0:(l=n("contours.showlines"),c=n("fillcolor",zbe((t.line||{}).color||a,.5))),l){var h=c&&Mbt(c)?zbe(r.fillcolor,1):a;u=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),Sbt(n,i,u,o)};function kbt(e,t){var r;Cbt.indexOf(t.operation)===-1?(e("contours.value",[0,1]),Obe(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:Fbe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),Fbe(t.value)||(Obe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var Gbe=ye((Iur,Vbe)=>{"use strict";var SG=Dr(),Lbt=JI(),Pbt=Pg(),Ibt=AG(),Rbt=b8(),Dbt=w8(),Fbt=T4(),Ube=C4();Vbe.exports=function(t,r,n,i){function a(u,c){return SG.coerce(t,r,Ube,u,c)}function o(u){return SG.coerce2(t,r,Ube,u)}var s=Lbt(t,r,a,i);if(!s){r.visible=!1;return}Pbt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate");var l=a("contours.type")==="constraint";a("connectgaps",SG.isArray1D(r.z)),l?Ibt(t,r,a,i,n):(Rbt(t,r,a,o),Dbt(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&Fbt(a,i),a("zorder")}});var jbe=ye((Rur,Hbe)=>{"use strict";Hbe.exports={attributes:C4(),supplyDefaults:Gbe(),calc:dG(),plot:S8().plot,style:E8(),colorbar:C8(),hoverPoints:TG(),moduleType:"trace",name:"contour",basePlotModule:ph(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var Xbe=ye((Dur,Wbe)=>{"use strict";Wbe.exports=jbe()});var MG=ye((Fur,Ybe)=>{"use strict";var zbt=Qo().hovertemplateAttrs,Obt=Qo().texttemplateAttrs,qbt=Cg(),a0=pf(),Bbt=Gl(),Zbe=Tu(),Nbt=Pd().dash,M_=Ao().extendFlat,W0=a0.marker,D4=a0.line,Ubt=W0.line;Ybe.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:M_({},a0.mode,{dflt:"markers"}),text:M_({},a0.text,{}),texttemplate:Obt({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:M_({},a0.hovertext,{}),line:{color:D4.color,width:D4.width,dash:Nbt,backoff:D4.backoff,shape:M_({},D4.shape,{values:["linear","spline"]}),smoothing:D4.smoothing,editType:"calc"},connectgaps:a0.connectgaps,cliponaxis:a0.cliponaxis,fill:M_({},a0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:qbt(),marker:M_({symbol:W0.symbol,opacity:W0.opacity,angle:W0.angle,angleref:W0.angleref,standoff:W0.standoff,maxdisplayed:W0.maxdisplayed,size:W0.size,sizeref:W0.sizeref,sizemin:W0.sizemin,sizemode:W0.sizemode,line:M_({width:Ubt.width,editType:"calc"},Zbe("marker.line")),gradient:W0.gradient,editType:"calc"},Zbe("marker")),textfont:a0.textfont,textposition:a0.textposition,selected:a0.selected,unselected:a0.unselected,hoverinfo:M_({},Bbt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:a0.hoveron,hovertemplate:zbt()}});var Qbe=ye((zur,$be)=>{"use strict";var Kbe=Dr(),Vbt=Sm(),zT=Ru(),Gbt=$p(),Hbt=D0(),Jbe=$3(),jbt=F0(),Wbt=Ig(),Xbt=MG();$be.exports=function(t,r,n,i){function a(h,d){return Kbe.coerce(t,r,Xbt,h,d)}var o=a("a"),s=a("b"),l=a("c"),u;if(o?(u=o.length,s?(u=Math.min(u,s.length),l&&(u=Math.min(u,l.length))):l?u=Math.min(u,l.length):u=0):s&&l&&(u=Math.min(s.length,l.length)),!u){r.visible=!1;return}r._length=u,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&a("hovertemplate");var c=u{"use strict";var EG=ho();e2e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=EG.tickText(a.aaxis,t.a,!0).text,i.bLabel=EG.tickText(a.baxis,t.b,!0).text,i.cLabel=EG.tickText(a.caxis,t.c,!0).text,i}});var a2e=ye((qur,n2e)=>{"use strict";var CG=Eo(),Zbt=z0(),Ybt=Cm(),Kbt=O0(),Jbt=q0().calcMarkerSize,r2e=["a","b","c"],i2e={a:["b","c"],b:["a","c"],c:["a","b"]};n2e.exports=function(t,r){var n=t._fullLayout[r.subplot],i=n.sum,a=r.sum||i,o={a:r.a,b:r.b,c:r.c},s=r.ids,l,u,c,f,h,d;for(l=0;l{"use strict";var $bt=nT();o2e.exports=function(t,r,n){var i=r.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},l=r.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var Qbt=lT();l2e.exports=function(t,r,n,i){var a=Qbt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index],h=o.trace,d=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var v={};v[h.subplot]={_subplot:d};var _=h._module.formatLabels(f,h,v);o.aLabel=_.aLabel,o.bLabel=_.bLabel,o.cLabel=_.cLabel;var b=f.hi||h.hoverinfo,p=[];function C(A,L){p.push(A._hovertitle+": "+L)}if(!h.hovertemplate){var E=b.split("+");E.indexOf("all")!==-1&&(E=["a","b","c"]),E.indexOf("a")!==-1&&C(d.aaxis,o.aLabel),E.indexOf("b")!==-1&&C(d.baxis,o.bLabel),E.indexOf("c")!==-1&&C(d.caxis,o.cLabel)}return o.extraText=p.join("
"),o.hovertemplate=h.hovertemplate,a}});var f2e=ye((Uur,c2e)=>{"use strict";c2e.exports=function(t,r,n,i,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i[a]){var o=i[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var w2e=ye((Vur,b2e)=>{"use strict";var m2e=Oa(),e2t=cd(),kG=qa(),By=Dr(),Dm=By.strTranslate,L8=By._,qT=Ca(),P8=So(),F4=ym(),LG=Ao().extendFlat,t2t=Mc(),E_=ho(),h2e=yv(),d2e=vf(),y2e=Mg(),v2e=y2e.freeMode,r2t=y2e.rectMode,PG=Mb(),i2t=zf().prepSelect,n2t=zf().selectOnClick,a2t=zf().clearOutline,o2t=zf().clearSelectionsCache,_2e=hd();function x2e(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}b2e.exports=x2e;var Fm=x2e.prototype;Fm.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Fm.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;aOT*u?(p=u,b=p*OT):(b=l,p=b/OT),C=o*b/l,E=s*p/u,v=t.l+t.w*i-b/2,_=t.t+t.h*(1-a)-p/2,r.x0=v,r.y0=_,r.w=b,r.h=p,r.sum=c,r.xaxis={type:"linear",range:[f+2*d-c,c-f-2*h],domain:[i-C/2,i+C/2],_id:"x"},F4(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(V){return V.a>=r.aaxis.range[0]&&V.a<=r.aaxis.range[1]&&V.b>=r.baxis.range[1]&&V.b<=r.baxis.range[0]&&V.c>=r.caxis.range[1]&&V.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[f,c-h-d],domain:[a-E/2,a+E/2],_id:"y"},F4(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var A=r.yaxis.domain[0],L=r.aaxis=LG({},e.aaxis,{range:[f,c-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[A,A+E*OT],anchor:"free",position:0,_id:"y",_length:b});F4(L,r.graphDiv._fullLayout),L.setScale();var x=r.baxis=LG({},e.baxis,{range:[c-f-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});F4(x,r.graphDiv._fullLayout),x.setScale();var k=r.caxis=LG({},e.caxis,{range:[c-f-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[A,A+E*OT],anchor:"free",position:0,_id:"y",_length:b});F4(k,r.graphDiv._fullLayout),k.setScale();var M="M"+v+","+(_+p)+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDef.select("path").attr("d",M),r.layers.plotbg.select("path").attr("d",M);var g="M0,"+p+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDefRelative.select("path").attr("d",g);var P=Dm(v,_);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var T=Dm(v-x._offset,_+p);r.layers.baxis.attr("transform",T),r.layers.bgrid.attr("transform",T);var z=Dm(v+b/2,_)+"rotate(30)"+Dm(0,-L._offset);r.layers.aaxis.attr("transform",z),r.layers.agrid.attr("transform",z);var O=Dm(v+b/2,_)+"rotate(-30)"+Dm(0,-k._offset);r.layers.caxis.attr("transform",O),r.layers.cgrid.attr("transform",O),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+v+","+(_+p)+"l"+b/2+",-"+p:"M0,0").call(qT.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+v+","+(_+p)+"h"+b:"M0,0").call(qT.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",k.showline?"M"+(v+b/2)+","+_+"l"+b/2+","+p:"M0,0").call(qT.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),P8.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Fm.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.substr(7)+"title",i=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var l=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;i["a-title"]=PG.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title.text",placeholder:L8(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-l,"text-anchor":"middle"}}),i["b-title"]=PG.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title.text",placeholder:L8(r,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),i["c-title"]=PG.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title.text",placeholder:L8(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+s.title.font.size*.83+u,"text-anchor":"middle"}})}};Fm.drawAx=function(e){var t=this,r=t.graphDiv,n=e._name,i=n.charAt(0),a=e._id,o=t.layers[n],s=30,l=i+"tickLayout",u=s2t(e);t[l]!==u&&(o.selectAll("."+a+"tick").remove(),t[l]=u),e.setScale();var c=E_.calcTicks(e),f=E_.clipEnds(e,c),h=E_.makeTransTickFn(e),d=E_.getTickSigns(e)[2],v=By.deg2rad(s),_=d*(e.linewidth||1)/2,b=d*e.ticklen,p=t.w,C=t.h,E=i==="b"?"M0,"+_+"l"+Math.sin(v)*b+","+Math.cos(v)*b:"M"+_+",0l"+Math.cos(v)*b+","+-Math.sin(v)*b,A={a:"M0,0l"+C+",-"+p/2,b:"M0,0l-"+p/2+",-"+C,c:"M0,0l-"+C+","+p/2}[i];E_.drawTicks(r,e,{vals:e.ticks==="inside"?f:c,layer:o,path:E,transFn:h,crisp:!1}),E_.drawGrid(r,e,{vals:f,layer:t.layers[i+"grid"],path:A,transFn:h,crisp:!1}),E_.drawLabels(r,e,{vals:c,layer:o,transFn:h,labelFns:E_.makeLabelFns(e,0,s)})};function s2t(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var yd=_2e.MINZOOM/2+.87,l2t="m-0.87,.5h"+yd+"v3h-"+(yd+5.2)+"l"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l2.6,1.5l-"+yd/2+","+yd*.87+"Z",u2t="m0.87,.5h-"+yd+"v3h"+(yd+5.2)+"l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-2.6,1.5l"+yd/2+","+yd*.87+"Z",c2t="m0,1l"+yd/2+","+yd*.87+"l2.6,-1.5l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-"+(yd/2+2.6)+","+(yd*.87+4.5)+"l2.6,1.5l"+yd/2+",-"+yd*.87+"Z",f2t="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",p2e=!0;Fm.clearOutline=function(){o2t(this.dragOptions),a2t(this.dragOptions.gd)};Fm.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,n=r._fullLayout._zoomlayer,i,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(T,z,O){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],i=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var V=e.dragOptions.dragmode=r._fullLayout.dragmode;v2e(V)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,V==="zoom"?(e.dragOptions.moveFn=x,e.dragOptions.clickFn=p,e.dragOptions.doneFn=k,C(T,z,O)):V==="pan"?(e.dragOptions.moveFn=g,e.dragOptions.clickFn=p,e.dragOptions.doneFn=P,M(),e.clearOutline(r)):(r2t(V)||v2e(V))&&i2t(T,z,O,e.dragOptions,V)}};var o,s,l,u,c,f,h,d,v,_;function b(T){var z={};return z[e.id+".aaxis.min"]=T.a,z[e.id+".baxis.min"]=T.b,z[e.id+".caxis.min"]=T.c,z}function p(T,z){var O=r._fullLayout.clickmode;g2e(r),T===2&&(r.emit("plotly_doubleclick",null),kG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),O.indexOf("select")>-1&&T===1&&n2t(z,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),O.indexOf("event")>-1&&d2e.click(r,z,e.id)}function C(T,z,O){var V=t.getBoundingClientRect();o=z-V.left,s=O-V.top,r._fullLayout._calcInverseTransform(r);var G=r._fullLayout._invTransform,Z=By.apply3DTransform(G)(o,s);o=Z[0],s=Z[1],l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l,u=e.aaxis.range[1]-l.a,f=e2t(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,v=n.append("path").attr("class","zoombox").attr("transform",Dm(e.x0,e.y0)).style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),_=n.append("path").attr("class","zoombox-corners").attr("transform",Dm(e.x0,e.y0)).style({fill:qT.background,stroke:qT.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function E(T,z){return 1-z/e.h}function A(T,z){return 1-(T+(e.h-z)/Math.sqrt(3))/e.w}function L(T,z){return(T-(e.h-z)/Math.sqrt(3))/e.w}function x(T,z){var O=o+T*i,V=s+z*a,G=Math.max(0,Math.min(1,E(o,s),E(O,V))),Z=Math.max(0,Math.min(1,A(o,s),A(O,V))),H=Math.max(0,Math.min(1,L(o,s),L(O,V))),N=(G/2+H)*e.w,j=(1-G/2-Z)*e.w,re=(N+j)/2,oe=j-N,_e=(1-G)*e.h,Me=_e-oe/OT;oe<_2e.MINZOOM?(c=l,v.attr("d",h),_.attr("d","M0,0Z")):(c={a:l.a+G*u,b:l.b+Z*u,c:l.c+H*u},v.attr("d",h+"M"+N+","+_e+"H"+j+"L"+re+","+Me+"L"+N+","+_e+"Z"),_.attr("d","M"+o+","+s+f2t+"M"+N+","+_e+l2t+"M"+j+","+_e+u2t+"M"+re+","+Me+c2t)),d||(v.transition().style("fill",f>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),_.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(c))}function k(){g2e(r),c!==l&&(kG.call("_guiRelayout",r,b(c)),p2e&&r.data&&r._context.showTips&&(By.notifier(L8(r,"Double-click to zoom back out"),"long"),p2e=!1))}function M(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l}function g(T,z){var O=T/e.xaxis._m,V=z/e.yaxis._m;c={a:l.a-V,b:l.b+(O+V)/2,c:l.c-(O-V)/2};var G=[c.a,c.b,c.c].sort(By.sorterAsc),Z={a:G.indexOf(c.a),b:G.indexOf(c.b),c:G.indexOf(c.c)};G[0]<0&&(G[1]+G[0]/2<0?(G[2]+=G[0]+G[1],G[0]=G[1]=0):(G[2]+=G[0]/2,G[1]+=G[0]/2,G[0]=0),c={a:G[Z.a],b:G[Z.b],c:G[Z.c]},z=(l.a-c.a)*e.yaxis._m,T=(l.c-c.c-l.b+c.b)*e.xaxis._m);var H=Dm(e.x0+T,e.y0+z);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",H);var N=Dm(-T,-z);e.clipDefRelative.select("path").attr("transform",N),e.aaxis.range=[c.a,e.sum-c.b-c.c],e.baxis.range=[e.sum-c.a-c.c,c.b],e.caxis.range=[e.sum-c.a-c.b,c.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(P8.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(c))}function P(){kG.call("_guiRelayout",r,b(c))}t.onmousemove=function(T){d2e.hover(r,T,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(T){r._dragging||h2e.unhover(r,T)},h2e.init(this.dragOptions)};function g2e(e){m2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var DG=ye((Gur,T2e)=>{"use strict";var h2t=Ch(),d2t=kc().attributes,su=Rd(),v2t=mc().overrideAll,IG=Ao().extendFlat,RG={title:{text:su.title.text,font:su.title.font},color:su.color,tickmode:su.minor.tickmode,nticks:IG({},su.nticks,{dflt:6,min:1}),tick0:su.tick0,dtick:su.dtick,tickvals:su.tickvals,ticktext:su.ticktext,ticks:su.ticks,ticklen:su.ticklen,tickwidth:su.tickwidth,tickcolor:su.tickcolor,ticklabelstep:su.ticklabelstep,showticklabels:su.showticklabels,labelalias:su.labelalias,showtickprefix:su.showtickprefix,tickprefix:su.tickprefix,showticksuffix:su.showticksuffix,ticksuffix:su.ticksuffix,showexponent:su.showexponent,exponentformat:su.exponentformat,minexponent:su.minexponent,separatethousands:su.separatethousands,tickfont:su.tickfont,tickangle:su.tickangle,tickformat:su.tickformat,tickformatstops:su.tickformatstops,hoverformat:su.hoverformat,showline:IG({},su.showline,{dflt:!0}),linecolor:su.linecolor,linewidth:su.linewidth,showgrid:IG({},su.showgrid,{dflt:!0}),gridcolor:su.gridcolor,gridwidth:su.gridwidth,griddash:su.griddash,layer:su.layer,min:{valType:"number",dflt:0,min:0}},I8=T2e.exports=v2t({domain:d2t({name:"ternary"}),bgcolor:{valType:"color",dflt:h2t.background},sum:{valType:"number",dflt:1,min:0},aaxis:RG,baxis:RG,caxis:RG},"plot","from-root");I8.uirevision={valType:"any",editType:"none"};I8.aaxis.uirevision=I8.baxis.uirevision=I8.caxis.uirevision={valType:"any",editType:"none"}});var C_=ye((Hur,A2e)=>{"use strict";var p2t=Dr(),g2t=pl(),m2t=kc().defaults;A2e.exports=function(t,r,n,i){var a=i.type,o=i.attributes,s=i.handleDefaults,l=i.partition||"x",u=r._subplots[a],c=u.length,f=c&&u[0].replace(/\d+$/,""),h,d;function v(C,E){return p2t.coerce(h,d,o,C,E)}for(var _=0;_{"use strict";var y2t=Ca(),_2t=pl(),R8=Dr(),x2t=C_(),b2t=e_(),w2t=t_(),T2t=T3(),A2t=xb(),S2t=e4(),M2e=DG(),S2e=["aaxis","baxis","caxis"];E2e.exports=function(t,r,n){x2t(t,r,n,{type:"ternary",attributes:M2e,handleDefaults:M2t,font:r.font,paper_bgcolor:r.paper_bgcolor})};function M2t(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=y2t.combine(i,n.paper_bgcolor);for(var o,s,l,u=0;u=a&&(c.min=0,f.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function E2t(e,t,r,n){var i=M2e[t._name];function a(d,v){return R8.coerce(e,t,i,d,v)}a("uirevision",n.uirevision),t.type="linear";var o=a("color"),s=o!==i.color.dflt?o:r.font.color,l=t._name,u=l.charAt(0).toUpperCase(),c="Component "+u,f=a("title.text",c);t._hovertitle=f===c?f:u,R8.coerceFont(a,"title.font",r.font,{overrideDflt:{size:R8.bigFont(r.font.size),color:s}}),a("min"),A2t(e,t,a,"linear"),w2t(e,t,a,"linear"),b2t(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),T2t(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(R8.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),S2t(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var k2e=ye(X0=>{"use strict";var C2t=w2e(),k2t=Id().getSubplotCalcData,L2t=Dr().counterRegex,BT="ternary";X0.name=BT;var P2t=X0.attr="subplot";X0.idRoot=BT;X0.idRegex=X0.attrRegex=L2t(BT);var I2t=X0.attributes={};I2t[P2t]={valType:"subplotid",dflt:"ternary",editType:"calc"};X0.layoutAttributes=DG();X0.supplyLayoutDefaults=C2e();X0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[BT],a=0;a{"use strict";L2e.exports={attributes:MG(),supplyDefaults:Qbe(),colorbar:$d(),formatLabels:t2e(),calc:a2e(),plot:s2e(),style:op().style,styleOnSelect:op().styleOnSelect,hoverPoints:u2e(),selectPoints:uT(),eventData:f2e(),moduleType:"trace",name:"scatterternary",basePlotModule:k2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var R2e=ye((Zur,I2e)=>{"use strict";I2e.exports=P2e()});var FG=ye((Yur,F2e)=>{"use strict";var td=_4(),NT=Ao().extendFlat,D2e=df().axisHoverFormat;F2e.exports={y:td.y,x:td.x,x0:td.x0,y0:td.y0,xhoverformat:D2e("x"),yhoverformat:D2e("y"),name:NT({},td.name,{}),orientation:NT({},td.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:td.fillcolor,points:NT({},td.boxpoints,{}),jitter:NT({},td.jitter,{}),pointpos:NT({},td.pointpos,{}),width:NT({},td.width,{}),marker:td.marker,text:td.text,hovertext:td.hovertext,hovertemplate:td.hovertemplate,quartilemethod:td.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:td.offsetgroup,alignmentgroup:td.alignmentgroup,selected:td.selected,unselected:td.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:td.zorder}});var qG=ye((Kur,z2e)=>{"use strict";var zG=x4(),OG=Dr().extendFlat;z2e.exports={violinmode:OG({},zG.boxmode,{}),violingap:OG({},zG.boxgap,{}),violingroupgap:OG({},zG.boxgroupgap,{})}});var U2e=ye((Jur,N2e)=>{"use strict";var O2e=Dr(),R2t=Ca(),q2e=w4(),B2e=FG();N2e.exports=function(t,r,n,i){function a(L,x){return O2e.coerce(t,r,B2e,L,x)}function o(L,x){return O2e.coerce2(t,r,B2e,L,x)}if(q2e.handleSampleDefaults(t,r,a,i),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var l=a("span"),u;Array.isArray(l)&&(u="manual"),a("spanmode",u);var c=a("line.color",(t.marker||{}).color||n),f=a("line.width"),h=a("fillcolor",R2t.addOpacity(r.line.color,.5));q2e.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),v=o("box.fillcolor",h),_=o("box.line.color",c),b=o("box.line.width",f),p=a("box.visible",!!(d||v||_||b));p||(r.box={visible:!1});var C=o("meanline.color",c),E=o("meanline.width",f),A=a("meanline.visible",!!(C||E));A||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var G2e=ye(($ur,V2e)=>{"use strict";var D2t=Dr(),F2t=qG(),z2t=jI();V2e.exports=function(t,r,n){function i(a,o){return D2t.coerce(t,r,F2t,a,o)}z2t._supply(t,r,n,i,"violin")}});var D8=ye(o2=>{"use strict";var O2t=Dr(),q2t={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};o2.makeKDE=function(e,t,r){var n=r.length,i=q2t.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var l=0,u=0;u{"use strict";var BG=Dr(),NG=ho(),B2t=PV(),H2e=D8(),N2t=hs().BADNUM;j2e.exports=function(t,r){var n=B2t(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=NG.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,l=0,u=0,c=0;c{"use strict";var H2t=XI().setPositionOffset,X2e=["v","h"];Z2e.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var UG=Oa(),VG=Dr(),j2t=So(),GG=ZI(),W2t=gU(),X2t=D8();K2e.exports=function(t,r,n,i){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,l=r.yaxis;function u(c,f){var h=W2t(c,{xaxis:s,yaxis:l,trace:f,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return j2t.smoothopen(h[0],1)}VG.makeTraceGroups(i,n,"trace violins").each(function(c){var f=UG.select(this),h=c[0],d=h.t,v=h.trace;if(v.visible!==!0||d.empty){f.remove();return}var _=d.bPos,b=d.bdPos,p=r[d.valLetter+"axis"],C=r[d.posLetter+"axis"],E=v.side==="both",A=E||v.side==="positive",L=E||v.side==="negative",x=f.selectAll("path.violin").data(VG.identity);x.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),x.exit().remove(),x.each(function(V){var G=UG.select(this),Z=V.density,H=Z.length,N=C.c2l(V.pos+_,!0),j=C.l2p(N),re;if(v.width)re=d.maxKDE/b;else{var oe=o._violinScaleGroupStats[v.scalegroup];re=v.scalemode==="count"?oe.maxKDE/b*(oe.maxCount/V.pts.length):oe.maxKDE/b}var _e,Me,ke,me,ie,Se,Le;if(A){for(Se=new Array(H),me=0;me{"use strict";var $2e=Oa(),UT=Ca(),Z2t=op().stylePoints;Q2e.exports=function(t){var r=$2e.select(t).selectAll("g.trace.violins");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=n[0].trace,a=$2e.select(this),o=i.box||{},s=o.line||{},l=i.meanline||{},u=l.width;a.selectAll("path.violin").style("stroke-width",i.line.width+"px").call(UT.stroke,i.line.color).call(UT.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(UT.stroke,s.color).call(UT.fill,o.fillcolor);var c={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};a.selectAll("path.mean").style(c).call(UT.stroke,l.color),a.selectAll("path.meanline").style(c).call(UT.stroke,l.color),Z2t(a,i,t)})}});var nwe=ye((ncr,iwe)=>{"use strict";var Y2t=Ca(),HG=Dr(),K2t=ho(),twe=zV(),rwe=D8();iwe.exports=function(t,r,n,i,a){a||(a={});var o=a.hoverLayer,s=t.cd,l=s[0].trace,u=l.hoveron,c=u.indexOf("violins")!==-1,f=u.indexOf("kde")!==-1,h=[],d,v;if(c||f){var _=twe.hoverOnBoxes(t,r,n,i);if(f&&_.length>0){var b=t.xa,p=t.ya,C,E,A,L,x;l.orientation==="h"?(x=r,C="y",A=p,E="x",L=b):(x=n,C="x",A=b,E="y",L=p);var k=s[t.index];if(x>=k.span[0]&&x<=k.span[1]){var M=HG.extendFlat({},t),g=L.c2p(x,!0),P=rwe.getKdeValue(k,l,x),T=rwe.getPositionOnKdePath(k,l,g),z=A._offset,O=A._length;M[C+"0"]=T[0],M[C+"1"]=T[1],M[E+"0"]=M[E+"1"]=g,M[E+"Label"]=E+": "+K2t.hoverLabelText(L,x,l[E+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var V=0,G=0;G<_.length;G++)if(_[G].attr==="med"){V=G;break}M.spikeDistance=_[V].spikeDistance;var Z=C+"Spike";M[Z]=_[V][Z],_[V].spikeDistance=void 0,_[V][Z]=void 0,M.hovertemplate=!1,h.push(M),v={},v[C+"1"]=HG.constrain(z+T[0],z,z+O),v[C+"2"]=HG.constrain(z+T[1],z,z+O),v[E+"1"]=v[E+"2"]=L._offset+g}}c&&(h=h.concat(_))}u.indexOf("points")!==-1&&(d=twe.hoverOnPoints(t,r,n));var H=o.selectAll(".violinline-"+l.uid).data(v?[0]:[]);return H.enter().append("line").classed("violinline-"+l.uid,!0).attr("stroke-width",1.5),H.exit().remove(),H.attr(v).call(Y2t.stroke,t.color),i==="closest"?d?[d]:h:(d&&h.push(d),h)}});var owe=ye((acr,awe)=>{"use strict";awe.exports={attributes:FG(),layoutAttributes:qG(),supplyDefaults:U2e(),crossTraceDefaults:w4().crossTraceDefaults,supplyLayoutDefaults:G2e(),calc:W2e(),crossTraceCalc:Y2e(),plot:J2e(),style:ewe(),styleOnSelect:op().styleOnSelect,hoverPoints:nwe(),selectPoints:OV(),moduleType:"trace",name:"violin",basePlotModule:ph(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var lwe=ye((ocr,swe)=>{"use strict";swe.exports=owe()});var cwe=ye((scr,uwe)=>{"use strict";uwe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var WG=ye((lcr,dwe)=>{"use strict";var jc=Lm(),jG=pf().line,J2t=Gl(),fwe=df().axisHoverFormat,$2t=Qo().hovertemplateAttrs,Q2t=Qo().texttemplateAttrs,hwe=cwe(),Ny=Ao().extendFlat,ewt=Ca();dwe.exports={x:jc.x,x0:jc.x0,dx:jc.dx,y:jc.y,y0:jc.y0,dy:jc.dy,xperiod:jc.xperiod,yperiod:jc.yperiod,xperiod0:jc.xperiod0,yperiod0:jc.yperiod0,xperiodalignment:jc.xperiodalignment,yperiodalignment:jc.yperiodalignment,xhoverformat:fwe("x"),yhoverformat:fwe("y"),hovertext:jc.hovertext,hovertemplate:$2t({},{keys:hwe.eventDataKeys}),hoverinfo:Ny({},J2t.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:Q2t({editType:"plot"},{keys:hwe.eventDataKeys.concat(["label","value"])}),text:jc.text,textposition:jc.textposition,insidetextanchor:Ny({},jc.insidetextanchor,{dflt:"middle"}),textangle:Ny({},jc.textangle,{dflt:0}),textfont:jc.textfont,insidetextfont:jc.insidetextfont,outsidetextfont:jc.outsidetextfont,constraintext:jc.constraintext,cliponaxis:jc.cliponaxis,orientation:Ny({},jc.orientation,{}),offset:Ny({},jc.offset,{arrayOk:!1}),width:Ny({},jc.width,{arrayOk:!1}),marker:twt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Ny({},jG.color,{dflt:ewt.defaultLine}),width:Ny({},jG.width,{dflt:0,editType:"plot"}),dash:jG.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:jc.offsetgroup,alignmentgroup:jc.alignmentgroup,zorder:jc.zorder};function twt(){var e=Ny({},jc.marker);return delete e.pattern,delete e.cornerradius,e}});var XG=ye((ucr,vwe)=>{"use strict";vwe.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var YG=ye((ccr,gwe)=>{"use strict";var F8=Dr(),rwt=Gb(),iwt=r0().handleText,nwt=J3(),awt=Pg(),pwe=WG(),ZG=Ca();function owt(e,t,r,n){function i(f,h){return F8.coerce(e,t,pwe,f,h)}var a=nwt(e,t,n,i);if(!a){t.visible=!1;return}awt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("orientation",t.y&&!t.x?"v":"h"),i("offset"),i("width");var o=i("text");i("hovertext"),i("hovertemplate");var s=i("textposition");iwt(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",F8.isArrayOrTypedArray(o)?"text+value":"value");var l=i("marker.color",r);i("marker.line.color",ZG.defaultLine),i("marker.line.width");var u=i("connector.visible");if(u){i("connector.fillcolor",swt(l));var c=i("connector.line.width");c&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function swt(e){var t=F8.isArrayOrTypedArray(e)?"#000":e;return ZG.addOpacity(t,.5*ZG.opacity(t))}function lwt(e,t){var r,n;function i(o){return F8.coerce(n._input,n,pwe,o)}for(var a=0;a{"use strict";var uwt=Dr(),cwt=XG();mwe.exports=function(e,t,r){var n=!1;function i(s,l){return uwt.coerce(e,t,cwt,s,l)}for(var a=0;a{"use strict";var VT=Dr();_we.exports=function(t,r){for(var n=0;n{"use strict";var bwe=ho(),wwe=Rg(),fwt=xwe(),hwt=O0(),z4=hs().BADNUM;Twe.exports=function(t,r){var n=bwe.getFromId(t,r.xaxis||"x"),i=bwe.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f,h;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=wwe(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=wwe(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;var d=Math.min(o.length,a.length),v=new Array(d);for(r._base=[],f=0;f{"use strict";var Swe=Hb().setGroupPositions;Mwe.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var z8=Oa(),L_=Dr(),Cwe=So(),k_=hs().BADNUM,dwt=i2(),vwt=bv().clearMinTextSize;Lwe.exports=function(t,r,n,i){var a=t._fullLayout;vwt("funnel",a),pwt(t,r,n,i),gwt(t,r,n,i),dwt.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function pwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;L_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=z8.select(this),l=o[0].trace,u=L_.ensureSingle(s,"g","regions");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.region").data(L_.identity);f.enter().append("g").classed("region",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var _=kwe(d,i,a,c),b=_[0],p=_[1],C="";b[0]!==k_&&p[0]!==k_&&b[1]!==k_&&p[1]!==k_&&b[2]!==k_&&p[2]!==k_&&b[3]!==k_&&p[3]!==k_&&(c?C+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2]+"H"+b[3]+"L"+b[1]+","+p[1]+"Z":C+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3]+"V"+p[2]+"L"+b[1]+","+p[0]+"Z"),C===""&&(C="M0,0Z"),L_.ensureSingle(z8.select(this),"path").attr("d",C).call(Cwe.setClipUrl,t.layerClipId,e)}})})}function gwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;L_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=z8.select(this),l=o[0].trace,u=L_.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible||!l.connector.line.width){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.line").data(L_.identity);f.enter().append("g").classed("line",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var _=kwe(d,i,a,c),b=_[0],p=_[1],C="";b[3]!==void 0&&p[3]!==void 0&&(c?(C+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2],C+="M"+b[1]+","+p[1]+"L"+b[3]+","+p[2]):(C+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3],C+="M"+b[1]+","+p[0]+"L"+b[2]+","+p[2])),C===""&&(C="M0,0Z"),L_.ensureSingle(z8.select(this),"path").attr("d",C).call(Cwe.setClipUrl,t.layerClipId,e)}})})}function kwe(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}});var Dwe=ye((gcr,Rwe)=>{"use strict";var O4=Oa(),Iwe=So(),JG=Ca(),mwt=N1().DESELECTDIM,ywt=U0(),_wt=bv().resizeText,xwt=ywt.styleTextPoints;function bwt(e,t,r){var n=r||O4.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");_wt(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=O4.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o.marker;O4.select(this).call(JG.fill,s.mc||l.color).call(JG.stroke,s.mlc||l.line.color).call(Iwe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?mwt:1)}}),xwt(a,o,e),a.selectAll(".regions").each(function(){O4.select(this).selectAll("path").style("stroke-width",0).call(JG.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;Iwe.lineGroupStyle(O4.select(this).selectAll("path"),s.width,s.color,s.dash)})})}Rwe.exports={style:bwt}});var Owe=ye((mcr,zwe)=>{"use strict";var Fwe=Ca().opacity,wwt=AT().hoverOnBars,$G=Dr().formatPercent;zwe.exports=function(t,r,n,i,a){var o=wwt(t,r,n,i,a);if(o){var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=o.index,f=s[c],h=u?"x":"y";o[h+"LabelVal"]=f.s,o.percentInitial=f.begR,o.percentInitialLabel=$G(f.begR,1),o.percentPrevious=f.difR,o.percentPreviousLabel=$G(f.difR,1),o.percentTotal=f.sumR,o.percentTotalLabel=$G(f.sumR,1);var d=f.hi||l.hoverinfo,v=[];if(d&&d!=="none"&&d!=="skip"){var _=d==="all",b=d.split("+"),p=function(C){return _||b.indexOf(C)!==-1};p("percent initial")&&v.push(o.percentInitialLabel+" of initial"),p("percent previous")&&v.push(o.percentPreviousLabel+" of previous"),p("percent total")&&v.push(o.percentTotalLabel+" of total")}return o.extraText=v.join("
"),o.color=Twt(l,f),[o]}};function Twt(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(Fwe(n))return n;if(Fwe(i)&&a)return i}});var Bwe=ye((ycr,qwe)=>{"use strict";qwe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var Uwe=ye((_cr,Nwe)=>{"use strict";Nwe.exports={attributes:WG(),layoutAttributes:XG(),supplyDefaults:YG().supplyDefaults,crossTraceDefaults:YG().crossTraceDefaults,supplyLayoutDefaults:ywe(),calc:Awe(),crossTraceCalc:Ewe(),plot:Pwe(),style:Dwe().style,hoverPoints:Owe(),eventData:Bwe(),selectPoints:ST(),moduleType:"trace",name:"funnel",basePlotModule:ph(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var Gwe=ye((xcr,Vwe)=>{"use strict";Vwe.exports=Uwe()});var jwe=ye((bcr,Hwe)=>{"use strict";Hwe.exports={eventDataKeys:["initial","delta","final"]}});var tH=ye((wcr,Zwe)=>{"use strict";var _c=Lm(),QG=pf().line,Awt=Gl(),Wwe=df().axisHoverFormat,Swt=Qo().hovertemplateAttrs,Mwt=Qo().texttemplateAttrs,Xwe=jwe(),GT=Ao().extendFlat,Ewt=Ca();function eH(e){return{marker:{color:GT({},_c.marker.color,{arrayOk:!1,editType:"style"}),line:{color:GT({},_c.marker.line.color,{arrayOk:!1,editType:"style"}),width:GT({},_c.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}Zwe.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:_c.x,x0:_c.x0,dx:_c.dx,y:_c.y,y0:_c.y0,dy:_c.dy,xperiod:_c.xperiod,yperiod:_c.yperiod,xperiod0:_c.xperiod0,yperiod0:_c.yperiod0,xperiodalignment:_c.xperiodalignment,yperiodalignment:_c.yperiodalignment,xhoverformat:Wwe("x"),yhoverformat:Wwe("y"),hovertext:_c.hovertext,hovertemplate:Swt({},{keys:Xwe.eventDataKeys}),hoverinfo:GT({},Awt.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:Mwt({editType:"plot"},{keys:Xwe.eventDataKeys.concat(["label"])}),text:_c.text,textposition:_c.textposition,insidetextanchor:_c.insidetextanchor,textangle:_c.textangle,textfont:_c.textfont,insidetextfont:_c.insidetextfont,outsidetextfont:_c.outsidetextfont,constraintext:_c.constraintext,cliponaxis:_c.cliponaxis,orientation:_c.orientation,offset:_c.offset,width:_c.width,increasing:eH("increasing"),decreasing:eH("decreasing"),totals:eH("intermediate sums and total"),connector:{line:{color:GT({},QG.color,{dflt:Ewt.defaultLine}),width:GT({},QG.width,{editType:"plot"}),dash:QG.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:_c.offsetgroup,alignmentgroup:_c.alignmentgroup,zorder:_c.zorder}});var rH=ye((Tcr,Ywe)=>{"use strict";Ywe.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var HT=ye((Acr,Kwe)=>{"use strict";Kwe.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var nH=ye((Scr,e3e)=>{"use strict";var Jwe=Dr(),Cwt=Gb(),kwt=r0().handleText,Lwt=J3(),Pwt=Pg(),$we=tH(),Iwt=Ca(),Qwe=HT(),Rwt=Qwe.INCREASING.COLOR,Dwt=Qwe.DECREASING.COLOR,Fwt="#4499FF";function iH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",Iwt.defaultLine),e(t+".marker.line.width")}function zwt(e,t,r,n){function i(u,c){return Jwe.coerce(e,t,$we,u,c)}var a=Lwt(e,t,n,i);if(!a){t.visible=!1;return}Pwt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("measure"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");kwt(e,t,n,i,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(i("texttemplate"),t.texttemplate||i("textinfo")),iH(i,"increasing",Rwt),iH(i,"decreasing",Dwt),iH(i,"totals",Fwt);var s=i("connector.visible");if(s){i("connector.mode");var l=i("connector.line.width");l&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function Owt(e,t){var r,n;function i(o){return Jwe.coerce(n._input,n,$we,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var qwt=Dr(),Bwt=rH();t3e.exports=function(e,t,r){var n=!1;function i(s,l){return qwt.coerce(e,t,Bwt,s,l)}for(var a=0;a{"use strict";var i3e=ho(),n3e=Rg(),a3e=Dr().mergeArray,Nwt=O0(),o3e=hs().BADNUM;function aH(e){return e==="a"||e==="absolute"}function oH(e){return e==="t"||e==="total"}s3e.exports=function(t,r){var n=i3e.getFromId(t,r.xaxis||"x"),i=i3e.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=n3e(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=n3e(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var f=Math.min(o.length,a.length),h=new Array(f),d=0,v,_=!1,b=0;b{"use strict";var u3e=Hb().setGroupPositions;c3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var h3e=Oa(),O8=Dr(),Uwt=So(),jT=hs().BADNUM,Vwt=i2(),Gwt=bv().clearMinTextSize;d3e.exports=function(t,r,n,i){var a=t._fullLayout;Gwt("waterfall",a),Vwt.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),Hwt(t,r,n,i)};function Hwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;O8.makeTraceGroups(n,r,"trace bars").each(function(o){var s=h3e.select(this),l=o[0].trace,u=O8.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=l.connector.mode,h=u.selectAll("g.line").data(O8.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(v,_){if(!(_!==d-1&&!v.cNext)){var b=jwt(v,i,a,c),p=b[0],C=b[1],E="";p[0]!==jT&&C[0]!==jT&&p[1]!==jT&&C[1]!==jT&&(f==="spanning"&&!v.isSum&&_>0&&(c?E+="M"+p[0]+","+C[1]+"V"+C[0]:E+="M"+p[1]+","+C[0]+"H"+p[0]),f!=="between"&&(v.isSum||_{"use strict";var q8=Oa(),p3e=So(),g3e=Ca(),Wwt=N1().DESELECTDIM,Xwt=U0(),Zwt=bv().resizeText,Ywt=Xwt.styleTextPoints;function Kwt(e,t,r){var n=r||q8.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");Zwt(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=q8.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o[s.dir].marker;q8.select(this).call(g3e.fill,l.color).call(g3e.stroke,l.line.color).call(p3e.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?Wwt:1)}}),Ywt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;p3e.lineGroupStyle(q8.select(this).selectAll("path"),s.width,s.color,s.dash)})})}m3e.exports={style:Kwt}});var T3e=ye((Pcr,w3e)=>{"use strict";var Jwt=ho().hoverLabelText,_3e=Ca().opacity,$wt=AT().hoverOnBars,x3e=HT(),b3e={increasing:x3e.INCREASING.SYMBOL,decreasing:x3e.DECREASING.SYMBOL};w3e.exports=function(t,r,n,i,a){var o=$wt(t,r,n,i,a);if(!o)return;var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=u?"x":"y",f=u?t.xa:t.ya;function h(x){return Jwt(f,x,l[c+"hoverformat"])}var d=o.index,v=s[d],_=v.isSum?v.b+v.s:v.rawS;o.initial=v.b+v.s-_,o.delta=_,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=_<0?"("+b+")":b,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var p=v.hi||l.hoverinfo,C=[];if(p&&p!=="none"&&p!=="skip"){var E=p==="all",A=p.split("+"),L=function(x){return E||A.indexOf(x)!==-1};v.isSum||(L("final")&&(u?!L("x"):!L("y"))&&C.push(o.finalLabel),L("delta")&&(_<0?C.push(o.deltaLabel+" "+b3e.decreasing):C.push(o.deltaLabel+" "+b3e.increasing)),L("initial")&&C.push("Initial: "+o.initialLabel))}return C.length&&(o.extraText=C.join("
")),o.color=Qwt(l,v),[o]};function Qwt(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(_3e(n))return n;if(_3e(i)&&a)return i}});var S3e=ye((Icr,A3e)=>{"use strict";A3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var E3e=ye((Rcr,M3e)=>{"use strict";M3e.exports={attributes:tH(),layoutAttributes:rH(),supplyDefaults:nH().supplyDefaults,crossTraceDefaults:nH().crossTraceDefaults,supplyLayoutDefaults:r3e(),calc:l3e(),crossTraceCalc:f3e(),plot:v3e(),style:y3e().style,hoverPoints:T3e(),eventData:S3e(),selectPoints:ST(),moduleType:"trace",name:"waterfall",basePlotModule:ph(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var k3e=ye((Dcr,C3e)=>{"use strict";C3e.exports=E3e()});var WT=ye((Fcr,L3e)=>{"use strict";L3e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}}});var sH=ye((zcr,I3e)=>{"use strict";var e3t=Gl(),t3t=pf().zorder,r3t=Qo().hovertemplateAttrs,P3e=Ao().extendFlat,i3t=WT().colormodel,B4=["rgb","rgba","rgba256","hsl","hsla"],n3t=[],a3t=[];for(XT=0;XT{"use strict";var o3t=Dr(),s3t=sH(),R3e=WT(),l3t=Ly().IMAGE_URL_PREFIX;D3e.exports=function(t,r){function n(o,s){return o3t.coerce(t,r,s3t,o,s)}n("source"),r.source&&!r.source.match(l3t)&&delete r.source,r._hasSource=!!r.source;var i=n("z");if(r._hasZ=!(i===void 0||!i.length||!i[0]||!i[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}n("x0"),n("y0"),n("dx"),n("dy");var a;r._hasZ?(n("colormodel","rgb"),a=R3e.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=R3e.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),n("zsmooth"),n("text"),n("hovertext"),n("hovertemplate"),r._length=null,n("zorder")}});var Uy=ye((qcr,lH)=>{typeof Object.create=="function"?lH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:lH.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var uH=ye((Bcr,z3e)=>{z3e.exports=vb().EventEmitter});var B3e=ye(B8=>{"use strict";B8.byteLength=c3t;B8.toByteArray=h3t;B8.fromByteArray=p3t;var zm=[],Z0=[],u3t=typeof Uint8Array!="undefined"?Uint8Array:Array,cH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(s2=0,O3e=cH.length;s20)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function c3t(e){var t=q3e(e),r=t[0],n=t[1];return(r+n)*3/4-n}function f3t(e,t,r){return(t+r)*3/4-r}function h3t(e){var t,r=q3e(e),n=r[0],i=r[1],a=new u3t(f3t(e,n,i)),o=0,s=i>0?n-4:n,l;for(l=0;l>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Z0[e.charCodeAt(l)]<<2|Z0[e.charCodeAt(l+1)]>>4,a[o++]=t&255),i===1&&(t=Z0[e.charCodeAt(l)]<<10|Z0[e.charCodeAt(l+1)]<<4|Z0[e.charCodeAt(l+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function d3t(e){return zm[e>>18&63]+zm[e>>12&63]+zm[e>>6&63]+zm[e&63]}function v3t(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(zm[t>>2]+zm[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(zm[t>>10]+zm[t>>4&63]+zm[t<<2&63]+"=")),i.join("")}});var N3e=ye(fH=>{fH.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,l=(1<>1,c=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,a=d&(1<<-c)-1,d>>=-c,c+=s;c>0;a=a*256+e[t+f],f+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=o*256+e[t+f],f+=h,c-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-u}return(d?-1:1)*o*Math.pow(2,a-n)};fH.write=function(e,t,r,n,i,a){var o,s,l,u=a*8-i-1,c=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,v=n?1:-1,_=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=s&255,d+=v,s/=256,i-=8);for(o=o<0;e[r+d]=o&255,d+=v,o/=256,u-=8);e[r+d-v]|=_*128}});var u2=ye(JT=>{"use strict";var hH=B3e(),YT=N3e(),U3e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;JT.Buffer=ta;JT.SlowBuffer=b3t;JT.INSPECT_MAX_BYTES=50;var N8=2147483647;JT.kMaxLength=N8;ta.TYPED_ARRAY_SUPPORT=g3t();!ta.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function g3t(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(ta.prototype,"parent",{enumerable:!0,get:function(){if(ta.isBuffer(this))return this.buffer}});Object.defineProperty(ta.prototype,"offset",{enumerable:!0,get:function(){if(ta.isBuffer(this))return this.byteOffset}});function Vy(e){if(e>N8)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ta.prototype),t}function ta(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return gH(e)}return j3e(e,t,r)}ta.poolSize=8192;function j3e(e,t,r){if(typeof e=="string")return y3t(e,t);if(ArrayBuffer.isView(e))return _3t(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Om(e,ArrayBuffer)||e&&Om(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Om(e,SharedArrayBuffer)||e&&Om(e.buffer,SharedArrayBuffer)))return vH(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return ta.from(n,t,r);let i=x3t(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ta.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}ta.from=function(e,t,r){return j3e(e,t,r)};Object.setPrototypeOf(ta.prototype,Uint8Array.prototype);Object.setPrototypeOf(ta,Uint8Array);function W3e(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function m3t(e,t,r){return W3e(e),e<=0?Vy(e):t!==void 0?typeof r=="string"?Vy(e).fill(t,r):Vy(e).fill(t):Vy(e)}ta.alloc=function(e,t,r){return m3t(e,t,r)};function gH(e){return W3e(e),Vy(e<0?0:mH(e)|0)}ta.allocUnsafe=function(e){return gH(e)};ta.allocUnsafeSlow=function(e){return gH(e)};function y3t(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ta.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=X3e(e,t)|0,n=Vy(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function dH(e){let t=e.length<0?0:mH(e.length)|0,r=Vy(t);for(let n=0;n=N8)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N8.toString(16)+" bytes");return e|0}function b3t(e){return+e!=e&&(e=0),ta.alloc(+e)}ta.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ta.prototype};ta.compare=function(t,r){if(Om(t,Uint8Array)&&(t=ta.from(t,t.offset,t.byteLength)),Om(r,Uint8Array)&&(r=ta.from(r,r.offset,r.byteLength)),!ta.isBuffer(t)||!ta.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);ai.length?(ta.isBuffer(o)||(o=ta.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ta.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function X3e(e,t){if(ta.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Om(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return pH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return rTe(e).length;default:if(i)return n?-1:pH(e).length;t=(""+t).toLowerCase(),i=!0}}ta.byteLength=X3e;function w3t(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return I3t(this,t,r);case"utf8":case"utf-8":return Y3e(this,t,r);case"ascii":return L3t(this,t,r);case"latin1":case"binary":return P3t(this,t,r);case"base64":return C3t(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R3t(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ta.prototype._isBuffer=!0;function l2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ta.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};U3e&&(ta.prototype[U3e]=ta.prototype.inspect);ta.prototype.compare=function(t,r,n,i,a){if(Om(t,Uint8Array)&&(t=ta.from(t,t.offset,t.byteLength)),!ta.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,s=n-r,l=Math.min(o,s),u=this.slice(i,a),c=t.slice(r,n);for(let f=0;f2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,_H(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ta.from(t,n)),ta.isBuffer(t))return t.length===0?-1:V3e(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):V3e(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function V3e(e,t,r,n,i){let a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function l(c,f){return a===1?c[f]:c.readUInt16BE(f*a)}let u;if(i){let c=-1;for(u=r;uo&&(r=o-s),u=r;u>=0;u--){let c=!0;for(let f=0;fi&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return T3t(this,t,r,n);case"utf8":case"utf-8":return A3t(this,t,r,n);case"ascii":case"latin1":case"binary":return S3t(this,t,r,n);case"base64":return M3t(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E3t(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ta.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C3t(e,t,r){return t===0&&r===e.length?hH.fromByteArray(e):hH.fromByteArray(e.slice(t,r))}function Y3e(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let l,u,c,f;switch(s){case 1:a<128&&(o=a);break;case 2:l=e[i+1],(l&192)===128&&(f=(a&31)<<6|l&63,f>127&&(o=f));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(f=(a&15)<<12|(l&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:l=e[i+1],u=e[i+2],c=e[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(f=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return k3t(n)}var G3e=4096;function k3t(e){let t=e.length;if(t<=G3e)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let a=t;an&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}ta.prototype.readUintLE=ta.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ta.prototype.readUint8=ta.prototype.readUInt8=function(t,r){return t=t>>>0,r||ev(t,1,this.length),this[t]};ta.prototype.readUint16LE=ta.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||ev(t,2,this.length),this[t]|this[t+1]<<8};ta.prototype.readUint16BE=ta.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||ev(t,2,this.length),this[t]<<8|this[t+1]};ta.prototype.readUint32LE=ta.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ta.prototype.readUint32BE=ta.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ta.prototype.readBigUInt64LE=P_(function(t){t=t>>>0,KT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&N4(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<>>0,KT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&N4(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};ta.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||ev(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};ta.prototype.readInt8=function(t,r){return t=t>>>0,r||ev(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ta.prototype.readInt16LE=function(t,r){t=t>>>0,r||ev(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ta.prototype.readInt16BE=function(t,r){t=t>>>0,r||ev(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ta.prototype.readInt32LE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ta.prototype.readInt32BE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ta.prototype.readBigInt64LE=P_(function(t){t=t>>>0,KT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&N4(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,KT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&N4(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||ev(t,4,this.length),YT.read(this,t,!0,23,4)};ta.prototype.readFloatBE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),YT.read(this,t,!1,23,4)};ta.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||ev(t,8,this.length),YT.read(this,t,!0,52,8)};ta.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||ev(t,8,this.length),YT.read(this,t,!1,52,8)};function Ip(e,t,r,n,i,a){if(!ta.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}ta.prototype.writeUintLE=ta.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Ip(this,t,r,n,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Ip(this,t,r,n,s,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};ta.prototype.writeUint8=ta.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,1,255,0),this[r]=t&255,r+1};ta.prototype.writeUint16LE=ta.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};ta.prototype.writeUint16BE=ta.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};ta.prototype.writeUint32LE=ta.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};ta.prototype.writeUint32BE=ta.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function K3e(e,t,r,n,i){tTe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function J3e(e,t,r,n,i){tTe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}ta.prototype.writeBigUInt64LE=P_(function(t,r=0){return K3e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ta.prototype.writeBigUInt64BE=P_(function(t,r=0){return J3e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ta.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Ip(this,t,r,n,l-1,-l)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+n};ta.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Ip(this,t,r,n,l-1,-l)}let a=n-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+n};ta.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};ta.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};ta.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};ta.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};ta.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};ta.prototype.writeBigInt64LE=P_(function(t,r=0){return K3e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ta.prototype.writeBigInt64BE=P_(function(t,r=0){return J3e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function $3e(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Q3e(e,t,r,n,i){return t=+t,r=r>>>0,i||$3e(e,t,r,4,34028234663852886e22,-34028234663852886e22),YT.write(e,t,r,n,23,4),r+4}ta.prototype.writeFloatLE=function(t,r,n){return Q3e(this,t,r,!0,n)};ta.prototype.writeFloatBE=function(t,r,n){return Q3e(this,t,r,!1,n)};function eTe(e,t,r,n,i){return t=+t,r=r>>>0,i||$3e(e,t,r,8,17976931348623157e292,-17976931348623157e292),YT.write(e,t,r,n,52,8),r+8}ta.prototype.writeDoubleLE=function(t,r,n){return eTe(this,t,r,!0,n)};ta.prototype.writeDoubleBE=function(t,r,n){return eTe(this,t,r,!1,n)};ta.prototype.copy=function(t,r,n,i){if(!ta.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?i=H3e(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=H3e(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function H3e(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function D3t(e,t,r){KT(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&N4(t,e.length-(r+1))}function tTe(e,t,r,n,i,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new ZT.ERR_OUT_OF_RANGE("value",s,e)}D3t(n,i,a)}function KT(e,t){if(typeof e!="number")throw new ZT.ERR_INVALID_ARG_TYPE(t,"number",e)}function N4(e,t,r){throw Math.floor(e)!==e?(KT(e,r),new ZT.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new ZT.ERR_BUFFER_OUT_OF_BOUNDS:new ZT.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var F3t=/[^+/0-9A-Za-z-_]/g;function z3t(e){if(e=e.split("=")[0],e=e.trim().replace(F3t,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function pH(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function O3t(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function rTe(e){return hH.toByteArray(z3t(e))}function U8(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Om(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function _H(e){return e!==e}var B3t=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function P_(e){return typeof BigInt=="undefined"?N3t:e}function N3t(){throw new Error("BigInt not supported")}});var V8=ye((Hcr,iTe)=>{"use strict";iTe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var U4=ye((jcr,nTe)=>{"use strict";var U3t=V8();nTe.exports=function(){return U3t()&&!!Symbol.toStringTag}});var xH=ye((Wcr,aTe)=>{"use strict";aTe.exports=Object});var sTe=ye((Xcr,oTe)=>{"use strict";oTe.exports=Error});var uTe=ye((Zcr,lTe)=>{"use strict";lTe.exports=EvalError});var fTe=ye((Ycr,cTe)=>{"use strict";cTe.exports=RangeError});var dTe=ye((Kcr,hTe)=>{"use strict";hTe.exports=ReferenceError});var bH=ye((Jcr,vTe)=>{"use strict";vTe.exports=SyntaxError});var $T=ye(($cr,pTe)=>{"use strict";pTe.exports=TypeError});var mTe=ye((Qcr,gTe)=>{"use strict";gTe.exports=URIError});var _Te=ye((efr,yTe)=>{"use strict";yTe.exports=Math.abs});var bTe=ye((tfr,xTe)=>{"use strict";xTe.exports=Math.floor});var TTe=ye((rfr,wTe)=>{"use strict";wTe.exports=Math.max});var STe=ye((ifr,ATe)=>{"use strict";ATe.exports=Math.min});var ETe=ye((nfr,MTe)=>{"use strict";MTe.exports=Math.pow});var kTe=ye((afr,CTe)=>{"use strict";CTe.exports=Math.round});var PTe=ye((ofr,LTe)=>{"use strict";LTe.exports=Number.isNaN||function(t){return t!==t}});var RTe=ye((sfr,ITe)=>{"use strict";var V3t=PTe();ITe.exports=function(t){return V3t(t)||t===0?t:t<0?-1:1}});var FTe=ye((lfr,DTe)=>{"use strict";DTe.exports=Object.getOwnPropertyDescriptor});var c2=ye((ufr,zTe)=>{"use strict";var G8=FTe();if(G8)try{G8([],"length")}catch(e){G8=null}zTe.exports=G8});var V4=ye((cfr,OTe)=>{"use strict";var H8=Object.defineProperty||!1;if(H8)try{H8({},"a",{value:1})}catch(e){H8=!1}OTe.exports=H8});var NTe=ye((ffr,BTe)=>{"use strict";var qTe=typeof Symbol!="undefined"&&Symbol,G3t=V8();BTe.exports=function(){return typeof qTe!="function"||typeof Symbol!="function"||typeof qTe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:G3t()}});var wH=ye((hfr,UTe)=>{"use strict";UTe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var TH=ye((dfr,VTe)=>{"use strict";var H3t=xH();VTe.exports=H3t.getPrototypeOf||null});var jTe=ye((vfr,HTe)=>{"use strict";var j3t="Function.prototype.bind called on incompatible ",W3t=Object.prototype.toString,X3t=Math.max,Z3t="[object Function]",GTe=function(t,r){for(var n=[],i=0;i{"use strict";var J3t=jTe();WTe.exports=Function.prototype.bind||J3t});var j8=ye((gfr,XTe)=>{"use strict";XTe.exports=Function.prototype.call});var AH=ye((mfr,ZTe)=>{"use strict";ZTe.exports=Function.prototype.apply});var KTe=ye((yfr,YTe)=>{"use strict";YTe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var $Te=ye((_fr,JTe)=>{"use strict";var $3t=QT(),Q3t=AH(),eTt=j8(),tTt=KTe();JTe.exports=tTt||$3t.call(eTt,Q3t)});var eAe=ye((xfr,QTe)=>{"use strict";var rTt=QT(),iTt=$T(),nTt=j8(),aTt=$Te();QTe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new iTt("a function is required");return aTt(rTt,nTt,t)}});var oAe=ye((bfr,aAe)=>{"use strict";var oTt=eAe(),tAe=c2(),iAe;try{iAe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var SH=!!iAe&&tAe&&tAe(Object.prototype,"__proto__"),nAe=Object,rAe=nAe.getPrototypeOf;aAe.exports=SH&&typeof SH.get=="function"?oTt([SH.get]):typeof rAe=="function"?function(t){return rAe(t==null?t:nAe(t))}:!1});var fAe=ye((wfr,cAe)=>{"use strict";var sAe=wH(),lAe=TH(),uAe=oAe();cAe.exports=sAe?function(t){return sAe(t)}:lAe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return lAe(t)}:uAe?function(t){return uAe(t)}:null});var dAe=ye((Tfr,hAe)=>{"use strict";var sTt=Function.prototype.call,lTt=Object.prototype.hasOwnProperty,uTt=QT();hAe.exports=uTt.call(sTt,lTt)});var Z8=ye((Afr,_Ae)=>{"use strict";var lu,cTt=xH(),fTt=sTe(),hTt=uTe(),dTt=fTe(),vTt=dTe(),iA=bH(),rA=$T(),pTt=mTe(),gTt=_Te(),mTt=bTe(),yTt=TTe(),_Tt=STe(),xTt=ETe(),bTt=kTe(),wTt=RTe(),mAe=Function,MH=function(e){try{return mAe('"use strict"; return ('+e+").constructor;")()}catch(t){}},G4=c2(),TTt=V4(),EH=function(){throw new rA},ATt=G4?function(){try{return arguments.callee,EH}catch(e){try{return G4(arguments,"callee").get}catch(t){return EH}}}():EH,eA=NTe()(),tv=fAe(),STt=TH(),MTt=wH(),yAe=AH(),H4=j8(),tA={},ETt=typeof Uint8Array=="undefined"||!tv?lu:tv(Uint8Array),f2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?lu:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?lu:ArrayBuffer,"%ArrayIteratorPrototype%":eA&&tv?tv([][Symbol.iterator]()):lu,"%AsyncFromSyncIteratorPrototype%":lu,"%AsyncFunction%":tA,"%AsyncGenerator%":tA,"%AsyncGeneratorFunction%":tA,"%AsyncIteratorPrototype%":tA,"%Atomics%":typeof Atomics=="undefined"?lu:Atomics,"%BigInt%":typeof BigInt=="undefined"?lu:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?lu:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?lu:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?lu:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":fTt,"%eval%":eval,"%EvalError%":hTt,"%Float16Array%":typeof Float16Array=="undefined"?lu:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?lu:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?lu:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?lu:FinalizationRegistry,"%Function%":mAe,"%GeneratorFunction%":tA,"%Int8Array%":typeof Int8Array=="undefined"?lu:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?lu:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?lu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":eA&&tv?tv(tv([][Symbol.iterator]())):lu,"%JSON%":typeof JSON=="object"?JSON:lu,"%Map%":typeof Map=="undefined"?lu:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!eA||!tv?lu:tv(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":cTt,"%Object.getOwnPropertyDescriptor%":G4,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?lu:Promise,"%Proxy%":typeof Proxy=="undefined"?lu:Proxy,"%RangeError%":dTt,"%ReferenceError%":vTt,"%Reflect%":typeof Reflect=="undefined"?lu:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?lu:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!eA||!tv?lu:tv(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?lu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":eA&&tv?tv(""[Symbol.iterator]()):lu,"%Symbol%":eA?Symbol:lu,"%SyntaxError%":iA,"%ThrowTypeError%":ATt,"%TypedArray%":ETt,"%TypeError%":rA,"%Uint8Array%":typeof Uint8Array=="undefined"?lu:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?lu:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?lu:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?lu:Uint32Array,"%URIError%":pTt,"%WeakMap%":typeof WeakMap=="undefined"?lu:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?lu:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?lu:WeakSet,"%Function.prototype.call%":H4,"%Function.prototype.apply%":yAe,"%Object.defineProperty%":TTt,"%Object.getPrototypeOf%":STt,"%Math.abs%":gTt,"%Math.floor%":mTt,"%Math.max%":yTt,"%Math.min%":_Tt,"%Math.pow%":xTt,"%Math.round%":bTt,"%Math.sign%":wTt,"%Reflect.getPrototypeOf%":MTt};if(tv)try{null.error}catch(e){vAe=tv(tv(e)),f2["%Error.prototype%"]=vAe}var vAe,CTt=function e(t){var r;if(t==="%AsyncFunction%")r=MH("async function () {}");else if(t==="%GeneratorFunction%")r=MH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=MH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&tv&&(r=tv(i.prototype))}return f2[t]=r,r},pAe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j4=QT(),W8=dAe(),kTt=j4.call(H4,Array.prototype.concat),LTt=j4.call(yAe,Array.prototype.splice),gAe=j4.call(H4,String.prototype.replace),X8=j4.call(H4,String.prototype.slice),PTt=j4.call(H4,RegExp.prototype.exec),ITt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,RTt=/\\(\\)?/g,DTt=function(t){var r=X8(t,0,1),n=X8(t,-1);if(r==="%"&&n!=="%")throw new iA("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new iA("invalid intrinsic syntax, expected opening `%`");var i=[];return gAe(t,ITt,function(a,o,s,l){i[i.length]=s?gAe(l,RTt,"$1"):o||a}),i},FTt=function(t,r){var n=t,i;if(W8(pAe,n)&&(i=pAe[n],n="%"+i[0]+"%"),W8(f2,n)){var a=f2[n];if(a===tA&&(a=CTt(n)),typeof a=="undefined"&&!r)throw new rA("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new iA("intrinsic "+t+" does not exist!")};_Ae.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new rA("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new rA('"allowMissing" argument must be a boolean');if(PTt(/^%?[^%]*%?$/,t)===null)throw new iA("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=DTt(t),i=n.length>0?n[0]:"",a=FTt("%"+i+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(i=u[0],LTt(n,kTt([0,1],u)));for(var c=1,f=!0;c=n.length){var _=G4(s,h);f=!!_,f&&"get"in _&&!("originalValue"in _.get)?s=_.get:s=s[h]}else f=W8(s,h),s=s[h];f&&!l&&(f2[o]=s)}}return s}});var TAe=ye((Sfr,wAe)=>{"use strict";var xAe=V4(),zTt=bH(),nA=$T(),bAe=c2();wAe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new nA("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new nA("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new nA("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new nA("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new nA("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new nA("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!bAe&&bAe(t,r);if(xAe)xAe(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:a===null&&l?l.writable:!a});else if(s||!i&&!a&&!o)t[r]=n;else throw new zTt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var kH=ye((Mfr,SAe)=>{"use strict";var CH=V4(),AAe=function(){return!!CH};AAe.hasArrayLengthDefineBug=function(){if(!CH)return null;try{return CH([],"length",{value:1}).length!==1}catch(t){return!0}};SAe.exports=AAe});var LAe=ye((Efr,kAe)=>{"use strict";var OTt=Z8(),MAe=TAe(),qTt=kH()(),EAe=c2(),CAe=$T(),BTt=OTt("%Math.floor%");kAe.exports=function(t,r){if(typeof t!="function")throw new CAe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||BTt(r)!==r)throw new CAe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&EAe){var o=EAe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(qTt?MAe(t,"length",r,!0,!0):MAe(t,"length",r)),t}});var W4=ye((Cfr,Y8)=>{"use strict";var LH=QT(),K8=Z8(),NTt=LAe(),UTt=$T(),RAe=K8("%Function.prototype.apply%"),DAe=K8("%Function.prototype.call%"),FAe=K8("%Reflect.apply%",!0)||LH.call(DAe,RAe),PAe=V4(),VTt=K8("%Math.max%");Y8.exports=function(t){if(typeof t!="function")throw new UTt("a function is required");var r=FAe(LH,DAe,arguments);return NTt(r,1+VTt(0,t.length-(arguments.length-1)),!0)};var IAe=function(){return FAe(LH,RAe,arguments)};PAe?PAe(Y8.exports,"apply",{value:IAe}):Y8.exports.apply=IAe});var aA=ye((kfr,qAe)=>{"use strict";var zAe=Z8(),OAe=W4(),GTt=OAe(zAe("String.prototype.indexOf"));qAe.exports=function(t,r){var n=zAe(t,!!r);return typeof n=="function"&>t(t,".prototype.")>-1?OAe(n):n}});var UAe=ye((Lfr,NAe)=>{"use strict";var HTt=U4()(),jTt=aA(),PH=jTt("Object.prototype.toString"),J8=function(t){return HTt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:PH(t)==="[object Arguments]"},BAe=function(t){return J8(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&PH(t)!=="[object Array]"&&PH(t.callee)==="[object Function]"},WTt=function(){return J8(arguments)}();J8.isLegacyArguments=BAe;NAe.exports=WTt?J8:BAe});var HAe=ye((Pfr,GAe)=>{"use strict";var XTt=Object.prototype.toString,ZTt=Function.prototype.toString,YTt=/^\s*(?:function)?\*/,VAe=U4()(),IH=Object.getPrototypeOf,KTt=function(){if(!VAe)return!1;try{return Function("return function*() {}")()}catch(e){}},RH;GAe.exports=function(t){if(typeof t!="function")return!1;if(YTt.test(ZTt.call(t)))return!0;if(!VAe){var r=XTt.call(t);return r==="[object GeneratorFunction]"}if(!IH)return!1;if(typeof RH=="undefined"){var n=KTt();RH=n?IH(n):!1}return IH(t)===RH}});var ZAe=ye((Ifr,XAe)=>{"use strict";var WAe=Function.prototype.toString,oA=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,FH,$8;if(typeof oA=="function"&&typeof Object.defineProperty=="function")try{FH=Object.defineProperty({},"length",{get:function(){throw $8}}),$8={},oA(function(){throw 42},null,FH)}catch(e){e!==$8&&(oA=null)}else oA=null;var JTt=/^\s*class\b/,zH=function(t){try{var r=WAe.call(t);return JTt.test(r)}catch(n){return!1}},DH=function(t){try{return zH(t)?!1:(WAe.call(t),!0)}catch(r){return!1}},Q8=Object.prototype.toString,$Tt="[object Object]",QTt="[object Function]",eAt="[object GeneratorFunction]",tAt="[object HTMLAllCollection]",rAt="[object HTML document.all class]",iAt="[object HTMLCollection]",nAt=typeof Symbol=="function"&&!!Symbol.toStringTag,aAt=!(0 in[,]),OH=function(){return!1};typeof document=="object"&&(jAe=document.all,Q8.call(jAe)===Q8.call(document.all)&&(OH=function(t){if((aAt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=Q8.call(t);return(r===tAt||r===rAt||r===iAt||r===$Tt)&&t("")==null}catch(n){}return!1}));var jAe;XAe.exports=oA?function(t){if(OH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{oA(t,null,FH)}catch(r){if(r!==$8)return!1}return!zH(t)&&DH(t)}:function(t){if(OH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(nAt)return DH(t);if(zH(t))return!1;var r=Q8.call(t);return r!==QTt&&r!==eAt&&!/^\[object HTML/.test(r)?!1:DH(t)}});var qH=ye((Rfr,KAe)=>{"use strict";var oAt=ZAe(),sAt=Object.prototype.toString,YAe=Object.prototype.hasOwnProperty,lAt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),sAt.call(t)==="[object Array]"?lAt(t,r,i):typeof t=="string"?uAt(t,r,i):cAt(t,r,i)};KAe.exports=fAt});var NH=ye((Dfr,JAe)=>{"use strict";var BH=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],hAt=typeof globalThis=="undefined"?window:globalThis;JAe.exports=function(){for(var t=[],r=0;r{"use strict";var tR=qH(),dAt=NH(),$Ae=W4(),GH=aA(),eR=c2(),vAt=GH("Object.prototype.toString"),e5e=U4()(),QAe=typeof globalThis=="undefined"?window:globalThis,VH=dAt(),HH=GH("String.prototype.slice"),UH=Object.getPrototypeOf,pAt=GH("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:mAt(t)}return eR?gAt(t):null}});var l5e=ye((zfr,s5e)=>{"use strict";var i5e=qH(),yAt=NH(),WH=aA(),_At=WH("Object.prototype.toString"),n5e=U4()(),iR=c2(),xAt=typeof globalThis=="undefined"?window:globalThis,a5e=yAt(),bAt=WH("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return iR?TAt(t):!1}});var YH=ye(uu=>{"use strict";var AAt=UAe(),SAt=HAe(),Gg=r5e(),u5e=l5e();function sA(e){return e.call.bind(e)}var c5e=typeof BigInt!="undefined",f5e=typeof Symbol!="undefined",Y0=sA(Object.prototype.toString),MAt=sA(Number.prototype.valueOf),EAt=sA(String.prototype.valueOf),CAt=sA(Boolean.prototype.valueOf);c5e&&(h5e=sA(BigInt.prototype.valueOf));var h5e;f5e&&(d5e=sA(Symbol.prototype.valueOf));var d5e;function Z4(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}uu.isArgumentsObject=AAt;uu.isGeneratorFunction=SAt;uu.isTypedArray=u5e;function kAt(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}uu.isPromise=kAt;function LAt(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):u5e(e)||p5e(e)}uu.isArrayBufferView=LAt;function PAt(e){return Gg(e)==="Uint8Array"}uu.isUint8Array=PAt;function IAt(e){return Gg(e)==="Uint8ClampedArray"}uu.isUint8ClampedArray=IAt;function RAt(e){return Gg(e)==="Uint16Array"}uu.isUint16Array=RAt;function DAt(e){return Gg(e)==="Uint32Array"}uu.isUint32Array=DAt;function FAt(e){return Gg(e)==="Int8Array"}uu.isInt8Array=FAt;function zAt(e){return Gg(e)==="Int16Array"}uu.isInt16Array=zAt;function OAt(e){return Gg(e)==="Int32Array"}uu.isInt32Array=OAt;function qAt(e){return Gg(e)==="Float32Array"}uu.isFloat32Array=qAt;function BAt(e){return Gg(e)==="Float64Array"}uu.isFloat64Array=BAt;function NAt(e){return Gg(e)==="BigInt64Array"}uu.isBigInt64Array=NAt;function UAt(e){return Gg(e)==="BigUint64Array"}uu.isBigUint64Array=UAt;function nR(e){return Y0(e)==="[object Map]"}nR.working=typeof Map!="undefined"&&nR(new Map);function VAt(e){return typeof Map=="undefined"?!1:nR.working?nR(e):e instanceof Map}uu.isMap=VAt;function aR(e){return Y0(e)==="[object Set]"}aR.working=typeof Set!="undefined"&&aR(new Set);function GAt(e){return typeof Set=="undefined"?!1:aR.working?aR(e):e instanceof Set}uu.isSet=GAt;function oR(e){return Y0(e)==="[object WeakMap]"}oR.working=typeof WeakMap!="undefined"&&oR(new WeakMap);function HAt(e){return typeof WeakMap=="undefined"?!1:oR.working?oR(e):e instanceof WeakMap}uu.isWeakMap=HAt;function ZH(e){return Y0(e)==="[object WeakSet]"}ZH.working=typeof WeakSet!="undefined"&&ZH(new WeakSet);function jAt(e){return ZH(e)}uu.isWeakSet=jAt;function sR(e){return Y0(e)==="[object ArrayBuffer]"}sR.working=typeof ArrayBuffer!="undefined"&&sR(new ArrayBuffer);function v5e(e){return typeof ArrayBuffer=="undefined"?!1:sR.working?sR(e):e instanceof ArrayBuffer}uu.isArrayBuffer=v5e;function lR(e){return Y0(e)==="[object DataView]"}lR.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&lR(new DataView(new ArrayBuffer(1),0,1));function p5e(e){return typeof DataView=="undefined"?!1:lR.working?lR(e):e instanceof DataView}uu.isDataView=p5e;var XH=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function X4(e){return Y0(e)==="[object SharedArrayBuffer]"}function g5e(e){return typeof XH=="undefined"?!1:(typeof X4.working=="undefined"&&(X4.working=X4(new XH)),X4.working?X4(e):e instanceof XH)}uu.isSharedArrayBuffer=g5e;function WAt(e){return Y0(e)==="[object AsyncFunction]"}uu.isAsyncFunction=WAt;function XAt(e){return Y0(e)==="[object Map Iterator]"}uu.isMapIterator=XAt;function ZAt(e){return Y0(e)==="[object Set Iterator]"}uu.isSetIterator=ZAt;function YAt(e){return Y0(e)==="[object Generator]"}uu.isGeneratorObject=YAt;function KAt(e){return Y0(e)==="[object WebAssembly.Module]"}uu.isWebAssemblyCompiledModule=KAt;function m5e(e){return Z4(e,MAt)}uu.isNumberObject=m5e;function y5e(e){return Z4(e,EAt)}uu.isStringObject=y5e;function _5e(e){return Z4(e,CAt)}uu.isBooleanObject=_5e;function x5e(e){return c5e&&Z4(e,h5e)}uu.isBigIntObject=x5e;function b5e(e){return f5e&&Z4(e,d5e)}uu.isSymbolObject=b5e;function JAt(e){return m5e(e)||y5e(e)||_5e(e)||x5e(e)||b5e(e)}uu.isBoxedPrimitive=JAt;function $At(e){return typeof Uint8Array!="undefined"&&(v5e(e)||g5e(e))}uu.isAnyArrayBuffer=$At;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(uu,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var KH=ye((qfr,w5e)=>{w5e.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var rj=ye(cu=>{var T5e=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),ej(t)?r.showHidden=t:t&&cu._extend(r,t),d2(r.showHidden)&&(r.showHidden=!1),d2(r.depth)&&(r.depth=2),d2(r.colors)&&(r.colors=!1),d2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=e5t),hR(r,e,r.depth)}cu.inspect=I_;I_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};I_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function e5t(e,t){var r=I_.styles[t];return r?"\x1B["+I_.colors[r][0]+"m"+e+"\x1B["+I_.colors[r][1]+"m":e}function t5t(e,t){return e}function r5t(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function hR(e,t,r){if(e.customInspect&&t&&fR(t.inspect)&&t.inspect!==cu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return pR(n)||(n=hR(e,n,r)),n}var i=i5t(e,t);if(i)return i;var a=Object.keys(t),o=r5t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),K4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return JH(t);if(a.length===0){if(fR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Y4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(dR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(K4(t))return JH(t)}var l="",u=!1,c=["{","}"];if(S5e(t)&&(u=!0,c=["[","]"]),fR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(Y4(t)&&(l=" "+RegExp.prototype.toString.call(t)),dR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),K4(t)&&(l=" "+JH(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return Y4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=n5t(e,t,r,o,a):h=a.map(function(d){return QH(e,t,r,o,d,u)}),e.seen.pop(),a5t(h,l,c)}function i5t(e,t){if(d2(t))return e.stylize("undefined","undefined");if(pR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(M5e(t))return e.stylize(""+t,"number");if(ej(t))return e.stylize(""+t,"boolean");if(vR(t))return e.stylize("null","null")}function JH(e){return"["+Error.prototype.toString.call(e)+"]"}function n5t(e,t,r,n,i){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(u){return" "+u}).join(` `).slice(2):s=` `+s.split(` `).map(function(u){return" "+u}).join(` -`))):s=e.stylize("[Circular]","special")),d2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function r5t(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),d2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function a5t(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` `)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}cu.types=YH();function T5e(e){return Array.isArray(e)}cu.isArray=T5e;function ej(e){return typeof e=="boolean"}cu.isBoolean=ej;function vR(e){return e===null}cu.isNull=vR;function i5t(e){return e==null}cu.isNullOrUndefined=i5t;function A5e(e){return typeof e=="number"}cu.isNumber=A5e;function pR(e){return typeof e=="string"}cu.isString=pR;function n5t(e){return typeof e=="symbol"}cu.isSymbol=n5t;function d2(e){return e===void 0}cu.isUndefined=d2;function Z4(e){return sA(e)&&tj(e)==="[object RegExp]"}cu.isRegExp=Z4;cu.types.isRegExp=Z4;function sA(e){return typeof e=="object"&&e!==null}cu.isObject=sA;function dR(e){return sA(e)&&tj(e)==="[object Date]"}cu.isDate=dR;cu.types.isDate=dR;function Y4(e){return sA(e)&&(tj(e)==="[object Error]"||e instanceof Error)}cu.isError=Y4;cu.types.isNativeError=Y4;function fR(e){return typeof e=="function"}cu.isFunction=fR;function a5t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}cu.isPrimitive=a5t;cu.isBuffer=KH();function tj(e){return Object.prototype.toString.call(e)}function $H(e){return e<10?"0"+e.toString(10):e.toString(10)}var o5t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function s5t(){var e=new Date,t=[$H(e.getHours()),$H(e.getMinutes()),$H(e.getSeconds())].join(":");return[e.getDate(),o5t[e.getMonth()],t].join(" ")}cu.log=function(){console.log("%s - %s",s5t(),cu.format.apply(cu,arguments))};cu.inherits=Uy();cu._extend=function(e,t){if(!t||!sA(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function S5e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var h2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;cu.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(h2&&t[h2]){var r=t[h2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,h2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(l,u){n=l,i=u}),o=[],s=0;s{"use strict";function M5e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function c5t(e){for(var t=1;t0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return gR.alloc(0);for(var n=gR.allocUnsafe(r>>>0),i=this.head,a=0;i;)m5t(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=gR.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,s),r-=s,r===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:g5t,value:function(r,n){return ij(this,c5t({},n,{depth:0,customInspect:!1}))}}]),e}()});var aj=ye((Bfr,P5e)=>{"use strict";function y5t(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(nj,this,e)):process.nextTick(nj,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(mR,r):(r._writableState.errorEmitted=!0,process.nextTick(L5e,r,a)):process.nextTick(L5e,r,a):t?(process.nextTick(mR,r),t(a)):process.nextTick(mR,r)}),this)}function L5e(e,t){nj(e,t),mR(e)}function mR(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function _5t(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function nj(e,t){e.emit("error",t)}function x5t(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}P5e.exports={destroy:y5t,undestroy:_5t,errorOrDestroy:x5t}});var v2=ye((Nfr,D5e)=>{"use strict";function b5t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var R5e={};function Y0(e,t,r){r||(r=Error);function n(a,o,s){return typeof t=="string"?t:t(a,o,s)}var i=function(a){b5t(o,a);function o(s,l,u){return a.call(this,n(s,l,u))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,R5e[e]=i}function I5e(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function w5t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function T5t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function A5t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Y0("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Y0("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&w5t(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(T5t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(I5e(t,"type"));else{var a=A5t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(I5e(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Y0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Y0("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Y0("ERR_STREAM_PREMATURE_CLOSE","Premature close");Y0("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Y0("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Y0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Y0("ERR_STREAM_WRITE_AFTER_END","write after end");Y0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Y0("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Y0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");D5e.exports.codes=R5e});var oj=ye((Ufr,F5e)=>{"use strict";var S5t=v2().codes.ERR_INVALID_OPT_VALUE;function M5t(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function E5t(e,t,r,n){var i=M5t(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new S5t(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}F5e.exports={getHighWaterMark:E5t}});var O5e=ye((Vfr,z5e)=>{z5e.exports=C5t;function C5t(e,t){if(sj("noDeprecation"))return e;var r=!1;function n(){if(!r){if(sj("throwDeprecation"))throw new Error(t);sj("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function sj(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var cj=ye((Gfr,G5e)=>{"use strict";G5e.exports=Rh;function B5e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){tSt(t,e)}}var lA;Rh.WritableState=J4;var k5t={deprecate:O5e()},N5e=uH(),_R=u2().Buffer,L5t=window.Uint8Array||function(){};function P5t(e){return _R.from(e)}function I5t(e){return _R.isBuffer(e)||e instanceof L5t}var uj=aj(),R5t=oj(),D5t=R5t.getHighWaterMark,R_=v2().codes,F5t=R_.ERR_INVALID_ARG_TYPE,z5t=R_.ERR_METHOD_NOT_IMPLEMENTED,O5t=R_.ERR_MULTIPLE_CALLBACK,q5t=R_.ERR_STREAM_CANNOT_PIPE,B5t=R_.ERR_STREAM_DESTROYED,N5t=R_.ERR_STREAM_NULL_VALUES,U5t=R_.ERR_STREAM_WRITE_AFTER_END,V5t=R_.ERR_UNKNOWN_ENCODING,uA=uj.errorOrDestroy;Uy()(Rh,N5e);function G5t(){}function J4(e,t,r){lA=lA||p2(),e=e||{},typeof r!="boolean"&&(r=t instanceof lA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=D5t(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){K5t(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new B5e(this)}J4.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(J4.prototype,"buffer",{get:k5t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var yR;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(yR=Function.prototype[Symbol.hasInstance],Object.defineProperty(Rh,Symbol.hasInstance,{value:function(t){return yR.call(this,t)?!0:this!==Rh?!1:t&&t._writableState instanceof J4}})):yR=function(t){return t instanceof this};function Rh(e){lA=lA||p2();var t=this instanceof lA;if(!t&&!yR.call(Rh,this))return new Rh(e);this._writableState=new J4(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),N5e.call(this)}Rh.prototype.pipe=function(){uA(this,new q5t)};function H5t(e,t){var r=new U5t;uA(e,r),process.nextTick(t,r)}function j5t(e,t,r,n){var i;return r===null?i=new N5t:typeof r!="string"&&!t.objectMode&&(i=new F5t("chunk",["string","Buffer"],r)),i?(uA(e,i),process.nextTick(n,i),!1):!0}Rh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&I5t(e);return a&&!_R.isBuffer(e)&&(e=P5t(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=G5t),n.ending?H5t(this,r):(a||j5t(this,n,e,r))&&(n.pendingcb++,i=X5t(this,n,a,e,t,r)),i};Rh.prototype.cork=function(){this._writableState.corked++};Rh.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&U5e(this,e))};Rh.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new V5t(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Rh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function W5t(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=_R.from(t,r)),t}Object.defineProperty(Rh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function X5t(e,t,r,n,i,a){if(!r){var o=W5t(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length{"use strict";var rSt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};j5e.exports=qm;var H5e=dj(),hj=cj();Uy()(qm,H5e);for(fj=rSt(hj.prototype),xR=0;xR{var wR=u2(),Bm=wR.Buffer;function W5e(e,t){for(var r in e)t[r]=e[r]}Bm.from&&Bm.alloc&&Bm.allocUnsafe&&Bm.allocUnsafeSlow?X5e.exports=wR:(W5e(wR,vj),vj.Buffer=g2);function g2(e,t,r){return Bm(e,t,r)}g2.prototype=Object.create(Bm.prototype);W5e(Bm,g2);g2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Bm(e,t,r)};g2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Bm(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};g2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Bm(e)};g2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return wR.SlowBuffer(e)}});var mj=ye(K5e=>{"use strict";var gj=Z5e().Buffer,Y5e=gj.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function aSt(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function oSt(e){var t=aSt(e);if(typeof t!="string"&&(gj.isEncoding===Y5e||!Y5e(e)))throw new Error("Unknown encoding: "+e);return t||e}K5e.StringDecoder=$4;function $4(e){this.encoding=oSt(e);var t;switch(this.encoding){case"utf16le":this.text=hSt,this.end=dSt,t=4;break;case"utf8":this.fillLast=uSt,t=4;break;case"base64":this.text=vSt,this.end=pSt,t=3;break;default:this.write=gSt,this.end=mSt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=gj.allocUnsafe(t)}$4.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function sSt(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function lSt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function uSt(e){var t=this.lastTotal-this.lastNeed,r=lSt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function cSt(e,t){var r=sSt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function fSt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function hSt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function dSt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function vSt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function pSt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function gSt(e){return e.toString(this.encoding)}function mSt(e){return e&&e.length?this.write(e):""}});var TR=ye((Wfr,Q5e)=>{"use strict";var J5e=v2().codes.ERR_STREAM_PREMATURE_CLOSE;function ySt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";var AR;function D_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bSt=TR(),F_=Symbol("lastResolve"),m2=Symbol("lastReject"),Q4=Symbol("error"),SR=Symbol("ended"),y2=Symbol("lastPromise"),yj=Symbol("handlePromise"),_2=Symbol("stream");function z_(e,t){return{value:e,done:t}}function wSt(e){var t=e[F_];if(t!==null){var r=e[_2].read();r!==null&&(e[y2]=null,e[F_]=null,e[m2]=null,t(z_(r,!1)))}}function TSt(e){process.nextTick(wSt,e)}function ASt(e,t){return function(r,n){e.then(function(){if(t[SR]){r(z_(void 0,!0));return}t[yj](r,n)},n)}}var SSt=Object.getPrototypeOf(function(){}),MSt=Object.setPrototypeOf((AR={get stream(){return this[_2]},next:function(){var t=this,r=this[Q4];if(r!==null)return Promise.reject(r);if(this[SR])return Promise.resolve(z_(void 0,!0));if(this[_2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[Q4]?s(t[Q4]):o(z_(void 0,!0))})});var n=this[y2],i;if(n)i=new Promise(ASt(n,this));else{var a=this[_2].read();if(a!==null)return Promise.resolve(z_(a,!1));i=new Promise(this[yj])}return this[y2]=i,i}},D_(AR,Symbol.asyncIterator,function(){return this}),D_(AR,"return",function(){var t=this;return new Promise(function(r,n){t[_2].destroy(null,function(i){if(i){n(i);return}r(z_(void 0,!0))})})}),AR),SSt),ESt=function(t){var r,n=Object.create(MSt,(r={},D_(r,_2,{value:t,writable:!0}),D_(r,F_,{value:null,writable:!0}),D_(r,m2,{value:null,writable:!0}),D_(r,Q4,{value:null,writable:!0}),D_(r,SR,{value:t._readableState.endEmitted,writable:!0}),D_(r,yj,{value:function(a,o){var s=n[_2].read();s?(n[y2]=null,n[F_]=null,n[m2]=null,a(z_(s,!1))):(n[F_]=a,n[m2]=o)},writable:!0}),r));return n[y2]=null,bSt(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[m2];a!==null&&(n[y2]=null,n[F_]=null,n[m2]=null,a(i)),n[Q4]=i;return}var o=n[F_];o!==null&&(n[y2]=null,n[F_]=null,n[m2]=null,o(z_(void 0,!0))),n[SR]=!0}),t.on("readable",TSt.bind(null,n)),n};eSe.exports=ESt});var iSe=ye((Zfr,rSe)=>{rSe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var dj=ye((Kfr,dSe)=>{"use strict";dSe.exports=Bu;var cA;Bu.ReadableState=sSe;var Yfr=vb().EventEmitter,oSe=function(t,r){return t.listeners(r).length},tE=uH(),MR=u2().Buffer,CSt=window.Uint8Array||function(){};function kSt(e){return MR.from(e)}function LSt(e){return MR.isBuffer(e)||e instanceof CSt}var _j=rj(),nu;_j&&_j.debuglog?nu=_j.debuglog("stream"):nu=function(){};var PSt=k5e(),Mj=aj(),ISt=oj(),RSt=ISt.getHighWaterMark,ER=v2().codes,DSt=ER.ERR_INVALID_ARG_TYPE,FSt=ER.ERR_STREAM_PUSH_AFTER_EOF,zSt=ER.ERR_METHOD_NOT_IMPLEMENTED,OSt=ER.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,fA,xj,bj;Uy()(Bu,tE);var eE=Mj.errorOrDestroy,wj=["error","close","destroy","pause","resume"];function qSt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function sSe(e,t,r){cA=cA||p2(),e=e||{},typeof r!="boolean"&&(r=t instanceof cA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=RSt(this,e,"readableHighWaterMark",r),this.buffer=new PSt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(fA||(fA=mj().StringDecoder),this.decoder=new fA(e.encoding),this.encoding=e.encoding)}function Bu(e){if(cA=cA||p2(),!(this instanceof Bu))return new Bu(e);var t=this instanceof cA;this._readableState=new sSe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),tE.call(this)}Object.defineProperty(Bu.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Bu.prototype.destroy=Mj.destroy;Bu.prototype._undestroy=Mj.undestroy;Bu.prototype._destroy=function(e,t){t(e)};Bu.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=MR.from(e,t),t=""),n=!0),lSe(this,e,t,!1,n)};Bu.prototype.unshift=function(e){return lSe(this,e,null,!0,!1)};function lSe(e,t,r,n,i){nu("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,USt(e,a);else{var o;if(i||(o=BSt(a,t)),o)eE(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==MR.prototype&&(t=kSt(t)),n)a.endEmitted?eE(e,new OSt):Tj(e,a,t,!0);else if(a.ended)eE(e,new FSt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?Tj(e,a,t,!1):Sj(e,a)):Tj(e,a,t,!1)}else n||(a.reading=!1,Sj(e,a))}return!a.ended&&(a.length=nSe?e=nSe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function aSe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=NSt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Bu.prototype.read=function(e){nu("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return nu("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Aj(this):CR(this),null;if(e=aSe(e,t),e===0&&t.ended)return t.length===0&&Aj(this),null;var n=t.needReadable;nu("need readable",n),(t.length===0||t.length-e0?i=fSe(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Aj(this)),i!==null&&this.emit("data",i),i};function USt(e,t){if(nu("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?CR(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,uSe(e)))}}function CR(e){var t=e._readableState;nu("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(nu("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(uSe,e))}function uSe(e){var t=e._readableState;nu("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Ej(e)}function Sj(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(VSt,e,t))}function VSt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&hSe(n.pipes,e)!==-1)&&!u&&(nu("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){nu("onerror",b),x(),e.removeListener("error",h),oSe(e,"error")===0&&eE(e,b)}qSt(e,"error",h);function d(){e.removeListener("finish",v),x()}e.once("close",d);function v(){nu("onfinish"),e.removeListener("close",d),x()}e.once("finish",v);function x(){nu("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(nu("pipe resume"),r.resume()),e};function GSt(e){return function(){var r=e._readableState;nu("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&oSe(e,"data")&&(r.flowing=!0,Ej(e))}}Bu.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,nu("on readable",n.length,n.reading),n.length?CR(this):n.reading||process.nextTick(HSt,this)),r};Bu.prototype.addListener=Bu.prototype.on;Bu.prototype.removeListener=function(e,t){var r=tE.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(cSe,this),r};Bu.prototype.removeAllListeners=function(e){var t=tE.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(cSe,this),t};function cSe(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function HSt(e){nu("readable nexttick read 0"),e.read(0)}Bu.prototype.resume=function(){var e=this._readableState;return e.flowing||(nu("resume"),e.flowing=!e.readableListening,jSt(this,e)),e.paused=!1,this};function jSt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(WSt,e,t))}function WSt(e,t){nu("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Ej(e),t.flowing&&!t.reading&&e.read(0)}Bu.prototype.pause=function(){return nu("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(nu("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ej(e){var t=e._readableState;for(nu("flow",t.flowing);t.flowing&&e.read()!==null;);}Bu.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(nu("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(nu("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(s){return function(){return e[s].apply(e,arguments)}}(i));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function Aj(e){var t=e._readableState;nu("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(XSt,t,e))}function XSt(e,t){if(nu("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(Bu.from=function(e,t){return bj===void 0&&(bj=iSe()),bj(Bu,e,t)});function hSe(e,t){for(var r=0,n=e.length;r{"use strict";pSe.exports=Gy;var kR=v2().codes,ZSt=kR.ERR_METHOD_NOT_IMPLEMENTED,YSt=kR.ERR_MULTIPLE_CALLBACK,KSt=kR.ERR_TRANSFORM_ALREADY_TRANSFORMING,JSt=kR.ERR_TRANSFORM_WITH_LENGTH_0,LR=p2();Uy()(Gy,LR);function $St(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new YSt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";mSe.exports=rE;var gSe=Cj();Uy()(rE,gSe);function rE(e){if(!(this instanceof rE))return new rE(e);gSe.call(this,e)}rE.prototype._transform=function(e,t,r){r(null,e)}});var TSe=ye((Qfr,wSe)=>{"use strict";var kj;function eMt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var bSe=v2().codes,tMt=bSe.ERR_MISSING_ARGS,rMt=bSe.ERR_STREAM_DESTROYED;function _Se(e){if(e)throw e}function iMt(e){return e.setHeader&&typeof e.abort=="function"}function nMt(e,t,r,n){n=eMt(n);var i=!1;e.on("close",function(){i=!0}),kj===void 0&&(kj=TR()),kj(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,iMt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new rMt("pipe"))}}}function xSe(e){e()}function aMt(e,t){return e.pipe(t)}function oMt(e){return!e.length||typeof e[e.length-1]!="function"?_Se:e.pop()}function sMt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return nMt(o,l,u,function(c){i||(i=c),c&&a.forEach(xSe),!l&&(a.forEach(xSe),n(i))})});return t.reduce(aMt)}wSe.exports=sMt});var SSe=ye((ehr,ASe)=>{ASe.exports=K0;var Lj=vb().EventEmitter,lMt=Uy();lMt(K0,Lj);K0.Readable=dj();K0.Writable=cj();K0.Duplex=p2();K0.Transform=Cj();K0.PassThrough=ySe();K0.finished=TR();K0.pipeline=TSe();K0.Stream=K0;function K0(){Lj.call(this)}K0.prototype.pipe=function(e,t){var r=this;function n(c){e.writable&&e.write(c)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function l(c){if(u(),Lj.listenerCount(this,"error")===0)throw c}r.on("error",l),e.on("error",l);function u(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}});var dA=ye(fu=>{var MSe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Dj(t)?r.showHidden=t:t&&fu._extend(r,t),b2(r.showHidden)&&(r.showHidden=!1),b2(r.depth)&&(r.depth=2),b2(r.colors)&&(r.colors=!1),b2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=cMt),DR(r,e,r.depth)}fu.inspect=O_;O_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};O_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function cMt(e,t){var r=O_.styles[t];return r?"\x1B["+O_.colors[r][0]+"m"+e+"\x1B["+O_.colors[r][1]+"m":e}function fMt(e,t){return e}function hMt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function DR(e,t,r){if(e.customInspect&&t&&RR(t.inspect)&&t.inspect!==fu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return OR(n)||(n=DR(e,n,r)),n}var i=dMt(e,t);if(i)return i;var a=Object.keys(t),o=hMt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),nE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Pj(t);if(a.length===0){if(RR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(iE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(FR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(nE(t))return Pj(t)}var l="",u=!1,c=["{","}"];if(CSe(t)&&(u=!0,c=["[","]"]),RR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(iE(t)&&(l=" "+RegExp.prototype.toString.call(t)),FR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),nE(t)&&(l=" "+Pj(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return iE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=vMt(e,t,r,o,a):h=a.map(function(d){return Rj(e,t,r,o,d,u)}),e.seen.pop(),pMt(h,l,c)}function dMt(e,t){if(b2(t))return e.stylize("undefined","undefined");if(OR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(kSe(t))return e.stylize(""+t,"number");if(Dj(t))return e.stylize(""+t,"boolean");if(zR(t))return e.stylize("null","null")}function Pj(e){return"["+Error.prototype.toString.call(e)+"]"}function vMt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o{"use strict";function C5e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function d5t(e){for(var t=1;t0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return gR.alloc(0);for(var n=gR.allocUnsafe(r>>>0),i=this.head,a=0;i;)x5t(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=gR.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,s),r-=s,r===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:_5t,value:function(r,n){return ij(this,d5t({},n,{depth:0,customInspect:!1}))}}]),e}()});var aj=ye((Ufr,R5e)=>{"use strict";function b5t(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(nj,this,e)):process.nextTick(nj,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(mR,r):(r._writableState.errorEmitted=!0,process.nextTick(I5e,r,a)):process.nextTick(I5e,r,a):t?(process.nextTick(mR,r),t(a)):process.nextTick(mR,r)}),this)}function I5e(e,t){nj(e,t),mR(e)}function mR(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function w5t(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function nj(e,t){e.emit("error",t)}function T5t(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}R5e.exports={destroy:b5t,undestroy:w5t,errorOrDestroy:T5t}});var v2=ye((Vfr,z5e)=>{"use strict";function A5t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var F5e={};function K0(e,t,r){r||(r=Error);function n(a,o,s){return typeof t=="string"?t:t(a,o,s)}var i=function(a){A5t(o,a);function o(s,l,u){return a.call(this,n(s,l,u))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,F5e[e]=i}function D5e(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function S5t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function M5t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function E5t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}K0("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);K0("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&S5t(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(M5t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(D5e(t,"type"));else{var a=E5t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(D5e(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);K0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");K0("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});K0("ERR_STREAM_PREMATURE_CLOSE","Premature close");K0("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});K0("ERR_MULTIPLE_CALLBACK","Callback called multiple times");K0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");K0("ERR_STREAM_WRITE_AFTER_END","write after end");K0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);K0("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);K0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");z5e.exports.codes=F5e});var oj=ye((Gfr,O5e)=>{"use strict";var C5t=v2().codes.ERR_INVALID_OPT_VALUE;function k5t(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function L5t(e,t,r,n){var i=k5t(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new C5t(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}O5e.exports={getHighWaterMark:L5t}});var B5e=ye((Hfr,q5e)=>{q5e.exports=P5t;function P5t(e,t){if(sj("noDeprecation"))return e;var r=!1;function n(){if(!r){if(sj("throwDeprecation"))throw new Error(t);sj("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function sj(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var cj=ye((jfr,j5e)=>{"use strict";j5e.exports=Rh;function U5e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){nSt(t,e)}}var uA;Rh.WritableState=$4;var I5t={deprecate:B5e()},V5e=uH(),_R=u2().Buffer,R5t=window.Uint8Array||function(){};function D5t(e){return _R.from(e)}function F5t(e){return _R.isBuffer(e)||e instanceof R5t}var uj=aj(),z5t=oj(),O5t=z5t.getHighWaterMark,R_=v2().codes,q5t=R_.ERR_INVALID_ARG_TYPE,B5t=R_.ERR_METHOD_NOT_IMPLEMENTED,N5t=R_.ERR_MULTIPLE_CALLBACK,U5t=R_.ERR_STREAM_CANNOT_PIPE,V5t=R_.ERR_STREAM_DESTROYED,G5t=R_.ERR_STREAM_NULL_VALUES,H5t=R_.ERR_STREAM_WRITE_AFTER_END,j5t=R_.ERR_UNKNOWN_ENCODING,cA=uj.errorOrDestroy;Uy()(Rh,V5e);function W5t(){}function $4(e,t,r){uA=uA||p2(),e=e||{},typeof r!="boolean"&&(r=t instanceof uA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=O5t(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Q5t(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new U5e(this)}$4.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty($4.prototype,"buffer",{get:I5t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var yR;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(yR=Function.prototype[Symbol.hasInstance],Object.defineProperty(Rh,Symbol.hasInstance,{value:function(t){return yR.call(this,t)?!0:this!==Rh?!1:t&&t._writableState instanceof $4}})):yR=function(t){return t instanceof this};function Rh(e){uA=uA||p2();var t=this instanceof uA;if(!t&&!yR.call(Rh,this))return new Rh(e);this._writableState=new $4(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),V5e.call(this)}Rh.prototype.pipe=function(){cA(this,new U5t)};function X5t(e,t){var r=new H5t;cA(e,r),process.nextTick(t,r)}function Z5t(e,t,r,n){var i;return r===null?i=new G5t:typeof r!="string"&&!t.objectMode&&(i=new q5t("chunk",["string","Buffer"],r)),i?(cA(e,i),process.nextTick(n,i),!1):!0}Rh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&F5t(e);return a&&!_R.isBuffer(e)&&(e=D5t(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=W5t),n.ending?X5t(this,r):(a||Z5t(this,n,e,r))&&(n.pendingcb++,i=K5t(this,n,a,e,t,r)),i};Rh.prototype.cork=function(){this._writableState.corked++};Rh.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&G5e(this,e))};Rh.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new j5t(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Rh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Y5t(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=_R.from(t,r)),t}Object.defineProperty(Rh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function K5t(e,t,r,n,i,a){if(!r){var o=Y5t(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length{"use strict";var aSt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};X5e.exports=qm;var W5e=dj(),hj=cj();Uy()(qm,W5e);for(fj=aSt(hj.prototype),xR=0;xR{var wR=u2(),Bm=wR.Buffer;function Z5e(e,t){for(var r in e)t[r]=e[r]}Bm.from&&Bm.alloc&&Bm.allocUnsafe&&Bm.allocUnsafeSlow?Y5e.exports=wR:(Z5e(wR,vj),vj.Buffer=g2);function g2(e,t,r){return Bm(e,t,r)}g2.prototype=Object.create(Bm.prototype);Z5e(Bm,g2);g2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Bm(e,t,r)};g2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Bm(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};g2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Bm(e)};g2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return wR.SlowBuffer(e)}});var mj=ye($5e=>{"use strict";var gj=K5e().Buffer,J5e=gj.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function lSt(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function uSt(e){var t=lSt(e);if(typeof t!="string"&&(gj.isEncoding===J5e||!J5e(e)))throw new Error("Unknown encoding: "+e);return t||e}$5e.StringDecoder=Q4;function Q4(e){this.encoding=uSt(e);var t;switch(this.encoding){case"utf16le":this.text=pSt,this.end=gSt,t=4;break;case"utf8":this.fillLast=hSt,t=4;break;case"base64":this.text=mSt,this.end=ySt,t=3;break;default:this.write=_St,this.end=xSt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=gj.allocUnsafe(t)}Q4.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function cSt(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function fSt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function hSt(e){var t=this.lastTotal-this.lastNeed,r=fSt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function dSt(e,t){var r=cSt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function vSt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function pSt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function gSt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function mSt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function ySt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function _St(e){return e.toString(this.encoding)}function xSt(e){return e&&e.length?this.write(e):""}});var TR=ye((Zfr,tSe)=>{"use strict";var Q5e=v2().codes.ERR_STREAM_PREMATURE_CLOSE;function bSt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";var AR;function D_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ASt=TR(),F_=Symbol("lastResolve"),m2=Symbol("lastReject"),eE=Symbol("error"),SR=Symbol("ended"),y2=Symbol("lastPromise"),yj=Symbol("handlePromise"),_2=Symbol("stream");function z_(e,t){return{value:e,done:t}}function SSt(e){var t=e[F_];if(t!==null){var r=e[_2].read();r!==null&&(e[y2]=null,e[F_]=null,e[m2]=null,t(z_(r,!1)))}}function MSt(e){process.nextTick(SSt,e)}function ESt(e,t){return function(r,n){e.then(function(){if(t[SR]){r(z_(void 0,!0));return}t[yj](r,n)},n)}}var CSt=Object.getPrototypeOf(function(){}),kSt=Object.setPrototypeOf((AR={get stream(){return this[_2]},next:function(){var t=this,r=this[eE];if(r!==null)return Promise.reject(r);if(this[SR])return Promise.resolve(z_(void 0,!0));if(this[_2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[eE]?s(t[eE]):o(z_(void 0,!0))})});var n=this[y2],i;if(n)i=new Promise(ESt(n,this));else{var a=this[_2].read();if(a!==null)return Promise.resolve(z_(a,!1));i=new Promise(this[yj])}return this[y2]=i,i}},D_(AR,Symbol.asyncIterator,function(){return this}),D_(AR,"return",function(){var t=this;return new Promise(function(r,n){t[_2].destroy(null,function(i){if(i){n(i);return}r(z_(void 0,!0))})})}),AR),CSt),LSt=function(t){var r,n=Object.create(kSt,(r={},D_(r,_2,{value:t,writable:!0}),D_(r,F_,{value:null,writable:!0}),D_(r,m2,{value:null,writable:!0}),D_(r,eE,{value:null,writable:!0}),D_(r,SR,{value:t._readableState.endEmitted,writable:!0}),D_(r,yj,{value:function(a,o){var s=n[_2].read();s?(n[y2]=null,n[F_]=null,n[m2]=null,a(z_(s,!1))):(n[F_]=a,n[m2]=o)},writable:!0}),r));return n[y2]=null,ASt(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[m2];a!==null&&(n[y2]=null,n[F_]=null,n[m2]=null,a(i)),n[eE]=i;return}var o=n[F_];o!==null&&(n[y2]=null,n[F_]=null,n[m2]=null,o(z_(void 0,!0))),n[SR]=!0}),t.on("readable",MSt.bind(null,n)),n};rSe.exports=LSt});var aSe=ye((Kfr,nSe)=>{nSe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var dj=ye(($fr,pSe)=>{"use strict";pSe.exports=Bu;var fA;Bu.ReadableState=uSe;var Jfr=vb().EventEmitter,lSe=function(t,r){return t.listeners(r).length},rE=uH(),MR=u2().Buffer,PSt=window.Uint8Array||function(){};function ISt(e){return MR.from(e)}function RSt(e){return MR.isBuffer(e)||e instanceof PSt}var _j=rj(),nu;_j&&_j.debuglog?nu=_j.debuglog("stream"):nu=function(){};var DSt=P5e(),Mj=aj(),FSt=oj(),zSt=FSt.getHighWaterMark,ER=v2().codes,OSt=ER.ERR_INVALID_ARG_TYPE,qSt=ER.ERR_STREAM_PUSH_AFTER_EOF,BSt=ER.ERR_METHOD_NOT_IMPLEMENTED,NSt=ER.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,hA,xj,bj;Uy()(Bu,rE);var tE=Mj.errorOrDestroy,wj=["error","close","destroy","pause","resume"];function USt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function uSe(e,t,r){fA=fA||p2(),e=e||{},typeof r!="boolean"&&(r=t instanceof fA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=zSt(this,e,"readableHighWaterMark",r),this.buffer=new DSt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(hA||(hA=mj().StringDecoder),this.decoder=new hA(e.encoding),this.encoding=e.encoding)}function Bu(e){if(fA=fA||p2(),!(this instanceof Bu))return new Bu(e);var t=this instanceof fA;this._readableState=new uSe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),rE.call(this)}Object.defineProperty(Bu.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Bu.prototype.destroy=Mj.destroy;Bu.prototype._undestroy=Mj.undestroy;Bu.prototype._destroy=function(e,t){t(e)};Bu.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=MR.from(e,t),t=""),n=!0),cSe(this,e,t,!1,n)};Bu.prototype.unshift=function(e){return cSe(this,e,null,!0,!1)};function cSe(e,t,r,n,i){nu("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,HSt(e,a);else{var o;if(i||(o=VSt(a,t)),o)tE(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==MR.prototype&&(t=ISt(t)),n)a.endEmitted?tE(e,new NSt):Tj(e,a,t,!0);else if(a.ended)tE(e,new qSt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?Tj(e,a,t,!1):Sj(e,a)):Tj(e,a,t,!1)}else n||(a.reading=!1,Sj(e,a))}return!a.ended&&(a.length=oSe?e=oSe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function sSe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=GSt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Bu.prototype.read=function(e){nu("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return nu("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Aj(this):CR(this),null;if(e=sSe(e,t),e===0&&t.ended)return t.length===0&&Aj(this),null;var n=t.needReadable;nu("need readable",n),(t.length===0||t.length-e0?i=dSe(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Aj(this)),i!==null&&this.emit("data",i),i};function HSt(e,t){if(nu("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?CR(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,fSe(e)))}}function CR(e){var t=e._readableState;nu("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(nu("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(fSe,e))}function fSe(e){var t=e._readableState;nu("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Ej(e)}function Sj(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(jSt,e,t))}function jSt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&vSe(n.pipes,e)!==-1)&&!u&&(nu("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){nu("onerror",b),_(),e.removeListener("error",h),lSe(e,"error")===0&&tE(e,b)}USt(e,"error",h);function d(){e.removeListener("finish",v),_()}e.once("close",d);function v(){nu("onfinish"),e.removeListener("close",d),_()}e.once("finish",v);function _(){nu("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(nu("pipe resume"),r.resume()),e};function WSt(e){return function(){var r=e._readableState;nu("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&lSe(e,"data")&&(r.flowing=!0,Ej(e))}}Bu.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,nu("on readable",n.length,n.reading),n.length?CR(this):n.reading||process.nextTick(XSt,this)),r};Bu.prototype.addListener=Bu.prototype.on;Bu.prototype.removeListener=function(e,t){var r=rE.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(hSe,this),r};Bu.prototype.removeAllListeners=function(e){var t=rE.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(hSe,this),t};function hSe(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function XSt(e){nu("readable nexttick read 0"),e.read(0)}Bu.prototype.resume=function(){var e=this._readableState;return e.flowing||(nu("resume"),e.flowing=!e.readableListening,ZSt(this,e)),e.paused=!1,this};function ZSt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(YSt,e,t))}function YSt(e,t){nu("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Ej(e),t.flowing&&!t.reading&&e.read(0)}Bu.prototype.pause=function(){return nu("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(nu("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ej(e){var t=e._readableState;for(nu("flow",t.flowing);t.flowing&&e.read()!==null;);}Bu.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(nu("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(nu("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(s){return function(){return e[s].apply(e,arguments)}}(i));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function Aj(e){var t=e._readableState;nu("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(KSt,t,e))}function KSt(e,t){if(nu("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(Bu.from=function(e,t){return bj===void 0&&(bj=aSe()),bj(Bu,e,t)});function vSe(e,t){for(var r=0,n=e.length;r{"use strict";mSe.exports=Gy;var kR=v2().codes,JSt=kR.ERR_METHOD_NOT_IMPLEMENTED,$St=kR.ERR_MULTIPLE_CALLBACK,QSt=kR.ERR_TRANSFORM_ALREADY_TRANSFORMING,eMt=kR.ERR_TRANSFORM_WITH_LENGTH_0,LR=p2();Uy()(Gy,LR);function tMt(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new $St);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";_Se.exports=iE;var ySe=Cj();Uy()(iE,ySe);function iE(e){if(!(this instanceof iE))return new iE(e);ySe.call(this,e)}iE.prototype._transform=function(e,t,r){r(null,e)}});var SSe=ye((thr,ASe)=>{"use strict";var kj;function iMt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var TSe=v2().codes,nMt=TSe.ERR_MISSING_ARGS,aMt=TSe.ERR_STREAM_DESTROYED;function bSe(e){if(e)throw e}function oMt(e){return e.setHeader&&typeof e.abort=="function"}function sMt(e,t,r,n){n=iMt(n);var i=!1;e.on("close",function(){i=!0}),kj===void 0&&(kj=TR()),kj(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,oMt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new aMt("pipe"))}}}function wSe(e){e()}function lMt(e,t){return e.pipe(t)}function uMt(e){return!e.length||typeof e[e.length-1]!="function"?bSe:e.pop()}function cMt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return sMt(o,l,u,function(c){i||(i=c),c&&a.forEach(wSe),!l&&(a.forEach(wSe),n(i))})});return t.reduce(lMt)}ASe.exports=cMt});var ESe=ye((rhr,MSe)=>{MSe.exports=J0;var Lj=vb().EventEmitter,fMt=Uy();fMt(J0,Lj);J0.Readable=dj();J0.Writable=cj();J0.Duplex=p2();J0.Transform=Cj();J0.PassThrough=xSe();J0.finished=TR();J0.pipeline=SSe();J0.Stream=J0;function J0(){Lj.call(this)}J0.prototype.pipe=function(e,t){var r=this;function n(c){e.writable&&e.write(c)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function l(c){if(u(),Lj.listenerCount(this,"error")===0)throw c}r.on("error",l),e.on("error",l);function u(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}});var vA=ye(fu=>{var CSe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Dj(t)?r.showHidden=t:t&&fu._extend(r,t),b2(r.showHidden)&&(r.showHidden=!1),b2(r.depth)&&(r.depth=2),b2(r.colors)&&(r.colors=!1),b2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=dMt),DR(r,e,r.depth)}fu.inspect=O_;O_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};O_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function dMt(e,t){var r=O_.styles[t];return r?"\x1B["+O_.colors[r][0]+"m"+e+"\x1B["+O_.colors[r][1]+"m":e}function vMt(e,t){return e}function pMt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function DR(e,t,r){if(e.customInspect&&t&&RR(t.inspect)&&t.inspect!==fu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return OR(n)||(n=DR(e,n,r)),n}var i=gMt(e,t);if(i)return i;var a=Object.keys(t),o=pMt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),aE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Pj(t);if(a.length===0){if(RR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(nE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(FR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(aE(t))return Pj(t)}var l="",u=!1,c=["{","}"];if(LSe(t)&&(u=!0,c=["[","]"]),RR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(nE(t)&&(l=" "+RegExp.prototype.toString.call(t)),FR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),aE(t)&&(l=" "+Pj(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return nE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=mMt(e,t,r,o,a):h=a.map(function(d){return Rj(e,t,r,o,d,u)}),e.seen.pop(),yMt(h,l,c)}function gMt(e,t){if(b2(t))return e.stylize("undefined","undefined");if(OR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(PSe(t))return e.stylize(""+t,"number");if(Dj(t))return e.stylize(""+t,"boolean");if(zR(t))return e.stylize("null","null")}function Pj(e){return"["+Error.prototype.toString.call(e)+"]"}function mMt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(u){return" "+u}).join(` `).slice(2):s=` `+s.split(` `).map(function(u){return" "+u}).join(` -`))):s=e.stylize("[Circular]","special")),b2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function pMt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),b2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function yMt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` `)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}fu.types=YH();function CSe(e){return Array.isArray(e)}fu.isArray=CSe;function Dj(e){return typeof e=="boolean"}fu.isBoolean=Dj;function zR(e){return e===null}fu.isNull=zR;function gMt(e){return e==null}fu.isNullOrUndefined=gMt;function kSe(e){return typeof e=="number"}fu.isNumber=kSe;function OR(e){return typeof e=="string"}fu.isString=OR;function mMt(e){return typeof e=="symbol"}fu.isSymbol=mMt;function b2(e){return e===void 0}fu.isUndefined=b2;function iE(e){return hA(e)&&Fj(e)==="[object RegExp]"}fu.isRegExp=iE;fu.types.isRegExp=iE;function hA(e){return typeof e=="object"&&e!==null}fu.isObject=hA;function FR(e){return hA(e)&&Fj(e)==="[object Date]"}fu.isDate=FR;fu.types.isDate=FR;function nE(e){return hA(e)&&(Fj(e)==="[object Error]"||e instanceof Error)}fu.isError=nE;fu.types.isNativeError=nE;function RR(e){return typeof e=="function"}fu.isFunction=RR;function yMt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}fu.isPrimitive=yMt;fu.isBuffer=KH();function Fj(e){return Object.prototype.toString.call(e)}function Ij(e){return e<10?"0"+e.toString(10):e.toString(10)}var _Mt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function xMt(){var e=new Date,t=[Ij(e.getHours()),Ij(e.getMinutes()),Ij(e.getSeconds())].join(":");return[e.getDate(),_Mt[e.getMonth()],t].join(" ")}fu.log=function(){console.log("%s - %s",xMt(),fu.format.apply(fu,arguments))};fu.inherits=Uy();fu._extend=function(e,t){if(!t||!hA(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function LSe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var x2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;fu.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(x2&&t[x2]){var r=t[x2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,x2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(l,u){n=l,i=u}),o=[],s=0;s{"use strict";function q_(e){"@babel/helpers - typeof";return q_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q_(e)}function PSe(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function IMt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function RMt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function DMt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}aE("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);aE("ERR_INVALID_ARG_TYPE",function(e,t,r){vA===void 0&&(vA=oE()),vA(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&IMt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(RMt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(ISe(t,"type"));else{var a=DMt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(ISe(t,"type"))}return i+=". Received type ".concat(q_(r)),i},TypeError);aE("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";zj===void 0&&(zj=dA());var n=zj.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);aE("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(q_(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);aE("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);DSe.exports.codes=RSe});var HSe=ye((ihr,GSe)=>{"use strict";function FSe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zSe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function jMt(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var Hg="",sE="",lE="",wv="",w2={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},WMt=10;function BSe(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function uE(e){return Uj(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function XMt(e,t,r){var n="",i="",a=0,o="",s=!1,l=uE(e),u=l.split(` -`),c=uE(t).split(` -`),f=0,h="";if(r==="strictEqual"&&Rp(e)==="object"&&Rp(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),u.length===1&&c.length===1&&u[0]!==c[0]){var d=u[0].length+c[0].length;if(d<=WMt){if((Rp(e)!=="object"||e===null)&&(Rp(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(w2[r],` + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}fu.types=YH();function LSe(e){return Array.isArray(e)}fu.isArray=LSe;function Dj(e){return typeof e=="boolean"}fu.isBoolean=Dj;function zR(e){return e===null}fu.isNull=zR;function _Mt(e){return e==null}fu.isNullOrUndefined=_Mt;function PSe(e){return typeof e=="number"}fu.isNumber=PSe;function OR(e){return typeof e=="string"}fu.isString=OR;function xMt(e){return typeof e=="symbol"}fu.isSymbol=xMt;function b2(e){return e===void 0}fu.isUndefined=b2;function nE(e){return dA(e)&&Fj(e)==="[object RegExp]"}fu.isRegExp=nE;fu.types.isRegExp=nE;function dA(e){return typeof e=="object"&&e!==null}fu.isObject=dA;function FR(e){return dA(e)&&Fj(e)==="[object Date]"}fu.isDate=FR;fu.types.isDate=FR;function aE(e){return dA(e)&&(Fj(e)==="[object Error]"||e instanceof Error)}fu.isError=aE;fu.types.isNativeError=aE;function RR(e){return typeof e=="function"}fu.isFunction=RR;function bMt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}fu.isPrimitive=bMt;fu.isBuffer=KH();function Fj(e){return Object.prototype.toString.call(e)}function Ij(e){return e<10?"0"+e.toString(10):e.toString(10)}var wMt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function TMt(){var e=new Date,t=[Ij(e.getHours()),Ij(e.getMinutes()),Ij(e.getSeconds())].join(":");return[e.getDate(),wMt[e.getMonth()],t].join(" ")}fu.log=function(){console.log("%s - %s",TMt(),fu.format.apply(fu,arguments))};fu.inherits=Uy();fu._extend=function(e,t){if(!t||!dA(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function ISe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var x2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;fu.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(x2&&t[x2]){var r=t[x2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,x2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(l,u){n=l,i=u}),o=[],s=0;s{"use strict";function q_(e){"@babel/helpers - typeof";return q_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q_(e)}function RSe(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function FMt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function zMt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function OMt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}oE("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);oE("ERR_INVALID_ARG_TYPE",function(e,t,r){pA===void 0&&(pA=sE()),pA(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&FMt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(zMt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(DSe(t,"type"));else{var a=OMt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(DSe(t,"type"))}return i+=". Received type ".concat(q_(r)),i},TypeError);oE("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";zj===void 0&&(zj=vA());var n=zj.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);oE("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(q_(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);oE("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);zSe.exports.codes=FSe});var WSe=ye((ahr,jSe)=>{"use strict";function OSe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qSe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function ZMt(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var Hg="",lE="",uE="",wv="",w2={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},YMt=10;function USe(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function cE(e){return Uj(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function KMt(e,t,r){var n="",i="",a=0,o="",s=!1,l=cE(e),u=l.split(` +`),c=cE(t).split(` +`),f=0,h="";if(r==="strictEqual"&&Rp(e)==="object"&&Rp(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),u.length===1&&c.length===1&&u[0]!==c[0]){var d=u[0].length+c[0].length;if(d<=YMt){if((Rp(e)!=="object"||e===null)&&(Rp(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(w2[r],` `)+"".concat(u[0]," !== ").concat(c[0],` `)}else if(r!=="strictEqualObject"){var v=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(h=` - `.concat(jMt(" ",f),"^"),f=0)}}}for(var x=u[u.length-1],b=c[c.length-1];x===b&&(f++<2?o=` - `.concat(x).concat(o):n=x,u.pop(),c.pop(),!(u.length===0||c.length===0));)x=u[u.length-1],b=c[c.length-1];var p=Math.max(u.length,c.length);if(p===0){var C=l.split(` + `.concat(ZMt(" ",f),"^"),f=0)}}}for(var _=u[u.length-1],b=c[c.length-1];_===b&&(f++<2?o=` + `.concat(_).concat(o):n=_,u.pop(),c.pop(),!(u.length===0||c.length===0));)_=u[u.length-1],b=c[c.length-1];var p=Math.max(u.length,c.length);if(p===0){var C=l.split(` `);if(C.length>30)for(C[26]="".concat(Hg,"...").concat(wv);C.length>27;)C.pop();return"".concat(w2.notIdentical,` `).concat(C.join(` @@ -52,53 +52,53 @@ `)}f>3&&(o=` `.concat(Hg,"...").concat(wv).concat(o),s=!0),n!==""&&(o=` `.concat(n).concat(o),n="");var E=0,A=w2[r]+` -`.concat(sE,"+ actual").concat(wv," ").concat(lE,"- expected").concat(wv),L=" ".concat(Hg,"...").concat(wv," Lines skipped");for(f=0;f1&&f>2&&(_>4?(i+=` -`.concat(Hg,"...").concat(wv),s=!0):_>3&&(i+=` +`.concat(lE,"+ actual").concat(wv," ").concat(uE,"- expected").concat(wv),L=" ".concat(Hg,"...").concat(wv," Lines skipped");for(f=0;f1&&f>2&&(x>4?(i+=` +`.concat(Hg,"...").concat(wv),s=!0):x>3&&(i+=` `.concat(c[f-2]),E++),i+=` `.concat(c[f-1]),E++),a=f,n+=` -`.concat(lE,"-").concat(wv," ").concat(c[f]),E++;else if(c.length1&&f>2&&(_>4?(i+=` -`.concat(Hg,"...").concat(wv),s=!0):_>3&&(i+=` +`.concat(uE,"-").concat(wv," ").concat(c[f]),E++;else if(c.length1&&f>2&&(x>4?(i+=` +`.concat(Hg,"...").concat(wv),s=!0):x>3&&(i+=` `.concat(u[f-2]),E++),i+=` `.concat(u[f-1]),E++),a=f,i+=` -`.concat(sE,"+").concat(wv," ").concat(u[f]),E++;else{var k=c[f],M=u[f],g=M!==k&&(!qSe(M,",")||M.slice(0,-1)!==k);g&&qSe(k,",")&&k.slice(0,-1)===M&&(g=!1,M+=","),g?(_>1&&f>2&&(_>4?(i+=` -`.concat(Hg,"...").concat(wv),s=!0):_>3&&(i+=` +`.concat(lE,"+").concat(wv," ").concat(u[f]),E++;else{var k=c[f],M=u[f],g=M!==k&&(!NSe(M,",")||M.slice(0,-1)!==k);g&&NSe(k,",")&&k.slice(0,-1)===M&&(g=!1,M+=","),g?(x>1&&f>2&&(x>4?(i+=` +`.concat(Hg,"...").concat(wv),s=!0):x>3&&(i+=` `.concat(u[f-2]),E++),i+=` `.concat(u[f-1]),E++),a=f,i+=` -`.concat(sE,"+").concat(wv," ").concat(M),n+=` -`.concat(lE,"-").concat(wv," ").concat(k),E+=2):(i+=n,n="",(_===1||f===0)&&(i+=` +`.concat(lE,"+").concat(wv," ").concat(M),n+=` +`.concat(uE,"-").concat(wv," ").concat(k),E+=2):(i+=n,n="",(x===1||f===0)&&(i+=` `.concat(M),E++))}if(E>20&&f30)for(d[26]="".concat(Hg,"...").concat(wv);d.length>27;)d.pop();d.length===1?a=r.call(this,"".concat(h," ").concat(d[0])):a=r.call(this,"".concat(h,` `).concat(d.join(` `),` -`))}else{var v=uE(u),x="",b=w2[s];s==="notDeepEqual"||s==="notEqual"?(v="".concat(w2[s],` +`))}else{var v=cE(u),_="",b=w2[s];s==="notDeepEqual"||s==="notEqual"?(v="".concat(w2[s],` -`).concat(v),v.length>1024&&(v="".concat(v.slice(0,1021),"..."))):(x="".concat(uE(c)),v.length>512&&(v="".concat(v.slice(0,509),"...")),x.length>512&&(x="".concat(x.slice(0,509),"...")),s==="deepEqual"||s==="equal"?v="".concat(b,` +`).concat(v),v.length>1024&&(v="".concat(v.slice(0,1021),"..."))):(_="".concat(cE(c)),v.length>512&&(v="".concat(v.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),s==="deepEqual"||s==="equal"?v="".concat(b,` `).concat(v,` should equal -`):x=" ".concat(s," ").concat(x)),a=r.call(this,"".concat(v).concat(x))}return Error.stackTraceLimit=f,a.generatedMessage=!o,Object.defineProperty(Bj(a),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),a.code="ERR_ASSERTION",a.actual=u,a.expected=c,a.operator=s,Error.captureStackTrace&&Error.captureStackTrace(Bj(a),l),a.stack,a.name="AssertionError",USe(a)}return OMt(n,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return Uj(this,zSe(zSe({},o),{},{customInspect:!1,depth:0}))}}]),n}(Nj(Error),Uj.custom);GSe.exports=ZMt});var Vj=ye((nhr,WSe)=>{"use strict";var jSe=Object.prototype.toString;WSe.exports=function(t){var r=jSe.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&jSe.call(t.callee)==="[object Function]"),n}});var tMe=ye((ahr,eMe)=>{"use strict";var QSe;Object.keys||(hE=Object.prototype.hasOwnProperty,Gj=Object.prototype.toString,XSe=Vj(),Hj=Object.prototype.propertyIsEnumerable,ZSe=!Hj.call({toString:null},"toString"),YSe=Hj.call(function(){},"prototype"),dE=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],NR=function(e){var t=e.constructor;return t&&t.prototype===e},KSe={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},JSe=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!KSe["$"+e]&&hE.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{NR(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),$Se=function(e){if(typeof window=="undefined"||!JSe)return NR(e);try{return NR(e)}catch(t){return!1}},QSe=function(t){var r=t!==null&&typeof t=="object",n=Gj.call(t)==="[object Function]",i=XSe(t),a=r&&Gj.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=YSe&&n;if(a&&t.length>0&&!hE.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var YMt=Array.prototype.slice,KMt=Vj(),rMe=Object.keys,UR=rMe?function(t){return rMe(t)}:tMe(),iMe=Object.keys;UR.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return KMt(n)?iMe(YMt.call(n)):iMe(n)})}else Object.keys=UR;return Object.keys||UR};nMe.exports=UR});var cMe=ye((shr,uMe)=>{"use strict";var JMt=jj(),sMe=V8()(),lMe=nA(),aMe=Object,$Mt=lMe("Array.prototype.push"),oMe=lMe("Object.prototype.propertyIsEnumerable"),QMt=sMe?Object.getOwnPropertySymbols:null;uMe.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=aMe(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var Wj=cMe(),e4t=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var dMe=function(e){return e!==e};vMe.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||dMe(t)&&dMe(r))}});var VR=ye((chr,pMe)=>{"use strict";var r4t=Xj();pMe.exports=function(){return typeof Object.is=="function"?Object.is:r4t}});var vE=ye((fhr,_Me)=>{"use strict";var i4t=jj(),n4t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",a4t=Object.prototype.toString,o4t=Array.prototype.concat,gMe=Object.defineProperty,s4t=function(e){return typeof e=="function"&&a4t.call(e)==="[object Function]"},l4t=kH()(),mMe=gMe&&l4t,u4t=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!s4t(n)||!n())return}mMe?gMe(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},yMe=function(e,t){var r=arguments.length>2?arguments[2]:{},n=i4t(t);n4t&&(n=o4t.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var c4t=VR(),f4t=vE();xMe.exports=function(){var t=c4t();return f4t(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var SMe=ye((dhr,AMe)=>{"use strict";var h4t=vE(),d4t=j4(),v4t=Xj(),wMe=VR(),p4t=bMe(),TMe=d4t(wMe(),Object);h4t(TMe,{getPolyfill:wMe,implementation:v4t,shim:p4t});AMe.exports=TMe});var Zj=ye((vhr,MMe)=>{"use strict";MMe.exports=function(t){return t!==t}});var Yj=ye((phr,EMe)=>{"use strict";var g4t=Zj();EMe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:g4t}});var kMe=ye((ghr,CMe)=>{"use strict";var m4t=vE(),y4t=Yj();CMe.exports=function(){var t=y4t();return m4t(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var RMe=ye((mhr,IMe)=>{"use strict";var _4t=j4(),x4t=vE(),b4t=Zj(),LMe=Yj(),w4t=kMe(),PMe=_4t(LMe(),Number);x4t(PMe,{getPolyfill:LMe,implementation:b4t,shim:w4t});IMe.exports=PMe});var QMe=ye((yhr,$Me)=>{"use strict";function DMe(e,t){return M4t(e)||S4t(e,t)||A4t(e,t)||T4t()}function T4t(){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 A4t(e,t){if(e){if(typeof e=="string")return FMe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return FMe(e,t)}}function FMe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function jR(e){return Object.keys(e).filter(F4t).concat(XR(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function ZMe(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i{"use strict";function jg(e){"@babel/helpers - typeof";return jg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jg(e)}function e4e(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{"use strict";var XSe=Object.prototype.toString;ZSe.exports=function(t){var r=XSe.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&XSe.call(t.callee)==="[object Function]"),n}});var iMe=ye((shr,rMe)=>{"use strict";var tMe;Object.keys||(dE=Object.prototype.hasOwnProperty,Gj=Object.prototype.toString,YSe=Vj(),Hj=Object.prototype.propertyIsEnumerable,KSe=!Hj.call({toString:null},"toString"),JSe=Hj.call(function(){},"prototype"),vE=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],NR=function(e){var t=e.constructor;return t&&t.prototype===e},$Se={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},QSe=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!$Se["$"+e]&&dE.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{NR(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),eMe=function(e){if(typeof window=="undefined"||!QSe)return NR(e);try{return NR(e)}catch(t){return!1}},tMe=function(t){var r=t!==null&&typeof t=="object",n=Gj.call(t)==="[object Function]",i=YSe(t),a=r&&Gj.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=JSe&&n;if(a&&t.length>0&&!dE.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var $Mt=Array.prototype.slice,QMt=Vj(),nMe=Object.keys,UR=nMe?function(t){return nMe(t)}:iMe(),aMe=Object.keys;UR.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return QMt(n)?aMe($Mt.call(n)):aMe(n)})}else Object.keys=UR;return Object.keys||UR};oMe.exports=UR});var hMe=ye((uhr,fMe)=>{"use strict";var e4t=jj(),uMe=V8()(),cMe=aA(),sMe=Object,t4t=cMe("Array.prototype.push"),lMe=cMe("Object.prototype.propertyIsEnumerable"),r4t=uMe?Object.getOwnPropertySymbols:null;fMe.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=sMe(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var Wj=hMe(),i4t=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var pMe=function(e){return e!==e};gMe.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||pMe(t)&&pMe(r))}});var VR=ye((hhr,mMe)=>{"use strict";var a4t=Xj();mMe.exports=function(){return typeof Object.is=="function"?Object.is:a4t}});var pE=ye((dhr,bMe)=>{"use strict";var o4t=jj(),s4t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",l4t=Object.prototype.toString,u4t=Array.prototype.concat,yMe=Object.defineProperty,c4t=function(e){return typeof e=="function"&&l4t.call(e)==="[object Function]"},f4t=kH()(),_Me=yMe&&f4t,h4t=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!c4t(n)||!n())return}_Me?yMe(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},xMe=function(e,t){var r=arguments.length>2?arguments[2]:{},n=o4t(t);s4t&&(n=u4t.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var d4t=VR(),v4t=pE();wMe.exports=function(){var t=d4t();return v4t(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var EMe=ye((phr,MMe)=>{"use strict";var p4t=pE(),g4t=W4(),m4t=Xj(),AMe=VR(),y4t=TMe(),SMe=g4t(AMe(),Object);p4t(SMe,{getPolyfill:AMe,implementation:m4t,shim:y4t});MMe.exports=SMe});var Zj=ye((ghr,CMe)=>{"use strict";CMe.exports=function(t){return t!==t}});var Yj=ye((mhr,kMe)=>{"use strict";var _4t=Zj();kMe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:_4t}});var PMe=ye((yhr,LMe)=>{"use strict";var x4t=pE(),b4t=Yj();LMe.exports=function(){var t=b4t();return x4t(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var FMe=ye((_hr,DMe)=>{"use strict";var w4t=W4(),T4t=pE(),A4t=Zj(),IMe=Yj(),S4t=PMe(),RMe=w4t(IMe(),Number);T4t(RMe,{getPolyfill:IMe,implementation:A4t,shim:S4t});DMe.exports=RMe});var t4e=ye((xhr,e4e)=>{"use strict";function zMe(e,t){return k4t(e)||C4t(e,t)||E4t(e,t)||M4t()}function M4t(){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 E4t(e,t){if(e){if(typeof e=="string")return OMe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OMe(e,t)}}function OMe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function jR(e){return Object.keys(e).filter(q4t).concat(XR(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function KMe(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i{"use strict";function jg(e){"@babel/helpers - typeof";return jg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jg(e)}function r4e(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{var _E=1e3,xE=_E*60,bE=xE*60,wE=bE*24,sEt=wE*365.25;y4e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return lEt(e);if(r==="number"&&isNaN(e)===!1)return t.long?cEt(e):uEt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function lEt(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*sEt;case"days":case"day":case"d":return r*wE;case"hours":case"hour":case"hrs":case"hr":case"h":return r*bE;case"minutes":case"minute":case"mins":case"min":case"m":return r*xE;case"seconds":case"second":case"secs":case"sec":case"s":return r*_E;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function uEt(e){return e>=wE?Math.round(e/wE)+"d":e>=bE?Math.round(e/bE)+"h":e>=xE?Math.round(e/xE)+"m":e>=_E?Math.round(e/_E)+"s":e+"ms"}function cEt(e){return tD(e,wE,"day")||tD(e,bE,"hour")||tD(e,xE,"minute")||tD(e,_E,"second")||e+" ms"}function tD(e,t,r){if(!(e{Lc=x4e.exports=rW.debug=rW.default=rW;Lc.coerce=pEt;Lc.disable=dEt;Lc.enable=hEt;Lc.enabled=vEt;Lc.humanize=_4e();Lc.names=[];Lc.skips=[];Lc.formatters={};var tW;function fEt(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return Lc.colors[Math.abs(t)%Lc.colors.length]}function rW(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(tW||n);r.diff=i,r.prev=tW,r.curr=n,tW=n;for(var a=new Array(arguments.length),o=0;o{sp=T4e.exports=b4e();sp.log=yEt;sp.formatArgs=mEt;sp.save=_Et;sp.load=w4e;sp.useColors=gEt;sp.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:xEt();sp.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function gEt(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}sp.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function mEt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+sp.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}}function yEt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function _Et(e){try{e==null?sp.storage.removeItem("debug"):sp.storage.debug=e}catch(t){}}function w4e(){var e;try{e=sp.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}sp.enable(w4e());function xEt(){try{return window.localStorage}catch(e){}}});var I4e=ye((bhr,P4e)=>{var gA=oE(),V_=A4e()("stream-parser");P4e.exports=wEt;var M4e=-1,rD=0,bEt=1,E4e=2;function wEt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");V_("extending Parser into stream"),e._bytes=TEt,e._skipBytes=AEt,t&&(e._passthrough=SEt),t?e._transform=EEt:e._write=MEt}function TE(e){V_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=M4e,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function TEt(e,t){gA(!this._parserCallback,'there is already a "callback" set!'),gA(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||TE(this),V_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=rD}function AEt(e,t){gA(!this._parserCallback,'there is already a "callback" set!'),gA(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||TE(this),V_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=bEt}function SEt(e,t){gA(!this._parserCallback,'There is already a "callback" set!'),gA(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||TE(this),V_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=E4e}function MEt(e,t,r){this._parserInit||TE(this),V_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),k4e(this,e,null,r)}function EEt(e,t,r){this._parserInit||TE(this),V_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),k4e(this,e,t,r)}function C4e(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return S4e(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return S4e(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return C4e(e,t.slice(i.length),r,n)}})}}function S4e(e,t,r,n){if(e._parserBytesLeft-=t.length,V_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===rD?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===E4e&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===rD&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==rD&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=M4e,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(L4e(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var k4e=L4e(C4e);function L4e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var rc=ye(Hy=>{"use strict";var R4e=SSe().Transform,CEt=I4e();function AE(){R4e.call(this,{readableObjectMode:!0})}AE.prototype=Object.create(R4e.prototype);AE.prototype.constructor=AE;CEt(AE.prototype);Hy.ParserStream=AE;Hy.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var mA=rc().readUInt16BE,nW=rc().readUInt32BE;function SE(e,t){if(e.length<4+t)return null;var r=nW(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=mA(e,6),o=8,s=0;sa.width||i.width===a.width&&i.height>a.height?i:a}),r=e.reduce(function(i,a){return i.height>a.height||i.height===a.height&&i.width>a.width?i:a}),n;return t.width>r.height||t.width===r.height&&t.height>r.width?n=t:n=r,n}nD.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(REt(e,t),!!t.sizes.length){var r=DEt(t.sizes),n=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?n=s[n]:(n=s[n],n=o[n],n=o[n])),a.type==="irot")for(var l=0;l{"use strict";function aD(e,t){var r=new Error(e);return r.code=t,r}function FEt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function jy(e,t,r){this.input=e.subarray(t,r),this.start=t;var n=String.fromCharCode.apply(null,this.input.subarray(0,4));if(n!=="II*\0"&&n!=="MM\0*")throw aD("invalid TIFF signature","EBADDATA");this.big_endian=n[0]==="M"}jy.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};jy.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw aD("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};jy.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw aD("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};jy.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};jy.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};jy.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};jy.prototype.scan_ifd=function(e,t,r){var n=this.read_uint16(t);t+=2;for(var i=0;ithis.input.length)throw aD("unexpected EOF","EBADDATA");for(var h=[],d=c,v=0;v0&&(this.ifds_to_read.push({id:a,offset:h[0]}),f=!0);var b={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:u,data_offset:c+this.start,value:h,is_subifd_link:f};if(r(b)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};aW.exports.ExifParser=jy;aW.exports.get_orientation=function(e){var t=0;try{return new jy(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var z4e=ye((Shr,F4e)=>{"use strict";var zEt=rc().str2arr,OEt=rc().sliceEq,qEt=rc().readUInt32BE,sD=D4e(),BEt=oD(),NEt=zEt("ftyp");F4e.exports=function(e){if(OEt(e,4,NEt)){var t=sD.unbox(e,0);if(t){var r=sD.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=sD.unbox(e,i);if(!a)break;if(i=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){n=a.data;break}}if(n){var o=sD.readSizeFromMeta(n);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var l=qEt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),c=BEt.get_orientation(u);c>0&&(s.orientation=c)}return s}}}}}}});var B4e=ye((Mhr,q4e)=>{"use strict";var UEt=rc().str2arr,VEt=rc().sliceEq,O4e=rc().readUInt16LE,GEt=UEt("BM");q4e.exports=function(e){if(!(e.length<26)&&VEt(e,0,GEt))return{width:O4e(e,18),height:O4e(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var H4e=ye((Ehr,G4e)=>{"use strict";var V4e=rc().str2arr,N4e=rc().sliceEq,U4e=rc().readUInt16LE,HEt=V4e("GIF87a"),jEt=V4e("GIF89a");G4e.exports=function(e){if(!(e.length<10)&&!(!N4e(e,0,HEt)&&!N4e(e,0,jEt)))return{width:U4e(e,6),height:U4e(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var X4e=ye((Chr,W4e)=>{"use strict";var oW=rc().readUInt16LE,WEt=0,XEt=1,j4e=16;W4e.exports=function(e){var t=oW(e,0),r=oW(e,2),n=oW(e,4);if(!(t!==WEt||r!==XEt||!n)){for(var i=[],a={width:0,height:0},o=0;oa.width||l>a.height)&&(a=u)}return{width:a.width,height:a.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var Y4e=ye((khr,Z4e)=>{"use strict";var sW=rc().readUInt16BE,ZEt=rc().str2arr,YEt=rc().sliceEq,KEt=oD(),JEt=ZEt("Exif\0\0");Z4e.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],n;r===255;)r=e[t++];if(208<=r&&r<=217||r===1)n=0;else if(192<=r&&r<=254){if(e.length-t<2)return;n=sW(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&YEt(e,t,JEt)&&(i=KEt.get_orientation(e.slice(t+6,t+n))),n>=5&&192<=r&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=i),a}t+=n}}});var eEe=ye((Lhr,Q4e)=>{"use strict";var $4e=rc().str2arr,K4e=rc().sliceEq,J4e=rc().readUInt32BE,$Et=$4e(`\x89PNG\r +`));var s=new U_({actual:e,expected:t,message:r,operator:i,stackStartFn:n});throw s.generatedMessage=o,s}}Mf.match=function e(t,r,n){m4e(t,r,n,e,"match")};Mf.doesNotMatch=function e(t,r,n){m4e(t,r,n,e,"doesNotMatch")};function y4e(){for(var e=arguments.length,t=new Array(e),r=0;r{var xE=1e3,bE=xE*60,wE=bE*60,TE=wE*24,cEt=TE*365.25;x4e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return fEt(e);if(r==="number"&&isNaN(e)===!1)return t.long?dEt(e):hEt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function fEt(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*cEt;case"days":case"day":case"d":return r*TE;case"hours":case"hour":case"hrs":case"hr":case"h":return r*wE;case"minutes":case"minute":case"mins":case"min":case"m":return r*bE;case"seconds":case"second":case"secs":case"sec":case"s":return r*xE;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function hEt(e){return e>=TE?Math.round(e/TE)+"d":e>=wE?Math.round(e/wE)+"h":e>=bE?Math.round(e/bE)+"m":e>=xE?Math.round(e/xE)+"s":e+"ms"}function dEt(e){return tD(e,TE,"day")||tD(e,wE,"hour")||tD(e,bE,"minute")||tD(e,xE,"second")||e+" ms"}function tD(e,t,r){if(!(e{Lc=w4e.exports=rW.debug=rW.default=rW;Lc.coerce=yEt;Lc.disable=gEt;Lc.enable=pEt;Lc.enabled=mEt;Lc.humanize=b4e();Lc.names=[];Lc.skips=[];Lc.formatters={};var tW;function vEt(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return Lc.colors[Math.abs(t)%Lc.colors.length]}function rW(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(tW||n);r.diff=i,r.prev=tW,r.curr=n,tW=n;for(var a=new Array(arguments.length),o=0;o{lp=S4e.exports=T4e();lp.log=bEt;lp.formatArgs=xEt;lp.save=wEt;lp.load=A4e;lp.useColors=_Et;lp.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:TEt();lp.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function _Et(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}lp.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function xEt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+lp.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}}function bEt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function wEt(e){try{e==null?lp.storage.removeItem("debug"):lp.storage.debug=e}catch(t){}}function A4e(){var e;try{e=lp.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}lp.enable(A4e());function TEt(){try{return window.localStorage}catch(e){}}});var D4e=ye((Thr,R4e)=>{var mA=sE(),V_=M4e()("stream-parser");R4e.exports=SEt;var C4e=-1,rD=0,AEt=1,k4e=2;function SEt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");V_("extending Parser into stream"),e._bytes=MEt,e._skipBytes=EEt,t&&(e._passthrough=CEt),t?e._transform=LEt:e._write=kEt}function AE(e){V_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=C4e,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function MEt(e,t){mA(!this._parserCallback,'there is already a "callback" set!'),mA(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||AE(this),V_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=rD}function EEt(e,t){mA(!this._parserCallback,'there is already a "callback" set!'),mA(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||AE(this),V_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=AEt}function CEt(e,t){mA(!this._parserCallback,'There is already a "callback" set!'),mA(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||AE(this),V_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=k4e}function kEt(e,t,r){this._parserInit||AE(this),V_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),P4e(this,e,null,r)}function LEt(e,t,r){this._parserInit||AE(this),V_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),P4e(this,e,t,r)}function L4e(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return E4e(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return E4e(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return L4e(e,t.slice(i.length),r,n)}})}}function E4e(e,t,r,n){if(e._parserBytesLeft-=t.length,V_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===rD?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===k4e&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===rD&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==rD&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=C4e,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(I4e(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var P4e=I4e(L4e);function I4e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var rc=ye(Hy=>{"use strict";var F4e=ESe().Transform,PEt=D4e();function SE(){F4e.call(this,{readableObjectMode:!0})}SE.prototype=Object.create(F4e.prototype);SE.prototype.constructor=SE;PEt(SE.prototype);Hy.ParserStream=SE;Hy.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var yA=rc().readUInt16BE,nW=rc().readUInt32BE;function ME(e,t){if(e.length<4+t)return null;var r=nW(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=yA(e,6),o=8,s=0;sa.width||i.width===a.width&&i.height>a.height?i:a}),r=e.reduce(function(i,a){return i.height>a.height||i.height===a.height&&i.width>a.width?i:a}),n;return t.width>r.height||t.width===r.height&&t.height>r.width?n=t:n=r,n}nD.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(zEt(e,t),!!t.sizes.length){var r=OEt(t.sizes),n=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?n=s[n]:(n=s[n],n=o[n],n=o[n])),a.type==="irot")for(var l=0;l{"use strict";function aD(e,t){var r=new Error(e);return r.code=t,r}function qEt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function jy(e,t,r){this.input=e.subarray(t,r),this.start=t;var n=String.fromCharCode.apply(null,this.input.subarray(0,4));if(n!=="II*\0"&&n!=="MM\0*")throw aD("invalid TIFF signature","EBADDATA");this.big_endian=n[0]==="M"}jy.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};jy.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw aD("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};jy.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw aD("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};jy.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};jy.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};jy.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};jy.prototype.scan_ifd=function(e,t,r){var n=this.read_uint16(t);t+=2;for(var i=0;ithis.input.length)throw aD("unexpected EOF","EBADDATA");for(var h=[],d=c,v=0;v0&&(this.ifds_to_read.push({id:a,offset:h[0]}),f=!0);var b={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:u,data_offset:c+this.start,value:h,is_subifd_link:f};if(r(b)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};aW.exports.ExifParser=jy;aW.exports.get_orientation=function(e){var t=0;try{return new jy(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var q4e=ye((Ehr,O4e)=>{"use strict";var BEt=rc().str2arr,NEt=rc().sliceEq,UEt=rc().readUInt32BE,sD=z4e(),VEt=oD(),GEt=BEt("ftyp");O4e.exports=function(e){if(NEt(e,4,GEt)){var t=sD.unbox(e,0);if(t){var r=sD.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=sD.unbox(e,i);if(!a)break;if(i=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){n=a.data;break}}if(n){var o=sD.readSizeFromMeta(n);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var l=UEt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),c=VEt.get_orientation(u);c>0&&(s.orientation=c)}return s}}}}}}});var U4e=ye((Chr,N4e)=>{"use strict";var HEt=rc().str2arr,jEt=rc().sliceEq,B4e=rc().readUInt16LE,WEt=HEt("BM");N4e.exports=function(e){if(!(e.length<26)&&jEt(e,0,WEt))return{width:B4e(e,18),height:B4e(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var W4e=ye((khr,j4e)=>{"use strict";var H4e=rc().str2arr,V4e=rc().sliceEq,G4e=rc().readUInt16LE,XEt=H4e("GIF87a"),ZEt=H4e("GIF89a");j4e.exports=function(e){if(!(e.length<10)&&!(!V4e(e,0,XEt)&&!V4e(e,0,ZEt)))return{width:G4e(e,6),height:G4e(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var Y4e=ye((Lhr,Z4e)=>{"use strict";var oW=rc().readUInt16LE,YEt=0,KEt=1,X4e=16;Z4e.exports=function(e){var t=oW(e,0),r=oW(e,2),n=oW(e,4);if(!(t!==YEt||r!==KEt||!n)){for(var i=[],a={width:0,height:0},o=0;oa.width||l>a.height)&&(a=u)}return{width:a.width,height:a.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var J4e=ye((Phr,K4e)=>{"use strict";var sW=rc().readUInt16BE,JEt=rc().str2arr,$Et=rc().sliceEq,QEt=oD(),eCt=JEt("Exif\0\0");K4e.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],n;r===255;)r=e[t++];if(208<=r&&r<=217||r===1)n=0;else if(192<=r&&r<=254){if(e.length-t<2)return;n=sW(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&$Et(e,t,eCt)&&(i=QEt.get_orientation(e.slice(t+6,t+n))),n>=5&&192<=r&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=i),a}t+=n}}});var rEe=ye((Ihr,tEe)=>{"use strict";var eEe=rc().str2arr,$4e=rc().sliceEq,Q4e=rc().readUInt32BE,tCt=eEe(`\x89PNG\r  -`),QEt=$4e("IHDR");Q4e.exports=function(e){if(!(e.length<24)&&K4e(e,0,$Et)&&K4e(e,12,QEt))return{width:J4e(e,16),height:J4e(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var iEe=ye((Phr,rEe)=>{"use strict";var eCt=rc().str2arr,tCt=rc().sliceEq,tEe=rc().readUInt32BE,rCt=eCt("8BPS\0");rEe.exports=function(e){if(!(e.length<22)&&tCt(e,0,rCt))return{width:tEe(e,18),height:tEe(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var oEe=ye((Ihr,aEe)=>{"use strict";function iCt(e){return e===32||e===9||e===13||e===10}function yA(e){return typeof e=="number"&&isFinite(e)&&e>0}function nCt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,oCt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,sCt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,lCt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,uCt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,nEe=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function cCt(e){var t=e.match(sCt),r=e.match(lCt),n=e.match(uCt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Nm(e){return nEe.test(e)?e.match(nEe)[0]:"px"}aEe.exports=function(e){if(nCt(e)){for(var t="",r=0;r{"use strict";var uEe=rc().str2arr,sEe=rc().sliceEq,fCt=rc().readUInt16LE,hCt=rc().readUInt16BE,dCt=rc().readUInt32LE,vCt=rc().readUInt32BE,pCt=uEe("II*\0"),gCt=uEe("MM\0*");function lD(e,t,r){return r?hCt(e,t):fCt(e,t)}function lW(e,t,r){return r?vCt(e,t):dCt(e,t)}function lEe(e,t,r){var n=lD(e,t+2,r),i=lW(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?lD(e,t+8,r):lW(e,t+8,r)}cEe.exports=function(e){if(!(e.length<8)&&!(!sEe(e,0,pCt)&&!sEe(e,0,gCt))){var t=e[0]===77,r=lW(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=lD(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var vEe=rc().str2arr,hEe=rc().sliceEq,dEe=rc().readUInt16LE,uW=rc().readUInt32LE,mCt=oD(),yCt=vEe("RIFF"),_Ct=vEe("WEBP");function xCt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:dEe(e,t+6)&16383,height:dEe(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function bCt(e,t){if(e[t]===47){var r=uW(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function wCt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<e.length)){for(;t+8=10?r=r||xCt(e,t+8):a==="VP8L"&&o>=9?r=r||bCt(e,t+8):a==="VP8X"&&o>=10?r=r||wCt(e,t+8):a==="EXIF"&&(n=mCt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return n>0&&(r.orientation=n),r}}}});var yEe=ye((Fhr,mEe)=>{"use strict";mEe.exports={avif:z4e(),bmp:B4e(),gif:H4e(),ico:X4e(),jpeg:Y4e(),png:eEe(),psd:iEe(),svg:oEe(),tiff:fEe(),webp:gEe()}});var _Ee=ye((zhr,fW)=>{"use strict";var cW=yEe();function TCt(e){for(var t=Object.keys(cW),r=0;r{"use strict";var ACt=_Ee(),SCt=Ly().IMAGE_URL_PREFIX,MCt=u2().Buffer;xEe.getImageSize=function(e){var t=e.replace(SCt,""),r=new MCt(t,"base64");return ACt(r)}});var AEe=ye((qhr,TEe)=>{"use strict";var wEe=Dr(),ECt=jT(),CCt=Eo(),uD=ho(),kCt=Dr().maxRowLength,LCt=bEe().getImageSize;TEe.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=kCt(r.z);else if(r._hasSource){var a=LCt(r.source);n=a.height,i=a.width}var o=uD.getFromId(t,r.xaxis||"x"),s=uD.getFromId(t,r.yaxis||"y"),l=o.d2c(r.x0)-r.dx/2,u=s.d2c(r.y0)-r.dy/2,c,f=[l,l+i*r.dx],h=[u,u+n*r.dy];if(o&&o.type==="log")for(c=0;c{"use strict";var DCt=Oa(),T2=Dr(),SEe=T2.strTranslate,FCt=Wp(),zCt=jT(),OCt=JV(),qCt=u8().STYLE;MEe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&OCt();T2.makeTraceGroups(i,n,"im").each(function(l){var u=DCt.select(this),c=l[0],f=c.trace,h=(f.zsmooth==="fast"||f.zsmooth===!1&&s)&&!f._hasZ&&f._hasSource&&a.type==="linear"&&o.type==="linear";f._realImage=h;var d=c.z,v=c.x0,x=c.y0,b=c.w,p=c.h,C=f.dx,E=f.dy,A,L,_,k,M,g;for(g=0;A===void 0&&g0;)L=a.c2p(v+g*C),g--;for(g=0;k===void 0&&g0;)M=o.c2p(x+g*E),g--;if(Lj[0];if(re||oe){var _e=A+T/2,Me=k+z/2;H+="transform:"+SEe(_e+"px",Me+"px")+"scale("+(re?-1:1)+","+(oe?-1:1)+")"+SEe(-_e+"px",-Me+"px")+";"}}Z.attr("style",H);var ke=new Promise(function(me){if(f._hasZ)me();else if(f._hasSource)if(f._canvas&&f._canvas.el.width===b&&f._canvas.el.height===p&&f._canvas.source===f.source)me();else{var ie=document.createElement("canvas");ie.width=b,ie.height=p;var Se=ie.getContext("2d",{willReadFrequently:!0});f._image=f._image||new Image;var Le=f._image;Le.onload=function(){Se.drawImage(Le,0,0),f._canvas={el:ie,source:f.source},me()},Le.setAttribute("src",f.source)}}).then(function(){var me,ie;if(f._hasZ)ie=G(function(Ae,De){var Pe=d[De][Ae];return T2.isTypedArray(Pe)&&(Pe=Array.from(Pe)),Pe}),me=ie.toDataURL("image/png");else if(f._hasSource)if(h)me=f.source;else{var Se=f._canvas.el.getContext("2d",{willReadFrequently:!0}),Le=Se.getImageData(0,0,b,p).data;ie=G(function(Ae,De){var Pe=4*(De*b+Ae);return[Le[Pe],Le[Pe+1],Le[Pe+2],Le[Pe+3]]}),me=ie.toDataURL("image/png")}Z.attr({"xlink:href":me,height:z,width:T,x:A,y:k})});t._promises.push(ke)})}});var kEe=ye((Nhr,CEe)=>{"use strict";var BCt=Oa();CEe.exports=function(t){BCt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var REe=ye((Uhr,IEe)=>{"use strict";var LEe=vf(),PEe=Dr(),cD=PEe.isArrayOrTypedArray,NCt=jT();IEe.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(LEe.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||LEe.inbox(n-i.y0,n-(i.y0+i.h*a.dy),0)>0)){var l=Math.floor((r-i.x0)/a.dx),u=Math.floor(Math.abs(n-i.y0)/a.dy),c;if(a._hasZ?c=i.z[u][l]:a._hasSource&&(c=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(l,u,1,1).data),!!c){var f=i.hi||a.hoverinfo,h;if(f){var d=f.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var v=NCt.colormodel[a.colormodel],x=v.colormodel||a.colormodel,b=x.length,p=a._scaler(c),C=v.suffix,E=[];(a.hovertemplate||h)&&(E.push("["+[p[0]+C[0],p[1]+C[1],p[2]+C[2]].join(", ")),b===4&&E.push(", "+p[3]+C[3]),E.push("]"),E=E.join(""),t.extraText=x.toUpperCase()+": "+E);var A;cD(a.hovertext)&&cD(a.hovertext[u])?A=a.hovertext[u][l]:cD(a.text)&&cD(a.text[u])&&(A=a.text[u][l]);var L=s.c2p(i.y0+(u+.5)*a.dy),_=i.x0+(l+.5)*a.dx,k=i.y0+(u+.5)*a.dy,M="["+c.slice(0,a.colormodel.length).join(", ")+"]";return[PEe.extendFlat(t,{index:[u,l],x0:o.c2p(i.x0+l*a.dx),x1:o.c2p(i.x0+(l+1)*a.dx),y0:L,y1:L,color:p,xVal:_,xLabelVal:_,yVal:k,yLabelVal:k,zLabelVal:M,text:A,hovertemplateLabels:{zLabel:M,colorLabel:E,"color[0]Label":p[0]+C[0],"color[1]Label":p[1]+C[1],"color[2]Label":p[2]+C[2],"color[3]Label":p[3]+C[3]}})]}}}});var FEe=ye((Vhr,DEe)=>{"use strict";DEe.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var OEe=ye((Ghr,zEe)=>{"use strict";zEe.exports={attributes:sH(),supplyDefaults:R3e(),calc:AEe(),plot:EEe(),style:kEe(),hoverPoints:REe(),eventData:FEe(),moduleType:"trace",name:"image",basePlotModule:vh(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var BEe=ye((Hhr,qEe)=>{"use strict";qEe.exports=OEe()});var A2=ye((jhr,NEe)=>{"use strict";var UCt=Gl(),VCt=kc().attributes,GCt=ec(),HCt=Eh(),jCt=Qo().hovertemplateAttrs,WCt=Qo().texttemplateAttrs,ME=Ao().extendFlat,XCt=Pd().pattern,fD=GCt({editType:"plot",arrayOk:!0,colorEditType:"plot"});NEe.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:HCt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:XCt,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:ME({},UCt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:jCt({},{keys:["label","color","value","percent","text"]}),texttemplate:WCt({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:ME({},fD,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:ME({},fD,{}),outsidetextfont:ME({},fD,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:ME({},fD,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:VCt({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var S2=ye((Whr,GEe)=>{"use strict";var ZCt=Eo(),EE=Dr(),YCt=A2(),KCt=kc().defaults,JCt=r0().handleText,$Ct=Dr().coercePattern;function UEe(e,t){var r=EE.isArrayOrTypedArray(e),n=EE.isArrayOrTypedArray(t),i=Math.min(r?e.length:1/0,n?t.length:1/0);if(isFinite(i)||(i=0),i&&n){for(var a,o=0;o0){a=!0;break}}a||(i=0)}return{hasLabels:r,hasValues:n,len:i}}function VEe(e,t,r,n,i){var a=n("marker.line.width");a&&n("marker.line.color",i?void 0:r.paper_bgcolor);var o=n("marker.colors");$Ct(n,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function QCt(e,t,r,n){function i(C,E){return EE.coerce(e,t,YCt,C,E)}var a=i("labels"),o=i("values"),s=UEe(a,o),l=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!l){t.visible=!1;return}t._length=l,VEe(e,t,n,i,!0),i("scalegroup");var u=i("text"),c=i("texttemplate"),f;if(c||(f=i("textinfo",EE.isArrayOrTypedArray(u)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),c||f&&f!=="none"){var h=i("textposition");JCt(e,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",v=d||h==="outside";v&&i("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&i("insidetextorientation")}else f==="none"&&i("textposition","none");KCt(t,n,i);var x=i("hole"),b=i("title.text");if(b){var p=i("title.position",x?"middle center":"top center");!x&&p==="middle center"&&(t.title.position="top center"),EE.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}GEe.exports={handleLabelsAndValues:UEe,handleMarkerDefaults:VEe,supplyDefaults:QCt}});var hD=ye((Xhr,HEe)=>{"use strict";HEe.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var WEe=ye((Zhr,jEe)=>{"use strict";var ekt=Dr(),tkt=hD();jEe.exports=function(t,r){function n(i,a){return ekt.coerce(t,r,tkt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var _A=ye((Yhr,YEe)=>{"use strict";var rkt=Eo(),hW=cd(),ikt=Ca(),nkt={};function akt(e,t){var r=[],n=e._fullLayout,i=n.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,l=t._length,u=t._hasValues&&l,c,f;if(t.dlabel)for(a=new Array(l),c=0;c=0});var A=t.type==="funnelarea"?x:t.sort;return A&&r.sort(function(L,_){return _.v-L.v}),r[0]&&(r[0].vTotal=v),r}function XEe(e){return function(r,n){return!r||(r=hW(r),!r.isValid())?!1:(r=ikt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function okt(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,i=e.calcdata,a=n[r+"colorway"],o=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=ZEe(a,nkt));for(var s=0,l=0;l{"use strict";var skt=rp().appendArrayMultiPointValues;KEe.exports=function(t,r){var n={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(n.pointNumber=n.i=t.pts[0]),skt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var gD=ye((Jhr,yCe)=>{"use strict";var Dp=Oa(),lkt=Mc(),dD=vf(),iCe=Ca(),Wy=So(),rv=Dr(),ukt=rv.strScale,$Ee=rv.strTranslate,dW=ru(),nCe=bv(),ckt=nCe.recordMinTextSize,fkt=nCe.clearMinTextSize,aCe=Qb().TEXTPAD,as=l_(),vD=JEe(),QEe=Dr().isValidTextValue;function hkt(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;fkt("pie",n),lCe(t,e),pCe(t,i);var a=rv.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Dp.select(this),l=o[0],u=l.trace;bkt(o),s.attr("stroke-linejoin","round"),s.each(function(){var c=Dp.select(this).selectAll("g.slice").data(o);c.enter().append("g").classed("slice",!0),c.exit().remove();var f=[[[],[]],[[],[]]],h=!1;c.each(function(A,L){if(A.hidden){Dp.select(this).selectAll("path,g").remove();return}A.pointNumber=A.i,A.curveNumber=u.index,f[A.pxmid[1]<0?0:1][A.pxmid[0]<0?0:1].push(A);var _=l.cx,k=l.cy,M=Dp.select(this),g=M.selectAll("path.surface").data([A]);if(g.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),M.call(oCe,e,o),u.pull){var P=+as.castOption(u.pull,A.pts)||0;P>0&&(_+=P*A.pxmid[0],k+=P*A.pxmid[1])}A.cxFinal=_,A.cyFinal=k;function T(N,j,re,oe){var _e=oe*(j[0]-N[0]),Me=oe*(j[1]-N[1]);return"a"+oe*l.r+","+oe*l.r+" 0 "+A.largeArc+(re?" 1 ":" 0 ")+_e+","+Me}var z=u.hole;if(A.v===l.vTotal){var O="M"+(_+A.px0[0])+","+(k+A.px0[1])+T(A.px0,A.pxmid,!0,1)+T(A.pxmid,A.px0,!0,1)+"Z";z?g.attr("d","M"+(_+z*A.px0[0])+","+(k+z*A.px0[1])+T(A.px0,A.pxmid,!1,z)+T(A.pxmid,A.px0,!1,z)+"Z"+O):g.attr("d",O)}else{var V=T(A.px0,A.px1,!0,1);if(z){var G=1-z;g.attr("d","M"+(_+z*A.px1[0])+","+(k+z*A.px1[1])+T(A.px1,A.px0,!1,z)+"l"+G*A.px0[0]+","+G*A.px0[1]+V+"Z")}else g.attr("d","M"+_+","+k+"l"+A.px0[0]+","+A.px0[1]+V+"Z")}gCe(e,A,l);var Z=as.castOption(u.textposition,A.pts),H=M.selectAll("g.slicetext").data(A.text&&Z!=="none"?[0]:[]);H.enter().append("g").classed("slicetext",!0),H.exit().remove(),H.each(function(){var N=rv.ensureSingle(Dp.select(this),"text","",function(ie){ie.attr("data-notex",1)}),j=rv.ensureUniformFontSize(e,Z==="outside"?vkt(u,A,n.font):sCe(u,A,n.font));N.text(A.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Wy.font,j).call(dW.convertToTspans,e);var re=Wy.bBox(N.node()),oe;if(Z==="outside")oe=rCe(re,A);else if(oe=uCe(re,A,l),Z==="auto"&&oe.scale<1){var _e=rv.ensureUniformFontSize(e,u.outsidetextfont);N.call(Wy.font,_e),re=Wy.bBox(N.node()),oe=rCe(re,A)}var Me=oe.textPosAngle,ke=Me===void 0?A.pxmid:pD(l.r,Me);if(oe.targetX=_+ke[0]*oe.rCenter+(oe.x||0),oe.targetY=k+ke[1]*oe.rCenter+(oe.y||0),mCe(oe,re),oe.outside){var me=oe.targetY;A.yLabelMin=me-re.height/2,A.yLabelMid=me,A.yLabelMax=me+re.height/2,A.labelExtraX=0,A.labelExtraY=0,h=!0}oe.fontSize=j.size,ckt(u.type,oe,n),o[L].transform=oe,rv.setTransormAndDisplay(N,oe)})});var d=Dp.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var A=rv.ensureSingle(Dp.select(this),"text","",function(k){k.attr("data-notex",1)}),L=u.title.text;u._meta&&(L=rv.templateString(L,u._meta)),A.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Wy.font,u.title.font).call(dW.convertToTspans,e);var _;u.title.position==="middle center"?_=mkt(l):_=dCe(l,i),A.attr("transform",$Ee(_.x,_.y)+ukt(Math.min(1,_.scale))+$Ee(_.tx,_.ty))}),h&&_kt(f,u),dkt(c,u),h&&u.automargin){var v=Wy.bBox(s.node()),x=u.domain,b=i.w*(x.x[1]-x.x[0]),p=i.h*(x.y[1]-x.y[0]),C=(.5*b-l.r)/i.w,E=(.5*p-l.r)/i.h;lkt.autoMargin(e,"pie."+u.uid+".automargin",{xl:x.x[0]-C,xr:x.x[1]+C,yb:x.y[0]-E,yt:x.y[1]+E,l:Math.max(l.cx-l.r-v.left,0),r:Math.max(v.right-(l.cx+l.r),0),b:Math.max(v.bottom-(l.cy+l.r),0),t:Math.max(l.cy-l.r-v.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Dp.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function dkt(e,t){e.each(function(r){var n=Dp.select(this);if(!r.labelExtraX&&!r.labelExtraY){n.select("path.textline").remove();return}var i=n.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,rv.setTransormAndDisplay(i,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,l=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var u=r.labelExtraX*r.pxmid[1]/r.pxmid[0],c=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(u)>Math.abs(c)?s+="l"+c*r.pxmid[0]/r.pxmid[1]+","+c+"H"+(a+r.labelExtraX+l):s+="l"+r.labelExtraX+","+u+"v"+(c-u)+"h"+l}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+l;rv.ensureSingle(n,"path","textline").call(iCe.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function oCe(e,t,r){var n=r[0],i=n.cx,a=n.cy,o=n.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(l){var u=t._fullLayout,c=t._fullData[o.index];if(!(t._dragging||u.hovermode===!1)){var f=c.hoverinfo;if(Array.isArray(f)&&(f=dD.castHoverinfo({hoverinfo:[as.castOption(f,l.pts)],_module:o._module},u,0)),f==="all"&&(f="label+text+value+percent+name"),c.hovertemplate||f!=="none"&&f!=="skip"&&f){var h=l.rInscribed||0,d=i+l.pxmid[0]*(1-h),v=a+l.pxmid[1]*(1-h),x=u.separators,b=[];if(f&&f.indexOf("label")!==-1&&b.push(l.label),l.text=as.castOption(c.hovertext||c.text,l.pts),f&&f.indexOf("text")!==-1){var p=l.text;rv.isValidTextValue(p)&&b.push(p)}l.value=l.v,l.valueLabel=as.formatPieValue(l.v,x),f&&f.indexOf("value")!==-1&&b.push(l.valueLabel),l.percent=l.v/n.vTotal,l.percentLabel=as.formatPiePercent(l.percent,x),f&&f.indexOf("percent")!==-1&&b.push(l.percentLabel);var C=c.hoverlabel,E=C.font,A=[];dD.loneHover({trace:o,x0:d-h*n.r,x1:d+h*n.r,y:v,_x0:s?i+l.TL[0]:d-h*n.r,_x1:s?i+l.TR[0]:d+h*n.r,_y0:s?a+l.TL[1]:v-h*n.r,_y1:s?a+l.BL[1]:v+h*n.r,text:b.join("
"),name:c.hovertemplate||f.indexOf("name")!==-1?c.name:void 0,idealAlign:l.pxmid[0]<0?"left":"right",color:as.castOption(C.bgcolor,l.pts)||l.color,borderColor:as.castOption(C.bordercolor,l.pts),fontFamily:as.castOption(E.family,l.pts),fontSize:as.castOption(E.size,l.pts),fontColor:as.castOption(E.color,l.pts),nameLength:as.castOption(C.namelength,l.pts),textAlign:as.castOption(C.align,l.pts),hovertemplate:as.castOption(c.hovertemplate,l.pts),hovertemplateLabels:l,eventData:[vD(l,c)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:t,inOut_bbox:A}),l.bbox=A[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[vD(l,c)],event:Dp.event})}}),e.on("mouseout",function(l){var u=t._fullLayout,c=t._fullData[o.index],f=Dp.select(this).datum();o._hasHoverEvent&&(l.originalEvent=Dp.event,t.emit("plotly_unhover",{points:[vD(f,c)],event:Dp.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(dD.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(l){var u=t._fullLayout,c=t._fullData[o.index];t._dragging||u.hovermode===!1||(t._hoverdata=[vD(l,c)],dD.click(t,Dp.event))})}function vkt(e,t,r){var n=as.castOption(e.outsidetextfont.color,t.pts)||as.castOption(e.textfont.color,t.pts)||r.color,i=as.castOption(e.outsidetextfont.family,t.pts)||as.castOption(e.textfont.family,t.pts)||r.family,a=as.castOption(e.outsidetextfont.size,t.pts)||as.castOption(e.textfont.size,t.pts)||r.size,o=as.castOption(e.outsidetextfont.weight,t.pts)||as.castOption(e.textfont.weight,t.pts)||r.weight,s=as.castOption(e.outsidetextfont.style,t.pts)||as.castOption(e.textfont.style,t.pts)||r.style,l=as.castOption(e.outsidetextfont.variant,t.pts)||as.castOption(e.textfont.variant,t.pts)||r.variant,u=as.castOption(e.outsidetextfont.textcase,t.pts)||as.castOption(e.textfont.textcase,t.pts)||r.textcase,c=as.castOption(e.outsidetextfont.lineposition,t.pts)||as.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=as.castOption(e.outsidetextfont.shadow,t.pts)||as.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n,family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function sCe(e,t,r){var n=as.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=as.castOption(e._input.textfont.color,t.pts));var i=as.castOption(e.insidetextfont.family,t.pts)||as.castOption(e.textfont.family,t.pts)||r.family,a=as.castOption(e.insidetextfont.size,t.pts)||as.castOption(e.textfont.size,t.pts)||r.size,o=as.castOption(e.insidetextfont.weight,t.pts)||as.castOption(e.textfont.weight,t.pts)||r.weight,s=as.castOption(e.insidetextfont.style,t.pts)||as.castOption(e.textfont.style,t.pts)||r.style,l=as.castOption(e.insidetextfont.variant,t.pts)||as.castOption(e.textfont.variant,t.pts)||r.variant,u=as.castOption(e.insidetextfont.textcase,t.pts)||as.castOption(e.textfont.textcase,t.pts)||r.textcase,c=as.castOption(e.insidetextfont.lineposition,t.pts)||as.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=as.castOption(e.insidetextfont.shadow,t.pts)||as.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n||iCe.contrast(t.color),family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function lCe(e,t){for(var r,n,i=0;i=-4;C-=2)p(Math.PI*C,"tan");for(C=4;C>=-4;C-=2)p(Math.PI*(C+1),"tan")}if(f||d){for(C=4;C>=-4;C-=2)p(Math.PI*(C+1.5),"rad");for(C=4;C>=-4;C-=2)p(Math.PI*(C+.5),"rad")}}if(s||v||f){var E=Math.sqrt(e.width*e.width+e.height*e.height);if(b={scale:i*n*2/E,rCenter:1-i,rotate:0},b.textPosAngle=(t.startangle+t.stopangle)/2,b.scale>=1)return b;x.push(b)}(v||d)&&(b=eCe(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,x.push(b)),(v||h)&&(b=tCe(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,x.push(b));for(var A=0,L=0,_=0;_=1)break}return x[A]}function pkt(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function mkt(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function dCe(e,t){var r=1,n=1,i,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=vCe(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+i)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+i)*e.r);var l=ykt(e.r,e.trace.aspectratio),u=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(u=u+l,o.x-=(1+i)*l,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?u*=2:a.title.position.indexOf("right")!==-1&&(u=u+l,o.x+=(1+i)*l,s.tx-=e.titleBox.width/2),r=u/e.titleBox.width,n=vW(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function ykt(e,t){return e/(t===void 0?1:t)}function vW(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function vCe(e){var t=e.pull;if(!t)return 0;var r;if(rv.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function _kt(e,t){var r,n,i,a,o,s,l,u,c,f,h,d,v;function x(E,A){return E.pxmid[1]-A.pxmid[1]}function b(E,A){return A.pxmid[1]-E.pxmid[1]}function p(E,A){A||(A={});var L=A.labelExtraY+(n?A.yLabelMax:A.yLabelMin),_=n?E.yLabelMin:E.yLabelMax,k=n?E.yLabelMax:E.yLabelMin,M=E.cyFinal+o(E.px0[1],E.px1[1]),g=L-_,P,T,z,O,V,G;if(g*l>0&&(E.labelExtraY=g),!!rv.isArrayOrTypedArray(t.pull))for(T=0;T=(as.castOption(t.pull,z.pts)||0))&&((E.pxmid[1]-z.pxmid[1])*l>0?(O=z.cyFinal+o(z.px0[1],z.px1[1]),g=O-_-E.labelExtraY,g*l>0&&(E.labelExtraY+=g)):(k+E.labelExtraY-M)*l>0&&(P=3*s*Math.abs(T-f.indexOf(E)),V=z.cxFinal+a(z.px0[0],z.px1[0]),G=V+P-(E.cxFinal+E.pxmid[0])-E.labelExtraX,G*s>0&&(E.labelExtraX+=G)))}for(n=0;n<2;n++)for(i=n?x:b,o=n?Math.max:Math.min,l=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,u=e[n][r],u.sort(i),c=e[1-n][r],f=c.concat(u),d=[],h=0;h1?(u=r.r,c=u/i.aspectratio):(c=r.r,u=c*i.aspectratio),u*=(1+i.baseratio)/2,l=u*c}o=Math.min(o,l/r.vTotal)}for(n=0;nt.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/t.vTotal,.5),u.ring=1-n.hole,u.rInscribed=gkt(u,t))}function pD(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function gCe(e,t,r){var n=e._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),l=function(A){return s.indexOf(A)!==-1},u=l("label"),c=l("text"),f=l("value"),h=l("percent"),d=n.separators,v;if(v=u?[t.label]:[],c){var x=as.getFirstFilled(i.text,t.pts);QEe(x)&&v.push(x)}f&&v.push(as.formatPieValue(t.v,d)),h&&v.push(as.formatPiePercent(t.v/r.vTotal,d)),t.text=v.join("
")}function b(A){return{label:A.label,value:A.v,valueLabel:as.formatPieValue(A.v,n.separators),percent:A.v/r.vTotal,percentLabel:as.formatPiePercent(A.v/r.vTotal,n.separators),color:A.color,text:A.text,customdata:rv.castOption(i,A.i,"customdata")}}if(a){var p=rv.castOption(i,t.i,"texttemplate");if(!p)t.text="";else{var C=b(t),E=as.getFirstFilled(i.text,t.pts);(QEe(E)||E==="")&&(C.text=E),t.text=rv.texttemplateString(p,C,e._fullLayout._d3locale,C,i._meta||{})}}}function mCe(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*n-o*i,e.textY=a*i+o*n,e.noCenter=!0}yCe.exports={plot:hkt,formatSliceLabel:gCe,transformInsideText:uCe,determineInsideTextFont:sCe,positionTitleOutside:dCe,prerenderTitles:lCe,layoutAreas:pCe,attachFxHandlers:oCe,computeTransform:mCe}});var bCe=ye(($hr,xCe)=>{"use strict";var _Ce=Oa(),wkt=F3(),Tkt=bv().resizeText;xCe.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");Tkt(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=_Ce.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){_Ce.select(this).call(wkt,s,a,t)})})}});var TCe=ye(xA=>{"use strict";var wCe=Mc();xA.name="pie";xA.plot=function(e,t,r,n){wCe.plotBasePlot(xA.name,e,t,r,n)};xA.clean=function(e,t,r,n){wCe.cleanBasePlot(xA.name,e,t,r,n)}});var SCe=ye((edr,ACe)=>{"use strict";ACe.exports={attributes:A2(),supplyDefaults:S2().supplyDefaults,supplyLayoutDefaults:WEe(),layoutAttributes:hD(),calc:_A().calc,crossTraceCalc:_A().crossTraceCalc,plot:gD().plot,style:bCe(),styleOne:F3(),moduleType:"trace",name:"pie",basePlotModule:TCe(),categories:["pie-like","pie","showLegend"],meta:{}}});var ECe=ye((tdr,MCe)=>{"use strict";MCe.exports=SCe()});var kCe=ye(bA=>{"use strict";var CCe=Mc();bA.name="sunburst";bA.plot=function(e,t,r,n){CCe.plotBasePlot(bA.name,e,t,r,n)};bA.clean=function(e,t,r,n){CCe.cleanBasePlot(bA.name,e,t,r,n)}});var pW=ye((idr,LCe)=>{"use strict";LCe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var kE=ye((ndr,ICe)=>{"use strict";var Akt=Gl(),Skt=Qo().hovertemplateAttrs,Mkt=Qo().texttemplateAttrs,Ekt=Tu(),Ckt=kc().attributes,Xy=A2(),PCe=pW(),CE=Ao().extendFlat,kkt=Pd().pattern;ICe.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:CE({colors:{valType:"data_array",editType:"calc"},line:{color:CE({},Xy.marker.line.color,{dflt:null}),width:CE({},Xy.marker.line.width,{dflt:1}),editType:"calc"},pattern:kkt,editType:"calc"},Ekt("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:Xy.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:Mkt({editType:"plot"},{keys:PCe.eventDataKeys.concat(["label","value"])}),hovertext:Xy.hovertext,hoverinfo:CE({},Akt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:Skt({},{keys:PCe.eventDataKeys}),textfont:Xy.textfont,insidetextorientation:Xy.insidetextorientation,insidetextfont:Xy.insidetextfont,outsidetextfont:CE({},Xy.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:Xy.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:Ckt({name:"sunburst",trace:!0,editType:"calc"})}});var gW=ye((adr,RCe)=>{"use strict";RCe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var OCe=ye((odr,zCe)=>{"use strict";var DCe=Dr(),Lkt=kE(),Pkt=kc().defaults,Ikt=r0().handleText,Rkt=S2().handleMarkerDefaults,FCe=tc(),Dkt=FCe.hasColorscale,Fkt=FCe.handleDefaults;zCe.exports=function(t,r,n,i){function a(h,d){return DCe.coerce(t,r,Lkt,h,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),Rkt(t,r,i,a);var u=r._hasColorscale=Dkt(t,"marker","colors")||(t.marker||{}).coloraxis;u&&Fkt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",u?1:.7);var c=a("text");a("texttemplate"),r.texttemplate||a("textinfo",DCe.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f="auto";Ikt(t,r,i,a,f,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),Pkt(r,i,a),r._length=null}});var BCe=ye((sdr,qCe)=>{"use strict";var zkt=Dr(),Okt=gW();qCe.exports=function(t,r){function n(i,a){return zkt.coerce(t,r,Okt,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var LE=ye((mD,NCe)=>{(function(e,t){typeof mD=="object"&&typeof NCe!="undefined"?t(mD):(e=e||self,t(e.d3=e.d3||{}))})(mD,function(e){"use strict";function t(je,$e){return je.parent===$e.parent?1:2}function r(je){return je.reduce(n,0)/je.length}function n(je,$e){return je+$e.x}function i(je){return 1+je.reduce(a,0)}function a(je,$e){return Math.max(je,$e.y)}function o(je){for(var $e;$e=je.children;)je=$e[0];return je}function s(je){for(var $e;$e=je.children;)je=$e[$e.length-1];return je}function l(){var je=t,$e=1,wt=1,Ie=!1;function xe(Ce){var vt,nr=0;Ce.eachAfter(function(Jr){var fi=Jr.children;fi?(Jr.x=r(fi),Jr.y=i(fi)):(Jr.x=vt?nr+=je(Jr,vt):0,Jr.y=0,vt=Jr)});var ir=o(Ce),pr=s(Ce),oi=ir.x-je(ir,pr)/2,di=pr.x+je(pr,ir)/2;return Ce.eachAfter(Ie?function(Jr){Jr.x=(Jr.x-Ce.x)*$e,Jr.y=(Ce.y-Jr.y)*wt}:function(Jr){Jr.x=(Jr.x-oi)/(di-oi)*$e,Jr.y=(1-(Ce.y?Jr.y/Ce.y:1))*wt})}return xe.separation=function(Ce){return arguments.length?(je=Ce,xe):je},xe.size=function(Ce){return arguments.length?(Ie=!1,$e=+Ce[0],wt=+Ce[1],xe):Ie?null:[$e,wt]},xe.nodeSize=function(Ce){return arguments.length?(Ie=!0,$e=+Ce[0],wt=+Ce[1],xe):Ie?[$e,wt]:null},xe}function u(je){var $e=0,wt=je.children,Ie=wt&&wt.length;if(!Ie)$e=1;else for(;--Ie>=0;)$e+=wt[Ie].value;je.value=$e}function c(){return this.eachAfter(u)}function f(je){var $e=this,wt,Ie=[$e],xe,Ce,vt;do for(wt=Ie.reverse(),Ie=[];$e=wt.pop();)if(je($e),xe=$e.children,xe)for(Ce=0,vt=xe.length;Ce=0;--xe)wt.push(Ie[xe]);return this}function d(je){for(var $e=this,wt=[$e],Ie=[],xe,Ce,vt;$e=wt.pop();)if(Ie.push($e),xe=$e.children,xe)for(Ce=0,vt=xe.length;Ce=0;)wt+=Ie[xe].value;$e.value=wt})}function x(je){return this.eachBefore(function($e){$e.children&&$e.children.sort(je)})}function b(je){for(var $e=this,wt=p($e,je),Ie=[$e];$e!==wt;)$e=$e.parent,Ie.push($e);for(var xe=Ie.length;je!==wt;)Ie.splice(xe,0,je),je=je.parent;return Ie}function p(je,$e){if(je===$e)return je;var wt=je.ancestors(),Ie=$e.ancestors(),xe=null;for(je=wt.pop(),$e=Ie.pop();je===$e;)xe=je,je=wt.pop(),$e=Ie.pop();return xe}function C(){for(var je=this,$e=[je];je=je.parent;)$e.push(je);return $e}function E(){var je=[];return this.each(function($e){je.push($e)}),je}function A(){var je=[];return this.eachBefore(function($e){$e.children||je.push($e)}),je}function L(){var je=this,$e=[];return je.each(function(wt){wt!==je&&$e.push({source:wt.parent,target:wt})}),$e}function _(je,$e){var wt=new T(je),Ie=+je.value&&(wt.value=je.value),xe,Ce=[wt],vt,nr,ir,pr;for($e==null&&($e=M);xe=Ce.pop();)if(Ie&&(xe.value=+xe.data.value),(nr=$e(xe.data))&&(pr=nr.length))for(xe.children=new Array(pr),ir=pr-1;ir>=0;--ir)Ce.push(vt=xe.children[ir]=new T(nr[ir])),vt.parent=xe,vt.depth=xe.depth+1;return wt.eachBefore(P)}function k(){return _(this).eachBefore(g)}function M(je){return je.children}function g(je){je.data=je.data.data}function P(je){var $e=0;do je.height=$e;while((je=je.parent)&&je.height<++$e)}function T(je){this.data=je,this.depth=this.height=0,this.parent=null}T.prototype=_.prototype={constructor:T,count:c,each:f,eachAfter:d,eachBefore:h,sum:v,sort:x,path:b,ancestors:C,descendants:E,leaves:A,links:L,copy:k};var z=Array.prototype.slice;function O(je){for(var $e=je.length,wt,Ie;$e;)Ie=Math.random()*$e--|0,wt=je[$e],je[$e]=je[Ie],je[Ie]=wt;return je}function V(je){for(var $e=0,wt=(je=O(z.call(je))).length,Ie=[],xe,Ce;$e0&&wt*wt>Ie*Ie+xe*xe}function N(je,$e){for(var wt=0;wt<$e.length;++wt)if(!H(je,$e[wt]))return!1;return!0}function j(je){switch(je.length){case 1:return re(je[0]);case 2:return oe(je[0],je[1]);case 3:return _e(je[0],je[1],je[2])}}function re(je){return{x:je.x,y:je.y,r:je.r}}function oe(je,$e){var wt=je.x,Ie=je.y,xe=je.r,Ce=$e.x,vt=$e.y,nr=$e.r,ir=Ce-wt,pr=vt-Ie,oi=nr-xe,di=Math.sqrt(ir*ir+pr*pr);return{x:(wt+Ce+ir/di*oi)/2,y:(Ie+vt+pr/di*oi)/2,r:(di+xe+nr)/2}}function _e(je,$e,wt){var Ie=je.x,xe=je.y,Ce=je.r,vt=$e.x,nr=$e.y,ir=$e.r,pr=wt.x,oi=wt.y,di=wt.r,Jr=Ie-vt,fi=Ie-pr,Hi=xe-nr,Pn=xe-oi,wn=ir-Ce,pn=di-Ce,Vn=Ie*Ie+xe*xe-Ce*Ce,kn=Vn-vt*vt-nr*nr+ir*ir,ea=Vn-pr*pr-oi*oi+di*di,ua=fi*Hi-Jr*Pn,Vt=(Hi*ea-Pn*kn)/(ua*2)-Ie,_t=(Pn*wn-Hi*pn)/ua,tr=(fi*kn-Jr*ea)/(ua*2)-xe,ar=(Jr*pn-fi*wn)/ua,Er=_t*_t+ar*ar-1,Zr=2*(Ce+Vt*_t+tr*ar),ri=Vt*Vt+tr*tr-Ce*Ce,$r=-(Er?(Zr+Math.sqrt(Zr*Zr-4*Er*ri))/(2*Er):ri/Zr);return{x:Ie+Vt+_t*$r,y:xe+tr+ar*$r,r:$r}}function Me(je,$e,wt){var Ie=je.x-$e.x,xe,Ce,vt=je.y-$e.y,nr,ir,pr=Ie*Ie+vt*vt;pr?(Ce=$e.r+wt.r,Ce*=Ce,ir=je.r+wt.r,ir*=ir,Ce>ir?(xe=(pr+ir-Ce)/(2*pr),nr=Math.sqrt(Math.max(0,ir/pr-xe*xe)),wt.x=je.x-xe*Ie-nr*vt,wt.y=je.y-xe*vt+nr*Ie):(xe=(pr+Ce-ir)/(2*pr),nr=Math.sqrt(Math.max(0,Ce/pr-xe*xe)),wt.x=$e.x+xe*Ie-nr*vt,wt.y=$e.y+xe*vt+nr*Ie)):(wt.x=$e.x+wt.r,wt.y=$e.y)}function ke(je,$e){var wt=je.r+$e.r-1e-6,Ie=$e.x-je.x,xe=$e.y-je.y;return wt>0&&wt*wt>Ie*Ie+xe*xe}function me(je){var $e=je._,wt=je.next._,Ie=$e.r+wt.r,xe=($e.x*wt.r+wt.x*$e.r)/Ie,Ce=($e.y*wt.r+wt.y*$e.r)/Ie;return xe*xe+Ce*Ce}function ie(je){this._=je,this.next=null,this.previous=null}function Se(je){if(!(xe=je.length))return 0;var $e,wt,Ie,xe,Ce,vt,nr,ir,pr,oi,di;if($e=je[0],$e.x=0,$e.y=0,!(xe>1))return $e.r;if(wt=je[1],$e.x=-wt.r,wt.x=$e.r,wt.y=0,!(xe>2))return $e.r+wt.r;Me(wt,$e,Ie=je[2]),$e=new ie($e),wt=new ie(wt),Ie=new ie(Ie),$e.next=Ie.previous=wt,wt.next=$e.previous=Ie,Ie.next=wt.previous=$e;e:for(nr=3;nr0)throw new Error("cycle");return nr}return wt.id=function(Ie){return arguments.length?(je=De(Ie),wt):je},wt.parentId=function(Ie){return arguments.length?($e=De(Ie),wt):$e},wt}function Qe(je,$e){return je.parent===$e.parent?1:2}function Et(je){var $e=je.children;return $e?$e[0]:je.t}function er(je){var $e=je.children;return $e?$e[$e.length-1]:je.t}function Ut(je,$e,wt){var Ie=wt/($e.i-je.i);$e.c-=Ie,$e.s+=wt,je.c+=Ie,$e.z+=wt,$e.m+=wt}function Ft(je){for(var $e=0,wt=0,Ie=je.children,xe=Ie.length,Ce;--xe>=0;)Ce=Ie[xe],Ce.z+=$e,Ce.m+=$e,$e+=Ce.s+(wt+=Ce.c)}function bt(je,$e,wt){return je.a.parent===$e.parent?je.a:wt}function yt(je,$e){this._=je,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=$e}yt.prototype=Object.create(T.prototype);function Yt(je){for(var $e=new yt(je,0),wt,Ie=[$e],xe,Ce,vt,nr;wt=Ie.pop();)if(Ce=wt._.children)for(wt.children=new Array(nr=Ce.length),vt=nr-1;vt>=0;--vt)Ie.push(xe=wt.children[vt]=new yt(Ce[vt],vt)),xe.parent=wt;return($e.parent=new yt(null,0)).children=[$e],$e}function lr(){var je=Qe,$e=1,wt=1,Ie=null;function xe(pr){var oi=Yt(pr);if(oi.eachAfter(Ce),oi.parent.m=-oi.z,oi.eachBefore(vt),Ie)pr.eachBefore(ir);else{var di=pr,Jr=pr,fi=pr;pr.eachBefore(function(Vn){Vn.xJr.x&&(Jr=Vn),Vn.depth>fi.depth&&(fi=Vn)});var Hi=di===Jr?1:je(di,Jr)/2,Pn=Hi-di.x,wn=$e/(Jr.x+Hi+Pn),pn=wt/(fi.depth||1);pr.eachBefore(function(Vn){Vn.x=(Vn.x+Pn)*wn,Vn.y=Vn.depth*pn})}return pr}function Ce(pr){var oi=pr.children,di=pr.parent.children,Jr=pr.i?di[pr.i-1]:null;if(oi){Ft(pr);var fi=(oi[0].z+oi[oi.length-1].z)/2;Jr?(pr.z=Jr.z+je(pr._,Jr._),pr.m=pr.z-fi):pr.z=fi}else Jr&&(pr.z=Jr.z+je(pr._,Jr._));pr.parent.A=nr(pr,Jr,pr.parent.A||di[0])}function vt(pr){pr._.x=pr.z+pr.parent.m,pr.m+=pr.parent.m}function nr(pr,oi,di){if(oi){for(var Jr=pr,fi=pr,Hi=oi,Pn=Jr.parent.children[0],wn=Jr.m,pn=fi.m,Vn=Hi.m,kn=Pn.m,ea;Hi=er(Hi),Jr=Et(Jr),Hi&&Jr;)Pn=Et(Pn),fi=er(fi),fi.a=pr,ea=Hi.z+Vn-Jr.z-wn+je(Hi._,Jr._),ea>0&&(Ut(bt(Hi,pr,di),pr,ea),wn+=ea,pn+=ea),Vn+=Hi.m,wn+=Jr.m,kn+=Pn.m,pn+=fi.m;Hi&&!er(fi)&&(fi.t=Hi,fi.m+=Vn-pn),Jr&&!Et(Pn)&&(Pn.t=Jr,Pn.m+=wn-kn,di=pr)}return di}function ir(pr){pr.x*=$e,pr.y=pr.depth*wt}return xe.separation=function(pr){return arguments.length?(je=pr,xe):je},xe.size=function(pr){return arguments.length?(Ie=!1,$e=+pr[0],wt=+pr[1],xe):Ie?null:[$e,wt]},xe.nodeSize=function(pr){return arguments.length?(Ie=!0,$e=+pr[0],wt=+pr[1],xe):Ie?[$e,wt]:null},xe}function Tr(je,$e,wt,Ie,xe){for(var Ce=je.children,vt,nr=-1,ir=Ce.length,pr=je.value&&(xe-wt)/je.value;++nrVn&&(Vn=pr),Vt=wn*wn*ua,kn=Math.max(Vn/Vt,Vt/pn),kn>ea){wn-=pr;break}ea=kn}vt.push(ir={value:wn,dice:fi1?Ie:1)},wt}(Rr);function Ur(){var je=Wr,$e=!1,wt=1,Ie=1,xe=[0],Ce=Pe,vt=Pe,nr=Pe,ir=Pe,pr=Pe;function oi(Jr){return Jr.x0=Jr.y0=0,Jr.x1=wt,Jr.y1=Ie,Jr.eachBefore(di),xe=[0],$e&&Jr.eachBefore(Wt),Jr}function di(Jr){var fi=xe[Jr.depth],Hi=Jr.x0+fi,Pn=Jr.y0+fi,wn=Jr.x1-fi,pn=Jr.y1-fi;wn=Jr-1){var Vn=Ce[di];Vn.x0=Hi,Vn.y0=Pn,Vn.x1=wn,Vn.y1=pn;return}for(var kn=pr[di],ea=fi/2+kn,ua=di+1,Vt=Jr-1;ua>>1;pr[_t]pn-Pn){var Er=(Hi*ar+wn*tr)/fi;oi(di,ua,tr,Hi,Pn,Er,pn),oi(ua,Jr,ar,Er,Pn,wn,pn)}else{var Zr=(Pn*ar+pn*tr)/fi;oi(di,ua,tr,Hi,Pn,wn,Zr),oi(ua,Jr,ar,Hi,Zr,wn,pn)}}}function Ge(je,$e,wt,Ie,xe){(je.depth&1?Tr:st)(je,$e,wt,Ie,xe)}var Je=function je($e){function wt(Ie,xe,Ce,vt,nr){if((ir=Ie._squarify)&&ir.ratio===$e)for(var ir,pr,oi,di,Jr=-1,fi,Hi=ir.length,Pn=Ie.value;++Jr1?Ie:1)},wt}(Rr);e.cluster=l,e.hierarchy=_,e.pack=ce,e.packEnclose=V,e.packSiblings=Le,e.partition=lt,e.stratify=ur,e.tree=lr,e.treemap=Ur,e.treemapBinary=dt,e.treemapDice=st,e.treemapResquarify=Je,e.treemapSlice=Tr,e.treemapSliceDice=Ge,e.treemapSquarify=Wr,Object.defineProperty(e,"__esModule",{value:!0})})});var IE=ye(PE=>{"use strict";var UCe=LE(),qkt=Eo(),wA=Dr(),Bkt=tc().makeColorScaleFuncFromTrace,Nkt=_A().makePullColorFn,Ukt=_A().generateExtendedColors,Vkt=tc().calc,Gkt=hs().ALMOST_EQUAL,Hkt={},jkt={},Wkt={};PE.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=wA.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,l=wA.isArrayOrTypedArray(s),u=[],c={},f={},h=function(H,N){c[H]?c[H].push(N):c[H]=[N],f[N]=1},d=function(H){return H||typeof H=="number"},v=function(H){return!l||qkt(s[H])&&s[H]>=0},x,b,p;i?(x=Math.min(n.length,o.length),b=function(H){return d(n[H])&&v(H)},p=function(H){return String(n[H])}):(x=Math.min(a.length,o.length),b=function(H){return d(a[H])&&v(H)},p=function(H){return String(a[H])}),l&&(x=Math.min(x,s.length));for(var C=0;C1){for(var M=wA.randstr(),g=0;g{"use strict";var iCt=rc().str2arr,nCt=rc().sliceEq,iEe=rc().readUInt32BE,aCt=iCt("8BPS\0");nEe.exports=function(e){if(!(e.length<22)&&nCt(e,0,aCt))return{width:iEe(e,18),height:iEe(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var lEe=ye((Dhr,sEe)=>{"use strict";function oCt(e){return e===32||e===9||e===13||e===10}function _A(e){return typeof e=="number"&&isFinite(e)&&e>0}function sCt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,uCt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,cCt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,fCt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,hCt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,oEe=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function dCt(e){var t=e.match(cCt),r=e.match(fCt),n=e.match(hCt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Nm(e){return oEe.test(e)?e.match(oEe)[0]:"px"}sEe.exports=function(e){if(sCt(e)){for(var t="",r=0;r{"use strict";var fEe=rc().str2arr,uEe=rc().sliceEq,vCt=rc().readUInt16LE,pCt=rc().readUInt16BE,gCt=rc().readUInt32LE,mCt=rc().readUInt32BE,yCt=fEe("II*\0"),_Ct=fEe("MM\0*");function lD(e,t,r){return r?pCt(e,t):vCt(e,t)}function lW(e,t,r){return r?mCt(e,t):gCt(e,t)}function cEe(e,t,r){var n=lD(e,t+2,r),i=lW(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?lD(e,t+8,r):lW(e,t+8,r)}hEe.exports=function(e){if(!(e.length<8)&&!(!uEe(e,0,yCt)&&!uEe(e,0,_Ct))){var t=e[0]===77,r=lW(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=lD(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var gEe=rc().str2arr,vEe=rc().sliceEq,pEe=rc().readUInt16LE,uW=rc().readUInt32LE,xCt=oD(),bCt=gEe("RIFF"),wCt=gEe("WEBP");function TCt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:pEe(e,t+6)&16383,height:pEe(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function ACt(e,t){if(e[t]===47){var r=uW(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function SCt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<e.length)){for(;t+8=10?r=r||TCt(e,t+8):a==="VP8L"&&o>=9?r=r||ACt(e,t+8):a==="VP8X"&&o>=10?r=r||SCt(e,t+8):a==="EXIF"&&(n=xCt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return n>0&&(r.orientation=n),r}}}});var xEe=ye((Ohr,_Ee)=>{"use strict";_Ee.exports={avif:q4e(),bmp:U4e(),gif:W4e(),ico:Y4e(),jpeg:J4e(),png:rEe(),psd:aEe(),svg:lEe(),tiff:dEe(),webp:yEe()}});var bEe=ye((qhr,fW)=>{"use strict";var cW=xEe();function MCt(e){for(var t=Object.keys(cW),r=0;r{"use strict";var ECt=bEe(),CCt=Ly().IMAGE_URL_PREFIX,kCt=u2().Buffer;wEe.getImageSize=function(e){var t=e.replace(CCt,""),r=new kCt(t,"base64");return ECt(r)}});var MEe=ye((Nhr,SEe)=>{"use strict";var AEe=Dr(),LCt=WT(),PCt=Eo(),uD=ho(),ICt=Dr().maxRowLength,RCt=TEe().getImageSize;SEe.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=ICt(r.z);else if(r._hasSource){var a=RCt(r.source);n=a.height,i=a.width}var o=uD.getFromId(t,r.xaxis||"x"),s=uD.getFromId(t,r.yaxis||"y"),l=o.d2c(r.x0)-r.dx/2,u=s.d2c(r.y0)-r.dy/2,c,f=[l,l+i*r.dx],h=[u,u+n*r.dy];if(o&&o.type==="log")for(c=0;c{"use strict";var OCt=Oa(),T2=Dr(),EEe=T2.strTranslate,qCt=Wp(),BCt=WT(),NCt=JV(),UCt=u8().STYLE;CEe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&NCt();T2.makeTraceGroups(i,n,"im").each(function(l){var u=OCt.select(this),c=l[0],f=c.trace,h=(f.zsmooth==="fast"||f.zsmooth===!1&&s)&&!f._hasZ&&f._hasSource&&a.type==="linear"&&o.type==="linear";f._realImage=h;var d=c.z,v=c.x0,_=c.y0,b=c.w,p=c.h,C=f.dx,E=f.dy,A,L,x,k,M,g;for(g=0;A===void 0&&g0;)L=a.c2p(v+g*C),g--;for(g=0;k===void 0&&g0;)M=o.c2p(_+g*E),g--;if(Lj[0];if(re||oe){var _e=A+T/2,Me=k+z/2;H+="transform:"+EEe(_e+"px",Me+"px")+"scale("+(re?-1:1)+","+(oe?-1:1)+")"+EEe(-_e+"px",-Me+"px")+";"}}Z.attr("style",H);var ke=new Promise(function(me){if(f._hasZ)me();else if(f._hasSource)if(f._canvas&&f._canvas.el.width===b&&f._canvas.el.height===p&&f._canvas.source===f.source)me();else{var ie=document.createElement("canvas");ie.width=b,ie.height=p;var Se=ie.getContext("2d",{willReadFrequently:!0});f._image=f._image||new Image;var Le=f._image;Le.onload=function(){Se.drawImage(Le,0,0),f._canvas={el:ie,source:f.source},me()},Le.setAttribute("src",f.source)}}).then(function(){var me,ie;if(f._hasZ)ie=G(function(Ae,De){var Pe=d[De][Ae];return T2.isTypedArray(Pe)&&(Pe=Array.from(Pe)),Pe}),me=ie.toDataURL("image/png");else if(f._hasSource)if(h)me=f.source;else{var Se=f._canvas.el.getContext("2d",{willReadFrequently:!0}),Le=Se.getImageData(0,0,b,p).data;ie=G(function(Ae,De){var Pe=4*(De*b+Ae);return[Le[Pe],Le[Pe+1],Le[Pe+2],Le[Pe+3]]}),me=ie.toDataURL("image/png")}Z.attr({"xlink:href":me,height:z,width:T,x:A,y:k})});t._promises.push(ke)})}});var PEe=ye((Vhr,LEe)=>{"use strict";var VCt=Oa();LEe.exports=function(t){VCt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var FEe=ye((Ghr,DEe)=>{"use strict";var IEe=vf(),REe=Dr(),cD=REe.isArrayOrTypedArray,GCt=WT();DEe.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(IEe.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||IEe.inbox(n-i.y0,n-(i.y0+i.h*a.dy),0)>0)){var l=Math.floor((r-i.x0)/a.dx),u=Math.floor(Math.abs(n-i.y0)/a.dy),c;if(a._hasZ?c=i.z[u][l]:a._hasSource&&(c=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(l,u,1,1).data),!!c){var f=i.hi||a.hoverinfo,h;if(f){var d=f.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var v=GCt.colormodel[a.colormodel],_=v.colormodel||a.colormodel,b=_.length,p=a._scaler(c),C=v.suffix,E=[];(a.hovertemplate||h)&&(E.push("["+[p[0]+C[0],p[1]+C[1],p[2]+C[2]].join(", ")),b===4&&E.push(", "+p[3]+C[3]),E.push("]"),E=E.join(""),t.extraText=_.toUpperCase()+": "+E);var A;cD(a.hovertext)&&cD(a.hovertext[u])?A=a.hovertext[u][l]:cD(a.text)&&cD(a.text[u])&&(A=a.text[u][l]);var L=s.c2p(i.y0+(u+.5)*a.dy),x=i.x0+(l+.5)*a.dx,k=i.y0+(u+.5)*a.dy,M="["+c.slice(0,a.colormodel.length).join(", ")+"]";return[REe.extendFlat(t,{index:[u,l],x0:o.c2p(i.x0+l*a.dx),x1:o.c2p(i.x0+(l+1)*a.dx),y0:L,y1:L,color:p,xVal:x,xLabelVal:x,yVal:k,yLabelVal:k,zLabelVal:M,text:A,hovertemplateLabels:{zLabel:M,colorLabel:E,"color[0]Label":p[0]+C[0],"color[1]Label":p[1]+C[1],"color[2]Label":p[2]+C[2],"color[3]Label":p[3]+C[3]}})]}}}});var OEe=ye((Hhr,zEe)=>{"use strict";zEe.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var BEe=ye((jhr,qEe)=>{"use strict";qEe.exports={attributes:sH(),supplyDefaults:F3e(),calc:MEe(),plot:kEe(),style:PEe(),hoverPoints:FEe(),eventData:OEe(),moduleType:"trace",name:"image",basePlotModule:ph(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var UEe=ye((Whr,NEe)=>{"use strict";NEe.exports=BEe()});var A2=ye((Xhr,VEe)=>{"use strict";var HCt=Gl(),jCt=kc().attributes,WCt=ec(),XCt=Ch(),ZCt=Qo().hovertemplateAttrs,YCt=Qo().texttemplateAttrs,EE=Ao().extendFlat,KCt=Pd().pattern,fD=WCt({editType:"plot",arrayOk:!0,colorEditType:"plot"});VEe.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:XCt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:KCt,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:EE({},HCt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:ZCt({},{keys:["label","color","value","percent","text"]}),texttemplate:YCt({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:EE({},fD,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:EE({},fD,{}),outsidetextfont:EE({},fD,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:EE({},fD,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:jCt({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var S2=ye((Zhr,jEe)=>{"use strict";var JCt=Eo(),CE=Dr(),$Ct=A2(),QCt=kc().defaults,ekt=r0().handleText,tkt=Dr().coercePattern;function GEe(e,t){var r=CE.isArrayOrTypedArray(e),n=CE.isArrayOrTypedArray(t),i=Math.min(r?e.length:1/0,n?t.length:1/0);if(isFinite(i)||(i=0),i&&n){for(var a,o=0;o0){a=!0;break}}a||(i=0)}return{hasLabels:r,hasValues:n,len:i}}function HEe(e,t,r,n,i){var a=n("marker.line.width");a&&n("marker.line.color",i?void 0:r.paper_bgcolor);var o=n("marker.colors");tkt(n,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function rkt(e,t,r,n){function i(C,E){return CE.coerce(e,t,$Ct,C,E)}var a=i("labels"),o=i("values"),s=GEe(a,o),l=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!l){t.visible=!1;return}t._length=l,HEe(e,t,n,i,!0),i("scalegroup");var u=i("text"),c=i("texttemplate"),f;if(c||(f=i("textinfo",CE.isArrayOrTypedArray(u)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),c||f&&f!=="none"){var h=i("textposition");ekt(e,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",v=d||h==="outside";v&&i("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&i("insidetextorientation")}else f==="none"&&i("textposition","none");QCt(t,n,i);var _=i("hole"),b=i("title.text");if(b){var p=i("title.position",_?"middle center":"top center");!_&&p==="middle center"&&(t.title.position="top center"),CE.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}jEe.exports={handleLabelsAndValues:GEe,handleMarkerDefaults:HEe,supplyDefaults:rkt}});var hD=ye((Yhr,WEe)=>{"use strict";WEe.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var ZEe=ye((Khr,XEe)=>{"use strict";var ikt=Dr(),nkt=hD();XEe.exports=function(t,r){function n(i,a){return ikt.coerce(t,r,nkt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var xA=ye((Jhr,JEe)=>{"use strict";var akt=Eo(),hW=cd(),okt=Ca(),skt={};function lkt(e,t){var r=[],n=e._fullLayout,i=n.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,l=t._length,u=t._hasValues&&l,c,f;if(t.dlabel)for(a=new Array(l),c=0;c=0});var A=t.type==="funnelarea"?_:t.sort;return A&&r.sort(function(L,x){return x.v-L.v}),r[0]&&(r[0].vTotal=v),r}function YEe(e){return function(r,n){return!r||(r=hW(r),!r.isValid())?!1:(r=okt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function ukt(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,i=e.calcdata,a=n[r+"colorway"],o=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=KEe(a,skt));for(var s=0,l=0;l{"use strict";var ckt=ip().appendArrayMultiPointValues;$Ee.exports=function(t,r){var n={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(n.pointNumber=n.i=t.pts[0]),ckt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var gD=ye((Qhr,xCe)=>{"use strict";var Dp=Oa(),fkt=Mc(),dD=vf(),aCe=Ca(),Wy=So(),rv=Dr(),hkt=rv.strScale,eCe=rv.strTranslate,dW=ru(),oCe=bv(),dkt=oCe.recordMinTextSize,vkt=oCe.clearMinTextSize,sCe=Qb().TEXTPAD,as=l_(),vD=QEe(),tCe=Dr().isValidTextValue;function pkt(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;vkt("pie",n),cCe(t,e),mCe(t,i);var a=rv.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Dp.select(this),l=o[0],u=l.trace;Akt(o),s.attr("stroke-linejoin","round"),s.each(function(){var c=Dp.select(this).selectAll("g.slice").data(o);c.enter().append("g").classed("slice",!0),c.exit().remove();var f=[[[],[]],[[],[]]],h=!1;c.each(function(A,L){if(A.hidden){Dp.select(this).selectAll("path,g").remove();return}A.pointNumber=A.i,A.curveNumber=u.index,f[A.pxmid[1]<0?0:1][A.pxmid[0]<0?0:1].push(A);var x=l.cx,k=l.cy,M=Dp.select(this),g=M.selectAll("path.surface").data([A]);if(g.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),M.call(lCe,e,o),u.pull){var P=+as.castOption(u.pull,A.pts)||0;P>0&&(x+=P*A.pxmid[0],k+=P*A.pxmid[1])}A.cxFinal=x,A.cyFinal=k;function T(N,j,re,oe){var _e=oe*(j[0]-N[0]),Me=oe*(j[1]-N[1]);return"a"+oe*l.r+","+oe*l.r+" 0 "+A.largeArc+(re?" 1 ":" 0 ")+_e+","+Me}var z=u.hole;if(A.v===l.vTotal){var O="M"+(x+A.px0[0])+","+(k+A.px0[1])+T(A.px0,A.pxmid,!0,1)+T(A.pxmid,A.px0,!0,1)+"Z";z?g.attr("d","M"+(x+z*A.px0[0])+","+(k+z*A.px0[1])+T(A.px0,A.pxmid,!1,z)+T(A.pxmid,A.px0,!1,z)+"Z"+O):g.attr("d",O)}else{var V=T(A.px0,A.px1,!0,1);if(z){var G=1-z;g.attr("d","M"+(x+z*A.px1[0])+","+(k+z*A.px1[1])+T(A.px1,A.px0,!1,z)+"l"+G*A.px0[0]+","+G*A.px0[1]+V+"Z")}else g.attr("d","M"+x+","+k+"l"+A.px0[0]+","+A.px0[1]+V+"Z")}yCe(e,A,l);var Z=as.castOption(u.textposition,A.pts),H=M.selectAll("g.slicetext").data(A.text&&Z!=="none"?[0]:[]);H.enter().append("g").classed("slicetext",!0),H.exit().remove(),H.each(function(){var N=rv.ensureSingle(Dp.select(this),"text","",function(ie){ie.attr("data-notex",1)}),j=rv.ensureUniformFontSize(e,Z==="outside"?mkt(u,A,n.font):uCe(u,A,n.font));N.text(A.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Wy.font,j).call(dW.convertToTspans,e);var re=Wy.bBox(N.node()),oe;if(Z==="outside")oe=nCe(re,A);else if(oe=fCe(re,A,l),Z==="auto"&&oe.scale<1){var _e=rv.ensureUniformFontSize(e,u.outsidetextfont);N.call(Wy.font,_e),re=Wy.bBox(N.node()),oe=nCe(re,A)}var Me=oe.textPosAngle,ke=Me===void 0?A.pxmid:pD(l.r,Me);if(oe.targetX=x+ke[0]*oe.rCenter+(oe.x||0),oe.targetY=k+ke[1]*oe.rCenter+(oe.y||0),_Ce(oe,re),oe.outside){var me=oe.targetY;A.yLabelMin=me-re.height/2,A.yLabelMid=me,A.yLabelMax=me+re.height/2,A.labelExtraX=0,A.labelExtraY=0,h=!0}oe.fontSize=j.size,dkt(u.type,oe,n),o[L].transform=oe,rv.setTransormAndDisplay(N,oe)})});var d=Dp.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var A=rv.ensureSingle(Dp.select(this),"text","",function(k){k.attr("data-notex",1)}),L=u.title.text;u._meta&&(L=rv.templateString(L,u._meta)),A.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Wy.font,u.title.font).call(dW.convertToTspans,e);var x;u.title.position==="middle center"?x=xkt(l):x=pCe(l,i),A.attr("transform",eCe(x.x,x.y)+hkt(Math.min(1,x.scale))+eCe(x.tx,x.ty))}),h&&wkt(f,u),gkt(c,u),h&&u.automargin){var v=Wy.bBox(s.node()),_=u.domain,b=i.w*(_.x[1]-_.x[0]),p=i.h*(_.y[1]-_.y[0]),C=(.5*b-l.r)/i.w,E=(.5*p-l.r)/i.h;fkt.autoMargin(e,"pie."+u.uid+".automargin",{xl:_.x[0]-C,xr:_.x[1]+C,yb:_.y[0]-E,yt:_.y[1]+E,l:Math.max(l.cx-l.r-v.left,0),r:Math.max(v.right-(l.cx+l.r),0),b:Math.max(v.bottom-(l.cy+l.r),0),t:Math.max(l.cy-l.r-v.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Dp.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function gkt(e,t){e.each(function(r){var n=Dp.select(this);if(!r.labelExtraX&&!r.labelExtraY){n.select("path.textline").remove();return}var i=n.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,rv.setTransormAndDisplay(i,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,l=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var u=r.labelExtraX*r.pxmid[1]/r.pxmid[0],c=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(u)>Math.abs(c)?s+="l"+c*r.pxmid[0]/r.pxmid[1]+","+c+"H"+(a+r.labelExtraX+l):s+="l"+r.labelExtraX+","+u+"v"+(c-u)+"h"+l}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+l;rv.ensureSingle(n,"path","textline").call(aCe.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function lCe(e,t,r){var n=r[0],i=n.cx,a=n.cy,o=n.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(l){var u=t._fullLayout,c=t._fullData[o.index];if(!(t._dragging||u.hovermode===!1)){var f=c.hoverinfo;if(Array.isArray(f)&&(f=dD.castHoverinfo({hoverinfo:[as.castOption(f,l.pts)],_module:o._module},u,0)),f==="all"&&(f="label+text+value+percent+name"),c.hovertemplate||f!=="none"&&f!=="skip"&&f){var h=l.rInscribed||0,d=i+l.pxmid[0]*(1-h),v=a+l.pxmid[1]*(1-h),_=u.separators,b=[];if(f&&f.indexOf("label")!==-1&&b.push(l.label),l.text=as.castOption(c.hovertext||c.text,l.pts),f&&f.indexOf("text")!==-1){var p=l.text;rv.isValidTextValue(p)&&b.push(p)}l.value=l.v,l.valueLabel=as.formatPieValue(l.v,_),f&&f.indexOf("value")!==-1&&b.push(l.valueLabel),l.percent=l.v/n.vTotal,l.percentLabel=as.formatPiePercent(l.percent,_),f&&f.indexOf("percent")!==-1&&b.push(l.percentLabel);var C=c.hoverlabel,E=C.font,A=[];dD.loneHover({trace:o,x0:d-h*n.r,x1:d+h*n.r,y:v,_x0:s?i+l.TL[0]:d-h*n.r,_x1:s?i+l.TR[0]:d+h*n.r,_y0:s?a+l.TL[1]:v-h*n.r,_y1:s?a+l.BL[1]:v+h*n.r,text:b.join("
"),name:c.hovertemplate||f.indexOf("name")!==-1?c.name:void 0,idealAlign:l.pxmid[0]<0?"left":"right",color:as.castOption(C.bgcolor,l.pts)||l.color,borderColor:as.castOption(C.bordercolor,l.pts),fontFamily:as.castOption(E.family,l.pts),fontSize:as.castOption(E.size,l.pts),fontColor:as.castOption(E.color,l.pts),nameLength:as.castOption(C.namelength,l.pts),textAlign:as.castOption(C.align,l.pts),hovertemplate:as.castOption(c.hovertemplate,l.pts),hovertemplateLabels:l,eventData:[vD(l,c)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:t,inOut_bbox:A}),l.bbox=A[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[vD(l,c)],event:Dp.event})}}),e.on("mouseout",function(l){var u=t._fullLayout,c=t._fullData[o.index],f=Dp.select(this).datum();o._hasHoverEvent&&(l.originalEvent=Dp.event,t.emit("plotly_unhover",{points:[vD(f,c)],event:Dp.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(dD.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(l){var u=t._fullLayout,c=t._fullData[o.index];t._dragging||u.hovermode===!1||(t._hoverdata=[vD(l,c)],dD.click(t,Dp.event))})}function mkt(e,t,r){var n=as.castOption(e.outsidetextfont.color,t.pts)||as.castOption(e.textfont.color,t.pts)||r.color,i=as.castOption(e.outsidetextfont.family,t.pts)||as.castOption(e.textfont.family,t.pts)||r.family,a=as.castOption(e.outsidetextfont.size,t.pts)||as.castOption(e.textfont.size,t.pts)||r.size,o=as.castOption(e.outsidetextfont.weight,t.pts)||as.castOption(e.textfont.weight,t.pts)||r.weight,s=as.castOption(e.outsidetextfont.style,t.pts)||as.castOption(e.textfont.style,t.pts)||r.style,l=as.castOption(e.outsidetextfont.variant,t.pts)||as.castOption(e.textfont.variant,t.pts)||r.variant,u=as.castOption(e.outsidetextfont.textcase,t.pts)||as.castOption(e.textfont.textcase,t.pts)||r.textcase,c=as.castOption(e.outsidetextfont.lineposition,t.pts)||as.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=as.castOption(e.outsidetextfont.shadow,t.pts)||as.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n,family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function uCe(e,t,r){var n=as.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=as.castOption(e._input.textfont.color,t.pts));var i=as.castOption(e.insidetextfont.family,t.pts)||as.castOption(e.textfont.family,t.pts)||r.family,a=as.castOption(e.insidetextfont.size,t.pts)||as.castOption(e.textfont.size,t.pts)||r.size,o=as.castOption(e.insidetextfont.weight,t.pts)||as.castOption(e.textfont.weight,t.pts)||r.weight,s=as.castOption(e.insidetextfont.style,t.pts)||as.castOption(e.textfont.style,t.pts)||r.style,l=as.castOption(e.insidetextfont.variant,t.pts)||as.castOption(e.textfont.variant,t.pts)||r.variant,u=as.castOption(e.insidetextfont.textcase,t.pts)||as.castOption(e.textfont.textcase,t.pts)||r.textcase,c=as.castOption(e.insidetextfont.lineposition,t.pts)||as.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=as.castOption(e.insidetextfont.shadow,t.pts)||as.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n||aCe.contrast(t.color),family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function cCe(e,t){for(var r,n,i=0;i=-4;C-=2)p(Math.PI*C,"tan");for(C=4;C>=-4;C-=2)p(Math.PI*(C+1),"tan")}if(f||d){for(C=4;C>=-4;C-=2)p(Math.PI*(C+1.5),"rad");for(C=4;C>=-4;C-=2)p(Math.PI*(C+.5),"rad")}}if(s||v||f){var E=Math.sqrt(e.width*e.width+e.height*e.height);if(b={scale:i*n*2/E,rCenter:1-i,rotate:0},b.textPosAngle=(t.startangle+t.stopangle)/2,b.scale>=1)return b;_.push(b)}(v||d)&&(b=rCe(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,_.push(b)),(v||h)&&(b=iCe(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,_.push(b));for(var A=0,L=0,x=0;x<_.length;x++){var k=_[x].scale;if(L=1)break}return _[A]}function ykt(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function xkt(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function pCe(e,t){var r=1,n=1,i,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=gCe(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+i)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+i)*e.r);var l=bkt(e.r,e.trace.aspectratio),u=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(u=u+l,o.x-=(1+i)*l,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?u*=2:a.title.position.indexOf("right")!==-1&&(u=u+l,o.x+=(1+i)*l,s.tx-=e.titleBox.width/2),r=u/e.titleBox.width,n=vW(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function bkt(e,t){return e/(t===void 0?1:t)}function vW(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function gCe(e){var t=e.pull;if(!t)return 0;var r;if(rv.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function wkt(e,t){var r,n,i,a,o,s,l,u,c,f,h,d,v;function _(E,A){return E.pxmid[1]-A.pxmid[1]}function b(E,A){return A.pxmid[1]-E.pxmid[1]}function p(E,A){A||(A={});var L=A.labelExtraY+(n?A.yLabelMax:A.yLabelMin),x=n?E.yLabelMin:E.yLabelMax,k=n?E.yLabelMax:E.yLabelMin,M=E.cyFinal+o(E.px0[1],E.px1[1]),g=L-x,P,T,z,O,V,G;if(g*l>0&&(E.labelExtraY=g),!!rv.isArrayOrTypedArray(t.pull))for(T=0;T=(as.castOption(t.pull,z.pts)||0))&&((E.pxmid[1]-z.pxmid[1])*l>0?(O=z.cyFinal+o(z.px0[1],z.px1[1]),g=O-x-E.labelExtraY,g*l>0&&(E.labelExtraY+=g)):(k+E.labelExtraY-M)*l>0&&(P=3*s*Math.abs(T-f.indexOf(E)),V=z.cxFinal+a(z.px0[0],z.px1[0]),G=V+P-(E.cxFinal+E.pxmid[0])-E.labelExtraX,G*s>0&&(E.labelExtraX+=G)))}for(n=0;n<2;n++)for(i=n?_:b,o=n?Math.max:Math.min,l=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,u=e[n][r],u.sort(i),c=e[1-n][r],f=c.concat(u),d=[],h=0;h1?(u=r.r,c=u/i.aspectratio):(c=r.r,u=c*i.aspectratio),u*=(1+i.baseratio)/2,l=u*c}o=Math.min(o,l/r.vTotal)}for(n=0;nt.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/t.vTotal,.5),u.ring=1-n.hole,u.rInscribed=_kt(u,t))}function pD(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function yCe(e,t,r){var n=e._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),l=function(A){return s.indexOf(A)!==-1},u=l("label"),c=l("text"),f=l("value"),h=l("percent"),d=n.separators,v;if(v=u?[t.label]:[],c){var _=as.getFirstFilled(i.text,t.pts);tCe(_)&&v.push(_)}f&&v.push(as.formatPieValue(t.v,d)),h&&v.push(as.formatPiePercent(t.v/r.vTotal,d)),t.text=v.join("
")}function b(A){return{label:A.label,value:A.v,valueLabel:as.formatPieValue(A.v,n.separators),percent:A.v/r.vTotal,percentLabel:as.formatPiePercent(A.v/r.vTotal,n.separators),color:A.color,text:A.text,customdata:rv.castOption(i,A.i,"customdata")}}if(a){var p=rv.castOption(i,t.i,"texttemplate");if(!p)t.text="";else{var C=b(t),E=as.getFirstFilled(i.text,t.pts);(tCe(E)||E==="")&&(C.text=E),t.text=rv.texttemplateString(p,C,e._fullLayout._d3locale,C,i._meta||{})}}}function _Ce(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*n-o*i,e.textY=a*i+o*n,e.noCenter=!0}xCe.exports={plot:pkt,formatSliceLabel:yCe,transformInsideText:fCe,determineInsideTextFont:uCe,positionTitleOutside:pCe,prerenderTitles:cCe,layoutAreas:mCe,attachFxHandlers:lCe,computeTransform:_Ce}});var TCe=ye((edr,wCe)=>{"use strict";var bCe=Oa(),Skt=z3(),Mkt=bv().resizeText;wCe.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");Mkt(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=bCe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){bCe.select(this).call(Skt,s,a,t)})})}});var SCe=ye(bA=>{"use strict";var ACe=Mc();bA.name="pie";bA.plot=function(e,t,r,n){ACe.plotBasePlot(bA.name,e,t,r,n)};bA.clean=function(e,t,r,n){ACe.cleanBasePlot(bA.name,e,t,r,n)}});var ECe=ye((rdr,MCe)=>{"use strict";MCe.exports={attributes:A2(),supplyDefaults:S2().supplyDefaults,supplyLayoutDefaults:ZEe(),layoutAttributes:hD(),calc:xA().calc,crossTraceCalc:xA().crossTraceCalc,plot:gD().plot,style:TCe(),styleOne:z3(),moduleType:"trace",name:"pie",basePlotModule:SCe(),categories:["pie-like","pie","showLegend"],meta:{}}});var kCe=ye((idr,CCe)=>{"use strict";CCe.exports=ECe()});var PCe=ye(wA=>{"use strict";var LCe=Mc();wA.name="sunburst";wA.plot=function(e,t,r,n){LCe.plotBasePlot(wA.name,e,t,r,n)};wA.clean=function(e,t,r,n){LCe.cleanBasePlot(wA.name,e,t,r,n)}});var pW=ye((adr,ICe)=>{"use strict";ICe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var LE=ye((odr,DCe)=>{"use strict";var Ekt=Gl(),Ckt=Qo().hovertemplateAttrs,kkt=Qo().texttemplateAttrs,Lkt=Tu(),Pkt=kc().attributes,Xy=A2(),RCe=pW(),kE=Ao().extendFlat,Ikt=Pd().pattern;DCe.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:kE({colors:{valType:"data_array",editType:"calc"},line:{color:kE({},Xy.marker.line.color,{dflt:null}),width:kE({},Xy.marker.line.width,{dflt:1}),editType:"calc"},pattern:Ikt,editType:"calc"},Lkt("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:Xy.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:kkt({editType:"plot"},{keys:RCe.eventDataKeys.concat(["label","value"])}),hovertext:Xy.hovertext,hoverinfo:kE({},Ekt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:Ckt({},{keys:RCe.eventDataKeys}),textfont:Xy.textfont,insidetextorientation:Xy.insidetextorientation,insidetextfont:Xy.insidetextfont,outsidetextfont:kE({},Xy.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:Xy.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:Pkt({name:"sunburst",trace:!0,editType:"calc"})}});var gW=ye((sdr,FCe)=>{"use strict";FCe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var BCe=ye((ldr,qCe)=>{"use strict";var zCe=Dr(),Rkt=LE(),Dkt=kc().defaults,Fkt=r0().handleText,zkt=S2().handleMarkerDefaults,OCe=tc(),Okt=OCe.hasColorscale,qkt=OCe.handleDefaults;qCe.exports=function(t,r,n,i){function a(h,d){return zCe.coerce(t,r,Rkt,h,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),zkt(t,r,i,a);var u=r._hasColorscale=Okt(t,"marker","colors")||(t.marker||{}).coloraxis;u&&qkt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",u?1:.7);var c=a("text");a("texttemplate"),r.texttemplate||a("textinfo",zCe.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f="auto";Fkt(t,r,i,a,f,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),Dkt(r,i,a),r._length=null}});var UCe=ye((udr,NCe)=>{"use strict";var Bkt=Dr(),Nkt=gW();NCe.exports=function(t,r){function n(i,a){return Bkt.coerce(t,r,Nkt,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var PE=ye((mD,VCe)=>{(function(e,t){typeof mD=="object"&&typeof VCe!="undefined"?t(mD):(e=e||self,t(e.d3=e.d3||{}))})(mD,function(e){"use strict";function t(je,$e){return je.parent===$e.parent?1:2}function r(je){return je.reduce(n,0)/je.length}function n(je,$e){return je+$e.x}function i(je){return 1+je.reduce(a,0)}function a(je,$e){return Math.max(je,$e.y)}function o(je){for(var $e;$e=je.children;)je=$e[0];return je}function s(je){for(var $e;$e=je.children;)je=$e[$e.length-1];return je}function l(){var je=t,$e=1,wt=1,Ie=!1;function xe(Ce){var vt,nr=0;Ce.eachAfter(function(Jr){var fi=Jr.children;fi?(Jr.x=r(fi),Jr.y=i(fi)):(Jr.x=vt?nr+=je(Jr,vt):0,Jr.y=0,vt=Jr)});var ir=o(Ce),pr=s(Ce),oi=ir.x-je(ir,pr)/2,di=pr.x+je(pr,ir)/2;return Ce.eachAfter(Ie?function(Jr){Jr.x=(Jr.x-Ce.x)*$e,Jr.y=(Ce.y-Jr.y)*wt}:function(Jr){Jr.x=(Jr.x-oi)/(di-oi)*$e,Jr.y=(1-(Ce.y?Jr.y/Ce.y:1))*wt})}return xe.separation=function(Ce){return arguments.length?(je=Ce,xe):je},xe.size=function(Ce){return arguments.length?(Ie=!1,$e=+Ce[0],wt=+Ce[1],xe):Ie?null:[$e,wt]},xe.nodeSize=function(Ce){return arguments.length?(Ie=!0,$e=+Ce[0],wt=+Ce[1],xe):Ie?[$e,wt]:null},xe}function u(je){var $e=0,wt=je.children,Ie=wt&&wt.length;if(!Ie)$e=1;else for(;--Ie>=0;)$e+=wt[Ie].value;je.value=$e}function c(){return this.eachAfter(u)}function f(je){var $e=this,wt,Ie=[$e],xe,Ce,vt;do for(wt=Ie.reverse(),Ie=[];$e=wt.pop();)if(je($e),xe=$e.children,xe)for(Ce=0,vt=xe.length;Ce=0;--xe)wt.push(Ie[xe]);return this}function d(je){for(var $e=this,wt=[$e],Ie=[],xe,Ce,vt;$e=wt.pop();)if(Ie.push($e),xe=$e.children,xe)for(Ce=0,vt=xe.length;Ce=0;)wt+=Ie[xe].value;$e.value=wt})}function _(je){return this.eachBefore(function($e){$e.children&&$e.children.sort(je)})}function b(je){for(var $e=this,wt=p($e,je),Ie=[$e];$e!==wt;)$e=$e.parent,Ie.push($e);for(var xe=Ie.length;je!==wt;)Ie.splice(xe,0,je),je=je.parent;return Ie}function p(je,$e){if(je===$e)return je;var wt=je.ancestors(),Ie=$e.ancestors(),xe=null;for(je=wt.pop(),$e=Ie.pop();je===$e;)xe=je,je=wt.pop(),$e=Ie.pop();return xe}function C(){for(var je=this,$e=[je];je=je.parent;)$e.push(je);return $e}function E(){var je=[];return this.each(function($e){je.push($e)}),je}function A(){var je=[];return this.eachBefore(function($e){$e.children||je.push($e)}),je}function L(){var je=this,$e=[];return je.each(function(wt){wt!==je&&$e.push({source:wt.parent,target:wt})}),$e}function x(je,$e){var wt=new T(je),Ie=+je.value&&(wt.value=je.value),xe,Ce=[wt],vt,nr,ir,pr;for($e==null&&($e=M);xe=Ce.pop();)if(Ie&&(xe.value=+xe.data.value),(nr=$e(xe.data))&&(pr=nr.length))for(xe.children=new Array(pr),ir=pr-1;ir>=0;--ir)Ce.push(vt=xe.children[ir]=new T(nr[ir])),vt.parent=xe,vt.depth=xe.depth+1;return wt.eachBefore(P)}function k(){return x(this).eachBefore(g)}function M(je){return je.children}function g(je){je.data=je.data.data}function P(je){var $e=0;do je.height=$e;while((je=je.parent)&&je.height<++$e)}function T(je){this.data=je,this.depth=this.height=0,this.parent=null}T.prototype=x.prototype={constructor:T,count:c,each:f,eachAfter:d,eachBefore:h,sum:v,sort:_,path:b,ancestors:C,descendants:E,leaves:A,links:L,copy:k};var z=Array.prototype.slice;function O(je){for(var $e=je.length,wt,Ie;$e;)Ie=Math.random()*$e--|0,wt=je[$e],je[$e]=je[Ie],je[Ie]=wt;return je}function V(je){for(var $e=0,wt=(je=O(z.call(je))).length,Ie=[],xe,Ce;$e0&&wt*wt>Ie*Ie+xe*xe}function N(je,$e){for(var wt=0;wt<$e.length;++wt)if(!H(je,$e[wt]))return!1;return!0}function j(je){switch(je.length){case 1:return re(je[0]);case 2:return oe(je[0],je[1]);case 3:return _e(je[0],je[1],je[2])}}function re(je){return{x:je.x,y:je.y,r:je.r}}function oe(je,$e){var wt=je.x,Ie=je.y,xe=je.r,Ce=$e.x,vt=$e.y,nr=$e.r,ir=Ce-wt,pr=vt-Ie,oi=nr-xe,di=Math.sqrt(ir*ir+pr*pr);return{x:(wt+Ce+ir/di*oi)/2,y:(Ie+vt+pr/di*oi)/2,r:(di+xe+nr)/2}}function _e(je,$e,wt){var Ie=je.x,xe=je.y,Ce=je.r,vt=$e.x,nr=$e.y,ir=$e.r,pr=wt.x,oi=wt.y,di=wt.r,Jr=Ie-vt,fi=Ie-pr,Hi=xe-nr,Pn=xe-oi,wn=ir-Ce,pn=di-Ce,Vn=Ie*Ie+xe*xe-Ce*Ce,kn=Vn-vt*vt-nr*nr+ir*ir,ea=Vn-pr*pr-oi*oi+di*di,ua=fi*Hi-Jr*Pn,Vt=(Hi*ea-Pn*kn)/(ua*2)-Ie,_t=(Pn*wn-Hi*pn)/ua,tr=(fi*kn-Jr*ea)/(ua*2)-xe,ar=(Jr*pn-fi*wn)/ua,Er=_t*_t+ar*ar-1,Zr=2*(Ce+Vt*_t+tr*ar),ri=Vt*Vt+tr*tr-Ce*Ce,$r=-(Er?(Zr+Math.sqrt(Zr*Zr-4*Er*ri))/(2*Er):ri/Zr);return{x:Ie+Vt+_t*$r,y:xe+tr+ar*$r,r:$r}}function Me(je,$e,wt){var Ie=je.x-$e.x,xe,Ce,vt=je.y-$e.y,nr,ir,pr=Ie*Ie+vt*vt;pr?(Ce=$e.r+wt.r,Ce*=Ce,ir=je.r+wt.r,ir*=ir,Ce>ir?(xe=(pr+ir-Ce)/(2*pr),nr=Math.sqrt(Math.max(0,ir/pr-xe*xe)),wt.x=je.x-xe*Ie-nr*vt,wt.y=je.y-xe*vt+nr*Ie):(xe=(pr+Ce-ir)/(2*pr),nr=Math.sqrt(Math.max(0,Ce/pr-xe*xe)),wt.x=$e.x+xe*Ie-nr*vt,wt.y=$e.y+xe*vt+nr*Ie)):(wt.x=$e.x+wt.r,wt.y=$e.y)}function ke(je,$e){var wt=je.r+$e.r-1e-6,Ie=$e.x-je.x,xe=$e.y-je.y;return wt>0&&wt*wt>Ie*Ie+xe*xe}function me(je){var $e=je._,wt=je.next._,Ie=$e.r+wt.r,xe=($e.x*wt.r+wt.x*$e.r)/Ie,Ce=($e.y*wt.r+wt.y*$e.r)/Ie;return xe*xe+Ce*Ce}function ie(je){this._=je,this.next=null,this.previous=null}function Se(je){if(!(xe=je.length))return 0;var $e,wt,Ie,xe,Ce,vt,nr,ir,pr,oi,di;if($e=je[0],$e.x=0,$e.y=0,!(xe>1))return $e.r;if(wt=je[1],$e.x=-wt.r,wt.x=$e.r,wt.y=0,!(xe>2))return $e.r+wt.r;Me(wt,$e,Ie=je[2]),$e=new ie($e),wt=new ie(wt),Ie=new ie(Ie),$e.next=Ie.previous=wt,wt.next=$e.previous=Ie,Ie.next=wt.previous=$e;e:for(nr=3;nr0)throw new Error("cycle");return nr}return wt.id=function(Ie){return arguments.length?(je=De(Ie),wt):je},wt.parentId=function(Ie){return arguments.length?($e=De(Ie),wt):$e},wt}function Qe(je,$e){return je.parent===$e.parent?1:2}function Et(je){var $e=je.children;return $e?$e[0]:je.t}function er(je){var $e=je.children;return $e?$e[$e.length-1]:je.t}function Ut(je,$e,wt){var Ie=wt/($e.i-je.i);$e.c-=Ie,$e.s+=wt,je.c+=Ie,$e.z+=wt,$e.m+=wt}function Ft(je){for(var $e=0,wt=0,Ie=je.children,xe=Ie.length,Ce;--xe>=0;)Ce=Ie[xe],Ce.z+=$e,Ce.m+=$e,$e+=Ce.s+(wt+=Ce.c)}function bt(je,$e,wt){return je.a.parent===$e.parent?je.a:wt}function yt(je,$e){this._=je,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=$e}yt.prototype=Object.create(T.prototype);function Yt(je){for(var $e=new yt(je,0),wt,Ie=[$e],xe,Ce,vt,nr;wt=Ie.pop();)if(Ce=wt._.children)for(wt.children=new Array(nr=Ce.length),vt=nr-1;vt>=0;--vt)Ie.push(xe=wt.children[vt]=new yt(Ce[vt],vt)),xe.parent=wt;return($e.parent=new yt(null,0)).children=[$e],$e}function lr(){var je=Qe,$e=1,wt=1,Ie=null;function xe(pr){var oi=Yt(pr);if(oi.eachAfter(Ce),oi.parent.m=-oi.z,oi.eachBefore(vt),Ie)pr.eachBefore(ir);else{var di=pr,Jr=pr,fi=pr;pr.eachBefore(function(Vn){Vn.xJr.x&&(Jr=Vn),Vn.depth>fi.depth&&(fi=Vn)});var Hi=di===Jr?1:je(di,Jr)/2,Pn=Hi-di.x,wn=$e/(Jr.x+Hi+Pn),pn=wt/(fi.depth||1);pr.eachBefore(function(Vn){Vn.x=(Vn.x+Pn)*wn,Vn.y=Vn.depth*pn})}return pr}function Ce(pr){var oi=pr.children,di=pr.parent.children,Jr=pr.i?di[pr.i-1]:null;if(oi){Ft(pr);var fi=(oi[0].z+oi[oi.length-1].z)/2;Jr?(pr.z=Jr.z+je(pr._,Jr._),pr.m=pr.z-fi):pr.z=fi}else Jr&&(pr.z=Jr.z+je(pr._,Jr._));pr.parent.A=nr(pr,Jr,pr.parent.A||di[0])}function vt(pr){pr._.x=pr.z+pr.parent.m,pr.m+=pr.parent.m}function nr(pr,oi,di){if(oi){for(var Jr=pr,fi=pr,Hi=oi,Pn=Jr.parent.children[0],wn=Jr.m,pn=fi.m,Vn=Hi.m,kn=Pn.m,ea;Hi=er(Hi),Jr=Et(Jr),Hi&&Jr;)Pn=Et(Pn),fi=er(fi),fi.a=pr,ea=Hi.z+Vn-Jr.z-wn+je(Hi._,Jr._),ea>0&&(Ut(bt(Hi,pr,di),pr,ea),wn+=ea,pn+=ea),Vn+=Hi.m,wn+=Jr.m,kn+=Pn.m,pn+=fi.m;Hi&&!er(fi)&&(fi.t=Hi,fi.m+=Vn-pn),Jr&&!Et(Pn)&&(Pn.t=Jr,Pn.m+=wn-kn,di=pr)}return di}function ir(pr){pr.x*=$e,pr.y=pr.depth*wt}return xe.separation=function(pr){return arguments.length?(je=pr,xe):je},xe.size=function(pr){return arguments.length?(Ie=!1,$e=+pr[0],wt=+pr[1],xe):Ie?null:[$e,wt]},xe.nodeSize=function(pr){return arguments.length?(Ie=!0,$e=+pr[0],wt=+pr[1],xe):Ie?[$e,wt]:null},xe}function Tr(je,$e,wt,Ie,xe){for(var Ce=je.children,vt,nr=-1,ir=Ce.length,pr=je.value&&(xe-wt)/je.value;++nrVn&&(Vn=pr),Vt=wn*wn*ua,kn=Math.max(Vn/Vt,Vt/pn),kn>ea){wn-=pr;break}ea=kn}vt.push(ir={value:wn,dice:fi1?Ie:1)},wt}(Rr);function Ur(){var je=Wr,$e=!1,wt=1,Ie=1,xe=[0],Ce=Pe,vt=Pe,nr=Pe,ir=Pe,pr=Pe;function oi(Jr){return Jr.x0=Jr.y0=0,Jr.x1=wt,Jr.y1=Ie,Jr.eachBefore(di),xe=[0],$e&&Jr.eachBefore(Wt),Jr}function di(Jr){var fi=xe[Jr.depth],Hi=Jr.x0+fi,Pn=Jr.y0+fi,wn=Jr.x1-fi,pn=Jr.y1-fi;wn=Jr-1){var Vn=Ce[di];Vn.x0=Hi,Vn.y0=Pn,Vn.x1=wn,Vn.y1=pn;return}for(var kn=pr[di],ea=fi/2+kn,ua=di+1,Vt=Jr-1;ua>>1;pr[_t]pn-Pn){var Er=(Hi*ar+wn*tr)/fi;oi(di,ua,tr,Hi,Pn,Er,pn),oi(ua,Jr,ar,Er,Pn,wn,pn)}else{var Zr=(Pn*ar+pn*tr)/fi;oi(di,ua,tr,Hi,Pn,wn,Zr),oi(ua,Jr,ar,Hi,Zr,wn,pn)}}}function Ge(je,$e,wt,Ie,xe){(je.depth&1?Tr:st)(je,$e,wt,Ie,xe)}var Je=function je($e){function wt(Ie,xe,Ce,vt,nr){if((ir=Ie._squarify)&&ir.ratio===$e)for(var ir,pr,oi,di,Jr=-1,fi,Hi=ir.length,Pn=Ie.value;++Jr1?Ie:1)},wt}(Rr);e.cluster=l,e.hierarchy=x,e.pack=ce,e.packEnclose=V,e.packSiblings=Le,e.partition=lt,e.stratify=ur,e.tree=lr,e.treemap=Ur,e.treemapBinary=dt,e.treemapDice=st,e.treemapResquarify=Je,e.treemapSlice=Tr,e.treemapSliceDice=Ge,e.treemapSquarify=Wr,Object.defineProperty(e,"__esModule",{value:!0})})});var RE=ye(IE=>{"use strict";var GCe=PE(),Ukt=Eo(),TA=Dr(),Vkt=tc().makeColorScaleFuncFromTrace,Gkt=xA().makePullColorFn,Hkt=xA().generateExtendedColors,jkt=tc().calc,Wkt=hs().ALMOST_EQUAL,Xkt={},Zkt={},Ykt={};IE.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=TA.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,l=TA.isArrayOrTypedArray(s),u=[],c={},f={},h=function(H,N){c[H]?c[H].push(N):c[H]=[N],f[N]=1},d=function(H){return H||typeof H=="number"},v=function(H){return!l||Ukt(s[H])&&s[H]>=0},_,b,p;i?(_=Math.min(n.length,o.length),b=function(H){return d(n[H])&&v(H)},p=function(H){return String(n[H])}):(_=Math.min(a.length,o.length),b=function(H){return d(a[H])&&v(H)},p=function(H){return String(a[H])}),l&&(_=Math.min(_,s.length));for(var C=0;C<_;C++)if(b(C)){var E=p(C),A=d(o[C])?String(o[C]):"",L={i:C,id:E,pid:A,label:d(a[C])?String(a[C]):""};l&&(L.v=+s[C]),u.push(L),h(A,E)}if(c[""]){if(c[""].length>1){for(var M=TA.randstr(),g=0;g{});function Vm(){}function HCe(){return this.rgb().formatHex()}function e6t(){return this.rgb().formatHex8()}function t6t(){return JCe(this).formatHsl()}function jCe(){return this.rgb().formatRgb()}function j_(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Xkt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?WCe(t):r===3?new _d(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?_D(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?_D(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Zkt.exec(e))?new _d(t[1],t[2],t[3],1):(t=Ykt.exec(e))?new _d(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Kkt.exec(e))?_D(t[1],t[2],t[3],t[4]):(t=Jkt.exec(e))?_D(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$kt.exec(e))?YCe(t[1],t[2]/100,t[3]/100,1):(t=Qkt.exec(e))?YCe(t[1],t[2]/100,t[3]/100,t[4]):GCe.hasOwnProperty(e)?WCe(GCe[e]):e==="transparent"?new _d(NaN,NaN,NaN,0):null}function WCe(e){return new _d(e>>16&255,e>>8&255,e&255,1)}function _D(e,t,r,n){return n<=0&&(e=t=r=NaN),new _d(e,t,r,n)}function DE(e){return e instanceof Vm||(e=j_(e)),e?(e=e.rgb(),new _d(e.r,e.g,e.b,e.opacity)):new _d}function AA(e,t,r,n){return arguments.length===1?DE(e):new _d(e,t,r,n==null?1:n)}function _d(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function XCe(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}`}function r6t(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}${M2((isNaN(this.opacity)?1:this.opacity)*255)}`}function ZCe(){let e=bD(this.opacity);return`${e===1?"rgb(":"rgba("}${E2(this.r)}, ${E2(this.g)}, ${E2(this.b)}${e===1?")":`, ${e})`}`}function bD(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function E2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function M2(e){return e=E2(e),(e<16?"0":"")+e.toString(16)}function YCe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xg(e,t,r,n)}function JCe(e){if(e instanceof Xg)return new Xg(e.h,e.s,e.l,e.opacity);if(e instanceof Vm||(e=j_(e)),!e)return new Xg;if(e instanceof Xg)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&l<1?0:o,new Xg(o,s,l,e.opacity)}function FE(e,t,r,n){return arguments.length===1?JCe(e):new Xg(e,t,r,n==null?1:n)}function Xg(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function KCe(e){return e=(e||0)%360,e<0?e+360:e}function xD(e){return Math.max(0,Math.min(1,e||0))}function mW(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var H_,C2,TA,RE,Um,Xkt,Zkt,Ykt,Kkt,Jkt,$kt,Qkt,GCe,wD=gu(()=>{yD();H_=.7,C2=1/H_,TA="\\s*([+-]?\\d+)\\s*",RE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Um="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xkt=/^#([0-9a-f]{3,8})$/,Zkt=new RegExp(`^rgb\\(${TA},${TA},${TA}\\)$`),Ykt=new RegExp(`^rgb\\(${Um},${Um},${Um}\\)$`),Kkt=new RegExp(`^rgba\\(${TA},${TA},${TA},${RE}\\)$`),Jkt=new RegExp(`^rgba\\(${Um},${Um},${Um},${RE}\\)$`),$kt=new RegExp(`^hsl\\(${RE},${Um},${Um}\\)$`),Qkt=new RegExp(`^hsla\\(${RE},${Um},${Um},${RE}\\)$`),GCe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Zy(Vm,j_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:HCe,formatHex:HCe,formatHex8:e6t,formatHsl:t6t,formatRgb:jCe,toString:jCe});Zy(_d,AA,G_(Vm,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?H_:Math.pow(H_,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _d(E2(this.r),E2(this.g),E2(this.b),bD(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:XCe,formatHex:XCe,formatHex8:r6t,formatRgb:ZCe,toString:ZCe}));Zy(Xg,FE,G_(Vm,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new Xg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?H_:Math.pow(H_,e),new Xg(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new _d(mW(e>=240?e-240:e+120,i,n),mW(e,i,n),mW(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xg(KCe(this.h),xD(this.s),xD(this.l),bD(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=bD(this.opacity);return`${e===1?"hsl(":"hsla("}${KCe(this.h)}, ${xD(this.s)*100}%, ${xD(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var TD,AD,yW=gu(()=>{TD=Math.PI/180,AD=180/Math.PI});function ike(e){if(e instanceof Gm)return new Gm(e.l,e.a,e.b,e.opacity);if(e instanceof Yy)return nke(e);e instanceof _d||(e=DE(e));var t=wW(e.r),r=wW(e.g),n=wW(e.b),i=_W((.2225045*t+.7168786*r+.0606169*n)/QCe),a,o;return t===r&&r===n?a=o=i:(a=_W((.4360747*t+.3850649*r+.1430804*n)/$Ce),o=_W((.0139322*t+.0971045*r+.7141733*n)/eke)),new Gm(116*i-16,500*(a-i),200*(i-o),e.opacity)}function MA(e,t,r,n){return arguments.length===1?ike(e):new Gm(e,t,r,n==null?1:n)}function Gm(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function _W(e){return e>i6t?Math.pow(e,1/3):e/rke+tke}function xW(e){return e>SA?e*e*e:rke*(e-tke)}function bW(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function wW(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function n6t(e){if(e instanceof Yy)return new Yy(e.h,e.c,e.l,e.opacity);if(e instanceof Gm||(e=ike(e)),e.a===0&&e.b===0)return new Yy(NaN,0{yD();wD();yW();SD=18,$Ce=.96422,QCe=1,eke=.82521,tke=4/29,SA=6/29,rke=3*SA*SA,i6t=SA*SA*SA;Zy(Gm,MA,G_(Vm,{brighter(e){return new Gm(this.l+SD*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Gm(this.l-SD*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=$Ce*xW(t),e=QCe*xW(e),r=eke*xW(r),new _d(bW(3.1338561*t-1.6168667*e-.4906146*r),bW(-.9787684*t+1.9161415*e+.033454*r),bW(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));Zy(Yy,zE,G_(Vm,{brighter(e){return new Yy(this.h,this.c,this.l+SD*(e==null?1:e),this.opacity)},darker(e){return new Yy(this.h,this.c,this.l-SD*(e==null?1:e),this.opacity)},rgb(){return nke(this).rgb()}}))});function a6t(e){if(e instanceof k2)return new k2(e.h,e.s,e.l,e.opacity);e instanceof _d||(e=DE(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(lke*n+oke*t-ske*r)/(lke+oke-ske),a=n-i,o=(OE*(r-i)-AW*a)/MD,s=Math.sqrt(o*o+a*a)/(OE*i*(1-i)),l=s?Math.atan2(o,a)*AD-120:NaN;return new k2(l<0?l+360:l,s,i,e.opacity)}function EA(e,t,r,n){return arguments.length===1?a6t(e):new k2(e,t,r,n==null?1:n)}function k2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var uke,TW,AW,MD,OE,oke,ske,lke,cke=gu(()=>{yD();wD();yW();uke=-.14861,TW=1.78277,AW=-.29227,MD=-.90649,OE=1.97294,oke=OE*MD,ske=OE*TW,lke=TW*AW-MD*uke;Zy(k2,EA,G_(Vm,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new k2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?H_:Math.pow(H_,e),new k2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*TD,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new _d(255*(t+r*(uke*n+TW*i)),255*(t+r*(AW*n+MD*i)),255*(t+r*(OE*n)),this.opacity)}}))});var L2=gu(()=>{wD();ake();cke()});function SW(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function ED(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n{});function kD(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return SW((r-n/t)*t,i,a,o,s)}}var MW=gu(()=>{CD()});var CA,EW=gu(()=>{CA=e=>()=>e});function fke(e,t){return function(r){return e+r*t}}function o6t(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function W_(e,t){var r=t-e;return r?fke(e,r>180||r<-180?r-360*Math.round(r/360):r):CA(isNaN(e)?t:e)}function hke(e){return(e=+e)==1?$f:function(t,r){return r-t?o6t(t,r,e):CA(isNaN(t)?r:t)}}function $f(e,t){var r=t-e;return r?fke(e,r):CA(isNaN(e)?t:e)}var P2=gu(()=>{EW()});function dke(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o{L2();CD();MW();P2();qE=function e(t){var r=hke(t);function n(i,a){var o=r((i=AA(i)).r,(a=AA(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=$f(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n}(1);vke=dke(ED),pke=dke(kD)});function kA(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{});function gke(e,t){return(LD(t)?kA:kW)(e,t)}function kW(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{BE();PD()});function ID(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var PW=gu(()=>{});function Fp(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var NE=gu(()=>{});function RD(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=X_(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var IW=gu(()=>{BE()});function s6t(e){return function(){return e}}function l6t(e){return function(t){return e(t)+""}}function DD(e,t){var r=DW.lastIndex=RW.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=DW.exec(e))&&(i=RW.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Fp(n,i)})),r=RW.lastIndex;return r{NE();DW=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,RW=new RegExp(DW.source,"g")});function X_(e,t){var r=typeof t,n;return t==null||r==="boolean"?CA(t):(r==="number"?Fp:r==="string"?(n=j_(t))?(t=n,qE):DD:t instanceof j_?qE:t instanceof Date?ID:LD(t)?kA:Array.isArray(t)?kW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?RD:Fp)(e,t)}var BE=gu(()=>{L2();CW();LW();PW();NE();IW();FW();EW();PD()});function mke(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var yke=gu(()=>{});function _ke(e,t){var r=W_(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var xke=gu(()=>{P2()});function bke(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var wke=gu(()=>{});function zW(e,t,r,n,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n{Tke=180/Math.PI,FD={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function Ske(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?FD:zW(t.a,t.b,t.c,t.d,t.e,t.f)}function Mke(e){return e==null?FD:(zD||(zD=document.createElementNS("http://www.w3.org/2000/svg","g")),zD.setAttribute("transform",e),(e=zD.transform.baseVal.consolidate())?(e=e.matrix,zW(e.a,e.b,e.c,e.d,e.e,e.f)):FD)}var zD,Eke=gu(()=>{Ake()});function Cke(e,t,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,d,v){if(u!==f||c!==h){var x=d.push("translate(",null,t,null,r);v.push({i:x-4,x:Fp(u,f)},{i:x-2,x:Fp(c,h)})}else(f||h)&&d.push("translate("+f+t+h+r)}function o(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:Fp(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:Fp(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,h,d,v){if(u!==f||c!==h){var x=d.push(i(d)+"scale(",null,",",null,")");v.push({i:x-4,x:Fp(u,f)},{i:x-2,x:Fp(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),o(u.rotate,c.rotate,f,h),s(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(d){for(var v=-1,x=h.length,b;++v{NE();Eke();kke=Cke(Ske,"px, ","px)","deg)"),Lke=Cke(Mke,", ",")",")")});function Ike(e){return((e=Math.exp(e))+1/e)/2}function c6t(e){return((e=Math.exp(e))-1/e)/2}function f6t(e){return((e=Math.exp(2*e))-1)/(e+1)}var u6t,Rke,Dke=gu(()=>{u6t=1e-12;Rke=function e(t,r,n){function i(a,o){var s=a[0],l=a[1],u=a[2],c=o[0],f=o[1],h=o[2],d=c-s,v=f-l,x=d*d+v*v,b,p;if(x{L2();P2();zke=Fke(W_),Oke=Fke($f)});function OW(e,t){var r=$f((e=MA(e)).l,(t=MA(t)).l),n=$f(e.a,t.a),i=$f(e.b,t.b),a=$f(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}var Bke=gu(()=>{L2();P2()});function Nke(e){return function(t,r){var n=e((t=zE(t)).h,(r=zE(r)).h),i=$f(t.c,r.c),a=$f(t.l,r.l),o=$f(t.opacity,r.opacity);return function(s){return t.h=n(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var Uke,Vke,Gke=gu(()=>{L2();P2();Uke=Nke(W_),Vke=Nke($f)});function Hke(e){return function t(r){r=+r;function n(i,a){var o=e((i=EA(i)).h,(a=EA(a)).h),s=$f(i.s,a.s),l=$f(i.l,a.l),u=$f(i.opacity,a.opacity);return function(c){return i.h=o(c),i.s=s(c),i.l=l(Math.pow(c,r)),i.opacity=u(c),i+""}}return n.gamma=t,n}(1)}var jke,Wke,Xke=gu(()=>{L2();P2();jke=Hke(W_),Wke=Hke($f)});function qW(e,t){t===void 0&&(t=e,e=X_);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{BE()});function Yke(e,t){for(var r=new Array(t),n=0;n{});var I2={};uee(I2,{interpolate:()=>X_,interpolateArray:()=>gke,interpolateBasis:()=>ED,interpolateBasisClosed:()=>kD,interpolateCubehelix:()=>jke,interpolateCubehelixLong:()=>Wke,interpolateDate:()=>ID,interpolateDiscrete:()=>mke,interpolateHcl:()=>Uke,interpolateHclLong:()=>Vke,interpolateHsl:()=>zke,interpolateHslLong:()=>Oke,interpolateHue:()=>_ke,interpolateLab:()=>OW,interpolateNumber:()=>Fp,interpolateNumberArray:()=>kA,interpolateObject:()=>RD,interpolateRgb:()=>qE,interpolateRgbBasis:()=>vke,interpolateRgbBasisClosed:()=>pke,interpolateRound:()=>bke,interpolateString:()=>DD,interpolateTransformCss:()=>kke,interpolateTransformSvg:()=>Lke,interpolateZoom:()=>Rke,piecewise:()=>qW,quantize:()=>Yke});var R2=gu(()=>{BE();LW();CD();MW();PW();yke();xke();NE();PD();IW();wke();FW();Pke();Dke();CW();qke();Bke();Gke();Xke();Zke();Kke()});var OD=ye((Jvr,Jke)=>{"use strict";var h6t=So(),d6t=Ca();Jke.exports=function(t,r,n,i,a){var o=r.data.data,s=o.i,l=a||o.color;if(s>=0){r.i=o.i;var u=n.marker;u.pattern?(!u.colors||!u.pattern.shape)&&(u.color=l,r.color=l):(u.color=l,r.color=l),h6t.pointStyle(t,n,i,r)}else d6t.fill(t,l)}});var BW=ye(($vr,r6e)=>{"use strict";var $ke=Oa(),Qke=Ca(),e6e=Dr(),v6t=bv().resizeText,p6t=OD();function g6t(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");v6t(e,t,"sunburst"),t.each(function(r){var n=$ke.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){$ke.select(this).call(t6e,o,a,e)})})}function t6e(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=e6e.castOption(r,o,"marker.line.color")||Qke.defaultLine,l=e6e.castOption(r,o,"marker.line.width")||0;e.call(p6t,t,r,n).style("stroke-width",l).call(Qke.stroke,s).style("opacity",a?r.leaf.opacity:null)}r6e.exports={style:g6t,styleOne:t6e}});var Ky=ye(Ns=>{"use strict";var D2=Dr(),m6t=Ca(),y6t=Tg(),i6e=l_();Ns.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(n){if(Ns.getPtId(n)===t)return r=n.copy()}),r||e};Ns.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(n){for(var i=n.children||[],a=0;a0)};Ns.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};Ns.isHeader=function(e,t){return!(Ns.isLeaf(e)||e.depth===t._maxDepth-1)};function n6e(e){return e.data.data.pid}Ns.getParent=function(e,t){return Ns.findEntryWithLevel(e,n6e(t))};Ns.listPath=function(e,t){var r=e.parent;if(!r)return[];var n=t?[r.data[t]]:[r];return Ns.listPath(r,t).concat(n)};Ns.getPath=function(e){return Ns.listPath(e,"label").join("/")+"/"};Ns.formatValue=i6e.formatPieValue;Ns.formatPercent=function(e,t){var r=D2.formatPercent(e,0);return r==="0%"&&(r=i6e.formatPiePercent(e,t)),r}});var GE=ye((epr,s6e)=>{"use strict";var LA=Oa(),a6e=qa(),b6t=rp().appendArrayPointValue,UE=vf(),o6e=Dr(),w6t=g3(),rd=Ky(),T6t=l_(),A6t=T6t.formatPieValue;s6e.exports=function(t,r,n,i,a){var o=i[0],s=o.trace,l=o.hierarchy,u=s.type==="sunburst",c=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var f=function(v){var x=n._fullLayout;if(!(n._dragging||x.hovermode===!1)){var b=n._fullData[s.index],p=v.data.data,C=p.i,E=rd.isHierarchyRoot(v),A=rd.getParent(l,v),L=rd.getValue(v),_=function(Me){return o6e.castOption(b,C,Me)},k=_("hovertemplate"),M=UE.castHoverinfo(b,x,C),g=x.separators,P;if(k||M&&M!=="none"&&M!=="skip"){var T,z;u&&(T=o.cx+v.pxmid[0]*(1-v.rInscribed),z=o.cy+v.pxmid[1]*(1-v.rInscribed)),c&&(T=v._hoverX,z=v._hoverY);var O={},V=[],G=[],Z=function(Me){return V.indexOf(Me)!==-1};M&&(V=M==="all"?b._module.attributes.hoverinfo.flags:M.split("+")),O.label=p.label,Z("label")&&O.label&&G.push(O.label),p.hasOwnProperty("v")&&(O.value=p.v,O.valueLabel=A6t(O.value,g),Z("value")&&G.push(O.valueLabel)),O.currentPath=v.currentPath=rd.getPath(v.data),Z("current path")&&!E&&G.push(O.currentPath);var H,N=[],j=function(){N.indexOf(H)===-1&&(G.push(H),N.push(H))};O.percentParent=v.percentParent=L/rd.getValue(A),O.parent=v.parentString=rd.getPtLabel(A),Z("percent parent")&&(H=rd.formatPercent(O.percentParent,g)+" of "+O.parent,j()),O.percentEntry=v.percentEntry=L/rd.getValue(r),O.entry=v.entry=rd.getPtLabel(r),Z("percent entry")&&!E&&!v.onPathbar&&(H=rd.formatPercent(O.percentEntry,g)+" of "+O.entry,j()),O.percentRoot=v.percentRoot=L/rd.getValue(l),O.root=v.root=rd.getPtLabel(l),Z("percent root")&&!E&&(H=rd.formatPercent(O.percentRoot,g)+" of "+O.root,j()),O.text=_("hovertext")||_("text"),Z("text")&&(H=O.text,o6e.isValidTextValue(H)&&G.push(H)),P=[VE(v,b,a.eventDataKeys)];var re={trace:b,y:z,_x0:v._x0,_x1:v._x1,_y0:v._y0,_y1:v._y1,text:G.join("
"),name:k||Z("name")?b.name:void 0,color:_("hoverlabel.bgcolor")||p.color,borderColor:_("hoverlabel.bordercolor"),fontFamily:_("hoverlabel.font.family"),fontSize:_("hoverlabel.font.size"),fontColor:_("hoverlabel.font.color"),fontWeight:_("hoverlabel.font.weight"),fontStyle:_("hoverlabel.font.style"),fontVariant:_("hoverlabel.font.variant"),nameLength:_("hoverlabel.namelength"),textAlign:_("hoverlabel.align"),hovertemplate:k,hovertemplateLabels:O,eventData:P};u&&(re.x0=T-v.rInscribed*v.rpx1,re.x1=T+v.rInscribed*v.rpx1,re.idealAlign=v.pxmid[0]<0?"left":"right"),c&&(re.x=T,re.idealAlign=T<0?"left":"right");var oe=[];UE.loneHover(re,{container:x._hoverlayer.node(),outerContainer:x._paper.node(),gd:n,inOut_bbox:oe}),P[0].bbox=oe[0],s._hasHoverLabel=!0}if(c){var _e=t.select("path.surface");a.styleOne(_e,v,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[VE(v,b,a.eventDataKeys)],event:LA.event})}},h=function(v){var x=n._fullLayout,b=n._fullData[s.index],p=LA.select(this).datum();if(s._hasHoverEvent&&(v.originalEvent=LA.event,n.emit("plotly_unhover",{points:[VE(p,b,a.eventDataKeys)],event:LA.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(UE.loneUnhover(x._hoverlayer.node()),s._hasHoverLabel=!1),c){var C=t.select("path.surface");a.styleOne(C,p,b,n,{hovered:!1})}},d=function(v){var x=n._fullLayout,b=n._fullData[s.index],p=u&&(rd.isHierarchyRoot(v)||rd.isLeaf(v)),C=rd.getPtId(v),E=rd.isEntry(v)?rd.findEntryWithChild(l,C):rd.findEntryWithLevel(l,C),A=rd.getPtId(E),L={points:[VE(v,b,a.eventDataKeys)],event:LA.event};p||(L.nextLevel=A);var _=w6t.triggerHandler(n,"plotly_"+s.type+"click",L);if(_!==!1&&x.hovermode&&(n._hoverdata=[VE(v,b,a.eventDataKeys)],UE.click(n,LA.event)),!p&&_!==!1&&!n._dragging&&!n._transitioning){a6e.call("_storeDirectGUIEdit",b,x._tracePreGUI[b.uid],{level:b.level});var k={data:[{level:A}],traces:[s.index]},M={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};UE.loneUnhover(x._hoverlayer.node()),a6e.call("animate",n,k,M)}};t.on("mouseover",f),t.on("mouseout",h),t.on("click",d)};function VE(e,t,r){for(var n=e.data.data,i={curveNumber:t.index,pointNumber:n.i,data:t._input,fullData:t},a=0;a{"use strict";var HE=Oa(),S6t=LE(),Zg=(R2(),ab(I2)).interpolate,l6e=So(),Tv=Dr(),M6t=ru(),h6e=bv(),u6e=h6e.recordMinTextSize,E6t=h6e.clearMinTextSize,d6e=gD(),C6t=l_().getRotationAngle,k6t=d6e.computeTransform,L6t=d6e.transformInsideText,P6t=BW().styleOne,I6t=N0().resizeText,R6t=GE(),NW=pW(),Rl=Ky();qD.plot=function(e,t,r,n){var i=e._fullLayout,a=i._sunburstlayer,o,s,l=!r,u=!i.uniformtext.mode&&Rl.hasTransition(r);if(E6t("sunburst",i),o=a.selectAll("g.trace.sunburst").data(t,function(f){return f[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),u){n&&(s=n());var c=HE.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});c.each(function(){a.selectAll("g.trace").each(function(f){c6e(e,f,this,r)})})}else o.each(function(f){c6e(e,f,this,r)}),i.uniformtext.mode&&I6t(e,i._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function c6e(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&Rl.hasTransition(n),s=HE.select(r),l=s.selectAll("g.slice"),u=t[0],c=u.trace,f=u.hierarchy,h=Rl.findEntryWithLevel(f,c.level),d=Rl.getMaxDepth(c),v=a._size,x=c.domain,b=v.w*(x.x[1]-x.x[0]),p=v.h*(x.y[1]-x.y[0]),C=.5*Math.min(b,p),E=u.cx=v.l+v.w*(x.x[1]+x.x[0])/2,A=u.cy=v.t+v.h*(1-x.y[0])-p/2;if(!h)return l.remove();var L=null,_={};o&&l.each(function(me){_[Rl.getPtId(me)]={rpx0:me.rpx0,rpx1:me.rpx1,x0:me.x0,x1:me.x1,transform:me.transform},!L&&Rl.isEntry(me)&&(L=me)});var k=D6t(h).descendants(),M=h.height+1,g=0,P=d;u.hasMultipleRoots&&Rl.isHierarchyRoot(h)&&(k=k.slice(1),M-=1,g=1,P+=1),k=k.filter(function(me){return me.y1<=P});var T=C6t(c.rotation);T&&k.forEach(function(me){me.x0+=T,me.x1+=T});var z=Math.min(M,d),O=function(me){return(me-g)/z*C},V=function(me,ie){return[me*Math.cos(ie),-me*Math.sin(ie)]},G=function(me){return Tv.pathAnnulus(me.rpx0,me.rpx1,me.x0,me.x1,E,A)},Z=function(me){return E+f6e(me)[0]*(me.transform.rCenter||0)+(me.transform.x||0)},H=function(me){return A+f6e(me)[1]*(me.transform.rCenter||0)+(me.transform.y||0)};l=l.data(k,Rl.getPtId),l.enter().append("g").classed("slice",!0),o?l.exit().transition().each(function(){var me=HE.select(this),ie=me.select("path.surface");ie.transition().attrTween("d",function(Le){var Ae=oe(Le);return function(De){return G(Ae(De))}});var Se=me.select("g.slicetext");Se.attr("opacity",0)}).remove():l.exit().remove(),l.order();var N=null;if(o&&L){var j=Rl.getPtId(L);l.each(function(me){N===null&&Rl.getPtId(me)===j&&(N=me.x1)})}var re=l;o&&(re=re.transition().each("end",function(){var me=HE.select(this);Rl.setSliceCursor(me,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),re.each(function(me){var ie=HE.select(this),Se=Tv.ensureSingle(ie,"path","surface",function(Fe){Fe.style("pointer-events",i?"none":"all")});me.rpx0=O(me.y0),me.rpx1=O(me.y1),me.xmid=(me.x0+me.x1)/2,me.pxmid=V(me.rpx1,me.xmid),me.midangle=-(me.xmid-Math.PI/2),me.startangle=-(me.x0-Math.PI/2),me.stopangle=-(me.x1-Math.PI/2),me.halfangle=.5*Math.min(Tv.angleDelta(me.x0,me.x1)||Math.PI,Math.PI),me.ring=1-me.rpx0/me.rpx1,me.rInscribed=F6t(me,c),o?Se.transition().attrTween("d",function(Fe){var ce=_e(Fe);return function(Ze){return G(ce(Ze))}}):Se.attr("d",G),ie.call(R6t,h,e,t,{eventDataKeys:NW.eventDataKeys,transitionTime:NW.CLICK_TRANSITION_TIME,transitionEasing:NW.CLICK_TRANSITION_EASING}).call(Rl.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),Se.call(P6t,me,c,e);var Le=Tv.ensureSingle(ie,"g","slicetext"),Ae=Tv.ensureSingle(Le,"text","",function(Fe){Fe.attr("data-notex",1)}),De=Tv.ensureUniformFontSize(e,Rl.determineTextFont(c,me,a.font));Ae.text(qD.formatSliceLabel(me,h,c,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(l6e.font,De).call(M6t.convertToTspans,e);var Pe=l6e.bBox(Ae.node());me.transform=L6t(Pe,me,u),me.transform.targetX=Z(me),me.transform.targetY=H(me);var ge=function(Fe,ce){var Ze=Fe.transform;return k6t(Ze,ce),Ze.fontSize=De.size,u6e(c.type,Ze,a),Tv.getTextTransform(Ze)};o?Ae.transition().attrTween("transform",function(Fe){var ce=Me(Fe);return function(Ze){return ge(ce(Ze),Pe)}}):Ae.attr("transform",ge(me,Pe))});function oe(me){var ie=Rl.getPtId(me),Se=_[ie],Le=_[Rl.getPtId(h)],Ae;if(Le){var De=(me.x1>Le.x1?2*Math.PI:0)+T;Ae=me.rpx1N?2*Math.PI:0)+T;Se={x0:Ae,x1:Ae}}else Se={rpx0:C,rpx1:C},Tv.extendFlat(Se,ke(me));else Se={rpx0:0,rpx1:0};else Se={x0:T,x1:T};return Zg(Se,Le)}function Me(me){var ie=_[Rl.getPtId(me)],Se,Le=me.transform;if(ie)Se=ie;else if(Se={rpx1:me.rpx1,transform:{textPosAngle:Le.textPosAngle,scale:0,rotate:Le.rotate,rCenter:Le.rCenter,x:Le.x,y:Le.y}},L)if(me.parent)if(N){var Ae=me.x1>N?2*Math.PI:0;Se.x0=Se.x1=Ae}else Tv.extendFlat(Se,ke(me));else Se.x0=Se.x1=T;else Se.x0=Se.x1=T;var De=Zg(Se.transform.textPosAngle,me.transform.textPosAngle),Pe=Zg(Se.rpx1,me.rpx1),ge=Zg(Se.x0,me.x0),Fe=Zg(Se.x1,me.x1),ce=Zg(Se.transform.scale,Le.scale),Ze=Zg(Se.transform.rotate,Le.rotate),ct=Le.rCenter===0?3:Se.transform.rCenter===0?1/3:1,pt=Zg(Se.transform.rCenter,Le.rCenter),Wt=function(st){return pt(Math.pow(st,ct))};return function(st){var lt=Pe(st),Gt=ge(st),Nt=Fe(st),$t=Wt(st),sr=V(lt,(Gt+Nt)/2),wr=De(st),ur={pxmid:sr,rpx1:lt,transform:{textPosAngle:wr,rCenter:$t,x:Le.x,y:Le.y}};return u6e(c.type,Le,a),{transform:{targetX:Z(ur),targetY:H(ur),scale:ce(st),rotate:Ze(st),rCenter:$t}}}}function ke(me){var ie=me.parent,Se=_[Rl.getPtId(ie)],Le={};if(Se){var Ae=ie.children,De=Ae.indexOf(me),Pe=Ae.length,ge=Zg(Se.x0,Se.x1);Le.x0=ge(De/Pe),Le.x1=ge(De/Pe)}else Le.x0=Le.x1=0;return Le}}function D6t(e){return S6t.partition().size([2*Math.PI,e.height+1])(e)}qD.formatSliceLabel=function(e,t,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=i.separators,l=n[0],u=e.data.data,c=l.hierarchy,f=Rl.isHierarchyRoot(e),h=Rl.getParent(c,e),d=Rl.getValue(e);if(!a){var v=o.split("+"),x=function(g){return v.indexOf(g)!==-1},b=[],p;if(x("label")&&u.label&&b.push(u.label),u.hasOwnProperty("v")&&x("value")&&b.push(Rl.formatValue(u.v,s)),!f){x("current path")&&b.push(Rl.getPath(e.data));var C=0;x("percent parent")&&C++,x("percent entry")&&C++,x("percent root")&&C++;var E=C>1;if(C){var A,L=function(g){p=Rl.formatPercent(A,s),E&&(p+=" of "+g),b.push(p)};x("percent parent")&&!f&&(A=d/Rl.getValue(h),L("parent")),x("percent entry")&&(A=d/Rl.getValue(t),L("entry")),x("percent root")&&(A=d/Rl.getValue(c),L("root"))}}return x("text")&&(p=Tv.castOption(r,u.i,"text"),Tv.isValidTextValue(p)&&b.push(p)),b.join("
")}var _=Tv.castOption(r,u.i,"texttemplate");if(!_)return"";var k={};u.label&&(k.label=u.label),u.hasOwnProperty("v")&&(k.value=u.v,k.valueLabel=Rl.formatValue(u.v,s)),k.currentPath=Rl.getPath(e.data),f||(k.percentParent=d/Rl.getValue(h),k.percentParentLabel=Rl.formatPercent(k.percentParent,s),k.parent=Rl.getPtLabel(h)),k.percentEntry=d/Rl.getValue(t),k.percentEntryLabel=Rl.formatPercent(k.percentEntry,s),k.entry=Rl.getPtLabel(t),k.percentRoot=d/Rl.getValue(c),k.percentRootLabel=Rl.formatPercent(k.percentRoot,s),k.root=Rl.getPtLabel(c),u.hasOwnProperty("color")&&(k.color=u.color);var M=Tv.castOption(r,u.i,"text");return(Tv.isValidTextValue(M)||M==="")&&(k.text=M),k.customdata=Tv.castOption(r,u.i,"customdata"),Tv.texttemplateString(_,k,i._d3locale,k,r._meta||{})};function F6t(e){return e.rpx0===0&&Tv.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function f6e(e){return z6t(e.rpx1,e.transform.textPosAngle)}function z6t(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var p6e=ye((rpr,v6e)=>{"use strict";v6e.exports={moduleType:"trace",name:"sunburst",basePlotModule:kCe(),categories:[],animatable:!0,attributes:kE(),layoutAttributes:gW(),supplyDefaults:OCe(),supplyLayoutDefaults:BCe(),calc:IE().calc,crossTraceCalc:IE().crossTraceCalc,plot:BD().plot,style:BW().style,colorbar:$d(),meta:{}}});var m6e=ye((ipr,g6e)=>{"use strict";g6e.exports=p6e()});var _6e=ye(PA=>{"use strict";var y6e=Mc();PA.name="treemap";PA.plot=function(e,t,r,n){y6e.plotBasePlot(PA.name,e,t,r,n)};PA.clean=function(e,t,r,n){y6e.cleanBasePlot(PA.name,e,t,r,n)}});var F2=ye((apr,x6e)=>{"use strict";x6e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var ND=ye((opr,w6e)=>{"use strict";var O6t=Qo().hovertemplateAttrs,q6t=Qo().texttemplateAttrs,B6t=Tu(),N6t=kc().attributes,z2=A2(),Q0=kE(),b6e=F2(),UW=Ao().extendFlat,U6t=Pd().pattern;w6e.exports={labels:Q0.labels,parents:Q0.parents,values:Q0.values,branchvalues:Q0.branchvalues,count:Q0.count,level:Q0.level,maxdepth:Q0.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:UW({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:Q0.marker.colors,pattern:U6t,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:Q0.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},B6t("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:UW({},z2.textfont,{}),editType:"calc"},text:z2.text,textinfo:Q0.textinfo,texttemplate:q6t({editType:"plot"},{keys:b6e.eventDataKeys.concat(["label","value"])}),hovertext:z2.hovertext,hoverinfo:Q0.hoverinfo,hovertemplate:O6t({},{keys:b6e.eventDataKeys}),textfont:z2.textfont,insidetextfont:z2.insidetextfont,outsidetextfont:UW({},z2.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:z2.sort,root:Q0.root,domain:N6t({name:"treemap",trace:!0,editType:"calc"})}});var VW=ye((spr,T6e)=>{"use strict";T6e.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var E6e=ye((lpr,M6e)=>{"use strict";var A6e=Dr(),V6t=ND(),G6t=Ca(),H6t=kc().defaults,j6t=r0().handleText,W6t=Qb().TEXTPAD,X6t=S2().handleMarkerDefaults,S6e=tc(),Z6t=S6e.hasColorscale,Y6t=S6e.handleDefaults;M6e.exports=function(t,r,n,i){function a(b,p){return A6e.coerce(t,r,V6t,b,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var u=a("tiling.packing");u==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var c=a("text");a("texttemplate"),r.texttemplate||a("textinfo",A6e.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f=a("pathbar.visible"),h="auto";j6t(t,r,i,a,h,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;X6t(t,r,i,a);var v=r._hasColorscale=Z6t(t,"marker","colors")||(t.marker||{}).coloraxis;v?Y6t(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var x=r.textfont.size*2;a("marker.pad.t",d?x/4:x),a("marker.pad.l",x/4),a("marker.pad.r",x/4),a("marker.pad.b",d?x:x/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:G6t.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*W6t),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),H6t(r,i,a),r._length=null}});var k6e=ye((upr,C6e)=>{"use strict";var K6t=Dr(),J6t=VW();C6e.exports=function(t,r){function n(i,a){return K6t.coerce(t,r,J6t,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var HW=ye(GW=>{"use strict";var L6e=IE();GW.calc=function(e,t){return L6e.calc(e,t)};GW.crossTraceCalc=function(e){return L6e._runCrossTraceCalc("treemap",e)}});var jW=ye((fpr,P6e)=>{"use strict";P6e.exports=function e(t,r,n){var i;n.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),n.flipX&&(i=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-i),n.flipY&&(i=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-i);var a=t.children;if(a)for(var o=0;o{"use strict";var IA=LE(),$6t=jW();I6e.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.packing==="dice-slice",s=n.pad[a?"bottom":"top"],l=n.pad[i?"right":"left"],u=n.pad[i?"left":"right"],c=n.pad[a?"top":"bottom"],f;o&&(f=l,l=s,s=f,f=u,u=c,c=f);var h=IA.treemap().tile(Q6t(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(l).paddingRight(u).paddingTop(s).paddingBottom(c).size(o?[r[1],r[0]]:r)(t);return(o||i||a)&&$6t(h,r,{swapXY:o,flipX:i,flipY:a}),h};function Q6t(e,t){switch(e){case"squarify":return IA.treemapSquarify.ratio(t);case"binary":return IA.treemapBinary;case"dice":return IA.treemapDice;case"slice":return IA.treemapSlice;default:return IA.treemapSliceDice}}});var UD=ye((dpr,z6e)=>{"use strict";var R6e=Oa(),RA=Ca(),D6e=Dr(),XW=Ky(),eLt=bv().resizeText,tLt=OD();function rLt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");eLt(e,t,"treemap"),t.each(function(r){var n=R6e.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){R6e.select(this).call(F6e,o,a,e,{hovered:!1})})})}function F6e(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,l,u,c=o.color,f=XW.isHierarchyRoot(t),h=1;if(a)l=r._hovered.marker.line.color,u=r._hovered.marker.line.width;else if(f&&c===r.root.color)h=100,l="rgba(0,0,0,0)",u=0;else if(l=D6e.castOption(r,s,"marker.line.color")||RA.defaultLine,u=D6e.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var v=RA.combine(RA.addOpacity(r._backgroundColor,.75),c),x;if(d===!0){var b=XW.getMaxDepth(r);isFinite(b)?XW.isLeaf(t)?x=0:x=r._maxVisibleLayers-(t.data.depth-r._entryDepth):x=t.data.height+1}else x=t.data.depth-r._entryDepth,r._atRootLevel||x++;if(x>0)for(var p=0;p{"use strict";var O6e=Oa(),VD=Dr(),q6e=So(),iLt=ru(),nLt=WW(),B6e=UD().styleOne,ZW=F2(),DA=Ky(),aLt=GE(),YW=!0;N6e.exports=function(t,r,n,i,a){var o=a.barDifY,s=a.width,l=a.height,u=a.viewX,c=a.viewY,f=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,v=a.hasTransition,x=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,p=a.makeUpdateTextInterpolator,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],_=L.trace,k=L.hierarchy,M=s/_._entryDepth,g=DA.listPath(n.data,"id"),P=nLt(k.copy(),[s,l],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(z){var O=g.indexOf(z.data.id);return O===-1?!1:(z.x0=M*O,z.x1=M*(O+1),z.y0=o,z.y1=o+l,z.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,DA.getPtId),i.enter().append("g").classed("pathbar",!0),x(i,YW,C,[s,l],f),i.order();var T=i;v&&(T=T.transition().each("end",function(){var z=O6e.select(this);DA.setSliceCursor(z,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),T.each(function(z){z._x0=u(z.x0),z._x1=u(z.x1),z._y0=c(z.y0),z._y1=c(z.y1),z._hoverX=u(z.x1-Math.min(s,l)/2),z._hoverY=c(z.y1-l/2);var O=O6e.select(this),V=VD.ensureSingle(O,"path","surface",function(N){N.style("pointer-events",E?"none":"all")});v?V.transition().attrTween("d",function(N){var j=b(N,YW,C,[s,l]);return function(re){return f(j(re))}}):V.attr("d",f),O.call(aLt,n,t,r,{styleOne:B6e,eventDataKeys:ZW.eventDataKeys,transitionTime:ZW.CLICK_TRANSITION_TIME,transitionEasing:ZW.CLICK_TRANSITION_EASING}).call(DA.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),V.call(B6e,z,_,t,{hovered:!1}),z._text=(DA.getPtLabel(z)||"").split("
").join(" ")||"";var G=VD.ensureSingle(O,"g","slicetext"),Z=VD.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),H=VD.ensureUniformFontSize(t,DA.determineTextFont(_,z,A.font,{onPathbar:!0}));Z.text(z._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(q6e.font,H).call(iLt.convertToTspans,t),z.textBB=q6e.bBox(Z.node()),z.transform=h(z,{fontSize:H.size,onPathbar:!0}),z.transform.fontSize=H.size,v?Z.transition().attrTween("transform",function(N){var j=p(N,YW,C,[s,l]);return function(re){return d(j(re))}}):Z.attr("transform",d(z))})}});var j6e=ye((ppr,H6e)=>{"use strict";var V6e=Oa(),KW=(R2(),ab(I2)).interpolate,Z_=Ky(),jE=Dr(),G6e=Qb().TEXTPAD,oLt=i2(),sLt=oLt.toMoveInsideBar,lLt=bv(),JW=lLt.recordMinTextSize,uLt=F2(),cLt=U6e();function O2(e){return Z_.isHierarchyRoot(e)?"":Z_.getPtId(e)}H6e.exports=function(t,r,n,i,a){var o=t._fullLayout,s=r[0],l=s.trace,u=l.type,c=u==="icicle",f=s.hierarchy,h=Z_.findEntryWithLevel(f,l.level),d=V6e.select(n),v=d.selectAll("g.pathbar"),x=d.selectAll("g.slice");if(!h){v.remove(),x.remove();return}var b=Z_.isHierarchyRoot(h),p=!o.uniformtext.mode&&Z_.hasTransition(i),C=Z_.getMaxDepth(l),E=function(Qe){return Qe.data.depth-h.data.depth-1?k+P:-(g+P):0,z={x0:M,x1:M,y0:T,y1:T+g},O=function(Qe,Et,er){var Ut=l.tiling.pad,Ft=function(lr){return lr-Ut<=Et.x0},bt=function(lr){return lr+Ut>=Et.x1},yt=function(lr){return lr-Ut<=Et.y0},Yt=function(lr){return lr+Ut>=Et.y1};return Qe.x0===Et.x0&&Qe.x1===Et.x1&&Qe.y0===Et.y0&&Qe.y1===Et.y1?{x0:Qe.x0,x1:Qe.x1,y0:Qe.y0,y1:Qe.y1}:{x0:Ft(Qe.x0-Ut)?0:bt(Qe.x0-Ut)?er[0]:Qe.x0,x1:Ft(Qe.x1+Ut)?0:bt(Qe.x1+Ut)?er[0]:Qe.x1,y0:yt(Qe.y0-Ut)?0:Yt(Qe.y0-Ut)?er[1]:Qe.y0,y1:yt(Qe.y1+Ut)?0:Yt(Qe.y1+Ut)?er[1]:Qe.y1}},V=null,G={},Z={},H=null,N=function(Qe,Et){return Et?G[O2(Qe)]:Z[O2(Qe)]},j=function(Qe,Et,er,Ut){if(Et)return G[O2(f)]||z;var Ft=Z[l.level]||er;return E(Qe)?O(Qe,Ft,Ut):{}};s.hasMultipleRoots&&b&&C++,l._maxDepth=C,l._backgroundColor=o.paper_bgcolor,l._entryDepth=h.data.depth,l._atRootLevel=b;var re=-_/2+A.l+A.w*(L.x[1]+L.x[0])/2,oe=-k/2+A.t+A.h*(1-(L.y[1]+L.y[0])/2),_e=function(Qe){return re+Qe},Me=function(Qe){return oe+Qe},ke=Me(0),me=_e(0),ie=function(Qe){return me+Qe},Se=function(Qe){return ke+Qe};function Le(Qe,Et){return Qe+","+Et}var Ae=ie(0),De=function(Qe){Qe.x=Math.max(Ae,Qe.x)},Pe=l.pathbar.edgeshape,ge=function(Qe){var Et=ie(Math.max(Math.min(Qe.x0,Qe.x0),0)),er=ie(Math.min(Math.max(Qe.x1,Qe.x1),M)),Ut=Se(Qe.y0),Ft=Se(Qe.y1),bt=g/2,yt={},Yt={};yt.x=Et,Yt.x=er,yt.y=Yt.y=(Ut+Ft)/2;var lr={x:Et,y:Ut},Tr={x:er,y:Ut},Rr={x:er,y:Ft},ei={x:Et,y:Ft};return Pe===">"?(lr.x-=bt,Tr.x-=bt,Rr.x-=bt,ei.x-=bt):Pe==="/"?(Rr.x-=bt,ei.x-=bt,yt.x-=bt/2,Yt.x-=bt/2):Pe==="\\"?(lr.x-=bt,Tr.x-=bt,yt.x-=bt/2,Yt.x-=bt/2):Pe==="<"&&(yt.x-=bt,Yt.x-=bt),De(lr),De(ei),De(yt),De(Tr),De(Rr),De(Yt),"M"+Le(lr.x,lr.y)+"L"+Le(Tr.x,Tr.y)+"L"+Le(Yt.x,Yt.y)+"L"+Le(Rr.x,Rr.y)+"L"+Le(ei.x,ei.y)+"L"+Le(yt.x,yt.y)+"Z"},Fe=l[c?"tiling":"marker"].pad,ce=function(Qe){return l.textposition.indexOf(Qe)!==-1},Ze=ce("top"),ct=ce("left"),pt=ce("right"),Wt=ce("bottom"),st=function(Qe){var Et=_e(Qe.x0),er=_e(Qe.x1),Ut=Me(Qe.y0),Ft=Me(Qe.y1),bt=er-Et,yt=Ft-Ut;if(!bt||!yt)return"";var Yt=l.marker.cornerradius||0,lr=Math.min(Yt,bt/2,yt/2);lr&&Qe.data&&Qe.data.data&&Qe.data.data.label&&(Ze&&(lr=Math.min(lr,Fe.t)),ct&&(lr=Math.min(lr,Fe.l)),pt&&(lr=Math.min(lr,Fe.r)),Wt&&(lr=Math.min(lr,Fe.b)));var Tr=function(Rr,ei){return lr?"a"+Le(lr,lr)+" 0 0 1 "+Le(Rr,ei):""};return"M"+Le(Et,Ut+lr)+Tr(lr,-lr)+"L"+Le(er-lr,Ut)+Tr(lr,lr)+"L"+Le(er,Ft-lr)+Tr(-lr,lr)+"L"+Le(Et+lr,Ft)+Tr(-lr,-lr)+"Z"},lt=function(Qe,Et){var er=Qe.x0,Ut=Qe.x1,Ft=Qe.y0,bt=Qe.y1,yt=Qe.textBB,Yt=Ze||Et.isHeader&&!Wt,lr=Yt?"start":Wt?"end":"middle",Tr=ce("right"),Rr=ce("left")||Et.onPathbar,ei=Rr?-1:Tr?1:0;if(Et.isHeader){if(er+=(c?Fe:Fe.l)-G6e,Ut-=(c?Fe:Fe.r)-G6e,er>=Ut){var Wr=(er+Ut)/2;er=Wr,Ut=Wr}var Ur;Wt?(Ur=bt-(c?Fe:Fe.b),Ft{"use strict";var fLt=Oa(),hLt=Ky(),dLt=bv(),vLt=dLt.clearMinTextSize,pLt=N0().resizeText,W6e=j6e();X6e.exports=function(t,r,n,i,a){var o=a.type,s=a.drawDescendants,l=t._fullLayout,u=l["_"+o+"layer"],c,f,h=!n;if(vLt(o,l),c=u.selectAll("g.trace."+o).data(r,function(v){return v[0].trace.uid}),c.enter().append("g").classed("trace",!0).classed(o,!0),c.order(),!l.uniformtext.mode&&hLt.hasTransition(n)){i&&(f=i());var d=fLt.transition().duration(n.duration).ease(n.easing).each("end",function(){f&&f()}).each("interrupt",function(){f&&f()});d.each(function(){u.selectAll("g.trace").each(function(v){W6e(t,v,this,n,s)})})}else c.each(function(v){W6e(t,v,this,n,s)}),l.uniformtext.mode&&pLt(t,u.selectAll(".trace"),o);h&&c.exit().remove()}});var $6e=ye((mpr,J6e)=>{"use strict";var Z6e=Oa(),GD=Dr(),Y6e=So(),gLt=ru(),mLt=WW(),K6e=UD().styleOne,QW=F2(),Y_=Ky(),yLt=GE(),_Lt=BD().formatSliceLabel,eX=!1;J6e.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,x=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],_=L.trace,k=_.textposition.indexOf("left")!==-1,M=_.textposition.indexOf("right")!==-1,g=_.textposition.indexOf("bottom")!==-1,P=!g&&!_.marker.pad.t||g&&!_.marker.pad.b,T=mLt(n,[o,s],{packing:_.tiling.packing,squarifyratio:_.tiling.squarifyratio,flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1,pad:{inner:_.tiling.pad,top:_.marker.pad.t,left:_.marker.pad.l,right:_.marker.pad.r,bottom:_.marker.pad.b}}),z=T.descendants(),O=1/0,V=-1/0;z.forEach(function(j){var re=j.depth;re>=_._maxDepth?(j.x0=j.x1=(j.x0+j.x1)/2,j.y0=j.y1=(j.y0+j.y1)/2):(O=Math.min(O,re),V=Math.max(V,re))}),i=i.data(z,Y_.getPtId),_._maxVisibleLayers=isFinite(V)?V-O+1:0,i.enter().append("g").classed("slice",!0),v(i,eX,C,[o,s],c),i.order();var G=null;if(d&&p){var Z=Y_.getPtId(p);i.each(function(j){G===null&&Y_.getPtId(j)===Z&&(G={x0:j.x0,x1:j.x1,y0:j.y0,y1:j.y1})})}var H=function(){return G||{x0:0,x1:o,y0:0,y1:s}},N=i;return d&&(N=N.transition().each("end",function(){var j=Z6e.select(this);Y_.setSliceCursor(j,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(j){var re=Y_.isHeader(j,_);j._x0=l(j.x0),j._x1=l(j.x1),j._y0=u(j.y0),j._y1=u(j.y1),j._hoverX=l(j.x1-_.marker.pad.r),j._hoverY=u(g?j.y1-_.marker.pad.b/2:j.y0+_.marker.pad.t/2);var oe=Z6e.select(this),_e=GD.ensureSingle(oe,"path","surface",function(Le){Le.style("pointer-events",E?"none":"all")});d?_e.transition().attrTween("d",function(Le){var Ae=x(Le,eX,H(),[o,s]);return function(De){return c(Ae(De))}}):_e.attr("d",c),oe.call(yLt,n,t,r,{styleOne:K6e,eventDataKeys:QW.eventDataKeys,transitionTime:QW.CLICK_TRANSITION_TIME,transitionEasing:QW.CLICK_TRANSITION_EASING}).call(Y_.setSliceCursor,t,{isTransitioning:t._transitioning}),_e.call(K6e,j,_,t,{hovered:!1}),j.x0===j.x1||j.y0===j.y1?j._text="":re?j._text=P?"":Y_.getPtLabel(j)||"":j._text=_Lt(j,n,_,r,A)||"";var Me=GD.ensureSingle(oe,"g","slicetext"),ke=GD.ensureSingle(Me,"text","",function(Le){Le.attr("data-notex",1)}),me=GD.ensureUniformFontSize(t,Y_.determineTextFont(_,j,A.font)),ie=j._text||" ",Se=re&&ie.indexOf("
")===-1;ke.text(ie).classed("slicetext",!0).attr("text-anchor",M?"end":k||Se?"start":"middle").call(Y6e.font,me).call(gLt.convertToTspans,t),j.textBB=Y6e.bBox(ke.node()),j.transform=f(j,{fontSize:me.size,isHeader:re}),j.transform.fontSize=me.size,d?ke.transition().attrTween("transform",function(Le){var Ae=b(Le,eX,H(),[o,s]);return function(De){return h(Ae(De))}}):ke.attr("transform",h(j))}),G}});var eLe=ye((ypr,Q6e)=>{"use strict";var xLt=$W(),bLt=$6e();Q6e.exports=function(t,r,n,i){return xLt(t,r,n,i,{type:"treemap",drawDescendants:bLt})}});var rLe=ye((_pr,tLe)=>{"use strict";tLe.exports={moduleType:"trace",name:"treemap",basePlotModule:_6e(),categories:[],animatable:!0,attributes:ND(),layoutAttributes:VW(),supplyDefaults:E6e(),supplyLayoutDefaults:k6e(),calc:HW().calc,crossTraceCalc:HW().crossTraceCalc,plot:eLe(),style:UD().style,colorbar:$d(),meta:{}}});var nLe=ye((xpr,iLe)=>{"use strict";iLe.exports=rLe()});var oLe=ye(FA=>{"use strict";var aLe=Mc();FA.name="icicle";FA.plot=function(e,t,r,n){aLe.plotBasePlot(FA.name,e,t,r,n)};FA.clean=function(e,t,r,n){aLe.cleanBasePlot(FA.name,e,t,r,n)}});var tX=ye((wpr,lLe)=>{"use strict";var wLt=Qo().hovertemplateAttrs,TLt=Qo().texttemplateAttrs,ALt=Tu(),SLt=kc().attributes,WE=A2(),o0=kE(),HD=ND(),sLe=F2(),MLt=Ao().extendFlat,ELt=Pd().pattern;lLe.exports={labels:o0.labels,parents:o0.parents,values:o0.values,branchvalues:o0.branchvalues,count:o0.count,level:o0.level,maxdepth:o0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:HD.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:MLt({colors:o0.marker.colors,line:o0.marker.line,pattern:ELt,editType:"calc"},ALt("marker",{colorAttr:"colors",anim:!1})),leaf:o0.leaf,pathbar:HD.pathbar,text:WE.text,textinfo:o0.textinfo,texttemplate:TLt({editType:"plot"},{keys:sLe.eventDataKeys.concat(["label","value"])}),hovertext:WE.hovertext,hoverinfo:o0.hoverinfo,hovertemplate:wLt({},{keys:sLe.eventDataKeys}),textfont:WE.textfont,insidetextfont:WE.insidetextfont,outsidetextfont:HD.outsidetextfont,textposition:HD.textposition,sort:WE.sort,root:o0.root,domain:SLt({name:"icicle",trace:!0,editType:"calc"})}});var rX=ye((Tpr,uLe)=>{"use strict";uLe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var dLe=ye((Apr,hLe)=>{"use strict";var cLe=Dr(),CLt=tX(),kLt=Ca(),LLt=kc().defaults,PLt=r0().handleText,ILt=Qb().TEXTPAD,RLt=S2().handleMarkerDefaults,fLe=tc(),DLt=fLe.hasColorscale,FLt=fLe.handleDefaults;hLe.exports=function(t,r,n,i){function a(d,v){return cLe.coerce(t,r,CLt,d,v)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var u=a("text");a("texttemplate"),r.texttemplate||a("textinfo",cLe.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate");var c=a("pathbar.visible"),f="auto";PLt(t,r,i,a,f,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),RLt(t,r,i,a);var h=r._hasColorscale=DLt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&FLt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:kLt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*ILt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),LLt(r,i,a),r._length=null}});var pLe=ye((Spr,vLe)=>{"use strict";var zLt=Dr(),OLt=rX();vLe.exports=function(t,r){function n(i,a){return zLt.coerce(t,r,OLt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var nX=ye(iX=>{"use strict";var gLe=IE();iX.calc=function(e,t){return gLe.calc(e,t)};iX.crossTraceCalc=function(e){return gLe._runCrossTraceCalc("icicle",e)}});var yLe=ye((Epr,mLe)=>{"use strict";var qLt=LE(),BLt=jW();mLe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.orientation==="h",s=n.maxDepth,l=r[0],u=r[1];s&&(l=(t.height+1)*r[0]/Math.min(t.height+1,s),u=(t.height+1)*r[1]/Math.min(t.height+1,s));var c=qLt.partition().padding(n.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||i||a)&&BLt(c,r,{swapXY:o,flipX:i,flipY:a}),c}});var aX=ye((Cpr,TLe)=>{"use strict";var _Le=Oa(),xLe=Ca(),bLe=Dr(),NLt=bv().resizeText,ULt=OD();function VLt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");NLt(e,t,"icicle"),t.each(function(r){var n=_Le.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){_Le.select(this).call(wLe,o,a,e)})})}function wLe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=bLe.castOption(r,o,"marker.line.color")||xLe.defaultLine,l=bLe.castOption(r,o,"marker.line.width")||0;e.call(ULt,t,r,n).style("stroke-width",l).call(xLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}TLe.exports={style:VLt,styleOne:wLe}});var CLe=ye((kpr,ELe)=>{"use strict";var ALe=Oa(),jD=Dr(),SLe=So(),GLt=ru(),HLt=yLe(),MLe=aX().styleOne,oX=F2(),zA=Ky(),jLt=GE(),WLt=BD().formatSliceLabel,sX=!1;ELe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,x=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],_=L.trace,k=_.textposition.indexOf("left")!==-1,M=_.textposition.indexOf("right")!==-1,g=_.textposition.indexOf("bottom")!==-1,P=HLt(n,[o,s],{flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1,orientation:_.tiling.orientation,pad:{inner:_.tiling.pad},maxDepth:_._maxDepth}),T=P.descendants(),z=1/0,O=-1/0;T.forEach(function(N){var j=N.depth;j>=_._maxDepth?(N.x0=N.x1=(N.x0+N.x1)/2,N.y0=N.y1=(N.y0+N.y1)/2):(z=Math.min(z,j),O=Math.max(O,j))}),i=i.data(T,zA.getPtId),_._maxVisibleLayers=isFinite(O)?O-z+1:0,i.enter().append("g").classed("slice",!0),v(i,sX,C,[o,s],c),i.order();var V=null;if(d&&p){var G=zA.getPtId(p);i.each(function(N){V===null&&zA.getPtId(N)===G&&(V={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var Z=function(){return V||{x0:0,x1:o,y0:0,y1:s}},H=i;return d&&(H=H.transition().each("end",function(){var N=ALe.select(this);zA.setSliceCursor(N,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),H.each(function(N){N._x0=l(N.x0),N._x1=l(N.x1),N._y0=u(N.y0),N._y1=u(N.y1),N._hoverX=l(N.x1-_.tiling.pad),N._hoverY=u(g?N.y1-_.tiling.pad/2:N.y0+_.tiling.pad/2);var j=ALe.select(this),re=jD.ensureSingle(j,"path","surface",function(ke){ke.style("pointer-events",E?"none":"all")});d?re.transition().attrTween("d",function(ke){var me=x(ke,sX,Z(),[o,s],{orientation:_.tiling.orientation,flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1});return function(ie){return c(me(ie))}}):re.attr("d",c),j.call(jLt,n,t,r,{styleOne:MLe,eventDataKeys:oX.eventDataKeys,transitionTime:oX.CLICK_TRANSITION_TIME,transitionEasing:oX.CLICK_TRANSITION_EASING}).call(zA.setSliceCursor,t,{isTransitioning:t._transitioning}),re.call(MLe,N,_,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=WLt(N,n,_,r,A)||"";var oe=jD.ensureSingle(j,"g","slicetext"),_e=jD.ensureSingle(oe,"text","",function(ke){ke.attr("data-notex",1)}),Me=jD.ensureUniformFontSize(t,zA.determineTextFont(_,N,A.font));_e.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",M?"end":k?"start":"middle").call(SLe.font,Me).call(GLt.convertToTspans,t),N.textBB=SLe.bBox(_e.node()),N.transform=f(N,{fontSize:Me.size}),N.transform.fontSize=Me.size,d?_e.transition().attrTween("transform",function(ke){var me=b(ke,sX,Z(),[o,s]);return function(ie){return h(me(ie))}}):_e.attr("transform",h(N))}),V}});var LLe=ye((Lpr,kLe)=>{"use strict";var XLt=$W(),ZLt=CLe();kLe.exports=function(t,r,n,i){return XLt(t,r,n,i,{type:"icicle",drawDescendants:ZLt})}});var ILe=ye((Ppr,PLe)=>{"use strict";PLe.exports={moduleType:"trace",name:"icicle",basePlotModule:oLe(),categories:[],animatable:!0,attributes:tX(),layoutAttributes:rX(),supplyDefaults:dLe(),supplyLayoutDefaults:pLe(),calc:nX().calc,crossTraceCalc:nX().crossTraceCalc,plot:LLe(),style:aX().style,colorbar:$d(),meta:{}}});var DLe=ye((Ipr,RLe)=>{"use strict";RLe.exports=ILe()});var zLe=ye(OA=>{"use strict";var FLe=Mc();OA.name="funnelarea";OA.plot=function(e,t,r,n){FLe.plotBasePlot(OA.name,e,t,r,n)};OA.clean=function(e,t,r,n){FLe.cleanBasePlot(OA.name,e,t,r,n)}});var lX=ye((Dpr,OLe)=>{"use strict";var iv=A2(),YLt=Gl(),KLt=kc().attributes,JLt=Qo().hovertemplateAttrs,$Lt=Qo().texttemplateAttrs,q2=Ao().extendFlat;OLe.exports={labels:iv.labels,label0:iv.label0,dlabel:iv.dlabel,values:iv.values,marker:{colors:iv.marker.colors,line:{color:q2({},iv.marker.line.color,{dflt:null}),width:q2({},iv.marker.line.width,{dflt:1}),editType:"calc"},pattern:iv.marker.pattern,editType:"calc"},text:iv.text,hovertext:iv.hovertext,scalegroup:q2({},iv.scalegroup,{}),textinfo:q2({},iv.textinfo,{flags:["label","text","value","percent"]}),texttemplate:$Lt({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:q2({},YLt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:JLt({},{keys:["label","color","value","text","percent"]}),textposition:q2({},iv.textposition,{values:["inside","none"],dflt:"inside"}),textfont:iv.textfont,insidetextfont:iv.insidetextfont,title:{text:iv.title.text,font:iv.title.font,position:q2({},iv.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:KLt({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var uX=ye((Fpr,qLe)=>{"use strict";var QLt=hD().hiddenlabels;qLe.exports={hiddenlabels:QLt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var ULe=ye((zpr,NLe)=>{"use strict";var BLe=Dr(),ePt=lX(),tPt=kc().defaults,rPt=r0().handleText,iPt=S2().handleLabelsAndValues,nPt=S2().handleMarkerDefaults;NLe.exports=function(t,r,n,i){function a(x,b){return BLe.coerce(t,r,ePt,x,b)}var o=a("labels"),s=a("values"),l=iPt(o,s),u=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!u){r.visible=!1;return}r._length=u,nPt(t,r,i,a),a("scalegroup");var c=a("text"),f=a("texttemplate"),h;if(f||(h=a("textinfo",Array.isArray(c)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),f||h&&h!=="none"){var d=a("textposition");rPt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");tPt(r,i,a);var v=a("title.text");v&&(a("title.position"),BLe.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var GLe=ye((Opr,VLe)=>{"use strict";var aPt=Dr(),oPt=uX();VLe.exports=function(t,r){function n(i,a){return aPt.coerce(t,r,oPt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var cX=ye((qpr,jLe)=>{"use strict";var HLe=_A();function sPt(e,t){return HLe.calc(e,t)}function lPt(e){HLe.crossTraceCalc(e,{type:"funnelarea"})}jLe.exports={calc:sPt,crossTraceCalc:lPt}});var KLe=ye((Bpr,YLe)=>{"use strict";var B2=Oa(),fX=So(),K_=Dr(),uPt=K_.strScale,WLe=K_.strTranslate,XLe=ru(),cPt=i2(),fPt=cPt.toMoveInsideBar,ZLe=bv(),hPt=ZLe.recordMinTextSize,dPt=ZLe.clearMinTextSize,vPt=l_(),qA=gD(),pPt=qA.attachFxHandlers,gPt=qA.determineInsideTextFont,mPt=qA.layoutAreas,yPt=qA.prerenderTitles,_Pt=qA.positionTitleOutside,xPt=qA.formatSliceLabel;YLe.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;dPt("funnelarea",i),yPt(r,t),mPt(r,i._size),K_.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=B2.select(this),s=a[0],l=s.trace;wPt(a),o.each(function(){var u=B2.select(this).selectAll("g.slice").data(a);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(f,h){if(f.hidden){B2.select(this).selectAll("path,g").remove();return}f.pointNumber=f.i,f.curveNumber=l.index;var d=s.cx,v=s.cy,x=B2.select(this),b=x.selectAll("path.surface").data([f]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),x.call(pPt,t,a);var p="M"+(d+f.TR[0])+","+(v+f.TR[1])+hX(f.TR,f.BR)+hX(f.BR,f.BL)+hX(f.BL,f.TL)+"Z";b.attr("d",p),xPt(t,f,s);var C=vPt.castOption(l.textposition,f.pts),E=x.selectAll("g.slicetext").data(f.text&&C!=="none"?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each(function(){var A=K_.ensureSingle(B2.select(this),"text","",function(z){z.attr("data-notex",1)}),L=K_.ensureUniformFontSize(t,gPt(l,f,i.font));A.text(f.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(fX.font,L).call(XLe.convertToTspans,t);var _=fX.bBox(A.node()),k,M,g,P=Math.min(f.BL[1],f.BR[1])+v,T=Math.max(f.TL[1],f.TR[1])+v;M=Math.max(f.TL[0],f.BL[0])+d,g=Math.min(f.TR[0],f.BR[0])+d,k=fPt(M,g,P,T,_,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),k.fontSize=L.size,hPt(l.type,k,i),a[h].transform=k,K_.setTransormAndDisplay(A,k)})});var c=B2.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);c.enter().append("g").classed("titletext",!0),c.exit().remove(),c.each(function(){var f=K_.ensureSingle(B2.select(this),"text","",function(v){v.attr("data-notex",1)}),h=l.title.text;l._meta&&(h=K_.templateString(h,l._meta)),f.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(fX.font,l.title.font).call(XLe.convertToTspans,t);var d=_Pt(s,i._size);f.attr("transform",WLe(d.x,d.y)+uPt(Math.min(1,d.scale))+WLe(d.tx,d.ty))})})})};function hX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function bPt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function wPt(e){if(!e.length)return;var t=e[0],r=t.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a=Math.pow(i,2),o=t.vTotal,s=o*a/(1-a),l=o,u=s/o;function c(){var O=Math.sqrt(u);return{x:O,y:-O}}function f(){var O=c();return[O.x,O.y]}var h,d=[];d.push(f());var v,x;for(v=e.length-1;v>-1;v--)if(x=e[v],!x.hidden){var b=x.v/l;u+=b,d.push(f())}var p=1/0,C=-1/0;for(v=0;v-1;v--)if(x=e[v],!x.hidden){P+=1;var T=d[P][0],z=d[P][1];x.TL=[-T,z],x.TR=[T,z],x.BL=M,x.BR=g,x.pxmid=bPt(x.TR,x.BR),M=x.TL,g=x.TR}}});var QLe=ye((Npr,$Le)=>{"use strict";var JLe=Oa(),TPt=F3(),APt=bv().resizeText;$Le.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");APt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=JLe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){JLe.select(this).call(TPt,s,a,t)})})}});var tPe=ye((Upr,ePe)=>{"use strict";ePe.exports={moduleType:"trace",name:"funnelarea",basePlotModule:zLe(),categories:["pie-like","funnelarea","showLegend"],attributes:lX(),layoutAttributes:uX(),supplyDefaults:ULe(),supplyLayoutDefaults:GLe(),calc:cX().calc,crossTraceCalc:cX().crossTraceCalc,plot:KLe(),style:QLe(),styleOne:F3(),meta:{}}});var iPe=ye((Vpr,rPe)=>{"use strict";rPe.exports=tPe()});var Od=ye((Gpr,nPe)=>{(function(){var e={1964:function(i,a,o){i.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}},4793:function(i,a,o){"use strict";var s;function l(Ie,xe){if(!(Ie instanceof xe))throw new TypeError("Cannot call a class as a function")}function u(Ie,xe){for(var Ce=0;CeM)throw new RangeError('The value "'+Ie+'" is invalid for option "size"');var xe=new Uint8Array(Ie);return Object.setPrototypeOf(xe,T.prototype),xe}function T(Ie,xe,Ce){if(typeof Ie=="number"){if(typeof xe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return G(Ie)}return z(Ie,xe,Ce)}T.poolSize=8192;function z(Ie,xe,Ce){if(typeof Ie=="string")return Z(Ie,xe);if(ArrayBuffer.isView(Ie))return N(Ie);if(Ie==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+A(Ie));if(Ge(Ie,ArrayBuffer)||Ie&&Ge(Ie.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ge(Ie,SharedArrayBuffer)||Ie&&Ge(Ie.buffer,SharedArrayBuffer)))return j(Ie,xe,Ce);if(typeof Ie=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var vt=Ie.valueOf&&Ie.valueOf();if(vt!=null&&vt!==Ie)return T.from(vt,xe,Ce);var nr=re(Ie);if(nr)return nr;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ie[Symbol.toPrimitive]=="function")return T.from(Ie[Symbol.toPrimitive]("string"),xe,Ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+A(Ie))}T.from=function(Ie,xe,Ce){return z(Ie,xe,Ce)},Object.setPrototypeOf(T.prototype,Uint8Array.prototype),Object.setPrototypeOf(T,Uint8Array);function O(Ie){if(typeof Ie!="number")throw new TypeError('"size" argument must be of type number');if(Ie<0)throw new RangeError('The value "'+Ie+'" is invalid for option "size"')}function V(Ie,xe,Ce){return O(Ie),Ie<=0?P(Ie):xe!==void 0?typeof Ce=="string"?P(Ie).fill(xe,Ce):P(Ie).fill(xe):P(Ie)}T.alloc=function(Ie,xe,Ce){return V(Ie,xe,Ce)};function G(Ie){return O(Ie),P(Ie<0?0:oe(Ie)|0)}T.allocUnsafe=function(Ie){return G(Ie)},T.allocUnsafeSlow=function(Ie){return G(Ie)};function Z(Ie,xe){if((typeof xe!="string"||xe==="")&&(xe="utf8"),!T.isEncoding(xe))throw new TypeError("Unknown encoding: "+xe);var Ce=Me(Ie,xe)|0,vt=P(Ce),nr=vt.write(Ie,xe);return nr!==Ce&&(vt=vt.slice(0,nr)),vt}function H(Ie){for(var xe=Ie.length<0?0:oe(Ie.length)|0,Ce=P(xe),vt=0;vt=M)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");return Ie|0}function _e(Ie){return+Ie!=Ie&&(Ie=0),T.alloc(+Ie)}T.isBuffer=function(xe){return xe!=null&&xe._isBuffer===!0&&xe!==T.prototype},T.compare=function(xe,Ce){if(Ge(xe,Uint8Array)&&(xe=T.from(xe,xe.offset,xe.byteLength)),Ge(Ce,Uint8Array)&&(Ce=T.from(Ce,Ce.offset,Ce.byteLength)),!T.isBuffer(xe)||!T.isBuffer(Ce))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(xe===Ce)return 0;for(var vt=xe.length,nr=Ce.length,ir=0,pr=Math.min(vt,nr);irnr.length?(T.isBuffer(pr)||(pr=T.from(pr)),pr.copy(nr,ir)):Uint8Array.prototype.set.call(nr,pr,ir);else if(T.isBuffer(pr))pr.copy(nr,ir);else throw new TypeError('"list" argument must be an Array of Buffers');ir+=pr.length}return nr};function Me(Ie,xe){if(T.isBuffer(Ie))return Ie.length;if(ArrayBuffer.isView(Ie)||Ge(Ie,ArrayBuffer))return Ie.byteLength;if(typeof Ie!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+A(Ie));var Ce=Ie.length,vt=arguments.length>2&&arguments[2]===!0;if(!vt&&Ce===0)return 0;for(var nr=!1;;)switch(xe){case"ascii":case"latin1":case"binary":return Ce;case"utf8":case"utf-8":return Rr(Ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ce*2;case"hex":return Ce>>>1;case"base64":return Ur(Ie).length;default:if(nr)return vt?-1:Rr(Ie).length;xe=(""+xe).toLowerCase(),nr=!0}}T.byteLength=Me;function ke(Ie,xe,Ce){var vt=!1;if((xe===void 0||xe<0)&&(xe=0),xe>this.length||((Ce===void 0||Ce>this.length)&&(Ce=this.length),Ce<=0)||(Ce>>>=0,xe>>>=0,Ce<=xe))return"";for(Ie||(Ie="utf8");;)switch(Ie){case"hex":return st(this,xe,Ce);case"utf8":case"utf-8":return ce(this,xe,Ce);case"ascii":return pt(this,xe,Ce);case"latin1":case"binary":return Wt(this,xe,Ce);case"base64":return Fe(this,xe,Ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,xe,Ce);default:if(vt)throw new TypeError("Unknown encoding: "+Ie);Ie=(Ie+"").toLowerCase(),vt=!0}}T.prototype._isBuffer=!0;function me(Ie,xe,Ce){var vt=Ie[xe];Ie[xe]=Ie[Ce],Ie[Ce]=vt}T.prototype.swap16=function(){var xe=this.length;if(xe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ce=0;CeCe&&(xe+=" ... "),""},k&&(T.prototype[k]=T.prototype.inspect),T.prototype.compare=function(xe,Ce,vt,nr,ir){if(Ge(xe,Uint8Array)&&(xe=T.from(xe,xe.offset,xe.byteLength)),!T.isBuffer(xe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+A(xe));if(Ce===void 0&&(Ce=0),vt===void 0&&(vt=xe?xe.length:0),nr===void 0&&(nr=0),ir===void 0&&(ir=this.length),Ce<0||vt>xe.length||nr<0||ir>this.length)throw new RangeError("out of range index");if(nr>=ir&&Ce>=vt)return 0;if(nr>=ir)return-1;if(Ce>=vt)return 1;if(Ce>>>=0,vt>>>=0,nr>>>=0,ir>>>=0,this===xe)return 0;for(var pr=ir-nr,oi=vt-Ce,di=Math.min(pr,oi),Jr=this.slice(nr,ir),fi=xe.slice(Ce,vt),Hi=0;Hi2147483647?Ce=2147483647:Ce<-2147483648&&(Ce=-2147483648),Ce=+Ce,Je(Ce)&&(Ce=nr?0:Ie.length-1),Ce<0&&(Ce=Ie.length+Ce),Ce>=Ie.length){if(nr)return-1;Ce=Ie.length-1}else if(Ce<0)if(nr)Ce=0;else return-1;if(typeof xe=="string"&&(xe=T.from(xe,vt)),T.isBuffer(xe))return xe.length===0?-1:Se(Ie,xe,Ce,vt,nr);if(typeof xe=="number")return xe=xe&255,typeof Uint8Array.prototype.indexOf=="function"?nr?Uint8Array.prototype.indexOf.call(Ie,xe,Ce):Uint8Array.prototype.lastIndexOf.call(Ie,xe,Ce):Se(Ie,[xe],Ce,vt,nr);throw new TypeError("val must be string, number or Buffer")}function Se(Ie,xe,Ce,vt,nr){var ir=1,pr=Ie.length,oi=xe.length;if(vt!==void 0&&(vt=String(vt).toLowerCase(),vt==="ucs2"||vt==="ucs-2"||vt==="utf16le"||vt==="utf-16le")){if(Ie.length<2||xe.length<2)return-1;ir=2,pr/=2,oi/=2,Ce/=2}function di(wn,pn){return ir===1?wn[pn]:wn.readUInt16BE(pn*ir)}var Jr;if(nr){var fi=-1;for(Jr=Ce;Jrpr&&(Ce=pr-oi),Jr=Ce;Jr>=0;Jr--){for(var Hi=!0,Pn=0;Pnnr&&(vt=nr)):vt=nr;var ir=xe.length;vt>ir/2&&(vt=ir/2);var pr;for(pr=0;pr>>0,isFinite(vt)?(vt=vt>>>0,nr===void 0&&(nr="utf8")):(nr=vt,vt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ir=this.length-Ce;if((vt===void 0||vt>ir)&&(vt=ir),xe.length>0&&(vt<0||Ce<0)||Ce>this.length)throw new RangeError("Attempt to write outside buffer bounds");nr||(nr="utf8");for(var pr=!1;;)switch(nr){case"hex":return Le(this,xe,Ce,vt);case"utf8":case"utf-8":return Ae(this,xe,Ce,vt);case"ascii":case"latin1":case"binary":return De(this,xe,Ce,vt);case"base64":return Pe(this,xe,Ce,vt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ge(this,xe,Ce,vt);default:if(pr)throw new TypeError("Unknown encoding: "+nr);nr=(""+nr).toLowerCase(),pr=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Fe(Ie,xe,Ce){return xe===0&&Ce===Ie.length?L.fromByteArray(Ie):L.fromByteArray(Ie.slice(xe,Ce))}function ce(Ie,xe,Ce){Ce=Math.min(Ie.length,Ce);for(var vt=[],nr=xe;nr239?4:ir>223?3:ir>191?2:1;if(nr+oi<=Ce){var di=void 0,Jr=void 0,fi=void 0,Hi=void 0;switch(oi){case 1:ir<128&&(pr=ir);break;case 2:di=Ie[nr+1],(di&192)===128&&(Hi=(ir&31)<<6|di&63,Hi>127&&(pr=Hi));break;case 3:di=Ie[nr+1],Jr=Ie[nr+2],(di&192)===128&&(Jr&192)===128&&(Hi=(ir&15)<<12|(di&63)<<6|Jr&63,Hi>2047&&(Hi<55296||Hi>57343)&&(pr=Hi));break;case 4:di=Ie[nr+1],Jr=Ie[nr+2],fi=Ie[nr+3],(di&192)===128&&(Jr&192)===128&&(fi&192)===128&&(Hi=(ir&15)<<18|(di&63)<<12|(Jr&63)<<6|fi&63,Hi>65535&&Hi<1114112&&(pr=Hi))}}pr===null?(pr=65533,oi=1):pr>65535&&(pr-=65536,vt.push(pr>>>10&1023|55296),pr=56320|pr&1023),vt.push(pr),nr+=oi}return ct(vt)}var Ze=4096;function ct(Ie){var xe=Ie.length;if(xe<=Ze)return String.fromCharCode.apply(String,Ie);for(var Ce="",vt=0;vtvt)&&(Ce=vt);for(var nr="",ir=xe;irvt&&(xe=vt),Ce<0?(Ce+=vt,Ce<0&&(Ce=0)):Ce>vt&&(Ce=vt),CeCe)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(xe,Ce,vt){xe=xe>>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=this[xe],ir=1,pr=0;++pr>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=this[xe+--Ce],ir=1;Ce>0&&(ir*=256);)nr+=this[xe+--Ce]*ir;return nr},T.prototype.readUint8=T.prototype.readUInt8=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,1,this.length),this[xe]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,2,this.length),this[xe]|this[xe+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,2,this.length),this[xe]<<8|this[xe+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),(this[xe]|this[xe+1]<<8|this[xe+2]<<16)+this[xe+3]*16777216},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),this[xe]*16777216+(this[xe+1]<<16|this[xe+2]<<8|this[xe+3])},T.prototype.readBigUInt64LE=$e(function(xe){xe=xe>>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=Ce+this[++xe]*Math.pow(2,8)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,24),ir=this[++xe]+this[++xe]*Math.pow(2,8)+this[++xe]*Math.pow(2,16)+vt*Math.pow(2,24);return BigInt(nr)+(BigInt(ir)<>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=Ce*Math.pow(2,24)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,8)+this[++xe],ir=this[++xe]*Math.pow(2,24)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,8)+vt;return(BigInt(nr)<>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=this[xe],ir=1,pr=0;++pr=ir&&(nr-=Math.pow(2,8*Ce)),nr},T.prototype.readIntBE=function(xe,Ce,vt){xe=xe>>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=Ce,ir=1,pr=this[xe+--nr];nr>0&&(ir*=256);)pr+=this[xe+--nr]*ir;return ir*=128,pr>=ir&&(pr-=Math.pow(2,8*Ce)),pr},T.prototype.readInt8=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,1,this.length),this[xe]&128?(255-this[xe]+1)*-1:this[xe]},T.prototype.readInt16LE=function(xe,Ce){xe=xe>>>0,Ce||Gt(xe,2,this.length);var vt=this[xe]|this[xe+1]<<8;return vt&32768?vt|4294901760:vt},T.prototype.readInt16BE=function(xe,Ce){xe=xe>>>0,Ce||Gt(xe,2,this.length);var vt=this[xe+1]|this[xe]<<8;return vt&32768?vt|4294901760:vt},T.prototype.readInt32LE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),this[xe]|this[xe+1]<<8|this[xe+2]<<16|this[xe+3]<<24},T.prototype.readInt32BE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),this[xe]<<24|this[xe+1]<<16|this[xe+2]<<8|this[xe+3]},T.prototype.readBigInt64LE=$e(function(xe){xe=xe>>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=this[xe+4]+this[xe+5]*Math.pow(2,8)+this[xe+6]*Math.pow(2,16)+(vt<<24);return(BigInt(nr)<>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=(Ce<<24)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,8)+this[++xe];return(BigInt(nr)<>>0,Ce||Gt(xe,4,this.length),_.read(this,xe,!0,23,4)},T.prototype.readFloatBE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),_.read(this,xe,!1,23,4)},T.prototype.readDoubleLE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,8,this.length),_.read(this,xe,!0,52,8)},T.prototype.readDoubleBE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,8,this.length),_.read(this,xe,!1,52,8)};function Nt(Ie,xe,Ce,vt,nr,ir){if(!T.isBuffer(Ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(xe>nr||xeIe.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(xe,Ce,vt,nr){if(xe=+xe,Ce=Ce>>>0,vt=vt>>>0,!nr){var ir=Math.pow(2,8*vt)-1;Nt(this,xe,Ce,vt,ir,0)}var pr=1,oi=0;for(this[Ce]=xe&255;++oi>>0,vt=vt>>>0,!nr){var ir=Math.pow(2,8*vt)-1;Nt(this,xe,Ce,vt,ir,0)}var pr=vt-1,oi=1;for(this[Ce+pr]=xe&255;--pr>=0&&(oi*=256);)this[Ce+pr]=xe/oi&255;return Ce+vt},T.prototype.writeUint8=T.prototype.writeUInt8=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,1,255,0),this[Ce]=xe&255,Ce+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,65535,0),this[Ce]=xe&255,this[Ce+1]=xe>>>8,Ce+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,65535,0),this[Ce]=xe>>>8,this[Ce+1]=xe&255,Ce+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,4294967295,0),this[Ce+3]=xe>>>24,this[Ce+2]=xe>>>16,this[Ce+1]=xe>>>8,this[Ce]=xe&255,Ce+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,4294967295,0),this[Ce]=xe>>>24,this[Ce+1]=xe>>>16,this[Ce+2]=xe>>>8,this[Ce+3]=xe&255,Ce+4};function $t(Ie,xe,Ce,vt,nr){bt(xe,vt,nr,Ie,Ce,7);var ir=Number(xe&BigInt(4294967295));Ie[Ce++]=ir,ir=ir>>8,Ie[Ce++]=ir,ir=ir>>8,Ie[Ce++]=ir,ir=ir>>8,Ie[Ce++]=ir;var pr=Number(xe>>BigInt(32)&BigInt(4294967295));return Ie[Ce++]=pr,pr=pr>>8,Ie[Ce++]=pr,pr=pr>>8,Ie[Ce++]=pr,pr=pr>>8,Ie[Ce++]=pr,Ce}function sr(Ie,xe,Ce,vt,nr){bt(xe,vt,nr,Ie,Ce,7);var ir=Number(xe&BigInt(4294967295));Ie[Ce+7]=ir,ir=ir>>8,Ie[Ce+6]=ir,ir=ir>>8,Ie[Ce+5]=ir,ir=ir>>8,Ie[Ce+4]=ir;var pr=Number(xe>>BigInt(32)&BigInt(4294967295));return Ie[Ce+3]=pr,pr=pr>>8,Ie[Ce+2]=pr,pr=pr>>8,Ie[Ce+1]=pr,pr=pr>>8,Ie[Ce]=pr,Ce+8}T.prototype.writeBigUInt64LE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return $t(this,xe,Ce,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeBigUInt64BE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return sr(this,xe,Ce,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeIntLE=function(xe,Ce,vt,nr){if(xe=+xe,Ce=Ce>>>0,!nr){var ir=Math.pow(2,8*vt-1);Nt(this,xe,Ce,vt,ir-1,-ir)}var pr=0,oi=1,di=0;for(this[Ce]=xe&255;++pr>0)-di&255;return Ce+vt},T.prototype.writeIntBE=function(xe,Ce,vt,nr){if(xe=+xe,Ce=Ce>>>0,!nr){var ir=Math.pow(2,8*vt-1);Nt(this,xe,Ce,vt,ir-1,-ir)}var pr=vt-1,oi=1,di=0;for(this[Ce+pr]=xe&255;--pr>=0&&(oi*=256);)xe<0&&di===0&&this[Ce+pr+1]!==0&&(di=1),this[Ce+pr]=(xe/oi>>0)-di&255;return Ce+vt},T.prototype.writeInt8=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,1,127,-128),xe<0&&(xe=255+xe+1),this[Ce]=xe&255,Ce+1},T.prototype.writeInt16LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,32767,-32768),this[Ce]=xe&255,this[Ce+1]=xe>>>8,Ce+2},T.prototype.writeInt16BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,32767,-32768),this[Ce]=xe>>>8,this[Ce+1]=xe&255,Ce+2},T.prototype.writeInt32LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,2147483647,-2147483648),this[Ce]=xe&255,this[Ce+1]=xe>>>8,this[Ce+2]=xe>>>16,this[Ce+3]=xe>>>24,Ce+4},T.prototype.writeInt32BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,2147483647,-2147483648),xe<0&&(xe=4294967295+xe+1),this[Ce]=xe>>>24,this[Ce+1]=xe>>>16,this[Ce+2]=xe>>>8,this[Ce+3]=xe&255,Ce+4},T.prototype.writeBigInt64LE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return $t(this,xe,Ce,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeBigInt64BE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return sr(this,xe,Ce,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function wr(Ie,xe,Ce,vt,nr,ir){if(Ce+vt>Ie.length)throw new RangeError("Index out of range");if(Ce<0)throw new RangeError("Index out of range")}function ur(Ie,xe,Ce,vt,nr){return xe=+xe,Ce=Ce>>>0,nr||wr(Ie,xe,Ce,4,34028234663852886e22,-34028234663852886e22),_.write(Ie,xe,Ce,vt,23,4),Ce+4}T.prototype.writeFloatLE=function(xe,Ce,vt){return ur(this,xe,Ce,!0,vt)},T.prototype.writeFloatBE=function(xe,Ce,vt){return ur(this,xe,Ce,!1,vt)};function Qe(Ie,xe,Ce,vt,nr){return xe=+xe,Ce=Ce>>>0,nr||wr(Ie,xe,Ce,8,17976931348623157e292,-17976931348623157e292),_.write(Ie,xe,Ce,vt,52,8),Ce+8}T.prototype.writeDoubleLE=function(xe,Ce,vt){return Qe(this,xe,Ce,!0,vt)},T.prototype.writeDoubleBE=function(xe,Ce,vt){return Qe(this,xe,Ce,!1,vt)},T.prototype.copy=function(xe,Ce,vt,nr){if(!T.isBuffer(xe))throw new TypeError("argument should be a Buffer");if(vt||(vt=0),!nr&&nr!==0&&(nr=this.length),Ce>=xe.length&&(Ce=xe.length),Ce||(Ce=0),nr>0&&nr=this.length)throw new RangeError("Index out of range");if(nr<0)throw new RangeError("sourceEnd out of bounds");nr>this.length&&(nr=this.length),xe.length-Ce>>0,vt=vt===void 0?this.length:vt>>>0,xe||(xe=0);var pr;if(typeof xe=="number")for(pr=Ce;prMath.pow(2,32)?nr=Ut(String(Ce)):typeof Ce=="bigint"&&(nr=String(Ce),(Ce>Math.pow(BigInt(2),BigInt(32))||Ce<-Math.pow(BigInt(2),BigInt(32)))&&(nr=Ut(nr)),nr+="n"),vt+=" It must be ".concat(xe,". Received ").concat(nr),vt},RangeError);function Ut(Ie){for(var xe="",Ce=Ie.length,vt=Ie[0]==="-"?1:0;Ce>=vt+4;Ce-=3)xe="_".concat(Ie.slice(Ce-3,Ce)).concat(xe);return"".concat(Ie.slice(0,Ce)).concat(xe)}function Ft(Ie,xe,Ce){yt(xe,"offset"),(Ie[xe]===void 0||Ie[xe+Ce]===void 0)&&Yt(xe,Ie.length-(Ce+1))}function bt(Ie,xe,Ce,vt,nr,ir){if(Ie>Ce||Ie3?xe===0||xe===BigInt(0)?oi=">= 0".concat(pr," and < 2").concat(pr," ** ").concat((ir+1)*8).concat(pr):oi=">= -(2".concat(pr," ** ").concat((ir+1)*8-1).concat(pr,") and < 2 ** ")+"".concat((ir+1)*8-1).concat(pr):oi=">= ".concat(xe).concat(pr," and <= ").concat(Ce).concat(pr),new Et.ERR_OUT_OF_RANGE("value",oi,Ie)}Ft(vt,nr,ir)}function yt(Ie,xe){if(typeof Ie!="number")throw new Et.ERR_INVALID_ARG_TYPE(xe,"number",Ie)}function Yt(Ie,xe,Ce){throw Math.floor(Ie)!==Ie?(yt(Ie,Ce),new Et.ERR_OUT_OF_RANGE(Ce||"offset","an integer",Ie)):xe<0?new Et.ERR_BUFFER_OUT_OF_BOUNDS:new Et.ERR_OUT_OF_RANGE(Ce||"offset",">= ".concat(Ce?1:0," and <= ").concat(xe),Ie)}var lr=/[^+/0-9A-Za-z-_]/g;function Tr(Ie){if(Ie=Ie.split("=")[0],Ie=Ie.trim().replace(lr,""),Ie.length<2)return"";for(;Ie.length%4!==0;)Ie=Ie+"=";return Ie}function Rr(Ie,xe){xe=xe||1/0;for(var Ce,vt=Ie.length,nr=null,ir=[],pr=0;pr55295&&Ce<57344){if(!nr){if(Ce>56319){(xe-=3)>-1&&ir.push(239,191,189);continue}else if(pr+1===vt){(xe-=3)>-1&&ir.push(239,191,189);continue}nr=Ce;continue}if(Ce<56320){(xe-=3)>-1&&ir.push(239,191,189),nr=Ce;continue}Ce=(nr-55296<<10|Ce-56320)+65536}else nr&&(xe-=3)>-1&&ir.push(239,191,189);if(nr=null,Ce<128){if((xe-=1)<0)break;ir.push(Ce)}else if(Ce<2048){if((xe-=2)<0)break;ir.push(Ce>>6|192,Ce&63|128)}else if(Ce<65536){if((xe-=3)<0)break;ir.push(Ce>>12|224,Ce>>6&63|128,Ce&63|128)}else if(Ce<1114112){if((xe-=4)<0)break;ir.push(Ce>>18|240,Ce>>12&63|128,Ce>>6&63|128,Ce&63|128)}else throw new Error("Invalid code point")}return ir}function ei(Ie){for(var xe=[],Ce=0;Ce>8,nr=Ce%256,ir.push(nr),ir.push(vt);return ir}function Ur(Ie){return L.toByteArray(Tr(Ie))}function dt(Ie,xe,Ce,vt){var nr;for(nr=0;nr=xe.length||nr>=Ie.length);++nr)xe[nr+Ce]=Ie[nr];return nr}function Ge(Ie,xe){return Ie instanceof xe||Ie!=null&&Ie.constructor!=null&&Ie.constructor.name!=null&&Ie.constructor.name===xe.name}function Je(Ie){return Ie!==Ie}var je=function(){for(var Ie="0123456789abcdef",xe=new Array(256),Ce=0;Ce<16;++Ce)for(var vt=Ce*16,nr=0;nr<16;++nr)xe[vt+nr]=Ie[Ce]+Ie[nr];return xe}();function $e(Ie){return typeof BigInt=="undefined"?wt:Ie}function wt(){throw new Error("BigInt not supported")}},9216:function(i){"use strict";i.exports=l,i.exports.isMobile=l,i.exports.default=l;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,s=/android|ipad|playbook|silk/i;function l(u){u||(u={});var c=u.ua;if(!c&&typeof navigator!="undefined"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;var f=a.test(c)&&!o.test(c)||!!u.tablet&&s.test(c);return!f&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(f=!0),f}},6296:function(i,a,o){"use strict";i.exports=h;var s=o(7261),l=o(9977),u=o(1811);function c(d,v){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(x){return d[x]}),this._mode=v,this._active=d[v],this._active||(this._mode="turntable",this._active=d.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var f=c.prototype;f.flush=function(d){for(var v=this._controllerList,x=0;x0)throw new Error("Invalid string. Length must be a multiple of 4");var L=E.indexOf("=");L===-1&&(L=A);var _=L===A?0:4-L%4;return[L,_]}function d(E){var A=h(E),L=A[0],_=A[1];return(L+_)*3/4-_}function v(E,A,L){return(A+L)*3/4-L}function x(E){var A,L=h(E),_=L[0],k=L[1],M=new l(v(E,_,k)),g=0,P=k>0?_-4:_,T;for(T=0;T>16&255,M[g++]=A>>8&255,M[g++]=A&255;return k===2&&(A=s[E.charCodeAt(T)]<<2|s[E.charCodeAt(T+1)]>>4,M[g++]=A&255),k===1&&(A=s[E.charCodeAt(T)]<<10|s[E.charCodeAt(T+1)]<<4|s[E.charCodeAt(T+2)]>>2,M[g++]=A>>8&255,M[g++]=A&255),M}function b(E){return o[E>>18&63]+o[E>>12&63]+o[E>>6&63]+o[E&63]}function p(E,A,L){for(var _,k=[],M=A;MP?P:g+M));return _===1?(A=E[L-1],k.push(o[A>>2]+o[A<<4&63]+"==")):_===2&&(A=(E[L-2]<<8)+E[L-1],k.push(o[A>>10]+o[A>>4&63]+o[A<<2&63]+"=")),k.join("")}},3865:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]).add(c[0].mul(u[1])),u[1].mul(c[1]))}},1318:function(i){"use strict";i.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]),u[1].mul(c[0]))}},7842:function(i,a,o){"use strict";var s=o(6330),l=o(1533),u=o(2651),c=o(6768),f=o(869),h=o(8697);i.exports=d;function d(v,x){if(s(v))return x?h(v,d(x)):[v[0].clone(),v[1].clone()];var b=0,p,C;if(l(v))p=v.clone();else if(typeof v=="string")p=c(v);else{if(v===0)return[u(0),u(1)];if(v===Math.floor(v))p=u(v);else{for(;v!==Math.floor(v);)v=v*Math.pow(2,256),b-=256;p=u(v)}}if(s(x))p.mul(x[1]),C=x[0].clone();else if(l(x))C=x.clone();else if(typeof x=="string")C=c(x);else if(!x)C=u(1);else if(x===Math.floor(x))C=u(x);else{for(;x!==Math.floor(x);)x=x*Math.pow(2,256),b+=256;C=u(x)}return b>0?p=p.ushln(b):b<0&&(C=C.ushln(-b)),f(p,C)}},6330:function(i,a,o){"use strict";var s=o(1533);i.exports=l;function l(u){return Array.isArray(u)&&u.length===2&&s(u[0])&&s(u[1])}},5716:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u.cmp(new s(0))}},1369:function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){var c=u.length,f=u.words,h=0;if(c===1)h=f[0];else if(c===2)h=f[0]+f[1]*67108864;else for(var d=0;d20?52:h+32}},1533:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u&&typeof u=="object"&&!!u.words}},2651:function(i,a,o){"use strict";var s=o(6859),l=o(2361);i.exports=u;function u(c){var f=l.exponent(c);return f<52?new s(c):new s(c*Math.pow(2,52-f)).ushln(f-52)}},869:function(i,a,o){"use strict";var s=o(2651),l=o(5716);i.exports=u;function u(c,f){var h=l(c),d=l(f);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(c=c.neg(),f=f.neg());var v=c.gcd(f);return v.cmpn(1)?[c.div(v),f.div(v)]:[c,f]}},6768:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return new s(u)}},6504:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[0]),u[1].mul(c[1]))}},7721:function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){return s(u[0])*s(u[1])}},5572:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]).sub(u[1].mul(c[0])),u[1].mul(c[1]))}},946:function(i,a,o){"use strict";var s=o(1369),l=o(4025);i.exports=u;function u(c){var f=c[0],h=c[1];if(f.cmpn(0)===0)return 0;var d=f.abs().divmod(h.abs()),v=d.div,x=s(v),b=d.mod,p=f.negative!==h.negative?-1:1;if(b.cmpn(0)===0)return p*x;if(x){var C=l(x)+4,E=s(b.ushln(C).divRound(h));return p*(x+E*Math.pow(2,-C))}else{var A=h.bitLength()-b.bitLength()+53,E=s(b.ushln(A).divRound(h));return A<1023?p*E*Math.pow(2,-A):(E*=Math.pow(2,-1023),p*E*Math.pow(2,1023-A))}}},2478:function(i){"use strict";function a(f,h,d,v,x){for(var b=x+1;v<=x;){var p=v+x>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E>=0?(b=p,x=p-1):v=p+1}return b}function o(f,h,d,v,x){for(var b=x+1;v<=x;){var p=v+x>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E>0?(b=p,x=p-1):v=p+1}return b}function s(f,h,d,v,x){for(var b=v-1;v<=x;){var p=v+x>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E<0?(b=p,v=p+1):x=p-1}return b}function l(f,h,d,v,x){for(var b=v-1;v<=x;){var p=v+x>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E<=0?(b=p,v=p+1):x=p-1}return b}function u(f,h,d,v,x){for(;v<=x;){var b=v+x>>>1,p=f[b],C=d!==void 0?d(p,h):p-h;if(C===0)return b;C<=0?v=b+1:x=b-1}return-1}function c(f,h,d,v,x,b){return typeof d=="function"?b(f,h,d,v===void 0?0:v|0,x===void 0?f.length-1:x|0):b(f,h,void 0,d===void 0?0:d|0,v===void 0?f.length-1:v|0)}i.exports={ge:function(f,h,d,v,x){return c(f,h,d,v,x,a)},gt:function(f,h,d,v,x){return c(f,h,d,v,x,o)},lt:function(f,h,d,v,x){return c(f,h,d,v,x,s)},le:function(f,h,d,v,x){return c(f,h,d,v,x,l)},eq:function(f,h,d,v,x){return c(f,h,d,v,x,u)}}},8828:function(i,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},6859:function(i,a,o){i=o.nmd(i),function(s,l){"use strict";function u(H,N){if(!H)throw new Error(N||"Assertion failed")}function c(H,N){H.super_=N;var j=function(){};j.prototype=N.prototype,H.prototype=new j,H.prototype.constructor=H}function f(H,N,j){if(f.isBN(H))return H;this.negative=0,this.words=null,this.length=0,this.red=null,H!==null&&((N==="le"||N==="be")&&(j=N,N=10),this._init(H||0,N||10,j||"be"))}typeof s=="object"?s.exports=f:l.BN=f,f.BN=f,f.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(H){}f.isBN=function(N){return N instanceof f?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===f.wordSize&&Array.isArray(N.words)},f.max=function(N,j){return N.cmp(j)>0?N:j},f.min=function(N,j){return N.cmp(j)<0?N:j},f.prototype._init=function(N,j,re){if(typeof N=="number")return this._initNumber(N,j,re);if(typeof N=="object")return this._initArray(N,j,re);j==="hex"&&(j=16),u(j===(j|0)&&j>=2&&j<=36),N=N.toString().replace(/\s+/g,"");var oe=0;N[0]==="-"&&(oe++,this.negative=1),oe=0;oe-=3)Me=N[oe]|N[oe-1]<<8|N[oe-2]<<16,this.words[_e]|=Me<>>26-ke&67108863,ke+=24,ke>=26&&(ke-=26,_e++);else if(re==="le")for(oe=0,_e=0;oe>>26-ke&67108863,ke+=24,ke>=26&&(ke-=26,_e++);return this.strip()};function d(H,N){var j=H.charCodeAt(N);return j>=65&&j<=70?j-55:j>=97&&j<=102?j-87:j-48&15}function v(H,N,j){var re=d(H,j);return j-1>=N&&(re|=d(H,j-1)<<4),re}f.prototype._parseHex=function(N,j,re){this.length=Math.ceil((N.length-j)/6),this.words=new Array(this.length);for(var oe=0;oe=j;oe-=2)ke=v(N,j,oe)<<_e,this.words[Me]|=ke&67108863,_e>=18?(_e-=18,Me+=1,this.words[Me]|=ke>>>26):_e+=8;else{var me=N.length-j;for(oe=me%2===0?j+1:j;oe=18?(_e-=18,Me+=1,this.words[Me]|=ke>>>26):_e+=8}this.strip()};function x(H,N,j,re){for(var oe=0,_e=Math.min(H.length,j),Me=N;Me<_e;Me++){var ke=H.charCodeAt(Me)-48;oe*=re,ke>=49?oe+=ke-49+10:ke>=17?oe+=ke-17+10:oe+=ke}return oe}f.prototype._parseBase=function(N,j,re){this.words=[0],this.length=1;for(var oe=0,_e=1;_e<=67108863;_e*=j)oe++;oe--,_e=_e/j|0;for(var Me=N.length-re,ke=Me%oe,me=Math.min(Me,Me-ke)+re,ie=0,Se=re;Se1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?""};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];f.prototype.toString=function(N,j){N=N||10,j=j|0||1;var re;if(N===16||N==="hex"){re="";for(var oe=0,_e=0,Me=0;Me>>24-oe&16777215,_e!==0||Me!==this.length-1?re=b[6-me.length]+me+re:re=me+re,oe+=2,oe>=26&&(oe-=26,Me--)}for(_e!==0&&(re=_e.toString(16)+re);re.length%j!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}if(N===(N|0)&&N>=2&&N<=36){var ie=p[N],Se=C[N];re="";var Le=this.clone();for(Le.negative=0;!Le.isZero();){var Ae=Le.modn(Se).toString(N);Le=Le.idivn(Se),Le.isZero()?re=Ae+re:re=b[ie-Ae.length]+Ae+re}for(this.isZero()&&(re="0"+re);re.length%j!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}u(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(N,j){return u(typeof h!="undefined"),this.toArrayLike(h,N,j)},f.prototype.toArray=function(N,j){return this.toArrayLike(Array,N,j)},f.prototype.toArrayLike=function(N,j,re){var oe=this.byteLength(),_e=re||Math.max(1,oe);u(oe<=_e,"byte array longer than desired length"),u(_e>0,"Requested array length <= 0"),this.strip();var Me=j==="le",ke=new N(_e),me,ie,Se=this.clone();if(Me){for(ie=0;!Se.isZero();ie++)me=Se.andln(255),Se.iushrn(8),ke[ie]=me;for(;ie<_e;ie++)ke[ie]=0}else{for(ie=0;ie<_e-oe;ie++)ke[ie]=0;for(ie=0;!Se.isZero();ie++)me=Se.andln(255),Se.iushrn(8),ke[_e-ie-1]=me}return ke},Math.clz32?f.prototype._countBits=function(N){return 32-Math.clz32(N)}:f.prototype._countBits=function(N){var j=N,re=0;return j>=4096&&(re+=13,j>>>=13),j>=64&&(re+=7,j>>>=7),j>=8&&(re+=4,j>>>=4),j>=2&&(re+=2,j>>>=2),re+j},f.prototype._zeroBits=function(N){if(N===0)return 26;var j=N,re=0;return(j&8191)===0&&(re+=13,j>>>=13),(j&127)===0&&(re+=7,j>>>=7),(j&15)===0&&(re+=4,j>>>=4),(j&3)===0&&(re+=2,j>>>=2),(j&1)===0&&re++,re},f.prototype.bitLength=function(){var N=this.words[this.length-1],j=this._countBits(N);return(this.length-1)*26+j};function E(H){for(var N=new Array(H.bitLength()),j=0;j>>oe}return N}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,j=0;jN.length?this.clone().ior(N):N.clone().ior(this)},f.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},f.prototype.iuand=function(N){var j;this.length>N.length?j=N:j=this;for(var re=0;reN.length?this.clone().iand(N):N.clone().iand(this)},f.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},f.prototype.iuxor=function(N){var j,re;this.length>N.length?(j=this,re=N):(j=N,re=this);for(var oe=0;oeN.length?this.clone().ixor(N):N.clone().ixor(this)},f.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},f.prototype.inotn=function(N){u(typeof N=="number"&&N>=0);var j=Math.ceil(N/26)|0,re=N%26;this._expand(j),re>0&&j--;for(var oe=0;oe0&&(this.words[oe]=~this.words[oe]&67108863>>26-re),this.strip()},f.prototype.notn=function(N){return this.clone().inotn(N)},f.prototype.setn=function(N,j){u(typeof N=="number"&&N>=0);var re=N/26|0,oe=N%26;return this._expand(re+1),j?this.words[re]=this.words[re]|1<N.length?(re=this,oe=N):(re=N,oe=this);for(var _e=0,Me=0;Me>>26;for(;_e!==0&&Me>>26;if(this.length=re.length,_e!==0)this.words[this.length]=_e,this.length++;else if(re!==this)for(;MeN.length?this.clone().iadd(N):N.clone().iadd(this)},f.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var j=this.iadd(N);return N.negative=1,j._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var re=this.cmp(N);if(re===0)return this.negative=0,this.length=1,this.words[0]=0,this;var oe,_e;re>0?(oe=this,_e=N):(oe=N,_e=this);for(var Me=0,ke=0;ke<_e.length;ke++)j=(oe.words[ke]|0)-(_e.words[ke]|0)+Me,Me=j>>26,this.words[ke]=j&67108863;for(;Me!==0&&ke>26,this.words[ke]=j&67108863;if(Me===0&&ke>>26,Le=me&67108863,Ae=Math.min(ie,N.length-1),De=Math.max(0,ie-H.length+1);De<=Ae;De++){var Pe=ie-De|0;oe=H.words[Pe]|0,_e=N.words[De]|0,Me=oe*_e+Le,Se+=Me/67108864|0,Le=Me&67108863}j.words[ie]=Le|0,me=Se|0}return me!==0?j.words[ie]=me|0:j.length--,j.strip()}var L=function(N,j,re){var oe=N.words,_e=j.words,Me=re.words,ke=0,me,ie,Se,Le=oe[0]|0,Ae=Le&8191,De=Le>>>13,Pe=oe[1]|0,ge=Pe&8191,Fe=Pe>>>13,ce=oe[2]|0,Ze=ce&8191,ct=ce>>>13,pt=oe[3]|0,Wt=pt&8191,st=pt>>>13,lt=oe[4]|0,Gt=lt&8191,Nt=lt>>>13,$t=oe[5]|0,sr=$t&8191,wr=$t>>>13,ur=oe[6]|0,Qe=ur&8191,Et=ur>>>13,er=oe[7]|0,Ut=er&8191,Ft=er>>>13,bt=oe[8]|0,yt=bt&8191,Yt=bt>>>13,lr=oe[9]|0,Tr=lr&8191,Rr=lr>>>13,ei=_e[0]|0,Wr=ei&8191,Ur=ei>>>13,dt=_e[1]|0,Ge=dt&8191,Je=dt>>>13,je=_e[2]|0,$e=je&8191,wt=je>>>13,Ie=_e[3]|0,xe=Ie&8191,Ce=Ie>>>13,vt=_e[4]|0,nr=vt&8191,ir=vt>>>13,pr=_e[5]|0,oi=pr&8191,di=pr>>>13,Jr=_e[6]|0,fi=Jr&8191,Hi=Jr>>>13,Pn=_e[7]|0,wn=Pn&8191,pn=Pn>>>13,Vn=_e[8]|0,kn=Vn&8191,ea=Vn>>>13,ua=_e[9]|0,Vt=ua&8191,_t=ua>>>13;re.negative=N.negative^j.negative,re.length=19,me=Math.imul(Ae,Wr),ie=Math.imul(Ae,Ur),ie=ie+Math.imul(De,Wr)|0,Se=Math.imul(De,Ur);var tr=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(tr>>>26)|0,tr&=67108863,me=Math.imul(ge,Wr),ie=Math.imul(ge,Ur),ie=ie+Math.imul(Fe,Wr)|0,Se=Math.imul(Fe,Ur),me=me+Math.imul(Ae,Ge)|0,ie=ie+Math.imul(Ae,Je)|0,ie=ie+Math.imul(De,Ge)|0,Se=Se+Math.imul(De,Je)|0;var ar=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(ar>>>26)|0,ar&=67108863,me=Math.imul(Ze,Wr),ie=Math.imul(Ze,Ur),ie=ie+Math.imul(ct,Wr)|0,Se=Math.imul(ct,Ur),me=me+Math.imul(ge,Ge)|0,ie=ie+Math.imul(ge,Je)|0,ie=ie+Math.imul(Fe,Ge)|0,Se=Se+Math.imul(Fe,Je)|0,me=me+Math.imul(Ae,$e)|0,ie=ie+Math.imul(Ae,wt)|0,ie=ie+Math.imul(De,$e)|0,Se=Se+Math.imul(De,wt)|0;var Er=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Er>>>26)|0,Er&=67108863,me=Math.imul(Wt,Wr),ie=Math.imul(Wt,Ur),ie=ie+Math.imul(st,Wr)|0,Se=Math.imul(st,Ur),me=me+Math.imul(Ze,Ge)|0,ie=ie+Math.imul(Ze,Je)|0,ie=ie+Math.imul(ct,Ge)|0,Se=Se+Math.imul(ct,Je)|0,me=me+Math.imul(ge,$e)|0,ie=ie+Math.imul(ge,wt)|0,ie=ie+Math.imul(Fe,$e)|0,Se=Se+Math.imul(Fe,wt)|0,me=me+Math.imul(Ae,xe)|0,ie=ie+Math.imul(Ae,Ce)|0,ie=ie+Math.imul(De,xe)|0,Se=Se+Math.imul(De,Ce)|0;var Zr=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,me=Math.imul(Gt,Wr),ie=Math.imul(Gt,Ur),ie=ie+Math.imul(Nt,Wr)|0,Se=Math.imul(Nt,Ur),me=me+Math.imul(Wt,Ge)|0,ie=ie+Math.imul(Wt,Je)|0,ie=ie+Math.imul(st,Ge)|0,Se=Se+Math.imul(st,Je)|0,me=me+Math.imul(Ze,$e)|0,ie=ie+Math.imul(Ze,wt)|0,ie=ie+Math.imul(ct,$e)|0,Se=Se+Math.imul(ct,wt)|0,me=me+Math.imul(ge,xe)|0,ie=ie+Math.imul(ge,Ce)|0,ie=ie+Math.imul(Fe,xe)|0,Se=Se+Math.imul(Fe,Ce)|0,me=me+Math.imul(Ae,nr)|0,ie=ie+Math.imul(Ae,ir)|0,ie=ie+Math.imul(De,nr)|0,Se=Se+Math.imul(De,ir)|0;var ri=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(ri>>>26)|0,ri&=67108863,me=Math.imul(sr,Wr),ie=Math.imul(sr,Ur),ie=ie+Math.imul(wr,Wr)|0,Se=Math.imul(wr,Ur),me=me+Math.imul(Gt,Ge)|0,ie=ie+Math.imul(Gt,Je)|0,ie=ie+Math.imul(Nt,Ge)|0,Se=Se+Math.imul(Nt,Je)|0,me=me+Math.imul(Wt,$e)|0,ie=ie+Math.imul(Wt,wt)|0,ie=ie+Math.imul(st,$e)|0,Se=Se+Math.imul(st,wt)|0,me=me+Math.imul(Ze,xe)|0,ie=ie+Math.imul(Ze,Ce)|0,ie=ie+Math.imul(ct,xe)|0,Se=Se+Math.imul(ct,Ce)|0,me=me+Math.imul(ge,nr)|0,ie=ie+Math.imul(ge,ir)|0,ie=ie+Math.imul(Fe,nr)|0,Se=Se+Math.imul(Fe,ir)|0,me=me+Math.imul(Ae,oi)|0,ie=ie+Math.imul(Ae,di)|0,ie=ie+Math.imul(De,oi)|0,Se=Se+Math.imul(De,di)|0;var $r=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+($r>>>26)|0,$r&=67108863,me=Math.imul(Qe,Wr),ie=Math.imul(Qe,Ur),ie=ie+Math.imul(Et,Wr)|0,Se=Math.imul(Et,Ur),me=me+Math.imul(sr,Ge)|0,ie=ie+Math.imul(sr,Je)|0,ie=ie+Math.imul(wr,Ge)|0,Se=Se+Math.imul(wr,Je)|0,me=me+Math.imul(Gt,$e)|0,ie=ie+Math.imul(Gt,wt)|0,ie=ie+Math.imul(Nt,$e)|0,Se=Se+Math.imul(Nt,wt)|0,me=me+Math.imul(Wt,xe)|0,ie=ie+Math.imul(Wt,Ce)|0,ie=ie+Math.imul(st,xe)|0,Se=Se+Math.imul(st,Ce)|0,me=me+Math.imul(Ze,nr)|0,ie=ie+Math.imul(Ze,ir)|0,ie=ie+Math.imul(ct,nr)|0,Se=Se+Math.imul(ct,ir)|0,me=me+Math.imul(ge,oi)|0,ie=ie+Math.imul(ge,di)|0,ie=ie+Math.imul(Fe,oi)|0,Se=Se+Math.imul(Fe,di)|0,me=me+Math.imul(Ae,fi)|0,ie=ie+Math.imul(Ae,Hi)|0,ie=ie+Math.imul(De,fi)|0,Se=Se+Math.imul(De,Hi)|0;var zi=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(zi>>>26)|0,zi&=67108863,me=Math.imul(Ut,Wr),ie=Math.imul(Ut,Ur),ie=ie+Math.imul(Ft,Wr)|0,Se=Math.imul(Ft,Ur),me=me+Math.imul(Qe,Ge)|0,ie=ie+Math.imul(Qe,Je)|0,ie=ie+Math.imul(Et,Ge)|0,Se=Se+Math.imul(Et,Je)|0,me=me+Math.imul(sr,$e)|0,ie=ie+Math.imul(sr,wt)|0,ie=ie+Math.imul(wr,$e)|0,Se=Se+Math.imul(wr,wt)|0,me=me+Math.imul(Gt,xe)|0,ie=ie+Math.imul(Gt,Ce)|0,ie=ie+Math.imul(Nt,xe)|0,Se=Se+Math.imul(Nt,Ce)|0,me=me+Math.imul(Wt,nr)|0,ie=ie+Math.imul(Wt,ir)|0,ie=ie+Math.imul(st,nr)|0,Se=Se+Math.imul(st,ir)|0,me=me+Math.imul(Ze,oi)|0,ie=ie+Math.imul(Ze,di)|0,ie=ie+Math.imul(ct,oi)|0,Se=Se+Math.imul(ct,di)|0,me=me+Math.imul(ge,fi)|0,ie=ie+Math.imul(ge,Hi)|0,ie=ie+Math.imul(Fe,fi)|0,Se=Se+Math.imul(Fe,Hi)|0,me=me+Math.imul(Ae,wn)|0,ie=ie+Math.imul(Ae,pn)|0,ie=ie+Math.imul(De,wn)|0,Se=Se+Math.imul(De,pn)|0;var Ji=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,me=Math.imul(yt,Wr),ie=Math.imul(yt,Ur),ie=ie+Math.imul(Yt,Wr)|0,Se=Math.imul(Yt,Ur),me=me+Math.imul(Ut,Ge)|0,ie=ie+Math.imul(Ut,Je)|0,ie=ie+Math.imul(Ft,Ge)|0,Se=Se+Math.imul(Ft,Je)|0,me=me+Math.imul(Qe,$e)|0,ie=ie+Math.imul(Qe,wt)|0,ie=ie+Math.imul(Et,$e)|0,Se=Se+Math.imul(Et,wt)|0,me=me+Math.imul(sr,xe)|0,ie=ie+Math.imul(sr,Ce)|0,ie=ie+Math.imul(wr,xe)|0,Se=Se+Math.imul(wr,Ce)|0,me=me+Math.imul(Gt,nr)|0,ie=ie+Math.imul(Gt,ir)|0,ie=ie+Math.imul(Nt,nr)|0,Se=Se+Math.imul(Nt,ir)|0,me=me+Math.imul(Wt,oi)|0,ie=ie+Math.imul(Wt,di)|0,ie=ie+Math.imul(st,oi)|0,Se=Se+Math.imul(st,di)|0,me=me+Math.imul(Ze,fi)|0,ie=ie+Math.imul(Ze,Hi)|0,ie=ie+Math.imul(ct,fi)|0,Se=Se+Math.imul(ct,Hi)|0,me=me+Math.imul(ge,wn)|0,ie=ie+Math.imul(ge,pn)|0,ie=ie+Math.imul(Fe,wn)|0,Se=Se+Math.imul(Fe,pn)|0,me=me+Math.imul(Ae,kn)|0,ie=ie+Math.imul(Ae,ea)|0,ie=ie+Math.imul(De,kn)|0,Se=Se+Math.imul(De,ea)|0;var en=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(en>>>26)|0,en&=67108863,me=Math.imul(Tr,Wr),ie=Math.imul(Tr,Ur),ie=ie+Math.imul(Rr,Wr)|0,Se=Math.imul(Rr,Ur),me=me+Math.imul(yt,Ge)|0,ie=ie+Math.imul(yt,Je)|0,ie=ie+Math.imul(Yt,Ge)|0,Se=Se+Math.imul(Yt,Je)|0,me=me+Math.imul(Ut,$e)|0,ie=ie+Math.imul(Ut,wt)|0,ie=ie+Math.imul(Ft,$e)|0,Se=Se+Math.imul(Ft,wt)|0,me=me+Math.imul(Qe,xe)|0,ie=ie+Math.imul(Qe,Ce)|0,ie=ie+Math.imul(Et,xe)|0,Se=Se+Math.imul(Et,Ce)|0,me=me+Math.imul(sr,nr)|0,ie=ie+Math.imul(sr,ir)|0,ie=ie+Math.imul(wr,nr)|0,Se=Se+Math.imul(wr,ir)|0,me=me+Math.imul(Gt,oi)|0,ie=ie+Math.imul(Gt,di)|0,ie=ie+Math.imul(Nt,oi)|0,Se=Se+Math.imul(Nt,di)|0,me=me+Math.imul(Wt,fi)|0,ie=ie+Math.imul(Wt,Hi)|0,ie=ie+Math.imul(st,fi)|0,Se=Se+Math.imul(st,Hi)|0,me=me+Math.imul(Ze,wn)|0,ie=ie+Math.imul(Ze,pn)|0,ie=ie+Math.imul(ct,wn)|0,Se=Se+Math.imul(ct,pn)|0,me=me+Math.imul(ge,kn)|0,ie=ie+Math.imul(ge,ea)|0,ie=ie+Math.imul(Fe,kn)|0,Se=Se+Math.imul(Fe,ea)|0,me=me+Math.imul(Ae,Vt)|0,ie=ie+Math.imul(Ae,_t)|0,ie=ie+Math.imul(De,Vt)|0,Se=Se+Math.imul(De,_t)|0;var cn=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(cn>>>26)|0,cn&=67108863,me=Math.imul(Tr,Ge),ie=Math.imul(Tr,Je),ie=ie+Math.imul(Rr,Ge)|0,Se=Math.imul(Rr,Je),me=me+Math.imul(yt,$e)|0,ie=ie+Math.imul(yt,wt)|0,ie=ie+Math.imul(Yt,$e)|0,Se=Se+Math.imul(Yt,wt)|0,me=me+Math.imul(Ut,xe)|0,ie=ie+Math.imul(Ut,Ce)|0,ie=ie+Math.imul(Ft,xe)|0,Se=Se+Math.imul(Ft,Ce)|0,me=me+Math.imul(Qe,nr)|0,ie=ie+Math.imul(Qe,ir)|0,ie=ie+Math.imul(Et,nr)|0,Se=Se+Math.imul(Et,ir)|0,me=me+Math.imul(sr,oi)|0,ie=ie+Math.imul(sr,di)|0,ie=ie+Math.imul(wr,oi)|0,Se=Se+Math.imul(wr,di)|0,me=me+Math.imul(Gt,fi)|0,ie=ie+Math.imul(Gt,Hi)|0,ie=ie+Math.imul(Nt,fi)|0,Se=Se+Math.imul(Nt,Hi)|0,me=me+Math.imul(Wt,wn)|0,ie=ie+Math.imul(Wt,pn)|0,ie=ie+Math.imul(st,wn)|0,Se=Se+Math.imul(st,pn)|0,me=me+Math.imul(Ze,kn)|0,ie=ie+Math.imul(Ze,ea)|0,ie=ie+Math.imul(ct,kn)|0,Se=Se+Math.imul(ct,ea)|0,me=me+Math.imul(ge,Vt)|0,ie=ie+Math.imul(ge,_t)|0,ie=ie+Math.imul(Fe,Vt)|0,Se=Se+Math.imul(Fe,_t)|0;var yn=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(yn>>>26)|0,yn&=67108863,me=Math.imul(Tr,$e),ie=Math.imul(Tr,wt),ie=ie+Math.imul(Rr,$e)|0,Se=Math.imul(Rr,wt),me=me+Math.imul(yt,xe)|0,ie=ie+Math.imul(yt,Ce)|0,ie=ie+Math.imul(Yt,xe)|0,Se=Se+Math.imul(Yt,Ce)|0,me=me+Math.imul(Ut,nr)|0,ie=ie+Math.imul(Ut,ir)|0,ie=ie+Math.imul(Ft,nr)|0,Se=Se+Math.imul(Ft,ir)|0,me=me+Math.imul(Qe,oi)|0,ie=ie+Math.imul(Qe,di)|0,ie=ie+Math.imul(Et,oi)|0,Se=Se+Math.imul(Et,di)|0,me=me+Math.imul(sr,fi)|0,ie=ie+Math.imul(sr,Hi)|0,ie=ie+Math.imul(wr,fi)|0,Se=Se+Math.imul(wr,Hi)|0,me=me+Math.imul(Gt,wn)|0,ie=ie+Math.imul(Gt,pn)|0,ie=ie+Math.imul(Nt,wn)|0,Se=Se+Math.imul(Nt,pn)|0,me=me+Math.imul(Wt,kn)|0,ie=ie+Math.imul(Wt,ea)|0,ie=ie+Math.imul(st,kn)|0,Se=Se+Math.imul(st,ea)|0,me=me+Math.imul(Ze,Vt)|0,ie=ie+Math.imul(Ze,_t)|0,ie=ie+Math.imul(ct,Vt)|0,Se=Se+Math.imul(ct,_t)|0;var Mn=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,me=Math.imul(Tr,xe),ie=Math.imul(Tr,Ce),ie=ie+Math.imul(Rr,xe)|0,Se=Math.imul(Rr,Ce),me=me+Math.imul(yt,nr)|0,ie=ie+Math.imul(yt,ir)|0,ie=ie+Math.imul(Yt,nr)|0,Se=Se+Math.imul(Yt,ir)|0,me=me+Math.imul(Ut,oi)|0,ie=ie+Math.imul(Ut,di)|0,ie=ie+Math.imul(Ft,oi)|0,Se=Se+Math.imul(Ft,di)|0,me=me+Math.imul(Qe,fi)|0,ie=ie+Math.imul(Qe,Hi)|0,ie=ie+Math.imul(Et,fi)|0,Se=Se+Math.imul(Et,Hi)|0,me=me+Math.imul(sr,wn)|0,ie=ie+Math.imul(sr,pn)|0,ie=ie+Math.imul(wr,wn)|0,Se=Se+Math.imul(wr,pn)|0,me=me+Math.imul(Gt,kn)|0,ie=ie+Math.imul(Gt,ea)|0,ie=ie+Math.imul(Nt,kn)|0,Se=Se+Math.imul(Nt,ea)|0,me=me+Math.imul(Wt,Vt)|0,ie=ie+Math.imul(Wt,_t)|0,ie=ie+Math.imul(st,Vt)|0,Se=Se+Math.imul(st,_t)|0;var Ba=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Ba>>>26)|0,Ba&=67108863,me=Math.imul(Tr,nr),ie=Math.imul(Tr,ir),ie=ie+Math.imul(Rr,nr)|0,Se=Math.imul(Rr,ir),me=me+Math.imul(yt,oi)|0,ie=ie+Math.imul(yt,di)|0,ie=ie+Math.imul(Yt,oi)|0,Se=Se+Math.imul(Yt,di)|0,me=me+Math.imul(Ut,fi)|0,ie=ie+Math.imul(Ut,Hi)|0,ie=ie+Math.imul(Ft,fi)|0,Se=Se+Math.imul(Ft,Hi)|0,me=me+Math.imul(Qe,wn)|0,ie=ie+Math.imul(Qe,pn)|0,ie=ie+Math.imul(Et,wn)|0,Se=Se+Math.imul(Et,pn)|0,me=me+Math.imul(sr,kn)|0,ie=ie+Math.imul(sr,ea)|0,ie=ie+Math.imul(wr,kn)|0,Se=Se+Math.imul(wr,ea)|0,me=me+Math.imul(Gt,Vt)|0,ie=ie+Math.imul(Gt,_t)|0,ie=ie+Math.imul(Nt,Vt)|0,Se=Se+Math.imul(Nt,_t)|0;var la=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(la>>>26)|0,la&=67108863,me=Math.imul(Tr,oi),ie=Math.imul(Tr,di),ie=ie+Math.imul(Rr,oi)|0,Se=Math.imul(Rr,di),me=me+Math.imul(yt,fi)|0,ie=ie+Math.imul(yt,Hi)|0,ie=ie+Math.imul(Yt,fi)|0,Se=Se+Math.imul(Yt,Hi)|0,me=me+Math.imul(Ut,wn)|0,ie=ie+Math.imul(Ut,pn)|0,ie=ie+Math.imul(Ft,wn)|0,Se=Se+Math.imul(Ft,pn)|0,me=me+Math.imul(Qe,kn)|0,ie=ie+Math.imul(Qe,ea)|0,ie=ie+Math.imul(Et,kn)|0,Se=Se+Math.imul(Et,ea)|0,me=me+Math.imul(sr,Vt)|0,ie=ie+Math.imul(sr,_t)|0,ie=ie+Math.imul(wr,Vt)|0,Se=Se+Math.imul(wr,_t)|0;var ma=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(ma>>>26)|0,ma&=67108863,me=Math.imul(Tr,fi),ie=Math.imul(Tr,Hi),ie=ie+Math.imul(Rr,fi)|0,Se=Math.imul(Rr,Hi),me=me+Math.imul(yt,wn)|0,ie=ie+Math.imul(yt,pn)|0,ie=ie+Math.imul(Yt,wn)|0,Se=Se+Math.imul(Yt,pn)|0,me=me+Math.imul(Ut,kn)|0,ie=ie+Math.imul(Ut,ea)|0,ie=ie+Math.imul(Ft,kn)|0,Se=Se+Math.imul(Ft,ea)|0,me=me+Math.imul(Qe,Vt)|0,ie=ie+Math.imul(Qe,_t)|0,ie=ie+Math.imul(Et,Vt)|0,Se=Se+Math.imul(Et,_t)|0;var Wa=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Wa>>>26)|0,Wa&=67108863,me=Math.imul(Tr,wn),ie=Math.imul(Tr,pn),ie=ie+Math.imul(Rr,wn)|0,Se=Math.imul(Rr,pn),me=me+Math.imul(yt,kn)|0,ie=ie+Math.imul(yt,ea)|0,ie=ie+Math.imul(Yt,kn)|0,Se=Se+Math.imul(Yt,ea)|0,me=me+Math.imul(Ut,Vt)|0,ie=ie+Math.imul(Ut,_t)|0,ie=ie+Math.imul(Ft,Vt)|0,Se=Se+Math.imul(Ft,_t)|0;var Fa=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Fa>>>26)|0,Fa&=67108863,me=Math.imul(Tr,kn),ie=Math.imul(Tr,ea),ie=ie+Math.imul(Rr,kn)|0,Se=Math.imul(Rr,ea),me=me+Math.imul(yt,Vt)|0,ie=ie+Math.imul(yt,_t)|0,ie=ie+Math.imul(Yt,Vt)|0,Se=Se+Math.imul(Yt,_t)|0;var Wo=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Wo>>>26)|0,Wo&=67108863,me=Math.imul(Tr,Vt),ie=Math.imul(Tr,_t),ie=ie+Math.imul(Rr,Vt)|0,Se=Math.imul(Rr,_t);var da=(ke+me|0)+((ie&8191)<<13)|0;return ke=(Se+(ie>>>13)|0)+(da>>>26)|0,da&=67108863,Me[0]=tr,Me[1]=ar,Me[2]=Er,Me[3]=Zr,Me[4]=ri,Me[5]=$r,Me[6]=zi,Me[7]=Ji,Me[8]=en,Me[9]=cn,Me[10]=yn,Me[11]=Mn,Me[12]=Ba,Me[13]=la,Me[14]=ma,Me[15]=Wa,Me[16]=Fa,Me[17]=Wo,Me[18]=da,ke!==0&&(Me[19]=ke,re.length++),re};Math.imul||(L=A);function _(H,N,j){j.negative=N.negative^H.negative,j.length=H.length+N.length;for(var re=0,oe=0,_e=0;_e>>26)|0,oe+=Me>>>26,Me&=67108863}j.words[_e]=ke,re=Me,Me=oe}return re!==0?j.words[_e]=re:j.length--,j.strip()}function k(H,N,j){var re=new M;return re.mulp(H,N,j)}f.prototype.mulTo=function(N,j){var re,oe=this.length+N.length;return this.length===10&&N.length===10?re=L(this,N,j):oe<63?re=A(this,N,j):oe<1024?re=_(this,N,j):re=k(this,N,j),re};function M(H,N){this.x=H,this.y=N}M.prototype.makeRBT=function(N){for(var j=new Array(N),re=f.prototype._countBits(N)-1,oe=0;oe>=1;return oe},M.prototype.permute=function(N,j,re,oe,_e,Me){for(var ke=0;ke>>1)_e++;return 1<<_e+1+oe},M.prototype.conjugate=function(N,j,re){if(!(re<=1))for(var oe=0;oe>>13,re[2*Me+1]=_e&8191,_e=_e>>>13;for(Me=2*j;Me>=26,j+=oe/67108864|0,j+=_e>>>26,this.words[re]=_e&67108863}return j!==0&&(this.words[re]=j,this.length++),this},f.prototype.muln=function(N){return this.clone().imuln(N)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(N){var j=E(N);if(j.length===0)return new f(1);for(var re=this,oe=0;oe=0);var j=N%26,re=(N-j)/26,oe=67108863>>>26-j<<26-j,_e;if(j!==0){var Me=0;for(_e=0;_e>>26-j}Me&&(this.words[_e]=Me,this.length++)}if(re!==0){for(_e=this.length-1;_e>=0;_e--)this.words[_e+re]=this.words[_e];for(_e=0;_e=0);var oe;j?oe=(j-j%26)/26:oe=0;var _e=N%26,Me=Math.min((N-_e)/26,this.length),ke=67108863^67108863>>>_e<<_e,me=re;if(oe-=Me,oe=Math.max(0,oe),me){for(var ie=0;ieMe)for(this.length-=Me,ie=0;ie=0&&(Se!==0||ie>=oe);ie--){var Le=this.words[ie]|0;this.words[ie]=Se<<26-_e|Le>>>_e,Se=Le&ke}return me&&Se!==0&&(me.words[me.length++]=Se),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(N,j,re){return u(this.negative===0),this.iushrn(N,j,re)},f.prototype.shln=function(N){return this.clone().ishln(N)},f.prototype.ushln=function(N){return this.clone().iushln(N)},f.prototype.shrn=function(N){return this.clone().ishrn(N)},f.prototype.ushrn=function(N){return this.clone().iushrn(N)},f.prototype.testn=function(N){u(typeof N=="number"&&N>=0);var j=N%26,re=(N-j)/26,oe=1<=0);var j=N%26,re=(N-j)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=re)return this;if(j!==0&&re++,this.length=Math.min(re,this.length),j!==0){var oe=67108863^67108863>>>j<=67108864;j++)this.words[j]-=67108864,j===this.length-1?this.words[j+1]=1:this.words[j+1]++;return this.length=Math.max(this.length,j+1),this},f.prototype.isubn=function(N){if(u(typeof N=="number"),u(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var j=0;j>26)-(me/67108864|0),this.words[_e+re]=Me&67108863}for(;_e>26,this.words[_e+re]=Me&67108863;if(ke===0)return this.strip();for(u(ke===-1),ke=0,_e=0;_e>26,this.words[_e]=Me&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(N,j){var re=this.length-N.length,oe=this.clone(),_e=N,Me=_e.words[_e.length-1]|0,ke=this._countBits(Me);re=26-ke,re!==0&&(_e=_e.ushln(re),oe.iushln(re),Me=_e.words[_e.length-1]|0);var me=oe.length-_e.length,ie;if(j!=="mod"){ie=new f(null),ie.length=me+1,ie.words=new Array(ie.length);for(var Se=0;Se=0;Ae--){var De=(oe.words[_e.length+Ae]|0)*67108864+(oe.words[_e.length+Ae-1]|0);for(De=Math.min(De/Me|0,67108863),oe._ishlnsubmul(_e,De,Ae);oe.negative!==0;)De--,oe.negative=0,oe._ishlnsubmul(_e,1,Ae),oe.isZero()||(oe.negative^=1);ie&&(ie.words[Ae]=De)}return ie&&ie.strip(),oe.strip(),j!=="div"&&re!==0&&oe.iushrn(re),{div:ie||null,mod:oe}},f.prototype.divmod=function(N,j,re){if(u(!N.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var oe,_e,Me;return this.negative!==0&&N.negative===0?(Me=this.neg().divmod(N,j),j!=="mod"&&(oe=Me.div.neg()),j!=="div"&&(_e=Me.mod.neg(),re&&_e.negative!==0&&_e.iadd(N)),{div:oe,mod:_e}):this.negative===0&&N.negative!==0?(Me=this.divmod(N.neg(),j),j!=="mod"&&(oe=Me.div.neg()),{div:oe,mod:Me.mod}):(this.negative&N.negative)!==0?(Me=this.neg().divmod(N.neg(),j),j!=="div"&&(_e=Me.mod.neg(),re&&_e.negative!==0&&_e.isub(N)),{div:Me.div,mod:_e}):N.length>this.length||this.cmp(N)<0?{div:new f(0),mod:this}:N.length===1?j==="div"?{div:this.divn(N.words[0]),mod:null}:j==="mod"?{div:null,mod:new f(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new f(this.modn(N.words[0]))}:this._wordDiv(N,j)},f.prototype.div=function(N){return this.divmod(N,"div",!1).div},f.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},f.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},f.prototype.divRound=function(N){var j=this.divmod(N);if(j.mod.isZero())return j.div;var re=j.div.negative!==0?j.mod.isub(N):j.mod,oe=N.ushrn(1),_e=N.andln(1),Me=re.cmp(oe);return Me<0||_e===1&&Me===0?j.div:j.div.negative!==0?j.div.isubn(1):j.div.iaddn(1)},f.prototype.modn=function(N){u(N<=67108863);for(var j=(1<<26)%N,re=0,oe=this.length-1;oe>=0;oe--)re=(j*re+(this.words[oe]|0))%N;return re},f.prototype.idivn=function(N){u(N<=67108863);for(var j=0,re=this.length-1;re>=0;re--){var oe=(this.words[re]|0)+j*67108864;this.words[re]=oe/N|0,j=oe%N}return this.strip()},f.prototype.divn=function(N){return this.clone().idivn(N)},f.prototype.egcd=function(N){u(N.negative===0),u(!N.isZero());var j=this,re=N.clone();j.negative!==0?j=j.umod(N):j=j.clone();for(var oe=new f(1),_e=new f(0),Me=new f(0),ke=new f(1),me=0;j.isEven()&&re.isEven();)j.iushrn(1),re.iushrn(1),++me;for(var ie=re.clone(),Se=j.clone();!j.isZero();){for(var Le=0,Ae=1;(j.words[0]&Ae)===0&&Le<26;++Le,Ae<<=1);if(Le>0)for(j.iushrn(Le);Le-- >0;)(oe.isOdd()||_e.isOdd())&&(oe.iadd(ie),_e.isub(Se)),oe.iushrn(1),_e.iushrn(1);for(var De=0,Pe=1;(re.words[0]&Pe)===0&&De<26;++De,Pe<<=1);if(De>0)for(re.iushrn(De);De-- >0;)(Me.isOdd()||ke.isOdd())&&(Me.iadd(ie),ke.isub(Se)),Me.iushrn(1),ke.iushrn(1);j.cmp(re)>=0?(j.isub(re),oe.isub(Me),_e.isub(ke)):(re.isub(j),Me.isub(oe),ke.isub(_e))}return{a:Me,b:ke,gcd:re.iushln(me)}},f.prototype._invmp=function(N){u(N.negative===0),u(!N.isZero());var j=this,re=N.clone();j.negative!==0?j=j.umod(N):j=j.clone();for(var oe=new f(1),_e=new f(0),Me=re.clone();j.cmpn(1)>0&&re.cmpn(1)>0;){for(var ke=0,me=1;(j.words[0]&me)===0&&ke<26;++ke,me<<=1);if(ke>0)for(j.iushrn(ke);ke-- >0;)oe.isOdd()&&oe.iadd(Me),oe.iushrn(1);for(var ie=0,Se=1;(re.words[0]&Se)===0&&ie<26;++ie,Se<<=1);if(ie>0)for(re.iushrn(ie);ie-- >0;)_e.isOdd()&&_e.iadd(Me),_e.iushrn(1);j.cmp(re)>=0?(j.isub(re),oe.isub(_e)):(re.isub(j),_e.isub(oe))}var Le;return j.cmpn(1)===0?Le=oe:Le=_e,Le.cmpn(0)<0&&Le.iadd(N),Le},f.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var j=this.clone(),re=N.clone();j.negative=0,re.negative=0;for(var oe=0;j.isEven()&&re.isEven();oe++)j.iushrn(1),re.iushrn(1);do{for(;j.isEven();)j.iushrn(1);for(;re.isEven();)re.iushrn(1);var _e=j.cmp(re);if(_e<0){var Me=j;j=re,re=Me}else if(_e===0||re.cmpn(1)===0)break;j.isub(re)}while(!0);return re.iushln(oe)},f.prototype.invm=function(N){return this.egcd(N).a.umod(N)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(N){return this.words[0]&N},f.prototype.bincn=function(N){u(typeof N=="number");var j=N%26,re=(N-j)/26,oe=1<>>26,ke&=67108863,this.words[Me]=ke}return _e!==0&&(this.words[Me]=_e,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(N){var j=N<0;if(this.negative!==0&&!j)return-1;if(this.negative===0&&j)return 1;this.strip();var re;if(this.length>1)re=1;else{j&&(N=-N),u(N<=67108863,"Number is too big");var oe=this.words[0]|0;re=oe===N?0:oeN.length)return 1;if(this.length=0;re--){var oe=this.words[re]|0,_e=N.words[re]|0;if(oe!==_e){oe<_e?j=-1:oe>_e&&(j=1);break}}return j},f.prototype.gtn=function(N){return this.cmpn(N)===1},f.prototype.gt=function(N){return this.cmp(N)===1},f.prototype.gten=function(N){return this.cmpn(N)>=0},f.prototype.gte=function(N){return this.cmp(N)>=0},f.prototype.ltn=function(N){return this.cmpn(N)===-1},f.prototype.lt=function(N){return this.cmp(N)===-1},f.prototype.lten=function(N){return this.cmpn(N)<=0},f.prototype.lte=function(N){return this.cmp(N)<=0},f.prototype.eqn=function(N){return this.cmpn(N)===0},f.prototype.eq=function(N){return this.cmp(N)===0},f.red=function(N){return new G(N)},f.prototype.toRed=function(N){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},f.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(N){return this.red=N,this},f.prototype.forceRed=function(N){return u(!this.red,"Already a number in reduction context"),this._forceRed(N)},f.prototype.redAdd=function(N){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},f.prototype.redIAdd=function(N){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},f.prototype.redSub=function(N){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},f.prototype.redISub=function(N){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},f.prototype.redShl=function(N){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},f.prototype.redMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},f.prototype.redIMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},f.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(N){return u(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var g={k256:null,p224:null,p192:null,p25519:null};function P(H,N){this.name=H,this.p=new f(N,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}P.prototype._tmp=function(){var N=new f(null);return N.words=new Array(Math.ceil(this.n/13)),N},P.prototype.ireduce=function(N){var j=N,re;do this.split(j,this.tmp),j=this.imulK(j),j=j.iadd(this.tmp),re=j.bitLength();while(re>this.n);var oe=re0?j.isub(this.p):j.strip!==void 0?j.strip():j._strip(),j},P.prototype.split=function(N,j){N.iushrn(this.n,0,j)},P.prototype.imulK=function(N){return N.imul(this.k)};function T(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(T,P),T.prototype.split=function(N,j){for(var re=4194303,oe=Math.min(N.length,9),_e=0;_e>>22,Me=ke}Me>>>=22,N.words[_e-10]=Me,Me===0&&N.length>10?N.length-=10:N.length-=9},T.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var j=0,re=0;re>>=26,N.words[re]=_e,j=oe}return j!==0&&(N.words[N.length++]=j),N},f._prime=function(N){if(g[N])return g[N];var j;if(N==="k256")j=new T;else if(N==="p224")j=new z;else if(N==="p192")j=new O;else if(N==="p25519")j=new V;else throw new Error("Unknown prime "+N);return g[N]=j,j};function G(H){if(typeof H=="string"){var N=f._prime(H);this.m=N.p,this.prime=N}else u(H.gtn(1),"modulus must be greater than 1"),this.m=H,this.prime=null}G.prototype._verify1=function(N){u(N.negative===0,"red works only with positives"),u(N.red,"red works only with red numbers")},G.prototype._verify2=function(N,j){u((N.negative|j.negative)===0,"red works only with positives"),u(N.red&&N.red===j.red,"red works only with red numbers")},G.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},G.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},G.prototype.add=function(N,j){this._verify2(N,j);var re=N.add(j);return re.cmp(this.m)>=0&&re.isub(this.m),re._forceRed(this)},G.prototype.iadd=function(N,j){this._verify2(N,j);var re=N.iadd(j);return re.cmp(this.m)>=0&&re.isub(this.m),re},G.prototype.sub=function(N,j){this._verify2(N,j);var re=N.sub(j);return re.cmpn(0)<0&&re.iadd(this.m),re._forceRed(this)},G.prototype.isub=function(N,j){this._verify2(N,j);var re=N.isub(j);return re.cmpn(0)<0&&re.iadd(this.m),re},G.prototype.shl=function(N,j){return this._verify1(N),this.imod(N.ushln(j))},G.prototype.imul=function(N,j){return this._verify2(N,j),this.imod(N.imul(j))},G.prototype.mul=function(N,j){return this._verify2(N,j),this.imod(N.mul(j))},G.prototype.isqr=function(N){return this.imul(N,N.clone())},G.prototype.sqr=function(N){return this.mul(N,N)},G.prototype.sqrt=function(N){if(N.isZero())return N.clone();var j=this.m.andln(3);if(u(j%2===1),j===3){var re=this.m.add(new f(1)).iushrn(2);return this.pow(N,re)}for(var oe=this.m.subn(1),_e=0;!oe.isZero()&&oe.andln(1)===0;)_e++,oe.iushrn(1);u(!oe.isZero());var Me=new f(1).toRed(this),ke=Me.redNeg(),me=this.m.subn(1).iushrn(1),ie=this.m.bitLength();for(ie=new f(2*ie*ie).toRed(this);this.pow(ie,me).cmp(ke)!==0;)ie.redIAdd(ke);for(var Se=this.pow(ie,oe),Le=this.pow(N,oe.addn(1).iushrn(1)),Ae=this.pow(N,oe),De=_e;Ae.cmp(Me)!==0;){for(var Pe=Ae,ge=0;Pe.cmp(Me)!==0;ge++)Pe=Pe.redSqr();u(ge=0;_e--){for(var Se=j.words[_e],Le=ie-1;Le>=0;Le--){var Ae=Se>>Le&1;if(Me!==oe[0]&&(Me=this.sqr(Me)),Ae===0&&ke===0){me=0;continue}ke<<=1,ke|=Ae,me++,!(me!==re&&(_e!==0||Le!==0))&&(Me=this.mul(Me,oe[ke]),me=0,ke=0)}ie=26}return Me},G.prototype.convertTo=function(N){var j=N.umod(this.m);return j===N?j.clone():j},G.prototype.convertFrom=function(N){var j=N.clone();return j.red=null,j},f.mont=function(N){return new Z(N)};function Z(H){G.call(this,H),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}c(Z,G),Z.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},Z.prototype.convertFrom=function(N){var j=this.imod(N.mul(this.rinv));return j.red=null,j},Z.prototype.imul=function(N,j){if(N.isZero()||j.isZero())return N.words[0]=0,N.length=1,N;var re=N.imul(j),oe=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_e=re.isub(oe).iushrn(this.shift),Me=_e;return _e.cmp(this.m)>=0?Me=_e.isub(this.m):_e.cmpn(0)<0&&(Me=_e.iadd(this.m)),Me._forceRed(this)},Z.prototype.mul=function(N,j){if(N.isZero()||j.isZero())return new f(0)._forceRed(this);var re=N.mul(j),oe=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_e=re.isub(oe).iushrn(this.shift),Me=_e;return _e.cmp(this.m)>=0?Me=_e.isub(this.m):_e.cmpn(0)<0&&(Me=_e.iadd(this.m)),Me._forceRed(this)},Z.prototype.invm=function(N){var j=this.imod(N._invmp(this.m).mul(this.r2));return j._forceRed(this)}}(i,this)},6204:function(i){"use strict";i.exports=a;function a(o){var s,l,u,c=o.length,f=0;for(s=0;s>>1;if(!(M<=0)){var g,P=s.mallocDouble(2*M*_),T=s.mallocInt32(_);if(_=f(C,M,P,T),_>0){if(M===1&&L)l.init(_),g=l.sweepComplete(M,A,0,_,P,T,0,_,P,T);else{var z=s.mallocDouble(2*M*k),O=s.mallocInt32(k);k=f(E,M,z,O),k>0&&(l.init(_+k),M===1?g=l.sweepBipartite(M,A,0,_,P,T,0,k,z,O):g=u(M,A,L,_,P,T,k,z,O),s.free(z),s.free(O))}s.free(P),s.free(T)}return g}}}var d;function v(C,E){d.push([C,E])}function x(C){return d=[],h(C,C,v,!0),d}function b(C,E){return d=[],h(C,E,v,!1),d}function p(C,E,A){switch(arguments.length){case 1:return x(C);case 2:return typeof E=="function"?h(C,C,E,!0):b(C,E);case 3:return h(C,E,A,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(i,a){"use strict";function o(){function u(h,d,v,x,b,p,C,E,A,L,_){for(var k=2*h,M=x,g=k*x;MA-E?u(h,d,v,x,b,p,C,E,A,L,_):c(h,d,v,x,b,p,C,E,A,L,_)}return f}function s(){function u(v,x,b,p,C,E,A,L,_,k,M){for(var g=2*v,P=p,T=g*p;Pk-_?p?u(v,x,b,C,E,A,L,_,k,M,g):c(v,x,b,C,E,A,L,_,k,M,g):p?f(v,x,b,C,E,A,L,_,k,M,g):h(v,x,b,C,E,A,L,_,k,M,g)}return d}function l(u){return u?o():s()}a.partial=l(!1),a.full=l(!0)},7150:function(i,a,o){"use strict";i.exports=H;var s=o(1888),l=o(8828),u=o(2455),c=u.partial,f=u.full,h=o(855),d=o(3545),v=o(8105),x=128,b=1<<22,p=1<<22,C=v("!(lo>=p0)&&!(p1>=hi)"),E=v("lo===p0"),A=v("lo0;){Se-=1;var De=Se*M,Pe=T[De],ge=T[De+1],Fe=T[De+2],ce=T[De+3],Ze=T[De+4],ct=T[De+5],pt=Se*g,Wt=z[pt],st=z[pt+1],lt=ct&1,Gt=!!(ct&16),Nt=_e,$t=Me,sr=me,wr=ie;if(lt&&(Nt=me,$t=ie,sr=_e,wr=Me),!(ct&2&&(Fe=A(N,Pe,ge,Fe,Nt,$t,st),ge>=Fe))&&!(ct&4&&(ge=L(N,Pe,ge,Fe,Nt,$t,Wt),ge>=Fe))){var ur=Fe-ge,Qe=Ze-ce;if(Gt){if(N*ur*(ur+Qe)v&&b[k+d]>L;--_,k-=C){for(var M=k,g=k+C,P=0;P>>1,L=2*h,_=A,k=b[L*A+d];C=z?(_=T,k=z):P>=V?(_=g,k=P):(_=O,k=V):z>=V?(_=T,k=z):V>=P?(_=g,k=P):(_=O,k=V);for(var H=L*(E-1),N=L*_,G=0;G=p0)&&!(p1>=hi)":d};function o(v){return a[v]}function s(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+g];if(z===A)if(M===T)M+=1,k+=L;else{for(var O=0;L>O;++O){var V=C[_+O];C[_+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function l(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+g];if(zO;++O){var V=C[_+O];C[_+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function u(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+P];if(z<=A)if(M===T)M+=1,k+=L;else{for(var O=0;L>O;++O){var V=C[_+O];C[_+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function c(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+P];if(z<=A)if(M===T)M+=1,k+=L;else{for(var O=0;L>O;++O){var V=C[_+O];C[_+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function f(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+g],O=C[_+P];if(z<=A&&A<=O)if(M===T)M+=1,k+=L;else{for(var V=0;L>V;++V){var G=C[_+V];C[_+V]=C[k],C[k++]=G}var Z=E[T];E[T]=E[M],E[M++]=Z}}return M}function h(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+g],O=C[_+P];if(zV;++V){var G=C[_+V];C[_+V]=C[k],C[k++]=G}var Z=E[T];E[T]=E[M],E[M++]=Z}}return M}function d(v,x,b,p,C,E,A,L){for(var _=2*v,k=_*b,M=k,g=b,P=x,T=v+x,z=b;p>z;++z,k+=_){var O=C[k+P],V=C[k+T];if(!(O>=A)&&!(L>=V))if(g===z)g+=1,M+=_;else{for(var G=0;_>G;++G){var Z=C[k+G];C[k+G]=C[M],C[M++]=Z}var H=E[z];E[z]=E[g],E[g++]=H}}return g}},4192:function(i){"use strict";i.exports=o;var a=32;function o(x,b){b<=4*a?s(0,b-1,x):v(0,b-1,x)}function s(x,b,p){for(var C=2*(x+1),E=x+1;E<=b;++E){for(var A=p[C++],L=p[C++],_=E,k=C-2;_-- >x;){var M=p[k-2],g=p[k-1];if(Mp[b+1]:!0}function d(x,b,p,C){x*=2;var E=C[x];return E>1,_=L-C,k=L+C,M=E,g=_,P=L,T=k,z=A,O=x+1,V=b-1,G=0;h(M,g,p)&&(G=M,M=g,g=G),h(T,z,p)&&(G=T,T=z,z=G),h(M,P,p)&&(G=M,M=P,P=G),h(g,P,p)&&(G=g,g=P,P=G),h(M,T,p)&&(G=M,M=T,T=G),h(P,T,p)&&(G=P,P=T,T=G),h(g,z,p)&&(G=g,g=z,z=G),h(g,P,p)&&(G=g,g=P,P=G),h(T,z,p)&&(G=T,T=z,z=G);for(var Z=p[2*g],H=p[2*g+1],N=p[2*T],j=p[2*T+1],re=2*M,oe=2*P,_e=2*z,Me=2*E,ke=2*L,me=2*A,ie=0;ie<2;++ie){var Se=p[re+ie],Le=p[oe+ie],Ae=p[_e+ie];p[Me+ie]=Se,p[ke+ie]=Le,p[me+ie]=Ae}u(_,x,p),u(k,b,p);for(var De=O;De<=V;++De)if(d(De,Z,H,p))De!==O&&l(De,O,p),++O;else if(!d(De,N,j,p))for(;;)if(d(V,N,j,p)){d(V,Z,H,p)?(c(De,O,V,p),++O,--V):(l(De,V,p),--V);break}else{if(--V>>1;u(C,Le);for(var Ae=0,De=0,ke=0;ke=c)Pe=Pe-c|0,A(v,x,De--,Pe);else if(Pe>=0)A(h,d,Ae--,Pe);else if(Pe<=-c){Pe=-Pe-c|0;for(var ge=0;ge>>1;u(C,Le);for(var Ae=0,De=0,Pe=0,ke=0;ke>1===C[2*ke+3]>>1&&(Fe=2,ke+=1),ge<0){for(var ce=-(ge>>1)-1,Ze=0;Ze>1)-1;Fe===0?A(h,d,Ae--,ce):Fe===1?A(v,x,De--,ce):Fe===2&&A(b,p,Pe--,ce)}}}function M(P,T,z,O,V,G,Z,H,N,j,re,oe){var _e=0,Me=2*P,ke=T,me=T+P,ie=1,Se=1;O?Se=c:ie=c;for(var Le=V;Le>>1;u(C,ge);for(var Fe=0,Le=0;Le=c?(Ze=!O,Ae-=c):(Ze=!!O,Ae-=1),Ze)L(h,d,Fe++,Ae);else{var ct=oe[Ae],pt=Me*Ae,Wt=re[pt+T+1],st=re[pt+T+1+P];e:for(var lt=0;lt>>1;u(C,Ae);for(var De=0,me=0;me=c)h[De++]=ie-c;else{ie-=1;var ge=re[ie],Fe=_e*ie,ce=j[Fe+T+1],Ze=j[Fe+T+1+P];e:for(var ct=0;ct=0;--ct)if(h[ct]===ie){for(var lt=ct+1;lt0;){for(var E=d.pop(),b=d.pop(),A=-1,L=-1,p=x[b],k=1;k=0||(h.flip(b,E),u(f,h,d,A,b,L),u(f,h,d,b,L,A),u(f,h,d,L,E,A),u(f,h,d,E,A,L))}}},5023:function(i,a,o){"use strict";var s=o(2478);i.exports=d;function l(v,x,b,p,C,E,A){this.cells=v,this.neighbor=x,this.flags=p,this.constraint=b,this.active=C,this.next=E,this.boundary=A}var u=l.prototype;function c(v,x){return v[0]-x[0]||v[1]-x[1]||v[2]-x[2]}u.locate=function(){var v=[0,0,0];return function(x,b,p){var C=x,E=b,A=p;return b0||A.length>0;){for(;E.length>0;){var g=E.pop();if(L[g]!==-C){L[g]=C;for(var P=_[g],T=0;T<3;++T){var z=M[3*g+T];z>=0&&L[z]===0&&(k[3*g+T]?A.push(z):(E.push(z),L[z]=C))}}}var O=A;A=E,E=O,A.length=0,C=-C}var V=h(_,L,x);return b?V.concat(p.boundary):V}},8902:function(i,a,o){"use strict";var s=o(2478),l=o(3250)[3],u=0,c=1,f=2;i.exports=A;function h(L,_,k,M,g){this.a=L,this.b=_,this.idx=k,this.lowerIds=M,this.upperIds=g}function d(L,_,k,M){this.a=L,this.b=_,this.type=k,this.idx=M}function v(L,_){var k=L.a[0]-_.a[0]||L.a[1]-_.a[1]||L.type-_.type;return k||L.type!==u&&(k=l(L.a,L.b,_.b),k)?k:L.idx-_.idx}function x(L,_){return l(L.a,L.b,_)}function b(L,_,k,M,g){for(var P=s.lt(_,M,x),T=s.gt(_,M,x),z=P;z1&&l(k[V[Z-2]],k[V[Z-1]],M)>0;)L.push([V[Z-1],V[Z-2],g]),Z-=1;V.length=Z,V.push(g);for(var G=O.upperIds,Z=G.length;Z>1&&l(k[G[Z-2]],k[G[Z-1]],M)<0;)L.push([G[Z-2],G[Z-1],g]),Z-=1;G.length=Z,G.push(g)}}function p(L,_){var k;return L.a[0]<_.a[0]?k=l(L.a,L.b,_.a):k=l(_.b,_.a,L.a),k||(_.b[0]O[0]&&g.push(new d(O,z,f,P),new d(z,O,c,P))}g.sort(v);for(var V=g[0].a[0]-(1+Math.abs(g[0].a[0]))*Math.pow(2,-52),G=[new h([V,1],[V,0],-1,[],[],[],[])],Z=[],P=0,H=g.length;P=0}}(),u.removeTriangle=function(h,d,v){var x=this.stars;c(x[h],d,v),c(x[d],v,h),c(x[v],h,d)},u.addTriangle=function(h,d,v){var x=this.stars;x[h].push(d,v),x[d].push(v,h),x[v].push(h,d)},u.opposite=function(h,d){for(var v=this.stars[d],x=1,b=v.length;x=0;--N){var Se=Z[N];j=Se[0];var Le=V[j],Ae=Le[0],De=Le[1],Pe=O[Ae],ge=O[De];if((Pe[0]-ge[0]||Pe[1]-ge[1])<0){var Fe=Ae;Ae=De,De=Fe}Le[0]=Ae;var ce=Le[1]=Se[1],Ze;for(H&&(Ze=Le[2]);N>0&&Z[N-1][0]===j;){var Se=Z[--N],ct=Se[1];H?V.push([ce,ct,Ze]):V.push([ce,ct]),ce=ct}H?V.push([ce,De,Ze]):V.push([ce,De])}return re}function _(O,V,G){for(var Z=V.length,H=new s(Z),N=[],j=0;jV[2]?1:0)}function g(O,V,G){if(O.length!==0){if(V)for(var Z=0;Z0||j.length>0}function z(O,V,G){var Z;if(G){Z=V;for(var H=new Array(V.length),N=0;NL+1)throw new Error(E+" map requires nshades to be at least size "+C.length);Array.isArray(d.alpha)?d.alpha.length!==2?_=[1,1]:_=d.alpha.slice():typeof d.alpha=="number"?_=[d.alpha,d.alpha]:_=[1,1],v=C.map(function(z){return Math.round(z.index*L)}),_[0]=Math.min(Math.max(_[0],0),1),_[1]=Math.min(Math.max(_[1],0),1);var M=C.map(function(z,O){var V=C[O].index,G=C[O].rgb.slice();return G.length===4&&G[3]>=0&&G[3]<=1||(G[3]=_[0]+(_[1]-_[0])*V),G}),g=[];for(k=0;k=0}function d(v,x,b,p){var C=s(x,b,p);if(C===0){var E=l(s(v,x,b)),A=l(s(v,x,p));if(E===A){if(E===0){var L=h(v,x,b),_=h(v,x,p);return L===_?0:L?1:-1}return 0}else{if(A===0)return E>0||h(v,x,p)?-1:1;if(E===0)return A>0||h(v,x,b)?1:-1}return l(A-E)}var k=s(v,x,b);if(k>0)return C>0&&s(v,x,p)>0?1:-1;if(k<0)return C>0||s(v,x,p)>0?1:-1;var M=s(v,x,p);return M>0||h(v,x,b)?1:-1}},8572:function(i){"use strict";i.exports=function(o){return o<0?-1:o>0?1:0}},8507:function(i){i.exports=s;var a=Math.min;function o(l,u){return l-u}function s(l,u){var c=l.length,f=l.length-u.length;if(f)return f;switch(c){case 0:return 0;case 1:return l[0]-u[0];case 2:return l[0]+l[1]-u[0]-u[1]||a(l[0],l[1])-a(u[0],u[1]);case 3:var h=l[0]+l[1],d=u[0]+u[1];if(f=h+l[2]-(d+u[2]),f)return f;var v=a(l[0],l[1]),x=a(u[0],u[1]);return a(v,l[2])-a(x,u[2])||a(v+l[2],h)-a(x+u[2],d);case 4:var b=l[0],p=l[1],C=l[2],E=l[3],A=u[0],L=u[1],_=u[2],k=u[3];return b+p+C+E-(A+L+_+k)||a(b,p,C,E)-a(A,L,_,k,A)||a(b+p,b+C,b+E,p+C,p+E,C+E)-a(A+L,A+_,A+k,L+_,L+k,_+k)||a(b+p+C,b+p+E,b+C+E,p+C+E)-a(A+L+_,A+L+k,A+_+k,L+_+k);default:for(var M=l.slice().sort(o),g=u.slice().sort(o),P=0;Po[l][0]&&(l=u);return sl?[[l],[s]]:[[s]]}},4750:function(i,a,o){"use strict";i.exports=l;var s=o(3090);function l(u){var c=s(u),f=c.length;if(f<=2)return[];for(var h=new Array(f),d=c[f-1],v=0;v=d[A]&&(E+=1);p[C]=E}}return h}function f(h,d){try{return s(h,!0)}catch(p){var v=l(h);if(v.length<=d)return[];var x=u(h,v),b=s(x,!0);return c(b,v)}}},4769:function(i){"use strict";function a(s,l,u,c,f,h){var d=6*f*f-6*f,v=3*f*f-4*f+1,x=-6*f*f+6*f,b=3*f*f-2*f;if(s.length){h||(h=new Array(s.length));for(var p=s.length-1;p>=0;--p)h[p]=d*s[p]+v*l[p]+x*u[p]+b*c[p];return h}return d*s+v*l+x*u[p]+b*c}function o(s,l,u,c,f,h){var d=f-1,v=f*f,x=d*d,b=(1+2*f)*x,p=f*x,C=v*(3-2*f),E=v*d;if(s.length){h||(h=new Array(s.length));for(var A=s.length-1;A>=0;--A)h[A]=b*s[A]+p*l[A]+C*u[A]+E*c[A];return h}return b*s+p*l+C*u+E*c}i.exports=o,i.exports.derivative=a},7642:function(i,a,o){"use strict";var s=o(8954),l=o(1682);i.exports=h;function u(d,v){this.point=d,this.index=v}function c(d,v){for(var x=d.point,b=v.point,p=x.length,C=0;C=2)return!1;G[H]=N}return!0}):V=V.filter(function(G){for(var Z=0;Z<=b;++Z){var H=P[G[Z]];if(H<0)return!1;G[Z]=H}return!0}),b&1)for(var E=0;E>>31},i.exports.exponent=function(C){var E=i.exports.hi(C);return(E<<1>>>21)-1023},i.exports.fraction=function(C){var E=i.exports.lo(C),A=i.exports.hi(C),L=A&(1<<20)-1;return A&2146435072&&(L+=1048576),[E,L]},i.exports.denormalized=function(C){var E=i.exports.hi(C);return!(E&2146435072)}},1338:function(i){"use strict";function a(l,u,c){var f=l[c]|0;if(f<=0)return[];var h=new Array(f),d;if(c===l.length-1)for(d=0;d0)return o(l|0,u);break;case"object":if(typeof l.length=="number")return a(l,u,0);break}return[]}i.exports=s},3134:function(i,a,o){"use strict";i.exports=l;var s=o(1682);function l(u,c){var f=u.length;if(typeof c!="number"){c=0;for(var h=0;h=b-1)for(var k=E.length-1,g=v-x[b-1],M=0;M=b-1)for(var _=E.length-1,k=v-x[b-1],M=0;M=0;--b)if(v[--x])return!1;return!0},f.jump=function(v){var x=this.lastT(),b=this.dimension;if(!(v0;--M)p.push(u(L[M-1],_[M-1],arguments[M])),C.push(0)}},f.push=function(v){var x=this.lastT(),b=this.dimension;if(!(v1e-6?1/A:0;this._time.push(v);for(var g=b;g>0;--g){var P=u(_[g-1],k[g-1],arguments[g]);p.push(P),C.push((P-p[E++])*M)}}},f.set=function(v){var x=this.dimension;if(!(v0;--L)b.push(u(E[L-1],A[L-1],arguments[L])),p.push(0)}},f.move=function(v){var x=this.lastT(),b=this.dimension;if(!(v<=x||arguments.length!==b+1)){var p=this._state,C=this._velocity,E=p.length-this.dimension,A=this.bounds,L=A[0],_=A[1],k=v-x,M=k>1e-6?1/k:0;this._time.push(v);for(var g=b;g>0;--g){var P=arguments[g];p.push(u(L[g-1],_[g-1],p[E++]+P)),C.push(P*M)}}},f.idle=function(v){var x=this.lastT();if(!(v=0;--M)p.push(u(L[M],_[M],p[E]+k*C[E])),C.push(0),E+=1}};function h(v){for(var x=new Array(v),b=0;b=0;--O){var g=P[O];T[O]<=0?P[O]=new s(g._color,g.key,g.value,P[O+1],g.right,g._count+1):P[O]=new s(g._color,g.key,g.value,g.left,P[O+1],g._count+1)}for(var O=P.length-1;O>1;--O){var V=P[O-1],g=P[O];if(V._color===o||g._color===o)break;var G=P[O-2];if(G.left===V)if(V.left===g){var Z=G.right;if(Z&&Z._color===a)V._color=o,G.right=u(o,Z),G._color=a,O-=1;else{if(G._color=a,G.left=V.right,V._color=o,V.right=G,P[O-2]=V,P[O-1]=g,c(G),c(V),O>=3){var H=P[O-3];H.left===G?H.left=V:H.right=V}break}}else{var Z=G.right;if(Z&&Z._color===a)V._color=o,G.right=u(o,Z),G._color=a,O-=1;else{if(V.right=g.left,G._color=a,G.left=g.right,g._color=o,g.left=V,g.right=G,P[O-2]=g,P[O-1]=V,c(G),c(V),c(g),O>=3){var H=P[O-3];H.left===G?H.left=g:H.right=g}break}}else if(V.right===g){var Z=G.left;if(Z&&Z._color===a)V._color=o,G.left=u(o,Z),G._color=a,O-=1;else{if(G._color=a,G.right=V.left,V._color=o,V.left=G,P[O-2]=V,P[O-1]=g,c(G),c(V),O>=3){var H=P[O-3];H.right===G?H.right=V:H.left=V}break}}else{var Z=G.left;if(Z&&Z._color===a)V._color=o,G.left=u(o,Z),G._color=a,O-=1;else{if(V.left=g.right,G._color=a,G.right=g.left,g._color=o,g.right=V,g.left=G,P[O-2]=g,P[O-1]=V,c(G),c(V),c(g),O>=3){var H=P[O-3];H.right===G?H.right=g:H.left=g}break}}}return P[0]._color=o,new f(M,P[0])};function d(_,k){if(k.left){var M=d(_,k.left);if(M)return M}var M=_(k.key,k.value);if(M)return M;if(k.right)return d(_,k.right)}function v(_,k,M,g){var P=k(_,g.key);if(P<=0){if(g.left){var T=v(_,k,M,g.left);if(T)return T}var T=M(g.key,g.value);if(T)return T}if(g.right)return v(_,k,M,g.right)}function x(_,k,M,g,P){var T=M(_,P.key),z=M(k,P.key),O;if(T<=0&&(P.left&&(O=x(_,k,M,g,P.left),O)||z>0&&(O=g(P.key,P.value),O)))return O;if(z>0&&P.right)return x(_,k,M,g,P.right)}h.forEach=function(k,M,g){if(this.root)switch(arguments.length){case 1:return d(k,this.root);case 2:return v(M,this._compare,k,this.root);case 3:return this._compare(M,g)>=0?void 0:x(M,g,this._compare,k,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var _=[],k=this.root;k;)_.push(k),k=k.left;return new b(this,_)}}),Object.defineProperty(h,"end",{get:function(){for(var _=[],k=this.root;k;)_.push(k),k=k.right;return new b(this,_)}}),h.at=function(_){if(_<0)return new b(this,[]);for(var k=this.root,M=[];;){if(M.push(k),k.left){if(_=k.right._count)break;k=k.right}else break}return new b(this,[])},h.ge=function(_){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(_,M.key);g.push(M),T<=0&&(P=g.length),T<=0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.gt=function(_){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(_,M.key);g.push(M),T<0&&(P=g.length),T<0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.lt=function(_){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(_,M.key);g.push(M),T>0&&(P=g.length),T<=0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.le=function(_){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(_,M.key);g.push(M),T>=0&&(P=g.length),T<0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.find=function(_){for(var k=this._compare,M=this.root,g=[];M;){var P=k(_,M.key);if(g.push(M),P===0)return new b(this,g);P<=0?M=M.left:M=M.right}return new b(this,[])},h.remove=function(_){var k=this.find(_);return k?k.remove():this},h.get=function(_){for(var k=this._compare,M=this.root;M;){var g=k(_,M.key);if(g===0)return M.value;g<=0?M=M.left:M=M.right}};function b(_,k){this.tree=_,this._stack=k}var p=b.prototype;Object.defineProperty(p,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(p,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new b(this.tree,this._stack.slice())};function C(_,k){_.key=k.key,_.value=k.value,_.left=k.left,_.right=k.right,_._color=k._color,_._count=k._count}function E(_){for(var k,M,g,P,T=_.length-1;T>=0;--T){if(k=_[T],T===0){k._color=o;return}if(M=_[T-1],M.left===k){if(g=M.right,g.right&&g.right._color===a){if(g=M.right=l(g),P=g.right=l(g.right),M.right=g.left,g.left=M,g.right=P,g._color=M._color,k._color=o,M._color=o,P._color=o,c(M),c(g),T>1){var z=_[T-2];z.left===M?z.left=g:z.right=g}_[T-1]=g;return}else if(g.left&&g.left._color===a){if(g=M.right=l(g),P=g.left=l(g.left),M.right=P.left,g.left=P.right,P.left=M,P.right=g,P._color=M._color,M._color=o,g._color=o,k._color=o,c(M),c(g),c(P),T>1){var z=_[T-2];z.left===M?z.left=P:z.right=P}_[T-1]=P;return}if(g._color===o)if(M._color===a){M._color=o,M.right=u(a,g);return}else{M.right=u(a,g);continue}else{if(g=l(g),M.right=g.left,g.left=M,g._color=M._color,M._color=a,c(M),c(g),T>1){var z=_[T-2];z.left===M?z.left=g:z.right=g}_[T-1]=g,_[T]=M,T+1<_.length?_[T+1]=k:_.push(k),T=T+2}}else{if(g=M.left,g.left&&g.left._color===a){if(g=M.left=l(g),P=g.left=l(g.left),M.left=g.right,g.right=M,g.left=P,g._color=M._color,k._color=o,M._color=o,P._color=o,c(M),c(g),T>1){var z=_[T-2];z.right===M?z.right=g:z.left=g}_[T-1]=g;return}else if(g.right&&g.right._color===a){if(g=M.left=l(g),P=g.right=l(g.right),M.left=P.right,g.right=P.left,P.right=M,P.left=g,P._color=M._color,M._color=o,g._color=o,k._color=o,c(M),c(g),c(P),T>1){var z=_[T-2];z.right===M?z.right=P:z.left=P}_[T-1]=P;return}if(g._color===o)if(M._color===a){M._color=o,M.left=u(a,g);return}else{M.left=u(a,g);continue}else{if(g=l(g),M.left=g.right,g.right=M,g._color=M._color,M._color=a,c(M),c(g),T>1){var z=_[T-2];z.right===M?z.right=g:z.left=g}_[T-1]=g,_[T]=M,T+1<_.length?_[T+1]=k:_.push(k),T=T+2}}}}p.remove=function(){var _=this._stack;if(_.length===0)return this.tree;var k=new Array(_.length),M=_[_.length-1];k[k.length-1]=new s(M._color,M.key,M.value,M.left,M.right,M._count);for(var g=_.length-2;g>=0;--g){var M=_[g];M.left===_[g+1]?k[g]=new s(M._color,M.key,M.value,k[g+1],M.right,M._count):k[g]=new s(M._color,M.key,M.value,M.left,k[g+1],M._count)}if(M=k[k.length-1],M.left&&M.right){var P=k.length;for(M=M.left;M.right;)k.push(M),M=M.right;var T=k[P-1];k.push(new s(M._color,T.key,T.value,M.left,M.right,M._count)),k[P-1].key=M.key,k[P-1].value=M.value;for(var g=k.length-2;g>=P;--g)M=k[g],k[g]=new s(M._color,M.key,M.value,M.left,k[g+1],M._count);k[P-1].left=k[P]}if(M=k[k.length-1],M._color===a){var z=k[k.length-2];z.left===M?z.left=null:z.right===M&&(z.right=null),k.pop();for(var g=0;g0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,"index",{get:function(){var _=0,k=this._stack;if(k.length===0){var M=this.tree.root;return M?M._count:0}else k[k.length-1].left&&(_=k[k.length-1].left._count);for(var g=k.length-2;g>=0;--g)k[g+1]===k[g].right&&(++_,k[g].left&&(_+=k[g].left._count));return _},enumerable:!0}),p.next=function(){var _=this._stack;if(_.length!==0){var k=_[_.length-1];if(k.right)for(k=k.right;k;)_.push(k),k=k.left;else for(_.pop();_.length>0&&_[_.length-1].right===k;)k=_[_.length-1],_.pop()}},Object.defineProperty(p,"hasNext",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].right)return!0;for(var k=_.length-1;k>0;--k)if(_[k-1].left===_[k])return!0;return!1}}),p.update=function(_){var k=this._stack;if(k.length===0)throw new Error("Can't update empty node!");var M=new Array(k.length),g=k[k.length-1];M[M.length-1]=new s(g._color,g.key,_,g.left,g.right,g._count);for(var P=k.length-2;P>=0;--P)g=k[P],g.left===k[P+1]?M[P]=new s(g._color,g.key,g.value,M[P+1],g.right,g._count):M[P]=new s(g._color,g.key,g.value,g.left,M[P+1],g._count);return new f(this.tree._compare,M[0])},p.prev=function(){var _=this._stack;if(_.length!==0){var k=_[_.length-1];if(k.left)for(k=k.left;k;)_.push(k),k=k.right;else for(_.pop();_.length>0&&_[_.length-1].left===k;)k=_[_.length-1],_.pop()}},Object.defineProperty(p,"hasPrev",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].left)return!0;for(var k=_.length-1;k>0;--k)if(_[k-1].right===_[k])return!0;return!1}});function A(_,k){return _k?1:0}function L(_){return new f(_||A,null)}},3837:function(i,a,o){"use strict";i.exports=O;var s=o(4935),l=o(501),u=o(5304),c=o(6429),f=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=ArrayBuffer,v=DataView;function x(V){return d.isView(V)&&!(V instanceof v)}function b(V){return Array.isArray(V)||x(V)}function p(V,G){return V[0]=G[0],V[1]=G[1],V[2]=G[2],V}function C(V){this.gl=V,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=u(V)}var E=C.prototype;E.update=function(V){V=V||{};function G(Ae,De,Pe){if(Pe in V){var ge=V[Pe],Fe=this[Pe],ce;(Ae?b(ge)&&b(ge[0]):b(ge))?this[Pe]=ce=[De(ge[0]),De(ge[1]),De(ge[2])]:this[Pe]=ce=[De(ge),De(ge),De(ge)];for(var Ze=0;Ze<3;++Ze)if(ce[Ze]!==Fe[Ze])return!0}return!1}var Z=G.bind(this,!1,Number),H=G.bind(this,!1,Boolean),N=G.bind(this,!1,String),j=G.bind(this,!0,function(Ae){if(b(Ae)){if(Ae.length===3)return[+Ae[0],+Ae[1],+Ae[2],1];if(Ae.length===4)return[+Ae[0],+Ae[1],+Ae[2],+Ae[3]]}return[0,0,0,1]}),re,oe=!1,_e=!1;if("bounds"in V)for(var Me=V.bounds,ke=0;ke<2;++ke)for(var me=0;me<3;++me)Me[ke][me]!==this.bounds[ke][me]&&(_e=!0),this.bounds[ke][me]=Me[ke][me];if("ticks"in V){re=V.ticks,oe=!0,this.autoTicks=!1;for(var ke=0;ke<3;++ke)this.tickSpacing[ke]=0}else Z("tickSpacing")&&(this.autoTicks=!0,_e=!0);if(this._firstInit&&("ticks"in V||"tickSpacing"in V||(this.autoTicks=!0),_e=!0,oe=!0,this._firstInit=!1),_e&&this.autoTicks&&(re=f.create(this.bounds,this.tickSpacing),oe=!0),oe){for(var ke=0;ke<3;++ke)re[ke].sort(function(De,Pe){return De.x-Pe.x});f.equal(re,this.ticks)?oe=!1:this.ticks=re}H("tickEnable"),N("tickFont")&&(oe=!0),N("tickFontStyle")&&(oe=!0),N("tickFontWeight")&&(oe=!0),N("tickFontVariant")&&(oe=!0),Z("tickSize"),Z("tickAngle"),Z("tickPad"),j("tickColor");var ie=N("labels");N("labelFont")&&(ie=!0),N("labelFontStyle")&&(ie=!0),N("labelFontWeight")&&(ie=!0),N("labelFontVariant")&&(ie=!0),H("labelEnable"),Z("labelSize"),Z("labelPad"),j("labelColor"),H("lineEnable"),H("lineMirror"),Z("lineWidth"),j("lineColor"),H("lineTickEnable"),H("lineTickMirror"),Z("lineTickLength"),Z("lineTickWidth"),j("lineTickColor"),H("gridEnable"),Z("gridWidth"),j("gridColor"),H("zeroEnable"),j("zeroLineColor"),Z("zeroLineWidth"),H("backgroundEnable"),j("backgroundColor");var Se=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],Le=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(ie||oe)&&this._text.update(this.bounds,this.labels,Se,this.ticks,Le):this._text=s(this.gl,this.bounds,this.labels,Se,this.ticks,Le),this._lines&&oe&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=l(this.gl,this.bounds,this.ticks))};function A(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var L=[new A,new A,new A];function _(V,G,Z,H,N){for(var j=V.primalOffset,re=V.primalMinor,oe=V.mirrorOffset,_e=V.mirrorMinor,Me=H[G],ke=0;ke<3;++ke)if(G!==ke){var me=j,ie=oe,Se=re,Le=_e;Me&1<0?(Se[ke]=-1,Le[ke]=0):(Se[ke]=0,Le[ke]=1)}}var k=[0,0,0],M={model:h,view:h,projection:h,_ortho:!1};E.isOpaque=function(){return!0},E.isTransparent=function(){return!1},E.drawTransparent=function(V){};var g=0,P=[0,0,0],T=[0,0,0],z=[0,0,0];E.draw=function(V){V=V||M;for(var Pe=this.gl,G=V.model||h,Z=V.view||h,H=V.projection||h,N=this.bounds,j=V._ortho||!1,re=c(G,Z,H,N,j),oe=re.cubeEdges,_e=re.axis,Me=Z[12],ke=Z[13],me=Z[14],ie=Z[15],Se=j?2:1,Le=Se*this.pixelRatio*(H[3]*Me+H[7]*ke+H[11]*me+H[15]*ie)/Pe.drawingBufferHeight,Ae=0;Ae<3;++Ae)this.lastCubeProps.cubeEdges[Ae]=oe[Ae],this.lastCubeProps.axis[Ae]=_e[Ae];for(var De=L,Ae=0;Ae<3;++Ae)_(L[Ae],Ae,this.bounds,oe,_e);for(var Pe=this.gl,ge=k,Ae=0;Ae<3;++Ae)this.backgroundEnable[Ae]?ge[Ae]=_e[Ae]:ge[Ae]=0;this._background.draw(G,Z,H,N,ge,this.backgroundColor),this._lines.bind(G,Z,H,this);for(var Ae=0;Ae<3;++Ae){var Fe=[0,0,0];_e[Ae]>0?Fe[Ae]=N[1][Ae]:Fe[Ae]=N[0][Ae];for(var ce=0;ce<2;++ce){var Ze=(Ae+1+ce)%3,ct=(Ae+1+(ce^1))%3;this.gridEnable[Ze]&&this._lines.drawGrid(Ze,ct,this.bounds,Fe,this.gridColor[Ze],this.gridWidth[Ze]*this.pixelRatio)}for(var ce=0;ce<2;++ce){var Ze=(Ae+1+ce)%3,ct=(Ae+1+(ce^1))%3;this.zeroEnable[ct]&&Math.min(N[0][ct],N[1][ct])<=0&&Math.max(N[0][ct],N[1][ct])>=0&&this._lines.drawZero(Ze,ct,this.bounds,Fe,this.zeroLineColor[ct],this.zeroLineWidth[ct]*this.pixelRatio)}}for(var Ae=0;Ae<3;++Ae){this.lineEnable[Ae]&&this._lines.drawAxisLine(Ae,this.bounds,De[Ae].primalOffset,this.lineColor[Ae],this.lineWidth[Ae]*this.pixelRatio),this.lineMirror[Ae]&&this._lines.drawAxisLine(Ae,this.bounds,De[Ae].mirrorOffset,this.lineColor[Ae],this.lineWidth[Ae]*this.pixelRatio);for(var pt=p(P,De[Ae].primalMinor),Wt=p(T,De[Ae].mirrorMinor),st=this.lineTickLength,ce=0;ce<3;++ce){var lt=Le/G[5*ce];pt[ce]*=st[ce]*lt,Wt[ce]*=st[ce]*lt}this.lineTickEnable[Ae]&&this._lines.drawAxisTicks(Ae,De[Ae].primalOffset,pt,this.lineTickColor[Ae],this.lineTickWidth[Ae]*this.pixelRatio),this.lineTickMirror[Ae]&&this._lines.drawAxisTicks(Ae,De[Ae].mirrorOffset,Wt,this.lineTickColor[Ae],this.lineTickWidth[Ae]*this.pixelRatio)}this._lines.unbind(),this._text.bind(G,Z,H,this.pixelRatio);var Gt,Nt=.5,$t,sr;function wr(Ft){sr=[0,0,0],sr[Ft]=1}function ur(Ft,bt,yt){var Yt=(Ft+1)%3,lr=(Ft+2)%3,Tr=bt[Yt],Rr=bt[lr],ei=yt[Yt],Wr=yt[lr];if(Tr>0&&Wr>0){wr(Yt);return}else if(Tr>0&&Wr<0){wr(Yt);return}else if(Tr<0&&Wr>0){wr(Yt);return}else if(Tr<0&&Wr<0){wr(Yt);return}else if(Rr>0&&ei>0){wr(lr);return}else if(Rr>0&&ei<0){wr(lr);return}else if(Rr<0&&ei>0){wr(lr);return}else if(Rr<0&&ei<0){wr(lr);return}}for(var Ae=0;Ae<3;++Ae){for(var Qe=De[Ae].primalMinor,Et=De[Ae].mirrorMinor,er=p(z,De[Ae].primalOffset),ce=0;ce<3;++ce)this.lineTickEnable[Ae]&&(er[ce]+=Le*Qe[ce]*Math.max(this.lineTickLength[ce],0)/G[5*ce]);var Ut=[0,0,0];if(Ut[Ae]=1,this.tickEnable[Ae]){this.tickAngle[Ae]===-3600?(this.tickAngle[Ae]=0,this.tickAlign[Ae]="auto"):this.tickAlign[Ae]=-1,$t=1,Gt=[this.tickAlign[Ae],Nt,$t],Gt[0]==="auto"?Gt[0]=g:Gt[0]=parseInt(""+Gt[0]),sr=[0,0,0],ur(Ae,Qe,Et);for(var ce=0;ce<3;++ce)er[ce]+=Le*Qe[ce]*this.tickPad[ce]/G[5*ce];this._text.drawTicks(Ae,this.tickSize[Ae],this.tickAngle[Ae],er,this.tickColor[Ae],Ut,sr,Gt)}if(this.labelEnable[Ae]){$t=0,sr=[0,0,0],this.labels[Ae].length>4&&(wr(Ae),$t=1),Gt=[this.labelAlign[Ae],Nt,$t],Gt[0]==="auto"?Gt[0]=g:Gt[0]=parseInt(""+Gt[0]);for(var ce=0;ce<3;++ce)er[ce]+=Le*Qe[ce]*this.labelPad[ce]/G[5*ce];er[Ae]+=.5*(N[0][Ae]+N[1][Ae]),this._text.drawLabel(Ae,this.labelSize[Ae],this.labelAngle[Ae],er,this.labelColor[Ae],[0,0,0],sr,Gt)}}this._text.unbind()},E.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function O(V,G){var Z=new C(V);return Z.update(G),Z}},5304:function(i,a,o){"use strict";i.exports=h;var s=o(2762),l=o(8116),u=o(1879).bg;function c(d,v,x,b){this.gl=d,this.buffer=v,this.vao=x,this.shader=b}var f=c.prototype;f.draw=function(d,v,x,b,p,C){for(var E=!1,A=0;A<3;++A)E=E||p[A];if(E){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:v,projection:x,bounds:b,enable:p,colors:C},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},f.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var v=[],x=[],b=0,p=0;p<3;++p)for(var C=(p+1)%3,E=(p+2)%3,A=[0,0,0],L=[0,0,0],_=-1;_<=1;_+=2){x.push(b,b+2,b+1,b+1,b+2,b+3),A[p]=_,L[p]=_;for(var k=-1;k<=1;k+=2){A[C]=k;for(var M=-1;M<=1;M+=2)A[E]=M,v.push(A[0],A[1],A[2],L[0],L[1],L[2]),b+=1}var g=C;C=E,E=g}var P=s(d,new Float32Array(v)),T=s(d,new Uint16Array(x),d.ELEMENT_ARRAY_BUFFER),z=l(d,[{buffer:P,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:P,type:d.FLOAT,size:3,offset:12,stride:24}],T),O=u(d);return O.attributes.position.location=0,O.attributes.normal.location=1,new c(d,P,z,O)}},6429:function(i,a,o){"use strict";i.exports=_;var s=o(8828),l=o(6760),u=o(5202),c=o(3250),f=new Array(16),h=new Array(8),d=new Array(8),v=new Array(3),x=[0,0,0];(function(){for(var k=0;k<8;++k)h[k]=[1,1,1,1],d[k]=[1,1,1]})();function b(k,M,g){for(var P=0;P<4;++P){k[P]=g[12+P];for(var T=0;T<3;++T)k[P]+=M[T]*g[4*T+P]}}var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function C(k){for(var M=0;M_e&&(Z|=1<_e){Z|=1<d[O][1])&&(De=O);for(var Pe=-1,O=0;O<3;++O){var ge=De^1<d[Fe][0]&&(Fe=ge)}}var ce=E;ce[0]=ce[1]=ce[2]=0,ce[s.log2(Pe^De)]=De&Pe,ce[s.log2(De^Fe)]=De&Fe;var Ze=Fe^7;Ze===Z||Ze===Ae?(Ze=Pe^7,ce[s.log2(Fe^Ze)]=Ze&Fe):ce[s.log2(Pe^Ze)]=Ze&Pe;for(var ct=A,pt=Z,j=0;j<3;++j)pt&1<{});function Vm(){}function WCe(){return this.rgb().formatHex()}function i6t(){return this.rgb().formatHex8()}function n6t(){return QCe(this).formatHsl()}function XCe(){return this.rgb().formatRgb()}function j_(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Kkt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ZCe(t):r===3?new _d(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?_D(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?_D(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Jkt.exec(e))?new _d(t[1],t[2],t[3],1):(t=$kt.exec(e))?new _d(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Qkt.exec(e))?_D(t[1],t[2],t[3],t[4]):(t=e6t.exec(e))?_D(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=t6t.exec(e))?JCe(t[1],t[2]/100,t[3]/100,1):(t=r6t.exec(e))?JCe(t[1],t[2]/100,t[3]/100,t[4]):jCe.hasOwnProperty(e)?ZCe(jCe[e]):e==="transparent"?new _d(NaN,NaN,NaN,0):null}function ZCe(e){return new _d(e>>16&255,e>>8&255,e&255,1)}function _D(e,t,r,n){return n<=0&&(e=t=r=NaN),new _d(e,t,r,n)}function FE(e){return e instanceof Vm||(e=j_(e)),e?(e=e.rgb(),new _d(e.r,e.g,e.b,e.opacity)):new _d}function SA(e,t,r,n){return arguments.length===1?FE(e):new _d(e,t,r,n==null?1:n)}function _d(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function YCe(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}`}function a6t(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}${M2((isNaN(this.opacity)?1:this.opacity)*255)}`}function KCe(){let e=bD(this.opacity);return`${e===1?"rgb(":"rgba("}${E2(this.r)}, ${E2(this.g)}, ${E2(this.b)}${e===1?")":`, ${e})`}`}function bD(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function E2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function M2(e){return e=E2(e),(e<16?"0":"")+e.toString(16)}function JCe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xg(e,t,r,n)}function QCe(e){if(e instanceof Xg)return new Xg(e.h,e.s,e.l,e.opacity);if(e instanceof Vm||(e=j_(e)),!e)return new Xg;if(e instanceof Xg)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&l<1?0:o,new Xg(o,s,l,e.opacity)}function zE(e,t,r,n){return arguments.length===1?QCe(e):new Xg(e,t,r,n==null?1:n)}function Xg(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function $Ce(e){return e=(e||0)%360,e<0?e+360:e}function xD(e){return Math.max(0,Math.min(1,e||0))}function mW(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var H_,C2,AA,DE,Um,Kkt,Jkt,$kt,Qkt,e6t,t6t,r6t,jCe,wD=gu(()=>{yD();H_=.7,C2=1/H_,AA="\\s*([+-]?\\d+)\\s*",DE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Um="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Kkt=/^#([0-9a-f]{3,8})$/,Jkt=new RegExp(`^rgb\\(${AA},${AA},${AA}\\)$`),$kt=new RegExp(`^rgb\\(${Um},${Um},${Um}\\)$`),Qkt=new RegExp(`^rgba\\(${AA},${AA},${AA},${DE}\\)$`),e6t=new RegExp(`^rgba\\(${Um},${Um},${Um},${DE}\\)$`),t6t=new RegExp(`^hsl\\(${DE},${Um},${Um}\\)$`),r6t=new RegExp(`^hsla\\(${DE},${Um},${Um},${DE}\\)$`),jCe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Zy(Vm,j_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:WCe,formatHex:WCe,formatHex8:i6t,formatHsl:n6t,formatRgb:XCe,toString:XCe});Zy(_d,SA,G_(Vm,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?H_:Math.pow(H_,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _d(E2(this.r),E2(this.g),E2(this.b),bD(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:YCe,formatHex:YCe,formatHex8:a6t,formatRgb:KCe,toString:KCe}));Zy(Xg,zE,G_(Vm,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new Xg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?H_:Math.pow(H_,e),new Xg(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new _d(mW(e>=240?e-240:e+120,i,n),mW(e,i,n),mW(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xg($Ce(this.h),xD(this.s),xD(this.l),bD(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=bD(this.opacity);return`${e===1?"hsl(":"hsla("}${$Ce(this.h)}, ${xD(this.s)*100}%, ${xD(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var TD,AD,yW=gu(()=>{TD=Math.PI/180,AD=180/Math.PI});function ake(e){if(e instanceof Gm)return new Gm(e.l,e.a,e.b,e.opacity);if(e instanceof Yy)return oke(e);e instanceof _d||(e=FE(e));var t=wW(e.r),r=wW(e.g),n=wW(e.b),i=_W((.2225045*t+.7168786*r+.0606169*n)/tke),a,o;return t===r&&r===n?a=o=i:(a=_W((.4360747*t+.3850649*r+.1430804*n)/eke),o=_W((.0139322*t+.0971045*r+.7141733*n)/rke)),new Gm(116*i-16,500*(a-i),200*(i-o),e.opacity)}function EA(e,t,r,n){return arguments.length===1?ake(e):new Gm(e,t,r,n==null?1:n)}function Gm(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function _W(e){return e>o6t?Math.pow(e,1/3):e/nke+ike}function xW(e){return e>MA?e*e*e:nke*(e-ike)}function bW(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function wW(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function s6t(e){if(e instanceof Yy)return new Yy(e.h,e.c,e.l,e.opacity);if(e instanceof Gm||(e=ake(e)),e.a===0&&e.b===0)return new Yy(NaN,0{yD();wD();yW();SD=18,eke=.96422,tke=1,rke=.82521,ike=4/29,MA=6/29,nke=3*MA*MA,o6t=MA*MA*MA;Zy(Gm,EA,G_(Vm,{brighter(e){return new Gm(this.l+SD*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Gm(this.l-SD*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=eke*xW(t),e=tke*xW(e),r=rke*xW(r),new _d(bW(3.1338561*t-1.6168667*e-.4906146*r),bW(-.9787684*t+1.9161415*e+.033454*r),bW(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));Zy(Yy,OE,G_(Vm,{brighter(e){return new Yy(this.h,this.c,this.l+SD*(e==null?1:e),this.opacity)},darker(e){return new Yy(this.h,this.c,this.l-SD*(e==null?1:e),this.opacity)},rgb(){return oke(this).rgb()}}))});function l6t(e){if(e instanceof k2)return new k2(e.h,e.s,e.l,e.opacity);e instanceof _d||(e=FE(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(cke*n+lke*t-uke*r)/(cke+lke-uke),a=n-i,o=(qE*(r-i)-AW*a)/MD,s=Math.sqrt(o*o+a*a)/(qE*i*(1-i)),l=s?Math.atan2(o,a)*AD-120:NaN;return new k2(l<0?l+360:l,s,i,e.opacity)}function CA(e,t,r,n){return arguments.length===1?l6t(e):new k2(e,t,r,n==null?1:n)}function k2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var fke,TW,AW,MD,qE,lke,uke,cke,hke=gu(()=>{yD();wD();yW();fke=-.14861,TW=1.78277,AW=-.29227,MD=-.90649,qE=1.97294,lke=qE*MD,uke=qE*TW,cke=TW*AW-MD*fke;Zy(k2,CA,G_(Vm,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new k2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?H_:Math.pow(H_,e),new k2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*TD,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new _d(255*(t+r*(fke*n+TW*i)),255*(t+r*(AW*n+MD*i)),255*(t+r*(qE*n)),this.opacity)}}))});var L2=gu(()=>{wD();ske();hke()});function SW(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function ED(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n{});function kD(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return SW((r-n/t)*t,i,a,o,s)}}var MW=gu(()=>{CD()});var kA,EW=gu(()=>{kA=e=>()=>e});function dke(e,t){return function(r){return e+r*t}}function u6t(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function W_(e,t){var r=t-e;return r?dke(e,r>180||r<-180?r-360*Math.round(r/360):r):kA(isNaN(e)?t:e)}function vke(e){return(e=+e)==1?$f:function(t,r){return r-t?u6t(t,r,e):kA(isNaN(t)?r:t)}}function $f(e,t){var r=t-e;return r?dke(e,r):kA(isNaN(e)?t:e)}var P2=gu(()=>{EW()});function pke(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o{L2();CD();MW();P2();BE=function e(t){var r=vke(t);function n(i,a){var o=r((i=SA(i)).r,(a=SA(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=$f(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n}(1);gke=pke(ED),mke=pke(kD)});function LA(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{});function yke(e,t){return(LD(t)?LA:kW)(e,t)}function kW(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{NE();PD()});function ID(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var PW=gu(()=>{});function Fp(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var UE=gu(()=>{});function RD(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=X_(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var IW=gu(()=>{NE()});function c6t(e){return function(){return e}}function f6t(e){return function(t){return e(t)+""}}function DD(e,t){var r=DW.lastIndex=RW.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=DW.exec(e))&&(i=RW.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Fp(n,i)})),r=RW.lastIndex;return r{UE();DW=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,RW=new RegExp(DW.source,"g")});function X_(e,t){var r=typeof t,n;return t==null||r==="boolean"?kA(t):(r==="number"?Fp:r==="string"?(n=j_(t))?(t=n,BE):DD:t instanceof j_?BE:t instanceof Date?ID:LD(t)?LA:Array.isArray(t)?kW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?RD:Fp)(e,t)}var NE=gu(()=>{L2();CW();LW();PW();UE();IW();FW();EW();PD()});function _ke(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var xke=gu(()=>{});function bke(e,t){var r=W_(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var wke=gu(()=>{P2()});function Tke(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var Ake=gu(()=>{});function zW(e,t,r,n,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n{Ske=180/Math.PI,FD={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function Eke(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?FD:zW(t.a,t.b,t.c,t.d,t.e,t.f)}function Cke(e){return e==null?FD:(zD||(zD=document.createElementNS("http://www.w3.org/2000/svg","g")),zD.setAttribute("transform",e),(e=zD.transform.baseVal.consolidate())?(e=e.matrix,zW(e.a,e.b,e.c,e.d,e.e,e.f)):FD)}var zD,kke=gu(()=>{Mke()});function Lke(e,t,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,d,v){if(u!==f||c!==h){var _=d.push("translate(",null,t,null,r);v.push({i:_-4,x:Fp(u,f)},{i:_-2,x:Fp(c,h)})}else(f||h)&&d.push("translate("+f+t+h+r)}function o(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:Fp(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:Fp(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,h,d,v){if(u!==f||c!==h){var _=d.push(i(d)+"scale(",null,",",null,")");v.push({i:_-4,x:Fp(u,f)},{i:_-2,x:Fp(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),o(u.rotate,c.rotate,f,h),s(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(d){for(var v=-1,_=h.length,b;++v<_;)f[(b=h[v]).i]=b.x(d);return f.join("")}}}var Pke,Ike,Rke=gu(()=>{UE();kke();Pke=Lke(Eke,"px, ","px)","deg)"),Ike=Lke(Cke,", ",")",")")});function Dke(e){return((e=Math.exp(e))+1/e)/2}function d6t(e){return((e=Math.exp(e))-1/e)/2}function v6t(e){return((e=Math.exp(2*e))-1)/(e+1)}var h6t,Fke,zke=gu(()=>{h6t=1e-12;Fke=function e(t,r,n){function i(a,o){var s=a[0],l=a[1],u=a[2],c=o[0],f=o[1],h=o[2],d=c-s,v=f-l,_=d*d+v*v,b,p;if(_{L2();P2();qke=Oke(W_),Bke=Oke($f)});function OW(e,t){var r=$f((e=EA(e)).l,(t=EA(t)).l),n=$f(e.a,t.a),i=$f(e.b,t.b),a=$f(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}var Uke=gu(()=>{L2();P2()});function Vke(e){return function(t,r){var n=e((t=OE(t)).h,(r=OE(r)).h),i=$f(t.c,r.c),a=$f(t.l,r.l),o=$f(t.opacity,r.opacity);return function(s){return t.h=n(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var Gke,Hke,jke=gu(()=>{L2();P2();Gke=Vke(W_),Hke=Vke($f)});function Wke(e){return function t(r){r=+r;function n(i,a){var o=e((i=CA(i)).h,(a=CA(a)).h),s=$f(i.s,a.s),l=$f(i.l,a.l),u=$f(i.opacity,a.opacity);return function(c){return i.h=o(c),i.s=s(c),i.l=l(Math.pow(c,r)),i.opacity=u(c),i+""}}return n.gamma=t,n}(1)}var Xke,Zke,Yke=gu(()=>{L2();P2();Xke=Wke(W_),Zke=Wke($f)});function qW(e,t){t===void 0&&(t=e,e=X_);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{NE()});function Jke(e,t){for(var r=new Array(t),n=0;n{});var I2={};uee(I2,{interpolate:()=>X_,interpolateArray:()=>yke,interpolateBasis:()=>ED,interpolateBasisClosed:()=>kD,interpolateCubehelix:()=>Xke,interpolateCubehelixLong:()=>Zke,interpolateDate:()=>ID,interpolateDiscrete:()=>_ke,interpolateHcl:()=>Gke,interpolateHclLong:()=>Hke,interpolateHsl:()=>qke,interpolateHslLong:()=>Bke,interpolateHue:()=>bke,interpolateLab:()=>OW,interpolateNumber:()=>Fp,interpolateNumberArray:()=>LA,interpolateObject:()=>RD,interpolateRgb:()=>BE,interpolateRgbBasis:()=>gke,interpolateRgbBasisClosed:()=>mke,interpolateRound:()=>Tke,interpolateString:()=>DD,interpolateTransformCss:()=>Pke,interpolateTransformSvg:()=>Ike,interpolateZoom:()=>Fke,piecewise:()=>qW,quantize:()=>Jke});var R2=gu(()=>{NE();LW();CD();MW();PW();xke();wke();UE();PD();IW();Ake();FW();Rke();zke();CW();Nke();Uke();jke();Yke();Kke();$ke()});var OD=ye((Qvr,Qke)=>{"use strict";var p6t=So(),g6t=Ca();Qke.exports=function(t,r,n,i,a){var o=r.data.data,s=o.i,l=a||o.color;if(s>=0){r.i=o.i;var u=n.marker;u.pattern?(!u.colors||!u.pattern.shape)&&(u.color=l,r.color=l):(u.color=l,r.color=l),p6t.pointStyle(t,n,i,r)}else g6t.fill(t,l)}});var BW=ye((epr,n6e)=>{"use strict";var e6e=Oa(),t6e=Ca(),r6e=Dr(),m6t=bv().resizeText,y6t=OD();function _6t(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");m6t(e,t,"sunburst"),t.each(function(r){var n=e6e.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){e6e.select(this).call(i6e,o,a,e)})})}function i6e(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=r6e.castOption(r,o,"marker.line.color")||t6e.defaultLine,l=r6e.castOption(r,o,"marker.line.width")||0;e.call(y6t,t,r,n).style("stroke-width",l).call(t6e.stroke,s).style("opacity",a?r.leaf.opacity:null)}n6e.exports={style:_6t,styleOne:i6e}});var Ky=ye(Ns=>{"use strict";var D2=Dr(),x6t=Ca(),b6t=Ag(),a6e=l_();Ns.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(n){if(Ns.getPtId(n)===t)return r=n.copy()}),r||e};Ns.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(n){for(var i=n.children||[],a=0;a0)};Ns.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};Ns.isHeader=function(e,t){return!(Ns.isLeaf(e)||e.depth===t._maxDepth-1)};function o6e(e){return e.data.data.pid}Ns.getParent=function(e,t){return Ns.findEntryWithLevel(e,o6e(t))};Ns.listPath=function(e,t){var r=e.parent;if(!r)return[];var n=t?[r.data[t]]:[r];return Ns.listPath(r,t).concat(n)};Ns.getPath=function(e){return Ns.listPath(e,"label").join("/")+"/"};Ns.formatValue=a6e.formatPieValue;Ns.formatPercent=function(e,t){var r=D2.formatPercent(e,0);return r==="0%"&&(r=a6e.formatPiePercent(e,t)),r}});var HE=ye((rpr,u6e)=>{"use strict";var PA=Oa(),s6e=qa(),A6t=ip().appendArrayPointValue,VE=vf(),l6e=Dr(),S6t=g3(),rd=Ky(),M6t=l_(),E6t=M6t.formatPieValue;u6e.exports=function(t,r,n,i,a){var o=i[0],s=o.trace,l=o.hierarchy,u=s.type==="sunburst",c=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var f=function(v){var _=n._fullLayout;if(!(n._dragging||_.hovermode===!1)){var b=n._fullData[s.index],p=v.data.data,C=p.i,E=rd.isHierarchyRoot(v),A=rd.getParent(l,v),L=rd.getValue(v),x=function(Me){return l6e.castOption(b,C,Me)},k=x("hovertemplate"),M=VE.castHoverinfo(b,_,C),g=_.separators,P;if(k||M&&M!=="none"&&M!=="skip"){var T,z;u&&(T=o.cx+v.pxmid[0]*(1-v.rInscribed),z=o.cy+v.pxmid[1]*(1-v.rInscribed)),c&&(T=v._hoverX,z=v._hoverY);var O={},V=[],G=[],Z=function(Me){return V.indexOf(Me)!==-1};M&&(V=M==="all"?b._module.attributes.hoverinfo.flags:M.split("+")),O.label=p.label,Z("label")&&O.label&&G.push(O.label),p.hasOwnProperty("v")&&(O.value=p.v,O.valueLabel=E6t(O.value,g),Z("value")&&G.push(O.valueLabel)),O.currentPath=v.currentPath=rd.getPath(v.data),Z("current path")&&!E&&G.push(O.currentPath);var H,N=[],j=function(){N.indexOf(H)===-1&&(G.push(H),N.push(H))};O.percentParent=v.percentParent=L/rd.getValue(A),O.parent=v.parentString=rd.getPtLabel(A),Z("percent parent")&&(H=rd.formatPercent(O.percentParent,g)+" of "+O.parent,j()),O.percentEntry=v.percentEntry=L/rd.getValue(r),O.entry=v.entry=rd.getPtLabel(r),Z("percent entry")&&!E&&!v.onPathbar&&(H=rd.formatPercent(O.percentEntry,g)+" of "+O.entry,j()),O.percentRoot=v.percentRoot=L/rd.getValue(l),O.root=v.root=rd.getPtLabel(l),Z("percent root")&&!E&&(H=rd.formatPercent(O.percentRoot,g)+" of "+O.root,j()),O.text=x("hovertext")||x("text"),Z("text")&&(H=O.text,l6e.isValidTextValue(H)&&G.push(H)),P=[GE(v,b,a.eventDataKeys)];var re={trace:b,y:z,_x0:v._x0,_x1:v._x1,_y0:v._y0,_y1:v._y1,text:G.join("
"),name:k||Z("name")?b.name:void 0,color:x("hoverlabel.bgcolor")||p.color,borderColor:x("hoverlabel.bordercolor"),fontFamily:x("hoverlabel.font.family"),fontSize:x("hoverlabel.font.size"),fontColor:x("hoverlabel.font.color"),fontWeight:x("hoverlabel.font.weight"),fontStyle:x("hoverlabel.font.style"),fontVariant:x("hoverlabel.font.variant"),nameLength:x("hoverlabel.namelength"),textAlign:x("hoverlabel.align"),hovertemplate:k,hovertemplateLabels:O,eventData:P};u&&(re.x0=T-v.rInscribed*v.rpx1,re.x1=T+v.rInscribed*v.rpx1,re.idealAlign=v.pxmid[0]<0?"left":"right"),c&&(re.x=T,re.idealAlign=T<0?"left":"right");var oe=[];VE.loneHover(re,{container:_._hoverlayer.node(),outerContainer:_._paper.node(),gd:n,inOut_bbox:oe}),P[0].bbox=oe[0],s._hasHoverLabel=!0}if(c){var _e=t.select("path.surface");a.styleOne(_e,v,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[GE(v,b,a.eventDataKeys)],event:PA.event})}},h=function(v){var _=n._fullLayout,b=n._fullData[s.index],p=PA.select(this).datum();if(s._hasHoverEvent&&(v.originalEvent=PA.event,n.emit("plotly_unhover",{points:[GE(p,b,a.eventDataKeys)],event:PA.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(VE.loneUnhover(_._hoverlayer.node()),s._hasHoverLabel=!1),c){var C=t.select("path.surface");a.styleOne(C,p,b,n,{hovered:!1})}},d=function(v){var _=n._fullLayout,b=n._fullData[s.index],p=u&&(rd.isHierarchyRoot(v)||rd.isLeaf(v)),C=rd.getPtId(v),E=rd.isEntry(v)?rd.findEntryWithChild(l,C):rd.findEntryWithLevel(l,C),A=rd.getPtId(E),L={points:[GE(v,b,a.eventDataKeys)],event:PA.event};p||(L.nextLevel=A);var x=S6t.triggerHandler(n,"plotly_"+s.type+"click",L);if(x!==!1&&_.hovermode&&(n._hoverdata=[GE(v,b,a.eventDataKeys)],VE.click(n,PA.event)),!p&&x!==!1&&!n._dragging&&!n._transitioning){s6e.call("_storeDirectGUIEdit",b,_._tracePreGUI[b.uid],{level:b.level});var k={data:[{level:A}],traces:[s.index]},M={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};VE.loneUnhover(_._hoverlayer.node()),s6e.call("animate",n,k,M)}};t.on("mouseover",f),t.on("mouseout",h),t.on("click",d)};function GE(e,t,r){for(var n=e.data.data,i={curveNumber:t.index,pointNumber:n.i,data:t._input,fullData:t},a=0;a{"use strict";var jE=Oa(),C6t=PE(),Zg=(R2(),ab(I2)).interpolate,c6e=So(),Tv=Dr(),k6t=ru(),v6e=bv(),f6e=v6e.recordMinTextSize,L6t=v6e.clearMinTextSize,p6e=gD(),P6t=l_().getRotationAngle,I6t=p6e.computeTransform,R6t=p6e.transformInsideText,D6t=BW().styleOne,F6t=U0().resizeText,z6t=HE(),NW=pW(),Rl=Ky();qD.plot=function(e,t,r,n){var i=e._fullLayout,a=i._sunburstlayer,o,s,l=!r,u=!i.uniformtext.mode&&Rl.hasTransition(r);if(L6t("sunburst",i),o=a.selectAll("g.trace.sunburst").data(t,function(f){return f[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),u){n&&(s=n());var c=jE.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});c.each(function(){a.selectAll("g.trace").each(function(f){h6e(e,f,this,r)})})}else o.each(function(f){h6e(e,f,this,r)}),i.uniformtext.mode&&F6t(e,i._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function h6e(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&Rl.hasTransition(n),s=jE.select(r),l=s.selectAll("g.slice"),u=t[0],c=u.trace,f=u.hierarchy,h=Rl.findEntryWithLevel(f,c.level),d=Rl.getMaxDepth(c),v=a._size,_=c.domain,b=v.w*(_.x[1]-_.x[0]),p=v.h*(_.y[1]-_.y[0]),C=.5*Math.min(b,p),E=u.cx=v.l+v.w*(_.x[1]+_.x[0])/2,A=u.cy=v.t+v.h*(1-_.y[0])-p/2;if(!h)return l.remove();var L=null,x={};o&&l.each(function(me){x[Rl.getPtId(me)]={rpx0:me.rpx0,rpx1:me.rpx1,x0:me.x0,x1:me.x1,transform:me.transform},!L&&Rl.isEntry(me)&&(L=me)});var k=O6t(h).descendants(),M=h.height+1,g=0,P=d;u.hasMultipleRoots&&Rl.isHierarchyRoot(h)&&(k=k.slice(1),M-=1,g=1,P+=1),k=k.filter(function(me){return me.y1<=P});var T=P6t(c.rotation);T&&k.forEach(function(me){me.x0+=T,me.x1+=T});var z=Math.min(M,d),O=function(me){return(me-g)/z*C},V=function(me,ie){return[me*Math.cos(ie),-me*Math.sin(ie)]},G=function(me){return Tv.pathAnnulus(me.rpx0,me.rpx1,me.x0,me.x1,E,A)},Z=function(me){return E+d6e(me)[0]*(me.transform.rCenter||0)+(me.transform.x||0)},H=function(me){return A+d6e(me)[1]*(me.transform.rCenter||0)+(me.transform.y||0)};l=l.data(k,Rl.getPtId),l.enter().append("g").classed("slice",!0),o?l.exit().transition().each(function(){var me=jE.select(this),ie=me.select("path.surface");ie.transition().attrTween("d",function(Le){var Ae=oe(Le);return function(De){return G(Ae(De))}});var Se=me.select("g.slicetext");Se.attr("opacity",0)}).remove():l.exit().remove(),l.order();var N=null;if(o&&L){var j=Rl.getPtId(L);l.each(function(me){N===null&&Rl.getPtId(me)===j&&(N=me.x1)})}var re=l;o&&(re=re.transition().each("end",function(){var me=jE.select(this);Rl.setSliceCursor(me,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),re.each(function(me){var ie=jE.select(this),Se=Tv.ensureSingle(ie,"path","surface",function(Fe){Fe.style("pointer-events",i?"none":"all")});me.rpx0=O(me.y0),me.rpx1=O(me.y1),me.xmid=(me.x0+me.x1)/2,me.pxmid=V(me.rpx1,me.xmid),me.midangle=-(me.xmid-Math.PI/2),me.startangle=-(me.x0-Math.PI/2),me.stopangle=-(me.x1-Math.PI/2),me.halfangle=.5*Math.min(Tv.angleDelta(me.x0,me.x1)||Math.PI,Math.PI),me.ring=1-me.rpx0/me.rpx1,me.rInscribed=q6t(me,c),o?Se.transition().attrTween("d",function(Fe){var ce=_e(Fe);return function(Ze){return G(ce(Ze))}}):Se.attr("d",G),ie.call(z6t,h,e,t,{eventDataKeys:NW.eventDataKeys,transitionTime:NW.CLICK_TRANSITION_TIME,transitionEasing:NW.CLICK_TRANSITION_EASING}).call(Rl.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),Se.call(D6t,me,c,e);var Le=Tv.ensureSingle(ie,"g","slicetext"),Ae=Tv.ensureSingle(Le,"text","",function(Fe){Fe.attr("data-notex",1)}),De=Tv.ensureUniformFontSize(e,Rl.determineTextFont(c,me,a.font));Ae.text(qD.formatSliceLabel(me,h,c,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(c6e.font,De).call(k6t.convertToTspans,e);var Pe=c6e.bBox(Ae.node());me.transform=R6t(Pe,me,u),me.transform.targetX=Z(me),me.transform.targetY=H(me);var ge=function(Fe,ce){var Ze=Fe.transform;return I6t(Ze,ce),Ze.fontSize=De.size,f6e(c.type,Ze,a),Tv.getTextTransform(Ze)};o?Ae.transition().attrTween("transform",function(Fe){var ce=Me(Fe);return function(Ze){return ge(ce(Ze),Pe)}}):Ae.attr("transform",ge(me,Pe))});function oe(me){var ie=Rl.getPtId(me),Se=x[ie],Le=x[Rl.getPtId(h)],Ae;if(Le){var De=(me.x1>Le.x1?2*Math.PI:0)+T;Ae=me.rpx1N?2*Math.PI:0)+T;Se={x0:Ae,x1:Ae}}else Se={rpx0:C,rpx1:C},Tv.extendFlat(Se,ke(me));else Se={rpx0:0,rpx1:0};else Se={x0:T,x1:T};return Zg(Se,Le)}function Me(me){var ie=x[Rl.getPtId(me)],Se,Le=me.transform;if(ie)Se=ie;else if(Se={rpx1:me.rpx1,transform:{textPosAngle:Le.textPosAngle,scale:0,rotate:Le.rotate,rCenter:Le.rCenter,x:Le.x,y:Le.y}},L)if(me.parent)if(N){var Ae=me.x1>N?2*Math.PI:0;Se.x0=Se.x1=Ae}else Tv.extendFlat(Se,ke(me));else Se.x0=Se.x1=T;else Se.x0=Se.x1=T;var De=Zg(Se.transform.textPosAngle,me.transform.textPosAngle),Pe=Zg(Se.rpx1,me.rpx1),ge=Zg(Se.x0,me.x0),Fe=Zg(Se.x1,me.x1),ce=Zg(Se.transform.scale,Le.scale),Ze=Zg(Se.transform.rotate,Le.rotate),ct=Le.rCenter===0?3:Se.transform.rCenter===0?1/3:1,pt=Zg(Se.transform.rCenter,Le.rCenter),Wt=function(st){return pt(Math.pow(st,ct))};return function(st){var lt=Pe(st),Gt=ge(st),Nt=Fe(st),$t=Wt(st),sr=V(lt,(Gt+Nt)/2),wr=De(st),ur={pxmid:sr,rpx1:lt,transform:{textPosAngle:wr,rCenter:$t,x:Le.x,y:Le.y}};return f6e(c.type,Le,a),{transform:{targetX:Z(ur),targetY:H(ur),scale:ce(st),rotate:Ze(st),rCenter:$t}}}}function ke(me){var ie=me.parent,Se=x[Rl.getPtId(ie)],Le={};if(Se){var Ae=ie.children,De=Ae.indexOf(me),Pe=Ae.length,ge=Zg(Se.x0,Se.x1);Le.x0=ge(De/Pe),Le.x1=ge(De/Pe)}else Le.x0=Le.x1=0;return Le}}function O6t(e){return C6t.partition().size([2*Math.PI,e.height+1])(e)}qD.formatSliceLabel=function(e,t,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=i.separators,l=n[0],u=e.data.data,c=l.hierarchy,f=Rl.isHierarchyRoot(e),h=Rl.getParent(c,e),d=Rl.getValue(e);if(!a){var v=o.split("+"),_=function(g){return v.indexOf(g)!==-1},b=[],p;if(_("label")&&u.label&&b.push(u.label),u.hasOwnProperty("v")&&_("value")&&b.push(Rl.formatValue(u.v,s)),!f){_("current path")&&b.push(Rl.getPath(e.data));var C=0;_("percent parent")&&C++,_("percent entry")&&C++,_("percent root")&&C++;var E=C>1;if(C){var A,L=function(g){p=Rl.formatPercent(A,s),E&&(p+=" of "+g),b.push(p)};_("percent parent")&&!f&&(A=d/Rl.getValue(h),L("parent")),_("percent entry")&&(A=d/Rl.getValue(t),L("entry")),_("percent root")&&(A=d/Rl.getValue(c),L("root"))}}return _("text")&&(p=Tv.castOption(r,u.i,"text"),Tv.isValidTextValue(p)&&b.push(p)),b.join("
")}var x=Tv.castOption(r,u.i,"texttemplate");if(!x)return"";var k={};u.label&&(k.label=u.label),u.hasOwnProperty("v")&&(k.value=u.v,k.valueLabel=Rl.formatValue(u.v,s)),k.currentPath=Rl.getPath(e.data),f||(k.percentParent=d/Rl.getValue(h),k.percentParentLabel=Rl.formatPercent(k.percentParent,s),k.parent=Rl.getPtLabel(h)),k.percentEntry=d/Rl.getValue(t),k.percentEntryLabel=Rl.formatPercent(k.percentEntry,s),k.entry=Rl.getPtLabel(t),k.percentRoot=d/Rl.getValue(c),k.percentRootLabel=Rl.formatPercent(k.percentRoot,s),k.root=Rl.getPtLabel(c),u.hasOwnProperty("color")&&(k.color=u.color);var M=Tv.castOption(r,u.i,"text");return(Tv.isValidTextValue(M)||M==="")&&(k.text=M),k.customdata=Tv.castOption(r,u.i,"customdata"),Tv.texttemplateString(x,k,i._d3locale,k,r._meta||{})};function q6t(e){return e.rpx0===0&&Tv.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function d6e(e){return B6t(e.rpx1,e.transform.textPosAngle)}function B6t(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var m6e=ye((npr,g6e)=>{"use strict";g6e.exports={moduleType:"trace",name:"sunburst",basePlotModule:PCe(),categories:[],animatable:!0,attributes:LE(),layoutAttributes:gW(),supplyDefaults:BCe(),supplyLayoutDefaults:UCe(),calc:RE().calc,crossTraceCalc:RE().crossTraceCalc,plot:BD().plot,style:BW().style,colorbar:$d(),meta:{}}});var _6e=ye((apr,y6e)=>{"use strict";y6e.exports=m6e()});var b6e=ye(IA=>{"use strict";var x6e=Mc();IA.name="treemap";IA.plot=function(e,t,r,n){x6e.plotBasePlot(IA.name,e,t,r,n)};IA.clean=function(e,t,r,n){x6e.cleanBasePlot(IA.name,e,t,r,n)}});var F2=ye((spr,w6e)=>{"use strict";w6e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var ND=ye((lpr,A6e)=>{"use strict";var N6t=Qo().hovertemplateAttrs,U6t=Qo().texttemplateAttrs,V6t=Tu(),G6t=kc().attributes,z2=A2(),eg=LE(),T6e=F2(),UW=Ao().extendFlat,H6t=Pd().pattern;A6e.exports={labels:eg.labels,parents:eg.parents,values:eg.values,branchvalues:eg.branchvalues,count:eg.count,level:eg.level,maxdepth:eg.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:UW({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:eg.marker.colors,pattern:H6t,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:eg.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},V6t("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:UW({},z2.textfont,{}),editType:"calc"},text:z2.text,textinfo:eg.textinfo,texttemplate:U6t({editType:"plot"},{keys:T6e.eventDataKeys.concat(["label","value"])}),hovertext:z2.hovertext,hoverinfo:eg.hoverinfo,hovertemplate:N6t({},{keys:T6e.eventDataKeys}),textfont:z2.textfont,insidetextfont:z2.insidetextfont,outsidetextfont:UW({},z2.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:z2.sort,root:eg.root,domain:G6t({name:"treemap",trace:!0,editType:"calc"})}});var VW=ye((upr,S6e)=>{"use strict";S6e.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var k6e=ye((cpr,C6e)=>{"use strict";var M6e=Dr(),j6t=ND(),W6t=Ca(),X6t=kc().defaults,Z6t=r0().handleText,Y6t=Qb().TEXTPAD,K6t=S2().handleMarkerDefaults,E6e=tc(),J6t=E6e.hasColorscale,$6t=E6e.handleDefaults;C6e.exports=function(t,r,n,i){function a(b,p){return M6e.coerce(t,r,j6t,b,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var u=a("tiling.packing");u==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var c=a("text");a("texttemplate"),r.texttemplate||a("textinfo",M6e.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f=a("pathbar.visible"),h="auto";Z6t(t,r,i,a,h,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;K6t(t,r,i,a);var v=r._hasColorscale=J6t(t,"marker","colors")||(t.marker||{}).coloraxis;v?$6t(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var _=r.textfont.size*2;a("marker.pad.t",d?_/4:_),a("marker.pad.l",_/4),a("marker.pad.r",_/4),a("marker.pad.b",d?_:_/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:W6t.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*Y6t),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),X6t(r,i,a),r._length=null}});var P6e=ye((fpr,L6e)=>{"use strict";var Q6t=Dr(),eLt=VW();L6e.exports=function(t,r){function n(i,a){return Q6t.coerce(t,r,eLt,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var HW=ye(GW=>{"use strict";var I6e=RE();GW.calc=function(e,t){return I6e.calc(e,t)};GW.crossTraceCalc=function(e){return I6e._runCrossTraceCalc("treemap",e)}});var jW=ye((dpr,R6e)=>{"use strict";R6e.exports=function e(t,r,n){var i;n.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),n.flipX&&(i=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-i),n.flipY&&(i=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-i);var a=t.children;if(a)for(var o=0;o{"use strict";var RA=PE(),tLt=jW();D6e.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.packing==="dice-slice",s=n.pad[a?"bottom":"top"],l=n.pad[i?"right":"left"],u=n.pad[i?"left":"right"],c=n.pad[a?"top":"bottom"],f;o&&(f=l,l=s,s=f,f=u,u=c,c=f);var h=RA.treemap().tile(rLt(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(l).paddingRight(u).paddingTop(s).paddingBottom(c).size(o?[r[1],r[0]]:r)(t);return(o||i||a)&&tLt(h,r,{swapXY:o,flipX:i,flipY:a}),h};function rLt(e,t){switch(e){case"squarify":return RA.treemapSquarify.ratio(t);case"binary":return RA.treemapBinary;case"dice":return RA.treemapDice;case"slice":return RA.treemapSlice;default:return RA.treemapSliceDice}}});var UD=ye((ppr,q6e)=>{"use strict";var F6e=Oa(),DA=Ca(),z6e=Dr(),XW=Ky(),iLt=bv().resizeText,nLt=OD();function aLt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");iLt(e,t,"treemap"),t.each(function(r){var n=F6e.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){F6e.select(this).call(O6e,o,a,e,{hovered:!1})})})}function O6e(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,l,u,c=o.color,f=XW.isHierarchyRoot(t),h=1;if(a)l=r._hovered.marker.line.color,u=r._hovered.marker.line.width;else if(f&&c===r.root.color)h=100,l="rgba(0,0,0,0)",u=0;else if(l=z6e.castOption(r,s,"marker.line.color")||DA.defaultLine,u=z6e.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var v=DA.combine(DA.addOpacity(r._backgroundColor,.75),c),_;if(d===!0){var b=XW.getMaxDepth(r);isFinite(b)?XW.isLeaf(t)?_=0:_=r._maxVisibleLayers-(t.data.depth-r._entryDepth):_=t.data.height+1}else _=t.data.depth-r._entryDepth,r._atRootLevel||_++;if(_>0)for(var p=0;p<_;p++){var C=.5*p/_;c=DA.combine(DA.addOpacity(v,C),c)}}}e.call(nLt,t,r,n,c).style("stroke-width",u).call(DA.stroke,l).style("opacity",h)}q6e.exports={style:aLt,styleOne:O6e}});var G6e=ye((gpr,V6e)=>{"use strict";var B6e=Oa(),VD=Dr(),N6e=So(),oLt=ru(),sLt=WW(),U6e=UD().styleOne,ZW=F2(),FA=Ky(),lLt=HE(),YW=!0;V6e.exports=function(t,r,n,i,a){var o=a.barDifY,s=a.width,l=a.height,u=a.viewX,c=a.viewY,f=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,v=a.hasTransition,_=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,p=a.makeUpdateTextInterpolator,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],x=L.trace,k=L.hierarchy,M=s/x._entryDepth,g=FA.listPath(n.data,"id"),P=sLt(k.copy(),[s,l],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(z){var O=g.indexOf(z.data.id);return O===-1?!1:(z.x0=M*O,z.x1=M*(O+1),z.y0=o,z.y1=o+l,z.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,FA.getPtId),i.enter().append("g").classed("pathbar",!0),_(i,YW,C,[s,l],f),i.order();var T=i;v&&(T=T.transition().each("end",function(){var z=B6e.select(this);FA.setSliceCursor(z,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),T.each(function(z){z._x0=u(z.x0),z._x1=u(z.x1),z._y0=c(z.y0),z._y1=c(z.y1),z._hoverX=u(z.x1-Math.min(s,l)/2),z._hoverY=c(z.y1-l/2);var O=B6e.select(this),V=VD.ensureSingle(O,"path","surface",function(N){N.style("pointer-events",E?"none":"all")});v?V.transition().attrTween("d",function(N){var j=b(N,YW,C,[s,l]);return function(re){return f(j(re))}}):V.attr("d",f),O.call(lLt,n,t,r,{styleOne:U6e,eventDataKeys:ZW.eventDataKeys,transitionTime:ZW.CLICK_TRANSITION_TIME,transitionEasing:ZW.CLICK_TRANSITION_EASING}).call(FA.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),V.call(U6e,z,x,t,{hovered:!1}),z._text=(FA.getPtLabel(z)||"").split("
").join(" ")||"";var G=VD.ensureSingle(O,"g","slicetext"),Z=VD.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),H=VD.ensureUniformFontSize(t,FA.determineTextFont(x,z,A.font,{onPathbar:!0}));Z.text(z._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(N6e.font,H).call(oLt.convertToTspans,t),z.textBB=N6e.bBox(Z.node()),z.transform=h(z,{fontSize:H.size,onPathbar:!0}),z.transform.fontSize=H.size,v?Z.transition().attrTween("transform",function(N){var j=p(N,YW,C,[s,l]);return function(re){return d(j(re))}}):Z.attr("transform",d(z))})}});var X6e=ye((mpr,W6e)=>{"use strict";var H6e=Oa(),KW=(R2(),ab(I2)).interpolate,Z_=Ky(),WE=Dr(),j6e=Qb().TEXTPAD,uLt=i2(),cLt=uLt.toMoveInsideBar,fLt=bv(),JW=fLt.recordMinTextSize,hLt=F2(),dLt=G6e();function O2(e){return Z_.isHierarchyRoot(e)?"":Z_.getPtId(e)}W6e.exports=function(t,r,n,i,a){var o=t._fullLayout,s=r[0],l=s.trace,u=l.type,c=u==="icicle",f=s.hierarchy,h=Z_.findEntryWithLevel(f,l.level),d=H6e.select(n),v=d.selectAll("g.pathbar"),_=d.selectAll("g.slice");if(!h){v.remove(),_.remove();return}var b=Z_.isHierarchyRoot(h),p=!o.uniformtext.mode&&Z_.hasTransition(i),C=Z_.getMaxDepth(l),E=function(Qe){return Qe.data.depth-h.data.depth-1?k+P:-(g+P):0,z={x0:M,x1:M,y0:T,y1:T+g},O=function(Qe,Et,er){var Ut=l.tiling.pad,Ft=function(lr){return lr-Ut<=Et.x0},bt=function(lr){return lr+Ut>=Et.x1},yt=function(lr){return lr-Ut<=Et.y0},Yt=function(lr){return lr+Ut>=Et.y1};return Qe.x0===Et.x0&&Qe.x1===Et.x1&&Qe.y0===Et.y0&&Qe.y1===Et.y1?{x0:Qe.x0,x1:Qe.x1,y0:Qe.y0,y1:Qe.y1}:{x0:Ft(Qe.x0-Ut)?0:bt(Qe.x0-Ut)?er[0]:Qe.x0,x1:Ft(Qe.x1+Ut)?0:bt(Qe.x1+Ut)?er[0]:Qe.x1,y0:yt(Qe.y0-Ut)?0:Yt(Qe.y0-Ut)?er[1]:Qe.y0,y1:yt(Qe.y1+Ut)?0:Yt(Qe.y1+Ut)?er[1]:Qe.y1}},V=null,G={},Z={},H=null,N=function(Qe,Et){return Et?G[O2(Qe)]:Z[O2(Qe)]},j=function(Qe,Et,er,Ut){if(Et)return G[O2(f)]||z;var Ft=Z[l.level]||er;return E(Qe)?O(Qe,Ft,Ut):{}};s.hasMultipleRoots&&b&&C++,l._maxDepth=C,l._backgroundColor=o.paper_bgcolor,l._entryDepth=h.data.depth,l._atRootLevel=b;var re=-x/2+A.l+A.w*(L.x[1]+L.x[0])/2,oe=-k/2+A.t+A.h*(1-(L.y[1]+L.y[0])/2),_e=function(Qe){return re+Qe},Me=function(Qe){return oe+Qe},ke=Me(0),me=_e(0),ie=function(Qe){return me+Qe},Se=function(Qe){return ke+Qe};function Le(Qe,Et){return Qe+","+Et}var Ae=ie(0),De=function(Qe){Qe.x=Math.max(Ae,Qe.x)},Pe=l.pathbar.edgeshape,ge=function(Qe){var Et=ie(Math.max(Math.min(Qe.x0,Qe.x0),0)),er=ie(Math.min(Math.max(Qe.x1,Qe.x1),M)),Ut=Se(Qe.y0),Ft=Se(Qe.y1),bt=g/2,yt={},Yt={};yt.x=Et,Yt.x=er,yt.y=Yt.y=(Ut+Ft)/2;var lr={x:Et,y:Ut},Tr={x:er,y:Ut},Rr={x:er,y:Ft},ei={x:Et,y:Ft};return Pe===">"?(lr.x-=bt,Tr.x-=bt,Rr.x-=bt,ei.x-=bt):Pe==="/"?(Rr.x-=bt,ei.x-=bt,yt.x-=bt/2,Yt.x-=bt/2):Pe==="\\"?(lr.x-=bt,Tr.x-=bt,yt.x-=bt/2,Yt.x-=bt/2):Pe==="<"&&(yt.x-=bt,Yt.x-=bt),De(lr),De(ei),De(yt),De(Tr),De(Rr),De(Yt),"M"+Le(lr.x,lr.y)+"L"+Le(Tr.x,Tr.y)+"L"+Le(Yt.x,Yt.y)+"L"+Le(Rr.x,Rr.y)+"L"+Le(ei.x,ei.y)+"L"+Le(yt.x,yt.y)+"Z"},Fe=l[c?"tiling":"marker"].pad,ce=function(Qe){return l.textposition.indexOf(Qe)!==-1},Ze=ce("top"),ct=ce("left"),pt=ce("right"),Wt=ce("bottom"),st=function(Qe){var Et=_e(Qe.x0),er=_e(Qe.x1),Ut=Me(Qe.y0),Ft=Me(Qe.y1),bt=er-Et,yt=Ft-Ut;if(!bt||!yt)return"";var Yt=l.marker.cornerradius||0,lr=Math.min(Yt,bt/2,yt/2);lr&&Qe.data&&Qe.data.data&&Qe.data.data.label&&(Ze&&(lr=Math.min(lr,Fe.t)),ct&&(lr=Math.min(lr,Fe.l)),pt&&(lr=Math.min(lr,Fe.r)),Wt&&(lr=Math.min(lr,Fe.b)));var Tr=function(Rr,ei){return lr?"a"+Le(lr,lr)+" 0 0 1 "+Le(Rr,ei):""};return"M"+Le(Et,Ut+lr)+Tr(lr,-lr)+"L"+Le(er-lr,Ut)+Tr(lr,lr)+"L"+Le(er,Ft-lr)+Tr(-lr,lr)+"L"+Le(Et+lr,Ft)+Tr(-lr,-lr)+"Z"},lt=function(Qe,Et){var er=Qe.x0,Ut=Qe.x1,Ft=Qe.y0,bt=Qe.y1,yt=Qe.textBB,Yt=Ze||Et.isHeader&&!Wt,lr=Yt?"start":Wt?"end":"middle",Tr=ce("right"),Rr=ce("left")||Et.onPathbar,ei=Rr?-1:Tr?1:0;if(Et.isHeader){if(er+=(c?Fe:Fe.l)-j6e,Ut-=(c?Fe:Fe.r)-j6e,er>=Ut){var Wr=(er+Ut)/2;er=Wr,Ut=Wr}var Ur;Wt?(Ur=bt-(c?Fe:Fe.b),Ft{"use strict";var vLt=Oa(),pLt=Ky(),gLt=bv(),mLt=gLt.clearMinTextSize,yLt=U0().resizeText,Z6e=X6e();Y6e.exports=function(t,r,n,i,a){var o=a.type,s=a.drawDescendants,l=t._fullLayout,u=l["_"+o+"layer"],c,f,h=!n;if(mLt(o,l),c=u.selectAll("g.trace."+o).data(r,function(v){return v[0].trace.uid}),c.enter().append("g").classed("trace",!0).classed(o,!0),c.order(),!l.uniformtext.mode&&pLt.hasTransition(n)){i&&(f=i());var d=vLt.transition().duration(n.duration).ease(n.easing).each("end",function(){f&&f()}).each("interrupt",function(){f&&f()});d.each(function(){u.selectAll("g.trace").each(function(v){Z6e(t,v,this,n,s)})})}else c.each(function(v){Z6e(t,v,this,n,s)}),l.uniformtext.mode&&yLt(t,u.selectAll(".trace"),o);h&&c.exit().remove()}});var eLe=ye((_pr,Q6e)=>{"use strict";var K6e=Oa(),GD=Dr(),J6e=So(),_Lt=ru(),xLt=WW(),$6e=UD().styleOne,QW=F2(),Y_=Ky(),bLt=HE(),wLt=BD().formatSliceLabel,eX=!1;Q6e.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,_=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],x=L.trace,k=x.textposition.indexOf("left")!==-1,M=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,P=!g&&!x.marker.pad.t||g&&!x.marker.pad.b,T=xLt(n,[o,s],{packing:x.tiling.packing,squarifyratio:x.tiling.squarifyratio,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,pad:{inner:x.tiling.pad,top:x.marker.pad.t,left:x.marker.pad.l,right:x.marker.pad.r,bottom:x.marker.pad.b}}),z=T.descendants(),O=1/0,V=-1/0;z.forEach(function(j){var re=j.depth;re>=x._maxDepth?(j.x0=j.x1=(j.x0+j.x1)/2,j.y0=j.y1=(j.y0+j.y1)/2):(O=Math.min(O,re),V=Math.max(V,re))}),i=i.data(z,Y_.getPtId),x._maxVisibleLayers=isFinite(V)?V-O+1:0,i.enter().append("g").classed("slice",!0),v(i,eX,C,[o,s],c),i.order();var G=null;if(d&&p){var Z=Y_.getPtId(p);i.each(function(j){G===null&&Y_.getPtId(j)===Z&&(G={x0:j.x0,x1:j.x1,y0:j.y0,y1:j.y1})})}var H=function(){return G||{x0:0,x1:o,y0:0,y1:s}},N=i;return d&&(N=N.transition().each("end",function(){var j=K6e.select(this);Y_.setSliceCursor(j,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(j){var re=Y_.isHeader(j,x);j._x0=l(j.x0),j._x1=l(j.x1),j._y0=u(j.y0),j._y1=u(j.y1),j._hoverX=l(j.x1-x.marker.pad.r),j._hoverY=u(g?j.y1-x.marker.pad.b/2:j.y0+x.marker.pad.t/2);var oe=K6e.select(this),_e=GD.ensureSingle(oe,"path","surface",function(Le){Le.style("pointer-events",E?"none":"all")});d?_e.transition().attrTween("d",function(Le){var Ae=_(Le,eX,H(),[o,s]);return function(De){return c(Ae(De))}}):_e.attr("d",c),oe.call(bLt,n,t,r,{styleOne:$6e,eventDataKeys:QW.eventDataKeys,transitionTime:QW.CLICK_TRANSITION_TIME,transitionEasing:QW.CLICK_TRANSITION_EASING}).call(Y_.setSliceCursor,t,{isTransitioning:t._transitioning}),_e.call($6e,j,x,t,{hovered:!1}),j.x0===j.x1||j.y0===j.y1?j._text="":re?j._text=P?"":Y_.getPtLabel(j)||"":j._text=wLt(j,n,x,r,A)||"";var Me=GD.ensureSingle(oe,"g","slicetext"),ke=GD.ensureSingle(Me,"text","",function(Le){Le.attr("data-notex",1)}),me=GD.ensureUniformFontSize(t,Y_.determineTextFont(x,j,A.font)),ie=j._text||" ",Se=re&&ie.indexOf("
")===-1;ke.text(ie).classed("slicetext",!0).attr("text-anchor",M?"end":k||Se?"start":"middle").call(J6e.font,me).call(_Lt.convertToTspans,t),j.textBB=J6e.bBox(ke.node()),j.transform=f(j,{fontSize:me.size,isHeader:re}),j.transform.fontSize=me.size,d?ke.transition().attrTween("transform",function(Le){var Ae=b(Le,eX,H(),[o,s]);return function(De){return h(Ae(De))}}):ke.attr("transform",h(j))}),G}});var rLe=ye((xpr,tLe)=>{"use strict";var TLt=$W(),ALt=eLe();tLe.exports=function(t,r,n,i){return TLt(t,r,n,i,{type:"treemap",drawDescendants:ALt})}});var nLe=ye((bpr,iLe)=>{"use strict";iLe.exports={moduleType:"trace",name:"treemap",basePlotModule:b6e(),categories:[],animatable:!0,attributes:ND(),layoutAttributes:VW(),supplyDefaults:k6e(),supplyLayoutDefaults:P6e(),calc:HW().calc,crossTraceCalc:HW().crossTraceCalc,plot:rLe(),style:UD().style,colorbar:$d(),meta:{}}});var oLe=ye((wpr,aLe)=>{"use strict";aLe.exports=nLe()});var lLe=ye(zA=>{"use strict";var sLe=Mc();zA.name="icicle";zA.plot=function(e,t,r,n){sLe.plotBasePlot(zA.name,e,t,r,n)};zA.clean=function(e,t,r,n){sLe.cleanBasePlot(zA.name,e,t,r,n)}});var tX=ye((Apr,cLe)=>{"use strict";var SLt=Qo().hovertemplateAttrs,MLt=Qo().texttemplateAttrs,ELt=Tu(),CLt=kc().attributes,XE=A2(),o0=LE(),HD=ND(),uLe=F2(),kLt=Ao().extendFlat,LLt=Pd().pattern;cLe.exports={labels:o0.labels,parents:o0.parents,values:o0.values,branchvalues:o0.branchvalues,count:o0.count,level:o0.level,maxdepth:o0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:HD.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:kLt({colors:o0.marker.colors,line:o0.marker.line,pattern:LLt,editType:"calc"},ELt("marker",{colorAttr:"colors",anim:!1})),leaf:o0.leaf,pathbar:HD.pathbar,text:XE.text,textinfo:o0.textinfo,texttemplate:MLt({editType:"plot"},{keys:uLe.eventDataKeys.concat(["label","value"])}),hovertext:XE.hovertext,hoverinfo:o0.hoverinfo,hovertemplate:SLt({},{keys:uLe.eventDataKeys}),textfont:XE.textfont,insidetextfont:XE.insidetextfont,outsidetextfont:HD.outsidetextfont,textposition:HD.textposition,sort:XE.sort,root:o0.root,domain:CLt({name:"icicle",trace:!0,editType:"calc"})}});var rX=ye((Spr,fLe)=>{"use strict";fLe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var pLe=ye((Mpr,vLe)=>{"use strict";var hLe=Dr(),PLt=tX(),ILt=Ca(),RLt=kc().defaults,DLt=r0().handleText,FLt=Qb().TEXTPAD,zLt=S2().handleMarkerDefaults,dLe=tc(),OLt=dLe.hasColorscale,qLt=dLe.handleDefaults;vLe.exports=function(t,r,n,i){function a(d,v){return hLe.coerce(t,r,PLt,d,v)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var u=a("text");a("texttemplate"),r.texttemplate||a("textinfo",hLe.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate");var c=a("pathbar.visible"),f="auto";DLt(t,r,i,a,f,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),zLt(t,r,i,a);var h=r._hasColorscale=OLt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&qLt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:ILt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*FLt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),RLt(r,i,a),r._length=null}});var mLe=ye((Epr,gLe)=>{"use strict";var BLt=Dr(),NLt=rX();gLe.exports=function(t,r){function n(i,a){return BLt.coerce(t,r,NLt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var nX=ye(iX=>{"use strict";var yLe=RE();iX.calc=function(e,t){return yLe.calc(e,t)};iX.crossTraceCalc=function(e){return yLe._runCrossTraceCalc("icicle",e)}});var xLe=ye((kpr,_Le)=>{"use strict";var ULt=PE(),VLt=jW();_Le.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.orientation==="h",s=n.maxDepth,l=r[0],u=r[1];s&&(l=(t.height+1)*r[0]/Math.min(t.height+1,s),u=(t.height+1)*r[1]/Math.min(t.height+1,s));var c=ULt.partition().padding(n.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||i||a)&&VLt(c,r,{swapXY:o,flipX:i,flipY:a}),c}});var aX=ye((Lpr,SLe)=>{"use strict";var bLe=Oa(),wLe=Ca(),TLe=Dr(),GLt=bv().resizeText,HLt=OD();function jLt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");GLt(e,t,"icicle"),t.each(function(r){var n=bLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){bLe.select(this).call(ALe,o,a,e)})})}function ALe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=TLe.castOption(r,o,"marker.line.color")||wLe.defaultLine,l=TLe.castOption(r,o,"marker.line.width")||0;e.call(HLt,t,r,n).style("stroke-width",l).call(wLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}SLe.exports={style:jLt,styleOne:ALe}});var LLe=ye((Ppr,kLe)=>{"use strict";var MLe=Oa(),jD=Dr(),ELe=So(),WLt=ru(),XLt=xLe(),CLe=aX().styleOne,oX=F2(),OA=Ky(),ZLt=HE(),YLt=BD().formatSliceLabel,sX=!1;kLe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,_=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],x=L.trace,k=x.textposition.indexOf("left")!==-1,M=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,P=XLt(n,[o,s],{flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,orientation:x.tiling.orientation,pad:{inner:x.tiling.pad},maxDepth:x._maxDepth}),T=P.descendants(),z=1/0,O=-1/0;T.forEach(function(N){var j=N.depth;j>=x._maxDepth?(N.x0=N.x1=(N.x0+N.x1)/2,N.y0=N.y1=(N.y0+N.y1)/2):(z=Math.min(z,j),O=Math.max(O,j))}),i=i.data(T,OA.getPtId),x._maxVisibleLayers=isFinite(O)?O-z+1:0,i.enter().append("g").classed("slice",!0),v(i,sX,C,[o,s],c),i.order();var V=null;if(d&&p){var G=OA.getPtId(p);i.each(function(N){V===null&&OA.getPtId(N)===G&&(V={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var Z=function(){return V||{x0:0,x1:o,y0:0,y1:s}},H=i;return d&&(H=H.transition().each("end",function(){var N=MLe.select(this);OA.setSliceCursor(N,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),H.each(function(N){N._x0=l(N.x0),N._x1=l(N.x1),N._y0=u(N.y0),N._y1=u(N.y1),N._hoverX=l(N.x1-x.tiling.pad),N._hoverY=u(g?N.y1-x.tiling.pad/2:N.y0+x.tiling.pad/2);var j=MLe.select(this),re=jD.ensureSingle(j,"path","surface",function(ke){ke.style("pointer-events",E?"none":"all")});d?re.transition().attrTween("d",function(ke){var me=_(ke,sX,Z(),[o,s],{orientation:x.tiling.orientation,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1});return function(ie){return c(me(ie))}}):re.attr("d",c),j.call(ZLt,n,t,r,{styleOne:CLe,eventDataKeys:oX.eventDataKeys,transitionTime:oX.CLICK_TRANSITION_TIME,transitionEasing:oX.CLICK_TRANSITION_EASING}).call(OA.setSliceCursor,t,{isTransitioning:t._transitioning}),re.call(CLe,N,x,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=YLt(N,n,x,r,A)||"";var oe=jD.ensureSingle(j,"g","slicetext"),_e=jD.ensureSingle(oe,"text","",function(ke){ke.attr("data-notex",1)}),Me=jD.ensureUniformFontSize(t,OA.determineTextFont(x,N,A.font));_e.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",M?"end":k?"start":"middle").call(ELe.font,Me).call(WLt.convertToTspans,t),N.textBB=ELe.bBox(_e.node()),N.transform=f(N,{fontSize:Me.size}),N.transform.fontSize=Me.size,d?_e.transition().attrTween("transform",function(ke){var me=b(ke,sX,Z(),[o,s]);return function(ie){return h(me(ie))}}):_e.attr("transform",h(N))}),V}});var ILe=ye((Ipr,PLe)=>{"use strict";var KLt=$W(),JLt=LLe();PLe.exports=function(t,r,n,i){return KLt(t,r,n,i,{type:"icicle",drawDescendants:JLt})}});var DLe=ye((Rpr,RLe)=>{"use strict";RLe.exports={moduleType:"trace",name:"icicle",basePlotModule:lLe(),categories:[],animatable:!0,attributes:tX(),layoutAttributes:rX(),supplyDefaults:pLe(),supplyLayoutDefaults:mLe(),calc:nX().calc,crossTraceCalc:nX().crossTraceCalc,plot:ILe(),style:aX().style,colorbar:$d(),meta:{}}});var zLe=ye((Dpr,FLe)=>{"use strict";FLe.exports=DLe()});var qLe=ye(qA=>{"use strict";var OLe=Mc();qA.name="funnelarea";qA.plot=function(e,t,r,n){OLe.plotBasePlot(qA.name,e,t,r,n)};qA.clean=function(e,t,r,n){OLe.cleanBasePlot(qA.name,e,t,r,n)}});var lX=ye((zpr,BLe)=>{"use strict";var iv=A2(),$Lt=Gl(),QLt=kc().attributes,ePt=Qo().hovertemplateAttrs,tPt=Qo().texttemplateAttrs,q2=Ao().extendFlat;BLe.exports={labels:iv.labels,label0:iv.label0,dlabel:iv.dlabel,values:iv.values,marker:{colors:iv.marker.colors,line:{color:q2({},iv.marker.line.color,{dflt:null}),width:q2({},iv.marker.line.width,{dflt:1}),editType:"calc"},pattern:iv.marker.pattern,editType:"calc"},text:iv.text,hovertext:iv.hovertext,scalegroup:q2({},iv.scalegroup,{}),textinfo:q2({},iv.textinfo,{flags:["label","text","value","percent"]}),texttemplate:tPt({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:q2({},$Lt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:ePt({},{keys:["label","color","value","text","percent"]}),textposition:q2({},iv.textposition,{values:["inside","none"],dflt:"inside"}),textfont:iv.textfont,insidetextfont:iv.insidetextfont,title:{text:iv.title.text,font:iv.title.font,position:q2({},iv.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:QLt({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var uX=ye((Opr,NLe)=>{"use strict";var rPt=hD().hiddenlabels;NLe.exports={hiddenlabels:rPt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var GLe=ye((qpr,VLe)=>{"use strict";var ULe=Dr(),iPt=lX(),nPt=kc().defaults,aPt=r0().handleText,oPt=S2().handleLabelsAndValues,sPt=S2().handleMarkerDefaults;VLe.exports=function(t,r,n,i){function a(_,b){return ULe.coerce(t,r,iPt,_,b)}var o=a("labels"),s=a("values"),l=oPt(o,s),u=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!u){r.visible=!1;return}r._length=u,sPt(t,r,i,a),a("scalegroup");var c=a("text"),f=a("texttemplate"),h;if(f||(h=a("textinfo",Array.isArray(c)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),f||h&&h!=="none"){var d=a("textposition");aPt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");nPt(r,i,a);var v=a("title.text");v&&(a("title.position"),ULe.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var jLe=ye((Bpr,HLe)=>{"use strict";var lPt=Dr(),uPt=uX();HLe.exports=function(t,r){function n(i,a){return lPt.coerce(t,r,uPt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var cX=ye((Npr,XLe)=>{"use strict";var WLe=xA();function cPt(e,t){return WLe.calc(e,t)}function fPt(e){WLe.crossTraceCalc(e,{type:"funnelarea"})}XLe.exports={calc:cPt,crossTraceCalc:fPt}});var $Le=ye((Upr,JLe)=>{"use strict";var B2=Oa(),fX=So(),K_=Dr(),hPt=K_.strScale,ZLe=K_.strTranslate,YLe=ru(),dPt=i2(),vPt=dPt.toMoveInsideBar,KLe=bv(),pPt=KLe.recordMinTextSize,gPt=KLe.clearMinTextSize,mPt=l_(),BA=gD(),yPt=BA.attachFxHandlers,_Pt=BA.determineInsideTextFont,xPt=BA.layoutAreas,bPt=BA.prerenderTitles,wPt=BA.positionTitleOutside,TPt=BA.formatSliceLabel;JLe.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;gPt("funnelarea",i),bPt(r,t),xPt(r,i._size),K_.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=B2.select(this),s=a[0],l=s.trace;SPt(a),o.each(function(){var u=B2.select(this).selectAll("g.slice").data(a);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(f,h){if(f.hidden){B2.select(this).selectAll("path,g").remove();return}f.pointNumber=f.i,f.curveNumber=l.index;var d=s.cx,v=s.cy,_=B2.select(this),b=_.selectAll("path.surface").data([f]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),_.call(yPt,t,a);var p="M"+(d+f.TR[0])+","+(v+f.TR[1])+hX(f.TR,f.BR)+hX(f.BR,f.BL)+hX(f.BL,f.TL)+"Z";b.attr("d",p),TPt(t,f,s);var C=mPt.castOption(l.textposition,f.pts),E=_.selectAll("g.slicetext").data(f.text&&C!=="none"?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each(function(){var A=K_.ensureSingle(B2.select(this),"text","",function(z){z.attr("data-notex",1)}),L=K_.ensureUniformFontSize(t,_Pt(l,f,i.font));A.text(f.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(fX.font,L).call(YLe.convertToTspans,t);var x=fX.bBox(A.node()),k,M,g,P=Math.min(f.BL[1],f.BR[1])+v,T=Math.max(f.TL[1],f.TR[1])+v;M=Math.max(f.TL[0],f.BL[0])+d,g=Math.min(f.TR[0],f.BR[0])+d,k=vPt(M,g,P,T,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),k.fontSize=L.size,pPt(l.type,k,i),a[h].transform=k,K_.setTransormAndDisplay(A,k)})});var c=B2.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);c.enter().append("g").classed("titletext",!0),c.exit().remove(),c.each(function(){var f=K_.ensureSingle(B2.select(this),"text","",function(v){v.attr("data-notex",1)}),h=l.title.text;l._meta&&(h=K_.templateString(h,l._meta)),f.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(fX.font,l.title.font).call(YLe.convertToTspans,t);var d=wPt(s,i._size);f.attr("transform",ZLe(d.x,d.y)+hPt(Math.min(1,d.scale))+ZLe(d.tx,d.ty))})})})};function hX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function APt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function SPt(e){if(!e.length)return;var t=e[0],r=t.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a=Math.pow(i,2),o=t.vTotal,s=o*a/(1-a),l=o,u=s/o;function c(){var O=Math.sqrt(u);return{x:O,y:-O}}function f(){var O=c();return[O.x,O.y]}var h,d=[];d.push(f());var v,_;for(v=e.length-1;v>-1;v--)if(_=e[v],!_.hidden){var b=_.v/l;u+=b,d.push(f())}var p=1/0,C=-1/0;for(v=0;v-1;v--)if(_=e[v],!_.hidden){P+=1;var T=d[P][0],z=d[P][1];_.TL=[-T,z],_.TR=[T,z],_.BL=M,_.BR=g,_.pxmid=APt(_.TR,_.BR),M=_.TL,g=_.TR}}});var tPe=ye((Vpr,ePe)=>{"use strict";var QLe=Oa(),MPt=z3(),EPt=bv().resizeText;ePe.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");EPt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=QLe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){QLe.select(this).call(MPt,s,a,t)})})}});var iPe=ye((Gpr,rPe)=>{"use strict";rPe.exports={moduleType:"trace",name:"funnelarea",basePlotModule:qLe(),categories:["pie-like","funnelarea","showLegend"],attributes:lX(),layoutAttributes:uX(),supplyDefaults:GLe(),supplyLayoutDefaults:jLe(),calc:cX().calc,crossTraceCalc:cX().crossTraceCalc,plot:$Le(),style:tPe(),styleOne:z3(),meta:{}}});var aPe=ye((Hpr,nPe)=>{"use strict";nPe.exports=iPe()});var Od=ye((jpr,oPe)=>{(function(){var e={1964:function(i,a,o){i.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}},4793:function(i,a,o){"use strict";var s;function l(Ie,xe){if(!(Ie instanceof xe))throw new TypeError("Cannot call a class as a function")}function u(Ie,xe){for(var Ce=0;CeM)throw new RangeError('The value "'+Ie+'" is invalid for option "size"');var xe=new Uint8Array(Ie);return Object.setPrototypeOf(xe,T.prototype),xe}function T(Ie,xe,Ce){if(typeof Ie=="number"){if(typeof xe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return G(Ie)}return z(Ie,xe,Ce)}T.poolSize=8192;function z(Ie,xe,Ce){if(typeof Ie=="string")return Z(Ie,xe);if(ArrayBuffer.isView(Ie))return N(Ie);if(Ie==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+A(Ie));if(Ge(Ie,ArrayBuffer)||Ie&&Ge(Ie.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ge(Ie,SharedArrayBuffer)||Ie&&Ge(Ie.buffer,SharedArrayBuffer)))return j(Ie,xe,Ce);if(typeof Ie=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var vt=Ie.valueOf&&Ie.valueOf();if(vt!=null&&vt!==Ie)return T.from(vt,xe,Ce);var nr=re(Ie);if(nr)return nr;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ie[Symbol.toPrimitive]=="function")return T.from(Ie[Symbol.toPrimitive]("string"),xe,Ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+A(Ie))}T.from=function(Ie,xe,Ce){return z(Ie,xe,Ce)},Object.setPrototypeOf(T.prototype,Uint8Array.prototype),Object.setPrototypeOf(T,Uint8Array);function O(Ie){if(typeof Ie!="number")throw new TypeError('"size" argument must be of type number');if(Ie<0)throw new RangeError('The value "'+Ie+'" is invalid for option "size"')}function V(Ie,xe,Ce){return O(Ie),Ie<=0?P(Ie):xe!==void 0?typeof Ce=="string"?P(Ie).fill(xe,Ce):P(Ie).fill(xe):P(Ie)}T.alloc=function(Ie,xe,Ce){return V(Ie,xe,Ce)};function G(Ie){return O(Ie),P(Ie<0?0:oe(Ie)|0)}T.allocUnsafe=function(Ie){return G(Ie)},T.allocUnsafeSlow=function(Ie){return G(Ie)};function Z(Ie,xe){if((typeof xe!="string"||xe==="")&&(xe="utf8"),!T.isEncoding(xe))throw new TypeError("Unknown encoding: "+xe);var Ce=Me(Ie,xe)|0,vt=P(Ce),nr=vt.write(Ie,xe);return nr!==Ce&&(vt=vt.slice(0,nr)),vt}function H(Ie){for(var xe=Ie.length<0?0:oe(Ie.length)|0,Ce=P(xe),vt=0;vt=M)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");return Ie|0}function _e(Ie){return+Ie!=Ie&&(Ie=0),T.alloc(+Ie)}T.isBuffer=function(xe){return xe!=null&&xe._isBuffer===!0&&xe!==T.prototype},T.compare=function(xe,Ce){if(Ge(xe,Uint8Array)&&(xe=T.from(xe,xe.offset,xe.byteLength)),Ge(Ce,Uint8Array)&&(Ce=T.from(Ce,Ce.offset,Ce.byteLength)),!T.isBuffer(xe)||!T.isBuffer(Ce))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(xe===Ce)return 0;for(var vt=xe.length,nr=Ce.length,ir=0,pr=Math.min(vt,nr);irnr.length?(T.isBuffer(pr)||(pr=T.from(pr)),pr.copy(nr,ir)):Uint8Array.prototype.set.call(nr,pr,ir);else if(T.isBuffer(pr))pr.copy(nr,ir);else throw new TypeError('"list" argument must be an Array of Buffers');ir+=pr.length}return nr};function Me(Ie,xe){if(T.isBuffer(Ie))return Ie.length;if(ArrayBuffer.isView(Ie)||Ge(Ie,ArrayBuffer))return Ie.byteLength;if(typeof Ie!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+A(Ie));var Ce=Ie.length,vt=arguments.length>2&&arguments[2]===!0;if(!vt&&Ce===0)return 0;for(var nr=!1;;)switch(xe){case"ascii":case"latin1":case"binary":return Ce;case"utf8":case"utf-8":return Rr(Ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ce*2;case"hex":return Ce>>>1;case"base64":return Ur(Ie).length;default:if(nr)return vt?-1:Rr(Ie).length;xe=(""+xe).toLowerCase(),nr=!0}}T.byteLength=Me;function ke(Ie,xe,Ce){var vt=!1;if((xe===void 0||xe<0)&&(xe=0),xe>this.length||((Ce===void 0||Ce>this.length)&&(Ce=this.length),Ce<=0)||(Ce>>>=0,xe>>>=0,Ce<=xe))return"";for(Ie||(Ie="utf8");;)switch(Ie){case"hex":return st(this,xe,Ce);case"utf8":case"utf-8":return ce(this,xe,Ce);case"ascii":return pt(this,xe,Ce);case"latin1":case"binary":return Wt(this,xe,Ce);case"base64":return Fe(this,xe,Ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,xe,Ce);default:if(vt)throw new TypeError("Unknown encoding: "+Ie);Ie=(Ie+"").toLowerCase(),vt=!0}}T.prototype._isBuffer=!0;function me(Ie,xe,Ce){var vt=Ie[xe];Ie[xe]=Ie[Ce],Ie[Ce]=vt}T.prototype.swap16=function(){var xe=this.length;if(xe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ce=0;CeCe&&(xe+=" ... "),""},k&&(T.prototype[k]=T.prototype.inspect),T.prototype.compare=function(xe,Ce,vt,nr,ir){if(Ge(xe,Uint8Array)&&(xe=T.from(xe,xe.offset,xe.byteLength)),!T.isBuffer(xe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+A(xe));if(Ce===void 0&&(Ce=0),vt===void 0&&(vt=xe?xe.length:0),nr===void 0&&(nr=0),ir===void 0&&(ir=this.length),Ce<0||vt>xe.length||nr<0||ir>this.length)throw new RangeError("out of range index");if(nr>=ir&&Ce>=vt)return 0;if(nr>=ir)return-1;if(Ce>=vt)return 1;if(Ce>>>=0,vt>>>=0,nr>>>=0,ir>>>=0,this===xe)return 0;for(var pr=ir-nr,oi=vt-Ce,di=Math.min(pr,oi),Jr=this.slice(nr,ir),fi=xe.slice(Ce,vt),Hi=0;Hi2147483647?Ce=2147483647:Ce<-2147483648&&(Ce=-2147483648),Ce=+Ce,Je(Ce)&&(Ce=nr?0:Ie.length-1),Ce<0&&(Ce=Ie.length+Ce),Ce>=Ie.length){if(nr)return-1;Ce=Ie.length-1}else if(Ce<0)if(nr)Ce=0;else return-1;if(typeof xe=="string"&&(xe=T.from(xe,vt)),T.isBuffer(xe))return xe.length===0?-1:Se(Ie,xe,Ce,vt,nr);if(typeof xe=="number")return xe=xe&255,typeof Uint8Array.prototype.indexOf=="function"?nr?Uint8Array.prototype.indexOf.call(Ie,xe,Ce):Uint8Array.prototype.lastIndexOf.call(Ie,xe,Ce):Se(Ie,[xe],Ce,vt,nr);throw new TypeError("val must be string, number or Buffer")}function Se(Ie,xe,Ce,vt,nr){var ir=1,pr=Ie.length,oi=xe.length;if(vt!==void 0&&(vt=String(vt).toLowerCase(),vt==="ucs2"||vt==="ucs-2"||vt==="utf16le"||vt==="utf-16le")){if(Ie.length<2||xe.length<2)return-1;ir=2,pr/=2,oi/=2,Ce/=2}function di(wn,pn){return ir===1?wn[pn]:wn.readUInt16BE(pn*ir)}var Jr;if(nr){var fi=-1;for(Jr=Ce;Jrpr&&(Ce=pr-oi),Jr=Ce;Jr>=0;Jr--){for(var Hi=!0,Pn=0;Pnnr&&(vt=nr)):vt=nr;var ir=xe.length;vt>ir/2&&(vt=ir/2);var pr;for(pr=0;pr>>0,isFinite(vt)?(vt=vt>>>0,nr===void 0&&(nr="utf8")):(nr=vt,vt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ir=this.length-Ce;if((vt===void 0||vt>ir)&&(vt=ir),xe.length>0&&(vt<0||Ce<0)||Ce>this.length)throw new RangeError("Attempt to write outside buffer bounds");nr||(nr="utf8");for(var pr=!1;;)switch(nr){case"hex":return Le(this,xe,Ce,vt);case"utf8":case"utf-8":return Ae(this,xe,Ce,vt);case"ascii":case"latin1":case"binary":return De(this,xe,Ce,vt);case"base64":return Pe(this,xe,Ce,vt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ge(this,xe,Ce,vt);default:if(pr)throw new TypeError("Unknown encoding: "+nr);nr=(""+nr).toLowerCase(),pr=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Fe(Ie,xe,Ce){return xe===0&&Ce===Ie.length?L.fromByteArray(Ie):L.fromByteArray(Ie.slice(xe,Ce))}function ce(Ie,xe,Ce){Ce=Math.min(Ie.length,Ce);for(var vt=[],nr=xe;nr239?4:ir>223?3:ir>191?2:1;if(nr+oi<=Ce){var di=void 0,Jr=void 0,fi=void 0,Hi=void 0;switch(oi){case 1:ir<128&&(pr=ir);break;case 2:di=Ie[nr+1],(di&192)===128&&(Hi=(ir&31)<<6|di&63,Hi>127&&(pr=Hi));break;case 3:di=Ie[nr+1],Jr=Ie[nr+2],(di&192)===128&&(Jr&192)===128&&(Hi=(ir&15)<<12|(di&63)<<6|Jr&63,Hi>2047&&(Hi<55296||Hi>57343)&&(pr=Hi));break;case 4:di=Ie[nr+1],Jr=Ie[nr+2],fi=Ie[nr+3],(di&192)===128&&(Jr&192)===128&&(fi&192)===128&&(Hi=(ir&15)<<18|(di&63)<<12|(Jr&63)<<6|fi&63,Hi>65535&&Hi<1114112&&(pr=Hi))}}pr===null?(pr=65533,oi=1):pr>65535&&(pr-=65536,vt.push(pr>>>10&1023|55296),pr=56320|pr&1023),vt.push(pr),nr+=oi}return ct(vt)}var Ze=4096;function ct(Ie){var xe=Ie.length;if(xe<=Ze)return String.fromCharCode.apply(String,Ie);for(var Ce="",vt=0;vtvt)&&(Ce=vt);for(var nr="",ir=xe;irvt&&(xe=vt),Ce<0?(Ce+=vt,Ce<0&&(Ce=0)):Ce>vt&&(Ce=vt),CeCe)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(xe,Ce,vt){xe=xe>>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=this[xe],ir=1,pr=0;++pr>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=this[xe+--Ce],ir=1;Ce>0&&(ir*=256);)nr+=this[xe+--Ce]*ir;return nr},T.prototype.readUint8=T.prototype.readUInt8=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,1,this.length),this[xe]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,2,this.length),this[xe]|this[xe+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,2,this.length),this[xe]<<8|this[xe+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),(this[xe]|this[xe+1]<<8|this[xe+2]<<16)+this[xe+3]*16777216},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),this[xe]*16777216+(this[xe+1]<<16|this[xe+2]<<8|this[xe+3])},T.prototype.readBigUInt64LE=$e(function(xe){xe=xe>>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=Ce+this[++xe]*Math.pow(2,8)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,24),ir=this[++xe]+this[++xe]*Math.pow(2,8)+this[++xe]*Math.pow(2,16)+vt*Math.pow(2,24);return BigInt(nr)+(BigInt(ir)<>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=Ce*Math.pow(2,24)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,8)+this[++xe],ir=this[++xe]*Math.pow(2,24)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,8)+vt;return(BigInt(nr)<>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=this[xe],ir=1,pr=0;++pr=ir&&(nr-=Math.pow(2,8*Ce)),nr},T.prototype.readIntBE=function(xe,Ce,vt){xe=xe>>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=Ce,ir=1,pr=this[xe+--nr];nr>0&&(ir*=256);)pr+=this[xe+--nr]*ir;return ir*=128,pr>=ir&&(pr-=Math.pow(2,8*Ce)),pr},T.prototype.readInt8=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,1,this.length),this[xe]&128?(255-this[xe]+1)*-1:this[xe]},T.prototype.readInt16LE=function(xe,Ce){xe=xe>>>0,Ce||Gt(xe,2,this.length);var vt=this[xe]|this[xe+1]<<8;return vt&32768?vt|4294901760:vt},T.prototype.readInt16BE=function(xe,Ce){xe=xe>>>0,Ce||Gt(xe,2,this.length);var vt=this[xe+1]|this[xe]<<8;return vt&32768?vt|4294901760:vt},T.prototype.readInt32LE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),this[xe]|this[xe+1]<<8|this[xe+2]<<16|this[xe+3]<<24},T.prototype.readInt32BE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),this[xe]<<24|this[xe+1]<<16|this[xe+2]<<8|this[xe+3]},T.prototype.readBigInt64LE=$e(function(xe){xe=xe>>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=this[xe+4]+this[xe+5]*Math.pow(2,8)+this[xe+6]*Math.pow(2,16)+(vt<<24);return(BigInt(nr)<>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=(Ce<<24)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,8)+this[++xe];return(BigInt(nr)<>>0,Ce||Gt(xe,4,this.length),x.read(this,xe,!0,23,4)},T.prototype.readFloatBE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),x.read(this,xe,!1,23,4)},T.prototype.readDoubleLE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,8,this.length),x.read(this,xe,!0,52,8)},T.prototype.readDoubleBE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,8,this.length),x.read(this,xe,!1,52,8)};function Nt(Ie,xe,Ce,vt,nr,ir){if(!T.isBuffer(Ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(xe>nr||xeIe.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(xe,Ce,vt,nr){if(xe=+xe,Ce=Ce>>>0,vt=vt>>>0,!nr){var ir=Math.pow(2,8*vt)-1;Nt(this,xe,Ce,vt,ir,0)}var pr=1,oi=0;for(this[Ce]=xe&255;++oi>>0,vt=vt>>>0,!nr){var ir=Math.pow(2,8*vt)-1;Nt(this,xe,Ce,vt,ir,0)}var pr=vt-1,oi=1;for(this[Ce+pr]=xe&255;--pr>=0&&(oi*=256);)this[Ce+pr]=xe/oi&255;return Ce+vt},T.prototype.writeUint8=T.prototype.writeUInt8=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,1,255,0),this[Ce]=xe&255,Ce+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,65535,0),this[Ce]=xe&255,this[Ce+1]=xe>>>8,Ce+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,65535,0),this[Ce]=xe>>>8,this[Ce+1]=xe&255,Ce+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,4294967295,0),this[Ce+3]=xe>>>24,this[Ce+2]=xe>>>16,this[Ce+1]=xe>>>8,this[Ce]=xe&255,Ce+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,4294967295,0),this[Ce]=xe>>>24,this[Ce+1]=xe>>>16,this[Ce+2]=xe>>>8,this[Ce+3]=xe&255,Ce+4};function $t(Ie,xe,Ce,vt,nr){bt(xe,vt,nr,Ie,Ce,7);var ir=Number(xe&BigInt(4294967295));Ie[Ce++]=ir,ir=ir>>8,Ie[Ce++]=ir,ir=ir>>8,Ie[Ce++]=ir,ir=ir>>8,Ie[Ce++]=ir;var pr=Number(xe>>BigInt(32)&BigInt(4294967295));return Ie[Ce++]=pr,pr=pr>>8,Ie[Ce++]=pr,pr=pr>>8,Ie[Ce++]=pr,pr=pr>>8,Ie[Ce++]=pr,Ce}function sr(Ie,xe,Ce,vt,nr){bt(xe,vt,nr,Ie,Ce,7);var ir=Number(xe&BigInt(4294967295));Ie[Ce+7]=ir,ir=ir>>8,Ie[Ce+6]=ir,ir=ir>>8,Ie[Ce+5]=ir,ir=ir>>8,Ie[Ce+4]=ir;var pr=Number(xe>>BigInt(32)&BigInt(4294967295));return Ie[Ce+3]=pr,pr=pr>>8,Ie[Ce+2]=pr,pr=pr>>8,Ie[Ce+1]=pr,pr=pr>>8,Ie[Ce]=pr,Ce+8}T.prototype.writeBigUInt64LE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return $t(this,xe,Ce,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeBigUInt64BE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return sr(this,xe,Ce,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeIntLE=function(xe,Ce,vt,nr){if(xe=+xe,Ce=Ce>>>0,!nr){var ir=Math.pow(2,8*vt-1);Nt(this,xe,Ce,vt,ir-1,-ir)}var pr=0,oi=1,di=0;for(this[Ce]=xe&255;++pr>0)-di&255;return Ce+vt},T.prototype.writeIntBE=function(xe,Ce,vt,nr){if(xe=+xe,Ce=Ce>>>0,!nr){var ir=Math.pow(2,8*vt-1);Nt(this,xe,Ce,vt,ir-1,-ir)}var pr=vt-1,oi=1,di=0;for(this[Ce+pr]=xe&255;--pr>=0&&(oi*=256);)xe<0&&di===0&&this[Ce+pr+1]!==0&&(di=1),this[Ce+pr]=(xe/oi>>0)-di&255;return Ce+vt},T.prototype.writeInt8=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,1,127,-128),xe<0&&(xe=255+xe+1),this[Ce]=xe&255,Ce+1},T.prototype.writeInt16LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,32767,-32768),this[Ce]=xe&255,this[Ce+1]=xe>>>8,Ce+2},T.prototype.writeInt16BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,32767,-32768),this[Ce]=xe>>>8,this[Ce+1]=xe&255,Ce+2},T.prototype.writeInt32LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,2147483647,-2147483648),this[Ce]=xe&255,this[Ce+1]=xe>>>8,this[Ce+2]=xe>>>16,this[Ce+3]=xe>>>24,Ce+4},T.prototype.writeInt32BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,2147483647,-2147483648),xe<0&&(xe=4294967295+xe+1),this[Ce]=xe>>>24,this[Ce+1]=xe>>>16,this[Ce+2]=xe>>>8,this[Ce+3]=xe&255,Ce+4},T.prototype.writeBigInt64LE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return $t(this,xe,Ce,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeBigInt64BE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return sr(this,xe,Ce,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function wr(Ie,xe,Ce,vt,nr,ir){if(Ce+vt>Ie.length)throw new RangeError("Index out of range");if(Ce<0)throw new RangeError("Index out of range")}function ur(Ie,xe,Ce,vt,nr){return xe=+xe,Ce=Ce>>>0,nr||wr(Ie,xe,Ce,4,34028234663852886e22,-34028234663852886e22),x.write(Ie,xe,Ce,vt,23,4),Ce+4}T.prototype.writeFloatLE=function(xe,Ce,vt){return ur(this,xe,Ce,!0,vt)},T.prototype.writeFloatBE=function(xe,Ce,vt){return ur(this,xe,Ce,!1,vt)};function Qe(Ie,xe,Ce,vt,nr){return xe=+xe,Ce=Ce>>>0,nr||wr(Ie,xe,Ce,8,17976931348623157e292,-17976931348623157e292),x.write(Ie,xe,Ce,vt,52,8),Ce+8}T.prototype.writeDoubleLE=function(xe,Ce,vt){return Qe(this,xe,Ce,!0,vt)},T.prototype.writeDoubleBE=function(xe,Ce,vt){return Qe(this,xe,Ce,!1,vt)},T.prototype.copy=function(xe,Ce,vt,nr){if(!T.isBuffer(xe))throw new TypeError("argument should be a Buffer");if(vt||(vt=0),!nr&&nr!==0&&(nr=this.length),Ce>=xe.length&&(Ce=xe.length),Ce||(Ce=0),nr>0&&nr=this.length)throw new RangeError("Index out of range");if(nr<0)throw new RangeError("sourceEnd out of bounds");nr>this.length&&(nr=this.length),xe.length-Ce>>0,vt=vt===void 0?this.length:vt>>>0,xe||(xe=0);var pr;if(typeof xe=="number")for(pr=Ce;prMath.pow(2,32)?nr=Ut(String(Ce)):typeof Ce=="bigint"&&(nr=String(Ce),(Ce>Math.pow(BigInt(2),BigInt(32))||Ce<-Math.pow(BigInt(2),BigInt(32)))&&(nr=Ut(nr)),nr+="n"),vt+=" It must be ".concat(xe,". Received ").concat(nr),vt},RangeError);function Ut(Ie){for(var xe="",Ce=Ie.length,vt=Ie[0]==="-"?1:0;Ce>=vt+4;Ce-=3)xe="_".concat(Ie.slice(Ce-3,Ce)).concat(xe);return"".concat(Ie.slice(0,Ce)).concat(xe)}function Ft(Ie,xe,Ce){yt(xe,"offset"),(Ie[xe]===void 0||Ie[xe+Ce]===void 0)&&Yt(xe,Ie.length-(Ce+1))}function bt(Ie,xe,Ce,vt,nr,ir){if(Ie>Ce||Ie3?xe===0||xe===BigInt(0)?oi=">= 0".concat(pr," and < 2").concat(pr," ** ").concat((ir+1)*8).concat(pr):oi=">= -(2".concat(pr," ** ").concat((ir+1)*8-1).concat(pr,") and < 2 ** ")+"".concat((ir+1)*8-1).concat(pr):oi=">= ".concat(xe).concat(pr," and <= ").concat(Ce).concat(pr),new Et.ERR_OUT_OF_RANGE("value",oi,Ie)}Ft(vt,nr,ir)}function yt(Ie,xe){if(typeof Ie!="number")throw new Et.ERR_INVALID_ARG_TYPE(xe,"number",Ie)}function Yt(Ie,xe,Ce){throw Math.floor(Ie)!==Ie?(yt(Ie,Ce),new Et.ERR_OUT_OF_RANGE(Ce||"offset","an integer",Ie)):xe<0?new Et.ERR_BUFFER_OUT_OF_BOUNDS:new Et.ERR_OUT_OF_RANGE(Ce||"offset",">= ".concat(Ce?1:0," and <= ").concat(xe),Ie)}var lr=/[^+/0-9A-Za-z-_]/g;function Tr(Ie){if(Ie=Ie.split("=")[0],Ie=Ie.trim().replace(lr,""),Ie.length<2)return"";for(;Ie.length%4!==0;)Ie=Ie+"=";return Ie}function Rr(Ie,xe){xe=xe||1/0;for(var Ce,vt=Ie.length,nr=null,ir=[],pr=0;pr55295&&Ce<57344){if(!nr){if(Ce>56319){(xe-=3)>-1&&ir.push(239,191,189);continue}else if(pr+1===vt){(xe-=3)>-1&&ir.push(239,191,189);continue}nr=Ce;continue}if(Ce<56320){(xe-=3)>-1&&ir.push(239,191,189),nr=Ce;continue}Ce=(nr-55296<<10|Ce-56320)+65536}else nr&&(xe-=3)>-1&&ir.push(239,191,189);if(nr=null,Ce<128){if((xe-=1)<0)break;ir.push(Ce)}else if(Ce<2048){if((xe-=2)<0)break;ir.push(Ce>>6|192,Ce&63|128)}else if(Ce<65536){if((xe-=3)<0)break;ir.push(Ce>>12|224,Ce>>6&63|128,Ce&63|128)}else if(Ce<1114112){if((xe-=4)<0)break;ir.push(Ce>>18|240,Ce>>12&63|128,Ce>>6&63|128,Ce&63|128)}else throw new Error("Invalid code point")}return ir}function ei(Ie){for(var xe=[],Ce=0;Ce>8,nr=Ce%256,ir.push(nr),ir.push(vt);return ir}function Ur(Ie){return L.toByteArray(Tr(Ie))}function dt(Ie,xe,Ce,vt){var nr;for(nr=0;nr=xe.length||nr>=Ie.length);++nr)xe[nr+Ce]=Ie[nr];return nr}function Ge(Ie,xe){return Ie instanceof xe||Ie!=null&&Ie.constructor!=null&&Ie.constructor.name!=null&&Ie.constructor.name===xe.name}function Je(Ie){return Ie!==Ie}var je=function(){for(var Ie="0123456789abcdef",xe=new Array(256),Ce=0;Ce<16;++Ce)for(var vt=Ce*16,nr=0;nr<16;++nr)xe[vt+nr]=Ie[Ce]+Ie[nr];return xe}();function $e(Ie){return typeof BigInt=="undefined"?wt:Ie}function wt(){throw new Error("BigInt not supported")}},9216:function(i){"use strict";i.exports=l,i.exports.isMobile=l,i.exports.default=l;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,s=/android|ipad|playbook|silk/i;function l(u){u||(u={});var c=u.ua;if(!c&&typeof navigator!="undefined"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;var f=a.test(c)&&!o.test(c)||!!u.tablet&&s.test(c);return!f&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(f=!0),f}},6296:function(i,a,o){"use strict";i.exports=h;var s=o(7261),l=o(9977),u=o(1811);function c(d,v){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(_){return d[_]}),this._mode=v,this._active=d[v],this._active||(this._mode="turntable",this._active=d.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var f=c.prototype;f.flush=function(d){for(var v=this._controllerList,_=0;_0)throw new Error("Invalid string. Length must be a multiple of 4");var L=E.indexOf("=");L===-1&&(L=A);var x=L===A?0:4-L%4;return[L,x]}function d(E){var A=h(E),L=A[0],x=A[1];return(L+x)*3/4-x}function v(E,A,L){return(A+L)*3/4-L}function _(E){var A,L=h(E),x=L[0],k=L[1],M=new l(v(E,x,k)),g=0,P=k>0?x-4:x,T;for(T=0;T>16&255,M[g++]=A>>8&255,M[g++]=A&255;return k===2&&(A=s[E.charCodeAt(T)]<<2|s[E.charCodeAt(T+1)]>>4,M[g++]=A&255),k===1&&(A=s[E.charCodeAt(T)]<<10|s[E.charCodeAt(T+1)]<<4|s[E.charCodeAt(T+2)]>>2,M[g++]=A>>8&255,M[g++]=A&255),M}function b(E){return o[E>>18&63]+o[E>>12&63]+o[E>>6&63]+o[E&63]}function p(E,A,L){for(var x,k=[],M=A;MP?P:g+M));return x===1?(A=E[L-1],k.push(o[A>>2]+o[A<<4&63]+"==")):x===2&&(A=(E[L-2]<<8)+E[L-1],k.push(o[A>>10]+o[A>>4&63]+o[A<<2&63]+"=")),k.join("")}},3865:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]).add(c[0].mul(u[1])),u[1].mul(c[1]))}},1318:function(i){"use strict";i.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]),u[1].mul(c[0]))}},7842:function(i,a,o){"use strict";var s=o(6330),l=o(1533),u=o(2651),c=o(6768),f=o(869),h=o(8697);i.exports=d;function d(v,_){if(s(v))return _?h(v,d(_)):[v[0].clone(),v[1].clone()];var b=0,p,C;if(l(v))p=v.clone();else if(typeof v=="string")p=c(v);else{if(v===0)return[u(0),u(1)];if(v===Math.floor(v))p=u(v);else{for(;v!==Math.floor(v);)v=v*Math.pow(2,256),b-=256;p=u(v)}}if(s(_))p.mul(_[1]),C=_[0].clone();else if(l(_))C=_.clone();else if(typeof _=="string")C=c(_);else if(!_)C=u(1);else if(_===Math.floor(_))C=u(_);else{for(;_!==Math.floor(_);)_=_*Math.pow(2,256),b+=256;C=u(_)}return b>0?p=p.ushln(b):b<0&&(C=C.ushln(-b)),f(p,C)}},6330:function(i,a,o){"use strict";var s=o(1533);i.exports=l;function l(u){return Array.isArray(u)&&u.length===2&&s(u[0])&&s(u[1])}},5716:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u.cmp(new s(0))}},1369:function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){var c=u.length,f=u.words,h=0;if(c===1)h=f[0];else if(c===2)h=f[0]+f[1]*67108864;else for(var d=0;d20?52:h+32}},1533:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u&&typeof u=="object"&&!!u.words}},2651:function(i,a,o){"use strict";var s=o(6859),l=o(2361);i.exports=u;function u(c){var f=l.exponent(c);return f<52?new s(c):new s(c*Math.pow(2,52-f)).ushln(f-52)}},869:function(i,a,o){"use strict";var s=o(2651),l=o(5716);i.exports=u;function u(c,f){var h=l(c),d=l(f);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(c=c.neg(),f=f.neg());var v=c.gcd(f);return v.cmpn(1)?[c.div(v),f.div(v)]:[c,f]}},6768:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return new s(u)}},6504:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[0]),u[1].mul(c[1]))}},7721:function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){return s(u[0])*s(u[1])}},5572:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]).sub(u[1].mul(c[0])),u[1].mul(c[1]))}},946:function(i,a,o){"use strict";var s=o(1369),l=o(4025);i.exports=u;function u(c){var f=c[0],h=c[1];if(f.cmpn(0)===0)return 0;var d=f.abs().divmod(h.abs()),v=d.div,_=s(v),b=d.mod,p=f.negative!==h.negative?-1:1;if(b.cmpn(0)===0)return p*_;if(_){var C=l(_)+4,E=s(b.ushln(C).divRound(h));return p*(_+E*Math.pow(2,-C))}else{var A=h.bitLength()-b.bitLength()+53,E=s(b.ushln(A).divRound(h));return A<1023?p*E*Math.pow(2,-A):(E*=Math.pow(2,-1023),p*E*Math.pow(2,1023-A))}}},2478:function(i){"use strict";function a(f,h,d,v,_){for(var b=_+1;v<=_;){var p=v+_>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E>=0?(b=p,_=p-1):v=p+1}return b}function o(f,h,d,v,_){for(var b=_+1;v<=_;){var p=v+_>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E>0?(b=p,_=p-1):v=p+1}return b}function s(f,h,d,v,_){for(var b=v-1;v<=_;){var p=v+_>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E<0?(b=p,v=p+1):_=p-1}return b}function l(f,h,d,v,_){for(var b=v-1;v<=_;){var p=v+_>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E<=0?(b=p,v=p+1):_=p-1}return b}function u(f,h,d,v,_){for(;v<=_;){var b=v+_>>>1,p=f[b],C=d!==void 0?d(p,h):p-h;if(C===0)return b;C<=0?v=b+1:_=b-1}return-1}function c(f,h,d,v,_,b){return typeof d=="function"?b(f,h,d,v===void 0?0:v|0,_===void 0?f.length-1:_|0):b(f,h,void 0,d===void 0?0:d|0,v===void 0?f.length-1:v|0)}i.exports={ge:function(f,h,d,v,_){return c(f,h,d,v,_,a)},gt:function(f,h,d,v,_){return c(f,h,d,v,_,o)},lt:function(f,h,d,v,_){return c(f,h,d,v,_,s)},le:function(f,h,d,v,_){return c(f,h,d,v,_,l)},eq:function(f,h,d,v,_){return c(f,h,d,v,_,u)}}},8828:function(i,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},6859:function(i,a,o){i=o.nmd(i),function(s,l){"use strict";function u(H,N){if(!H)throw new Error(N||"Assertion failed")}function c(H,N){H.super_=N;var j=function(){};j.prototype=N.prototype,H.prototype=new j,H.prototype.constructor=H}function f(H,N,j){if(f.isBN(H))return H;this.negative=0,this.words=null,this.length=0,this.red=null,H!==null&&((N==="le"||N==="be")&&(j=N,N=10),this._init(H||0,N||10,j||"be"))}typeof s=="object"?s.exports=f:l.BN=f,f.BN=f,f.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(H){}f.isBN=function(N){return N instanceof f?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===f.wordSize&&Array.isArray(N.words)},f.max=function(N,j){return N.cmp(j)>0?N:j},f.min=function(N,j){return N.cmp(j)<0?N:j},f.prototype._init=function(N,j,re){if(typeof N=="number")return this._initNumber(N,j,re);if(typeof N=="object")return this._initArray(N,j,re);j==="hex"&&(j=16),u(j===(j|0)&&j>=2&&j<=36),N=N.toString().replace(/\s+/g,"");var oe=0;N[0]==="-"&&(oe++,this.negative=1),oe=0;oe-=3)Me=N[oe]|N[oe-1]<<8|N[oe-2]<<16,this.words[_e]|=Me<>>26-ke&67108863,ke+=24,ke>=26&&(ke-=26,_e++);else if(re==="le")for(oe=0,_e=0;oe>>26-ke&67108863,ke+=24,ke>=26&&(ke-=26,_e++);return this.strip()};function d(H,N){var j=H.charCodeAt(N);return j>=65&&j<=70?j-55:j>=97&&j<=102?j-87:j-48&15}function v(H,N,j){var re=d(H,j);return j-1>=N&&(re|=d(H,j-1)<<4),re}f.prototype._parseHex=function(N,j,re){this.length=Math.ceil((N.length-j)/6),this.words=new Array(this.length);for(var oe=0;oe=j;oe-=2)ke=v(N,j,oe)<<_e,this.words[Me]|=ke&67108863,_e>=18?(_e-=18,Me+=1,this.words[Me]|=ke>>>26):_e+=8;else{var me=N.length-j;for(oe=me%2===0?j+1:j;oe=18?(_e-=18,Me+=1,this.words[Me]|=ke>>>26):_e+=8}this.strip()};function _(H,N,j,re){for(var oe=0,_e=Math.min(H.length,j),Me=N;Me<_e;Me++){var ke=H.charCodeAt(Me)-48;oe*=re,ke>=49?oe+=ke-49+10:ke>=17?oe+=ke-17+10:oe+=ke}return oe}f.prototype._parseBase=function(N,j,re){this.words=[0],this.length=1;for(var oe=0,_e=1;_e<=67108863;_e*=j)oe++;oe--,_e=_e/j|0;for(var Me=N.length-re,ke=Me%oe,me=Math.min(Me,Me-ke)+re,ie=0,Se=re;Se1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?""};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];f.prototype.toString=function(N,j){N=N||10,j=j|0||1;var re;if(N===16||N==="hex"){re="";for(var oe=0,_e=0,Me=0;Me>>24-oe&16777215,_e!==0||Me!==this.length-1?re=b[6-me.length]+me+re:re=me+re,oe+=2,oe>=26&&(oe-=26,Me--)}for(_e!==0&&(re=_e.toString(16)+re);re.length%j!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}if(N===(N|0)&&N>=2&&N<=36){var ie=p[N],Se=C[N];re="";var Le=this.clone();for(Le.negative=0;!Le.isZero();){var Ae=Le.modn(Se).toString(N);Le=Le.idivn(Se),Le.isZero()?re=Ae+re:re=b[ie-Ae.length]+Ae+re}for(this.isZero()&&(re="0"+re);re.length%j!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}u(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(N,j){return u(typeof h!="undefined"),this.toArrayLike(h,N,j)},f.prototype.toArray=function(N,j){return this.toArrayLike(Array,N,j)},f.prototype.toArrayLike=function(N,j,re){var oe=this.byteLength(),_e=re||Math.max(1,oe);u(oe<=_e,"byte array longer than desired length"),u(_e>0,"Requested array length <= 0"),this.strip();var Me=j==="le",ke=new N(_e),me,ie,Se=this.clone();if(Me){for(ie=0;!Se.isZero();ie++)me=Se.andln(255),Se.iushrn(8),ke[ie]=me;for(;ie<_e;ie++)ke[ie]=0}else{for(ie=0;ie<_e-oe;ie++)ke[ie]=0;for(ie=0;!Se.isZero();ie++)me=Se.andln(255),Se.iushrn(8),ke[_e-ie-1]=me}return ke},Math.clz32?f.prototype._countBits=function(N){return 32-Math.clz32(N)}:f.prototype._countBits=function(N){var j=N,re=0;return j>=4096&&(re+=13,j>>>=13),j>=64&&(re+=7,j>>>=7),j>=8&&(re+=4,j>>>=4),j>=2&&(re+=2,j>>>=2),re+j},f.prototype._zeroBits=function(N){if(N===0)return 26;var j=N,re=0;return(j&8191)===0&&(re+=13,j>>>=13),(j&127)===0&&(re+=7,j>>>=7),(j&15)===0&&(re+=4,j>>>=4),(j&3)===0&&(re+=2,j>>>=2),(j&1)===0&&re++,re},f.prototype.bitLength=function(){var N=this.words[this.length-1],j=this._countBits(N);return(this.length-1)*26+j};function E(H){for(var N=new Array(H.bitLength()),j=0;j>>oe}return N}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,j=0;jN.length?this.clone().ior(N):N.clone().ior(this)},f.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},f.prototype.iuand=function(N){var j;this.length>N.length?j=N:j=this;for(var re=0;reN.length?this.clone().iand(N):N.clone().iand(this)},f.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},f.prototype.iuxor=function(N){var j,re;this.length>N.length?(j=this,re=N):(j=N,re=this);for(var oe=0;oeN.length?this.clone().ixor(N):N.clone().ixor(this)},f.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},f.prototype.inotn=function(N){u(typeof N=="number"&&N>=0);var j=Math.ceil(N/26)|0,re=N%26;this._expand(j),re>0&&j--;for(var oe=0;oe0&&(this.words[oe]=~this.words[oe]&67108863>>26-re),this.strip()},f.prototype.notn=function(N){return this.clone().inotn(N)},f.prototype.setn=function(N,j){u(typeof N=="number"&&N>=0);var re=N/26|0,oe=N%26;return this._expand(re+1),j?this.words[re]=this.words[re]|1<N.length?(re=this,oe=N):(re=N,oe=this);for(var _e=0,Me=0;Me>>26;for(;_e!==0&&Me>>26;if(this.length=re.length,_e!==0)this.words[this.length]=_e,this.length++;else if(re!==this)for(;MeN.length?this.clone().iadd(N):N.clone().iadd(this)},f.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var j=this.iadd(N);return N.negative=1,j._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var re=this.cmp(N);if(re===0)return this.negative=0,this.length=1,this.words[0]=0,this;var oe,_e;re>0?(oe=this,_e=N):(oe=N,_e=this);for(var Me=0,ke=0;ke<_e.length;ke++)j=(oe.words[ke]|0)-(_e.words[ke]|0)+Me,Me=j>>26,this.words[ke]=j&67108863;for(;Me!==0&&ke>26,this.words[ke]=j&67108863;if(Me===0&&ke>>26,Le=me&67108863,Ae=Math.min(ie,N.length-1),De=Math.max(0,ie-H.length+1);De<=Ae;De++){var Pe=ie-De|0;oe=H.words[Pe]|0,_e=N.words[De]|0,Me=oe*_e+Le,Se+=Me/67108864|0,Le=Me&67108863}j.words[ie]=Le|0,me=Se|0}return me!==0?j.words[ie]=me|0:j.length--,j.strip()}var L=function(N,j,re){var oe=N.words,_e=j.words,Me=re.words,ke=0,me,ie,Se,Le=oe[0]|0,Ae=Le&8191,De=Le>>>13,Pe=oe[1]|0,ge=Pe&8191,Fe=Pe>>>13,ce=oe[2]|0,Ze=ce&8191,ct=ce>>>13,pt=oe[3]|0,Wt=pt&8191,st=pt>>>13,lt=oe[4]|0,Gt=lt&8191,Nt=lt>>>13,$t=oe[5]|0,sr=$t&8191,wr=$t>>>13,ur=oe[6]|0,Qe=ur&8191,Et=ur>>>13,er=oe[7]|0,Ut=er&8191,Ft=er>>>13,bt=oe[8]|0,yt=bt&8191,Yt=bt>>>13,lr=oe[9]|0,Tr=lr&8191,Rr=lr>>>13,ei=_e[0]|0,Wr=ei&8191,Ur=ei>>>13,dt=_e[1]|0,Ge=dt&8191,Je=dt>>>13,je=_e[2]|0,$e=je&8191,wt=je>>>13,Ie=_e[3]|0,xe=Ie&8191,Ce=Ie>>>13,vt=_e[4]|0,nr=vt&8191,ir=vt>>>13,pr=_e[5]|0,oi=pr&8191,di=pr>>>13,Jr=_e[6]|0,fi=Jr&8191,Hi=Jr>>>13,Pn=_e[7]|0,wn=Pn&8191,pn=Pn>>>13,Vn=_e[8]|0,kn=Vn&8191,ea=Vn>>>13,ua=_e[9]|0,Vt=ua&8191,_t=ua>>>13;re.negative=N.negative^j.negative,re.length=19,me=Math.imul(Ae,Wr),ie=Math.imul(Ae,Ur),ie=ie+Math.imul(De,Wr)|0,Se=Math.imul(De,Ur);var tr=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(tr>>>26)|0,tr&=67108863,me=Math.imul(ge,Wr),ie=Math.imul(ge,Ur),ie=ie+Math.imul(Fe,Wr)|0,Se=Math.imul(Fe,Ur),me=me+Math.imul(Ae,Ge)|0,ie=ie+Math.imul(Ae,Je)|0,ie=ie+Math.imul(De,Ge)|0,Se=Se+Math.imul(De,Je)|0;var ar=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(ar>>>26)|0,ar&=67108863,me=Math.imul(Ze,Wr),ie=Math.imul(Ze,Ur),ie=ie+Math.imul(ct,Wr)|0,Se=Math.imul(ct,Ur),me=me+Math.imul(ge,Ge)|0,ie=ie+Math.imul(ge,Je)|0,ie=ie+Math.imul(Fe,Ge)|0,Se=Se+Math.imul(Fe,Je)|0,me=me+Math.imul(Ae,$e)|0,ie=ie+Math.imul(Ae,wt)|0,ie=ie+Math.imul(De,$e)|0,Se=Se+Math.imul(De,wt)|0;var Er=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Er>>>26)|0,Er&=67108863,me=Math.imul(Wt,Wr),ie=Math.imul(Wt,Ur),ie=ie+Math.imul(st,Wr)|0,Se=Math.imul(st,Ur),me=me+Math.imul(Ze,Ge)|0,ie=ie+Math.imul(Ze,Je)|0,ie=ie+Math.imul(ct,Ge)|0,Se=Se+Math.imul(ct,Je)|0,me=me+Math.imul(ge,$e)|0,ie=ie+Math.imul(ge,wt)|0,ie=ie+Math.imul(Fe,$e)|0,Se=Se+Math.imul(Fe,wt)|0,me=me+Math.imul(Ae,xe)|0,ie=ie+Math.imul(Ae,Ce)|0,ie=ie+Math.imul(De,xe)|0,Se=Se+Math.imul(De,Ce)|0;var Zr=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,me=Math.imul(Gt,Wr),ie=Math.imul(Gt,Ur),ie=ie+Math.imul(Nt,Wr)|0,Se=Math.imul(Nt,Ur),me=me+Math.imul(Wt,Ge)|0,ie=ie+Math.imul(Wt,Je)|0,ie=ie+Math.imul(st,Ge)|0,Se=Se+Math.imul(st,Je)|0,me=me+Math.imul(Ze,$e)|0,ie=ie+Math.imul(Ze,wt)|0,ie=ie+Math.imul(ct,$e)|0,Se=Se+Math.imul(ct,wt)|0,me=me+Math.imul(ge,xe)|0,ie=ie+Math.imul(ge,Ce)|0,ie=ie+Math.imul(Fe,xe)|0,Se=Se+Math.imul(Fe,Ce)|0,me=me+Math.imul(Ae,nr)|0,ie=ie+Math.imul(Ae,ir)|0,ie=ie+Math.imul(De,nr)|0,Se=Se+Math.imul(De,ir)|0;var ri=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(ri>>>26)|0,ri&=67108863,me=Math.imul(sr,Wr),ie=Math.imul(sr,Ur),ie=ie+Math.imul(wr,Wr)|0,Se=Math.imul(wr,Ur),me=me+Math.imul(Gt,Ge)|0,ie=ie+Math.imul(Gt,Je)|0,ie=ie+Math.imul(Nt,Ge)|0,Se=Se+Math.imul(Nt,Je)|0,me=me+Math.imul(Wt,$e)|0,ie=ie+Math.imul(Wt,wt)|0,ie=ie+Math.imul(st,$e)|0,Se=Se+Math.imul(st,wt)|0,me=me+Math.imul(Ze,xe)|0,ie=ie+Math.imul(Ze,Ce)|0,ie=ie+Math.imul(ct,xe)|0,Se=Se+Math.imul(ct,Ce)|0,me=me+Math.imul(ge,nr)|0,ie=ie+Math.imul(ge,ir)|0,ie=ie+Math.imul(Fe,nr)|0,Se=Se+Math.imul(Fe,ir)|0,me=me+Math.imul(Ae,oi)|0,ie=ie+Math.imul(Ae,di)|0,ie=ie+Math.imul(De,oi)|0,Se=Se+Math.imul(De,di)|0;var $r=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+($r>>>26)|0,$r&=67108863,me=Math.imul(Qe,Wr),ie=Math.imul(Qe,Ur),ie=ie+Math.imul(Et,Wr)|0,Se=Math.imul(Et,Ur),me=me+Math.imul(sr,Ge)|0,ie=ie+Math.imul(sr,Je)|0,ie=ie+Math.imul(wr,Ge)|0,Se=Se+Math.imul(wr,Je)|0,me=me+Math.imul(Gt,$e)|0,ie=ie+Math.imul(Gt,wt)|0,ie=ie+Math.imul(Nt,$e)|0,Se=Se+Math.imul(Nt,wt)|0,me=me+Math.imul(Wt,xe)|0,ie=ie+Math.imul(Wt,Ce)|0,ie=ie+Math.imul(st,xe)|0,Se=Se+Math.imul(st,Ce)|0,me=me+Math.imul(Ze,nr)|0,ie=ie+Math.imul(Ze,ir)|0,ie=ie+Math.imul(ct,nr)|0,Se=Se+Math.imul(ct,ir)|0,me=me+Math.imul(ge,oi)|0,ie=ie+Math.imul(ge,di)|0,ie=ie+Math.imul(Fe,oi)|0,Se=Se+Math.imul(Fe,di)|0,me=me+Math.imul(Ae,fi)|0,ie=ie+Math.imul(Ae,Hi)|0,ie=ie+Math.imul(De,fi)|0,Se=Se+Math.imul(De,Hi)|0;var zi=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(zi>>>26)|0,zi&=67108863,me=Math.imul(Ut,Wr),ie=Math.imul(Ut,Ur),ie=ie+Math.imul(Ft,Wr)|0,Se=Math.imul(Ft,Ur),me=me+Math.imul(Qe,Ge)|0,ie=ie+Math.imul(Qe,Je)|0,ie=ie+Math.imul(Et,Ge)|0,Se=Se+Math.imul(Et,Je)|0,me=me+Math.imul(sr,$e)|0,ie=ie+Math.imul(sr,wt)|0,ie=ie+Math.imul(wr,$e)|0,Se=Se+Math.imul(wr,wt)|0,me=me+Math.imul(Gt,xe)|0,ie=ie+Math.imul(Gt,Ce)|0,ie=ie+Math.imul(Nt,xe)|0,Se=Se+Math.imul(Nt,Ce)|0,me=me+Math.imul(Wt,nr)|0,ie=ie+Math.imul(Wt,ir)|0,ie=ie+Math.imul(st,nr)|0,Se=Se+Math.imul(st,ir)|0,me=me+Math.imul(Ze,oi)|0,ie=ie+Math.imul(Ze,di)|0,ie=ie+Math.imul(ct,oi)|0,Se=Se+Math.imul(ct,di)|0,me=me+Math.imul(ge,fi)|0,ie=ie+Math.imul(ge,Hi)|0,ie=ie+Math.imul(Fe,fi)|0,Se=Se+Math.imul(Fe,Hi)|0,me=me+Math.imul(Ae,wn)|0,ie=ie+Math.imul(Ae,pn)|0,ie=ie+Math.imul(De,wn)|0,Se=Se+Math.imul(De,pn)|0;var Ji=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,me=Math.imul(yt,Wr),ie=Math.imul(yt,Ur),ie=ie+Math.imul(Yt,Wr)|0,Se=Math.imul(Yt,Ur),me=me+Math.imul(Ut,Ge)|0,ie=ie+Math.imul(Ut,Je)|0,ie=ie+Math.imul(Ft,Ge)|0,Se=Se+Math.imul(Ft,Je)|0,me=me+Math.imul(Qe,$e)|0,ie=ie+Math.imul(Qe,wt)|0,ie=ie+Math.imul(Et,$e)|0,Se=Se+Math.imul(Et,wt)|0,me=me+Math.imul(sr,xe)|0,ie=ie+Math.imul(sr,Ce)|0,ie=ie+Math.imul(wr,xe)|0,Se=Se+Math.imul(wr,Ce)|0,me=me+Math.imul(Gt,nr)|0,ie=ie+Math.imul(Gt,ir)|0,ie=ie+Math.imul(Nt,nr)|0,Se=Se+Math.imul(Nt,ir)|0,me=me+Math.imul(Wt,oi)|0,ie=ie+Math.imul(Wt,di)|0,ie=ie+Math.imul(st,oi)|0,Se=Se+Math.imul(st,di)|0,me=me+Math.imul(Ze,fi)|0,ie=ie+Math.imul(Ze,Hi)|0,ie=ie+Math.imul(ct,fi)|0,Se=Se+Math.imul(ct,Hi)|0,me=me+Math.imul(ge,wn)|0,ie=ie+Math.imul(ge,pn)|0,ie=ie+Math.imul(Fe,wn)|0,Se=Se+Math.imul(Fe,pn)|0,me=me+Math.imul(Ae,kn)|0,ie=ie+Math.imul(Ae,ea)|0,ie=ie+Math.imul(De,kn)|0,Se=Se+Math.imul(De,ea)|0;var en=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(en>>>26)|0,en&=67108863,me=Math.imul(Tr,Wr),ie=Math.imul(Tr,Ur),ie=ie+Math.imul(Rr,Wr)|0,Se=Math.imul(Rr,Ur),me=me+Math.imul(yt,Ge)|0,ie=ie+Math.imul(yt,Je)|0,ie=ie+Math.imul(Yt,Ge)|0,Se=Se+Math.imul(Yt,Je)|0,me=me+Math.imul(Ut,$e)|0,ie=ie+Math.imul(Ut,wt)|0,ie=ie+Math.imul(Ft,$e)|0,Se=Se+Math.imul(Ft,wt)|0,me=me+Math.imul(Qe,xe)|0,ie=ie+Math.imul(Qe,Ce)|0,ie=ie+Math.imul(Et,xe)|0,Se=Se+Math.imul(Et,Ce)|0,me=me+Math.imul(sr,nr)|0,ie=ie+Math.imul(sr,ir)|0,ie=ie+Math.imul(wr,nr)|0,Se=Se+Math.imul(wr,ir)|0,me=me+Math.imul(Gt,oi)|0,ie=ie+Math.imul(Gt,di)|0,ie=ie+Math.imul(Nt,oi)|0,Se=Se+Math.imul(Nt,di)|0,me=me+Math.imul(Wt,fi)|0,ie=ie+Math.imul(Wt,Hi)|0,ie=ie+Math.imul(st,fi)|0,Se=Se+Math.imul(st,Hi)|0,me=me+Math.imul(Ze,wn)|0,ie=ie+Math.imul(Ze,pn)|0,ie=ie+Math.imul(ct,wn)|0,Se=Se+Math.imul(ct,pn)|0,me=me+Math.imul(ge,kn)|0,ie=ie+Math.imul(ge,ea)|0,ie=ie+Math.imul(Fe,kn)|0,Se=Se+Math.imul(Fe,ea)|0,me=me+Math.imul(Ae,Vt)|0,ie=ie+Math.imul(Ae,_t)|0,ie=ie+Math.imul(De,Vt)|0,Se=Se+Math.imul(De,_t)|0;var cn=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(cn>>>26)|0,cn&=67108863,me=Math.imul(Tr,Ge),ie=Math.imul(Tr,Je),ie=ie+Math.imul(Rr,Ge)|0,Se=Math.imul(Rr,Je),me=me+Math.imul(yt,$e)|0,ie=ie+Math.imul(yt,wt)|0,ie=ie+Math.imul(Yt,$e)|0,Se=Se+Math.imul(Yt,wt)|0,me=me+Math.imul(Ut,xe)|0,ie=ie+Math.imul(Ut,Ce)|0,ie=ie+Math.imul(Ft,xe)|0,Se=Se+Math.imul(Ft,Ce)|0,me=me+Math.imul(Qe,nr)|0,ie=ie+Math.imul(Qe,ir)|0,ie=ie+Math.imul(Et,nr)|0,Se=Se+Math.imul(Et,ir)|0,me=me+Math.imul(sr,oi)|0,ie=ie+Math.imul(sr,di)|0,ie=ie+Math.imul(wr,oi)|0,Se=Se+Math.imul(wr,di)|0,me=me+Math.imul(Gt,fi)|0,ie=ie+Math.imul(Gt,Hi)|0,ie=ie+Math.imul(Nt,fi)|0,Se=Se+Math.imul(Nt,Hi)|0,me=me+Math.imul(Wt,wn)|0,ie=ie+Math.imul(Wt,pn)|0,ie=ie+Math.imul(st,wn)|0,Se=Se+Math.imul(st,pn)|0,me=me+Math.imul(Ze,kn)|0,ie=ie+Math.imul(Ze,ea)|0,ie=ie+Math.imul(ct,kn)|0,Se=Se+Math.imul(ct,ea)|0,me=me+Math.imul(ge,Vt)|0,ie=ie+Math.imul(ge,_t)|0,ie=ie+Math.imul(Fe,Vt)|0,Se=Se+Math.imul(Fe,_t)|0;var yn=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(yn>>>26)|0,yn&=67108863,me=Math.imul(Tr,$e),ie=Math.imul(Tr,wt),ie=ie+Math.imul(Rr,$e)|0,Se=Math.imul(Rr,wt),me=me+Math.imul(yt,xe)|0,ie=ie+Math.imul(yt,Ce)|0,ie=ie+Math.imul(Yt,xe)|0,Se=Se+Math.imul(Yt,Ce)|0,me=me+Math.imul(Ut,nr)|0,ie=ie+Math.imul(Ut,ir)|0,ie=ie+Math.imul(Ft,nr)|0,Se=Se+Math.imul(Ft,ir)|0,me=me+Math.imul(Qe,oi)|0,ie=ie+Math.imul(Qe,di)|0,ie=ie+Math.imul(Et,oi)|0,Se=Se+Math.imul(Et,di)|0,me=me+Math.imul(sr,fi)|0,ie=ie+Math.imul(sr,Hi)|0,ie=ie+Math.imul(wr,fi)|0,Se=Se+Math.imul(wr,Hi)|0,me=me+Math.imul(Gt,wn)|0,ie=ie+Math.imul(Gt,pn)|0,ie=ie+Math.imul(Nt,wn)|0,Se=Se+Math.imul(Nt,pn)|0,me=me+Math.imul(Wt,kn)|0,ie=ie+Math.imul(Wt,ea)|0,ie=ie+Math.imul(st,kn)|0,Se=Se+Math.imul(st,ea)|0,me=me+Math.imul(Ze,Vt)|0,ie=ie+Math.imul(Ze,_t)|0,ie=ie+Math.imul(ct,Vt)|0,Se=Se+Math.imul(ct,_t)|0;var Mn=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,me=Math.imul(Tr,xe),ie=Math.imul(Tr,Ce),ie=ie+Math.imul(Rr,xe)|0,Se=Math.imul(Rr,Ce),me=me+Math.imul(yt,nr)|0,ie=ie+Math.imul(yt,ir)|0,ie=ie+Math.imul(Yt,nr)|0,Se=Se+Math.imul(Yt,ir)|0,me=me+Math.imul(Ut,oi)|0,ie=ie+Math.imul(Ut,di)|0,ie=ie+Math.imul(Ft,oi)|0,Se=Se+Math.imul(Ft,di)|0,me=me+Math.imul(Qe,fi)|0,ie=ie+Math.imul(Qe,Hi)|0,ie=ie+Math.imul(Et,fi)|0,Se=Se+Math.imul(Et,Hi)|0,me=me+Math.imul(sr,wn)|0,ie=ie+Math.imul(sr,pn)|0,ie=ie+Math.imul(wr,wn)|0,Se=Se+Math.imul(wr,pn)|0,me=me+Math.imul(Gt,kn)|0,ie=ie+Math.imul(Gt,ea)|0,ie=ie+Math.imul(Nt,kn)|0,Se=Se+Math.imul(Nt,ea)|0,me=me+Math.imul(Wt,Vt)|0,ie=ie+Math.imul(Wt,_t)|0,ie=ie+Math.imul(st,Vt)|0,Se=Se+Math.imul(st,_t)|0;var Ba=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Ba>>>26)|0,Ba&=67108863,me=Math.imul(Tr,nr),ie=Math.imul(Tr,ir),ie=ie+Math.imul(Rr,nr)|0,Se=Math.imul(Rr,ir),me=me+Math.imul(yt,oi)|0,ie=ie+Math.imul(yt,di)|0,ie=ie+Math.imul(Yt,oi)|0,Se=Se+Math.imul(Yt,di)|0,me=me+Math.imul(Ut,fi)|0,ie=ie+Math.imul(Ut,Hi)|0,ie=ie+Math.imul(Ft,fi)|0,Se=Se+Math.imul(Ft,Hi)|0,me=me+Math.imul(Qe,wn)|0,ie=ie+Math.imul(Qe,pn)|0,ie=ie+Math.imul(Et,wn)|0,Se=Se+Math.imul(Et,pn)|0,me=me+Math.imul(sr,kn)|0,ie=ie+Math.imul(sr,ea)|0,ie=ie+Math.imul(wr,kn)|0,Se=Se+Math.imul(wr,ea)|0,me=me+Math.imul(Gt,Vt)|0,ie=ie+Math.imul(Gt,_t)|0,ie=ie+Math.imul(Nt,Vt)|0,Se=Se+Math.imul(Nt,_t)|0;var la=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(la>>>26)|0,la&=67108863,me=Math.imul(Tr,oi),ie=Math.imul(Tr,di),ie=ie+Math.imul(Rr,oi)|0,Se=Math.imul(Rr,di),me=me+Math.imul(yt,fi)|0,ie=ie+Math.imul(yt,Hi)|0,ie=ie+Math.imul(Yt,fi)|0,Se=Se+Math.imul(Yt,Hi)|0,me=me+Math.imul(Ut,wn)|0,ie=ie+Math.imul(Ut,pn)|0,ie=ie+Math.imul(Ft,wn)|0,Se=Se+Math.imul(Ft,pn)|0,me=me+Math.imul(Qe,kn)|0,ie=ie+Math.imul(Qe,ea)|0,ie=ie+Math.imul(Et,kn)|0,Se=Se+Math.imul(Et,ea)|0,me=me+Math.imul(sr,Vt)|0,ie=ie+Math.imul(sr,_t)|0,ie=ie+Math.imul(wr,Vt)|0,Se=Se+Math.imul(wr,_t)|0;var ma=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(ma>>>26)|0,ma&=67108863,me=Math.imul(Tr,fi),ie=Math.imul(Tr,Hi),ie=ie+Math.imul(Rr,fi)|0,Se=Math.imul(Rr,Hi),me=me+Math.imul(yt,wn)|0,ie=ie+Math.imul(yt,pn)|0,ie=ie+Math.imul(Yt,wn)|0,Se=Se+Math.imul(Yt,pn)|0,me=me+Math.imul(Ut,kn)|0,ie=ie+Math.imul(Ut,ea)|0,ie=ie+Math.imul(Ft,kn)|0,Se=Se+Math.imul(Ft,ea)|0,me=me+Math.imul(Qe,Vt)|0,ie=ie+Math.imul(Qe,_t)|0,ie=ie+Math.imul(Et,Vt)|0,Se=Se+Math.imul(Et,_t)|0;var Wa=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Wa>>>26)|0,Wa&=67108863,me=Math.imul(Tr,wn),ie=Math.imul(Tr,pn),ie=ie+Math.imul(Rr,wn)|0,Se=Math.imul(Rr,pn),me=me+Math.imul(yt,kn)|0,ie=ie+Math.imul(yt,ea)|0,ie=ie+Math.imul(Yt,kn)|0,Se=Se+Math.imul(Yt,ea)|0,me=me+Math.imul(Ut,Vt)|0,ie=ie+Math.imul(Ut,_t)|0,ie=ie+Math.imul(Ft,Vt)|0,Se=Se+Math.imul(Ft,_t)|0;var Fa=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Fa>>>26)|0,Fa&=67108863,me=Math.imul(Tr,kn),ie=Math.imul(Tr,ea),ie=ie+Math.imul(Rr,kn)|0,Se=Math.imul(Rr,ea),me=me+Math.imul(yt,Vt)|0,ie=ie+Math.imul(yt,_t)|0,ie=ie+Math.imul(Yt,Vt)|0,Se=Se+Math.imul(Yt,_t)|0;var Wo=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Wo>>>26)|0,Wo&=67108863,me=Math.imul(Tr,Vt),ie=Math.imul(Tr,_t),ie=ie+Math.imul(Rr,Vt)|0,Se=Math.imul(Rr,_t);var da=(ke+me|0)+((ie&8191)<<13)|0;return ke=(Se+(ie>>>13)|0)+(da>>>26)|0,da&=67108863,Me[0]=tr,Me[1]=ar,Me[2]=Er,Me[3]=Zr,Me[4]=ri,Me[5]=$r,Me[6]=zi,Me[7]=Ji,Me[8]=en,Me[9]=cn,Me[10]=yn,Me[11]=Mn,Me[12]=Ba,Me[13]=la,Me[14]=ma,Me[15]=Wa,Me[16]=Fa,Me[17]=Wo,Me[18]=da,ke!==0&&(Me[19]=ke,re.length++),re};Math.imul||(L=A);function x(H,N,j){j.negative=N.negative^H.negative,j.length=H.length+N.length;for(var re=0,oe=0,_e=0;_e>>26)|0,oe+=Me>>>26,Me&=67108863}j.words[_e]=ke,re=Me,Me=oe}return re!==0?j.words[_e]=re:j.length--,j.strip()}function k(H,N,j){var re=new M;return re.mulp(H,N,j)}f.prototype.mulTo=function(N,j){var re,oe=this.length+N.length;return this.length===10&&N.length===10?re=L(this,N,j):oe<63?re=A(this,N,j):oe<1024?re=x(this,N,j):re=k(this,N,j),re};function M(H,N){this.x=H,this.y=N}M.prototype.makeRBT=function(N){for(var j=new Array(N),re=f.prototype._countBits(N)-1,oe=0;oe>=1;return oe},M.prototype.permute=function(N,j,re,oe,_e,Me){for(var ke=0;ke>>1)_e++;return 1<<_e+1+oe},M.prototype.conjugate=function(N,j,re){if(!(re<=1))for(var oe=0;oe>>13,re[2*Me+1]=_e&8191,_e=_e>>>13;for(Me=2*j;Me>=26,j+=oe/67108864|0,j+=_e>>>26,this.words[re]=_e&67108863}return j!==0&&(this.words[re]=j,this.length++),this},f.prototype.muln=function(N){return this.clone().imuln(N)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(N){var j=E(N);if(j.length===0)return new f(1);for(var re=this,oe=0;oe=0);var j=N%26,re=(N-j)/26,oe=67108863>>>26-j<<26-j,_e;if(j!==0){var Me=0;for(_e=0;_e>>26-j}Me&&(this.words[_e]=Me,this.length++)}if(re!==0){for(_e=this.length-1;_e>=0;_e--)this.words[_e+re]=this.words[_e];for(_e=0;_e=0);var oe;j?oe=(j-j%26)/26:oe=0;var _e=N%26,Me=Math.min((N-_e)/26,this.length),ke=67108863^67108863>>>_e<<_e,me=re;if(oe-=Me,oe=Math.max(0,oe),me){for(var ie=0;ieMe)for(this.length-=Me,ie=0;ie=0&&(Se!==0||ie>=oe);ie--){var Le=this.words[ie]|0;this.words[ie]=Se<<26-_e|Le>>>_e,Se=Le&ke}return me&&Se!==0&&(me.words[me.length++]=Se),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(N,j,re){return u(this.negative===0),this.iushrn(N,j,re)},f.prototype.shln=function(N){return this.clone().ishln(N)},f.prototype.ushln=function(N){return this.clone().iushln(N)},f.prototype.shrn=function(N){return this.clone().ishrn(N)},f.prototype.ushrn=function(N){return this.clone().iushrn(N)},f.prototype.testn=function(N){u(typeof N=="number"&&N>=0);var j=N%26,re=(N-j)/26,oe=1<=0);var j=N%26,re=(N-j)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=re)return this;if(j!==0&&re++,this.length=Math.min(re,this.length),j!==0){var oe=67108863^67108863>>>j<=67108864;j++)this.words[j]-=67108864,j===this.length-1?this.words[j+1]=1:this.words[j+1]++;return this.length=Math.max(this.length,j+1),this},f.prototype.isubn=function(N){if(u(typeof N=="number"),u(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var j=0;j>26)-(me/67108864|0),this.words[_e+re]=Me&67108863}for(;_e>26,this.words[_e+re]=Me&67108863;if(ke===0)return this.strip();for(u(ke===-1),ke=0,_e=0;_e>26,this.words[_e]=Me&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(N,j){var re=this.length-N.length,oe=this.clone(),_e=N,Me=_e.words[_e.length-1]|0,ke=this._countBits(Me);re=26-ke,re!==0&&(_e=_e.ushln(re),oe.iushln(re),Me=_e.words[_e.length-1]|0);var me=oe.length-_e.length,ie;if(j!=="mod"){ie=new f(null),ie.length=me+1,ie.words=new Array(ie.length);for(var Se=0;Se=0;Ae--){var De=(oe.words[_e.length+Ae]|0)*67108864+(oe.words[_e.length+Ae-1]|0);for(De=Math.min(De/Me|0,67108863),oe._ishlnsubmul(_e,De,Ae);oe.negative!==0;)De--,oe.negative=0,oe._ishlnsubmul(_e,1,Ae),oe.isZero()||(oe.negative^=1);ie&&(ie.words[Ae]=De)}return ie&&ie.strip(),oe.strip(),j!=="div"&&re!==0&&oe.iushrn(re),{div:ie||null,mod:oe}},f.prototype.divmod=function(N,j,re){if(u(!N.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var oe,_e,Me;return this.negative!==0&&N.negative===0?(Me=this.neg().divmod(N,j),j!=="mod"&&(oe=Me.div.neg()),j!=="div"&&(_e=Me.mod.neg(),re&&_e.negative!==0&&_e.iadd(N)),{div:oe,mod:_e}):this.negative===0&&N.negative!==0?(Me=this.divmod(N.neg(),j),j!=="mod"&&(oe=Me.div.neg()),{div:oe,mod:Me.mod}):(this.negative&N.negative)!==0?(Me=this.neg().divmod(N.neg(),j),j!=="div"&&(_e=Me.mod.neg(),re&&_e.negative!==0&&_e.isub(N)),{div:Me.div,mod:_e}):N.length>this.length||this.cmp(N)<0?{div:new f(0),mod:this}:N.length===1?j==="div"?{div:this.divn(N.words[0]),mod:null}:j==="mod"?{div:null,mod:new f(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new f(this.modn(N.words[0]))}:this._wordDiv(N,j)},f.prototype.div=function(N){return this.divmod(N,"div",!1).div},f.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},f.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},f.prototype.divRound=function(N){var j=this.divmod(N);if(j.mod.isZero())return j.div;var re=j.div.negative!==0?j.mod.isub(N):j.mod,oe=N.ushrn(1),_e=N.andln(1),Me=re.cmp(oe);return Me<0||_e===1&&Me===0?j.div:j.div.negative!==0?j.div.isubn(1):j.div.iaddn(1)},f.prototype.modn=function(N){u(N<=67108863);for(var j=(1<<26)%N,re=0,oe=this.length-1;oe>=0;oe--)re=(j*re+(this.words[oe]|0))%N;return re},f.prototype.idivn=function(N){u(N<=67108863);for(var j=0,re=this.length-1;re>=0;re--){var oe=(this.words[re]|0)+j*67108864;this.words[re]=oe/N|0,j=oe%N}return this.strip()},f.prototype.divn=function(N){return this.clone().idivn(N)},f.prototype.egcd=function(N){u(N.negative===0),u(!N.isZero());var j=this,re=N.clone();j.negative!==0?j=j.umod(N):j=j.clone();for(var oe=new f(1),_e=new f(0),Me=new f(0),ke=new f(1),me=0;j.isEven()&&re.isEven();)j.iushrn(1),re.iushrn(1),++me;for(var ie=re.clone(),Se=j.clone();!j.isZero();){for(var Le=0,Ae=1;(j.words[0]&Ae)===0&&Le<26;++Le,Ae<<=1);if(Le>0)for(j.iushrn(Le);Le-- >0;)(oe.isOdd()||_e.isOdd())&&(oe.iadd(ie),_e.isub(Se)),oe.iushrn(1),_e.iushrn(1);for(var De=0,Pe=1;(re.words[0]&Pe)===0&&De<26;++De,Pe<<=1);if(De>0)for(re.iushrn(De);De-- >0;)(Me.isOdd()||ke.isOdd())&&(Me.iadd(ie),ke.isub(Se)),Me.iushrn(1),ke.iushrn(1);j.cmp(re)>=0?(j.isub(re),oe.isub(Me),_e.isub(ke)):(re.isub(j),Me.isub(oe),ke.isub(_e))}return{a:Me,b:ke,gcd:re.iushln(me)}},f.prototype._invmp=function(N){u(N.negative===0),u(!N.isZero());var j=this,re=N.clone();j.negative!==0?j=j.umod(N):j=j.clone();for(var oe=new f(1),_e=new f(0),Me=re.clone();j.cmpn(1)>0&&re.cmpn(1)>0;){for(var ke=0,me=1;(j.words[0]&me)===0&&ke<26;++ke,me<<=1);if(ke>0)for(j.iushrn(ke);ke-- >0;)oe.isOdd()&&oe.iadd(Me),oe.iushrn(1);for(var ie=0,Se=1;(re.words[0]&Se)===0&&ie<26;++ie,Se<<=1);if(ie>0)for(re.iushrn(ie);ie-- >0;)_e.isOdd()&&_e.iadd(Me),_e.iushrn(1);j.cmp(re)>=0?(j.isub(re),oe.isub(_e)):(re.isub(j),_e.isub(oe))}var Le;return j.cmpn(1)===0?Le=oe:Le=_e,Le.cmpn(0)<0&&Le.iadd(N),Le},f.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var j=this.clone(),re=N.clone();j.negative=0,re.negative=0;for(var oe=0;j.isEven()&&re.isEven();oe++)j.iushrn(1),re.iushrn(1);do{for(;j.isEven();)j.iushrn(1);for(;re.isEven();)re.iushrn(1);var _e=j.cmp(re);if(_e<0){var Me=j;j=re,re=Me}else if(_e===0||re.cmpn(1)===0)break;j.isub(re)}while(!0);return re.iushln(oe)},f.prototype.invm=function(N){return this.egcd(N).a.umod(N)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(N){return this.words[0]&N},f.prototype.bincn=function(N){u(typeof N=="number");var j=N%26,re=(N-j)/26,oe=1<>>26,ke&=67108863,this.words[Me]=ke}return _e!==0&&(this.words[Me]=_e,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(N){var j=N<0;if(this.negative!==0&&!j)return-1;if(this.negative===0&&j)return 1;this.strip();var re;if(this.length>1)re=1;else{j&&(N=-N),u(N<=67108863,"Number is too big");var oe=this.words[0]|0;re=oe===N?0:oeN.length)return 1;if(this.length=0;re--){var oe=this.words[re]|0,_e=N.words[re]|0;if(oe!==_e){oe<_e?j=-1:oe>_e&&(j=1);break}}return j},f.prototype.gtn=function(N){return this.cmpn(N)===1},f.prototype.gt=function(N){return this.cmp(N)===1},f.prototype.gten=function(N){return this.cmpn(N)>=0},f.prototype.gte=function(N){return this.cmp(N)>=0},f.prototype.ltn=function(N){return this.cmpn(N)===-1},f.prototype.lt=function(N){return this.cmp(N)===-1},f.prototype.lten=function(N){return this.cmpn(N)<=0},f.prototype.lte=function(N){return this.cmp(N)<=0},f.prototype.eqn=function(N){return this.cmpn(N)===0},f.prototype.eq=function(N){return this.cmp(N)===0},f.red=function(N){return new G(N)},f.prototype.toRed=function(N){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},f.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(N){return this.red=N,this},f.prototype.forceRed=function(N){return u(!this.red,"Already a number in reduction context"),this._forceRed(N)},f.prototype.redAdd=function(N){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},f.prototype.redIAdd=function(N){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},f.prototype.redSub=function(N){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},f.prototype.redISub=function(N){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},f.prototype.redShl=function(N){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},f.prototype.redMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},f.prototype.redIMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},f.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(N){return u(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var g={k256:null,p224:null,p192:null,p25519:null};function P(H,N){this.name=H,this.p=new f(N,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}P.prototype._tmp=function(){var N=new f(null);return N.words=new Array(Math.ceil(this.n/13)),N},P.prototype.ireduce=function(N){var j=N,re;do this.split(j,this.tmp),j=this.imulK(j),j=j.iadd(this.tmp),re=j.bitLength();while(re>this.n);var oe=re0?j.isub(this.p):j.strip!==void 0?j.strip():j._strip(),j},P.prototype.split=function(N,j){N.iushrn(this.n,0,j)},P.prototype.imulK=function(N){return N.imul(this.k)};function T(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(T,P),T.prototype.split=function(N,j){for(var re=4194303,oe=Math.min(N.length,9),_e=0;_e>>22,Me=ke}Me>>>=22,N.words[_e-10]=Me,Me===0&&N.length>10?N.length-=10:N.length-=9},T.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var j=0,re=0;re>>=26,N.words[re]=_e,j=oe}return j!==0&&(N.words[N.length++]=j),N},f._prime=function(N){if(g[N])return g[N];var j;if(N==="k256")j=new T;else if(N==="p224")j=new z;else if(N==="p192")j=new O;else if(N==="p25519")j=new V;else throw new Error("Unknown prime "+N);return g[N]=j,j};function G(H){if(typeof H=="string"){var N=f._prime(H);this.m=N.p,this.prime=N}else u(H.gtn(1),"modulus must be greater than 1"),this.m=H,this.prime=null}G.prototype._verify1=function(N){u(N.negative===0,"red works only with positives"),u(N.red,"red works only with red numbers")},G.prototype._verify2=function(N,j){u((N.negative|j.negative)===0,"red works only with positives"),u(N.red&&N.red===j.red,"red works only with red numbers")},G.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},G.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},G.prototype.add=function(N,j){this._verify2(N,j);var re=N.add(j);return re.cmp(this.m)>=0&&re.isub(this.m),re._forceRed(this)},G.prototype.iadd=function(N,j){this._verify2(N,j);var re=N.iadd(j);return re.cmp(this.m)>=0&&re.isub(this.m),re},G.prototype.sub=function(N,j){this._verify2(N,j);var re=N.sub(j);return re.cmpn(0)<0&&re.iadd(this.m),re._forceRed(this)},G.prototype.isub=function(N,j){this._verify2(N,j);var re=N.isub(j);return re.cmpn(0)<0&&re.iadd(this.m),re},G.prototype.shl=function(N,j){return this._verify1(N),this.imod(N.ushln(j))},G.prototype.imul=function(N,j){return this._verify2(N,j),this.imod(N.imul(j))},G.prototype.mul=function(N,j){return this._verify2(N,j),this.imod(N.mul(j))},G.prototype.isqr=function(N){return this.imul(N,N.clone())},G.prototype.sqr=function(N){return this.mul(N,N)},G.prototype.sqrt=function(N){if(N.isZero())return N.clone();var j=this.m.andln(3);if(u(j%2===1),j===3){var re=this.m.add(new f(1)).iushrn(2);return this.pow(N,re)}for(var oe=this.m.subn(1),_e=0;!oe.isZero()&&oe.andln(1)===0;)_e++,oe.iushrn(1);u(!oe.isZero());var Me=new f(1).toRed(this),ke=Me.redNeg(),me=this.m.subn(1).iushrn(1),ie=this.m.bitLength();for(ie=new f(2*ie*ie).toRed(this);this.pow(ie,me).cmp(ke)!==0;)ie.redIAdd(ke);for(var Se=this.pow(ie,oe),Le=this.pow(N,oe.addn(1).iushrn(1)),Ae=this.pow(N,oe),De=_e;Ae.cmp(Me)!==0;){for(var Pe=Ae,ge=0;Pe.cmp(Me)!==0;ge++)Pe=Pe.redSqr();u(ge=0;_e--){for(var Se=j.words[_e],Le=ie-1;Le>=0;Le--){var Ae=Se>>Le&1;if(Me!==oe[0]&&(Me=this.sqr(Me)),Ae===0&&ke===0){me=0;continue}ke<<=1,ke|=Ae,me++,!(me!==re&&(_e!==0||Le!==0))&&(Me=this.mul(Me,oe[ke]),me=0,ke=0)}ie=26}return Me},G.prototype.convertTo=function(N){var j=N.umod(this.m);return j===N?j.clone():j},G.prototype.convertFrom=function(N){var j=N.clone();return j.red=null,j},f.mont=function(N){return new Z(N)};function Z(H){G.call(this,H),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}c(Z,G),Z.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},Z.prototype.convertFrom=function(N){var j=this.imod(N.mul(this.rinv));return j.red=null,j},Z.prototype.imul=function(N,j){if(N.isZero()||j.isZero())return N.words[0]=0,N.length=1,N;var re=N.imul(j),oe=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_e=re.isub(oe).iushrn(this.shift),Me=_e;return _e.cmp(this.m)>=0?Me=_e.isub(this.m):_e.cmpn(0)<0&&(Me=_e.iadd(this.m)),Me._forceRed(this)},Z.prototype.mul=function(N,j){if(N.isZero()||j.isZero())return new f(0)._forceRed(this);var re=N.mul(j),oe=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_e=re.isub(oe).iushrn(this.shift),Me=_e;return _e.cmp(this.m)>=0?Me=_e.isub(this.m):_e.cmpn(0)<0&&(Me=_e.iadd(this.m)),Me._forceRed(this)},Z.prototype.invm=function(N){var j=this.imod(N._invmp(this.m).mul(this.r2));return j._forceRed(this)}}(i,this)},6204:function(i){"use strict";i.exports=a;function a(o){var s,l,u,c=o.length,f=0;for(s=0;s>>1;if(!(M<=0)){var g,P=s.mallocDouble(2*M*x),T=s.mallocInt32(x);if(x=f(C,M,P,T),x>0){if(M===1&&L)l.init(x),g=l.sweepComplete(M,A,0,x,P,T,0,x,P,T);else{var z=s.mallocDouble(2*M*k),O=s.mallocInt32(k);k=f(E,M,z,O),k>0&&(l.init(x+k),M===1?g=l.sweepBipartite(M,A,0,x,P,T,0,k,z,O):g=u(M,A,L,x,P,T,k,z,O),s.free(z),s.free(O))}s.free(P),s.free(T)}return g}}}var d;function v(C,E){d.push([C,E])}function _(C){return d=[],h(C,C,v,!0),d}function b(C,E){return d=[],h(C,E,v,!1),d}function p(C,E,A){switch(arguments.length){case 1:return _(C);case 2:return typeof E=="function"?h(C,C,E,!0):b(C,E);case 3:return h(C,E,A,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(i,a){"use strict";function o(){function u(h,d,v,_,b,p,C,E,A,L,x){for(var k=2*h,M=_,g=k*_;MA-E?u(h,d,v,_,b,p,C,E,A,L,x):c(h,d,v,_,b,p,C,E,A,L,x)}return f}function s(){function u(v,_,b,p,C,E,A,L,x,k,M){for(var g=2*v,P=p,T=g*p;Pk-x?p?u(v,_,b,C,E,A,L,x,k,M,g):c(v,_,b,C,E,A,L,x,k,M,g):p?f(v,_,b,C,E,A,L,x,k,M,g):h(v,_,b,C,E,A,L,x,k,M,g)}return d}function l(u){return u?o():s()}a.partial=l(!1),a.full=l(!0)},7150:function(i,a,o){"use strict";i.exports=H;var s=o(1888),l=o(8828),u=o(2455),c=u.partial,f=u.full,h=o(855),d=o(3545),v=o(8105),_=128,b=1<<22,p=1<<22,C=v("!(lo>=p0)&&!(p1>=hi)"),E=v("lo===p0"),A=v("lo0;){Se-=1;var De=Se*M,Pe=T[De],ge=T[De+1],Fe=T[De+2],ce=T[De+3],Ze=T[De+4],ct=T[De+5],pt=Se*g,Wt=z[pt],st=z[pt+1],lt=ct&1,Gt=!!(ct&16),Nt=_e,$t=Me,sr=me,wr=ie;if(lt&&(Nt=me,$t=ie,sr=_e,wr=Me),!(ct&2&&(Fe=A(N,Pe,ge,Fe,Nt,$t,st),ge>=Fe))&&!(ct&4&&(ge=L(N,Pe,ge,Fe,Nt,$t,Wt),ge>=Fe))){var ur=Fe-ge,Qe=Ze-ce;if(Gt){if(N*ur*(ur+Qe)v&&b[k+d]>L;--x,k-=C){for(var M=k,g=k+C,P=0;P>>1,L=2*h,x=A,k=b[L*A+d];C=z?(x=T,k=z):P>=V?(x=g,k=P):(x=O,k=V):z>=V?(x=T,k=z):V>=P?(x=g,k=P):(x=O,k=V);for(var H=L*(E-1),N=L*x,G=0;G=p0)&&!(p1>=hi)":d};function o(v){return a[v]}function s(v,_,b,p,C,E,A){for(var L=2*v,x=L*b,k=x,M=b,g=_,P=v+_,T=b;p>T;++T,x+=L){var z=C[x+g];if(z===A)if(M===T)M+=1,k+=L;else{for(var O=0;L>O;++O){var V=C[x+O];C[x+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function l(v,_,b,p,C,E,A){for(var L=2*v,x=L*b,k=x,M=b,g=_,P=v+_,T=b;p>T;++T,x+=L){var z=C[x+g];if(zO;++O){var V=C[x+O];C[x+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function u(v,_,b,p,C,E,A){for(var L=2*v,x=L*b,k=x,M=b,g=_,P=v+_,T=b;p>T;++T,x+=L){var z=C[x+P];if(z<=A)if(M===T)M+=1,k+=L;else{for(var O=0;L>O;++O){var V=C[x+O];C[x+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function c(v,_,b,p,C,E,A){for(var L=2*v,x=L*b,k=x,M=b,g=_,P=v+_,T=b;p>T;++T,x+=L){var z=C[x+P];if(z<=A)if(M===T)M+=1,k+=L;else{for(var O=0;L>O;++O){var V=C[x+O];C[x+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function f(v,_,b,p,C,E,A){for(var L=2*v,x=L*b,k=x,M=b,g=_,P=v+_,T=b;p>T;++T,x+=L){var z=C[x+g],O=C[x+P];if(z<=A&&A<=O)if(M===T)M+=1,k+=L;else{for(var V=0;L>V;++V){var G=C[x+V];C[x+V]=C[k],C[k++]=G}var Z=E[T];E[T]=E[M],E[M++]=Z}}return M}function h(v,_,b,p,C,E,A){for(var L=2*v,x=L*b,k=x,M=b,g=_,P=v+_,T=b;p>T;++T,x+=L){var z=C[x+g],O=C[x+P];if(zV;++V){var G=C[x+V];C[x+V]=C[k],C[k++]=G}var Z=E[T];E[T]=E[M],E[M++]=Z}}return M}function d(v,_,b,p,C,E,A,L){for(var x=2*v,k=x*b,M=k,g=b,P=_,T=v+_,z=b;p>z;++z,k+=x){var O=C[k+P],V=C[k+T];if(!(O>=A)&&!(L>=V))if(g===z)g+=1,M+=x;else{for(var G=0;x>G;++G){var Z=C[k+G];C[k+G]=C[M],C[M++]=Z}var H=E[z];E[z]=E[g],E[g++]=H}}return g}},4192:function(i){"use strict";i.exports=o;var a=32;function o(_,b){b<=4*a?s(0,b-1,_):v(0,b-1,_)}function s(_,b,p){for(var C=2*(_+1),E=_+1;E<=b;++E){for(var A=p[C++],L=p[C++],x=E,k=C-2;x-- >_;){var M=p[k-2],g=p[k-1];if(Mp[b+1]:!0}function d(_,b,p,C){_*=2;var E=C[_];return E>1,x=L-C,k=L+C,M=E,g=x,P=L,T=k,z=A,O=_+1,V=b-1,G=0;h(M,g,p)&&(G=M,M=g,g=G),h(T,z,p)&&(G=T,T=z,z=G),h(M,P,p)&&(G=M,M=P,P=G),h(g,P,p)&&(G=g,g=P,P=G),h(M,T,p)&&(G=M,M=T,T=G),h(P,T,p)&&(G=P,P=T,T=G),h(g,z,p)&&(G=g,g=z,z=G),h(g,P,p)&&(G=g,g=P,P=G),h(T,z,p)&&(G=T,T=z,z=G);for(var Z=p[2*g],H=p[2*g+1],N=p[2*T],j=p[2*T+1],re=2*M,oe=2*P,_e=2*z,Me=2*E,ke=2*L,me=2*A,ie=0;ie<2;++ie){var Se=p[re+ie],Le=p[oe+ie],Ae=p[_e+ie];p[Me+ie]=Se,p[ke+ie]=Le,p[me+ie]=Ae}u(x,_,p),u(k,b,p);for(var De=O;De<=V;++De)if(d(De,Z,H,p))De!==O&&l(De,O,p),++O;else if(!d(De,N,j,p))for(;;)if(d(V,N,j,p)){d(V,Z,H,p)?(c(De,O,V,p),++O,--V):(l(De,V,p),--V);break}else{if(--V>>1;u(C,Le);for(var Ae=0,De=0,ke=0;ke=c)Pe=Pe-c|0,A(v,_,De--,Pe);else if(Pe>=0)A(h,d,Ae--,Pe);else if(Pe<=-c){Pe=-Pe-c|0;for(var ge=0;ge>>1;u(C,Le);for(var Ae=0,De=0,Pe=0,ke=0;ke>1===C[2*ke+3]>>1&&(Fe=2,ke+=1),ge<0){for(var ce=-(ge>>1)-1,Ze=0;Ze>1)-1;Fe===0?A(h,d,Ae--,ce):Fe===1?A(v,_,De--,ce):Fe===2&&A(b,p,Pe--,ce)}}}function M(P,T,z,O,V,G,Z,H,N,j,re,oe){var _e=0,Me=2*P,ke=T,me=T+P,ie=1,Se=1;O?Se=c:ie=c;for(var Le=V;Le>>1;u(C,ge);for(var Fe=0,Le=0;Le=c?(Ze=!O,Ae-=c):(Ze=!!O,Ae-=1),Ze)L(h,d,Fe++,Ae);else{var ct=oe[Ae],pt=Me*Ae,Wt=re[pt+T+1],st=re[pt+T+1+P];e:for(var lt=0;lt>>1;u(C,Ae);for(var De=0,me=0;me=c)h[De++]=ie-c;else{ie-=1;var ge=re[ie],Fe=_e*ie,ce=j[Fe+T+1],Ze=j[Fe+T+1+P];e:for(var ct=0;ct=0;--ct)if(h[ct]===ie){for(var lt=ct+1;lt0;){for(var E=d.pop(),b=d.pop(),A=-1,L=-1,p=_[b],k=1;k=0||(h.flip(b,E),u(f,h,d,A,b,L),u(f,h,d,b,L,A),u(f,h,d,L,E,A),u(f,h,d,E,A,L))}}},5023:function(i,a,o){"use strict";var s=o(2478);i.exports=d;function l(v,_,b,p,C,E,A){this.cells=v,this.neighbor=_,this.flags=p,this.constraint=b,this.active=C,this.next=E,this.boundary=A}var u=l.prototype;function c(v,_){return v[0]-_[0]||v[1]-_[1]||v[2]-_[2]}u.locate=function(){var v=[0,0,0];return function(_,b,p){var C=_,E=b,A=p;return b0||A.length>0;){for(;E.length>0;){var g=E.pop();if(L[g]!==-C){L[g]=C;for(var P=x[g],T=0;T<3;++T){var z=M[3*g+T];z>=0&&L[z]===0&&(k[3*g+T]?A.push(z):(E.push(z),L[z]=C))}}}var O=A;A=E,E=O,A.length=0,C=-C}var V=h(x,L,_);return b?V.concat(p.boundary):V}},8902:function(i,a,o){"use strict";var s=o(2478),l=o(3250)[3],u=0,c=1,f=2;i.exports=A;function h(L,x,k,M,g){this.a=L,this.b=x,this.idx=k,this.lowerIds=M,this.upperIds=g}function d(L,x,k,M){this.a=L,this.b=x,this.type=k,this.idx=M}function v(L,x){var k=L.a[0]-x.a[0]||L.a[1]-x.a[1]||L.type-x.type;return k||L.type!==u&&(k=l(L.a,L.b,x.b),k)?k:L.idx-x.idx}function _(L,x){return l(L.a,L.b,x)}function b(L,x,k,M,g){for(var P=s.lt(x,M,_),T=s.gt(x,M,_),z=P;z1&&l(k[V[Z-2]],k[V[Z-1]],M)>0;)L.push([V[Z-1],V[Z-2],g]),Z-=1;V.length=Z,V.push(g);for(var G=O.upperIds,Z=G.length;Z>1&&l(k[G[Z-2]],k[G[Z-1]],M)<0;)L.push([G[Z-2],G[Z-1],g]),Z-=1;G.length=Z,G.push(g)}}function p(L,x){var k;return L.a[0]O[0]&&g.push(new d(O,z,f,P),new d(z,O,c,P))}g.sort(v);for(var V=g[0].a[0]-(1+Math.abs(g[0].a[0]))*Math.pow(2,-52),G=[new h([V,1],[V,0],-1,[],[],[],[])],Z=[],P=0,H=g.length;P=0}}(),u.removeTriangle=function(h,d,v){var _=this.stars;c(_[h],d,v),c(_[d],v,h),c(_[v],h,d)},u.addTriangle=function(h,d,v){var _=this.stars;_[h].push(d,v),_[d].push(v,h),_[v].push(h,d)},u.opposite=function(h,d){for(var v=this.stars[d],_=1,b=v.length;_=0;--N){var Se=Z[N];j=Se[0];var Le=V[j],Ae=Le[0],De=Le[1],Pe=O[Ae],ge=O[De];if((Pe[0]-ge[0]||Pe[1]-ge[1])<0){var Fe=Ae;Ae=De,De=Fe}Le[0]=Ae;var ce=Le[1]=Se[1],Ze;for(H&&(Ze=Le[2]);N>0&&Z[N-1][0]===j;){var Se=Z[--N],ct=Se[1];H?V.push([ce,ct,Ze]):V.push([ce,ct]),ce=ct}H?V.push([ce,De,Ze]):V.push([ce,De])}return re}function x(O,V,G){for(var Z=V.length,H=new s(Z),N=[],j=0;jV[2]?1:0)}function g(O,V,G){if(O.length!==0){if(V)for(var Z=0;Z0||j.length>0}function z(O,V,G){var Z;if(G){Z=V;for(var H=new Array(V.length),N=0;NL+1)throw new Error(E+" map requires nshades to be at least size "+C.length);Array.isArray(d.alpha)?d.alpha.length!==2?x=[1,1]:x=d.alpha.slice():typeof d.alpha=="number"?x=[d.alpha,d.alpha]:x=[1,1],v=C.map(function(z){return Math.round(z.index*L)}),x[0]=Math.min(Math.max(x[0],0),1),x[1]=Math.min(Math.max(x[1],0),1);var M=C.map(function(z,O){var V=C[O].index,G=C[O].rgb.slice();return G.length===4&&G[3]>=0&&G[3]<=1||(G[3]=x[0]+(x[1]-x[0])*V),G}),g=[];for(k=0;k=0}function d(v,_,b,p){var C=s(_,b,p);if(C===0){var E=l(s(v,_,b)),A=l(s(v,_,p));if(E===A){if(E===0){var L=h(v,_,b),x=h(v,_,p);return L===x?0:L?1:-1}return 0}else{if(A===0)return E>0||h(v,_,p)?-1:1;if(E===0)return A>0||h(v,_,b)?1:-1}return l(A-E)}var k=s(v,_,b);if(k>0)return C>0&&s(v,_,p)>0?1:-1;if(k<0)return C>0||s(v,_,p)>0?1:-1;var M=s(v,_,p);return M>0||h(v,_,b)?1:-1}},8572:function(i){"use strict";i.exports=function(o){return o<0?-1:o>0?1:0}},8507:function(i){i.exports=s;var a=Math.min;function o(l,u){return l-u}function s(l,u){var c=l.length,f=l.length-u.length;if(f)return f;switch(c){case 0:return 0;case 1:return l[0]-u[0];case 2:return l[0]+l[1]-u[0]-u[1]||a(l[0],l[1])-a(u[0],u[1]);case 3:var h=l[0]+l[1],d=u[0]+u[1];if(f=h+l[2]-(d+u[2]),f)return f;var v=a(l[0],l[1]),_=a(u[0],u[1]);return a(v,l[2])-a(_,u[2])||a(v+l[2],h)-a(_+u[2],d);case 4:var b=l[0],p=l[1],C=l[2],E=l[3],A=u[0],L=u[1],x=u[2],k=u[3];return b+p+C+E-(A+L+x+k)||a(b,p,C,E)-a(A,L,x,k,A)||a(b+p,b+C,b+E,p+C,p+E,C+E)-a(A+L,A+x,A+k,L+x,L+k,x+k)||a(b+p+C,b+p+E,b+C+E,p+C+E)-a(A+L+x,A+L+k,A+x+k,L+x+k);default:for(var M=l.slice().sort(o),g=u.slice().sort(o),P=0;Po[l][0]&&(l=u);return sl?[[l],[s]]:[[s]]}},4750:function(i,a,o){"use strict";i.exports=l;var s=o(3090);function l(u){var c=s(u),f=c.length;if(f<=2)return[];for(var h=new Array(f),d=c[f-1],v=0;v=d[A]&&(E+=1);p[C]=E}}return h}function f(h,d){try{return s(h,!0)}catch(p){var v=l(h);if(v.length<=d)return[];var _=u(h,v),b=s(_,!0);return c(b,v)}}},4769:function(i){"use strict";function a(s,l,u,c,f,h){var d=6*f*f-6*f,v=3*f*f-4*f+1,_=-6*f*f+6*f,b=3*f*f-2*f;if(s.length){h||(h=new Array(s.length));for(var p=s.length-1;p>=0;--p)h[p]=d*s[p]+v*l[p]+_*u[p]+b*c[p];return h}return d*s+v*l+_*u[p]+b*c}function o(s,l,u,c,f,h){var d=f-1,v=f*f,_=d*d,b=(1+2*f)*_,p=f*_,C=v*(3-2*f),E=v*d;if(s.length){h||(h=new Array(s.length));for(var A=s.length-1;A>=0;--A)h[A]=b*s[A]+p*l[A]+C*u[A]+E*c[A];return h}return b*s+p*l+C*u+E*c}i.exports=o,i.exports.derivative=a},7642:function(i,a,o){"use strict";var s=o(8954),l=o(1682);i.exports=h;function u(d,v){this.point=d,this.index=v}function c(d,v){for(var _=d.point,b=v.point,p=_.length,C=0;C=2)return!1;G[H]=N}return!0}):V=V.filter(function(G){for(var Z=0;Z<=b;++Z){var H=P[G[Z]];if(H<0)return!1;G[Z]=H}return!0}),b&1)for(var E=0;E>>31},i.exports.exponent=function(C){var E=i.exports.hi(C);return(E<<1>>>21)-1023},i.exports.fraction=function(C){var E=i.exports.lo(C),A=i.exports.hi(C),L=A&(1<<20)-1;return A&2146435072&&(L+=1048576),[E,L]},i.exports.denormalized=function(C){var E=i.exports.hi(C);return!(E&2146435072)}},1338:function(i){"use strict";function a(l,u,c){var f=l[c]|0;if(f<=0)return[];var h=new Array(f),d;if(c===l.length-1)for(d=0;d0)return o(l|0,u);break;case"object":if(typeof l.length=="number")return a(l,u,0);break}return[]}i.exports=s},3134:function(i,a,o){"use strict";i.exports=l;var s=o(1682);function l(u,c){var f=u.length;if(typeof c!="number"){c=0;for(var h=0;h=b-1)for(var k=E.length-1,g=v-_[b-1],M=0;M=b-1)for(var x=E.length-1,k=v-_[b-1],M=0;M=0;--b)if(v[--_])return!1;return!0},f.jump=function(v){var _=this.lastT(),b=this.dimension;if(!(v<_||arguments.length!==b+1)){var p=this._state,C=this._velocity,E=p.length-this.dimension,A=this.bounds,L=A[0],x=A[1];this._time.push(_,v);for(var k=0;k<2;++k)for(var M=0;M0;--M)p.push(u(L[M-1],x[M-1],arguments[M])),C.push(0)}},f.push=function(v){var _=this.lastT(),b=this.dimension;if(!(v<_||arguments.length!==b+1)){var p=this._state,C=this._velocity,E=p.length-this.dimension,A=v-_,L=this.bounds,x=L[0],k=L[1],M=A>1e-6?1/A:0;this._time.push(v);for(var g=b;g>0;--g){var P=u(x[g-1],k[g-1],arguments[g]);p.push(P),C.push((P-p[E++])*M)}}},f.set=function(v){var _=this.dimension;if(!(v0;--L)b.push(u(E[L-1],A[L-1],arguments[L])),p.push(0)}},f.move=function(v){var _=this.lastT(),b=this.dimension;if(!(v<=_||arguments.length!==b+1)){var p=this._state,C=this._velocity,E=p.length-this.dimension,A=this.bounds,L=A[0],x=A[1],k=v-_,M=k>1e-6?1/k:0;this._time.push(v);for(var g=b;g>0;--g){var P=arguments[g];p.push(u(L[g-1],x[g-1],p[E++]+P)),C.push(P*M)}}},f.idle=function(v){var _=this.lastT();if(!(v<_)){var b=this.dimension,p=this._state,C=this._velocity,E=p.length-b,A=this.bounds,L=A[0],x=A[1],k=v-_;this._time.push(v);for(var M=b-1;M>=0;--M)p.push(u(L[M],x[M],p[E]+k*C[E])),C.push(0),E+=1}};function h(v){for(var _=new Array(v),b=0;b=0;--O){var g=P[O];T[O]<=0?P[O]=new s(g._color,g.key,g.value,P[O+1],g.right,g._count+1):P[O]=new s(g._color,g.key,g.value,g.left,P[O+1],g._count+1)}for(var O=P.length-1;O>1;--O){var V=P[O-1],g=P[O];if(V._color===o||g._color===o)break;var G=P[O-2];if(G.left===V)if(V.left===g){var Z=G.right;if(Z&&Z._color===a)V._color=o,G.right=u(o,Z),G._color=a,O-=1;else{if(G._color=a,G.left=V.right,V._color=o,V.right=G,P[O-2]=V,P[O-1]=g,c(G),c(V),O>=3){var H=P[O-3];H.left===G?H.left=V:H.right=V}break}}else{var Z=G.right;if(Z&&Z._color===a)V._color=o,G.right=u(o,Z),G._color=a,O-=1;else{if(V.right=g.left,G._color=a,G.left=g.right,g._color=o,g.left=V,g.right=G,P[O-2]=g,P[O-1]=V,c(G),c(V),c(g),O>=3){var H=P[O-3];H.left===G?H.left=g:H.right=g}break}}else if(V.right===g){var Z=G.left;if(Z&&Z._color===a)V._color=o,G.left=u(o,Z),G._color=a,O-=1;else{if(G._color=a,G.right=V.left,V._color=o,V.left=G,P[O-2]=V,P[O-1]=g,c(G),c(V),O>=3){var H=P[O-3];H.right===G?H.right=V:H.left=V}break}}else{var Z=G.left;if(Z&&Z._color===a)V._color=o,G.left=u(o,Z),G._color=a,O-=1;else{if(V.left=g.right,G._color=a,G.right=g.left,g._color=o,g.right=V,g.left=G,P[O-2]=g,P[O-1]=V,c(G),c(V),c(g),O>=3){var H=P[O-3];H.right===G?H.right=g:H.left=g}break}}}return P[0]._color=o,new f(M,P[0])};function d(x,k){if(k.left){var M=d(x,k.left);if(M)return M}var M=x(k.key,k.value);if(M)return M;if(k.right)return d(x,k.right)}function v(x,k,M,g){var P=k(x,g.key);if(P<=0){if(g.left){var T=v(x,k,M,g.left);if(T)return T}var T=M(g.key,g.value);if(T)return T}if(g.right)return v(x,k,M,g.right)}function _(x,k,M,g,P){var T=M(x,P.key),z=M(k,P.key),O;if(T<=0&&(P.left&&(O=_(x,k,M,g,P.left),O)||z>0&&(O=g(P.key,P.value),O)))return O;if(z>0&&P.right)return _(x,k,M,g,P.right)}h.forEach=function(k,M,g){if(this.root)switch(arguments.length){case 1:return d(k,this.root);case 2:return v(M,this._compare,k,this.root);case 3:return this._compare(M,g)>=0?void 0:_(M,g,this._compare,k,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var x=[],k=this.root;k;)x.push(k),k=k.left;return new b(this,x)}}),Object.defineProperty(h,"end",{get:function(){for(var x=[],k=this.root;k;)x.push(k),k=k.right;return new b(this,x)}}),h.at=function(x){if(x<0)return new b(this,[]);for(var k=this.root,M=[];;){if(M.push(k),k.left){if(x=k.right._count)break;k=k.right}else break}return new b(this,[])},h.ge=function(x){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(x,M.key);g.push(M),T<=0&&(P=g.length),T<=0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.gt=function(x){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(x,M.key);g.push(M),T<0&&(P=g.length),T<0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.lt=function(x){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(x,M.key);g.push(M),T>0&&(P=g.length),T<=0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.le=function(x){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(x,M.key);g.push(M),T>=0&&(P=g.length),T<0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.find=function(x){for(var k=this._compare,M=this.root,g=[];M;){var P=k(x,M.key);if(g.push(M),P===0)return new b(this,g);P<=0?M=M.left:M=M.right}return new b(this,[])},h.remove=function(x){var k=this.find(x);return k?k.remove():this},h.get=function(x){for(var k=this._compare,M=this.root;M;){var g=k(x,M.key);if(g===0)return M.value;g<=0?M=M.left:M=M.right}};function b(x,k){this.tree=x,this._stack=k}var p=b.prototype;Object.defineProperty(p,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(p,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new b(this.tree,this._stack.slice())};function C(x,k){x.key=k.key,x.value=k.value,x.left=k.left,x.right=k.right,x._color=k._color,x._count=k._count}function E(x){for(var k,M,g,P,T=x.length-1;T>=0;--T){if(k=x[T],T===0){k._color=o;return}if(M=x[T-1],M.left===k){if(g=M.right,g.right&&g.right._color===a){if(g=M.right=l(g),P=g.right=l(g.right),M.right=g.left,g.left=M,g.right=P,g._color=M._color,k._color=o,M._color=o,P._color=o,c(M),c(g),T>1){var z=x[T-2];z.left===M?z.left=g:z.right=g}x[T-1]=g;return}else if(g.left&&g.left._color===a){if(g=M.right=l(g),P=g.left=l(g.left),M.right=P.left,g.left=P.right,P.left=M,P.right=g,P._color=M._color,M._color=o,g._color=o,k._color=o,c(M),c(g),c(P),T>1){var z=x[T-2];z.left===M?z.left=P:z.right=P}x[T-1]=P;return}if(g._color===o)if(M._color===a){M._color=o,M.right=u(a,g);return}else{M.right=u(a,g);continue}else{if(g=l(g),M.right=g.left,g.left=M,g._color=M._color,M._color=a,c(M),c(g),T>1){var z=x[T-2];z.left===M?z.left=g:z.right=g}x[T-1]=g,x[T]=M,T+11){var z=x[T-2];z.right===M?z.right=g:z.left=g}x[T-1]=g;return}else if(g.right&&g.right._color===a){if(g=M.left=l(g),P=g.right=l(g.right),M.left=P.right,g.right=P.left,P.right=M,P.left=g,P._color=M._color,M._color=o,g._color=o,k._color=o,c(M),c(g),c(P),T>1){var z=x[T-2];z.right===M?z.right=P:z.left=P}x[T-1]=P;return}if(g._color===o)if(M._color===a){M._color=o,M.left=u(a,g);return}else{M.left=u(a,g);continue}else{if(g=l(g),M.left=g.right,g.right=M,g._color=M._color,M._color=a,c(M),c(g),T>1){var z=x[T-2];z.right===M?z.right=g:z.left=g}x[T-1]=g,x[T]=M,T+1=0;--g){var M=x[g];M.left===x[g+1]?k[g]=new s(M._color,M.key,M.value,k[g+1],M.right,M._count):k[g]=new s(M._color,M.key,M.value,M.left,k[g+1],M._count)}if(M=k[k.length-1],M.left&&M.right){var P=k.length;for(M=M.left;M.right;)k.push(M),M=M.right;var T=k[P-1];k.push(new s(M._color,T.key,T.value,M.left,M.right,M._count)),k[P-1].key=M.key,k[P-1].value=M.value;for(var g=k.length-2;g>=P;--g)M=k[g],k[g]=new s(M._color,M.key,M.value,M.left,k[g+1],M._count);k[P-1].left=k[P]}if(M=k[k.length-1],M._color===a){var z=k[k.length-2];z.left===M?z.left=null:z.right===M&&(z.right=null),k.pop();for(var g=0;g0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,"index",{get:function(){var x=0,k=this._stack;if(k.length===0){var M=this.tree.root;return M?M._count:0}else k[k.length-1].left&&(x=k[k.length-1].left._count);for(var g=k.length-2;g>=0;--g)k[g+1]===k[g].right&&(++x,k[g].left&&(x+=k[g].left._count));return x},enumerable:!0}),p.next=function(){var x=this._stack;if(x.length!==0){var k=x[x.length-1];if(k.right)for(k=k.right;k;)x.push(k),k=k.left;else for(x.pop();x.length>0&&x[x.length-1].right===k;)k=x[x.length-1],x.pop()}},Object.defineProperty(p,"hasNext",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].right)return!0;for(var k=x.length-1;k>0;--k)if(x[k-1].left===x[k])return!0;return!1}}),p.update=function(x){var k=this._stack;if(k.length===0)throw new Error("Can't update empty node!");var M=new Array(k.length),g=k[k.length-1];M[M.length-1]=new s(g._color,g.key,x,g.left,g.right,g._count);for(var P=k.length-2;P>=0;--P)g=k[P],g.left===k[P+1]?M[P]=new s(g._color,g.key,g.value,M[P+1],g.right,g._count):M[P]=new s(g._color,g.key,g.value,g.left,M[P+1],g._count);return new f(this.tree._compare,M[0])},p.prev=function(){var x=this._stack;if(x.length!==0){var k=x[x.length-1];if(k.left)for(k=k.left;k;)x.push(k),k=k.right;else for(x.pop();x.length>0&&x[x.length-1].left===k;)k=x[x.length-1],x.pop()}},Object.defineProperty(p,"hasPrev",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].left)return!0;for(var k=x.length-1;k>0;--k)if(x[k-1].right===x[k])return!0;return!1}});function A(x,k){return xk?1:0}function L(x){return new f(x||A,null)}},3837:function(i,a,o){"use strict";i.exports=O;var s=o(4935),l=o(501),u=o(5304),c=o(6429),f=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=ArrayBuffer,v=DataView;function _(V){return d.isView(V)&&!(V instanceof v)}function b(V){return Array.isArray(V)||_(V)}function p(V,G){return V[0]=G[0],V[1]=G[1],V[2]=G[2],V}function C(V){this.gl=V,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=u(V)}var E=C.prototype;E.update=function(V){V=V||{};function G(Ae,De,Pe){if(Pe in V){var ge=V[Pe],Fe=this[Pe],ce;(Ae?b(ge)&&b(ge[0]):b(ge))?this[Pe]=ce=[De(ge[0]),De(ge[1]),De(ge[2])]:this[Pe]=ce=[De(ge),De(ge),De(ge)];for(var Ze=0;Ze<3;++Ze)if(ce[Ze]!==Fe[Ze])return!0}return!1}var Z=G.bind(this,!1,Number),H=G.bind(this,!1,Boolean),N=G.bind(this,!1,String),j=G.bind(this,!0,function(Ae){if(b(Ae)){if(Ae.length===3)return[+Ae[0],+Ae[1],+Ae[2],1];if(Ae.length===4)return[+Ae[0],+Ae[1],+Ae[2],+Ae[3]]}return[0,0,0,1]}),re,oe=!1,_e=!1;if("bounds"in V)for(var Me=V.bounds,ke=0;ke<2;++ke)for(var me=0;me<3;++me)Me[ke][me]!==this.bounds[ke][me]&&(_e=!0),this.bounds[ke][me]=Me[ke][me];if("ticks"in V){re=V.ticks,oe=!0,this.autoTicks=!1;for(var ke=0;ke<3;++ke)this.tickSpacing[ke]=0}else Z("tickSpacing")&&(this.autoTicks=!0,_e=!0);if(this._firstInit&&("ticks"in V||"tickSpacing"in V||(this.autoTicks=!0),_e=!0,oe=!0,this._firstInit=!1),_e&&this.autoTicks&&(re=f.create(this.bounds,this.tickSpacing),oe=!0),oe){for(var ke=0;ke<3;++ke)re[ke].sort(function(De,Pe){return De.x-Pe.x});f.equal(re,this.ticks)?oe=!1:this.ticks=re}H("tickEnable"),N("tickFont")&&(oe=!0),N("tickFontStyle")&&(oe=!0),N("tickFontWeight")&&(oe=!0),N("tickFontVariant")&&(oe=!0),Z("tickSize"),Z("tickAngle"),Z("tickPad"),j("tickColor");var ie=N("labels");N("labelFont")&&(ie=!0),N("labelFontStyle")&&(ie=!0),N("labelFontWeight")&&(ie=!0),N("labelFontVariant")&&(ie=!0),H("labelEnable"),Z("labelSize"),Z("labelPad"),j("labelColor"),H("lineEnable"),H("lineMirror"),Z("lineWidth"),j("lineColor"),H("lineTickEnable"),H("lineTickMirror"),Z("lineTickLength"),Z("lineTickWidth"),j("lineTickColor"),H("gridEnable"),Z("gridWidth"),j("gridColor"),H("zeroEnable"),j("zeroLineColor"),Z("zeroLineWidth"),H("backgroundEnable"),j("backgroundColor");var Se=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],Le=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(ie||oe)&&this._text.update(this.bounds,this.labels,Se,this.ticks,Le):this._text=s(this.gl,this.bounds,this.labels,Se,this.ticks,Le),this._lines&&oe&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=l(this.gl,this.bounds,this.ticks))};function A(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var L=[new A,new A,new A];function x(V,G,Z,H,N){for(var j=V.primalOffset,re=V.primalMinor,oe=V.mirrorOffset,_e=V.mirrorMinor,Me=H[G],ke=0;ke<3;++ke)if(G!==ke){var me=j,ie=oe,Se=re,Le=_e;Me&1<0?(Se[ke]=-1,Le[ke]=0):(Se[ke]=0,Le[ke]=1)}}var k=[0,0,0],M={model:h,view:h,projection:h,_ortho:!1};E.isOpaque=function(){return!0},E.isTransparent=function(){return!1},E.drawTransparent=function(V){};var g=0,P=[0,0,0],T=[0,0,0],z=[0,0,0];E.draw=function(V){V=V||M;for(var Pe=this.gl,G=V.model||h,Z=V.view||h,H=V.projection||h,N=this.bounds,j=V._ortho||!1,re=c(G,Z,H,N,j),oe=re.cubeEdges,_e=re.axis,Me=Z[12],ke=Z[13],me=Z[14],ie=Z[15],Se=j?2:1,Le=Se*this.pixelRatio*(H[3]*Me+H[7]*ke+H[11]*me+H[15]*ie)/Pe.drawingBufferHeight,Ae=0;Ae<3;++Ae)this.lastCubeProps.cubeEdges[Ae]=oe[Ae],this.lastCubeProps.axis[Ae]=_e[Ae];for(var De=L,Ae=0;Ae<3;++Ae)x(L[Ae],Ae,this.bounds,oe,_e);for(var Pe=this.gl,ge=k,Ae=0;Ae<3;++Ae)this.backgroundEnable[Ae]?ge[Ae]=_e[Ae]:ge[Ae]=0;this._background.draw(G,Z,H,N,ge,this.backgroundColor),this._lines.bind(G,Z,H,this);for(var Ae=0;Ae<3;++Ae){var Fe=[0,0,0];_e[Ae]>0?Fe[Ae]=N[1][Ae]:Fe[Ae]=N[0][Ae];for(var ce=0;ce<2;++ce){var Ze=(Ae+1+ce)%3,ct=(Ae+1+(ce^1))%3;this.gridEnable[Ze]&&this._lines.drawGrid(Ze,ct,this.bounds,Fe,this.gridColor[Ze],this.gridWidth[Ze]*this.pixelRatio)}for(var ce=0;ce<2;++ce){var Ze=(Ae+1+ce)%3,ct=(Ae+1+(ce^1))%3;this.zeroEnable[ct]&&Math.min(N[0][ct],N[1][ct])<=0&&Math.max(N[0][ct],N[1][ct])>=0&&this._lines.drawZero(Ze,ct,this.bounds,Fe,this.zeroLineColor[ct],this.zeroLineWidth[ct]*this.pixelRatio)}}for(var Ae=0;Ae<3;++Ae){this.lineEnable[Ae]&&this._lines.drawAxisLine(Ae,this.bounds,De[Ae].primalOffset,this.lineColor[Ae],this.lineWidth[Ae]*this.pixelRatio),this.lineMirror[Ae]&&this._lines.drawAxisLine(Ae,this.bounds,De[Ae].mirrorOffset,this.lineColor[Ae],this.lineWidth[Ae]*this.pixelRatio);for(var pt=p(P,De[Ae].primalMinor),Wt=p(T,De[Ae].mirrorMinor),st=this.lineTickLength,ce=0;ce<3;++ce){var lt=Le/G[5*ce];pt[ce]*=st[ce]*lt,Wt[ce]*=st[ce]*lt}this.lineTickEnable[Ae]&&this._lines.drawAxisTicks(Ae,De[Ae].primalOffset,pt,this.lineTickColor[Ae],this.lineTickWidth[Ae]*this.pixelRatio),this.lineTickMirror[Ae]&&this._lines.drawAxisTicks(Ae,De[Ae].mirrorOffset,Wt,this.lineTickColor[Ae],this.lineTickWidth[Ae]*this.pixelRatio)}this._lines.unbind(),this._text.bind(G,Z,H,this.pixelRatio);var Gt,Nt=.5,$t,sr;function wr(Ft){sr=[0,0,0],sr[Ft]=1}function ur(Ft,bt,yt){var Yt=(Ft+1)%3,lr=(Ft+2)%3,Tr=bt[Yt],Rr=bt[lr],ei=yt[Yt],Wr=yt[lr];if(Tr>0&&Wr>0){wr(Yt);return}else if(Tr>0&&Wr<0){wr(Yt);return}else if(Tr<0&&Wr>0){wr(Yt);return}else if(Tr<0&&Wr<0){wr(Yt);return}else if(Rr>0&&ei>0){wr(lr);return}else if(Rr>0&&ei<0){wr(lr);return}else if(Rr<0&&ei>0){wr(lr);return}else if(Rr<0&&ei<0){wr(lr);return}}for(var Ae=0;Ae<3;++Ae){for(var Qe=De[Ae].primalMinor,Et=De[Ae].mirrorMinor,er=p(z,De[Ae].primalOffset),ce=0;ce<3;++ce)this.lineTickEnable[Ae]&&(er[ce]+=Le*Qe[ce]*Math.max(this.lineTickLength[ce],0)/G[5*ce]);var Ut=[0,0,0];if(Ut[Ae]=1,this.tickEnable[Ae]){this.tickAngle[Ae]===-3600?(this.tickAngle[Ae]=0,this.tickAlign[Ae]="auto"):this.tickAlign[Ae]=-1,$t=1,Gt=[this.tickAlign[Ae],Nt,$t],Gt[0]==="auto"?Gt[0]=g:Gt[0]=parseInt(""+Gt[0]),sr=[0,0,0],ur(Ae,Qe,Et);for(var ce=0;ce<3;++ce)er[ce]+=Le*Qe[ce]*this.tickPad[ce]/G[5*ce];this._text.drawTicks(Ae,this.tickSize[Ae],this.tickAngle[Ae],er,this.tickColor[Ae],Ut,sr,Gt)}if(this.labelEnable[Ae]){$t=0,sr=[0,0,0],this.labels[Ae].length>4&&(wr(Ae),$t=1),Gt=[this.labelAlign[Ae],Nt,$t],Gt[0]==="auto"?Gt[0]=g:Gt[0]=parseInt(""+Gt[0]);for(var ce=0;ce<3;++ce)er[ce]+=Le*Qe[ce]*this.labelPad[ce]/G[5*ce];er[Ae]+=.5*(N[0][Ae]+N[1][Ae]),this._text.drawLabel(Ae,this.labelSize[Ae],this.labelAngle[Ae],er,this.labelColor[Ae],[0,0,0],sr,Gt)}}this._text.unbind()},E.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function O(V,G){var Z=new C(V);return Z.update(G),Z}},5304:function(i,a,o){"use strict";i.exports=h;var s=o(2762),l=o(8116),u=o(1879).bg;function c(d,v,_,b){this.gl=d,this.buffer=v,this.vao=_,this.shader=b}var f=c.prototype;f.draw=function(d,v,_,b,p,C){for(var E=!1,A=0;A<3;++A)E=E||p[A];if(E){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:v,projection:_,bounds:b,enable:p,colors:C},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},f.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var v=[],_=[],b=0,p=0;p<3;++p)for(var C=(p+1)%3,E=(p+2)%3,A=[0,0,0],L=[0,0,0],x=-1;x<=1;x+=2){_.push(b,b+2,b+1,b+1,b+2,b+3),A[p]=x,L[p]=x;for(var k=-1;k<=1;k+=2){A[C]=k;for(var M=-1;M<=1;M+=2)A[E]=M,v.push(A[0],A[1],A[2],L[0],L[1],L[2]),b+=1}var g=C;C=E,E=g}var P=s(d,new Float32Array(v)),T=s(d,new Uint16Array(_),d.ELEMENT_ARRAY_BUFFER),z=l(d,[{buffer:P,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:P,type:d.FLOAT,size:3,offset:12,stride:24}],T),O=u(d);return O.attributes.position.location=0,O.attributes.normal.location=1,new c(d,P,z,O)}},6429:function(i,a,o){"use strict";i.exports=x;var s=o(8828),l=o(6760),u=o(5202),c=o(3250),f=new Array(16),h=new Array(8),d=new Array(8),v=new Array(3),_=[0,0,0];(function(){for(var k=0;k<8;++k)h[k]=[1,1,1,1],d[k]=[1,1,1]})();function b(k,M,g){for(var P=0;P<4;++P){k[P]=g[12+P];for(var T=0;T<3;++T)k[P]+=M[T]*g[4*T+P]}}var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function C(k){for(var M=0;M_e&&(Z|=1<_e){Z|=1<d[O][1])&&(De=O);for(var Pe=-1,O=0;O<3;++O){var ge=De^1<d[Fe][0]&&(Fe=ge)}}var ce=E;ce[0]=ce[1]=ce[2]=0,ce[s.log2(Pe^De)]=De&Pe,ce[s.log2(De^Fe)]=De&Fe;var Ze=Fe^7;Ze===Z||Ze===Ae?(Ze=Pe^7,ce[s.log2(Fe^Ze)]=Ze&Fe):ce[s.log2(Pe^Ze)]=Ze&Pe;for(var ct=A,pt=Z,j=0;j<3;++j)pt&1<=0;--ce){var Ze=Ae[Fe[ce]];M.push(Le*Ze[0],-Le*Ze[1],j)}}for(var P=[0,0,0],T=[0,0,0],z=[0,0,0],O=[0,0,0],V=1.25,G={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},Z=0;Z<3;++Z){z[Z]=M.length/d|0,g(.5*(E[0][Z]+E[1][Z]),A[Z],L[Z],12,V,G),O[Z]=(M.length/d|0)-z[Z],P[Z]=M.length/d|0;for(var H=0;H<_[Z].length;++H)if(_[Z][H].text){var N={family:_[Z][H].font||k[Z].family,style:k[Z].fontStyle||k[Z].style,weight:k[Z].fontWeight||k[Z].weight,variant:k[Z].fontVariant||k[Z].variant};g(_[Z][H].x,_[Z][H].text,N,_[Z][H].fontSize||12,V,G)}T[Z]=(M.length/d|0)-P[Z]}this.buffer.update(M),this.tickOffset=P,this.tickCount=T,this.labelOffset=z,this.labelCount=O},x.drawTicks=function(E,A,L,_,k,M,g,P){this.tickCount[E]&&(this.shader.uniforms.axis=M,this.shader.uniforms.color=k,this.shader.uniforms.angle=L,this.shader.uniforms.scale=A,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=g,this.shader.uniforms.alignOpt=P,this.vao.draw(this.gl.TRIANGLES,this.tickCount[E],this.tickOffset[E]))},x.drawLabel=function(E,A,L,_,k,M,g,P){this.labelCount[E]&&(this.shader.uniforms.axis=M,this.shader.uniforms.color=k,this.shader.uniforms.angle=L,this.shader.uniforms.scale=A,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=g,this.shader.uniforms.alignOpt=P,this.vao.draw(this.gl.TRIANGLES,this.labelCount[E],this.labelOffset[E]))},x.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()};function p(E,A){try{return u(E,A)}catch(L){return console.warn('error vectorizing text:"'+E+'" error:',L),{cells:[],positions:[]}}}function C(E,A,L,_,k,M){var g=s(E),P=l(E,[{buffer:g,size:3}]),T=c(E);T.attributes.position.location=0;var z=new v(E,T,g,P);return z.update(A,L,_,k,M),z}},6444:function(i,a){"use strict";a.create=s,a.equal=l;function o(u,c){var f=u+"",h=f.indexOf("."),d=0;h>=0&&(d=f.length-h-1);var v=Math.pow(10,d),x=Math.round(u*c*v),b=x+"";if(b.indexOf("e")>=0)return b;var p=x/v,C=x%v;x<0?(p=-Math.ceil(p)|0,C=-C|0):(p=Math.floor(p)|0,C=C|0);var E=""+p;if(x<0&&(E="-"+E),d){for(var A=""+C;A.length=u[0][h];--x)d.push({x:x*c[h],text:o(c[h],x)});f.push(d)}return f}function l(u,c){for(var f=0;f<3;++f){if(u[f].length!==c[f].length)return!1;for(var h=0;hE)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return p.bufferSubData(C,_,L),E}function v(p,C){for(var E=s.malloc(p.length,C),A=p.length,L=0;L=0;--A){if(C[A]!==E)return!1;E*=p[A]}return!0}h.update=function(p,C){if(typeof C!="number"&&(C=-1),this.bind(),typeof p=="object"&&typeof p.shape!="undefined"){var E=p.dtype;if(c.indexOf(E)<0&&(E="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var A=gl.getExtension("OES_element_index_uint");A&&E!=="uint16"?E="uint32":E="uint16"}if(E===p.dtype&&x(p.shape,p.stride))p.offset===0&&p.data.length===p.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,p.data,C):this.length=d(this.gl,this.type,this.length,this.usage,p.data.subarray(p.offset,p.shape[0]),C);else{var L=s.malloc(p.size,E),_=u(L,p.shape);l.assign(_,p),C<0?this.length=d(this.gl,this.type,this.length,this.usage,L,C):this.length=d(this.gl,this.type,this.length,this.usage,L.subarray(0,p.size),C),s.free(L)}}else if(Array.isArray(p)){var k;this.type===this.gl.ELEMENT_ARRAY_BUFFER?k=v(p,"uint16"):k=v(p,"float32"),C<0?this.length=d(this.gl,this.type,this.length,this.usage,k,C):this.length=d(this.gl,this.type,this.length,this.usage,k.subarray(0,p.length),C),s.free(k)}else if(typeof p=="object"&&typeof p.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,p,C);else if(typeof p=="number"||p===void 0){if(C>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");p=p|0,p<=0&&(p=1),this.gl.bufferData(this.type,p|0,this.usage),this.length=p}else throw new Error("gl-buffer: Invalid data type")};function b(p,C,E,A){if(E=E||p.ARRAY_BUFFER,A=A||p.DYNAMIC_DRAW,E!==p.ARRAY_BUFFER&&E!==p.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(A!==p.DYNAMIC_DRAW&&A!==p.STATIC_DRAW&&A!==p.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var L=p.createBuffer(),_=new f(p,E,L,0,A);return _.update(C),_}i.exports=b},6405:function(i,a,o){"use strict";var s=o(2931);i.exports=function(u,c){var f=u.positions,h=u.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:u.vertexIntensityBounds,vectors:[],cells:[],coneOffset:u.coneOffset,colormap:u.colormap};if(u.positions.length===0)return c&&(c[0]=[0,0,0],c[1]=[0,0,0]),d;for(var v=0,x=1/0,b=-1/0,p=1/0,C=-1/0,E=1/0,A=-1/0,L=null,_=null,k=[],M=1/0,g=!1,P=u.coneSizemode==="raw",T=0;Tv&&(v=s.length(O)),T&&!P){var V=2*s.distance(L,z)/(s.length(_)+s.length(O));V?(M=Math.min(M,V),g=!1):g=!0}g||(L=z,_=O),k.push(O)}var G=[x,p,E],Z=[b,C,A];c&&(c[0]=G,c[1]=Z),v===0&&(v=1);var H=1/v;isFinite(M)||(M=1),d.vectorScale=M;var N=u.coneSize||(P?1:.5);u.absoluteConeSize&&(N=u.absoluteConeSize*H),d.coneScale=N;for(var T=0,j=0;T=1},p.isTransparent=function(){return this.opacity<1},p.pickSlots=1,p.setPickBase=function(k){this.pickId=k};function C(k){for(var M=v({colormap:k,nshades:256,format:"rgba"}),g=new Uint8Array(256*4),P=0;P<256;++P){for(var T=M[P],z=0;z<3;++z)g[4*P+z]=T[z];g[4*P+3]=T[3]*255}return d(g,[256,256,4],[4,0,1])}function E(k){for(var M=k.length,g=new Array(M),P=0;P0){var j=this.triShader;j.bind(),j.uniforms=V,this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},p.drawPick=function(k){k=k||{};for(var M=this.gl,g=k.model||x,P=k.view||x,T=k.projection||x,z=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],O=0;O<3;++O)z[0][O]=Math.max(z[0][O],this.clipBounds[0][O]),z[1][O]=Math.min(z[1][O],this.clipBounds[1][O]);this._model=[].slice.call(g),this._view=[].slice.call(P),this._projection=[].slice.call(T),this._resolution=[M.drawingBufferWidth,M.drawingBufferHeight];var V={model:g,view:P,projection:T,clipBounds:z,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},G=this.pickShader;G.bind(),G.uniforms=V,this.triangleCount>0&&(this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},p.pick=function(k){if(!k||k.id!==this.pickId)return null;var M=k.value[0]+256*k.value[1]+65536*k.value[2],g=this.cells[M],P=this.positions[g[1]].slice(0,3),T={position:P,dataCoordinate:P,index:Math.floor(g[1]/48)};return this.traceType==="cone"?T.index=Math.floor(g[1]/48):this.traceType==="streamtube"&&(T.intensity=this.intensity[g[1]],T.velocity=this.vectors[g[1]].slice(0,3),T.divergence=this.vectors[g[1]][3],T.index=M),T},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function A(k,M){var g=s(k,M.meshShader.vertex,M.meshShader.fragment,null,M.meshShader.attributes);return g.attributes.position.location=0,g.attributes.color.location=2,g.attributes.uv.location=3,g.attributes.vector.location=4,g}function L(k,M){var g=s(k,M.pickShader.vertex,M.pickShader.fragment,null,M.pickShader.attributes);return g.attributes.position.location=0,g.attributes.id.location=1,g.attributes.vector.location=4,g}function _(k,M,g){var P=g.shaders;arguments.length===1&&(M=k,k=M.gl);var T=A(k,P),z=L(k,P),O=c(k,d(new Uint8Array([255,255,255,255]),[1,1,4]));O.generateMipmap(),O.minFilter=k.LINEAR_MIPMAP_LINEAR,O.magFilter=k.LINEAR;var V=l(k),G=l(k),Z=l(k),H=l(k),N=l(k),j=u(k,[{buffer:V,type:k.FLOAT,size:4},{buffer:N,type:k.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:Z,type:k.FLOAT,size:4},{buffer:H,type:k.FLOAT,size:2},{buffer:G,type:k.FLOAT,size:4}]),re=new b(k,O,T,z,V,G,N,Z,H,j,g.traceType||"cone");return re.update(M),re}i.exports=_},614:function(i,a,o){var s=o(3236),l=s([`precision highp float; +}`]);a.bg=function(_){return l(_,d,v,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935:function(i,a,o){"use strict";i.exports=C;var s=o(2762),l=o(8116),u=o(4359),c=o(1879).Q,f=window||process.global||{},h=f.__TEXT_CACHE||{};f.__TEXT_CACHE={};var d=3;function v(E,A,L,x){this.gl=E,this.shader=A,this.buffer=L,this.vao=x,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var _=v.prototype,b=[0,0];_.bind=function(E,A,L,x){this.vao.bind(),this.shader.bind();var k=this.shader.uniforms;k.model=E,k.view=A,k.projection=L,k.pixelScale=x,b[0]=this.gl.drawingBufferWidth,b[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=b},_.unbind=function(){this.vao.unbind()},_.update=function(E,A,L,x,k){var M=[];function g(j,re,oe,_e,Me,ke){var me=[oe.style,oe.weight,oe.variant,oe.family].join("_"),ie=h[me];ie||(ie=h[me]={});var Se=ie[re];Se||(Se=ie[re]=p(re,{triangles:!0,font:oe.family,fontStyle:oe.style,fontWeight:oe.weight,fontVariant:oe.variant,textAlign:"center",textBaseline:"middle",lineSpacing:Me,styletags:ke}));for(var Le=(_e||12)/12,Ae=Se.positions,De=Se.cells,Pe=0,ge=De.length;Pe=0;--ce){var Ze=Ae[Fe[ce]];M.push(Le*Ze[0],-Le*Ze[1],j)}}for(var P=[0,0,0],T=[0,0,0],z=[0,0,0],O=[0,0,0],V=1.25,G={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},Z=0;Z<3;++Z){z[Z]=M.length/d|0,g(.5*(E[0][Z]+E[1][Z]),A[Z],L[Z],12,V,G),O[Z]=(M.length/d|0)-z[Z],P[Z]=M.length/d|0;for(var H=0;H=0&&(d=f.length-h-1);var v=Math.pow(10,d),_=Math.round(u*c*v),b=_+"";if(b.indexOf("e")>=0)return b;var p=_/v,C=_%v;_<0?(p=-Math.ceil(p)|0,C=-C|0):(p=Math.floor(p)|0,C=C|0);var E=""+p;if(_<0&&(E="-"+E),d){for(var A=""+C;A.length=u[0][h];--_)d.push({x:_*c[h],text:o(c[h],_)});f.push(d)}return f}function l(u,c){for(var f=0;f<3;++f){if(u[f].length!==c[f].length)return!1;for(var h=0;hE)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return p.bufferSubData(C,x,L),E}function v(p,C){for(var E=s.malloc(p.length,C),A=p.length,L=0;L=0;--A){if(C[A]!==E)return!1;E*=p[A]}return!0}h.update=function(p,C){if(typeof C!="number"&&(C=-1),this.bind(),typeof p=="object"&&typeof p.shape!="undefined"){var E=p.dtype;if(c.indexOf(E)<0&&(E="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var A=gl.getExtension("OES_element_index_uint");A&&E!=="uint16"?E="uint32":E="uint16"}if(E===p.dtype&&_(p.shape,p.stride))p.offset===0&&p.data.length===p.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,p.data,C):this.length=d(this.gl,this.type,this.length,this.usage,p.data.subarray(p.offset,p.shape[0]),C);else{var L=s.malloc(p.size,E),x=u(L,p.shape);l.assign(x,p),C<0?this.length=d(this.gl,this.type,this.length,this.usage,L,C):this.length=d(this.gl,this.type,this.length,this.usage,L.subarray(0,p.size),C),s.free(L)}}else if(Array.isArray(p)){var k;this.type===this.gl.ELEMENT_ARRAY_BUFFER?k=v(p,"uint16"):k=v(p,"float32"),C<0?this.length=d(this.gl,this.type,this.length,this.usage,k,C):this.length=d(this.gl,this.type,this.length,this.usage,k.subarray(0,p.length),C),s.free(k)}else if(typeof p=="object"&&typeof p.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,p,C);else if(typeof p=="number"||p===void 0){if(C>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");p=p|0,p<=0&&(p=1),this.gl.bufferData(this.type,p|0,this.usage),this.length=p}else throw new Error("gl-buffer: Invalid data type")};function b(p,C,E,A){if(E=E||p.ARRAY_BUFFER,A=A||p.DYNAMIC_DRAW,E!==p.ARRAY_BUFFER&&E!==p.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(A!==p.DYNAMIC_DRAW&&A!==p.STATIC_DRAW&&A!==p.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var L=p.createBuffer(),x=new f(p,E,L,0,A);return x.update(C),x}i.exports=b},6405:function(i,a,o){"use strict";var s=o(2931);i.exports=function(u,c){var f=u.positions,h=u.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:u.vertexIntensityBounds,vectors:[],cells:[],coneOffset:u.coneOffset,colormap:u.colormap};if(u.positions.length===0)return c&&(c[0]=[0,0,0],c[1]=[0,0,0]),d;for(var v=0,_=1/0,b=-1/0,p=1/0,C=-1/0,E=1/0,A=-1/0,L=null,x=null,k=[],M=1/0,g=!1,P=u.coneSizemode==="raw",T=0;Tv&&(v=s.length(O)),T&&!P){var V=2*s.distance(L,z)/(s.length(x)+s.length(O));V?(M=Math.min(M,V),g=!1):g=!0}g||(L=z,x=O),k.push(O)}var G=[_,p,E],Z=[b,C,A];c&&(c[0]=G,c[1]=Z),v===0&&(v=1);var H=1/v;isFinite(M)||(M=1),d.vectorScale=M;var N=u.coneSize||(P?1:.5);u.absoluteConeSize&&(N=u.absoluteConeSize*H),d.coneScale=N;for(var T=0,j=0;T=1},p.isTransparent=function(){return this.opacity<1},p.pickSlots=1,p.setPickBase=function(k){this.pickId=k};function C(k){for(var M=v({colormap:k,nshades:256,format:"rgba"}),g=new Uint8Array(256*4),P=0;P<256;++P){for(var T=M[P],z=0;z<3;++z)g[4*P+z]=T[z];g[4*P+3]=T[3]*255}return d(g,[256,256,4],[4,0,1])}function E(k){for(var M=k.length,g=new Array(M),P=0;P0){var j=this.triShader;j.bind(),j.uniforms=V,this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},p.drawPick=function(k){k=k||{};for(var M=this.gl,g=k.model||_,P=k.view||_,T=k.projection||_,z=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],O=0;O<3;++O)z[0][O]=Math.max(z[0][O],this.clipBounds[0][O]),z[1][O]=Math.min(z[1][O],this.clipBounds[1][O]);this._model=[].slice.call(g),this._view=[].slice.call(P),this._projection=[].slice.call(T),this._resolution=[M.drawingBufferWidth,M.drawingBufferHeight];var V={model:g,view:P,projection:T,clipBounds:z,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},G=this.pickShader;G.bind(),G.uniforms=V,this.triangleCount>0&&(this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},p.pick=function(k){if(!k||k.id!==this.pickId)return null;var M=k.value[0]+256*k.value[1]+65536*k.value[2],g=this.cells[M],P=this.positions[g[1]].slice(0,3),T={position:P,dataCoordinate:P,index:Math.floor(g[1]/48)};return this.traceType==="cone"?T.index=Math.floor(g[1]/48):this.traceType==="streamtube"&&(T.intensity=this.intensity[g[1]],T.velocity=this.vectors[g[1]].slice(0,3),T.divergence=this.vectors[g[1]][3],T.index=M),T},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function A(k,M){var g=s(k,M.meshShader.vertex,M.meshShader.fragment,null,M.meshShader.attributes);return g.attributes.position.location=0,g.attributes.color.location=2,g.attributes.uv.location=3,g.attributes.vector.location=4,g}function L(k,M){var g=s(k,M.pickShader.vertex,M.pickShader.fragment,null,M.pickShader.attributes);return g.attributes.position.location=0,g.attributes.id.location=1,g.attributes.vector.location=4,g}function x(k,M,g){var P=g.shaders;arguments.length===1&&(M=k,k=M.gl);var T=A(k,P),z=L(k,P),O=c(k,d(new Uint8Array([255,255,255,255]),[1,1,4]));O.generateMipmap(),O.minFilter=k.LINEAR_MIPMAP_LINEAR,O.magFilter=k.LINEAR;var V=l(k),G=l(k),Z=l(k),H=l(k),N=l(k),j=u(k,[{buffer:V,type:k.FLOAT,size:4},{buffer:N,type:k.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:Z,type:k.FLOAT,size:4},{buffer:H,type:k.FLOAT,size:2},{buffer:G,type:k.FLOAT,size:4}]),re=new b(k,O,T,z,V,G,N,Z,H,j,g.traceType||"cone");return re.update(M),re}i.exports=x},614:function(i,a,o){var s=o(3236),l=s([`precision highp float; precision highp float; #define GLSLIFY 1 @@ -653,7 +653,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; gl_FragColor = vec4(pickId, f_id.xyz); -}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},a.pickShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(i){i.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(i,a,o){var s=o(737);i.exports=function(u){return s[u]}},9165:function(i,a,o){"use strict";i.exports=b;var s=o(2762),l=o(8116),u=o(3436),c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function f(p,C,E,A){this.gl=p,this.shader=A,this.buffer=C,this.vao=E,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var h=f.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(p){var C=this.gl,E=this.shader.uniforms;this.shader.bind();var A=E.view=p.view||c,L=E.projection=p.projection||c;E.model=p.model||c,E.clipBounds=this.clipBounds,E.opacity=this.opacity;var _=A[12],k=A[13],M=A[14],g=A[15],P=p._ortho||!1,T=P?2:1,z=T*this.pixelRatio*(L[3]*_+L[7]*k+L[11]*M+L[15]*g)/C.drawingBufferHeight;this.vao.bind();for(var O=0;O<3;++O)C.lineWidth(this.lineWidth[O]*this.pixelRatio),E.capSize=this.capSize[O]*z,this.lineCount[O]&&C.drawArrays(C.LINES,this.lineOffset[O],this.lineCount[O]);this.vao.unbind()};function d(p,C){for(var E=0;E<3;++E)p[0][E]=Math.min(p[0][E],C[E]),p[1][E]=Math.max(p[1][E],C[E])}var v=function(){for(var p=new Array(3),C=0;C<3;++C){for(var E=[],A=1;A<=2;++A)for(var L=-1;L<=1;L+=2){var _=(A+C)%3,k=[0,0,0];k[_]=L,E.push(k)}p[C]=E}return p}();function x(p,C,E,A){for(var L=v[A],_=0;_0){var V=P.slice();V[M]+=z[1][M],L.push(P[0],P[1],P[2],O[0],O[1],O[2],O[3],0,0,0,V[0],V[1],V[2],O[0],O[1],O[2],O[3],0,0,0),d(this.bounds,V),k+=2+x(L,V,O,M)}}}this.lineCount[M]=k-this.lineOffset[M]}this.buffer.update(L)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function b(p){var C=p.gl,E=s(C),A=l(C,[{buffer:E,type:C.FLOAT,size:3,offset:0,stride:40},{buffer:E,type:C.FLOAT,size:4,offset:12,stride:40},{buffer:E,type:C.FLOAT,size:3,offset:28,stride:40}]),L=u(C);L.attributes.position.location=0,L.attributes.color.location=1,L.attributes.offset.location=2;var _=new f(C,E,A,L);return _.update(p),_}},3436:function(i,a,o){"use strict";var s=o(3236),l=o(9405),u=s([`precision highp float; +}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},a.pickShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(i){i.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(i,a,o){var s=o(737);i.exports=function(u){return s[u]}},9165:function(i,a,o){"use strict";i.exports=b;var s=o(2762),l=o(8116),u=o(3436),c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function f(p,C,E,A){this.gl=p,this.shader=A,this.buffer=C,this.vao=E,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var h=f.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(p){var C=this.gl,E=this.shader.uniforms;this.shader.bind();var A=E.view=p.view||c,L=E.projection=p.projection||c;E.model=p.model||c,E.clipBounds=this.clipBounds,E.opacity=this.opacity;var x=A[12],k=A[13],M=A[14],g=A[15],P=p._ortho||!1,T=P?2:1,z=T*this.pixelRatio*(L[3]*x+L[7]*k+L[11]*M+L[15]*g)/C.drawingBufferHeight;this.vao.bind();for(var O=0;O<3;++O)C.lineWidth(this.lineWidth[O]*this.pixelRatio),E.capSize=this.capSize[O]*z,this.lineCount[O]&&C.drawArrays(C.LINES,this.lineOffset[O],this.lineCount[O]);this.vao.unbind()};function d(p,C){for(var E=0;E<3;++E)p[0][E]=Math.min(p[0][E],C[E]),p[1][E]=Math.max(p[1][E],C[E])}var v=function(){for(var p=new Array(3),C=0;C<3;++C){for(var E=[],A=1;A<=2;++A)for(var L=-1;L<=1;L+=2){var x=(A+C)%3,k=[0,0,0];k[x]=L,E.push(k)}p[C]=E}return p}();function _(p,C,E,A){for(var L=v[A],x=0;x0){var V=P.slice();V[M]+=z[1][M],L.push(P[0],P[1],P[2],O[0],O[1],O[2],O[3],0,0,0,V[0],V[1],V[2],O[0],O[1],O[2],O[3],0,0,0),d(this.bounds,V),k+=2+_(L,V,O,M)}}}this.lineCount[M]=k-this.lineOffset[M]}this.buffer.update(L)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function b(p){var C=p.gl,E=s(C),A=l(C,[{buffer:E,type:C.FLOAT,size:3,offset:0,stride:40},{buffer:E,type:C.FLOAT,size:4,offset:12,stride:40},{buffer:E,type:C.FLOAT,size:3,offset:28,stride:40}]),L=u(C);L.attributes.position.location=0,L.attributes.color.location=1,L.attributes.offset.location=2;var x=new f(C,E,A,L);return x.update(p),x}},3436:function(i,a,o){"use strict";var s=o(3236),l=o(9405),u=s([`precision highp float; #define GLSLIFY 1 attribute vec3 position, offset; @@ -704,9 +704,9 @@ void main() { ) discard; gl_FragColor = opacity * fragColor; -}`]);i.exports=function(f){return l(f,u,c,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260:function(i,a,o){"use strict";var s=o(7766);i.exports=k;var l=null,u,c,f,h;function d(M){var g=M.getParameter(M.FRAMEBUFFER_BINDING),P=M.getParameter(M.RENDERBUFFER_BINDING),T=M.getParameter(M.TEXTURE_BINDING_2D);return[g,P,T]}function v(M,g){M.bindFramebuffer(M.FRAMEBUFFER,g[0]),M.bindRenderbuffer(M.RENDERBUFFER,g[1]),M.bindTexture(M.TEXTURE_2D,g[2])}function x(M,g){var P=M.getParameter(g.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(P+1);for(var T=0;T<=P;++T){for(var z=new Array(P),O=0;O1&&G.drawBuffersWEBGL(l[V]);var re=P.getExtension("WEBGL_depth_texture");re?Z?M.depth=p(P,z,O,re.UNSIGNED_INT_24_8_WEBGL,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):H&&(M.depth=p(P,z,O,P.UNSIGNED_SHORT,P.DEPTH_COMPONENT,P.DEPTH_ATTACHMENT)):H&&Z?M._depth_rb=C(P,z,O,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):H?M._depth_rb=C(P,z,O,P.DEPTH_COMPONENT16,P.DEPTH_ATTACHMENT):Z&&(M._depth_rb=C(P,z,O,P.STENCIL_INDEX,P.STENCIL_ATTACHMENT));var oe=P.checkFramebufferStatus(P.FRAMEBUFFER);if(oe!==P.FRAMEBUFFER_COMPLETE){M._destroyed=!0,P.bindFramebuffer(P.FRAMEBUFFER,null),P.deleteFramebuffer(M.handle),M.handle=null,M.depth&&(M.depth.dispose(),M.depth=null),M._depth_rb&&(P.deleteRenderbuffer(M._depth_rb),M._depth_rb=null);for(var j=0;jz||P<0||P>z)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");M._shape[0]=g,M._shape[1]=P;for(var O=d(T),V=0;VO||P<0||P>O)throw new Error("gl-fbo: Parameters are too large for FBO");T=T||{};var V=1;if("color"in T){if(V=Math.max(T.color|0,0),V<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(V>1)if(z){if(V>M.getParameter(z.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+V+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var G=M.UNSIGNED_BYTE,Z=M.getExtension("OES_texture_float");if(T.float&&V>0){if(!Z)throw new Error("gl-fbo: Context does not support floating point textures");G=M.FLOAT}else T.preferFloat&&V>0&&Z&&(G=M.FLOAT);var H=!0;"depth"in T&&(H=!!T.depth);var N=!1;return"stencil"in T&&(N=!!T.stencil),new A(M,g,P,G,V,H,N,z)}},2992:function(i,a,o){var s=o(3387).sprintf,l=o(5171),u=o(1848),c=o(1085);i.exports=f;function f(h,d,v){"use strict";var x=u(d)||"of unknown name (see npm glsl-shader-name)",b="unknown type";v!==void 0&&(b=v===l.FRAGMENT_SHADER?"fragment":"vertex");for(var p=s(`Error compiling %s shader %s: -`,b,x),C=s("%s%s",p,h),E=h.split(` -`),A={},L=0;L1&&G.drawBuffersWEBGL(l[V]);var re=P.getExtension("WEBGL_depth_texture");re?Z?M.depth=p(P,z,O,re.UNSIGNED_INT_24_8_WEBGL,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):H&&(M.depth=p(P,z,O,P.UNSIGNED_SHORT,P.DEPTH_COMPONENT,P.DEPTH_ATTACHMENT)):H&&Z?M._depth_rb=C(P,z,O,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):H?M._depth_rb=C(P,z,O,P.DEPTH_COMPONENT16,P.DEPTH_ATTACHMENT):Z&&(M._depth_rb=C(P,z,O,P.STENCIL_INDEX,P.STENCIL_ATTACHMENT));var oe=P.checkFramebufferStatus(P.FRAMEBUFFER);if(oe!==P.FRAMEBUFFER_COMPLETE){M._destroyed=!0,P.bindFramebuffer(P.FRAMEBUFFER,null),P.deleteFramebuffer(M.handle),M.handle=null,M.depth&&(M.depth.dispose(),M.depth=null),M._depth_rb&&(P.deleteRenderbuffer(M._depth_rb),M._depth_rb=null);for(var j=0;jz||P<0||P>z)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");M._shape[0]=g,M._shape[1]=P;for(var O=d(T),V=0;VO||P<0||P>O)throw new Error("gl-fbo: Parameters are too large for FBO");T=T||{};var V=1;if("color"in T){if(V=Math.max(T.color|0,0),V<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(V>1)if(z){if(V>M.getParameter(z.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+V+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var G=M.UNSIGNED_BYTE,Z=M.getExtension("OES_texture_float");if(T.float&&V>0){if(!Z)throw new Error("gl-fbo: Context does not support floating point textures");G=M.FLOAT}else T.preferFloat&&V>0&&Z&&(G=M.FLOAT);var H=!0;"depth"in T&&(H=!!T.depth);var N=!1;return"stencil"in T&&(N=!!T.stencil),new A(M,g,P,G,V,H,N,z)}},2992:function(i,a,o){var s=o(3387).sprintf,l=o(5171),u=o(1848),c=o(1085);i.exports=f;function f(h,d,v){"use strict";var _=u(d)||"of unknown name (see npm glsl-shader-name)",b="unknown type";v!==void 0&&(b=v===l.FRAGMENT_SHADER?"fragment":"vertex");for(var p=s(`Error compiling %s shader %s: +`,b,_),C=s("%s%s",p,h),E=h.split(` +`),A={},L=0;L0){for(var me=0;me<24;++me)O.push(O[O.length-12]);H+=2,_e=!0}continue e}N[0][T]=Math.min(N[0][T],Me[T],ke[T]),N[1][T]=Math.max(N[1][T],Me[T],ke[T])}var ie,Se;Array.isArray(re[0])?(ie=re.length>P-1?re[P-1]:re.length>0?re[re.length-1]:[0,0,0,1],Se=re.length>P?re[P]:re.length>0?re[re.length-1]:[0,0,0,1]):ie=Se=re,ie.length===3&&(ie=[ie[0],ie[1],ie[2],1]),Se.length===3&&(Se=[Se[0],Se[1],Se[2],1]),!this.hasAlpha&&ie[3]<1&&(this.hasAlpha=!0);var Le;Array.isArray(oe)?Le=oe.length>P-1?oe[P-1]:oe.length>0?oe[oe.length-1]:[0,0,0,1]:Le=oe;var Ae=Z;if(Z+=E(Me,ke),_e){for(T=0;T<2;++T)O.push(Me[0],Me[1],Me[2],ke[0],ke[1],ke[2],Ae,Le,ie[0],ie[1],ie[2],ie[3]);H+=2,_e=!1}O.push(Me[0],Me[1],Me[2],ke[0],ke[1],ke[2],Ae,Le,ie[0],ie[1],ie[2],ie[3],Me[0],Me[1],Me[2],ke[0],ke[1],ke[2],Ae,-Le,ie[0],ie[1],ie[2],ie[3],ke[0],ke[1],ke[2],Me[0],Me[1],Me[2],Z,-Le,Se[0],Se[1],Se[2],Se[3],ke[0],ke[1],ke[2],Me[0],Me[1],Me[2],Z,Le,Se[0],Se[1],Se[2],Se[3]),H+=4}}if(this.buffer.update(O),V.push(Z),G.push(j[j.length-1].slice()),this.bounds=N,this.vertexCount=H,this.points=G,this.arcLength=V,"dashes"in g){var De=g.dashes,Pe=De.slice();for(Pe.unshift(0),P=1;P1.0001)return null;T+=P[L]}return Math.abs(T-1)>.001?null:[_,h(v,P),P]}},840:function(i,a,o){var s=o(3236),l=s([`precision highp float; +}`]),h=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];a.createShader=function(d){return l(d,u,c,null,h)},a.createPickShader=function(d){return l(d,u,f,null,h)}},5714:function(i,a,o){"use strict";i.exports=M;var s=o(2762),l=o(8116),u=o(7766),c=new Uint8Array(4),f=new Float32Array(c.buffer);function h(g,P,T,z){return c[0]=z,c[1]=T,c[2]=P,c[3]=g,f[0]}var d=o(2478),v=o(9618),_=o(7319),b=_.createShader,p=_.createPickShader,C=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(g,P){for(var T=0,z=0;z<3;++z){var O=g[z]-P[z];T+=O*O}return Math.sqrt(T)}function A(g){for(var P=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],T=0;T<3;++T)P[0][T]=Math.max(g[0][T],P[0][T]),P[1][T]=Math.min(g[1][T],P[1][T]);return P}function L(g,P,T,z){this.arcLength=g,this.position=P,this.index=T,this.dataCoordinate=z}function x(g,P,T,z,O,V){this.gl=g,this.shader=P,this.pickShader=T,this.buffer=z,this.vao=O,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=V,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var k=x.prototype;k.isTransparent=function(){return this.hasAlpha},k.isOpaque=function(){return!this.hasAlpha},k.pickSlots=1,k.setPickBase=function(g){this.pickId=g},k.drawTransparent=k.draw=function(g){if(this.vertexCount){var P=this.gl,T=this.shader,z=this.vao;T.bind(),T.uniforms={model:g.model||C,view:g.view||C,projection:g.projection||C,clipBounds:A(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},z.bind(),z.draw(P.TRIANGLE_STRIP,this.vertexCount),z.unbind()}},k.drawPick=function(g){if(this.vertexCount){var P=this.gl,T=this.pickShader,z=this.vao;T.bind(),T.uniforms={model:g.model||C,view:g.view||C,projection:g.projection||C,pickId:this.pickId,clipBounds:A(this.clipBounds),screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},z.bind(),z.draw(P.TRIANGLE_STRIP,this.vertexCount),z.unbind()}},k.update=function(g){var P,T;this.dirty=!0;var z=!!g.connectGaps;"dashScale"in g&&(this.dashScale=g.dashScale),this.hasAlpha=!1,"opacity"in g&&(this.opacity=+g.opacity,this.opacity<1&&(this.hasAlpha=!0));var O=[],V=[],G=[],Z=0,H=0,N=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],j=g.position||g.positions;if(j){var re=g.color||g.colors||[0,0,0,1],oe=g.lineWidth||1,_e=!1;e:for(P=1;P0){for(var me=0;me<24;++me)O.push(O[O.length-12]);H+=2,_e=!0}continue e}N[0][T]=Math.min(N[0][T],Me[T],ke[T]),N[1][T]=Math.max(N[1][T],Me[T],ke[T])}var ie,Se;Array.isArray(re[0])?(ie=re.length>P-1?re[P-1]:re.length>0?re[re.length-1]:[0,0,0,1],Se=re.length>P?re[P]:re.length>0?re[re.length-1]:[0,0,0,1]):ie=Se=re,ie.length===3&&(ie=[ie[0],ie[1],ie[2],1]),Se.length===3&&(Se=[Se[0],Se[1],Se[2],1]),!this.hasAlpha&&ie[3]<1&&(this.hasAlpha=!0);var Le;Array.isArray(oe)?Le=oe.length>P-1?oe[P-1]:oe.length>0?oe[oe.length-1]:[0,0,0,1]:Le=oe;var Ae=Z;if(Z+=E(Me,ke),_e){for(T=0;T<2;++T)O.push(Me[0],Me[1],Me[2],ke[0],ke[1],ke[2],Ae,Le,ie[0],ie[1],ie[2],ie[3]);H+=2,_e=!1}O.push(Me[0],Me[1],Me[2],ke[0],ke[1],ke[2],Ae,Le,ie[0],ie[1],ie[2],ie[3],Me[0],Me[1],Me[2],ke[0],ke[1],ke[2],Ae,-Le,ie[0],ie[1],ie[2],ie[3],ke[0],ke[1],ke[2],Me[0],Me[1],Me[2],Z,-Le,Se[0],Se[1],Se[2],Se[3],ke[0],ke[1],ke[2],Me[0],Me[1],Me[2],Z,Le,Se[0],Se[1],Se[2],Se[3]),H+=4}}if(this.buffer.update(O),V.push(Z),G.push(j[j.length-1].slice()),this.bounds=N,this.vertexCount=H,this.points=G,this.arcLength=V,"dashes"in g){var De=g.dashes,Pe=De.slice();for(Pe.unshift(0),P=1;P1.0001)return null;T+=P[L]}return Math.abs(T-1)>.001?null:[x,h(v,P),P]}},840:function(i,a,o){var s=o(3236),l=s([`precision highp float; #define GLSLIFY 1 attribute vec3 position, normal; @@ -1143,7 +1143,7 @@ void main() { gl_Position = projection * (view * (model * vec4(position, 1.0))); f_id = id; f_position = position; -}`]),x=s([`precision highp float; +}`]),_=s([`precision highp float; #define GLSLIFY 1 bool outOfRange(float a, float b, float p) { @@ -1236,7 +1236,7 @@ uniform vec3 contourColor; void main() { gl_FragColor = vec4(contourColor, 1.0); } -`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:v,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:b,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:p,fragment:C,attributes:[{name:"position",type:"vec3"}]}},7201:function(i,a,o){"use strict";var s=1e-6,l=1e-6,u=o(9405),c=o(2762),f=o(8116),h=o(7766),d=o(8406),v=o(6760),x=o(7608),b=o(9618),p=o(6729),C=o(7765),E=o(1888),A=o(840),L=o(7626),_=A.meshShader,k=A.wireShader,M=A.pointShader,g=A.pickShader,P=A.pointPickShader,T=A.contourShader,z=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function O(me,ie,Se,Le,Ae,De,Pe,ge,Fe,ce,Ze,ct,pt,Wt,st,lt,Gt,Nt,$t,sr,wr,ur,Qe,Et,er,Ut,Ft){this.gl=me,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=ie,this.dirty=!0,this.triShader=Se,this.lineShader=Le,this.pointShader=Ae,this.pickShader=De,this.pointPickShader=Pe,this.contourShader=ge,this.trianglePositions=Fe,this.triangleColors=Ze,this.triangleNormals=pt,this.triangleUVs=ct,this.triangleIds=ce,this.triangleVAO=Wt,this.triangleCount=0,this.lineWidth=1,this.edgePositions=st,this.edgeColors=Gt,this.edgeUVs=Nt,this.edgeIds=lt,this.edgeVAO=$t,this.edgeCount=0,this.pointPositions=sr,this.pointColors=ur,this.pointUVs=Qe,this.pointSizes=Et,this.pointIds=wr,this.pointVAO=er,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=Ut,this.contourVAO=Ft,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=z,this._view=z,this._projection=z,this._resolution=[1,1]}var V=O.prototype;V.isOpaque=function(){return!this.hasAlpha},V.isTransparent=function(){return this.hasAlpha},V.pickSlots=1,V.setPickBase=function(me){this.pickId=me};function G(me,ie){if(!ie||!ie.length)return 1;for(var Se=0;Seme&&Se>0){var Le=(ie[Se][0]-me)/(ie[Se][0]-ie[Se-1][0]);return ie[Se][1]*(1-Le)+Le*ie[Se-1][1]}}return 1}function Z(me,ie){for(var Se=p({colormap:me,nshades:256,format:"rgba"}),Le=new Uint8Array(256*4),Ae=0;Ae<256;++Ae){for(var De=Se[Ae],Pe=0;Pe<3;++Pe)Le[4*Ae+Pe]=De[Pe];ie?Le[4*Ae+3]=255*G(Ae/255,ie):Le[4*Ae+3]=255*De[3]}return b(Le,[256,256,4],[4,0,1])}function H(me){for(var ie=me.length,Se=new Array(ie),Le=0;Le0){var pt=this.triShader;pt.bind(),pt.uniforms=ge,this.triangleVAO.bind(),ie.drawArrays(ie.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var pt=this.lineShader;pt.bind(),pt.uniforms=ge,this.edgeVAO.bind(),ie.lineWidth(this.lineWidth*this.pixelRatio),ie.drawArrays(ie.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var pt=this.pointShader;pt.bind(),pt.uniforms=ge,this.pointVAO.bind(),ie.drawArrays(ie.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var pt=this.contourShader;pt.bind(),pt.uniforms=ge,this.contourVAO.bind(),ie.drawArrays(ie.LINES,0,this.contourCount),this.contourVAO.unbind()}},V.drawPick=function(me){me=me||{};for(var ie=this.gl,Se=me.model||z,Le=me.view||z,Ae=me.projection||z,De=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Pe=0;Pe<3;++Pe)De[0][Pe]=Math.max(De[0][Pe],this.clipBounds[0][Pe]),De[1][Pe]=Math.min(De[1][Pe],this.clipBounds[1][Pe]);this._model=[].slice.call(Se),this._view=[].slice.call(Le),this._projection=[].slice.call(Ae),this._resolution=[ie.drawingBufferWidth,ie.drawingBufferHeight];var ge={model:Se,view:Le,projection:Ae,clipBounds:De,pickId:this.pickId/255},Fe=this.pickShader;if(Fe.bind(),Fe.uniforms=ge,this.triangleCount>0&&(this.triangleVAO.bind(),ie.drawArrays(ie.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),ie.lineWidth(this.lineWidth*this.pixelRatio),ie.drawArrays(ie.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var Fe=this.pointPickShader;Fe.bind(),Fe.uniforms=ge,this.pointVAO.bind(),ie.drawArrays(ie.POINTS,0,this.pointCount),this.pointVAO.unbind()}},V.pick=function(me){if(!me||me.id!==this.pickId)return null;for(var ie=me.value[0]+256*me.value[1]+65536*me.value[2],Se=this.cells[ie],Le=this.positions,Ae=new Array(Se.length),De=0;DeMath.abs(g))p.rotate(z,0,0,-M*P*Math.PI*_.rotateSpeed/window.innerWidth);else if(!_._ortho){var O=-_.zoomSpeed*T*g/window.innerHeight*(z-p.lastT())/20;p.pan(z,0,0,E*(Math.exp(O)-1))}}},!0)},_.enableMouseListeners(),_}},799:function(i,a,o){var s=o(3236),l=o(9405),u=s([`precision mediump float; +`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:v,fragment:_,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:b,fragment:_,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:p,fragment:C,attributes:[{name:"position",type:"vec3"}]}},7201:function(i,a,o){"use strict";var s=1e-6,l=1e-6,u=o(9405),c=o(2762),f=o(8116),h=o(7766),d=o(8406),v=o(6760),_=o(7608),b=o(9618),p=o(6729),C=o(7765),E=o(1888),A=o(840),L=o(7626),x=A.meshShader,k=A.wireShader,M=A.pointShader,g=A.pickShader,P=A.pointPickShader,T=A.contourShader,z=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function O(me,ie,Se,Le,Ae,De,Pe,ge,Fe,ce,Ze,ct,pt,Wt,st,lt,Gt,Nt,$t,sr,wr,ur,Qe,Et,er,Ut,Ft){this.gl=me,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=ie,this.dirty=!0,this.triShader=Se,this.lineShader=Le,this.pointShader=Ae,this.pickShader=De,this.pointPickShader=Pe,this.contourShader=ge,this.trianglePositions=Fe,this.triangleColors=Ze,this.triangleNormals=pt,this.triangleUVs=ct,this.triangleIds=ce,this.triangleVAO=Wt,this.triangleCount=0,this.lineWidth=1,this.edgePositions=st,this.edgeColors=Gt,this.edgeUVs=Nt,this.edgeIds=lt,this.edgeVAO=$t,this.edgeCount=0,this.pointPositions=sr,this.pointColors=ur,this.pointUVs=Qe,this.pointSizes=Et,this.pointIds=wr,this.pointVAO=er,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=Ut,this.contourVAO=Ft,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=z,this._view=z,this._projection=z,this._resolution=[1,1]}var V=O.prototype;V.isOpaque=function(){return!this.hasAlpha},V.isTransparent=function(){return this.hasAlpha},V.pickSlots=1,V.setPickBase=function(me){this.pickId=me};function G(me,ie){if(!ie||!ie.length)return 1;for(var Se=0;Seme&&Se>0){var Le=(ie[Se][0]-me)/(ie[Se][0]-ie[Se-1][0]);return ie[Se][1]*(1-Le)+Le*ie[Se-1][1]}}return 1}function Z(me,ie){for(var Se=p({colormap:me,nshades:256,format:"rgba"}),Le=new Uint8Array(256*4),Ae=0;Ae<256;++Ae){for(var De=Se[Ae],Pe=0;Pe<3;++Pe)Le[4*Ae+Pe]=De[Pe];ie?Le[4*Ae+3]=255*G(Ae/255,ie):Le[4*Ae+3]=255*De[3]}return b(Le,[256,256,4],[4,0,1])}function H(me){for(var ie=me.length,Se=new Array(ie),Le=0;Le0){var pt=this.triShader;pt.bind(),pt.uniforms=ge,this.triangleVAO.bind(),ie.drawArrays(ie.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var pt=this.lineShader;pt.bind(),pt.uniforms=ge,this.edgeVAO.bind(),ie.lineWidth(this.lineWidth*this.pixelRatio),ie.drawArrays(ie.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var pt=this.pointShader;pt.bind(),pt.uniforms=ge,this.pointVAO.bind(),ie.drawArrays(ie.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var pt=this.contourShader;pt.bind(),pt.uniforms=ge,this.contourVAO.bind(),ie.drawArrays(ie.LINES,0,this.contourCount),this.contourVAO.unbind()}},V.drawPick=function(me){me=me||{};for(var ie=this.gl,Se=me.model||z,Le=me.view||z,Ae=me.projection||z,De=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Pe=0;Pe<3;++Pe)De[0][Pe]=Math.max(De[0][Pe],this.clipBounds[0][Pe]),De[1][Pe]=Math.min(De[1][Pe],this.clipBounds[1][Pe]);this._model=[].slice.call(Se),this._view=[].slice.call(Le),this._projection=[].slice.call(Ae),this._resolution=[ie.drawingBufferWidth,ie.drawingBufferHeight];var ge={model:Se,view:Le,projection:Ae,clipBounds:De,pickId:this.pickId/255},Fe=this.pickShader;if(Fe.bind(),Fe.uniforms=ge,this.triangleCount>0&&(this.triangleVAO.bind(),ie.drawArrays(ie.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),ie.lineWidth(this.lineWidth*this.pixelRatio),ie.drawArrays(ie.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var Fe=this.pointPickShader;Fe.bind(),Fe.uniforms=ge,this.pointVAO.bind(),ie.drawArrays(ie.POINTS,0,this.pointCount),this.pointVAO.unbind()}},V.pick=function(me){if(!me||me.id!==this.pickId)return null;for(var ie=me.value[0]+256*me.value[1]+65536*me.value[2],Se=this.cells[ie],Le=this.positions,Ae=new Array(Se.length),De=0;DeMath.abs(g))p.rotate(z,0,0,-M*P*Math.PI*x.rotateSpeed/window.innerWidth);else if(!x._ortho){var O=-x.zoomSpeed*T*g/window.innerHeight*(z-p.lastT())/20;p.pan(z,0,0,E*(Math.exp(O)-1))}}},!0)},x.enableMouseListeners(),x}},799:function(i,a,o){var s=o(3236),l=o(9405),u=s([`precision mediump float; #define GLSLIFY 1 attribute vec2 position; varying vec2 uv; @@ -1252,7 +1252,7 @@ varying vec2 uv; void main() { vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); gl_FragColor = min(vec4(1,1,1,1), accum); -}`]);i.exports=function(f){return l(f,u,c,null,[{name:"position",type:"vec2"}])}},4100:function(i,a,o){"use strict";var s=o(4437),l=o(3837),u=o(5445),c=o(4449),f=o(3589),h=o(2260),d=o(7169),v=o(351),x=o(4772),b=o(4040),p=o(799),C=o(9216)({tablet:!0,featureDetect:!0});i.exports={createScene:k,createCamera:s};function E(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function A(g,P){var T=null;try{T=g.getContext("webgl",P),T||(T=g.getContext("experimental-webgl",P))}catch(z){return null}return T}function L(g){var P=Math.round(Math.log(Math.abs(g))/Math.log(10));if(P<0){var T=Math.round(Math.pow(10,-P));return Math.ceil(g*T)/T}else if(P>0){var T=Math.round(Math.pow(10,P));return Math.ceil(g/T)*T}return Math.ceil(g)}function _(g){return typeof g=="boolean"?g:!0}function k(g){g=g||{},g.camera=g.camera||{};var P=g.canvas;if(!P)if(P=document.createElement("canvas"),g.container){var T=g.container;T.appendChild(P)}else document.body.appendChild(P);var z=g.gl;if(z||(g.glOptions&&(C=!!g.glOptions.preserveDrawingBuffer),z=A(P,g.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:C})),!z)throw new Error("webgl not supported");var O=g.bounds||[[-10,-10,-10],[10,10,10]],V=new E,G=h(z,z.drawingBufferWidth,z.drawingBufferHeight,{preferFloat:!C}),Z=p(z),H=g.cameraObject&&g.cameraObject._ortho===!0||g.camera.projection&&g.camera.projection.type==="orthographic"||!1,N={eye:g.camera.eye||[2,0,0],center:g.camera.center||[0,0,0],up:g.camera.up||[0,1,0],zoomMin:g.camera.zoomMax||.1,zoomMax:g.camera.zoomMin||100,mode:g.camera.mode||"turntable",_ortho:H},j=g.axes||{},re=l(z,j);re.enable=!j.disable;var oe=g.spikes||{},_e=c(z,oe),Me=[],ke=[],me=[],ie=[],Se=!0,Pe=!0,Le=new Array(16),Ae=new Array(16),De={view:null,projection:Le,model:Ae,_ortho:!1},Pe=!0,ge=[z.drawingBufferWidth,z.drawingBufferHeight],Fe=g.cameraObject||s(P,N),ce={gl:z,contextLost:!1,pixelRatio:g.pixelRatio||1,canvas:P,selection:V,camera:Fe,axes:re,axesPixels:null,spikes:_e,bounds:O,objects:Me,shape:ge,aspect:g.aspectRatio||[1,1,1],pickRadius:g.pickRadius||10,zNear:g.zNear||.01,zFar:g.zFar||1e3,fovy:g.fovy||Math.PI/4,clearColor:g.clearColor||[0,0,0,0],autoResize:_(g.autoResize),autoBounds:_(g.autoBounds),autoScale:!!g.autoScale,autoCenter:_(g.autoCenter),clipToBounds:_(g.clipToBounds),snapToData:!!g.snapToData,onselect:g.onselect||null,onrender:g.onrender||null,onclick:g.onclick||null,cameraParams:De,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(sr){this.aspect[0]=sr.x,this.aspect[1]=sr.y,this.aspect[2]=sr.z,Pe=!0},setBounds:function(sr,wr){this.bounds[0][sr]=wr.min,this.bounds[1][sr]=wr.max},setClearColor:function(sr){this.clearColor=sr},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},Ze=[z.drawingBufferWidth/ce.pixelRatio|0,z.drawingBufferHeight/ce.pixelRatio|0];function ct(){if(!ce._stopped&&ce.autoResize){var sr=P.parentNode,wr=1,ur=1;sr&&sr!==document.body?(wr=sr.clientWidth,ur=sr.clientHeight):(wr=window.innerWidth,ur=window.innerHeight);var Qe=Math.ceil(wr*ce.pixelRatio)|0,Et=Math.ceil(ur*ce.pixelRatio)|0;if(Qe!==P.width||Et!==P.height){P.width=Qe,P.height=Et;var er=P.style;er.position=er.position||"absolute",er.left="0px",er.top="0px",er.width=wr+"px",er.height=ur+"px",Se=!0}}}ce.autoResize&&ct(),window.addEventListener("resize",ct);function pt(){for(var sr=Me.length,wr=ie.length,ur=0;ur0&&me[wr-1]===0;)me.pop(),ie.pop().dispose()}ce.update=function(sr){ce._stopped||(sr=sr||{},Se=!0,Pe=!0)},ce.add=function(sr){ce._stopped||(sr.axes=re,Me.push(sr),ke.push(-1),Se=!0,Pe=!0,pt())},ce.remove=function(sr){if(!ce._stopped){var wr=Me.indexOf(sr);wr<0||(Me.splice(wr,1),ke.pop(),Se=!0,Pe=!0,pt())}},ce.dispose=function(){if(!ce._stopped&&(ce._stopped=!0,window.removeEventListener("resize",ct),P.removeEventListener("webglcontextlost",Wt),ce.mouseListener.enabled=!1,!ce.contextLost)){re.dispose(),_e.dispose();for(var sr=0;srV.distance)continue;for(var yt=0;yt1e-6?(C=Math.acos(E),A=Math.sin(C),L=Math.sin((1-u)*C)/A,_=Math.sin(u*C)/A):(L=1-u,_=u),o[0]=L*c+_*v,o[1]=L*f+_*x,o[2]=L*h+_*b,o[3]=L*d+_*p,o}},5964:function(i){"use strict";i.exports=function(a){return!a&&a!==0?"":a.toString()}},9366:function(i,a,o){"use strict";var s=o(4359);i.exports=u;var l={};function u(c,f,h){var d=[f.style,f.weight,f.variant,f.family].join("_"),v=l[d];if(v||(v=l[d]={}),c in v)return v[c];var x={textAlign:"center",textBaseline:"middle",lineHeight:1,font:f.family,fontStyle:f.style,fontWeight:f.weight,fontVariant:f.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};x.triangles=!0;var b=s(c,x);x.triangles=!1;var p=s(c,x),C,E;if(h&&h!==1){for(C=0;C0){var T=Math.round(Math.pow(10,P));return Math.ceil(g/T)*T}return Math.ceil(g)}function x(g){return typeof g=="boolean"?g:!0}function k(g){g=g||{},g.camera=g.camera||{};var P=g.canvas;if(!P)if(P=document.createElement("canvas"),g.container){var T=g.container;T.appendChild(P)}else document.body.appendChild(P);var z=g.gl;if(z||(g.glOptions&&(C=!!g.glOptions.preserveDrawingBuffer),z=A(P,g.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:C})),!z)throw new Error("webgl not supported");var O=g.bounds||[[-10,-10,-10],[10,10,10]],V=new E,G=h(z,z.drawingBufferWidth,z.drawingBufferHeight,{preferFloat:!C}),Z=p(z),H=g.cameraObject&&g.cameraObject._ortho===!0||g.camera.projection&&g.camera.projection.type==="orthographic"||!1,N={eye:g.camera.eye||[2,0,0],center:g.camera.center||[0,0,0],up:g.camera.up||[0,1,0],zoomMin:g.camera.zoomMax||.1,zoomMax:g.camera.zoomMin||100,mode:g.camera.mode||"turntable",_ortho:H},j=g.axes||{},re=l(z,j);re.enable=!j.disable;var oe=g.spikes||{},_e=c(z,oe),Me=[],ke=[],me=[],ie=[],Se=!0,Pe=!0,Le=new Array(16),Ae=new Array(16),De={view:null,projection:Le,model:Ae,_ortho:!1},Pe=!0,ge=[z.drawingBufferWidth,z.drawingBufferHeight],Fe=g.cameraObject||s(P,N),ce={gl:z,contextLost:!1,pixelRatio:g.pixelRatio||1,canvas:P,selection:V,camera:Fe,axes:re,axesPixels:null,spikes:_e,bounds:O,objects:Me,shape:ge,aspect:g.aspectRatio||[1,1,1],pickRadius:g.pickRadius||10,zNear:g.zNear||.01,zFar:g.zFar||1e3,fovy:g.fovy||Math.PI/4,clearColor:g.clearColor||[0,0,0,0],autoResize:x(g.autoResize),autoBounds:x(g.autoBounds),autoScale:!!g.autoScale,autoCenter:x(g.autoCenter),clipToBounds:x(g.clipToBounds),snapToData:!!g.snapToData,onselect:g.onselect||null,onrender:g.onrender||null,onclick:g.onclick||null,cameraParams:De,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(sr){this.aspect[0]=sr.x,this.aspect[1]=sr.y,this.aspect[2]=sr.z,Pe=!0},setBounds:function(sr,wr){this.bounds[0][sr]=wr.min,this.bounds[1][sr]=wr.max},setClearColor:function(sr){this.clearColor=sr},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},Ze=[z.drawingBufferWidth/ce.pixelRatio|0,z.drawingBufferHeight/ce.pixelRatio|0];function ct(){if(!ce._stopped&&ce.autoResize){var sr=P.parentNode,wr=1,ur=1;sr&&sr!==document.body?(wr=sr.clientWidth,ur=sr.clientHeight):(wr=window.innerWidth,ur=window.innerHeight);var Qe=Math.ceil(wr*ce.pixelRatio)|0,Et=Math.ceil(ur*ce.pixelRatio)|0;if(Qe!==P.width||Et!==P.height){P.width=Qe,P.height=Et;var er=P.style;er.position=er.position||"absolute",er.left="0px",er.top="0px",er.width=wr+"px",er.height=ur+"px",Se=!0}}}ce.autoResize&&ct(),window.addEventListener("resize",ct);function pt(){for(var sr=Me.length,wr=ie.length,ur=0;ur0&&me[wr-1]===0;)me.pop(),ie.pop().dispose()}ce.update=function(sr){ce._stopped||(sr=sr||{},Se=!0,Pe=!0)},ce.add=function(sr){ce._stopped||(sr.axes=re,Me.push(sr),ke.push(-1),Se=!0,Pe=!0,pt())},ce.remove=function(sr){if(!ce._stopped){var wr=Me.indexOf(sr);wr<0||(Me.splice(wr,1),ke.pop(),Se=!0,Pe=!0,pt())}},ce.dispose=function(){if(!ce._stopped&&(ce._stopped=!0,window.removeEventListener("resize",ct),P.removeEventListener("webglcontextlost",Wt),ce.mouseListener.enabled=!1,!ce.contextLost)){re.dispose(),_e.dispose();for(var sr=0;srV.distance)continue;for(var yt=0;yt1e-6?(C=Math.acos(E),A=Math.sin(C),L=Math.sin((1-u)*C)/A,x=Math.sin(u*C)/A):(L=1-u,x=u),o[0]=L*c+x*v,o[1]=L*f+x*_,o[2]=L*h+x*b,o[3]=L*d+x*p,o}},5964:function(i){"use strict";i.exports=function(a){return!a&&a!==0?"":a.toString()}},9366:function(i,a,o){"use strict";var s=o(4359);i.exports=u;var l={};function u(c,f,h){var d=[f.style,f.weight,f.variant,f.family].join("_"),v=l[d];if(v||(v=l[d]={}),c in v)return v[c];var _={textAlign:"center",textBaseline:"middle",lineHeight:1,font:f.family,fontStyle:f.style,fontWeight:f.weight,fontVariant:f.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};_.triangles=!0;var b=s(c,_);_.triangles=!1;var p=s(c,_),C,E;if(h&&h!==1){for(C=0;C1?1:Ae}function M(Ae,De,Pe,ge,Fe,ce,Ze,ct,pt,Wt,st,lt){this.gl=Ae,this.pixelRatio=1,this.shader=De,this.orthoShader=Pe,this.projectShader=ge,this.pointBuffer=Fe,this.colorBuffer=ce,this.glyphBuffer=Ze,this.idBuffer=ct,this.vao=pt,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=Wt,this.pickOrthoShader=st,this.pickProjectShader=lt,this.points=[],this._selectResult=new _(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var g=M.prototype;g.pickSlots=1,g.setPickBase=function(Ae){this.pickId=Ae},g.isTransparent=function(){if(this.hasAlpha)return!0;for(var Ae=0;Ae<3;++Ae)if(this.axesProject[Ae]&&this.projectHasAlpha)return!0;return!1},g.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Ae=0;Ae<3;++Ae)if(this.axesProject[Ae]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],T=[0,0,0],z=[0,0,0],O=[0,0,0,1],V=[0,0,0,1],G=x.slice(),Z=[0,0,0],H=[[0,0,0],[0,0,0]];function N(Ae){return Ae[0]=Ae[1]=Ae[2]=0,Ae}function j(Ae,De){return Ae[0]=De[0],Ae[1]=De[1],Ae[2]=De[2],Ae[3]=1,Ae}function re(Ae,De,Pe,ge){return Ae[0]=De[0],Ae[1]=De[1],Ae[2]=De[2],Ae[Pe]=ge,Ae}function oe(Ae){for(var De=H,Pe=0;Pe<2;++Pe)for(var ge=0;ge<3;++ge)De[Pe][ge]=Math.max(Math.min(Ae[Pe][ge],1e8),-1e8);return De}function _e(Ae,De,Pe,ge){var Fe=De.axesProject,ce=De.gl,Ze=Ae.uniforms,ct=Pe.model||x,pt=Pe.view||x,Wt=Pe.projection||x,st=De.axesBounds,lt=oe(De.clipBounds),Gt;De.axes&&De.axes.lastCubeProps?Gt=De.axes.lastCubeProps.axis:Gt=[1,1,1],P[0]=2/ce.drawingBufferWidth,P[1]=2/ce.drawingBufferHeight,Ae.bind(),Ze.view=pt,Ze.projection=Wt,Ze.screenSize=P,Ze.highlightId=De.highlightId,Ze.highlightScale=De.highlightScale,Ze.clipBounds=lt,Ze.pickGroup=De.pickId/255,Ze.pixelRatio=ge;for(var Nt=0;Nt<3;++Nt)if(Fe[Nt]){Ze.scale=De.projectScale[Nt],Ze.opacity=De.projectOpacity[Nt];for(var $t=G,sr=0;sr<16;++sr)$t[sr]=0;for(var sr=0;sr<4;++sr)$t[5*sr]=1;$t[5*Nt]=0,Gt[Nt]<0?$t[12+Nt]=st[0][Nt]:$t[12+Nt]=st[1][Nt],f($t,ct,$t),Ze.model=$t;var wr=(Nt+1)%3,ur=(Nt+2)%3,Qe=N(T),Et=N(z);Qe[wr]=1,Et[ur]=1;var er=L(Wt,pt,ct,j(O,Qe)),Ut=L(Wt,pt,ct,j(V,Et));if(Math.abs(er[1])>Math.abs(Ut[1])){var Ft=er;er=Ut,Ut=Ft,Ft=Qe,Qe=Et,Et=Ft;var bt=wr;wr=ur,ur=bt}er[0]<0&&(Qe[wr]=-1),Ut[1]>0&&(Et[ur]=-1);for(var yt=0,Yt=0,sr=0;sr<4;++sr)yt+=Math.pow(ct[4*wr+sr],2),Yt+=Math.pow(ct[4*ur+sr],2);Qe[wr]/=Math.sqrt(yt),Et[ur]/=Math.sqrt(Yt),Ze.axes[0]=Qe,Ze.axes[1]=Et,Ze.fragClipBounds[0]=re(Z,lt[0],Nt,-1e8),Ze.fragClipBounds[1]=re(Z,lt[1],Nt,1e8),De.vao.bind(),De.vao.draw(ce.TRIANGLES,De.vertexCount),De.lineWidth>0&&(ce.lineWidth(De.lineWidth*ge),De.vao.draw(ce.LINES,De.lineVertexCount,De.vertexCount)),De.vao.unbind()}}var Me=[-1e8,-1e8,-1e8],ke=[1e8,1e8,1e8],me=[Me,ke];function ie(Ae,De,Pe,ge,Fe,ce,Ze){var ct=Pe.gl;if((ce===Pe.projectHasAlpha||Ze)&&_e(De,Pe,ge,Fe),ce===Pe.hasAlpha||Ze){Ae.bind();var pt=Ae.uniforms;pt.model=ge.model||x,pt.view=ge.view||x,pt.projection=ge.projection||x,P[0]=2/ct.drawingBufferWidth,P[1]=2/ct.drawingBufferHeight,pt.screenSize=P,pt.highlightId=Pe.highlightId,pt.highlightScale=Pe.highlightScale,pt.fragClipBounds=me,pt.clipBounds=Pe.axes.bounds,pt.opacity=Pe.opacity,pt.pickGroup=Pe.pickId/255,pt.pixelRatio=Fe,Pe.vao.bind(),Pe.vao.draw(ct.TRIANGLES,Pe.vertexCount),Pe.lineWidth>0&&(ct.lineWidth(Pe.lineWidth*Fe),Pe.vao.draw(ct.LINES,Pe.lineVertexCount,Pe.vertexCount)),Pe.vao.unbind()}}g.draw=function(Ae){var De=this.useOrtho?this.orthoShader:this.shader;ie(De,this.projectShader,this,Ae,this.pixelRatio,!1,!1)},g.drawTransparent=function(Ae){var De=this.useOrtho?this.orthoShader:this.shader;ie(De,this.projectShader,this,Ae,this.pixelRatio,!0,!1)},g.drawPick=function(Ae){var De=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;ie(De,this.pickProjectShader,this,Ae,1,!0,!0)},g.pick=function(Ae){if(!Ae||Ae.id!==this.pickId)return null;var De=Ae.value[2]+(Ae.value[1]<<8)+(Ae.value[0]<<16);if(De>=this.pointCount||De<0)return null;var Pe=this.points[De],ge=this._selectResult;ge.index=De;for(var Fe=0;Fe<3;++Fe)ge.position[Fe]=ge.dataCoordinate[Fe]=Pe[Fe];return ge},g.highlight=function(Ae){if(!Ae)this.highlightId=[1,1,1,1];else{var De=Ae.index,Pe=De&255,ge=De>>8&255,Fe=De>>16&255;this.highlightId=[Pe/255,ge/255,Fe/255,0]}};function Se(Ae,De,Pe,ge){var Fe;E(Ae)?De0){var Ur=0,dt=ur,Ge=[0,0,0,1],Je=[0,0,0,1],je=E(Gt)&&E(Gt[0]),$e=E(sr)&&E(sr[0]);e:for(var ge=0;ge0?1-Yt[0][0]:ir<0?1+Yt[1][0]:1,pr*=pr>0?1-Yt[0][1]:pr<0?1+Yt[1][1]:1;for(var oi=[ir,pr],Pn=bt.cells||[],wn=bt.positions||[],Ut=0;Utthis.buffer.length){l.free(this.buffer);for(var E=this.buffer=l.mallocUint8(c(C*p*4)),A=0;AE)for(p=E;pC)for(p=C;p=0){for(var H=Z.type.charAt(Z.type.length-1)|0,N=new Array(H),j=0;j=0;)re+=1;V[G]=re}var oe=new Array(E.length);function _e(){_.program=c.program(k,_._vref,_._fref,O,V);for(var Me=0;Me=0){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+_+": "+k);f(v,x,M[0],p,g,C,_)}else if(k.indexOf("mat")>=0){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+_+": "+k);h(v,x,M,p,g,C,_)}else throw new s("","Unknown data type for attribute "+_+": "+k);break}}return C}},3327:function(i,a,o){"use strict";var s=o(216),l=o(8866);i.exports=f;function u(h){return function(){return h}}function c(h,d){for(var v=new Array(h),x=0;x4)throw new l("","Invalid data type");switch(re.charAt(0)){case"b":case"i":h["uniform"+oe+"iv"](x[V],G);break;case"v":h["uniform"+oe+"fv"](x[V],G);break;default:throw new l("","Unrecognized data type for vector "+name+": "+re)}}else if(re.indexOf("mat")===0&&re.length===4){if(oe=re.charCodeAt(re.length-1)-48,oe<2||oe>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+re);h["uniformMatrix"+oe+"fv"](x[V],!1,G);break}else throw new l("","Unknown uniform data type for "+name+": "+re)}}}}}function C(k,M){if(typeof M!="object")return[[k,M]];var g=[];for(var P in M){var T=M[P],z=k;parseInt(P)+""===P?z+="["+P+"]":z+="."+P,typeof T=="object"?g.push.apply(g,C(z,T)):g.push([z,T])}return g}function E(k){switch(k){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var M=k.indexOf("vec");if(0<=M&&M<=1&&k.length===4+M){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new l("","Invalid data type");return k.charAt(0)==="b"?c(g,!1):c(g,0)}else if(k.indexOf("mat")===0&&k.length===4){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+k);return c(g*g,0)}else throw new l("","Unknown uniform data type for "+name+": "+k)}}function A(k,M,g){if(typeof g=="object"){var P=L(g);Object.defineProperty(k,M,{get:u(P),set:p(g),enumerable:!0,configurable:!1})}else x[g]?Object.defineProperty(k,M,{get:b(g),set:p(g),enumerable:!0,configurable:!1}):k[M]=E(v[g].type)}function L(k){var M;if(Array.isArray(k)){M=new Array(k.length);for(var g=0;g1){v[0]in h||(h[v[0]]=[]),h=h[v[0]];for(var x=1;x1)for(var C=0;C1?1:Ae}function M(Ae,De,Pe,ge,Fe,ce,Ze,ct,pt,Wt,st,lt){this.gl=Ae,this.pixelRatio=1,this.shader=De,this.orthoShader=Pe,this.projectShader=ge,this.pointBuffer=Fe,this.colorBuffer=ce,this.glyphBuffer=Ze,this.idBuffer=ct,this.vao=pt,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=Wt,this.pickOrthoShader=st,this.pickProjectShader=lt,this.points=[],this._selectResult=new x(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var g=M.prototype;g.pickSlots=1,g.setPickBase=function(Ae){this.pickId=Ae},g.isTransparent=function(){if(this.hasAlpha)return!0;for(var Ae=0;Ae<3;++Ae)if(this.axesProject[Ae]&&this.projectHasAlpha)return!0;return!1},g.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Ae=0;Ae<3;++Ae)if(this.axesProject[Ae]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],T=[0,0,0],z=[0,0,0],O=[0,0,0,1],V=[0,0,0,1],G=_.slice(),Z=[0,0,0],H=[[0,0,0],[0,0,0]];function N(Ae){return Ae[0]=Ae[1]=Ae[2]=0,Ae}function j(Ae,De){return Ae[0]=De[0],Ae[1]=De[1],Ae[2]=De[2],Ae[3]=1,Ae}function re(Ae,De,Pe,ge){return Ae[0]=De[0],Ae[1]=De[1],Ae[2]=De[2],Ae[Pe]=ge,Ae}function oe(Ae){for(var De=H,Pe=0;Pe<2;++Pe)for(var ge=0;ge<3;++ge)De[Pe][ge]=Math.max(Math.min(Ae[Pe][ge],1e8),-1e8);return De}function _e(Ae,De,Pe,ge){var Fe=De.axesProject,ce=De.gl,Ze=Ae.uniforms,ct=Pe.model||_,pt=Pe.view||_,Wt=Pe.projection||_,st=De.axesBounds,lt=oe(De.clipBounds),Gt;De.axes&&De.axes.lastCubeProps?Gt=De.axes.lastCubeProps.axis:Gt=[1,1,1],P[0]=2/ce.drawingBufferWidth,P[1]=2/ce.drawingBufferHeight,Ae.bind(),Ze.view=pt,Ze.projection=Wt,Ze.screenSize=P,Ze.highlightId=De.highlightId,Ze.highlightScale=De.highlightScale,Ze.clipBounds=lt,Ze.pickGroup=De.pickId/255,Ze.pixelRatio=ge;for(var Nt=0;Nt<3;++Nt)if(Fe[Nt]){Ze.scale=De.projectScale[Nt],Ze.opacity=De.projectOpacity[Nt];for(var $t=G,sr=0;sr<16;++sr)$t[sr]=0;for(var sr=0;sr<4;++sr)$t[5*sr]=1;$t[5*Nt]=0,Gt[Nt]<0?$t[12+Nt]=st[0][Nt]:$t[12+Nt]=st[1][Nt],f($t,ct,$t),Ze.model=$t;var wr=(Nt+1)%3,ur=(Nt+2)%3,Qe=N(T),Et=N(z);Qe[wr]=1,Et[ur]=1;var er=L(Wt,pt,ct,j(O,Qe)),Ut=L(Wt,pt,ct,j(V,Et));if(Math.abs(er[1])>Math.abs(Ut[1])){var Ft=er;er=Ut,Ut=Ft,Ft=Qe,Qe=Et,Et=Ft;var bt=wr;wr=ur,ur=bt}er[0]<0&&(Qe[wr]=-1),Ut[1]>0&&(Et[ur]=-1);for(var yt=0,Yt=0,sr=0;sr<4;++sr)yt+=Math.pow(ct[4*wr+sr],2),Yt+=Math.pow(ct[4*ur+sr],2);Qe[wr]/=Math.sqrt(yt),Et[ur]/=Math.sqrt(Yt),Ze.axes[0]=Qe,Ze.axes[1]=Et,Ze.fragClipBounds[0]=re(Z,lt[0],Nt,-1e8),Ze.fragClipBounds[1]=re(Z,lt[1],Nt,1e8),De.vao.bind(),De.vao.draw(ce.TRIANGLES,De.vertexCount),De.lineWidth>0&&(ce.lineWidth(De.lineWidth*ge),De.vao.draw(ce.LINES,De.lineVertexCount,De.vertexCount)),De.vao.unbind()}}var Me=[-1e8,-1e8,-1e8],ke=[1e8,1e8,1e8],me=[Me,ke];function ie(Ae,De,Pe,ge,Fe,ce,Ze){var ct=Pe.gl;if((ce===Pe.projectHasAlpha||Ze)&&_e(De,Pe,ge,Fe),ce===Pe.hasAlpha||Ze){Ae.bind();var pt=Ae.uniforms;pt.model=ge.model||_,pt.view=ge.view||_,pt.projection=ge.projection||_,P[0]=2/ct.drawingBufferWidth,P[1]=2/ct.drawingBufferHeight,pt.screenSize=P,pt.highlightId=Pe.highlightId,pt.highlightScale=Pe.highlightScale,pt.fragClipBounds=me,pt.clipBounds=Pe.axes.bounds,pt.opacity=Pe.opacity,pt.pickGroup=Pe.pickId/255,pt.pixelRatio=Fe,Pe.vao.bind(),Pe.vao.draw(ct.TRIANGLES,Pe.vertexCount),Pe.lineWidth>0&&(ct.lineWidth(Pe.lineWidth*Fe),Pe.vao.draw(ct.LINES,Pe.lineVertexCount,Pe.vertexCount)),Pe.vao.unbind()}}g.draw=function(Ae){var De=this.useOrtho?this.orthoShader:this.shader;ie(De,this.projectShader,this,Ae,this.pixelRatio,!1,!1)},g.drawTransparent=function(Ae){var De=this.useOrtho?this.orthoShader:this.shader;ie(De,this.projectShader,this,Ae,this.pixelRatio,!0,!1)},g.drawPick=function(Ae){var De=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;ie(De,this.pickProjectShader,this,Ae,1,!0,!0)},g.pick=function(Ae){if(!Ae||Ae.id!==this.pickId)return null;var De=Ae.value[2]+(Ae.value[1]<<8)+(Ae.value[0]<<16);if(De>=this.pointCount||De<0)return null;var Pe=this.points[De],ge=this._selectResult;ge.index=De;for(var Fe=0;Fe<3;++Fe)ge.position[Fe]=ge.dataCoordinate[Fe]=Pe[Fe];return ge},g.highlight=function(Ae){if(!Ae)this.highlightId=[1,1,1,1];else{var De=Ae.index,Pe=De&255,ge=De>>8&255,Fe=De>>16&255;this.highlightId=[Pe/255,ge/255,Fe/255,0]}};function Se(Ae,De,Pe,ge){var Fe;E(Ae)?De0){var Ur=0,dt=ur,Ge=[0,0,0,1],Je=[0,0,0,1],je=E(Gt)&&E(Gt[0]),$e=E(sr)&&E(sr[0]);e:for(var ge=0;ge0?1-Yt[0][0]:ir<0?1+Yt[1][0]:1,pr*=pr>0?1-Yt[0][1]:pr<0?1+Yt[1][1]:1;for(var oi=[ir,pr],Pn=bt.cells||[],wn=bt.positions||[],Ut=0;Utthis.buffer.length){l.free(this.buffer);for(var E=this.buffer=l.mallocUint8(c(C*p*4)),A=0;AE)for(p=E;pC)for(p=C;p=0){for(var H=Z.type.charAt(Z.type.length-1)|0,N=new Array(H),j=0;j=0;)re+=1;V[G]=re}var oe=new Array(E.length);function _e(){x.program=c.program(k,x._vref,x._fref,O,V);for(var Me=0;Me=0){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+x+": "+k);f(v,_,M[0],p,g,C,x)}else if(k.indexOf("mat")>=0){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+x+": "+k);h(v,_,M,p,g,C,x)}else throw new s("","Unknown data type for attribute "+x+": "+k);break}}return C}},3327:function(i,a,o){"use strict";var s=o(216),l=o(8866);i.exports=f;function u(h){return function(){return h}}function c(h,d){for(var v=new Array(h),_=0;_4)throw new l("","Invalid data type");switch(re.charAt(0)){case"b":case"i":h["uniform"+oe+"iv"](_[V],G);break;case"v":h["uniform"+oe+"fv"](_[V],G);break;default:throw new l("","Unrecognized data type for vector "+name+": "+re)}}else if(re.indexOf("mat")===0&&re.length===4){if(oe=re.charCodeAt(re.length-1)-48,oe<2||oe>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+re);h["uniformMatrix"+oe+"fv"](_[V],!1,G);break}else throw new l("","Unknown uniform data type for "+name+": "+re)}}}}}function C(k,M){if(typeof M!="object")return[[k,M]];var g=[];for(var P in M){var T=M[P],z=k;parseInt(P)+""===P?z+="["+P+"]":z+="."+P,typeof T=="object"?g.push.apply(g,C(z,T)):g.push([z,T])}return g}function E(k){switch(k){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var M=k.indexOf("vec");if(0<=M&&M<=1&&k.length===4+M){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new l("","Invalid data type");return k.charAt(0)==="b"?c(g,!1):c(g,0)}else if(k.indexOf("mat")===0&&k.length===4){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+k);return c(g*g,0)}else throw new l("","Unknown uniform data type for "+name+": "+k)}}function A(k,M,g){if(typeof g=="object"){var P=L(g);Object.defineProperty(k,M,{get:u(P),set:p(g),enumerable:!0,configurable:!1})}else _[g]?Object.defineProperty(k,M,{get:b(g),set:p(g),enumerable:!0,configurable:!1}):k[M]=E(v[g].type)}function L(k){var M;if(Array.isArray(k)){M=new Array(k.length);for(var g=0;g1){v[0]in h||(h[v[0]]=[]),h=h[v[0]];for(var _=1;_1)for(var C=0;C0)for(var ie=0;ieL)return k-1}return k},d=function(A,L,_){return A_?_:A},v=function(A,L,_){var k=L.vectors,M=L.meshgrid,g=A[0],P=A[1],T=A[2],z=M[0].length,O=M[1].length,V=M[2].length,G=h(M[0],g),Z=h(M[1],P),H=h(M[2],T),N=G+1,j=Z+1,re=H+1;if(G=d(G,0,z-1),N=d(N,0,z-1),Z=d(Z,0,O-1),j=d(j,0,O-1),H=d(H,0,V-1),re=d(re,0,V-1),G<0||Z<0||H<0||N>z-1||j>O-1||re>V-1)return s.create();var oe=M[0][G],_e=M[0][N],Me=M[1][Z],ke=M[1][j],me=M[2][H],ie=M[2][re],Se=(g-oe)/(_e-oe),Le=(P-Me)/(ke-Me),Ae=(T-me)/(ie-me);isFinite(Se)||(Se=.5),isFinite(Le)||(Le=.5),isFinite(Ae)||(Ae=.5);var De,Pe,ge,Fe,ce,Ze;switch(_.reversedX&&(G=z-1-G,N=z-1-N),_.reversedY&&(Z=O-1-Z,j=O-1-j),_.reversedZ&&(H=V-1-H,re=V-1-re),_.filled){case 5:ce=H,Ze=re,ge=Z*V,Fe=j*V,De=G*V*O,Pe=N*V*O;break;case 4:ce=H,Ze=re,De=G*V,Pe=N*V,ge=Z*V*z,Fe=j*V*z;break;case 3:ge=Z,Fe=j,ce=H*O,Ze=re*O,De=G*O*V,Pe=N*O*V;break;case 2:ge=Z,Fe=j,De=G*O,Pe=N*O,ce=H*O*z,Ze=re*O*z;break;case 1:De=G,Pe=N,ce=H*z,Ze=re*z,ge=Z*z*V,Fe=j*z*V;break;default:De=G,Pe=N,ge=Z*z,Fe=j*z,ce=H*z*O,Ze=re*z*O;break}var ct=k[De+ge+ce],pt=k[De+ge+Ze],Wt=k[De+Fe+ce],st=k[De+Fe+Ze],lt=k[Pe+ge+ce],Gt=k[Pe+ge+Ze],Nt=k[Pe+Fe+ce],$t=k[Pe+Fe+Ze],sr=s.create(),wr=s.create(),ur=s.create(),Qe=s.create();s.lerp(sr,ct,lt,Se),s.lerp(wr,pt,Gt,Se),s.lerp(ur,Wt,Nt,Se),s.lerp(Qe,st,$t,Se);var Et=s.create(),er=s.create();s.lerp(Et,sr,ur,Le),s.lerp(er,wr,Qe,Le);var Ut=s.create();return s.lerp(Ut,Et,er,Ae),Ut},x=function(A,L){var _=L[0],k=L[1],M=L[2];return A[0]=_<0?-_:_,A[1]=k<0?-k:k,A[2]=M<0?-M:M,A},b=function(A){var L=1/0;A.sort(function(g,P){return g-P});for(var _=A.length,k=1;k<_;k++){var M=Math.abs(A[k]-A[k-1]);MN||$tj||srre)},_e=s.distance(L[0],L[1]),Me=10*_e/k,ke=Me*Me,me=1,ie=0,Se=_.length;Se>1&&(me=p(_));for(var Le=0;Leie&&(ie=ct),ce.push(ct),V.push({points:De,velocities:Pe,divergences:ce});for(var pt=0;ptke&&s.scale(Wt,Wt,Me/Math.sqrt(st)),s.add(Wt,Wt,Ae),ge=z(Wt),s.squaredDistance(Fe,Wt)-ke>-1e-4*ke){De.push(Wt),Fe=Wt,Pe.push(ge);var Ze=O(Wt,ge),ct=s.length(Ze);isFinite(ct)&&ct>ie&&(ie=ct),ce.push(ct)}Ae=Wt}}var lt=f(V,A.colormap,ie,me);return g?lt.tubeScale=g:(ie===0&&(ie=1),lt.tubeScale=M*.5*me/ie),lt};var C=o(6740),E=o(6405).createMesh;i.exports.createTubeMesh=function(A,L){return E(A,L,{shaders:C,traceType:"streamtube"})}},990:function(i,a,o){var s=o(9405),l=o(3236),u=l([`precision highp float; +}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},a.pickShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815:function(i,a,o){"use strict";var s=o(2931),l=o(9970),u=["xyz","xzy","yxz","yzx","zxy","zyx"],c=function(A,L,x,k){for(var M=A.points,g=A.velocities,P=A.divergences,T=[],z=[],O=[],V=[],G=[],Z=[],H=0,N=0,j=l.create(),re=l.create(),oe=8,_e=0;_e0)for(var ie=0;ieL)return k-1}return k},d=function(A,L,x){return Ax?x:A},v=function(A,L,x){var k=L.vectors,M=L.meshgrid,g=A[0],P=A[1],T=A[2],z=M[0].length,O=M[1].length,V=M[2].length,G=h(M[0],g),Z=h(M[1],P),H=h(M[2],T),N=G+1,j=Z+1,re=H+1;if(G=d(G,0,z-1),N=d(N,0,z-1),Z=d(Z,0,O-1),j=d(j,0,O-1),H=d(H,0,V-1),re=d(re,0,V-1),G<0||Z<0||H<0||N>z-1||j>O-1||re>V-1)return s.create();var oe=M[0][G],_e=M[0][N],Me=M[1][Z],ke=M[1][j],me=M[2][H],ie=M[2][re],Se=(g-oe)/(_e-oe),Le=(P-Me)/(ke-Me),Ae=(T-me)/(ie-me);isFinite(Se)||(Se=.5),isFinite(Le)||(Le=.5),isFinite(Ae)||(Ae=.5);var De,Pe,ge,Fe,ce,Ze;switch(x.reversedX&&(G=z-1-G,N=z-1-N),x.reversedY&&(Z=O-1-Z,j=O-1-j),x.reversedZ&&(H=V-1-H,re=V-1-re),x.filled){case 5:ce=H,Ze=re,ge=Z*V,Fe=j*V,De=G*V*O,Pe=N*V*O;break;case 4:ce=H,Ze=re,De=G*V,Pe=N*V,ge=Z*V*z,Fe=j*V*z;break;case 3:ge=Z,Fe=j,ce=H*O,Ze=re*O,De=G*O*V,Pe=N*O*V;break;case 2:ge=Z,Fe=j,De=G*O,Pe=N*O,ce=H*O*z,Ze=re*O*z;break;case 1:De=G,Pe=N,ce=H*z,Ze=re*z,ge=Z*z*V,Fe=j*z*V;break;default:De=G,Pe=N,ge=Z*z,Fe=j*z,ce=H*z*O,Ze=re*z*O;break}var ct=k[De+ge+ce],pt=k[De+ge+Ze],Wt=k[De+Fe+ce],st=k[De+Fe+Ze],lt=k[Pe+ge+ce],Gt=k[Pe+ge+Ze],Nt=k[Pe+Fe+ce],$t=k[Pe+Fe+Ze],sr=s.create(),wr=s.create(),ur=s.create(),Qe=s.create();s.lerp(sr,ct,lt,Se),s.lerp(wr,pt,Gt,Se),s.lerp(ur,Wt,Nt,Se),s.lerp(Qe,st,$t,Se);var Et=s.create(),er=s.create();s.lerp(Et,sr,ur,Le),s.lerp(er,wr,Qe,Le);var Ut=s.create();return s.lerp(Ut,Et,er,Ae),Ut},_=function(A,L){var x=L[0],k=L[1],M=L[2];return A[0]=x<0?-x:x,A[1]=k<0?-k:k,A[2]=M<0?-M:M,A},b=function(A){var L=1/0;A.sort(function(g,P){return g-P});for(var x=A.length,k=1;kN||$tj||srre)},_e=s.distance(L[0],L[1]),Me=10*_e/k,ke=Me*Me,me=1,ie=0,Se=x.length;Se>1&&(me=p(x));for(var Le=0;Leie&&(ie=ct),ce.push(ct),V.push({points:De,velocities:Pe,divergences:ce});for(var pt=0;ptke&&s.scale(Wt,Wt,Me/Math.sqrt(st)),s.add(Wt,Wt,Ae),ge=z(Wt),s.squaredDistance(Fe,Wt)-ke>-1e-4*ke){De.push(Wt),Fe=Wt,Pe.push(ge);var Ze=O(Wt,ge),ct=s.length(Ze);isFinite(ct)&&ct>ie&&(ie=ct),ce.push(ct)}Ae=Wt}}var lt=f(V,A.colormap,ie,me);return g?lt.tubeScale=g:(ie===0&&(ie=1),lt.tubeScale=M*.5*me/ie),lt};var C=o(6740),E=o(6405).createMesh;i.exports.createTubeMesh=function(A,L){return E(A,L,{shaders:C,traceType:"streamtube"})}},990:function(i,a,o){var s=o(9405),l=o(3236),u=l([`precision highp float; #define GLSLIFY 1 attribute vec4 uv; @@ -1999,15 +1999,15 @@ void main() { vec2 uy = splitFloat(planeCoordinate.y / shape.y); gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); } -`]);a.createShader=function(d){var v=s(d,u,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v.attributes.normal.location=2,v},a.createPickShader=function(d){var v=s(d,u,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v.attributes.normal.location=2,v},a.createContourShader=function(d){var v=s(d,f,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v},a.createPickContourShader=function(d){var v=s(d,f,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v}},9499:function(i,a,o){"use strict";i.exports=De;var s=o(8828),l=o(2762),u=o(8116),c=o(7766),f=o(1888),h=o(6729),d=o(5298),v=o(9994),x=o(9618),b=o(3711),p=o(6760),C=o(7608),E=o(2478),A=o(6199),L=o(990),_=L.createShader,k=L.createContourShader,M=L.createPickShader,g=L.createPickContourShader,P=4*10,T=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],z=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],O=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var Pe=0;Pe<3;++Pe){var ge=O[Pe],Fe=(Pe+1)%3,ce=(Pe+2)%3;ge[Fe+0]=1,ge[ce+3]=1,ge[Pe+6]=1}})();function V(Pe,ge,Fe,ce,Ze){this.position=Pe,this.index=ge,this.uv=Fe,this.level=ce,this.dataCoordinate=Ze}var G=256;function Z(Pe,ge,Fe,ce,Ze,ct,pt,Wt,st,lt,Gt,Nt,$t,sr,wr){this.gl=Pe,this.shape=ge,this.bounds=Fe,this.objectOffset=wr,this.intensityBounds=[],this._shader=ce,this._pickShader=Ze,this._coordinateBuffer=ct,this._vao=pt,this._colorMap=Wt,this._contourShader=st,this._contourPickShader=lt,this._contourBuffer=Gt,this._contourVAO=Nt,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new V([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=$t,this._dynamicVAO=sr,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[x(f.mallocFloat(1024),[0,0]),x(f.mallocFloat(1024),[0,0]),x(f.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var H=Z.prototype;H.genColormap=function(Pe,ge){var Fe=!1,ce=v([h({colormap:Pe,nshades:G,format:"rgba"}).map(function(Ze,ct){var pt=ge?N(ct/255,ge):Ze[3];return pt<1&&(Fe=!0),[Ze[0],Ze[1],Ze[2],255*pt]})]);return d.divseq(ce,255),this.hasAlphaScale=Fe,ce},H.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},H.isOpaque=function(){return!this.isTransparent()},H.pickSlots=1,H.setPickBase=function(Pe){this.pickId=Pe};function N(Pe,ge){if(!ge||!ge.length)return 1;for(var Fe=0;FePe&&Fe>0){var ce=(ge[Fe][0]-Pe)/(ge[Fe][0]-ge[Fe-1][0]);return ge[Fe][1]*(1-ce)+ce*ge[Fe-1][1]}}return 1}var j=[0,0,0],re={showSurface:!1,showContour:!1,projections:[T.slice(),T.slice(),T.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function oe(Pe,ge){var Fe,ce,Ze,ct=ge.axes&&ge.axes.lastCubeProps.axis||j,pt=ge.showSurface,Wt=ge.showContour;for(Fe=0;Fe<3;++Fe)for(pt=pt||ge.surfaceProject[Fe],ce=0;ce<3;++ce)Wt=Wt||ge.contourProject[Fe][ce];for(Fe=0;Fe<3;++Fe){var st=re.projections[Fe];for(ce=0;ce<16;++ce)st[ce]=0;for(ce=0;ce<4;++ce)st[5*ce]=1;st[5*Fe]=0,st[12+Fe]=ge.axesBounds[+(ct[Fe]>0)][Fe],p(st,Pe.model,st);var lt=re.clipBounds[Fe];for(Ze=0;Ze<2;++Ze)for(ce=0;ce<3;++ce)lt[Ze][ce]=Pe.clipBounds[Ze][ce];lt[0][Fe]=-1e8,lt[1][Fe]=1e8}return re.showSurface=pt,re.showContour=Wt,re}var _e={model:T,view:T,projection:T,inverseModel:T.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},Me=T.slice(),ke=[1,0,0,0,1,0,0,0,1];function me(Pe,ge){Pe=Pe||{};var Fe=this.gl;Fe.disable(Fe.CULL_FACE),this._colorMap.bind(0);var ce=_e;ce.model=Pe.model||T,ce.view=Pe.view||T,ce.projection=Pe.projection||T,ce.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ce.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ce.objectOffset=this.objectOffset,ce.contourColor=this.contourColor[0],ce.inverseModel=C(ce.inverseModel,ce.model);for(var Ze=0;Ze<2;++Ze)for(var ct=ce.clipBounds[Ze],pt=0;pt<3;++pt)ct[pt]=Math.min(Math.max(this.clipBounds[Ze][pt],-1e8),1e8);ce.kambient=this.ambientLight,ce.kdiffuse=this.diffuseLight,ce.kspecular=this.specularLight,ce.roughness=this.roughness,ce.fresnel=this.fresnel,ce.opacity=this.opacity,ce.height=0,ce.permutation=ke,ce.vertexColor=this.vertexColor;var Wt=Me;for(p(Wt,ce.view,ce.model),p(Wt,ce.projection,Wt),C(Wt,Wt),Ze=0;Ze<3;++Ze)ce.eyePosition[Ze]=Wt[12+Ze]/Wt[15];var st=Wt[15];for(Ze=0;Ze<3;++Ze)st+=this.lightPosition[Ze]*Wt[4*Ze+3];for(Ze=0;Ze<3;++Ze){var lt=Wt[12+Ze];for(pt=0;pt<3;++pt)lt+=Wt[4*pt+Ze]*this.lightPosition[pt];ce.lightPosition[Ze]=lt/st}var Gt=oe(ce,this);if(Gt.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Fe.TRIANGLES,this._vertexCount),Ze=0;Ze<3;++Ze)!this.surfaceProject[Ze]||!this.vertexCount||(this._shader.uniforms.model=Gt.projections[Ze],this._shader.uniforms.clipBounds=Gt.clipBounds[Ze],this._vao.draw(Fe.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Gt.showContour){var Nt=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,Nt.bind(),Nt.uniforms=ce;var $t=this._contourVAO;for($t.bind(),Ze=0;Ze<3;++Ze)for(Nt.uniforms.permutation=O[Ze],Fe.lineWidth(this.contourWidth[Ze]*this.pixelRatio),pt=0;pt>4)/16)/255,Ze=Math.floor(ce),ct=ce-Ze,pt=ge[1]*(Pe.value[1]+(Pe.value[2]&15)/16)/255,Wt=Math.floor(pt),st=pt-Wt;Ze+=1,Wt+=1;var lt=Fe.position;lt[0]=lt[1]=lt[2]=0;for(var Gt=0;Gt<2;++Gt)for(var Nt=Gt?ct:1-ct,$t=0;$t<2;++$t)for(var sr=$t?st:1-st,wr=Ze+Gt,ur=Wt+$t,Qe=Nt*sr,Et=0;Et<3;++Et)lt[Et]+=this._field[Et].get(wr,ur)*Qe;for(var er=this._pickResult.level,Ut=0;Ut<3;++Ut)if(er[Ut]=E.le(this.contourLevels[Ut],lt[Ut]),er[Ut]<0)this.contourLevels[Ut].length>0&&(er[Ut]=0);else if(er[Ut]Math.abs(bt-lt[Ut])&&(er[Ut]+=1)}for(Fe.index[0]=ct<.5?Ze:Ze+1,Fe.index[1]=st<.5?Wt:Wt+1,Fe.uv[0]=ce/ge[0],Fe.uv[1]=pt/ge[1],Et=0;Et<3;++Et)Fe.dataCoordinate[Et]=this._field[Et].get(Fe.index[0],Fe.index[1]);return Fe},H.padField=function(Pe,ge){var Fe=ge.shape.slice(),ce=Pe.shape.slice();d.assign(Pe.lo(1,1).hi(Fe[0],Fe[1]),ge),d.assign(Pe.lo(1).hi(Fe[0],1),ge.hi(Fe[0],1)),d.assign(Pe.lo(1,ce[1]-1).hi(Fe[0],1),ge.lo(0,Fe[1]-1).hi(Fe[0],1)),d.assign(Pe.lo(0,1).hi(1,Fe[1]),ge.hi(1)),d.assign(Pe.lo(ce[0]-1,1).hi(1,Fe[1]),ge.lo(Fe[0]-1)),Pe.set(0,0,ge.get(0,0)),Pe.set(0,ce[1]-1,ge.get(0,Fe[1]-1)),Pe.set(ce[0]-1,0,ge.get(Fe[0]-1,0)),Pe.set(ce[0]-1,ce[1]-1,ge.get(Fe[0]-1,Fe[1]-1))};function Se(Pe,ge){return Array.isArray(Pe)?[ge(Pe[0]),ge(Pe[1]),ge(Pe[2])]:[ge(Pe),ge(Pe),ge(Pe)]}function Le(Pe){return Array.isArray(Pe)?Pe.length===3?[Pe[0],Pe[1],Pe[2],1]:[Pe[0],Pe[1],Pe[2],Pe[3]]:[0,0,0,1]}function Ae(Pe){if(Array.isArray(Pe)){if(Array.isArray(Pe))return[Le(Pe[0]),Le(Pe[1]),Le(Pe[2])];var ge=Le(Pe);return[ge.slice(),ge.slice(),ge.slice()]}}H.update=function(Pe){Pe=Pe||{},this.objectOffset=Pe.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Pe&&(this.contourWidth=Se(Pe.contourWidth,Number)),"showContour"in Pe&&(this.showContour=Se(Pe.showContour,Boolean)),"showSurface"in Pe&&(this.showSurface=!!Pe.showSurface),"contourTint"in Pe&&(this.contourTint=Se(Pe.contourTint,Boolean)),"contourColor"in Pe&&(this.contourColor=Ae(Pe.contourColor)),"contourProject"in Pe&&(this.contourProject=Se(Pe.contourProject,function(yn){return Se(yn,Boolean)})),"surfaceProject"in Pe&&(this.surfaceProject=Pe.surfaceProject),"dynamicColor"in Pe&&(this.dynamicColor=Ae(Pe.dynamicColor)),"dynamicTint"in Pe&&(this.dynamicTint=Se(Pe.dynamicTint,Number)),"dynamicWidth"in Pe&&(this.dynamicWidth=Se(Pe.dynamicWidth,Number)),"opacity"in Pe&&(this.opacity=Pe.opacity),"opacityscale"in Pe&&(this.opacityscale=Pe.opacityscale),"colorBounds"in Pe&&(this.colorBounds=Pe.colorBounds),"vertexColor"in Pe&&(this.vertexColor=Pe.vertexColor?1:0),"colormap"in Pe&&this._colorMap.setPixels(this.genColormap(Pe.colormap,this.opacityscale));var ge=Pe.field||Pe.coords&&Pe.coords[2]||null,Fe=!1;if(ge||(this._field[2].shape[0]||this._field[2].shape[2]?ge=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):ge=this._field[2].hi(0,0)),"field"in Pe||"coords"in Pe){var ce=(ge.shape[0]+2)*(ge.shape[1]+2);ce>this._field[2].data.length&&(f.freeFloat(this._field[2].data),this._field[2].data=f.mallocFloat(s.nextPow2(ce))),this._field[2]=x(this._field[2].data,[ge.shape[0]+2,ge.shape[1]+2]),this.padField(this._field[2],ge),this.shape=ge.shape.slice();for(var Ze=this.shape,ct=0;ct<2;++ct)this._field[2].size>this._field[ct].data.length&&(f.freeFloat(this._field[ct].data),this._field[ct].data=f.mallocFloat(this._field[2].size)),this._field[ct]=x(this._field[ct].data,[Ze[0]+2,Ze[1]+2]);if(Pe.coords){var pt=Pe.coords;if(!Array.isArray(pt)||pt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ct=0;ct<2;++ct){var Wt=pt[ct];for($t=0;$t<2;++$t)if(Wt.shape[$t]!==Ze[$t])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ct],Wt)}}else if(Pe.ticks){var st=Pe.ticks;if(!Array.isArray(st)||st.length!==2)throw new Error("gl-surface: invalid ticks");for(ct=0;ct<2;++ct){var lt=st[ct];if((Array.isArray(lt)||lt.length)&&(lt=x(lt)),lt.shape[0]!==Ze[ct])throw new Error("gl-surface: invalid tick length");var Gt=x(lt.data,Ze);Gt.stride[ct]=lt.stride[0],Gt.stride[ct^1]=0,this.padField(this._field[ct],Gt)}}else{for(ct=0;ct<2;++ct){var Nt=[0,0];Nt[ct]=1,this._field[ct]=x(this._field[ct].data,[Ze[0]+2,Ze[1]+2],Nt,0)}this._field[0].set(0,0,0);for(var $t=0;$t0){for(var en=0;en<5;++en)di.pop();je-=1}continue e}}}Pn.push(je)}this._contourOffsets[Jr]=Hi,this._contourCounts[Jr]=Pn}var cn=f.mallocFloat(di.length);for(ct=0;ctV||z<0||z>V)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[T,z],P.bind(),O.texImage2D(O.TEXTURE_2D,0,P.format,T,z,0,P.format,P.type,null),P._mipLevels=[0],P}function p(P,T,z,O,V,G){this.gl=P,this.handle=T,this.format=V,this.type=G,this._shape=[z,O],this._mipLevels=[0],this._magFilter=P.NEAREST,this._minFilter=P.NEAREST,this._wrapS=P.CLAMP_TO_EDGE,this._wrapT=P.CLAMP_TO_EDGE,this._anisoSamples=1;var Z=this,H=[this._wrapS,this._wrapT];Object.defineProperties(H,[{get:function(){return Z._wrapS},set:function(j){return Z.wrapS=j}},{get:function(){return Z._wrapT},set:function(j){return Z.wrapT=j}}]),this._wrapVector=H;var N=[this._shape[0],this._shape[1]];Object.defineProperties(N,[{get:function(){return Z._shape[0]},set:function(j){return Z.width=j}},{get:function(){return Z._shape[1]},set:function(j){return Z.height=j}}]),this._shapeVector=N}var C=p.prototype;Object.defineProperties(C,{minFilter:{get:function(){return this._minFilter},set:function(P){this.bind();var T=this.gl;if(this.type===T.FLOAT&&c.indexOf(P)>=0&&(T.getExtension("OES_texture_float_linear")||(P=T.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var T=this.gl;if(this.type===T.FLOAT&&c.indexOf(P)>=0&&(T.getExtension("OES_texture_float_linear")||(P=T.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var T=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,T!==this._anisoSamples){var z=this.gl.getExtension("EXT_texture_filter_anisotropic");z&&this.gl.texParameterf(this.gl.TEXTURE_2D,z.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,P),this._wrapS=P}},wrapT:{get:function(){return this._wrapT},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,P),this._wrapT=P}},wrap:{get:function(){return this._wrapVector},set:function(P){if(Array.isArray(P)||(P=[P,P]),P.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var T=0;T<2;++T)if(h.indexOf(P[T])<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);this._wrapS=P[0],this._wrapT=P[1];var z=this.gl;return this.bind(),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_S,this._wrapS),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_T,this._wrapT),P}},shape:{get:function(){return this._shapeVector},set:function(P){if(!Array.isArray(P))P=[P|0,P|0];else if(P.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return b(this,P[0]|0,P[1]|0),[P[0]|0,P[1]|0]}},width:{get:function(){return this._shape[0]},set:function(P){return P=P|0,b(this,P,this._shape[1]),P}},height:{get:function(){return this._shape[1]},set:function(P){return P=P|0,b(this,this._shape[0],P),P}}}),C.bind=function(P){var T=this.gl;return P!==void 0&&T.activeTexture(T.TEXTURE0+(P|0)),T.bindTexture(T.TEXTURE_2D,this.handle),P!==void 0?P|0:T.getParameter(T.ACTIVE_TEXTURE)-T.TEXTURE0},C.dispose=function(){this.gl.deleteTexture(this.handle)},C.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var P=Math.min(this._shape[0],this._shape[1]),T=0;P>0;++T,P>>>=1)this._mipLevels.indexOf(T)<0&&this._mipLevels.push(T)},C.setPixels=function(P,T,z,O){var V=this.gl;this.bind(),Array.isArray(T)?(O=z,z=T[1]|0,T=T[0]|0):(T=T||0,z=z||0),O=O||0;var G=v(P)?P:P.raw;if(G){var Z=this._mipLevels.indexOf(O)<0;Z?(V.texImage2D(V.TEXTURE_2D,0,this.format,this.format,this.type,G),this._mipLevels.push(O)):V.texSubImage2D(V.TEXTURE_2D,O,T,z,this.format,this.type,G)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||T+P.shape[1]>this._shape[1]>>>O||z+P.shape[0]>this._shape[0]>>>O||T<0||z<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");A(V,T,z,O,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function E(P,T){return P.length===3?T[2]===1&&T[1]===P[0]*P[2]&&T[0]===P[2]:T[0]===1&&T[1]===P[0]}function A(P,T,z,O,V,G,Z,H){var N=H.dtype,j=H.shape.slice();if(j.length<2||j.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var re=0,oe=0,_e=E(j,H.stride.slice());N==="float32"?re=P.FLOAT:N==="float64"?(re=P.FLOAT,_e=!1,N="float32"):N==="uint8"?re=P.UNSIGNED_BYTE:(re=P.UNSIGNED_BYTE,_e=!1,N="uint8");var Me=1;if(j.length===2)oe=P.LUMINANCE,j=[j[0],j[1],1],H=s(H.data,j,[H.stride[0],H.stride[1],1],H.offset);else if(j.length===3){if(j[2]===1)oe=P.ALPHA;else if(j[2]===2)oe=P.LUMINANCE_ALPHA;else if(j[2]===3)oe=P.RGB;else if(j[2]===4)oe=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Me=j[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((oe===P.LUMINANCE||oe===P.ALPHA)&&(V===P.LUMINANCE||V===P.ALPHA)&&(oe=V),oe!==V)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ke=H.size,me=Z.indexOf(O)<0;if(me&&Z.push(O),re===G&&_e)H.offset===0&&H.data.length===ke?me?P.texImage2D(P.TEXTURE_2D,O,V,j[0],j[1],0,V,G,H.data):P.texSubImage2D(P.TEXTURE_2D,O,T,z,j[0],j[1],V,G,H.data):me?P.texImage2D(P.TEXTURE_2D,O,V,j[0],j[1],0,V,G,H.data.subarray(H.offset,H.offset+ke)):P.texSubImage2D(P.TEXTURE_2D,O,T,z,j[0],j[1],V,G,H.data.subarray(H.offset,H.offset+ke));else{var ie;G===P.FLOAT?ie=u.mallocFloat32(ke):ie=u.mallocUint8(ke);var Se=s(ie,j,[j[2],j[2]*j[0],1]);re===P.FLOAT&&G===P.UNSIGNED_BYTE?x(Se,H):l.assign(Se,H),me?P.texImage2D(P.TEXTURE_2D,O,V,j[0],j[1],0,V,G,ie.subarray(0,ke)):P.texSubImage2D(P.TEXTURE_2D,O,T,z,j[0],j[1],V,G,ie.subarray(0,ke)),G===P.FLOAT?u.freeFloat32(ie):u.freeUint8(ie)}}function L(P){var T=P.createTexture();return P.bindTexture(P.TEXTURE_2D,T),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),T}function _(P,T,z,O,V){var G=P.getParameter(P.MAX_TEXTURE_SIZE);if(T<0||T>G||z<0||z>G)throw new Error("gl-texture2d: Invalid texture shape");if(V===P.FLOAT&&!P.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,O,T,z,0,O,V,null),new p(P,Z,T,z,O,V)}function k(P,T,z,O,V,G){var Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,V,V,G,T),new p(P,Z,z,O,V,G)}function M(P,T){var z=T.dtype,O=T.shape.slice(),V=P.getParameter(P.MAX_TEXTURE_SIZE);if(O[0]<0||O[0]>V||O[1]<0||O[1]>V)throw new Error("gl-texture2d: Invalid texture size");var G=E(O,T.stride.slice()),Z=0;z==="float32"?Z=P.FLOAT:z==="float64"?(Z=P.FLOAT,G=!1,z="float32"):z==="uint8"?Z=P.UNSIGNED_BYTE:(Z=P.UNSIGNED_BYTE,G=!1,z="uint8");var H=0;if(O.length===2)H=P.LUMINANCE,O=[O[0],O[1],1],T=s(T.data,O,[T.stride[0],T.stride[1],1],T.offset);else if(O.length===3)if(O[2]===1)H=P.ALPHA;else if(O[2]===2)H=P.LUMINANCE_ALPHA;else if(O[2]===3)H=P.RGB;else if(O[2]===4)H=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");Z===P.FLOAT&&!P.getExtension("OES_texture_float")&&(Z=P.UNSIGNED_BYTE,G=!1);var N,j,re=T.size;if(G)T.offset===0&&T.data.length===re?N=T.data:N=T.data.subarray(T.offset,T.offset+re);else{var oe=[O[2],O[2]*O[0],1];j=u.malloc(re,z);var _e=s(j,O,oe,0);(z==="float32"||z==="float64")&&Z===P.UNSIGNED_BYTE?x(_e,T):l.assign(_e,T),N=j.subarray(0,re)}var Me=L(P);return P.texImage2D(P.TEXTURE_2D,0,H,O[0],O[1],0,H,Z,N),G||u.free(j),new p(P,Me,O[0],O[1],H,Z)}function g(P){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(c||d(P),typeof arguments[1]=="number")return _(P,arguments[1],arguments[2],arguments[3]||P.RGBA,arguments[4]||P.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return _(P,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var T=arguments[1],z=v(T)?T:T.raw;if(z)return k(P,z,T.width|0,T.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(T.shape&&T.data&&T.stride)return M(P,T)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(i){"use strict";function a(o,s,l){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var u=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(l){if(l.length>u)throw new Error("gl-vao: Too many vertex attributes");for(var c=0;c1?0:Math.acos(x)}},9226:function(i){i.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}},3126:function(i){i.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}},3990:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091:function(i){i.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2];return o[0]=c*v-f*d,o[1]=f*h-u*v,o[2]=u*d-c*h,o}},5455:function(i,a,o){i.exports=o(7056)},7056:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return Math.sqrt(l*l+u*u+c*c)}},4008:function(i,a,o){i.exports=o(6690)},6690:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o}},244:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613:function(i){i.exports=1e-6},9922:function(i,a,o){i.exports=l;var s=o(2613);function l(u,c){var f=u[0],h=u[1],d=u[2],v=c[0],x=c[1],b=c[2];return Math.abs(f-v)<=s*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(h-x)<=s*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(d-b)<=s*Math.max(1,Math.abs(d),Math.abs(b))}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681:function(i){i.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}},5137:function(i,a,o){i.exports=l;var s=o(1091)();function l(u,c,f,h,d,v){var x,b;for(c||(c=3),f||(f=0),h?b=Math.min(h*c+f,u.length):b=u.length,x=f;x0&&(f=1/Math.sqrt(f),o[0]=s[0]*f,o[1]=s[1]*f,o[2]=s[2]*f),o}},7636:function(i){i.exports=a;function a(o,s){s=s||1;var l=Math.random()*2*Math.PI,u=Math.random()*2-1,c=Math.sqrt(1-u*u)*s;return o[0]=Math.cos(l)*c,o[1]=Math.sin(l)*c,o[2]=u*s,o}},6894:function(i){i.exports=a;function a(o,s,l,u){var c=l[1],f=l[2],h=s[1]-c,d=s[2]-f,v=Math.sin(u),x=Math.cos(u);return o[0]=s[0],o[1]=c+h*x-d*v,o[2]=f+h*v+d*x,o}},109:function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[2],h=s[0]-c,d=s[2]-f,v=Math.sin(u),x=Math.cos(u);return o[0]=c+d*v+h*x,o[1]=s[1],o[2]=f+d*x-h*v,o}},8692:function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[1],h=s[0]-c,d=s[1]-f,v=Math.sin(u),x=Math.cos(u);return o[0]=c+h*x-d*v,o[1]=f+h*v+d*x,o[2]=s[2],o}},2447:function(i){i.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}},6621:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o}},8489:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o}},1463:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s,o[1]=l,o[2]=u,o}},6141:function(i,a,o){i.exports=o(2953)},5486:function(i,a,o){i.exports=o(3066)},2953:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return l*l+u*u+c*c}},3066:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2];return s*s+l*l+u*u}},2229:function(i,a,o){i.exports=o(6843)},6843:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o}},492:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2];return o[0]=u*l[0]+c*l[3]+f*l[6],o[1]=u*l[1]+c*l[4]+f*l[7],o[2]=u*l[2]+c*l[5]+f*l[8],o}},5673:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[3]*u+l[7]*c+l[11]*f+l[15];return h=h||1,o[0]=(l[0]*u+l[4]*c+l[8]*f+l[12])/h,o[1]=(l[1]*u+l[5]*c+l[9]*f+l[13])/h,o[2]=(l[2]*u+l[6]*c+l[10]*f+l[14])/h,o}},264:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],x=l[3],b=x*u+d*f-v*c,p=x*c+v*u-h*f,C=x*f+h*c-d*u,E=-h*u-d*c-v*f;return o[0]=b*x+E*-h+p*-v-C*-d,o[1]=p*x+E*-d+C*-h-b*-v,o[2]=C*x+E*-v+b*-d-p*-h,o}},4361:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]+l[0],o[1]=s[1]+l[1],o[2]=s[2]+l[2],o[3]=s[3]+l[3],o}},2335:function(i){i.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}},2933:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}},7536:function(i){i.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return Math.sqrt(l*l+u*u+c*c+f*f)}},1373:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o[3]=s[3]/l[3],o}},3750:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390:function(i){i.exports=a;function a(o,s,l,u){var c=new Float32Array(4);return c[0]=o,c[1]=s,c[2]=l,c[3]=u,c}},9970:function(i,a,o){i.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}},4494:function(i){i.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}},6808:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return Math.sqrt(s*s+l*l+u*u+c*c)}},2573:function(i){i.exports=a;function a(o,s,l,u){var c=s[0],f=s[1],h=s[2],d=s[3];return o[0]=c+u*(l[0]-c),o[1]=f+u*(l[1]-f),o[2]=h+u*(l[2]-h),o[3]=d+u*(l[3]-d),o}},160:function(i){i.exports=a;function a(o,s,l){return o[0]=Math.max(s[0],l[0]),o[1]=Math.max(s[1],l[1]),o[2]=Math.max(s[2],l[2]),o[3]=Math.max(s[3],l[3]),o}},2334:function(i){i.exports=a;function a(o,s,l){return o[0]=Math.min(s[0],l[0]),o[1]=Math.min(s[1],l[1]),o[2]=Math.min(s[2],l[2]),o[3]=Math.min(s[3],l[3]),o}},3576:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l[0],o[1]=s[1]*l[1],o[2]=s[2]*l[2],o[3]=s[3]*l[3],o}},1498:function(i){i.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}},5177:function(i){i.exports=a;function a(o,s){var l=s[0],u=s[1],c=s[2],f=s[3],h=l*l+u*u+c*c+f*f;return h>0&&(h=1/Math.sqrt(h),o[0]=l*h,o[1]=u*h,o[2]=c*h,o[3]=f*h),o}},9131:function(i,a,o){var s=o(5177),l=o(9288);i.exports=u;function u(c,f){return f=f||1,c[0]=Math.random(),c[1]=Math.random(),c[2]=Math.random(),c[3]=Math.random(),s(c,c),l(c,c,f),c}},9288:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o[3]=s[3]*l,o}},4844:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o[3]=s[3]+l[3]*u,o}},4578:function(i){i.exports=a;function a(o,s,l,u,c){return o[0]=s,o[1]=l,o[2]=u,o[3]=c,o}},7960:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return l*l+u*u+c*c+f*f}},483:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return s*s+l*l+u*u+c*c}},6860:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o[3]=s[3]-l[3],o}},5352:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=s[3];return o[0]=l[0]*u+l[4]*c+l[8]*f+l[12]*h,o[1]=l[1]*u+l[5]*c+l[9]*f+l[13]*h,o[2]=l[2]*u+l[6]*c+l[10]*f+l[14]*h,o[3]=l[3]*u+l[7]*c+l[11]*f+l[15]*h,o}},4041:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],x=l[3],b=x*u+d*f-v*c,p=x*c+v*u-h*f,C=x*f+h*c-d*u,E=-h*u-d*c-v*f;return o[0]=b*x+E*-h+p*-v-C*-d,o[1]=p*x+E*-d+C*-h-b*-v,o[2]=C*x+E*-v+b*-d-p*-h,o[3]=s[3],o}},1848:function(i,a,o){var s=o(4905),l=o(6468);i.exports=u;function u(c){for(var f=Array.isArray(c)?c:s(c),h=0;h0)continue;Ut=Qe.slice(0,1).join("")}return Fe(Ut),ke+=Ut.length,N=N.slice(Ut.length),N.length}while(!0)}function $t(){return/[^a-fA-F0-9]/.test(Z)?(Fe(N.join("")),G=h,O):(N.push(Z),H=Z,O+1)}function sr(){return Z==="."||/[eE]/.test(Z)?(N.push(Z),G=E,H=Z,O+1):Z==="x"&&N.length===1&&N[0]==="0"?(G=g,N.push(Z),H=Z,O+1):/[^\d]/.test(Z)?(Fe(N.join("")),G=h,O):(N.push(Z),H=Z,O+1)}function wr(){return Z==="f"&&(N.push(Z),H=Z,O+=1),/[eE]/.test(Z)||(Z==="-"||Z==="+")&&/[eE]/.test(H)?(N.push(Z),H=Z,O+1):/[^\d]/.test(Z)?(Fe(N.join("")),G=h,O):(N.push(Z),H=Z,O+1)}function ur(){if(/[^\d\w_]/.test(Z)){var Qe=N.join("");return ge[Qe]?G=_:Pe[Qe]?G=L:G=A,Fe(N.join("")),G=h,O}return N.push(Z),H=Z,O+1}}},3508:function(i,a,o){var s=o(6852);s=s.slice().filter(function(l){return!/^(gl\_|texture)/.test(l)}),i.exports=s.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(i){i.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(i,a,o){var s=o(620);i.exports=s.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(i){i.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(i,a,o){var s=o(5874);i.exports=l;function l(u,c){var f=s(c),h=[];return h=h.concat(f(u)),h=h.concat(f(null)),h}},3236:function(i){i.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],l=0;l>1,b=-7,p=l?c-1:0,C=l?-1:1,E=o[s+p];for(p+=C,f=E&(1<<-b)-1,E>>=-b,b+=d;b>0;f=f*256+o[s+p],p+=C,b-=8);for(h=f&(1<<-b)-1,f>>=-b,b+=u;b>0;h=h*256+o[s+p],p+=C,b-=8);if(f===0)f=1-x;else{if(f===v)return h?NaN:(E?-1:1)*(1/0);h=h+Math.pow(2,u),f=f-x}return(E?-1:1)*h*Math.pow(2,f-u)},a.write=function(o,s,l,u,c,f){var h,d,v,x=f*8-c-1,b=(1<>1,C=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=u?0:f-1,A=u?1:-1,L=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,h=b):(h=Math.floor(Math.log(s)/Math.LN2),s*(v=Math.pow(2,-h))<1&&(h--,v*=2),h+p>=1?s+=C/v:s+=C*Math.pow(2,1-p),s*v>=2&&(h++,v/=2),h+p>=b?(d=0,h=b):h+p>=1?(d=(s*v-1)*Math.pow(2,c),h=h+p):(d=s*Math.pow(2,p-1)*Math.pow(2,c),h=0));c>=8;o[l+E]=d&255,E+=A,d/=256,c-=8);for(h=h<0;o[l+E]=h&255,E+=A,h/=256,x-=8);o[l+E-A]|=L*128}},8954:function(i,a,o){"use strict";i.exports=p;var s=o(3250),l=o(6803).Fw;function u(C,E,A){this.vertices=C,this.adjacent=E,this.boundary=A,this.lastVisited=-1}u.prototype.flip=function(){var C=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=C;var E=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=E};function c(C,E,A){this.vertices=C,this.cell=E,this.index=A}function f(C,E){return l(C.vertices,E.vertices)}function h(C){return function(){var E=this.tuple;return C.apply(this,E)}}function d(C){var E=s[C+1];return E||(E=s),h(E)}var v=[];function x(C,E,A){this.dimension=C,this.vertices=E,this.simplices=A,this.interior=A.filter(function(k){return!k.boundary}),this.tuple=new Array(C+1);for(var L=0;L<=C;++L)this.tuple[L]=this.vertices[L];var _=v[C];_||(_=v[C]=d(C)),this.orient=_}var b=x.prototype;b.handleBoundaryDegeneracy=function(C,E){var A=this.dimension,L=this.vertices.length-1,_=this.tuple,k=this.vertices,M=[C];for(C.lastVisited=-L;M.length>0;){C=M.pop();for(var g=C.adjacent,P=0;P<=A;++P){var T=g[P];if(!(!T.boundary||T.lastVisited<=-L)){for(var z=T.vertices,O=0;O<=A;++O){var V=z[O];V<0?_[O]=E:_[O]=k[V]}var G=this.orient();if(G>0)return T;T.lastVisited=-L,G===0&&M.push(T)}}}return null},b.walk=function(C,E){var A=this.vertices.length-1,L=this.dimension,_=this.vertices,k=this.tuple,M=E?this.interior.length*Math.random()|0:this.interior.length-1,g=this.interior[M];e:for(;!g.boundary;){for(var P=g.vertices,T=g.adjacent,z=0;z<=L;++z)k[z]=_[P[z]];g.lastVisited=A;for(var z=0;z<=L;++z){var O=T[z];if(!(O.lastVisited>=A)){var V=k[z];k[z]=C;var G=this.orient();if(k[z]=V,G<0){g=O;continue e}else O.boundary?O.lastVisited=-A:O.lastVisited=A}}return}return g},b.addPeaks=function(C,E){var A=this.vertices.length-1,L=this.dimension,_=this.vertices,k=this.tuple,M=this.interior,g=this.simplices,P=[E];E.lastVisited=A,E.vertices[E.vertices.indexOf(-1)]=A,E.boundary=!1,M.push(E);for(var T=[];P.length>0;){var E=P.pop(),z=E.vertices,O=E.adjacent,V=z.indexOf(A);if(!(V<0)){for(var G=0;G<=L;++G)if(G!==V){var Z=O[G];if(!(!Z.boundary||Z.lastVisited>=A)){var H=Z.vertices;if(Z.lastVisited!==-A){for(var N=0,j=0;j<=L;++j)H[j]<0?(N=j,k[j]=C):k[j]=_[H[j]];var re=this.orient();if(re>0){H[N]=A,Z.boundary=!1,M.push(Z),P.push(Z),Z.lastVisited=A;continue}else Z.lastVisited=-A}var oe=Z.adjacent,_e=z.slice(),Me=O.slice(),ke=new u(_e,Me,!0);g.push(ke);var me=oe.indexOf(E);if(!(me<0)){oe[me]=ke,Me[V]=Z,_e[G]=-1,Me[G]=E,O[G]=ke,ke.flip();for(var j=0;j<=L;++j){var ie=_e[j];if(!(ie<0||ie===A)){for(var Se=new Array(L-1),Le=0,Ae=0;Ae<=L;++Ae){var De=_e[Ae];De<0||Ae===j||(Se[Le++]=De)}T.push(new c(Se,ke,j))}}}}}}}T.sort(f);for(var G=0;G+1=0?M[P++]=g[z]:T=z&1;if(T===(C&1)){var O=M[0];M[0]=M[1],M[1]=O}E.push(M)}}return E};function p(C,E){var A=C.length;if(A===0)throw new Error("Must have at least d+1 points");var L=C[0].length;if(A<=L)throw new Error("Must input at least d+1 points");var _=C.slice(0,L+1),k=s.apply(void 0,_);if(k===0)throw new Error("Input not in general position");for(var M=new Array(L+1),g=0;g<=L;++g)M[g]=g;k<0&&(M[0]=1,M[1]=0);for(var P=new u(M,new Array(L+1),!1),T=P.adjacent,z=new Array(L+2),g=0;g<=L;++g){for(var O=M.slice(),V=0;V<=L;++V)V===g&&(O[V]=-1);var G=O[0];O[0]=O[1],O[1]=G;var Z=new u(O,new Array(L+1),!0);T[g]=Z,z[g]=Z}z[L+1]=P;for(var g=0;g<=L;++g)for(var O=T[g].vertices,H=T[g].adjacent,V=0;V<=L;++V){var N=O[V];if(N<0){H[V]=P;continue}for(var j=0;j<=L;++j)T[j].vertices.indexOf(N)<0&&(H[V]=T[j])}for(var re=new x(L,_,z),oe=!!E,g=L+1;g3*(z+1)?x(this,T):this.left.insert(T):this.left=k([T]);else if(T[0]>this.mid)this.right?4*(this.right.count+1)>3*(z+1)?x(this,T):this.right.insert(T):this.right=k([T]);else{var O=s.ge(this.leftPoints,T,L),V=s.ge(this.rightPoints,T,_);this.leftPoints.splice(O,0,T),this.rightPoints.splice(V,0,T)}},h.remove=function(T){var z=this.count-this.leftPoints;if(T[1]3*(z-1))return b(this,T);var V=this.left.remove(T);return V===c?(this.left=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else if(T[0]>this.mid){if(!this.right)return l;var G=this.left?this.left.count:0;if(4*G>3*(z-1))return b(this,T);var V=this.right.remove(T);return V===c?(this.right=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else{if(this.count===1)return this.leftPoints[0]===T?c:l;if(this.leftPoints.length===1&&this.leftPoints[0]===T){if(this.left&&this.right){for(var Z=this,H=this.left;H.right;)Z=H,H=H.right;if(Z===this)H.right=this.right;else{var N=this.left,V=this.right;Z.count-=H.count,Z.right=H.left,H.left=N,H.right=V}d(this,H),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?d(this,this.left):d(this,this.right);return u}for(var N=s.ge(this.leftPoints,T,L);N=0&&T[V][1]>=z;--V){var G=O(T[V]);if(G)return G}}function E(T,z){for(var O=0;Othis.mid){if(this.right){var O=this.right.queryPoint(T,z);if(O)return O}return C(this.rightPoints,T,z)}else return E(this.leftPoints,z)},h.queryInterval=function(T,z,O){if(Tthis.mid&&this.right){var V=this.right.queryInterval(T,z,O);if(V)return V}return zthis.mid?C(this.rightPoints,T,O):E(this.leftPoints,O)};function A(T,z){return T-z}function L(T,z){var O=T[0]-z[0];return O||T[1]-z[1]}function _(T,z){var O=T[1]-z[1];return O||T[0]-z[0]}function k(T){if(T.length===0)return null;for(var z=[],O=0;O>1],G=[],Z=[],H=[],O=0;O13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}},395:function(i){function a(o,s,l){return o*(1-l)+s*l}i.exports=a},2652:function(i,a,o){var s=o(4335),l=o(6864),u=o(1903),c=o(9921),f=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},v=l(),x=l(),b=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],C=[0,0,0];i.exports=function(k,M,g,P,T,z){if(M||(M=[0,0,0]),g||(g=[0,0,0]),P||(P=[0,0,0]),T||(T=[0,0,0,1]),z||(z=[0,0,0,1]),!s(v,k)||(u(x,v),x[3]=0,x[7]=0,x[11]=0,x[15]=1,Math.abs(c(x)<1e-8)))return!1;var O=v[3],V=v[7],G=v[11],Z=v[12],H=v[13],N=v[14],j=v[15];if(O!==0||V!==0||G!==0){b[0]=O,b[1]=V,b[2]=G,b[3]=j;var re=f(x,x);if(!re)return!1;h(x,x),E(T,b,x)}else T[0]=T[1]=T[2]=0,T[3]=1;if(M[0]=Z,M[1]=H,M[2]=N,A(p,v),g[0]=d.length(p[0]),d.normalize(p[0],p[0]),P[0]=d.dot(p[0],p[1]),L(p[1],p[1],p[0],1,-P[0]),g[1]=d.length(p[1]),d.normalize(p[1],p[1]),P[0]/=g[1],P[1]=d.dot(p[0],p[2]),L(p[2],p[2],p[0],1,-P[1]),P[2]=d.dot(p[1],p[2]),L(p[2],p[2],p[1],1,-P[2]),g[2]=d.length(p[2]),d.normalize(p[2],p[2]),P[1]/=g[2],P[2]/=g[2],d.cross(C,p[1],p[2]),d.dot(p[0],C)<0)for(var oe=0;oe<3;oe++)g[oe]*=-1,p[oe][0]*=-1,p[oe][1]*=-1,p[oe][2]*=-1;return z[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),z[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),z[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),z[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]>p[1][2]&&(z[0]=-z[0]),p[0][2]>p[2][0]&&(z[1]=-z[1]),p[1][0]>p[0][1]&&(z[2]=-z[2]),!0};function E(_,k,M){var g=k[0],P=k[1],T=k[2],z=k[3];return _[0]=M[0]*g+M[4]*P+M[8]*T+M[12]*z,_[1]=M[1]*g+M[5]*P+M[9]*T+M[13]*z,_[2]=M[2]*g+M[6]*P+M[10]*T+M[14]*z,_[3]=M[3]*g+M[7]*P+M[11]*T+M[15]*z,_}function A(_,k){_[0][0]=k[0],_[0][1]=k[1],_[0][2]=k[2],_[1][0]=k[4],_[1][1]=k[5],_[1][2]=k[6],_[2][0]=k[8],_[2][1]=k[9],_[2][2]=k[10]}function L(_,k,M,g,P){_[0]=k[0]*g+M[0]*P,_[1]=k[1]*g+M[1]*P,_[2]=k[2]*g+M[2]*P}},4335:function(i){i.exports=function(o,s){var l=s[15];if(l===0)return!1;for(var u=1/l,c=0;c<16;c++)o[c]=s[c]*u;return!0}},7442:function(i,a,o){var s=o(6658),l=o(7182),u=o(2652),c=o(9921),f=o(8648),h=b(),d=b(),v=b();i.exports=x;function x(E,A,L,_){if(c(A)===0||c(L)===0)return!1;var k=u(A,h.translate,h.scale,h.skew,h.perspective,h.quaternion),M=u(L,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!k||!M?!1:(s(v.translate,h.translate,d.translate,_),s(v.skew,h.skew,d.skew,_),s(v.scale,h.scale,d.scale,_),s(v.perspective,h.perspective,d.perspective,_),f(v.quaternion,h.quaternion,d.quaternion,_),l(E,v.translate,v.scale,v.skew,v.perspective,v.quaternion),!0)}function b(){return{translate:p(),scale:p(1),skew:p(),perspective:C(),quaternion:C()}}function p(E){return[E||0,E||0,E||0]}function C(){return[0,0,0,1]}},7182:function(i,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},l=s.create(),u=s.create();i.exports=function(f,h,d,v,x,b){return s.identity(f),s.fromRotationTranslation(f,b,h),f[3]=x[0],f[7]=x[1],f[11]=x[2],f[15]=x[3],s.identity(u),v[2]!==0&&(u[9]=v[2],s.multiply(f,f,u)),v[1]!==0&&(u[9]=0,u[8]=v[1],s.multiply(f,f,u)),v[0]!==0&&(u[8]=0,u[4]=v[0],s.multiply(f,f,u)),s.scale(f,f,d),f}},1811:function(i,a,o){"use strict";var s=o(2478),l=o(7442),u=o(7608),c=o(5567),f=o(2408),h=o(7089),d=o(6582),v=o(7656),x=o(2504),b=o(3536),p=[0,0,0];i.exports=L;function C(_){this._components=_.slice(),this._time=[0],this.prevMatrix=_.slice(),this.nextMatrix=_.slice(),this.computedMatrix=_.slice(),this.computedInverse=_.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var E=C.prototype;E.recalcMatrix=function(_){var k=this._time,M=s.le(k,_),g=this.computedMatrix;if(!(M<0)){var P=this._components;if(M===k.length-1)for(var T=16*M,z=0;z<16;++z)g[z]=P[T++];else{for(var O=k[M+1]-k[M],T=16*M,V=this.prevMatrix,G=!0,z=0;z<16;++z)V[z]=P[T++];for(var Z=this.nextMatrix,z=0;z<16;++z)Z[z]=P[T++],G=G&&V[z]===Z[z];if(O<1e-6||G)for(var z=0;z<16;++z)g[z]=V[z];else l(g,V,Z,(_-k[M])/O)}var H=this.computedUp;H[0]=g[1],H[1]=g[5],H[2]=g[9],b(H,H);var N=this.computedInverse;u(N,g);var j=this.computedEye,re=N[15];j[0]=N[12]/re,j[1]=N[13]/re,j[2]=N[14]/re;for(var oe=this.computedCenter,_e=Math.exp(this.computedRadius[0]),z=0;z<3;++z)oe[z]=j[z]-g[2+4*z]*_e}},E.idle=function(_){if(!(_1&&s(u[d[p-2]],u[d[p-1]],b)<=0;)p-=1,d.pop();for(d.push(x),p=v.length;p>1&&s(u[v[p-2]],u[v[p-1]],b)>=0;)p-=1,v.pop();v.push(x)}for(var C=new Array(v.length+d.length-2),E=0,f=0,A=d.length;f0;--L)C[E++]=v[L];return C}},351:function(i,a,o){"use strict";i.exports=l;var s=o(4687);function l(u,c){c||(c=u,u=window);var f=0,h=0,d=0,v={shift:!1,alt:!1,control:!1,meta:!1},x=!1;function b(T){var z=!1;return"altKey"in T&&(z=z||T.altKey!==v.alt,v.alt=!!T.altKey),"shiftKey"in T&&(z=z||T.shiftKey!==v.shift,v.shift=!!T.shiftKey),"ctrlKey"in T&&(z=z||T.ctrlKey!==v.control,v.control=!!T.ctrlKey),"metaKey"in T&&(z=z||T.metaKey!==v.meta,v.meta=!!T.metaKey),z}function p(T,z){var O=s.x(z),V=s.y(z);"buttons"in z&&(T=z.buttons|0),(T!==f||O!==h||V!==d||b(z))&&(f=T|0,h=O||0,d=V||0,c&&c(f,h,d,v))}function C(T){p(0,T)}function E(){(f||h||d||v.shift||v.alt||v.meta||v.control)&&(h=d=0,f=0,v.shift=v.alt=v.control=v.meta=!1,c&&c(0,0,0,v))}function A(T){b(T)&&c&&c(f,h,d,v)}function L(T){s.buttons(T)===0?p(0,T):p(f,T)}function _(T){p(f|s.buttons(T),T)}function k(T){p(f&~s.buttons(T),T)}function M(){x||(x=!0,u.addEventListener("mousemove",L),u.addEventListener("mousedown",_),u.addEventListener("mouseup",k),u.addEventListener("mouseleave",C),u.addEventListener("mouseenter",C),u.addEventListener("mouseout",C),u.addEventListener("mouseover",C),u.addEventListener("blur",E),u.addEventListener("keyup",A),u.addEventListener("keydown",A),u.addEventListener("keypress",A),u!==window&&(window.addEventListener("blur",E),window.addEventListener("keyup",A),window.addEventListener("keydown",A),window.addEventListener("keypress",A)))}function g(){x&&(x=!1,u.removeEventListener("mousemove",L),u.removeEventListener("mousedown",_),u.removeEventListener("mouseup",k),u.removeEventListener("mouseleave",C),u.removeEventListener("mouseenter",C),u.removeEventListener("mouseout",C),u.removeEventListener("mouseover",C),u.removeEventListener("blur",E),u.removeEventListener("keyup",A),u.removeEventListener("keydown",A),u.removeEventListener("keypress",A),u!==window&&(window.removeEventListener("blur",E),window.removeEventListener("keyup",A),window.removeEventListener("keydown",A),window.removeEventListener("keypress",A)))}M();var P={element:u};return Object.defineProperties(P,{enabled:{get:function(){return x},set:function(T){T?M():g()},enumerable:!0},buttons:{get:function(){return f},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return v},enumerable:!0}}),P}},24:function(i){var a={left:0,top:0};i.exports=o;function o(l,u,c){u=u||l.currentTarget||l.srcElement,Array.isArray(c)||(c=[0,0]);var f=l.clientX||0,h=l.clientY||0,d=s(u);return c[0]=f-d.left,c[1]=h-d.top,c}function s(l){return l===window||l===document||l===document.body?a:l.getBoundingClientRect()}},4687:function(i,a){"use strict";function o(c){if(typeof c=="object"){if("buttons"in c)return c.buttons;if("which"in c){var f=c.which;if(f===2)return 4;if(f===3)return 2;if(f>0)return 1<=0)return 1<0){if(Me=1,ie[Le++]=v(M[z],E,A,L),z+=re,_>0)for(_e=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+De],Ze=ie[Le+Fe],Wt=ie[Le+ct],(Ae!==ge||Ae!==Ze||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ze,Wt,E,A,L),st=Se[Le]=ke++),Le+=1,z+=re,_e=2;_e<_;++_e)O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+De],Ze=ie[Le+Fe],Wt=ie[Le+ct],(Ae!==ge||Ae!==Ze||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ze,Wt,E,A,L),st=Se[Le]=ke++,Wt!==ge&&d(Se[Le+De],st,j,G,Wt,ge,E,A,L)),Le+=1,z+=re;for(z+=oe,Le=0,lt=De,De=Pe,Pe=lt,lt=Fe,Fe=ce,ce=lt,lt=ct,ct=pt,pt=lt,Me=2;Me0)for(_e=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+De],Ze=ie[Le+Fe],Wt=ie[Le+ct],(Ae!==ge||Ae!==Ze||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ze,Wt,E,A,L),st=Se[Le]=ke++,Wt!==Ze&&d(Se[Le+Fe],st,H,j,Ze,Wt,E,A,L)),Le+=1,z+=re,_e=2;_e<_;++_e)O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+De],Ze=ie[Le+Fe],Wt=ie[Le+ct],(Ae!==ge||Ae!==Ze||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ze,Wt,E,A,L),st=Se[Le]=ke++,Wt!==Ze&&d(Se[Le+Fe],st,H,j,Ze,Wt,E,A,L),Wt!==ge&&d(Se[Le+De],st,j,G,Wt,ge,E,A,L)),Le+=1,z+=re;Me&1&&(Le=0),lt=De,De=Pe,Pe=lt,lt=Fe,Fe=ce,ce=lt,lt=ct,ct=pt,pt=lt,z+=oe}}b(Se),b(ie)}},"false,1,0":function(h,d,v,x,b){return function(C,E,A,L){var _=C.shape[0]|0,k=C.shape[1]|0,M=C.data,g=C.offset|0,P=C.stride[0]|0,T=C.stride[1]|0,z=g,O,V=-P|0,G=0,Z=-T|0,H=0,N=-P-T|0,j=0,re=T|0,oe=P-T*k|0,_e=0,Me=0,ke=0,me=2*k|0,ie=x(me),Se=x(me),Le=0,Ae=0,De=-1,Pe=-1,ge=0,Fe=-k|0,ce=k|0,Ze=0,ct=-k-1|0,pt=k-1|0,Wt=0,st=0,lt=0;for(Me=0;Me0){if(_e=1,ie[Le++]=v(M[z],E,A,L),z+=re,k>0)for(Me=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),Ze=ie[Le+Fe],ge=ie[Le+De],Wt=ie[Le+ct],(Ae!==Ze||Ae!==ge||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,Ze,ge,Wt,E,A,L),st=Se[Le]=ke++),Le+=1,z+=re,Me=2;Me0)for(Me=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),Ze=ie[Le+Fe],ge=ie[Le+De],Wt=ie[Le+ct],(Ae!==Ze||Ae!==ge||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,Ze,ge,Wt,E,A,L),st=Se[Le]=ke++,Wt!==Ze&&d(Se[Le+Fe],st,j,G,Wt,Ze,E,A,L)),Le+=1,z+=re,Me=2;Me 0"),typeof f.vertex!="function"&&h("Must specify vertex creation function"),typeof f.cell!="function"&&h("Must specify cell creation function"),typeof f.phase!="function"&&h("Must specify phase function");for(var b=f.getters||[],p=new Array(v),C=0;C=0?p[C]=!0:p[C]=!1;return u(f.vertex,f.cell,f.phase,x,d,p)}},6199:function(i,a,o){"use strict";var s=o(1338),l={zero:function(L,_,k,M){var g=L[0],P=k[0];M|=0;var T=0,z=P;for(T=0;T2&&T[1]>2&&M(P.pick(-1,-1).lo(1,1).hi(T[0]-2,T[1]-2),g.pick(-1,-1,0).lo(1,1).hi(T[0]-2,T[1]-2),g.pick(-1,-1,1).lo(1,1).hi(T[0]-2,T[1]-2)),T[1]>2&&(k(P.pick(0,-1).lo(1).hi(T[1]-2),g.pick(0,-1,1).lo(1).hi(T[1]-2)),_(g.pick(0,-1,0).lo(1).hi(T[1]-2))),T[1]>2&&(k(P.pick(T[0]-1,-1).lo(1).hi(T[1]-2),g.pick(T[0]-1,-1,1).lo(1).hi(T[1]-2)),_(g.pick(T[0]-1,-1,0).lo(1).hi(T[1]-2))),T[0]>2&&(k(P.pick(-1,0).lo(1).hi(T[0]-2),g.pick(-1,0,0).lo(1).hi(T[0]-2)),_(g.pick(-1,0,1).lo(1).hi(T[0]-2))),T[0]>2&&(k(P.pick(-1,T[1]-1).lo(1).hi(T[0]-2),g.pick(-1,T[1]-1,0).lo(1).hi(T[0]-2)),_(g.pick(-1,T[1]-1,1).lo(1).hi(T[0]-2))),g.set(0,0,0,0),g.set(0,0,1,0),g.set(T[0]-1,0,0,0),g.set(T[0]-1,0,1,0),g.set(0,T[1]-1,0,0),g.set(0,T[1]-1,1,0),g.set(T[0]-1,T[1]-1,0,0),g.set(T[0]-1,T[1]-1,1,0),g}}function A(L){var _=L.join(),T=v[_];if(T)return T;for(var k=L.length,M=[b,p],g=1;g<=k;++g)M.push(C(g));var P=E,T=P.apply(void 0,M);return v[_]=T,T}i.exports=function(_,k,M){if(Array.isArray(M)||(typeof M=="string"?M=s(k.dimension,M):M=s(k.dimension,"clamp")),k.size===0)return _;if(k.dimension===0)return _.set(0),_;var g=A(M);return g(_,k)}},4317:function(i){"use strict";function a(c,f){var h=Math.floor(f),d=f-h,v=0<=h&&h0;){H<64?(_=H,H=0):(_=64,H-=64);for(var N=v[1]|0;N>0;){N<64?(k=N,N=0):(k=64,N-=64),p=G+H*g+N*P,A=Z+H*z+N*O;var j=0,re=0,oe=0,_e=T,Me=g-M*T,ke=P-_*g,me=V,ie=z-M*V,Se=O-_*z;for(oe=0;oe0;){O<64?(_=O,O=0):(_=64,O-=64);for(var V=v[0]|0;V>0;){V<64?(L=V,V=0):(L=64,V-=64),p=T+O*M+V*k,A=z+O*P+V*g;var G=0,Z=0,H=M,N=k-_*M,j=P,re=g-_*P;for(Z=0;Z0;){Z<64?(k=Z,Z=0):(k=64,Z-=64);for(var H=v[0]|0;H>0;){H<64?(L=H,H=0):(L=64,H-=64);for(var N=v[1]|0;N>0;){N<64?(_=N,N=0):(_=64,N-=64),p=V+Z*P+H*M+N*g,A=G+Z*O+H*T+N*z;var j=0,re=0,oe=0,_e=P,Me=M-k*P,ke=g-L*M,me=O,ie=T-k*O,Se=z-L*T;for(oe=0;oe<_;++oe){for(re=0;reC;){j=0,re=G-_;t:for(H=0;H_e)break t;re+=T,j+=z}for(j=G,re=G-_,H=0;H>1,N=H-V,j=H+V,re=G,oe=N,_e=H,Me=j,ke=Z,me=E+1,ie=A-1,Se=!0,Le,Ae,De,Pe,ge,Fe,ce,Ze,ct,pt=0,Wt=0,st=0,lt,Gt,Nt,$t,sr,wr,ur,Qe,Et,er,Ut,Ft,bt,yt,Yt,lr,Tr=P,Rr=b(Tr),ei=b(Tr);Gt=k*re,Nt=k*oe,lr=_;e:for(lt=0;lt0){Ae=re,re=oe,oe=Ae;break e}if(st<0)break e;lr+=z}Gt=k*Me,Nt=k*ke,lr=_;e:for(lt=0;lt0){Ae=Me,Me=ke,ke=Ae;break e}if(st<0)break e;lr+=z}Gt=k*re,Nt=k*_e,lr=_;e:for(lt=0;lt0){Ae=re,re=_e,_e=Ae;break e}if(st<0)break e;lr+=z}Gt=k*oe,Nt=k*_e,lr=_;e:for(lt=0;lt0){Ae=oe,oe=_e,_e=Ae;break e}if(st<0)break e;lr+=z}Gt=k*re,Nt=k*Me,lr=_;e:for(lt=0;lt0){Ae=re,re=Me,Me=Ae;break e}if(st<0)break e;lr+=z}Gt=k*_e,Nt=k*Me,lr=_;e:for(lt=0;lt0){Ae=_e,_e=Me,Me=Ae;break e}if(st<0)break e;lr+=z}Gt=k*oe,Nt=k*ke,lr=_;e:for(lt=0;lt0){Ae=oe,oe=ke,ke=Ae;break e}if(st<0)break e;lr+=z}Gt=k*oe,Nt=k*_e,lr=_;e:for(lt=0;lt0){Ae=oe,oe=_e,_e=Ae;break e}if(st<0)break e;lr+=z}Gt=k*Me,Nt=k*ke,lr=_;e:for(lt=0;lt0){Ae=Me,Me=ke,ke=Ae;break e}if(st<0)break e;lr+=z}for(Gt=k*re,Nt=k*oe,$t=k*_e,sr=k*Me,wr=k*ke,ur=k*G,Qe=k*H,Et=k*Z,Yt=0,lr=_,lt=0;lt0)ie--;else if(st<0){for(Gt=k*Fe,Nt=k*me,$t=k*ie,lr=_,lt=0;lt0)for(;;){ce=_+ie*k,Yt=0;e:for(lt=0;lt0){if(--ieZ){e:for(;;){for(ce=_+me*k,Yt=0,lr=_,lt=0;lt1&&C?A(p,C[0],C[1]):A(p)}var d={"uint32,1,0":function(x,b){return function(p){var C=p.data,E=p.offset|0,A=p.shape,L=p.stride,_=L[0]|0,k=A[0]|0,M=L[1]|0,g=A[1]|0,P=M,T=M,z=1;k<=32?x(0,k-1,C,E,_,M,k,g,P,T,z):b(0,k-1,C,E,_,M,k,g,P,T,z)}}};function v(x,b){var p=[b,x].join(","),C=d[p],E=c(x,b),A=h(x,b,E);return C(E,A)}i.exports=v},446:function(i,a,o){"use strict";var s=o(7640),l={};function u(c){var f=c.order,h=c.dtype,d=[f,h],v=d.join(":"),x=l[v];return x||(l[v]=x=s(f,h)),x(c),c}i.exports=u},9618:function(i,a,o){var s=o(7163),l=typeof Float64Array!="undefined";function u(b,p){return b[0]-p[0]}function c(){var b=this.stride,p=new Array(b.length),C;for(C=0;C=0&&(M=_|0,k+=P*M,g-=M),new E(this.data,g,P,k)},A.step=function(_){var k=this.shape[0],M=this.stride[0],g=this.offset,P=0,T=Math.ceil;return typeof _=="number"&&(P=_|0,P<0?(g+=M*(k-1),k=T(-k/P)):k=T(k/P),M*=P),new E(this.data,k,M,g)},A.transpose=function(_){_=_===void 0?0:_|0;var k=this.shape,M=this.stride;return new E(this.data,k[_],M[_],this.offset)},A.pick=function(_){var k=[],M=[],g=this.offset;typeof _=="number"&&_>=0?g=g+this.stride[0]*_|0:(k.push(this.shape[0]),M.push(this.stride[0]));var P=p[k.length+1];return P(this.data,k,M,g)},function(_,k,M,g){return new E(_,k[0],M[0],g)}},2:function(b,p,C){function E(L,_,k,M,g,P){this.data=L,this.shape=[_,k],this.stride=[M,g],this.offset=P|0}var A=E.prototype;return A.dtype=b,A.dimension=2,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(A,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),A.set=function(_,k,M){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*k,M):this.data[this.offset+this.stride[0]*_+this.stride[1]*k]=M},A.get=function(_,k){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*k):this.data[this.offset+this.stride[0]*_+this.stride[1]*k]},A.index=function(_,k){return this.offset+this.stride[0]*_+this.stride[1]*k},A.hi=function(_,k){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof k!="number"||k<0?this.shape[1]:k|0,this.stride[0],this.stride[1],this.offset)},A.lo=function(_,k){var M=this.offset,g=0,P=this.shape[0],T=this.shape[1],z=this.stride[0],O=this.stride[1];return typeof _=="number"&&_>=0&&(g=_|0,M+=z*g,P-=g),typeof k=="number"&&k>=0&&(g=k|0,M+=O*g,T-=g),new E(this.data,P,T,z,O,M)},A.step=function(_,k){var M=this.shape[0],g=this.shape[1],P=this.stride[0],T=this.stride[1],z=this.offset,O=0,V=Math.ceil;return typeof _=="number"&&(O=_|0,O<0?(z+=P*(M-1),M=V(-M/O)):M=V(M/O),P*=O),typeof k=="number"&&(O=k|0,O<0?(z+=T*(g-1),g=V(-g/O)):g=V(g/O),T*=O),new E(this.data,M,g,P,T,z)},A.transpose=function(_,k){_=_===void 0?0:_|0,k=k===void 0?1:k|0;var M=this.shape,g=this.stride;return new E(this.data,M[_],M[k],g[_],g[k],this.offset)},A.pick=function(_,k){var M=[],g=[],P=this.offset;typeof _=="number"&&_>=0?P=P+this.stride[0]*_|0:(M.push(this.shape[0]),g.push(this.stride[0])),typeof k=="number"&&k>=0?P=P+this.stride[1]*k|0:(M.push(this.shape[1]),g.push(this.stride[1]));var T=p[M.length+1];return T(this.data,M,g,P)},function(_,k,M,g){return new E(_,k[0],k[1],M[0],M[1],g)}},3:function(b,p,C){function E(L,_,k,M,g,P,T,z){this.data=L,this.shape=[_,k,M],this.stride=[g,P,T],this.offset=z|0}var A=E.prototype;return A.dtype=b,A.dimension=3,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(A,"order",{get:function(){var _=Math.abs(this.stride[0]),k=Math.abs(this.stride[1]),M=Math.abs(this.stride[2]);return _>k?k>M?[2,1,0]:_>M?[1,2,0]:[1,0,2]:_>M?[2,0,1]:M>k?[0,1,2]:[0,2,1]}}),A.set=function(_,k,M,g){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M,g):this.data[this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M]=g},A.get=function(_,k,M){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M):this.data[this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M]},A.index=function(_,k,M){return this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M},A.hi=function(_,k,M){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof M!="number"||M<0?this.shape[2]:M|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},A.lo=function(_,k,M){var g=this.offset,P=0,T=this.shape[0],z=this.shape[1],O=this.shape[2],V=this.stride[0],G=this.stride[1],Z=this.stride[2];return typeof _=="number"&&_>=0&&(P=_|0,g+=V*P,T-=P),typeof k=="number"&&k>=0&&(P=k|0,g+=G*P,z-=P),typeof M=="number"&&M>=0&&(P=M|0,g+=Z*P,O-=P),new E(this.data,T,z,O,V,G,Z,g)},A.step=function(_,k,M){var g=this.shape[0],P=this.shape[1],T=this.shape[2],z=this.stride[0],O=this.stride[1],V=this.stride[2],G=this.offset,Z=0,H=Math.ceil;return typeof _=="number"&&(Z=_|0,Z<0?(G+=z*(g-1),g=H(-g/Z)):g=H(g/Z),z*=Z),typeof k=="number"&&(Z=k|0,Z<0?(G+=O*(P-1),P=H(-P/Z)):P=H(P/Z),O*=Z),typeof M=="number"&&(Z=M|0,Z<0?(G+=V*(T-1),T=H(-T/Z)):T=H(T/Z),V*=Z),new E(this.data,g,P,T,z,O,V,G)},A.transpose=function(_,k,M){_=_===void 0?0:_|0,k=k===void 0?1:k|0,M=M===void 0?2:M|0;var g=this.shape,P=this.stride;return new E(this.data,g[_],g[k],g[M],P[_],P[k],P[M],this.offset)},A.pick=function(_,k,M){var g=[],P=[],T=this.offset;typeof _=="number"&&_>=0?T=T+this.stride[0]*_|0:(g.push(this.shape[0]),P.push(this.stride[0])),typeof k=="number"&&k>=0?T=T+this.stride[1]*k|0:(g.push(this.shape[1]),P.push(this.stride[1])),typeof M=="number"&&M>=0?T=T+this.stride[2]*M|0:(g.push(this.shape[2]),P.push(this.stride[2]));var z=p[g.length+1];return z(this.data,g,P,T)},function(_,k,M,g){return new E(_,k[0],k[1],k[2],M[0],M[1],M[2],g)}},4:function(b,p,C){function E(L,_,k,M,g,P,T,z,O,V){this.data=L,this.shape=[_,k,M,g],this.stride=[P,T,z,O],this.offset=V|0}var A=E.prototype;return A.dtype=b,A.dimension=4,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(A,"order",{get:C}),A.set=function(_,k,M,g,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g,P):this.data[this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g]=P},A.get=function(_,k,M,g){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g):this.data[this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g]},A.index=function(_,k,M,g){return this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g},A.hi=function(_,k,M,g){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof M!="number"||M<0?this.shape[2]:M|0,typeof g!="number"||g<0?this.shape[3]:g|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},A.lo=function(_,k,M,g){var P=this.offset,T=0,z=this.shape[0],O=this.shape[1],V=this.shape[2],G=this.shape[3],Z=this.stride[0],H=this.stride[1],N=this.stride[2],j=this.stride[3];return typeof _=="number"&&_>=0&&(T=_|0,P+=Z*T,z-=T),typeof k=="number"&&k>=0&&(T=k|0,P+=H*T,O-=T),typeof M=="number"&&M>=0&&(T=M|0,P+=N*T,V-=T),typeof g=="number"&&g>=0&&(T=g|0,P+=j*T,G-=T),new E(this.data,z,O,V,G,Z,H,N,j,P)},A.step=function(_,k,M,g){var P=this.shape[0],T=this.shape[1],z=this.shape[2],O=this.shape[3],V=this.stride[0],G=this.stride[1],Z=this.stride[2],H=this.stride[3],N=this.offset,j=0,re=Math.ceil;return typeof _=="number"&&(j=_|0,j<0?(N+=V*(P-1),P=re(-P/j)):P=re(P/j),V*=j),typeof k=="number"&&(j=k|0,j<0?(N+=G*(T-1),T=re(-T/j)):T=re(T/j),G*=j),typeof M=="number"&&(j=M|0,j<0?(N+=Z*(z-1),z=re(-z/j)):z=re(z/j),Z*=j),typeof g=="number"&&(j=g|0,j<0?(N+=H*(O-1),O=re(-O/j)):O=re(O/j),H*=j),new E(this.data,P,T,z,O,V,G,Z,H,N)},A.transpose=function(_,k,M,g){_=_===void 0?0:_|0,k=k===void 0?1:k|0,M=M===void 0?2:M|0,g=g===void 0?3:g|0;var P=this.shape,T=this.stride;return new E(this.data,P[_],P[k],P[M],P[g],T[_],T[k],T[M],T[g],this.offset)},A.pick=function(_,k,M,g){var P=[],T=[],z=this.offset;typeof _=="number"&&_>=0?z=z+this.stride[0]*_|0:(P.push(this.shape[0]),T.push(this.stride[0])),typeof k=="number"&&k>=0?z=z+this.stride[1]*k|0:(P.push(this.shape[1]),T.push(this.stride[1])),typeof M=="number"&&M>=0?z=z+this.stride[2]*M|0:(P.push(this.shape[2]),T.push(this.stride[2])),typeof g=="number"&&g>=0?z=z+this.stride[3]*g|0:(P.push(this.shape[3]),T.push(this.stride[3]));var O=p[P.length+1];return O(this.data,P,T,z)},function(_,k,M,g){return new E(_,k[0],k[1],k[2],k[3],M[0],M[1],M[2],M[3],g)}},5:function(p,C,E){function A(_,k,M,g,P,T,z,O,V,G,Z,H){this.data=_,this.shape=[k,M,g,P,T],this.stride=[z,O,V,G,Z],this.offset=H|0}var L=A.prototype;return L.dtype=p,L.dimension=5,Object.defineProperty(L,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(L,"order",{get:E}),L.set=function(k,M,g,P,T,z){return p==="generic"?this.data.set(this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T,z):this.data[this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T]=z},L.get=function(k,M,g,P,T){return p==="generic"?this.data.get(this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T):this.data[this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T]},L.index=function(k,M,g,P,T){return this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T},L.hi=function(k,M,g,P,T){return new A(this.data,typeof k!="number"||k<0?this.shape[0]:k|0,typeof M!="number"||M<0?this.shape[1]:M|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof T!="number"||T<0?this.shape[4]:T|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(k,M,g,P,T){var z=this.offset,O=0,V=this.shape[0],G=this.shape[1],Z=this.shape[2],H=this.shape[3],N=this.shape[4],j=this.stride[0],re=this.stride[1],oe=this.stride[2],_e=this.stride[3],Me=this.stride[4];return typeof k=="number"&&k>=0&&(O=k|0,z+=j*O,V-=O),typeof M=="number"&&M>=0&&(O=M|0,z+=re*O,G-=O),typeof g=="number"&&g>=0&&(O=g|0,z+=oe*O,Z-=O),typeof P=="number"&&P>=0&&(O=P|0,z+=_e*O,H-=O),typeof T=="number"&&T>=0&&(O=T|0,z+=Me*O,N-=O),new A(this.data,V,G,Z,H,N,j,re,oe,_e,Me,z)},L.step=function(k,M,g,P,T){var z=this.shape[0],O=this.shape[1],V=this.shape[2],G=this.shape[3],Z=this.shape[4],H=this.stride[0],N=this.stride[1],j=this.stride[2],re=this.stride[3],oe=this.stride[4],_e=this.offset,Me=0,ke=Math.ceil;return typeof k=="number"&&(Me=k|0,Me<0?(_e+=H*(z-1),z=ke(-z/Me)):z=ke(z/Me),H*=Me),typeof M=="number"&&(Me=M|0,Me<0?(_e+=N*(O-1),O=ke(-O/Me)):O=ke(O/Me),N*=Me),typeof g=="number"&&(Me=g|0,Me<0?(_e+=j*(V-1),V=ke(-V/Me)):V=ke(V/Me),j*=Me),typeof P=="number"&&(Me=P|0,Me<0?(_e+=re*(G-1),G=ke(-G/Me)):G=ke(G/Me),re*=Me),typeof T=="number"&&(Me=T|0,Me<0?(_e+=oe*(Z-1),Z=ke(-Z/Me)):Z=ke(Z/Me),oe*=Me),new A(this.data,z,O,V,G,Z,H,N,j,re,oe,_e)},L.transpose=function(k,M,g,P,T){k=k===void 0?0:k|0,M=M===void 0?1:M|0,g=g===void 0?2:g|0,P=P===void 0?3:P|0,T=T===void 0?4:T|0;var z=this.shape,O=this.stride;return new A(this.data,z[k],z[M],z[g],z[P],z[T],O[k],O[M],O[g],O[P],O[T],this.offset)},L.pick=function(k,M,g,P,T){var z=[],O=[],V=this.offset;typeof k=="number"&&k>=0?V=V+this.stride[0]*k|0:(z.push(this.shape[0]),O.push(this.stride[0])),typeof M=="number"&&M>=0?V=V+this.stride[1]*M|0:(z.push(this.shape[1]),O.push(this.stride[1])),typeof g=="number"&&g>=0?V=V+this.stride[2]*g|0:(z.push(this.shape[2]),O.push(this.stride[2])),typeof P=="number"&&P>=0?V=V+this.stride[3]*P|0:(z.push(this.shape[3]),O.push(this.stride[3])),typeof T=="number"&&T>=0?V=V+this.stride[4]*T|0:(z.push(this.shape[4]),O.push(this.stride[4]));var G=C[z.length+1];return G(this.data,z,O,V)},function(k,M,g,P){return new A(k,M[0],M[1],M[2],M[3],M[4],g[0],g[1],g[2],g[3],g[4],P)}}};function h(b,p){var C=p===-1?"T":String(p),E=f[C];return p===-1?E(b):p===0?E(b,v[b][0]):E(b,v[b],c)}function d(b){if(s(b))return"buffer";if(l)switch(Object.prototype.toString.call(b)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(b)?"array":"generic"}var v={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function x(b,p,C,E){if(b===void 0){var g=v.array[0];return g([])}else typeof b=="number"&&(b=[b]);p===void 0&&(p=[b.length]);var A=p.length;if(C===void 0){C=new Array(A);for(var L=A-1,_=1;L>=0;--L)C[L]=_,_*=p[L]}if(E===void 0){E=0;for(var L=0;L>>0;i.exports=c;function c(f,h){if(isNaN(f)||isNaN(h))return NaN;if(f===h)return f;if(f===0)return h<0?-l:l;var d=s.hi(f),v=s.lo(f);return h>f==f>0?v===u?(d+=1,v=0):v+=1:v===0?(v=u,d-=1):v-=1,s.pack(v,d)}},8406:function(i,a){var o=1e-6,s=1e-6;a.vertexNormals=function(l,u,c){for(var f=u.length,h=new Array(f),d=c===void 0?o:c,v=0;vd)for(var z=h[p],O=1/Math.sqrt(M*P),T=0;T<3;++T){var V=(T+1)%3,G=(T+2)%3;z[T]+=O*(g[V]*k[G]-g[G]*k[V])}}for(var v=0;vd)for(var O=1/Math.sqrt(Z),T=0;T<3;++T)z[T]*=O;else for(var T=0;T<3;++T)z[T]=0}return h},a.faceNormals=function(l,u,c){for(var f=l.length,h=new Array(f),d=c===void 0?s:c,v=0;vd?L=1/Math.sqrt(L):L=0;for(var p=0;p<3;++p)A[p]*=L;h[v]=A}return h}},4081:function(i){"use strict";i.exports=a;function a(o,s,l,u,c,f,h,d,v,x){var b=s+f+x;if(p>0){var p=Math.sqrt(b+1);o[0]=.5*(h-v)/p,o[1]=.5*(d-u)/p,o[2]=.5*(l-f)/p,o[3]=.5*p}else{var C=Math.max(s,f,x),p=Math.sqrt(2*C-b+1);s>=C?(o[0]=.5*p,o[1]=.5*(c+l)/p,o[2]=.5*(d+u)/p,o[3]=.5*(h-v)/p):f>=C?(o[0]=.5*(l+c)/p,o[1]=.5*p,o[2]=.5*(v+h)/p,o[3]=.5*(d-u)/p):(o[0]=.5*(u+d)/p,o[1]=.5*(h+v)/p,o[2]=.5*p,o[3]=.5*(l-c)/p)}return o}},9977:function(i,a,o){"use strict";i.exports=p;var s=o(9215),l=o(6582),u=o(7399),c=o(7608),f=o(4081);function h(C,E,A){return Math.sqrt(Math.pow(C,2)+Math.pow(E,2)+Math.pow(A,2))}function d(C,E,A,L){return Math.sqrt(Math.pow(C,2)+Math.pow(E,2)+Math.pow(A,2)+Math.pow(L,2))}function v(C,E){var A=E[0],L=E[1],_=E[2],k=E[3],M=d(A,L,_,k);M>1e-6?(C[0]=A/M,C[1]=L/M,C[2]=_/M,C[3]=k/M):(C[0]=C[1]=C[2]=0,C[3]=1)}function x(C,E,A){this.radius=s([A]),this.center=s(E),this.rotation=s(C),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var b=x.prototype;b.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},b.recalcMatrix=function(C){this.radius.curve(C),this.center.curve(C),this.rotation.curve(C);var E=this.computedRotation;v(E,E);var A=this.computedMatrix;u(A,E);var L=this.computedCenter,_=this.computedEye,k=this.computedUp,M=Math.exp(this.computedRadius[0]);_[0]=L[0]+M*A[2],_[1]=L[1]+M*A[6],_[2]=L[2]+M*A[10],k[0]=A[1],k[1]=A[5],k[2]=A[9];for(var g=0;g<3;++g){for(var P=0,T=0;T<3;++T)P+=A[g+4*T]*_[T];A[12+g]=-P}},b.getMatrix=function(C,E){this.recalcMatrix(C);var A=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=A[L];return E}return A},b.idle=function(C){this.center.idle(C),this.radius.idle(C),this.rotation.idle(C)},b.flush=function(C){this.center.flush(C),this.radius.flush(C),this.rotation.flush(C)},b.pan=function(C,E,A,L){E=E||0,A=A||0,L=L||0,this.recalcMatrix(C);var _=this.computedMatrix,k=_[1],M=_[5],g=_[9],P=h(k,M,g);k/=P,M/=P,g/=P;var T=_[0],z=_[4],O=_[8],V=T*k+z*M+O*g;T-=k*V,z-=M*V,O-=g*V;var G=h(T,z,O);T/=G,z/=G,O/=G;var Z=_[2],H=_[6],N=_[10],j=Z*k+H*M+N*g,re=Z*T+H*z+N*O;Z-=j*k+re*T,H-=j*M+re*z,N-=j*g+re*O;var oe=h(Z,H,N);Z/=oe,H/=oe,N/=oe;var _e=T*E+k*A,Me=z*E+M*A,ke=O*E+g*A;this.center.move(C,_e,Me,ke);var me=Math.exp(this.computedRadius[0]);me=Math.max(1e-4,me+L),this.radius.set(C,Math.log(me))},b.rotate=function(C,E,A,L){this.recalcMatrix(C),E=E||0,A=A||0;var _=this.computedMatrix,k=_[0],M=_[4],g=_[8],P=_[1],T=_[5],z=_[9],O=_[2],V=_[6],G=_[10],Z=E*k+A*P,H=E*M+A*T,N=E*g+A*z,j=-(V*N-G*H),re=-(G*Z-O*N),oe=-(O*H-V*Z),_e=Math.sqrt(Math.max(0,1-Math.pow(j,2)-Math.pow(re,2)-Math.pow(oe,2))),Me=d(j,re,oe,_e);Me>1e-6?(j/=Me,re/=Me,oe/=Me,_e/=Me):(j=re=oe=0,_e=1);var ke=this.computedRotation,me=ke[0],ie=ke[1],Se=ke[2],Le=ke[3],Ae=me*_e+Le*j+ie*oe-Se*re,De=ie*_e+Le*re+Se*j-me*oe,Pe=Se*_e+Le*oe+me*re-ie*j,ge=Le*_e-me*j-ie*re-Se*oe;if(L){j=O,re=V,oe=G;var Fe=Math.sin(L)/h(j,re,oe);j*=Fe,re*=Fe,oe*=Fe,_e=Math.cos(E),Ae=Ae*_e+ge*j+De*oe-Pe*re,De=De*_e+ge*re+Pe*j-Ae*oe,Pe=Pe*_e+ge*oe+Ae*re-De*j,ge=ge*_e-Ae*j-De*re-Pe*oe}var ce=d(Ae,De,Pe,ge);ce>1e-6?(Ae/=ce,De/=ce,Pe/=ce,ge/=ce):(Ae=De=Pe=0,ge=1),this.rotation.set(C,Ae,De,Pe,ge)},b.lookAt=function(C,E,A,L){this.recalcMatrix(C),A=A||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var _=this.computedMatrix;l(_,E,A,L);var k=this.computedRotation;f(k,_[0],_[1],_[2],_[4],_[5],_[6],_[8],_[9],_[10]),v(k,k),this.rotation.set(C,k[0],k[1],k[2],k[3]);for(var M=0,g=0;g<3;++g)M+=Math.pow(A[g]-E[g],2);this.radius.set(C,.5*Math.log(Math.max(M,1e-6))),this.center.set(C,A[0],A[1],A[2])},b.translate=function(C,E,A,L){this.center.move(C,E||0,A||0,L||0)},b.setMatrix=function(C,E){var A=this.computedRotation;f(A,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),v(A,A),this.rotation.set(C,A[0],A[1],A[2],A[3]);var L=this.computedMatrix;c(L,E);var _=L[15];if(Math.abs(_)>1e-6){var k=L[12]/_,M=L[13]/_,g=L[14]/_;this.recalcMatrix(C);var P=Math.exp(this.computedRadius[0]);this.center.set(C,k-L[2]*P,M-L[6]*P,g-L[10]*P),this.radius.idle(C)}else this.center.idle(C),this.radius.idle(C)},b.setDistance=function(C,E){E>0&&this.radius.set(C,Math.log(E))},b.setDistanceLimits=function(C,E){C>0?C=Math.log(C):C=-1/0,E>0?E=Math.log(E):E=1/0,E=Math.max(E,C),this.radius.bounds[0][0]=C,this.radius.bounds[1][0]=E},b.getDistanceLimits=function(C){var E=this.radius.bounds;return C?(C[0]=Math.exp(E[0][0]),C[1]=Math.exp(E[1][0]),C):[Math.exp(E[0][0]),Math.exp(E[1][0])]},b.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},b.fromJSON=function(C){var E=this.lastT(),A=C.center;A&&this.center.set(E,A[0],A[1],A[2]);var L=C.rotation;L&&this.rotation.set(E,L[0],L[1],L[2],L[3]);var _=C.distance;_&&_>0&&this.radius.set(E,Math.log(_)),this.setDistanceLimits(C.zoomMin,C.zoomMax)};function p(C){C=C||{};var E=C.center||[0,0,0],A=C.rotation||[0,0,0,1],L=C.radius||1;E=[].slice.call(E,0,3),A=[].slice.call(A,0,4),v(A,A);var _=new x(A,E,Math.log(L));return _.setDistanceLimits(C.zoomMin,C.zoomMax),("eye"in C||"up"in C)&&_.lookAt(0,C.eye,C.center,C.up),_}},1371:function(i,a,o){"use strict";var s=o(3233);i.exports=function(u,c,f){return f=typeof f!="undefined"?f+"":" ",s(f,c)+u}},3202:function(i){i.exports=function(o,s){s||(s=[0,""]),o=String(o);var l=parseFloat(o,10);return s[0]=l,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}},3088:function(i,a,o){"use strict";i.exports=l;var s=o(3140);function l(u,c){for(var f=c.length|0,h=u.length,d=[new Array(f),new Array(f)],v=0;v0){z=d[G][P][0],V=G;break}O=z[V^1];for(var Z=0;Z<2;++Z)for(var H=d[Z][P],N=0;N0&&(z=j,O=re,V=Z)}return T||z&&p(z,V),O}function E(g,P){var T=d[P][g][0],z=[g];p(T,P);for(var O=T[P^1],V=P;;){for(;O!==g;)z.push(O),O=C(z[z.length-2],O,!1);if(d[0][g].length+d[1][g].length===0)break;var G=z[z.length-1],Z=g,H=z[1],N=C(G,Z,!0);if(s(c[G],c[Z],c[H],c[N])<0)break;z.push(g),O=C(G,Z)}return z}function A(g,P){return P[1]===P[P.length-1]}for(var v=0;v0;){var k=d[0][v].length,M=E(v,L);A(_,M)?_.push.apply(_,M):(_.length>0&&b.push(_),_=M)}_.length>0&&b.push(_)}return b}},5609:function(i,a,o){"use strict";i.exports=l;var s=o(3134);function l(u,c){for(var f=s(u,c.length),h=new Array(c.length),d=new Array(c.length),v=[],x=0;x0;){var p=v.pop();h[p]=!1;for(var C=f[p],x=0;x0}k=k.filter(M);for(var g=k.length,P=new Array(g),T=new Array(g),_=0;_0;){var ce=Pe.pop(),Ze=Me[ce];h(Ze,function(lt,Gt){return lt-Gt});var ct=Ze.length,pt=ge[ce],Wt;if(pt===0){var H=k[ce];Wt=[H]}for(var _=0;_=0)&&(ge[st]=pt^1,Pe.push(st),pt===0)){var H=k[st];De(H)||(H.reverse(),Wt.push(H))}}pt===0&&Fe.push(Wt)}return Fe}},5085:function(i,a,o){i.exports=C;var s=o(3250)[3],l=o(4209),u=o(3352),c=o(2478);function f(){return!0}function h(E){return function(A,L){var _=E[A];return _?!!_.queryPoint(L,f):!1}}function d(E){for(var A={},L=0;L0&&A[_]===L[0])k=E[_-1];else return 1;for(var M=1;k;){var g=k.key,P=s(L,g[0],g[1]);if(g[0][0]0)M=-1,k=k.right;else return 0;else if(P>0)k=k.left;else if(P<0)M=1,k=k.right;else return 0}return M}}function x(E){return 1}function b(E){return function(L){return E(L[0],L[1])?0:1}}function p(E,A){return function(_){return E(_[0],_[1])?0:A(_)}}function C(E){for(var A=E.length,L=[],_=[],k=0,M=0;M=x?(g=1,T=x+2*C+A):(g=-C/x,T=C*g+A)):(g=0,E>=0?(P=0,T=A):-E>=p?(P=1,T=p+2*E+A):(P=-E/p,T=E*P+A));else if(P<0)P=0,C>=0?(g=0,T=A):-C>=x?(g=1,T=x+2*C+A):(g=-C/x,T=C*g+A);else{var z=1/M;g*=z,P*=z,T=g*(x*g+b*P+2*C)+P*(b*g+p*P+2*E)+A}else{var O,V,G,Z;g<0?(O=b+C,V=p+E,V>O?(G=V-O,Z=x-2*b+p,G>=Z?(g=1,P=0,T=x+2*C+A):(g=G/Z,P=1-g,T=g*(x*g+b*P+2*C)+P*(b*g+p*P+2*E)+A)):(g=0,V<=0?(P=1,T=p+2*E+A):E>=0?(P=0,T=A):(P=-E/p,T=E*P+A))):P<0?(O=b+E,V=x+C,V>O?(G=V-O,Z=x-2*b+p,G>=Z?(P=1,g=0,T=p+2*E+A):(P=G/Z,g=1-P,T=g*(x*g+b*P+2*C)+P*(b*g+p*P+2*E)+A)):(P=0,V<=0?(g=1,T=x+2*C+A):C>=0?(g=0,T=A):(g=-C/x,T=C*g+A))):(G=p+E-b-C,G<=0?(g=0,P=1,T=p+2*E+A):(Z=x-2*b+p,G>=Z?(g=1,P=0,T=x+2*C+A):(g=G/Z,P=1-g,T=g*(x*g+b*P+2*C)+P*(b*g+p*P+2*E)+A)))}for(var H=1-g-P,v=0;v0){var p=f[d-1];if(s(x,p)===0&&u(p)!==b){d-=1;continue}}f[d++]=x}}return f.length=d,f}},3233:function(i){"use strict";var a="",o;i.exports=s;function s(l,u){if(typeof l!="string")throw new TypeError("expected a string");if(u===1)return l;if(u===2)return l+l;var c=l.length*u;if(o!==l||typeof o=="undefined")o=l,a="";else if(a.length>=c)return a.substr(0,c);for(;c>a.length&&u>1;)u&1&&(a+=l),u>>=1,l+=l;return a+=l,a=a.substr(0,c),a}},3025:function(i,a,o){i.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(i){"use strict";i.exports=a;function a(o){for(var s=o.length,l=o[o.length-1],u=s,c=s-2;c>=0;--c){var f=l,h=o[c];l=f+h;var d=l-f,v=h-d;v&&(o[--u]=l,l=v)}for(var x=0,c=u;c0){if(V<=0)return G;Z=O+V}else if(O<0){if(V>=0)return G;Z=-(O+V)}else return G;var H=d*Z;return G>=H||G<=-H?G:E(P,T,z)},function(P,T,z,O){var V=P[0]-O[0],G=T[0]-O[0],Z=z[0]-O[0],H=P[1]-O[1],N=T[1]-O[1],j=z[1]-O[1],re=P[2]-O[2],oe=T[2]-O[2],_e=z[2]-O[2],Me=G*j,ke=Z*N,me=Z*H,ie=V*j,Se=V*N,Le=G*H,Ae=re*(Me-ke)+oe*(me-ie)+_e*(Se-Le),De=(Math.abs(Me)+Math.abs(ke))*Math.abs(re)+(Math.abs(me)+Math.abs(ie))*Math.abs(oe)+(Math.abs(Se)+Math.abs(Le))*Math.abs(_e),Pe=v*De;return Ae>Pe||-Ae>Pe?Ae:A(P,T,z,O)}];function _(g){var P=L[g.length];return P||(P=L[g.length]=C(g.length)),P.apply(void 0,g)}function k(g,P,T,z,O,V,G){return function(H,N,j,re,oe){switch(arguments.length){case 0:case 1:return 0;case 2:return z(H,N);case 3:return O(H,N,j);case 4:return V(H,N,j,re);case 5:return G(H,N,j,re,oe)}for(var _e=new Array(arguments.length),Me=0;Me0&&x>0||v<0&&x<0)return!1;var b=s(h,c,f),p=s(d,c,f);return b>0&&p>0||b<0&&p<0?!1:v===0&&x===0&&b===0&&p===0?l(c,f,h,d):!0}},8545:function(i){"use strict";i.exports=o;function a(s,l){var u=s+l,c=u-s,f=u-c,h=l-c,d=s-f,v=d+h;return v?[v,u]:[u]}function o(s,l){var u=s.length|0,c=l.length|0;if(u===1&&c===1)return a(s[0],-l[0]);var f=u+c,h=new Array(f),d=0,v=0,x=0,b=Math.abs,p=s[v],C=b(p),E=-l[x],A=b(E),L,_;C=c?(L=p,v+=1,v=c?(L=p,v+=1,v>1,E=f[2*C+1];if(E===x)return C;x>1,E=f[2*C+1];if(E===x)return C;x>1,E=f[2*C+1];if(E===x)return C;x>1,E=f[2*C+1];if(E===x)return C;x>1,Z=d(P[G],T);Z<=0?(Z===0&&(V=G),z=G+1):Z>0&&(O=G-1)}return V}s=p;function C(P,T){for(var z=new Array(P.length),O=0,V=z.length;O=P.length||d(P[Me],G)!==0););}return z}s=C;function E(P,T){if(!T)return C(b(L(P,0)),P,0);for(var z=new Array(T),O=0;O>>j&1&&N.push(V[j]);T.push(N)}return x(T)}s=A;function L(P,T){if(T<0)return[];for(var z=[],O=(1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},2014:function(i,a,o){"use strict";"use restrict";var s=o(3105),l=o(4623);function u(g){for(var P=0,T=Math.max,z=0,O=g.length;z>1,G=h(g[V],P);G<=0?(G===0&&(O=V),T=V+1):G>0&&(z=V-1)}return O}a.findCell=b;function p(g,P){for(var T=new Array(g.length),z=0,O=T.length;z=g.length||h(g[_e],V)!==0););}return T}a.incidence=p;function C(g,P){if(!P)return p(x(A(g,0)),g,0);for(var T=new Array(P),z=0;z>>N&1&&H.push(O[N]);P.push(H)}return v(P)}a.explode=E;function A(g,P){if(P<0)return[];for(var T=[],z=(1<>1:(ie>>1)-1}function z(ie){for(var Se=P(ie);;){var Le=Se,Ae=2*ie+1,De=2*(ie+1),Pe=ie;if(Ae0;){var Le=T(ie);if(Le>=0){var Ae=P(Le);if(Se0){var ie=H[0];return g(0,re-1),re-=1,z(0),ie}return-1}function G(ie,Se){var Le=H[ie];return C[Le]===Se?ie:(C[Le]=-1/0,O(ie),V(),C[Le]=Se,re+=1,O(re-1))}function Z(ie){if(!E[ie]){E[ie]=!0;var Se=b[ie],Le=p[ie];b[Le]>=0&&(b[Le]=Se),p[Se]>=0&&(p[Se]=Le),N[Se]>=0&&G(N[Se],M(Se)),N[Le]>=0&&G(N[Le],M(Le))}}for(var H=[],N=new Array(v),A=0;A>1;A>=0;--A)z(A);for(;;){var oe=V();if(oe<0||C[oe]>d)break;Z(oe)}for(var _e=[],A=0;A=0&&Le>=0&&Se!==Le){var Ae=N[Se],De=N[Le];Ae!==De&&me.push([Ae,De])}}),l.unique(l.normalize(me)),{positions:_e,edges:me}}},1303:function(i,a,o){"use strict";i.exports=u;var s=o(3250);function l(c,f){var h,d;if(f[0][0]f[1][0])h=f[1],d=f[0];else{var v=Math.min(c[0][1],c[1][1]),x=Math.max(c[0][1],c[1][1]),b=Math.min(f[0][1],f[1][1]),p=Math.max(f[0][1],f[1][1]);return xp?v-p:x-p}var C,E;c[0][1]f[1][0])h=f[1],d=f[0];else return l(f,c);var v,x;if(c[0][0]c[1][0])v=c[1],x=c[0];else return-l(c,f);var b=s(h,d,x),p=s(h,d,v);if(b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;if(b=s(x,v,d),p=s(x,v,h),b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;return d[0]-x[0]}},4209:function(i,a,o){"use strict";i.exports=p;var s=o(2478),l=o(3840),u=o(3250),c=o(1303);function f(C,E,A){this.slabs=C,this.coordinates=E,this.horizontal=A}var h=f.prototype;function d(C,E){return C.y-E}function v(C,E){for(var A=null;C;){var L=C.key,_,k;L[0][0]0)if(E[0]!==L[1][0])A=C,C=C.right;else{var g=v(C.right,E);if(g)return g;C=C.left}else{if(E[0]!==L[1][0])return C;var g=v(C.right,E);if(g)return g;C=C.left}}return A}h.castUp=function(C){var E=s.le(this.coordinates,C[0]);if(E<0)return-1;var A=this.slabs[E],L=v(this.slabs[E],C),_=-1;if(L&&(_=L.value),this.coordinates[E]===C[0]){var k=null;if(L&&(k=L.key),E>0){var M=v(this.slabs[E-1],C);M&&(k?c(M.key,k)>0&&(k=M.key,_=M.value):(_=M.value,k=M.key))}var g=this.horizontal[E];if(g.length>0){var P=s.ge(g,C[1],d);if(P=g.length)return _;T=g[P]}}if(T.start)if(k){var z=u(k[0],k[1],[C[0],T.y]);k[0][0]>k[1][0]&&(z=-z),z>0&&(_=T.index)}else _=T.index;else T.y!==C[1]&&(_=T.index)}}}return _};function x(C,E,A,L){this.y=C,this.index=E,this.start=A,this.closed=L}function b(C,E,A,L){this.x=C,this.segment=E,this.create=A,this.index=L}function p(C){for(var E=C.length,A=2*E,L=new Array(A),_=0;_1&&(E=1);for(var A=1-E,L=v.length,_=new Array(L),k=0;k0||C>0&&_<0){var k=c(E,_,A,C);b.push(k),p.push(k.slice())}_<0?p.push(A.slice()):_>0?b.push(A.slice()):(b.push(A.slice()),p.push(A.slice())),C=_}return{positive:b,negative:p}}function h(v,x){for(var b=[],p=u(v[v.length-1],x),C=v[v.length-1],E=v[0],A=0;A0||p>0&&L<0)&&b.push(c(C,L,E,p)),L>=0&&b.push(E.slice()),p=L}return b}function d(v,x){for(var b=[],p=u(v[v.length-1],x),C=v[v.length-1],E=v[0],A=0;A0||p>0&&L<0)&&b.push(c(C,L,E,p)),L<=0&&b.push(E.slice()),p=L}return b}},3387:function(i,a,o){var s;(function(){"use strict";var l={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function u(v){return f(d(v),arguments)}function c(v,x){return u.apply(null,[v].concat(x||[]))}function f(v,x){var b=1,p=v.length,C,E="",A,L,_,k,M,g,P,T;for(A=0;A=0),_.type){case"b":C=parseInt(C,10).toString(2);break;case"c":C=String.fromCharCode(parseInt(C,10));break;case"d":case"i":C=parseInt(C,10);break;case"j":C=JSON.stringify(C,null,_.width?parseInt(_.width):0);break;case"e":C=_.precision?parseFloat(C).toExponential(_.precision):parseFloat(C).toExponential();break;case"f":C=_.precision?parseFloat(C).toFixed(_.precision):parseFloat(C);break;case"g":C=_.precision?String(Number(C.toPrecision(_.precision))):parseFloat(C);break;case"o":C=(parseInt(C,10)>>>0).toString(8);break;case"s":C=String(C),C=_.precision?C.substring(0,_.precision):C;break;case"t":C=String(!!C),C=_.precision?C.substring(0,_.precision):C;break;case"T":C=Object.prototype.toString.call(C).slice(8,-1).toLowerCase(),C=_.precision?C.substring(0,_.precision):C;break;case"u":C=parseInt(C,10)>>>0;break;case"v":C=C.valueOf(),C=_.precision?C.substring(0,_.precision):C;break;case"x":C=(parseInt(C,10)>>>0).toString(16);break;case"X":C=(parseInt(C,10)>>>0).toString(16).toUpperCase();break}l.json.test(_.type)?E+=C:(l.number.test(_.type)&&(!P||_.sign)?(T=P?"+":"-",C=C.toString().replace(l.sign,"")):T="",M=_.pad_char?_.pad_char==="0"?"0":_.pad_char.charAt(1):" ",g=_.width-(T+C).length,k=_.width&&g>0?M.repeat(g):"",E+=_.align?T+C+k:M==="0"?T+k+C:k+T+C)}return E}var h=Object.create(null);function d(v){if(h[v])return h[v];for(var x=v,b,p=[],C=0;x;){if((b=l.text.exec(x))!==null)p.push(b[0]);else if((b=l.modulo.exec(x))!==null)p.push("%");else if((b=l.placeholder.exec(x))!==null){if(b[2]){C|=1;var E=[],A=b[2],L=[];if((L=l.key.exec(A))!==null)for(E.push(L[1]);(A=A.substring(L[0].length))!=="";)if((L=l.key_access.exec(A))!==null)E.push(L[1]);else if((L=l.index_access.exec(A))!==null)E.push(L[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");b[2]=E}else C|=2;if(C===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:b[0],param_no:b[1],keys:b[2],sign:b[3],pad_char:b[4],align:b[5],width:b[6],precision:b[7],type:b[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");x=x.substring(b[0].length)}return h[v]=p}a.sprintf=u,a.vsprintf=c,typeof window!="undefined"&&(window.sprintf=u,window.vsprintf=c,s=function(){return{sprintf:u,vsprintf:c}}.call(a,o,a,i),s!==void 0&&(i.exports=s))})()},3711:function(i,a,o){"use strict";i.exports=d;var s=o(2640),l=o(781),u={"2d":function(v,x,b){var p=v({order:x,scalarArguments:3,getters:b==="generic"?[0]:void 0,phase:function(E,A,L,_){return E>_|0},vertex:function(E,A,L,_,k,M,g,P,T,z,O,V,G){var Z=(g<<0)+(P<<1)+(T<<2)+(z<<3)|0;if(!(Z===0||Z===15))switch(Z){case 0:O.push([E-.5,A-.5]);break;case 1:O.push([E-.25-.25*(_+L-2*G)/(L-_),A-.25-.25*(k+L-2*G)/(L-k)]);break;case 2:O.push([E-.75-.25*(-_-L+2*G)/(_-L),A-.25-.25*(M+_-2*G)/(_-M)]);break;case 3:O.push([E-.5,A-.5-.5*(k+L+M+_-4*G)/(L-k+_-M)]);break;case 4:O.push([E-.25-.25*(M+k-2*G)/(k-M),A-.75-.25*(-k-L+2*G)/(k-L)]);break;case 5:O.push([E-.5-.5*(_+L+M+k-4*G)/(L-_+k-M),A-.5]);break;case 6:O.push([E-.5-.25*(-_-L+M+k)/(_-L+k-M),A-.5-.25*(-k-L+M+_)/(k-L+_-M)]);break;case 7:O.push([E-.75-.25*(M+k-2*G)/(k-M),A-.75-.25*(M+_-2*G)/(_-M)]);break;case 8:O.push([E-.75-.25*(-M-k+2*G)/(M-k),A-.75-.25*(-M-_+2*G)/(M-_)]);break;case 9:O.push([E-.5-.25*(_+L+-M-k)/(L-_+M-k),A-.5-.25*(k+L+-M-_)/(L-k+M-_)]);break;case 10:O.push([E-.5-.5*(-_-L+-M-k+4*G)/(_-L+M-k),A-.5]);break;case 11:O.push([E-.25-.25*(-M-k+2*G)/(M-k),A-.75-.25*(k+L-2*G)/(L-k)]);break;case 12:O.push([E-.5,A-.5-.5*(-k-L+-M-_+4*G)/(k-L+M-_)]);break;case 13:O.push([E-.75-.25*(_+L-2*G)/(L-_),A-.25-.25*(-M-_+2*G)/(M-_)]);break;case 14:O.push([E-.25-.25*(-_-L+2*G)/(_-L),A-.25-.25*(-k-L+2*G)/(k-L)]);break;case 15:O.push([E-.5,A-.5]);break}},cell:function(E,A,L,_,k,M,g,P,T){k?P.push([E,A]):P.push([A,E])}});return function(C,E){var A=[],L=[];return p(C,A,L,E),{positions:A,cells:L}}}};function c(v,x){var b=v.length+"d",p=u[b];if(p)return p(s,v,x)}function f(v,x){for(var b=l(v,x),p=b.length,C=new Array(p),E=new Array(p),A=0;AMath.max(_,k)?M[2]=1:_>Math.max(L,k)?M[0]=1:M[1]=1;for(var g=0,P=0,T=0;T<3;++T)g+=A[T]*A[T],P+=M[T]*A[T];for(var T=0;T<3;++T)M[T]-=P/g*A[T];return f(M,M),M}function b(A,L,_,k,M,g,P,T){this.center=s(_),this.up=s(k),this.right=s(M),this.radius=s([g]),this.angle=s([P,T]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(A,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var z=0;z<16;++z)this.computedMatrix[z]=.5;this.recalcMatrix(0)}var p=b.prototype;p.setDistanceLimits=function(A,L){A>0?A=Math.log(A):A=-1/0,L>0?L=Math.log(L):L=1/0,L=Math.max(L,A),this.radius.bounds[0][0]=A,this.radius.bounds[1][0]=L},p.getDistanceLimits=function(A){var L=this.radius.bounds[0];return A?(A[0]=Math.exp(L[0][0]),A[1]=Math.exp(L[1][0]),A):[Math.exp(L[0][0]),Math.exp(L[1][0])]},p.recalcMatrix=function(A){this.center.curve(A),this.up.curve(A),this.right.curve(A),this.radius.curve(A),this.angle.curve(A);for(var L=this.computedUp,_=this.computedRight,k=0,M=0,g=0;g<3;++g)M+=L[g]*_[g],k+=L[g]*L[g];for(var P=Math.sqrt(k),T=0,g=0;g<3;++g)_[g]-=L[g]*M/k,T+=_[g]*_[g],L[g]/=P;for(var z=Math.sqrt(T),g=0;g<3;++g)_[g]/=z;var O=this.computedToward;c(O,L,_),f(O,O);for(var V=Math.exp(this.computedRadius[0]),G=this.computedAngle[0],Z=this.computedAngle[1],H=Math.cos(G),N=Math.sin(G),j=Math.cos(Z),re=Math.sin(Z),oe=this.computedCenter,_e=H*j,Me=N*j,ke=re,me=-H*re,ie=-N*re,Se=j,Le=this.computedEye,Ae=this.computedMatrix,g=0;g<3;++g){var De=_e*_[g]+Me*O[g]+ke*L[g];Ae[4*g+1]=me*_[g]+ie*O[g]+Se*L[g],Ae[4*g+2]=De,Ae[4*g+3]=0}var Pe=Ae[1],ge=Ae[5],Fe=Ae[9],ce=Ae[2],Ze=Ae[6],ct=Ae[10],pt=ge*ct-Fe*Ze,Wt=Fe*ce-Pe*ct,st=Pe*Ze-ge*ce,lt=d(pt,Wt,st);pt/=lt,Wt/=lt,st/=lt,Ae[0]=pt,Ae[4]=Wt,Ae[8]=st;for(var g=0;g<3;++g)Le[g]=oe[g]+Ae[2+4*g]*V;for(var g=0;g<3;++g){for(var T=0,Gt=0;Gt<3;++Gt)T+=Ae[g+4*Gt]*Le[Gt];Ae[12+g]=-T}Ae[15]=1},p.getMatrix=function(A,L){this.recalcMatrix(A);var _=this.computedMatrix;if(L){for(var k=0;k<16;++k)L[k]=_[k];return L}return _};var C=[0,0,0];p.rotate=function(A,L,_,k){if(this.angle.move(A,L,_),k){this.recalcMatrix(A);var M=this.computedMatrix;C[0]=M[2],C[1]=M[6],C[2]=M[10];for(var g=this.computedUp,P=this.computedRight,T=this.computedToward,z=0;z<3;++z)M[4*z]=g[z],M[4*z+1]=P[z],M[4*z+2]=T[z];u(M,M,k,C);for(var z=0;z<3;++z)g[z]=M[4*z],P[z]=M[4*z+1];this.up.set(A,g[0],g[1],g[2]),this.right.set(A,P[0],P[1],P[2])}},p.pan=function(A,L,_,k){L=L||0,_=_||0,k=k||0,this.recalcMatrix(A);var M=this.computedMatrix,g=Math.exp(this.computedRadius[0]),P=M[1],T=M[5],z=M[9],O=d(P,T,z);P/=O,T/=O,z/=O;var V=M[0],G=M[4],Z=M[8],H=V*P+G*T+Z*z;V-=P*H,G-=T*H,Z-=z*H;var N=d(V,G,Z);V/=N,G/=N,Z/=N;var j=V*L+P*_,re=G*L+T*_,oe=Z*L+z*_;this.center.move(A,j,re,oe);var _e=Math.exp(this.computedRadius[0]);_e=Math.max(1e-4,_e+k),this.radius.set(A,Math.log(_e))},p.translate=function(A,L,_,k){this.center.move(A,L||0,_||0,k||0)},p.setMatrix=function(A,L,_,k){var M=1;typeof _=="number"&&(M=_|0),(M<0||M>3)&&(M=1);var g=(M+2)%3,P=(M+1)%3;L||(this.recalcMatrix(A),L=this.computedMatrix);var T=L[M],z=L[M+4],O=L[M+8];if(k){var G=Math.abs(T),Z=Math.abs(z),H=Math.abs(O),N=Math.max(G,Z,H);G===N?(T=T<0?-1:1,z=O=0):H===N?(O=O<0?-1:1,T=z=0):(z=z<0?-1:1,T=O=0)}else{var V=d(T,z,O);T/=V,z/=V,O/=V}var j=L[g],re=L[g+4],oe=L[g+8],_e=j*T+re*z+oe*O;j-=T*_e,re-=z*_e,oe-=O*_e;var Me=d(j,re,oe);j/=Me,re/=Me,oe/=Me;var ke=z*oe-O*re,me=O*j-T*oe,ie=T*re-z*j,Se=d(ke,me,ie);ke/=Se,me/=Se,ie/=Se,this.center.jump(A,ur,Qe,Et),this.radius.idle(A),this.up.jump(A,T,z,O),this.right.jump(A,j,re,oe);var Le,Ae;if(M===2){var De=L[1],Pe=L[5],ge=L[9],Fe=De*j+Pe*re+ge*oe,ce=De*ke+Pe*me+ge*ie;Wt<0?Le=-Math.PI/2:Le=Math.PI/2,Ae=Math.atan2(ce,Fe)}else{var Ze=L[2],ct=L[6],pt=L[10],Wt=Ze*T+ct*z+pt*O,st=Ze*j+ct*re+pt*oe,lt=Ze*ke+ct*me+pt*ie;Le=Math.asin(v(Wt)),Ae=Math.atan2(lt,st)}this.angle.jump(A,Ae,Le),this.recalcMatrix(A);var Gt=L[2],Nt=L[6],$t=L[10],sr=this.computedMatrix;l(sr,L);var wr=sr[15],ur=sr[12]/wr,Qe=sr[13]/wr,Et=sr[14]/wr,er=Math.exp(this.computedRadius[0]);this.center.jump(A,ur-Gt*er,Qe-Nt*er,Et-$t*er)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(A){this.center.idle(A),this.up.idle(A),this.right.idle(A),this.radius.idle(A),this.angle.idle(A)},p.flush=function(A){this.center.flush(A),this.up.flush(A),this.right.flush(A),this.radius.flush(A),this.angle.flush(A)},p.setDistance=function(A,L){L>0&&this.radius.set(A,Math.log(L))},p.lookAt=function(A,L,_,k){this.recalcMatrix(A),L=L||this.computedEye,_=_||this.computedCenter,k=k||this.computedUp;var M=k[0],g=k[1],P=k[2],T=d(M,g,P);if(!(T<1e-6)){M/=T,g/=T,P/=T;var z=L[0]-_[0],O=L[1]-_[1],V=L[2]-_[2],G=d(z,O,V);if(!(G<1e-6)){z/=G,O/=G,V/=G;var Z=this.computedRight,H=Z[0],N=Z[1],j=Z[2],re=M*H+g*N+P*j;H-=re*M,N-=re*g,j-=re*P;var oe=d(H,N,j);if(!(oe<.01&&(H=g*V-P*O,N=P*z-M*V,j=M*O-g*z,oe=d(H,N,j),oe<1e-6))){H/=oe,N/=oe,j/=oe,this.up.set(A,M,g,P),this.right.set(A,H,N,j),this.center.set(A,_[0],_[1],_[2]),this.radius.set(A,Math.log(G));var _e=g*j-P*N,Me=P*H-M*j,ke=M*N-g*H,me=d(_e,Me,ke);_e/=me,Me/=me,ke/=me;var ie=M*z+g*O+P*V,Se=H*z+N*O+j*V,Le=_e*z+Me*O+ke*V,Ae=Math.asin(v(ie)),De=Math.atan2(Le,Se),Pe=this.angle._state,ge=Pe[Pe.length-1],Fe=Pe[Pe.length-2];ge=ge%(2*Math.PI);var ce=Math.abs(ge+2*Math.PI-De),Ze=Math.abs(ge-De),ct=Math.abs(ge-2*Math.PI-De);ce0?j.pop():new ArrayBuffer(H)}a.mallocArrayBuffer=C;function E(Z){return new Uint8Array(C(Z),0,Z)}a.mallocUint8=E;function A(Z){return new Uint16Array(C(2*Z),0,Z)}a.mallocUint16=A;function L(Z){return new Uint32Array(C(4*Z),0,Z)}a.mallocUint32=L;function _(Z){return new Int8Array(C(Z),0,Z)}a.mallocInt8=_;function k(Z){return new Int16Array(C(2*Z),0,Z)}a.mallocInt16=k;function M(Z){return new Int32Array(C(4*Z),0,Z)}a.mallocInt32=M;function g(Z){return new Float32Array(C(4*Z),0,Z)}a.mallocFloat32=a.mallocFloat=g;function P(Z){return new Float64Array(C(8*Z),0,Z)}a.mallocFloat64=a.mallocDouble=P;function T(Z){return c?new Uint8ClampedArray(C(Z),0,Z):E(Z)}a.mallocUint8Clamped=T;function z(Z){return f?new BigUint64Array(C(8*Z),0,Z):null}a.mallocBigUint64=z;function O(Z){return h?new BigInt64Array(C(8*Z),0,Z):null}a.mallocBigInt64=O;function V(Z){return new DataView(C(Z),0,Z)}a.mallocDataView=V;function G(Z){Z=s.nextPow2(Z);var H=s.log2(Z),N=x[H];return N.length>0?N.pop():new u(Z)}a.mallocBuffer=G,a.clearCache=function(){for(var H=0;H<32;++H)d.UINT8[H].length=0,d.UINT16[H].length=0,d.UINT32[H].length=0,d.INT8[H].length=0,d.INT16[H].length=0,d.INT32[H].length=0,d.FLOAT[H].length=0,d.DOUBLE[H].length=0,d.BIGUINT64[H].length=0,d.BIGINT64[H].length=0,d.UINT8C[H].length=0,v[H].length=0,x[H].length=0}},1755:function(i){"use strict";"use restrict";i.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var l=0;l",j="",re=N.length,oe=j.length,_e=G[0]===C||G[0]===L,Me=0,ke=-oe;Me>-1&&(Me=Z.indexOf(N,Me),!(Me===-1||(ke=Z.indexOf(j,Me+re),ke===-1)||ke<=Me));){for(var me=Me;me=ke)H[me]=null,Z=Z.substr(0,me)+" "+Z.substr(me+1);else if(H[me]!==null){var ie=H[me].indexOf(G[0]);ie===-1?H[me]+=G:_e&&(H[me]=H[me].substr(0,ie+1)+(1+parseInt(H[me][ie+1]))+H[me].substr(ie+2))}var Se=Me+re,Le=Z.substr(Se,ke-Se),Ae=Le.indexOf(N);Ae!==-1?Me=Ae:Me=ke+oe}return H}function M(V,G,Z){for(var H=G.textAlign||"start",N=G.textBaseline||"alphabetic",j=[1<<30,1<<30],re=[0,0],oe=V.length,_e=0;_e/g,` -`):Z=Z.replace(/\/g," ");var re="",oe=[];for(ge=0;gePe&&Fe>0){var ce=(ge[Fe][0]-Pe)/(ge[Fe][0]-ge[Fe-1][0]);return ge[Fe][1]*(1-ce)+ce*ge[Fe-1][1]}}return 1}var j=[0,0,0],re={showSurface:!1,showContour:!1,projections:[T.slice(),T.slice(),T.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function oe(Pe,ge){var Fe,ce,Ze,ct=ge.axes&&ge.axes.lastCubeProps.axis||j,pt=ge.showSurface,Wt=ge.showContour;for(Fe=0;Fe<3;++Fe)for(pt=pt||ge.surfaceProject[Fe],ce=0;ce<3;++ce)Wt=Wt||ge.contourProject[Fe][ce];for(Fe=0;Fe<3;++Fe){var st=re.projections[Fe];for(ce=0;ce<16;++ce)st[ce]=0;for(ce=0;ce<4;++ce)st[5*ce]=1;st[5*Fe]=0,st[12+Fe]=ge.axesBounds[+(ct[Fe]>0)][Fe],p(st,Pe.model,st);var lt=re.clipBounds[Fe];for(Ze=0;Ze<2;++Ze)for(ce=0;ce<3;++ce)lt[Ze][ce]=Pe.clipBounds[Ze][ce];lt[0][Fe]=-1e8,lt[1][Fe]=1e8}return re.showSurface=pt,re.showContour=Wt,re}var _e={model:T,view:T,projection:T,inverseModel:T.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},Me=T.slice(),ke=[1,0,0,0,1,0,0,0,1];function me(Pe,ge){Pe=Pe||{};var Fe=this.gl;Fe.disable(Fe.CULL_FACE),this._colorMap.bind(0);var ce=_e;ce.model=Pe.model||T,ce.view=Pe.view||T,ce.projection=Pe.projection||T,ce.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ce.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ce.objectOffset=this.objectOffset,ce.contourColor=this.contourColor[0],ce.inverseModel=C(ce.inverseModel,ce.model);for(var Ze=0;Ze<2;++Ze)for(var ct=ce.clipBounds[Ze],pt=0;pt<3;++pt)ct[pt]=Math.min(Math.max(this.clipBounds[Ze][pt],-1e8),1e8);ce.kambient=this.ambientLight,ce.kdiffuse=this.diffuseLight,ce.kspecular=this.specularLight,ce.roughness=this.roughness,ce.fresnel=this.fresnel,ce.opacity=this.opacity,ce.height=0,ce.permutation=ke,ce.vertexColor=this.vertexColor;var Wt=Me;for(p(Wt,ce.view,ce.model),p(Wt,ce.projection,Wt),C(Wt,Wt),Ze=0;Ze<3;++Ze)ce.eyePosition[Ze]=Wt[12+Ze]/Wt[15];var st=Wt[15];for(Ze=0;Ze<3;++Ze)st+=this.lightPosition[Ze]*Wt[4*Ze+3];for(Ze=0;Ze<3;++Ze){var lt=Wt[12+Ze];for(pt=0;pt<3;++pt)lt+=Wt[4*pt+Ze]*this.lightPosition[pt];ce.lightPosition[Ze]=lt/st}var Gt=oe(ce,this);if(Gt.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Fe.TRIANGLES,this._vertexCount),Ze=0;Ze<3;++Ze)!this.surfaceProject[Ze]||!this.vertexCount||(this._shader.uniforms.model=Gt.projections[Ze],this._shader.uniforms.clipBounds=Gt.clipBounds[Ze],this._vao.draw(Fe.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Gt.showContour){var Nt=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,Nt.bind(),Nt.uniforms=ce;var $t=this._contourVAO;for($t.bind(),Ze=0;Ze<3;++Ze)for(Nt.uniforms.permutation=O[Ze],Fe.lineWidth(this.contourWidth[Ze]*this.pixelRatio),pt=0;pt>4)/16)/255,Ze=Math.floor(ce),ct=ce-Ze,pt=ge[1]*(Pe.value[1]+(Pe.value[2]&15)/16)/255,Wt=Math.floor(pt),st=pt-Wt;Ze+=1,Wt+=1;var lt=Fe.position;lt[0]=lt[1]=lt[2]=0;for(var Gt=0;Gt<2;++Gt)for(var Nt=Gt?ct:1-ct,$t=0;$t<2;++$t)for(var sr=$t?st:1-st,wr=Ze+Gt,ur=Wt+$t,Qe=Nt*sr,Et=0;Et<3;++Et)lt[Et]+=this._field[Et].get(wr,ur)*Qe;for(var er=this._pickResult.level,Ut=0;Ut<3;++Ut)if(er[Ut]=E.le(this.contourLevels[Ut],lt[Ut]),er[Ut]<0)this.contourLevels[Ut].length>0&&(er[Ut]=0);else if(er[Ut]Math.abs(bt-lt[Ut])&&(er[Ut]+=1)}for(Fe.index[0]=ct<.5?Ze:Ze+1,Fe.index[1]=st<.5?Wt:Wt+1,Fe.uv[0]=ce/ge[0],Fe.uv[1]=pt/ge[1],Et=0;Et<3;++Et)Fe.dataCoordinate[Et]=this._field[Et].get(Fe.index[0],Fe.index[1]);return Fe},H.padField=function(Pe,ge){var Fe=ge.shape.slice(),ce=Pe.shape.slice();d.assign(Pe.lo(1,1).hi(Fe[0],Fe[1]),ge),d.assign(Pe.lo(1).hi(Fe[0],1),ge.hi(Fe[0],1)),d.assign(Pe.lo(1,ce[1]-1).hi(Fe[0],1),ge.lo(0,Fe[1]-1).hi(Fe[0],1)),d.assign(Pe.lo(0,1).hi(1,Fe[1]),ge.hi(1)),d.assign(Pe.lo(ce[0]-1,1).hi(1,Fe[1]),ge.lo(Fe[0]-1)),Pe.set(0,0,ge.get(0,0)),Pe.set(0,ce[1]-1,ge.get(0,Fe[1]-1)),Pe.set(ce[0]-1,0,ge.get(Fe[0]-1,0)),Pe.set(ce[0]-1,ce[1]-1,ge.get(Fe[0]-1,Fe[1]-1))};function Se(Pe,ge){return Array.isArray(Pe)?[ge(Pe[0]),ge(Pe[1]),ge(Pe[2])]:[ge(Pe),ge(Pe),ge(Pe)]}function Le(Pe){return Array.isArray(Pe)?Pe.length===3?[Pe[0],Pe[1],Pe[2],1]:[Pe[0],Pe[1],Pe[2],Pe[3]]:[0,0,0,1]}function Ae(Pe){if(Array.isArray(Pe)){if(Array.isArray(Pe))return[Le(Pe[0]),Le(Pe[1]),Le(Pe[2])];var ge=Le(Pe);return[ge.slice(),ge.slice(),ge.slice()]}}H.update=function(Pe){Pe=Pe||{},this.objectOffset=Pe.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Pe&&(this.contourWidth=Se(Pe.contourWidth,Number)),"showContour"in Pe&&(this.showContour=Se(Pe.showContour,Boolean)),"showSurface"in Pe&&(this.showSurface=!!Pe.showSurface),"contourTint"in Pe&&(this.contourTint=Se(Pe.contourTint,Boolean)),"contourColor"in Pe&&(this.contourColor=Ae(Pe.contourColor)),"contourProject"in Pe&&(this.contourProject=Se(Pe.contourProject,function(yn){return Se(yn,Boolean)})),"surfaceProject"in Pe&&(this.surfaceProject=Pe.surfaceProject),"dynamicColor"in Pe&&(this.dynamicColor=Ae(Pe.dynamicColor)),"dynamicTint"in Pe&&(this.dynamicTint=Se(Pe.dynamicTint,Number)),"dynamicWidth"in Pe&&(this.dynamicWidth=Se(Pe.dynamicWidth,Number)),"opacity"in Pe&&(this.opacity=Pe.opacity),"opacityscale"in Pe&&(this.opacityscale=Pe.opacityscale),"colorBounds"in Pe&&(this.colorBounds=Pe.colorBounds),"vertexColor"in Pe&&(this.vertexColor=Pe.vertexColor?1:0),"colormap"in Pe&&this._colorMap.setPixels(this.genColormap(Pe.colormap,this.opacityscale));var ge=Pe.field||Pe.coords&&Pe.coords[2]||null,Fe=!1;if(ge||(this._field[2].shape[0]||this._field[2].shape[2]?ge=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):ge=this._field[2].hi(0,0)),"field"in Pe||"coords"in Pe){var ce=(ge.shape[0]+2)*(ge.shape[1]+2);ce>this._field[2].data.length&&(f.freeFloat(this._field[2].data),this._field[2].data=f.mallocFloat(s.nextPow2(ce))),this._field[2]=_(this._field[2].data,[ge.shape[0]+2,ge.shape[1]+2]),this.padField(this._field[2],ge),this.shape=ge.shape.slice();for(var Ze=this.shape,ct=0;ct<2;++ct)this._field[2].size>this._field[ct].data.length&&(f.freeFloat(this._field[ct].data),this._field[ct].data=f.mallocFloat(this._field[2].size)),this._field[ct]=_(this._field[ct].data,[Ze[0]+2,Ze[1]+2]);if(Pe.coords){var pt=Pe.coords;if(!Array.isArray(pt)||pt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ct=0;ct<2;++ct){var Wt=pt[ct];for($t=0;$t<2;++$t)if(Wt.shape[$t]!==Ze[$t])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ct],Wt)}}else if(Pe.ticks){var st=Pe.ticks;if(!Array.isArray(st)||st.length!==2)throw new Error("gl-surface: invalid ticks");for(ct=0;ct<2;++ct){var lt=st[ct];if((Array.isArray(lt)||lt.length)&&(lt=_(lt)),lt.shape[0]!==Ze[ct])throw new Error("gl-surface: invalid tick length");var Gt=_(lt.data,Ze);Gt.stride[ct]=lt.stride[0],Gt.stride[ct^1]=0,this.padField(this._field[ct],Gt)}}else{for(ct=0;ct<2;++ct){var Nt=[0,0];Nt[ct]=1,this._field[ct]=_(this._field[ct].data,[Ze[0]+2,Ze[1]+2],Nt,0)}this._field[0].set(0,0,0);for(var $t=0;$t0){for(var en=0;en<5;++en)di.pop();je-=1}continue e}}}Pn.push(je)}this._contourOffsets[Jr]=Hi,this._contourCounts[Jr]=Pn}var cn=f.mallocFloat(di.length);for(ct=0;ctV||z<0||z>V)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[T,z],P.bind(),O.texImage2D(O.TEXTURE_2D,0,P.format,T,z,0,P.format,P.type,null),P._mipLevels=[0],P}function p(P,T,z,O,V,G){this.gl=P,this.handle=T,this.format=V,this.type=G,this._shape=[z,O],this._mipLevels=[0],this._magFilter=P.NEAREST,this._minFilter=P.NEAREST,this._wrapS=P.CLAMP_TO_EDGE,this._wrapT=P.CLAMP_TO_EDGE,this._anisoSamples=1;var Z=this,H=[this._wrapS,this._wrapT];Object.defineProperties(H,[{get:function(){return Z._wrapS},set:function(j){return Z.wrapS=j}},{get:function(){return Z._wrapT},set:function(j){return Z.wrapT=j}}]),this._wrapVector=H;var N=[this._shape[0],this._shape[1]];Object.defineProperties(N,[{get:function(){return Z._shape[0]},set:function(j){return Z.width=j}},{get:function(){return Z._shape[1]},set:function(j){return Z.height=j}}]),this._shapeVector=N}var C=p.prototype;Object.defineProperties(C,{minFilter:{get:function(){return this._minFilter},set:function(P){this.bind();var T=this.gl;if(this.type===T.FLOAT&&c.indexOf(P)>=0&&(T.getExtension("OES_texture_float_linear")||(P=T.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var T=this.gl;if(this.type===T.FLOAT&&c.indexOf(P)>=0&&(T.getExtension("OES_texture_float_linear")||(P=T.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var T=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,T!==this._anisoSamples){var z=this.gl.getExtension("EXT_texture_filter_anisotropic");z&&this.gl.texParameterf(this.gl.TEXTURE_2D,z.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,P),this._wrapS=P}},wrapT:{get:function(){return this._wrapT},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,P),this._wrapT=P}},wrap:{get:function(){return this._wrapVector},set:function(P){if(Array.isArray(P)||(P=[P,P]),P.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var T=0;T<2;++T)if(h.indexOf(P[T])<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);this._wrapS=P[0],this._wrapT=P[1];var z=this.gl;return this.bind(),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_S,this._wrapS),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_T,this._wrapT),P}},shape:{get:function(){return this._shapeVector},set:function(P){if(!Array.isArray(P))P=[P|0,P|0];else if(P.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return b(this,P[0]|0,P[1]|0),[P[0]|0,P[1]|0]}},width:{get:function(){return this._shape[0]},set:function(P){return P=P|0,b(this,P,this._shape[1]),P}},height:{get:function(){return this._shape[1]},set:function(P){return P=P|0,b(this,this._shape[0],P),P}}}),C.bind=function(P){var T=this.gl;return P!==void 0&&T.activeTexture(T.TEXTURE0+(P|0)),T.bindTexture(T.TEXTURE_2D,this.handle),P!==void 0?P|0:T.getParameter(T.ACTIVE_TEXTURE)-T.TEXTURE0},C.dispose=function(){this.gl.deleteTexture(this.handle)},C.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var P=Math.min(this._shape[0],this._shape[1]),T=0;P>0;++T,P>>>=1)this._mipLevels.indexOf(T)<0&&this._mipLevels.push(T)},C.setPixels=function(P,T,z,O){var V=this.gl;this.bind(),Array.isArray(T)?(O=z,z=T[1]|0,T=T[0]|0):(T=T||0,z=z||0),O=O||0;var G=v(P)?P:P.raw;if(G){var Z=this._mipLevels.indexOf(O)<0;Z?(V.texImage2D(V.TEXTURE_2D,0,this.format,this.format,this.type,G),this._mipLevels.push(O)):V.texSubImage2D(V.TEXTURE_2D,O,T,z,this.format,this.type,G)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||T+P.shape[1]>this._shape[1]>>>O||z+P.shape[0]>this._shape[0]>>>O||T<0||z<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");A(V,T,z,O,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function E(P,T){return P.length===3?T[2]===1&&T[1]===P[0]*P[2]&&T[0]===P[2]:T[0]===1&&T[1]===P[0]}function A(P,T,z,O,V,G,Z,H){var N=H.dtype,j=H.shape.slice();if(j.length<2||j.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var re=0,oe=0,_e=E(j,H.stride.slice());N==="float32"?re=P.FLOAT:N==="float64"?(re=P.FLOAT,_e=!1,N="float32"):N==="uint8"?re=P.UNSIGNED_BYTE:(re=P.UNSIGNED_BYTE,_e=!1,N="uint8");var Me=1;if(j.length===2)oe=P.LUMINANCE,j=[j[0],j[1],1],H=s(H.data,j,[H.stride[0],H.stride[1],1],H.offset);else if(j.length===3){if(j[2]===1)oe=P.ALPHA;else if(j[2]===2)oe=P.LUMINANCE_ALPHA;else if(j[2]===3)oe=P.RGB;else if(j[2]===4)oe=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Me=j[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((oe===P.LUMINANCE||oe===P.ALPHA)&&(V===P.LUMINANCE||V===P.ALPHA)&&(oe=V),oe!==V)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ke=H.size,me=Z.indexOf(O)<0;if(me&&Z.push(O),re===G&&_e)H.offset===0&&H.data.length===ke?me?P.texImage2D(P.TEXTURE_2D,O,V,j[0],j[1],0,V,G,H.data):P.texSubImage2D(P.TEXTURE_2D,O,T,z,j[0],j[1],V,G,H.data):me?P.texImage2D(P.TEXTURE_2D,O,V,j[0],j[1],0,V,G,H.data.subarray(H.offset,H.offset+ke)):P.texSubImage2D(P.TEXTURE_2D,O,T,z,j[0],j[1],V,G,H.data.subarray(H.offset,H.offset+ke));else{var ie;G===P.FLOAT?ie=u.mallocFloat32(ke):ie=u.mallocUint8(ke);var Se=s(ie,j,[j[2],j[2]*j[0],1]);re===P.FLOAT&&G===P.UNSIGNED_BYTE?_(Se,H):l.assign(Se,H),me?P.texImage2D(P.TEXTURE_2D,O,V,j[0],j[1],0,V,G,ie.subarray(0,ke)):P.texSubImage2D(P.TEXTURE_2D,O,T,z,j[0],j[1],V,G,ie.subarray(0,ke)),G===P.FLOAT?u.freeFloat32(ie):u.freeUint8(ie)}}function L(P){var T=P.createTexture();return P.bindTexture(P.TEXTURE_2D,T),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),T}function x(P,T,z,O,V){var G=P.getParameter(P.MAX_TEXTURE_SIZE);if(T<0||T>G||z<0||z>G)throw new Error("gl-texture2d: Invalid texture shape");if(V===P.FLOAT&&!P.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,O,T,z,0,O,V,null),new p(P,Z,T,z,O,V)}function k(P,T,z,O,V,G){var Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,V,V,G,T),new p(P,Z,z,O,V,G)}function M(P,T){var z=T.dtype,O=T.shape.slice(),V=P.getParameter(P.MAX_TEXTURE_SIZE);if(O[0]<0||O[0]>V||O[1]<0||O[1]>V)throw new Error("gl-texture2d: Invalid texture size");var G=E(O,T.stride.slice()),Z=0;z==="float32"?Z=P.FLOAT:z==="float64"?(Z=P.FLOAT,G=!1,z="float32"):z==="uint8"?Z=P.UNSIGNED_BYTE:(Z=P.UNSIGNED_BYTE,G=!1,z="uint8");var H=0;if(O.length===2)H=P.LUMINANCE,O=[O[0],O[1],1],T=s(T.data,O,[T.stride[0],T.stride[1],1],T.offset);else if(O.length===3)if(O[2]===1)H=P.ALPHA;else if(O[2]===2)H=P.LUMINANCE_ALPHA;else if(O[2]===3)H=P.RGB;else if(O[2]===4)H=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");Z===P.FLOAT&&!P.getExtension("OES_texture_float")&&(Z=P.UNSIGNED_BYTE,G=!1);var N,j,re=T.size;if(G)T.offset===0&&T.data.length===re?N=T.data:N=T.data.subarray(T.offset,T.offset+re);else{var oe=[O[2],O[2]*O[0],1];j=u.malloc(re,z);var _e=s(j,O,oe,0);(z==="float32"||z==="float64")&&Z===P.UNSIGNED_BYTE?_(_e,T):l.assign(_e,T),N=j.subarray(0,re)}var Me=L(P);return P.texImage2D(P.TEXTURE_2D,0,H,O[0],O[1],0,H,Z,N),G||u.free(j),new p(P,Me,O[0],O[1],H,Z)}function g(P){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(c||d(P),typeof arguments[1]=="number")return x(P,arguments[1],arguments[2],arguments[3]||P.RGBA,arguments[4]||P.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return x(P,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var T=arguments[1],z=v(T)?T:T.raw;if(z)return k(P,z,T.width|0,T.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(T.shape&&T.data&&T.stride)return M(P,T)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(i){"use strict";function a(o,s,l){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var u=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(l){if(l.length>u)throw new Error("gl-vao: Too many vertex attributes");for(var c=0;c1?0:Math.acos(_)}},9226:function(i){i.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}},3126:function(i){i.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}},3990:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091:function(i){i.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2];return o[0]=c*v-f*d,o[1]=f*h-u*v,o[2]=u*d-c*h,o}},5455:function(i,a,o){i.exports=o(7056)},7056:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return Math.sqrt(l*l+u*u+c*c)}},4008:function(i,a,o){i.exports=o(6690)},6690:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o}},244:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613:function(i){i.exports=1e-6},9922:function(i,a,o){i.exports=l;var s=o(2613);function l(u,c){var f=u[0],h=u[1],d=u[2],v=c[0],_=c[1],b=c[2];return Math.abs(f-v)<=s*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(h-_)<=s*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(d-b)<=s*Math.max(1,Math.abs(d),Math.abs(b))}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681:function(i){i.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}},5137:function(i,a,o){i.exports=l;var s=o(1091)();function l(u,c,f,h,d,v){var _,b;for(c||(c=3),f||(f=0),h?b=Math.min(h*c+f,u.length):b=u.length,_=f;_0&&(f=1/Math.sqrt(f),o[0]=s[0]*f,o[1]=s[1]*f,o[2]=s[2]*f),o}},7636:function(i){i.exports=a;function a(o,s){s=s||1;var l=Math.random()*2*Math.PI,u=Math.random()*2-1,c=Math.sqrt(1-u*u)*s;return o[0]=Math.cos(l)*c,o[1]=Math.sin(l)*c,o[2]=u*s,o}},6894:function(i){i.exports=a;function a(o,s,l,u){var c=l[1],f=l[2],h=s[1]-c,d=s[2]-f,v=Math.sin(u),_=Math.cos(u);return o[0]=s[0],o[1]=c+h*_-d*v,o[2]=f+h*v+d*_,o}},109:function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[2],h=s[0]-c,d=s[2]-f,v=Math.sin(u),_=Math.cos(u);return o[0]=c+d*v+h*_,o[1]=s[1],o[2]=f+d*_-h*v,o}},8692:function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[1],h=s[0]-c,d=s[1]-f,v=Math.sin(u),_=Math.cos(u);return o[0]=c+h*_-d*v,o[1]=f+h*v+d*_,o[2]=s[2],o}},2447:function(i){i.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}},6621:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o}},8489:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o}},1463:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s,o[1]=l,o[2]=u,o}},6141:function(i,a,o){i.exports=o(2953)},5486:function(i,a,o){i.exports=o(3066)},2953:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return l*l+u*u+c*c}},3066:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2];return s*s+l*l+u*u}},2229:function(i,a,o){i.exports=o(6843)},6843:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o}},492:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2];return o[0]=u*l[0]+c*l[3]+f*l[6],o[1]=u*l[1]+c*l[4]+f*l[7],o[2]=u*l[2]+c*l[5]+f*l[8],o}},5673:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[3]*u+l[7]*c+l[11]*f+l[15];return h=h||1,o[0]=(l[0]*u+l[4]*c+l[8]*f+l[12])/h,o[1]=(l[1]*u+l[5]*c+l[9]*f+l[13])/h,o[2]=(l[2]*u+l[6]*c+l[10]*f+l[14])/h,o}},264:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],_=l[3],b=_*u+d*f-v*c,p=_*c+v*u-h*f,C=_*f+h*c-d*u,E=-h*u-d*c-v*f;return o[0]=b*_+E*-h+p*-v-C*-d,o[1]=p*_+E*-d+C*-h-b*-v,o[2]=C*_+E*-v+b*-d-p*-h,o}},4361:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]+l[0],o[1]=s[1]+l[1],o[2]=s[2]+l[2],o[3]=s[3]+l[3],o}},2335:function(i){i.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}},2933:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}},7536:function(i){i.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return Math.sqrt(l*l+u*u+c*c+f*f)}},1373:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o[3]=s[3]/l[3],o}},3750:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390:function(i){i.exports=a;function a(o,s,l,u){var c=new Float32Array(4);return c[0]=o,c[1]=s,c[2]=l,c[3]=u,c}},9970:function(i,a,o){i.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}},4494:function(i){i.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}},6808:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return Math.sqrt(s*s+l*l+u*u+c*c)}},2573:function(i){i.exports=a;function a(o,s,l,u){var c=s[0],f=s[1],h=s[2],d=s[3];return o[0]=c+u*(l[0]-c),o[1]=f+u*(l[1]-f),o[2]=h+u*(l[2]-h),o[3]=d+u*(l[3]-d),o}},160:function(i){i.exports=a;function a(o,s,l){return o[0]=Math.max(s[0],l[0]),o[1]=Math.max(s[1],l[1]),o[2]=Math.max(s[2],l[2]),o[3]=Math.max(s[3],l[3]),o}},2334:function(i){i.exports=a;function a(o,s,l){return o[0]=Math.min(s[0],l[0]),o[1]=Math.min(s[1],l[1]),o[2]=Math.min(s[2],l[2]),o[3]=Math.min(s[3],l[3]),o}},3576:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l[0],o[1]=s[1]*l[1],o[2]=s[2]*l[2],o[3]=s[3]*l[3],o}},1498:function(i){i.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}},5177:function(i){i.exports=a;function a(o,s){var l=s[0],u=s[1],c=s[2],f=s[3],h=l*l+u*u+c*c+f*f;return h>0&&(h=1/Math.sqrt(h),o[0]=l*h,o[1]=u*h,o[2]=c*h,o[3]=f*h),o}},9131:function(i,a,o){var s=o(5177),l=o(9288);i.exports=u;function u(c,f){return f=f||1,c[0]=Math.random(),c[1]=Math.random(),c[2]=Math.random(),c[3]=Math.random(),s(c,c),l(c,c,f),c}},9288:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o[3]=s[3]*l,o}},4844:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o[3]=s[3]+l[3]*u,o}},4578:function(i){i.exports=a;function a(o,s,l,u,c){return o[0]=s,o[1]=l,o[2]=u,o[3]=c,o}},7960:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return l*l+u*u+c*c+f*f}},483:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return s*s+l*l+u*u+c*c}},6860:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o[3]=s[3]-l[3],o}},5352:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=s[3];return o[0]=l[0]*u+l[4]*c+l[8]*f+l[12]*h,o[1]=l[1]*u+l[5]*c+l[9]*f+l[13]*h,o[2]=l[2]*u+l[6]*c+l[10]*f+l[14]*h,o[3]=l[3]*u+l[7]*c+l[11]*f+l[15]*h,o}},4041:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],_=l[3],b=_*u+d*f-v*c,p=_*c+v*u-h*f,C=_*f+h*c-d*u,E=-h*u-d*c-v*f;return o[0]=b*_+E*-h+p*-v-C*-d,o[1]=p*_+E*-d+C*-h-b*-v,o[2]=C*_+E*-v+b*-d-p*-h,o[3]=s[3],o}},1848:function(i,a,o){var s=o(4905),l=o(6468);i.exports=u;function u(c){for(var f=Array.isArray(c)?c:s(c),h=0;h0)continue;Ut=Qe.slice(0,1).join("")}return Fe(Ut),ke+=Ut.length,N=N.slice(Ut.length),N.length}while(!0)}function $t(){return/[^a-fA-F0-9]/.test(Z)?(Fe(N.join("")),G=h,O):(N.push(Z),H=Z,O+1)}function sr(){return Z==="."||/[eE]/.test(Z)?(N.push(Z),G=E,H=Z,O+1):Z==="x"&&N.length===1&&N[0]==="0"?(G=g,N.push(Z),H=Z,O+1):/[^\d]/.test(Z)?(Fe(N.join("")),G=h,O):(N.push(Z),H=Z,O+1)}function wr(){return Z==="f"&&(N.push(Z),H=Z,O+=1),/[eE]/.test(Z)||(Z==="-"||Z==="+")&&/[eE]/.test(H)?(N.push(Z),H=Z,O+1):/[^\d]/.test(Z)?(Fe(N.join("")),G=h,O):(N.push(Z),H=Z,O+1)}function ur(){if(/[^\d\w_]/.test(Z)){var Qe=N.join("");return ge[Qe]?G=x:Pe[Qe]?G=L:G=A,Fe(N.join("")),G=h,O}return N.push(Z),H=Z,O+1}}},3508:function(i,a,o){var s=o(6852);s=s.slice().filter(function(l){return!/^(gl\_|texture)/.test(l)}),i.exports=s.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(i){i.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(i,a,o){var s=o(620);i.exports=s.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(i){i.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(i,a,o){var s=o(5874);i.exports=l;function l(u,c){var f=s(c),h=[];return h=h.concat(f(u)),h=h.concat(f(null)),h}},3236:function(i){i.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],l=0;l>1,b=-7,p=l?c-1:0,C=l?-1:1,E=o[s+p];for(p+=C,f=E&(1<<-b)-1,E>>=-b,b+=d;b>0;f=f*256+o[s+p],p+=C,b-=8);for(h=f&(1<<-b)-1,f>>=-b,b+=u;b>0;h=h*256+o[s+p],p+=C,b-=8);if(f===0)f=1-_;else{if(f===v)return h?NaN:(E?-1:1)*(1/0);h=h+Math.pow(2,u),f=f-_}return(E?-1:1)*h*Math.pow(2,f-u)},a.write=function(o,s,l,u,c,f){var h,d,v,_=f*8-c-1,b=(1<<_)-1,p=b>>1,C=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=u?0:f-1,A=u?1:-1,L=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,h=b):(h=Math.floor(Math.log(s)/Math.LN2),s*(v=Math.pow(2,-h))<1&&(h--,v*=2),h+p>=1?s+=C/v:s+=C*Math.pow(2,1-p),s*v>=2&&(h++,v/=2),h+p>=b?(d=0,h=b):h+p>=1?(d=(s*v-1)*Math.pow(2,c),h=h+p):(d=s*Math.pow(2,p-1)*Math.pow(2,c),h=0));c>=8;o[l+E]=d&255,E+=A,d/=256,c-=8);for(h=h<0;o[l+E]=h&255,E+=A,h/=256,_-=8);o[l+E-A]|=L*128}},8954:function(i,a,o){"use strict";i.exports=p;var s=o(3250),l=o(6803).Fw;function u(C,E,A){this.vertices=C,this.adjacent=E,this.boundary=A,this.lastVisited=-1}u.prototype.flip=function(){var C=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=C;var E=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=E};function c(C,E,A){this.vertices=C,this.cell=E,this.index=A}function f(C,E){return l(C.vertices,E.vertices)}function h(C){return function(){var E=this.tuple;return C.apply(this,E)}}function d(C){var E=s[C+1];return E||(E=s),h(E)}var v=[];function _(C,E,A){this.dimension=C,this.vertices=E,this.simplices=A,this.interior=A.filter(function(k){return!k.boundary}),this.tuple=new Array(C+1);for(var L=0;L<=C;++L)this.tuple[L]=this.vertices[L];var x=v[C];x||(x=v[C]=d(C)),this.orient=x}var b=_.prototype;b.handleBoundaryDegeneracy=function(C,E){var A=this.dimension,L=this.vertices.length-1,x=this.tuple,k=this.vertices,M=[C];for(C.lastVisited=-L;M.length>0;){C=M.pop();for(var g=C.adjacent,P=0;P<=A;++P){var T=g[P];if(!(!T.boundary||T.lastVisited<=-L)){for(var z=T.vertices,O=0;O<=A;++O){var V=z[O];V<0?x[O]=E:x[O]=k[V]}var G=this.orient();if(G>0)return T;T.lastVisited=-L,G===0&&M.push(T)}}}return null},b.walk=function(C,E){var A=this.vertices.length-1,L=this.dimension,x=this.vertices,k=this.tuple,M=E?this.interior.length*Math.random()|0:this.interior.length-1,g=this.interior[M];e:for(;!g.boundary;){for(var P=g.vertices,T=g.adjacent,z=0;z<=L;++z)k[z]=x[P[z]];g.lastVisited=A;for(var z=0;z<=L;++z){var O=T[z];if(!(O.lastVisited>=A)){var V=k[z];k[z]=C;var G=this.orient();if(k[z]=V,G<0){g=O;continue e}else O.boundary?O.lastVisited=-A:O.lastVisited=A}}return}return g},b.addPeaks=function(C,E){var A=this.vertices.length-1,L=this.dimension,x=this.vertices,k=this.tuple,M=this.interior,g=this.simplices,P=[E];E.lastVisited=A,E.vertices[E.vertices.indexOf(-1)]=A,E.boundary=!1,M.push(E);for(var T=[];P.length>0;){var E=P.pop(),z=E.vertices,O=E.adjacent,V=z.indexOf(A);if(!(V<0)){for(var G=0;G<=L;++G)if(G!==V){var Z=O[G];if(!(!Z.boundary||Z.lastVisited>=A)){var H=Z.vertices;if(Z.lastVisited!==-A){for(var N=0,j=0;j<=L;++j)H[j]<0?(N=j,k[j]=C):k[j]=x[H[j]];var re=this.orient();if(re>0){H[N]=A,Z.boundary=!1,M.push(Z),P.push(Z),Z.lastVisited=A;continue}else Z.lastVisited=-A}var oe=Z.adjacent,_e=z.slice(),Me=O.slice(),ke=new u(_e,Me,!0);g.push(ke);var me=oe.indexOf(E);if(!(me<0)){oe[me]=ke,Me[V]=Z,_e[G]=-1,Me[G]=E,O[G]=ke,ke.flip();for(var j=0;j<=L;++j){var ie=_e[j];if(!(ie<0||ie===A)){for(var Se=new Array(L-1),Le=0,Ae=0;Ae<=L;++Ae){var De=_e[Ae];De<0||Ae===j||(Se[Le++]=De)}T.push(new c(Se,ke,j))}}}}}}}T.sort(f);for(var G=0;G+1=0?M[P++]=g[z]:T=z&1;if(T===(C&1)){var O=M[0];M[0]=M[1],M[1]=O}E.push(M)}}return E};function p(C,E){var A=C.length;if(A===0)throw new Error("Must have at least d+1 points");var L=C[0].length;if(A<=L)throw new Error("Must input at least d+1 points");var x=C.slice(0,L+1),k=s.apply(void 0,x);if(k===0)throw new Error("Input not in general position");for(var M=new Array(L+1),g=0;g<=L;++g)M[g]=g;k<0&&(M[0]=1,M[1]=0);for(var P=new u(M,new Array(L+1),!1),T=P.adjacent,z=new Array(L+2),g=0;g<=L;++g){for(var O=M.slice(),V=0;V<=L;++V)V===g&&(O[V]=-1);var G=O[0];O[0]=O[1],O[1]=G;var Z=new u(O,new Array(L+1),!0);T[g]=Z,z[g]=Z}z[L+1]=P;for(var g=0;g<=L;++g)for(var O=T[g].vertices,H=T[g].adjacent,V=0;V<=L;++V){var N=O[V];if(N<0){H[V]=P;continue}for(var j=0;j<=L;++j)T[j].vertices.indexOf(N)<0&&(H[V]=T[j])}for(var re=new _(L,x,z),oe=!!E,g=L+1;g3*(z+1)?_(this,T):this.left.insert(T):this.left=k([T]);else if(T[0]>this.mid)this.right?4*(this.right.count+1)>3*(z+1)?_(this,T):this.right.insert(T):this.right=k([T]);else{var O=s.ge(this.leftPoints,T,L),V=s.ge(this.rightPoints,T,x);this.leftPoints.splice(O,0,T),this.rightPoints.splice(V,0,T)}},h.remove=function(T){var z=this.count-this.leftPoints;if(T[1]3*(z-1))return b(this,T);var V=this.left.remove(T);return V===c?(this.left=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else if(T[0]>this.mid){if(!this.right)return l;var G=this.left?this.left.count:0;if(4*G>3*(z-1))return b(this,T);var V=this.right.remove(T);return V===c?(this.right=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else{if(this.count===1)return this.leftPoints[0]===T?c:l;if(this.leftPoints.length===1&&this.leftPoints[0]===T){if(this.left&&this.right){for(var Z=this,H=this.left;H.right;)Z=H,H=H.right;if(Z===this)H.right=this.right;else{var N=this.left,V=this.right;Z.count-=H.count,Z.right=H.left,H.left=N,H.right=V}d(this,H),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?d(this,this.left):d(this,this.right);return u}for(var N=s.ge(this.leftPoints,T,L);N=0&&T[V][1]>=z;--V){var G=O(T[V]);if(G)return G}}function E(T,z){for(var O=0;Othis.mid){if(this.right){var O=this.right.queryPoint(T,z);if(O)return O}return C(this.rightPoints,T,z)}else return E(this.leftPoints,z)},h.queryInterval=function(T,z,O){if(Tthis.mid&&this.right){var V=this.right.queryInterval(T,z,O);if(V)return V}return zthis.mid?C(this.rightPoints,T,O):E(this.leftPoints,O)};function A(T,z){return T-z}function L(T,z){var O=T[0]-z[0];return O||T[1]-z[1]}function x(T,z){var O=T[1]-z[1];return O||T[0]-z[0]}function k(T){if(T.length===0)return null;for(var z=[],O=0;O>1],G=[],Z=[],H=[],O=0;O13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}},395:function(i){function a(o,s,l){return o*(1-l)+s*l}i.exports=a},2652:function(i,a,o){var s=o(4335),l=o(6864),u=o(1903),c=o(9921),f=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},v=l(),_=l(),b=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],C=[0,0,0];i.exports=function(k,M,g,P,T,z){if(M||(M=[0,0,0]),g||(g=[0,0,0]),P||(P=[0,0,0]),T||(T=[0,0,0,1]),z||(z=[0,0,0,1]),!s(v,k)||(u(_,v),_[3]=0,_[7]=0,_[11]=0,_[15]=1,Math.abs(c(_)<1e-8)))return!1;var O=v[3],V=v[7],G=v[11],Z=v[12],H=v[13],N=v[14],j=v[15];if(O!==0||V!==0||G!==0){b[0]=O,b[1]=V,b[2]=G,b[3]=j;var re=f(_,_);if(!re)return!1;h(_,_),E(T,b,_)}else T[0]=T[1]=T[2]=0,T[3]=1;if(M[0]=Z,M[1]=H,M[2]=N,A(p,v),g[0]=d.length(p[0]),d.normalize(p[0],p[0]),P[0]=d.dot(p[0],p[1]),L(p[1],p[1],p[0],1,-P[0]),g[1]=d.length(p[1]),d.normalize(p[1],p[1]),P[0]/=g[1],P[1]=d.dot(p[0],p[2]),L(p[2],p[2],p[0],1,-P[1]),P[2]=d.dot(p[1],p[2]),L(p[2],p[2],p[1],1,-P[2]),g[2]=d.length(p[2]),d.normalize(p[2],p[2]),P[1]/=g[2],P[2]/=g[2],d.cross(C,p[1],p[2]),d.dot(p[0],C)<0)for(var oe=0;oe<3;oe++)g[oe]*=-1,p[oe][0]*=-1,p[oe][1]*=-1,p[oe][2]*=-1;return z[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),z[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),z[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),z[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]>p[1][2]&&(z[0]=-z[0]),p[0][2]>p[2][0]&&(z[1]=-z[1]),p[1][0]>p[0][1]&&(z[2]=-z[2]),!0};function E(x,k,M){var g=k[0],P=k[1],T=k[2],z=k[3];return x[0]=M[0]*g+M[4]*P+M[8]*T+M[12]*z,x[1]=M[1]*g+M[5]*P+M[9]*T+M[13]*z,x[2]=M[2]*g+M[6]*P+M[10]*T+M[14]*z,x[3]=M[3]*g+M[7]*P+M[11]*T+M[15]*z,x}function A(x,k){x[0][0]=k[0],x[0][1]=k[1],x[0][2]=k[2],x[1][0]=k[4],x[1][1]=k[5],x[1][2]=k[6],x[2][0]=k[8],x[2][1]=k[9],x[2][2]=k[10]}function L(x,k,M,g,P){x[0]=k[0]*g+M[0]*P,x[1]=k[1]*g+M[1]*P,x[2]=k[2]*g+M[2]*P}},4335:function(i){i.exports=function(o,s){var l=s[15];if(l===0)return!1;for(var u=1/l,c=0;c<16;c++)o[c]=s[c]*u;return!0}},7442:function(i,a,o){var s=o(6658),l=o(7182),u=o(2652),c=o(9921),f=o(8648),h=b(),d=b(),v=b();i.exports=_;function _(E,A,L,x){if(c(A)===0||c(L)===0)return!1;var k=u(A,h.translate,h.scale,h.skew,h.perspective,h.quaternion),M=u(L,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!k||!M?!1:(s(v.translate,h.translate,d.translate,x),s(v.skew,h.skew,d.skew,x),s(v.scale,h.scale,d.scale,x),s(v.perspective,h.perspective,d.perspective,x),f(v.quaternion,h.quaternion,d.quaternion,x),l(E,v.translate,v.scale,v.skew,v.perspective,v.quaternion),!0)}function b(){return{translate:p(),scale:p(1),skew:p(),perspective:C(),quaternion:C()}}function p(E){return[E||0,E||0,E||0]}function C(){return[0,0,0,1]}},7182:function(i,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},l=s.create(),u=s.create();i.exports=function(f,h,d,v,_,b){return s.identity(f),s.fromRotationTranslation(f,b,h),f[3]=_[0],f[7]=_[1],f[11]=_[2],f[15]=_[3],s.identity(u),v[2]!==0&&(u[9]=v[2],s.multiply(f,f,u)),v[1]!==0&&(u[9]=0,u[8]=v[1],s.multiply(f,f,u)),v[0]!==0&&(u[8]=0,u[4]=v[0],s.multiply(f,f,u)),s.scale(f,f,d),f}},1811:function(i,a,o){"use strict";var s=o(2478),l=o(7442),u=o(7608),c=o(5567),f=o(2408),h=o(7089),d=o(6582),v=o(7656),_=o(2504),b=o(3536),p=[0,0,0];i.exports=L;function C(x){this._components=x.slice(),this._time=[0],this.prevMatrix=x.slice(),this.nextMatrix=x.slice(),this.computedMatrix=x.slice(),this.computedInverse=x.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var E=C.prototype;E.recalcMatrix=function(x){var k=this._time,M=s.le(k,x),g=this.computedMatrix;if(!(M<0)){var P=this._components;if(M===k.length-1)for(var T=16*M,z=0;z<16;++z)g[z]=P[T++];else{for(var O=k[M+1]-k[M],T=16*M,V=this.prevMatrix,G=!0,z=0;z<16;++z)V[z]=P[T++];for(var Z=this.nextMatrix,z=0;z<16;++z)Z[z]=P[T++],G=G&&V[z]===Z[z];if(O<1e-6||G)for(var z=0;z<16;++z)g[z]=V[z];else l(g,V,Z,(x-k[M])/O)}var H=this.computedUp;H[0]=g[1],H[1]=g[5],H[2]=g[9],b(H,H);var N=this.computedInverse;u(N,g);var j=this.computedEye,re=N[15];j[0]=N[12]/re,j[1]=N[13]/re,j[2]=N[14]/re;for(var oe=this.computedCenter,_e=Math.exp(this.computedRadius[0]),z=0;z<3;++z)oe[z]=j[z]-g[2+4*z]*_e}},E.idle=function(x){if(!(x1&&s(u[d[p-2]],u[d[p-1]],b)<=0;)p-=1,d.pop();for(d.push(_),p=v.length;p>1&&s(u[v[p-2]],u[v[p-1]],b)>=0;)p-=1,v.pop();v.push(_)}for(var C=new Array(v.length+d.length-2),E=0,f=0,A=d.length;f0;--L)C[E++]=v[L];return C}},351:function(i,a,o){"use strict";i.exports=l;var s=o(4687);function l(u,c){c||(c=u,u=window);var f=0,h=0,d=0,v={shift:!1,alt:!1,control:!1,meta:!1},_=!1;function b(T){var z=!1;return"altKey"in T&&(z=z||T.altKey!==v.alt,v.alt=!!T.altKey),"shiftKey"in T&&(z=z||T.shiftKey!==v.shift,v.shift=!!T.shiftKey),"ctrlKey"in T&&(z=z||T.ctrlKey!==v.control,v.control=!!T.ctrlKey),"metaKey"in T&&(z=z||T.metaKey!==v.meta,v.meta=!!T.metaKey),z}function p(T,z){var O=s.x(z),V=s.y(z);"buttons"in z&&(T=z.buttons|0),(T!==f||O!==h||V!==d||b(z))&&(f=T|0,h=O||0,d=V||0,c&&c(f,h,d,v))}function C(T){p(0,T)}function E(){(f||h||d||v.shift||v.alt||v.meta||v.control)&&(h=d=0,f=0,v.shift=v.alt=v.control=v.meta=!1,c&&c(0,0,0,v))}function A(T){b(T)&&c&&c(f,h,d,v)}function L(T){s.buttons(T)===0?p(0,T):p(f,T)}function x(T){p(f|s.buttons(T),T)}function k(T){p(f&~s.buttons(T),T)}function M(){_||(_=!0,u.addEventListener("mousemove",L),u.addEventListener("mousedown",x),u.addEventListener("mouseup",k),u.addEventListener("mouseleave",C),u.addEventListener("mouseenter",C),u.addEventListener("mouseout",C),u.addEventListener("mouseover",C),u.addEventListener("blur",E),u.addEventListener("keyup",A),u.addEventListener("keydown",A),u.addEventListener("keypress",A),u!==window&&(window.addEventListener("blur",E),window.addEventListener("keyup",A),window.addEventListener("keydown",A),window.addEventListener("keypress",A)))}function g(){_&&(_=!1,u.removeEventListener("mousemove",L),u.removeEventListener("mousedown",x),u.removeEventListener("mouseup",k),u.removeEventListener("mouseleave",C),u.removeEventListener("mouseenter",C),u.removeEventListener("mouseout",C),u.removeEventListener("mouseover",C),u.removeEventListener("blur",E),u.removeEventListener("keyup",A),u.removeEventListener("keydown",A),u.removeEventListener("keypress",A),u!==window&&(window.removeEventListener("blur",E),window.removeEventListener("keyup",A),window.removeEventListener("keydown",A),window.removeEventListener("keypress",A)))}M();var P={element:u};return Object.defineProperties(P,{enabled:{get:function(){return _},set:function(T){T?M():g()},enumerable:!0},buttons:{get:function(){return f},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return v},enumerable:!0}}),P}},24:function(i){var a={left:0,top:0};i.exports=o;function o(l,u,c){u=u||l.currentTarget||l.srcElement,Array.isArray(c)||(c=[0,0]);var f=l.clientX||0,h=l.clientY||0,d=s(u);return c[0]=f-d.left,c[1]=h-d.top,c}function s(l){return l===window||l===document||l===document.body?a:l.getBoundingClientRect()}},4687:function(i,a){"use strict";function o(c){if(typeof c=="object"){if("buttons"in c)return c.buttons;if("which"in c){var f=c.which;if(f===2)return 4;if(f===3)return 2;if(f>0)return 1<=0)return 1<0){if(Me=1,ie[Le++]=v(M[z],E,A,L),z+=re,x>0)for(_e=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+De],Ze=ie[Le+Fe],Wt=ie[Le+ct],(Ae!==ge||Ae!==Ze||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ze,Wt,E,A,L),st=Se[Le]=ke++),Le+=1,z+=re,_e=2;_e0)for(_e=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+De],Ze=ie[Le+Fe],Wt=ie[Le+ct],(Ae!==ge||Ae!==Ze||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ze,Wt,E,A,L),st=Se[Le]=ke++,Wt!==Ze&&d(Se[Le+Fe],st,H,j,Ze,Wt,E,A,L)),Le+=1,z+=re,_e=2;_e0){if(_e=1,ie[Le++]=v(M[z],E,A,L),z+=re,k>0)for(Me=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),Ze=ie[Le+Fe],ge=ie[Le+De],Wt=ie[Le+ct],(Ae!==Ze||Ae!==ge||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,Ze,ge,Wt,E,A,L),st=Se[Le]=ke++),Le+=1,z+=re,Me=2;Me0)for(Me=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),Ze=ie[Le+Fe],ge=ie[Le+De],Wt=ie[Le+ct],(Ae!==Ze||Ae!==ge||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,Ze,ge,Wt,E,A,L),st=Se[Le]=ke++,Wt!==Ze&&d(Se[Le+Fe],st,j,G,Wt,Ze,E,A,L)),Le+=1,z+=re,Me=2;Me 0"),typeof f.vertex!="function"&&h("Must specify vertex creation function"),typeof f.cell!="function"&&h("Must specify cell creation function"),typeof f.phase!="function"&&h("Must specify phase function");for(var b=f.getters||[],p=new Array(v),C=0;C=0?p[C]=!0:p[C]=!1;return u(f.vertex,f.cell,f.phase,_,d,p)}},6199:function(i,a,o){"use strict";var s=o(1338),l={zero:function(L,x,k,M){var g=L[0],P=k[0];M|=0;var T=0,z=P;for(T=0;T2&&T[1]>2&&M(P.pick(-1,-1).lo(1,1).hi(T[0]-2,T[1]-2),g.pick(-1,-1,0).lo(1,1).hi(T[0]-2,T[1]-2),g.pick(-1,-1,1).lo(1,1).hi(T[0]-2,T[1]-2)),T[1]>2&&(k(P.pick(0,-1).lo(1).hi(T[1]-2),g.pick(0,-1,1).lo(1).hi(T[1]-2)),x(g.pick(0,-1,0).lo(1).hi(T[1]-2))),T[1]>2&&(k(P.pick(T[0]-1,-1).lo(1).hi(T[1]-2),g.pick(T[0]-1,-1,1).lo(1).hi(T[1]-2)),x(g.pick(T[0]-1,-1,0).lo(1).hi(T[1]-2))),T[0]>2&&(k(P.pick(-1,0).lo(1).hi(T[0]-2),g.pick(-1,0,0).lo(1).hi(T[0]-2)),x(g.pick(-1,0,1).lo(1).hi(T[0]-2))),T[0]>2&&(k(P.pick(-1,T[1]-1).lo(1).hi(T[0]-2),g.pick(-1,T[1]-1,0).lo(1).hi(T[0]-2)),x(g.pick(-1,T[1]-1,1).lo(1).hi(T[0]-2))),g.set(0,0,0,0),g.set(0,0,1,0),g.set(T[0]-1,0,0,0),g.set(T[0]-1,0,1,0),g.set(0,T[1]-1,0,0),g.set(0,T[1]-1,1,0),g.set(T[0]-1,T[1]-1,0,0),g.set(T[0]-1,T[1]-1,1,0),g}}function A(L){var x=L.join(),T=v[x];if(T)return T;for(var k=L.length,M=[b,p],g=1;g<=k;++g)M.push(C(g));var P=E,T=P.apply(void 0,M);return v[x]=T,T}i.exports=function(x,k,M){if(Array.isArray(M)||(typeof M=="string"?M=s(k.dimension,M):M=s(k.dimension,"clamp")),k.size===0)return x;if(k.dimension===0)return x.set(0),x;var g=A(M);return g(x,k)}},4317:function(i){"use strict";function a(c,f){var h=Math.floor(f),d=f-h,v=0<=h&&h0;){H<64?(x=H,H=0):(x=64,H-=64);for(var N=v[1]|0;N>0;){N<64?(k=N,N=0):(k=64,N-=64),p=G+H*g+N*P,A=Z+H*z+N*O;var j=0,re=0,oe=0,_e=T,Me=g-M*T,ke=P-x*g,me=V,ie=z-M*V,Se=O-x*z;for(oe=0;oe0;){O<64?(x=O,O=0):(x=64,O-=64);for(var V=v[0]|0;V>0;){V<64?(L=V,V=0):(L=64,V-=64),p=T+O*M+V*k,A=z+O*P+V*g;var G=0,Z=0,H=M,N=k-x*M,j=P,re=g-x*P;for(Z=0;Z0;){Z<64?(k=Z,Z=0):(k=64,Z-=64);for(var H=v[0]|0;H>0;){H<64?(L=H,H=0):(L=64,H-=64);for(var N=v[1]|0;N>0;){N<64?(x=N,N=0):(x=64,N-=64),p=V+Z*P+H*M+N*g,A=G+Z*O+H*T+N*z;var j=0,re=0,oe=0,_e=P,Me=M-k*P,ke=g-L*M,me=O,ie=T-k*O,Se=z-L*T;for(oe=0;oeC;){j=0,re=G-x;t:for(H=0;H_e)break t;re+=T,j+=z}for(j=G,re=G-x,H=0;H>1,N=H-V,j=H+V,re=G,oe=N,_e=H,Me=j,ke=Z,me=E+1,ie=A-1,Se=!0,Le,Ae,De,Pe,ge,Fe,ce,Ze,ct,pt=0,Wt=0,st=0,lt,Gt,Nt,$t,sr,wr,ur,Qe,Et,er,Ut,Ft,bt,yt,Yt,lr,Tr=P,Rr=b(Tr),ei=b(Tr);Gt=k*re,Nt=k*oe,lr=x;e:for(lt=0;lt0){Ae=re,re=oe,oe=Ae;break e}if(st<0)break e;lr+=z}Gt=k*Me,Nt=k*ke,lr=x;e:for(lt=0;lt0){Ae=Me,Me=ke,ke=Ae;break e}if(st<0)break e;lr+=z}Gt=k*re,Nt=k*_e,lr=x;e:for(lt=0;lt0){Ae=re,re=_e,_e=Ae;break e}if(st<0)break e;lr+=z}Gt=k*oe,Nt=k*_e,lr=x;e:for(lt=0;lt0){Ae=oe,oe=_e,_e=Ae;break e}if(st<0)break e;lr+=z}Gt=k*re,Nt=k*Me,lr=x;e:for(lt=0;lt0){Ae=re,re=Me,Me=Ae;break e}if(st<0)break e;lr+=z}Gt=k*_e,Nt=k*Me,lr=x;e:for(lt=0;lt0){Ae=_e,_e=Me,Me=Ae;break e}if(st<0)break e;lr+=z}Gt=k*oe,Nt=k*ke,lr=x;e:for(lt=0;lt0){Ae=oe,oe=ke,ke=Ae;break e}if(st<0)break e;lr+=z}Gt=k*oe,Nt=k*_e,lr=x;e:for(lt=0;lt0){Ae=oe,oe=_e,_e=Ae;break e}if(st<0)break e;lr+=z}Gt=k*Me,Nt=k*ke,lr=x;e:for(lt=0;lt0){Ae=Me,Me=ke,ke=Ae;break e}if(st<0)break e;lr+=z}for(Gt=k*re,Nt=k*oe,$t=k*_e,sr=k*Me,wr=k*ke,ur=k*G,Qe=k*H,Et=k*Z,Yt=0,lr=x,lt=0;lt0)ie--;else if(st<0){for(Gt=k*Fe,Nt=k*me,$t=k*ie,lr=x,lt=0;lt0)for(;;){ce=x+ie*k,Yt=0;e:for(lt=0;lt0){if(--ieZ){e:for(;;){for(ce=x+me*k,Yt=0,lr=x,lt=0;lt1&&C?A(p,C[0],C[1]):A(p)}var d={"uint32,1,0":function(_,b){return function(p){var C=p.data,E=p.offset|0,A=p.shape,L=p.stride,x=L[0]|0,k=A[0]|0,M=L[1]|0,g=A[1]|0,P=M,T=M,z=1;k<=32?_(0,k-1,C,E,x,M,k,g,P,T,z):b(0,k-1,C,E,x,M,k,g,P,T,z)}}};function v(_,b){var p=[b,_].join(","),C=d[p],E=c(_,b),A=h(_,b,E);return C(E,A)}i.exports=v},446:function(i,a,o){"use strict";var s=o(7640),l={};function u(c){var f=c.order,h=c.dtype,d=[f,h],v=d.join(":"),_=l[v];return _||(l[v]=_=s(f,h)),_(c),c}i.exports=u},9618:function(i,a,o){var s=o(7163),l=typeof Float64Array!="undefined";function u(b,p){return b[0]-p[0]}function c(){var b=this.stride,p=new Array(b.length),C;for(C=0;C=0&&(M=x|0,k+=P*M,g-=M),new E(this.data,g,P,k)},A.step=function(x){var k=this.shape[0],M=this.stride[0],g=this.offset,P=0,T=Math.ceil;return typeof x=="number"&&(P=x|0,P<0?(g+=M*(k-1),k=T(-k/P)):k=T(k/P),M*=P),new E(this.data,k,M,g)},A.transpose=function(x){x=x===void 0?0:x|0;var k=this.shape,M=this.stride;return new E(this.data,k[x],M[x],this.offset)},A.pick=function(x){var k=[],M=[],g=this.offset;typeof x=="number"&&x>=0?g=g+this.stride[0]*x|0:(k.push(this.shape[0]),M.push(this.stride[0]));var P=p[k.length+1];return P(this.data,k,M,g)},function(x,k,M,g){return new E(x,k[0],M[0],g)}},2:function(b,p,C){function E(L,x,k,M,g,P){this.data=L,this.shape=[x,k],this.stride=[M,g],this.offset=P|0}var A=E.prototype;return A.dtype=b,A.dimension=2,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(A,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),A.set=function(x,k,M){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k,M):this.data[this.offset+this.stride[0]*x+this.stride[1]*k]=M},A.get=function(x,k){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k):this.data[this.offset+this.stride[0]*x+this.stride[1]*k]},A.index=function(x,k){return this.offset+this.stride[0]*x+this.stride[1]*k},A.hi=function(x,k){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof k!="number"||k<0?this.shape[1]:k|0,this.stride[0],this.stride[1],this.offset)},A.lo=function(x,k){var M=this.offset,g=0,P=this.shape[0],T=this.shape[1],z=this.stride[0],O=this.stride[1];return typeof x=="number"&&x>=0&&(g=x|0,M+=z*g,P-=g),typeof k=="number"&&k>=0&&(g=k|0,M+=O*g,T-=g),new E(this.data,P,T,z,O,M)},A.step=function(x,k){var M=this.shape[0],g=this.shape[1],P=this.stride[0],T=this.stride[1],z=this.offset,O=0,V=Math.ceil;return typeof x=="number"&&(O=x|0,O<0?(z+=P*(M-1),M=V(-M/O)):M=V(M/O),P*=O),typeof k=="number"&&(O=k|0,O<0?(z+=T*(g-1),g=V(-g/O)):g=V(g/O),T*=O),new E(this.data,M,g,P,T,z)},A.transpose=function(x,k){x=x===void 0?0:x|0,k=k===void 0?1:k|0;var M=this.shape,g=this.stride;return new E(this.data,M[x],M[k],g[x],g[k],this.offset)},A.pick=function(x,k){var M=[],g=[],P=this.offset;typeof x=="number"&&x>=0?P=P+this.stride[0]*x|0:(M.push(this.shape[0]),g.push(this.stride[0])),typeof k=="number"&&k>=0?P=P+this.stride[1]*k|0:(M.push(this.shape[1]),g.push(this.stride[1]));var T=p[M.length+1];return T(this.data,M,g,P)},function(x,k,M,g){return new E(x,k[0],k[1],M[0],M[1],g)}},3:function(b,p,C){function E(L,x,k,M,g,P,T,z){this.data=L,this.shape=[x,k,M],this.stride=[g,P,T],this.offset=z|0}var A=E.prototype;return A.dtype=b,A.dimension=3,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(A,"order",{get:function(){var x=Math.abs(this.stride[0]),k=Math.abs(this.stride[1]),M=Math.abs(this.stride[2]);return x>k?k>M?[2,1,0]:x>M?[1,2,0]:[1,0,2]:x>M?[2,0,1]:M>k?[0,1,2]:[0,2,1]}}),A.set=function(x,k,M,g){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M,g):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M]=g},A.get=function(x,k,M){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M]},A.index=function(x,k,M){return this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M},A.hi=function(x,k,M){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof M!="number"||M<0?this.shape[2]:M|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},A.lo=function(x,k,M){var g=this.offset,P=0,T=this.shape[0],z=this.shape[1],O=this.shape[2],V=this.stride[0],G=this.stride[1],Z=this.stride[2];return typeof x=="number"&&x>=0&&(P=x|0,g+=V*P,T-=P),typeof k=="number"&&k>=0&&(P=k|0,g+=G*P,z-=P),typeof M=="number"&&M>=0&&(P=M|0,g+=Z*P,O-=P),new E(this.data,T,z,O,V,G,Z,g)},A.step=function(x,k,M){var g=this.shape[0],P=this.shape[1],T=this.shape[2],z=this.stride[0],O=this.stride[1],V=this.stride[2],G=this.offset,Z=0,H=Math.ceil;return typeof x=="number"&&(Z=x|0,Z<0?(G+=z*(g-1),g=H(-g/Z)):g=H(g/Z),z*=Z),typeof k=="number"&&(Z=k|0,Z<0?(G+=O*(P-1),P=H(-P/Z)):P=H(P/Z),O*=Z),typeof M=="number"&&(Z=M|0,Z<0?(G+=V*(T-1),T=H(-T/Z)):T=H(T/Z),V*=Z),new E(this.data,g,P,T,z,O,V,G)},A.transpose=function(x,k,M){x=x===void 0?0:x|0,k=k===void 0?1:k|0,M=M===void 0?2:M|0;var g=this.shape,P=this.stride;return new E(this.data,g[x],g[k],g[M],P[x],P[k],P[M],this.offset)},A.pick=function(x,k,M){var g=[],P=[],T=this.offset;typeof x=="number"&&x>=0?T=T+this.stride[0]*x|0:(g.push(this.shape[0]),P.push(this.stride[0])),typeof k=="number"&&k>=0?T=T+this.stride[1]*k|0:(g.push(this.shape[1]),P.push(this.stride[1])),typeof M=="number"&&M>=0?T=T+this.stride[2]*M|0:(g.push(this.shape[2]),P.push(this.stride[2]));var z=p[g.length+1];return z(this.data,g,P,T)},function(x,k,M,g){return new E(x,k[0],k[1],k[2],M[0],M[1],M[2],g)}},4:function(b,p,C){function E(L,x,k,M,g,P,T,z,O,V){this.data=L,this.shape=[x,k,M,g],this.stride=[P,T,z,O],this.offset=V|0}var A=E.prototype;return A.dtype=b,A.dimension=4,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(A,"order",{get:C}),A.set=function(x,k,M,g,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g,P):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g]=P},A.get=function(x,k,M,g){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g]},A.index=function(x,k,M,g){return this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g},A.hi=function(x,k,M,g){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof M!="number"||M<0?this.shape[2]:M|0,typeof g!="number"||g<0?this.shape[3]:g|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},A.lo=function(x,k,M,g){var P=this.offset,T=0,z=this.shape[0],O=this.shape[1],V=this.shape[2],G=this.shape[3],Z=this.stride[0],H=this.stride[1],N=this.stride[2],j=this.stride[3];return typeof x=="number"&&x>=0&&(T=x|0,P+=Z*T,z-=T),typeof k=="number"&&k>=0&&(T=k|0,P+=H*T,O-=T),typeof M=="number"&&M>=0&&(T=M|0,P+=N*T,V-=T),typeof g=="number"&&g>=0&&(T=g|0,P+=j*T,G-=T),new E(this.data,z,O,V,G,Z,H,N,j,P)},A.step=function(x,k,M,g){var P=this.shape[0],T=this.shape[1],z=this.shape[2],O=this.shape[3],V=this.stride[0],G=this.stride[1],Z=this.stride[2],H=this.stride[3],N=this.offset,j=0,re=Math.ceil;return typeof x=="number"&&(j=x|0,j<0?(N+=V*(P-1),P=re(-P/j)):P=re(P/j),V*=j),typeof k=="number"&&(j=k|0,j<0?(N+=G*(T-1),T=re(-T/j)):T=re(T/j),G*=j),typeof M=="number"&&(j=M|0,j<0?(N+=Z*(z-1),z=re(-z/j)):z=re(z/j),Z*=j),typeof g=="number"&&(j=g|0,j<0?(N+=H*(O-1),O=re(-O/j)):O=re(O/j),H*=j),new E(this.data,P,T,z,O,V,G,Z,H,N)},A.transpose=function(x,k,M,g){x=x===void 0?0:x|0,k=k===void 0?1:k|0,M=M===void 0?2:M|0,g=g===void 0?3:g|0;var P=this.shape,T=this.stride;return new E(this.data,P[x],P[k],P[M],P[g],T[x],T[k],T[M],T[g],this.offset)},A.pick=function(x,k,M,g){var P=[],T=[],z=this.offset;typeof x=="number"&&x>=0?z=z+this.stride[0]*x|0:(P.push(this.shape[0]),T.push(this.stride[0])),typeof k=="number"&&k>=0?z=z+this.stride[1]*k|0:(P.push(this.shape[1]),T.push(this.stride[1])),typeof M=="number"&&M>=0?z=z+this.stride[2]*M|0:(P.push(this.shape[2]),T.push(this.stride[2])),typeof g=="number"&&g>=0?z=z+this.stride[3]*g|0:(P.push(this.shape[3]),T.push(this.stride[3]));var O=p[P.length+1];return O(this.data,P,T,z)},function(x,k,M,g){return new E(x,k[0],k[1],k[2],k[3],M[0],M[1],M[2],M[3],g)}},5:function(p,C,E){function A(x,k,M,g,P,T,z,O,V,G,Z,H){this.data=x,this.shape=[k,M,g,P,T],this.stride=[z,O,V,G,Z],this.offset=H|0}var L=A.prototype;return L.dtype=p,L.dimension=5,Object.defineProperty(L,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(L,"order",{get:E}),L.set=function(k,M,g,P,T,z){return p==="generic"?this.data.set(this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T,z):this.data[this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T]=z},L.get=function(k,M,g,P,T){return p==="generic"?this.data.get(this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T):this.data[this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T]},L.index=function(k,M,g,P,T){return this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T},L.hi=function(k,M,g,P,T){return new A(this.data,typeof k!="number"||k<0?this.shape[0]:k|0,typeof M!="number"||M<0?this.shape[1]:M|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof T!="number"||T<0?this.shape[4]:T|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(k,M,g,P,T){var z=this.offset,O=0,V=this.shape[0],G=this.shape[1],Z=this.shape[2],H=this.shape[3],N=this.shape[4],j=this.stride[0],re=this.stride[1],oe=this.stride[2],_e=this.stride[3],Me=this.stride[4];return typeof k=="number"&&k>=0&&(O=k|0,z+=j*O,V-=O),typeof M=="number"&&M>=0&&(O=M|0,z+=re*O,G-=O),typeof g=="number"&&g>=0&&(O=g|0,z+=oe*O,Z-=O),typeof P=="number"&&P>=0&&(O=P|0,z+=_e*O,H-=O),typeof T=="number"&&T>=0&&(O=T|0,z+=Me*O,N-=O),new A(this.data,V,G,Z,H,N,j,re,oe,_e,Me,z)},L.step=function(k,M,g,P,T){var z=this.shape[0],O=this.shape[1],V=this.shape[2],G=this.shape[3],Z=this.shape[4],H=this.stride[0],N=this.stride[1],j=this.stride[2],re=this.stride[3],oe=this.stride[4],_e=this.offset,Me=0,ke=Math.ceil;return typeof k=="number"&&(Me=k|0,Me<0?(_e+=H*(z-1),z=ke(-z/Me)):z=ke(z/Me),H*=Me),typeof M=="number"&&(Me=M|0,Me<0?(_e+=N*(O-1),O=ke(-O/Me)):O=ke(O/Me),N*=Me),typeof g=="number"&&(Me=g|0,Me<0?(_e+=j*(V-1),V=ke(-V/Me)):V=ke(V/Me),j*=Me),typeof P=="number"&&(Me=P|0,Me<0?(_e+=re*(G-1),G=ke(-G/Me)):G=ke(G/Me),re*=Me),typeof T=="number"&&(Me=T|0,Me<0?(_e+=oe*(Z-1),Z=ke(-Z/Me)):Z=ke(Z/Me),oe*=Me),new A(this.data,z,O,V,G,Z,H,N,j,re,oe,_e)},L.transpose=function(k,M,g,P,T){k=k===void 0?0:k|0,M=M===void 0?1:M|0,g=g===void 0?2:g|0,P=P===void 0?3:P|0,T=T===void 0?4:T|0;var z=this.shape,O=this.stride;return new A(this.data,z[k],z[M],z[g],z[P],z[T],O[k],O[M],O[g],O[P],O[T],this.offset)},L.pick=function(k,M,g,P,T){var z=[],O=[],V=this.offset;typeof k=="number"&&k>=0?V=V+this.stride[0]*k|0:(z.push(this.shape[0]),O.push(this.stride[0])),typeof M=="number"&&M>=0?V=V+this.stride[1]*M|0:(z.push(this.shape[1]),O.push(this.stride[1])),typeof g=="number"&&g>=0?V=V+this.stride[2]*g|0:(z.push(this.shape[2]),O.push(this.stride[2])),typeof P=="number"&&P>=0?V=V+this.stride[3]*P|0:(z.push(this.shape[3]),O.push(this.stride[3])),typeof T=="number"&&T>=0?V=V+this.stride[4]*T|0:(z.push(this.shape[4]),O.push(this.stride[4]));var G=C[z.length+1];return G(this.data,z,O,V)},function(k,M,g,P){return new A(k,M[0],M[1],M[2],M[3],M[4],g[0],g[1],g[2],g[3],g[4],P)}}};function h(b,p){var C=p===-1?"T":String(p),E=f[C];return p===-1?E(b):p===0?E(b,v[b][0]):E(b,v[b],c)}function d(b){if(s(b))return"buffer";if(l)switch(Object.prototype.toString.call(b)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(b)?"array":"generic"}var v={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function _(b,p,C,E){if(b===void 0){var g=v.array[0];return g([])}else typeof b=="number"&&(b=[b]);p===void 0&&(p=[b.length]);var A=p.length;if(C===void 0){C=new Array(A);for(var L=A-1,x=1;L>=0;--L)C[L]=x,x*=p[L]}if(E===void 0){E=0;for(var L=0;L>>0;i.exports=c;function c(f,h){if(isNaN(f)||isNaN(h))return NaN;if(f===h)return f;if(f===0)return h<0?-l:l;var d=s.hi(f),v=s.lo(f);return h>f==f>0?v===u?(d+=1,v=0):v+=1:v===0?(v=u,d-=1):v-=1,s.pack(v,d)}},8406:function(i,a){var o=1e-6,s=1e-6;a.vertexNormals=function(l,u,c){for(var f=u.length,h=new Array(f),d=c===void 0?o:c,v=0;vd)for(var z=h[p],O=1/Math.sqrt(M*P),T=0;T<3;++T){var V=(T+1)%3,G=(T+2)%3;z[T]+=O*(g[V]*k[G]-g[G]*k[V])}}for(var v=0;vd)for(var O=1/Math.sqrt(Z),T=0;T<3;++T)z[T]*=O;else for(var T=0;T<3;++T)z[T]=0}return h},a.faceNormals=function(l,u,c){for(var f=l.length,h=new Array(f),d=c===void 0?s:c,v=0;vd?L=1/Math.sqrt(L):L=0;for(var p=0;p<3;++p)A[p]*=L;h[v]=A}return h}},4081:function(i){"use strict";i.exports=a;function a(o,s,l,u,c,f,h,d,v,_){var b=s+f+_;if(p>0){var p=Math.sqrt(b+1);o[0]=.5*(h-v)/p,o[1]=.5*(d-u)/p,o[2]=.5*(l-f)/p,o[3]=.5*p}else{var C=Math.max(s,f,_),p=Math.sqrt(2*C-b+1);s>=C?(o[0]=.5*p,o[1]=.5*(c+l)/p,o[2]=.5*(d+u)/p,o[3]=.5*(h-v)/p):f>=C?(o[0]=.5*(l+c)/p,o[1]=.5*p,o[2]=.5*(v+h)/p,o[3]=.5*(d-u)/p):(o[0]=.5*(u+d)/p,o[1]=.5*(h+v)/p,o[2]=.5*p,o[3]=.5*(l-c)/p)}return o}},9977:function(i,a,o){"use strict";i.exports=p;var s=o(9215),l=o(6582),u=o(7399),c=o(7608),f=o(4081);function h(C,E,A){return Math.sqrt(Math.pow(C,2)+Math.pow(E,2)+Math.pow(A,2))}function d(C,E,A,L){return Math.sqrt(Math.pow(C,2)+Math.pow(E,2)+Math.pow(A,2)+Math.pow(L,2))}function v(C,E){var A=E[0],L=E[1],x=E[2],k=E[3],M=d(A,L,x,k);M>1e-6?(C[0]=A/M,C[1]=L/M,C[2]=x/M,C[3]=k/M):(C[0]=C[1]=C[2]=0,C[3]=1)}function _(C,E,A){this.radius=s([A]),this.center=s(E),this.rotation=s(C),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var b=_.prototype;b.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},b.recalcMatrix=function(C){this.radius.curve(C),this.center.curve(C),this.rotation.curve(C);var E=this.computedRotation;v(E,E);var A=this.computedMatrix;u(A,E);var L=this.computedCenter,x=this.computedEye,k=this.computedUp,M=Math.exp(this.computedRadius[0]);x[0]=L[0]+M*A[2],x[1]=L[1]+M*A[6],x[2]=L[2]+M*A[10],k[0]=A[1],k[1]=A[5],k[2]=A[9];for(var g=0;g<3;++g){for(var P=0,T=0;T<3;++T)P+=A[g+4*T]*x[T];A[12+g]=-P}},b.getMatrix=function(C,E){this.recalcMatrix(C);var A=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=A[L];return E}return A},b.idle=function(C){this.center.idle(C),this.radius.idle(C),this.rotation.idle(C)},b.flush=function(C){this.center.flush(C),this.radius.flush(C),this.rotation.flush(C)},b.pan=function(C,E,A,L){E=E||0,A=A||0,L=L||0,this.recalcMatrix(C);var x=this.computedMatrix,k=x[1],M=x[5],g=x[9],P=h(k,M,g);k/=P,M/=P,g/=P;var T=x[0],z=x[4],O=x[8],V=T*k+z*M+O*g;T-=k*V,z-=M*V,O-=g*V;var G=h(T,z,O);T/=G,z/=G,O/=G;var Z=x[2],H=x[6],N=x[10],j=Z*k+H*M+N*g,re=Z*T+H*z+N*O;Z-=j*k+re*T,H-=j*M+re*z,N-=j*g+re*O;var oe=h(Z,H,N);Z/=oe,H/=oe,N/=oe;var _e=T*E+k*A,Me=z*E+M*A,ke=O*E+g*A;this.center.move(C,_e,Me,ke);var me=Math.exp(this.computedRadius[0]);me=Math.max(1e-4,me+L),this.radius.set(C,Math.log(me))},b.rotate=function(C,E,A,L){this.recalcMatrix(C),E=E||0,A=A||0;var x=this.computedMatrix,k=x[0],M=x[4],g=x[8],P=x[1],T=x[5],z=x[9],O=x[2],V=x[6],G=x[10],Z=E*k+A*P,H=E*M+A*T,N=E*g+A*z,j=-(V*N-G*H),re=-(G*Z-O*N),oe=-(O*H-V*Z),_e=Math.sqrt(Math.max(0,1-Math.pow(j,2)-Math.pow(re,2)-Math.pow(oe,2))),Me=d(j,re,oe,_e);Me>1e-6?(j/=Me,re/=Me,oe/=Me,_e/=Me):(j=re=oe=0,_e=1);var ke=this.computedRotation,me=ke[0],ie=ke[1],Se=ke[2],Le=ke[3],Ae=me*_e+Le*j+ie*oe-Se*re,De=ie*_e+Le*re+Se*j-me*oe,Pe=Se*_e+Le*oe+me*re-ie*j,ge=Le*_e-me*j-ie*re-Se*oe;if(L){j=O,re=V,oe=G;var Fe=Math.sin(L)/h(j,re,oe);j*=Fe,re*=Fe,oe*=Fe,_e=Math.cos(E),Ae=Ae*_e+ge*j+De*oe-Pe*re,De=De*_e+ge*re+Pe*j-Ae*oe,Pe=Pe*_e+ge*oe+Ae*re-De*j,ge=ge*_e-Ae*j-De*re-Pe*oe}var ce=d(Ae,De,Pe,ge);ce>1e-6?(Ae/=ce,De/=ce,Pe/=ce,ge/=ce):(Ae=De=Pe=0,ge=1),this.rotation.set(C,Ae,De,Pe,ge)},b.lookAt=function(C,E,A,L){this.recalcMatrix(C),A=A||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var x=this.computedMatrix;l(x,E,A,L);var k=this.computedRotation;f(k,x[0],x[1],x[2],x[4],x[5],x[6],x[8],x[9],x[10]),v(k,k),this.rotation.set(C,k[0],k[1],k[2],k[3]);for(var M=0,g=0;g<3;++g)M+=Math.pow(A[g]-E[g],2);this.radius.set(C,.5*Math.log(Math.max(M,1e-6))),this.center.set(C,A[0],A[1],A[2])},b.translate=function(C,E,A,L){this.center.move(C,E||0,A||0,L||0)},b.setMatrix=function(C,E){var A=this.computedRotation;f(A,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),v(A,A),this.rotation.set(C,A[0],A[1],A[2],A[3]);var L=this.computedMatrix;c(L,E);var x=L[15];if(Math.abs(x)>1e-6){var k=L[12]/x,M=L[13]/x,g=L[14]/x;this.recalcMatrix(C);var P=Math.exp(this.computedRadius[0]);this.center.set(C,k-L[2]*P,M-L[6]*P,g-L[10]*P),this.radius.idle(C)}else this.center.idle(C),this.radius.idle(C)},b.setDistance=function(C,E){E>0&&this.radius.set(C,Math.log(E))},b.setDistanceLimits=function(C,E){C>0?C=Math.log(C):C=-1/0,E>0?E=Math.log(E):E=1/0,E=Math.max(E,C),this.radius.bounds[0][0]=C,this.radius.bounds[1][0]=E},b.getDistanceLimits=function(C){var E=this.radius.bounds;return C?(C[0]=Math.exp(E[0][0]),C[1]=Math.exp(E[1][0]),C):[Math.exp(E[0][0]),Math.exp(E[1][0])]},b.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},b.fromJSON=function(C){var E=this.lastT(),A=C.center;A&&this.center.set(E,A[0],A[1],A[2]);var L=C.rotation;L&&this.rotation.set(E,L[0],L[1],L[2],L[3]);var x=C.distance;x&&x>0&&this.radius.set(E,Math.log(x)),this.setDistanceLimits(C.zoomMin,C.zoomMax)};function p(C){C=C||{};var E=C.center||[0,0,0],A=C.rotation||[0,0,0,1],L=C.radius||1;E=[].slice.call(E,0,3),A=[].slice.call(A,0,4),v(A,A);var x=new _(A,E,Math.log(L));return x.setDistanceLimits(C.zoomMin,C.zoomMax),("eye"in C||"up"in C)&&x.lookAt(0,C.eye,C.center,C.up),x}},1371:function(i,a,o){"use strict";var s=o(3233);i.exports=function(u,c,f){return f=typeof f!="undefined"?f+"":" ",s(f,c)+u}},3202:function(i){i.exports=function(o,s){s||(s=[0,""]),o=String(o);var l=parseFloat(o,10);return s[0]=l,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}},3088:function(i,a,o){"use strict";i.exports=l;var s=o(3140);function l(u,c){for(var f=c.length|0,h=u.length,d=[new Array(f),new Array(f)],v=0;v0){z=d[G][P][0],V=G;break}O=z[V^1];for(var Z=0;Z<2;++Z)for(var H=d[Z][P],N=0;N0&&(z=j,O=re,V=Z)}return T||z&&p(z,V),O}function E(g,P){var T=d[P][g][0],z=[g];p(T,P);for(var O=T[P^1],V=P;;){for(;O!==g;)z.push(O),O=C(z[z.length-2],O,!1);if(d[0][g].length+d[1][g].length===0)break;var G=z[z.length-1],Z=g,H=z[1],N=C(G,Z,!0);if(s(c[G],c[Z],c[H],c[N])<0)break;z.push(g),O=C(G,Z)}return z}function A(g,P){return P[1]===P[P.length-1]}for(var v=0;v0;){var k=d[0][v].length,M=E(v,L);A(x,M)?x.push.apply(x,M):(x.length>0&&b.push(x),x=M)}x.length>0&&b.push(x)}return b}},5609:function(i,a,o){"use strict";i.exports=l;var s=o(3134);function l(u,c){for(var f=s(u,c.length),h=new Array(c.length),d=new Array(c.length),v=[],_=0;_0;){var p=v.pop();h[p]=!1;for(var C=f[p],_=0;_0}k=k.filter(M);for(var g=k.length,P=new Array(g),T=new Array(g),x=0;x0;){var ce=Pe.pop(),Ze=Me[ce];h(Ze,function(lt,Gt){return lt-Gt});var ct=Ze.length,pt=ge[ce],Wt;if(pt===0){var H=k[ce];Wt=[H]}for(var x=0;x=0)&&(ge[st]=pt^1,Pe.push(st),pt===0)){var H=k[st];De(H)||(H.reverse(),Wt.push(H))}}pt===0&&Fe.push(Wt)}return Fe}},5085:function(i,a,o){i.exports=C;var s=o(3250)[3],l=o(4209),u=o(3352),c=o(2478);function f(){return!0}function h(E){return function(A,L){var x=E[A];return x?!!x.queryPoint(L,f):!1}}function d(E){for(var A={},L=0;L0&&A[x]===L[0])k=E[x-1];else return 1;for(var M=1;k;){var g=k.key,P=s(L,g[0],g[1]);if(g[0][0]0)M=-1,k=k.right;else return 0;else if(P>0)k=k.left;else if(P<0)M=1,k=k.right;else return 0}return M}}function _(E){return 1}function b(E){return function(L){return E(L[0],L[1])?0:1}}function p(E,A){return function(x){return E(x[0],x[1])?0:A(x)}}function C(E){for(var A=E.length,L=[],x=[],k=0,M=0;M=_?(g=1,T=_+2*C+A):(g=-C/_,T=C*g+A)):(g=0,E>=0?(P=0,T=A):-E>=p?(P=1,T=p+2*E+A):(P=-E/p,T=E*P+A));else if(P<0)P=0,C>=0?(g=0,T=A):-C>=_?(g=1,T=_+2*C+A):(g=-C/_,T=C*g+A);else{var z=1/M;g*=z,P*=z,T=g*(_*g+b*P+2*C)+P*(b*g+p*P+2*E)+A}else{var O,V,G,Z;g<0?(O=b+C,V=p+E,V>O?(G=V-O,Z=_-2*b+p,G>=Z?(g=1,P=0,T=_+2*C+A):(g=G/Z,P=1-g,T=g*(_*g+b*P+2*C)+P*(b*g+p*P+2*E)+A)):(g=0,V<=0?(P=1,T=p+2*E+A):E>=0?(P=0,T=A):(P=-E/p,T=E*P+A))):P<0?(O=b+E,V=_+C,V>O?(G=V-O,Z=_-2*b+p,G>=Z?(P=1,g=0,T=p+2*E+A):(P=G/Z,g=1-P,T=g*(_*g+b*P+2*C)+P*(b*g+p*P+2*E)+A)):(P=0,V<=0?(g=1,T=_+2*C+A):C>=0?(g=0,T=A):(g=-C/_,T=C*g+A))):(G=p+E-b-C,G<=0?(g=0,P=1,T=p+2*E+A):(Z=_-2*b+p,G>=Z?(g=1,P=0,T=_+2*C+A):(g=G/Z,P=1-g,T=g*(_*g+b*P+2*C)+P*(b*g+p*P+2*E)+A)))}for(var H=1-g-P,v=0;v0){var p=f[d-1];if(s(_,p)===0&&u(p)!==b){d-=1;continue}}f[d++]=_}}return f.length=d,f}},3233:function(i){"use strict";var a="",o;i.exports=s;function s(l,u){if(typeof l!="string")throw new TypeError("expected a string");if(u===1)return l;if(u===2)return l+l;var c=l.length*u;if(o!==l||typeof o=="undefined")o=l,a="";else if(a.length>=c)return a.substr(0,c);for(;c>a.length&&u>1;)u&1&&(a+=l),u>>=1,l+=l;return a+=l,a=a.substr(0,c),a}},3025:function(i,a,o){i.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(i){"use strict";i.exports=a;function a(o){for(var s=o.length,l=o[o.length-1],u=s,c=s-2;c>=0;--c){var f=l,h=o[c];l=f+h;var d=l-f,v=h-d;v&&(o[--u]=l,l=v)}for(var _=0,c=u;c0){if(V<=0)return G;Z=O+V}else if(O<0){if(V>=0)return G;Z=-(O+V)}else return G;var H=d*Z;return G>=H||G<=-H?G:E(P,T,z)},function(P,T,z,O){var V=P[0]-O[0],G=T[0]-O[0],Z=z[0]-O[0],H=P[1]-O[1],N=T[1]-O[1],j=z[1]-O[1],re=P[2]-O[2],oe=T[2]-O[2],_e=z[2]-O[2],Me=G*j,ke=Z*N,me=Z*H,ie=V*j,Se=V*N,Le=G*H,Ae=re*(Me-ke)+oe*(me-ie)+_e*(Se-Le),De=(Math.abs(Me)+Math.abs(ke))*Math.abs(re)+(Math.abs(me)+Math.abs(ie))*Math.abs(oe)+(Math.abs(Se)+Math.abs(Le))*Math.abs(_e),Pe=v*De;return Ae>Pe||-Ae>Pe?Ae:A(P,T,z,O)}];function x(g){var P=L[g.length];return P||(P=L[g.length]=C(g.length)),P.apply(void 0,g)}function k(g,P,T,z,O,V,G){return function(H,N,j,re,oe){switch(arguments.length){case 0:case 1:return 0;case 2:return z(H,N);case 3:return O(H,N,j);case 4:return V(H,N,j,re);case 5:return G(H,N,j,re,oe)}for(var _e=new Array(arguments.length),Me=0;Me0&&_>0||v<0&&_<0)return!1;var b=s(h,c,f),p=s(d,c,f);return b>0&&p>0||b<0&&p<0?!1:v===0&&_===0&&b===0&&p===0?l(c,f,h,d):!0}},8545:function(i){"use strict";i.exports=o;function a(s,l){var u=s+l,c=u-s,f=u-c,h=l-c,d=s-f,v=d+h;return v?[v,u]:[u]}function o(s,l){var u=s.length|0,c=l.length|0;if(u===1&&c===1)return a(s[0],-l[0]);var f=u+c,h=new Array(f),d=0,v=0,_=0,b=Math.abs,p=s[v],C=b(p),E=-l[_],A=b(E),L,x;C=c?(L=p,v+=1,v=c?(L=p,v+=1,v>1,E=f[2*C+1];if(E===_)return C;_>1,E=f[2*C+1];if(E===_)return C;_>1,E=f[2*C+1];if(E===_)return C;_>1,E=f[2*C+1];if(E===_)return C;_>1,Z=d(P[G],T);Z<=0?(Z===0&&(V=G),z=G+1):Z>0&&(O=G-1)}return V}s=p;function C(P,T){for(var z=new Array(P.length),O=0,V=z.length;O=P.length||d(P[Me],G)!==0););}return z}s=C;function E(P,T){if(!T)return C(b(L(P,0)),P,0);for(var z=new Array(T),O=0;O>>j&1&&N.push(V[j]);T.push(N)}return _(T)}s=A;function L(P,T){if(T<0)return[];for(var z=[],O=(1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},2014:function(i,a,o){"use strict";"use restrict";var s=o(3105),l=o(4623);function u(g){for(var P=0,T=Math.max,z=0,O=g.length;z>1,G=h(g[V],P);G<=0?(G===0&&(O=V),T=V+1):G>0&&(z=V-1)}return O}a.findCell=b;function p(g,P){for(var T=new Array(g.length),z=0,O=T.length;z=g.length||h(g[_e],V)!==0););}return T}a.incidence=p;function C(g,P){if(!P)return p(_(A(g,0)),g,0);for(var T=new Array(P),z=0;z>>N&1&&H.push(O[N]);P.push(H)}return v(P)}a.explode=E;function A(g,P){if(P<0)return[];for(var T=[],z=(1<>1:(ie>>1)-1}function z(ie){for(var Se=P(ie);;){var Le=Se,Ae=2*ie+1,De=2*(ie+1),Pe=ie;if(Ae0;){var Le=T(ie);if(Le>=0){var Ae=P(Le);if(Se0){var ie=H[0];return g(0,re-1),re-=1,z(0),ie}return-1}function G(ie,Se){var Le=H[ie];return C[Le]===Se?ie:(C[Le]=-1/0,O(ie),V(),C[Le]=Se,re+=1,O(re-1))}function Z(ie){if(!E[ie]){E[ie]=!0;var Se=b[ie],Le=p[ie];b[Le]>=0&&(b[Le]=Se),p[Se]>=0&&(p[Se]=Le),N[Se]>=0&&G(N[Se],M(Se)),N[Le]>=0&&G(N[Le],M(Le))}}for(var H=[],N=new Array(v),A=0;A>1;A>=0;--A)z(A);for(;;){var oe=V();if(oe<0||C[oe]>d)break;Z(oe)}for(var _e=[],A=0;A=0&&Le>=0&&Se!==Le){var Ae=N[Se],De=N[Le];Ae!==De&&me.push([Ae,De])}}),l.unique(l.normalize(me)),{positions:_e,edges:me}}},1303:function(i,a,o){"use strict";i.exports=u;var s=o(3250);function l(c,f){var h,d;if(f[0][0]f[1][0])h=f[1],d=f[0];else{var v=Math.min(c[0][1],c[1][1]),_=Math.max(c[0][1],c[1][1]),b=Math.min(f[0][1],f[1][1]),p=Math.max(f[0][1],f[1][1]);return _p?v-p:_-p}var C,E;c[0][1]f[1][0])h=f[1],d=f[0];else return l(f,c);var v,_;if(c[0][0]c[1][0])v=c[1],_=c[0];else return-l(c,f);var b=s(h,d,_),p=s(h,d,v);if(b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;if(b=s(_,v,d),p=s(_,v,h),b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;return d[0]-_[0]}},4209:function(i,a,o){"use strict";i.exports=p;var s=o(2478),l=o(3840),u=o(3250),c=o(1303);function f(C,E,A){this.slabs=C,this.coordinates=E,this.horizontal=A}var h=f.prototype;function d(C,E){return C.y-E}function v(C,E){for(var A=null;C;){var L=C.key,x,k;L[0][0]0)if(E[0]!==L[1][0])A=C,C=C.right;else{var g=v(C.right,E);if(g)return g;C=C.left}else{if(E[0]!==L[1][0])return C;var g=v(C.right,E);if(g)return g;C=C.left}}return A}h.castUp=function(C){var E=s.le(this.coordinates,C[0]);if(E<0)return-1;var A=this.slabs[E],L=v(this.slabs[E],C),x=-1;if(L&&(x=L.value),this.coordinates[E]===C[0]){var k=null;if(L&&(k=L.key),E>0){var M=v(this.slabs[E-1],C);M&&(k?c(M.key,k)>0&&(k=M.key,x=M.value):(x=M.value,k=M.key))}var g=this.horizontal[E];if(g.length>0){var P=s.ge(g,C[1],d);if(P=g.length)return x;T=g[P]}}if(T.start)if(k){var z=u(k[0],k[1],[C[0],T.y]);k[0][0]>k[1][0]&&(z=-z),z>0&&(x=T.index)}else x=T.index;else T.y!==C[1]&&(x=T.index)}}}return x};function _(C,E,A,L){this.y=C,this.index=E,this.start=A,this.closed=L}function b(C,E,A,L){this.x=C,this.segment=E,this.create=A,this.index=L}function p(C){for(var E=C.length,A=2*E,L=new Array(A),x=0;x1&&(E=1);for(var A=1-E,L=v.length,x=new Array(L),k=0;k0||C>0&&x<0){var k=c(E,x,A,C);b.push(k),p.push(k.slice())}x<0?p.push(A.slice()):x>0?b.push(A.slice()):(b.push(A.slice()),p.push(A.slice())),C=x}return{positive:b,negative:p}}function h(v,_){for(var b=[],p=u(v[v.length-1],_),C=v[v.length-1],E=v[0],A=0;A0||p>0&&L<0)&&b.push(c(C,L,E,p)),L>=0&&b.push(E.slice()),p=L}return b}function d(v,_){for(var b=[],p=u(v[v.length-1],_),C=v[v.length-1],E=v[0],A=0;A0||p>0&&L<0)&&b.push(c(C,L,E,p)),L<=0&&b.push(E.slice()),p=L}return b}},3387:function(i,a,o){var s;(function(){"use strict";var l={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function u(v){return f(d(v),arguments)}function c(v,_){return u.apply(null,[v].concat(_||[]))}function f(v,_){var b=1,p=v.length,C,E="",A,L,x,k,M,g,P,T;for(A=0;A=0),x.type){case"b":C=parseInt(C,10).toString(2);break;case"c":C=String.fromCharCode(parseInt(C,10));break;case"d":case"i":C=parseInt(C,10);break;case"j":C=JSON.stringify(C,null,x.width?parseInt(x.width):0);break;case"e":C=x.precision?parseFloat(C).toExponential(x.precision):parseFloat(C).toExponential();break;case"f":C=x.precision?parseFloat(C).toFixed(x.precision):parseFloat(C);break;case"g":C=x.precision?String(Number(C.toPrecision(x.precision))):parseFloat(C);break;case"o":C=(parseInt(C,10)>>>0).toString(8);break;case"s":C=String(C),C=x.precision?C.substring(0,x.precision):C;break;case"t":C=String(!!C),C=x.precision?C.substring(0,x.precision):C;break;case"T":C=Object.prototype.toString.call(C).slice(8,-1).toLowerCase(),C=x.precision?C.substring(0,x.precision):C;break;case"u":C=parseInt(C,10)>>>0;break;case"v":C=C.valueOf(),C=x.precision?C.substring(0,x.precision):C;break;case"x":C=(parseInt(C,10)>>>0).toString(16);break;case"X":C=(parseInt(C,10)>>>0).toString(16).toUpperCase();break}l.json.test(x.type)?E+=C:(l.number.test(x.type)&&(!P||x.sign)?(T=P?"+":"-",C=C.toString().replace(l.sign,"")):T="",M=x.pad_char?x.pad_char==="0"?"0":x.pad_char.charAt(1):" ",g=x.width-(T+C).length,k=x.width&&g>0?M.repeat(g):"",E+=x.align?T+C+k:M==="0"?T+k+C:k+T+C)}return E}var h=Object.create(null);function d(v){if(h[v])return h[v];for(var _=v,b,p=[],C=0;_;){if((b=l.text.exec(_))!==null)p.push(b[0]);else if((b=l.modulo.exec(_))!==null)p.push("%");else if((b=l.placeholder.exec(_))!==null){if(b[2]){C|=1;var E=[],A=b[2],L=[];if((L=l.key.exec(A))!==null)for(E.push(L[1]);(A=A.substring(L[0].length))!=="";)if((L=l.key_access.exec(A))!==null)E.push(L[1]);else if((L=l.index_access.exec(A))!==null)E.push(L[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");b[2]=E}else C|=2;if(C===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:b[0],param_no:b[1],keys:b[2],sign:b[3],pad_char:b[4],align:b[5],width:b[6],precision:b[7],type:b[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");_=_.substring(b[0].length)}return h[v]=p}a.sprintf=u,a.vsprintf=c,typeof window!="undefined"&&(window.sprintf=u,window.vsprintf=c,s=function(){return{sprintf:u,vsprintf:c}}.call(a,o,a,i),s!==void 0&&(i.exports=s))})()},3711:function(i,a,o){"use strict";i.exports=d;var s=o(2640),l=o(781),u={"2d":function(v,_,b){var p=v({order:_,scalarArguments:3,getters:b==="generic"?[0]:void 0,phase:function(E,A,L,x){return E>x|0},vertex:function(E,A,L,x,k,M,g,P,T,z,O,V,G){var Z=(g<<0)+(P<<1)+(T<<2)+(z<<3)|0;if(!(Z===0||Z===15))switch(Z){case 0:O.push([E-.5,A-.5]);break;case 1:O.push([E-.25-.25*(x+L-2*G)/(L-x),A-.25-.25*(k+L-2*G)/(L-k)]);break;case 2:O.push([E-.75-.25*(-x-L+2*G)/(x-L),A-.25-.25*(M+x-2*G)/(x-M)]);break;case 3:O.push([E-.5,A-.5-.5*(k+L+M+x-4*G)/(L-k+x-M)]);break;case 4:O.push([E-.25-.25*(M+k-2*G)/(k-M),A-.75-.25*(-k-L+2*G)/(k-L)]);break;case 5:O.push([E-.5-.5*(x+L+M+k-4*G)/(L-x+k-M),A-.5]);break;case 6:O.push([E-.5-.25*(-x-L+M+k)/(x-L+k-M),A-.5-.25*(-k-L+M+x)/(k-L+x-M)]);break;case 7:O.push([E-.75-.25*(M+k-2*G)/(k-M),A-.75-.25*(M+x-2*G)/(x-M)]);break;case 8:O.push([E-.75-.25*(-M-k+2*G)/(M-k),A-.75-.25*(-M-x+2*G)/(M-x)]);break;case 9:O.push([E-.5-.25*(x+L+-M-k)/(L-x+M-k),A-.5-.25*(k+L+-M-x)/(L-k+M-x)]);break;case 10:O.push([E-.5-.5*(-x-L+-M-k+4*G)/(x-L+M-k),A-.5]);break;case 11:O.push([E-.25-.25*(-M-k+2*G)/(M-k),A-.75-.25*(k+L-2*G)/(L-k)]);break;case 12:O.push([E-.5,A-.5-.5*(-k-L+-M-x+4*G)/(k-L+M-x)]);break;case 13:O.push([E-.75-.25*(x+L-2*G)/(L-x),A-.25-.25*(-M-x+2*G)/(M-x)]);break;case 14:O.push([E-.25-.25*(-x-L+2*G)/(x-L),A-.25-.25*(-k-L+2*G)/(k-L)]);break;case 15:O.push([E-.5,A-.5]);break}},cell:function(E,A,L,x,k,M,g,P,T){k?P.push([E,A]):P.push([A,E])}});return function(C,E){var A=[],L=[];return p(C,A,L,E),{positions:A,cells:L}}}};function c(v,_){var b=v.length+"d",p=u[b];if(p)return p(s,v,_)}function f(v,_){for(var b=l(v,_),p=b.length,C=new Array(p),E=new Array(p),A=0;AMath.max(x,k)?M[2]=1:x>Math.max(L,k)?M[0]=1:M[1]=1;for(var g=0,P=0,T=0;T<3;++T)g+=A[T]*A[T],P+=M[T]*A[T];for(var T=0;T<3;++T)M[T]-=P/g*A[T];return f(M,M),M}function b(A,L,x,k,M,g,P,T){this.center=s(x),this.up=s(k),this.right=s(M),this.radius=s([g]),this.angle=s([P,T]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(A,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var z=0;z<16;++z)this.computedMatrix[z]=.5;this.recalcMatrix(0)}var p=b.prototype;p.setDistanceLimits=function(A,L){A>0?A=Math.log(A):A=-1/0,L>0?L=Math.log(L):L=1/0,L=Math.max(L,A),this.radius.bounds[0][0]=A,this.radius.bounds[1][0]=L},p.getDistanceLimits=function(A){var L=this.radius.bounds[0];return A?(A[0]=Math.exp(L[0][0]),A[1]=Math.exp(L[1][0]),A):[Math.exp(L[0][0]),Math.exp(L[1][0])]},p.recalcMatrix=function(A){this.center.curve(A),this.up.curve(A),this.right.curve(A),this.radius.curve(A),this.angle.curve(A);for(var L=this.computedUp,x=this.computedRight,k=0,M=0,g=0;g<3;++g)M+=L[g]*x[g],k+=L[g]*L[g];for(var P=Math.sqrt(k),T=0,g=0;g<3;++g)x[g]-=L[g]*M/k,T+=x[g]*x[g],L[g]/=P;for(var z=Math.sqrt(T),g=0;g<3;++g)x[g]/=z;var O=this.computedToward;c(O,L,x),f(O,O);for(var V=Math.exp(this.computedRadius[0]),G=this.computedAngle[0],Z=this.computedAngle[1],H=Math.cos(G),N=Math.sin(G),j=Math.cos(Z),re=Math.sin(Z),oe=this.computedCenter,_e=H*j,Me=N*j,ke=re,me=-H*re,ie=-N*re,Se=j,Le=this.computedEye,Ae=this.computedMatrix,g=0;g<3;++g){var De=_e*x[g]+Me*O[g]+ke*L[g];Ae[4*g+1]=me*x[g]+ie*O[g]+Se*L[g],Ae[4*g+2]=De,Ae[4*g+3]=0}var Pe=Ae[1],ge=Ae[5],Fe=Ae[9],ce=Ae[2],Ze=Ae[6],ct=Ae[10],pt=ge*ct-Fe*Ze,Wt=Fe*ce-Pe*ct,st=Pe*Ze-ge*ce,lt=d(pt,Wt,st);pt/=lt,Wt/=lt,st/=lt,Ae[0]=pt,Ae[4]=Wt,Ae[8]=st;for(var g=0;g<3;++g)Le[g]=oe[g]+Ae[2+4*g]*V;for(var g=0;g<3;++g){for(var T=0,Gt=0;Gt<3;++Gt)T+=Ae[g+4*Gt]*Le[Gt];Ae[12+g]=-T}Ae[15]=1},p.getMatrix=function(A,L){this.recalcMatrix(A);var x=this.computedMatrix;if(L){for(var k=0;k<16;++k)L[k]=x[k];return L}return x};var C=[0,0,0];p.rotate=function(A,L,x,k){if(this.angle.move(A,L,x),k){this.recalcMatrix(A);var M=this.computedMatrix;C[0]=M[2],C[1]=M[6],C[2]=M[10];for(var g=this.computedUp,P=this.computedRight,T=this.computedToward,z=0;z<3;++z)M[4*z]=g[z],M[4*z+1]=P[z],M[4*z+2]=T[z];u(M,M,k,C);for(var z=0;z<3;++z)g[z]=M[4*z],P[z]=M[4*z+1];this.up.set(A,g[0],g[1],g[2]),this.right.set(A,P[0],P[1],P[2])}},p.pan=function(A,L,x,k){L=L||0,x=x||0,k=k||0,this.recalcMatrix(A);var M=this.computedMatrix,g=Math.exp(this.computedRadius[0]),P=M[1],T=M[5],z=M[9],O=d(P,T,z);P/=O,T/=O,z/=O;var V=M[0],G=M[4],Z=M[8],H=V*P+G*T+Z*z;V-=P*H,G-=T*H,Z-=z*H;var N=d(V,G,Z);V/=N,G/=N,Z/=N;var j=V*L+P*x,re=G*L+T*x,oe=Z*L+z*x;this.center.move(A,j,re,oe);var _e=Math.exp(this.computedRadius[0]);_e=Math.max(1e-4,_e+k),this.radius.set(A,Math.log(_e))},p.translate=function(A,L,x,k){this.center.move(A,L||0,x||0,k||0)},p.setMatrix=function(A,L,x,k){var M=1;typeof x=="number"&&(M=x|0),(M<0||M>3)&&(M=1);var g=(M+2)%3,P=(M+1)%3;L||(this.recalcMatrix(A),L=this.computedMatrix);var T=L[M],z=L[M+4],O=L[M+8];if(k){var G=Math.abs(T),Z=Math.abs(z),H=Math.abs(O),N=Math.max(G,Z,H);G===N?(T=T<0?-1:1,z=O=0):H===N?(O=O<0?-1:1,T=z=0):(z=z<0?-1:1,T=O=0)}else{var V=d(T,z,O);T/=V,z/=V,O/=V}var j=L[g],re=L[g+4],oe=L[g+8],_e=j*T+re*z+oe*O;j-=T*_e,re-=z*_e,oe-=O*_e;var Me=d(j,re,oe);j/=Me,re/=Me,oe/=Me;var ke=z*oe-O*re,me=O*j-T*oe,ie=T*re-z*j,Se=d(ke,me,ie);ke/=Se,me/=Se,ie/=Se,this.center.jump(A,ur,Qe,Et),this.radius.idle(A),this.up.jump(A,T,z,O),this.right.jump(A,j,re,oe);var Le,Ae;if(M===2){var De=L[1],Pe=L[5],ge=L[9],Fe=De*j+Pe*re+ge*oe,ce=De*ke+Pe*me+ge*ie;Wt<0?Le=-Math.PI/2:Le=Math.PI/2,Ae=Math.atan2(ce,Fe)}else{var Ze=L[2],ct=L[6],pt=L[10],Wt=Ze*T+ct*z+pt*O,st=Ze*j+ct*re+pt*oe,lt=Ze*ke+ct*me+pt*ie;Le=Math.asin(v(Wt)),Ae=Math.atan2(lt,st)}this.angle.jump(A,Ae,Le),this.recalcMatrix(A);var Gt=L[2],Nt=L[6],$t=L[10],sr=this.computedMatrix;l(sr,L);var wr=sr[15],ur=sr[12]/wr,Qe=sr[13]/wr,Et=sr[14]/wr,er=Math.exp(this.computedRadius[0]);this.center.jump(A,ur-Gt*er,Qe-Nt*er,Et-$t*er)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(A){this.center.idle(A),this.up.idle(A),this.right.idle(A),this.radius.idle(A),this.angle.idle(A)},p.flush=function(A){this.center.flush(A),this.up.flush(A),this.right.flush(A),this.radius.flush(A),this.angle.flush(A)},p.setDistance=function(A,L){L>0&&this.radius.set(A,Math.log(L))},p.lookAt=function(A,L,x,k){this.recalcMatrix(A),L=L||this.computedEye,x=x||this.computedCenter,k=k||this.computedUp;var M=k[0],g=k[1],P=k[2],T=d(M,g,P);if(!(T<1e-6)){M/=T,g/=T,P/=T;var z=L[0]-x[0],O=L[1]-x[1],V=L[2]-x[2],G=d(z,O,V);if(!(G<1e-6)){z/=G,O/=G,V/=G;var Z=this.computedRight,H=Z[0],N=Z[1],j=Z[2],re=M*H+g*N+P*j;H-=re*M,N-=re*g,j-=re*P;var oe=d(H,N,j);if(!(oe<.01&&(H=g*V-P*O,N=P*z-M*V,j=M*O-g*z,oe=d(H,N,j),oe<1e-6))){H/=oe,N/=oe,j/=oe,this.up.set(A,M,g,P),this.right.set(A,H,N,j),this.center.set(A,x[0],x[1],x[2]),this.radius.set(A,Math.log(G));var _e=g*j-P*N,Me=P*H-M*j,ke=M*N-g*H,me=d(_e,Me,ke);_e/=me,Me/=me,ke/=me;var ie=M*z+g*O+P*V,Se=H*z+N*O+j*V,Le=_e*z+Me*O+ke*V,Ae=Math.asin(v(ie)),De=Math.atan2(Le,Se),Pe=this.angle._state,ge=Pe[Pe.length-1],Fe=Pe[Pe.length-2];ge=ge%(2*Math.PI);var ce=Math.abs(ge+2*Math.PI-De),Ze=Math.abs(ge-De),ct=Math.abs(ge-2*Math.PI-De);ce0?j.pop():new ArrayBuffer(H)}a.mallocArrayBuffer=C;function E(Z){return new Uint8Array(C(Z),0,Z)}a.mallocUint8=E;function A(Z){return new Uint16Array(C(2*Z),0,Z)}a.mallocUint16=A;function L(Z){return new Uint32Array(C(4*Z),0,Z)}a.mallocUint32=L;function x(Z){return new Int8Array(C(Z),0,Z)}a.mallocInt8=x;function k(Z){return new Int16Array(C(2*Z),0,Z)}a.mallocInt16=k;function M(Z){return new Int32Array(C(4*Z),0,Z)}a.mallocInt32=M;function g(Z){return new Float32Array(C(4*Z),0,Z)}a.mallocFloat32=a.mallocFloat=g;function P(Z){return new Float64Array(C(8*Z),0,Z)}a.mallocFloat64=a.mallocDouble=P;function T(Z){return c?new Uint8ClampedArray(C(Z),0,Z):E(Z)}a.mallocUint8Clamped=T;function z(Z){return f?new BigUint64Array(C(8*Z),0,Z):null}a.mallocBigUint64=z;function O(Z){return h?new BigInt64Array(C(8*Z),0,Z):null}a.mallocBigInt64=O;function V(Z){return new DataView(C(Z),0,Z)}a.mallocDataView=V;function G(Z){Z=s.nextPow2(Z);var H=s.log2(Z),N=_[H];return N.length>0?N.pop():new u(Z)}a.mallocBuffer=G,a.clearCache=function(){for(var H=0;H<32;++H)d.UINT8[H].length=0,d.UINT16[H].length=0,d.UINT32[H].length=0,d.INT8[H].length=0,d.INT16[H].length=0,d.INT32[H].length=0,d.FLOAT[H].length=0,d.DOUBLE[H].length=0,d.BIGUINT64[H].length=0,d.BIGINT64[H].length=0,d.UINT8C[H].length=0,v[H].length=0,_[H].length=0}},1755:function(i){"use strict";"use restrict";i.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var l=0;l",j="",re=N.length,oe=j.length,_e=G[0]===C||G[0]===L,Me=0,ke=-oe;Me>-1&&(Me=Z.indexOf(N,Me),!(Me===-1||(ke=Z.indexOf(j,Me+re),ke===-1)||ke<=Me));){for(var me=Me;me=ke)H[me]=null,Z=Z.substr(0,me)+" "+Z.substr(me+1);else if(H[me]!==null){var ie=H[me].indexOf(G[0]);ie===-1?H[me]+=G:_e&&(H[me]=H[me].substr(0,ie+1)+(1+parseInt(H[me][ie+1]))+H[me].substr(ie+2))}var Se=Me+re,Le=Z.substr(Se,ke-Se),Ae=Le.indexOf(N);Ae!==-1?Me=Ae:Me=ke+oe}return H}function M(V,G,Z){for(var H=G.textAlign||"start",N=G.textBaseline||"alphabetic",j=[1<<30,1<<30],re=[0,0],oe=V.length,_e=0;_e/g,` +`):Z=Z.replace(/\/g," ");var re="",oe=[];for(ge=0;ge-1?parseInt(Qe[1+Ut]):0,yt=Ft>-1?parseInt(Et[1+Ft]):0;bt!==yt&&(er=er.replace(st(),"?px "),Ze*=Math.pow(.75,yt-bt),er=er.replace("?px ",st())),ce+=.25*ie*(yt-bt)}if(j.superscripts===!0){var Yt=Qe.indexOf(C),lr=Et.indexOf(C),Tr=Yt>-1?parseInt(Qe[1+Yt]):0,Rr=lr>-1?parseInt(Et[1+lr]):0;Tr!==Rr&&(er=er.replace(st(),"?px "),Ze*=Math.pow(.75,Rr-Tr),er=er.replace("?px ",st())),ce-=.25*ie*(Rr-Tr)}if(j.bolds===!0){var ei=Qe.indexOf(v)>-1,Wr=Et.indexOf(v)>-1;!ei&&Wr&&(Ur?er=er.replace("italic ","italic bold "):er="bold "+er),ei&&!Wr&&(er=er.replace("bold ",""))}if(j.italics===!0){var Ur=Qe.indexOf(b)>-1,dt=Et.indexOf(b)>-1;!Ur&&dt&&(er="italic "+er),Ur&&!dt&&(er=er.replace("italic ",""))}G.font=er}for(Pe=0;Pe0&&(N=H.size),H.lineSpacing&&H.lineSpacing>0&&(j=H.lineSpacing),H.styletags&&H.styletags.breaklines&&(re.breaklines=!!H.styletags.breaklines),H.styletags&&H.styletags.bolds&&(re.bolds=!!H.styletags.bolds),H.styletags&&H.styletags.italics&&(re.italics=!!H.styletags.italics),H.styletags&&H.styletags.subscripts&&(re.subscripts=!!H.styletags.subscripts),H.styletags&&H.styletags.superscripts&&(re.superscripts=!!H.styletags.superscripts)),Z.font=[H.fontStyle,H.fontVariant,H.fontWeight,N+"px",H.font].filter(function(_e){return _e}).join(" "),Z.textAlign="start",Z.textBaseline="alphabetic",Z.direction="ltr";var oe=g(G,Z,V,N,j,re);return z(oe,H,N)}},1538:function(i){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(T){T.permitHostObjects___&&T.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var l=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var u=new l,c=Object.freeze({});if(u.set(c,1),u.get(c)!==1)s=!0;else{i.exports=WeakMap;return}}}var f=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,v=Object.isExtensible,x="weakmap:",b=x+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var p=new ArrayBuffer(25),C=new Uint8Array(p);crypto.getRandomValues(C),b=x+"rand:"+Array.prototype.map.call(C,function(T){return(T%36).toString(36)}).join("")+"___"}function E(T){return!(T.substr(0,x.length)==x&&T.substr(T.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(z){return h(z).filter(E)}}),"getPropertyNames"in Object){var A=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(z){return A(z).filter(E)}})}function L(T){if(T!==Object(T))throw new TypeError("Not an object: "+T);var z=T[b];if(z&&z.key===T)return z;if(v(T)){z={key:T};try{return d(T,b,{value:z,writable:!1,enumerable:!1,configurable:!1}),z}catch(O){return}}}(function(){var T=Object.freeze;d(Object,"freeze",{value:function(G){return L(G),T(G)}});var z=Object.seal;d(Object,"seal",{value:function(G){return L(G),z(G)}});var O=Object.preventExtensions;d(Object,"preventExtensions",{value:function(G){return L(G),O(G)}})})();function _(T){return T.prototype=null,Object.freeze(T)}var k=!1;function M(){!k&&typeof console!="undefined"&&(k=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var g=0,P=function(){this instanceof P||M();var T=[],z=[],O=g++;function V(N,j){var re,oe=L(N);return oe?O in oe?oe[O]:j:(re=T.indexOf(N),re>=0?z[re]:j)}function G(N){var j=L(N);return j?O in j:T.indexOf(N)>=0}function Z(N,j){var re,oe=L(N);return oe?oe[O]=j:(re=T.indexOf(N),re>=0?z[re]=j:(re=T.length,z[re]=j,T[re]=N)),this}function H(N){var j=L(N),re,oe;return j?O in j&&delete j[O]:(re=T.indexOf(N),re<0?!1:(oe=T.length-1,T[re]=void 0,z[re]=z[oe],T[re]=T[oe],T.length=oe,z.length=oe,!0))}return Object.create(P.prototype,{get___:{value:_(V)},has___:{value:_(G)},set___:{value:_(Z)},delete___:{value:_(H)}})};P.prototype=Object.create(Object.prototype,{get:{value:function(z,O){return this.get___(z,O)},writable:!0,configurable:!0},has:{value:function(z){return this.has___(z)},writable:!0,configurable:!0},set:{value:function(z,O){return this.set___(z,O)},writable:!0,configurable:!0},delete:{value:function(z){return this.delete___(z)},writable:!0,configurable:!0}}),typeof l=="function"?function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function T(){this instanceof P||M();var z=new l,O=void 0,V=!1;function G(j,re){return O?z.has(j)?z.get(j):O.get___(j,re):z.get(j,re)}function Z(j){return z.has(j)||(O?O.has___(j):!1)}var H;s?H=function(j,re){return z.set(j,re),z.has(j)||(O||(O=new P),O.set(j,re)),this}:H=function(j,re){if(V)try{z.set(j,re)}catch(oe){O||(O=new P),O.set___(j,re)}else z.set(j,re);return this};function N(j){var re=!!z.delete(j);return O&&O.delete___(j)||re}return Object.create(P.prototype,{get___:{value:_(G)},has___:{value:_(Z)},set___:{value:_(H)},delete___:{value:_(N)},permitHostObjects___:{value:_(function(j){if(j===o)V=!0;else throw new Error("bogus call to permitHostObjects___")})}})}T.prototype=P.prototype,i.exports=T,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),i.exports=P)})()},236:function(i,a,o){var s=o(8284);i.exports=l;function l(){var u={};return function(c){if((typeof c!="object"||c===null)&&typeof c!="function")throw new Error("Weakmap-shim: Key must be object");var f=c.valueOf(u);return f&&f.identity===u?f:s(c,u)}}},8284:function(i){i.exports=a;function a(o,s){var l={identity:s},u=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(c){return c!==s?u.apply(this,arguments):l},writable:!0}),l}},606:function(i,a,o){var s=o(236);i.exports=l;function l(){var u=s();return{get:function(c,f){var h=u(c);return h.hasOwnProperty("value")?h.value:f},set:function(c,f){return u(c).value=f,this},has:function(c){return"value"in u(c)},delete:function(c){return delete u(c).value}}}},3349:function(i){"use strict";function a(){return function(f,h,d,v,x,b){var p=f[0],C=d[0],E=[0],A=C;v|=0;var L=0,_=C;for(L=0;L=0!=M>=0&&x.push(E[0]+.5+.5*(k+M)/(k-M))}v+=_,++E[0]}}}function o(){return a()}var s=o;function l(f){var h={};return function(v,x,b){var p=v.dtype,C=v.order,E=[p,C.join()].join(),A=h[E];return A||(h[E]=A=f([p,C])),A(v.shape.slice(0),v.data,v.stride,v.offset|0,x,b)}}function u(f){return l(s.bind(void 0,f))}function c(f){return u({funcName:f.funcName})}i.exports=c({funcName:"zeroCrossings"})},781:function(i,a,o){"use strict";i.exports=l;var s=o(3349);function l(u,c){var f=[];return c=+c||0,s(u.hi(u.shape[0]-1),f,c),f}},7790:function(){}},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(function(){r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()})(),function(){r.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}}();var n=r(1964);nPe.exports=n})()});var dX=ye((Hpr,aPe)=>{"use strict";aPe.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var uPe=ye((jpr,lPe)=>{"use strict";var oPe=dX();lPe.exports=SPt;var sPe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function SPt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),oPe[e])r=oPe[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],u=l==="rgb",a=l.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(sPe[h]!==void 0)return sPe[h]}return parseFloat(h)}),l===a&&r.push(1),n=u||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(c){return parseFloat(c)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}});var fPe=ye((Wpr,cPe)=>{"use strict";var MPt=uPe();cPe.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=MPt(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=EPt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function EPt(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}});var XE=ye((Xpr,hPe)=>{hPe.exports=CPt;function CPt(e,t,r){return tr?r:e:et?t:e}});var WD=ye((Zpr,dPe)=>{dPe.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var J_=ye((Ypr,vPe)=>{"use strict";var kPt=fPe(),XD=XE(),LPt=WD();vPe.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=LPt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=kPt(t),t[0]/=255,t[1]/=255,t[2]/=255),PPt(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=XD(Math.floor(t[0]*255),0,255),i[1]=XD(Math.floor(t[1]*255),0,255),i[2]=XD(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:XD(Math.floor(t[3]*255),0,255)),i)};function PPt(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var Jy=ye((Kpr,pPe)=>{"use strict";var IPt=J_();function RPt(e){return e?IPt(e):[0,0,0,1]}pPe.exports=RPt});var $y=ye((Jpr,wPe)=>{"use strict";var xPe=Eo(),DPt=cd(),ZD=J_(),YD=tc(),FPt=Eh().defaultLine,gPe=vv().isArrayOrTypedArray,vX=ZD(FPt),bPe=1;function mPe(e,t){var r=e;return r[3]*=t,r}function yPe(e){if(xPe(e))return vX;var t=ZD(e);return t.length?t:vX}function _Pe(e){return xPe(e)?e:bPe}function zPt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=gPe(n),a=gPe(t),o=YD.extractOpts(e),s=[],l,u,c,f,h;if(o.colorscale!==void 0?l=YD.makeColorScaleFuncFromTrace(e):l=yPe,i?u=function(v,x){return v[x]===void 0?vX:ZD(l(v[x]))}:u=yPe,a?c=function(v,x){return v[x]===void 0?bPe:_Pe(v[x])}:c=_Pe,i||a)for(var d=0;d{"use strict";TPe.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var KD=ye((Qpr,APe)=>{"use strict";APe.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var MPe=ye((e0r,SPe)=>{"use strict";var qPt=qa();function gX(e,t,r,n){if(!t||!t.visible)return null;for(var i=qPt.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var f=n.c2l(u);n._lowerLogErrorBound||(n._lowerLogErrorBound=f),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,f)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function BPt(e){for(var t=0;t{"use strict";var UPt=Od().gl_line3d,EPe=Od().gl_scatter3d,VPt=Od().gl_error3d,GPt=Od().gl_mesh3d,HPt=Od().delaunay_triangulate,Qy=Dr(),IPe=Jy(),JD=$y().formatColor,jPt=S3(),mX=pX(),WPt=KD(),XPt=ho(),ZPt=rp().appendArrayPointValue,YPt=MPe();function RPe(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var _X=RPe.prototype;_X.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Qy.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function KPt(e,t,r){var n=(r+1)%3,i=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function kPe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function $Pt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var u=KPt(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=GPt(u),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};_X.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function rIt(e,t){var r=new RPe(e,t.uid);return r.update(t),r}DPe.exports=rIt});var AX=ye((r0r,qPe)=>{"use strict";var e1=pf(),iIt=ec(),TX=Tu(),xX=df().axisHoverFormat,nIt=Qo().hovertemplateAttrs,aIt=Qo().texttemplateAttrs,zPe=Gl(),oIt=pX(),sIt=KD(),Yg=Ao().extendFlat,lIt=mc().overrideAll,OPe=Z1(),uIt=e1.line,N2=e1.marker,cIt=N2.line,fIt=Yg({width:uIt.width,dash:{valType:"enumerated",values:OPe(oIt),dflt:"solid"}},TX("line"));function bX(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var wX=qPe.exports=lIt({x:e1.x,y:e1.y,z:{valType:"data_array"},text:Yg({},e1.text,{}),texttemplate:aIt({},{}),hovertext:Yg({},e1.hovertext,{}),hovertemplate:nIt(),xhoverformat:xX("x"),yhoverformat:xX("y"),zhoverformat:xX("z"),mode:Yg({},e1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:bX("x"),y:bX("y"),z:bX("z")},connectgaps:e1.connectgaps,line:fIt,marker:Yg({symbol:{valType:"enumerated",values:OPe(sIt),dflt:"circle",arrayOk:!0},size:Yg({},N2.size,{dflt:8}),sizeref:N2.sizeref,sizemin:N2.sizemin,sizemode:N2.sizemode,opacity:Yg({},N2.opacity,{arrayOk:!1}),colorbar:N2.colorbar,line:Yg({width:Yg({},cIt.width,{arrayOk:!1})},TX("marker.line"))},TX("marker")),textposition:Yg({},e1.textposition,{dflt:"top center"}),textfont:iIt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:zPe.opacity,hoverinfo:Yg({},zPe.hoverinfo)},"calc","nested");wX.x.editType=wX.y.editType=wX.z.editType="calc+clearAxisTypes"});var UPe=ye((i0r,NPe)=>{"use strict";var BPe=qa(),hIt=Dr(),SX=Ru(),dIt=$p(),vIt=R0(),pIt=D0(),gIt=AX();NPe.exports=function(t,r,n,i){function a(d,v){return hIt.coerce(t,r,gIt,d,v)}var o=mIt(t,r,a,i);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),SX.hasMarkers(r)&&dIt(t,r,n,i,a,{noSelect:!0,noAngle:!0}),SX.hasLines(r)&&(a("connectgaps"),vIt(t,r,n,i,a)),SX.hasText(r)&&(a("texttemplate"),pIt(t,r,i,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,l=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||l);for(var u=["x","y","z"],c=0;c<3;++c){var f="projection."+u[c];a(f+".show")&&(a(f+".opacity"),a(f+".scale"))}var h=BPe.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||l||n,{axis:"z"}),h(t,r,s||l||n,{axis:"y",inherit:"z"}),h(t,r,s||l||n,{axis:"x",inherit:"z"})};function mIt(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),l=BPe.getComponentMethod("calendars","handleTraceDefaults");return l(e,t,["x","y","z"],n),a&&o&&s&&(i=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=i),i}});var GPe=ye((n0r,VPe)=>{"use strict";var yIt=Cm(),_It=F0();VPe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return yIt(n,r),_It(t,r),n}});var jPe=ye((a0r,HPe)=>{HPe.exports=xIt;function xIt(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var n=t,i;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var bIt=jPe();WPe.exports=function(t){return bIt("webgl",t)}});var MX=ye((s0r,YPe)=>{"use strict";var ZPe=Ca(),wIt=function(){};YPe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=wIt);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=ZPe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=ZPe.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),t.container.appendChild(n),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var $Pe=ye((l0r,JPe)=>{"use strict";var U2=Jy(),TIt=Dr(),AIt=["xaxis","yaxis","zaxis"];function KPe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var SIt=KPe.prototype;SIt.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[AIt[n]];if(!i.visible){r.tickEnable[n]=!1,r.labelEnable[n]=!1,r.lineEnable[n]=!1,r.lineTickEnable[n]=!1,r.gridEnable[n]=!1,r.zeroEnable[n]=!1,r.backgroundEnable[n]=!1;continue}r.labels[n]=e._meta?TIt.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=U2(i.title.font.color)),i.title.font.family&&(r.labelFont[n]=i.title.font.family),i.title.font.size&&(r.labelSize[n]=i.title.font.size),i.title.font.weight&&(r.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(r.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(r.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(r.lineEnable[n]=i.showline),"linecolor"in i&&(r.lineColor[n]=U2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=U2(i.gridcolor)),"gridwidth"in i&&(r.gridWidth[n]=i.gridwidth),i.type==="log"?r.zeroEnable[n]=!1:"zeroline"in i&&(r.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(r.zeroLineColor[n]=U2(i.zerolinecolor)),"zerolinewidth"in i&&(r.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?r.lineTickEnable[n]=!0:r.lineTickEnable[n]=!1,"ticklen"in i&&(r.lineTickLength[n]=r._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(r.lineTickColor[n]=U2(i.tickcolor)),"tickwidth"in i&&(r.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(r.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(r.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(r.tickColor[n]=U2(i.tickfont.color)),i.tickfont.family&&(r.tickFont[n]=i.tickfont.family),i.tickfont.size&&(r.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(r.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(r.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(r.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(r.lineTickMirror[n]=!0,r.lineMirror[n]=!0):i.mirror===!0?(r.lineTickMirror[n]=!1,r.lineMirror[n]=!0):(r.lineTickMirror[n]=!1,r.lineMirror[n]=!1):r.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(r.backgroundEnable[n]=!0,r.backgroundColor[n]=U2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function MIt(e,t){var r=new KPe;return r.merge(e,t),r}JPe.exports=MIt});var tIe=ye((u0r,eIe)=>{"use strict";var EIt=Jy(),CIt=["xaxis","yaxis","zaxis"];function QPe(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var kIt=QPe.prototype;kIt.merge=function(e){for(var t=0;t<3;++t){var r=e[CIt[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=EIt(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function LIt(e){var t=new QPe;return t.merge(e),t}eIe.exports=LIt});var nIe=ye((c0r,iIe)=>{"use strict";iIe.exports=FIt;var rIe=ho(),PIt=Dr(),IIt=["xaxis","yaxis","zaxis"],RIt=[0,0,0];function DIt(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a/g," "));i[a]=u,o.tickmode=s}}t.ticks=i;for(var a=0;a<3;++a){RIt[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var c=0;c<2;++c)t.bounds[c][a]=e.glplot.bounds[c][a]}e.contourLevels=DIt(i)}});var fIe=ye((f0r,cIe)=>{"use strict";var sIe=Od().gl_plot3d,zIt=sIe.createCamera,aIe=sIe.createScene,OIt=XPe(),qIt=PL(),eF=qa(),lp=Dr(),QD=lp.preserveDrawingBuffer(),tF=ho(),Kg=vf(),BIt=Jy(),NIt=MX(),UIt=BU(),VIt=$Pe(),GIt=tIe(),HIt=nIe(),jIt=wg().applyAutorangeOptions,ZE,$D,lIe=!1;function uIe(e,t){var r=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=VIt(t,t[this.id]),this.spikeOptions=GIt(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=eF.getComponentMethod("annotations3d","convert"),this.drawAnnotations=eF.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Av=uIe.prototype;Av.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:QD,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!$D&&(ZE=document.createElement("canvas"),$D=OIt({canvas:ZE,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!$D))throw new Error("error creating static canvas/context for image server");t.gl=$D,t.canvas=ZE}return t};var oIe=!0;Av.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=aIe(t)}catch(n){if(e.staticMode||!oIe||QD)r=!1;else{lp.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{QD=t.glOptions.preserveDrawingBuffer=!0,e.glplot=aIe(t)}catch(i){QD=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return oIe=!1,r};Av.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=zIt(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};Av.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return NIt(e);e.traces={},e.make4thDimension();var r=e.graphDiv,n=r.layout,i=function(){var o={};return e.isCameraChanged(n)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=i();o.saveLayout(n),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){lIe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,l=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*l.x,y:s*l.y,z:s*l.z})}a(e)}},qIt?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=i();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Av.render=function(){var e=this,t=e.graphDiv,r,n=e.svgContainer,i=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",l),HIt(e),e.glplot.axes.update(e.axesOptions);for(var u=Object.keys(e.traces),c=null,f=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(p.valueLabel=tF.hoverLabelText(e._mockAxis,e._mockAxis.d2l(f.traceCoordinate[3]),r.valuehoverformat),_.push("value: "+p.valueLabel),f.textLabel&&_.push(f.textLabel),L=_.join("
")):L=f.textLabel;var k={x:f.traceCoordinate[0],y:f.traceCoordinate[1],z:f.traceCoordinate[2],data:x._input,fullData:x,curveNumber:x.index,pointNumber:b};Kg.appendArrayPointValue(k,x,b),r._module.eventData&&(k=x._module.eventData(k,f,x,{},b));var M={points:[k]};if(e.fullSceneLayout.hovermode){var g=[];Kg.loneHover({trace:x,x:(.5+.5*v[0]/v[3])*s,y:(.5-.5*v[1]/v[3])*l,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:L,name:c.name,color:Kg.castHoverOption(x,b,"bgcolor")||c.color,borderColor:Kg.castHoverOption(x,b,"bordercolor"),fontFamily:Kg.castHoverOption(x,b,"font.family"),fontSize:Kg.castHoverOption(x,b,"font.size"),fontColor:Kg.castHoverOption(x,b,"font.color"),nameLength:Kg.castHoverOption(x,b,"namelength"),textAlign:Kg.castHoverOption(x,b,"align"),hovertemplate:lp.castOption(x,b,"hovertemplate"),hovertemplateLabels:lp.extendFlat({},k,p),eventData:[k]},{container:n,gd:t,inOut_bbox:g}),k.bbox=g[0]}f.distance<5&&(f.buttons||lIe)?t.emit("plotly_click",M):t.emit("plotly_hover",M),this.oldEventData=M}else Kg.loneUnhover(n),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Av.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){lp.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var YE=["xaxis","yaxis","zaxis"];function WIt(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=YE[i],o=a.charAt(0),s=n[a],l=t[o],u=t[o+"calendar"],c=t["_"+o+"length"];if(!lp.isArrayOrTypedArray(l))r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],c-1);else for(var f,h=0;h<(c||l.length);h++)if(lp.isArrayOrTypedArray(l[h]))for(var d=0;dx[1][o])x[0][o]=-1,x[1][o]=1;else{var T=x[1][o]-x[0][o];x[0][o]-=T/32,x[1][o]+=T/32}if(C=[x[0][o],x[1][o]],C=jIt(C,l),x[0][o]=C[0],x[1][o]=C[1],l.isReversed()){var z=x[0][o];x[0][o]=x[1][o],x[1][o]=z}}else C=l.range,x[0][o]=l.r2l(C[0]),x[1][o]=l.r2l(C[1]);x[0][o]===x[1][o]&&(x[0][o]-=1,x[1][o]+=1),b[o]=x[1][o]-x[0][o],l.range=[x[0][o],x[1][o]],l.limitRange(),n.glplot.setBounds(o,{min:l.range[0]*d[o],max:l.range[1]*d[o]})}var O,V=c.aspectmode;if(V==="cube")O=[1,1,1];else if(V==="manual"){var G=c.aspectratio;O=[G.x,G.y,G.z]}else if(V==="auto"||V==="data"){var Z=[1,1,1];for(o=0;o<3;++o){l=c[YE[o]],u=l.type;var H=p[u];Z[o]=Math.pow(H.acc,1/H.count)/d[o]}V==="data"||Math.max.apply(null,Z)/Math.min.apply(null,Z)<=4?O=Z:O=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");c.aspectratio.x=f.aspectratio.x=O[0],c.aspectratio.y=f.aspectratio.y=O[1],c.aspectratio.z=f.aspectratio.z=O[2],n.glplot.setAspectratio(c.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=c.aspectmode);var N=c.domain||null,j=t._size||null;if(N&&j){var re=n.container.style;re.position="absolute",re.left=j.l+N.x[0]*j.w+"px",re.top=j.t+(1-N.y[1])*j.h+"px",re.width=j.w*(N.x[1]-N.x[0])+"px",re.height=j.h*(N.y[1]-N.y[0])+"px"}n.glplot.redraw()}};Av.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function ZIt(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function YIt(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Av.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),YIt(e.camera)};Av.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,ZIt(r)),t.glplot.setAspectratio(e.aspectratio);var n=r.projection.type==="orthographic",i=t.camera._ortho;n!==i&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};Av.isCameraChanged=function(e){var t=this,r=t.getCamera(),n=lp.nestedProperty(e,t.id+".camera"),i=n.get();function a(u,c,f,h){var d=["up","center","eye"],v=["x","y","z"];return c[d[f]]&&u[d[f]][v[h]]===c[d[f]][v[h]]}var o=!1;if(i===void 0)o=!0;else{for(var s=0;s<3;s++)for(var l=0;l<3;l++)if(!a(r,i,s,l)){o=!0;break}(!i.projection||r.projection&&r.projection.type!==i.projection.type)&&(o=!0)}return o};Av.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),n=lp.nestedProperty(e,t.id+".aspectratio"),i=n.get();return i===void 0||i.x!==r.x||i.y!==r.y||i.z!==r.z};Av.saveLayout=function(e){var t=this,r=t.fullLayout,n,i,a,o,s,l,u=t.isCameraChanged(e),c=t.isAspectChanged(e),f=u||c;if(f){var h={};if(u&&(n=t.getCamera(),i=lp.nestedProperty(e,t.id+".camera"),a=i.get(),h[t.id+".camera"]=a),c&&(o=t.glplot.getAspectratio(),s=lp.nestedProperty(e,t.id+".aspectratio"),l=s.get(),h[t.id+".aspectratio"]=l),eF.call("_storeDirectGUIEdit",e,r._preGUI,h),u){i.set(n);var d=lp.nestedProperty(r,t.id+".camera");d.set(n)}if(c){s.set(o);var v=lp.nestedProperty(r,t.id+".aspectratio");v.set(o),t.glplot.redraw()}}return f};Av.updateFx=function(e,t){var r=this,n=r.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,l=o.up.y,u=o.up.z;if(u/Math.sqrt(s*s+l*l+u*u)<.999){var c=r.id+".camera.up",f={x:0,y:0,z:1},h={};h[c]=f;var d=i.layout;eF.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=f,lp.nestedProperty(d,c).set(f)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function KIt(e,t,r){for(var n=0,i=r-1;n0)for(var s=255/o,l=0;l<3;++l)e[a+l]=Math.min(s*e[a+l],255)}}Av.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(ZE),t.glplot.redraw();var r=t.glplot.gl,n=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(n*i*4);r.readPixels(0,0,n,i,r.RGBA,r.UNSIGNED_BYTE,a),KIt(a,n,i),JIt(a,n,i);var o=document.createElement("canvas");o.width=n,o.height=i;var s=o.getContext("2d",{willReadFrequently:!0}),l=s.createImageData(n,i);l.data.set(a),s.putImageData(l,0,0);var u;switch(e){case"jpeg":u=o.toDataURL("image/jpeg");break;case"webp":u=o.toDataURL("image/webp");break;default:u=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(ZE),u};Av.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[YE[t]];tF.setConvert(r,e.fullLayout),r.setScale=lp.noop}};Av.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},tF.setConvert(e._mockAxis,r)};cIe.exports=uIe});var dIe=ye((h0r,hIe)=>{"use strict";hIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var CX=ye((d0r,vIe)=>{"use strict";var $It=Ca(),bs=Rd(),EX=Ao().extendFlat,QIt=mc().overrideAll;vIe.exports=QIt({visible:bs.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:$It.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:bs.color,categoryorder:bs.categoryorder,categoryarray:bs.categoryarray,title:{text:bs.title.text,font:bs.title.font},type:EX({},bs.type,{values:["-","linear","log","date","category"]}),autotypenumbers:bs.autotypenumbers,autorange:bs.autorange,autorangeoptions:{minallowed:bs.autorangeoptions.minallowed,maxallowed:bs.autorangeoptions.maxallowed,clipmin:bs.autorangeoptions.clipmin,clipmax:bs.autorangeoptions.clipmax,include:bs.autorangeoptions.include,editType:"plot"},rangemode:bs.rangemode,minallowed:bs.minallowed,maxallowed:bs.maxallowed,range:EX({},bs.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:bs.minor.tickmode,nticks:bs.nticks,tick0:bs.tick0,dtick:bs.dtick,tickvals:bs.tickvals,ticktext:bs.ticktext,ticks:bs.ticks,mirror:bs.mirror,ticklen:bs.ticklen,tickwidth:bs.tickwidth,tickcolor:bs.tickcolor,showticklabels:bs.showticklabels,labelalias:bs.labelalias,tickfont:bs.tickfont,tickangle:bs.tickangle,tickprefix:bs.tickprefix,showtickprefix:bs.showtickprefix,ticksuffix:bs.ticksuffix,showticksuffix:bs.showticksuffix,showexponent:bs.showexponent,exponentformat:bs.exponentformat,minexponent:bs.minexponent,separatethousands:bs.separatethousands,tickformat:bs.tickformat,tickformatstops:bs.tickformatstops,hoverformat:bs.hoverformat,showline:bs.showline,linecolor:bs.linecolor,linewidth:bs.linewidth,showgrid:bs.showgrid,gridcolor:EX({},bs.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:bs.gridwidth,zeroline:bs.zeroline,zerolinecolor:bs.zerolinecolor,zerolinewidth:bs.zerolinewidth},"plot","from-root")});var IX=ye((v0r,pIe)=>{"use strict";var kX=CX(),e8t=kc().attributes,LX=Ao().extendFlat,t8t=Dr().counterRegex;function PX(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}pIe.exports={_arrayAttrRegexps:[t8t("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:LX(PX(0,0,1),{}),center:LX(PX(0,0,0),{}),eye:LX(PX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:e8t({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:kX,yaxis:kX,zaxis:kX,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var _Ie=ye((p0r,yIe)=>{"use strict";var r8t=cd().mix,gIe=Dr(),i8t=pl(),n8t=CX(),a8t=TU(),o8t=t4(),mIe=["xaxis","yaxis","zaxis"],s8t=100*136/187;yIe.exports=function(t,r,n){var i,a;function o(u,c){return gIe.coerce(i,a,n8t,u,c)}for(var s=0;s{"use strict";var l8t=Dr(),u8t=Ca(),c8t=qa(),f8t=C_(),h8t=_Ie(),xIe=IX(),d8t=Id().getSubplotData,bIe="gl3d";wIe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=l8t.validate(t[o],xIe[o]);if(s)return t[o]}}f8t(t,r,n,{type:bIe,attributes:xIe,handleDefaults:v8t,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function v8t(e,t,r,n){for(var i=r("bgcolor"),a=u8t.combine(i,n.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",n.getDfltFromLayout("hovermode"))}});var $_=ye(up=>{"use strict";var p8t=mc().overrideAll,g8t=B1(),m8t=fIe(),y8t=Id().getSubplotData,_8t=Dr(),x8t=Wp(),BA="gl3d",RX="scene";up.name=BA;up.attr=RX;up.idRoot=RX;up.idRegex=up.attrRegex=_8t.counterRegex("scene");up.attributes=dIe();up.layoutAttributes=IX();up.baseLayoutAttrOverrides=p8t({hoverlabel:g8t.hoverlabel},"plot","nested");up.supplyLayoutDefaults=TIe();up.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[BA],a=0;a{"use strict";AIe.exports={plot:FPe(),attributes:AX(),markerSymbols:KD(),supplyDefaults:UPe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:GPe(),moduleType:"trace",name:"scatter3d",basePlotModule:$_(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var EIe=ye((_0r,MIe)=>{"use strict";MIe.exports=SIe()});var KE=ye((x0r,LIe)=>{"use strict";var CIe=Ca(),b8t=Tu(),DX=df().axisHoverFormat,w8t=Qo().hovertemplateAttrs,kIe=Gl(),FX=Ao().extendFlat,T8t=mc().overrideAll;function zX(e){return{valType:"boolean",dflt:!1}}function OX(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:zX("x"),y:zX("y"),z:zX("z")},color:{valType:"color",dflt:CIe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:CIe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var qX=LIe.exports=T8t(FX({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:w8t(),xhoverformat:DX("x"),yhoverformat:DX("y"),zhoverformat:DX("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},b8t("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:OX("x"),y:OX("y"),z:OX("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:FX({},kIe.hoverinfo),showlegend:FX({},kIe.showlegend,{dflt:!1})}),"calc","nested");qX.x.editType=qX.y.editType=qX.z.editType="calc+clearAxisTypes"});var NX=ye((b0r,RIe)=>{"use strict";var A8t=qa(),PIe=Dr(),S8t=Jh(),M8t=KE(),BX=.1;function E8t(e,t){for(var r=[],n=32,i=0;i{"use strict";var DIe=gv();FIe.exports=function(t,r){r.surfacecolor?DIe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):DIe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var VIe=ye((T0r,UIe)=>{"use strict";var L8t=Od().gl_surface3d,NA=Od().ndarray,P8t=Od().ndarray_linear_interpolate.d2,I8t=i8(),R8t=n8(),JE=Dr().isArrayOrTypedArray,D8t=$y().parseColorScale,OIe=Jy(),F8t=tc().extractOpts;function BIe(e,t,r){this.scene=e,this.uid=r,this.surface=t,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var Jg=BIe.prototype;Jg.getXat=function(e,t,r,n){var i=JE(this.data.x)?JE(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?i:n.d2l(i,0,r)};Jg.getYat=function(e,t,r,n){var i=JE(this.data.y)?JE(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?i:n.d2l(i,0,r)};Jg.getZat=function(e,t,r,n){var i=this.data.z[t][e];return i===null&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[t][e]),r===void 0?i:n.d2l(i,0,r)};Jg.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[n,i],e.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],e.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return JE(s)&&s[i]&&s[i][n]!==void 0?e.textLabel=s[i][n]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function z8t(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var UA=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function O8t(e,t){if(e0){r=UA[n];break}return r}function B8t(e,t){if(!(e<1||t<1)){for(var r=UX(e),n=UX(t),i=1,a=0;arF;)n--,n/=q8t(n),n++,n1?i:1};function U8t(e,t,r){var n=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/n,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/n,e}function V8t(e,t,r){return G8t(e,t,U8t,r),e}function G8t(e,t,r,n){for(var i=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(t[n]=!0,i=this.contourStart[n];ih&&(this.minValues[u]=h),this.maxValues[u]{"use strict";GIe.exports={attributes:KE(),supplyDefaults:NX().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:zIe(),plot:VIe(),moduleType:"trace",name:"surface",basePlotModule:$_(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var WIe=ye((S0r,jIe)=>{"use strict";jIe.exports=HIe()});var VA=ye((M0r,ZIe)=>{"use strict";var W8t=Tu(),VX=df().axisHoverFormat,X8t=Qo().hovertemplateAttrs,Q_=KE(),XIe=Gl(),ex=Ao().extendFlat;ZIe.exports=ex({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:X8t({editType:"calc"}),xhoverformat:VX("x"),yhoverformat:VX("y"),zhoverformat:VX("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},W8t("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:Q_.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:ex({},Q_.contours.x.show,{}),color:Q_.contours.x.color,width:Q_.contours.x.width,editType:"calc"},lightposition:{x:ex({},Q_.lightposition.x,{dflt:1e5}),y:ex({},Q_.lightposition.y,{dflt:1e5}),z:ex({},Q_.lightposition.z,{dflt:0}),editType:"calc"},lighting:ex({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},Q_.lighting),hoverinfo:ex({},XIe.hoverinfo,{editType:"calc"}),showlegend:ex({},XIe.showlegend,{dflt:!1})})});var nF=ye((E0r,KIe)=>{"use strict";var Z8t=Tu(),iF=df().axisHoverFormat,Y8t=Qo().hovertemplateAttrs,$E=VA(),YIe=Gl(),GX=Ao().extendFlat,K8t=mc().overrideAll;function HX(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function jX(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var GA=KIe.exports=K8t(GX({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:HX("x"),y:HX("y"),z:HX("z")},caps:{x:jX("x"),y:jX("y"),z:jX("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:Y8t(),xhoverformat:iF("x"),yhoverformat:iF("y"),zhoverformat:iF("z"),valuehoverformat:iF("value",1),showlegend:GX({},YIe.showlegend,{dflt:!1})},Z8t("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:$E.opacity,lightposition:$E.lightposition,lighting:$E.lighting,flatshading:$E.flatshading,contour:$E.contour,hoverinfo:GX({},YIe.hoverinfo)}),"calc","nested");GA.flatshading.dflt=!0;GA.lighting.facenormalsepsilon.dflt=0;GA.x.editType=GA.y.editType=GA.z.editType=GA.value.editType="calc+clearAxisTypes"});var WX=ye((C0r,$Ie)=>{"use strict";var J8t=Dr(),$8t=qa(),Q8t=nF(),eRt=Jh();function tRt(e,t,r,n){function i(a,o){return J8t.coerce(e,t,Q8t,a,o)}JIe(e,t,r,n,i)}function JIe(e,t,r,n,i){var a=i("isomin"),o=i("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=i("x"),l=i("y"),u=i("z"),c=i("value");if(!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length){t.visible=!1;return}var f=$8t.getComponentMethod("calendars","handleTraceDefaults");f(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(x){i(x+"hoverformat");var b="caps."+x,p=i(b+".show");p&&i(b+".fill");var C="slices."+x,E=i(C+".show");E&&(i(C+".fill"),i(C+".locations"))});var h=i("spaceframe.show");h&&i("spaceframe.fill");var d=i("surface.show");d&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var v=i("contour.show");v&&(i("contour.color"),i("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(x){i(x)}),eRt(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}$Ie.exports={supplyDefaults:tRt,supplyIsoDefaults:JIe}});var aF=ye((k0r,e8e)=>{"use strict";var ZX=Dr(),rRt=gv();function iRt(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=Hm(t.u,t._len),t._v=Hm(t.v,t._len),t._w=Hm(t.w,t._len),t._x=Hm(t.x,t._len),t._y=Hm(t.y,t._len),t._z=Hm(t.z,t._len);var r=QIe(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var n=0,i,a,o;t.starts&&(i=Hm(t.starts.x||[]),a=Hm(t.starts.y||[]),o=Hm(t.starts.z||[]),n=Math.min(i.length,a.length,o.length)),t._startsX=i||[],t._startsY=a||[],t._startsZ=o||[];var s=0,l=1/0,u;for(u=0;u1&&(E=t[i-1],L=r[i-1],k=n[i-1]),a=0;aE?"-":"+")+"x"),v=v.replace("y",(A>L?"-":"+")+"y"),v=v.replace("z",(_>k?"-":"+")+"z");var T=function(){i=0,M=[],g=[],P=[]};(!i||i{"use strict";var nRt=gv(),aRt=aF().processGrid,oF=aF().filter;t8e.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=oF(r.x,r._len),r._y=oF(r.y,r._len),r._z=oF(r.z,r._len),r._value=oF(r.value,r._len);var n=aRt(r);r._gridFill=n.fill,r._Xs=n.Xs,r._Ys=n.Ys,r._Zs=n.Zs,r._len=n.len;for(var i=1/0,a=-1/0,o=0;o{"use strict";r8e.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var oRt=Od().gl_mesh3d,sRt=$y().parseColorScale,lRt=Dr().isArrayOrTypedArray,uRt=Jy(),cRt=tc().extractOpts,i8e=HA(),QE=function(e,t){for(var r=t.length-1;r>0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n-1}function oe(er,Ut){return er===null?Ut:er}function _e(er,Ut,Ft){T();var bt=[Ut],yt=[Ft];if(H>=1)bt=[Ut],yt=[Ft];else if(H>0){var Yt=j(Ut,Ft);bt=Yt.xyzv,yt=Yt.abc}for(var lr=0;lr-1?Ft[Rr]:P(ei,Wr,Ur);Ge>-1?Tr[Rr]=Ge:Tr[Rr]=O(ei,Wr,Ur,oe(er,dt))}V(Tr[0],Tr[1],Tr[2])}}function Me(er,Ut,Ft){var bt=function(yt,Yt,lr){_e(er,[Ut[yt],Ut[Yt],Ut[lr]],[Ft[yt],Ft[Yt],Ft[lr]])};bt(0,1,2),bt(2,3,0)}function ke(er,Ut,Ft){var bt=function(yt,Yt,lr){_e(er,[Ut[yt],Ut[Yt],Ut[lr]],[Ft[yt],Ft[Yt],Ft[lr]])};bt(0,1,2),bt(3,0,1),bt(2,3,0),bt(1,2,3)}function me(er,Ut,Ft,bt){var yt=er[3];ytbt&&(yt=bt);for(var Yt=(er[3]-yt)/(er[3]-Ut[3]+1e-9),lr=[],Tr=0;Tr<4;Tr++)lr[Tr]=(1-Yt)*er[Tr]+Yt*Ut[Tr];return lr}function ie(er,Ut,Ft){return er>=Ut&&er<=Ft}function Se(er){var Ut=.001*(L-A);return er>=A-Ut&&er<=L+Ut}function Le(er){for(var Ut=[],Ft=0;Ft<4;Ft++){var bt=er[Ft];Ut.push([e._x[bt],e._y[bt],e._z[bt],e._value[bt]])}return Ut}var Ae=3;function De(er,Ut,Ft,bt,yt,Yt){Yt||(Yt=1),Ft=[-1,-1,-1];var lr=!1,Tr=[ie(Ut[0][3],bt,yt),ie(Ut[1][3],bt,yt),ie(Ut[2][3],bt,yt)];if(!Tr[0]&&!Tr[1]&&!Tr[2])return!1;var Rr=function(Wr,Ur,dt){return Se(Ur[0][3])&&Se(Ur[1][3])&&Se(Ur[2][3])?(_e(Wr,Ur,dt),!0):YtTr?[C,Yt]:[Yt,E];Nt(Ut,Rr[0],Rr[1])}}var ei=[[Math.min(A,E),Math.max(A,E)],[Math.min(C,L),Math.max(C,L)]];["x","y","z"].forEach(function(Wr){for(var Ur=[],dt=0;dt0&&(Ie.push(vt.id),Wr==="x"?xe.push([vt.distRatio,0,0]):Wr==="y"?xe.push([0,vt.distRatio,0]):xe.push([0,0,vt.distRatio]))}else Wr==="x"?wt=ur(1,d-1):Wr==="y"?wt=ur(1,v-1):wt=ur(1,x-1);Ie.length>0&&(Wr==="x"?Ur[Ge]=$t(er,Ie,Je,je,xe,Ur[Ge]):Wr==="y"?Ur[Ge]=sr(er,Ie,Je,je,xe,Ur[Ge]):Ur[Ge]=wr(er,Ie,Je,je,xe,Ur[Ge]),Ge++),wt.length>0&&(Wr==="x"?Ur[Ge]=pt(er,wt,Je,je,Ur[Ge]):Wr==="y"?Ur[Ge]=Wt(er,wt,Je,je,Ur[Ge]):Ur[Ge]=st(er,wt,Je,je,Ur[Ge]),Ge++)}var nr=e.caps[Wr];nr.show&&nr.fill&&(N(nr.fill),Wr==="x"?Ur[Ge]=pt(er,[0,d-1],Je,je,Ur[Ge]):Wr==="y"?Ur[Ge]=Wt(er,[0,v-1],Je,je,Ur[Ge]):Ur[Ge]=st(er,[0,x-1],Je,je,Ur[Ge]),Ge++)}}),s===0&&z(),e._meshX=_,e._meshY=k,e._meshZ=M,e._meshIntensity=g,e._Xs=c,e._Ys=f,e._Zs=h}return Et(),e}function hRt(e,t){var r=e.glplot.gl,n=oRt({gl:r}),i=new n8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}o8e.exports={findNearestOnAxis:QE,generateIsoMeshes:a8e,createIsosurfaceTrace:hRt}});var l8e=ye((R0r,s8e)=>{"use strict";s8e.exports={attributes:nF(),supplyDefaults:WX().supplyDefaults,calc:YX(),colorbar:{min:"cmin",max:"cmax"},plot:sF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:$_(),categories:["gl3d","showLegend"],meta:{}}});var c8e=ye((D0r,u8e)=>{"use strict";u8e.exports=l8e()});var $X=ye((F0r,h8e)=>{"use strict";var dRt=Tu(),Dh=nF(),vRt=KE(),f8e=Gl(),JX=Ao().extendFlat,pRt=mc().overrideAll,lF=h8e.exports=pRt(JX({x:Dh.x,y:Dh.y,z:Dh.z,value:Dh.value,isomin:Dh.isomin,isomax:Dh.isomax,surface:Dh.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Dh.slices,caps:Dh.caps,text:Dh.text,hovertext:Dh.hovertext,xhoverformat:Dh.xhoverformat,yhoverformat:Dh.yhoverformat,zhoverformat:Dh.zhoverformat,valuehoverformat:Dh.valuehoverformat,hovertemplate:Dh.hovertemplate},dRt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Dh.colorbar,opacity:Dh.opacity,opacityscale:vRt.opacityscale,lightposition:Dh.lightposition,lighting:Dh.lighting,flatshading:Dh.flatshading,contour:Dh.contour,hoverinfo:JX({},f8e.hoverinfo),showlegend:JX({},f8e.showlegend,{dflt:!1})}),"calc","nested");lF.x.editType=lF.y.editType=lF.z.editType=lF.value.editType="calc+clearAxisTypes"});var v8e=ye((z0r,d8e)=>{"use strict";var gRt=Dr(),mRt=$X(),yRt=WX().supplyIsoDefaults,_Rt=NX().opacityscaleDefaults;d8e.exports=function(t,r,n,i){function a(o,s){return gRt.coerce(t,r,mRt,o,s)}yRt(t,r,n,i,a),_Rt(t,r,i,a)}});var y8e=ye((O0r,m8e)=>{"use strict";var xRt=Od().gl_mesh3d,bRt=$y().parseColorScale,wRt=Dr().isArrayOrTypedArray,TRt=Jy(),ARt=tc().extractOpts,p8e=HA(),QX=sF().findNearestOnAxis,SRt=sF().generateIsoMeshes;function g8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var eZ=g8e.prototype;eZ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=QX(r,this.data._Xs).id,l=QX(n,this.data._Ys).id,u=QX(i,this.data._Zs).id,c=e.index=u+o*l+o*a*s;e.traceCoordinate=[this.data._meshX[c],this.data._meshY[c],this.data._meshZ[c],this.data._value[c]];var f=this.data.hovertext||this.data.text;return wRt(f)&&f[c]!==void 0?e.textLabel=f[c]:f&&(e.textLabel=f),!0}};eZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=SRt(e);function n(l,u,c,f){return u.map(function(h){return l.d2l(h,0,f)*c})}var i=p8e(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=p8e(e._meshI,e._meshJ,e._meshK),o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:TRt(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=ARt(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=bRt(e),this.mesh.update(o)};eZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function MRt(e,t){var r=e.glplot.gl,n=xRt({gl:r}),i=new g8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}m8e.exports=MRt});var x8e=ye((q0r,_8e)=>{"use strict";_8e.exports={attributes:$X(),supplyDefaults:v8e(),calc:YX(),colorbar:{min:"cmin",max:"cmax"},plot:y8e(),moduleType:"trace",name:"volume",basePlotModule:$_(),categories:["gl3d","showLegend"],meta:{}}});var w8e=ye((B0r,b8e)=>{"use strict";b8e.exports=x8e()});var S8e=ye((N0r,A8e)=>{"use strict";var ERt=qa(),T8e=Dr(),CRt=Jh(),kRt=VA();A8e.exports=function(t,r,n,i){function a(c,f){return T8e.coerce(t,r,kRt,c,f)}function o(c){var f=c.map(function(h){var d=a(h);return d&&T8e.isArrayOrTypedArray(d)?d:null});return f.every(function(h){return h&&h.length===f[0].length})&&f}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var l=ERt.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y","z"],i),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(c){a(c)});var u=a("contour.show");u&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),CRt(t,r,i,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",n)),a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var E8e=ye((U0r,M8e)=>{"use strict";var LRt=gv();M8e.exports=function(t,r){r.intensity&&LRt(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var I8e=ye((V0r,P8e)=>{"use strict";var PRt=Od().gl_mesh3d,IRt=Od().delaunay_triangulate,RRt=Od().alpha_shape,DRt=Od().convex_hull,FRt=$y().parseColorScale,zRt=Dr().isArrayOrTypedArray,nZ=Jy(),ORt=tc().extractOpts,C8e=HA();function L8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var aZ=L8e.prototype;aZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return zRt(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function k8e(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}aZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=C8e(tZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),tZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),tZ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!iZ(e.i,n)||!iZ(e.j,n)||!iZ(e.k,n))return;a=C8e(rZ(e.i),rZ(e.j),rZ(e.k))}else e.alphahull===0?a=DRt(i):e.alphahull>0?a=RRt(e.alphahull,i):a=qRt(e.delaunayaxis,i);var o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:nZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=ORt(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=FRt(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=k8e(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=k8e(e.facecolor)):(this.color=e.color,o.meshColor=nZ(e.color));this.mesh.update(o)};aZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function BRt(e,t){var r=e.glplot.gl,n=PRt({gl:r}),i=new L8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}P8e.exports=BRt});var D8e=ye((G0r,R8e)=>{"use strict";R8e.exports={attributes:VA(),supplyDefaults:S8e(),calc:E8e(),colorbar:{min:"cmin",max:"cmax"},plot:I8e(),moduleType:"trace",name:"mesh3d",basePlotModule:$_(),categories:["gl3d","showLegend"],meta:{}}});var z8e=ye((H0r,F8e)=>{"use strict";F8e.exports=D8e()});var sZ=ye((j0r,q8e)=>{"use strict";var NRt=Tu(),jA=df().axisHoverFormat,URt=Qo().hovertemplateAttrs,VRt=VA(),O8e=Gl(),oZ=Ao().extendFlat,uF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:URt({editType:"calc"},{keys:["norm"]}),uhoverformat:jA("u",1),vhoverformat:jA("v",1),whoverformat:jA("w",1),xhoverformat:jA("x"),yhoverformat:jA("y"),zhoverformat:jA("z"),showlegend:oZ({},O8e.showlegend,{dflt:!1})};oZ(uF,NRt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var GRt=["opacity","lightposition","lighting"];GRt.forEach(function(e){uF[e]=VRt[e]});uF.hoverinfo=oZ({},O8e.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});q8e.exports=uF});var N8e=ye((W0r,B8e)=>{"use strict";var HRt=Dr(),jRt=Jh(),WRt=sZ();B8e.exports=function(t,r,n,i){function a(d,v){return HRt.coerce(t,r,WRt,d,v)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),jRt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var V8e=ye((X0r,U8e)=>{"use strict";var XRt=gv();U8e.exports=function(t,r){for(var n=r.u,i=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,n.length,i.length,a.length),s=-1/0,l=1/0,u=0;u{"use strict";var ZRt=Od().gl_cone3d,YRt=Od().gl_cone3d.createConeMesh,KRt=Dr().simpleMap,JRt=$y().parseColorScale,$Rt=tc().extractOpts,QRt=Dr().isArrayOrTypedArray,G8e=HA();function H8e(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var lZ=H8e.prototype;lZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return QRt(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var eDt={xaxis:0,yaxis:1,zaxis:2},tDt={tip:1,tail:0,cm:.25,center:.5},rDt={tip:1,tail:1,cm:.75,center:.5};function j8e(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(c,f){var h=r[f],d=n[eDt[f]];return KRt(c,function(v){return h.d2l(v)*d})}i.vectors=G8e(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=G8e(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=$Rt(t);i.colormap=JRt(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=tDt[t.anchor];var s=t.sizemode;s==="scaled"?i.coneSize=t.sizeref||.5:s==="absolute"?i.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(i.coneSize=t.sizeref),i.coneSizemode=s;var l=ZRt(i),u=t.lightposition;return l.lightPosition=[u.x,u.y,u.z],l.ambient=t.lighting.ambient,l.diffuse=t.lighting.diffuse,l.specular=t.lighting.specular,l.roughness=t.lighting.roughness,l.fresnel=t.lighting.fresnel,l.opacity=t.opacity,t._pad=rDt[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}lZ.update=function(e){this.data=e;var t=j8e(this.scene,e);this.mesh.update(t)};lZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function iDt(e,t){var r=e.glplot.gl,n=j8e(e,t),i=YRt(r,n),a=new H8e(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}W8e.exports=iDt});var Y8e=ye((Y0r,Z8e)=>{"use strict";Z8e.exports={moduleType:"trace",name:"cone",basePlotModule:$_(),categories:["gl3d","showLegend"],attributes:sZ(),supplyDefaults:N8e(),colorbar:{min:"cmin",max:"cmax"},calc:V8e(),plot:X8e(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var J8e=ye((K0r,K8e)=>{"use strict";K8e.exports=Y8e()});var cZ=ye((J0r,Q8e)=>{"use strict";var nDt=Tu(),WA=df().axisHoverFormat,aDt=Qo().hovertemplateAttrs,oDt=VA(),$8e=Gl(),uZ=Ao().extendFlat,cF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:aDt({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:WA("u",1),vhoverformat:WA("v",1),whoverformat:WA("w",1),xhoverformat:WA("x"),yhoverformat:WA("y"),zhoverformat:WA("z"),showlegend:uZ({},$8e.showlegend,{dflt:!1})};uZ(cF,nDt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var sDt=["opacity","lightposition","lighting"];sDt.forEach(function(e){cF[e]=oDt[e]});cF.hoverinfo=uZ({},$8e.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});Q8e.exports=cF});var tRe=ye(($0r,eRe)=>{"use strict";var lDt=Dr(),uDt=Jh(),cDt=cZ();eRe.exports=function(t,r,n,i){function a(h,d){return lDt.coerce(t,r,cDt,h,d)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),uDt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var uRe=ye((Q0r,lRe)=>{"use strict";var nRe=Od().gl_streamtube3d,fDt=nRe.createTubeMesh,hDt=Dr(),dDt=$y().parseColorScale,vDt=tc().extractOpts,rRe=HA(),aRe={xaxis:0,yaxis:1,zaxis:2};function oRe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var hZ=oRe.prototype;hZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var l=t[s],u=r[aRe[s]];return l.l2c(o)/u}if(e.object===this.mesh){var i=e.data.position,a=e.data.velocity;return e.traceCoordinate=[n(i[0],"xaxis"),n(i[1],"yaxis"),n(i[2],"zaxis"),n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function iRe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function fZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function sRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(z,O){var V=r[O],G=n[aRe[O]];return hDt.simpleMap(z,function(Z){return V.d2l(Z)*G})}if(a.vectors=rRe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),i),!i)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),l=o(t._Ys,"yaxis"),u=o(t._Zs,"zaxis");a.meshgrid=[s,l,u],a.gridFill=t._gridFill;var c=t._slen;if(c)a.startingPositions=rRe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var f=l[0],h=iRe(s),d=iRe(u),v=new Array(h.length*d.length),x=0,b=0;b{"use strict";cRe.exports={moduleType:"trace",name:"streamtube",basePlotModule:$_(),categories:["gl3d","showLegend"],attributes:cZ(),supplyDefaults:tRe(),colorbar:{min:"cmin",max:"cmax"},calc:aF().calc,plot:uRe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var dRe=ye((tgr,hRe)=>{"use strict";hRe.exports=fRe()});var G2=ye((igr,gRe)=>{"use strict";var gDt=Qo().hovertemplateAttrs,mDt=Qo().texttemplateAttrs,yDt=Eg(),jm=pf(),_Dt=Gl(),vRe=Tu(),xDt=Pd().dash,V2=Ao().extendFlat,bDt=mc().overrideAll,eg=jm.marker,pRe=jm.line,wDt=eg.line,rgr=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");gRe.exports=bDt({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:V2({},jm.mode,{dflt:"markers"}),text:V2({},jm.text,{}),texttemplate:mDt({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:V2({},jm.hovertext,{}),textfont:jm.textfont,textposition:jm.textposition,line:{color:pRe.color,width:pRe.width,dash:xDt},connectgaps:jm.connectgaps,marker:V2({symbol:eg.symbol,opacity:eg.opacity,angle:eg.angle,angleref:V2({},eg.angleref,{values:["previous","up","north"]}),standoff:eg.standoff,size:eg.size,sizeref:eg.sizeref,sizemin:eg.sizemin,sizemode:eg.sizemode,colorbar:eg.colorbar,line:V2({width:wDt.width},vRe("marker.line")),gradient:eg.gradient},vRe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:yDt(),selected:jm.selected,unselected:jm.unselected,hoverinfo:V2({},_Dt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:gDt()},"calc","nested")});var yRe=ye((ngr,mRe)=>{"use strict";var fF=Dr(),dZ=Ru(),TDt=$p(),ADt=R0(),SDt=D0(),MDt=Ig(),EDt=G2(),CDt=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");mRe.exports=function(t,r,n,i){function a(d,v){return fF.coerce(t,r,EDt,d,v)}var o=a("locations"),s;if(o&&o.length){var l=a("geojson"),u;(typeof l=="string"&&l!==""||fF.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="country names"&&fF.warn(CDt),c==="geojson-id"&&a("featureidkey"),s=o.length}else{var f=a("lon")||[],h=a("lat")||[];s=Math.min(f.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("mode"),dZ.hasMarkers(r)&&TDt(t,r,n,i,a,{gradient:!0}),dZ.hasLines(r)&&(ADt(t,r,n,i,a),a("connectgaps")),dZ.hasText(r)&&(a("texttemplate"),SDt(t,r,i,a)),a("fill"),r.fill!=="none"&&MDt(t,r,n,a),fF.coerceSelectionMarkerOpacity(r,a)}});var bRe=ye((agr,xRe)=>{"use strict";var _Re=ho();xRe.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=_Re.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=_Re.tickText(o,o.c2l(s[1]),!0).text,i}});var hF=ye((ogr,SRe)=>{"use strict";var vZ=Eo(),wRe=hs().BADNUM,kDt=F0(),LDt=Cm(),PDt=z0(),IDt=Dr().isArrayOrTypedArray,TRe=Dr()._;function ARe(e){return e&&typeof e=="string"}SRe.exports=function(t,r){var n=IDt(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return ARe(h)||vZ(h)}:o=ARe;for(var s=0;s{"use strict";Sv.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Sv.axesNames=["lonaxis","lataxis"];Sv.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Sv.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Sv.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Sv.clipPad=.001;Sv.precision=.1;Sv.landColor="#F0DC82";Sv.waterColor="#3399FF";Sv.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Sv.sphereSVG={type:"Sphere"};Sv.fillLayers={ocean:1,land:1,lakes:1};Sv.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Sv.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Sv.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Sv.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var pZ=ye((dF,MRe)=>{(function(e,t){typeof dF=="object"&&typeof MRe!="undefined"?t(dF):(e=e||self,t(e.topojson=e.topojson||{}))})(dF,function(e){"use strict";function t(E){return E}function r(E){if(E==null)return t;var A,L,_=E.scale[0],k=E.scale[1],M=E.translate[0],g=E.translate[1];return function(P,T){T||(A=L=0);var z=2,O=P.length,V=new Array(O);for(V[0]=(A+=P[0])*_+M,V[1]=(L+=P[1])*k+g;zM&&(M=z[0]),z[1]g&&(g=z[1])}function T(z){switch(z.type){case"GeometryCollection":z.geometries.forEach(T);break;case"Point":P(z.coordinates);break;case"MultiPoint":z.coordinates.forEach(P);break}}E.arcs.forEach(function(z){for(var O=-1,V=z.length,G;++OM&&(M=G[0]),G[1]g&&(g=G[1])});for(L in E.objects)T(E.objects[L]);return[_,k,M,g]}function i(E,A){for(var L,_=E.length,k=_-A;k<--_;)L=E[k],E[k++]=E[_],E[_]=L}function a(E,A){return typeof A=="string"&&(A=E.objects[A]),A.type==="GeometryCollection"?{type:"FeatureCollection",features:A.geometries.map(function(L){return o(E,L)})}:o(E,A)}function o(E,A){var L=A.id,_=A.bbox,k=A.properties==null?{}:A.properties,M=s(E,A);return L==null&&_==null?{type:"Feature",properties:k,geometry:M}:_==null?{type:"Feature",id:L,properties:k,geometry:M}:{type:"Feature",id:L,bbox:_,properties:k,geometry:M}}function s(E,A){var L=r(E.transform),_=E.arcs;function k(O,V){V.length&&V.pop();for(var G=_[O<0?~O:O],Z=0,H=G.length;Z1)_=f(E,A,L);else for(k=0,_=new Array(M=E.arcs.length);k1)for(var V=1,G=P(z[0]),Z,H;VG&&(H=z[0],z[0]=z[V],z[V]=H,G=Z);return z}).filter(function(T){return T.length>0})}}function x(E,A){for(var L=0,_=E.length;L<_;){var k=L+_>>>1;E[k]=2))throw new Error("n must be \u22652");T=E.bbox||n(E);var L=T[0],_=T[1],k=T[2],M=T[3],g;A={scale:[k-L?(k-L)/(g-1):1,M-_?(M-_)/(g-1):1],translate:[L,_]}}else T=E.bbox;var P=p(A),T,z,O=E.objects,V={};function G(N){return P(N)}function Z(N){var j;switch(N.type){case"GeometryCollection":j={type:"GeometryCollection",geometries:N.geometries.map(Z)};break;case"Point":j={type:"Point",coordinates:G(N.coordinates)};break;case"MultiPoint":j={type:"MultiPoint",coordinates:N.coordinates.map(G)};break;default:return N}return N.id!=null&&(j.id=N.id),N.bbox!=null&&(j.bbox=N.bbox),N.properties!=null&&(j.properties=N.properties),j}function H(N){var j=0,re=1,oe=N.length,_e,Me=new Array(oe);for(Me[0]=P(N[0],0);++j{"use strict";var gZ=ERe.exports={},RDt=eC().locationmodeToLayer,DDt=pZ().feature;gZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};gZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};gZ.getTopojsonFeatures=function(e,t){var r=RDt[e.locationmode],n=t.objects[r];return DDt(t,n).features}});var tx=ye(tC=>{"use strict";var FDt=hs().BADNUM;tC.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,n=[],i=[],a=0;a0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n};tC.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};tC.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{CRe.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var mF=ye(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var zp=63710088e-1,yZ={centimeters:zp*100,centimetres:zp*100,degrees:360/(2*Math.PI),feet:zp*3.28084,inches:zp*39.37,kilometers:zp/1e3,kilometres:zp/1e3,meters:zp,metres:zp,miles:zp/1609.344,millimeters:zp*1e3,millimetres:zp*1e3,nauticalmiles:zp/1852,radians:1,yards:zp*1.0936},mZ={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function rx(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function zDt(e,t,r={}){switch(e){case"Point":return _Z(t).geometry;case"LineString":return bZ(t).geometry;case"Polygon":return xZ(t).geometry;case"MultiPoint":return PRe(t).geometry;case"MultiLineString":return LRe(t).geometry;case"MultiPolygon":return IRe(t).geometry;default:throw new Error(e+" is invalid")}}function _Z(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!pF(e[0])||!pF(e[1]))throw new Error("coordinates must contain numbers");return rx({type:"Point",coordinates:e},t,r)}function ODt(e,t,r={}){return gF(e.map(n=>_Z(n,t)),r)}function xZ(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;axZ(n,t)),r)}function bZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return rx({type:"LineString",coordinates:e},t,r)}function BDt(e,t,r={}){return gF(e.map(n=>bZ(n,t)),r)}function gF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function LRe(e,t,r={}){return rx({type:"MultiLineString",coordinates:e},t,r)}function PRe(e,t,r={}){return rx({type:"MultiPoint",coordinates:e},t,r)}function IRe(e,t,r={}){return rx({type:"MultiPolygon",coordinates:e},t,r)}function NDt(e,t,r={}){return rx({type:"GeometryCollection",geometries:e},t,r)}function UDt(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function RRe(e,t="kilometers"){let r=yZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function wZ(e,t="kilometers"){let r=yZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function VDt(e,t){return DRe(wZ(e,t))}function GDt(e){let t=e%360;return t<0&&(t+=360),t}function HDt(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function DRe(e){return e%(2*Math.PI)*180/Math.PI}function jDt(e){return e%360*Math.PI/180}function WDt(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return RRe(wZ(e,t),r)}function XDt(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=mZ[t];if(!n)throw new Error("invalid original units");let i=mZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function pF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function ZDt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function YDt(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!pF(t))throw new Error("bbox must only contain numbers")})}function KDt(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}ic.areaFactors=mZ;ic.azimuthToBearing=HDt;ic.bearingToAzimuth=GDt;ic.convertArea=XDt;ic.convertLength=WDt;ic.degreesToRadians=jDt;ic.earthRadius=zp;ic.factors=yZ;ic.feature=rx;ic.featureCollection=gF;ic.geometry=zDt;ic.geometryCollection=NDt;ic.isNumber=pF;ic.isObject=ZDt;ic.lengthToDegrees=VDt;ic.lengthToRadians=wZ;ic.lineString=bZ;ic.lineStrings=BDt;ic.multiLineString=LRe;ic.multiPoint=PRe;ic.multiPolygon=IRe;ic.point=_Z;ic.points=ODt;ic.polygon=xZ;ic.polygons=qDt;ic.radiansToDegrees=DRe;ic.radiansToLength=RRe;ic.round=UDt;ic.validateBBox=YDt;ic.validateId=KDt});var _F=ye(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});var jv=mF();function rC(e,t,r){if(e!==null)for(var n,i,a,o,s,l,u,c=0,f=0,h,d=e.type,v=d==="FeatureCollection",x=d==="Feature",b=v?e.features.length:1,p=0;pl||v>u||x>c){s=f,l=n,u=v,c=x,a=0;return}var b=jv.lineString.call(void 0,[s,f],r.properties);if(t(b,n,i,x,a)===!1)return!1;a++,s=f})===!1)return!1}}})}function iFt(e,t,r){var n=r,i=!1;return ORe(e,function(a,o,s,l,u){i===!1&&r===void 0?n=a:n=t(n,a,o,s,l,u),i=!0}),n}function qRe(e,t){if(!e)throw new Error("geojson is required");yF(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(xF,"__esModule",{value:!0});var BRe=mF(),sFt=_F();function VRe(e){return sFt.geomReduce.call(void 0,e,(t,r)=>t+lFt(r),0)}function lFt(e){let t=0,r;switch(e.type){case"Polygon":return NRe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(URe(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*AZ,l=a[1]*AZ,u=o[0]*AZ;r+=(u-s)*Math.sin(l),n++}return r*uFt}var cFt=VRe;xF.area=VRe;xF.default=cFt});var jRe=ye(bF=>{"use strict";Object.defineProperty(bF,"__esModule",{value:!0});var fFt=mF(),hFt=_F();function HRe(e,t={}){let r=0,n=0,i=0;return hFt.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),fFt.point.call(void 0,[r/i,n/i],t.properties)}var dFt=HRe;bF.centroid=HRe;bF.default=dFt});var XRe=ye(wF=>{"use strict";Object.defineProperty(wF,"__esModule",{value:!0});var vFt=_F();function WRe(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return vFt.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]{"use strict";var gFt=Oa(),KRe=kRe(),{area:mFt}=GRe(),{centroid:yFt}=jRe(),{bbox:_Ft}=XRe(),ZRe=VS(),XA=G1(),xFt=gy(),bFt=CS(),TF=MM(),YRe=Object.keys(KRe),wFt={"ISO-3":ZRe,"USA-states":ZRe,"country names":TFt};function TFt(e){for(var t=0;t0&&c[f+1][0]<0)return f;return null}switch(n==="RUS"||n==="FJI"?a=function(c){var f;if(u(c)===null)f=c;else for(f=new Array(c.length),l=0;lf?h[d++]=[c[l][0]+360,c[l][1]]:l===f?(h[d++]=c[l],h[d++]=[c[l][0],-90]):h[d++]=c[l];var v=TF.tester(h);v.pts.pop(),i.push(v)}:a=function(c){i.push(TF.tester(c))},t.type){case"MultiPolygon":for(o=0;o0?v.properties.ct=EFt(v):v.properties.ct=[NaN,NaN],h.fIn=c,h.fOut=v,i.push(v)}else XA.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[f]}switch(r.type){case"FeatureCollection":var l=r.features;for(a=0;ai&&(i=s,r=o)}else r=t;return yFt(r).geometry.coordinates}function CFt(e){var t=window.PlotlyGeoAssets||{},r=[];function n(l){return new Promise(function(u,c){gFt.json(l,function(f,h){if(f){delete t[l];var d=f.status===404?'GeoJSON at URL "'+l+'" does not exist.':"Unexpected error while fetching from "+l;return c(new Error(d))}return t[l]=h,u(h)})})}function i(l){return new Promise(function(u,c){var f=0,h=setInterval(function(){if(t[l]&&t[l]!=="pending")return clearInterval(h),u(t[l]);if(f>100)return clearInterval(h),c("Unexpected error while fetching from "+l);f++},50)})}for(var a=0;a{"use strict";var LFt=Oa(),PFt=So(),QRe=Ca(),eDe=ap(),IFt=eDe.stylePoints,RFt=eDe.styleText;tDe.exports=function(t,r){r&&DFt(t,r)};function DFt(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),IFt(n,r,e),RFt(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=LFt.select(this),o=i.trace,s=o.line||{};a.call(QRe.stroke,s.color).call(PFt.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(QRe.fill,o.fillcolor)})}});var kZ=ye((ygr,nDe)=>{"use strict";var rDe=Oa(),SF=Dr(),FFt=vF().getTopojsonFeatures,MZ=tx(),AF=ix(),iDe=wg().findExtremes,CZ=hs().BADNUM,zFt=O0().calcMarkerSize,EZ=Ru(),OFt=SZ();function qFt(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=SF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===CZ&&rDe.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=rDe.select(this),l=o[0].trace;if(EZ.hasLines(l)||l.fill!=="none"){var u=MZ.calcTraceToLineCoords(o),c=l.fill!=="none"?MZ.makePolygon(u):MZ.makeLine(u);s.selectAll("path.js-line").data([{geojson:c,trace:l}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}EZ.hasMarkers(l)&&s.selectAll("path.point").data(SF.identity).enter().append("path").classed("point",!0).each(function(f){a(f,this)}),EZ.hasText(l)&&s.selectAll("g").data(SF.identity).enter().append("g").append("text").each(function(f){a(f,this)}),OFt(e,o)})}function BFt(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(SF.isArrayOrTypedArray(r.locations)){var l=r.locationmode,u=l==="geojson-id"?AF.extractTraceFeature(e):FFt(r,i.topojson);for(o=0;o{"use strict";var NFt=vf(),UFt=hs().BADNUM,VFt=oT(),GFt=Dr().fillText,HFt=G2();aDe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.xa,s=t.ya,l=t.subplot,u=l.projection.isLonLatOverEdges,c=l.project;function f(C){var E=C.lonlat;if(E[0]===UFt||u(E))return 1/0;var A=c(E),L=c([r,n]),_=Math.abs(A[0]-L[0]),k=Math.abs(A[1]-L[1]),M=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(_*_+k*k)-M,1-3/M)}if(NFt.getClosest(i,f,t),t.index!==!1){var h=i[t.index],d=h.lonlat,v=[o.c2p(d),s.c2p(d)],x=h.mrc||1;t.x0=v[0]-x,t.x1=v[0]+x,t.y0=v[1]-x,t.y1=v[1]+x,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var b={};b[a.geo]={_subplot:l};var p=a._module.formatLabels(h,a,b);return t.lonLabel=p.lonLabel,t.latLabel=p.latLabel,t.color=VFt(a,h),t.extraText=jFt(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function jFt(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?HFt.hoverinfo.flags:i.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,l=a.indexOf("lat")!==-1,u=a.indexOf("text")!==-1,c=[];function f(h){return h+"\xB0"}return o?c.push(t.loc):s&&l?c.push("("+f(r.latLabel)+", "+f(r.lonLabel)+")"):s?c.push(n.lon+f(r.lonLabel)):l&&c.push(n.lat+f(r.latLabel)),u&&GFt(t,e,c),c.join("
")}});var lDe=ye((xgr,sDe)=>{"use strict";sDe.exports=function(t,r,n,i,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var fDe=ye((bgr,cDe)=>{"use strict";var uDe=Ru(),WFt=hs().BADNUM;cDe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h,d=!uDe.hasMarkers(s)&&!uDe.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof MF=="object"&&typeof hDe!="undefined"?MF:e.d3=e.d3||{})})(MF,function(e){"use strict";function t(Le,Ae){return LeAe?1:Le>=Ae?0:NaN}function r(Le){return Le.length===1&&(Le=n(Le)),{left:function(Ae,De,Pe,ge){for(Pe==null&&(Pe=0),ge==null&&(ge=Ae.length);Pe>>1;Le(Ae[Fe],De)<0?Pe=Fe+1:ge=Fe}return Pe},right:function(Ae,De,Pe,ge){for(Pe==null&&(Pe=0),ge==null&&(ge=Ae.length);Pe>>1;Le(Ae[Fe],De)>0?ge=Fe:Pe=Fe+1}return Pe}}}function n(Le){return function(Ae,De){return t(Le(Ae),De)}}var i=r(t),a=i.right,o=i.left;function s(Le,Ae){Ae==null&&(Ae=l);for(var De=0,Pe=Le.length-1,ge=Le[0],Fe=new Array(Pe<0?0:Pe);DeLe?1:Ae>=Le?0:NaN}function f(Le){return Le===null?NaN:+Le}function h(Le,Ae){var De=Le.length,Pe=0,ge=-1,Fe=0,ce,Ze,ct=0;if(Ae==null)for(;++ge1)return ct/(Pe-1)}function d(Le,Ae){var De=h(Le,Ae);return De&&Math.sqrt(De)}function v(Le,Ae){var De=Le.length,Pe=-1,ge,Fe,ce;if(Ae==null){for(;++Pe=ge)for(Fe=ce=ge;++Pege&&(Fe=ge),ce=ge)for(Fe=ce=ge;++Pege&&(Fe=ge),ce0)return[Le];if((Pe=Ae0)for(Le=Math.ceil(Le/Ze),Ae=Math.floor(Ae/Ze),ce=new Array(Fe=Math.ceil(Ae-Le+1));++ge=0?(Fe>=L?10:Fe>=_?5:Fe>=k?2:1)*Math.pow(10,ge):-Math.pow(10,-ge)/(Fe>=L?10:Fe>=_?5:Fe>=k?2:1)}function P(Le,Ae,De){var Pe=Math.abs(Ae-Le)/Math.max(0,De),ge=Math.pow(10,Math.floor(Math.log(Pe)/Math.LN10)),Fe=Pe/ge;return Fe>=L?ge*=10:Fe>=_?ge*=5:Fe>=k&&(ge*=2),Aest;)lt.pop(),--Gt;var Nt=new Array(Gt+1),$t;for(Fe=0;Fe<=Gt;++Fe)$t=Nt[Fe]=[],$t.x0=Fe>0?lt[Fe-1]:Wt,$t.x1=Fe=1)return+De(Le[Pe-1],Pe-1,Le);var Pe,ge=(Pe-1)*Ae,Fe=Math.floor(ge),ce=+De(Le[Fe],Fe,Le),Ze=+De(Le[Fe+1],Fe+1,Le);return ce+(Ze-ce)*(ge-Fe)}}function V(Le,Ae,De){return Le=p.call(Le,f).sort(t),Math.ceil((De-Ae)/(2*(O(Le,.75)-O(Le,.25))*Math.pow(Le.length,-1/3)))}function G(Le,Ae,De){return Math.ceil((De-Ae)/(3.5*d(Le)*Math.pow(Le.length,-1/3)))}function Z(Le,Ae){var De=Le.length,Pe=-1,ge,Fe;if(Ae==null){for(;++Pe=ge)for(Fe=ge;++PeFe&&(Fe=ge)}else for(;++Pe=ge)for(Fe=ge;++PeFe&&(Fe=ge);return Fe}function H(Le,Ae){var De=Le.length,Pe=De,ge=-1,Fe,ce=0;if(Ae==null)for(;++ge=0;)for(ce=Le[Ae],De=ce.length;--De>=0;)Fe[--ge]=ce[De];return Fe}function re(Le,Ae){var De=Le.length,Pe=-1,ge,Fe;if(Ae==null){for(;++Pe=ge)for(Fe=ge;++Pege&&(Fe=ge)}else for(;++Pe=ge)for(Fe=ge;++Pege&&(Fe=ge);return Fe}function oe(Le,Ae){for(var De=Ae.length,Pe=new Array(De);De--;)Pe[De]=Le[Ae[De]];return Pe}function _e(Le,Ae){if(De=Le.length){var De,Pe=0,ge=0,Fe,ce=Le[ge];for(Ae==null&&(Ae=t);++Pe{(function(e,t){typeof EF=="object"&&typeof dDe!="undefined"?t(EF,iC()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(EF,function(e,t){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(At){a(i,At,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(At,Xt,kr){var Ar=At.s=Xt+kr,Kr=Ar-Xt,Ei=Ar-Kr;At.t=Xt-Ei+(kr-Kr)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,f=l*2,h=180/l,d=l/180,v=Math.abs,x=Math.atan,b=Math.atan2,p=Math.cos,C=Math.ceil,E=Math.exp,A=Math.log,L=Math.pow,_=Math.sin,k=Math.sign||function(At){return At>0?1:At<0?-1:0},M=Math.sqrt,g=Math.tan;function P(At){return At>1?0:At<-1?l:Math.acos(At)}function T(At){return At>1?u:At<-1?-u:Math.asin(At)}function z(At){return(At=_(At/2))*At}function O(){}function V(At,Xt){At&&Z.hasOwnProperty(At.type)&&Z[At.type](At,Xt)}var G={Feature:function(At,Xt){V(At.geometry,Xt)},FeatureCollection:function(At,Xt){for(var kr=At.features,Ar=-1,Kr=kr.length;++Ar=0?1:-1,Kr=Ar*kr,Ei=p(Xt),Wi=_(Xt),hn=ie*Wi,Tn=me*Ei+hn*p(Kr),Bn=hn*Ar*_(Kr);re.add(b(Bn,Tn)),ke=At,me=Ei,ie=Wi}function ge(At){return oe.reset(),j(At,Se),oe*2}function Fe(At){return[b(At[1],At[0]),T(At[2])]}function ce(At){var Xt=At[0],kr=At[1],Ar=p(kr);return[Ar*p(Xt),Ar*_(Xt),_(kr)]}function Ze(At,Xt){return At[0]*Xt[0]+At[1]*Xt[1]+At[2]*Xt[2]}function ct(At,Xt){return[At[1]*Xt[2]-At[2]*Xt[1],At[2]*Xt[0]-At[0]*Xt[2],At[0]*Xt[1]-At[1]*Xt[0]]}function pt(At,Xt){At[0]+=Xt[0],At[1]+=Xt[1],At[2]+=Xt[2]}function Wt(At,Xt){return[At[0]*Xt,At[1]*Xt,At[2]*Xt]}function st(At){var Xt=M(At[0]*At[0]+At[1]*At[1]+At[2]*At[2]);At[0]/=Xt,At[1]/=Xt,At[2]/=Xt}var lt,Gt,Nt,$t,sr,wr,ur,Qe,Et=r(),er,Ut,Ft={point:bt,lineStart:Yt,lineEnd:lr,polygonStart:function(){Ft.point=Tr,Ft.lineStart=Rr,Ft.lineEnd=ei,Et.reset(),Se.polygonStart()},polygonEnd:function(){Se.polygonEnd(),Ft.point=bt,Ft.lineStart=Yt,Ft.lineEnd=lr,re<0?(lt=-(Nt=180),Gt=-($t=90)):Et>o?$t=90:Et<-o&&(Gt=-90),Ut[0]=lt,Ut[1]=Nt},sphere:function(){lt=-(Nt=180),Gt=-($t=90)}};function bt(At,Xt){er.push(Ut=[lt=At,Nt=At]),Xt$t&&($t=Xt)}function yt(At,Xt){var kr=ce([At*d,Xt*d]);if(Qe){var Ar=ct(Qe,kr),Kr=[Ar[1],-Ar[0],0],Ei=ct(Kr,Ar);st(Ei),Ei=Fe(Ei);var Wi=At-sr,hn=Wi>0?1:-1,Tn=Ei[0]*h*hn,Bn,Zi=v(Wi)>180;Zi^(hn*sr$t&&($t=Bn)):(Tn=(Tn+360)%360-180,Zi^(hn*sr$t&&($t=Xt))),Zi?AtWr(lt,Nt)&&(Nt=At):Wr(At,Nt)>Wr(lt,Nt)&&(lt=At):Nt>=lt?(AtNt&&(Nt=At)):At>sr?Wr(lt,At)>Wr(lt,Nt)&&(Nt=At):Wr(At,Nt)>Wr(lt,Nt)&&(lt=At)}else er.push(Ut=[lt=At,Nt=At]);Xt$t&&($t=Xt),Qe=kr,sr=At}function Yt(){Ft.point=yt}function lr(){Ut[0]=lt,Ut[1]=Nt,Ft.point=bt,Qe=null}function Tr(At,Xt){if(Qe){var kr=At-sr;Et.add(v(kr)>180?kr+(kr>0?360:-360):kr)}else wr=At,ur=Xt;Se.point(At,Xt),yt(At,Xt)}function Rr(){Se.lineStart()}function ei(){Tr(wr,ur),Se.lineEnd(),v(Et)>o&&(lt=-(Nt=180)),Ut[0]=lt,Ut[1]=Nt,Qe=null}function Wr(At,Xt){return(Xt-=At)<0?Xt+360:Xt}function Ur(At,Xt){return At[0]-Xt[0]}function dt(At,Xt){return At[0]<=At[1]?At[0]<=Xt&&Xt<=At[1]:XtWr(Ar[0],Ar[1])&&(Ar[1]=Kr[1]),Wr(Kr[0],Ar[1])>Wr(Ar[0],Ar[1])&&(Ar[0]=Kr[0])):Ei.push(Ar=Kr);for(Wi=-1/0,kr=Ei.length-1,Xt=0,Ar=Ei[kr];Xt<=kr;Ar=Kr,++Xt)Kr=Ei[Xt],(hn=Wr(Ar[1],Kr[0]))>Wi&&(Wi=hn,lt=Kr[0],Nt=Ar[1])}return er=Ut=null,lt===1/0||Gt===1/0?[[NaN,NaN],[NaN,NaN]]:[[lt,Gt],[Nt,$t]]}var Je,je,$e,wt,Ie,xe,Ce,vt,nr,ir,pr,oi,di,Jr,fi,Hi,Pn={sphere:O,point:wn,lineStart:Vn,lineEnd:ua,polygonStart:function(){Pn.lineStart=Vt,Pn.lineEnd=_t},polygonEnd:function(){Pn.lineStart=Vn,Pn.lineEnd=ua}};function wn(At,Xt){At*=d,Xt*=d;var kr=p(Xt);pn(kr*p(At),kr*_(At),_(Xt))}function pn(At,Xt,kr){++Je,$e+=(At-$e)/Je,wt+=(Xt-wt)/Je,Ie+=(kr-Ie)/Je}function Vn(){Pn.point=kn}function kn(At,Xt){At*=d,Xt*=d;var kr=p(Xt);Jr=kr*p(At),fi=kr*_(At),Hi=_(Xt),Pn.point=ea,pn(Jr,fi,Hi)}function ea(At,Xt){At*=d,Xt*=d;var kr=p(Xt),Ar=kr*p(At),Kr=kr*_(At),Ei=_(Xt),Wi=b(M((Wi=fi*Ei-Hi*Kr)*Wi+(Wi=Hi*Ar-Jr*Ei)*Wi+(Wi=Jr*Kr-fi*Ar)*Wi),Jr*Ar+fi*Kr+Hi*Ei);je+=Wi,xe+=Wi*(Jr+(Jr=Ar)),Ce+=Wi*(fi+(fi=Kr)),vt+=Wi*(Hi+(Hi=Ei)),pn(Jr,fi,Hi)}function ua(){Pn.point=wn}function Vt(){Pn.point=tr}function _t(){ar(oi,di),Pn.point=wn}function tr(At,Xt){oi=At,di=Xt,At*=d,Xt*=d,Pn.point=ar;var kr=p(Xt);Jr=kr*p(At),fi=kr*_(At),Hi=_(Xt),pn(Jr,fi,Hi)}function ar(At,Xt){At*=d,Xt*=d;var kr=p(Xt),Ar=kr*p(At),Kr=kr*_(At),Ei=_(Xt),Wi=fi*Ei-Hi*Kr,hn=Hi*Ar-Jr*Ei,Tn=Jr*Kr-fi*Ar,Bn=M(Wi*Wi+hn*hn+Tn*Tn),Zi=T(Bn),$i=Bn&&-Zi/Bn;nr+=$i*Wi,ir+=$i*hn,pr+=$i*Tn,je+=Zi,xe+=Zi*(Jr+(Jr=Ar)),Ce+=Zi*(fi+(fi=Kr)),vt+=Zi*(Hi+(Hi=Ei)),pn(Jr,fi,Hi)}function Er(At){Je=je=$e=wt=Ie=xe=Ce=vt=nr=ir=pr=0,j(At,Pn);var Xt=nr,kr=ir,Ar=pr,Kr=Xt*Xt+kr*kr+Ar*Ar;return Krl?At+Math.round(-At/f)*f:At,Xt]}$r.invert=$r;function zi(At,Xt,kr){return(At%=f)?Xt||kr?ri(en(At),cn(Xt,kr)):en(At):Xt||kr?cn(Xt,kr):$r}function Ji(At){return function(Xt,kr){return Xt+=At,[Xt>l?Xt-f:Xt<-l?Xt+f:Xt,kr]}}function en(At){var Xt=Ji(At);return Xt.invert=Ji(-At),Xt}function cn(At,Xt){var kr=p(At),Ar=_(At),Kr=p(Xt),Ei=_(Xt);function Wi(hn,Tn){var Bn=p(Tn),Zi=p(hn)*Bn,$i=_(hn)*Bn,an=_(Tn),Di=an*kr+Zi*Ar;return[b($i*Kr-Di*Ei,Zi*kr-an*Ar),T(Di*Kr+$i*Ei)]}return Wi.invert=function(hn,Tn){var Bn=p(Tn),Zi=p(hn)*Bn,$i=_(hn)*Bn,an=_(Tn),Di=an*Kr-$i*Ei;return[b($i*Kr+an*Ei,Zi*kr+Di*Ar),T(Di*kr-Zi*Ar)]},Wi}function yn(At){At=zi(At[0]*d,At[1]*d,At.length>2?At[2]*d:0);function Xt(kr){return kr=At(kr[0]*d,kr[1]*d),kr[0]*=h,kr[1]*=h,kr}return Xt.invert=function(kr){return kr=At.invert(kr[0]*d,kr[1]*d),kr[0]*=h,kr[1]*=h,kr},Xt}function Mn(At,Xt,kr,Ar,Kr,Ei){if(kr){var Wi=p(Xt),hn=_(Xt),Tn=Ar*kr;Kr==null?(Kr=Xt+Ar*f,Ei=Xt-Tn/2):(Kr=Ba(Wi,Kr),Ei=Ba(Wi,Ei),(Ar>0?KrEi)&&(Kr+=Ar*f));for(var Bn,Zi=Kr;Ar>0?Zi>Ei:Zi1&&At.push(At.pop().concat(At.shift()))},result:function(){var kr=At;return At=[],Xt=null,kr}}}function Wa(At,Xt){return v(At[0]-Xt[0])=0;--hn)Kr.point(($i=Zi[hn])[0],$i[1]);else Ar(an.x,an.p.x,-1,Kr);an=an.p}an=an.o,Zi=an.z,Di=!Di}while(!an.v);Kr.lineEnd()}}}function da(At){if(Xt=At.length){for(var Xt,kr=0,Ar=At[0],Kr;++kr=0?1:-1,os=Ms*Xo,Ts=os>l,Ho=ka*Ka;if(Wn.add(b(Ho*Ms*_(os),Ra*bo+Ho*p(os))),Wi+=Ts?Xo+Ms*f:Xo,Ts^Di>=kr^Yn>=kr){var yl=ct(ce(an),ce(Na));st(yl);var Xs=ct(Ei,yl);st(Xs);var Ps=(Ts^Xo>=0?-1:1)*T(Xs[2]);(Ar>Ps||Ar===Ps&&(yl[0]||yl[1]))&&(hn+=Ts^Xo>=0?1:-1)}}return(Wi<-o||Wi0){for(Tn||(Kr.polygonStart(),Tn=!0),Kr.lineStart(),bo=0;bo1&&zn&2&&Ka.push(Ka.pop().concat(Ka.shift())),Zi.push(Ka.filter(St))}}return an}}function St(At){return At.length>1}function Cr(At,Xt){return((At=At.x)[0]<0?At[1]-u-o:u-At[1])-((Xt=Xt.x)[0]<0?Xt[1]-u-o:u-Xt[1])}var Qr=jn(function(){return!0},pi,Sn,[-l,-u]);function pi(At){var Xt=NaN,kr=NaN,Ar=NaN,Kr;return{lineStart:function(){At.lineStart(),Kr=1},point:function(Ei,Wi){var hn=Ei>0?l:-l,Tn=v(Ei-Xt);v(Tn-l)0?u:-u),At.point(Ar,kr),At.lineEnd(),At.lineStart(),At.point(hn,kr),At.point(Ei,kr),Kr=0):Ar!==hn&&Tn>=l&&(v(Xt-Ar)o?x((_(Xt)*(Ei=p(Ar))*_(kr)-_(Ar)*(Kr=p(Xt))*_(At))/(Kr*Ei*Wi)):(Xt+Ar)/2}function Sn(At,Xt,kr,Ar){var Kr;if(At==null)Kr=kr*u,Ar.point(-l,Kr),Ar.point(0,Kr),Ar.point(l,Kr),Ar.point(l,0),Ar.point(l,-Kr),Ar.point(0,-Kr),Ar.point(-l,-Kr),Ar.point(-l,0),Ar.point(-l,Kr);else if(v(At[0]-Xt[0])>o){var Ei=At[0]0,Kr=v(Xt)>o;function Ei(Zi,$i,an,Di){Mn(Di,At,kr,an,Zi,$i)}function Wi(Zi,$i){return p(Zi)*p($i)>Xt}function hn(Zi){var $i,an,Di,$n,ka;return{lineStart:function(){$n=Di=!1,ka=1},point:function(Ra,La){var Na=[Ra,La],Yn,zn=Wi(Ra,La),Ka=Ar?zn?0:Bn(Ra,La):zn?Bn(Ra+(Ra<0?l:-l),La):0;if(!$i&&($n=Di=zn)&&Zi.lineStart(),zn!==Di&&(Yn=Tn($i,Na),(!Yn||Wa($i,Yn)||Wa(Na,Yn))&&(Na[2]=1)),zn!==Di)ka=0,zn?(Zi.lineStart(),Yn=Tn(Na,$i),Zi.point(Yn[0],Yn[1])):(Yn=Tn($i,Na),Zi.point(Yn[0],Yn[1],2),Zi.lineEnd()),$i=Yn;else if(Kr&&$i&&Ar^zn){var bo;!(Ka&an)&&(bo=Tn(Na,$i,!0))&&(ka=0,Ar?(Zi.lineStart(),Zi.point(bo[0][0],bo[0][1]),Zi.point(bo[1][0],bo[1][1]),Zi.lineEnd()):(Zi.point(bo[1][0],bo[1][1]),Zi.lineEnd(),Zi.lineStart(),Zi.point(bo[0][0],bo[0][1],3)))}zn&&(!$i||!Wa($i,Na))&&Zi.point(Na[0],Na[1]),$i=Na,Di=zn,an=Ka},lineEnd:function(){Di&&Zi.lineEnd(),$i=null},clean:function(){return ka|($n&&Di)<<1}}}function Tn(Zi,$i,an){var Di=ce(Zi),$n=ce($i),ka=[1,0,0],Ra=ct(Di,$n),La=Ze(Ra,Ra),Na=Ra[0],Yn=La-Na*Na;if(!Yn)return!an&&Zi;var zn=Xt*La/Yn,Ka=-Xt*Na/Yn,bo=ct(ka,Ra),Xo=Wt(ka,zn),Ms=Wt(Ra,Ka);pt(Xo,Ms);var os=bo,Ts=Ze(Xo,os),Ho=Ze(os,os),yl=Ts*Ts-Ho*(Ze(Xo,Xo)-1);if(!(yl<0)){var Xs=M(yl),Ps=Wt(os,(-Ts-Xs)/Ho);if(pt(Ps,Xo),Ps=Fe(Ps),!an)return Ps;var va=Zi[0],no=$i[0],_s=Zi[1],is=$i[1],$l;no0^Ps[1]<(v(Ps[0]-va)l^(va<=Ps[0]&&Ps[0]<=no)){var pu=Wt(os,(-Ts+Xs)/Ho);return pt(pu,Xo),[Ps,Fe(pu)]}}}function Bn(Zi,$i){var an=Ar?At:l-At,Di=0;return Zi<-an?Di|=1:Zi>an&&(Di|=2),$i<-an?Di|=4:$i>an&&(Di|=8),Di}return jn(Wi,hn,Ei,Ar?[0,-At]:[-l,At-l])}function ki(At,Xt,kr,Ar,Kr,Ei){var Wi=At[0],hn=At[1],Tn=Xt[0],Bn=Xt[1],Zi=0,$i=1,an=Tn-Wi,Di=Bn-hn,$n;if($n=kr-Wi,!(!an&&$n>0)){if($n/=an,an<0){if($n0){if($n>$i)return;$n>Zi&&(Zi=$n)}if($n=Kr-Wi,!(!an&&$n<0)){if($n/=an,an<0){if($n>$i)return;$n>Zi&&(Zi=$n)}else if(an>0){if($n0)){if($n/=Di,Di<0){if($n0){if($n>$i)return;$n>Zi&&(Zi=$n)}if($n=Ei-hn,!(!Di&&$n<0)){if($n/=Di,Di<0){if($n>$i)return;$n>Zi&&(Zi=$n)}else if(Di>0){if($n0&&(At[0]=Wi+Zi*an,At[1]=hn+Zi*Di),$i<1&&(Xt[0]=Wi+$i*an,Xt[1]=hn+$i*Di),!0}}}}}var _n=1e9,ya=-_n;function Jn(At,Xt,kr,Ar){function Kr(Bn,Zi){return At<=Bn&&Bn<=kr&&Xt<=Zi&&Zi<=Ar}function Ei(Bn,Zi,$i,an){var Di=0,$n=0;if(Bn==null||(Di=Wi(Bn,$i))!==($n=Wi(Zi,$i))||Tn(Bn,Zi)<0^$i>0)do an.point(Di===0||Di===3?At:kr,Di>1?Ar:Xt);while((Di=(Di+$i+4)%4)!==$n);else an.point(Zi[0],Zi[1])}function Wi(Bn,Zi){return v(Bn[0]-At)0?0:3:v(Bn[0]-kr)0?2:1:v(Bn[1]-Xt)0?1:0:Zi>0?3:2}function hn(Bn,Zi){return Tn(Bn.x,Zi.x)}function Tn(Bn,Zi){var $i=Wi(Bn,1),an=Wi(Zi,1);return $i!==an?$i-an:$i===0?Zi[1]-Bn[1]:$i===1?Bn[0]-Zi[0]:$i===2?Bn[1]-Zi[1]:Zi[0]-Bn[0]}return function(Bn){var Zi=Bn,$i=ma(),an,Di,$n,ka,Ra,La,Na,Yn,zn,Ka,bo,Xo={point:Ms,lineStart:yl,lineEnd:Xs,polygonStart:Ts,polygonEnd:Ho};function Ms(va,no){Kr(va,no)&&Zi.point(va,no)}function os(){for(var va=0,no=0,_s=Di.length;no<_s;++no)for(var is=Di[no],$l=1,ku=is.length,Yu=is[0],Nc,pu,Uc=Yu[0],xu=Yu[1];$lAr&&(Uc-Nc)*(Ar-pu)>(xu-pu)*(At-Nc)&&++va:xu<=Ar&&(Uc-Nc)*(Ar-pu)<(xu-pu)*(At-Nc)&&--va;return va}function Ts(){Zi=$i,an=[],Di=[],bo=!0}function Ho(){var va=os(),no=bo&&va,_s=(an=t.merge(an)).length;(no||_s)&&(Bn.polygonStart(),no&&(Bn.lineStart(),Ei(null,null,1,Bn),Bn.lineEnd()),_s&&Wo(an,hn,va,Ei,Bn),Bn.polygonEnd()),Zi=Bn,an=Di=$n=null}function yl(){Xo.point=Ps,Di&&Di.push($n=[]),Ka=!0,zn=!1,Na=Yn=NaN}function Xs(){an&&(Ps(ka,Ra),La&&zn&&$i.rejoin(),an.push($i.result())),Xo.point=Ms,zn&&Zi.lineEnd()}function Ps(va,no){var _s=Kr(va,no);if(Di&&$n.push([va,no]),Ka)ka=va,Ra=no,La=_s,Ka=!1,_s&&(Zi.lineStart(),Zi.point(va,no));else if(_s&&zn)Zi.point(va,no);else{var is=[Na=Math.max(ya,Math.min(_n,Na)),Yn=Math.max(ya,Math.min(_n,Yn))],$l=[va=Math.max(ya,Math.min(_n,va)),no=Math.max(ya,Math.min(_n,no))];ki(is,$l,At,Xt,kr,Ar)?(zn||(Zi.lineStart(),Zi.point(is[0],is[1])),Zi.point($l[0],$l[1]),_s||Zi.lineEnd(),bo=!1):_s&&(Zi.lineStart(),Zi.point(va,no),bo=!1)}Na=va,Yn=no,zn=_s}return Xo}}function Ma(){var At=0,Xt=0,kr=960,Ar=500,Kr,Ei,Wi;return Wi={stream:function(hn){return Kr&&Ei===hn?Kr:Kr=Jn(At,Xt,kr,Ar)(Ei=hn)},extent:function(hn){return arguments.length?(At=+hn[0][0],Xt=+hn[0][1],kr=+hn[1][0],Ar=+hn[1][1],Kr=Ei=null,Wi):[[At,Xt],[kr,Ar]]}}}var _o=r(),No,po,Lo,Co={sphere:O,point:O,lineStart:Fs,lineEnd:O,polygonStart:O,polygonEnd:O};function Fs(){Co.point=ul,Co.lineEnd=zs}function zs(){Co.point=Co.lineEnd=O}function ul(At,Xt){At*=d,Xt*=d,No=At,po=_(Xt),Lo=p(Xt),Co.point=cl}function cl(At,Xt){At*=d,Xt*=d;var kr=_(Xt),Ar=p(Xt),Kr=v(At-No),Ei=p(Kr),Wi=_(Kr),hn=Ar*Wi,Tn=Lo*kr-po*Ar*Ei,Bn=po*kr+Lo*Ar*Ei;_o.add(b(M(hn*hn+Tn*Tn),Bn)),No=At,po=kr,Lo=Ar}function zl(At){return _o.reset(),j(At,Co),+_o}var cs=[null,null],nl={type:"LineString",coordinates:cs};function Ss(At,Xt){return cs[0]=At,cs[1]=Xt,zl(nl)}var fl={Feature:function(At,Xt){return Os(At.geometry,Xt)},FeatureCollection:function(At,Xt){for(var kr=At.features,Ar=-1,Kr=kr.length;++Ar0&&(Kr=Ss(At[Ei],At[Ei-1]),Kr>0&&kr<=Kr&&Ar<=Kr&&(kr+Ar-Kr)*(1-Math.pow((kr-Ar)/Kr,2))o}).map(an)).concat(t.range(C(Ei/Bn)*Bn,Kr,Bn).filter(function(Yn){return v(Yn%$i)>o}).map(Di))}return La.lines=function(){return Na().map(function(Yn){return{type:"LineString",coordinates:Yn}})},La.outline=function(){return{type:"Polygon",coordinates:[$n(Ar).concat(ka(Wi).slice(1),$n(kr).reverse().slice(1),ka(hn).reverse().slice(1))]}},La.extent=function(Yn){return arguments.length?La.extentMajor(Yn).extentMinor(Yn):La.extentMinor()},La.extentMajor=function(Yn){return arguments.length?(Ar=+Yn[0][0],kr=+Yn[1][0],hn=+Yn[0][1],Wi=+Yn[1][1],Ar>kr&&(Yn=Ar,Ar=kr,kr=Yn),hn>Wi&&(Yn=hn,hn=Wi,Wi=Yn),La.precision(Ra)):[[Ar,hn],[kr,Wi]]},La.extentMinor=function(Yn){return arguments.length?(Xt=+Yn[0][0],At=+Yn[1][0],Ei=+Yn[0][1],Kr=+Yn[1][1],Xt>At&&(Yn=Xt,Xt=At,At=Yn),Ei>Kr&&(Yn=Ei,Ei=Kr,Kr=Yn),La.precision(Ra)):[[Xt,Ei],[At,Kr]]},La.step=function(Yn){return arguments.length?La.stepMajor(Yn).stepMinor(Yn):La.stepMinor()},La.stepMajor=function(Yn){return arguments.length?(Zi=+Yn[0],$i=+Yn[1],La):[Zi,$i]},La.stepMinor=function(Yn){return arguments.length?(Tn=+Yn[0],Bn=+Yn[1],La):[Tn,Bn]},La.precision=function(Yn){return arguments.length?(Ra=+Yn,an=Fn(Ei,Kr,90),Di=_a(Xt,At,Ra),$n=Fn(hn,Wi,90),ka=_a(Ar,kr,Ra),La):Ra},La.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ol(){return Vu()()}function xo(At,Xt){var kr=At[0]*d,Ar=At[1]*d,Kr=Xt[0]*d,Ei=Xt[1]*d,Wi=p(Ar),hn=_(Ar),Tn=p(Ei),Bn=_(Ei),Zi=Wi*p(kr),$i=Wi*_(kr),an=Tn*p(Kr),Di=Tn*_(Kr),$n=2*T(M(z(Ei-Ar)+Wi*Tn*z(Kr-kr))),ka=_($n),Ra=$n?function(La){var Na=_(La*=$n)/ka,Yn=_($n-La)/ka,zn=Yn*Zi+Na*an,Ka=Yn*$i+Na*Di,bo=Yn*hn+Na*Bn;return[b(Ka,zn)*h,b(bo,M(zn*zn+Ka*Ka))*h]}:function(){return[kr*h,Ar*h]};return Ra.distance=$n,Ra}function Yl(At){return At}var Us=r(),Hl=r(),ac,aa,Oo,qo,ql={point:O,lineStart:O,lineEnd:O,polygonStart:function(){ql.lineStart=Pc,ql.lineEnd=Uf},polygonEnd:function(){ql.lineStart=ql.lineEnd=ql.point=O,Us.add(v(Hl)),Hl.reset()},result:function(){var At=Us/2;return Us.reset(),At}};function Pc(){ql.point=Do}function Do(At,Xt){ql.point=rf,ac=Oo=At,aa=qo=Xt}function rf(At,Xt){Hl.add(qo*At-Oo*Xt),Oo=At,qo=Xt}function Uf(){rf(ac,aa)}var ml=1/0,Zc=ml,Kl=-ml,qs=Kl,yu={point:oc,lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O,result:function(){var At=[[ml,Zc],[Kl,qs]];return Kl=qs=-(Zc=ml=1/0),At}};function oc(At,Xt){AtKl&&(Kl=At),Xtqs&&(qs=Xt)}var Cf=0,sc=0,Nh=0,kf=0,fs=0,nf=0,Vf=0,Jl=0,hl=0,lc,Fu,Cs,js,Go={point:gs,lineStart:uc,lineEnd:Bs,polygonStart:function(){Go.lineStart=ad,Go.lineEnd=Po},polygonEnd:function(){Go.point=gs,Go.lineStart=uc,Go.lineEnd=Bs},result:function(){var At=hl?[Vf/hl,Jl/hl]:nf?[kf/nf,fs/nf]:Nh?[Cf/Nh,sc/Nh]:[NaN,NaN];return Cf=sc=Nh=kf=fs=nf=Vf=Jl=hl=0,At}};function gs(At,Xt){Cf+=At,sc+=Xt,++Nh}function uc(){Go.point=bl}function bl(At,Xt){Go.point=Gu,gs(Cs=At,js=Xt)}function Gu(At,Xt){var kr=At-Cs,Ar=Xt-js,Kr=M(kr*kr+Ar*Ar);kf+=Kr*(Cs+At)/2,fs+=Kr*(js+Xt)/2,nf+=Kr,gs(Cs=At,js=Xt)}function Bs(){Go.point=gs}function ad(){Go.point=od}function Po(){Yo(lc,Fu)}function od(At,Xt){Go.point=Yo,gs(lc=Cs=At,Fu=js=Xt)}function Yo(At,Xt){var kr=At-Cs,Ar=Xt-js,Kr=M(kr*kr+Ar*Ar);kf+=Kr*(Cs+At)/2,fs+=Kr*(js+Xt)/2,nf+=Kr,Kr=js*At-Cs*Xt,Vf+=Kr*(Cs+At),Jl+=Kr*(js+Xt),hl+=Kr*3,gs(Cs=At,js=Xt)}function Pa(At){this._context=At}Pa.prototype={_radius:4.5,pointRadius:function(At){return this._radius=At,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(At,Xt){switch(this._point){case 0:{this._context.moveTo(At,Xt),this._point=1;break}case 1:{this._context.lineTo(At,Xt);break}default:{this._context.moveTo(At+this._radius,Xt),this._context.arc(At,Xt,this._radius,0,f);break}}},result:O};var af=r(),Hu,wl,Gf,Ic,mf,Bl={point:O,lineStart:function(){Bl.point=_h},lineEnd:function(){Hu&&Qf(wl,Gf),Bl.point=O},polygonStart:function(){Hu=!0},polygonEnd:function(){Hu=null},result:function(){var At=+af;return af.reset(),At}};function _h(At,Xt){Bl.point=Qf,wl=Ic=At,Gf=mf=Xt}function Qf(At,Xt){Ic-=At,mf-=Xt,af.add(M(Ic*Ic+mf*mf)),Ic=At,mf=Xt}function yf(){this._string=[]}yf.prototype={_radius:4.5,_circle:Yc(4.5),pointRadius:function(At){return(At=+At)!==this._radius&&(this._radius=At,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(At,Xt){switch(this._point){case 0:{this._string.push("M",At,",",Xt),this._point=1;break}case 1:{this._string.push("L",At,",",Xt);break}default:{this._circle==null&&(this._circle=Yc(this._radius)),this._string.push("M",At,",",Xt,this._circle);break}}},result:function(){if(this._string.length){var At=this._string.join("");return this._string=[],At}else return null}};function Yc(At){return"m0,"+At+"a"+At+","+At+" 0 1,1 0,"+-2*At+"a"+At+","+At+" 0 1,1 0,"+2*At+"z"}function eh(At,Xt){var kr=4.5,Ar,Kr;function Ei(Wi){return Wi&&(typeof kr=="function"&&Kr.pointRadius(+kr.apply(this,arguments)),j(Wi,Ar(Kr))),Kr.result()}return Ei.area=function(Wi){return j(Wi,Ar(ql)),ql.result()},Ei.measure=function(Wi){return j(Wi,Ar(Bl)),Bl.result()},Ei.bounds=function(Wi){return j(Wi,Ar(yu)),yu.result()},Ei.centroid=function(Wi){return j(Wi,Ar(Go)),Go.result()},Ei.projection=function(Wi){return arguments.length?(Ar=Wi==null?(At=null,Yl):(At=Wi).stream,Ei):At},Ei.context=function(Wi){return arguments.length?(Kr=Wi==null?(Xt=null,new yf):new Pa(Xt=Wi),typeof kr!="function"&&Kr.pointRadius(kr),Ei):Xt},Ei.pointRadius=function(Wi){return arguments.length?(kr=typeof Wi=="function"?Wi:(Kr.pointRadius(+Wi),+Wi),Ei):kr},Ei.projection(At).context(Xt)}function th(At){return{stream:ju(At)}}function ju(At){return function(Xt){var kr=new Hf;for(var Ar in At)kr[Ar]=At[Ar];return kr.stream=Xt,kr}}function Hf(){}Hf.prototype={constructor:Hf,point:function(At,Xt){this.stream.point(At,Xt)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function cc(At,Xt,kr){var Ar=At.clipExtent&&At.clipExtent();return At.scale(150).translate([0,0]),Ar!=null&&At.clipExtent(null),j(kr,At.stream(yu)),Xt(yu.result()),Ar!=null&&At.clipExtent(Ar),At}function of(At,Xt,kr){return cc(At,function(Ar){var Kr=Xt[1][0]-Xt[0][0],Ei=Xt[1][1]-Xt[0][1],Wi=Math.min(Kr/(Ar[1][0]-Ar[0][0]),Ei/(Ar[1][1]-Ar[0][1])),hn=+Xt[0][0]+(Kr-Wi*(Ar[1][0]+Ar[0][0]))/2,Tn=+Xt[0][1]+(Ei-Wi*(Ar[1][1]+Ar[0][1]))/2;At.scale(150*Wi).translate([hn,Tn])},kr)}function Nl(At,Xt,kr){return of(At,[[0,0],Xt],kr)}function Kc(At,Xt,kr){return cc(At,function(Ar){var Kr=+Xt,Ei=Kr/(Ar[1][0]-Ar[0][0]),Wi=(Kr-Ei*(Ar[1][0]+Ar[0][0]))/2,hn=-Ei*Ar[0][1];At.scale(150*Ei).translate([Wi,hn])},kr)}function Rc(At,Xt,kr){return cc(At,function(Ar){var Kr=+Xt,Ei=Kr/(Ar[1][1]-Ar[0][1]),Wi=-Ei*Ar[0][0],hn=(Kr-Ei*(Ar[1][1]+Ar[0][1]))/2;At.scale(150*Ei).translate([Wi,hn])},kr)}var ms=16,jf=p(30*d);function Uh(At,Xt){return+Xt?sf(At,Xt):rh(At)}function rh(At){return ju({point:function(Xt,kr){Xt=At(Xt,kr),this.stream.point(Xt[0],Xt[1])}})}function sf(At,Xt){function kr(Ar,Kr,Ei,Wi,hn,Tn,Bn,Zi,$i,an,Di,$n,ka,Ra){var La=Bn-Ar,Na=Zi-Kr,Yn=La*La+Na*Na;if(Yn>4*Xt&&ka--){var zn=Wi+an,Ka=hn+Di,bo=Tn+$n,Xo=M(zn*zn+Ka*Ka+bo*bo),Ms=T(bo/=Xo),os=v(v(bo)-1)Xt||v((La*Xs+Na*Ps)/Yn-.5)>.3||Wi*an+hn*Di+Tn*$n2?va[2]%360*d:0,Xs()):[hn*h,Tn*h,Bn*h]},Ho.angle=function(va){return arguments.length?($i=va%360*d,Xs()):$i*h},Ho.reflectX=function(va){return arguments.length?(an=va?-1:1,Xs()):an<0},Ho.reflectY=function(va){return arguments.length?(Di=va?-1:1,Xs()):Di<0},Ho.precision=function(va){return arguments.length?(bo=Uh(Xo,Ka=va*va),Ps()):M(Ka)},Ho.fitExtent=function(va,no){return of(Ho,va,no)},Ho.fitSize=function(va,no){return Nl(Ho,va,no)},Ho.fitWidth=function(va,no){return Kc(Ho,va,no)},Ho.fitHeight=function(va,no){return Rc(Ho,va,no)};function Xs(){var va=Ws(kr,0,0,an,Di,$i).apply(null,Xt(Ei,Wi)),no=($i?Ws:ih)(kr,Ar-va[0],Kr-va[1],an,Di,$i);return Zi=zi(hn,Tn,Bn),Xo=ri(Xt,no),Ms=ri(Zi,Xo),bo=Uh(Xo,Ka),Ps()}function Ps(){return os=Ts=null,Ho}return function(){return Xt=At.apply(this,arguments),Ho.invert=Xt.invert&&yl,Xs()}}function ks(At){var Xt=0,kr=l/3,Ar=Dc(At),Kr=Ar(Xt,kr);return Kr.parallels=function(Ei){return arguments.length?Ar(Xt=Ei[0]*d,kr=Ei[1]*d):[Xt*h,kr*h]},Kr}function bc(At){var Xt=p(At);function kr(Ar,Kr){return[Ar*Xt,_(Kr)/Xt]}return kr.invert=function(Ar,Kr){return[Ar/Xt,T(Kr*Xt)]},kr}function hu(At,Xt){var kr=_(At),Ar=(kr+_(Xt))/2;if(v(Ar)=.12&&Ra<.234&&ka>=-.425&&ka<-.214?Kr:Ra>=.166&&Ra<.234&&ka>=-.214&&ka<-.115?Wi:kr).invert(an)},Zi.stream=function(an){return At&&Xt===an?At:At=nh([kr.stream(Xt=an),Kr.stream(an),Wi.stream(an)])},Zi.precision=function(an){return arguments.length?(kr.precision(an),Kr.precision(an),Wi.precision(an),$i()):kr.precision()},Zi.scale=function(an){return arguments.length?(kr.scale(an),Kr.scale(an*.35),Wi.scale(an),Zi.translate(kr.translate())):kr.scale()},Zi.translate=function(an){if(!arguments.length)return kr.translate();var Di=kr.scale(),$n=+an[0],ka=+an[1];return Ar=kr.translate(an).clipExtent([[$n-.455*Di,ka-.238*Di],[$n+.455*Di,ka+.238*Di]]).stream(Bn),Ei=Kr.translate([$n-.307*Di,ka+.201*Di]).clipExtent([[$n-.425*Di+o,ka+.12*Di+o],[$n-.214*Di-o,ka+.234*Di-o]]).stream(Bn),hn=Wi.translate([$n-.205*Di,ka+.212*Di]).clipExtent([[$n-.214*Di+o,ka+.166*Di+o],[$n-.115*Di-o,ka+.234*Di-o]]).stream(Bn),$i()},Zi.fitExtent=function(an,Di){return of(Zi,an,Di)},Zi.fitSize=function(an,Di){return Nl(Zi,an,Di)},Zi.fitWidth=function(an,Di){return Kc(Zi,an,Di)},Zi.fitHeight=function(an,Di){return Rc(Zi,an,Di)};function $i(){return At=Xt=null,Zi}return Zi.scale(1070)}function zu(At){return function(Xt,kr){var Ar=p(Xt),Kr=p(kr),Ei=At(Ar*Kr);return[Ei*Kr*_(Xt),Ei*_(kr)]}}function Fc(At){return function(Xt,kr){var Ar=M(Xt*Xt+kr*kr),Kr=At(Ar),Ei=_(Kr),Wi=p(Kr);return[b(Xt*Ei,Ar*Wi),T(Ar&&kr*Ei/Ar)]}}var wc=zu(function(At){return M(2/(1+At))});wc.invert=Fc(function(At){return 2*T(At/2)});function bd(){return Eu(wc).scale(124.75).clipAngle(180-.001)}var _f=zu(function(At){return(At=P(At))&&At/_(At)});_f.invert=Fc(function(At){return At});function Lf(){return Eu(_f).scale(79.4188).clipAngle(180-.001)}function Ou(At,Xt){return[At,A(g((u+Xt)/2))]}Ou.invert=function(At,Xt){return[At,2*x(E(Xt))-u]};function xf(){return jl(Ou).scale(961/f)}function jl(At){var Xt=Eu(At),kr=Xt.center,Ar=Xt.scale,Kr=Xt.translate,Ei=Xt.clipExtent,Wi=null,hn,Tn,Bn;Xt.scale=function($i){return arguments.length?(Ar($i),Zi()):Ar()},Xt.translate=function($i){return arguments.length?(Kr($i),Zi()):Kr()},Xt.center=function($i){return arguments.length?(kr($i),Zi()):kr()},Xt.clipExtent=function($i){return arguments.length?($i==null?Wi=hn=Tn=Bn=null:(Wi=+$i[0][0],hn=+$i[0][1],Tn=+$i[1][0],Bn=+$i[1][1]),Zi()):Wi==null?null:[[Wi,hn],[Tn,Bn]]};function Zi(){var $i=l*Ar(),an=Xt(yn(Xt.rotate()).invert([0,0]));return Ei(Wi==null?[[an[0]-$i,an[1]-$i],[an[0]+$i,an[1]+$i]]:At===Ou?[[Math.max(an[0]-$i,Wi),hn],[Math.min(an[0]+$i,Tn),Bn]]:[[Wi,Math.max(an[1]-$i,hn)],[Tn,Math.min(an[1]+$i,Bn)]])}return Zi()}function lf(At){return g((u+At)/2)}function Vh(At,Xt){var kr=p(At),Ar=At===Xt?_(At):A(kr/p(Xt))/A(lf(Xt)/lf(At)),Kr=kr*L(lf(At),Ar)/Ar;if(!Ar)return Ou;function Ei(Wi,hn){Kr>0?hn<-u+o&&(hn=-u+o):hn>u-o&&(hn=u-o);var Tn=Kr/L(lf(hn),Ar);return[Tn*_(Ar*Wi),Kr-Tn*p(Ar*Wi)]}return Ei.invert=function(Wi,hn){var Tn=Kr-hn,Bn=k(Ar)*M(Wi*Wi+Tn*Tn),Zi=b(Wi,v(Tn))*k(Tn);return Tn*Ar<0&&(Zi-=l*k(Wi)*k(Tn)),[Zi/Ar,2*x(L(Kr/Bn,1/Ar))-u]},Ei}function Pf(){return ks(Vh).scale(109.5).parallels([30,30])}function Ls(At,Xt){return[At,Xt]}Ls.invert=Ls;function du(){return Eu(Ls).scale(152.63)}function Cu(At,Xt){var kr=p(At),Ar=At===Xt?_(At):(kr-p(Xt))/(Xt-At),Kr=kr/Ar+At;if(v(Ar)o&&--Ar>0);return[At/(.8707+(Ei=kr*kr)*(-.131979+Ei*(-.013791+Ei*Ei*Ei*(.003971-.001529*Ei)))),kr]};function Tc(){return Eu(Oc).scale(175.295)}function Tl(At,Xt){return[p(Xt)*_(At),_(Xt)]}Tl.invert=Fc(T);function vu(){return Eu(Tl).scale(249.5).clipAngle(90+o)}function qc(At,Xt){var kr=p(Xt),Ar=1+p(At)*kr;return[kr*_(At)/Ar,_(Xt)/Ar]}qc.invert=Fc(function(At){return 2*x(At)});function cf(){return Eu(qc).scale(250).clipAngle(142)}function fc(At,Xt){return[A(g((u+Xt)/2)),-At]}fc.invert=function(At,Xt){return[-Xt,2*x(E(At))-u]};function Bc(){var At=jl(fc),Xt=At.center,kr=At.rotate;return At.center=function(Ar){return arguments.length?Xt([-Ar[1],Ar[0]]):(Ar=Xt(),[Ar[1],-Ar[0]])},At.rotate=function(Ar){return arguments.length?kr([Ar[0],Ar[1],Ar.length>2?Ar[2]+90:90]):(Ar=kr(),[Ar[0],Ar[1],Ar[2]-90])},kr([0,0,90]).scale(159.155)}e.geoAlbers=al,e.geoAlbersUsa=bh,e.geoArea=ge,e.geoAzimuthalEqualArea=bd,e.geoAzimuthalEqualAreaRaw=wc,e.geoAzimuthalEquidistant=Lf,e.geoAzimuthalEquidistantRaw=_f,e.geoBounds=Ge,e.geoCentroid=Er,e.geoCircle=la,e.geoClipAntimeridian=Qr,e.geoClipCircle=En,e.geoClipExtent=Ma,e.geoClipRectangle=Jn,e.geoConicConformal=Pf,e.geoConicConformalRaw=Vh,e.geoConicEqualArea=_u,e.geoConicEqualAreaRaw=hu,e.geoConicEquidistant=Wf,e.geoConicEquidistantRaw=Cu,e.geoContains=ws,e.geoDistance=Ss,e.geoEqualEarth=Xf,e.geoEqualEarthRaw=uf,e.geoEquirectangular=du,e.geoEquirectangularRaw=Ls,e.geoGnomonic=ah,e.geoGnomonicRaw=Wl,e.geoGraticule=Vu,e.geoGraticule10=Ol,e.geoIdentity=Zu,e.geoInterpolate=xo,e.geoLength=zl,e.geoMercator=xf,e.geoMercatorRaw=Ou,e.geoNaturalEarth1=Tc,e.geoNaturalEarth1Raw=Oc,e.geoOrthographic=vu,e.geoOrthographicRaw=Tl,e.geoPath=eh,e.geoProjection=Eu,e.geoProjectionMutator=Dc,e.geoRotation=yn,e.geoStereographic=cf,e.geoStereographicRaw=qc,e.geoStream=j,e.geoTransform=th,e.geoTransverseMercator=Bc,e.geoTransverseMercatorRaw=fc,Object.defineProperty(e,"__esModule",{value:!0})})});var pDe=ye((CF,vDe)=>{(function(e,t){typeof CF=="object"&&typeof vDe!="undefined"?t(CF,LZ(),iC()):t(e.d3=e.d3||{},e.d3,e.d3)})(CF,function(e,t,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,u=Math.log,c=Math.max,f=Math.min,h=Math.pow,d=Math.round,v=Math.sign||function(ve){return ve>0?1:ve<0?-1:0},x=Math.sin,b=Math.tan,p=1e-6,C=1e-12,E=Math.PI,A=E/2,L=E/4,_=Math.SQRT1_2,k=G(2),M=G(E),g=E*2,P=180/E,T=E/180;function z(ve){return ve?ve/Math.sin(ve):1}function O(ve){return ve>1?A:ve<-1?-A:Math.asin(ve)}function V(ve){return ve>1?0:ve<-1?E:Math.acos(ve)}function G(ve){return ve>0?Math.sqrt(ve):0}function Z(ve){return ve=s(2*ve),(ve-1)/(ve+1)}function H(ve){return(s(ve)-s(-ve))/2}function N(ve){return(s(ve)+s(-ve))/2}function j(ve){return u(ve+G(ve*ve+1))}function re(ve){return u(ve+G(ve*ve-1))}function oe(ve){var be=b(ve/2),Re=2*u(o(ve/2))/(be*be);function Be(tt,We){var it=o(tt),Dt=o(We),Ht=x(We),rr=Dt*it,dr=-((1-rr?u((1+rr)/2)/(1-rr):-.5)+Re/(1+rr));return[dr*Dt*x(tt),dr*Ht]}return Be.invert=function(tt,We){var it=G(tt*tt+We*We),Dt=-ve/2,Ht=50,rr;if(!it)return[0,0];do{var dr=Dt/2,Sr=o(dr),Or=x(dr),jr=Or/Sr,ii=-u(n(Sr));Dt-=rr=(2/jr*ii-Re*jr-it)/(-ii/(Or*Or)+1-Re/(2*Sr*Sr))*(Sr<0?.7:1)}while(n(rr)>p&&--Ht>0);var Li=x(Dt);return[a(tt*Li,it*o(Dt)),O(We*Li/it)]},Be}function _e(){var ve=A,be=t.geoProjectionMutator(oe),Re=be(ve);return Re.radius=function(Be){return arguments.length?be(ve=Be*T):ve*P},Re.scale(179.976).clipAngle(147)}function Me(ve,be){var Re=o(be),Be=z(V(Re*o(ve/=2)));return[2*Re*x(ve)*Be,x(be)*Be]}Me.invert=function(ve,be){if(!(ve*ve+4*be*be>E*E+p)){var Re=ve,Be=be,tt=25;do{var We=x(Re),it=x(Re/2),Dt=o(Re/2),Ht=x(Be),rr=o(Be),dr=x(2*Be),Sr=Ht*Ht,Or=rr*rr,jr=it*it,ii=1-Or*Dt*Dt,Li=ii?V(rr*Dt)*G(un=1/ii):un=0,un,sn=2*Li*rr*it-ve,In=Li*Ht-be,Kn=un*(Or*jr+Li*rr*Dt*Sr),Aa=un*(.5*We*dr-Li*2*Ht*it),fa=un*.25*(dr*it-Li*Ht*Or*We),$a=un*(Sr*Dt+Li*jr*rr),ko=Aa*fa-$a*Kn;if(!ko)break;var Qa=(In*Aa-sn*$a)/ko,mo=(sn*fa-In*Kn)/ko;Re-=Qa,Be-=mo}while((n(Qa)>p||n(mo)>p)&&--tt>0);return[Re,Be]}};function ke(){return t.geoProjection(Me).scale(152.63)}function me(ve){var be=x(ve),Re=o(ve),Be=ve>=0?1:-1,tt=b(Be*ve),We=(1+be-Re)/2;function it(Dt,Ht){var rr=o(Ht),dr=o(Dt/=2);return[(1+rr)*x(Dt),(Be*Ht>-a(dr,tt)-.001?0:-Be*10)+We+x(Ht)*Re-(1+rr)*be*dr]}return it.invert=function(Dt,Ht){var rr=0,dr=0,Sr=50;do{var Or=o(rr),jr=x(rr),ii=o(dr),Li=x(dr),un=1+ii,sn=un*jr-Dt,In=We+Li*Re-un*be*Or-Ht,Kn=un*Or/2,Aa=-jr*Li,fa=be*un*jr/2,$a=Re*ii+be*Or*Li,ko=Aa*fa-$a*Kn,Qa=(In*Aa-sn*$a)/ko/2,mo=(sn*fa-In*Kn)/ko;n(mo)>2&&(mo/=2),rr-=Qa,dr-=mo}while((n(Qa)>p||n(mo)>p)&&--Sr>0);return Be*dr>-a(o(rr),tt)-.001?[rr*2,dr]:null},it}function ie(){var ve=20*T,be=ve>=0?1:-1,Re=b(be*ve),Be=t.geoProjectionMutator(me),tt=Be(ve),We=tt.stream;return tt.parallel=function(it){return arguments.length?(Re=b((be=(ve=it*T)>=0?1:-1)*ve),Be(ve)):ve*P},tt.stream=function(it){var Dt=tt.rotate(),Ht=We(it),rr=(tt.rotate([0,0]),We(it)),dr=tt.precision();return tt.rotate(Dt),Ht.sphere=function(){rr.polygonStart(),rr.lineStart();for(var Sr=be*-180;be*Sr<180;Sr+=be*90)rr.point(Sr,be*90);if(ve)for(;be*(Sr-=3*be*dr)>=-180;)rr.point(Sr,be*-a(o(Sr*T/2),Re)*P);rr.lineEnd(),rr.polygonEnd()},Ht},tt.scale(218.695).center([0,28.0974])}function Se(ve,be){var Re=b(be/2),Be=G(1-Re*Re),tt=1+Be*o(ve/=2),We=x(ve)*Be/tt,it=Re/tt,Dt=We*We,Ht=it*it;return[4/3*We*(3+Dt-3*Ht),4/3*it*(3+3*Dt-Ht)]}Se.invert=function(ve,be){if(ve*=3/8,be*=3/8,!ve&&n(be)>1)return null;var Re=ve*ve,Be=be*be,tt=1+Re+Be,We=G((tt-G(tt*tt-4*be*be))/2),it=O(We)/3,Dt=We?re(n(be/We))/3:j(n(ve))/3,Ht=o(it),rr=N(Dt),dr=rr*rr-Ht*Ht;return[v(ve)*2*a(H(Dt)*Ht,.25-dr),v(be)*2*a(rr*x(it),.25+dr)]};function Le(){return t.geoProjection(Se).scale(66.1603)}var Ae=G(8),De=u(1+k);function Pe(ve,be){var Re=n(be);return ReC&&--Be>0);return[ve/(o(Re)*(Ae-1/x(Re))),v(be)*Re]};function ge(){return t.geoProjection(Pe).scale(112.314)}function Fe(ve){var be=2*E/ve;function Re(Be,tt){var We=t.geoAzimuthalEquidistantRaw(Be,tt);if(n(Be)>A){var it=a(We[1],We[0]),Dt=G(We[0]*We[0]+We[1]*We[1]),Ht=be*d((it-A)/be)+A,rr=a(x(it-=Ht),2-o(it));it=Ht+O(E/Dt*x(rr))-rr,We[0]=Dt*o(it),We[1]=Dt*x(it)}return We}return Re.invert=function(Be,tt){var We=G(Be*Be+tt*tt);if(We>A){var it=a(tt,Be),Dt=be*d((it-A)/be)+A,Ht=it>Dt?-1:1,rr=We*o(Dt-it),dr=1/b(Ht*V((rr-E)/G(E*(E-2*rr)+We*We)));it=Dt+2*i((dr+Ht*G(dr*dr-3))/3),Be=We*o(it),tt=We*x(it)}return t.geoAzimuthalEquidistantRaw.invert(Be,tt)},Re}function ce(){var ve=5,be=t.geoProjectionMutator(Fe),Re=be(ve),Be=Re.stream,tt=.01,We=-o(tt*T),it=x(tt*T);return Re.lobes=function(Dt){return arguments.length?be(ve=+Dt):ve},Re.stream=function(Dt){var Ht=Re.rotate(),rr=Be(Dt),dr=(Re.rotate([0,0]),Be(Dt));return Re.rotate(Ht),rr.sphere=function(){dr.polygonStart(),dr.lineStart();for(var Sr=0,Or=360/ve,jr=2*E/ve,ii=90-180/ve,Li=A;Sr0&&n(tt)>p);return Be<0?NaN:Re}function st(ve,be,Re){return be===void 0&&(be=40),Re===void 0&&(Re=C),function(Be,tt,We,it){var Dt,Ht,rr;We=We===void 0?0:+We,it=it===void 0?0:+it;for(var dr=0;drDt){We-=Ht/=2,it-=rr/=2;continue}Dt=ii;var Li=(We>0?-1:1)*Re,un=(it>0?-1:1)*Re,sn=ve(We+Li,it),In=ve(We,it+un),Kn=(sn[0]-Sr[0])/Li,Aa=(sn[1]-Sr[1])/Li,fa=(In[0]-Sr[0])/un,$a=(In[1]-Sr[1])/un,ko=$a*Kn-Aa*fa,Qa=(n(ko)<.5?.5:1)/ko;if(Ht=(jr*fa-Or*$a)*Qa,rr=(Or*Aa-jr*Kn)*Qa,We+=Ht,it+=rr,n(Ht)0&&(Dt[1]*=1+Ht/1.5*Dt[0]*Dt[0]),Dt}return Be.invert=st(Be),Be}function Gt(){return t.geoProjection(lt()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Nt(ve,be){var Re=ve*x(be),Be=30,tt;do be-=tt=(be+x(be)-Re)/(1+o(be));while(n(tt)>p&&--Be>0);return be/2}function $t(ve,be,Re){function Be(tt,We){return[ve*tt*o(We=Nt(Re,We)),be*x(We)]}return Be.invert=function(tt,We){return We=O(We/be),[tt/(ve*o(We)),O((2*We+x(2*We))/Re)]},Be}var sr=$t(k/A,k,E);function wr(){return t.geoProjection(sr).scale(169.529)}var ur=2.00276,Qe=1.11072;function Et(ve,be){var Re=Nt(E,be);return[ur*ve/(1/o(be)+Qe/o(Re)),(be+k*x(Re))/ur]}Et.invert=function(ve,be){var Re=ur*be,Be=be<0?-L:L,tt=25,We,it;do it=Re-k*x(Be),Be-=We=(x(2*Be)+2*Be-E*x(it))/(2*o(2*Be)+2+E*o(it)*k*o(Be));while(n(We)>p&&--tt>0);return it=Re-k*x(Be),[ve*(1/o(it)+Qe/o(Be))/ur,it]};function er(){return t.geoProjection(Et).scale(160.857)}function Ut(ve){var be=0,Re=t.geoProjectionMutator(ve),Be=Re(be);return Be.parallel=function(tt){return arguments.length?Re(be=tt*T):be*P},Be}function Ft(ve,be){return[ve*o(be),be]}Ft.invert=function(ve,be){return[ve/o(be),be]};function bt(){return t.geoProjection(Ft).scale(152.63)}function yt(ve){if(!ve)return Ft;var be=1/b(ve);function Re(Be,tt){var We=be+ve-tt,it=We&&Be*o(tt)/We;return[We*x(it),be-We*o(it)]}return Re.invert=function(Be,tt){var We=G(Be*Be+(tt=be-tt)*tt),it=be+ve-We;return[We/o(it)*a(Be,tt),it]},Re}function Yt(){return Ut(yt).scale(123.082).center([0,26.1441]).parallel(45)}function lr(ve){function be(Re,Be){var tt=A-Be,We=tt&&Re*ve*x(tt)/tt;return[tt*x(We)/ve,A-tt*o(We)]}return be.invert=function(Re,Be){var tt=Re*ve,We=A-Be,it=G(tt*tt+We*We),Dt=a(tt,We);return[(it?it/x(it):1)*Dt/ve,A-it]},be}function Tr(){var ve=.5,be=t.geoProjectionMutator(lr),Re=be(ve);return Re.fraction=function(Be){return arguments.length?be(ve=+Be):ve},Re.scale(158.837)}var Rr=$t(1,4/E,E);function ei(){return t.geoProjection(Rr).scale(152.63)}function Wr(ve,be,Re,Be,tt,We){var it=o(We),Dt;if(n(ve)>1||n(We)>1)Dt=V(Re*tt+be*Be*it);else{var Ht=x(ve/2),rr=x(We/2);Dt=2*O(G(Ht*Ht+be*Be*rr*rr))}return n(Dt)>p?[Dt,a(Be*x(We),be*tt-Re*Be*it)]:[0,0]}function Ur(ve,be,Re){return V((ve*ve+be*be-Re*Re)/(2*ve*be))}function dt(ve){return ve-2*E*l((ve+E)/(2*E))}function Ge(ve,be,Re){for(var Be=[[ve[0],ve[1],x(ve[1]),o(ve[1])],[be[0],be[1],x(be[1]),o(be[1])],[Re[0],Re[1],x(Re[1]),o(Re[1])]],tt=Be[2],We,it=0;it<3;++it,tt=We)We=Be[it],tt.v=Wr(We[1]-tt[1],tt[3],tt[2],We[3],We[2],We[0]-tt[0]),tt.point=[0,0];var Dt=Ur(Be[0].v[0],Be[2].v[0],Be[1].v[0]),Ht=Ur(Be[0].v[0],Be[1].v[0],Be[2].v[0]),rr=E-Dt;Be[2].point[1]=0,Be[0].point[0]=-(Be[1].point[0]=Be[0].v[0]/2);var dr=[Be[2].point[0]=Be[0].point[0]+Be[2].v[0]*o(Dt),2*(Be[0].point[1]=Be[1].point[1]=Be[2].v[0]*x(Dt))];function Sr(Or,jr){var ii=x(jr),Li=o(jr),un=new Array(3),sn;for(sn=0;sn<3;++sn){var In=Be[sn];if(un[sn]=Wr(jr-In[1],In[3],In[2],Li,ii,Or-In[0]),!un[sn][0])return In.point;un[sn][1]=dt(un[sn][1]-In.v[1])}var Kn=dr.slice();for(sn=0;sn<3;++sn){var Aa=sn==2?0:sn+1,fa=Ur(Be[sn].v[0],un[sn][0],un[Aa][0]);un[sn][1]<0&&(fa=-fa),sn?sn==1?(fa=Ht-fa,Kn[0]-=un[sn][0]*o(fa),Kn[1]-=un[sn][0]*x(fa)):(fa=rr-fa,Kn[0]+=un[sn][0]*o(fa),Kn[1]+=un[sn][0]*x(fa)):(Kn[0]+=un[sn][0]*o(fa),Kn[1]-=un[sn][0]*x(fa))}return Kn[0]/=3,Kn[1]/=3,Kn}return Sr}function Je(ve){return ve[0]*=T,ve[1]*=T,ve}function je(){return $e([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function $e(ve,be,Re){var Be=t.geoCentroid({type:"MultiPoint",coordinates:[ve,be,Re]}),tt=[-Be[0],-Be[1]],We=t.geoRotation(tt),it=Ge(Je(We(ve)),Je(We(be)),Je(We(Re)));it.invert=st(it);var Dt=t.geoProjection(it).rotate(tt),Ht=Dt.center;return delete Dt.rotate,Dt.center=function(rr){return arguments.length?Ht(We(rr)):We.invert(Ht())},Dt.clipAngle(90)}function wt(ve,be){var Re=G(1-x(be));return[2/M*ve*Re,M*(1-Re)]}wt.invert=function(ve,be){var Re=(Re=be/M-1)*Re;return[Re>0?ve*G(E/Re)/2:0,O(1-Re)]};function Ie(){return t.geoProjection(wt).scale(95.6464).center([0,30])}function xe(ve){var be=b(ve);function Re(Be,tt){return[Be,(Be?Be/x(Be):1)*(x(tt)*o(Be)-be*o(tt))]}return Re.invert=be?function(Be,tt){Be&&(tt*=x(Be)/Be);var We=o(Be);return[Be,2*a(G(We*We+be*be-tt*tt)-We,be-tt)]}:function(Be,tt){return[Be,O(Be?tt*b(Be)/Be:tt)]},Re}function Ce(){return Ut(xe).scale(249.828).clipAngle(90)}var vt=G(3);function nr(ve,be){return[vt*ve*(2*o(2*be/3)-1)/M,vt*M*x(be/3)]}nr.invert=function(ve,be){var Re=3*O(be/(vt*M));return[M*ve/(vt*(2*o(2*Re/3)-1)),Re]};function ir(){return t.geoProjection(nr).scale(156.19)}function pr(ve){var be=o(ve);function Re(Be,tt){return[Be*be,x(tt)/be]}return Re.invert=function(Be,tt){return[Be/be,O(tt*be)]},Re}function oi(){return Ut(pr).parallel(38.58).scale(195.044)}function di(ve){var be=o(ve);function Re(Be,tt){return[Be*be,(1+be)*b(tt/2)]}return Re.invert=function(Be,tt){return[Be/be,i(tt/(1+be))*2]},Re}function Jr(){return Ut(di).scale(124.75)}function fi(ve,be){var Re=G(8/(3*E));return[Re*ve*(1-n(be)/E),Re*be]}fi.invert=function(ve,be){var Re=G(8/(3*E)),Be=be/Re;return[ve/(Re*(1-n(Be)/E)),Be]};function Hi(){return t.geoProjection(fi).scale(165.664)}function Pn(ve,be){var Re=G(4-3*x(n(be)));return[2/G(6*E)*ve*Re,v(be)*G(2*E/3)*(2-Re)]}Pn.invert=function(ve,be){var Re=2-n(be)/G(2*E/3);return[ve*G(6*E)/(2*Re),v(be)*O((4-Re*Re)/3)]};function wn(){return t.geoProjection(Pn).scale(165.664)}function pn(ve,be){var Re=G(E*(4+E));return[2/Re*ve*(1+G(1-4*be*be/(E*E))),4/Re*be]}pn.invert=function(ve,be){var Re=G(E*(4+E))/2;return[ve*Re/(1+G(1-be*be*(4+E)/(4*E))),be*Re/2]};function Vn(){return t.geoProjection(pn).scale(180.739)}function kn(ve,be){var Re=(2+A)*x(be);be/=2;for(var Be=0,tt=1/0;Be<10&&n(tt)>p;Be++){var We=o(be);be-=tt=(be+x(be)*(We+2)-Re)/(2*We*(1+We))}return[2/G(E*(4+E))*ve*(1+o(be)),2*G(E/(4+E))*x(be)]}kn.invert=function(ve,be){var Re=be*G((4+E)/E)/2,Be=O(Re),tt=o(Be);return[ve/(2/G(E*(4+E))*(1+tt)),O((Be+Re*(tt+2))/(2+A))]};function ea(){return t.geoProjection(kn).scale(180.739)}function ua(ve,be){return[ve*(1+o(be))/G(2+E),2*be/G(2+E)]}ua.invert=function(ve,be){var Re=G(2+E),Be=be*Re/2;return[Re*ve/(1+o(Be)),Be]};function Vt(){return t.geoProjection(ua).scale(173.044)}function _t(ve,be){for(var Re=(1+A)*x(be),Be=0,tt=1/0;Be<10&&n(tt)>p;Be++)be-=tt=(be+x(be)-Re)/(1+o(be));return Re=G(2+E),[ve*(1+o(be))/Re,2*be/Re]}_t.invert=function(ve,be){var Re=1+A,Be=G(Re/2);return[ve*2*Be/(1+o(be*=Be)),O((be+x(be))/Re)]};function tr(){return t.geoProjection(_t).scale(173.044)}var ar=3+2*k;function Er(ve,be){var Re=x(ve/=2),Be=o(ve),tt=G(o(be)),We=o(be/=2),it=x(be)/(We+k*Be*tt),Dt=G(2/(1+it*it)),Ht=G((k*We+(Be+Re)*tt)/(k*We+(Be-Re)*tt));return[ar*(Dt*(Ht-1/Ht)-2*u(Ht)),ar*(Dt*it*(Ht+1/Ht)-2*i(it))]}Er.invert=function(ve,be){if(!(We=Se.invert(ve/1.2,be*1.065)))return null;var Re=We[0],Be=We[1],tt=20,We;ve/=ar,be/=ar;do{var it=Re/2,Dt=Be/2,Ht=x(it),rr=o(it),dr=x(Dt),Sr=o(Dt),Or=o(Be),jr=G(Or),ii=dr/(Sr+k*rr*jr),Li=ii*ii,un=G(2/(1+Li)),sn=k*Sr+(rr+Ht)*jr,In=k*Sr+(rr-Ht)*jr,Kn=sn/In,Aa=G(Kn),fa=Aa-1/Aa,$a=Aa+1/Aa,ko=un*fa-2*u(Aa)-ve,Qa=un*ii*$a-2*i(ii)-be,mo=dr&&_*jr*Ht*Li/dr,Bo=(k*rr*Sr+jr)/(2*(Sr+k*rr*jr)*(Sr+k*rr*jr)*jr),Is=-.5*ii*un*un*un,As=Is*mo,wo=Is*Bo,To=(To=2*Sr+k*jr*(rr-Ht))*To*Aa,dl=(k*rr*Sr*jr+Or)/To,Ul=-(k*Ht*dr)/(jr*To),Lu=fa*As-2*dl/Aa+un*(dl+dl/Kn),au=fa*wo-2*Ul/Aa+un*(Ul+Ul/Kn),$s=ii*$a*As-2*mo/(1+Li)+un*$a*mo+un*ii*(dl-dl/Kn),Ql=ii*$a*wo-2*Bo/(1+Li)+un*$a*Bo+un*ii*(Ul-Ul/Kn),dc=au*$s-Ql*Lu;if(!dc)break;var Al=(Qa*au-ko*Ql)/dc,Sl=(ko*$s-Qa*Lu)/dc;Re-=Al,Be=c(-A,f(A,Be-Sl))}while((n(Al)>p||n(Sl)>p)&&--tt>0);return n(n(Be)-A)Be){var Sr=G(dr),Or=a(rr,Ht),jr=Re*d(Or/Re),ii=Or-jr,Li=ve*o(ii),un=(ve*x(ii)-ii*x(Li))/(A-Li),sn=Wa(ii,un),In=(E-ve)/Fa(sn,Li,E);Ht=Sr;var Kn=50,Aa;do Ht-=Aa=(ve+Fa(sn,Li,Ht)*In-Sr)/(sn(Ht)*In);while(n(Aa)>p&&--Kn>0);rr=ii*x(Ht),HtBe){var Ht=G(Dt),rr=a(it,We),dr=Re*d(rr/Re),Sr=rr-dr;We=Ht*o(Sr),it=Ht*x(Sr);for(var Or=We-A,jr=x(We),ii=it/jr,Li=Wep||n(ii)>p)&&--Li>0);return[Sr,Or]},Ht}var Wn=da(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ga(){return t.geoProjection(Wn).scale(149.995)}var vo=da(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function jn(){return t.geoProjection(vo).scale(153.93)}var St=da(5/6*E,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Cr(){return t.geoProjection(St).scale(130.945)}function Qr(ve,be){var Re=ve*ve,Be=be*be;return[ve*(1-.162388*Be)*(.87-952426e-9*Re*Re),be*(1+Be/12)]}Qr.invert=function(ve,be){var Re=ve,Be=be,tt=50,We;do{var it=Be*Be;Be-=We=(Be*(1+it/12)-be)/(1+it/4)}while(n(We)>p&&--tt>0);tt=50,ve/=1-.162388*it;do{var Dt=(Dt=Re*Re)*Dt;Re-=We=(Re*(.87-952426e-9*Dt)-ve)/(.87-.00476213*Dt)}while(n(We)>p&&--tt>0);return[Re,Be]};function pi(){return t.geoProjection(Qr).scale(131.747)}var fn=da(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Sn(){return t.geoProjection(fn).scale(131.087)}function En(ve){var be=ve(A,0)[0]-ve(-A,0)[0];function Re(Be,tt){var We=Be>0?-.5:.5,it=ve(Be+We*E,tt);return it[0]-=We*be,it}return ve.invert&&(Re.invert=function(Be,tt){var We=Be>0?-.5:.5,it=ve.invert(Be+We*be,tt),Dt=it[0]-We*E;return Dt<-E?Dt+=2*E:Dt>E&&(Dt-=2*E),it[0]=Dt,it}),Re}function ki(ve,be){var Re=v(ve),Be=v(be),tt=o(be),We=o(ve)*tt,it=x(ve)*tt,Dt=x(Be*be);ve=n(a(it,Dt)),be=O(We),n(ve-A)>p&&(ve%=A);var Ht=_n(ve>E/4?A-ve:ve,be);return ve>E/4&&(Dt=Ht[0],Ht[0]=-Ht[1],Ht[1]=-Dt),Ht[0]*=Re,Ht[1]*=-Be,Ht}ki.invert=function(ve,be){n(ve)>1&&(ve=v(ve)*2-ve),n(be)>1&&(be=v(be)*2-be);var Re=v(ve),Be=v(be),tt=-Re*ve,We=-Be*be,it=We/tt<1,Dt=ya(it?We:tt,it?tt:We),Ht=Dt[0],rr=Dt[1],dr=o(rr);return it&&(Ht=-A-Ht),[Re*(a(x(Ht)*dr,-x(rr))+E),Be*O(o(Ht)*dr)]};function _n(ve,be){if(be===A)return[0,0];var Re=x(be),Be=Re*Re,tt=Be*Be,We=1+tt,it=1+3*tt,Dt=1-tt,Ht=O(1/G(We)),rr=Dt+Be*We*Ht,dr=(1-Re)/rr,Sr=G(dr),Or=dr*We,jr=G(Or),ii=Sr*Dt,Li,un;if(ve===0)return[0,-(ii+Be*jr)];var sn=o(be),In=1/sn,Kn=2*Re*sn,Aa=(-3*Be+Ht*it)*Kn,fa=(-rr*sn-(1-Re)*Aa)/(rr*rr),$a=.5*fa/Sr,ko=Dt*$a-2*Be*Sr*Kn,Qa=Be*We*fa+dr*it*Kn,mo=-In*Kn,Bo=-In*Qa,Is=-2*In*ko,As=4*ve/E,wo;if(ve>.222*E||be.175*E){if(Li=(ii+Be*G(Or*(1+tt)-ii*ii))/(1+tt),ve>E/4)return[Li,Li];var To=Li,dl=.5*Li;Li=.5*(dl+To),un=50;do{var Ul=G(Or-Li*Li),Lu=Li*(Is+mo*Ul)+Bo*O(Li/jr)-As;if(!Lu)break;Lu<0?dl=Li:To=Li,Li=.5*(dl+To)}while(n(To-dl)>p&&--un>0)}else{Li=p,un=25;do{var au=Li*Li,$s=G(Or-au),Ql=Is+mo*$s,dc=Li*Ql+Bo*O(Li/jr)-As,Al=Ql+(Bo-mo*au)/$s;Li-=wo=$s?dc/Al:0}while(n(wo)>p&&--un>0)}return[Li,-ii-Be*G(Or-Li*Li)]}function ya(ve,be){for(var Re=0,Be=1,tt=.5,We=50;;){var it=tt*tt,Dt=G(tt),Ht=O(1/G(1+it)),rr=1-it+tt*(1+it)*Ht,dr=(1-Dt)/rr,Sr=G(dr),Or=dr*(1+it),jr=Sr*(1-it),ii=Or-ve*ve,Li=G(ii),un=be+jr+tt*Li;if(n(Be-Re)0?Re=tt:Be=tt,tt=.5*(Re+Be)}if(!We)return null;var sn=O(Dt),In=o(sn),Kn=1/In,Aa=2*Dt*In,fa=(-3*tt+Ht*(1+3*it))*Aa,$a=(-rr*In-(1-Dt)*fa)/(rr*rr),ko=.5*$a/Sr,Qa=(1-it)*ko-2*tt*Sr*Aa,mo=-2*Kn*Qa,Bo=-Kn*Aa,Is=-Kn*(tt*(1+it)*$a+dr*(1+3*it)*Aa);return[E/4*(ve*(mo+Bo*Li)+Is*O(ve/G(Or))),sn]}function Jn(){return t.geoProjection(En(ki)).scale(239.75)}function Ma(ve,be,Re){var Be,tt,We;return ve?(Be=_o(ve,Re),be?(tt=_o(be,1-Re),We=tt[1]*tt[1]+Re*Be[0]*Be[0]*tt[0]*tt[0],[[Be[0]*tt[2]/We,Be[1]*Be[2]*tt[0]*tt[1]/We],[Be[1]*tt[1]/We,-Be[0]*Be[2]*tt[0]*tt[2]/We],[Be[2]*tt[1]*tt[2]/We,-Re*Be[0]*Be[1]*tt[0]/We]]):[[Be[0],0],[Be[1],0],[Be[2],0]]):(tt=_o(be,1-Re),[[0,tt[0]/tt[1]],[1/tt[1],0],[tt[2]/tt[1],0]])}function _o(ve,be){var Re,Be,tt,We,it;if(be=1-p)return Re=(1-be)/4,Be=N(ve),We=Z(ve),tt=1/Be,it=Be*H(ve),[We+Re*(it-ve)/(Be*Be),tt-Re*We*tt*(it-ve),tt+Re*We*tt*(it+ve),2*i(s(ve))-A+Re*(it-ve)/Be];var Dt=[1,0,0,0,0,0,0,0,0],Ht=[G(be),0,0,0,0,0,0,0,0],rr=0;for(Be=G(1-be),it=1;n(Ht[rr]/Dt[rr])>p&&rr<8;)Re=Dt[rr++],Ht[rr]=(Re-Be)/2,Dt[rr]=(Re+Be)/2,Be=G(Re*Be),it*=2;tt=it*Dt[rr]*ve;do We=Ht[rr]*x(Be=tt)/Dt[rr],tt=(O(We)+tt)/2;while(--rr);return[x(tt),We=o(tt),We/o(tt-Be),tt]}function No(ve,be,Re){var Be=n(ve),tt=n(be),We=H(tt);if(Be){var it=1/x(Be),Dt=1/(b(Be)*b(Be)),Ht=-(Dt+Re*(We*We*it*it)-1+Re),rr=(Re-1)*Dt,dr=(-Ht+G(Ht*Ht-4*rr))/2;return[po(i(1/G(dr)),Re)*v(ve),po(i(G((dr/Dt-1)/Re)),1-Re)*v(be)]}return[0,po(i(We),1-Re)*v(be)]}function po(ve,be){if(!be)return ve;if(be===1)return u(b(ve/2+L));for(var Re=1,Be=G(1-be),tt=G(be),We=0;n(tt)>p;We++){if(ve%E){var it=i(Be*b(ve)/Re);it<0&&(it+=E),ve+=it+~~(ve/E)*E}else ve+=ve;tt=(Re+Be)/2,Be=G(Re*Be),tt=((Re=tt)-Be)/2}return ve/(h(2,We)*Re)}function Lo(ve,be){var Re=(k-1)/(k+1),Be=G(1-Re*Re),tt=po(A,Be*Be),We=-1,it=u(b(E/4+n(be)/2)),Dt=s(We*it)/G(Re),Ht=Co(Dt*o(We*ve),Dt*x(We*ve)),rr=No(Ht[0],Ht[1],Be*Be);return[-rr[1],(be>=0?1:-1)*(.5*tt-rr[0])]}function Co(ve,be){var Re=ve*ve,Be=be+1,tt=1-Re-be*be;return[.5*((ve>=0?A:-A)-a(tt,2*ve)),-.25*u(tt*tt+4*Re)+.5*u(Be*Be+Re)]}function Fs(ve,be){var Re=be[0]*be[0]+be[1]*be[1];return[(ve[0]*be[0]+ve[1]*be[1])/Re,(ve[1]*be[0]-ve[0]*be[1])/Re]}Lo.invert=function(ve,be){var Re=(k-1)/(k+1),Be=G(1-Re*Re),tt=po(A,Be*Be),We=-1,it=Ma(.5*tt-be,-ve,Be*Be),Dt=Fs(it[0],it[1]),Ht=a(Dt[1],Dt[0])/We;return[Ht,2*i(s(.5/We*u(Re*Dt[0]*Dt[0]+Re*Dt[1]*Dt[1])))-A]};function zs(){return t.geoProjection(En(Lo)).scale(151.496)}function ul(ve){var be=x(ve),Re=o(ve),Be=cl(ve);Be.invert=cl(-ve);function tt(We,it){var Dt=Be(We,it);We=Dt[0],it=Dt[1];var Ht=x(it),rr=o(it),dr=o(We),Sr=V(be*Ht+Re*rr*dr),Or=x(Sr),jr=n(Or)>p?Sr/Or:1;return[jr*Re*x(We),(n(We)>A?jr:-jr)*(be*rr-Re*Ht*dr)]}return tt.invert=function(We,it){var Dt=G(We*We+it*it),Ht=-x(Dt),rr=o(Dt),dr=Dt*rr,Sr=-it*Ht,Or=Dt*be,jr=G(dr*dr+Sr*Sr-Or*Or),ii=a(dr*Or+Sr*jr,Sr*Or-dr*jr),Li=(Dt>A?-1:1)*a(We*Ht,Dt*o(ii)*rr+it*x(ii)*Ht);return Be.invert(Li,ii)},tt}function cl(ve){var be=x(ve),Re=o(ve);return function(Be,tt){var We=o(tt),it=o(Be)*We,Dt=x(Be)*We,Ht=x(tt);return[a(Dt,it*Re-Ht*be),O(Ht*Re+it*be)]}}function zl(){var ve=0,be=t.geoProjectionMutator(ul),Re=be(ve),Be=Re.rotate,tt=Re.stream,We=t.geoCircle();return Re.parallel=function(it){if(!arguments.length)return ve*P;var Dt=Re.rotate();return be(ve=it*T).rotate(Dt)},Re.rotate=function(it){return arguments.length?(Be.call(Re,[it[0],it[1]-ve*P]),We.center([-it[0],-it[1]]),Re):(it=Be.call(Re),it[1]+=ve*P,it)},Re.stream=function(it){return it=tt(it),it.sphere=function(){it.polygonStart();var Dt=.01,Ht=We.radius(90-Dt)().coordinates[0],rr=Ht.length-1,dr=-1,Sr;for(it.lineStart();++dr=0;)it.point((Sr=Ht[dr])[0],Sr[1]);it.lineEnd(),it.polygonEnd()},it},Re.scale(79.4187).parallel(45).clipAngle(180-.001)}var cs=3,nl=O(1-1/cs)*P,Ss=pr(0);function fl(ve){var be=nl*T,Re=wt(E,be)[0]-wt(-E,be)[0],Be=Ss(0,be)[1],tt=wt(0,be)[1],We=M-tt,it=g/ve,Dt=4/g,Ht=Be+We*We*4/g;function rr(dr,Sr){var Or,jr=n(Sr);if(jr>be){var ii=f(ve-1,c(0,l((dr+E)/it)));dr+=E*(ve-1)/ve-ii*it,Or=wt(dr,jr),Or[0]=Or[0]*g/Re-g*(ve-1)/(2*ve)+ii*g/ve,Or[1]=Be+(Or[1]-tt)*4*We/g,Sr<0&&(Or[1]=-Or[1])}else Or=Ss(dr,Sr);return Or[0]*=Dt,Or[1]/=Ht,Or}return rr.invert=function(dr,Sr){dr/=Dt,Sr*=Ht;var Or=n(Sr);if(Or>Be){var jr=f(ve-1,c(0,l((dr+E)/it)));dr=(dr+E*(ve-1)/ve-jr*it)*Re/g;var ii=wt.invert(dr,.25*(Or-Be)*g/We+tt);return ii[0]-=E*(ve-1)/ve-jr*it,Sr<0&&(ii[1]=-ii[1]),ii}return Ss.invert(dr,Sr)},rr}function Js(ve,be){return[ve,be&1?90-p:nl]}function Os(ve,be){return[ve,be&1?-90+p:-nl]}function Io(ve){return[ve[0]*(1-p),ve[1]]}function us(ve){var be=[].concat(r.range(-180,180+ve/2,ve).map(Js),r.range(180,-180-ve/2,-ve).map(Os));return{type:"Polygon",coordinates:[ve===180?be.map(Io):be]}}function Zl(){var ve=4,be=t.geoProjectionMutator(fl),Re=be(ve),Be=Re.stream;return Re.lobes=function(tt){return arguments.length?be(ve=+tt):ve},Re.stream=function(tt){var We=Re.rotate(),it=Be(tt),Dt=(Re.rotate([0,0]),Be(tt));return Re.rotate(We),it.sphere=function(){t.geoStream(us(180/ve),Dt)},it},Re.scale(239.75)}function Su(ve){var be=1+ve,Re=x(1/be),Be=O(Re),tt=2*G(E/(We=E+4*Be*be)),We,it=.5*tt*(be+G(ve*(2+ve))),Dt=ve*ve,Ht=be*be;function rr(dr,Sr){var Or=1-x(Sr),jr,ii;if(Or&&Or<2){var Li=A-Sr,un=25,sn;do{var In=x(Li),Kn=o(Li),Aa=Be+a(In,be-Kn),fa=1+Ht-2*be*Kn;Li-=sn=(Li-Dt*Be-be*In+fa*Aa-.5*Or*We)/(2*be*In*Aa)}while(n(sn)>C&&--un>0);jr=tt*G(fa),ii=dr*Aa/E}else jr=tt*(ve+Or),ii=dr*Be/E;return[jr*x(ii),it-jr*o(ii)]}return rr.invert=function(dr,Sr){var Or=dr*dr+(Sr-=it)*Sr,jr=(1+Ht-Or/(tt*tt))/(2*be),ii=V(jr),Li=x(ii),un=Be+a(Li,be-jr);return[O(dr/G(Or))*E/un,O(1-2*(ii-Dt*Be-be*Li+(1+Ht-2*be*jr)*un)/We)]},rr}function nc(){var ve=1,be=t.geoProjectionMutator(Su),Re=be(ve);return Re.ratio=function(Be){return arguments.length?be(ve=+Be):ve},Re.scale(167.774).center([0,18.67])}var ws=.7109889596207567,Fn=.0528035274542;function _a(ve,be){return be>-ws?(ve=sr(ve,be),ve[1]+=Fn,ve):Ft(ve,be)}_a.invert=function(ve,be){return be>-ws?sr.invert(ve,be-Fn):Ft.invert(ve,be)};function Vu(){return t.geoProjection(_a).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ol(ve,be){return n(be)>ws?(ve=sr(ve,be),ve[1]-=be>0?Fn:-Fn,ve):Ft(ve,be)}Ol.invert=function(ve,be){return n(be)>ws?sr.invert(ve,be+(be>0?Fn:-Fn)):Ft.invert(ve,be)};function xo(){return t.geoProjection(Ol).scale(152.63)}function Yl(ve,be,Re,Be){var tt=G(4*E/(2*Re+(1+ve-be/2)*x(2*Re)+(ve+be)/2*x(4*Re)+be/2*x(6*Re))),We=G(Be*x(Re)*G((1+ve*o(2*Re)+be*o(4*Re))/(1+ve+be))),it=Re*Ht(1);function Dt(Sr){return G(1+ve*o(2*Sr)+be*o(4*Sr))}function Ht(Sr){var Or=Sr*Re;return(2*Or+(1+ve-be/2)*x(2*Or)+(ve+be)/2*x(4*Or)+be/2*x(6*Or))/Re}function rr(Sr){return Dt(Sr)*x(Sr)}var dr=function(Sr,Or){var jr=Re*Wt(Ht,it*x(Or)/Re,Or/E);isNaN(jr)&&(jr=Re*v(Or));var ii=tt*Dt(jr);return[ii*We*Sr/E*o(jr),ii/We*x(jr)]};return dr.invert=function(Sr,Or){var jr=Wt(rr,Or*We/tt);return[Sr*E/(o(jr)*tt*We*Dt(jr)),O(Re*Ht(jr/Re)/it)]},Re===0&&(tt=G(Be/E),dr=function(Sr,Or){return[Sr*tt,x(Or)/tt]},dr.invert=function(Sr,Or){return[Sr/tt,O(Or*tt)]}),dr}function Us(){var ve=1,be=0,Re=45*T,Be=2,tt=t.geoProjectionMutator(Yl),We=tt(ve,be,Re,Be);return We.a=function(it){return arguments.length?tt(ve=+it,be,Re,Be):ve},We.b=function(it){return arguments.length?tt(ve,be=+it,Re,Be):be},We.psiMax=function(it){return arguments.length?tt(ve,be,Re=+it*T,Be):Re*P},We.ratio=function(it){return arguments.length?tt(ve,be,Re,Be=+it):Be},We.scale(180.739)}function Hl(ve,be,Re,Be,tt,We,it,Dt,Ht,rr,dr){if(dr.nanEncountered)return NaN;var Sr,Or,jr,ii,Li,un,sn,In,Kn,Aa;if(Sr=Re-be,Or=ve(be+Sr*.25),jr=ve(Re-Sr*.25),isNaN(Or)){dr.nanEncountered=!0;return}if(isNaN(jr)){dr.nanEncountered=!0;return}return ii=Sr*(Be+4*Or+tt)/12,Li=Sr*(tt+4*jr+We)/12,un=ii+Li,Aa=(un-it)/15,rr>Ht?(dr.maxDepthCount++,un+Aa):Math.abs(Aa)>1;do Ht[un]>jr?Li=un:ii=un,un=ii+Li>>1;while(un>ii);var sn=Ht[un+1]-Ht[un];return sn&&(sn=(jr-Ht[un+1])/sn),(un+1+sn)/it}var Sr=2*dr(1)/E*We/Re,Or=function(jr,ii){var Li=dr(n(x(ii))),un=Be(Li)*jr;return Li/=Sr,[un,ii>=0?Li:-Li]};return Or.invert=function(jr,ii){var Li;return ii*=Sr,n(ii)<1&&(Li=v(ii)*O(tt(n(ii))*We)),[jr/Be(n(ii)),Li]},Or}function Oo(){var ve=0,be=2.5,Re=1.183136,Be=t.geoProjectionMutator(aa),tt=Be(ve,be,Re);return tt.alpha=function(We){return arguments.length?Be(ve=+We,be,Re):ve},tt.k=function(We){return arguments.length?Be(ve,be=+We,Re):be},tt.gamma=function(We){return arguments.length?Be(ve,be,Re=+We):Re},tt.scale(152.63)}function qo(ve,be){return n(ve[0]-be[0])=0;--Ht)Re=ve[1][Ht],Be=Re[0][0],tt=Re[0][1],We=Re[1][1],it=Re[2][0],Dt=Re[2][1],be.push(ql([[it-p,Dt-p],[it-p,We+p],[Be+p,We+p],[Be+p,tt-p]],30));return{type:"Polygon",coordinates:[r.merge(be)]}}function Do(ve,be,Re){var Be,tt;function We(Ht,rr){for(var dr=rr<0?-1:1,Sr=be[+(rr<0)],Or=0,jr=Sr.length-1;OrSr[Or][2][0];++Or);var ii=ve(Ht-Sr[Or][1][0],rr);return ii[0]+=ve(Sr[Or][1][0],dr*rr>dr*Sr[Or][0][1]?Sr[Or][0][1]:rr)[0],ii}Re?We.invert=Re(We):ve.invert&&(We.invert=function(Ht,rr){for(var dr=tt[+(rr<0)],Sr=be[+(rr<0)],Or=0,jr=dr.length;Orii&&(Li=jr,jr=ii,ii=Li),[[Sr,jr],[Or,ii]]})}),it):be.map(function(rr){return rr.map(function(dr){return[[dr[0][0]*P,dr[0][1]*P],[dr[1][0]*P,dr[1][1]*P],[dr[2][0]*P,dr[2][1]*P]]})})},be!=null&&it.lobes(be),it}var rf=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Uf(){return Do(Et,rf).scale(160.857)}var ml=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Zc(){return Do(Ol,ml).scale(152.63)}var Kl=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function qs(){return Do(sr,Kl).scale(169.529)}var yu=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function oc(){return Do(sr,yu).scale(169.529).rotate([20,0])}var Cf=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function sc(){return Do(_a,Cf,st).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Nh=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function kf(){return Do(Ft,Nh).scale(152.63).rotate([-20,0])}function fs(ve,be){return[3/g*ve*G(E*E/3-be*be),be]}fs.invert=function(ve,be){return[g/3*ve/G(E*E/3-be*be),be]};function nf(){return t.geoProjection(fs).scale(158.837)}function Vf(ve){function be(Re,Be){if(n(n(Be)-A)2)return null;Re/=2,Be/=2;var We=Re*Re,it=Be*Be,Dt=2*Be/(1+We+it);return Dt=h((1+Dt)/(1-Dt),1/ve),[a(2*Re,1-We-it)/ve,O((Dt-1)/(Dt+1))]},be}function Jl(){var ve=.5,be=t.geoProjectionMutator(Vf),Re=be(ve);return Re.spacing=function(Be){return arguments.length?be(ve=+Be):ve},Re.scale(124.75)}var hl=E/k;function lc(ve,be){return[ve*(1+G(o(be)))/2,be/(o(be/2)*o(ve/6))]}lc.invert=function(ve,be){var Re=n(ve),Be=n(be),tt=p,We=A;Bep||n(un)>p)&&--tt>0);return tt&&[Re,Be]};function js(){return t.geoProjection(Cs).scale(139.98)}function Go(ve,be){return[x(ve)/o(be),b(be)*o(ve)]}Go.invert=function(ve,be){var Re=ve*ve,Be=be*be,tt=Be+1,We=Re+tt,it=ve?_*G((We-G(We*We-4*Re))/Re):1/G(tt);return[O(ve*it),v(be)*V(it)]};function gs(){return t.geoProjection(Go).scale(144.049).clipAngle(90-.001)}function uc(ve){var be=o(ve),Re=b(L+ve/2);function Be(tt,We){var it=We-ve,Dt=n(it)=0;)dr=ve[rr],Sr=dr[0]+Dt*(jr=Sr)-Ht*Or,Or=dr[1]+Dt*Or+Ht*jr;return Sr=Dt*(jr=Sr)-Ht*Or,Or=Dt*Or+Ht*jr,[Sr,Or]}return Re.invert=function(Be,tt){var We=20,it=Be,Dt=tt;do{for(var Ht=be,rr=ve[Ht],dr=rr[0],Sr=rr[1],Or=0,jr=0,ii;--Ht>=0;)rr=ve[Ht],Or=dr+it*(ii=Or)-Dt*jr,jr=Sr+it*jr+Dt*ii,dr=rr[0]+it*(ii=dr)-Dt*Sr,Sr=rr[1]+it*Sr+Dt*ii;Or=dr+it*(ii=Or)-Dt*jr,jr=Sr+it*jr+Dt*ii,dr=it*(ii=dr)-Dt*Sr-Be,Sr=it*Sr+Dt*ii-tt;var Li=Or*Or+jr*jr,un,sn;it-=un=(dr*Or+Sr*jr)/Li,Dt-=sn=(Sr*Or-dr*jr)/Li}while(n(un)+n(sn)>p*p&&--We>0);if(We){var In=G(it*it+Dt*Dt),Kn=2*i(In*.5),Aa=x(Kn);return[a(it*Aa,In*o(Kn)),In?O(Dt*Aa/In):0]}},Re}var Po=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],od=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Yo=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Pa=[[.9245,0],[0,0],[.01943,0]],af=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Hu(){return Bl(Po,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function wl(){return Bl(od,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Gf(){return Bl(Yo,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ic(){return Bl(Pa,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function mf(){return Bl(af,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Bl(ve,be){var Re=t.geoProjection(ad(ve)).rotate(be).clipAngle(90),Be=t.geoRotation(be),tt=Re.center;return delete Re.rotate,Re.center=function(We){return arguments.length?tt(Be(We)):Be.invert(tt())},Re}var _h=G(6),Qf=G(7);function yf(ve,be){var Re=O(7*x(be)/(3*_h));return[_h*ve*(2*o(2*Re/3)-1)/Qf,9*x(Re/3)/Qf]}yf.invert=function(ve,be){var Re=3*O(be*Qf/9);return[ve*Qf/(_h*(2*o(2*Re/3)-1)),O(x(Re)*3*_h/7)]};function Yc(){return t.geoProjection(yf).scale(164.859)}function eh(ve,be){for(var Re=(1+_)*x(be),Be=be,tt=0,We;tt<25&&(Be-=We=(x(Be/2)+x(Be)-Re)/(.5*o(Be/2)+o(Be)),!(n(We)C&&--Be>0);return We=Re*Re,it=We*We,Dt=We*it,[ve/(.84719-.13063*We+Dt*Dt*(-.04515+.05494*We-.02326*it+.00331*Dt)),Re]};function of(){return t.geoProjection(cc).scale(175.295)}function Nl(ve,be){return[ve*(1+o(be))/2,2*(be-b(be/2))]}Nl.invert=function(ve,be){for(var Re=be/2,Be=0,tt=1/0;Be<10&&n(tt)>p;++Be){var We=o(be/2);be-=tt=(be-b(be/2)-Re)/(1-.5/(We*We))}return[2*ve/(1+o(be)),be]};function Kc(){return t.geoProjection(Nl).scale(152.63)}var Rc=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function ms(){return Do(Ze(1/0),Rc).rotate([20,0]).scale(152.63)}function jf(ve,be){var Re=x(be),Be=o(be),tt=v(ve);if(ve===0||n(be)===A)return[0,be];if(be===0)return[ve,0];if(n(ve)===A)return[ve*Be,A*Re];var We=E/(2*ve)-2*ve/E,it=2*be/E,Dt=(1-it*it)/(Re-it),Ht=We*We,rr=Dt*Dt,dr=1+Ht/rr,Sr=1+rr/Ht,Or=(We*Re/Dt-We/2)/dr,jr=(rr*Re/Ht+Dt/2)/Sr,ii=Or*Or+Be*Be/dr,Li=jr*jr-(rr*Re*Re/Ht+Dt*Re-1)/Sr;return[A*(Or+G(ii)*tt),A*(jr+G(Li<0?0:Li)*v(-be*We)*tt)]}jf.invert=function(ve,be){ve/=A,be/=A;var Re=ve*ve,Be=be*be,tt=Re+Be,We=E*E;return[ve?(tt-1+G((1-tt)*(1-tt)+4*Re))/(2*ve)*A:0,Wt(function(it){return tt*(E*x(it)-2*it)*E+4*it*it*(be-x(it))+2*E*it-We*be},0)]};function Uh(){return t.geoProjection(jf).scale(127.267)}var rh=1.0148,sf=.23185,xh=-.14499,Mu=.02406,ih=rh,Ws=5*sf,Eu=7*xh,Dc=9*Mu,ks=1.790857183;function bc(ve,be){var Re=be*be;return[ve,be*(rh+Re*Re*(sf+Re*(xh+Mu*Re)))]}bc.invert=function(ve,be){be>ks?be=ks:be<-ks&&(be=-ks);var Re=be,Be;do{var tt=Re*Re;Re-=Be=(Re*(rh+tt*tt*(sf+tt*(xh+Mu*tt)))-be)/(ih+tt*tt*(Ws+tt*(Eu+Dc*tt)))}while(n(Be)>p);return[ve,Re]};function hu(){return t.geoProjection(bc).scale(139.319)}function _u(ve,be){if(n(be)p&&--tt>0);return it=b(Be),[(n(be)=0;)if(Be=be[Dt],Re[0]===Be[0]&&Re[1]===Be[1]){if(We)return[We,Re];We=Re}}}function jl(ve){for(var be=ve.length,Re=[],Be=ve[be-1],tt=0;tt0?[-Be[0],0]:[180-Be[0],180])};var be=Pf.map(function(Re){return{face:Re,project:ve(Re)}});return[-1,0,0,1,0,1,4,5].forEach(function(Re,Be){var tt=be[Re];tt&&(tt.children||(tt.children=[])).push(be[Be])}),_f(be[0],function(Re,Be){return be[Re<-E/2?Be<0?6:4:Re<0?Be<0?2:0:ReBe^jr>Be&&Re<(Or-rr)*(Be-dr)/(jr-dr)+rr&&(tt=!tt)}return tt}function Wl(ve,be){var Re=be.stream,Be;if(!Re)throw new Error("invalid projection");switch(ve&&ve.type){case"Feature":Be=Zu;break;case"FeatureCollection":Be=ah;break;default:Be=Tc;break}return Be(ve,Re)}function ah(ve,be){return{type:"FeatureCollection",features:ve.features.map(function(Re){return Zu(Re,be)})}}function Zu(ve,be){return{type:"Feature",id:ve.id,properties:ve.properties,geometry:Tc(ve.geometry,be)}}function Oc(ve,be){return{type:"GeometryCollection",geometries:ve.geometries.map(function(Re){return Tc(Re,be)})}}function Tc(ve,be){if(!ve)return null;if(ve.type==="GeometryCollection")return Oc(ve,be);var Re;switch(ve.type){case"Point":Re=qc;break;case"MultiPoint":Re=qc;break;case"LineString":Re=cf;break;case"MultiLineString":Re=cf;break;case"Polygon":Re=fc;break;case"MultiPolygon":Re=fc;break;case"Sphere":Re=fc;break;default:return null}return t.geoStream(ve,be(Re)),Re.result()}var Tl=[],vu=[],qc={point:function(ve,be){Tl.push([ve,be])},result:function(){var ve=Tl.length?Tl.length<2?{type:"Point",coordinates:Tl[0]}:{type:"MultiPoint",coordinates:Tl}:null;return Tl=[],ve}},cf={lineStart:Xu,point:function(ve,be){Tl.push([ve,be])},lineEnd:function(){Tl.length&&(vu.push(Tl),Tl=[])},result:function(){var ve=vu.length?vu.length<2?{type:"LineString",coordinates:vu[0]}:{type:"MultiLineString",coordinates:vu}:null;return vu=[],ve}},fc={polygonStart:Xu,lineStart:Xu,point:function(ve,be){Tl.push([ve,be])},lineEnd:function(){var ve=Tl.length;if(ve){do Tl.push(Tl[0].slice());while(++ve<4);vu.push(Tl),Tl=[]}},polygonEnd:Xu,result:function(){if(!vu.length)return null;var ve=[],be=[];return vu.forEach(function(Re){uf(Re)?ve.push([Re]):be.push(Re)}),be.forEach(function(Re){var Be=Re[0];ve.some(function(tt){if(Xf(tt[0],Be))return tt.push(Re),!0})||ve.push([Re])}),vu=[],ve.length?ve.length>1?{type:"MultiPolygon",coordinates:ve}:{type:"Polygon",coordinates:ve[0]}:null}};function Bc(ve){var be=ve(A,0)[0]-ve(-A,0)[0];function Re(Be,tt){var We=n(Be)0?Be-E:Be+E,tt),Dt=(it[0]-it[1])*_,Ht=(it[0]+it[1])*_;if(We)return[Dt,Ht];var rr=be*_,dr=Dt>0^Ht>0?-1:1;return[dr*Dt-v(Ht)*rr,dr*Ht-v(Dt)*rr]}return ve.invert&&(Re.invert=function(Be,tt){var We=(Be+tt)*_,it=(tt-Be)*_,Dt=n(We)<.5*be&&n(it)<.5*be;if(!Dt){var Ht=be*_,rr=We>0^it>0?-1:1,dr=-rr*Be+(it>0?1:-1)*Ht,Sr=-rr*tt+(We>0?1:-1)*Ht;We=(-dr-Sr)*_,it=(dr-Sr)*_}var Or=ve.invert(We,it);return Dt||(Or[0]+=We>0?E:-E),Or}),t.geoProjection(Re).rotate([-90,-90,45]).clipAngle(180-.001)}function At(){return Bc(ki).scale(176.423)}function Xt(){return Bc(Lo).scale(111.48)}function kr(ve,be){if(!(0<=(be=+be)&&be<=20))throw new Error("invalid digits");function Re(rr){var dr=rr.length,Sr=2,Or=new Array(dr);for(Or[0]=+rr[0].toFixed(be),Or[1]=+rr[1].toFixed(be);Sr2||jr[0]!=dr[0]||jr[1]!=dr[1])&&(Sr.push(jr),dr=jr)}return Sr.length===1&&rr.length>1&&Sr.push(Re(rr[rr.length-1])),Sr}function We(rr){return rr.map(tt)}function it(rr){if(rr==null)return rr;var dr;switch(rr.type){case"GeometryCollection":dr={type:"GeometryCollection",geometries:rr.geometries.map(it)};break;case"Point":dr={type:"Point",coordinates:Re(rr.coordinates)};break;case"MultiPoint":dr={type:rr.type,coordinates:Be(rr.coordinates)};break;case"LineString":dr={type:rr.type,coordinates:tt(rr.coordinates)};break;case"MultiLineString":case"Polygon":dr={type:rr.type,coordinates:We(rr.coordinates)};break;case"MultiPolygon":dr={type:"MultiPolygon",coordinates:rr.coordinates.map(We)};break;default:return rr}return rr.bbox!=null&&(dr.bbox=rr.bbox),dr}function Dt(rr){var dr={type:"Feature",properties:rr.properties,geometry:it(rr.geometry)};return rr.id!=null&&(dr.id=rr.id),rr.bbox!=null&&(dr.bbox=rr.bbox),dr}if(ve!=null)switch(ve.type){case"Feature":return Dt(ve);case"FeatureCollection":{var Ht={type:"FeatureCollection",features:ve.features.map(Dt)};return ve.bbox!=null&&(Ht.bbox=ve.bbox),Ht}default:return it(ve)}return ve}function Ar(ve){var be=x(ve);function Re(Be,tt){var We=be?b(Be*be/2)/be:Be/2;if(!tt)return[2*We,-ve];var it=2*i(We*x(tt)),Dt=1/b(tt);return[x(it)*Dt,tt+(1-o(it))*Dt-ve]}return Re.invert=function(Be,tt){if(n(tt+=ve)p&&--Dt>0);var Or=Be*(rr=b(it)),jr=b(n(tt)0?A:-A)*(Ht+tt*(dr-it)/2+tt*tt*(dr-2*Ht+it)/2)]}Wi.invert=function(ve,be){var Re=be/A,Be=Re*90,tt=f(18,n(Be/5)),We=c(0,l(tt));do{var it=Ei[We][1],Dt=Ei[We+1][1],Ht=Ei[f(19,We+2)][1],rr=Ht-it,dr=Ht-2*Dt+it,Sr=2*(n(Re)-Dt)/rr,Or=dr/rr,jr=Sr*(1-Or*Sr*(1-2*Or*Sr));if(jr>=0||We===1){Be=(be>=0?5:-5)*(jr+tt);var ii=50,Li;do tt=f(18,n(Be)/5),We=l(tt),jr=tt-We,it=Ei[We][1],Dt=Ei[We+1][1],Ht=Ei[f(19,We+2)][1],Be-=(Li=(be>=0?A:-A)*(Dt+jr*(Ht-it)/2+jr*jr*(Ht-2*Dt+it)/2)-be)*P;while(n(Li)>C&&--ii>0);break}}while(--We>=0);var un=Ei[We][0],sn=Ei[We+1][0],In=Ei[f(19,We+2)][0];return[ve/(sn+jr*(In-un)/2+jr*jr*(In-2*sn+un)/2),Be*T]};function hn(){return t.geoProjection(Wi).scale(152.63)}function Tn(ve){function be(Re,Be){var tt=o(Be),We=(ve-1)/(ve-tt*o(Re));return[We*tt*x(Re),We*x(Be)]}return be.invert=function(Re,Be){var tt=Re*Re+Be*Be,We=G(tt),it=(ve-G(1-tt*(ve+1)/(ve-1)))/((ve-1)/We+We/(ve-1));return[a(Re*it,We*G(1-it*it)),We?O(Be*it/We):0]},be}function Bn(ve,be){var Re=Tn(ve);if(!be)return Re;var Be=o(be),tt=x(be);function We(it,Dt){var Ht=Re(it,Dt),rr=Ht[1],dr=rr*tt/(ve-1)+Be;return[Ht[0]*Be/dr,rr/dr]}return We.invert=function(it,Dt){var Ht=(ve-1)/(ve-1-Dt*tt);return Re.invert(Ht*it,Ht*Dt*Be)},We}function Zi(){var ve=2,be=0,Re=t.geoProjectionMutator(Bn),Be=Re(ve,be);return Be.distance=function(tt){return arguments.length?Re(ve=+tt,be):ve},Be.tilt=function(tt){return arguments.length?Re(ve,be=tt*T):be*P},Be.scale(432.147).clipAngle(V(1/ve)*P-1e-6)}var $i=1e-4,an=1e4,Di=-180,$n=Di+$i,ka=180,Ra=ka-$i,La=-90,Na=La+$i,Yn=90,zn=Yn-$i;function Ka(ve){return ve.length>0}function bo(ve){return Math.floor(ve*an)/an}function Xo(ve){return ve===La||ve===Yn?[0,ve]:[Di,bo(ve)]}function Ms(ve){var be=ve[0],Re=ve[1],Be=!1;return be<=$n?(be=Di,Be=!0):be>=Ra&&(be=ka,Be=!0),Re<=Na?(Re=La,Be=!0):Re>=zn&&(Re=Yn,Be=!0),Be?[be,Re]:ve}function os(ve){return ve.map(Ms)}function Ts(ve,be,Re){for(var Be=0,tt=ve.length;Be=Ra||dr<=Na||dr>=zn){We[it]=Ms(Ht);for(var Sr=it+1;Sr$n&&jrNa&&ii=Dt)break;Re.push({index:-1,polygon:be,ring:We=We.slice(Sr-1)}),We[0]=Xo(We[0][1]),it=-1,Dt=We.length}}}}function Ho(ve){var be,Re=ve.length,Be={},tt={},We,it,Dt,Ht,rr;for(be=0;be0?E-Dt:Dt)*P],rr=t.geoProjection(ve(it)).rotate(Ht),dr=t.geoRotation(Ht),Sr=rr.center;return delete rr.rotate,rr.center=function(Or){return arguments.length?Sr(dr(Or)):dr.invert(Sr())},rr.clipAngle(90)}function is(ve){var be=o(ve);function Re(Be,tt){var We=t.geoGnomonicRaw(Be,tt);return We[0]*=be,We}return Re.invert=function(Be,tt){return t.geoGnomonicRaw.invert(Be/be,tt)},Re}function $l(){return ku([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ku(ve,be){return _s(is,ve,be)}function Yu(ve){if(!(ve*=2))return t.geoAzimuthalEquidistantRaw;var be=-ve/2,Re=-be,Be=ve*ve,tt=b(Re),We=.5/x(Re);function it(Dt,Ht){var rr=V(o(Ht)*o(Dt-be)),dr=V(o(Ht)*o(Dt-Re)),Sr=Ht<0?-1:1;return rr*=rr,dr*=dr,[(rr-dr)/(2*ve),Sr*G(4*Be*dr-(Be-rr+dr)*(Be-rr+dr))/(2*ve)]}return it.invert=function(Dt,Ht){var rr=Ht*Ht,dr=o(G(rr+(Or=Dt+be)*Or)),Sr=o(G(rr+(Or=Dt+Re)*Or)),Or,jr;return[a(jr=dr-Sr,Or=(dr+Sr)*tt),(Ht<0?-1:1)*V(G(Or*Or+jr*jr)*We)]},it}function Nc(){return pu([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function pu(ve,be){return _s(Yu,ve,be)}function Uc(ve,be){if(n(be)p&&--Dt>0);return[v(ve)*(G(tt*tt+4)+tt)*E/4,A*it]};function Ku(){return t.geoProjection(hc).scale(127.16)}function ue(ve,be,Re,Be,tt){function We(it,Dt){var Ht=Re*x(Be*Dt),rr=G(1-Ht*Ht),dr=G(2/(1+rr*o(it*=tt)));return[ve*rr*dr*x(it),be*Ht*dr]}return We.invert=function(it,Dt){var Ht=it/ve,rr=Dt/be,dr=G(Ht*Ht+rr*rr),Sr=2*O(dr/2);return[a(it*b(Sr),ve*dr)/tt,dr&&O(Dt*x(Sr)/(be*Re*dr))/Be]},We}function w(ve,be,Re,Be){var tt=E/3;ve=c(ve,p),be=c(be,p),ve=f(ve,A),be=f(be,E-p),Re=c(Re,0),Re=f(Re,100-p),Be=c(Be,p);var We=Re/100+1,it=Be/100,Dt=V(We*o(tt))/tt,Ht=x(ve)/x(Dt*A),rr=be/E,dr=G(it*x(ve/2)/x(be/2)),Sr=dr/G(rr*Ht*Dt),Or=1/(dr*G(rr*Ht*Dt));return ue(Sr,Or,Ht,Dt,rr)}function B(){var ve=65*T,be=60*T,Re=20,Be=200,tt=t.geoProjectionMutator(w),We=tt(ve,be,Re,Be);return We.poleline=function(it){return arguments.length?tt(ve=+it*T,be,Re,Be):ve*P},We.parallels=function(it){return arguments.length?tt(ve,be=+it*T,Re,Be):be*P},We.inflation=function(it){return arguments.length?tt(ve,be,Re=+it,Be):Re},We.ratio=function(it){return arguments.length?tt(ve,be,Re,Be=+it):Be},We.scale(163.775)}function Q(){return B().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*E+3*G(3),le=2*G(2*E*G(3)/ee),qe=$t(le*G(3)/E,le,ee/6);function Xe(){return t.geoProjection(qe).scale(176.84)}function ot(ve,be){return[ve*G(1-3*be*be/(E*E)),be]}ot.invert=function(ve,be){return[ve/G(1-3*be*be/(E*E)),be]};function Tt(){return t.geoProjection(ot).scale(152.63)}function Kt(ve,be){var Re=o(be),Be=o(ve)*Re,tt=1-Be,We=o(ve=a(x(ve)*Re,-x(be))),it=x(ve);return Re=G(1-Be*Be),[it*Re-We*tt,-We*Re-it*tt]}Kt.invert=function(ve,be){var Re=(ve*ve+be*be)/-2,Be=G(-Re*(2+Re)),tt=be*Re+ve*Be,We=ve*Re-be*Be,it=G(We*We+tt*tt);return[a(Be*tt,it*(1+Re)),it?-O(Be*We/it):0]};function Jt(){return t.geoProjection(Kt).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function xr(ve,be){var Re=Me(ve,be);return[(Re[0]+ve/A)/2,(Re[1]+be)/2]}xr.invert=function(ve,be){var Re=ve,Be=be,tt=25;do{var We=o(Be),it=x(Be),Dt=x(2*Be),Ht=it*it,rr=We*We,dr=x(Re),Sr=o(Re/2),Or=x(Re/2),jr=Or*Or,ii=1-rr*Sr*Sr,Li=ii?V(We*Sr)*G(un=1/ii):un=0,un,sn=.5*(2*Li*We*Or+Re/A)-ve,In=.5*(Li*it+Be)-be,Kn=.5*un*(rr*jr+Li*We*Sr*Ht)+.5/A,Aa=un*(dr*Dt/4-Li*it*Or),fa=.125*un*(Dt*Or-Li*it*rr*dr),$a=.5*un*(Ht*Sr+Li*jr*We)+.5,ko=Aa*fa-$a*Kn,Qa=(In*Aa-sn*$a)/ko,mo=(sn*fa-In*Kn)/ko;Re-=Qa,Be-=mo}while((n(Qa)>p||n(mo)>p)&&--tt>0);return[Re,Be]};function Pr(){return t.geoProjection(xr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=_e,e.geoAiryRaw=oe,e.geoAitoff=ke,e.geoAitoffRaw=Me,e.geoArmadillo=ie,e.geoArmadilloRaw=me,e.geoAugust=Le,e.geoAugustRaw=Se,e.geoBaker=ge,e.geoBakerRaw=Pe,e.geoBerghaus=ce,e.geoBerghausRaw=Fe,e.geoBertin1953=Gt,e.geoBertin1953Raw=lt,e.geoBoggs=er,e.geoBoggsRaw=Et,e.geoBonne=Yt,e.geoBonneRaw=yt,e.geoBottomley=Tr,e.geoBottomleyRaw=lr,e.geoBromley=ei,e.geoBromleyRaw=Rr,e.geoChamberlin=$e,e.geoChamberlinRaw=Ge,e.geoChamberlinAfrica=je,e.geoCollignon=Ie,e.geoCollignonRaw=wt,e.geoCraig=Ce,e.geoCraigRaw=xe,e.geoCraster=ir,e.geoCrasterRaw=nr,e.geoCylindricalEqualArea=oi,e.geoCylindricalEqualAreaRaw=pr,e.geoCylindricalStereographic=Jr,e.geoCylindricalStereographicRaw=di,e.geoEckert1=Hi,e.geoEckert1Raw=fi,e.geoEckert2=wn,e.geoEckert2Raw=Pn,e.geoEckert3=Vn,e.geoEckert3Raw=pn,e.geoEckert4=ea,e.geoEckert4Raw=kn,e.geoEckert5=Vt,e.geoEckert5Raw=ua,e.geoEckert6=tr,e.geoEckert6Raw=_t,e.geoEisenlohr=Zr,e.geoEisenlohrRaw=Er,e.geoFahey=zi,e.geoFaheyRaw=$r,e.geoFoucaut=en,e.geoFoucautRaw=Ji,e.geoFoucautSinusoidal=yn,e.geoFoucautSinusoidalRaw=cn,e.geoGilbert=la,e.geoGingery=Wo,e.geoGingeryRaw=ma,e.geoGinzburg4=Ga,e.geoGinzburg4Raw=Wn,e.geoGinzburg5=jn,e.geoGinzburg5Raw=vo,e.geoGinzburg6=Cr,e.geoGinzburg6Raw=St,e.geoGinzburg8=pi,e.geoGinzburg8Raw=Qr,e.geoGinzburg9=Sn,e.geoGinzburg9Raw=fn,e.geoGringorten=Jn,e.geoGringortenRaw=ki,e.geoGuyou=zs,e.geoGuyouRaw=Lo,e.geoHammer=pt,e.geoHammerRaw=Ze,e.geoHammerRetroazimuthal=zl,e.geoHammerRetroazimuthalRaw=ul,e.geoHealpix=Zl,e.geoHealpixRaw=fl,e.geoHill=nc,e.geoHillRaw=Su,e.geoHomolosine=xo,e.geoHomolosineRaw=Ol,e.geoHufnagel=Us,e.geoHufnagelRaw=Yl,e.geoHyperelliptical=Oo,e.geoHyperellipticalRaw=aa,e.geoInterrupt=Do,e.geoInterruptedBoggs=Uf,e.geoInterruptedHomolosine=Zc,e.geoInterruptedMollweide=qs,e.geoInterruptedMollweideHemispheres=oc,e.geoInterruptedSinuMollweide=sc,e.geoInterruptedSinusoidal=kf,e.geoKavrayskiy7=nf,e.geoKavrayskiy7Raw=fs,e.geoLagrange=Jl,e.geoLagrangeRaw=Vf,e.geoLarrivee=Fu,e.geoLarriveeRaw=lc,e.geoLaskowski=js,e.geoLaskowskiRaw=Cs,e.geoLittrow=gs,e.geoLittrowRaw=Go,e.geoLoximuthal=bl,e.geoLoximuthalRaw=uc,e.geoMiller=Bs,e.geoMillerRaw=Gu,e.geoModifiedStereographic=Bl,e.geoModifiedStereographicRaw=ad,e.geoModifiedStereographicAlaska=Hu,e.geoModifiedStereographicGs48=wl,e.geoModifiedStereographicGs50=Gf,e.geoModifiedStereographicMiller=Ic,e.geoModifiedStereographicLee=mf,e.geoMollweide=wr,e.geoMollweideRaw=sr,e.geoMtFlatPolarParabolic=Yc,e.geoMtFlatPolarParabolicRaw=yf,e.geoMtFlatPolarQuartic=th,e.geoMtFlatPolarQuarticRaw=eh,e.geoMtFlatPolarSinusoidal=Hf,e.geoMtFlatPolarSinusoidalRaw=ju,e.geoNaturalEarth2=of,e.geoNaturalEarth2Raw=cc,e.geoNellHammer=Kc,e.geoNellHammerRaw=Nl,e.geoInterruptedQuarticAuthalic=ms,e.geoNicolosi=Uh,e.geoNicolosiRaw=jf,e.geoPatterson=hu,e.geoPattersonRaw=bc,e.geoPolyconic=al,e.geoPolyconicRaw=_u,e.geoPolyhedral=_f,e.geoPolyhedralButterfly=Ls,e.geoPolyhedralCollignon=Wf,e.geoPolyhedralWaterman=Vs,e.geoProject=Wl,e.geoGringortenQuincuncial=At,e.geoPeirceQuincuncial=Xt,e.geoPierceQuincuncial=Xt,e.geoQuantize=kr,e.geoQuincuncial=Bc,e.geoRectangularPolyconic=Kr,e.geoRectangularPolyconicRaw=Ar,e.geoRobinson=hn,e.geoRobinsonRaw=Wi,e.geoSatellite=Zi,e.geoSatelliteRaw=Bn,e.geoSinuMollweide=Vu,e.geoSinuMollweideRaw=_a,e.geoSinusoidal=bt,e.geoSinusoidalRaw=Ft,e.geoStitch=Ps,e.geoTimes=no,e.geoTimesRaw=va,e.geoTwoPointAzimuthal=ku,e.geoTwoPointAzimuthalRaw=is,e.geoTwoPointAzimuthalUsa=$l,e.geoTwoPointEquidistant=pu,e.geoTwoPointEquidistantRaw=Yu,e.geoTwoPointEquidistantUsa=Nc,e.geoVanDerGrinten=xu,e.geoVanDerGrintenRaw=Uc,e.geoVanDerGrinten2=Ua,e.geoVanDerGrinten2Raw=Ac,e.geoVanDerGrinten3=Vc,e.geoVanDerGrinten3Raw=oo,e.geoVanDerGrinten4=Ku,e.geoVanDerGrinten4Raw=hc,e.geoWagner=B,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=Xe,e.geoWagner4Raw=qe,e.geoWagner6=Tt,e.geoWagner6Raw=ot,e.geoWiechel=Jt,e.geoWiechelRaw=Kt,e.geoWinkel3=Pr,e.geoWinkel3Raw=xr,Object.defineProperty(e,"__esModule",{value:!0})})});var xDe=ye((wgr,_De)=>{"use strict";var id=Oa(),PZ=Dr(),XFt=qa(),ZA=Math.PI/180,H2=180/Math.PI,RZ={cursor:"pointer"},DZ={cursor:"auto"};function ZFt(e,t){var r=e.projection,n;return t._isScoped?n=YFt:t._isClipped?n=JFt:n=KFt,n(e,r)}_De.exports=ZFt;function FZ(e,t){return id.behavior.zoom().translate(t.translate()).scale(t.scale())}function zZ(e,t,r){var n=e.id,i=e.graphDiv,a=i.layout,o=a[n],s=i._fullLayout,l=s[n],u={},c={};function f(h,d){u[n+"."+h]=PZ.nestedProperty(o,h).get(),XFt.call("_storeDirectGUIEdit",a,s._preGUI,u);var v=PZ.nestedProperty(l,h);v.get()!==d&&(v.set(d),PZ.nestedProperty(o,h).set(d),c[n+"."+h]=d)}r(f),f("projection.scale",t.scale()/e.fitScale),f("fitbounds",!1),i.emit("plotly_relayout",c)}function YFt(e,t){var r=FZ(e,t);function n(){id.select(this).style(RZ)}function i(){t.scale(id.event.scale).translate(id.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var l=t.invert(e.midPt);s("center.lon",l[0]),s("center.lat",l[1])}function o(){id.select(this).style(DZ),zZ(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function KFt(e,t){var r=FZ(e,t),n=2,i,a,o,s,l,u,c,f,h;function d(E){return t.invert(E)}function v(E){var A=d(E);if(!A)return!0;var L=t(A);return Math.abs(L[0]-E[0])>n||Math.abs(L[1]-E[1])>n}function x(){id.select(this).style(RZ),i=id.mouse(this),a=t.rotate(),o=t.translate(),s=a,l=d(i)}function b(){if(u=id.mouse(this),v(i)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(id.event.scale),t.translate([o[0],id.event.translate[1]]),l?d(u)&&(f=d(u),c=[s[0]+(f[0]-l[0]),a[1],a[2]],t.rotate(c),s=c):(i=u,l=d(i)),h=!0,e.render(!0);var E=t.rotate(),A=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":A[0],"geo.center.lat":A[1],"geo.projection.rotation.lon":-E[0]})}function p(){id.select(this).style(DZ),h&&zZ(e,t,C)}function C(E){var A=t.rotate(),L=t.invert(e.midPt);E("projection.rotation.lon",-A[0]),E("center.lon",L[0]),E("center.lat",L[1])}return r.on("zoomstart",x).on("zoom",b).on("zoomend",p),r}function JFt(e,t){var r={r:t.rotate(),k:t.scale()},n=FZ(e,t),i=azt(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){id.select(this).style(RZ);var h=id.mouse(this),d=t.rotate(),v=d,x=t.translate(),b=$Ft(d);s=kF(t,h),o.call(n,"zoom",function(){var p=id.mouse(this);if(t.scale(r.k=id.event.scale),!s)h=p,s=kF(t,h);else if(kF(t,p)){t.rotate(d).translate(x);var C=kF(t,p),E=ezt(s,C),A=rzt(QFt(b,E)),L=r.r=tzt(A,s,v);(!isFinite(L[0])||!isFinite(L[1])||!isFinite(L[2]))&&(L=v),t.rotate(L),v=L}u(i.of(this,arguments))}),l(i.of(this,arguments))}).on("zoomend",function(){id.select(this).style(DZ),o.call(n,"zoom",null),c(i.of(this,arguments)),zZ(e,t,f)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function l(h){a++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function c(h){--a||h({type:"zoomend"})}function f(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return id.rebind(n,i,"on")}function kF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&izt(r)}function $Ft(e){var t=.5*e[0]*ZA,r=.5*e[1]*ZA,n=.5*e[2]*ZA,i=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),l=Math.sin(n),u=Math.cos(n);return[a*s*u+i*o*l,i*s*u-a*o*l,a*o*u+i*s*l,a*s*l-i*o*u]}function QFt(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=t[0],s=t[1],l=t[2],u=t[3];return[r*o-n*s-i*l-a*u,r*s+n*o+i*u-a*l,r*l-n*u+i*o+a*s,r*u+n*l-i*s+a*o]}function ezt(e,t){if(!(!e||!t)){var r=nzt(e,t),n=Math.sqrt(yDe(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,yDe(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function tzt(e,t,r){var n=IZ(t,2,e[0]);n=IZ(n,1,e[1]),n=IZ(n,0,e[2]-r[2]);var i=t[0],a=t[1],o=t[2],s=n[0],l=n[1],u=n[2],c=Math.atan2(a,i)*H2,f=Math.sqrt(i*i+a*a),h,d;Math.abs(l)>f?(d=(l>0?90:-90)-c,h=0):(d=Math.asin(l/f)*H2-c,h=Math.sqrt(f*f-l*l));var v=180-d-2*c,x=(Math.atan2(u,s)-Math.atan2(o,h))*H2,b=(Math.atan2(u,s)-Math.atan2(o,-h))*H2,p=gDe(r[0],r[1],d,x),C=gDe(r[0],r[1],v,b);return p<=C?[d,x,r[2]]:[v,b,r[2]]}function gDe(e,t,r,n){var i=mDe(r-e),a=mDe(n-t);return Math.sqrt(i*i+a*a)}function mDe(e){return(e%360+540)%360-180}function IZ(e,t,r){var n=r*ZA,i=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(n),l=Math.sin(n);return i[a]=e[a]*s-e[o]*l,i[o]=e[o]*s+e[a]*l,i}function rzt(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*H2,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*H2,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*H2]}function izt(e){var t=e[0]*ZA,r=e[1]*ZA,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function yDe(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var t1=Oa(),BZ=LZ(),ozt=BZ.geoPath,szt=BZ.geoDistance,lzt=pDe(),uzt=qa(),aC=Dr(),czt=aC.strTranslate,LF=Ca(),nC=So(),bDe=vf(),fzt=Mc(),qZ=ho(),wDe=wg().getAutoRange,OZ=yv(),hzt=zf().prepSelect,dzt=zf().clearOutline,vzt=zf().selectOnClick,pzt=xDe(),cp=eC(),gzt=ix(),ADe=vF(),mzt=pZ().feature;function SDe(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var $g=SDe.prototype;MDe.exports=function(t){return new SDe(t)};$g.plot=function(e,t,r,n){var i=this;if(n)return i.update(e,t,!0);i._geoCalcData=e,i._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var l in cp.layerNameToAdjective)if(l!=="frame"&&a["show"+l]){s=!0;break}for(var u=!1,c=0;c0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),fzt.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var l=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=l.selectAll(".point"),this.dataPoints.text=l.selectAll("text"),this.dataPaths.line=l.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};$g.updateProjection=function(e,t){var r=this.graphDiv,n=t[this.id],i=t._size,a=n.domain,o=n.projection,s=n.lonaxis,l=n.lataxis,u=s._ax,c=l._ax,f=this.projection=yzt(n),h=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],d=n.center||{},v=o.rotation||{},x=s.range||[],b=l.range||[];if(n.fitbounds){u._length=h[1][0]-h[0][0],c._length=h[1][1]-h[0][1],u.range=wDe(r,u),c.range=wDe(r,c);var p=(u.range[0]+u.range[1])/2,C=(c.range[0]+c.range[1])/2;if(n._isScoped)d={lon:p,lat:C};else if(n._isClipped){d={lon:p,lat:C},v={lon:p,lat:C,roll:v.roll};var E=o.type,A=cp.lonaxisSpan[E]/2||180,L=cp.lataxisSpan[E]/2||90;x=[p-A,p+A],b=[C-L,C+L]}else d={lon:p,lat:C},v={lon:p,lat:v.lat,roll:v.roll}}f.center([d.lon-v.lon,d.lat-v.lat]).rotate([-v.lon,-v.lat,v.roll]).parallels(o.parallels);var _=TDe(x,b);f.fitExtent(h,_);var k=this.bounds=f.getBounds(_),M=this.fitScale=f.scale(),g=f.translate();if(n.fitbounds){var P=f.getBounds(TDe(u.range,c.range)),T=Math.min((k[1][0]-k[0][0])/(P[1][0]-P[0][0]),(k[1][1]-k[0][1])/(P[1][1]-P[0][1]));isFinite(T)?f.scale(T*M):aC.warn("Something went wrong during"+this.id+"fitbounds computations.")}else f.scale(o.scale*M);var z=this.midPt=[(k[0][0]+k[1][0])/2,(k[0][1]+k[1][1])/2];if(f.translate([g[0]+(z[0]-g[0]),g[1]+(z[1]-g[1])]).clipExtent(k),n._isAlbersUsa){var O=f([d.lon,d.lat]),V=f.translate();f.translate([V[0]-(O[0]-V[0]),V[1]-(O[1]-V[1])])}};$g.updateBaseLayers=function(e,t){var r=this,n=r.topojson,i=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!cp.lineLayers[h]}function l(h){return!!cp.fillLayers[h]}var u=this.hasChoropleth?cp.layersForChoropleth:cp.layers,c=u.filter(function(h){return s(h)||l(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),f=r.framework.selectAll(".layer").data(c,String);f.exit().each(function(h){delete i[h],delete a[h],t1.select(this).remove()}),f.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=i[h]=t1.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):l(h)&&(a[h]=d.append("path").style("stroke","none"))}),f.order(),f.each(function(h){var d=a[h],v=cp.layerNameToAdjective[h];h==="frame"?d.datum(cp.sphereSVG):s(h)||l(h)?d.datum(mzt(n,n.objects[h])):o(h)&&d.datum(_zt(h,t,e)).call(LF.stroke,t[h].gridcolor).call(nC.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(LF.stroke,t[v+"color"]).call(nC.dashLine,"",t[v+"width"]):l(h)&&d.call(LF.fill,t[v+"color"])})};$g.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;nC.setRect(this.clipRect,i,a,o,s),this.bgRect.call(nC.setRect,i,a,o,s).call(LF.fill,t.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};$g.updateFx=function(e,t){var r=this,n=r.graphDiv,i=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var f=r.viewInitial,h={};for(var d in f)h[r.id+"."+d]=f[d];uzt.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function l(f){return r.projection.invert([f[0]+r.xaxis._offset,f[1]+r.yaxis._offset])}var u=function(f,h){if(h.isRect){var d=f.range={};d[r.id]=[l([h.xmin,h.ymin]),l([h.xmax,h.ymax])]}else{var v=f.lassoPoints={};v[r.id]=h.map(l)}},c={element:r.bgRect.node(),gd:n,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(f){f===2&&dzt(n)}};a==="pan"?(i.node().onmousedown=null,i.call(pzt(r,t)),i.on("dblclick.zoom",s),n._context._scrollZoom.geo||i.on("wheel.zoom",null)):(a==="select"||a==="lasso")&&(i.on(".zoom",null),c.prepFn=function(f,h,d){hzt(f,h,d,c,a)},OZ.init(c)),i.on("mousemove",function(){var f=r.projection.invert(aC.getPositionFromD3Event());if(!f)return OZ.unhover(n,t1.event);r.xaxis.p2c=function(){return f[0]},r.yaxis.p2c=function(){return f[1]},bDe.hover(n,t1.event,r.id)}),i.on("mouseout",function(){n._dragging||OZ.unhover(n,t1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&vzt(t1.event,n,[r.xaxis],[r.yaxis],r.id,c),o.indexOf("event")>-1&&bDe.click(n,t1.event))})};$g.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,n="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=t1.select(e.container).append("g").attr("class","geo "+e.id).call(nC.setClipUrl,n,t),e.project=function(i){var a=e.projection(i);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(i){return e.project(i)[0]}},e.yaxis={_id:"y",c2p:function(i){return e.project(i)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},qZ.setConvert(e.mockAxis,r)};$g.saveViewInitial=function(e){var t=e.center||{},r=e.projection,n=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var i;e._isScoped?i={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?i={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:i={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":n.lon},aC.extendFlat(this.viewInitial,i)};$g.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};$g._render=function(){var e=this.projection,t=e.getPath(),r;function n(a){var o=e(a.lonlat);return o?czt(o[0],o[1]):null}function i(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",i).attr("transform",n)};function yzt(e){var t=e.projection,r=t.type,n=cp.projNames[r];n="geo"+aC.titleCase(n);for(var i=BZ[n]||lzt[n],a=i(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?cp.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],l=function(f){return f?a:[]},u=0;uv}else return!1},a.getPath=function(){return ozt().projection(a)},a.getBounds=function(f){return a.getPath().bounds(f)},a.precision(cp.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-cp.clipPad),a}function _zt(e,t,r){var n=1e-6,i=2.5,a=t[e],o=cp.scopeDefaults[t.scope],s,l,u;e==="lonaxis"?(s=o.lonaxisRange,l=o.lataxisRange,u=function(C,E){return[C,E]}):e==="lataxis"&&(s=o.lataxisRange,l=o.lonaxisRange,u=function(C,E){return[E,C]});var c={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};qZ.setConvert(c,r);var f=qZ.calcTicks(c);!t.isScoped&&e==="lonaxis"&&f.pop();for(var h=f.length,d=new Array(h),v=0;v0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}});var NZ=ye((Agr,LDe)=>{"use strict";var KA=Eh(),xzt=kc().attributes,bzt=Pd().dash,YA=eC(),wzt=mc().overrideAll,CDe=Z1(),kDe={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:KA.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:bzt},Tzt=LDe.exports=wzt({domain:xzt({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:CDe(YA.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:CDe(YA.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:KA.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:YA.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:YA.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:YA.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:YA.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:KA.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:KA.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:KA.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:KA.background},lonaxis:kDe,lataxis:kDe},"plot","from-root");Tzt.uirevision={valType:"any",editType:"none"}});var RDe=ye((Sgr,IDe)=>{"use strict";var PF=Dr(),Azt=C_(),Szt=Id().getSubplotData,IF=eC(),Mzt=NZ(),PDe=IF.axesNames;IDe.exports=function(t,r,n){Azt(t,r,n,{type:"geo",attributes:Mzt,handleDefaults:Ezt,fullData:n,partition:"y"})};function Ezt(e,t,r,n){var i=Szt(n.fullData,"geo",n.id),a=i.map(function(oe){return oe.index}),o=r("resolution"),s=r("scope"),l=IF.scopeDefaults[s],u=r("projection.type",l.projType),c=t._isAlbersUsa=u==="albers usa";c&&(s=t.scope="usa");var f=t._isScoped=s!=="world",h=t._isSatellite=u==="satellite",d=t._isConic=u.indexOf("conic")!==-1||u==="albers",v=t._isClipped=!!IF.lonaxisSpan[u];if(e.visible===!1){var x=PF.extendDeep({},t._template);x.showcoastlines=!1,x.showcountries=!1,x.showframe=!1,x.showlakes=!1,x.showland=!1,x.showocean=!1,x.showrivers=!1,x.showsubunits=!1,x.lonaxis&&(x.lonaxis.showgrid=!1),x.lataxis&&(x.lataxis.showgrid=!1),t._template=x}for(var b=r("visible"),p,C=0;C0&&O<0&&(O+=360);var V=(z+O)/2,G;if(!c){var Z=f?l.projRotate:[V,0,0];G=r("projection.rotation.lon",Z[0]),r("projection.rotation.lat",Z[1]),r("projection.rotation.roll",Z[2]),p=r("showcoastlines",!f&&b),p&&(r("coastlinecolor"),r("coastlinewidth")),p=r("showocean",b?void 0:!1),p&&r("oceancolor")}var H,N;if(c?(H=-96.6,N=38.7):(H=f?V:G,N=(T[0]+T[1])/2),r("center.lon",H),r("center.lat",N),h&&(r("projection.tilt"),r("projection.distance")),d){var j=l.projParallels||[0,60];r("projection.parallels",j)}r("projection.scale"),p=r("showland",b?void 0:!1),p&&r("landcolor"),p=r("showlakes",b?void 0:!1),p&&r("lakecolor"),p=r("showrivers",b?void 0:!1),p&&(r("rivercolor"),r("riverwidth")),p=r("showcountries",f&&s!=="usa"&&b),p&&(r("countrycolor"),r("countrywidth")),(s==="usa"||s==="north america"&&o===50)&&(r("showsubunits",b),r("subunitcolor"),r("subunitwidth")),f||(p=r("showframe",b),p&&(r("framecolor"),r("framewidth"))),r("bgcolor");var re=r("fitbounds");re&&(delete t.projection.scale,f?(delete t.center.lon,delete t.center.lat):v?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}});var UZ=ye((Mgr,zDe)=>{"use strict";var Czt=Id().getSubplotCalcData,kzt=Dr().counterRegex,Lzt=EDe(),Wm="geo",DDe=kzt(Wm),FDe={};FDe[Wm]={valType:"subplotid",dflt:Wm,editType:"calc"};function Pzt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Wm],i=0;i{"use strict";ODe.exports={attributes:G2(),supplyDefaults:yRe(),colorbar:$d(),formatLabels:bRe(),calc:hF(),calcGeoJSON:kZ().calcGeoJSON,plot:kZ().plot,style:SZ(),styleOnSelect:ap().styleOnSelect,hoverPoints:oDe(),eventData:lDe(),selectPoints:fDe(),moduleType:"trace",name:"scattergeo",basePlotModule:UZ(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var NDe=ye((Cgr,BDe)=>{"use strict";BDe.exports=qDe()});var JA=ye((kgr,GDe)=>{"use strict";var Dzt=Qo().hovertemplateAttrs,ax=G2(),Fzt=Tu(),UDe=Gl(),zzt=Eh().defaultLine,nx=Ao().extendFlat,VDe=ax.marker.line;GDe.exports=nx({locations:{valType:"data_array",editType:"calc"},locationmode:ax.locationmode,z:{valType:"data_array",editType:"calc"},geojson:nx({},ax.geojson,{}),featureidkey:ax.featureidkey,text:nx({},ax.text,{}),hovertext:nx({},ax.hovertext,{}),marker:{line:{color:nx({},VDe.color,{dflt:zzt}),width:nx({},VDe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:ax.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:ax.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:nx({},UDe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Dzt(),showlegend:nx({},UDe.showlegend,{dflt:!1})},Fzt("",{cLetter:"z",editTypeOverride:"calc"}))});var jDe=ye((Lgr,HDe)=>{"use strict";var oC=Dr(),Ozt=Jh(),qzt=JA(),Bzt=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");HDe.exports=function(t,r,n,i){function a(h,d){return oC.coerce(t,r,qzt,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&oC.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var l=a("geojson"),u;(typeof l=="string"&&l!==""||oC.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="country names"&&oC.warn(Bzt),c==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate");var f=a("marker.line.width");f&&a("marker.line.color"),a("marker.opacity"),Ozt(t,r,i,a,{prefix:"",cLetter:"z"}),oC.coerceSelectionMarkerOpacity(r,a)}});var RF=ye((Pgr,ZDe)=>{"use strict";var WDe=Eo(),Nzt=hs().BADNUM,Uzt=gv(),Vzt=Cm(),Gzt=z0();function XDe(e){return e&&typeof e=="string"}ZDe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(c){return XDe(c)||WDe(c)}:a=XDe;for(var o=0;o{"use strict";var Hzt=Oa(),jzt=Ca(),VZ=So(),Wzt=tc();function Xzt(e,t){t&&YDe(e,t)}function YDe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=Wzt.makeColorScaleFuncFromTrace(r);i.each(function(l){Hzt.select(this).attr("fill",s(l.z)).call(jzt.stroke,l.mlc||o.color).call(VZ.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),VZ.selectedPointStyle(i,r)}function Zzt(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?VZ.selectedPointStyle(r.selectAll(".choroplethlocation"),n):YDe(e,t)}KDe.exports={style:Xzt,styleOnSelect:Zzt}});var GZ=ye((Rgr,QDe)=>{"use strict";var Yzt=Oa(),JDe=Dr(),$A=ix(),Kzt=vF().getTopojsonFeatures,$De=wg().findExtremes,Jzt=DF().style;function $zt(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");JDe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=Yzt.select(this),o=a.selectAll("path.choroplethlocation").data(JDe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),Jzt(e,i)})}function Qzt(e,t){for(var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?$A.extractTraceFeature(e):Kzt(r,i.topojson),l=[],u=[],c=0;c{"use strict";var e7t=ho(),t7t=JA(),r7t=Dr().fillText;eFe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s,l,u,c,f=[r,n],h=[r+360,n];for(l=0;l")}}});var zF=ye((Fgr,tFe)=>{"use strict";tFe.exports=function(t,r,n,i,a){t.location=r.location,t.z=r.z;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var OF=ye((zgr,rFe)=>{"use strict";rFe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l,u,c,f;if(r===!1)for(s=0;s{"use strict";iFe.exports={attributes:JA(),supplyDefaults:jDe(),colorbar:S_(),calc:RF(),calcGeoJSON:GZ().calcGeoJSON,plot:GZ().plot,style:DF().style,styleOnSelect:DF().styleOnSelect,hoverPoints:FF(),eventData:zF(),selectPoints:OF(),moduleType:"trace",name:"choropleth",basePlotModule:UZ(),categories:["geo","noOpacity","showLegend"],meta:{}}});var oFe=ye((qgr,aFe)=>{"use strict";aFe.exports=nFe()});var qF=ye((Bgr,lFe)=>{"use strict";var n7t=qa(),s0=Dr(),a7t=oT();function o7t(e,t,r,n){var i=e.cd,a=i[0].t,o=i[0].trace,s=e.xa,l=e.ya,u=a.x,c=a.y,f=s.c2p(t),h=l.c2p(r),d=e.distance,v;if(a.tree){var x=s.p2c(f-d),b=s.p2c(f+d),p=l.p2c(h-d),C=l.p2c(h+d);n==="x"?v=a.tree.range(Math.min(x,b),Math.min(l._rl[0],l._rl[1]),Math.max(x,b),Math.max(l._rl[0],l._rl[1])):v=a.tree.range(Math.min(x,b),Math.min(p,C),Math.max(x,b),Math.max(p,C))}else v=a.ids;var E,A,L,_,k,M,g,P,T,z=d;if(n==="x"){var O=!!o.xperiodalignment,V=!!o.yperiodalignment;for(k=0;k=Math.min(G,Z)&&f<=Math.max(G,Z)?0:1/0}if(M=Math.min(H,N)&&h<=Math.max(H,N)?0:1/0}T=Math.sqrt(M*M+g*g),A=v[k]}}}else for(k=v.length-1;k>-1;k--)E=v[k],L=u[E],_=c[E],M=s.c2p(L)-f,g=l.c2p(_)-h,P=Math.sqrt(M*M+g*g),P{"use strict";var uFe=20;cFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:uFe,SYMBOL_STROKE:uFe/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var sC=ye((Ugr,vFe)=>{"use strict";var s7t=Gl(),l7t=ec(),u7t=Eg(),qf=pf(),fFe=df().axisHoverFormat,hFe=Tu(),c7t=Z1(),HZ=Ao().extendFlat,f7t=mc().overrideAll,h7t=ox().DASHES,dFe=qf.line,r1=qf.marker,d7t=r1.line,QA=vFe.exports=f7t({x:qf.x,x0:qf.x0,dx:qf.dx,y:qf.y,y0:qf.y0,dy:qf.dy,xperiod:qf.xperiod,yperiod:qf.yperiod,xperiod0:qf.xperiod0,yperiod0:qf.yperiod0,xperiodalignment:qf.xperiodalignment,yperiodalignment:qf.yperiodalignment,xhoverformat:fFe("x"),yhoverformat:fFe("y"),text:qf.text,hovertext:qf.hovertext,textposition:qf.textposition,textfont:l7t({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:dFe.color,width:dFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:c7t(h7t),dflt:"solid"}},marker:HZ({},hFe("marker"),{symbol:r1.symbol,angle:r1.angle,size:r1.size,sizeref:r1.sizeref,sizemin:r1.sizemin,sizemode:r1.sizemode,opacity:r1.opacity,colorbar:r1.colorbar,line:HZ({},hFe("marker.line"),{width:d7t.width})}),connectgaps:qf.connectgaps,fill:HZ({},qf.fill,{dflt:"none"}),fillcolor:u7t(),selected:{marker:qf.selected.marker,textfont:qf.selected.textfont},unselected:{marker:qf.unselected.marker,textfont:qf.unselected.textfont},opacity:s7t.opacity},"calc","nested");QA.x.editType=QA.y.editType=QA.x0.editType=QA.y0.editType="calc+clearAxisTypes";QA.hovertemplate=qf.hovertemplate;QA.texttemplate=qf.texttemplate});var BF=ye(jZ=>{"use strict";var pFe=ox();jZ.isOpenSymbol=function(e){return typeof e=="string"?pFe.OPEN_RE.test(e):e%200>100};jZ.isDotSymbol=function(e){return typeof e=="string"?pFe.DOT_RE.test(e):e>200}});var yFe=ye((Ggr,mFe)=>{"use strict";var gFe=Dr(),v7t=qa(),p7t=BF(),g7t=sC(),m7t=Sm(),NF=Ru(),y7t=K3(),_7t=Pg(),x7t=$p(),b7t=R0(),w7t=Ig(),T7t=D0();mFe.exports=function(t,r,n,i){function a(d,v){return gFe.coerce(t,r,g7t,d,v)}var o=t.marker?p7t.isOpenSymbol(t.marker.symbol):!1,s=NF.isBubble(t),l=y7t(t,r,i,a);if(!l){r.visible=!1;return}_7t(t,r,i,a),a("xhoverformat"),a("yhoverformat");var u=l{"use strict";var A7t=tI();_Fe.exports=function(t,r,n){var i=t.i;return"x"in t||(t.x=r._x[i]),"y"in t||(t.y=r._y[i]),A7t(t,r,n)}});var wFe=ye((jgr,bFe)=>{"use strict";function S7t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>=0?(a=o,i=o-1):n=o+1}return a}function M7t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>0?(a=o,i=o-1):n=o+1}return a}function E7t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<0?(a=o,n=o+1):i=o-1}return a}function C7t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<=0?(a=o,n=o+1):i=o-1}return a}function k7t(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function lC(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}bFe.exports={ge:function(e,t,r,n,i){return lC(e,t,r,n,i,S7t)},gt:function(e,t,r,n,i){return lC(e,t,r,n,i,M7t)},lt:function(e,t,r,n,i){return lC(e,t,r,n,i,E7t)},le:function(e,t,r,n,i){return lC(e,t,r,n,i,C7t)},eq:function(e,t,r,n,i){return lC(e,t,r,n,i,k7t)}}});var Xm=ye((Wgr,AFe)=>{"use strict";AFe.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=TFe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var L7t=Xm();SFe.exports=P7t;function P7t(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=L7t(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var j2=ye((Zgr,MFe)=>{"use strict";MFe.exports=I7t;function I7t(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;ni&&(i=e[o]),e[o]{EFe.exports=function(){for(var e=0;e{var kFe=WD();LFe.exports=R7t;function R7t(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,s,l;(!t||typeof t=="string")&&(t=new(kFe(t||"float32"))(i+r));var u=t.length-r;if(i!==u)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+u);for(a=0,s=r;a{"use strict";PFe.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var DFe=ye(($gr,RFe)=>{"use strict";RFe.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var UFe=ye((Qgr,NFe)=>{"use strict";var FFe=wFe(),zFe=XE(),D7t=e5(),F7t=j2(),OFe=Xm(),XZ=CFe(),z7t=W2(),O7t=IFe(),q7t=WD(),qFe=DFe(),B7t=1073741824;NFe.exports=function(t,r){r||(r={}),t=z7t(t,"float64"),r=OFe(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=XZ(r.maxDepth,255),i=XZ(r.bounds,F7t(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=BFe(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(q7t(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let p=0;pn||_>B7t){for(let N=0;N_e||g>Me||P=z||re===oe)return;let ke=l[j];oe===void 0&&(oe=ke.length);for(let Fe=re;Fe=A&&Ze<=_&&ct>=L&&ct<=k&&O.push(ce)}let me=u[j],ie=me[re*4+0],Se=me[re*4+1],Le=me[re*4+2],Ae=me[re*4+3],De=G(me,re+1),Pe=N*.5,ge=j+1;V(Z,H,Pe,ge,ie,Se||Le||Ae||De),V(Z,H+Pe,Pe,ge,Se,Le||Ae||De),V(Z+Pe,H,Pe,ge,Le,Ae||De),V(Z+Pe,H+Pe,Pe,ge,Ae,De)}function G(Z,H){let N=null,j=0;for(;N===null;)if(N=Z[H*4+j],j++,j>Z.length)return null;return N}return O}function x(p,C,E,A,L){let _=[];for(let k=0;k{"use strict";VFe.exports=UFe()});var ZZ=ye((tmr,GFe)=>{GFe.exports=N7t;function N7t(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var l=1;l{"use strict";Object.defineProperty(VF,"__esModule",{value:!0});var U7t=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(n.push(l.value),!(r&&n.length===r));i=!0);}catch(u){a=!0,o=u}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),uC=Math.PI*2,YZ=function(t,r,n,i,a,o,s){var l=t.x,u=t.y;l*=r,u*=n;var c=i*l-a*u,f=a*l+i*u;return{x:c+o,y:f+s}},V7t=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},HFe=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},G7t=function(t,r,n,i,a,o,s,l,u,c,f,h){var d=Math.pow(a,2),v=Math.pow(o,2),x=Math.pow(f,2),b=Math.pow(h,2),p=d*v-d*b-v*x;p<0&&(p=0),p/=d*b+v*x,p=Math.sqrt(p)*(s===l?-1:1);var C=p*a/o*h,E=p*-o/a*f,A=c*C-u*E+(t+n)/2,L=u*C+c*E+(r+i)/2,_=(f-C)/a,k=(h-E)/o,M=(-f-C)/a,g=(-h-E)/o,P=HFe(1,0,_,k),T=HFe(_,k,M,g);return l===0&&T>0&&(T-=uC),l===1&&T<0&&(T+=uC),[A,L,P,T]},H7t=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,c=t.largeArcFlag,f=c===void 0?0:c,h=t.sweepFlag,d=h===void 0?0:h,v=[];if(o===0||s===0)return[];var x=Math.sin(u*uC/360),b=Math.cos(u*uC/360),p=b*(r-i)/2+x*(n-a)/2,C=-x*(r-i)/2+b*(n-a)/2;if(p===0&&C===0)return[];o=Math.abs(o),s=Math.abs(s);var E=Math.pow(p,2)/Math.pow(o,2)+Math.pow(C,2)/Math.pow(s,2);E>1&&(o*=Math.sqrt(E),s*=Math.sqrt(E));var A=G7t(r,n,i,a,o,s,f,d,x,b,p,C),L=U7t(A,4),_=L[0],k=L[1],M=L[2],g=L[3],P=Math.abs(g)/(uC/4);Math.abs(1-P)<1e-7&&(P=1);var T=Math.max(Math.ceil(P),1);g/=T;for(var z=0;z{"use strict";ZFe.exports=W7t;var j7t=WFe();function W7t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function GF(e,t,r,n){return["C",e,t,r,n,r,n]}function XFe(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var KZ=ye((imr,KFe)=>{"use strict";KFe.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var QFe=ye((nmr,$Fe)=>{"use strict";var X7t=$S(),Z7t=ZZ(),Y7t=YFe(),K7t=KZ(),JFe=oE();$Fe.exports=J7t;function J7t(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(JFe(K7t(e),"String is not an SVG path."),e=X7t(e)),JFe(Array.isArray(e),"Argument should be a string or an array of path segments."),e=Z7t(e),e=Y7t(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;rt[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}});var aze=ye((amr,nze)=>{var X2=Math.PI,eze=ize(120);nze.exports=$7t;function $7t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var x=u,b=c;(t=="C"||t=="S")&&(x+=x-n,b+=b-i),d=["C",x,b,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=u*2-s,l=c*2-l):(s=u,l=c),d=tze(u,c,s,l,d[1],d[2]);break;case"Q":s=d[1],l=d[2],d=tze(u,c,d[1],d[2],d[3],d[4]);break;case"L":d=HF(u,c,d[1],d[2]);break;case"H":d=HF(u,c,d[1],c);break;case"V":d=HF(u,c,u,d[1]);break;case"Z":d=HF(u,c,a,o);break}t=v,u=d[d.length-2],c=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function HF(e,t,r,n){return["C",e,t,r,n,r,n]}function tze(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function rze(e,t,r,n,i,a,o,s,l,u){if(u)E=u[0],A=u[1],p=u[2],C=u[3];else{var c=JZ(e,t,-i);e=c.x,t=c.y,c=JZ(s,l,-i),s=c.x,l=c.y;var f=(e-s)/2,h=(t-l)/2,d=f*f/(r*r)+h*h/(n*n);d>1&&(d=Math.sqrt(d),r=d*r,n=d*n);var v=r*r,x=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((v*x-v*h*h-x*f*f)/(v*h*h+x*f*f)));b==1/0&&(b=1);var p=b*r*h/n+(e+s)/2,C=b*-n*f/r+(t+l)/2,E=Math.asin(((t-C)/n).toFixed(9)),A=Math.asin(((l-C)/n).toFixed(9));E=eA&&(E=E-X2*2),!o&&A>E&&(A=A-X2*2)}if(Math.abs(A-E)>eze){var L=A,_=s,k=l;A=E+eze*(o&&A>E?1:-1),s=p+r*Math.cos(A),l=C+n*Math.sin(A);var M=rze(s,l,r,n,i,0,o,_,k,[A,L,p,C])}var g=Math.tan((A-E)/4),P=4/3*r*g,T=4/3*n*g,z=[2*e-(e+P*Math.sin(E)),2*t-(t-T*Math.cos(E)),s+P*Math.sin(A),l-T*Math.cos(A),s,l];if(u)return z;M&&(z=z.concat(M));for(var O=0;O{var Q7t=ZZ(),e9t=aze(),t9t={M:"moveTo",C:"bezierCurveTo"};oze.exports=function(e,t){e.beginPath(),e9t(Q7t(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[t9t[n]].apply(e,i)}),e.closePath()}});var fze=ye((smr,cze)=>{"use strict";var r9t=XE();cze.exports=i9t;var cC=1e20;function i9t(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,s,l,u,c,f,h,d,v,x;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,l=e,t.stride?c=t.stride:c=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,f=h.getContext("2d"),a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,f=e,a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,l=d.data,c=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(u=l,l=Array(a*o),v=0,x=u.length;v{"use strict";var n9t=QFe(),a9t=$S(),o9t=sze(),s9t=KZ(),l9t=fze(),$Z=document.createElement("canvas"),fp=$Z.getContext("2d");hze.exports=u9t;function u9t(e,t){if(!s9t(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=$Z.width=t.w||t.width||200,n=$Z.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||n9t(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],l=Math.min(s[0]||0,s[1]||0)/2;if(fp.fillStyle="black",fp.fillRect(0,0,r,n),fp.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?fp.strokeStyle="white":fp.strokeStyle="black",fp.lineWidth=Math.abs(a)),fp.translate(r*.5,n*.5),fp.scale(l,l),c9t()){var u=new Path2D(e);fp.fill(u),a&&fp.stroke(u)}else{var c=a9t(e);o9t(fp,c),fp.fill(),a&&fp.stroke()}fp.setTransform(1,0,0,1,0,0);var f=l9t(fp,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return f}var jF;function c9t(){if(jF!=null)return jF;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return jF=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return jF=r&&r.data&&r.data[3]===255}});var Y2=ye((umr,Aze)=>{"use strict";var XF=Eo(),f9t=dze(),WF=J_(),h9t=qa(),i5=Dr(),gh=i5.isArrayOrTypedArray,t5=So(),vze=hf(),pze=$y().formatColor,r5=Ru(),d9t=S3(),eY=BF(),fC=ox(),v9t=N1().DESELECTDIM,gze={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},p9t=rp().appendArrayPointValue;function g9t(e,t){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=e._context.plotGlPixelRatio;if(t.visible!==!0)return n;if(r5.hasText(t)&&(n.text=Tze(e,t),n.textSel=yze(e,t,t.selected),n.textUnsel=yze(e,t,t.unselected)),r5.hasMarkers(t)&&(n.marker=rY(e,t),n.markerSel=tY(e,t,t.selected),n.markerUnsel=tY(e,t,t.unselected),!t.unselected&&gh(t.marker.opacity))){var a=t.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function rY(e,t){var r=t._length,n=t.marker,i={},a,o=gh(n.symbol),s=gh(n.angle),l=gh(n.color),u=gh(n.line.color),c=gh(n.opacity),f=gh(n.size),h=gh(n.line.width),d;if(o||(d=eY.isOpenSymbol(n.symbol)),o||l||u||c||s){i.symbols=new Array(r),i.angles=new Array(r),i.colors=new Array(r),i.borderColors=new Array(r);var v=n.symbol,x=n.angle,b=pze(n,n.opacity,r),p=pze(n.line,n.opacity,r);if(!gh(p[0])){var C=p;for(p=Array(r),a=0;afC.TOO_MANY_POINTS||r5.hasMarkers(t)?"rect":"round";if(u&&t.connectgaps){var f=a[0],h=a[1];for(o=0;o1?l[o]:l[0]:l,d=gh(u)?u.length>1?u[o]:u[0]:u,v=gze[h],x=gze[d],b=c?c/.8+1:0,p=-x*b-x*.5;a.offset[o]=[v*b/f,p/f]}}return a}Aze.exports={style:g9t,markerStyle:rY,markerSelection:tY,linePositions:y9t,errorBarPositions:_9t,textPosition:x9t}});var iY=ye((cmr,Sze)=>{"use strict";var ZF=Dr();Sze.exports=function(t,r){var n=r._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(n=r._scene={},n.init=function(){ZF.extendFlat(n,a,i)},n.init(),n.update=function(s){var l=ZF.repeat(s,n.count);if(n.fill2d&&n.fill2d.update(l),n.scatter2d&&n.scatter2d.update(l),n.line2d&&n.line2d.update(l),n.error2d&&n.error2d.update(l.concat(l)),n.select2d&&n.select2d.update(l),n.glText)for(var u=0;u{"use strict";var b9t=UF(),n5=Dr(),Mze=hf(),w9t=wg().findExtremes,Eze=Rg(),nY=O0(),T9t=nY.calcMarkerSize,A9t=nY.calcAxisExpansion,S9t=nY.setFirstScatter,M9t=F0(),a5=Y2(),E9t=iY(),Cze=hs().BADNUM,C9t=ox().TOO_MANY_POINTS;Lze.exports=function(t,r){var n=t._fullLayout,i=r._xA=Mze.getFromId(t,r.xaxis,"x"),a=r._yA=Mze.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,l=s>=C9t,u=s*2,c={},f,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),v=Eze(r,i,"x",h),x=Eze(r,a,"y",d),b=v.vals,p=x.vals;r._x=b,r._y=p,r.xperiodalignment&&(r._origX=h,r._xStarts=v.starts,r._xEnds=v.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=x.starts,r._yEnds=x.ends);var C=new Array(u),E=new Array(s);for(f=0;f1&&n5.extendFlat(o.line,a5.linePositions(e,r,n)),o.errorX||o.errorY){var s=a5.errorBarPositions(e,r,n,i,a);o.errorX&&n5.extendFlat(o.errorX,s.x),o.errorY&&n5.extendFlat(o.errorY,s.y)}return o.text&&(n5.extendFlat(o.text,{positions:n},a5.textPosition(e,r,o.text,o.marker)),n5.extendFlat(o.textSel,{positions:n},a5.textPosition(e,r,o.text,o.markerSel)),n5.extendFlat(o.textUnsel,{positions:n},a5.textPosition(e,r,o.text,o.markerUnsel))),o}});var aY=ye((hmr,Rze)=>{"use strict";var Ize=Dr(),L9t=Ca(),P9t=N1().DESELECTDIM;function I9t(e){var t=e[0],r=t.trace,n=t.t,i=n._scene,a=n.index,o=i.selectBatch[a],s=i.unselectBatch[a],l=i.textOptions[a],u=i.textSelectedOptions[a]||{},c=i.textUnselectedOptions[a]||{},f=Ize.extendFlat({},l),h,d;if(o.length||s.length){var v=u.color,x=c.color,b=l.color,p=Ize.isArrayOrTypedArray(b);for(f.color=new Array(r._length),h=0;h{"use strict";var Dze=Ru(),R9t=aY().styleTextSelection;Fze.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l=n[0].t,u=s._length,c=l.x,f=l.y,h=l._scene,d=l.index;if(!h)return o;var v=Dze.hasText(s),x=Dze.hasMarkers(s),b=!x&&!v;if(s.visible!==!0||b)return o;var p=[],C=[];if(r!==!1&&!r.degenerate)for(var E=0;E{"use strict";var D9t=qF();zze.exports={moduleType:"trace",name:"scattergl",basePlotModule:vh(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:sC(),supplyDefaults:yFe(),crossTraceDefaults:iU(),colorbar:$d(),formatLabels:xFe(),calc:Pze(),hoverPoints:D9t.hoverPoints,selectPoints:oY(),meta:{}}});var Bze=ye((pmr,KF)=>{"use strict";var YF=XE();KF.exports=qze;KF.exports.to=qze;KF.exports.from=F9t;function qze(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=YF(r,0,255)&255,n=YF(n,0,255)&255,i=YF(i,0,255)&255,a=YF(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function F9t(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}});var Fh=ye((gmr,Uze)=>{"use strict";var Nze=Object.getOwnPropertySymbols,z9t=Object.prototype.hasOwnProperty,O9t=Object.prototype.propertyIsEnumerable;function q9t(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function B9t(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}Uze.exports=B9t()?Object.assign:function(e,t){for(var r,n=q9t(e),i,a=1;a{Vze.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";Hze.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";jze.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var JF=ye((xmr,o5)=>{"use strict";o5.exports=hC;o5.exports.float32=o5.exports.float=hC;o5.exports.fract32=o5.exports.fract=N9t;var Xze=new Float32Array(1);function N9t(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=hC(e));for(var r=0,n=t.length;r{"use strict";function U9t(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function V9t(e,t){return j9t(e)||U9t(e,t)||Yze(e,t)||Z9t()}function G9t(e){return H9t(e)||W9t(e)||Yze(e)||X9t()}function H9t(e){if(Array.isArray(e))return lY(e)}function j9t(e){if(Array.isArray(e))return e}function W9t(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yze(e,t){if(e){if(typeof e=="string")return lY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lY(e,t)}}function lY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(N=H.size),H.lineSpacing&&H.lineSpacing>0&&(j=H.lineSpacing),H.styletags&&H.styletags.breaklines&&(re.breaklines=!!H.styletags.breaklines),H.styletags&&H.styletags.bolds&&(re.bolds=!!H.styletags.bolds),H.styletags&&H.styletags.italics&&(re.italics=!!H.styletags.italics),H.styletags&&H.styletags.subscripts&&(re.subscripts=!!H.styletags.subscripts),H.styletags&&H.styletags.superscripts&&(re.superscripts=!!H.styletags.superscripts)),Z.font=[H.fontStyle,H.fontVariant,H.fontWeight,N+"px",H.font].filter(function(_e){return _e}).join(" "),Z.textAlign="start",Z.textBaseline="alphabetic",Z.direction="ltr";var oe=g(G,Z,V,N,j,re);return z(oe,H,N)}},1538:function(i){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(T){T.permitHostObjects___&&T.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var l=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var u=new l,c=Object.freeze({});if(u.set(c,1),u.get(c)!==1)s=!0;else{i.exports=WeakMap;return}}}var f=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,v=Object.isExtensible,_="weakmap:",b=_+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var p=new ArrayBuffer(25),C=new Uint8Array(p);crypto.getRandomValues(C),b=_+"rand:"+Array.prototype.map.call(C,function(T){return(T%36).toString(36)}).join("")+"___"}function E(T){return!(T.substr(0,_.length)==_&&T.substr(T.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(z){return h(z).filter(E)}}),"getPropertyNames"in Object){var A=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(z){return A(z).filter(E)}})}function L(T){if(T!==Object(T))throw new TypeError("Not an object: "+T);var z=T[b];if(z&&z.key===T)return z;if(v(T)){z={key:T};try{return d(T,b,{value:z,writable:!1,enumerable:!1,configurable:!1}),z}catch(O){return}}}(function(){var T=Object.freeze;d(Object,"freeze",{value:function(G){return L(G),T(G)}});var z=Object.seal;d(Object,"seal",{value:function(G){return L(G),z(G)}});var O=Object.preventExtensions;d(Object,"preventExtensions",{value:function(G){return L(G),O(G)}})})();function x(T){return T.prototype=null,Object.freeze(T)}var k=!1;function M(){!k&&typeof console!="undefined"&&(k=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var g=0,P=function(){this instanceof P||M();var T=[],z=[],O=g++;function V(N,j){var re,oe=L(N);return oe?O in oe?oe[O]:j:(re=T.indexOf(N),re>=0?z[re]:j)}function G(N){var j=L(N);return j?O in j:T.indexOf(N)>=0}function Z(N,j){var re,oe=L(N);return oe?oe[O]=j:(re=T.indexOf(N),re>=0?z[re]=j:(re=T.length,z[re]=j,T[re]=N)),this}function H(N){var j=L(N),re,oe;return j?O in j&&delete j[O]:(re=T.indexOf(N),re<0?!1:(oe=T.length-1,T[re]=void 0,z[re]=z[oe],T[re]=T[oe],T.length=oe,z.length=oe,!0))}return Object.create(P.prototype,{get___:{value:x(V)},has___:{value:x(G)},set___:{value:x(Z)},delete___:{value:x(H)}})};P.prototype=Object.create(Object.prototype,{get:{value:function(z,O){return this.get___(z,O)},writable:!0,configurable:!0},has:{value:function(z){return this.has___(z)},writable:!0,configurable:!0},set:{value:function(z,O){return this.set___(z,O)},writable:!0,configurable:!0},delete:{value:function(z){return this.delete___(z)},writable:!0,configurable:!0}}),typeof l=="function"?function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function T(){this instanceof P||M();var z=new l,O=void 0,V=!1;function G(j,re){return O?z.has(j)?z.get(j):O.get___(j,re):z.get(j,re)}function Z(j){return z.has(j)||(O?O.has___(j):!1)}var H;s?H=function(j,re){return z.set(j,re),z.has(j)||(O||(O=new P),O.set(j,re)),this}:H=function(j,re){if(V)try{z.set(j,re)}catch(oe){O||(O=new P),O.set___(j,re)}else z.set(j,re);return this};function N(j){var re=!!z.delete(j);return O&&O.delete___(j)||re}return Object.create(P.prototype,{get___:{value:x(G)},has___:{value:x(Z)},set___:{value:x(H)},delete___:{value:x(N)},permitHostObjects___:{value:x(function(j){if(j===o)V=!0;else throw new Error("bogus call to permitHostObjects___")})}})}T.prototype=P.prototype,i.exports=T,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),i.exports=P)})()},236:function(i,a,o){var s=o(8284);i.exports=l;function l(){var u={};return function(c){if((typeof c!="object"||c===null)&&typeof c!="function")throw new Error("Weakmap-shim: Key must be object");var f=c.valueOf(u);return f&&f.identity===u?f:s(c,u)}}},8284:function(i){i.exports=a;function a(o,s){var l={identity:s},u=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(c){return c!==s?u.apply(this,arguments):l},writable:!0}),l}},606:function(i,a,o){var s=o(236);i.exports=l;function l(){var u=s();return{get:function(c,f){var h=u(c);return h.hasOwnProperty("value")?h.value:f},set:function(c,f){return u(c).value=f,this},has:function(c){return"value"in u(c)},delete:function(c){return delete u(c).value}}}},3349:function(i){"use strict";function a(){return function(f,h,d,v,_,b){var p=f[0],C=d[0],E=[0],A=C;v|=0;var L=0,x=C;for(L=0;L=0!=M>=0&&_.push(E[0]+.5+.5*(k+M)/(k-M))}v+=x,++E[0]}}}function o(){return a()}var s=o;function l(f){var h={};return function(v,_,b){var p=v.dtype,C=v.order,E=[p,C.join()].join(),A=h[E];return A||(h[E]=A=f([p,C])),A(v.shape.slice(0),v.data,v.stride,v.offset|0,_,b)}}function u(f){return l(s.bind(void 0,f))}function c(f){return u({funcName:f.funcName})}i.exports=c({funcName:"zeroCrossings"})},781:function(i,a,o){"use strict";i.exports=l;var s=o(3349);function l(u,c){var f=[];return c=+c||0,s(u.hi(u.shape[0]-1),f,c),f}},7790:function(){}},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(function(){r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()})(),function(){r.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}}();var n=r(1964);oPe.exports=n})()});var dX=ye((Wpr,sPe)=>{"use strict";sPe.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var fPe=ye((Xpr,cPe)=>{"use strict";var lPe=dX();cPe.exports=CPt;var uPe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function CPt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),lPe[e])r=lPe[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],u=l==="rgb",a=l.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(uPe[h]!==void 0)return uPe[h]}return parseFloat(h)}),l===a&&r.push(1),n=u||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(c){return parseFloat(c)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}});var dPe=ye((Zpr,hPe)=>{"use strict";var kPt=fPe();hPe.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=kPt(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=LPt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function LPt(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}});var ZE=ye((Ypr,vPe)=>{vPe.exports=PPt;function PPt(e,t,r){return tr?r:e:et?t:e}});var WD=ye((Kpr,pPe)=>{pPe.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var J_=ye((Jpr,gPe)=>{"use strict";var IPt=dPe(),XD=ZE(),RPt=WD();gPe.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=RPt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=IPt(t),t[0]/=255,t[1]/=255,t[2]/=255),DPt(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=XD(Math.floor(t[0]*255),0,255),i[1]=XD(Math.floor(t[1]*255),0,255),i[2]=XD(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:XD(Math.floor(t[3]*255),0,255)),i)};function DPt(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var Jy=ye(($pr,mPe)=>{"use strict";var FPt=J_();function zPt(e){return e?FPt(e):[0,0,0,1]}mPe.exports=zPt});var $y=ye((Qpr,APe)=>{"use strict";var wPe=Eo(),OPt=cd(),ZD=J_(),YD=tc(),qPt=Ch().defaultLine,yPe=vv().isArrayOrTypedArray,vX=ZD(qPt),TPe=1;function _Pe(e,t){var r=e;return r[3]*=t,r}function xPe(e){if(wPe(e))return vX;var t=ZD(e);return t.length?t:vX}function bPe(e){return wPe(e)?e:TPe}function BPt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=yPe(n),a=yPe(t),o=YD.extractOpts(e),s=[],l,u,c,f,h;if(o.colorscale!==void 0?l=YD.makeColorScaleFuncFromTrace(e):l=xPe,i?u=function(v,_){return v[_]===void 0?vX:ZD(l(v[_]))}:u=xPe,a?c=function(v,_){return v[_]===void 0?TPe:bPe(v[_])}:c=bPe,i||a)for(var d=0;d{"use strict";SPe.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var KD=ye((t0r,MPe)=>{"use strict";MPe.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var CPe=ye((r0r,EPe)=>{"use strict";var UPt=qa();function gX(e,t,r,n){if(!t||!t.visible)return null;for(var i=UPt.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var f=n.c2l(u);n._lowerLogErrorBound||(n._lowerLogErrorBound=f),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,f)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function VPt(e){for(var t=0;t{"use strict";var HPt=Od().gl_line3d,kPe=Od().gl_scatter3d,jPt=Od().gl_error3d,WPt=Od().gl_mesh3d,XPt=Od().delaunay_triangulate,Qy=Dr(),DPe=Jy(),JD=$y().formatColor,ZPt=S3(),mX=pX(),YPt=KD(),KPt=ho(),JPt=ip().appendArrayPointValue,$Pt=CPe();function FPe(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var _X=FPe.prototype;_X.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Qy.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function QPt(e,t,r){var n=(r+1)%3,i=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function PPe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function tIt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var u=QPt(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=WPt(u),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};_X.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function aIt(e,t){var r=new FPe(e,t.uid);return r.update(t),r}zPe.exports=aIt});var AX=ye((n0r,NPe)=>{"use strict";var e1=pf(),oIt=ec(),TX=Tu(),xX=df().axisHoverFormat,sIt=Qo().hovertemplateAttrs,lIt=Qo().texttemplateAttrs,qPe=Gl(),uIt=pX(),cIt=KD(),Yg=Ao().extendFlat,fIt=mc().overrideAll,BPe=Z1(),hIt=e1.line,N2=e1.marker,dIt=N2.line,vIt=Yg({width:hIt.width,dash:{valType:"enumerated",values:BPe(uIt),dflt:"solid"}},TX("line"));function bX(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var wX=NPe.exports=fIt({x:e1.x,y:e1.y,z:{valType:"data_array"},text:Yg({},e1.text,{}),texttemplate:lIt({},{}),hovertext:Yg({},e1.hovertext,{}),hovertemplate:sIt(),xhoverformat:xX("x"),yhoverformat:xX("y"),zhoverformat:xX("z"),mode:Yg({},e1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:bX("x"),y:bX("y"),z:bX("z")},connectgaps:e1.connectgaps,line:vIt,marker:Yg({symbol:{valType:"enumerated",values:BPe(cIt),dflt:"circle",arrayOk:!0},size:Yg({},N2.size,{dflt:8}),sizeref:N2.sizeref,sizemin:N2.sizemin,sizemode:N2.sizemode,opacity:Yg({},N2.opacity,{arrayOk:!1}),colorbar:N2.colorbar,line:Yg({width:Yg({},dIt.width,{arrayOk:!1})},TX("marker.line"))},TX("marker")),textposition:Yg({},e1.textposition,{dflt:"top center"}),textfont:oIt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:qPe.opacity,hoverinfo:Yg({},qPe.hoverinfo)},"calc","nested");wX.x.editType=wX.y.editType=wX.z.editType="calc+clearAxisTypes"});var GPe=ye((a0r,VPe)=>{"use strict";var UPe=qa(),pIt=Dr(),SX=Ru(),gIt=$p(),mIt=D0(),yIt=F0(),_It=AX();VPe.exports=function(t,r,n,i){function a(d,v){return pIt.coerce(t,r,_It,d,v)}var o=xIt(t,r,a,i);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),SX.hasMarkers(r)&&gIt(t,r,n,i,a,{noSelect:!0,noAngle:!0}),SX.hasLines(r)&&(a("connectgaps"),mIt(t,r,n,i,a)),SX.hasText(r)&&(a("texttemplate"),yIt(t,r,i,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,l=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||l);for(var u=["x","y","z"],c=0;c<3;++c){var f="projection."+u[c];a(f+".show")&&(a(f+".opacity"),a(f+".scale"))}var h=UPe.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||l||n,{axis:"z"}),h(t,r,s||l||n,{axis:"y",inherit:"z"}),h(t,r,s||l||n,{axis:"x",inherit:"z"})};function xIt(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),l=UPe.getComponentMethod("calendars","handleTraceDefaults");return l(e,t,["x","y","z"],n),a&&o&&s&&(i=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=i),i}});var jPe=ye((o0r,HPe)=>{"use strict";var bIt=Cm(),wIt=z0();HPe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return bIt(n,r),wIt(t,r),n}});var XPe=ye((s0r,WPe)=>{WPe.exports=TIt;function TIt(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var n=t,i;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var AIt=XPe();ZPe.exports=function(t){return AIt("webgl",t)}});var MX=ye((u0r,JPe)=>{"use strict";var KPe=Ca(),SIt=function(){};JPe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=SIt);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=KPe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=KPe.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),t.container.appendChild(n),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var eIe=ye((c0r,QPe)=>{"use strict";var U2=Jy(),MIt=Dr(),EIt=["xaxis","yaxis","zaxis"];function $Pe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var CIt=$Pe.prototype;CIt.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[EIt[n]];if(!i.visible){r.tickEnable[n]=!1,r.labelEnable[n]=!1,r.lineEnable[n]=!1,r.lineTickEnable[n]=!1,r.gridEnable[n]=!1,r.zeroEnable[n]=!1,r.backgroundEnable[n]=!1;continue}r.labels[n]=e._meta?MIt.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=U2(i.title.font.color)),i.title.font.family&&(r.labelFont[n]=i.title.font.family),i.title.font.size&&(r.labelSize[n]=i.title.font.size),i.title.font.weight&&(r.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(r.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(r.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(r.lineEnable[n]=i.showline),"linecolor"in i&&(r.lineColor[n]=U2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=U2(i.gridcolor)),"gridwidth"in i&&(r.gridWidth[n]=i.gridwidth),i.type==="log"?r.zeroEnable[n]=!1:"zeroline"in i&&(r.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(r.zeroLineColor[n]=U2(i.zerolinecolor)),"zerolinewidth"in i&&(r.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?r.lineTickEnable[n]=!0:r.lineTickEnable[n]=!1,"ticklen"in i&&(r.lineTickLength[n]=r._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(r.lineTickColor[n]=U2(i.tickcolor)),"tickwidth"in i&&(r.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(r.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(r.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(r.tickColor[n]=U2(i.tickfont.color)),i.tickfont.family&&(r.tickFont[n]=i.tickfont.family),i.tickfont.size&&(r.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(r.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(r.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(r.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(r.lineTickMirror[n]=!0,r.lineMirror[n]=!0):i.mirror===!0?(r.lineTickMirror[n]=!1,r.lineMirror[n]=!0):(r.lineTickMirror[n]=!1,r.lineMirror[n]=!1):r.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(r.backgroundEnable[n]=!0,r.backgroundColor[n]=U2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function kIt(e,t){var r=new $Pe;return r.merge(e,t),r}QPe.exports=kIt});var iIe=ye((f0r,rIe)=>{"use strict";var LIt=Jy(),PIt=["xaxis","yaxis","zaxis"];function tIe(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var IIt=tIe.prototype;IIt.merge=function(e){for(var t=0;t<3;++t){var r=e[PIt[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=LIt(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function RIt(e){var t=new tIe;return t.merge(e),t}rIe.exports=RIt});var oIe=ye((h0r,aIe)=>{"use strict";aIe.exports=qIt;var nIe=ho(),DIt=Dr(),FIt=["xaxis","yaxis","zaxis"],zIt=[0,0,0];function OIt(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a/g," "));i[a]=u,o.tickmode=s}}t.ticks=i;for(var a=0;a<3;++a){zIt[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var c=0;c<2;++c)t.bounds[c][a]=e.glplot.bounds[c][a]}e.contourLevels=OIt(i)}});var dIe=ye((d0r,hIe)=>{"use strict";var uIe=Od().gl_plot3d,BIt=uIe.createCamera,sIe=uIe.createScene,NIt=YPe(),UIt=PL(),eF=qa(),up=Dr(),QD=up.preserveDrawingBuffer(),tF=ho(),Kg=vf(),VIt=Jy(),GIt=MX(),HIt=BU(),jIt=eIe(),WIt=iIe(),XIt=oIe(),ZIt=Tg().applyAutorangeOptions,YE,$D,cIe=!1;function fIe(e,t){var r=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=jIt(t,t[this.id]),this.spikeOptions=WIt(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=eF.getComponentMethod("annotations3d","convert"),this.drawAnnotations=eF.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Av=fIe.prototype;Av.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:QD,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!$D&&(YE=document.createElement("canvas"),$D=NIt({canvas:YE,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!$D))throw new Error("error creating static canvas/context for image server");t.gl=$D,t.canvas=YE}return t};var lIe=!0;Av.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=sIe(t)}catch(n){if(e.staticMode||!lIe||QD)r=!1;else{up.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{QD=t.glOptions.preserveDrawingBuffer=!0,e.glplot=sIe(t)}catch(i){QD=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return lIe=!1,r};Av.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=BIt(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};Av.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return GIt(e);e.traces={},e.make4thDimension();var r=e.graphDiv,n=r.layout,i=function(){var o={};return e.isCameraChanged(n)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=i();o.saveLayout(n),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){cIe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,l=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*l.x,y:s*l.y,z:s*l.z})}a(e)}},UIt?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=i();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Av.render=function(){var e=this,t=e.graphDiv,r,n=e.svgContainer,i=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",l),XIt(e),e.glplot.axes.update(e.axesOptions);for(var u=Object.keys(e.traces),c=null,f=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(p.valueLabel=tF.hoverLabelText(e._mockAxis,e._mockAxis.d2l(f.traceCoordinate[3]),r.valuehoverformat),x.push("value: "+p.valueLabel),f.textLabel&&x.push(f.textLabel),L=x.join("
")):L=f.textLabel;var k={x:f.traceCoordinate[0],y:f.traceCoordinate[1],z:f.traceCoordinate[2],data:_._input,fullData:_,curveNumber:_.index,pointNumber:b};Kg.appendArrayPointValue(k,_,b),r._module.eventData&&(k=_._module.eventData(k,f,_,{},b));var M={points:[k]};if(e.fullSceneLayout.hovermode){var g=[];Kg.loneHover({trace:_,x:(.5+.5*v[0]/v[3])*s,y:(.5-.5*v[1]/v[3])*l,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:L,name:c.name,color:Kg.castHoverOption(_,b,"bgcolor")||c.color,borderColor:Kg.castHoverOption(_,b,"bordercolor"),fontFamily:Kg.castHoverOption(_,b,"font.family"),fontSize:Kg.castHoverOption(_,b,"font.size"),fontColor:Kg.castHoverOption(_,b,"font.color"),nameLength:Kg.castHoverOption(_,b,"namelength"),textAlign:Kg.castHoverOption(_,b,"align"),hovertemplate:up.castOption(_,b,"hovertemplate"),hovertemplateLabels:up.extendFlat({},k,p),eventData:[k]},{container:n,gd:t,inOut_bbox:g}),k.bbox=g[0]}f.distance<5&&(f.buttons||cIe)?t.emit("plotly_click",M):t.emit("plotly_hover",M),this.oldEventData=M}else Kg.loneUnhover(n),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Av.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){up.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var KE=["xaxis","yaxis","zaxis"];function YIt(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=KE[i],o=a.charAt(0),s=n[a],l=t[o],u=t[o+"calendar"],c=t["_"+o+"length"];if(!up.isArrayOrTypedArray(l))r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],c-1);else for(var f,h=0;h<(c||l.length);h++)if(up.isArrayOrTypedArray(l[h]))for(var d=0;d_[1][o])_[0][o]=-1,_[1][o]=1;else{var T=_[1][o]-_[0][o];_[0][o]-=T/32,_[1][o]+=T/32}if(C=[_[0][o],_[1][o]],C=ZIt(C,l),_[0][o]=C[0],_[1][o]=C[1],l.isReversed()){var z=_[0][o];_[0][o]=_[1][o],_[1][o]=z}}else C=l.range,_[0][o]=l.r2l(C[0]),_[1][o]=l.r2l(C[1]);_[0][o]===_[1][o]&&(_[0][o]-=1,_[1][o]+=1),b[o]=_[1][o]-_[0][o],l.range=[_[0][o],_[1][o]],l.limitRange(),n.glplot.setBounds(o,{min:l.range[0]*d[o],max:l.range[1]*d[o]})}var O,V=c.aspectmode;if(V==="cube")O=[1,1,1];else if(V==="manual"){var G=c.aspectratio;O=[G.x,G.y,G.z]}else if(V==="auto"||V==="data"){var Z=[1,1,1];for(o=0;o<3;++o){l=c[KE[o]],u=l.type;var H=p[u];Z[o]=Math.pow(H.acc,1/H.count)/d[o]}V==="data"||Math.max.apply(null,Z)/Math.min.apply(null,Z)<=4?O=Z:O=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");c.aspectratio.x=f.aspectratio.x=O[0],c.aspectratio.y=f.aspectratio.y=O[1],c.aspectratio.z=f.aspectratio.z=O[2],n.glplot.setAspectratio(c.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=c.aspectmode);var N=c.domain||null,j=t._size||null;if(N&&j){var re=n.container.style;re.position="absolute",re.left=j.l+N.x[0]*j.w+"px",re.top=j.t+(1-N.y[1])*j.h+"px",re.width=j.w*(N.x[1]-N.x[0])+"px",re.height=j.h*(N.y[1]-N.y[0])+"px"}n.glplot.redraw()}};Av.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function JIt(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function $It(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Av.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),$It(e.camera)};Av.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,JIt(r)),t.glplot.setAspectratio(e.aspectratio);var n=r.projection.type==="orthographic",i=t.camera._ortho;n!==i&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};Av.isCameraChanged=function(e){var t=this,r=t.getCamera(),n=up.nestedProperty(e,t.id+".camera"),i=n.get();function a(u,c,f,h){var d=["up","center","eye"],v=["x","y","z"];return c[d[f]]&&u[d[f]][v[h]]===c[d[f]][v[h]]}var o=!1;if(i===void 0)o=!0;else{for(var s=0;s<3;s++)for(var l=0;l<3;l++)if(!a(r,i,s,l)){o=!0;break}(!i.projection||r.projection&&r.projection.type!==i.projection.type)&&(o=!0)}return o};Av.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),n=up.nestedProperty(e,t.id+".aspectratio"),i=n.get();return i===void 0||i.x!==r.x||i.y!==r.y||i.z!==r.z};Av.saveLayout=function(e){var t=this,r=t.fullLayout,n,i,a,o,s,l,u=t.isCameraChanged(e),c=t.isAspectChanged(e),f=u||c;if(f){var h={};if(u&&(n=t.getCamera(),i=up.nestedProperty(e,t.id+".camera"),a=i.get(),h[t.id+".camera"]=a),c&&(o=t.glplot.getAspectratio(),s=up.nestedProperty(e,t.id+".aspectratio"),l=s.get(),h[t.id+".aspectratio"]=l),eF.call("_storeDirectGUIEdit",e,r._preGUI,h),u){i.set(n);var d=up.nestedProperty(r,t.id+".camera");d.set(n)}if(c){s.set(o);var v=up.nestedProperty(r,t.id+".aspectratio");v.set(o),t.glplot.redraw()}}return f};Av.updateFx=function(e,t){var r=this,n=r.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,l=o.up.y,u=o.up.z;if(u/Math.sqrt(s*s+l*l+u*u)<.999){var c=r.id+".camera.up",f={x:0,y:0,z:1},h={};h[c]=f;var d=i.layout;eF.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=f,up.nestedProperty(d,c).set(f)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function QIt(e,t,r){for(var n=0,i=r-1;n0)for(var s=255/o,l=0;l<3;++l)e[a+l]=Math.min(s*e[a+l],255)}}Av.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(YE),t.glplot.redraw();var r=t.glplot.gl,n=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(n*i*4);r.readPixels(0,0,n,i,r.RGBA,r.UNSIGNED_BYTE,a),QIt(a,n,i),e8t(a,n,i);var o=document.createElement("canvas");o.width=n,o.height=i;var s=o.getContext("2d",{willReadFrequently:!0}),l=s.createImageData(n,i);l.data.set(a),s.putImageData(l,0,0);var u;switch(e){case"jpeg":u=o.toDataURL("image/jpeg");break;case"webp":u=o.toDataURL("image/webp");break;default:u=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(YE),u};Av.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[KE[t]];tF.setConvert(r,e.fullLayout),r.setScale=up.noop}};Av.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},tF.setConvert(e._mockAxis,r)};hIe.exports=fIe});var pIe=ye((v0r,vIe)=>{"use strict";vIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var CX=ye((p0r,gIe)=>{"use strict";var t8t=Ca(),bs=Rd(),EX=Ao().extendFlat,r8t=mc().overrideAll;gIe.exports=r8t({visible:bs.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:t8t.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:bs.color,categoryorder:bs.categoryorder,categoryarray:bs.categoryarray,title:{text:bs.title.text,font:bs.title.font},type:EX({},bs.type,{values:["-","linear","log","date","category"]}),autotypenumbers:bs.autotypenumbers,autorange:bs.autorange,autorangeoptions:{minallowed:bs.autorangeoptions.minallowed,maxallowed:bs.autorangeoptions.maxallowed,clipmin:bs.autorangeoptions.clipmin,clipmax:bs.autorangeoptions.clipmax,include:bs.autorangeoptions.include,editType:"plot"},rangemode:bs.rangemode,minallowed:bs.minallowed,maxallowed:bs.maxallowed,range:EX({},bs.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:bs.minor.tickmode,nticks:bs.nticks,tick0:bs.tick0,dtick:bs.dtick,tickvals:bs.tickvals,ticktext:bs.ticktext,ticks:bs.ticks,mirror:bs.mirror,ticklen:bs.ticklen,tickwidth:bs.tickwidth,tickcolor:bs.tickcolor,showticklabels:bs.showticklabels,labelalias:bs.labelalias,tickfont:bs.tickfont,tickangle:bs.tickangle,tickprefix:bs.tickprefix,showtickprefix:bs.showtickprefix,ticksuffix:bs.ticksuffix,showticksuffix:bs.showticksuffix,showexponent:bs.showexponent,exponentformat:bs.exponentformat,minexponent:bs.minexponent,separatethousands:bs.separatethousands,tickformat:bs.tickformat,tickformatstops:bs.tickformatstops,hoverformat:bs.hoverformat,showline:bs.showline,linecolor:bs.linecolor,linewidth:bs.linewidth,showgrid:bs.showgrid,gridcolor:EX({},bs.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:bs.gridwidth,zeroline:bs.zeroline,zerolinecolor:bs.zerolinecolor,zerolinewidth:bs.zerolinewidth},"plot","from-root")});var IX=ye((g0r,mIe)=>{"use strict";var kX=CX(),i8t=kc().attributes,LX=Ao().extendFlat,n8t=Dr().counterRegex;function PX(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}mIe.exports={_arrayAttrRegexps:[n8t("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:LX(PX(0,0,1),{}),center:LX(PX(0,0,0),{}),eye:LX(PX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:i8t({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:kX,yaxis:kX,zaxis:kX,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var bIe=ye((m0r,xIe)=>{"use strict";var a8t=cd().mix,yIe=Dr(),o8t=pl(),s8t=CX(),l8t=TU(),u8t=r4(),_Ie=["xaxis","yaxis","zaxis"],c8t=100*136/187;xIe.exports=function(t,r,n){var i,a;function o(u,c){return yIe.coerce(i,a,s8t,u,c)}for(var s=0;s<_Ie.length;s++){var l=_Ie[s];i=t[l]||{},a=o8t.newContainer(r,l),a._id=l[0]+n.scene,a._name=l,l8t(i,a,o,n),u8t(i,a,o,{font:n.font,letter:l[0],data:n.data,showGrid:!0,noAutotickangles:!0,noMinorloglabels:!0,noTicklabelindex:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,noTicklabelposition:!0,noTicklabeloverflow:!0,noInsiderange:!0,noUnifiedhovertitle:!0,bgColor:n.bgColor,calendar:n.calendar},n.fullLayout),o("gridcolor",a8t(a.color,n.bgColor,c8t).toRgbString()),o("title.text",l[0]),a.setScale=yIe.noop,o("showspikes")&&(o("spikesides"),o("spikethickness"),o("spikecolor",a.color)),o("showaxeslabels"),o("showbackground")&&o("backgroundcolor")}}});var SIe=ye((y0r,AIe)=>{"use strict";var f8t=Dr(),h8t=Ca(),d8t=qa(),v8t=C_(),p8t=bIe(),wIe=IX(),g8t=Id().getSubplotData,TIe="gl3d";AIe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=f8t.validate(t[o],wIe[o]);if(s)return t[o]}}v8t(t,r,n,{type:TIe,attributes:wIe,handleDefaults:m8t,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function m8t(e,t,r,n){for(var i=r("bgcolor"),a=h8t.combine(i,n.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",n.getDfltFromLayout("hovermode"))}});var $_=ye(cp=>{"use strict";var y8t=mc().overrideAll,_8t=B1(),x8t=dIe(),b8t=Id().getSubplotData,w8t=Dr(),T8t=Wp(),NA="gl3d",RX="scene";cp.name=NA;cp.attr=RX;cp.idRoot=RX;cp.idRegex=cp.attrRegex=w8t.counterRegex("scene");cp.attributes=pIe();cp.layoutAttributes=IX();cp.baseLayoutAttrOverrides=y8t({hoverlabel:_8t.hoverlabel},"plot","nested");cp.supplyLayoutDefaults=SIe();cp.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[NA],a=0;a{"use strict";MIe.exports={plot:OPe(),attributes:AX(),markerSymbols:KD(),supplyDefaults:GPe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:jPe(),moduleType:"trace",name:"scatter3d",basePlotModule:$_(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var kIe=ye((b0r,CIe)=>{"use strict";CIe.exports=EIe()});var JE=ye((w0r,IIe)=>{"use strict";var LIe=Ca(),A8t=Tu(),DX=df().axisHoverFormat,S8t=Qo().hovertemplateAttrs,PIe=Gl(),FX=Ao().extendFlat,M8t=mc().overrideAll;function zX(e){return{valType:"boolean",dflt:!1}}function OX(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:zX("x"),y:zX("y"),z:zX("z")},color:{valType:"color",dflt:LIe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:LIe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var qX=IIe.exports=M8t(FX({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:S8t(),xhoverformat:DX("x"),yhoverformat:DX("y"),zhoverformat:DX("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},A8t("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:OX("x"),y:OX("y"),z:OX("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:FX({},PIe.hoverinfo),showlegend:FX({},PIe.showlegend,{dflt:!1})}),"calc","nested");qX.x.editType=qX.y.editType=qX.z.editType="calc+clearAxisTypes"});var NX=ye((T0r,FIe)=>{"use strict";var E8t=qa(),RIe=Dr(),C8t=Jh(),k8t=JE(),BX=.1;function L8t(e,t){for(var r=[],n=32,i=0;i{"use strict";var zIe=gv();OIe.exports=function(t,r){r.surfacecolor?zIe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):zIe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var HIe=ye((S0r,GIe)=>{"use strict";var R8t=Od().gl_surface3d,UA=Od().ndarray,D8t=Od().ndarray_linear_interpolate.d2,F8t=i8(),z8t=n8(),$E=Dr().isArrayOrTypedArray,O8t=$y().parseColorScale,BIe=Jy(),q8t=tc().extractOpts;function UIe(e,t,r){this.scene=e,this.uid=r,this.surface=t,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var Jg=UIe.prototype;Jg.getXat=function(e,t,r,n){var i=$E(this.data.x)?$E(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?i:n.d2l(i,0,r)};Jg.getYat=function(e,t,r,n){var i=$E(this.data.y)?$E(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?i:n.d2l(i,0,r)};Jg.getZat=function(e,t,r,n){var i=this.data.z[t][e];return i===null&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[t][e]),r===void 0?i:n.d2l(i,0,r)};Jg.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[n,i],e.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],e.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return $E(s)&&s[i]&&s[i][n]!==void 0?e.textLabel=s[i][n]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function B8t(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var VA=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function N8t(e,t){if(e0){r=VA[n];break}return r}function V8t(e,t){if(!(e<1||t<1)){for(var r=UX(e),n=UX(t),i=1,a=0;arF;)n--,n/=U8t(n),n++,n1?i:1};function H8t(e,t,r){var n=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/n,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/n,e}function j8t(e,t,r){return W8t(e,t,H8t,r),e}function W8t(e,t,r,n){for(var i=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(t[n]=!0,i=this.contourStart[n];ih&&(this.minValues[u]=h),this.maxValues[u]{"use strict";jIe.exports={attributes:JE(),supplyDefaults:NX().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:qIe(),plot:HIe(),moduleType:"trace",name:"surface",basePlotModule:$_(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var ZIe=ye((E0r,XIe)=>{"use strict";XIe.exports=WIe()});var GA=ye((C0r,KIe)=>{"use strict";var Y8t=Tu(),VX=df().axisHoverFormat,K8t=Qo().hovertemplateAttrs,Q_=JE(),YIe=Gl(),ex=Ao().extendFlat;KIe.exports=ex({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:K8t({editType:"calc"}),xhoverformat:VX("x"),yhoverformat:VX("y"),zhoverformat:VX("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},Y8t("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:Q_.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:ex({},Q_.contours.x.show,{}),color:Q_.contours.x.color,width:Q_.contours.x.width,editType:"calc"},lightposition:{x:ex({},Q_.lightposition.x,{dflt:1e5}),y:ex({},Q_.lightposition.y,{dflt:1e5}),z:ex({},Q_.lightposition.z,{dflt:0}),editType:"calc"},lighting:ex({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},Q_.lighting),hoverinfo:ex({},YIe.hoverinfo,{editType:"calc"}),showlegend:ex({},YIe.showlegend,{dflt:!1})})});var nF=ye((k0r,$Ie)=>{"use strict";var J8t=Tu(),iF=df().axisHoverFormat,$8t=Qo().hovertemplateAttrs,QE=GA(),JIe=Gl(),GX=Ao().extendFlat,Q8t=mc().overrideAll;function HX(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function jX(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var HA=$Ie.exports=Q8t(GX({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:HX("x"),y:HX("y"),z:HX("z")},caps:{x:jX("x"),y:jX("y"),z:jX("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:$8t(),xhoverformat:iF("x"),yhoverformat:iF("y"),zhoverformat:iF("z"),valuehoverformat:iF("value",1),showlegend:GX({},JIe.showlegend,{dflt:!1})},J8t("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:QE.opacity,lightposition:QE.lightposition,lighting:QE.lighting,flatshading:QE.flatshading,contour:QE.contour,hoverinfo:GX({},JIe.hoverinfo)}),"calc","nested");HA.flatshading.dflt=!0;HA.lighting.facenormalsepsilon.dflt=0;HA.x.editType=HA.y.editType=HA.z.editType=HA.value.editType="calc+clearAxisTypes"});var WX=ye((L0r,e8e)=>{"use strict";var eRt=Dr(),tRt=qa(),rRt=nF(),iRt=Jh();function nRt(e,t,r,n){function i(a,o){return eRt.coerce(e,t,rRt,a,o)}QIe(e,t,r,n,i)}function QIe(e,t,r,n,i){var a=i("isomin"),o=i("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=i("x"),l=i("y"),u=i("z"),c=i("value");if(!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length){t.visible=!1;return}var f=tRt.getComponentMethod("calendars","handleTraceDefaults");f(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(_){i(_+"hoverformat");var b="caps."+_,p=i(b+".show");p&&i(b+".fill");var C="slices."+_,E=i(C+".show");E&&(i(C+".fill"),i(C+".locations"))});var h=i("spaceframe.show");h&&i("spaceframe.fill");var d=i("surface.show");d&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var v=i("contour.show");v&&(i("contour.color"),i("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(_){i(_)}),iRt(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}e8e.exports={supplyDefaults:nRt,supplyIsoDefaults:QIe}});var aF=ye((P0r,r8e)=>{"use strict";var ZX=Dr(),aRt=gv();function oRt(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=Hm(t.u,t._len),t._v=Hm(t.v,t._len),t._w=Hm(t.w,t._len),t._x=Hm(t.x,t._len),t._y=Hm(t.y,t._len),t._z=Hm(t.z,t._len);var r=t8e(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var n=0,i,a,o;t.starts&&(i=Hm(t.starts.x||[]),a=Hm(t.starts.y||[]),o=Hm(t.starts.z||[]),n=Math.min(i.length,a.length,o.length)),t._startsX=i||[],t._startsY=a||[],t._startsZ=o||[];var s=0,l=1/0,u;for(u=0;u1&&(E=t[i-1],L=r[i-1],k=n[i-1]),a=0;aE?"-":"+")+"x"),v=v.replace("y",(A>L?"-":"+")+"y"),v=v.replace("z",(x>k?"-":"+")+"z");var T=function(){i=0,M=[],g=[],P=[]};(!i||i{"use strict";var sRt=gv(),lRt=aF().processGrid,oF=aF().filter;i8e.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=oF(r.x,r._len),r._y=oF(r.y,r._len),r._z=oF(r.z,r._len),r._value=oF(r.value,r._len);var n=lRt(r);r._gridFill=n.fill,r._Xs=n.Xs,r._Ys=n.Ys,r._Zs=n.Zs,r._len=n.len;for(var i=1/0,a=-1/0,o=0;o{"use strict";n8e.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var uRt=Od().gl_mesh3d,cRt=$y().parseColorScale,fRt=Dr().isArrayOrTypedArray,hRt=Jy(),dRt=tc().extractOpts,a8e=jA(),eC=function(e,t){for(var r=t.length-1;r>0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n-1}function oe(er,Ut){return er===null?Ut:er}function _e(er,Ut,Ft){T();var bt=[Ut],yt=[Ft];if(H>=1)bt=[Ut],yt=[Ft];else if(H>0){var Yt=j(Ut,Ft);bt=Yt.xyzv,yt=Yt.abc}for(var lr=0;lr-1?Ft[Rr]:P(ei,Wr,Ur);Ge>-1?Tr[Rr]=Ge:Tr[Rr]=O(ei,Wr,Ur,oe(er,dt))}V(Tr[0],Tr[1],Tr[2])}}function Me(er,Ut,Ft){var bt=function(yt,Yt,lr){_e(er,[Ut[yt],Ut[Yt],Ut[lr]],[Ft[yt],Ft[Yt],Ft[lr]])};bt(0,1,2),bt(2,3,0)}function ke(er,Ut,Ft){var bt=function(yt,Yt,lr){_e(er,[Ut[yt],Ut[Yt],Ut[lr]],[Ft[yt],Ft[Yt],Ft[lr]])};bt(0,1,2),bt(3,0,1),bt(2,3,0),bt(1,2,3)}function me(er,Ut,Ft,bt){var yt=er[3];ytbt&&(yt=bt);for(var Yt=(er[3]-yt)/(er[3]-Ut[3]+1e-9),lr=[],Tr=0;Tr<4;Tr++)lr[Tr]=(1-Yt)*er[Tr]+Yt*Ut[Tr];return lr}function ie(er,Ut,Ft){return er>=Ut&&er<=Ft}function Se(er){var Ut=.001*(L-A);return er>=A-Ut&&er<=L+Ut}function Le(er){for(var Ut=[],Ft=0;Ft<4;Ft++){var bt=er[Ft];Ut.push([e._x[bt],e._y[bt],e._z[bt],e._value[bt]])}return Ut}var Ae=3;function De(er,Ut,Ft,bt,yt,Yt){Yt||(Yt=1),Ft=[-1,-1,-1];var lr=!1,Tr=[ie(Ut[0][3],bt,yt),ie(Ut[1][3],bt,yt),ie(Ut[2][3],bt,yt)];if(!Tr[0]&&!Tr[1]&&!Tr[2])return!1;var Rr=function(Wr,Ur,dt){return Se(Ur[0][3])&&Se(Ur[1][3])&&Se(Ur[2][3])?(_e(Wr,Ur,dt),!0):YtTr?[C,Yt]:[Yt,E];Nt(Ut,Rr[0],Rr[1])}}var ei=[[Math.min(A,E),Math.max(A,E)],[Math.min(C,L),Math.max(C,L)]];["x","y","z"].forEach(function(Wr){for(var Ur=[],dt=0;dt0&&(Ie.push(vt.id),Wr==="x"?xe.push([vt.distRatio,0,0]):Wr==="y"?xe.push([0,vt.distRatio,0]):xe.push([0,0,vt.distRatio]))}else Wr==="x"?wt=ur(1,d-1):Wr==="y"?wt=ur(1,v-1):wt=ur(1,_-1);Ie.length>0&&(Wr==="x"?Ur[Ge]=$t(er,Ie,Je,je,xe,Ur[Ge]):Wr==="y"?Ur[Ge]=sr(er,Ie,Je,je,xe,Ur[Ge]):Ur[Ge]=wr(er,Ie,Je,je,xe,Ur[Ge]),Ge++),wt.length>0&&(Wr==="x"?Ur[Ge]=pt(er,wt,Je,je,Ur[Ge]):Wr==="y"?Ur[Ge]=Wt(er,wt,Je,je,Ur[Ge]):Ur[Ge]=st(er,wt,Je,je,Ur[Ge]),Ge++)}var nr=e.caps[Wr];nr.show&&nr.fill&&(N(nr.fill),Wr==="x"?Ur[Ge]=pt(er,[0,d-1],Je,je,Ur[Ge]):Wr==="y"?Ur[Ge]=Wt(er,[0,v-1],Je,je,Ur[Ge]):Ur[Ge]=st(er,[0,_-1],Je,je,Ur[Ge]),Ge++)}}),s===0&&z(),e._meshX=x,e._meshY=k,e._meshZ=M,e._meshIntensity=g,e._Xs=c,e._Ys=f,e._Zs=h}return Et(),e}function pRt(e,t){var r=e.glplot.gl,n=uRt({gl:r}),i=new o8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}l8e.exports={findNearestOnAxis:eC,generateIsoMeshes:s8e,createIsosurfaceTrace:pRt}});var c8e=ye((F0r,u8e)=>{"use strict";u8e.exports={attributes:nF(),supplyDefaults:WX().supplyDefaults,calc:YX(),colorbar:{min:"cmin",max:"cmax"},plot:sF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:$_(),categories:["gl3d","showLegend"],meta:{}}});var h8e=ye((z0r,f8e)=>{"use strict";f8e.exports=c8e()});var $X=ye((O0r,v8e)=>{"use strict";var gRt=Tu(),Dh=nF(),mRt=JE(),d8e=Gl(),JX=Ao().extendFlat,yRt=mc().overrideAll,lF=v8e.exports=yRt(JX({x:Dh.x,y:Dh.y,z:Dh.z,value:Dh.value,isomin:Dh.isomin,isomax:Dh.isomax,surface:Dh.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Dh.slices,caps:Dh.caps,text:Dh.text,hovertext:Dh.hovertext,xhoverformat:Dh.xhoverformat,yhoverformat:Dh.yhoverformat,zhoverformat:Dh.zhoverformat,valuehoverformat:Dh.valuehoverformat,hovertemplate:Dh.hovertemplate},gRt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Dh.colorbar,opacity:Dh.opacity,opacityscale:mRt.opacityscale,lightposition:Dh.lightposition,lighting:Dh.lighting,flatshading:Dh.flatshading,contour:Dh.contour,hoverinfo:JX({},d8e.hoverinfo),showlegend:JX({},d8e.showlegend,{dflt:!1})}),"calc","nested");lF.x.editType=lF.y.editType=lF.z.editType=lF.value.editType="calc+clearAxisTypes"});var g8e=ye((q0r,p8e)=>{"use strict";var _Rt=Dr(),xRt=$X(),bRt=WX().supplyIsoDefaults,wRt=NX().opacityscaleDefaults;p8e.exports=function(t,r,n,i){function a(o,s){return _Rt.coerce(t,r,xRt,o,s)}bRt(t,r,n,i,a),wRt(t,r,i,a)}});var x8e=ye((B0r,_8e)=>{"use strict";var TRt=Od().gl_mesh3d,ARt=$y().parseColorScale,SRt=Dr().isArrayOrTypedArray,MRt=Jy(),ERt=tc().extractOpts,m8e=jA(),QX=sF().findNearestOnAxis,CRt=sF().generateIsoMeshes;function y8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var eZ=y8e.prototype;eZ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=QX(r,this.data._Xs).id,l=QX(n,this.data._Ys).id,u=QX(i,this.data._Zs).id,c=e.index=u+o*l+o*a*s;e.traceCoordinate=[this.data._meshX[c],this.data._meshY[c],this.data._meshZ[c],this.data._value[c]];var f=this.data.hovertext||this.data.text;return SRt(f)&&f[c]!==void 0?e.textLabel=f[c]:f&&(e.textLabel=f),!0}};eZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=CRt(e);function n(l,u,c,f){return u.map(function(h){return l.d2l(h,0,f)*c})}var i=m8e(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=m8e(e._meshI,e._meshJ,e._meshK),o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:MRt(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=ERt(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=ARt(e),this.mesh.update(o)};eZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function kRt(e,t){var r=e.glplot.gl,n=TRt({gl:r}),i=new y8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}_8e.exports=kRt});var w8e=ye((N0r,b8e)=>{"use strict";b8e.exports={attributes:$X(),supplyDefaults:g8e(),calc:YX(),colorbar:{min:"cmin",max:"cmax"},plot:x8e(),moduleType:"trace",name:"volume",basePlotModule:$_(),categories:["gl3d","showLegend"],meta:{}}});var A8e=ye((U0r,T8e)=>{"use strict";T8e.exports=w8e()});var E8e=ye((V0r,M8e)=>{"use strict";var LRt=qa(),S8e=Dr(),PRt=Jh(),IRt=GA();M8e.exports=function(t,r,n,i){function a(c,f){return S8e.coerce(t,r,IRt,c,f)}function o(c){var f=c.map(function(h){var d=a(h);return d&&S8e.isArrayOrTypedArray(d)?d:null});return f.every(function(h){return h&&h.length===f[0].length})&&f}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var l=LRt.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y","z"],i),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(c){a(c)});var u=a("contour.show");u&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),PRt(t,r,i,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",n)),a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var k8e=ye((G0r,C8e)=>{"use strict";var RRt=gv();C8e.exports=function(t,r){r.intensity&&RRt(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var D8e=ye((H0r,R8e)=>{"use strict";var DRt=Od().gl_mesh3d,FRt=Od().delaunay_triangulate,zRt=Od().alpha_shape,ORt=Od().convex_hull,qRt=$y().parseColorScale,BRt=Dr().isArrayOrTypedArray,nZ=Jy(),NRt=tc().extractOpts,L8e=jA();function I8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var aZ=I8e.prototype;aZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return BRt(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function P8e(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}aZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=L8e(tZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),tZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),tZ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!iZ(e.i,n)||!iZ(e.j,n)||!iZ(e.k,n))return;a=L8e(rZ(e.i),rZ(e.j),rZ(e.k))}else e.alphahull===0?a=ORt(i):e.alphahull>0?a=zRt(e.alphahull,i):a=URt(e.delaunayaxis,i);var o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:nZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=NRt(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=qRt(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=P8e(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=P8e(e.facecolor)):(this.color=e.color,o.meshColor=nZ(e.color));this.mesh.update(o)};aZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function VRt(e,t){var r=e.glplot.gl,n=DRt({gl:r}),i=new I8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}R8e.exports=VRt});var z8e=ye((j0r,F8e)=>{"use strict";F8e.exports={attributes:GA(),supplyDefaults:E8e(),calc:k8e(),colorbar:{min:"cmin",max:"cmax"},plot:D8e(),moduleType:"trace",name:"mesh3d",basePlotModule:$_(),categories:["gl3d","showLegend"],meta:{}}});var q8e=ye((W0r,O8e)=>{"use strict";O8e.exports=z8e()});var sZ=ye((X0r,N8e)=>{"use strict";var GRt=Tu(),WA=df().axisHoverFormat,HRt=Qo().hovertemplateAttrs,jRt=GA(),B8e=Gl(),oZ=Ao().extendFlat,uF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:HRt({editType:"calc"},{keys:["norm"]}),uhoverformat:WA("u",1),vhoverformat:WA("v",1),whoverformat:WA("w",1),xhoverformat:WA("x"),yhoverformat:WA("y"),zhoverformat:WA("z"),showlegend:oZ({},B8e.showlegend,{dflt:!1})};oZ(uF,GRt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var WRt=["opacity","lightposition","lighting"];WRt.forEach(function(e){uF[e]=jRt[e]});uF.hoverinfo=oZ({},B8e.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});N8e.exports=uF});var V8e=ye((Z0r,U8e)=>{"use strict";var XRt=Dr(),ZRt=Jh(),YRt=sZ();U8e.exports=function(t,r,n,i){function a(d,v){return XRt.coerce(t,r,YRt,d,v)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),ZRt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var H8e=ye((Y0r,G8e)=>{"use strict";var KRt=gv();G8e.exports=function(t,r){for(var n=r.u,i=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,n.length,i.length,a.length),s=-1/0,l=1/0,u=0;u{"use strict";var JRt=Od().gl_cone3d,$Rt=Od().gl_cone3d.createConeMesh,QRt=Dr().simpleMap,eDt=$y().parseColorScale,tDt=tc().extractOpts,rDt=Dr().isArrayOrTypedArray,j8e=jA();function W8e(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var lZ=W8e.prototype;lZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return rDt(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var iDt={xaxis:0,yaxis:1,zaxis:2},nDt={tip:1,tail:0,cm:.25,center:.5},aDt={tip:1,tail:1,cm:.75,center:.5};function X8e(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(c,f){var h=r[f],d=n[iDt[f]];return QRt(c,function(v){return h.d2l(v)*d})}i.vectors=j8e(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=j8e(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=tDt(t);i.colormap=eDt(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=nDt[t.anchor];var s=t.sizemode;s==="scaled"?i.coneSize=t.sizeref||.5:s==="absolute"?i.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(i.coneSize=t.sizeref),i.coneSizemode=s;var l=JRt(i),u=t.lightposition;return l.lightPosition=[u.x,u.y,u.z],l.ambient=t.lighting.ambient,l.diffuse=t.lighting.diffuse,l.specular=t.lighting.specular,l.roughness=t.lighting.roughness,l.fresnel=t.lighting.fresnel,l.opacity=t.opacity,t._pad=aDt[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}lZ.update=function(e){this.data=e;var t=X8e(this.scene,e);this.mesh.update(t)};lZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function oDt(e,t){var r=e.glplot.gl,n=X8e(e,t),i=$Rt(r,n),a=new W8e(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}Z8e.exports=oDt});var J8e=ye((J0r,K8e)=>{"use strict";K8e.exports={moduleType:"trace",name:"cone",basePlotModule:$_(),categories:["gl3d","showLegend"],attributes:sZ(),supplyDefaults:V8e(),colorbar:{min:"cmin",max:"cmax"},calc:H8e(),plot:Y8e(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var Q8e=ye(($0r,$8e)=>{"use strict";$8e.exports=J8e()});var cZ=ye((Q0r,tRe)=>{"use strict";var sDt=Tu(),XA=df().axisHoverFormat,lDt=Qo().hovertemplateAttrs,uDt=GA(),eRe=Gl(),uZ=Ao().extendFlat,cF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:lDt({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:XA("u",1),vhoverformat:XA("v",1),whoverformat:XA("w",1),xhoverformat:XA("x"),yhoverformat:XA("y"),zhoverformat:XA("z"),showlegend:uZ({},eRe.showlegend,{dflt:!1})};uZ(cF,sDt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var cDt=["opacity","lightposition","lighting"];cDt.forEach(function(e){cF[e]=uDt[e]});cF.hoverinfo=uZ({},eRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});tRe.exports=cF});var iRe=ye((egr,rRe)=>{"use strict";var fDt=Dr(),hDt=Jh(),dDt=cZ();rRe.exports=function(t,r,n,i){function a(h,d){return fDt.coerce(t,r,dDt,h,d)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),hDt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var fRe=ye((tgr,cRe)=>{"use strict";var oRe=Od().gl_streamtube3d,vDt=oRe.createTubeMesh,pDt=Dr(),gDt=$y().parseColorScale,mDt=tc().extractOpts,nRe=jA(),sRe={xaxis:0,yaxis:1,zaxis:2};function lRe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var hZ=lRe.prototype;hZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var l=t[s],u=r[sRe[s]];return l.l2c(o)/u}if(e.object===this.mesh){var i=e.data.position,a=e.data.velocity;return e.traceCoordinate=[n(i[0],"xaxis"),n(i[1],"yaxis"),n(i[2],"zaxis"),n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function aRe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function fZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function uRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(z,O){var V=r[O],G=n[sRe[O]];return pDt.simpleMap(z,function(Z){return V.d2l(Z)*G})}if(a.vectors=nRe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),i),!i)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),l=o(t._Ys,"yaxis"),u=o(t._Zs,"zaxis");a.meshgrid=[s,l,u],a.gridFill=t._gridFill;var c=t._slen;if(c)a.startingPositions=nRe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var f=l[0],h=aRe(s),d=aRe(u),v=new Array(h.length*d.length),_=0,b=0;b{"use strict";hRe.exports={moduleType:"trace",name:"streamtube",basePlotModule:$_(),categories:["gl3d","showLegend"],attributes:cZ(),supplyDefaults:iRe(),colorbar:{min:"cmin",max:"cmax"},calc:aF().calc,plot:fRe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var pRe=ye((igr,vRe)=>{"use strict";vRe.exports=dRe()});var G2=ye((agr,yRe)=>{"use strict";var _Dt=Qo().hovertemplateAttrs,xDt=Qo().texttemplateAttrs,bDt=Cg(),jm=pf(),wDt=Gl(),gRe=Tu(),TDt=Pd().dash,V2=Ao().extendFlat,ADt=mc().overrideAll,tg=jm.marker,mRe=jm.line,SDt=tg.line,ngr=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");yRe.exports=ADt({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:V2({},jm.mode,{dflt:"markers"}),text:V2({},jm.text,{}),texttemplate:xDt({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:V2({},jm.hovertext,{}),textfont:jm.textfont,textposition:jm.textposition,line:{color:mRe.color,width:mRe.width,dash:TDt},connectgaps:jm.connectgaps,marker:V2({symbol:tg.symbol,opacity:tg.opacity,angle:tg.angle,angleref:V2({},tg.angleref,{values:["previous","up","north"]}),standoff:tg.standoff,size:tg.size,sizeref:tg.sizeref,sizemin:tg.sizemin,sizemode:tg.sizemode,colorbar:tg.colorbar,line:V2({width:SDt.width},gRe("marker.line")),gradient:tg.gradient},gRe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:bDt(),selected:jm.selected,unselected:jm.unselected,hoverinfo:V2({},wDt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:_Dt()},"calc","nested")});var xRe=ye((ogr,_Re)=>{"use strict";var fF=Dr(),dZ=Ru(),MDt=$p(),EDt=D0(),CDt=F0(),kDt=Ig(),LDt=G2(),PDt=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");_Re.exports=function(t,r,n,i){function a(d,v){return fF.coerce(t,r,LDt,d,v)}var o=a("locations"),s;if(o&&o.length){var l=a("geojson"),u;(typeof l=="string"&&l!==""||fF.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="country names"&&fF.warn(PDt),c==="geojson-id"&&a("featureidkey"),s=o.length}else{var f=a("lon")||[],h=a("lat")||[];s=Math.min(f.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("mode"),dZ.hasMarkers(r)&&MDt(t,r,n,i,a,{gradient:!0}),dZ.hasLines(r)&&(EDt(t,r,n,i,a),a("connectgaps")),dZ.hasText(r)&&(a("texttemplate"),CDt(t,r,i,a)),a("fill"),r.fill!=="none"&&kDt(t,r,n,a),fF.coerceSelectionMarkerOpacity(r,a)}});var TRe=ye((sgr,wRe)=>{"use strict";var bRe=ho();wRe.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=bRe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=bRe.tickText(o,o.c2l(s[1]),!0).text,i}});var hF=ye((lgr,ERe)=>{"use strict";var vZ=Eo(),ARe=hs().BADNUM,IDt=z0(),RDt=Cm(),DDt=O0(),FDt=Dr().isArrayOrTypedArray,SRe=Dr()._;function MRe(e){return e&&typeof e=="string"}ERe.exports=function(t,r){var n=FDt(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return MRe(h)||vZ(h)}:o=MRe;for(var s=0;s{"use strict";Sv.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Sv.axesNames=["lonaxis","lataxis"];Sv.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Sv.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Sv.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Sv.clipPad=.001;Sv.precision=.1;Sv.landColor="#F0DC82";Sv.waterColor="#3399FF";Sv.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Sv.sphereSVG={type:"Sphere"};Sv.fillLayers={ocean:1,land:1,lakes:1};Sv.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Sv.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Sv.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Sv.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var pZ=ye((dF,CRe)=>{(function(e,t){typeof dF=="object"&&typeof CRe!="undefined"?t(dF):(e=e||self,t(e.topojson=e.topojson||{}))})(dF,function(e){"use strict";function t(E){return E}function r(E){if(E==null)return t;var A,L,x=E.scale[0],k=E.scale[1],M=E.translate[0],g=E.translate[1];return function(P,T){T||(A=L=0);var z=2,O=P.length,V=new Array(O);for(V[0]=(A+=P[0])*x+M,V[1]=(L+=P[1])*k+g;zM&&(M=z[0]),z[1]g&&(g=z[1])}function T(z){switch(z.type){case"GeometryCollection":z.geometries.forEach(T);break;case"Point":P(z.coordinates);break;case"MultiPoint":z.coordinates.forEach(P);break}}E.arcs.forEach(function(z){for(var O=-1,V=z.length,G;++OM&&(M=G[0]),G[1]g&&(g=G[1])});for(L in E.objects)T(E.objects[L]);return[x,k,M,g]}function i(E,A){for(var L,x=E.length,k=x-A;k<--x;)L=E[k],E[k++]=E[x],E[x]=L}function a(E,A){return typeof A=="string"&&(A=E.objects[A]),A.type==="GeometryCollection"?{type:"FeatureCollection",features:A.geometries.map(function(L){return o(E,L)})}:o(E,A)}function o(E,A){var L=A.id,x=A.bbox,k=A.properties==null?{}:A.properties,M=s(E,A);return L==null&&x==null?{type:"Feature",properties:k,geometry:M}:x==null?{type:"Feature",id:L,properties:k,geometry:M}:{type:"Feature",id:L,bbox:x,properties:k,geometry:M}}function s(E,A){var L=r(E.transform),x=E.arcs;function k(O,V){V.length&&V.pop();for(var G=x[O<0?~O:O],Z=0,H=G.length;Z1)x=f(E,A,L);else for(k=0,x=new Array(M=E.arcs.length);k1)for(var V=1,G=P(z[0]),Z,H;VG&&(H=z[0],z[0]=z[V],z[V]=H,G=Z);return z}).filter(function(T){return T.length>0})}}function _(E,A){for(var L=0,x=E.length;L>>1;E[k]=2))throw new Error("n must be \u22652");T=E.bbox||n(E);var L=T[0],x=T[1],k=T[2],M=T[3],g;A={scale:[k-L?(k-L)/(g-1):1,M-x?(M-x)/(g-1):1],translate:[L,x]}}else T=E.bbox;var P=p(A),T,z,O=E.objects,V={};function G(N){return P(N)}function Z(N){var j;switch(N.type){case"GeometryCollection":j={type:"GeometryCollection",geometries:N.geometries.map(Z)};break;case"Point":j={type:"Point",coordinates:G(N.coordinates)};break;case"MultiPoint":j={type:"MultiPoint",coordinates:N.coordinates.map(G)};break;default:return N}return N.id!=null&&(j.id=N.id),N.bbox!=null&&(j.bbox=N.bbox),N.properties!=null&&(j.properties=N.properties),j}function H(N){var j=0,re=1,oe=N.length,_e,Me=new Array(oe);for(Me[0]=P(N[0],0);++j{"use strict";var gZ=kRe.exports={},zDt=tC().locationmodeToLayer,ODt=pZ().feature;gZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};gZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};gZ.getTopojsonFeatures=function(e,t){var r=zDt[e.locationmode],n=t.objects[r];return ODt(t,n).features}});var tx=ye(rC=>{"use strict";var qDt=hs().BADNUM;rC.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,n=[],i=[],a=0;a0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n};rC.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};rC.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{LRe.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var mF=ye(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var zp=63710088e-1,yZ={centimeters:zp*100,centimetres:zp*100,degrees:360/(2*Math.PI),feet:zp*3.28084,inches:zp*39.37,kilometers:zp/1e3,kilometres:zp/1e3,meters:zp,metres:zp,miles:zp/1609.344,millimeters:zp*1e3,millimetres:zp*1e3,nauticalmiles:zp/1852,radians:1,yards:zp*1.0936},mZ={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function rx(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function BDt(e,t,r={}){switch(e){case"Point":return _Z(t).geometry;case"LineString":return bZ(t).geometry;case"Polygon":return xZ(t).geometry;case"MultiPoint":return RRe(t).geometry;case"MultiLineString":return IRe(t).geometry;case"MultiPolygon":return DRe(t).geometry;default:throw new Error(e+" is invalid")}}function _Z(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!pF(e[0])||!pF(e[1]))throw new Error("coordinates must contain numbers");return rx({type:"Point",coordinates:e},t,r)}function NDt(e,t,r={}){return gF(e.map(n=>_Z(n,t)),r)}function xZ(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;axZ(n,t)),r)}function bZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return rx({type:"LineString",coordinates:e},t,r)}function VDt(e,t,r={}){return gF(e.map(n=>bZ(n,t)),r)}function gF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function IRe(e,t,r={}){return rx({type:"MultiLineString",coordinates:e},t,r)}function RRe(e,t,r={}){return rx({type:"MultiPoint",coordinates:e},t,r)}function DRe(e,t,r={}){return rx({type:"MultiPolygon",coordinates:e},t,r)}function GDt(e,t,r={}){return rx({type:"GeometryCollection",geometries:e},t,r)}function HDt(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function FRe(e,t="kilometers"){let r=yZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function wZ(e,t="kilometers"){let r=yZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function jDt(e,t){return zRe(wZ(e,t))}function WDt(e){let t=e%360;return t<0&&(t+=360),t}function XDt(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function zRe(e){return e%(2*Math.PI)*180/Math.PI}function ZDt(e){return e%360*Math.PI/180}function YDt(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return FRe(wZ(e,t),r)}function KDt(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=mZ[t];if(!n)throw new Error("invalid original units");let i=mZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function pF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function JDt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function $Dt(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!pF(t))throw new Error("bbox must only contain numbers")})}function QDt(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}ic.areaFactors=mZ;ic.azimuthToBearing=XDt;ic.bearingToAzimuth=WDt;ic.convertArea=KDt;ic.convertLength=YDt;ic.degreesToRadians=ZDt;ic.earthRadius=zp;ic.factors=yZ;ic.feature=rx;ic.featureCollection=gF;ic.geometry=BDt;ic.geometryCollection=GDt;ic.isNumber=pF;ic.isObject=JDt;ic.lengthToDegrees=jDt;ic.lengthToRadians=wZ;ic.lineString=bZ;ic.lineStrings=VDt;ic.multiLineString=IRe;ic.multiPoint=RRe;ic.multiPolygon=DRe;ic.point=_Z;ic.points=NDt;ic.polygon=xZ;ic.polygons=UDt;ic.radiansToDegrees=zRe;ic.radiansToLength=FRe;ic.round=HDt;ic.validateBBox=$Dt;ic.validateId=QDt});var _F=ye(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});var Wv=mF();function iC(e,t,r){if(e!==null)for(var n,i,a,o,s,l,u,c=0,f=0,h,d=e.type,v=d==="FeatureCollection",_=d==="Feature",b=v?e.features.length:1,p=0;pl||v>u||_>c){s=f,l=n,u=v,c=_,a=0;return}var b=Wv.lineString.call(void 0,[s,f],r.properties);if(t(b,n,i,_,a)===!1)return!1;a++,s=f})===!1)return!1}}})}function oFt(e,t,r){var n=r,i=!1;return BRe(e,function(a,o,s,l,u){i===!1&&r===void 0?n=a:n=t(n,a,o,s,l,u),i=!0}),n}function NRe(e,t){if(!e)throw new Error("geojson is required");yF(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(xF,"__esModule",{value:!0});var URe=mF(),cFt=_F();function HRe(e){return cFt.geomReduce.call(void 0,e,(t,r)=>t+fFt(r),0)}function fFt(e){let t=0,r;switch(e.type){case"Polygon":return VRe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(GRe(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*AZ,l=a[1]*AZ,u=o[0]*AZ;r+=(u-s)*Math.sin(l),n++}return r*hFt}var dFt=HRe;xF.area=HRe;xF.default=dFt});var XRe=ye(bF=>{"use strict";Object.defineProperty(bF,"__esModule",{value:!0});var vFt=mF(),pFt=_F();function WRe(e,t={}){let r=0,n=0,i=0;return pFt.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),vFt.point.call(void 0,[r/i,n/i],t.properties)}var gFt=WRe;bF.centroid=WRe;bF.default=gFt});var YRe=ye(wF=>{"use strict";Object.defineProperty(wF,"__esModule",{value:!0});var mFt=_F();function ZRe(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return mFt.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]{"use strict";var _Ft=Oa(),$Re=PRe(),{area:xFt}=jRe(),{centroid:bFt}=XRe(),{bbox:wFt}=YRe(),KRe=GS(),ZA=G1(),TFt=gy(),AFt=kS(),TF=EM(),JRe=Object.keys($Re),SFt={"ISO-3":KRe,"USA-states":KRe,"country names":MFt};function MFt(e){for(var t=0;t0&&c[f+1][0]<0)return f;return null}switch(n==="RUS"||n==="FJI"?a=function(c){var f;if(u(c)===null)f=c;else for(f=new Array(c.length),l=0;lf?h[d++]=[c[l][0]+360,c[l][1]]:l===f?(h[d++]=c[l],h[d++]=[c[l][0],-90]):h[d++]=c[l];var v=TF.tester(h);v.pts.pop(),i.push(v)}:a=function(c){i.push(TF.tester(c))},t.type){case"MultiPolygon":for(o=0;o0?v.properties.ct=LFt(v):v.properties.ct=[NaN,NaN],h.fIn=c,h.fOut=v,i.push(v)}else ZA.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[f]}switch(r.type){case"FeatureCollection":var l=r.features;for(a=0;ai&&(i=s,r=o)}else r=t;return bFt(r).geometry.coordinates}function PFt(e){var t=window.PlotlyGeoAssets||{},r=[];function n(l){return new Promise(function(u,c){_Ft.json(l,function(f,h){if(f){delete t[l];var d=f.status===404?'GeoJSON at URL "'+l+'" does not exist.':"Unexpected error while fetching from "+l;return c(new Error(d))}return t[l]=h,u(h)})})}function i(l){return new Promise(function(u,c){var f=0,h=setInterval(function(){if(t[l]&&t[l]!=="pending")return clearInterval(h),u(t[l]);if(f>100)return clearInterval(h),c("Unexpected error while fetching from "+l);f++},50)})}for(var a=0;a{"use strict";var RFt=Oa(),DFt=So(),tDe=Ca(),rDe=op(),FFt=rDe.stylePoints,zFt=rDe.styleText;iDe.exports=function(t,r){r&&OFt(t,r)};function OFt(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),FFt(n,r,e),zFt(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=RFt.select(this),o=i.trace,s=o.line||{};a.call(tDe.stroke,s.color).call(DFt.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(tDe.fill,o.fillcolor)})}});var kZ=ye((xgr,oDe)=>{"use strict";var nDe=Oa(),SF=Dr(),qFt=vF().getTopojsonFeatures,MZ=tx(),AF=ix(),aDe=Tg().findExtremes,CZ=hs().BADNUM,BFt=q0().calcMarkerSize,EZ=Ru(),NFt=SZ();function UFt(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=SF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===CZ&&nDe.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=nDe.select(this),l=o[0].trace;if(EZ.hasLines(l)||l.fill!=="none"){var u=MZ.calcTraceToLineCoords(o),c=l.fill!=="none"?MZ.makePolygon(u):MZ.makeLine(u);s.selectAll("path.js-line").data([{geojson:c,trace:l}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}EZ.hasMarkers(l)&&s.selectAll("path.point").data(SF.identity).enter().append("path").classed("point",!0).each(function(f){a(f,this)}),EZ.hasText(l)&&s.selectAll("g").data(SF.identity).enter().append("g").append("text").each(function(f){a(f,this)}),NFt(e,o)})}function VFt(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(SF.isArrayOrTypedArray(r.locations)){var l=r.locationmode,u=l==="geojson-id"?AF.extractTraceFeature(e):qFt(r,i.topojson);for(o=0;o{"use strict";var GFt=vf(),HFt=hs().BADNUM,jFt=sT(),WFt=Dr().fillText,XFt=G2();sDe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.xa,s=t.ya,l=t.subplot,u=l.projection.isLonLatOverEdges,c=l.project;function f(C){var E=C.lonlat;if(E[0]===HFt||u(E))return 1/0;var A=c(E),L=c([r,n]),x=Math.abs(A[0]-L[0]),k=Math.abs(A[1]-L[1]),M=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(x*x+k*k)-M,1-3/M)}if(GFt.getClosest(i,f,t),t.index!==!1){var h=i[t.index],d=h.lonlat,v=[o.c2p(d),s.c2p(d)],_=h.mrc||1;t.x0=v[0]-_,t.x1=v[0]+_,t.y0=v[1]-_,t.y1=v[1]+_,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var b={};b[a.geo]={_subplot:l};var p=a._module.formatLabels(h,a,b);return t.lonLabel=p.lonLabel,t.latLabel=p.latLabel,t.color=jFt(a,h),t.extraText=ZFt(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function ZFt(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?XFt.hoverinfo.flags:i.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,l=a.indexOf("lat")!==-1,u=a.indexOf("text")!==-1,c=[];function f(h){return h+"\xB0"}return o?c.push(t.loc):s&&l?c.push("("+f(r.latLabel)+", "+f(r.lonLabel)+")"):s?c.push(n.lon+f(r.lonLabel)):l&&c.push(n.lat+f(r.latLabel)),u&&WFt(t,e,c),c.join("
")}});var cDe=ye((wgr,uDe)=>{"use strict";uDe.exports=function(t,r,n,i,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var dDe=ye((Tgr,hDe)=>{"use strict";var fDe=Ru(),YFt=hs().BADNUM;hDe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h,d=!fDe.hasMarkers(s)&&!fDe.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof MF=="object"&&typeof vDe!="undefined"?MF:e.d3=e.d3||{})})(MF,function(e){"use strict";function t(Le,Ae){return LeAe?1:Le>=Ae?0:NaN}function r(Le){return Le.length===1&&(Le=n(Le)),{left:function(Ae,De,Pe,ge){for(Pe==null&&(Pe=0),ge==null&&(ge=Ae.length);Pe>>1;Le(Ae[Fe],De)<0?Pe=Fe+1:ge=Fe}return Pe},right:function(Ae,De,Pe,ge){for(Pe==null&&(Pe=0),ge==null&&(ge=Ae.length);Pe>>1;Le(Ae[Fe],De)>0?ge=Fe:Pe=Fe+1}return Pe}}}function n(Le){return function(Ae,De){return t(Le(Ae),De)}}var i=r(t),a=i.right,o=i.left;function s(Le,Ae){Ae==null&&(Ae=l);for(var De=0,Pe=Le.length-1,ge=Le[0],Fe=new Array(Pe<0?0:Pe);DeLe?1:Ae>=Le?0:NaN}function f(Le){return Le===null?NaN:+Le}function h(Le,Ae){var De=Le.length,Pe=0,ge=-1,Fe=0,ce,Ze,ct=0;if(Ae==null)for(;++ge1)return ct/(Pe-1)}function d(Le,Ae){var De=h(Le,Ae);return De&&Math.sqrt(De)}function v(Le,Ae){var De=Le.length,Pe=-1,ge,Fe,ce;if(Ae==null){for(;++Pe=ge)for(Fe=ce=ge;++Pege&&(Fe=ge),ce=ge)for(Fe=ce=ge;++Pege&&(Fe=ge),ce0)return[Le];if((Pe=Ae0)for(Le=Math.ceil(Le/Ze),Ae=Math.floor(Ae/Ze),ce=new Array(Fe=Math.ceil(Ae-Le+1));++ge=0?(Fe>=L?10:Fe>=x?5:Fe>=k?2:1)*Math.pow(10,ge):-Math.pow(10,-ge)/(Fe>=L?10:Fe>=x?5:Fe>=k?2:1)}function P(Le,Ae,De){var Pe=Math.abs(Ae-Le)/Math.max(0,De),ge=Math.pow(10,Math.floor(Math.log(Pe)/Math.LN10)),Fe=Pe/ge;return Fe>=L?ge*=10:Fe>=x?ge*=5:Fe>=k&&(ge*=2),Aest;)lt.pop(),--Gt;var Nt=new Array(Gt+1),$t;for(Fe=0;Fe<=Gt;++Fe)$t=Nt[Fe]=[],$t.x0=Fe>0?lt[Fe-1]:Wt,$t.x1=Fe=1)return+De(Le[Pe-1],Pe-1,Le);var Pe,ge=(Pe-1)*Ae,Fe=Math.floor(ge),ce=+De(Le[Fe],Fe,Le),Ze=+De(Le[Fe+1],Fe+1,Le);return ce+(Ze-ce)*(ge-Fe)}}function V(Le,Ae,De){return Le=p.call(Le,f).sort(t),Math.ceil((De-Ae)/(2*(O(Le,.75)-O(Le,.25))*Math.pow(Le.length,-1/3)))}function G(Le,Ae,De){return Math.ceil((De-Ae)/(3.5*d(Le)*Math.pow(Le.length,-1/3)))}function Z(Le,Ae){var De=Le.length,Pe=-1,ge,Fe;if(Ae==null){for(;++Pe=ge)for(Fe=ge;++PeFe&&(Fe=ge)}else for(;++Pe=ge)for(Fe=ge;++PeFe&&(Fe=ge);return Fe}function H(Le,Ae){var De=Le.length,Pe=De,ge=-1,Fe,ce=0;if(Ae==null)for(;++ge=0;)for(ce=Le[Ae],De=ce.length;--De>=0;)Fe[--ge]=ce[De];return Fe}function re(Le,Ae){var De=Le.length,Pe=-1,ge,Fe;if(Ae==null){for(;++Pe=ge)for(Fe=ge;++Pege&&(Fe=ge)}else for(;++Pe=ge)for(Fe=ge;++Pege&&(Fe=ge);return Fe}function oe(Le,Ae){for(var De=Ae.length,Pe=new Array(De);De--;)Pe[De]=Le[Ae[De]];return Pe}function _e(Le,Ae){if(De=Le.length){var De,Pe=0,ge=0,Fe,ce=Le[ge];for(Ae==null&&(Ae=t);++Pe{(function(e,t){typeof EF=="object"&&typeof pDe!="undefined"?t(EF,nC()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(EF,function(e,t){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(At){a(i,At,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(At,Xt,kr){var Ar=At.s=Xt+kr,Kr=Ar-Xt,Ei=Ar-Kr;At.t=Xt-Ei+(kr-Kr)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,f=l*2,h=180/l,d=l/180,v=Math.abs,_=Math.atan,b=Math.atan2,p=Math.cos,C=Math.ceil,E=Math.exp,A=Math.log,L=Math.pow,x=Math.sin,k=Math.sign||function(At){return At>0?1:At<0?-1:0},M=Math.sqrt,g=Math.tan;function P(At){return At>1?0:At<-1?l:Math.acos(At)}function T(At){return At>1?u:At<-1?-u:Math.asin(At)}function z(At){return(At=x(At/2))*At}function O(){}function V(At,Xt){At&&Z.hasOwnProperty(At.type)&&Z[At.type](At,Xt)}var G={Feature:function(At,Xt){V(At.geometry,Xt)},FeatureCollection:function(At,Xt){for(var kr=At.features,Ar=-1,Kr=kr.length;++Ar=0?1:-1,Kr=Ar*kr,Ei=p(Xt),Wi=x(Xt),hn=ie*Wi,Tn=me*Ei+hn*p(Kr),Bn=hn*Ar*x(Kr);re.add(b(Bn,Tn)),ke=At,me=Ei,ie=Wi}function ge(At){return oe.reset(),j(At,Se),oe*2}function Fe(At){return[b(At[1],At[0]),T(At[2])]}function ce(At){var Xt=At[0],kr=At[1],Ar=p(kr);return[Ar*p(Xt),Ar*x(Xt),x(kr)]}function Ze(At,Xt){return At[0]*Xt[0]+At[1]*Xt[1]+At[2]*Xt[2]}function ct(At,Xt){return[At[1]*Xt[2]-At[2]*Xt[1],At[2]*Xt[0]-At[0]*Xt[2],At[0]*Xt[1]-At[1]*Xt[0]]}function pt(At,Xt){At[0]+=Xt[0],At[1]+=Xt[1],At[2]+=Xt[2]}function Wt(At,Xt){return[At[0]*Xt,At[1]*Xt,At[2]*Xt]}function st(At){var Xt=M(At[0]*At[0]+At[1]*At[1]+At[2]*At[2]);At[0]/=Xt,At[1]/=Xt,At[2]/=Xt}var lt,Gt,Nt,$t,sr,wr,ur,Qe,Et=r(),er,Ut,Ft={point:bt,lineStart:Yt,lineEnd:lr,polygonStart:function(){Ft.point=Tr,Ft.lineStart=Rr,Ft.lineEnd=ei,Et.reset(),Se.polygonStart()},polygonEnd:function(){Se.polygonEnd(),Ft.point=bt,Ft.lineStart=Yt,Ft.lineEnd=lr,re<0?(lt=-(Nt=180),Gt=-($t=90)):Et>o?$t=90:Et<-o&&(Gt=-90),Ut[0]=lt,Ut[1]=Nt},sphere:function(){lt=-(Nt=180),Gt=-($t=90)}};function bt(At,Xt){er.push(Ut=[lt=At,Nt=At]),Xt$t&&($t=Xt)}function yt(At,Xt){var kr=ce([At*d,Xt*d]);if(Qe){var Ar=ct(Qe,kr),Kr=[Ar[1],-Ar[0],0],Ei=ct(Kr,Ar);st(Ei),Ei=Fe(Ei);var Wi=At-sr,hn=Wi>0?1:-1,Tn=Ei[0]*h*hn,Bn,Zi=v(Wi)>180;Zi^(hn*sr$t&&($t=Bn)):(Tn=(Tn+360)%360-180,Zi^(hn*sr$t&&($t=Xt))),Zi?AtWr(lt,Nt)&&(Nt=At):Wr(At,Nt)>Wr(lt,Nt)&&(lt=At):Nt>=lt?(AtNt&&(Nt=At)):At>sr?Wr(lt,At)>Wr(lt,Nt)&&(Nt=At):Wr(At,Nt)>Wr(lt,Nt)&&(lt=At)}else er.push(Ut=[lt=At,Nt=At]);Xt$t&&($t=Xt),Qe=kr,sr=At}function Yt(){Ft.point=yt}function lr(){Ut[0]=lt,Ut[1]=Nt,Ft.point=bt,Qe=null}function Tr(At,Xt){if(Qe){var kr=At-sr;Et.add(v(kr)>180?kr+(kr>0?360:-360):kr)}else wr=At,ur=Xt;Se.point(At,Xt),yt(At,Xt)}function Rr(){Se.lineStart()}function ei(){Tr(wr,ur),Se.lineEnd(),v(Et)>o&&(lt=-(Nt=180)),Ut[0]=lt,Ut[1]=Nt,Qe=null}function Wr(At,Xt){return(Xt-=At)<0?Xt+360:Xt}function Ur(At,Xt){return At[0]-Xt[0]}function dt(At,Xt){return At[0]<=At[1]?At[0]<=Xt&&Xt<=At[1]:XtWr(Ar[0],Ar[1])&&(Ar[1]=Kr[1]),Wr(Kr[0],Ar[1])>Wr(Ar[0],Ar[1])&&(Ar[0]=Kr[0])):Ei.push(Ar=Kr);for(Wi=-1/0,kr=Ei.length-1,Xt=0,Ar=Ei[kr];Xt<=kr;Ar=Kr,++Xt)Kr=Ei[Xt],(hn=Wr(Ar[1],Kr[0]))>Wi&&(Wi=hn,lt=Kr[0],Nt=Ar[1])}return er=Ut=null,lt===1/0||Gt===1/0?[[NaN,NaN],[NaN,NaN]]:[[lt,Gt],[Nt,$t]]}var Je,je,$e,wt,Ie,xe,Ce,vt,nr,ir,pr,oi,di,Jr,fi,Hi,Pn={sphere:O,point:wn,lineStart:Vn,lineEnd:ua,polygonStart:function(){Pn.lineStart=Vt,Pn.lineEnd=_t},polygonEnd:function(){Pn.lineStart=Vn,Pn.lineEnd=ua}};function wn(At,Xt){At*=d,Xt*=d;var kr=p(Xt);pn(kr*p(At),kr*x(At),x(Xt))}function pn(At,Xt,kr){++Je,$e+=(At-$e)/Je,wt+=(Xt-wt)/Je,Ie+=(kr-Ie)/Je}function Vn(){Pn.point=kn}function kn(At,Xt){At*=d,Xt*=d;var kr=p(Xt);Jr=kr*p(At),fi=kr*x(At),Hi=x(Xt),Pn.point=ea,pn(Jr,fi,Hi)}function ea(At,Xt){At*=d,Xt*=d;var kr=p(Xt),Ar=kr*p(At),Kr=kr*x(At),Ei=x(Xt),Wi=b(M((Wi=fi*Ei-Hi*Kr)*Wi+(Wi=Hi*Ar-Jr*Ei)*Wi+(Wi=Jr*Kr-fi*Ar)*Wi),Jr*Ar+fi*Kr+Hi*Ei);je+=Wi,xe+=Wi*(Jr+(Jr=Ar)),Ce+=Wi*(fi+(fi=Kr)),vt+=Wi*(Hi+(Hi=Ei)),pn(Jr,fi,Hi)}function ua(){Pn.point=wn}function Vt(){Pn.point=tr}function _t(){ar(oi,di),Pn.point=wn}function tr(At,Xt){oi=At,di=Xt,At*=d,Xt*=d,Pn.point=ar;var kr=p(Xt);Jr=kr*p(At),fi=kr*x(At),Hi=x(Xt),pn(Jr,fi,Hi)}function ar(At,Xt){At*=d,Xt*=d;var kr=p(Xt),Ar=kr*p(At),Kr=kr*x(At),Ei=x(Xt),Wi=fi*Ei-Hi*Kr,hn=Hi*Ar-Jr*Ei,Tn=Jr*Kr-fi*Ar,Bn=M(Wi*Wi+hn*hn+Tn*Tn),Zi=T(Bn),$i=Bn&&-Zi/Bn;nr+=$i*Wi,ir+=$i*hn,pr+=$i*Tn,je+=Zi,xe+=Zi*(Jr+(Jr=Ar)),Ce+=Zi*(fi+(fi=Kr)),vt+=Zi*(Hi+(Hi=Ei)),pn(Jr,fi,Hi)}function Er(At){Je=je=$e=wt=Ie=xe=Ce=vt=nr=ir=pr=0,j(At,Pn);var Xt=nr,kr=ir,Ar=pr,Kr=Xt*Xt+kr*kr+Ar*Ar;return Krl?At+Math.round(-At/f)*f:At,Xt]}$r.invert=$r;function zi(At,Xt,kr){return(At%=f)?Xt||kr?ri(en(At),cn(Xt,kr)):en(At):Xt||kr?cn(Xt,kr):$r}function Ji(At){return function(Xt,kr){return Xt+=At,[Xt>l?Xt-f:Xt<-l?Xt+f:Xt,kr]}}function en(At){var Xt=Ji(At);return Xt.invert=Ji(-At),Xt}function cn(At,Xt){var kr=p(At),Ar=x(At),Kr=p(Xt),Ei=x(Xt);function Wi(hn,Tn){var Bn=p(Tn),Zi=p(hn)*Bn,$i=x(hn)*Bn,an=x(Tn),Di=an*kr+Zi*Ar;return[b($i*Kr-Di*Ei,Zi*kr-an*Ar),T(Di*Kr+$i*Ei)]}return Wi.invert=function(hn,Tn){var Bn=p(Tn),Zi=p(hn)*Bn,$i=x(hn)*Bn,an=x(Tn),Di=an*Kr-$i*Ei;return[b($i*Kr+an*Ei,Zi*kr+Di*Ar),T(Di*kr-Zi*Ar)]},Wi}function yn(At){At=zi(At[0]*d,At[1]*d,At.length>2?At[2]*d:0);function Xt(kr){return kr=At(kr[0]*d,kr[1]*d),kr[0]*=h,kr[1]*=h,kr}return Xt.invert=function(kr){return kr=At.invert(kr[0]*d,kr[1]*d),kr[0]*=h,kr[1]*=h,kr},Xt}function Mn(At,Xt,kr,Ar,Kr,Ei){if(kr){var Wi=p(Xt),hn=x(Xt),Tn=Ar*kr;Kr==null?(Kr=Xt+Ar*f,Ei=Xt-Tn/2):(Kr=Ba(Wi,Kr),Ei=Ba(Wi,Ei),(Ar>0?KrEi)&&(Kr+=Ar*f));for(var Bn,Zi=Kr;Ar>0?Zi>Ei:Zi1&&At.push(At.pop().concat(At.shift()))},result:function(){var kr=At;return At=[],Xt=null,kr}}}function Wa(At,Xt){return v(At[0]-Xt[0])=0;--hn)Kr.point(($i=Zi[hn])[0],$i[1]);else Ar(an.x,an.p.x,-1,Kr);an=an.p}an=an.o,Zi=an.z,Di=!Di}while(!an.v);Kr.lineEnd()}}}function da(At){if(Xt=At.length){for(var Xt,kr=0,Ar=At[0],Kr;++kr=0?1:-1,os=Ms*Xo,Ts=os>l,Ho=ka*Ka;if(Wn.add(b(Ho*Ms*x(os),Ra*bo+Ho*p(os))),Wi+=Ts?Xo+Ms*f:Xo,Ts^Di>=kr^Yn>=kr){var yl=ct(ce(an),ce(Na));st(yl);var Xs=ct(Ei,yl);st(Xs);var Ps=(Ts^Xo>=0?-1:1)*T(Xs[2]);(Ar>Ps||Ar===Ps&&(yl[0]||yl[1]))&&(hn+=Ts^Xo>=0?1:-1)}}return(Wi<-o||Wi0){for(Tn||(Kr.polygonStart(),Tn=!0),Kr.lineStart(),bo=0;bo1&&zn&2&&Ka.push(Ka.pop().concat(Ka.shift())),Zi.push(Ka.filter(St))}}return an}}function St(At){return At.length>1}function Cr(At,Xt){return((At=At.x)[0]<0?At[1]-u-o:u-At[1])-((Xt=Xt.x)[0]<0?Xt[1]-u-o:u-Xt[1])}var Qr=jn(function(){return!0},pi,Sn,[-l,-u]);function pi(At){var Xt=NaN,kr=NaN,Ar=NaN,Kr;return{lineStart:function(){At.lineStart(),Kr=1},point:function(Ei,Wi){var hn=Ei>0?l:-l,Tn=v(Ei-Xt);v(Tn-l)0?u:-u),At.point(Ar,kr),At.lineEnd(),At.lineStart(),At.point(hn,kr),At.point(Ei,kr),Kr=0):Ar!==hn&&Tn>=l&&(v(Xt-Ar)o?_((x(Xt)*(Ei=p(Ar))*x(kr)-x(Ar)*(Kr=p(Xt))*x(At))/(Kr*Ei*Wi)):(Xt+Ar)/2}function Sn(At,Xt,kr,Ar){var Kr;if(At==null)Kr=kr*u,Ar.point(-l,Kr),Ar.point(0,Kr),Ar.point(l,Kr),Ar.point(l,0),Ar.point(l,-Kr),Ar.point(0,-Kr),Ar.point(-l,-Kr),Ar.point(-l,0),Ar.point(-l,Kr);else if(v(At[0]-Xt[0])>o){var Ei=At[0]0,Kr=v(Xt)>o;function Ei(Zi,$i,an,Di){Mn(Di,At,kr,an,Zi,$i)}function Wi(Zi,$i){return p(Zi)*p($i)>Xt}function hn(Zi){var $i,an,Di,$n,ka;return{lineStart:function(){$n=Di=!1,ka=1},point:function(Ra,La){var Na=[Ra,La],Yn,zn=Wi(Ra,La),Ka=Ar?zn?0:Bn(Ra,La):zn?Bn(Ra+(Ra<0?l:-l),La):0;if(!$i&&($n=Di=zn)&&Zi.lineStart(),zn!==Di&&(Yn=Tn($i,Na),(!Yn||Wa($i,Yn)||Wa(Na,Yn))&&(Na[2]=1)),zn!==Di)ka=0,zn?(Zi.lineStart(),Yn=Tn(Na,$i),Zi.point(Yn[0],Yn[1])):(Yn=Tn($i,Na),Zi.point(Yn[0],Yn[1],2),Zi.lineEnd()),$i=Yn;else if(Kr&&$i&&Ar^zn){var bo;!(Ka&an)&&(bo=Tn(Na,$i,!0))&&(ka=0,Ar?(Zi.lineStart(),Zi.point(bo[0][0],bo[0][1]),Zi.point(bo[1][0],bo[1][1]),Zi.lineEnd()):(Zi.point(bo[1][0],bo[1][1]),Zi.lineEnd(),Zi.lineStart(),Zi.point(bo[0][0],bo[0][1],3)))}zn&&(!$i||!Wa($i,Na))&&Zi.point(Na[0],Na[1]),$i=Na,Di=zn,an=Ka},lineEnd:function(){Di&&Zi.lineEnd(),$i=null},clean:function(){return ka|($n&&Di)<<1}}}function Tn(Zi,$i,an){var Di=ce(Zi),$n=ce($i),ka=[1,0,0],Ra=ct(Di,$n),La=Ze(Ra,Ra),Na=Ra[0],Yn=La-Na*Na;if(!Yn)return!an&&Zi;var zn=Xt*La/Yn,Ka=-Xt*Na/Yn,bo=ct(ka,Ra),Xo=Wt(ka,zn),Ms=Wt(Ra,Ka);pt(Xo,Ms);var os=bo,Ts=Ze(Xo,os),Ho=Ze(os,os),yl=Ts*Ts-Ho*(Ze(Xo,Xo)-1);if(!(yl<0)){var Xs=M(yl),Ps=Wt(os,(-Ts-Xs)/Ho);if(pt(Ps,Xo),Ps=Fe(Ps),!an)return Ps;var va=Zi[0],no=$i[0],_s=Zi[1],is=$i[1],$l;no0^Ps[1]<(v(Ps[0]-va)l^(va<=Ps[0]&&Ps[0]<=no)){var pu=Wt(os,(-Ts+Xs)/Ho);return pt(pu,Xo),[Ps,Fe(pu)]}}}function Bn(Zi,$i){var an=Ar?At:l-At,Di=0;return Zi<-an?Di|=1:Zi>an&&(Di|=2),$i<-an?Di|=4:$i>an&&(Di|=8),Di}return jn(Wi,hn,Ei,Ar?[0,-At]:[-l,At-l])}function ki(At,Xt,kr,Ar,Kr,Ei){var Wi=At[0],hn=At[1],Tn=Xt[0],Bn=Xt[1],Zi=0,$i=1,an=Tn-Wi,Di=Bn-hn,$n;if($n=kr-Wi,!(!an&&$n>0)){if($n/=an,an<0){if($n0){if($n>$i)return;$n>Zi&&(Zi=$n)}if($n=Kr-Wi,!(!an&&$n<0)){if($n/=an,an<0){if($n>$i)return;$n>Zi&&(Zi=$n)}else if(an>0){if($n0)){if($n/=Di,Di<0){if($n0){if($n>$i)return;$n>Zi&&(Zi=$n)}if($n=Ei-hn,!(!Di&&$n<0)){if($n/=Di,Di<0){if($n>$i)return;$n>Zi&&(Zi=$n)}else if(Di>0){if($n0&&(At[0]=Wi+Zi*an,At[1]=hn+Zi*Di),$i<1&&(Xt[0]=Wi+$i*an,Xt[1]=hn+$i*Di),!0}}}}}var _n=1e9,ya=-_n;function Jn(At,Xt,kr,Ar){function Kr(Bn,Zi){return At<=Bn&&Bn<=kr&&Xt<=Zi&&Zi<=Ar}function Ei(Bn,Zi,$i,an){var Di=0,$n=0;if(Bn==null||(Di=Wi(Bn,$i))!==($n=Wi(Zi,$i))||Tn(Bn,Zi)<0^$i>0)do an.point(Di===0||Di===3?At:kr,Di>1?Ar:Xt);while((Di=(Di+$i+4)%4)!==$n);else an.point(Zi[0],Zi[1])}function Wi(Bn,Zi){return v(Bn[0]-At)0?0:3:v(Bn[0]-kr)0?2:1:v(Bn[1]-Xt)0?1:0:Zi>0?3:2}function hn(Bn,Zi){return Tn(Bn.x,Zi.x)}function Tn(Bn,Zi){var $i=Wi(Bn,1),an=Wi(Zi,1);return $i!==an?$i-an:$i===0?Zi[1]-Bn[1]:$i===1?Bn[0]-Zi[0]:$i===2?Bn[1]-Zi[1]:Zi[0]-Bn[0]}return function(Bn){var Zi=Bn,$i=ma(),an,Di,$n,ka,Ra,La,Na,Yn,zn,Ka,bo,Xo={point:Ms,lineStart:yl,lineEnd:Xs,polygonStart:Ts,polygonEnd:Ho};function Ms(va,no){Kr(va,no)&&Zi.point(va,no)}function os(){for(var va=0,no=0,_s=Di.length;no<_s;++no)for(var is=Di[no],$l=1,ku=is.length,Yu=is[0],Nc,pu,Uc=Yu[0],xu=Yu[1];$lAr&&(Uc-Nc)*(Ar-pu)>(xu-pu)*(At-Nc)&&++va:xu<=Ar&&(Uc-Nc)*(Ar-pu)<(xu-pu)*(At-Nc)&&--va;return va}function Ts(){Zi=$i,an=[],Di=[],bo=!0}function Ho(){var va=os(),no=bo&&va,_s=(an=t.merge(an)).length;(no||_s)&&(Bn.polygonStart(),no&&(Bn.lineStart(),Ei(null,null,1,Bn),Bn.lineEnd()),_s&&Wo(an,hn,va,Ei,Bn),Bn.polygonEnd()),Zi=Bn,an=Di=$n=null}function yl(){Xo.point=Ps,Di&&Di.push($n=[]),Ka=!0,zn=!1,Na=Yn=NaN}function Xs(){an&&(Ps(ka,Ra),La&&zn&&$i.rejoin(),an.push($i.result())),Xo.point=Ms,zn&&Zi.lineEnd()}function Ps(va,no){var _s=Kr(va,no);if(Di&&$n.push([va,no]),Ka)ka=va,Ra=no,La=_s,Ka=!1,_s&&(Zi.lineStart(),Zi.point(va,no));else if(_s&&zn)Zi.point(va,no);else{var is=[Na=Math.max(ya,Math.min(_n,Na)),Yn=Math.max(ya,Math.min(_n,Yn))],$l=[va=Math.max(ya,Math.min(_n,va)),no=Math.max(ya,Math.min(_n,no))];ki(is,$l,At,Xt,kr,Ar)?(zn||(Zi.lineStart(),Zi.point(is[0],is[1])),Zi.point($l[0],$l[1]),_s||Zi.lineEnd(),bo=!1):_s&&(Zi.lineStart(),Zi.point(va,no),bo=!1)}Na=va,Yn=no,zn=_s}return Xo}}function Ma(){var At=0,Xt=0,kr=960,Ar=500,Kr,Ei,Wi;return Wi={stream:function(hn){return Kr&&Ei===hn?Kr:Kr=Jn(At,Xt,kr,Ar)(Ei=hn)},extent:function(hn){return arguments.length?(At=+hn[0][0],Xt=+hn[0][1],kr=+hn[1][0],Ar=+hn[1][1],Kr=Ei=null,Wi):[[At,Xt],[kr,Ar]]}}}var _o=r(),No,po,Lo,Co={sphere:O,point:O,lineStart:Fs,lineEnd:O,polygonStart:O,polygonEnd:O};function Fs(){Co.point=ul,Co.lineEnd=zs}function zs(){Co.point=Co.lineEnd=O}function ul(At,Xt){At*=d,Xt*=d,No=At,po=x(Xt),Lo=p(Xt),Co.point=cl}function cl(At,Xt){At*=d,Xt*=d;var kr=x(Xt),Ar=p(Xt),Kr=v(At-No),Ei=p(Kr),Wi=x(Kr),hn=Ar*Wi,Tn=Lo*kr-po*Ar*Ei,Bn=po*kr+Lo*Ar*Ei;_o.add(b(M(hn*hn+Tn*Tn),Bn)),No=At,po=kr,Lo=Ar}function zl(At){return _o.reset(),j(At,Co),+_o}var cs=[null,null],nl={type:"LineString",coordinates:cs};function Ss(At,Xt){return cs[0]=At,cs[1]=Xt,zl(nl)}var fl={Feature:function(At,Xt){return Os(At.geometry,Xt)},FeatureCollection:function(At,Xt){for(var kr=At.features,Ar=-1,Kr=kr.length;++Ar0&&(Kr=Ss(At[Ei],At[Ei-1]),Kr>0&&kr<=Kr&&Ar<=Kr&&(kr+Ar-Kr)*(1-Math.pow((kr-Ar)/Kr,2))o}).map(an)).concat(t.range(C(Ei/Bn)*Bn,Kr,Bn).filter(function(Yn){return v(Yn%$i)>o}).map(Di))}return La.lines=function(){return Na().map(function(Yn){return{type:"LineString",coordinates:Yn}})},La.outline=function(){return{type:"Polygon",coordinates:[$n(Ar).concat(ka(Wi).slice(1),$n(kr).reverse().slice(1),ka(hn).reverse().slice(1))]}},La.extent=function(Yn){return arguments.length?La.extentMajor(Yn).extentMinor(Yn):La.extentMinor()},La.extentMajor=function(Yn){return arguments.length?(Ar=+Yn[0][0],kr=+Yn[1][0],hn=+Yn[0][1],Wi=+Yn[1][1],Ar>kr&&(Yn=Ar,Ar=kr,kr=Yn),hn>Wi&&(Yn=hn,hn=Wi,Wi=Yn),La.precision(Ra)):[[Ar,hn],[kr,Wi]]},La.extentMinor=function(Yn){return arguments.length?(Xt=+Yn[0][0],At=+Yn[1][0],Ei=+Yn[0][1],Kr=+Yn[1][1],Xt>At&&(Yn=Xt,Xt=At,At=Yn),Ei>Kr&&(Yn=Ei,Ei=Kr,Kr=Yn),La.precision(Ra)):[[Xt,Ei],[At,Kr]]},La.step=function(Yn){return arguments.length?La.stepMajor(Yn).stepMinor(Yn):La.stepMinor()},La.stepMajor=function(Yn){return arguments.length?(Zi=+Yn[0],$i=+Yn[1],La):[Zi,$i]},La.stepMinor=function(Yn){return arguments.length?(Tn=+Yn[0],Bn=+Yn[1],La):[Tn,Bn]},La.precision=function(Yn){return arguments.length?(Ra=+Yn,an=Fn(Ei,Kr,90),Di=_a(Xt,At,Ra),$n=Fn(hn,Wi,90),ka=_a(Ar,kr,Ra),La):Ra},La.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ol(){return Vu()()}function xo(At,Xt){var kr=At[0]*d,Ar=At[1]*d,Kr=Xt[0]*d,Ei=Xt[1]*d,Wi=p(Ar),hn=x(Ar),Tn=p(Ei),Bn=x(Ei),Zi=Wi*p(kr),$i=Wi*x(kr),an=Tn*p(Kr),Di=Tn*x(Kr),$n=2*T(M(z(Ei-Ar)+Wi*Tn*z(Kr-kr))),ka=x($n),Ra=$n?function(La){var Na=x(La*=$n)/ka,Yn=x($n-La)/ka,zn=Yn*Zi+Na*an,Ka=Yn*$i+Na*Di,bo=Yn*hn+Na*Bn;return[b(Ka,zn)*h,b(bo,M(zn*zn+Ka*Ka))*h]}:function(){return[kr*h,Ar*h]};return Ra.distance=$n,Ra}function Yl(At){return At}var Us=r(),Hl=r(),ac,aa,Oo,qo,ql={point:O,lineStart:O,lineEnd:O,polygonStart:function(){ql.lineStart=Pc,ql.lineEnd=Uf},polygonEnd:function(){ql.lineStart=ql.lineEnd=ql.point=O,Us.add(v(Hl)),Hl.reset()},result:function(){var At=Us/2;return Us.reset(),At}};function Pc(){ql.point=Do}function Do(At,Xt){ql.point=rf,ac=Oo=At,aa=qo=Xt}function rf(At,Xt){Hl.add(qo*At-Oo*Xt),Oo=At,qo=Xt}function Uf(){rf(ac,aa)}var ml=1/0,Zc=ml,Kl=-ml,qs=Kl,yu={point:oc,lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O,result:function(){var At=[[ml,Zc],[Kl,qs]];return Kl=qs=-(Zc=ml=1/0),At}};function oc(At,Xt){AtKl&&(Kl=At),Xtqs&&(qs=Xt)}var Cf=0,sc=0,Nh=0,kf=0,fs=0,nf=0,Vf=0,Jl=0,hl=0,lc,Fu,Cs,js,Go={point:gs,lineStart:uc,lineEnd:Bs,polygonStart:function(){Go.lineStart=ad,Go.lineEnd=Po},polygonEnd:function(){Go.point=gs,Go.lineStart=uc,Go.lineEnd=Bs},result:function(){var At=hl?[Vf/hl,Jl/hl]:nf?[kf/nf,fs/nf]:Nh?[Cf/Nh,sc/Nh]:[NaN,NaN];return Cf=sc=Nh=kf=fs=nf=Vf=Jl=hl=0,At}};function gs(At,Xt){Cf+=At,sc+=Xt,++Nh}function uc(){Go.point=bl}function bl(At,Xt){Go.point=Gu,gs(Cs=At,js=Xt)}function Gu(At,Xt){var kr=At-Cs,Ar=Xt-js,Kr=M(kr*kr+Ar*Ar);kf+=Kr*(Cs+At)/2,fs+=Kr*(js+Xt)/2,nf+=Kr,gs(Cs=At,js=Xt)}function Bs(){Go.point=gs}function ad(){Go.point=od}function Po(){Yo(lc,Fu)}function od(At,Xt){Go.point=Yo,gs(lc=Cs=At,Fu=js=Xt)}function Yo(At,Xt){var kr=At-Cs,Ar=Xt-js,Kr=M(kr*kr+Ar*Ar);kf+=Kr*(Cs+At)/2,fs+=Kr*(js+Xt)/2,nf+=Kr,Kr=js*At-Cs*Xt,Vf+=Kr*(Cs+At),Jl+=Kr*(js+Xt),hl+=Kr*3,gs(Cs=At,js=Xt)}function Pa(At){this._context=At}Pa.prototype={_radius:4.5,pointRadius:function(At){return this._radius=At,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(At,Xt){switch(this._point){case 0:{this._context.moveTo(At,Xt),this._point=1;break}case 1:{this._context.lineTo(At,Xt);break}default:{this._context.moveTo(At+this._radius,Xt),this._context.arc(At,Xt,this._radius,0,f);break}}},result:O};var af=r(),Hu,wl,Gf,Ic,mf,Bl={point:O,lineStart:function(){Bl.point=xh},lineEnd:function(){Hu&&Qf(wl,Gf),Bl.point=O},polygonStart:function(){Hu=!0},polygonEnd:function(){Hu=null},result:function(){var At=+af;return af.reset(),At}};function xh(At,Xt){Bl.point=Qf,wl=Ic=At,Gf=mf=Xt}function Qf(At,Xt){Ic-=At,mf-=Xt,af.add(M(Ic*Ic+mf*mf)),Ic=At,mf=Xt}function yf(){this._string=[]}yf.prototype={_radius:4.5,_circle:Yc(4.5),pointRadius:function(At){return(At=+At)!==this._radius&&(this._radius=At,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(At,Xt){switch(this._point){case 0:{this._string.push("M",At,",",Xt),this._point=1;break}case 1:{this._string.push("L",At,",",Xt);break}default:{this._circle==null&&(this._circle=Yc(this._radius)),this._string.push("M",At,",",Xt,this._circle);break}}},result:function(){if(this._string.length){var At=this._string.join("");return this._string=[],At}else return null}};function Yc(At){return"m0,"+At+"a"+At+","+At+" 0 1,1 0,"+-2*At+"a"+At+","+At+" 0 1,1 0,"+2*At+"z"}function eh(At,Xt){var kr=4.5,Ar,Kr;function Ei(Wi){return Wi&&(typeof kr=="function"&&Kr.pointRadius(+kr.apply(this,arguments)),j(Wi,Ar(Kr))),Kr.result()}return Ei.area=function(Wi){return j(Wi,Ar(ql)),ql.result()},Ei.measure=function(Wi){return j(Wi,Ar(Bl)),Bl.result()},Ei.bounds=function(Wi){return j(Wi,Ar(yu)),yu.result()},Ei.centroid=function(Wi){return j(Wi,Ar(Go)),Go.result()},Ei.projection=function(Wi){return arguments.length?(Ar=Wi==null?(At=null,Yl):(At=Wi).stream,Ei):At},Ei.context=function(Wi){return arguments.length?(Kr=Wi==null?(Xt=null,new yf):new Pa(Xt=Wi),typeof kr!="function"&&Kr.pointRadius(kr),Ei):Xt},Ei.pointRadius=function(Wi){return arguments.length?(kr=typeof Wi=="function"?Wi:(Kr.pointRadius(+Wi),+Wi),Ei):kr},Ei.projection(At).context(Xt)}function th(At){return{stream:ju(At)}}function ju(At){return function(Xt){var kr=new Hf;for(var Ar in At)kr[Ar]=At[Ar];return kr.stream=Xt,kr}}function Hf(){}Hf.prototype={constructor:Hf,point:function(At,Xt){this.stream.point(At,Xt)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function cc(At,Xt,kr){var Ar=At.clipExtent&&At.clipExtent();return At.scale(150).translate([0,0]),Ar!=null&&At.clipExtent(null),j(kr,At.stream(yu)),Xt(yu.result()),Ar!=null&&At.clipExtent(Ar),At}function of(At,Xt,kr){return cc(At,function(Ar){var Kr=Xt[1][0]-Xt[0][0],Ei=Xt[1][1]-Xt[0][1],Wi=Math.min(Kr/(Ar[1][0]-Ar[0][0]),Ei/(Ar[1][1]-Ar[0][1])),hn=+Xt[0][0]+(Kr-Wi*(Ar[1][0]+Ar[0][0]))/2,Tn=+Xt[0][1]+(Ei-Wi*(Ar[1][1]+Ar[0][1]))/2;At.scale(150*Wi).translate([hn,Tn])},kr)}function Nl(At,Xt,kr){return of(At,[[0,0],Xt],kr)}function Kc(At,Xt,kr){return cc(At,function(Ar){var Kr=+Xt,Ei=Kr/(Ar[1][0]-Ar[0][0]),Wi=(Kr-Ei*(Ar[1][0]+Ar[0][0]))/2,hn=-Ei*Ar[0][1];At.scale(150*Ei).translate([Wi,hn])},kr)}function Rc(At,Xt,kr){return cc(At,function(Ar){var Kr=+Xt,Ei=Kr/(Ar[1][1]-Ar[0][1]),Wi=-Ei*Ar[0][0],hn=(Kr-Ei*(Ar[1][1]+Ar[0][1]))/2;At.scale(150*Ei).translate([Wi,hn])},kr)}var ms=16,jf=p(30*d);function Uh(At,Xt){return+Xt?sf(At,Xt):rh(At)}function rh(At){return ju({point:function(Xt,kr){Xt=At(Xt,kr),this.stream.point(Xt[0],Xt[1])}})}function sf(At,Xt){function kr(Ar,Kr,Ei,Wi,hn,Tn,Bn,Zi,$i,an,Di,$n,ka,Ra){var La=Bn-Ar,Na=Zi-Kr,Yn=La*La+Na*Na;if(Yn>4*Xt&&ka--){var zn=Wi+an,Ka=hn+Di,bo=Tn+$n,Xo=M(zn*zn+Ka*Ka+bo*bo),Ms=T(bo/=Xo),os=v(v(bo)-1)Xt||v((La*Xs+Na*Ps)/Yn-.5)>.3||Wi*an+hn*Di+Tn*$n2?va[2]%360*d:0,Xs()):[hn*h,Tn*h,Bn*h]},Ho.angle=function(va){return arguments.length?($i=va%360*d,Xs()):$i*h},Ho.reflectX=function(va){return arguments.length?(an=va?-1:1,Xs()):an<0},Ho.reflectY=function(va){return arguments.length?(Di=va?-1:1,Xs()):Di<0},Ho.precision=function(va){return arguments.length?(bo=Uh(Xo,Ka=va*va),Ps()):M(Ka)},Ho.fitExtent=function(va,no){return of(Ho,va,no)},Ho.fitSize=function(va,no){return Nl(Ho,va,no)},Ho.fitWidth=function(va,no){return Kc(Ho,va,no)},Ho.fitHeight=function(va,no){return Rc(Ho,va,no)};function Xs(){var va=Ws(kr,0,0,an,Di,$i).apply(null,Xt(Ei,Wi)),no=($i?Ws:ih)(kr,Ar-va[0],Kr-va[1],an,Di,$i);return Zi=zi(hn,Tn,Bn),Xo=ri(Xt,no),Ms=ri(Zi,Xo),bo=Uh(Xo,Ka),Ps()}function Ps(){return os=Ts=null,Ho}return function(){return Xt=At.apply(this,arguments),Ho.invert=Xt.invert&&yl,Xs()}}function ks(At){var Xt=0,kr=l/3,Ar=Dc(At),Kr=Ar(Xt,kr);return Kr.parallels=function(Ei){return arguments.length?Ar(Xt=Ei[0]*d,kr=Ei[1]*d):[Xt*h,kr*h]},Kr}function bc(At){var Xt=p(At);function kr(Ar,Kr){return[Ar*Xt,x(Kr)/Xt]}return kr.invert=function(Ar,Kr){return[Ar/Xt,T(Kr*Xt)]},kr}function hu(At,Xt){var kr=x(At),Ar=(kr+x(Xt))/2;if(v(Ar)=.12&&Ra<.234&&ka>=-.425&&ka<-.214?Kr:Ra>=.166&&Ra<.234&&ka>=-.214&&ka<-.115?Wi:kr).invert(an)},Zi.stream=function(an){return At&&Xt===an?At:At=nh([kr.stream(Xt=an),Kr.stream(an),Wi.stream(an)])},Zi.precision=function(an){return arguments.length?(kr.precision(an),Kr.precision(an),Wi.precision(an),$i()):kr.precision()},Zi.scale=function(an){return arguments.length?(kr.scale(an),Kr.scale(an*.35),Wi.scale(an),Zi.translate(kr.translate())):kr.scale()},Zi.translate=function(an){if(!arguments.length)return kr.translate();var Di=kr.scale(),$n=+an[0],ka=+an[1];return Ar=kr.translate(an).clipExtent([[$n-.455*Di,ka-.238*Di],[$n+.455*Di,ka+.238*Di]]).stream(Bn),Ei=Kr.translate([$n-.307*Di,ka+.201*Di]).clipExtent([[$n-.425*Di+o,ka+.12*Di+o],[$n-.214*Di-o,ka+.234*Di-o]]).stream(Bn),hn=Wi.translate([$n-.205*Di,ka+.212*Di]).clipExtent([[$n-.214*Di+o,ka+.166*Di+o],[$n-.115*Di-o,ka+.234*Di-o]]).stream(Bn),$i()},Zi.fitExtent=function(an,Di){return of(Zi,an,Di)},Zi.fitSize=function(an,Di){return Nl(Zi,an,Di)},Zi.fitWidth=function(an,Di){return Kc(Zi,an,Di)},Zi.fitHeight=function(an,Di){return Rc(Zi,an,Di)};function $i(){return At=Xt=null,Zi}return Zi.scale(1070)}function zu(At){return function(Xt,kr){var Ar=p(Xt),Kr=p(kr),Ei=At(Ar*Kr);return[Ei*Kr*x(Xt),Ei*x(kr)]}}function Fc(At){return function(Xt,kr){var Ar=M(Xt*Xt+kr*kr),Kr=At(Ar),Ei=x(Kr),Wi=p(Kr);return[b(Xt*Ei,Ar*Wi),T(Ar&&kr*Ei/Ar)]}}var wc=zu(function(At){return M(2/(1+At))});wc.invert=Fc(function(At){return 2*T(At/2)});function bd(){return Eu(wc).scale(124.75).clipAngle(180-.001)}var _f=zu(function(At){return(At=P(At))&&At/x(At)});_f.invert=Fc(function(At){return At});function Lf(){return Eu(_f).scale(79.4188).clipAngle(180-.001)}function Ou(At,Xt){return[At,A(g((u+Xt)/2))]}Ou.invert=function(At,Xt){return[At,2*_(E(Xt))-u]};function xf(){return jl(Ou).scale(961/f)}function jl(At){var Xt=Eu(At),kr=Xt.center,Ar=Xt.scale,Kr=Xt.translate,Ei=Xt.clipExtent,Wi=null,hn,Tn,Bn;Xt.scale=function($i){return arguments.length?(Ar($i),Zi()):Ar()},Xt.translate=function($i){return arguments.length?(Kr($i),Zi()):Kr()},Xt.center=function($i){return arguments.length?(kr($i),Zi()):kr()},Xt.clipExtent=function($i){return arguments.length?($i==null?Wi=hn=Tn=Bn=null:(Wi=+$i[0][0],hn=+$i[0][1],Tn=+$i[1][0],Bn=+$i[1][1]),Zi()):Wi==null?null:[[Wi,hn],[Tn,Bn]]};function Zi(){var $i=l*Ar(),an=Xt(yn(Xt.rotate()).invert([0,0]));return Ei(Wi==null?[[an[0]-$i,an[1]-$i],[an[0]+$i,an[1]+$i]]:At===Ou?[[Math.max(an[0]-$i,Wi),hn],[Math.min(an[0]+$i,Tn),Bn]]:[[Wi,Math.max(an[1]-$i,hn)],[Tn,Math.min(an[1]+$i,Bn)]])}return Zi()}function lf(At){return g((u+At)/2)}function Vh(At,Xt){var kr=p(At),Ar=At===Xt?x(At):A(kr/p(Xt))/A(lf(Xt)/lf(At)),Kr=kr*L(lf(At),Ar)/Ar;if(!Ar)return Ou;function Ei(Wi,hn){Kr>0?hn<-u+o&&(hn=-u+o):hn>u-o&&(hn=u-o);var Tn=Kr/L(lf(hn),Ar);return[Tn*x(Ar*Wi),Kr-Tn*p(Ar*Wi)]}return Ei.invert=function(Wi,hn){var Tn=Kr-hn,Bn=k(Ar)*M(Wi*Wi+Tn*Tn),Zi=b(Wi,v(Tn))*k(Tn);return Tn*Ar<0&&(Zi-=l*k(Wi)*k(Tn)),[Zi/Ar,2*_(L(Kr/Bn,1/Ar))-u]},Ei}function Pf(){return ks(Vh).scale(109.5).parallels([30,30])}function Ls(At,Xt){return[At,Xt]}Ls.invert=Ls;function du(){return Eu(Ls).scale(152.63)}function Cu(At,Xt){var kr=p(At),Ar=At===Xt?x(At):(kr-p(Xt))/(Xt-At),Kr=kr/Ar+At;if(v(Ar)o&&--Ar>0);return[At/(.8707+(Ei=kr*kr)*(-.131979+Ei*(-.013791+Ei*Ei*Ei*(.003971-.001529*Ei)))),kr]};function Tc(){return Eu(Oc).scale(175.295)}function Tl(At,Xt){return[p(Xt)*x(At),x(Xt)]}Tl.invert=Fc(T);function vu(){return Eu(Tl).scale(249.5).clipAngle(90+o)}function qc(At,Xt){var kr=p(Xt),Ar=1+p(At)*kr;return[kr*x(At)/Ar,x(Xt)/Ar]}qc.invert=Fc(function(At){return 2*_(At)});function cf(){return Eu(qc).scale(250).clipAngle(142)}function fc(At,Xt){return[A(g((u+Xt)/2)),-At]}fc.invert=function(At,Xt){return[-Xt,2*_(E(At))-u]};function Bc(){var At=jl(fc),Xt=At.center,kr=At.rotate;return At.center=function(Ar){return arguments.length?Xt([-Ar[1],Ar[0]]):(Ar=Xt(),[Ar[1],-Ar[0]])},At.rotate=function(Ar){return arguments.length?kr([Ar[0],Ar[1],Ar.length>2?Ar[2]+90:90]):(Ar=kr(),[Ar[0],Ar[1],Ar[2]-90])},kr([0,0,90]).scale(159.155)}e.geoAlbers=al,e.geoAlbersUsa=wh,e.geoArea=ge,e.geoAzimuthalEqualArea=bd,e.geoAzimuthalEqualAreaRaw=wc,e.geoAzimuthalEquidistant=Lf,e.geoAzimuthalEquidistantRaw=_f,e.geoBounds=Ge,e.geoCentroid=Er,e.geoCircle=la,e.geoClipAntimeridian=Qr,e.geoClipCircle=En,e.geoClipExtent=Ma,e.geoClipRectangle=Jn,e.geoConicConformal=Pf,e.geoConicConformalRaw=Vh,e.geoConicEqualArea=_u,e.geoConicEqualAreaRaw=hu,e.geoConicEquidistant=Wf,e.geoConicEquidistantRaw=Cu,e.geoContains=ws,e.geoDistance=Ss,e.geoEqualEarth=Xf,e.geoEqualEarthRaw=uf,e.geoEquirectangular=du,e.geoEquirectangularRaw=Ls,e.geoGnomonic=ah,e.geoGnomonicRaw=Wl,e.geoGraticule=Vu,e.geoGraticule10=Ol,e.geoIdentity=Zu,e.geoInterpolate=xo,e.geoLength=zl,e.geoMercator=xf,e.geoMercatorRaw=Ou,e.geoNaturalEarth1=Tc,e.geoNaturalEarth1Raw=Oc,e.geoOrthographic=vu,e.geoOrthographicRaw=Tl,e.geoPath=eh,e.geoProjection=Eu,e.geoProjectionMutator=Dc,e.geoRotation=yn,e.geoStereographic=cf,e.geoStereographicRaw=qc,e.geoStream=j,e.geoTransform=th,e.geoTransverseMercator=Bc,e.geoTransverseMercatorRaw=fc,Object.defineProperty(e,"__esModule",{value:!0})})});var mDe=ye((CF,gDe)=>{(function(e,t){typeof CF=="object"&&typeof gDe!="undefined"?t(CF,LZ(),nC()):t(e.d3=e.d3||{},e.d3,e.d3)})(CF,function(e,t,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,u=Math.log,c=Math.max,f=Math.min,h=Math.pow,d=Math.round,v=Math.sign||function(ve){return ve>0?1:ve<0?-1:0},_=Math.sin,b=Math.tan,p=1e-6,C=1e-12,E=Math.PI,A=E/2,L=E/4,x=Math.SQRT1_2,k=G(2),M=G(E),g=E*2,P=180/E,T=E/180;function z(ve){return ve?ve/Math.sin(ve):1}function O(ve){return ve>1?A:ve<-1?-A:Math.asin(ve)}function V(ve){return ve>1?0:ve<-1?E:Math.acos(ve)}function G(ve){return ve>0?Math.sqrt(ve):0}function Z(ve){return ve=s(2*ve),(ve-1)/(ve+1)}function H(ve){return(s(ve)-s(-ve))/2}function N(ve){return(s(ve)+s(-ve))/2}function j(ve){return u(ve+G(ve*ve+1))}function re(ve){return u(ve+G(ve*ve-1))}function oe(ve){var be=b(ve/2),Re=2*u(o(ve/2))/(be*be);function Be(tt,We){var it=o(tt),Dt=o(We),Ht=_(We),rr=Dt*it,dr=-((1-rr?u((1+rr)/2)/(1-rr):-.5)+Re/(1+rr));return[dr*Dt*_(tt),dr*Ht]}return Be.invert=function(tt,We){var it=G(tt*tt+We*We),Dt=-ve/2,Ht=50,rr;if(!it)return[0,0];do{var dr=Dt/2,Sr=o(dr),Or=_(dr),jr=Or/Sr,ii=-u(n(Sr));Dt-=rr=(2/jr*ii-Re*jr-it)/(-ii/(Or*Or)+1-Re/(2*Sr*Sr))*(Sr<0?.7:1)}while(n(rr)>p&&--Ht>0);var Li=_(Dt);return[a(tt*Li,it*o(Dt)),O(We*Li/it)]},Be}function _e(){var ve=A,be=t.geoProjectionMutator(oe),Re=be(ve);return Re.radius=function(Be){return arguments.length?be(ve=Be*T):ve*P},Re.scale(179.976).clipAngle(147)}function Me(ve,be){var Re=o(be),Be=z(V(Re*o(ve/=2)));return[2*Re*_(ve)*Be,_(be)*Be]}Me.invert=function(ve,be){if(!(ve*ve+4*be*be>E*E+p)){var Re=ve,Be=be,tt=25;do{var We=_(Re),it=_(Re/2),Dt=o(Re/2),Ht=_(Be),rr=o(Be),dr=_(2*Be),Sr=Ht*Ht,Or=rr*rr,jr=it*it,ii=1-Or*Dt*Dt,Li=ii?V(rr*Dt)*G(un=1/ii):un=0,un,sn=2*Li*rr*it-ve,In=Li*Ht-be,Kn=un*(Or*jr+Li*rr*Dt*Sr),Ta=un*(.5*We*dr-Li*2*Ht*it),fa=un*.25*(dr*it-Li*Ht*Or*We),$a=un*(Sr*Dt+Li*jr*rr),ko=Ta*fa-$a*Kn;if(!ko)break;var Qa=(In*Ta-sn*$a)/ko,mo=(sn*fa-In*Kn)/ko;Re-=Qa,Be-=mo}while((n(Qa)>p||n(mo)>p)&&--tt>0);return[Re,Be]}};function ke(){return t.geoProjection(Me).scale(152.63)}function me(ve){var be=_(ve),Re=o(ve),Be=ve>=0?1:-1,tt=b(Be*ve),We=(1+be-Re)/2;function it(Dt,Ht){var rr=o(Ht),dr=o(Dt/=2);return[(1+rr)*_(Dt),(Be*Ht>-a(dr,tt)-.001?0:-Be*10)+We+_(Ht)*Re-(1+rr)*be*dr]}return it.invert=function(Dt,Ht){var rr=0,dr=0,Sr=50;do{var Or=o(rr),jr=_(rr),ii=o(dr),Li=_(dr),un=1+ii,sn=un*jr-Dt,In=We+Li*Re-un*be*Or-Ht,Kn=un*Or/2,Ta=-jr*Li,fa=be*un*jr/2,$a=Re*ii+be*Or*Li,ko=Ta*fa-$a*Kn,Qa=(In*Ta-sn*$a)/ko/2,mo=(sn*fa-In*Kn)/ko;n(mo)>2&&(mo/=2),rr-=Qa,dr-=mo}while((n(Qa)>p||n(mo)>p)&&--Sr>0);return Be*dr>-a(o(rr),tt)-.001?[rr*2,dr]:null},it}function ie(){var ve=20*T,be=ve>=0?1:-1,Re=b(be*ve),Be=t.geoProjectionMutator(me),tt=Be(ve),We=tt.stream;return tt.parallel=function(it){return arguments.length?(Re=b((be=(ve=it*T)>=0?1:-1)*ve),Be(ve)):ve*P},tt.stream=function(it){var Dt=tt.rotate(),Ht=We(it),rr=(tt.rotate([0,0]),We(it)),dr=tt.precision();return tt.rotate(Dt),Ht.sphere=function(){rr.polygonStart(),rr.lineStart();for(var Sr=be*-180;be*Sr<180;Sr+=be*90)rr.point(Sr,be*90);if(ve)for(;be*(Sr-=3*be*dr)>=-180;)rr.point(Sr,be*-a(o(Sr*T/2),Re)*P);rr.lineEnd(),rr.polygonEnd()},Ht},tt.scale(218.695).center([0,28.0974])}function Se(ve,be){var Re=b(be/2),Be=G(1-Re*Re),tt=1+Be*o(ve/=2),We=_(ve)*Be/tt,it=Re/tt,Dt=We*We,Ht=it*it;return[4/3*We*(3+Dt-3*Ht),4/3*it*(3+3*Dt-Ht)]}Se.invert=function(ve,be){if(ve*=3/8,be*=3/8,!ve&&n(be)>1)return null;var Re=ve*ve,Be=be*be,tt=1+Re+Be,We=G((tt-G(tt*tt-4*be*be))/2),it=O(We)/3,Dt=We?re(n(be/We))/3:j(n(ve))/3,Ht=o(it),rr=N(Dt),dr=rr*rr-Ht*Ht;return[v(ve)*2*a(H(Dt)*Ht,.25-dr),v(be)*2*a(rr*_(it),.25+dr)]};function Le(){return t.geoProjection(Se).scale(66.1603)}var Ae=G(8),De=u(1+k);function Pe(ve,be){var Re=n(be);return ReC&&--Be>0);return[ve/(o(Re)*(Ae-1/_(Re))),v(be)*Re]};function ge(){return t.geoProjection(Pe).scale(112.314)}function Fe(ve){var be=2*E/ve;function Re(Be,tt){var We=t.geoAzimuthalEquidistantRaw(Be,tt);if(n(Be)>A){var it=a(We[1],We[0]),Dt=G(We[0]*We[0]+We[1]*We[1]),Ht=be*d((it-A)/be)+A,rr=a(_(it-=Ht),2-o(it));it=Ht+O(E/Dt*_(rr))-rr,We[0]=Dt*o(it),We[1]=Dt*_(it)}return We}return Re.invert=function(Be,tt){var We=G(Be*Be+tt*tt);if(We>A){var it=a(tt,Be),Dt=be*d((it-A)/be)+A,Ht=it>Dt?-1:1,rr=We*o(Dt-it),dr=1/b(Ht*V((rr-E)/G(E*(E-2*rr)+We*We)));it=Dt+2*i((dr+Ht*G(dr*dr-3))/3),Be=We*o(it),tt=We*_(it)}return t.geoAzimuthalEquidistantRaw.invert(Be,tt)},Re}function ce(){var ve=5,be=t.geoProjectionMutator(Fe),Re=be(ve),Be=Re.stream,tt=.01,We=-o(tt*T),it=_(tt*T);return Re.lobes=function(Dt){return arguments.length?be(ve=+Dt):ve},Re.stream=function(Dt){var Ht=Re.rotate(),rr=Be(Dt),dr=(Re.rotate([0,0]),Be(Dt));return Re.rotate(Ht),rr.sphere=function(){dr.polygonStart(),dr.lineStart();for(var Sr=0,Or=360/ve,jr=2*E/ve,ii=90-180/ve,Li=A;Sr0&&n(tt)>p);return Be<0?NaN:Re}function st(ve,be,Re){return be===void 0&&(be=40),Re===void 0&&(Re=C),function(Be,tt,We,it){var Dt,Ht,rr;We=We===void 0?0:+We,it=it===void 0?0:+it;for(var dr=0;drDt){We-=Ht/=2,it-=rr/=2;continue}Dt=ii;var Li=(We>0?-1:1)*Re,un=(it>0?-1:1)*Re,sn=ve(We+Li,it),In=ve(We,it+un),Kn=(sn[0]-Sr[0])/Li,Ta=(sn[1]-Sr[1])/Li,fa=(In[0]-Sr[0])/un,$a=(In[1]-Sr[1])/un,ko=$a*Kn-Ta*fa,Qa=(n(ko)<.5?.5:1)/ko;if(Ht=(jr*fa-Or*$a)*Qa,rr=(Or*Ta-jr*Kn)*Qa,We+=Ht,it+=rr,n(Ht)0&&(Dt[1]*=1+Ht/1.5*Dt[0]*Dt[0]),Dt}return Be.invert=st(Be),Be}function Gt(){return t.geoProjection(lt()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Nt(ve,be){var Re=ve*_(be),Be=30,tt;do be-=tt=(be+_(be)-Re)/(1+o(be));while(n(tt)>p&&--Be>0);return be/2}function $t(ve,be,Re){function Be(tt,We){return[ve*tt*o(We=Nt(Re,We)),be*_(We)]}return Be.invert=function(tt,We){return We=O(We/be),[tt/(ve*o(We)),O((2*We+_(2*We))/Re)]},Be}var sr=$t(k/A,k,E);function wr(){return t.geoProjection(sr).scale(169.529)}var ur=2.00276,Qe=1.11072;function Et(ve,be){var Re=Nt(E,be);return[ur*ve/(1/o(be)+Qe/o(Re)),(be+k*_(Re))/ur]}Et.invert=function(ve,be){var Re=ur*be,Be=be<0?-L:L,tt=25,We,it;do it=Re-k*_(Be),Be-=We=(_(2*Be)+2*Be-E*_(it))/(2*o(2*Be)+2+E*o(it)*k*o(Be));while(n(We)>p&&--tt>0);return it=Re-k*_(Be),[ve*(1/o(it)+Qe/o(Be))/ur,it]};function er(){return t.geoProjection(Et).scale(160.857)}function Ut(ve){var be=0,Re=t.geoProjectionMutator(ve),Be=Re(be);return Be.parallel=function(tt){return arguments.length?Re(be=tt*T):be*P},Be}function Ft(ve,be){return[ve*o(be),be]}Ft.invert=function(ve,be){return[ve/o(be),be]};function bt(){return t.geoProjection(Ft).scale(152.63)}function yt(ve){if(!ve)return Ft;var be=1/b(ve);function Re(Be,tt){var We=be+ve-tt,it=We&&Be*o(tt)/We;return[We*_(it),be-We*o(it)]}return Re.invert=function(Be,tt){var We=G(Be*Be+(tt=be-tt)*tt),it=be+ve-We;return[We/o(it)*a(Be,tt),it]},Re}function Yt(){return Ut(yt).scale(123.082).center([0,26.1441]).parallel(45)}function lr(ve){function be(Re,Be){var tt=A-Be,We=tt&&Re*ve*_(tt)/tt;return[tt*_(We)/ve,A-tt*o(We)]}return be.invert=function(Re,Be){var tt=Re*ve,We=A-Be,it=G(tt*tt+We*We),Dt=a(tt,We);return[(it?it/_(it):1)*Dt/ve,A-it]},be}function Tr(){var ve=.5,be=t.geoProjectionMutator(lr),Re=be(ve);return Re.fraction=function(Be){return arguments.length?be(ve=+Be):ve},Re.scale(158.837)}var Rr=$t(1,4/E,E);function ei(){return t.geoProjection(Rr).scale(152.63)}function Wr(ve,be,Re,Be,tt,We){var it=o(We),Dt;if(n(ve)>1||n(We)>1)Dt=V(Re*tt+be*Be*it);else{var Ht=_(ve/2),rr=_(We/2);Dt=2*O(G(Ht*Ht+be*Be*rr*rr))}return n(Dt)>p?[Dt,a(Be*_(We),be*tt-Re*Be*it)]:[0,0]}function Ur(ve,be,Re){return V((ve*ve+be*be-Re*Re)/(2*ve*be))}function dt(ve){return ve-2*E*l((ve+E)/(2*E))}function Ge(ve,be,Re){for(var Be=[[ve[0],ve[1],_(ve[1]),o(ve[1])],[be[0],be[1],_(be[1]),o(be[1])],[Re[0],Re[1],_(Re[1]),o(Re[1])]],tt=Be[2],We,it=0;it<3;++it,tt=We)We=Be[it],tt.v=Wr(We[1]-tt[1],tt[3],tt[2],We[3],We[2],We[0]-tt[0]),tt.point=[0,0];var Dt=Ur(Be[0].v[0],Be[2].v[0],Be[1].v[0]),Ht=Ur(Be[0].v[0],Be[1].v[0],Be[2].v[0]),rr=E-Dt;Be[2].point[1]=0,Be[0].point[0]=-(Be[1].point[0]=Be[0].v[0]/2);var dr=[Be[2].point[0]=Be[0].point[0]+Be[2].v[0]*o(Dt),2*(Be[0].point[1]=Be[1].point[1]=Be[2].v[0]*_(Dt))];function Sr(Or,jr){var ii=_(jr),Li=o(jr),un=new Array(3),sn;for(sn=0;sn<3;++sn){var In=Be[sn];if(un[sn]=Wr(jr-In[1],In[3],In[2],Li,ii,Or-In[0]),!un[sn][0])return In.point;un[sn][1]=dt(un[sn][1]-In.v[1])}var Kn=dr.slice();for(sn=0;sn<3;++sn){var Ta=sn==2?0:sn+1,fa=Ur(Be[sn].v[0],un[sn][0],un[Ta][0]);un[sn][1]<0&&(fa=-fa),sn?sn==1?(fa=Ht-fa,Kn[0]-=un[sn][0]*o(fa),Kn[1]-=un[sn][0]*_(fa)):(fa=rr-fa,Kn[0]+=un[sn][0]*o(fa),Kn[1]+=un[sn][0]*_(fa)):(Kn[0]+=un[sn][0]*o(fa),Kn[1]-=un[sn][0]*_(fa))}return Kn[0]/=3,Kn[1]/=3,Kn}return Sr}function Je(ve){return ve[0]*=T,ve[1]*=T,ve}function je(){return $e([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function $e(ve,be,Re){var Be=t.geoCentroid({type:"MultiPoint",coordinates:[ve,be,Re]}),tt=[-Be[0],-Be[1]],We=t.geoRotation(tt),it=Ge(Je(We(ve)),Je(We(be)),Je(We(Re)));it.invert=st(it);var Dt=t.geoProjection(it).rotate(tt),Ht=Dt.center;return delete Dt.rotate,Dt.center=function(rr){return arguments.length?Ht(We(rr)):We.invert(Ht())},Dt.clipAngle(90)}function wt(ve,be){var Re=G(1-_(be));return[2/M*ve*Re,M*(1-Re)]}wt.invert=function(ve,be){var Re=(Re=be/M-1)*Re;return[Re>0?ve*G(E/Re)/2:0,O(1-Re)]};function Ie(){return t.geoProjection(wt).scale(95.6464).center([0,30])}function xe(ve){var be=b(ve);function Re(Be,tt){return[Be,(Be?Be/_(Be):1)*(_(tt)*o(Be)-be*o(tt))]}return Re.invert=be?function(Be,tt){Be&&(tt*=_(Be)/Be);var We=o(Be);return[Be,2*a(G(We*We+be*be-tt*tt)-We,be-tt)]}:function(Be,tt){return[Be,O(Be?tt*b(Be)/Be:tt)]},Re}function Ce(){return Ut(xe).scale(249.828).clipAngle(90)}var vt=G(3);function nr(ve,be){return[vt*ve*(2*o(2*be/3)-1)/M,vt*M*_(be/3)]}nr.invert=function(ve,be){var Re=3*O(be/(vt*M));return[M*ve/(vt*(2*o(2*Re/3)-1)),Re]};function ir(){return t.geoProjection(nr).scale(156.19)}function pr(ve){var be=o(ve);function Re(Be,tt){return[Be*be,_(tt)/be]}return Re.invert=function(Be,tt){return[Be/be,O(tt*be)]},Re}function oi(){return Ut(pr).parallel(38.58).scale(195.044)}function di(ve){var be=o(ve);function Re(Be,tt){return[Be*be,(1+be)*b(tt/2)]}return Re.invert=function(Be,tt){return[Be/be,i(tt/(1+be))*2]},Re}function Jr(){return Ut(di).scale(124.75)}function fi(ve,be){var Re=G(8/(3*E));return[Re*ve*(1-n(be)/E),Re*be]}fi.invert=function(ve,be){var Re=G(8/(3*E)),Be=be/Re;return[ve/(Re*(1-n(Be)/E)),Be]};function Hi(){return t.geoProjection(fi).scale(165.664)}function Pn(ve,be){var Re=G(4-3*_(n(be)));return[2/G(6*E)*ve*Re,v(be)*G(2*E/3)*(2-Re)]}Pn.invert=function(ve,be){var Re=2-n(be)/G(2*E/3);return[ve*G(6*E)/(2*Re),v(be)*O((4-Re*Re)/3)]};function wn(){return t.geoProjection(Pn).scale(165.664)}function pn(ve,be){var Re=G(E*(4+E));return[2/Re*ve*(1+G(1-4*be*be/(E*E))),4/Re*be]}pn.invert=function(ve,be){var Re=G(E*(4+E))/2;return[ve*Re/(1+G(1-be*be*(4+E)/(4*E))),be*Re/2]};function Vn(){return t.geoProjection(pn).scale(180.739)}function kn(ve,be){var Re=(2+A)*_(be);be/=2;for(var Be=0,tt=1/0;Be<10&&n(tt)>p;Be++){var We=o(be);be-=tt=(be+_(be)*(We+2)-Re)/(2*We*(1+We))}return[2/G(E*(4+E))*ve*(1+o(be)),2*G(E/(4+E))*_(be)]}kn.invert=function(ve,be){var Re=be*G((4+E)/E)/2,Be=O(Re),tt=o(Be);return[ve/(2/G(E*(4+E))*(1+tt)),O((Be+Re*(tt+2))/(2+A))]};function ea(){return t.geoProjection(kn).scale(180.739)}function ua(ve,be){return[ve*(1+o(be))/G(2+E),2*be/G(2+E)]}ua.invert=function(ve,be){var Re=G(2+E),Be=be*Re/2;return[Re*ve/(1+o(Be)),Be]};function Vt(){return t.geoProjection(ua).scale(173.044)}function _t(ve,be){for(var Re=(1+A)*_(be),Be=0,tt=1/0;Be<10&&n(tt)>p;Be++)be-=tt=(be+_(be)-Re)/(1+o(be));return Re=G(2+E),[ve*(1+o(be))/Re,2*be/Re]}_t.invert=function(ve,be){var Re=1+A,Be=G(Re/2);return[ve*2*Be/(1+o(be*=Be)),O((be+_(be))/Re)]};function tr(){return t.geoProjection(_t).scale(173.044)}var ar=3+2*k;function Er(ve,be){var Re=_(ve/=2),Be=o(ve),tt=G(o(be)),We=o(be/=2),it=_(be)/(We+k*Be*tt),Dt=G(2/(1+it*it)),Ht=G((k*We+(Be+Re)*tt)/(k*We+(Be-Re)*tt));return[ar*(Dt*(Ht-1/Ht)-2*u(Ht)),ar*(Dt*it*(Ht+1/Ht)-2*i(it))]}Er.invert=function(ve,be){if(!(We=Se.invert(ve/1.2,be*1.065)))return null;var Re=We[0],Be=We[1],tt=20,We;ve/=ar,be/=ar;do{var it=Re/2,Dt=Be/2,Ht=_(it),rr=o(it),dr=_(Dt),Sr=o(Dt),Or=o(Be),jr=G(Or),ii=dr/(Sr+k*rr*jr),Li=ii*ii,un=G(2/(1+Li)),sn=k*Sr+(rr+Ht)*jr,In=k*Sr+(rr-Ht)*jr,Kn=sn/In,Ta=G(Kn),fa=Ta-1/Ta,$a=Ta+1/Ta,ko=un*fa-2*u(Ta)-ve,Qa=un*ii*$a-2*i(ii)-be,mo=dr&&x*jr*Ht*Li/dr,Bo=(k*rr*Sr+jr)/(2*(Sr+k*rr*jr)*(Sr+k*rr*jr)*jr),Is=-.5*ii*un*un*un,As=Is*mo,wo=Is*Bo,To=(To=2*Sr+k*jr*(rr-Ht))*To*Ta,dl=(k*rr*Sr*jr+Or)/To,Ul=-(k*Ht*dr)/(jr*To),Lu=fa*As-2*dl/Ta+un*(dl+dl/Kn),au=fa*wo-2*Ul/Ta+un*(Ul+Ul/Kn),$s=ii*$a*As-2*mo/(1+Li)+un*$a*mo+un*ii*(dl-dl/Kn),Ql=ii*$a*wo-2*Bo/(1+Li)+un*$a*Bo+un*ii*(Ul-Ul/Kn),dc=au*$s-Ql*Lu;if(!dc)break;var Al=(Qa*au-ko*Ql)/dc,Sl=(ko*$s-Qa*Lu)/dc;Re-=Al,Be=c(-A,f(A,Be-Sl))}while((n(Al)>p||n(Sl)>p)&&--tt>0);return n(n(Be)-A)Be){var Sr=G(dr),Or=a(rr,Ht),jr=Re*d(Or/Re),ii=Or-jr,Li=ve*o(ii),un=(ve*_(ii)-ii*_(Li))/(A-Li),sn=Wa(ii,un),In=(E-ve)/Fa(sn,Li,E);Ht=Sr;var Kn=50,Ta;do Ht-=Ta=(ve+Fa(sn,Li,Ht)*In-Sr)/(sn(Ht)*In);while(n(Ta)>p&&--Kn>0);rr=ii*_(Ht),HtBe){var Ht=G(Dt),rr=a(it,We),dr=Re*d(rr/Re),Sr=rr-dr;We=Ht*o(Sr),it=Ht*_(Sr);for(var Or=We-A,jr=_(We),ii=it/jr,Li=Wep||n(ii)>p)&&--Li>0);return[Sr,Or]},Ht}var Wn=da(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ga(){return t.geoProjection(Wn).scale(149.995)}var vo=da(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function jn(){return t.geoProjection(vo).scale(153.93)}var St=da(5/6*E,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Cr(){return t.geoProjection(St).scale(130.945)}function Qr(ve,be){var Re=ve*ve,Be=be*be;return[ve*(1-.162388*Be)*(.87-952426e-9*Re*Re),be*(1+Be/12)]}Qr.invert=function(ve,be){var Re=ve,Be=be,tt=50,We;do{var it=Be*Be;Be-=We=(Be*(1+it/12)-be)/(1+it/4)}while(n(We)>p&&--tt>0);tt=50,ve/=1-.162388*it;do{var Dt=(Dt=Re*Re)*Dt;Re-=We=(Re*(.87-952426e-9*Dt)-ve)/(.87-.00476213*Dt)}while(n(We)>p&&--tt>0);return[Re,Be]};function pi(){return t.geoProjection(Qr).scale(131.747)}var fn=da(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Sn(){return t.geoProjection(fn).scale(131.087)}function En(ve){var be=ve(A,0)[0]-ve(-A,0)[0];function Re(Be,tt){var We=Be>0?-.5:.5,it=ve(Be+We*E,tt);return it[0]-=We*be,it}return ve.invert&&(Re.invert=function(Be,tt){var We=Be>0?-.5:.5,it=ve.invert(Be+We*be,tt),Dt=it[0]-We*E;return Dt<-E?Dt+=2*E:Dt>E&&(Dt-=2*E),it[0]=Dt,it}),Re}function ki(ve,be){var Re=v(ve),Be=v(be),tt=o(be),We=o(ve)*tt,it=_(ve)*tt,Dt=_(Be*be);ve=n(a(it,Dt)),be=O(We),n(ve-A)>p&&(ve%=A);var Ht=_n(ve>E/4?A-ve:ve,be);return ve>E/4&&(Dt=Ht[0],Ht[0]=-Ht[1],Ht[1]=-Dt),Ht[0]*=Re,Ht[1]*=-Be,Ht}ki.invert=function(ve,be){n(ve)>1&&(ve=v(ve)*2-ve),n(be)>1&&(be=v(be)*2-be);var Re=v(ve),Be=v(be),tt=-Re*ve,We=-Be*be,it=We/tt<1,Dt=ya(it?We:tt,it?tt:We),Ht=Dt[0],rr=Dt[1],dr=o(rr);return it&&(Ht=-A-Ht),[Re*(a(_(Ht)*dr,-_(rr))+E),Be*O(o(Ht)*dr)]};function _n(ve,be){if(be===A)return[0,0];var Re=_(be),Be=Re*Re,tt=Be*Be,We=1+tt,it=1+3*tt,Dt=1-tt,Ht=O(1/G(We)),rr=Dt+Be*We*Ht,dr=(1-Re)/rr,Sr=G(dr),Or=dr*We,jr=G(Or),ii=Sr*Dt,Li,un;if(ve===0)return[0,-(ii+Be*jr)];var sn=o(be),In=1/sn,Kn=2*Re*sn,Ta=(-3*Be+Ht*it)*Kn,fa=(-rr*sn-(1-Re)*Ta)/(rr*rr),$a=.5*fa/Sr,ko=Dt*$a-2*Be*Sr*Kn,Qa=Be*We*fa+dr*it*Kn,mo=-In*Kn,Bo=-In*Qa,Is=-2*In*ko,As=4*ve/E,wo;if(ve>.222*E||be.175*E){if(Li=(ii+Be*G(Or*(1+tt)-ii*ii))/(1+tt),ve>E/4)return[Li,Li];var To=Li,dl=.5*Li;Li=.5*(dl+To),un=50;do{var Ul=G(Or-Li*Li),Lu=Li*(Is+mo*Ul)+Bo*O(Li/jr)-As;if(!Lu)break;Lu<0?dl=Li:To=Li,Li=.5*(dl+To)}while(n(To-dl)>p&&--un>0)}else{Li=p,un=25;do{var au=Li*Li,$s=G(Or-au),Ql=Is+mo*$s,dc=Li*Ql+Bo*O(Li/jr)-As,Al=Ql+(Bo-mo*au)/$s;Li-=wo=$s?dc/Al:0}while(n(wo)>p&&--un>0)}return[Li,-ii-Be*G(Or-Li*Li)]}function ya(ve,be){for(var Re=0,Be=1,tt=.5,We=50;;){var it=tt*tt,Dt=G(tt),Ht=O(1/G(1+it)),rr=1-it+tt*(1+it)*Ht,dr=(1-Dt)/rr,Sr=G(dr),Or=dr*(1+it),jr=Sr*(1-it),ii=Or-ve*ve,Li=G(ii),un=be+jr+tt*Li;if(n(Be-Re)0?Re=tt:Be=tt,tt=.5*(Re+Be)}if(!We)return null;var sn=O(Dt),In=o(sn),Kn=1/In,Ta=2*Dt*In,fa=(-3*tt+Ht*(1+3*it))*Ta,$a=(-rr*In-(1-Dt)*fa)/(rr*rr),ko=.5*$a/Sr,Qa=(1-it)*ko-2*tt*Sr*Ta,mo=-2*Kn*Qa,Bo=-Kn*Ta,Is=-Kn*(tt*(1+it)*$a+dr*(1+3*it)*Ta);return[E/4*(ve*(mo+Bo*Li)+Is*O(ve/G(Or))),sn]}function Jn(){return t.geoProjection(En(ki)).scale(239.75)}function Ma(ve,be,Re){var Be,tt,We;return ve?(Be=_o(ve,Re),be?(tt=_o(be,1-Re),We=tt[1]*tt[1]+Re*Be[0]*Be[0]*tt[0]*tt[0],[[Be[0]*tt[2]/We,Be[1]*Be[2]*tt[0]*tt[1]/We],[Be[1]*tt[1]/We,-Be[0]*Be[2]*tt[0]*tt[2]/We],[Be[2]*tt[1]*tt[2]/We,-Re*Be[0]*Be[1]*tt[0]/We]]):[[Be[0],0],[Be[1],0],[Be[2],0]]):(tt=_o(be,1-Re),[[0,tt[0]/tt[1]],[1/tt[1],0],[tt[2]/tt[1],0]])}function _o(ve,be){var Re,Be,tt,We,it;if(be=1-p)return Re=(1-be)/4,Be=N(ve),We=Z(ve),tt=1/Be,it=Be*H(ve),[We+Re*(it-ve)/(Be*Be),tt-Re*We*tt*(it-ve),tt+Re*We*tt*(it+ve),2*i(s(ve))-A+Re*(it-ve)/Be];var Dt=[1,0,0,0,0,0,0,0,0],Ht=[G(be),0,0,0,0,0,0,0,0],rr=0;for(Be=G(1-be),it=1;n(Ht[rr]/Dt[rr])>p&&rr<8;)Re=Dt[rr++],Ht[rr]=(Re-Be)/2,Dt[rr]=(Re+Be)/2,Be=G(Re*Be),it*=2;tt=it*Dt[rr]*ve;do We=Ht[rr]*_(Be=tt)/Dt[rr],tt=(O(We)+tt)/2;while(--rr);return[_(tt),We=o(tt),We/o(tt-Be),tt]}function No(ve,be,Re){var Be=n(ve),tt=n(be),We=H(tt);if(Be){var it=1/_(Be),Dt=1/(b(Be)*b(Be)),Ht=-(Dt+Re*(We*We*it*it)-1+Re),rr=(Re-1)*Dt,dr=(-Ht+G(Ht*Ht-4*rr))/2;return[po(i(1/G(dr)),Re)*v(ve),po(i(G((dr/Dt-1)/Re)),1-Re)*v(be)]}return[0,po(i(We),1-Re)*v(be)]}function po(ve,be){if(!be)return ve;if(be===1)return u(b(ve/2+L));for(var Re=1,Be=G(1-be),tt=G(be),We=0;n(tt)>p;We++){if(ve%E){var it=i(Be*b(ve)/Re);it<0&&(it+=E),ve+=it+~~(ve/E)*E}else ve+=ve;tt=(Re+Be)/2,Be=G(Re*Be),tt=((Re=tt)-Be)/2}return ve/(h(2,We)*Re)}function Lo(ve,be){var Re=(k-1)/(k+1),Be=G(1-Re*Re),tt=po(A,Be*Be),We=-1,it=u(b(E/4+n(be)/2)),Dt=s(We*it)/G(Re),Ht=Co(Dt*o(We*ve),Dt*_(We*ve)),rr=No(Ht[0],Ht[1],Be*Be);return[-rr[1],(be>=0?1:-1)*(.5*tt-rr[0])]}function Co(ve,be){var Re=ve*ve,Be=be+1,tt=1-Re-be*be;return[.5*((ve>=0?A:-A)-a(tt,2*ve)),-.25*u(tt*tt+4*Re)+.5*u(Be*Be+Re)]}function Fs(ve,be){var Re=be[0]*be[0]+be[1]*be[1];return[(ve[0]*be[0]+ve[1]*be[1])/Re,(ve[1]*be[0]-ve[0]*be[1])/Re]}Lo.invert=function(ve,be){var Re=(k-1)/(k+1),Be=G(1-Re*Re),tt=po(A,Be*Be),We=-1,it=Ma(.5*tt-be,-ve,Be*Be),Dt=Fs(it[0],it[1]),Ht=a(Dt[1],Dt[0])/We;return[Ht,2*i(s(.5/We*u(Re*Dt[0]*Dt[0]+Re*Dt[1]*Dt[1])))-A]};function zs(){return t.geoProjection(En(Lo)).scale(151.496)}function ul(ve){var be=_(ve),Re=o(ve),Be=cl(ve);Be.invert=cl(-ve);function tt(We,it){var Dt=Be(We,it);We=Dt[0],it=Dt[1];var Ht=_(it),rr=o(it),dr=o(We),Sr=V(be*Ht+Re*rr*dr),Or=_(Sr),jr=n(Or)>p?Sr/Or:1;return[jr*Re*_(We),(n(We)>A?jr:-jr)*(be*rr-Re*Ht*dr)]}return tt.invert=function(We,it){var Dt=G(We*We+it*it),Ht=-_(Dt),rr=o(Dt),dr=Dt*rr,Sr=-it*Ht,Or=Dt*be,jr=G(dr*dr+Sr*Sr-Or*Or),ii=a(dr*Or+Sr*jr,Sr*Or-dr*jr),Li=(Dt>A?-1:1)*a(We*Ht,Dt*o(ii)*rr+it*_(ii)*Ht);return Be.invert(Li,ii)},tt}function cl(ve){var be=_(ve),Re=o(ve);return function(Be,tt){var We=o(tt),it=o(Be)*We,Dt=_(Be)*We,Ht=_(tt);return[a(Dt,it*Re-Ht*be),O(Ht*Re+it*be)]}}function zl(){var ve=0,be=t.geoProjectionMutator(ul),Re=be(ve),Be=Re.rotate,tt=Re.stream,We=t.geoCircle();return Re.parallel=function(it){if(!arguments.length)return ve*P;var Dt=Re.rotate();return be(ve=it*T).rotate(Dt)},Re.rotate=function(it){return arguments.length?(Be.call(Re,[it[0],it[1]-ve*P]),We.center([-it[0],-it[1]]),Re):(it=Be.call(Re),it[1]+=ve*P,it)},Re.stream=function(it){return it=tt(it),it.sphere=function(){it.polygonStart();var Dt=.01,Ht=We.radius(90-Dt)().coordinates[0],rr=Ht.length-1,dr=-1,Sr;for(it.lineStart();++dr=0;)it.point((Sr=Ht[dr])[0],Sr[1]);it.lineEnd(),it.polygonEnd()},it},Re.scale(79.4187).parallel(45).clipAngle(180-.001)}var cs=3,nl=O(1-1/cs)*P,Ss=pr(0);function fl(ve){var be=nl*T,Re=wt(E,be)[0]-wt(-E,be)[0],Be=Ss(0,be)[1],tt=wt(0,be)[1],We=M-tt,it=g/ve,Dt=4/g,Ht=Be+We*We*4/g;function rr(dr,Sr){var Or,jr=n(Sr);if(jr>be){var ii=f(ve-1,c(0,l((dr+E)/it)));dr+=E*(ve-1)/ve-ii*it,Or=wt(dr,jr),Or[0]=Or[0]*g/Re-g*(ve-1)/(2*ve)+ii*g/ve,Or[1]=Be+(Or[1]-tt)*4*We/g,Sr<0&&(Or[1]=-Or[1])}else Or=Ss(dr,Sr);return Or[0]*=Dt,Or[1]/=Ht,Or}return rr.invert=function(dr,Sr){dr/=Dt,Sr*=Ht;var Or=n(Sr);if(Or>Be){var jr=f(ve-1,c(0,l((dr+E)/it)));dr=(dr+E*(ve-1)/ve-jr*it)*Re/g;var ii=wt.invert(dr,.25*(Or-Be)*g/We+tt);return ii[0]-=E*(ve-1)/ve-jr*it,Sr<0&&(ii[1]=-ii[1]),ii}return Ss.invert(dr,Sr)},rr}function Js(ve,be){return[ve,be&1?90-p:nl]}function Os(ve,be){return[ve,be&1?-90+p:-nl]}function Io(ve){return[ve[0]*(1-p),ve[1]]}function us(ve){var be=[].concat(r.range(-180,180+ve/2,ve).map(Js),r.range(180,-180-ve/2,-ve).map(Os));return{type:"Polygon",coordinates:[ve===180?be.map(Io):be]}}function Zl(){var ve=4,be=t.geoProjectionMutator(fl),Re=be(ve),Be=Re.stream;return Re.lobes=function(tt){return arguments.length?be(ve=+tt):ve},Re.stream=function(tt){var We=Re.rotate(),it=Be(tt),Dt=(Re.rotate([0,0]),Be(tt));return Re.rotate(We),it.sphere=function(){t.geoStream(us(180/ve),Dt)},it},Re.scale(239.75)}function Su(ve){var be=1+ve,Re=_(1/be),Be=O(Re),tt=2*G(E/(We=E+4*Be*be)),We,it=.5*tt*(be+G(ve*(2+ve))),Dt=ve*ve,Ht=be*be;function rr(dr,Sr){var Or=1-_(Sr),jr,ii;if(Or&&Or<2){var Li=A-Sr,un=25,sn;do{var In=_(Li),Kn=o(Li),Ta=Be+a(In,be-Kn),fa=1+Ht-2*be*Kn;Li-=sn=(Li-Dt*Be-be*In+fa*Ta-.5*Or*We)/(2*be*In*Ta)}while(n(sn)>C&&--un>0);jr=tt*G(fa),ii=dr*Ta/E}else jr=tt*(ve+Or),ii=dr*Be/E;return[jr*_(ii),it-jr*o(ii)]}return rr.invert=function(dr,Sr){var Or=dr*dr+(Sr-=it)*Sr,jr=(1+Ht-Or/(tt*tt))/(2*be),ii=V(jr),Li=_(ii),un=Be+a(Li,be-jr);return[O(dr/G(Or))*E/un,O(1-2*(ii-Dt*Be-be*Li+(1+Ht-2*be*jr)*un)/We)]},rr}function nc(){var ve=1,be=t.geoProjectionMutator(Su),Re=be(ve);return Re.ratio=function(Be){return arguments.length?be(ve=+Be):ve},Re.scale(167.774).center([0,18.67])}var ws=.7109889596207567,Fn=.0528035274542;function _a(ve,be){return be>-ws?(ve=sr(ve,be),ve[1]+=Fn,ve):Ft(ve,be)}_a.invert=function(ve,be){return be>-ws?sr.invert(ve,be-Fn):Ft.invert(ve,be)};function Vu(){return t.geoProjection(_a).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ol(ve,be){return n(be)>ws?(ve=sr(ve,be),ve[1]-=be>0?Fn:-Fn,ve):Ft(ve,be)}Ol.invert=function(ve,be){return n(be)>ws?sr.invert(ve,be+(be>0?Fn:-Fn)):Ft.invert(ve,be)};function xo(){return t.geoProjection(Ol).scale(152.63)}function Yl(ve,be,Re,Be){var tt=G(4*E/(2*Re+(1+ve-be/2)*_(2*Re)+(ve+be)/2*_(4*Re)+be/2*_(6*Re))),We=G(Be*_(Re)*G((1+ve*o(2*Re)+be*o(4*Re))/(1+ve+be))),it=Re*Ht(1);function Dt(Sr){return G(1+ve*o(2*Sr)+be*o(4*Sr))}function Ht(Sr){var Or=Sr*Re;return(2*Or+(1+ve-be/2)*_(2*Or)+(ve+be)/2*_(4*Or)+be/2*_(6*Or))/Re}function rr(Sr){return Dt(Sr)*_(Sr)}var dr=function(Sr,Or){var jr=Re*Wt(Ht,it*_(Or)/Re,Or/E);isNaN(jr)&&(jr=Re*v(Or));var ii=tt*Dt(jr);return[ii*We*Sr/E*o(jr),ii/We*_(jr)]};return dr.invert=function(Sr,Or){var jr=Wt(rr,Or*We/tt);return[Sr*E/(o(jr)*tt*We*Dt(jr)),O(Re*Ht(jr/Re)/it)]},Re===0&&(tt=G(Be/E),dr=function(Sr,Or){return[Sr*tt,_(Or)/tt]},dr.invert=function(Sr,Or){return[Sr/tt,O(Or*tt)]}),dr}function Us(){var ve=1,be=0,Re=45*T,Be=2,tt=t.geoProjectionMutator(Yl),We=tt(ve,be,Re,Be);return We.a=function(it){return arguments.length?tt(ve=+it,be,Re,Be):ve},We.b=function(it){return arguments.length?tt(ve,be=+it,Re,Be):be},We.psiMax=function(it){return arguments.length?tt(ve,be,Re=+it*T,Be):Re*P},We.ratio=function(it){return arguments.length?tt(ve,be,Re,Be=+it):Be},We.scale(180.739)}function Hl(ve,be,Re,Be,tt,We,it,Dt,Ht,rr,dr){if(dr.nanEncountered)return NaN;var Sr,Or,jr,ii,Li,un,sn,In,Kn,Ta;if(Sr=Re-be,Or=ve(be+Sr*.25),jr=ve(Re-Sr*.25),isNaN(Or)){dr.nanEncountered=!0;return}if(isNaN(jr)){dr.nanEncountered=!0;return}return ii=Sr*(Be+4*Or+tt)/12,Li=Sr*(tt+4*jr+We)/12,un=ii+Li,Ta=(un-it)/15,rr>Ht?(dr.maxDepthCount++,un+Ta):Math.abs(Ta)>1;do Ht[un]>jr?Li=un:ii=un,un=ii+Li>>1;while(un>ii);var sn=Ht[un+1]-Ht[un];return sn&&(sn=(jr-Ht[un+1])/sn),(un+1+sn)/it}var Sr=2*dr(1)/E*We/Re,Or=function(jr,ii){var Li=dr(n(_(ii))),un=Be(Li)*jr;return Li/=Sr,[un,ii>=0?Li:-Li]};return Or.invert=function(jr,ii){var Li;return ii*=Sr,n(ii)<1&&(Li=v(ii)*O(tt(n(ii))*We)),[jr/Be(n(ii)),Li]},Or}function Oo(){var ve=0,be=2.5,Re=1.183136,Be=t.geoProjectionMutator(aa),tt=Be(ve,be,Re);return tt.alpha=function(We){return arguments.length?Be(ve=+We,be,Re):ve},tt.k=function(We){return arguments.length?Be(ve,be=+We,Re):be},tt.gamma=function(We){return arguments.length?Be(ve,be,Re=+We):Re},tt.scale(152.63)}function qo(ve,be){return n(ve[0]-be[0])=0;--Ht)Re=ve[1][Ht],Be=Re[0][0],tt=Re[0][1],We=Re[1][1],it=Re[2][0],Dt=Re[2][1],be.push(ql([[it-p,Dt-p],[it-p,We+p],[Be+p,We+p],[Be+p,tt-p]],30));return{type:"Polygon",coordinates:[r.merge(be)]}}function Do(ve,be,Re){var Be,tt;function We(Ht,rr){for(var dr=rr<0?-1:1,Sr=be[+(rr<0)],Or=0,jr=Sr.length-1;OrSr[Or][2][0];++Or);var ii=ve(Ht-Sr[Or][1][0],rr);return ii[0]+=ve(Sr[Or][1][0],dr*rr>dr*Sr[Or][0][1]?Sr[Or][0][1]:rr)[0],ii}Re?We.invert=Re(We):ve.invert&&(We.invert=function(Ht,rr){for(var dr=tt[+(rr<0)],Sr=be[+(rr<0)],Or=0,jr=dr.length;Orii&&(Li=jr,jr=ii,ii=Li),[[Sr,jr],[Or,ii]]})}),it):be.map(function(rr){return rr.map(function(dr){return[[dr[0][0]*P,dr[0][1]*P],[dr[1][0]*P,dr[1][1]*P],[dr[2][0]*P,dr[2][1]*P]]})})},be!=null&&it.lobes(be),it}var rf=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Uf(){return Do(Et,rf).scale(160.857)}var ml=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Zc(){return Do(Ol,ml).scale(152.63)}var Kl=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function qs(){return Do(sr,Kl).scale(169.529)}var yu=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function oc(){return Do(sr,yu).scale(169.529).rotate([20,0])}var Cf=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function sc(){return Do(_a,Cf,st).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Nh=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function kf(){return Do(Ft,Nh).scale(152.63).rotate([-20,0])}function fs(ve,be){return[3/g*ve*G(E*E/3-be*be),be]}fs.invert=function(ve,be){return[g/3*ve/G(E*E/3-be*be),be]};function nf(){return t.geoProjection(fs).scale(158.837)}function Vf(ve){function be(Re,Be){if(n(n(Be)-A)2)return null;Re/=2,Be/=2;var We=Re*Re,it=Be*Be,Dt=2*Be/(1+We+it);return Dt=h((1+Dt)/(1-Dt),1/ve),[a(2*Re,1-We-it)/ve,O((Dt-1)/(Dt+1))]},be}function Jl(){var ve=.5,be=t.geoProjectionMutator(Vf),Re=be(ve);return Re.spacing=function(Be){return arguments.length?be(ve=+Be):ve},Re.scale(124.75)}var hl=E/k;function lc(ve,be){return[ve*(1+G(o(be)))/2,be/(o(be/2)*o(ve/6))]}lc.invert=function(ve,be){var Re=n(ve),Be=n(be),tt=p,We=A;Bep||n(un)>p)&&--tt>0);return tt&&[Re,Be]};function js(){return t.geoProjection(Cs).scale(139.98)}function Go(ve,be){return[_(ve)/o(be),b(be)*o(ve)]}Go.invert=function(ve,be){var Re=ve*ve,Be=be*be,tt=Be+1,We=Re+tt,it=ve?x*G((We-G(We*We-4*Re))/Re):1/G(tt);return[O(ve*it),v(be)*V(it)]};function gs(){return t.geoProjection(Go).scale(144.049).clipAngle(90-.001)}function uc(ve){var be=o(ve),Re=b(L+ve/2);function Be(tt,We){var it=We-ve,Dt=n(it)=0;)dr=ve[rr],Sr=dr[0]+Dt*(jr=Sr)-Ht*Or,Or=dr[1]+Dt*Or+Ht*jr;return Sr=Dt*(jr=Sr)-Ht*Or,Or=Dt*Or+Ht*jr,[Sr,Or]}return Re.invert=function(Be,tt){var We=20,it=Be,Dt=tt;do{for(var Ht=be,rr=ve[Ht],dr=rr[0],Sr=rr[1],Or=0,jr=0,ii;--Ht>=0;)rr=ve[Ht],Or=dr+it*(ii=Or)-Dt*jr,jr=Sr+it*jr+Dt*ii,dr=rr[0]+it*(ii=dr)-Dt*Sr,Sr=rr[1]+it*Sr+Dt*ii;Or=dr+it*(ii=Or)-Dt*jr,jr=Sr+it*jr+Dt*ii,dr=it*(ii=dr)-Dt*Sr-Be,Sr=it*Sr+Dt*ii-tt;var Li=Or*Or+jr*jr,un,sn;it-=un=(dr*Or+Sr*jr)/Li,Dt-=sn=(Sr*Or-dr*jr)/Li}while(n(un)+n(sn)>p*p&&--We>0);if(We){var In=G(it*it+Dt*Dt),Kn=2*i(In*.5),Ta=_(Kn);return[a(it*Ta,In*o(Kn)),In?O(Dt*Ta/In):0]}},Re}var Po=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],od=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Yo=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Pa=[[.9245,0],[0,0],[.01943,0]],af=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Hu(){return Bl(Po,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function wl(){return Bl(od,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Gf(){return Bl(Yo,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ic(){return Bl(Pa,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function mf(){return Bl(af,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Bl(ve,be){var Re=t.geoProjection(ad(ve)).rotate(be).clipAngle(90),Be=t.geoRotation(be),tt=Re.center;return delete Re.rotate,Re.center=function(We){return arguments.length?tt(Be(We)):Be.invert(tt())},Re}var xh=G(6),Qf=G(7);function yf(ve,be){var Re=O(7*_(be)/(3*xh));return[xh*ve*(2*o(2*Re/3)-1)/Qf,9*_(Re/3)/Qf]}yf.invert=function(ve,be){var Re=3*O(be*Qf/9);return[ve*Qf/(xh*(2*o(2*Re/3)-1)),O(_(Re)*3*xh/7)]};function Yc(){return t.geoProjection(yf).scale(164.859)}function eh(ve,be){for(var Re=(1+x)*_(be),Be=be,tt=0,We;tt<25&&(Be-=We=(_(Be/2)+_(Be)-Re)/(.5*o(Be/2)+o(Be)),!(n(We)C&&--Be>0);return We=Re*Re,it=We*We,Dt=We*it,[ve/(.84719-.13063*We+Dt*Dt*(-.04515+.05494*We-.02326*it+.00331*Dt)),Re]};function of(){return t.geoProjection(cc).scale(175.295)}function Nl(ve,be){return[ve*(1+o(be))/2,2*(be-b(be/2))]}Nl.invert=function(ve,be){for(var Re=be/2,Be=0,tt=1/0;Be<10&&n(tt)>p;++Be){var We=o(be/2);be-=tt=(be-b(be/2)-Re)/(1-.5/(We*We))}return[2*ve/(1+o(be)),be]};function Kc(){return t.geoProjection(Nl).scale(152.63)}var Rc=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function ms(){return Do(Ze(1/0),Rc).rotate([20,0]).scale(152.63)}function jf(ve,be){var Re=_(be),Be=o(be),tt=v(ve);if(ve===0||n(be)===A)return[0,be];if(be===0)return[ve,0];if(n(ve)===A)return[ve*Be,A*Re];var We=E/(2*ve)-2*ve/E,it=2*be/E,Dt=(1-it*it)/(Re-it),Ht=We*We,rr=Dt*Dt,dr=1+Ht/rr,Sr=1+rr/Ht,Or=(We*Re/Dt-We/2)/dr,jr=(rr*Re/Ht+Dt/2)/Sr,ii=Or*Or+Be*Be/dr,Li=jr*jr-(rr*Re*Re/Ht+Dt*Re-1)/Sr;return[A*(Or+G(ii)*tt),A*(jr+G(Li<0?0:Li)*v(-be*We)*tt)]}jf.invert=function(ve,be){ve/=A,be/=A;var Re=ve*ve,Be=be*be,tt=Re+Be,We=E*E;return[ve?(tt-1+G((1-tt)*(1-tt)+4*Re))/(2*ve)*A:0,Wt(function(it){return tt*(E*_(it)-2*it)*E+4*it*it*(be-_(it))+2*E*it-We*be},0)]};function Uh(){return t.geoProjection(jf).scale(127.267)}var rh=1.0148,sf=.23185,bh=-.14499,Mu=.02406,ih=rh,Ws=5*sf,Eu=7*bh,Dc=9*Mu,ks=1.790857183;function bc(ve,be){var Re=be*be;return[ve,be*(rh+Re*Re*(sf+Re*(bh+Mu*Re)))]}bc.invert=function(ve,be){be>ks?be=ks:be<-ks&&(be=-ks);var Re=be,Be;do{var tt=Re*Re;Re-=Be=(Re*(rh+tt*tt*(sf+tt*(bh+Mu*tt)))-be)/(ih+tt*tt*(Ws+tt*(Eu+Dc*tt)))}while(n(Be)>p);return[ve,Re]};function hu(){return t.geoProjection(bc).scale(139.319)}function _u(ve,be){if(n(be)p&&--tt>0);return it=b(Be),[(n(be)=0;)if(Be=be[Dt],Re[0]===Be[0]&&Re[1]===Be[1]){if(We)return[We,Re];We=Re}}}function jl(ve){for(var be=ve.length,Re=[],Be=ve[be-1],tt=0;tt0?[-Be[0],0]:[180-Be[0],180])};var be=Pf.map(function(Re){return{face:Re,project:ve(Re)}});return[-1,0,0,1,0,1,4,5].forEach(function(Re,Be){var tt=be[Re];tt&&(tt.children||(tt.children=[])).push(be[Be])}),_f(be[0],function(Re,Be){return be[Re<-E/2?Be<0?6:4:Re<0?Be<0?2:0:ReBe^jr>Be&&Re<(Or-rr)*(Be-dr)/(jr-dr)+rr&&(tt=!tt)}return tt}function Wl(ve,be){var Re=be.stream,Be;if(!Re)throw new Error("invalid projection");switch(ve&&ve.type){case"Feature":Be=Zu;break;case"FeatureCollection":Be=ah;break;default:Be=Tc;break}return Be(ve,Re)}function ah(ve,be){return{type:"FeatureCollection",features:ve.features.map(function(Re){return Zu(Re,be)})}}function Zu(ve,be){return{type:"Feature",id:ve.id,properties:ve.properties,geometry:Tc(ve.geometry,be)}}function Oc(ve,be){return{type:"GeometryCollection",geometries:ve.geometries.map(function(Re){return Tc(Re,be)})}}function Tc(ve,be){if(!ve)return null;if(ve.type==="GeometryCollection")return Oc(ve,be);var Re;switch(ve.type){case"Point":Re=qc;break;case"MultiPoint":Re=qc;break;case"LineString":Re=cf;break;case"MultiLineString":Re=cf;break;case"Polygon":Re=fc;break;case"MultiPolygon":Re=fc;break;case"Sphere":Re=fc;break;default:return null}return t.geoStream(ve,be(Re)),Re.result()}var Tl=[],vu=[],qc={point:function(ve,be){Tl.push([ve,be])},result:function(){var ve=Tl.length?Tl.length<2?{type:"Point",coordinates:Tl[0]}:{type:"MultiPoint",coordinates:Tl}:null;return Tl=[],ve}},cf={lineStart:Xu,point:function(ve,be){Tl.push([ve,be])},lineEnd:function(){Tl.length&&(vu.push(Tl),Tl=[])},result:function(){var ve=vu.length?vu.length<2?{type:"LineString",coordinates:vu[0]}:{type:"MultiLineString",coordinates:vu}:null;return vu=[],ve}},fc={polygonStart:Xu,lineStart:Xu,point:function(ve,be){Tl.push([ve,be])},lineEnd:function(){var ve=Tl.length;if(ve){do Tl.push(Tl[0].slice());while(++ve<4);vu.push(Tl),Tl=[]}},polygonEnd:Xu,result:function(){if(!vu.length)return null;var ve=[],be=[];return vu.forEach(function(Re){uf(Re)?ve.push([Re]):be.push(Re)}),be.forEach(function(Re){var Be=Re[0];ve.some(function(tt){if(Xf(tt[0],Be))return tt.push(Re),!0})||ve.push([Re])}),vu=[],ve.length?ve.length>1?{type:"MultiPolygon",coordinates:ve}:{type:"Polygon",coordinates:ve[0]}:null}};function Bc(ve){var be=ve(A,0)[0]-ve(-A,0)[0];function Re(Be,tt){var We=n(Be)0?Be-E:Be+E,tt),Dt=(it[0]-it[1])*x,Ht=(it[0]+it[1])*x;if(We)return[Dt,Ht];var rr=be*x,dr=Dt>0^Ht>0?-1:1;return[dr*Dt-v(Ht)*rr,dr*Ht-v(Dt)*rr]}return ve.invert&&(Re.invert=function(Be,tt){var We=(Be+tt)*x,it=(tt-Be)*x,Dt=n(We)<.5*be&&n(it)<.5*be;if(!Dt){var Ht=be*x,rr=We>0^it>0?-1:1,dr=-rr*Be+(it>0?1:-1)*Ht,Sr=-rr*tt+(We>0?1:-1)*Ht;We=(-dr-Sr)*x,it=(dr-Sr)*x}var Or=ve.invert(We,it);return Dt||(Or[0]+=We>0?E:-E),Or}),t.geoProjection(Re).rotate([-90,-90,45]).clipAngle(180-.001)}function At(){return Bc(ki).scale(176.423)}function Xt(){return Bc(Lo).scale(111.48)}function kr(ve,be){if(!(0<=(be=+be)&&be<=20))throw new Error("invalid digits");function Re(rr){var dr=rr.length,Sr=2,Or=new Array(dr);for(Or[0]=+rr[0].toFixed(be),Or[1]=+rr[1].toFixed(be);Sr2||jr[0]!=dr[0]||jr[1]!=dr[1])&&(Sr.push(jr),dr=jr)}return Sr.length===1&&rr.length>1&&Sr.push(Re(rr[rr.length-1])),Sr}function We(rr){return rr.map(tt)}function it(rr){if(rr==null)return rr;var dr;switch(rr.type){case"GeometryCollection":dr={type:"GeometryCollection",geometries:rr.geometries.map(it)};break;case"Point":dr={type:"Point",coordinates:Re(rr.coordinates)};break;case"MultiPoint":dr={type:rr.type,coordinates:Be(rr.coordinates)};break;case"LineString":dr={type:rr.type,coordinates:tt(rr.coordinates)};break;case"MultiLineString":case"Polygon":dr={type:rr.type,coordinates:We(rr.coordinates)};break;case"MultiPolygon":dr={type:"MultiPolygon",coordinates:rr.coordinates.map(We)};break;default:return rr}return rr.bbox!=null&&(dr.bbox=rr.bbox),dr}function Dt(rr){var dr={type:"Feature",properties:rr.properties,geometry:it(rr.geometry)};return rr.id!=null&&(dr.id=rr.id),rr.bbox!=null&&(dr.bbox=rr.bbox),dr}if(ve!=null)switch(ve.type){case"Feature":return Dt(ve);case"FeatureCollection":{var Ht={type:"FeatureCollection",features:ve.features.map(Dt)};return ve.bbox!=null&&(Ht.bbox=ve.bbox),Ht}default:return it(ve)}return ve}function Ar(ve){var be=_(ve);function Re(Be,tt){var We=be?b(Be*be/2)/be:Be/2;if(!tt)return[2*We,-ve];var it=2*i(We*_(tt)),Dt=1/b(tt);return[_(it)*Dt,tt+(1-o(it))*Dt-ve]}return Re.invert=function(Be,tt){if(n(tt+=ve)p&&--Dt>0);var Or=Be*(rr=b(it)),jr=b(n(tt)0?A:-A)*(Ht+tt*(dr-it)/2+tt*tt*(dr-2*Ht+it)/2)]}Wi.invert=function(ve,be){var Re=be/A,Be=Re*90,tt=f(18,n(Be/5)),We=c(0,l(tt));do{var it=Ei[We][1],Dt=Ei[We+1][1],Ht=Ei[f(19,We+2)][1],rr=Ht-it,dr=Ht-2*Dt+it,Sr=2*(n(Re)-Dt)/rr,Or=dr/rr,jr=Sr*(1-Or*Sr*(1-2*Or*Sr));if(jr>=0||We===1){Be=(be>=0?5:-5)*(jr+tt);var ii=50,Li;do tt=f(18,n(Be)/5),We=l(tt),jr=tt-We,it=Ei[We][1],Dt=Ei[We+1][1],Ht=Ei[f(19,We+2)][1],Be-=(Li=(be>=0?A:-A)*(Dt+jr*(Ht-it)/2+jr*jr*(Ht-2*Dt+it)/2)-be)*P;while(n(Li)>C&&--ii>0);break}}while(--We>=0);var un=Ei[We][0],sn=Ei[We+1][0],In=Ei[f(19,We+2)][0];return[ve/(sn+jr*(In-un)/2+jr*jr*(In-2*sn+un)/2),Be*T]};function hn(){return t.geoProjection(Wi).scale(152.63)}function Tn(ve){function be(Re,Be){var tt=o(Be),We=(ve-1)/(ve-tt*o(Re));return[We*tt*_(Re),We*_(Be)]}return be.invert=function(Re,Be){var tt=Re*Re+Be*Be,We=G(tt),it=(ve-G(1-tt*(ve+1)/(ve-1)))/((ve-1)/We+We/(ve-1));return[a(Re*it,We*G(1-it*it)),We?O(Be*it/We):0]},be}function Bn(ve,be){var Re=Tn(ve);if(!be)return Re;var Be=o(be),tt=_(be);function We(it,Dt){var Ht=Re(it,Dt),rr=Ht[1],dr=rr*tt/(ve-1)+Be;return[Ht[0]*Be/dr,rr/dr]}return We.invert=function(it,Dt){var Ht=(ve-1)/(ve-1-Dt*tt);return Re.invert(Ht*it,Ht*Dt*Be)},We}function Zi(){var ve=2,be=0,Re=t.geoProjectionMutator(Bn),Be=Re(ve,be);return Be.distance=function(tt){return arguments.length?Re(ve=+tt,be):ve},Be.tilt=function(tt){return arguments.length?Re(ve,be=tt*T):be*P},Be.scale(432.147).clipAngle(V(1/ve)*P-1e-6)}var $i=1e-4,an=1e4,Di=-180,$n=Di+$i,ka=180,Ra=ka-$i,La=-90,Na=La+$i,Yn=90,zn=Yn-$i;function Ka(ve){return ve.length>0}function bo(ve){return Math.floor(ve*an)/an}function Xo(ve){return ve===La||ve===Yn?[0,ve]:[Di,bo(ve)]}function Ms(ve){var be=ve[0],Re=ve[1],Be=!1;return be<=$n?(be=Di,Be=!0):be>=Ra&&(be=ka,Be=!0),Re<=Na?(Re=La,Be=!0):Re>=zn&&(Re=Yn,Be=!0),Be?[be,Re]:ve}function os(ve){return ve.map(Ms)}function Ts(ve,be,Re){for(var Be=0,tt=ve.length;Be=Ra||dr<=Na||dr>=zn){We[it]=Ms(Ht);for(var Sr=it+1;Sr$n&&jrNa&&ii=Dt)break;Re.push({index:-1,polygon:be,ring:We=We.slice(Sr-1)}),We[0]=Xo(We[0][1]),it=-1,Dt=We.length}}}}function Ho(ve){var be,Re=ve.length,Be={},tt={},We,it,Dt,Ht,rr;for(be=0;be0?E-Dt:Dt)*P],rr=t.geoProjection(ve(it)).rotate(Ht),dr=t.geoRotation(Ht),Sr=rr.center;return delete rr.rotate,rr.center=function(Or){return arguments.length?Sr(dr(Or)):dr.invert(Sr())},rr.clipAngle(90)}function is(ve){var be=o(ve);function Re(Be,tt){var We=t.geoGnomonicRaw(Be,tt);return We[0]*=be,We}return Re.invert=function(Be,tt){return t.geoGnomonicRaw.invert(Be/be,tt)},Re}function $l(){return ku([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ku(ve,be){return _s(is,ve,be)}function Yu(ve){if(!(ve*=2))return t.geoAzimuthalEquidistantRaw;var be=-ve/2,Re=-be,Be=ve*ve,tt=b(Re),We=.5/_(Re);function it(Dt,Ht){var rr=V(o(Ht)*o(Dt-be)),dr=V(o(Ht)*o(Dt-Re)),Sr=Ht<0?-1:1;return rr*=rr,dr*=dr,[(rr-dr)/(2*ve),Sr*G(4*Be*dr-(Be-rr+dr)*(Be-rr+dr))/(2*ve)]}return it.invert=function(Dt,Ht){var rr=Ht*Ht,dr=o(G(rr+(Or=Dt+be)*Or)),Sr=o(G(rr+(Or=Dt+Re)*Or)),Or,jr;return[a(jr=dr-Sr,Or=(dr+Sr)*tt),(Ht<0?-1:1)*V(G(Or*Or+jr*jr)*We)]},it}function Nc(){return pu([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function pu(ve,be){return _s(Yu,ve,be)}function Uc(ve,be){if(n(be)p&&--Dt>0);return[v(ve)*(G(tt*tt+4)+tt)*E/4,A*it]};function Ku(){return t.geoProjection(hc).scale(127.16)}function ue(ve,be,Re,Be,tt){function We(it,Dt){var Ht=Re*_(Be*Dt),rr=G(1-Ht*Ht),dr=G(2/(1+rr*o(it*=tt)));return[ve*rr*dr*_(it),be*Ht*dr]}return We.invert=function(it,Dt){var Ht=it/ve,rr=Dt/be,dr=G(Ht*Ht+rr*rr),Sr=2*O(dr/2);return[a(it*b(Sr),ve*dr)/tt,dr&&O(Dt*_(Sr)/(be*Re*dr))/Be]},We}function w(ve,be,Re,Be){var tt=E/3;ve=c(ve,p),be=c(be,p),ve=f(ve,A),be=f(be,E-p),Re=c(Re,0),Re=f(Re,100-p),Be=c(Be,p);var We=Re/100+1,it=Be/100,Dt=V(We*o(tt))/tt,Ht=_(ve)/_(Dt*A),rr=be/E,dr=G(it*_(ve/2)/_(be/2)),Sr=dr/G(rr*Ht*Dt),Or=1/(dr*G(rr*Ht*Dt));return ue(Sr,Or,Ht,Dt,rr)}function B(){var ve=65*T,be=60*T,Re=20,Be=200,tt=t.geoProjectionMutator(w),We=tt(ve,be,Re,Be);return We.poleline=function(it){return arguments.length?tt(ve=+it*T,be,Re,Be):ve*P},We.parallels=function(it){return arguments.length?tt(ve,be=+it*T,Re,Be):be*P},We.inflation=function(it){return arguments.length?tt(ve,be,Re=+it,Be):Re},We.ratio=function(it){return arguments.length?tt(ve,be,Re,Be=+it):Be},We.scale(163.775)}function Q(){return B().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*E+3*G(3),le=2*G(2*E*G(3)/ee),qe=$t(le*G(3)/E,le,ee/6);function Xe(){return t.geoProjection(qe).scale(176.84)}function ot(ve,be){return[ve*G(1-3*be*be/(E*E)),be]}ot.invert=function(ve,be){return[ve/G(1-3*be*be/(E*E)),be]};function Tt(){return t.geoProjection(ot).scale(152.63)}function Kt(ve,be){var Re=o(be),Be=o(ve)*Re,tt=1-Be,We=o(ve=a(_(ve)*Re,-_(be))),it=_(ve);return Re=G(1-Be*Be),[it*Re-We*tt,-We*Re-it*tt]}Kt.invert=function(ve,be){var Re=(ve*ve+be*be)/-2,Be=G(-Re*(2+Re)),tt=be*Re+ve*Be,We=ve*Re-be*Be,it=G(We*We+tt*tt);return[a(Be*tt,it*(1+Re)),it?-O(Be*We/it):0]};function Jt(){return t.geoProjection(Kt).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function xr(ve,be){var Re=Me(ve,be);return[(Re[0]+ve/A)/2,(Re[1]+be)/2]}xr.invert=function(ve,be){var Re=ve,Be=be,tt=25;do{var We=o(Be),it=_(Be),Dt=_(2*Be),Ht=it*it,rr=We*We,dr=_(Re),Sr=o(Re/2),Or=_(Re/2),jr=Or*Or,ii=1-rr*Sr*Sr,Li=ii?V(We*Sr)*G(un=1/ii):un=0,un,sn=.5*(2*Li*We*Or+Re/A)-ve,In=.5*(Li*it+Be)-be,Kn=.5*un*(rr*jr+Li*We*Sr*Ht)+.5/A,Ta=un*(dr*Dt/4-Li*it*Or),fa=.125*un*(Dt*Or-Li*it*rr*dr),$a=.5*un*(Ht*Sr+Li*jr*We)+.5,ko=Ta*fa-$a*Kn,Qa=(In*Ta-sn*$a)/ko,mo=(sn*fa-In*Kn)/ko;Re-=Qa,Be-=mo}while((n(Qa)>p||n(mo)>p)&&--tt>0);return[Re,Be]};function Pr(){return t.geoProjection(xr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=_e,e.geoAiryRaw=oe,e.geoAitoff=ke,e.geoAitoffRaw=Me,e.geoArmadillo=ie,e.geoArmadilloRaw=me,e.geoAugust=Le,e.geoAugustRaw=Se,e.geoBaker=ge,e.geoBakerRaw=Pe,e.geoBerghaus=ce,e.geoBerghausRaw=Fe,e.geoBertin1953=Gt,e.geoBertin1953Raw=lt,e.geoBoggs=er,e.geoBoggsRaw=Et,e.geoBonne=Yt,e.geoBonneRaw=yt,e.geoBottomley=Tr,e.geoBottomleyRaw=lr,e.geoBromley=ei,e.geoBromleyRaw=Rr,e.geoChamberlin=$e,e.geoChamberlinRaw=Ge,e.geoChamberlinAfrica=je,e.geoCollignon=Ie,e.geoCollignonRaw=wt,e.geoCraig=Ce,e.geoCraigRaw=xe,e.geoCraster=ir,e.geoCrasterRaw=nr,e.geoCylindricalEqualArea=oi,e.geoCylindricalEqualAreaRaw=pr,e.geoCylindricalStereographic=Jr,e.geoCylindricalStereographicRaw=di,e.geoEckert1=Hi,e.geoEckert1Raw=fi,e.geoEckert2=wn,e.geoEckert2Raw=Pn,e.geoEckert3=Vn,e.geoEckert3Raw=pn,e.geoEckert4=ea,e.geoEckert4Raw=kn,e.geoEckert5=Vt,e.geoEckert5Raw=ua,e.geoEckert6=tr,e.geoEckert6Raw=_t,e.geoEisenlohr=Zr,e.geoEisenlohrRaw=Er,e.geoFahey=zi,e.geoFaheyRaw=$r,e.geoFoucaut=en,e.geoFoucautRaw=Ji,e.geoFoucautSinusoidal=yn,e.geoFoucautSinusoidalRaw=cn,e.geoGilbert=la,e.geoGingery=Wo,e.geoGingeryRaw=ma,e.geoGinzburg4=Ga,e.geoGinzburg4Raw=Wn,e.geoGinzburg5=jn,e.geoGinzburg5Raw=vo,e.geoGinzburg6=Cr,e.geoGinzburg6Raw=St,e.geoGinzburg8=pi,e.geoGinzburg8Raw=Qr,e.geoGinzburg9=Sn,e.geoGinzburg9Raw=fn,e.geoGringorten=Jn,e.geoGringortenRaw=ki,e.geoGuyou=zs,e.geoGuyouRaw=Lo,e.geoHammer=pt,e.geoHammerRaw=Ze,e.geoHammerRetroazimuthal=zl,e.geoHammerRetroazimuthalRaw=ul,e.geoHealpix=Zl,e.geoHealpixRaw=fl,e.geoHill=nc,e.geoHillRaw=Su,e.geoHomolosine=xo,e.geoHomolosineRaw=Ol,e.geoHufnagel=Us,e.geoHufnagelRaw=Yl,e.geoHyperelliptical=Oo,e.geoHyperellipticalRaw=aa,e.geoInterrupt=Do,e.geoInterruptedBoggs=Uf,e.geoInterruptedHomolosine=Zc,e.geoInterruptedMollweide=qs,e.geoInterruptedMollweideHemispheres=oc,e.geoInterruptedSinuMollweide=sc,e.geoInterruptedSinusoidal=kf,e.geoKavrayskiy7=nf,e.geoKavrayskiy7Raw=fs,e.geoLagrange=Jl,e.geoLagrangeRaw=Vf,e.geoLarrivee=Fu,e.geoLarriveeRaw=lc,e.geoLaskowski=js,e.geoLaskowskiRaw=Cs,e.geoLittrow=gs,e.geoLittrowRaw=Go,e.geoLoximuthal=bl,e.geoLoximuthalRaw=uc,e.geoMiller=Bs,e.geoMillerRaw=Gu,e.geoModifiedStereographic=Bl,e.geoModifiedStereographicRaw=ad,e.geoModifiedStereographicAlaska=Hu,e.geoModifiedStereographicGs48=wl,e.geoModifiedStereographicGs50=Gf,e.geoModifiedStereographicMiller=Ic,e.geoModifiedStereographicLee=mf,e.geoMollweide=wr,e.geoMollweideRaw=sr,e.geoMtFlatPolarParabolic=Yc,e.geoMtFlatPolarParabolicRaw=yf,e.geoMtFlatPolarQuartic=th,e.geoMtFlatPolarQuarticRaw=eh,e.geoMtFlatPolarSinusoidal=Hf,e.geoMtFlatPolarSinusoidalRaw=ju,e.geoNaturalEarth2=of,e.geoNaturalEarth2Raw=cc,e.geoNellHammer=Kc,e.geoNellHammerRaw=Nl,e.geoInterruptedQuarticAuthalic=ms,e.geoNicolosi=Uh,e.geoNicolosiRaw=jf,e.geoPatterson=hu,e.geoPattersonRaw=bc,e.geoPolyconic=al,e.geoPolyconicRaw=_u,e.geoPolyhedral=_f,e.geoPolyhedralButterfly=Ls,e.geoPolyhedralCollignon=Wf,e.geoPolyhedralWaterman=Vs,e.geoProject=Wl,e.geoGringortenQuincuncial=At,e.geoPeirceQuincuncial=Xt,e.geoPierceQuincuncial=Xt,e.geoQuantize=kr,e.geoQuincuncial=Bc,e.geoRectangularPolyconic=Kr,e.geoRectangularPolyconicRaw=Ar,e.geoRobinson=hn,e.geoRobinsonRaw=Wi,e.geoSatellite=Zi,e.geoSatelliteRaw=Bn,e.geoSinuMollweide=Vu,e.geoSinuMollweideRaw=_a,e.geoSinusoidal=bt,e.geoSinusoidalRaw=Ft,e.geoStitch=Ps,e.geoTimes=no,e.geoTimesRaw=va,e.geoTwoPointAzimuthal=ku,e.geoTwoPointAzimuthalRaw=is,e.geoTwoPointAzimuthalUsa=$l,e.geoTwoPointEquidistant=pu,e.geoTwoPointEquidistantRaw=Yu,e.geoTwoPointEquidistantUsa=Nc,e.geoVanDerGrinten=xu,e.geoVanDerGrintenRaw=Uc,e.geoVanDerGrinten2=Ua,e.geoVanDerGrinten2Raw=Ac,e.geoVanDerGrinten3=Vc,e.geoVanDerGrinten3Raw=oo,e.geoVanDerGrinten4=Ku,e.geoVanDerGrinten4Raw=hc,e.geoWagner=B,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=Xe,e.geoWagner4Raw=qe,e.geoWagner6=Tt,e.geoWagner6Raw=ot,e.geoWiechel=Jt,e.geoWiechelRaw=Kt,e.geoWinkel3=Pr,e.geoWinkel3Raw=xr,Object.defineProperty(e,"__esModule",{value:!0})})});var wDe=ye((Agr,bDe)=>{"use strict";var id=Oa(),PZ=Dr(),KFt=qa(),YA=Math.PI/180,H2=180/Math.PI,RZ={cursor:"pointer"},DZ={cursor:"auto"};function JFt(e,t){var r=e.projection,n;return t._isScoped?n=$Ft:t._isClipped?n=ezt:n=QFt,n(e,r)}bDe.exports=JFt;function FZ(e,t){return id.behavior.zoom().translate(t.translate()).scale(t.scale())}function zZ(e,t,r){var n=e.id,i=e.graphDiv,a=i.layout,o=a[n],s=i._fullLayout,l=s[n],u={},c={};function f(h,d){u[n+"."+h]=PZ.nestedProperty(o,h).get(),KFt.call("_storeDirectGUIEdit",a,s._preGUI,u);var v=PZ.nestedProperty(l,h);v.get()!==d&&(v.set(d),PZ.nestedProperty(o,h).set(d),c[n+"."+h]=d)}r(f),f("projection.scale",t.scale()/e.fitScale),f("fitbounds",!1),i.emit("plotly_relayout",c)}function $Ft(e,t){var r=FZ(e,t);function n(){id.select(this).style(RZ)}function i(){t.scale(id.event.scale).translate(id.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var l=t.invert(e.midPt);s("center.lon",l[0]),s("center.lat",l[1])}function o(){id.select(this).style(DZ),zZ(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function QFt(e,t){var r=FZ(e,t),n=2,i,a,o,s,l,u,c,f,h;function d(E){return t.invert(E)}function v(E){var A=d(E);if(!A)return!0;var L=t(A);return Math.abs(L[0]-E[0])>n||Math.abs(L[1]-E[1])>n}function _(){id.select(this).style(RZ),i=id.mouse(this),a=t.rotate(),o=t.translate(),s=a,l=d(i)}function b(){if(u=id.mouse(this),v(i)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(id.event.scale),t.translate([o[0],id.event.translate[1]]),l?d(u)&&(f=d(u),c=[s[0]+(f[0]-l[0]),a[1],a[2]],t.rotate(c),s=c):(i=u,l=d(i)),h=!0,e.render(!0);var E=t.rotate(),A=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":A[0],"geo.center.lat":A[1],"geo.projection.rotation.lon":-E[0]})}function p(){id.select(this).style(DZ),h&&zZ(e,t,C)}function C(E){var A=t.rotate(),L=t.invert(e.midPt);E("projection.rotation.lon",-A[0]),E("center.lon",L[0]),E("center.lat",L[1])}return r.on("zoomstart",_).on("zoom",b).on("zoomend",p),r}function ezt(e,t){var r={r:t.rotate(),k:t.scale()},n=FZ(e,t),i=lzt(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){id.select(this).style(RZ);var h=id.mouse(this),d=t.rotate(),v=d,_=t.translate(),b=tzt(d);s=kF(t,h),o.call(n,"zoom",function(){var p=id.mouse(this);if(t.scale(r.k=id.event.scale),!s)h=p,s=kF(t,h);else if(kF(t,p)){t.rotate(d).translate(_);var C=kF(t,p),E=izt(s,C),A=azt(rzt(b,E)),L=r.r=nzt(A,s,v);(!isFinite(L[0])||!isFinite(L[1])||!isFinite(L[2]))&&(L=v),t.rotate(L),v=L}u(i.of(this,arguments))}),l(i.of(this,arguments))}).on("zoomend",function(){id.select(this).style(DZ),o.call(n,"zoom",null),c(i.of(this,arguments)),zZ(e,t,f)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function l(h){a++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function c(h){--a||h({type:"zoomend"})}function f(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return id.rebind(n,i,"on")}function kF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&ozt(r)}function tzt(e){var t=.5*e[0]*YA,r=.5*e[1]*YA,n=.5*e[2]*YA,i=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),l=Math.sin(n),u=Math.cos(n);return[a*s*u+i*o*l,i*s*u-a*o*l,a*o*u+i*s*l,a*s*l-i*o*u]}function rzt(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=t[0],s=t[1],l=t[2],u=t[3];return[r*o-n*s-i*l-a*u,r*s+n*o+i*u-a*l,r*l-n*u+i*o+a*s,r*u+n*l-i*s+a*o]}function izt(e,t){if(!(!e||!t)){var r=szt(e,t),n=Math.sqrt(xDe(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,xDe(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function nzt(e,t,r){var n=IZ(t,2,e[0]);n=IZ(n,1,e[1]),n=IZ(n,0,e[2]-r[2]);var i=t[0],a=t[1],o=t[2],s=n[0],l=n[1],u=n[2],c=Math.atan2(a,i)*H2,f=Math.sqrt(i*i+a*a),h,d;Math.abs(l)>f?(d=(l>0?90:-90)-c,h=0):(d=Math.asin(l/f)*H2-c,h=Math.sqrt(f*f-l*l));var v=180-d-2*c,_=(Math.atan2(u,s)-Math.atan2(o,h))*H2,b=(Math.atan2(u,s)-Math.atan2(o,-h))*H2,p=yDe(r[0],r[1],d,_),C=yDe(r[0],r[1],v,b);return p<=C?[d,_,r[2]]:[v,b,r[2]]}function yDe(e,t,r,n){var i=_De(r-e),a=_De(n-t);return Math.sqrt(i*i+a*a)}function _De(e){return(e%360+540)%360-180}function IZ(e,t,r){var n=r*YA,i=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(n),l=Math.sin(n);return i[a]=e[a]*s-e[o]*l,i[o]=e[o]*s+e[a]*l,i}function azt(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*H2,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*H2,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*H2]}function ozt(e){var t=e[0]*YA,r=e[1]*YA,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function xDe(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var t1=Oa(),BZ=LZ(),uzt=BZ.geoPath,czt=BZ.geoDistance,fzt=mDe(),hzt=qa(),oC=Dr(),dzt=oC.strTranslate,LF=Ca(),aC=So(),TDe=vf(),vzt=Mc(),qZ=ho(),ADe=Tg().getAutoRange,OZ=yv(),pzt=zf().prepSelect,gzt=zf().clearOutline,mzt=zf().selectOnClick,yzt=wDe(),fp=tC(),_zt=ix(),MDe=vF(),xzt=pZ().feature;function EDe(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var $g=EDe.prototype;CDe.exports=function(t){return new EDe(t)};$g.plot=function(e,t,r,n){var i=this;if(n)return i.update(e,t,!0);i._geoCalcData=e,i._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var l in fp.layerNameToAdjective)if(l!=="frame"&&a["show"+l]){s=!0;break}for(var u=!1,c=0;c0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),vzt.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var l=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=l.selectAll(".point"),this.dataPoints.text=l.selectAll("text"),this.dataPaths.line=l.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};$g.updateProjection=function(e,t){var r=this.graphDiv,n=t[this.id],i=t._size,a=n.domain,o=n.projection,s=n.lonaxis,l=n.lataxis,u=s._ax,c=l._ax,f=this.projection=bzt(n),h=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],d=n.center||{},v=o.rotation||{},_=s.range||[],b=l.range||[];if(n.fitbounds){u._length=h[1][0]-h[0][0],c._length=h[1][1]-h[0][1],u.range=ADe(r,u),c.range=ADe(r,c);var p=(u.range[0]+u.range[1])/2,C=(c.range[0]+c.range[1])/2;if(n._isScoped)d={lon:p,lat:C};else if(n._isClipped){d={lon:p,lat:C},v={lon:p,lat:C,roll:v.roll};var E=o.type,A=fp.lonaxisSpan[E]/2||180,L=fp.lataxisSpan[E]/2||90;_=[p-A,p+A],b=[C-L,C+L]}else d={lon:p,lat:C},v={lon:p,lat:v.lat,roll:v.roll}}f.center([d.lon-v.lon,d.lat-v.lat]).rotate([-v.lon,-v.lat,v.roll]).parallels(o.parallels);var x=SDe(_,b);f.fitExtent(h,x);var k=this.bounds=f.getBounds(x),M=this.fitScale=f.scale(),g=f.translate();if(n.fitbounds){var P=f.getBounds(SDe(u.range,c.range)),T=Math.min((k[1][0]-k[0][0])/(P[1][0]-P[0][0]),(k[1][1]-k[0][1])/(P[1][1]-P[0][1]));isFinite(T)?f.scale(T*M):oC.warn("Something went wrong during"+this.id+"fitbounds computations.")}else f.scale(o.scale*M);var z=this.midPt=[(k[0][0]+k[1][0])/2,(k[0][1]+k[1][1])/2];if(f.translate([g[0]+(z[0]-g[0]),g[1]+(z[1]-g[1])]).clipExtent(k),n._isAlbersUsa){var O=f([d.lon,d.lat]),V=f.translate();f.translate([V[0]-(O[0]-V[0]),V[1]-(O[1]-V[1])])}};$g.updateBaseLayers=function(e,t){var r=this,n=r.topojson,i=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!fp.lineLayers[h]}function l(h){return!!fp.fillLayers[h]}var u=this.hasChoropleth?fp.layersForChoropleth:fp.layers,c=u.filter(function(h){return s(h)||l(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),f=r.framework.selectAll(".layer").data(c,String);f.exit().each(function(h){delete i[h],delete a[h],t1.select(this).remove()}),f.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=i[h]=t1.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):l(h)&&(a[h]=d.append("path").style("stroke","none"))}),f.order(),f.each(function(h){var d=a[h],v=fp.layerNameToAdjective[h];h==="frame"?d.datum(fp.sphereSVG):s(h)||l(h)?d.datum(xzt(n,n.objects[h])):o(h)&&d.datum(wzt(h,t,e)).call(LF.stroke,t[h].gridcolor).call(aC.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(LF.stroke,t[v+"color"]).call(aC.dashLine,"",t[v+"width"]):l(h)&&d.call(LF.fill,t[v+"color"])})};$g.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;aC.setRect(this.clipRect,i,a,o,s),this.bgRect.call(aC.setRect,i,a,o,s).call(LF.fill,t.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};$g.updateFx=function(e,t){var r=this,n=r.graphDiv,i=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var f=r.viewInitial,h={};for(var d in f)h[r.id+"."+d]=f[d];hzt.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function l(f){return r.projection.invert([f[0]+r.xaxis._offset,f[1]+r.yaxis._offset])}var u=function(f,h){if(h.isRect){var d=f.range={};d[r.id]=[l([h.xmin,h.ymin]),l([h.xmax,h.ymax])]}else{var v=f.lassoPoints={};v[r.id]=h.map(l)}},c={element:r.bgRect.node(),gd:n,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(f){f===2&&gzt(n)}};a==="pan"?(i.node().onmousedown=null,i.call(yzt(r,t)),i.on("dblclick.zoom",s),n._context._scrollZoom.geo||i.on("wheel.zoom",null)):(a==="select"||a==="lasso")&&(i.on(".zoom",null),c.prepFn=function(f,h,d){pzt(f,h,d,c,a)},OZ.init(c)),i.on("mousemove",function(){var f=r.projection.invert(oC.getPositionFromD3Event());if(!f)return OZ.unhover(n,t1.event);r.xaxis.p2c=function(){return f[0]},r.yaxis.p2c=function(){return f[1]},TDe.hover(n,t1.event,r.id)}),i.on("mouseout",function(){n._dragging||OZ.unhover(n,t1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&mzt(t1.event,n,[r.xaxis],[r.yaxis],r.id,c),o.indexOf("event")>-1&&TDe.click(n,t1.event))})};$g.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,n="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=t1.select(e.container).append("g").attr("class","geo "+e.id).call(aC.setClipUrl,n,t),e.project=function(i){var a=e.projection(i);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(i){return e.project(i)[0]}},e.yaxis={_id:"y",c2p:function(i){return e.project(i)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},qZ.setConvert(e.mockAxis,r)};$g.saveViewInitial=function(e){var t=e.center||{},r=e.projection,n=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var i;e._isScoped?i={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?i={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:i={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":n.lon},oC.extendFlat(this.viewInitial,i)};$g.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};$g._render=function(){var e=this.projection,t=e.getPath(),r;function n(a){var o=e(a.lonlat);return o?dzt(o[0],o[1]):null}function i(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",i).attr("transform",n)};function bzt(e){var t=e.projection,r=t.type,n=fp.projNames[r];n="geo"+oC.titleCase(n);for(var i=BZ[n]||fzt[n],a=i(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?fp.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],l=function(f){return f?a:[]},u=0;uv}else return!1},a.getPath=function(){return uzt().projection(a)},a.getBounds=function(f){return a.getPath().bounds(f)},a.precision(fp.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-fp.clipPad),a}function wzt(e,t,r){var n=1e-6,i=2.5,a=t[e],o=fp.scopeDefaults[t.scope],s,l,u;e==="lonaxis"?(s=o.lonaxisRange,l=o.lataxisRange,u=function(C,E){return[C,E]}):e==="lataxis"&&(s=o.lataxisRange,l=o.lonaxisRange,u=function(C,E){return[E,C]});var c={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};qZ.setConvert(c,r);var f=qZ.calcTicks(c);!t.isScoped&&e==="lonaxis"&&f.pop();for(var h=f.length,d=new Array(h),v=0;v0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}});var NZ=ye((Mgr,IDe)=>{"use strict";var JA=Ch(),Tzt=kc().attributes,Azt=Pd().dash,KA=tC(),Szt=mc().overrideAll,LDe=Z1(),PDe={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:JA.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:Azt},Mzt=IDe.exports=Szt({domain:Tzt({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:LDe(KA.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:LDe(KA.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:JA.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:KA.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:KA.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:KA.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:KA.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:JA.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:JA.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:JA.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:JA.background},lonaxis:PDe,lataxis:PDe},"plot","from-root");Mzt.uirevision={valType:"any",editType:"none"}});var FDe=ye((Egr,DDe)=>{"use strict";var PF=Dr(),Ezt=C_(),Czt=Id().getSubplotData,IF=tC(),kzt=NZ(),RDe=IF.axesNames;DDe.exports=function(t,r,n){Ezt(t,r,n,{type:"geo",attributes:kzt,handleDefaults:Lzt,fullData:n,partition:"y"})};function Lzt(e,t,r,n){var i=Czt(n.fullData,"geo",n.id),a=i.map(function(oe){return oe.index}),o=r("resolution"),s=r("scope"),l=IF.scopeDefaults[s],u=r("projection.type",l.projType),c=t._isAlbersUsa=u==="albers usa";c&&(s=t.scope="usa");var f=t._isScoped=s!=="world",h=t._isSatellite=u==="satellite",d=t._isConic=u.indexOf("conic")!==-1||u==="albers",v=t._isClipped=!!IF.lonaxisSpan[u];if(e.visible===!1){var _=PF.extendDeep({},t._template);_.showcoastlines=!1,_.showcountries=!1,_.showframe=!1,_.showlakes=!1,_.showland=!1,_.showocean=!1,_.showrivers=!1,_.showsubunits=!1,_.lonaxis&&(_.lonaxis.showgrid=!1),_.lataxis&&(_.lataxis.showgrid=!1),t._template=_}for(var b=r("visible"),p,C=0;C0&&O<0&&(O+=360);var V=(z+O)/2,G;if(!c){var Z=f?l.projRotate:[V,0,0];G=r("projection.rotation.lon",Z[0]),r("projection.rotation.lat",Z[1]),r("projection.rotation.roll",Z[2]),p=r("showcoastlines",!f&&b),p&&(r("coastlinecolor"),r("coastlinewidth")),p=r("showocean",b?void 0:!1),p&&r("oceancolor")}var H,N;if(c?(H=-96.6,N=38.7):(H=f?V:G,N=(T[0]+T[1])/2),r("center.lon",H),r("center.lat",N),h&&(r("projection.tilt"),r("projection.distance")),d){var j=l.projParallels||[0,60];r("projection.parallels",j)}r("projection.scale"),p=r("showland",b?void 0:!1),p&&r("landcolor"),p=r("showlakes",b?void 0:!1),p&&r("lakecolor"),p=r("showrivers",b?void 0:!1),p&&(r("rivercolor"),r("riverwidth")),p=r("showcountries",f&&s!=="usa"&&b),p&&(r("countrycolor"),r("countrywidth")),(s==="usa"||s==="north america"&&o===50)&&(r("showsubunits",b),r("subunitcolor"),r("subunitwidth")),f||(p=r("showframe",b),p&&(r("framecolor"),r("framewidth"))),r("bgcolor");var re=r("fitbounds");re&&(delete t.projection.scale,f?(delete t.center.lon,delete t.center.lat):v?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}});var UZ=ye((Cgr,qDe)=>{"use strict";var Pzt=Id().getSubplotCalcData,Izt=Dr().counterRegex,Rzt=kDe(),Wm="geo",zDe=Izt(Wm),ODe={};ODe[Wm]={valType:"subplotid",dflt:Wm,editType:"calc"};function Dzt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Wm],i=0;i{"use strict";BDe.exports={attributes:G2(),supplyDefaults:xRe(),colorbar:$d(),formatLabels:TRe(),calc:hF(),calcGeoJSON:kZ().calcGeoJSON,plot:kZ().plot,style:SZ(),styleOnSelect:op().styleOnSelect,hoverPoints:lDe(),eventData:cDe(),selectPoints:dDe(),moduleType:"trace",name:"scattergeo",basePlotModule:UZ(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var VDe=ye((Lgr,UDe)=>{"use strict";UDe.exports=NDe()});var $A=ye((Pgr,jDe)=>{"use strict";var Ozt=Qo().hovertemplateAttrs,ax=G2(),qzt=Tu(),GDe=Gl(),Bzt=Ch().defaultLine,nx=Ao().extendFlat,HDe=ax.marker.line;jDe.exports=nx({locations:{valType:"data_array",editType:"calc"},locationmode:ax.locationmode,z:{valType:"data_array",editType:"calc"},geojson:nx({},ax.geojson,{}),featureidkey:ax.featureidkey,text:nx({},ax.text,{}),hovertext:nx({},ax.hovertext,{}),marker:{line:{color:nx({},HDe.color,{dflt:Bzt}),width:nx({},HDe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:ax.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:ax.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:nx({},GDe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Ozt(),showlegend:nx({},GDe.showlegend,{dflt:!1})},qzt("",{cLetter:"z",editTypeOverride:"calc"}))});var XDe=ye((Igr,WDe)=>{"use strict";var sC=Dr(),Nzt=Jh(),Uzt=$A(),Vzt=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");WDe.exports=function(t,r,n,i){function a(h,d){return sC.coerce(t,r,Uzt,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&sC.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var l=a("geojson"),u;(typeof l=="string"&&l!==""||sC.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="country names"&&sC.warn(Vzt),c==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate");var f=a("marker.line.width");f&&a("marker.line.color"),a("marker.opacity"),Nzt(t,r,i,a,{prefix:"",cLetter:"z"}),sC.coerceSelectionMarkerOpacity(r,a)}});var RF=ye((Rgr,KDe)=>{"use strict";var ZDe=Eo(),Gzt=hs().BADNUM,Hzt=gv(),jzt=Cm(),Wzt=O0();function YDe(e){return e&&typeof e=="string"}KDe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(c){return YDe(c)||ZDe(c)}:a=YDe;for(var o=0;o{"use strict";var Xzt=Oa(),Zzt=Ca(),VZ=So(),Yzt=tc();function Kzt(e,t){t&&JDe(e,t)}function JDe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=Yzt.makeColorScaleFuncFromTrace(r);i.each(function(l){Xzt.select(this).attr("fill",s(l.z)).call(Zzt.stroke,l.mlc||o.color).call(VZ.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),VZ.selectedPointStyle(i,r)}function Jzt(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?VZ.selectedPointStyle(r.selectAll(".choroplethlocation"),n):JDe(e,t)}$De.exports={style:Kzt,styleOnSelect:Jzt}});var GZ=ye((Fgr,tFe)=>{"use strict";var $zt=Oa(),QDe=Dr(),QA=ix(),Qzt=vF().getTopojsonFeatures,eFe=Tg().findExtremes,e7t=DF().style;function t7t(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");QDe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=$zt.select(this),o=a.selectAll("path.choroplethlocation").data(QDe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),e7t(e,i)})}function r7t(e,t){for(var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?QA.extractTraceFeature(e):Qzt(r,i.topojson),l=[],u=[],c=0;c{"use strict";var i7t=ho(),n7t=$A(),a7t=Dr().fillText;rFe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s,l,u,c,f=[r,n],h=[r+360,n];for(l=0;l")}}});var zF=ye((Ogr,iFe)=>{"use strict";iFe.exports=function(t,r,n,i,a){t.location=r.location,t.z=r.z;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var OF=ye((qgr,nFe)=>{"use strict";nFe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l,u,c,f;if(r===!1)for(s=0;s{"use strict";aFe.exports={attributes:$A(),supplyDefaults:XDe(),colorbar:S_(),calc:RF(),calcGeoJSON:GZ().calcGeoJSON,plot:GZ().plot,style:DF().style,styleOnSelect:DF().styleOnSelect,hoverPoints:FF(),eventData:zF(),selectPoints:OF(),moduleType:"trace",name:"choropleth",basePlotModule:UZ(),categories:["geo","noOpacity","showLegend"],meta:{}}});var lFe=ye((Ngr,sFe)=>{"use strict";sFe.exports=oFe()});var qF=ye((Ugr,cFe)=>{"use strict";var s7t=qa(),s0=Dr(),l7t=sT();function u7t(e,t,r,n){var i=e.cd,a=i[0].t,o=i[0].trace,s=e.xa,l=e.ya,u=a.x,c=a.y,f=s.c2p(t),h=l.c2p(r),d=e.distance,v;if(a.tree){var _=s.p2c(f-d),b=s.p2c(f+d),p=l.p2c(h-d),C=l.p2c(h+d);n==="x"?v=a.tree.range(Math.min(_,b),Math.min(l._rl[0],l._rl[1]),Math.max(_,b),Math.max(l._rl[0],l._rl[1])):v=a.tree.range(Math.min(_,b),Math.min(p,C),Math.max(_,b),Math.max(p,C))}else v=a.ids;var E,A,L,x,k,M,g,P,T,z=d;if(n==="x"){var O=!!o.xperiodalignment,V=!!o.yperiodalignment;for(k=0;k=Math.min(G,Z)&&f<=Math.max(G,Z)?0:1/0}if(M=Math.min(H,N)&&h<=Math.max(H,N)?0:1/0}T=Math.sqrt(M*M+g*g),A=v[k]}}}else for(k=v.length-1;k>-1;k--)E=v[k],L=u[E],x=c[E],M=s.c2p(L)-f,g=l.c2p(x)-h,P=Math.sqrt(M*M+g*g),P{"use strict";var fFe=20;hFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:fFe,SYMBOL_STROKE:fFe/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var lC=ye((Ggr,gFe)=>{"use strict";var c7t=Gl(),f7t=ec(),h7t=Cg(),qf=pf(),dFe=df().axisHoverFormat,vFe=Tu(),d7t=Z1(),HZ=Ao().extendFlat,v7t=mc().overrideAll,p7t=ox().DASHES,pFe=qf.line,r1=qf.marker,g7t=r1.line,e5=gFe.exports=v7t({x:qf.x,x0:qf.x0,dx:qf.dx,y:qf.y,y0:qf.y0,dy:qf.dy,xperiod:qf.xperiod,yperiod:qf.yperiod,xperiod0:qf.xperiod0,yperiod0:qf.yperiod0,xperiodalignment:qf.xperiodalignment,yperiodalignment:qf.yperiodalignment,xhoverformat:dFe("x"),yhoverformat:dFe("y"),text:qf.text,hovertext:qf.hovertext,textposition:qf.textposition,textfont:f7t({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:pFe.color,width:pFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:d7t(p7t),dflt:"solid"}},marker:HZ({},vFe("marker"),{symbol:r1.symbol,angle:r1.angle,size:r1.size,sizeref:r1.sizeref,sizemin:r1.sizemin,sizemode:r1.sizemode,opacity:r1.opacity,colorbar:r1.colorbar,line:HZ({},vFe("marker.line"),{width:g7t.width})}),connectgaps:qf.connectgaps,fill:HZ({},qf.fill,{dflt:"none"}),fillcolor:h7t(),selected:{marker:qf.selected.marker,textfont:qf.selected.textfont},unselected:{marker:qf.unselected.marker,textfont:qf.unselected.textfont},opacity:c7t.opacity},"calc","nested");e5.x.editType=e5.y.editType=e5.x0.editType=e5.y0.editType="calc+clearAxisTypes";e5.hovertemplate=qf.hovertemplate;e5.texttemplate=qf.texttemplate});var BF=ye(jZ=>{"use strict";var mFe=ox();jZ.isOpenSymbol=function(e){return typeof e=="string"?mFe.OPEN_RE.test(e):e%200>100};jZ.isDotSymbol=function(e){return typeof e=="string"?mFe.DOT_RE.test(e):e>200}});var xFe=ye((jgr,_Fe)=>{"use strict";var yFe=Dr(),m7t=qa(),y7t=BF(),_7t=lC(),x7t=Sm(),NF=Ru(),b7t=J3(),w7t=Pg(),T7t=$p(),A7t=D0(),S7t=Ig(),M7t=F0();_Fe.exports=function(t,r,n,i){function a(d,v){return yFe.coerce(t,r,_7t,d,v)}var o=t.marker?y7t.isOpenSymbol(t.marker.symbol):!1,s=NF.isBubble(t),l=b7t(t,r,i,a);if(!l){r.visible=!1;return}w7t(t,r,i,a),a("xhoverformat"),a("yhoverformat");var u=l{"use strict";var E7t=tI();bFe.exports=function(t,r,n){var i=t.i;return"x"in t||(t.x=r._x[i]),"y"in t||(t.y=r._y[i]),E7t(t,r,n)}});var AFe=ye((Xgr,TFe)=>{"use strict";function C7t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>=0?(a=o,i=o-1):n=o+1}return a}function k7t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>0?(a=o,i=o-1):n=o+1}return a}function L7t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<0?(a=o,n=o+1):i=o-1}return a}function P7t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<=0?(a=o,n=o+1):i=o-1}return a}function I7t(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function uC(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}TFe.exports={ge:function(e,t,r,n,i){return uC(e,t,r,n,i,C7t)},gt:function(e,t,r,n,i){return uC(e,t,r,n,i,k7t)},lt:function(e,t,r,n,i){return uC(e,t,r,n,i,L7t)},le:function(e,t,r,n,i){return uC(e,t,r,n,i,P7t)},eq:function(e,t,r,n,i){return uC(e,t,r,n,i,I7t)}}});var Xm=ye((Zgr,MFe)=>{"use strict";MFe.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=SFe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var R7t=Xm();EFe.exports=D7t;function D7t(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=R7t(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var j2=ye((Kgr,CFe)=>{"use strict";CFe.exports=F7t;function F7t(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;ni&&(i=e[o]),e[o]{kFe.exports=function(){for(var e=0;e{var PFe=WD();IFe.exports=z7t;function z7t(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,s,l;(!t||typeof t=="string")&&(t=new(PFe(t||"float32"))(i+r));var u=t.length-r;if(i!==u)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+u);for(a=0,s=r;a{"use strict";RFe.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var zFe=ye((emr,FFe)=>{"use strict";FFe.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var GFe=ye((tmr,VFe)=>{"use strict";var OFe=AFe(),qFe=ZE(),O7t=t5(),q7t=j2(),BFe=Xm(),XZ=LFe(),B7t=W2(),N7t=DFe(),U7t=WD(),NFe=zFe(),V7t=1073741824;VFe.exports=function(t,r){r||(r={}),t=B7t(t,"float64"),r=BFe(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=XZ(r.maxDepth,255),i=XZ(r.bounds,q7t(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=UFe(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(U7t(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let p=0;pn||x>V7t){for(let N=0;N_e||g>Me||P=z||re===oe)return;let ke=l[j];oe===void 0&&(oe=ke.length);for(let Fe=re;Fe=A&&Ze<=x&&ct>=L&&ct<=k&&O.push(ce)}let me=u[j],ie=me[re*4+0],Se=me[re*4+1],Le=me[re*4+2],Ae=me[re*4+3],De=G(me,re+1),Pe=N*.5,ge=j+1;V(Z,H,Pe,ge,ie,Se||Le||Ae||De),V(Z,H+Pe,Pe,ge,Se,Le||Ae||De),V(Z+Pe,H,Pe,ge,Le,Ae||De),V(Z+Pe,H+Pe,Pe,ge,Ae,De)}function G(Z,H){let N=null,j=0;for(;N===null;)if(N=Z[H*4+j],j++,j>Z.length)return null;return N}return O}function _(p,C,E,A,L){let x=[];for(let k=0;k{"use strict";HFe.exports=GFe()});var ZZ=ye((imr,jFe)=>{jFe.exports=G7t;function G7t(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var l=1;l{"use strict";Object.defineProperty(VF,"__esModule",{value:!0});var H7t=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(n.push(l.value),!(r&&n.length===r));i=!0);}catch(u){a=!0,o=u}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),cC=Math.PI*2,YZ=function(t,r,n,i,a,o,s){var l=t.x,u=t.y;l*=r,u*=n;var c=i*l-a*u,f=a*l+i*u;return{x:c+o,y:f+s}},j7t=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},WFe=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},W7t=function(t,r,n,i,a,o,s,l,u,c,f,h){var d=Math.pow(a,2),v=Math.pow(o,2),_=Math.pow(f,2),b=Math.pow(h,2),p=d*v-d*b-v*_;p<0&&(p=0),p/=d*b+v*_,p=Math.sqrt(p)*(s===l?-1:1);var C=p*a/o*h,E=p*-o/a*f,A=c*C-u*E+(t+n)/2,L=u*C+c*E+(r+i)/2,x=(f-C)/a,k=(h-E)/o,M=(-f-C)/a,g=(-h-E)/o,P=WFe(1,0,x,k),T=WFe(x,k,M,g);return l===0&&T>0&&(T-=cC),l===1&&T<0&&(T+=cC),[A,L,P,T]},X7t=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,c=t.largeArcFlag,f=c===void 0?0:c,h=t.sweepFlag,d=h===void 0?0:h,v=[];if(o===0||s===0)return[];var _=Math.sin(u*cC/360),b=Math.cos(u*cC/360),p=b*(r-i)/2+_*(n-a)/2,C=-_*(r-i)/2+b*(n-a)/2;if(p===0&&C===0)return[];o=Math.abs(o),s=Math.abs(s);var E=Math.pow(p,2)/Math.pow(o,2)+Math.pow(C,2)/Math.pow(s,2);E>1&&(o*=Math.sqrt(E),s*=Math.sqrt(E));var A=W7t(r,n,i,a,o,s,f,d,_,b,p,C),L=H7t(A,4),x=L[0],k=L[1],M=L[2],g=L[3],P=Math.abs(g)/(cC/4);Math.abs(1-P)<1e-7&&(P=1);var T=Math.max(Math.ceil(P),1);g/=T;for(var z=0;z{"use strict";KFe.exports=Y7t;var Z7t=ZFe();function Y7t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function GF(e,t,r,n){return["C",e,t,r,n,r,n]}function YFe(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var KZ=ye((amr,$Fe)=>{"use strict";$Fe.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var tze=ye((omr,eze)=>{"use strict";var K7t=QS(),J7t=ZZ(),$7t=JFe(),Q7t=KZ(),QFe=sE();eze.exports=e9t;function e9t(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(QFe(Q7t(e),"String is not an SVG path."),e=K7t(e)),QFe(Array.isArray(e),"Argument should be a string or an array of path segments."),e=J7t(e),e=$7t(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;rt[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}});var sze=ye((smr,oze)=>{var X2=Math.PI,rze=aze(120);oze.exports=t9t;function t9t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var _=u,b=c;(t=="C"||t=="S")&&(_+=_-n,b+=b-i),d=["C",_,b,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=u*2-s,l=c*2-l):(s=u,l=c),d=ize(u,c,s,l,d[1],d[2]);break;case"Q":s=d[1],l=d[2],d=ize(u,c,d[1],d[2],d[3],d[4]);break;case"L":d=HF(u,c,d[1],d[2]);break;case"H":d=HF(u,c,d[1],c);break;case"V":d=HF(u,c,u,d[1]);break;case"Z":d=HF(u,c,a,o);break}t=v,u=d[d.length-2],c=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function HF(e,t,r,n){return["C",e,t,r,n,r,n]}function ize(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function nze(e,t,r,n,i,a,o,s,l,u){if(u)E=u[0],A=u[1],p=u[2],C=u[3];else{var c=JZ(e,t,-i);e=c.x,t=c.y,c=JZ(s,l,-i),s=c.x,l=c.y;var f=(e-s)/2,h=(t-l)/2,d=f*f/(r*r)+h*h/(n*n);d>1&&(d=Math.sqrt(d),r=d*r,n=d*n);var v=r*r,_=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((v*_-v*h*h-_*f*f)/(v*h*h+_*f*f)));b==1/0&&(b=1);var p=b*r*h/n+(e+s)/2,C=b*-n*f/r+(t+l)/2,E=Math.asin(((t-C)/n).toFixed(9)),A=Math.asin(((l-C)/n).toFixed(9));E=eA&&(E=E-X2*2),!o&&A>E&&(A=A-X2*2)}if(Math.abs(A-E)>rze){var L=A,x=s,k=l;A=E+rze*(o&&A>E?1:-1),s=p+r*Math.cos(A),l=C+n*Math.sin(A);var M=nze(s,l,r,n,i,0,o,x,k,[A,L,p,C])}var g=Math.tan((A-E)/4),P=4/3*r*g,T=4/3*n*g,z=[2*e-(e+P*Math.sin(E)),2*t-(t-T*Math.cos(E)),s+P*Math.sin(A),l-T*Math.cos(A),s,l];if(u)return z;M&&(z=z.concat(M));for(var O=0;O{var r9t=ZZ(),i9t=sze(),n9t={M:"moveTo",C:"bezierCurveTo"};lze.exports=function(e,t){e.beginPath(),i9t(r9t(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[n9t[n]].apply(e,i)}),e.closePath()}});var dze=ye((umr,hze)=>{"use strict";var a9t=ZE();hze.exports=o9t;var fC=1e20;function o9t(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,s,l,u,c,f,h,d,v,_;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,l=e,t.stride?c=t.stride:c=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,f=h.getContext("2d"),a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,f=e,a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,l=d.data,c=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(u=l,l=Array(a*o),v=0,_=u.length;v<_;v++)l[v]=u[v*c+i]/255;else if(c!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*o),p=Array(a*o),C=Array(s),E=Array(s),A=Array(s+1),L=Array(s);for(v=0,_=a*o;v<_;v++){var x=l[v];b[v]=x===1?0:x===0?fC:Math.pow(Math.max(0,.5-x),2),p[v]=x===1?fC:x===0?0:Math.pow(Math.max(0,x-.5),2)}cze(b,a,o,C,E,L,A),cze(p,a,o,C,E,L,A);var k=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(v=0,_=a*o;v<_;v++)k[v]=a9t(1-((b[v]-p[v])/n+r),0,1);return k}function cze(e,t,r,n,i,a,o){for(var s=0;s{"use strict";var s9t=tze(),l9t=QS(),u9t=uze(),c9t=KZ(),f9t=dze(),$Z=document.createElement("canvas"),hp=$Z.getContext("2d");vze.exports=h9t;function h9t(e,t){if(!c9t(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=$Z.width=t.w||t.width||200,n=$Z.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||s9t(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],l=Math.min(s[0]||0,s[1]||0)/2;if(hp.fillStyle="black",hp.fillRect(0,0,r,n),hp.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?hp.strokeStyle="white":hp.strokeStyle="black",hp.lineWidth=Math.abs(a)),hp.translate(r*.5,n*.5),hp.scale(l,l),d9t()){var u=new Path2D(e);hp.fill(u),a&&hp.stroke(u)}else{var c=l9t(e);u9t(hp,c),hp.fill(),a&&hp.stroke()}hp.setTransform(1,0,0,1,0,0);var f=f9t(hp,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return f}var jF;function d9t(){if(jF!=null)return jF;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return jF=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return jF=r&&r.data&&r.data[3]===255}});var Y2=ye((fmr,Mze)=>{"use strict";var XF=Eo(),v9t=pze(),WF=J_(),p9t=qa(),n5=Dr(),mh=n5.isArrayOrTypedArray,r5=So(),gze=hf(),mze=$y().formatColor,i5=Ru(),g9t=S3(),eY=BF(),hC=ox(),m9t=N1().DESELECTDIM,yze={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},y9t=ip().appendArrayPointValue;function _9t(e,t){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=e._context.plotGlPixelRatio;if(t.visible!==!0)return n;if(i5.hasText(t)&&(n.text=Sze(e,t),n.textSel=xze(e,t,t.selected),n.textUnsel=xze(e,t,t.unselected)),i5.hasMarkers(t)&&(n.marker=rY(e,t),n.markerSel=tY(e,t,t.selected),n.markerUnsel=tY(e,t,t.unselected),!t.unselected&&mh(t.marker.opacity))){var a=t.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function rY(e,t){var r=t._length,n=t.marker,i={},a,o=mh(n.symbol),s=mh(n.angle),l=mh(n.color),u=mh(n.line.color),c=mh(n.opacity),f=mh(n.size),h=mh(n.line.width),d;if(o||(d=eY.isOpenSymbol(n.symbol)),o||l||u||c||s){i.symbols=new Array(r),i.angles=new Array(r),i.colors=new Array(r),i.borderColors=new Array(r);var v=n.symbol,_=n.angle,b=mze(n,n.opacity,r),p=mze(n.line,n.opacity,r);if(!mh(p[0])){var C=p;for(p=Array(r),a=0;ahC.TOO_MANY_POINTS||i5.hasMarkers(t)?"rect":"round";if(u&&t.connectgaps){var f=a[0],h=a[1];for(o=0;o1?l[o]:l[0]:l,d=mh(u)?u.length>1?u[o]:u[0]:u,v=yze[h],_=yze[d],b=c?c/.8+1:0,p=-_*b-_*.5;a.offset[o]=[v*b/f,p/f]}}return a}Mze.exports={style:_9t,markerStyle:rY,markerSelection:tY,linePositions:b9t,errorBarPositions:w9t,textPosition:T9t}});var iY=ye((hmr,Eze)=>{"use strict";var ZF=Dr();Eze.exports=function(t,r){var n=r._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(n=r._scene={},n.init=function(){ZF.extendFlat(n,a,i)},n.init(),n.update=function(s){var l=ZF.repeat(s,n.count);if(n.fill2d&&n.fill2d.update(l),n.scatter2d&&n.scatter2d.update(l),n.line2d&&n.line2d.update(l),n.error2d&&n.error2d.update(l.concat(l)),n.select2d&&n.select2d.update(l),n.glText)for(var u=0;u{"use strict";var A9t=UF(),a5=Dr(),Cze=hf(),S9t=Tg().findExtremes,kze=Rg(),nY=q0(),M9t=nY.calcMarkerSize,E9t=nY.calcAxisExpansion,C9t=nY.setFirstScatter,k9t=z0(),o5=Y2(),L9t=iY(),Lze=hs().BADNUM,P9t=ox().TOO_MANY_POINTS;Ize.exports=function(t,r){var n=t._fullLayout,i=r._xA=Cze.getFromId(t,r.xaxis,"x"),a=r._yA=Cze.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,l=s>=P9t,u=s*2,c={},f,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),v=kze(r,i,"x",h),_=kze(r,a,"y",d),b=v.vals,p=_.vals;r._x=b,r._y=p,r.xperiodalignment&&(r._origX=h,r._xStarts=v.starts,r._xEnds=v.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=_.starts,r._yEnds=_.ends);var C=new Array(u),E=new Array(s);for(f=0;f1&&a5.extendFlat(o.line,o5.linePositions(e,r,n)),o.errorX||o.errorY){var s=o5.errorBarPositions(e,r,n,i,a);o.errorX&&a5.extendFlat(o.errorX,s.x),o.errorY&&a5.extendFlat(o.errorY,s.y)}return o.text&&(a5.extendFlat(o.text,{positions:n},o5.textPosition(e,r,o.text,o.marker)),a5.extendFlat(o.textSel,{positions:n},o5.textPosition(e,r,o.text,o.markerSel)),a5.extendFlat(o.textUnsel,{positions:n},o5.textPosition(e,r,o.text,o.markerUnsel))),o}});var aY=ye((vmr,Fze)=>{"use strict";var Dze=Dr(),R9t=Ca(),D9t=N1().DESELECTDIM;function F9t(e){var t=e[0],r=t.trace,n=t.t,i=n._scene,a=n.index,o=i.selectBatch[a],s=i.unselectBatch[a],l=i.textOptions[a],u=i.textSelectedOptions[a]||{},c=i.textUnselectedOptions[a]||{},f=Dze.extendFlat({},l),h,d;if(o.length||s.length){var v=u.color,_=c.color,b=l.color,p=Dze.isArrayOrTypedArray(b);for(f.color=new Array(r._length),h=0;h{"use strict";var zze=Ru(),z9t=aY().styleTextSelection;Oze.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l=n[0].t,u=s._length,c=l.x,f=l.y,h=l._scene,d=l.index;if(!h)return o;var v=zze.hasText(s),_=zze.hasMarkers(s),b=!_&&!v;if(s.visible!==!0||b)return o;var p=[],C=[];if(r!==!1&&!r.degenerate)for(var E=0;E{"use strict";var O9t=qF();qze.exports={moduleType:"trace",name:"scattergl",basePlotModule:ph(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:lC(),supplyDefaults:xFe(),crossTraceDefaults:iU(),colorbar:$d(),formatLabels:wFe(),calc:Rze(),hoverPoints:O9t.hoverPoints,selectPoints:oY(),meta:{}}});var Uze=ye((mmr,KF)=>{"use strict";var YF=ZE();KF.exports=Nze;KF.exports.to=Nze;KF.exports.from=q9t;function Nze(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=YF(r,0,255)&255,n=YF(n,0,255)&255,i=YF(i,0,255)&255,a=YF(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function q9t(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}});var Fh=ye((ymr,Gze)=>{"use strict";var Vze=Object.getOwnPropertySymbols,B9t=Object.prototype.hasOwnProperty,N9t=Object.prototype.propertyIsEnumerable;function U9t(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function V9t(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}Gze.exports=V9t()?Object.assign:function(e,t){for(var r,n=U9t(e),i,a=1;a{Hze.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";Wze.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";Xze.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var JF=ye((wmr,s5)=>{"use strict";s5.exports=dC;s5.exports.float32=s5.exports.float=dC;s5.exports.fract32=s5.exports.fract=G9t;var Yze=new Float32Array(1);function G9t(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=dC(e));for(var r=0,n=t.length;r{"use strict";function H9t(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function j9t(e,t){return Z9t(e)||H9t(e,t)||Jze(e,t)||J9t()}function W9t(e){return X9t(e)||Y9t(e)||Jze(e)||K9t()}function X9t(e){if(Array.isArray(e))return lY(e)}function Z9t(e){if(Array.isArray(e))return e}function Y9t(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jze(e,t){if(e){if(typeof e=="string")return lY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lY(e,t)}}function lY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rre)?N.tree=$9t(H,{bounds:me}):re&&re.length&&(N.tree=re),N.tree){var ie={primitive:"points",usage:"static",data:N.tree,type:"uint32"};N.elements?N.elements(ie):N.elements=o.elements(ie)}var Se=QF.float32(H);oe({data:Se,usage:"dynamic"});var Le=QF.fract32(H,Se);return _e({data:Le,usage:"dynamic"}),Me({data:new Uint8Array(ke),type:"uint8",usage:"stream"}),H}},{marker:function(H,N,j){var re=N.activation;if(re.forEach(function(Le){return Le&&Le.destroy&&Le.destroy()}),re.length=0,!H||typeof H[0]=="number"){var oe=e.addMarker(H);re[oe]=!0}else{for(var _e=[],Me=0,ke=Math.min(H.length,N.count);Me=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,s=e.length;on*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};nv.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i{"use strict";dY.exports=rz;dY.exports.default=rz;function rz(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=$ze(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,l,u,c,f,h,d;if(n&&(a=cOt(e,t,a,r)),e.length>80*r){s=u=e[0],l=c=e[1];for(var v=r;vu&&(u=f),h>c&&(c=h);d=Math.max(u-s,c-l),d=d!==0?32767/d:0}return dC(a,o,r,s,l,d,0),o}function $ze(e,t,r,n,i){var a,o;if(i===hY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=Jze(a,e[a],e[a+1],o);return o&&iz(o,o.next)&&(pC(o),o=o.next),o}function J2(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(iz(r,r.next)||mh(r.prev,r,r.next)===0)){if(pC(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function dC(e,t,r,n,i,a,o){if(e){!o&&a&&pOt(e,n,i,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?sOt(e,n,i,a):oOt(e)){t.push(l.i/r|0),t.push(e.i/r|0),t.push(u.i/r|0),pC(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=lOt(J2(e),t,r),dC(e,t,r,n,i,a,2)):o===2&&uOt(e,t,r,n,i,a):dC(J2(e),t,r,n,i,a,1);break}}}}function oOt(e){var t=e.prev,r=e,n=e.next;if(mh(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,o=n.x,s=t.y,l=r.y,u=n.y,c=ia?i>o?i:o:a>o?a:o,d=s>l?s>u?s:u:l>u?l:u,v=n.next;v!==t;){if(v.x>=c&&v.x<=h&&v.y>=f&&v.y<=d&&s5(i,s,a,l,o,u,v.x,v.y)&&mh(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function sOt(e,t,r,n){var i=e.prev,a=e,o=e.next;if(mh(i,a,o)>=0)return!1;for(var s=i.x,l=a.x,u=o.x,c=i.y,f=a.y,h=o.y,d=sl?s>u?s:u:l>u?l:u,b=c>f?c>h?c:h:f>h?f:h,p=cY(d,v,t,r,n),C=cY(x,b,t,r,n),E=e.prevZ,A=e.nextZ;E&&E.z>=p&&A&&A.z<=C;){if(E.x>=d&&E.x<=x&&E.y>=v&&E.y<=b&&E!==i&&E!==o&&s5(s,c,l,f,u,h,E.x,E.y)&&mh(E.prev,E,E.next)>=0||(E=E.prevZ,A.x>=d&&A.x<=x&&A.y>=v&&A.y<=b&&A!==i&&A!==o&&s5(s,c,l,f,u,h,A.x,A.y)&&mh(A.prev,A,A.next)>=0))return!1;A=A.nextZ}for(;E&&E.z>=p;){if(E.x>=d&&E.x<=x&&E.y>=v&&E.y<=b&&E!==i&&E!==o&&s5(s,c,l,f,u,h,E.x,E.y)&&mh(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;A&&A.z<=C;){if(A.x>=d&&A.x<=x&&A.y>=v&&A.y<=b&&A!==i&&A!==o&&s5(s,c,l,f,u,h,A.x,A.y)&&mh(A.prev,A,A.next)>=0)return!1;A=A.nextZ}return!0}function lOt(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!iz(i,a)&&Qze(i,n,n.next,a)&&vC(i,a)&&vC(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),pC(n),pC(n.next),n=e=a),n=n.next}while(n!==e);return J2(n)}function uOt(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&yOt(o,s)){var l=e7e(o,s);o=J2(o,o.next),l=J2(l,l.next),dC(o,t,r,n,i,a,0),dC(l,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function cOt(e,t,r,n){var i=[],a,o,s,l,u;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a&&(a=s,o=r.x=r.x&&r.x>=u&&n!==r.x&&s5(io.x||r.x===o.x&&vOt(o,r)))&&(o=r,f=h)),r=r.next;while(r!==l);return o}function vOt(e,t){return mh(e.prev,e,t.prev)<0&&mh(t.next,e,e.next)<0}function pOt(e,t,r,n){var i=e;do i.z===0&&(i.z=cY(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,gOt(i)}function gOt(e){var t,r,n,i,a,o,s,l,u=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||l>0&&n;)s!==0&&(l===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,u*=2}while(o>1);return e}function cY(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function mOt(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(n-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function yOt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!_Ot(e,t)&&(vC(e,t)&&vC(t,e)&&xOt(e,t)&&(mh(e.prev,e,t.prev)||mh(e,t.prev,t))||iz(e,t)&&mh(e.prev,e,e.next)>0&&mh(t.prev,t,t.next)>0)}function mh(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function iz(e,t){return e.x===t.x&&e.y===t.y}function Qze(e,t,r,n){var i=tz(mh(e,t,r)),a=tz(mh(e,t,n)),o=tz(mh(r,n,e)),s=tz(mh(r,n,t));return!!(i!==a&&o!==s||i===0&&ez(e,r,t)||a===0&&ez(e,n,t)||o===0&&ez(r,e,n)||s===0&&ez(r,t,n))}function ez(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function tz(e){return e>0?1:e<0?-1:0}function _Ot(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&Qze(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function vC(e,t){return mh(e.prev,e,e.next)<0?mh(e,t,e.next)>=0&&mh(e,e.prev,t)>=0:mh(e,t,e.prev)<0||mh(e,e.next,t)<0}function xOt(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function e7e(e,t){var r=new fY(e.i,e.x,e.y),n=new fY(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Jze(e,t,r,n){var i=new fY(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function pC(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function fY(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}rz.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(hY(e,0,a,r));if(i)for(var s=0,l=t.length;s0&&(n+=e[i-1].length,r.holes.push(n))}return r}});var i7e=ye((Tmr,r7e)=>{"use strict";var bOt=j2();r7e.exports=wOt;function wOt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=bOt(e,t));for(var n=0;n{"use strict";n7e.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var s7e=ye((Smr,o7e)=>{"use strict";o7e.exports=function(){}});var sx=ye((Mmr,l7e)=>{"use strict";var TOt=s7e()();l7e.exports=function(e){return e!==TOt&&e!==null}});var vY=ye((Emr,c7e)=>{"use strict";var AOt=Object.create,SOt=Object.getPrototypeOf,u7e={};c7e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||AOt;return typeof e!="function"?!1:SOt(e(t(null),u7e))===u7e}});var pY=ye((Cmr,f7e)=>{"use strict";var MOt=sx(),EOt={function:!0,object:!0};f7e.exports=function(e){return MOt(e)&&EOt[typeof e]||!1}});var i1=ye((kmr,h7e)=>{"use strict";var COt=sx();h7e.exports=function(e){if(!COt(e))throw new TypeError("Cannot use null or undefined");return e}});var v7e=ye((Lmr,d7e)=>{"use strict";var gY=Object.create,nz;vY()()||(nz=mY());d7e.exports=function(){var e,t,r;return!nz||nz.level!==1?gY:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(n){if(n==="__proto__"){t[n]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[n]=r}),Object.defineProperties(e,t),Object.defineProperty(nz,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return gY(n===null?e:n,i)})}()});var mY=ye((Pmr,p7e)=>{"use strict";var kOt=pY(),LOt=i1(),POt=Object.prototype.isPrototypeOf,IOt=Object.defineProperty,ROt={configurable:!0,enumerable:!1,writable:!0,value:void 0},az;az=function(e,t){if(LOt(e),t===null||kOt(t))return e;throw new TypeError("Prototype must be null or an object")};p7e.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(az(n,i),i),n}):t=function(n,i){return az(n,i).__proto__=i,n}:t=function n(i,a){var o;return az(i,a),o=POt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&IOt(n.nullPolyfill,"__proto__",ROt),i},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),t={},r,n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{r=n.set,r.call(e,t)}catch(i){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)}());v7e()});var oz=ye((Imr,g7e)=>{"use strict";g7e.exports=vY()()?Object.setPrototypeOf:mY()});var y7e=ye((Rmr,m7e)=>{"use strict";var DOt=pY();m7e.exports=function(e){if(!DOt(e))throw new TypeError(e+" is not an Object");return e}});var x7e=ye((Dmr,_7e)=>{"use strict";var FOt=Object.create(null),zOt=Math.random;_7e.exports=function(){var e;do e=zOt().toString(36).slice(2);while(FOt[e]);return e}});var $2=ye((Fmr,b7e)=>{"use strict";var OOt=void 0;b7e.exports=function(e){return e!==OOt&&e!==null}});var sz=ye((zmr,w7e)=>{"use strict";var qOt=$2(),BOt={object:!0,function:!0,undefined:!0};w7e.exports=function(e){return qOt(e)?hasOwnProperty.call(BOt,typeof e):!1}});var A7e=ye((Omr,T7e)=>{"use strict";var NOt=sz();T7e.exports=function(e){if(!NOt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var M7e=ye((qmr,S7e)=>{"use strict";var UOt=A7e();S7e.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!UOt(e)}});var yY=ye((Bmr,E7e)=>{"use strict";var VOt=M7e(),GOt=/^\s*class[\s{/}]/,HOt=Function.prototype.toString;E7e.exports=function(e){return!(!VOt(e)||GOt.test(HOt.call(e)))}});var k7e=ye((Nmr,C7e)=>{"use strict";C7e.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var P7e=ye((Umr,L7e)=>{"use strict";L7e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var R7e=ye((Vmr,I7e)=>{"use strict";var jOt=sx(),WOt=Object.keys;I7e.exports=function(e){return WOt(jOt(e)?Object(e):e)}});var F7e=ye((Gmr,D7e)=>{"use strict";D7e.exports=P7e()()?Object.keys:R7e()});var O7e=ye((Hmr,z7e)=>{"use strict";var XOt=F7e(),ZOt=i1(),YOt=Math.max;z7e.exports=function(e,t){var r,n,i=YOt(arguments.length,2),a;for(e=Object(ZOt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";q7e.exports=k7e()()?Object.assign:O7e()});var _Y=ye((Wmr,B7e)=>{"use strict";var KOt=sx(),JOt=Array.prototype.forEach,$Ot=Object.create,QOt=function(e,t){var r;for(r in e)t[r]=e[r]};B7e.exports=function(e){var t=$Ot(null);return JOt.call(arguments,function(r){KOt(r)&&QOt(Object(r),t)}),t}});var U7e=ye((Xmr,N7e)=>{"use strict";var xY="razdwatrzy";N7e.exports=function(){return typeof xY.contains!="function"?!1:xY.contains("dwa")===!0&&xY.contains("foo")===!1}});var G7e=ye((Zmr,V7e)=>{"use strict";var eqt=String.prototype.indexOf;V7e.exports=function(e){return eqt.call(this,e,arguments[1])>-1}});var bY=ye((Ymr,H7e)=>{"use strict";H7e.exports=U7e()()?String.prototype.contains:G7e()});var n1=ye((Kmr,Z7e)=>{"use strict";var uz=$2(),j7e=yY(),W7e=lz(),X7e=_Y(),gC=bY(),tqt=Z7e.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],uz(e)?(r=gC.call(e,"c"),n=gC.call(e,"e"),i=gC.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?W7e(X7e(a),o):o};tqt.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],uz(t)?j7e(t)?uz(r)?j7e(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,uz(e)?(n=gC.call(e,"c"),i=gC.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?W7e(X7e(a),o):o}});var mC=ye((Jmr,K7e)=>{"use strict";var Y7e=Object.prototype.toString,rqt=Y7e.call(function(){return arguments}());K7e.exports=function(e){return Y7e.call(e)===rqt}});var yC=ye(($mr,$7e)=>{"use strict";var J7e=Object.prototype.toString,iqt=J7e.call("");$7e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||J7e.call(e)===iqt)||!1}});var e9e=ye((Qmr,Q7e)=>{"use strict";Q7e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var i9e=ye((eyr,r9e)=>{var t9e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};r9e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t9e()}try{return __global__||t9e()}finally{delete Object.prototype.__global__}}()});var _C=ye((tyr,n9e)=>{"use strict";n9e.exports=e9e()()?globalThis:i9e()});var o9e=ye((ryr,a9e)=>{"use strict";var nqt=_C(),wY={object:!0,symbol:!0};a9e.exports=function(){var e=nqt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!wY[typeof e.iterator]||!wY[typeof e.toPrimitive]||!wY[typeof e.toStringTag])}});var l9e=ye((iyr,s9e)=>{"use strict";s9e.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var TY=ye((nyr,u9e)=>{"use strict";var aqt=l9e();u9e.exports=function(e){if(!aqt(e))throw new TypeError(e+" is not a symbol");return e}});var v9e=ye((ayr,d9e)=>{"use strict";var c9e=n1(),oqt=Object.create,f9e=Object.defineProperty,sqt=Object.prototype,h9e=oqt(null);d9e.exports=function(e){for(var t=0,r,n;h9e[e+(t||"")];)++t;return e+=t||"",h9e[e]=!0,r="@@"+e,f9e(sqt,r,c9e.gs(null,function(i){n||(n=!0,f9e(this,r,c9e(i)),n=!1)})),r}});var g9e=ye((oyr,p9e)=>{"use strict";var Qg=n1(),zh=_C().Symbol;p9e.exports=function(e){return Object.defineProperties(e,{hasInstance:Qg("",zh&&zh.hasInstance||e("hasInstance")),isConcatSpreadable:Qg("",zh&&zh.isConcatSpreadable||e("isConcatSpreadable")),iterator:Qg("",zh&&zh.iterator||e("iterator")),match:Qg("",zh&&zh.match||e("match")),replace:Qg("",zh&&zh.replace||e("replace")),search:Qg("",zh&&zh.search||e("search")),species:Qg("",zh&&zh.species||e("species")),split:Qg("",zh&&zh.split||e("split")),toPrimitive:Qg("",zh&&zh.toPrimitive||e("toPrimitive")),toStringTag:Qg("",zh&&zh.toStringTag||e("toStringTag")),unscopables:Qg("",zh&&zh.unscopables||e("unscopables"))})}});var _9e=ye((syr,y9e)=>{"use strict";var m9e=n1(),lqt=TY(),xC=Object.create(null);y9e.exports=function(e){return Object.defineProperties(e,{for:m9e(function(t){return xC[t]?xC[t]:xC[t]=e(String(t))}),keyFor:m9e(function(t){var r;lqt(t);for(r in xC)if(xC[r]===t)return r})})}});var w9e=ye((lyr,b9e)=>{"use strict";var Zm=n1(),AY=TY(),cz=_C().Symbol,uqt=v9e(),cqt=g9e(),fqt=_9e(),hqt=Object.create,SY=Object.defineProperties,fz=Object.defineProperty,Wv,l5,x9e;if(typeof cz=="function")try{String(cz()),x9e=!0}catch(e){}else cz=null;l5=function(t){if(this instanceof l5)throw new TypeError("Symbol is not a constructor");return Wv(t)};b9e.exports=Wv=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return x9e?cz(t):(r=hqt(l5.prototype),t=t===void 0?"":String(t),SY(r,{__description__:Zm("",t),__name__:Zm("",uqt(t))}))};cqt(Wv);fqt(Wv);SY(l5.prototype,{constructor:Zm(Wv),toString:Zm("",function(){return this.__name__})});SY(Wv.prototype,{toString:Zm(function(){return"Symbol ("+AY(this).__description__+")"}),valueOf:Zm(function(){return AY(this)})});fz(Wv.prototype,Wv.toPrimitive,Zm("",function(){var e=AY(this);return typeof e=="symbol"?e:e.toString()}));fz(Wv.prototype,Wv.toStringTag,Zm("c","Symbol"));fz(l5.prototype,Wv.toStringTag,Zm("c",Wv.prototype[Wv.toStringTag]));fz(l5.prototype,Wv.toPrimitive,Zm("c",Wv.prototype[Wv.toPrimitive]))});var lx=ye((uyr,T9e)=>{"use strict";T9e.exports=o9e()()?_C().Symbol:w9e()});var S9e=ye((cyr,A9e)=>{"use strict";var dqt=i1();A9e.exports=function(){return dqt(this).length=0,this}});var u5=ye((fyr,M9e)=>{"use strict";M9e.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var C9e=ye((hyr,E9e)=>{"use strict";var vqt=$2(),pqt=sz(),gqt=Object.prototype.toString;E9e.exports=function(e){if(!vqt(e))return null;if(pqt(e)){var t=e.toString;if(typeof t!="function"||t===gqt)return null}try{return""+e}catch(r){return null}}});var L9e=ye((dyr,k9e)=>{"use strict";k9e.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var I9e=ye((vyr,P9e)=>{"use strict";var mqt=L9e(),yqt=/[\n\r\u2028\u2029]/g;P9e.exports=function(e){var t=mqt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(yqt,function(r){switch(r){case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var MY=ye((pyr,F9e)=>{"use strict";var R9e=$2(),_qt=sz(),xqt=C9e(),bqt=I9e(),D9e=function(e,t){return e.replace("%v",bqt(t))};F9e.exports=function(e,t,r){if(!_qt(r))throw new TypeError(D9e(t,e));if(!R9e(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=xqt(r.errorMessage);throw R9e(n)||(n=t),new TypeError(D9e(n,e))}});var O9e=ye((gyr,z9e)=>{"use strict";var wqt=MY(),Tqt=$2();z9e.exports=function(e){return Tqt(e)?e:wqt(e,"Cannot use %v",arguments[1])}});var B9e=ye((myr,q9e)=>{"use strict";var Aqt=MY(),Sqt=yY();q9e.exports=function(e){return Sqt(e)?e:Aqt(e,"%v is not a plain function",arguments[1])}});var U9e=ye((yyr,N9e)=>{"use strict";N9e.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var G9e=ye((_yr,V9e)=>{"use strict";var Mqt=Object.prototype.toString,Eqt=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);V9e.exports=function(e){return typeof e=="function"&&Eqt(Mqt.call(e))}});var j9e=ye((xyr,H9e)=>{"use strict";H9e.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var X9e=ye((byr,W9e)=>{"use strict";W9e.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var Y9e=ye((wyr,Z9e)=>{"use strict";Z9e.exports=j9e()()?Math.sign:X9e()});var J9e=ye((Tyr,K9e)=>{"use strict";var Cqt=Y9e(),kqt=Math.abs,Lqt=Math.floor;K9e.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:Cqt(e)*Lqt(kqt(e)))}});var Q9e=ye((Ayr,$9e)=>{"use strict";var Pqt=J9e(),Iqt=Math.max;$9e.exports=function(e){return Iqt(0,Pqt(e))}});var iOe=ye((Syr,rOe)=>{"use strict";var Rqt=lx().iterator,Dqt=mC(),Fqt=G9e(),zqt=Q9e(),eOe=u5(),Oqt=i1(),qqt=sx(),Bqt=yC(),tOe=Array.isArray,EY=Function.prototype.call,Q2={configurable:!0,enumerable:!0,writable:!0,value:null},CY=Object.defineProperty;rOe.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,l,u,c,f,h;if(e=Object(Oqt(e)),qqt(t)&&eOe(t),!this||this===Array||!Fqt(this)){if(!t){if(Dqt(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(tOe(e)){for(o=new Array(s=e.length),i=0;i=55296&&l<=56319&&(h+=e[++i])),h=t?EY.call(t,r,h,a):h,n?(Q2.value=h,CY(o,a,Q2)):o[a]=h,++a;s=a}}if(s===void 0)for(s=zqt(e.length),n&&(o=new n(s)),i=0;i{"use strict";nOe.exports=U9e()()?Array.from:iOe()});var sOe=ye((Eyr,oOe)=>{"use strict";var Nqt=aOe(),Uqt=lz(),Vqt=i1();oOe.exports=function(e){var t=Object(Vqt(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?Nqt(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):Uqt(i,e),i}});var cOe=ye((Cyr,uOe)=>{"use strict";var Gqt=u5(),Hqt=i1(),jqt=Function.prototype.bind,lOe=Function.prototype.call,Wqt=Object.keys,Xqt=Object.prototype.propertyIsEnumerable;uOe.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(Hqt(r)),Gqt(n),i=Wqt(r),o&&i.sort(typeof o=="function"?jqt.call(o,r):void 0),typeof e!="function"&&(e=i[e]),lOe.call(e,i,function(s,l){return Xqt.call(r,s)?lOe.call(n,a,r[s],s,r,l):t})}}});var hOe=ye((kyr,fOe)=>{"use strict";fOe.exports=cOe()("forEach")});var vOe=ye((Lyr,dOe)=>{"use strict";var Zqt=u5(),Yqt=hOe(),Kqt=Function.prototype.call;dOe.exports=function(e,t){var r={},n=arguments[2];return Zqt(t),Yqt(e,function(i,a,o,s){r[a]=Kqt.call(t,n,i,a,o,s)}),r}});var yOe=ye((Pyr,mOe)=>{"use strict";var Jqt=$2(),$qt=O9e(),pOe=B9e(),Qqt=sOe(),eBt=_Y(),tBt=vOe(),rBt=Function.prototype.bind,iBt=Object.defineProperty,nBt=Object.prototype.hasOwnProperty,gOe;gOe=function(e,t,r){var n=$qt(t)&&pOe(t.value),i;return i=Qqt(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&nBt.call(this,e)?n:(t.value=rBt.call(n,r.resolveContext?r.resolveContext(this):this),iBt(this,e,t),this[e])},i};mOe.exports=function(e){var t=eBt(arguments[1]);return Jqt(t.resolveContext)&&pOe(t.resolveContext),tBt(e,function(r,n){return gOe(n,r,t)})}});var kY=ye((Iyr,wOe)=>{"use strict";var aBt=S9e(),oBt=lz(),sBt=u5(),lBt=i1(),Op=n1(),uBt=yOe(),_Oe=lx(),xOe=Object.defineProperty,bOe=Object.defineProperties,bC;wOe.exports=bC=function(e,t){if(!(this instanceof bC))throw new TypeError("Constructor requires 'new'");bOe(this,{__list__:Op("w",lBt(e)),__context__:Op("w",t),__nextIndex__:Op("w",0)}),t&&(sBt(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete bC.prototype.constructor;bOe(bC.prototype,oBt({_next:Op(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){xOe(this,"__redo__",Op("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Op(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,n){r>e&&(this.__redo__[n]=--r)},this)))}),_onClear:Op(function(){this.__redo__&&aBt.call(this.__redo__),this.__nextIndex__=0})})));xOe(bC.prototype,_Oe.iterator,Op(function(){return this}))});var EOe=ye((Ryr,MOe)=>{"use strict";var TOe=oz(),AOe=bY(),LY=n1(),cBt=lx(),PY=kY(),SOe=Object.defineProperty,c5;c5=MOe.exports=function(e,t){if(!(this instanceof c5))throw new TypeError("Constructor requires 'new'");PY.call(this,e),t?AOe.call(t,"key+value")?t="key+value":AOe.call(t,"key")?t="key":t="value":t="value",SOe(this,"__kind__",LY("",t))};TOe&&TOe(c5,PY);delete c5.prototype.constructor;c5.prototype=Object.create(PY.prototype,{_resolve:LY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});SOe(c5.prototype,cBt.toStringTag,LY("c","Array Iterator"))});var POe=ye((Dyr,LOe)=>{"use strict";var COe=oz(),hz=n1(),fBt=lx(),IY=kY(),kOe=Object.defineProperty,f5;f5=LOe.exports=function(e){if(!(this instanceof f5))throw new TypeError("Constructor requires 'new'");e=String(e),IY.call(this,e),kOe(this,"__length__",hz("",e.length))};COe&&COe(f5,IY);delete f5.prototype.constructor;f5.prototype=Object.create(IY.prototype,{_next:hz(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});kOe(f5.prototype,fBt.toStringTag,hz("c","String Iterator"))});var ROe=ye((Fyr,IOe)=>{"use strict";var hBt=mC(),dBt=sx(),vBt=yC(),pBt=lx().iterator,gBt=Array.isArray;IOe.exports=function(e){return dBt(e)?gBt(e)||vBt(e)||hBt(e)?!0:typeof e[pBt]=="function":!1}});var FOe=ye((zyr,DOe)=>{"use strict";var mBt=ROe();DOe.exports=function(e){if(!mBt(e))throw new TypeError(e+" is not iterable");return e}});var RY=ye((Oyr,qOe)=>{"use strict";var yBt=mC(),_Bt=yC(),zOe=EOe(),xBt=POe(),bBt=FOe(),OOe=lx().iterator;qOe.exports=function(e){return typeof bBt(e)[OOe]=="function"?e[OOe]():yBt(e)?new zOe(e):_Bt(e)?new xBt(e):new zOe(e)}});var NOe=ye((qyr,BOe)=>{"use strict";var wBt=mC(),TBt=u5(),ABt=yC(),SBt=RY(),MBt=Array.isArray,DY=Function.prototype.call,EBt=Array.prototype.some;BOe.exports=function(e,t){var r,n=arguments[2],i,a,o,s,l,u,c;if(MBt(e)||wBt(e)?r="array":ABt(e)?r="string":e=SBt(e),TBt(t),a=function(){o=!0},r==="array"){EBt.call(e,function(f){return DY.call(t,n,f,a),o});return}if(r==="string"){for(l=e.length,s=0;s=55296&&c<=56319&&(u+=e[++s])),DY.call(t,n,u,a),!o);++s);return}for(i=e.next();!i.done;){if(DY.call(t,n,i.value,a),o)return;i=e.next()}}});var VOe=ye((Byr,UOe)=>{"use strict";UOe.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var jOe=ye((Nyr,HOe)=>{"use strict";var CBt=sx(),vz=oz(),dz=y7e(),kBt=i1(),LBt=x7e(),a1=n1(),PBt=RY(),IBt=NOe(),RBt=lx().toStringTag,GOe=VOe(),DBt=Array.isArray,zY=Object.defineProperty,FY=Object.prototype.hasOwnProperty,FBt=Object.getPrototypeOf,ux;HOe.exports=ux=function(){var e=arguments[0],t;if(!(this instanceof ux))throw new TypeError("Constructor requires 'new'");return t=GOe&&vz&&WeakMap!==ux?vz(new WeakMap,FBt(this)):this,CBt(e)&&(DBt(e)||(e=PBt(e))),zY(t,"__weakMapData__",a1("c","$weakMap$"+LBt())),e&&IBt(e,function(r){kBt(r),t.set(r[0],r[1])}),t};GOe&&(vz&&vz(ux,WeakMap),ux.prototype=Object.create(WeakMap.prototype,{constructor:a1(ux)}));Object.defineProperties(ux.prototype,{delete:a1(function(e){return FY.call(dz(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:a1(function(e){if(FY.call(dz(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:a1(function(e){return FY.call(dz(e),this.__weakMapData__)}),set:a1(function(e,t){return zY(dz(e),this.__weakMapData__,a1("c",t)),this}),toString:a1(function(){return"[object WeakMap]"})});zY(ux.prototype,RBt,a1("c","WeakMap"))});var OY=ye((Uyr,WOe)=>{"use strict";WOe.exports=a7e()()?WeakMap:jOe()});var ZOe=ye((Vyr,XOe)=>{"use strict";XOe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a{"use strict";var pz=J_(),zBt=j2(),BY=Fh(),OBt=Xm(),qBt=W2(),YOe=t7e(),BBt=i7e(),{float32:NBt,fract32:qY}=JF(),UBt=OY(),KOe=e5(),VBt=ZOe(),GBt=` +`]),Kze&&(v.frag=v.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(v)}nv.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};nv.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};nv.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;nre)?N.tree=tOt(H,{bounds:me}):re&&re.length&&(N.tree=re),N.tree){var ie={primitive:"points",usage:"static",data:N.tree,type:"uint32"};N.elements?N.elements(ie):N.elements=o.elements(ie)}var Se=QF.float32(H);oe({data:Se,usage:"dynamic"});var Le=QF.fract32(H,Se);return _e({data:Le,usage:"dynamic"}),Me({data:new Uint8Array(ke),type:"uint8",usage:"stream"}),H}},{marker:function(H,N,j){var re=N.activation;if(re.forEach(function(Le){return Le&&Le.destroy&&Le.destroy()}),re.length=0,!H||typeof H[0]=="number"){var oe=e.addMarker(H);re[oe]=!0}else{for(var _e=[],Me=0,ke=Math.min(H.length,N.count);Me=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,s=e.length;on*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};nv.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i{"use strict";dY.exports=rz;dY.exports.default=rz;function rz(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=e7e(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,l,u,c,f,h,d;if(n&&(a=dOt(e,t,a,r)),e.length>80*r){s=u=e[0],l=c=e[1];for(var v=r;vu&&(u=f),h>c&&(c=h);d=Math.max(u-s,c-l),d=d!==0?32767/d:0}return vC(a,o,r,s,l,d,0),o}function e7e(e,t,r,n,i){var a,o;if(i===hY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=Qze(a,e[a],e[a+1],o);return o&&iz(o,o.next)&&(gC(o),o=o.next),o}function J2(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(iz(r,r.next)||yh(r.prev,r,r.next)===0)){if(gC(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function vC(e,t,r,n,i,a,o){if(e){!o&&a&&yOt(e,n,i,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?cOt(e,n,i,a):uOt(e)){t.push(l.i/r|0),t.push(e.i/r|0),t.push(u.i/r|0),gC(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=fOt(J2(e),t,r),vC(e,t,r,n,i,a,2)):o===2&&hOt(e,t,r,n,i,a):vC(J2(e),t,r,n,i,a,1);break}}}}function uOt(e){var t=e.prev,r=e,n=e.next;if(yh(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,o=n.x,s=t.y,l=r.y,u=n.y,c=ia?i>o?i:o:a>o?a:o,d=s>l?s>u?s:u:l>u?l:u,v=n.next;v!==t;){if(v.x>=c&&v.x<=h&&v.y>=f&&v.y<=d&&l5(i,s,a,l,o,u,v.x,v.y)&&yh(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function cOt(e,t,r,n){var i=e.prev,a=e,o=e.next;if(yh(i,a,o)>=0)return!1;for(var s=i.x,l=a.x,u=o.x,c=i.y,f=a.y,h=o.y,d=sl?s>u?s:u:l>u?l:u,b=c>f?c>h?c:h:f>h?f:h,p=cY(d,v,t,r,n),C=cY(_,b,t,r,n),E=e.prevZ,A=e.nextZ;E&&E.z>=p&&A&&A.z<=C;){if(E.x>=d&&E.x<=_&&E.y>=v&&E.y<=b&&E!==i&&E!==o&&l5(s,c,l,f,u,h,E.x,E.y)&&yh(E.prev,E,E.next)>=0||(E=E.prevZ,A.x>=d&&A.x<=_&&A.y>=v&&A.y<=b&&A!==i&&A!==o&&l5(s,c,l,f,u,h,A.x,A.y)&&yh(A.prev,A,A.next)>=0))return!1;A=A.nextZ}for(;E&&E.z>=p;){if(E.x>=d&&E.x<=_&&E.y>=v&&E.y<=b&&E!==i&&E!==o&&l5(s,c,l,f,u,h,E.x,E.y)&&yh(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;A&&A.z<=C;){if(A.x>=d&&A.x<=_&&A.y>=v&&A.y<=b&&A!==i&&A!==o&&l5(s,c,l,f,u,h,A.x,A.y)&&yh(A.prev,A,A.next)>=0)return!1;A=A.nextZ}return!0}function fOt(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!iz(i,a)&&t7e(i,n,n.next,a)&&pC(i,a)&&pC(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),gC(n),gC(n.next),n=e=a),n=n.next}while(n!==e);return J2(n)}function hOt(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&bOt(o,s)){var l=r7e(o,s);o=J2(o,o.next),l=J2(l,l.next),vC(o,t,r,n,i,a,0),vC(l,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function dOt(e,t,r,n){var i=[],a,o,s,l,u;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a&&(a=s,o=r.x=r.x&&r.x>=u&&n!==r.x&&l5(io.x||r.x===o.x&&mOt(o,r)))&&(o=r,f=h)),r=r.next;while(r!==l);return o}function mOt(e,t){return yh(e.prev,e,t.prev)<0&&yh(t.next,e,e.next)<0}function yOt(e,t,r,n){var i=e;do i.z===0&&(i.z=cY(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,_Ot(i)}function _Ot(e){var t,r,n,i,a,o,s,l,u=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||l>0&&n;)s!==0&&(l===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,u*=2}while(o>1);return e}function cY(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function xOt(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(n-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function bOt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!wOt(e,t)&&(pC(e,t)&&pC(t,e)&&TOt(e,t)&&(yh(e.prev,e,t.prev)||yh(e,t.prev,t))||iz(e,t)&&yh(e.prev,e,e.next)>0&&yh(t.prev,t,t.next)>0)}function yh(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function iz(e,t){return e.x===t.x&&e.y===t.y}function t7e(e,t,r,n){var i=tz(yh(e,t,r)),a=tz(yh(e,t,n)),o=tz(yh(r,n,e)),s=tz(yh(r,n,t));return!!(i!==a&&o!==s||i===0&&ez(e,r,t)||a===0&&ez(e,n,t)||o===0&&ez(r,e,n)||s===0&&ez(r,t,n))}function ez(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function tz(e){return e>0?1:e<0?-1:0}function wOt(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&t7e(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function pC(e,t){return yh(e.prev,e,e.next)<0?yh(e,t,e.next)>=0&&yh(e,e.prev,t)>=0:yh(e,t,e.prev)<0||yh(e,e.next,t)<0}function TOt(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function r7e(e,t){var r=new fY(e.i,e.x,e.y),n=new fY(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Qze(e,t,r,n){var i=new fY(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function gC(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function fY(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}rz.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(hY(e,0,a,r));if(i)for(var s=0,l=t.length;s0&&(n+=e[i-1].length,r.holes.push(n))}return r}});var a7e=ye((Smr,n7e)=>{"use strict";var AOt=j2();n7e.exports=SOt;function SOt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=AOt(e,t));for(var n=0;n{"use strict";o7e.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var u7e=ye((Emr,l7e)=>{"use strict";l7e.exports=function(){}});var sx=ye((Cmr,c7e)=>{"use strict";var MOt=u7e()();c7e.exports=function(e){return e!==MOt&&e!==null}});var vY=ye((kmr,h7e)=>{"use strict";var EOt=Object.create,COt=Object.getPrototypeOf,f7e={};h7e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||EOt;return typeof e!="function"?!1:COt(e(t(null),f7e))===f7e}});var pY=ye((Lmr,d7e)=>{"use strict";var kOt=sx(),LOt={function:!0,object:!0};d7e.exports=function(e){return kOt(e)&&LOt[typeof e]||!1}});var i1=ye((Pmr,v7e)=>{"use strict";var POt=sx();v7e.exports=function(e){if(!POt(e))throw new TypeError("Cannot use null or undefined");return e}});var g7e=ye((Imr,p7e)=>{"use strict";var gY=Object.create,nz;vY()()||(nz=mY());p7e.exports=function(){var e,t,r;return!nz||nz.level!==1?gY:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(n){if(n==="__proto__"){t[n]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[n]=r}),Object.defineProperties(e,t),Object.defineProperty(nz,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return gY(n===null?e:n,i)})}()});var mY=ye((Rmr,m7e)=>{"use strict";var IOt=pY(),ROt=i1(),DOt=Object.prototype.isPrototypeOf,FOt=Object.defineProperty,zOt={configurable:!0,enumerable:!1,writable:!0,value:void 0},az;az=function(e,t){if(ROt(e),t===null||IOt(t))return e;throw new TypeError("Prototype must be null or an object")};m7e.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(az(n,i),i),n}):t=function(n,i){return az(n,i).__proto__=i,n}:t=function n(i,a){var o;return az(i,a),o=DOt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&FOt(n.nullPolyfill,"__proto__",zOt),i},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),t={},r,n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{r=n.set,r.call(e,t)}catch(i){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)}());g7e()});var oz=ye((Dmr,y7e)=>{"use strict";y7e.exports=vY()()?Object.setPrototypeOf:mY()});var x7e=ye((Fmr,_7e)=>{"use strict";var OOt=pY();_7e.exports=function(e){if(!OOt(e))throw new TypeError(e+" is not an Object");return e}});var w7e=ye((zmr,b7e)=>{"use strict";var qOt=Object.create(null),BOt=Math.random;b7e.exports=function(){var e;do e=BOt().toString(36).slice(2);while(qOt[e]);return e}});var $2=ye((Omr,T7e)=>{"use strict";var NOt=void 0;T7e.exports=function(e){return e!==NOt&&e!==null}});var sz=ye((qmr,A7e)=>{"use strict";var UOt=$2(),VOt={object:!0,function:!0,undefined:!0};A7e.exports=function(e){return UOt(e)?hasOwnProperty.call(VOt,typeof e):!1}});var M7e=ye((Bmr,S7e)=>{"use strict";var GOt=sz();S7e.exports=function(e){if(!GOt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var C7e=ye((Nmr,E7e)=>{"use strict";var HOt=M7e();E7e.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!HOt(e)}});var yY=ye((Umr,k7e)=>{"use strict";var jOt=C7e(),WOt=/^\s*class[\s{/}]/,XOt=Function.prototype.toString;k7e.exports=function(e){return!(!jOt(e)||WOt.test(XOt.call(e)))}});var P7e=ye((Vmr,L7e)=>{"use strict";L7e.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var R7e=ye((Gmr,I7e)=>{"use strict";I7e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var F7e=ye((Hmr,D7e)=>{"use strict";var ZOt=sx(),YOt=Object.keys;D7e.exports=function(e){return YOt(ZOt(e)?Object(e):e)}});var O7e=ye((jmr,z7e)=>{"use strict";z7e.exports=R7e()()?Object.keys:F7e()});var B7e=ye((Wmr,q7e)=>{"use strict";var KOt=O7e(),JOt=i1(),$Ot=Math.max;q7e.exports=function(e,t){var r,n,i=$Ot(arguments.length,2),a;for(e=Object(JOt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";N7e.exports=P7e()()?Object.assign:B7e()});var _Y=ye((Zmr,U7e)=>{"use strict";var QOt=sx(),eqt=Array.prototype.forEach,tqt=Object.create,rqt=function(e,t){var r;for(r in e)t[r]=e[r]};U7e.exports=function(e){var t=tqt(null);return eqt.call(arguments,function(r){QOt(r)&&rqt(Object(r),t)}),t}});var G7e=ye((Ymr,V7e)=>{"use strict";var xY="razdwatrzy";V7e.exports=function(){return typeof xY.contains!="function"?!1:xY.contains("dwa")===!0&&xY.contains("foo")===!1}});var j7e=ye((Kmr,H7e)=>{"use strict";var iqt=String.prototype.indexOf;H7e.exports=function(e){return iqt.call(this,e,arguments[1])>-1}});var bY=ye((Jmr,W7e)=>{"use strict";W7e.exports=G7e()()?String.prototype.contains:j7e()});var n1=ye(($mr,K7e)=>{"use strict";var uz=$2(),X7e=yY(),Z7e=lz(),Y7e=_Y(),mC=bY(),nqt=K7e.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],uz(e)?(r=mC.call(e,"c"),n=mC.call(e,"e"),i=mC.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?Z7e(Y7e(a),o):o};nqt.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],uz(t)?X7e(t)?uz(r)?X7e(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,uz(e)?(n=mC.call(e,"c"),i=mC.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?Z7e(Y7e(a),o):o}});var yC=ye((Qmr,$7e)=>{"use strict";var J7e=Object.prototype.toString,aqt=J7e.call(function(){return arguments}());$7e.exports=function(e){return J7e.call(e)===aqt}});var _C=ye((eyr,e9e)=>{"use strict";var Q7e=Object.prototype.toString,oqt=Q7e.call("");e9e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||Q7e.call(e)===oqt)||!1}});var r9e=ye((tyr,t9e)=>{"use strict";t9e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var a9e=ye((ryr,n9e)=>{var i9e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};n9e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return i9e()}try{return __global__||i9e()}finally{delete Object.prototype.__global__}}()});var xC=ye((iyr,o9e)=>{"use strict";o9e.exports=r9e()()?globalThis:a9e()});var l9e=ye((nyr,s9e)=>{"use strict";var sqt=xC(),wY={object:!0,symbol:!0};s9e.exports=function(){var e=sqt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!wY[typeof e.iterator]||!wY[typeof e.toPrimitive]||!wY[typeof e.toStringTag])}});var c9e=ye((ayr,u9e)=>{"use strict";u9e.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var TY=ye((oyr,f9e)=>{"use strict";var lqt=c9e();f9e.exports=function(e){if(!lqt(e))throw new TypeError(e+" is not a symbol");return e}});var g9e=ye((syr,p9e)=>{"use strict";var h9e=n1(),uqt=Object.create,d9e=Object.defineProperty,cqt=Object.prototype,v9e=uqt(null);p9e.exports=function(e){for(var t=0,r,n;v9e[e+(t||"")];)++t;return e+=t||"",v9e[e]=!0,r="@@"+e,d9e(cqt,r,h9e.gs(null,function(i){n||(n=!0,d9e(this,r,h9e(i)),n=!1)})),r}});var y9e=ye((lyr,m9e)=>{"use strict";var Qg=n1(),zh=xC().Symbol;m9e.exports=function(e){return Object.defineProperties(e,{hasInstance:Qg("",zh&&zh.hasInstance||e("hasInstance")),isConcatSpreadable:Qg("",zh&&zh.isConcatSpreadable||e("isConcatSpreadable")),iterator:Qg("",zh&&zh.iterator||e("iterator")),match:Qg("",zh&&zh.match||e("match")),replace:Qg("",zh&&zh.replace||e("replace")),search:Qg("",zh&&zh.search||e("search")),species:Qg("",zh&&zh.species||e("species")),split:Qg("",zh&&zh.split||e("split")),toPrimitive:Qg("",zh&&zh.toPrimitive||e("toPrimitive")),toStringTag:Qg("",zh&&zh.toStringTag||e("toStringTag")),unscopables:Qg("",zh&&zh.unscopables||e("unscopables"))})}});var b9e=ye((uyr,x9e)=>{"use strict";var _9e=n1(),fqt=TY(),bC=Object.create(null);x9e.exports=function(e){return Object.defineProperties(e,{for:_9e(function(t){return bC[t]?bC[t]:bC[t]=e(String(t))}),keyFor:_9e(function(t){var r;fqt(t);for(r in bC)if(bC[r]===t)return r})})}});var A9e=ye((cyr,T9e)=>{"use strict";var Zm=n1(),AY=TY(),cz=xC().Symbol,hqt=g9e(),dqt=y9e(),vqt=b9e(),pqt=Object.create,SY=Object.defineProperties,fz=Object.defineProperty,Xv,u5,w9e;if(typeof cz=="function")try{String(cz()),w9e=!0}catch(e){}else cz=null;u5=function(t){if(this instanceof u5)throw new TypeError("Symbol is not a constructor");return Xv(t)};T9e.exports=Xv=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return w9e?cz(t):(r=pqt(u5.prototype),t=t===void 0?"":String(t),SY(r,{__description__:Zm("",t),__name__:Zm("",hqt(t))}))};dqt(Xv);vqt(Xv);SY(u5.prototype,{constructor:Zm(Xv),toString:Zm("",function(){return this.__name__})});SY(Xv.prototype,{toString:Zm(function(){return"Symbol ("+AY(this).__description__+")"}),valueOf:Zm(function(){return AY(this)})});fz(Xv.prototype,Xv.toPrimitive,Zm("",function(){var e=AY(this);return typeof e=="symbol"?e:e.toString()}));fz(Xv.prototype,Xv.toStringTag,Zm("c","Symbol"));fz(u5.prototype,Xv.toStringTag,Zm("c",Xv.prototype[Xv.toStringTag]));fz(u5.prototype,Xv.toPrimitive,Zm("c",Xv.prototype[Xv.toPrimitive]))});var lx=ye((fyr,S9e)=>{"use strict";S9e.exports=l9e()()?xC().Symbol:A9e()});var E9e=ye((hyr,M9e)=>{"use strict";var gqt=i1();M9e.exports=function(){return gqt(this).length=0,this}});var c5=ye((dyr,C9e)=>{"use strict";C9e.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var L9e=ye((vyr,k9e)=>{"use strict";var mqt=$2(),yqt=sz(),_qt=Object.prototype.toString;k9e.exports=function(e){if(!mqt(e))return null;if(yqt(e)){var t=e.toString;if(typeof t!="function"||t===_qt)return null}try{return""+e}catch(r){return null}}});var I9e=ye((pyr,P9e)=>{"use strict";P9e.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var D9e=ye((gyr,R9e)=>{"use strict";var xqt=I9e(),bqt=/[\n\r\u2028\u2029]/g;R9e.exports=function(e){var t=xqt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(bqt,function(r){switch(r){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var MY=ye((myr,O9e)=>{"use strict";var F9e=$2(),wqt=sz(),Tqt=L9e(),Aqt=D9e(),z9e=function(e,t){return e.replace("%v",Aqt(t))};O9e.exports=function(e,t,r){if(!wqt(r))throw new TypeError(z9e(t,e));if(!F9e(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=Tqt(r.errorMessage);throw F9e(n)||(n=t),new TypeError(z9e(n,e))}});var B9e=ye((yyr,q9e)=>{"use strict";var Sqt=MY(),Mqt=$2();q9e.exports=function(e){return Mqt(e)?e:Sqt(e,"Cannot use %v",arguments[1])}});var U9e=ye((_yr,N9e)=>{"use strict";var Eqt=MY(),Cqt=yY();N9e.exports=function(e){return Cqt(e)?e:Eqt(e,"%v is not a plain function",arguments[1])}});var G9e=ye((xyr,V9e)=>{"use strict";V9e.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var j9e=ye((byr,H9e)=>{"use strict";var kqt=Object.prototype.toString,Lqt=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);H9e.exports=function(e){return typeof e=="function"&&Lqt(kqt.call(e))}});var X9e=ye((wyr,W9e)=>{"use strict";W9e.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var Y9e=ye((Tyr,Z9e)=>{"use strict";Z9e.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var J9e=ye((Ayr,K9e)=>{"use strict";K9e.exports=X9e()()?Math.sign:Y9e()});var Q9e=ye((Syr,$9e)=>{"use strict";var Pqt=J9e(),Iqt=Math.abs,Rqt=Math.floor;$9e.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:Pqt(e)*Rqt(Iqt(e)))}});var tOe=ye((Myr,eOe)=>{"use strict";var Dqt=Q9e(),Fqt=Math.max;eOe.exports=function(e){return Fqt(0,Dqt(e))}});var aOe=ye((Eyr,nOe)=>{"use strict";var zqt=lx().iterator,Oqt=yC(),qqt=j9e(),Bqt=tOe(),rOe=c5(),Nqt=i1(),Uqt=sx(),Vqt=_C(),iOe=Array.isArray,EY=Function.prototype.call,Q2={configurable:!0,enumerable:!0,writable:!0,value:null},CY=Object.defineProperty;nOe.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,l,u,c,f,h;if(e=Object(Nqt(e)),Uqt(t)&&rOe(t),!this||this===Array||!qqt(this)){if(!t){if(Oqt(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(iOe(e)){for(o=new Array(s=e.length),i=0;i=55296&&l<=56319&&(h+=e[++i])),h=t?EY.call(t,r,h,a):h,n?(Q2.value=h,CY(o,a,Q2)):o[a]=h,++a;s=a}}if(s===void 0)for(s=Bqt(e.length),n&&(o=new n(s)),i=0;i{"use strict";oOe.exports=G9e()()?Array.from:aOe()});var uOe=ye((kyr,lOe)=>{"use strict";var Gqt=sOe(),Hqt=lz(),jqt=i1();lOe.exports=function(e){var t=Object(jqt(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?Gqt(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):Hqt(i,e),i}});var hOe=ye((Lyr,fOe)=>{"use strict";var Wqt=c5(),Xqt=i1(),Zqt=Function.prototype.bind,cOe=Function.prototype.call,Yqt=Object.keys,Kqt=Object.prototype.propertyIsEnumerable;fOe.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(Xqt(r)),Wqt(n),i=Yqt(r),o&&i.sort(typeof o=="function"?Zqt.call(o,r):void 0),typeof e!="function"&&(e=i[e]),cOe.call(e,i,function(s,l){return Kqt.call(r,s)?cOe.call(n,a,r[s],s,r,l):t})}}});var vOe=ye((Pyr,dOe)=>{"use strict";dOe.exports=hOe()("forEach")});var gOe=ye((Iyr,pOe)=>{"use strict";var Jqt=c5(),$qt=vOe(),Qqt=Function.prototype.call;pOe.exports=function(e,t){var r={},n=arguments[2];return Jqt(t),$qt(e,function(i,a,o,s){r[a]=Qqt.call(t,n,i,a,o,s)}),r}});var xOe=ye((Ryr,_Oe)=>{"use strict";var eBt=$2(),tBt=B9e(),mOe=U9e(),rBt=uOe(),iBt=_Y(),nBt=gOe(),aBt=Function.prototype.bind,oBt=Object.defineProperty,sBt=Object.prototype.hasOwnProperty,yOe;yOe=function(e,t,r){var n=tBt(t)&&mOe(t.value),i;return i=rBt(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&sBt.call(this,e)?n:(t.value=aBt.call(n,r.resolveContext?r.resolveContext(this):this),oBt(this,e,t),this[e])},i};_Oe.exports=function(e){var t=iBt(arguments[1]);return eBt(t.resolveContext)&&mOe(t.resolveContext),nBt(e,function(r,n){return yOe(n,r,t)})}});var kY=ye((Dyr,AOe)=>{"use strict";var lBt=E9e(),uBt=lz(),cBt=c5(),fBt=i1(),Op=n1(),hBt=xOe(),bOe=lx(),wOe=Object.defineProperty,TOe=Object.defineProperties,wC;AOe.exports=wC=function(e,t){if(!(this instanceof wC))throw new TypeError("Constructor requires 'new'");TOe(this,{__list__:Op("w",fBt(e)),__context__:Op("w",t),__nextIndex__:Op("w",0)}),t&&(cBt(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete wC.prototype.constructor;TOe(wC.prototype,uBt({_next:Op(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){wOe(this,"__redo__",Op("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Op(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,n){r>e&&(this.__redo__[n]=--r)},this)))}),_onClear:Op(function(){this.__redo__&&lBt.call(this.__redo__),this.__nextIndex__=0})})));wOe(wC.prototype,bOe.iterator,Op(function(){return this}))});var kOe=ye((Fyr,COe)=>{"use strict";var SOe=oz(),MOe=bY(),LY=n1(),dBt=lx(),PY=kY(),EOe=Object.defineProperty,f5;f5=COe.exports=function(e,t){if(!(this instanceof f5))throw new TypeError("Constructor requires 'new'");PY.call(this,e),t?MOe.call(t,"key+value")?t="key+value":MOe.call(t,"key")?t="key":t="value":t="value",EOe(this,"__kind__",LY("",t))};SOe&&SOe(f5,PY);delete f5.prototype.constructor;f5.prototype=Object.create(PY.prototype,{_resolve:LY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});EOe(f5.prototype,dBt.toStringTag,LY("c","Array Iterator"))});var ROe=ye((zyr,IOe)=>{"use strict";var LOe=oz(),hz=n1(),vBt=lx(),IY=kY(),POe=Object.defineProperty,h5;h5=IOe.exports=function(e){if(!(this instanceof h5))throw new TypeError("Constructor requires 'new'");e=String(e),IY.call(this,e),POe(this,"__length__",hz("",e.length))};LOe&&LOe(h5,IY);delete h5.prototype.constructor;h5.prototype=Object.create(IY.prototype,{_next:hz(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});POe(h5.prototype,vBt.toStringTag,hz("c","String Iterator"))});var FOe=ye((Oyr,DOe)=>{"use strict";var pBt=yC(),gBt=sx(),mBt=_C(),yBt=lx().iterator,_Bt=Array.isArray;DOe.exports=function(e){return gBt(e)?_Bt(e)||mBt(e)||pBt(e)?!0:typeof e[yBt]=="function":!1}});var OOe=ye((qyr,zOe)=>{"use strict";var xBt=FOe();zOe.exports=function(e){if(!xBt(e))throw new TypeError(e+" is not iterable");return e}});var RY=ye((Byr,NOe)=>{"use strict";var bBt=yC(),wBt=_C(),qOe=kOe(),TBt=ROe(),ABt=OOe(),BOe=lx().iterator;NOe.exports=function(e){return typeof ABt(e)[BOe]=="function"?e[BOe]():bBt(e)?new qOe(e):wBt(e)?new TBt(e):new qOe(e)}});var VOe=ye((Nyr,UOe)=>{"use strict";var SBt=yC(),MBt=c5(),EBt=_C(),CBt=RY(),kBt=Array.isArray,DY=Function.prototype.call,LBt=Array.prototype.some;UOe.exports=function(e,t){var r,n=arguments[2],i,a,o,s,l,u,c;if(kBt(e)||SBt(e)?r="array":EBt(e)?r="string":e=CBt(e),MBt(t),a=function(){o=!0},r==="array"){LBt.call(e,function(f){return DY.call(t,n,f,a),o});return}if(r==="string"){for(l=e.length,s=0;s=55296&&c<=56319&&(u+=e[++s])),DY.call(t,n,u,a),!o);++s);return}for(i=e.next();!i.done;){if(DY.call(t,n,i.value,a),o)return;i=e.next()}}});var HOe=ye((Uyr,GOe)=>{"use strict";GOe.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var XOe=ye((Vyr,WOe)=>{"use strict";var PBt=sx(),vz=oz(),dz=x7e(),IBt=i1(),RBt=w7e(),a1=n1(),DBt=RY(),FBt=VOe(),zBt=lx().toStringTag,jOe=HOe(),OBt=Array.isArray,zY=Object.defineProperty,FY=Object.prototype.hasOwnProperty,qBt=Object.getPrototypeOf,ux;WOe.exports=ux=function(){var e=arguments[0],t;if(!(this instanceof ux))throw new TypeError("Constructor requires 'new'");return t=jOe&&vz&&WeakMap!==ux?vz(new WeakMap,qBt(this)):this,PBt(e)&&(OBt(e)||(e=DBt(e))),zY(t,"__weakMapData__",a1("c","$weakMap$"+RBt())),e&&FBt(e,function(r){IBt(r),t.set(r[0],r[1])}),t};jOe&&(vz&&vz(ux,WeakMap),ux.prototype=Object.create(WeakMap.prototype,{constructor:a1(ux)}));Object.defineProperties(ux.prototype,{delete:a1(function(e){return FY.call(dz(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:a1(function(e){if(FY.call(dz(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:a1(function(e){return FY.call(dz(e),this.__weakMapData__)}),set:a1(function(e,t){return zY(dz(e),this.__weakMapData__,a1("c",t)),this}),toString:a1(function(){return"[object WeakMap]"})});zY(ux.prototype,zBt,a1("c","WeakMap"))});var OY=ye((Gyr,ZOe)=>{"use strict";ZOe.exports=s7e()()?WeakMap:XOe()});var KOe=ye((Hyr,YOe)=>{"use strict";YOe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a{"use strict";var pz=J_(),BBt=j2(),BY=Fh(),NBt=Xm(),UBt=W2(),JOe=i7e(),VBt=a7e(),{float32:GBt,fract32:qY}=JF(),HBt=OY(),$Oe=t5(),jBt=KOe(),WBt=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -2247,7 +2247,7 @@ void main() { fragColor = color / 255.; } -`,HBt=` +`,XBt=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id; @@ -2265,7 +2265,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`,jBt=` +`,ZBt=` precision highp float; attribute vec2 position, positionFract; @@ -2293,14 +2293,14 @@ void main() { fragColor = color / 255.; fragColor.a *= opacity; } -`,WBt=` +`,YBt=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } -`,XBt=` +`,KBt=` precision highp float; attribute vec2 aCoord, bCoord, nextCoord, prevCoord; @@ -2504,7 +2504,7 @@ void main() { } } } -`,ZBt=` +`,JBt=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; @@ -2584,7 +2584,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`;JOe.exports=Wc;function Wc(e,t){if(!(this instanceof Wc))return new Wc(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Wc.shaders.has(e)?Wc.shaders.get(e):Wc.shaders.set(e,Wc.createShaders(e)).get(e),this.update(t)}Wc.dashMult=2;Wc.maxPatternLength=256;Wc.precisionThreshold=3e6;Wc.maxPoints=1e4;Wc.maxLines=2048;Wc.shaders=new UBt;Wc.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(BY({vert:GBt,frag:HBt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(BY({cull:{enable:!0,face:"back"},vert:XBt,frag:ZBt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){i=n}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:jBt,frag:WBt,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Wc.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Wc.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Wc.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Wc.precisionThreshold||t.scale[1]*t.viewport.height>Wc.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Wc.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Wc.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=OBt(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=BY({},Wc.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,aL-_),C=[],E=0,A=o.hole!=null?o.hole[0]:null;if(A!=null){let L=VBt(p,_=>_>=A);p=p.slice(0,L),p.push(A)}for(let L=0;Lg-A+(p[L]-E)),M=YOe(_,k);M=M.map(g=>g+E+(g+E{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var rqe=ye((Hyr,tqe)=>{"use strict";var YBt=j2(),KBt=J_(),JBt=sY(),$Bt=Xm(),$Oe=Fh(),QOe=W2(),{float32:QBt,fract32:UY}=JF();tqe.exports=eNt;var eqe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function eNt(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,s,l,u={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},c=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"static",type:"float",data:eqe}),v(t),n=e({vert:` +`;QOe.exports=Wc;function Wc(e,t){if(!(this instanceof Wc))return new Wc(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Wc.shaders.has(e)?Wc.shaders.get(e):Wc.shaders.set(e,Wc.createShaders(e)).get(e),this.update(t)}Wc.dashMult=2;Wc.maxPatternLength=256;Wc.precisionThreshold=3e6;Wc.maxPoints=1e4;Wc.maxLines=2048;Wc.shaders=new HBt;Wc.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(BY({vert:WBt,frag:XBt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(BY({cull:{enable:!0,face:"back"},vert:KBt,frag:JBt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){i=n}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:ZBt,frag:YBt,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Wc.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Wc.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Wc.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Wc.precisionThreshold||t.scale[1]*t.viewport.height>Wc.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Wc.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Wc.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=NBt(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=BY({},Wc.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,aL-x),C=[],E=0,A=o.hole!=null?o.hole[0]:null;if(A!=null){let L=jBt(p,x=>x>=A);p=p.slice(0,L),p.push(A)}for(let L=0;Lg-A+(p[L]-E)),M=JOe(x,k);M=M.map(g=>g+E+(g+E{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var nqe=ye((Wyr,iqe)=>{"use strict";var $Bt=j2(),QBt=J_(),eNt=sY(),tNt=Xm(),eqe=Fh(),tqe=W2(),{float32:rNt,fract32:UY}=JF();iqe.exports=iNt;var rqe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function iNt(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,s,l,u={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},c=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"static",type:"float",data:rqe}),v(t),n=e({vert:` precision highp float; attribute vec2 position, positionFract; @@ -2628,10 +2628,10 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= opacity; } - `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(b,p)=>[p.viewport.x,p.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,p)=>p.offset*4,divisor:1},position:{buffer:i,offset:(b,p)=>p.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,p)=>p.offset*8,divisor:1},error:{buffer:s,offset:(b,p)=>p.offset*16,divisor:1},direction:{buffer:l,stride:24,offset:0},lineOffset:{buffer:l,stride:24,offset:8},capOffset:{buffer:l,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:eqe.length}),$Oe(f,{update:v,draw:h,destroy:x,regl:e,gl:r,canvas:r.canvas,groups:c}),f;function f(b){b?v(b):b===null&&x(),h()}function h(b){if(typeof b=="number")return d(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),c.forEach((p,C)=>{if(p){if(b&&(b[C]?p.draw=!0:p.draw=!1),!p.draw){p.draw=!0;return}d(C)}})}function d(b){typeof b=="number"&&(b=c[b]),b!=null&&b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1&&(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b))}function v(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let p=0,C=0;if(f.groups=c=b.map((L,_)=>{let k=c[_];if(L)typeof L=="function"?L={after:L}:typeof L[0]=="number"&&(L={positions:L});else return k;return L=$Bt(L,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),k||(c[_]=k={id:_,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},L=$Oe({},u,L)),JBt(k,L,[{lineWidth:M=>+M*.5,capSize:M=>+M*.5,opacity:parseFloat,errors:M=>(M=QOe(M),C+=M.length,M),positions:(M,g)=>(M=QOe(M,"float64"),g.count=Math.floor(M.length/2),g.bounds=YBt(M,2),g.offset=p,p+=g.count,M)},{color:(M,g)=>{let P=g.count;if(M||(M="transparent"),!Array.isArray(M)||typeof M[0]=="number"){let z=M;M=Array(P);for(let O=0;O{let T=g.bounds;return M||(M=T),g.scale=[1/(M[2]-M[0]),1/(M[3]-M[1])],g.translate=[-M[0],-M[1]],g.scaleFract=UY(g.scale),g.translateFract=UY(g.translate),M},viewport:M=>{let g;return Array.isArray(M)?g={x:M[0],y:M[1],width:M[2]-M[0],height:M[3]-M[1]}:M?(g={x:M.x||M.left||0,y:M.y||M.top||0},M.right?g.width=M.right-g.x:g.width=M.w||M.width||0,M.bottom?g.height=M.bottom-g.y:g.height=M.h||M.height||0):g={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},g}}]),k}),p||C){let L=c.reduce((g,P,T)=>g+(P?P.count:0),0),_=new Float64Array(L*2),k=new Uint8Array(L*4),M=new Float32Array(L*4);c.forEach((g,P)=>{if(!g)return;let{positions:T,count:z,offset:O,color:V,errors:G}=g;z&&(k.set(V,O*4),M.set(G,O*4),_.set(T,O*2))});var E=QBt(_);i(E);var A=UY(_,E);a(A),o(k),s(M)}}function x(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),l.destroy()}}});var aqe=ye((jyr,nqe)=>{var iqe=/[\'\"]/;nqe.exports=function(t){return t?(iqe.test(t.charAt(0))&&(t=t.substr(1)),iqe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var VY=ye((Wyr,tNt)=>{tNt.exports=["inherit","initial","unset"]});var GY=ye((Xyr,rNt)=>{rNt.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var HY=ye((Zyr,iNt)=>{iNt.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var jY=ye((Yyr,nNt)=>{nNt.exports=["normal","italic","oblique"]});var WY=ye((Kyr,aNt)=>{aNt.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var uqe=ye((Jyr,lqe)=>{"use strict";function oqe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(l){var u=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),c=[];function f(h,d,v){var x=r.push(h.slice(l[0].length,-l[1].length))-1;return c.push(x),i+x+i}r.forEach(function(h,d){for(var v,x=0;h!=v;)if(v=h,h=h.replace(u,f),x++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),c=c.reverse(),r=r.map(function(h){return c.forEach(function(d){h=h.replace(new RegExp("(\\"+i+d+"\\"+i+")","g"),l[0]+"$1"+l[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(l,u,c){for(var f=[],h,d=0;h=o.exec(l);){if(d++>1e4)throw Error("Circular references in parenthesis");f.push(l.slice(0,h.index)),f.push(s(u[h[1]],u)),l=l.slice(h.index+h[0].length)}return f.push(l),f}return a?r:s(r[0],r)}function sqe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,s)}return n}return e.reduce(function l(u,c){return Array.isArray(c)&&(c=c.reduce(l,"")),u+c},"");function s(l,u){if(e[u]==null)throw Error("Reference "+u+"is undefined");return e[u]}}function XY(e,t){return Array.isArray(e)?sqe(e,t):oqe(e,t)}XY.parse=oqe;XY.stringify=sqe;lqe.exports=XY});var hqe=ye(($yr,fqe)=>{"use strict";var cqe=uqe();fqe.exports=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(f){return f.length===1&&(f=f+f),f}));var i=cqe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],l=0;l{oNt.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var ZY=ye((e1r,vqe)=>{"use strict";var sNt=dqe();vqe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||sNt.indexOf(t)!==-1}}});var yqe=ye((t1r,mqe)=>{"use strict";var lNt=aqe(),uNt=VY(),cNt=GY(),fNt=HY(),hNt=jY(),dNt=WY(),YY=hqe(),vNt=ZY().isSize;mqe.exports=gqe;var wC=gqe.cache={};function gqe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(wC[e])return wC[e];if(e==="")throw new Error("Cannot parse an empty string.");if(cNt.indexOf(e)!==-1)return wC[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=YY(e,/\s+/),n;n=r.shift();){if(uNt.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),wC[e]=t;if(hNt.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(dNt.indexOf(n)!==-1){t.stretch=n;continue}if(fNt.indexOf(n)!==-1){t.weight=n;continue}if(vNt(n)){var i=YY(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=pqe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=pqe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=YY(r.join(" "),/\s*,\s*/).map(lNt),wC[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function pqe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var JY=ye((r1r,_qe)=>{"use strict";var pNt=Xm(),gNt=ZY().isSize,mNt=AC(VY()),yNt=AC(GY()),_Nt=AC(HY()),xNt=AC(jY()),bNt=AC(WY()),wNt={normal:1,"small-caps":1},TNt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},KY={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};_qe.exports=function(t){if(t=pNt(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&TC(t.system,yNt),t.system;if(TC(t.style,xNt),TC(t.variant,wNt),TC(t.weight,_Nt),TC(t.stretch,bNt),t.size==null&&(t.size=KY.size),typeof t.size=="number"&&(t.size+="px"),!gNt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=KY.family),Array.isArray(t.family)&&(t.family.length||(t.family=[KY.family]),t.family=t.family.map(function(n){return TNt[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function TC(e,t){if(e&&!t[e]&&!mNt[e])throw Error("Unknown keyword `"+e+"`");return e}function AC(e){for(var t={},r=0;r{"use strict";xqe.exports={parse:yqe(),stringify:JY()}});var wqe=ye(($Y,QY)=>{(function(e,t){typeof $Y=="object"&&typeof QY!="undefined"?QY.exports=t():e.createREGL=t()})($Y,function(){"use strict";var e=function(Ee,xt){for(var zt=Object.keys(xt),Ir=0;Ir1&&xt===zt&&(xt==='"'||xt==="'"))return['"'+o(Ee.substr(1,Ee.length-2))+'"'];var Ir=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Ee);if(Ir)return s(Ee.substr(0,Ir.index)).concat(s(Ir[1])).concat(s(Ee.substr(Ir.index+Ir[0].length)));var Hr=Ee.split(".");if(Hr.length===1)return['"'+o(Ee)+'"'];for(var Br=[],Vr=0;Vr65535)<<4,Ee>>>=xt,zt=(Ee>255)<<3,Ee>>>=zt,xt|=zt,zt=(Ee>15)<<2,Ee>>>=zt,xt|=zt,zt=(Ee>3)<<1,Ee>>>=zt,xt|=zt,xt|Ee>>1}function N(){var Ee=M(8,function(){return[]});function xt(Br){var Vr=Z(Br),mi=Ee[H(Vr)>>2];return mi.length>0?mi.pop():new ArrayBuffer(Vr)}function zt(Br){Ee[H(Br.byteLength)>>2].push(Br)}function Ir(Br,Vr){var mi=null;switch(Br){case g:mi=new Int8Array(xt(Vr),0,Vr);break;case P:mi=new Uint8Array(xt(Vr),0,Vr);break;case T:mi=new Int16Array(xt(2*Vr),0,Vr);break;case z:mi=new Uint16Array(xt(2*Vr),0,Vr);break;case O:mi=new Int32Array(xt(4*Vr),0,Vr);break;case V:mi=new Uint32Array(xt(4*Vr),0,Vr);break;case G:mi=new Float32Array(xt(4*Vr),0,Vr);break;default:return null}return mi.length!==Vr?mi.subarray(0,Vr):mi}function Hr(Br){zt(Br.buffer)}return{alloc:xt,free:zt,allocType:Ir,freeType:Hr}}var j=N();j.zero=N();var re=3408,oe=3410,_e=3411,Me=3412,ke=3413,me=3414,ie=3415,Se=33901,Le=33902,Ae=3379,De=3386,Pe=34921,ge=36347,Fe=36348,ce=35661,Ze=35660,ct=34930,pt=36349,Wt=34076,st=34024,lt=7936,Gt=7937,Nt=7938,$t=35724,sr=34047,wr=36063,ur=34852,Qe=3553,Et=34067,er=34069,Ut=33984,Ft=6408,bt=5126,yt=5121,Yt=36160,lr=36053,Tr=36064,Rr=16384,ei=function(Ee,xt){var zt=1;xt.ext_texture_filter_anisotropic&&(zt=Ee.getParameter(sr));var Ir=1,Hr=1;xt.webgl_draw_buffers&&(Ir=Ee.getParameter(ur),Hr=Ee.getParameter(wr));var Br=!!xt.oes_texture_float;if(Br){var Vr=Ee.createTexture();Ee.bindTexture(Qe,Vr),Ee.texImage2D(Qe,0,Ft,1,1,0,Ft,bt,null);var mi=Ee.createFramebuffer();if(Ee.bindFramebuffer(Yt,mi),Ee.framebufferTexture2D(Yt,Tr,Qe,Vr,0),Ee.bindTexture(Qe,null),Ee.checkFramebufferStatus(Yt)!==lr)Br=!1;else{Ee.viewport(0,0,1,1),Ee.clearColor(1,0,0,1),Ee.clear(Rr);var Ni=j.allocType(bt,4);Ee.readPixels(0,0,1,1,Ft,bt,Ni),Ee.getError()?Br=!1:(Ee.deleteFramebuffer(mi),Ee.deleteTexture(Vr),Br=Ni[0]===1),j.freeType(Ni)}}var Oi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Mi=!0;if(!Oi){var Hn=Ee.createTexture(),Qi=j.allocType(yt,36);Ee.activeTexture(Ut),Ee.bindTexture(Et,Hn),Ee.texImage2D(er,0,Ft,3,3,0,Ft,yt,Qi),j.freeType(Qi),Ee.bindTexture(Et,null),Ee.deleteTexture(Hn),Mi=!Ee.getError()}return{colorBits:[Ee.getParameter(oe),Ee.getParameter(_e),Ee.getParameter(Me),Ee.getParameter(ke)],depthBits:Ee.getParameter(me),stencilBits:Ee.getParameter(ie),subpixelBits:Ee.getParameter(re),extensions:Object.keys(xt).filter(function(ji){return!!xt[ji]}),maxAnisotropic:zt,maxDrawbuffers:Ir,maxColorAttachments:Hr,pointSizeDims:Ee.getParameter(Se),lineWidthDims:Ee.getParameter(Le),maxViewportDims:Ee.getParameter(De),maxCombinedTextureUnits:Ee.getParameter(ce),maxCubeMapSize:Ee.getParameter(Wt),maxRenderbufferSize:Ee.getParameter(st),maxTextureUnits:Ee.getParameter(ct),maxTextureSize:Ee.getParameter(Ae),maxAttributes:Ee.getParameter(Pe),maxVertexUniforms:Ee.getParameter(ge),maxVertexTextureUnits:Ee.getParameter(Ze),maxVaryingVectors:Ee.getParameter(Fe),maxFragmentUniforms:Ee.getParameter(pt),glsl:Ee.getParameter($t),renderer:Ee.getParameter(Gt),vendor:Ee.getParameter(lt),version:Ee.getParameter(Nt),readFloat:Br,npotTextureCube:Mi}},Wr=function(Ee){return Ee instanceof Uint8Array||Ee instanceof Uint16Array||Ee instanceof Uint32Array||Ee instanceof Int8Array||Ee instanceof Int16Array||Ee instanceof Int32Array||Ee instanceof Float32Array||Ee instanceof Float64Array||Ee instanceof Uint8ClampedArray};function Ur(Ee){return!!Ee&&typeof Ee=="object"&&Array.isArray(Ee.shape)&&Array.isArray(Ee.stride)&&typeof Ee.offset=="number"&&Ee.shape.length===Ee.stride.length&&(Array.isArray(Ee.data)||Wr(Ee.data))}var dt=function(Ee){return Object.keys(Ee).map(function(xt){return Ee[xt]})},Ge={shape:xe,flatten:Ie};function Je(Ee,xt,zt){for(var Ir=0;Ir0){var qn;if(Array.isArray(Yr[0])){Xi=kn(Yr);for(var vi=1,li=1;li0){if(typeof vi[0]=="number"){var Ui=j.allocType(ci.dtype,vi.length);Er(Ui,vi),Xi(Ui,mn),j.freeType(Ui)}else if(Array.isArray(vi[0])||Wr(vi[0])){Ki=kn(vi);var Bi=Vn(vi,Ki,ci.dtype);Xi(Bi,mn),j.freeType(Bi)}}}else if(Ur(vi)){Ki=vi.shape;var vn=vi.stride,Un=0,na=0,Yi=0,Ln=0;Ki.length===1?(Un=Ki[0],na=1,Yi=vn[0],Ln=0):Ki.length===2&&(Un=Ki[0],na=Ki[1],Yi=vn[0],Ln=vn[1]);var ra=Array.isArray(vi.data)?ci.dtype:ar(vi.data),oa=j.allocType(ra,Un*na);Zr(oa,vi.data,Un,na,Yi,Ln,vi.offset),Xi(oa,mn),j.freeType(oa)}return nn}return xi||nn(Mr),nn._reglType="buffer",nn._buffer=ci,nn.subdata=qn,zt.profile&&(nn.stats=ci.stats),nn.destroy=function(){Qi(ci)},nn}function si(){dt(Br).forEach(function(Mr){Mr.buffer=Ee.createBuffer(),Ee.bindBuffer(Mr.type,Mr.buffer),Ee.bufferData(Mr.type,Mr.persistentData||Mr.byteLength,Mr.usage)})}return zt.profile&&(xt.getTotalBufferSize=function(){var Mr=0;return Object.keys(Br).forEach(function(Yr){Mr+=Br[Yr].stats.size}),Mr}),{create:ji,createStream:Ni,destroyStream:Oi,clear:function(){dt(Br).forEach(Qi),mi.forEach(Qi)},getBuffer:function(Mr){return Mr&&Mr._buffer instanceof Vr?Mr._buffer:null},restore:si,_initBuffer:Hn}}var $r=0,zi=0,Ji=1,en=1,cn=4,yn=4,Mn={points:$r,point:zi,lines:Ji,line:en,triangles:cn,triangle:yn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ba=0,la=1,ma=4,Wa=5120,Fa=5121,Wo=5122,da=5123,Wn=5124,Ga=5125,vo=34963,jn=35040,St=35044;function Cr(Ee,xt,zt,Ir){var Hr={},Br=0,Vr={uint8:Fa,uint16:da};xt.oes_element_index_uint&&(Vr.uint32=Ga);function mi(si){this.id=Br++,Hr[this.id]=this,this.buffer=si,this.primType=ma,this.vertCount=0,this.type=0}mi.prototype.bind=function(){this.buffer.bind()};var Ni=[];function Oi(si){var Mr=Ni.pop();return Mr||(Mr=new mi(zt.create(null,vo,!0,!1)._buffer)),Hn(Mr,si,jn,-1,-1,0,0),Mr}function Mi(si){Ni.push(si)}function Hn(si,Mr,Yr,xi,Ii,ci,nn){si.buffer.bind();var Xi;if(Mr){var qn=nn;!nn&&(!Wr(Mr)||Ur(Mr)&&!Wr(Mr.data))&&(qn=xt.oes_element_index_uint?Ga:da),zt._initBuffer(si.buffer,Mr,Yr,qn,3)}else Ee.bufferData(vo,ci,Yr),si.buffer.dtype=Xi||Fa,si.buffer.usage=Yr,si.buffer.dimension=3,si.buffer.byteLength=ci;if(Xi=nn,!nn){switch(si.buffer.dtype){case Fa:case Wa:Xi=Fa;break;case da:case Wo:Xi=da;break;case Ga:case Wn:Xi=Ga;break;default:}si.buffer.dtype=Xi}si.type=Xi;var vi=Ii;vi<0&&(vi=si.buffer.byteLength,Xi===da?vi>>=1:Xi===Ga&&(vi>>=2)),si.vertCount=vi;var li=xi;if(xi<0){li=ma;var mn=si.buffer.dimension;mn===1&&(li=Ba),mn===2&&(li=la),mn===3&&(li=ma)}si.primType=li}function Qi(si){Ir.elementsCount--,delete Hr[si.id],si.buffer.destroy(),si.buffer=null}function ji(si,Mr){var Yr=zt.create(null,vo,!0),xi=new mi(Yr._buffer);Ir.elementsCount++;function Ii(ci){if(!ci)Yr(),xi.primType=ma,xi.vertCount=0,xi.type=Fa;else if(typeof ci=="number")Yr(ci),xi.primType=ma,xi.vertCount=ci|0,xi.type=Fa;else{var nn=null,Xi=St,qn=-1,vi=-1,li=0,mn=0;Array.isArray(ci)||Wr(ci)||Ur(ci)?nn=ci:("data"in ci&&(nn=ci.data),"usage"in ci&&(Xi=pn[ci.usage]),"primitive"in ci&&(qn=Mn[ci.primitive]),"count"in ci&&(vi=ci.count|0),"type"in ci&&(mn=Vr[ci.type]),"length"in ci?li=ci.length|0:(li=vi,mn===da||mn===Wo?li*=2:(mn===Ga||mn===Wn)&&(li*=4))),Hn(xi,nn,Xi,qn,vi,li,mn)}return Ii}return Ii(si),Ii._reglType="elements",Ii._elements=xi,Ii.subdata=function(ci,nn){return Yr.subdata(ci,nn),Ii},Ii.destroy=function(){Qi(xi)},Ii}return{create:ji,createStream:Oi,destroyStream:Mi,getElements:function(si){return typeof si=="function"&&si._elements instanceof mi?si._elements:null},clear:function(){dt(Hr).forEach(Qi)}}}var Qr=new Float32Array(1),pi=new Uint32Array(Qr.buffer),fn=5123;function Sn(Ee){for(var xt=j.allocType(fn,Ee.length),zt=0;zt>>31<<15,Br=(Ir<<1>>>24)-127,Vr=Ir>>13&1023;if(Br<-24)xt[zt]=Hr;else if(Br<-14){var mi=-14-Br;xt[zt]=Hr+(Vr+1024>>mi)}else Br>15?xt[zt]=Hr+31744:xt[zt]=Hr+(Br+15<<10)+Vr}return xt}function En(Ee){return Array.isArray(Ee)||Wr(Ee)}var ki=34467,_n=3553,ya=34067,Jn=34069,Ma=6408,_o=6406,No=6407,po=6409,Lo=6410,Co=32854,Fs=32855,zs=36194,ul=32819,cl=32820,zl=33635,cs=34042,nl=6402,Ss=34041,fl=35904,Js=35906,Os=36193,Io=33776,us=33777,Zl=33778,Su=33779,nc=35986,ws=35987,Fn=34798,_a=35840,Vu=35841,Ol=35842,xo=35843,Yl=36196,Us=5121,Hl=5123,ac=5125,aa=5126,Oo=10242,qo=10243,ql=10497,Pc=33071,Do=33648,rf=10240,Uf=10241,ml=9728,Zc=9729,Kl=9984,qs=9985,yu=9986,oc=9987,Cf=33170,sc=4352,Nh=4353,kf=4354,fs=34046,nf=3317,Vf=37440,Jl=37441,hl=37443,lc=37444,Fu=33984,Cs=[Kl,yu,qs,oc],js=[0,po,Lo,No,Ma],Go={};Go[po]=Go[_o]=Go[nl]=1,Go[Ss]=Go[Lo]=2,Go[No]=Go[fl]=3,Go[Ma]=Go[Js]=4;function gs(Ee){return"[object "+Ee+"]"}var uc=gs("HTMLCanvasElement"),bl=gs("OffscreenCanvas"),Gu=gs("CanvasRenderingContext2D"),Bs=gs("ImageBitmap"),ad=gs("HTMLImageElement"),Po=gs("HTMLVideoElement"),od=Object.keys(Ce).concat([uc,bl,Gu,Bs,ad,Po]),Yo=[];Yo[Us]=1,Yo[aa]=4,Yo[Os]=2,Yo[Hl]=2,Yo[ac]=4;var Pa=[];Pa[Co]=2,Pa[Fs]=2,Pa[zs]=2,Pa[Ss]=4,Pa[Io]=.5,Pa[us]=.5,Pa[Zl]=1,Pa[Su]=1,Pa[nc]=.5,Pa[ws]=1,Pa[Fn]=1,Pa[_a]=.5,Pa[Vu]=.25,Pa[Ol]=.5,Pa[xo]=.25,Pa[Yl]=.5;function af(Ee){return Array.isArray(Ee)&&(Ee.length===0||typeof Ee[0]=="number")}function Hu(Ee){if(!Array.isArray(Ee))return!1;var xt=Ee.length;return!(xt===0||!En(Ee[0]))}function wl(Ee){return Object.prototype.toString.call(Ee)}function Gf(Ee){return wl(Ee)===uc}function Ic(Ee){return wl(Ee)===bl}function mf(Ee){return wl(Ee)===Gu}function Bl(Ee){return wl(Ee)===Bs}function _h(Ee){return wl(Ee)===ad}function Qf(Ee){return wl(Ee)===Po}function yf(Ee){if(!Ee)return!1;var xt=wl(Ee);return od.indexOf(xt)>=0?!0:af(Ee)||Hu(Ee)||Ur(Ee)}function Yc(Ee){return Ce[Object.prototype.toString.call(Ee)]|0}function eh(Ee,xt){var zt=xt.length;switch(Ee.type){case Us:case Hl:case ac:case aa:var Ir=j.allocType(Ee.type,zt);Ir.set(xt),Ee.data=Ir;break;case Os:Ee.data=Sn(xt);break;default:}}function th(Ee,xt){return j.allocType(Ee.type===Os?aa:Ee.type,xt)}function ju(Ee,xt){Ee.type===Os?(Ee.data=Sn(xt),j.freeType(xt)):Ee.data=xt}function Hf(Ee,xt,zt,Ir,Hr,Br){for(var Vr=Ee.width,mi=Ee.height,Ni=Ee.channels,Oi=Vr*mi*Ni,Mi=th(Ee,Oi),Hn=0,Qi=0;Qi=1;)mi+=Vr*Ni*Ni,Ni/=2;return mi}else return Vr*zt*Ir}function of(Ee,xt,zt,Ir,Hr,Br,Vr){var mi={"don't care":sc,"dont care":sc,nice:kf,fast:Nh},Ni={repeat:ql,clamp:Pc,mirror:Do},Oi={nearest:ml,linear:Zc},Mi=e({mipmap:oc,"nearest mipmap nearest":Kl,"linear mipmap nearest":qs,"nearest mipmap linear":yu,"linear mipmap linear":oc},Oi),Hn={none:0,browser:lc},Qi={uint8:Us,rgba4:ul,rgb565:zl,"rgb5 a1":cl},ji={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:Co,"rgb5 a1":Fs,rgb565:zs},si={};xt.ext_srgb&&(ji.srgb=fl,ji.srgba=Js),xt.oes_texture_float&&(Qi.float32=Qi.float=aa),xt.oes_texture_half_float&&(Qi.float16=Qi["half float"]=Os),xt.webgl_depth_texture&&(e(ji,{depth:nl,"depth stencil":Ss}),e(Qi,{uint16:Hl,uint32:ac,"depth stencil":cs})),xt.webgl_compressed_texture_s3tc&&e(si,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":us,"rgba s3tc dxt3":Zl,"rgba s3tc dxt5":Su}),xt.webgl_compressed_texture_atc&&e(si,{"rgb atc":nc,"rgba atc explicit alpha":ws,"rgba atc interpolated alpha":Fn}),xt.webgl_compressed_texture_pvrtc&&e(si,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":Ol,"rgba pvrtc 2bppv1":xo}),xt.webgl_compressed_texture_etc1&&(si["rgb etc1"]=Yl);var Mr=Array.prototype.slice.call(Ee.getParameter(ki));Object.keys(si).forEach(function(ne){var we=si[ne];Mr.indexOf(we)>=0&&(ji[ne]=we)});var Yr=Object.keys(ji);zt.textureFormats=Yr;var xi=[];Object.keys(ji).forEach(function(ne){var we=ji[ne];xi[we]=ne});var Ii=[];Object.keys(Qi).forEach(function(ne){var we=Qi[ne];Ii[we]=ne});var ci=[];Object.keys(Oi).forEach(function(ne){var we=Oi[ne];ci[we]=ne});var nn=[];Object.keys(Mi).forEach(function(ne){var we=Mi[ne];nn[we]=ne});var Xi=[];Object.keys(Ni).forEach(function(ne){var we=Ni[ne];Xi[we]=ne});var qn=Yr.reduce(function(ne,we){var Ue=ji[we];return Ue===po||Ue===_o||Ue===po||Ue===Lo||Ue===nl||Ue===Ss||xt.ext_srgb&&(Ue===fl||Ue===Js)?ne[Ue]=Ue:Ue===Fs||we.indexOf("rgba")>=0?ne[Ue]=Ma:ne[Ue]=No,ne},{});function vi(){this.internalformat=Ma,this.format=Ma,this.type=Us,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=lc,this.width=0,this.height=0,this.channels=0}function li(ne,we){ne.internalformat=we.internalformat,ne.format=we.format,ne.type=we.type,ne.compressed=we.compressed,ne.premultiplyAlpha=we.premultiplyAlpha,ne.flipY=we.flipY,ne.unpackAlignment=we.unpackAlignment,ne.colorSpace=we.colorSpace,ne.width=we.width,ne.height=we.height,ne.channels=we.channels}function mn(ne,we){if(!(typeof we!="object"||!we)){if("premultiplyAlpha"in we&&(ne.premultiplyAlpha=we.premultiplyAlpha),"flipY"in we&&(ne.flipY=we.flipY),"alignment"in we&&(ne.unpackAlignment=we.alignment),"colorSpace"in we&&(ne.colorSpace=Hn[we.colorSpace]),"type"in we){var Ue=we.type;ne.type=Qi[Ue]}var ft=ne.width,Zt=ne.height,hr=ne.channels,qt=!1;"shape"in we?(ft=we.shape[0],Zt=we.shape[1],we.shape.length===3&&(hr=we.shape[2],qt=!0)):("radius"in we&&(ft=Zt=we.radius),"width"in we&&(ft=we.width),"height"in we&&(Zt=we.height),"channels"in we&&(hr=we.channels,qt=!0)),ne.width=ft|0,ne.height=Zt|0,ne.channels=hr|0;var Ve=!1;if("format"in we){var et=we.format,at=ne.internalformat=ji[et];ne.format=qn[at],et in Qi&&("type"in we||(ne.type=Qi[et])),et in si&&(ne.compressed=!0),Ve=!0}!qt&&Ve?ne.channels=Go[ne.format]:qt&&!Ve&&ne.channels!==js[ne.format]&&(ne.format=ne.internalformat=js[ne.channels])}}function Ki(ne){Ee.pixelStorei(Vf,ne.flipY),Ee.pixelStorei(Jl,ne.premultiplyAlpha),Ee.pixelStorei(hl,ne.colorSpace),Ee.pixelStorei(nf,ne.unpackAlignment)}function Ui(){vi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Bi(ne,we){var Ue=null;if(yf(we)?Ue=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),yf(we.data)&&(Ue=we.data)),we.copy){var ft=Hr.viewportWidth,Zt=Hr.viewportHeight;ne.width=ne.width||ft-ne.xOffset,ne.height=ne.height||Zt-ne.yOffset,ne.needsCopy=!0}else if(!Ue)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(Wr(Ue))ne.channels=ne.channels||4,ne.data=Ue,!("type"in we)&&ne.type===Us&&(ne.type=Yc(Ue));else if(af(Ue))ne.channels=ne.channels||4,eh(ne,Ue),ne.alignment=1,ne.needsFree=!0;else if(Ur(Ue)){var hr=Ue.data;!Array.isArray(hr)&&ne.type===Us&&(ne.type=Yc(hr));var qt=Ue.shape,Ve=Ue.stride,et,at,kt,Ot,It,Bt;qt.length===3?(kt=qt[2],Bt=Ve[2]):(kt=1,Bt=1),et=qt[0],at=qt[1],Ot=Ve[0],It=Ve[1],ne.alignment=1,ne.width=et,ne.height=at,ne.channels=kt,ne.format=ne.internalformat=js[kt],ne.needsFree=!0,Hf(ne,hr,Ot,It,Bt,Ue.offset)}else if(Gf(Ue)||Ic(Ue)||mf(Ue))Gf(Ue)||Ic(Ue)?ne.element=Ue:ne.element=Ue.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(Bl(Ue))ne.element=Ue,ne.width=Ue.width,ne.height=Ue.height,ne.channels=4;else if(_h(Ue))ne.element=Ue,ne.width=Ue.naturalWidth,ne.height=Ue.naturalHeight,ne.channels=4;else if(Qf(Ue))ne.element=Ue,ne.width=Ue.videoWidth,ne.height=Ue.videoHeight,ne.channels=4;else if(Hu(Ue)){var Rt=ne.width||Ue[0].length,mt=ne.height||Ue.length,Pt=ne.channels;En(Ue[0][0])?Pt=Pt||Ue[0][0].length:Pt=Pt||1;for(var ht=Ge.shape(Ue),cr=1,br=0;br>=Zt,Ue.height>>=Zt,Bi(Ue,ft[Zt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ft=we.mag;ne.magFilter=Oi[ft]}var Zt=ne.wrapS,hr=ne.wrapT;if("wrap"in we){var qt=we.wrap;typeof qt=="string"?Zt=hr=Ni[qt]:Array.isArray(qt)&&(Zt=Ni[qt[0]],hr=Ni[qt[1]])}else{if("wrapS"in we){var Ve=we.wrapS;Zt=Ni[Ve]}if("wrapT"in we){var et=we.wrapT;hr=Ni[et]}}if(ne.wrapS=Zt,ne.wrapT=hr,"anisotropic"in we){var at=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var kt=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=mi[we.mipmap],ne.genMipmaps=!0,kt=!0;break;case"boolean":kt=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,kt=!0;break;default:}kt&&!("min"in we)&&(ne.minFilter=Kl)}}function ol(ne,we){Ee.texParameteri(we,Uf,ne.minFilter),Ee.texParameteri(we,rf,ne.magFilter),Ee.texParameteri(we,Oo,ne.wrapS),Ee.texParameteri(we,qo,ne.wrapT),xt.ext_texture_filter_anisotropic&&Ee.texParameteri(we,fs,ne.anisotropic),ne.genMipmaps&&(Ee.hint(Cf,ne.mipmapHint),Ee.generateMipmap(we))}var Vl=0,ls={},Gs=zt.maxTextureUnits,Ks=Array(Gs).map(function(){return null});function Ta(ne){vi.call(this),this.mipmask=0,this.internalformat=Ma,this.id=Vl++,this.refCount=1,this.target=ne,this.texture=Ee.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new zo,Vr.profile&&(this.stats={size:0})}function sl(ne){Ee.activeTexture(Fu),Ee.bindTexture(ne.target,ne.texture)}function io(){var ne=Ks[0];ne?Ee.bindTexture(ne.target,ne.texture):Ee.bindTexture(_n,null)}function Y(ne){var we=ne.texture,Ue=ne.unit,ft=ne.target;Ue>=0&&(Ee.activeTexture(Fu+Ue),Ee.bindTexture(ft,null),Ks[Ue]=null),Ee.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ls[ne.id],Br.textureCount--}e(Ta.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Ue=0;Ue0)continue;ft.unit=-1}Ks[Ue]=ne,we=Ue;break}we>=Gs,Vr.profile&&Br.maxTextureUnits>It)-kt,Bt.height=Bt.height||(Ue.height>>It)-Ot,sl(Ue),Un(Bt,_n,kt,Ot,It),io(),Ln(Bt),ft}function hr(qt,Ve){var et=qt|0,at=Ve|0||et;if(et===Ue.width&&at===Ue.height)return ft;ft.width=Ue.width=et,ft.height=Ue.height=at,sl(Ue);for(var kt=0;Ue.mipmask>>kt;++kt){var Ot=et>>kt,It=at>>kt;if(!Ot||!It)break;Ee.texImage2D(_n,kt,Ue.format,Ot,It,0,Ue.format,Ue.type,null)}return io(),Vr.profile&&(Ue.stats.size=cc(Ue.internalformat,Ue.type,et,at,!1,!1)),ft}return ft(ne,we),ft.subimage=Zt,ft.resize=hr,ft._reglType="texture2d",ft._texture=Ue,Vr.profile&&(ft.stats=Ue.stats),ft.destroy=function(){Ue.decRef()},ft}function J(ne,we,Ue,ft,Zt,hr){var qt=new Ta(ya);ls[qt.id]=qt,Br.cubeCount++;var Ve=new Array(6);function et(Ot,It,Bt,Rt,mt,Pt){var ht,cr=qt.texInfo;for(zo.call(cr),ht=0;ht<6;++ht)Ve[ht]=Va();if(typeof Ot=="number"||!Ot){var br=Ot|0||1;for(ht=0;ht<6;++ht)oa(Ve[ht],br,br)}else if(typeof Ot=="object")if(It)wa(Ve[0],Ot),wa(Ve[1],It),wa(Ve[2],Bt),wa(Ve[3],Rt),wa(Ve[4],mt),wa(Ve[5],Pt);else if(el(cr,Ot),mn(qt,Ot),"faces"in Ot){var Nr=Ot.faces;for(ht=0;ht<6;++ht)li(Ve[ht],qt),wa(Ve[ht],Nr[ht])}else for(ht=0;ht<6;++ht)wa(Ve[ht],Ot);for(li(qt,Ve[0]),cr.genMipmaps?qt.mipmask=(Ve[0].width<<1)-1:qt.mipmask=Ve[0].mipmask,qt.internalformat=Ve[0].internalformat,et.width=Ve[0].width,et.height=Ve[0].height,sl(qt),ht=0;ht<6;++ht)ns(Ve[ht],Jn+ht);for(ol(cr,ya),io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,cr.genMipmaps,!0)),et.format=xi[qt.internalformat],et.type=Ii[qt.type],et.mag=ci[cr.magFilter],et.min=nn[cr.minFilter],et.wrapS=Xi[cr.wrapS],et.wrapT=Xi[cr.wrapT],ht=0;ht<6;++ht)El(Ve[ht]);return et}function at(Ot,It,Bt,Rt,mt){var Pt=Bt|0,ht=Rt|0,cr=mt|0,br=Yi();return li(br,qt),br.width=0,br.height=0,Bi(br,It),br.width=br.width||(qt.width>>cr)-Pt,br.height=br.height||(qt.height>>cr)-ht,sl(qt),Un(br,Jn+Ot,Pt,ht,cr),io(),Ln(br),et}function kt(Ot){var It=Ot|0;if(It!==qt.width){et.width=qt.width=It,et.height=qt.height=It,sl(qt);for(var Bt=0;Bt<6;++Bt)for(var Rt=0;qt.mipmask>>Rt;++Rt)Ee.texImage2D(Jn+Bt,Rt,qt.format,It>>Rt,It>>Rt,0,qt.format,qt.type,null);return io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,!1,!0)),et}}return et(ne,we,Ue,ft,Zt,hr),et.subimage=at,et.resize=kt,et._reglType="textureCube",et._texture=qt,Vr.profile&&(et.stats=qt.stats),et.destroy=function(){qt.decRef()},et}function q(){for(var ne=0;ne>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);else for(var Zt=0;Zt<6;++Zt)Ee.texImage2D(Jn+Zt,ft,Ue.internalformat,Ue.width>>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);ol(Ue.texInfo,Ue.target)})}function de(){for(var ne=0;ne=0?El=!0:Ni.indexOf(zo)>=0&&(El=!1))),("depthTexture"in Ta||"depthStencilTexture"in Ta)&&(Ks=!!(Ta.depthTexture||Ta.depthStencilTexture)),"depth"in Ta&&(typeof Ta.depth=="boolean"?ns=Ta.depth:(Vl=Ta.depth,Ys=!1)),"stencil"in Ta&&(typeof Ta.stencil=="boolean"?Ys=Ta.stencil:(ls=Ta.stencil,ns=!1)),"depthStencil"in Ta&&(typeof Ta.depthStencil=="boolean"?ns=Ys=Ta.depthStencil:(Gs=Ta.depthStencil,ns=!1,Ys=!1))}var io=null,Y=null,D=null,J=null;if(Array.isArray(Va))io=Va.map(si);else if(Va)io=[si(Va)];else for(io=new Array(ol),ra=0;ra0&&(Ln.depth=Bi[0].depth,Ln.stencil=Bi[0].stencil,Ln.depthStencil=Bi[0].depthStencil),Bi[Yi]?Bi[Yi](Ln):Bi[Yi]=li(Ln)}return e(vn,{width:ra,height:ra,color:zo})}function Un(na){var Yi,Ln=na|0;if(Ln===vn.width)return vn;var ra=vn.color;for(Yi=0;Yi=ra.byteLength?oa.subdata(ra):(oa.destroy(),li.buffers[na]=null)),li.buffers[na]||(oa=li.buffers[na]=Hr.create(Yi,Pf,!1,!0)),Ln.buffer=Hr.getBuffer(oa),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1,vn[na]=1}else Hr.getBuffer(Yi)?(Ln.buffer=Hr.getBuffer(Yi),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1):Hr.getBuffer(Yi.buffer)?(Ln.buffer=Hr.getBuffer(Yi.buffer),Ln.size=(+Yi.size||Ln.buffer.dimension)|0,Ln.normalized=!!Yi.normalized||!1,"type"in Yi?Ln.type=Hi[Yi.type]:Ln.type=Ln.buffer.dtype,Ln.offset=(Yi.offset||0)|0,Ln.stride=(Yi.stride||0)|0,Ln.divisor=(Yi.divisor||0)|0,Ln.state=1):"x"in Yi&&(Ln.x=+Yi.x||0,Ln.y=+Yi.y||0,Ln.z=+Yi.z||0,Ln.w=+Yi.w||0,Ln.state=2)}for(var wa=0;wa1)for(var Ki=0;KiMr&&(Mr=Yr.stats.uniformsCount)}),Mr},zt.getMaxAttributesCount=function(){var Mr=0;return Mi.forEach(function(Yr){Yr.stats.attributesCount>Mr&&(Mr=Yr.stats.attributesCount)}),Mr});function si(){Hr={},Br={};for(var Mr=0;Mr16&&(zt=Zi(zt,Ee.length*8));for(var Ir=Array(16),Hr=Array(16),Br=0;Br<16;Br++)Ir[Br]=zt[Br]^909522486,Hr[Br]=zt[Br]^1549556828;var Vr=Zi(Ir.concat(Bc(xt)),512+xt.length*8);return At(Zi(Hr.concat(Vr),768))}function vu(Ee){for(var xt=ah?"0123456789ABCDEF":"0123456789abcdef",zt="",Ir,Hr=0;Hr>>4&15)+xt.charAt(Ir&15);return zt}function qc(Ee){for(var xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt="",Ir=Ee.length,Hr=0;HrEe.length*8?zt+=Zu:zt+=xt.charAt(Br>>>6*(3-Vr)&63);return zt}function cf(Ee,xt){var zt=xt.length,Ir=Array(),Hr,Br,Vr,mi,Ni=Array(Math.ceil(Ee.length/2));for(Hr=0;Hr0;){for(mi=Array(),Vr=0,Hr=0;Hr0||Br>0)&&(mi[mi.length]=Br);Ir[Ir.length]=Vr,Ni=mi}var Oi="";for(Hr=Ir.length-1;Hr>=0;Hr--)Oi+=xt.charAt(Ir[Hr]);var Mi=Math.ceil(Ee.length*8/(Math.log(xt.length)/Math.log(2)));for(Hr=Oi.length;Hr>>6&31,128|Ir&63):Ir<=65535?xt+=String.fromCharCode(224|Ir>>>12&15,128|Ir>>>6&63,128|Ir&63):Ir<=2097151&&(xt+=String.fromCharCode(240|Ir>>>18&7,128|Ir>>>12&63,128|Ir>>>6&63,128|Ir&63));return xt}function Bc(Ee){for(var xt=Array(Ee.length>>2),zt=0;zt>5]|=(Ee.charCodeAt(zt/8)&255)<<24-zt%32;return xt}function At(Ee){for(var xt="",zt=0;zt>5]>>>24-zt%32&255);return xt}function Xt(Ee,xt){return Ee>>>xt|Ee<<32-xt}function kr(Ee,xt){return Ee>>>xt}function Ar(Ee,xt,zt){return Ee&xt^~Ee&zt}function Kr(Ee,xt,zt){return Ee&xt^Ee&zt^xt&zt}function Ei(Ee){return Xt(Ee,2)^Xt(Ee,13)^Xt(Ee,22)}function Wi(Ee){return Xt(Ee,6)^Xt(Ee,11)^Xt(Ee,25)}function hn(Ee){return Xt(Ee,7)^Xt(Ee,18)^kr(Ee,3)}function Tn(Ee){return Xt(Ee,17)^Xt(Ee,19)^kr(Ee,10)}var Bn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Zi(Ee,xt){var zt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Ir=new Array(64),Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr;for(Ee[xt>>5]|=128<<24-xt%32,Ee[(xt+64>>9<<4)+15]=xt,Qi=0;Qi>16)+(xt>>16)+(zt>>16);return Ir<<16|zt&65535}function an(Ee){return Array.prototype.slice.call(Ee)}function Di(Ee){return an(Ee).join("")}function $n(Ee){var xt=Ee&&Ee.cache,zt=0,Ir=[],Hr=[],Br=[];function Vr(si,Mr){var Yr=Mr&&Mr.stable;if(!Yr){for(var xi=0;xi0&&(si.push(Ii,"="),si.push.apply(si,an(arguments)),si.push(";")),Ii}return e(Mr,{def:xi,toString:function(){return Di([Yr.length>0?"var "+Yr.join(",")+";":"",Di(si)])}})}function Ni(){var si=mi(),Mr=mi(),Yr=si.toString,xi=Mr.toString;function Ii(ci,nn){Mr(ci,nn,"=",si.def(ci,nn),";")}return e(function(){si.apply(si,an(arguments))},{def:si.def,entry:si,exit:Mr,save:Ii,set:function(ci,nn,Xi){Ii(ci,nn),si(ci,nn,"=",Xi,";")},toString:function(){return Yr()+xi()}})}function Oi(){var si=Di(arguments),Mr=Ni(),Yr=Ni(),xi=Mr.toString,Ii=Yr.toString;return e(Mr,{then:function(){return Mr.apply(Mr,an(arguments)),this},else:function(){return Yr.apply(Yr,an(arguments)),this},toString:function(){var ci=Ii();return ci&&(ci="else{"+ci+"}"),Di(["if(",si,"){",xi(),"}",ci])}})}var Mi=mi(),Hn={};function Qi(si,Mr){var Yr=[];function xi(){var qn="a"+Yr.length;return Yr.push(qn),qn}Mr=Mr||0;for(var Ii=0;Ii[p.viewport.x,p.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,p)=>p.offset*4,divisor:1},position:{buffer:i,offset:(b,p)=>p.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,p)=>p.offset*8,divisor:1},error:{buffer:s,offset:(b,p)=>p.offset*16,divisor:1},direction:{buffer:l,stride:24,offset:0},lineOffset:{buffer:l,stride:24,offset:8},capOffset:{buffer:l,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:rqe.length}),eqe(f,{update:v,draw:h,destroy:_,regl:e,gl:r,canvas:r.canvas,groups:c}),f;function f(b){b?v(b):b===null&&_(),h()}function h(b){if(typeof b=="number")return d(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),c.forEach((p,C)=>{if(p){if(b&&(b[C]?p.draw=!0:p.draw=!1),!p.draw){p.draw=!0;return}d(C)}})}function d(b){typeof b=="number"&&(b=c[b]),b!=null&&b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1&&(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b))}function v(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let p=0,C=0;if(f.groups=c=b.map((L,x)=>{let k=c[x];if(L)typeof L=="function"?L={after:L}:typeof L[0]=="number"&&(L={positions:L});else return k;return L=tNt(L,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),k||(c[x]=k={id:x,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},L=eqe({},u,L)),eNt(k,L,[{lineWidth:M=>+M*.5,capSize:M=>+M*.5,opacity:parseFloat,errors:M=>(M=tqe(M),C+=M.length,M),positions:(M,g)=>(M=tqe(M,"float64"),g.count=Math.floor(M.length/2),g.bounds=$Bt(M,2),g.offset=p,p+=g.count,M)},{color:(M,g)=>{let P=g.count;if(M||(M="transparent"),!Array.isArray(M)||typeof M[0]=="number"){let z=M;M=Array(P);for(let O=0;O{let T=g.bounds;return M||(M=T),g.scale=[1/(M[2]-M[0]),1/(M[3]-M[1])],g.translate=[-M[0],-M[1]],g.scaleFract=UY(g.scale),g.translateFract=UY(g.translate),M},viewport:M=>{let g;return Array.isArray(M)?g={x:M[0],y:M[1],width:M[2]-M[0],height:M[3]-M[1]}:M?(g={x:M.x||M.left||0,y:M.y||M.top||0},M.right?g.width=M.right-g.x:g.width=M.w||M.width||0,M.bottom?g.height=M.bottom-g.y:g.height=M.h||M.height||0):g={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},g}}]),k}),p||C){let L=c.reduce((g,P,T)=>g+(P?P.count:0),0),x=new Float64Array(L*2),k=new Uint8Array(L*4),M=new Float32Array(L*4);c.forEach((g,P)=>{if(!g)return;let{positions:T,count:z,offset:O,color:V,errors:G}=g;z&&(k.set(V,O*4),M.set(G,O*4),x.set(T,O*2))});var E=rNt(x);i(E);var A=UY(x,E);a(A),o(k),s(M)}}function _(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),l.destroy()}}});var sqe=ye((Xyr,oqe)=>{var aqe=/[\'\"]/;oqe.exports=function(t){return t?(aqe.test(t.charAt(0))&&(t=t.substr(1)),aqe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var VY=ye((Zyr,nNt)=>{nNt.exports=["inherit","initial","unset"]});var GY=ye((Yyr,aNt)=>{aNt.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var HY=ye((Kyr,oNt)=>{oNt.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var jY=ye((Jyr,sNt)=>{sNt.exports=["normal","italic","oblique"]});var WY=ye(($yr,lNt)=>{lNt.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var fqe=ye((Qyr,cqe)=>{"use strict";function lqe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(l){var u=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),c=[];function f(h,d,v){var _=r.push(h.slice(l[0].length,-l[1].length))-1;return c.push(_),i+_+i}r.forEach(function(h,d){for(var v,_=0;h!=v;)if(v=h,h=h.replace(u,f),_++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),c=c.reverse(),r=r.map(function(h){return c.forEach(function(d){h=h.replace(new RegExp("(\\"+i+d+"\\"+i+")","g"),l[0]+"$1"+l[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(l,u,c){for(var f=[],h,d=0;h=o.exec(l);){if(d++>1e4)throw Error("Circular references in parenthesis");f.push(l.slice(0,h.index)),f.push(s(u[h[1]],u)),l=l.slice(h.index+h[0].length)}return f.push(l),f}return a?r:s(r[0],r)}function uqe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,s)}return n}return e.reduce(function l(u,c){return Array.isArray(c)&&(c=c.reduce(l,"")),u+c},"");function s(l,u){if(e[u]==null)throw Error("Reference "+u+"is undefined");return e[u]}}function XY(e,t){return Array.isArray(e)?uqe(e,t):lqe(e,t)}XY.parse=lqe;XY.stringify=uqe;cqe.exports=XY});var vqe=ye((e1r,dqe)=>{"use strict";var hqe=fqe();dqe.exports=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(f){return f.length===1&&(f=f+f),f}));var i=hqe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],l=0;l{uNt.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var ZY=ye((r1r,gqe)=>{"use strict";var cNt=pqe();gqe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||cNt.indexOf(t)!==-1}}});var xqe=ye((i1r,_qe)=>{"use strict";var fNt=sqe(),hNt=VY(),dNt=GY(),vNt=HY(),pNt=jY(),gNt=WY(),YY=vqe(),mNt=ZY().isSize;_qe.exports=yqe;var TC=yqe.cache={};function yqe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(TC[e])return TC[e];if(e==="")throw new Error("Cannot parse an empty string.");if(dNt.indexOf(e)!==-1)return TC[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=YY(e,/\s+/),n;n=r.shift();){if(hNt.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),TC[e]=t;if(pNt.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(gNt.indexOf(n)!==-1){t.stretch=n;continue}if(vNt.indexOf(n)!==-1){t.weight=n;continue}if(mNt(n)){var i=YY(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=mqe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=mqe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=YY(r.join(" "),/\s*,\s*/).map(fNt),TC[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function mqe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var JY=ye((n1r,bqe)=>{"use strict";var yNt=Xm(),_Nt=ZY().isSize,xNt=SC(VY()),bNt=SC(GY()),wNt=SC(HY()),TNt=SC(jY()),ANt=SC(WY()),SNt={normal:1,"small-caps":1},MNt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},KY={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};bqe.exports=function(t){if(t=yNt(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&AC(t.system,bNt),t.system;if(AC(t.style,TNt),AC(t.variant,SNt),AC(t.weight,wNt),AC(t.stretch,ANt),t.size==null&&(t.size=KY.size),typeof t.size=="number"&&(t.size+="px"),!_Nt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=KY.family),Array.isArray(t.family)&&(t.family.length||(t.family=[KY.family]),t.family=t.family.map(function(n){return MNt[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function AC(e,t){if(e&&!t[e]&&!xNt[e])throw Error("Unknown keyword `"+e+"`");return e}function SC(e){for(var t={},r=0;r{"use strict";wqe.exports={parse:xqe(),stringify:JY()}});var Aqe=ye(($Y,QY)=>{(function(e,t){typeof $Y=="object"&&typeof QY!="undefined"?QY.exports=t():e.createREGL=t()})($Y,function(){"use strict";var e=function(Ee,xt){for(var zt=Object.keys(xt),Ir=0;Ir1&&xt===zt&&(xt==='"'||xt==="'"))return['"'+o(Ee.substr(1,Ee.length-2))+'"'];var Ir=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Ee);if(Ir)return s(Ee.substr(0,Ir.index)).concat(s(Ir[1])).concat(s(Ee.substr(Ir.index+Ir[0].length)));var Hr=Ee.split(".");if(Hr.length===1)return['"'+o(Ee)+'"'];for(var Br=[],Vr=0;Vr65535)<<4,Ee>>>=xt,zt=(Ee>255)<<3,Ee>>>=zt,xt|=zt,zt=(Ee>15)<<2,Ee>>>=zt,xt|=zt,zt=(Ee>3)<<1,Ee>>>=zt,xt|=zt,xt|Ee>>1}function N(){var Ee=M(8,function(){return[]});function xt(Br){var Vr=Z(Br),mi=Ee[H(Vr)>>2];return mi.length>0?mi.pop():new ArrayBuffer(Vr)}function zt(Br){Ee[H(Br.byteLength)>>2].push(Br)}function Ir(Br,Vr){var mi=null;switch(Br){case g:mi=new Int8Array(xt(Vr),0,Vr);break;case P:mi=new Uint8Array(xt(Vr),0,Vr);break;case T:mi=new Int16Array(xt(2*Vr),0,Vr);break;case z:mi=new Uint16Array(xt(2*Vr),0,Vr);break;case O:mi=new Int32Array(xt(4*Vr),0,Vr);break;case V:mi=new Uint32Array(xt(4*Vr),0,Vr);break;case G:mi=new Float32Array(xt(4*Vr),0,Vr);break;default:return null}return mi.length!==Vr?mi.subarray(0,Vr):mi}function Hr(Br){zt(Br.buffer)}return{alloc:xt,free:zt,allocType:Ir,freeType:Hr}}var j=N();j.zero=N();var re=3408,oe=3410,_e=3411,Me=3412,ke=3413,me=3414,ie=3415,Se=33901,Le=33902,Ae=3379,De=3386,Pe=34921,ge=36347,Fe=36348,ce=35661,Ze=35660,ct=34930,pt=36349,Wt=34076,st=34024,lt=7936,Gt=7937,Nt=7938,$t=35724,sr=34047,wr=36063,ur=34852,Qe=3553,Et=34067,er=34069,Ut=33984,Ft=6408,bt=5126,yt=5121,Yt=36160,lr=36053,Tr=36064,Rr=16384,ei=function(Ee,xt){var zt=1;xt.ext_texture_filter_anisotropic&&(zt=Ee.getParameter(sr));var Ir=1,Hr=1;xt.webgl_draw_buffers&&(Ir=Ee.getParameter(ur),Hr=Ee.getParameter(wr));var Br=!!xt.oes_texture_float;if(Br){var Vr=Ee.createTexture();Ee.bindTexture(Qe,Vr),Ee.texImage2D(Qe,0,Ft,1,1,0,Ft,bt,null);var mi=Ee.createFramebuffer();if(Ee.bindFramebuffer(Yt,mi),Ee.framebufferTexture2D(Yt,Tr,Qe,Vr,0),Ee.bindTexture(Qe,null),Ee.checkFramebufferStatus(Yt)!==lr)Br=!1;else{Ee.viewport(0,0,1,1),Ee.clearColor(1,0,0,1),Ee.clear(Rr);var Ni=j.allocType(bt,4);Ee.readPixels(0,0,1,1,Ft,bt,Ni),Ee.getError()?Br=!1:(Ee.deleteFramebuffer(mi),Ee.deleteTexture(Vr),Br=Ni[0]===1),j.freeType(Ni)}}var Oi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Mi=!0;if(!Oi){var Hn=Ee.createTexture(),Qi=j.allocType(yt,36);Ee.activeTexture(Ut),Ee.bindTexture(Et,Hn),Ee.texImage2D(er,0,Ft,3,3,0,Ft,yt,Qi),j.freeType(Qi),Ee.bindTexture(Et,null),Ee.deleteTexture(Hn),Mi=!Ee.getError()}return{colorBits:[Ee.getParameter(oe),Ee.getParameter(_e),Ee.getParameter(Me),Ee.getParameter(ke)],depthBits:Ee.getParameter(me),stencilBits:Ee.getParameter(ie),subpixelBits:Ee.getParameter(re),extensions:Object.keys(xt).filter(function(ji){return!!xt[ji]}),maxAnisotropic:zt,maxDrawbuffers:Ir,maxColorAttachments:Hr,pointSizeDims:Ee.getParameter(Se),lineWidthDims:Ee.getParameter(Le),maxViewportDims:Ee.getParameter(De),maxCombinedTextureUnits:Ee.getParameter(ce),maxCubeMapSize:Ee.getParameter(Wt),maxRenderbufferSize:Ee.getParameter(st),maxTextureUnits:Ee.getParameter(ct),maxTextureSize:Ee.getParameter(Ae),maxAttributes:Ee.getParameter(Pe),maxVertexUniforms:Ee.getParameter(ge),maxVertexTextureUnits:Ee.getParameter(Ze),maxVaryingVectors:Ee.getParameter(Fe),maxFragmentUniforms:Ee.getParameter(pt),glsl:Ee.getParameter($t),renderer:Ee.getParameter(Gt),vendor:Ee.getParameter(lt),version:Ee.getParameter(Nt),readFloat:Br,npotTextureCube:Mi}},Wr=function(Ee){return Ee instanceof Uint8Array||Ee instanceof Uint16Array||Ee instanceof Uint32Array||Ee instanceof Int8Array||Ee instanceof Int16Array||Ee instanceof Int32Array||Ee instanceof Float32Array||Ee instanceof Float64Array||Ee instanceof Uint8ClampedArray};function Ur(Ee){return!!Ee&&typeof Ee=="object"&&Array.isArray(Ee.shape)&&Array.isArray(Ee.stride)&&typeof Ee.offset=="number"&&Ee.shape.length===Ee.stride.length&&(Array.isArray(Ee.data)||Wr(Ee.data))}var dt=function(Ee){return Object.keys(Ee).map(function(xt){return Ee[xt]})},Ge={shape:xe,flatten:Ie};function Je(Ee,xt,zt){for(var Ir=0;Ir0){var qn;if(Array.isArray(Yr[0])){Xi=kn(Yr);for(var vi=1,li=1;li0){if(typeof vi[0]=="number"){var Ui=j.allocType(ci.dtype,vi.length);Er(Ui,vi),Xi(Ui,mn),j.freeType(Ui)}else if(Array.isArray(vi[0])||Wr(vi[0])){Ki=kn(vi);var Bi=Vn(vi,Ki,ci.dtype);Xi(Bi,mn),j.freeType(Bi)}}}else if(Ur(vi)){Ki=vi.shape;var vn=vi.stride,Un=0,na=0,Yi=0,Ln=0;Ki.length===1?(Un=Ki[0],na=1,Yi=vn[0],Ln=0):Ki.length===2&&(Un=Ki[0],na=Ki[1],Yi=vn[0],Ln=vn[1]);var ra=Array.isArray(vi.data)?ci.dtype:ar(vi.data),oa=j.allocType(ra,Un*na);Zr(oa,vi.data,Un,na,Yi,Ln,vi.offset),Xi(oa,mn),j.freeType(oa)}return nn}return xi||nn(Mr),nn._reglType="buffer",nn._buffer=ci,nn.subdata=qn,zt.profile&&(nn.stats=ci.stats),nn.destroy=function(){Qi(ci)},nn}function si(){dt(Br).forEach(function(Mr){Mr.buffer=Ee.createBuffer(),Ee.bindBuffer(Mr.type,Mr.buffer),Ee.bufferData(Mr.type,Mr.persistentData||Mr.byteLength,Mr.usage)})}return zt.profile&&(xt.getTotalBufferSize=function(){var Mr=0;return Object.keys(Br).forEach(function(Yr){Mr+=Br[Yr].stats.size}),Mr}),{create:ji,createStream:Ni,destroyStream:Oi,clear:function(){dt(Br).forEach(Qi),mi.forEach(Qi)},getBuffer:function(Mr){return Mr&&Mr._buffer instanceof Vr?Mr._buffer:null},restore:si,_initBuffer:Hn}}var $r=0,zi=0,Ji=1,en=1,cn=4,yn=4,Mn={points:$r,point:zi,lines:Ji,line:en,triangles:cn,triangle:yn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ba=0,la=1,ma=4,Wa=5120,Fa=5121,Wo=5122,da=5123,Wn=5124,Ga=5125,vo=34963,jn=35040,St=35044;function Cr(Ee,xt,zt,Ir){var Hr={},Br=0,Vr={uint8:Fa,uint16:da};xt.oes_element_index_uint&&(Vr.uint32=Ga);function mi(si){this.id=Br++,Hr[this.id]=this,this.buffer=si,this.primType=ma,this.vertCount=0,this.type=0}mi.prototype.bind=function(){this.buffer.bind()};var Ni=[];function Oi(si){var Mr=Ni.pop();return Mr||(Mr=new mi(zt.create(null,vo,!0,!1)._buffer)),Hn(Mr,si,jn,-1,-1,0,0),Mr}function Mi(si){Ni.push(si)}function Hn(si,Mr,Yr,xi,Ii,ci,nn){si.buffer.bind();var Xi;if(Mr){var qn=nn;!nn&&(!Wr(Mr)||Ur(Mr)&&!Wr(Mr.data))&&(qn=xt.oes_element_index_uint?Ga:da),zt._initBuffer(si.buffer,Mr,Yr,qn,3)}else Ee.bufferData(vo,ci,Yr),si.buffer.dtype=Xi||Fa,si.buffer.usage=Yr,si.buffer.dimension=3,si.buffer.byteLength=ci;if(Xi=nn,!nn){switch(si.buffer.dtype){case Fa:case Wa:Xi=Fa;break;case da:case Wo:Xi=da;break;case Ga:case Wn:Xi=Ga;break;default:}si.buffer.dtype=Xi}si.type=Xi;var vi=Ii;vi<0&&(vi=si.buffer.byteLength,Xi===da?vi>>=1:Xi===Ga&&(vi>>=2)),si.vertCount=vi;var li=xi;if(xi<0){li=ma;var mn=si.buffer.dimension;mn===1&&(li=Ba),mn===2&&(li=la),mn===3&&(li=ma)}si.primType=li}function Qi(si){Ir.elementsCount--,delete Hr[si.id],si.buffer.destroy(),si.buffer=null}function ji(si,Mr){var Yr=zt.create(null,vo,!0),xi=new mi(Yr._buffer);Ir.elementsCount++;function Ii(ci){if(!ci)Yr(),xi.primType=ma,xi.vertCount=0,xi.type=Fa;else if(typeof ci=="number")Yr(ci),xi.primType=ma,xi.vertCount=ci|0,xi.type=Fa;else{var nn=null,Xi=St,qn=-1,vi=-1,li=0,mn=0;Array.isArray(ci)||Wr(ci)||Ur(ci)?nn=ci:("data"in ci&&(nn=ci.data),"usage"in ci&&(Xi=pn[ci.usage]),"primitive"in ci&&(qn=Mn[ci.primitive]),"count"in ci&&(vi=ci.count|0),"type"in ci&&(mn=Vr[ci.type]),"length"in ci?li=ci.length|0:(li=vi,mn===da||mn===Wo?li*=2:(mn===Ga||mn===Wn)&&(li*=4))),Hn(xi,nn,Xi,qn,vi,li,mn)}return Ii}return Ii(si),Ii._reglType="elements",Ii._elements=xi,Ii.subdata=function(ci,nn){return Yr.subdata(ci,nn),Ii},Ii.destroy=function(){Qi(xi)},Ii}return{create:ji,createStream:Oi,destroyStream:Mi,getElements:function(si){return typeof si=="function"&&si._elements instanceof mi?si._elements:null},clear:function(){dt(Hr).forEach(Qi)}}}var Qr=new Float32Array(1),pi=new Uint32Array(Qr.buffer),fn=5123;function Sn(Ee){for(var xt=j.allocType(fn,Ee.length),zt=0;zt>>31<<15,Br=(Ir<<1>>>24)-127,Vr=Ir>>13&1023;if(Br<-24)xt[zt]=Hr;else if(Br<-14){var mi=-14-Br;xt[zt]=Hr+(Vr+1024>>mi)}else Br>15?xt[zt]=Hr+31744:xt[zt]=Hr+(Br+15<<10)+Vr}return xt}function En(Ee){return Array.isArray(Ee)||Wr(Ee)}var ki=34467,_n=3553,ya=34067,Jn=34069,Ma=6408,_o=6406,No=6407,po=6409,Lo=6410,Co=32854,Fs=32855,zs=36194,ul=32819,cl=32820,zl=33635,cs=34042,nl=6402,Ss=34041,fl=35904,Js=35906,Os=36193,Io=33776,us=33777,Zl=33778,Su=33779,nc=35986,ws=35987,Fn=34798,_a=35840,Vu=35841,Ol=35842,xo=35843,Yl=36196,Us=5121,Hl=5123,ac=5125,aa=5126,Oo=10242,qo=10243,ql=10497,Pc=33071,Do=33648,rf=10240,Uf=10241,ml=9728,Zc=9729,Kl=9984,qs=9985,yu=9986,oc=9987,Cf=33170,sc=4352,Nh=4353,kf=4354,fs=34046,nf=3317,Vf=37440,Jl=37441,hl=37443,lc=37444,Fu=33984,Cs=[Kl,yu,qs,oc],js=[0,po,Lo,No,Ma],Go={};Go[po]=Go[_o]=Go[nl]=1,Go[Ss]=Go[Lo]=2,Go[No]=Go[fl]=3,Go[Ma]=Go[Js]=4;function gs(Ee){return"[object "+Ee+"]"}var uc=gs("HTMLCanvasElement"),bl=gs("OffscreenCanvas"),Gu=gs("CanvasRenderingContext2D"),Bs=gs("ImageBitmap"),ad=gs("HTMLImageElement"),Po=gs("HTMLVideoElement"),od=Object.keys(Ce).concat([uc,bl,Gu,Bs,ad,Po]),Yo=[];Yo[Us]=1,Yo[aa]=4,Yo[Os]=2,Yo[Hl]=2,Yo[ac]=4;var Pa=[];Pa[Co]=2,Pa[Fs]=2,Pa[zs]=2,Pa[Ss]=4,Pa[Io]=.5,Pa[us]=.5,Pa[Zl]=1,Pa[Su]=1,Pa[nc]=.5,Pa[ws]=1,Pa[Fn]=1,Pa[_a]=.5,Pa[Vu]=.25,Pa[Ol]=.5,Pa[xo]=.25,Pa[Yl]=.5;function af(Ee){return Array.isArray(Ee)&&(Ee.length===0||typeof Ee[0]=="number")}function Hu(Ee){if(!Array.isArray(Ee))return!1;var xt=Ee.length;return!(xt===0||!En(Ee[0]))}function wl(Ee){return Object.prototype.toString.call(Ee)}function Gf(Ee){return wl(Ee)===uc}function Ic(Ee){return wl(Ee)===bl}function mf(Ee){return wl(Ee)===Gu}function Bl(Ee){return wl(Ee)===Bs}function xh(Ee){return wl(Ee)===ad}function Qf(Ee){return wl(Ee)===Po}function yf(Ee){if(!Ee)return!1;var xt=wl(Ee);return od.indexOf(xt)>=0?!0:af(Ee)||Hu(Ee)||Ur(Ee)}function Yc(Ee){return Ce[Object.prototype.toString.call(Ee)]|0}function eh(Ee,xt){var zt=xt.length;switch(Ee.type){case Us:case Hl:case ac:case aa:var Ir=j.allocType(Ee.type,zt);Ir.set(xt),Ee.data=Ir;break;case Os:Ee.data=Sn(xt);break;default:}}function th(Ee,xt){return j.allocType(Ee.type===Os?aa:Ee.type,xt)}function ju(Ee,xt){Ee.type===Os?(Ee.data=Sn(xt),j.freeType(xt)):Ee.data=xt}function Hf(Ee,xt,zt,Ir,Hr,Br){for(var Vr=Ee.width,mi=Ee.height,Ni=Ee.channels,Oi=Vr*mi*Ni,Mi=th(Ee,Oi),Hn=0,Qi=0;Qi=1;)mi+=Vr*Ni*Ni,Ni/=2;return mi}else return Vr*zt*Ir}function of(Ee,xt,zt,Ir,Hr,Br,Vr){var mi={"don't care":sc,"dont care":sc,nice:kf,fast:Nh},Ni={repeat:ql,clamp:Pc,mirror:Do},Oi={nearest:ml,linear:Zc},Mi=e({mipmap:oc,"nearest mipmap nearest":Kl,"linear mipmap nearest":qs,"nearest mipmap linear":yu,"linear mipmap linear":oc},Oi),Hn={none:0,browser:lc},Qi={uint8:Us,rgba4:ul,rgb565:zl,"rgb5 a1":cl},ji={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:Co,"rgb5 a1":Fs,rgb565:zs},si={};xt.ext_srgb&&(ji.srgb=fl,ji.srgba=Js),xt.oes_texture_float&&(Qi.float32=Qi.float=aa),xt.oes_texture_half_float&&(Qi.float16=Qi["half float"]=Os),xt.webgl_depth_texture&&(e(ji,{depth:nl,"depth stencil":Ss}),e(Qi,{uint16:Hl,uint32:ac,"depth stencil":cs})),xt.webgl_compressed_texture_s3tc&&e(si,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":us,"rgba s3tc dxt3":Zl,"rgba s3tc dxt5":Su}),xt.webgl_compressed_texture_atc&&e(si,{"rgb atc":nc,"rgba atc explicit alpha":ws,"rgba atc interpolated alpha":Fn}),xt.webgl_compressed_texture_pvrtc&&e(si,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":Ol,"rgba pvrtc 2bppv1":xo}),xt.webgl_compressed_texture_etc1&&(si["rgb etc1"]=Yl);var Mr=Array.prototype.slice.call(Ee.getParameter(ki));Object.keys(si).forEach(function(ne){var we=si[ne];Mr.indexOf(we)>=0&&(ji[ne]=we)});var Yr=Object.keys(ji);zt.textureFormats=Yr;var xi=[];Object.keys(ji).forEach(function(ne){var we=ji[ne];xi[we]=ne});var Ii=[];Object.keys(Qi).forEach(function(ne){var we=Qi[ne];Ii[we]=ne});var ci=[];Object.keys(Oi).forEach(function(ne){var we=Oi[ne];ci[we]=ne});var nn=[];Object.keys(Mi).forEach(function(ne){var we=Mi[ne];nn[we]=ne});var Xi=[];Object.keys(Ni).forEach(function(ne){var we=Ni[ne];Xi[we]=ne});var qn=Yr.reduce(function(ne,we){var Ue=ji[we];return Ue===po||Ue===_o||Ue===po||Ue===Lo||Ue===nl||Ue===Ss||xt.ext_srgb&&(Ue===fl||Ue===Js)?ne[Ue]=Ue:Ue===Fs||we.indexOf("rgba")>=0?ne[Ue]=Ma:ne[Ue]=No,ne},{});function vi(){this.internalformat=Ma,this.format=Ma,this.type=Us,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=lc,this.width=0,this.height=0,this.channels=0}function li(ne,we){ne.internalformat=we.internalformat,ne.format=we.format,ne.type=we.type,ne.compressed=we.compressed,ne.premultiplyAlpha=we.premultiplyAlpha,ne.flipY=we.flipY,ne.unpackAlignment=we.unpackAlignment,ne.colorSpace=we.colorSpace,ne.width=we.width,ne.height=we.height,ne.channels=we.channels}function mn(ne,we){if(!(typeof we!="object"||!we)){if("premultiplyAlpha"in we&&(ne.premultiplyAlpha=we.premultiplyAlpha),"flipY"in we&&(ne.flipY=we.flipY),"alignment"in we&&(ne.unpackAlignment=we.alignment),"colorSpace"in we&&(ne.colorSpace=Hn[we.colorSpace]),"type"in we){var Ue=we.type;ne.type=Qi[Ue]}var ft=ne.width,Zt=ne.height,hr=ne.channels,qt=!1;"shape"in we?(ft=we.shape[0],Zt=we.shape[1],we.shape.length===3&&(hr=we.shape[2],qt=!0)):("radius"in we&&(ft=Zt=we.radius),"width"in we&&(ft=we.width),"height"in we&&(Zt=we.height),"channels"in we&&(hr=we.channels,qt=!0)),ne.width=ft|0,ne.height=Zt|0,ne.channels=hr|0;var Ve=!1;if("format"in we){var et=we.format,at=ne.internalformat=ji[et];ne.format=qn[at],et in Qi&&("type"in we||(ne.type=Qi[et])),et in si&&(ne.compressed=!0),Ve=!0}!qt&&Ve?ne.channels=Go[ne.format]:qt&&!Ve&&ne.channels!==js[ne.format]&&(ne.format=ne.internalformat=js[ne.channels])}}function Ki(ne){Ee.pixelStorei(Vf,ne.flipY),Ee.pixelStorei(Jl,ne.premultiplyAlpha),Ee.pixelStorei(hl,ne.colorSpace),Ee.pixelStorei(nf,ne.unpackAlignment)}function Ui(){vi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Bi(ne,we){var Ue=null;if(yf(we)?Ue=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),yf(we.data)&&(Ue=we.data)),we.copy){var ft=Hr.viewportWidth,Zt=Hr.viewportHeight;ne.width=ne.width||ft-ne.xOffset,ne.height=ne.height||Zt-ne.yOffset,ne.needsCopy=!0}else if(!Ue)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(Wr(Ue))ne.channels=ne.channels||4,ne.data=Ue,!("type"in we)&&ne.type===Us&&(ne.type=Yc(Ue));else if(af(Ue))ne.channels=ne.channels||4,eh(ne,Ue),ne.alignment=1,ne.needsFree=!0;else if(Ur(Ue)){var hr=Ue.data;!Array.isArray(hr)&&ne.type===Us&&(ne.type=Yc(hr));var qt=Ue.shape,Ve=Ue.stride,et,at,kt,Ot,It,Bt;qt.length===3?(kt=qt[2],Bt=Ve[2]):(kt=1,Bt=1),et=qt[0],at=qt[1],Ot=Ve[0],It=Ve[1],ne.alignment=1,ne.width=et,ne.height=at,ne.channels=kt,ne.format=ne.internalformat=js[kt],ne.needsFree=!0,Hf(ne,hr,Ot,It,Bt,Ue.offset)}else if(Gf(Ue)||Ic(Ue)||mf(Ue))Gf(Ue)||Ic(Ue)?ne.element=Ue:ne.element=Ue.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(Bl(Ue))ne.element=Ue,ne.width=Ue.width,ne.height=Ue.height,ne.channels=4;else if(xh(Ue))ne.element=Ue,ne.width=Ue.naturalWidth,ne.height=Ue.naturalHeight,ne.channels=4;else if(Qf(Ue))ne.element=Ue,ne.width=Ue.videoWidth,ne.height=Ue.videoHeight,ne.channels=4;else if(Hu(Ue)){var Rt=ne.width||Ue[0].length,mt=ne.height||Ue.length,Pt=ne.channels;En(Ue[0][0])?Pt=Pt||Ue[0][0].length:Pt=Pt||1;for(var ht=Ge.shape(Ue),cr=1,br=0;br>=Zt,Ue.height>>=Zt,Bi(Ue,ft[Zt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ft=we.mag;ne.magFilter=Oi[ft]}var Zt=ne.wrapS,hr=ne.wrapT;if("wrap"in we){var qt=we.wrap;typeof qt=="string"?Zt=hr=Ni[qt]:Array.isArray(qt)&&(Zt=Ni[qt[0]],hr=Ni[qt[1]])}else{if("wrapS"in we){var Ve=we.wrapS;Zt=Ni[Ve]}if("wrapT"in we){var et=we.wrapT;hr=Ni[et]}}if(ne.wrapS=Zt,ne.wrapT=hr,"anisotropic"in we){var at=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var kt=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=mi[we.mipmap],ne.genMipmaps=!0,kt=!0;break;case"boolean":kt=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,kt=!0;break;default:}kt&&!("min"in we)&&(ne.minFilter=Kl)}}function ol(ne,we){Ee.texParameteri(we,Uf,ne.minFilter),Ee.texParameteri(we,rf,ne.magFilter),Ee.texParameteri(we,Oo,ne.wrapS),Ee.texParameteri(we,qo,ne.wrapT),xt.ext_texture_filter_anisotropic&&Ee.texParameteri(we,fs,ne.anisotropic),ne.genMipmaps&&(Ee.hint(Cf,ne.mipmapHint),Ee.generateMipmap(we))}var Vl=0,ls={},Gs=zt.maxTextureUnits,Ks=Array(Gs).map(function(){return null});function wa(ne){vi.call(this),this.mipmask=0,this.internalformat=Ma,this.id=Vl++,this.refCount=1,this.target=ne,this.texture=Ee.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new zo,Vr.profile&&(this.stats={size:0})}function sl(ne){Ee.activeTexture(Fu),Ee.bindTexture(ne.target,ne.texture)}function io(){var ne=Ks[0];ne?Ee.bindTexture(ne.target,ne.texture):Ee.bindTexture(_n,null)}function Y(ne){var we=ne.texture,Ue=ne.unit,ft=ne.target;Ue>=0&&(Ee.activeTexture(Fu+Ue),Ee.bindTexture(ft,null),Ks[Ue]=null),Ee.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ls[ne.id],Br.textureCount--}e(wa.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Ue=0;Ue0)continue;ft.unit=-1}Ks[Ue]=ne,we=Ue;break}we>=Gs,Vr.profile&&Br.maxTextureUnits>It)-kt,Bt.height=Bt.height||(Ue.height>>It)-Ot,sl(Ue),Un(Bt,_n,kt,Ot,It),io(),Ln(Bt),ft}function hr(qt,Ve){var et=qt|0,at=Ve|0||et;if(et===Ue.width&&at===Ue.height)return ft;ft.width=Ue.width=et,ft.height=Ue.height=at,sl(Ue);for(var kt=0;Ue.mipmask>>kt;++kt){var Ot=et>>kt,It=at>>kt;if(!Ot||!It)break;Ee.texImage2D(_n,kt,Ue.format,Ot,It,0,Ue.format,Ue.type,null)}return io(),Vr.profile&&(Ue.stats.size=cc(Ue.internalformat,Ue.type,et,at,!1,!1)),ft}return ft(ne,we),ft.subimage=Zt,ft.resize=hr,ft._reglType="texture2d",ft._texture=Ue,Vr.profile&&(ft.stats=Ue.stats),ft.destroy=function(){Ue.decRef()},ft}function J(ne,we,Ue,ft,Zt,hr){var qt=new wa(ya);ls[qt.id]=qt,Br.cubeCount++;var Ve=new Array(6);function et(Ot,It,Bt,Rt,mt,Pt){var ht,cr=qt.texInfo;for(zo.call(cr),ht=0;ht<6;++ht)Ve[ht]=Va();if(typeof Ot=="number"||!Ot){var br=Ot|0||1;for(ht=0;ht<6;++ht)oa(Ve[ht],br,br)}else if(typeof Ot=="object")if(It)ba(Ve[0],Ot),ba(Ve[1],It),ba(Ve[2],Bt),ba(Ve[3],Rt),ba(Ve[4],mt),ba(Ve[5],Pt);else if(el(cr,Ot),mn(qt,Ot),"faces"in Ot){var Nr=Ot.faces;for(ht=0;ht<6;++ht)li(Ve[ht],qt),ba(Ve[ht],Nr[ht])}else for(ht=0;ht<6;++ht)ba(Ve[ht],Ot);for(li(qt,Ve[0]),cr.genMipmaps?qt.mipmask=(Ve[0].width<<1)-1:qt.mipmask=Ve[0].mipmask,qt.internalformat=Ve[0].internalformat,et.width=Ve[0].width,et.height=Ve[0].height,sl(qt),ht=0;ht<6;++ht)ns(Ve[ht],Jn+ht);for(ol(cr,ya),io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,cr.genMipmaps,!0)),et.format=xi[qt.internalformat],et.type=Ii[qt.type],et.mag=ci[cr.magFilter],et.min=nn[cr.minFilter],et.wrapS=Xi[cr.wrapS],et.wrapT=Xi[cr.wrapT],ht=0;ht<6;++ht)El(Ve[ht]);return et}function at(Ot,It,Bt,Rt,mt){var Pt=Bt|0,ht=Rt|0,cr=mt|0,br=Yi();return li(br,qt),br.width=0,br.height=0,Bi(br,It),br.width=br.width||(qt.width>>cr)-Pt,br.height=br.height||(qt.height>>cr)-ht,sl(qt),Un(br,Jn+Ot,Pt,ht,cr),io(),Ln(br),et}function kt(Ot){var It=Ot|0;if(It!==qt.width){et.width=qt.width=It,et.height=qt.height=It,sl(qt);for(var Bt=0;Bt<6;++Bt)for(var Rt=0;qt.mipmask>>Rt;++Rt)Ee.texImage2D(Jn+Bt,Rt,qt.format,It>>Rt,It>>Rt,0,qt.format,qt.type,null);return io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,!1,!0)),et}}return et(ne,we,Ue,ft,Zt,hr),et.subimage=at,et.resize=kt,et._reglType="textureCube",et._texture=qt,Vr.profile&&(et.stats=qt.stats),et.destroy=function(){qt.decRef()},et}function q(){for(var ne=0;ne>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);else for(var Zt=0;Zt<6;++Zt)Ee.texImage2D(Jn+Zt,ft,Ue.internalformat,Ue.width>>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);ol(Ue.texInfo,Ue.target)})}function de(){for(var ne=0;ne=0?El=!0:Ni.indexOf(zo)>=0&&(El=!1))),("depthTexture"in wa||"depthStencilTexture"in wa)&&(Ks=!!(wa.depthTexture||wa.depthStencilTexture)),"depth"in wa&&(typeof wa.depth=="boolean"?ns=wa.depth:(Vl=wa.depth,Ys=!1)),"stencil"in wa&&(typeof wa.stencil=="boolean"?Ys=wa.stencil:(ls=wa.stencil,ns=!1)),"depthStencil"in wa&&(typeof wa.depthStencil=="boolean"?ns=Ys=wa.depthStencil:(Gs=wa.depthStencil,ns=!1,Ys=!1))}var io=null,Y=null,D=null,J=null;if(Array.isArray(Va))io=Va.map(si);else if(Va)io=[si(Va)];else for(io=new Array(ol),ra=0;ra0&&(Ln.depth=Bi[0].depth,Ln.stencil=Bi[0].stencil,Ln.depthStencil=Bi[0].depthStencil),Bi[Yi]?Bi[Yi](Ln):Bi[Yi]=li(Ln)}return e(vn,{width:ra,height:ra,color:zo})}function Un(na){var Yi,Ln=na|0;if(Ln===vn.width)return vn;var ra=vn.color;for(Yi=0;Yi=ra.byteLength?oa.subdata(ra):(oa.destroy(),li.buffers[na]=null)),li.buffers[na]||(oa=li.buffers[na]=Hr.create(Yi,Pf,!1,!0)),Ln.buffer=Hr.getBuffer(oa),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1,vn[na]=1}else Hr.getBuffer(Yi)?(Ln.buffer=Hr.getBuffer(Yi),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1):Hr.getBuffer(Yi.buffer)?(Ln.buffer=Hr.getBuffer(Yi.buffer),Ln.size=(+Yi.size||Ln.buffer.dimension)|0,Ln.normalized=!!Yi.normalized||!1,"type"in Yi?Ln.type=Hi[Yi.type]:Ln.type=Ln.buffer.dtype,Ln.offset=(Yi.offset||0)|0,Ln.stride=(Yi.stride||0)|0,Ln.divisor=(Yi.divisor||0)|0,Ln.state=1):"x"in Yi&&(Ln.x=+Yi.x||0,Ln.y=+Yi.y||0,Ln.z=+Yi.z||0,Ln.w=+Yi.w||0,Ln.state=2)}for(var ba=0;ba1)for(var Ki=0;KiMr&&(Mr=Yr.stats.uniformsCount)}),Mr},zt.getMaxAttributesCount=function(){var Mr=0;return Mi.forEach(function(Yr){Yr.stats.attributesCount>Mr&&(Mr=Yr.stats.attributesCount)}),Mr});function si(){Hr={},Br={};for(var Mr=0;Mr16&&(zt=Zi(zt,Ee.length*8));for(var Ir=Array(16),Hr=Array(16),Br=0;Br<16;Br++)Ir[Br]=zt[Br]^909522486,Hr[Br]=zt[Br]^1549556828;var Vr=Zi(Ir.concat(Bc(xt)),512+xt.length*8);return At(Zi(Hr.concat(Vr),768))}function vu(Ee){for(var xt=ah?"0123456789ABCDEF":"0123456789abcdef",zt="",Ir,Hr=0;Hr>>4&15)+xt.charAt(Ir&15);return zt}function qc(Ee){for(var xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt="",Ir=Ee.length,Hr=0;HrEe.length*8?zt+=Zu:zt+=xt.charAt(Br>>>6*(3-Vr)&63);return zt}function cf(Ee,xt){var zt=xt.length,Ir=Array(),Hr,Br,Vr,mi,Ni=Array(Math.ceil(Ee.length/2));for(Hr=0;Hr0;){for(mi=Array(),Vr=0,Hr=0;Hr0||Br>0)&&(mi[mi.length]=Br);Ir[Ir.length]=Vr,Ni=mi}var Oi="";for(Hr=Ir.length-1;Hr>=0;Hr--)Oi+=xt.charAt(Ir[Hr]);var Mi=Math.ceil(Ee.length*8/(Math.log(xt.length)/Math.log(2)));for(Hr=Oi.length;Hr>>6&31,128|Ir&63):Ir<=65535?xt+=String.fromCharCode(224|Ir>>>12&15,128|Ir>>>6&63,128|Ir&63):Ir<=2097151&&(xt+=String.fromCharCode(240|Ir>>>18&7,128|Ir>>>12&63,128|Ir>>>6&63,128|Ir&63));return xt}function Bc(Ee){for(var xt=Array(Ee.length>>2),zt=0;zt>5]|=(Ee.charCodeAt(zt/8)&255)<<24-zt%32;return xt}function At(Ee){for(var xt="",zt=0;zt>5]>>>24-zt%32&255);return xt}function Xt(Ee,xt){return Ee>>>xt|Ee<<32-xt}function kr(Ee,xt){return Ee>>>xt}function Ar(Ee,xt,zt){return Ee&xt^~Ee&zt}function Kr(Ee,xt,zt){return Ee&xt^Ee&zt^xt&zt}function Ei(Ee){return Xt(Ee,2)^Xt(Ee,13)^Xt(Ee,22)}function Wi(Ee){return Xt(Ee,6)^Xt(Ee,11)^Xt(Ee,25)}function hn(Ee){return Xt(Ee,7)^Xt(Ee,18)^kr(Ee,3)}function Tn(Ee){return Xt(Ee,17)^Xt(Ee,19)^kr(Ee,10)}var Bn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Zi(Ee,xt){var zt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Ir=new Array(64),Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr;for(Ee[xt>>5]|=128<<24-xt%32,Ee[(xt+64>>9<<4)+15]=xt,Qi=0;Qi>16)+(xt>>16)+(zt>>16);return Ir<<16|zt&65535}function an(Ee){return Array.prototype.slice.call(Ee)}function Di(Ee){return an(Ee).join("")}function $n(Ee){var xt=Ee&&Ee.cache,zt=0,Ir=[],Hr=[],Br=[];function Vr(si,Mr){var Yr=Mr&&Mr.stable;if(!Yr){for(var xi=0;xi0&&(si.push(Ii,"="),si.push.apply(si,an(arguments)),si.push(";")),Ii}return e(Mr,{def:xi,toString:function(){return Di([Yr.length>0?"var "+Yr.join(",")+";":"",Di(si)])}})}function Ni(){var si=mi(),Mr=mi(),Yr=si.toString,xi=Mr.toString;function Ii(ci,nn){Mr(ci,nn,"=",si.def(ci,nn),";")}return e(function(){si.apply(si,an(arguments))},{def:si.def,entry:si,exit:Mr,save:Ii,set:function(ci,nn,Xi){Ii(ci,nn),si(ci,nn,"=",Xi,";")},toString:function(){return Yr()+xi()}})}function Oi(){var si=Di(arguments),Mr=Ni(),Yr=Ni(),xi=Mr.toString,Ii=Yr.toString;return e(Mr,{then:function(){return Mr.apply(Mr,an(arguments)),this},else:function(){return Yr.apply(Yr,an(arguments)),this},toString:function(){var ci=Ii();return ci&&(ci="else{"+ci+"}"),Di(["if(",si,"){",xi(),"}",ci])}})}var Mi=mi(),Hn={};function Qi(si,Mr){var Yr=[];function xi(){var qn="a"+Yr.length;return Yr.push(qn),qn}Mr=Mr||0;for(var Ii=0;Ii":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ni={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},gi={cw:Te,ccw:Ne};function Pi(Ee){return Array.isArray(Ee)||Wr(Ee)||Ur(Ee)}function Ai(Ee){return Ee.sort(function(xt,zt){return xt===ee?-1:zt===ee?1:xt=1,Ir>=2,xt)}else if(zt===Xo){var Hr=Ee.data;return new ti(Hr.thisDep,Hr.contextDep,Hr.propDep,xt)}else{if(zt===Ms)return new ti(!1,!1,!1,xt);if(zt===os){for(var Br=!1,Vr=!1,mi=!1,Ni=0;Ni=1&&(Vr=!0),Mi>=2&&(mi=!0)}else Oi.type===Xo&&(Br=Br||Oi.data.thisDep,Vr=Vr||Oi.data.contextDep,mi=mi||Oi.data.propDep)}return new ti(Br,Vr,mi,xt)}else return new ti(zt===bo,zt===Ka,zt===zn,xt)}}var ia=new ti(!1,!1,!1,function(){});function Ea(Ee,xt,zt,Ir,Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr){var Yr=Oi.Record,xi={add:32774,subtract:32778,"reverse subtract":32779};zt.ext_blend_minmax&&(xi.min=He,xi.max=Ye);var Ii=zt.angle_instanced_arrays,ci=zt.webgl_draw_buffers,nn=zt.oes_vertex_array_object,Xi={dirty:!0,profile:Mr.profile},qn={},vi=[],li={},mn={};function Ki(Ve){return Ve.replace(".","_")}function Ui(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),qn[kt]=Xi[kt]=!!at,li[kt]=et}function Bi(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),Array.isArray(at)?(Xi[kt]=at.slice(),qn[kt]=at.slice()):Xi[kt]=qn[kt]=at,mn[kt]=et}function vn(Ve){return!!isNaN(Ve)}Ui(Ts,Li),Ui(Ho,ii),Bi(yl,"blendColor",[0,0,0,0]),Bi(Xs,"blendEquationSeparate",[yr,yr]),Bi(Ps,"blendFuncSeparate",[gr,jt,gr,jt]),Ui(va,sn,!0),Bi(no,"depthFunc",Gr),Bi(_s,"depthRange",[0,1]),Bi(is,"depthMask",!0),Bi($l,$l,[!0,!0,!0,!0]),Ui(ku,jr),Bi(Yu,"cullFace",se),Bi(Nc,Nc,Ne),Bi(pu,pu,1),Ui(Uc,Kn),Bi(xu,"polygonOffset",[0,0]),Ui(Ac,Aa),Ui(Ua,fa),Bi(oo,"sampleCoverage",[1,!1]),Ui(Vc,un),Bi(hc,"stencilMask",-1),Bi(Ku,"stencilFunc",[Ct,0,-1]),Bi(ue,"stencilOpSeparate",[X,nt,nt,nt]),Bi(w,"stencilOpSeparate",[se,nt,nt,nt]),Ui(B,In),Bi(Q,"scissor",[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]),Bi(ee,ee,[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]);var Un={gl:Ee,context:Qi,strings:xt,next:qn,current:Xi,draw:Hn,elements:Br,buffer:Hr,shader:Mi,attributes:Oi.state,vao:Oi,uniforms:Ni,framebuffer:mi,extensions:zt,timer:ji,isBufferArgs:Pi},na={primTypes:Mn,compareFuncs:Xr,blendFuncs:bi,blendEquations:xi,stencilOps:ni,glTypes:Hi,orientationType:gi};ci&&(na.backBuffer=[se],na.drawBuffer=M(Ir.maxDrawbuffers,function(Ve){return Ve===0?[0]:M(Ve,function(et){return _i+et})}));var Yi=0;function Ln(){var Ve=$n({cache:si}),et=Ve.link,at=Ve.global;Ve.id=Yi++,Ve.batchId="0";var kt=et(Un),Ot=Ve.shared={props:"a0"};Object.keys(Un).forEach(function(Pt){Ot[Pt]=at.def(kt,".",Pt)});var It=Ve.next={},Bt=Ve.current={};Object.keys(mn).forEach(function(Pt){Array.isArray(Xi[Pt])&&(It[Pt]=at.def(Ot.next,".",Pt),Bt[Pt]=at.def(Ot.current,".",Pt))});var Rt=Ve.constants={};Object.keys(na).forEach(function(Pt){Rt[Pt]=at.def(JSON.stringify(na[Pt]))}),Ve.invoke=function(Pt,ht){switch(ht.type){case Yn:var cr=["this",Ot.context,Ot.props,Ve.batchId];return Pt.def(et(ht.data),".call(",cr.slice(0,Math.max(ht.data.length+1,4)),")");case zn:return Pt.def(Ot.props,ht.data);case Ka:return Pt.def(Ot.context,ht.data);case bo:return Pt.def("this",ht.data);case Xo:return ht.data.append(Ve,Pt),ht.data.ref;case Ms:return ht.data.toString();case os:return ht.data.map(function(br){return Ve.invoke(Pt,br)})}},Ve.attribCache={};var mt={};return Ve.scopeAttrib=function(Pt){var ht=xt.id(Pt);if(ht in mt)return mt[ht];var cr=Oi.scope[ht];cr||(cr=Oi.scope[ht]=new Yr);var br=mt[ht]=et(cr);return br},Ve}function ra(Ve){var et=Ve.static,at=Ve.dynamic,kt;if(le in et){var Ot=!!et[le];kt=Cn(function(Bt,Rt){return Ot}),kt.enable=Ot}else if(le in at){var It=at[le];kt=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}return kt}function oa(Ve,et){var at=Ve.static,kt=Ve.dynamic;if(qe in at){var Ot=at[qe];return Ot?(Ot=mi.getFramebuffer(Ot),Cn(function(Bt,Rt){var mt=Bt.link(Ot),Pt=Bt.shared;Rt.set(Pt.framebuffer,".next",mt);var ht=Pt.context;return Rt.set(ht,"."+Be,mt+".width"),Rt.set(ht,"."+tt,mt+".height"),mt})):Cn(function(Bt,Rt){var mt=Bt.shared;Rt.set(mt.framebuffer,".next","null");var Pt=mt.context;return Rt.set(Pt,"."+Be,Pt+"."+Ht),Rt.set(Pt,"."+tt,Pt+"."+rr),"null"})}else if(qe in kt){var It=kt[qe];return Nn(It,function(Bt,Rt){var mt=Bt.invoke(Rt,It),Pt=Bt.shared,ht=Pt.framebuffer,cr=Rt.def(ht,".getFramebuffer(",mt,")");Rt.set(ht,".next",cr);var br=Pt.context;return Rt.set(br,"."+Be,cr+"?"+cr+".width:"+br+"."+Ht),Rt.set(br,"."+tt,cr+"?"+cr+".height:"+br+"."+rr),cr})}else return null}function wa(Ve,et,at){var kt=Ve.static,Ot=Ve.dynamic;function It(mt){if(mt in kt){var Pt=kt[mt],ht=!0,cr=Pt.x|0,br=Pt.y|0,Nr,Ri;return"width"in Pt?Nr=Pt.width|0:ht=!1,"height"in Pt?Ri=Pt.height|0:ht=!1,new ti(!ht&&et&&et.thisDep,!ht&&et&&et.contextDep,!ht&&et&&et.propDep,function(gn,tn){var Ci=gn.shared.context,qi=Nr;"width"in Pt||(qi=tn.def(Ci,".",Be,"-",cr));var Vi=Ri;return"height"in Pt||(Vi=tn.def(Ci,".",tt,"-",br)),[cr,br,qi,Vi]})}else if(mt in Ot){var hi=Ot[mt],wi=Nn(hi,function(gn,tn){var Ci=gn.invoke(tn,hi),qi=gn.shared.context,Vi=tn.def(Ci,".x|0"),on=tn.def(Ci,".y|0"),On=tn.def('"width" in ',Ci,"?",Ci,".width|0:","(",qi,".",Be,"-",Vi,")"),Ja=tn.def('"height" in ',Ci,"?",Ci,".height|0:","(",qi,".",tt,"-",on,")");return[Vi,on,On,Ja]});return et&&(wi.thisDep=wi.thisDep||et.thisDep,wi.contextDep=wi.contextDep||et.contextDep,wi.propDep=wi.propDep||et.propDep),wi}else return et?new ti(et.thisDep,et.contextDep,et.propDep,function(gn,tn){var Ci=gn.shared.context;return[0,0,tn.def(Ci,".",Be),tn.def(Ci,".",tt)]}):null}var Bt=It(ee);if(Bt){var Rt=Bt;Bt=new ti(Bt.thisDep,Bt.contextDep,Bt.propDep,function(mt,Pt){var ht=Rt.append(mt,Pt),cr=mt.shared.context;return Pt.set(cr,"."+We,ht[2]),Pt.set(cr,"."+it,ht[3]),ht})}return{viewport:Bt,scissor_box:It(Q)}}function ns(Ve,et){var at=Ve.static,kt=typeof at[ot]=="string"&&typeof at[Xe]=="string";if(kt){if(Object.keys(et.dynamic).length>0)return null;var Ot=et.static,It=Object.keys(Ot);if(It.length>0&&typeof Ot[It[0]]=="number"){for(var Bt=[],Rt=0;Rt"+Vi+"?"+ht+".constant["+Vi+"]:0;"}).join(""),"}}else{","if(",Nr,"(",ht,".buffer)){",gn,"=",Ri,".createStream(",Sr,",",ht,".buffer);","}else{",gn,"=",Ri,".getBuffer(",ht,".buffer);","}",tn,'="type" in ',ht,"?",br.glTypes,"[",ht,".type]:",gn,".dtype;",hi.normalized,"=!!",ht,".normalized;");function Ci(qi){Pt(hi[qi],"=",ht,".",qi,"|0;")}return Ci("size"),Ci("offset"),Ci("stride"),Ci("divisor"),Pt("}}"),Pt.exit("if(",hi.isStream,"){",Ri,".destroyStream(",gn,");","}"),hi}Ot[It]=Nn(Bt,Rt)}),Ot}function ol(Ve){var et=Ve.static,at=Ve.dynamic,kt={};return Object.keys(et).forEach(function(Ot){var It=et[Ot];kt[Ot]=Cn(function(Bt,Rt){return typeof It=="number"||typeof It=="boolean"?""+It:Bt.link(It)})}),Object.keys(at).forEach(function(Ot){var It=at[Ot];kt[Ot]=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}),kt}function Vl(Ve,et,at,kt,Ot){var It=Ve.static,Bt=Ve.dynamic,Rt=ns(Ve,et),mt=oa(Ve,Ot),Pt=wa(Ve,mt,Ot),ht=Va(Ve,Ot),cr=El(Ve,Ot),br=Ys(Ve,Ot,Rt);function Nr(Ci){var qi=Pt[Ci];qi&&(cr[Ci]=qi)}Nr(ee),Nr(Ki(Q));var Ri=Object.keys(cr).length>0,hi={framebuffer:mt,draw:ht,shader:br,state:cr,dirty:Ri,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(hi.profile=ra(Ve,Ot),hi.uniforms=zo(at,Ot),hi.drawVAO=hi.scopeVAO=ht.vao,!hi.drawVAO&&br.program&&!Rt&&zt.angle_instanced_arrays&&ht.static.elements){var wi=!0,gn=br.program.attributes.map(function(Ci){var qi=et.static[Ci];return wi=wi&&!!qi,qi});if(wi&&gn.length>0){var tn=Oi.getVAO(Oi.createVAO({attributes:gn,elements:ht.static.elements}));hi.drawVAO=new ti(null,null,null,function(Ci,qi){return Ci.link(tn)}),hi.useVAO=!0}}return Rt?hi.useVAO=!0:hi.attributes=el(et,Ot),hi.context=ol(kt,Ot),hi}function ls(Ve,et,at){var kt=Ve.shared,Ot=kt.context,It=Ve.scope();Object.keys(at).forEach(function(Bt){et.save(Ot,"."+Bt);var Rt=at[Bt],mt=Rt.append(Ve,et);Array.isArray(mt)?It(Ot,".",Bt,"=[",mt.join(),"];"):It(Ot,".",Bt,"=",mt,";")}),et(It)}function Gs(Ve,et,at,kt){var Ot=Ve.shared,It=Ot.gl,Bt=Ot.framebuffer,Rt;ci&&(Rt=et.def(Ot.extensions,".webgl_draw_buffers"));var mt=Ve.constants,Pt=mt.drawBuffer,ht=mt.backBuffer,cr;at?cr=at.append(Ve,et):cr=et.def(Bt,".next"),kt||et("if(",cr,"!==",Bt,".cur){"),et("if(",cr,"){",It,".bindFramebuffer(",qr,",",cr,".framebuffer);"),ci&&et(Rt,".drawBuffersWEBGL(",Pt,"[",cr,".colorAttachments.length]);"),et("}else{",It,".bindFramebuffer(",qr,",null);"),ci&&et(Rt,".drawBuffersWEBGL(",ht,");"),et("}",Bt,".cur=",cr,";"),kt||et("}")}function Ks(Ve,et,at){var kt=Ve.shared,Ot=kt.gl,It=Ve.current,Bt=Ve.next,Rt=kt.current,mt=kt.next,Pt=Ve.cond(Rt,".dirty");vi.forEach(function(ht){var cr=Ki(ht);if(!(cr in at.state)){var br,Nr;if(cr in Bt){br=Bt[cr],Nr=It[cr];var Ri=M(Xi[cr].length,function(wi){return Pt.def(br,"[",wi,"]")});Pt(Ve.cond(Ri.map(function(wi,gn){return wi+"!=="+Nr+"["+gn+"]"}).join("||")).then(Ot,".",mn[cr],"(",Ri,");",Ri.map(function(wi,gn){return Nr+"["+gn+"]="+wi}).join(";"),";"))}else{br=Pt.def(mt,".",cr);var hi=Ve.cond(br,"!==",Rt,".",cr);Pt(hi),cr in li?hi(Ve.cond(br).then(Ot,".enable(",li[cr],");").else(Ot,".disable(",li[cr],");"),Rt,".",cr,"=",br,";"):hi(Ot,".",mn[cr],"(",br,");",Rt,".",cr,"=",br,";")}}}),Object.keys(at.state).length===0&&Pt(Rt,".dirty=false;"),et(Pt)}function Ta(Ve,et,at,kt){var Ot=Ve.shared,It=Ve.current,Bt=Ot.current,Rt=Ot.gl,mt;Ai(Object.keys(at)).forEach(function(Pt){var ht=at[Pt];if(!(kt&&!kt(ht))){var cr=ht.append(Ve,et);if(li[Pt]){var br=li[Pt];Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Ve.cond(mt).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",mt,";")):(et(Ve.cond(cr).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",cr,";"))}else if(En(cr)){var Nr=It[Pt];et(Rt,".",mn[Pt],"(",cr,");",cr.map(function(Ri,hi){return Nr+"["+hi+"]="+Ri}).join(";"),";")}else Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Rt,".",mn[Pt],"(",mt,");",Bt,".",Pt,"=",mt,";")):et(Rt,".",mn[Pt],"(",cr,");",Bt,".",Pt,"=",cr,";")}})}function sl(Ve,et){Ii&&(Ve.instancing=et.def(Ve.shared.extensions,".angle_instanced_arrays"))}function io(Ve,et,at,kt,Ot){var It=Ve.shared,Bt=Ve.stats,Rt=It.current,mt=It.timer,Pt=at.profile;function ht(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var cr,br;function Nr(Ci){cr=et.def(),Ci(cr,"=",ht(),";"),typeof Ot=="string"?Ci(Bt,".count+=",Ot,";"):Ci(Bt,".count++;"),ji&&(kt?(br=et.def(),Ci(br,"=",mt,".getNumPendingQueries();")):Ci(mt,".beginQuery(",Bt,");"))}function Ri(Ci){Ci(Bt,".cpuTime+=",ht(),"-",cr,";"),ji&&(kt?Ci(mt,".pushScopeStats(",br,",",mt,".getNumPendingQueries(),",Bt,");"):Ci(mt,".endQuery();"))}function hi(Ci){var qi=et.def(Rt,".profile");et(Rt,".profile=",Ci,";"),et.exit(Rt,".profile=",qi,";")}var wi;if(Pt){if(Rn(Pt)){Pt.enable?(Nr(et),Ri(et.exit),hi("true")):hi("false");return}wi=Pt.append(Ve,et),hi(wi)}else wi=et.def(Rt,".profile");var gn=Ve.block();Nr(gn),et("if(",wi,"){",gn,"}");var tn=Ve.block();Ri(tn),et.exit("if(",wi,"){",tn,"}")}function Y(Ve,et,at,kt,Ot){var It=Ve.shared;function Bt(mt){switch(mt){case ko:case Is:case dl:return 2;case Qa:case As:case Ul:return 3;case mo:case wo:case Lu:return 4;default:return 1}}function Rt(mt,Pt,ht){var cr=It.gl,br=et.def(mt,".location"),Nr=et.def(It.attributes,"[",br,"]"),Ri=ht.state,hi=ht.buffer,wi=[ht.x,ht.y,ht.z,ht.w],gn=["buffer","normalized","offset","stride"];function tn(){et("if(!",Nr,".buffer){",cr,".enableVertexAttribArray(",br,");}");var qi=ht.type,Vi;if(ht.size?Vi=et.def(ht.size,"||",Pt):Vi=Pt,et("if(",Nr,".type!==",qi,"||",Nr,".size!==",Vi,"||",gn.map(function(On){return Nr+"."+On+"!=="+ht[On]}).join("||"),"){",cr,".bindBuffer(",Sr,",",hi,".buffer);",cr,".vertexAttribPointer(",[br,Vi,qi,ht.normalized,ht.stride,ht.offset],");",Nr,".type=",qi,";",Nr,".size=",Vi,";",gn.map(function(On){return Nr+"."+On+"="+ht[On]+";"}).join(""),"}"),Ii){var on=ht.divisor;et("if(",Nr,".divisor!==",on,"){",Ve.instancing,".vertexAttribDivisorANGLE(",[br,on],");",Nr,".divisor=",on,";}")}}function Ci(){et("if(",Nr,".buffer){",cr,".disableVertexAttribArray(",br,");",Nr,".buffer=null;","}if(",ka.map(function(qi,Vi){return Nr+"."+qi+"!=="+wi[Vi]}).join("||"),"){",cr,".vertexAttrib4f(",br,",",wi,");",ka.map(function(qi,Vi){return Nr+"."+qi+"="+wi[Vi]+";"}).join(""),"}")}Ri===La?tn():Ri===Na?Ci():(et("if(",Ri,"===",La,"){"),tn(),et("}else{"),Ci(),et("}"))}kt.forEach(function(mt){var Pt=mt.name,ht=at.attributes[Pt],cr;if(ht){if(!Ot(ht))return;cr=ht.append(Ve,et)}else{if(!Ot(ia))return;var br=Ve.scopeAttrib(Pt);cr={},Object.keys(new Yr).forEach(function(Nr){cr[Nr]=et.def(br,".",Nr)})}Rt(Ve.link(mt),Bt(mt.info.type),cr)})}function D(Ve,et,at,kt,Ot,It){for(var Bt=Ve.shared,Rt=Bt.gl,mt,Pt=0;Pt1){for(var co=[],rs=[],so=0;so>1)",hi],");")}function on(){at(wi,".drawArraysInstancedANGLE(",[br,Nr,Ri,hi],");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}function qi(){function Vi(){at(It+".drawElements("+[br,Ri,gn,Nr+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function on(){at(It+".drawArrays("+[br,Nr,Ri]+");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}Ii&&(typeof hi!="number"||hi>=0)?typeof hi=="string"?(at("if(",hi,">0){"),Ci(),at("}else if(",hi,"<0){"),qi(),at("}")):Ci():qi()}function q(Ve,et,at,kt,Ot){var It=Ln(),Bt=It.proc("body",Ot);return Ii&&(It.instancing=Bt.def(It.shared.extensions,".angle_instanced_arrays")),Ve(It,Bt,at,kt),It.compile().body}function K(Ve,et,at,kt){sl(Ve,et),at.useVAO?at.drawVAO?et(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,et),");"):et(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(et(Ve.shared.vao,".setVAO(null);"),Y(Ve,et,at,kt.attributes,function(){return!0})),D(Ve,et,at,kt.uniforms,function(){return!0},!1),J(Ve,et,et,at)}function de(Ve,et){var at=Ve.proc("draw",1);sl(Ve,at),ls(Ve,at,et.context),Gs(Ve,at,et.framebuffer),Ks(Ve,at,et),Ta(Ve,at,et.state),io(Ve,at,et,!1,!0);var kt=et.shader.progVar.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",kt,".program);"),et.shader.program)K(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var Ot=Ve.global.def("{}"),It=at.def(kt,".id"),Bt=at.def(Ot,"[",It,"]");at(Ve.cond(Bt).then(Bt,".call(this,a0);").else(Bt,"=",Ot,"[",It,"]=",Ve.link(function(Rt){return q(K,Ve,et,Rt,1)}),"(",kt,");",Bt,".call(this,a0);"))}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ne(Ve,et,at,kt){Ve.batchId="a1",sl(Ve,et);function Ot(){return!0}Y(Ve,et,at,kt.attributes,Ot),D(Ve,et,at,kt.uniforms,Ot,!1),J(Ve,et,et,at)}function we(Ve,et,at,kt){sl(Ve,et);var Ot=at.contextDep,It=et.def(),Bt="a0",Rt="a1",mt=et.def();Ve.shared.props=mt,Ve.batchId=It;var Pt=Ve.scope(),ht=Ve.scope();et(Pt.entry,"for(",It,"=0;",It,"<",Rt,";++",It,"){",mt,"=",Bt,"[",It,"];",ht,"}",Pt.exit);function cr(gn){return gn.contextDep&&Ot||gn.propDep}function br(gn){return!cr(gn)}if(at.needsContext&&ls(Ve,ht,at.context),at.needsFramebuffer&&Gs(Ve,ht,at.framebuffer),Ta(Ve,ht,at.state,cr),at.profile&&cr(at.profile)&&io(Ve,ht,at,!1,!0),kt)at.useVAO?at.drawVAO?cr(at.drawVAO)?ht(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,ht),");"):Pt(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Pt),");"):Pt(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Pt(Ve.shared.vao,".setVAO(null);"),Y(Ve,Pt,at,kt.attributes,br),Y(Ve,ht,at,kt.attributes,cr)),D(Ve,Pt,at,kt.uniforms,br,!1),D(Ve,ht,at,kt.uniforms,cr,!0),J(Ve,Pt,ht,at);else{var Nr=Ve.global.def("{}"),Ri=at.shader.progVar.append(Ve,ht),hi=ht.def(Ri,".id"),wi=ht.def(Nr,"[",hi,"]");ht(Ve.shared.gl,".useProgram(",Ri,".program);","if(!",wi,"){",wi,"=",Nr,"[",hi,"]=",Ve.link(function(gn){return q(ne,Ve,at,gn,2)}),"(",Ri,");}",wi,".call(this,a0[",It,"],",It,");")}}function Ue(Ve,et){var at=Ve.proc("batch",2);Ve.batchId="0",sl(Ve,at);var kt=!1,Ot=!0;Object.keys(et.context).forEach(function(Nr){kt=kt||et.context[Nr].propDep}),kt||(ls(Ve,at,et.context),Ot=!1);var It=et.framebuffer,Bt=!1;It?(It.propDep?kt=Bt=!0:It.contextDep&&kt&&(Bt=!0),Bt||Gs(Ve,at,It)):Gs(Ve,at,null),et.state.viewport&&et.state.viewport.propDep&&(kt=!0);function Rt(Nr){return Nr.contextDep&&kt||Nr.propDep}Ks(Ve,at,et),Ta(Ve,at,et.state,function(Nr){return!Rt(Nr)}),(!et.profile||!Rt(et.profile))&&io(Ve,at,et,!1,"a1"),et.contextDep=kt,et.needsContext=Ot,et.needsFramebuffer=Bt;var mt=et.shader.progVar;if(mt.contextDep&&kt||mt.propDep)we(Ve,at,et,null);else{var Pt=mt.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Pt,".program);"),et.shader.program)we(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var ht=Ve.global.def("{}"),cr=at.def(Pt,".id"),br=at.def(ht,"[",cr,"]");at(Ve.cond(br).then(br,".call(this,a0,a1);").else(br,"=",ht,"[",cr,"]=",Ve.link(function(Nr){return q(we,Ve,et,Nr,2)}),"(",Pt,");",br,".call(this,a0,a1);"))}}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ft(Ve,et){var at=Ve.proc("scope",3);Ve.batchId="a2";var kt=Ve.shared,Ot=kt.current;if(ls(Ve,at,et.context),et.framebuffer&&et.framebuffer.append(Ve,at),Ai(Object.keys(et.state)).forEach(function(Rt){var mt=et.state[Rt],Pt=mt.append(Ve,at);En(Pt)?Pt.forEach(function(ht,cr){vn(ht)?at.set(Ve.next[Rt],"["+cr+"]",ht):at.set(Ve.next[Rt],"["+cr+"]",Ve.link(ht,{stable:!0}))}):Rn(mt)?at.set(kt.next,"."+Rt,Ve.link(Pt,{stable:!0})):at.set(kt.next,"."+Rt,Pt)}),io(Ve,at,et,!0,!0),[Tt,xr,Jt,Pr,Kt].forEach(function(Rt){var mt=et.draw[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.draw,"."+Rt,Pt):at.set(kt.draw,"."+Rt,Ve.link(Pt),{stable:!0})}}),Object.keys(et.uniforms).forEach(function(Rt){var mt=et.uniforms[Rt].append(Ve,at);Array.isArray(mt)&&(mt="["+mt.map(function(Pt){return vn(Pt)?Pt:Ve.link(Pt,{stable:!0})})+"]"),at.set(kt.uniforms,"["+Ve.link(xt.id(Rt),{stable:!0})+"]",mt)}),Object.keys(et.attributes).forEach(function(Rt){var mt=et.attributes[Rt].append(Ve,at),Pt=Ve.scopeAttrib(Rt);Object.keys(new Yr).forEach(function(ht){at.set(Pt,"."+ht,mt[ht])})}),et.scopeVAO){var It=et.scopeVAO.append(Ve,at);vn(It)?at.set(kt.vao,".targetVAO",It):at.set(kt.vao,".targetVAO",Ve.link(It,{stable:!0}))}function Bt(Rt){var mt=et.shader[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.shader,"."+Rt,Pt):at.set(kt.shader,"."+Rt,Ve.link(Pt,{stable:!0}))}}Bt(Xe),Bt(ot),Object.keys(et.state).length>0&&(at(Ot,".dirty=true;"),at.exit(Ot,".dirty=true;")),at("a1(",Ve.shared.context,",a0,",Ve.batchId,");")}function Zt(Ve){if(!(typeof Ve!="object"||En(Ve))){for(var et=Object.keys(Ve),at=0;at=0;--q){var K=Un[q];K&&K(si,null,0)}zt.flush(),Mi&&Mi.update()}function wa(){!ra&&Un.length>0&&(ra=d.next(oa))}function ns(){ra&&(d.cancel(oa),ra=null)}function Ys(q){q.preventDefault(),Hr=!0,ns(),na.forEach(function(K){K()})}function Va(q){zt.getError(),Hr=!1,Br.restore(),qn.restore(),Ii.restore(),vi.restore(),li.restore(),mn.restore(),nn.restore(),Mi&&Mi.restore(),Ki.procs.refresh(),wa(),Yi.forEach(function(K){K()})}vn&&(vn.addEventListener(Fo,Ys,!1),vn.addEventListener(Uo,Va,!1));function El(){Un.length=0,ns(),vn&&(vn.removeEventListener(Fo,Ys),vn.removeEventListener(Uo,Va)),qn.clear(),mn.clear(),li.clear(),nn.clear(),vi.clear(),ci.clear(),Ii.clear(),Mi&&Mi.clear(),Ln.forEach(function(q){q()})}function zo(q){function K(It){var Bt=e({},It);delete Bt.uniforms,delete Bt.attributes,delete Bt.context,delete Bt.vao,"stencil"in Bt&&Bt.stencil.op&&(Bt.stencil.opBack=Bt.stencil.opFront=Bt.stencil.op,delete Bt.stencil.op);function Rt(mt){if(mt in Bt){var Pt=Bt[mt];delete Bt[mt],Object.keys(Pt).forEach(function(ht){Bt[mt+"."+ht]=Pt[ht]})}}return Rt("blend"),Rt("depth"),Rt("cull"),Rt("stencil"),Rt("polygonOffset"),Rt("scissor"),Rt("sample"),"vao"in It&&(Bt.vao=It.vao),Bt}function de(It,Bt){var Rt={},mt={};return Object.keys(It).forEach(function(Pt){var ht=It[Pt];if(h.isDynamic(ht)){mt[Pt]=h.unbox(ht,Pt);return}else if(Bt&&Array.isArray(ht)){for(var cr=0;cr0)return Ve.call(this,kt(It|0),It|0)}else if(Array.isArray(It)){if(It.length)return Ve.call(this,It,It.length)}else return qt.call(this,It)}return e(Ot,{stats:Zt,destroy:function(){hr.destroy()}})}var el=mn.setFBO=zo({framebuffer:h.define.call(null,Qs,"framebuffer")});function ol(q,K){var de=0;Ki.procs.poll();var ne=K.color;ne&&(zt.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Es),"depth"in K&&(zt.clearDepth(+K.depth),de|=Zs),"stencil"in K&&(zt.clearStencil(K.stencil|0),de|=Gn),zt.clear(de)}function Vl(q){if("framebuffer"in q)if(q.framebuffer&&q.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)el(e({framebuffer:q.framebuffer.faces[K]},q),ol);else el(q,ol);else ol(null,q)}function ls(q){Un.push(q);function K(){var de=vl(Un,q);function ne(){var we=vl(Un,ne);Un[we]=Un[Un.length-1],Un.length-=1,Un.length<=0&&ns()}Un[de]=ne}return wa(),{cancel:K}}function Gs(){var q=Bi.viewport,K=Bi.scissor_box;q[0]=q[1]=K[0]=K[1]=0,si.viewportWidth=si.framebufferWidth=si.drawingBufferWidth=q[2]=K[2]=zt.drawingBufferWidth,si.viewportHeight=si.framebufferHeight=si.drawingBufferHeight=q[3]=K[3]=zt.drawingBufferHeight}function Ks(){si.tick+=1,si.time=sl(),Gs(),Ki.procs.poll()}function Ta(){vi.refresh(),Gs(),Ki.procs.refresh(),Mi&&Mi.update()}function sl(){return(v()-Hn)/1e3}Ta();function io(q,K){var de;switch(q){case"frame":return ls(K);case"lost":de=na;break;case"restore":de=Yi;break;case"destroy":de=Ln;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Ui,destroy:El,_gl:zt,_refresh:Ta,poll:function(){Ks(),Mi&&Mi.update()},now:sl,stats:mi,getCachedCode:Y,preloadCachedCode:D});return xt.onDone(null,J),J}return Sc})});var Eqe=ye((n1r,Mqe)=>{"use strict";var ANt=Xm();Mqe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},Aqe(t)?t={container:t}:SNt(t)?t={container:t}:MNt(t)?t={gl:t}:t=ANt(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}Aqe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=Sqe(),t.container.appendChild(t.canvas),Tqe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=Sqe(),t.container.appendChild(t.canvas),Tqe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch(i){}return t.gl}),t.gl};function Tqe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function Aqe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function SNt(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function MNt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Sqe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var kqe=ye((a1r,Cqe)=>{"use strict";var ENt=JY(),CNt=[32,126];Cqe.exports=kNt;function kNt(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||CNt;if(n&&typeof n!="string"&&(n=ENt(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],l=0;s<=a[1];s++)o[l++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var u=r.getContext("2d");u.fillStyle="#000",u.fillRect(0,0,r.width,r.height),u.font=n,u.textAlign="center",u.textBaseline="middle",u.fillStyle="#fff";for(var c=i[0]/2,f=i[1]/2,s=0;st[0]-i[0]/2&&(c=i[0]/2,f+=i[1]);return r}});var tK=ye(Oh=>{"use strict";"use restrict";var eK=32;Oh.INT_BITS=eK;Oh.INT_MAX=2147483647;Oh.INT_MIN=-1<0)-(e<0)};Oh.abs=function(e){var t=e>>eK-1;return(e^t)-t};Oh.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Oh.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Oh.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function Lqe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Oh.countTrailingZeros=Lqe;Oh.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Oh.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Oh.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var SC=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<>>8&255]<<16|SC[e>>>16&255]<<8|SC[e>>>24&255]};Oh.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Oh.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Oh.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Oh.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Oh.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>Lqe(e)+1}});var Rqe=ye((s1r,Iqe)=>{"use strict";function Pqe(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a0)return LNt(e|0,t);break;case"object":if(typeof e.length=="number")return Pqe(e,t,0);break}return[]}Iqe.exports=PNt});var Zqe=ye(mu=>{"use strict";var cx=tK(),Mv=Rqe(),Dqe=u2().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Mv([32,0]),UINT16:Mv([32,0]),UINT32:Mv([32,0]),BIGUINT64:Mv([32,0]),INT8:Mv([32,0]),INT16:Mv([32,0]),INT32:Mv([32,0]),BIGINT64:Mv([32,0]),FLOAT:Mv([32,0]),DOUBLE:Mv([32,0]),DATA:Mv([32,0]),UINT8C:Mv([32,0]),BUFFER:Mv([32,0])});var INt=typeof Uint8ClampedArray!="undefined",RNt=typeof BigUint64Array!="undefined",DNt=typeof BigInt64Array!="undefined",nd=window.__TYPEDARRAY_POOL;nd.UINT8C||(nd.UINT8C=Mv([32,0]));nd.BIGUINT64||(nd.BIGUINT64=Mv([32,0]));nd.BIGINT64||(nd.BIGINT64=Mv([32,0]));nd.BUFFER||(nd.BUFFER=Mv([32,0]));var gz=nd.DATA,mz=nd.BUFFER;mu.free=function(t){if(Dqe.isBuffer(t))mz[cx.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=cx.log2(r)|0;gz[n].push(t)}};function Fqe(e){if(e){var t=e.length||e.byteLength,r=cx.log2(t);gz[r].push(e)}}function FNt(e){Fqe(e.buffer)}mu.freeUint8=mu.freeUint16=mu.freeUint32=mu.freeBigUint64=mu.freeInt8=mu.freeInt16=mu.freeInt32=mu.freeBigInt64=mu.freeFloat32=mu.freeFloat=mu.freeFloat64=mu.freeDouble=mu.freeUint8Clamped=mu.freeDataView=FNt;mu.freeArrayBuffer=Fqe;mu.freeBuffer=function(t){mz[cx.log2(t.length)].push(t)};mu.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return qp(t);switch(r){case"uint8":return rK(t);case"uint16":return zqe(t);case"uint32":return Oqe(t);case"int8":return qqe(t);case"int16":return Bqe(t);case"int32":return Nqe(t);case"float":case"float32":return Uqe(t);case"double":case"float64":return Vqe(t);case"uint8_clamped":return Gqe(t);case"bigint64":return jqe(t);case"biguint64":return Hqe(t);case"buffer":return Xqe(t);case"data":case"dataview":return Wqe(t);default:return null}return null};function qp(t){var t=cx.nextPow2(t),r=cx.log2(t),n=gz[r];return n.length>0?n.pop():new ArrayBuffer(t)}mu.mallocArrayBuffer=qp;function rK(e){return new Uint8Array(qp(e),0,e)}mu.mallocUint8=rK;function zqe(e){return new Uint16Array(qp(2*e),0,e)}mu.mallocUint16=zqe;function Oqe(e){return new Uint32Array(qp(4*e),0,e)}mu.mallocUint32=Oqe;function qqe(e){return new Int8Array(qp(e),0,e)}mu.mallocInt8=qqe;function Bqe(e){return new Int16Array(qp(2*e),0,e)}mu.mallocInt16=Bqe;function Nqe(e){return new Int32Array(qp(4*e),0,e)}mu.mallocInt32=Nqe;function Uqe(e){return new Float32Array(qp(4*e),0,e)}mu.mallocFloat32=mu.mallocFloat=Uqe;function Vqe(e){return new Float64Array(qp(8*e),0,e)}mu.mallocFloat64=mu.mallocDouble=Vqe;function Gqe(e){return INt?new Uint8ClampedArray(qp(e),0,e):rK(e)}mu.mallocUint8Clamped=Gqe;function Hqe(e){return RNt?new BigUint64Array(qp(8*e),0,e):null}mu.mallocBigUint64=Hqe;function jqe(e){return DNt?new BigInt64Array(qp(8*e),0,e):null}mu.mallocBigInt64=jqe;function Wqe(e){return new DataView(qp(e),0,e)}mu.mallocDataView=Wqe;function Xqe(e){e=cx.nextPow2(e);var t=cx.log2(e),r=mz[t];return r.length>0?r.pop():new Dqe(e)}mu.mallocBuffer=Xqe;mu.clearCache=function(){for(var t=0;t<32;++t)nd.UINT8[t].length=0,nd.UINT16[t].length=0,nd.UINT32[t].length=0,nd.INT8[t].length=0,nd.INT16[t].length=0,nd.INT32[t].length=0,nd.FLOAT[t].length=0,nd.DOUBLE[t].length=0,nd.BIGUINT64[t].length=0,nd.BIGINT64[t].length=0,nd.UINT8C[t].length=0,gz[t].length=0,mz[t].length=0}});var Kqe=ye((u1r,Yqe)=>{"use strict";var zNt=Object.prototype.toString;Yqe.exports=function(e){var t;return zNt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var iK=ye((c1r,Jqe)=>{Jqe.exports=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var eBe=ye((f1r,Qqe)=>{"use strict";var ONt=iK();Qqe.exports=$qe;var MC=96;function nK(e,t){var r=ONt(getComputedStyle(e).getPropertyValue(t));return r[0]*$qe(r[1],e)}function qNt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=nK(r,"font-size")/128;return t.removeChild(r),n}function $qe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return qNt(e,t);case"em":return nK(t,"font-size");case"rem":return nK(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return MC;case"cm":return MC/2.54;case"mm":return MC/25.4;case"pt":return MC/72;case"pc":return MC/6}return 1}});var iBe=ye((h1r,rBe)=>{"use strict";rBe.exports=xz;var BNt=xz.canvas=document.createElement("canvas"),yz=BNt.getContext("2d"),tBe=_z([32,126]);xz.createPairs=_z;xz.ascii=tBe;function xz(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=_z(t):Array.isArray(t)?n=t:(t.o?n=_z(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=tBe),yz.font=i+"px "+e;for(var o=0;oi*a){var c=(u-l)/i;r[s]=c*1e3}}return r}function _z(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";oBe.exports=fx;fx.canvas=document.createElement("canvas");fx.cache={};function fx(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,s=t.origin||"top";if(fx.cache[r]&&n<=fx.cache[r].em)return nBe(fx.cache[r],s);var l=t.canvas||fx.canvas,u=l.getContext("2d"),c={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},f=Math.ceil(n*1.5);l.height=f,l.width=f*.5,u.font=o;var h="H",d={top:0};u.clearRect(0,0,f,f),u.textBaseline="top",u.fillStyle="black",u.fillText(h,0,0);var v=Ym(u.getImageData(0,0,f,f));u.clearRect(0,0,f,f),u.textBaseline="bottom",u.fillText(h,0,f);var x=Ym(u.getImageData(0,0,f,f));d.lineHeight=d.bottom=f-x+v,u.clearRect(0,0,f,f),u.textBaseline="alphabetic",u.fillText(h,0,f);var b=Ym(u.getImageData(0,0,f,f)),p=f-b-1+v;d.baseline=d.alphabetic=p,u.clearRect(0,0,f,f),u.textBaseline="middle",u.fillText(h,0,f*.5);var C=Ym(u.getImageData(0,0,f,f));d.median=d.middle=f-C-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="hanging",u.fillText(h,0,f*.5);var E=Ym(u.getImageData(0,0,f,f));d.hanging=f-E-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="ideographic",u.fillText(h,0,f);var A=Ym(u.getImageData(0,0,f,f));if(d.ideographic=f-A-1+v,c.upper&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.upper,0,0),d.upper=Ym(u.getImageData(0,0,f,f)),d.capHeight=d.baseline-d.upper),c.lower&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.lower,0,0),d.lower=Ym(u.getImageData(0,0,f,f)),d.xHeight=d.baseline-d.lower),c.tittle&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.tittle,0,0),d.tittle=Ym(u.getImageData(0,0,f,f))),c.ascent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.ascent,0,0),d.ascent=Ym(u.getImageData(0,0,f,f))),c.descent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.descent,0,0),d.descent=aBe(u.getImageData(0,0,f,f))),c.overshoot){u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.overshoot,0,0);var L=aBe(u.getImageData(0,0,f,f));d.overshoot=L-p}for(var _ in d)d[_]/=n;return d.em=n,fx.cache[r]=d,nBe(d,s)}function nBe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function Ym(e){for(var t=e.height,r=e.data,n=3;n0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}});var fBe=ye((v1r,cBe)=>{"use strict";var h5=bqe(),NNt=Xm(),UNt=wqe(),VNt=Eqe(),GNt=OY(),aK=J_(),HNt=kqe(),hx=Zqe(),jNt=e5(),WNt=Kqe(),XNt=iK(),ZNt=eBe(),YNt=iBe(),KNt=Fh(),JNt=sBe(),$Nt=W2(),QNt=tK(),lBe=QNt.nextPow2,uBe=new GNt,wz=!1;document.body&&(bz=document.body.appendChild(document.createElement("div")),bz.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(bz).fontStretch&&(wz=!0),document.body.removeChild(bz));var bz,xc=function(t){eUt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=VNt(t),this.shader=uBe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||UNt({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),uBe.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(WNt(t)?t:{})};xc.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` +`),Yr;if(xt&&(Yr=Oc(Mr),xt[Yr]))return xt[Yr].apply(null,Hr);var xi=Function.apply(null,Ir.concat(Mr));return xt&&(xt[Yr]=xi),xi.apply(null,Hr)}return{global:Mi,link:Vr,block:mi,proc:Qi,scope:Ni,cond:Oi,compile:ji}}var ka="xyzw".split(""),Ra=5121,La=1,Na=2,Yn=0,zn=1,Ka=2,bo=3,Xo=4,Ms=5,os=6,Ts="dither",Ho="blend.enable",yl="blend.color",Xs="blend.equation",Ps="blend.func",va="depth.enable",no="depth.func",_s="depth.range",is="depth.mask",$l="colorMask",ku="cull.enable",Yu="cull.face",Nc="frontFace",pu="lineWidth",Uc="polygonOffset.enable",xu="polygonOffset.offset",Ac="sample.alpha",Ua="sample.enable",oo="sample.coverage",Vc="stencil.enable",hc="stencil.mask",Ku="stencil.func",ue="stencil.opFront",w="stencil.opBack",B="scissor.enable",Q="scissor.box",ee="viewport",le="profile",qe="framebuffer",Xe="vert",ot="frag",Tt="elements",Kt="primitive",Jt="count",xr="offset",Pr="instances",ve="vao",be="Width",Re="Height",Be=qe+be,tt=qe+Re,We=ee+be,it=ee+Re,Dt="drawingBuffer",Ht=Dt+be,rr=Dt+Re,dr=[Ps,Xs,Ku,ue,w,oo,ee,Q,xu],Sr=34962,Or=34963,jr=2884,ii=3042,Li=3024,un=2960,sn=2929,In=3089,Kn=32823,Ta=32926,fa=32928,$a=5126,ko=35664,Qa=35665,mo=35666,Bo=5124,Is=35667,As=35668,wo=35669,To=35670,dl=35671,Ul=35672,Lu=35673,au=35674,$s=35675,Ql=35676,dc=35678,Al=35680,Sl=4,X=1028,se=1029,Te=2304,Ne=2305,He=32775,Ye=32776,Ct=519,nt=7680,jt=0,gr=1,yr=32774,Gr=513,qr=36160,_i=36064,bi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Xr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ni={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},gi={cw:Te,ccw:Ne};function Pi(Ee){return Array.isArray(Ee)||Wr(Ee)||Ur(Ee)}function Ai(Ee){return Ee.sort(function(xt,zt){return xt===ee?-1:zt===ee?1:xt=1,Ir>=2,xt)}else if(zt===Xo){var Hr=Ee.data;return new ti(Hr.thisDep,Hr.contextDep,Hr.propDep,xt)}else{if(zt===Ms)return new ti(!1,!1,!1,xt);if(zt===os){for(var Br=!1,Vr=!1,mi=!1,Ni=0;Ni=1&&(Vr=!0),Mi>=2&&(mi=!0)}else Oi.type===Xo&&(Br=Br||Oi.data.thisDep,Vr=Vr||Oi.data.contextDep,mi=mi||Oi.data.propDep)}return new ti(Br,Vr,mi,xt)}else return new ti(zt===bo,zt===Ka,zt===zn,xt)}}var ia=new ti(!1,!1,!1,function(){});function Ea(Ee,xt,zt,Ir,Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr){var Yr=Oi.Record,xi={add:32774,subtract:32778,"reverse subtract":32779};zt.ext_blend_minmax&&(xi.min=He,xi.max=Ye);var Ii=zt.angle_instanced_arrays,ci=zt.webgl_draw_buffers,nn=zt.oes_vertex_array_object,Xi={dirty:!0,profile:Mr.profile},qn={},vi=[],li={},mn={};function Ki(Ve){return Ve.replace(".","_")}function Ui(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),qn[kt]=Xi[kt]=!!at,li[kt]=et}function Bi(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),Array.isArray(at)?(Xi[kt]=at.slice(),qn[kt]=at.slice()):Xi[kt]=qn[kt]=at,mn[kt]=et}function vn(Ve){return!!isNaN(Ve)}Ui(Ts,Li),Ui(Ho,ii),Bi(yl,"blendColor",[0,0,0,0]),Bi(Xs,"blendEquationSeparate",[yr,yr]),Bi(Ps,"blendFuncSeparate",[gr,jt,gr,jt]),Ui(va,sn,!0),Bi(no,"depthFunc",Gr),Bi(_s,"depthRange",[0,1]),Bi(is,"depthMask",!0),Bi($l,$l,[!0,!0,!0,!0]),Ui(ku,jr),Bi(Yu,"cullFace",se),Bi(Nc,Nc,Ne),Bi(pu,pu,1),Ui(Uc,Kn),Bi(xu,"polygonOffset",[0,0]),Ui(Ac,Ta),Ui(Ua,fa),Bi(oo,"sampleCoverage",[1,!1]),Ui(Vc,un),Bi(hc,"stencilMask",-1),Bi(Ku,"stencilFunc",[Ct,0,-1]),Bi(ue,"stencilOpSeparate",[X,nt,nt,nt]),Bi(w,"stencilOpSeparate",[se,nt,nt,nt]),Ui(B,In),Bi(Q,"scissor",[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]),Bi(ee,ee,[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]);var Un={gl:Ee,context:Qi,strings:xt,next:qn,current:Xi,draw:Hn,elements:Br,buffer:Hr,shader:Mi,attributes:Oi.state,vao:Oi,uniforms:Ni,framebuffer:mi,extensions:zt,timer:ji,isBufferArgs:Pi},na={primTypes:Mn,compareFuncs:Xr,blendFuncs:bi,blendEquations:xi,stencilOps:ni,glTypes:Hi,orientationType:gi};ci&&(na.backBuffer=[se],na.drawBuffer=M(Ir.maxDrawbuffers,function(Ve){return Ve===0?[0]:M(Ve,function(et){return _i+et})}));var Yi=0;function Ln(){var Ve=$n({cache:si}),et=Ve.link,at=Ve.global;Ve.id=Yi++,Ve.batchId="0";var kt=et(Un),Ot=Ve.shared={props:"a0"};Object.keys(Un).forEach(function(Pt){Ot[Pt]=at.def(kt,".",Pt)});var It=Ve.next={},Bt=Ve.current={};Object.keys(mn).forEach(function(Pt){Array.isArray(Xi[Pt])&&(It[Pt]=at.def(Ot.next,".",Pt),Bt[Pt]=at.def(Ot.current,".",Pt))});var Rt=Ve.constants={};Object.keys(na).forEach(function(Pt){Rt[Pt]=at.def(JSON.stringify(na[Pt]))}),Ve.invoke=function(Pt,ht){switch(ht.type){case Yn:var cr=["this",Ot.context,Ot.props,Ve.batchId];return Pt.def(et(ht.data),".call(",cr.slice(0,Math.max(ht.data.length+1,4)),")");case zn:return Pt.def(Ot.props,ht.data);case Ka:return Pt.def(Ot.context,ht.data);case bo:return Pt.def("this",ht.data);case Xo:return ht.data.append(Ve,Pt),ht.data.ref;case Ms:return ht.data.toString();case os:return ht.data.map(function(br){return Ve.invoke(Pt,br)})}},Ve.attribCache={};var mt={};return Ve.scopeAttrib=function(Pt){var ht=xt.id(Pt);if(ht in mt)return mt[ht];var cr=Oi.scope[ht];cr||(cr=Oi.scope[ht]=new Yr);var br=mt[ht]=et(cr);return br},Ve}function ra(Ve){var et=Ve.static,at=Ve.dynamic,kt;if(le in et){var Ot=!!et[le];kt=Cn(function(Bt,Rt){return Ot}),kt.enable=Ot}else if(le in at){var It=at[le];kt=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}return kt}function oa(Ve,et){var at=Ve.static,kt=Ve.dynamic;if(qe in at){var Ot=at[qe];return Ot?(Ot=mi.getFramebuffer(Ot),Cn(function(Bt,Rt){var mt=Bt.link(Ot),Pt=Bt.shared;Rt.set(Pt.framebuffer,".next",mt);var ht=Pt.context;return Rt.set(ht,"."+Be,mt+".width"),Rt.set(ht,"."+tt,mt+".height"),mt})):Cn(function(Bt,Rt){var mt=Bt.shared;Rt.set(mt.framebuffer,".next","null");var Pt=mt.context;return Rt.set(Pt,"."+Be,Pt+"."+Ht),Rt.set(Pt,"."+tt,Pt+"."+rr),"null"})}else if(qe in kt){var It=kt[qe];return Nn(It,function(Bt,Rt){var mt=Bt.invoke(Rt,It),Pt=Bt.shared,ht=Pt.framebuffer,cr=Rt.def(ht,".getFramebuffer(",mt,")");Rt.set(ht,".next",cr);var br=Pt.context;return Rt.set(br,"."+Be,cr+"?"+cr+".width:"+br+"."+Ht),Rt.set(br,"."+tt,cr+"?"+cr+".height:"+br+"."+rr),cr})}else return null}function ba(Ve,et,at){var kt=Ve.static,Ot=Ve.dynamic;function It(mt){if(mt in kt){var Pt=kt[mt],ht=!0,cr=Pt.x|0,br=Pt.y|0,Nr,Ri;return"width"in Pt?Nr=Pt.width|0:ht=!1,"height"in Pt?Ri=Pt.height|0:ht=!1,new ti(!ht&&et&&et.thisDep,!ht&&et&&et.contextDep,!ht&&et&&et.propDep,function(gn,tn){var Ci=gn.shared.context,qi=Nr;"width"in Pt||(qi=tn.def(Ci,".",Be,"-",cr));var Vi=Ri;return"height"in Pt||(Vi=tn.def(Ci,".",tt,"-",br)),[cr,br,qi,Vi]})}else if(mt in Ot){var hi=Ot[mt],wi=Nn(hi,function(gn,tn){var Ci=gn.invoke(tn,hi),qi=gn.shared.context,Vi=tn.def(Ci,".x|0"),on=tn.def(Ci,".y|0"),On=tn.def('"width" in ',Ci,"?",Ci,".width|0:","(",qi,".",Be,"-",Vi,")"),Ja=tn.def('"height" in ',Ci,"?",Ci,".height|0:","(",qi,".",tt,"-",on,")");return[Vi,on,On,Ja]});return et&&(wi.thisDep=wi.thisDep||et.thisDep,wi.contextDep=wi.contextDep||et.contextDep,wi.propDep=wi.propDep||et.propDep),wi}else return et?new ti(et.thisDep,et.contextDep,et.propDep,function(gn,tn){var Ci=gn.shared.context;return[0,0,tn.def(Ci,".",Be),tn.def(Ci,".",tt)]}):null}var Bt=It(ee);if(Bt){var Rt=Bt;Bt=new ti(Bt.thisDep,Bt.contextDep,Bt.propDep,function(mt,Pt){var ht=Rt.append(mt,Pt),cr=mt.shared.context;return Pt.set(cr,"."+We,ht[2]),Pt.set(cr,"."+it,ht[3]),ht})}return{viewport:Bt,scissor_box:It(Q)}}function ns(Ve,et){var at=Ve.static,kt=typeof at[ot]=="string"&&typeof at[Xe]=="string";if(kt){if(Object.keys(et.dynamic).length>0)return null;var Ot=et.static,It=Object.keys(Ot);if(It.length>0&&typeof Ot[It[0]]=="number"){for(var Bt=[],Rt=0;Rt"+Vi+"?"+ht+".constant["+Vi+"]:0;"}).join(""),"}}else{","if(",Nr,"(",ht,".buffer)){",gn,"=",Ri,".createStream(",Sr,",",ht,".buffer);","}else{",gn,"=",Ri,".getBuffer(",ht,".buffer);","}",tn,'="type" in ',ht,"?",br.glTypes,"[",ht,".type]:",gn,".dtype;",hi.normalized,"=!!",ht,".normalized;");function Ci(qi){Pt(hi[qi],"=",ht,".",qi,"|0;")}return Ci("size"),Ci("offset"),Ci("stride"),Ci("divisor"),Pt("}}"),Pt.exit("if(",hi.isStream,"){",Ri,".destroyStream(",gn,");","}"),hi}Ot[It]=Nn(Bt,Rt)}),Ot}function ol(Ve){var et=Ve.static,at=Ve.dynamic,kt={};return Object.keys(et).forEach(function(Ot){var It=et[Ot];kt[Ot]=Cn(function(Bt,Rt){return typeof It=="number"||typeof It=="boolean"?""+It:Bt.link(It)})}),Object.keys(at).forEach(function(Ot){var It=at[Ot];kt[Ot]=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}),kt}function Vl(Ve,et,at,kt,Ot){var It=Ve.static,Bt=Ve.dynamic,Rt=ns(Ve,et),mt=oa(Ve,Ot),Pt=ba(Ve,mt,Ot),ht=Va(Ve,Ot),cr=El(Ve,Ot),br=Ys(Ve,Ot,Rt);function Nr(Ci){var qi=Pt[Ci];qi&&(cr[Ci]=qi)}Nr(ee),Nr(Ki(Q));var Ri=Object.keys(cr).length>0,hi={framebuffer:mt,draw:ht,shader:br,state:cr,dirty:Ri,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(hi.profile=ra(Ve,Ot),hi.uniforms=zo(at,Ot),hi.drawVAO=hi.scopeVAO=ht.vao,!hi.drawVAO&&br.program&&!Rt&&zt.angle_instanced_arrays&&ht.static.elements){var wi=!0,gn=br.program.attributes.map(function(Ci){var qi=et.static[Ci];return wi=wi&&!!qi,qi});if(wi&&gn.length>0){var tn=Oi.getVAO(Oi.createVAO({attributes:gn,elements:ht.static.elements}));hi.drawVAO=new ti(null,null,null,function(Ci,qi){return Ci.link(tn)}),hi.useVAO=!0}}return Rt?hi.useVAO=!0:hi.attributes=el(et,Ot),hi.context=ol(kt,Ot),hi}function ls(Ve,et,at){var kt=Ve.shared,Ot=kt.context,It=Ve.scope();Object.keys(at).forEach(function(Bt){et.save(Ot,"."+Bt);var Rt=at[Bt],mt=Rt.append(Ve,et);Array.isArray(mt)?It(Ot,".",Bt,"=[",mt.join(),"];"):It(Ot,".",Bt,"=",mt,";")}),et(It)}function Gs(Ve,et,at,kt){var Ot=Ve.shared,It=Ot.gl,Bt=Ot.framebuffer,Rt;ci&&(Rt=et.def(Ot.extensions,".webgl_draw_buffers"));var mt=Ve.constants,Pt=mt.drawBuffer,ht=mt.backBuffer,cr;at?cr=at.append(Ve,et):cr=et.def(Bt,".next"),kt||et("if(",cr,"!==",Bt,".cur){"),et("if(",cr,"){",It,".bindFramebuffer(",qr,",",cr,".framebuffer);"),ci&&et(Rt,".drawBuffersWEBGL(",Pt,"[",cr,".colorAttachments.length]);"),et("}else{",It,".bindFramebuffer(",qr,",null);"),ci&&et(Rt,".drawBuffersWEBGL(",ht,");"),et("}",Bt,".cur=",cr,";"),kt||et("}")}function Ks(Ve,et,at){var kt=Ve.shared,Ot=kt.gl,It=Ve.current,Bt=Ve.next,Rt=kt.current,mt=kt.next,Pt=Ve.cond(Rt,".dirty");vi.forEach(function(ht){var cr=Ki(ht);if(!(cr in at.state)){var br,Nr;if(cr in Bt){br=Bt[cr],Nr=It[cr];var Ri=M(Xi[cr].length,function(wi){return Pt.def(br,"[",wi,"]")});Pt(Ve.cond(Ri.map(function(wi,gn){return wi+"!=="+Nr+"["+gn+"]"}).join("||")).then(Ot,".",mn[cr],"(",Ri,");",Ri.map(function(wi,gn){return Nr+"["+gn+"]="+wi}).join(";"),";"))}else{br=Pt.def(mt,".",cr);var hi=Ve.cond(br,"!==",Rt,".",cr);Pt(hi),cr in li?hi(Ve.cond(br).then(Ot,".enable(",li[cr],");").else(Ot,".disable(",li[cr],");"),Rt,".",cr,"=",br,";"):hi(Ot,".",mn[cr],"(",br,");",Rt,".",cr,"=",br,";")}}}),Object.keys(at.state).length===0&&Pt(Rt,".dirty=false;"),et(Pt)}function wa(Ve,et,at,kt){var Ot=Ve.shared,It=Ve.current,Bt=Ot.current,Rt=Ot.gl,mt;Ai(Object.keys(at)).forEach(function(Pt){var ht=at[Pt];if(!(kt&&!kt(ht))){var cr=ht.append(Ve,et);if(li[Pt]){var br=li[Pt];Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Ve.cond(mt).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",mt,";")):(et(Ve.cond(cr).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",cr,";"))}else if(En(cr)){var Nr=It[Pt];et(Rt,".",mn[Pt],"(",cr,");",cr.map(function(Ri,hi){return Nr+"["+hi+"]="+Ri}).join(";"),";")}else Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Rt,".",mn[Pt],"(",mt,");",Bt,".",Pt,"=",mt,";")):et(Rt,".",mn[Pt],"(",cr,");",Bt,".",Pt,"=",cr,";")}})}function sl(Ve,et){Ii&&(Ve.instancing=et.def(Ve.shared.extensions,".angle_instanced_arrays"))}function io(Ve,et,at,kt,Ot){var It=Ve.shared,Bt=Ve.stats,Rt=It.current,mt=It.timer,Pt=at.profile;function ht(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var cr,br;function Nr(Ci){cr=et.def(),Ci(cr,"=",ht(),";"),typeof Ot=="string"?Ci(Bt,".count+=",Ot,";"):Ci(Bt,".count++;"),ji&&(kt?(br=et.def(),Ci(br,"=",mt,".getNumPendingQueries();")):Ci(mt,".beginQuery(",Bt,");"))}function Ri(Ci){Ci(Bt,".cpuTime+=",ht(),"-",cr,";"),ji&&(kt?Ci(mt,".pushScopeStats(",br,",",mt,".getNumPendingQueries(),",Bt,");"):Ci(mt,".endQuery();"))}function hi(Ci){var qi=et.def(Rt,".profile");et(Rt,".profile=",Ci,";"),et.exit(Rt,".profile=",qi,";")}var wi;if(Pt){if(Rn(Pt)){Pt.enable?(Nr(et),Ri(et.exit),hi("true")):hi("false");return}wi=Pt.append(Ve,et),hi(wi)}else wi=et.def(Rt,".profile");var gn=Ve.block();Nr(gn),et("if(",wi,"){",gn,"}");var tn=Ve.block();Ri(tn),et.exit("if(",wi,"){",tn,"}")}function Y(Ve,et,at,kt,Ot){var It=Ve.shared;function Bt(mt){switch(mt){case ko:case Is:case dl:return 2;case Qa:case As:case Ul:return 3;case mo:case wo:case Lu:return 4;default:return 1}}function Rt(mt,Pt,ht){var cr=It.gl,br=et.def(mt,".location"),Nr=et.def(It.attributes,"[",br,"]"),Ri=ht.state,hi=ht.buffer,wi=[ht.x,ht.y,ht.z,ht.w],gn=["buffer","normalized","offset","stride"];function tn(){et("if(!",Nr,".buffer){",cr,".enableVertexAttribArray(",br,");}");var qi=ht.type,Vi;if(ht.size?Vi=et.def(ht.size,"||",Pt):Vi=Pt,et("if(",Nr,".type!==",qi,"||",Nr,".size!==",Vi,"||",gn.map(function(On){return Nr+"."+On+"!=="+ht[On]}).join("||"),"){",cr,".bindBuffer(",Sr,",",hi,".buffer);",cr,".vertexAttribPointer(",[br,Vi,qi,ht.normalized,ht.stride,ht.offset],");",Nr,".type=",qi,";",Nr,".size=",Vi,";",gn.map(function(On){return Nr+"."+On+"="+ht[On]+";"}).join(""),"}"),Ii){var on=ht.divisor;et("if(",Nr,".divisor!==",on,"){",Ve.instancing,".vertexAttribDivisorANGLE(",[br,on],");",Nr,".divisor=",on,";}")}}function Ci(){et("if(",Nr,".buffer){",cr,".disableVertexAttribArray(",br,");",Nr,".buffer=null;","}if(",ka.map(function(qi,Vi){return Nr+"."+qi+"!=="+wi[Vi]}).join("||"),"){",cr,".vertexAttrib4f(",br,",",wi,");",ka.map(function(qi,Vi){return Nr+"."+qi+"="+wi[Vi]+";"}).join(""),"}")}Ri===La?tn():Ri===Na?Ci():(et("if(",Ri,"===",La,"){"),tn(),et("}else{"),Ci(),et("}"))}kt.forEach(function(mt){var Pt=mt.name,ht=at.attributes[Pt],cr;if(ht){if(!Ot(ht))return;cr=ht.append(Ve,et)}else{if(!Ot(ia))return;var br=Ve.scopeAttrib(Pt);cr={},Object.keys(new Yr).forEach(function(Nr){cr[Nr]=et.def(br,".",Nr)})}Rt(Ve.link(mt),Bt(mt.info.type),cr)})}function D(Ve,et,at,kt,Ot,It){for(var Bt=Ve.shared,Rt=Bt.gl,mt,Pt=0;Pt1){for(var co=[],rs=[],so=0;so>1)",hi],");")}function on(){at(wi,".drawArraysInstancedANGLE(",[br,Nr,Ri,hi],");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}function qi(){function Vi(){at(It+".drawElements("+[br,Ri,gn,Nr+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function on(){at(It+".drawArrays("+[br,Nr,Ri]+");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}Ii&&(typeof hi!="number"||hi>=0)?typeof hi=="string"?(at("if(",hi,">0){"),Ci(),at("}else if(",hi,"<0){"),qi(),at("}")):Ci():qi()}function q(Ve,et,at,kt,Ot){var It=Ln(),Bt=It.proc("body",Ot);return Ii&&(It.instancing=Bt.def(It.shared.extensions,".angle_instanced_arrays")),Ve(It,Bt,at,kt),It.compile().body}function K(Ve,et,at,kt){sl(Ve,et),at.useVAO?at.drawVAO?et(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,et),");"):et(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(et(Ve.shared.vao,".setVAO(null);"),Y(Ve,et,at,kt.attributes,function(){return!0})),D(Ve,et,at,kt.uniforms,function(){return!0},!1),J(Ve,et,et,at)}function de(Ve,et){var at=Ve.proc("draw",1);sl(Ve,at),ls(Ve,at,et.context),Gs(Ve,at,et.framebuffer),Ks(Ve,at,et),wa(Ve,at,et.state),io(Ve,at,et,!1,!0);var kt=et.shader.progVar.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",kt,".program);"),et.shader.program)K(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var Ot=Ve.global.def("{}"),It=at.def(kt,".id"),Bt=at.def(Ot,"[",It,"]");at(Ve.cond(Bt).then(Bt,".call(this,a0);").else(Bt,"=",Ot,"[",It,"]=",Ve.link(function(Rt){return q(K,Ve,et,Rt,1)}),"(",kt,");",Bt,".call(this,a0);"))}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ne(Ve,et,at,kt){Ve.batchId="a1",sl(Ve,et);function Ot(){return!0}Y(Ve,et,at,kt.attributes,Ot),D(Ve,et,at,kt.uniforms,Ot,!1),J(Ve,et,et,at)}function we(Ve,et,at,kt){sl(Ve,et);var Ot=at.contextDep,It=et.def(),Bt="a0",Rt="a1",mt=et.def();Ve.shared.props=mt,Ve.batchId=It;var Pt=Ve.scope(),ht=Ve.scope();et(Pt.entry,"for(",It,"=0;",It,"<",Rt,";++",It,"){",mt,"=",Bt,"[",It,"];",ht,"}",Pt.exit);function cr(gn){return gn.contextDep&&Ot||gn.propDep}function br(gn){return!cr(gn)}if(at.needsContext&&ls(Ve,ht,at.context),at.needsFramebuffer&&Gs(Ve,ht,at.framebuffer),wa(Ve,ht,at.state,cr),at.profile&&cr(at.profile)&&io(Ve,ht,at,!1,!0),kt)at.useVAO?at.drawVAO?cr(at.drawVAO)?ht(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,ht),");"):Pt(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Pt),");"):Pt(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Pt(Ve.shared.vao,".setVAO(null);"),Y(Ve,Pt,at,kt.attributes,br),Y(Ve,ht,at,kt.attributes,cr)),D(Ve,Pt,at,kt.uniforms,br,!1),D(Ve,ht,at,kt.uniforms,cr,!0),J(Ve,Pt,ht,at);else{var Nr=Ve.global.def("{}"),Ri=at.shader.progVar.append(Ve,ht),hi=ht.def(Ri,".id"),wi=ht.def(Nr,"[",hi,"]");ht(Ve.shared.gl,".useProgram(",Ri,".program);","if(!",wi,"){",wi,"=",Nr,"[",hi,"]=",Ve.link(function(gn){return q(ne,Ve,at,gn,2)}),"(",Ri,");}",wi,".call(this,a0[",It,"],",It,");")}}function Ue(Ve,et){var at=Ve.proc("batch",2);Ve.batchId="0",sl(Ve,at);var kt=!1,Ot=!0;Object.keys(et.context).forEach(function(Nr){kt=kt||et.context[Nr].propDep}),kt||(ls(Ve,at,et.context),Ot=!1);var It=et.framebuffer,Bt=!1;It?(It.propDep?kt=Bt=!0:It.contextDep&&kt&&(Bt=!0),Bt||Gs(Ve,at,It)):Gs(Ve,at,null),et.state.viewport&&et.state.viewport.propDep&&(kt=!0);function Rt(Nr){return Nr.contextDep&&kt||Nr.propDep}Ks(Ve,at,et),wa(Ve,at,et.state,function(Nr){return!Rt(Nr)}),(!et.profile||!Rt(et.profile))&&io(Ve,at,et,!1,"a1"),et.contextDep=kt,et.needsContext=Ot,et.needsFramebuffer=Bt;var mt=et.shader.progVar;if(mt.contextDep&&kt||mt.propDep)we(Ve,at,et,null);else{var Pt=mt.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Pt,".program);"),et.shader.program)we(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var ht=Ve.global.def("{}"),cr=at.def(Pt,".id"),br=at.def(ht,"[",cr,"]");at(Ve.cond(br).then(br,".call(this,a0,a1);").else(br,"=",ht,"[",cr,"]=",Ve.link(function(Nr){return q(we,Ve,et,Nr,2)}),"(",Pt,");",br,".call(this,a0,a1);"))}}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ft(Ve,et){var at=Ve.proc("scope",3);Ve.batchId="a2";var kt=Ve.shared,Ot=kt.current;if(ls(Ve,at,et.context),et.framebuffer&&et.framebuffer.append(Ve,at),Ai(Object.keys(et.state)).forEach(function(Rt){var mt=et.state[Rt],Pt=mt.append(Ve,at);En(Pt)?Pt.forEach(function(ht,cr){vn(ht)?at.set(Ve.next[Rt],"["+cr+"]",ht):at.set(Ve.next[Rt],"["+cr+"]",Ve.link(ht,{stable:!0}))}):Rn(mt)?at.set(kt.next,"."+Rt,Ve.link(Pt,{stable:!0})):at.set(kt.next,"."+Rt,Pt)}),io(Ve,at,et,!0,!0),[Tt,xr,Jt,Pr,Kt].forEach(function(Rt){var mt=et.draw[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.draw,"."+Rt,Pt):at.set(kt.draw,"."+Rt,Ve.link(Pt),{stable:!0})}}),Object.keys(et.uniforms).forEach(function(Rt){var mt=et.uniforms[Rt].append(Ve,at);Array.isArray(mt)&&(mt="["+mt.map(function(Pt){return vn(Pt)?Pt:Ve.link(Pt,{stable:!0})})+"]"),at.set(kt.uniforms,"["+Ve.link(xt.id(Rt),{stable:!0})+"]",mt)}),Object.keys(et.attributes).forEach(function(Rt){var mt=et.attributes[Rt].append(Ve,at),Pt=Ve.scopeAttrib(Rt);Object.keys(new Yr).forEach(function(ht){at.set(Pt,"."+ht,mt[ht])})}),et.scopeVAO){var It=et.scopeVAO.append(Ve,at);vn(It)?at.set(kt.vao,".targetVAO",It):at.set(kt.vao,".targetVAO",Ve.link(It,{stable:!0}))}function Bt(Rt){var mt=et.shader[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.shader,"."+Rt,Pt):at.set(kt.shader,"."+Rt,Ve.link(Pt,{stable:!0}))}}Bt(Xe),Bt(ot),Object.keys(et.state).length>0&&(at(Ot,".dirty=true;"),at.exit(Ot,".dirty=true;")),at("a1(",Ve.shared.context,",a0,",Ve.batchId,");")}function Zt(Ve){if(!(typeof Ve!="object"||En(Ve))){for(var et=Object.keys(Ve),at=0;at=0;--q){var K=Un[q];K&&K(si,null,0)}zt.flush(),Mi&&Mi.update()}function ba(){!ra&&Un.length>0&&(ra=d.next(oa))}function ns(){ra&&(d.cancel(oa),ra=null)}function Ys(q){q.preventDefault(),Hr=!0,ns(),na.forEach(function(K){K()})}function Va(q){zt.getError(),Hr=!1,Br.restore(),qn.restore(),Ii.restore(),vi.restore(),li.restore(),mn.restore(),nn.restore(),Mi&&Mi.restore(),Ki.procs.refresh(),ba(),Yi.forEach(function(K){K()})}vn&&(vn.addEventListener(Fo,Ys,!1),vn.addEventListener(Uo,Va,!1));function El(){Un.length=0,ns(),vn&&(vn.removeEventListener(Fo,Ys),vn.removeEventListener(Uo,Va)),qn.clear(),mn.clear(),li.clear(),nn.clear(),vi.clear(),ci.clear(),Ii.clear(),Mi&&Mi.clear(),Ln.forEach(function(q){q()})}function zo(q){function K(It){var Bt=e({},It);delete Bt.uniforms,delete Bt.attributes,delete Bt.context,delete Bt.vao,"stencil"in Bt&&Bt.stencil.op&&(Bt.stencil.opBack=Bt.stencil.opFront=Bt.stencil.op,delete Bt.stencil.op);function Rt(mt){if(mt in Bt){var Pt=Bt[mt];delete Bt[mt],Object.keys(Pt).forEach(function(ht){Bt[mt+"."+ht]=Pt[ht]})}}return Rt("blend"),Rt("depth"),Rt("cull"),Rt("stencil"),Rt("polygonOffset"),Rt("scissor"),Rt("sample"),"vao"in It&&(Bt.vao=It.vao),Bt}function de(It,Bt){var Rt={},mt={};return Object.keys(It).forEach(function(Pt){var ht=It[Pt];if(h.isDynamic(ht)){mt[Pt]=h.unbox(ht,Pt);return}else if(Bt&&Array.isArray(ht)){for(var cr=0;cr0)return Ve.call(this,kt(It|0),It|0)}else if(Array.isArray(It)){if(It.length)return Ve.call(this,It,It.length)}else return qt.call(this,It)}return e(Ot,{stats:Zt,destroy:function(){hr.destroy()}})}var el=mn.setFBO=zo({framebuffer:h.define.call(null,Qs,"framebuffer")});function ol(q,K){var de=0;Ki.procs.poll();var ne=K.color;ne&&(zt.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Es),"depth"in K&&(zt.clearDepth(+K.depth),de|=Zs),"stencil"in K&&(zt.clearStencil(K.stencil|0),de|=Gn),zt.clear(de)}function Vl(q){if("framebuffer"in q)if(q.framebuffer&&q.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)el(e({framebuffer:q.framebuffer.faces[K]},q),ol);else el(q,ol);else ol(null,q)}function ls(q){Un.push(q);function K(){var de=vl(Un,q);function ne(){var we=vl(Un,ne);Un[we]=Un[Un.length-1],Un.length-=1,Un.length<=0&&ns()}Un[de]=ne}return ba(),{cancel:K}}function Gs(){var q=Bi.viewport,K=Bi.scissor_box;q[0]=q[1]=K[0]=K[1]=0,si.viewportWidth=si.framebufferWidth=si.drawingBufferWidth=q[2]=K[2]=zt.drawingBufferWidth,si.viewportHeight=si.framebufferHeight=si.drawingBufferHeight=q[3]=K[3]=zt.drawingBufferHeight}function Ks(){si.tick+=1,si.time=sl(),Gs(),Ki.procs.poll()}function wa(){vi.refresh(),Gs(),Ki.procs.refresh(),Mi&&Mi.update()}function sl(){return(v()-Hn)/1e3}wa();function io(q,K){var de;switch(q){case"frame":return ls(K);case"lost":de=na;break;case"restore":de=Yi;break;case"destroy":de=Ln;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Ui,destroy:El,_gl:zt,_refresh:wa,poll:function(){Ks(),Mi&&Mi.update()},now:sl,stats:mi,getCachedCode:Y,preloadCachedCode:D});return xt.onDone(null,J),J}return Sc})});var kqe=ye((o1r,Cqe)=>{"use strict";var ENt=Xm();Cqe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},Mqe(t)?t={container:t}:CNt(t)?t={container:t}:kNt(t)?t={gl:t}:t=ENt(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}Mqe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=Eqe(),t.container.appendChild(t.canvas),Sqe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=Eqe(),t.container.appendChild(t.canvas),Sqe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch(i){}return t.gl}),t.gl};function Sqe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function Mqe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function CNt(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function kNt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Eqe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var Pqe=ye((s1r,Lqe)=>{"use strict";var LNt=JY(),PNt=[32,126];Lqe.exports=INt;function INt(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||PNt;if(n&&typeof n!="string"&&(n=LNt(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],l=0;s<=a[1];s++)o[l++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var u=r.getContext("2d");u.fillStyle="#000",u.fillRect(0,0,r.width,r.height),u.font=n,u.textAlign="center",u.textBaseline="middle",u.fillStyle="#fff";for(var c=i[0]/2,f=i[1]/2,s=0;st[0]-i[0]/2&&(c=i[0]/2,f+=i[1]);return r}});var tK=ye(Oh=>{"use strict";"use restrict";var eK=32;Oh.INT_BITS=eK;Oh.INT_MAX=2147483647;Oh.INT_MIN=-1<0)-(e<0)};Oh.abs=function(e){var t=e>>eK-1;return(e^t)-t};Oh.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Oh.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Oh.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function Iqe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Oh.countTrailingZeros=Iqe;Oh.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Oh.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Oh.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var MC=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<>>8&255]<<16|MC[e>>>16&255]<<8|MC[e>>>24&255]};Oh.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Oh.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Oh.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Oh.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Oh.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>Iqe(e)+1}});var Fqe=ye((u1r,Dqe)=>{"use strict";function Rqe(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a0)return RNt(e|0,t);break;case"object":if(typeof e.length=="number")return Rqe(e,t,0);break}return[]}Dqe.exports=DNt});var Kqe=ye(mu=>{"use strict";var cx=tK(),Mv=Fqe(),zqe=u2().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Mv([32,0]),UINT16:Mv([32,0]),UINT32:Mv([32,0]),BIGUINT64:Mv([32,0]),INT8:Mv([32,0]),INT16:Mv([32,0]),INT32:Mv([32,0]),BIGINT64:Mv([32,0]),FLOAT:Mv([32,0]),DOUBLE:Mv([32,0]),DATA:Mv([32,0]),UINT8C:Mv([32,0]),BUFFER:Mv([32,0])});var FNt=typeof Uint8ClampedArray!="undefined",zNt=typeof BigUint64Array!="undefined",ONt=typeof BigInt64Array!="undefined",nd=window.__TYPEDARRAY_POOL;nd.UINT8C||(nd.UINT8C=Mv([32,0]));nd.BIGUINT64||(nd.BIGUINT64=Mv([32,0]));nd.BIGINT64||(nd.BIGINT64=Mv([32,0]));nd.BUFFER||(nd.BUFFER=Mv([32,0]));var gz=nd.DATA,mz=nd.BUFFER;mu.free=function(t){if(zqe.isBuffer(t))mz[cx.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=cx.log2(r)|0;gz[n].push(t)}};function Oqe(e){if(e){var t=e.length||e.byteLength,r=cx.log2(t);gz[r].push(e)}}function qNt(e){Oqe(e.buffer)}mu.freeUint8=mu.freeUint16=mu.freeUint32=mu.freeBigUint64=mu.freeInt8=mu.freeInt16=mu.freeInt32=mu.freeBigInt64=mu.freeFloat32=mu.freeFloat=mu.freeFloat64=mu.freeDouble=mu.freeUint8Clamped=mu.freeDataView=qNt;mu.freeArrayBuffer=Oqe;mu.freeBuffer=function(t){mz[cx.log2(t.length)].push(t)};mu.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return qp(t);switch(r){case"uint8":return rK(t);case"uint16":return qqe(t);case"uint32":return Bqe(t);case"int8":return Nqe(t);case"int16":return Uqe(t);case"int32":return Vqe(t);case"float":case"float32":return Gqe(t);case"double":case"float64":return Hqe(t);case"uint8_clamped":return jqe(t);case"bigint64":return Xqe(t);case"biguint64":return Wqe(t);case"buffer":return Yqe(t);case"data":case"dataview":return Zqe(t);default:return null}return null};function qp(t){var t=cx.nextPow2(t),r=cx.log2(t),n=gz[r];return n.length>0?n.pop():new ArrayBuffer(t)}mu.mallocArrayBuffer=qp;function rK(e){return new Uint8Array(qp(e),0,e)}mu.mallocUint8=rK;function qqe(e){return new Uint16Array(qp(2*e),0,e)}mu.mallocUint16=qqe;function Bqe(e){return new Uint32Array(qp(4*e),0,e)}mu.mallocUint32=Bqe;function Nqe(e){return new Int8Array(qp(e),0,e)}mu.mallocInt8=Nqe;function Uqe(e){return new Int16Array(qp(2*e),0,e)}mu.mallocInt16=Uqe;function Vqe(e){return new Int32Array(qp(4*e),0,e)}mu.mallocInt32=Vqe;function Gqe(e){return new Float32Array(qp(4*e),0,e)}mu.mallocFloat32=mu.mallocFloat=Gqe;function Hqe(e){return new Float64Array(qp(8*e),0,e)}mu.mallocFloat64=mu.mallocDouble=Hqe;function jqe(e){return FNt?new Uint8ClampedArray(qp(e),0,e):rK(e)}mu.mallocUint8Clamped=jqe;function Wqe(e){return zNt?new BigUint64Array(qp(8*e),0,e):null}mu.mallocBigUint64=Wqe;function Xqe(e){return ONt?new BigInt64Array(qp(8*e),0,e):null}mu.mallocBigInt64=Xqe;function Zqe(e){return new DataView(qp(e),0,e)}mu.mallocDataView=Zqe;function Yqe(e){e=cx.nextPow2(e);var t=cx.log2(e),r=mz[t];return r.length>0?r.pop():new zqe(e)}mu.mallocBuffer=Yqe;mu.clearCache=function(){for(var t=0;t<32;++t)nd.UINT8[t].length=0,nd.UINT16[t].length=0,nd.UINT32[t].length=0,nd.INT8[t].length=0,nd.INT16[t].length=0,nd.INT32[t].length=0,nd.FLOAT[t].length=0,nd.DOUBLE[t].length=0,nd.BIGUINT64[t].length=0,nd.BIGINT64[t].length=0,nd.UINT8C[t].length=0,gz[t].length=0,mz[t].length=0}});var $qe=ye((f1r,Jqe)=>{"use strict";var BNt=Object.prototype.toString;Jqe.exports=function(e){var t;return BNt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var iK=ye((h1r,Qqe)=>{Qqe.exports=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var rBe=ye((d1r,tBe)=>{"use strict";var NNt=iK();tBe.exports=eBe;var EC=96;function nK(e,t){var r=NNt(getComputedStyle(e).getPropertyValue(t));return r[0]*eBe(r[1],e)}function UNt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=nK(r,"font-size")/128;return t.removeChild(r),n}function eBe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return UNt(e,t);case"em":return nK(t,"font-size");case"rem":return nK(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return EC;case"cm":return EC/2.54;case"mm":return EC/25.4;case"pt":return EC/72;case"pc":return EC/6}return 1}});var aBe=ye((v1r,nBe)=>{"use strict";nBe.exports=xz;var VNt=xz.canvas=document.createElement("canvas"),yz=VNt.getContext("2d"),iBe=_z([32,126]);xz.createPairs=_z;xz.ascii=iBe;function xz(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=_z(t):Array.isArray(t)?n=t:(t.o?n=_z(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=iBe),yz.font=i+"px "+e;for(var o=0;oi*a){var c=(u-l)/i;r[s]=c*1e3}}return r}function _z(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";lBe.exports=fx;fx.canvas=document.createElement("canvas");fx.cache={};function fx(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,s=t.origin||"top";if(fx.cache[r]&&n<=fx.cache[r].em)return oBe(fx.cache[r],s);var l=t.canvas||fx.canvas,u=l.getContext("2d"),c={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},f=Math.ceil(n*1.5);l.height=f,l.width=f*.5,u.font=o;var h="H",d={top:0};u.clearRect(0,0,f,f),u.textBaseline="top",u.fillStyle="black",u.fillText(h,0,0);var v=Ym(u.getImageData(0,0,f,f));u.clearRect(0,0,f,f),u.textBaseline="bottom",u.fillText(h,0,f);var _=Ym(u.getImageData(0,0,f,f));d.lineHeight=d.bottom=f-_+v,u.clearRect(0,0,f,f),u.textBaseline="alphabetic",u.fillText(h,0,f);var b=Ym(u.getImageData(0,0,f,f)),p=f-b-1+v;d.baseline=d.alphabetic=p,u.clearRect(0,0,f,f),u.textBaseline="middle",u.fillText(h,0,f*.5);var C=Ym(u.getImageData(0,0,f,f));d.median=d.middle=f-C-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="hanging",u.fillText(h,0,f*.5);var E=Ym(u.getImageData(0,0,f,f));d.hanging=f-E-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="ideographic",u.fillText(h,0,f);var A=Ym(u.getImageData(0,0,f,f));if(d.ideographic=f-A-1+v,c.upper&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.upper,0,0),d.upper=Ym(u.getImageData(0,0,f,f)),d.capHeight=d.baseline-d.upper),c.lower&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.lower,0,0),d.lower=Ym(u.getImageData(0,0,f,f)),d.xHeight=d.baseline-d.lower),c.tittle&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.tittle,0,0),d.tittle=Ym(u.getImageData(0,0,f,f))),c.ascent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.ascent,0,0),d.ascent=Ym(u.getImageData(0,0,f,f))),c.descent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.descent,0,0),d.descent=sBe(u.getImageData(0,0,f,f))),c.overshoot){u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.overshoot,0,0);var L=sBe(u.getImageData(0,0,f,f));d.overshoot=L-p}for(var x in d)d[x]/=n;return d.em=n,fx.cache[r]=d,oBe(d,s)}function oBe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function Ym(e){for(var t=e.height,r=e.data,n=3;n0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}});var dBe=ye((g1r,hBe)=>{"use strict";var d5=Tqe(),GNt=Xm(),HNt=Aqe(),jNt=kqe(),WNt=OY(),aK=J_(),XNt=Pqe(),hx=Kqe(),ZNt=t5(),YNt=$qe(),KNt=iK(),JNt=rBe(),$Nt=aBe(),QNt=Fh(),eUt=uBe(),tUt=W2(),rUt=tK(),cBe=rUt.nextPow2,fBe=new WNt,wz=!1;document.body&&(bz=document.body.appendChild(document.createElement("div")),bz.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(bz).fontStretch&&(wz=!0),document.body.removeChild(bz));var bz,xc=function(t){iUt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=jNt(t),this.shader=fBe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||HNt({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),fBe.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(YNt(t)?t:{})};xc.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -2705,17 +2705,17 @@ void main() { // color.rgb += (1. - color.rgb) * (1. - mask.rgb); gl_FragColor = color; - }`}),n={};return{regl:t,draw:r,atlas:n}};xc.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=NNt(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(ke){return parseFloat(ke)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=jNt(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=$Nt(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=xc.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(ke,me){if(typeof ke=="string")try{ke=h5.parse(ke)}catch(Ze){ke=h5.parse(xc.baseFontSize+"px "+ke)}else{var ie=ke.style,Se=ke.weight,Le=ke.stretch,Ae=ke.variant;ke=h5.parse(h5.stringify(ke)),ie&&(ke.style=ie),Se&&(ke.weight=Se),Le&&(ke.stretch=Le),Ae&&(ke.variant=Ae)}var De=h5.stringify({size:xc.baseFontSize,family:ke.family,stretch:wz?ke.stretch:void 0,variant:ke.variant,weight:ke.weight,style:ke.style}),Pe=XNt(ke.size),ge=Math.round(Pe[0]*ZNt(Pe[1]));if(ge!==r.fontSize[me]&&(i=!0,r.fontSize[me]=ge),(!r.font[me]||De!=r.font[me].baseString)&&(n=!0,r.font[me]=xc.fonts[De],!r.font[me])){var Fe=ke.family.join(", "),ce=[ke.style];ke.style!=ke.variant&&ce.push(ke.variant),ke.variant!=ke.weight&&ce.push(ke.weight),wz&&ke.weight!=ke.stretch&&ce.push(ke.stretch),r.font[me]={baseString:De,family:Fe,weight:ke.weight,stretch:ke.stretch,style:ke.style,variant:ke.variant,width:{},kerning:{},metrics:JNt(Fe,{origin:"top",fontSize:xc.baseFontSize,fontStyle:ce.join(" ")})},xc.fonts[De]=r.font[me]}}),(n||i)&&this.font.forEach(function(ke,me){var ie=h5.stringify({size:r.fontSize[me],family:ke.family,stretch:wz?ke.stretch:void 0,variant:ke.variant,weight:ke.weight,style:ke.style});if(r.fontAtlas[me]=r.shader.atlas[ie],!r.fontAtlas[me]){var Se=ke.metrics;r.shader.atlas[ie]=r.fontAtlas[me]={fontString:ie,step:Math.ceil(r.fontSize[me]*Se.bottom*.5)*2,em:r.fontSize[me],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o2){for(var u=!t.position[0].length,c=hx.mallocFloat(this.count*2),f=0,h=0;f1?r.align[me]:r.align[0]:r.align;if(typeof ie=="number")return ie;switch(ie){case"right":case"end":return-ke;case"center":case"centre":case"middle":return-ke*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(ke,me){var ie=(r.font[me]||r.font[0]).metrics,Se=0;return Se+=ie.bottom*.5,typeof ke=="number"?Se+=ke-ie.baseline:Se+=-ie[ke],Se*=-1,Se})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=aK(t.color,"uint8");else{var G;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var Z=t.color.length;G=hx.mallocUint8(Z);for(var H=(t.color.subarray||t.color.slice).bind(t.color),N=0;N4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(oe){var _e=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(_e);for(var Me=0;Me1?this.counts[Me]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Me]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Me*4,Me*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Me]:this.opacity,baseline:this.baselineOffset[Me]!=null?this.baselineOffset[Me]:this.baselineOffset[0],align:this.align?this.alignOffset[Me]!=null?this.alignOffset[Me]:this.alignOffset[0]:0,atlas:this.fontAtlas[Me]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Me*2,Me*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};xc.prototype.destroy=function(){};xc.prototype.kerning=!0;xc.prototype.position={constant:new Float32Array(2)};xc.prototype.translate=null;xc.prototype.scale=null;xc.prototype.font=null;xc.prototype.text="";xc.prototype.positionOffset=[0,0];xc.prototype.opacity=1;xc.prototype.color=new Uint8Array([0,0,0,255]);xc.prototype.alignOffset=[0,0];xc.maxAtlasSize=1024;xc.atlasCanvas=document.createElement("canvas");xc.atlasContext=xc.atlasCanvas.getContext("2d",{alpha:!1});xc.baseFontSize=64;xc.fonts={};function eUt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}cBe.exports=xc});var hBe=ye((oK,sK)=>{(function(e,t){typeof oK=="object"&&typeof sK!="undefined"?sK.exports=t():e.createREGL=t()})(oK,function(){"use strict";var e=function(Ee,xt){for(var zt=Object.keys(xt),Ir=0;Ir1&&xt===zt&&(xt==='"'||xt==="'"))return['"'+o(Ee.substr(1,Ee.length-2))+'"'];var Ir=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Ee);if(Ir)return s(Ee.substr(0,Ir.index)).concat(s(Ir[1])).concat(s(Ee.substr(Ir.index+Ir[0].length)));var Hr=Ee.split(".");if(Hr.length===1)return['"'+o(Ee)+'"'];for(var Br=[],Vr=0;Vr65535)<<4,Ee>>>=xt,zt=(Ee>255)<<3,Ee>>>=zt,xt|=zt,zt=(Ee>15)<<2,Ee>>>=zt,xt|=zt,zt=(Ee>3)<<1,Ee>>>=zt,xt|=zt,xt|Ee>>1}function N(){var Ee=M(8,function(){return[]});function xt(Br){var Vr=Z(Br),mi=Ee[H(Vr)>>2];return mi.length>0?mi.pop():new ArrayBuffer(Vr)}function zt(Br){Ee[H(Br.byteLength)>>2].push(Br)}function Ir(Br,Vr){var mi=null;switch(Br){case g:mi=new Int8Array(xt(Vr),0,Vr);break;case P:mi=new Uint8Array(xt(Vr),0,Vr);break;case T:mi=new Int16Array(xt(2*Vr),0,Vr);break;case z:mi=new Uint16Array(xt(2*Vr),0,Vr);break;case O:mi=new Int32Array(xt(4*Vr),0,Vr);break;case V:mi=new Uint32Array(xt(4*Vr),0,Vr);break;case G:mi=new Float32Array(xt(4*Vr),0,Vr);break;default:return null}return mi.length!==Vr?mi.subarray(0,Vr):mi}function Hr(Br){zt(Br.buffer)}return{alloc:xt,free:zt,allocType:Ir,freeType:Hr}}var j=N();j.zero=N();var re=3408,oe=3410,_e=3411,Me=3412,ke=3413,me=3414,ie=3415,Se=33901,Le=33902,Ae=3379,De=3386,Pe=34921,ge=36347,Fe=36348,ce=35661,Ze=35660,ct=34930,pt=36349,Wt=34076,st=34024,lt=7936,Gt=7937,Nt=7938,$t=35724,sr=34047,wr=36063,ur=34852,Qe=3553,Et=34067,er=34069,Ut=33984,Ft=6408,bt=5126,yt=5121,Yt=36160,lr=36053,Tr=36064,Rr=16384,ei=function(Ee,xt){var zt=1;xt.ext_texture_filter_anisotropic&&(zt=Ee.getParameter(sr));var Ir=1,Hr=1;xt.webgl_draw_buffers&&(Ir=Ee.getParameter(ur),Hr=Ee.getParameter(wr));var Br=!!xt.oes_texture_float;if(Br){var Vr=Ee.createTexture();Ee.bindTexture(Qe,Vr),Ee.texImage2D(Qe,0,Ft,1,1,0,Ft,bt,null);var mi=Ee.createFramebuffer();if(Ee.bindFramebuffer(Yt,mi),Ee.framebufferTexture2D(Yt,Tr,Qe,Vr,0),Ee.bindTexture(Qe,null),Ee.checkFramebufferStatus(Yt)!==lr)Br=!1;else{Ee.viewport(0,0,1,1),Ee.clearColor(1,0,0,1),Ee.clear(Rr);var Ni=j.allocType(bt,4);Ee.readPixels(0,0,1,1,Ft,bt,Ni),Ee.getError()?Br=!1:(Ee.deleteFramebuffer(mi),Ee.deleteTexture(Vr),Br=Ni[0]===1),j.freeType(Ni)}}var Oi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Mi=!0;if(!Oi){var Hn=Ee.createTexture(),Qi=j.allocType(yt,36);Ee.activeTexture(Ut),Ee.bindTexture(Et,Hn),Ee.texImage2D(er,0,Ft,3,3,0,Ft,yt,Qi),j.freeType(Qi),Ee.bindTexture(Et,null),Ee.deleteTexture(Hn),Mi=!Ee.getError()}return{colorBits:[Ee.getParameter(oe),Ee.getParameter(_e),Ee.getParameter(Me),Ee.getParameter(ke)],depthBits:Ee.getParameter(me),stencilBits:Ee.getParameter(ie),subpixelBits:Ee.getParameter(re),extensions:Object.keys(xt).filter(function(ji){return!!xt[ji]}),maxAnisotropic:zt,maxDrawbuffers:Ir,maxColorAttachments:Hr,pointSizeDims:Ee.getParameter(Se),lineWidthDims:Ee.getParameter(Le),maxViewportDims:Ee.getParameter(De),maxCombinedTextureUnits:Ee.getParameter(ce),maxCubeMapSize:Ee.getParameter(Wt),maxRenderbufferSize:Ee.getParameter(st),maxTextureUnits:Ee.getParameter(ct),maxTextureSize:Ee.getParameter(Ae),maxAttributes:Ee.getParameter(Pe),maxVertexUniforms:Ee.getParameter(ge),maxVertexTextureUnits:Ee.getParameter(Ze),maxVaryingVectors:Ee.getParameter(Fe),maxFragmentUniforms:Ee.getParameter(pt),glsl:Ee.getParameter($t),renderer:Ee.getParameter(Gt),vendor:Ee.getParameter(lt),version:Ee.getParameter(Nt),readFloat:Br,npotTextureCube:Mi}},Wr=function(Ee){return Ee instanceof Uint8Array||Ee instanceof Uint16Array||Ee instanceof Uint32Array||Ee instanceof Int8Array||Ee instanceof Int16Array||Ee instanceof Int32Array||Ee instanceof Float32Array||Ee instanceof Float64Array||Ee instanceof Uint8ClampedArray};function Ur(Ee){return!!Ee&&typeof Ee=="object"&&Array.isArray(Ee.shape)&&Array.isArray(Ee.stride)&&typeof Ee.offset=="number"&&Ee.shape.length===Ee.stride.length&&(Array.isArray(Ee.data)||Wr(Ee.data))}var dt=function(Ee){return Object.keys(Ee).map(function(xt){return Ee[xt]})},Ge={shape:xe,flatten:Ie};function Je(Ee,xt,zt){for(var Ir=0;Ir0){var qn;if(Array.isArray(Yr[0])){Xi=kn(Yr);for(var vi=1,li=1;li0){if(typeof vi[0]=="number"){var Ui=j.allocType(ci.dtype,vi.length);Er(Ui,vi),Xi(Ui,mn),j.freeType(Ui)}else if(Array.isArray(vi[0])||Wr(vi[0])){Ki=kn(vi);var Bi=Vn(vi,Ki,ci.dtype);Xi(Bi,mn),j.freeType(Bi)}}}else if(Ur(vi)){Ki=vi.shape;var vn=vi.stride,Un=0,na=0,Yi=0,Ln=0;Ki.length===1?(Un=Ki[0],na=1,Yi=vn[0],Ln=0):Ki.length===2&&(Un=Ki[0],na=Ki[1],Yi=vn[0],Ln=vn[1]);var ra=Array.isArray(vi.data)?ci.dtype:ar(vi.data),oa=j.allocType(ra,Un*na);Zr(oa,vi.data,Un,na,Yi,Ln,vi.offset),Xi(oa,mn),j.freeType(oa)}return nn}return xi||nn(Mr),nn._reglType="buffer",nn._buffer=ci,nn.subdata=qn,zt.profile&&(nn.stats=ci.stats),nn.destroy=function(){Qi(ci)},nn}function si(){dt(Br).forEach(function(Mr){Mr.buffer=Ee.createBuffer(),Ee.bindBuffer(Mr.type,Mr.buffer),Ee.bufferData(Mr.type,Mr.persistentData||Mr.byteLength,Mr.usage)})}return zt.profile&&(xt.getTotalBufferSize=function(){var Mr=0;return Object.keys(Br).forEach(function(Yr){Mr+=Br[Yr].stats.size}),Mr}),{create:ji,createStream:Ni,destroyStream:Oi,clear:function(){dt(Br).forEach(Qi),mi.forEach(Qi)},getBuffer:function(Mr){return Mr&&Mr._buffer instanceof Vr?Mr._buffer:null},restore:si,_initBuffer:Hn}}var $r=0,zi=0,Ji=1,en=1,cn=4,yn=4,Mn={points:$r,point:zi,lines:Ji,line:en,triangles:cn,triangle:yn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ba=0,la=1,ma=4,Wa=5120,Fa=5121,Wo=5122,da=5123,Wn=5124,Ga=5125,vo=34963,jn=35040,St=35044;function Cr(Ee,xt,zt,Ir){var Hr={},Br=0,Vr={uint8:Fa,uint16:da};xt.oes_element_index_uint&&(Vr.uint32=Ga);function mi(si){this.id=Br++,Hr[this.id]=this,this.buffer=si,this.primType=ma,this.vertCount=0,this.type=0}mi.prototype.bind=function(){this.buffer.bind()};var Ni=[];function Oi(si){var Mr=Ni.pop();return Mr||(Mr=new mi(zt.create(null,vo,!0,!1)._buffer)),Hn(Mr,si,jn,-1,-1,0,0),Mr}function Mi(si){Ni.push(si)}function Hn(si,Mr,Yr,xi,Ii,ci,nn){si.buffer.bind();var Xi;if(Mr){var qn=nn;!nn&&(!Wr(Mr)||Ur(Mr)&&!Wr(Mr.data))&&(qn=xt.oes_element_index_uint?Ga:da),zt._initBuffer(si.buffer,Mr,Yr,qn,3)}else Ee.bufferData(vo,ci,Yr),si.buffer.dtype=Xi||Fa,si.buffer.usage=Yr,si.buffer.dimension=3,si.buffer.byteLength=ci;if(Xi=nn,!nn){switch(si.buffer.dtype){case Fa:case Wa:Xi=Fa;break;case da:case Wo:Xi=da;break;case Ga:case Wn:Xi=Ga;break;default:}si.buffer.dtype=Xi}si.type=Xi;var vi=Ii;vi<0&&(vi=si.buffer.byteLength,Xi===da?vi>>=1:Xi===Ga&&(vi>>=2)),si.vertCount=vi;var li=xi;if(xi<0){li=ma;var mn=si.buffer.dimension;mn===1&&(li=Ba),mn===2&&(li=la),mn===3&&(li=ma)}si.primType=li}function Qi(si){Ir.elementsCount--,delete Hr[si.id],si.buffer.destroy(),si.buffer=null}function ji(si,Mr){var Yr=zt.create(null,vo,!0),xi=new mi(Yr._buffer);Ir.elementsCount++;function Ii(ci){if(!ci)Yr(),xi.primType=ma,xi.vertCount=0,xi.type=Fa;else if(typeof ci=="number")Yr(ci),xi.primType=ma,xi.vertCount=ci|0,xi.type=Fa;else{var nn=null,Xi=St,qn=-1,vi=-1,li=0,mn=0;Array.isArray(ci)||Wr(ci)||Ur(ci)?nn=ci:("data"in ci&&(nn=ci.data),"usage"in ci&&(Xi=pn[ci.usage]),"primitive"in ci&&(qn=Mn[ci.primitive]),"count"in ci&&(vi=ci.count|0),"type"in ci&&(mn=Vr[ci.type]),"length"in ci?li=ci.length|0:(li=vi,mn===da||mn===Wo?li*=2:(mn===Ga||mn===Wn)&&(li*=4))),Hn(xi,nn,Xi,qn,vi,li,mn)}return Ii}return Ii(si),Ii._reglType="elements",Ii._elements=xi,Ii.subdata=function(ci,nn){return Yr.subdata(ci,nn),Ii},Ii.destroy=function(){Qi(xi)},Ii}return{create:ji,createStream:Oi,destroyStream:Mi,getElements:function(si){return typeof si=="function"&&si._elements instanceof mi?si._elements:null},clear:function(){dt(Hr).forEach(Qi)}}}var Qr=new Float32Array(1),pi=new Uint32Array(Qr.buffer),fn=5123;function Sn(Ee){for(var xt=j.allocType(fn,Ee.length),zt=0;zt>>31<<15,Br=(Ir<<1>>>24)-127,Vr=Ir>>13&1023;if(Br<-24)xt[zt]=Hr;else if(Br<-14){var mi=-14-Br;xt[zt]=Hr+(Vr+1024>>mi)}else Br>15?xt[zt]=Hr+31744:xt[zt]=Hr+(Br+15<<10)+Vr}return xt}function En(Ee){return Array.isArray(Ee)||Wr(Ee)}var ki=34467,_n=3553,ya=34067,Jn=34069,Ma=6408,_o=6406,No=6407,po=6409,Lo=6410,Co=32854,Fs=32855,zs=36194,ul=32819,cl=32820,zl=33635,cs=34042,nl=6402,Ss=34041,fl=35904,Js=35906,Os=36193,Io=33776,us=33777,Zl=33778,Su=33779,nc=35986,ws=35987,Fn=34798,_a=35840,Vu=35841,Ol=35842,xo=35843,Yl=36196,Us=5121,Hl=5123,ac=5125,aa=5126,Oo=10242,qo=10243,ql=10497,Pc=33071,Do=33648,rf=10240,Uf=10241,ml=9728,Zc=9729,Kl=9984,qs=9985,yu=9986,oc=9987,Cf=33170,sc=4352,Nh=4353,kf=4354,fs=34046,nf=3317,Vf=37440,Jl=37441,hl=37443,lc=37444,Fu=33984,Cs=[Kl,yu,qs,oc],js=[0,po,Lo,No,Ma],Go={};Go[po]=Go[_o]=Go[nl]=1,Go[Ss]=Go[Lo]=2,Go[No]=Go[fl]=3,Go[Ma]=Go[Js]=4;function gs(Ee){return"[object "+Ee+"]"}var uc=gs("HTMLCanvasElement"),bl=gs("OffscreenCanvas"),Gu=gs("CanvasRenderingContext2D"),Bs=gs("ImageBitmap"),ad=gs("HTMLImageElement"),Po=gs("HTMLVideoElement"),od=Object.keys(Ce).concat([uc,bl,Gu,Bs,ad,Po]),Yo=[];Yo[Us]=1,Yo[aa]=4,Yo[Os]=2,Yo[Hl]=2,Yo[ac]=4;var Pa=[];Pa[Co]=2,Pa[Fs]=2,Pa[zs]=2,Pa[Ss]=4,Pa[Io]=.5,Pa[us]=.5,Pa[Zl]=1,Pa[Su]=1,Pa[nc]=.5,Pa[ws]=1,Pa[Fn]=1,Pa[_a]=.5,Pa[Vu]=.25,Pa[Ol]=.5,Pa[xo]=.25,Pa[Yl]=.5;function af(Ee){return Array.isArray(Ee)&&(Ee.length===0||typeof Ee[0]=="number")}function Hu(Ee){if(!Array.isArray(Ee))return!1;var xt=Ee.length;return!(xt===0||!En(Ee[0]))}function wl(Ee){return Object.prototype.toString.call(Ee)}function Gf(Ee){return wl(Ee)===uc}function Ic(Ee){return wl(Ee)===bl}function mf(Ee){return wl(Ee)===Gu}function Bl(Ee){return wl(Ee)===Bs}function _h(Ee){return wl(Ee)===ad}function Qf(Ee){return wl(Ee)===Po}function yf(Ee){if(!Ee)return!1;var xt=wl(Ee);return od.indexOf(xt)>=0?!0:af(Ee)||Hu(Ee)||Ur(Ee)}function Yc(Ee){return Ce[Object.prototype.toString.call(Ee)]|0}function eh(Ee,xt){var zt=xt.length;switch(Ee.type){case Us:case Hl:case ac:case aa:var Ir=j.allocType(Ee.type,zt);Ir.set(xt),Ee.data=Ir;break;case Os:Ee.data=Sn(xt);break;default:}}function th(Ee,xt){return j.allocType(Ee.type===Os?aa:Ee.type,xt)}function ju(Ee,xt){Ee.type===Os?(Ee.data=Sn(xt),j.freeType(xt)):Ee.data=xt}function Hf(Ee,xt,zt,Ir,Hr,Br){for(var Vr=Ee.width,mi=Ee.height,Ni=Ee.channels,Oi=Vr*mi*Ni,Mi=th(Ee,Oi),Hn=0,Qi=0;Qi=1;)mi+=Vr*Ni*Ni,Ni/=2;return mi}else return Vr*zt*Ir}function of(Ee,xt,zt,Ir,Hr,Br,Vr){var mi={"don't care":sc,"dont care":sc,nice:kf,fast:Nh},Ni={repeat:ql,clamp:Pc,mirror:Do},Oi={nearest:ml,linear:Zc},Mi=e({mipmap:oc,"nearest mipmap nearest":Kl,"linear mipmap nearest":qs,"nearest mipmap linear":yu,"linear mipmap linear":oc},Oi),Hn={none:0,browser:lc},Qi={uint8:Us,rgba4:ul,rgb565:zl,"rgb5 a1":cl},ji={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:Co,"rgb5 a1":Fs,rgb565:zs},si={};xt.ext_srgb&&(ji.srgb=fl,ji.srgba=Js),xt.oes_texture_float&&(Qi.float32=Qi.float=aa),xt.oes_texture_half_float&&(Qi.float16=Qi["half float"]=Os),xt.webgl_depth_texture&&(e(ji,{depth:nl,"depth stencil":Ss}),e(Qi,{uint16:Hl,uint32:ac,"depth stencil":cs})),xt.webgl_compressed_texture_s3tc&&e(si,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":us,"rgba s3tc dxt3":Zl,"rgba s3tc dxt5":Su}),xt.webgl_compressed_texture_atc&&e(si,{"rgb atc":nc,"rgba atc explicit alpha":ws,"rgba atc interpolated alpha":Fn}),xt.webgl_compressed_texture_pvrtc&&e(si,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":Ol,"rgba pvrtc 2bppv1":xo}),xt.webgl_compressed_texture_etc1&&(si["rgb etc1"]=Yl);var Mr=Array.prototype.slice.call(Ee.getParameter(ki));Object.keys(si).forEach(function(ne){var we=si[ne];Mr.indexOf(we)>=0&&(ji[ne]=we)});var Yr=Object.keys(ji);zt.textureFormats=Yr;var xi=[];Object.keys(ji).forEach(function(ne){var we=ji[ne];xi[we]=ne});var Ii=[];Object.keys(Qi).forEach(function(ne){var we=Qi[ne];Ii[we]=ne});var ci=[];Object.keys(Oi).forEach(function(ne){var we=Oi[ne];ci[we]=ne});var nn=[];Object.keys(Mi).forEach(function(ne){var we=Mi[ne];nn[we]=ne});var Xi=[];Object.keys(Ni).forEach(function(ne){var we=Ni[ne];Xi[we]=ne});var qn=Yr.reduce(function(ne,we){var Ue=ji[we];return Ue===po||Ue===_o||Ue===po||Ue===Lo||Ue===nl||Ue===Ss||xt.ext_srgb&&(Ue===fl||Ue===Js)?ne[Ue]=Ue:Ue===Fs||we.indexOf("rgba")>=0?ne[Ue]=Ma:ne[Ue]=No,ne},{});function vi(){this.internalformat=Ma,this.format=Ma,this.type=Us,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=lc,this.width=0,this.height=0,this.channels=0}function li(ne,we){ne.internalformat=we.internalformat,ne.format=we.format,ne.type=we.type,ne.compressed=we.compressed,ne.premultiplyAlpha=we.premultiplyAlpha,ne.flipY=we.flipY,ne.unpackAlignment=we.unpackAlignment,ne.colorSpace=we.colorSpace,ne.width=we.width,ne.height=we.height,ne.channels=we.channels}function mn(ne,we){if(!(typeof we!="object"||!we)){if("premultiplyAlpha"in we&&(ne.premultiplyAlpha=we.premultiplyAlpha),"flipY"in we&&(ne.flipY=we.flipY),"alignment"in we&&(ne.unpackAlignment=we.alignment),"colorSpace"in we&&(ne.colorSpace=Hn[we.colorSpace]),"type"in we){var Ue=we.type;ne.type=Qi[Ue]}var ft=ne.width,Zt=ne.height,hr=ne.channels,qt=!1;"shape"in we?(ft=we.shape[0],Zt=we.shape[1],we.shape.length===3&&(hr=we.shape[2],qt=!0)):("radius"in we&&(ft=Zt=we.radius),"width"in we&&(ft=we.width),"height"in we&&(Zt=we.height),"channels"in we&&(hr=we.channels,qt=!0)),ne.width=ft|0,ne.height=Zt|0,ne.channels=hr|0;var Ve=!1;if("format"in we){var et=we.format,at=ne.internalformat=ji[et];ne.format=qn[at],et in Qi&&("type"in we||(ne.type=Qi[et])),et in si&&(ne.compressed=!0),Ve=!0}!qt&&Ve?ne.channels=Go[ne.format]:qt&&!Ve&&ne.channels!==js[ne.format]&&(ne.format=ne.internalformat=js[ne.channels])}}function Ki(ne){Ee.pixelStorei(Vf,ne.flipY),Ee.pixelStorei(Jl,ne.premultiplyAlpha),Ee.pixelStorei(hl,ne.colorSpace),Ee.pixelStorei(nf,ne.unpackAlignment)}function Ui(){vi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Bi(ne,we){var Ue=null;if(yf(we)?Ue=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),yf(we.data)&&(Ue=we.data)),we.copy){var ft=Hr.viewportWidth,Zt=Hr.viewportHeight;ne.width=ne.width||ft-ne.xOffset,ne.height=ne.height||Zt-ne.yOffset,ne.needsCopy=!0}else if(!Ue)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(Wr(Ue))ne.channels=ne.channels||4,ne.data=Ue,!("type"in we)&&ne.type===Us&&(ne.type=Yc(Ue));else if(af(Ue))ne.channels=ne.channels||4,eh(ne,Ue),ne.alignment=1,ne.needsFree=!0;else if(Ur(Ue)){var hr=Ue.data;!Array.isArray(hr)&&ne.type===Us&&(ne.type=Yc(hr));var qt=Ue.shape,Ve=Ue.stride,et,at,kt,Ot,It,Bt;qt.length===3?(kt=qt[2],Bt=Ve[2]):(kt=1,Bt=1),et=qt[0],at=qt[1],Ot=Ve[0],It=Ve[1],ne.alignment=1,ne.width=et,ne.height=at,ne.channels=kt,ne.format=ne.internalformat=js[kt],ne.needsFree=!0,Hf(ne,hr,Ot,It,Bt,Ue.offset)}else if(Gf(Ue)||Ic(Ue)||mf(Ue))Gf(Ue)||Ic(Ue)?ne.element=Ue:ne.element=Ue.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(Bl(Ue))ne.element=Ue,ne.width=Ue.width,ne.height=Ue.height,ne.channels=4;else if(_h(Ue))ne.element=Ue,ne.width=Ue.naturalWidth,ne.height=Ue.naturalHeight,ne.channels=4;else if(Qf(Ue))ne.element=Ue,ne.width=Ue.videoWidth,ne.height=Ue.videoHeight,ne.channels=4;else if(Hu(Ue)){var Rt=ne.width||Ue[0].length,mt=ne.height||Ue.length,Pt=ne.channels;En(Ue[0][0])?Pt=Pt||Ue[0][0].length:Pt=Pt||1;for(var ht=Ge.shape(Ue),cr=1,br=0;br>=Zt,Ue.height>>=Zt,Bi(Ue,ft[Zt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ft=we.mag;ne.magFilter=Oi[ft]}var Zt=ne.wrapS,hr=ne.wrapT;if("wrap"in we){var qt=we.wrap;typeof qt=="string"?Zt=hr=Ni[qt]:Array.isArray(qt)&&(Zt=Ni[qt[0]],hr=Ni[qt[1]])}else{if("wrapS"in we){var Ve=we.wrapS;Zt=Ni[Ve]}if("wrapT"in we){var et=we.wrapT;hr=Ni[et]}}if(ne.wrapS=Zt,ne.wrapT=hr,"anisotropic"in we){var at=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var kt=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=mi[we.mipmap],ne.genMipmaps=!0,kt=!0;break;case"boolean":kt=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,kt=!0;break;default:}kt&&!("min"in we)&&(ne.minFilter=Kl)}}function ol(ne,we){Ee.texParameteri(we,Uf,ne.minFilter),Ee.texParameteri(we,rf,ne.magFilter),Ee.texParameteri(we,Oo,ne.wrapS),Ee.texParameteri(we,qo,ne.wrapT),xt.ext_texture_filter_anisotropic&&Ee.texParameteri(we,fs,ne.anisotropic),ne.genMipmaps&&(Ee.hint(Cf,ne.mipmapHint),Ee.generateMipmap(we))}var Vl=0,ls={},Gs=zt.maxTextureUnits,Ks=Array(Gs).map(function(){return null});function Ta(ne){vi.call(this),this.mipmask=0,this.internalformat=Ma,this.id=Vl++,this.refCount=1,this.target=ne,this.texture=Ee.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new zo,Vr.profile&&(this.stats={size:0})}function sl(ne){Ee.activeTexture(Fu),Ee.bindTexture(ne.target,ne.texture)}function io(){var ne=Ks[0];ne?Ee.bindTexture(ne.target,ne.texture):Ee.bindTexture(_n,null)}function Y(ne){var we=ne.texture,Ue=ne.unit,ft=ne.target;Ue>=0&&(Ee.activeTexture(Fu+Ue),Ee.bindTexture(ft,null),Ks[Ue]=null),Ee.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ls[ne.id],Br.textureCount--}e(Ta.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Ue=0;Ue0)continue;ft.unit=-1}Ks[Ue]=ne,we=Ue;break}we>=Gs,Vr.profile&&Br.maxTextureUnits>It)-kt,Bt.height=Bt.height||(Ue.height>>It)-Ot,sl(Ue),Un(Bt,_n,kt,Ot,It),io(),Ln(Bt),ft}function hr(qt,Ve){var et=qt|0,at=Ve|0||et;if(et===Ue.width&&at===Ue.height)return ft;ft.width=Ue.width=et,ft.height=Ue.height=at,sl(Ue);for(var kt=0;Ue.mipmask>>kt;++kt){var Ot=et>>kt,It=at>>kt;if(!Ot||!It)break;Ee.texImage2D(_n,kt,Ue.format,Ot,It,0,Ue.format,Ue.type,null)}return io(),Vr.profile&&(Ue.stats.size=cc(Ue.internalformat,Ue.type,et,at,!1,!1)),ft}return ft(ne,we),ft.subimage=Zt,ft.resize=hr,ft._reglType="texture2d",ft._texture=Ue,Vr.profile&&(ft.stats=Ue.stats),ft.destroy=function(){Ue.decRef()},ft}function J(ne,we,Ue,ft,Zt,hr){var qt=new Ta(ya);ls[qt.id]=qt,Br.cubeCount++;var Ve=new Array(6);function et(Ot,It,Bt,Rt,mt,Pt){var ht,cr=qt.texInfo;for(zo.call(cr),ht=0;ht<6;++ht)Ve[ht]=Va();if(typeof Ot=="number"||!Ot){var br=Ot|0||1;for(ht=0;ht<6;++ht)oa(Ve[ht],br,br)}else if(typeof Ot=="object")if(It)wa(Ve[0],Ot),wa(Ve[1],It),wa(Ve[2],Bt),wa(Ve[3],Rt),wa(Ve[4],mt),wa(Ve[5],Pt);else if(el(cr,Ot),mn(qt,Ot),"faces"in Ot){var Nr=Ot.faces;for(ht=0;ht<6;++ht)li(Ve[ht],qt),wa(Ve[ht],Nr[ht])}else for(ht=0;ht<6;++ht)wa(Ve[ht],Ot);for(li(qt,Ve[0]),cr.genMipmaps?qt.mipmask=(Ve[0].width<<1)-1:qt.mipmask=Ve[0].mipmask,qt.internalformat=Ve[0].internalformat,et.width=Ve[0].width,et.height=Ve[0].height,sl(qt),ht=0;ht<6;++ht)ns(Ve[ht],Jn+ht);for(ol(cr,ya),io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,cr.genMipmaps,!0)),et.format=xi[qt.internalformat],et.type=Ii[qt.type],et.mag=ci[cr.magFilter],et.min=nn[cr.minFilter],et.wrapS=Xi[cr.wrapS],et.wrapT=Xi[cr.wrapT],ht=0;ht<6;++ht)El(Ve[ht]);return et}function at(Ot,It,Bt,Rt,mt){var Pt=Bt|0,ht=Rt|0,cr=mt|0,br=Yi();return li(br,qt),br.width=0,br.height=0,Bi(br,It),br.width=br.width||(qt.width>>cr)-Pt,br.height=br.height||(qt.height>>cr)-ht,sl(qt),Un(br,Jn+Ot,Pt,ht,cr),io(),Ln(br),et}function kt(Ot){var It=Ot|0;if(It!==qt.width){et.width=qt.width=It,et.height=qt.height=It,sl(qt);for(var Bt=0;Bt<6;++Bt)for(var Rt=0;qt.mipmask>>Rt;++Rt)Ee.texImage2D(Jn+Bt,Rt,qt.format,It>>Rt,It>>Rt,0,qt.format,qt.type,null);return io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,!1,!0)),et}}return et(ne,we,Ue,ft,Zt,hr),et.subimage=at,et.resize=kt,et._reglType="textureCube",et._texture=qt,Vr.profile&&(et.stats=qt.stats),et.destroy=function(){qt.decRef()},et}function q(){for(var ne=0;ne>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);else for(var Zt=0;Zt<6;++Zt)Ee.texImage2D(Jn+Zt,ft,Ue.internalformat,Ue.width>>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);ol(Ue.texInfo,Ue.target)})}function de(){for(var ne=0;ne=0?El=!0:Ni.indexOf(zo)>=0&&(El=!1))),("depthTexture"in Ta||"depthStencilTexture"in Ta)&&(Ks=!!(Ta.depthTexture||Ta.depthStencilTexture)),"depth"in Ta&&(typeof Ta.depth=="boolean"?ns=Ta.depth:(Vl=Ta.depth,Ys=!1)),"stencil"in Ta&&(typeof Ta.stencil=="boolean"?Ys=Ta.stencil:(ls=Ta.stencil,ns=!1)),"depthStencil"in Ta&&(typeof Ta.depthStencil=="boolean"?ns=Ys=Ta.depthStencil:(Gs=Ta.depthStencil,ns=!1,Ys=!1))}var io=null,Y=null,D=null,J=null;if(Array.isArray(Va))io=Va.map(si);else if(Va)io=[si(Va)];else for(io=new Array(ol),ra=0;ra0&&(Ln.depth=Bi[0].depth,Ln.stencil=Bi[0].stencil,Ln.depthStencil=Bi[0].depthStencil),Bi[Yi]?Bi[Yi](Ln):Bi[Yi]=li(Ln)}return e(vn,{width:ra,height:ra,color:zo})}function Un(na){var Yi,Ln=na|0;if(Ln===vn.width)return vn;var ra=vn.color;for(Yi=0;Yi=ra.byteLength?oa.subdata(ra):(oa.destroy(),li.buffers[na]=null)),li.buffers[na]||(oa=li.buffers[na]=Hr.create(Yi,Pf,!1,!0)),Ln.buffer=Hr.getBuffer(oa),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1,vn[na]=1}else Hr.getBuffer(Yi)?(Ln.buffer=Hr.getBuffer(Yi),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1):Hr.getBuffer(Yi.buffer)?(Ln.buffer=Hr.getBuffer(Yi.buffer),Ln.size=(+Yi.size||Ln.buffer.dimension)|0,Ln.normalized=!!Yi.normalized||!1,"type"in Yi?Ln.type=Hi[Yi.type]:Ln.type=Ln.buffer.dtype,Ln.offset=(Yi.offset||0)|0,Ln.stride=(Yi.stride||0)|0,Ln.divisor=(Yi.divisor||0)|0,Ln.state=1):"x"in Yi&&(Ln.x=+Yi.x||0,Ln.y=+Yi.y||0,Ln.z=+Yi.z||0,Ln.w=+Yi.w||0,Ln.state=2)}for(var wa=0;wa1)for(var Ki=0;KiMr&&(Mr=Yr.stats.uniformsCount)}),Mr},zt.getMaxAttributesCount=function(){var Mr=0;return Mi.forEach(function(Yr){Yr.stats.attributesCount>Mr&&(Mr=Yr.stats.attributesCount)}),Mr});function si(){Hr={},Br={};for(var Mr=0;Mr16&&(zt=Zi(zt,Ee.length*8));for(var Ir=Array(16),Hr=Array(16),Br=0;Br<16;Br++)Ir[Br]=zt[Br]^909522486,Hr[Br]=zt[Br]^1549556828;var Vr=Zi(Ir.concat(Bc(xt)),512+xt.length*8);return At(Zi(Hr.concat(Vr),768))}function vu(Ee){for(var xt=ah?"0123456789ABCDEF":"0123456789abcdef",zt="",Ir,Hr=0;Hr>>4&15)+xt.charAt(Ir&15);return zt}function qc(Ee){for(var xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt="",Ir=Ee.length,Hr=0;HrEe.length*8?zt+=Zu:zt+=xt.charAt(Br>>>6*(3-Vr)&63);return zt}function cf(Ee,xt){var zt=xt.length,Ir=Array(),Hr,Br,Vr,mi,Ni=Array(Math.ceil(Ee.length/2));for(Hr=0;Hr0;){for(mi=Array(),Vr=0,Hr=0;Hr0||Br>0)&&(mi[mi.length]=Br);Ir[Ir.length]=Vr,Ni=mi}var Oi="";for(Hr=Ir.length-1;Hr>=0;Hr--)Oi+=xt.charAt(Ir[Hr]);var Mi=Math.ceil(Ee.length*8/(Math.log(xt.length)/Math.log(2)));for(Hr=Oi.length;Hr>>6&31,128|Ir&63):Ir<=65535?xt+=String.fromCharCode(224|Ir>>>12&15,128|Ir>>>6&63,128|Ir&63):Ir<=2097151&&(xt+=String.fromCharCode(240|Ir>>>18&7,128|Ir>>>12&63,128|Ir>>>6&63,128|Ir&63));return xt}function Bc(Ee){for(var xt=Array(Ee.length>>2),zt=0;zt>5]|=(Ee.charCodeAt(zt/8)&255)<<24-zt%32;return xt}function At(Ee){for(var xt="",zt=0;zt>5]>>>24-zt%32&255);return xt}function Xt(Ee,xt){return Ee>>>xt|Ee<<32-xt}function kr(Ee,xt){return Ee>>>xt}function Ar(Ee,xt,zt){return Ee&xt^~Ee&zt}function Kr(Ee,xt,zt){return Ee&xt^Ee&zt^xt&zt}function Ei(Ee){return Xt(Ee,2)^Xt(Ee,13)^Xt(Ee,22)}function Wi(Ee){return Xt(Ee,6)^Xt(Ee,11)^Xt(Ee,25)}function hn(Ee){return Xt(Ee,7)^Xt(Ee,18)^kr(Ee,3)}function Tn(Ee){return Xt(Ee,17)^Xt(Ee,19)^kr(Ee,10)}var Bn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Zi(Ee,xt){var zt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Ir=new Array(64),Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr;for(Ee[xt>>5]|=128<<24-xt%32,Ee[(xt+64>>9<<4)+15]=xt,Qi=0;Qi>16)+(xt>>16)+(zt>>16);return Ir<<16|zt&65535}function an(Ee){return Array.prototype.slice.call(Ee)}function Di(Ee){return an(Ee).join("")}function $n(Ee){var xt=Ee&&Ee.cache,zt=0,Ir=[],Hr=[],Br=[];function Vr(si,Mr){var Yr=Mr&&Mr.stable;if(!Yr){for(var xi=0;xi0&&(si.push(Ii,"="),si.push.apply(si,an(arguments)),si.push(";")),Ii}return e(Mr,{def:xi,toString:function(){return Di([Yr.length>0?"var "+Yr.join(",")+";":"",Di(si)])}})}function Ni(){var si=mi(),Mr=mi(),Yr=si.toString,xi=Mr.toString;function Ii(ci,nn){Mr(ci,nn,"=",si.def(ci,nn),";")}return e(function(){si.apply(si,an(arguments))},{def:si.def,entry:si,exit:Mr,save:Ii,set:function(ci,nn,Xi){Ii(ci,nn),si(ci,nn,"=",Xi,";")},toString:function(){return Yr()+xi()}})}function Oi(){var si=Di(arguments),Mr=Ni(),Yr=Ni(),xi=Mr.toString,Ii=Yr.toString;return e(Mr,{then:function(){return Mr.apply(Mr,an(arguments)),this},else:function(){return Yr.apply(Yr,an(arguments)),this},toString:function(){var ci=Ii();return ci&&(ci="else{"+ci+"}"),Di(["if(",si,"){",xi(),"}",ci])}})}var Mi=mi(),Hn={};function Qi(si,Mr){var Yr=[];function xi(){var qn="a"+Yr.length;return Yr.push(qn),qn}Mr=Mr||0;for(var Ii=0;Ii2){for(var a=Array(t.position.length*.5),o=0;o2){for(var u=!t.position[0].length,c=hx.mallocFloat(this.count*2),f=0,h=0;f1?r.align[me]:r.align[0]:r.align;if(typeof ie=="number")return ie;switch(ie){case"right":case"end":return-ke;case"center":case"centre":case"middle":return-ke*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(ke,me){var ie=(r.font[me]||r.font[0]).metrics,Se=0;return Se+=ie.bottom*.5,typeof ke=="number"?Se+=ke-ie.baseline:Se+=-ie[ke],Se*=-1,Se})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=aK(t.color,"uint8");else{var G;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var Z=t.color.length;G=hx.mallocUint8(Z);for(var H=(t.color.subarray||t.color.slice).bind(t.color),N=0;N4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(oe){var _e=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(_e);for(var Me=0;Me1?this.counts[Me]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Me]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Me*4,Me*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Me]:this.opacity,baseline:this.baselineOffset[Me]!=null?this.baselineOffset[Me]:this.baselineOffset[0],align:this.align?this.alignOffset[Me]!=null?this.alignOffset[Me]:this.alignOffset[0]:0,atlas:this.fontAtlas[Me]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Me*2,Me*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};xc.prototype.destroy=function(){};xc.prototype.kerning=!0;xc.prototype.position={constant:new Float32Array(2)};xc.prototype.translate=null;xc.prototype.scale=null;xc.prototype.font=null;xc.prototype.text="";xc.prototype.positionOffset=[0,0];xc.prototype.opacity=1;xc.prototype.color=new Uint8Array([0,0,0,255]);xc.prototype.alignOffset=[0,0];xc.maxAtlasSize=1024;xc.atlasCanvas=document.createElement("canvas");xc.atlasContext=xc.atlasCanvas.getContext("2d",{alpha:!1});xc.baseFontSize=64;xc.fonts={};function iUt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}hBe.exports=xc});var vBe=ye((oK,sK)=>{(function(e,t){typeof oK=="object"&&typeof sK!="undefined"?sK.exports=t():e.createREGL=t()})(oK,function(){"use strict";var e=function(Ee,xt){for(var zt=Object.keys(xt),Ir=0;Ir1&&xt===zt&&(xt==='"'||xt==="'"))return['"'+o(Ee.substr(1,Ee.length-2))+'"'];var Ir=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Ee);if(Ir)return s(Ee.substr(0,Ir.index)).concat(s(Ir[1])).concat(s(Ee.substr(Ir.index+Ir[0].length)));var Hr=Ee.split(".");if(Hr.length===1)return['"'+o(Ee)+'"'];for(var Br=[],Vr=0;Vr65535)<<4,Ee>>>=xt,zt=(Ee>255)<<3,Ee>>>=zt,xt|=zt,zt=(Ee>15)<<2,Ee>>>=zt,xt|=zt,zt=(Ee>3)<<1,Ee>>>=zt,xt|=zt,xt|Ee>>1}function N(){var Ee=M(8,function(){return[]});function xt(Br){var Vr=Z(Br),mi=Ee[H(Vr)>>2];return mi.length>0?mi.pop():new ArrayBuffer(Vr)}function zt(Br){Ee[H(Br.byteLength)>>2].push(Br)}function Ir(Br,Vr){var mi=null;switch(Br){case g:mi=new Int8Array(xt(Vr),0,Vr);break;case P:mi=new Uint8Array(xt(Vr),0,Vr);break;case T:mi=new Int16Array(xt(2*Vr),0,Vr);break;case z:mi=new Uint16Array(xt(2*Vr),0,Vr);break;case O:mi=new Int32Array(xt(4*Vr),0,Vr);break;case V:mi=new Uint32Array(xt(4*Vr),0,Vr);break;case G:mi=new Float32Array(xt(4*Vr),0,Vr);break;default:return null}return mi.length!==Vr?mi.subarray(0,Vr):mi}function Hr(Br){zt(Br.buffer)}return{alloc:xt,free:zt,allocType:Ir,freeType:Hr}}var j=N();j.zero=N();var re=3408,oe=3410,_e=3411,Me=3412,ke=3413,me=3414,ie=3415,Se=33901,Le=33902,Ae=3379,De=3386,Pe=34921,ge=36347,Fe=36348,ce=35661,Ze=35660,ct=34930,pt=36349,Wt=34076,st=34024,lt=7936,Gt=7937,Nt=7938,$t=35724,sr=34047,wr=36063,ur=34852,Qe=3553,Et=34067,er=34069,Ut=33984,Ft=6408,bt=5126,yt=5121,Yt=36160,lr=36053,Tr=36064,Rr=16384,ei=function(Ee,xt){var zt=1;xt.ext_texture_filter_anisotropic&&(zt=Ee.getParameter(sr));var Ir=1,Hr=1;xt.webgl_draw_buffers&&(Ir=Ee.getParameter(ur),Hr=Ee.getParameter(wr));var Br=!!xt.oes_texture_float;if(Br){var Vr=Ee.createTexture();Ee.bindTexture(Qe,Vr),Ee.texImage2D(Qe,0,Ft,1,1,0,Ft,bt,null);var mi=Ee.createFramebuffer();if(Ee.bindFramebuffer(Yt,mi),Ee.framebufferTexture2D(Yt,Tr,Qe,Vr,0),Ee.bindTexture(Qe,null),Ee.checkFramebufferStatus(Yt)!==lr)Br=!1;else{Ee.viewport(0,0,1,1),Ee.clearColor(1,0,0,1),Ee.clear(Rr);var Ni=j.allocType(bt,4);Ee.readPixels(0,0,1,1,Ft,bt,Ni),Ee.getError()?Br=!1:(Ee.deleteFramebuffer(mi),Ee.deleteTexture(Vr),Br=Ni[0]===1),j.freeType(Ni)}}var Oi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Mi=!0;if(!Oi){var Hn=Ee.createTexture(),Qi=j.allocType(yt,36);Ee.activeTexture(Ut),Ee.bindTexture(Et,Hn),Ee.texImage2D(er,0,Ft,3,3,0,Ft,yt,Qi),j.freeType(Qi),Ee.bindTexture(Et,null),Ee.deleteTexture(Hn),Mi=!Ee.getError()}return{colorBits:[Ee.getParameter(oe),Ee.getParameter(_e),Ee.getParameter(Me),Ee.getParameter(ke)],depthBits:Ee.getParameter(me),stencilBits:Ee.getParameter(ie),subpixelBits:Ee.getParameter(re),extensions:Object.keys(xt).filter(function(ji){return!!xt[ji]}),maxAnisotropic:zt,maxDrawbuffers:Ir,maxColorAttachments:Hr,pointSizeDims:Ee.getParameter(Se),lineWidthDims:Ee.getParameter(Le),maxViewportDims:Ee.getParameter(De),maxCombinedTextureUnits:Ee.getParameter(ce),maxCubeMapSize:Ee.getParameter(Wt),maxRenderbufferSize:Ee.getParameter(st),maxTextureUnits:Ee.getParameter(ct),maxTextureSize:Ee.getParameter(Ae),maxAttributes:Ee.getParameter(Pe),maxVertexUniforms:Ee.getParameter(ge),maxVertexTextureUnits:Ee.getParameter(Ze),maxVaryingVectors:Ee.getParameter(Fe),maxFragmentUniforms:Ee.getParameter(pt),glsl:Ee.getParameter($t),renderer:Ee.getParameter(Gt),vendor:Ee.getParameter(lt),version:Ee.getParameter(Nt),readFloat:Br,npotTextureCube:Mi}},Wr=function(Ee){return Ee instanceof Uint8Array||Ee instanceof Uint16Array||Ee instanceof Uint32Array||Ee instanceof Int8Array||Ee instanceof Int16Array||Ee instanceof Int32Array||Ee instanceof Float32Array||Ee instanceof Float64Array||Ee instanceof Uint8ClampedArray};function Ur(Ee){return!!Ee&&typeof Ee=="object"&&Array.isArray(Ee.shape)&&Array.isArray(Ee.stride)&&typeof Ee.offset=="number"&&Ee.shape.length===Ee.stride.length&&(Array.isArray(Ee.data)||Wr(Ee.data))}var dt=function(Ee){return Object.keys(Ee).map(function(xt){return Ee[xt]})},Ge={shape:xe,flatten:Ie};function Je(Ee,xt,zt){for(var Ir=0;Ir0){var qn;if(Array.isArray(Yr[0])){Xi=kn(Yr);for(var vi=1,li=1;li0){if(typeof vi[0]=="number"){var Ui=j.allocType(ci.dtype,vi.length);Er(Ui,vi),Xi(Ui,mn),j.freeType(Ui)}else if(Array.isArray(vi[0])||Wr(vi[0])){Ki=kn(vi);var Bi=Vn(vi,Ki,ci.dtype);Xi(Bi,mn),j.freeType(Bi)}}}else if(Ur(vi)){Ki=vi.shape;var vn=vi.stride,Un=0,na=0,Yi=0,Ln=0;Ki.length===1?(Un=Ki[0],na=1,Yi=vn[0],Ln=0):Ki.length===2&&(Un=Ki[0],na=Ki[1],Yi=vn[0],Ln=vn[1]);var ra=Array.isArray(vi.data)?ci.dtype:ar(vi.data),oa=j.allocType(ra,Un*na);Zr(oa,vi.data,Un,na,Yi,Ln,vi.offset),Xi(oa,mn),j.freeType(oa)}return nn}return xi||nn(Mr),nn._reglType="buffer",nn._buffer=ci,nn.subdata=qn,zt.profile&&(nn.stats=ci.stats),nn.destroy=function(){Qi(ci)},nn}function si(){dt(Br).forEach(function(Mr){Mr.buffer=Ee.createBuffer(),Ee.bindBuffer(Mr.type,Mr.buffer),Ee.bufferData(Mr.type,Mr.persistentData||Mr.byteLength,Mr.usage)})}return zt.profile&&(xt.getTotalBufferSize=function(){var Mr=0;return Object.keys(Br).forEach(function(Yr){Mr+=Br[Yr].stats.size}),Mr}),{create:ji,createStream:Ni,destroyStream:Oi,clear:function(){dt(Br).forEach(Qi),mi.forEach(Qi)},getBuffer:function(Mr){return Mr&&Mr._buffer instanceof Vr?Mr._buffer:null},restore:si,_initBuffer:Hn}}var $r=0,zi=0,Ji=1,en=1,cn=4,yn=4,Mn={points:$r,point:zi,lines:Ji,line:en,triangles:cn,triangle:yn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ba=0,la=1,ma=4,Wa=5120,Fa=5121,Wo=5122,da=5123,Wn=5124,Ga=5125,vo=34963,jn=35040,St=35044;function Cr(Ee,xt,zt,Ir){var Hr={},Br=0,Vr={uint8:Fa,uint16:da};xt.oes_element_index_uint&&(Vr.uint32=Ga);function mi(si){this.id=Br++,Hr[this.id]=this,this.buffer=si,this.primType=ma,this.vertCount=0,this.type=0}mi.prototype.bind=function(){this.buffer.bind()};var Ni=[];function Oi(si){var Mr=Ni.pop();return Mr||(Mr=new mi(zt.create(null,vo,!0,!1)._buffer)),Hn(Mr,si,jn,-1,-1,0,0),Mr}function Mi(si){Ni.push(si)}function Hn(si,Mr,Yr,xi,Ii,ci,nn){si.buffer.bind();var Xi;if(Mr){var qn=nn;!nn&&(!Wr(Mr)||Ur(Mr)&&!Wr(Mr.data))&&(qn=xt.oes_element_index_uint?Ga:da),zt._initBuffer(si.buffer,Mr,Yr,qn,3)}else Ee.bufferData(vo,ci,Yr),si.buffer.dtype=Xi||Fa,si.buffer.usage=Yr,si.buffer.dimension=3,si.buffer.byteLength=ci;if(Xi=nn,!nn){switch(si.buffer.dtype){case Fa:case Wa:Xi=Fa;break;case da:case Wo:Xi=da;break;case Ga:case Wn:Xi=Ga;break;default:}si.buffer.dtype=Xi}si.type=Xi;var vi=Ii;vi<0&&(vi=si.buffer.byteLength,Xi===da?vi>>=1:Xi===Ga&&(vi>>=2)),si.vertCount=vi;var li=xi;if(xi<0){li=ma;var mn=si.buffer.dimension;mn===1&&(li=Ba),mn===2&&(li=la),mn===3&&(li=ma)}si.primType=li}function Qi(si){Ir.elementsCount--,delete Hr[si.id],si.buffer.destroy(),si.buffer=null}function ji(si,Mr){var Yr=zt.create(null,vo,!0),xi=new mi(Yr._buffer);Ir.elementsCount++;function Ii(ci){if(!ci)Yr(),xi.primType=ma,xi.vertCount=0,xi.type=Fa;else if(typeof ci=="number")Yr(ci),xi.primType=ma,xi.vertCount=ci|0,xi.type=Fa;else{var nn=null,Xi=St,qn=-1,vi=-1,li=0,mn=0;Array.isArray(ci)||Wr(ci)||Ur(ci)?nn=ci:("data"in ci&&(nn=ci.data),"usage"in ci&&(Xi=pn[ci.usage]),"primitive"in ci&&(qn=Mn[ci.primitive]),"count"in ci&&(vi=ci.count|0),"type"in ci&&(mn=Vr[ci.type]),"length"in ci?li=ci.length|0:(li=vi,mn===da||mn===Wo?li*=2:(mn===Ga||mn===Wn)&&(li*=4))),Hn(xi,nn,Xi,qn,vi,li,mn)}return Ii}return Ii(si),Ii._reglType="elements",Ii._elements=xi,Ii.subdata=function(ci,nn){return Yr.subdata(ci,nn),Ii},Ii.destroy=function(){Qi(xi)},Ii}return{create:ji,createStream:Oi,destroyStream:Mi,getElements:function(si){return typeof si=="function"&&si._elements instanceof mi?si._elements:null},clear:function(){dt(Hr).forEach(Qi)}}}var Qr=new Float32Array(1),pi=new Uint32Array(Qr.buffer),fn=5123;function Sn(Ee){for(var xt=j.allocType(fn,Ee.length),zt=0;zt>>31<<15,Br=(Ir<<1>>>24)-127,Vr=Ir>>13&1023;if(Br<-24)xt[zt]=Hr;else if(Br<-14){var mi=-14-Br;xt[zt]=Hr+(Vr+1024>>mi)}else Br>15?xt[zt]=Hr+31744:xt[zt]=Hr+(Br+15<<10)+Vr}return xt}function En(Ee){return Array.isArray(Ee)||Wr(Ee)}var ki=34467,_n=3553,ya=34067,Jn=34069,Ma=6408,_o=6406,No=6407,po=6409,Lo=6410,Co=32854,Fs=32855,zs=36194,ul=32819,cl=32820,zl=33635,cs=34042,nl=6402,Ss=34041,fl=35904,Js=35906,Os=36193,Io=33776,us=33777,Zl=33778,Su=33779,nc=35986,ws=35987,Fn=34798,_a=35840,Vu=35841,Ol=35842,xo=35843,Yl=36196,Us=5121,Hl=5123,ac=5125,aa=5126,Oo=10242,qo=10243,ql=10497,Pc=33071,Do=33648,rf=10240,Uf=10241,ml=9728,Zc=9729,Kl=9984,qs=9985,yu=9986,oc=9987,Cf=33170,sc=4352,Nh=4353,kf=4354,fs=34046,nf=3317,Vf=37440,Jl=37441,hl=37443,lc=37444,Fu=33984,Cs=[Kl,yu,qs,oc],js=[0,po,Lo,No,Ma],Go={};Go[po]=Go[_o]=Go[nl]=1,Go[Ss]=Go[Lo]=2,Go[No]=Go[fl]=3,Go[Ma]=Go[Js]=4;function gs(Ee){return"[object "+Ee+"]"}var uc=gs("HTMLCanvasElement"),bl=gs("OffscreenCanvas"),Gu=gs("CanvasRenderingContext2D"),Bs=gs("ImageBitmap"),ad=gs("HTMLImageElement"),Po=gs("HTMLVideoElement"),od=Object.keys(Ce).concat([uc,bl,Gu,Bs,ad,Po]),Yo=[];Yo[Us]=1,Yo[aa]=4,Yo[Os]=2,Yo[Hl]=2,Yo[ac]=4;var Pa=[];Pa[Co]=2,Pa[Fs]=2,Pa[zs]=2,Pa[Ss]=4,Pa[Io]=.5,Pa[us]=.5,Pa[Zl]=1,Pa[Su]=1,Pa[nc]=.5,Pa[ws]=1,Pa[Fn]=1,Pa[_a]=.5,Pa[Vu]=.25,Pa[Ol]=.5,Pa[xo]=.25,Pa[Yl]=.5;function af(Ee){return Array.isArray(Ee)&&(Ee.length===0||typeof Ee[0]=="number")}function Hu(Ee){if(!Array.isArray(Ee))return!1;var xt=Ee.length;return!(xt===0||!En(Ee[0]))}function wl(Ee){return Object.prototype.toString.call(Ee)}function Gf(Ee){return wl(Ee)===uc}function Ic(Ee){return wl(Ee)===bl}function mf(Ee){return wl(Ee)===Gu}function Bl(Ee){return wl(Ee)===Bs}function xh(Ee){return wl(Ee)===ad}function Qf(Ee){return wl(Ee)===Po}function yf(Ee){if(!Ee)return!1;var xt=wl(Ee);return od.indexOf(xt)>=0?!0:af(Ee)||Hu(Ee)||Ur(Ee)}function Yc(Ee){return Ce[Object.prototype.toString.call(Ee)]|0}function eh(Ee,xt){var zt=xt.length;switch(Ee.type){case Us:case Hl:case ac:case aa:var Ir=j.allocType(Ee.type,zt);Ir.set(xt),Ee.data=Ir;break;case Os:Ee.data=Sn(xt);break;default:}}function th(Ee,xt){return j.allocType(Ee.type===Os?aa:Ee.type,xt)}function ju(Ee,xt){Ee.type===Os?(Ee.data=Sn(xt),j.freeType(xt)):Ee.data=xt}function Hf(Ee,xt,zt,Ir,Hr,Br){for(var Vr=Ee.width,mi=Ee.height,Ni=Ee.channels,Oi=Vr*mi*Ni,Mi=th(Ee,Oi),Hn=0,Qi=0;Qi=1;)mi+=Vr*Ni*Ni,Ni/=2;return mi}else return Vr*zt*Ir}function of(Ee,xt,zt,Ir,Hr,Br,Vr){var mi={"don't care":sc,"dont care":sc,nice:kf,fast:Nh},Ni={repeat:ql,clamp:Pc,mirror:Do},Oi={nearest:ml,linear:Zc},Mi=e({mipmap:oc,"nearest mipmap nearest":Kl,"linear mipmap nearest":qs,"nearest mipmap linear":yu,"linear mipmap linear":oc},Oi),Hn={none:0,browser:lc},Qi={uint8:Us,rgba4:ul,rgb565:zl,"rgb5 a1":cl},ji={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:Co,"rgb5 a1":Fs,rgb565:zs},si={};xt.ext_srgb&&(ji.srgb=fl,ji.srgba=Js),xt.oes_texture_float&&(Qi.float32=Qi.float=aa),xt.oes_texture_half_float&&(Qi.float16=Qi["half float"]=Os),xt.webgl_depth_texture&&(e(ji,{depth:nl,"depth stencil":Ss}),e(Qi,{uint16:Hl,uint32:ac,"depth stencil":cs})),xt.webgl_compressed_texture_s3tc&&e(si,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":us,"rgba s3tc dxt3":Zl,"rgba s3tc dxt5":Su}),xt.webgl_compressed_texture_atc&&e(si,{"rgb atc":nc,"rgba atc explicit alpha":ws,"rgba atc interpolated alpha":Fn}),xt.webgl_compressed_texture_pvrtc&&e(si,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":Ol,"rgba pvrtc 2bppv1":xo}),xt.webgl_compressed_texture_etc1&&(si["rgb etc1"]=Yl);var Mr=Array.prototype.slice.call(Ee.getParameter(ki));Object.keys(si).forEach(function(ne){var we=si[ne];Mr.indexOf(we)>=0&&(ji[ne]=we)});var Yr=Object.keys(ji);zt.textureFormats=Yr;var xi=[];Object.keys(ji).forEach(function(ne){var we=ji[ne];xi[we]=ne});var Ii=[];Object.keys(Qi).forEach(function(ne){var we=Qi[ne];Ii[we]=ne});var ci=[];Object.keys(Oi).forEach(function(ne){var we=Oi[ne];ci[we]=ne});var nn=[];Object.keys(Mi).forEach(function(ne){var we=Mi[ne];nn[we]=ne});var Xi=[];Object.keys(Ni).forEach(function(ne){var we=Ni[ne];Xi[we]=ne});var qn=Yr.reduce(function(ne,we){var Ue=ji[we];return Ue===po||Ue===_o||Ue===po||Ue===Lo||Ue===nl||Ue===Ss||xt.ext_srgb&&(Ue===fl||Ue===Js)?ne[Ue]=Ue:Ue===Fs||we.indexOf("rgba")>=0?ne[Ue]=Ma:ne[Ue]=No,ne},{});function vi(){this.internalformat=Ma,this.format=Ma,this.type=Us,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=lc,this.width=0,this.height=0,this.channels=0}function li(ne,we){ne.internalformat=we.internalformat,ne.format=we.format,ne.type=we.type,ne.compressed=we.compressed,ne.premultiplyAlpha=we.premultiplyAlpha,ne.flipY=we.flipY,ne.unpackAlignment=we.unpackAlignment,ne.colorSpace=we.colorSpace,ne.width=we.width,ne.height=we.height,ne.channels=we.channels}function mn(ne,we){if(!(typeof we!="object"||!we)){if("premultiplyAlpha"in we&&(ne.premultiplyAlpha=we.premultiplyAlpha),"flipY"in we&&(ne.flipY=we.flipY),"alignment"in we&&(ne.unpackAlignment=we.alignment),"colorSpace"in we&&(ne.colorSpace=Hn[we.colorSpace]),"type"in we){var Ue=we.type;ne.type=Qi[Ue]}var ft=ne.width,Zt=ne.height,hr=ne.channels,qt=!1;"shape"in we?(ft=we.shape[0],Zt=we.shape[1],we.shape.length===3&&(hr=we.shape[2],qt=!0)):("radius"in we&&(ft=Zt=we.radius),"width"in we&&(ft=we.width),"height"in we&&(Zt=we.height),"channels"in we&&(hr=we.channels,qt=!0)),ne.width=ft|0,ne.height=Zt|0,ne.channels=hr|0;var Ve=!1;if("format"in we){var et=we.format,at=ne.internalformat=ji[et];ne.format=qn[at],et in Qi&&("type"in we||(ne.type=Qi[et])),et in si&&(ne.compressed=!0),Ve=!0}!qt&&Ve?ne.channels=Go[ne.format]:qt&&!Ve&&ne.channels!==js[ne.format]&&(ne.format=ne.internalformat=js[ne.channels])}}function Ki(ne){Ee.pixelStorei(Vf,ne.flipY),Ee.pixelStorei(Jl,ne.premultiplyAlpha),Ee.pixelStorei(hl,ne.colorSpace),Ee.pixelStorei(nf,ne.unpackAlignment)}function Ui(){vi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Bi(ne,we){var Ue=null;if(yf(we)?Ue=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),yf(we.data)&&(Ue=we.data)),we.copy){var ft=Hr.viewportWidth,Zt=Hr.viewportHeight;ne.width=ne.width||ft-ne.xOffset,ne.height=ne.height||Zt-ne.yOffset,ne.needsCopy=!0}else if(!Ue)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(Wr(Ue))ne.channels=ne.channels||4,ne.data=Ue,!("type"in we)&&ne.type===Us&&(ne.type=Yc(Ue));else if(af(Ue))ne.channels=ne.channels||4,eh(ne,Ue),ne.alignment=1,ne.needsFree=!0;else if(Ur(Ue)){var hr=Ue.data;!Array.isArray(hr)&&ne.type===Us&&(ne.type=Yc(hr));var qt=Ue.shape,Ve=Ue.stride,et,at,kt,Ot,It,Bt;qt.length===3?(kt=qt[2],Bt=Ve[2]):(kt=1,Bt=1),et=qt[0],at=qt[1],Ot=Ve[0],It=Ve[1],ne.alignment=1,ne.width=et,ne.height=at,ne.channels=kt,ne.format=ne.internalformat=js[kt],ne.needsFree=!0,Hf(ne,hr,Ot,It,Bt,Ue.offset)}else if(Gf(Ue)||Ic(Ue)||mf(Ue))Gf(Ue)||Ic(Ue)?ne.element=Ue:ne.element=Ue.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(Bl(Ue))ne.element=Ue,ne.width=Ue.width,ne.height=Ue.height,ne.channels=4;else if(xh(Ue))ne.element=Ue,ne.width=Ue.naturalWidth,ne.height=Ue.naturalHeight,ne.channels=4;else if(Qf(Ue))ne.element=Ue,ne.width=Ue.videoWidth,ne.height=Ue.videoHeight,ne.channels=4;else if(Hu(Ue)){var Rt=ne.width||Ue[0].length,mt=ne.height||Ue.length,Pt=ne.channels;En(Ue[0][0])?Pt=Pt||Ue[0][0].length:Pt=Pt||1;for(var ht=Ge.shape(Ue),cr=1,br=0;br>=Zt,Ue.height>>=Zt,Bi(Ue,ft[Zt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ft=we.mag;ne.magFilter=Oi[ft]}var Zt=ne.wrapS,hr=ne.wrapT;if("wrap"in we){var qt=we.wrap;typeof qt=="string"?Zt=hr=Ni[qt]:Array.isArray(qt)&&(Zt=Ni[qt[0]],hr=Ni[qt[1]])}else{if("wrapS"in we){var Ve=we.wrapS;Zt=Ni[Ve]}if("wrapT"in we){var et=we.wrapT;hr=Ni[et]}}if(ne.wrapS=Zt,ne.wrapT=hr,"anisotropic"in we){var at=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var kt=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=mi[we.mipmap],ne.genMipmaps=!0,kt=!0;break;case"boolean":kt=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,kt=!0;break;default:}kt&&!("min"in we)&&(ne.minFilter=Kl)}}function ol(ne,we){Ee.texParameteri(we,Uf,ne.minFilter),Ee.texParameteri(we,rf,ne.magFilter),Ee.texParameteri(we,Oo,ne.wrapS),Ee.texParameteri(we,qo,ne.wrapT),xt.ext_texture_filter_anisotropic&&Ee.texParameteri(we,fs,ne.anisotropic),ne.genMipmaps&&(Ee.hint(Cf,ne.mipmapHint),Ee.generateMipmap(we))}var Vl=0,ls={},Gs=zt.maxTextureUnits,Ks=Array(Gs).map(function(){return null});function wa(ne){vi.call(this),this.mipmask=0,this.internalformat=Ma,this.id=Vl++,this.refCount=1,this.target=ne,this.texture=Ee.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new zo,Vr.profile&&(this.stats={size:0})}function sl(ne){Ee.activeTexture(Fu),Ee.bindTexture(ne.target,ne.texture)}function io(){var ne=Ks[0];ne?Ee.bindTexture(ne.target,ne.texture):Ee.bindTexture(_n,null)}function Y(ne){var we=ne.texture,Ue=ne.unit,ft=ne.target;Ue>=0&&(Ee.activeTexture(Fu+Ue),Ee.bindTexture(ft,null),Ks[Ue]=null),Ee.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ls[ne.id],Br.textureCount--}e(wa.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Ue=0;Ue0)continue;ft.unit=-1}Ks[Ue]=ne,we=Ue;break}we>=Gs,Vr.profile&&Br.maxTextureUnits>It)-kt,Bt.height=Bt.height||(Ue.height>>It)-Ot,sl(Ue),Un(Bt,_n,kt,Ot,It),io(),Ln(Bt),ft}function hr(qt,Ve){var et=qt|0,at=Ve|0||et;if(et===Ue.width&&at===Ue.height)return ft;ft.width=Ue.width=et,ft.height=Ue.height=at,sl(Ue);for(var kt=0;Ue.mipmask>>kt;++kt){var Ot=et>>kt,It=at>>kt;if(!Ot||!It)break;Ee.texImage2D(_n,kt,Ue.format,Ot,It,0,Ue.format,Ue.type,null)}return io(),Vr.profile&&(Ue.stats.size=cc(Ue.internalformat,Ue.type,et,at,!1,!1)),ft}return ft(ne,we),ft.subimage=Zt,ft.resize=hr,ft._reglType="texture2d",ft._texture=Ue,Vr.profile&&(ft.stats=Ue.stats),ft.destroy=function(){Ue.decRef()},ft}function J(ne,we,Ue,ft,Zt,hr){var qt=new wa(ya);ls[qt.id]=qt,Br.cubeCount++;var Ve=new Array(6);function et(Ot,It,Bt,Rt,mt,Pt){var ht,cr=qt.texInfo;for(zo.call(cr),ht=0;ht<6;++ht)Ve[ht]=Va();if(typeof Ot=="number"||!Ot){var br=Ot|0||1;for(ht=0;ht<6;++ht)oa(Ve[ht],br,br)}else if(typeof Ot=="object")if(It)ba(Ve[0],Ot),ba(Ve[1],It),ba(Ve[2],Bt),ba(Ve[3],Rt),ba(Ve[4],mt),ba(Ve[5],Pt);else if(el(cr,Ot),mn(qt,Ot),"faces"in Ot){var Nr=Ot.faces;for(ht=0;ht<6;++ht)li(Ve[ht],qt),ba(Ve[ht],Nr[ht])}else for(ht=0;ht<6;++ht)ba(Ve[ht],Ot);for(li(qt,Ve[0]),cr.genMipmaps?qt.mipmask=(Ve[0].width<<1)-1:qt.mipmask=Ve[0].mipmask,qt.internalformat=Ve[0].internalformat,et.width=Ve[0].width,et.height=Ve[0].height,sl(qt),ht=0;ht<6;++ht)ns(Ve[ht],Jn+ht);for(ol(cr,ya),io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,cr.genMipmaps,!0)),et.format=xi[qt.internalformat],et.type=Ii[qt.type],et.mag=ci[cr.magFilter],et.min=nn[cr.minFilter],et.wrapS=Xi[cr.wrapS],et.wrapT=Xi[cr.wrapT],ht=0;ht<6;++ht)El(Ve[ht]);return et}function at(Ot,It,Bt,Rt,mt){var Pt=Bt|0,ht=Rt|0,cr=mt|0,br=Yi();return li(br,qt),br.width=0,br.height=0,Bi(br,It),br.width=br.width||(qt.width>>cr)-Pt,br.height=br.height||(qt.height>>cr)-ht,sl(qt),Un(br,Jn+Ot,Pt,ht,cr),io(),Ln(br),et}function kt(Ot){var It=Ot|0;if(It!==qt.width){et.width=qt.width=It,et.height=qt.height=It,sl(qt);for(var Bt=0;Bt<6;++Bt)for(var Rt=0;qt.mipmask>>Rt;++Rt)Ee.texImage2D(Jn+Bt,Rt,qt.format,It>>Rt,It>>Rt,0,qt.format,qt.type,null);return io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,!1,!0)),et}}return et(ne,we,Ue,ft,Zt,hr),et.subimage=at,et.resize=kt,et._reglType="textureCube",et._texture=qt,Vr.profile&&(et.stats=qt.stats),et.destroy=function(){qt.decRef()},et}function q(){for(var ne=0;ne>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);else for(var Zt=0;Zt<6;++Zt)Ee.texImage2D(Jn+Zt,ft,Ue.internalformat,Ue.width>>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);ol(Ue.texInfo,Ue.target)})}function de(){for(var ne=0;ne=0?El=!0:Ni.indexOf(zo)>=0&&(El=!1))),("depthTexture"in wa||"depthStencilTexture"in wa)&&(Ks=!!(wa.depthTexture||wa.depthStencilTexture)),"depth"in wa&&(typeof wa.depth=="boolean"?ns=wa.depth:(Vl=wa.depth,Ys=!1)),"stencil"in wa&&(typeof wa.stencil=="boolean"?Ys=wa.stencil:(ls=wa.stencil,ns=!1)),"depthStencil"in wa&&(typeof wa.depthStencil=="boolean"?ns=Ys=wa.depthStencil:(Gs=wa.depthStencil,ns=!1,Ys=!1))}var io=null,Y=null,D=null,J=null;if(Array.isArray(Va))io=Va.map(si);else if(Va)io=[si(Va)];else for(io=new Array(ol),ra=0;ra0&&(Ln.depth=Bi[0].depth,Ln.stencil=Bi[0].stencil,Ln.depthStencil=Bi[0].depthStencil),Bi[Yi]?Bi[Yi](Ln):Bi[Yi]=li(Ln)}return e(vn,{width:ra,height:ra,color:zo})}function Un(na){var Yi,Ln=na|0;if(Ln===vn.width)return vn;var ra=vn.color;for(Yi=0;Yi=ra.byteLength?oa.subdata(ra):(oa.destroy(),li.buffers[na]=null)),li.buffers[na]||(oa=li.buffers[na]=Hr.create(Yi,Pf,!1,!0)),Ln.buffer=Hr.getBuffer(oa),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1,vn[na]=1}else Hr.getBuffer(Yi)?(Ln.buffer=Hr.getBuffer(Yi),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1):Hr.getBuffer(Yi.buffer)?(Ln.buffer=Hr.getBuffer(Yi.buffer),Ln.size=(+Yi.size||Ln.buffer.dimension)|0,Ln.normalized=!!Yi.normalized||!1,"type"in Yi?Ln.type=Hi[Yi.type]:Ln.type=Ln.buffer.dtype,Ln.offset=(Yi.offset||0)|0,Ln.stride=(Yi.stride||0)|0,Ln.divisor=(Yi.divisor||0)|0,Ln.state=1):"x"in Yi&&(Ln.x=+Yi.x||0,Ln.y=+Yi.y||0,Ln.z=+Yi.z||0,Ln.w=+Yi.w||0,Ln.state=2)}for(var ba=0;ba1)for(var Ki=0;KiMr&&(Mr=Yr.stats.uniformsCount)}),Mr},zt.getMaxAttributesCount=function(){var Mr=0;return Mi.forEach(function(Yr){Yr.stats.attributesCount>Mr&&(Mr=Yr.stats.attributesCount)}),Mr});function si(){Hr={},Br={};for(var Mr=0;Mr16&&(zt=Zi(zt,Ee.length*8));for(var Ir=Array(16),Hr=Array(16),Br=0;Br<16;Br++)Ir[Br]=zt[Br]^909522486,Hr[Br]=zt[Br]^1549556828;var Vr=Zi(Ir.concat(Bc(xt)),512+xt.length*8);return At(Zi(Hr.concat(Vr),768))}function vu(Ee){for(var xt=ah?"0123456789ABCDEF":"0123456789abcdef",zt="",Ir,Hr=0;Hr>>4&15)+xt.charAt(Ir&15);return zt}function qc(Ee){for(var xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt="",Ir=Ee.length,Hr=0;HrEe.length*8?zt+=Zu:zt+=xt.charAt(Br>>>6*(3-Vr)&63);return zt}function cf(Ee,xt){var zt=xt.length,Ir=Array(),Hr,Br,Vr,mi,Ni=Array(Math.ceil(Ee.length/2));for(Hr=0;Hr0;){for(mi=Array(),Vr=0,Hr=0;Hr0||Br>0)&&(mi[mi.length]=Br);Ir[Ir.length]=Vr,Ni=mi}var Oi="";for(Hr=Ir.length-1;Hr>=0;Hr--)Oi+=xt.charAt(Ir[Hr]);var Mi=Math.ceil(Ee.length*8/(Math.log(xt.length)/Math.log(2)));for(Hr=Oi.length;Hr>>6&31,128|Ir&63):Ir<=65535?xt+=String.fromCharCode(224|Ir>>>12&15,128|Ir>>>6&63,128|Ir&63):Ir<=2097151&&(xt+=String.fromCharCode(240|Ir>>>18&7,128|Ir>>>12&63,128|Ir>>>6&63,128|Ir&63));return xt}function Bc(Ee){for(var xt=Array(Ee.length>>2),zt=0;zt>5]|=(Ee.charCodeAt(zt/8)&255)<<24-zt%32;return xt}function At(Ee){for(var xt="",zt=0;zt>5]>>>24-zt%32&255);return xt}function Xt(Ee,xt){return Ee>>>xt|Ee<<32-xt}function kr(Ee,xt){return Ee>>>xt}function Ar(Ee,xt,zt){return Ee&xt^~Ee&zt}function Kr(Ee,xt,zt){return Ee&xt^Ee&zt^xt&zt}function Ei(Ee){return Xt(Ee,2)^Xt(Ee,13)^Xt(Ee,22)}function Wi(Ee){return Xt(Ee,6)^Xt(Ee,11)^Xt(Ee,25)}function hn(Ee){return Xt(Ee,7)^Xt(Ee,18)^kr(Ee,3)}function Tn(Ee){return Xt(Ee,17)^Xt(Ee,19)^kr(Ee,10)}var Bn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Zi(Ee,xt){var zt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Ir=new Array(64),Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr;for(Ee[xt>>5]|=128<<24-xt%32,Ee[(xt+64>>9<<4)+15]=xt,Qi=0;Qi>16)+(xt>>16)+(zt>>16);return Ir<<16|zt&65535}function an(Ee){return Array.prototype.slice.call(Ee)}function Di(Ee){return an(Ee).join("")}function $n(Ee){var xt=Ee&&Ee.cache,zt=0,Ir=[],Hr=[],Br=[];function Vr(si,Mr){var Yr=Mr&&Mr.stable;if(!Yr){for(var xi=0;xi0&&(si.push(Ii,"="),si.push.apply(si,an(arguments)),si.push(";")),Ii}return e(Mr,{def:xi,toString:function(){return Di([Yr.length>0?"var "+Yr.join(",")+";":"",Di(si)])}})}function Ni(){var si=mi(),Mr=mi(),Yr=si.toString,xi=Mr.toString;function Ii(ci,nn){Mr(ci,nn,"=",si.def(ci,nn),";")}return e(function(){si.apply(si,an(arguments))},{def:si.def,entry:si,exit:Mr,save:Ii,set:function(ci,nn,Xi){Ii(ci,nn),si(ci,nn,"=",Xi,";")},toString:function(){return Yr()+xi()}})}function Oi(){var si=Di(arguments),Mr=Ni(),Yr=Ni(),xi=Mr.toString,Ii=Yr.toString;return e(Mr,{then:function(){return Mr.apply(Mr,an(arguments)),this},else:function(){return Yr.apply(Yr,an(arguments)),this},toString:function(){var ci=Ii();return ci&&(ci="else{"+ci+"}"),Di(["if(",si,"){",xi(),"}",ci])}})}var Mi=mi(),Hn={};function Qi(si,Mr){var Yr=[];function xi(){var qn="a"+Yr.length;return Yr.push(qn),qn}Mr=Mr||0;for(var Ii=0;Ii":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ni={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},gi={cw:Te,ccw:Ne};function Pi(Ee){return Array.isArray(Ee)||Wr(Ee)||Ur(Ee)}function Ai(Ee){return Ee.sort(function(xt,zt){return xt===ee?-1:zt===ee?1:xt=1,Ir>=2,xt)}else if(zt===Xo){var Hr=Ee.data;return new ti(Hr.thisDep,Hr.contextDep,Hr.propDep,xt)}else{if(zt===Ms)return new ti(!1,!1,!1,xt);if(zt===os){for(var Br=!1,Vr=!1,mi=!1,Ni=0;Ni=1&&(Vr=!0),Mi>=2&&(mi=!0)}else Oi.type===Xo&&(Br=Br||Oi.data.thisDep,Vr=Vr||Oi.data.contextDep,mi=mi||Oi.data.propDep)}return new ti(Br,Vr,mi,xt)}else return new ti(zt===bo,zt===Ka,zt===zn,xt)}}var ia=new ti(!1,!1,!1,function(){});function Ea(Ee,xt,zt,Ir,Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr){var Yr=Oi.Record,xi={add:32774,subtract:32778,"reverse subtract":32779};zt.ext_blend_minmax&&(xi.min=He,xi.max=Ye);var Ii=zt.angle_instanced_arrays,ci=zt.webgl_draw_buffers,nn=zt.oes_vertex_array_object,Xi={dirty:!0,profile:Mr.profile},qn={},vi=[],li={},mn={};function Ki(Ve){return Ve.replace(".","_")}function Ui(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),qn[kt]=Xi[kt]=!!at,li[kt]=et}function Bi(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),Array.isArray(at)?(Xi[kt]=at.slice(),qn[kt]=at.slice()):Xi[kt]=qn[kt]=at,mn[kt]=et}function vn(Ve){return!!isNaN(Ve)}Ui(Ts,Li),Ui(Ho,ii),Bi(yl,"blendColor",[0,0,0,0]),Bi(Xs,"blendEquationSeparate",[yr,yr]),Bi(Ps,"blendFuncSeparate",[gr,jt,gr,jt]),Ui(va,sn,!0),Bi(no,"depthFunc",Gr),Bi(_s,"depthRange",[0,1]),Bi(is,"depthMask",!0),Bi($l,$l,[!0,!0,!0,!0]),Ui(ku,jr),Bi(Yu,"cullFace",se),Bi(Nc,Nc,Ne),Bi(pu,pu,1),Ui(Uc,Kn),Bi(xu,"polygonOffset",[0,0]),Ui(Ac,Aa),Ui(Ua,fa),Bi(oo,"sampleCoverage",[1,!1]),Ui(Vc,un),Bi(hc,"stencilMask",-1),Bi(Ku,"stencilFunc",[Ct,0,-1]),Bi(ue,"stencilOpSeparate",[X,nt,nt,nt]),Bi(w,"stencilOpSeparate",[se,nt,nt,nt]),Ui(B,In),Bi(Q,"scissor",[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]),Bi(ee,ee,[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]);var Un={gl:Ee,context:Qi,strings:xt,next:qn,current:Xi,draw:Hn,elements:Br,buffer:Hr,shader:Mi,attributes:Oi.state,vao:Oi,uniforms:Ni,framebuffer:mi,extensions:zt,timer:ji,isBufferArgs:Pi},na={primTypes:Mn,compareFuncs:Xr,blendFuncs:bi,blendEquations:xi,stencilOps:ni,glTypes:Hi,orientationType:gi};ci&&(na.backBuffer=[se],na.drawBuffer=M(Ir.maxDrawbuffers,function(Ve){return Ve===0?[0]:M(Ve,function(et){return _i+et})}));var Yi=0;function Ln(){var Ve=$n({cache:si}),et=Ve.link,at=Ve.global;Ve.id=Yi++,Ve.batchId="0";var kt=et(Un),Ot=Ve.shared={props:"a0"};Object.keys(Un).forEach(function(Pt){Ot[Pt]=at.def(kt,".",Pt)});var It=Ve.next={},Bt=Ve.current={};Object.keys(mn).forEach(function(Pt){Array.isArray(Xi[Pt])&&(It[Pt]=at.def(Ot.next,".",Pt),Bt[Pt]=at.def(Ot.current,".",Pt))});var Rt=Ve.constants={};Object.keys(na).forEach(function(Pt){Rt[Pt]=at.def(JSON.stringify(na[Pt]))}),Ve.invoke=function(Pt,ht){switch(ht.type){case Yn:var cr=["this",Ot.context,Ot.props,Ve.batchId];return Pt.def(et(ht.data),".call(",cr.slice(0,Math.max(ht.data.length+1,4)),")");case zn:return Pt.def(Ot.props,ht.data);case Ka:return Pt.def(Ot.context,ht.data);case bo:return Pt.def("this",ht.data);case Xo:return ht.data.append(Ve,Pt),ht.data.ref;case Ms:return ht.data.toString();case os:return ht.data.map(function(br){return Ve.invoke(Pt,br)})}},Ve.attribCache={};var mt={};return Ve.scopeAttrib=function(Pt){var ht=xt.id(Pt);if(ht in mt)return mt[ht];var cr=Oi.scope[ht];cr||(cr=Oi.scope[ht]=new Yr);var br=mt[ht]=et(cr);return br},Ve}function ra(Ve){var et=Ve.static,at=Ve.dynamic,kt;if(le in et){var Ot=!!et[le];kt=Cn(function(Bt,Rt){return Ot}),kt.enable=Ot}else if(le in at){var It=at[le];kt=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}return kt}function oa(Ve,et){var at=Ve.static,kt=Ve.dynamic;if(qe in at){var Ot=at[qe];return Ot?(Ot=mi.getFramebuffer(Ot),Cn(function(Bt,Rt){var mt=Bt.link(Ot),Pt=Bt.shared;Rt.set(Pt.framebuffer,".next",mt);var ht=Pt.context;return Rt.set(ht,"."+Be,mt+".width"),Rt.set(ht,"."+tt,mt+".height"),mt})):Cn(function(Bt,Rt){var mt=Bt.shared;Rt.set(mt.framebuffer,".next","null");var Pt=mt.context;return Rt.set(Pt,"."+Be,Pt+"."+Ht),Rt.set(Pt,"."+tt,Pt+"."+rr),"null"})}else if(qe in kt){var It=kt[qe];return Nn(It,function(Bt,Rt){var mt=Bt.invoke(Rt,It),Pt=Bt.shared,ht=Pt.framebuffer,cr=Rt.def(ht,".getFramebuffer(",mt,")");Rt.set(ht,".next",cr);var br=Pt.context;return Rt.set(br,"."+Be,cr+"?"+cr+".width:"+br+"."+Ht),Rt.set(br,"."+tt,cr+"?"+cr+".height:"+br+"."+rr),cr})}else return null}function wa(Ve,et,at){var kt=Ve.static,Ot=Ve.dynamic;function It(mt){if(mt in kt){var Pt=kt[mt],ht=!0,cr=Pt.x|0,br=Pt.y|0,Nr,Ri;return"width"in Pt?Nr=Pt.width|0:ht=!1,"height"in Pt?Ri=Pt.height|0:ht=!1,new ti(!ht&&et&&et.thisDep,!ht&&et&&et.contextDep,!ht&&et&&et.propDep,function(gn,tn){var Ci=gn.shared.context,qi=Nr;"width"in Pt||(qi=tn.def(Ci,".",Be,"-",cr));var Vi=Ri;return"height"in Pt||(Vi=tn.def(Ci,".",tt,"-",br)),[cr,br,qi,Vi]})}else if(mt in Ot){var hi=Ot[mt],wi=Nn(hi,function(gn,tn){var Ci=gn.invoke(tn,hi),qi=gn.shared.context,Vi=tn.def(Ci,".x|0"),on=tn.def(Ci,".y|0"),On=tn.def('"width" in ',Ci,"?",Ci,".width|0:","(",qi,".",Be,"-",Vi,")"),Ja=tn.def('"height" in ',Ci,"?",Ci,".height|0:","(",qi,".",tt,"-",on,")");return[Vi,on,On,Ja]});return et&&(wi.thisDep=wi.thisDep||et.thisDep,wi.contextDep=wi.contextDep||et.contextDep,wi.propDep=wi.propDep||et.propDep),wi}else return et?new ti(et.thisDep,et.contextDep,et.propDep,function(gn,tn){var Ci=gn.shared.context;return[0,0,tn.def(Ci,".",Be),tn.def(Ci,".",tt)]}):null}var Bt=It(ee);if(Bt){var Rt=Bt;Bt=new ti(Bt.thisDep,Bt.contextDep,Bt.propDep,function(mt,Pt){var ht=Rt.append(mt,Pt),cr=mt.shared.context;return Pt.set(cr,"."+We,ht[2]),Pt.set(cr,"."+it,ht[3]),ht})}return{viewport:Bt,scissor_box:It(Q)}}function ns(Ve,et){var at=Ve.static,kt=typeof at[ot]=="string"&&typeof at[Xe]=="string";if(kt){if(Object.keys(et.dynamic).length>0)return null;var Ot=et.static,It=Object.keys(Ot);if(It.length>0&&typeof Ot[It[0]]=="number"){for(var Bt=[],Rt=0;Rt"+Vi+"?"+ht+".constant["+Vi+"]:0;"}).join(""),"}}else{","if(",Nr,"(",ht,".buffer)){",gn,"=",Ri,".createStream(",Sr,",",ht,".buffer);","}else{",gn,"=",Ri,".getBuffer(",ht,".buffer);","}",tn,'="type" in ',ht,"?",br.glTypes,"[",ht,".type]:",gn,".dtype;",hi.normalized,"=!!",ht,".normalized;");function Ci(qi){Pt(hi[qi],"=",ht,".",qi,"|0;")}return Ci("size"),Ci("offset"),Ci("stride"),Ci("divisor"),Pt("}}"),Pt.exit("if(",hi.isStream,"){",Ri,".destroyStream(",gn,");","}"),hi}Ot[It]=Nn(Bt,Rt)}),Ot}function ol(Ve){var et=Ve.static,at=Ve.dynamic,kt={};return Object.keys(et).forEach(function(Ot){var It=et[Ot];kt[Ot]=Cn(function(Bt,Rt){return typeof It=="number"||typeof It=="boolean"?""+It:Bt.link(It)})}),Object.keys(at).forEach(function(Ot){var It=at[Ot];kt[Ot]=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}),kt}function Vl(Ve,et,at,kt,Ot){var It=Ve.static,Bt=Ve.dynamic,Rt=ns(Ve,et),mt=oa(Ve,Ot),Pt=wa(Ve,mt,Ot),ht=Va(Ve,Ot),cr=El(Ve,Ot),br=Ys(Ve,Ot,Rt);function Nr(Ci){var qi=Pt[Ci];qi&&(cr[Ci]=qi)}Nr(ee),Nr(Ki(Q));var Ri=Object.keys(cr).length>0,hi={framebuffer:mt,draw:ht,shader:br,state:cr,dirty:Ri,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(hi.profile=ra(Ve,Ot),hi.uniforms=zo(at,Ot),hi.drawVAO=hi.scopeVAO=ht.vao,!hi.drawVAO&&br.program&&!Rt&&zt.angle_instanced_arrays&&ht.static.elements){var wi=!0,gn=br.program.attributes.map(function(Ci){var qi=et.static[Ci];return wi=wi&&!!qi,qi});if(wi&&gn.length>0){var tn=Oi.getVAO(Oi.createVAO({attributes:gn,elements:ht.static.elements}));hi.drawVAO=new ti(null,null,null,function(Ci,qi){return Ci.link(tn)}),hi.useVAO=!0}}return Rt?hi.useVAO=!0:hi.attributes=el(et,Ot),hi.context=ol(kt,Ot),hi}function ls(Ve,et,at){var kt=Ve.shared,Ot=kt.context,It=Ve.scope();Object.keys(at).forEach(function(Bt){et.save(Ot,"."+Bt);var Rt=at[Bt],mt=Rt.append(Ve,et);Array.isArray(mt)?It(Ot,".",Bt,"=[",mt.join(),"];"):It(Ot,".",Bt,"=",mt,";")}),et(It)}function Gs(Ve,et,at,kt){var Ot=Ve.shared,It=Ot.gl,Bt=Ot.framebuffer,Rt;ci&&(Rt=et.def(Ot.extensions,".webgl_draw_buffers"));var mt=Ve.constants,Pt=mt.drawBuffer,ht=mt.backBuffer,cr;at?cr=at.append(Ve,et):cr=et.def(Bt,".next"),kt||et("if(",cr,"!==",Bt,".cur){"),et("if(",cr,"){",It,".bindFramebuffer(",qr,",",cr,".framebuffer);"),ci&&et(Rt,".drawBuffersWEBGL(",Pt,"[",cr,".colorAttachments.length]);"),et("}else{",It,".bindFramebuffer(",qr,",null);"),ci&&et(Rt,".drawBuffersWEBGL(",ht,");"),et("}",Bt,".cur=",cr,";"),kt||et("}")}function Ks(Ve,et,at){var kt=Ve.shared,Ot=kt.gl,It=Ve.current,Bt=Ve.next,Rt=kt.current,mt=kt.next,Pt=Ve.cond(Rt,".dirty");vi.forEach(function(ht){var cr=Ki(ht);if(!(cr in at.state)){var br,Nr;if(cr in Bt){br=Bt[cr],Nr=It[cr];var Ri=M(Xi[cr].length,function(wi){return Pt.def(br,"[",wi,"]")});Pt(Ve.cond(Ri.map(function(wi,gn){return wi+"!=="+Nr+"["+gn+"]"}).join("||")).then(Ot,".",mn[cr],"(",Ri,");",Ri.map(function(wi,gn){return Nr+"["+gn+"]="+wi}).join(";"),";"))}else{br=Pt.def(mt,".",cr);var hi=Ve.cond(br,"!==",Rt,".",cr);Pt(hi),cr in li?hi(Ve.cond(br).then(Ot,".enable(",li[cr],");").else(Ot,".disable(",li[cr],");"),Rt,".",cr,"=",br,";"):hi(Ot,".",mn[cr],"(",br,");",Rt,".",cr,"=",br,";")}}}),Object.keys(at.state).length===0&&Pt(Rt,".dirty=false;"),et(Pt)}function Ta(Ve,et,at,kt){var Ot=Ve.shared,It=Ve.current,Bt=Ot.current,Rt=Ot.gl,mt;Ai(Object.keys(at)).forEach(function(Pt){var ht=at[Pt];if(!(kt&&!kt(ht))){var cr=ht.append(Ve,et);if(li[Pt]){var br=li[Pt];Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Ve.cond(mt).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",mt,";")):(et(Ve.cond(cr).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",cr,";"))}else if(En(cr)){var Nr=It[Pt];et(Rt,".",mn[Pt],"(",cr,");",cr.map(function(Ri,hi){return Nr+"["+hi+"]="+Ri}).join(";"),";")}else Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Rt,".",mn[Pt],"(",mt,");",Bt,".",Pt,"=",mt,";")):et(Rt,".",mn[Pt],"(",cr,");",Bt,".",Pt,"=",cr,";")}})}function sl(Ve,et){Ii&&(Ve.instancing=et.def(Ve.shared.extensions,".angle_instanced_arrays"))}function io(Ve,et,at,kt,Ot){var It=Ve.shared,Bt=Ve.stats,Rt=It.current,mt=It.timer,Pt=at.profile;function ht(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var cr,br;function Nr(Ci){cr=et.def(),Ci(cr,"=",ht(),";"),typeof Ot=="string"?Ci(Bt,".count+=",Ot,";"):Ci(Bt,".count++;"),ji&&(kt?(br=et.def(),Ci(br,"=",mt,".getNumPendingQueries();")):Ci(mt,".beginQuery(",Bt,");"))}function Ri(Ci){Ci(Bt,".cpuTime+=",ht(),"-",cr,";"),ji&&(kt?Ci(mt,".pushScopeStats(",br,",",mt,".getNumPendingQueries(),",Bt,");"):Ci(mt,".endQuery();"))}function hi(Ci){var qi=et.def(Rt,".profile");et(Rt,".profile=",Ci,";"),et.exit(Rt,".profile=",qi,";")}var wi;if(Pt){if(Rn(Pt)){Pt.enable?(Nr(et),Ri(et.exit),hi("true")):hi("false");return}wi=Pt.append(Ve,et),hi(wi)}else wi=et.def(Rt,".profile");var gn=Ve.block();Nr(gn),et("if(",wi,"){",gn,"}");var tn=Ve.block();Ri(tn),et.exit("if(",wi,"){",tn,"}")}function Y(Ve,et,at,kt,Ot){var It=Ve.shared;function Bt(mt){switch(mt){case ko:case Is:case dl:return 2;case Qa:case As:case Ul:return 3;case mo:case wo:case Lu:return 4;default:return 1}}function Rt(mt,Pt,ht){var cr=It.gl,br=et.def(mt,".location"),Nr=et.def(It.attributes,"[",br,"]"),Ri=ht.state,hi=ht.buffer,wi=[ht.x,ht.y,ht.z,ht.w],gn=["buffer","normalized","offset","stride"];function tn(){et("if(!",Nr,".buffer){",cr,".enableVertexAttribArray(",br,");}");var qi=ht.type,Vi;if(ht.size?Vi=et.def(ht.size,"||",Pt):Vi=Pt,et("if(",Nr,".type!==",qi,"||",Nr,".size!==",Vi,"||",gn.map(function(On){return Nr+"."+On+"!=="+ht[On]}).join("||"),"){",cr,".bindBuffer(",Sr,",",hi,".buffer);",cr,".vertexAttribPointer(",[br,Vi,qi,ht.normalized,ht.stride,ht.offset],");",Nr,".type=",qi,";",Nr,".size=",Vi,";",gn.map(function(On){return Nr+"."+On+"="+ht[On]+";"}).join(""),"}"),Ii){var on=ht.divisor;et("if(",Nr,".divisor!==",on,"){",Ve.instancing,".vertexAttribDivisorANGLE(",[br,on],");",Nr,".divisor=",on,";}")}}function Ci(){et("if(",Nr,".buffer){",cr,".disableVertexAttribArray(",br,");",Nr,".buffer=null;","}if(",ka.map(function(qi,Vi){return Nr+"."+qi+"!=="+wi[Vi]}).join("||"),"){",cr,".vertexAttrib4f(",br,",",wi,");",ka.map(function(qi,Vi){return Nr+"."+qi+"="+wi[Vi]+";"}).join(""),"}")}Ri===La?tn():Ri===Na?Ci():(et("if(",Ri,"===",La,"){"),tn(),et("}else{"),Ci(),et("}"))}kt.forEach(function(mt){var Pt=mt.name,ht=at.attributes[Pt],cr;if(ht){if(!Ot(ht))return;cr=ht.append(Ve,et)}else{if(!Ot(ia))return;var br=Ve.scopeAttrib(Pt);cr={},Object.keys(new Yr).forEach(function(Nr){cr[Nr]=et.def(br,".",Nr)})}Rt(Ve.link(mt),Bt(mt.info.type),cr)})}function D(Ve,et,at,kt,Ot,It){for(var Bt=Ve.shared,Rt=Bt.gl,mt,Pt=0;Pt1){for(var co=[],rs=[],so=0;so>1)",hi],");")}function on(){at(wi,".drawArraysInstancedANGLE(",[br,Nr,Ri,hi],");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}function qi(){function Vi(){at(It+".drawElements("+[br,Ri,gn,Nr+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function on(){at(It+".drawArrays("+[br,Nr,Ri]+");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}Ii&&(typeof hi!="number"||hi>=0)?typeof hi=="string"?(at("if(",hi,">0){"),Ci(),at("}else if(",hi,"<0){"),qi(),at("}")):Ci():qi()}function q(Ve,et,at,kt,Ot){var It=Ln(),Bt=It.proc("body",Ot);return Ii&&(It.instancing=Bt.def(It.shared.extensions,".angle_instanced_arrays")),Ve(It,Bt,at,kt),It.compile().body}function K(Ve,et,at,kt){sl(Ve,et),at.useVAO?at.drawVAO?et(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,et),");"):et(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(et(Ve.shared.vao,".setVAO(null);"),Y(Ve,et,at,kt.attributes,function(){return!0})),D(Ve,et,at,kt.uniforms,function(){return!0},!1),J(Ve,et,et,at)}function de(Ve,et){var at=Ve.proc("draw",1);sl(Ve,at),ls(Ve,at,et.context),Gs(Ve,at,et.framebuffer),Ks(Ve,at,et),Ta(Ve,at,et.state),io(Ve,at,et,!1,!0);var kt=et.shader.progVar.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",kt,".program);"),et.shader.program)K(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var Ot=Ve.global.def("{}"),It=at.def(kt,".id"),Bt=at.def(Ot,"[",It,"]");at(Ve.cond(Bt).then(Bt,".call(this,a0);").else(Bt,"=",Ot,"[",It,"]=",Ve.link(function(Rt){return q(K,Ve,et,Rt,1)}),"(",kt,");",Bt,".call(this,a0);"))}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ne(Ve,et,at,kt){Ve.batchId="a1",sl(Ve,et);function Ot(){return!0}Y(Ve,et,at,kt.attributes,Ot),D(Ve,et,at,kt.uniforms,Ot,!1),J(Ve,et,et,at)}function we(Ve,et,at,kt){sl(Ve,et);var Ot=at.contextDep,It=et.def(),Bt="a0",Rt="a1",mt=et.def();Ve.shared.props=mt,Ve.batchId=It;var Pt=Ve.scope(),ht=Ve.scope();et(Pt.entry,"for(",It,"=0;",It,"<",Rt,";++",It,"){",mt,"=",Bt,"[",It,"];",ht,"}",Pt.exit);function cr(gn){return gn.contextDep&&Ot||gn.propDep}function br(gn){return!cr(gn)}if(at.needsContext&&ls(Ve,ht,at.context),at.needsFramebuffer&&Gs(Ve,ht,at.framebuffer),Ta(Ve,ht,at.state,cr),at.profile&&cr(at.profile)&&io(Ve,ht,at,!1,!0),kt)at.useVAO?at.drawVAO?cr(at.drawVAO)?ht(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,ht),");"):Pt(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Pt),");"):Pt(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Pt(Ve.shared.vao,".setVAO(null);"),Y(Ve,Pt,at,kt.attributes,br),Y(Ve,ht,at,kt.attributes,cr)),D(Ve,Pt,at,kt.uniforms,br,!1),D(Ve,ht,at,kt.uniforms,cr,!0),J(Ve,Pt,ht,at);else{var Nr=Ve.global.def("{}"),Ri=at.shader.progVar.append(Ve,ht),hi=ht.def(Ri,".id"),wi=ht.def(Nr,"[",hi,"]");ht(Ve.shared.gl,".useProgram(",Ri,".program);","if(!",wi,"){",wi,"=",Nr,"[",hi,"]=",Ve.link(function(gn){return q(ne,Ve,at,gn,2)}),"(",Ri,");}",wi,".call(this,a0[",It,"],",It,");")}}function Ue(Ve,et){var at=Ve.proc("batch",2);Ve.batchId="0",sl(Ve,at);var kt=!1,Ot=!0;Object.keys(et.context).forEach(function(Nr){kt=kt||et.context[Nr].propDep}),kt||(ls(Ve,at,et.context),Ot=!1);var It=et.framebuffer,Bt=!1;It?(It.propDep?kt=Bt=!0:It.contextDep&&kt&&(Bt=!0),Bt||Gs(Ve,at,It)):Gs(Ve,at,null),et.state.viewport&&et.state.viewport.propDep&&(kt=!0);function Rt(Nr){return Nr.contextDep&&kt||Nr.propDep}Ks(Ve,at,et),Ta(Ve,at,et.state,function(Nr){return!Rt(Nr)}),(!et.profile||!Rt(et.profile))&&io(Ve,at,et,!1,"a1"),et.contextDep=kt,et.needsContext=Ot,et.needsFramebuffer=Bt;var mt=et.shader.progVar;if(mt.contextDep&&kt||mt.propDep)we(Ve,at,et,null);else{var Pt=mt.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Pt,".program);"),et.shader.program)we(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var ht=Ve.global.def("{}"),cr=at.def(Pt,".id"),br=at.def(ht,"[",cr,"]");at(Ve.cond(br).then(br,".call(this,a0,a1);").else(br,"=",ht,"[",cr,"]=",Ve.link(function(Nr){return q(we,Ve,et,Nr,2)}),"(",Pt,");",br,".call(this,a0,a1);"))}}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ft(Ve,et){var at=Ve.proc("scope",3);Ve.batchId="a2";var kt=Ve.shared,Ot=kt.current;if(ls(Ve,at,et.context),et.framebuffer&&et.framebuffer.append(Ve,at),Ai(Object.keys(et.state)).forEach(function(Rt){var mt=et.state[Rt],Pt=mt.append(Ve,at);En(Pt)?Pt.forEach(function(ht,cr){vn(ht)?at.set(Ve.next[Rt],"["+cr+"]",ht):at.set(Ve.next[Rt],"["+cr+"]",Ve.link(ht,{stable:!0}))}):Rn(mt)?at.set(kt.next,"."+Rt,Ve.link(Pt,{stable:!0})):at.set(kt.next,"."+Rt,Pt)}),io(Ve,at,et,!0,!0),[Tt,xr,Jt,Pr,Kt].forEach(function(Rt){var mt=et.draw[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.draw,"."+Rt,Pt):at.set(kt.draw,"."+Rt,Ve.link(Pt),{stable:!0})}}),Object.keys(et.uniforms).forEach(function(Rt){var mt=et.uniforms[Rt].append(Ve,at);Array.isArray(mt)&&(mt="["+mt.map(function(Pt){return vn(Pt)?Pt:Ve.link(Pt,{stable:!0})})+"]"),at.set(kt.uniforms,"["+Ve.link(xt.id(Rt),{stable:!0})+"]",mt)}),Object.keys(et.attributes).forEach(function(Rt){var mt=et.attributes[Rt].append(Ve,at),Pt=Ve.scopeAttrib(Rt);Object.keys(new Yr).forEach(function(ht){at.set(Pt,"."+ht,mt[ht])})}),et.scopeVAO){var It=et.scopeVAO.append(Ve,at);vn(It)?at.set(kt.vao,".targetVAO",It):at.set(kt.vao,".targetVAO",Ve.link(It,{stable:!0}))}function Bt(Rt){var mt=et.shader[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.shader,"."+Rt,Pt):at.set(kt.shader,"."+Rt,Ve.link(Pt,{stable:!0}))}}Bt(Xe),Bt(ot),Object.keys(et.state).length>0&&(at(Ot,".dirty=true;"),at.exit(Ot,".dirty=true;")),at("a1(",Ve.shared.context,",a0,",Ve.batchId,");")}function Zt(Ve){if(!(typeof Ve!="object"||En(Ve))){for(var et=Object.keys(Ve),at=0;at=0;--q){var K=Un[q];K&&K(si,null,0)}zt.flush(),Mi&&Mi.update()}function wa(){!ra&&Un.length>0&&(ra=d.next(oa))}function ns(){ra&&(d.cancel(oa),ra=null)}function Ys(q){q.preventDefault(),Hr=!0,ns(),na.forEach(function(K){K()})}function Va(q){zt.getError(),Hr=!1,Br.restore(),qn.restore(),Ii.restore(),vi.restore(),li.restore(),mn.restore(),nn.restore(),Mi&&Mi.restore(),Ki.procs.refresh(),wa(),Yi.forEach(function(K){K()})}vn&&(vn.addEventListener(Fo,Ys,!1),vn.addEventListener(Uo,Va,!1));function El(){Un.length=0,ns(),vn&&(vn.removeEventListener(Fo,Ys),vn.removeEventListener(Uo,Va)),qn.clear(),mn.clear(),li.clear(),nn.clear(),vi.clear(),ci.clear(),Ii.clear(),Mi&&Mi.clear(),Ln.forEach(function(q){q()})}function zo(q){function K(It){var Bt=e({},It);delete Bt.uniforms,delete Bt.attributes,delete Bt.context,delete Bt.vao,"stencil"in Bt&&Bt.stencil.op&&(Bt.stencil.opBack=Bt.stencil.opFront=Bt.stencil.op,delete Bt.stencil.op);function Rt(mt){if(mt in Bt){var Pt=Bt[mt];delete Bt[mt],Object.keys(Pt).forEach(function(ht){Bt[mt+"."+ht]=Pt[ht]})}}return Rt("blend"),Rt("depth"),Rt("cull"),Rt("stencil"),Rt("polygonOffset"),Rt("scissor"),Rt("sample"),"vao"in It&&(Bt.vao=It.vao),Bt}function de(It,Bt){var Rt={},mt={};return Object.keys(It).forEach(function(Pt){var ht=It[Pt];if(h.isDynamic(ht)){mt[Pt]=h.unbox(ht,Pt);return}else if(Bt&&Array.isArray(ht)){for(var cr=0;cr0)return Ve.call(this,kt(It|0),It|0)}else if(Array.isArray(It)){if(It.length)return Ve.call(this,It,It.length)}else return qt.call(this,It)}return e(Ot,{stats:Zt,destroy:function(){hr.destroy()}})}var el=mn.setFBO=zo({framebuffer:h.define.call(null,Qs,"framebuffer")});function ol(q,K){var de=0;Ki.procs.poll();var ne=K.color;ne&&(zt.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Es),"depth"in K&&(zt.clearDepth(+K.depth),de|=Zs),"stencil"in K&&(zt.clearStencil(K.stencil|0),de|=Gn),zt.clear(de)}function Vl(q){if("framebuffer"in q)if(q.framebuffer&&q.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)el(e({framebuffer:q.framebuffer.faces[K]},q),ol);else el(q,ol);else ol(null,q)}function ls(q){Un.push(q);function K(){var de=vl(Un,q);function ne(){var we=vl(Un,ne);Un[we]=Un[Un.length-1],Un.length-=1,Un.length<=0&&ns()}Un[de]=ne}return wa(),{cancel:K}}function Gs(){var q=Bi.viewport,K=Bi.scissor_box;q[0]=q[1]=K[0]=K[1]=0,si.viewportWidth=si.framebufferWidth=si.drawingBufferWidth=q[2]=K[2]=zt.drawingBufferWidth,si.viewportHeight=si.framebufferHeight=si.drawingBufferHeight=q[3]=K[3]=zt.drawingBufferHeight}function Ks(){si.tick+=1,si.time=sl(),Gs(),Ki.procs.poll()}function Ta(){vi.refresh(),Gs(),Ki.procs.refresh(),Mi&&Mi.update()}function sl(){return(v()-Hn)/1e3}Ta();function io(q,K){var de;switch(q){case"frame":return ls(K);case"lost":de=na;break;case"restore":de=Yi;break;case"destroy":de=Ln;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Ui,destroy:El,_gl:zt,_refresh:Ta,poll:function(){Ks(),Mi&&Mi.update()},now:sl,stats:mi,getCachedCode:Y,preloadCachedCode:D});return xt.onDone(null,J),J}return Sc})});var Tz=ye((p1r,dBe)=>{"use strict";var tUt=MX(),rUt=hBe();dBe.exports=function(t,r,n){var i=t._fullLayout,a=!0;return i._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(n);return}if(!(o.pick&&!i._has("parcoords"))){try{o.regl=rUt({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:n||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||tUt({container:i._glcontainer.node()}),a}});var cK=ye((uK,yBe)=>{"use strict";var vBe=uY(),pBe=NY(),iUt=rqe(),gBe=fBe(),lK=Dr(),nUt=Sg().selectMode,aUt=Tz(),oUt=Ru(),sUt=mU(),lUt=aY().styleTextSelection,mBe={};function uUt(e,t,r,n){var i=e._size,a=e.width*n,o=e.height*n,s=i.l*n,l=i.b*n,u=i.r*n,c=i.t*n,f=i.w*n,h=i.h*n;return[s+t.domain[0]*f,l+r.domain[0]*h,a-u-(1-t.domain[1])*f,o-c-(1-r.domain[1])*h]}var uK=yBe.exports=function(t,r,n){if(n.length){var i=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,l,u;if(a){var c=aUt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],mBe);if(!c){a.init();return}var f=a.count,h=i._glcanvas.data()[0].regl;if(sUt(t,r,n),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=iUt(h)),a.line2d===!0&&(a.line2d=pBe(h)),a.scatter2d===!0&&(a.scatter2d=vBe(h)),a.fill2d===!0&&(a.fill2d=pBe(h)),a.glText===!0)for(a.glText=new Array(f),l=0;la.glText.length){var d=f-a.glText.length;for(l=0;loe&&(isNaN(re[_e])||isNaN(re[_e+1]));)_e-=2;j.positions=re.slice(oe,_e+2)}return j}),a.line2d.update(a.lineOptions)),a.error2d){var b=(a.errorXOptions||[]).concat(a.errorYOptions||[]);a.error2d.update(b)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=lK.repeat(null,f),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(j,re){var oe=n[re];if(!(!j||!oe||!oe[0]||!oe[0].trace)){var _e=oe[0],Me=_e.trace,ke=_e.t,me=a.lineOptions[re],ie,Se,Le=[];Me._ownfill&&Le.push(re),Me._nexttrace&&Le.push(re+1),Le.length&&(a.fillOrder[re]=Le);var Ae=[],De=me&&me.positions||ke.positions,Pe,ge;if(Me.fill==="tozeroy"){for(Pe=0;PePe&&isNaN(De[ge+1]);)ge-=2;De[Pe+1]!==0&&(Ae=[De[Pe],0]),Ae=Ae.concat(De.slice(Pe,ge+2)),De[ge+1]!==0&&(Ae=Ae.concat([De[ge],0]))}else if(Me.fill==="tozerox"){for(Pe=0;PePe&&isNaN(De[ge]);)ge-=2;De[Pe]!==0&&(Ae=[0,De[Pe+1]]),Ae=Ae.concat(De.slice(Pe,ge+2)),De[ge]!==0&&(Ae=Ae.concat([0,De[ge+1]]))}else if(Me.fill==="toself"||Me.fill==="tonext"){for(Ae=[],ie=0,j.splitNull=!0,Se=0;Se-1;for(l=0;l{"use strict";var _Be=Oze();_Be.plot=cK();xBe.exports=_Be});var TBe=ye((m1r,wBe)=>{"use strict";wBe.exports=bBe()});var fK=ye((y1r,EBe)=>{"use strict";var cUt=pf(),MBe=Tu(),ABe=df().axisHoverFormat,fUt=Qo().hovertemplateAttrs,EC=sC(),hUt=hd().idRegex,dUt=pl().templatedArray,d5=Ao().extendFlat,o1=cUt.marker,vUt=o1.line,pUt=d5(MBe("marker.line",{editTypeOverride:"calc"}),{width:d5({},vUt.width,{editType:"calc"}),editType:"calc"}),Az=d5(MBe("marker"),{symbol:o1.symbol,angle:o1.angle,size:d5({},o1.size,{editType:"markerSize"}),sizeref:o1.sizeref,sizemin:o1.sizemin,sizemode:o1.sizemode,opacity:o1.opacity,colorbar:o1.colorbar,line:pUt,editType:"calc"});Az.color.editType=Az.cmin.editType=Az.cmax.editType="style";function SBe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:hUt[e],editType:"plot"}}}EBe.exports={dimensions:dUt("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:d5({},EC.text,{}),hovertext:d5({},EC.hovertext,{}),hovertemplate:fUt(),xhoverformat:ABe("x"),yhoverformat:ABe("y"),marker:Az,xaxes:SBe("x"),yaxes:SBe("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:EC.selected.marker,editType:"calc"},unselected:{marker:EC.unselected.marker,editType:"calc"},opacity:EC.opacity}});var Sz=ye((_1r,CBe)=>{"use strict";CBe.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var hK=Dr(),gUt=Yd(),kBe=fK(),mUt=Ru(),yUt=$p(),_Ut=Sz(),xUt=BF().isOpenSymbol;LBe.exports=function(t,r,n,i){function a(d,v){return hK.coerce(t,r,kBe,d,v)}var o=gUt(t,r,{name:"dimensions",handleItemDefaults:bUt}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),c=_Ut(r,o,"values");if(!c||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),yUt(t,r,n,i,a,{noAngleRef:!0,noStandOff:!0});var f=xUt(r.marker.symbol),h=mUt.isBubble(r);a("marker.line.width",f||h?1:0),wUt(t,r,i,a),hK.coerceSelectionMarkerOpacity(r,a)};function bUt(e,t){function r(i,a){return hK.coerce(e,t,kBe.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function wUt(e,t,r,n){var i=t.dimensions,a=i.length,o=t.showupperhalf,s=t.showlowerhalf,l=t.diagonal.visible,u,c,f=new Array(a),h=new Array(a);for(u=0;uc&&o||u{"use strict";var IBe=Dr();RBe.exports=function(t,r){var n=t._fullLayout,i=r.uid,a=n._splomScenes;a||(a=n._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},l=a[r.uid];return l||(l=a[i]=IBe.extendFlat({},o,s),l.draw=function(){l.matrix&&l.matrix.draw&&(l.selectBatch.length||l.unselectBatch.length?l.matrix.draw(l.unselectBatch,l.selectBatch):l.matrix.draw()),l.dirty=!1},l.destroy=function(){l.matrix&&l.matrix.destroy&&l.matrix.destroy(),l.matrixOptions=null,l.selectBatch=null,l.unselectBatch=null,l=null}),l.dirty||IBe.extendFlat(l,o),l}});var OBe=ye((w1r,zBe)=>{"use strict";var dK=Dr(),Mz=hf(),TUt=O0().calcMarkerSize,AUt=O0().calcAxisExpansion,SUt=F0(),FBe=Y2().markerSelection,MUt=Y2().markerStyle,EUt=DBe(),CUt=hs().BADNUM,kUt=ox().TOO_MANY_POINTS;zBe.exports=function(t,r){var n=r.dimensions,i=r._length,a={},o=a.cdata=[],s=a.data=[],l=r._visibleDims=[],u,c,f,h,d;function v(E,A){for(var L=E.makeCalcdata({v:A.values,vcalendar:r.calendar},"v"),_=0;_kUt,p;for(b?p=a.sizeAvg||Math.max(a.size,3):p=TUt(r,i),c=0;c{(function(){var e,t,r,n,i,a;typeof performance!="undefined"&&performance!==null&&performance.now?CC.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(CC.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),a=process.uptime()*1e9,i=n-a):Date.now?(CC.exports=function(){return Date.now()-r},r=Date.now()):(CC.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(qBe)});var UBe=ye((T1r,kz)=>{var LUt=BBe(),s1=window,Ez=["moz","webkit"],p5="AnimationFrame",g5=s1["request"+p5],kC=s1["cancel"+p5]||s1["cancelRequest"+p5];for(v5=0;!g5&&v5{VBe.exports=function(t,r){var n=typeof t=="number",i=typeof r=="number";n&&!i?(r=t,t=0):!n&&!i&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,l=t;s{"use strict";var PUt=uY(),IUt=Xm(),RUt=j2(),HBe=UBe(),DUt=GBe(),pK=e5(),FUt=W2();WBe.exports=vx;function vx(e,t){if(!(this instanceof vx))return new vx(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=PUt(e),this.canvas=this.scatter.canvas}vx.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=HBe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,HBe(()=>{this.dirty=!1})),this)};vx.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&x{t[a+s]=n})}this.scatter.draw(...t)}return this};vx.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function zUt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function Lz(e,t,r){let n,i,a,o,s,l,u,c,f=e[t],h=e[r];return f.length>2?(n=f[0],a=f[2],i=f[1],o=f[3]):f.length?(n=i=f[0],a=o=f[1]):(n=f.x,i=f.y,a=f.x+f.width,o=f.y+f.height),h.length>2?(s=h[0],u=h[2],l=h[1],c=h[3]):h.length?(s=l=h[0],u=c=h[1]):(s=h.x,l=h.y,u=h.x+h.width,c=h.y+h.height),[s,i,u,o]}function jBe(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=pK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var YBe=ye((M1r,ZBe)=>{"use strict";var OUt=XBe(),gK=Dr(),Pz=hf(),qUt=Sg().selectMode;ZBe.exports=function(t,r,n){if(n.length)for(var i=0;i-1,T=qUt(c)||!!i.selectedpoints||P,z=!0;if(T){var O=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var V=i.selectedpoints,G={};for(d=0;d{"use strict";KBe.getDimIndex=function(t,r){for(var n=r._id,i=n.charAt(0),a={x:0,y:1}[i],o=t._visibleDims,s=0;s{"use strict";var JBe=mK(),NUt=qF().calcHover,$Be=ho().getFromId,UUt=Ao().extendFlat;function VUt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=QBe(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=i.gd,c=UUt({},e),f=0;f{"use strict";var aNe=Dr(),rNe=aNe.pushUnique,iNe=Ru(),nNe=mK();oNe.exports=function(t,r){var n=t.cd,i=n[0].trace,a=n[0].t,o=t.scene,s=o.matrixOptions.cdata,l=t.xaxis,u=t.yaxis,c=[];if(!o)return c;var f=!iNe.hasMarkers(i)&&!iNe.hasText(i);if(i.visible!==!0||f)return c;var h=nNe.getDimIndex(i,l),d=nNe.getDimIndex(i,u);if(h===!1||d===!1)return c;var v=a.xpx[h],x=a.ypx[d],b=s[h],p=s[d],C=(t.scene.selectBatch||[]).slice(),E=[];if(r!==!1&&!r.degenerate)for(var A=0;A{"use strict";var lNe=Dr(),GUt=F0(),HUt=Y2().markerStyle;uNe.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){GUt(t,n),lNe.extendFlat(i.matrixOptions,HUt(t,n));var a=lNe.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var hNe=ye((P1r,fNe)=>{"use strict";var jUt=qa(),WUt=uV();fNe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:fK(),supplyDefaults:PBe(),colorbar:$d(),calc:OBe(),plot:YBe(),hoverPoints:tNe().hoverPoints,selectPoints:sNe(),editStyle:cNe(),meta:{}};jUt.register(WUt)});var yNe=ye((I1r,mNe)=>{"use strict";var XUt=NY(),ZUt=qa(),YUt=Tz(),KUt=Id().getModuleCalcData,px=vh(),dNe=hf().getFromId,vNe=ho().shouldShowZeroLine,pNe="splom",gNe={};function JUt(e){var t=e._fullLayout,r=ZUt.getModule(pNe),n=KUt(e.calcdata,r)[0],i=YUt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],gNe);i&&(t._hasOnlyLargeSploms&&yK(e),r.plot(e,{},n))}function $Ut(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&yK(e);for(var n=0;n{"use strict";var _Ne=hNe();_Ne.basePlotModule=yNe(),xNe.exports=_Ne});var TNe=ye((D1r,wNe)=>{"use strict";wNe.exports=bNe()});var bK=ye((F1r,ANe)=>{"use strict";var rVt=Tu(),_K=Rd(),xK=ec(),iVt=kc().attributes,Iz=Ao().extendFlat,nVt=pl().templatedArray;ANe.exports={domain:iVt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:xK({editType:"plot"}),tickfont:xK({autoShadowDflt:!0,editType:"plot"}),rangefont:xK({editType:"plot"}),dimensions:nVt("dimension",{label:{valType:"string",editType:"plot"},tickvals:Iz({},_K.tickvals,{editType:"plot"}),ticktext:Iz({},_K.ticktext,{editType:"plot"}),tickformat:Iz({},_K.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:Iz({editType:"calc"},rVt("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var LC=ye((z1r,SNe)=>{"use strict";SNe.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var Km=ye((O1r,ENe)=>{"use strict";var aVt=VS();function MNe(e){return[e]}ENe.exports={keyFun:function(e){return e.key},repeat:MNe,descend:aVt,wrap:MNe,unwrap:function(e){return e[0]}}});var AK=ye((q1r,qNe)=>{"use strict";var yh=LC(),em=Oa(),oVt=Km().keyFun,Rz=Km().repeat,m5=Dr().sorterAsc,sVt=Dr().strTranslate,CNe=yh.bar.snapRatio;function kNe(e,t){return e*(1-CNe)+t*CNe}var LNe=yh.bar.snapClose;function lVt(e,t){return e*(1-LNe)+t*LNe}function Fz(e,t,r,n){if(uVt(r,n))return r;var i=e?-1:1,a=0,o=t.length-1;if(i<0){var s=a;a=o,o=s}for(var l=t[a],u=l,c=a;i*c=t[r][0]&&e<=t[r][1])return!0;return!1}function cVt(e){e.attr("x",-yh.bar.captureWidth/2).attr("width",yh.bar.captureWidth)}function fVt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function hVt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=PNe(e.brush.filter.getConsolidated(),e.height),r=[0],n,i,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function INe(){em.select(document.body).style("cursor",null)}function TK(e){e.attr("stroke-dasharray",hVt)}function Dz(e,t){var r=em.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(yh.bar.snapDuration).each("end",t):r;TK(n)}function RNe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,l=r.filter.getConsolidated(),u=PNe(l,s),c=NaN,f=NaN,h=NaN;for(o=0;o<=u.length;o++){var d=u[o];if(d&&d[0]<=t&&t<=d[1]){c=o;break}else if(f=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(i=c,isNaN(i)&&(isNaN(f)||isNaN(h)?i=isNaN(f)?h:f:i=t-u[f][1]=C[0]&&p<=C[1]){a.clickableOrdinalRange=C;break}}}return a}function vVt(e,t){em.event.sourceEvent.stopPropagation();var r=t.height-em.mouse(e)[1]-2*yh.verticalPadding,n=t.unitToPaddedPx.invert(r),i=t.brush,a=RNe(t,r),o=a.interval,s=i.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var l=o.map(t.unitToPaddedPx);s.grabPoint=r-l[0]-yh.verticalPadding,s.barLength=l[1]-l[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&i.filterSpecified?i.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(u){return u[0]!==o[0]&&u[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:n,t.parent.inBrushDrag=!0,s.brushStartCallback()}function DNe(e,t){em.event.sourceEvent.stopPropagation();var r=t.height-em.mouse(e)[1]-2*yh.verticalPadding,n=t.brush.svgBrush;n.wasDragged=!0,n._dragging=!0,n.grabbingBar?n.newExtent=[r-n.grabPoint,r+n.barLength-n.grabPoint].map(t.unitToPaddedPx.invert):n.newExtent=[n.startExtent,t.unitToPaddedPx.invert(r)].sort(m5),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),Dz(e.parentNode)}function pVt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(FNe(e,t),DNe(e,t),t.brush.svgBrush.wasDragged=!1),i._dragging=!1;var a=em.event;a.sourceEvent.stopPropagation();var o=i.grabbingBar;if(i.grabbingBar=!1,i.grabLocation=void 0,t.parent.inBrushDrag=!1,INe(),!i.wasDragged){i.wasDragged=void 0,i.clickableOrdinalRange?r.filterSpecified&&t.multiselect?i.extent.push(i.clickableOrdinalRange):(i.extent=[i.clickableOrdinalRange],r.filterSpecified=!0):o?(i.extent=i.stayingIntervals,i.extent.length===0&&wK(r)):wK(r),i.brushCallback(t),Dz(e.parentNode),i.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);return}var s=function(){n.set(n.getConsolidated())};if(t.ordinal){var l=t.unitTickvals;l[l.length-1]i.newExtent[0];i.extent=i.stayingIntervals.concat(u?[i.newExtent]:[]),i.extent.length||wK(r),i.brushCallback(t),u?Dz(e.parentNode,s):(s(),Dz(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function FNe(e,t){var r=t.height-em.mouse(e)[1]-2*yh.verticalPadding,n=RNe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),em.select(document.body).style("cursor",i)}function gVt(e){e.on("mousemove",function(t){em.event.preventDefault(),t.parent.inBrushDrag||FNe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||INe()}).call(em.behavior.drag().on("dragstart",function(t){vVt(this,t)}).on("drag",function(t){DNe(this,t)}).on("dragend",function(t){pVt(this,t)}))}function zNe(e,t){return e[0]-t[0]}function mVt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(Rz);i.enter().append("rect").classed("background",!0).call(cVt).call(fVt).style("pointer-events",n?"none":"auto").attr("transform",sVt(0,yh.verticalPadding)),i.call(gVt).attr("height",function(s){return s.height-yh.verticalPadding});var a=e.selectAll(".highlight-shadow").data(Rz);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-yh.bar.width/2).attr("stroke-width",yh.bar.width+yh.bar.strokeWidth).attr("stroke",t).attr("opacity",yh.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(TK);var o=e.selectAll(".highlight").data(Rz);o.enter().append("line").classed("highlight",!0).attr("x",-yh.bar.width/2).attr("stroke-width",yh.bar.width-yh.bar.strokeWidth).attr("stroke",yh.bar.fillColor).attr("opacity",yh.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(TK)}function yVt(e,t,r){var n=e.selectAll("."+yh.cn.axisBrush).data(Rz,oVt);n.enter().append("g").classed(yh.cn.axisBrush,!0),mVt(n,t,r)}function _Vt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function wK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function xVt(e){return function(r){var n=r.brush,i=_Vt(n),a=i.slice();n.filter.set(a),e()}}function ONe(e){for(var t=e.slice(),r=[],n,i=t.shift();i;){for(n=i.slice();(i=t.shift())&&i[0]<=n[1];)n[1]=Math.max(n[1],i[1]);r.push(n)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function bVt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(m5)}).sort(zNe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=ONe(e),r=e.reduce(function(i,a){return[Math.min(i[0],a[0]),Math.max(i[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function wVt(e,t,r,n,i,a){var o=bVt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:xVt(i),brushEndCallback:a}}}function TVt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(m5)}),t.multiselect?e=ONe(e.sort(zNe)):e=[e[0]]):e=[e.sort(m5)],t.tickvals){var r=t.tickvals.slice().sort(m5);if(e=e.map(function(n){var i=[Fz(0,r,n[0],[]),Fz(1,r,n[1],[])];if(i[1]>i[0])return i}).filter(function(n){return n}),!e.length)return}return e.length>1?e:e[0]}qNe.exports={makeBrush:wVt,ensureAxisBrush:yVt,cleanRanges:TVt}});var UNe=ye((B1r,NNe)=>{"use strict";var gx=Dr(),AVt=pv().hasColorscale,SVt=Jh(),MVt=kc().defaults,EVt=Yd(),CVt=ho(),BNe=bK(),kVt=AK(),SK=LC().maxDimensionCount,LVt=Sz();function PVt(e,t,r,n,i){var a=i("line.color",r);if(AVt(e,"line")&&gx.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),SVt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function IVt(e,t,r,n){function i(u,c){return gx.coerce(e,t,BNe.dimensions,u,c)}var a=i("values"),o=i("visible");if(a&&a.length||(o=t.visible=!1),o){i("label"),i("tickvals"),i("ticktext"),i("tickformat");var s=i("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},CVt.setConvert(t._ax,n.layout),i("multiselect");var l=i("constraintrange");l&&(t.constraintrange=kVt.cleanRanges(l,t))}}NNe.exports=function(t,r,n,i){function a(c,f){return gx.coerce(t,r,BNe,c,f)}var o=t.dimensions;Array.isArray(o)&&o.length>SK&&(gx.log("parcoords traces support up to "+SK+" dimensions at the moment"),o.splice(SK));var s=EVt(t,r,{name:"dimensions",layout:i,handleItemDefaults:IVt}),l=PVt(t,r,n,i,a);MVt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),LVt(r,s,"values",l);var u=gx.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});gx.coerceFont(a,"labelfont",u),gx.coerceFont(a,"tickfont",u,{autoShadowDflt:!0}),gx.coerceFont(a,"rangefont",u),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var GNe=ye((N1r,VNe)=>{"use strict";var RVt=Dr().isArrayOrTypedArray,MK=tc(),DVt=Km().wrap;VNe.exports=function(t,r){var n,i;return MK.hasColorscale(r,"line")&&RVt(r.line.color)?(n=r.line.color,i=MK.extractOpts(r.line).colorscale,MK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=FVt(r._length),i=[[0,r.line.color],[1,r.line.color]]),DVt({lineColor:n,cscale:i})};function FVt(e){for(var t=new Array(e),r=0;r>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),EK.default[e])r=EK.default[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(e[0]==="#"){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var l=t[1];i=l.replace(/a$/,"");var u=i==="cmyk"?4:i==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),i==="color"&&(i=r.shift()),r=r.map(function(h,d){if(h[h.length-1]==="%")return h=parseFloat(h)/100,d===3?h:i==="rgb"?h*255:i[0]==="h"||i[0]==="l"&&!d?h*100:i==="lab"?h*125:i==="lch"?d<2?h*150:h*360:i[0]==="o"&&!d?h:i==="oklab"?h*.4:i==="oklch"?d<2?h*.4:h*360:h;if(i[d]==="h"||d===2&&i[i.length-1]==="h"){if(HNe[h]!==void 0)return HNe[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),n=r.length>u?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),i=((f=(c=e.match(/([a-z])/ig))==null?void 0:c.join(""))==null?void 0:f.toLowerCase())||"rgb");return{space:i,values:r,alpha:n}}var EK,jNe,HNe,WNe=gu(()=>{EK=Xet(dX(),1),jNe=zVt,HNe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var PC,CK=gu(()=>{PC={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var zz,XNe=gu(()=>{CK();zz={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}};PC.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s,l,u;return a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),u=(i+a)/2,a===i?l=0:u<=.5?l=o/(a+i):l=o/(2-a-i),[s,l*100,u*100]}});var YNe={};uee(YNe,{default:()=>ZNe});function ZNe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=jNe(e);if(!i.space)return[];let a=i.space[0]==="h"?zz.min:PC.min,o=i.space[0]==="h"?zz.max:PC.max;return t=Array(3),t[0]=Math.min(Math.max(i.values[0],a[0]),o[0]),t[1]=Math.min(Math.max(i.values[1],a[1]),o[1]),t[2]=Math.min(Math.max(i.values[2],a[2]),o[2]),i.space[0]==="h"&&(t=zz.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var KNe=gu(()=>{WNe();CK();XNe()});var kK=ye(Oz=>{"use strict";var OVt=Dr().isTypedArray;Oz.convertTypedArray=function(e){return OVt(e)?Array.prototype.slice.call(e):e};Oz.isOrdinal=function(e){return!!e.tickvals};Oz.isVisible=function(e){return e.visible||!("visible"in e)}});var oUe=ye((Y1r,aUe)=>{"use strict";var qVt=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` -`),BVt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),IC=LC().maxDimensionCount,rUe=Dr(),JNe=1e-6,qz=2048,NVt=new Uint8Array(4),$Ne=new Uint8Array(4),QNe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function UVt(e){e.read({x:0,y:0,width:1,height:1,data:NVt})}function iUe(e,t,r,n,i){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,n,i),e.clear({color:[0,0,0,0],depth:1})}function VVt(e,t,r,n,i,a){var o=a.key;function s(l){var u=Math.min(n,i-l*n);l===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],iUe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*u,a.offset=2*l*n,t(a),l*n+u>>8*t)%256/255}function jVt(e,t,r){for(var n=new Array(e*(IC+4)),i=0,a=0;aZ&&(Z=M[z].dim1.canvasX,V=z);T===0&&iUe(i,0,0,u.canvasWidth,u.canvasHeight);var H=E(r);for(z=0;z{"use strict";var Bd=Oa(),l1=Dr(),PK=l1.isArrayOrTypedArray,hUe=l1.numberFormat,dUe=(KNe(),ab(YNe)).default,vUe=ho(),KVt=l1.strRotate,Jm=l1.strTranslate,JVt=ru(),Bz=So(),sUe=tc(),DK=Km(),tg=DK.keyFun,$m=DK.repeat,pUe=DK.unwrap,y5=kK(),Dl=LC(),gUe=AK(),$Vt=oUe();function lUe(e,t,r){return l1.aggNums(e,null,t,r)}function mUe(e,t){return FK(lUe(Math.min,e,t),lUe(Math.max,e,t))}function Nz(e){var t=e.range;return t?FK(t[0],t[1]):mUe(e.values,e._length)}function FK(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function QVt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function eGt(e,t,r,n,i){var a=Nz(r);return n?Bd.scale.ordinal().domain(n.map(QVt(hUe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Bd.scale.linear().domain(a).range([e-t,t])}function tGt(e,t){return Bd.scale.linear().range([t,e-t])}function rGt(e,t){return Bd.scale.linear().domain(Nz(e)).range([t,1-t])}function iGt(e){if(e.tickvals){var t=Nz(e);return Bd.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function nGt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=dUe(a[1]);return Bd.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return Bd.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function RK(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function aGt(e,t,r){var n=pUe(t),i=n.trace,a=y5.convertTypedArray(n.lineColor),o=i.line,s={color:dUe(i.unselected.line.color),opacity:i.unselected.line.opacity},l=sUe.extractOpts(o),u=l.reversescale?sUe.flipScale(n.cscale):n.cscale,c=i.domain,f=i.dimensions,h=e.width,d=i.labelangle,v=i.labelside,x=i.labelfont,b=i.tickfont,p=i.rangefont,C=l1.extendDeepNoArrays({},o,{color:a.map(Bd.scale.linear().domain(Nz({values:a,range:[l.min,l.max],_length:i._length}))),blockLineCount:Dl.blockLineCount,canvasOverdrag:Dl.overdrag*Dl.canvasPixelRatio}),E=Math.floor(h*(c.x[1]-c.x[0])),A=Math.floor(e.height*(c.y[1]-c.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},_=E,k=A;return{key:r,colCount:f.filter(y5.isVisible).length,dimensions:f,tickDistance:Dl.tickDistance,unitToColor:nGt(u),lines:C,deselectedLines:s,labelAngle:d,labelSide:v,labelFont:x,tickFont:b,rangeFont:p,layoutWidth:h,layoutHeight:e.height,domain:c,translateX:c.x[0]*h,translateY:e.height-c.y[1]*e.height,pad:L,canvasWidth:_*Dl.canvasPixelRatio+2*C.canvasOverdrag,canvasHeight:k*Dl.canvasPixelRatio,width:_,height:k,canvasPixelRatio:Dl.canvasPixelRatio}}function oGt(e,t,r){var n=r.width,i=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return n*h/Math.max(1,r.colCount-1)},l=Dl.verticalPadding/i,u=tGt(i,Dl.verticalPadding),c={key:r.key,xScale:s,model:r,inBrushDrag:!1},f={};return c.dimensions=a.filter(y5.isVisible).map(function(h,d){var v=rGt(h,l),x=f[h.label];f[h.label]=(x||0)+1;var b=h.label+(x?"__"+x:""),p=h.constraintrange,C=p&&p.length;C&&!PK(p[0])&&(p=[p]);var E=C?p.map(function(O){return O.map(v)}):[[-1/0,1/0]],A=function(){var O=c;O.focusLayer&&O.focusLayer.render(O.panels,!0);var V=RK(O);!e.contextShown()&&V?(O.contextLayer&&O.contextLayer.render(O.panels,!0),e.contextShown(!0)):e.contextShown()&&!V&&(O.contextLayer&&O.contextLayer.render(O.panels,!0,!0),e.contextShown(!1))},L=h.values;L.length>h._length&&(L=L.slice(0,h._length));var _=h.tickvals,k;function M(O,V){return{val:O,text:k[V]}}function g(O,V){return O.val-V.val}if(PK(_)&&_.length){l1.isTypedArray(_)&&(_=Array.from(_)),k=h.ticktext,!PK(k)||!k.length?k=_.map(hUe(h.tickformat)):k.length>_.length?k=k.slice(0,_.length):_.length>k.length&&(_=_.slice(0,k.length));for(var P=1;P<_.length;P++)if(_[P]<_[P-1]){for(var T=_.map(M).sort(g),z=0;z<_.length;z++)_[z]=T[z].val,k[z]=T[z].text;break}}else _=void 0;return L=y5.convertTypedArray(L),{key:b,label:h.label,tickFormat:h.tickformat,tickvals:_,ticktext:k,ordinal:y5.isOrdinal(h),multiselect:h.multiselect,xIndex:d,crossfilterDimensionIndex:d,visibleIndex:h._index,height:i,values:L,paddedUnitValues:L.map(v),unitTickvals:_&&_.map(v),xScale:s,x:s(d),canvasX:s(d)*o,unitToPaddedPx:u,domainScale:eGt(i,Dl.verticalPadding,h,_,k),ordinalScale:iGt(h),parent:c,model:r,brush:gUe.makeBrush(e,C,E,function(){e.linePickActive(!1)},A,function(O){if(c.focusLayer.render(c.panels,!0),c.pickLayer&&c.pickLayer.render(c.panels,!0),e.linePickActive(!0),t&&t.filterChanged){var V=v.invert,G=O.map(function(Z){return Z.map(V).sort(l1.sorterAsc)}).sort(function(Z,H){return Z[0]-H[0]});t.filterChanged(c.key,h._index,G)}})}}),c}function uUe(e){e.classed(Dl.cn.axisExtentText,!0).attr("text-anchor","middle").style("cursor","default")}function sGt(){var e=!0,t=!1;return{linePickActive:function(r){return arguments.length?e=!!r:e},contextShown:function(r){return arguments.length?t=!!r:t}}}function cUe(e,t){var r=t==="top"?1:-1,n=e*Math.PI/180,i=Math.sin(n),a=Math.cos(n);return{dir:r,dx:i,dy:a,degrees:e}}function IK(e,t,r){for(var n=t.panels||(t.panels=[]),i=e.data(),a=0;a=V||N>=G)return;var j=z.lineLayer.readPixel(H,G-1-N),re=j[3]!==0,oe=re?j[2]+256*(j[1]+256*j[0]):null,_e={x:H,y:N,clientX:O.clientX,clientY:O.clientY,dataIndex:z.model.key,curveNumber:oe};oe!==v&&(re?i.hover(_e):i.unhover&&i.unhover(_e),v=oe)}}),d.style("opacity",function(z){return z.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var b=s.selectAll("."+Dl.cn.parcoords).data(h,tg);b.exit().remove(),b.enter().append("g").classed(Dl.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),b.attr("transform",function(z){return Jm(z.model.translateX,z.model.translateY)});var p=b.selectAll("."+Dl.cn.parcoordsControlView).data($m,tg);p.enter().append("g").classed(Dl.cn.parcoordsControlView,!0),p.attr("transform",function(z){return Jm(z.model.pad.l,z.model.pad.t)});var C=p.selectAll("."+Dl.cn.yAxis).data(function(z){return z.dimensions},tg);C.enter().append("g").classed(Dl.cn.yAxis,!0),p.each(function(z){IK(C,z,u)}),d.each(function(z){if(z.viewModel){!z.lineLayer||i?z.lineLayer=$Vt(this,z):z.lineLayer.update(z),(z.key||z.key===0)&&(z.viewModel[z.key]=z.lineLayer);var O=!z.context||i;z.lineLayer.render(z.viewModel.panels,O)}}),C.attr("transform",function(z){return Jm(z.xScale(z.xIndex),0)}),C.call(Bd.behavior.drag().origin(function(z){return z}).on("drag",function(z){var O=z.parent;f.linePickActive(!1),z.x=Math.max(-Dl.overdrag,Math.min(z.model.width+Dl.overdrag,Bd.event.x)),z.canvasX=z.x*z.model.canvasPixelRatio,C.sort(function(V,G){return V.x-G.x}).each(function(V,G){V.xIndex=G,V.x=z===V?V.x:V.xScale(V.xIndex),V.canvasX=V.x*V.model.canvasPixelRatio}),IK(C,O,u),C.filter(function(V){return Math.abs(z.xIndex-V.xIndex)!==0}).attr("transform",function(V){return Jm(V.xScale(V.xIndex),0)}),Bd.select(this).attr("transform",Jm(z.x,0)),C.each(function(V,G,Z){Z===z.parent.key&&(O.dimensions[G]=V)}),O.contextLayer&&O.contextLayer.render(O.panels,!1,!RK(O)),O.focusLayer.render&&O.focusLayer.render(O.panels)}).on("dragend",function(z){var O=z.parent;z.x=z.xScale(z.xIndex),z.canvasX=z.x*z.model.canvasPixelRatio,IK(C,O,u),Bd.select(this).attr("transform",function(V){return Jm(V.x,0)}),O.contextLayer&&O.contextLayer.render(O.panels,!1,!RK(O)),O.focusLayer&&O.focusLayer.render(O.panels),O.pickLayer&&O.pickLayer.render(O.panels,!0),f.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(O.key,O.dimensions.map(function(V){return V.crossfilterDimensionIndex}))})),C.exit().remove();var E=C.selectAll("."+Dl.cn.axisOverlays).data($m,tg);E.enter().append("g").classed(Dl.cn.axisOverlays,!0),E.selectAll("."+Dl.cn.axis).remove();var A=E.selectAll("."+Dl.cn.axis).data($m,tg);A.enter().append("g").classed(Dl.cn.axis,!0),A.each(function(z){var O=z.model.height/z.model.tickDistance,V=z.domainScale,G=V.domain();Bd.select(this).call(Bd.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(O,z.tickFormat).tickValues(z.ordinal?G:null).tickFormat(function(Z){return y5.isOrdinal(z)?Z:yUe(z.model.dimensions[z.visibleIndex],Z)}).scale(V)),Bz.font(A.selectAll("text"),z.model.tickFont)}),A.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),A.selectAll("text").style("cursor","default");var L=E.selectAll("."+Dl.cn.axisHeading).data($m,tg);L.enter().append("g").classed(Dl.cn.axisHeading,!0);var _=L.selectAll("."+Dl.cn.axisTitle).data($m,tg);_.enter().append("text").classed(Dl.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),_.text(function(z){return z.label}).each(function(z){var O=Bd.select(this);Bz.font(O,z.model.labelFont),JVt.convertToTspans(O,t)}).attr("transform",function(z){var O=cUe(z.model.labelAngle,z.model.labelSide),V=Dl.axisTitleOffset;return(O.dir>0?"":Jm(0,2*V+z.model.height))+KVt(O.degrees)+Jm(-V*O.dx,-V*O.dy)}).attr("text-anchor",function(z){var O=cUe(z.model.labelAngle,z.model.labelSide),V=Math.abs(O.dx),G=Math.abs(O.dy);return 2*V>G?O.dir*O.dx<0?"start":"end":"middle"});var k=E.selectAll("."+Dl.cn.axisExtent).data($m,tg);k.enter().append("g").classed(Dl.cn.axisExtent,!0);var M=k.selectAll("."+Dl.cn.axisExtentTop).data($m,tg);M.enter().append("g").classed(Dl.cn.axisExtentTop,!0),M.attr("transform",Jm(0,-Dl.axisExtentOffset));var g=M.selectAll("."+Dl.cn.axisExtentTopText).data($m,tg);g.enter().append("text").classed(Dl.cn.axisExtentTopText,!0).call(uUe),g.text(function(z){return fUe(z,!0)}).each(function(z){Bz.font(Bd.select(this),z.model.rangeFont)});var P=k.selectAll("."+Dl.cn.axisExtentBottom).data($m,tg);P.enter().append("g").classed(Dl.cn.axisExtentBottom,!0),P.attr("transform",function(z){return Jm(0,z.model.height+Dl.axisExtentOffset)});var T=P.selectAll("."+Dl.cn.axisExtentBottomText).data($m,tg);T.enter().append("text").classed(Dl.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(uUe),T.text(function(z){return fUe(z,!1)}).each(function(z){Bz.font(Bd.select(this),z.model.rangeFont)}),gUe.ensureAxisBrush(E,c,t)}});var OK=ye((zK,AUe)=>{"use strict";var uGt=xUe(),cGt=Tz(),bUe=kK().isVisible,TUe={};function wUe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function fGt(e,t){return function(n,i){return wUe(e,t,n)-wUe(e,t,i)}}var zK=AUe.exports=function(t,r){var n=t._fullLayout,i=cGt(t,[],TUe);if(i){var a={},o={},s={},l={},u=n._size;r.forEach(function(v,x){var b=v[0].trace;s[x]=b.index;var p=l[x]=b.index;a[x]=t.data[p].dimensions,o[x]=t.data[p].dimensions.slice()});var c=function(v,x,b){var p=o[v][x],C=b.map(function(M){return M.slice()}),E="dimensions["+x+"].constraintrange",A=n._tracePreGUI[t._fullData[s[v]]._fullInput.uid];if(A[E]===void 0){var L=p.constraintrange;A[E]=L||null}var _=t._fullData[s[v]].dimensions[x];C.length?(C.length===1&&(C=C[0]),p.constraintrange=C,_.constraintrange=C.slice(),C=[C]):(delete p.constraintrange,delete _.constraintrange,C=null);var k={};k[E]=C,t.emit("plotly_restyle",[k,[l[v]]])},f=function(v){t.emit("plotly_hover",v)},h=function(v){t.emit("plotly_unhover",v)},d=function(v,x){var b=fGt(x,o[v].filter(bUe));a[v].sort(b),o[v].filter(function(p){return!bUe(p)}).sort(function(p){return o[v].indexOf(p)}).forEach(function(p){a[v].splice(a[v].indexOf(p),1),a[v].splice(o[v].indexOf(p),0,p)}),t.emit("plotly_restyle",[{dimensions:[a[v]]},[l[v]]])};uGt(t,r,{width:u.w,height:u.h,margin:{t:u.t,r:u.r,b:u.b,l:u.l}},{filterChanged:c,hover:f,unhover:h,axesMoved:d})}};zK.reglPrecompiled=TUe});var MUe=ye(RC=>{"use strict";var SUe=Oa(),hGt=Id().getModuleCalcData,dGt=OK(),vGt=Wp();RC.name="parcoords";RC.plot=function(e){var t=hGt(e.calcdata,"parcoords")[0];t.length&&dGt(e,t)};RC.clean=function(e,t,r,n){var i=n._has&&n._has("parcoords"),a=t._has&&t._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())};RC.toSVG=function(e){var t=e._fullLayout._glimages,r=SUe.select(e).selectAll(".svg-container"),n=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:vGt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){SUe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var CUe=ye(($1r,EUe)=>{"use strict";EUe.exports={attributes:bK(),supplyDefaults:UNe(),calc:GNe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:MUe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var PUe=ye((Q1r,LUe)=>{"use strict";var kUe=CUe();kUe.plot=OK();LUe.exports=kUe});var RUe=ye((e_r,IUe)=>{"use strict";IUe.exports=PUe()});var qK=ye((t_r,OUe)=>{"use strict";var FUe=Ao().extendFlat,pGt=Gl(),DUe=ec(),gGt=Tu(),zUe=Qo().hovertemplateAttrs,mGt=kc().attributes,yGt=FUe({editType:"calc"},gGt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:zUe({editType:"plot",arrayOk:!1},{keys:["count","probability"]})});OUe.exports={domain:mGt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:FUe({},pGt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:zUe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:DUe({editType:"calc"}),tickfont:DUe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:yGt,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var NUe=ye((r_r,BUe)=>{"use strict";var _5=Dr(),_Gt=pv().hasColorscale,xGt=Jh(),bGt=kc().defaults,wGt=Yd(),qUe=qK(),TGt=Sz(),AGt=vv().isTypedArraySpec;function SGt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate");var a=i("line.color",n.colorway[0]);if(_Gt(e,"line")&&_5.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),xGt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function MGt(e,t){function r(u,c){return _5.coerce(e,t,qUe.dimensions,u,c)}var n=r("values"),i=r("visible");if(n&&n.length||(i=t.visible=!1),i){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=_5.isArrayOrTypedArray(a)&&a.length>0||AGt(a),s;o&&(s="array");var l=r("categoryorder",s);l==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&l==="array"&&(t.categoryorder="trace")}}BUe.exports=function(t,r,n,i){function a(u,c){return _5.coerce(t,r,qUe,u,c)}var o=wGt(t,r,{name:"dimensions",handleItemDefaults:MGt}),s=SGt(t,r,n,i,a);bGt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),TGt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var l=i.font;_5.coerceFont(a,"labelfont",l,{overrideDflt:{size:Math.round(l.size)}}),_5.coerceFont(a,"tickfont",l,{autoShadowDflt:!0,overrideDflt:{size:Math.round(l.size/1.2)}})}});var VUe=ye((i_r,UUe)=>{"use strict";var EGt=Km().wrap,CGt=pv().hasColorscale,kGt=gv(),LGt=YO(),PGt=So(),DC=Dr(),IGt=Eo();UUe.exports=function(t,r){var n=DC.filterVisible(r.dimensions);if(n.length===0)return[];var i=n.map(function(g){var P;if(g.categoryorder==="trace")P=null;else if(g.categoryorder==="array")P=g.categoryarray;else{P=LGt(g.values);for(var T=!0,z=0;z=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var JUe=ye((n_r,KUe)=>{"use strict";var Fl=Oa(),GGt=(R2(),ab(I2)).interpolateNumber,HGt=UP(),OC=vf(),mx=Dr(),FC=mx.strTranslate,GUe=So(),BK=cd(),jGt=ru();function WGt(e,t,r,n){var i=t._context.staticPlot,a=e.map(sHt.bind(0,t,r)),o=n.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",i?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,u1),l=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(C){return FC(C.x,C.y)}),l.append("g").attr("class","paths");var u=s.select("g.paths"),c=u.selectAll("path.path").data(function(C){return C.paths},u1);c.attr("fill",function(C){return C.model.color});var f=c.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(C){return C.model.color}).attr("fill-opacity",0);VK(f),c.attr("d",function(C){return C.svgD}),f.empty()||c.sort(NK),c.exit().remove(),c.on("mouseover",XGt).on("mouseout",ZGt).on("click",YGt),l.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(C){return C.dimensions},u1);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(C){return FC(C.x,0)}),d.exit().remove();var v=d.selectAll("g.category").data(function(C){return C.categories},u1),x=v.enter().append("g").attr("class","category");v.attr("transform",function(C){return FC(0,C.y)}),x.append("rect").attr("class","catrect").attr("pointer-events","none"),v.select("rect.catrect").attr("fill","none").attr("width",function(C){return C.width}).attr("height",function(C){return C.height}),jUe(x);var b=v.selectAll("rect.bandrect").data(function(C){return C.bands},u1);b.each(function(){mx.raiseToTop(this)}),b.attr("fill",function(C){return C.color});var p=b.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(C){return C.color}).attr("fill-opacity",0);b.attr("fill",function(C){return C.color}).attr("width",function(C){return C.width}).attr("height",function(C){return C.height}).attr("y",function(C){return C.y}).attr("cursor",function(C){return C.parcatsViewModel.arrangement==="fixed"?"default":C.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),HK(p),b.exit().remove(),x.append("text").attr("class","catlabel").attr("pointer-events","none"),v.select("text.catlabel").attr("text-anchor",function(C){return zC(C)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(C){return zC(C)?C.width+5:-5}).attr("y",function(C){return C.height/2}).text(function(C){return C.model.categoryLabel}).each(function(C){GUe.font(Fl.select(this),C.parcatsViewModel.categorylabelfont),jGt.convertToTspans(Fl.select(this),t)}),x.append("text").attr("class","dimlabel"),v.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(C){return C.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(C){return C.width/2}).attr("y",-5).text(function(C,E){return E===0?C.parcatsViewModel.model.dimensions[C.model.dimensionInd].dimensionLabel:null}).each(function(C){GUe.font(Fl.select(this),C.parcatsViewModel.labelfont)}),v.selectAll("rect.bandrect").on("mouseover",rHt).on("mouseout",iHt),v.exit().remove(),d.call(Fl.behavior.drag().origin(function(C){return{x:C.x,y:0}}).on("dragstart",nHt).on("drag",aHt).on("dragend",oHt)),s.each(function(C){C.traceSelection=Fl.select(this),C.pathSelection=Fl.select(this).selectAll("g.paths").selectAll("path.path"),C.dimensionSelection=Fl.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}KUe.exports=function(e,t,r,n){WGt(r,e,n,t)};function u1(e){return e.key}function zC(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function NK(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),_=Fl.mouse(i)[0];OC.loneHover({trace:a,x:v-s.left+l.left,y:x-s.top+l.top,text:L,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:b,idealAlign:_1&&u.displayInd===l.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var v=s.model.count,x=s.model.categoryLabel,b=v/s.parcatsViewModel.model.count,p={countLabel:v,categoryLabel:x,probabilityLabel:b.toFixed(3)},C=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&C.push(["Count:",p.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&C.push(["P("+p.categoryLabel+"):",p.probabilityLabel].join(" "));var E=C.join("
");return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:E,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:p,eventData:[{data:c._input,fullData:c,count:v,category:x,probability:b}]}}function eHt(e,t,r){var n=[];return Fl.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(WUe(e,t,i))}),n}function tHt(e,t,r){e._fullLayout._calcInverseTransform(e);var n=e._fullLayout._invScaleX,i=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=Fl.select(r).datum(),s=o.categoryViewModel,l=s.parcatsViewModel,u=l.model.dimensions[s.model.dimensionInd],c=l.trace,f=a.y+a.height/2,h,d;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var v=s.model.categoryLabel,x=o.parcatsViewModel.model.count,b=0;o.categoryViewModel.bands.forEach(function(P){P.color===o.color&&(b+=P.count)});var p=s.model.count,C=0;l.pathSelection.each(function(P){P.model.color===o.color&&(C+=P.model.count)});var E=b/x,A=b/C,L=b/p,_={countLabel:b,categoryLabel:v,probabilityLabel:E.toFixed(3)},k=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&k.push(["Count:",_.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(k.push("P(color \u2229 "+v+"): "+_.probabilityLabel),k.push("P("+v+" | color): "+A.toFixed(3)),k.push("P(color | "+v+"): "+L.toFixed(3)));var M=k.join("
"),g=BK.mostReadable(o.color,["black","white"]);return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:M,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:g,fontSize:10,idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:_,eventData:[{data:c._input,fullData:c,category:v,count:x,probability:E,categorycount:p,colorcount:C,bandcolorcount:b}]}}function rHt(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=Fl.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,n=r._fullLayout,i=n._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(QGt(o),WK(o,"plotly_hover",Fl.event)):($Gt(o),jK(o,"plotly_hover",Fl.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=WUe(r,i,o):a==="color"?s=tHt(r,i,o):a==="dimension"&&(s=eHt(r,i,o)),s&&OC.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function iHt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(VK(t.pathSelection),jUe(t.dimensionSelection.selectAll("g.category")),HK(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),OC.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(NK),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?WK(n,"plotly_unhover",Fl.event):jK(n,"plotly_unhover",Fl.event)}}function nHt(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,Fl.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=Fl.mouse(this)[0],n=Fl.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=n&&n<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(i){return i.displayInd}),t.model.dragY=t.y,mx.raiseToTop(this.parentNode),Fl.select(this.parentNode).selectAll("rect.bandrect").each(function(i){i.yc.y+c.height/2&&(a.model.displayInd=c.model.displayInd,c.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){i.model.dragX=Fl.event.x;var f=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[n];f!==void 0&&i.model.dragXh.x&&(i.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=i.model.displayInd}ZK(e.parcatsViewModel),XK(e.parcatsViewModel),YUe(e.parcatsViewModel),ZUe(e.parcatsViewModel)}}function oHt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Fl.select(this).selectAll("text").attr("font-weight","normal");var t={},r=XUe(e.parcatsViewModel),n=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),i=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==n[d]});i&&n.forEach(function(h,d){var v=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+v+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,d){return h!==o[d]}),a){var s=e.model.categories.slice().sort(function(h,d){return h.displayInd-d.displayInd}),l=s.map(function(h){return h.categoryValue}),u=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[l],t["dimensions["+e.model.containerInd+"].ticktext"]=[u],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?WK(e.potentialClickBand,"plotly_click",Fl.event.sourceEvent):jK(e.potentialClickBand,"plotly_click",Fl.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var c=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];c.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,ZK(e.parcatsViewModel),XK(e.parcatsViewModel);var f=Fl.transition().duration(300).ease("cubic-in-out");f.each(function(){YUe(e.parcatsViewModel,!0),ZUe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&HGt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function XUe(e){for(var t,r=e.graphDiv._fullData,n=0;n=0;l--)u+="C"+o[l]+","+(t[l+1]+n)+" "+a[l]+","+(t[l]+n)+" "+(e[l]+r[l])+","+(t[l]+n),u+="l-"+r[l]+",0 ";return u+="Z",u}function XK(e){var t=e.dimensions,r=e.model,n=t.map(function(O){return O.categories.map(function(V){return V.y})}),i=e.model.dimensions.map(function(O){return O.categories.map(function(V){return V.displayInd})}),a=e.model.dimensions.map(function(O){return O.displayInd}),o=e.dimensions.map(function(O){return O.model.dimensionInd}),s=t.map(function(O){return O.x}),l=t.map(function(O){return O.width}),u=[];for(var c in r.paths)r.paths.hasOwnProperty(c)&&u.push(r.paths[c]);function f(O){var V=O.categoryInds.map(function(Z,H){return i[H][Z]}),G=o.map(function(Z){return V[Z]});return G}u.sort(function(O,V){var G=f(O),Z=f(V);return e.sortpaths==="backward"&&(G.reverse(),Z.reverse()),G.push(O.valueInds[0]),Z.push(V.valueInds[0]),e.bundlecolors&&(G.unshift(O.rawColor),Z.unshift(V.rawColor)),GZ?1:0});for(var h=new Array(u.length),d=t[0].model.count,v=t[0].categories.map(function(O){return O.height}).reduce(function(O,V){return O+V}),x=0;x0?p=v*(b.count/d):p=0;for(var C=new Array(n.length),E=0;E1?o=(e.width-2*r-n)/(i-1):o=0,s=r,l=s+o*a;var u=[],c=e.model.maxCats,f=t.categories.length,h=8,d=t.count,v=e.height-h*(c-1),x,b,p,C,E,A=(c-f)*h/2,L=t.categories.map(function(_){return{displayInd:_.displayInd,categoryInd:_.categoryInd}});for(L.sort(function(_,k){return _.displayInd-k.displayInd}),E=0;E0?x=b.count/d*v:x=0,p={key:b.valueInds[0],model:b,width:n,height:x,y:b.dragY!==null?b.dragY:A,bands:[],parcatsViewModel:e},A=A+x+h,u.push(p);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:l,y:0,width:n,model:t,categories:u,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var YK=ye((a_r,$Ue)=>{"use strict";var uHt=JUe();$Ue.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;uHt(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},n,i)}});var eVe=ye(Vz=>{"use strict";var cHt=Id().getModuleCalcData,fHt=YK(),QUe="parcats";Vz.name=QUe;Vz.plot=function(e,t,r,n){var i=cHt(e.calcdata,QUe);if(i.length){var a=i[0];fHt(e,a,r,n)}};Vz.clean=function(e,t,r,n){var i=n._has&&n._has("parcats"),a=t._has&&t._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}});var rVe=ye((s_r,tVe)=>{"use strict";tVe.exports={attributes:qK(),supplyDefaults:NUe(),calc:VUe(),plot:YK(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:eVe(),categories:["noOpacity"],meta:{}}});var nVe=ye((l_r,iVe)=>{"use strict";iVe.exports=rVe()});var c1=ye((u_r,fVe)=>{"use strict";var hHt=Z1(),aVe="1.13.4",uVe='\xA9
OpenStreetMap contributors',oVe=['\xA9 Carto',uVe].join(" "),sVe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),dHt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),cVe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:uVe,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:oVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:oVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:sVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:sVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:dHt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},lVe=hHt(cVe);fVe.exports={requiredVersion:aVe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:cVe,styleValuesNonMapbox:lVe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+aVe+"."].join(` +`),Yr;if(xt&&(Yr=Oc(Mr),xt[Yr]))return xt[Yr].apply(null,Hr);var xi=Function.apply(null,Ir.concat(Mr));return xt&&(xt[Yr]=xi),xi.apply(null,Hr)}return{global:Mi,link:Vr,block:mi,proc:Qi,scope:Ni,cond:Oi,compile:ji}}var ka="xyzw".split(""),Ra=5121,La=1,Na=2,Yn=0,zn=1,Ka=2,bo=3,Xo=4,Ms=5,os=6,Ts="dither",Ho="blend.enable",yl="blend.color",Xs="blend.equation",Ps="blend.func",va="depth.enable",no="depth.func",_s="depth.range",is="depth.mask",$l="colorMask",ku="cull.enable",Yu="cull.face",Nc="frontFace",pu="lineWidth",Uc="polygonOffset.enable",xu="polygonOffset.offset",Ac="sample.alpha",Ua="sample.enable",oo="sample.coverage",Vc="stencil.enable",hc="stencil.mask",Ku="stencil.func",ue="stencil.opFront",w="stencil.opBack",B="scissor.enable",Q="scissor.box",ee="viewport",le="profile",qe="framebuffer",Xe="vert",ot="frag",Tt="elements",Kt="primitive",Jt="count",xr="offset",Pr="instances",ve="vao",be="Width",Re="Height",Be=qe+be,tt=qe+Re,We=ee+be,it=ee+Re,Dt="drawingBuffer",Ht=Dt+be,rr=Dt+Re,dr=[Ps,Xs,Ku,ue,w,oo,ee,Q,xu],Sr=34962,Or=34963,jr=2884,ii=3042,Li=3024,un=2960,sn=2929,In=3089,Kn=32823,Ta=32926,fa=32928,$a=5126,ko=35664,Qa=35665,mo=35666,Bo=5124,Is=35667,As=35668,wo=35669,To=35670,dl=35671,Ul=35672,Lu=35673,au=35674,$s=35675,Ql=35676,dc=35678,Al=35680,Sl=4,X=1028,se=1029,Te=2304,Ne=2305,He=32775,Ye=32776,Ct=519,nt=7680,jt=0,gr=1,yr=32774,Gr=513,qr=36160,_i=36064,bi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Xr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ni={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},gi={cw:Te,ccw:Ne};function Pi(Ee){return Array.isArray(Ee)||Wr(Ee)||Ur(Ee)}function Ai(Ee){return Ee.sort(function(xt,zt){return xt===ee?-1:zt===ee?1:xt=1,Ir>=2,xt)}else if(zt===Xo){var Hr=Ee.data;return new ti(Hr.thisDep,Hr.contextDep,Hr.propDep,xt)}else{if(zt===Ms)return new ti(!1,!1,!1,xt);if(zt===os){for(var Br=!1,Vr=!1,mi=!1,Ni=0;Ni=1&&(Vr=!0),Mi>=2&&(mi=!0)}else Oi.type===Xo&&(Br=Br||Oi.data.thisDep,Vr=Vr||Oi.data.contextDep,mi=mi||Oi.data.propDep)}return new ti(Br,Vr,mi,xt)}else return new ti(zt===bo,zt===Ka,zt===zn,xt)}}var ia=new ti(!1,!1,!1,function(){});function Ea(Ee,xt,zt,Ir,Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr){var Yr=Oi.Record,xi={add:32774,subtract:32778,"reverse subtract":32779};zt.ext_blend_minmax&&(xi.min=He,xi.max=Ye);var Ii=zt.angle_instanced_arrays,ci=zt.webgl_draw_buffers,nn=zt.oes_vertex_array_object,Xi={dirty:!0,profile:Mr.profile},qn={},vi=[],li={},mn={};function Ki(Ve){return Ve.replace(".","_")}function Ui(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),qn[kt]=Xi[kt]=!!at,li[kt]=et}function Bi(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),Array.isArray(at)?(Xi[kt]=at.slice(),qn[kt]=at.slice()):Xi[kt]=qn[kt]=at,mn[kt]=et}function vn(Ve){return!!isNaN(Ve)}Ui(Ts,Li),Ui(Ho,ii),Bi(yl,"blendColor",[0,0,0,0]),Bi(Xs,"blendEquationSeparate",[yr,yr]),Bi(Ps,"blendFuncSeparate",[gr,jt,gr,jt]),Ui(va,sn,!0),Bi(no,"depthFunc",Gr),Bi(_s,"depthRange",[0,1]),Bi(is,"depthMask",!0),Bi($l,$l,[!0,!0,!0,!0]),Ui(ku,jr),Bi(Yu,"cullFace",se),Bi(Nc,Nc,Ne),Bi(pu,pu,1),Ui(Uc,Kn),Bi(xu,"polygonOffset",[0,0]),Ui(Ac,Ta),Ui(Ua,fa),Bi(oo,"sampleCoverage",[1,!1]),Ui(Vc,un),Bi(hc,"stencilMask",-1),Bi(Ku,"stencilFunc",[Ct,0,-1]),Bi(ue,"stencilOpSeparate",[X,nt,nt,nt]),Bi(w,"stencilOpSeparate",[se,nt,nt,nt]),Ui(B,In),Bi(Q,"scissor",[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]),Bi(ee,ee,[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]);var Un={gl:Ee,context:Qi,strings:xt,next:qn,current:Xi,draw:Hn,elements:Br,buffer:Hr,shader:Mi,attributes:Oi.state,vao:Oi,uniforms:Ni,framebuffer:mi,extensions:zt,timer:ji,isBufferArgs:Pi},na={primTypes:Mn,compareFuncs:Xr,blendFuncs:bi,blendEquations:xi,stencilOps:ni,glTypes:Hi,orientationType:gi};ci&&(na.backBuffer=[se],na.drawBuffer=M(Ir.maxDrawbuffers,function(Ve){return Ve===0?[0]:M(Ve,function(et){return _i+et})}));var Yi=0;function Ln(){var Ve=$n({cache:si}),et=Ve.link,at=Ve.global;Ve.id=Yi++,Ve.batchId="0";var kt=et(Un),Ot=Ve.shared={props:"a0"};Object.keys(Un).forEach(function(Pt){Ot[Pt]=at.def(kt,".",Pt)});var It=Ve.next={},Bt=Ve.current={};Object.keys(mn).forEach(function(Pt){Array.isArray(Xi[Pt])&&(It[Pt]=at.def(Ot.next,".",Pt),Bt[Pt]=at.def(Ot.current,".",Pt))});var Rt=Ve.constants={};Object.keys(na).forEach(function(Pt){Rt[Pt]=at.def(JSON.stringify(na[Pt]))}),Ve.invoke=function(Pt,ht){switch(ht.type){case Yn:var cr=["this",Ot.context,Ot.props,Ve.batchId];return Pt.def(et(ht.data),".call(",cr.slice(0,Math.max(ht.data.length+1,4)),")");case zn:return Pt.def(Ot.props,ht.data);case Ka:return Pt.def(Ot.context,ht.data);case bo:return Pt.def("this",ht.data);case Xo:return ht.data.append(Ve,Pt),ht.data.ref;case Ms:return ht.data.toString();case os:return ht.data.map(function(br){return Ve.invoke(Pt,br)})}},Ve.attribCache={};var mt={};return Ve.scopeAttrib=function(Pt){var ht=xt.id(Pt);if(ht in mt)return mt[ht];var cr=Oi.scope[ht];cr||(cr=Oi.scope[ht]=new Yr);var br=mt[ht]=et(cr);return br},Ve}function ra(Ve){var et=Ve.static,at=Ve.dynamic,kt;if(le in et){var Ot=!!et[le];kt=Cn(function(Bt,Rt){return Ot}),kt.enable=Ot}else if(le in at){var It=at[le];kt=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}return kt}function oa(Ve,et){var at=Ve.static,kt=Ve.dynamic;if(qe in at){var Ot=at[qe];return Ot?(Ot=mi.getFramebuffer(Ot),Cn(function(Bt,Rt){var mt=Bt.link(Ot),Pt=Bt.shared;Rt.set(Pt.framebuffer,".next",mt);var ht=Pt.context;return Rt.set(ht,"."+Be,mt+".width"),Rt.set(ht,"."+tt,mt+".height"),mt})):Cn(function(Bt,Rt){var mt=Bt.shared;Rt.set(mt.framebuffer,".next","null");var Pt=mt.context;return Rt.set(Pt,"."+Be,Pt+"."+Ht),Rt.set(Pt,"."+tt,Pt+"."+rr),"null"})}else if(qe in kt){var It=kt[qe];return Nn(It,function(Bt,Rt){var mt=Bt.invoke(Rt,It),Pt=Bt.shared,ht=Pt.framebuffer,cr=Rt.def(ht,".getFramebuffer(",mt,")");Rt.set(ht,".next",cr);var br=Pt.context;return Rt.set(br,"."+Be,cr+"?"+cr+".width:"+br+"."+Ht),Rt.set(br,"."+tt,cr+"?"+cr+".height:"+br+"."+rr),cr})}else return null}function ba(Ve,et,at){var kt=Ve.static,Ot=Ve.dynamic;function It(mt){if(mt in kt){var Pt=kt[mt],ht=!0,cr=Pt.x|0,br=Pt.y|0,Nr,Ri;return"width"in Pt?Nr=Pt.width|0:ht=!1,"height"in Pt?Ri=Pt.height|0:ht=!1,new ti(!ht&&et&&et.thisDep,!ht&&et&&et.contextDep,!ht&&et&&et.propDep,function(gn,tn){var Ci=gn.shared.context,qi=Nr;"width"in Pt||(qi=tn.def(Ci,".",Be,"-",cr));var Vi=Ri;return"height"in Pt||(Vi=tn.def(Ci,".",tt,"-",br)),[cr,br,qi,Vi]})}else if(mt in Ot){var hi=Ot[mt],wi=Nn(hi,function(gn,tn){var Ci=gn.invoke(tn,hi),qi=gn.shared.context,Vi=tn.def(Ci,".x|0"),on=tn.def(Ci,".y|0"),On=tn.def('"width" in ',Ci,"?",Ci,".width|0:","(",qi,".",Be,"-",Vi,")"),Ja=tn.def('"height" in ',Ci,"?",Ci,".height|0:","(",qi,".",tt,"-",on,")");return[Vi,on,On,Ja]});return et&&(wi.thisDep=wi.thisDep||et.thisDep,wi.contextDep=wi.contextDep||et.contextDep,wi.propDep=wi.propDep||et.propDep),wi}else return et?new ti(et.thisDep,et.contextDep,et.propDep,function(gn,tn){var Ci=gn.shared.context;return[0,0,tn.def(Ci,".",Be),tn.def(Ci,".",tt)]}):null}var Bt=It(ee);if(Bt){var Rt=Bt;Bt=new ti(Bt.thisDep,Bt.contextDep,Bt.propDep,function(mt,Pt){var ht=Rt.append(mt,Pt),cr=mt.shared.context;return Pt.set(cr,"."+We,ht[2]),Pt.set(cr,"."+it,ht[3]),ht})}return{viewport:Bt,scissor_box:It(Q)}}function ns(Ve,et){var at=Ve.static,kt=typeof at[ot]=="string"&&typeof at[Xe]=="string";if(kt){if(Object.keys(et.dynamic).length>0)return null;var Ot=et.static,It=Object.keys(Ot);if(It.length>0&&typeof Ot[It[0]]=="number"){for(var Bt=[],Rt=0;Rt"+Vi+"?"+ht+".constant["+Vi+"]:0;"}).join(""),"}}else{","if(",Nr,"(",ht,".buffer)){",gn,"=",Ri,".createStream(",Sr,",",ht,".buffer);","}else{",gn,"=",Ri,".getBuffer(",ht,".buffer);","}",tn,'="type" in ',ht,"?",br.glTypes,"[",ht,".type]:",gn,".dtype;",hi.normalized,"=!!",ht,".normalized;");function Ci(qi){Pt(hi[qi],"=",ht,".",qi,"|0;")}return Ci("size"),Ci("offset"),Ci("stride"),Ci("divisor"),Pt("}}"),Pt.exit("if(",hi.isStream,"){",Ri,".destroyStream(",gn,");","}"),hi}Ot[It]=Nn(Bt,Rt)}),Ot}function ol(Ve){var et=Ve.static,at=Ve.dynamic,kt={};return Object.keys(et).forEach(function(Ot){var It=et[Ot];kt[Ot]=Cn(function(Bt,Rt){return typeof It=="number"||typeof It=="boolean"?""+It:Bt.link(It)})}),Object.keys(at).forEach(function(Ot){var It=at[Ot];kt[Ot]=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}),kt}function Vl(Ve,et,at,kt,Ot){var It=Ve.static,Bt=Ve.dynamic,Rt=ns(Ve,et),mt=oa(Ve,Ot),Pt=ba(Ve,mt,Ot),ht=Va(Ve,Ot),cr=El(Ve,Ot),br=Ys(Ve,Ot,Rt);function Nr(Ci){var qi=Pt[Ci];qi&&(cr[Ci]=qi)}Nr(ee),Nr(Ki(Q));var Ri=Object.keys(cr).length>0,hi={framebuffer:mt,draw:ht,shader:br,state:cr,dirty:Ri,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(hi.profile=ra(Ve,Ot),hi.uniforms=zo(at,Ot),hi.drawVAO=hi.scopeVAO=ht.vao,!hi.drawVAO&&br.program&&!Rt&&zt.angle_instanced_arrays&&ht.static.elements){var wi=!0,gn=br.program.attributes.map(function(Ci){var qi=et.static[Ci];return wi=wi&&!!qi,qi});if(wi&&gn.length>0){var tn=Oi.getVAO(Oi.createVAO({attributes:gn,elements:ht.static.elements}));hi.drawVAO=new ti(null,null,null,function(Ci,qi){return Ci.link(tn)}),hi.useVAO=!0}}return Rt?hi.useVAO=!0:hi.attributes=el(et,Ot),hi.context=ol(kt,Ot),hi}function ls(Ve,et,at){var kt=Ve.shared,Ot=kt.context,It=Ve.scope();Object.keys(at).forEach(function(Bt){et.save(Ot,"."+Bt);var Rt=at[Bt],mt=Rt.append(Ve,et);Array.isArray(mt)?It(Ot,".",Bt,"=[",mt.join(),"];"):It(Ot,".",Bt,"=",mt,";")}),et(It)}function Gs(Ve,et,at,kt){var Ot=Ve.shared,It=Ot.gl,Bt=Ot.framebuffer,Rt;ci&&(Rt=et.def(Ot.extensions,".webgl_draw_buffers"));var mt=Ve.constants,Pt=mt.drawBuffer,ht=mt.backBuffer,cr;at?cr=at.append(Ve,et):cr=et.def(Bt,".next"),kt||et("if(",cr,"!==",Bt,".cur){"),et("if(",cr,"){",It,".bindFramebuffer(",qr,",",cr,".framebuffer);"),ci&&et(Rt,".drawBuffersWEBGL(",Pt,"[",cr,".colorAttachments.length]);"),et("}else{",It,".bindFramebuffer(",qr,",null);"),ci&&et(Rt,".drawBuffersWEBGL(",ht,");"),et("}",Bt,".cur=",cr,";"),kt||et("}")}function Ks(Ve,et,at){var kt=Ve.shared,Ot=kt.gl,It=Ve.current,Bt=Ve.next,Rt=kt.current,mt=kt.next,Pt=Ve.cond(Rt,".dirty");vi.forEach(function(ht){var cr=Ki(ht);if(!(cr in at.state)){var br,Nr;if(cr in Bt){br=Bt[cr],Nr=It[cr];var Ri=M(Xi[cr].length,function(wi){return Pt.def(br,"[",wi,"]")});Pt(Ve.cond(Ri.map(function(wi,gn){return wi+"!=="+Nr+"["+gn+"]"}).join("||")).then(Ot,".",mn[cr],"(",Ri,");",Ri.map(function(wi,gn){return Nr+"["+gn+"]="+wi}).join(";"),";"))}else{br=Pt.def(mt,".",cr);var hi=Ve.cond(br,"!==",Rt,".",cr);Pt(hi),cr in li?hi(Ve.cond(br).then(Ot,".enable(",li[cr],");").else(Ot,".disable(",li[cr],");"),Rt,".",cr,"=",br,";"):hi(Ot,".",mn[cr],"(",br,");",Rt,".",cr,"=",br,";")}}}),Object.keys(at.state).length===0&&Pt(Rt,".dirty=false;"),et(Pt)}function wa(Ve,et,at,kt){var Ot=Ve.shared,It=Ve.current,Bt=Ot.current,Rt=Ot.gl,mt;Ai(Object.keys(at)).forEach(function(Pt){var ht=at[Pt];if(!(kt&&!kt(ht))){var cr=ht.append(Ve,et);if(li[Pt]){var br=li[Pt];Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Ve.cond(mt).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",mt,";")):(et(Ve.cond(cr).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",cr,";"))}else if(En(cr)){var Nr=It[Pt];et(Rt,".",mn[Pt],"(",cr,");",cr.map(function(Ri,hi){return Nr+"["+hi+"]="+Ri}).join(";"),";")}else Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Rt,".",mn[Pt],"(",mt,");",Bt,".",Pt,"=",mt,";")):et(Rt,".",mn[Pt],"(",cr,");",Bt,".",Pt,"=",cr,";")}})}function sl(Ve,et){Ii&&(Ve.instancing=et.def(Ve.shared.extensions,".angle_instanced_arrays"))}function io(Ve,et,at,kt,Ot){var It=Ve.shared,Bt=Ve.stats,Rt=It.current,mt=It.timer,Pt=at.profile;function ht(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var cr,br;function Nr(Ci){cr=et.def(),Ci(cr,"=",ht(),";"),typeof Ot=="string"?Ci(Bt,".count+=",Ot,";"):Ci(Bt,".count++;"),ji&&(kt?(br=et.def(),Ci(br,"=",mt,".getNumPendingQueries();")):Ci(mt,".beginQuery(",Bt,");"))}function Ri(Ci){Ci(Bt,".cpuTime+=",ht(),"-",cr,";"),ji&&(kt?Ci(mt,".pushScopeStats(",br,",",mt,".getNumPendingQueries(),",Bt,");"):Ci(mt,".endQuery();"))}function hi(Ci){var qi=et.def(Rt,".profile");et(Rt,".profile=",Ci,";"),et.exit(Rt,".profile=",qi,";")}var wi;if(Pt){if(Rn(Pt)){Pt.enable?(Nr(et),Ri(et.exit),hi("true")):hi("false");return}wi=Pt.append(Ve,et),hi(wi)}else wi=et.def(Rt,".profile");var gn=Ve.block();Nr(gn),et("if(",wi,"){",gn,"}");var tn=Ve.block();Ri(tn),et.exit("if(",wi,"){",tn,"}")}function Y(Ve,et,at,kt,Ot){var It=Ve.shared;function Bt(mt){switch(mt){case ko:case Is:case dl:return 2;case Qa:case As:case Ul:return 3;case mo:case wo:case Lu:return 4;default:return 1}}function Rt(mt,Pt,ht){var cr=It.gl,br=et.def(mt,".location"),Nr=et.def(It.attributes,"[",br,"]"),Ri=ht.state,hi=ht.buffer,wi=[ht.x,ht.y,ht.z,ht.w],gn=["buffer","normalized","offset","stride"];function tn(){et("if(!",Nr,".buffer){",cr,".enableVertexAttribArray(",br,");}");var qi=ht.type,Vi;if(ht.size?Vi=et.def(ht.size,"||",Pt):Vi=Pt,et("if(",Nr,".type!==",qi,"||",Nr,".size!==",Vi,"||",gn.map(function(On){return Nr+"."+On+"!=="+ht[On]}).join("||"),"){",cr,".bindBuffer(",Sr,",",hi,".buffer);",cr,".vertexAttribPointer(",[br,Vi,qi,ht.normalized,ht.stride,ht.offset],");",Nr,".type=",qi,";",Nr,".size=",Vi,";",gn.map(function(On){return Nr+"."+On+"="+ht[On]+";"}).join(""),"}"),Ii){var on=ht.divisor;et("if(",Nr,".divisor!==",on,"){",Ve.instancing,".vertexAttribDivisorANGLE(",[br,on],");",Nr,".divisor=",on,";}")}}function Ci(){et("if(",Nr,".buffer){",cr,".disableVertexAttribArray(",br,");",Nr,".buffer=null;","}if(",ka.map(function(qi,Vi){return Nr+"."+qi+"!=="+wi[Vi]}).join("||"),"){",cr,".vertexAttrib4f(",br,",",wi,");",ka.map(function(qi,Vi){return Nr+"."+qi+"="+wi[Vi]+";"}).join(""),"}")}Ri===La?tn():Ri===Na?Ci():(et("if(",Ri,"===",La,"){"),tn(),et("}else{"),Ci(),et("}"))}kt.forEach(function(mt){var Pt=mt.name,ht=at.attributes[Pt],cr;if(ht){if(!Ot(ht))return;cr=ht.append(Ve,et)}else{if(!Ot(ia))return;var br=Ve.scopeAttrib(Pt);cr={},Object.keys(new Yr).forEach(function(Nr){cr[Nr]=et.def(br,".",Nr)})}Rt(Ve.link(mt),Bt(mt.info.type),cr)})}function D(Ve,et,at,kt,Ot,It){for(var Bt=Ve.shared,Rt=Bt.gl,mt,Pt=0;Pt1){for(var co=[],rs=[],so=0;so>1)",hi],");")}function on(){at(wi,".drawArraysInstancedANGLE(",[br,Nr,Ri,hi],");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}function qi(){function Vi(){at(It+".drawElements("+[br,Ri,gn,Nr+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function on(){at(It+".drawArrays("+[br,Nr,Ri]+");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}Ii&&(typeof hi!="number"||hi>=0)?typeof hi=="string"?(at("if(",hi,">0){"),Ci(),at("}else if(",hi,"<0){"),qi(),at("}")):Ci():qi()}function q(Ve,et,at,kt,Ot){var It=Ln(),Bt=It.proc("body",Ot);return Ii&&(It.instancing=Bt.def(It.shared.extensions,".angle_instanced_arrays")),Ve(It,Bt,at,kt),It.compile().body}function K(Ve,et,at,kt){sl(Ve,et),at.useVAO?at.drawVAO?et(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,et),");"):et(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(et(Ve.shared.vao,".setVAO(null);"),Y(Ve,et,at,kt.attributes,function(){return!0})),D(Ve,et,at,kt.uniforms,function(){return!0},!1),J(Ve,et,et,at)}function de(Ve,et){var at=Ve.proc("draw",1);sl(Ve,at),ls(Ve,at,et.context),Gs(Ve,at,et.framebuffer),Ks(Ve,at,et),wa(Ve,at,et.state),io(Ve,at,et,!1,!0);var kt=et.shader.progVar.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",kt,".program);"),et.shader.program)K(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var Ot=Ve.global.def("{}"),It=at.def(kt,".id"),Bt=at.def(Ot,"[",It,"]");at(Ve.cond(Bt).then(Bt,".call(this,a0);").else(Bt,"=",Ot,"[",It,"]=",Ve.link(function(Rt){return q(K,Ve,et,Rt,1)}),"(",kt,");",Bt,".call(this,a0);"))}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ne(Ve,et,at,kt){Ve.batchId="a1",sl(Ve,et);function Ot(){return!0}Y(Ve,et,at,kt.attributes,Ot),D(Ve,et,at,kt.uniforms,Ot,!1),J(Ve,et,et,at)}function we(Ve,et,at,kt){sl(Ve,et);var Ot=at.contextDep,It=et.def(),Bt="a0",Rt="a1",mt=et.def();Ve.shared.props=mt,Ve.batchId=It;var Pt=Ve.scope(),ht=Ve.scope();et(Pt.entry,"for(",It,"=0;",It,"<",Rt,";++",It,"){",mt,"=",Bt,"[",It,"];",ht,"}",Pt.exit);function cr(gn){return gn.contextDep&&Ot||gn.propDep}function br(gn){return!cr(gn)}if(at.needsContext&&ls(Ve,ht,at.context),at.needsFramebuffer&&Gs(Ve,ht,at.framebuffer),wa(Ve,ht,at.state,cr),at.profile&&cr(at.profile)&&io(Ve,ht,at,!1,!0),kt)at.useVAO?at.drawVAO?cr(at.drawVAO)?ht(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,ht),");"):Pt(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Pt),");"):Pt(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Pt(Ve.shared.vao,".setVAO(null);"),Y(Ve,Pt,at,kt.attributes,br),Y(Ve,ht,at,kt.attributes,cr)),D(Ve,Pt,at,kt.uniforms,br,!1),D(Ve,ht,at,kt.uniforms,cr,!0),J(Ve,Pt,ht,at);else{var Nr=Ve.global.def("{}"),Ri=at.shader.progVar.append(Ve,ht),hi=ht.def(Ri,".id"),wi=ht.def(Nr,"[",hi,"]");ht(Ve.shared.gl,".useProgram(",Ri,".program);","if(!",wi,"){",wi,"=",Nr,"[",hi,"]=",Ve.link(function(gn){return q(ne,Ve,at,gn,2)}),"(",Ri,");}",wi,".call(this,a0[",It,"],",It,");")}}function Ue(Ve,et){var at=Ve.proc("batch",2);Ve.batchId="0",sl(Ve,at);var kt=!1,Ot=!0;Object.keys(et.context).forEach(function(Nr){kt=kt||et.context[Nr].propDep}),kt||(ls(Ve,at,et.context),Ot=!1);var It=et.framebuffer,Bt=!1;It?(It.propDep?kt=Bt=!0:It.contextDep&&kt&&(Bt=!0),Bt||Gs(Ve,at,It)):Gs(Ve,at,null),et.state.viewport&&et.state.viewport.propDep&&(kt=!0);function Rt(Nr){return Nr.contextDep&&kt||Nr.propDep}Ks(Ve,at,et),wa(Ve,at,et.state,function(Nr){return!Rt(Nr)}),(!et.profile||!Rt(et.profile))&&io(Ve,at,et,!1,"a1"),et.contextDep=kt,et.needsContext=Ot,et.needsFramebuffer=Bt;var mt=et.shader.progVar;if(mt.contextDep&&kt||mt.propDep)we(Ve,at,et,null);else{var Pt=mt.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Pt,".program);"),et.shader.program)we(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var ht=Ve.global.def("{}"),cr=at.def(Pt,".id"),br=at.def(ht,"[",cr,"]");at(Ve.cond(br).then(br,".call(this,a0,a1);").else(br,"=",ht,"[",cr,"]=",Ve.link(function(Nr){return q(we,Ve,et,Nr,2)}),"(",Pt,");",br,".call(this,a0,a1);"))}}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ft(Ve,et){var at=Ve.proc("scope",3);Ve.batchId="a2";var kt=Ve.shared,Ot=kt.current;if(ls(Ve,at,et.context),et.framebuffer&&et.framebuffer.append(Ve,at),Ai(Object.keys(et.state)).forEach(function(Rt){var mt=et.state[Rt],Pt=mt.append(Ve,at);En(Pt)?Pt.forEach(function(ht,cr){vn(ht)?at.set(Ve.next[Rt],"["+cr+"]",ht):at.set(Ve.next[Rt],"["+cr+"]",Ve.link(ht,{stable:!0}))}):Rn(mt)?at.set(kt.next,"."+Rt,Ve.link(Pt,{stable:!0})):at.set(kt.next,"."+Rt,Pt)}),io(Ve,at,et,!0,!0),[Tt,xr,Jt,Pr,Kt].forEach(function(Rt){var mt=et.draw[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.draw,"."+Rt,Pt):at.set(kt.draw,"."+Rt,Ve.link(Pt),{stable:!0})}}),Object.keys(et.uniforms).forEach(function(Rt){var mt=et.uniforms[Rt].append(Ve,at);Array.isArray(mt)&&(mt="["+mt.map(function(Pt){return vn(Pt)?Pt:Ve.link(Pt,{stable:!0})})+"]"),at.set(kt.uniforms,"["+Ve.link(xt.id(Rt),{stable:!0})+"]",mt)}),Object.keys(et.attributes).forEach(function(Rt){var mt=et.attributes[Rt].append(Ve,at),Pt=Ve.scopeAttrib(Rt);Object.keys(new Yr).forEach(function(ht){at.set(Pt,"."+ht,mt[ht])})}),et.scopeVAO){var It=et.scopeVAO.append(Ve,at);vn(It)?at.set(kt.vao,".targetVAO",It):at.set(kt.vao,".targetVAO",Ve.link(It,{stable:!0}))}function Bt(Rt){var mt=et.shader[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.shader,"."+Rt,Pt):at.set(kt.shader,"."+Rt,Ve.link(Pt,{stable:!0}))}}Bt(Xe),Bt(ot),Object.keys(et.state).length>0&&(at(Ot,".dirty=true;"),at.exit(Ot,".dirty=true;")),at("a1(",Ve.shared.context,",a0,",Ve.batchId,");")}function Zt(Ve){if(!(typeof Ve!="object"||En(Ve))){for(var et=Object.keys(Ve),at=0;at=0;--q){var K=Un[q];K&&K(si,null,0)}zt.flush(),Mi&&Mi.update()}function ba(){!ra&&Un.length>0&&(ra=d.next(oa))}function ns(){ra&&(d.cancel(oa),ra=null)}function Ys(q){q.preventDefault(),Hr=!0,ns(),na.forEach(function(K){K()})}function Va(q){zt.getError(),Hr=!1,Br.restore(),qn.restore(),Ii.restore(),vi.restore(),li.restore(),mn.restore(),nn.restore(),Mi&&Mi.restore(),Ki.procs.refresh(),ba(),Yi.forEach(function(K){K()})}vn&&(vn.addEventListener(Fo,Ys,!1),vn.addEventListener(Uo,Va,!1));function El(){Un.length=0,ns(),vn&&(vn.removeEventListener(Fo,Ys),vn.removeEventListener(Uo,Va)),qn.clear(),mn.clear(),li.clear(),nn.clear(),vi.clear(),ci.clear(),Ii.clear(),Mi&&Mi.clear(),Ln.forEach(function(q){q()})}function zo(q){function K(It){var Bt=e({},It);delete Bt.uniforms,delete Bt.attributes,delete Bt.context,delete Bt.vao,"stencil"in Bt&&Bt.stencil.op&&(Bt.stencil.opBack=Bt.stencil.opFront=Bt.stencil.op,delete Bt.stencil.op);function Rt(mt){if(mt in Bt){var Pt=Bt[mt];delete Bt[mt],Object.keys(Pt).forEach(function(ht){Bt[mt+"."+ht]=Pt[ht]})}}return Rt("blend"),Rt("depth"),Rt("cull"),Rt("stencil"),Rt("polygonOffset"),Rt("scissor"),Rt("sample"),"vao"in It&&(Bt.vao=It.vao),Bt}function de(It,Bt){var Rt={},mt={};return Object.keys(It).forEach(function(Pt){var ht=It[Pt];if(h.isDynamic(ht)){mt[Pt]=h.unbox(ht,Pt);return}else if(Bt&&Array.isArray(ht)){for(var cr=0;cr0)return Ve.call(this,kt(It|0),It|0)}else if(Array.isArray(It)){if(It.length)return Ve.call(this,It,It.length)}else return qt.call(this,It)}return e(Ot,{stats:Zt,destroy:function(){hr.destroy()}})}var el=mn.setFBO=zo({framebuffer:h.define.call(null,Qs,"framebuffer")});function ol(q,K){var de=0;Ki.procs.poll();var ne=K.color;ne&&(zt.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Es),"depth"in K&&(zt.clearDepth(+K.depth),de|=Zs),"stencil"in K&&(zt.clearStencil(K.stencil|0),de|=Gn),zt.clear(de)}function Vl(q){if("framebuffer"in q)if(q.framebuffer&&q.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)el(e({framebuffer:q.framebuffer.faces[K]},q),ol);else el(q,ol);else ol(null,q)}function ls(q){Un.push(q);function K(){var de=vl(Un,q);function ne(){var we=vl(Un,ne);Un[we]=Un[Un.length-1],Un.length-=1,Un.length<=0&&ns()}Un[de]=ne}return ba(),{cancel:K}}function Gs(){var q=Bi.viewport,K=Bi.scissor_box;q[0]=q[1]=K[0]=K[1]=0,si.viewportWidth=si.framebufferWidth=si.drawingBufferWidth=q[2]=K[2]=zt.drawingBufferWidth,si.viewportHeight=si.framebufferHeight=si.drawingBufferHeight=q[3]=K[3]=zt.drawingBufferHeight}function Ks(){si.tick+=1,si.time=sl(),Gs(),Ki.procs.poll()}function wa(){vi.refresh(),Gs(),Ki.procs.refresh(),Mi&&Mi.update()}function sl(){return(v()-Hn)/1e3}wa();function io(q,K){var de;switch(q){case"frame":return ls(K);case"lost":de=na;break;case"restore":de=Yi;break;case"destroy":de=Ln;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Ui,destroy:El,_gl:zt,_refresh:wa,poll:function(){Ks(),Mi&&Mi.update()},now:sl,stats:mi,getCachedCode:Y,preloadCachedCode:D});return xt.onDone(null,J),J}return Sc})});var Tz=ye((m1r,pBe)=>{"use strict";var nUt=MX(),aUt=vBe();pBe.exports=function(t,r,n){var i=t._fullLayout,a=!0;return i._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(n);return}if(!(o.pick&&!i._has("parcoords"))){try{o.regl=aUt({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:n||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||nUt({container:i._glcontainer.node()}),a}});var cK=ye((uK,xBe)=>{"use strict";var gBe=uY(),mBe=NY(),oUt=nqe(),yBe=dBe(),lK=Dr(),sUt=Mg().selectMode,lUt=Tz(),uUt=Ru(),cUt=mU(),fUt=aY().styleTextSelection,_Be={};function hUt(e,t,r,n){var i=e._size,a=e.width*n,o=e.height*n,s=i.l*n,l=i.b*n,u=i.r*n,c=i.t*n,f=i.w*n,h=i.h*n;return[s+t.domain[0]*f,l+r.domain[0]*h,a-u-(1-t.domain[1])*f,o-c-(1-r.domain[1])*h]}var uK=xBe.exports=function(t,r,n){if(n.length){var i=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,l,u;if(a){var c=lUt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],_Be);if(!c){a.init();return}var f=a.count,h=i._glcanvas.data()[0].regl;if(cUt(t,r,n),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=oUt(h)),a.line2d===!0&&(a.line2d=mBe(h)),a.scatter2d===!0&&(a.scatter2d=gBe(h)),a.fill2d===!0&&(a.fill2d=mBe(h)),a.glText===!0)for(a.glText=new Array(f),l=0;la.glText.length){var d=f-a.glText.length;for(l=0;loe&&(isNaN(re[_e])||isNaN(re[_e+1]));)_e-=2;j.positions=re.slice(oe,_e+2)}return j}),a.line2d.update(a.lineOptions)),a.error2d){var b=(a.errorXOptions||[]).concat(a.errorYOptions||[]);a.error2d.update(b)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=lK.repeat(null,f),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(j,re){var oe=n[re];if(!(!j||!oe||!oe[0]||!oe[0].trace)){var _e=oe[0],Me=_e.trace,ke=_e.t,me=a.lineOptions[re],ie,Se,Le=[];Me._ownfill&&Le.push(re),Me._nexttrace&&Le.push(re+1),Le.length&&(a.fillOrder[re]=Le);var Ae=[],De=me&&me.positions||ke.positions,Pe,ge;if(Me.fill==="tozeroy"){for(Pe=0;PePe&&isNaN(De[ge+1]);)ge-=2;De[Pe+1]!==0&&(Ae=[De[Pe],0]),Ae=Ae.concat(De.slice(Pe,ge+2)),De[ge+1]!==0&&(Ae=Ae.concat([De[ge],0]))}else if(Me.fill==="tozerox"){for(Pe=0;PePe&&isNaN(De[ge]);)ge-=2;De[Pe]!==0&&(Ae=[0,De[Pe+1]]),Ae=Ae.concat(De.slice(Pe,ge+2)),De[ge]!==0&&(Ae=Ae.concat([0,De[ge+1]]))}else if(Me.fill==="toself"||Me.fill==="tonext"){for(Ae=[],ie=0,j.splitNull=!0,Se=0;Se-1;for(l=0;l{"use strict";var bBe=Bze();bBe.plot=cK();wBe.exports=bBe});var SBe=ye((_1r,ABe)=>{"use strict";ABe.exports=TBe()});var fK=ye((x1r,kBe)=>{"use strict";var dUt=pf(),CBe=Tu(),MBe=df().axisHoverFormat,vUt=Qo().hovertemplateAttrs,CC=lC(),pUt=hd().idRegex,gUt=pl().templatedArray,v5=Ao().extendFlat,o1=dUt.marker,mUt=o1.line,yUt=v5(CBe("marker.line",{editTypeOverride:"calc"}),{width:v5({},mUt.width,{editType:"calc"}),editType:"calc"}),Az=v5(CBe("marker"),{symbol:o1.symbol,angle:o1.angle,size:v5({},o1.size,{editType:"markerSize"}),sizeref:o1.sizeref,sizemin:o1.sizemin,sizemode:o1.sizemode,opacity:o1.opacity,colorbar:o1.colorbar,line:yUt,editType:"calc"});Az.color.editType=Az.cmin.editType=Az.cmax.editType="style";function EBe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:pUt[e],editType:"plot"}}}kBe.exports={dimensions:gUt("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:v5({},CC.text,{}),hovertext:v5({},CC.hovertext,{}),hovertemplate:vUt(),xhoverformat:MBe("x"),yhoverformat:MBe("y"),marker:Az,xaxes:EBe("x"),yaxes:EBe("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:CC.selected.marker,editType:"calc"},unselected:{marker:CC.unselected.marker,editType:"calc"},opacity:CC.opacity}});var Sz=ye((b1r,LBe)=>{"use strict";LBe.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var hK=Dr(),_Ut=Yd(),PBe=fK(),xUt=Ru(),bUt=$p(),wUt=Sz(),TUt=BF().isOpenSymbol;IBe.exports=function(t,r,n,i){function a(d,v){return hK.coerce(t,r,PBe,d,v)}var o=_Ut(t,r,{name:"dimensions",handleItemDefaults:AUt}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),c=wUt(r,o,"values");if(!c||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),bUt(t,r,n,i,a,{noAngleRef:!0,noStandOff:!0});var f=TUt(r.marker.symbol),h=xUt.isBubble(r);a("marker.line.width",f||h?1:0),SUt(t,r,i,a),hK.coerceSelectionMarkerOpacity(r,a)};function AUt(e,t){function r(i,a){return hK.coerce(e,t,PBe.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function SUt(e,t,r,n){var i=t.dimensions,a=i.length,o=t.showupperhalf,s=t.showlowerhalf,l=t.diagonal.visible,u,c,f=new Array(a),h=new Array(a);for(u=0;uc&&o||u{"use strict";var DBe=Dr();FBe.exports=function(t,r){var n=t._fullLayout,i=r.uid,a=n._splomScenes;a||(a=n._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},l=a[r.uid];return l||(l=a[i]=DBe.extendFlat({},o,s),l.draw=function(){l.matrix&&l.matrix.draw&&(l.selectBatch.length||l.unselectBatch.length?l.matrix.draw(l.unselectBatch,l.selectBatch):l.matrix.draw()),l.dirty=!1},l.destroy=function(){l.matrix&&l.matrix.destroy&&l.matrix.destroy(),l.matrixOptions=null,l.selectBatch=null,l.unselectBatch=null,l=null}),l.dirty||DBe.extendFlat(l,o),l}});var BBe=ye((A1r,qBe)=>{"use strict";var dK=Dr(),Mz=hf(),MUt=q0().calcMarkerSize,EUt=q0().calcAxisExpansion,CUt=z0(),OBe=Y2().markerSelection,kUt=Y2().markerStyle,LUt=zBe(),PUt=hs().BADNUM,IUt=ox().TOO_MANY_POINTS;qBe.exports=function(t,r){var n=r.dimensions,i=r._length,a={},o=a.cdata=[],s=a.data=[],l=r._visibleDims=[],u,c,f,h,d;function v(E,A){for(var L=E.makeCalcdata({v:A.values,vcalendar:r.calendar},"v"),x=0;xIUt,p;for(b?p=a.sizeAvg||Math.max(a.size,3):p=MUt(r,i),c=0;c{(function(){var e,t,r,n,i,a;typeof performance!="undefined"&&performance!==null&&performance.now?kC.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(kC.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),a=process.uptime()*1e9,i=n-a):Date.now?(kC.exports=function(){return Date.now()-r},r=Date.now()):(kC.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(NBe)});var GBe=ye((S1r,kz)=>{var RUt=UBe(),s1=window,Ez=["moz","webkit"],g5="AnimationFrame",m5=s1["request"+g5],LC=s1["cancel"+g5]||s1["cancelRequest"+g5];for(p5=0;!m5&&p5{HBe.exports=function(t,r){var n=typeof t=="number",i=typeof r=="number";n&&!i?(r=t,t=0):!n&&!i&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,l=t;s{"use strict";var DUt=uY(),FUt=Xm(),zUt=j2(),WBe=GBe(),OUt=jBe(),pK=t5(),qUt=W2();ZBe.exports=vx;function vx(e,t){if(!(this instanceof vx))return new vx(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=DUt(e),this.canvas=this.scatter.canvas}vx.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=WBe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,WBe(()=>{this.dirty=!1})),this)};vx.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&_{t[a+s]=n})}this.scatter.draw(...t)}return this};vx.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function BUt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function Lz(e,t,r){let n,i,a,o,s,l,u,c,f=e[t],h=e[r];return f.length>2?(n=f[0],a=f[2],i=f[1],o=f[3]):f.length?(n=i=f[0],a=o=f[1]):(n=f.x,i=f.y,a=f.x+f.width,o=f.y+f.height),h.length>2?(s=h[0],u=h[2],l=h[1],c=h[3]):h.length?(s=l=h[0],u=c=h[1]):(s=h.x,l=h.y,u=h.x+h.width,c=h.y+h.height),[s,i,u,o]}function XBe(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=pK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var JBe=ye((C1r,KBe)=>{"use strict";var NUt=YBe(),gK=Dr(),Pz=hf(),UUt=Mg().selectMode;KBe.exports=function(t,r,n){if(n.length)for(var i=0;i-1,T=UUt(c)||!!i.selectedpoints||P,z=!0;if(T){var O=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var V=i.selectedpoints,G={};for(d=0;d{"use strict";$Be.getDimIndex=function(t,r){for(var n=r._id,i=n.charAt(0),a={x:0,y:1}[i],o=t._visibleDims,s=0;s{"use strict";var QBe=mK(),GUt=qF().calcHover,eNe=ho().getFromId,HUt=Ao().extendFlat;function jUt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=tNe(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=i.gd,c=HUt({},e),f=0;f{"use strict";var sNe=Dr(),nNe=sNe.pushUnique,aNe=Ru(),oNe=mK();lNe.exports=function(t,r){var n=t.cd,i=n[0].trace,a=n[0].t,o=t.scene,s=o.matrixOptions.cdata,l=t.xaxis,u=t.yaxis,c=[];if(!o)return c;var f=!aNe.hasMarkers(i)&&!aNe.hasText(i);if(i.visible!==!0||f)return c;var h=oNe.getDimIndex(i,l),d=oNe.getDimIndex(i,u);if(h===!1||d===!1)return c;var v=a.xpx[h],_=a.ypx[d],b=s[h],p=s[d],C=(t.scene.selectBatch||[]).slice(),E=[];if(r!==!1&&!r.degenerate)for(var A=0;A{"use strict";var cNe=Dr(),WUt=z0(),XUt=Y2().markerStyle;fNe.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){WUt(t,n),cNe.extendFlat(i.matrixOptions,XUt(t,n));var a=cNe.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var vNe=ye((R1r,dNe)=>{"use strict";var ZUt=qa(),YUt=uV();dNe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:fK(),supplyDefaults:RBe(),colorbar:$d(),calc:BBe(),plot:JBe(),hoverPoints:iNe().hoverPoints,selectPoints:uNe(),editStyle:hNe(),meta:{}};ZUt.register(YUt)});var xNe=ye((D1r,_Ne)=>{"use strict";var KUt=NY(),JUt=qa(),$Ut=Tz(),QUt=Id().getModuleCalcData,px=ph(),pNe=hf().getFromId,gNe=ho().shouldShowZeroLine,mNe="splom",yNe={};function eVt(e){var t=e._fullLayout,r=JUt.getModule(mNe),n=QUt(e.calcdata,r)[0],i=$Ut(e,["ANGLE_instanced_arrays","OES_element_index_uint"],yNe);i&&(t._hasOnlyLargeSploms&&yK(e),r.plot(e,{},n))}function tVt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&yK(e);for(var n=0;n{"use strict";var bNe=vNe();bNe.basePlotModule=xNe(),wNe.exports=bNe});var SNe=ye((z1r,ANe)=>{"use strict";ANe.exports=TNe()});var bK=ye((O1r,MNe)=>{"use strict";var aVt=Tu(),_K=Rd(),xK=ec(),oVt=kc().attributes,Iz=Ao().extendFlat,sVt=pl().templatedArray;MNe.exports={domain:oVt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:xK({editType:"plot"}),tickfont:xK({autoShadowDflt:!0,editType:"plot"}),rangefont:xK({editType:"plot"}),dimensions:sVt("dimension",{label:{valType:"string",editType:"plot"},tickvals:Iz({},_K.tickvals,{editType:"plot"}),ticktext:Iz({},_K.ticktext,{editType:"plot"}),tickformat:Iz({},_K.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:Iz({editType:"calc"},aVt("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var PC=ye((q1r,ENe)=>{"use strict";ENe.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var Km=ye((B1r,kNe)=>{"use strict";var lVt=GS();function CNe(e){return[e]}kNe.exports={keyFun:function(e){return e.key},repeat:CNe,descend:lVt,wrap:CNe,unwrap:function(e){return e[0]}}});var AK=ye((N1r,NNe)=>{"use strict";var _h=PC(),em=Oa(),uVt=Km().keyFun,Rz=Km().repeat,y5=Dr().sorterAsc,cVt=Dr().strTranslate,LNe=_h.bar.snapRatio;function PNe(e,t){return e*(1-LNe)+t*LNe}var INe=_h.bar.snapClose;function fVt(e,t){return e*(1-INe)+t*INe}function Fz(e,t,r,n){if(hVt(r,n))return r;var i=e?-1:1,a=0,o=t.length-1;if(i<0){var s=a;a=o,o=s}for(var l=t[a],u=l,c=a;i*c=t[r][0]&&e<=t[r][1])return!0;return!1}function dVt(e){e.attr("x",-_h.bar.captureWidth/2).attr("width",_h.bar.captureWidth)}function vVt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function pVt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=RNe(e.brush.filter.getConsolidated(),e.height),r=[0],n,i,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function DNe(){em.select(document.body).style("cursor",null)}function TK(e){e.attr("stroke-dasharray",pVt)}function Dz(e,t){var r=em.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(_h.bar.snapDuration).each("end",t):r;TK(n)}function FNe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,l=r.filter.getConsolidated(),u=RNe(l,s),c=NaN,f=NaN,h=NaN;for(o=0;o<=u.length;o++){var d=u[o];if(d&&d[0]<=t&&t<=d[1]){c=o;break}else if(f=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(i=c,isNaN(i)&&(isNaN(f)||isNaN(h)?i=isNaN(f)?h:f:i=t-u[f][1]=C[0]&&p<=C[1]){a.clickableOrdinalRange=C;break}}}return a}function mVt(e,t){em.event.sourceEvent.stopPropagation();var r=t.height-em.mouse(e)[1]-2*_h.verticalPadding,n=t.unitToPaddedPx.invert(r),i=t.brush,a=FNe(t,r),o=a.interval,s=i.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var l=o.map(t.unitToPaddedPx);s.grabPoint=r-l[0]-_h.verticalPadding,s.barLength=l[1]-l[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&i.filterSpecified?i.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(u){return u[0]!==o[0]&&u[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:n,t.parent.inBrushDrag=!0,s.brushStartCallback()}function zNe(e,t){em.event.sourceEvent.stopPropagation();var r=t.height-em.mouse(e)[1]-2*_h.verticalPadding,n=t.brush.svgBrush;n.wasDragged=!0,n._dragging=!0,n.grabbingBar?n.newExtent=[r-n.grabPoint,r+n.barLength-n.grabPoint].map(t.unitToPaddedPx.invert):n.newExtent=[n.startExtent,t.unitToPaddedPx.invert(r)].sort(y5),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),Dz(e.parentNode)}function yVt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(ONe(e,t),zNe(e,t),t.brush.svgBrush.wasDragged=!1),i._dragging=!1;var a=em.event;a.sourceEvent.stopPropagation();var o=i.grabbingBar;if(i.grabbingBar=!1,i.grabLocation=void 0,t.parent.inBrushDrag=!1,DNe(),!i.wasDragged){i.wasDragged=void 0,i.clickableOrdinalRange?r.filterSpecified&&t.multiselect?i.extent.push(i.clickableOrdinalRange):(i.extent=[i.clickableOrdinalRange],r.filterSpecified=!0):o?(i.extent=i.stayingIntervals,i.extent.length===0&&wK(r)):wK(r),i.brushCallback(t),Dz(e.parentNode),i.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);return}var s=function(){n.set(n.getConsolidated())};if(t.ordinal){var l=t.unitTickvals;l[l.length-1]i.newExtent[0];i.extent=i.stayingIntervals.concat(u?[i.newExtent]:[]),i.extent.length||wK(r),i.brushCallback(t),u?Dz(e.parentNode,s):(s(),Dz(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function ONe(e,t){var r=t.height-em.mouse(e)[1]-2*_h.verticalPadding,n=FNe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),em.select(document.body).style("cursor",i)}function _Vt(e){e.on("mousemove",function(t){em.event.preventDefault(),t.parent.inBrushDrag||ONe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||DNe()}).call(em.behavior.drag().on("dragstart",function(t){mVt(this,t)}).on("drag",function(t){zNe(this,t)}).on("dragend",function(t){yVt(this,t)}))}function qNe(e,t){return e[0]-t[0]}function xVt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(Rz);i.enter().append("rect").classed("background",!0).call(dVt).call(vVt).style("pointer-events",n?"none":"auto").attr("transform",cVt(0,_h.verticalPadding)),i.call(_Vt).attr("height",function(s){return s.height-_h.verticalPadding});var a=e.selectAll(".highlight-shadow").data(Rz);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-_h.bar.width/2).attr("stroke-width",_h.bar.width+_h.bar.strokeWidth).attr("stroke",t).attr("opacity",_h.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(TK);var o=e.selectAll(".highlight").data(Rz);o.enter().append("line").classed("highlight",!0).attr("x",-_h.bar.width/2).attr("stroke-width",_h.bar.width-_h.bar.strokeWidth).attr("stroke",_h.bar.fillColor).attr("opacity",_h.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(TK)}function bVt(e,t,r){var n=e.selectAll("."+_h.cn.axisBrush).data(Rz,uVt);n.enter().append("g").classed(_h.cn.axisBrush,!0),xVt(n,t,r)}function wVt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function wK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function TVt(e){return function(r){var n=r.brush,i=wVt(n),a=i.slice();n.filter.set(a),e()}}function BNe(e){for(var t=e.slice(),r=[],n,i=t.shift();i;){for(n=i.slice();(i=t.shift())&&i[0]<=n[1];)n[1]=Math.max(n[1],i[1]);r.push(n)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function AVt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(y5)}).sort(qNe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=BNe(e),r=e.reduce(function(i,a){return[Math.min(i[0],a[0]),Math.max(i[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function SVt(e,t,r,n,i,a){var o=AVt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:TVt(i),brushEndCallback:a}}}function MVt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(y5)}),t.multiselect?e=BNe(e.sort(qNe)):e=[e[0]]):e=[e.sort(y5)],t.tickvals){var r=t.tickvals.slice().sort(y5);if(e=e.map(function(n){var i=[Fz(0,r,n[0],[]),Fz(1,r,n[1],[])];if(i[1]>i[0])return i}).filter(function(n){return n}),!e.length)return}return e.length>1?e:e[0]}NNe.exports={makeBrush:SVt,ensureAxisBrush:bVt,cleanRanges:MVt}});var GNe=ye((U1r,VNe)=>{"use strict";var gx=Dr(),EVt=pv().hasColorscale,CVt=Jh(),kVt=kc().defaults,LVt=Yd(),PVt=ho(),UNe=bK(),IVt=AK(),SK=PC().maxDimensionCount,RVt=Sz();function DVt(e,t,r,n,i){var a=i("line.color",r);if(EVt(e,"line")&&gx.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),CVt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function FVt(e,t,r,n){function i(u,c){return gx.coerce(e,t,UNe.dimensions,u,c)}var a=i("values"),o=i("visible");if(a&&a.length||(o=t.visible=!1),o){i("label"),i("tickvals"),i("ticktext"),i("tickformat");var s=i("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},PVt.setConvert(t._ax,n.layout),i("multiselect");var l=i("constraintrange");l&&(t.constraintrange=IVt.cleanRanges(l,t))}}VNe.exports=function(t,r,n,i){function a(c,f){return gx.coerce(t,r,UNe,c,f)}var o=t.dimensions;Array.isArray(o)&&o.length>SK&&(gx.log("parcoords traces support up to "+SK+" dimensions at the moment"),o.splice(SK));var s=LVt(t,r,{name:"dimensions",layout:i,handleItemDefaults:FVt}),l=DVt(t,r,n,i,a);kVt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),RVt(r,s,"values",l);var u=gx.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});gx.coerceFont(a,"labelfont",u),gx.coerceFont(a,"tickfont",u,{autoShadowDflt:!0}),gx.coerceFont(a,"rangefont",u),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var jNe=ye((V1r,HNe)=>{"use strict";var zVt=Dr().isArrayOrTypedArray,MK=tc(),OVt=Km().wrap;HNe.exports=function(t,r){var n,i;return MK.hasColorscale(r,"line")&&zVt(r.line.color)?(n=r.line.color,i=MK.extractOpts(r.line).colorscale,MK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=qVt(r._length),i=[[0,r.line.color],[1,r.line.color]]),OVt({lineColor:n,cscale:i})};function qVt(e){for(var t=new Array(e),r=0;r>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),EK.default[e])r=EK.default[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(e[0]==="#"){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var l=t[1];i=l.replace(/a$/,"");var u=i==="cmyk"?4:i==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),i==="color"&&(i=r.shift()),r=r.map(function(h,d){if(h[h.length-1]==="%")return h=parseFloat(h)/100,d===3?h:i==="rgb"?h*255:i[0]==="h"||i[0]==="l"&&!d?h*100:i==="lab"?h*125:i==="lch"?d<2?h*150:h*360:i[0]==="o"&&!d?h:i==="oklab"?h*.4:i==="oklch"?d<2?h*.4:h*360:h;if(i[d]==="h"||d===2&&i[i.length-1]==="h"){if(WNe[h]!==void 0)return WNe[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),n=r.length>u?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),i=((f=(c=e.match(/([a-z])/ig))==null?void 0:c.join(""))==null?void 0:f.toLowerCase())||"rgb");return{space:i,values:r,alpha:n}}var EK,XNe,WNe,ZNe=gu(()=>{EK=Yet(dX(),1),XNe=BVt,WNe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var IC,CK=gu(()=>{IC={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var zz,YNe=gu(()=>{CK();zz={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}};IC.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s,l,u;return a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),u=(i+a)/2,a===i?l=0:u<=.5?l=o/(a+i):l=o/(2-a-i),[s,l*100,u*100]}});var JNe={};uee(JNe,{default:()=>KNe});function KNe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=XNe(e);if(!i.space)return[];let a=i.space[0]==="h"?zz.min:IC.min,o=i.space[0]==="h"?zz.max:IC.max;return t=Array(3),t[0]=Math.min(Math.max(i.values[0],a[0]),o[0]),t[1]=Math.min(Math.max(i.values[1],a[1]),o[1]),t[2]=Math.min(Math.max(i.values[2],a[2]),o[2]),i.space[0]==="h"&&(t=zz.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var $Ne=gu(()=>{ZNe();CK();YNe()});var kK=ye(Oz=>{"use strict";var NVt=Dr().isTypedArray;Oz.convertTypedArray=function(e){return NVt(e)?Array.prototype.slice.call(e):e};Oz.isOrdinal=function(e){return!!e.tickvals};Oz.isVisible=function(e){return e.visible||!("visible"in e)}});var lUe=ye((J1r,sUe)=>{"use strict";var UVt=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`),VVt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),RC=PC().maxDimensionCount,nUe=Dr(),QNe=1e-6,qz=2048,GVt=new Uint8Array(4),eUe=new Uint8Array(4),tUe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function HVt(e){e.read({x:0,y:0,width:1,height:1,data:GVt})}function aUe(e,t,r,n,i){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,n,i),e.clear({color:[0,0,0,0],depth:1})}function jVt(e,t,r,n,i,a){var o=a.key;function s(l){var u=Math.min(n,i-l*n);l===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],aUe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*u,a.offset=2*l*n,t(a),l*n+u>>8*t)%256/255}function ZVt(e,t,r){for(var n=new Array(e*(RC+4)),i=0,a=0;aZ&&(Z=M[z].dim1.canvasX,V=z);T===0&&aUe(i,0,0,u.canvasWidth,u.canvasHeight);var H=E(r);for(z=0;z{"use strict";var Bd=Oa(),l1=Dr(),PK=l1.isArrayOrTypedArray,vUe=l1.numberFormat,pUe=($Ne(),ab(JNe)).default,gUe=ho(),QVt=l1.strRotate,Jm=l1.strTranslate,eGt=ru(),Bz=So(),uUe=tc(),DK=Km(),rg=DK.keyFun,$m=DK.repeat,mUe=DK.unwrap,_5=kK(),Dl=PC(),yUe=AK(),tGt=lUe();function cUe(e,t,r){return l1.aggNums(e,null,t,r)}function _Ue(e,t){return FK(cUe(Math.min,e,t),cUe(Math.max,e,t))}function Nz(e){var t=e.range;return t?FK(t[0],t[1]):_Ue(e.values,e._length)}function FK(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function rGt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function iGt(e,t,r,n,i){var a=Nz(r);return n?Bd.scale.ordinal().domain(n.map(rGt(vUe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Bd.scale.linear().domain(a).range([e-t,t])}function nGt(e,t){return Bd.scale.linear().range([t,e-t])}function aGt(e,t){return Bd.scale.linear().domain(Nz(e)).range([t,1-t])}function oGt(e){if(e.tickvals){var t=Nz(e);return Bd.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function sGt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=pUe(a[1]);return Bd.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return Bd.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function RK(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function lGt(e,t,r){var n=mUe(t),i=n.trace,a=_5.convertTypedArray(n.lineColor),o=i.line,s={color:pUe(i.unselected.line.color),opacity:i.unselected.line.opacity},l=uUe.extractOpts(o),u=l.reversescale?uUe.flipScale(n.cscale):n.cscale,c=i.domain,f=i.dimensions,h=e.width,d=i.labelangle,v=i.labelside,_=i.labelfont,b=i.tickfont,p=i.rangefont,C=l1.extendDeepNoArrays({},o,{color:a.map(Bd.scale.linear().domain(Nz({values:a,range:[l.min,l.max],_length:i._length}))),blockLineCount:Dl.blockLineCount,canvasOverdrag:Dl.overdrag*Dl.canvasPixelRatio}),E=Math.floor(h*(c.x[1]-c.x[0])),A=Math.floor(e.height*(c.y[1]-c.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},x=E,k=A;return{key:r,colCount:f.filter(_5.isVisible).length,dimensions:f,tickDistance:Dl.tickDistance,unitToColor:sGt(u),lines:C,deselectedLines:s,labelAngle:d,labelSide:v,labelFont:_,tickFont:b,rangeFont:p,layoutWidth:h,layoutHeight:e.height,domain:c,translateX:c.x[0]*h,translateY:e.height-c.y[1]*e.height,pad:L,canvasWidth:x*Dl.canvasPixelRatio+2*C.canvasOverdrag,canvasHeight:k*Dl.canvasPixelRatio,width:x,height:k,canvasPixelRatio:Dl.canvasPixelRatio}}function uGt(e,t,r){var n=r.width,i=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return n*h/Math.max(1,r.colCount-1)},l=Dl.verticalPadding/i,u=nGt(i,Dl.verticalPadding),c={key:r.key,xScale:s,model:r,inBrushDrag:!1},f={};return c.dimensions=a.filter(_5.isVisible).map(function(h,d){var v=aGt(h,l),_=f[h.label];f[h.label]=(_||0)+1;var b=h.label+(_?"__"+_:""),p=h.constraintrange,C=p&&p.length;C&&!PK(p[0])&&(p=[p]);var E=C?p.map(function(O){return O.map(v)}):[[-1/0,1/0]],A=function(){var O=c;O.focusLayer&&O.focusLayer.render(O.panels,!0);var V=RK(O);!e.contextShown()&&V?(O.contextLayer&&O.contextLayer.render(O.panels,!0),e.contextShown(!0)):e.contextShown()&&!V&&(O.contextLayer&&O.contextLayer.render(O.panels,!0,!0),e.contextShown(!1))},L=h.values;L.length>h._length&&(L=L.slice(0,h._length));var x=h.tickvals,k;function M(O,V){return{val:O,text:k[V]}}function g(O,V){return O.val-V.val}if(PK(x)&&x.length){l1.isTypedArray(x)&&(x=Array.from(x)),k=h.ticktext,!PK(k)||!k.length?k=x.map(vUe(h.tickformat)):k.length>x.length?k=k.slice(0,x.length):x.length>k.length&&(x=x.slice(0,k.length));for(var P=1;P=V||N>=G)return;var j=z.lineLayer.readPixel(H,G-1-N),re=j[3]!==0,oe=re?j[2]+256*(j[1]+256*j[0]):null,_e={x:H,y:N,clientX:O.clientX,clientY:O.clientY,dataIndex:z.model.key,curveNumber:oe};oe!==v&&(re?i.hover(_e):i.unhover&&i.unhover(_e),v=oe)}}),d.style("opacity",function(z){return z.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var b=s.selectAll("."+Dl.cn.parcoords).data(h,rg);b.exit().remove(),b.enter().append("g").classed(Dl.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),b.attr("transform",function(z){return Jm(z.model.translateX,z.model.translateY)});var p=b.selectAll("."+Dl.cn.parcoordsControlView).data($m,rg);p.enter().append("g").classed(Dl.cn.parcoordsControlView,!0),p.attr("transform",function(z){return Jm(z.model.pad.l,z.model.pad.t)});var C=p.selectAll("."+Dl.cn.yAxis).data(function(z){return z.dimensions},rg);C.enter().append("g").classed(Dl.cn.yAxis,!0),p.each(function(z){IK(C,z,u)}),d.each(function(z){if(z.viewModel){!z.lineLayer||i?z.lineLayer=tGt(this,z):z.lineLayer.update(z),(z.key||z.key===0)&&(z.viewModel[z.key]=z.lineLayer);var O=!z.context||i;z.lineLayer.render(z.viewModel.panels,O)}}),C.attr("transform",function(z){return Jm(z.xScale(z.xIndex),0)}),C.call(Bd.behavior.drag().origin(function(z){return z}).on("drag",function(z){var O=z.parent;f.linePickActive(!1),z.x=Math.max(-Dl.overdrag,Math.min(z.model.width+Dl.overdrag,Bd.event.x)),z.canvasX=z.x*z.model.canvasPixelRatio,C.sort(function(V,G){return V.x-G.x}).each(function(V,G){V.xIndex=G,V.x=z===V?V.x:V.xScale(V.xIndex),V.canvasX=V.x*V.model.canvasPixelRatio}),IK(C,O,u),C.filter(function(V){return Math.abs(z.xIndex-V.xIndex)!==0}).attr("transform",function(V){return Jm(V.xScale(V.xIndex),0)}),Bd.select(this).attr("transform",Jm(z.x,0)),C.each(function(V,G,Z){Z===z.parent.key&&(O.dimensions[G]=V)}),O.contextLayer&&O.contextLayer.render(O.panels,!1,!RK(O)),O.focusLayer.render&&O.focusLayer.render(O.panels)}).on("dragend",function(z){var O=z.parent;z.x=z.xScale(z.xIndex),z.canvasX=z.x*z.model.canvasPixelRatio,IK(C,O,u),Bd.select(this).attr("transform",function(V){return Jm(V.x,0)}),O.contextLayer&&O.contextLayer.render(O.panels,!1,!RK(O)),O.focusLayer&&O.focusLayer.render(O.panels),O.pickLayer&&O.pickLayer.render(O.panels,!0),f.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(O.key,O.dimensions.map(function(V){return V.crossfilterDimensionIndex}))})),C.exit().remove();var E=C.selectAll("."+Dl.cn.axisOverlays).data($m,rg);E.enter().append("g").classed(Dl.cn.axisOverlays,!0),E.selectAll("."+Dl.cn.axis).remove();var A=E.selectAll("."+Dl.cn.axis).data($m,rg);A.enter().append("g").classed(Dl.cn.axis,!0),A.each(function(z){var O=z.model.height/z.model.tickDistance,V=z.domainScale,G=V.domain();Bd.select(this).call(Bd.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(O,z.tickFormat).tickValues(z.ordinal?G:null).tickFormat(function(Z){return _5.isOrdinal(z)?Z:xUe(z.model.dimensions[z.visibleIndex],Z)}).scale(V)),Bz.font(A.selectAll("text"),z.model.tickFont)}),A.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),A.selectAll("text").style("cursor","default");var L=E.selectAll("."+Dl.cn.axisHeading).data($m,rg);L.enter().append("g").classed(Dl.cn.axisHeading,!0);var x=L.selectAll("."+Dl.cn.axisTitle).data($m,rg);x.enter().append("text").classed(Dl.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),x.text(function(z){return z.label}).each(function(z){var O=Bd.select(this);Bz.font(O,z.model.labelFont),eGt.convertToTspans(O,t)}).attr("transform",function(z){var O=hUe(z.model.labelAngle,z.model.labelSide),V=Dl.axisTitleOffset;return(O.dir>0?"":Jm(0,2*V+z.model.height))+QVt(O.degrees)+Jm(-V*O.dx,-V*O.dy)}).attr("text-anchor",function(z){var O=hUe(z.model.labelAngle,z.model.labelSide),V=Math.abs(O.dx),G=Math.abs(O.dy);return 2*V>G?O.dir*O.dx<0?"start":"end":"middle"});var k=E.selectAll("."+Dl.cn.axisExtent).data($m,rg);k.enter().append("g").classed(Dl.cn.axisExtent,!0);var M=k.selectAll("."+Dl.cn.axisExtentTop).data($m,rg);M.enter().append("g").classed(Dl.cn.axisExtentTop,!0),M.attr("transform",Jm(0,-Dl.axisExtentOffset));var g=M.selectAll("."+Dl.cn.axisExtentTopText).data($m,rg);g.enter().append("text").classed(Dl.cn.axisExtentTopText,!0).call(fUe),g.text(function(z){return dUe(z,!0)}).each(function(z){Bz.font(Bd.select(this),z.model.rangeFont)});var P=k.selectAll("."+Dl.cn.axisExtentBottom).data($m,rg);P.enter().append("g").classed(Dl.cn.axisExtentBottom,!0),P.attr("transform",function(z){return Jm(0,z.model.height+Dl.axisExtentOffset)});var T=P.selectAll("."+Dl.cn.axisExtentBottomText).data($m,rg);T.enter().append("text").classed(Dl.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(fUe),T.text(function(z){return dUe(z,!1)}).each(function(z){Bz.font(Bd.select(this),z.model.rangeFont)}),yUe.ensureAxisBrush(E,c,t)}});var OK=ye((zK,MUe)=>{"use strict";var hGt=wUe(),dGt=Tz(),TUe=kK().isVisible,SUe={};function AUe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function vGt(e,t){return function(n,i){return AUe(e,t,n)-AUe(e,t,i)}}var zK=MUe.exports=function(t,r){var n=t._fullLayout,i=dGt(t,[],SUe);if(i){var a={},o={},s={},l={},u=n._size;r.forEach(function(v,_){var b=v[0].trace;s[_]=b.index;var p=l[_]=b.index;a[_]=t.data[p].dimensions,o[_]=t.data[p].dimensions.slice()});var c=function(v,_,b){var p=o[v][_],C=b.map(function(M){return M.slice()}),E="dimensions["+_+"].constraintrange",A=n._tracePreGUI[t._fullData[s[v]]._fullInput.uid];if(A[E]===void 0){var L=p.constraintrange;A[E]=L||null}var x=t._fullData[s[v]].dimensions[_];C.length?(C.length===1&&(C=C[0]),p.constraintrange=C,x.constraintrange=C.slice(),C=[C]):(delete p.constraintrange,delete x.constraintrange,C=null);var k={};k[E]=C,t.emit("plotly_restyle",[k,[l[v]]])},f=function(v){t.emit("plotly_hover",v)},h=function(v){t.emit("plotly_unhover",v)},d=function(v,_){var b=vGt(_,o[v].filter(TUe));a[v].sort(b),o[v].filter(function(p){return!TUe(p)}).sort(function(p){return o[v].indexOf(p)}).forEach(function(p){a[v].splice(a[v].indexOf(p),1),a[v].splice(o[v].indexOf(p),0,p)}),t.emit("plotly_restyle",[{dimensions:[a[v]]},[l[v]]])};hGt(t,r,{width:u.w,height:u.h,margin:{t:u.t,r:u.r,b:u.b,l:u.l}},{filterChanged:c,hover:f,unhover:h,axesMoved:d})}};zK.reglPrecompiled=SUe});var CUe=ye(DC=>{"use strict";var EUe=Oa(),pGt=Id().getModuleCalcData,gGt=OK(),mGt=Wp();DC.name="parcoords";DC.plot=function(e){var t=pGt(e.calcdata,"parcoords")[0];t.length&&gGt(e,t)};DC.clean=function(e,t,r,n){var i=n._has&&n._has("parcoords"),a=t._has&&t._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())};DC.toSVG=function(e){var t=e._fullLayout._glimages,r=EUe.select(e).selectAll(".svg-container"),n=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:mGt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){EUe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var LUe=ye((e_r,kUe)=>{"use strict";kUe.exports={attributes:bK(),supplyDefaults:GNe(),calc:jNe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:CUe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var RUe=ye((t_r,IUe)=>{"use strict";var PUe=LUe();PUe.plot=OK();IUe.exports=PUe});var FUe=ye((r_r,DUe)=>{"use strict";DUe.exports=RUe()});var qK=ye((i_r,BUe)=>{"use strict";var OUe=Ao().extendFlat,yGt=Gl(),zUe=ec(),_Gt=Tu(),qUe=Qo().hovertemplateAttrs,xGt=kc().attributes,bGt=OUe({editType:"calc"},_Gt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:qUe({editType:"plot",arrayOk:!1},{keys:["count","probability"]})});BUe.exports={domain:xGt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:OUe({},yGt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:qUe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:zUe({editType:"calc"}),tickfont:zUe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:bGt,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var VUe=ye((n_r,UUe)=>{"use strict";var x5=Dr(),wGt=pv().hasColorscale,TGt=Jh(),AGt=kc().defaults,SGt=Yd(),NUe=qK(),MGt=Sz(),EGt=vv().isTypedArraySpec;function CGt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate");var a=i("line.color",n.colorway[0]);if(wGt(e,"line")&&x5.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),TGt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function kGt(e,t){function r(u,c){return x5.coerce(e,t,NUe.dimensions,u,c)}var n=r("values"),i=r("visible");if(n&&n.length||(i=t.visible=!1),i){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=x5.isArrayOrTypedArray(a)&&a.length>0||EGt(a),s;o&&(s="array");var l=r("categoryorder",s);l==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&l==="array"&&(t.categoryorder="trace")}}UUe.exports=function(t,r,n,i){function a(u,c){return x5.coerce(t,r,NUe,u,c)}var o=SGt(t,r,{name:"dimensions",handleItemDefaults:kGt}),s=CGt(t,r,n,i,a);AGt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),MGt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var l=i.font;x5.coerceFont(a,"labelfont",l,{overrideDflt:{size:Math.round(l.size)}}),x5.coerceFont(a,"tickfont",l,{autoShadowDflt:!0,overrideDflt:{size:Math.round(l.size/1.2)}})}});var HUe=ye((a_r,GUe)=>{"use strict";var LGt=Km().wrap,PGt=pv().hasColorscale,IGt=gv(),RGt=ZO(),DGt=So(),FC=Dr(),FGt=Eo();GUe.exports=function(t,r){var n=FC.filterVisible(r.dimensions);if(n.length===0)return[];var i=n.map(function(g){var P;if(g.categoryorder==="trace")P=null;else if(g.categoryorder==="array")P=g.categoryarray;else{P=RGt(g.values);for(var T=!0,z=0;z=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var QUe=ye((o_r,$Ue)=>{"use strict";var Fl=Oa(),WGt=(R2(),ab(I2)).interpolateNumber,XGt=UP(),qC=vf(),mx=Dr(),zC=mx.strTranslate,jUe=So(),BK=cd(),ZGt=ru();function YGt(e,t,r,n){var i=t._context.staticPlot,a=e.map(cHt.bind(0,t,r)),o=n.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",i?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,u1),l=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(C){return zC(C.x,C.y)}),l.append("g").attr("class","paths");var u=s.select("g.paths"),c=u.selectAll("path.path").data(function(C){return C.paths},u1);c.attr("fill",function(C){return C.model.color});var f=c.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(C){return C.model.color}).attr("fill-opacity",0);VK(f),c.attr("d",function(C){return C.svgD}),f.empty()||c.sort(NK),c.exit().remove(),c.on("mouseover",KGt).on("mouseout",JGt).on("click",$Gt),l.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(C){return C.dimensions},u1);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(C){return zC(C.x,0)}),d.exit().remove();var v=d.selectAll("g.category").data(function(C){return C.categories},u1),_=v.enter().append("g").attr("class","category");v.attr("transform",function(C){return zC(0,C.y)}),_.append("rect").attr("class","catrect").attr("pointer-events","none"),v.select("rect.catrect").attr("fill","none").attr("width",function(C){return C.width}).attr("height",function(C){return C.height}),XUe(_);var b=v.selectAll("rect.bandrect").data(function(C){return C.bands},u1);b.each(function(){mx.raiseToTop(this)}),b.attr("fill",function(C){return C.color});var p=b.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(C){return C.color}).attr("fill-opacity",0);b.attr("fill",function(C){return C.color}).attr("width",function(C){return C.width}).attr("height",function(C){return C.height}).attr("y",function(C){return C.y}).attr("cursor",function(C){return C.parcatsViewModel.arrangement==="fixed"?"default":C.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),HK(p),b.exit().remove(),_.append("text").attr("class","catlabel").attr("pointer-events","none"),v.select("text.catlabel").attr("text-anchor",function(C){return OC(C)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(C){return OC(C)?C.width+5:-5}).attr("y",function(C){return C.height/2}).text(function(C){return C.model.categoryLabel}).each(function(C){jUe.font(Fl.select(this),C.parcatsViewModel.categorylabelfont),ZGt.convertToTspans(Fl.select(this),t)}),_.append("text").attr("class","dimlabel"),v.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(C){return C.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(C){return C.width/2}).attr("y",-5).text(function(C,E){return E===0?C.parcatsViewModel.model.dimensions[C.model.dimensionInd].dimensionLabel:null}).each(function(C){jUe.font(Fl.select(this),C.parcatsViewModel.labelfont)}),v.selectAll("rect.bandrect").on("mouseover",aHt).on("mouseout",oHt),v.exit().remove(),d.call(Fl.behavior.drag().origin(function(C){return{x:C.x,y:0}}).on("dragstart",sHt).on("drag",lHt).on("dragend",uHt)),s.each(function(C){C.traceSelection=Fl.select(this),C.pathSelection=Fl.select(this).selectAll("g.paths").selectAll("path.path"),C.dimensionSelection=Fl.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}$Ue.exports=function(e,t,r,n){YGt(r,e,n,t)};function u1(e){return e.key}function OC(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function NK(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),x=Fl.mouse(i)[0];qC.loneHover({trace:a,x:v-s.left+l.left,y:_-s.top+l.top,text:L,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:b,idealAlign:x1&&u.displayInd===l.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var v=s.model.count,_=s.model.categoryLabel,b=v/s.parcatsViewModel.model.count,p={countLabel:v,categoryLabel:_,probabilityLabel:b.toFixed(3)},C=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&C.push(["Count:",p.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&C.push(["P("+p.categoryLabel+"):",p.probabilityLabel].join(" "));var E=C.join("
");return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:E,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:p,eventData:[{data:c._input,fullData:c,count:v,category:_,probability:b}]}}function iHt(e,t,r){var n=[];return Fl.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(ZUe(e,t,i))}),n}function nHt(e,t,r){e._fullLayout._calcInverseTransform(e);var n=e._fullLayout._invScaleX,i=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=Fl.select(r).datum(),s=o.categoryViewModel,l=s.parcatsViewModel,u=l.model.dimensions[s.model.dimensionInd],c=l.trace,f=a.y+a.height/2,h,d;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var v=s.model.categoryLabel,_=o.parcatsViewModel.model.count,b=0;o.categoryViewModel.bands.forEach(function(P){P.color===o.color&&(b+=P.count)});var p=s.model.count,C=0;l.pathSelection.each(function(P){P.model.color===o.color&&(C+=P.model.count)});var E=b/_,A=b/C,L=b/p,x={countLabel:b,categoryLabel:v,probabilityLabel:E.toFixed(3)},k=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&k.push(["Count:",x.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(k.push("P(color \u2229 "+v+"): "+x.probabilityLabel),k.push("P("+v+" | color): "+A.toFixed(3)),k.push("P(color | "+v+"): "+L.toFixed(3)));var M=k.join("
"),g=BK.mostReadable(o.color,["black","white"]);return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:M,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:g,fontSize:10,idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:x,eventData:[{data:c._input,fullData:c,category:v,count:_,probability:E,categorycount:p,colorcount:C,bandcolorcount:b}]}}function aHt(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=Fl.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,n=r._fullLayout,i=n._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(rHt(o),WK(o,"plotly_hover",Fl.event)):(tHt(o),jK(o,"plotly_hover",Fl.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=ZUe(r,i,o):a==="color"?s=nHt(r,i,o):a==="dimension"&&(s=iHt(r,i,o)),s&&qC.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function oHt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(VK(t.pathSelection),XUe(t.dimensionSelection.selectAll("g.category")),HK(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),qC.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(NK),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?WK(n,"plotly_unhover",Fl.event):jK(n,"plotly_unhover",Fl.event)}}function sHt(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,Fl.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=Fl.mouse(this)[0],n=Fl.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=n&&n<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(i){return i.displayInd}),t.model.dragY=t.y,mx.raiseToTop(this.parentNode),Fl.select(this.parentNode).selectAll("rect.bandrect").each(function(i){i.yc.y+c.height/2&&(a.model.displayInd=c.model.displayInd,c.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){i.model.dragX=Fl.event.x;var f=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[n];f!==void 0&&i.model.dragXh.x&&(i.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=i.model.displayInd}ZK(e.parcatsViewModel),XK(e.parcatsViewModel),JUe(e.parcatsViewModel),KUe(e.parcatsViewModel)}}function uHt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Fl.select(this).selectAll("text").attr("font-weight","normal");var t={},r=YUe(e.parcatsViewModel),n=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),i=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==n[d]});i&&n.forEach(function(h,d){var v=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+v+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,d){return h!==o[d]}),a){var s=e.model.categories.slice().sort(function(h,d){return h.displayInd-d.displayInd}),l=s.map(function(h){return h.categoryValue}),u=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[l],t["dimensions["+e.model.containerInd+"].ticktext"]=[u],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?WK(e.potentialClickBand,"plotly_click",Fl.event.sourceEvent):jK(e.potentialClickBand,"plotly_click",Fl.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var c=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];c.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,ZK(e.parcatsViewModel),XK(e.parcatsViewModel);var f=Fl.transition().duration(300).ease("cubic-in-out");f.each(function(){JUe(e.parcatsViewModel,!0),KUe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&XGt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function YUe(e){for(var t,r=e.graphDiv._fullData,n=0;n=0;l--)u+="C"+o[l]+","+(t[l+1]+n)+" "+a[l]+","+(t[l]+n)+" "+(e[l]+r[l])+","+(t[l]+n),u+="l-"+r[l]+",0 ";return u+="Z",u}function XK(e){var t=e.dimensions,r=e.model,n=t.map(function(O){return O.categories.map(function(V){return V.y})}),i=e.model.dimensions.map(function(O){return O.categories.map(function(V){return V.displayInd})}),a=e.model.dimensions.map(function(O){return O.displayInd}),o=e.dimensions.map(function(O){return O.model.dimensionInd}),s=t.map(function(O){return O.x}),l=t.map(function(O){return O.width}),u=[];for(var c in r.paths)r.paths.hasOwnProperty(c)&&u.push(r.paths[c]);function f(O){var V=O.categoryInds.map(function(Z,H){return i[H][Z]}),G=o.map(function(Z){return V[Z]});return G}u.sort(function(O,V){var G=f(O),Z=f(V);return e.sortpaths==="backward"&&(G.reverse(),Z.reverse()),G.push(O.valueInds[0]),Z.push(V.valueInds[0]),e.bundlecolors&&(G.unshift(O.rawColor),Z.unshift(V.rawColor)),GZ?1:0});for(var h=new Array(u.length),d=t[0].model.count,v=t[0].categories.map(function(O){return O.height}).reduce(function(O,V){return O+V}),_=0;_0?p=v*(b.count/d):p=0;for(var C=new Array(n.length),E=0;E1?o=(e.width-2*r-n)/(i-1):o=0,s=r,l=s+o*a;var u=[],c=e.model.maxCats,f=t.categories.length,h=8,d=t.count,v=e.height-h*(c-1),_,b,p,C,E,A=(c-f)*h/2,L=t.categories.map(function(x){return{displayInd:x.displayInd,categoryInd:x.categoryInd}});for(L.sort(function(x,k){return x.displayInd-k.displayInd}),E=0;E0?_=b.count/d*v:_=0,p={key:b.valueInds[0],model:b,width:n,height:_,y:b.dragY!==null?b.dragY:A,bands:[],parcatsViewModel:e},A=A+_+h,u.push(p);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:l,y:0,width:n,model:t,categories:u,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var YK=ye((s_r,eVe)=>{"use strict";var hHt=QUe();eVe.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;hHt(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},n,i)}});var rVe=ye(Vz=>{"use strict";var dHt=Id().getModuleCalcData,vHt=YK(),tVe="parcats";Vz.name=tVe;Vz.plot=function(e,t,r,n){var i=dHt(e.calcdata,tVe);if(i.length){var a=i[0];vHt(e,a,r,n)}};Vz.clean=function(e,t,r,n){var i=n._has&&n._has("parcats"),a=t._has&&t._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}});var nVe=ye((u_r,iVe)=>{"use strict";iVe.exports={attributes:qK(),supplyDefaults:VUe(),calc:HUe(),plot:YK(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:rVe(),categories:["noOpacity"],meta:{}}});var oVe=ye((c_r,aVe)=>{"use strict";aVe.exports=nVe()});var c1=ye((f_r,dVe)=>{"use strict";var pHt=Z1(),sVe="1.13.4",fVe='\xA9 OpenStreetMap contributors',lVe=['\xA9 Carto',fVe].join(" "),uVe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),gHt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),hVe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:fVe,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:lVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:lVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:uVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:uVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:gHt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},cVe=pHt(hVe);dVe.exports={requiredVersion:sVe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:hVe,styleValuesNonMapbox:cVe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+sVe+"."].join(` `),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` -`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",lVe.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` +`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",cVe.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` `),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` -`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var BC=ye((c_r,pVe)=>{"use strict";var hVe=Dr(),dVe=Ca().defaultLine,vHt=kc().attributes,pHt=ec(),gHt=pf().textposition,mHt=mc().overrideAll,yHt=pl().templatedArray,KK=c1(),vVe=pHt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});vVe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var _Ht=pVe.exports=mHt({_arrayAttrRegexps:[hVe.counterRegex("mapbox",".layers",!0)],domain:vHt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:KK.styleValuesMapbox.concat(KK.styleValuesNonMapbox),dflt:KK.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:yHt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:dVe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:dVe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:vVe,textposition:hVe.extendFlat({},gHt,{arrayOk:!1})}})},"plot","from-root");_Ht.uirevision={valType:"any",editType:"none"}});var Gz=ye((f_r,yVe)=>{"use strict";var xHt=Qo().hovertemplateAttrs,bHt=Qo().texttemplateAttrs,wHt=Eg(),NC=G2(),x5=pf(),gVe=BC(),THt=Gl(),AHt=Tu(),ew=Ao().extendFlat,SHt=mc().overrideAll,MHt=BC(),mVe=NC.line,b5=NC.marker;yVe.exports=SHt({lon:NC.lon,lat:NC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:ew({},MHt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:ew({},b5.opacity,{dflt:1})},mode:ew({},x5.mode,{dflt:"markers"}),text:ew({},x5.text,{}),texttemplate:bHt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:ew({},x5.hovertext,{}),line:{color:mVe.color,width:mVe.width},connectgaps:x5.connectgaps,marker:ew({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:b5.opacity,size:b5.size,sizeref:b5.sizeref,sizemin:b5.sizemin,sizemode:b5.sizemode},AHt("marker")),fill:NC.fill,fillcolor:wHt(),textfont:gVe.layers.symbol.textfont,textposition:gVe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:x5.selected.marker},unselected:{marker:x5.unselected.marker},hoverinfo:ew({},THt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:xHt()},"calc","nested")});var JK=ye((h_r,_Ve)=>{"use strict";var EHt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];_Ve.exports={isSupportedFont:function(e){return EHt.indexOf(e)!==-1}}});var wVe=ye((d_r,bVe)=>{"use strict";var UC=Dr(),$K=Ru(),CHt=$p(),kHt=R0(),LHt=D0(),PHt=Ig(),xVe=Gz(),IHt=JK().isSupportedFont;bVe.exports=function(t,r,n,i){function a(p,C){return UC.coerce(t,r,xVe,p,C)}function o(p,C){return UC.coerce2(t,r,xVe,p,C)}var s=RHt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),$K.hasMarkers(r)){CHt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(UC.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),UC.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}$K.hasLines(r)&&(kHt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,x=a("cluster.enabled",v);if(x||$K.hasText(r)){var b=i.font.family;LHt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:IHt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&PHt(t,r,n,a),UC.coerceSelectionMarkerOpacity(r,a)};function RHt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var QK=ye((v_r,AVe)=>{"use strict";var TVe=ho();AVe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=TVe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=TVe.tickText(o,o.c2l(s[1]),!0).text,i}});var eJ=ye((p_r,MVe)=>{"use strict";var SVe=Dr();MVe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=SVe.isArrayOrTypedArray(r)?SVe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var IVe=ye((g_r,PVe)=>{"use strict";var kVe=Eo(),av=Dr(),DHt=hs().BADNUM,jz=tx(),EVe=tc(),FHt=So(),zHt=S3(),Wz=Ru(),OHt=JK().isSupportedFont,qHt=eJ(),BHt=rp().appendArrayPointValue,NHt=ru().NEWLINES,UHt=ru().BR_TAG_ALL;PVe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=Wz.hasLines(n),s=Wz.hasMarkers(n),l=Wz.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=Hz("fill"),d=Hz("line"),v=Hz("circle"),x=Hz("symbol"),b={fill:h,line:d,circle:v,symbol:x};if(!i)return b;var p;if((a||o)&&(p=jz.calcTraceToLineCoords(r)),a&&(h.geojson=jz.makePolygon(p),h.layout.visibility="visible",av.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=jz.makeLine(p),d.layout.visibility="visible",av.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var C=VHt(r);v.geojson=C.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":rJ(n.cluster.color,n.cluster.step),"circle-radius":rJ(n.cluster.size,n.cluster.step),"circle-opacity":rJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":CVe(n),"text-size":12}}),av.extendFlat(v.paint,{"circle-color":C.mcc,"circle-radius":C.mrc,"circle-opacity":C.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(x.geojson=GHt(r,t),av.extendFlat(x.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(av.extendFlat(x.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&av.extendFlat(x.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),x.layout["icon-allow-overlap"]=n.marker.allowoverlap,av.extendFlat(x.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var E=(n.marker||{}).size,A=qHt(n.textposition,E);av.extendFlat(x.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":CVe(n)}),av.extendFlat(x.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function Hz(e){return{type:e,geojson:jz.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function VHt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=av.isArrayOrTypedArray(r.color),a=av.isArrayOrTypedArray(r.size),o=av.isArrayOrTypedArray(r.opacity),s;function l(E){return t.opacity*E}function u(E){return E/2}var c;i&&(EVe.hasColorscale(t,"marker")?c=EVe.makeColorScaleFuncFromTrace(r):c=av.identity);var f;a&&(f=zHt(t));var h;o&&(h=function(E){var A=kVe(E)?+av.constrain(E,0,1):0;return l(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),OHt(s)||(s=r);var l=s.split(", ");return l}});var zVe=ye((m_r,FVe)=>{"use strict";var HHt=Dr(),RVe=IVe(),w5=c1().traceLayerPrefix,rg={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function DVe(e,t,r,n){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:w5+t+"-fill",line:w5+t+"-line",circle:w5+t+"-circle",symbol:w5+t+"-symbol",cluster:w5+t+"-cluster",clusterCount:w5+t+"-cluster-count"},this.below=null}var VC=DVe.prototype;VC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&HHt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};VC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};VC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var _=A[L];i.removeLayer(u.layerIds[_])}E||i.removeSource(u.sourceIds.circle)}function h(E){for(var A=rg.nonCluster,L=0;L=0;L--){var _=A[L];i.removeLayer(u.layerIds[_]),E||i.removeSource(u.sourceIds[_])}}function v(E){l?f(E):d(E)}function x(E){s?c(E):h(E)}function b(){for(var E=s?rg.cluster:rg.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};FVe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new DVe(t,n.uid,i,a),s=RVe(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var jHt=vf(),iJ=Dr(),WHt=oT(),XHt=iJ.fillText,ZHt=hs().BADNUM,YHt=c1().traceLayerPrefix;function KHt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=YHt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function x(M){var g=M.lonlat;if(g[0]===ZHt||c&&l.indexOf(M.i+1)===-1)return 1/0;var P=iJ.modHalf(g[0],360),T=g[1],z=s.project([P,T]),O=z.x-a.c2p([v,T]),V=z.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(O*O+V*V)-G,1-3/G)}if(jHt.getClosest(n,x,e),e.index!==!1){var b=n[e.index],p=b.lonlat,C=[iJ.modHalf(p[0],360)+d,p[1]],E=a.c2p(C),A=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=A-L,e.y1=A+L;var _={};_[i.subplot]={_subplot:s};var k=i._module.formatLabels(b,i,_);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=WHt(i,b),e.extraText=OVe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function OVe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||i.indexOf("text")!==-1)&&XHt(t,e,u),u.join("
")}qVe.exports={hoverPoints:KHt,getExtraText:OVe}});var NVe=ye((__r,BVe)=>{"use strict";BVe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var VVe=ye((x_r,UVe)=>{"use strict";var JHt=Dr(),$Ht=Ru(),QHt=hs().BADNUM;UVe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!$Ht.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof nJ=="object"&&typeof aJ!="undefined"?aJ.exports=t():(e=e||self,e.mapboxgl=t())})(nJ,function(){"use strict";var e,t,r;function n(i,a){if(!e)e=a;else if(!t)t=a;else{var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",s={};e(s),r=a(s),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}}return n(["exports"],function(i){"use strict";function a(m,y){return y={exports:{}},m(y,y.exports),y.exports}var o="1.13.4",s=l;function l(m,y,I,U){this.cx=3*m,this.bx=3*(I-m)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*y,this.by=3*(U-y)-this.cy,this.ay=1-this.cy-this.by,this.p1x=m,this.p1y=U,this.p2x=I,this.p2y=U}l.prototype.sampleCurveX=function(m){return((this.ax*m+this.bx)*m+this.cx)*m},l.prototype.sampleCurveY=function(m){return((this.ay*m+this.by)*m+this.cy)*m},l.prototype.sampleCurveDerivativeX=function(m){return(3*this.ax*m+2*this.bx)*m+this.cx},l.prototype.solveCurveX=function(m,y){typeof y=="undefined"&&(y=1e-6);var I,U,$,ae,he;for($=m,he=0;he<8;he++){if(ae=this.sampleCurveX($)-m,Math.abs(ae)U)return U;for(;Iae?I=$:U=$,$=(U-I)*.5+I}return $},l.prototype.solve=function(m,y){return this.sampleCurveY(this.solveCurveX(m,y))};var u=c;function c(m,y){this.x=m,this.y=y}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(m){return this.clone()._add(m)},sub:function(m){return this.clone()._sub(m)},multByPoint:function(m){return this.clone()._multByPoint(m)},divByPoint:function(m){return this.clone()._divByPoint(m)},mult:function(m){return this.clone()._mult(m)},div:function(m){return this.clone()._div(m)},rotate:function(m){return this.clone()._rotate(m)},rotateAround:function(m,y){return this.clone()._rotateAround(m,y)},matMult:function(m){return this.clone()._matMult(m)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(m){return this.x===m.x&&this.y===m.y},dist:function(m){return Math.sqrt(this.distSqr(m))},distSqr:function(m){var y=m.x-this.x,I=m.y-this.y;return y*y+I*I},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(m){return Math.atan2(this.y-m.y,this.x-m.x)},angleWith:function(m){return this.angleWithSep(m.x,m.y)},angleWithSep:function(m,y){return Math.atan2(this.x*y-this.y*m,this.x*m+this.y*y)},_matMult:function(m){var y=m[0]*this.x+m[1]*this.y,I=m[2]*this.x+m[3]*this.y;return this.x=y,this.y=I,this},_add:function(m){return this.x+=m.x,this.y+=m.y,this},_sub:function(m){return this.x-=m.x,this.y-=m.y,this},_mult:function(m){return this.x*=m,this.y*=m,this},_div:function(m){return this.x/=m,this.y/=m,this},_multByPoint:function(m){return this.x*=m.x,this.y*=m.y,this},_divByPoint:function(m){return this.x/=m.x,this.y/=m.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var m=this.y;return this.y=this.x,this.x=-m,this},_rotate:function(m){var y=Math.cos(m),I=Math.sin(m),U=y*this.x-I*this.y,$=I*this.x+y*this.y;return this.x=U,this.y=$,this},_rotateAround:function(m,y){var I=Math.cos(m),U=Math.sin(m),$=y.x+I*(this.x-y.x)-U*(this.y-y.y),ae=y.y+U*(this.x-y.x)+I*(this.y-y.y);return this.x=$,this.y=ae,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(m){return m instanceof c?m:Array.isArray(m)?new c(m[0],m[1]):m};var f=typeof self!="undefined"?self:{};function h(m,y){if(Array.isArray(m)){if(!Array.isArray(y)||m.length!==y.length)return!1;for(var I=0;I=1)return 1;var y=m*m,I=y*m;return 4*(m<.5?I:3*(m-y)+I-.75)}function x(m,y,I,U){var $=new s(m,y,I,U);return function(ae){return $.solve(ae)}}var b=x(.25,.1,.25,1);function p(m,y,I){return Math.min(I,Math.max(y,m))}function C(m,y,I){var U=I-y,$=((m-y)%U+U)%U+y;return $===y?I:$}function E(m,y,I){if(!m.length)return I(null,[]);var U=m.length,$=new Array(m.length),ae=null;m.forEach(function(he,Oe){y(he,function(rt,gt){rt&&(ae=rt),$[Oe]=gt,--U===0&&I(ae,$)})})}function A(m){var y=[];for(var I in m)y.push(m[I]);return y}function L(m,y){var I=[];for(var U in m)U in y||I.push(U);return I}function _(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var U=0,$=y;U<$.length;U+=1){var ae=$[U];for(var he in ae)m[he]=ae[he]}return m}function k(m,y){for(var I={},U=0;U>y/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,m)}return m()}function T(m){return m<=1?1:Math.pow(2,Math.ceil(Math.log(m)/Math.LN2))}function z(m){return m?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(m):!1}function O(m,y){m.forEach(function(I){y[I]&&(y[I]=y[I].bind(y))})}function V(m,y){return m.indexOf(y,m.length-y.length)!==-1}function G(m,y,I){var U={};for(var $ in m)U[$]=y.call(I||this,m[$],$,m);return U}function Z(m,y,I){var U={};for(var $ in m)y.call(I||this,m[$],$,m)&&(U[$]=m[$]);return U}function H(m){return Array.isArray(m)?m.map(H):typeof m=="object"&&m?G(m,H):m}function N(m,y){for(var I=0;I=0)return!0;return!1}var j={};function re(m){j[m]||(typeof console!="undefined"&&console.warn(m),j[m]=!0)}function oe(m,y,I){return(I.y-m.y)*(y.x-m.x)>(y.y-m.y)*(I.x-m.x)}function _e(m){for(var y=0,I=0,U=m.length,$=U-1,ae=void 0,he=void 0;I@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,I={};if(m.replace(y,function($,ae,he,Oe){var rt=he||Oe;return I[ae]=rt?rt.toLowerCase():!0,""}),I["max-age"]){var U=parseInt(I["max-age"],10);isNaN(U)?delete I["max-age"]:I["max-age"]=U}return I}var ie=null;function Se(m){if(ie==null){var y=m.navigator?m.navigator.userAgent:null;ie=!!m.safari||!!(y&&(/\b(iPad|iPhone|iPod)\b/.test(y)||y.match("Safari")&&!y.match("Chrome")))}return ie}function Le(m){try{var y=f[m];return y.setItem("_mapbox_test_",1),y.removeItem("_mapbox_test_"),!0}catch(I){return!1}}function Ae(m){return f.btoa(encodeURIComponent(m).replace(/%([0-9A-F]{2})/g,function(y,I){return String.fromCharCode(+("0x"+I))}))}function De(m){return decodeURIComponent(f.atob(m).split("").map(function(y){return"%"+("00"+y.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Pe=f.performance&&f.performance.now?f.performance.now.bind(f.performance):Date.now.bind(Date),ge=f.requestAnimationFrame||f.mozRequestAnimationFrame||f.webkitRequestAnimationFrame||f.msRequestAnimationFrame,Fe=f.cancelAnimationFrame||f.mozCancelAnimationFrame||f.webkitCancelAnimationFrame||f.msCancelAnimationFrame,ce,Ze,ct={now:Pe,frame:function(y){var I=ge(y);return{cancel:function(){return Fe(I)}}},getImageData:function(y,I){I===void 0&&(I=0);var U=f.document.createElement("canvas"),$=U.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return U.width=y.width,U.height=y.height,$.drawImage(y,0,0,y.width,y.height),$.getImageData(-I,-I,y.width+2*I,y.height+2*I)},resolveURL:function(y){return ce||(ce=f.document.createElement("a")),ce.href=y,ce.href},hardwareConcurrency:f.navigator&&f.navigator.hardwareConcurrency||4,get devicePixelRatio(){return f.devicePixelRatio},get prefersReducedMotion(){return f.matchMedia?(Ze==null&&(Ze=f.matchMedia("(prefers-reduced-motion: reduce)")),Ze.matches):!1}},pt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Wt={supported:!1,testSupport:$t},st,lt=!1,Gt,Nt=!1;f.document&&(Gt=f.document.createElement("img"),Gt.onload=function(){st&&sr(st),st=null,Nt=!0},Gt.onerror=function(){lt=!0,st=null},Gt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function $t(m){lt||!Gt||(Nt?sr(m):st=m)}function sr(m){var y=m.createTexture();m.bindTexture(m.TEXTURE_2D,y);try{if(m.texImage2D(m.TEXTURE_2D,0,m.RGBA,m.RGBA,m.UNSIGNED_BYTE,Gt),m.isContextLost())return;Wt.supported=!0}catch(I){}m.deleteTexture(y),lt=!0}var wr="01";function ur(){for(var m="1",y="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",I="",U=0;U<10;U++)I+=y[Math.floor(Math.random()*62)];var $=12*60*60*1e3,ae=[m,wr,I].join(""),he=Date.now()+$;return{token:ae,tokenExpiresAt:he}}var Qe=function(y,I){this._transformRequestFn=y,this._customAccessToken=I,this._createSkuToken()};Qe.prototype._createSkuToken=function(){var y=ur();this._skuToken=y.token,this._skuTokenExpiresAt=y.tokenExpiresAt},Qe.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Qe.prototype.transformRequest=function(y,I){return this._transformRequestFn?this._transformRequestFn(y,I)||{url:y}:{url:y}},Qe.prototype.normalizeStyleURL=function(y,I){if(!Et(y))return y;var U=Yt(y);return U.path="/styles/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},Qe.prototype.normalizeGlyphsURL=function(y,I){if(!Et(y))return y;var U=Yt(y);return U.path="/fonts/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},Qe.prototype.normalizeSourceURL=function(y,I){if(!Et(y))return y;var U=Yt(y);return U.path="/v4/"+U.authority+".json",U.params.push("secure"),this._makeAPIURL(U,this._customAccessToken||I)},Qe.prototype.normalizeSpriteURL=function(y,I,U,$){var ae=Yt(y);return Et(y)?(ae.path="/styles/v1"+ae.path+"/sprite"+I+U,this._makeAPIURL(ae,this._customAccessToken||$)):(ae.path+=""+I+U,lr(ae))},Qe.prototype.normalizeTileURL=function(y,I){if(this._isSkuTokenExpired()&&this._createSkuToken(),y&&!Et(y))return y;var U=Yt(y),$=/(\.(png|jpg)\d*)(?=$)/,ae=/^.+\/v4\//,he=ct.devicePixelRatio>=2||I===512?"@2x":"",Oe=Wt.supported?".webp":"$1";U.path=U.path.replace($,""+he+Oe),U.path=U.path.replace(ae,"/"),U.path="/v4"+U.path;var rt=this._customAccessToken||bt(U.params)||pt.ACCESS_TOKEN;return pt.REQUIRE_ACCESS_TOKEN&&rt&&this._skuToken&&U.params.push("sku="+this._skuToken),this._makeAPIURL(U,rt)},Qe.prototype.canonicalizeTileURL=function(y,I){var U="/v4/",$=/\.[\w]+$/,ae=Yt(y);if(!ae.path.match(/(^\/v4\/)/)||!ae.path.match($))return y;var he="mapbox://tiles/";he+=ae.path.replace(U,"");var Oe=ae.params;return I&&(Oe=Oe.filter(function(rt){return!rt.match(/^access_token=/)})),Oe.length&&(he+="?"+Oe.join("&")),he},Qe.prototype.canonicalizeTileset=function(y,I){for(var U=I?Et(I):!1,$=[],ae=0,he=y.tiles||[];ae=0&&y.params.splice(ae,1)}if($.path!=="/"&&(y.path=""+$.path+y.path),!pt.REQUIRE_ACCESS_TOKEN)return lr(y);if(I=I||pt.ACCESS_TOKEN,!I)throw new Error("An API access token is required to use Mapbox GL. "+U);if(I[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+U);return y.params=y.params.filter(function(he){return he.indexOf("access_token")===-1}),y.params.push("access_token="+I),lr(y)};function Et(m){return m.indexOf("mapbox:")===0}var er=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Ut(m){return er.test(m)}function Ft(m){return m.indexOf("sku=")>0&&Ut(m)}function bt(m){for(var y=0,I=m;y=1&&f.localStorage.setItem(I,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},ei.prototype.processRequests=function(y){},ei.prototype.postEvent=function(y,I,U,$){var ae=this;if(pt.EVENTS_URL){var he=Yt(pt.EVENTS_URL);he.params.push("access_token="+($||pt.ACCESS_TOKEN||""));var Oe={event:this.type,created:new Date(y).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:wr,userId:this.anonId},rt=I?_(Oe,I):Oe,gt={url:lr(he),headers:{"Content-Type":"text/plain"},body:JSON.stringify([rt])};this.pendingRequest=$r(gt,function(Mt){ae.pendingRequest=null,U(Mt),ae.saveEventData(),ae.processRequests($)})}},ei.prototype.queueRequest=function(y,I){this.queue.push(y),this.processRequests(I)};var Wr=function(m){function y(){m.call(this,"map.load"),this.success={},this.skuToken=""}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postMapLoadEvent=function(U,$,ae,he){this.skuToken=ae,(pt.EVENTS_URL&&he||pt.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(Oe){return Et(Oe)||Ut(Oe)}))&&this.queueRequest({id:$,timestamp:Date.now()},he)},y.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var ae=this.queue.shift(),he=ae.id,Oe=ae.timestamp;he&&this.success[he]||(this.anonId||this.fetchEventData(),z(this.anonId)||(this.anonId=P()),this.postEvent(Oe,{skuToken:this.skuToken},function(rt){rt||he&&($.success[he]=!0)},U))}},y}(ei),Ur=function(m){function y(I){m.call(this,"appUserTurnstile"),this._customAccessToken=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postTurnstileEvent=function(U,$){pt.EVENTS_URL&&pt.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(ae){return Et(ae)||Ut(ae)})&&this.queueRequest(Date.now(),$)},y.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var ae=Rr(pt.ACCESS_TOKEN),he=ae?ae.u:pt.ACCESS_TOKEN,Oe=he!==this.eventData.tokenU;z(this.anonId)||(this.anonId=P(),Oe=!0);var rt=this.queue.shift();if(this.eventData.lastSuccess){var gt=new Date(this.eventData.lastSuccess),Mt=new Date(rt),or=(rt-this.eventData.lastSuccess)/(24*60*60*1e3);Oe=Oe||or>=1||or<-1||gt.getDate()!==Mt.getDate()}else Oe=!0;if(!Oe)return this.processRequests();this.postEvent(rt,{"enabled.telemetry":!1},function(_r){_r||($.eventData.lastSuccess=rt,$.eventData.tokenU=he)},U)}},y}(ei),dt=new Ur,Ge=dt.postTurnstileEvent.bind(dt),Je=new Wr,je=Je.postMapLoadEvent.bind(Je),$e="mapbox-tiles",wt=500,Ie=50,xe=1e3*60*7,Ce;function vt(){f.caches&&!Ce&&(Ce=f.caches.open($e))}var nr;function ir(m,y){if(nr===void 0)try{new Response(new ReadableStream),nr=!0}catch(I){nr=!1}nr?y(m.body):m.blob().then(y)}function pr(m,y,I){if(vt(),!!Ce){var U={status:y.status,statusText:y.statusText,headers:new f.Headers};y.headers.forEach(function(he,Oe){return U.headers.set(Oe,he)});var $=me(y.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&U.headers.set("Expires",new Date(I+$["max-age"]*1e3).toUTCString());var ae=new Date(U.headers.get("Expires")).getTime()-I;aeDate.now()&&!I["no-cache"]}var fi=1/0;function Hi(m){fi++,fi>Ie&&(m.getActor().send("enforceCacheSizeLimit",wt),fi=0)}function Pn(m){vt(),Ce&&Ce.then(function(y){y.keys().then(function(I){for(var U=0;U=200&&I.status<300||I.status===0)&&I.response!==null){var $=I.response;if(m.type==="json")try{$=JSON.parse(I.response)}catch(ae){return y(ae)}y(null,$,I.getResponseHeader("Cache-Control"),I.getResponseHeader("Expires"))}else y(new ua(I.statusText,I.status,m.url))},I.send(m.body),{cancel:function(){return I.abort()}}}var Er=function(m,y){if(!_t(m.url)){if(f.fetch&&f.Request&&f.AbortController&&f.Request.prototype.hasOwnProperty("signal"))return tr(m,y);if(ke()&&self.worker&&self.worker.actor){var I=!0;return self.worker.actor.send("getResource",m,y,void 0,I)}}return ar(m,y)},Zr=function(m,y){return Er(_(m,{type:"json"}),y)},ri=function(m,y){return Er(_(m,{type:"arrayBuffer"}),y)},$r=function(m,y){return Er(_(m,{method:"POST"}),y)};function zi(m){var y=f.document.createElement("a");return y.href=m,y.protocol===f.document.location.protocol&&y.host===f.document.location.host}var Ji="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function en(m,y,I,U){var $=new f.Image,ae=f.URL;$.onload=function(){y(null,$),ae.revokeObjectURL($.src),$.onload=null,f.requestAnimationFrame(function(){$.src=Ji})},$.onerror=function(){return y(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var he=new f.Blob([new Uint8Array(m)],{type:"image/png"});$.cacheControl=I,$.expires=U,$.src=m.byteLength?ae.createObjectURL(he):Ji}function cn(m,y){var I=new f.Blob([new Uint8Array(m)],{type:"image/png"});f.createImageBitmap(I).then(function(U){y(null,U)}).catch(function(U){y(new Error("Could not load image because of "+U.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var yn,Mn,Ba=function(){yn=[],Mn=0};Ba();var la=function(m,y){if(Wt.supported&&(m.headers||(m.headers={}),m.headers.accept="image/webp,*/*"),Mn>=pt.MAX_PARALLEL_IMAGE_REQUESTS){var I={requestParameters:m,callback:y,cancelled:!1,cancel:function(){this.cancelled=!0}};return yn.push(I),I}Mn++;var U=!1,$=function(){if(!U)for(U=!0,Mn--;yn.length&&Mn0||this._oneTimeListeners&&this._oneTimeListeners[y]&&this._oneTimeListeners[y].length>0||this._eventedParent&&this._eventedParent.listens(y)},Wn.prototype.setEventedParent=function(y,I){return this._eventedParent=y,this._eventedParentData=I,this};var Ga=8,vo={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},jn={"*":{type:"source"}},St=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Cr={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Qr={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},pi={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},fn={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Sn={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},En={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ki={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},_n=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],ya={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Jn={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ma={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},_o={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},No={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},po={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Lo={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Co={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Fs={type:"array",value:"*"},zs={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},ul={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},cl={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},zl={type:"array",value:"*",minimum:1},cs={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},nl=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],Ss={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},fl={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Js={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},Os={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Io={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},us={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Zl={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Su={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},nc={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},ws={"*":{type:"string"}},Fn={$version:Ga,$root:vo,sources:jn,source:St,source_vector:Cr,source_raster:Qr,source_raster_dem:pi,source_geojson:fn,source_video:Sn,source_image:En,layer:ki,layout:_n,layout_background:ya,layout_fill:Jn,layout_circle:Ma,layout_heatmap:_o,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:No,layout_symbol:po,layout_raster:Lo,layout_hillshade:Co,filter:Fs,filter_operator:zs,geometry_type:ul,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:cl,expression:zl,light:cs,paint:nl,paint_fill:Ss,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:fl,paint_circle:Js,paint_heatmap:Os,paint_symbol:Io,paint_raster:us,paint_hillshade:Zl,paint_background:Su,transition:nc,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:ws},_a=function(y,I,U,$){this.message=(y?y+": ":"")+U,$&&(this.identifier=$),I!=null&&I.__line__&&(this.line=I.__line__)};function Vu(m){var y=m.key,I=m.value;return I?[new _a(y,I,"constants have been deprecated as of v8")]:[]}function Ol(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var U=0,$=y;U<$.length;U+=1){var ae=$[U];for(var he in ae)m[he]=ae[he]}return m}function xo(m){return m instanceof Number||m instanceof String||m instanceof Boolean?m.valueOf():m}function Yl(m){if(Array.isArray(m))return m.map(Yl);if(m instanceof Object&&!(m instanceof Number||m instanceof String||m instanceof Boolean)){var y={};for(var I in m)y[I]=Yl(m[I]);return y}return xo(m)}var Us=function(m){function y(I,U){m.call(this,U),this.message=U,this.key=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y}(Error),Hl=function(y,I){I===void 0&&(I=[]),this.parent=y,this.bindings={};for(var U=0,$=I;U<$.length;U+=1){var ae=$[U],he=ae[0],Oe=ae[1];this.bindings[he]=Oe}};Hl.prototype.concat=function(y){return new Hl(this,y)},Hl.prototype.get=function(y){if(this.bindings[y])return this.bindings[y];if(this.parent)return this.parent.get(y);throw new Error(y+" not found in scope.")},Hl.prototype.has=function(y){return this.bindings[y]?!0:this.parent?this.parent.has(y):!1};var ac={kind:"null"},aa={kind:"number"},Oo={kind:"string"},qo={kind:"boolean"},ql={kind:"color"},Pc={kind:"object"},Do={kind:"value"},rf={kind:"error"},Uf={kind:"collator"},ml={kind:"formatted"},Zc={kind:"resolvedImage"};function Kl(m,y){return{kind:"array",itemType:m,N:y}}function qs(m){if(m.kind==="array"){var y=qs(m.itemType);return typeof m.N=="number"?"array<"+y+", "+m.N+">":m.itemType.kind==="value"?"array":"array<"+y+">"}else return m.kind}var yu=[ac,aa,Oo,qo,ql,ml,Pc,Kl(Do),Zc];function oc(m,y){if(y.kind==="error")return null;if(m.kind==="array"){if(y.kind==="array"&&(y.N===0&&y.itemType.kind==="value"||!oc(m.itemType,y.itemType))&&(typeof m.N!="number"||m.N===y.N))return null}else{if(m.kind===y.kind)return null;if(m.kind==="value")for(var I=0,U=yu;I255?255:gt}function $(gt){return gt<0?0:gt>1?1:gt}function ae(gt){return gt[gt.length-1]==="%"?U(parseFloat(gt)/100*255):U(parseInt(gt))}function he(gt){return gt[gt.length-1]==="%"?$(parseFloat(gt)/100):$(parseFloat(gt))}function Oe(gt,Mt,or){return or<0?or+=1:or>1&&(or-=1),or*6<1?gt+(Mt-gt)*or*6:or*2<1?Mt:or*3<2?gt+(Mt-gt)*(2/3-or)*6:gt}function rt(gt){var Mt=gt.replace(/ /g,"").toLowerCase();if(Mt in I)return I[Mt].slice();if(Mt[0]==="#"){if(Mt.length===4){var or=parseInt(Mt.substr(1),16);return or>=0&&or<=4095?[(or&3840)>>4|(or&3840)>>8,or&240|(or&240)>>4,or&15|(or&15)<<4,1]:null}else if(Mt.length===7){var or=parseInt(Mt.substr(1),16);return or>=0&&or<=16777215?[(or&16711680)>>16,(or&65280)>>8,or&255,1]:null}return null}var _r=Mt.indexOf("("),vr=Mt.indexOf(")");if(_r!==-1&&vr+1===Mt.length){var Fr=Mt.substr(0,_r),ai=Mt.substr(_r+1,vr-(_r+1)).split(","),Gi=1;switch(Fr){case"rgba":if(ai.length!==4)return null;Gi=he(ai.pop());case"rgb":return ai.length!==3?null:[ae(ai[0]),ae(ai[1]),ae(ai[2]),Gi];case"hsla":if(ai.length!==4)return null;Gi=he(ai.pop());case"hsl":if(ai.length!==3)return null;var Ti=(parseFloat(ai[0])%360+360)%360/360,bn=he(ai[1]),rn=he(ai[2]),xn=rn<=.5?rn*(bn+1):rn+bn-rn*bn,Dn=rn*2-xn;return[U(Oe(Dn,xn,Ti+1/3)*255),U(Oe(Dn,xn,Ti)*255),U(Oe(Dn,xn,Ti-1/3)*255),Gi];default:return null}}return null}try{y.parseCSSColor=rt}catch(gt){}}),kf=Nh.parseCSSColor,fs=function(y,I,U,$){$===void 0&&($=1),this.r=y,this.g=I,this.b=U,this.a=$};fs.parse=function(y){if(y){if(y instanceof fs)return y;if(typeof y=="string"){var I=kf(y);if(I)return new fs(I[0]/255*I[3],I[1]/255*I[3],I[2]/255*I[3],I[3])}}},fs.prototype.toString=function(){var y=this.toArray(),I=y[0],U=y[1],$=y[2],ae=y[3];return"rgba("+Math.round(I)+","+Math.round(U)+","+Math.round($)+","+ae+")"},fs.prototype.toArray=function(){var y=this,I=y.r,U=y.g,$=y.b,ae=y.a;return ae===0?[0,0,0,0]:[I*255/ae,U*255/ae,$*255/ae,ae]},fs.black=new fs(0,0,0,1),fs.white=new fs(1,1,1,1),fs.transparent=new fs(0,0,0,0),fs.red=new fs(1,0,0,1);var nf=function(y,I,U){y?this.sensitivity=I?"variant":"case":this.sensitivity=I?"accent":"base",this.locale=U,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};nf.prototype.compare=function(y,I){return this.collator.compare(y,I)},nf.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Vf=function(y,I,U,$,ae){this.text=y,this.image=I,this.scale=U,this.fontStack=$,this.textColor=ae},Jl=function(y){this.sections=y};Jl.fromString=function(y){return new Jl([new Vf(y,null,null,null,null)])},Jl.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(y){return y.text.length!==0||y.image&&y.image.name.length!==0})},Jl.factory=function(y){return y instanceof Jl?y:Jl.fromString(y)},Jl.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(y){return y.text}).join("")},Jl.prototype.serialize=function(){for(var y=["format"],I=0,U=this.sections;I=0&&m<=255&&typeof y=="number"&&y>=0&&y<=255&&typeof I=="number"&&I>=0&&I<=255)){var $=typeof U=="number"?[m,y,I,U]:[m,y,I];return"Invalid rgba value ["+$.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof U=="undefined"||typeof U=="number"&&U>=0&&U<=1?null:"Invalid rgba value ["+[m,y,I,U].join(", ")+"]: 'a' must be between 0 and 1."}function Fu(m){if(m===null)return!0;if(typeof m=="string")return!0;if(typeof m=="boolean")return!0;if(typeof m=="number")return!0;if(m instanceof fs)return!0;if(m instanceof nf)return!0;if(m instanceof Jl)return!0;if(m instanceof hl)return!0;if(Array.isArray(m)){for(var y=0,I=m;y2){var Oe=y[1];if(typeof Oe!="string"||!(Oe in uc)||Oe==="object")return I.error('The item type argument of "array" must be one of string, number, boolean',1);he=uc[Oe],U++}else he=Do;var rt;if(y.length>3){if(y[2]!==null&&(typeof y[2]!="number"||y[2]<0||y[2]!==Math.floor(y[2])))return I.error('The length argument to "array" must be a positive integer literal',2);rt=y[2],U++}$=Kl(he,rt)}else $=uc[ae];for(var gt=[];U1)&&I.push($)}}return I.concat(this.args.map(function(ae){return ae.serialize()}))};var Gu=function(y){this.type=ml,this.sections=y};Gu.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var U=y[1];if(!Array.isArray(U)&&typeof U=="object")return I.error("First argument must be an image or text section.");for(var $=[],ae=!1,he=1;he<=y.length-1;++he){var Oe=y[he];if(ae&&typeof Oe=="object"&&!Array.isArray(Oe)){ae=!1;var rt=null;if(Oe["font-scale"]&&(rt=I.parse(Oe["font-scale"],1,aa),!rt))return null;var gt=null;if(Oe["text-font"]&&(gt=I.parse(Oe["text-font"],1,Kl(Oo)),!gt))return null;var Mt=null;if(Oe["text-color"]&&(Mt=I.parse(Oe["text-color"],1,ql),!Mt))return null;var or=$[$.length-1];or.scale=rt,or.font=gt,or.textColor=Mt}else{var _r=I.parse(y[he],1,Do);if(!_r)return null;var vr=_r.type.kind;if(vr!=="string"&&vr!=="value"&&vr!=="null"&&vr!=="resolvedImage")return I.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ae=!0,$.push({content:_r,scale:null,font:null,textColor:null})}}return new Gu($)},Gu.prototype.evaluate=function(y){var I=function(U){var $=U.content.evaluate(y);return Cs($)===Zc?new Vf("",$,null,null,null):new Vf(js($),null,U.scale?U.scale.evaluate(y):null,U.font?U.font.evaluate(y).join(","):null,U.textColor?U.textColor.evaluate(y):null)};return new Jl(this.sections.map(I))},Gu.prototype.eachChild=function(y){for(var I=0,U=this.sections;I-1),U},Bs.prototype.eachChild=function(y){y(this.input)},Bs.prototype.outputDefined=function(){return!1},Bs.prototype.serialize=function(){return["image",this.input.serialize()]};var ad={"to-boolean":qo,"to-color":ql,"to-number":aa,"to-string":Oo},Po=function(y,I){this.type=y,this.args=I};Po.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var U=y[0];if((U==="to-boolean"||U==="to-string")&&y.length!==2)return I.error("Expected one argument.");for(var $=ad[U],ae=[],he=1;he4?U="Invalid rbga value "+JSON.stringify(I)+": expected an array containing either three or four numeric values.":U=lc(I[0],I[1],I[2],I[3]),!U))return new fs(I[0]/255,I[1]/255,I[2]/255,I[3])}throw new gs(U||"Could not parse color from value '"+(typeof I=="string"?I:String(JSON.stringify(I)))+"'")}else if(this.type.kind==="number"){for(var rt=null,gt=0,Mt=this.args;gt=y[2]||m[1]<=y[1]||m[3]>=y[3])}function _h(m,y){var I=Ic(m[0]),U=mf(m[1]),$=Math.pow(2,y.z);return[Math.round(I*$*wl),Math.round(U*$*wl)]}function Qf(m,y,I){var U=m[0]-y[0],$=m[1]-y[1],ae=m[0]-I[0],he=m[1]-I[1];return U*he-ae*$===0&&U*ae<=0&&$*he<=0}function yf(m,y,I){return y[1]>m[1]!=I[1]>m[1]&&m[0]<(I[0]-y[0])*(m[1]-y[1])/(I[1]-y[1])+y[0]}function Yc(m,y){for(var I=!1,U=0,$=y.length;U<$;U++)for(var ae=y[U],he=0,Oe=ae.length;he0&&or<0||Mt<0&&or>0}function Hf(m,y,I,U){var $=[y[0]-m[0],y[1]-m[1]],ae=[U[0]-I[0],U[1]-I[1]];return th(ae,$)===0?!1:!!(ju(m,y,I,U)&&ju(I,U,m,y))}function cc(m,y,I){for(var U=0,$=I;U<$.length;U+=1)for(var ae=$[U],he=0;heI[2]){var $=U*.5,ae=m[0]-I[0]>$?-U:I[0]-m[0]>$?U:0;ae===0&&(ae=m[0]-I[2]>$?-U:I[2]-m[0]>$?U:0),m[0]+=ae}Gf(y,m)}function jf(m){m[0]=m[1]=1/0,m[2]=m[3]=-1/0}function Uh(m,y,I,U){for(var $=Math.pow(2,U.z)*wl,ae=[U.x*wl,U.y*wl],he=[],Oe=0,rt=m;Oe=0)return!1;var I=!0;return m.eachChild(function(U){I&&!Eu(U,y)&&(I=!1)}),I}var Dc=function(y,I){this.type=I.type,this.name=y,this.boundExpression=I};Dc.parse=function(y,I){if(y.length!==2||typeof y[1]!="string")return I.error("'var' expression requires exactly one string literal argument.");var U=y[1];return I.scope.has(U)?new Dc(U,I.scope.get(U)):I.error('Unknown variable "'+U+'". Make sure "'+U+'" has been bound in an enclosing "let" expression before using it.',1)},Dc.prototype.evaluate=function(y){return this.boundExpression.evaluate(y)},Dc.prototype.eachChild=function(){},Dc.prototype.outputDefined=function(){return!1},Dc.prototype.serialize=function(){return["var",this.name]};var ks=function(y,I,U,$,ae){I===void 0&&(I=[]),$===void 0&&($=new Hl),ae===void 0&&(ae=[]),this.registry=y,this.path=I,this.key=I.map(function(he){return"["+he+"]"}).join(""),this.scope=$,this.errors=ae,this.expectedType=U};ks.prototype.parse=function(y,I,U,$,ae){return ae===void 0&&(ae={}),I?this.concat(I,U,$)._parse(y,ae):this._parse(y,ae)},ks.prototype._parse=function(y,I){(y===null||typeof y=="string"||typeof y=="boolean"||typeof y=="number")&&(y=["literal",y]);function U(Mt,or,_r){return _r==="assert"?new bl(or,[Mt]):_r==="coerce"?new Po(or,[Mt]):Mt}if(Array.isArray(y)){if(y.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=y[0];if(typeof $!="string")return this.error("Expression name must be a string, but found "+typeof $+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var ae=this.registry[$];if(ae){var he=ae.parse(y,this);if(!he)return null;if(this.expectedType){var Oe=this.expectedType,rt=he.type;if((Oe.kind==="string"||Oe.kind==="number"||Oe.kind==="boolean"||Oe.kind==="object"||Oe.kind==="array")&&rt.kind==="value")he=U(he,Oe,I.typeAnnotation||"assert");else if((Oe.kind==="color"||Oe.kind==="formatted"||Oe.kind==="resolvedImage")&&(rt.kind==="value"||rt.kind==="string"))he=U(he,Oe,I.typeAnnotation||"coerce");else if(this.checkSubtype(Oe,rt))return null}if(!(he instanceof Go)&&he.type.kind!=="resolvedImage"&&bc(he)){var gt=new Yo;try{he=new Go(he.type,he.evaluate(gt))}catch(Mt){return this.error(Mt.message),null}}return he}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof y=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof y=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof y+" instead.")},ks.prototype.concat=function(y,I,U){var $=typeof y=="number"?this.path.concat(y):this.path,ae=U?this.scope.concat(U):this.scope;return new ks(this.registry,$,I||null,ae,this.errors)},ks.prototype.error=function(y){for(var I=[],U=arguments.length-1;U-- >0;)I[U]=arguments[U+1];var $=""+this.key+I.map(function(ae){return"["+ae+"]"}).join("");this.errors.push(new Us($,y))},ks.prototype.checkSubtype=function(y,I){var U=oc(y,I);return U&&this.error(U),U};function bc(m){if(m instanceof Dc)return bc(m.boundExpression);if(m instanceof Pa&&m.name==="error")return!1;if(m instanceof Hu)return!1;if(m instanceof Mu)return!1;var y=m instanceof Po||m instanceof bl,I=!0;return m.eachChild(function(U){y?I=I&&bc(U):I=I&&U instanceof Go}),I?ih(m)&&Eu(m,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function hu(m,y){for(var I=m.length-1,U=0,$=I,ae=0,he,Oe;U<=$;)if(ae=Math.floor((U+$)/2),he=m[ae],Oe=m[ae+1],he<=y){if(ae===I||yy)$=ae-1;else throw new gs("Input is not a number.");return 0}var _u=function(y,I,U){this.type=y,this.input=I,this.labels=[],this.outputs=[];for(var $=0,ae=U;$=Oe)return I.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',gt);var or=I.parse(rt,Mt,ae);if(!or)return null;ae=ae||or.type,$.push([Oe,or])}return new _u(ae,U,$)},_u.prototype.evaluate=function(y){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return U[0].evaluate(y);var ae=I.length;if($>=I[ae-1])return U[ae-1].evaluate(y);var he=hu(I,$);return U[he].evaluate(y)},_u.prototype.eachChild=function(y){y(this.input);for(var I=0,U=this.outputs;I0&&y.push(this.labels[I]),y.push(this.outputs[I].serialize());return y};function al(m,y,I){return m*(1-I)+y*I}function nh(m,y,I){return new fs(al(m.r,y.r,I),al(m.g,y.g,I),al(m.b,y.b,I),al(m.a,y.a,I))}function bh(m,y,I){return m.map(function(U,$){return al(U,y[$],I)})}var zu=Object.freeze({__proto__:null,number:al,color:nh,array:bh}),Fc=.95047,wc=1,bd=1.08883,_f=4/29,Lf=6/29,Ou=3*Lf*Lf,xf=Lf*Lf*Lf,jl=Math.PI/180,lf=180/Math.PI;function Vh(m){return m>xf?Math.pow(m,1/3):m/Ou+_f}function Pf(m){return m>Lf?m*m*m:Ou*(m-_f)}function Ls(m){return 255*(m<=.0031308?12.92*m:1.055*Math.pow(m,1/2.4)-.055)}function du(m){return m/=255,m<=.04045?m/12.92:Math.pow((m+.055)/1.055,2.4)}function Cu(m){var y=du(m.r),I=du(m.g),U=du(m.b),$=Vh((.4124564*y+.3575761*I+.1804375*U)/Fc),ae=Vh((.2126729*y+.7151522*I+.072175*U)/wc),he=Vh((.0193339*y+.119192*I+.9503041*U)/bd);return{l:116*ae-16,a:500*($-ae),b:200*(ae-he),alpha:m.a}}function Wf(m){var y=(m.l+16)/116,I=isNaN(m.a)?y:y+m.a/500,U=isNaN(m.b)?y:y-m.b/200;return y=wc*Pf(y),I=Fc*Pf(I),U=bd*Pf(U),new fs(Ls(3.2404542*I-1.5371385*y-.4985314*U),Ls(-.969266*I+1.8760108*y+.041556*U),Ls(.0556434*I-.2040259*y+1.0572252*U),m.alpha)}function Vs(m,y,I){return{l:al(m.l,y.l,I),a:al(m.a,y.a,I),b:al(m.b,y.b,I),alpha:al(m.alpha,y.alpha,I)}}function bf(m){var y=Cu(m),I=y.l,U=y.a,$=y.b,ae=Math.atan2($,U)*lf;return{h:ae<0?ae+360:ae,c:Math.sqrt(U*U+$*$),l:I,alpha:m.a}}function zc(m){var y=m.h*jl,I=m.c,U=m.l;return Wf({l:U,a:Math.cos(y)*I,b:Math.sin(y)*I,alpha:m.alpha})}function Wu(m,y,I){var U=y-m;return m+I*(U>180||U<-180?U-360*Math.round(U/360):U)}function If(m,y,I){return{h:Wu(m.h,y.h,I),c:al(m.c,y.c,I),l:al(m.l,y.l,I),alpha:al(m.alpha,y.alpha,I)}}var Xu={forward:Cu,reverse:Wf,interpolate:Vs},uf={forward:bf,reverse:zc,interpolate:If},Xf=Object.freeze({__proto__:null,lab:Xu,hcl:uf}),Wl=function(y,I,U,$,ae){this.type=y,this.operator=I,this.interpolation=U,this.input=$,this.labels=[],this.outputs=[];for(var he=0,Oe=ae;he1}))return I.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:rt}}else return I.error("Unknown interpolation type "+String($[0]),1,0);if(y.length-1<4)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if((y.length-1)%2!==0)return I.error("Expected an even number of arguments.");if(ae=I.parse(ae,2,aa),!ae)return null;var gt=[],Mt=null;U==="interpolate-hcl"||U==="interpolate-lab"?Mt=ql:I.expectedType&&I.expectedType.kind!=="value"&&(Mt=I.expectedType);for(var or=0;or=_r)return I.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Fr);var Gi=I.parse(vr,ai,Mt);if(!Gi)return null;Mt=Mt||Gi.type,gt.push([_r,Gi])}return Mt.kind!=="number"&&Mt.kind!=="color"&&!(Mt.kind==="array"&&Mt.itemType.kind==="number"&&typeof Mt.N=="number")?I.error("Type "+qs(Mt)+" is not interpolatable."):new Wl(Mt,U,$,ae,gt)},Wl.prototype.evaluate=function(y){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return U[0].evaluate(y);var ae=I.length;if($>=I[ae-1])return U[ae-1].evaluate(y);var he=hu(I,$),Oe=I[he],rt=I[he+1],gt=Wl.interpolationFactor(this.interpolation,$,Oe,rt),Mt=U[he].evaluate(y),or=U[he+1].evaluate(y);return this.operator==="interpolate"?zu[this.type.kind.toLowerCase()](Mt,or,gt):this.operator==="interpolate-hcl"?uf.reverse(uf.interpolate(uf.forward(Mt),uf.forward(or),gt)):Xu.reverse(Xu.interpolate(Xu.forward(Mt),Xu.forward(or),gt))},Wl.prototype.eachChild=function(y){y(this.input);for(var I=0,U=this.outputs;I=U.length)throw new gs("Array index out of bounds: "+I+" > "+(U.length-1)+".");if(I!==Math.floor(I))throw new gs("Array index must be an integer, but found "+I+" instead.");return U[I]},Tc.prototype.eachChild=function(y){y(this.index),y(this.input)},Tc.prototype.outputDefined=function(){return!1},Tc.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Tl=function(y,I){this.type=qo,this.needle=y,this.haystack=I};Tl.parse=function(y,I){if(y.length!==3)return I.error("Expected 2 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,Do),$=I.parse(y[2],2,Do);return!U||!$?null:Cf(U.type,[qo,Oo,aa,ac,Do])?new Tl(U,$):I.error("Expected first argument to be of type boolean, string, number or null, but found "+qs(U.type)+" instead")},Tl.prototype.evaluate=function(y){var I=this.needle.evaluate(y),U=this.haystack.evaluate(y);if(!U)return!1;if(!sc(I,["boolean","string","number","null"]))throw new gs("Expected first argument to be of type boolean, string, number or null, but found "+qs(Cs(I))+" instead.");if(!sc(U,["string","array"]))throw new gs("Expected second argument to be of type array or string, but found "+qs(Cs(U))+" instead.");return U.indexOf(I)>=0},Tl.prototype.eachChild=function(y){y(this.needle),y(this.haystack)},Tl.prototype.outputDefined=function(){return!0},Tl.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var vu=function(y,I,U){this.type=aa,this.needle=y,this.haystack=I,this.fromIndex=U};vu.parse=function(y,I){if(y.length<=2||y.length>=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,Do),$=I.parse(y[2],2,Do);if(!U||!$)return null;if(!Cf(U.type,[qo,Oo,aa,ac,Do]))return I.error("Expected first argument to be of type boolean, string, number or null, but found "+qs(U.type)+" instead");if(y.length===4){var ae=I.parse(y[3],3,aa);return ae?new vu(U,$,ae):null}else return new vu(U,$)},vu.prototype.evaluate=function(y){var I=this.needle.evaluate(y),U=this.haystack.evaluate(y);if(!sc(I,["boolean","string","number","null"]))throw new gs("Expected first argument to be of type boolean, string, number or null, but found "+qs(Cs(I))+" instead.");if(!sc(U,["string","array"]))throw new gs("Expected second argument to be of type array or string, but found "+qs(Cs(U))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(y);return U.indexOf(I,$)}return U.indexOf(I)},vu.prototype.eachChild=function(y){y(this.needle),y(this.haystack),this.fromIndex&&y(this.fromIndex)},vu.prototype.outputDefined=function(){return!1},vu.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var y=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),y]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var qc=function(y,I,U,$,ae,he){this.inputType=y,this.type=I,this.input=U,this.cases=$,this.outputs=ae,this.otherwise=he};qc.parse=function(y,I){if(y.length<5)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if(y.length%2!==1)return I.error("Expected an even number of arguments.");var U,$;I.expectedType&&I.expectedType.kind!=="value"&&($=I.expectedType);for(var ae={},he=[],Oe=2;OeNumber.MAX_SAFE_INTEGER)return Mt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof vr=="number"&&Math.floor(vr)!==vr)return Mt.error("Numeric branch labels must be integer values.");if(!U)U=Cs(vr);else if(Mt.checkSubtype(U,Cs(vr)))return null;if(typeof ae[String(vr)]!="undefined")return Mt.error("Branch labels must be unique.");ae[String(vr)]=he.length}var Fr=I.parse(gt,Oe,$);if(!Fr)return null;$=$||Fr.type,he.push(Fr)}var ai=I.parse(y[1],1,Do);if(!ai)return null;var Gi=I.parse(y[y.length-1],y.length-1,$);return!Gi||ai.type.kind!=="value"&&I.concat(1).checkSubtype(U,ai.type)?null:new qc(U,$,ai,ae,he,Gi)},qc.prototype.evaluate=function(y){var I=this.input.evaluate(y),U=Cs(I)===this.inputType&&this.outputs[this.cases[I]]||this.otherwise;return U.evaluate(y)},qc.prototype.eachChild=function(y){y(this.input),this.outputs.forEach(y),y(this.otherwise)},qc.prototype.outputDefined=function(){return this.outputs.every(function(y){return y.outputDefined()})&&this.otherwise.outputDefined()},qc.prototype.serialize=function(){for(var y=this,I=["match",this.input.serialize()],U=Object.keys(this.cases).sort(),$=[],ae={},he=0,Oe=U;he=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,Do),$=I.parse(y[2],2,aa);if(!U||!$)return null;if(!Cf(U.type,[Kl(Do),Oo,Do]))return I.error("Expected first argument to be of type array or string, but found "+qs(U.type)+" instead");if(y.length===4){var ae=I.parse(y[3],3,aa);return ae?new fc(U.type,U,$,ae):null}else return new fc(U.type,U,$)},fc.prototype.evaluate=function(y){var I=this.input.evaluate(y),U=this.beginIndex.evaluate(y);if(!sc(I,["string","array"]))throw new gs("Expected first argument to be of type array or string, but found "+qs(Cs(I))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(y);return I.slice(U,$)}return I.slice(U)},fc.prototype.eachChild=function(y){y(this.input),y(this.beginIndex),this.endIndex&&y(this.endIndex)},fc.prototype.outputDefined=function(){return!1},fc.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var y=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),y]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Bc(m,y){return m==="=="||m==="!="?y.kind==="boolean"||y.kind==="string"||y.kind==="number"||y.kind==="null"||y.kind==="value":y.kind==="string"||y.kind==="number"||y.kind==="value"}function At(m,y,I){return y===I}function Xt(m,y,I){return y!==I}function kr(m,y,I){return yI}function Kr(m,y,I){return y<=I}function Ei(m,y,I){return y>=I}function Wi(m,y,I,U){return U.compare(y,I)===0}function hn(m,y,I,U){return!Wi(m,y,I,U)}function Tn(m,y,I,U){return U.compare(y,I)<0}function Bn(m,y,I,U){return U.compare(y,I)>0}function Zi(m,y,I,U){return U.compare(y,I)<=0}function $i(m,y,I,U){return U.compare(y,I)>=0}function an(m,y,I){var U=m!=="=="&&m!=="!=";return function(){function $(ae,he,Oe){this.type=qo,this.lhs=ae,this.rhs=he,this.collator=Oe,this.hasUntypedArgument=ae.type.kind==="value"||he.type.kind==="value"}return $.parse=function(he,Oe){if(he.length!==3&&he.length!==4)return Oe.error("Expected two or three arguments.");var rt=he[0],gt=Oe.parse(he[1],1,Do);if(!gt)return null;if(!Bc(rt,gt.type))return Oe.concat(1).error('"'+rt+`" comparisons are not supported for type '`+qs(gt.type)+"'.");var Mt=Oe.parse(he[2],2,Do);if(!Mt)return null;if(!Bc(rt,Mt.type))return Oe.concat(2).error('"'+rt+`" comparisons are not supported for type '`+qs(Mt.type)+"'.");if(gt.type.kind!==Mt.type.kind&>.type.kind!=="value"&&Mt.type.kind!=="value")return Oe.error("Cannot compare types '"+qs(gt.type)+"' and '"+qs(Mt.type)+"'.");U&&(gt.type.kind==="value"&&Mt.type.kind!=="value"?gt=new bl(Mt.type,[gt]):gt.type.kind!=="value"&&Mt.type.kind==="value"&&(Mt=new bl(gt.type,[Mt])));var or=null;if(he.length===4){if(gt.type.kind!=="string"&&Mt.type.kind!=="string"&>.type.kind!=="value"&&Mt.type.kind!=="value")return Oe.error("Cannot use collator to compare non-string types.");if(or=Oe.parse(he[3],3,Uf),!or)return null}return new $(gt,Mt,or)},$.prototype.evaluate=function(he){var Oe=this.lhs.evaluate(he),rt=this.rhs.evaluate(he);if(U&&this.hasUntypedArgument){var gt=Cs(Oe),Mt=Cs(rt);if(gt.kind!==Mt.kind||!(gt.kind==="string"||gt.kind==="number"))throw new gs('Expected arguments for "'+m+'" to be (string, string) or (number, number), but found ('+gt.kind+", "+Mt.kind+") instead.")}if(this.collator&&!U&&this.hasUntypedArgument){var or=Cs(Oe),_r=Cs(rt);if(or.kind!=="string"||_r.kind!=="string")return y(he,Oe,rt)}return this.collator?I(he,Oe,rt,this.collator.evaluate(he)):y(he,Oe,rt)},$.prototype.eachChild=function(he){he(this.lhs),he(this.rhs),this.collator&&he(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var he=[m];return this.eachChild(function(Oe){he.push(Oe.serialize())}),he},$}()}var Di=an("==",At,Wi),$n=an("!=",Xt,hn),ka=an("<",kr,Tn),Ra=an(">",Ar,Bn),La=an("<=",Kr,Zi),Na=an(">=",Ei,$i),Yn=function(y,I,U,$,ae){this.type=Oo,this.number=y,this.locale=I,this.currency=U,this.minFractionDigits=$,this.maxFractionDigits=ae};Yn.parse=function(y,I){if(y.length!==3)return I.error("Expected two arguments.");var U=I.parse(y[1],1,aa);if(!U)return null;var $=y[2];if(typeof $!="object"||Array.isArray($))return I.error("NumberFormat options argument must be an object.");var ae=null;if($.locale&&(ae=I.parse($.locale,1,Oo),!ae))return null;var he=null;if($.currency&&(he=I.parse($.currency,1,Oo),!he))return null;var Oe=null;if($["min-fraction-digits"]&&(Oe=I.parse($["min-fraction-digits"],1,aa),!Oe))return null;var rt=null;return $["max-fraction-digits"]&&(rt=I.parse($["max-fraction-digits"],1,aa),!rt)?null:new Yn(U,ae,he,Oe,rt)},Yn.prototype.evaluate=function(y){return new Intl.NumberFormat(this.locale?this.locale.evaluate(y):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(y):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(y):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(y):void 0}).format(this.number.evaluate(y))},Yn.prototype.eachChild=function(y){y(this.number),this.locale&&y(this.locale),this.currency&&y(this.currency),this.minFractionDigits&&y(this.minFractionDigits),this.maxFractionDigits&&y(this.maxFractionDigits)},Yn.prototype.outputDefined=function(){return!1},Yn.prototype.serialize=function(){var y={};return this.locale&&(y.locale=this.locale.serialize()),this.currency&&(y.currency=this.currency.serialize()),this.minFractionDigits&&(y["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(y["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),y]};var zn=function(y){this.type=aa,this.input=y};zn.parse=function(y,I){if(y.length!==2)return I.error("Expected 1 argument, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1);return U?U.type.kind!=="array"&&U.type.kind!=="string"&&U.type.kind!=="value"?I.error("Expected argument of type string or array, but found "+qs(U.type)+" instead."):new zn(U):null},zn.prototype.evaluate=function(y){var I=this.input.evaluate(y);if(typeof I=="string")return I.length;if(Array.isArray(I))return I.length;throw new gs("Expected value to be of type string or array, but found "+qs(Cs(I))+" instead.")},zn.prototype.eachChild=function(y){y(this.input)},zn.prototype.outputDefined=function(){return!1},zn.prototype.serialize=function(){var y=["length"];return this.eachChild(function(I){y.push(I.serialize())}),y};var Ka={"==":Di,"!=":$n,">":Ra,"<":ka,">=":Na,"<=":La,array:bl,at:Tc,boolean:bl,case:cf,coalesce:Zu,collator:Hu,format:Gu,image:Bs,in:Tl,"index-of":vu,interpolate:Wl,"interpolate-hcl":Wl,"interpolate-lab":Wl,length:zn,let:Oc,literal:Go,match:qc,number:bl,"number-format":Yn,object:bl,slice:fc,step:_u,string:bl,"to-boolean":Po,"to-color":Po,"to-number":Po,"to-string":Po,var:Dc,within:Mu};function bo(m,y){var I=y[0],U=y[1],$=y[2],ae=y[3];I=I.evaluate(m),U=U.evaluate(m),$=$.evaluate(m);var he=ae?ae.evaluate(m):1,Oe=lc(I,U,$,he);if(Oe)throw new gs(Oe);return new fs(I/255*he,U/255*he,$/255*he,he)}function Xo(m,y){return m in y}function Ms(m,y){var I=y[m];return typeof I=="undefined"?null:I}function os(m,y,I,U){for(;I<=U;){var $=I+U>>1;if(y[$]===m)return!0;y[$]>m?U=$-1:I=$+1}return!1}function Ts(m){return{type:m}}Pa.register(Ka,{error:[rf,[Oo],function(m,y){var I=y[0];throw new gs(I.evaluate(m))}],typeof:[Oo,[Do],function(m,y){var I=y[0];return qs(Cs(I.evaluate(m)))}],"to-rgba":[Kl(aa,4),[ql],function(m,y){var I=y[0];return I.evaluate(m).toArray()}],rgb:[ql,[aa,aa,aa],bo],rgba:[ql,[aa,aa,aa,aa],bo],has:{type:qo,overloads:[[[Oo],function(m,y){var I=y[0];return Xo(I.evaluate(m),m.properties())}],[[Oo,Pc],function(m,y){var I=y[0],U=y[1];return Xo(I.evaluate(m),U.evaluate(m))}]]},get:{type:Do,overloads:[[[Oo],function(m,y){var I=y[0];return Ms(I.evaluate(m),m.properties())}],[[Oo,Pc],function(m,y){var I=y[0],U=y[1];return Ms(I.evaluate(m),U.evaluate(m))}]]},"feature-state":[Do,[Oo],function(m,y){var I=y[0];return Ms(I.evaluate(m),m.featureState||{})}],properties:[Pc,[],function(m){return m.properties()}],"geometry-type":[Oo,[],function(m){return m.geometryType()}],id:[Do,[],function(m){return m.id()}],zoom:[aa,[],function(m){return m.globals.zoom}],"heatmap-density":[aa,[],function(m){return m.globals.heatmapDensity||0}],"line-progress":[aa,[],function(m){return m.globals.lineProgress||0}],accumulated:[Do,[],function(m){return m.globals.accumulated===void 0?null:m.globals.accumulated}],"+":[aa,Ts(aa),function(m,y){for(var I=0,U=0,$=y;U<$.length;U+=1){var ae=$[U];I+=ae.evaluate(m)}return I}],"*":[aa,Ts(aa),function(m,y){for(var I=1,U=0,$=y;U<$.length;U+=1){var ae=$[U];I*=ae.evaluate(m)}return I}],"-":{type:aa,overloads:[[[aa,aa],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)-U.evaluate(m)}],[[aa],function(m,y){var I=y[0];return-I.evaluate(m)}]]},"/":[aa,[aa,aa],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)/U.evaluate(m)}],"%":[aa,[aa,aa],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)%U.evaluate(m)}],ln2:[aa,[],function(){return Math.LN2}],pi:[aa,[],function(){return Math.PI}],e:[aa,[],function(){return Math.E}],"^":[aa,[aa,aa],function(m,y){var I=y[0],U=y[1];return Math.pow(I.evaluate(m),U.evaluate(m))}],sqrt:[aa,[aa],function(m,y){var I=y[0];return Math.sqrt(I.evaluate(m))}],log10:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN10}],ln:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))}],log2:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN2}],sin:[aa,[aa],function(m,y){var I=y[0];return Math.sin(I.evaluate(m))}],cos:[aa,[aa],function(m,y){var I=y[0];return Math.cos(I.evaluate(m))}],tan:[aa,[aa],function(m,y){var I=y[0];return Math.tan(I.evaluate(m))}],asin:[aa,[aa],function(m,y){var I=y[0];return Math.asin(I.evaluate(m))}],acos:[aa,[aa],function(m,y){var I=y[0];return Math.acos(I.evaluate(m))}],atan:[aa,[aa],function(m,y){var I=y[0];return Math.atan(I.evaluate(m))}],min:[aa,Ts(aa),function(m,y){return Math.min.apply(Math,y.map(function(I){return I.evaluate(m)}))}],max:[aa,Ts(aa),function(m,y){return Math.max.apply(Math,y.map(function(I){return I.evaluate(m)}))}],abs:[aa,[aa],function(m,y){var I=y[0];return Math.abs(I.evaluate(m))}],round:[aa,[aa],function(m,y){var I=y[0],U=I.evaluate(m);return U<0?-Math.round(-U):Math.round(U)}],floor:[aa,[aa],function(m,y){var I=y[0];return Math.floor(I.evaluate(m))}],ceil:[aa,[aa],function(m,y){var I=y[0];return Math.ceil(I.evaluate(m))}],"filter-==":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1];return m.properties()[I.value]===U.value}],"filter-id-==":[qo,[Do],function(m,y){var I=y[0];return m.id()===I.value}],"filter-type-==":[qo,[Oo],function(m,y){var I=y[0];return m.geometryType()===I.value}],"filter-<":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$>ae}],"filter-id->":[qo,[Do],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U>$}],"filter-<=":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$<=ae}],"filter-id-<=":[qo,[Do],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U<=$}],"filter->=":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$>=ae}],"filter-id->=":[qo,[Do],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U>=$}],"filter-has":[qo,[Do],function(m,y){var I=y[0];return I.value in m.properties()}],"filter-has-id":[qo,[],function(m){return m.id()!==null&&m.id()!==void 0}],"filter-type-in":[qo,[Kl(Oo)],function(m,y){var I=y[0];return I.value.indexOf(m.geometryType())>=0}],"filter-id-in":[qo,[Kl(Do)],function(m,y){var I=y[0];return I.value.indexOf(m.id())>=0}],"filter-in-small":[qo,[Oo,Kl(Do)],function(m,y){var I=y[0],U=y[1];return U.value.indexOf(m.properties()[I.value])>=0}],"filter-in-large":[qo,[Oo,Kl(Do)],function(m,y){var I=y[0],U=y[1];return os(m.properties()[I.value],U.value,0,U.value.length-1)}],all:{type:qo,overloads:[[[qo,qo],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)&&U.evaluate(m)}],[Ts(qo),function(m,y){for(var I=0,U=y;I-1}function va(m){return!!m.expression&&m.expression.interpolated}function no(m){return m instanceof Number?"number":m instanceof String?"string":m instanceof Boolean?"boolean":Array.isArray(m)?"array":m===null?"null":typeof m}function _s(m){return typeof m=="object"&&m!==null&&!Array.isArray(m)}function is(m){return m}function $l(m,y){var I=y.type==="color",U=m.stops&&typeof m.stops[0][0]=="object",$=U||m.property!==void 0,ae=U||!$,he=m.type||(va(y)?"exponential":"interval");if(I&&(m=Ol({},m),m.stops&&(m.stops=m.stops.map(function(ha){return[ha[0],fs.parse(ha[1])]})),m.default?m.default=fs.parse(m.default):m.default=fs.parse(y.default)),m.colorSpace&&m.colorSpace!=="rgb"&&!Xf[m.colorSpace])throw new Error("Unknown color space: "+m.colorSpace);var Oe,rt,gt;if(he==="exponential")Oe=pu;else if(he==="interval")Oe=Nc;else if(he==="categorical"){Oe=Yu,rt=Object.create(null);for(var Mt=0,or=m.stops;Mt=m.stops[U-1][0])return m.stops[U-1][1];var $=hu(m.stops.map(function(ae){return ae[0]}),I);return m.stops[$][1]}function pu(m,y,I){var U=m.base!==void 0?m.base:1;if(no(I)!=="number")return ku(m.default,y.default);var $=m.stops.length;if($===1||I<=m.stops[0][0])return m.stops[0][1];if(I>=m.stops[$-1][0])return m.stops[$-1][1];var ae=hu(m.stops.map(function(or){return or[0]}),I),he=xu(I,U,m.stops[ae][0],m.stops[ae+1][0]),Oe=m.stops[ae][1],rt=m.stops[ae+1][1],gt=zu[y.type]||is;if(m.colorSpace&&m.colorSpace!=="rgb"){var Mt=Xf[m.colorSpace];gt=function(or,_r){return Mt.reverse(Mt.interpolate(Mt.forward(or),Mt.forward(_r),he))}}return typeof Oe.evaluate=="function"?{evaluate:function(){for(var _r=[],vr=arguments.length;vr--;)_r[vr]=arguments[vr];var Fr=Oe.evaluate.apply(void 0,_r),ai=rt.evaluate.apply(void 0,_r);if(!(Fr===void 0||ai===void 0))return gt(Fr,ai,he)}}:gt(Oe,rt,he)}function Uc(m,y,I){return y.type==="color"?I=fs.parse(I):y.type==="formatted"?I=Jl.fromString(I.toString()):y.type==="resolvedImage"?I=hl.fromString(I.toString()):no(I)!==y.type&&(y.type!=="enum"||!y.values[I])&&(I=void 0),ku(I,m.default,y.default)}function xu(m,y,I,U){var $=U-I,ae=m-I;return $===0?0:y===1?ae/$:(Math.pow(y,ae)-1)/(Math.pow(y,$)-1)}var Ac=function(y,I){this.expression=y,this._warningHistory={},this._evaluator=new Yo,this._defaultValue=I?ee(I):null,this._enumValues=I&&I.type==="enum"?I.values:null};Ac.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ae,he){return this._evaluator.globals=y,this._evaluator.feature=I,this._evaluator.featureState=U,this._evaluator.canonical=$,this._evaluator.availableImages=ae||null,this._evaluator.formattedSection=he,this.expression.evaluate(this._evaluator)},Ac.prototype.evaluate=function(y,I,U,$,ae,he){this._evaluator.globals=y,this._evaluator.feature=I||null,this._evaluator.featureState=U||null,this._evaluator.canonical=$,this._evaluator.availableImages=ae||null,this._evaluator.formattedSection=he||null;try{var Oe=this.expression.evaluate(this._evaluator);if(Oe==null||typeof Oe=="number"&&Oe!==Oe)return this._defaultValue;if(this._enumValues&&!(Oe in this._enumValues))throw new gs("Expected value to be one of "+Object.keys(this._enumValues).map(function(rt){return JSON.stringify(rt)}).join(", ")+", but found "+JSON.stringify(Oe)+" instead.");return Oe}catch(rt){return this._warningHistory[rt.message]||(this._warningHistory[rt.message]=!0,typeof console!="undefined"&&console.warn(rt.message)),this._defaultValue}};function Ua(m){return Array.isArray(m)&&m.length>0&&typeof m[0]=="string"&&m[0]in Ka}function oo(m,y){var I=new ks(Ka,[],y?Q(y):void 0),U=I.parse(m,void 0,void 0,void 0,y&&y.type==="string"?{typeAnnotation:"coerce"}:void 0);return U?Ho(new Ac(U,y)):yl(I.errors)}var Vc=function(y,I){this.kind=y,this._styleExpression=I,this.isStateDependent=y!=="constant"&&!Ws(I.expression)};Vc.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ae,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,U,$,ae,he)},Vc.prototype.evaluate=function(y,I,U,$,ae,he){return this._styleExpression.evaluate(y,I,U,$,ae,he)};var hc=function(y,I,U,$){this.kind=y,this.zoomStops=U,this._styleExpression=I,this.isStateDependent=y!=="camera"&&!Ws(I.expression),this.interpolationType=$};hc.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ae,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,U,$,ae,he)},hc.prototype.evaluate=function(y,I,U,$,ae,he){return this._styleExpression.evaluate(y,I,U,$,ae,he)},hc.prototype.interpolationFactor=function(y,I,U){return this.interpolationType?Wl.interpolationFactor(this.interpolationType,y,I,U):0};function Ku(m,y){if(m=oo(m,y),m.result==="error")return m;var I=m.value.expression,U=ih(I);if(!U&&!Xs(y))return yl([new Us("","data expressions not supported")]);var $=Eu(I,["zoom"]);if(!$&&!Ps(y))return yl([new Us("","zoom expressions not supported")]);var ae=B(I);if(!ae&&!$)return yl([new Us("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(ae instanceof Us)return yl([ae]);if(ae instanceof Wl&&!va(y))return yl([new Us("",'"interpolate" expressions cannot be used with this property')]);if(!ae)return Ho(U?new Vc("constant",m.value):new Vc("source",m.value));var he=ae instanceof Wl?ae.interpolation:void 0;return Ho(U?new hc("camera",m.value,ae.labels,he):new hc("composite",m.value,ae.labels,he))}var ue=function(y,I){this._parameters=y,this._specification=I,Ol(this,$l(this._parameters,this._specification))};ue.deserialize=function(y){return new ue(y._parameters,y._specification)},ue.serialize=function(y){return{_parameters:y._parameters,_specification:y._specification}};function w(m,y){if(_s(m))return new ue(m,y);if(Ua(m)){var I=Ku(m,y);if(I.result==="error")throw new Error(I.value.map(function($){return $.key+": "+$.message}).join(", "));return I.value}else{var U=m;return typeof m=="string"&&y.type==="color"&&(U=fs.parse(m)),{kind:"constant",evaluate:function(){return U}}}}function B(m){var y=null;if(m instanceof Oc)y=B(m.result);else if(m instanceof Zu)for(var I=0,U=m.args;IU.maximum?[new _a(y,I,I+" is greater than the maximum value "+U.maximum)]:[]}function ot(m){var y=m.valueSpec,I=xo(m.value.type),U,$={},ae,he,Oe=I!=="categorical"&&m.value.property===void 0,rt=!Oe,gt=no(m.value.stops)==="array"&&no(m.value.stops[0])==="array"&&no(m.value.stops[0][0])==="object",Mt=le({key:m.key,value:m.value,valueSpec:m.styleSpec.function,style:m.style,styleSpec:m.styleSpec,objectElementValidators:{stops:or,default:Fr}});return I==="identity"&&Oe&&Mt.push(new _a(m.key,m.value,'missing required property "property"')),I!=="identity"&&!m.value.stops&&Mt.push(new _a(m.key,m.value,'missing required property "stops"')),I==="exponential"&&m.valueSpec.expression&&!va(m.valueSpec)&&Mt.push(new _a(m.key,m.value,"exponential functions not supported")),m.styleSpec.$version>=8&&(rt&&!Xs(m.valueSpec)?Mt.push(new _a(m.key,m.value,"property functions not supported")):Oe&&!Ps(m.valueSpec)&&Mt.push(new _a(m.key,m.value,"zoom functions not supported"))),(I==="categorical"||gt)&&m.value.property===void 0&&Mt.push(new _a(m.key,m.value,'"property" property is required')),Mt;function or(ai){if(I==="identity")return[new _a(ai.key,ai.value,'identity function may not have a "stops" property')];var Gi=[],Ti=ai.value;return Gi=Gi.concat(qe({key:ai.key,value:Ti,valueSpec:ai.valueSpec,style:ai.style,styleSpec:ai.styleSpec,arrayElementValidator:_r})),no(Ti)==="array"&&Ti.length===0&&Gi.push(new _a(ai.key,Ti,"array must have at least one stop")),Gi}function _r(ai){var Gi=[],Ti=ai.value,bn=ai.key;if(no(Ti)!=="array")return[new _a(bn,Ti,"array expected, "+no(Ti)+" found")];if(Ti.length!==2)return[new _a(bn,Ti,"array length 2 expected, length "+Ti.length+" found")];if(gt){if(no(Ti[0])!=="object")return[new _a(bn,Ti,"object expected, "+no(Ti[0])+" found")];if(Ti[0].zoom===void 0)return[new _a(bn,Ti,"object stop key must have zoom")];if(Ti[0].value===void 0)return[new _a(bn,Ti,"object stop key must have value")];if(he&&he>xo(Ti[0].zoom))return[new _a(bn,Ti[0].zoom,"stop zoom values must appear in ascending order")];xo(Ti[0].zoom)!==he&&(he=xo(Ti[0].zoom),ae=void 0,$={}),Gi=Gi.concat(le({key:bn+"[0]",value:Ti[0],valueSpec:{zoom:{}},style:ai.style,styleSpec:ai.styleSpec,objectElementValidators:{zoom:Xe,value:vr}}))}else Gi=Gi.concat(vr({key:bn+"[0]",value:Ti[0],valueSpec:{},style:ai.style,styleSpec:ai.styleSpec},Ti));return Ua(Yl(Ti[1]))?Gi.concat([new _a(bn+"[1]",Ti[1],"expressions are not allowed in function stops.")]):Gi.concat(Qa({key:bn+"[1]",value:Ti[1],valueSpec:y,style:ai.style,styleSpec:ai.styleSpec}))}function vr(ai,Gi){var Ti=no(ai.value),bn=xo(ai.value),rn=ai.value!==null?ai.value:Gi;if(!U)U=Ti;else if(Ti!==U)return[new _a(ai.key,rn,Ti+" stop domain type must match previous stop domain type "+U)];if(Ti!=="number"&&Ti!=="string"&&Ti!=="boolean")return[new _a(ai.key,rn,"stop domain value must be a number, string, or boolean")];if(Ti!=="number"&&I!=="categorical"){var xn="number expected, "+Ti+" found";return Xs(y)&&I===void 0&&(xn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new _a(ai.key,rn,xn)]}return I==="categorical"&&Ti==="number"&&(!isFinite(bn)||Math.floor(bn)!==bn)?[new _a(ai.key,rn,"integer expected, found "+bn)]:I!=="categorical"&&Ti==="number"&&ae!==void 0&&bn=2&&m[1]!=="$id"&&m[1]!=="$type";case"in":return m.length>=3&&(typeof m[1]!="string"||Array.isArray(m[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return m.length!==3||Array.isArray(m[1])||Array.isArray(m[2]);case"any":case"all":for(var y=0,I=m.slice(1);yy?1:0}function Be(m){if(!Array.isArray(m))return!1;if(m[0]==="within")return!0;for(var y=1;y"||y==="<="||y===">="?We(m[1],m[2],y):y==="any"?it(m.slice(1)):y==="all"?["all"].concat(m.slice(1).map(tt)):y==="none"?["all"].concat(m.slice(1).map(tt).map(rr)):y==="in"?Dt(m[1],m.slice(2)):y==="!in"?rr(Dt(m[1],m.slice(2))):y==="has"?Ht(m[1]):y==="!has"?rr(Ht(m[1])):y==="within"?m:!0;return I}function We(m,y,I){switch(m){case"$type":return["filter-type-"+I,y];case"$id":return["filter-id-"+I,y];default:return["filter-"+I,m,y]}}function it(m){return["any"].concat(m.map(tt))}function Dt(m,y){if(y.length===0)return!1;switch(m){case"$type":return["filter-type-in",["literal",y]];case"$id":return["filter-id-in",["literal",y]];default:return y.length>200&&!y.some(function(I){return typeof I!=typeof y[0]})?["filter-in-large",m,["literal",y.sort(Re)]]:["filter-in-small",m,["literal",y]]}}function Ht(m){switch(m){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",m]}}function rr(m){return["!",m]}function dr(m){return Pr(Yl(m.value))?Tt(Ol({},m,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Sr(m)}function Sr(m){var y=m.value,I=m.key;if(no(y)!=="array")return[new _a(I,y,"array expected, "+no(y)+" found")];var U=m.styleSpec,$,ae=[];if(y.length<1)return[new _a(I,y,"filter array must have at least 1 element")];switch(ae=ae.concat(xr({key:I+"[0]",value:y[0],valueSpec:U.filter_operator,style:m.style,styleSpec:m.styleSpec})),xo(y[0])){case"<":case"<=":case">":case">=":y.length>=2&&xo(y[1])==="$type"&&ae.push(new _a(I,y,'"$type" cannot be use with operator "'+y[0]+'"'));case"==":case"!=":y.length!==3&&ae.push(new _a(I,y,'filter array for operator "'+y[0]+'" must have 3 elements'));case"in":case"!in":y.length>=2&&($=no(y[1]),$!=="string"&&ae.push(new _a(I+"[1]",y[1],"string expected, "+$+" found")));for(var he=2;he=Mt[vr+0]&&U>=Mt[vr+1])?(he[_r]=!0,ae.push(gt[_r])):he[_r]=!1}}},Ql.prototype._forEachCell=function(m,y,I,U,$,ae,he,Oe){for(var rt=this._convertToCellCoord(m),gt=this._convertToCellCoord(y),Mt=this._convertToCellCoord(I),or=this._convertToCellCoord(U),_r=rt;_r<=Mt;_r++)for(var vr=gt;vr<=or;vr++){var Fr=this.d*vr+_r;if(!(Oe&&!Oe(this._convertFromCellCoord(_r),this._convertFromCellCoord(vr),this._convertFromCellCoord(_r+1),this._convertFromCellCoord(vr+1)))&&$.call(this,m,y,I,U,Fr,ae,he,Oe))return}},Ql.prototype._convertFromCellCoord=function(m){return(m-this.padding)/this.scale},Ql.prototype._convertToCellCoord=function(m){return Math.max(0,Math.min(this.d-1,Math.floor(m*this.scale)+this.padding))},Ql.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var m=this.cells,y=$s+this.cells.length+1+1,I=0,U=0;U=0)){var or=m[Mt];gt[Mt]=Sl[rt].shallow.indexOf(Mt)>=0?or:He(or,y)}m instanceof Error&&(gt.message=m.message)}if(gt.$name)throw new Error("$name property is reserved for worker serialization logic.");return rt!=="Object"&&(gt.$name=rt),gt}throw new Error("can't serialize object of type "+typeof m)}function Ye(m){if(m==null||typeof m=="boolean"||typeof m=="number"||typeof m=="string"||m instanceof Boolean||m instanceof Number||m instanceof String||m instanceof Date||m instanceof RegExp||Te(m)||Ne(m)||ArrayBuffer.isView(m)||m instanceof dc)return m;if(Array.isArray(m))return m.map(Ye);if(typeof m=="object"){var y=m.$name||"Object",I=Sl[y],U=I.klass;if(!U)throw new Error("can't deserialize unregistered class "+y);if(U.deserialize)return U.deserialize(m);for(var $=Object.create(U.prototype),ae=0,he=Object.keys(m);ae=0?rt:Ye(rt)}}return $}throw new Error("can't deserialize object of type "+typeof m)}var Ct=function(){this.first=!0};Ct.prototype.update=function(y,I){var U=Math.floor(y);return this.first?(this.first=!1,this.lastIntegerZoom=U,this.lastIntegerZoomTime=0,this.lastZoom=y,this.lastFloorZoom=U,!0):(this.lastFloorZoom>U?(this.lastIntegerZoom=U+1,this.lastIntegerZoomTime=I):this.lastFloorZoom=128&&m<=255},Arabic:function(m){return m>=1536&&m<=1791},"Arabic Supplement":function(m){return m>=1872&&m<=1919},"Arabic Extended-A":function(m){return m>=2208&&m<=2303},"Hangul Jamo":function(m){return m>=4352&&m<=4607},"Unified Canadian Aboriginal Syllabics":function(m){return m>=5120&&m<=5759},Khmer:function(m){return m>=6016&&m<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(m){return m>=6320&&m<=6399},"General Punctuation":function(m){return m>=8192&&m<=8303},"Letterlike Symbols":function(m){return m>=8448&&m<=8527},"Number Forms":function(m){return m>=8528&&m<=8591},"Miscellaneous Technical":function(m){return m>=8960&&m<=9215},"Control Pictures":function(m){return m>=9216&&m<=9279},"Optical Character Recognition":function(m){return m>=9280&&m<=9311},"Enclosed Alphanumerics":function(m){return m>=9312&&m<=9471},"Geometric Shapes":function(m){return m>=9632&&m<=9727},"Miscellaneous Symbols":function(m){return m>=9728&&m<=9983},"Miscellaneous Symbols and Arrows":function(m){return m>=11008&&m<=11263},"CJK Radicals Supplement":function(m){return m>=11904&&m<=12031},"Kangxi Radicals":function(m){return m>=12032&&m<=12255},"Ideographic Description Characters":function(m){return m>=12272&&m<=12287},"CJK Symbols and Punctuation":function(m){return m>=12288&&m<=12351},Hiragana:function(m){return m>=12352&&m<=12447},Katakana:function(m){return m>=12448&&m<=12543},Bopomofo:function(m){return m>=12544&&m<=12591},"Hangul Compatibility Jamo":function(m){return m>=12592&&m<=12687},Kanbun:function(m){return m>=12688&&m<=12703},"Bopomofo Extended":function(m){return m>=12704&&m<=12735},"CJK Strokes":function(m){return m>=12736&&m<=12783},"Katakana Phonetic Extensions":function(m){return m>=12784&&m<=12799},"Enclosed CJK Letters and Months":function(m){return m>=12800&&m<=13055},"CJK Compatibility":function(m){return m>=13056&&m<=13311},"CJK Unified Ideographs Extension A":function(m){return m>=13312&&m<=19903},"Yijing Hexagram Symbols":function(m){return m>=19904&&m<=19967},"CJK Unified Ideographs":function(m){return m>=19968&&m<=40959},"Yi Syllables":function(m){return m>=40960&&m<=42127},"Yi Radicals":function(m){return m>=42128&&m<=42191},"Hangul Jamo Extended-A":function(m){return m>=43360&&m<=43391},"Hangul Syllables":function(m){return m>=44032&&m<=55215},"Hangul Jamo Extended-B":function(m){return m>=55216&&m<=55295},"Private Use Area":function(m){return m>=57344&&m<=63743},"CJK Compatibility Ideographs":function(m){return m>=63744&&m<=64255},"Arabic Presentation Forms-A":function(m){return m>=64336&&m<=65023},"Vertical Forms":function(m){return m>=65040&&m<=65055},"CJK Compatibility Forms":function(m){return m>=65072&&m<=65103},"Small Form Variants":function(m){return m>=65104&&m<=65135},"Arabic Presentation Forms-B":function(m){return m>=65136&&m<=65279},"Halfwidth and Fullwidth Forms":function(m){return m>=65280&&m<=65519}};function jt(m){for(var y=0,I=m;y=65097&&m<=65103)||nt["CJK Compatibility Ideographs"](m)||nt["CJK Compatibility"](m)||nt["CJK Radicals Supplement"](m)||nt["CJK Strokes"](m)||nt["CJK Symbols and Punctuation"](m)&&!(m>=12296&&m<=12305)&&!(m>=12308&&m<=12319)&&m!==12336||nt["CJK Unified Ideographs Extension A"](m)||nt["CJK Unified Ideographs"](m)||nt["Enclosed CJK Letters and Months"](m)||nt["Hangul Compatibility Jamo"](m)||nt["Hangul Jamo Extended-A"](m)||nt["Hangul Jamo Extended-B"](m)||nt["Hangul Jamo"](m)||nt["Hangul Syllables"](m)||nt.Hiragana(m)||nt["Ideographic Description Characters"](m)||nt.Kanbun(m)||nt["Kangxi Radicals"](m)||nt["Katakana Phonetic Extensions"](m)||nt.Katakana(m)&&m!==12540||nt["Halfwidth and Fullwidth Forms"](m)&&m!==65288&&m!==65289&&m!==65293&&!(m>=65306&&m<=65310)&&m!==65339&&m!==65341&&m!==65343&&!(m>=65371&&m<=65503)&&m!==65507&&!(m>=65512&&m<=65519)||nt["Small Form Variants"](m)&&!(m>=65112&&m<=65118)&&!(m>=65123&&m<=65126)||nt["Unified Canadian Aboriginal Syllabics"](m)||nt["Unified Canadian Aboriginal Syllabics Extended"](m)||nt["Vertical Forms"](m)||nt["Yijing Hexagram Symbols"](m)||nt["Yi Syllables"](m)||nt["Yi Radicals"](m))}function _i(m){return!!(nt["Latin-1 Supplement"](m)&&(m===167||m===169||m===174||m===177||m===188||m===189||m===190||m===215||m===247)||nt["General Punctuation"](m)&&(m===8214||m===8224||m===8225||m===8240||m===8241||m===8251||m===8252||m===8258||m===8263||m===8264||m===8265||m===8273)||nt["Letterlike Symbols"](m)||nt["Number Forms"](m)||nt["Miscellaneous Technical"](m)&&(m>=8960&&m<=8967||m>=8972&&m<=8991||m>=8996&&m<=9e3||m===9003||m>=9085&&m<=9114||m>=9150&&m<=9165||m===9167||m>=9169&&m<=9179||m>=9186&&m<=9215)||nt["Control Pictures"](m)&&m!==9251||nt["Optical Character Recognition"](m)||nt["Enclosed Alphanumerics"](m)||nt["Geometric Shapes"](m)||nt["Miscellaneous Symbols"](m)&&!(m>=9754&&m<=9759)||nt["Miscellaneous Symbols and Arrows"](m)&&(m>=11026&&m<=11055||m>=11088&&m<=11097||m>=11192&&m<=11243)||nt["CJK Symbols and Punctuation"](m)||nt.Katakana(m)||nt["Private Use Area"](m)||nt["CJK Compatibility Forms"](m)||nt["Small Form Variants"](m)||nt["Halfwidth and Fullwidth Forms"](m)||m===8734||m===8756||m===8757||m>=9984&&m<=10087||m>=10102&&m<=10131||m===65532||m===65533)}function bi(m){return!(qr(m)||_i(m))}function Xr(m){return nt.Arabic(m)||nt["Arabic Supplement"](m)||nt["Arabic Extended-A"](m)||nt["Arabic Presentation Forms-A"](m)||nt["Arabic Presentation Forms-B"](m)}function ni(m){return m>=1424&&m<=2303||nt["Arabic Presentation Forms-A"](m)||nt["Arabic Presentation Forms-B"](m)}function gi(m,y){return!(!y&&ni(m)||m>=2304&&m<=3583||m>=3840&&m<=4255||nt.Khmer(m))}function Pi(m){for(var y=0,I=m;y-1&&(Cn=ti.error),Rn&&Rn(m)};function Ea(){Ia.fire(new Wo("pluginStateChange",{pluginStatus:Cn,pluginURL:Nn}))}var Ia=new Wn,yo=function(){return Cn},Da=function(m){return m({pluginStatus:Cn,pluginURL:Nn}),Ia.on("pluginStateChange",m),m},go=function(m,y,I){if(I===void 0&&(I=!1),Cn===ti.deferred||Cn===ti.loading||Cn===ti.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Nn=ct.resolveURL(m),Cn=ti.deferred,Rn=y,Ea(),I||Rs()},Rs=function(){if(Cn!==ti.deferred||!Nn)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Cn=ti.loading,Ea(),Nn&&ri({url:Nn},function(m){m?ia(m):(Cn=ti.loaded,Ea())})},Es={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Cn===ti.loaded||Es.applyArabicShaping!=null},isLoading:function(){return Cn===ti.loading},setState:function(y){Cn=y.pluginStatus,Nn=y.pluginURL},isParsed:function(){return Es.applyArabicShaping!=null&&Es.processBidirectionalText!=null&&Es.processStyledBidirectionalText!=null},getPluginURL:function(){return Nn}},Zs=function(){!Es.isLoading()&&!Es.isLoaded()&&yo()==="deferred"&&Rs()},Gn=function(y,I){this.zoom=y,I?(this.now=I.now,this.fadeDuration=I.fadeDuration,this.zoomHistory=I.zoomHistory,this.transition=I.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Ct,this.transition={})};Gn.prototype.isSupportedScript=function(y){return Ai(y,Es.isLoaded())},Gn.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Gn.prototype.getCrossfadeParameters=function(){var y=this.zoom,I=y-Math.floor(y),U=this.crossFadingFactor();return y>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:I+(1-I)*U}:{fromScale:.5,toScale:1,t:1-(1-U)*I}};var Ha=function(y,I){this.property=y,this.value=I,this.expression=w(I===void 0?y.specification.default:I,y.specification)};Ha.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Ha.prototype.possiblyEvaluate=function(y,I,U){return this.property.possiblyEvaluate(this,y,I,U)};var Fo=function(y){this.property=y,this.value=new Ha(y,void 0)};Fo.prototype.transitioned=function(y,I){return new Qs(this.property,this.value,I,_({},y.transition,this.transition),y.now)},Fo.prototype.untransitioned=function(){return new Qs(this.property,this.value,null,{},0)};var Uo=function(y){this._properties=y,this._values=Object.create(y.defaultTransitionablePropertyValues)};Uo.prototype.getValue=function(y){return H(this._values[y].value.value)},Uo.prototype.setValue=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Fo(this._values[y].property)),this._values[y].value=new Ha(this._values[y].property,I===null?void 0:H(I))},Uo.prototype.getTransition=function(y){return H(this._values[y].transition)},Uo.prototype.setTransition=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Fo(this._values[y].property)),this._values[y].transition=H(I)||void 0},Uo.prototype.serialize=function(){for(var y={},I=0,U=Object.keys(this._values);Ithis.end)return this.prior=null,ae;if(this.value.isDataDriven())return this.prior=null,ae;if($he.zoomHistory.lastIntegerZoom?{from:U,to:$}:{from:ae,to:$}},y.prototype.interpolate=function(U){return U},y}(xt),Ir=function(y){this.specification=y};Ir.prototype.possiblyEvaluate=function(y,I,U,$){if(y.value!==void 0)if(y.expression.kind==="constant"){var ae=y.expression.evaluate(I,null,{},U,$);return this._calculate(ae,ae,ae,I)}else return this._calculate(y.expression.evaluate(new Gn(Math.floor(I.zoom-1),I)),y.expression.evaluate(new Gn(Math.floor(I.zoom),I)),y.expression.evaluate(new Gn(Math.floor(I.zoom+1),I)),I)},Ir.prototype._calculate=function(y,I,U,$){var ae=$.zoom;return ae>$.zoomHistory.lastIntegerZoom?{from:y,to:I}:{from:U,to:I}},Ir.prototype.interpolate=function(y){return y};var Hr=function(y){this.specification=y};Hr.prototype.possiblyEvaluate=function(y,I,U,$){return!!y.expression.evaluate(I,null,{},U,$)},Hr.prototype.interpolate=function(){return!1};var Br=function(y){this.properties=y,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var I in y){var U=y[I];U.specification.overridable&&this.overridableProperties.push(I);var $=this.defaultPropertyValues[I]=new Ha(U,void 0),ae=this.defaultTransitionablePropertyValues[I]=new Fo(U);this.defaultTransitioningPropertyValues[I]=ae.untransitioned(),this.defaultPossiblyEvaluatedValues[I]=$.possiblyEvaluate({})}};X("DataDrivenProperty",xt),X("DataConstantProperty",Ee),X("CrossFadedDataDrivenProperty",zt),X("CrossFadedProperty",Ir),X("ColorRampProperty",Hr);var Vr="-transition",mi=function(m){function y(I,U){if(m.call(this),this.id=I.id,this.type=I.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},I.type!=="custom"&&(I=I,this.metadata=I.metadata,this.minzoom=I.minzoom,this.maxzoom=I.maxzoom,I.type!=="background"&&(this.source=I.source,this.sourceLayer=I["source-layer"],this.filter=I.filter),U.layout&&(this._unevaluatedLayout=new bu(U.layout)),U.paint)){this._transitionablePaint=new Uo(U.paint);for(var $ in I.paint)this.setPaintProperty($,I.paint[$],{validate:!1});for(var ae in I.layout)this.setLayoutProperty(ae,I.layout[ae],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Sc(U.paint)}}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},y.prototype.getLayoutProperty=function(U){return U==="visibility"?this.visibility:this._unevaluatedLayout.getValue(U)},y.prototype.setLayoutProperty=function(U,$,ae){if(ae===void 0&&(ae={}),$!=null){var he="layers."+this.id+".layout."+U;if(this._validate(Ul,he,U,$,ae))return}if(U==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(U,$)},y.prototype.getPaintProperty=function(U){return V(U,Vr)?this._transitionablePaint.getTransition(U.slice(0,-Vr.length)):this._transitionablePaint.getValue(U)},y.prototype.setPaintProperty=function(U,$,ae){if(ae===void 0&&(ae={}),$!=null){var he="layers."+this.id+".paint."+U;if(this._validate(dl,he,U,$,ae))return!1}if(V(U,Vr))return this._transitionablePaint.setTransition(U.slice(0,-Vr.length),$||void 0),!1;var Oe=this._transitionablePaint._values[U],rt=Oe.property.specification["property-type"]==="cross-faded-data-driven",gt=Oe.value.isDataDriven(),Mt=Oe.value;this._transitionablePaint.setValue(U,$),this._handleSpecialPaintPropertyUpdate(U);var or=this._transitionablePaint._values[U].value,_r=or.isDataDriven();return _r||gt||rt||this._handleOverridablePaintPropertyUpdate(U,Mt,or)},y.prototype._handleSpecialPaintPropertyUpdate=function(U){},y.prototype._handleOverridablePaintPropertyUpdate=function(U,$,ae){return!1},y.prototype.isHidden=function(U){return this.minzoom&&U=this.maxzoom?!0:this.visibility==="none"},y.prototype.updateTransitions=function(U){this._transitioningPaint=this._transitionablePaint.transitioned(U,this._transitioningPaint)},y.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},y.prototype.recalculate=function(U,$){U.getCrossfadeParameters&&(this._crossfadeParameters=U.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(U,void 0,$)),this.paint=this._transitioningPaint.possiblyEvaluate(U,void 0,$)},y.prototype.serialize=function(){var U={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(U.layout=U.layout||{},U.layout.visibility=this.visibility),Z(U,function($,ae){return $!==void 0&&!(ae==="layout"&&!Object.keys($).length)&&!(ae==="paint"&&!Object.keys($).length)})},y.prototype._validate=function(U,$,ae,he,Oe){return Oe===void 0&&(Oe={}),Oe&&Oe.validate===!1?!1:Lu(this,U.call(wo,{key:$,layerType:this.type,objectKey:ae,value:he,styleSpec:Fn,style:{glyphs:!0,sprite:!0}}))},y.prototype.is3D=function(){return!1},y.prototype.isTileClipped=function(){return!1},y.prototype.hasOffscreenPass=function(){return!1},y.prototype.resize=function(){},y.prototype.isStateDependent=function(){for(var U in this.paint._values){var $=this.paint.get(U);if(!(!($ instanceof vl)||!Xs($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},y}(Wn),Ni={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Oi=function(y,I){this._structArray=y,this._pos1=I*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Mi=128,Hn=5,Qi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Qi.serialize=function(y,I){return y._trim(),I&&(y.isTransferred=!0,I.push(y.arrayBuffer)),{length:y.length,arrayBuffer:y.arrayBuffer}},Qi.deserialize=function(y){var I=Object.create(this.prototype);return I.arrayBuffer=y.arrayBuffer,I.length=y.length,I.capacity=y.arrayBuffer.byteLength/I.bytesPerElement,I._refreshViews(),I},Qi.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Qi.prototype.clear=function(){this.length=0},Qi.prototype.resize=function(y){this.reserve(y),this.length=y},Qi.prototype.reserve=function(y){if(y>this.capacity){this.capacity=Math.max(y,Math.floor(this.capacity*Hn),Mi),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var I=this.uint8;this._refreshViews(),I&&this.uint8.set(I)}},Qi.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function ji(m,y){y===void 0&&(y=1);var I=0,U=0,$=m.map(function(he){var Oe=si(he.type),rt=I=Mr(I,Math.max(y,Oe)),gt=he.components||1;return U=Math.max(U,Oe),I+=Oe*gt,{name:he.name,type:he.type,components:gt,offset:rt}}),ae=Mr(I,Math.max(U,y));return{members:$,size:ae,alignment:y}}function si(m){return Ni[m].BYTES_PER_ELEMENT}function Mr(m,y){return Math.ceil(m/y)*y}var Yr=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,U,$)},y.prototype.emplace=function(U,$,ae){var he=U*2;return this.int16[he+0]=$,this.int16[he+1]=ae,U},y}(Qi);Yr.prototype.bytesPerElement=4,X("StructArrayLayout2i4",Yr);var xi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he){var Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,U,$,ae,he)},y.prototype.emplace=function(U,$,ae,he,Oe){var rt=U*4;return this.int16[rt+0]=$,this.int16[rt+1]=ae,this.int16[rt+2]=he,this.int16[rt+3]=Oe,U},y}(Qi);xi.prototype.bytesPerElement=8,X("StructArrayLayout4i8",xi);var Ii=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,U,$,ae,he,Oe,rt)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt){var Mt=U*6;return this.int16[Mt+0]=$,this.int16[Mt+1]=ae,this.int16[Mt+2]=he,this.int16[Mt+3]=Oe,this.int16[Mt+4]=rt,this.int16[Mt+5]=gt,U},y}(Qi);Ii.prototype.bytesPerElement=12,X("StructArrayLayout2i4i12",Ii);var ci=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,U,$,ae,he,Oe,rt)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt){var Mt=U*4,or=U*8;return this.int16[Mt+0]=$,this.int16[Mt+1]=ae,this.uint8[or+4]=he,this.uint8[or+5]=Oe,this.uint8[or+6]=rt,this.uint8[or+7]=gt,U},y}(Qi);ci.prototype.bytesPerElement=8,X("StructArrayLayout2i4ub8",ci);var nn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,U,$)},y.prototype.emplace=function(U,$,ae){var he=U*2;return this.float32[he+0]=$,this.float32[he+1]=ae,U},y}(Qi);nn.prototype.bytesPerElement=8,X("StructArrayLayout2f8",nn);var Xi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r){var vr=this.length;return this.resize(vr+1),this.emplace(vr,U,$,ae,he,Oe,rt,gt,Mt,or,_r)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr){var Fr=U*10;return this.uint16[Fr+0]=$,this.uint16[Fr+1]=ae,this.uint16[Fr+2]=he,this.uint16[Fr+3]=Oe,this.uint16[Fr+4]=rt,this.uint16[Fr+5]=gt,this.uint16[Fr+6]=Mt,this.uint16[Fr+7]=or,this.uint16[Fr+8]=_r,this.uint16[Fr+9]=vr,U},y}(Qi);Xi.prototype.bytesPerElement=20,X("StructArrayLayout10ui20",Xi);var qn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr){var ai=this.length;return this.resize(ai+1),this.emplace(ai,U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai){var Gi=U*12;return this.int16[Gi+0]=$,this.int16[Gi+1]=ae,this.int16[Gi+2]=he,this.int16[Gi+3]=Oe,this.uint16[Gi+4]=rt,this.uint16[Gi+5]=gt,this.uint16[Gi+6]=Mt,this.uint16[Gi+7]=or,this.int16[Gi+8]=_r,this.int16[Gi+9]=vr,this.int16[Gi+10]=Fr,this.int16[Gi+11]=ai,U},y}(Qi);qn.prototype.bytesPerElement=24,X("StructArrayLayout4i4ui4i24",qn);var vi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*3;return this.float32[Oe+0]=$,this.float32[Oe+1]=ae,this.float32[Oe+2]=he,U},y}(Qi);vi.prototype.bytesPerElement=12,X("StructArrayLayout3f12",vi);var li=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ae=U*1;return this.uint32[ae+0]=$,U},y}(Qi);li.prototype.bytesPerElement=4,X("StructArrayLayout1ul4",li);var mn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or){var _r=this.length;return this.resize(_r+1),this.emplace(_r,U,$,ae,he,Oe,rt,gt,Mt,or)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r){var vr=U*10,Fr=U*5;return this.int16[vr+0]=$,this.int16[vr+1]=ae,this.int16[vr+2]=he,this.int16[vr+3]=Oe,this.int16[vr+4]=rt,this.int16[vr+5]=gt,this.uint32[Fr+3]=Mt,this.uint16[vr+8]=or,this.uint16[vr+9]=_r,U},y}(Qi);mn.prototype.bytesPerElement=20,X("StructArrayLayout6i1ul2ui20",mn);var Ki=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,U,$,ae,he,Oe,rt)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt){var Mt=U*6;return this.int16[Mt+0]=$,this.int16[Mt+1]=ae,this.int16[Mt+2]=he,this.int16[Mt+3]=Oe,this.int16[Mt+4]=rt,this.int16[Mt+5]=gt,U},y}(Qi);Ki.prototype.bytesPerElement=12,X("StructArrayLayout2i2i2i12",Ki);var Ui=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe){var rt=this.length;return this.resize(rt+1),this.emplace(rt,U,$,ae,he,Oe)},y.prototype.emplace=function(U,$,ae,he,Oe,rt){var gt=U*4,Mt=U*8;return this.float32[gt+0]=$,this.float32[gt+1]=ae,this.float32[gt+2]=he,this.int16[Mt+6]=Oe,this.int16[Mt+7]=rt,U},y}(Qi);Ui.prototype.bytesPerElement=16,X("StructArrayLayout2f1f2i16",Ui);var Bi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he){var Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,U,$,ae,he)},y.prototype.emplace=function(U,$,ae,he,Oe){var rt=U*12,gt=U*3;return this.uint8[rt+0]=$,this.uint8[rt+1]=ae,this.float32[gt+1]=he,this.float32[gt+2]=Oe,U},y}(Qi);Bi.prototype.bytesPerElement=12,X("StructArrayLayout2ub2f12",Bi);var vn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*3;return this.uint16[Oe+0]=$,this.uint16[Oe+1]=ae,this.uint16[Oe+2]=he,U},y}(Qi);vn.prototype.bytesPerElement=6,X("StructArrayLayout3ui6",vn);var Un=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn){var xn=this.length;return this.resize(xn+1),this.emplace(xn,U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn){var Dn=U*24,Zn=U*12,ga=U*48;return this.int16[Dn+0]=$,this.int16[Dn+1]=ae,this.uint16[Dn+2]=he,this.uint16[Dn+3]=Oe,this.uint32[Zn+2]=rt,this.uint32[Zn+3]=gt,this.uint32[Zn+4]=Mt,this.uint16[Dn+10]=or,this.uint16[Dn+11]=_r,this.uint16[Dn+12]=vr,this.float32[Zn+7]=Fr,this.float32[Zn+8]=ai,this.uint8[ga+36]=Gi,this.uint8[ga+37]=Ti,this.uint8[ga+38]=bn,this.uint32[Zn+10]=rn,this.int16[Dn+22]=xn,U},y}(Qi);Un.prototype.bytesPerElement=48,X("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Un);var na=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn,Dn,Zn,ga,ha,eo,za,Za,Ko,to,ao){var xs=this.length;return this.resize(xs+1),this.emplace(xs,U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn,Dn,Zn,ga,ha,eo,za,Za,Ko,to,ao)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn,Dn,Zn,ga,ha,eo,za,Za,Ko,to,ao,xs){var jo=U*34,Cl=U*17;return this.int16[jo+0]=$,this.int16[jo+1]=ae,this.int16[jo+2]=he,this.int16[jo+3]=Oe,this.int16[jo+4]=rt,this.int16[jo+5]=gt,this.int16[jo+6]=Mt,this.int16[jo+7]=or,this.uint16[jo+8]=_r,this.uint16[jo+9]=vr,this.uint16[jo+10]=Fr,this.uint16[jo+11]=ai,this.uint16[jo+12]=Gi,this.uint16[jo+13]=Ti,this.uint16[jo+14]=bn,this.uint16[jo+15]=rn,this.uint16[jo+16]=xn,this.uint16[jo+17]=Dn,this.uint16[jo+18]=Zn,this.uint16[jo+19]=ga,this.uint16[jo+20]=ha,this.uint16[jo+21]=eo,this.uint16[jo+22]=za,this.uint32[Cl+12]=Za,this.float32[Cl+13]=Ko,this.float32[Cl+14]=to,this.float32[Cl+15]=ao,this.float32[Cl+16]=xs,U},y}(Qi);na.prototype.bytesPerElement=68,X("StructArrayLayout8i15ui1ul4f68",na);var Yi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ae=U*1;return this.float32[ae+0]=$,U},y}(Qi);Yi.prototype.bytesPerElement=4,X("StructArrayLayout1f4",Yi);var Ln=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*3;return this.int16[Oe+0]=$,this.int16[Oe+1]=ae,this.int16[Oe+2]=he,U},y}(Qi);Ln.prototype.bytesPerElement=6,X("StructArrayLayout3i6",Ln);var ra=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*2,rt=U*4;return this.uint32[Oe+0]=$,this.uint16[rt+2]=ae,this.uint16[rt+3]=he,U},y}(Qi);ra.prototype.bytesPerElement=8,X("StructArrayLayout1ul2ui8",ra);var oa=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,U,$)},y.prototype.emplace=function(U,$,ae){var he=U*2;return this.uint16[he+0]=$,this.uint16[he+1]=ae,U},y}(Qi);oa.prototype.bytesPerElement=4,X("StructArrayLayout2ui4",oa);var wa=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ae=U*1;return this.uint16[ae+0]=$,U},y}(Qi);wa.prototype.bytesPerElement=2,X("StructArrayLayout1ui2",wa);var ns=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he){var Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,U,$,ae,he)},y.prototype.emplace=function(U,$,ae,he,Oe){var rt=U*4;return this.float32[rt+0]=$,this.float32[rt+1]=ae,this.float32[rt+2]=he,this.float32[rt+3]=Oe,U},y}(Qi);ns.prototype.bytesPerElement=16,X("StructArrayLayout4f16",ns);var Ys=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return I.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},I.x1.get=function(){return this._structArray.int16[this._pos2+2]},I.y1.get=function(){return this._structArray.int16[this._pos2+3]},I.x2.get=function(){return this._structArray.int16[this._pos2+4]},I.y2.get=function(){return this._structArray.int16[this._pos2+5]},I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.anchorPoint.get=function(){return new u(this.anchorPointX,this.anchorPointY)},Object.defineProperties(y.prototype,I),y}(Oi);Ys.prototype.size=20;var Va=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new Ys(this,U)},y}(mn);X("CollisionBoxArray",Va);var El=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},I.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},I.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},I.segment.get=function(){return this._structArray.uint16[this._pos2+10]},I.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},I.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},I.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},I.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},I.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},I.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},I.placedOrientation.set=function(U){this._structArray.uint8[this._pos1+37]=U},I.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},I.hidden.set=function(U){this._structArray.uint8[this._pos1+38]=U},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+10]=U},I.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(y.prototype,I),y}(Oi);El.prototype.size=48;var zo=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new El(this,U)},y}(Un);X("PlacedSymbolArray",zo);var el=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},I.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},I.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},I.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},I.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},I.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},I.key.get=function(){return this._structArray.uint16[this._pos2+8]},I.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},I.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},I.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},I.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},I.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},I.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},I.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},I.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},I.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},I.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},I.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},I.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},I.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+12]=U},I.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},I.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},I.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},I.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(y.prototype,I),y}(Oi);el.prototype.size=68;var ol=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new el(this,U)},y}(na);X("SymbolInstanceArray",ol);var Vl=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getoffsetX=function(U){return this.float32[U*1+0]},y}(Yi);X("GlyphOffsetArray",Vl);var ls=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getx=function(U){return this.int16[U*3+0]},y.prototype.gety=function(U){return this.int16[U*3+1]},y.prototype.gettileUnitDistanceFromAnchor=function(U){return this.int16[U*3+2]},y}(Ln);X("SymbolLineVertexArray",ls);var Gs=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(y.prototype,I),y}(Oi);Gs.prototype.size=8;var Ks=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new Gs(this,U)},y}(ra);X("FeatureIndexArray",Ks);var Ta=ji([{name:"a_pos",components:2,type:"Int16"}],4),sl=Ta.members,io=function(y){y===void 0&&(y=[]),this.segments=y};io.prototype.prepareSegment=function(y,I,U,$){var ae=this.segments[this.segments.length-1];return y>io.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+io.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+y),(!ae||ae.vertexLength+y>io.MAX_VERTEX_ARRAY_LENGTH||ae.sortKey!==$)&&(ae={vertexOffset:I.length,primitiveOffset:U.length,vertexLength:0,primitiveLength:0},$!==void 0&&(ae.sortKey=$),this.segments.push(ae)),ae},io.prototype.get=function(){return this.segments},io.prototype.destroy=function(){for(var y=0,I=this.segments;y>>16)*rt&65535)<<16)&4294967295,Mt=Mt<<15|Mt>>>17,Mt=(Mt&65535)*gt+(((Mt>>>16)*gt&65535)<<16)&4294967295,he^=Mt,he=he<<13|he>>>19,Oe=(he&65535)*5+(((he>>>16)*5&65535)<<16)&4294967295,he=(Oe&65535)+27492+(((Oe>>>16)+58964&65535)<<16);switch(Mt=0,$){case 3:Mt^=(I.charCodeAt(or+2)&255)<<16;case 2:Mt^=(I.charCodeAt(or+1)&255)<<8;case 1:Mt^=I.charCodeAt(or)&255,Mt=(Mt&65535)*rt+(((Mt>>>16)*rt&65535)<<16)&4294967295,Mt=Mt<<15|Mt>>>17,Mt=(Mt&65535)*gt+(((Mt>>>16)*gt&65535)<<16)&4294967295,he^=Mt}return he^=I.length,he^=he>>>16,he=(he&65535)*2246822507+(((he>>>16)*2246822507&65535)<<16)&4294967295,he^=he>>>13,he=(he&65535)*3266489909+(((he>>>16)*3266489909&65535)<<16)&4294967295,he^=he>>>16,he>>>0}m.exports=y}),q=a(function(m){function y(I,U){for(var $=I.length,ae=U^$,he=0,Oe;$>=4;)Oe=I.charCodeAt(he)&255|(I.charCodeAt(++he)&255)<<8|(I.charCodeAt(++he)&255)<<16|(I.charCodeAt(++he)&255)<<24,Oe=(Oe&65535)*1540483477+(((Oe>>>16)*1540483477&65535)<<16),Oe^=Oe>>>24,Oe=(Oe&65535)*1540483477+(((Oe>>>16)*1540483477&65535)<<16),ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16)^Oe,$-=4,++he;switch($){case 3:ae^=(I.charCodeAt(he+2)&255)<<16;case 2:ae^=(I.charCodeAt(he+1)&255)<<8;case 1:ae^=I.charCodeAt(he)&255,ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16)}return ae^=ae>>>13,ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16),ae^=ae>>>15,ae>>>0}m.exports=y}),K=J,de=J,ne=q;K.murmur3=de,K.murmur2=ne;var we=function(){this.ids=[],this.positions=[],this.indexed=!1};we.prototype.add=function(y,I,U,$){this.ids.push(ft(y)),this.positions.push(I,U,$)},we.prototype.getPositions=function(y){for(var I=ft(y),U=0,$=this.ids.length-1;U<$;){var ae=U+$>>1;this.ids[ae]>=I?$=ae:U=ae+1}for(var he=[];this.ids[U]===I;){var Oe=this.positions[3*U],rt=this.positions[3*U+1],gt=this.positions[3*U+2];he.push({index:Oe,start:rt,end:gt}),U++}return he},we.serialize=function(y,I){var U=new Float64Array(y.ids),$=new Uint32Array(y.positions);return Zt(U,$,0,U.length-1),I&&I.push(U.buffer,$.buffer),{ids:U,positions:$}},we.deserialize=function(y){var I=new we;return I.ids=y.ids,I.positions=y.positions,I.indexed=!0,I};var Ue=Math.pow(2,53)-1;function ft(m){var y=+m;return!isNaN(y)&&y<=Ue?y:K(String(m))}function Zt(m,y,I,U){for(;I>1],ae=I-1,he=U+1;;){do ae++;while(m[ae]<$);do he--;while(m[he]>$);if(ae>=he)break;hr(m,ae,he),hr(y,3*ae,3*he),hr(y,3*ae+1,3*he+1),hr(y,3*ae+2,3*he+2)}he-Ihe.x+1||rthe.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return I}function Ja(m,y){return{type:m.type,id:m.id,properties:m.properties,geometry:y?On(m):[]}}function co(m,y,I,U,$){m.emplaceBack(y*2+(U+1)/2,I*2+($+1)/2)}var rs=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Yr,this.indexArray=new vn,this.segments=new io,this.programConfigurations=new hi(y.layers,y.zoom),this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};rs.prototype.populate=function(y,I,U){var $=this.layers[0],ae=[],he=null;$.type==="circle"&&(he=$.layout.get("circle-sort-key"));for(var Oe=0,rt=y;Oe=Ci||_r<0||_r>=Ci)){var vr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,y.sortKey),Fr=vr.vertexLength;co(this.layoutVertexArray,or,_r,-1,-1),co(this.layoutVertexArray,or,_r,1,-1),co(this.layoutVertexArray,or,_r,1,1),co(this.layoutVertexArray,or,_r,-1,1),this.indexArray.emplaceBack(Fr,Fr+1,Fr+2),this.indexArray.emplaceBack(Fr,Fr+3,Fr+2),vr.vertexLength+=4,vr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,y,U,{},$)},X("CircleBucket",rs,{omit:["layers"]});function so(m,y){for(var I=0;I=3){for(var ae=0;ae<$.length;ae++)if(Td(m,$[ae]))return!0}if(Cv(m,$,I))return!0}return!1}function Cv(m,y,I){if(m.length>1){if(kv(m,y))return!0;for(var U=0;U1?m.distSqr(I):m.distSqr(I.sub(y)._mult($)._add(y))}function dp(m,y){for(var I=!1,U,$,ae,he=0;hey.y!=ae.y>y.y&&y.x<(ae.x-$.x)*(y.y-$.y)/(ae.y-$.y)+$.x&&(I=!I)}return I}function Td(m,y){for(var I=!1,U=0,$=m.length-1;Uy.y!=he.y>y.y&&y.x<(he.x-ae.x)*(y.y-ae.y)/(he.y-ae.y)+ae.x&&(I=!I)}return I}function vp(m,y,I,U,$){for(var ae=0,he=m;ae=Oe.x&&$>=Oe.y)return!0}var rt=[new u(y,I),new u(y,$),new u(U,$),new u(U,I)];if(m.length>2)for(var gt=0,Mt=rt;gt$.x&&y.x>$.x||m.y$.y&&y.y>$.y)return!1;var ae=oe(m,y,I[0]);return ae!==oe(m,y,I[1])||ae!==oe(m,y,I[2])||ae!==oe(m,y,I[3])}function Ad(m,y,I){var U=y.paint.get(m).value;return U.kind==="constant"?U.value:I.programConfigurations.get(y.id).getMaxValue(m)}function Lv(m){return Math.sqrt(m[0]*m[0]+m[1]*m[1])}function Kv(m,y,I,U,$){if(!y[0]&&!y[1])return m;var ae=u.convert(y)._mult($);I==="viewport"&&ae._rotate(-U);for(var he=[],Oe=0;Oe0&&(ae=1/Math.sqrt(ae)),m[0]=y[0]*ae,m[1]=y[1]*ae,m[2]=y[2]*ae,m}function F9(m,y){return m[0]*y[0]+m[1]*y[1]+m[2]*y[2]}function z9(m,y,I){var U=y[0],$=y[1],ae=y[2],he=I[0],Oe=I[1],rt=I[2];return m[0]=$*rt-ae*Oe,m[1]=ae*he-U*rt,m[2]=U*Oe-$*he,m}function O9(m,y,I){var U=y[0],$=y[1],ae=y[2];return m[0]=U*I[0]+$*I[3]+ae*I[6],m[1]=U*I[1]+$*I[4]+ae*I[7],m[2]=U*I[2]+$*I[5]+ae*I[8],m}var q9=om,EQ=function(){var m=am();return function(y,I,U,$,ae,he){var Oe,rt;for(I||(I=3),U||(U=0),$?rt=Math.min($*I+U,y.length):rt=y.length,Oe=U;Oem.width||$.height>m.height||I.x>m.width-$.width||I.y>m.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>y.width||$.height>y.height||U.x>y.width-$.width||U.y>y.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var he=m.data,Oe=y.data,rt=0;rt<$.height;rt++)for(var gt=((I.y+rt)*m.width+I.x)*ae,Mt=((U.y+rt)*y.width+U.x)*ae,or=0;or<$.width*ae;or++)Oe[Mt+or]=he[gt+or];return y}var Rv=function(y,I){Md(this,y,1,I)};Rv.prototype.resize=function(y){Cw(this,y,1)},Rv.prototype.clone=function(){return new Rv({width:this.width,height:this.height},new Uint8Array(this.data))},Rv.copy=function(y,I,U,$,ae){kw(y,I,U,$,ae,1)};var wh=function(y,I){Md(this,y,4,I)};wh.prototype.resize=function(y){Cw(this,y,4)},wh.prototype.replace=function(y,I){I?this.data.set(y):y instanceof Uint8ClampedArray?this.data=new Uint8Array(y.buffer):this.data=y},wh.prototype.clone=function(){return new wh({width:this.width,height:this.height},new Uint8Array(this.data))},wh.copy=function(y,I,U,$,ae){kw(y,I,U,$,ae,4)},X("AlphaImage",Rv),X("RGBAImage",wh);var Vx=new Br({"heatmap-radius":new xt(Fn.paint_heatmap["heatmap-radius"]),"heatmap-weight":new xt(Fn.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Ee(Fn.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Hr(Fn.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ee(Fn.paint_heatmap["heatmap-opacity"])}),S1={paint:Vx};function Gx(m){var y={},I=m.resolution||256,U=m.clips?m.clips.length:1,$=m.image||new wh({width:I,height:U}),ae=function(bn,rn,xn){y[m.evaluationKey]=xn;var Dn=m.expression.evaluate(y);$.data[bn+rn+0]=Math.floor(Dn.r*255/Dn.a),$.data[bn+rn+1]=Math.floor(Dn.g*255/Dn.a),$.data[bn+rn+2]=Math.floor(Dn.b*255/Dn.a),$.data[bn+rn+3]=Math.floor(Dn.a*255)};if(m.clips)for(var gt=0,Mt=0;gt80*I){Oe=gt=m[0],rt=Mt=m[1];for(var Fr=I;Fr<$;Fr+=I)or=m[Fr],_r=m[Fr+1],orgt&&(gt=or),_r>Mt&&(Mt=_r);vr=Math.max(gt-Oe,Mt-rt),vr=vr!==0?1/vr:0}return Hx(ae,he,I,Oe,rt,vr),he}function Iw(m,y,I,U,$){var ae,he;if($===cS(m,y,I,U)>0)for(ae=y;ae=y;ae-=U)he=Mk(ae,m[ae],m[ae+1],he);return he&&Wx(he,he.next)&&(Yx(he),he=he.next),he}function sm(m,y){if(!m)return m;y||(y=m);var I=m,U;do if(U=!1,!I.steiner&&(Wx(I,I.next)||wf(I.prev,I,I.next)===0)){if(Yx(I),I=y=I.prev,I===I.next)break;U=!0}else I=I.next;while(U||I!==y);return y}function Hx(m,y,I,U,$,ae,he){if(m){!he&&ae&&Rw(m,U,$,ae);for(var Oe=m,rt,gt;m.prev!==m.next;){if(rt=m.prev,gt=m.next,ae?Tk(m,U,$,ae):wk(m)){y.push(rt.i/I),y.push(m.i/I),y.push(gt.i/I),Yx(m),m=gt.next,Oe=gt.next;continue}if(m=gt,m===Oe){he?he===1?(m=jx(sm(m),y,I),Hx(m,y,I,U,$,ae,2)):he===2&&v0(m,y,I,U,$,ae):Hx(sm(m),y,I,U,$,ae,1);break}}}}function wk(m){var y=m.prev,I=m,U=m.next;if(wf(y,I,U)>=0)return!1;for(var $=m.next.next;$!==m.prev;){if(um(y.x,y.y,I.x,I.y,U.x,U.y,$.x,$.y)&&wf($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function Tk(m,y,I,U){var $=m.prev,ae=m,he=m.next;if(wf($,ae,he)>=0)return!1;for(var Oe=$.xae.x?$.x>he.x?$.x:he.x:ae.x>he.x?ae.x:he.x,Mt=$.y>ae.y?$.y>he.y?$.y:he.y:ae.y>he.y?ae.y:he.y,or=oS(Oe,rt,y,I,U),_r=oS(gt,Mt,y,I,U),vr=m.prevZ,Fr=m.nextZ;vr&&vr.z>=or&&Fr&&Fr.z<=_r;){if(vr!==m.prev&&vr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,vr.x,vr.y)&&wf(vr.prev,vr,vr.next)>=0||(vr=vr.prevZ,Fr!==m.prev&&Fr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,Fr.x,Fr.y)&&wf(Fr.prev,Fr,Fr.next)>=0))return!1;Fr=Fr.nextZ}for(;vr&&vr.z>=or;){if(vr!==m.prev&&vr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,vr.x,vr.y)&&wf(vr.prev,vr,vr.next)>=0)return!1;vr=vr.prevZ}for(;Fr&&Fr.z<=_r;){if(Fr!==m.prev&&Fr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,Fr.x,Fr.y)&&wf(Fr.prev,Fr,Fr.next)>=0)return!1;Fr=Fr.nextZ}return!0}function jx(m,y,I){var U=m;do{var $=U.prev,ae=U.next.next;!Wx($,ae)&&Dw($,U,U.next,ae)&&Zx($,ae)&&Zx(ae,$)&&(y.push($.i/I),y.push(U.i/I),y.push(ae.i/I),Yx(U),Yx(U.next),U=m=ae),U=U.next}while(U!==m);return sm(U)}function v0(m,y,I,U,$,ae){var he=m;do{for(var Oe=he.next.next;Oe!==he.prev;){if(he.i!==Oe.i&&E1(he,Oe)){var rt=lS(he,Oe);he=sm(he,he.next),rt=sm(rt,rt.next),Hx(he,y,I,U,$,ae),Hx(rt,y,I,U,$,ae);return}Oe=Oe.next}he=he.next}while(he!==m)}function lm(m,y,I,U){var $=[],ae,he,Oe,rt,gt;for(ae=0,he=y.length;ae=I.next.y&&I.next.y!==I.y){var Oe=I.x+($-I.y)*(I.next.x-I.x)/(I.next.y-I.y);if(Oe<=U&&Oe>ae){if(ae=Oe,Oe===U){if($===I.y)return I;if($===I.next.y)return I.next}he=I.x=I.x&&I.x>=gt&&U!==I.x&&um($he.x||I.x===he.x&&X9(he,I)))&&(he=I,or=_r)),I=I.next;while(I!==rt);return he}function X9(m,y){return wf(m.prev,m,y.prev)<0&&wf(y.next,m,m.next)<0}function Rw(m,y,I,U){var $=m;do $.z===null&&($.z=oS($.x,$.y,y,I,U)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==m);$.prevZ.nextZ=null,$.prevZ=null,aS($)}function aS(m){var y,I,U,$,ae,he,Oe,rt,gt=1;do{for(I=m,m=null,ae=null,he=0;I;){for(he++,U=I,Oe=0,y=0;y0||rt>0&&U;)Oe!==0&&(rt===0||!U||I.z<=U.z)?($=I,I=I.nextZ,Oe--):($=U,U=U.nextZ,rt--),ae?ae.nextZ=$:m=$,$.prevZ=ae,ae=$;I=U}ae.nextZ=null,gt*=2}while(he>1);return m}function oS(m,y,I,U,$){return m=32767*(m-I)*$,y=32767*(y-U)*$,m=(m|m<<8)&16711935,m=(m|m<<4)&252645135,m=(m|m<<2)&858993459,m=(m|m<<1)&1431655765,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,m|y<<1}function sS(m){var y=m,I=m;do(y.x=0&&(m-he)*(U-Oe)-(I-he)*(y-Oe)>=0&&(I-he)*(ae-Oe)-($-he)*(U-Oe)>=0}function E1(m,y){return m.next.i!==y.i&&m.prev.i!==y.i&&!Sk(m,y)&&(Zx(m,y)&&Zx(y,m)&&Z9(m,y)&&(wf(m.prev,m,y.prev)||wf(m,y.prev,y))||Wx(m,y)&&wf(m.prev,m,m.next)>0&&wf(y.prev,y,y.next)>0)}function wf(m,y,I){return(y.y-m.y)*(I.x-y.x)-(y.x-m.x)*(I.y-y.y)}function Wx(m,y){return m.x===y.x&&m.y===y.y}function Dw(m,y,I,U){var $=uy(wf(m,y,I)),ae=uy(wf(m,y,U)),he=uy(wf(I,U,m)),Oe=uy(wf(I,U,y));return!!($!==ae&&he!==Oe||$===0&&Xx(m,I,y)||ae===0&&Xx(m,U,y)||he===0&&Xx(I,m,U)||Oe===0&&Xx(I,y,U))}function Xx(m,y,I){return y.x<=Math.max(m.x,I.x)&&y.x>=Math.min(m.x,I.x)&&y.y<=Math.max(m.y,I.y)&&y.y>=Math.min(m.y,I.y)}function uy(m){return m>0?1:m<0?-1:0}function Sk(m,y){var I=m;do{if(I.i!==m.i&&I.next.i!==m.i&&I.i!==y.i&&I.next.i!==y.i&&Dw(I,I.next,m,y))return!0;I=I.next}while(I!==m);return!1}function Zx(m,y){return wf(m.prev,m,m.next)<0?wf(m,y,m.next)>=0&&wf(m,m.prev,y)>=0:wf(m,y,m.prev)<0||wf(m,m.next,y)<0}function Z9(m,y){var I=m,U=!1,$=(m.x+y.x)/2,ae=(m.y+y.y)/2;do I.y>ae!=I.next.y>ae&&I.next.y!==I.y&&$<(I.next.x-I.x)*(ae-I.y)/(I.next.y-I.y)+I.x&&(U=!U),I=I.next;while(I!==m);return U}function lS(m,y){var I=new uS(m.i,m.x,m.y),U=new uS(y.i,y.x,y.y),$=m.next,ae=y.prev;return m.next=y,y.prev=m,I.next=$,$.prev=I,U.next=I,I.prev=U,ae.next=U,U.prev=ae,U}function Mk(m,y,I,U){var $=new uS(m,y,I);return U?($.next=U.next,$.prev=U,U.next.prev=$,U.next=$):($.prev=$,$.next=$),$}function Yx(m){m.next.prev=m.prev,m.prev.next=m.next,m.prevZ&&(m.prevZ.nextZ=m.nextZ),m.nextZ&&(m.nextZ.prevZ=m.prevZ)}function uS(m,y,I){this.i=m,this.x=y,this.y=I,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}M1.deviation=function(m,y,I,U){var $=y&&y.length,ae=$?y[0]*I:m.length,he=Math.abs(cS(m,0,ae,I));if($)for(var Oe=0,rt=y.length;Oe0&&(U+=m[$-1].length,I.holes.push(U))}return I},Pw.default=bk;function fS(m,y,I,U,$){dg(m,y,I||0,U||m.length-1,$||Ek)}function dg(m,y,I,U,$){for(;U>I;){if(U-I>600){var ae=U-I+1,he=y-I+1,Oe=Math.log(ae),rt=.5*Math.exp(2*Oe/3),gt=.5*Math.sqrt(Oe*rt*(ae-rt)/ae)*(he-ae/2<0?-1:1),Mt=Math.max(I,Math.floor(y-he*rt/ae+gt)),or=Math.min(U,Math.floor(y+(ae-he)*rt/ae+gt));dg(m,y,Mt,or,$)}var _r=m[y],vr=I,Fr=U;for(C1(m,I,y),$(m[U],_r)>0&&C1(m,I,U);vr0;)Fr--}$(m[I],_r)===0?C1(m,I,Fr):(Fr++,C1(m,Fr,U)),Fr<=y&&(I=Fr+1),y<=Fr&&(U=Fr-1)}}function C1(m,y,I){var U=m[y];m[y]=m[I],m[I]=U}function Ek(m,y){return my?1:0}function Fw(m,y){var I=m.length;if(I<=1)return[m];for(var U=[],$,ae,he=0;he1)for(var rt=0;rt>3}if(U--,I===1||I===2)$+=m.readSVarint(),ae+=m.readSVarint(),I===1&&(Oe&&he.push(Oe),Oe=[]),Oe.push(new u($,ae));else if(I===7)Oe&&Oe.push(Oe[0].clone());else throw new Error("unknown command "+I)}return Oe&&he.push(Oe),he},cy.prototype.bbox=function(){var m=this._pbf;m.pos=this._geometry;for(var y=m.readVarint()+m.pos,I=1,U=0,$=0,ae=0,he=1/0,Oe=-1/0,rt=1/0,gt=-1/0;m.pos>3}if(U--,I===1||I===2)$+=m.readSVarint(),ae+=m.readSVarint(),$Oe&&(Oe=$),aegt&&(gt=ae);else if(I!==7)throw new Error("unknown command "+I)}return[he,rt,Oe,gt]},cy.prototype.toGeoJSON=function(m,y,I){var U=this.extent*Math.pow(2,I),$=this.extent*m,ae=this.extent*y,he=this.loadGeometry(),Oe=cy.types[this.type],rt,gt;function Mt(vr){for(var Fr=0;Fr>3;y=U===1?m.readString():U===2?m.readFloat():U===3?m.readDouble():U===4?m.readVarint64():U===5?m.readVarint():U===6?m.readSVarint():U===7?m.readBoolean():null}return y}vS.prototype.feature=function(m){if(m<0||m>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[m];var y=this._pbf.readVarint()+this._pbf.pos;return new dS(this._pbf,y,this.extent,this._keys,this._values)};var Ok=K9;function K9(m,y){this.layers=m.readFields(J9,{},y)}function J9(m,y,I){if(m===3){var U=new vg(I,I.readVarint()+I.pos);U.length&&(y[U.name]=U)}}var qk=Ok,k1=dS,Bk=vg,pg={VectorTile:qk,VectorTileFeature:k1,VectorTileLayer:Bk},Nk=pg.VectorTileFeature.types,Ow=500,L1=Math.pow(2,13);function cm(m,y,I,U,$,ae,he,Oe){m.emplaceBack(y,I,Math.floor(U*L1)*2+he,$*L1*2,ae*L1*2,Math.round(Oe))}var Vp=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Ii,this.indexArray=new vn,this.programConfigurations=new hi(y.layers,y.zoom),this.segments=new io,this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};Vp.prototype.populate=function(y,I,U){this.features=[],this.hasPattern=zw("fill-extrusion",this.layers,I);for(var $=0,ae=y;$=1){var xn=Gi[bn-1];if(!$9(rn,xn)){vr.vertexLength+4>io.MAX_VERTEX_ARRAY_LENGTH&&(vr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Dn=rn.sub(xn)._perp()._unit(),Zn=xn.dist(rn);Ti+Zn>32768&&(Ti=0),cm(this.layoutVertexArray,rn.x,rn.y,Dn.x,Dn.y,0,0,Ti),cm(this.layoutVertexArray,rn.x,rn.y,Dn.x,Dn.y,0,1,Ti),Ti+=Zn,cm(this.layoutVertexArray,xn.x,xn.y,Dn.x,Dn.y,0,0,Ti),cm(this.layoutVertexArray,xn.x,xn.y,Dn.x,Dn.y,0,1,Ti);var ga=vr.vertexLength;this.indexArray.emplaceBack(ga,ga+2,ga+1),this.indexArray.emplaceBack(ga+1,ga+2,ga+3),vr.vertexLength+=4,vr.primitiveLength+=2}}}}if(vr.vertexLength+gt>io.MAX_VERTEX_ARRAY_LENGTH&&(vr=this.segments.prepareSegment(gt,this.layoutVertexArray,this.indexArray)),Nk[y.type]==="Polygon"){for(var ha=[],eo=[],za=vr.vertexLength,Za=0,Ko=rt;ZaCi)||m.y===y.y&&(m.y<0||m.y>Ci)}function Q9(m){return m.every(function(y){return y.x<0})||m.every(function(y){return y.x>Ci})||m.every(function(y){return y.y<0})||m.every(function(y){return y.y>Ci})}var P1=new Br({"fill-extrusion-opacity":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new xt(Fn["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new zt(Fn["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new xt(Fn["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new xt(Fn["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),sd={paint:P1},fm=function(m){function y(I){m.call(this,I,sd)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.createBucket=function(U){return new Vp(U)},y.prototype.queryRadius=function(){return Lv(this.paint.get("fill-extrusion-translate"))},y.prototype.is3D=function(){return!0},y.prototype.queryIntersectsFeature=function(U,$,ae,he,Oe,rt,gt,Mt){var or=Kv(U,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),rt.angle,gt),_r=this.paint.get("fill-extrusion-height").evaluate($,ae),vr=this.paint.get("fill-extrusion-base").evaluate($,ae),Fr=eO(or,Mt,rt,0),ai=gS(he,vr,_r,Mt),Gi=ai[0],Ti=ai[1];return Uk(Gi,Ti,Fr)},y}(mi);function fy(m,y){return m.x*y.x+m.y*y.y}function pS(m,y){if(m.length===1){for(var I=0,U=y[I++],$;!$||U.equals($);)if($=y[I++],!$)return 1/0;for(;I=2&&y[gt-1].equals(y[gt-2]);)gt--;for(var Mt=0;Mt0;if(ha&&bn>Mt){var za=vr.dist(Fr);if(za>2*or){var Za=vr.sub(vr.sub(Fr)._mult(or/za)._round());this.updateDistance(Fr,Za),this.addCurrentVertex(Za,Gi,0,0,_r),Fr=Za}}var Ko=Fr&&ai,to=Ko?U:rt?"butt":$;if(Ko&&to==="round"&&(Znae&&(to="bevel"),to==="bevel"&&(Zn>2&&(to="flipbevel"),Zn100)rn=Ti.mult(-1);else{var ao=Zn*Gi.add(Ti).mag()/Gi.sub(Ti).mag();rn._perp()._mult(ao*(eo?-1:1))}this.addCurrentVertex(vr,rn,0,0,_r),this.addCurrentVertex(vr,rn.mult(-1),0,0,_r)}else if(to==="bevel"||to==="fakeround"){var xs=-Math.sqrt(Zn*Zn-1),jo=eo?xs:0,Cl=eo?0:xs;if(Fr&&this.addCurrentVertex(vr,Gi,jo,Cl,_r),to==="fakeround")for(var Iu=Math.round(ga*180/Math.PI/yS),kl=1;kl2*or){var ch=vr.add(ai.sub(vr)._mult(or/Xh)._round());this.updateDistance(vr,ch),this.addCurrentVertex(ch,Ti,0,0,_r),vr=ch}}}}},sh.prototype.addCurrentVertex=function(y,I,U,$,ae,he){he===void 0&&(he=!1);var Oe=I.x+I.y*U,rt=I.y-I.x*U,gt=-I.x+I.y*$,Mt=-I.y-I.x*$;this.addHalfVertex(y,Oe,rt,he,!1,U,ae),this.addHalfVertex(y,gt,Mt,he,!0,-$,ae),this.distance>eb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(y,I,U,$,ae,he))},sh.prototype.addHalfVertex=function(y,I,U,$,ae,he,Oe){var rt=y.x,gt=y.y,Mt=this.lineClips?this.scaledDistance*(eb-1):this.scaledDistance,or=Mt*Bw;if(this.layoutVertexArray.emplaceBack((rt<<1)+($?1:0),(gt<<1)+(ae?1:0),Math.round(qw*I)+128,Math.round(qw*U)+128,(he===0?0:he<0?-1:1)+1|(or&63)<<2,or>>6),this.lineClips){var _r=this.scaledDistance-this.lineClips.start,vr=this.lineClips.end-this.lineClips.start,Fr=_r/vr;this.layoutVertexArray2.emplaceBack(Fr,this.lineClipsArray.length)}var ai=Oe.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,ai),Oe.primitiveLength++),ae?this.e2=ai:this.e1=ai},sh.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},sh.prototype.updateDistance=function(y,I){this.distance+=y.dist(I),this.updateScaledDistance()},X("LineBucket",sh,{omit:["layers","patternFeatures"]});var _S=new Br({"line-cap":new Ee(Fn.layout_line["line-cap"]),"line-join":new xt(Fn.layout_line["line-join"]),"line-miter-limit":new Ee(Fn.layout_line["line-miter-limit"]),"line-round-limit":new Ee(Fn.layout_line["line-round-limit"]),"line-sort-key":new xt(Fn.layout_line["line-sort-key"])}),xS=new Br({"line-opacity":new xt(Fn.paint_line["line-opacity"]),"line-color":new xt(Fn.paint_line["line-color"]),"line-translate":new Ee(Fn.paint_line["line-translate"]),"line-translate-anchor":new Ee(Fn.paint_line["line-translate-anchor"]),"line-width":new xt(Fn.paint_line["line-width"]),"line-gap-width":new xt(Fn.paint_line["line-gap-width"]),"line-offset":new xt(Fn.paint_line["line-offset"]),"line-blur":new xt(Fn.paint_line["line-blur"]),"line-dasharray":new Ir(Fn.paint_line["line-dasharray"]),"line-pattern":new zt(Fn.paint_line["line-pattern"]),"line-gradient":new Hr(Fn.paint_line["line-gradient"])}),Nw={paint:xS,layout:_S},rO=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.possiblyEvaluate=function(U,$){return $=new Gn(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),m.prototype.possiblyEvaluate.call(this,U,$)},y.prototype.evaluate=function(U,$,ae,he){return $=_({},$,{zoom:Math.floor($.zoom)}),m.prototype.evaluate.call(this,U,$,ae,he)},y}(xt),R=new rO(Nw.paint.properties["line-width"].specification);R.useIntegerZoom=!0;var S=function(m){function y(I){m.call(this,I,Nw),this.gradientVersion=0}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._handleSpecialPaintPropertyUpdate=function(U){if(U==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof _u,this.gradientVersion=(this.gradientVersion+1)%d}},y.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},y.prototype.recalculate=function(U,$){m.prototype.recalculate.call(this,U,$),this.paint._values["line-floorwidth"]=R.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,U)},y.prototype.createBucket=function(U){return new sh(U)},y.prototype.queryRadius=function(U){var $=U,ae=F(Ad("line-width",this,$),Ad("line-gap-width",this,$)),he=Ad("line-offset",this,$);return ae/2+Math.abs(he)+Lv(this.paint.get("line-translate"))},y.prototype.queryIntersectsFeature=function(U,$,ae,he,Oe,rt,gt){var Mt=Kv(U,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),rt.angle,gt),or=gt/2*F(this.paint.get("line-width").evaluate($,ae),this.paint.get("line-gap-width").evaluate($,ae)),_r=this.paint.get("line-offset").evaluate($,ae);return _r&&(he=W(he,_r*gt)),ou(Mt,he,or)},y.prototype.isTileClipped=function(){return!0},y}(mi);function F(m,y){return y>0?y+2*m:m}function W(m,y){for(var I=[],U=new u(0,0),$=0;$":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function ln(m){for(var y="",I=0;I>1,Mt=-7,or=I?$-1:0,_r=I?-1:1,vr=m[y+or];for(or+=_r,ae=vr&(1<<-Mt)-1,vr>>=-Mt,Mt+=Oe;Mt>0;ae=ae*256+m[y+or],or+=_r,Mt-=8);for(he=ae&(1<<-Mt)-1,ae>>=-Mt,Mt+=U;Mt>0;he=he*256+m[y+or],or+=_r,Mt-=8);if(ae===0)ae=1-gt;else{if(ae===rt)return he?NaN:(vr?-1:1)*(1/0);he=he+Math.pow(2,U),ae=ae-gt}return(vr?-1:1)*he*Math.pow(2,ae-U)},ro=function(m,y,I,U,$,ae){var he,Oe,rt,gt=ae*8-$-1,Mt=(1<>1,_r=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,vr=U?0:ae-1,Fr=U?1:-1,ai=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(Oe=isNaN(y)?1:0,he=Mt):(he=Math.floor(Math.log(y)/Math.LN2),y*(rt=Math.pow(2,-he))<1&&(he--,rt*=2),he+or>=1?y+=_r/rt:y+=_r*Math.pow(2,1-or),y*rt>=2&&(he++,rt/=2),he+or>=Mt?(Oe=0,he=Mt):he+or>=1?(Oe=(y*rt-1)*Math.pow(2,$),he=he+or):(Oe=y*Math.pow(2,or-1)*Math.pow(2,$),he=0));$>=8;m[I+vr]=Oe&255,vr+=Fr,Oe/=256,$-=8);for(he=he<<$|Oe,gt+=$;gt>0;m[I+vr]=he&255,vr+=Fr,he/=256,gt-=8);m[I+vr-Fr]|=ai*128},Vo={read:pa,write:ro},Xa=sa;function sa(m){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(m)?m:new Uint8Array(m||0),this.pos=0,this.type=0,this.length=this.buf.length}sa.Varint=0,sa.Fixed64=1,sa.Bytes=2,sa.Fixed32=5;var Mo=65536*65536,fo=1/Mo,lo=12,Xn=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");sa.prototype={destroy:function(){this.buf=null},readFields:function(m,y,I){for(I=I||this.length;this.pos>3,ae=this.pos;this.type=U&7,m($,y,this),this.pos===ae&&this.skip(U)}return y},readMessage:function(m,y){return this.readFields(m,y,this.readVarint()+this.pos)},readFixed32:function(){var m=Hh(this.buf,this.pos);return this.pos+=4,m},readSFixed32:function(){var m=Dv(this.buf,this.pos);return this.pos+=4,m},readFixed64:function(){var m=Hh(this.buf,this.pos)+Hh(this.buf,this.pos+4)*Mo;return this.pos+=8,m},readSFixed64:function(){var m=Hh(this.buf,this.pos)+Dv(this.buf,this.pos+4)*Mo;return this.pos+=8,m},readFloat:function(){var m=Vo.read(this.buf,this.pos,!0,23,4);return this.pos+=4,m},readDouble:function(){var m=Vo.read(this.buf,this.pos,!0,52,8);return this.pos+=8,m},readVarint:function(m){var y=this.buf,I,U;return U=y[this.pos++],I=U&127,U<128||(U=y[this.pos++],I|=(U&127)<<7,U<128)||(U=y[this.pos++],I|=(U&127)<<14,U<128)||(U=y[this.pos++],I|=(U&127)<<21,U<128)?I:(U=y[this.pos],I|=(U&15)<<28,Ro(I,m,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var m=this.readVarint();return m%2===1?(m+1)/-2:m/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var m=this.readVarint()+this.pos,y=this.pos;return this.pos=m,m-y>=lo&&Xn?tu(this.buf,y,m):lv(this.buf,y,m)},readBytes:function(){var m=this.readVarint()+this.pos,y=this.buf.subarray(this.pos,m);return this.pos=m,y},readPackedVarint:function(m,y){if(this.type!==sa.Bytes)return m.push(this.readVarint(y));var I=uo(this);for(m=m||[];this.pos127;);else if(y===sa.Bytes)this.pos=this.readVarint()+this.pos;else if(y===sa.Fixed32)this.pos+=4;else if(y===sa.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+y)},writeTag:function(m,y){this.writeVarint(m<<3|y)},realloc:function(m){for(var y=this.length||16;y268435455||m<0){Ju(m,this);return}this.realloc(4),this.buf[this.pos++]=m&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=m>>>7&127)))},writeSVarint:function(m){this.writeVarint(m<0?-m*2-1:m*2)},writeBoolean:function(m){this.writeVarint(!!m)},writeString:function(m){m=String(m),this.realloc(m.length*4),this.pos++;var y=this.pos;this.pos=pc(this.buf,m,this.pos);var I=this.pos-y;I>=128&&$v(y,I,this),this.pos=y-1,this.writeVarint(I),this.pos+=I},writeFloat:function(m){this.realloc(4),Vo.write(this.buf,m,this.pos,!0,23,4),this.pos+=4},writeDouble:function(m){this.realloc(8),Vo.write(this.buf,m,this.pos,!0,52,8),this.pos+=8},writeBytes:function(m){var y=m.length;this.writeVarint(y),this.realloc(y);for(var I=0;I=128&&$v(I,U,this),this.pos=I-1,this.writeVarint(U),this.pos+=U},writeMessage:function(m,y,I){this.writeTag(m,sa.Bytes),this.writeRawMessage(y,I)},writePackedVarint:function(m,y){y.length&&this.writeMessage(m,ld,y)},writePackedSVarint:function(m,y){y.length&&this.writeMessage(m,Ah,y)},writePackedBoolean:function(m,y){y.length&&this.writeMessage(m,jd,y)},writePackedFloat:function(m,y){y.length&&this.writeMessage(m,Gd,y)},writePackedDouble:function(m,y){y.length&&this.writeMessage(m,Hd,y)},writePackedFixed32:function(m,y){y.length&&this.writeMessage(m,Tf,y)},writePackedSFixed32:function(m,y){y.length&&this.writeMessage(m,Sh,y)},writePackedFixed64:function(m,y){y.length&&this.writeMessage(m,Ed,y)},writePackedSFixed64:function(m,y){y.length&&this.writeMessage(m,ud,y)},writeBytesField:function(m,y){this.writeTag(m,sa.Bytes),this.writeBytes(y)},writeFixed32Field:function(m,y){this.writeTag(m,sa.Fixed32),this.writeFixed32(y)},writeSFixed32Field:function(m,y){this.writeTag(m,sa.Fixed32),this.writeSFixed32(y)},writeFixed64Field:function(m,y){this.writeTag(m,sa.Fixed64),this.writeFixed64(y)},writeSFixed64Field:function(m,y){this.writeTag(m,sa.Fixed64),this.writeSFixed64(y)},writeVarintField:function(m,y){this.writeTag(m,sa.Varint),this.writeVarint(y)},writeSVarintField:function(m,y){this.writeTag(m,sa.Varint),this.writeSVarint(y)},writeStringField:function(m,y){this.writeTag(m,sa.Bytes),this.writeString(y)},writeFloatField:function(m,y){this.writeTag(m,sa.Fixed32),this.writeFloat(y)},writeDoubleField:function(m,y){this.writeTag(m,sa.Fixed64),this.writeDouble(y)},writeBooleanField:function(m,y){this.writeVarintField(m,!!y)}};function Ro(m,y,I){var U=I.buf,$,ae;if(ae=U[I.pos++],$=(ae&112)>>4,ae<128||(ae=U[I.pos++],$|=(ae&127)<<3,ae<128)||(ae=U[I.pos++],$|=(ae&127)<<10,ae<128)||(ae=U[I.pos++],$|=(ae&127)<<17,ae<128)||(ae=U[I.pos++],$|=(ae&127)<<24,ae<128)||(ae=U[I.pos++],$|=(ae&1)<<31,ae<128))return $o(m,$,y);throw new Error("Expected varint not more than 10 bytes")}function uo(m){return m.type===sa.Bytes?m.readVarint()+m.pos:m.pos+1}function $o(m,y,I){return I?y*4294967296+(m>>>0):(y>>>0)*4294967296+(m>>>0)}function Ju(m,y){var I,U;if(m>=0?(I=m%4294967296|0,U=m/4294967296|0):(I=~(-m%4294967296),U=~(-m/4294967296),I^4294967295?I=I+1|0:(I=0,U=U+1|0)),m>=18446744073709552e3||m<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");y.realloc(10),qu(I,U,y),Th(U,y)}function qu(m,y,I){I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos]=m&127}function Th(m,y){var I=(m&7)<<4;y.buf[y.pos++]|=I|((m>>>=3)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127)))))}function $v(m,y,I){var U=y<=16383?1:y<=2097151?2:y<=268435455?3:Math.floor(Math.log(y)/(Math.LN2*7));I.realloc(U);for(var $=I.pos-1;$>=m;$--)I.buf[$+U]=I.buf[$]}function ld(m,y){for(var I=0;I>>8,m[I+2]=y>>>16,m[I+3]=y>>>24}function Dv(m,y){return(m[y]|m[y+1]<<8|m[y+2]<<16)+(m[y+3]<<24)}function lv(m,y,I){for(var U="",$=y;$239?4:ae>223?3:ae>191?2:1;if($+Oe>I)break;var rt,gt,Mt;Oe===1?ae<128&&(he=ae):Oe===2?(rt=m[$+1],(rt&192)===128&&(he=(ae&31)<<6|rt&63,he<=127&&(he=null))):Oe===3?(rt=m[$+1],gt=m[$+2],(rt&192)===128&&(gt&192)===128&&(he=(ae&15)<<12|(rt&63)<<6|gt&63,(he<=2047||he>=55296&&he<=57343)&&(he=null))):Oe===4&&(rt=m[$+1],gt=m[$+2],Mt=m[$+3],(rt&192)===128&&(gt&192)===128&&(Mt&192)===128&&(he=(ae&15)<<18|(rt&63)<<12|(gt&63)<<6|Mt&63,(he<=65535||he>=1114112)&&(he=null))),he===null?(he=65533,Oe=1):he>65535&&(he-=65536,U+=String.fromCharCode(he>>>10&1023|55296),he=56320|he&1023),U+=String.fromCharCode(he),$+=Oe}return U}function tu(m,y,I){return Xn.decode(m.subarray(y,I))}function pc(m,y,I){for(var U=0,$,ae;U55295&&$<57344)if(ae)if($<56320){m[I++]=239,m[I++]=191,m[I++]=189,ae=$;continue}else $=ae-55296<<10|$-56320|65536,ae=null;else{$>56319||U+1===y.length?(m[I++]=239,m[I++]=191,m[I++]=189):ae=$;continue}else ae&&(m[I++]=239,m[I++]=191,m[I++]=189,ae=null);$<128?m[I++]=$:($<2048?m[I++]=$>>6|192:($<65536?m[I++]=$>>12|224:(m[I++]=$>>18|240,m[I++]=$>>12&63|128),m[I++]=$>>6&63|128),m[I++]=$&63|128)}return I}var $u=3;function Fv(m,y,I){m===1&&I.readMessage(ff,y)}function ff(m,y,I){if(m===3){var U=I.readMessage(I1,{}),$=U.id,ae=U.bitmap,he=U.width,Oe=U.height,rt=U.left,gt=U.top,Mt=U.advance;y.push({id:$,bitmap:new Rv({width:he+2*$u,height:Oe+2*$u},ae),metrics:{width:he,height:Oe,left:rt,top:gt,advance:Mt}})}}function I1(m,y,I){m===1?y.id=I.readVarint():m===2?y.bitmap=I.readBytes():m===3?y.width=I.readVarint():m===4?y.height=I.readVarint():m===5?y.left=I.readSVarint():m===6?y.top=I.readSVarint():m===7&&(y.advance=I.readVarint())}function p0(m){return new Xa(m).readFields(Fv,[])}var Gp=$u;function Qv(m){for(var y=0,I=0,U=0,$=m;U<$.length;U+=1){var ae=$[U];y+=ae.w*ae.h,I=Math.max(I,ae.w)}m.sort(function(Gi,Ti){return Ti.h-Gi.h});for(var he=Math.max(Math.ceil(Math.sqrt(y/.95)),I),Oe=[{x:0,y:0,w:he,h:1/0}],rt=0,gt=0,Mt=0,or=m;Mt=0;vr--){var Fr=Oe[vr];if(!(_r.w>Fr.w||_r.h>Fr.h)){if(_r.x=Fr.x,_r.y=Fr.y,gt=Math.max(gt,_r.y+_r.h),rt=Math.max(rt,_r.x+_r.w),_r.w===Fr.w&&_r.h===Fr.h){var ai=Oe.pop();vr=0&&$>=y&&m0[this.text.charCodeAt($)];$--)U--;this.text=this.text.substring(y,U),this.sectionIndex=this.sectionIndex.slice(y,U)},jh.prototype.substring=function(y,I){var U=new jh;return U.text=this.text.substring(y,I),U.sectionIndex=this.sectionIndex.slice(y,I),U.sections=this.sections,U},jh.prototype.toString=function(){return this.text},jh.prototype.getMaxScale=function(){var y=this;return this.sectionIndex.reduce(function(I,U){return Math.max(I,y.sections[U].scale)},0)},jh.prototype.addTextSection=function(y,I){this.text+=y.text,this.sections.push(hy.forText(y.scale,y.fontStack||I));for(var U=this.sections.length-1,$=0;$=g0?null:++this.imageSectionID:(this.imageSectionID=Uw,this.imageSectionID)};function iO(m,y){for(var I=[],U=m.text,$=0,ae=0,he=y;ae=0,Mt=0,or=0;or0&&ch>eo&&(eo=ch)}else{var Ll=I[Za.fontStack],_l=Ll&&Ll[to];if(_l&&_l.rect)jo=_l.rect,xs=_l.metrics;else{var Qu=y[Za.fontStack],gc=Qu&&Qu[to];if(!gc)continue;xs=gc.metrics}ao=(Dn-Za.scale)*An}kl?(m.verticalizable=!0,ha.push({glyph:to,imageName:Cl,x:_r,y:vr+ao,vertical:kl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Ko,metrics:xs,rect:jo}),_r+=Iu*Za.scale+gt):(ha.push({glyph:to,imageName:Cl,x:_r,y:vr+ao,vertical:kl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Ko,metrics:xs,rect:jo}),_r+=xs.advance*Za.scale+gt)}if(ha.length!==0){var Xd=_r-gt;Fr=Math.max(Xd,Fr),sO(ha,0,ha.length-1,Gi,eo)}_r=0;var Zd=ae*Dn+eo;ga.lineOffset=Math.max(eo,Zn),vr+=Zd,ai=Math.max(Zd,ai),++Ti}var Zh=vr-R1,fv=wS(he),hv=fv.horizontalAlign,Mh=fv.verticalAlign;Cd(m.positionedLines,Gi,hv,Mh,Fr,ai,ae,Zh,$.length),m.top+=-Mh*Zh,m.bottom=m.top+Zh,m.left+=-hv*Fr,m.right=m.left+Fr}function sO(m,y,I,U,$){if(!(!U&&!$))for(var ae=m[I],he=ae.metrics.advance*ae.scale,Oe=(m[I].x+he)*U,rt=y;rt<=I;rt++)m[rt].x-=Oe,m[rt].y+=$}function Cd(m,y,I,U,$,ae,he,Oe,rt){var gt=(y-I)*$,Mt=0;ae!==he?Mt=-Oe*U-R1:Mt=(-U*rt+.5)*he;for(var or=0,_r=m;or<_r.length;or+=1)for(var vr=_r[or],Fr=0,ai=vr.positionedGlyphs;Fr-I/2;){if(he--,he<0)return!1;Oe-=m[he].dist(ae),ae=m[he]}Oe+=m[he].dist(m[he+1]),he++;for(var rt=[],gt=0;OeU;)gt-=rt.shift().angleDelta;if(gt>$)return!1;he++,Oe+=or.dist(_r)}return!0}function IQ(m){for(var y=0,I=0;Igt){var Fr=(gt-rt)/vr,ai=al(or.x,_r.x,Fr),Gi=al(or.y,_r.y,Fr),Ti=new Wd(ai,Gi,_r.angleTo(or),Mt);return Ti._round(),!he||PQ(m,Ti,Oe,he,y)?Ti:void 0}rt+=vr}}function tet(m,y,I,U,$,ae,he,Oe,rt){var gt=RQ(U,ae,he),Mt=DQ(U,$),or=Mt*he,_r=m[0].x===0||m[0].x===rt||m[0].y===0||m[0].y===rt;y-or=0&&xn=0&&Dn=0&&_r+gt<=Mt){var Zn=new Wd(xn,Dn,bn,Fr);Zn._round(),(!U||PQ(m,Zn,ae,U,$))&&vr.push(Zn)}}or+=Ti}return!Oe&&!vr.length&&!he&&(vr=FQ(m,or/2,I,U,$,ae,he,!0,rt)),vr}function zQ(m,y,I,U,$){for(var ae=[],he=0;he=U&&or.x>=U)&&(Mt.x>=U?Mt=new u(U,Mt.y+(or.y-Mt.y)*((U-Mt.x)/(or.x-Mt.x)))._round():or.x>=U&&(or=new u(U,Mt.y+(or.y-Mt.y)*((U-Mt.x)/(or.x-Mt.x)))._round()),!(Mt.y>=$&&or.y>=$)&&(Mt.y>=$?Mt=new u(Mt.x+(or.x-Mt.x)*(($-Mt.y)/(or.y-Mt.y)),$)._round():or.y>=$&&(or=new u(Mt.x+(or.x-Mt.x)*(($-Mt.y)/(or.y-Mt.y)),$)._round()),(!rt||!Mt.equals(rt[rt.length-1]))&&(rt=[Mt],ae.push(rt)),rt.push(or)))))}return ae}var Hw=Gc;function OQ(m,y,I,U){var $=[],ae=m.image,he=ae.pixelRatio,Oe=ae.paddedRect.w-2*Hw,rt=ae.paddedRect.h-2*Hw,gt=m.right-m.left,Mt=m.bottom-m.top,or=ae.stretchX||[[0,Oe]],_r=ae.stretchY||[[0,rt]],vr=function(Ll,_l){return Ll+_l[1]-_l[0]},Fr=or.reduce(vr,0),ai=_r.reduce(vr,0),Gi=Oe-Fr,Ti=rt-ai,bn=0,rn=Fr,xn=0,Dn=ai,Zn=0,ga=Gi,ha=0,eo=Ti;if(ae.content&&U){var za=ae.content;bn=Yk(or,0,za[0]),xn=Yk(_r,0,za[1]),rn=Yk(or,za[0],za[2]),Dn=Yk(_r,za[1],za[3]),Zn=za[0]-bn,ha=za[1]-xn,ga=za[2]-za[0]-rn,eo=za[3]-za[1]-Dn}var Za=function(Ll,_l,Qu,gc){var Af=Kk(Ll.stretch-bn,rn,gt,m.left),Df=Jk(Ll.fixed-Zn,ga,Ll.stretch,Fr),Xh=Kk(_l.stretch-xn,Dn,Mt,m.top),ch=Jk(_l.fixed-ha,eo,_l.stretch,ai),Xd=Kk(Qu.stretch-bn,rn,gt,m.left),Zd=Jk(Qu.fixed-Zn,ga,Qu.stretch,Fr),Zh=Kk(gc.stretch-xn,Dn,Mt,m.top),fv=Jk(gc.fixed-ha,eo,gc.stretch,ai),hv=new u(Af,Xh),Mh=new u(Xd,Xh),dv=new u(Xd,Zh),yp=new u(Af,Zh),py=new u(Df/he,ch/he),z1=new u(Zd/he,fv/he),O1=y*Math.PI/180;if(O1){var q1=Math.sin(O1),$w=Math.cos(O1),y0=[$w,-q1,q1,$w];hv._matMult(y0),Mh._matMult(y0),yp._matMult(y0),dv._matMult(y0)}var i6=Ll.stretch+Ll.fixed,pO=Qu.stretch+Qu.fixed,n6=_l.stretch+_l.fixed,gO=gc.stretch+gc.fixed,Hp={x:ae.paddedRect.x+Hw+i6,y:ae.paddedRect.y+Hw+n6,w:pO-i6,h:gO-n6},Qw=ga/he/gt,a6=eo/he/Mt;return{tl:hv,tr:Mh,bl:yp,br:dv,tex:Hp,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:py,pixelOffsetBR:z1,minFontScaleX:Qw,minFontScaleY:a6,isSDF:I}};if(!U||!ae.stretchX&&!ae.stretchY)$.push(Za({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:Oe+1},{fixed:0,stretch:rt+1}));else for(var Ko=qQ(or,Gi,Fr),to=qQ(_r,Ti,ai),ao=0;ao0&&(Fr=Math.max(10,Fr),this.circleDiameter=Fr)}else{var ai=he.top*Oe-rt,Gi=he.bottom*Oe+rt,Ti=he.left*Oe-rt,bn=he.right*Oe+rt,rn=he.collisionPadding;if(rn&&(Ti-=rn[0]*Oe,ai-=rn[1]*Oe,bn+=rn[2]*Oe,Gi+=rn[3]*Oe),Mt){var xn=new u(Ti,ai),Dn=new u(bn,ai),Zn=new u(Ti,Gi),ga=new u(bn,Gi),ha=Mt*Math.PI/180;xn._rotate(ha),Dn._rotate(ha),Zn._rotate(ha),ga._rotate(ha),Ti=Math.min(xn.x,Dn.x,Zn.x,ga.x),bn=Math.max(xn.x,Dn.x,Zn.x,ga.x),ai=Math.min(xn.y,Dn.y,Zn.y,ga.y),Gi=Math.max(xn.y,Dn.y,Zn.y,ga.y)}y.emplaceBack(I.x,I.y,Ti,ai,bn,Gi,U,$,ae)}this.boxEndIndex=y.length},jw=function(y,I){if(y===void 0&&(y=[]),I===void 0&&(I=iet),this.data=y,this.length=this.data.length,this.compare=I,this.length>0)for(var U=(this.length>>1)-1;U>=0;U--)this._down(U)};jw.prototype.push=function(y){this.data.push(y),this.length++,this._up(this.length-1)},jw.prototype.pop=function(){if(this.length!==0){var y=this.data[0],I=this.data.pop();return this.length--,this.length>0&&(this.data[0]=I,this._down(0)),y}},jw.prototype.peek=function(){return this.data[0]},jw.prototype._up=function(y){for(var I=this,U=I.data,$=I.compare,ae=U[y];y>0;){var he=y-1>>1,Oe=U[he];if($(ae,Oe)>=0)break;U[y]=Oe,y=he}U[y]=ae},jw.prototype._down=function(y){for(var I=this,U=I.data,$=I.compare,ae=this.length>>1,he=U[y];y=0)break;U[y]=rt,y=Oe}U[y]=he};function iet(m,y){return my?1:0}function net(m,y,I){y===void 0&&(y=1),I===void 0&&(I=!1);for(var U=1/0,$=1/0,ae=-1/0,he=-1/0,Oe=m[0],rt=0;rtae)&&(ae=gt.x),(!rt||gt.y>he)&&(he=gt.y)}var Mt=ae-U,or=he-$,_r=Math.min(Mt,or),vr=_r/2,Fr=new jw([],aet);if(_r===0)return new u(U,$);for(var ai=U;aiTi.d||!Ti.d)&&(Ti=rn,I&&console.log("found best %d after %d probes",Math.round(1e4*rn.d)/1e4,bn)),!(rn.max-Ti.d<=y)&&(vr=rn.h/2,Fr.push(new Ww(rn.p.x-vr,rn.p.y-vr,vr,m)),Fr.push(new Ww(rn.p.x+vr,rn.p.y-vr,vr,m)),Fr.push(new Ww(rn.p.x-vr,rn.p.y+vr,vr,m)),Fr.push(new Ww(rn.p.x+vr,rn.p.y+vr,vr,m)),bn+=4)}return I&&(console.log("num probes: "+bn),console.log("best distance: "+Ti.d)),Ti.p}function aet(m,y){return y.max-m.max}function Ww(m,y,I,U){this.p=new u(m,y),this.h=I,this.d=oet(this.p,U),this.max=this.d+this.h*Math.SQRT2}function oet(m,y){for(var I=!1,U=1/0,$=0;$m.y!=Mt.y>m.y&&m.x<(Mt.x-gt.x)*(m.y-gt.y)/(Mt.y-gt.y)+gt.x&&(I=!I),U=Math.min(U,cg(m,gt,Mt))}return(I?1:-1)*Math.sqrt(U)}function set(m){for(var y=0,I=0,U=0,$=m[0],ae=0,he=$.length,Oe=he-1;ae=Ci||y0.y<0||y0.y>=Ci||fet(m,y0,$w,I,U,$,to,m.layers[0],m.collisionBoxArray,y.index,y.sourceLayerIndex,m.index,Ti,Dn,ha,rt,rn,Zn,eo,vr,y,ae,gt,Mt,he)};if(za==="line")for(var xs=0,jo=zQ(y.geometry,0,0,Ci,Ci);xs1){var Xh=eet(Df,ga,I.vertical||Fr,U,ai,bn);Xh&&ao(Df,Xh)}}else if(y.type==="Polygon")for(var ch=0,Xd=Fw(y.geometry,0);chD1&&re(m.layerIds[0]+': Value for "text-size" is >= '+TS+'. Reduce your "text-size".')):Gi.kind==="composite"&&(Ti=[kd*vr.compositeTextSizes[0].evaluate(he,{},Fr),kd*vr.compositeTextSizes[1].evaluate(he,{},Fr)],(Ti[0]>D1||Ti[1]>D1)&&re(m.layerIds[0]+': Value for "text-size" is >= '+TS+'. Reduce your "text-size".')),m.addSymbols(m.text,ai,Ti,Oe,ae,he,gt,y,rt.lineStartIndex,rt.lineLength,_r,Fr);for(var bn=0,rn=Mt;bnD1&&re(m.layerIds[0]+': Value for "icon-size" is >= '+TS+'. Reduce your "icon-size".')):hv.kind==="composite"&&(Mh=[kd*Dn.compositeIconSizes[0].evaluate(xn,{},ga),kd*Dn.compositeIconSizes[1].evaluate(xn,{},ga)],(Mh[0]>D1||Mh[1]>D1)&&re(m.layerIds[0]+': Value for "icon-size" is >= '+TS+'. Reduce your "icon-size".')),m.addSymbols(m.icon,Zh,Mh,rn,bn,xn,!1,y,za.lineStartIndex,za.lineLength,-1,ga),kl=m.icon.placedSymbolArray.length-1,fv&&(jo=fv.length*4,m.addSymbols(m.icon,fv,Mh,rn,bn,xn,uv.vertical,y,za.lineStartIndex,za.lineLength,-1,ga),Ll=m.icon.placedSymbolArray.length-1)}for(var dv in U.horizontal){var yp=U.horizontal[dv];if(!Za){Qu=K(yp.text);var py=Oe.layout.get("text-rotate").evaluate(xn,{},ga);Za=new $k(rt,y,gt,Mt,or,yp,_r,vr,Fr,py)}var z1=yp.positionedLines.length===1;if(Cl+=NQ(m,y,yp,ae,Oe,Fr,xn,ai,za,U.vertical?uv.horizontal:uv.horizontalOnly,z1?Object.keys(U.horizontal):[dv],_l,kl,Dn,ga),z1)break}U.vertical&&(Iu+=NQ(m,y,U.vertical,ae,Oe,Fr,xn,ai,za,uv.vertical,["vertical"],_l,Ll,Dn,ga));var O1=Za?Za.boxStartIndex:m.collisionBoxArray.length,q1=Za?Za.boxEndIndex:m.collisionBoxArray.length,$w=to?to.boxStartIndex:m.collisionBoxArray.length,y0=to?to.boxEndIndex:m.collisionBoxArray.length,i6=Ko?Ko.boxStartIndex:m.collisionBoxArray.length,pO=Ko?Ko.boxEndIndex:m.collisionBoxArray.length,n6=ao?ao.boxStartIndex:m.collisionBoxArray.length,gO=ao?ao.boxEndIndex:m.collisionBoxArray.length,Hp=-1,Qw=function(MS,iee){return MS&&MS.circleDiameter?Math.max(MS.circleDiameter,iee):iee};Hp=Qw(Za,Hp),Hp=Qw(to,Hp),Hp=Qw(Ko,Hp),Hp=Qw(ao,Hp);var a6=Hp>-1?1:0;a6&&(Hp*=ha/An),m.glyphOffsetArray.length>=Pu.MAX_GLYPHS&&re("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),xn.sortKey!==void 0&&m.addToSortKeyRanges(m.symbolInstances.length,xn.sortKey),m.symbolInstances.emplaceBack(y.x,y.y,_l.right>=0?_l.right:-1,_l.center>=0?_l.center:-1,_l.left>=0?_l.left:-1,_l.vertical||-1,kl,Ll,Qu,O1,q1,$w,y0,i6,pO,n6,gO,gt,Cl,Iu,xs,jo,a6,0,_r,gc,Af,Hp)}function het(m,y,I,U){var $=m.compareText;if(!(y in $))$[y]=[];else for(var ae=$[y],he=ae.length-1;he>=0;he--)if(U.dist(ae[he])0)&&(he.value.kind!=="constant"||he.value.value.length>0),Mt=rt.value.kind!=="constant"||!!rt.value.value||Object.keys(rt.parameters).length>0,or=ae.get("symbol-sort-key");if(this.features=[],!(!gt&&!Mt)){for(var _r=I.iconDependencies,vr=I.glyphDependencies,Fr=I.availableImages,ai=new Gn(this.zoom),Gi=0,Ti=y;Gi=0;for(var Iu=0,kl=eo.sections;Iu=0;rt--)he[rt]={x:I[rt].x,y:I[rt].y,tileUnitDistanceFromAnchor:ae},rt>0&&(ae+=I[rt-1].dist(I[rt]));for(var gt=0;gt0},Pu.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Pu.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Pu.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Pu.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Pu.prototype.addIndicesForPlacedSymbol=function(y,I){for(var U=y.placedSymbolArray.get(I),$=U.vertexStartIndex+U.numGlyphs*4,ae=U.vertexStartIndex;ae<$;ae+=4)y.indexArray.emplaceBack(ae,ae+1,ae+2),y.indexArray.emplaceBack(ae+1,ae+2,ae+3)},Pu.prototype.getSortedSymbolIndexes=function(y){if(this.sortedAngle===y&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var I=Math.sin(y),U=Math.cos(y),$=[],ae=[],he=[],Oe=0;Oe1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(y),this.sortedAngle=y,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var U=0,$=this.symbolInstanceIndexes;U<$.length;U+=1){var ae=$[U],he=this.symbolInstances.get(ae);this.featureSortOrder.push(he.featureIndex),[he.rightJustifiedTextSymbolIndex,he.centerJustifiedTextSymbolIndex,he.leftJustifiedTextSymbolIndex].forEach(function(Oe,rt,gt){Oe>=0&>.indexOf(Oe)===rt&&I.addIndicesForPlacedSymbol(I.text,Oe)}),he.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,he.verticalPlacedTextSymbolIndex),he.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.placedIconSymbolIndex),he.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},X("SymbolBucket",Pu,{omit:["layers","collisionBoxArray","features","compareText"]}),Pu.MAX_GLYPHS=65535,Pu.addDynamicAttributes=cO;function get(m,y){return y.replace(/{([^{}]+)}/g,function(I,U){return U in m?String(m[U]):""})}var met=new Br({"symbol-placement":new Ee(Fn.layout_symbol["symbol-placement"]),"symbol-spacing":new Ee(Fn.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ee(Fn.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new xt(Fn.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ee(Fn.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ee(Fn.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ee(Fn.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ee(Fn.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ee(Fn.layout_symbol["icon-rotation-alignment"]),"icon-size":new xt(Fn.layout_symbol["icon-size"]),"icon-text-fit":new Ee(Fn.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ee(Fn.layout_symbol["icon-text-fit-padding"]),"icon-image":new xt(Fn.layout_symbol["icon-image"]),"icon-rotate":new xt(Fn.layout_symbol["icon-rotate"]),"icon-padding":new Ee(Fn.layout_symbol["icon-padding"]),"icon-keep-upright":new Ee(Fn.layout_symbol["icon-keep-upright"]),"icon-offset":new xt(Fn.layout_symbol["icon-offset"]),"icon-anchor":new xt(Fn.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ee(Fn.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ee(Fn.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ee(Fn.layout_symbol["text-rotation-alignment"]),"text-field":new xt(Fn.layout_symbol["text-field"]),"text-font":new xt(Fn.layout_symbol["text-font"]),"text-size":new xt(Fn.layout_symbol["text-size"]),"text-max-width":new xt(Fn.layout_symbol["text-max-width"]),"text-line-height":new Ee(Fn.layout_symbol["text-line-height"]),"text-letter-spacing":new xt(Fn.layout_symbol["text-letter-spacing"]),"text-justify":new xt(Fn.layout_symbol["text-justify"]),"text-radial-offset":new xt(Fn.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ee(Fn.layout_symbol["text-variable-anchor"]),"text-anchor":new xt(Fn.layout_symbol["text-anchor"]),"text-max-angle":new Ee(Fn.layout_symbol["text-max-angle"]),"text-writing-mode":new Ee(Fn.layout_symbol["text-writing-mode"]),"text-rotate":new xt(Fn.layout_symbol["text-rotate"]),"text-padding":new Ee(Fn.layout_symbol["text-padding"]),"text-keep-upright":new Ee(Fn.layout_symbol["text-keep-upright"]),"text-transform":new xt(Fn.layout_symbol["text-transform"]),"text-offset":new xt(Fn.layout_symbol["text-offset"]),"text-allow-overlap":new Ee(Fn.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ee(Fn.layout_symbol["text-ignore-placement"]),"text-optional":new Ee(Fn.layout_symbol["text-optional"])}),yet=new Br({"icon-opacity":new xt(Fn.paint_symbol["icon-opacity"]),"icon-color":new xt(Fn.paint_symbol["icon-color"]),"icon-halo-color":new xt(Fn.paint_symbol["icon-halo-color"]),"icon-halo-width":new xt(Fn.paint_symbol["icon-halo-width"]),"icon-halo-blur":new xt(Fn.paint_symbol["icon-halo-blur"]),"icon-translate":new Ee(Fn.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ee(Fn.paint_symbol["icon-translate-anchor"]),"text-opacity":new xt(Fn.paint_symbol["text-opacity"]),"text-color":new xt(Fn.paint_symbol["text-color"],{runtimeType:ql,getOverride:function(m){return m.textColor},hasOverride:function(m){return!!m.textColor}}),"text-halo-color":new xt(Fn.paint_symbol["text-halo-color"]),"text-halo-width":new xt(Fn.paint_symbol["text-halo-width"]),"text-halo-blur":new xt(Fn.paint_symbol["text-halo-blur"]),"text-translate":new Ee(Fn.paint_symbol["text-translate"]),"text-translate-anchor":new Ee(Fn.paint_symbol["text-translate-anchor"])}),fO={paint:yet,layout:met},Yw=function(y){this.type=y.property.overrides?y.property.overrides.runtimeType:ac,this.defaultValue=y};Yw.prototype.evaluate=function(y){if(y.formattedSection){var I=this.defaultValue.property.overrides;if(I&&I.hasOverride(y.formattedSection))return I.getOverride(y.formattedSection)}return y.feature&&y.featureState?this.defaultValue.evaluate(y.feature,y.featureState):this.defaultValue.property.specification.default},Yw.prototype.eachChild=function(y){if(!this.defaultValue.isConstant()){var I=this.defaultValue.value;y(I._styleExpression.expression)}},Yw.prototype.outputDefined=function(){return!1},Yw.prototype.serialize=function(){return null},X("FormatSectionOverride",Yw,{omit:["defaultValue"]});var _et=function(m){function y(I){m.call(this,I,fO)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.recalculate=function(U,$){if(m.prototype.recalculate.call(this,U,$),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var ae=this.layout.get("text-writing-mode");if(ae){for(var he=[],Oe=0,rt=ae;Oe",targetMapId:$,sourceMapId:he.mapId})}}},Kw.prototype.receive=function(y){var I=y.data,U=I.id;if(U&&!(I.targetMapId&&this.mapId!==I.targetMapId))if(I.type===""){delete this.tasks[U];var $=this.cancelCallbacks[U];delete this.cancelCallbacks[U],$&&$()}else ke()||I.mustQueue?(this.tasks[U]=I,this.taskQueue.push(U),this.invoker.trigger()):this.processTask(U,I)},Kw.prototype.process=function(){if(this.taskQueue.length){var y=this.taskQueue.shift(),I=this.tasks[y];delete this.tasks[y],this.taskQueue.length&&this.invoker.trigger(),I&&this.processTask(y,I)}},Kw.prototype.processTask=function(y,I){var U=this;if(I.type===""){var $=this.callbacks[y];delete this.callbacks[y],$&&(I.error?$(Ye(I.error)):$(null,Ye(I.data)))}else{var ae=!1,he=Se(this.globalScope)?void 0:[],Oe=I.hasCallback?function(_r,vr){ae=!0,delete U.cancelCallbacks[y],U.target.postMessage({id:y,type:"",sourceMapId:U.mapId,error:_r?He(_r):null,data:He(vr,he)},he)}:function(_r){ae=!0},rt=null,gt=Ye(I.data);if(this.parent[I.type])rt=this.parent[I.type](I.sourceMapId,gt,Oe);else if(this.parent.getWorkerSource){var Mt=I.type.split("."),or=this.parent.getWorkerSource(I.sourceMapId,Mt[0],gt.source);rt=or[Mt[1]](gt,Oe)}else Oe(new Error("Could not find function "+I.type));!ae&&rt&&rt.cancel&&(this.cancelCallbacks[y]=rt.cancel)}},Kw.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function Pet(m,y,I){y=Math.pow(2,I)-y-1;var U=WQ(m*256,y*256,I),$=WQ((m+1)*256,(y+1)*256,I);return U[0]+","+U[1]+","+$[0]+","+$[1]}function WQ(m,y,I){var U=2*Math.PI*6378137/256/Math.pow(2,I),$=m*U-2*Math.PI*6378137/2,ae=y*U-2*Math.PI*6378137/2;return[$,ae]}var lh=function(y,I){y&&(I?this.setSouthWest(y).setNorthEast(I):y.length===4?this.setSouthWest([y[0],y[1]]).setNorthEast([y[2],y[3]]):this.setSouthWest(y[0]).setNorthEast(y[1]))};lh.prototype.setNorthEast=function(y){return this._ne=y instanceof Hc?new Hc(y.lng,y.lat):Hc.convert(y),this},lh.prototype.setSouthWest=function(y){return this._sw=y instanceof Hc?new Hc(y.lng,y.lat):Hc.convert(y),this},lh.prototype.extend=function(y){var I=this._sw,U=this._ne,$,ae;if(y instanceof Hc)$=y,ae=y;else if(y instanceof lh){if($=y._sw,ae=y._ne,!$||!ae)return this}else{if(Array.isArray(y))if(y.length===4||y.every(Array.isArray)){var he=y;return this.extend(lh.convert(he))}else{var Oe=y;return this.extend(Hc.convert(Oe))}return this}return!I&&!U?(this._sw=new Hc($.lng,$.lat),this._ne=new Hc(ae.lng,ae.lat)):(I.lng=Math.min($.lng,I.lng),I.lat=Math.min($.lat,I.lat),U.lng=Math.max(ae.lng,U.lng),U.lat=Math.max(ae.lat,U.lat)),this},lh.prototype.getCenter=function(){return new Hc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},lh.prototype.getSouthWest=function(){return this._sw},lh.prototype.getNorthEast=function(){return this._ne},lh.prototype.getNorthWest=function(){return new Hc(this.getWest(),this.getNorth())},lh.prototype.getSouthEast=function(){return new Hc(this.getEast(),this.getSouth())},lh.prototype.getWest=function(){return this._sw.lng},lh.prototype.getSouth=function(){return this._sw.lat},lh.prototype.getEast=function(){return this._ne.lng},lh.prototype.getNorth=function(){return this._ne.lat},lh.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},lh.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},lh.prototype.isEmpty=function(){return!(this._sw&&this._ne)},lh.prototype.contains=function(y){var I=Hc.convert(y),U=I.lng,$=I.lat,ae=this._sw.lat<=$&&$<=this._ne.lat,he=this._sw.lng<=U&&U<=this._ne.lng;return this._sw.lng>this._ne.lng&&(he=this._sw.lng>=U&&U>=this._ne.lng),ae&&he},lh.convert=function(y){return!y||y instanceof lh?y:new lh(y)};var XQ=63710088e-1,Hc=function(y,I){if(isNaN(y)||isNaN(I))throw new Error("Invalid LngLat object: ("+y+", "+I+")");if(this.lng=+y,this.lat=+I,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Hc.prototype.wrap=function(){return new Hc(C(this.lng,-180,180),this.lat)},Hc.prototype.toArray=function(){return[this.lng,this.lat]},Hc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Hc.prototype.distanceTo=function(y){var I=Math.PI/180,U=this.lat*I,$=y.lat*I,ae=Math.sin(U)*Math.sin($)+Math.cos(U)*Math.cos($)*Math.cos((y.lng-this.lng)*I),he=XQ*Math.acos(Math.min(ae,1));return he},Hc.prototype.toBounds=function(y){y===void 0&&(y=0);var I=40075017,U=360*y/I,$=U/Math.cos(Math.PI/180*this.lat);return new lh(new Hc(this.lng-$,this.lat-U),new Hc(this.lng+$,this.lat+U))},Hc.convert=function(y){if(y instanceof Hc)return y;if(Array.isArray(y)&&(y.length===2||y.length===3))return new Hc(Number(y[0]),Number(y[1]));if(!Array.isArray(y)&&typeof y=="object"&&y!==null)return new Hc(Number("lng"in y?y.lng:y.lon),Number(y.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var ZQ=2*Math.PI*XQ;function YQ(m){return ZQ*Math.cos(m*Math.PI/180)}function KQ(m){return(180+m)/360}function JQ(m){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+m*Math.PI/360)))/360}function $Q(m,y){return m/YQ(y)}function Iet(m){return m*360-180}function dO(m){var y=180-m*360;return 360/Math.PI*Math.atan(Math.exp(y*Math.PI/180))-90}function Ret(m,y){return m*YQ(dO(y))}function Det(m){return 1/Math.cos(m*Math.PI/180)}var ib=function(y,I,U){U===void 0&&(U=0),this.x=+y,this.y=+I,this.z=+U};ib.fromLngLat=function(y,I){I===void 0&&(I=0);var U=Hc.convert(y);return new ib(KQ(U.lng),JQ(U.lat),$Q(I,U.lat))},ib.prototype.toLngLat=function(){return new Hc(Iet(this.x),dO(this.y))},ib.prototype.toAltitude=function(){return Ret(this.z,this.y)},ib.prototype.meterInMercatorCoordinateUnits=function(){return 1/ZQ*Det(dO(this.y))};var nb=function(y,I,U){this.z=y,this.x=I,this.y=U,this.key=SS(0,y,y,I,U)};nb.prototype.equals=function(y){return this.z===y.z&&this.x===y.x&&this.y===y.y},nb.prototype.url=function(y,I){var U=Pet(this.x,this.y,this.z),$=Fet(this.z,this.x,this.y);return y[(this.x+this.y)%y.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(I==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",$).replace("{bbox-epsg-3857}",U)},nb.prototype.getTilePoint=function(y){var I=Math.pow(2,this.z);return new u((y.x*I-this.x)*Ci,(y.y*I-this.y)*Ci)},nb.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var QQ=function(y,I){this.wrap=y,this.canonical=I,this.key=SS(y,I.z,I.z,I.x,I.y)},uh=function(y,I,U,$,ae){this.overscaledZ=y,this.wrap=I,this.canonical=new nb(U,+$,+ae),this.key=SS(I,y,U,$,ae)};uh.prototype.equals=function(y){return this.overscaledZ===y.overscaledZ&&this.wrap===y.wrap&&this.canonical.equals(y.canonical)},uh.prototype.scaledTo=function(y){var I=this.canonical.z-y;return y>this.canonical.z?new uh(y,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new uh(y,this.wrap,y,this.canonical.x>>I,this.canonical.y>>I)},uh.prototype.calculateScaledKey=function(y,I){var U=this.canonical.z-y;return y>this.canonical.z?SS(this.wrap*+I,y,this.canonical.z,this.canonical.x,this.canonical.y):SS(this.wrap*+I,y,y,this.canonical.x>>U,this.canonical.y>>U)},uh.prototype.isChildOf=function(y){if(y.wrap!==this.wrap)return!1;var I=this.canonical.z-y.canonical.z;return y.overscaledZ===0||y.overscaledZ>I&&y.canonical.y===this.canonical.y>>I},uh.prototype.children=function(y){if(this.overscaledZ>=y)return[new uh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var I=this.canonical.z+1,U=this.canonical.x*2,$=this.canonical.y*2;return[new uh(I,this.wrap,I,U,$),new uh(I,this.wrap,I,U+1,$),new uh(I,this.wrap,I,U,$+1),new uh(I,this.wrap,I,U+1,$+1)]},uh.prototype.isLessThan=function(y){return this.wrapy.wrap?!1:this.overscaledZy.overscaledZ?!1:this.canonical.xy.canonical.x?!1:this.canonical.y0;ae--)$=1<=this.dim+1||I<-1||I>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(I+1)*this.stride+(y+1)},dy.prototype._unpackMapbox=function(y,I,U){return(y*256*256+I*256+U)/10-1e4},dy.prototype._unpackTerrarium=function(y,I,U){return y*256+I+U/256-32768},dy.prototype.getPixels=function(){return new wh({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},dy.prototype.backfillBorder=function(y,I,U){if(this.dim!==y.dim)throw new Error("dem dimension mismatch");var $=I*this.dim,ae=I*this.dim+this.dim,he=U*this.dim,Oe=U*this.dim+this.dim;switch(I){case-1:$=ae-1;break;case 1:ae=$+1;break}switch(U){case-1:he=Oe-1;break;case 1:Oe=he+1;break}for(var rt=-I*this.dim,gt=-U*this.dim,Mt=he;Mt=0&&or[3]>=0&&rt.insert(Oe,or[0],or[1],or[2],or[3])}},vy.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new pg.VectorTile(new Xa(this.rawTileData)).layers,this.sourceLayerCoder=new t6(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},vy.prototype.query=function(y,I,U,$){var ae=this;this.loadVTLayers();for(var he=y.params||{},Oe=Ci/y.tileSize/y.scale,rt=be(he.filter),gt=y.queryGeometry,Mt=y.queryPadding*Oe,or=tee(gt),_r=this.grid.query(or.minX-Mt,or.minY-Mt,or.maxX+Mt,or.maxY+Mt),vr=tee(y.cameraQueryGeometry),Fr=this.grid3D.query(vr.minX-Mt,vr.minY-Mt,vr.maxX+Mt,vr.maxY+Mt,function(Zn,ga,ha,eo){return vp(y.cameraQueryGeometry,Zn-Mt,ga-Mt,ha+Mt,eo+Mt)}),ai=0,Gi=Fr;ai$)ae=!1;else if(!I)ae=!0;else if(this.expirationTime=Ga.maxzoom)&&Ga.visibility!=="none"){h(Wn,this.zoom,ar);var vo=Ji[Ga.id]=Ga.createBucket({index:zi.bucketLayerIDs.length,layers:Wn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ba,sourceID:this.source});vo.populate(la,en,this.tileID.canonical),zi.bucketLayerIDs.push(Wn.map(function(ki){return ki.id}))}}}}var jn,St,Cr,Qr,pi=i.mapObject(en.glyphDependencies,function(ki){return Object.keys(ki).map(Number)});Object.keys(pi).length?Er.send("getGlyphs",{uid:this.uid,stacks:pi},function(ki,_n){jn||(jn=ki,St=_n,En.call(ri))}):St={};var fn=Object.keys(en.iconDependencies);fn.length?Er.send("getImages",{icons:fn,source:this.source,tileID:this.tileID,type:"icons"},function(ki,_n){jn||(jn=ki,Cr=_n,En.call(ri))}):Cr={};var Sn=Object.keys(en.patternDependencies);Sn.length?Er.send("getImages",{icons:Sn,source:this.source,tileID:this.tileID,type:"patterns"},function(ki,_n){jn||(jn=ki,Qr=_n,En.call(ri))}):Qr={},En.call(this);function En(){if(jn)return Zr(jn);if(St&&Cr&&Qr){var ki=new c(St),_n=new i.ImageAtlas(Cr,Qr);for(var ya in Ji){var Jn=Ji[ya];Jn instanceof i.SymbolBucket?(h(Jn.layers,this.zoom,ar),i.performSymbolLayout(Jn,St,ki.positions,Cr,_n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Jn.hasPattern&&(Jn instanceof i.LineBucket||Jn instanceof i.FillBucket||Jn instanceof i.FillExtrusionBucket)&&(h(Jn.layers,this.zoom,ar),Jn.addFeatures(en,this.tileID.canonical,_n.patternPositions))}this.status="done",Zr(null,{buckets:i.values(Ji).filter(function(Ma){return!Ma.isEmpty()}),featureIndex:zi,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ki.image,imageAtlas:_n,glyphMap:this.returnDependencies?St:null,iconMap:this.returnDependencies?Cr:null,glyphPositions:this.returnDependencies?ki.positions:null})}}};function h(Vt,_t,tr){for(var ar=new i.EvaluationParameters(_t),Er=0,Zr=Vt;Er=0!=!!_t&&Vt.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,_=function(_t){this._feature=_t,this.extent=i.EXTENT,this.type=_t.type,this.properties=_t.tags,"id"in _t&&!isNaN(_t.id)&&(this.id=parseInt(_t.id,10))};_.prototype.loadGeometry=function(){if(this._feature.type===1){for(var _t=[],tr=0,ar=this._feature.geometry;tr>31}function ke(Vt,_t){for(var tr=Vt.loadGeometry(),ar=Vt.type,Er=0,Zr=0,ri=tr.length,$r=0;$r>1;Se(Vt,_t,ri,ar,Er,Zr%2),ie(Vt,_t,tr,ar,ri-1,Zr+1),ie(Vt,_t,tr,ri+1,Er,Zr+1)}}function Se(Vt,_t,tr,ar,Er,Zr){for(;Er>ar;){if(Er-ar>600){var ri=Er-ar+1,$r=tr-ar+1,zi=Math.log(ri),Ji=.5*Math.exp(2*zi/3),en=.5*Math.sqrt(zi*Ji*(ri-Ji)/ri)*($r-ri/2<0?-1:1),cn=Math.max(ar,Math.floor(tr-$r*Ji/ri+en)),yn=Math.min(Er,Math.floor(tr+(ri-$r)*Ji/ri+en));Se(Vt,_t,tr,cn,yn,Zr)}var Mn=_t[2*tr+Zr],Ba=ar,la=Er;for(Le(Vt,_t,ar,tr),_t[2*Er+Zr]>Mn&&Le(Vt,_t,ar,Er);BaMn;)la--}_t[2*ar+Zr]===Mn?Le(Vt,_t,ar,la):(la++,Le(Vt,_t,la,Er)),la<=tr&&(ar=la+1),tr<=la&&(Er=la-1)}}function Le(Vt,_t,tr,ar){Ae(Vt,tr,ar),Ae(_t,2*tr,2*ar),Ae(_t,2*tr+1,2*ar+1)}function Ae(Vt,_t,tr){var ar=Vt[_t];Vt[_t]=Vt[tr],Vt[tr]=ar}function De(Vt,_t,tr,ar,Er,Zr,ri){for(var $r=[0,Vt.length-1,0],zi=[],Ji,en;$r.length;){var cn=$r.pop(),yn=$r.pop(),Mn=$r.pop();if(yn-Mn<=ri){for(var Ba=Mn;Ba<=yn;Ba++)Ji=_t[2*Ba],en=_t[2*Ba+1],Ji>=tr&&Ji<=Er&&en>=ar&&en<=Zr&&zi.push(Vt[Ba]);continue}var la=Math.floor((Mn+yn)/2);Ji=_t[2*la],en=_t[2*la+1],Ji>=tr&&Ji<=Er&&en>=ar&&en<=Zr&&zi.push(Vt[la]);var ma=(cn+1)%2;(cn===0?tr<=Ji:ar<=en)&&($r.push(Mn),$r.push(la-1),$r.push(ma)),(cn===0?Er>=Ji:Zr>=en)&&($r.push(la+1),$r.push(yn),$r.push(ma))}return zi}function Pe(Vt,_t,tr,ar,Er,Zr){for(var ri=[0,Vt.length-1,0],$r=[],zi=Er*Er;ri.length;){var Ji=ri.pop(),en=ri.pop(),cn=ri.pop();if(en-cn<=Zr){for(var yn=cn;yn<=en;yn++)ge(_t[2*yn],_t[2*yn+1],tr,ar)<=zi&&$r.push(Vt[yn]);continue}var Mn=Math.floor((cn+en)/2),Ba=_t[2*Mn],la=_t[2*Mn+1];ge(Ba,la,tr,ar)<=zi&&$r.push(Vt[Mn]);var ma=(Ji+1)%2;(Ji===0?tr-Er<=Ba:ar-Er<=la)&&(ri.push(cn),ri.push(Mn-1),ri.push(ma)),(Ji===0?tr+Er>=Ba:ar+Er>=la)&&(ri.push(Mn+1),ri.push(en),ri.push(ma))}return $r}function ge(Vt,_t,tr,ar){var Er=Vt-tr,Zr=_t-ar;return Er*Er+Zr*Zr}var Fe=function(Vt){return Vt[0]},ce=function(Vt){return Vt[1]},Ze=function(_t,tr,ar,Er,Zr){tr===void 0&&(tr=Fe),ar===void 0&&(ar=ce),Er===void 0&&(Er=64),Zr===void 0&&(Zr=Float64Array),this.nodeSize=Er,this.points=_t;for(var ri=_t.length<65536?Uint16Array:Uint32Array,$r=this.ids=new ri(_t.length),zi=this.coords=new Zr(_t.length*2),Ji=0;Ji<_t.length;Ji++)$r[Ji]=Ji,zi[2*Ji]=tr(_t[Ji]),zi[2*Ji+1]=ar(_t[Ji]);ie($r,zi,Er,0,$r.length-1,0)};Ze.prototype.range=function(_t,tr,ar,Er){return De(this.ids,this.coords,_t,tr,ar,Er,this.nodeSize)},Ze.prototype.within=function(_t,tr,ar){return Pe(this.ids,this.coords,_t,tr,ar,this.nodeSize)};var ct={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(Vt){return Vt}},pt=function(_t){this.options=ur(Object.create(ct),_t),this.trees=new Array(this.options.maxZoom+1)};pt.prototype.load=function(_t){var tr=this.options,ar=tr.log,Er=tr.minZoom,Zr=tr.maxZoom,ri=tr.nodeSize;ar&&console.time("total time");var $r="prepare "+_t.length+" points";ar&&console.time($r),this.points=_t;for(var zi=[],Ji=0;Ji<_t.length;Ji++)_t[Ji].geometry&&zi.push(st(_t[Ji],Ji));this.trees[Zr+1]=new Ze(zi,Qe,Et,ri,Float32Array),ar&&console.timeEnd($r);for(var en=Zr;en>=Er;en--){var cn=+Date.now();zi=this._cluster(zi,en),this.trees[en]=new Ze(zi,Qe,Et,ri,Float32Array),ar&&console.log("z%d: %d clusters in %dms",en,zi.length,+Date.now()-cn)}return ar&&console.timeEnd("total time"),this},pt.prototype.getClusters=function(_t,tr){var ar=((_t[0]+180)%360+360)%360-180,Er=Math.max(-90,Math.min(90,_t[1])),Zr=_t[2]===180?180:((_t[2]+180)%360+360)%360-180,ri=Math.max(-90,Math.min(90,_t[3]));if(_t[2]-_t[0]>=360)ar=-180,Zr=180;else if(ar>Zr){var $r=this.getClusters([ar,Er,180,ri],tr),zi=this.getClusters([-180,Er,Zr,ri],tr);return $r.concat(zi)}for(var Ji=this.trees[this._limitZoom(tr)],en=Ji.range(Nt(ar),$t(ri),Nt(Zr),$t(Er)),cn=[],yn=0,Mn=en;yntr&&(la+=Wo.numPoints||1)}if(la>=zi){for(var da=cn.x*Ba,Wn=cn.y*Ba,Ga=$r&&Ba>1?this._map(cn,!0):null,vo=(en<<5)+(tr+1)+this.points.length,jn=0,St=Mn;jn1)for(var fn=0,Sn=Mn;fn>5},pt.prototype._getOriginZoom=function(_t){return(_t-this.points.length)%32},pt.prototype._map=function(_t,tr){if(_t.numPoints)return tr?ur({},_t.properties):_t.properties;var ar=this.points[_t.index].properties,Er=this.options.map(ar);return tr&&Er===ar?ur({},Er):Er};function Wt(Vt,_t,tr,ar,Er){return{x:Vt,y:_t,zoom:1/0,id:tr,parentId:-1,numPoints:ar,properties:Er}}function st(Vt,_t){var tr=Vt.geometry.coordinates,ar=tr[0],Er=tr[1];return{x:Nt(ar),y:$t(Er),zoom:1/0,index:_t,parentId:-1}}function lt(Vt){return{type:"Feature",id:Vt.id,properties:Gt(Vt),geometry:{type:"Point",coordinates:[sr(Vt.x),wr(Vt.y)]}}}function Gt(Vt){var _t=Vt.numPoints,tr=_t>=1e4?Math.round(_t/1e3)+"k":_t>=1e3?Math.round(_t/100)/10+"k":_t;return ur(ur({},Vt.properties),{cluster:!0,cluster_id:Vt.id,point_count:_t,point_count_abbreviated:tr})}function Nt(Vt){return Vt/360+.5}function $t(Vt){var _t=Math.sin(Vt*Math.PI/180),tr=.5-.25*Math.log((1+_t)/(1-_t))/Math.PI;return tr<0?0:tr>1?1:tr}function sr(Vt){return(Vt-.5)*360}function wr(Vt){var _t=(180-Vt*360)*Math.PI/180;return 360*Math.atan(Math.exp(_t))/Math.PI-90}function ur(Vt,_t){for(var tr in _t)Vt[tr]=_t[tr];return Vt}function Qe(Vt){return Vt.x}function Et(Vt){return Vt.y}function er(Vt,_t,tr,ar){for(var Er=ar,Zr=tr-_t>>1,ri=tr-_t,$r,zi=Vt[_t],Ji=Vt[_t+1],en=Vt[tr],cn=Vt[tr+1],yn=_t+3;ynEr)$r=yn,Er=Mn;else if(Mn===Er){var Ba=Math.abs(yn-Zr);Baar&&($r-_t>3&&er(Vt,_t,$r,ar),Vt[$r+2]=Er,tr-$r>3&&er(Vt,$r,tr,ar))}function Ut(Vt,_t,tr,ar,Er,Zr){var ri=Er-tr,$r=Zr-ar;if(ri!==0||$r!==0){var zi=((Vt-tr)*ri+(_t-ar)*$r)/(ri*ri+$r*$r);zi>1?(tr=Er,ar=Zr):zi>0&&(tr+=ri*zi,ar+=$r*zi)}return ri=Vt-tr,$r=_t-ar,ri*ri+$r*$r}function Ft(Vt,_t,tr,ar){var Er={id:typeof Vt=="undefined"?null:Vt,type:_t,geometry:tr,tags:ar,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return bt(Er),Er}function bt(Vt){var _t=Vt.geometry,tr=Vt.type;if(tr==="Point"||tr==="MultiPoint"||tr==="LineString")yt(Vt,_t);else if(tr==="Polygon"||tr==="MultiLineString")for(var ar=0;ar<_t.length;ar++)yt(Vt,_t[ar]);else if(tr==="MultiPolygon")for(ar=0;ar<_t.length;ar++)for(var Er=0;Er<_t[ar].length;Er++)yt(Vt,_t[ar][Er])}function yt(Vt,_t){for(var tr=0;tr<_t.length;tr+=3)Vt.minX=Math.min(Vt.minX,_t[tr]),Vt.minY=Math.min(Vt.minY,_t[tr+1]),Vt.maxX=Math.max(Vt.maxX,_t[tr]),Vt.maxY=Math.max(Vt.maxY,_t[tr+1])}function Yt(Vt,_t){var tr=[];if(Vt.type==="FeatureCollection")for(var ar=0;ar0&&(ar?ri+=(Er*Ji-zi*Zr)/2:ri+=Math.sqrt(Math.pow(zi-Er,2)+Math.pow(Ji-Zr,2))),Er=zi,Zr=Ji}var en=_t.length-3;_t[2]=1,er(_t,0,en,tr),_t[en+2]=1,_t.size=Math.abs(ri),_t.start=0,_t.end=_t.size}function ei(Vt,_t,tr,ar){for(var Er=0;Er1?1:tr}function dt(Vt,_t,tr,ar,Er,Zr,ri,$r){if(tr/=_t,ar/=_t,Zr>=tr&&ri=ar)return null;for(var zi=[],Ji=0;Ji=tr&&Ba=ar)continue;var la=[];if(yn==="Point"||yn==="MultiPoint")Ge(cn,la,tr,ar,Er);else if(yn==="LineString")Je(cn,la,tr,ar,Er,!1,$r.lineMetrics);else if(yn==="MultiLineString")$e(cn,la,tr,ar,Er,!1);else if(yn==="Polygon")$e(cn,la,tr,ar,Er,!0);else if(yn==="MultiPolygon")for(var ma=0;ma=tr&&ri<=ar&&(_t.push(Vt[Zr]),_t.push(Vt[Zr+1]),_t.push(Vt[Zr+2]))}}function Je(Vt,_t,tr,ar,Er,Zr,ri){for(var $r=je(Vt),zi=Er===0?Ie:xe,Ji=Vt.start,en,cn,yn=0;yntr&&(cn=zi($r,Mn,Ba,ma,Wa,tr),ri&&($r.start=Ji+en*cn)):Fa>ar?Wo=tr&&(cn=zi($r,Mn,Ba,ma,Wa,tr),da=!0),Wo>ar&&Fa<=ar&&(cn=zi($r,Mn,Ba,ma,Wa,ar),da=!0),!Zr&&da&&(ri&&($r.end=Ji+en*cn),_t.push($r),$r=je(Vt)),ri&&(Ji+=en)}var Wn=Vt.length-3;Mn=Vt[Wn],Ba=Vt[Wn+1],la=Vt[Wn+2],Fa=Er===0?Mn:Ba,Fa>=tr&&Fa<=ar&&wt($r,Mn,Ba,la),Wn=$r.length-3,Zr&&Wn>=3&&($r[Wn]!==$r[0]||$r[Wn+1]!==$r[1])&&wt($r,$r[0],$r[1],$r[2]),$r.length&&_t.push($r)}function je(Vt){var _t=[];return _t.size=Vt.size,_t.start=Vt.start,_t.end=Vt.end,_t}function $e(Vt,_t,tr,ar,Er,Zr){for(var ri=0;riri.maxX&&(ri.maxX=en),cn>ri.maxY&&(ri.maxY=cn)}return ri}function di(Vt,_t,tr,ar){var Er=_t.geometry,Zr=_t.type,ri=[];if(Zr==="Point"||Zr==="MultiPoint")for(var $r=0;$r0&&_t.size<(Er?ri:ar)){tr.numPoints+=_t.length/3;return}for(var $r=[],zi=0;zi<_t.length;zi+=3)(ar===0||_t[zi+2]>ri)&&(tr.numSimplified++,$r.push(_t[zi]),$r.push(_t[zi+1])),tr.numPoints++;Er&&fi($r,Zr),Vt.push($r)}function fi(Vt,_t){for(var tr=0,ar=0,Er=Vt.length,Zr=Er-2;ar0===_t)for(ar=0,Er=Vt.length;ar24)throw new Error("maxZoom should be in the 0-24 range");if(_t.promoteId&&_t.generateId)throw new Error("promoteId and generateId cannot be used together.");var ar=Yt(Vt,_t);this.tiles={},this.tileCoords=[],tr&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",_t.indexMaxZoom,_t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),ar=Ce(ar,_t),ar.length&&this.splitTile(ar,0,0,0),tr&&(ar.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Pn.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Pn.prototype.splitTile=function(Vt,_t,tr,ar,Er,Zr,ri){for(var $r=[Vt,_t,tr,ar],zi=this.options,Ji=zi.debug;$r.length;){ar=$r.pop(),tr=$r.pop(),_t=$r.pop(),Vt=$r.pop();var en=1<<_t,cn=wn(_t,tr,ar),yn=this.tiles[cn];if(!yn&&(Ji>1&&console.time("creation"),yn=this.tiles[cn]=oi(Vt,_t,tr,ar,zi),this.tileCoords.push({z:_t,x:tr,y:ar}),Ji)){Ji>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",_t,tr,ar,yn.numFeatures,yn.numPoints,yn.numSimplified),console.timeEnd("creation"));var Mn="z"+_t;this.stats[Mn]=(this.stats[Mn]||0)+1,this.total++}if(yn.source=Vt,Er){if(_t===zi.maxZoom||_t===Er)continue;var Ba=1<1&&console.time("clipping");var la=.5*zi.buffer/zi.extent,ma=.5-la,Wa=.5+la,Fa=1+la,Wo,da,Wn,Ga,vo,jn;Wo=da=Wn=Ga=null,vo=dt(Vt,en,tr-la,tr+Wa,0,yn.minX,yn.maxX,zi),jn=dt(Vt,en,tr+ma,tr+Fa,0,yn.minX,yn.maxX,zi),Vt=null,vo&&(Wo=dt(vo,en,ar-la,ar+Wa,1,yn.minY,yn.maxY,zi),da=dt(vo,en,ar+ma,ar+Fa,1,yn.minY,yn.maxY,zi),vo=null),jn&&(Wn=dt(jn,en,ar-la,ar+Wa,1,yn.minY,yn.maxY,zi),Ga=dt(jn,en,ar+ma,ar+Fa,1,yn.minY,yn.maxY,zi),jn=null),Ji>1&&console.timeEnd("clipping"),$r.push(Wo||[],_t+1,tr*2,ar*2),$r.push(da||[],_t+1,tr*2,ar*2+1),$r.push(Wn||[],_t+1,tr*2+1,ar*2),$r.push(Ga||[],_t+1,tr*2+1,ar*2+1)}}},Pn.prototype.getTile=function(Vt,_t,tr){var ar=this.options,Er=ar.extent,Zr=ar.debug;if(Vt<0||Vt>24)return null;var ri=1<1&&console.log("drilling down to z%d-%d-%d",Vt,_t,tr);for(var zi=Vt,Ji=_t,en=tr,cn;!cn&&zi>0;)zi--,Ji=Math.floor(Ji/2),en=Math.floor(en/2),cn=this.tiles[wn(zi,Ji,en)];return!cn||!cn.source?null:(Zr>1&&console.log("found parent tile z%d-%d-%d",zi,Ji,en),Zr>1&&console.time("drilling down"),this.splitTile(cn.source,zi,Ji,en,Vt,_t,tr),Zr>1&&console.timeEnd("drilling down"),this.tiles[$r]?ir(this.tiles[$r],Er):null)};function wn(Vt,_t,tr){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function x(Y,D,J){var q,K,de,ne=i.browser.devicePixelRatio>1?"@2x":"",we=i.getJSON(D.transformRequest(D.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(Zt,hr){we=null,de||(de=Zt,q=hr,ft())}),Ue=i.getImage(D.transformRequest(D.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(Zt,hr){Ue=null,de||(de=Zt,K=hr,ft())});function ft(){if(de)J(de);else if(q&&K){var Zt=i.browser.getImageData(K),hr={};for(var qt in q){var Ve=q[qt],et=Ve.width,at=Ve.height,kt=Ve.x,Ot=Ve.y,It=Ve.sdf,Bt=Ve.pixelRatio,Rt=Ve.stretchX,mt=Ve.stretchY,Pt=Ve.content,ht=new i.RGBAImage({width:et,height:at});i.RGBAImage.copy(Zt,ht,{x:kt,y:Ot},{x:0,y:0},{width:et,height:at}),hr[qt]={data:ht,pixelRatio:Bt,sdf:It,stretchX:Rt,stretchY:mt,content:Pt}}J(null,hr)}}return{cancel:function(){we&&(we.cancel(),we=null),Ue&&(Ue.cancel(),Ue=null)}}}function b(Y){var D=Y.userImage;if(D&&D.render){var J=D.render();if(J)return Y.data.replace(new Uint8Array(D.data.buffer)),!0}return!1}var p=1,C=function(Y){function D(){Y.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.isLoaded=function(){return this.loaded},D.prototype.setLoaded=function(q){if(this.loaded!==q&&(this.loaded=q,q)){for(var K=0,de=this.requestors;K=0?1.2:1))}k.prototype.draw=function(Y){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(Y,this.buffer,this.middle);for(var D=this.ctx.getImageData(0,0,this.size,this.size),J=new Uint8ClampedArray(this.size*this.size),q=0;q65535){Zt(new Error("glyphs > 65535 not supported"));return}if(Ve.ranges[at]){Zt(null,{stack:hr,id:qt,glyph:et});return}var kt=Ve.requests[at];kt||(kt=Ve.requests[at]=[],P.loadGlyphRange(hr,at,q.url,q.requestManager,function(Ot,It){if(It){for(var Bt in It)q._doesCharSupportLocalGlyph(+Bt)||(Ve.glyphs[+Bt]=It[+Bt]);Ve.ranges[at]=!0}for(var Rt=0,mt=kt;Rt1&&(ft=D[++Ue]);var hr=Math.abs(Zt-ft.left),qt=Math.abs(Zt-ft.right),Ve=Math.min(hr,qt),et=void 0,at=de/q*(K+1);if(ft.isDash){var kt=K-Math.abs(at);et=Math.sqrt(Ve*Ve+kt*kt)}else et=K-Math.sqrt(Ve*Ve+at*at);this.data[we+Zt]=Math.max(0,Math.min(255,et+128))}},G.prototype.addRegularDash=function(D){for(var J=D.length-1;J>=0;--J){var q=D[J],K=D[J+1];q.zeroLength?D.splice(J,1):K&&K.isDash===q.isDash&&(K.left=q.left,D.splice(J,1))}var de=D[0],ne=D[D.length-1];de.isDash===ne.isDash&&(de.left=ne.left-this.width,ne.right=de.right+this.width);for(var we=this.width*this.nextRow,Ue=0,ft=D[Ue],Zt=0;Zt1&&(ft=D[++Ue]);var hr=Math.abs(Zt-ft.left),qt=Math.abs(Zt-ft.right),Ve=Math.min(hr,qt),et=ft.isDash?Ve:-Ve;this.data[we+Zt]=Math.max(0,Math.min(255,et+128))}},G.prototype.addDash=function(D,J){var q=J?7:0,K=2*q+1;if(this.nextRow+K>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var de=0,ne=0;ne=q.minX&&D.x=q.minY&&D.y0&&(Zt[new i.OverscaledTileID(q.overscaledZ,we,K.z,ne,K.y-1).key]={backfilled:!1},Zt[new i.OverscaledTileID(q.overscaledZ,q.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},Zt[new i.OverscaledTileID(q.overscaledZ,ft,K.z,Ue,K.y-1).key]={backfilled:!1}),K.y+10&&(de.resourceTiming=q._resourceTiming,q._resourceTiming=[]),q.fire(new i.Event("data",de))})},D.prototype.onAdd=function(q){this.map=q,this.load()},D.prototype.setData=function(q){var K=this;return this._data=q,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(de){if(de){K.fire(new i.ErrorEvent(de));return}var ne={dataType:"source",sourceDataType:"content"};K._collectResourceTiming&&K._resourceTiming&&K._resourceTiming.length>0&&(ne.resourceTiming=K._resourceTiming,K._resourceTiming=[]),K.fire(new i.Event("data",ne))}),this},D.prototype.getClusterExpansionZoom=function(q,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:q,source:this.id},K),this},D.prototype.getClusterChildren=function(q,K){return this.actor.send("geojson.getClusterChildren",{clusterId:q,source:this.id},K),this},D.prototype.getClusterLeaves=function(q,K,de,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:q,limit:K,offset:de},ne),this},D.prototype._updateWorkerData=function(q){var K=this;this._loaded=!1;var de=i.extend({},this.workerOptions),ne=this._data;typeof ne=="string"?(de.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ne),i.ResourceType.Source),de.request.collectResourceTiming=this._collectResourceTiming):de.data=JSON.stringify(ne),this.actor.send(this.type+".loadData",de,function(we,Ue){K._removed||Ue&&Ue.abandoned||(K._loaded=!0,Ue&&Ue.resourceTiming&&Ue.resourceTiming[K.id]&&(K._resourceTiming=Ue.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:de.source},null),q(we))})},D.prototype.loaded=function(){return this._loaded},D.prototype.loadTile=function(q,K){var de=this,ne=q.actor?"reloadTile":"loadTile";q.actor=this.actor;var we={type:this.type,uid:q.uid,tileID:q.tileID,zoom:q.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};q.request=this.actor.send(ne,we,function(Ue,ft){return delete q.request,q.unloadVectorData(),q.aborted?K(null):Ue?K(Ue):(q.loadVectorData(ft,de.map.painter,ne==="reloadTile"),K(null))})},D.prototype.abortTile=function(q){q.request&&(q.request.cancel(),delete q.request),q.aborted=!0},D.prototype.unloadTile=function(q){q.unloadVectorData(),this.actor.send("removeTile",{uid:q.uid,type:this.type,source:this.id})},D.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},D.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},D.prototype.hasTransition=function(){return!1},D}(i.Evented),Me=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),ke=function(Y){function D(J,q,K,de){Y.call(this),this.id=J,this.dispatcher=K,this.coordinates=q.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(de),this.options=q}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(q,K){var de=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ne,we){de._loaded=!0,ne?de.fire(new i.ErrorEvent(ne)):we&&(de.image=we,q&&(de.coordinates=q),K&&K(),de._finishLoading())})},D.prototype.loaded=function(){return this._loaded},D.prototype.updateImage=function(q){var K=this;return!this.image||!q.url?this:(this.options.url=q.url,this.load(q.coordinates,function(){K.texture=null}),this)},D.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},D.prototype.onAdd=function(q){this.map=q,this.load()},D.prototype.setCoordinates=function(q){var K=this;this.coordinates=q;var de=q.map(i.MercatorCoordinate.fromLngLat);this.tileID=me(de),this.minzoom=this.maxzoom=this.tileID.z;var ne=de.map(function(we){return K.tileID.getTilePoint(we)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(ne[0].x,ne[0].y,0,0),this._boundsArray.emplaceBack(ne[1].x,ne[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(ne[3].x,ne[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(ne[2].x,ne[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var q=this.map.painter.context,K=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Me.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(q,this.image,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var de in this.tiles){var ne=this.tiles[de];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.loadTile=function(q,K){this.tileID&&this.tileID.equals(q.tileID.canonical)?(this.tiles[String(q.tileID.wrap)]=q,q.buckets={},K(null)):(q.state="errored",K(null))},D.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return!1},D}(i.Evented);function me(Y){for(var D=1/0,J=1/0,q=-1/0,K=-1/0,de=0,ne=Y;deK.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+K.start(0)+" and "+K.end(0)+"-second mark."))):this.video.currentTime=q}},D.prototype.getVideo=function(){return this.video},D.prototype.onAdd=function(q){this.map||(this.map=q,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var q=this.map.painter.context,K=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Me.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE),K.texSubImage2D(K.TEXTURE_2D,0,0,0,K.RGBA,K.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(q,this.video,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var de in this.tiles){var ne=this.tiles[de];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this.video&&!this.video.paused},D}(ke),Se=function(Y){function D(J,q,K,de){Y.call(this,J,q,K,de),q.coordinates?(!Array.isArray(q.coordinates)||q.coordinates.length!==4||q.coordinates.some(function(ne){return!Array.isArray(ne)||ne.length!==2||ne.some(function(we){return typeof we!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "coordinates"'))),q.animate&&typeof q.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),q.canvas?typeof q.canvas!="string"&&!(q.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "canvas"'))),this.options=q,this.animate=q.animate!==void 0?q.animate:!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},D.prototype.getCanvas=function(){return this.canvas},D.prototype.onAdd=function(q){this.map=q,this.load(),this.canvas&&this.animate&&this.play()},D.prototype.onRemove=function(){this.pause()},D.prototype.prepare=function(){var q=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,q=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,q=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var K=this.map.painter.context,de=K.gl;this.boundsBuffer||(this.boundsBuffer=K.createVertexBuffer(this._boundsArray,Me.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(q||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(K,this.canvas,de.RGBA,{premultiply:!0});for(var ne in this.tiles){var we=this.tiles[ne];we.state!=="loaded"&&(we.state="loaded",we.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this._playing},D.prototype._hasInvalidDimensions=function(){for(var q=0,K=[this.canvas.width,this.canvas.height];qthis.max){var we=this._getAndRemoveByKey(this.order[0]);we&&this.onRemove(we)}return this},st.prototype.has=function(D){return D.wrapped().key in this.data},st.prototype.getAndRemove=function(D){return this.has(D)?this._getAndRemoveByKey(D.wrapped().key):null},st.prototype._getAndRemoveByKey=function(D){var J=this.data[D].shift();return J.timeout&&clearTimeout(J.timeout),this.data[D].length===0&&delete this.data[D],this.order.splice(this.order.indexOf(D),1),J.value},st.prototype.getByKey=function(D){var J=this.data[D];return J?J[0].value:null},st.prototype.get=function(D){if(!this.has(D))return null;var J=this.data[D.wrapped().key][0];return J.value},st.prototype.remove=function(D,J){if(!this.has(D))return this;var q=D.wrapped().key,K=J===void 0?0:this.data[q].indexOf(J),de=this.data[q][K];return this.data[q].splice(K,1),de.timeout&&clearTimeout(de.timeout),this.data[q].length===0&&delete this.data[q],this.onRemove(de.value),this.order.splice(this.order.indexOf(q),1),this},st.prototype.setMaxSize=function(D){for(this.max=D;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},st.prototype.filter=function(D){var J=[];for(var q in this.data)for(var K=0,de=this.data[q];K1||(Math.abs(hr)>1&&(Math.abs(hr+Ve)===1?hr+=Ve:Math.abs(hr-Ve)===1&&(hr-=Ve)),!(!Zt.dem||!ft.dem)&&(ft.dem.backfillBorder(Zt.dem,hr,qt),ft.neighboringTiles&&ft.neighboringTiles[et]&&(ft.neighboringTiles[et].backfilled=!0)))}},D.prototype.getTile=function(q){return this.getTileByID(q.key)},D.prototype.getTileByID=function(q){return this._tiles[q]},D.prototype._retainLoadedChildren=function(q,K,de,ne){for(var we in this._tiles){var Ue=this._tiles[we];if(!(ne[we]||!Ue.hasData()||Ue.tileID.overscaledZ<=K||Ue.tileID.overscaledZ>de)){for(var ft=Ue.tileID;Ue&&Ue.tileID.overscaledZ>K+1;){var Zt=Ue.tileID.scaledTo(Ue.tileID.overscaledZ-1);Ue=this._tiles[Zt.key],Ue&&Ue.hasData()&&(ft=Zt)}for(var hr=ft;hr.overscaledZ>K;)if(hr=hr.scaledTo(hr.overscaledZ-1),q[hr.key]){ne[ft.key]=ft;break}}}},D.prototype.findLoadedParent=function(q,K){if(q.key in this._loadedParentTiles){var de=this._loadedParentTiles[q.key];return de&&de.tileID.overscaledZ>=K?de:null}for(var ne=q.overscaledZ-1;ne>=K;ne--){var we=q.scaledTo(ne),Ue=this._getLoadedTile(we);if(Ue)return Ue}},D.prototype._getLoadedTile=function(q){var K=this._tiles[q.key];if(K&&K.hasData())return K;var de=this._cache.getByKey(q.wrapped().key);return de},D.prototype.updateCacheSize=function(q){var K=Math.ceil(q.width/this._source.tileSize)+1,de=Math.ceil(q.height/this._source.tileSize)+1,ne=K*de,we=5,Ue=Math.floor(ne*we),ft=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ue):Ue;this._cache.setMaxSize(ft)},D.prototype.handleWrapJump=function(q){var K=this._prevLng===void 0?q:this._prevLng,de=q-K,ne=de/360,we=Math.round(ne);if(this._prevLng=q,we){var Ue={};for(var ft in this._tiles){var Zt=this._tiles[ft];Zt.tileID=Zt.tileID.unwrapTo(Zt.tileID.wrap+we),Ue[Zt.tileID.key]=Zt}this._tiles=Ue;for(var hr in this._timers)clearTimeout(this._timers[hr]),delete this._timers[hr];for(var qt in this._tiles){var Ve=this._tiles[qt];this._setTileReloadTimer(qt,Ve)}}},D.prototype.update=function(q){var K=this;if(this.transform=q,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(q),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var de;this.used?this._source.tileID?de=q.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Nr){return new i.OverscaledTileID(Nr.canonical.z,Nr.wrap,Nr.canonical.z,Nr.canonical.x,Nr.canonical.y)}):(de=q.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(de=de.filter(function(Nr){return K._source.hasTile(Nr)}))):de=[];var ne=q.coveringZoomLevel(this._source),we=Math.max(ne-D.maxOverzooming,this._source.minzoom),Ue=Math.max(ne+D.maxUnderzooming,this._source.minzoom),ft=this._updateRetainedTiles(de,ne);if(zi(this._source.type)){for(var Zt={},hr={},qt=Object.keys(ft),Ve=0,et=qt;Vethis._source.maxzoom){var It=kt.children(this._source.maxzoom)[0],Bt=this.getTile(It);if(Bt&&Bt.hasData()){de[It.key]=It;continue}}else{var Rt=kt.children(this._source.maxzoom);if(de[Rt[0].key]&&de[Rt[1].key]&&de[Rt[2].key]&&de[Rt[3].key])continue}for(var mt=Ot.wasRequested(),Pt=kt.overscaledZ-1;Pt>=we;--Pt){var ht=kt.scaledTo(Pt);if(ne[ht.key]||(ne[ht.key]=!0,Ot=this.getTile(ht),!Ot&&mt&&(Ot=this._addTile(ht)),Ot&&(de[ht.key]=ht,mt=Ot.wasRequested(),Ot.hasData())))break}}}return de},D.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var q in this._tiles){for(var K=[],de=void 0,ne=this._tiles[q].tileID;ne.overscaledZ>0;){if(ne.key in this._loadedParentTiles){de=this._loadedParentTiles[ne.key];break}K.push(ne.key);var we=ne.scaledTo(ne.overscaledZ-1);if(de=this._getLoadedTile(we),de)break;ne=we}for(var Ue=0,ft=K;Ue0)&&(K.hasData()&&K.state!=="reloading"?this._cache.add(K.tileID,K,K.getExpiryTimeout()):(K.aborted=!0,this._abortTile(K),this._unloadTile(K))))},D.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var q in this._tiles)this._removeTile(q);this._cache.reset()},D.prototype.tilesIn=function(q,K,de){var ne=this,we=[],Ue=this.transform;if(!Ue)return we;for(var ft=de?Ue.getCameraQueryGeometry(q):q,Zt=q.map(function(Pt){return Ue.pointCoordinate(Pt)}),hr=ft.map(function(Pt){return Ue.pointCoordinate(Pt)}),qt=this.getIds(),Ve=1/0,et=1/0,at=-1/0,kt=-1/0,Ot=0,It=hr;Ot=0&&Ri[1].y+Nr>=0){var hi=Zt.map(function(gn){return cr.getTilePoint(gn)}),wi=hr.map(function(gn){return cr.getTilePoint(gn)});we.push({tile:ht,tileID:cr,queryGeometry:hi,cameraQueryGeometry:wi,scale:br})}}},mt=0;mt=i.browser.now())return!0}return!1},D.prototype.setFeatureState=function(q,K,de){q=q||"_geojsonTileLayer",this._state.updateState(q,K,de)},D.prototype.removeFeatureState=function(q,K,de){q=q||"_geojsonTileLayer",this._state.removeFeatureState(q,K,de)},D.prototype.getFeatureState=function(q,K){return q=q||"_geojsonTileLayer",this._state.getState(q,K)},D.prototype.setDependencies=function(q,K,de){var ne=this._tiles[q];ne&&ne.setDependencies(K,de)},D.prototype.reloadTilesForDependencies=function(q,K){for(var de in this._tiles){var ne=this._tiles[de];ne.hasDependency(q,K)&&this._reloadTile(de,"reloading")}this._cache.filter(function(we){return!we.hasDependency(q,K)})},D}(i.Evented);ri.maxOverzooming=10,ri.maxUnderzooming=3;function $r(Y,D){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),q=Math.abs(D.wrap*2)-+(D.wrap<0);return Y.overscaledZ-D.overscaledZ||q-J||D.canonical.y-Y.canonical.y||D.canonical.x-Y.canonical.x}function zi(Y){return Y==="raster"||Y==="image"||Y==="video"}function Ji(){return new i.window.Worker(io.workerUrl)}var en="mapboxgl_preloaded_worker_pool",cn=function(){this.active={}};cn.prototype.acquire=function(D){if(!this.workers)for(this.workers=[];this.workers.length0?(K-ne)/we:0;return this.points[de].mult(1-Ue).add(this.points[J].mult(Ue))};var ki=function(D,J,q){var K=this.boxCells=[],de=this.circleCells=[];this.xCellCount=Math.ceil(D/q),this.yCellCount=Math.ceil(J/q);for(var ne=0;nethis.width||K<0||J>this.height)return de?!1:[];var we=[];if(D<=0&&J<=0&&this.width<=q&&this.height<=K){if(de)return!0;for(var Ue=0;Ue0:we}},ki.prototype._queryCircle=function(D,J,q,K,de){var ne=D-q,we=D+q,Ue=J-q,ft=J+q;if(we<0||ne>this.width||ft<0||Ue>this.height)return K?!1:[];var Zt=[],hr={hitTest:K,circle:{x:D,y:J,radius:q},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Ue,we,ft,this._queryCellCircle,Zt,hr,de),K?Zt.length>0:Zt},ki.prototype.query=function(D,J,q,K,de){return this._query(D,J,q,K,!1,de)},ki.prototype.hitTest=function(D,J,q,K,de){return this._query(D,J,q,K,!0,de)},ki.prototype.hitTestCircle=function(D,J,q,K){return this._queryCircle(D,J,q,!0,K)},ki.prototype._queryCell=function(D,J,q,K,de,ne,we,Ue){var ft=we.seenUids,Zt=this.boxCells[de];if(Zt!==null)for(var hr=this.bboxes,qt=0,Ve=Zt;qt=hr[at+0]&&K>=hr[at+1]&&(!Ue||Ue(this.boxKeys[et]))){if(we.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[et],x1:hr[at],y1:hr[at+1],x2:hr[at+2],y2:hr[at+3]})}}}var kt=this.circleCells[de];if(kt!==null)for(var Ot=this.circles,It=0,Bt=kt;Itwe*we+Ue*Ue},ki.prototype._circleAndRectCollide=function(D,J,q,K,de,ne,we){var Ue=(ne-K)/2,ft=Math.abs(D-(K+Ue));if(ft>Ue+q)return!1;var Zt=(we-de)/2,hr=Math.abs(J-(de+Zt));if(hr>Zt+q)return!1;if(ft<=Ue||hr<=Zt)return!0;var qt=ft-Ue,Ve=hr-Zt;return qt*qt+Ve*Ve<=q*q};function _n(Y,D,J,q,K){var de=i.create();return D?(i.scale(de,de,[1/K,1/K,1]),J||i.rotateZ(de,de,q.angle)):i.multiply(de,q.labelPlaneMatrix,Y),de}function ya(Y,D,J,q,K){if(D){var de=i.clone(Y);return i.scale(de,de,[K,K,1]),J||i.rotateZ(de,de,-q.angle),de}else return q.glCoordMatrix}function Jn(Y,D){var J=[Y.x,Y.y,0,1];zl(J,J,D);var q=J[3];return{point:new i.Point(J[0]/q,J[1]/q),signedDistanceFromCamera:q}}function Ma(Y,D){return .5+.5*(Y/D)}function _o(Y,D){var J=Y[0]/Y[3],q=Y[1]/Y[3],K=J>=-D[0]&&J<=D[0]&&q>=-D[1]&&q<=D[1];return K}function No(Y,D,J,q,K,de,ne,we){var Ue=q?Y.textSizeData:Y.iconSizeData,ft=i.evaluateSizeForZoom(Ue,J.transform.zoom),Zt=[256/J.width*2+1,256/J.height*2+1],hr=q?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;hr.clear();for(var qt=Y.lineVertexArray,Ve=q?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,et=J.transform.width/J.transform.height,at=!1,kt=0;ktde)return{useVertical:!0}}return(Y===i.WritingMode.vertical?D.yJ.x)?{needsFlipping:!0}:null}function Co(Y,D,J,q,K,de,ne,we,Ue,ft,Zt,hr,qt,Ve){var et=D/24,at=Y.lineOffsetX*et,kt=Y.lineOffsetY*et,Ot;if(Y.numGlyphs>1){var It=Y.glyphStartIndex+Y.numGlyphs,Bt=Y.lineStartIndex,Rt=Y.lineStartIndex+Y.lineLength,mt=po(et,we,at,kt,J,Zt,hr,Y,Ue,de,qt);if(!mt)return{notEnoughRoom:!0};var Pt=Jn(mt.first.point,ne).point,ht=Jn(mt.last.point,ne).point;if(q&&!J){var cr=Lo(Y.writingMode,Pt,ht,Ve);if(cr)return cr}Ot=[mt.first];for(var br=Y.glyphStartIndex+1;br0?wi.point:Fs(hr,hi,Nr,1,K),tn=Lo(Y.writingMode,Nr,gn,Ve);if(tn)return tn}var Ci=zs(et*we.getoffsetX(Y.glyphStartIndex),at,kt,J,Zt,hr,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Ue,de,qt);if(!Ci)return{notEnoughRoom:!0};Ot=[Ci]}for(var qi=0,Vi=Ot;qi0?1:-1,et=0;q&&(Ve*=-1,et=Math.PI),Ve<0&&(et+=Math.PI);for(var at=Ve>0?we+ne:we+ne+1,kt=K,Ot=K,It=0,Bt=0,Rt=Math.abs(qt),mt=[];It+Bt<=Rt;){if(at+=Ve,at=Ue)return null;if(Ot=kt,mt.push(kt),kt=hr[at],kt===void 0){var Pt=new i.Point(ft.getx(at),ft.gety(at)),ht=Jn(Pt,Zt);if(ht.signedDistanceFromCamera>0)kt=hr[at]=ht.point;else{var cr=at-Ve,br=It===0?de:new i.Point(ft.getx(cr),ft.gety(cr));kt=Fs(br,Pt,Ot,Rt-It+1,Zt)}}It+=Bt,Bt=Ot.dist(kt)}var Nr=(Rt-It)/Bt,Ri=kt.sub(Ot),hi=Ri.mult(Nr)._add(Ot);hi._add(Ri._unit()._perp()._mult(J*Ve));var wi=et+Math.atan2(kt.y-Ot.y,kt.x-Ot.x);return mt.push(hi),{point:hi,angle:wi,path:mt}}var ul=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function cl(Y,D){for(var J=0;J=1;on--)Vi.push(Ci.path[on]);for(var On=1;On0){for(var so=Vi[0].clone(),Zo=Vi[0].clone(),ys=1;ys=wi.x&&Zo.x<=gn.x&&so.y>=wi.y&&Zo.y<=gn.y?rs=[Vi]:Zo.xgn.x||Zo.ygn.y?rs=[]:rs=i.clipLine([Vi],wi.x,wi.y,gn.x,gn.y)}for(var ou=0,Cv=rs;ou=this.screenRightBoundary||Kthis.screenBottomBoundary},nl.prototype.isInsideGrid=function(D,J,q,K){return q>=0&&D=0&&J0){var Rt;return this.prevPlacement&&this.prevPlacement.variableOffsets[qt.crossTileID]&&this.prevPlacement.placements[qt.crossTileID]&&this.prevPlacement.placements[qt.crossTileID].text&&(Rt=this.prevPlacement.variableOffsets[qt.crossTileID].anchor),this.variableOffsets[qt.crossTileID]={textOffset:kt,width:q,height:K,anchor:D,textBoxScale:de,prevAnchor:Rt},this.markUsedJustification(Ve,D,qt,et),Ve.allowVerticalPlacement&&(this.markUsedOrientation(Ve,et,qt),this.placedOrientations[qt.crossTileID]=et),{shift:Ot,placedGlyphBoxes:It}}},ws.prototype.placeLayerBucketPart=function(D,J,q){var K=this,de=D.parameters,ne=de.bucket,we=de.layout,Ue=de.posMatrix,ft=de.textLabelPlaneMatrix,Zt=de.labelToScreenMatrix,hr=de.textPixelRatio,qt=de.holdingForFade,Ve=de.collisionBoxArray,et=de.partiallyEvaluatedTextSize,at=de.collisionGroup,kt=we.get("text-optional"),Ot=we.get("icon-optional"),It=we.get("text-allow-overlap"),Bt=we.get("icon-allow-overlap"),Rt=we.get("text-rotation-alignment")==="map",mt=we.get("text-pitch-alignment")==="map",Pt=we.get("icon-text-fit")!=="none",ht=we.get("symbol-z-order")==="viewport-y",cr=It&&(Bt||!ne.hasIconData()||Ot),br=Bt&&(It||!ne.hasTextData()||kt);!ne.collisionArrays&&Ve&&ne.deserializeCollisionBoxes(Ve);var Nr=function(Ci,qi){if(!J[Ci.crossTileID]){if(qt){K.placements[Ci.crossTileID]=new Os(!1,!1,!1);return}var Vi=!1,on=!1,On=!0,Ja=null,co={box:null,offscreen:null},rs={box:null,offscreen:null},so=null,Zo=null,ys=null,ou=0,Cv=0,kv=0;qi.textFeatureIndex?ou=qi.textFeatureIndex:Ci.useRuntimeCollisionCircles&&(ou=Ci.featureIndex),qi.verticalTextFeatureIndex&&(Cv=qi.verticalTextFeatureIndex);var wd=qi.textBox;if(wd){var Yv=function(vc){var eu=i.WritingMode.horizontal;if(ne.allowVerticalPlacement&&!vc&&K.prevPlacement){var Sd=K.prevPlacement.placedOrientations[Ci.crossTileID];Sd&&(K.placedOrientations[Ci.crossTileID]=Sd,eu=Sd,K.markUsedOrientation(ne,eu,Ci))}return eu},cg=function(vc,eu){if(ne.allowVerticalPlacement&&Ci.numVerticalGlyphVertices>0&&qi.verticalTextBox)for(var Sd=0,sy=ne.writingModes;Sd0&&(Vd=Vd.filter(function(vc){return vc!==Ad.anchor}),Vd.unshift(Ad.anchor))}var Lv=function(vc,eu,Sd){for(var sy=vc.x2-vc.x1,A1=vc.y2-vc.y1,wu=Ci.textBoxScale,Bx=Pt&&!Bt?eu:null,am={box:[],offscreen:!1},Mw=It?Vd.length*2:Vd.length,Iv=0;Iv=Vd.length,Nx=K.attemptAnchorPlacement(om,vc,sy,A1,wu,Rt,mt,hr,Ue,at,Ew,Ci,ne,Sd,Bx);if(Nx&&(am=Nx.placedGlyphBoxes,am&&am.box&&am.box.length)){Vi=!0,Ja=Nx.shift;break}}return am},Kv=function(){return Lv(wd,qi.iconBox,i.WritingMode.horizontal)},Pv=function(){var vc=qi.verticalTextBox,eu=co&&co.box&&co.box.length;return ne.allowVerticalPlacement&&!eu&&Ci.numVerticalGlyphVertices>0&&vc?Lv(vc,qi.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};cg(Kv,Pv),co&&(Vi=co.box,On=co.offscreen);var ny=Yv(co&&co.box);if(!Vi&&K.prevPlacement){var fg=K.prevPlacement.variableOffsets[Ci.crossTileID];fg&&(K.variableOffsets[Ci.crossTileID]=fg,K.markUsedJustification(ne,fg.anchor,Ci,ny))}}else{var dp=function(vc,eu){var Sd=K.collisionIndex.placeCollisionBox(vc,It,hr,Ue,at.predicate);return Sd&&Sd.box&&Sd.box.length&&(K.markUsedOrientation(ne,eu,Ci),K.placedOrientations[Ci.crossTileID]=eu),Sd},Td=function(){return dp(wd,i.WritingMode.horizontal)},vp=function(){var vc=qi.verticalTextBox;return ne.allowVerticalPlacement&&Ci.numVerticalGlyphVertices>0&&vc?dp(vc,i.WritingMode.vertical):{box:null,offscreen:null}};cg(Td,vp),Yv(co&&co.box&&co.box.length)}}if(so=co,Vi=so&&so.box&&so.box.length>0,On=so&&so.offscreen,Ci.useRuntimeCollisionCircles){var oh=ne.text.placedSymbolArray.get(Ci.centerJustifiedTextSymbolIndex),hg=i.evaluateSizeForFeature(ne.textSizeData,et,oh),ay=we.get("text-padding"),Gh=Ci.collisionCircleDiameter;Zo=K.collisionIndex.placeCollisionCircles(It,oh,ne.lineVertexArray,ne.glyphOffsetArray,hg,Ue,ft,Zt,q,mt,at.predicate,Gh,ay),Vi=It||Zo.circles.length>0&&!Zo.collisionDetected,On=On&&Zo.offscreen}if(qi.iconFeatureIndex&&(kv=qi.iconFeatureIndex),qi.iconBox){var rm=function(vc){var eu=Pt&&Ja?nc(vc,Ja.x,Ja.y,Rt,mt,K.transform.angle):vc;return K.collisionIndex.placeCollisionBox(eu,Bt,hr,Ue,at.predicate)};rs&&rs.box&&rs.box.length&&qi.verticalIconBox?(ys=rm(qi.verticalIconBox),on=ys.box.length>0):(ys=rm(qi.iconBox),on=ys.box.length>0),On=On&&ys.offscreen}var w1=kt||Ci.numHorizontalGlyphVertices===0&&Ci.numVerticalGlyphVertices===0,T1=Ot||Ci.numIconVertices===0;if(!w1&&!T1?on=Vi=on&&Vi:T1?w1||(on=on&&Vi):Vi=on&&Vi,Vi&&so&&so.box&&(rs&&rs.box&&Cv?K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,Cv,at.ID):K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,ou,at.ID)),on&&ys&&K.collisionIndex.insertCollisionBox(ys.box,we.get("icon-ignore-placement"),ne.bucketInstanceId,kv,at.ID),Zo&&(Vi&&K.collisionIndex.insertCollisionCircles(Zo.circles,we.get("text-ignore-placement"),ne.bucketInstanceId,ou,at.ID),q)){var oy=ne.bucketInstanceId,im=K.collisionCircleArrays[oy];im===void 0&&(im=K.collisionCircleArrays[oy]=new Io);for(var nm=0;nm=0;--hi){var wi=Ri[hi];Nr(ne.symbolInstances.get(wi),ne.collisionArrays[wi])}else for(var gn=D.symbolInstanceStart;gn=0&&(ne>=0&&Zt!==ne?D.text.placedSymbolArray.get(Zt).crossTileID=0:D.text.placedSymbolArray.get(Zt).crossTileID=q.crossTileID)}},ws.prototype.markUsedOrientation=function(D,J,q){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,de=J===i.WritingMode.vertical?J:0,ne=[q.leftJustifiedTextSymbolIndex,q.centerJustifiedTextSymbolIndex,q.rightJustifiedTextSymbolIndex],we=0,Ue=ne;we0||mt>0,Nr=Bt.numIconVertices>0,Ri=K.placedOrientations[Bt.crossTileID],hi=Ri===i.WritingMode.vertical,wi=Ri===i.WritingMode.horizontal||Ri===i.WritingMode.horizontalOnly;if(br){var gn=ac(cr.text),tn=hi?aa:gn;et(D.text,Rt,tn);var Ci=wi?aa:gn;et(D.text,mt,Ci);var qi=cr.text.isHidden();[Bt.rightJustifiedTextSymbolIndex,Bt.centerJustifiedTextSymbolIndex,Bt.leftJustifiedTextSymbolIndex].forEach(function(kv){kv>=0&&(D.text.placedSymbolArray.get(kv).hidden=qi||hi?1:0)}),Bt.verticalPlacedTextSymbolIndex>=0&&(D.text.placedSymbolArray.get(Bt.verticalPlacedTextSymbolIndex).hidden=qi||wi?1:0);var Vi=K.variableOffsets[Bt.crossTileID];Vi&&K.markUsedJustification(D,Vi.anchor,Bt,Ri);var on=K.placedOrientations[Bt.crossTileID];on&&(K.markUsedJustification(D,"left",Bt,on),K.markUsedOrientation(D,on,Bt))}if(Nr){var On=ac(cr.icon),Ja=!(qt&&Bt.verticalPlacedIconSymbolIndex&&hi);if(Bt.placedIconSymbolIndex>=0){var co=Ja?On:aa;et(D.icon,Bt.numIconVertices,co),D.icon.placedSymbolArray.get(Bt.placedIconSymbolIndex).hidden=cr.icon.isHidden()}if(Bt.verticalPlacedIconSymbolIndex>=0){var rs=Ja?aa:On;et(D.icon,Bt.numVerticalIconVertices,rs),D.icon.placedSymbolArray.get(Bt.verticalPlacedIconSymbolIndex).hidden=cr.icon.isHidden()}}if(D.hasIconCollisionBoxData()||D.hasTextCollisionBoxData()){var so=D.collisionArrays[It];if(so){var Zo=new i.Point(0,0);if(so.textBox||so.verticalTextBox){var ys=!0;if(ft){var ou=K.variableOffsets[Pt];ou?(Zo=Su(ou.anchor,ou.width,ou.height,ou.textOffset,ou.textBoxScale),Zt&&Zo._rotate(hr?K.transform.angle:-K.transform.angle)):ys=!1}so.textBox&&Fn(D.textCollisionBox.collisionVertexArray,cr.text.placed,!ys||hi,Zo.x,Zo.y),so.verticalTextBox&&Fn(D.textCollisionBox.collisionVertexArray,cr.text.placed,!ys||wi,Zo.x,Zo.y)}var Cv=!!(!wi&&so.verticalIconBox);so.iconBox&&Fn(D.iconCollisionBox.collisionVertexArray,cr.icon.placed,Cv,qt?Zo.x:0,qt?Zo.y:0),so.verticalIconBox&&Fn(D.iconCollisionBox.collisionVertexArray,cr.icon.placed,!Cv,qt?Zo.x:0,qt?Zo.y:0)}}},kt=0;ktD},ws.prototype.setStale=function(){this.stale=!0};function Fn(Y,D,J,q,K){Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0)}var _a=Math.pow(2,25),Vu=Math.pow(2,24),Ol=Math.pow(2,17),xo=Math.pow(2,16),Yl=Math.pow(2,9),Us=Math.pow(2,8),Hl=Math.pow(2,1);function ac(Y){if(Y.opacity===0&&!Y.placed)return 0;if(Y.opacity===1&&Y.placed)return 4294967295;var D=Y.placed?1:0,J=Math.floor(Y.opacity*127);return J*_a+D*Vu+J*Ol+D*xo+J*Yl+D*Us+J*Hl+D}var aa=0,Oo=function(D){this._sortAcrossTiles=D.layout.get("symbol-z-order")!=="viewport-y"&&D.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Oo.prototype.continuePlacement=function(D,J,q,K,de){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var we=D[this._currentPlacementIndex],Ue=J[we],ft=this.placement.collisionIndex.transform.zoom;if(Ue.type==="symbol"&&(!Ue.minzoom||Ue.minzoom<=ft)&&(!Ue.maxzoom||Ue.maxzoom>ft)){this._inProgressLayer||(this._inProgressLayer=new Oo(Ue));var Zt=this._inProgressLayer.continuePlacement(q[Ue.source],this.placement,this._showCollisionBoxes,Ue,ne);if(Zt)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},qo.prototype.commit=function(D){return this.placement.commit(D),this.placement};var ql=512/i.EXTENT/2,Pc=function(D,J,q){this.tileID=D,this.indexedSymbolInstances={},this.bucketInstanceId=q;for(var K=0;KD.overscaledZ)for(var ft in Ue){var Zt=Ue[ft];Zt.tileID.isChildOf(D)&&Zt.findMatches(J.symbolInstances,D,ne)}else{var hr=D.scaledTo(Number(we)),qt=Ue[hr.key];qt&&qt.findMatches(J.symbolInstances,D,ne)}}for(var Ve=0;Ve0)throw new Error("Unimplemented: "+ne.map(function(we){return we.command}).join(", ")+".");return de.forEach(function(we){we.command!=="setTransition"&&K[we.command].apply(K,we.args)}),this.stylesheet=q,!0},D.prototype.addImage=function(q,K){if(this.getImage(q))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(q,K),this._afterImageUpdated(q)},D.prototype.updateImage=function(q,K){this.imageManager.updateImage(q,K)},D.prototype.getImage=function(q){return this.imageManager.getImage(q)},D.prototype.removeImage=function(q){if(!this.getImage(q))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(q),this._afterImageUpdated(q)},D.prototype._afterImageUpdated=function(q){this._availableImages=this.imageManager.listImages(),this._changedImages[q]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},D.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},D.prototype.addSource=function(q,K,de){var ne=this;if(de===void 0&&(de={}),this._checkLoaded(),this.sourceCaches[q]!==void 0)throw new Error("There is already a source with this ID");if(!K.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(K).join(", ")+".");var we=["vector","raster","geojson","video","image"],Ue=we.indexOf(K.type)>=0;if(!(Ue&&this._validate(i.validateStyle.source,"sources."+q,K,null,de))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var ft=this.sourceCaches[q]=new ri(q,K,this.dispatcher);ft.style=this,ft.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:ft.serialize(),sourceId:q}}),ft.onAdd(this.map),this._changed=!0}},D.prototype.removeSource=function(q){if(this._checkLoaded(),this.sourceCaches[q]===void 0)throw new Error("There is no source with this ID");for(var K in this._layers)if(this._layers[K].source===q)return this.fire(new i.ErrorEvent(new Error('Source "'+q+'" cannot be removed while layer "'+K+'" is using it.')));var de=this.sourceCaches[q];delete this.sourceCaches[q],delete this._updatedSources[q],de.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:q})),de.setEventedParent(null),de.clearTiles(),de.onRemove&&de.onRemove(this.map),this._changed=!0},D.prototype.setGeoJSONSourceData=function(q,K){this._checkLoaded();var de=this.sourceCaches[q].getSource();de.setData(K),this._changed=!0},D.prototype.getSource=function(q){return this.sourceCaches[q]&&this.sourceCaches[q].getSource()},D.prototype.addLayer=function(q,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=q.id;if(this.getLayer(ne)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ne+'" already exists on this map')));return}var we;if(q.type==="custom"){if(ml(this,i.validateCustomStyleLayer(q)))return;we=i.createStyleLayer(q)}else{if(typeof q.source=="object"&&(this.addSource(ne,q.source),q=i.clone$1(q),q=i.extend(q,{source:ne})),this._validate(i.validateStyle.layer,"layers."+ne,q,{arrayIndex:-1},de))return;we=i.createStyleLayer(q),this._validateLayer(we),we.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[we.id]=we.serialize()}var Ue=K?this._order.indexOf(K):this._order.length;if(K&&Ue===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Ue,0,ne),this._layerOrderChanged=!0,this._layers[ne]=we,this._removedLayers[ne]&&we.source&&we.type!=="custom"){var ft=this._removedLayers[ne];delete this._removedLayers[ne],ft.type!==we.type?this._updatedSources[we.source]="clear":(this._updatedSources[we.source]="reload",this.sourceCaches[we.source].pause())}this._updateLayer(we),we.onAdd&&we.onAdd(this.map)},D.prototype.moveLayer=function(q,K){this._checkLoaded(),this._changed=!0;var de=this._layers[q];if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be moved.")));return}if(q!==K){var ne=this._order.indexOf(q);this._order.splice(ne,1);var we=K?this._order.indexOf(K):this._order.length;if(K&&we===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}this._order.splice(we,0,q),this._layerOrderChanged=!0}},D.prototype.removeLayer=function(q){this._checkLoaded();var K=this._layers[q];if(!K){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be removed.")));return}K.setEventedParent(null);var de=this._order.indexOf(q);this._order.splice(de,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[q]=K,delete this._layers[q],delete this._serializedLayers[q],delete this._updatedLayers[q],delete this._updatedPaintProps[q],K.onRemove&&K.onRemove(this.map)},D.prototype.getLayer=function(q){return this._layers[q]},D.prototype.hasLayer=function(q){return q in this._layers},D.prototype.setLayerZoomRange=function(q,K,de){this._checkLoaded();var ne=this.getLayer(q);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot have zoom extent.")));return}ne.minzoom===K&&ne.maxzoom===de||(K!=null&&(ne.minzoom=K),de!=null&&(ne.maxzoom=de),this._updateLayer(ne))},D.prototype.setFilter=function(q,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=this.getLayer(q);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(ne.filter,K)){if(K==null){ne.filter=void 0,this._updateLayer(ne);return}this._validate(i.validateStyle.filter,"layers."+ne.id+".filter",K,null,de)||(ne.filter=i.clone$1(K),this._updateLayer(ne))}},D.prototype.getFilter=function(q){return i.clone$1(this.getLayer(q).filter)},D.prototype.setLayoutProperty=function(q,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(q);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(we.getLayoutProperty(K),de)||(we.setLayoutProperty(K,de,ne),this._updateLayer(we))},D.prototype.getLayoutProperty=function(q,K){var de=this.getLayer(q);if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style.")));return}return de.getLayoutProperty(K)},D.prototype.setPaintProperty=function(q,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(q);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(we.getPaintProperty(K),de)){var Ue=we.setPaintProperty(K,de,ne);Ue&&this._updateLayer(we),this._changed=!0,this._updatedPaintProps[q]=!0}},D.prototype.getPaintProperty=function(q,K){return this.getLayer(q).getPaintProperty(K)},D.prototype.setFeatureState=function(q,K){this._checkLoaded();var de=q.source,ne=q.sourceLayer,we=this.sourceCaches[de];if(we===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+de+"' does not exist in the map's style.")));return}var Ue=we.getSource().type;if(Ue==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ue==="vector"&&!ne){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}q.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),we.setFeatureState(ne,q.id,K)},D.prototype.removeFeatureState=function(q,K){this._checkLoaded();var de=q.source,ne=this.sourceCaches[de];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+de+"' does not exist in the map's style.")));return}var we=ne.getSource().type,Ue=we==="vector"?q.sourceLayer:void 0;if(we==="vector"&&!Ue){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(K&&typeof q.id!="string"&&typeof q.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ne.removeFeatureState(Ue,q.id,K)},D.prototype.getFeatureState=function(q){this._checkLoaded();var K=q.source,de=q.sourceLayer,ne=this.sourceCaches[K];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+K+"' does not exist in the map's style.")));return}var we=ne.getSource().type;if(we==="vector"&&!de){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return q.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ne.getFeatureState(de,q.id)},D.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},D.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(q){return q.serialize()}),layers:this._serializeLayers(this._order)},function(q){return q!==void 0})},D.prototype._updateLayer=function(q){this._updatedLayers[q.id]=!0,q.source&&!this._updatedSources[q.source]&&this.sourceCaches[q.source].getSource().type!=="raster"&&(this._updatedSources[q.source]="reload",this.sourceCaches[q.source].pause()),this._changed=!0},D.prototype._flattenAndSortRenderedFeatures=function(q){for(var K=this,de=function(wi){return K._layers[wi].type==="fill-extrusion"},ne={},we=[],Ue=this._order.length-1;Ue>=0;Ue--){var ft=this._order[Ue];if(de(ft)){ne[ft]=Ue;for(var Zt=0,hr=q;Zt=0;It--){var Bt=this._order[It];if(de(Bt))for(var Rt=we.length-1;Rt>=0;Rt--){var mt=we[Rt].feature;if(ne[mt.layer.id] .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var NC=ye((h_r,mVe)=>{"use strict";var vVe=Dr(),pVe=Ca().defaultLine,mHt=kc().attributes,yHt=ec(),_Ht=pf().textposition,xHt=mc().overrideAll,bHt=pl().templatedArray,KK=c1(),gVe=yHt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});gVe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var wHt=mVe.exports=xHt({_arrayAttrRegexps:[vVe.counterRegex("mapbox",".layers",!0)],domain:mHt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:KK.styleValuesMapbox.concat(KK.styleValuesNonMapbox),dflt:KK.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:bHt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:pVe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:pVe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:gVe,textposition:vVe.extendFlat({},_Ht,{arrayOk:!1})}})},"plot","from-root");wHt.uirevision={valType:"any",editType:"none"}});var Gz=ye((d_r,xVe)=>{"use strict";var THt=Qo().hovertemplateAttrs,AHt=Qo().texttemplateAttrs,SHt=Cg(),UC=G2(),b5=pf(),yVe=NC(),MHt=Gl(),EHt=Tu(),ew=Ao().extendFlat,CHt=mc().overrideAll,kHt=NC(),_Ve=UC.line,w5=UC.marker;xVe.exports=CHt({lon:UC.lon,lat:UC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:ew({},kHt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:ew({},w5.opacity,{dflt:1})},mode:ew({},b5.mode,{dflt:"markers"}),text:ew({},b5.text,{}),texttemplate:AHt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:ew({},b5.hovertext,{}),line:{color:_Ve.color,width:_Ve.width},connectgaps:b5.connectgaps,marker:ew({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:w5.opacity,size:w5.size,sizeref:w5.sizeref,sizemin:w5.sizemin,sizemode:w5.sizemode},EHt("marker")),fill:UC.fill,fillcolor:SHt(),textfont:yVe.layers.symbol.textfont,textposition:yVe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:b5.selected.marker},unselected:{marker:b5.unselected.marker},hoverinfo:ew({},MHt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:THt()},"calc","nested")});var JK=ye((v_r,bVe)=>{"use strict";var LHt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];bVe.exports={isSupportedFont:function(e){return LHt.indexOf(e)!==-1}}});var AVe=ye((p_r,TVe)=>{"use strict";var VC=Dr(),$K=Ru(),PHt=$p(),IHt=D0(),RHt=F0(),DHt=Ig(),wVe=Gz(),FHt=JK().isSupportedFont;TVe.exports=function(t,r,n,i){function a(p,C){return VC.coerce(t,r,wVe,p,C)}function o(p,C){return VC.coerce2(t,r,wVe,p,C)}var s=zHt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),$K.hasMarkers(r)){PHt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(VC.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),VC.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}$K.hasLines(r)&&(IHt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,_=a("cluster.enabled",v);if(_||$K.hasText(r)){var b=i.font.family;RHt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:FHt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&DHt(t,r,n,a),VC.coerceSelectionMarkerOpacity(r,a)};function zHt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var QK=ye((g_r,MVe)=>{"use strict";var SVe=ho();MVe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=SVe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=SVe.tickText(o,o.c2l(s[1]),!0).text,i}});var eJ=ye((m_r,CVe)=>{"use strict";var EVe=Dr();CVe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=EVe.isArrayOrTypedArray(r)?EVe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var DVe=ye((y_r,RVe)=>{"use strict";var PVe=Eo(),av=Dr(),OHt=hs().BADNUM,jz=tx(),kVe=tc(),qHt=So(),BHt=S3(),Wz=Ru(),NHt=JK().isSupportedFont,UHt=eJ(),VHt=ip().appendArrayPointValue,GHt=ru().NEWLINES,HHt=ru().BR_TAG_ALL;RVe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=Wz.hasLines(n),s=Wz.hasMarkers(n),l=Wz.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=Hz("fill"),d=Hz("line"),v=Hz("circle"),_=Hz("symbol"),b={fill:h,line:d,circle:v,symbol:_};if(!i)return b;var p;if((a||o)&&(p=jz.calcTraceToLineCoords(r)),a&&(h.geojson=jz.makePolygon(p),h.layout.visibility="visible",av.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=jz.makeLine(p),d.layout.visibility="visible",av.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var C=jHt(r);v.geojson=C.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":rJ(n.cluster.color,n.cluster.step),"circle-radius":rJ(n.cluster.size,n.cluster.step),"circle-opacity":rJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":LVe(n),"text-size":12}}),av.extendFlat(v.paint,{"circle-color":C.mcc,"circle-radius":C.mrc,"circle-opacity":C.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(_.geojson=WHt(r,t),av.extendFlat(_.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(av.extendFlat(_.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&av.extendFlat(_.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),_.layout["icon-allow-overlap"]=n.marker.allowoverlap,av.extendFlat(_.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var E=(n.marker||{}).size,A=UHt(n.textposition,E);av.extendFlat(_.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":LVe(n)}),av.extendFlat(_.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function Hz(e){return{type:e,geojson:jz.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function jHt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=av.isArrayOrTypedArray(r.color),a=av.isArrayOrTypedArray(r.size),o=av.isArrayOrTypedArray(r.opacity),s;function l(E){return t.opacity*E}function u(E){return E/2}var c;i&&(kVe.hasColorscale(t,"marker")?c=kVe.makeColorScaleFuncFromTrace(r):c=av.identity);var f;a&&(f=BHt(t));var h;o&&(h=function(E){var A=PVe(E)?+av.constrain(E,0,1):0;return l(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),NHt(s)||(s=r);var l=s.split(", ");return l}});var qVe=ye((__r,OVe)=>{"use strict";var XHt=Dr(),FVe=DVe(),T5=c1().traceLayerPrefix,ig={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function zVe(e,t,r,n){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:T5+t+"-fill",line:T5+t+"-line",circle:T5+t+"-circle",symbol:T5+t+"-symbol",cluster:T5+t+"-cluster",clusterCount:T5+t+"-cluster-count"},this.below=null}var GC=zVe.prototype;GC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&XHt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};GC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};GC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var x=A[L];i.removeLayer(u.layerIds[x])}E||i.removeSource(u.sourceIds.circle)}function h(E){for(var A=ig.nonCluster,L=0;L=0;L--){var x=A[L];i.removeLayer(u.layerIds[x]),E||i.removeSource(u.sourceIds[x])}}function v(E){l?f(E):d(E)}function _(E){s?c(E):h(E)}function b(){for(var E=s?ig.cluster:ig.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};OVe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new zVe(t,n.uid,i,a),s=FVe(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var ZHt=vf(),iJ=Dr(),YHt=sT(),KHt=iJ.fillText,JHt=hs().BADNUM,$Ht=c1().traceLayerPrefix;function QHt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=$Ht+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function _(M){var g=M.lonlat;if(g[0]===JHt||c&&l.indexOf(M.i+1)===-1)return 1/0;var P=iJ.modHalf(g[0],360),T=g[1],z=s.project([P,T]),O=z.x-a.c2p([v,T]),V=z.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(O*O+V*V)-G,1-3/G)}if(ZHt.getClosest(n,_,e),e.index!==!1){var b=n[e.index],p=b.lonlat,C=[iJ.modHalf(p[0],360)+d,p[1]],E=a.c2p(C),A=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=A-L,e.y1=A+L;var x={};x[i.subplot]={_subplot:s};var k=i._module.formatLabels(b,i,x);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=YHt(i,b),e.extraText=BVe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function BVe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||i.indexOf("text")!==-1)&&KHt(t,e,u),u.join("
")}NVe.exports={hoverPoints:QHt,getExtraText:BVe}});var VVe=ye((b_r,UVe)=>{"use strict";UVe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var HVe=ye((w_r,GVe)=>{"use strict";var ejt=Dr(),tjt=Ru(),rjt=hs().BADNUM;GVe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!tjt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof nJ=="object"&&typeof aJ!="undefined"?aJ.exports=t():(e=e||self,e.mapboxgl=t())})(nJ,function(){"use strict";var e,t,r;function n(i,a){if(!e)e=a;else if(!t)t=a;else{var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",s={};e(s),r=a(s),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}}return n(["exports"],function(i){"use strict";function a(m,y){return y={exports:{}},m(y,y.exports),y.exports}var o="1.13.4",s=l;function l(m,y,I,U){this.cx=3*m,this.bx=3*(I-m)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*y,this.by=3*(U-y)-this.cy,this.ay=1-this.cy-this.by,this.p1x=m,this.p1y=U,this.p2x=I,this.p2y=U}l.prototype.sampleCurveX=function(m){return((this.ax*m+this.bx)*m+this.cx)*m},l.prototype.sampleCurveY=function(m){return((this.ay*m+this.by)*m+this.cy)*m},l.prototype.sampleCurveDerivativeX=function(m){return(3*this.ax*m+2*this.bx)*m+this.cx},l.prototype.solveCurveX=function(m,y){typeof y=="undefined"&&(y=1e-6);var I,U,$,ae,he;for($=m,he=0;he<8;he++){if(ae=this.sampleCurveX($)-m,Math.abs(ae)U)return U;for(;Iae?I=$:U=$,$=(U-I)*.5+I}return $},l.prototype.solve=function(m,y){return this.sampleCurveY(this.solveCurveX(m,y))};var u=c;function c(m,y){this.x=m,this.y=y}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(m){return this.clone()._add(m)},sub:function(m){return this.clone()._sub(m)},multByPoint:function(m){return this.clone()._multByPoint(m)},divByPoint:function(m){return this.clone()._divByPoint(m)},mult:function(m){return this.clone()._mult(m)},div:function(m){return this.clone()._div(m)},rotate:function(m){return this.clone()._rotate(m)},rotateAround:function(m,y){return this.clone()._rotateAround(m,y)},matMult:function(m){return this.clone()._matMult(m)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(m){return this.x===m.x&&this.y===m.y},dist:function(m){return Math.sqrt(this.distSqr(m))},distSqr:function(m){var y=m.x-this.x,I=m.y-this.y;return y*y+I*I},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(m){return Math.atan2(this.y-m.y,this.x-m.x)},angleWith:function(m){return this.angleWithSep(m.x,m.y)},angleWithSep:function(m,y){return Math.atan2(this.x*y-this.y*m,this.x*m+this.y*y)},_matMult:function(m){var y=m[0]*this.x+m[1]*this.y,I=m[2]*this.x+m[3]*this.y;return this.x=y,this.y=I,this},_add:function(m){return this.x+=m.x,this.y+=m.y,this},_sub:function(m){return this.x-=m.x,this.y-=m.y,this},_mult:function(m){return this.x*=m,this.y*=m,this},_div:function(m){return this.x/=m,this.y/=m,this},_multByPoint:function(m){return this.x*=m.x,this.y*=m.y,this},_divByPoint:function(m){return this.x/=m.x,this.y/=m.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var m=this.y;return this.y=this.x,this.x=-m,this},_rotate:function(m){var y=Math.cos(m),I=Math.sin(m),U=y*this.x-I*this.y,$=I*this.x+y*this.y;return this.x=U,this.y=$,this},_rotateAround:function(m,y){var I=Math.cos(m),U=Math.sin(m),$=y.x+I*(this.x-y.x)-U*(this.y-y.y),ae=y.y+U*(this.x-y.x)+I*(this.y-y.y);return this.x=$,this.y=ae,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(m){return m instanceof c?m:Array.isArray(m)?new c(m[0],m[1]):m};var f=typeof self!="undefined"?self:{};function h(m,y){if(Array.isArray(m)){if(!Array.isArray(y)||m.length!==y.length)return!1;for(var I=0;I=1)return 1;var y=m*m,I=y*m;return 4*(m<.5?I:3*(m-y)+I-.75)}function _(m,y,I,U){var $=new s(m,y,I,U);return function(ae){return $.solve(ae)}}var b=_(.25,.1,.25,1);function p(m,y,I){return Math.min(I,Math.max(y,m))}function C(m,y,I){var U=I-y,$=((m-y)%U+U)%U+y;return $===y?I:$}function E(m,y,I){if(!m.length)return I(null,[]);var U=m.length,$=new Array(m.length),ae=null;m.forEach(function(he,Oe){y(he,function(rt,gt){rt&&(ae=rt),$[Oe]=gt,--U===0&&I(ae,$)})})}function A(m){var y=[];for(var I in m)y.push(m[I]);return y}function L(m,y){var I=[];for(var U in m)U in y||I.push(U);return I}function x(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var U=0,$=y;U<$.length;U+=1){var ae=$[U];for(var he in ae)m[he]=ae[he]}return m}function k(m,y){for(var I={},U=0;U>y/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,m)}return m()}function T(m){return m<=1?1:Math.pow(2,Math.ceil(Math.log(m)/Math.LN2))}function z(m){return m?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(m):!1}function O(m,y){m.forEach(function(I){y[I]&&(y[I]=y[I].bind(y))})}function V(m,y){return m.indexOf(y,m.length-y.length)!==-1}function G(m,y,I){var U={};for(var $ in m)U[$]=y.call(I||this,m[$],$,m);return U}function Z(m,y,I){var U={};for(var $ in m)y.call(I||this,m[$],$,m)&&(U[$]=m[$]);return U}function H(m){return Array.isArray(m)?m.map(H):typeof m=="object"&&m?G(m,H):m}function N(m,y){for(var I=0;I=0)return!0;return!1}var j={};function re(m){j[m]||(typeof console!="undefined"&&console.warn(m),j[m]=!0)}function oe(m,y,I){return(I.y-m.y)*(y.x-m.x)>(y.y-m.y)*(I.x-m.x)}function _e(m){for(var y=0,I=0,U=m.length,$=U-1,ae=void 0,he=void 0;I@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,I={};if(m.replace(y,function($,ae,he,Oe){var rt=he||Oe;return I[ae]=rt?rt.toLowerCase():!0,""}),I["max-age"]){var U=parseInt(I["max-age"],10);isNaN(U)?delete I["max-age"]:I["max-age"]=U}return I}var ie=null;function Se(m){if(ie==null){var y=m.navigator?m.navigator.userAgent:null;ie=!!m.safari||!!(y&&(/\b(iPad|iPhone|iPod)\b/.test(y)||y.match("Safari")&&!y.match("Chrome")))}return ie}function Le(m){try{var y=f[m];return y.setItem("_mapbox_test_",1),y.removeItem("_mapbox_test_"),!0}catch(I){return!1}}function Ae(m){return f.btoa(encodeURIComponent(m).replace(/%([0-9A-F]{2})/g,function(y,I){return String.fromCharCode(+("0x"+I))}))}function De(m){return decodeURIComponent(f.atob(m).split("").map(function(y){return"%"+("00"+y.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Pe=f.performance&&f.performance.now?f.performance.now.bind(f.performance):Date.now.bind(Date),ge=f.requestAnimationFrame||f.mozRequestAnimationFrame||f.webkitRequestAnimationFrame||f.msRequestAnimationFrame,Fe=f.cancelAnimationFrame||f.mozCancelAnimationFrame||f.webkitCancelAnimationFrame||f.msCancelAnimationFrame,ce,Ze,ct={now:Pe,frame:function(y){var I=ge(y);return{cancel:function(){return Fe(I)}}},getImageData:function(y,I){I===void 0&&(I=0);var U=f.document.createElement("canvas"),$=U.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return U.width=y.width,U.height=y.height,$.drawImage(y,0,0,y.width,y.height),$.getImageData(-I,-I,y.width+2*I,y.height+2*I)},resolveURL:function(y){return ce||(ce=f.document.createElement("a")),ce.href=y,ce.href},hardwareConcurrency:f.navigator&&f.navigator.hardwareConcurrency||4,get devicePixelRatio(){return f.devicePixelRatio},get prefersReducedMotion(){return f.matchMedia?(Ze==null&&(Ze=f.matchMedia("(prefers-reduced-motion: reduce)")),Ze.matches):!1}},pt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Wt={supported:!1,testSupport:$t},st,lt=!1,Gt,Nt=!1;f.document&&(Gt=f.document.createElement("img"),Gt.onload=function(){st&&sr(st),st=null,Nt=!0},Gt.onerror=function(){lt=!0,st=null},Gt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function $t(m){lt||!Gt||(Nt?sr(m):st=m)}function sr(m){var y=m.createTexture();m.bindTexture(m.TEXTURE_2D,y);try{if(m.texImage2D(m.TEXTURE_2D,0,m.RGBA,m.RGBA,m.UNSIGNED_BYTE,Gt),m.isContextLost())return;Wt.supported=!0}catch(I){}m.deleteTexture(y),lt=!0}var wr="01";function ur(){for(var m="1",y="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",I="",U=0;U<10;U++)I+=y[Math.floor(Math.random()*62)];var $=12*60*60*1e3,ae=[m,wr,I].join(""),he=Date.now()+$;return{token:ae,tokenExpiresAt:he}}var Qe=function(y,I){this._transformRequestFn=y,this._customAccessToken=I,this._createSkuToken()};Qe.prototype._createSkuToken=function(){var y=ur();this._skuToken=y.token,this._skuTokenExpiresAt=y.tokenExpiresAt},Qe.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Qe.prototype.transformRequest=function(y,I){return this._transformRequestFn?this._transformRequestFn(y,I)||{url:y}:{url:y}},Qe.prototype.normalizeStyleURL=function(y,I){if(!Et(y))return y;var U=Yt(y);return U.path="/styles/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},Qe.prototype.normalizeGlyphsURL=function(y,I){if(!Et(y))return y;var U=Yt(y);return U.path="/fonts/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},Qe.prototype.normalizeSourceURL=function(y,I){if(!Et(y))return y;var U=Yt(y);return U.path="/v4/"+U.authority+".json",U.params.push("secure"),this._makeAPIURL(U,this._customAccessToken||I)},Qe.prototype.normalizeSpriteURL=function(y,I,U,$){var ae=Yt(y);return Et(y)?(ae.path="/styles/v1"+ae.path+"/sprite"+I+U,this._makeAPIURL(ae,this._customAccessToken||$)):(ae.path+=""+I+U,lr(ae))},Qe.prototype.normalizeTileURL=function(y,I){if(this._isSkuTokenExpired()&&this._createSkuToken(),y&&!Et(y))return y;var U=Yt(y),$=/(\.(png|jpg)\d*)(?=$)/,ae=/^.+\/v4\//,he=ct.devicePixelRatio>=2||I===512?"@2x":"",Oe=Wt.supported?".webp":"$1";U.path=U.path.replace($,""+he+Oe),U.path=U.path.replace(ae,"/"),U.path="/v4"+U.path;var rt=this._customAccessToken||bt(U.params)||pt.ACCESS_TOKEN;return pt.REQUIRE_ACCESS_TOKEN&&rt&&this._skuToken&&U.params.push("sku="+this._skuToken),this._makeAPIURL(U,rt)},Qe.prototype.canonicalizeTileURL=function(y,I){var U="/v4/",$=/\.[\w]+$/,ae=Yt(y);if(!ae.path.match(/(^\/v4\/)/)||!ae.path.match($))return y;var he="mapbox://tiles/";he+=ae.path.replace(U,"");var Oe=ae.params;return I&&(Oe=Oe.filter(function(rt){return!rt.match(/^access_token=/)})),Oe.length&&(he+="?"+Oe.join("&")),he},Qe.prototype.canonicalizeTileset=function(y,I){for(var U=I?Et(I):!1,$=[],ae=0,he=y.tiles||[];ae=0&&y.params.splice(ae,1)}if($.path!=="/"&&(y.path=""+$.path+y.path),!pt.REQUIRE_ACCESS_TOKEN)return lr(y);if(I=I||pt.ACCESS_TOKEN,!I)throw new Error("An API access token is required to use Mapbox GL. "+U);if(I[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+U);return y.params=y.params.filter(function(he){return he.indexOf("access_token")===-1}),y.params.push("access_token="+I),lr(y)};function Et(m){return m.indexOf("mapbox:")===0}var er=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Ut(m){return er.test(m)}function Ft(m){return m.indexOf("sku=")>0&&Ut(m)}function bt(m){for(var y=0,I=m;y=1&&f.localStorage.setItem(I,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},ei.prototype.processRequests=function(y){},ei.prototype.postEvent=function(y,I,U,$){var ae=this;if(pt.EVENTS_URL){var he=Yt(pt.EVENTS_URL);he.params.push("access_token="+($||pt.ACCESS_TOKEN||""));var Oe={event:this.type,created:new Date(y).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:wr,userId:this.anonId},rt=I?x(Oe,I):Oe,gt={url:lr(he),headers:{"Content-Type":"text/plain"},body:JSON.stringify([rt])};this.pendingRequest=$r(gt,function(Mt){ae.pendingRequest=null,U(Mt),ae.saveEventData(),ae.processRequests($)})}},ei.prototype.queueRequest=function(y,I){this.queue.push(y),this.processRequests(I)};var Wr=function(m){function y(){m.call(this,"map.load"),this.success={},this.skuToken=""}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postMapLoadEvent=function(U,$,ae,he){this.skuToken=ae,(pt.EVENTS_URL&&he||pt.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(Oe){return Et(Oe)||Ut(Oe)}))&&this.queueRequest({id:$,timestamp:Date.now()},he)},y.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var ae=this.queue.shift(),he=ae.id,Oe=ae.timestamp;he&&this.success[he]||(this.anonId||this.fetchEventData(),z(this.anonId)||(this.anonId=P()),this.postEvent(Oe,{skuToken:this.skuToken},function(rt){rt||he&&($.success[he]=!0)},U))}},y}(ei),Ur=function(m){function y(I){m.call(this,"appUserTurnstile"),this._customAccessToken=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postTurnstileEvent=function(U,$){pt.EVENTS_URL&&pt.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(ae){return Et(ae)||Ut(ae)})&&this.queueRequest(Date.now(),$)},y.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var ae=Rr(pt.ACCESS_TOKEN),he=ae?ae.u:pt.ACCESS_TOKEN,Oe=he!==this.eventData.tokenU;z(this.anonId)||(this.anonId=P(),Oe=!0);var rt=this.queue.shift();if(this.eventData.lastSuccess){var gt=new Date(this.eventData.lastSuccess),Mt=new Date(rt),or=(rt-this.eventData.lastSuccess)/(24*60*60*1e3);Oe=Oe||or>=1||or<-1||gt.getDate()!==Mt.getDate()}else Oe=!0;if(!Oe)return this.processRequests();this.postEvent(rt,{"enabled.telemetry":!1},function(_r){_r||($.eventData.lastSuccess=rt,$.eventData.tokenU=he)},U)}},y}(ei),dt=new Ur,Ge=dt.postTurnstileEvent.bind(dt),Je=new Wr,je=Je.postMapLoadEvent.bind(Je),$e="mapbox-tiles",wt=500,Ie=50,xe=1e3*60*7,Ce;function vt(){f.caches&&!Ce&&(Ce=f.caches.open($e))}var nr;function ir(m,y){if(nr===void 0)try{new Response(new ReadableStream),nr=!0}catch(I){nr=!1}nr?y(m.body):m.blob().then(y)}function pr(m,y,I){if(vt(),!!Ce){var U={status:y.status,statusText:y.statusText,headers:new f.Headers};y.headers.forEach(function(he,Oe){return U.headers.set(Oe,he)});var $=me(y.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&U.headers.set("Expires",new Date(I+$["max-age"]*1e3).toUTCString());var ae=new Date(U.headers.get("Expires")).getTime()-I;aeDate.now()&&!I["no-cache"]}var fi=1/0;function Hi(m){fi++,fi>Ie&&(m.getActor().send("enforceCacheSizeLimit",wt),fi=0)}function Pn(m){vt(),Ce&&Ce.then(function(y){y.keys().then(function(I){for(var U=0;U=200&&I.status<300||I.status===0)&&I.response!==null){var $=I.response;if(m.type==="json")try{$=JSON.parse(I.response)}catch(ae){return y(ae)}y(null,$,I.getResponseHeader("Cache-Control"),I.getResponseHeader("Expires"))}else y(new ua(I.statusText,I.status,m.url))},I.send(m.body),{cancel:function(){return I.abort()}}}var Er=function(m,y){if(!_t(m.url)){if(f.fetch&&f.Request&&f.AbortController&&f.Request.prototype.hasOwnProperty("signal"))return tr(m,y);if(ke()&&self.worker&&self.worker.actor){var I=!0;return self.worker.actor.send("getResource",m,y,void 0,I)}}return ar(m,y)},Zr=function(m,y){return Er(x(m,{type:"json"}),y)},ri=function(m,y){return Er(x(m,{type:"arrayBuffer"}),y)},$r=function(m,y){return Er(x(m,{method:"POST"}),y)};function zi(m){var y=f.document.createElement("a");return y.href=m,y.protocol===f.document.location.protocol&&y.host===f.document.location.host}var Ji="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function en(m,y,I,U){var $=new f.Image,ae=f.URL;$.onload=function(){y(null,$),ae.revokeObjectURL($.src),$.onload=null,f.requestAnimationFrame(function(){$.src=Ji})},$.onerror=function(){return y(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var he=new f.Blob([new Uint8Array(m)],{type:"image/png"});$.cacheControl=I,$.expires=U,$.src=m.byteLength?ae.createObjectURL(he):Ji}function cn(m,y){var I=new f.Blob([new Uint8Array(m)],{type:"image/png"});f.createImageBitmap(I).then(function(U){y(null,U)}).catch(function(U){y(new Error("Could not load image because of "+U.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var yn,Mn,Ba=function(){yn=[],Mn=0};Ba();var la=function(m,y){if(Wt.supported&&(m.headers||(m.headers={}),m.headers.accept="image/webp,*/*"),Mn>=pt.MAX_PARALLEL_IMAGE_REQUESTS){var I={requestParameters:m,callback:y,cancelled:!1,cancel:function(){this.cancelled=!0}};return yn.push(I),I}Mn++;var U=!1,$=function(){if(!U)for(U=!0,Mn--;yn.length&&Mn0||this._oneTimeListeners&&this._oneTimeListeners[y]&&this._oneTimeListeners[y].length>0||this._eventedParent&&this._eventedParent.listens(y)},Wn.prototype.setEventedParent=function(y,I){return this._eventedParent=y,this._eventedParentData=I,this};var Ga=8,vo={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},jn={"*":{type:"source"}},St=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Cr={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Qr={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},pi={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},fn={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Sn={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},En={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ki={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},_n=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],ya={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Jn={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ma={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},_o={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},No={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},po={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Lo={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Co={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Fs={type:"array",value:"*"},zs={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},ul={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},cl={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},zl={type:"array",value:"*",minimum:1},cs={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},nl=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],Ss={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},fl={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Js={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},Os={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Io={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},us={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Zl={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Su={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},nc={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},ws={"*":{type:"string"}},Fn={$version:Ga,$root:vo,sources:jn,source:St,source_vector:Cr,source_raster:Qr,source_raster_dem:pi,source_geojson:fn,source_video:Sn,source_image:En,layer:ki,layout:_n,layout_background:ya,layout_fill:Jn,layout_circle:Ma,layout_heatmap:_o,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:No,layout_symbol:po,layout_raster:Lo,layout_hillshade:Co,filter:Fs,filter_operator:zs,geometry_type:ul,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:cl,expression:zl,light:cs,paint:nl,paint_fill:Ss,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:fl,paint_circle:Js,paint_heatmap:Os,paint_symbol:Io,paint_raster:us,paint_hillshade:Zl,paint_background:Su,transition:nc,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:ws},_a=function(y,I,U,$){this.message=(y?y+": ":"")+U,$&&(this.identifier=$),I!=null&&I.__line__&&(this.line=I.__line__)};function Vu(m){var y=m.key,I=m.value;return I?[new _a(y,I,"constants have been deprecated as of v8")]:[]}function Ol(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var U=0,$=y;U<$.length;U+=1){var ae=$[U];for(var he in ae)m[he]=ae[he]}return m}function xo(m){return m instanceof Number||m instanceof String||m instanceof Boolean?m.valueOf():m}function Yl(m){if(Array.isArray(m))return m.map(Yl);if(m instanceof Object&&!(m instanceof Number||m instanceof String||m instanceof Boolean)){var y={};for(var I in m)y[I]=Yl(m[I]);return y}return xo(m)}var Us=function(m){function y(I,U){m.call(this,U),this.message=U,this.key=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y}(Error),Hl=function(y,I){I===void 0&&(I=[]),this.parent=y,this.bindings={};for(var U=0,$=I;U<$.length;U+=1){var ae=$[U],he=ae[0],Oe=ae[1];this.bindings[he]=Oe}};Hl.prototype.concat=function(y){return new Hl(this,y)},Hl.prototype.get=function(y){if(this.bindings[y])return this.bindings[y];if(this.parent)return this.parent.get(y);throw new Error(y+" not found in scope.")},Hl.prototype.has=function(y){return this.bindings[y]?!0:this.parent?this.parent.has(y):!1};var ac={kind:"null"},aa={kind:"number"},Oo={kind:"string"},qo={kind:"boolean"},ql={kind:"color"},Pc={kind:"object"},Do={kind:"value"},rf={kind:"error"},Uf={kind:"collator"},ml={kind:"formatted"},Zc={kind:"resolvedImage"};function Kl(m,y){return{kind:"array",itemType:m,N:y}}function qs(m){if(m.kind==="array"){var y=qs(m.itemType);return typeof m.N=="number"?"array<"+y+", "+m.N+">":m.itemType.kind==="value"?"array":"array<"+y+">"}else return m.kind}var yu=[ac,aa,Oo,qo,ql,ml,Pc,Kl(Do),Zc];function oc(m,y){if(y.kind==="error")return null;if(m.kind==="array"){if(y.kind==="array"&&(y.N===0&&y.itemType.kind==="value"||!oc(m.itemType,y.itemType))&&(typeof m.N!="number"||m.N===y.N))return null}else{if(m.kind===y.kind)return null;if(m.kind==="value")for(var I=0,U=yu;I255?255:gt}function $(gt){return gt<0?0:gt>1?1:gt}function ae(gt){return gt[gt.length-1]==="%"?U(parseFloat(gt)/100*255):U(parseInt(gt))}function he(gt){return gt[gt.length-1]==="%"?$(parseFloat(gt)/100):$(parseFloat(gt))}function Oe(gt,Mt,or){return or<0?or+=1:or>1&&(or-=1),or*6<1?gt+(Mt-gt)*or*6:or*2<1?Mt:or*3<2?gt+(Mt-gt)*(2/3-or)*6:gt}function rt(gt){var Mt=gt.replace(/ /g,"").toLowerCase();if(Mt in I)return I[Mt].slice();if(Mt[0]==="#"){if(Mt.length===4){var or=parseInt(Mt.substr(1),16);return or>=0&&or<=4095?[(or&3840)>>4|(or&3840)>>8,or&240|(or&240)>>4,or&15|(or&15)<<4,1]:null}else if(Mt.length===7){var or=parseInt(Mt.substr(1),16);return or>=0&&or<=16777215?[(or&16711680)>>16,(or&65280)>>8,or&255,1]:null}return null}var _r=Mt.indexOf("("),vr=Mt.indexOf(")");if(_r!==-1&&vr+1===Mt.length){var Fr=Mt.substr(0,_r),ai=Mt.substr(_r+1,vr-(_r+1)).split(","),Gi=1;switch(Fr){case"rgba":if(ai.length!==4)return null;Gi=he(ai.pop());case"rgb":return ai.length!==3?null:[ae(ai[0]),ae(ai[1]),ae(ai[2]),Gi];case"hsla":if(ai.length!==4)return null;Gi=he(ai.pop());case"hsl":if(ai.length!==3)return null;var Ti=(parseFloat(ai[0])%360+360)%360/360,bn=he(ai[1]),rn=he(ai[2]),xn=rn<=.5?rn*(bn+1):rn+bn-rn*bn,Dn=rn*2-xn;return[U(Oe(Dn,xn,Ti+1/3)*255),U(Oe(Dn,xn,Ti)*255),U(Oe(Dn,xn,Ti-1/3)*255),Gi];default:return null}}return null}try{y.parseCSSColor=rt}catch(gt){}}),kf=Nh.parseCSSColor,fs=function(y,I,U,$){$===void 0&&($=1),this.r=y,this.g=I,this.b=U,this.a=$};fs.parse=function(y){if(y){if(y instanceof fs)return y;if(typeof y=="string"){var I=kf(y);if(I)return new fs(I[0]/255*I[3],I[1]/255*I[3],I[2]/255*I[3],I[3])}}},fs.prototype.toString=function(){var y=this.toArray(),I=y[0],U=y[1],$=y[2],ae=y[3];return"rgba("+Math.round(I)+","+Math.round(U)+","+Math.round($)+","+ae+")"},fs.prototype.toArray=function(){var y=this,I=y.r,U=y.g,$=y.b,ae=y.a;return ae===0?[0,0,0,0]:[I*255/ae,U*255/ae,$*255/ae,ae]},fs.black=new fs(0,0,0,1),fs.white=new fs(1,1,1,1),fs.transparent=new fs(0,0,0,0),fs.red=new fs(1,0,0,1);var nf=function(y,I,U){y?this.sensitivity=I?"variant":"case":this.sensitivity=I?"accent":"base",this.locale=U,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};nf.prototype.compare=function(y,I){return this.collator.compare(y,I)},nf.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Vf=function(y,I,U,$,ae){this.text=y,this.image=I,this.scale=U,this.fontStack=$,this.textColor=ae},Jl=function(y){this.sections=y};Jl.fromString=function(y){return new Jl([new Vf(y,null,null,null,null)])},Jl.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(y){return y.text.length!==0||y.image&&y.image.name.length!==0})},Jl.factory=function(y){return y instanceof Jl?y:Jl.fromString(y)},Jl.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(y){return y.text}).join("")},Jl.prototype.serialize=function(){for(var y=["format"],I=0,U=this.sections;I=0&&m<=255&&typeof y=="number"&&y>=0&&y<=255&&typeof I=="number"&&I>=0&&I<=255)){var $=typeof U=="number"?[m,y,I,U]:[m,y,I];return"Invalid rgba value ["+$.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof U=="undefined"||typeof U=="number"&&U>=0&&U<=1?null:"Invalid rgba value ["+[m,y,I,U].join(", ")+"]: 'a' must be between 0 and 1."}function Fu(m){if(m===null)return!0;if(typeof m=="string")return!0;if(typeof m=="boolean")return!0;if(typeof m=="number")return!0;if(m instanceof fs)return!0;if(m instanceof nf)return!0;if(m instanceof Jl)return!0;if(m instanceof hl)return!0;if(Array.isArray(m)){for(var y=0,I=m;y2){var Oe=y[1];if(typeof Oe!="string"||!(Oe in uc)||Oe==="object")return I.error('The item type argument of "array" must be one of string, number, boolean',1);he=uc[Oe],U++}else he=Do;var rt;if(y.length>3){if(y[2]!==null&&(typeof y[2]!="number"||y[2]<0||y[2]!==Math.floor(y[2])))return I.error('The length argument to "array" must be a positive integer literal',2);rt=y[2],U++}$=Kl(he,rt)}else $=uc[ae];for(var gt=[];U1)&&I.push($)}}return I.concat(this.args.map(function(ae){return ae.serialize()}))};var Gu=function(y){this.type=ml,this.sections=y};Gu.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var U=y[1];if(!Array.isArray(U)&&typeof U=="object")return I.error("First argument must be an image or text section.");for(var $=[],ae=!1,he=1;he<=y.length-1;++he){var Oe=y[he];if(ae&&typeof Oe=="object"&&!Array.isArray(Oe)){ae=!1;var rt=null;if(Oe["font-scale"]&&(rt=I.parse(Oe["font-scale"],1,aa),!rt))return null;var gt=null;if(Oe["text-font"]&&(gt=I.parse(Oe["text-font"],1,Kl(Oo)),!gt))return null;var Mt=null;if(Oe["text-color"]&&(Mt=I.parse(Oe["text-color"],1,ql),!Mt))return null;var or=$[$.length-1];or.scale=rt,or.font=gt,or.textColor=Mt}else{var _r=I.parse(y[he],1,Do);if(!_r)return null;var vr=_r.type.kind;if(vr!=="string"&&vr!=="value"&&vr!=="null"&&vr!=="resolvedImage")return I.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ae=!0,$.push({content:_r,scale:null,font:null,textColor:null})}}return new Gu($)},Gu.prototype.evaluate=function(y){var I=function(U){var $=U.content.evaluate(y);return Cs($)===Zc?new Vf("",$,null,null,null):new Vf(js($),null,U.scale?U.scale.evaluate(y):null,U.font?U.font.evaluate(y).join(","):null,U.textColor?U.textColor.evaluate(y):null)};return new Jl(this.sections.map(I))},Gu.prototype.eachChild=function(y){for(var I=0,U=this.sections;I-1),U},Bs.prototype.eachChild=function(y){y(this.input)},Bs.prototype.outputDefined=function(){return!1},Bs.prototype.serialize=function(){return["image",this.input.serialize()]};var ad={"to-boolean":qo,"to-color":ql,"to-number":aa,"to-string":Oo},Po=function(y,I){this.type=y,this.args=I};Po.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var U=y[0];if((U==="to-boolean"||U==="to-string")&&y.length!==2)return I.error("Expected one argument.");for(var $=ad[U],ae=[],he=1;he4?U="Invalid rbga value "+JSON.stringify(I)+": expected an array containing either three or four numeric values.":U=lc(I[0],I[1],I[2],I[3]),!U))return new fs(I[0]/255,I[1]/255,I[2]/255,I[3])}throw new gs(U||"Could not parse color from value '"+(typeof I=="string"?I:String(JSON.stringify(I)))+"'")}else if(this.type.kind==="number"){for(var rt=null,gt=0,Mt=this.args;gt=y[2]||m[1]<=y[1]||m[3]>=y[3])}function xh(m,y){var I=Ic(m[0]),U=mf(m[1]),$=Math.pow(2,y.z);return[Math.round(I*$*wl),Math.round(U*$*wl)]}function Qf(m,y,I){var U=m[0]-y[0],$=m[1]-y[1],ae=m[0]-I[0],he=m[1]-I[1];return U*he-ae*$===0&&U*ae<=0&&$*he<=0}function yf(m,y,I){return y[1]>m[1]!=I[1]>m[1]&&m[0]<(I[0]-y[0])*(m[1]-y[1])/(I[1]-y[1])+y[0]}function Yc(m,y){for(var I=!1,U=0,$=y.length;U<$;U++)for(var ae=y[U],he=0,Oe=ae.length;he0&&or<0||Mt<0&&or>0}function Hf(m,y,I,U){var $=[y[0]-m[0],y[1]-m[1]],ae=[U[0]-I[0],U[1]-I[1]];return th(ae,$)===0?!1:!!(ju(m,y,I,U)&&ju(I,U,m,y))}function cc(m,y,I){for(var U=0,$=I;U<$.length;U+=1)for(var ae=$[U],he=0;heI[2]){var $=U*.5,ae=m[0]-I[0]>$?-U:I[0]-m[0]>$?U:0;ae===0&&(ae=m[0]-I[2]>$?-U:I[2]-m[0]>$?U:0),m[0]+=ae}Gf(y,m)}function jf(m){m[0]=m[1]=1/0,m[2]=m[3]=-1/0}function Uh(m,y,I,U){for(var $=Math.pow(2,U.z)*wl,ae=[U.x*wl,U.y*wl],he=[],Oe=0,rt=m;Oe=0)return!1;var I=!0;return m.eachChild(function(U){I&&!Eu(U,y)&&(I=!1)}),I}var Dc=function(y,I){this.type=I.type,this.name=y,this.boundExpression=I};Dc.parse=function(y,I){if(y.length!==2||typeof y[1]!="string")return I.error("'var' expression requires exactly one string literal argument.");var U=y[1];return I.scope.has(U)?new Dc(U,I.scope.get(U)):I.error('Unknown variable "'+U+'". Make sure "'+U+'" has been bound in an enclosing "let" expression before using it.',1)},Dc.prototype.evaluate=function(y){return this.boundExpression.evaluate(y)},Dc.prototype.eachChild=function(){},Dc.prototype.outputDefined=function(){return!1},Dc.prototype.serialize=function(){return["var",this.name]};var ks=function(y,I,U,$,ae){I===void 0&&(I=[]),$===void 0&&($=new Hl),ae===void 0&&(ae=[]),this.registry=y,this.path=I,this.key=I.map(function(he){return"["+he+"]"}).join(""),this.scope=$,this.errors=ae,this.expectedType=U};ks.prototype.parse=function(y,I,U,$,ae){return ae===void 0&&(ae={}),I?this.concat(I,U,$)._parse(y,ae):this._parse(y,ae)},ks.prototype._parse=function(y,I){(y===null||typeof y=="string"||typeof y=="boolean"||typeof y=="number")&&(y=["literal",y]);function U(Mt,or,_r){return _r==="assert"?new bl(or,[Mt]):_r==="coerce"?new Po(or,[Mt]):Mt}if(Array.isArray(y)){if(y.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=y[0];if(typeof $!="string")return this.error("Expression name must be a string, but found "+typeof $+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var ae=this.registry[$];if(ae){var he=ae.parse(y,this);if(!he)return null;if(this.expectedType){var Oe=this.expectedType,rt=he.type;if((Oe.kind==="string"||Oe.kind==="number"||Oe.kind==="boolean"||Oe.kind==="object"||Oe.kind==="array")&&rt.kind==="value")he=U(he,Oe,I.typeAnnotation||"assert");else if((Oe.kind==="color"||Oe.kind==="formatted"||Oe.kind==="resolvedImage")&&(rt.kind==="value"||rt.kind==="string"))he=U(he,Oe,I.typeAnnotation||"coerce");else if(this.checkSubtype(Oe,rt))return null}if(!(he instanceof Go)&&he.type.kind!=="resolvedImage"&&bc(he)){var gt=new Yo;try{he=new Go(he.type,he.evaluate(gt))}catch(Mt){return this.error(Mt.message),null}}return he}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof y=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof y=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof y+" instead.")},ks.prototype.concat=function(y,I,U){var $=typeof y=="number"?this.path.concat(y):this.path,ae=U?this.scope.concat(U):this.scope;return new ks(this.registry,$,I||null,ae,this.errors)},ks.prototype.error=function(y){for(var I=[],U=arguments.length-1;U-- >0;)I[U]=arguments[U+1];var $=""+this.key+I.map(function(ae){return"["+ae+"]"}).join("");this.errors.push(new Us($,y))},ks.prototype.checkSubtype=function(y,I){var U=oc(y,I);return U&&this.error(U),U};function bc(m){if(m instanceof Dc)return bc(m.boundExpression);if(m instanceof Pa&&m.name==="error")return!1;if(m instanceof Hu)return!1;if(m instanceof Mu)return!1;var y=m instanceof Po||m instanceof bl,I=!0;return m.eachChild(function(U){y?I=I&&bc(U):I=I&&U instanceof Go}),I?ih(m)&&Eu(m,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function hu(m,y){for(var I=m.length-1,U=0,$=I,ae=0,he,Oe;U<=$;)if(ae=Math.floor((U+$)/2),he=m[ae],Oe=m[ae+1],he<=y){if(ae===I||yy)$=ae-1;else throw new gs("Input is not a number.");return 0}var _u=function(y,I,U){this.type=y,this.input=I,this.labels=[],this.outputs=[];for(var $=0,ae=U;$=Oe)return I.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',gt);var or=I.parse(rt,Mt,ae);if(!or)return null;ae=ae||or.type,$.push([Oe,or])}return new _u(ae,U,$)},_u.prototype.evaluate=function(y){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return U[0].evaluate(y);var ae=I.length;if($>=I[ae-1])return U[ae-1].evaluate(y);var he=hu(I,$);return U[he].evaluate(y)},_u.prototype.eachChild=function(y){y(this.input);for(var I=0,U=this.outputs;I0&&y.push(this.labels[I]),y.push(this.outputs[I].serialize());return y};function al(m,y,I){return m*(1-I)+y*I}function nh(m,y,I){return new fs(al(m.r,y.r,I),al(m.g,y.g,I),al(m.b,y.b,I),al(m.a,y.a,I))}function wh(m,y,I){return m.map(function(U,$){return al(U,y[$],I)})}var zu=Object.freeze({__proto__:null,number:al,color:nh,array:wh}),Fc=.95047,wc=1,bd=1.08883,_f=4/29,Lf=6/29,Ou=3*Lf*Lf,xf=Lf*Lf*Lf,jl=Math.PI/180,lf=180/Math.PI;function Vh(m){return m>xf?Math.pow(m,1/3):m/Ou+_f}function Pf(m){return m>Lf?m*m*m:Ou*(m-_f)}function Ls(m){return 255*(m<=.0031308?12.92*m:1.055*Math.pow(m,1/2.4)-.055)}function du(m){return m/=255,m<=.04045?m/12.92:Math.pow((m+.055)/1.055,2.4)}function Cu(m){var y=du(m.r),I=du(m.g),U=du(m.b),$=Vh((.4124564*y+.3575761*I+.1804375*U)/Fc),ae=Vh((.2126729*y+.7151522*I+.072175*U)/wc),he=Vh((.0193339*y+.119192*I+.9503041*U)/bd);return{l:116*ae-16,a:500*($-ae),b:200*(ae-he),alpha:m.a}}function Wf(m){var y=(m.l+16)/116,I=isNaN(m.a)?y:y+m.a/500,U=isNaN(m.b)?y:y-m.b/200;return y=wc*Pf(y),I=Fc*Pf(I),U=bd*Pf(U),new fs(Ls(3.2404542*I-1.5371385*y-.4985314*U),Ls(-.969266*I+1.8760108*y+.041556*U),Ls(.0556434*I-.2040259*y+1.0572252*U),m.alpha)}function Vs(m,y,I){return{l:al(m.l,y.l,I),a:al(m.a,y.a,I),b:al(m.b,y.b,I),alpha:al(m.alpha,y.alpha,I)}}function bf(m){var y=Cu(m),I=y.l,U=y.a,$=y.b,ae=Math.atan2($,U)*lf;return{h:ae<0?ae+360:ae,c:Math.sqrt(U*U+$*$),l:I,alpha:m.a}}function zc(m){var y=m.h*jl,I=m.c,U=m.l;return Wf({l:U,a:Math.cos(y)*I,b:Math.sin(y)*I,alpha:m.alpha})}function Wu(m,y,I){var U=y-m;return m+I*(U>180||U<-180?U-360*Math.round(U/360):U)}function If(m,y,I){return{h:Wu(m.h,y.h,I),c:al(m.c,y.c,I),l:al(m.l,y.l,I),alpha:al(m.alpha,y.alpha,I)}}var Xu={forward:Cu,reverse:Wf,interpolate:Vs},uf={forward:bf,reverse:zc,interpolate:If},Xf=Object.freeze({__proto__:null,lab:Xu,hcl:uf}),Wl=function(y,I,U,$,ae){this.type=y,this.operator=I,this.interpolation=U,this.input=$,this.labels=[],this.outputs=[];for(var he=0,Oe=ae;he1}))return I.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:rt}}else return I.error("Unknown interpolation type "+String($[0]),1,0);if(y.length-1<4)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if((y.length-1)%2!==0)return I.error("Expected an even number of arguments.");if(ae=I.parse(ae,2,aa),!ae)return null;var gt=[],Mt=null;U==="interpolate-hcl"||U==="interpolate-lab"?Mt=ql:I.expectedType&&I.expectedType.kind!=="value"&&(Mt=I.expectedType);for(var or=0;or=_r)return I.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Fr);var Gi=I.parse(vr,ai,Mt);if(!Gi)return null;Mt=Mt||Gi.type,gt.push([_r,Gi])}return Mt.kind!=="number"&&Mt.kind!=="color"&&!(Mt.kind==="array"&&Mt.itemType.kind==="number"&&typeof Mt.N=="number")?I.error("Type "+qs(Mt)+" is not interpolatable."):new Wl(Mt,U,$,ae,gt)},Wl.prototype.evaluate=function(y){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return U[0].evaluate(y);var ae=I.length;if($>=I[ae-1])return U[ae-1].evaluate(y);var he=hu(I,$),Oe=I[he],rt=I[he+1],gt=Wl.interpolationFactor(this.interpolation,$,Oe,rt),Mt=U[he].evaluate(y),or=U[he+1].evaluate(y);return this.operator==="interpolate"?zu[this.type.kind.toLowerCase()](Mt,or,gt):this.operator==="interpolate-hcl"?uf.reverse(uf.interpolate(uf.forward(Mt),uf.forward(or),gt)):Xu.reverse(Xu.interpolate(Xu.forward(Mt),Xu.forward(or),gt))},Wl.prototype.eachChild=function(y){y(this.input);for(var I=0,U=this.outputs;I=U.length)throw new gs("Array index out of bounds: "+I+" > "+(U.length-1)+".");if(I!==Math.floor(I))throw new gs("Array index must be an integer, but found "+I+" instead.");return U[I]},Tc.prototype.eachChild=function(y){y(this.index),y(this.input)},Tc.prototype.outputDefined=function(){return!1},Tc.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Tl=function(y,I){this.type=qo,this.needle=y,this.haystack=I};Tl.parse=function(y,I){if(y.length!==3)return I.error("Expected 2 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,Do),$=I.parse(y[2],2,Do);return!U||!$?null:Cf(U.type,[qo,Oo,aa,ac,Do])?new Tl(U,$):I.error("Expected first argument to be of type boolean, string, number or null, but found "+qs(U.type)+" instead")},Tl.prototype.evaluate=function(y){var I=this.needle.evaluate(y),U=this.haystack.evaluate(y);if(!U)return!1;if(!sc(I,["boolean","string","number","null"]))throw new gs("Expected first argument to be of type boolean, string, number or null, but found "+qs(Cs(I))+" instead.");if(!sc(U,["string","array"]))throw new gs("Expected second argument to be of type array or string, but found "+qs(Cs(U))+" instead.");return U.indexOf(I)>=0},Tl.prototype.eachChild=function(y){y(this.needle),y(this.haystack)},Tl.prototype.outputDefined=function(){return!0},Tl.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var vu=function(y,I,U){this.type=aa,this.needle=y,this.haystack=I,this.fromIndex=U};vu.parse=function(y,I){if(y.length<=2||y.length>=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,Do),$=I.parse(y[2],2,Do);if(!U||!$)return null;if(!Cf(U.type,[qo,Oo,aa,ac,Do]))return I.error("Expected first argument to be of type boolean, string, number or null, but found "+qs(U.type)+" instead");if(y.length===4){var ae=I.parse(y[3],3,aa);return ae?new vu(U,$,ae):null}else return new vu(U,$)},vu.prototype.evaluate=function(y){var I=this.needle.evaluate(y),U=this.haystack.evaluate(y);if(!sc(I,["boolean","string","number","null"]))throw new gs("Expected first argument to be of type boolean, string, number or null, but found "+qs(Cs(I))+" instead.");if(!sc(U,["string","array"]))throw new gs("Expected second argument to be of type array or string, but found "+qs(Cs(U))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(y);return U.indexOf(I,$)}return U.indexOf(I)},vu.prototype.eachChild=function(y){y(this.needle),y(this.haystack),this.fromIndex&&y(this.fromIndex)},vu.prototype.outputDefined=function(){return!1},vu.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var y=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),y]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var qc=function(y,I,U,$,ae,he){this.inputType=y,this.type=I,this.input=U,this.cases=$,this.outputs=ae,this.otherwise=he};qc.parse=function(y,I){if(y.length<5)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if(y.length%2!==1)return I.error("Expected an even number of arguments.");var U,$;I.expectedType&&I.expectedType.kind!=="value"&&($=I.expectedType);for(var ae={},he=[],Oe=2;OeNumber.MAX_SAFE_INTEGER)return Mt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof vr=="number"&&Math.floor(vr)!==vr)return Mt.error("Numeric branch labels must be integer values.");if(!U)U=Cs(vr);else if(Mt.checkSubtype(U,Cs(vr)))return null;if(typeof ae[String(vr)]!="undefined")return Mt.error("Branch labels must be unique.");ae[String(vr)]=he.length}var Fr=I.parse(gt,Oe,$);if(!Fr)return null;$=$||Fr.type,he.push(Fr)}var ai=I.parse(y[1],1,Do);if(!ai)return null;var Gi=I.parse(y[y.length-1],y.length-1,$);return!Gi||ai.type.kind!=="value"&&I.concat(1).checkSubtype(U,ai.type)?null:new qc(U,$,ai,ae,he,Gi)},qc.prototype.evaluate=function(y){var I=this.input.evaluate(y),U=Cs(I)===this.inputType&&this.outputs[this.cases[I]]||this.otherwise;return U.evaluate(y)},qc.prototype.eachChild=function(y){y(this.input),this.outputs.forEach(y),y(this.otherwise)},qc.prototype.outputDefined=function(){return this.outputs.every(function(y){return y.outputDefined()})&&this.otherwise.outputDefined()},qc.prototype.serialize=function(){for(var y=this,I=["match",this.input.serialize()],U=Object.keys(this.cases).sort(),$=[],ae={},he=0,Oe=U;he=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,Do),$=I.parse(y[2],2,aa);if(!U||!$)return null;if(!Cf(U.type,[Kl(Do),Oo,Do]))return I.error("Expected first argument to be of type array or string, but found "+qs(U.type)+" instead");if(y.length===4){var ae=I.parse(y[3],3,aa);return ae?new fc(U.type,U,$,ae):null}else return new fc(U.type,U,$)},fc.prototype.evaluate=function(y){var I=this.input.evaluate(y),U=this.beginIndex.evaluate(y);if(!sc(I,["string","array"]))throw new gs("Expected first argument to be of type array or string, but found "+qs(Cs(I))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(y);return I.slice(U,$)}return I.slice(U)},fc.prototype.eachChild=function(y){y(this.input),y(this.beginIndex),this.endIndex&&y(this.endIndex)},fc.prototype.outputDefined=function(){return!1},fc.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var y=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),y]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Bc(m,y){return m==="=="||m==="!="?y.kind==="boolean"||y.kind==="string"||y.kind==="number"||y.kind==="null"||y.kind==="value":y.kind==="string"||y.kind==="number"||y.kind==="value"}function At(m,y,I){return y===I}function Xt(m,y,I){return y!==I}function kr(m,y,I){return yI}function Kr(m,y,I){return y<=I}function Ei(m,y,I){return y>=I}function Wi(m,y,I,U){return U.compare(y,I)===0}function hn(m,y,I,U){return!Wi(m,y,I,U)}function Tn(m,y,I,U){return U.compare(y,I)<0}function Bn(m,y,I,U){return U.compare(y,I)>0}function Zi(m,y,I,U){return U.compare(y,I)<=0}function $i(m,y,I,U){return U.compare(y,I)>=0}function an(m,y,I){var U=m!=="=="&&m!=="!=";return function(){function $(ae,he,Oe){this.type=qo,this.lhs=ae,this.rhs=he,this.collator=Oe,this.hasUntypedArgument=ae.type.kind==="value"||he.type.kind==="value"}return $.parse=function(he,Oe){if(he.length!==3&&he.length!==4)return Oe.error("Expected two or three arguments.");var rt=he[0],gt=Oe.parse(he[1],1,Do);if(!gt)return null;if(!Bc(rt,gt.type))return Oe.concat(1).error('"'+rt+`" comparisons are not supported for type '`+qs(gt.type)+"'.");var Mt=Oe.parse(he[2],2,Do);if(!Mt)return null;if(!Bc(rt,Mt.type))return Oe.concat(2).error('"'+rt+`" comparisons are not supported for type '`+qs(Mt.type)+"'.");if(gt.type.kind!==Mt.type.kind&>.type.kind!=="value"&&Mt.type.kind!=="value")return Oe.error("Cannot compare types '"+qs(gt.type)+"' and '"+qs(Mt.type)+"'.");U&&(gt.type.kind==="value"&&Mt.type.kind!=="value"?gt=new bl(Mt.type,[gt]):gt.type.kind!=="value"&&Mt.type.kind==="value"&&(Mt=new bl(gt.type,[Mt])));var or=null;if(he.length===4){if(gt.type.kind!=="string"&&Mt.type.kind!=="string"&>.type.kind!=="value"&&Mt.type.kind!=="value")return Oe.error("Cannot use collator to compare non-string types.");if(or=Oe.parse(he[3],3,Uf),!or)return null}return new $(gt,Mt,or)},$.prototype.evaluate=function(he){var Oe=this.lhs.evaluate(he),rt=this.rhs.evaluate(he);if(U&&this.hasUntypedArgument){var gt=Cs(Oe),Mt=Cs(rt);if(gt.kind!==Mt.kind||!(gt.kind==="string"||gt.kind==="number"))throw new gs('Expected arguments for "'+m+'" to be (string, string) or (number, number), but found ('+gt.kind+", "+Mt.kind+") instead.")}if(this.collator&&!U&&this.hasUntypedArgument){var or=Cs(Oe),_r=Cs(rt);if(or.kind!=="string"||_r.kind!=="string")return y(he,Oe,rt)}return this.collator?I(he,Oe,rt,this.collator.evaluate(he)):y(he,Oe,rt)},$.prototype.eachChild=function(he){he(this.lhs),he(this.rhs),this.collator&&he(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var he=[m];return this.eachChild(function(Oe){he.push(Oe.serialize())}),he},$}()}var Di=an("==",At,Wi),$n=an("!=",Xt,hn),ka=an("<",kr,Tn),Ra=an(">",Ar,Bn),La=an("<=",Kr,Zi),Na=an(">=",Ei,$i),Yn=function(y,I,U,$,ae){this.type=Oo,this.number=y,this.locale=I,this.currency=U,this.minFractionDigits=$,this.maxFractionDigits=ae};Yn.parse=function(y,I){if(y.length!==3)return I.error("Expected two arguments.");var U=I.parse(y[1],1,aa);if(!U)return null;var $=y[2];if(typeof $!="object"||Array.isArray($))return I.error("NumberFormat options argument must be an object.");var ae=null;if($.locale&&(ae=I.parse($.locale,1,Oo),!ae))return null;var he=null;if($.currency&&(he=I.parse($.currency,1,Oo),!he))return null;var Oe=null;if($["min-fraction-digits"]&&(Oe=I.parse($["min-fraction-digits"],1,aa),!Oe))return null;var rt=null;return $["max-fraction-digits"]&&(rt=I.parse($["max-fraction-digits"],1,aa),!rt)?null:new Yn(U,ae,he,Oe,rt)},Yn.prototype.evaluate=function(y){return new Intl.NumberFormat(this.locale?this.locale.evaluate(y):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(y):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(y):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(y):void 0}).format(this.number.evaluate(y))},Yn.prototype.eachChild=function(y){y(this.number),this.locale&&y(this.locale),this.currency&&y(this.currency),this.minFractionDigits&&y(this.minFractionDigits),this.maxFractionDigits&&y(this.maxFractionDigits)},Yn.prototype.outputDefined=function(){return!1},Yn.prototype.serialize=function(){var y={};return this.locale&&(y.locale=this.locale.serialize()),this.currency&&(y.currency=this.currency.serialize()),this.minFractionDigits&&(y["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(y["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),y]};var zn=function(y){this.type=aa,this.input=y};zn.parse=function(y,I){if(y.length!==2)return I.error("Expected 1 argument, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1);return U?U.type.kind!=="array"&&U.type.kind!=="string"&&U.type.kind!=="value"?I.error("Expected argument of type string or array, but found "+qs(U.type)+" instead."):new zn(U):null},zn.prototype.evaluate=function(y){var I=this.input.evaluate(y);if(typeof I=="string")return I.length;if(Array.isArray(I))return I.length;throw new gs("Expected value to be of type string or array, but found "+qs(Cs(I))+" instead.")},zn.prototype.eachChild=function(y){y(this.input)},zn.prototype.outputDefined=function(){return!1},zn.prototype.serialize=function(){var y=["length"];return this.eachChild(function(I){y.push(I.serialize())}),y};var Ka={"==":Di,"!=":$n,">":Ra,"<":ka,">=":Na,"<=":La,array:bl,at:Tc,boolean:bl,case:cf,coalesce:Zu,collator:Hu,format:Gu,image:Bs,in:Tl,"index-of":vu,interpolate:Wl,"interpolate-hcl":Wl,"interpolate-lab":Wl,length:zn,let:Oc,literal:Go,match:qc,number:bl,"number-format":Yn,object:bl,slice:fc,step:_u,string:bl,"to-boolean":Po,"to-color":Po,"to-number":Po,"to-string":Po,var:Dc,within:Mu};function bo(m,y){var I=y[0],U=y[1],$=y[2],ae=y[3];I=I.evaluate(m),U=U.evaluate(m),$=$.evaluate(m);var he=ae?ae.evaluate(m):1,Oe=lc(I,U,$,he);if(Oe)throw new gs(Oe);return new fs(I/255*he,U/255*he,$/255*he,he)}function Xo(m,y){return m in y}function Ms(m,y){var I=y[m];return typeof I=="undefined"?null:I}function os(m,y,I,U){for(;I<=U;){var $=I+U>>1;if(y[$]===m)return!0;y[$]>m?U=$-1:I=$+1}return!1}function Ts(m){return{type:m}}Pa.register(Ka,{error:[rf,[Oo],function(m,y){var I=y[0];throw new gs(I.evaluate(m))}],typeof:[Oo,[Do],function(m,y){var I=y[0];return qs(Cs(I.evaluate(m)))}],"to-rgba":[Kl(aa,4),[ql],function(m,y){var I=y[0];return I.evaluate(m).toArray()}],rgb:[ql,[aa,aa,aa],bo],rgba:[ql,[aa,aa,aa,aa],bo],has:{type:qo,overloads:[[[Oo],function(m,y){var I=y[0];return Xo(I.evaluate(m),m.properties())}],[[Oo,Pc],function(m,y){var I=y[0],U=y[1];return Xo(I.evaluate(m),U.evaluate(m))}]]},get:{type:Do,overloads:[[[Oo],function(m,y){var I=y[0];return Ms(I.evaluate(m),m.properties())}],[[Oo,Pc],function(m,y){var I=y[0],U=y[1];return Ms(I.evaluate(m),U.evaluate(m))}]]},"feature-state":[Do,[Oo],function(m,y){var I=y[0];return Ms(I.evaluate(m),m.featureState||{})}],properties:[Pc,[],function(m){return m.properties()}],"geometry-type":[Oo,[],function(m){return m.geometryType()}],id:[Do,[],function(m){return m.id()}],zoom:[aa,[],function(m){return m.globals.zoom}],"heatmap-density":[aa,[],function(m){return m.globals.heatmapDensity||0}],"line-progress":[aa,[],function(m){return m.globals.lineProgress||0}],accumulated:[Do,[],function(m){return m.globals.accumulated===void 0?null:m.globals.accumulated}],"+":[aa,Ts(aa),function(m,y){for(var I=0,U=0,$=y;U<$.length;U+=1){var ae=$[U];I+=ae.evaluate(m)}return I}],"*":[aa,Ts(aa),function(m,y){for(var I=1,U=0,$=y;U<$.length;U+=1){var ae=$[U];I*=ae.evaluate(m)}return I}],"-":{type:aa,overloads:[[[aa,aa],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)-U.evaluate(m)}],[[aa],function(m,y){var I=y[0];return-I.evaluate(m)}]]},"/":[aa,[aa,aa],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)/U.evaluate(m)}],"%":[aa,[aa,aa],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)%U.evaluate(m)}],ln2:[aa,[],function(){return Math.LN2}],pi:[aa,[],function(){return Math.PI}],e:[aa,[],function(){return Math.E}],"^":[aa,[aa,aa],function(m,y){var I=y[0],U=y[1];return Math.pow(I.evaluate(m),U.evaluate(m))}],sqrt:[aa,[aa],function(m,y){var I=y[0];return Math.sqrt(I.evaluate(m))}],log10:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN10}],ln:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))}],log2:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN2}],sin:[aa,[aa],function(m,y){var I=y[0];return Math.sin(I.evaluate(m))}],cos:[aa,[aa],function(m,y){var I=y[0];return Math.cos(I.evaluate(m))}],tan:[aa,[aa],function(m,y){var I=y[0];return Math.tan(I.evaluate(m))}],asin:[aa,[aa],function(m,y){var I=y[0];return Math.asin(I.evaluate(m))}],acos:[aa,[aa],function(m,y){var I=y[0];return Math.acos(I.evaluate(m))}],atan:[aa,[aa],function(m,y){var I=y[0];return Math.atan(I.evaluate(m))}],min:[aa,Ts(aa),function(m,y){return Math.min.apply(Math,y.map(function(I){return I.evaluate(m)}))}],max:[aa,Ts(aa),function(m,y){return Math.max.apply(Math,y.map(function(I){return I.evaluate(m)}))}],abs:[aa,[aa],function(m,y){var I=y[0];return Math.abs(I.evaluate(m))}],round:[aa,[aa],function(m,y){var I=y[0],U=I.evaluate(m);return U<0?-Math.round(-U):Math.round(U)}],floor:[aa,[aa],function(m,y){var I=y[0];return Math.floor(I.evaluate(m))}],ceil:[aa,[aa],function(m,y){var I=y[0];return Math.ceil(I.evaluate(m))}],"filter-==":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1];return m.properties()[I.value]===U.value}],"filter-id-==":[qo,[Do],function(m,y){var I=y[0];return m.id()===I.value}],"filter-type-==":[qo,[Oo],function(m,y){var I=y[0];return m.geometryType()===I.value}],"filter-<":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$>ae}],"filter-id->":[qo,[Do],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U>$}],"filter-<=":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$<=ae}],"filter-id-<=":[qo,[Do],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U<=$}],"filter->=":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$>=ae}],"filter-id->=":[qo,[Do],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U>=$}],"filter-has":[qo,[Do],function(m,y){var I=y[0];return I.value in m.properties()}],"filter-has-id":[qo,[],function(m){return m.id()!==null&&m.id()!==void 0}],"filter-type-in":[qo,[Kl(Oo)],function(m,y){var I=y[0];return I.value.indexOf(m.geometryType())>=0}],"filter-id-in":[qo,[Kl(Do)],function(m,y){var I=y[0];return I.value.indexOf(m.id())>=0}],"filter-in-small":[qo,[Oo,Kl(Do)],function(m,y){var I=y[0],U=y[1];return U.value.indexOf(m.properties()[I.value])>=0}],"filter-in-large":[qo,[Oo,Kl(Do)],function(m,y){var I=y[0],U=y[1];return os(m.properties()[I.value],U.value,0,U.value.length-1)}],all:{type:qo,overloads:[[[qo,qo],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)&&U.evaluate(m)}],[Ts(qo),function(m,y){for(var I=0,U=y;I-1}function va(m){return!!m.expression&&m.expression.interpolated}function no(m){return m instanceof Number?"number":m instanceof String?"string":m instanceof Boolean?"boolean":Array.isArray(m)?"array":m===null?"null":typeof m}function _s(m){return typeof m=="object"&&m!==null&&!Array.isArray(m)}function is(m){return m}function $l(m,y){var I=y.type==="color",U=m.stops&&typeof m.stops[0][0]=="object",$=U||m.property!==void 0,ae=U||!$,he=m.type||(va(y)?"exponential":"interval");if(I&&(m=Ol({},m),m.stops&&(m.stops=m.stops.map(function(ha){return[ha[0],fs.parse(ha[1])]})),m.default?m.default=fs.parse(m.default):m.default=fs.parse(y.default)),m.colorSpace&&m.colorSpace!=="rgb"&&!Xf[m.colorSpace])throw new Error("Unknown color space: "+m.colorSpace);var Oe,rt,gt;if(he==="exponential")Oe=pu;else if(he==="interval")Oe=Nc;else if(he==="categorical"){Oe=Yu,rt=Object.create(null);for(var Mt=0,or=m.stops;Mt=m.stops[U-1][0])return m.stops[U-1][1];var $=hu(m.stops.map(function(ae){return ae[0]}),I);return m.stops[$][1]}function pu(m,y,I){var U=m.base!==void 0?m.base:1;if(no(I)!=="number")return ku(m.default,y.default);var $=m.stops.length;if($===1||I<=m.stops[0][0])return m.stops[0][1];if(I>=m.stops[$-1][0])return m.stops[$-1][1];var ae=hu(m.stops.map(function(or){return or[0]}),I),he=xu(I,U,m.stops[ae][0],m.stops[ae+1][0]),Oe=m.stops[ae][1],rt=m.stops[ae+1][1],gt=zu[y.type]||is;if(m.colorSpace&&m.colorSpace!=="rgb"){var Mt=Xf[m.colorSpace];gt=function(or,_r){return Mt.reverse(Mt.interpolate(Mt.forward(or),Mt.forward(_r),he))}}return typeof Oe.evaluate=="function"?{evaluate:function(){for(var _r=[],vr=arguments.length;vr--;)_r[vr]=arguments[vr];var Fr=Oe.evaluate.apply(void 0,_r),ai=rt.evaluate.apply(void 0,_r);if(!(Fr===void 0||ai===void 0))return gt(Fr,ai,he)}}:gt(Oe,rt,he)}function Uc(m,y,I){return y.type==="color"?I=fs.parse(I):y.type==="formatted"?I=Jl.fromString(I.toString()):y.type==="resolvedImage"?I=hl.fromString(I.toString()):no(I)!==y.type&&(y.type!=="enum"||!y.values[I])&&(I=void 0),ku(I,m.default,y.default)}function xu(m,y,I,U){var $=U-I,ae=m-I;return $===0?0:y===1?ae/$:(Math.pow(y,ae)-1)/(Math.pow(y,$)-1)}var Ac=function(y,I){this.expression=y,this._warningHistory={},this._evaluator=new Yo,this._defaultValue=I?ee(I):null,this._enumValues=I&&I.type==="enum"?I.values:null};Ac.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ae,he){return this._evaluator.globals=y,this._evaluator.feature=I,this._evaluator.featureState=U,this._evaluator.canonical=$,this._evaluator.availableImages=ae||null,this._evaluator.formattedSection=he,this.expression.evaluate(this._evaluator)},Ac.prototype.evaluate=function(y,I,U,$,ae,he){this._evaluator.globals=y,this._evaluator.feature=I||null,this._evaluator.featureState=U||null,this._evaluator.canonical=$,this._evaluator.availableImages=ae||null,this._evaluator.formattedSection=he||null;try{var Oe=this.expression.evaluate(this._evaluator);if(Oe==null||typeof Oe=="number"&&Oe!==Oe)return this._defaultValue;if(this._enumValues&&!(Oe in this._enumValues))throw new gs("Expected value to be one of "+Object.keys(this._enumValues).map(function(rt){return JSON.stringify(rt)}).join(", ")+", but found "+JSON.stringify(Oe)+" instead.");return Oe}catch(rt){return this._warningHistory[rt.message]||(this._warningHistory[rt.message]=!0,typeof console!="undefined"&&console.warn(rt.message)),this._defaultValue}};function Ua(m){return Array.isArray(m)&&m.length>0&&typeof m[0]=="string"&&m[0]in Ka}function oo(m,y){var I=new ks(Ka,[],y?Q(y):void 0),U=I.parse(m,void 0,void 0,void 0,y&&y.type==="string"?{typeAnnotation:"coerce"}:void 0);return U?Ho(new Ac(U,y)):yl(I.errors)}var Vc=function(y,I){this.kind=y,this._styleExpression=I,this.isStateDependent=y!=="constant"&&!Ws(I.expression)};Vc.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ae,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,U,$,ae,he)},Vc.prototype.evaluate=function(y,I,U,$,ae,he){return this._styleExpression.evaluate(y,I,U,$,ae,he)};var hc=function(y,I,U,$){this.kind=y,this.zoomStops=U,this._styleExpression=I,this.isStateDependent=y!=="camera"&&!Ws(I.expression),this.interpolationType=$};hc.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ae,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,U,$,ae,he)},hc.prototype.evaluate=function(y,I,U,$,ae,he){return this._styleExpression.evaluate(y,I,U,$,ae,he)},hc.prototype.interpolationFactor=function(y,I,U){return this.interpolationType?Wl.interpolationFactor(this.interpolationType,y,I,U):0};function Ku(m,y){if(m=oo(m,y),m.result==="error")return m;var I=m.value.expression,U=ih(I);if(!U&&!Xs(y))return yl([new Us("","data expressions not supported")]);var $=Eu(I,["zoom"]);if(!$&&!Ps(y))return yl([new Us("","zoom expressions not supported")]);var ae=B(I);if(!ae&&!$)return yl([new Us("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(ae instanceof Us)return yl([ae]);if(ae instanceof Wl&&!va(y))return yl([new Us("",'"interpolate" expressions cannot be used with this property')]);if(!ae)return Ho(U?new Vc("constant",m.value):new Vc("source",m.value));var he=ae instanceof Wl?ae.interpolation:void 0;return Ho(U?new hc("camera",m.value,ae.labels,he):new hc("composite",m.value,ae.labels,he))}var ue=function(y,I){this._parameters=y,this._specification=I,Ol(this,$l(this._parameters,this._specification))};ue.deserialize=function(y){return new ue(y._parameters,y._specification)},ue.serialize=function(y){return{_parameters:y._parameters,_specification:y._specification}};function w(m,y){if(_s(m))return new ue(m,y);if(Ua(m)){var I=Ku(m,y);if(I.result==="error")throw new Error(I.value.map(function($){return $.key+": "+$.message}).join(", "));return I.value}else{var U=m;return typeof m=="string"&&y.type==="color"&&(U=fs.parse(m)),{kind:"constant",evaluate:function(){return U}}}}function B(m){var y=null;if(m instanceof Oc)y=B(m.result);else if(m instanceof Zu)for(var I=0,U=m.args;IU.maximum?[new _a(y,I,I+" is greater than the maximum value "+U.maximum)]:[]}function ot(m){var y=m.valueSpec,I=xo(m.value.type),U,$={},ae,he,Oe=I!=="categorical"&&m.value.property===void 0,rt=!Oe,gt=no(m.value.stops)==="array"&&no(m.value.stops[0])==="array"&&no(m.value.stops[0][0])==="object",Mt=le({key:m.key,value:m.value,valueSpec:m.styleSpec.function,style:m.style,styleSpec:m.styleSpec,objectElementValidators:{stops:or,default:Fr}});return I==="identity"&&Oe&&Mt.push(new _a(m.key,m.value,'missing required property "property"')),I!=="identity"&&!m.value.stops&&Mt.push(new _a(m.key,m.value,'missing required property "stops"')),I==="exponential"&&m.valueSpec.expression&&!va(m.valueSpec)&&Mt.push(new _a(m.key,m.value,"exponential functions not supported")),m.styleSpec.$version>=8&&(rt&&!Xs(m.valueSpec)?Mt.push(new _a(m.key,m.value,"property functions not supported")):Oe&&!Ps(m.valueSpec)&&Mt.push(new _a(m.key,m.value,"zoom functions not supported"))),(I==="categorical"||gt)&&m.value.property===void 0&&Mt.push(new _a(m.key,m.value,'"property" property is required')),Mt;function or(ai){if(I==="identity")return[new _a(ai.key,ai.value,'identity function may not have a "stops" property')];var Gi=[],Ti=ai.value;return Gi=Gi.concat(qe({key:ai.key,value:Ti,valueSpec:ai.valueSpec,style:ai.style,styleSpec:ai.styleSpec,arrayElementValidator:_r})),no(Ti)==="array"&&Ti.length===0&&Gi.push(new _a(ai.key,Ti,"array must have at least one stop")),Gi}function _r(ai){var Gi=[],Ti=ai.value,bn=ai.key;if(no(Ti)!=="array")return[new _a(bn,Ti,"array expected, "+no(Ti)+" found")];if(Ti.length!==2)return[new _a(bn,Ti,"array length 2 expected, length "+Ti.length+" found")];if(gt){if(no(Ti[0])!=="object")return[new _a(bn,Ti,"object expected, "+no(Ti[0])+" found")];if(Ti[0].zoom===void 0)return[new _a(bn,Ti,"object stop key must have zoom")];if(Ti[0].value===void 0)return[new _a(bn,Ti,"object stop key must have value")];if(he&&he>xo(Ti[0].zoom))return[new _a(bn,Ti[0].zoom,"stop zoom values must appear in ascending order")];xo(Ti[0].zoom)!==he&&(he=xo(Ti[0].zoom),ae=void 0,$={}),Gi=Gi.concat(le({key:bn+"[0]",value:Ti[0],valueSpec:{zoom:{}},style:ai.style,styleSpec:ai.styleSpec,objectElementValidators:{zoom:Xe,value:vr}}))}else Gi=Gi.concat(vr({key:bn+"[0]",value:Ti[0],valueSpec:{},style:ai.style,styleSpec:ai.styleSpec},Ti));return Ua(Yl(Ti[1]))?Gi.concat([new _a(bn+"[1]",Ti[1],"expressions are not allowed in function stops.")]):Gi.concat(Qa({key:bn+"[1]",value:Ti[1],valueSpec:y,style:ai.style,styleSpec:ai.styleSpec}))}function vr(ai,Gi){var Ti=no(ai.value),bn=xo(ai.value),rn=ai.value!==null?ai.value:Gi;if(!U)U=Ti;else if(Ti!==U)return[new _a(ai.key,rn,Ti+" stop domain type must match previous stop domain type "+U)];if(Ti!=="number"&&Ti!=="string"&&Ti!=="boolean")return[new _a(ai.key,rn,"stop domain value must be a number, string, or boolean")];if(Ti!=="number"&&I!=="categorical"){var xn="number expected, "+Ti+" found";return Xs(y)&&I===void 0&&(xn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new _a(ai.key,rn,xn)]}return I==="categorical"&&Ti==="number"&&(!isFinite(bn)||Math.floor(bn)!==bn)?[new _a(ai.key,rn,"integer expected, found "+bn)]:I!=="categorical"&&Ti==="number"&&ae!==void 0&&bn=2&&m[1]!=="$id"&&m[1]!=="$type";case"in":return m.length>=3&&(typeof m[1]!="string"||Array.isArray(m[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return m.length!==3||Array.isArray(m[1])||Array.isArray(m[2]);case"any":case"all":for(var y=0,I=m.slice(1);yy?1:0}function Be(m){if(!Array.isArray(m))return!1;if(m[0]==="within")return!0;for(var y=1;y"||y==="<="||y===">="?We(m[1],m[2],y):y==="any"?it(m.slice(1)):y==="all"?["all"].concat(m.slice(1).map(tt)):y==="none"?["all"].concat(m.slice(1).map(tt).map(rr)):y==="in"?Dt(m[1],m.slice(2)):y==="!in"?rr(Dt(m[1],m.slice(2))):y==="has"?Ht(m[1]):y==="!has"?rr(Ht(m[1])):y==="within"?m:!0;return I}function We(m,y,I){switch(m){case"$type":return["filter-type-"+I,y];case"$id":return["filter-id-"+I,y];default:return["filter-"+I,m,y]}}function it(m){return["any"].concat(m.map(tt))}function Dt(m,y){if(y.length===0)return!1;switch(m){case"$type":return["filter-type-in",["literal",y]];case"$id":return["filter-id-in",["literal",y]];default:return y.length>200&&!y.some(function(I){return typeof I!=typeof y[0]})?["filter-in-large",m,["literal",y.sort(Re)]]:["filter-in-small",m,["literal",y]]}}function Ht(m){switch(m){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",m]}}function rr(m){return["!",m]}function dr(m){return Pr(Yl(m.value))?Tt(Ol({},m,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Sr(m)}function Sr(m){var y=m.value,I=m.key;if(no(y)!=="array")return[new _a(I,y,"array expected, "+no(y)+" found")];var U=m.styleSpec,$,ae=[];if(y.length<1)return[new _a(I,y,"filter array must have at least 1 element")];switch(ae=ae.concat(xr({key:I+"[0]",value:y[0],valueSpec:U.filter_operator,style:m.style,styleSpec:m.styleSpec})),xo(y[0])){case"<":case"<=":case">":case">=":y.length>=2&&xo(y[1])==="$type"&&ae.push(new _a(I,y,'"$type" cannot be use with operator "'+y[0]+'"'));case"==":case"!=":y.length!==3&&ae.push(new _a(I,y,'filter array for operator "'+y[0]+'" must have 3 elements'));case"in":case"!in":y.length>=2&&($=no(y[1]),$!=="string"&&ae.push(new _a(I+"[1]",y[1],"string expected, "+$+" found")));for(var he=2;he=Mt[vr+0]&&U>=Mt[vr+1])?(he[_r]=!0,ae.push(gt[_r])):he[_r]=!1}}},Ql.prototype._forEachCell=function(m,y,I,U,$,ae,he,Oe){for(var rt=this._convertToCellCoord(m),gt=this._convertToCellCoord(y),Mt=this._convertToCellCoord(I),or=this._convertToCellCoord(U),_r=rt;_r<=Mt;_r++)for(var vr=gt;vr<=or;vr++){var Fr=this.d*vr+_r;if(!(Oe&&!Oe(this._convertFromCellCoord(_r),this._convertFromCellCoord(vr),this._convertFromCellCoord(_r+1),this._convertFromCellCoord(vr+1)))&&$.call(this,m,y,I,U,Fr,ae,he,Oe))return}},Ql.prototype._convertFromCellCoord=function(m){return(m-this.padding)/this.scale},Ql.prototype._convertToCellCoord=function(m){return Math.max(0,Math.min(this.d-1,Math.floor(m*this.scale)+this.padding))},Ql.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var m=this.cells,y=$s+this.cells.length+1+1,I=0,U=0;U=0)){var or=m[Mt];gt[Mt]=Sl[rt].shallow.indexOf(Mt)>=0?or:He(or,y)}m instanceof Error&&(gt.message=m.message)}if(gt.$name)throw new Error("$name property is reserved for worker serialization logic.");return rt!=="Object"&&(gt.$name=rt),gt}throw new Error("can't serialize object of type "+typeof m)}function Ye(m){if(m==null||typeof m=="boolean"||typeof m=="number"||typeof m=="string"||m instanceof Boolean||m instanceof Number||m instanceof String||m instanceof Date||m instanceof RegExp||Te(m)||Ne(m)||ArrayBuffer.isView(m)||m instanceof dc)return m;if(Array.isArray(m))return m.map(Ye);if(typeof m=="object"){var y=m.$name||"Object",I=Sl[y],U=I.klass;if(!U)throw new Error("can't deserialize unregistered class "+y);if(U.deserialize)return U.deserialize(m);for(var $=Object.create(U.prototype),ae=0,he=Object.keys(m);ae=0?rt:Ye(rt)}}return $}throw new Error("can't deserialize object of type "+typeof m)}var Ct=function(){this.first=!0};Ct.prototype.update=function(y,I){var U=Math.floor(y);return this.first?(this.first=!1,this.lastIntegerZoom=U,this.lastIntegerZoomTime=0,this.lastZoom=y,this.lastFloorZoom=U,!0):(this.lastFloorZoom>U?(this.lastIntegerZoom=U+1,this.lastIntegerZoomTime=I):this.lastFloorZoom=128&&m<=255},Arabic:function(m){return m>=1536&&m<=1791},"Arabic Supplement":function(m){return m>=1872&&m<=1919},"Arabic Extended-A":function(m){return m>=2208&&m<=2303},"Hangul Jamo":function(m){return m>=4352&&m<=4607},"Unified Canadian Aboriginal Syllabics":function(m){return m>=5120&&m<=5759},Khmer:function(m){return m>=6016&&m<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(m){return m>=6320&&m<=6399},"General Punctuation":function(m){return m>=8192&&m<=8303},"Letterlike Symbols":function(m){return m>=8448&&m<=8527},"Number Forms":function(m){return m>=8528&&m<=8591},"Miscellaneous Technical":function(m){return m>=8960&&m<=9215},"Control Pictures":function(m){return m>=9216&&m<=9279},"Optical Character Recognition":function(m){return m>=9280&&m<=9311},"Enclosed Alphanumerics":function(m){return m>=9312&&m<=9471},"Geometric Shapes":function(m){return m>=9632&&m<=9727},"Miscellaneous Symbols":function(m){return m>=9728&&m<=9983},"Miscellaneous Symbols and Arrows":function(m){return m>=11008&&m<=11263},"CJK Radicals Supplement":function(m){return m>=11904&&m<=12031},"Kangxi Radicals":function(m){return m>=12032&&m<=12255},"Ideographic Description Characters":function(m){return m>=12272&&m<=12287},"CJK Symbols and Punctuation":function(m){return m>=12288&&m<=12351},Hiragana:function(m){return m>=12352&&m<=12447},Katakana:function(m){return m>=12448&&m<=12543},Bopomofo:function(m){return m>=12544&&m<=12591},"Hangul Compatibility Jamo":function(m){return m>=12592&&m<=12687},Kanbun:function(m){return m>=12688&&m<=12703},"Bopomofo Extended":function(m){return m>=12704&&m<=12735},"CJK Strokes":function(m){return m>=12736&&m<=12783},"Katakana Phonetic Extensions":function(m){return m>=12784&&m<=12799},"Enclosed CJK Letters and Months":function(m){return m>=12800&&m<=13055},"CJK Compatibility":function(m){return m>=13056&&m<=13311},"CJK Unified Ideographs Extension A":function(m){return m>=13312&&m<=19903},"Yijing Hexagram Symbols":function(m){return m>=19904&&m<=19967},"CJK Unified Ideographs":function(m){return m>=19968&&m<=40959},"Yi Syllables":function(m){return m>=40960&&m<=42127},"Yi Radicals":function(m){return m>=42128&&m<=42191},"Hangul Jamo Extended-A":function(m){return m>=43360&&m<=43391},"Hangul Syllables":function(m){return m>=44032&&m<=55215},"Hangul Jamo Extended-B":function(m){return m>=55216&&m<=55295},"Private Use Area":function(m){return m>=57344&&m<=63743},"CJK Compatibility Ideographs":function(m){return m>=63744&&m<=64255},"Arabic Presentation Forms-A":function(m){return m>=64336&&m<=65023},"Vertical Forms":function(m){return m>=65040&&m<=65055},"CJK Compatibility Forms":function(m){return m>=65072&&m<=65103},"Small Form Variants":function(m){return m>=65104&&m<=65135},"Arabic Presentation Forms-B":function(m){return m>=65136&&m<=65279},"Halfwidth and Fullwidth Forms":function(m){return m>=65280&&m<=65519}};function jt(m){for(var y=0,I=m;y=65097&&m<=65103)||nt["CJK Compatibility Ideographs"](m)||nt["CJK Compatibility"](m)||nt["CJK Radicals Supplement"](m)||nt["CJK Strokes"](m)||nt["CJK Symbols and Punctuation"](m)&&!(m>=12296&&m<=12305)&&!(m>=12308&&m<=12319)&&m!==12336||nt["CJK Unified Ideographs Extension A"](m)||nt["CJK Unified Ideographs"](m)||nt["Enclosed CJK Letters and Months"](m)||nt["Hangul Compatibility Jamo"](m)||nt["Hangul Jamo Extended-A"](m)||nt["Hangul Jamo Extended-B"](m)||nt["Hangul Jamo"](m)||nt["Hangul Syllables"](m)||nt.Hiragana(m)||nt["Ideographic Description Characters"](m)||nt.Kanbun(m)||nt["Kangxi Radicals"](m)||nt["Katakana Phonetic Extensions"](m)||nt.Katakana(m)&&m!==12540||nt["Halfwidth and Fullwidth Forms"](m)&&m!==65288&&m!==65289&&m!==65293&&!(m>=65306&&m<=65310)&&m!==65339&&m!==65341&&m!==65343&&!(m>=65371&&m<=65503)&&m!==65507&&!(m>=65512&&m<=65519)||nt["Small Form Variants"](m)&&!(m>=65112&&m<=65118)&&!(m>=65123&&m<=65126)||nt["Unified Canadian Aboriginal Syllabics"](m)||nt["Unified Canadian Aboriginal Syllabics Extended"](m)||nt["Vertical Forms"](m)||nt["Yijing Hexagram Symbols"](m)||nt["Yi Syllables"](m)||nt["Yi Radicals"](m))}function _i(m){return!!(nt["Latin-1 Supplement"](m)&&(m===167||m===169||m===174||m===177||m===188||m===189||m===190||m===215||m===247)||nt["General Punctuation"](m)&&(m===8214||m===8224||m===8225||m===8240||m===8241||m===8251||m===8252||m===8258||m===8263||m===8264||m===8265||m===8273)||nt["Letterlike Symbols"](m)||nt["Number Forms"](m)||nt["Miscellaneous Technical"](m)&&(m>=8960&&m<=8967||m>=8972&&m<=8991||m>=8996&&m<=9e3||m===9003||m>=9085&&m<=9114||m>=9150&&m<=9165||m===9167||m>=9169&&m<=9179||m>=9186&&m<=9215)||nt["Control Pictures"](m)&&m!==9251||nt["Optical Character Recognition"](m)||nt["Enclosed Alphanumerics"](m)||nt["Geometric Shapes"](m)||nt["Miscellaneous Symbols"](m)&&!(m>=9754&&m<=9759)||nt["Miscellaneous Symbols and Arrows"](m)&&(m>=11026&&m<=11055||m>=11088&&m<=11097||m>=11192&&m<=11243)||nt["CJK Symbols and Punctuation"](m)||nt.Katakana(m)||nt["Private Use Area"](m)||nt["CJK Compatibility Forms"](m)||nt["Small Form Variants"](m)||nt["Halfwidth and Fullwidth Forms"](m)||m===8734||m===8756||m===8757||m>=9984&&m<=10087||m>=10102&&m<=10131||m===65532||m===65533)}function bi(m){return!(qr(m)||_i(m))}function Xr(m){return nt.Arabic(m)||nt["Arabic Supplement"](m)||nt["Arabic Extended-A"](m)||nt["Arabic Presentation Forms-A"](m)||nt["Arabic Presentation Forms-B"](m)}function ni(m){return m>=1424&&m<=2303||nt["Arabic Presentation Forms-A"](m)||nt["Arabic Presentation Forms-B"](m)}function gi(m,y){return!(!y&&ni(m)||m>=2304&&m<=3583||m>=3840&&m<=4255||nt.Khmer(m))}function Pi(m){for(var y=0,I=m;y-1&&(Cn=ti.error),Rn&&Rn(m)};function Ea(){Ia.fire(new Wo("pluginStateChange",{pluginStatus:Cn,pluginURL:Nn}))}var Ia=new Wn,yo=function(){return Cn},Da=function(m){return m({pluginStatus:Cn,pluginURL:Nn}),Ia.on("pluginStateChange",m),m},go=function(m,y,I){if(I===void 0&&(I=!1),Cn===ti.deferred||Cn===ti.loading||Cn===ti.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Nn=ct.resolveURL(m),Cn=ti.deferred,Rn=y,Ea(),I||Rs()},Rs=function(){if(Cn!==ti.deferred||!Nn)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Cn=ti.loading,Ea(),Nn&&ri({url:Nn},function(m){m?ia(m):(Cn=ti.loaded,Ea())})},Es={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Cn===ti.loaded||Es.applyArabicShaping!=null},isLoading:function(){return Cn===ti.loading},setState:function(y){Cn=y.pluginStatus,Nn=y.pluginURL},isParsed:function(){return Es.applyArabicShaping!=null&&Es.processBidirectionalText!=null&&Es.processStyledBidirectionalText!=null},getPluginURL:function(){return Nn}},Zs=function(){!Es.isLoading()&&!Es.isLoaded()&&yo()==="deferred"&&Rs()},Gn=function(y,I){this.zoom=y,I?(this.now=I.now,this.fadeDuration=I.fadeDuration,this.zoomHistory=I.zoomHistory,this.transition=I.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Ct,this.transition={})};Gn.prototype.isSupportedScript=function(y){return Ai(y,Es.isLoaded())},Gn.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Gn.prototype.getCrossfadeParameters=function(){var y=this.zoom,I=y-Math.floor(y),U=this.crossFadingFactor();return y>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:I+(1-I)*U}:{fromScale:.5,toScale:1,t:1-(1-U)*I}};var Ha=function(y,I){this.property=y,this.value=I,this.expression=w(I===void 0?y.specification.default:I,y.specification)};Ha.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Ha.prototype.possiblyEvaluate=function(y,I,U){return this.property.possiblyEvaluate(this,y,I,U)};var Fo=function(y){this.property=y,this.value=new Ha(y,void 0)};Fo.prototype.transitioned=function(y,I){return new Qs(this.property,this.value,I,x({},y.transition,this.transition),y.now)},Fo.prototype.untransitioned=function(){return new Qs(this.property,this.value,null,{},0)};var Uo=function(y){this._properties=y,this._values=Object.create(y.defaultTransitionablePropertyValues)};Uo.prototype.getValue=function(y){return H(this._values[y].value.value)},Uo.prototype.setValue=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Fo(this._values[y].property)),this._values[y].value=new Ha(this._values[y].property,I===null?void 0:H(I))},Uo.prototype.getTransition=function(y){return H(this._values[y].transition)},Uo.prototype.setTransition=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Fo(this._values[y].property)),this._values[y].transition=H(I)||void 0},Uo.prototype.serialize=function(){for(var y={},I=0,U=Object.keys(this._values);Ithis.end)return this.prior=null,ae;if(this.value.isDataDriven())return this.prior=null,ae;if($he.zoomHistory.lastIntegerZoom?{from:U,to:$}:{from:ae,to:$}},y.prototype.interpolate=function(U){return U},y}(xt),Ir=function(y){this.specification=y};Ir.prototype.possiblyEvaluate=function(y,I,U,$){if(y.value!==void 0)if(y.expression.kind==="constant"){var ae=y.expression.evaluate(I,null,{},U,$);return this._calculate(ae,ae,ae,I)}else return this._calculate(y.expression.evaluate(new Gn(Math.floor(I.zoom-1),I)),y.expression.evaluate(new Gn(Math.floor(I.zoom),I)),y.expression.evaluate(new Gn(Math.floor(I.zoom+1),I)),I)},Ir.prototype._calculate=function(y,I,U,$){var ae=$.zoom;return ae>$.zoomHistory.lastIntegerZoom?{from:y,to:I}:{from:U,to:I}},Ir.prototype.interpolate=function(y){return y};var Hr=function(y){this.specification=y};Hr.prototype.possiblyEvaluate=function(y,I,U,$){return!!y.expression.evaluate(I,null,{},U,$)},Hr.prototype.interpolate=function(){return!1};var Br=function(y){this.properties=y,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var I in y){var U=y[I];U.specification.overridable&&this.overridableProperties.push(I);var $=this.defaultPropertyValues[I]=new Ha(U,void 0),ae=this.defaultTransitionablePropertyValues[I]=new Fo(U);this.defaultTransitioningPropertyValues[I]=ae.untransitioned(),this.defaultPossiblyEvaluatedValues[I]=$.possiblyEvaluate({})}};X("DataDrivenProperty",xt),X("DataConstantProperty",Ee),X("CrossFadedDataDrivenProperty",zt),X("CrossFadedProperty",Ir),X("ColorRampProperty",Hr);var Vr="-transition",mi=function(m){function y(I,U){if(m.call(this),this.id=I.id,this.type=I.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},I.type!=="custom"&&(I=I,this.metadata=I.metadata,this.minzoom=I.minzoom,this.maxzoom=I.maxzoom,I.type!=="background"&&(this.source=I.source,this.sourceLayer=I["source-layer"],this.filter=I.filter),U.layout&&(this._unevaluatedLayout=new bu(U.layout)),U.paint)){this._transitionablePaint=new Uo(U.paint);for(var $ in I.paint)this.setPaintProperty($,I.paint[$],{validate:!1});for(var ae in I.layout)this.setLayoutProperty(ae,I.layout[ae],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Sc(U.paint)}}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},y.prototype.getLayoutProperty=function(U){return U==="visibility"?this.visibility:this._unevaluatedLayout.getValue(U)},y.prototype.setLayoutProperty=function(U,$,ae){if(ae===void 0&&(ae={}),$!=null){var he="layers."+this.id+".layout."+U;if(this._validate(Ul,he,U,$,ae))return}if(U==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(U,$)},y.prototype.getPaintProperty=function(U){return V(U,Vr)?this._transitionablePaint.getTransition(U.slice(0,-Vr.length)):this._transitionablePaint.getValue(U)},y.prototype.setPaintProperty=function(U,$,ae){if(ae===void 0&&(ae={}),$!=null){var he="layers."+this.id+".paint."+U;if(this._validate(dl,he,U,$,ae))return!1}if(V(U,Vr))return this._transitionablePaint.setTransition(U.slice(0,-Vr.length),$||void 0),!1;var Oe=this._transitionablePaint._values[U],rt=Oe.property.specification["property-type"]==="cross-faded-data-driven",gt=Oe.value.isDataDriven(),Mt=Oe.value;this._transitionablePaint.setValue(U,$),this._handleSpecialPaintPropertyUpdate(U);var or=this._transitionablePaint._values[U].value,_r=or.isDataDriven();return _r||gt||rt||this._handleOverridablePaintPropertyUpdate(U,Mt,or)},y.prototype._handleSpecialPaintPropertyUpdate=function(U){},y.prototype._handleOverridablePaintPropertyUpdate=function(U,$,ae){return!1},y.prototype.isHidden=function(U){return this.minzoom&&U=this.maxzoom?!0:this.visibility==="none"},y.prototype.updateTransitions=function(U){this._transitioningPaint=this._transitionablePaint.transitioned(U,this._transitioningPaint)},y.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},y.prototype.recalculate=function(U,$){U.getCrossfadeParameters&&(this._crossfadeParameters=U.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(U,void 0,$)),this.paint=this._transitioningPaint.possiblyEvaluate(U,void 0,$)},y.prototype.serialize=function(){var U={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(U.layout=U.layout||{},U.layout.visibility=this.visibility),Z(U,function($,ae){return $!==void 0&&!(ae==="layout"&&!Object.keys($).length)&&!(ae==="paint"&&!Object.keys($).length)})},y.prototype._validate=function(U,$,ae,he,Oe){return Oe===void 0&&(Oe={}),Oe&&Oe.validate===!1?!1:Lu(this,U.call(wo,{key:$,layerType:this.type,objectKey:ae,value:he,styleSpec:Fn,style:{glyphs:!0,sprite:!0}}))},y.prototype.is3D=function(){return!1},y.prototype.isTileClipped=function(){return!1},y.prototype.hasOffscreenPass=function(){return!1},y.prototype.resize=function(){},y.prototype.isStateDependent=function(){for(var U in this.paint._values){var $=this.paint.get(U);if(!(!($ instanceof vl)||!Xs($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},y}(Wn),Ni={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Oi=function(y,I){this._structArray=y,this._pos1=I*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Mi=128,Hn=5,Qi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Qi.serialize=function(y,I){return y._trim(),I&&(y.isTransferred=!0,I.push(y.arrayBuffer)),{length:y.length,arrayBuffer:y.arrayBuffer}},Qi.deserialize=function(y){var I=Object.create(this.prototype);return I.arrayBuffer=y.arrayBuffer,I.length=y.length,I.capacity=y.arrayBuffer.byteLength/I.bytesPerElement,I._refreshViews(),I},Qi.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Qi.prototype.clear=function(){this.length=0},Qi.prototype.resize=function(y){this.reserve(y),this.length=y},Qi.prototype.reserve=function(y){if(y>this.capacity){this.capacity=Math.max(y,Math.floor(this.capacity*Hn),Mi),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var I=this.uint8;this._refreshViews(),I&&this.uint8.set(I)}},Qi.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function ji(m,y){y===void 0&&(y=1);var I=0,U=0,$=m.map(function(he){var Oe=si(he.type),rt=I=Mr(I,Math.max(y,Oe)),gt=he.components||1;return U=Math.max(U,Oe),I+=Oe*gt,{name:he.name,type:he.type,components:gt,offset:rt}}),ae=Mr(I,Math.max(U,y));return{members:$,size:ae,alignment:y}}function si(m){return Ni[m].BYTES_PER_ELEMENT}function Mr(m,y){return Math.ceil(m/y)*y}var Yr=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,U,$)},y.prototype.emplace=function(U,$,ae){var he=U*2;return this.int16[he+0]=$,this.int16[he+1]=ae,U},y}(Qi);Yr.prototype.bytesPerElement=4,X("StructArrayLayout2i4",Yr);var xi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he){var Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,U,$,ae,he)},y.prototype.emplace=function(U,$,ae,he,Oe){var rt=U*4;return this.int16[rt+0]=$,this.int16[rt+1]=ae,this.int16[rt+2]=he,this.int16[rt+3]=Oe,U},y}(Qi);xi.prototype.bytesPerElement=8,X("StructArrayLayout4i8",xi);var Ii=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,U,$,ae,he,Oe,rt)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt){var Mt=U*6;return this.int16[Mt+0]=$,this.int16[Mt+1]=ae,this.int16[Mt+2]=he,this.int16[Mt+3]=Oe,this.int16[Mt+4]=rt,this.int16[Mt+5]=gt,U},y}(Qi);Ii.prototype.bytesPerElement=12,X("StructArrayLayout2i4i12",Ii);var ci=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,U,$,ae,he,Oe,rt)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt){var Mt=U*4,or=U*8;return this.int16[Mt+0]=$,this.int16[Mt+1]=ae,this.uint8[or+4]=he,this.uint8[or+5]=Oe,this.uint8[or+6]=rt,this.uint8[or+7]=gt,U},y}(Qi);ci.prototype.bytesPerElement=8,X("StructArrayLayout2i4ub8",ci);var nn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,U,$)},y.prototype.emplace=function(U,$,ae){var he=U*2;return this.float32[he+0]=$,this.float32[he+1]=ae,U},y}(Qi);nn.prototype.bytesPerElement=8,X("StructArrayLayout2f8",nn);var Xi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r){var vr=this.length;return this.resize(vr+1),this.emplace(vr,U,$,ae,he,Oe,rt,gt,Mt,or,_r)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr){var Fr=U*10;return this.uint16[Fr+0]=$,this.uint16[Fr+1]=ae,this.uint16[Fr+2]=he,this.uint16[Fr+3]=Oe,this.uint16[Fr+4]=rt,this.uint16[Fr+5]=gt,this.uint16[Fr+6]=Mt,this.uint16[Fr+7]=or,this.uint16[Fr+8]=_r,this.uint16[Fr+9]=vr,U},y}(Qi);Xi.prototype.bytesPerElement=20,X("StructArrayLayout10ui20",Xi);var qn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr){var ai=this.length;return this.resize(ai+1),this.emplace(ai,U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai){var Gi=U*12;return this.int16[Gi+0]=$,this.int16[Gi+1]=ae,this.int16[Gi+2]=he,this.int16[Gi+3]=Oe,this.uint16[Gi+4]=rt,this.uint16[Gi+5]=gt,this.uint16[Gi+6]=Mt,this.uint16[Gi+7]=or,this.int16[Gi+8]=_r,this.int16[Gi+9]=vr,this.int16[Gi+10]=Fr,this.int16[Gi+11]=ai,U},y}(Qi);qn.prototype.bytesPerElement=24,X("StructArrayLayout4i4ui4i24",qn);var vi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*3;return this.float32[Oe+0]=$,this.float32[Oe+1]=ae,this.float32[Oe+2]=he,U},y}(Qi);vi.prototype.bytesPerElement=12,X("StructArrayLayout3f12",vi);var li=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ae=U*1;return this.uint32[ae+0]=$,U},y}(Qi);li.prototype.bytesPerElement=4,X("StructArrayLayout1ul4",li);var mn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or){var _r=this.length;return this.resize(_r+1),this.emplace(_r,U,$,ae,he,Oe,rt,gt,Mt,or)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r){var vr=U*10,Fr=U*5;return this.int16[vr+0]=$,this.int16[vr+1]=ae,this.int16[vr+2]=he,this.int16[vr+3]=Oe,this.int16[vr+4]=rt,this.int16[vr+5]=gt,this.uint32[Fr+3]=Mt,this.uint16[vr+8]=or,this.uint16[vr+9]=_r,U},y}(Qi);mn.prototype.bytesPerElement=20,X("StructArrayLayout6i1ul2ui20",mn);var Ki=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,U,$,ae,he,Oe,rt)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt){var Mt=U*6;return this.int16[Mt+0]=$,this.int16[Mt+1]=ae,this.int16[Mt+2]=he,this.int16[Mt+3]=Oe,this.int16[Mt+4]=rt,this.int16[Mt+5]=gt,U},y}(Qi);Ki.prototype.bytesPerElement=12,X("StructArrayLayout2i2i2i12",Ki);var Ui=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe){var rt=this.length;return this.resize(rt+1),this.emplace(rt,U,$,ae,he,Oe)},y.prototype.emplace=function(U,$,ae,he,Oe,rt){var gt=U*4,Mt=U*8;return this.float32[gt+0]=$,this.float32[gt+1]=ae,this.float32[gt+2]=he,this.int16[Mt+6]=Oe,this.int16[Mt+7]=rt,U},y}(Qi);Ui.prototype.bytesPerElement=16,X("StructArrayLayout2f1f2i16",Ui);var Bi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he){var Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,U,$,ae,he)},y.prototype.emplace=function(U,$,ae,he,Oe){var rt=U*12,gt=U*3;return this.uint8[rt+0]=$,this.uint8[rt+1]=ae,this.float32[gt+1]=he,this.float32[gt+2]=Oe,U},y}(Qi);Bi.prototype.bytesPerElement=12,X("StructArrayLayout2ub2f12",Bi);var vn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*3;return this.uint16[Oe+0]=$,this.uint16[Oe+1]=ae,this.uint16[Oe+2]=he,U},y}(Qi);vn.prototype.bytesPerElement=6,X("StructArrayLayout3ui6",vn);var Un=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn){var xn=this.length;return this.resize(xn+1),this.emplace(xn,U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn){var Dn=U*24,Zn=U*12,ga=U*48;return this.int16[Dn+0]=$,this.int16[Dn+1]=ae,this.uint16[Dn+2]=he,this.uint16[Dn+3]=Oe,this.uint32[Zn+2]=rt,this.uint32[Zn+3]=gt,this.uint32[Zn+4]=Mt,this.uint16[Dn+10]=or,this.uint16[Dn+11]=_r,this.uint16[Dn+12]=vr,this.float32[Zn+7]=Fr,this.float32[Zn+8]=ai,this.uint8[ga+36]=Gi,this.uint8[ga+37]=Ti,this.uint8[ga+38]=bn,this.uint32[Zn+10]=rn,this.int16[Dn+22]=xn,U},y}(Qi);Un.prototype.bytesPerElement=48,X("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Un);var na=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn,Dn,Zn,ga,ha,eo,za,Za,Ko,to,ao){var xs=this.length;return this.resize(xs+1),this.emplace(xs,U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn,Dn,Zn,ga,ha,eo,za,Za,Ko,to,ao)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn,Dn,Zn,ga,ha,eo,za,Za,Ko,to,ao,xs){var jo=U*34,Cl=U*17;return this.int16[jo+0]=$,this.int16[jo+1]=ae,this.int16[jo+2]=he,this.int16[jo+3]=Oe,this.int16[jo+4]=rt,this.int16[jo+5]=gt,this.int16[jo+6]=Mt,this.int16[jo+7]=or,this.uint16[jo+8]=_r,this.uint16[jo+9]=vr,this.uint16[jo+10]=Fr,this.uint16[jo+11]=ai,this.uint16[jo+12]=Gi,this.uint16[jo+13]=Ti,this.uint16[jo+14]=bn,this.uint16[jo+15]=rn,this.uint16[jo+16]=xn,this.uint16[jo+17]=Dn,this.uint16[jo+18]=Zn,this.uint16[jo+19]=ga,this.uint16[jo+20]=ha,this.uint16[jo+21]=eo,this.uint16[jo+22]=za,this.uint32[Cl+12]=Za,this.float32[Cl+13]=Ko,this.float32[Cl+14]=to,this.float32[Cl+15]=ao,this.float32[Cl+16]=xs,U},y}(Qi);na.prototype.bytesPerElement=68,X("StructArrayLayout8i15ui1ul4f68",na);var Yi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ae=U*1;return this.float32[ae+0]=$,U},y}(Qi);Yi.prototype.bytesPerElement=4,X("StructArrayLayout1f4",Yi);var Ln=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*3;return this.int16[Oe+0]=$,this.int16[Oe+1]=ae,this.int16[Oe+2]=he,U},y}(Qi);Ln.prototype.bytesPerElement=6,X("StructArrayLayout3i6",Ln);var ra=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*2,rt=U*4;return this.uint32[Oe+0]=$,this.uint16[rt+2]=ae,this.uint16[rt+3]=he,U},y}(Qi);ra.prototype.bytesPerElement=8,X("StructArrayLayout1ul2ui8",ra);var oa=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,U,$)},y.prototype.emplace=function(U,$,ae){var he=U*2;return this.uint16[he+0]=$,this.uint16[he+1]=ae,U},y}(Qi);oa.prototype.bytesPerElement=4,X("StructArrayLayout2ui4",oa);var ba=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ae=U*1;return this.uint16[ae+0]=$,U},y}(Qi);ba.prototype.bytesPerElement=2,X("StructArrayLayout1ui2",ba);var ns=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he){var Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,U,$,ae,he)},y.prototype.emplace=function(U,$,ae,he,Oe){var rt=U*4;return this.float32[rt+0]=$,this.float32[rt+1]=ae,this.float32[rt+2]=he,this.float32[rt+3]=Oe,U},y}(Qi);ns.prototype.bytesPerElement=16,X("StructArrayLayout4f16",ns);var Ys=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return I.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},I.x1.get=function(){return this._structArray.int16[this._pos2+2]},I.y1.get=function(){return this._structArray.int16[this._pos2+3]},I.x2.get=function(){return this._structArray.int16[this._pos2+4]},I.y2.get=function(){return this._structArray.int16[this._pos2+5]},I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.anchorPoint.get=function(){return new u(this.anchorPointX,this.anchorPointY)},Object.defineProperties(y.prototype,I),y}(Oi);Ys.prototype.size=20;var Va=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new Ys(this,U)},y}(mn);X("CollisionBoxArray",Va);var El=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},I.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},I.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},I.segment.get=function(){return this._structArray.uint16[this._pos2+10]},I.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},I.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},I.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},I.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},I.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},I.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},I.placedOrientation.set=function(U){this._structArray.uint8[this._pos1+37]=U},I.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},I.hidden.set=function(U){this._structArray.uint8[this._pos1+38]=U},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+10]=U},I.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(y.prototype,I),y}(Oi);El.prototype.size=48;var zo=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new El(this,U)},y}(Un);X("PlacedSymbolArray",zo);var el=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},I.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},I.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},I.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},I.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},I.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},I.key.get=function(){return this._structArray.uint16[this._pos2+8]},I.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},I.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},I.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},I.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},I.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},I.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},I.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},I.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},I.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},I.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},I.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},I.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},I.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+12]=U},I.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},I.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},I.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},I.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(y.prototype,I),y}(Oi);el.prototype.size=68;var ol=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new el(this,U)},y}(na);X("SymbolInstanceArray",ol);var Vl=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getoffsetX=function(U){return this.float32[U*1+0]},y}(Yi);X("GlyphOffsetArray",Vl);var ls=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getx=function(U){return this.int16[U*3+0]},y.prototype.gety=function(U){return this.int16[U*3+1]},y.prototype.gettileUnitDistanceFromAnchor=function(U){return this.int16[U*3+2]},y}(Ln);X("SymbolLineVertexArray",ls);var Gs=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(y.prototype,I),y}(Oi);Gs.prototype.size=8;var Ks=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new Gs(this,U)},y}(ra);X("FeatureIndexArray",Ks);var wa=ji([{name:"a_pos",components:2,type:"Int16"}],4),sl=wa.members,io=function(y){y===void 0&&(y=[]),this.segments=y};io.prototype.prepareSegment=function(y,I,U,$){var ae=this.segments[this.segments.length-1];return y>io.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+io.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+y),(!ae||ae.vertexLength+y>io.MAX_VERTEX_ARRAY_LENGTH||ae.sortKey!==$)&&(ae={vertexOffset:I.length,primitiveOffset:U.length,vertexLength:0,primitiveLength:0},$!==void 0&&(ae.sortKey=$),this.segments.push(ae)),ae},io.prototype.get=function(){return this.segments},io.prototype.destroy=function(){for(var y=0,I=this.segments;y>>16)*rt&65535)<<16)&4294967295,Mt=Mt<<15|Mt>>>17,Mt=(Mt&65535)*gt+(((Mt>>>16)*gt&65535)<<16)&4294967295,he^=Mt,he=he<<13|he>>>19,Oe=(he&65535)*5+(((he>>>16)*5&65535)<<16)&4294967295,he=(Oe&65535)+27492+(((Oe>>>16)+58964&65535)<<16);switch(Mt=0,$){case 3:Mt^=(I.charCodeAt(or+2)&255)<<16;case 2:Mt^=(I.charCodeAt(or+1)&255)<<8;case 1:Mt^=I.charCodeAt(or)&255,Mt=(Mt&65535)*rt+(((Mt>>>16)*rt&65535)<<16)&4294967295,Mt=Mt<<15|Mt>>>17,Mt=(Mt&65535)*gt+(((Mt>>>16)*gt&65535)<<16)&4294967295,he^=Mt}return he^=I.length,he^=he>>>16,he=(he&65535)*2246822507+(((he>>>16)*2246822507&65535)<<16)&4294967295,he^=he>>>13,he=(he&65535)*3266489909+(((he>>>16)*3266489909&65535)<<16)&4294967295,he^=he>>>16,he>>>0}m.exports=y}),q=a(function(m){function y(I,U){for(var $=I.length,ae=U^$,he=0,Oe;$>=4;)Oe=I.charCodeAt(he)&255|(I.charCodeAt(++he)&255)<<8|(I.charCodeAt(++he)&255)<<16|(I.charCodeAt(++he)&255)<<24,Oe=(Oe&65535)*1540483477+(((Oe>>>16)*1540483477&65535)<<16),Oe^=Oe>>>24,Oe=(Oe&65535)*1540483477+(((Oe>>>16)*1540483477&65535)<<16),ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16)^Oe,$-=4,++he;switch($){case 3:ae^=(I.charCodeAt(he+2)&255)<<16;case 2:ae^=(I.charCodeAt(he+1)&255)<<8;case 1:ae^=I.charCodeAt(he)&255,ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16)}return ae^=ae>>>13,ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16),ae^=ae>>>15,ae>>>0}m.exports=y}),K=J,de=J,ne=q;K.murmur3=de,K.murmur2=ne;var we=function(){this.ids=[],this.positions=[],this.indexed=!1};we.prototype.add=function(y,I,U,$){this.ids.push(ft(y)),this.positions.push(I,U,$)},we.prototype.getPositions=function(y){for(var I=ft(y),U=0,$=this.ids.length-1;U<$;){var ae=U+$>>1;this.ids[ae]>=I?$=ae:U=ae+1}for(var he=[];this.ids[U]===I;){var Oe=this.positions[3*U],rt=this.positions[3*U+1],gt=this.positions[3*U+2];he.push({index:Oe,start:rt,end:gt}),U++}return he},we.serialize=function(y,I){var U=new Float64Array(y.ids),$=new Uint32Array(y.positions);return Zt(U,$,0,U.length-1),I&&I.push(U.buffer,$.buffer),{ids:U,positions:$}},we.deserialize=function(y){var I=new we;return I.ids=y.ids,I.positions=y.positions,I.indexed=!0,I};var Ue=Math.pow(2,53)-1;function ft(m){var y=+m;return!isNaN(y)&&y<=Ue?y:K(String(m))}function Zt(m,y,I,U){for(;I>1],ae=I-1,he=U+1;;){do ae++;while(m[ae]<$);do he--;while(m[he]>$);if(ae>=he)break;hr(m,ae,he),hr(y,3*ae,3*he),hr(y,3*ae+1,3*he+1),hr(y,3*ae+2,3*he+2)}he-Ihe.x+1||rthe.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return I}function Ja(m,y){return{type:m.type,id:m.id,properties:m.properties,geometry:y?On(m):[]}}function co(m,y,I,U,$){m.emplaceBack(y*2+(U+1)/2,I*2+($+1)/2)}var rs=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Yr,this.indexArray=new vn,this.segments=new io,this.programConfigurations=new hi(y.layers,y.zoom),this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};rs.prototype.populate=function(y,I,U){var $=this.layers[0],ae=[],he=null;$.type==="circle"&&(he=$.layout.get("circle-sort-key"));for(var Oe=0,rt=y;Oe=Ci||_r<0||_r>=Ci)){var vr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,y.sortKey),Fr=vr.vertexLength;co(this.layoutVertexArray,or,_r,-1,-1),co(this.layoutVertexArray,or,_r,1,-1),co(this.layoutVertexArray,or,_r,1,1),co(this.layoutVertexArray,or,_r,-1,1),this.indexArray.emplaceBack(Fr,Fr+1,Fr+2),this.indexArray.emplaceBack(Fr,Fr+3,Fr+2),vr.vertexLength+=4,vr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,y,U,{},$)},X("CircleBucket",rs,{omit:["layers"]});function so(m,y){for(var I=0;I=3){for(var ae=0;ae<$.length;ae++)if(Td(m,$[ae]))return!0}if(Cv(m,$,I))return!0}return!1}function Cv(m,y,I){if(m.length>1){if(kv(m,y))return!0;for(var U=0;U1?m.distSqr(I):m.distSqr(I.sub(y)._mult($)._add(y))}function vp(m,y){for(var I=!1,U,$,ae,he=0;hey.y!=ae.y>y.y&&y.x<(ae.x-$.x)*(y.y-$.y)/(ae.y-$.y)+$.x&&(I=!I)}return I}function Td(m,y){for(var I=!1,U=0,$=m.length-1;Uy.y!=he.y>y.y&&y.x<(he.x-ae.x)*(y.y-ae.y)/(he.y-ae.y)+ae.x&&(I=!I)}return I}function pp(m,y,I,U,$){for(var ae=0,he=m;ae=Oe.x&&$>=Oe.y)return!0}var rt=[new u(y,I),new u(y,$),new u(U,$),new u(U,I)];if(m.length>2)for(var gt=0,Mt=rt;gt$.x&&y.x>$.x||m.y$.y&&y.y>$.y)return!1;var ae=oe(m,y,I[0]);return ae!==oe(m,y,I[1])||ae!==oe(m,y,I[2])||ae!==oe(m,y,I[3])}function Ad(m,y,I){var U=y.paint.get(m).value;return U.kind==="constant"?U.value:I.programConfigurations.get(y.id).getMaxValue(m)}function Lv(m){return Math.sqrt(m[0]*m[0]+m[1]*m[1])}function Jv(m,y,I,U,$){if(!y[0]&&!y[1])return m;var ae=u.convert(y)._mult($);I==="viewport"&&ae._rotate(-U);for(var he=[],Oe=0;Oe0&&(ae=1/Math.sqrt(ae)),m[0]=y[0]*ae,m[1]=y[1]*ae,m[2]=y[2]*ae,m}function F9(m,y){return m[0]*y[0]+m[1]*y[1]+m[2]*y[2]}function z9(m,y,I){var U=y[0],$=y[1],ae=y[2],he=I[0],Oe=I[1],rt=I[2];return m[0]=$*rt-ae*Oe,m[1]=ae*he-U*rt,m[2]=U*Oe-$*he,m}function O9(m,y,I){var U=y[0],$=y[1],ae=y[2];return m[0]=U*I[0]+$*I[3]+ae*I[6],m[1]=U*I[1]+$*I[4]+ae*I[7],m[2]=U*I[2]+$*I[5]+ae*I[8],m}var q9=om,EQ=function(){var m=am();return function(y,I,U,$,ae,he){var Oe,rt;for(I||(I=3),U||(U=0),$?rt=Math.min($*I+U,y.length):rt=y.length,Oe=U;Oem.width||$.height>m.height||I.x>m.width-$.width||I.y>m.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>y.width||$.height>y.height||U.x>y.width-$.width||U.y>y.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var he=m.data,Oe=y.data,rt=0;rt<$.height;rt++)for(var gt=((I.y+rt)*m.width+I.x)*ae,Mt=((U.y+rt)*y.width+U.x)*ae,or=0;or<$.width*ae;or++)Oe[Mt+or]=he[gt+or];return y}var Rv=function(y,I){Md(this,y,1,I)};Rv.prototype.resize=function(y){Cw(this,y,1)},Rv.prototype.clone=function(){return new Rv({width:this.width,height:this.height},new Uint8Array(this.data))},Rv.copy=function(y,I,U,$,ae){kw(y,I,U,$,ae,1)};var Th=function(y,I){Md(this,y,4,I)};Th.prototype.resize=function(y){Cw(this,y,4)},Th.prototype.replace=function(y,I){I?this.data.set(y):y instanceof Uint8ClampedArray?this.data=new Uint8Array(y.buffer):this.data=y},Th.prototype.clone=function(){return new Th({width:this.width,height:this.height},new Uint8Array(this.data))},Th.copy=function(y,I,U,$,ae){kw(y,I,U,$,ae,4)},X("AlphaImage",Rv),X("RGBAImage",Th);var Vx=new Br({"heatmap-radius":new xt(Fn.paint_heatmap["heatmap-radius"]),"heatmap-weight":new xt(Fn.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Ee(Fn.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Hr(Fn.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ee(Fn.paint_heatmap["heatmap-opacity"])}),S1={paint:Vx};function Gx(m){var y={},I=m.resolution||256,U=m.clips?m.clips.length:1,$=m.image||new Th({width:I,height:U}),ae=function(bn,rn,xn){y[m.evaluationKey]=xn;var Dn=m.expression.evaluate(y);$.data[bn+rn+0]=Math.floor(Dn.r*255/Dn.a),$.data[bn+rn+1]=Math.floor(Dn.g*255/Dn.a),$.data[bn+rn+2]=Math.floor(Dn.b*255/Dn.a),$.data[bn+rn+3]=Math.floor(Dn.a*255)};if(m.clips)for(var gt=0,Mt=0;gt80*I){Oe=gt=m[0],rt=Mt=m[1];for(var Fr=I;Fr<$;Fr+=I)or=m[Fr],_r=m[Fr+1],orgt&&(gt=or),_r>Mt&&(Mt=_r);vr=Math.max(gt-Oe,Mt-rt),vr=vr!==0?1/vr:0}return Hx(ae,he,I,Oe,rt,vr),he}function Iw(m,y,I,U,$){var ae,he;if($===fS(m,y,I,U)>0)for(ae=y;ae=y;ae-=U)he=Ek(ae,m[ae],m[ae+1],he);return he&&Wx(he,he.next)&&(Yx(he),he=he.next),he}function sm(m,y){if(!m)return m;y||(y=m);var I=m,U;do if(U=!1,!I.steiner&&(Wx(I,I.next)||wf(I.prev,I,I.next)===0)){if(Yx(I),I=y=I.prev,I===I.next)break;U=!0}else I=I.next;while(U||I!==y);return y}function Hx(m,y,I,U,$,ae,he){if(m){!he&&ae&&Rw(m,U,$,ae);for(var Oe=m,rt,gt;m.prev!==m.next;){if(rt=m.prev,gt=m.next,ae?Ak(m,U,$,ae):Tk(m)){y.push(rt.i/I),y.push(m.i/I),y.push(gt.i/I),Yx(m),m=gt.next,Oe=gt.next;continue}if(m=gt,m===Oe){he?he===1?(m=jx(sm(m),y,I),Hx(m,y,I,U,$,ae,2)):he===2&&v0(m,y,I,U,$,ae):Hx(sm(m),y,I,U,$,ae,1);break}}}}function Tk(m){var y=m.prev,I=m,U=m.next;if(wf(y,I,U)>=0)return!1;for(var $=m.next.next;$!==m.prev;){if(um(y.x,y.y,I.x,I.y,U.x,U.y,$.x,$.y)&&wf($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function Ak(m,y,I,U){var $=m.prev,ae=m,he=m.next;if(wf($,ae,he)>=0)return!1;for(var Oe=$.xae.x?$.x>he.x?$.x:he.x:ae.x>he.x?ae.x:he.x,Mt=$.y>ae.y?$.y>he.y?$.y:he.y:ae.y>he.y?ae.y:he.y,or=sS(Oe,rt,y,I,U),_r=sS(gt,Mt,y,I,U),vr=m.prevZ,Fr=m.nextZ;vr&&vr.z>=or&&Fr&&Fr.z<=_r;){if(vr!==m.prev&&vr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,vr.x,vr.y)&&wf(vr.prev,vr,vr.next)>=0||(vr=vr.prevZ,Fr!==m.prev&&Fr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,Fr.x,Fr.y)&&wf(Fr.prev,Fr,Fr.next)>=0))return!1;Fr=Fr.nextZ}for(;vr&&vr.z>=or;){if(vr!==m.prev&&vr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,vr.x,vr.y)&&wf(vr.prev,vr,vr.next)>=0)return!1;vr=vr.prevZ}for(;Fr&&Fr.z<=_r;){if(Fr!==m.prev&&Fr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,Fr.x,Fr.y)&&wf(Fr.prev,Fr,Fr.next)>=0)return!1;Fr=Fr.nextZ}return!0}function jx(m,y,I){var U=m;do{var $=U.prev,ae=U.next.next;!Wx($,ae)&&Dw($,U,U.next,ae)&&Zx($,ae)&&Zx(ae,$)&&(y.push($.i/I),y.push(U.i/I),y.push(ae.i/I),Yx(U),Yx(U.next),U=m=ae),U=U.next}while(U!==m);return sm(U)}function v0(m,y,I,U,$,ae){var he=m;do{for(var Oe=he.next.next;Oe!==he.prev;){if(he.i!==Oe.i&&E1(he,Oe)){var rt=uS(he,Oe);he=sm(he,he.next),rt=sm(rt,rt.next),Hx(he,y,I,U,$,ae),Hx(rt,y,I,U,$,ae);return}Oe=Oe.next}he=he.next}while(he!==m)}function lm(m,y,I,U){var $=[],ae,he,Oe,rt,gt;for(ae=0,he=y.length;ae=I.next.y&&I.next.y!==I.y){var Oe=I.x+($-I.y)*(I.next.x-I.x)/(I.next.y-I.y);if(Oe<=U&&Oe>ae){if(ae=Oe,Oe===U){if($===I.y)return I;if($===I.next.y)return I.next}he=I.x=I.x&&I.x>=gt&&U!==I.x&&um($he.x||I.x===he.x&&X9(he,I)))&&(he=I,or=_r)),I=I.next;while(I!==rt);return he}function X9(m,y){return wf(m.prev,m,y.prev)<0&&wf(y.next,m,m.next)<0}function Rw(m,y,I,U){var $=m;do $.z===null&&($.z=sS($.x,$.y,y,I,U)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==m);$.prevZ.nextZ=null,$.prevZ=null,oS($)}function oS(m){var y,I,U,$,ae,he,Oe,rt,gt=1;do{for(I=m,m=null,ae=null,he=0;I;){for(he++,U=I,Oe=0,y=0;y0||rt>0&&U;)Oe!==0&&(rt===0||!U||I.z<=U.z)?($=I,I=I.nextZ,Oe--):($=U,U=U.nextZ,rt--),ae?ae.nextZ=$:m=$,$.prevZ=ae,ae=$;I=U}ae.nextZ=null,gt*=2}while(he>1);return m}function sS(m,y,I,U,$){return m=32767*(m-I)*$,y=32767*(y-U)*$,m=(m|m<<8)&16711935,m=(m|m<<4)&252645135,m=(m|m<<2)&858993459,m=(m|m<<1)&1431655765,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,m|y<<1}function lS(m){var y=m,I=m;do(y.x=0&&(m-he)*(U-Oe)-(I-he)*(y-Oe)>=0&&(I-he)*(ae-Oe)-($-he)*(U-Oe)>=0}function E1(m,y){return m.next.i!==y.i&&m.prev.i!==y.i&&!Mk(m,y)&&(Zx(m,y)&&Zx(y,m)&&Z9(m,y)&&(wf(m.prev,m,y.prev)||wf(m,y.prev,y))||Wx(m,y)&&wf(m.prev,m,m.next)>0&&wf(y.prev,y,y.next)>0)}function wf(m,y,I){return(y.y-m.y)*(I.x-y.x)-(y.x-m.x)*(I.y-y.y)}function Wx(m,y){return m.x===y.x&&m.y===y.y}function Dw(m,y,I,U){var $=uy(wf(m,y,I)),ae=uy(wf(m,y,U)),he=uy(wf(I,U,m)),Oe=uy(wf(I,U,y));return!!($!==ae&&he!==Oe||$===0&&Xx(m,I,y)||ae===0&&Xx(m,U,y)||he===0&&Xx(I,m,U)||Oe===0&&Xx(I,y,U))}function Xx(m,y,I){return y.x<=Math.max(m.x,I.x)&&y.x>=Math.min(m.x,I.x)&&y.y<=Math.max(m.y,I.y)&&y.y>=Math.min(m.y,I.y)}function uy(m){return m>0?1:m<0?-1:0}function Mk(m,y){var I=m;do{if(I.i!==m.i&&I.next.i!==m.i&&I.i!==y.i&&I.next.i!==y.i&&Dw(I,I.next,m,y))return!0;I=I.next}while(I!==m);return!1}function Zx(m,y){return wf(m.prev,m,m.next)<0?wf(m,y,m.next)>=0&&wf(m,m.prev,y)>=0:wf(m,y,m.prev)<0||wf(m,m.next,y)<0}function Z9(m,y){var I=m,U=!1,$=(m.x+y.x)/2,ae=(m.y+y.y)/2;do I.y>ae!=I.next.y>ae&&I.next.y!==I.y&&$<(I.next.x-I.x)*(ae-I.y)/(I.next.y-I.y)+I.x&&(U=!U),I=I.next;while(I!==m);return U}function uS(m,y){var I=new cS(m.i,m.x,m.y),U=new cS(y.i,y.x,y.y),$=m.next,ae=y.prev;return m.next=y,y.prev=m,I.next=$,$.prev=I,U.next=I,I.prev=U,ae.next=U,U.prev=ae,U}function Ek(m,y,I,U){var $=new cS(m,y,I);return U?($.next=U.next,$.prev=U,U.next.prev=$,U.next=$):($.prev=$,$.next=$),$}function Yx(m){m.next.prev=m.prev,m.prev.next=m.next,m.prevZ&&(m.prevZ.nextZ=m.nextZ),m.nextZ&&(m.nextZ.prevZ=m.prevZ)}function cS(m,y,I){this.i=m,this.x=y,this.y=I,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}M1.deviation=function(m,y,I,U){var $=y&&y.length,ae=$?y[0]*I:m.length,he=Math.abs(fS(m,0,ae,I));if($)for(var Oe=0,rt=y.length;Oe0&&(U+=m[$-1].length,I.holes.push(U))}return I},Pw.default=wk;function hS(m,y,I,U,$){vg(m,y,I||0,U||m.length-1,$||Ck)}function vg(m,y,I,U,$){for(;U>I;){if(U-I>600){var ae=U-I+1,he=y-I+1,Oe=Math.log(ae),rt=.5*Math.exp(2*Oe/3),gt=.5*Math.sqrt(Oe*rt*(ae-rt)/ae)*(he-ae/2<0?-1:1),Mt=Math.max(I,Math.floor(y-he*rt/ae+gt)),or=Math.min(U,Math.floor(y+(ae-he)*rt/ae+gt));vg(m,y,Mt,or,$)}var _r=m[y],vr=I,Fr=U;for(C1(m,I,y),$(m[U],_r)>0&&C1(m,I,U);vr0;)Fr--}$(m[I],_r)===0?C1(m,I,Fr):(Fr++,C1(m,Fr,U)),Fr<=y&&(I=Fr+1),y<=Fr&&(U=Fr-1)}}function C1(m,y,I){var U=m[y];m[y]=m[I],m[I]=U}function Ck(m,y){return my?1:0}function Fw(m,y){var I=m.length;if(I<=1)return[m];for(var U=[],$,ae,he=0;he1)for(var rt=0;rt>3}if(U--,I===1||I===2)$+=m.readSVarint(),ae+=m.readSVarint(),I===1&&(Oe&&he.push(Oe),Oe=[]),Oe.push(new u($,ae));else if(I===7)Oe&&Oe.push(Oe[0].clone());else throw new Error("unknown command "+I)}return Oe&&he.push(Oe),he},cy.prototype.bbox=function(){var m=this._pbf;m.pos=this._geometry;for(var y=m.readVarint()+m.pos,I=1,U=0,$=0,ae=0,he=1/0,Oe=-1/0,rt=1/0,gt=-1/0;m.pos>3}if(U--,I===1||I===2)$+=m.readSVarint(),ae+=m.readSVarint(),$Oe&&(Oe=$),aegt&&(gt=ae);else if(I!==7)throw new Error("unknown command "+I)}return[he,rt,Oe,gt]},cy.prototype.toGeoJSON=function(m,y,I){var U=this.extent*Math.pow(2,I),$=this.extent*m,ae=this.extent*y,he=this.loadGeometry(),Oe=cy.types[this.type],rt,gt;function Mt(vr){for(var Fr=0;Fr>3;y=U===1?m.readString():U===2?m.readFloat():U===3?m.readDouble():U===4?m.readVarint64():U===5?m.readVarint():U===6?m.readSVarint():U===7?m.readBoolean():null}return y}pS.prototype.feature=function(m){if(m<0||m>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[m];var y=this._pbf.readVarint()+this._pbf.pos;return new vS(this._pbf,y,this.extent,this._keys,this._values)};var qk=K9;function K9(m,y){this.layers=m.readFields(J9,{},y)}function J9(m,y,I){if(m===3){var U=new pg(I,I.readVarint()+I.pos);U.length&&(y[U.name]=U)}}var Bk=qk,k1=vS,Nk=pg,gg={VectorTile:Bk,VectorTileFeature:k1,VectorTileLayer:Nk},Uk=gg.VectorTileFeature.types,Ow=500,L1=Math.pow(2,13);function cm(m,y,I,U,$,ae,he,Oe){m.emplaceBack(y,I,Math.floor(U*L1)*2+he,$*L1*2,ae*L1*2,Math.round(Oe))}var Vp=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Ii,this.indexArray=new vn,this.programConfigurations=new hi(y.layers,y.zoom),this.segments=new io,this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};Vp.prototype.populate=function(y,I,U){this.features=[],this.hasPattern=zw("fill-extrusion",this.layers,I);for(var $=0,ae=y;$=1){var xn=Gi[bn-1];if(!$9(rn,xn)){vr.vertexLength+4>io.MAX_VERTEX_ARRAY_LENGTH&&(vr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Dn=rn.sub(xn)._perp()._unit(),Zn=xn.dist(rn);Ti+Zn>32768&&(Ti=0),cm(this.layoutVertexArray,rn.x,rn.y,Dn.x,Dn.y,0,0,Ti),cm(this.layoutVertexArray,rn.x,rn.y,Dn.x,Dn.y,0,1,Ti),Ti+=Zn,cm(this.layoutVertexArray,xn.x,xn.y,Dn.x,Dn.y,0,0,Ti),cm(this.layoutVertexArray,xn.x,xn.y,Dn.x,Dn.y,0,1,Ti);var ga=vr.vertexLength;this.indexArray.emplaceBack(ga,ga+2,ga+1),this.indexArray.emplaceBack(ga+1,ga+2,ga+3),vr.vertexLength+=4,vr.primitiveLength+=2}}}}if(vr.vertexLength+gt>io.MAX_VERTEX_ARRAY_LENGTH&&(vr=this.segments.prepareSegment(gt,this.layoutVertexArray,this.indexArray)),Uk[y.type]==="Polygon"){for(var ha=[],eo=[],za=vr.vertexLength,Za=0,Ko=rt;ZaCi)||m.y===y.y&&(m.y<0||m.y>Ci)}function Q9(m){return m.every(function(y){return y.x<0})||m.every(function(y){return y.x>Ci})||m.every(function(y){return y.y<0})||m.every(function(y){return y.y>Ci})}var P1=new Br({"fill-extrusion-opacity":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new xt(Fn["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new zt(Fn["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new xt(Fn["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new xt(Fn["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),sd={paint:P1},fm=function(m){function y(I){m.call(this,I,sd)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.createBucket=function(U){return new Vp(U)},y.prototype.queryRadius=function(){return Lv(this.paint.get("fill-extrusion-translate"))},y.prototype.is3D=function(){return!0},y.prototype.queryIntersectsFeature=function(U,$,ae,he,Oe,rt,gt,Mt){var or=Jv(U,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),rt.angle,gt),_r=this.paint.get("fill-extrusion-height").evaluate($,ae),vr=this.paint.get("fill-extrusion-base").evaluate($,ae),Fr=eO(or,Mt,rt,0),ai=mS(he,vr,_r,Mt),Gi=ai[0],Ti=ai[1];return Vk(Gi,Ti,Fr)},y}(mi);function fy(m,y){return m.x*y.x+m.y*y.y}function gS(m,y){if(m.length===1){for(var I=0,U=y[I++],$;!$||U.equals($);)if($=y[I++],!$)return 1/0;for(;I=2&&y[gt-1].equals(y[gt-2]);)gt--;for(var Mt=0;Mt0;if(ha&&bn>Mt){var za=vr.dist(Fr);if(za>2*or){var Za=vr.sub(vr.sub(Fr)._mult(or/za)._round());this.updateDistance(Fr,Za),this.addCurrentVertex(Za,Gi,0,0,_r),Fr=Za}}var Ko=Fr&&ai,to=Ko?U:rt?"butt":$;if(Ko&&to==="round"&&(Znae&&(to="bevel"),to==="bevel"&&(Zn>2&&(to="flipbevel"),Zn100)rn=Ti.mult(-1);else{var ao=Zn*Gi.add(Ti).mag()/Gi.sub(Ti).mag();rn._perp()._mult(ao*(eo?-1:1))}this.addCurrentVertex(vr,rn,0,0,_r),this.addCurrentVertex(vr,rn.mult(-1),0,0,_r)}else if(to==="bevel"||to==="fakeround"){var xs=-Math.sqrt(Zn*Zn-1),jo=eo?xs:0,Cl=eo?0:xs;if(Fr&&this.addCurrentVertex(vr,Gi,jo,Cl,_r),to==="fakeround")for(var Iu=Math.round(ga*180/Math.PI/_S),kl=1;kl2*or){var ch=vr.add(ai.sub(vr)._mult(or/Xh)._round());this.updateDistance(vr,ch),this.addCurrentVertex(ch,Ti,0,0,_r),vr=ch}}}}},sh.prototype.addCurrentVertex=function(y,I,U,$,ae,he){he===void 0&&(he=!1);var Oe=I.x+I.y*U,rt=I.y-I.x*U,gt=-I.x+I.y*$,Mt=-I.y-I.x*$;this.addHalfVertex(y,Oe,rt,he,!1,U,ae),this.addHalfVertex(y,gt,Mt,he,!0,-$,ae),this.distance>eb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(y,I,U,$,ae,he))},sh.prototype.addHalfVertex=function(y,I,U,$,ae,he,Oe){var rt=y.x,gt=y.y,Mt=this.lineClips?this.scaledDistance*(eb-1):this.scaledDistance,or=Mt*Bw;if(this.layoutVertexArray.emplaceBack((rt<<1)+($?1:0),(gt<<1)+(ae?1:0),Math.round(qw*I)+128,Math.round(qw*U)+128,(he===0?0:he<0?-1:1)+1|(or&63)<<2,or>>6),this.lineClips){var _r=this.scaledDistance-this.lineClips.start,vr=this.lineClips.end-this.lineClips.start,Fr=_r/vr;this.layoutVertexArray2.emplaceBack(Fr,this.lineClipsArray.length)}var ai=Oe.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,ai),Oe.primitiveLength++),ae?this.e2=ai:this.e1=ai},sh.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},sh.prototype.updateDistance=function(y,I){this.distance+=y.dist(I),this.updateScaledDistance()},X("LineBucket",sh,{omit:["layers","patternFeatures"]});var xS=new Br({"line-cap":new Ee(Fn.layout_line["line-cap"]),"line-join":new xt(Fn.layout_line["line-join"]),"line-miter-limit":new Ee(Fn.layout_line["line-miter-limit"]),"line-round-limit":new Ee(Fn.layout_line["line-round-limit"]),"line-sort-key":new xt(Fn.layout_line["line-sort-key"])}),bS=new Br({"line-opacity":new xt(Fn.paint_line["line-opacity"]),"line-color":new xt(Fn.paint_line["line-color"]),"line-translate":new Ee(Fn.paint_line["line-translate"]),"line-translate-anchor":new Ee(Fn.paint_line["line-translate-anchor"]),"line-width":new xt(Fn.paint_line["line-width"]),"line-gap-width":new xt(Fn.paint_line["line-gap-width"]),"line-offset":new xt(Fn.paint_line["line-offset"]),"line-blur":new xt(Fn.paint_line["line-blur"]),"line-dasharray":new Ir(Fn.paint_line["line-dasharray"]),"line-pattern":new zt(Fn.paint_line["line-pattern"]),"line-gradient":new Hr(Fn.paint_line["line-gradient"])}),Nw={paint:bS,layout:xS},rO=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.possiblyEvaluate=function(U,$){return $=new Gn(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),m.prototype.possiblyEvaluate.call(this,U,$)},y.prototype.evaluate=function(U,$,ae,he){return $=x({},$,{zoom:Math.floor($.zoom)}),m.prototype.evaluate.call(this,U,$,ae,he)},y}(xt),R=new rO(Nw.paint.properties["line-width"].specification);R.useIntegerZoom=!0;var S=function(m){function y(I){m.call(this,I,Nw),this.gradientVersion=0}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._handleSpecialPaintPropertyUpdate=function(U){if(U==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof _u,this.gradientVersion=(this.gradientVersion+1)%d}},y.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},y.prototype.recalculate=function(U,$){m.prototype.recalculate.call(this,U,$),this.paint._values["line-floorwidth"]=R.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,U)},y.prototype.createBucket=function(U){return new sh(U)},y.prototype.queryRadius=function(U){var $=U,ae=F(Ad("line-width",this,$),Ad("line-gap-width",this,$)),he=Ad("line-offset",this,$);return ae/2+Math.abs(he)+Lv(this.paint.get("line-translate"))},y.prototype.queryIntersectsFeature=function(U,$,ae,he,Oe,rt,gt){var Mt=Jv(U,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),rt.angle,gt),or=gt/2*F(this.paint.get("line-width").evaluate($,ae),this.paint.get("line-gap-width").evaluate($,ae)),_r=this.paint.get("line-offset").evaluate($,ae);return _r&&(he=W(he,_r*gt)),ou(Mt,he,or)},y.prototype.isTileClipped=function(){return!0},y}(mi);function F(m,y){return y>0?y+2*m:m}function W(m,y){for(var I=[],U=new u(0,0),$=0;$":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function ln(m){for(var y="",I=0;I>1,Mt=-7,or=I?$-1:0,_r=I?-1:1,vr=m[y+or];for(or+=_r,ae=vr&(1<<-Mt)-1,vr>>=-Mt,Mt+=Oe;Mt>0;ae=ae*256+m[y+or],or+=_r,Mt-=8);for(he=ae&(1<<-Mt)-1,ae>>=-Mt,Mt+=U;Mt>0;he=he*256+m[y+or],or+=_r,Mt-=8);if(ae===0)ae=1-gt;else{if(ae===rt)return he?NaN:(vr?-1:1)*(1/0);he=he+Math.pow(2,U),ae=ae-gt}return(vr?-1:1)*he*Math.pow(2,ae-U)},ro=function(m,y,I,U,$,ae){var he,Oe,rt,gt=ae*8-$-1,Mt=(1<>1,_r=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,vr=U?0:ae-1,Fr=U?1:-1,ai=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(Oe=isNaN(y)?1:0,he=Mt):(he=Math.floor(Math.log(y)/Math.LN2),y*(rt=Math.pow(2,-he))<1&&(he--,rt*=2),he+or>=1?y+=_r/rt:y+=_r*Math.pow(2,1-or),y*rt>=2&&(he++,rt/=2),he+or>=Mt?(Oe=0,he=Mt):he+or>=1?(Oe=(y*rt-1)*Math.pow(2,$),he=he+or):(Oe=y*Math.pow(2,or-1)*Math.pow(2,$),he=0));$>=8;m[I+vr]=Oe&255,vr+=Fr,Oe/=256,$-=8);for(he=he<<$|Oe,gt+=$;gt>0;m[I+vr]=he&255,vr+=Fr,he/=256,gt-=8);m[I+vr-Fr]|=ai*128},Vo={read:pa,write:ro},Xa=sa;function sa(m){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(m)?m:new Uint8Array(m||0),this.pos=0,this.type=0,this.length=this.buf.length}sa.Varint=0,sa.Fixed64=1,sa.Bytes=2,sa.Fixed32=5;var Mo=65536*65536,fo=1/Mo,lo=12,Xn=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");sa.prototype={destroy:function(){this.buf=null},readFields:function(m,y,I){for(I=I||this.length;this.pos>3,ae=this.pos;this.type=U&7,m($,y,this),this.pos===ae&&this.skip(U)}return y},readMessage:function(m,y){return this.readFields(m,y,this.readVarint()+this.pos)},readFixed32:function(){var m=Hh(this.buf,this.pos);return this.pos+=4,m},readSFixed32:function(){var m=Dv(this.buf,this.pos);return this.pos+=4,m},readFixed64:function(){var m=Hh(this.buf,this.pos)+Hh(this.buf,this.pos+4)*Mo;return this.pos+=8,m},readSFixed64:function(){var m=Hh(this.buf,this.pos)+Dv(this.buf,this.pos+4)*Mo;return this.pos+=8,m},readFloat:function(){var m=Vo.read(this.buf,this.pos,!0,23,4);return this.pos+=4,m},readDouble:function(){var m=Vo.read(this.buf,this.pos,!0,52,8);return this.pos+=8,m},readVarint:function(m){var y=this.buf,I,U;return U=y[this.pos++],I=U&127,U<128||(U=y[this.pos++],I|=(U&127)<<7,U<128)||(U=y[this.pos++],I|=(U&127)<<14,U<128)||(U=y[this.pos++],I|=(U&127)<<21,U<128)?I:(U=y[this.pos],I|=(U&15)<<28,Ro(I,m,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var m=this.readVarint();return m%2===1?(m+1)/-2:m/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var m=this.readVarint()+this.pos,y=this.pos;return this.pos=m,m-y>=lo&&Xn?tu(this.buf,y,m):lv(this.buf,y,m)},readBytes:function(){var m=this.readVarint()+this.pos,y=this.buf.subarray(this.pos,m);return this.pos=m,y},readPackedVarint:function(m,y){if(this.type!==sa.Bytes)return m.push(this.readVarint(y));var I=uo(this);for(m=m||[];this.pos127;);else if(y===sa.Bytes)this.pos=this.readVarint()+this.pos;else if(y===sa.Fixed32)this.pos+=4;else if(y===sa.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+y)},writeTag:function(m,y){this.writeVarint(m<<3|y)},realloc:function(m){for(var y=this.length||16;y268435455||m<0){Ju(m,this);return}this.realloc(4),this.buf[this.pos++]=m&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=m>>>7&127)))},writeSVarint:function(m){this.writeVarint(m<0?-m*2-1:m*2)},writeBoolean:function(m){this.writeVarint(!!m)},writeString:function(m){m=String(m),this.realloc(m.length*4),this.pos++;var y=this.pos;this.pos=pc(this.buf,m,this.pos);var I=this.pos-y;I>=128&&Qv(y,I,this),this.pos=y-1,this.writeVarint(I),this.pos+=I},writeFloat:function(m){this.realloc(4),Vo.write(this.buf,m,this.pos,!0,23,4),this.pos+=4},writeDouble:function(m){this.realloc(8),Vo.write(this.buf,m,this.pos,!0,52,8),this.pos+=8},writeBytes:function(m){var y=m.length;this.writeVarint(y),this.realloc(y);for(var I=0;I=128&&Qv(I,U,this),this.pos=I-1,this.writeVarint(U),this.pos+=U},writeMessage:function(m,y,I){this.writeTag(m,sa.Bytes),this.writeRawMessage(y,I)},writePackedVarint:function(m,y){y.length&&this.writeMessage(m,ld,y)},writePackedSVarint:function(m,y){y.length&&this.writeMessage(m,Sh,y)},writePackedBoolean:function(m,y){y.length&&this.writeMessage(m,jd,y)},writePackedFloat:function(m,y){y.length&&this.writeMessage(m,Gd,y)},writePackedDouble:function(m,y){y.length&&this.writeMessage(m,Hd,y)},writePackedFixed32:function(m,y){y.length&&this.writeMessage(m,Tf,y)},writePackedSFixed32:function(m,y){y.length&&this.writeMessage(m,Mh,y)},writePackedFixed64:function(m,y){y.length&&this.writeMessage(m,Ed,y)},writePackedSFixed64:function(m,y){y.length&&this.writeMessage(m,ud,y)},writeBytesField:function(m,y){this.writeTag(m,sa.Bytes),this.writeBytes(y)},writeFixed32Field:function(m,y){this.writeTag(m,sa.Fixed32),this.writeFixed32(y)},writeSFixed32Field:function(m,y){this.writeTag(m,sa.Fixed32),this.writeSFixed32(y)},writeFixed64Field:function(m,y){this.writeTag(m,sa.Fixed64),this.writeFixed64(y)},writeSFixed64Field:function(m,y){this.writeTag(m,sa.Fixed64),this.writeSFixed64(y)},writeVarintField:function(m,y){this.writeTag(m,sa.Varint),this.writeVarint(y)},writeSVarintField:function(m,y){this.writeTag(m,sa.Varint),this.writeSVarint(y)},writeStringField:function(m,y){this.writeTag(m,sa.Bytes),this.writeString(y)},writeFloatField:function(m,y){this.writeTag(m,sa.Fixed32),this.writeFloat(y)},writeDoubleField:function(m,y){this.writeTag(m,sa.Fixed64),this.writeDouble(y)},writeBooleanField:function(m,y){this.writeVarintField(m,!!y)}};function Ro(m,y,I){var U=I.buf,$,ae;if(ae=U[I.pos++],$=(ae&112)>>4,ae<128||(ae=U[I.pos++],$|=(ae&127)<<3,ae<128)||(ae=U[I.pos++],$|=(ae&127)<<10,ae<128)||(ae=U[I.pos++],$|=(ae&127)<<17,ae<128)||(ae=U[I.pos++],$|=(ae&127)<<24,ae<128)||(ae=U[I.pos++],$|=(ae&1)<<31,ae<128))return $o(m,$,y);throw new Error("Expected varint not more than 10 bytes")}function uo(m){return m.type===sa.Bytes?m.readVarint()+m.pos:m.pos+1}function $o(m,y,I){return I?y*4294967296+(m>>>0):(y>>>0)*4294967296+(m>>>0)}function Ju(m,y){var I,U;if(m>=0?(I=m%4294967296|0,U=m/4294967296|0):(I=~(-m%4294967296),U=~(-m/4294967296),I^4294967295?I=I+1|0:(I=0,U=U+1|0)),m>=18446744073709552e3||m<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");y.realloc(10),qu(I,U,y),Ah(U,y)}function qu(m,y,I){I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos]=m&127}function Ah(m,y){var I=(m&7)<<4;y.buf[y.pos++]|=I|((m>>>=3)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127)))))}function Qv(m,y,I){var U=y<=16383?1:y<=2097151?2:y<=268435455?3:Math.floor(Math.log(y)/(Math.LN2*7));I.realloc(U);for(var $=I.pos-1;$>=m;$--)I.buf[$+U]=I.buf[$]}function ld(m,y){for(var I=0;I>>8,m[I+2]=y>>>16,m[I+3]=y>>>24}function Dv(m,y){return(m[y]|m[y+1]<<8|m[y+2]<<16)+(m[y+3]<<24)}function lv(m,y,I){for(var U="",$=y;$239?4:ae>223?3:ae>191?2:1;if($+Oe>I)break;var rt,gt,Mt;Oe===1?ae<128&&(he=ae):Oe===2?(rt=m[$+1],(rt&192)===128&&(he=(ae&31)<<6|rt&63,he<=127&&(he=null))):Oe===3?(rt=m[$+1],gt=m[$+2],(rt&192)===128&&(gt&192)===128&&(he=(ae&15)<<12|(rt&63)<<6|gt&63,(he<=2047||he>=55296&&he<=57343)&&(he=null))):Oe===4&&(rt=m[$+1],gt=m[$+2],Mt=m[$+3],(rt&192)===128&&(gt&192)===128&&(Mt&192)===128&&(he=(ae&15)<<18|(rt&63)<<12|(gt&63)<<6|Mt&63,(he<=65535||he>=1114112)&&(he=null))),he===null?(he=65533,Oe=1):he>65535&&(he-=65536,U+=String.fromCharCode(he>>>10&1023|55296),he=56320|he&1023),U+=String.fromCharCode(he),$+=Oe}return U}function tu(m,y,I){return Xn.decode(m.subarray(y,I))}function pc(m,y,I){for(var U=0,$,ae;U55295&&$<57344)if(ae)if($<56320){m[I++]=239,m[I++]=191,m[I++]=189,ae=$;continue}else $=ae-55296<<10|$-56320|65536,ae=null;else{$>56319||U+1===y.length?(m[I++]=239,m[I++]=191,m[I++]=189):ae=$;continue}else ae&&(m[I++]=239,m[I++]=191,m[I++]=189,ae=null);$<128?m[I++]=$:($<2048?m[I++]=$>>6|192:($<65536?m[I++]=$>>12|224:(m[I++]=$>>18|240,m[I++]=$>>12&63|128),m[I++]=$>>6&63|128),m[I++]=$&63|128)}return I}var $u=3;function Fv(m,y,I){m===1&&I.readMessage(ff,y)}function ff(m,y,I){if(m===3){var U=I.readMessage(I1,{}),$=U.id,ae=U.bitmap,he=U.width,Oe=U.height,rt=U.left,gt=U.top,Mt=U.advance;y.push({id:$,bitmap:new Rv({width:he+2*$u,height:Oe+2*$u},ae),metrics:{width:he,height:Oe,left:rt,top:gt,advance:Mt}})}}function I1(m,y,I){m===1?y.id=I.readVarint():m===2?y.bitmap=I.readBytes():m===3?y.width=I.readVarint():m===4?y.height=I.readVarint():m===5?y.left=I.readSVarint():m===6?y.top=I.readSVarint():m===7&&(y.advance=I.readVarint())}function p0(m){return new Xa(m).readFields(Fv,[])}var Gp=$u;function ep(m){for(var y=0,I=0,U=0,$=m;U<$.length;U+=1){var ae=$[U];y+=ae.w*ae.h,I=Math.max(I,ae.w)}m.sort(function(Gi,Ti){return Ti.h-Gi.h});for(var he=Math.max(Math.ceil(Math.sqrt(y/.95)),I),Oe=[{x:0,y:0,w:he,h:1/0}],rt=0,gt=0,Mt=0,or=m;Mt=0;vr--){var Fr=Oe[vr];if(!(_r.w>Fr.w||_r.h>Fr.h)){if(_r.x=Fr.x,_r.y=Fr.y,gt=Math.max(gt,_r.y+_r.h),rt=Math.max(rt,_r.x+_r.w),_r.w===Fr.w&&_r.h===Fr.h){var ai=Oe.pop();vr=0&&$>=y&&m0[this.text.charCodeAt($)];$--)U--;this.text=this.text.substring(y,U),this.sectionIndex=this.sectionIndex.slice(y,U)},jh.prototype.substring=function(y,I){var U=new jh;return U.text=this.text.substring(y,I),U.sectionIndex=this.sectionIndex.slice(y,I),U.sections=this.sections,U},jh.prototype.toString=function(){return this.text},jh.prototype.getMaxScale=function(){var y=this;return this.sectionIndex.reduce(function(I,U){return Math.max(I,y.sections[U].scale)},0)},jh.prototype.addTextSection=function(y,I){this.text+=y.text,this.sections.push(hy.forText(y.scale,y.fontStack||I));for(var U=this.sections.length-1,$=0;$=g0?null:++this.imageSectionID:(this.imageSectionID=Uw,this.imageSectionID)};function iO(m,y){for(var I=[],U=m.text,$=0,ae=0,he=y;ae=0,Mt=0,or=0;or0&&ch>eo&&(eo=ch)}else{var Ll=I[Za.fontStack],_l=Ll&&Ll[to];if(_l&&_l.rect)jo=_l.rect,xs=_l.metrics;else{var Qu=y[Za.fontStack],gc=Qu&&Qu[to];if(!gc)continue;xs=gc.metrics}ao=(Dn-Za.scale)*An}kl?(m.verticalizable=!0,ha.push({glyph:to,imageName:Cl,x:_r,y:vr+ao,vertical:kl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Ko,metrics:xs,rect:jo}),_r+=Iu*Za.scale+gt):(ha.push({glyph:to,imageName:Cl,x:_r,y:vr+ao,vertical:kl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Ko,metrics:xs,rect:jo}),_r+=xs.advance*Za.scale+gt)}if(ha.length!==0){var Xd=_r-gt;Fr=Math.max(Xd,Fr),sO(ha,0,ha.length-1,Gi,eo)}_r=0;var Zd=ae*Dn+eo;ga.lineOffset=Math.max(eo,Zn),vr+=Zd,ai=Math.max(Zd,ai),++Ti}var Zh=vr-R1,fv=TS(he),hv=fv.horizontalAlign,Eh=fv.verticalAlign;Cd(m.positionedLines,Gi,hv,Eh,Fr,ai,ae,Zh,$.length),m.top+=-Eh*Zh,m.bottom=m.top+Zh,m.left+=-hv*Fr,m.right=m.left+Fr}function sO(m,y,I,U,$){if(!(!U&&!$))for(var ae=m[I],he=ae.metrics.advance*ae.scale,Oe=(m[I].x+he)*U,rt=y;rt<=I;rt++)m[rt].x-=Oe,m[rt].y+=$}function Cd(m,y,I,U,$,ae,he,Oe,rt){var gt=(y-I)*$,Mt=0;ae!==he?Mt=-Oe*U-R1:Mt=(-U*rt+.5)*he;for(var or=0,_r=m;or<_r.length;or+=1)for(var vr=_r[or],Fr=0,ai=vr.positionedGlyphs;Fr-I/2;){if(he--,he<0)return!1;Oe-=m[he].dist(ae),ae=m[he]}Oe+=m[he].dist(m[he+1]),he++;for(var rt=[],gt=0;OeU;)gt-=rt.shift().angleDelta;if(gt>$)return!1;he++,Oe+=or.dist(_r)}return!0}function IQ(m){for(var y=0,I=0;Igt){var Fr=(gt-rt)/vr,ai=al(or.x,_r.x,Fr),Gi=al(or.y,_r.y,Fr),Ti=new Wd(ai,Gi,_r.angleTo(or),Mt);return Ti._round(),!he||PQ(m,Ti,Oe,he,y)?Ti:void 0}rt+=vr}}function iet(m,y,I,U,$,ae,he,Oe,rt){var gt=RQ(U,ae,he),Mt=DQ(U,$),or=Mt*he,_r=m[0].x===0||m[0].x===rt||m[0].y===0||m[0].y===rt;y-or=0&&xn=0&&Dn=0&&_r+gt<=Mt){var Zn=new Wd(xn,Dn,bn,Fr);Zn._round(),(!U||PQ(m,Zn,ae,U,$))&&vr.push(Zn)}}or+=Ti}return!Oe&&!vr.length&&!he&&(vr=FQ(m,or/2,I,U,$,ae,he,!0,rt)),vr}function zQ(m,y,I,U,$){for(var ae=[],he=0;he=U&&or.x>=U)&&(Mt.x>=U?Mt=new u(U,Mt.y+(or.y-Mt.y)*((U-Mt.x)/(or.x-Mt.x)))._round():or.x>=U&&(or=new u(U,Mt.y+(or.y-Mt.y)*((U-Mt.x)/(or.x-Mt.x)))._round()),!(Mt.y>=$&&or.y>=$)&&(Mt.y>=$?Mt=new u(Mt.x+(or.x-Mt.x)*(($-Mt.y)/(or.y-Mt.y)),$)._round():or.y>=$&&(or=new u(Mt.x+(or.x-Mt.x)*(($-Mt.y)/(or.y-Mt.y)),$)._round()),(!rt||!Mt.equals(rt[rt.length-1]))&&(rt=[Mt],ae.push(rt)),rt.push(or)))))}return ae}var Hw=Gc;function OQ(m,y,I,U){var $=[],ae=m.image,he=ae.pixelRatio,Oe=ae.paddedRect.w-2*Hw,rt=ae.paddedRect.h-2*Hw,gt=m.right-m.left,Mt=m.bottom-m.top,or=ae.stretchX||[[0,Oe]],_r=ae.stretchY||[[0,rt]],vr=function(Ll,_l){return Ll+_l[1]-_l[0]},Fr=or.reduce(vr,0),ai=_r.reduce(vr,0),Gi=Oe-Fr,Ti=rt-ai,bn=0,rn=Fr,xn=0,Dn=ai,Zn=0,ga=Gi,ha=0,eo=Ti;if(ae.content&&U){var za=ae.content;bn=Kk(or,0,za[0]),xn=Kk(_r,0,za[1]),rn=Kk(or,za[0],za[2]),Dn=Kk(_r,za[1],za[3]),Zn=za[0]-bn,ha=za[1]-xn,ga=za[2]-za[0]-rn,eo=za[3]-za[1]-Dn}var Za=function(Ll,_l,Qu,gc){var Af=Jk(Ll.stretch-bn,rn,gt,m.left),Df=$k(Ll.fixed-Zn,ga,Ll.stretch,Fr),Xh=Jk(_l.stretch-xn,Dn,Mt,m.top),ch=$k(_l.fixed-ha,eo,_l.stretch,ai),Xd=Jk(Qu.stretch-bn,rn,gt,m.left),Zd=$k(Qu.fixed-Zn,ga,Qu.stretch,Fr),Zh=Jk(gc.stretch-xn,Dn,Mt,m.top),fv=$k(gc.fixed-ha,eo,gc.stretch,ai),hv=new u(Af,Xh),Eh=new u(Xd,Xh),dv=new u(Xd,Zh),_p=new u(Af,Zh),py=new u(Df/he,ch/he),z1=new u(Zd/he,fv/he),O1=y*Math.PI/180;if(O1){var q1=Math.sin(O1),$w=Math.cos(O1),y0=[$w,-q1,q1,$w];hv._matMult(y0),Eh._matMult(y0),_p._matMult(y0),dv._matMult(y0)}var n6=Ll.stretch+Ll.fixed,pO=Qu.stretch+Qu.fixed,a6=_l.stretch+_l.fixed,gO=gc.stretch+gc.fixed,Hp={x:ae.paddedRect.x+Hw+n6,y:ae.paddedRect.y+Hw+a6,w:pO-n6,h:gO-a6},Qw=ga/he/gt,o6=eo/he/Mt;return{tl:hv,tr:Eh,bl:_p,br:dv,tex:Hp,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:py,pixelOffsetBR:z1,minFontScaleX:Qw,minFontScaleY:o6,isSDF:I}};if(!U||!ae.stretchX&&!ae.stretchY)$.push(Za({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:Oe+1},{fixed:0,stretch:rt+1}));else for(var Ko=qQ(or,Gi,Fr),to=qQ(_r,Ti,ai),ao=0;ao0&&(Fr=Math.max(10,Fr),this.circleDiameter=Fr)}else{var ai=he.top*Oe-rt,Gi=he.bottom*Oe+rt,Ti=he.left*Oe-rt,bn=he.right*Oe+rt,rn=he.collisionPadding;if(rn&&(Ti-=rn[0]*Oe,ai-=rn[1]*Oe,bn+=rn[2]*Oe,Gi+=rn[3]*Oe),Mt){var xn=new u(Ti,ai),Dn=new u(bn,ai),Zn=new u(Ti,Gi),ga=new u(bn,Gi),ha=Mt*Math.PI/180;xn._rotate(ha),Dn._rotate(ha),Zn._rotate(ha),ga._rotate(ha),Ti=Math.min(xn.x,Dn.x,Zn.x,ga.x),bn=Math.max(xn.x,Dn.x,Zn.x,ga.x),ai=Math.min(xn.y,Dn.y,Zn.y,ga.y),Gi=Math.max(xn.y,Dn.y,Zn.y,ga.y)}y.emplaceBack(I.x,I.y,Ti,ai,bn,Gi,U,$,ae)}this.boxEndIndex=y.length},jw=function(y,I){if(y===void 0&&(y=[]),I===void 0&&(I=aet),this.data=y,this.length=this.data.length,this.compare=I,this.length>0)for(var U=(this.length>>1)-1;U>=0;U--)this._down(U)};jw.prototype.push=function(y){this.data.push(y),this.length++,this._up(this.length-1)},jw.prototype.pop=function(){if(this.length!==0){var y=this.data[0],I=this.data.pop();return this.length--,this.length>0&&(this.data[0]=I,this._down(0)),y}},jw.prototype.peek=function(){return this.data[0]},jw.prototype._up=function(y){for(var I=this,U=I.data,$=I.compare,ae=U[y];y>0;){var he=y-1>>1,Oe=U[he];if($(ae,Oe)>=0)break;U[y]=Oe,y=he}U[y]=ae},jw.prototype._down=function(y){for(var I=this,U=I.data,$=I.compare,ae=this.length>>1,he=U[y];y=0)break;U[y]=rt,y=Oe}U[y]=he};function aet(m,y){return my?1:0}function oet(m,y,I){y===void 0&&(y=1),I===void 0&&(I=!1);for(var U=1/0,$=1/0,ae=-1/0,he=-1/0,Oe=m[0],rt=0;rtae)&&(ae=gt.x),(!rt||gt.y>he)&&(he=gt.y)}var Mt=ae-U,or=he-$,_r=Math.min(Mt,or),vr=_r/2,Fr=new jw([],set);if(_r===0)return new u(U,$);for(var ai=U;aiTi.d||!Ti.d)&&(Ti=rn,I&&console.log("found best %d after %d probes",Math.round(1e4*rn.d)/1e4,bn)),!(rn.max-Ti.d<=y)&&(vr=rn.h/2,Fr.push(new Ww(rn.p.x-vr,rn.p.y-vr,vr,m)),Fr.push(new Ww(rn.p.x+vr,rn.p.y-vr,vr,m)),Fr.push(new Ww(rn.p.x-vr,rn.p.y+vr,vr,m)),Fr.push(new Ww(rn.p.x+vr,rn.p.y+vr,vr,m)),bn+=4)}return I&&(console.log("num probes: "+bn),console.log("best distance: "+Ti.d)),Ti.p}function set(m,y){return y.max-m.max}function Ww(m,y,I,U){this.p=new u(m,y),this.h=I,this.d=uet(this.p,U),this.max=this.d+this.h*Math.SQRT2}function uet(m,y){for(var I=!1,U=1/0,$=0;$m.y!=Mt.y>m.y&&m.x<(Mt.x-gt.x)*(m.y-gt.y)/(Mt.y-gt.y)+gt.x&&(I=!I),U=Math.min(U,fg(m,gt,Mt))}return(I?1:-1)*Math.sqrt(U)}function cet(m){for(var y=0,I=0,U=0,$=m[0],ae=0,he=$.length,Oe=he-1;ae=Ci||y0.y<0||y0.y>=Ci||det(m,y0,$w,I,U,$,to,m.layers[0],m.collisionBoxArray,y.index,y.sourceLayerIndex,m.index,Ti,Dn,ha,rt,rn,Zn,eo,vr,y,ae,gt,Mt,he)};if(za==="line")for(var xs=0,jo=zQ(y.geometry,0,0,Ci,Ci);xs1){var Xh=ret(Df,ga,I.vertical||Fr,U,ai,bn);Xh&&ao(Df,Xh)}}else if(y.type==="Polygon")for(var ch=0,Xd=Fw(y.geometry,0);chD1&&re(m.layerIds[0]+': Value for "text-size" is >= '+AS+'. Reduce your "text-size".')):Gi.kind==="composite"&&(Ti=[kd*vr.compositeTextSizes[0].evaluate(he,{},Fr),kd*vr.compositeTextSizes[1].evaluate(he,{},Fr)],(Ti[0]>D1||Ti[1]>D1)&&re(m.layerIds[0]+': Value for "text-size" is >= '+AS+'. Reduce your "text-size".')),m.addSymbols(m.text,ai,Ti,Oe,ae,he,gt,y,rt.lineStartIndex,rt.lineLength,_r,Fr);for(var bn=0,rn=Mt;bnD1&&re(m.layerIds[0]+': Value for "icon-size" is >= '+AS+'. Reduce your "icon-size".')):hv.kind==="composite"&&(Eh=[kd*Dn.compositeIconSizes[0].evaluate(xn,{},ga),kd*Dn.compositeIconSizes[1].evaluate(xn,{},ga)],(Eh[0]>D1||Eh[1]>D1)&&re(m.layerIds[0]+': Value for "icon-size" is >= '+AS+'. Reduce your "icon-size".')),m.addSymbols(m.icon,Zh,Eh,rn,bn,xn,!1,y,za.lineStartIndex,za.lineLength,-1,ga),kl=m.icon.placedSymbolArray.length-1,fv&&(jo=fv.length*4,m.addSymbols(m.icon,fv,Eh,rn,bn,xn,uv.vertical,y,za.lineStartIndex,za.lineLength,-1,ga),Ll=m.icon.placedSymbolArray.length-1)}for(var dv in U.horizontal){var _p=U.horizontal[dv];if(!Za){Qu=K(_p.text);var py=Oe.layout.get("text-rotate").evaluate(xn,{},ga);Za=new Qk(rt,y,gt,Mt,or,_p,_r,vr,Fr,py)}var z1=_p.positionedLines.length===1;if(Cl+=NQ(m,y,_p,ae,Oe,Fr,xn,ai,za,U.vertical?uv.horizontal:uv.horizontalOnly,z1?Object.keys(U.horizontal):[dv],_l,kl,Dn,ga),z1)break}U.vertical&&(Iu+=NQ(m,y,U.vertical,ae,Oe,Fr,xn,ai,za,uv.vertical,["vertical"],_l,Ll,Dn,ga));var O1=Za?Za.boxStartIndex:m.collisionBoxArray.length,q1=Za?Za.boxEndIndex:m.collisionBoxArray.length,$w=to?to.boxStartIndex:m.collisionBoxArray.length,y0=to?to.boxEndIndex:m.collisionBoxArray.length,n6=Ko?Ko.boxStartIndex:m.collisionBoxArray.length,pO=Ko?Ko.boxEndIndex:m.collisionBoxArray.length,a6=ao?ao.boxStartIndex:m.collisionBoxArray.length,gO=ao?ao.boxEndIndex:m.collisionBoxArray.length,Hp=-1,Qw=function(ES,iee){return ES&&ES.circleDiameter?Math.max(ES.circleDiameter,iee):iee};Hp=Qw(Za,Hp),Hp=Qw(to,Hp),Hp=Qw(Ko,Hp),Hp=Qw(ao,Hp);var o6=Hp>-1?1:0;o6&&(Hp*=ha/An),m.glyphOffsetArray.length>=Pu.MAX_GLYPHS&&re("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),xn.sortKey!==void 0&&m.addToSortKeyRanges(m.symbolInstances.length,xn.sortKey),m.symbolInstances.emplaceBack(y.x,y.y,_l.right>=0?_l.right:-1,_l.center>=0?_l.center:-1,_l.left>=0?_l.left:-1,_l.vertical||-1,kl,Ll,Qu,O1,q1,$w,y0,n6,pO,a6,gO,gt,Cl,Iu,xs,jo,o6,0,_r,gc,Af,Hp)}function vet(m,y,I,U){var $=m.compareText;if(!(y in $))$[y]=[];else for(var ae=$[y],he=ae.length-1;he>=0;he--)if(U.dist(ae[he])0)&&(he.value.kind!=="constant"||he.value.value.length>0),Mt=rt.value.kind!=="constant"||!!rt.value.value||Object.keys(rt.parameters).length>0,or=ae.get("symbol-sort-key");if(this.features=[],!(!gt&&!Mt)){for(var _r=I.iconDependencies,vr=I.glyphDependencies,Fr=I.availableImages,ai=new Gn(this.zoom),Gi=0,Ti=y;Gi=0;for(var Iu=0,kl=eo.sections;Iu=0;rt--)he[rt]={x:I[rt].x,y:I[rt].y,tileUnitDistanceFromAnchor:ae},rt>0&&(ae+=I[rt-1].dist(I[rt]));for(var gt=0;gt0},Pu.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Pu.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Pu.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Pu.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Pu.prototype.addIndicesForPlacedSymbol=function(y,I){for(var U=y.placedSymbolArray.get(I),$=U.vertexStartIndex+U.numGlyphs*4,ae=U.vertexStartIndex;ae<$;ae+=4)y.indexArray.emplaceBack(ae,ae+1,ae+2),y.indexArray.emplaceBack(ae+1,ae+2,ae+3)},Pu.prototype.getSortedSymbolIndexes=function(y){if(this.sortedAngle===y&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var I=Math.sin(y),U=Math.cos(y),$=[],ae=[],he=[],Oe=0;Oe1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(y),this.sortedAngle=y,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var U=0,$=this.symbolInstanceIndexes;U<$.length;U+=1){var ae=$[U],he=this.symbolInstances.get(ae);this.featureSortOrder.push(he.featureIndex),[he.rightJustifiedTextSymbolIndex,he.centerJustifiedTextSymbolIndex,he.leftJustifiedTextSymbolIndex].forEach(function(Oe,rt,gt){Oe>=0&>.indexOf(Oe)===rt&&I.addIndicesForPlacedSymbol(I.text,Oe)}),he.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,he.verticalPlacedTextSymbolIndex),he.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.placedIconSymbolIndex),he.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},X("SymbolBucket",Pu,{omit:["layers","collisionBoxArray","features","compareText"]}),Pu.MAX_GLYPHS=65535,Pu.addDynamicAttributes=cO;function yet(m,y){return y.replace(/{([^{}]+)}/g,function(I,U){return U in m?String(m[U]):""})}var _et=new Br({"symbol-placement":new Ee(Fn.layout_symbol["symbol-placement"]),"symbol-spacing":new Ee(Fn.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ee(Fn.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new xt(Fn.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ee(Fn.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ee(Fn.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ee(Fn.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ee(Fn.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ee(Fn.layout_symbol["icon-rotation-alignment"]),"icon-size":new xt(Fn.layout_symbol["icon-size"]),"icon-text-fit":new Ee(Fn.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ee(Fn.layout_symbol["icon-text-fit-padding"]),"icon-image":new xt(Fn.layout_symbol["icon-image"]),"icon-rotate":new xt(Fn.layout_symbol["icon-rotate"]),"icon-padding":new Ee(Fn.layout_symbol["icon-padding"]),"icon-keep-upright":new Ee(Fn.layout_symbol["icon-keep-upright"]),"icon-offset":new xt(Fn.layout_symbol["icon-offset"]),"icon-anchor":new xt(Fn.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ee(Fn.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ee(Fn.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ee(Fn.layout_symbol["text-rotation-alignment"]),"text-field":new xt(Fn.layout_symbol["text-field"]),"text-font":new xt(Fn.layout_symbol["text-font"]),"text-size":new xt(Fn.layout_symbol["text-size"]),"text-max-width":new xt(Fn.layout_symbol["text-max-width"]),"text-line-height":new Ee(Fn.layout_symbol["text-line-height"]),"text-letter-spacing":new xt(Fn.layout_symbol["text-letter-spacing"]),"text-justify":new xt(Fn.layout_symbol["text-justify"]),"text-radial-offset":new xt(Fn.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ee(Fn.layout_symbol["text-variable-anchor"]),"text-anchor":new xt(Fn.layout_symbol["text-anchor"]),"text-max-angle":new Ee(Fn.layout_symbol["text-max-angle"]),"text-writing-mode":new Ee(Fn.layout_symbol["text-writing-mode"]),"text-rotate":new xt(Fn.layout_symbol["text-rotate"]),"text-padding":new Ee(Fn.layout_symbol["text-padding"]),"text-keep-upright":new Ee(Fn.layout_symbol["text-keep-upright"]),"text-transform":new xt(Fn.layout_symbol["text-transform"]),"text-offset":new xt(Fn.layout_symbol["text-offset"]),"text-allow-overlap":new Ee(Fn.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ee(Fn.layout_symbol["text-ignore-placement"]),"text-optional":new Ee(Fn.layout_symbol["text-optional"])}),xet=new Br({"icon-opacity":new xt(Fn.paint_symbol["icon-opacity"]),"icon-color":new xt(Fn.paint_symbol["icon-color"]),"icon-halo-color":new xt(Fn.paint_symbol["icon-halo-color"]),"icon-halo-width":new xt(Fn.paint_symbol["icon-halo-width"]),"icon-halo-blur":new xt(Fn.paint_symbol["icon-halo-blur"]),"icon-translate":new Ee(Fn.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ee(Fn.paint_symbol["icon-translate-anchor"]),"text-opacity":new xt(Fn.paint_symbol["text-opacity"]),"text-color":new xt(Fn.paint_symbol["text-color"],{runtimeType:ql,getOverride:function(m){return m.textColor},hasOverride:function(m){return!!m.textColor}}),"text-halo-color":new xt(Fn.paint_symbol["text-halo-color"]),"text-halo-width":new xt(Fn.paint_symbol["text-halo-width"]),"text-halo-blur":new xt(Fn.paint_symbol["text-halo-blur"]),"text-translate":new Ee(Fn.paint_symbol["text-translate"]),"text-translate-anchor":new Ee(Fn.paint_symbol["text-translate-anchor"])}),fO={paint:xet,layout:_et},Yw=function(y){this.type=y.property.overrides?y.property.overrides.runtimeType:ac,this.defaultValue=y};Yw.prototype.evaluate=function(y){if(y.formattedSection){var I=this.defaultValue.property.overrides;if(I&&I.hasOverride(y.formattedSection))return I.getOverride(y.formattedSection)}return y.feature&&y.featureState?this.defaultValue.evaluate(y.feature,y.featureState):this.defaultValue.property.specification.default},Yw.prototype.eachChild=function(y){if(!this.defaultValue.isConstant()){var I=this.defaultValue.value;y(I._styleExpression.expression)}},Yw.prototype.outputDefined=function(){return!1},Yw.prototype.serialize=function(){return null},X("FormatSectionOverride",Yw,{omit:["defaultValue"]});var bet=function(m){function y(I){m.call(this,I,fO)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.recalculate=function(U,$){if(m.prototype.recalculate.call(this,U,$),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var ae=this.layout.get("text-writing-mode");if(ae){for(var he=[],Oe=0,rt=ae;Oe",targetMapId:$,sourceMapId:he.mapId})}}},Kw.prototype.receive=function(y){var I=y.data,U=I.id;if(U&&!(I.targetMapId&&this.mapId!==I.targetMapId))if(I.type===""){delete this.tasks[U];var $=this.cancelCallbacks[U];delete this.cancelCallbacks[U],$&&$()}else ke()||I.mustQueue?(this.tasks[U]=I,this.taskQueue.push(U),this.invoker.trigger()):this.processTask(U,I)},Kw.prototype.process=function(){if(this.taskQueue.length){var y=this.taskQueue.shift(),I=this.tasks[y];delete this.tasks[y],this.taskQueue.length&&this.invoker.trigger(),I&&this.processTask(y,I)}},Kw.prototype.processTask=function(y,I){var U=this;if(I.type===""){var $=this.callbacks[y];delete this.callbacks[y],$&&(I.error?$(Ye(I.error)):$(null,Ye(I.data)))}else{var ae=!1,he=Se(this.globalScope)?void 0:[],Oe=I.hasCallback?function(_r,vr){ae=!0,delete U.cancelCallbacks[y],U.target.postMessage({id:y,type:"",sourceMapId:U.mapId,error:_r?He(_r):null,data:He(vr,he)},he)}:function(_r){ae=!0},rt=null,gt=Ye(I.data);if(this.parent[I.type])rt=this.parent[I.type](I.sourceMapId,gt,Oe);else if(this.parent.getWorkerSource){var Mt=I.type.split("."),or=this.parent.getWorkerSource(I.sourceMapId,Mt[0],gt.source);rt=or[Mt[1]](gt,Oe)}else Oe(new Error("Could not find function "+I.type));!ae&&rt&&rt.cancel&&(this.cancelCallbacks[y]=rt.cancel)}},Kw.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function Ret(m,y,I){y=Math.pow(2,I)-y-1;var U=WQ(m*256,y*256,I),$=WQ((m+1)*256,(y+1)*256,I);return U[0]+","+U[1]+","+$[0]+","+$[1]}function WQ(m,y,I){var U=2*Math.PI*6378137/256/Math.pow(2,I),$=m*U-2*Math.PI*6378137/2,ae=y*U-2*Math.PI*6378137/2;return[$,ae]}var lh=function(y,I){y&&(I?this.setSouthWest(y).setNorthEast(I):y.length===4?this.setSouthWest([y[0],y[1]]).setNorthEast([y[2],y[3]]):this.setSouthWest(y[0]).setNorthEast(y[1]))};lh.prototype.setNorthEast=function(y){return this._ne=y instanceof Hc?new Hc(y.lng,y.lat):Hc.convert(y),this},lh.prototype.setSouthWest=function(y){return this._sw=y instanceof Hc?new Hc(y.lng,y.lat):Hc.convert(y),this},lh.prototype.extend=function(y){var I=this._sw,U=this._ne,$,ae;if(y instanceof Hc)$=y,ae=y;else if(y instanceof lh){if($=y._sw,ae=y._ne,!$||!ae)return this}else{if(Array.isArray(y))if(y.length===4||y.every(Array.isArray)){var he=y;return this.extend(lh.convert(he))}else{var Oe=y;return this.extend(Hc.convert(Oe))}return this}return!I&&!U?(this._sw=new Hc($.lng,$.lat),this._ne=new Hc(ae.lng,ae.lat)):(I.lng=Math.min($.lng,I.lng),I.lat=Math.min($.lat,I.lat),U.lng=Math.max(ae.lng,U.lng),U.lat=Math.max(ae.lat,U.lat)),this},lh.prototype.getCenter=function(){return new Hc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},lh.prototype.getSouthWest=function(){return this._sw},lh.prototype.getNorthEast=function(){return this._ne},lh.prototype.getNorthWest=function(){return new Hc(this.getWest(),this.getNorth())},lh.prototype.getSouthEast=function(){return new Hc(this.getEast(),this.getSouth())},lh.prototype.getWest=function(){return this._sw.lng},lh.prototype.getSouth=function(){return this._sw.lat},lh.prototype.getEast=function(){return this._ne.lng},lh.prototype.getNorth=function(){return this._ne.lat},lh.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},lh.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},lh.prototype.isEmpty=function(){return!(this._sw&&this._ne)},lh.prototype.contains=function(y){var I=Hc.convert(y),U=I.lng,$=I.lat,ae=this._sw.lat<=$&&$<=this._ne.lat,he=this._sw.lng<=U&&U<=this._ne.lng;return this._sw.lng>this._ne.lng&&(he=this._sw.lng>=U&&U>=this._ne.lng),ae&&he},lh.convert=function(y){return!y||y instanceof lh?y:new lh(y)};var XQ=63710088e-1,Hc=function(y,I){if(isNaN(y)||isNaN(I))throw new Error("Invalid LngLat object: ("+y+", "+I+")");if(this.lng=+y,this.lat=+I,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Hc.prototype.wrap=function(){return new Hc(C(this.lng,-180,180),this.lat)},Hc.prototype.toArray=function(){return[this.lng,this.lat]},Hc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Hc.prototype.distanceTo=function(y){var I=Math.PI/180,U=this.lat*I,$=y.lat*I,ae=Math.sin(U)*Math.sin($)+Math.cos(U)*Math.cos($)*Math.cos((y.lng-this.lng)*I),he=XQ*Math.acos(Math.min(ae,1));return he},Hc.prototype.toBounds=function(y){y===void 0&&(y=0);var I=40075017,U=360*y/I,$=U/Math.cos(Math.PI/180*this.lat);return new lh(new Hc(this.lng-$,this.lat-U),new Hc(this.lng+$,this.lat+U))},Hc.convert=function(y){if(y instanceof Hc)return y;if(Array.isArray(y)&&(y.length===2||y.length===3))return new Hc(Number(y[0]),Number(y[1]));if(!Array.isArray(y)&&typeof y=="object"&&y!==null)return new Hc(Number("lng"in y?y.lng:y.lon),Number(y.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var ZQ=2*Math.PI*XQ;function YQ(m){return ZQ*Math.cos(m*Math.PI/180)}function KQ(m){return(180+m)/360}function JQ(m){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+m*Math.PI/360)))/360}function $Q(m,y){return m/YQ(y)}function Det(m){return m*360-180}function dO(m){var y=180-m*360;return 360/Math.PI*Math.atan(Math.exp(y*Math.PI/180))-90}function Fet(m,y){return m*YQ(dO(y))}function zet(m){return 1/Math.cos(m*Math.PI/180)}var ib=function(y,I,U){U===void 0&&(U=0),this.x=+y,this.y=+I,this.z=+U};ib.fromLngLat=function(y,I){I===void 0&&(I=0);var U=Hc.convert(y);return new ib(KQ(U.lng),JQ(U.lat),$Q(I,U.lat))},ib.prototype.toLngLat=function(){return new Hc(Det(this.x),dO(this.y))},ib.prototype.toAltitude=function(){return Fet(this.z,this.y)},ib.prototype.meterInMercatorCoordinateUnits=function(){return 1/ZQ*zet(dO(this.y))};var nb=function(y,I,U){this.z=y,this.x=I,this.y=U,this.key=MS(0,y,y,I,U)};nb.prototype.equals=function(y){return this.z===y.z&&this.x===y.x&&this.y===y.y},nb.prototype.url=function(y,I){var U=Ret(this.x,this.y,this.z),$=Oet(this.z,this.x,this.y);return y[(this.x+this.y)%y.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(I==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",$).replace("{bbox-epsg-3857}",U)},nb.prototype.getTilePoint=function(y){var I=Math.pow(2,this.z);return new u((y.x*I-this.x)*Ci,(y.y*I-this.y)*Ci)},nb.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var QQ=function(y,I){this.wrap=y,this.canonical=I,this.key=MS(y,I.z,I.z,I.x,I.y)},uh=function(y,I,U,$,ae){this.overscaledZ=y,this.wrap=I,this.canonical=new nb(U,+$,+ae),this.key=MS(I,y,U,$,ae)};uh.prototype.equals=function(y){return this.overscaledZ===y.overscaledZ&&this.wrap===y.wrap&&this.canonical.equals(y.canonical)},uh.prototype.scaledTo=function(y){var I=this.canonical.z-y;return y>this.canonical.z?new uh(y,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new uh(y,this.wrap,y,this.canonical.x>>I,this.canonical.y>>I)},uh.prototype.calculateScaledKey=function(y,I){var U=this.canonical.z-y;return y>this.canonical.z?MS(this.wrap*+I,y,this.canonical.z,this.canonical.x,this.canonical.y):MS(this.wrap*+I,y,y,this.canonical.x>>U,this.canonical.y>>U)},uh.prototype.isChildOf=function(y){if(y.wrap!==this.wrap)return!1;var I=this.canonical.z-y.canonical.z;return y.overscaledZ===0||y.overscaledZ>I&&y.canonical.y===this.canonical.y>>I},uh.prototype.children=function(y){if(this.overscaledZ>=y)return[new uh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var I=this.canonical.z+1,U=this.canonical.x*2,$=this.canonical.y*2;return[new uh(I,this.wrap,I,U,$),new uh(I,this.wrap,I,U+1,$),new uh(I,this.wrap,I,U,$+1),new uh(I,this.wrap,I,U+1,$+1)]},uh.prototype.isLessThan=function(y){return this.wrapy.wrap?!1:this.overscaledZy.overscaledZ?!1:this.canonical.xy.canonical.x?!1:this.canonical.y0;ae--)$=1<=this.dim+1||I<-1||I>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(I+1)*this.stride+(y+1)},dy.prototype._unpackMapbox=function(y,I,U){return(y*256*256+I*256+U)/10-1e4},dy.prototype._unpackTerrarium=function(y,I,U){return y*256+I+U/256-32768},dy.prototype.getPixels=function(){return new Th({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},dy.prototype.backfillBorder=function(y,I,U){if(this.dim!==y.dim)throw new Error("dem dimension mismatch");var $=I*this.dim,ae=I*this.dim+this.dim,he=U*this.dim,Oe=U*this.dim+this.dim;switch(I){case-1:$=ae-1;break;case 1:ae=$+1;break}switch(U){case-1:he=Oe-1;break;case 1:Oe=he+1;break}for(var rt=-I*this.dim,gt=-U*this.dim,Mt=he;Mt=0&&or[3]>=0&&rt.insert(Oe,or[0],or[1],or[2],or[3])}},vy.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new gg.VectorTile(new Xa(this.rawTileData)).layers,this.sourceLayerCoder=new r6(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},vy.prototype.query=function(y,I,U,$){var ae=this;this.loadVTLayers();for(var he=y.params||{},Oe=Ci/y.tileSize/y.scale,rt=be(he.filter),gt=y.queryGeometry,Mt=y.queryPadding*Oe,or=tee(gt),_r=this.grid.query(or.minX-Mt,or.minY-Mt,or.maxX+Mt,or.maxY+Mt),vr=tee(y.cameraQueryGeometry),Fr=this.grid3D.query(vr.minX-Mt,vr.minY-Mt,vr.maxX+Mt,vr.maxY+Mt,function(Zn,ga,ha,eo){return pp(y.cameraQueryGeometry,Zn-Mt,ga-Mt,ha+Mt,eo+Mt)}),ai=0,Gi=Fr;ai$)ae=!1;else if(!I)ae=!0;else if(this.expirationTime=Ga.maxzoom)&&Ga.visibility!=="none"){h(Wn,this.zoom,ar);var vo=Ji[Ga.id]=Ga.createBucket({index:zi.bucketLayerIDs.length,layers:Wn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ba,sourceID:this.source});vo.populate(la,en,this.tileID.canonical),zi.bucketLayerIDs.push(Wn.map(function(ki){return ki.id}))}}}}var jn,St,Cr,Qr,pi=i.mapObject(en.glyphDependencies,function(ki){return Object.keys(ki).map(Number)});Object.keys(pi).length?Er.send("getGlyphs",{uid:this.uid,stacks:pi},function(ki,_n){jn||(jn=ki,St=_n,En.call(ri))}):St={};var fn=Object.keys(en.iconDependencies);fn.length?Er.send("getImages",{icons:fn,source:this.source,tileID:this.tileID,type:"icons"},function(ki,_n){jn||(jn=ki,Cr=_n,En.call(ri))}):Cr={};var Sn=Object.keys(en.patternDependencies);Sn.length?Er.send("getImages",{icons:Sn,source:this.source,tileID:this.tileID,type:"patterns"},function(ki,_n){jn||(jn=ki,Qr=_n,En.call(ri))}):Qr={},En.call(this);function En(){if(jn)return Zr(jn);if(St&&Cr&&Qr){var ki=new c(St),_n=new i.ImageAtlas(Cr,Qr);for(var ya in Ji){var Jn=Ji[ya];Jn instanceof i.SymbolBucket?(h(Jn.layers,this.zoom,ar),i.performSymbolLayout(Jn,St,ki.positions,Cr,_n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Jn.hasPattern&&(Jn instanceof i.LineBucket||Jn instanceof i.FillBucket||Jn instanceof i.FillExtrusionBucket)&&(h(Jn.layers,this.zoom,ar),Jn.addFeatures(en,this.tileID.canonical,_n.patternPositions))}this.status="done",Zr(null,{buckets:i.values(Ji).filter(function(Ma){return!Ma.isEmpty()}),featureIndex:zi,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ki.image,imageAtlas:_n,glyphMap:this.returnDependencies?St:null,iconMap:this.returnDependencies?Cr:null,glyphPositions:this.returnDependencies?ki.positions:null})}}};function h(Vt,_t,tr){for(var ar=new i.EvaluationParameters(_t),Er=0,Zr=Vt;Er=0!=!!_t&&Vt.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,x=function(_t){this._feature=_t,this.extent=i.EXTENT,this.type=_t.type,this.properties=_t.tags,"id"in _t&&!isNaN(_t.id)&&(this.id=parseInt(_t.id,10))};x.prototype.loadGeometry=function(){if(this._feature.type===1){for(var _t=[],tr=0,ar=this._feature.geometry;tr>31}function ke(Vt,_t){for(var tr=Vt.loadGeometry(),ar=Vt.type,Er=0,Zr=0,ri=tr.length,$r=0;$r>1;Se(Vt,_t,ri,ar,Er,Zr%2),ie(Vt,_t,tr,ar,ri-1,Zr+1),ie(Vt,_t,tr,ri+1,Er,Zr+1)}}function Se(Vt,_t,tr,ar,Er,Zr){for(;Er>ar;){if(Er-ar>600){var ri=Er-ar+1,$r=tr-ar+1,zi=Math.log(ri),Ji=.5*Math.exp(2*zi/3),en=.5*Math.sqrt(zi*Ji*(ri-Ji)/ri)*($r-ri/2<0?-1:1),cn=Math.max(ar,Math.floor(tr-$r*Ji/ri+en)),yn=Math.min(Er,Math.floor(tr+(ri-$r)*Ji/ri+en));Se(Vt,_t,tr,cn,yn,Zr)}var Mn=_t[2*tr+Zr],Ba=ar,la=Er;for(Le(Vt,_t,ar,tr),_t[2*Er+Zr]>Mn&&Le(Vt,_t,ar,Er);BaMn;)la--}_t[2*ar+Zr]===Mn?Le(Vt,_t,ar,la):(la++,Le(Vt,_t,la,Er)),la<=tr&&(ar=la+1),tr<=la&&(Er=la-1)}}function Le(Vt,_t,tr,ar){Ae(Vt,tr,ar),Ae(_t,2*tr,2*ar),Ae(_t,2*tr+1,2*ar+1)}function Ae(Vt,_t,tr){var ar=Vt[_t];Vt[_t]=Vt[tr],Vt[tr]=ar}function De(Vt,_t,tr,ar,Er,Zr,ri){for(var $r=[0,Vt.length-1,0],zi=[],Ji,en;$r.length;){var cn=$r.pop(),yn=$r.pop(),Mn=$r.pop();if(yn-Mn<=ri){for(var Ba=Mn;Ba<=yn;Ba++)Ji=_t[2*Ba],en=_t[2*Ba+1],Ji>=tr&&Ji<=Er&&en>=ar&&en<=Zr&&zi.push(Vt[Ba]);continue}var la=Math.floor((Mn+yn)/2);Ji=_t[2*la],en=_t[2*la+1],Ji>=tr&&Ji<=Er&&en>=ar&&en<=Zr&&zi.push(Vt[la]);var ma=(cn+1)%2;(cn===0?tr<=Ji:ar<=en)&&($r.push(Mn),$r.push(la-1),$r.push(ma)),(cn===0?Er>=Ji:Zr>=en)&&($r.push(la+1),$r.push(yn),$r.push(ma))}return zi}function Pe(Vt,_t,tr,ar,Er,Zr){for(var ri=[0,Vt.length-1,0],$r=[],zi=Er*Er;ri.length;){var Ji=ri.pop(),en=ri.pop(),cn=ri.pop();if(en-cn<=Zr){for(var yn=cn;yn<=en;yn++)ge(_t[2*yn],_t[2*yn+1],tr,ar)<=zi&&$r.push(Vt[yn]);continue}var Mn=Math.floor((cn+en)/2),Ba=_t[2*Mn],la=_t[2*Mn+1];ge(Ba,la,tr,ar)<=zi&&$r.push(Vt[Mn]);var ma=(Ji+1)%2;(Ji===0?tr-Er<=Ba:ar-Er<=la)&&(ri.push(cn),ri.push(Mn-1),ri.push(ma)),(Ji===0?tr+Er>=Ba:ar+Er>=la)&&(ri.push(Mn+1),ri.push(en),ri.push(ma))}return $r}function ge(Vt,_t,tr,ar){var Er=Vt-tr,Zr=_t-ar;return Er*Er+Zr*Zr}var Fe=function(Vt){return Vt[0]},ce=function(Vt){return Vt[1]},Ze=function(_t,tr,ar,Er,Zr){tr===void 0&&(tr=Fe),ar===void 0&&(ar=ce),Er===void 0&&(Er=64),Zr===void 0&&(Zr=Float64Array),this.nodeSize=Er,this.points=_t;for(var ri=_t.length<65536?Uint16Array:Uint32Array,$r=this.ids=new ri(_t.length),zi=this.coords=new Zr(_t.length*2),Ji=0;Ji<_t.length;Ji++)$r[Ji]=Ji,zi[2*Ji]=tr(_t[Ji]),zi[2*Ji+1]=ar(_t[Ji]);ie($r,zi,Er,0,$r.length-1,0)};Ze.prototype.range=function(_t,tr,ar,Er){return De(this.ids,this.coords,_t,tr,ar,Er,this.nodeSize)},Ze.prototype.within=function(_t,tr,ar){return Pe(this.ids,this.coords,_t,tr,ar,this.nodeSize)};var ct={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(Vt){return Vt}},pt=function(_t){this.options=ur(Object.create(ct),_t),this.trees=new Array(this.options.maxZoom+1)};pt.prototype.load=function(_t){var tr=this.options,ar=tr.log,Er=tr.minZoom,Zr=tr.maxZoom,ri=tr.nodeSize;ar&&console.time("total time");var $r="prepare "+_t.length+" points";ar&&console.time($r),this.points=_t;for(var zi=[],Ji=0;Ji<_t.length;Ji++)_t[Ji].geometry&&zi.push(st(_t[Ji],Ji));this.trees[Zr+1]=new Ze(zi,Qe,Et,ri,Float32Array),ar&&console.timeEnd($r);for(var en=Zr;en>=Er;en--){var cn=+Date.now();zi=this._cluster(zi,en),this.trees[en]=new Ze(zi,Qe,Et,ri,Float32Array),ar&&console.log("z%d: %d clusters in %dms",en,zi.length,+Date.now()-cn)}return ar&&console.timeEnd("total time"),this},pt.prototype.getClusters=function(_t,tr){var ar=((_t[0]+180)%360+360)%360-180,Er=Math.max(-90,Math.min(90,_t[1])),Zr=_t[2]===180?180:((_t[2]+180)%360+360)%360-180,ri=Math.max(-90,Math.min(90,_t[3]));if(_t[2]-_t[0]>=360)ar=-180,Zr=180;else if(ar>Zr){var $r=this.getClusters([ar,Er,180,ri],tr),zi=this.getClusters([-180,Er,Zr,ri],tr);return $r.concat(zi)}for(var Ji=this.trees[this._limitZoom(tr)],en=Ji.range(Nt(ar),$t(ri),Nt(Zr),$t(Er)),cn=[],yn=0,Mn=en;yntr&&(la+=Wo.numPoints||1)}if(la>=zi){for(var da=cn.x*Ba,Wn=cn.y*Ba,Ga=$r&&Ba>1?this._map(cn,!0):null,vo=(en<<5)+(tr+1)+this.points.length,jn=0,St=Mn;jn1)for(var fn=0,Sn=Mn;fn>5},pt.prototype._getOriginZoom=function(_t){return(_t-this.points.length)%32},pt.prototype._map=function(_t,tr){if(_t.numPoints)return tr?ur({},_t.properties):_t.properties;var ar=this.points[_t.index].properties,Er=this.options.map(ar);return tr&&Er===ar?ur({},Er):Er};function Wt(Vt,_t,tr,ar,Er){return{x:Vt,y:_t,zoom:1/0,id:tr,parentId:-1,numPoints:ar,properties:Er}}function st(Vt,_t){var tr=Vt.geometry.coordinates,ar=tr[0],Er=tr[1];return{x:Nt(ar),y:$t(Er),zoom:1/0,index:_t,parentId:-1}}function lt(Vt){return{type:"Feature",id:Vt.id,properties:Gt(Vt),geometry:{type:"Point",coordinates:[sr(Vt.x),wr(Vt.y)]}}}function Gt(Vt){var _t=Vt.numPoints,tr=_t>=1e4?Math.round(_t/1e3)+"k":_t>=1e3?Math.round(_t/100)/10+"k":_t;return ur(ur({},Vt.properties),{cluster:!0,cluster_id:Vt.id,point_count:_t,point_count_abbreviated:tr})}function Nt(Vt){return Vt/360+.5}function $t(Vt){var _t=Math.sin(Vt*Math.PI/180),tr=.5-.25*Math.log((1+_t)/(1-_t))/Math.PI;return tr<0?0:tr>1?1:tr}function sr(Vt){return(Vt-.5)*360}function wr(Vt){var _t=(180-Vt*360)*Math.PI/180;return 360*Math.atan(Math.exp(_t))/Math.PI-90}function ur(Vt,_t){for(var tr in _t)Vt[tr]=_t[tr];return Vt}function Qe(Vt){return Vt.x}function Et(Vt){return Vt.y}function er(Vt,_t,tr,ar){for(var Er=ar,Zr=tr-_t>>1,ri=tr-_t,$r,zi=Vt[_t],Ji=Vt[_t+1],en=Vt[tr],cn=Vt[tr+1],yn=_t+3;ynEr)$r=yn,Er=Mn;else if(Mn===Er){var Ba=Math.abs(yn-Zr);Baar&&($r-_t>3&&er(Vt,_t,$r,ar),Vt[$r+2]=Er,tr-$r>3&&er(Vt,$r,tr,ar))}function Ut(Vt,_t,tr,ar,Er,Zr){var ri=Er-tr,$r=Zr-ar;if(ri!==0||$r!==0){var zi=((Vt-tr)*ri+(_t-ar)*$r)/(ri*ri+$r*$r);zi>1?(tr=Er,ar=Zr):zi>0&&(tr+=ri*zi,ar+=$r*zi)}return ri=Vt-tr,$r=_t-ar,ri*ri+$r*$r}function Ft(Vt,_t,tr,ar){var Er={id:typeof Vt=="undefined"?null:Vt,type:_t,geometry:tr,tags:ar,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return bt(Er),Er}function bt(Vt){var _t=Vt.geometry,tr=Vt.type;if(tr==="Point"||tr==="MultiPoint"||tr==="LineString")yt(Vt,_t);else if(tr==="Polygon"||tr==="MultiLineString")for(var ar=0;ar<_t.length;ar++)yt(Vt,_t[ar]);else if(tr==="MultiPolygon")for(ar=0;ar<_t.length;ar++)for(var Er=0;Er<_t[ar].length;Er++)yt(Vt,_t[ar][Er])}function yt(Vt,_t){for(var tr=0;tr<_t.length;tr+=3)Vt.minX=Math.min(Vt.minX,_t[tr]),Vt.minY=Math.min(Vt.minY,_t[tr+1]),Vt.maxX=Math.max(Vt.maxX,_t[tr]),Vt.maxY=Math.max(Vt.maxY,_t[tr+1])}function Yt(Vt,_t){var tr=[];if(Vt.type==="FeatureCollection")for(var ar=0;ar0&&(ar?ri+=(Er*Ji-zi*Zr)/2:ri+=Math.sqrt(Math.pow(zi-Er,2)+Math.pow(Ji-Zr,2))),Er=zi,Zr=Ji}var en=_t.length-3;_t[2]=1,er(_t,0,en,tr),_t[en+2]=1,_t.size=Math.abs(ri),_t.start=0,_t.end=_t.size}function ei(Vt,_t,tr,ar){for(var Er=0;Er1?1:tr}function dt(Vt,_t,tr,ar,Er,Zr,ri,$r){if(tr/=_t,ar/=_t,Zr>=tr&&ri=ar)return null;for(var zi=[],Ji=0;Ji=tr&&Ba=ar)continue;var la=[];if(yn==="Point"||yn==="MultiPoint")Ge(cn,la,tr,ar,Er);else if(yn==="LineString")Je(cn,la,tr,ar,Er,!1,$r.lineMetrics);else if(yn==="MultiLineString")$e(cn,la,tr,ar,Er,!1);else if(yn==="Polygon")$e(cn,la,tr,ar,Er,!0);else if(yn==="MultiPolygon")for(var ma=0;ma=tr&&ri<=ar&&(_t.push(Vt[Zr]),_t.push(Vt[Zr+1]),_t.push(Vt[Zr+2]))}}function Je(Vt,_t,tr,ar,Er,Zr,ri){for(var $r=je(Vt),zi=Er===0?Ie:xe,Ji=Vt.start,en,cn,yn=0;yntr&&(cn=zi($r,Mn,Ba,ma,Wa,tr),ri&&($r.start=Ji+en*cn)):Fa>ar?Wo=tr&&(cn=zi($r,Mn,Ba,ma,Wa,tr),da=!0),Wo>ar&&Fa<=ar&&(cn=zi($r,Mn,Ba,ma,Wa,ar),da=!0),!Zr&&da&&(ri&&($r.end=Ji+en*cn),_t.push($r),$r=je(Vt)),ri&&(Ji+=en)}var Wn=Vt.length-3;Mn=Vt[Wn],Ba=Vt[Wn+1],la=Vt[Wn+2],Fa=Er===0?Mn:Ba,Fa>=tr&&Fa<=ar&&wt($r,Mn,Ba,la),Wn=$r.length-3,Zr&&Wn>=3&&($r[Wn]!==$r[0]||$r[Wn+1]!==$r[1])&&wt($r,$r[0],$r[1],$r[2]),$r.length&&_t.push($r)}function je(Vt){var _t=[];return _t.size=Vt.size,_t.start=Vt.start,_t.end=Vt.end,_t}function $e(Vt,_t,tr,ar,Er,Zr){for(var ri=0;riri.maxX&&(ri.maxX=en),cn>ri.maxY&&(ri.maxY=cn)}return ri}function di(Vt,_t,tr,ar){var Er=_t.geometry,Zr=_t.type,ri=[];if(Zr==="Point"||Zr==="MultiPoint")for(var $r=0;$r0&&_t.size<(Er?ri:ar)){tr.numPoints+=_t.length/3;return}for(var $r=[],zi=0;zi<_t.length;zi+=3)(ar===0||_t[zi+2]>ri)&&(tr.numSimplified++,$r.push(_t[zi]),$r.push(_t[zi+1])),tr.numPoints++;Er&&fi($r,Zr),Vt.push($r)}function fi(Vt,_t){for(var tr=0,ar=0,Er=Vt.length,Zr=Er-2;ar0===_t)for(ar=0,Er=Vt.length;ar24)throw new Error("maxZoom should be in the 0-24 range");if(_t.promoteId&&_t.generateId)throw new Error("promoteId and generateId cannot be used together.");var ar=Yt(Vt,_t);this.tiles={},this.tileCoords=[],tr&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",_t.indexMaxZoom,_t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),ar=Ce(ar,_t),ar.length&&this.splitTile(ar,0,0,0),tr&&(ar.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Pn.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Pn.prototype.splitTile=function(Vt,_t,tr,ar,Er,Zr,ri){for(var $r=[Vt,_t,tr,ar],zi=this.options,Ji=zi.debug;$r.length;){ar=$r.pop(),tr=$r.pop(),_t=$r.pop(),Vt=$r.pop();var en=1<<_t,cn=wn(_t,tr,ar),yn=this.tiles[cn];if(!yn&&(Ji>1&&console.time("creation"),yn=this.tiles[cn]=oi(Vt,_t,tr,ar,zi),this.tileCoords.push({z:_t,x:tr,y:ar}),Ji)){Ji>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",_t,tr,ar,yn.numFeatures,yn.numPoints,yn.numSimplified),console.timeEnd("creation"));var Mn="z"+_t;this.stats[Mn]=(this.stats[Mn]||0)+1,this.total++}if(yn.source=Vt,Er){if(_t===zi.maxZoom||_t===Er)continue;var Ba=1<1&&console.time("clipping");var la=.5*zi.buffer/zi.extent,ma=.5-la,Wa=.5+la,Fa=1+la,Wo,da,Wn,Ga,vo,jn;Wo=da=Wn=Ga=null,vo=dt(Vt,en,tr-la,tr+Wa,0,yn.minX,yn.maxX,zi),jn=dt(Vt,en,tr+ma,tr+Fa,0,yn.minX,yn.maxX,zi),Vt=null,vo&&(Wo=dt(vo,en,ar-la,ar+Wa,1,yn.minY,yn.maxY,zi),da=dt(vo,en,ar+ma,ar+Fa,1,yn.minY,yn.maxY,zi),vo=null),jn&&(Wn=dt(jn,en,ar-la,ar+Wa,1,yn.minY,yn.maxY,zi),Ga=dt(jn,en,ar+ma,ar+Fa,1,yn.minY,yn.maxY,zi),jn=null),Ji>1&&console.timeEnd("clipping"),$r.push(Wo||[],_t+1,tr*2,ar*2),$r.push(da||[],_t+1,tr*2,ar*2+1),$r.push(Wn||[],_t+1,tr*2+1,ar*2),$r.push(Ga||[],_t+1,tr*2+1,ar*2+1)}}},Pn.prototype.getTile=function(Vt,_t,tr){var ar=this.options,Er=ar.extent,Zr=ar.debug;if(Vt<0||Vt>24)return null;var ri=1<1&&console.log("drilling down to z%d-%d-%d",Vt,_t,tr);for(var zi=Vt,Ji=_t,en=tr,cn;!cn&&zi>0;)zi--,Ji=Math.floor(Ji/2),en=Math.floor(en/2),cn=this.tiles[wn(zi,Ji,en)];return!cn||!cn.source?null:(Zr>1&&console.log("found parent tile z%d-%d-%d",zi,Ji,en),Zr>1&&console.time("drilling down"),this.splitTile(cn.source,zi,Ji,en,Vt,_t,tr),Zr>1&&console.timeEnd("drilling down"),this.tiles[$r]?ir(this.tiles[$r],Er):null)};function wn(Vt,_t,tr){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function _(Y,D,J){var q,K,de,ne=i.browser.devicePixelRatio>1?"@2x":"",we=i.getJSON(D.transformRequest(D.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(Zt,hr){we=null,de||(de=Zt,q=hr,ft())}),Ue=i.getImage(D.transformRequest(D.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(Zt,hr){Ue=null,de||(de=Zt,K=hr,ft())});function ft(){if(de)J(de);else if(q&&K){var Zt=i.browser.getImageData(K),hr={};for(var qt in q){var Ve=q[qt],et=Ve.width,at=Ve.height,kt=Ve.x,Ot=Ve.y,It=Ve.sdf,Bt=Ve.pixelRatio,Rt=Ve.stretchX,mt=Ve.stretchY,Pt=Ve.content,ht=new i.RGBAImage({width:et,height:at});i.RGBAImage.copy(Zt,ht,{x:kt,y:Ot},{x:0,y:0},{width:et,height:at}),hr[qt]={data:ht,pixelRatio:Bt,sdf:It,stretchX:Rt,stretchY:mt,content:Pt}}J(null,hr)}}return{cancel:function(){we&&(we.cancel(),we=null),Ue&&(Ue.cancel(),Ue=null)}}}function b(Y){var D=Y.userImage;if(D&&D.render){var J=D.render();if(J)return Y.data.replace(new Uint8Array(D.data.buffer)),!0}return!1}var p=1,C=function(Y){function D(){Y.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.isLoaded=function(){return this.loaded},D.prototype.setLoaded=function(q){if(this.loaded!==q&&(this.loaded=q,q)){for(var K=0,de=this.requestors;K=0?1.2:1))}k.prototype.draw=function(Y){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(Y,this.buffer,this.middle);for(var D=this.ctx.getImageData(0,0,this.size,this.size),J=new Uint8ClampedArray(this.size*this.size),q=0;q65535){Zt(new Error("glyphs > 65535 not supported"));return}if(Ve.ranges[at]){Zt(null,{stack:hr,id:qt,glyph:et});return}var kt=Ve.requests[at];kt||(kt=Ve.requests[at]=[],P.loadGlyphRange(hr,at,q.url,q.requestManager,function(Ot,It){if(It){for(var Bt in It)q._doesCharSupportLocalGlyph(+Bt)||(Ve.glyphs[+Bt]=It[+Bt]);Ve.ranges[at]=!0}for(var Rt=0,mt=kt;Rt1&&(ft=D[++Ue]);var hr=Math.abs(Zt-ft.left),qt=Math.abs(Zt-ft.right),Ve=Math.min(hr,qt),et=void 0,at=de/q*(K+1);if(ft.isDash){var kt=K-Math.abs(at);et=Math.sqrt(Ve*Ve+kt*kt)}else et=K-Math.sqrt(Ve*Ve+at*at);this.data[we+Zt]=Math.max(0,Math.min(255,et+128))}},G.prototype.addRegularDash=function(D){for(var J=D.length-1;J>=0;--J){var q=D[J],K=D[J+1];q.zeroLength?D.splice(J,1):K&&K.isDash===q.isDash&&(K.left=q.left,D.splice(J,1))}var de=D[0],ne=D[D.length-1];de.isDash===ne.isDash&&(de.left=ne.left-this.width,ne.right=de.right+this.width);for(var we=this.width*this.nextRow,Ue=0,ft=D[Ue],Zt=0;Zt1&&(ft=D[++Ue]);var hr=Math.abs(Zt-ft.left),qt=Math.abs(Zt-ft.right),Ve=Math.min(hr,qt),et=ft.isDash?Ve:-Ve;this.data[we+Zt]=Math.max(0,Math.min(255,et+128))}},G.prototype.addDash=function(D,J){var q=J?7:0,K=2*q+1;if(this.nextRow+K>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var de=0,ne=0;ne=q.minX&&D.x=q.minY&&D.y0&&(Zt[new i.OverscaledTileID(q.overscaledZ,we,K.z,ne,K.y-1).key]={backfilled:!1},Zt[new i.OverscaledTileID(q.overscaledZ,q.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},Zt[new i.OverscaledTileID(q.overscaledZ,ft,K.z,Ue,K.y-1).key]={backfilled:!1}),K.y+10&&(de.resourceTiming=q._resourceTiming,q._resourceTiming=[]),q.fire(new i.Event("data",de))})},D.prototype.onAdd=function(q){this.map=q,this.load()},D.prototype.setData=function(q){var K=this;return this._data=q,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(de){if(de){K.fire(new i.ErrorEvent(de));return}var ne={dataType:"source",sourceDataType:"content"};K._collectResourceTiming&&K._resourceTiming&&K._resourceTiming.length>0&&(ne.resourceTiming=K._resourceTiming,K._resourceTiming=[]),K.fire(new i.Event("data",ne))}),this},D.prototype.getClusterExpansionZoom=function(q,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:q,source:this.id},K),this},D.prototype.getClusterChildren=function(q,K){return this.actor.send("geojson.getClusterChildren",{clusterId:q,source:this.id},K),this},D.prototype.getClusterLeaves=function(q,K,de,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:q,limit:K,offset:de},ne),this},D.prototype._updateWorkerData=function(q){var K=this;this._loaded=!1;var de=i.extend({},this.workerOptions),ne=this._data;typeof ne=="string"?(de.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ne),i.ResourceType.Source),de.request.collectResourceTiming=this._collectResourceTiming):de.data=JSON.stringify(ne),this.actor.send(this.type+".loadData",de,function(we,Ue){K._removed||Ue&&Ue.abandoned||(K._loaded=!0,Ue&&Ue.resourceTiming&&Ue.resourceTiming[K.id]&&(K._resourceTiming=Ue.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:de.source},null),q(we))})},D.prototype.loaded=function(){return this._loaded},D.prototype.loadTile=function(q,K){var de=this,ne=q.actor?"reloadTile":"loadTile";q.actor=this.actor;var we={type:this.type,uid:q.uid,tileID:q.tileID,zoom:q.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};q.request=this.actor.send(ne,we,function(Ue,ft){return delete q.request,q.unloadVectorData(),q.aborted?K(null):Ue?K(Ue):(q.loadVectorData(ft,de.map.painter,ne==="reloadTile"),K(null))})},D.prototype.abortTile=function(q){q.request&&(q.request.cancel(),delete q.request),q.aborted=!0},D.prototype.unloadTile=function(q){q.unloadVectorData(),this.actor.send("removeTile",{uid:q.uid,type:this.type,source:this.id})},D.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},D.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},D.prototype.hasTransition=function(){return!1},D}(i.Evented),Me=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),ke=function(Y){function D(J,q,K,de){Y.call(this),this.id=J,this.dispatcher=K,this.coordinates=q.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(de),this.options=q}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(q,K){var de=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ne,we){de._loaded=!0,ne?de.fire(new i.ErrorEvent(ne)):we&&(de.image=we,q&&(de.coordinates=q),K&&K(),de._finishLoading())})},D.prototype.loaded=function(){return this._loaded},D.prototype.updateImage=function(q){var K=this;return!this.image||!q.url?this:(this.options.url=q.url,this.load(q.coordinates,function(){K.texture=null}),this)},D.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},D.prototype.onAdd=function(q){this.map=q,this.load()},D.prototype.setCoordinates=function(q){var K=this;this.coordinates=q;var de=q.map(i.MercatorCoordinate.fromLngLat);this.tileID=me(de),this.minzoom=this.maxzoom=this.tileID.z;var ne=de.map(function(we){return K.tileID.getTilePoint(we)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(ne[0].x,ne[0].y,0,0),this._boundsArray.emplaceBack(ne[1].x,ne[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(ne[3].x,ne[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(ne[2].x,ne[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var q=this.map.painter.context,K=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Me.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(q,this.image,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var de in this.tiles){var ne=this.tiles[de];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.loadTile=function(q,K){this.tileID&&this.tileID.equals(q.tileID.canonical)?(this.tiles[String(q.tileID.wrap)]=q,q.buckets={},K(null)):(q.state="errored",K(null))},D.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return!1},D}(i.Evented);function me(Y){for(var D=1/0,J=1/0,q=-1/0,K=-1/0,de=0,ne=Y;deK.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+K.start(0)+" and "+K.end(0)+"-second mark."))):this.video.currentTime=q}},D.prototype.getVideo=function(){return this.video},D.prototype.onAdd=function(q){this.map||(this.map=q,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var q=this.map.painter.context,K=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Me.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE),K.texSubImage2D(K.TEXTURE_2D,0,0,0,K.RGBA,K.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(q,this.video,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var de in this.tiles){var ne=this.tiles[de];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this.video&&!this.video.paused},D}(ke),Se=function(Y){function D(J,q,K,de){Y.call(this,J,q,K,de),q.coordinates?(!Array.isArray(q.coordinates)||q.coordinates.length!==4||q.coordinates.some(function(ne){return!Array.isArray(ne)||ne.length!==2||ne.some(function(we){return typeof we!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "coordinates"'))),q.animate&&typeof q.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),q.canvas?typeof q.canvas!="string"&&!(q.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "canvas"'))),this.options=q,this.animate=q.animate!==void 0?q.animate:!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},D.prototype.getCanvas=function(){return this.canvas},D.prototype.onAdd=function(q){this.map=q,this.load(),this.canvas&&this.animate&&this.play()},D.prototype.onRemove=function(){this.pause()},D.prototype.prepare=function(){var q=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,q=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,q=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var K=this.map.painter.context,de=K.gl;this.boundsBuffer||(this.boundsBuffer=K.createVertexBuffer(this._boundsArray,Me.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(q||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(K,this.canvas,de.RGBA,{premultiply:!0});for(var ne in this.tiles){var we=this.tiles[ne];we.state!=="loaded"&&(we.state="loaded",we.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this._playing},D.prototype._hasInvalidDimensions=function(){for(var q=0,K=[this.canvas.width,this.canvas.height];qthis.max){var we=this._getAndRemoveByKey(this.order[0]);we&&this.onRemove(we)}return this},st.prototype.has=function(D){return D.wrapped().key in this.data},st.prototype.getAndRemove=function(D){return this.has(D)?this._getAndRemoveByKey(D.wrapped().key):null},st.prototype._getAndRemoveByKey=function(D){var J=this.data[D].shift();return J.timeout&&clearTimeout(J.timeout),this.data[D].length===0&&delete this.data[D],this.order.splice(this.order.indexOf(D),1),J.value},st.prototype.getByKey=function(D){var J=this.data[D];return J?J[0].value:null},st.prototype.get=function(D){if(!this.has(D))return null;var J=this.data[D.wrapped().key][0];return J.value},st.prototype.remove=function(D,J){if(!this.has(D))return this;var q=D.wrapped().key,K=J===void 0?0:this.data[q].indexOf(J),de=this.data[q][K];return this.data[q].splice(K,1),de.timeout&&clearTimeout(de.timeout),this.data[q].length===0&&delete this.data[q],this.onRemove(de.value),this.order.splice(this.order.indexOf(q),1),this},st.prototype.setMaxSize=function(D){for(this.max=D;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},st.prototype.filter=function(D){var J=[];for(var q in this.data)for(var K=0,de=this.data[q];K1||(Math.abs(hr)>1&&(Math.abs(hr+Ve)===1?hr+=Ve:Math.abs(hr-Ve)===1&&(hr-=Ve)),!(!Zt.dem||!ft.dem)&&(ft.dem.backfillBorder(Zt.dem,hr,qt),ft.neighboringTiles&&ft.neighboringTiles[et]&&(ft.neighboringTiles[et].backfilled=!0)))}},D.prototype.getTile=function(q){return this.getTileByID(q.key)},D.prototype.getTileByID=function(q){return this._tiles[q]},D.prototype._retainLoadedChildren=function(q,K,de,ne){for(var we in this._tiles){var Ue=this._tiles[we];if(!(ne[we]||!Ue.hasData()||Ue.tileID.overscaledZ<=K||Ue.tileID.overscaledZ>de)){for(var ft=Ue.tileID;Ue&&Ue.tileID.overscaledZ>K+1;){var Zt=Ue.tileID.scaledTo(Ue.tileID.overscaledZ-1);Ue=this._tiles[Zt.key],Ue&&Ue.hasData()&&(ft=Zt)}for(var hr=ft;hr.overscaledZ>K;)if(hr=hr.scaledTo(hr.overscaledZ-1),q[hr.key]){ne[ft.key]=ft;break}}}},D.prototype.findLoadedParent=function(q,K){if(q.key in this._loadedParentTiles){var de=this._loadedParentTiles[q.key];return de&&de.tileID.overscaledZ>=K?de:null}for(var ne=q.overscaledZ-1;ne>=K;ne--){var we=q.scaledTo(ne),Ue=this._getLoadedTile(we);if(Ue)return Ue}},D.prototype._getLoadedTile=function(q){var K=this._tiles[q.key];if(K&&K.hasData())return K;var de=this._cache.getByKey(q.wrapped().key);return de},D.prototype.updateCacheSize=function(q){var K=Math.ceil(q.width/this._source.tileSize)+1,de=Math.ceil(q.height/this._source.tileSize)+1,ne=K*de,we=5,Ue=Math.floor(ne*we),ft=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ue):Ue;this._cache.setMaxSize(ft)},D.prototype.handleWrapJump=function(q){var K=this._prevLng===void 0?q:this._prevLng,de=q-K,ne=de/360,we=Math.round(ne);if(this._prevLng=q,we){var Ue={};for(var ft in this._tiles){var Zt=this._tiles[ft];Zt.tileID=Zt.tileID.unwrapTo(Zt.tileID.wrap+we),Ue[Zt.tileID.key]=Zt}this._tiles=Ue;for(var hr in this._timers)clearTimeout(this._timers[hr]),delete this._timers[hr];for(var qt in this._tiles){var Ve=this._tiles[qt];this._setTileReloadTimer(qt,Ve)}}},D.prototype.update=function(q){var K=this;if(this.transform=q,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(q),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var de;this.used?this._source.tileID?de=q.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Nr){return new i.OverscaledTileID(Nr.canonical.z,Nr.wrap,Nr.canonical.z,Nr.canonical.x,Nr.canonical.y)}):(de=q.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(de=de.filter(function(Nr){return K._source.hasTile(Nr)}))):de=[];var ne=q.coveringZoomLevel(this._source),we=Math.max(ne-D.maxOverzooming,this._source.minzoom),Ue=Math.max(ne+D.maxUnderzooming,this._source.minzoom),ft=this._updateRetainedTiles(de,ne);if(zi(this._source.type)){for(var Zt={},hr={},qt=Object.keys(ft),Ve=0,et=qt;Vethis._source.maxzoom){var It=kt.children(this._source.maxzoom)[0],Bt=this.getTile(It);if(Bt&&Bt.hasData()){de[It.key]=It;continue}}else{var Rt=kt.children(this._source.maxzoom);if(de[Rt[0].key]&&de[Rt[1].key]&&de[Rt[2].key]&&de[Rt[3].key])continue}for(var mt=Ot.wasRequested(),Pt=kt.overscaledZ-1;Pt>=we;--Pt){var ht=kt.scaledTo(Pt);if(ne[ht.key]||(ne[ht.key]=!0,Ot=this.getTile(ht),!Ot&&mt&&(Ot=this._addTile(ht)),Ot&&(de[ht.key]=ht,mt=Ot.wasRequested(),Ot.hasData())))break}}}return de},D.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var q in this._tiles){for(var K=[],de=void 0,ne=this._tiles[q].tileID;ne.overscaledZ>0;){if(ne.key in this._loadedParentTiles){de=this._loadedParentTiles[ne.key];break}K.push(ne.key);var we=ne.scaledTo(ne.overscaledZ-1);if(de=this._getLoadedTile(we),de)break;ne=we}for(var Ue=0,ft=K;Ue0)&&(K.hasData()&&K.state!=="reloading"?this._cache.add(K.tileID,K,K.getExpiryTimeout()):(K.aborted=!0,this._abortTile(K),this._unloadTile(K))))},D.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var q in this._tiles)this._removeTile(q);this._cache.reset()},D.prototype.tilesIn=function(q,K,de){var ne=this,we=[],Ue=this.transform;if(!Ue)return we;for(var ft=de?Ue.getCameraQueryGeometry(q):q,Zt=q.map(function(Pt){return Ue.pointCoordinate(Pt)}),hr=ft.map(function(Pt){return Ue.pointCoordinate(Pt)}),qt=this.getIds(),Ve=1/0,et=1/0,at=-1/0,kt=-1/0,Ot=0,It=hr;Ot=0&&Ri[1].y+Nr>=0){var hi=Zt.map(function(gn){return cr.getTilePoint(gn)}),wi=hr.map(function(gn){return cr.getTilePoint(gn)});we.push({tile:ht,tileID:cr,queryGeometry:hi,cameraQueryGeometry:wi,scale:br})}}},mt=0;mt=i.browser.now())return!0}return!1},D.prototype.setFeatureState=function(q,K,de){q=q||"_geojsonTileLayer",this._state.updateState(q,K,de)},D.prototype.removeFeatureState=function(q,K,de){q=q||"_geojsonTileLayer",this._state.removeFeatureState(q,K,de)},D.prototype.getFeatureState=function(q,K){return q=q||"_geojsonTileLayer",this._state.getState(q,K)},D.prototype.setDependencies=function(q,K,de){var ne=this._tiles[q];ne&&ne.setDependencies(K,de)},D.prototype.reloadTilesForDependencies=function(q,K){for(var de in this._tiles){var ne=this._tiles[de];ne.hasDependency(q,K)&&this._reloadTile(de,"reloading")}this._cache.filter(function(we){return!we.hasDependency(q,K)})},D}(i.Evented);ri.maxOverzooming=10,ri.maxUnderzooming=3;function $r(Y,D){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),q=Math.abs(D.wrap*2)-+(D.wrap<0);return Y.overscaledZ-D.overscaledZ||q-J||D.canonical.y-Y.canonical.y||D.canonical.x-Y.canonical.x}function zi(Y){return Y==="raster"||Y==="image"||Y==="video"}function Ji(){return new i.window.Worker(io.workerUrl)}var en="mapboxgl_preloaded_worker_pool",cn=function(){this.active={}};cn.prototype.acquire=function(D){if(!this.workers)for(this.workers=[];this.workers.length0?(K-ne)/we:0;return this.points[de].mult(1-Ue).add(this.points[J].mult(Ue))};var ki=function(D,J,q){var K=this.boxCells=[],de=this.circleCells=[];this.xCellCount=Math.ceil(D/q),this.yCellCount=Math.ceil(J/q);for(var ne=0;nethis.width||K<0||J>this.height)return de?!1:[];var we=[];if(D<=0&&J<=0&&this.width<=q&&this.height<=K){if(de)return!0;for(var Ue=0;Ue0:we}},ki.prototype._queryCircle=function(D,J,q,K,de){var ne=D-q,we=D+q,Ue=J-q,ft=J+q;if(we<0||ne>this.width||ft<0||Ue>this.height)return K?!1:[];var Zt=[],hr={hitTest:K,circle:{x:D,y:J,radius:q},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Ue,we,ft,this._queryCellCircle,Zt,hr,de),K?Zt.length>0:Zt},ki.prototype.query=function(D,J,q,K,de){return this._query(D,J,q,K,!1,de)},ki.prototype.hitTest=function(D,J,q,K,de){return this._query(D,J,q,K,!0,de)},ki.prototype.hitTestCircle=function(D,J,q,K){return this._queryCircle(D,J,q,!0,K)},ki.prototype._queryCell=function(D,J,q,K,de,ne,we,Ue){var ft=we.seenUids,Zt=this.boxCells[de];if(Zt!==null)for(var hr=this.bboxes,qt=0,Ve=Zt;qt=hr[at+0]&&K>=hr[at+1]&&(!Ue||Ue(this.boxKeys[et]))){if(we.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[et],x1:hr[at],y1:hr[at+1],x2:hr[at+2],y2:hr[at+3]})}}}var kt=this.circleCells[de];if(kt!==null)for(var Ot=this.circles,It=0,Bt=kt;Itwe*we+Ue*Ue},ki.prototype._circleAndRectCollide=function(D,J,q,K,de,ne,we){var Ue=(ne-K)/2,ft=Math.abs(D-(K+Ue));if(ft>Ue+q)return!1;var Zt=(we-de)/2,hr=Math.abs(J-(de+Zt));if(hr>Zt+q)return!1;if(ft<=Ue||hr<=Zt)return!0;var qt=ft-Ue,Ve=hr-Zt;return qt*qt+Ve*Ve<=q*q};function _n(Y,D,J,q,K){var de=i.create();return D?(i.scale(de,de,[1/K,1/K,1]),J||i.rotateZ(de,de,q.angle)):i.multiply(de,q.labelPlaneMatrix,Y),de}function ya(Y,D,J,q,K){if(D){var de=i.clone(Y);return i.scale(de,de,[K,K,1]),J||i.rotateZ(de,de,-q.angle),de}else return q.glCoordMatrix}function Jn(Y,D){var J=[Y.x,Y.y,0,1];zl(J,J,D);var q=J[3];return{point:new i.Point(J[0]/q,J[1]/q),signedDistanceFromCamera:q}}function Ma(Y,D){return .5+.5*(Y/D)}function _o(Y,D){var J=Y[0]/Y[3],q=Y[1]/Y[3],K=J>=-D[0]&&J<=D[0]&&q>=-D[1]&&q<=D[1];return K}function No(Y,D,J,q,K,de,ne,we){var Ue=q?Y.textSizeData:Y.iconSizeData,ft=i.evaluateSizeForZoom(Ue,J.transform.zoom),Zt=[256/J.width*2+1,256/J.height*2+1],hr=q?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;hr.clear();for(var qt=Y.lineVertexArray,Ve=q?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,et=J.transform.width/J.transform.height,at=!1,kt=0;ktde)return{useVertical:!0}}return(Y===i.WritingMode.vertical?D.yJ.x)?{needsFlipping:!0}:null}function Co(Y,D,J,q,K,de,ne,we,Ue,ft,Zt,hr,qt,Ve){var et=D/24,at=Y.lineOffsetX*et,kt=Y.lineOffsetY*et,Ot;if(Y.numGlyphs>1){var It=Y.glyphStartIndex+Y.numGlyphs,Bt=Y.lineStartIndex,Rt=Y.lineStartIndex+Y.lineLength,mt=po(et,we,at,kt,J,Zt,hr,Y,Ue,de,qt);if(!mt)return{notEnoughRoom:!0};var Pt=Jn(mt.first.point,ne).point,ht=Jn(mt.last.point,ne).point;if(q&&!J){var cr=Lo(Y.writingMode,Pt,ht,Ve);if(cr)return cr}Ot=[mt.first];for(var br=Y.glyphStartIndex+1;br0?wi.point:Fs(hr,hi,Nr,1,K),tn=Lo(Y.writingMode,Nr,gn,Ve);if(tn)return tn}var Ci=zs(et*we.getoffsetX(Y.glyphStartIndex),at,kt,J,Zt,hr,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Ue,de,qt);if(!Ci)return{notEnoughRoom:!0};Ot=[Ci]}for(var qi=0,Vi=Ot;qi0?1:-1,et=0;q&&(Ve*=-1,et=Math.PI),Ve<0&&(et+=Math.PI);for(var at=Ve>0?we+ne:we+ne+1,kt=K,Ot=K,It=0,Bt=0,Rt=Math.abs(qt),mt=[];It+Bt<=Rt;){if(at+=Ve,at=Ue)return null;if(Ot=kt,mt.push(kt),kt=hr[at],kt===void 0){var Pt=new i.Point(ft.getx(at),ft.gety(at)),ht=Jn(Pt,Zt);if(ht.signedDistanceFromCamera>0)kt=hr[at]=ht.point;else{var cr=at-Ve,br=It===0?de:new i.Point(ft.getx(cr),ft.gety(cr));kt=Fs(br,Pt,Ot,Rt-It+1,Zt)}}It+=Bt,Bt=Ot.dist(kt)}var Nr=(Rt-It)/Bt,Ri=kt.sub(Ot),hi=Ri.mult(Nr)._add(Ot);hi._add(Ri._unit()._perp()._mult(J*Ve));var wi=et+Math.atan2(kt.y-Ot.y,kt.x-Ot.x);return mt.push(hi),{point:hi,angle:wi,path:mt}}var ul=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function cl(Y,D){for(var J=0;J=1;on--)Vi.push(Ci.path[on]);for(var On=1;On0){for(var so=Vi[0].clone(),Zo=Vi[0].clone(),ys=1;ys=wi.x&&Zo.x<=gn.x&&so.y>=wi.y&&Zo.y<=gn.y?rs=[Vi]:Zo.xgn.x||Zo.ygn.y?rs=[]:rs=i.clipLine([Vi],wi.x,wi.y,gn.x,gn.y)}for(var ou=0,Cv=rs;ou=this.screenRightBoundary||Kthis.screenBottomBoundary},nl.prototype.isInsideGrid=function(D,J,q,K){return q>=0&&D=0&&J0){var Rt;return this.prevPlacement&&this.prevPlacement.variableOffsets[qt.crossTileID]&&this.prevPlacement.placements[qt.crossTileID]&&this.prevPlacement.placements[qt.crossTileID].text&&(Rt=this.prevPlacement.variableOffsets[qt.crossTileID].anchor),this.variableOffsets[qt.crossTileID]={textOffset:kt,width:q,height:K,anchor:D,textBoxScale:de,prevAnchor:Rt},this.markUsedJustification(Ve,D,qt,et),Ve.allowVerticalPlacement&&(this.markUsedOrientation(Ve,et,qt),this.placedOrientations[qt.crossTileID]=et),{shift:Ot,placedGlyphBoxes:It}}},ws.prototype.placeLayerBucketPart=function(D,J,q){var K=this,de=D.parameters,ne=de.bucket,we=de.layout,Ue=de.posMatrix,ft=de.textLabelPlaneMatrix,Zt=de.labelToScreenMatrix,hr=de.textPixelRatio,qt=de.holdingForFade,Ve=de.collisionBoxArray,et=de.partiallyEvaluatedTextSize,at=de.collisionGroup,kt=we.get("text-optional"),Ot=we.get("icon-optional"),It=we.get("text-allow-overlap"),Bt=we.get("icon-allow-overlap"),Rt=we.get("text-rotation-alignment")==="map",mt=we.get("text-pitch-alignment")==="map",Pt=we.get("icon-text-fit")!=="none",ht=we.get("symbol-z-order")==="viewport-y",cr=It&&(Bt||!ne.hasIconData()||Ot),br=Bt&&(It||!ne.hasTextData()||kt);!ne.collisionArrays&&Ve&&ne.deserializeCollisionBoxes(Ve);var Nr=function(Ci,qi){if(!J[Ci.crossTileID]){if(qt){K.placements[Ci.crossTileID]=new Os(!1,!1,!1);return}var Vi=!1,on=!1,On=!0,Ja=null,co={box:null,offscreen:null},rs={box:null,offscreen:null},so=null,Zo=null,ys=null,ou=0,Cv=0,kv=0;qi.textFeatureIndex?ou=qi.textFeatureIndex:Ci.useRuntimeCollisionCircles&&(ou=Ci.featureIndex),qi.verticalTextFeatureIndex&&(Cv=qi.verticalTextFeatureIndex);var wd=qi.textBox;if(wd){var Kv=function(vc){var eu=i.WritingMode.horizontal;if(ne.allowVerticalPlacement&&!vc&&K.prevPlacement){var Sd=K.prevPlacement.placedOrientations[Ci.crossTileID];Sd&&(K.placedOrientations[Ci.crossTileID]=Sd,eu=Sd,K.markUsedOrientation(ne,eu,Ci))}return eu},fg=function(vc,eu){if(ne.allowVerticalPlacement&&Ci.numVerticalGlyphVertices>0&&qi.verticalTextBox)for(var Sd=0,sy=ne.writingModes;Sd0&&(Vd=Vd.filter(function(vc){return vc!==Ad.anchor}),Vd.unshift(Ad.anchor))}var Lv=function(vc,eu,Sd){for(var sy=vc.x2-vc.x1,A1=vc.y2-vc.y1,wu=Ci.textBoxScale,Bx=Pt&&!Bt?eu:null,am={box:[],offscreen:!1},Mw=It?Vd.length*2:Vd.length,Iv=0;Iv=Vd.length,Nx=K.attemptAnchorPlacement(om,vc,sy,A1,wu,Rt,mt,hr,Ue,at,Ew,Ci,ne,Sd,Bx);if(Nx&&(am=Nx.placedGlyphBoxes,am&&am.box&&am.box.length)){Vi=!0,Ja=Nx.shift;break}}return am},Jv=function(){return Lv(wd,qi.iconBox,i.WritingMode.horizontal)},Pv=function(){var vc=qi.verticalTextBox,eu=co&&co.box&&co.box.length;return ne.allowVerticalPlacement&&!eu&&Ci.numVerticalGlyphVertices>0&&vc?Lv(vc,qi.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};fg(Jv,Pv),co&&(Vi=co.box,On=co.offscreen);var ny=Kv(co&&co.box);if(!Vi&&K.prevPlacement){var hg=K.prevPlacement.variableOffsets[Ci.crossTileID];hg&&(K.variableOffsets[Ci.crossTileID]=hg,K.markUsedJustification(ne,hg.anchor,Ci,ny))}}else{var vp=function(vc,eu){var Sd=K.collisionIndex.placeCollisionBox(vc,It,hr,Ue,at.predicate);return Sd&&Sd.box&&Sd.box.length&&(K.markUsedOrientation(ne,eu,Ci),K.placedOrientations[Ci.crossTileID]=eu),Sd},Td=function(){return vp(wd,i.WritingMode.horizontal)},pp=function(){var vc=qi.verticalTextBox;return ne.allowVerticalPlacement&&Ci.numVerticalGlyphVertices>0&&vc?vp(vc,i.WritingMode.vertical):{box:null,offscreen:null}};fg(Td,pp),Kv(co&&co.box&&co.box.length)}}if(so=co,Vi=so&&so.box&&so.box.length>0,On=so&&so.offscreen,Ci.useRuntimeCollisionCircles){var oh=ne.text.placedSymbolArray.get(Ci.centerJustifiedTextSymbolIndex),dg=i.evaluateSizeForFeature(ne.textSizeData,et,oh),ay=we.get("text-padding"),Gh=Ci.collisionCircleDiameter;Zo=K.collisionIndex.placeCollisionCircles(It,oh,ne.lineVertexArray,ne.glyphOffsetArray,dg,Ue,ft,Zt,q,mt,at.predicate,Gh,ay),Vi=It||Zo.circles.length>0&&!Zo.collisionDetected,On=On&&Zo.offscreen}if(qi.iconFeatureIndex&&(kv=qi.iconFeatureIndex),qi.iconBox){var rm=function(vc){var eu=Pt&&Ja?nc(vc,Ja.x,Ja.y,Rt,mt,K.transform.angle):vc;return K.collisionIndex.placeCollisionBox(eu,Bt,hr,Ue,at.predicate)};rs&&rs.box&&rs.box.length&&qi.verticalIconBox?(ys=rm(qi.verticalIconBox),on=ys.box.length>0):(ys=rm(qi.iconBox),on=ys.box.length>0),On=On&&ys.offscreen}var w1=kt||Ci.numHorizontalGlyphVertices===0&&Ci.numVerticalGlyphVertices===0,T1=Ot||Ci.numIconVertices===0;if(!w1&&!T1?on=Vi=on&&Vi:T1?w1||(on=on&&Vi):Vi=on&&Vi,Vi&&so&&so.box&&(rs&&rs.box&&Cv?K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,Cv,at.ID):K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,ou,at.ID)),on&&ys&&K.collisionIndex.insertCollisionBox(ys.box,we.get("icon-ignore-placement"),ne.bucketInstanceId,kv,at.ID),Zo&&(Vi&&K.collisionIndex.insertCollisionCircles(Zo.circles,we.get("text-ignore-placement"),ne.bucketInstanceId,ou,at.ID),q)){var oy=ne.bucketInstanceId,im=K.collisionCircleArrays[oy];im===void 0&&(im=K.collisionCircleArrays[oy]=new Io);for(var nm=0;nm=0;--hi){var wi=Ri[hi];Nr(ne.symbolInstances.get(wi),ne.collisionArrays[wi])}else for(var gn=D.symbolInstanceStart;gn=0&&(ne>=0&&Zt!==ne?D.text.placedSymbolArray.get(Zt).crossTileID=0:D.text.placedSymbolArray.get(Zt).crossTileID=q.crossTileID)}},ws.prototype.markUsedOrientation=function(D,J,q){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,de=J===i.WritingMode.vertical?J:0,ne=[q.leftJustifiedTextSymbolIndex,q.centerJustifiedTextSymbolIndex,q.rightJustifiedTextSymbolIndex],we=0,Ue=ne;we0||mt>0,Nr=Bt.numIconVertices>0,Ri=K.placedOrientations[Bt.crossTileID],hi=Ri===i.WritingMode.vertical,wi=Ri===i.WritingMode.horizontal||Ri===i.WritingMode.horizontalOnly;if(br){var gn=ac(cr.text),tn=hi?aa:gn;et(D.text,Rt,tn);var Ci=wi?aa:gn;et(D.text,mt,Ci);var qi=cr.text.isHidden();[Bt.rightJustifiedTextSymbolIndex,Bt.centerJustifiedTextSymbolIndex,Bt.leftJustifiedTextSymbolIndex].forEach(function(kv){kv>=0&&(D.text.placedSymbolArray.get(kv).hidden=qi||hi?1:0)}),Bt.verticalPlacedTextSymbolIndex>=0&&(D.text.placedSymbolArray.get(Bt.verticalPlacedTextSymbolIndex).hidden=qi||wi?1:0);var Vi=K.variableOffsets[Bt.crossTileID];Vi&&K.markUsedJustification(D,Vi.anchor,Bt,Ri);var on=K.placedOrientations[Bt.crossTileID];on&&(K.markUsedJustification(D,"left",Bt,on),K.markUsedOrientation(D,on,Bt))}if(Nr){var On=ac(cr.icon),Ja=!(qt&&Bt.verticalPlacedIconSymbolIndex&&hi);if(Bt.placedIconSymbolIndex>=0){var co=Ja?On:aa;et(D.icon,Bt.numIconVertices,co),D.icon.placedSymbolArray.get(Bt.placedIconSymbolIndex).hidden=cr.icon.isHidden()}if(Bt.verticalPlacedIconSymbolIndex>=0){var rs=Ja?aa:On;et(D.icon,Bt.numVerticalIconVertices,rs),D.icon.placedSymbolArray.get(Bt.verticalPlacedIconSymbolIndex).hidden=cr.icon.isHidden()}}if(D.hasIconCollisionBoxData()||D.hasTextCollisionBoxData()){var so=D.collisionArrays[It];if(so){var Zo=new i.Point(0,0);if(so.textBox||so.verticalTextBox){var ys=!0;if(ft){var ou=K.variableOffsets[Pt];ou?(Zo=Su(ou.anchor,ou.width,ou.height,ou.textOffset,ou.textBoxScale),Zt&&Zo._rotate(hr?K.transform.angle:-K.transform.angle)):ys=!1}so.textBox&&Fn(D.textCollisionBox.collisionVertexArray,cr.text.placed,!ys||hi,Zo.x,Zo.y),so.verticalTextBox&&Fn(D.textCollisionBox.collisionVertexArray,cr.text.placed,!ys||wi,Zo.x,Zo.y)}var Cv=!!(!wi&&so.verticalIconBox);so.iconBox&&Fn(D.iconCollisionBox.collisionVertexArray,cr.icon.placed,Cv,qt?Zo.x:0,qt?Zo.y:0),so.verticalIconBox&&Fn(D.iconCollisionBox.collisionVertexArray,cr.icon.placed,!Cv,qt?Zo.x:0,qt?Zo.y:0)}}},kt=0;ktD},ws.prototype.setStale=function(){this.stale=!0};function Fn(Y,D,J,q,K){Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0)}var _a=Math.pow(2,25),Vu=Math.pow(2,24),Ol=Math.pow(2,17),xo=Math.pow(2,16),Yl=Math.pow(2,9),Us=Math.pow(2,8),Hl=Math.pow(2,1);function ac(Y){if(Y.opacity===0&&!Y.placed)return 0;if(Y.opacity===1&&Y.placed)return 4294967295;var D=Y.placed?1:0,J=Math.floor(Y.opacity*127);return J*_a+D*Vu+J*Ol+D*xo+J*Yl+D*Us+J*Hl+D}var aa=0,Oo=function(D){this._sortAcrossTiles=D.layout.get("symbol-z-order")!=="viewport-y"&&D.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Oo.prototype.continuePlacement=function(D,J,q,K,de){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var we=D[this._currentPlacementIndex],Ue=J[we],ft=this.placement.collisionIndex.transform.zoom;if(Ue.type==="symbol"&&(!Ue.minzoom||Ue.minzoom<=ft)&&(!Ue.maxzoom||Ue.maxzoom>ft)){this._inProgressLayer||(this._inProgressLayer=new Oo(Ue));var Zt=this._inProgressLayer.continuePlacement(q[Ue.source],this.placement,this._showCollisionBoxes,Ue,ne);if(Zt)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},qo.prototype.commit=function(D){return this.placement.commit(D),this.placement};var ql=512/i.EXTENT/2,Pc=function(D,J,q){this.tileID=D,this.indexedSymbolInstances={},this.bucketInstanceId=q;for(var K=0;KD.overscaledZ)for(var ft in Ue){var Zt=Ue[ft];Zt.tileID.isChildOf(D)&&Zt.findMatches(J.symbolInstances,D,ne)}else{var hr=D.scaledTo(Number(we)),qt=Ue[hr.key];qt&&qt.findMatches(J.symbolInstances,D,ne)}}for(var Ve=0;Ve0)throw new Error("Unimplemented: "+ne.map(function(we){return we.command}).join(", ")+".");return de.forEach(function(we){we.command!=="setTransition"&&K[we.command].apply(K,we.args)}),this.stylesheet=q,!0},D.prototype.addImage=function(q,K){if(this.getImage(q))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(q,K),this._afterImageUpdated(q)},D.prototype.updateImage=function(q,K){this.imageManager.updateImage(q,K)},D.prototype.getImage=function(q){return this.imageManager.getImage(q)},D.prototype.removeImage=function(q){if(!this.getImage(q))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(q),this._afterImageUpdated(q)},D.prototype._afterImageUpdated=function(q){this._availableImages=this.imageManager.listImages(),this._changedImages[q]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},D.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},D.prototype.addSource=function(q,K,de){var ne=this;if(de===void 0&&(de={}),this._checkLoaded(),this.sourceCaches[q]!==void 0)throw new Error("There is already a source with this ID");if(!K.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(K).join(", ")+".");var we=["vector","raster","geojson","video","image"],Ue=we.indexOf(K.type)>=0;if(!(Ue&&this._validate(i.validateStyle.source,"sources."+q,K,null,de))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var ft=this.sourceCaches[q]=new ri(q,K,this.dispatcher);ft.style=this,ft.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:ft.serialize(),sourceId:q}}),ft.onAdd(this.map),this._changed=!0}},D.prototype.removeSource=function(q){if(this._checkLoaded(),this.sourceCaches[q]===void 0)throw new Error("There is no source with this ID");for(var K in this._layers)if(this._layers[K].source===q)return this.fire(new i.ErrorEvent(new Error('Source "'+q+'" cannot be removed while layer "'+K+'" is using it.')));var de=this.sourceCaches[q];delete this.sourceCaches[q],delete this._updatedSources[q],de.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:q})),de.setEventedParent(null),de.clearTiles(),de.onRemove&&de.onRemove(this.map),this._changed=!0},D.prototype.setGeoJSONSourceData=function(q,K){this._checkLoaded();var de=this.sourceCaches[q].getSource();de.setData(K),this._changed=!0},D.prototype.getSource=function(q){return this.sourceCaches[q]&&this.sourceCaches[q].getSource()},D.prototype.addLayer=function(q,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=q.id;if(this.getLayer(ne)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ne+'" already exists on this map')));return}var we;if(q.type==="custom"){if(ml(this,i.validateCustomStyleLayer(q)))return;we=i.createStyleLayer(q)}else{if(typeof q.source=="object"&&(this.addSource(ne,q.source),q=i.clone$1(q),q=i.extend(q,{source:ne})),this._validate(i.validateStyle.layer,"layers."+ne,q,{arrayIndex:-1},de))return;we=i.createStyleLayer(q),this._validateLayer(we),we.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[we.id]=we.serialize()}var Ue=K?this._order.indexOf(K):this._order.length;if(K&&Ue===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Ue,0,ne),this._layerOrderChanged=!0,this._layers[ne]=we,this._removedLayers[ne]&&we.source&&we.type!=="custom"){var ft=this._removedLayers[ne];delete this._removedLayers[ne],ft.type!==we.type?this._updatedSources[we.source]="clear":(this._updatedSources[we.source]="reload",this.sourceCaches[we.source].pause())}this._updateLayer(we),we.onAdd&&we.onAdd(this.map)},D.prototype.moveLayer=function(q,K){this._checkLoaded(),this._changed=!0;var de=this._layers[q];if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be moved.")));return}if(q!==K){var ne=this._order.indexOf(q);this._order.splice(ne,1);var we=K?this._order.indexOf(K):this._order.length;if(K&&we===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}this._order.splice(we,0,q),this._layerOrderChanged=!0}},D.prototype.removeLayer=function(q){this._checkLoaded();var K=this._layers[q];if(!K){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be removed.")));return}K.setEventedParent(null);var de=this._order.indexOf(q);this._order.splice(de,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[q]=K,delete this._layers[q],delete this._serializedLayers[q],delete this._updatedLayers[q],delete this._updatedPaintProps[q],K.onRemove&&K.onRemove(this.map)},D.prototype.getLayer=function(q){return this._layers[q]},D.prototype.hasLayer=function(q){return q in this._layers},D.prototype.setLayerZoomRange=function(q,K,de){this._checkLoaded();var ne=this.getLayer(q);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot have zoom extent.")));return}ne.minzoom===K&&ne.maxzoom===de||(K!=null&&(ne.minzoom=K),de!=null&&(ne.maxzoom=de),this._updateLayer(ne))},D.prototype.setFilter=function(q,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=this.getLayer(q);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(ne.filter,K)){if(K==null){ne.filter=void 0,this._updateLayer(ne);return}this._validate(i.validateStyle.filter,"layers."+ne.id+".filter",K,null,de)||(ne.filter=i.clone$1(K),this._updateLayer(ne))}},D.prototype.getFilter=function(q){return i.clone$1(this.getLayer(q).filter)},D.prototype.setLayoutProperty=function(q,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(q);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(we.getLayoutProperty(K),de)||(we.setLayoutProperty(K,de,ne),this._updateLayer(we))},D.prototype.getLayoutProperty=function(q,K){var de=this.getLayer(q);if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style.")));return}return de.getLayoutProperty(K)},D.prototype.setPaintProperty=function(q,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(q);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(we.getPaintProperty(K),de)){var Ue=we.setPaintProperty(K,de,ne);Ue&&this._updateLayer(we),this._changed=!0,this._updatedPaintProps[q]=!0}},D.prototype.getPaintProperty=function(q,K){return this.getLayer(q).getPaintProperty(K)},D.prototype.setFeatureState=function(q,K){this._checkLoaded();var de=q.source,ne=q.sourceLayer,we=this.sourceCaches[de];if(we===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+de+"' does not exist in the map's style.")));return}var Ue=we.getSource().type;if(Ue==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ue==="vector"&&!ne){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}q.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),we.setFeatureState(ne,q.id,K)},D.prototype.removeFeatureState=function(q,K){this._checkLoaded();var de=q.source,ne=this.sourceCaches[de];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+de+"' does not exist in the map's style.")));return}var we=ne.getSource().type,Ue=we==="vector"?q.sourceLayer:void 0;if(we==="vector"&&!Ue){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(K&&typeof q.id!="string"&&typeof q.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ne.removeFeatureState(Ue,q.id,K)},D.prototype.getFeatureState=function(q){this._checkLoaded();var K=q.source,de=q.sourceLayer,ne=this.sourceCaches[K];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+K+"' does not exist in the map's style.")));return}var we=ne.getSource().type;if(we==="vector"&&!de){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return q.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ne.getFeatureState(de,q.id)},D.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},D.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(q){return q.serialize()}),layers:this._serializeLayers(this._order)},function(q){return q!==void 0})},D.prototype._updateLayer=function(q){this._updatedLayers[q.id]=!0,q.source&&!this._updatedSources[q.source]&&this.sourceCaches[q.source].getSource().type!=="raster"&&(this._updatedSources[q.source]="reload",this.sourceCaches[q.source].pause()),this._changed=!0},D.prototype._flattenAndSortRenderedFeatures=function(q){for(var K=this,de=function(wi){return K._layers[wi].type==="fill-extrusion"},ne={},we=[],Ue=this._order.length-1;Ue>=0;Ue--){var ft=this._order[Ue];if(de(ft)){ne[ft]=Ue;for(var Zt=0,hr=q;Zt=0;It--){var Bt=this._order[It];if(de(Bt))for(var Rt=we.length-1;Rt>=0;Rt--){var mt=we[Rt].feature;if(ne[mt.layer.id] 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Ws=Vs(Cf,sc),Eu=Vs(Nh,kf),Dc=Vs(fs,nf),ks=Vs(Vf,Jl),bc=Vs(hl,lc),hu=Vs(Fu,Cs),_u=Vs(js,Go),al=Vs(gs,uc),nh=Vs(bl,Gu),bh=Vs(Bs,ad),zu=Vs(Po,od),Fc=Vs(Yo,Pa),wc=Vs(af,Hu),bd=Vs(wl,Gf),_f=Vs(Ic,mf),Lf=Vs(Bl,_h),Ou=Vs(Qf,yf),xf=Vs(Yc,eh),jl=Vs(th,ju),lf=Vs(Hf,cc),Vh=Vs(of,Nl),Pf=Vs(Kc,Rc),Ls=Vs(ms,jf),du=Vs(Uh,rh),Cu=Vs(sf,xh),Wf=Vs(Mu,ih);function Vs(Y,D){var J=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,q=D.match(/attribute ([\w]+) ([\w]+)/g),K=Y.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),de=D.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ne=de?de.concat(K):K,we={};return Y=Y.replace(J,function(Ue,ft,Zt,hr,qt){return we[qt]=!0,ft==="define"?` +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Ws=Vs(Cf,sc),Eu=Vs(Nh,kf),Dc=Vs(fs,nf),ks=Vs(Vf,Jl),bc=Vs(hl,lc),hu=Vs(Fu,Cs),_u=Vs(js,Go),al=Vs(gs,uc),nh=Vs(bl,Gu),wh=Vs(Bs,ad),zu=Vs(Po,od),Fc=Vs(Yo,Pa),wc=Vs(af,Hu),bd=Vs(wl,Gf),_f=Vs(Ic,mf),Lf=Vs(Bl,xh),Ou=Vs(Qf,yf),xf=Vs(Yc,eh),jl=Vs(th,ju),lf=Vs(Hf,cc),Vh=Vs(of,Nl),Pf=Vs(Kc,Rc),Ls=Vs(ms,jf),du=Vs(Uh,rh),Cu=Vs(sf,bh),Wf=Vs(Mu,ih);function Vs(Y,D){var J=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,q=D.match(/attribute ([\w]+) ([\w]+)/g),K=Y.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),de=D.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ne=de?de.concat(K):K,we={};return Y=Y.replace(J,function(Ue,ft,Zt,hr,qt){return we[qt]=!0,ft==="define"?` #ifndef HAS_UNIFORM_u_`+qt+` varying `+Zt+" "+hr+" "+qt+`; #else @@ -3209,9 +3209,9 @@ uniform `+Zt+" "+hr+" u_"+qt+`; #else `+Zt+" "+hr+" "+qt+" = u_"+qt+`; #endif -`}),{fragmentSource:Y,vertexSource:D,staticAttributes:q,staticUniforms:ne}}var bf=Object.freeze({__proto__:null,prelude:Ws,background:Eu,backgroundPattern:Dc,circle:ks,clippingMask:bc,heatmap:hu,heatmapTexture:_u,collisionBox:al,collisionCircle:nh,debug:bh,fill:zu,fillOutline:Fc,fillOutlinePattern:wc,fillPattern:bd,fillExtrusion:_f,fillExtrusionPattern:Lf,hillshadePrepare:Ou,hillshade:xf,line:jl,lineGradient:lf,linePattern:Vh,lineSDF:Pf,raster:Ls,symbolIcon:du,symbolSDF:Cu,symbolTextAndIcon:Wf}),zc=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};zc.prototype.bind=function(D,J,q,K,de,ne,we,Ue){this.context=D;for(var ft=this.boundPaintVertexBuffers.length!==K.length,Zt=0;!ft&&Zt>16,we>>16],u_pixel_coord_lower:[ne&65535,we&65535]}}function uf(Y,D,J,q){var K=J.imageManager.getPattern(Y.from.toString()),de=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),we=ne.width,Ue=ne.height,ft=Math.pow(2,q.tileID.overscaledZ),Zt=q.tileSize*Math.pow(2,J.transform.tileZoom)/ft,hr=Zt*(q.tileID.canonical.x+q.tileID.wrap*ft),qt=Zt*q.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:K.tl,u_pattern_br_a:K.br,u_pattern_tl_b:de.tl,u_pattern_br_b:de.br,u_texsize:[we,Ue],u_mix:D.t,u_pattern_size_a:K.displaySize,u_pattern_size_b:de.displaySize,u_scale_a:D.fromScale,u_scale_b:D.toScale,u_tile_units_to_pixels:1/Ss(q,1,J.transform.tileZoom),u_pixel_coord_upper:[hr>>16,qt>>16],u_pixel_coord_lower:[hr&65535,qt&65535]}}var Xf=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},Wl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_height_factor:new i.Uniform1f(Y,D.u_height_factor),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},ah=function(Y,D,J,q){var K=D.style.light,de=K.properties.get("position"),ne=[de.x,de.y,de.z],we=i.create$1();K.properties.get("anchor")==="viewport"&&i.fromRotation(we,-D.transform.angle),i.transformMat3(ne,ne,we);var Ue=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Ue.r,Ue.g,Ue.b],u_vertical_gradient:+J,u_opacity:q}},Zu=function(Y,D,J,q,K,de,ne){return i.extend(ah(Y,D,J,q),Xu(de,D,ne),{u_height_factor:-Math.pow(2,K.overscaledZ)/ne.tileSize/8})},Oc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Tc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},Tl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world)}},vu=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},qc=function(Y){return{u_matrix:Y}},cf=function(Y,D,J,q){return i.extend(qc(Y),Xu(J,D,q))},fc=function(Y,D){return{u_matrix:Y,u_world:D}},Bc=function(Y,D,J,q,K){return i.extend(cf(Y,D,J,q),{u_world:K})},At=function(Y,D){return{u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(Y,D.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Xt=function(Y,D,J,q){var K=Y.transform,de,ne;if(q.paint.get("circle-pitch-alignment")==="map"){var we=Ss(J,1,K.zoom);de=!0,ne=[we,we]}else de=!1,ne=K.pixelsToGLUnits;return{u_camera_to_center_distance:K.cameraToCenterDistance,u_scale_with_map:+(q.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(D.posMatrix,J,q.paint.get("circle-translate"),q.paint.get("circle-translate-anchor")),u_pitch_with_map:+de,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},kr=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(Y,D.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_overscale_factor:new i.Uniform1f(Y,D.u_overscale_factor)}},Ar=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_inv_matrix:new i.UniformMatrix4f(Y,D.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(Y,D.u_viewport_size)}},Kr=function(Y,D,J){var q=Ss(J,1,D.zoom),K=Math.pow(2,D.zoom-J.tileID.overscaledZ),de=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:D.cameraToCenterDistance,u_pixels_to_tile_units:q,u_extrude_scale:[D.pixelsToGLUnits[0]/(q*K),D.pixelsToGLUnits[1]/(q*K)],u_overscale_factor:de}},Ei=function(Y,D,J){return{u_matrix:Y,u_inv_matrix:D,u_camera_to_center_distance:J.cameraToCenterDistance,u_viewport_size:[J.width,J.height]}},Wi=function(Y,D){return{u_color:new i.UniformColor(Y,D.u_color),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_overlay:new i.Uniform1i(Y,D.u_overlay),u_overlay_scale:new i.Uniform1f(Y,D.u_overlay_scale)}},hn=function(Y,D,J){return J===void 0&&(J=1),{u_matrix:Y,u_color:D,u_overlay:0,u_overlay_scale:J}},Tn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Bn=function(Y){return{u_matrix:Y}},Zi=function(Y,D){return{u_extrude_scale:new i.Uniform1f(Y,D.u_extrude_scale),u_intensity:new i.Uniform1f(Y,D.u_intensity),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},$i=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_color_ramp:new i.Uniform1i(Y,D.u_color_ramp),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},an=function(Y,D,J,q){return{u_matrix:Y,u_extrude_scale:Ss(D,1,J),u_intensity:q}},Di=function(Y,D,J,q){var K=i.create();i.ortho(K,0,Y.width,Y.height,0,0,1);var de=Y.context.gl;return{u_matrix:K,u_world:[de.drawingBufferWidth,de.drawingBufferHeight],u_image:J,u_color_ramp:q,u_opacity:D.paint.get("heatmap-opacity")}},$n=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_latrange:new i.Uniform2f(Y,D.u_latrange),u_light:new i.Uniform2f(Y,D.u_light),u_shadow:new i.UniformColor(Y,D.u_shadow),u_highlight:new i.UniformColor(Y,D.u_highlight),u_accent:new i.UniformColor(Y,D.u_accent)}},ka=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_dimension:new i.Uniform2f(Y,D.u_dimension),u_zoom:new i.Uniform1f(Y,D.u_zoom),u_unpack:new i.Uniform4f(Y,D.u_unpack)}},Ra=function(Y,D,J){var q=J.paint.get("hillshade-shadow-color"),K=J.paint.get("hillshade-highlight-color"),de=J.paint.get("hillshade-accent-color"),ne=J.paint.get("hillshade-illumination-direction")*(Math.PI/180);J.paint.get("hillshade-illumination-anchor")==="viewport"&&(ne-=Y.transform.angle);var we=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(D.tileID.toUnwrapped(),we),u_image:0,u_latrange:Na(Y,D.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:q,u_highlight:K,u_accent:de}},La=function(Y,D){var J=D.stride,q=i.create();return i.ortho(q,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(q,q,[0,-i.EXTENT,0]),{u_matrix:q,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:D.getUnpackVector()}};function Na(Y,D){var J=Math.pow(2,D.canonical.z),q=D.canonical.y;return[new i.MercatorCoordinate(0,q/J).toLngLat().lat,new i.MercatorCoordinate(0,(q+1)/J).toLngLat().lat]}var Yn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels)}},zn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_image:new i.Uniform1i(Y,D.u_image),u_image_height:new i.Uniform1f(Y,D.u_image_height)}},Ka=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_image:new i.Uniform1i(Y,D.u_image),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},bo=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(Y,D.u_patternscale_a),u_patternscale_b:new i.Uniform2f(Y,D.u_patternscale_b),u_sdfgamma:new i.Uniform1f(Y,D.u_sdfgamma),u_image:new i.Uniform1i(Y,D.u_image),u_tex_y_a:new i.Uniform1f(Y,D.u_tex_y_a),u_tex_y_b:new i.Uniform1f(Y,D.u_tex_y_b),u_mix:new i.Uniform1f(Y,D.u_mix)}},Xo=function(Y,D,J){var q=Y.transform;return{u_matrix:yl(Y,D,J),u_ratio:1/Ss(D,1,q.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/q.pixelsToGLUnits[0],1/q.pixelsToGLUnits[1]]}},Ms=function(Y,D,J,q){return i.extend(Xo(Y,D,J),{u_image:0,u_image_height:q})},os=function(Y,D,J,q){var K=Y.transform,de=Ho(D,K);return{u_matrix:yl(Y,D,J),u_texsize:D.imageAtlasTexture.size,u_ratio:1/Ss(D,1,K.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[de,q.fromScale,q.toScale],u_fade:q.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},Ts=function(Y,D,J,q,K){var de=Y.transform,ne=Y.lineAtlas,we=Ho(D,de),Ue=J.layout.get("line-cap")==="round",ft=ne.getDash(q.from,Ue),Zt=ne.getDash(q.to,Ue),hr=ft.width*K.fromScale,qt=Zt.width*K.toScale;return i.extend(Xo(Y,D,J),{u_patternscale_a:[we/hr,-ft.height/2],u_patternscale_b:[we/qt,-Zt.height/2],u_sdfgamma:ne.width/(Math.min(hr,qt)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:ft.y,u_tex_y_b:Zt.y,u_mix:K.t})};function Ho(Y,D){return 1/Ss(Y,1,D.tileZoom)}function yl(Y,D,J){return Y.translatePosMatrix(D.tileID.posMatrix,D,J.paint.get("line-translate"),J.paint.get("line-translate-anchor"))}var Xs=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_tl_parent:new i.Uniform2f(Y,D.u_tl_parent),u_scale_parent:new i.Uniform1f(Y,D.u_scale_parent),u_buffer_scale:new i.Uniform1f(Y,D.u_buffer_scale),u_fade_t:new i.Uniform1f(Y,D.u_fade_t),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image0:new i.Uniform1i(Y,D.u_image0),u_image1:new i.Uniform1i(Y,D.u_image1),u_brightness_low:new i.Uniform1f(Y,D.u_brightness_low),u_brightness_high:new i.Uniform1f(Y,D.u_brightness_high),u_saturation_factor:new i.Uniform1f(Y,D.u_saturation_factor),u_contrast_factor:new i.Uniform1f(Y,D.u_contrast_factor),u_spin_weights:new i.Uniform3f(Y,D.u_spin_weights)}},Ps=function(Y,D,J,q,K){return{u_matrix:Y,u_tl_parent:D,u_scale_parent:J,u_buffer_scale:1,u_fade_t:q.mix,u_opacity:q.opacity*K.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:K.paint.get("raster-brightness-min"),u_brightness_high:K.paint.get("raster-brightness-max"),u_saturation_factor:_s(K.paint.get("raster-saturation")),u_contrast_factor:no(K.paint.get("raster-contrast")),u_spin_weights:va(K.paint.get("raster-hue-rotate"))}};function va(Y){Y*=Math.PI/180;var D=Math.sin(Y),J=Math.cos(Y);return[(2*J+1)/3,(-Math.sqrt(3)*D-J+1)/3,(Math.sqrt(3)*D-J+1)/3]}function no(Y){return Y>0?1/(1-Y):1+Y}function _s(Y){return Y>0?1-1/(1.001-Y):-Y}var is=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture)}},$l=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},ku=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texsize_icon:new i.Uniform2f(Y,D.u_texsize_icon),u_texture:new i.Uniform1i(Y,D.u_texture),u_texture_icon:new i.Uniform1i(Y,D.u_texture_icon),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},Yu=function(Y,D,J,q,K,de,ne,we,Ue,ft){var Zt=K.transform;return{u_is_size_zoom_constant:+(Y==="constant"||Y==="source"),u_is_size_feature_constant:+(Y==="constant"||Y==="camera"),u_size_t:D?D.uSizeT:0,u_size:D?D.uSize:0,u_camera_to_center_distance:Zt.cameraToCenterDistance,u_pitch:Zt.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:Zt.width/Zt.height,u_fade_change:K.options.fadeDuration?K.symbolFadeChange:1,u_matrix:de,u_label_plane_matrix:ne,u_coord_matrix:we,u_is_text:+Ue,u_pitch_with_map:+q,u_texsize:ft,u_texture:0}},Nc=function(Y,D,J,q,K,de,ne,we,Ue,ft,Zt){var hr=K.transform;return i.extend(Yu(Y,D,J,q,K,de,ne,we,Ue,ft),{u_gamma_scale:q?Math.cos(hr._pitch)*hr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+Zt})},pu=function(Y,D,J,q,K,de,ne,we,Ue,ft){return i.extend(Nc(Y,D,J,q,K,de,ne,we,!0,Ue,!0),{u_texsize_icon:ft,u_texture_icon:1})},Uc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_color:new i.UniformColor(Y,D.u_color)}},xu=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image:new i.Uniform1i(Y,D.u_image),u_pattern_tl_a:new i.Uniform2f(Y,D.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(Y,D.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(Y,D.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(Y,D.u_pattern_br_b),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_mix:new i.Uniform1f(Y,D.u_mix),u_pattern_size_a:new i.Uniform2f(Y,D.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(Y,D.u_pattern_size_b),u_scale_a:new i.Uniform1f(Y,D.u_scale_a),u_scale_b:new i.Uniform1f(Y,D.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(Y,D.u_tile_units_to_pixels)}},Ac=function(Y,D,J){return{u_matrix:Y,u_opacity:D,u_color:J}},Ua=function(Y,D,J,q,K,de){return i.extend(uf(q,de,J,K),{u_matrix:Y,u_opacity:D})},oo={fillExtrusion:Xf,fillExtrusionPattern:Wl,fill:Oc,fillPattern:Tc,fillOutline:Tl,fillOutlinePattern:vu,circle:At,collisionBox:kr,collisionCircle:Ar,debug:Wi,clippingMask:Tn,heatmap:Zi,heatmapTexture:$i,hillshade:$n,hillshadePrepare:ka,line:Yn,lineGradient:zn,linePattern:Ka,lineSDF:bo,raster:Xs,symbolIcon:is,symbolSDF:$l,symbolTextAndIcon:ku,background:Uc,backgroundPattern:xu},Vc;function hc(Y,D,J,q,K,de,ne){for(var we=Y.context,Ue=we.gl,ft=Y.useProgram("collisionBox"),Zt=[],hr=0,qt=0,Ve=0;Ve0){var Rt=i.create(),mt=Ot;i.mul(Rt,kt.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(Rt,Rt,kt.placementViewportMatrix),Zt.push({circleArray:Bt,circleOffset:qt,transform:mt,invTransform:Rt}),hr+=Bt.length/4,qt=hr}It&&ft.draw(we,Ue.LINES,wn.disabled,kn.disabled,Y.colorModeForRenderPass(),Er.disabled,Kr(Ot,Y.transform,at),J.id,It.layoutVertexBuffer,It.indexBuffer,It.segments,null,Y.transform.zoom,null,null,It.collisionVertexBuffer)}}if(!(!ne||!Zt.length)){var Pt=Y.useProgram("collisionCircle"),ht=new i.StructArrayLayout2f1f2i16;ht.resize(hr*4),ht._trim();for(var cr=0,br=0,Nr=Zt;br=0&&(et[kt.associatedIconIndex]={shiftedAnchor:wi,angle:gn})}}if(Zt){Ve.clear();for(var Ci=Y.icon.placedSymbolArray,qi=0;qi0){var ne=i.browser.now(),we=(ne-Y.timeAdded)/de,Ue=D?(ne-D.timeAdded)/de:-1,ft=J.getSource(),Zt=K.coveringZoomLevel({tileSize:ft.tileSize,roundZoom:ft.roundZoom}),hr=!D||Math.abs(D.tileID.overscaledZ-Zt)>Math.abs(Y.tileID.overscaledZ-Zt),qt=hr&&Y.refreshedUponExpiration?1:i.clamp(hr?we:1-Ue,0,1);return Y.refreshedUponExpiration&&we>=1&&(Y.refreshedUponExpiration=!1),D?{opacity:1,mix:1-qt}:{opacity:qt,mix:0}}else return{opacity:1,mix:0}}function rr(Y,D,J){var q=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var de=Y.context,ne=de.gl,we=Y.transform,Ue=we.tileSize,ft=J.paint.get("background-pattern");if(!Y.isPatternMissing(ft)){var Zt=!ft&&q.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===Zt){var hr=kn.disabled,qt=Y.depthModeForSublayer(0,Zt==="opaque"?wn.ReadWrite:wn.ReadOnly),Ve=Y.colorModeForRenderPass(),et=Y.useProgram(ft?"backgroundPattern":"background"),at=we.coveringTiles({tileSize:Ue});ft&&(de.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var kt=J.getCrossfadeParameters(),Ot=0,It=at;Ot "+J.overscaledZ);var Ot=kt+" "+Ve+"kb";$a(Y,Ot),ne.draw(q,K.TRIANGLES,we,Ue,_t.alphaBlended,Er.disabled,hn(de,i.Color.transparent,at),Zt,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function $a(Y,D){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,q=Y.context.gl,K=Y.debugOverlayCanvas.getContext("2d");K.clearRect(0,0,J.width,J.height),K.shadowColor="white",K.shadowBlur=2,K.lineWidth=1.5,K.strokeStyle="white",K.textBaseline="top",K.font="bold 36px Open Sans, sans-serif",K.fillText(D,5,5),K.strokeText(D,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(q.LINEAR,q.CLAMP_TO_EDGE)}function ko(Y,D,J){var q=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var de=K.prerender;de&&(Y.setCustomLayerDefaults(),q.setColorMode(Y.colorModeForRenderPass()),de.call(K,q.gl,Y.transform.customLayerMatrix()),q.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),q.setColorMode(Y.colorModeForRenderPass()),q.setStencilMode(kn.disabled);var ne=K.renderingMode==="3d"?new wn(Y.context.gl.LEQUAL,wn.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,wn.ReadOnly);q.setDepthMode(ne),K.render(q.gl,Y.transform.customLayerMatrix()),q.setDirty(),Y.setBaseState(),q.bindFramebuffer.set(null)}}var Qa={symbol:w,circle:ot,heatmap:Tt,line:Pr,fill:ve,"fill-extrusion":Re,hillshade:tt,raster:Dt,background:rr,debug:Aa,custom:ko},mo=function(D,J){this.context=new Zr(D),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=ri.maxUnderzooming+ri.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Uf,this.gpuTimers={}};mo.prototype.resize=function(D,J){if(this.width=D*i.browser.devicePixelRatio,this.height=J*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var q=0,K=this.style._order;q256&&this.clearStencil(),q.setColorMode(_t.disabled),q.setDepthMode(wn.disabled);var de=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ne=0,we=J;ne256&&this.clearStencil();var D=this.nextStencilID++,J=this.context.gl;return new kn({func:J.NOTEQUAL,mask:255},D,255,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilModeForClipping=function(D){var J=this.context.gl;return new kn({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[D.key],0,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilConfigForOverlap=function(D){var J,q=this.context.gl,K=D.sort(function(ft,Zt){return Zt.overscaledZ-ft.overscaledZ}),de=K[K.length-1].overscaledZ,ne=K[0].overscaledZ-de+1;if(ne>1){this.currentStencilSource=void 0,this.nextStencilID+ne>256&&this.clearStencil();for(var we={},Ue=0;Ue=0;this.currentLayer--){var Rt=this.style._layers[K[this.currentLayer]],mt=de[Rt.source],Pt=Ue[Rt.source];this._renderTileClippingMasks(Rt,Pt),this.renderLayer(this,mt,Rt,Pt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},mo.prototype.isPatternMissing=function(D){if(!D)return!1;if(!D.from||!D.to)return!0;var J=this.imageManager.getPattern(D.from.toString()),q=this.imageManager.getPattern(D.to.toString());return!J||!q},mo.prototype.useProgram=function(D,J){this.cache=this.cache||{};var q=""+D+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[q]||(this.cache[q]=new If(this.context,D,bf[D],J,oo[D],this._showOverdrawInspector)),this.cache[q]},mo.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},mo.prototype.setBaseState=function(){var D=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(D.FUNC_ADD)},mo.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var D=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,D.RGBA)}},mo.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Bo=function(D,J){this.points=D,this.planes=J};Bo.fromInvProjectionMatrix=function(D,J,q){var K=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],de=Math.pow(2,q),ne=K.map(function(ft){return i.transformMat4([],ft,D)}).map(function(ft){return i.scale$1([],ft,1/ft[3]/J*de)}),we=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ue=we.map(function(ft){var Zt=i.sub([],ne[ft[0]],ne[ft[1]]),hr=i.sub([],ne[ft[2]],ne[ft[1]]),qt=i.normalize([],i.cross([],Zt,hr)),Ve=-i.dot(qt,ne[ft[1]]);return qt.concat(Ve)});return new Bo(ne,Ue)};var Is=function(D,J){this.min=D,this.max=J,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};Is.prototype.quadrant=function(D){for(var J=[D%2===0,D<2],q=i.clone$2(this.min),K=i.clone$2(this.max),de=0;de=0;if(ne===0)return 0;ne!==J.length&&(q=!1)}if(q)return 2;for(var Ue=0;Ue<3;Ue++){for(var ft=Number.MAX_VALUE,Zt=-Number.MAX_VALUE,hr=0;hrthis.max[Ue]-this.min[Ue])return 0}return 1};var As=function(D,J,q,K){if(D===void 0&&(D=0),J===void 0&&(J=0),q===void 0&&(q=0),K===void 0&&(K=0),isNaN(D)||D<0||isNaN(J)||J<0||isNaN(q)||q<0||isNaN(K)||K<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=D,this.bottom=J,this.left=q,this.right=K};As.prototype.interpolate=function(D,J,q){return J.top!=null&&D.top!=null&&(this.top=i.number(D.top,J.top,q)),J.bottom!=null&&D.bottom!=null&&(this.bottom=i.number(D.bottom,J.bottom,q)),J.left!=null&&D.left!=null&&(this.left=i.number(D.left,J.left,q)),J.right!=null&&D.right!=null&&(this.right=i.number(D.right,J.right,q)),this},As.prototype.getCenter=function(D,J){var q=i.clamp((this.left+D-this.right)/2,0,D),K=i.clamp((this.top+J-this.bottom)/2,0,J);return new i.Point(q,K)},As.prototype.equals=function(D){return this.top===D.top&&this.bottom===D.bottom&&this.left===D.left&&this.right===D.right},As.prototype.clone=function(){return new As(this.top,this.bottom,this.left,this.right)},As.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wo=function(D,J,q,K,de){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=de===void 0?!0:de,this._minZoom=D||0,this._maxZoom=J||22,this._minPitch=q==null?0:q,this._maxPitch=K==null?60:K,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new As,this._posMatrixCache={},this._alignedPosMatrixCache={}},To={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wo.prototype.clone=function(){var D=new wo(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return D.tileSize=this.tileSize,D.latRange=this.latRange,D.width=this.width,D.height=this.height,D._center=this._center,D.zoom=this.zoom,D.angle=this.angle,D._fov=this._fov,D._pitch=this._pitch,D._unmodified=this._unmodified,D._edgeInsets=this._edgeInsets.clone(),D._calcMatrices(),D},To.minZoom.get=function(){return this._minZoom},To.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},To.maxZoom.get=function(){return this._maxZoom},To.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},To.minPitch.get=function(){return this._minPitch},To.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},To.maxPitch.get=function(){return this._maxPitch},To.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},To.renderWorldCopies.get=function(){return this._renderWorldCopies},To.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},To.worldSize.get=function(){return this.tileSize*this.scale},To.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},To.size.get=function(){return new i.Point(this.width,this.height)},To.bearing.get=function(){return-this.angle/Math.PI*180},To.bearing.set=function(Y){var D=-i.wrap(Y,-180,180)*Math.PI/180;this.angle!==D&&(this._unmodified=!1,this.angle=D,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},To.pitch.get=function(){return this._pitch/Math.PI*180},To.pitch.set=function(Y){var D=i.clamp(Y,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==D&&(this._unmodified=!1,this._pitch=D,this._calcMatrices())},To.fov.get=function(){return this._fov/Math.PI*180},To.fov.set=function(Y){Y=Math.max(.01,Math.min(60,Y)),this._fov!==Y&&(this._unmodified=!1,this._fov=Y/180*Math.PI,this._calcMatrices())},To.zoom.get=function(){return this._zoom},To.zoom.set=function(Y){var D=Math.min(Math.max(Y,this.minZoom),this.maxZoom);this._zoom!==D&&(this._unmodified=!1,this._zoom=D,this.scale=this.zoomScale(D),this.tileZoom=Math.floor(D),this.zoomFraction=D-this.tileZoom,this._constrain(),this._calcMatrices())},To.center.get=function(){return this._center},To.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},To.padding.get=function(){return this._edgeInsets.toJSON()},To.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},To.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wo.prototype.isPaddingEqual=function(D){return this._edgeInsets.equals(D)},wo.prototype.interpolatePadding=function(D,J,q){this._unmodified=!1,this._edgeInsets.interpolate(D,J,q),this._constrain(),this._calcMatrices()},wo.prototype.coveringZoomLevel=function(D){var J=(D.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/D.tileSize));return Math.max(0,J)},wo.prototype.getVisibleUnwrappedCoordinates=function(D){var J=[new i.UnwrappedTileID(0,D)];if(this._renderWorldCopies)for(var q=this.pointCoordinate(new i.Point(0,0)),K=this.pointCoordinate(new i.Point(this.width,0)),de=this.pointCoordinate(new i.Point(this.width,this.height)),ne=this.pointCoordinate(new i.Point(0,this.height)),we=Math.floor(Math.min(q.x,K.x,de.x,ne.x)),Ue=Math.floor(Math.max(q.x,K.x,de.x,ne.x)),ft=1,Zt=we-ft;Zt<=Ue+ft;Zt++)Zt!==0&&J.push(new i.UnwrappedTileID(Zt,D));return J},wo.prototype.coveringTiles=function(D){var J=this.coveringZoomLevel(D),q=J;if(D.minzoom!==void 0&&JD.maxzoom&&(J=D.maxzoom);var K=i.MercatorCoordinate.fromLngLat(this.center),de=Math.pow(2,J),ne=[de*K.x,de*K.y,0],we=Bo.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Ue=D.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ue=J);var ft=3,Zt=function(hi){return{aabb:new Is([hi*de,0,0],[(hi+1)*de,de,0]),zoom:0,x:0,y:0,wrap:hi,fullyVisible:!1}},hr=[],qt=[],Ve=J,et=D.reparseOverscaled?q:J;if(this._renderWorldCopies)for(var at=1;at<=3;at++)hr.push(Zt(-at)),hr.push(Zt(at));for(hr.push(Zt(0));hr.length>0;){var kt=hr.pop(),Ot=kt.x,It=kt.y,Bt=kt.fullyVisible;if(!Bt){var Rt=kt.aabb.intersects(we);if(Rt===0)continue;Bt=Rt===2}var mt=kt.aabb.distanceX(ne),Pt=kt.aabb.distanceY(ne),ht=Math.max(Math.abs(mt),Math.abs(Pt)),cr=ft+(1<cr&&kt.zoom>=Ue){qt.push({tileID:new i.OverscaledTileID(kt.zoom===Ve?et:kt.zoom,kt.wrap,kt.zoom,Ot,It),distanceSq:i.sqrLen([ne[0]-.5-Ot,ne[1]-.5-It])});continue}for(var br=0;br<4;br++){var Nr=(Ot<<1)+br%2,Ri=(It<<1)+(br>>1);hr.push({aabb:kt.aabb.quadrant(br),zoom:kt.zoom+1,x:Nr,y:Ri,wrap:kt.wrap,fullyVisible:Bt})}}return qt.sort(function(hi,wi){return hi.distanceSq-wi.distanceSq}).map(function(hi){return hi.tileID})},wo.prototype.resize=function(D,J){this.width=D,this.height=J,this.pixelsToGLUnits=[2/D,-2/J],this._constrain(),this._calcMatrices()},To.unmodified.get=function(){return this._unmodified},wo.prototype.zoomScale=function(D){return Math.pow(2,D)},wo.prototype.scaleZoom=function(D){return Math.log(D)/Math.LN2},wo.prototype.project=function(D){var J=i.clamp(D.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(D.lng)*this.worldSize,i.mercatorYfromLat(J)*this.worldSize)},wo.prototype.unproject=function(D){return new i.MercatorCoordinate(D.x/this.worldSize,D.y/this.worldSize).toLngLat()},To.point.get=function(){return this.project(this.center)},wo.prototype.setLocationAtPoint=function(D,J){var q=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),de=this.locationCoordinate(D),ne=new i.MercatorCoordinate(de.x-(q.x-K.x),de.y-(q.y-K.y));this.center=this.coordinateLocation(ne),this._renderWorldCopies&&(this.center=this.center.wrap())},wo.prototype.locationPoint=function(D){return this.coordinatePoint(this.locationCoordinate(D))},wo.prototype.pointLocation=function(D){return this.coordinateLocation(this.pointCoordinate(D))},wo.prototype.locationCoordinate=function(D){return i.MercatorCoordinate.fromLngLat(D)},wo.prototype.coordinateLocation=function(D){return D.toLngLat()},wo.prototype.pointCoordinate=function(D){var J=0,q=[D.x,D.y,0,1],K=[D.x,D.y,1,1];i.transformMat4(q,q,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var de=q[3],ne=K[3],we=q[0]/de,Ue=K[0]/ne,ft=q[1]/de,Zt=K[1]/ne,hr=q[2]/de,qt=K[2]/ne,Ve=hr===qt?0:(J-hr)/(qt-hr);return new i.MercatorCoordinate(i.number(we,Ue,Ve)/this.worldSize,i.number(ft,Zt,Ve)/this.worldSize)},wo.prototype.coordinatePoint=function(D){var J=[D.x*this.worldSize,D.y*this.worldSize,0,1];return i.transformMat4(J,J,this.pixelMatrix),new i.Point(J[0]/J[3],J[1]/J[3])},wo.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},wo.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},wo.prototype.setMaxBounds=function(D){D?(this.lngRange=[D.getWest(),D.getEast()],this.latRange=[D.getSouth(),D.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wo.prototype.calculatePosMatrix=function(D,J){J===void 0&&(J=!1);var q=D.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[q])return K[q];var de=D.canonical,ne=this.worldSize/this.zoomScale(de.z),we=de.x+Math.pow(2,de.z)*D.wrap,Ue=i.identity(new Float64Array(16));return i.translate(Ue,Ue,[we*ne,de.y*ne,0]),i.scale(Ue,Ue,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Ue,J?this.alignedProjMatrix:this.projMatrix,Ue),K[q]=new Float32Array(Ue),K[q]},wo.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wo.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var D=-90,J=90,q=-180,K=180,de,ne,we,Ue,ft=this.size,Zt=this._unmodified;if(this.latRange){var hr=this.latRange;D=i.mercatorYfromLat(hr[1])*this.worldSize,J=i.mercatorYfromLat(hr[0])*this.worldSize,de=J-DJ&&(Ue=J-kt)}if(this.lngRange){var Ot=Ve.x,It=ft.x/2;Ot-ItK&&(we=K-It)}(we!==void 0||Ue!==void 0)&&(this.center=this.unproject(new i.Point(we!==void 0?we:Ve.x,Ue!==void 0?Ue:Ve.y))),this._unmodified=Zt,this._constraining=!1}},wo.prototype._calcMatrices=function(){if(this.height){var D=this._fov/2,J=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(D)*this.height;var q=Math.PI/2+this._pitch,K=this._fov*(.5+J.y/this.height),de=Math.sin(K)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-q-K,.01,Math.PI-.01)),ne=this.point,we=ne.x,Ue=ne.y,ft=Math.cos(Math.PI/2-this._pitch)*de+this.cameraToCenterDistance,Zt=ft*1.01,hr=this.height/50,qt=new Float64Array(16);i.perspective(qt,this._fov,this.width/this.height,hr,Zt),qt[8]=-J.x*2/this.width,qt[9]=J.y*2/this.height,i.scale(qt,qt,[1,-1,1]),i.translate(qt,qt,[0,0,-this.cameraToCenterDistance]),i.rotateX(qt,qt,this._pitch),i.rotateZ(qt,qt,this.angle),i.translate(qt,qt,[-we,-Ue,0]),this.mercatorMatrix=i.scale([],qt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(qt,qt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=qt,this.invProjMatrix=i.invert([],this.projMatrix);var Ve=this.width%2/2,et=this.height%2/2,at=Math.cos(this.angle),kt=Math.sin(this.angle),Ot=we-Math.round(we)+at*Ve+kt*et,It=Ue-Math.round(Ue)+at*et+kt*Ve,Bt=new Float64Array(qt);if(i.translate(Bt,Bt,[Ot>.5?Ot-1:Ot,It>.5?It-1:It,0]),this.alignedProjMatrix=Bt,qt=i.create(),i.scale(qt,qt,[this.width/2,-this.height/2,1]),i.translate(qt,qt,[1,-1,0]),this.labelPlaneMatrix=qt,qt=i.create(),i.scale(qt,qt,[1,-1,1]),i.translate(qt,qt,[-1,-1,0]),i.scale(qt,qt,[2/this.width,2/this.height,1]),this.glCoordMatrix=qt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),qt=i.invert(new Float64Array(16),this.pixelMatrix),!qt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=qt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wo.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var D=this.pointCoordinate(new i.Point(0,0)),J=[D.x*this.worldSize,D.y*this.worldSize,0,1],q=i.transformMat4(J,J,this.pixelMatrix);return q[3]/this.cameraToCenterDistance},wo.prototype.getCameraPoint=function(){var D=this._pitch,J=Math.tan(D)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,J))},wo.prototype.getCameraQueryGeometry=function(D){var J=this.getCameraPoint();if(D.length===1)return[D[0],J];for(var q=J.x,K=J.y,de=J.x,ne=J.y,we=0,Ue=D;we=3&&!D.some(function(q){return isNaN(q)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(D[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+D[2],+D[1]],zoom:+D[0],bearing:J,pitch:+(D[4]||0)}),!0}return!1},Ul.prototype._updateHashUnthrottled=function(){var D=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,D)}catch(J){}};var Lu={linearity:.3,easing:i.bezier(0,0,.3,1)},au=i.extend({deceleration:2500,maxSpeed:1400},Lu),$s=i.extend({deceleration:20,maxSpeed:1400},Lu),Ql=i.extend({deceleration:1e3,maxSpeed:360},Lu),dc=i.extend({deceleration:1e3,maxSpeed:90},Lu),Al=function(D){this._map=D,this.clear()};Al.prototype.clear=function(){this._inertiaBuffer=[]},Al.prototype.record=function(D){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:D})},Al.prototype._drainInertiaBuffer=function(){for(var D=this._inertiaBuffer,J=i.browser.now(),q=160;D.length>0&&J-D[0].time>q;)D.shift()},Al.prototype._onMoveEnd=function(D){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},q=0,K=this._inertiaBuffer;q=this._clickTolerance||this._map.fire(new se(D.type,this._map,D))},He.prototype.dblclick=function(D){return this._firePreventable(new se(D.type,this._map,D))},He.prototype.mouseover=function(D){this._map.fire(new se(D.type,this._map,D))},He.prototype.mouseout=function(D){this._map.fire(new se(D.type,this._map,D))},He.prototype.touchstart=function(D){return this._firePreventable(new Te(D.type,this._map,D))},He.prototype.touchmove=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype.touchend=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype.touchcancel=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype._firePreventable=function(D){if(this._map.fire(D),D.defaultPrevented)return{}},He.prototype.isEnabled=function(){return!0},He.prototype.isActive=function(){return!1},He.prototype.enable=function(){},He.prototype.disable=function(){};var Ye=function(D){this._map=D};Ye.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Ye.prototype.mousemove=function(D){this._map.fire(new se(D.type,this._map,D))},Ye.prototype.mousedown=function(){this._delayContextMenu=!0},Ye.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new se("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Ye.prototype.contextmenu=function(D){this._delayContextMenu?this._contextMenuEvent=D:this._map.fire(new se(D.type,this._map,D)),this._map.listens("contextmenu")&&D.preventDefault()},Ye.prototype.isEnabled=function(){return!0},Ye.prototype.isActive=function(){return!1},Ye.prototype.enable=function(){},Ye.prototype.disable=function(){};var Ct=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._container=D.getContainer(),this._clickTolerance=J.clickTolerance||1};Ct.prototype.isEnabled=function(){return!!this._enabled},Ct.prototype.isActive=function(){return!!this._active},Ct.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Ct.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Ct.prototype.mousedown=function(D,J){this.isEnabled()&&D.shiftKey&&D.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},Ct.prototype.mousemoveWindow=function(D,J){if(this._active){var q=J;if(!(this._lastPos.equals(q)||!this._box&&q.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=D.timeStamp),q.length===this.numTouches&&(this.centroid=jt(J),this.touches=nt(q,J)))},qr.prototype.touchmove=function(D,J,q){if(!(this.aborted||!this.centroid)){var K=nt(q,J);for(var de in this.touches){var ne=this.touches[de],we=K[de];(!we||we.dist(ne)>Gr)&&(this.aborted=!0)}}},qr.prototype.touchend=function(D,J,q){if((!this.centroid||D.timeStamp-this.startTime>yr)&&(this.aborted=!0),q.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var _i=function(D){this.singleTap=new qr(D),this.numTaps=D.numTaps,this.reset()};_i.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},_i.prototype.touchstart=function(D,J,q){this.singleTap.touchstart(D,J,q)},_i.prototype.touchmove=function(D,J,q){this.singleTap.touchmove(D,J,q)},_i.prototype.touchend=function(D,J,q){var K=this.singleTap.touchend(D,J,q);if(K){var de=D.timeStamp-this.lastTime0&&(this._active=!0);var K=nt(q,J),de=new i.Point(0,0),ne=new i.Point(0,0),we=0;for(var Ue in K){var ft=K[Ue],Zt=this._touches[Ue];Zt&&(de._add(ft),ne._add(ft.sub(Zt)),we++,K[Ue]=ft)}if(this._touches=K,!(weMath.abs(Y.x)}var Gn=100,Ha=function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.reset=function(){Y.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},D.prototype._start=function(q){this._lastPoints=q,Zs(q[0].sub(q[1]))&&(this._valid=!1)},D.prototype._move=function(q,K,de){var ne=q[0].sub(this._lastPoints[0]),we=q[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,we,de.timeStamp),!!this._valid){this._lastPoints=q,this._active=!0;var Ue=(ne.y+we.y)/2,ft=-.5;return{pitchDelta:Ue*ft}}},D.prototype.gestureBeginsVertically=function(q,K,de){if(this._valid!==void 0)return this._valid;var ne=2,we=q.mag()>=ne,Ue=K.mag()>=ne;if(!(!we&&!Ue)){if(!we||!Ue)return this._firstMove===void 0&&(this._firstMove=de),de-this._firstMove0==K.y>0;return Zs(q)&&Zs(K)&&ft}},D}(ia),Fo={panStep:100,bearingStep:15,pitchStep:10},Uo=function(){var D=Fo;this._panStep=D.panStep,this._bearingStep=D.bearingStep,this._pitchStep=D.pitchStep,this._rotationDisabled=!1};Uo.prototype.reset=function(){this._active=!1},Uo.prototype.keydown=function(D){var J=this;if(!(D.altKey||D.ctrlKey||D.metaKey)){var q=0,K=0,de=0,ne=0,we=0;switch(D.keyCode){case 61:case 107:case 171:case 187:q=1;break;case 189:case 109:case 173:q=-1;break;case 37:D.shiftKey?K=-1:(D.preventDefault(),ne=-1);break;case 39:D.shiftKey?K=1:(D.preventDefault(),ne=1);break;case 38:D.shiftKey?de=1:(D.preventDefault(),we=-1);break;case 40:D.shiftKey?de=-1:(D.preventDefault(),we=1);break;default:return}return this._rotationDisabled&&(K=0,de=0),{cameraAnimation:function(Ue){var ft=Ue.getZoom();Ue.easeTo({duration:300,easeId:"keyboardHandler",easing:Qs,zoom:q?Math.round(ft)+q*(D.shiftKey?2:1):ft,bearing:Ue.getBearing()+K*J._bearingStep,pitch:Ue.getPitch()+de*J._pitchStep,offset:[-ne*J._panStep,-we*J._panStep],center:Ue.getCenter()},{originalEvent:D})}}}},Uo.prototype.enable=function(){this._enabled=!0},Uo.prototype.disable=function(){this._enabled=!1,this.reset()},Uo.prototype.isEnabled=function(){return this._enabled},Uo.prototype.isActive=function(){return this._active},Uo.prototype.disableRotation=function(){this._rotationDisabled=!0},Uo.prototype.enableRotation=function(){this._rotationDisabled=!1};function Qs(Y){return Y*(2-Y)}var Ml=4.000244140625,bu=1/100,vl=1/450,Sc=2,Ee=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=bu,this._wheelZoomRate=vl,i.bindAll(["_onTimeout"],this)};Ee.prototype.setZoomRate=function(D){this._defaultZoomRate=D},Ee.prototype.setWheelZoomRate=function(D){this._wheelZoomRate=D},Ee.prototype.isEnabled=function(){return!!this._enabled},Ee.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Ee.prototype.isZooming=function(){return!!this._zooming},Ee.prototype.enable=function(D){this.isEnabled()||(this._enabled=!0,this._aroundCenter=D&&D.around==="center")},Ee.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Ee.prototype.wheel=function(D){if(this.isEnabled()){var J=D.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?D.deltaY*40:D.deltaY,q=i.browser.now(),K=q-(this._lastWheelEventTime||0);this._lastWheelEventTime=q,J!==0&&J%Ml===0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":K>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,D)):this._type||(this._type=Math.abs(K*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),D.shiftKey&&J&&(J=J/4),this._type&&(this._lastWheelEvent=D,this._delta-=J,this._active||this._start(D)),D.preventDefault()}},Ee.prototype._onTimeout=function(D){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(D)},Ee.prototype._start=function(D){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var J=o.mousePos(this._el,D);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(J)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Ee.prototype.renderFrame=function(){var D=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var J=this._map.transform;if(this._delta!==0){var q=this._type==="wheel"&&Math.abs(this._delta)>Ml?this._wheelZoomRate:this._defaultZoomRate,K=Sc/(1+Math.exp(-Math.abs(this._delta*q)));this._delta<0&&K!==0&&(K=1/K);var de=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(de*K))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ne=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,we=this._startZoom,Ue=this._easing,ft=!1,Zt;if(this._type==="wheel"&&we&&Ue){var hr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),qt=Ue(hr);Zt=i.number(we,ne,qt),hr<1?this._frameId||(this._frameId=!0):ft=!0}else Zt=ne,ft=!0;return this._active=!0,ft&&(this._active=!1,this._finishTimeout=setTimeout(function(){D._zooming=!1,D._handler._triggerRenderFrame(),delete D._targetZoom,delete D._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!ft,zoomDelta:Zt-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Ee.prototype._smoothOutEasing=function(D){var J=i.ease;if(this._prevEase){var q=this._prevEase,K=(i.browser.now()-q.start)/q.duration,de=q.easing(K+.01)-q.easing(K),ne=.27/Math.sqrt(de*de+1e-4)*.01,we=Math.sqrt(.27*.27-ne*ne);J=i.bezier(ne,we,.25,1)}return this._prevEase={start:i.browser.now(),duration:D,easing:J},J},Ee.prototype.reset=function(){this._active=!1};var xt=function(D,J){this._clickZoom=D,this._tapZoom=J};xt.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},xt.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},xt.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},xt.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var zt=function(){this.reset()};zt.prototype.reset=function(){this._active=!1},zt.prototype.dblclick=function(D,J){return D.preventDefault(),{cameraAnimation:function(q){q.easeTo({duration:300,zoom:q.getZoom()+(D.shiftKey?-1:1),around:q.unproject(J)},{originalEvent:D})}}},zt.prototype.enable=function(){this._enabled=!0},zt.prototype.disable=function(){this._enabled=!1,this.reset()},zt.prototype.isEnabled=function(){return this._enabled},zt.prototype.isActive=function(){return this._active};var Ir=function(){this._tap=new _i({numTouches:1,numTaps:1}),this.reset()};Ir.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Ir.prototype.touchstart=function(D,J,q){this._swipePoint||(this._tapTime&&D.timeStamp-this._tapTime>gr&&this.reset(),this._tapTime?q.length>0&&(this._swipePoint=J[0],this._swipeTouch=q[0].identifier):this._tap.touchstart(D,J,q))},Ir.prototype.touchmove=function(D,J,q){if(!this._tapTime)this._tap.touchmove(D,J,q);else if(this._swipePoint){if(q[0].identifier!==this._swipeTouch)return;var K=J[0],de=K.y-this._swipePoint.y;return this._swipePoint=K,D.preventDefault(),this._active=!0,{zoomDelta:de/128}}},Ir.prototype.touchend=function(D,J,q){if(this._tapTime)this._swipePoint&&q.length===0&&this.reset();else{var K=this._tap.touchend(D,J,q);K&&(this._tapTime=D.timeStamp)}},Ir.prototype.touchcancel=function(){this.reset()},Ir.prototype.enable=function(){this._enabled=!0},Ir.prototype.disable=function(){this._enabled=!1,this.reset()},Ir.prototype.isEnabled=function(){return this._enabled},Ir.prototype.isActive=function(){return this._active};var Hr=function(D,J,q){this._el=D,this._mousePan=J,this._touchPan=q};Hr.prototype.enable=function(D){this._inertiaOptions=D||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Hr.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Hr.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Hr.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Br=function(D,J,q){this._pitchWithRotate=D.pitchWithRotate,this._mouseRotate=J,this._mousePitch=q};Br.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Br.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Br.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Br.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Vr=function(D,J,q,K){this._el=D,this._touchZoom=J,this._touchRotate=q,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};Vr.prototype.enable=function(D){this._touchZoom.enable(D),this._rotationDisabled||this._touchRotate.enable(D),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Vr.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Vr.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Vr.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Vr.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Vr.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var mi=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},Ni=function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D}(i.Event);function Oi(Y){return Y.panDelta&&Y.panDelta.mag()||Y.zoomDelta||Y.bearingDelta||Y.pitchDelta}var Mi=function(D,J){this._map=D,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Al(D),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),i.bindAll(["handleEvent","handleWindowEvent"],this);var q=this._el;this._listeners=[[q,"touchstart",{passive:!0}],[q,"touchmove",{passive:!1}],[q,"touchend",void 0],[q,"touchcancel",void 0],[q,"mousedown",void 0],[q,"mousemove",void 0],[q,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[q,"mouseover",void 0],[q,"mouseout",void 0],[q,"dblclick",void 0],[q,"click",void 0],[q,"keydown",{capture:!1}],[q,"keyup",void 0],[q,"wheel",{passive:!1}],[q,"contextmenu",void 0],[i.window,"blur",void 0]];for(var K=0,de=this._listeners;Kwe?Math.min(2,mt):Math.max(.5,mt),hi=Math.pow(Ri,1-br),wi=ne.unproject(Bt.add(Rt.mult(br*hi)).mult(Nr));ne.setLocationAtPoint(ne.renderWorldCopies?wi.wrap():wi,kt)}de._fireMoveEvents(K)},function(br){de._afterEase(K,br)},q),this},D.prototype._prepareEase=function(q,K,de){de===void 0&&(de={}),this._moving=!0,!K&&!de.moving&&this.fire(new i.Event("movestart",q)),this._zooming&&!de.zooming&&this.fire(new i.Event("zoomstart",q)),this._rotating&&!de.rotating&&this.fire(new i.Event("rotatestart",q)),this._pitching&&!de.pitching&&this.fire(new i.Event("pitchstart",q))},D.prototype._fireMoveEvents=function(q){this.fire(new i.Event("move",q)),this._zooming&&this.fire(new i.Event("zoom",q)),this._rotating&&this.fire(new i.Event("rotate",q)),this._pitching&&this.fire(new i.Event("pitch",q))},D.prototype._afterEase=function(q,K){if(!(this._easeId&&K&&this._easeId===K)){delete this._easeId;var de=this._zooming,ne=this._rotating,we=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,de&&this.fire(new i.Event("zoomend",q)),ne&&this.fire(new i.Event("rotateend",q)),we&&this.fire(new i.Event("pitchend",q)),this.fire(new i.Event("moveend",q))}},D.prototype.flyTo=function(q,K){var de=this;if(!q.essential&&i.browser.prefersReducedMotion){var ne=i.pick(q,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ne,K)}this.stop(),q=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},q);var we=this.transform,Ue=this.getZoom(),ft=this.getBearing(),Zt=this.getPitch(),hr=this.getPadding(),qt="zoom"in q?i.clamp(+q.zoom,we.minZoom,we.maxZoom):Ue,Ve="bearing"in q?this._normalizeBearing(q.bearing,ft):ft,et="pitch"in q?+q.pitch:Zt,at="padding"in q?q.padding:we.padding,kt=we.zoomScale(qt-Ue),Ot=i.Point.convert(q.offset),It=we.centerPoint.add(Ot),Bt=we.pointLocation(It),Rt=i.LngLat.convert(q.center||Bt);this._normalizeCenter(Rt);var mt=we.project(Bt),Pt=we.project(Rt).sub(mt),ht=q.curve,cr=Math.max(we.width,we.height),br=cr/kt,Nr=Pt.mag();if("minZoom"in q){var Ri=i.clamp(Math.min(q.minZoom,Ue,qt),we.minZoom,we.maxZoom),hi=cr/we.zoomScale(Ri-Ue);ht=Math.sqrt(hi/Nr*2)}var wi=ht*ht;function gn(so){var Zo=(br*br-cr*cr+(so?-1:1)*wi*wi*Nr*Nr)/(2*(so?br:cr)*wi*Nr);return Math.log(Math.sqrt(Zo*Zo+1)-Zo)}function tn(so){return(Math.exp(so)-Math.exp(-so))/2}function Ci(so){return(Math.exp(so)+Math.exp(-so))/2}function qi(so){return tn(so)/Ci(so)}var Vi=gn(0),on=function(so){return Ci(Vi)/Ci(Vi+ht*so)},On=function(so){return cr*((Ci(Vi)*qi(Vi+ht*so)-tn(Vi))/wi)/Nr},Ja=(gn(1)-Vi)/ht;if(Math.abs(Nr)<1e-6||!isFinite(Ja)){if(Math.abs(cr-br)<1e-6)return this.easeTo(q,K);var co=brq.maxDuration&&(q.duration=0),this._zooming=!0,this._rotating=ft!==Ve,this._pitching=et!==Zt,this._padding=!we.isPaddingEqual(at),this._prepareEase(K,!1),this._ease(function(so){var Zo=so*Ja,ys=1/on(Zo);we.zoom=so===1?qt:Ue+we.scaleZoom(ys),de._rotating&&(we.bearing=i.number(ft,Ve,so)),de._pitching&&(we.pitch=i.number(Zt,et,so)),de._padding&&(we.interpolatePadding(hr,at,so),It=we.centerPoint.add(Ot));var ou=so===1?Rt:we.unproject(mt.add(Pt.mult(On(Zo))).mult(ys));we.setLocationAtPoint(we.renderWorldCopies?ou.wrap():ou,It),de._fireMoveEvents(K)},function(){return de._afterEase(K)},q),this},D.prototype.isEasing=function(){return!!this._easeFrameId},D.prototype.stop=function(){return this._stop()},D.prototype._stop=function(q,K){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var de=this._onEaseEnd;delete this._onEaseEnd,de.call(this,K)}if(!q){var ne=this.handlers;ne&&ne.stop(!1)}return this},D.prototype._ease=function(q,K,de){de.animate===!1||de.duration===0?(q(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=de,this._onEaseFrame=q,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},D.prototype._renderFrameCallback=function(){var q=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(q)),q<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},D.prototype._normalizeBearing=function(q,K){q=i.wrap(q,-180,180);var de=Math.abs(q-K);return Math.abs(q-360-K)180?-360:de<-180?360:0}},D}(i.Evented),Qi=function(D){D===void 0&&(D={}),this.options=D,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Qi.prototype.getDefaultPosition=function(){return"bottom-right"},Qi.prototype.onAdd=function(D){var J=this.options&&this.options.compact;return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),J&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),J===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Qi.prototype.onRemove=function(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Qi.prototype._setElementTitle=function(D,J){var q=this._map._getUIString("AttributionControl."+J);D.title=q,D.setAttribute("aria-label",q)},Qi.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Qi.prototype._updateEditLink=function(){var D=this._editLink;D||(D=this._editLink=this._container.querySelector(".mapbox-improve-map"));var J=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(D){var q=J.reduce(function(K,de,ne){return de.value&&(K+=de.key+"="+de.value+(ne=0)return!1;return!0});var we=D.join(" | ");we!==this._attribHTML&&(this._attribHTML=we,D.length?(this._innerContainer.innerHTML=we,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Qi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var ji=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};ji.prototype.onAdd=function(D){this._map=D,this._container=o.create("div","mapboxgl-ctrl");var J=o.create("a","mapboxgl-ctrl-logo");return J.target="_blank",J.rel="noopener nofollow",J.href="https://www.mapbox.com/",J.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),J.setAttribute("rel","noopener nofollow"),this._container.appendChild(J),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},ji.prototype.onRemove=function(){o.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},ji.prototype.getDefaultPosition=function(){return"bottom-left"},ji.prototype._updateLogo=function(D){(!D||D.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},ji.prototype._logoRequired=function(){if(this._map.style){var D=this._map.style.sourceCaches;for(var J in D){var q=D[J].getSource();if(q.mapbox_logo)return!0}return!1}},ji.prototype._updateCompact=function(){var D=this._container.children;if(D.length){var J=D[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var si=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};si.prototype.add=function(D){var J=++this._id,q=this._queue;return q.push({callback:D,id:J,cancelled:!1}),J},si.prototype.remove=function(D){for(var J=this._currentlyRunning,q=J?this._queue.concat(J):this._queue,K=0,de=q;Kq.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(q.minPitch!=null&&q.maxPitch!=null&&q.minPitch>q.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(q.minPitch!=null&&q.minPitchqn)throw new Error("maxPitch must be less than or equal to "+qn);var de=new wo(q.minZoom,q.maxZoom,q.minPitch,q.maxPitch,q.renderWorldCopies);if(Y.call(this,de,q),this._interactive=q.interactive,this._maxTileCacheSize=q.maxTileCacheSize,this._failIfMajorPerformanceCaveat=q.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=q.preserveDrawingBuffer,this._antialias=q.antialias,this._trackResize=q.trackResize,this._bearingSnap=q.bearingSnap,this._refreshExpiredTiles=q.refreshExpiredTiles,this._fadeDuration=q.fadeDuration,this._crossSourceCollisions=q.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=q.collectResourceTiming,this._renderTaskQueue=new si,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Mr,q.locale),this._clickTolerance=q.clickTolerance,this._requestManager=new i.RequestManager(q.transformRequest,q.accessToken),typeof q.container=="string"){if(this._container=i.window.document.getElementById(q.container),!this._container)throw new Error("Container '"+q.container+"' not found.")}else if(q.container instanceof xi)this._container=q.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(q.maxBounds&&this.setMaxBounds(q.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return K._update(!1)}),this.on("moveend",function(){return K._update(!1)}),this.on("zoom",function(){return K._update(!0)}),typeof i.window!="undefined"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Mi(this,q);var ne=typeof q.hash=="string"&&q.hash||void 0;this._hash=q.hash&&new Ul(ne).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:q.center,zoom:q.zoom,bearing:q.bearing,pitch:q.pitch}),q.bounds&&(this.resize(),this.fitBounds(q.bounds,i.extend({},q.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=q.localIdeographFontFamily,q.style&&this.setStyle(q.style,{localIdeographFontFamily:q.localIdeographFontFamily}),q.attributionControl&&this.addControl(new Qi({customAttribution:q.customAttribution})),this.addControl(new ji,q.logoPosition),this.on("style.load",function(){K.transform.unmodified&&K.jumpTo(K.style.stylesheet)}),this.on("data",function(we){K._update(we.dataType==="style"),K.fire(new i.Event(we.dataType+"data",we))}),this.on("dataloading",function(we){K.fire(new i.Event(we.dataType+"dataloading",we))})}Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D;var J={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return D.prototype._getMapId=function(){return this._mapId},D.prototype.addControl=function(K,de){if(de===void 0&&(K.getDefaultPosition?de=K.getDefaultPosition():de="top-right"),!K||!K.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=K.onAdd(this);this._controls.push(K);var we=this._controlPositions[de];return de.indexOf("bottom")!==-1?we.insertBefore(ne,we.firstChild):we.appendChild(ne),this},D.prototype.removeControl=function(K){if(!K||!K.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var de=this._controls.indexOf(K);return de>-1&&this._controls.splice(de,1),K.onRemove(this),this},D.prototype.hasControl=function(K){return this._controls.indexOf(K)>-1},D.prototype.resize=function(K){var de=this._containerDimensions(),ne=de[0],we=de[1];this._resizeCanvas(ne,we),this.transform.resize(ne,we),this.painter.resize(ne,we);var Ue=!this._moving;return Ue&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Ue&&this.fire(new i.Event("moveend",K)),this},D.prototype.getBounds=function(){return this.transform.getBounds()},D.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},D.prototype.setMaxBounds=function(K){return this.transform.setMaxBounds(i.LngLatBounds.convert(K)),this._update()},D.prototype.setMinZoom=function(K){if(K=K==null?ci:K,K>=ci&&K<=this.transform.maxZoom)return this.transform.minZoom=K,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=K,this._update(),this.getZoom()>K&&this.setZoom(K),this;throw new Error("maxZoom must be greater than the current minZoom")},D.prototype.getMaxZoom=function(){return this.transform.maxZoom},D.prototype.setMinPitch=function(K){if(K=K==null?Xi:K,K=Xi&&K<=this.transform.maxPitch)return this.transform.minPitch=K,this._update(),this.getPitch()qn)throw new Error("maxPitch must be less than or equal to "+qn);if(K>=this.transform.minPitch)return this.transform.maxPitch=K,this._update(),this.getPitch()>K&&this.setPitch(K),this;throw new Error("maxPitch must be greater than the current minPitch")},D.prototype.getMaxPitch=function(){return this.transform.maxPitch},D.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},D.prototype.setRenderWorldCopies=function(K){return this.transform.renderWorldCopies=K,this._update()},D.prototype.project=function(K){return this.transform.locationPoint(i.LngLat.convert(K))},D.prototype.unproject=function(K){return this.transform.pointLocation(i.Point.convert(K))},D.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},D.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},D.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},D.prototype._createDelegatedListener=function(K,de,ne){var we=this,Ue;if(K==="mouseenter"||K==="mouseover"){var ft=!1,Zt=function(kt){var Ot=we.getLayer(de)?we.queryRenderedFeatures(kt.point,{layers:[de]}):[];Ot.length?ft||(ft=!0,ne.call(we,new se(K,we,kt.originalEvent,{features:Ot}))):ft=!1},hr=function(){ft=!1};return{layer:de,listener:ne,delegates:{mousemove:Zt,mouseout:hr}}}else if(K==="mouseleave"||K==="mouseout"){var qt=!1,Ve=function(kt){var Ot=we.getLayer(de)?we.queryRenderedFeatures(kt.point,{layers:[de]}):[];Ot.length?qt=!0:qt&&(qt=!1,ne.call(we,new se(K,we,kt.originalEvent)))},et=function(kt){qt&&(qt=!1,ne.call(we,new se(K,we,kt.originalEvent)))};return{layer:de,listener:ne,delegates:{mousemove:Ve,mouseout:et}}}else{var at=function(kt){var Ot=we.getLayer(de)?we.queryRenderedFeatures(kt.point,{layers:[de]}):[];Ot.length&&(kt.features=Ot,ne.call(we,kt),delete kt.features)};return{layer:de,listener:ne,delegates:(Ue={},Ue[K]=at,Ue)}}},D.prototype.on=function(K,de,ne){if(ne===void 0)return Y.prototype.on.call(this,K,de);var we=this._createDelegatedListener(K,de,ne);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[K]=this._delegatedListeners[K]||[],this._delegatedListeners[K].push(we);for(var Ue in we.delegates)this.on(Ue,we.delegates[Ue]);return this},D.prototype.once=function(K,de,ne){if(ne===void 0)return Y.prototype.once.call(this,K,de);var we=this._createDelegatedListener(K,de,ne);for(var Ue in we.delegates)this.once(Ue,we.delegates[Ue]);return this},D.prototype.off=function(K,de,ne){var we=this;if(ne===void 0)return Y.prototype.off.call(this,K,de);var Ue=function(ft){for(var Zt=ft[K],hr=0;hr180;){var ne=J.locationPoint(Y);if(ne.x>=0&&ne.y>=0&&ne.x<=J.width&&ne.y<=J.height)break;Y.lng>J.center.lng?Y.lng-=360:Y.lng+=360}return Y}var Un={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function na(Y,D,J){var q=Y.classList;for(var K in Un)q.remove("mapboxgl-"+J+"-anchor-"+K);q.add("mapboxgl-"+J+"-anchor-"+D)}var Yi=function(Y){function D(J,q){if(Y.call(this),(J instanceof i.window.HTMLElement||q)&&(J=i.extend({element:J},q)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=J&&J.anchor||"center",this._color=J&&J.color||"#3FB1CE",this._scale=J&&J.scale||1,this._draggable=J&&J.draggable||!1,this._clickTolerance=J&&J.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=J&&J.rotation||0,this._rotationAlignment=J&&J.rotationAlignment||"auto",this._pitchAlignment=J&&J.pitchAlignment&&J.pitchAlignment!=="auto"?J.pitchAlignment:this._rotationAlignment,!J||!J.element){this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");var K=o.createNS("http://www.w3.org/2000/svg","svg"),de=41,ne=27;K.setAttributeNS(null,"display","block"),K.setAttributeNS(null,"height",de+"px"),K.setAttributeNS(null,"width",ne+"px"),K.setAttributeNS(null,"viewBox","0 0 "+ne+" "+de);var we=o.createNS("http://www.w3.org/2000/svg","g");we.setAttributeNS(null,"stroke","none"),we.setAttributeNS(null,"stroke-width","1"),we.setAttributeNS(null,"fill","none"),we.setAttributeNS(null,"fill-rule","evenodd");var Ue=o.createNS("http://www.w3.org/2000/svg","g");Ue.setAttributeNS(null,"fill-rule","nonzero");var ft=o.createNS("http://www.w3.org/2000/svg","g");ft.setAttributeNS(null,"transform","translate(3.0, 29.0)"),ft.setAttributeNS(null,"fill","#000000");for(var Zt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],hr=0,qt=Zt;hr=K}this._isDragging&&(this._pos=q.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},D.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},D.prototype._addDragHandler=function(q){this._element.contains(q.originalEvent.target)&&(q.preventDefault(),this._positionDelta=q.point.sub(this._pos).add(this._offset),this._pointerdownPos=q.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},D.prototype.setDraggable=function(q){return this._draggable=!!q,this._map&&(q?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},D.prototype.isDraggable=function(){return this._draggable},D.prototype.setRotation=function(q){return this._rotation=q||0,this._update(),this},D.prototype.getRotation=function(){return this._rotation},D.prototype.setRotationAlignment=function(q){return this._rotationAlignment=q||"auto",this._update(),this},D.prototype.getRotationAlignment=function(){return this._rotationAlignment},D.prototype.setPitchAlignment=function(q){return this._pitchAlignment=q&&q!=="auto"?q:this._rotationAlignment,this._update(),this},D.prototype.getPitchAlignment=function(){return this._pitchAlignment},D}(i.Evented),Ln={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},ra;function oa(Y){ra!==void 0?Y(ra):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(D){ra=D.state!=="denied",Y(ra)}):(ra=!!i.window.navigator.geolocation,Y(ra))}var wa=0,ns=!1,Ys=function(Y){function D(J){Y.call(this),this.options=i.extend({},Ln,J),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.onAdd=function(q){return this._map=q,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),oa(this._setupUI),this._container},D.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,wa=0,ns=!1},D.prototype._isOutOfMapMaxBounds=function(q){var K=this._map.getMaxBounds(),de=q.coords;return K&&(de.longitudeK.getEast()||de.latitudeK.getNorth())},D.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},D.prototype._onSuccess=function(q){if(this._map){if(this._isOutOfMapMaxBounds(q)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",q)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=q,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(q),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(q),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",q)),this._finish()}},D.prototype._updateCamera=function(q){var K=new i.LngLat(q.coords.longitude,q.coords.latitude),de=q.coords.accuracy,ne=this._map.getBearing(),we=i.extend({bearing:ne},this.options.fitBoundsOptions);this._map.fitBounds(K.toBounds(de),we,{geolocateSource:!0})},D.prototype._updateMarker=function(q){if(q){var K=new i.LngLat(q.coords.longitude,q.coords.latitude);this._accuracyCircleMarker.setLngLat(K).addTo(this._map),this._userLocationDotMarker.setLngLat(K).addTo(this._map),this._accuracy=q.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},D.prototype._updateCircleRadius=function(){var q=this._map._container.clientHeight/2,K=this._map.unproject([0,q]),de=this._map.unproject([1,q]),ne=K.distanceTo(de),we=Math.ceil(2*this._accuracy/ne);this._circleElement.style.width=we+"px",this._circleElement.style.height=we+"px"},D.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},D.prototype._onError=function(q){if(this._map){if(this.options.trackUserLocation)if(q.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var K=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=K,this._geolocateButton.setAttribute("aria-label",K),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(q.code===3&&ns)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",q)),this._finish()}},D.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},D.prototype._setupUI=function(q){var K=this;if(this._container.addEventListener("contextmenu",function(we){return we.preventDefault()}),this._geolocateButton=o.create("button","mapboxgl-ctrl-geolocate",this._container),o.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",q===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var de=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=de,this._geolocateButton.setAttribute("aria-label",de)}else{var ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Yi(this._dotElement),this._circleElement=o.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Yi({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(we){var Ue=we.originalEvent&&we.originalEvent.type==="resize";!we.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Ue&&(K._watchState="BACKGROUND",K._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),K._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),K.fire(new i.Event("trackuserlocationend")))})},D.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":wa--,ns=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),wa++;var q;wa>1?(q={maximumAge:6e5,timeout:0},ns=!0):(q=this.options.positionOptions,ns=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,q)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},D.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},D}(i.Evented),Va={maxWidth:100,unit:"metric"},El=function(D){this.options=i.extend({},Va,D),i.bindAll(["_onMove","setUnit"],this)};El.prototype.getDefaultPosition=function(){return"bottom-left"},El.prototype._onMove=function(){zo(this._map,this._container,this.options)},El.prototype.onAdd=function(D){return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",D.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},El.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},El.prototype.setUnit=function(D){this.options.unit=D,zo(this._map,this._container,this.options)};function zo(Y,D,J){var q=J&&J.maxWidth||100,K=Y._container.clientHeight/2,de=Y.unproject([0,K]),ne=Y.unproject([q,K]),we=de.distanceTo(ne);if(J&&J.unit==="imperial"){var Ue=3.2808*we;if(Ue>5280){var ft=Ue/5280;el(D,q,ft,Y._getUIString("ScaleControl.Miles"))}else el(D,q,Ue,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var Zt=we/1852;el(D,q,Zt,Y._getUIString("ScaleControl.NauticalMiles"))}else we>=1e3?el(D,q,we/1e3,Y._getUIString("ScaleControl.Kilometers")):el(D,q,we,Y._getUIString("ScaleControl.Meters"))}function el(Y,D,J,q){var K=Vl(J),de=K/J;Y.style.width=D*de+"px",Y.innerHTML=K+" "+q}function ol(Y){var D=Math.pow(10,Math.ceil(-Math.log(Y)/Math.LN10));return Math.round(Y*D)/D}function Vl(Y){var D=Math.pow(10,(""+Math.floor(Y)).length-1),J=Y/D;return J=J>=10?10:J>=5?5:J>=3?3:J>=2?2:J>=1?1:ol(J),D*J}var ls=function(D){this._fullscreen=!1,D&&D.container&&(D.container instanceof i.window.HTMLElement?this._container=D.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};ls.prototype.onAdd=function(D){return this._map=D,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},ls.prototype.onRemove=function(){o.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},ls.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},ls.prototype._setupUI=function(){var D=this._fullscreenButton=o.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o.create("span","mapboxgl-ctrl-icon",D).setAttribute("aria-hidden",!0),D.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},ls.prototype._updateTitle=function(){var D=this._getTitle();this._fullscreenButton.setAttribute("aria-label",D),this._fullscreenButton.title=D},ls.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},ls.prototype._isFullscreen=function(){return this._fullscreen},ls.prototype._changeIcon=function(){var D=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;D===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},ls.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Gs={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Ks=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Ta=function(Y){function D(J){Y.call(this),this.options=i.extend(Object.create(Gs),J),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.addTo=function(q){return this._map&&this.remove(),this._map=q,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},D.prototype.isOpen=function(){return!!this._map},D.prototype.remove=function(){return this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},D.prototype.getLngLat=function(){return this._lngLat},D.prototype.setLngLat=function(q){return this._lngLat=i.LngLat.convert(q),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},D.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},D.prototype.getElement=function(){return this._container},D.prototype.setText=function(q){return this.setDOMContent(i.window.document.createTextNode(q))},D.prototype.setHTML=function(q){var K=i.window.document.createDocumentFragment(),de=i.window.document.createElement("body"),ne;for(de.innerHTML=q;ne=de.firstChild,!!ne;)K.appendChild(ne);return this.setDOMContent(K)},D.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},D.prototype.setMaxWidth=function(q){return this.options.maxWidth=q,this._update(),this},D.prototype.setDOMContent=function(q){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(q),this._createCloseButton(),this._update(),this._focusFirstElement(),this},D.prototype.addClassName=function(q){this._container&&this._container.classList.add(q)},D.prototype.removeClassName=function(q){this._container&&this._container.classList.remove(q)},D.prototype.setOffset=function(q){return this.options.offset=q,this._update(),this},D.prototype.toggleClassName=function(q){if(this._container)return this._container.classList.toggle(q)},D.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=o.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},D.prototype._onMouseUp=function(q){this._update(q.point)},D.prototype._onMouseMove=function(q){this._update(q.point)},D.prototype._onDrag=function(q){this._update(q.point)},D.prototype._update=function(q){var K=this,de=this._lngLat||this._trackPointer;if(!(!this._map||!de||!this._content)&&(this._container||(this._container=o.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=o.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Ve){return K._container.classList.add(Ve)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=vn(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!q))){var ne=this._pos=this._trackPointer&&q?q:this._map.project(this._lngLat),we=this.options.anchor,Ue=sl(this.options.offset);if(!we){var ft=this._container.offsetWidth,Zt=this._container.offsetHeight,hr;ne.y+Ue.bottom.ythis._map.transform.height-Zt?hr=["bottom"]:hr=[],ne.xthis._map.transform.width-ft/2&&hr.push("right"),hr.length===0?we="bottom":we=hr.join("-")}var qt=ne.add(Ue[we]).round();o.setTransform(this._container,Un[we]+" translate("+qt.x+"px,"+qt.y+"px)"),na(this._container,we,"popup")}},D.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var q=this._container.querySelector(Ks);q&&q.focus()}},D.prototype._onClose=function(){this.remove()},D}(i.Evented);function sl(Y){if(Y)if(typeof Y=="number"){var D=Math.round(Math.sqrt(.5*Math.pow(Y,2)));return{center:new i.Point(0,0),top:new i.Point(0,Y),"top-left":new i.Point(D,D),"top-right":new i.Point(-D,D),bottom:new i.Point(0,-Y),"bottom-left":new i.Point(D,-D),"bottom-right":new i.Point(-D,-D),left:new i.Point(Y,0),right:new i.Point(-Y,0)}}else if(Y instanceof i.Point||Array.isArray(Y)){var J=i.Point.convert(Y);return{center:J,top:J,"top-left":J,"top-right":J,bottom:J,"bottom-left":J,"bottom-right":J,left:J,right:J}}else return{center:i.Point.convert(Y.center||[0,0]),top:i.Point.convert(Y.top||[0,0]),"top-left":i.Point.convert(Y["top-left"]||[0,0]),"top-right":i.Point.convert(Y["top-right"]||[0,0]),bottom:i.Point.convert(Y.bottom||[0,0]),"bottom-left":i.Point.convert(Y["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(Y["bottom-right"]||[0,0]),left:i.Point.convert(Y.left||[0,0]),right:i.Point.convert(Y.right||[0,0])};else return sl(new i.Point(0,0))}var io={version:i.version,supported:a,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:li,NavigationControl:Ui,GeolocateControl:Ys,AttributionControl:Qi,ScaleControl:El,FullscreenControl:ls,Popup:Ta,Marker:Yi,Style:yu,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:la,clearPrewarmedResources:ma,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(Y){i.config.ACCESS_TOKEN=Y},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(Y){i.config.API_URL=Y},get workerCount(){return cn.workerCount},set workerCount(Y){cn.workerCount=Y},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(Y){i.config.MAX_PARALLEL_IMAGE_REQUESTS=Y},clearStorage:function(D){i.clearTileCache(D)},workerUrl:""};return io}),r})});var XVe=ye((b_r,WVe)=>{"use strict";var tw=Dr(),ejt=ru().sanitizeHTML,tjt=eJ(),GVe=c1();function HVe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=GVe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var ig=HVe.prototype;ig.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=Yz(t)};ig.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};ig.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};ig.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};ig.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};ig.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};ig.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!Yz(e)){var r=rjt(e);t.addSource(this.idSource,r)}};ig.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function jVe(e){var t={},r={};switch(e.type){case"circle":tw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":tw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":tw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=tjt(n.textposition,n.iconsize);tw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),tw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":tw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function rjt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=ejt(e.sourceattribution)),n}WVe.exports=function(t,r,n){var i=new HVe(t,r);return i.update(n),i}});var rGe=ye((w_r,tGe)=>{"use strict";var sJ=oJ(),lJ=Dr(),JVe=ix(),ZVe=qa(),ijt=ho(),njt=yv(),Kz=vf(),$Ve=Sg(),ajt=$Ve.drawMode,ojt=$Ve.selectMode,sjt=zf().prepSelect,ljt=zf().clearOutline,ujt=zf().clearSelectionsCache,cjt=zf().selectOnClick,yx=c1(),fjt=XVe();function QVe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var qh=QVe.prototype;qh.plot=function(e,t,r){var n=this,i=t[n.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash={},n.layerList=[]);var a;n.map?a=new Promise(function(o,s){n.updateMap(e,t,o,s)}):a=new Promise(function(o,s){n.createMap(e,t,o,s)}),r.push(a)};qh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=eGe(a.style,t);i.accessToken=a.accesstoken;var s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new sJ.Map({container:i.div,style:o.style,center:uJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new sJ.AttributionControl({compact:!0}));u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var c=[];c.push(new Promise(function(f){u.once("load",f)})),c=c.concat(JVe.fetchTraceGeoData(e)),Promise.all(c).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};qh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=eGe(o.style,t);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(JVe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};qh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&cjt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&Kz.click(n,l.originalEvent)}}};qh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=lJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),ojt(a)||ajt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){sjt(l,u,c,t.dragOptions,a)},njt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};qh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};qh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var cJ=Dr(),hjt=C_(),djt=Yd(),iGe=BC();nGe.exports=function(t,r,n){hjt(t,r,n,{type:"mapbox",attributes:iGe,handleDefaults:vjt,partition:"y",accessToken:r._mapboxAccessToken})};function vjt(e,t,r,n){r("accesstoken",n.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var i=r("bounds.west"),a=r("bounds.east"),o=r("bounds.south"),s=r("bounds.north");(i===void 0||a===void 0||o===void 0||s===void 0)&&delete t.bounds,djt(e,t,{name:"layers",handleItemDefaults:pjt}),t._input=e}function pjt(e,t){function r(l,u){return cJ.coerce(e,t,iGe.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",cJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),cJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var Jz=ye(Bp=>{"use strict";var oGe=oJ(),tm=Dr(),fJ=tm.strTranslate,gjt=tm.strScale,mjt=Id().getSubplotCalcData,yjt=Wp(),_jt=Oa(),sGe=So(),xjt=ru(),bjt=rGe(),_x="mapbox",Qm=Bp.constants=c1();Bp.name=_x;Bp.attr="subplot";Bp.idRoot=_x;Bp.idRegex=Bp.attrRegex=tm.counterRegex(_x);var wjt=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Bp.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Bp.layoutAttributes=BC();Bp.supplyLayoutDefaults=aGe();var lGe=!0;Bp.plot=function(t){lGe&&(lGe=!1,tm.warn(wjt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[_x];if(oGe.version!==Qm.requiredVersion)throw new Error(Qm.wrongVersionErrorMsg);var a=Tjt(t,i);oGe.accessToken=a;for(var o=0;op/2){var C=d.split("|").join("
");x.text(C).attr("data-unformatted",C).call(xjt.convertToTspans,e),b=sGe.bBox(x.node())}x.attr("transform",fJ(-3,-b.height+8)),v.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var E=1;b.width+6>p&&(E=p/(b.width+6));var A=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];v.attr("transform",fJ(A[0],A[1])+gjt(E))}};function Tjt(e,t){var r=e._fullLayout,n=e._context;if(n.mapboxAccessToken==="")return"";for(var i=[],a=[],o=!1,s=!1,l=0;l1&&tm.warn(Qm.multipleTokensErrorMsg),i[0]):(a.length&&tm.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function uGe(e){return typeof e=="string"&&(Qm.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Bp.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[_x],n=0;n{"use strict";var S_r=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");cGe.exports={attributes:Gz(),supplyDefaults:wVe(),colorbar:$d(),formatLabels:QK(),calc:hF(),plot:zVe(),hoverPoints:Zz().hoverPoints,eventData:NVe(),selectPoints:VVe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:Jz(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var dGe=ye((E_r,hGe)=>{"use strict";hGe.exports=fGe()});var hJ=ye((C_r,vGe)=>{"use strict";var f1=JA(),Ajt=Tu(),Sjt=Qo().hovertemplateAttrs,Mjt=Gl(),xx=Ao().extendFlat;vGe.exports=xx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:xx({},f1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:f1.text,hovertext:f1.hovertext,marker:{line:{color:xx({},f1.marker.line.color,{editType:"plot"}),width:xx({},f1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:xx({},f1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:xx({},f1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:xx({},f1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:f1.hoverinfo,hovertemplate:Sjt({},{keys:["properties"]}),showlegend:xx({},Mjt.showlegend,{dflt:!1})},Ajt("",{cLetter:"z",editTypeOverride:"calc"}))});var gGe=ye((k_r,pGe)=>{"use strict";var GC=Dr(),Ejt=Jh(),Cjt=hJ();pGe.exports=function(t,r,n,i){function a(c,f){return GC.coerce(t,r,Cjt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!GC.isArrayOrTypedArray(o)||!o.length||!GC.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||GC.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),Ejt(t,r,i,a,{prefix:"",cLetter:"z"}),GC.coerceSelectionMarkerOpacity(r,a)}});var dJ=ye((L_r,_Ge)=>{"use strict";var kjt=Eo(),h1=Dr(),Ljt=tc(),Pjt=So(),Ijt=tx().makeBlank,mGe=ix();function Rjt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:Ijt()};if(!r)return a;var o=mGe.extractTraceFeature(e);if(!o)return a;var s=Ljt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;h1.isArrayOrTypedArray(l.opacity)&&(c=function(C){var E=C.mo;return kjt(E)?+h1.constrain(E,0,1):0});var f;h1.isArrayOrTypedArray(u.color)&&(f=function(C){return C.mlc});var h;h1.isArrayOrTypedArray(u.width)&&(h=function(C){return C.mlw});for(var d=0;d{"use strict";var bGe=dJ().convert,Djt=dJ().convertOnSelect,xGe=c1().traceLayerPrefix;function wGe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",xGe+t+"-fill"],["line",xGe+t+"-line"]],this.below=null}var T5=wGe.prototype;T5.update=function(e){this._update(bGe(e)),e[0].trace._glTrace=this};T5.updateOnSelect=function(e){this._update(Djt(e))};T5._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};T5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};TGe.exports=function(t,r){var n=r[0].trace,i=new wGe(t,n.uid),a=i.sourceId,o=bGe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var MGe=ye((R_r,SGe)=>{"use strict";var I_r=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");SGe.exports={attributes:hJ(),supplyDefaults:gGe(),colorbar:S_(),calc:RF(),plot:AGe(),hoverPoints:FF(),eventData:zF(),selectPoints:OF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";EGe.exports=MGe()});var pJ=ye((F_r,LGe)=>{"use strict";var Fjt=Tu(),zjt=Qo().hovertemplateAttrs,kGe=Gl(),$z=Gz(),vJ=Ao().extendFlat;LGe.exports=vJ({lon:$z.lon,lat:$z.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:$z.text,hovertext:$z.hovertext,hoverinfo:vJ({},kGe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:zjt(),showlegend:vJ({},kGe.showlegend,{dflt:!1})},Fjt("",{cLetter:"z",editTypeOverride:"calc"}))});var IGe=ye((z_r,PGe)=>{"use strict";var Ojt=Dr(),qjt=Jh(),Bjt=pJ();PGe.exports=function(t,r,n,i){function a(u,c){return Ojt.coerce(t,r,Bjt,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),qjt(t,r,i,a,{prefix:"",cLetter:"z"})}});var FGe=ye((O_r,DGe)=>{"use strict";var gJ=Eo(),Njt=Dr().isArrayOrTypedArray,mJ=hs().BADNUM,Ujt=gv(),RGe=Dr()._;DGe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=Njt(a)&&a.length,s=0;s{"use strict";var Vjt=Eo(),yJ=Dr(),zGe=Ca(),OGe=tc(),qGe=hs().BADNUM,Gjt=tx().makeBlank;BGe.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:Gjt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=yJ.isArrayOrTypedArray(l)&&l.length,f=yJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=OGe.extractOpts(r),p=b.reversescale?OGe.flipScale(b.colorscale):b.colorscale,C=p[0][1],E=zGe.opacity(C)<1?C:zGe.addOpacity(C,0),A=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var UGe=NGe(),Hjt=c1().traceLayerPrefix;function VGe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",Hjt+t+"-heatmap"]],this.below=null}var Qz=VGe.prototype;Qz.update=function(e){var t=this.subplot,r=this.layerList,n=UGe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};Qz.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};GGe.exports=function(t,r){var n=r[0].trace,i=new VGe(t,n.uid),a=i.sourceId,o=UGe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var WGe=ye((N_r,jGe)=>{"use strict";var jjt=ho(),Wjt=Zz().hoverPoints,Xjt=Zz().getExtraText;jGe.exports=function(t,r,n){var i=Wjt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=jjt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=Xjt(s,l,o[0].t.labels),[a]}}});var ZGe=ye((U_r,XGe)=>{"use strict";XGe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var KGe=ye((G_r,YGe)=>{"use strict";var V_r=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");YGe.exports={attributes:pJ(),supplyDefaults:IGe(),colorbar:S_(),formatLabels:QK(),calc:FGe(),plot:HGe(),hoverPoints:WGe(),eventData:ZGe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";JGe.exports=KGe()});var eHe=ye((j_r,QGe)=>{QGe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} +`),mt=we.createShader(we.FRAGMENT_SHADER);if(we.isContextLost()){this.failedToCreate=!0;return}we.shaderSource(mt,Bt),we.compileShader(mt),we.attachShader(this.program,mt);var Pt=we.createShader(we.VERTEX_SHADER);if(we.isContextLost()){this.failedToCreate=!0;return}we.shaderSource(Pt,Rt),we.compileShader(Pt),we.attachShader(this.program,Pt),this.attributes={};var ht={};this.numAttributes=Zt.length;for(var cr=0;cr>16,we>>16],u_pixel_coord_lower:[ne&65535,we&65535]}}function uf(Y,D,J,q){var K=J.imageManager.getPattern(Y.from.toString()),de=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),we=ne.width,Ue=ne.height,ft=Math.pow(2,q.tileID.overscaledZ),Zt=q.tileSize*Math.pow(2,J.transform.tileZoom)/ft,hr=Zt*(q.tileID.canonical.x+q.tileID.wrap*ft),qt=Zt*q.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:K.tl,u_pattern_br_a:K.br,u_pattern_tl_b:de.tl,u_pattern_br_b:de.br,u_texsize:[we,Ue],u_mix:D.t,u_pattern_size_a:K.displaySize,u_pattern_size_b:de.displaySize,u_scale_a:D.fromScale,u_scale_b:D.toScale,u_tile_units_to_pixels:1/Ss(q,1,J.transform.tileZoom),u_pixel_coord_upper:[hr>>16,qt>>16],u_pixel_coord_lower:[hr&65535,qt&65535]}}var Xf=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},Wl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_height_factor:new i.Uniform1f(Y,D.u_height_factor),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},ah=function(Y,D,J,q){var K=D.style.light,de=K.properties.get("position"),ne=[de.x,de.y,de.z],we=i.create$1();K.properties.get("anchor")==="viewport"&&i.fromRotation(we,-D.transform.angle),i.transformMat3(ne,ne,we);var Ue=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Ue.r,Ue.g,Ue.b],u_vertical_gradient:+J,u_opacity:q}},Zu=function(Y,D,J,q,K,de,ne){return i.extend(ah(Y,D,J,q),Xu(de,D,ne),{u_height_factor:-Math.pow(2,K.overscaledZ)/ne.tileSize/8})},Oc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Tc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},Tl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world)}},vu=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},qc=function(Y){return{u_matrix:Y}},cf=function(Y,D,J,q){return i.extend(qc(Y),Xu(J,D,q))},fc=function(Y,D){return{u_matrix:Y,u_world:D}},Bc=function(Y,D,J,q,K){return i.extend(cf(Y,D,J,q),{u_world:K})},At=function(Y,D){return{u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(Y,D.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Xt=function(Y,D,J,q){var K=Y.transform,de,ne;if(q.paint.get("circle-pitch-alignment")==="map"){var we=Ss(J,1,K.zoom);de=!0,ne=[we,we]}else de=!1,ne=K.pixelsToGLUnits;return{u_camera_to_center_distance:K.cameraToCenterDistance,u_scale_with_map:+(q.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(D.posMatrix,J,q.paint.get("circle-translate"),q.paint.get("circle-translate-anchor")),u_pitch_with_map:+de,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},kr=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(Y,D.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_overscale_factor:new i.Uniform1f(Y,D.u_overscale_factor)}},Ar=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_inv_matrix:new i.UniformMatrix4f(Y,D.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(Y,D.u_viewport_size)}},Kr=function(Y,D,J){var q=Ss(J,1,D.zoom),K=Math.pow(2,D.zoom-J.tileID.overscaledZ),de=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:D.cameraToCenterDistance,u_pixels_to_tile_units:q,u_extrude_scale:[D.pixelsToGLUnits[0]/(q*K),D.pixelsToGLUnits[1]/(q*K)],u_overscale_factor:de}},Ei=function(Y,D,J){return{u_matrix:Y,u_inv_matrix:D,u_camera_to_center_distance:J.cameraToCenterDistance,u_viewport_size:[J.width,J.height]}},Wi=function(Y,D){return{u_color:new i.UniformColor(Y,D.u_color),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_overlay:new i.Uniform1i(Y,D.u_overlay),u_overlay_scale:new i.Uniform1f(Y,D.u_overlay_scale)}},hn=function(Y,D,J){return J===void 0&&(J=1),{u_matrix:Y,u_color:D,u_overlay:0,u_overlay_scale:J}},Tn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Bn=function(Y){return{u_matrix:Y}},Zi=function(Y,D){return{u_extrude_scale:new i.Uniform1f(Y,D.u_extrude_scale),u_intensity:new i.Uniform1f(Y,D.u_intensity),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},$i=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_color_ramp:new i.Uniform1i(Y,D.u_color_ramp),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},an=function(Y,D,J,q){return{u_matrix:Y,u_extrude_scale:Ss(D,1,J),u_intensity:q}},Di=function(Y,D,J,q){var K=i.create();i.ortho(K,0,Y.width,Y.height,0,0,1);var de=Y.context.gl;return{u_matrix:K,u_world:[de.drawingBufferWidth,de.drawingBufferHeight],u_image:J,u_color_ramp:q,u_opacity:D.paint.get("heatmap-opacity")}},$n=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_latrange:new i.Uniform2f(Y,D.u_latrange),u_light:new i.Uniform2f(Y,D.u_light),u_shadow:new i.UniformColor(Y,D.u_shadow),u_highlight:new i.UniformColor(Y,D.u_highlight),u_accent:new i.UniformColor(Y,D.u_accent)}},ka=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_dimension:new i.Uniform2f(Y,D.u_dimension),u_zoom:new i.Uniform1f(Y,D.u_zoom),u_unpack:new i.Uniform4f(Y,D.u_unpack)}},Ra=function(Y,D,J){var q=J.paint.get("hillshade-shadow-color"),K=J.paint.get("hillshade-highlight-color"),de=J.paint.get("hillshade-accent-color"),ne=J.paint.get("hillshade-illumination-direction")*(Math.PI/180);J.paint.get("hillshade-illumination-anchor")==="viewport"&&(ne-=Y.transform.angle);var we=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(D.tileID.toUnwrapped(),we),u_image:0,u_latrange:Na(Y,D.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:q,u_highlight:K,u_accent:de}},La=function(Y,D){var J=D.stride,q=i.create();return i.ortho(q,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(q,q,[0,-i.EXTENT,0]),{u_matrix:q,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:D.getUnpackVector()}};function Na(Y,D){var J=Math.pow(2,D.canonical.z),q=D.canonical.y;return[new i.MercatorCoordinate(0,q/J).toLngLat().lat,new i.MercatorCoordinate(0,(q+1)/J).toLngLat().lat]}var Yn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels)}},zn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_image:new i.Uniform1i(Y,D.u_image),u_image_height:new i.Uniform1f(Y,D.u_image_height)}},Ka=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_image:new i.Uniform1i(Y,D.u_image),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},bo=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(Y,D.u_patternscale_a),u_patternscale_b:new i.Uniform2f(Y,D.u_patternscale_b),u_sdfgamma:new i.Uniform1f(Y,D.u_sdfgamma),u_image:new i.Uniform1i(Y,D.u_image),u_tex_y_a:new i.Uniform1f(Y,D.u_tex_y_a),u_tex_y_b:new i.Uniform1f(Y,D.u_tex_y_b),u_mix:new i.Uniform1f(Y,D.u_mix)}},Xo=function(Y,D,J){var q=Y.transform;return{u_matrix:yl(Y,D,J),u_ratio:1/Ss(D,1,q.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/q.pixelsToGLUnits[0],1/q.pixelsToGLUnits[1]]}},Ms=function(Y,D,J,q){return i.extend(Xo(Y,D,J),{u_image:0,u_image_height:q})},os=function(Y,D,J,q){var K=Y.transform,de=Ho(D,K);return{u_matrix:yl(Y,D,J),u_texsize:D.imageAtlasTexture.size,u_ratio:1/Ss(D,1,K.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[de,q.fromScale,q.toScale],u_fade:q.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},Ts=function(Y,D,J,q,K){var de=Y.transform,ne=Y.lineAtlas,we=Ho(D,de),Ue=J.layout.get("line-cap")==="round",ft=ne.getDash(q.from,Ue),Zt=ne.getDash(q.to,Ue),hr=ft.width*K.fromScale,qt=Zt.width*K.toScale;return i.extend(Xo(Y,D,J),{u_patternscale_a:[we/hr,-ft.height/2],u_patternscale_b:[we/qt,-Zt.height/2],u_sdfgamma:ne.width/(Math.min(hr,qt)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:ft.y,u_tex_y_b:Zt.y,u_mix:K.t})};function Ho(Y,D){return 1/Ss(Y,1,D.tileZoom)}function yl(Y,D,J){return Y.translatePosMatrix(D.tileID.posMatrix,D,J.paint.get("line-translate"),J.paint.get("line-translate-anchor"))}var Xs=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_tl_parent:new i.Uniform2f(Y,D.u_tl_parent),u_scale_parent:new i.Uniform1f(Y,D.u_scale_parent),u_buffer_scale:new i.Uniform1f(Y,D.u_buffer_scale),u_fade_t:new i.Uniform1f(Y,D.u_fade_t),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image0:new i.Uniform1i(Y,D.u_image0),u_image1:new i.Uniform1i(Y,D.u_image1),u_brightness_low:new i.Uniform1f(Y,D.u_brightness_low),u_brightness_high:new i.Uniform1f(Y,D.u_brightness_high),u_saturation_factor:new i.Uniform1f(Y,D.u_saturation_factor),u_contrast_factor:new i.Uniform1f(Y,D.u_contrast_factor),u_spin_weights:new i.Uniform3f(Y,D.u_spin_weights)}},Ps=function(Y,D,J,q,K){return{u_matrix:Y,u_tl_parent:D,u_scale_parent:J,u_buffer_scale:1,u_fade_t:q.mix,u_opacity:q.opacity*K.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:K.paint.get("raster-brightness-min"),u_brightness_high:K.paint.get("raster-brightness-max"),u_saturation_factor:_s(K.paint.get("raster-saturation")),u_contrast_factor:no(K.paint.get("raster-contrast")),u_spin_weights:va(K.paint.get("raster-hue-rotate"))}};function va(Y){Y*=Math.PI/180;var D=Math.sin(Y),J=Math.cos(Y);return[(2*J+1)/3,(-Math.sqrt(3)*D-J+1)/3,(Math.sqrt(3)*D-J+1)/3]}function no(Y){return Y>0?1/(1-Y):1+Y}function _s(Y){return Y>0?1-1/(1.001-Y):-Y}var is=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture)}},$l=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},ku=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texsize_icon:new i.Uniform2f(Y,D.u_texsize_icon),u_texture:new i.Uniform1i(Y,D.u_texture),u_texture_icon:new i.Uniform1i(Y,D.u_texture_icon),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},Yu=function(Y,D,J,q,K,de,ne,we,Ue,ft){var Zt=K.transform;return{u_is_size_zoom_constant:+(Y==="constant"||Y==="source"),u_is_size_feature_constant:+(Y==="constant"||Y==="camera"),u_size_t:D?D.uSizeT:0,u_size:D?D.uSize:0,u_camera_to_center_distance:Zt.cameraToCenterDistance,u_pitch:Zt.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:Zt.width/Zt.height,u_fade_change:K.options.fadeDuration?K.symbolFadeChange:1,u_matrix:de,u_label_plane_matrix:ne,u_coord_matrix:we,u_is_text:+Ue,u_pitch_with_map:+q,u_texsize:ft,u_texture:0}},Nc=function(Y,D,J,q,K,de,ne,we,Ue,ft,Zt){var hr=K.transform;return i.extend(Yu(Y,D,J,q,K,de,ne,we,Ue,ft),{u_gamma_scale:q?Math.cos(hr._pitch)*hr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+Zt})},pu=function(Y,D,J,q,K,de,ne,we,Ue,ft){return i.extend(Nc(Y,D,J,q,K,de,ne,we,!0,Ue,!0),{u_texsize_icon:ft,u_texture_icon:1})},Uc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_color:new i.UniformColor(Y,D.u_color)}},xu=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image:new i.Uniform1i(Y,D.u_image),u_pattern_tl_a:new i.Uniform2f(Y,D.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(Y,D.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(Y,D.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(Y,D.u_pattern_br_b),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_mix:new i.Uniform1f(Y,D.u_mix),u_pattern_size_a:new i.Uniform2f(Y,D.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(Y,D.u_pattern_size_b),u_scale_a:new i.Uniform1f(Y,D.u_scale_a),u_scale_b:new i.Uniform1f(Y,D.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(Y,D.u_tile_units_to_pixels)}},Ac=function(Y,D,J){return{u_matrix:Y,u_opacity:D,u_color:J}},Ua=function(Y,D,J,q,K,de){return i.extend(uf(q,de,J,K),{u_matrix:Y,u_opacity:D})},oo={fillExtrusion:Xf,fillExtrusionPattern:Wl,fill:Oc,fillPattern:Tc,fillOutline:Tl,fillOutlinePattern:vu,circle:At,collisionBox:kr,collisionCircle:Ar,debug:Wi,clippingMask:Tn,heatmap:Zi,heatmapTexture:$i,hillshade:$n,hillshadePrepare:ka,line:Yn,lineGradient:zn,linePattern:Ka,lineSDF:bo,raster:Xs,symbolIcon:is,symbolSDF:$l,symbolTextAndIcon:ku,background:Uc,backgroundPattern:xu},Vc;function hc(Y,D,J,q,K,de,ne){for(var we=Y.context,Ue=we.gl,ft=Y.useProgram("collisionBox"),Zt=[],hr=0,qt=0,Ve=0;Ve0){var Rt=i.create(),mt=Ot;i.mul(Rt,kt.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(Rt,Rt,kt.placementViewportMatrix),Zt.push({circleArray:Bt,circleOffset:qt,transform:mt,invTransform:Rt}),hr+=Bt.length/4,qt=hr}It&&ft.draw(we,Ue.LINES,wn.disabled,kn.disabled,Y.colorModeForRenderPass(),Er.disabled,Kr(Ot,Y.transform,at),J.id,It.layoutVertexBuffer,It.indexBuffer,It.segments,null,Y.transform.zoom,null,null,It.collisionVertexBuffer)}}if(!(!ne||!Zt.length)){var Pt=Y.useProgram("collisionCircle"),ht=new i.StructArrayLayout2f1f2i16;ht.resize(hr*4),ht._trim();for(var cr=0,br=0,Nr=Zt;br=0&&(et[kt.associatedIconIndex]={shiftedAnchor:wi,angle:gn})}}if(Zt){Ve.clear();for(var Ci=Y.icon.placedSymbolArray,qi=0;qi0){var ne=i.browser.now(),we=(ne-Y.timeAdded)/de,Ue=D?(ne-D.timeAdded)/de:-1,ft=J.getSource(),Zt=K.coveringZoomLevel({tileSize:ft.tileSize,roundZoom:ft.roundZoom}),hr=!D||Math.abs(D.tileID.overscaledZ-Zt)>Math.abs(Y.tileID.overscaledZ-Zt),qt=hr&&Y.refreshedUponExpiration?1:i.clamp(hr?we:1-Ue,0,1);return Y.refreshedUponExpiration&&we>=1&&(Y.refreshedUponExpiration=!1),D?{opacity:1,mix:1-qt}:{opacity:qt,mix:0}}else return{opacity:1,mix:0}}function rr(Y,D,J){var q=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var de=Y.context,ne=de.gl,we=Y.transform,Ue=we.tileSize,ft=J.paint.get("background-pattern");if(!Y.isPatternMissing(ft)){var Zt=!ft&&q.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===Zt){var hr=kn.disabled,qt=Y.depthModeForSublayer(0,Zt==="opaque"?wn.ReadWrite:wn.ReadOnly),Ve=Y.colorModeForRenderPass(),et=Y.useProgram(ft?"backgroundPattern":"background"),at=we.coveringTiles({tileSize:Ue});ft&&(de.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var kt=J.getCrossfadeParameters(),Ot=0,It=at;Ot "+J.overscaledZ);var Ot=kt+" "+Ve+"kb";$a(Y,Ot),ne.draw(q,K.TRIANGLES,we,Ue,_t.alphaBlended,Er.disabled,hn(de,i.Color.transparent,at),Zt,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function $a(Y,D){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,q=Y.context.gl,K=Y.debugOverlayCanvas.getContext("2d");K.clearRect(0,0,J.width,J.height),K.shadowColor="white",K.shadowBlur=2,K.lineWidth=1.5,K.strokeStyle="white",K.textBaseline="top",K.font="bold 36px Open Sans, sans-serif",K.fillText(D,5,5),K.strokeText(D,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(q.LINEAR,q.CLAMP_TO_EDGE)}function ko(Y,D,J){var q=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var de=K.prerender;de&&(Y.setCustomLayerDefaults(),q.setColorMode(Y.colorModeForRenderPass()),de.call(K,q.gl,Y.transform.customLayerMatrix()),q.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),q.setColorMode(Y.colorModeForRenderPass()),q.setStencilMode(kn.disabled);var ne=K.renderingMode==="3d"?new wn(Y.context.gl.LEQUAL,wn.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,wn.ReadOnly);q.setDepthMode(ne),K.render(q.gl,Y.transform.customLayerMatrix()),q.setDirty(),Y.setBaseState(),q.bindFramebuffer.set(null)}}var Qa={symbol:w,circle:ot,heatmap:Tt,line:Pr,fill:ve,"fill-extrusion":Re,hillshade:tt,raster:Dt,background:rr,debug:Ta,custom:ko},mo=function(D,J){this.context=new Zr(D),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=ri.maxUnderzooming+ri.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Uf,this.gpuTimers={}};mo.prototype.resize=function(D,J){if(this.width=D*i.browser.devicePixelRatio,this.height=J*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var q=0,K=this.style._order;q256&&this.clearStencil(),q.setColorMode(_t.disabled),q.setDepthMode(wn.disabled);var de=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ne=0,we=J;ne256&&this.clearStencil();var D=this.nextStencilID++,J=this.context.gl;return new kn({func:J.NOTEQUAL,mask:255},D,255,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilModeForClipping=function(D){var J=this.context.gl;return new kn({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[D.key],0,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilConfigForOverlap=function(D){var J,q=this.context.gl,K=D.sort(function(ft,Zt){return Zt.overscaledZ-ft.overscaledZ}),de=K[K.length-1].overscaledZ,ne=K[0].overscaledZ-de+1;if(ne>1){this.currentStencilSource=void 0,this.nextStencilID+ne>256&&this.clearStencil();for(var we={},Ue=0;Ue=0;this.currentLayer--){var Rt=this.style._layers[K[this.currentLayer]],mt=de[Rt.source],Pt=Ue[Rt.source];this._renderTileClippingMasks(Rt,Pt),this.renderLayer(this,mt,Rt,Pt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},mo.prototype.isPatternMissing=function(D){if(!D)return!1;if(!D.from||!D.to)return!0;var J=this.imageManager.getPattern(D.from.toString()),q=this.imageManager.getPattern(D.to.toString());return!J||!q},mo.prototype.useProgram=function(D,J){this.cache=this.cache||{};var q=""+D+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[q]||(this.cache[q]=new If(this.context,D,bf[D],J,oo[D],this._showOverdrawInspector)),this.cache[q]},mo.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},mo.prototype.setBaseState=function(){var D=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(D.FUNC_ADD)},mo.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var D=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,D.RGBA)}},mo.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Bo=function(D,J){this.points=D,this.planes=J};Bo.fromInvProjectionMatrix=function(D,J,q){var K=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],de=Math.pow(2,q),ne=K.map(function(ft){return i.transformMat4([],ft,D)}).map(function(ft){return i.scale$1([],ft,1/ft[3]/J*de)}),we=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ue=we.map(function(ft){var Zt=i.sub([],ne[ft[0]],ne[ft[1]]),hr=i.sub([],ne[ft[2]],ne[ft[1]]),qt=i.normalize([],i.cross([],Zt,hr)),Ve=-i.dot(qt,ne[ft[1]]);return qt.concat(Ve)});return new Bo(ne,Ue)};var Is=function(D,J){this.min=D,this.max=J,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};Is.prototype.quadrant=function(D){for(var J=[D%2===0,D<2],q=i.clone$2(this.min),K=i.clone$2(this.max),de=0;de=0;if(ne===0)return 0;ne!==J.length&&(q=!1)}if(q)return 2;for(var Ue=0;Ue<3;Ue++){for(var ft=Number.MAX_VALUE,Zt=-Number.MAX_VALUE,hr=0;hrthis.max[Ue]-this.min[Ue])return 0}return 1};var As=function(D,J,q,K){if(D===void 0&&(D=0),J===void 0&&(J=0),q===void 0&&(q=0),K===void 0&&(K=0),isNaN(D)||D<0||isNaN(J)||J<0||isNaN(q)||q<0||isNaN(K)||K<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=D,this.bottom=J,this.left=q,this.right=K};As.prototype.interpolate=function(D,J,q){return J.top!=null&&D.top!=null&&(this.top=i.number(D.top,J.top,q)),J.bottom!=null&&D.bottom!=null&&(this.bottom=i.number(D.bottom,J.bottom,q)),J.left!=null&&D.left!=null&&(this.left=i.number(D.left,J.left,q)),J.right!=null&&D.right!=null&&(this.right=i.number(D.right,J.right,q)),this},As.prototype.getCenter=function(D,J){var q=i.clamp((this.left+D-this.right)/2,0,D),K=i.clamp((this.top+J-this.bottom)/2,0,J);return new i.Point(q,K)},As.prototype.equals=function(D){return this.top===D.top&&this.bottom===D.bottom&&this.left===D.left&&this.right===D.right},As.prototype.clone=function(){return new As(this.top,this.bottom,this.left,this.right)},As.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wo=function(D,J,q,K,de){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=de===void 0?!0:de,this._minZoom=D||0,this._maxZoom=J||22,this._minPitch=q==null?0:q,this._maxPitch=K==null?60:K,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new As,this._posMatrixCache={},this._alignedPosMatrixCache={}},To={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wo.prototype.clone=function(){var D=new wo(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return D.tileSize=this.tileSize,D.latRange=this.latRange,D.width=this.width,D.height=this.height,D._center=this._center,D.zoom=this.zoom,D.angle=this.angle,D._fov=this._fov,D._pitch=this._pitch,D._unmodified=this._unmodified,D._edgeInsets=this._edgeInsets.clone(),D._calcMatrices(),D},To.minZoom.get=function(){return this._minZoom},To.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},To.maxZoom.get=function(){return this._maxZoom},To.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},To.minPitch.get=function(){return this._minPitch},To.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},To.maxPitch.get=function(){return this._maxPitch},To.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},To.renderWorldCopies.get=function(){return this._renderWorldCopies},To.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},To.worldSize.get=function(){return this.tileSize*this.scale},To.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},To.size.get=function(){return new i.Point(this.width,this.height)},To.bearing.get=function(){return-this.angle/Math.PI*180},To.bearing.set=function(Y){var D=-i.wrap(Y,-180,180)*Math.PI/180;this.angle!==D&&(this._unmodified=!1,this.angle=D,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},To.pitch.get=function(){return this._pitch/Math.PI*180},To.pitch.set=function(Y){var D=i.clamp(Y,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==D&&(this._unmodified=!1,this._pitch=D,this._calcMatrices())},To.fov.get=function(){return this._fov/Math.PI*180},To.fov.set=function(Y){Y=Math.max(.01,Math.min(60,Y)),this._fov!==Y&&(this._unmodified=!1,this._fov=Y/180*Math.PI,this._calcMatrices())},To.zoom.get=function(){return this._zoom},To.zoom.set=function(Y){var D=Math.min(Math.max(Y,this.minZoom),this.maxZoom);this._zoom!==D&&(this._unmodified=!1,this._zoom=D,this.scale=this.zoomScale(D),this.tileZoom=Math.floor(D),this.zoomFraction=D-this.tileZoom,this._constrain(),this._calcMatrices())},To.center.get=function(){return this._center},To.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},To.padding.get=function(){return this._edgeInsets.toJSON()},To.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},To.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wo.prototype.isPaddingEqual=function(D){return this._edgeInsets.equals(D)},wo.prototype.interpolatePadding=function(D,J,q){this._unmodified=!1,this._edgeInsets.interpolate(D,J,q),this._constrain(),this._calcMatrices()},wo.prototype.coveringZoomLevel=function(D){var J=(D.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/D.tileSize));return Math.max(0,J)},wo.prototype.getVisibleUnwrappedCoordinates=function(D){var J=[new i.UnwrappedTileID(0,D)];if(this._renderWorldCopies)for(var q=this.pointCoordinate(new i.Point(0,0)),K=this.pointCoordinate(new i.Point(this.width,0)),de=this.pointCoordinate(new i.Point(this.width,this.height)),ne=this.pointCoordinate(new i.Point(0,this.height)),we=Math.floor(Math.min(q.x,K.x,de.x,ne.x)),Ue=Math.floor(Math.max(q.x,K.x,de.x,ne.x)),ft=1,Zt=we-ft;Zt<=Ue+ft;Zt++)Zt!==0&&J.push(new i.UnwrappedTileID(Zt,D));return J},wo.prototype.coveringTiles=function(D){var J=this.coveringZoomLevel(D),q=J;if(D.minzoom!==void 0&&JD.maxzoom&&(J=D.maxzoom);var K=i.MercatorCoordinate.fromLngLat(this.center),de=Math.pow(2,J),ne=[de*K.x,de*K.y,0],we=Bo.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Ue=D.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ue=J);var ft=3,Zt=function(hi){return{aabb:new Is([hi*de,0,0],[(hi+1)*de,de,0]),zoom:0,x:0,y:0,wrap:hi,fullyVisible:!1}},hr=[],qt=[],Ve=J,et=D.reparseOverscaled?q:J;if(this._renderWorldCopies)for(var at=1;at<=3;at++)hr.push(Zt(-at)),hr.push(Zt(at));for(hr.push(Zt(0));hr.length>0;){var kt=hr.pop(),Ot=kt.x,It=kt.y,Bt=kt.fullyVisible;if(!Bt){var Rt=kt.aabb.intersects(we);if(Rt===0)continue;Bt=Rt===2}var mt=kt.aabb.distanceX(ne),Pt=kt.aabb.distanceY(ne),ht=Math.max(Math.abs(mt),Math.abs(Pt)),cr=ft+(1<cr&&kt.zoom>=Ue){qt.push({tileID:new i.OverscaledTileID(kt.zoom===Ve?et:kt.zoom,kt.wrap,kt.zoom,Ot,It),distanceSq:i.sqrLen([ne[0]-.5-Ot,ne[1]-.5-It])});continue}for(var br=0;br<4;br++){var Nr=(Ot<<1)+br%2,Ri=(It<<1)+(br>>1);hr.push({aabb:kt.aabb.quadrant(br),zoom:kt.zoom+1,x:Nr,y:Ri,wrap:kt.wrap,fullyVisible:Bt})}}return qt.sort(function(hi,wi){return hi.distanceSq-wi.distanceSq}).map(function(hi){return hi.tileID})},wo.prototype.resize=function(D,J){this.width=D,this.height=J,this.pixelsToGLUnits=[2/D,-2/J],this._constrain(),this._calcMatrices()},To.unmodified.get=function(){return this._unmodified},wo.prototype.zoomScale=function(D){return Math.pow(2,D)},wo.prototype.scaleZoom=function(D){return Math.log(D)/Math.LN2},wo.prototype.project=function(D){var J=i.clamp(D.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(D.lng)*this.worldSize,i.mercatorYfromLat(J)*this.worldSize)},wo.prototype.unproject=function(D){return new i.MercatorCoordinate(D.x/this.worldSize,D.y/this.worldSize).toLngLat()},To.point.get=function(){return this.project(this.center)},wo.prototype.setLocationAtPoint=function(D,J){var q=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),de=this.locationCoordinate(D),ne=new i.MercatorCoordinate(de.x-(q.x-K.x),de.y-(q.y-K.y));this.center=this.coordinateLocation(ne),this._renderWorldCopies&&(this.center=this.center.wrap())},wo.prototype.locationPoint=function(D){return this.coordinatePoint(this.locationCoordinate(D))},wo.prototype.pointLocation=function(D){return this.coordinateLocation(this.pointCoordinate(D))},wo.prototype.locationCoordinate=function(D){return i.MercatorCoordinate.fromLngLat(D)},wo.prototype.coordinateLocation=function(D){return D.toLngLat()},wo.prototype.pointCoordinate=function(D){var J=0,q=[D.x,D.y,0,1],K=[D.x,D.y,1,1];i.transformMat4(q,q,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var de=q[3],ne=K[3],we=q[0]/de,Ue=K[0]/ne,ft=q[1]/de,Zt=K[1]/ne,hr=q[2]/de,qt=K[2]/ne,Ve=hr===qt?0:(J-hr)/(qt-hr);return new i.MercatorCoordinate(i.number(we,Ue,Ve)/this.worldSize,i.number(ft,Zt,Ve)/this.worldSize)},wo.prototype.coordinatePoint=function(D){var J=[D.x*this.worldSize,D.y*this.worldSize,0,1];return i.transformMat4(J,J,this.pixelMatrix),new i.Point(J[0]/J[3],J[1]/J[3])},wo.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},wo.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},wo.prototype.setMaxBounds=function(D){D?(this.lngRange=[D.getWest(),D.getEast()],this.latRange=[D.getSouth(),D.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wo.prototype.calculatePosMatrix=function(D,J){J===void 0&&(J=!1);var q=D.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[q])return K[q];var de=D.canonical,ne=this.worldSize/this.zoomScale(de.z),we=de.x+Math.pow(2,de.z)*D.wrap,Ue=i.identity(new Float64Array(16));return i.translate(Ue,Ue,[we*ne,de.y*ne,0]),i.scale(Ue,Ue,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Ue,J?this.alignedProjMatrix:this.projMatrix,Ue),K[q]=new Float32Array(Ue),K[q]},wo.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wo.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var D=-90,J=90,q=-180,K=180,de,ne,we,Ue,ft=this.size,Zt=this._unmodified;if(this.latRange){var hr=this.latRange;D=i.mercatorYfromLat(hr[1])*this.worldSize,J=i.mercatorYfromLat(hr[0])*this.worldSize,de=J-DJ&&(Ue=J-kt)}if(this.lngRange){var Ot=Ve.x,It=ft.x/2;Ot-ItK&&(we=K-It)}(we!==void 0||Ue!==void 0)&&(this.center=this.unproject(new i.Point(we!==void 0?we:Ve.x,Ue!==void 0?Ue:Ve.y))),this._unmodified=Zt,this._constraining=!1}},wo.prototype._calcMatrices=function(){if(this.height){var D=this._fov/2,J=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(D)*this.height;var q=Math.PI/2+this._pitch,K=this._fov*(.5+J.y/this.height),de=Math.sin(K)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-q-K,.01,Math.PI-.01)),ne=this.point,we=ne.x,Ue=ne.y,ft=Math.cos(Math.PI/2-this._pitch)*de+this.cameraToCenterDistance,Zt=ft*1.01,hr=this.height/50,qt=new Float64Array(16);i.perspective(qt,this._fov,this.width/this.height,hr,Zt),qt[8]=-J.x*2/this.width,qt[9]=J.y*2/this.height,i.scale(qt,qt,[1,-1,1]),i.translate(qt,qt,[0,0,-this.cameraToCenterDistance]),i.rotateX(qt,qt,this._pitch),i.rotateZ(qt,qt,this.angle),i.translate(qt,qt,[-we,-Ue,0]),this.mercatorMatrix=i.scale([],qt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(qt,qt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=qt,this.invProjMatrix=i.invert([],this.projMatrix);var Ve=this.width%2/2,et=this.height%2/2,at=Math.cos(this.angle),kt=Math.sin(this.angle),Ot=we-Math.round(we)+at*Ve+kt*et,It=Ue-Math.round(Ue)+at*et+kt*Ve,Bt=new Float64Array(qt);if(i.translate(Bt,Bt,[Ot>.5?Ot-1:Ot,It>.5?It-1:It,0]),this.alignedProjMatrix=Bt,qt=i.create(),i.scale(qt,qt,[this.width/2,-this.height/2,1]),i.translate(qt,qt,[1,-1,0]),this.labelPlaneMatrix=qt,qt=i.create(),i.scale(qt,qt,[1,-1,1]),i.translate(qt,qt,[-1,-1,0]),i.scale(qt,qt,[2/this.width,2/this.height,1]),this.glCoordMatrix=qt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),qt=i.invert(new Float64Array(16),this.pixelMatrix),!qt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=qt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wo.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var D=this.pointCoordinate(new i.Point(0,0)),J=[D.x*this.worldSize,D.y*this.worldSize,0,1],q=i.transformMat4(J,J,this.pixelMatrix);return q[3]/this.cameraToCenterDistance},wo.prototype.getCameraPoint=function(){var D=this._pitch,J=Math.tan(D)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,J))},wo.prototype.getCameraQueryGeometry=function(D){var J=this.getCameraPoint();if(D.length===1)return[D[0],J];for(var q=J.x,K=J.y,de=J.x,ne=J.y,we=0,Ue=D;we=3&&!D.some(function(q){return isNaN(q)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(D[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+D[2],+D[1]],zoom:+D[0],bearing:J,pitch:+(D[4]||0)}),!0}return!1},Ul.prototype._updateHashUnthrottled=function(){var D=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,D)}catch(J){}};var Lu={linearity:.3,easing:i.bezier(0,0,.3,1)},au=i.extend({deceleration:2500,maxSpeed:1400},Lu),$s=i.extend({deceleration:20,maxSpeed:1400},Lu),Ql=i.extend({deceleration:1e3,maxSpeed:360},Lu),dc=i.extend({deceleration:1e3,maxSpeed:90},Lu),Al=function(D){this._map=D,this.clear()};Al.prototype.clear=function(){this._inertiaBuffer=[]},Al.prototype.record=function(D){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:D})},Al.prototype._drainInertiaBuffer=function(){for(var D=this._inertiaBuffer,J=i.browser.now(),q=160;D.length>0&&J-D[0].time>q;)D.shift()},Al.prototype._onMoveEnd=function(D){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},q=0,K=this._inertiaBuffer;q=this._clickTolerance||this._map.fire(new se(D.type,this._map,D))},He.prototype.dblclick=function(D){return this._firePreventable(new se(D.type,this._map,D))},He.prototype.mouseover=function(D){this._map.fire(new se(D.type,this._map,D))},He.prototype.mouseout=function(D){this._map.fire(new se(D.type,this._map,D))},He.prototype.touchstart=function(D){return this._firePreventable(new Te(D.type,this._map,D))},He.prototype.touchmove=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype.touchend=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype.touchcancel=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype._firePreventable=function(D){if(this._map.fire(D),D.defaultPrevented)return{}},He.prototype.isEnabled=function(){return!0},He.prototype.isActive=function(){return!1},He.prototype.enable=function(){},He.prototype.disable=function(){};var Ye=function(D){this._map=D};Ye.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Ye.prototype.mousemove=function(D){this._map.fire(new se(D.type,this._map,D))},Ye.prototype.mousedown=function(){this._delayContextMenu=!0},Ye.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new se("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Ye.prototype.contextmenu=function(D){this._delayContextMenu?this._contextMenuEvent=D:this._map.fire(new se(D.type,this._map,D)),this._map.listens("contextmenu")&&D.preventDefault()},Ye.prototype.isEnabled=function(){return!0},Ye.prototype.isActive=function(){return!1},Ye.prototype.enable=function(){},Ye.prototype.disable=function(){};var Ct=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._container=D.getContainer(),this._clickTolerance=J.clickTolerance||1};Ct.prototype.isEnabled=function(){return!!this._enabled},Ct.prototype.isActive=function(){return!!this._active},Ct.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Ct.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Ct.prototype.mousedown=function(D,J){this.isEnabled()&&D.shiftKey&&D.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},Ct.prototype.mousemoveWindow=function(D,J){if(this._active){var q=J;if(!(this._lastPos.equals(q)||!this._box&&q.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=D.timeStamp),q.length===this.numTouches&&(this.centroid=jt(J),this.touches=nt(q,J)))},qr.prototype.touchmove=function(D,J,q){if(!(this.aborted||!this.centroid)){var K=nt(q,J);for(var de in this.touches){var ne=this.touches[de],we=K[de];(!we||we.dist(ne)>Gr)&&(this.aborted=!0)}}},qr.prototype.touchend=function(D,J,q){if((!this.centroid||D.timeStamp-this.startTime>yr)&&(this.aborted=!0),q.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var _i=function(D){this.singleTap=new qr(D),this.numTaps=D.numTaps,this.reset()};_i.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},_i.prototype.touchstart=function(D,J,q){this.singleTap.touchstart(D,J,q)},_i.prototype.touchmove=function(D,J,q){this.singleTap.touchmove(D,J,q)},_i.prototype.touchend=function(D,J,q){var K=this.singleTap.touchend(D,J,q);if(K){var de=D.timeStamp-this.lastTime0&&(this._active=!0);var K=nt(q,J),de=new i.Point(0,0),ne=new i.Point(0,0),we=0;for(var Ue in K){var ft=K[Ue],Zt=this._touches[Ue];Zt&&(de._add(ft),ne._add(ft.sub(Zt)),we++,K[Ue]=ft)}if(this._touches=K,!(weMath.abs(Y.x)}var Gn=100,Ha=function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.reset=function(){Y.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},D.prototype._start=function(q){this._lastPoints=q,Zs(q[0].sub(q[1]))&&(this._valid=!1)},D.prototype._move=function(q,K,de){var ne=q[0].sub(this._lastPoints[0]),we=q[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,we,de.timeStamp),!!this._valid){this._lastPoints=q,this._active=!0;var Ue=(ne.y+we.y)/2,ft=-.5;return{pitchDelta:Ue*ft}}},D.prototype.gestureBeginsVertically=function(q,K,de){if(this._valid!==void 0)return this._valid;var ne=2,we=q.mag()>=ne,Ue=K.mag()>=ne;if(!(!we&&!Ue)){if(!we||!Ue)return this._firstMove===void 0&&(this._firstMove=de),de-this._firstMove0==K.y>0;return Zs(q)&&Zs(K)&&ft}},D}(ia),Fo={panStep:100,bearingStep:15,pitchStep:10},Uo=function(){var D=Fo;this._panStep=D.panStep,this._bearingStep=D.bearingStep,this._pitchStep=D.pitchStep,this._rotationDisabled=!1};Uo.prototype.reset=function(){this._active=!1},Uo.prototype.keydown=function(D){var J=this;if(!(D.altKey||D.ctrlKey||D.metaKey)){var q=0,K=0,de=0,ne=0,we=0;switch(D.keyCode){case 61:case 107:case 171:case 187:q=1;break;case 189:case 109:case 173:q=-1;break;case 37:D.shiftKey?K=-1:(D.preventDefault(),ne=-1);break;case 39:D.shiftKey?K=1:(D.preventDefault(),ne=1);break;case 38:D.shiftKey?de=1:(D.preventDefault(),we=-1);break;case 40:D.shiftKey?de=-1:(D.preventDefault(),we=1);break;default:return}return this._rotationDisabled&&(K=0,de=0),{cameraAnimation:function(Ue){var ft=Ue.getZoom();Ue.easeTo({duration:300,easeId:"keyboardHandler",easing:Qs,zoom:q?Math.round(ft)+q*(D.shiftKey?2:1):ft,bearing:Ue.getBearing()+K*J._bearingStep,pitch:Ue.getPitch()+de*J._pitchStep,offset:[-ne*J._panStep,-we*J._panStep],center:Ue.getCenter()},{originalEvent:D})}}}},Uo.prototype.enable=function(){this._enabled=!0},Uo.prototype.disable=function(){this._enabled=!1,this.reset()},Uo.prototype.isEnabled=function(){return this._enabled},Uo.prototype.isActive=function(){return this._active},Uo.prototype.disableRotation=function(){this._rotationDisabled=!0},Uo.prototype.enableRotation=function(){this._rotationDisabled=!1};function Qs(Y){return Y*(2-Y)}var Ml=4.000244140625,bu=1/100,vl=1/450,Sc=2,Ee=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=bu,this._wheelZoomRate=vl,i.bindAll(["_onTimeout"],this)};Ee.prototype.setZoomRate=function(D){this._defaultZoomRate=D},Ee.prototype.setWheelZoomRate=function(D){this._wheelZoomRate=D},Ee.prototype.isEnabled=function(){return!!this._enabled},Ee.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Ee.prototype.isZooming=function(){return!!this._zooming},Ee.prototype.enable=function(D){this.isEnabled()||(this._enabled=!0,this._aroundCenter=D&&D.around==="center")},Ee.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Ee.prototype.wheel=function(D){if(this.isEnabled()){var J=D.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?D.deltaY*40:D.deltaY,q=i.browser.now(),K=q-(this._lastWheelEventTime||0);this._lastWheelEventTime=q,J!==0&&J%Ml===0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":K>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,D)):this._type||(this._type=Math.abs(K*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),D.shiftKey&&J&&(J=J/4),this._type&&(this._lastWheelEvent=D,this._delta-=J,this._active||this._start(D)),D.preventDefault()}},Ee.prototype._onTimeout=function(D){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(D)},Ee.prototype._start=function(D){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var J=o.mousePos(this._el,D);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(J)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Ee.prototype.renderFrame=function(){var D=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var J=this._map.transform;if(this._delta!==0){var q=this._type==="wheel"&&Math.abs(this._delta)>Ml?this._wheelZoomRate:this._defaultZoomRate,K=Sc/(1+Math.exp(-Math.abs(this._delta*q)));this._delta<0&&K!==0&&(K=1/K);var de=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(de*K))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ne=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,we=this._startZoom,Ue=this._easing,ft=!1,Zt;if(this._type==="wheel"&&we&&Ue){var hr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),qt=Ue(hr);Zt=i.number(we,ne,qt),hr<1?this._frameId||(this._frameId=!0):ft=!0}else Zt=ne,ft=!0;return this._active=!0,ft&&(this._active=!1,this._finishTimeout=setTimeout(function(){D._zooming=!1,D._handler._triggerRenderFrame(),delete D._targetZoom,delete D._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!ft,zoomDelta:Zt-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Ee.prototype._smoothOutEasing=function(D){var J=i.ease;if(this._prevEase){var q=this._prevEase,K=(i.browser.now()-q.start)/q.duration,de=q.easing(K+.01)-q.easing(K),ne=.27/Math.sqrt(de*de+1e-4)*.01,we=Math.sqrt(.27*.27-ne*ne);J=i.bezier(ne,we,.25,1)}return this._prevEase={start:i.browser.now(),duration:D,easing:J},J},Ee.prototype.reset=function(){this._active=!1};var xt=function(D,J){this._clickZoom=D,this._tapZoom=J};xt.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},xt.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},xt.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},xt.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var zt=function(){this.reset()};zt.prototype.reset=function(){this._active=!1},zt.prototype.dblclick=function(D,J){return D.preventDefault(),{cameraAnimation:function(q){q.easeTo({duration:300,zoom:q.getZoom()+(D.shiftKey?-1:1),around:q.unproject(J)},{originalEvent:D})}}},zt.prototype.enable=function(){this._enabled=!0},zt.prototype.disable=function(){this._enabled=!1,this.reset()},zt.prototype.isEnabled=function(){return this._enabled},zt.prototype.isActive=function(){return this._active};var Ir=function(){this._tap=new _i({numTouches:1,numTaps:1}),this.reset()};Ir.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Ir.prototype.touchstart=function(D,J,q){this._swipePoint||(this._tapTime&&D.timeStamp-this._tapTime>gr&&this.reset(),this._tapTime?q.length>0&&(this._swipePoint=J[0],this._swipeTouch=q[0].identifier):this._tap.touchstart(D,J,q))},Ir.prototype.touchmove=function(D,J,q){if(!this._tapTime)this._tap.touchmove(D,J,q);else if(this._swipePoint){if(q[0].identifier!==this._swipeTouch)return;var K=J[0],de=K.y-this._swipePoint.y;return this._swipePoint=K,D.preventDefault(),this._active=!0,{zoomDelta:de/128}}},Ir.prototype.touchend=function(D,J,q){if(this._tapTime)this._swipePoint&&q.length===0&&this.reset();else{var K=this._tap.touchend(D,J,q);K&&(this._tapTime=D.timeStamp)}},Ir.prototype.touchcancel=function(){this.reset()},Ir.prototype.enable=function(){this._enabled=!0},Ir.prototype.disable=function(){this._enabled=!1,this.reset()},Ir.prototype.isEnabled=function(){return this._enabled},Ir.prototype.isActive=function(){return this._active};var Hr=function(D,J,q){this._el=D,this._mousePan=J,this._touchPan=q};Hr.prototype.enable=function(D){this._inertiaOptions=D||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Hr.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Hr.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Hr.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Br=function(D,J,q){this._pitchWithRotate=D.pitchWithRotate,this._mouseRotate=J,this._mousePitch=q};Br.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Br.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Br.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Br.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Vr=function(D,J,q,K){this._el=D,this._touchZoom=J,this._touchRotate=q,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};Vr.prototype.enable=function(D){this._touchZoom.enable(D),this._rotationDisabled||this._touchRotate.enable(D),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Vr.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Vr.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Vr.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Vr.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Vr.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var mi=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},Ni=function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D}(i.Event);function Oi(Y){return Y.panDelta&&Y.panDelta.mag()||Y.zoomDelta||Y.bearingDelta||Y.pitchDelta}var Mi=function(D,J){this._map=D,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Al(D),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),i.bindAll(["handleEvent","handleWindowEvent"],this);var q=this._el;this._listeners=[[q,"touchstart",{passive:!0}],[q,"touchmove",{passive:!1}],[q,"touchend",void 0],[q,"touchcancel",void 0],[q,"mousedown",void 0],[q,"mousemove",void 0],[q,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[q,"mouseover",void 0],[q,"mouseout",void 0],[q,"dblclick",void 0],[q,"click",void 0],[q,"keydown",{capture:!1}],[q,"keyup",void 0],[q,"wheel",{passive:!1}],[q,"contextmenu",void 0],[i.window,"blur",void 0]];for(var K=0,de=this._listeners;Kwe?Math.min(2,mt):Math.max(.5,mt),hi=Math.pow(Ri,1-br),wi=ne.unproject(Bt.add(Rt.mult(br*hi)).mult(Nr));ne.setLocationAtPoint(ne.renderWorldCopies?wi.wrap():wi,kt)}de._fireMoveEvents(K)},function(br){de._afterEase(K,br)},q),this},D.prototype._prepareEase=function(q,K,de){de===void 0&&(de={}),this._moving=!0,!K&&!de.moving&&this.fire(new i.Event("movestart",q)),this._zooming&&!de.zooming&&this.fire(new i.Event("zoomstart",q)),this._rotating&&!de.rotating&&this.fire(new i.Event("rotatestart",q)),this._pitching&&!de.pitching&&this.fire(new i.Event("pitchstart",q))},D.prototype._fireMoveEvents=function(q){this.fire(new i.Event("move",q)),this._zooming&&this.fire(new i.Event("zoom",q)),this._rotating&&this.fire(new i.Event("rotate",q)),this._pitching&&this.fire(new i.Event("pitch",q))},D.prototype._afterEase=function(q,K){if(!(this._easeId&&K&&this._easeId===K)){delete this._easeId;var de=this._zooming,ne=this._rotating,we=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,de&&this.fire(new i.Event("zoomend",q)),ne&&this.fire(new i.Event("rotateend",q)),we&&this.fire(new i.Event("pitchend",q)),this.fire(new i.Event("moveend",q))}},D.prototype.flyTo=function(q,K){var de=this;if(!q.essential&&i.browser.prefersReducedMotion){var ne=i.pick(q,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ne,K)}this.stop(),q=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},q);var we=this.transform,Ue=this.getZoom(),ft=this.getBearing(),Zt=this.getPitch(),hr=this.getPadding(),qt="zoom"in q?i.clamp(+q.zoom,we.minZoom,we.maxZoom):Ue,Ve="bearing"in q?this._normalizeBearing(q.bearing,ft):ft,et="pitch"in q?+q.pitch:Zt,at="padding"in q?q.padding:we.padding,kt=we.zoomScale(qt-Ue),Ot=i.Point.convert(q.offset),It=we.centerPoint.add(Ot),Bt=we.pointLocation(It),Rt=i.LngLat.convert(q.center||Bt);this._normalizeCenter(Rt);var mt=we.project(Bt),Pt=we.project(Rt).sub(mt),ht=q.curve,cr=Math.max(we.width,we.height),br=cr/kt,Nr=Pt.mag();if("minZoom"in q){var Ri=i.clamp(Math.min(q.minZoom,Ue,qt),we.minZoom,we.maxZoom),hi=cr/we.zoomScale(Ri-Ue);ht=Math.sqrt(hi/Nr*2)}var wi=ht*ht;function gn(so){var Zo=(br*br-cr*cr+(so?-1:1)*wi*wi*Nr*Nr)/(2*(so?br:cr)*wi*Nr);return Math.log(Math.sqrt(Zo*Zo+1)-Zo)}function tn(so){return(Math.exp(so)-Math.exp(-so))/2}function Ci(so){return(Math.exp(so)+Math.exp(-so))/2}function qi(so){return tn(so)/Ci(so)}var Vi=gn(0),on=function(so){return Ci(Vi)/Ci(Vi+ht*so)},On=function(so){return cr*((Ci(Vi)*qi(Vi+ht*so)-tn(Vi))/wi)/Nr},Ja=(gn(1)-Vi)/ht;if(Math.abs(Nr)<1e-6||!isFinite(Ja)){if(Math.abs(cr-br)<1e-6)return this.easeTo(q,K);var co=brq.maxDuration&&(q.duration=0),this._zooming=!0,this._rotating=ft!==Ve,this._pitching=et!==Zt,this._padding=!we.isPaddingEqual(at),this._prepareEase(K,!1),this._ease(function(so){var Zo=so*Ja,ys=1/on(Zo);we.zoom=so===1?qt:Ue+we.scaleZoom(ys),de._rotating&&(we.bearing=i.number(ft,Ve,so)),de._pitching&&(we.pitch=i.number(Zt,et,so)),de._padding&&(we.interpolatePadding(hr,at,so),It=we.centerPoint.add(Ot));var ou=so===1?Rt:we.unproject(mt.add(Pt.mult(On(Zo))).mult(ys));we.setLocationAtPoint(we.renderWorldCopies?ou.wrap():ou,It),de._fireMoveEvents(K)},function(){return de._afterEase(K)},q),this},D.prototype.isEasing=function(){return!!this._easeFrameId},D.prototype.stop=function(){return this._stop()},D.prototype._stop=function(q,K){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var de=this._onEaseEnd;delete this._onEaseEnd,de.call(this,K)}if(!q){var ne=this.handlers;ne&&ne.stop(!1)}return this},D.prototype._ease=function(q,K,de){de.animate===!1||de.duration===0?(q(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=de,this._onEaseFrame=q,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},D.prototype._renderFrameCallback=function(){var q=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(q)),q<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},D.prototype._normalizeBearing=function(q,K){q=i.wrap(q,-180,180);var de=Math.abs(q-K);return Math.abs(q-360-K)180?-360:de<-180?360:0}},D}(i.Evented),Qi=function(D){D===void 0&&(D={}),this.options=D,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Qi.prototype.getDefaultPosition=function(){return"bottom-right"},Qi.prototype.onAdd=function(D){var J=this.options&&this.options.compact;return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),J&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),J===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Qi.prototype.onRemove=function(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Qi.prototype._setElementTitle=function(D,J){var q=this._map._getUIString("AttributionControl."+J);D.title=q,D.setAttribute("aria-label",q)},Qi.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Qi.prototype._updateEditLink=function(){var D=this._editLink;D||(D=this._editLink=this._container.querySelector(".mapbox-improve-map"));var J=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(D){var q=J.reduce(function(K,de,ne){return de.value&&(K+=de.key+"="+de.value+(ne=0)return!1;return!0});var we=D.join(" | ");we!==this._attribHTML&&(this._attribHTML=we,D.length?(this._innerContainer.innerHTML=we,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Qi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var ji=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};ji.prototype.onAdd=function(D){this._map=D,this._container=o.create("div","mapboxgl-ctrl");var J=o.create("a","mapboxgl-ctrl-logo");return J.target="_blank",J.rel="noopener nofollow",J.href="https://www.mapbox.com/",J.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),J.setAttribute("rel","noopener nofollow"),this._container.appendChild(J),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},ji.prototype.onRemove=function(){o.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},ji.prototype.getDefaultPosition=function(){return"bottom-left"},ji.prototype._updateLogo=function(D){(!D||D.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},ji.prototype._logoRequired=function(){if(this._map.style){var D=this._map.style.sourceCaches;for(var J in D){var q=D[J].getSource();if(q.mapbox_logo)return!0}return!1}},ji.prototype._updateCompact=function(){var D=this._container.children;if(D.length){var J=D[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var si=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};si.prototype.add=function(D){var J=++this._id,q=this._queue;return q.push({callback:D,id:J,cancelled:!1}),J},si.prototype.remove=function(D){for(var J=this._currentlyRunning,q=J?this._queue.concat(J):this._queue,K=0,de=q;Kq.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(q.minPitch!=null&&q.maxPitch!=null&&q.minPitch>q.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(q.minPitch!=null&&q.minPitchqn)throw new Error("maxPitch must be less than or equal to "+qn);var de=new wo(q.minZoom,q.maxZoom,q.minPitch,q.maxPitch,q.renderWorldCopies);if(Y.call(this,de,q),this._interactive=q.interactive,this._maxTileCacheSize=q.maxTileCacheSize,this._failIfMajorPerformanceCaveat=q.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=q.preserveDrawingBuffer,this._antialias=q.antialias,this._trackResize=q.trackResize,this._bearingSnap=q.bearingSnap,this._refreshExpiredTiles=q.refreshExpiredTiles,this._fadeDuration=q.fadeDuration,this._crossSourceCollisions=q.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=q.collectResourceTiming,this._renderTaskQueue=new si,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Mr,q.locale),this._clickTolerance=q.clickTolerance,this._requestManager=new i.RequestManager(q.transformRequest,q.accessToken),typeof q.container=="string"){if(this._container=i.window.document.getElementById(q.container),!this._container)throw new Error("Container '"+q.container+"' not found.")}else if(q.container instanceof xi)this._container=q.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(q.maxBounds&&this.setMaxBounds(q.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return K._update(!1)}),this.on("moveend",function(){return K._update(!1)}),this.on("zoom",function(){return K._update(!0)}),typeof i.window!="undefined"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Mi(this,q);var ne=typeof q.hash=="string"&&q.hash||void 0;this._hash=q.hash&&new Ul(ne).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:q.center,zoom:q.zoom,bearing:q.bearing,pitch:q.pitch}),q.bounds&&(this.resize(),this.fitBounds(q.bounds,i.extend({},q.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=q.localIdeographFontFamily,q.style&&this.setStyle(q.style,{localIdeographFontFamily:q.localIdeographFontFamily}),q.attributionControl&&this.addControl(new Qi({customAttribution:q.customAttribution})),this.addControl(new ji,q.logoPosition),this.on("style.load",function(){K.transform.unmodified&&K.jumpTo(K.style.stylesheet)}),this.on("data",function(we){K._update(we.dataType==="style"),K.fire(new i.Event(we.dataType+"data",we))}),this.on("dataloading",function(we){K.fire(new i.Event(we.dataType+"dataloading",we))})}Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D;var J={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return D.prototype._getMapId=function(){return this._mapId},D.prototype.addControl=function(K,de){if(de===void 0&&(K.getDefaultPosition?de=K.getDefaultPosition():de="top-right"),!K||!K.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=K.onAdd(this);this._controls.push(K);var we=this._controlPositions[de];return de.indexOf("bottom")!==-1?we.insertBefore(ne,we.firstChild):we.appendChild(ne),this},D.prototype.removeControl=function(K){if(!K||!K.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var de=this._controls.indexOf(K);return de>-1&&this._controls.splice(de,1),K.onRemove(this),this},D.prototype.hasControl=function(K){return this._controls.indexOf(K)>-1},D.prototype.resize=function(K){var de=this._containerDimensions(),ne=de[0],we=de[1];this._resizeCanvas(ne,we),this.transform.resize(ne,we),this.painter.resize(ne,we);var Ue=!this._moving;return Ue&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Ue&&this.fire(new i.Event("moveend",K)),this},D.prototype.getBounds=function(){return this.transform.getBounds()},D.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},D.prototype.setMaxBounds=function(K){return this.transform.setMaxBounds(i.LngLatBounds.convert(K)),this._update()},D.prototype.setMinZoom=function(K){if(K=K==null?ci:K,K>=ci&&K<=this.transform.maxZoom)return this.transform.minZoom=K,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=K,this._update(),this.getZoom()>K&&this.setZoom(K),this;throw new Error("maxZoom must be greater than the current minZoom")},D.prototype.getMaxZoom=function(){return this.transform.maxZoom},D.prototype.setMinPitch=function(K){if(K=K==null?Xi:K,K=Xi&&K<=this.transform.maxPitch)return this.transform.minPitch=K,this._update(),this.getPitch()qn)throw new Error("maxPitch must be less than or equal to "+qn);if(K>=this.transform.minPitch)return this.transform.maxPitch=K,this._update(),this.getPitch()>K&&this.setPitch(K),this;throw new Error("maxPitch must be greater than the current minPitch")},D.prototype.getMaxPitch=function(){return this.transform.maxPitch},D.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},D.prototype.setRenderWorldCopies=function(K){return this.transform.renderWorldCopies=K,this._update()},D.prototype.project=function(K){return this.transform.locationPoint(i.LngLat.convert(K))},D.prototype.unproject=function(K){return this.transform.pointLocation(i.Point.convert(K))},D.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},D.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},D.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},D.prototype._createDelegatedListener=function(K,de,ne){var we=this,Ue;if(K==="mouseenter"||K==="mouseover"){var ft=!1,Zt=function(kt){var Ot=we.getLayer(de)?we.queryRenderedFeatures(kt.point,{layers:[de]}):[];Ot.length?ft||(ft=!0,ne.call(we,new se(K,we,kt.originalEvent,{features:Ot}))):ft=!1},hr=function(){ft=!1};return{layer:de,listener:ne,delegates:{mousemove:Zt,mouseout:hr}}}else if(K==="mouseleave"||K==="mouseout"){var qt=!1,Ve=function(kt){var Ot=we.getLayer(de)?we.queryRenderedFeatures(kt.point,{layers:[de]}):[];Ot.length?qt=!0:qt&&(qt=!1,ne.call(we,new se(K,we,kt.originalEvent)))},et=function(kt){qt&&(qt=!1,ne.call(we,new se(K,we,kt.originalEvent)))};return{layer:de,listener:ne,delegates:{mousemove:Ve,mouseout:et}}}else{var at=function(kt){var Ot=we.getLayer(de)?we.queryRenderedFeatures(kt.point,{layers:[de]}):[];Ot.length&&(kt.features=Ot,ne.call(we,kt),delete kt.features)};return{layer:de,listener:ne,delegates:(Ue={},Ue[K]=at,Ue)}}},D.prototype.on=function(K,de,ne){if(ne===void 0)return Y.prototype.on.call(this,K,de);var we=this._createDelegatedListener(K,de,ne);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[K]=this._delegatedListeners[K]||[],this._delegatedListeners[K].push(we);for(var Ue in we.delegates)this.on(Ue,we.delegates[Ue]);return this},D.prototype.once=function(K,de,ne){if(ne===void 0)return Y.prototype.once.call(this,K,de);var we=this._createDelegatedListener(K,de,ne);for(var Ue in we.delegates)this.once(Ue,we.delegates[Ue]);return this},D.prototype.off=function(K,de,ne){var we=this;if(ne===void 0)return Y.prototype.off.call(this,K,de);var Ue=function(ft){for(var Zt=ft[K],hr=0;hr180;){var ne=J.locationPoint(Y);if(ne.x>=0&&ne.y>=0&&ne.x<=J.width&&ne.y<=J.height)break;Y.lng>J.center.lng?Y.lng-=360:Y.lng+=360}return Y}var Un={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function na(Y,D,J){var q=Y.classList;for(var K in Un)q.remove("mapboxgl-"+J+"-anchor-"+K);q.add("mapboxgl-"+J+"-anchor-"+D)}var Yi=function(Y){function D(J,q){if(Y.call(this),(J instanceof i.window.HTMLElement||q)&&(J=i.extend({element:J},q)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=J&&J.anchor||"center",this._color=J&&J.color||"#3FB1CE",this._scale=J&&J.scale||1,this._draggable=J&&J.draggable||!1,this._clickTolerance=J&&J.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=J&&J.rotation||0,this._rotationAlignment=J&&J.rotationAlignment||"auto",this._pitchAlignment=J&&J.pitchAlignment&&J.pitchAlignment!=="auto"?J.pitchAlignment:this._rotationAlignment,!J||!J.element){this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");var K=o.createNS("http://www.w3.org/2000/svg","svg"),de=41,ne=27;K.setAttributeNS(null,"display","block"),K.setAttributeNS(null,"height",de+"px"),K.setAttributeNS(null,"width",ne+"px"),K.setAttributeNS(null,"viewBox","0 0 "+ne+" "+de);var we=o.createNS("http://www.w3.org/2000/svg","g");we.setAttributeNS(null,"stroke","none"),we.setAttributeNS(null,"stroke-width","1"),we.setAttributeNS(null,"fill","none"),we.setAttributeNS(null,"fill-rule","evenodd");var Ue=o.createNS("http://www.w3.org/2000/svg","g");Ue.setAttributeNS(null,"fill-rule","nonzero");var ft=o.createNS("http://www.w3.org/2000/svg","g");ft.setAttributeNS(null,"transform","translate(3.0, 29.0)"),ft.setAttributeNS(null,"fill","#000000");for(var Zt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],hr=0,qt=Zt;hr=K}this._isDragging&&(this._pos=q.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},D.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},D.prototype._addDragHandler=function(q){this._element.contains(q.originalEvent.target)&&(q.preventDefault(),this._positionDelta=q.point.sub(this._pos).add(this._offset),this._pointerdownPos=q.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},D.prototype.setDraggable=function(q){return this._draggable=!!q,this._map&&(q?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},D.prototype.isDraggable=function(){return this._draggable},D.prototype.setRotation=function(q){return this._rotation=q||0,this._update(),this},D.prototype.getRotation=function(){return this._rotation},D.prototype.setRotationAlignment=function(q){return this._rotationAlignment=q||"auto",this._update(),this},D.prototype.getRotationAlignment=function(){return this._rotationAlignment},D.prototype.setPitchAlignment=function(q){return this._pitchAlignment=q&&q!=="auto"?q:this._rotationAlignment,this._update(),this},D.prototype.getPitchAlignment=function(){return this._pitchAlignment},D}(i.Evented),Ln={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},ra;function oa(Y){ra!==void 0?Y(ra):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(D){ra=D.state!=="denied",Y(ra)}):(ra=!!i.window.navigator.geolocation,Y(ra))}var ba=0,ns=!1,Ys=function(Y){function D(J){Y.call(this),this.options=i.extend({},Ln,J),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.onAdd=function(q){return this._map=q,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),oa(this._setupUI),this._container},D.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,ba=0,ns=!1},D.prototype._isOutOfMapMaxBounds=function(q){var K=this._map.getMaxBounds(),de=q.coords;return K&&(de.longitudeK.getEast()||de.latitudeK.getNorth())},D.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},D.prototype._onSuccess=function(q){if(this._map){if(this._isOutOfMapMaxBounds(q)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",q)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=q,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(q),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(q),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",q)),this._finish()}},D.prototype._updateCamera=function(q){var K=new i.LngLat(q.coords.longitude,q.coords.latitude),de=q.coords.accuracy,ne=this._map.getBearing(),we=i.extend({bearing:ne},this.options.fitBoundsOptions);this._map.fitBounds(K.toBounds(de),we,{geolocateSource:!0})},D.prototype._updateMarker=function(q){if(q){var K=new i.LngLat(q.coords.longitude,q.coords.latitude);this._accuracyCircleMarker.setLngLat(K).addTo(this._map),this._userLocationDotMarker.setLngLat(K).addTo(this._map),this._accuracy=q.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},D.prototype._updateCircleRadius=function(){var q=this._map._container.clientHeight/2,K=this._map.unproject([0,q]),de=this._map.unproject([1,q]),ne=K.distanceTo(de),we=Math.ceil(2*this._accuracy/ne);this._circleElement.style.width=we+"px",this._circleElement.style.height=we+"px"},D.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},D.prototype._onError=function(q){if(this._map){if(this.options.trackUserLocation)if(q.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var K=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=K,this._geolocateButton.setAttribute("aria-label",K),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(q.code===3&&ns)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",q)),this._finish()}},D.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},D.prototype._setupUI=function(q){var K=this;if(this._container.addEventListener("contextmenu",function(we){return we.preventDefault()}),this._geolocateButton=o.create("button","mapboxgl-ctrl-geolocate",this._container),o.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",q===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var de=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=de,this._geolocateButton.setAttribute("aria-label",de)}else{var ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Yi(this._dotElement),this._circleElement=o.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Yi({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(we){var Ue=we.originalEvent&&we.originalEvent.type==="resize";!we.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Ue&&(K._watchState="BACKGROUND",K._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),K._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),K.fire(new i.Event("trackuserlocationend")))})},D.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":ba--,ns=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),ba++;var q;ba>1?(q={maximumAge:6e5,timeout:0},ns=!0):(q=this.options.positionOptions,ns=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,q)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},D.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},D}(i.Evented),Va={maxWidth:100,unit:"metric"},El=function(D){this.options=i.extend({},Va,D),i.bindAll(["_onMove","setUnit"],this)};El.prototype.getDefaultPosition=function(){return"bottom-left"},El.prototype._onMove=function(){zo(this._map,this._container,this.options)},El.prototype.onAdd=function(D){return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",D.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},El.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},El.prototype.setUnit=function(D){this.options.unit=D,zo(this._map,this._container,this.options)};function zo(Y,D,J){var q=J&&J.maxWidth||100,K=Y._container.clientHeight/2,de=Y.unproject([0,K]),ne=Y.unproject([q,K]),we=de.distanceTo(ne);if(J&&J.unit==="imperial"){var Ue=3.2808*we;if(Ue>5280){var ft=Ue/5280;el(D,q,ft,Y._getUIString("ScaleControl.Miles"))}else el(D,q,Ue,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var Zt=we/1852;el(D,q,Zt,Y._getUIString("ScaleControl.NauticalMiles"))}else we>=1e3?el(D,q,we/1e3,Y._getUIString("ScaleControl.Kilometers")):el(D,q,we,Y._getUIString("ScaleControl.Meters"))}function el(Y,D,J,q){var K=Vl(J),de=K/J;Y.style.width=D*de+"px",Y.innerHTML=K+" "+q}function ol(Y){var D=Math.pow(10,Math.ceil(-Math.log(Y)/Math.LN10));return Math.round(Y*D)/D}function Vl(Y){var D=Math.pow(10,(""+Math.floor(Y)).length-1),J=Y/D;return J=J>=10?10:J>=5?5:J>=3?3:J>=2?2:J>=1?1:ol(J),D*J}var ls=function(D){this._fullscreen=!1,D&&D.container&&(D.container instanceof i.window.HTMLElement?this._container=D.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};ls.prototype.onAdd=function(D){return this._map=D,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},ls.prototype.onRemove=function(){o.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},ls.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},ls.prototype._setupUI=function(){var D=this._fullscreenButton=o.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o.create("span","mapboxgl-ctrl-icon",D).setAttribute("aria-hidden",!0),D.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},ls.prototype._updateTitle=function(){var D=this._getTitle();this._fullscreenButton.setAttribute("aria-label",D),this._fullscreenButton.title=D},ls.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},ls.prototype._isFullscreen=function(){return this._fullscreen},ls.prototype._changeIcon=function(){var D=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;D===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},ls.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Gs={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Ks=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),wa=function(Y){function D(J){Y.call(this),this.options=i.extend(Object.create(Gs),J),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.addTo=function(q){return this._map&&this.remove(),this._map=q,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},D.prototype.isOpen=function(){return!!this._map},D.prototype.remove=function(){return this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},D.prototype.getLngLat=function(){return this._lngLat},D.prototype.setLngLat=function(q){return this._lngLat=i.LngLat.convert(q),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},D.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},D.prototype.getElement=function(){return this._container},D.prototype.setText=function(q){return this.setDOMContent(i.window.document.createTextNode(q))},D.prototype.setHTML=function(q){var K=i.window.document.createDocumentFragment(),de=i.window.document.createElement("body"),ne;for(de.innerHTML=q;ne=de.firstChild,!!ne;)K.appendChild(ne);return this.setDOMContent(K)},D.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},D.prototype.setMaxWidth=function(q){return this.options.maxWidth=q,this._update(),this},D.prototype.setDOMContent=function(q){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(q),this._createCloseButton(),this._update(),this._focusFirstElement(),this},D.prototype.addClassName=function(q){this._container&&this._container.classList.add(q)},D.prototype.removeClassName=function(q){this._container&&this._container.classList.remove(q)},D.prototype.setOffset=function(q){return this.options.offset=q,this._update(),this},D.prototype.toggleClassName=function(q){if(this._container)return this._container.classList.toggle(q)},D.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=o.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},D.prototype._onMouseUp=function(q){this._update(q.point)},D.prototype._onMouseMove=function(q){this._update(q.point)},D.prototype._onDrag=function(q){this._update(q.point)},D.prototype._update=function(q){var K=this,de=this._lngLat||this._trackPointer;if(!(!this._map||!de||!this._content)&&(this._container||(this._container=o.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=o.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Ve){return K._container.classList.add(Ve)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=vn(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!q))){var ne=this._pos=this._trackPointer&&q?q:this._map.project(this._lngLat),we=this.options.anchor,Ue=sl(this.options.offset);if(!we){var ft=this._container.offsetWidth,Zt=this._container.offsetHeight,hr;ne.y+Ue.bottom.ythis._map.transform.height-Zt?hr=["bottom"]:hr=[],ne.xthis._map.transform.width-ft/2&&hr.push("right"),hr.length===0?we="bottom":we=hr.join("-")}var qt=ne.add(Ue[we]).round();o.setTransform(this._container,Un[we]+" translate("+qt.x+"px,"+qt.y+"px)"),na(this._container,we,"popup")}},D.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var q=this._container.querySelector(Ks);q&&q.focus()}},D.prototype._onClose=function(){this.remove()},D}(i.Evented);function sl(Y){if(Y)if(typeof Y=="number"){var D=Math.round(Math.sqrt(.5*Math.pow(Y,2)));return{center:new i.Point(0,0),top:new i.Point(0,Y),"top-left":new i.Point(D,D),"top-right":new i.Point(-D,D),bottom:new i.Point(0,-Y),"bottom-left":new i.Point(D,-D),"bottom-right":new i.Point(-D,-D),left:new i.Point(Y,0),right:new i.Point(-Y,0)}}else if(Y instanceof i.Point||Array.isArray(Y)){var J=i.Point.convert(Y);return{center:J,top:J,"top-left":J,"top-right":J,bottom:J,"bottom-left":J,"bottom-right":J,left:J,right:J}}else return{center:i.Point.convert(Y.center||[0,0]),top:i.Point.convert(Y.top||[0,0]),"top-left":i.Point.convert(Y["top-left"]||[0,0]),"top-right":i.Point.convert(Y["top-right"]||[0,0]),bottom:i.Point.convert(Y.bottom||[0,0]),"bottom-left":i.Point.convert(Y["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(Y["bottom-right"]||[0,0]),left:i.Point.convert(Y.left||[0,0]),right:i.Point.convert(Y.right||[0,0])};else return sl(new i.Point(0,0))}var io={version:i.version,supported:a,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:li,NavigationControl:Ui,GeolocateControl:Ys,AttributionControl:Qi,ScaleControl:El,FullscreenControl:ls,Popup:wa,Marker:Yi,Style:yu,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:la,clearPrewarmedResources:ma,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(Y){i.config.ACCESS_TOKEN=Y},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(Y){i.config.API_URL=Y},get workerCount(){return cn.workerCount},set workerCount(Y){cn.workerCount=Y},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(Y){i.config.MAX_PARALLEL_IMAGE_REQUESTS=Y},clearStorage:function(D){i.clearTileCache(D)},workerUrl:""};return io}),r})});var YVe=ye((T_r,ZVe)=>{"use strict";var tw=Dr(),ijt=ru().sanitizeHTML,njt=eJ(),jVe=c1();function WVe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=jVe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var ng=WVe.prototype;ng.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=Yz(t)};ng.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};ng.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};ng.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};ng.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};ng.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};ng.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!Yz(e)){var r=ajt(e);t.addSource(this.idSource,r)}};ng.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function XVe(e){var t={},r={};switch(e.type){case"circle":tw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":tw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":tw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=njt(n.textposition,n.iconsize);tw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),tw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":tw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function ajt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=ijt(e.sourceattribution)),n}ZVe.exports=function(t,r,n){var i=new WVe(t,r);return i.update(n),i}});var nGe=ye((A_r,iGe)=>{"use strict";var sJ=oJ(),lJ=Dr(),QVe=ix(),KVe=qa(),ojt=ho(),sjt=yv(),Kz=vf(),eGe=Mg(),ljt=eGe.drawMode,ujt=eGe.selectMode,cjt=zf().prepSelect,fjt=zf().clearOutline,hjt=zf().clearSelectionsCache,djt=zf().selectOnClick,yx=c1(),vjt=YVe();function tGe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var qh=tGe.prototype;qh.plot=function(e,t,r){var n=this,i=t[n.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash={},n.layerList=[]);var a;n.map?a=new Promise(function(o,s){n.updateMap(e,t,o,s)}):a=new Promise(function(o,s){n.createMap(e,t,o,s)}),r.push(a)};qh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=rGe(a.style,t);i.accessToken=a.accesstoken;var s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new sJ.Map({container:i.div,style:o.style,center:uJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new sJ.AttributionControl({compact:!0}));u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var c=[];c.push(new Promise(function(f){u.once("load",f)})),c=c.concat(QVe.fetchTraceGeoData(e)),Promise.all(c).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};qh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=rGe(o.style,t);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(QVe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};qh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&djt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&Kz.click(n,l.originalEvent)}}};qh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=lJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),ujt(a)||ljt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){cjt(l,u,c,t.dragOptions,a)},sjt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};qh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};qh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var cJ=Dr(),pjt=C_(),gjt=Yd(),aGe=NC();oGe.exports=function(t,r,n){pjt(t,r,n,{type:"mapbox",attributes:aGe,handleDefaults:mjt,partition:"y",accessToken:r._mapboxAccessToken})};function mjt(e,t,r,n){r("accesstoken",n.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var i=r("bounds.west"),a=r("bounds.east"),o=r("bounds.south"),s=r("bounds.north");(i===void 0||a===void 0||o===void 0||s===void 0)&&delete t.bounds,gjt(e,t,{name:"layers",handleItemDefaults:yjt}),t._input=e}function yjt(e,t){function r(l,u){return cJ.coerce(e,t,aGe.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",cJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),cJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var Jz=ye(Bp=>{"use strict";var lGe=oJ(),tm=Dr(),fJ=tm.strTranslate,_jt=tm.strScale,xjt=Id().getSubplotCalcData,bjt=Wp(),wjt=Oa(),uGe=So(),Tjt=ru(),Ajt=nGe(),_x="mapbox",Qm=Bp.constants=c1();Bp.name=_x;Bp.attr="subplot";Bp.idRoot=_x;Bp.idRegex=Bp.attrRegex=tm.counterRegex(_x);var Sjt=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Bp.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Bp.layoutAttributes=NC();Bp.supplyLayoutDefaults=sGe();var cGe=!0;Bp.plot=function(t){cGe&&(cGe=!1,tm.warn(Sjt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[_x];if(lGe.version!==Qm.requiredVersion)throw new Error(Qm.wrongVersionErrorMsg);var a=Mjt(t,i);lGe.accessToken=a;for(var o=0;op/2){var C=d.split("|").join("
");_.text(C).attr("data-unformatted",C).call(Tjt.convertToTspans,e),b=uGe.bBox(_.node())}_.attr("transform",fJ(-3,-b.height+8)),v.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var E=1;b.width+6>p&&(E=p/(b.width+6));var A=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];v.attr("transform",fJ(A[0],A[1])+_jt(E))}};function Mjt(e,t){var r=e._fullLayout,n=e._context;if(n.mapboxAccessToken==="")return"";for(var i=[],a=[],o=!1,s=!1,l=0;l1&&tm.warn(Qm.multipleTokensErrorMsg),i[0]):(a.length&&tm.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function fGe(e){return typeof e=="string"&&(Qm.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Bp.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[_x],n=0;n{"use strict";var E_r=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");hGe.exports={attributes:Gz(),supplyDefaults:AVe(),colorbar:$d(),formatLabels:QK(),calc:hF(),plot:qVe(),hoverPoints:Zz().hoverPoints,eventData:VVe(),selectPoints:HVe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:Jz(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var pGe=ye((k_r,vGe)=>{"use strict";vGe.exports=dGe()});var hJ=ye((L_r,gGe)=>{"use strict";var f1=$A(),Ejt=Tu(),Cjt=Qo().hovertemplateAttrs,kjt=Gl(),xx=Ao().extendFlat;gGe.exports=xx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:xx({},f1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:f1.text,hovertext:f1.hovertext,marker:{line:{color:xx({},f1.marker.line.color,{editType:"plot"}),width:xx({},f1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:xx({},f1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:xx({},f1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:xx({},f1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:f1.hoverinfo,hovertemplate:Cjt({},{keys:["properties"]}),showlegend:xx({},kjt.showlegend,{dflt:!1})},Ejt("",{cLetter:"z",editTypeOverride:"calc"}))});var yGe=ye((P_r,mGe)=>{"use strict";var HC=Dr(),Ljt=Jh(),Pjt=hJ();mGe.exports=function(t,r,n,i){function a(c,f){return HC.coerce(t,r,Pjt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!HC.isArrayOrTypedArray(o)||!o.length||!HC.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||HC.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),Ljt(t,r,i,a,{prefix:"",cLetter:"z"}),HC.coerceSelectionMarkerOpacity(r,a)}});var dJ=ye((I_r,bGe)=>{"use strict";var Ijt=Eo(),h1=Dr(),Rjt=tc(),Djt=So(),Fjt=tx().makeBlank,_Ge=ix();function zjt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:Fjt()};if(!r)return a;var o=_Ge.extractTraceFeature(e);if(!o)return a;var s=Rjt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;h1.isArrayOrTypedArray(l.opacity)&&(c=function(C){var E=C.mo;return Ijt(E)?+h1.constrain(E,0,1):0});var f;h1.isArrayOrTypedArray(u.color)&&(f=function(C){return C.mlc});var h;h1.isArrayOrTypedArray(u.width)&&(h=function(C){return C.mlw});for(var d=0;d{"use strict";var TGe=dJ().convert,Ojt=dJ().convertOnSelect,wGe=c1().traceLayerPrefix;function AGe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",wGe+t+"-fill"],["line",wGe+t+"-line"]],this.below=null}var A5=AGe.prototype;A5.update=function(e){this._update(TGe(e)),e[0].trace._glTrace=this};A5.updateOnSelect=function(e){this._update(Ojt(e))};A5._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};A5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};SGe.exports=function(t,r){var n=r[0].trace,i=new AGe(t,n.uid),a=i.sourceId,o=TGe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var CGe=ye((F_r,EGe)=>{"use strict";var D_r=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");EGe.exports={attributes:hJ(),supplyDefaults:yGe(),colorbar:S_(),calc:RF(),plot:MGe(),hoverPoints:FF(),eventData:zF(),selectPoints:OF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";kGe.exports=CGe()});var pJ=ye((O_r,IGe)=>{"use strict";var qjt=Tu(),Bjt=Qo().hovertemplateAttrs,PGe=Gl(),$z=Gz(),vJ=Ao().extendFlat;IGe.exports=vJ({lon:$z.lon,lat:$z.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:$z.text,hovertext:$z.hovertext,hoverinfo:vJ({},PGe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:Bjt(),showlegend:vJ({},PGe.showlegend,{dflt:!1})},qjt("",{cLetter:"z",editTypeOverride:"calc"}))});var DGe=ye((q_r,RGe)=>{"use strict";var Njt=Dr(),Ujt=Jh(),Vjt=pJ();RGe.exports=function(t,r,n,i){function a(u,c){return Njt.coerce(t,r,Vjt,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),Ujt(t,r,i,a,{prefix:"",cLetter:"z"})}});var OGe=ye((B_r,zGe)=>{"use strict";var gJ=Eo(),Gjt=Dr().isArrayOrTypedArray,mJ=hs().BADNUM,Hjt=gv(),FGe=Dr()._;zGe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=Gjt(a)&&a.length,s=0;s{"use strict";var jjt=Eo(),yJ=Dr(),qGe=Ca(),BGe=tc(),NGe=hs().BADNUM,Wjt=tx().makeBlank;UGe.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:Wjt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=yJ.isArrayOrTypedArray(l)&&l.length,f=yJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=BGe.extractOpts(r),p=b.reversescale?BGe.flipScale(b.colorscale):b.colorscale,C=p[0][1],E=qGe.opacity(C)<1?C:qGe.addOpacity(C,0),A=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var GGe=VGe(),Xjt=c1().traceLayerPrefix;function HGe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",Xjt+t+"-heatmap"]],this.below=null}var Qz=HGe.prototype;Qz.update=function(e){var t=this.subplot,r=this.layerList,n=GGe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};Qz.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};jGe.exports=function(t,r){var n=r[0].trace,i=new HGe(t,n.uid),a=i.sourceId,o=GGe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var ZGe=ye((V_r,XGe)=>{"use strict";var Zjt=ho(),Yjt=Zz().hoverPoints,Kjt=Zz().getExtraText;XGe.exports=function(t,r,n){var i=Yjt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=Zjt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=Kjt(s,l,o[0].t.labels),[a]}}});var KGe=ye((G_r,YGe)=>{"use strict";YGe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var $Ge=ye((j_r,JGe)=>{"use strict";var H_r=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");JGe.exports={attributes:pJ(),supplyDefaults:DGe(),colorbar:S_(),formatLabels:QK(),calc:OGe(),plot:WGe(),hoverPoints:ZGe(),eventData:KGe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";QGe.exports=$Ge()});var rHe=ye((X_r,tHe)=>{tHe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} {name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} @@ -3222,10 +3222,10 @@ uniform `+Zt+" "+hr+" u_"+qt+`; {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} -{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var rHe=ye((W_r,tHe)=>{tHe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var bx=ye((X_r,sHe)=>{"use strict";var Zjt=Z1(),Yjt=eHe(),Kjt=rHe(),Jjt='\xA9 OpenStreetMap contributors',iHe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",nHe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",e7="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",$jt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",Qjt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",eWt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",oHe={basic:e7,streets:e7,outdoors:e7,light:iHe,dark:nHe,satellite:Kjt,"satellite-streets":Yjt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:Jjt,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":iHe,"carto-darkmatter":nHe,"carto-voyager":e7,"carto-positron-nolabels":$jt,"carto-darkmatter-nolabels":Qjt,"carto-voyager-nolabels":eWt},aHe=Zjt(oHe);sHe.exports={styleValueDflt:"basic",stylesMap:oHe,styleValuesMap:aHe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",aHe.join(", "),"or use a tile service."].join(` -`),mapOnErrorMsg:"Map error."}});var HC=ye((Z_r,hHe)=>{"use strict";var lHe=Dr(),uHe=Ca().defaultLine,tWt=kc().attributes,rWt=ec(),iWt=pf().textposition,nWt=mc().overrideAll,aWt=pl().templatedArray,cHe=bx(),fHe=rWt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});fHe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var oWt=hHe.exports=nWt({_arrayAttrRegexps:[lHe.counterRegex("map",".layers",!0)],domain:tWt({name:"map"}),style:{valType:"any",values:cHe.styleValuesMap,dflt:cHe.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:aWt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:uHe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:uHe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:fHe,textposition:lHe.extendFlat({},iWt,{arrayOk:!1})}})},"plot","from-root");oWt.uirevision={valType:"any",editType:"none"}});var t7=ye((Y_r,pHe)=>{"use strict";var sWt=Qo().hovertemplateAttrs,lWt=Qo().texttemplateAttrs,uWt=Eg(),jC=G2(),A5=pf(),dHe=HC(),cWt=Gl(),fWt=Tu(),rw=Ao().extendFlat,hWt=mc().overrideAll,dWt=HC(),vHe=jC.line,S5=jC.marker;pHe.exports=hWt({lon:jC.lon,lat:jC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:rw({},dWt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:rw({},S5.opacity,{dflt:1})},mode:rw({},A5.mode,{dflt:"markers"}),text:rw({},A5.text,{}),texttemplate:lWt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:rw({},A5.hovertext,{}),line:{color:vHe.color,width:vHe.width},connectgaps:A5.connectgaps,marker:rw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:S5.opacity,size:S5.size,sizeref:S5.sizeref,sizemin:S5.sizemin,sizemode:S5.sizemode},fWt("marker")),fill:jC.fill,fillcolor:uWt(),textfont:dHe.layers.symbol.textfont,textposition:dHe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:A5.selected.marker},unselected:{marker:A5.unselected.marker},hoverinfo:rw({},cWt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:sWt()},"calc","nested")});var _J=ye((K_r,gHe)=>{"use strict";var vWt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];gHe.exports={isSupportedFont:function(e){return vWt.indexOf(e)!==-1}}});var _He=ye((J_r,yHe)=>{"use strict";var WC=Dr(),xJ=Ru(),pWt=$p(),gWt=R0(),mWt=D0(),yWt=Ig(),mHe=t7(),_Wt=_J().isSupportedFont;yHe.exports=function(t,r,n,i){function a(p,C){return WC.coerce(t,r,mHe,p,C)}function o(p,C){return WC.coerce2(t,r,mHe,p,C)}var s=xWt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),xJ.hasMarkers(r)){pWt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(WC.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),WC.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}xJ.hasLines(r)&&(gWt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,x=a("cluster.enabled",v);if(x||xJ.hasText(r)){var b=i.font.family;mWt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:_Wt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&yWt(t,r,n,a),WC.coerceSelectionMarkerOpacity(r,a)};function xWt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var bJ=ye(($_r,bHe)=>{"use strict";var xHe=ho();bHe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=xHe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=xHe.tickText(o,o.c2l(s[1]),!0).text,i}});var wJ=ye((Q_r,THe)=>{"use strict";var wHe=Dr();THe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=wHe.isArrayOrTypedArray(r)?wHe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var kHe=ye((exr,CHe)=>{"use strict";var MHe=Eo(),ov=Dr(),bWt=hs().BADNUM,i7=tx(),AHe=tc(),wWt=So(),TWt=S3(),n7=Ru(),AWt=_J().isSupportedFont,SWt=wJ(),MWt=rp().appendArrayPointValue,EWt=ru().NEWLINES,CWt=ru().BR_TAG_ALL;CHe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=n7.hasLines(n),s=n7.hasMarkers(n),l=n7.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=r7("fill"),d=r7("line"),v=r7("circle"),x=r7("symbol"),b={fill:h,line:d,circle:v,symbol:x};if(!i)return b;var p;if((a||o)&&(p=i7.calcTraceToLineCoords(r)),a&&(h.geojson=i7.makePolygon(p),h.layout.visibility="visible",ov.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=i7.makeLine(p),d.layout.visibility="visible",ov.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var C=kWt(r);v.geojson=C.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":AJ(n.cluster.color,n.cluster.step),"circle-radius":AJ(n.cluster.size,n.cluster.step),"circle-opacity":AJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":SHe(n),"text-size":12}}),ov.extendFlat(v.paint,{"circle-color":C.mcc,"circle-radius":C.mrc,"circle-opacity":C.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(x.geojson=LWt(r,t),ov.extendFlat(x.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(ov.extendFlat(x.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&ov.extendFlat(x.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),x.layout["icon-allow-overlap"]=n.marker.allowoverlap,ov.extendFlat(x.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var E=(n.marker||{}).size,A=SWt(n.textposition,E);ov.extendFlat(x.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":SHe(n)}),ov.extendFlat(x.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function r7(e){return{type:e,geojson:i7.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function kWt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=ov.isArrayOrTypedArray(r.color),a=ov.isArrayOrTypedArray(r.size),o=ov.isArrayOrTypedArray(r.opacity),s;function l(E){return t.opacity*E}function u(E){return E/2}var c;i&&(AHe.hasColorscale(t,"marker")?c=AHe.makeColorScaleFuncFromTrace(r):c=ov.identity);var f;a&&(f=TWt(t));var h;o&&(h=function(E){var A=MHe(E)?+ov.constrain(E,0,1):0;return l(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),AWt(s)||(s=r);var l=s.split(", ");return l}});var RHe=ye((txr,IHe)=>{"use strict";var PWt=Dr(),LHe=kHe(),M5=bx().traceLayerPrefix,ng={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function PHe(e,t,r,n){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:M5+t+"-fill",line:M5+t+"-line",circle:M5+t+"-circle",symbol:M5+t+"-symbol",cluster:M5+t+"-cluster",clusterCount:M5+t+"-cluster-count"},this.below=null}var XC=PHe.prototype;XC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&PWt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};XC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};XC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var _=A[L];i.removeLayer(u.layerIds[_])}E||i.removeSource(u.sourceIds.circle)}function h(E){for(var A=ng.nonCluster,L=0;L=0;L--){var _=A[L];i.removeLayer(u.layerIds[_]),E||i.removeSource(u.sourceIds[_])}}function v(E){l?f(E):d(E)}function x(E){s?c(E):h(E)}function b(){for(var E=s?ng.cluster:ng.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};IHe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new PHe(t,n.uid,i,a),s=LHe(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var IWt=vf(),SJ=Dr(),RWt=oT(),DWt=SJ.fillText,FWt=hs().BADNUM,zWt=bx().traceLayerPrefix;function OWt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=zWt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function x(M){var g=M.lonlat;if(g[0]===FWt||c&&l.indexOf(M.i+1)===-1)return 1/0;var P=SJ.modHalf(g[0],360),T=g[1],z=s.project([P,T]),O=z.x-a.c2p([v,T]),V=z.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(O*O+V*V)-G,1-3/G)}if(IWt.getClosest(n,x,e),e.index!==!1){var b=n[e.index],p=b.lonlat,C=[SJ.modHalf(p[0],360)+d,p[1]],E=a.c2p(C),A=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=A-L,e.y1=A+L;var _={};_[i.subplot]={_subplot:s};var k=i._module.formatLabels(b,i,_);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=RWt(i,b),e.extraText=DHe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function DHe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||i.indexOf("text")!==-1)&&DWt(t,e,u),u.join("
")}FHe.exports={hoverPoints:OWt,getExtraText:DHe}});var OHe=ye((ixr,zHe)=>{"use strict";zHe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var BHe=ye((nxr,qHe)=>{"use strict";var qWt=Dr(),BWt=Ru(),NWt=hs().BADNUM;qHe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!BWt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof MJ=="object"&&typeof EJ!="undefined"?EJ.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(MJ,function(){"use strict";var e={},t={};function r(i,a,o){if(t[i]=o,i==="index"){var s="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",l={};return t.shared(l),t.index(e,l),typeof window!="undefined"&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([s],{type:"text/javascript"}))),e}}r("shared",["exports"],function(i){"use strict";function a(R,S,F,W){return new(F||(F=Promise))(function(te,fe){function pe(ut){try{Ke(W.next(ut))}catch(Lt){fe(Lt)}}function ze(ut){try{Ke(W.throw(ut))}catch(Lt){fe(Lt)}}function Ke(ut){var Lt;ut.done?te(ut.value):(Lt=ut.value,Lt instanceof F?Lt:new F(function(Qt){Qt(Lt)})).then(pe,ze)}Ke((W=W.apply(R,S||[])).next())})}function o(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}typeof SuppressedError=="function"&&SuppressedError;var s=l;function l(R,S){this.x=R,this.y=S}l.prototype={clone:function(){return new l(this.x,this.y)},add:function(R){return this.clone()._add(R)},sub:function(R){return this.clone()._sub(R)},multByPoint:function(R){return this.clone()._multByPoint(R)},divByPoint:function(R){return this.clone()._divByPoint(R)},mult:function(R){return this.clone()._mult(R)},div:function(R){return this.clone()._div(R)},rotate:function(R){return this.clone()._rotate(R)},rotateAround:function(R,S){return this.clone()._rotateAround(R,S)},matMult:function(R){return this.clone()._matMult(R)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(R){return this.x===R.x&&this.y===R.y},dist:function(R){return Math.sqrt(this.distSqr(R))},distSqr:function(R){var S=R.x-this.x,F=R.y-this.y;return S*S+F*F},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(R){return Math.atan2(this.y-R.y,this.x-R.x)},angleWith:function(R){return this.angleWithSep(R.x,R.y)},angleWithSep:function(R,S){return Math.atan2(this.x*S-this.y*R,this.x*R+this.y*S)},_matMult:function(R){var S=R[2]*this.x+R[3]*this.y;return this.x=R[0]*this.x+R[1]*this.y,this.y=S,this},_add:function(R){return this.x+=R.x,this.y+=R.y,this},_sub:function(R){return this.x-=R.x,this.y-=R.y,this},_mult:function(R){return this.x*=R,this.y*=R,this},_div:function(R){return this.x/=R,this.y/=R,this},_multByPoint:function(R){return this.x*=R.x,this.y*=R.y,this},_divByPoint:function(R){return this.x/=R.x,this.y/=R.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var R=this.y;return this.y=this.x,this.x=-R,this},_rotate:function(R){var S=Math.cos(R),F=Math.sin(R),W=F*this.x+S*this.y;return this.x=S*this.x-F*this.y,this.y=W,this},_rotateAround:function(R,S){var F=Math.cos(R),W=Math.sin(R),te=S.y+W*(this.x-S.x)+F*(this.y-S.y);return this.x=S.x+F*(this.x-S.x)-W*(this.y-S.y),this.y=te,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},l.convert=function(R){return R instanceof l?R:Array.isArray(R)?new l(R[0],R[1]):R};var u=o(s),c=f;function f(R,S,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(W-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=S,this.p2x=F,this.p2y=W}f.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,S){if(S===void 0&&(S=1e-6),R<0)return 0;if(R>1)return 1;for(var F=R,W=0;W<8;W++){var te=this.sampleCurveX(F)-R;if(Math.abs(te)te?pe=F:ze=F,F=.5*(ze-pe)+pe;return F},solve:function(R,S){return this.sampleCurveY(this.solveCurveX(R,S))}};var h=o(c);let d,v;function x(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(v==null&&(v=!1,x())){let S=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(S){for(let W=0;W<5*5;W++){let te=4*W;S.fillStyle=`rgb(${te},${te+1},${te+2})`,S.fillRect(W%5,Math.floor(W/5),1,1)}let F=S.getImageData(0,0,5,5).data;for(let W=0;W<5*5*4;W++)if(W%4!=3&&F[W]!==W){v=!0;break}}}return v||!1}function p(R,S,F,W){let te=new h(R,S,F,W);return fe=>te.solve(fe)}let C=p(.25,.1,.25,1);function E(R,S,F){return Math.min(F,Math.max(S,R))}function A(R,S,F){let W=F-S,te=((R-S)%W+W)%W+S;return te===S?F:te}function L(R,...S){for(let F of S)for(let W in F)R[W]=F[W];return R}let _=1;function k(R,S,F){let W={};for(let te in R)W[te]=S.call(this,R[te],te,R);return W}function M(R,S,F){let W={};for(let te in R)S.call(this,R[te],te,R)&&(W[te]=R[te]);return W}function g(R){return Array.isArray(R)?R.map(g):typeof R=="object"&&R?k(R,g):R}let P={};function T(R){P[R]||(typeof console!="undefined"&&console.warn(R),P[R]=!0)}function z(R,S,F){return(F.y-R.y)*(S.x-R.x)>(S.y-R.y)*(F.x-R.x)}function O(R){return typeof WorkerGlobalScope!="undefined"&&R!==void 0&&R instanceof WorkerGlobalScope}let V=null;function G(R){return typeof ImageBitmap!="undefined"&&R instanceof ImageBitmap}let Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function H(R,S,F,W,te){return a(this,void 0,void 0,function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let fe=new VideoFrame(R,{timestamp:0});try{let pe=fe==null?void 0:fe.format;if(!pe||!pe.startsWith("BGR")&&!pe.startsWith("RGB"))throw new Error(`Unrecognized format ${pe}`);let ze=pe.startsWith("BGR"),Ke=new Uint8ClampedArray(W*te*4);if(yield fe.copyTo(Ke,function(ut,Lt,Qt,fr,mr){let Lr=4*Math.max(-Lt,0),zr=(Math.max(0,Qt)-Qt)*fr*4+Lr,ui=4*fr,yi=Math.max(0,Lt),dn=Math.max(0,Qt);return{rect:{x:yi,y:dn,width:Math.min(ut.width,Lt+fr)-yi,height:Math.min(ut.height,Qt+mr)-dn},layout:[{offset:zr,stride:ui}]}}(R,S,F,W,te)),ze)for(let ut=0;utO(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,Se=function(R,S){if(/:\/\//.test(R.url)&&!/^https?:|^file:/.test(R.url)){let W=Me(R.url);if(W)return W(R,S);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,targetMapId:ke},S)}if(!(/^file:/.test(F=R.url)||/^file:/.test(ie())&&!/^\w+:/.test(F))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(W,te){return a(this,void 0,void 0,function*(){let fe=new Request(W.url,{method:W.method||"GET",body:W.body,credentials:W.credentials,headers:W.headers,cache:W.cache,referrer:ie(),signal:te.signal});W.type!=="json"||fe.headers.has("Accept")||fe.headers.set("Accept","application/json");let pe=yield fetch(fe);if(!pe.ok){let ut=yield pe.blob();throw new me(pe.status,pe.statusText,W.url,ut)}let ze;ze=W.type==="arrayBuffer"||W.type==="image"?pe.arrayBuffer():W.type==="json"?pe.json():pe.text();let Ke=yield ze;if(te.signal.aborted)throw oe();return{data:Ke,cacheControl:pe.headers.get("Cache-Control"),expires:pe.headers.get("Expires")}})}(R,S);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,mustQueue:!0,targetMapId:ke},S)}var F;return function(W,te){return new Promise((fe,pe)=>{var ze;let Ke=new XMLHttpRequest;Ke.open(W.method||"GET",W.url,!0),W.type!=="arrayBuffer"&&W.type!=="image"||(Ke.responseType="arraybuffer");for(let ut in W.headers)Ke.setRequestHeader(ut,W.headers[ut]);W.type==="json"&&(Ke.responseType="text",!((ze=W.headers)===null||ze===void 0)&&ze.Accept||Ke.setRequestHeader("Accept","application/json")),Ke.withCredentials=W.credentials==="include",Ke.onerror=()=>{pe(new Error(Ke.statusText))},Ke.onload=()=>{if(!te.signal.aborted)if((Ke.status>=200&&Ke.status<300||Ke.status===0)&&Ke.response!==null){let ut=Ke.response;if(W.type==="json")try{ut=JSON.parse(Ke.response)}catch(Lt){return void pe(Lt)}fe({data:ut,cacheControl:Ke.getResponseHeader("Cache-Control"),expires:Ke.getResponseHeader("Expires")})}else{let ut=new Blob([Ke.response],{type:Ke.getResponseHeader("Content-Type")});pe(new me(Ke.status,Ke.statusText,W.url,ut))}},te.signal.addEventListener("abort",()=>{Ke.abort(),pe(oe())}),Ke.send(W.body)})}(R,S)};function Le(R){if(!R||R.indexOf("://")<=0||R.indexOf("data:image/")===0||R.indexOf("blob:")===0)return!0;let S=new URL(R),F=window.location;return S.protocol===F.protocol&&S.host===F.host}function Ae(R,S,F){F[R]&&F[R].indexOf(S)!==-1||(F[R]=F[R]||[],F[R].push(S))}function De(R,S,F){if(F&&F[R]){let W=F[R].indexOf(S);W!==-1&&F[R].splice(W,1)}}class Pe{constructor(S,F={}){L(this,F),this.type=S}}class ge extends Pe{constructor(S,F={}){super("error",L({error:S},F))}}class Fe{on(S,F){return this._listeners=this._listeners||{},Ae(S,F,this._listeners),this}off(S,F){return De(S,F,this._listeners),De(S,F,this._oneTimeListeners),this}once(S,F){return F?(this._oneTimeListeners=this._oneTimeListeners||{},Ae(S,F,this._oneTimeListeners),this):new Promise(W=>this.once(S,W))}fire(S,F){typeof S=="string"&&(S=new Pe(S,F||{}));let W=S.type;if(this.listens(W)){S.target=this;let te=this._listeners&&this._listeners[W]?this._listeners[W].slice():[];for(let ze of te)ze.call(this,S);let fe=this._oneTimeListeners&&this._oneTimeListeners[W]?this._oneTimeListeners[W].slice():[];for(let ze of fe)De(W,ze,this._oneTimeListeners),ze.call(this,S);let pe=this._eventedParent;pe&&(L(S,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),pe.fire(S))}else S instanceof ge&&console.error(S.error);return this}listens(S){return this._listeners&&this._listeners[S]&&this._listeners[S].length>0||this._oneTimeListeners&&this._oneTimeListeners[S]&&this._oneTimeListeners[S].length>0||this._eventedParent&&this._eventedParent.listens(S)}setEventedParent(S,F){return this._eventedParent=S,this._eventedParentData=F,this}}var ce={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let Ze=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function ct(R,S){let F={};for(let W in R)W!=="ref"&&(F[W]=R[W]);return Ze.forEach(W=>{W in S&&(F[W]=S[W])}),F}function pt(R,S){if(Array.isArray(R)){if(!Array.isArray(S)||R.length!==S.length)return!1;for(let F=0;F`:R.itemType.kind==="value"?"array":`array<${S}>`}return R.kind}let je=[Ut,Ft,bt,yt,Yt,ei,lr,Ge(Tr),Wr,Ur,dt];function $e(R,S){if(S.kind==="error")return null;if(R.kind==="array"){if(S.kind==="array"&&(S.N===0&&S.itemType.kind==="value"||!$e(R.itemType,S.itemType))&&(typeof R.N!="number"||R.N===S.N))return null}else{if(R.kind===S.kind)return null;if(R.kind==="value"){for(let F of je)if(!$e(F,S))return null}}return`Expected ${Je(R)} but found ${Je(S)} instead.`}function wt(R,S){return S.some(F=>F.kind===R.kind)}function Ie(R,S){return S.some(F=>F==="null"?R===null:F==="array"?Array.isArray(R):F==="object"?R&&!Array.isArray(R)&&typeof R=="object":F===typeof R)}function xe(R,S){return R.kind==="array"&&S.kind==="array"?R.itemType.kind===S.itemType.kind&&typeof R.N=="number":R.kind===S.kind}let Ce=.96422,vt=.82521,nr=4/29,ir=6/29,pr=3*ir*ir,oi=ir*ir*ir,di=Math.PI/180,Jr=180/Math.PI;function fi(R){return(R%=360)<0&&(R+=360),R}function Hi([R,S,F,W]){let te,fe,pe=wn((.2225045*(R=Pn(R))+.7168786*(S=Pn(S))+.0606169*(F=Pn(F)))/1);R===S&&S===F?te=fe=pe:(te=wn((.4360747*R+.3850649*S+.1430804*F)/Ce),fe=wn((.0139322*R+.0971045*S+.7141733*F)/vt));let ze=116*pe-16;return[ze<0?0:ze,500*(te-pe),200*(pe-fe),W]}function Pn(R){return R<=.04045?R/12.92:Math.pow((R+.055)/1.055,2.4)}function wn(R){return R>oi?Math.pow(R,1/3):R/pr+nr}function pn([R,S,F,W]){let te=(R+16)/116,fe=isNaN(S)?te:te+S/500,pe=isNaN(F)?te:te-F/200;return te=1*kn(te),fe=Ce*kn(fe),pe=vt*kn(pe),[Vn(3.1338561*fe-1.6168667*te-.4906146*pe),Vn(-.9787684*fe+1.9161415*te+.033454*pe),Vn(.0719453*fe-.2289914*te+1.4052427*pe),W]}function Vn(R){return(R=R<=.00304?12.92*R:1.055*Math.pow(R,1/2.4)-.055)<0?0:R>1?1:R}function kn(R){return R>ir?R*R*R:pr*(R-nr)}function ea(R){return parseInt(R.padEnd(2,R),16)/255}function ua(R,S){return Vt(S?R/100:R,0,1)}function Vt(R,S,F){return Math.min(Math.max(S,R),F)}function _t(R){return!R.some(Number.isNaN)}let tr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class ar{constructor(S,F,W,te=1,fe=!0){this.r=S,this.g=F,this.b=W,this.a=te,fe||(this.r*=te,this.g*=te,this.b*=te,te||this.overwriteGetter("rgb",[S,F,W,te]))}static parse(S){if(S instanceof ar)return S;if(typeof S!="string")return;let F=function(W){if((W=W.toLowerCase().trim())==="transparent")return[0,0,0,0];let te=tr[W];if(te){let[pe,ze,Ke]=te;return[pe/255,ze/255,Ke/255,1]}if(W.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(W)){let pe=W.length<6?1:2,ze=1;return[ea(W.slice(ze,ze+=pe)),ea(W.slice(ze,ze+=pe)),ea(W.slice(ze,ze+=pe)),ea(W.slice(ze,ze+pe)||"ff")]}if(W.startsWith("rgb")){let pe=W.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(pe){let[ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn]=pe,Fi=[Lt||" ",mr||" ",ui].join("");if(Fi===" "||Fi===" /"||Fi===",,"||Fi===",,,"){let ln=[ut,fr,zr].join(""),An=ln==="%%%"?100:ln===""?255:0;if(An){let pa=[Vt(+Ke/An,0,1),Vt(+Qt/An,0,1),Vt(+Lr/An,0,1),yi?ua(+yi,dn):1];if(_t(pa))return pa}}return}}let fe=W.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(fe){let[pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr]=fe,zr=[Ke||" ",Lt||" ",fr].join("");if(zr===" "||zr===" /"||zr===",,"||zr===",,,"){let ui=[+ze,Vt(+ut,0,100),Vt(+Qt,0,100),mr?ua(+mr,Lr):1];if(_t(ui))return function([yi,dn,Fi,ln]){function An(pa){let ro=(pa+yi/30)%12,Vo=dn*Math.min(Fi,1-Fi);return Fi-Vo*Math.max(-1,Math.min(ro-3,9-ro,1))}return yi=fi(yi),dn/=100,Fi/=100,[An(0),An(8),An(4),ln]}(ui)}}}(S);return F?new ar(...F,!1):void 0}get rgb(){let{r:S,g:F,b:W,a:te}=this,fe=te||1/0;return this.overwriteGetter("rgb",[S/fe,F/fe,W/fe,te])}get hcl(){return this.overwriteGetter("hcl",function(S){let[F,W,te,fe]=Hi(S),pe=Math.sqrt(W*W+te*te);return[Math.round(1e4*pe)?fi(Math.atan2(te,W)*Jr):NaN,pe,F,fe]}(this.rgb))}get lab(){return this.overwriteGetter("lab",Hi(this.rgb))}overwriteGetter(S,F){return Object.defineProperty(this,S,{value:F}),F}toString(){let[S,F,W,te]=this.rgb;return`rgba(${[S,F,W].map(fe=>Math.round(255*fe)).join(",")},${te})`}}ar.black=new ar(0,0,0,1),ar.white=new ar(1,1,1,1),ar.transparent=new ar(0,0,0,0),ar.red=new ar(1,0,0,1);class Er{constructor(S,F,W){this.sensitivity=S?F?"variant":"case":F?"accent":"base",this.locale=W,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(S,F){return this.collator.compare(S,F)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Zr{constructor(S,F,W,te,fe){this.text=S,this.image=F,this.scale=W,this.fontStack=te,this.textColor=fe}}class ri{constructor(S){this.sections=S}static fromString(S){return new ri([new Zr(S,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(S=>S.text.length!==0||S.image&&S.image.name.length!==0)}static factory(S){return S instanceof ri?S:ri.fromString(S)}toString(){return this.sections.length===0?"":this.sections.map(S=>S.text).join("")}}class $r{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof $r)return S;if(typeof S=="number")return new $r([S,S,S,S]);if(Array.isArray(S)&&!(S.length<1||S.length>4)){for(let F of S)if(typeof F!="number")return;switch(S.length){case 1:S=[S[0],S[0],S[0],S[0]];break;case 2:S=[S[0],S[1],S[0],S[1]];break;case 3:S=[S[0],S[1],S[2],S[1]]}return new $r(S)}}toString(){return JSON.stringify(this.values)}}let zi=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class Ji{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof Ji)return S;if(Array.isArray(S)&&!(S.length<1)&&S.length%2==0){for(let F=0;F=0&&R<=255&&typeof S=="number"&&S>=0&&S<=255&&typeof F=="number"&&F>=0&&F<=255?W===void 0||typeof W=="number"&&W>=0&&W<=1?null:`Invalid rgba value [${[R,S,F,W].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof W=="number"?[R,S,F,W]:[R,S,F]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function yn(R){if(R===null||typeof R=="string"||typeof R=="boolean"||typeof R=="number"||R instanceof ar||R instanceof Er||R instanceof ri||R instanceof $r||R instanceof Ji||R instanceof en)return!0;if(Array.isArray(R)){for(let S of R)if(!yn(S))return!1;return!0}if(typeof R=="object"){for(let S in R)if(!yn(R[S]))return!1;return!0}return!1}function Mn(R){if(R===null)return Ut;if(typeof R=="string")return bt;if(typeof R=="boolean")return yt;if(typeof R=="number")return Ft;if(R instanceof ar)return Yt;if(R instanceof Er)return Rr;if(R instanceof ri)return ei;if(R instanceof $r)return Wr;if(R instanceof Ji)return dt;if(R instanceof en)return Ur;if(Array.isArray(R)){let S=R.length,F;for(let W of R){let te=Mn(W);if(F){if(F===te)continue;F=Tr;break}F=te}return Ge(F||Tr,S)}return lr}function Ba(R){let S=typeof R;return R===null?"":S==="string"||S==="number"||S==="boolean"?String(R):R instanceof ar||R instanceof ri||R instanceof $r||R instanceof Ji||R instanceof en?R.toString():JSON.stringify(R)}class la{constructor(S,F){this.type=S,this.value=F}static parse(S,F){if(S.length!==2)return F.error(`'literal' expression requires exactly one argument, but found ${S.length-1} instead.`);if(!yn(S[1]))return F.error("invalid value");let W=S[1],te=Mn(W),fe=F.expectedType;return te.kind!=="array"||te.N!==0||!fe||fe.kind!=="array"||typeof fe.N=="number"&&fe.N!==0||(te=fe),new la(te,W)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class ma{constructor(S){this.name="ExpressionEvaluationError",this.message=S}toJSON(){return this.message}}let Wa={string:bt,number:Ft,boolean:yt,object:lr};class Fa{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W,te=1,fe=S[0];if(fe==="array"){let ze,Ke;if(S.length>2){let ut=S[1];if(typeof ut!="string"||!(ut in Wa)||ut==="object")return F.error('The item type argument of "array" must be one of string, number, boolean',1);ze=Wa[ut],te++}else ze=Tr;if(S.length>3){if(S[2]!==null&&(typeof S[2]!="number"||S[2]<0||S[2]!==Math.floor(S[2])))return F.error('The length argument to "array" must be a positive integer literal',2);Ke=S[2],te++}W=Ge(ze,Ke)}else{if(!Wa[fe])throw new Error(`Types doesn't contain name = ${fe}`);W=Wa[fe]}let pe=[];for(;teS.outputDefined())}}let Wo={"to-boolean":yt,"to-color":Yt,"to-number":Ft,"to-string":bt};class da{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W=S[0];if(!Wo[W])throw new Error(`Can't parse ${W} as it is not part of the known types`);if((W==="to-boolean"||W==="to-string")&&S.length!==2)return F.error("Expected one argument.");let te=Wo[W],fe=[];for(let pe=1;pe4?`Invalid rbga value ${JSON.stringify(F)}: expected an array containing either three or four numeric values.`:cn(F[0],F[1],F[2],F[3]),!W))return new ar(F[0]/255,F[1]/255,F[2]/255,F[3])}throw new ma(W||`Could not parse color from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"padding":{let F;for(let W of this.args){F=W.evaluate(S);let te=$r.parse(F);if(te)return te}throw new ma(`Could not parse padding from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"variableAnchorOffsetCollection":{let F;for(let W of this.args){F=W.evaluate(S);let te=Ji.parse(F);if(te)return te}throw new ma(`Could not parse variableAnchorOffsetCollection from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"number":{let F=null;for(let W of this.args){if(F=W.evaluate(S),F===null)return 0;let te=Number(F);if(!isNaN(te))return te}throw new ma(`Could not convert ${JSON.stringify(F)} to number.`)}case"formatted":return ri.fromString(Ba(this.args[0].evaluate(S)));case"resolvedImage":return en.fromString(Ba(this.args[0].evaluate(S)));default:return Ba(this.args[0].evaluate(S))}}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}let Wn=["Unknown","Point","LineString","Polygon"];class Ga{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Wn[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(S){let F=this._parseColorCache[S];return F||(F=this._parseColorCache[S]=ar.parse(S)),F}}class vo{constructor(S,F,W=[],te,fe=new er,pe=[]){this.registry=S,this.path=W,this.key=W.map(ze=>`[${ze}]`).join(""),this.scope=fe,this.errors=pe,this.expectedType=te,this._isConstant=F}parse(S,F,W,te,fe={}){return F?this.concat(F,W,te)._parse(S,fe):this._parse(S,fe)}_parse(S,F){function W(te,fe,pe){return pe==="assert"?new Fa(fe,[te]):pe==="coerce"?new da(fe,[te]):te}if(S!==null&&typeof S!="string"&&typeof S!="boolean"&&typeof S!="number"||(S=["literal",S]),Array.isArray(S)){if(S.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let te=S[0];if(typeof te!="string")return this.error(`Expression name must be a string, but found ${typeof te} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let fe=this.registry[te];if(fe){let pe=fe.parse(S,this);if(!pe)return null;if(this.expectedType){let ze=this.expectedType,Ke=pe.type;if(ze.kind!=="string"&&ze.kind!=="number"&&ze.kind!=="boolean"&&ze.kind!=="object"&&ze.kind!=="array"||Ke.kind!=="value")if(ze.kind!=="color"&&ze.kind!=="formatted"&&ze.kind!=="resolvedImage"||Ke.kind!=="value"&&Ke.kind!=="string")if(ze.kind!=="padding"||Ke.kind!=="value"&&Ke.kind!=="number"&&Ke.kind!=="array")if(ze.kind!=="variableAnchorOffsetCollection"||Ke.kind!=="value"&&Ke.kind!=="array"){if(this.checkSubtype(ze,Ke))return null}else pe=W(pe,ze,F.typeAnnotation||"coerce");else pe=W(pe,ze,F.typeAnnotation||"coerce");else pe=W(pe,ze,F.typeAnnotation||"coerce");else pe=W(pe,ze,F.typeAnnotation||"assert")}if(!(pe instanceof la)&&pe.type.kind!=="resolvedImage"&&this._isConstant(pe)){let ze=new Ga;try{pe=new la(pe.type,pe.evaluate(ze))}catch(Ke){return this.error(Ke.message),null}}return pe}return this.error(`Unknown expression "${te}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(S===void 0?"'undefined' value invalid. Use null instead.":typeof S=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof S} instead.`)}concat(S,F,W){let te=typeof S=="number"?this.path.concat(S):this.path,fe=W?this.scope.concat(W):this.scope;return new vo(this.registry,this._isConstant,te,F||null,fe,this.errors)}error(S,...F){let W=`${this.key}${F.map(te=>`[${te}]`).join("")}`;this.errors.push(new Et(W,S))}checkSubtype(S,F){let W=$e(S,F);return W&&this.error(W),W}}class jn{constructor(S,F){this.type=F.type,this.bindings=[].concat(S),this.result=F}evaluate(S){return this.result.evaluate(S)}eachChild(S){for(let F of this.bindings)S(F[1]);S(this.result)}static parse(S,F){if(S.length<4)return F.error(`Expected at least 3 arguments, but found ${S.length-1} instead.`);let W=[];for(let fe=1;fe=W.length)throw new ma(`Array index out of bounds: ${F} > ${W.length-1}.`);if(F!==Math.floor(F))throw new ma(`Array index must be an integer, but found ${F} instead.`);return W[F]}eachChild(S){S(this.index),S(this.input)}outputDefined(){return!1}}class Qr{constructor(S,F){this.type=yt,this.needle=S,this.haystack=F}static parse(S,F){if(S.length!==3)return F.error(`Expected 2 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,Tr),te=F.parse(S[2],2,Tr);return W&&te?wt(W.type,[yt,bt,Ft,Ut,Tr])?new Qr(W,te):F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(W.type)} instead`):null}evaluate(S){let F=this.needle.evaluate(S),W=this.haystack.evaluate(S);if(!W)return!1;if(!Ie(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Mn(F))} instead.`);if(!Ie(W,["string","array"]))throw new ma(`Expected second argument to be of type array or string, but found ${Je(Mn(W))} instead.`);return W.indexOf(F)>=0}eachChild(S){S(this.needle),S(this.haystack)}outputDefined(){return!0}}class pi{constructor(S,F,W){this.type=Ft,this.needle=S,this.haystack=F,this.fromIndex=W}static parse(S,F){if(S.length<=2||S.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,Tr),te=F.parse(S[2],2,Tr);if(!W||!te)return null;if(!wt(W.type,[yt,bt,Ft,Ut,Tr]))return F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(W.type)} instead`);if(S.length===4){let fe=F.parse(S[3],3,Ft);return fe?new pi(W,te,fe):null}return new pi(W,te)}evaluate(S){let F=this.needle.evaluate(S),W=this.haystack.evaluate(S);if(!Ie(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Mn(F))} instead.`);let te;if(this.fromIndex&&(te=this.fromIndex.evaluate(S)),Ie(W,["string"])){let fe=W.indexOf(F,te);return fe===-1?-1:[...W.slice(0,fe)].length}if(Ie(W,["array"]))return W.indexOf(F,te);throw new ma(`Expected second argument to be of type array or string, but found ${Je(Mn(W))} instead.`)}eachChild(S){S(this.needle),S(this.haystack),this.fromIndex&&S(this.fromIndex)}outputDefined(){return!1}}class fn{constructor(S,F,W,te,fe,pe){this.inputType=S,this.type=F,this.input=W,this.cases=te,this.outputs=fe,this.otherwise=pe}static parse(S,F){if(S.length<5)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if(S.length%2!=1)return F.error("Expected an even number of arguments.");let W,te;F.expectedType&&F.expectedType.kind!=="value"&&(te=F.expectedType);let fe={},pe=[];for(let ut=2;utNumber.MAX_SAFE_INTEGER)return fr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Lr=="number"&&Math.floor(Lr)!==Lr)return fr.error("Numeric branch labels must be integer values.");if(W){if(fr.checkSubtype(W,Mn(Lr)))return null}else W=Mn(Lr);if(fe[String(Lr)]!==void 0)return fr.error("Branch labels must be unique.");fe[String(Lr)]=pe.length}let mr=F.parse(Qt,ut,te);if(!mr)return null;te=te||mr.type,pe.push(mr)}let ze=F.parse(S[1],1,Tr);if(!ze)return null;let Ke=F.parse(S[S.length-1],S.length-1,te);return Ke?ze.type.kind!=="value"&&F.concat(1).checkSubtype(W,ze.type)?null:new fn(W,te,ze,fe,pe,Ke):null}evaluate(S){let F=this.input.evaluate(S);return(Mn(F)===this.inputType&&this.outputs[this.cases[F]]||this.otherwise).evaluate(S)}eachChild(S){S(this.input),this.outputs.forEach(S),S(this.otherwise)}outputDefined(){return this.outputs.every(S=>S.outputDefined())&&this.otherwise.outputDefined()}}class Sn{constructor(S,F,W){this.type=S,this.branches=F,this.otherwise=W}static parse(S,F){if(S.length<4)return F.error(`Expected at least 3 arguments, but found only ${S.length-1}.`);if(S.length%2!=0)return F.error("Expected an odd number of arguments.");let W;F.expectedType&&F.expectedType.kind!=="value"&&(W=F.expectedType);let te=[];for(let pe=1;peF.outputDefined())&&this.otherwise.outputDefined()}}class En{constructor(S,F,W,te){this.type=S,this.input=F,this.beginIndex=W,this.endIndex=te}static parse(S,F){if(S.length<=2||S.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,Tr),te=F.parse(S[2],2,Ft);if(!W||!te)return null;if(!wt(W.type,[Ge(Tr),bt,Tr]))return F.error(`Expected first argument to be of type array or string, but found ${Je(W.type)} instead`);if(S.length===4){let fe=F.parse(S[3],3,Ft);return fe?new En(W.type,W,te,fe):null}return new En(W.type,W,te)}evaluate(S){let F=this.input.evaluate(S),W=this.beginIndex.evaluate(S),te;if(this.endIndex&&(te=this.endIndex.evaluate(S)),Ie(F,["string"]))return[...F].slice(W,te).join("");if(Ie(F,["array"]))return F.slice(W,te);throw new ma(`Expected first argument to be of type array or string, but found ${Je(Mn(F))} instead.`)}eachChild(S){S(this.input),S(this.beginIndex),this.endIndex&&S(this.endIndex)}outputDefined(){return!1}}function ki(R,S){let F=R.length-1,W,te,fe=0,pe=F,ze=0;for(;fe<=pe;)if(ze=Math.floor((fe+pe)/2),W=R[ze],te=R[ze+1],W<=S){if(ze===F||SS))throw new ma("Input is not a number.");pe=ze-1}return 0}class _n{constructor(S,F,W){this.type=S,this.input=F,this.labels=[],this.outputs=[];for(let[te,fe]of W)this.labels.push(te),this.outputs.push(fe)}static parse(S,F){if(S.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return F.error("Expected an even number of arguments.");let W=F.parse(S[1],1,Ft);if(!W)return null;let te=[],fe=null;F.expectedType&&F.expectedType.kind!=="value"&&(fe=F.expectedType);for(let pe=1;pe=ze)return F.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',ut);let Qt=F.parse(Ke,Lt,fe);if(!Qt)return null;fe=fe||Qt.type,te.push([ze,Qt])}return new _n(fe,W,te)}evaluate(S){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(S);let te=this.input.evaluate(S);if(te<=F[0])return W[0].evaluate(S);let fe=F.length;return te>=F[fe-1]?W[fe-1].evaluate(S):W[ki(F,te)].evaluate(S)}eachChild(S){S(this.input);for(let F of this.outputs)S(F)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function ya(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}var Jn=Ma;function Ma(R,S,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(W-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=S,this.p2x=F,this.p2y=W}Ma.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,S){if(S===void 0&&(S=1e-6),R<0)return 0;if(R>1)return 1;for(var F=R,W=0;W<8;W++){var te=this.sampleCurveX(F)-R;if(Math.abs(te)te?pe=F:ze=F,F=.5*(ze-pe)+pe;return F},solve:function(R,S){return this.sampleCurveY(this.solveCurveX(R,S))}};var _o=ya(Jn);function No(R,S,F){return R+F*(S-R)}function po(R,S,F){return R.map((W,te)=>No(W,S[te],F))}let Lo={number:No,color:function(R,S,F,W="rgb"){switch(W){case"rgb":{let[te,fe,pe,ze]=po(R.rgb,S.rgb,F);return new ar(te,fe,pe,ze,!1)}case"hcl":{let[te,fe,pe,ze]=R.hcl,[Ke,ut,Lt,Qt]=S.hcl,fr,mr;if(isNaN(te)||isNaN(Ke))isNaN(te)?isNaN(Ke)?fr=NaN:(fr=Ke,pe!==1&&pe!==0||(mr=ut)):(fr=te,Lt!==1&&Lt!==0||(mr=fe));else{let dn=Ke-te;Ke>te&&dn>180?dn-=360:Ke180&&(dn+=360),fr=te+F*dn}let[Lr,zr,ui,yi]=function([dn,Fi,ln,An]){return dn=isNaN(dn)?0:dn*di,pn([ln,Math.cos(dn)*Fi,Math.sin(dn)*Fi,An])}([fr,mr!=null?mr:No(fe,ut,F),No(pe,Lt,F),No(ze,Qt,F)]);return new ar(Lr,zr,ui,yi,!1)}case"lab":{let[te,fe,pe,ze]=pn(po(R.lab,S.lab,F));return new ar(te,fe,pe,ze,!1)}}},array:po,padding:function(R,S,F){return new $r(po(R.values,S.values,F))},variableAnchorOffsetCollection:function(R,S,F){let W=R.values,te=S.values;if(W.length!==te.length)throw new ma(`Cannot interpolate values of different length. from: ${R.toString()}, to: ${S.toString()}`);let fe=[];for(let pe=0;petypeof Lt!="number"||Lt<0||Lt>1))return F.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);te={name:"cubic-bezier",controlPoints:ut}}}if(S.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return F.error("Expected an even number of arguments.");if(fe=F.parse(fe,2,Ft),!fe)return null;let ze=[],Ke=null;W==="interpolate-hcl"||W==="interpolate-lab"?Ke=Yt:F.expectedType&&F.expectedType.kind!=="value"&&(Ke=F.expectedType);for(let ut=0;ut=Lt)return F.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',fr);let Lr=F.parse(Qt,mr,Ke);if(!Lr)return null;Ke=Ke||Lr.type,ze.push([Lt,Lr])}return xe(Ke,Ft)||xe(Ke,Yt)||xe(Ke,Wr)||xe(Ke,dt)||xe(Ke,Ge(Ft))?new Co(Ke,W,te,fe,ze):F.error(`Type ${Je(Ke)} is not interpolatable.`)}evaluate(S){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(S);let te=this.input.evaluate(S);if(te<=F[0])return W[0].evaluate(S);let fe=F.length;if(te>=F[fe-1])return W[fe-1].evaluate(S);let pe=ki(F,te),ze=Co.interpolationFactor(this.interpolation,te,F[pe],F[pe+1]),Ke=W[pe].evaluate(S),ut=W[pe+1].evaluate(S);switch(this.operator){case"interpolate":return Lo[this.type.kind](Ke,ut,ze);case"interpolate-hcl":return Lo.color(Ke,ut,ze,"hcl");case"interpolate-lab":return Lo.color(Ke,ut,ze,"lab")}}eachChild(S){S(this.input);for(let F of this.outputs)S(F)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function Fs(R,S,F,W){let te=W-F,fe=R-F;return te===0?0:S===1?fe/te:(Math.pow(S,fe)-1)/(Math.pow(S,te)-1)}class zs{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expectected at least one argument.");let W=null,te=F.expectedType;te&&te.kind!=="value"&&(W=te);let fe=[];for(let ze of S.slice(1)){let Ke=F.parse(ze,1+fe.length,W,void 0,{typeAnnotation:"omit"});if(!Ke)return null;W=W||Ke.type,fe.push(Ke)}if(!W)throw new Error("No output type");let pe=te&&fe.some(ze=>$e(te,ze.type));return new zs(pe?Tr:W,fe)}evaluate(S){let F,W=null,te=0;for(let fe of this.args)if(te++,W=fe.evaluate(S),W&&W instanceof en&&!W.available&&(F||(F=W.name),W=null,te===this.args.length&&(W=F)),W!==null)break;return W}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}function ul(R,S){return R==="=="||R==="!="?S.kind==="boolean"||S.kind==="string"||S.kind==="number"||S.kind==="null"||S.kind==="value":S.kind==="string"||S.kind==="number"||S.kind==="value"}function cl(R,S,F,W){return W.compare(S,F)===0}function zl(R,S,F){let W=R!=="=="&&R!=="!=";return class NHe{constructor(fe,pe,ze){this.type=yt,this.lhs=fe,this.rhs=pe,this.collator=ze,this.hasUntypedArgument=fe.type.kind==="value"||pe.type.kind==="value"}static parse(fe,pe){if(fe.length!==3&&fe.length!==4)return pe.error("Expected two or three arguments.");let ze=fe[0],Ke=pe.parse(fe[1],1,Tr);if(!Ke)return null;if(!ul(ze,Ke.type))return pe.concat(1).error(`"${ze}" comparisons are not supported for type '${Je(Ke.type)}'.`);let ut=pe.parse(fe[2],2,Tr);if(!ut)return null;if(!ul(ze,ut.type))return pe.concat(2).error(`"${ze}" comparisons are not supported for type '${Je(ut.type)}'.`);if(Ke.type.kind!==ut.type.kind&&Ke.type.kind!=="value"&&ut.type.kind!=="value")return pe.error(`Cannot compare types '${Je(Ke.type)}' and '${Je(ut.type)}'.`);W&&(Ke.type.kind==="value"&&ut.type.kind!=="value"?Ke=new Fa(ut.type,[Ke]):Ke.type.kind!=="value"&&ut.type.kind==="value"&&(ut=new Fa(Ke.type,[ut])));let Lt=null;if(fe.length===4){if(Ke.type.kind!=="string"&&ut.type.kind!=="string"&&Ke.type.kind!=="value"&&ut.type.kind!=="value")return pe.error("Cannot use collator to compare non-string types.");if(Lt=pe.parse(fe[3],3,Rr),!Lt)return null}return new NHe(Ke,ut,Lt)}evaluate(fe){let pe=this.lhs.evaluate(fe),ze=this.rhs.evaluate(fe);if(W&&this.hasUntypedArgument){let Ke=Mn(pe),ut=Mn(ze);if(Ke.kind!==ut.kind||Ke.kind!=="string"&&Ke.kind!=="number")throw new ma(`Expected arguments for "${R}" to be (string, string) or (number, number), but found (${Ke.kind}, ${ut.kind}) instead.`)}if(this.collator&&!W&&this.hasUntypedArgument){let Ke=Mn(pe),ut=Mn(ze);if(Ke.kind!=="string"||ut.kind!=="string")return S(fe,pe,ze)}return this.collator?F(fe,pe,ze,this.collator.evaluate(fe)):S(fe,pe,ze)}eachChild(fe){fe(this.lhs),fe(this.rhs),this.collator&&fe(this.collator)}outputDefined(){return!0}}}let cs=zl("==",function(R,S,F){return S===F},cl),nl=zl("!=",function(R,S,F){return S!==F},function(R,S,F,W){return!cl(0,S,F,W)}),Ss=zl("<",function(R,S,F){return S",function(R,S,F){return S>F},function(R,S,F,W){return W.compare(S,F)>0}),Js=zl("<=",function(R,S,F){return S<=F},function(R,S,F,W){return W.compare(S,F)<=0}),Os=zl(">=",function(R,S,F){return S>=F},function(R,S,F,W){return W.compare(S,F)>=0});class Io{constructor(S,F,W){this.type=Rr,this.locale=W,this.caseSensitive=S,this.diacriticSensitive=F}static parse(S,F){if(S.length!==2)return F.error("Expected one argument.");let W=S[1];if(typeof W!="object"||Array.isArray(W))return F.error("Collator options argument must be an object.");let te=F.parse(W["case-sensitive"]!==void 0&&W["case-sensitive"],1,yt);if(!te)return null;let fe=F.parse(W["diacritic-sensitive"]!==void 0&&W["diacritic-sensitive"],1,yt);if(!fe)return null;let pe=null;return W.locale&&(pe=F.parse(W.locale,1,bt),!pe)?null:new Io(te,fe,pe)}evaluate(S){return new Er(this.caseSensitive.evaluate(S),this.diacriticSensitive.evaluate(S),this.locale?this.locale.evaluate(S):null)}eachChild(S){S(this.caseSensitive),S(this.diacriticSensitive),this.locale&&S(this.locale)}outputDefined(){return!1}}class us{constructor(S,F,W,te,fe){this.type=bt,this.number=S,this.locale=F,this.currency=W,this.minFractionDigits=te,this.maxFractionDigits=fe}static parse(S,F){if(S.length!==3)return F.error("Expected two arguments.");let W=F.parse(S[1],1,Ft);if(!W)return null;let te=S[2];if(typeof te!="object"||Array.isArray(te))return F.error("NumberFormat options argument must be an object.");let fe=null;if(te.locale&&(fe=F.parse(te.locale,1,bt),!fe))return null;let pe=null;if(te.currency&&(pe=F.parse(te.currency,1,bt),!pe))return null;let ze=null;if(te["min-fraction-digits"]&&(ze=F.parse(te["min-fraction-digits"],1,Ft),!ze))return null;let Ke=null;return te["max-fraction-digits"]&&(Ke=F.parse(te["max-fraction-digits"],1,Ft),!Ke)?null:new us(W,fe,pe,ze,Ke)}evaluate(S){return new Intl.NumberFormat(this.locale?this.locale.evaluate(S):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(S):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(S):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(S):void 0}).format(this.number.evaluate(S))}eachChild(S){S(this.number),this.locale&&S(this.locale),this.currency&&S(this.currency),this.minFractionDigits&&S(this.minFractionDigits),this.maxFractionDigits&&S(this.maxFractionDigits)}outputDefined(){return!1}}class Zl{constructor(S){this.type=ei,this.sections=S}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W=S[1];if(!Array.isArray(W)&&typeof W=="object")return F.error("First argument must be an image or text section.");let te=[],fe=!1;for(let pe=1;pe<=S.length-1;++pe){let ze=S[pe];if(fe&&typeof ze=="object"&&!Array.isArray(ze)){fe=!1;let Ke=null;if(ze["font-scale"]&&(Ke=F.parse(ze["font-scale"],1,Ft),!Ke))return null;let ut=null;if(ze["text-font"]&&(ut=F.parse(ze["text-font"],1,Ge(bt)),!ut))return null;let Lt=null;if(ze["text-color"]&&(Lt=F.parse(ze["text-color"],1,Yt),!Lt))return null;let Qt=te[te.length-1];Qt.scale=Ke,Qt.font=ut,Qt.textColor=Lt}else{let Ke=F.parse(S[pe],1,Tr);if(!Ke)return null;let ut=Ke.type.kind;if(ut!=="string"&&ut!=="value"&&ut!=="null"&&ut!=="resolvedImage")return F.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");fe=!0,te.push({content:Ke,scale:null,font:null,textColor:null})}}return new Zl(te)}evaluate(S){return new ri(this.sections.map(F=>{let W=F.content.evaluate(S);return Mn(W)===Ur?new Zr("",W,null,null,null):new Zr(Ba(W),null,F.scale?F.scale.evaluate(S):null,F.font?F.font.evaluate(S).join(","):null,F.textColor?F.textColor.evaluate(S):null)}))}eachChild(S){for(let F of this.sections)S(F.content),F.scale&&S(F.scale),F.font&&S(F.font),F.textColor&&S(F.textColor)}outputDefined(){return!1}}class Su{constructor(S){this.type=Ur,this.input=S}static parse(S,F){if(S.length!==2)return F.error("Expected two arguments.");let W=F.parse(S[1],1,bt);return W?new Su(W):F.error("No image name provided.")}evaluate(S){let F=this.input.evaluate(S),W=en.fromString(F);return W&&S.availableImages&&(W.available=S.availableImages.indexOf(F)>-1),W}eachChild(S){S(this.input)}outputDefined(){return!1}}class nc{constructor(S){this.type=Ft,this.input=S}static parse(S,F){if(S.length!==2)return F.error(`Expected 1 argument, but found ${S.length-1} instead.`);let W=F.parse(S[1],1);return W?W.type.kind!=="array"&&W.type.kind!=="string"&&W.type.kind!=="value"?F.error(`Expected argument of type string or array, but found ${Je(W.type)} instead.`):new nc(W):null}evaluate(S){let F=this.input.evaluate(S);if(typeof F=="string")return[...F].length;if(Array.isArray(F))return F.length;throw new ma(`Expected value to be of type string or array, but found ${Je(Mn(F))} instead.`)}eachChild(S){S(this.input)}outputDefined(){return!1}}let ws=8192;function Fn(R,S){let F=(180+R[0])/360,W=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R[1]*Math.PI/360)))/360,te=Math.pow(2,S.z);return[Math.round(F*te*ws),Math.round(W*te*ws)]}function _a(R,S){let F=Math.pow(2,S.z);return[(te=(R[0]/ws+S.x)/F,360*te-180),(W=(R[1]/ws+S.y)/F,360/Math.PI*Math.atan(Math.exp((180-360*W)*Math.PI/180))-90)];var W,te}function Vu(R,S){R[0]=Math.min(R[0],S[0]),R[1]=Math.min(R[1],S[1]),R[2]=Math.max(R[2],S[0]),R[3]=Math.max(R[3],S[1])}function Ol(R,S){return!(R[0]<=S[0]||R[2]>=S[2]||R[1]<=S[1]||R[3]>=S[3])}function xo(R,S,F){let W=R[0]-S[0],te=R[1]-S[1],fe=R[0]-F[0],pe=R[1]-F[1];return W*pe-fe*te==0&&W*fe<=0&&te*pe<=0}function Yl(R,S,F,W){return(te=[W[0]-F[0],W[1]-F[1]])[0]*(fe=[S[0]-R[0],S[1]-R[1]])[1]-te[1]*fe[0]!=0&&!(!qo(R,S,F,W)||!qo(F,W,R,S));var te,fe}function Us(R,S,F){for(let W of F)for(let te=0;te(te=R)[1]!=(pe=ze[Ke+1])[1]>te[1]&&te[0]<(pe[0]-fe[0])*(te[1]-fe[1])/(pe[1]-fe[1])+fe[0]&&(W=!W)}var te,fe,pe;return W}function ac(R,S){for(let F of S)if(Hl(R,F))return!0;return!1}function aa(R,S){for(let F of R)if(!Hl(F,S))return!1;for(let F=0;F0&&ze<0||pe<0&&ze>0}function ql(R,S,F){let W=[];for(let te=0;teF[2]){let te=.5*W,fe=R[0]-F[0]>te?-W:F[0]-R[0]>te?W:0;fe===0&&(fe=R[0]-F[2]>te?-W:F[2]-R[0]>te?W:0),R[0]+=fe}Vu(S,R)}function rf(R,S,F,W){let te=Math.pow(2,W.z)*ws,fe=[W.x*ws,W.y*ws],pe=[];for(let ze of R)for(let Ke of ze){let ut=[Ke.x+fe[0],Ke.y+fe[1]];Do(ut,S,F,te),pe.push(ut)}return pe}function Uf(R,S,F,W){let te=Math.pow(2,W.z)*ws,fe=[W.x*ws,W.y*ws],pe=[];for(let Ke of R){let ut=[];for(let Lt of Ke){let Qt=[Lt.x+fe[0],Lt.y+fe[1]];Vu(S,Qt),ut.push(Qt)}pe.push(ut)}if(S[2]-S[0]<=te/2){(ze=S)[0]=ze[1]=1/0,ze[2]=ze[3]=-1/0;for(let Ke of pe)for(let ut of Ke)Do(ut,S,F,te)}var ze;return pe}class ml{constructor(S,F){this.type=yt,this.geojson=S,this.geometries=F}static parse(S,F){if(S.length!==2)return F.error(`'within' expression requires exactly one argument, but found ${S.length-1} instead.`);if(yn(S[1])){let W=S[1];if(W.type==="FeatureCollection"){let te=[];for(let fe of W.features){let{type:pe,coordinates:ze}=fe.geometry;pe==="Polygon"&&te.push(ze),pe==="MultiPolygon"&&te.push(...ze)}if(te.length)return new ml(W,{type:"MultiPolygon",coordinates:te})}else if(W.type==="Feature"){let te=W.geometry.type;if(te==="Polygon"||te==="MultiPolygon")return new ml(W,W.geometry)}else if(W.type==="Polygon"||W.type==="MultiPolygon")return new ml(W,W)}return F.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(F,W){let te=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],pe=F.canonicalID();if(W.type==="Polygon"){let ze=ql(W.coordinates,fe,pe),Ke=rf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ut of Ke)if(!Hl(ut,ze))return!1}if(W.type==="MultiPolygon"){let ze=Pc(W.coordinates,fe,pe),Ke=rf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ut of Ke)if(!ac(ut,ze))return!1}return!0}(S,this.geometries);if(S.geometryType()==="LineString")return function(F,W){let te=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],pe=F.canonicalID();if(W.type==="Polygon"){let ze=ql(W.coordinates,fe,pe),Ke=Uf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ut of Ke)if(!aa(ut,ze))return!1}if(W.type==="MultiPolygon"){let ze=Pc(W.coordinates,fe,pe),Ke=Uf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ut of Ke)if(!Oo(ut,ze))return!1}return!0}(S,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let Zc=class{constructor(R=[],S=(F,W)=>FW?1:0){if(this.data=R,this.length=this.data.length,this.compare=S,this.length>0)for(let F=(this.length>>1)-1;F>=0;F--)this._down(F)}push(R){this.data.push(R),this._up(this.length++)}pop(){if(this.length===0)return;let R=this.data[0],S=this.data.pop();return--this.length>0&&(this.data[0]=S,this._down(0)),R}peek(){return this.data[0]}_up(R){let{data:S,compare:F}=this,W=S[R];for(;R>0;){let te=R-1>>1,fe=S[te];if(F(W,fe)>=0)break;S[R]=fe,R=te}S[R]=W}_down(R){let{data:S,compare:F}=this,W=this.length>>1,te=S[R];for(;R=0)break;S[R]=S[fe],R=fe}S[R]=te}};function Kl(R,S,F,W,te){qs(R,S,F,W||R.length-1,te||oc)}function qs(R,S,F,W,te){for(;W>F;){if(W-F>600){var fe=W-F+1,pe=S-F+1,ze=Math.log(fe),Ke=.5*Math.exp(2*ze/3),ut=.5*Math.sqrt(ze*Ke*(fe-Ke)/fe)*(pe-fe/2<0?-1:1);qs(R,S,Math.max(F,Math.floor(S-pe*Ke/fe+ut)),Math.min(W,Math.floor(S+(fe-pe)*Ke/fe+ut)),te)}var Lt=R[S],Qt=F,fr=W;for(yu(R,F,S),te(R[W],Lt)>0&&yu(R,F,W);Qt0;)fr--}te(R[F],Lt)===0?yu(R,F,fr):yu(R,++fr,W),fr<=S&&(F=fr+1),S<=fr&&(W=fr-1)}}function yu(R,S,F){var W=R[S];R[S]=R[F],R[F]=W}function oc(R,S){return RS?1:0}function Cf(R,S){if(R.length<=1)return[R];let F=[],W,te;for(let fe of R){let pe=Nh(fe);pe!==0&&(fe.area=Math.abs(pe),te===void 0&&(te=pe<0),te===pe<0?(W&&F.push(W),W=[fe]):W.push(fe))}if(W&&F.push(W),S>1)for(let fe=0;fe1?(ut=S[Ke+1][0],Lt=S[Ke+1][1]):mr>0&&(ut+=Qt/this.kx*mr,Lt+=fr/this.ky*mr)),Qt=this.wrap(F[0]-ut)*this.kx,fr=(F[1]-Lt)*this.ky;let Lr=Qt*Qt+fr*fr;Lr180;)S-=360;return S}}function Jl(R,S){return S[0]-R[0]}function hl(R){return R[1]-R[0]+1}function lc(R,S){return R[1]>=R[0]&&R[1]R[1])return[null,null];let F=hl(R);if(S){if(F===2)return[R,null];let te=Math.floor(F/2);return[[R[0],R[0]+te],[R[0]+te,R[1]]]}if(F===1)return[R,null];let W=Math.floor(F/2)-1;return[[R[0],R[0]+W],[R[0]+W+1,R[1]]]}function Cs(R,S){if(!lc(S,R.length))return[1/0,1/0,-1/0,-1/0];let F=[1/0,1/0,-1/0,-1/0];for(let W=S[0];W<=S[1];++W)Vu(F,R[W]);return F}function js(R){let S=[1/0,1/0,-1/0,-1/0];for(let F of R)for(let W of F)Vu(S,W);return S}function Go(R){return R[0]!==-1/0&&R[1]!==-1/0&&R[2]!==1/0&&R[3]!==1/0}function gs(R,S,F){if(!Go(R)||!Go(S))return NaN;let W=0,te=0;return R[2]S[2]&&(W=R[0]-S[2]),R[1]>S[3]&&(te=R[1]-S[3]),R[3]=W)return W;if(Ol(te,fe)){if(od(R,S))return 0}else if(od(S,R))return 0;let pe=1/0;for(let ze of R)for(let Ke=0,ut=ze.length,Lt=ut-1;Ke0;){let Ke=pe.pop();if(Ke[0]>=fe)continue;let ut=Ke[1],Lt=S?50:100;if(hl(ut)<=Lt){if(!lc(ut,R.length))return NaN;if(S){let Qt=Po(R,ut,F,W);if(isNaN(Qt)||Qt===0)return Qt;fe=Math.min(fe,Qt)}else for(let Qt=ut[0];Qt<=ut[1];++Qt){let fr=ad(R[Qt],F,W);if(fe=Math.min(fe,fr),fe===0)return 0}}else{let Qt=Fu(ut,S);Pa(pe,fe,W,R,ze,Qt[0]),Pa(pe,fe,W,R,ze,Qt[1])}}return fe}function wl(R,S,F,W,te,fe=1/0){let pe=Math.min(fe,te.distance(R[0],F[0]));if(pe===0)return pe;let ze=new Zc([[0,[0,R.length-1],[0,F.length-1]]],Jl);for(;ze.length>0;){let Ke=ze.pop();if(Ke[0]>=pe)continue;let ut=Ke[1],Lt=Ke[2],Qt=S?50:100,fr=W?50:100;if(hl(ut)<=Qt&&hl(Lt)<=fr){if(!lc(ut,R.length)&&lc(Lt,F.length))return NaN;let mr;if(S&&W)mr=Gu(R,ut,F,Lt,te),pe=Math.min(pe,mr);else if(S&&!W){let Lr=R.slice(ut[0],ut[1]+1);for(let zr=Lt[0];zr<=Lt[1];++zr)if(mr=uc(F[zr],Lr,te),pe=Math.min(pe,mr),pe===0)return pe}else if(!S&&W){let Lr=F.slice(Lt[0],Lt[1]+1);for(let zr=ut[0];zr<=ut[1];++zr)if(mr=uc(R[zr],Lr,te),pe=Math.min(pe,mr),pe===0)return pe}else mr=Bs(R,ut,F,Lt,te),pe=Math.min(pe,mr)}else{let mr=Fu(ut,S),Lr=Fu(Lt,W);af(ze,pe,te,R,F,mr[0],Lr[0]),af(ze,pe,te,R,F,mr[0],Lr[1]),af(ze,pe,te,R,F,mr[1],Lr[0]),af(ze,pe,te,R,F,mr[1],Lr[1])}}return pe}function Gf(R){return R.type==="MultiPolygon"?R.coordinates.map(S=>({type:"Polygon",coordinates:S})):R.type==="MultiLineString"?R.coordinates.map(S=>({type:"LineString",coordinates:S})):R.type==="MultiPoint"?R.coordinates.map(S=>({type:"Point",coordinates:S})):[R]}class Ic{constructor(S,F){this.type=Ft,this.geojson=S,this.geometries=F}static parse(S,F){if(S.length!==2)return F.error(`'distance' expression requires exactly one argument, but found ${S.length-1} instead.`);if(yn(S[1])){let W=S[1];if(W.type==="FeatureCollection")return new Ic(W,W.features.map(te=>Gf(te.geometry)).flat());if(W.type==="Feature")return new Ic(W,Gf(W.geometry));if("type"in W&&"coordinates"in W)return new Ic(W,Gf(W))}return F.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(F,W){let te=F.geometry(),fe=te.flat().map(Ke=>_a([Ke.x,Ke.y],F.canonical));if(te.length===0)return NaN;let pe=new Vf(fe[0][1]),ze=1/0;for(let Ke of W){switch(Ke.type){case"Point":ze=Math.min(ze,wl(fe,!1,[Ke.coordinates],!1,pe,ze));break;case"LineString":ze=Math.min(ze,wl(fe,!1,Ke.coordinates,!0,pe,ze));break;case"Polygon":ze=Math.min(ze,Hu(fe,!1,Ke.coordinates,pe,ze))}if(ze===0)return ze}return ze}(S,this.geometries);if(S.geometryType()==="LineString")return function(F,W){let te=F.geometry(),fe=te.flat().map(Ke=>_a([Ke.x,Ke.y],F.canonical));if(te.length===0)return NaN;let pe=new Vf(fe[0][1]),ze=1/0;for(let Ke of W){switch(Ke.type){case"Point":ze=Math.min(ze,wl(fe,!0,[Ke.coordinates],!1,pe,ze));break;case"LineString":ze=Math.min(ze,wl(fe,!0,Ke.coordinates,!0,pe,ze));break;case"Polygon":ze=Math.min(ze,Hu(fe,!0,Ke.coordinates,pe,ze))}if(ze===0)return ze}return ze}(S,this.geometries);if(S.geometryType()==="Polygon")return function(F,W){let te=F.geometry();if(te.length===0||te[0].length===0)return NaN;let fe=Cf(te,0).map(Ke=>Ke.map(ut=>ut.map(Lt=>_a([Lt.x,Lt.y],F.canonical)))),pe=new Vf(fe[0][0][0][1]),ze=1/0;for(let Ke of W)for(let ut of fe){switch(Ke.type){case"Point":ze=Math.min(ze,Hu([Ke.coordinates],!1,ut,pe,ze));break;case"LineString":ze=Math.min(ze,Hu(Ke.coordinates,!0,ut,pe,ze));break;case"Polygon":ze=Math.min(ze,Yo(ut,Ke.coordinates,pe,ze))}if(ze===0)return ze}return ze}(S,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let mf={"==":cs,"!=":nl,">":fl,"<":Ss,">=":Os,"<=":Js,array:Fa,at:Cr,boolean:Fa,case:Sn,coalesce:zs,collator:Io,format:Zl,image:Su,in:Qr,"index-of":pi,interpolate:Co,"interpolate-hcl":Co,"interpolate-lab":Co,length:nc,let:jn,literal:la,match:fn,number:Fa,"number-format":us,object:Fa,slice:En,step:_n,string:Fa,"to-boolean":da,"to-color":da,"to-number":da,"to-string":da,var:St,within:ml,distance:Ic};class Bl{constructor(S,F,W,te){this.name=S,this.type=F,this._evaluate=W,this.args=te}evaluate(S){return this._evaluate(S,this.args)}eachChild(S){this.args.forEach(S)}outputDefined(){return!1}static parse(S,F){let W=S[0],te=Bl.definitions[W];if(!te)return F.error(`Unknown expression "${W}". If you wanted a literal array, use ["literal", [...]].`,0);let fe=Array.isArray(te)?te[0]:te.type,pe=Array.isArray(te)?[[te[1],te[2]]]:te.overloads,ze=pe.filter(([ut])=>!Array.isArray(ut)||ut.length===S.length-1),Ke=null;for(let[ut,Lt]of ze){Ke=new vo(F.registry,eh,F.path,null,F.scope);let Qt=[],fr=!1;for(let mr=1;mr{return fr=Qt,Array.isArray(fr)?`(${fr.map(Je).join(", ")})`:`(${Je(fr.type)}...)`;var fr}).join(" | "),Lt=[];for(let Qt=1;Qt{F=S?F&&eh(W):F&&W instanceof la}),!!F&&th(R)&&Hf(R,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function th(R){if(R instanceof Bl&&(R.name==="get"&&R.args.length===1||R.name==="feature-state"||R.name==="has"&&R.args.length===1||R.name==="properties"||R.name==="geometry-type"||R.name==="id"||/^filter-/.test(R.name))||R instanceof ml||R instanceof Ic)return!1;let S=!0;return R.eachChild(F=>{S&&!th(F)&&(S=!1)}),S}function ju(R){if(R instanceof Bl&&R.name==="feature-state")return!1;let S=!0;return R.eachChild(F=>{S&&!ju(F)&&(S=!1)}),S}function Hf(R,S){if(R instanceof Bl&&S.indexOf(R.name)>=0)return!1;let F=!0;return R.eachChild(W=>{F&&!Hf(W,S)&&(F=!1)}),F}function cc(R){return{result:"success",value:R}}function of(R){return{result:"error",value:R}}function Nl(R){return R["property-type"]==="data-driven"||R["property-type"]==="cross-faded-data-driven"}function Kc(R){return!!R.expression&&R.expression.parameters.indexOf("zoom")>-1}function Rc(R){return!!R.expression&&R.expression.interpolated}function ms(R){return R instanceof Number?"number":R instanceof String?"string":R instanceof Boolean?"boolean":Array.isArray(R)?"array":R===null?"null":typeof R}function jf(R){return typeof R=="object"&&R!==null&&!Array.isArray(R)}function Uh(R){return R}function rh(R,S){let F=S.type==="color",W=R.stops&&typeof R.stops[0][0]=="object",te=W||!(W||R.property!==void 0),fe=R.type||(Rc(S)?"exponential":"interval");if(F||S.type==="padding"){let Lt=F?ar.parse:$r.parse;(R=Qe({},R)).stops&&(R.stops=R.stops.map(Qt=>[Qt[0],Lt(Qt[1])])),R.default=Lt(R.default?R.default:S.default)}if(R.colorSpace&&(pe=R.colorSpace)!=="rgb"&&pe!=="hcl"&&pe!=="lab")throw new Error(`Unknown color space: "${R.colorSpace}"`);var pe;let ze,Ke,ut;if(fe==="exponential")ze=ih;else if(fe==="interval")ze=Mu;else if(fe==="categorical"){ze=xh,Ke=Object.create(null);for(let Lt of R.stops)Ke[Lt[0]]=Lt[1];ut=typeof R.stops[0][0]}else{if(fe!=="identity")throw new Error(`Unknown function type "${fe}"`);ze=Ws}if(W){let Lt={},Qt=[];for(let Lr=0;LrLr[0]),evaluate:({zoom:Lr},zr)=>ih({stops:fr,base:R.base},S,Lr).evaluate(Lr,zr)}}if(te){let Lt=fe==="exponential"?{name:"exponential",base:R.base!==void 0?R.base:1}:null;return{kind:"camera",interpolationType:Lt,interpolationFactor:Co.interpolationFactor.bind(void 0,Lt),zoomStops:R.stops.map(Qt=>Qt[0]),evaluate:({zoom:Qt})=>ze(R,S,Qt,Ke,ut)}}return{kind:"source",evaluate(Lt,Qt){let fr=Qt&&Qt.properties?Qt.properties[R.property]:void 0;return fr===void 0?sf(R.default,S.default):ze(R,S,fr,Ke,ut)}}}function sf(R,S,F){return R!==void 0?R:S!==void 0?S:F!==void 0?F:void 0}function xh(R,S,F,W,te){return sf(typeof F===te?W[F]:void 0,R.default,S.default)}function Mu(R,S,F){if(ms(F)!=="number")return sf(R.default,S.default);let W=R.stops.length;if(W===1||F<=R.stops[0][0])return R.stops[0][1];if(F>=R.stops[W-1][0])return R.stops[W-1][1];let te=ki(R.stops.map(fe=>fe[0]),F);return R.stops[te][1]}function ih(R,S,F){let W=R.base!==void 0?R.base:1;if(ms(F)!=="number")return sf(R.default,S.default);let te=R.stops.length;if(te===1||F<=R.stops[0][0])return R.stops[0][1];if(F>=R.stops[te-1][0])return R.stops[te-1][1];let fe=ki(R.stops.map(Lt=>Lt[0]),F),pe=function(Lt,Qt,fr,mr){let Lr=mr-fr,zr=Lt-fr;return Lr===0?0:Qt===1?zr/Lr:(Math.pow(Qt,zr)-1)/(Math.pow(Qt,Lr)-1)}(F,W,R.stops[fe][0],R.stops[fe+1][0]),ze=R.stops[fe][1],Ke=R.stops[fe+1][1],ut=Lo[S.type]||Uh;return typeof ze.evaluate=="function"?{evaluate(...Lt){let Qt=ze.evaluate.apply(void 0,Lt),fr=Ke.evaluate.apply(void 0,Lt);if(Qt!==void 0&&fr!==void 0)return ut(Qt,fr,pe,R.colorSpace)}}:ut(ze,Ke,pe,R.colorSpace)}function Ws(R,S,F){switch(S.type){case"color":F=ar.parse(F);break;case"formatted":F=ri.fromString(F.toString());break;case"resolvedImage":F=en.fromString(F.toString());break;case"padding":F=$r.parse(F);break;default:ms(F)===S.type||S.type==="enum"&&S.values[F]||(F=void 0)}return sf(F,R.default,S.default)}Bl.register(mf,{error:[{kind:"error"},[bt],(R,[S])=>{throw new ma(S.evaluate(R))}],typeof:[bt,[Tr],(R,[S])=>Je(Mn(S.evaluate(R)))],"to-rgba":[Ge(Ft,4),[Yt],(R,[S])=>{let[F,W,te,fe]=S.evaluate(R).rgb;return[255*F,255*W,255*te,fe]}],rgb:[Yt,[Ft,Ft,Ft],_h],rgba:[Yt,[Ft,Ft,Ft,Ft],_h],has:{type:yt,overloads:[[[bt],(R,[S])=>Qf(S.evaluate(R),R.properties())],[[bt,lr],(R,[S,F])=>Qf(S.evaluate(R),F.evaluate(R))]]},get:{type:Tr,overloads:[[[bt],(R,[S])=>yf(S.evaluate(R),R.properties())],[[bt,lr],(R,[S,F])=>yf(S.evaluate(R),F.evaluate(R))]]},"feature-state":[Tr,[bt],(R,[S])=>yf(S.evaluate(R),R.featureState||{})],properties:[lr,[],R=>R.properties()],"geometry-type":[bt,[],R=>R.geometryType()],id:[Tr,[],R=>R.id()],zoom:[Ft,[],R=>R.globals.zoom],"heatmap-density":[Ft,[],R=>R.globals.heatmapDensity||0],"line-progress":[Ft,[],R=>R.globals.lineProgress||0],accumulated:[Tr,[],R=>R.globals.accumulated===void 0?null:R.globals.accumulated],"+":[Ft,Yc(Ft),(R,S)=>{let F=0;for(let W of S)F+=W.evaluate(R);return F}],"*":[Ft,Yc(Ft),(R,S)=>{let F=1;for(let W of S)F*=W.evaluate(R);return F}],"-":{type:Ft,overloads:[[[Ft,Ft],(R,[S,F])=>S.evaluate(R)-F.evaluate(R)],[[Ft],(R,[S])=>-S.evaluate(R)]]},"/":[Ft,[Ft,Ft],(R,[S,F])=>S.evaluate(R)/F.evaluate(R)],"%":[Ft,[Ft,Ft],(R,[S,F])=>S.evaluate(R)%F.evaluate(R)],ln2:[Ft,[],()=>Math.LN2],pi:[Ft,[],()=>Math.PI],e:[Ft,[],()=>Math.E],"^":[Ft,[Ft,Ft],(R,[S,F])=>Math.pow(S.evaluate(R),F.evaluate(R))],sqrt:[Ft,[Ft],(R,[S])=>Math.sqrt(S.evaluate(R))],log10:[Ft,[Ft],(R,[S])=>Math.log(S.evaluate(R))/Math.LN10],ln:[Ft,[Ft],(R,[S])=>Math.log(S.evaluate(R))],log2:[Ft,[Ft],(R,[S])=>Math.log(S.evaluate(R))/Math.LN2],sin:[Ft,[Ft],(R,[S])=>Math.sin(S.evaluate(R))],cos:[Ft,[Ft],(R,[S])=>Math.cos(S.evaluate(R))],tan:[Ft,[Ft],(R,[S])=>Math.tan(S.evaluate(R))],asin:[Ft,[Ft],(R,[S])=>Math.asin(S.evaluate(R))],acos:[Ft,[Ft],(R,[S])=>Math.acos(S.evaluate(R))],atan:[Ft,[Ft],(R,[S])=>Math.atan(S.evaluate(R))],min:[Ft,Yc(Ft),(R,S)=>Math.min(...S.map(F=>F.evaluate(R)))],max:[Ft,Yc(Ft),(R,S)=>Math.max(...S.map(F=>F.evaluate(R)))],abs:[Ft,[Ft],(R,[S])=>Math.abs(S.evaluate(R))],round:[Ft,[Ft],(R,[S])=>{let F=S.evaluate(R);return F<0?-Math.round(-F):Math.round(F)}],floor:[Ft,[Ft],(R,[S])=>Math.floor(S.evaluate(R))],ceil:[Ft,[Ft],(R,[S])=>Math.ceil(S.evaluate(R))],"filter-==":[yt,[bt,Tr],(R,[S,F])=>R.properties()[S.value]===F.value],"filter-id-==":[yt,[Tr],(R,[S])=>R.id()===S.value],"filter-type-==":[yt,[bt],(R,[S])=>R.geometryType()===S.value],"filter-<":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W{let F=R.id(),W=S.value;return typeof F==typeof W&&F":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W>te}],"filter-id->":[yt,[Tr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F>W}],"filter-<=":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W<=te}],"filter-id-<=":[yt,[Tr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F<=W}],"filter->=":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W>=te}],"filter-id->=":[yt,[Tr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F>=W}],"filter-has":[yt,[Tr],(R,[S])=>S.value in R.properties()],"filter-has-id":[yt,[],R=>R.id()!==null&&R.id()!==void 0],"filter-type-in":[yt,[Ge(bt)],(R,[S])=>S.value.indexOf(R.geometryType())>=0],"filter-id-in":[yt,[Ge(Tr)],(R,[S])=>S.value.indexOf(R.id())>=0],"filter-in-small":[yt,[bt,Ge(Tr)],(R,[S,F])=>F.value.indexOf(R.properties()[S.value])>=0],"filter-in-large":[yt,[bt,Ge(Tr)],(R,[S,F])=>function(W,te,fe,pe){for(;fe<=pe;){let ze=fe+pe>>1;if(te[ze]===W)return!0;te[ze]>W?pe=ze-1:fe=ze+1}return!1}(R.properties()[S.value],F.value,0,F.value.length-1)],all:{type:yt,overloads:[[[yt,yt],(R,[S,F])=>S.evaluate(R)&&F.evaluate(R)],[Yc(yt),(R,S)=>{for(let F of S)if(!F.evaluate(R))return!1;return!0}]]},any:{type:yt,overloads:[[[yt,yt],(R,[S,F])=>S.evaluate(R)||F.evaluate(R)],[Yc(yt),(R,S)=>{for(let F of S)if(F.evaluate(R))return!0;return!1}]]},"!":[yt,[yt],(R,[S])=>!S.evaluate(R)],"is-supported-script":[yt,[bt],(R,[S])=>{let F=R.globals&&R.globals.isSupportedScript;return!F||F(S.evaluate(R))}],upcase:[bt,[bt],(R,[S])=>S.evaluate(R).toUpperCase()],downcase:[bt,[bt],(R,[S])=>S.evaluate(R).toLowerCase()],concat:[bt,Yc(Tr),(R,S)=>S.map(F=>Ba(F.evaluate(R))).join("")],"resolved-locale":[bt,[Rr],(R,[S])=>S.evaluate(R).resolvedLocale()]});class Eu{constructor(S,F){var W;this.expression=S,this._warningHistory={},this._evaluator=new Ga,this._defaultValue=F?(W=F).type==="color"&&jf(W.default)?new ar(0,0,0,0):W.type==="color"?ar.parse(W.default)||null:W.type==="padding"?$r.parse(W.default)||null:W.type==="variableAnchorOffsetCollection"?Ji.parse(W.default)||null:W.default===void 0?null:W.default:null,this._enumValues=F&&F.type==="enum"?F.values:null}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._evaluator.globals=S,this._evaluator.feature=F,this._evaluator.featureState=W,this._evaluator.canonical=te,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=pe,this.expression.evaluate(this._evaluator)}evaluate(S,F,W,te,fe,pe){this._evaluator.globals=S,this._evaluator.feature=F||null,this._evaluator.featureState=W||null,this._evaluator.canonical=te,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=pe||null;try{let ze=this.expression.evaluate(this._evaluator);if(ze==null||typeof ze=="number"&&ze!=ze)return this._defaultValue;if(this._enumValues&&!(ze in this._enumValues))throw new ma(`Expected value to be one of ${Object.keys(this._enumValues).map(Ke=>JSON.stringify(Ke)).join(", ")}, but found ${JSON.stringify(ze)} instead.`);return ze}catch(ze){return this._warningHistory[ze.message]||(this._warningHistory[ze.message]=!0,typeof console!="undefined"&&console.warn(ze.message)),this._defaultValue}}}function Dc(R){return Array.isArray(R)&&R.length>0&&typeof R[0]=="string"&&R[0]in mf}function ks(R,S){let F=new vo(mf,eh,[],S?function(te){let fe={color:Yt,string:bt,number:Ft,enum:bt,boolean:yt,formatted:ei,padding:Wr,resolvedImage:Ur,variableAnchorOffsetCollection:dt};return te.type==="array"?Ge(fe[te.value]||Tr,te.length):fe[te.type]}(S):void 0),W=F.parse(R,void 0,void 0,void 0,S&&S.type==="string"?{typeAnnotation:"coerce"}:void 0);return W?cc(new Eu(W,S)):of(F.errors)}class bc{constructor(S,F){this.kind=S,this._styleExpression=F,this.isStateDependent=S!=="constant"&&!ju(F.expression)}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(S,F,W,te,fe,pe)}evaluate(S,F,W,te,fe,pe){return this._styleExpression.evaluate(S,F,W,te,fe,pe)}}class hu{constructor(S,F,W,te){this.kind=S,this.zoomStops=W,this._styleExpression=F,this.isStateDependent=S!=="camera"&&!ju(F.expression),this.interpolationType=te}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(S,F,W,te,fe,pe)}evaluate(S,F,W,te,fe,pe){return this._styleExpression.evaluate(S,F,W,te,fe,pe)}interpolationFactor(S,F,W){return this.interpolationType?Co.interpolationFactor(this.interpolationType,S,F,W):0}}function _u(R,S){let F=ks(R,S);if(F.result==="error")return F;let W=F.value.expression,te=th(W);if(!te&&!Nl(S))return of([new Et("","data expressions not supported")]);let fe=Hf(W,["zoom"]);if(!fe&&!Kc(S))return of([new Et("","zoom expressions not supported")]);let pe=nh(W);return pe||fe?pe instanceof Et?of([pe]):pe instanceof Co&&!Rc(S)?of([new Et("",'"interpolate" expressions cannot be used with this property')]):cc(pe?new hu(te?"camera":"composite",F.value,pe.labels,pe instanceof Co?pe.interpolation:void 0):new bc(te?"constant":"source",F.value)):of([new Et("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class al{constructor(S,F){this._parameters=S,this._specification=F,Qe(this,rh(this._parameters,this._specification))}static deserialize(S){return new al(S._parameters,S._specification)}static serialize(S){return{_parameters:S._parameters,_specification:S._specification}}}function nh(R){let S=null;if(R instanceof jn)S=nh(R.result);else if(R instanceof zs){for(let F of R.args)if(S=nh(F),S)break}else(R instanceof _n||R instanceof Co)&&R.input instanceof Bl&&R.input.name==="zoom"&&(S=R);return S instanceof Et||R.eachChild(F=>{let W=nh(F);W instanceof Et?S=W:!S&&W?S=new Et("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):S&&W&&S!==W&&(S=new Et("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),S}function bh(R){if(R===!0||R===!1)return!0;if(!Array.isArray(R)||R.length===0)return!1;switch(R[0]){case"has":return R.length>=2&&R[1]!=="$id"&&R[1]!=="$type";case"in":return R.length>=3&&(typeof R[1]!="string"||Array.isArray(R[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return R.length!==3||Array.isArray(R[1])||Array.isArray(R[2]);case"any":case"all":for(let S of R.slice(1))if(!bh(S)&&typeof S!="boolean")return!1;return!0;default:return!0}}let zu={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Fc(R){if(R==null)return{filter:()=>!0,needGeometry:!1};bh(R)||(R=_f(R));let S=ks(R,zu);if(S.result==="error")throw new Error(S.value.map(F=>`${F.key}: ${F.message}`).join(", "));return{filter:(F,W,te)=>S.value.evaluate(F,W,{},te),needGeometry:bd(R)}}function wc(R,S){return RS?1:0}function bd(R){if(!Array.isArray(R))return!1;if(R[0]==="within"||R[0]==="distance")return!0;for(let S=1;S"||S==="<="||S===">="?Lf(R[1],R[2],S):S==="any"?(F=R.slice(1),["any"].concat(F.map(_f))):S==="all"?["all"].concat(R.slice(1).map(_f)):S==="none"?["all"].concat(R.slice(1).map(_f).map(jl)):S==="in"?Ou(R[1],R.slice(2)):S==="!in"?jl(Ou(R[1],R.slice(2))):S==="has"?xf(R[1]):S!=="!has"||jl(xf(R[1]));var F}function Lf(R,S,F){switch(R){case"$type":return[`filter-type-${F}`,S];case"$id":return[`filter-id-${F}`,S];default:return[`filter-${F}`,R,S]}}function Ou(R,S){if(S.length===0)return!1;switch(R){case"$type":return["filter-type-in",["literal",S]];case"$id":return["filter-id-in",["literal",S]];default:return S.length>200&&!S.some(F=>typeof F!=typeof S[0])?["filter-in-large",R,["literal",S.sort(wc)]]:["filter-in-small",R,["literal",S]]}}function xf(R){switch(R){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",R]}}function jl(R){return["!",R]}function lf(R){let S=typeof R;if(S==="number"||S==="boolean"||S==="string"||R==null)return JSON.stringify(R);if(Array.isArray(R)){let te="[";for(let fe of R)te+=`${lf(fe)},`;return`${te}]`}let F=Object.keys(R).sort(),W="{";for(let te=0;teW.maximum?[new ur(S,F,`${F} is greater than the maximum value ${W.maximum}`)]:[]}function bf(R){let S=R.valueSpec,F=Ls(R.value.type),W,te,fe,pe={},ze=F!=="categorical"&&R.value.property===void 0,Ke=!ze,ut=ms(R.value.stops)==="array"&&ms(R.value.stops[0])==="array"&&ms(R.value.stops[0][0])==="object",Lt=Cu({key:R.key,value:R.value,valueSpec:R.styleSpec.function,validateSpec:R.validateSpec,style:R.style,styleSpec:R.styleSpec,objectElementValidators:{stops:function(mr){if(F==="identity")return[new ur(mr.key,mr.value,'identity function may not have a "stops" property')];let Lr=[],zr=mr.value;return Lr=Lr.concat(Wf({key:mr.key,value:zr,valueSpec:mr.valueSpec,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec,arrayElementValidator:Qt})),ms(zr)==="array"&&zr.length===0&&Lr.push(new ur(mr.key,zr,"array must have at least one stop")),Lr},default:function(mr){return mr.validateSpec({key:mr.key,value:mr.value,valueSpec:S,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec})}}});return F==="identity"&&ze&&Lt.push(new ur(R.key,R.value,'missing required property "property"')),F==="identity"||R.value.stops||Lt.push(new ur(R.key,R.value,'missing required property "stops"')),F==="exponential"&&R.valueSpec.expression&&!Rc(R.valueSpec)&&Lt.push(new ur(R.key,R.value,"exponential functions not supported")),R.styleSpec.$version>=8&&(Ke&&!Nl(R.valueSpec)?Lt.push(new ur(R.key,R.value,"property functions not supported")):ze&&!Kc(R.valueSpec)&&Lt.push(new ur(R.key,R.value,"zoom functions not supported"))),F!=="categorical"&&!ut||R.value.property!==void 0||Lt.push(new ur(R.key,R.value,'"property" property is required')),Lt;function Qt(mr){let Lr=[],zr=mr.value,ui=mr.key;if(ms(zr)!=="array")return[new ur(ui,zr,`array expected, ${ms(zr)} found`)];if(zr.length!==2)return[new ur(ui,zr,`array length 2 expected, length ${zr.length} found`)];if(ut){if(ms(zr[0])!=="object")return[new ur(ui,zr,`object expected, ${ms(zr[0])} found`)];if(zr[0].zoom===void 0)return[new ur(ui,zr,"object stop key must have zoom")];if(zr[0].value===void 0)return[new ur(ui,zr,"object stop key must have value")];if(fe&&fe>Ls(zr[0].zoom))return[new ur(ui,zr[0].zoom,"stop zoom values must appear in ascending order")];Ls(zr[0].zoom)!==fe&&(fe=Ls(zr[0].zoom),te=void 0,pe={}),Lr=Lr.concat(Cu({key:`${ui}[0]`,value:zr[0],valueSpec:{zoom:{}},validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec,objectElementValidators:{zoom:Vs,value:fr}}))}else Lr=Lr.concat(fr({key:`${ui}[0]`,value:zr[0],valueSpec:{},validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec},zr));return Dc(du(zr[1]))?Lr.concat([new ur(`${ui}[1]`,zr[1],"expressions are not allowed in function stops.")]):Lr.concat(mr.validateSpec({key:`${ui}[1]`,value:zr[1],valueSpec:S,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec}))}function fr(mr,Lr){let zr=ms(mr.value),ui=Ls(mr.value),yi=mr.value!==null?mr.value:Lr;if(W){if(zr!==W)return[new ur(mr.key,yi,`${zr} stop domain type must match previous stop domain type ${W}`)]}else W=zr;if(zr!=="number"&&zr!=="string"&&zr!=="boolean")return[new ur(mr.key,yi,"stop domain value must be a number, string, or boolean")];if(zr!=="number"&&F!=="categorical"){let dn=`number expected, ${zr} found`;return Nl(S)&&F===void 0&&(dn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ur(mr.key,yi,dn)]}return F!=="categorical"||zr!=="number"||isFinite(ui)&&Math.floor(ui)===ui?F!=="categorical"&&zr==="number"&&te!==void 0&&uinew ur(`${R.key}${W.key}`,R.value,W.message));let F=S.value.expression||S.value._styleExpression.expression;if(R.expressionContext==="property"&&R.propertyKey==="text-font"&&!F.outputDefined())return[new ur(R.key,R.value,`Invalid data expression for "${R.propertyKey}". Output values must be contained as literals within the expression.`)];if(R.expressionContext==="property"&&R.propertyType==="layout"&&!ju(F))return[new ur(R.key,R.value,'"feature-state" data expressions are not supported with layout properties.')];if(R.expressionContext==="filter"&&!ju(F))return[new ur(R.key,R.value,'"feature-state" data expressions are not supported with filters.')];if(R.expressionContext&&R.expressionContext.indexOf("cluster")===0){if(!Hf(F,["zoom","feature-state"]))return[new ur(R.key,R.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(R.expressionContext==="cluster-initial"&&!th(F))return[new ur(R.key,R.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Wu(R){let S=R.key,F=R.value,W=R.valueSpec,te=[];return Array.isArray(W.values)?W.values.indexOf(Ls(F))===-1&&te.push(new ur(S,F,`expected one of [${W.values.join(", ")}], ${JSON.stringify(F)} found`)):Object.keys(W.values).indexOf(Ls(F))===-1&&te.push(new ur(S,F,`expected one of [${Object.keys(W.values).join(", ")}], ${JSON.stringify(F)} found`)),te}function If(R){return bh(du(R.value))?zc(Qe({},R,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Xu(R)}function Xu(R){let S=R.value,F=R.key;if(ms(S)!=="array")return[new ur(F,S,`array expected, ${ms(S)} found`)];let W=R.styleSpec,te,fe=[];if(S.length<1)return[new ur(F,S,"filter array must have at least 1 element")];switch(fe=fe.concat(Wu({key:`${F}[0]`,value:S[0],valueSpec:W.filter_operator,style:R.style,styleSpec:R.styleSpec})),Ls(S[0])){case"<":case"<=":case">":case">=":S.length>=2&&Ls(S[1])==="$type"&&fe.push(new ur(F,S,`"$type" cannot be use with operator "${S[0]}"`));case"==":case"!=":S.length!==3&&fe.push(new ur(F,S,`filter array for operator "${S[0]}" must have 3 elements`));case"in":case"!in":S.length>=2&&(te=ms(S[1]),te!=="string"&&fe.push(new ur(`${F}[1]`,S[1],`string expected, ${te} found`)));for(let pe=2;pe{ut in F&&S.push(new ur(W,F[ut],`"${ut}" is prohibited for ref layers`))}),te.layers.forEach(ut=>{Ls(ut.id)===ze&&(Ke=ut)}),Ke?Ke.ref?S.push(new ur(W,F.ref,"ref cannot reference another ref layer")):pe=Ls(Ke.type):S.push(new ur(W,F.ref,`ref layer "${ze}" not found`))}else if(pe!=="background")if(F.source){let Ke=te.sources&&te.sources[F.source],ut=Ke&&Ls(Ke.type);Ke?ut==="vector"&&pe==="raster"?S.push(new ur(W,F.source,`layer "${F.id}" requires a raster source`)):ut!=="raster-dem"&&pe==="hillshade"?S.push(new ur(W,F.source,`layer "${F.id}" requires a raster-dem source`)):ut==="raster"&&pe!=="raster"?S.push(new ur(W,F.source,`layer "${F.id}" requires a vector source`)):ut!=="vector"||F["source-layer"]?ut==="raster-dem"&&pe!=="hillshade"?S.push(new ur(W,F.source,"raster-dem source can only be used with layer type 'hillshade'.")):pe!=="line"||!F.paint||!F.paint["line-gradient"]||ut==="geojson"&&Ke.lineMetrics||S.push(new ur(W,F,`layer "${F.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):S.push(new ur(W,F,`layer "${F.id}" must specify a "source-layer"`)):S.push(new ur(W,F.source,`source "${F.source}" not found`))}else S.push(new ur(W,F,'missing required property "source"'));return S=S.concat(Cu({key:W,value:F,valueSpec:fe.layer,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,objectElementValidators:{"*":()=>[],type:()=>R.validateSpec({key:`${W}.type`,value:F.type,valueSpec:fe.layer.type,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,object:F,objectKey:"type"}),filter:If,layout:Ke=>Cu({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ut=>Wl(Qe({layerType:pe},ut))}}),paint:Ke=>Cu({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ut=>Xf(Qe({layerType:pe},ut))}})}})),S}function Zu(R){let S=R.value,F=R.key,W=ms(S);return W!=="string"?[new ur(F,S,`string expected, ${W} found`)]:[]}let Oc={promoteId:function({key:R,value:S}){if(ms(S)==="string")return Zu({key:R,value:S});{let F=[];for(let W in S)F.push(...Zu({key:`${R}.${W}`,value:S[W]}));return F}}};function Tc(R){let S=R.value,F=R.key,W=R.styleSpec,te=R.style,fe=R.validateSpec;if(!S.type)return[new ur(F,S,'"type" is required')];let pe=Ls(S.type),ze;switch(pe){case"vector":case"raster":return ze=Cu({key:F,value:S,valueSpec:W[`source_${pe.replace("-","_")}`],style:R.style,styleSpec:W,objectElementValidators:Oc,validateSpec:fe}),ze;case"raster-dem":return ze=function(Ke){var ut;let Lt=(ut=Ke.sourceName)!==null&&ut!==void 0?ut:"",Qt=Ke.value,fr=Ke.styleSpec,mr=fr.source_raster_dem,Lr=Ke.style,zr=[],ui=ms(Qt);if(Qt===void 0)return zr;if(ui!=="object")return zr.push(new ur("source_raster_dem",Qt,`object expected, ${ui} found`)),zr;let yi=Ls(Qt.encoding)==="custom",dn=["redFactor","greenFactor","blueFactor","baseShift"],Fi=Ke.value.encoding?`"${Ke.value.encoding}"`:"Default";for(let ln in Qt)!yi&&dn.includes(ln)?zr.push(new ur(ln,Qt[ln],`In "${Lt}": "${ln}" is only valid when "encoding" is set to "custom". ${Fi} encoding found`)):mr[ln]?zr=zr.concat(Ke.validateSpec({key:ln,value:Qt[ln],valueSpec:mr[ln],validateSpec:Ke.validateSpec,style:Lr,styleSpec:fr})):zr.push(new ur(ln,Qt[ln],`unknown property "${ln}"`));return zr}({sourceName:F,value:S,style:R.style,styleSpec:W,validateSpec:fe}),ze;case"geojson":if(ze=Cu({key:F,value:S,valueSpec:W.source_geojson,style:te,styleSpec:W,validateSpec:fe,objectElementValidators:Oc}),S.cluster)for(let Ke in S.clusterProperties){let[ut,Lt]=S.clusterProperties[Ke],Qt=typeof ut=="string"?[ut,["accumulated"],["get",Ke]]:ut;ze.push(...zc({key:`${F}.${Ke}.map`,value:Lt,validateSpec:fe,expressionContext:"cluster-map"})),ze.push(...zc({key:`${F}.${Ke}.reduce`,value:Qt,validateSpec:fe,expressionContext:"cluster-reduce"}))}return ze;case"video":return Cu({key:F,value:S,valueSpec:W.source_video,style:te,validateSpec:fe,styleSpec:W});case"image":return Cu({key:F,value:S,valueSpec:W.source_image,style:te,validateSpec:fe,styleSpec:W});case"canvas":return[new ur(F,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Wu({key:`${F}.type`,value:S.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:te,validateSpec:fe,styleSpec:W})}}function Tl(R){let S=R.value,F=R.styleSpec,W=F.light,te=R.style,fe=[],pe=ms(S);if(S===void 0)return fe;if(pe!=="object")return fe=fe.concat([new ur("light",S,`object expected, ${pe} found`)]),fe;for(let ze in S){let Ke=ze.match(/^(.*)-transition$/);fe=fe.concat(Ke&&W[Ke[1]]&&W[Ke[1]].transition?R.validateSpec({key:ze,value:S[ze],valueSpec:F.transition,validateSpec:R.validateSpec,style:te,styleSpec:F}):W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)])}return fe}function vu(R){let S=R.value,F=R.styleSpec,W=F.sky,te=R.style,fe=ms(S);if(S===void 0)return[];if(fe!=="object")return[new ur("sky",S,`object expected, ${fe} found`)];let pe=[];for(let ze in S)pe=pe.concat(W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)]);return pe}function qc(R){let S=R.value,F=R.styleSpec,W=F.terrain,te=R.style,fe=[],pe=ms(S);if(S===void 0)return fe;if(pe!=="object")return fe=fe.concat([new ur("terrain",S,`object expected, ${pe} found`)]),fe;for(let ze in S)fe=fe.concat(W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)]);return fe}function cf(R){let S=[],F=R.value,W=R.key;if(Array.isArray(F)){let te=[],fe=[];for(let pe in F)F[pe].id&&te.includes(F[pe].id)&&S.push(new ur(W,F,`all the sprites' ids must be unique, but ${F[pe].id} is duplicated`)),te.push(F[pe].id),F[pe].url&&fe.includes(F[pe].url)&&S.push(new ur(W,F,`all the sprites' URLs must be unique, but ${F[pe].url} is duplicated`)),fe.push(F[pe].url),S=S.concat(Cu({key:`${W}[${pe}]`,value:F[pe],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:R.validateSpec}));return S}return Zu({key:W,value:F})}let fc={"*":()=>[],array:Wf,boolean:function(R){let S=R.value,F=R.key,W=ms(S);return W!=="boolean"?[new ur(F,S,`boolean expected, ${W} found`)]:[]},number:Vs,color:function(R){let S=R.key,F=R.value,W=ms(F);return W!=="string"?[new ur(S,F,`color expected, ${W} found`)]:ar.parse(String(F))?[]:[new ur(S,F,`color expected, "${F}" found`)]},constants:Pf,enum:Wu,filter:If,function:bf,layer:ah,object:Cu,source:Tc,light:Tl,sky:vu,terrain:qc,projection:function(R){let S=R.value,F=R.styleSpec,W=F.projection,te=R.style,fe=ms(S);if(S===void 0)return[];if(fe!=="object")return[new ur("projection",S,`object expected, ${fe} found`)];let pe=[];for(let ze in S)pe=pe.concat(W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)]);return pe},string:Zu,formatted:function(R){return Zu(R).length===0?[]:zc(R)},resolvedImage:function(R){return Zu(R).length===0?[]:zc(R)},padding:function(R){let S=R.key,F=R.value;if(ms(F)==="array"){if(F.length<1||F.length>4)return[new ur(S,F,`padding requires 1 to 4 values; ${F.length} values found`)];let W={type:"number"},te=[];for(let fe=0;fe[]}})),R.constants&&(F=F.concat(Pf({key:"constants",value:R.constants,style:R,styleSpec:S,validateSpec:Bc}))),Ar(F)}function kr(R){return function(S){return R(lee(see({},S),{validateSpec:Bc}))}}function Ar(R){return[].concat(R).sort((S,F)=>S.line-F.line)}function Kr(R){return function(...S){return Ar(R.apply(this,S))}}Xt.source=Kr(kr(Tc)),Xt.sprite=Kr(kr(cf)),Xt.glyphs=Kr(kr(At)),Xt.light=Kr(kr(Tl)),Xt.sky=Kr(kr(vu)),Xt.terrain=Kr(kr(qc)),Xt.layer=Kr(kr(ah)),Xt.filter=Kr(kr(If)),Xt.paintProperty=Kr(kr(Xf)),Xt.layoutProperty=Kr(kr(Wl));let Ei=Xt,Wi=Ei.light,hn=Ei.sky,Tn=Ei.paintProperty,Bn=Ei.layoutProperty;function Zi(R,S){let F=!1;if(S&&S.length)for(let W of S)R.fire(new ge(new Error(W.message))),F=!0;return F}class $i{constructor(S,F,W){let te=this.cells=[];if(S instanceof ArrayBuffer){this.arrayBuffer=S;let pe=new Int32Array(this.arrayBuffer);S=pe[0],this.d=(F=pe[1])+2*(W=pe[2]);for(let Ke=0;Ke=Qt[Lr+0]&&te>=Qt[Lr+1])?(ze[mr]=!0,pe.push(Lt[mr])):ze[mr]=!1}}}}_forEachCell(S,F,W,te,fe,pe,ze,Ke){let ut=this._convertToCellCoord(S),Lt=this._convertToCellCoord(F),Qt=this._convertToCellCoord(W),fr=this._convertToCellCoord(te);for(let mr=ut;mr<=Qt;mr++)for(let Lr=Lt;Lr<=fr;Lr++){let zr=this.d*Lr+mr;if((!Ke||Ke(this._convertFromCellCoord(mr),this._convertFromCellCoord(Lr),this._convertFromCellCoord(mr+1),this._convertFromCellCoord(Lr+1)))&&fe.call(this,S,F,W,te,zr,pe,ze,Ke))return}}_convertFromCellCoord(S){return(S-this.padding)/this.scale}_convertToCellCoord(S){return Math.max(0,Math.min(this.d-1,Math.floor(S*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let S=this.cells,F=3+this.cells.length+1+1,W=0;for(let pe=0;pe=0)continue;let pe=R[fe];te[fe]=an[F].shallow.indexOf(fe)>=0?pe:La(pe,S)}R instanceof Error&&(te.message=R.message)}if(te.$name)throw new Error("$name property is reserved for worker serialization logic.");return F!=="Object"&&(te.$name=F),te}function Na(R){if(Ra(R))return R;if(Array.isArray(R))return R.map(Na);if(typeof R!="object")throw new Error("can't deserialize object of type "+typeof R);let S=ka(R)||"Object";if(!an[S])throw new Error(`can't deserialize unregistered class ${S}`);let{klass:F}=an[S];if(!F)throw new Error(`can't deserialize unregistered class ${S}`);if(F.deserialize)return F.deserialize(R);let W=Object.create(F.prototype);for(let te of Object.keys(R)){if(te==="$name")continue;let fe=R[te];W[te]=an[S].shallow.indexOf(te)>=0?fe:Na(fe)}return W}class Yn{constructor(){this.first=!0}update(S,F){let W=Math.floor(S);return this.first?(this.first=!1,this.lastIntegerZoom=W,this.lastIntegerZoomTime=0,this.lastZoom=S,this.lastFloorZoom=W,!0):(this.lastFloorZoom>W?(this.lastIntegerZoom=W+1,this.lastIntegerZoomTime=F):this.lastFloorZoomR>=128&&R<=255,"Hangul Jamo":R=>R>=4352&&R<=4607,Khmer:R=>R>=6016&&R<=6143,"General Punctuation":R=>R>=8192&&R<=8303,"Letterlike Symbols":R=>R>=8448&&R<=8527,"Number Forms":R=>R>=8528&&R<=8591,"Miscellaneous Technical":R=>R>=8960&&R<=9215,"Control Pictures":R=>R>=9216&&R<=9279,"Optical Character Recognition":R=>R>=9280&&R<=9311,"Enclosed Alphanumerics":R=>R>=9312&&R<=9471,"Geometric Shapes":R=>R>=9632&&R<=9727,"Miscellaneous Symbols":R=>R>=9728&&R<=9983,"Miscellaneous Symbols and Arrows":R=>R>=11008&&R<=11263,"Ideographic Description Characters":R=>R>=12272&&R<=12287,"CJK Symbols and Punctuation":R=>R>=12288&&R<=12351,Katakana:R=>R>=12448&&R<=12543,Kanbun:R=>R>=12688&&R<=12703,"CJK Strokes":R=>R>=12736&&R<=12783,"Enclosed CJK Letters and Months":R=>R>=12800&&R<=13055,"CJK Compatibility":R=>R>=13056&&R<=13311,"Yijing Hexagram Symbols":R=>R>=19904&&R<=19967,"Private Use Area":R=>R>=57344&&R<=63743,"Vertical Forms":R=>R>=65040&&R<=65055,"CJK Compatibility Forms":R=>R>=65072&&R<=65103,"Small Form Variants":R=>R>=65104&&R<=65135,"Halfwidth and Fullwidth Forms":R=>R>=65280&&R<=65519};function Ka(R){for(let S of R)if(Ho(S.charCodeAt(0)))return!0;return!1}function bo(R){for(let S of R)if(!os(S.charCodeAt(0)))return!1;return!0}function Xo(R){let S=R.map(F=>{try{return new RegExp(`\\p{sc=${F}}`,"u").source}catch(W){return null}}).filter(F=>F);return new RegExp(S.join("|"),"u")}let Ms=Xo(["Arab","Dupl","Mong","Ougr","Syrc"]);function os(R){return!Ms.test(String.fromCodePoint(R))}let Ts=Xo(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function Ho(R){return!(R!==746&&R!==747&&(R<4352||!(zn["CJK Compatibility Forms"](R)&&!(R>=65097&&R<=65103)||zn["CJK Compatibility"](R)||zn["CJK Strokes"](R)||!(!zn["CJK Symbols and Punctuation"](R)||R>=12296&&R<=12305||R>=12308&&R<=12319||R===12336)||zn["Enclosed CJK Letters and Months"](R)||zn["Ideographic Description Characters"](R)||zn.Kanbun(R)||zn.Katakana(R)&&R!==12540||!(!zn["Halfwidth and Fullwidth Forms"](R)||R===65288||R===65289||R===65293||R>=65306&&R<=65310||R===65339||R===65341||R===65343||R>=65371&&R<=65503||R===65507||R>=65512&&R<=65519)||!(!zn["Small Form Variants"](R)||R>=65112&&R<=65118||R>=65123&&R<=65126)||zn["Vertical Forms"](R)||zn["Yijing Hexagram Symbols"](R)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(R))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(R))||Ts.test(String.fromCodePoint(R)))))}function yl(R){return!(Ho(R)||function(S){return!!(zn["Latin-1 Supplement"](S)&&(S===167||S===169||S===174||S===177||S===188||S===189||S===190||S===215||S===247)||zn["General Punctuation"](S)&&(S===8214||S===8224||S===8225||S===8240||S===8241||S===8251||S===8252||S===8258||S===8263||S===8264||S===8265||S===8273)||zn["Letterlike Symbols"](S)||zn["Number Forms"](S)||zn["Miscellaneous Technical"](S)&&(S>=8960&&S<=8967||S>=8972&&S<=8991||S>=8996&&S<=9e3||S===9003||S>=9085&&S<=9114||S>=9150&&S<=9165||S===9167||S>=9169&&S<=9179||S>=9186&&S<=9215)||zn["Control Pictures"](S)&&S!==9251||zn["Optical Character Recognition"](S)||zn["Enclosed Alphanumerics"](S)||zn["Geometric Shapes"](S)||zn["Miscellaneous Symbols"](S)&&!(S>=9754&&S<=9759)||zn["Miscellaneous Symbols and Arrows"](S)&&(S>=11026&&S<=11055||S>=11088&&S<=11097||S>=11192&&S<=11243)||zn["CJK Symbols and Punctuation"](S)||zn.Katakana(S)||zn["Private Use Area"](S)||zn["CJK Compatibility Forms"](S)||zn["Small Form Variants"](S)||zn["Halfwidth and Fullwidth Forms"](S)||S===8734||S===8756||S===8757||S>=9984&&S<=10087||S>=10102&&S<=10131||S===65532||S===65533)}(R))}let Xs=Xo(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Ps(R){return Xs.test(String.fromCodePoint(R))}function va(R,S){return!(!S&&Ps(R)||R>=2304&&R<=3583||R>=3840&&R<=4255||zn.Khmer(R))}function no(R){for(let S of R)if(Ps(S.charCodeAt(0)))return!0;return!1}let _s=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(R){this.pluginStatus=R.pluginStatus,this.pluginURL=R.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(R){this.applyArabicShaping=R.applyArabicShaping,this.processBidirectionalText=R.processBidirectionalText,this.processStyledBidirectionalText=R.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class is{constructor(S,F){this.zoom=S,F?(this.now=F.now,this.fadeDuration=F.fadeDuration,this.zoomHistory=F.zoomHistory,this.transition=F.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Yn,this.transition={})}isSupportedScript(S){return function(F,W){for(let te of F)if(!va(te.charCodeAt(0),W))return!1;return!0}(S,_s.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let S=this.zoom,F=S-Math.floor(S),W=this.crossFadingFactor();return S>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:F+(1-F)*W}:{fromScale:.5,toScale:1,t:1-(1-W)*F}}}class $l{constructor(S,F){this.property=S,this.value=F,this.expression=function(W,te){if(jf(W))return new al(W,te);if(Dc(W)){let fe=_u(W,te);if(fe.result==="error")throw new Error(fe.value.map(pe=>`${pe.key}: ${pe.message}`).join(", "));return fe.value}{let fe=W;return te.type==="color"&&typeof W=="string"?fe=ar.parse(W):te.type!=="padding"||typeof W!="number"&&!Array.isArray(W)?te.type==="variableAnchorOffsetCollection"&&Array.isArray(W)&&(fe=Ji.parse(W)):fe=$r.parse(W),{kind:"constant",evaluate:()=>fe}}}(F===void 0?S.specification.default:F,S.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(S,F,W){return this.property.possiblyEvaluate(this,S,F,W)}}class ku{constructor(S){this.property=S,this.value=new $l(S,void 0)}transitioned(S,F){return new Nc(this.property,this.value,F,L({},S.transition,this.transition),S.now)}untransitioned(){return new Nc(this.property,this.value,null,{},0)}}class Yu{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitionablePropertyValues)}getValue(S){return g(this._values[S].value.value)}setValue(S,F){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ku(this._values[S].property)),this._values[S].value=new $l(this._values[S].property,F===null?void 0:g(F))}getTransition(S){return g(this._values[S].transition)}setTransition(S,F){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ku(this._values[S].property)),this._values[S].transition=g(F)||void 0}serialize(){let S={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(S[F]=W);let te=this.getTransition(F);te!==void 0&&(S[`${F}-transition`]=te)}return S}transitioned(S,F){let W=new pu(this._properties);for(let te of Object.keys(this._values))W._values[te]=this._values[te].transitioned(S,F._values[te]);return W}untransitioned(){let S=new pu(this._properties);for(let F of Object.keys(this._values))S._values[F]=this._values[F].untransitioned();return S}}class Nc{constructor(S,F,W,te,fe){this.property=S,this.value=F,this.begin=fe+te.delay||0,this.end=this.begin+te.duration||0,S.specification.transition&&(te.delay||te.duration)&&(this.prior=W)}possiblyEvaluate(S,F,W){let te=S.now||0,fe=this.value.possiblyEvaluate(S,F,W),pe=this.prior;if(pe){if(te>this.end)return this.prior=null,fe;if(this.value.isDataDriven())return this.prior=null,fe;if(te=1)return 1;let ut=Ke*Ke,Lt=ut*Ke;return 4*(Ke<.5?Lt:3*(Ke-ut)+Lt-.75)}(ze))}}return fe}}class pu{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitioningPropertyValues)}possiblyEvaluate(S,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(S,F,W);return te}hasTransition(){for(let S of Object.keys(this._values))if(this._values[S].prior)return!0;return!1}}class Uc{constructor(S){this._properties=S,this._values=Object.create(S.defaultPropertyValues)}hasValue(S){return this._values[S].value!==void 0}getValue(S){return g(this._values[S].value)}setValue(S,F){this._values[S]=new $l(this._values[S].property,F===null?void 0:g(F))}serialize(){let S={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(S[F]=W)}return S}possiblyEvaluate(S,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(S,F,W);return te}}class xu{constructor(S,F,W){this.property=S,this.value=F,this.parameters=W}isConstant(){return this.value.kind==="constant"}constantOr(S){return this.value.kind==="constant"?this.value.value:S}evaluate(S,F,W,te){return this.property.evaluate(this.value,this.parameters,S,F,W,te)}}class Ac{constructor(S){this._properties=S,this._values=Object.create(S.defaultPossiblyEvaluatedValues)}get(S){return this._values[S]}}class Ua{constructor(S){this.specification=S}possiblyEvaluate(S,F){if(S.isDataDriven())throw new Error("Value should not be data driven");return S.expression.evaluate(F)}interpolate(S,F,W){let te=Lo[this.specification.type];return te?te(S,F,W):S}}class oo{constructor(S,F){this.specification=S,this.overrides=F}possiblyEvaluate(S,F,W,te){return new xu(this,S.expression.kind==="constant"||S.expression.kind==="camera"?{kind:"constant",value:S.expression.evaluate(F,null,{},W,te)}:S.expression,F)}interpolate(S,F,W){if(S.value.kind!=="constant"||F.value.kind!=="constant")return S;if(S.value.value===void 0||F.value.value===void 0)return new xu(this,{kind:"constant",value:void 0},S.parameters);let te=Lo[this.specification.type];if(te){let fe=te(S.value.value,F.value.value,W);return new xu(this,{kind:"constant",value:fe},S.parameters)}return S}evaluate(S,F,W,te,fe,pe){return S.kind==="constant"?S.value:S.evaluate(F,W,te,fe,pe)}}class Vc extends oo{possiblyEvaluate(S,F,W,te){if(S.value===void 0)return new xu(this,{kind:"constant",value:void 0},F);if(S.expression.kind==="constant"){let fe=S.expression.evaluate(F,null,{},W,te),pe=S.property.specification.type==="resolvedImage"&&typeof fe!="string"?fe.name:fe,ze=this._calculate(pe,pe,pe,F);return new xu(this,{kind:"constant",value:ze},F)}if(S.expression.kind==="camera"){let fe=this._calculate(S.expression.evaluate({zoom:F.zoom-1}),S.expression.evaluate({zoom:F.zoom}),S.expression.evaluate({zoom:F.zoom+1}),F);return new xu(this,{kind:"constant",value:fe},F)}return new xu(this,S.expression,F)}evaluate(S,F,W,te,fe,pe){if(S.kind==="source"){let ze=S.evaluate(F,W,te,fe,pe);return this._calculate(ze,ze,ze,F)}return S.kind==="composite"?this._calculate(S.evaluate({zoom:Math.floor(F.zoom)-1},W,te),S.evaluate({zoom:Math.floor(F.zoom)},W,te),S.evaluate({zoom:Math.floor(F.zoom)+1},W,te),F):S.value}_calculate(S,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:S,to:F}:{from:W,to:F}}interpolate(S){return S}}class hc{constructor(S){this.specification=S}possiblyEvaluate(S,F,W,te){if(S.value!==void 0){if(S.expression.kind==="constant"){let fe=S.expression.evaluate(F,null,{},W,te);return this._calculate(fe,fe,fe,F)}return this._calculate(S.expression.evaluate(new is(Math.floor(F.zoom-1),F)),S.expression.evaluate(new is(Math.floor(F.zoom),F)),S.expression.evaluate(new is(Math.floor(F.zoom+1),F)),F)}}_calculate(S,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:S,to:F}:{from:W,to:F}}interpolate(S){return S}}class Ku{constructor(S){this.specification=S}possiblyEvaluate(S,F,W,te){return!!S.expression.evaluate(F,null,{},W,te)}interpolate(){return!1}}class ue{constructor(S){this.properties=S,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let F in S){let W=S[F];W.specification.overridable&&this.overridableProperties.push(F);let te=this.defaultPropertyValues[F]=new $l(W,void 0),fe=this.defaultTransitionablePropertyValues[F]=new ku(W);this.defaultTransitioningPropertyValues[F]=fe.untransitioned(),this.defaultPossiblyEvaluatedValues[F]=te.possiblyEvaluate({})}}}Di("DataDrivenProperty",oo),Di("DataConstantProperty",Ua),Di("CrossFadedDataDrivenProperty",Vc),Di("CrossFadedProperty",hc),Di("ColorRampProperty",Ku);let w="-transition";class B extends Fe{constructor(S,F){if(super(),this.id=S.id,this.type=S.type,this._featureFilter={filter:()=>!0,needGeometry:!1},S.type!=="custom"&&(this.metadata=S.metadata,this.minzoom=S.minzoom,this.maxzoom=S.maxzoom,S.type!=="background"&&(this.source=S.source,this.sourceLayer=S["source-layer"],this.filter=S.filter),F.layout&&(this._unevaluatedLayout=new Uc(F.layout)),F.paint)){this._transitionablePaint=new Yu(F.paint);for(let W in S.paint)this.setPaintProperty(W,S.paint[W],{validate:!1});for(let W in S.layout)this.setLayoutProperty(W,S.layout[W],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ac(F.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(S){return S==="visibility"?this.visibility:this._unevaluatedLayout.getValue(S)}setLayoutProperty(S,F,W={}){F!=null&&this._validate(Bn,`layers.${this.id}.layout.${S}`,S,F,W)||(S!=="visibility"?this._unevaluatedLayout.setValue(S,F):this.visibility=F)}getPaintProperty(S){return S.endsWith(w)?this._transitionablePaint.getTransition(S.slice(0,-11)):this._transitionablePaint.getValue(S)}setPaintProperty(S,F,W={}){if(F!=null&&this._validate(Tn,`layers.${this.id}.paint.${S}`,S,F,W))return!1;if(S.endsWith(w))return this._transitionablePaint.setTransition(S.slice(0,-11),F||void 0),!1;{let te=this._transitionablePaint._values[S],fe=te.property.specification["property-type"]==="cross-faded-data-driven",pe=te.value.isDataDriven(),ze=te.value;this._transitionablePaint.setValue(S,F),this._handleSpecialPaintPropertyUpdate(S);let Ke=this._transitionablePaint._values[S].value;return Ke.isDataDriven()||pe||fe||this._handleOverridablePaintPropertyUpdate(S,ze,Ke)}}_handleSpecialPaintPropertyUpdate(S){}_handleOverridablePaintPropertyUpdate(S,F,W){return!1}isHidden(S){return!!(this.minzoom&&S=this.maxzoom)||this.visibility==="none"}updateTransitions(S){this._transitioningPaint=this._transitionablePaint.transitioned(S,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(S,F){S.getCrossfadeParameters&&(this._crossfadeParameters=S.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(S,void 0,F)),this.paint=this._transitioningPaint.possiblyEvaluate(S,void 0,F)}serialize(){let S={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(S.layout=S.layout||{},S.layout.visibility=this.visibility),M(S,(F,W)=>!(F===void 0||W==="layout"&&!Object.keys(F).length||W==="paint"&&!Object.keys(F).length))}_validate(S,F,W,te,fe={}){return(!fe||fe.validate!==!1)&&Zi(this,S.call(Ei,{key:F,layerType:this.type,objectKey:W,value:te,styleSpec:ce,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let S in this.paint._values){let F=this.paint.get(S);if(F instanceof xu&&Nl(F.property.specification)&&(F.value.kind==="source"||F.value.kind==="composite")&&F.value.isStateDependent)return!0}return!1}}let Q={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class ee{constructor(S,F){this._structArray=S,this._pos1=F*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class le{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(S,F){return S._trim(),F&&(S.isTransferred=!0,F.push(S.arrayBuffer)),{length:S.length,arrayBuffer:S.arrayBuffer}}static deserialize(S){let F=Object.create(this.prototype);return F.arrayBuffer=S.arrayBuffer,F.length=S.length,F.capacity=S.arrayBuffer.byteLength/F.bytesPerElement,F._refreshViews(),F}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(S){this.reserve(S),this.length=S}reserve(S){if(S>this.capacity){this.capacity=Math.max(S,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let F=this.uint8;this._refreshViews(),F&&this.uint8.set(F)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function qe(R,S=1){let F=0,W=0;return{members:R.map(te=>{let fe=Q[te.type].BYTES_PER_ELEMENT,pe=F=Xe(F,Math.max(S,fe)),ze=te.components||1;return W=Math.max(W,fe),F+=fe*ze,{name:te.name,type:te.type,components:ze,offset:pe}}),size:Xe(F,Math.max(W,S)),alignment:S}}function Xe(R,S){return Math.ceil(R/S)*S}class ot extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.int16[te+0]=F,this.int16[te+1]=W,S}}ot.prototype.bytesPerElement=4,Di("StructArrayLayout2i4",ot);class Tt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.int16[fe+0]=F,this.int16[fe+1]=W,this.int16[fe+2]=te,S}}Tt.prototype.bytesPerElement=6,Di("StructArrayLayout3i6",Tt);class Kt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,S,F,W,te)}emplace(S,F,W,te,fe){let pe=4*S;return this.int16[pe+0]=F,this.int16[pe+1]=W,this.int16[pe+2]=te,this.int16[pe+3]=fe,S}}Kt.prototype.bytesPerElement=8,Di("StructArrayLayout4i8",Kt);class Jt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=6*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.int16[Ke+2]=te,this.int16[Ke+3]=fe,this.int16[Ke+4]=pe,this.int16[Ke+5]=ze,S}}Jt.prototype.bytesPerElement=12,Di("StructArrayLayout2i4i12",Jt);class xr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=4*S,ut=8*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.uint8[ut+4]=te,this.uint8[ut+5]=fe,this.uint8[ut+6]=pe,this.uint8[ut+7]=ze,S}}xr.prototype.bytesPerElement=8,Di("StructArrayLayout2i4ub8",xr);class Pr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.float32[te+0]=F,this.float32[te+1]=W,S}}Pr.prototype.bytesPerElement=8,Di("StructArrayLayout2f8",Pr);class ve extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut,Lt){let Qt=this.length;return this.resize(Qt+1),this.emplace(Qt,S,F,W,te,fe,pe,ze,Ke,ut,Lt)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt){let fr=10*S;return this.uint16[fr+0]=F,this.uint16[fr+1]=W,this.uint16[fr+2]=te,this.uint16[fr+3]=fe,this.uint16[fr+4]=pe,this.uint16[fr+5]=ze,this.uint16[fr+6]=Ke,this.uint16[fr+7]=ut,this.uint16[fr+8]=Lt,this.uint16[fr+9]=Qt,S}}ve.prototype.bytesPerElement=20,Di("StructArrayLayout10ui20",ve);class be extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr){let mr=this.length;return this.resize(mr+1),this.emplace(mr,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr){let Lr=12*S;return this.int16[Lr+0]=F,this.int16[Lr+1]=W,this.int16[Lr+2]=te,this.int16[Lr+3]=fe,this.uint16[Lr+4]=pe,this.uint16[Lr+5]=ze,this.uint16[Lr+6]=Ke,this.uint16[Lr+7]=ut,this.int16[Lr+8]=Lt,this.int16[Lr+9]=Qt,this.int16[Lr+10]=fr,this.int16[Lr+11]=mr,S}}be.prototype.bytesPerElement=24,Di("StructArrayLayout4i4ui4i24",be);class Re extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.float32[fe+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,S}}Re.prototype.bytesPerElement=12,Di("StructArrayLayout3f12",Re);class Be extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.uint32[1*S+0]=F,S}}Be.prototype.bytesPerElement=4,Di("StructArrayLayout1ul4",Be);class tt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut){let Lt=this.length;return this.resize(Lt+1),this.emplace(Lt,S,F,W,te,fe,pe,ze,Ke,ut)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt){let Qt=10*S,fr=5*S;return this.int16[Qt+0]=F,this.int16[Qt+1]=W,this.int16[Qt+2]=te,this.int16[Qt+3]=fe,this.int16[Qt+4]=pe,this.int16[Qt+5]=ze,this.uint32[fr+3]=Ke,this.uint16[Qt+8]=ut,this.uint16[Qt+9]=Lt,S}}tt.prototype.bytesPerElement=20,Di("StructArrayLayout6i1ul2ui20",tt);class We extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=6*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.int16[Ke+2]=te,this.int16[Ke+3]=fe,this.int16[Ke+4]=pe,this.int16[Ke+5]=ze,S}}We.prototype.bytesPerElement=12,Di("StructArrayLayout2i2i2i12",We);class it extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe){let pe=this.length;return this.resize(pe+1),this.emplace(pe,S,F,W,te,fe)}emplace(S,F,W,te,fe,pe){let ze=4*S,Ke=8*S;return this.float32[ze+0]=F,this.float32[ze+1]=W,this.float32[ze+2]=te,this.int16[Ke+6]=fe,this.int16[Ke+7]=pe,S}}it.prototype.bytesPerElement=16,Di("StructArrayLayout2f1f2i16",it);class Dt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=16*S,ut=4*S,Lt=8*S;return this.uint8[Ke+0]=F,this.uint8[Ke+1]=W,this.float32[ut+1]=te,this.float32[ut+2]=fe,this.int16[Lt+6]=pe,this.int16[Lt+7]=ze,S}}Dt.prototype.bytesPerElement=16,Di("StructArrayLayout2ub2f2i16",Dt);class Ht extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.uint16[fe+0]=F,this.uint16[fe+1]=W,this.uint16[fe+2]=te,S}}Ht.prototype.bytesPerElement=6,Di("StructArrayLayout3ui6",Ht);class rr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi){let dn=this.length;return this.resize(dn+1),this.emplace(dn,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn){let Fi=24*S,ln=12*S,An=48*S;return this.int16[Fi+0]=F,this.int16[Fi+1]=W,this.uint16[Fi+2]=te,this.uint16[Fi+3]=fe,this.uint32[ln+2]=pe,this.uint32[ln+3]=ze,this.uint32[ln+4]=Ke,this.uint16[Fi+10]=ut,this.uint16[Fi+11]=Lt,this.uint16[Fi+12]=Qt,this.float32[ln+7]=fr,this.float32[ln+8]=mr,this.uint8[An+36]=Lr,this.uint8[An+37]=zr,this.uint8[An+38]=ui,this.uint32[ln+10]=yi,this.int16[Fi+22]=dn,S}}rr.prototype.bytesPerElement=48,Di("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",rr);class dr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn,Fi,ln,An,pa,ro,Vo,Xa,sa,Mo,fo){let lo=this.length;return this.resize(lo+1),this.emplace(lo,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn,Fi,ln,An,pa,ro,Vo,Xa,sa,Mo,fo)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn,Fi,ln,An,pa,ro,Vo,Xa,sa,Mo,fo,lo){let Xn=32*S,Ro=16*S;return this.int16[Xn+0]=F,this.int16[Xn+1]=W,this.int16[Xn+2]=te,this.int16[Xn+3]=fe,this.int16[Xn+4]=pe,this.int16[Xn+5]=ze,this.int16[Xn+6]=Ke,this.int16[Xn+7]=ut,this.uint16[Xn+8]=Lt,this.uint16[Xn+9]=Qt,this.uint16[Xn+10]=fr,this.uint16[Xn+11]=mr,this.uint16[Xn+12]=Lr,this.uint16[Xn+13]=zr,this.uint16[Xn+14]=ui,this.uint16[Xn+15]=yi,this.uint16[Xn+16]=dn,this.uint16[Xn+17]=Fi,this.uint16[Xn+18]=ln,this.uint16[Xn+19]=An,this.uint16[Xn+20]=pa,this.uint16[Xn+21]=ro,this.uint16[Xn+22]=Vo,this.uint32[Ro+12]=Xa,this.float32[Ro+13]=sa,this.float32[Ro+14]=Mo,this.uint16[Xn+30]=fo,this.uint16[Xn+31]=lo,S}}dr.prototype.bytesPerElement=64,Di("StructArrayLayout8i15ui1ul2f2ui64",dr);class Sr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.float32[1*S+0]=F,S}}Sr.prototype.bytesPerElement=4,Di("StructArrayLayout1f4",Sr);class Or extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.uint16[6*S+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,S}}Or.prototype.bytesPerElement=12,Di("StructArrayLayout1ui2f12",Or);class jr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=4*S;return this.uint32[2*S+0]=F,this.uint16[fe+2]=W,this.uint16[fe+3]=te,S}}jr.prototype.bytesPerElement=8,Di("StructArrayLayout1ul2ui8",jr);class ii extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.uint16[te+0]=F,this.uint16[te+1]=W,S}}ii.prototype.bytesPerElement=4,Di("StructArrayLayout2ui4",ii);class Li extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.uint16[1*S+0]=F,S}}Li.prototype.bytesPerElement=2,Di("StructArrayLayout1ui2",Li);class un extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,S,F,W,te)}emplace(S,F,W,te,fe){let pe=4*S;return this.float32[pe+0]=F,this.float32[pe+1]=W,this.float32[pe+2]=te,this.float32[pe+3]=fe,S}}un.prototype.bytesPerElement=16,Di("StructArrayLayout4f16",un);class sn extends ee{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new u(this.anchorPointX,this.anchorPointY)}}sn.prototype.size=20;class In extends tt{get(S){return new sn(this,S)}}Di("CollisionBoxArray",In);class Kn extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(S){this._structArray.uint8[this._pos1+37]=S}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(S){this._structArray.uint8[this._pos1+38]=S}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(S){this._structArray.uint32[this._pos4+10]=S}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Kn.prototype.size=48;class Aa extends rr{get(S){return new Kn(this,S)}}Di("PlacedSymbolArray",Aa);class fa extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(S){this._structArray.uint32[this._pos4+12]=S}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}fa.prototype.size=64;class $a extends dr{get(S){return new fa(this,S)}}Di("SymbolInstanceArray",$a);class ko extends Sr{getoffsetX(S){return this.float32[1*S+0]}}Di("GlyphOffsetArray",ko);class Qa extends Tt{getx(S){return this.int16[3*S+0]}gety(S){return this.int16[3*S+1]}gettileUnitDistanceFromAnchor(S){return this.int16[3*S+2]}}Di("SymbolLineVertexArray",Qa);class mo extends ee{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}mo.prototype.size=12;class Bo extends Or{get(S){return new mo(this,S)}}Di("TextAnchorOffsetArray",Bo);class Is extends ee{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}Is.prototype.size=8;class As extends jr{get(S){return new Is(this,S)}}Di("FeatureIndexArray",As);class wo extends ot{}class To extends ot{}class dl extends ot{}class Ul extends Jt{}class Lu extends xr{}class au extends Pr{}class $s extends ve{}class Ql extends be{}class dc extends Re{}class Al extends Be{}class Sl extends We{}class X extends Dt{}class se extends Ht{}class Te extends ii{}let Ne=qe([{name:"a_pos",components:2,type:"Int16"}],4),{members:He}=Ne;class Ye{constructor(S=[]){this.segments=S}prepareSegment(S,F,W,te){let fe=this.segments[this.segments.length-1];return S>Ye.MAX_VERTEX_ARRAY_LENGTH&&T(`Max vertices per segment is ${Ye.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${S}`),(!fe||fe.vertexLength+S>Ye.MAX_VERTEX_ARRAY_LENGTH||fe.sortKey!==te)&&(fe={vertexOffset:F.length,primitiveOffset:W.length,vertexLength:0,primitiveLength:0},te!==void 0&&(fe.sortKey=te),this.segments.push(fe)),fe}get(){return this.segments}destroy(){for(let S of this.segments)for(let F in S.vaos)S.vaos[F].destroy()}static simpleSegment(S,F,W,te){return new Ye([{vertexOffset:S,primitiveOffset:F,vertexLength:W,primitiveLength:te,vaos:{},sortKey:0}])}}function Ct(R,S){return 256*(R=E(Math.floor(R),0,255))+E(Math.floor(S),0,255)}Ye.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Di("SegmentVector",Ye);let nt=qe([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var jt={exports:{}},gr={exports:{}};gr.exports=function(R,S){var F,W,te,fe,pe,ze,Ke,ut;for(W=R.length-(F=3&R.length),te=S,pe=3432918353,ze=461845907,ut=0;ut>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*ze+(((Ke>>>16)*ze&65535)<<16)&4294967295)<<13|te>>>19))+((5*(te>>>16)&65535)<<16)&4294967295))+((58964+(fe>>>16)&65535)<<16);switch(Ke=0,F){case 3:Ke^=(255&R.charCodeAt(ut+2))<<16;case 2:Ke^=(255&R.charCodeAt(ut+1))<<8;case 1:te^=Ke=(65535&(Ke=(Ke=(65535&(Ke^=255&R.charCodeAt(ut)))*pe+(((Ke>>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*ze+(((Ke>>>16)*ze&65535)<<16)&4294967295}return te^=R.length,te=2246822507*(65535&(te^=te>>>16))+((2246822507*(te>>>16)&65535)<<16)&4294967295,te=3266489909*(65535&(te^=te>>>13))+((3266489909*(te>>>16)&65535)<<16)&4294967295,(te^=te>>>16)>>>0};var yr=gr.exports,Gr={exports:{}};Gr.exports=function(R,S){for(var F,W=R.length,te=S^W,fe=0;W>=4;)F=1540483477*(65535&(F=255&R.charCodeAt(fe)|(255&R.charCodeAt(++fe))<<8|(255&R.charCodeAt(++fe))<<16|(255&R.charCodeAt(++fe))<<24))+((1540483477*(F>>>16)&65535)<<16),te=1540483477*(65535&te)+((1540483477*(te>>>16)&65535)<<16)^(F=1540483477*(65535&(F^=F>>>24))+((1540483477*(F>>>16)&65535)<<16)),W-=4,++fe;switch(W){case 3:te^=(255&R.charCodeAt(fe+2))<<16;case 2:te^=(255&R.charCodeAt(fe+1))<<8;case 1:te=1540483477*(65535&(te^=255&R.charCodeAt(fe)))+((1540483477*(te>>>16)&65535)<<16)}return te=1540483477*(65535&(te^=te>>>13))+((1540483477*(te>>>16)&65535)<<16),(te^=te>>>15)>>>0};var qr=yr,_i=Gr.exports;jt.exports=qr,jt.exports.murmur3=qr,jt.exports.murmur2=_i;var bi=o(jt.exports);class Xr{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(S,F,W,te){this.ids.push(ni(S)),this.positions.push(F,W,te)}getPositions(S){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let F=ni(S),W=0,te=this.ids.length-1;for(;W>1;this.ids[pe]>=F?te=pe:W=pe+1}let fe=[];for(;this.ids[W]===F;)fe.push({index:this.positions[3*W],start:this.positions[3*W+1],end:this.positions[3*W+2]}),W++;return fe}static serialize(S,F){let W=new Float64Array(S.ids),te=new Uint32Array(S.positions);return gi(W,te,0,W.length-1),F&&F.push(W.buffer,te.buffer),{ids:W,positions:te}}static deserialize(S){let F=new Xr;return F.ids=S.ids,F.positions=S.positions,F.indexed=!0,F}}function ni(R){let S=+R;return!isNaN(S)&&S<=Number.MAX_SAFE_INTEGER?S:bi(String(R))}function gi(R,S,F,W){for(;F>1],fe=F-1,pe=W+1;for(;;){do fe++;while(R[fe]te);if(fe>=pe)break;Pi(R,fe,pe),Pi(S,3*fe,3*pe),Pi(S,3*fe+1,3*pe+1),Pi(S,3*fe+2,3*pe+2)}pe-F`u_${te}`),this.type=W}setUniform(S,F,W){S.set(W.constantOr(this.value))}getBinding(S,F,W){return this.type==="color"?new Cn(S,F):new ti(S,F)}}class Ia{constructor(S,F){this.uniformNames=F.map(W=>`u_${W}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(S,F){this.pixelRatioFrom=F.pixelRatio,this.pixelRatioTo=S.pixelRatio,this.patternFrom=F.tlbr,this.patternTo=S.tlbr}setUniform(S,F,W,te){let fe=te==="u_pattern_to"?this.patternTo:te==="u_pattern_from"?this.patternFrom:te==="u_pixel_ratio_to"?this.pixelRatioTo:te==="u_pixel_ratio_from"?this.pixelRatioFrom:null;fe&&S.set(fe)}getBinding(S,F,W){return W.substr(0,9)==="u_pattern"?new Rn(S,F):new ti(S,F)}}class yo{constructor(S,F,W,te){this.expression=S,this.type=W,this.maxValue=0,this.paintVertexAttributes=F.map(fe=>({name:`a_${fe}`,type:"Float32",components:W==="color"?2:1,offset:0})),this.paintVertexArray=new te}populatePaintArray(S,F,W,te,fe){let pe=this.paintVertexArray.length,ze=this.expression.evaluate(new is(0),F,{},te,[],fe);this.paintVertexArray.resize(S),this._setPaintValue(pe,S,ze)}updatePaintArray(S,F,W,te){let fe=this.expression.evaluate({zoom:0},W,te);this._setPaintValue(S,F,fe)}_setPaintValue(S,F,W){if(this.type==="color"){let te=ia(W);for(let fe=S;fe`u_${ze}_t`),this.type=W,this.useIntegerZoom=te,this.zoom=fe,this.maxValue=0,this.paintVertexAttributes=F.map(ze=>({name:`a_${ze}`,type:"Float32",components:W==="color"?4:2,offset:0})),this.paintVertexArray=new pe}populatePaintArray(S,F,W,te,fe){let pe=this.expression.evaluate(new is(this.zoom),F,{},te,[],fe),ze=this.expression.evaluate(new is(this.zoom+1),F,{},te,[],fe),Ke=this.paintVertexArray.length;this.paintVertexArray.resize(S),this._setPaintValue(Ke,S,pe,ze)}updatePaintArray(S,F,W,te){let fe=this.expression.evaluate({zoom:this.zoom},W,te),pe=this.expression.evaluate({zoom:this.zoom+1},W,te);this._setPaintValue(S,F,fe,pe)}_setPaintValue(S,F,W,te){if(this.type==="color"){let fe=ia(W),pe=ia(te);for(let ze=S;ze`#define HAS_UNIFORM_${te}`))}return S}getBinderAttributes(){let S=[];for(let F in this.binders){let W=this.binders[F];if(W instanceof yo||W instanceof Da)for(let te=0;te!0){this.programConfigurations={};for(let te of S)this.programConfigurations[te.id]=new Rs(te,F,W);this.needsUpload=!1,this._featureMap=new Xr,this._bufferOffset=0}populatePaintArrays(S,F,W,te,fe,pe){for(let ze in this.programConfigurations)this.programConfigurations[ze].populatePaintArrays(S,F,te,fe,pe);F.id!==void 0&&this._featureMap.add(F.id,W,this._bufferOffset,S),this._bufferOffset=S,this.needsUpload=!0}updatePaintArrays(S,F,W,te){for(let fe of W)this.needsUpload=this.programConfigurations[fe.id].updatePaintArrays(S,this._featureMap,F,fe,te)||this.needsUpload}get(S){return this.programConfigurations[S]}upload(S){if(this.needsUpload){for(let F in this.programConfigurations)this.programConfigurations[F].upload(S);this.needsUpload=!1}}destroy(){for(let S in this.programConfigurations)this.programConfigurations[S].destroy()}}function Zs(R,S){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[R]||[R.replace(`${S}-`,"").replace(/-/g,"_")]}function Gn(R,S,F){let W={color:{source:Pr,composite:un},number:{source:Sr,composite:Pr}},te=function(fe){return{"line-pattern":{source:$s,composite:$s},"fill-pattern":{source:$s,composite:$s},"fill-extrusion-pattern":{source:$s,composite:$s}}[fe]}(R);return te&&te[F]||W[S][F]}Di("ConstantBinder",Ea),Di("CrossFadedConstantBinder",Ia),Di("SourceExpressionBinder",yo),Di("CrossFadedCompositeBinder",go),Di("CompositeExpressionBinder",Da),Di("ProgramConfiguration",Rs,{omit:["_buffers"]}),Di("ProgramConfigurationSet",Es);let Ha=8192,Fo=Math.pow(2,14)-1,Uo=-Fo-1;function Qs(R){let S=Ha/R.extent,F=R.loadGeometry();for(let W=0;Wpe.x+1||Kepe.y+1)&&T("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return F}function Ml(R,S){return{type:R.type,id:R.id,properties:R.properties,geometry:S?Qs(R):[]}}function bu(R,S,F,W,te){R.emplaceBack(2*S+(W+1)/2,2*F+(te+1)/2)}class vl{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new To,this.indexArray=new se,this.segments=new Ye,this.programConfigurations=new Es(S.layers,S.zoom),this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){let te=this.layers[0],fe=[],pe=null,ze=!1;te.type==="circle"&&(pe=te.layout.get("circle-sort-key"),ze=!pe.isConstant());for(let{feature:Ke,id:ut,index:Lt,sourceLayerIndex:Qt}of S){let fr=this.layers[0]._featureFilter.needGeometry,mr=Ml(Ke,fr);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),mr,W))continue;let Lr=ze?pe.evaluate(mr,{},W):void 0,zr={id:ut,properties:Ke.properties,type:Ke.type,sourceLayerIndex:Qt,index:Lt,geometry:fr?mr.geometry:Qs(Ke),patterns:{},sortKey:Lr};fe.push(zr)}ze&&fe.sort((Ke,ut)=>Ke.sortKey-ut.sortKey);for(let Ke of fe){let{geometry:ut,index:Lt,sourceLayerIndex:Qt}=Ke,fr=S[Lt].feature;this.addFeature(Ke,ut,Lt,W),F.featureIndex.insert(fr,ut,Lt,Qt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,He),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(S,F,W,te){for(let fe of F)for(let pe of fe){let ze=pe.x,Ke=pe.y;if(ze<0||ze>=Ha||Ke<0||Ke>=Ha)continue;let ut=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,S.sortKey),Lt=ut.vertexLength;bu(this.layoutVertexArray,ze,Ke,-1,-1),bu(this.layoutVertexArray,ze,Ke,1,-1),bu(this.layoutVertexArray,ze,Ke,1,1),bu(this.layoutVertexArray,ze,Ke,-1,1),this.indexArray.emplaceBack(Lt,Lt+1,Lt+2),this.indexArray.emplaceBack(Lt,Lt+3,Lt+2),ut.vertexLength+=4,ut.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,W,{},te)}}function Sc(R,S){for(let F=0;F1){if(Ir(R,S))return!0;for(let W=0;W1?F:F.sub(S)._mult(te)._add(S))}function mi(R,S){let F,W,te,fe=!1;for(let pe=0;peS.y!=te.y>S.y&&S.x<(te.x-W.x)*(S.y-W.y)/(te.y-W.y)+W.x&&(fe=!fe)}return fe}function Ni(R,S){let F=!1;for(let W=0,te=R.length-1;WS.y!=pe.y>S.y&&S.x<(pe.x-fe.x)*(S.y-fe.y)/(pe.y-fe.y)+fe.x&&(F=!F)}return F}function Oi(R,S,F){let W=F[0],te=F[2];if(R.xte.x&&S.x>te.x||R.yte.y&&S.y>te.y)return!1;let fe=z(R,S,F[0]);return fe!==z(R,S,F[1])||fe!==z(R,S,F[2])||fe!==z(R,S,F[3])}function Mi(R,S,F){let W=S.paint.get(R).value;return W.kind==="constant"?W.value:F.programConfigurations.get(S.id).getMaxValue(R)}function Hn(R){return Math.sqrt(R[0]*R[0]+R[1]*R[1])}function Qi(R,S,F,W,te){if(!S[0]&&!S[1])return R;let fe=u.convert(S)._mult(te);F==="viewport"&&fe._rotate(-W);let pe=[];for(let ze=0;zeli(ui,zr))}(ut,Ke),mr=Qt?Lt*ze:Lt;for(let Lr of te)for(let zr of Lr){let ui=Qt?zr:li(zr,Ke),yi=mr,dn=qn([],[zr.x,zr.y,0,1],Ke);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?yi*=dn[3]/pe.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(yi*=pe.cameraToCenterDistance/dn[3]),Ee(fr,ui,yi))return!0}return!1}}function li(R,S){let F=qn([],[R.x,R.y,0,1],S);return new u(F[0]/F[3],F[1]/F[3])}class mn extends vl{}let Ki;Di("HeatmapBucket",mn,{omit:["layers"]});var Ui={get paint(){return Ki=Ki||new ue({"heatmap-radius":new oo(ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new oo(ce.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Ua(ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Ku(ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ua(ce.paint_heatmap["heatmap-opacity"])})}};function Bi(R,{width:S,height:F},W,te){if(te){if(te instanceof Uint8ClampedArray)te=new Uint8Array(te.buffer);else if(te.length!==S*F*W)throw new RangeError(`mismatched image size. expected: ${te.length} but got: ${S*F*W}`)}else te=new Uint8Array(S*F*W);return R.width=S,R.height=F,R.data=te,R}function vn(R,{width:S,height:F},W){if(S===R.width&&F===R.height)return;let te=Bi({},{width:S,height:F},W);Un(R,te,{x:0,y:0},{x:0,y:0},{width:Math.min(R.width,S),height:Math.min(R.height,F)},W),R.width=S,R.height=F,R.data=te.data}function Un(R,S,F,W,te,fe){if(te.width===0||te.height===0)return S;if(te.width>R.width||te.height>R.height||F.x>R.width-te.width||F.y>R.height-te.height)throw new RangeError("out of range source coordinates for image copy");if(te.width>S.width||te.height>S.height||W.x>S.width-te.width||W.y>S.height-te.height)throw new RangeError("out of range destination coordinates for image copy");let pe=R.data,ze=S.data;if(pe===ze)throw new Error("srcData equals dstData, so image is already copied");for(let Ke=0;Ke{S[R.evaluationKey]=Ke;let ut=R.expression.evaluate(S);te.data[pe+ze+0]=Math.floor(255*ut.r/ut.a),te.data[pe+ze+1]=Math.floor(255*ut.g/ut.a),te.data[pe+ze+2]=Math.floor(255*ut.b/ut.a),te.data[pe+ze+3]=Math.floor(255*ut.a)};if(R.clips)for(let pe=0,ze=0;pe80*F){ze=1/0,Ke=1/0;let Lt=-1/0,Qt=-1/0;for(let fr=F;frLt&&(Lt=mr),Lr>Qt&&(Qt=Lr)}ut=Math.max(Lt-ze,Qt-Ke),ut=ut!==0?32767/ut:0}return Vl(fe,pe,F,ze,Ke,ut,0),pe}function el(R,S,F,W,te){let fe;if(te===function(pe,ze,Ke,ut){let Lt=0;for(let Qt=ze,fr=Ke-ut;Qt0)for(let pe=S;pe=S;pe-=W)fe=qt(pe/W|0,R[pe],R[pe+1],fe);return fe&&ne(fe,fe.next)&&(Ve(fe),fe=fe.next),fe}function ol(R,S){if(!R)return R;S||(S=R);let F,W=R;do if(F=!1,W.steiner||!ne(W,W.next)&&de(W.prev,W,W.next)!==0)W=W.next;else{if(Ve(W),W=S=W.prev,W===W.next)break;F=!0}while(F||W!==S);return S}function Vl(R,S,F,W,te,fe,pe){if(!R)return;!pe&&fe&&function(Ke,ut,Lt,Qt){let fr=Ke;do fr.z===0&&(fr.z=D(fr.x,fr.y,ut,Lt,Qt)),fr.prevZ=fr.prev,fr.nextZ=fr.next,fr=fr.next;while(fr!==Ke);fr.prevZ.nextZ=null,fr.prevZ=null,function(mr){let Lr,zr=1;do{let ui,yi=mr;mr=null;let dn=null;for(Lr=0;yi;){Lr++;let Fi=yi,ln=0;for(let pa=0;pa0||An>0&&Fi;)ln!==0&&(An===0||!Fi||yi.z<=Fi.z)?(ui=yi,yi=yi.nextZ,ln--):(ui=Fi,Fi=Fi.nextZ,An--),dn?dn.nextZ=ui:mr=ui,ui.prevZ=dn,dn=ui;yi=Fi}dn.nextZ=null,zr*=2}while(Lr>1)}(fr)}(R,W,te,fe);let ze=R;for(;R.prev!==R.next;){let Ke=R.prev,ut=R.next;if(fe?Gs(R,W,te,fe):ls(R))S.push(Ke.i,R.i,ut.i),Ve(R),R=ut.next,ze=ut.next;else if((R=ut)===ze){pe?pe===1?Vl(R=Ks(ol(R),S),S,F,W,te,fe,2):pe===2&&Ta(R,S,F,W,te,fe):Vl(ol(R),S,F,W,te,fe,1);break}}}function ls(R){let S=R.prev,F=R,W=R.next;if(de(S,F,W)>=0)return!1;let te=S.x,fe=F.x,pe=W.x,ze=S.y,Ke=F.y,ut=W.y,Lt=tefe?te>pe?te:pe:fe>pe?fe:pe,mr=ze>Ke?ze>ut?ze:ut:Ke>ut?Ke:ut,Lr=W.next;for(;Lr!==S;){if(Lr.x>=Lt&&Lr.x<=fr&&Lr.y>=Qt&&Lr.y<=mr&&q(te,ze,fe,Ke,pe,ut,Lr.x,Lr.y)&&de(Lr.prev,Lr,Lr.next)>=0)return!1;Lr=Lr.next}return!0}function Gs(R,S,F,W){let te=R.prev,fe=R,pe=R.next;if(de(te,fe,pe)>=0)return!1;let ze=te.x,Ke=fe.x,ut=pe.x,Lt=te.y,Qt=fe.y,fr=pe.y,mr=zeKe?ze>ut?ze:ut:Ke>ut?Ke:ut,ui=Lt>Qt?Lt>fr?Lt:fr:Qt>fr?Qt:fr,yi=D(mr,Lr,S,F,W),dn=D(zr,ui,S,F,W),Fi=R.prevZ,ln=R.nextZ;for(;Fi&&Fi.z>=yi&&ln&&ln.z<=dn;){if(Fi.x>=mr&&Fi.x<=zr&&Fi.y>=Lr&&Fi.y<=ui&&Fi!==te&&Fi!==pe&&q(ze,Lt,Ke,Qt,ut,fr,Fi.x,Fi.y)&&de(Fi.prev,Fi,Fi.next)>=0||(Fi=Fi.prevZ,ln.x>=mr&&ln.x<=zr&&ln.y>=Lr&&ln.y<=ui&&ln!==te&&ln!==pe&&q(ze,Lt,Ke,Qt,ut,fr,ln.x,ln.y)&&de(ln.prev,ln,ln.next)>=0))return!1;ln=ln.nextZ}for(;Fi&&Fi.z>=yi;){if(Fi.x>=mr&&Fi.x<=zr&&Fi.y>=Lr&&Fi.y<=ui&&Fi!==te&&Fi!==pe&&q(ze,Lt,Ke,Qt,ut,fr,Fi.x,Fi.y)&&de(Fi.prev,Fi,Fi.next)>=0)return!1;Fi=Fi.prevZ}for(;ln&&ln.z<=dn;){if(ln.x>=mr&&ln.x<=zr&&ln.y>=Lr&&ln.y<=ui&&ln!==te&&ln!==pe&&q(ze,Lt,Ke,Qt,ut,fr,ln.x,ln.y)&&de(ln.prev,ln,ln.next)>=0)return!1;ln=ln.nextZ}return!0}function Ks(R,S){let F=R;do{let W=F.prev,te=F.next.next;!ne(W,te)&&we(W,F,F.next,te)&&Zt(W,te)&&Zt(te,W)&&(S.push(W.i,F.i,te.i),Ve(F),Ve(F.next),F=R=te),F=F.next}while(F!==R);return ol(F)}function Ta(R,S,F,W,te,fe){let pe=R;do{let ze=pe.next.next;for(;ze!==pe.prev;){if(pe.i!==ze.i&&K(pe,ze)){let Ke=hr(pe,ze);return pe=ol(pe,pe.next),Ke=ol(Ke,Ke.next),Vl(pe,S,F,W,te,fe,0),void Vl(Ke,S,F,W,te,fe,0)}ze=ze.next}pe=pe.next}while(pe!==R)}function sl(R,S){return R.x-S.x}function io(R,S){let F=function(te,fe){let pe=fe,ze=te.x,Ke=te.y,ut,Lt=-1/0;do{if(Ke<=pe.y&&Ke>=pe.next.y&&pe.next.y!==pe.y){let zr=pe.x+(Ke-pe.y)*(pe.next.x-pe.x)/(pe.next.y-pe.y);if(zr<=ze&&zr>Lt&&(Lt=zr,ut=pe.x=pe.x&&pe.x>=fr&&ze!==pe.x&&q(Keut.x||pe.x===ut.x&&Y(ut,pe)))&&(ut=pe,Lr=zr)}pe=pe.next}while(pe!==Qt);return ut}(R,S);if(!F)return S;let W=hr(F,R);return ol(W,W.next),ol(F,F.next)}function Y(R,S){return de(R.prev,R,S.prev)<0&&de(S.next,R,R.next)<0}function D(R,S,F,W,te){return(R=1431655765&((R=858993459&((R=252645135&((R=16711935&((R=(R-F)*te|0)|R<<8))|R<<4))|R<<2))|R<<1))|(S=1431655765&((S=858993459&((S=252645135&((S=16711935&((S=(S-W)*te|0)|S<<8))|S<<4))|S<<2))|S<<1))<<1}function J(R){let S=R,F=R;do(S.x=(R-pe)*(fe-ze)&&(R-pe)*(W-ze)>=(F-pe)*(S-ze)&&(F-pe)*(fe-ze)>=(te-pe)*(W-ze)}function K(R,S){return R.next.i!==S.i&&R.prev.i!==S.i&&!function(F,W){let te=F;do{if(te.i!==F.i&&te.next.i!==F.i&&te.i!==W.i&&te.next.i!==W.i&&we(te,te.next,F,W))return!0;te=te.next}while(te!==F);return!1}(R,S)&&(Zt(R,S)&&Zt(S,R)&&function(F,W){let te=F,fe=!1,pe=(F.x+W.x)/2,ze=(F.y+W.y)/2;do te.y>ze!=te.next.y>ze&&te.next.y!==te.y&&pe<(te.next.x-te.x)*(ze-te.y)/(te.next.y-te.y)+te.x&&(fe=!fe),te=te.next;while(te!==F);return fe}(R,S)&&(de(R.prev,R,S.prev)||de(R,S.prev,S))||ne(R,S)&&de(R.prev,R,R.next)>0&&de(S.prev,S,S.next)>0)}function de(R,S,F){return(S.y-R.y)*(F.x-S.x)-(S.x-R.x)*(F.y-S.y)}function ne(R,S){return R.x===S.x&&R.y===S.y}function we(R,S,F,W){let te=ft(de(R,S,F)),fe=ft(de(R,S,W)),pe=ft(de(F,W,R)),ze=ft(de(F,W,S));return te!==fe&&pe!==ze||!(te!==0||!Ue(R,F,S))||!(fe!==0||!Ue(R,W,S))||!(pe!==0||!Ue(F,R,W))||!(ze!==0||!Ue(F,S,W))}function Ue(R,S,F){return S.x<=Math.max(R.x,F.x)&&S.x>=Math.min(R.x,F.x)&&S.y<=Math.max(R.y,F.y)&&S.y>=Math.min(R.y,F.y)}function ft(R){return R>0?1:R<0?-1:0}function Zt(R,S){return de(R.prev,R,R.next)<0?de(R,S,R.next)>=0&&de(R,R.prev,S)>=0:de(R,S,R.prev)<0||de(R,R.next,S)<0}function hr(R,S){let F=et(R.i,R.x,R.y),W=et(S.i,S.x,S.y),te=R.next,fe=S.prev;return R.next=S,S.prev=R,F.next=te,te.prev=F,W.next=F,F.prev=W,fe.next=W,W.prev=fe,W}function qt(R,S,F,W){let te=et(R,S,F);return W?(te.next=W.next,te.prev=W,W.next.prev=te,W.next=te):(te.prev=te,te.next=te),te}function Ve(R){R.next.prev=R.prev,R.prev.next=R.next,R.prevZ&&(R.prevZ.nextZ=R.nextZ),R.nextZ&&(R.nextZ.prevZ=R.prevZ)}function et(R,S,F){return{i:R,x:S,y:F,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function at(R,S,F){let W=F.patternDependencies,te=!1;for(let fe of S){let pe=fe.paint.get(`${R}-pattern`);pe.isConstant()||(te=!0);let ze=pe.constantOr(null);ze&&(te=!0,W[ze.to]=!0,W[ze.from]=!0)}return te}function kt(R,S,F,W,te){let fe=te.patternDependencies;for(let pe of S){let ze=pe.paint.get(`${R}-pattern`).value;if(ze.kind!=="constant"){let Ke=ze.evaluate({zoom:W-1},F,{},te.availableImages),ut=ze.evaluate({zoom:W},F,{},te.availableImages),Lt=ze.evaluate({zoom:W+1},F,{},te.availableImages);Ke=Ke&&Ke.name?Ke.name:Ke,ut=ut&&ut.name?ut.name:ut,Lt=Lt&&Lt.name?Lt.name:Lt,fe[Ke]=!0,fe[ut]=!0,fe[Lt]=!0,F.patterns[pe.id]={min:Ke,mid:ut,max:Lt}}}return F}class Ot{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new dl,this.indexArray=new se,this.indexArray2=new Te,this.programConfigurations=new Es(S.layers,S.zoom),this.segments=new Ye,this.segments2=new Ye,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.hasPattern=at("fill",this.layers,F);let te=this.layers[0].layout.get("fill-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:ze,id:Ke,index:ut,sourceLayerIndex:Lt}of S){let Qt=this.layers[0]._featureFilter.needGeometry,fr=Ml(ze,Qt);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),fr,W))continue;let mr=fe?te.evaluate(fr,{},W,F.availableImages):void 0,Lr={id:Ke,properties:ze.properties,type:ze.type,sourceLayerIndex:Lt,index:ut,geometry:Qt?fr.geometry:Qs(ze),patterns:{},sortKey:mr};pe.push(Lr)}fe&&pe.sort((ze,Ke)=>ze.sortKey-Ke.sortKey);for(let ze of pe){let{geometry:Ke,index:ut,sourceLayerIndex:Lt}=ze;if(this.hasPattern){let Qt=kt("fill",this.layers,ze,this.zoom,F);this.patternFeatures.push(Qt)}else this.addFeature(ze,Ke,ut,W,{});F.featureIndex.insert(S[ut].feature,Ke,ut,Lt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}addFeatures(S,F,W){for(let te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,F,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,El),this.indexBuffer=S.createIndexBuffer(this.indexArray),this.indexBuffer2=S.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(S,F,W,te,fe){for(let pe of Cf(F,500)){let ze=0;for(let mr of pe)ze+=mr.length;let Ke=this.segments.prepareSegment(ze,this.layoutVertexArray,this.indexArray),ut=Ke.vertexLength,Lt=[],Qt=[];for(let mr of pe){if(mr.length===0)continue;mr!==pe[0]&&Qt.push(Lt.length/2);let Lr=this.segments2.prepareSegment(mr.length,this.layoutVertexArray,this.indexArray2),zr=Lr.vertexLength;this.layoutVertexArray.emplaceBack(mr[0].x,mr[0].y),this.indexArray2.emplaceBack(zr+mr.length-1,zr),Lt.push(mr[0].x),Lt.push(mr[0].y);for(let ui=1;ui>3}if(te--,W===1||W===2)fe+=R.readSVarint(),pe+=R.readSVarint(),W===1&&(S&&ze.push(S),S=[]),S.push(new Nr(fe,pe));else{if(W!==7)throw new Error("unknown command "+W);S&&S.push(S[0].clone())}}return S&&ze.push(S),ze},hi.prototype.bbox=function(){var R=this._pbf;R.pos=this._geometry;for(var S=R.readVarint()+R.pos,F=1,W=0,te=0,fe=0,pe=1/0,ze=-1/0,Ke=1/0,ut=-1/0;R.pos>3}if(W--,F===1||F===2)(te+=R.readSVarint())ze&&(ze=te),(fe+=R.readSVarint())ut&&(ut=fe);else if(F!==7)throw new Error("unknown command "+F)}return[pe,Ke,ze,ut]},hi.prototype.toGeoJSON=function(R,S,F){var W,te,fe=this.extent*Math.pow(2,F),pe=this.extent*R,ze=this.extent*S,Ke=this.loadGeometry(),ut=hi.types[this.type];function Lt(mr){for(var Lr=0;Lr>3;te=pe===1?W.readString():pe===2?W.readFloat():pe===3?W.readDouble():pe===4?W.readVarint64():pe===5?W.readVarint():pe===6?W.readSVarint():pe===7?W.readBoolean():null}return te}(F))}qi.prototype.feature=function(R){if(R<0||R>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[R];var S=this._pbf.readVarint()+this._pbf.pos;return new tn(this._pbf,S,this.extent,this._keys,this._values)};var on=Ci;function On(R,S,F){if(R===3){var W=new on(F,F.readVarint()+F.pos);W.length&&(S[W.name]=W)}}br.VectorTile=function(R,S){this.layers=R.readFields(On,{},S)},br.VectorTileFeature=Ri,br.VectorTileLayer=Ci;let Ja=br.VectorTileFeature.types,co=Math.pow(2,13);function rs(R,S,F,W,te,fe,pe,ze){R.emplaceBack(S,F,2*Math.floor(W*co)+pe,te*co*2,fe*co*2,Math.round(ze))}class so{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new Ul,this.centroidVertexArray=new wo,this.indexArray=new se,this.programConfigurations=new Es(S.layers,S.zoom),this.segments=new Ye,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.features=[],this.hasPattern=at("fill-extrusion",this.layers,F);for(let{feature:te,id:fe,index:pe,sourceLayerIndex:ze}of S){let Ke=this.layers[0]._featureFilter.needGeometry,ut=Ml(te,Ke);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),ut,W))continue;let Lt={id:fe,sourceLayerIndex:ze,index:pe,geometry:Ke?ut.geometry:Qs(te),properties:te.properties,type:te.type,patterns:{}};this.hasPattern?this.features.push(kt("fill-extrusion",this.layers,Lt,this.zoom,F)):this.addFeature(Lt,Lt.geometry,pe,W,{}),F.featureIndex.insert(te,Lt.geometry,pe,ze,this.index,!0)}}addFeatures(S,F,W){for(let te of this.features){let{geometry:fe}=te;this.addFeature(te,fe,te.index,F,W)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,cr),this.centroidVertexBuffer=S.createVertexBuffer(this.centroidVertexArray,ht.members,!0),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(S,F,W,te,fe){for(let pe of Cf(F,500)){let ze={x:0,y:0,vertexCount:0},Ke=0;for(let Lr of pe)Ke+=Lr.length;let ut=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Lr of pe){if(Lr.length===0||ys(Lr))continue;let zr=0;for(let ui=0;ui=1){let dn=Lr[ui-1];if(!Zo(yi,dn)){ut.vertexLength+4>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ut=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let Fi=yi.sub(dn)._perp()._unit(),ln=dn.dist(yi);zr+ln>32768&&(zr=0),rs(this.layoutVertexArray,yi.x,yi.y,Fi.x,Fi.y,0,0,zr),rs(this.layoutVertexArray,yi.x,yi.y,Fi.x,Fi.y,0,1,zr),ze.x+=2*yi.x,ze.y+=2*yi.y,ze.vertexCount+=2,zr+=ln,rs(this.layoutVertexArray,dn.x,dn.y,Fi.x,Fi.y,0,0,zr),rs(this.layoutVertexArray,dn.x,dn.y,Fi.x,Fi.y,0,1,zr),ze.x+=2*dn.x,ze.y+=2*dn.y,ze.vertexCount+=2;let An=ut.vertexLength;this.indexArray.emplaceBack(An,An+2,An+1),this.indexArray.emplaceBack(An+1,An+2,An+3),ut.vertexLength+=4,ut.primitiveLength+=2}}}}if(ut.vertexLength+Ke>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ut=this.segments.prepareSegment(Ke,this.layoutVertexArray,this.indexArray)),Ja[S.type]!=="Polygon")continue;let Lt=[],Qt=[],fr=ut.vertexLength;for(let Lr of pe)if(Lr.length!==0){Lr!==pe[0]&&Qt.push(Lt.length/2);for(let zr=0;zrHa)||R.y===S.y&&(R.y<0||R.y>Ha)}function ys(R){return R.every(S=>S.x<0)||R.every(S=>S.x>Ha)||R.every(S=>S.y<0)||R.every(S=>S.y>Ha)}let ou;Di("FillExtrusionBucket",so,{omit:["layers","features"]});var Cv={get paint(){return ou=ou||new ue({"fill-extrusion-opacity":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new oo(ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Vc(ce["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new oo(ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new oo(ce["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class kv extends B{constructor(S){super(S,Cv)}createBucket(S){return new so(S)}queryRadius(){return Hn(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(S,F,W,te,fe,pe,ze,Ke){let ut=Qi(S,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),pe.angle,ze),Lt=this.paint.get("fill-extrusion-height").evaluate(F,W),Qt=this.paint.get("fill-extrusion-base").evaluate(F,W),fr=function(Lr,zr,ui,yi){let dn=[];for(let Fi of Lr){let ln=[Fi.x,Fi.y,0,1];qn(ln,ln,zr),dn.push(new u(ln[0]/ln[3],ln[1]/ln[3]))}return dn}(ut,Ke),mr=function(Lr,zr,ui,yi){let dn=[],Fi=[],ln=yi[8]*zr,An=yi[9]*zr,pa=yi[10]*zr,ro=yi[11]*zr,Vo=yi[8]*ui,Xa=yi[9]*ui,sa=yi[10]*ui,Mo=yi[11]*ui;for(let fo of Lr){let lo=[],Xn=[];for(let Ro of fo){let uo=Ro.x,$o=Ro.y,Ju=yi[0]*uo+yi[4]*$o+yi[12],qu=yi[1]*uo+yi[5]*$o+yi[13],Th=yi[2]*uo+yi[6]*$o+yi[14],$v=yi[3]*uo+yi[7]*$o+yi[15],ld=Th+pa,Ah=$v+ro,Gd=Ju+Vo,Hd=qu+Xa,jd=Th+sa,Tf=$v+Mo,Sh=new u((Ju+ln)/Ah,(qu+An)/Ah);Sh.z=ld/Ah,lo.push(Sh);let Ed=new u(Gd/Tf,Hd/Tf);Ed.z=jd/Tf,Xn.push(Ed)}dn.push(lo),Fi.push(Xn)}return[dn,Fi]}(te,Qt,Lt,Ke);return function(Lr,zr,ui){let yi=1/0;xt(ui,zr)&&(yi=Yv(ui,zr[0]));for(let dn=0;dnF.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(F=>{this.gradients[F.id]={}}),this.layoutVertexArray=new Lu,this.layoutVertexArray2=new au,this.indexArray=new se,this.programConfigurations=new Es(S.layers,S.zoom),this.segments=new Ye,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.hasPattern=at("line",this.layers,F);let te=this.layers[0].layout.get("line-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:ze,id:Ke,index:ut,sourceLayerIndex:Lt}of S){let Qt=this.layers[0]._featureFilter.needGeometry,fr=Ml(ze,Qt);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),fr,W))continue;let mr=fe?te.evaluate(fr,{},W):void 0,Lr={id:Ke,properties:ze.properties,type:ze.type,sourceLayerIndex:Lt,index:ut,geometry:Qt?fr.geometry:Qs(ze),patterns:{},sortKey:mr};pe.push(Lr)}fe&&pe.sort((ze,Ke)=>ze.sortKey-Ke.sortKey);for(let ze of pe){let{geometry:Ke,index:ut,sourceLayerIndex:Lt}=ze;if(this.hasPattern){let Qt=kt("line",this.layers,ze,this.zoom,F);this.patternFeatures.push(Qt)}else this.addFeature(ze,Ke,ut,W,{});F.featureIndex.insert(S[ut].feature,Ke,ut,Lt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}addFeatures(S,F,W){for(let te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,F,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=S.createVertexBuffer(this.layoutVertexArray2,vp)),this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,dp),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(S){if(S.properties&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_end"))return{start:+S.properties.mapbox_clip_start,end:+S.properties.mapbox_clip_end}}addFeature(S,F,W,te,fe){let pe=this.layers[0].layout,ze=pe.get("line-join").evaluate(S,{}),Ke=pe.get("line-cap"),ut=pe.get("line-miter-limit"),Lt=pe.get("line-round-limit");this.lineClips=this.lineFeatureClips(S);for(let Qt of F)this.addLine(Qt,S,ze,Ke,ut,Lt);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,W,fe,te)}addLine(S,F,W,te,fe,pe){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let yi=0;yi=2&&S[Ke-1].equals(S[Ke-2]);)Ke--;let ut=0;for(;ut0;if(ro&&yi>ut){let Mo=fr.dist(mr);if(Mo>2*Lt){let fo=fr.sub(fr.sub(mr)._mult(Lt/Mo)._round());this.updateDistance(mr,fo),this.addCurrentVertex(fo,zr,0,0,Qt),mr=fo}}let Xa=mr&&Lr,sa=Xa?W:ze?"butt":te;if(Xa&&sa==="round"&&(Anfe&&(sa="bevel"),sa==="bevel"&&(An>2&&(sa="flipbevel"),An100)dn=ui.mult(-1);else{let Mo=An*zr.add(ui).mag()/zr.sub(ui).mag();dn._perp()._mult(Mo*(Vo?-1:1))}this.addCurrentVertex(fr,dn,0,0,Qt),this.addCurrentVertex(fr,dn.mult(-1),0,0,Qt)}else if(sa==="bevel"||sa==="fakeround"){let Mo=-Math.sqrt(An*An-1),fo=Vo?Mo:0,lo=Vo?0:Mo;if(mr&&this.addCurrentVertex(fr,zr,fo,lo,Qt),sa==="fakeround"){let Xn=Math.round(180*pa/Math.PI/20);for(let Ro=1;Ro2*Lt){let fo=fr.add(Lr.sub(fr)._mult(Lt/Mo)._round());this.updateDistance(fr,fo),this.addCurrentVertex(fo,ui,0,0,Qt),fr=fo}}}}addCurrentVertex(S,F,W,te,fe,pe=!1){let ze=F.y*te-F.x,Ke=-F.y-F.x*te;this.addHalfVertex(S,F.x+F.y*W,F.y-F.x*W,pe,!1,W,fe),this.addHalfVertex(S,ze,Ke,pe,!0,-te,fe),this.distance>Lv/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(S,F,W,te,fe,pe))}addHalfVertex({x:S,y:F},W,te,fe,pe,ze,Ke){let ut=.5*(this.lineClips?this.scaledDistance*(Lv-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((S<<1)+(fe?1:0),(F<<1)+(pe?1:0),Math.round(63*W)+128,Math.round(63*te)+128,1+(ze===0?0:ze<0?-1:1)|(63&ut)<<2,ut>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let Lt=Ke.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Lt),Ke.primitiveLength++),pe?this.e2=Lt:this.e1=Lt}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(S,F){this.distance+=S.dist(F),this.updateScaledDistance()}}let Pv,ny;Di("LineBucket",Kv,{omit:["layers","patternFeatures"]});var fg={get paint(){return ny=ny||new ue({"line-opacity":new oo(ce.paint_line["line-opacity"]),"line-color":new oo(ce.paint_line["line-color"]),"line-translate":new Ua(ce.paint_line["line-translate"]),"line-translate-anchor":new Ua(ce.paint_line["line-translate-anchor"]),"line-width":new oo(ce.paint_line["line-width"]),"line-gap-width":new oo(ce.paint_line["line-gap-width"]),"line-offset":new oo(ce.paint_line["line-offset"]),"line-blur":new oo(ce.paint_line["line-blur"]),"line-dasharray":new hc(ce.paint_line["line-dasharray"]),"line-pattern":new Vc(ce.paint_line["line-pattern"]),"line-gradient":new Ku(ce.paint_line["line-gradient"])})},get layout(){return Pv=Pv||new ue({"line-cap":new Ua(ce.layout_line["line-cap"]),"line-join":new oo(ce.layout_line["line-join"]),"line-miter-limit":new Ua(ce.layout_line["line-miter-limit"]),"line-round-limit":new Ua(ce.layout_line["line-round-limit"]),"line-sort-key":new oo(ce.layout_line["line-sort-key"])})}};class oh extends oo{possiblyEvaluate(S,F){return F=new is(Math.floor(F.zoom),{now:F.now,fadeDuration:F.fadeDuration,zoomHistory:F.zoomHistory,transition:F.transition}),super.possiblyEvaluate(S,F)}evaluate(S,F,W,te){return F=L({},F,{zoom:Math.floor(F.zoom)}),super.evaluate(S,F,W,te)}}let hg;class ay extends B{constructor(S){super(S,fg),this.gradientVersion=0,hg||(hg=new oh(fg.paint.properties["line-width"].specification),hg.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(S){if(S==="line-gradient"){let F=this.gradientExpression();this.stepInterpolant=!!function(W){return W._styleExpression!==void 0}(F)&&F._styleExpression.expression instanceof _n,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(S,F){super.recalculate(S,F),this.paint._values["line-floorwidth"]=hg.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,S)}createBucket(S){return new Kv(S)}queryRadius(S){let F=S,W=Gh(Mi("line-width",this,F),Mi("line-gap-width",this,F)),te=Mi("line-offset",this,F);return W/2+Math.abs(te)+Hn(this.paint.get("line-translate"))}queryIntersectsFeature(S,F,W,te,fe,pe,ze){let Ke=Qi(S,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),pe.angle,ze),ut=ze/2*Gh(this.paint.get("line-width").evaluate(F,W),this.paint.get("line-gap-width").evaluate(F,W)),Lt=this.paint.get("line-offset").evaluate(F,W);return Lt&&(te=function(Qt,fr){let mr=[];for(let Lr=0;Lr=3){for(let ui=0;ui0?S+2*R:R}let rm=qe([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),w1=qe([{name:"a_projected_pos",components:3,type:"Float32"}],4);qe([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let T1=qe([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);qe([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let oy=qe([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),im=qe([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function nm(R,S,F){return R.sections.forEach(W=>{W.text=function(te,fe,pe){let ze=fe.layout.get("text-transform").evaluate(pe,{});return ze==="uppercase"?te=te.toLocaleUpperCase():ze==="lowercase"&&(te=te.toLocaleLowerCase()),_s.applyArabicShaping&&(te=_s.applyArabicShaping(te)),te}(W.text,S,F)}),R}qe([{name:"triangle",components:3,type:"Uint16"}]),qe([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),qe([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),qe([{type:"Float32",name:"offsetX"}]),qe([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),qe([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let vc={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};var eu=24,Sd=wu,sy=function(R,S,F,W,te){var fe,pe,ze=8*te-W-1,Ke=(1<>1,Lt=-7,Qt=F?te-1:0,fr=F?-1:1,mr=R[S+Qt];for(Qt+=fr,fe=mr&(1<<-Lt)-1,mr>>=-Lt,Lt+=ze;Lt>0;fe=256*fe+R[S+Qt],Qt+=fr,Lt-=8);for(pe=fe&(1<<-Lt)-1,fe>>=-Lt,Lt+=W;Lt>0;pe=256*pe+R[S+Qt],Qt+=fr,Lt-=8);if(fe===0)fe=1-ut;else{if(fe===Ke)return pe?NaN:1/0*(mr?-1:1);pe+=Math.pow(2,W),fe-=ut}return(mr?-1:1)*pe*Math.pow(2,fe-W)},A1=function(R,S,F,W,te,fe){var pe,ze,Ke,ut=8*fe-te-1,Lt=(1<>1,fr=te===23?Math.pow(2,-24)-Math.pow(2,-77):0,mr=W?0:fe-1,Lr=W?1:-1,zr=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(ze=isNaN(S)?1:0,pe=Lt):(pe=Math.floor(Math.log(S)/Math.LN2),S*(Ke=Math.pow(2,-pe))<1&&(pe--,Ke*=2),(S+=pe+Qt>=1?fr/Ke:fr*Math.pow(2,1-Qt))*Ke>=2&&(pe++,Ke/=2),pe+Qt>=Lt?(ze=0,pe=Lt):pe+Qt>=1?(ze=(S*Ke-1)*Math.pow(2,te),pe+=Qt):(ze=S*Math.pow(2,Qt-1)*Math.pow(2,te),pe=0));te>=8;R[F+mr]=255&ze,mr+=Lr,ze/=256,te-=8);for(pe=pe<0;R[F+mr]=255&pe,mr+=Lr,pe/=256,ut-=8);R[F+mr-Lr]|=128*zr};function wu(R){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(R)?R:new Uint8Array(R||0),this.pos=0,this.type=0,this.length=this.buf.length}wu.Varint=0,wu.Fixed64=1,wu.Bytes=2,wu.Fixed32=5;var Bx=4294967296,am=1/Bx,Mw=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function Iv(R){return R.type===wu.Bytes?R.readVarint()+R.pos:R.pos+1}function om(R,S,F){return F?4294967296*S+(R>>>0):4294967296*(S>>>0)+(R>>>0)}function Ew(R,S,F){var W=S<=16383?1:S<=2097151?2:S<=268435455?3:Math.floor(Math.log(S)/(7*Math.LN2));F.realloc(W);for(var te=F.pos-1;te>=R;te--)F.buf[te+W]=F.buf[te]}function Nx(R,S){for(var F=0;F>>8,R[F+2]=S>>>16,R[F+3]=S>>>24}function gk(R,S){return(R[S]|R[S+1]<<8|R[S+2]<<16)+(R[S+3]<<24)}wu.prototype={destroy:function(){this.buf=null},readFields:function(R,S,F){for(F=F||this.length;this.pos>3,fe=this.pos;this.type=7&W,R(te,S,this),this.pos===fe&&this.skip(W)}return S},readMessage:function(R,S){return this.readFields(R,S,this.readVarint()+this.pos)},readFixed32:function(){var R=ly(this.buf,this.pos);return this.pos+=4,R},readSFixed32:function(){var R=gk(this.buf,this.pos);return this.pos+=4,R},readFixed64:function(){var R=ly(this.buf,this.pos)+ly(this.buf,this.pos+4)*Bx;return this.pos+=8,R},readSFixed64:function(){var R=ly(this.buf,this.pos)+gk(this.buf,this.pos+4)*Bx;return this.pos+=8,R},readFloat:function(){var R=sy(this.buf,this.pos,!0,23,4);return this.pos+=4,R},readDouble:function(){var R=sy(this.buf,this.pos,!0,52,8);return this.pos+=8,R},readVarint:function(R){var S,F,W=this.buf;return S=127&(F=W[this.pos++]),F<128?S:(S|=(127&(F=W[this.pos++]))<<7,F<128?S:(S|=(127&(F=W[this.pos++]))<<14,F<128?S:(S|=(127&(F=W[this.pos++]))<<21,F<128?S:function(te,fe,pe){var ze,Ke,ut=pe.buf;if(ze=(112&(Ke=ut[pe.pos++]))>>4,Ke<128||(ze|=(127&(Ke=ut[pe.pos++]))<<3,Ke<128)||(ze|=(127&(Ke=ut[pe.pos++]))<<10,Ke<128)||(ze|=(127&(Ke=ut[pe.pos++]))<<17,Ke<128)||(ze|=(127&(Ke=ut[pe.pos++]))<<24,Ke<128)||(ze|=(1&(Ke=ut[pe.pos++]))<<31,Ke<128))return om(te,ze,fe);throw new Error("Expected varint not more than 10 bytes")}(S|=(15&(F=W[this.pos]))<<28,R,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var R=this.readVarint();return R%2==1?(R+1)/-2:R/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var R=this.readVarint()+this.pos,S=this.pos;return this.pos=R,R-S>=12&&Mw?function(F,W,te){return Mw.decode(F.subarray(W,te))}(this.buf,S,R):function(F,W,te){for(var fe="",pe=W;pe239?4:Lt>223?3:Lt>191?2:1;if(pe+fr>te)break;fr===1?Lt<128&&(Qt=Lt):fr===2?(192&(ze=F[pe+1]))==128&&(Qt=(31&Lt)<<6|63&ze)<=127&&(Qt=null):fr===3?(Ke=F[pe+2],(192&(ze=F[pe+1]))==128&&(192&Ke)==128&&((Qt=(15&Lt)<<12|(63&ze)<<6|63&Ke)<=2047||Qt>=55296&&Qt<=57343)&&(Qt=null)):fr===4&&(Ke=F[pe+2],ut=F[pe+3],(192&(ze=F[pe+1]))==128&&(192&Ke)==128&&(192&ut)==128&&((Qt=(15&Lt)<<18|(63&ze)<<12|(63&Ke)<<6|63&ut)<=65535||Qt>=1114112)&&(Qt=null)),Qt===null?(Qt=65533,fr=1):Qt>65535&&(Qt-=65536,fe+=String.fromCharCode(Qt>>>10&1023|55296),Qt=56320|1023&Qt),fe+=String.fromCharCode(Qt),pe+=fr}return fe}(this.buf,S,R)},readBytes:function(){var R=this.readVarint()+this.pos,S=this.buf.subarray(this.pos,R);return this.pos=R,S},readPackedVarint:function(R,S){if(this.type!==wu.Bytes)return R.push(this.readVarint(S));var F=Iv(this);for(R=R||[];this.pos127;);else if(S===wu.Bytes)this.pos=this.readVarint()+this.pos;else if(S===wu.Fixed32)this.pos+=4;else{if(S!==wu.Fixed64)throw new Error("Unimplemented type: "+S);this.pos+=8}},writeTag:function(R,S){this.writeVarint(R<<3|S)},realloc:function(R){for(var S=this.length||16;S268435455||R<0?function(S,F){var W,te;if(S>=0?(W=S%4294967296|0,te=S/4294967296|0):(te=~(-S/4294967296),4294967295^(W=~(-S%4294967296))?W=W+1|0:(W=0,te=te+1|0)),S>=18446744073709552e3||S<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");F.realloc(10),function(fe,pe,ze){ze.buf[ze.pos++]=127&fe|128,fe>>>=7,ze.buf[ze.pos++]=127&fe|128,fe>>>=7,ze.buf[ze.pos++]=127&fe|128,fe>>>=7,ze.buf[ze.pos++]=127&fe|128,ze.buf[ze.pos]=127&(fe>>>=7)}(W,0,F),function(fe,pe){var ze=(7&fe)<<4;pe.buf[pe.pos++]|=ze|((fe>>>=3)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe)))))}(te,F)}(R,this):(this.realloc(4),this.buf[this.pos++]=127&R|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=R>>>7&127))))},writeSVarint:function(R){this.writeVarint(R<0?2*-R-1:2*R)},writeBoolean:function(R){this.writeVarint(!!R)},writeString:function(R){R=String(R),this.realloc(4*R.length),this.pos++;var S=this.pos;this.pos=function(W,te,fe){for(var pe,ze,Ke=0;Ke55295&&pe<57344){if(!ze){pe>56319||Ke+1===te.length?(W[fe++]=239,W[fe++]=191,W[fe++]=189):ze=pe;continue}if(pe<56320){W[fe++]=239,W[fe++]=191,W[fe++]=189,ze=pe;continue}pe=ze-55296<<10|pe-56320|65536,ze=null}else ze&&(W[fe++]=239,W[fe++]=191,W[fe++]=189,ze=null);pe<128?W[fe++]=pe:(pe<2048?W[fe++]=pe>>6|192:(pe<65536?W[fe++]=pe>>12|224:(W[fe++]=pe>>18|240,W[fe++]=pe>>12&63|128),W[fe++]=pe>>6&63|128),W[fe++]=63&pe|128)}return fe}(this.buf,R,this.pos);var F=this.pos-S;F>=128&&Ew(S,F,this),this.pos=S-1,this.writeVarint(F),this.pos+=F},writeFloat:function(R){this.realloc(4),A1(this.buf,R,this.pos,!0,23,4),this.pos+=4},writeDouble:function(R){this.realloc(8),A1(this.buf,R,this.pos,!0,52,8),this.pos+=8},writeBytes:function(R){var S=R.length;this.writeVarint(S),this.realloc(S);for(var F=0;F=128&&Ew(F,W,this),this.pos=F-1,this.writeVarint(W),this.pos+=W},writeMessage:function(R,S,F){this.writeTag(R,wu.Bytes),this.writeRawMessage(S,F)},writePackedVarint:function(R,S){S.length&&this.writeMessage(R,Nx,S)},writePackedSVarint:function(R,S){S.length&&this.writeMessage(R,F9,S)},writePackedBoolean:function(R,S){S.length&&this.writeMessage(R,q9,S)},writePackedFloat:function(R,S){S.length&&this.writeMessage(R,z9,S)},writePackedDouble:function(R,S){S.length&&this.writeMessage(R,O9,S)},writePackedFixed32:function(R,S){S.length&&this.writeMessage(R,EQ,S)},writePackedSFixed32:function(R,S){S.length&&this.writeMessage(R,B9,S)},writePackedFixed64:function(R,S){S.length&&this.writeMessage(R,N9,S)},writePackedSFixed64:function(R,S){S.length&&this.writeMessage(R,U9,S)},writeBytesField:function(R,S){this.writeTag(R,wu.Bytes),this.writeBytes(S)},writeFixed32Field:function(R,S){this.writeTag(R,wu.Fixed32),this.writeFixed32(S)},writeSFixed32Field:function(R,S){this.writeTag(R,wu.Fixed32),this.writeSFixed32(S)},writeFixed64Field:function(R,S){this.writeTag(R,wu.Fixed64),this.writeFixed64(S)},writeSFixed64Field:function(R,S){this.writeTag(R,wu.Fixed64),this.writeSFixed64(S)},writeVarintField:function(R,S){this.writeTag(R,wu.Varint),this.writeVarint(S)},writeSVarintField:function(R,S){this.writeTag(R,wu.Varint),this.writeSVarint(S)},writeStringField:function(R,S){this.writeTag(R,wu.Bytes),this.writeString(S)},writeFloatField:function(R,S){this.writeTag(R,wu.Fixed32),this.writeFloat(S)},writeDoubleField:function(R,S){this.writeTag(R,wu.Fixed64),this.writeDouble(S)},writeBooleanField:function(R,S){this.writeVarintField(R,!!S)}};var tS=o(Sd);let rS=3;function CQ(R,S,F){R===1&&F.readMessage(V9,S)}function V9(R,S,F){if(R===3){let{id:W,bitmap:te,width:fe,height:pe,left:ze,top:Ke,advance:ut}=F.readMessage(mk,{});S.push({id:W,bitmap:new na({width:fe+2*rS,height:pe+2*rS},te),metrics:{width:fe,height:pe,left:ze,top:Ke,advance:ut}})}}function mk(R,S,F){R===1?S.id=F.readVarint():R===2?S.bitmap=F.readBytes():R===3?S.width=F.readVarint():R===4?S.height=F.readVarint():R===5?S.left=F.readSVarint():R===6?S.top=F.readSVarint():R===7&&(S.advance=F.readVarint())}let yk=rS;function iS(R){let S=0,F=0;for(let pe of R)S+=pe.w*pe.h,F=Math.max(F,pe.w);R.sort((pe,ze)=>ze.h-pe.h);let W=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(S/.95)),F),h:1/0}],te=0,fe=0;for(let pe of R)for(let ze=W.length-1;ze>=0;ze--){let Ke=W[ze];if(!(pe.w>Ke.w||pe.h>Ke.h)){if(pe.x=Ke.x,pe.y=Ke.y,fe=Math.max(fe,pe.y+pe.h),te=Math.max(te,pe.x+pe.w),pe.w===Ke.w&&pe.h===Ke.h){let ut=W.pop();ze=0&&W>=S&&Lw[this.text.charCodeAt(W)];W--)F--;this.text=this.text.substring(S,F),this.sectionIndex=this.sectionIndex.slice(S,F)}substring(S,F){let W=new S1;return W.text=this.text.substring(S,F),W.sectionIndex=this.sectionIndex.slice(S,F),W.sections=this.sections,W}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((S,F)=>Math.max(S,this.sections[F].scale),0)}addTextSection(S,F){this.text+=S.text,this.sections.push(Vx.forText(S.scale,S.fontStack||F));let W=this.sections.length-1;for(let te=0;te=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Gx(R,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr){let zr=S1.fromFeature(R,te),ui;Qt===i.ah.vertical&&zr.verticalizePunctuation();let{processBidirectionalText:yi,processStyledBidirectionalText:dn}=_s;if(yi&&zr.sections.length===1){ui=[];let An=yi(zr.toString(),M1(zr,ut,fe,S,W,mr));for(let pa of An){let ro=new S1;ro.text=pa,ro.sections=zr.sections;for(let Vo=0;Vo0&&ep>Rf&&(Rf=ep)}else{let Gc=ro[tu.fontStack],Zf=Gc&&Gc[$u];if(Zf&&Zf.rect)I1=Zf.rect,ff=Zf.metrics;else{let ep=pa[tu.fontStack],gg=ep&&ep[$u];if(!gg)continue;ff=gg.metrics}Fv=(Sh-tu.scale)*eu}Qv?(An.verticalizable=!0,Hh.push({glyph:$u,imageName:p0,x:$o,y:Ju+Fv,vertical:Qv,scale:tu.scale,fontStack:tu.fontStack,sectionIndex:pc,metrics:ff,rect:I1}),$o+=Gp*tu.scale+Xn):(Hh.push({glyph:$u,imageName:p0,x:$o,y:Ju+Fv,vertical:Qv,scale:tu.scale,fontStack:tu.fontStack,sectionIndex:pc,metrics:ff,rect:I1}),$o+=ff.advance*tu.scale+Xn)}Hh.length!==0&&(qu=Math.max($o-Xn,qu),sm(Hh,0,Hh.length-1,$v,Rf)),$o=0;let Dv=sa*Sh+Rf;ud.lineOffset=Math.max(Rf,Ed),Ju+=Dv,Th=Math.max(Dv,Th),++ld}var Ah;let Gd=Ju-wh,{horizontalAlign:Hd,verticalAlign:jd}=Iw(Mo);(function(Tf,Sh,Ed,ud,Hh,Rf,Dv,lv,tu){let pc=(Sh-Ed)*Hh,$u=0;$u=Rf!==Dv?-lv*ud-wh:(-ud*tu+.5)*Dv;for(let Fv of Tf)for(let ff of Fv.positionedGlyphs)ff.x+=pc,ff.y+=$u})(An.positionedLines,$v,Hd,jd,qu,Th,sa,Gd,Xa.length),An.top+=-jd*Gd,An.bottom=An.top+Gd,An.left+=-Hd*qu,An.right=An.left+qu}(ln,S,F,W,ui,pe,ze,Ke,Qt,ut,fr,Lr),!function(An){for(let pa of An)if(pa.positionedGlyphs.length!==0)return!1;return!0}(Fi)&&ln}let Lw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},G9={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},H9={40:!0};function _k(R,S,F,W,te,fe){if(S.imageName){let pe=W[S.imageName];return pe?pe.displaySize[0]*S.scale*eu/fe+te:0}{let pe=F[S.fontStack],ze=pe&&pe[R];return ze?ze.metrics.advance*S.scale+te:0}}function xk(R,S,F,W){let te=Math.pow(R-S,2);return W?R=0,ut=0;for(let Qt=0;Qtut){let Lt=Math.ceil(fe/ut);te*=Lt/pe,pe=Lt}return{x1:W,y1:te,x2:W+fe,y2:te+pe}}function Tk(R,S,F,W,te,fe){let pe=R.image,ze;if(pe.content){let ui=pe.content,yi=pe.pixelRatio||1;ze=[ui[0]/yi,ui[1]/yi,pe.displaySize[0]-ui[2]/yi,pe.displaySize[1]-ui[3]/yi]}let Ke=S.left*fe,ut=S.right*fe,Lt,Qt,fr,mr;F==="width"||F==="both"?(mr=te[0]+Ke-W[3],Qt=te[0]+ut+W[1]):(mr=te[0]+(Ke+ut-pe.displaySize[0])/2,Qt=mr+pe.displaySize[0]);let Lr=S.top*fe,zr=S.bottom*fe;return F==="height"||F==="both"?(Lt=te[1]+Lr-W[0],fr=te[1]+zr+W[2]):(Lt=te[1]+(Lr+zr-pe.displaySize[1])/2,fr=Lt+pe.displaySize[1]),{image:pe,top:Lt,right:Qt,bottom:fr,left:mr,collisionPadding:ze}}let jx=255,v0=128,lm=jx*v0;function Ak(R,S){let{expression:F}=S;if(F.kind==="constant")return{kind:"constant",layoutSize:F.evaluate(new is(R+1))};if(F.kind==="source")return{kind:"source"};{let{zoomStops:W,interpolationType:te}=F,fe=0;for(;fepe.id),this.index=S.index,this.pixelRatio=S.pixelRatio,this.sourceLayerIndex=S.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Ii([]),this.placementViewportMatrix=Ii([]);let F=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ak(this.zoom,F["text-size"]),this.iconSizeData=Ak(this.zoom,F["icon-size"]);let W=this.layers[0].layout,te=W.get("symbol-sort-key"),fe=W.get("symbol-z-order");this.canOverlap=nS(W,"text-overlap","text-allow-overlap")!=="never"||nS(W,"icon-overlap","icon-allow-overlap")!=="never"||W.get("text-ignore-placement")||W.get("icon-ignore-placement"),this.sortFeaturesByKey=fe!=="viewport-y"&&!te.isConstant(),this.sortFeaturesByY=(fe==="viewport-y"||fe==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,W.get("symbol-placement")==="point"&&(this.writingModes=W.get("text-writing-mode").map(pe=>i.ah[pe])),this.stateDependentLayerIds=this.layers.filter(pe=>pe.isStateDependent()).map(pe=>pe.id),this.sourceID=S.sourceID}createArrays(){this.text=new sS(new Es(this.layers,this.zoom,S=>/^text/.test(S))),this.icon=new sS(new Es(this.layers,this.zoom,S=>/^icon/.test(S))),this.glyphOffsetArray=new ko,this.lineVertexArray=new Qa,this.symbolInstances=new $a,this.textAnchorOffsets=new Bo}calculateGlyphDependencies(S,F,W,te,fe){for(let pe=0;pe0)&&(pe.value.kind!=="constant"||pe.value.value.length>0),Lt=Ke.value.kind!=="constant"||!!Ke.value.value||Object.keys(Ke.parameters).length>0,Qt=fe.get("symbol-sort-key");if(this.features=[],!ut&&!Lt)return;let fr=F.iconDependencies,mr=F.glyphDependencies,Lr=F.availableImages,zr=new is(this.zoom);for(let{feature:ui,id:yi,index:dn,sourceLayerIndex:Fi}of S){let ln=te._featureFilter.needGeometry,An=Ml(ui,ln);if(!te._featureFilter.filter(zr,An,W))continue;let pa,ro;if(ln||(An.geometry=Qs(ui)),ut){let Xa=te.getValueAndResolveTokens("text-field",An,W,Lr),sa=ri.factory(Xa),Mo=this.hasRTLText=this.hasRTLText||oS(sa);(!Mo||_s.getRTLTextPluginStatus()==="unavailable"||Mo&&_s.isParsed())&&(pa=nm(sa,te,An))}if(Lt){let Xa=te.getValueAndResolveTokens("icon-image",An,W,Lr);ro=Xa instanceof en?Xa:en.fromString(Xa)}if(!pa&&!ro)continue;let Vo=this.sortFeaturesByKey?Qt.evaluate(An,{},W):void 0;if(this.features.push({id:yi,text:pa,icon:ro,index:dn,sourceLayerIndex:Fi,geometry:An.geometry,properties:ui.properties,type:W9[ui.type],sortKey:Vo}),ro&&(fr[ro.name]=!0),pa){let Xa=pe.evaluate(An,{},W).join(","),sa=fe.get("text-rotation-alignment")!=="viewport"&&fe.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let Mo of pa.sections)if(Mo.image)fr[Mo.image.name]=!0;else{let fo=Ka(pa.toString()),lo=Mo.fontStack||Xa,Xn=mr[lo]=mr[lo]||{};this.calculateGlyphDependencies(Mo.text,Xn,sa,this.allowVerticalPlacement,fo)}}}fe.get("symbol-placement")==="line"&&(this.features=function(ui){let yi={},dn={},Fi=[],ln=0;function An(Xa){Fi.push(ui[Xa]),ln++}function pa(Xa,sa,Mo){let fo=dn[Xa];return delete dn[Xa],dn[sa]=fo,Fi[fo].geometry[0].pop(),Fi[fo].geometry[0]=Fi[fo].geometry[0].concat(Mo[0]),fo}function ro(Xa,sa,Mo){let fo=yi[sa];return delete yi[sa],yi[Xa]=fo,Fi[fo].geometry[0].shift(),Fi[fo].geometry[0]=Mo[0].concat(Fi[fo].geometry[0]),fo}function Vo(Xa,sa,Mo){let fo=Mo?sa[0][sa[0].length-1]:sa[0][0];return`${Xa}:${fo.x}:${fo.y}`}for(let Xa=0;XaXa.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((ui,yi)=>ui.sortKey-yi.sortKey)}update(S,F,W){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(S,F,this.layers,W),this.icon.programConfigurations.updatePaintArrays(S,F,this.layers,W))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(S){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(S),this.iconCollisionBox.upload(S)),this.text.upload(S,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(S,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(S,F){let W=this.lineVertexArray.length;if(S.segment!==void 0){let te=S.dist(F[S.segment+1]),fe=S.dist(F[S.segment]),pe={};for(let ze=S.segment+1;ze=0;ze--)pe[ze]={x:F[ze].x,y:F[ze].y,tileUnitDistanceFromAnchor:fe},ze>0&&(fe+=F[ze-1].dist(F[ze]));for(let ze=0;ze0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(S,F){let W=S.placedSymbolArray.get(F),te=W.vertexStartIndex+4*W.numGlyphs;for(let fe=W.vertexStartIndex;fete[ze]-te[Ke]||fe[Ke]-fe[ze]),pe}addToSortKeyRanges(S,F){let W=this.sortKeyRanges[this.sortKeyRanges.length-1];W&&W.sortKey===F?W.symbolInstanceEnd=S+1:this.sortKeyRanges.push({sortKey:F,symbolInstanceStart:S,symbolInstanceEnd:S+1})}sortFeatures(S){if(this.sortFeaturesByY&&this.sortedAngle!==S&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(S),this.sortedAngle=S,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let F of this.symbolInstanceIndexes){let W=this.symbolInstances.get(F);this.featureSortOrder.push(W.featureIndex),[W.rightJustifiedTextSymbolIndex,W.centerJustifiedTextSymbolIndex,W.leftJustifiedTextSymbolIndex].forEach((te,fe,pe)=>{te>=0&&pe.indexOf(te)===fe&&this.addIndicesForPlacedSymbol(this.text,te)}),W.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,W.verticalPlacedTextSymbolIndex),W.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.placedIconSymbolIndex),W.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let wf,Wx;Di("SymbolBucket",E1,{omit:["layers","collisionBoxArray","features","compareText"]}),E1.MAX_GLYPHS=65535,E1.addDynamicAttributes=aS;var Dw={get paint(){return Wx=Wx||new ue({"icon-opacity":new oo(ce.paint_symbol["icon-opacity"]),"icon-color":new oo(ce.paint_symbol["icon-color"]),"icon-halo-color":new oo(ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new oo(ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new oo(ce.paint_symbol["icon-halo-blur"]),"icon-translate":new Ua(ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ua(ce.paint_symbol["icon-translate-anchor"]),"text-opacity":new oo(ce.paint_symbol["text-opacity"]),"text-color":new oo(ce.paint_symbol["text-color"],{runtimeType:Yt,getOverride:R=>R.textColor,hasOverride:R=>!!R.textColor}),"text-halo-color":new oo(ce.paint_symbol["text-halo-color"]),"text-halo-width":new oo(ce.paint_symbol["text-halo-width"]),"text-halo-blur":new oo(ce.paint_symbol["text-halo-blur"]),"text-translate":new Ua(ce.paint_symbol["text-translate"]),"text-translate-anchor":new Ua(ce.paint_symbol["text-translate-anchor"])})},get layout(){return wf=wf||new ue({"symbol-placement":new Ua(ce.layout_symbol["symbol-placement"]),"symbol-spacing":new Ua(ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ua(ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new oo(ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ua(ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ua(ce.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Ua(ce.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Ua(ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ua(ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ua(ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new oo(ce.layout_symbol["icon-size"]),"icon-text-fit":new Ua(ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ua(ce.layout_symbol["icon-text-fit-padding"]),"icon-image":new oo(ce.layout_symbol["icon-image"]),"icon-rotate":new oo(ce.layout_symbol["icon-rotate"]),"icon-padding":new oo(ce.layout_symbol["icon-padding"]),"icon-keep-upright":new Ua(ce.layout_symbol["icon-keep-upright"]),"icon-offset":new oo(ce.layout_symbol["icon-offset"]),"icon-anchor":new oo(ce.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ua(ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ua(ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ua(ce.layout_symbol["text-rotation-alignment"]),"text-field":new oo(ce.layout_symbol["text-field"]),"text-font":new oo(ce.layout_symbol["text-font"]),"text-size":new oo(ce.layout_symbol["text-size"]),"text-max-width":new oo(ce.layout_symbol["text-max-width"]),"text-line-height":new Ua(ce.layout_symbol["text-line-height"]),"text-letter-spacing":new oo(ce.layout_symbol["text-letter-spacing"]),"text-justify":new oo(ce.layout_symbol["text-justify"]),"text-radial-offset":new oo(ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ua(ce.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new oo(ce.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new oo(ce.layout_symbol["text-anchor"]),"text-max-angle":new Ua(ce.layout_symbol["text-max-angle"]),"text-writing-mode":new Ua(ce.layout_symbol["text-writing-mode"]),"text-rotate":new oo(ce.layout_symbol["text-rotate"]),"text-padding":new Ua(ce.layout_symbol["text-padding"]),"text-keep-upright":new Ua(ce.layout_symbol["text-keep-upright"]),"text-transform":new oo(ce.layout_symbol["text-transform"]),"text-offset":new oo(ce.layout_symbol["text-offset"]),"text-allow-overlap":new Ua(ce.layout_symbol["text-allow-overlap"]),"text-overlap":new Ua(ce.layout_symbol["text-overlap"]),"text-ignore-placement":new Ua(ce.layout_symbol["text-ignore-placement"]),"text-optional":new Ua(ce.layout_symbol["text-optional"])})}};class Xx{constructor(S){if(S.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=S.property.overrides?S.property.overrides.runtimeType:Ut,this.defaultValue=S}evaluate(S){if(S.formattedSection){let F=this.defaultValue.property.overrides;if(F&&F.hasOverride(S.formattedSection))return F.getOverride(S.formattedSection)}return S.feature&&S.featureState?this.defaultValue.evaluate(S.feature,S.featureState):this.defaultValue.property.specification.default}eachChild(S){this.defaultValue.isConstant()||S(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Di("FormatSectionOverride",Xx,{omit:["defaultValue"]});class uy extends B{constructor(S){super(S,Dw)}recalculate(S,F){if(super.recalculate(S,F),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){let W=this.layout.get("text-writing-mode");if(W){let te=[];for(let fe of W)te.indexOf(fe)<0&&te.push(fe);this.layout._values["text-writing-mode"]=te}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(S,F,W,te){let fe=this.layout.get(S).evaluate(F,{},W,te),pe=this._unevaluatedLayout._values[S];return pe.isDataDriven()||Dc(pe.value)||!fe?fe:function(ze,Ke){return Ke.replace(/{([^{}]+)}/g,(ut,Lt)=>ze&&Lt in ze?String(ze[Lt]):"")}(F.properties,fe)}createBucket(S){return new E1(S)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let S of Dw.paint.overridableProperties){if(!uy.hasPaintOverride(this.layout,S))continue;let F=this.paint.get(S),W=new Xx(F),te=new Eu(W,F.property.specification),fe=null;fe=F.value.kind==="constant"||F.value.kind==="source"?new bc("source",te):new hu("composite",te,F.value.zoomStops),this.paint._values[S]=new xu(F.property,fe,F.parameters)}}_handleOverridablePaintPropertyUpdate(S,F,W){return!(!this.layout||F.isDataDriven()||W.isDataDriven())&&uy.hasPaintOverride(this.layout,S)}static hasPaintOverride(S,F){let W=S.get("text-field"),te=Dw.paint.properties[F],fe=!1,pe=ze=>{for(let Ke of ze)if(te.overrides&&te.overrides.hasOverride(Ke))return void(fe=!0)};if(W.value.kind==="constant"&&W.value.value instanceof ri)pe(W.value.value.sections);else if(W.value.kind==="source"){let ze=ut=>{fe||(ut instanceof la&&Mn(ut.value)===ei?pe(ut.value.sections):ut instanceof Zl?pe(ut.sections):ut.eachChild(ze))},Ke=W.value;Ke._styleExpression&&ze(Ke._styleExpression.expression)}return fe}}let Sk;var Zx={get paint(){return Sk=Sk||new ue({"background-color":new Ua(ce.paint_background["background-color"]),"background-pattern":new hc(ce.paint_background["background-pattern"]),"background-opacity":new Ua(ce.paint_background["background-opacity"])})}};class Z9 extends B{constructor(S){super(S,Zx)}}let lS;var Mk={get paint(){return lS=lS||new ue({"raster-opacity":new Ua(ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new Ua(ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Ua(ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Ua(ce.paint_raster["raster-brightness-max"]),"raster-saturation":new Ua(ce.paint_raster["raster-saturation"]),"raster-contrast":new Ua(ce.paint_raster["raster-contrast"]),"raster-resampling":new Ua(ce.paint_raster["raster-resampling"]),"raster-fade-duration":new Ua(ce.paint_raster["raster-fade-duration"])})}};class Yx extends B{constructor(S){super(S,Mk)}}class uS extends B{constructor(S){super(S,{}),this.onAdd=F=>{this.implementation.onAdd&&this.implementation.onAdd(F,F.painter.context.gl)},this.onRemove=F=>{this.implementation.onRemove&&this.implementation.onRemove(F,F.painter.context.gl)},this.implementation=S}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class cS{constructor(S){this._methodToThrottle=S,this._triggered=!1,typeof MessageChannel!="undefined"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let fS=63710088e-1;class dg{constructor(S,F){if(isNaN(S)||isNaN(F))throw new Error(`Invalid LngLat object: (${S}, ${F})`);if(this.lng=+S,this.lat=+F,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new dg(A(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(S){let F=Math.PI/180,W=this.lat*F,te=S.lat*F,fe=Math.sin(W)*Math.sin(te)+Math.cos(W)*Math.cos(te)*Math.cos((S.lng-this.lng)*F);return fS*Math.acos(Math.min(fe,1))}static convert(S){if(S instanceof dg)return S;if(Array.isArray(S)&&(S.length===2||S.length===3))return new dg(Number(S[0]),Number(S[1]));if(!Array.isArray(S)&&typeof S=="object"&&S!==null)return new dg(Number("lng"in S?S.lng:S.lon),Number(S.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let C1=2*Math.PI*fS;function Ek(R){return C1*Math.cos(R*Math.PI/180)}function Fw(R){return(180+R)/360}function Ck(R){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R*Math.PI/360)))/360}function zw(R,S){return R/Ek(S)}function Kx(R){return 360/Math.PI*Math.atan(Math.exp((180-360*R)*Math.PI/180))-90}class Jx{constructor(S,F,W=0){this.x=+S,this.y=+F,this.z=+W}static fromLngLat(S,F=0){let W=dg.convert(S);return new Jx(Fw(W.lng),Ck(W.lat),zw(F,W.lat))}toLngLat(){return new dg(360*this.x-180,Kx(this.y))}toAltitude(){return this.z*Ek(Kx(this.y))}meterInMercatorCoordinateUnits(){return 1/C1*(S=Kx(this.y),1/Math.cos(S*Math.PI/180));var S}}function pp(R,S,F){var W=2*Math.PI*6378137/256/Math.pow(2,F);return[R*W-2*Math.PI*6378137/2,S*W-2*Math.PI*6378137/2]}class hS{constructor(S,F,W){if(!function(te,fe,pe){return!(te<0||te>25||pe<0||pe>=Math.pow(2,te)||fe<0||fe>=Math.pow(2,te))}(S,F,W))throw new Error(`x=${F}, y=${W}, z=${S} outside of bounds. 0<=x<${Math.pow(2,S)}, 0<=y<${Math.pow(2,S)} 0<=z<=25 `);this.z=S,this.x=F,this.y=W,this.key=$x(0,S,S,F,W)}equals(S){return this.z===S.z&&this.x===S.x&&this.y===S.y}url(S,F,W){let te=(pe=this.y,ze=this.z,Ke=pp(256*(fe=this.x),256*(pe=Math.pow(2,ze)-pe-1),ze),ut=pp(256*(fe+1),256*(pe+1),ze),Ke[0]+","+Ke[1]+","+ut[0]+","+ut[1]);var fe,pe,ze,Ke,ut;let Lt=function(Qt,fr,mr){let Lr,zr="";for(let ui=Qt;ui>0;ui--)Lr=1<1?"@2x":"").replace(/{quadkey}/g,Lt).replace(/{bbox-epsg-3857}/g,te)}isChildOf(S){let F=this.z-S.z;return F>0&&S.x===this.x>>F&&S.y===this.y>>F}getTilePoint(S){let F=Math.pow(2,this.z);return new u((S.x*F-this.x)*Ha,(S.y*F-this.y)*Ha)}toString(){return`${this.z}/${this.x}/${this.y}`}}class kk{constructor(S,F){this.wrap=S,this.canonical=F,this.key=$x(S,F.z,F.z,F.x,F.y)}}class Jv{constructor(S,F,W,te,fe){if(S= z; overscaledZ = ${S}; z = ${W}`);this.overscaledZ=S,this.wrap=F,this.canonical=new hS(W,+te,+fe),this.key=$x(F,S,W,te,fe)}clone(){return new Jv(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(S){return this.overscaledZ===S.overscaledZ&&this.wrap===S.wrap&&this.canonical.equals(S.canonical)}scaledTo(S){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let F=this.canonical.z-S;return S>this.canonical.z?new Jv(S,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Jv(S,this.wrap,S,this.canonical.x>>F,this.canonical.y>>F)}calculateScaledKey(S,F){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let W=this.canonical.z-S;return S>this.canonical.z?$x(this.wrap*+F,S,this.canonical.z,this.canonical.x,this.canonical.y):$x(this.wrap*+F,S,S,this.canonical.x>>W,this.canonical.y>>W)}isChildOf(S){if(S.wrap!==this.wrap)return!1;let F=this.canonical.z-S.canonical.z;return S.overscaledZ===0||S.overscaledZ>F&&S.canonical.y===this.canonical.y>>F}children(S){if(this.overscaledZ>=S)return[new Jv(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let F=this.canonical.z+1,W=2*this.canonical.x,te=2*this.canonical.y;return[new Jv(F,this.wrap,F,W,te),new Jv(F,this.wrap,F,W+1,te),new Jv(F,this.wrap,F,W,te+1),new Jv(F,this.wrap,F,W+1,te+1)]}isLessThan(S){return this.wrapS.wrap)&&(this.overscaledZS.overscaledZ)&&(this.canonical.xS.canonical.x)&&this.canonical.ythis.max&&(this.max=Qt),Qt=this.dim+1||F<-1||F>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(F+1)*this.stride+(S+1)}unpack(S,F,W){return S*this.redFactor+F*this.greenFactor+W*this.blueFactor-this.baseShift}getPixels(){return new Yi({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(S,F,W){if(this.dim!==S.dim)throw new Error("dem dimension mismatch");let te=F*this.dim,fe=F*this.dim+this.dim,pe=W*this.dim,ze=W*this.dim+this.dim;switch(F){case-1:te=fe-1;break;case 1:fe=te+1}switch(W){case-1:pe=ze-1;break;case 1:ze=pe+1}let Ke=-F*this.dim,ut=-W*this.dim;for(let Lt=pe;Lt=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${S} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[S]}}class dS{constructor(S,F,W,te,fe){this.type="Feature",this._vectorTileFeature=S,S._z=F,S._x=W,S._y=te,this.properties=S.properties,this.id=fe}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(S){this._geometry=S}toJSON(){let S={geometry:this.geometry};for(let F in this)F!=="_geometry"&&F!=="_vectorTileFeature"&&(S[F]=this[F]);return S}}class cy{constructor(S,F){this.tileID=S,this.x=S.canonical.x,this.y=S.canonical.y,this.z=S.canonical.z,this.grid=new $i(Ha,16,0),this.grid3D=new $i(Ha,16,0),this.featureIndexArray=new As,this.promoteId=F}insert(S,F,W,te,fe,pe){let ze=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(W,te,fe);let Ke=pe?this.grid3D:this.grid;for(let ut=0;ut=0&&Qt[3]>=0&&Ke.insert(ze,Qt[0],Qt[1],Qt[2],Qt[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new br.VectorTile(new tS(this.rawTileData)).layers,this.sourceLayerCoder=new Pk(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(S,F,W,te){this.loadVTLayers();let fe=S.params||{},pe=Ha/S.tileSize/S.scale,ze=Fc(fe.filter),Ke=S.queryGeometry,ut=S.queryPadding*pe,Lt=Rk(Ke),Qt=this.grid.query(Lt.minX-ut,Lt.minY-ut,Lt.maxX+ut,Lt.maxY+ut),fr=Rk(S.cameraQueryGeometry),mr=this.grid3D.query(fr.minX-ut,fr.minY-ut,fr.maxX+ut,fr.maxY+ut,(ui,yi,dn,Fi)=>function(ln,An,pa,ro,Vo){for(let sa of ln)if(An<=sa.x&&pa<=sa.y&&ro>=sa.x&&Vo>=sa.y)return!0;let Xa=[new u(An,pa),new u(An,Vo),new u(ro,Vo),new u(ro,pa)];if(ln.length>2){for(let sa of Xa)if(Ni(ln,sa))return!0}for(let sa=0;sa(Fi||(Fi=Qs(ln)),An.queryIntersectsFeature(Ke,ln,pa,Fi,this.z,S.transform,pe,S.pixelPosMatrix)))}return Lr}loadMatchingFeature(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt){let fr=this.bucketLayerIDs[F];if(pe&&!function(ui,yi){for(let dn=0;dn=0)return!0;return!1}(pe,fr))return;let mr=this.sourceLayerCoder.decode(W),Lr=this.vtLayers[mr].feature(te);if(fe.needGeometry){let ui=Ml(Lr,!0);if(!fe.filter(new is(this.tileID.overscaledZ),ui,this.tileID.canonical))return}else if(!fe.filter(new is(this.tileID.overscaledZ),Lr))return;let zr=this.getId(Lr,mr);for(let ui=0;ui{let ze=S instanceof Ac?S.get(pe):null;return ze&&ze.evaluate?ze.evaluate(F,W,te):ze})}function Rk(R){let S=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)S=Math.min(S,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return{minX:S,minY:F,maxX:W,maxY:te}}function Y9(R,S){return S-R}function Dk(R,S,F,W,te){let fe=[];for(let pe=0;pe=W&&Qt.x>=W||(Lt.x>=W?Lt=new u(W,Lt.y+(W-Lt.x)/(Qt.x-Lt.x)*(Qt.y-Lt.y))._round():Qt.x>=W&&(Qt=new u(W,Lt.y+(W-Lt.x)/(Qt.x-Lt.x)*(Qt.y-Lt.y))._round()),Lt.y>=te&&Qt.y>=te||(Lt.y>=te?Lt=new u(Lt.x+(te-Lt.y)/(Qt.y-Lt.y)*(Qt.x-Lt.x),te)._round():Qt.y>=te&&(Qt=new u(Lt.x+(te-Lt.y)/(Qt.y-Lt.y)*(Qt.x-Lt.x),te)._round()),Ke&&Lt.equals(Ke[Ke.length-1])||(Ke=[Lt],fe.push(Ke)),Ke.push(Qt)))))}}return fe}Di("FeatureIndex",cy,{omit:["rawTileData","sourceLayerCoder"]});class vg extends u{constructor(S,F,W,te){super(S,F),this.angle=W,te!==void 0&&(this.segment=te)}clone(){return new vg(this.x,this.y,this.angle,this.segment)}}function vS(R,S,F,W,te){if(S.segment===void 0||F===0)return!0;let fe=S,pe=S.segment+1,ze=0;for(;ze>-F/2;){if(pe--,pe<0)return!1;ze-=R[pe].dist(fe),fe=R[pe]}ze+=R[pe].dist(R[pe+1]),pe++;let Ke=[],ut=0;for(;zeW;)ut-=Ke.shift().angleDelta;if(ut>te)return!1;pe++,ze+=Lt.dist(Qt)}return!0}function Fk(R){let S=0;for(let F=0;Fut){let Lr=(ut-Ke)/mr,zr=Lo.number(Qt.x,fr.x,Lr),ui=Lo.number(Qt.y,fr.y,Lr),yi=new vg(zr,ui,fr.angleTo(Qt),Lt);return yi._round(),!pe||vS(R,yi,ze,pe,S)?yi:void 0}Ke+=mr}}function J9(R,S,F,W,te,fe,pe,ze,Ke){let ut=zk(W,fe,pe),Lt=Ok(W,te),Qt=Lt*pe,fr=R[0].x===0||R[0].x===Ke||R[0].y===0||R[0].y===Ke;return S-Qt=0&&ln=0&&An=0&&fr+ut<=Lt){let pa=new vg(ln,An,dn,Lr);pa._round(),W&&!vS(R,pa,fe,W,te)||mr.push(pa)}}Qt+=yi}return ze||mr.length||pe||(mr=qk(R,Qt/2,F,W,te,fe,pe,!0,Ke)),mr}Di("Anchor",vg);let k1=Md;function Bk(R,S,F,W){let te=[],fe=R.image,pe=fe.pixelRatio,ze=fe.paddedRect.w-2*k1,Ke=fe.paddedRect.h-2*k1,ut={x1:R.left,y1:R.top,x2:R.right,y2:R.bottom},Lt=fe.stretchX||[[0,ze]],Qt=fe.stretchY||[[0,Ke]],fr=(Xn,Ro)=>Xn+Ro[1]-Ro[0],mr=Lt.reduce(fr,0),Lr=Qt.reduce(fr,0),zr=ze-mr,ui=Ke-Lr,yi=0,dn=mr,Fi=0,ln=Lr,An=0,pa=zr,ro=0,Vo=ui;if(fe.content&&W){let Xn=fe.content,Ro=Xn[2]-Xn[0],uo=Xn[3]-Xn[1];(fe.textFitWidth||fe.textFitHeight)&&(ut=wk(R)),yi=pg(Lt,0,Xn[0]),Fi=pg(Qt,0,Xn[1]),dn=pg(Lt,Xn[0],Xn[2]),ln=pg(Qt,Xn[1],Xn[3]),An=Xn[0]-yi,ro=Xn[1]-Fi,pa=Ro-dn,Vo=uo-ln}let Xa=ut.x1,sa=ut.y1,Mo=ut.x2-Xa,fo=ut.y2-sa,lo=(Xn,Ro,uo,$o)=>{let Ju=Ow(Xn.stretch-yi,dn,Mo,Xa),qu=L1(Xn.fixed-An,pa,Xn.stretch,mr),Th=Ow(Ro.stretch-Fi,ln,fo,sa),$v=L1(Ro.fixed-ro,Vo,Ro.stretch,Lr),ld=Ow(uo.stretch-yi,dn,Mo,Xa),Ah=L1(uo.fixed-An,pa,uo.stretch,mr),Gd=Ow($o.stretch-Fi,ln,fo,sa),Hd=L1($o.fixed-ro,Vo,$o.stretch,Lr),jd=new u(Ju,Th),Tf=new u(ld,Th),Sh=new u(ld,Gd),Ed=new u(Ju,Gd),ud=new u(qu/pe,$v/pe),Hh=new u(Ah/pe,Hd/pe),Rf=S*Math.PI/180;if(Rf){let tu=Math.sin(Rf),pc=Math.cos(Rf),$u=[pc,-tu,tu,pc];jd._matMult($u),Tf._matMult($u),Ed._matMult($u),Sh._matMult($u)}let Dv=Xn.stretch+Xn.fixed,lv=Ro.stretch+Ro.fixed;return{tl:jd,tr:Tf,bl:Ed,br:Sh,tex:{x:fe.paddedRect.x+k1+Dv,y:fe.paddedRect.y+k1+lv,w:uo.stretch+uo.fixed-Dv,h:$o.stretch+$o.fixed-lv},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:ud,pixelOffsetBR:Hh,minFontScaleX:pa/pe/Mo,minFontScaleY:Vo/pe/fo,isSDF:F}};if(W&&(fe.stretchX||fe.stretchY)){let Xn=Nk(Lt,zr,mr),Ro=Nk(Qt,ui,Lr);for(let uo=0;uo0&&(zr=Math.max(10,zr),this.circleDiameter=zr)}else{let fr=!((Qt=pe.image)===null||Qt===void 0)&&Qt.content&&(pe.image.textFitWidth||pe.image.textFitHeight)?wk(pe):{x1:pe.left,y1:pe.top,x2:pe.right,y2:pe.bottom};fr.y1=fr.y1*ze-Ke[0],fr.y2=fr.y2*ze+Ke[2],fr.x1=fr.x1*ze-Ke[3],fr.x2=fr.x2*ze+Ke[1];let mr=pe.collisionPadding;if(mr&&(fr.x1-=mr[0]*ze,fr.y1-=mr[1]*ze,fr.x2+=mr[2]*ze,fr.y2+=mr[3]*ze),Lt){let Lr=new u(fr.x1,fr.y1),zr=new u(fr.x2,fr.y1),ui=new u(fr.x1,fr.y2),yi=new u(fr.x2,fr.y2),dn=Lt*Math.PI/180;Lr._rotate(dn),zr._rotate(dn),ui._rotate(dn),yi._rotate(dn),fr.x1=Math.min(Lr.x,zr.x,ui.x,yi.x),fr.x2=Math.max(Lr.x,zr.x,ui.x,yi.x),fr.y1=Math.min(Lr.y,zr.y,ui.y,yi.y),fr.y2=Math.max(Lr.y,zr.y,ui.y,yi.y)}S.emplaceBack(F.x,F.y,fr.x1,fr.y1,fr.x2,fr.y2,W,te,fe)}this.boxEndIndex=S.length}}class Vp{constructor(S=[],F=(W,te)=>Wte?1:0){if(this.data=S,this.length=this.data.length,this.compare=F,this.length>0)for(let W=(this.length>>1)-1;W>=0;W--)this._down(W)}push(S){this.data.push(S),this._up(this.length++)}pop(){if(this.length===0)return;let S=this.data[0],F=this.data.pop();return--this.length>0&&(this.data[0]=F,this._down(0)),S}peek(){return this.data[0]}_up(S){let{data:F,compare:W}=this,te=F[S];for(;S>0;){let fe=S-1>>1,pe=F[fe];if(W(te,pe)>=0)break;F[S]=pe,S=fe}F[S]=te}_down(S){let{data:F,compare:W}=this,te=this.length>>1,fe=F[S];for(;S=0)break;F[S]=F[pe],S=pe}F[S]=fe}}function $9(R,S=1,F=!1){let W=1/0,te=1/0,fe=-1/0,pe=-1/0,ze=R[0];for(let mr=0;mrfe)&&(fe=Lr.x),(!mr||Lr.y>pe)&&(pe=Lr.y)}let Ke=Math.min(fe-W,pe-te),ut=Ke/2,Lt=new Vp([],Q9);if(Ke===0)return new u(W,te);for(let mr=W;mrQt.d||!Qt.d)&&(Qt=mr,F&&console.log("found best %d after %d probes",Math.round(1e4*mr.d)/1e4,fr)),mr.max-Qt.d<=S||(ut=mr.h/2,Lt.push(new P1(mr.p.x-ut,mr.p.y-ut,ut,R)),Lt.push(new P1(mr.p.x+ut,mr.p.y-ut,ut,R)),Lt.push(new P1(mr.p.x-ut,mr.p.y+ut,ut,R)),Lt.push(new P1(mr.p.x+ut,mr.p.y+ut,ut,R)),fr+=4)}return F&&(console.log(`num probes: ${fr}`),console.log(`best distance: ${Qt.d}`)),Qt.p}function Q9(R,S){return S.max-R.max}function P1(R,S,F,W){this.p=new u(R,S),this.h=F,this.d=function(te,fe){let pe=!1,ze=1/0;for(let Ke=0;Kete.y!=Lr.y>te.y&&te.x<(Lr.x-mr.x)*(te.y-mr.y)/(Lr.y-mr.y)+mr.x&&(pe=!pe),ze=Math.min(ze,Vr(te,mr,Lr))}}return(pe?1:-1)*Math.sqrt(ze)}(this.p,W),this.max=this.d+this.h*Math.SQRT2}var sd;i.aq=void 0,(sd=i.aq||(i.aq={}))[sd.center=1]="center",sd[sd.left=2]="left",sd[sd.right=3]="right",sd[sd.top=4]="top",sd[sd.bottom=5]="bottom",sd[sd["top-left"]=6]="top-left",sd[sd["top-right"]=7]="top-right",sd[sd["bottom-left"]=8]="bottom-left",sd[sd["bottom-right"]=9]="bottom-right";let fm=7,fy=Number.POSITIVE_INFINITY;function pS(R,S){return S[1]!==fy?function(F,W,te){let fe=0,pe=0;switch(W=Math.abs(W),te=Math.abs(te),F){case"top-right":case"top-left":case"top":pe=te-fm;break;case"bottom-right":case"bottom-left":case"bottom":pe=-te+fm}switch(F){case"top-right":case"bottom-right":case"right":fe=-W;break;case"top-left":case"bottom-left":case"left":fe=W}return[fe,pe]}(R,S[0],S[1]):function(F,W){let te=0,fe=0;W<0&&(W=0);let pe=W/Math.SQRT2;switch(F){case"top-right":case"top-left":fe=pe-fm;break;case"bottom-right":case"bottom-left":fe=-pe+fm;break;case"bottom":fe=-W+fm;break;case"top":fe=W-fm}switch(F){case"top-right":case"bottom-right":te=-pe;break;case"top-left":case"bottom-left":te=pe;break;case"left":te=W;break;case"right":te=-W}return[te,fe]}(R,S[0])}function Uk(R,S,F){var W;let te=R.layout,fe=(W=te.get("text-variable-anchor-offset"))===null||W===void 0?void 0:W.evaluate(S,{},F);if(fe){let ze=fe.values,Ke=[];for(let ut=0;utfr*eu);Lt.startsWith("top")?Qt[1]-=fm:Lt.startsWith("bottom")&&(Qt[1]+=fm),Ke[ut+1]=Qt}return new Ji(Ke)}let pe=te.get("text-variable-anchor");if(pe){let ze;ze=R._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[te.get("text-radial-offset").evaluate(S,{},F)*eu,fy]:te.get("text-offset").evaluate(S,{},F).map(ut=>ut*eu);let Ke=[];for(let ut of pe)Ke.push(ut,pS(ut,ze));return new Ji(Ke)}return null}function gS(R){switch(R){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function eO(R,S,F,W,te,fe,pe,ze,Ke,ut,Lt){let Qt=fe.textMaxSize.evaluate(S,{});Qt===void 0&&(Qt=pe);let fr=R.layers[0].layout,mr=fr.get("icon-offset").evaluate(S,{},Lt),Lr=Gk(F.horizontal),zr=pe/24,ui=R.tilePixelRatio*zr,yi=R.tilePixelRatio*Qt/24,dn=R.tilePixelRatio*ze,Fi=R.tilePixelRatio*fr.get("symbol-spacing"),ln=fr.get("text-padding")*R.tilePixelRatio,An=function(Xn,Ro,uo,$o=1){let Ju=Xn.get("icon-padding").evaluate(Ro,{},uo),qu=Ju&&Ju.values;return[qu[0]*$o,qu[1]*$o,qu[2]*$o,qu[3]*$o]}(fr,S,Lt,R.tilePixelRatio),pa=fr.get("text-max-angle")/180*Math.PI,ro=fr.get("text-rotation-alignment")!=="viewport"&&fr.get("symbol-placement")!=="point",Vo=fr.get("icon-rotation-alignment")==="map"&&fr.get("symbol-placement")!=="point",Xa=fr.get("symbol-placement"),sa=Fi/2,Mo=fr.get("icon-text-fit"),fo;W&&Mo!=="none"&&(R.allowVerticalPlacement&&F.vertical&&(fo=Tk(W,F.vertical,Mo,fr.get("icon-text-fit-padding"),mr,zr)),Lr&&(W=Tk(W,Lr,Mo,fr.get("icon-text-fit-padding"),mr,zr)));let lo=(Xn,Ro)=>{Ro.x<0||Ro.x>=Ha||Ro.y<0||Ro.y>=Ha||function(uo,$o,Ju,qu,Th,$v,ld,Ah,Gd,Hd,jd,Tf,Sh,Ed,ud,Hh,Rf,Dv,lv,tu,pc,$u,Fv,ff,I1){let p0=uo.addToLineVertexArray($o,Ju),Gp,Qv,Gc,Zf,ep=0,gg=0,uv=0,R1=0,bS=-1,Uw=-1,g0={},hy=bi("");if(uo.allowVerticalPlacement&&qu.vertical){let Cd=Ah.layout.get("text-rotate").evaluate(pc,{},ff)+90;Gc=new cm(Gd,$o,Hd,jd,Tf,qu.vertical,Sh,Ed,ud,Cd),ld&&(Zf=new cm(Gd,$o,Hd,jd,Tf,ld,Rf,Dv,ud,Cd))}if(Th){let Cd=Ah.layout.get("icon-rotate").evaluate(pc,{}),tp=Ah.layout.get("icon-text-fit")!=="none",hm=Bk(Th,Cd,Fv,tp),Wd=ld?Bk(ld,Cd,Fv,tp):void 0;Qv=new cm(Gd,$o,Hd,jd,Tf,Th,Rf,Dv,!1,Cd),ep=4*hm.length;let kd=uo.iconSizeData,mp=null;kd.kind==="source"?(mp=[v0*Ah.layout.get("icon-size").evaluate(pc,{})],mp[0]>lm&&T(`${uo.layerIds[0]}: Value for "icon-size" is >= ${jx}. Reduce your "icon-size".`)):kd.kind==="composite"&&(mp=[v0*$u.compositeIconSizes[0].evaluate(pc,{},ff),v0*$u.compositeIconSizes[1].evaluate(pc,{},ff)],(mp[0]>lm||mp[1]>lm)&&T(`${uo.layerIds[0]}: Value for "icon-size" is >= ${jx}. Reduce your "icon-size".`)),uo.addSymbols(uo.icon,hm,mp,tu,lv,pc,i.ah.none,$o,p0.lineStartIndex,p0.lineLength,-1,ff),bS=uo.icon.placedSymbolArray.length-1,Wd&&(gg=4*Wd.length,uo.addSymbols(uo.icon,Wd,mp,tu,lv,pc,i.ah.vertical,$o,p0.lineStartIndex,p0.lineLength,-1,ff),Uw=uo.icon.placedSymbolArray.length-1)}let jh=Object.keys(qu.horizontal);for(let Cd of jh){let tp=qu.horizontal[Cd];if(!Gp){hy=bi(tp.text);let Wd=Ah.layout.get("text-rotate").evaluate(pc,{},ff);Gp=new cm(Gd,$o,Hd,jd,Tf,tp,Sh,Ed,ud,Wd)}let hm=tp.positionedLines.length===1;if(uv+=Vk(uo,$o,tp,$v,Ah,ud,pc,Hh,p0,qu.vertical?i.ah.horizontal:i.ah.horizontalOnly,hm?jh:[Cd],g0,bS,$u,ff),hm)break}qu.vertical&&(R1+=Vk(uo,$o,qu.vertical,$v,Ah,ud,pc,Hh,p0,i.ah.vertical,["vertical"],g0,Uw,$u,ff));let iO=Gp?Gp.boxStartIndex:uo.collisionBoxArray.length,Vw=Gp?Gp.boxEndIndex:uo.collisionBoxArray.length,m0=Gc?Gc.boxStartIndex:uo.collisionBoxArray.length,cv=Gc?Gc.boxEndIndex:uo.collisionBoxArray.length,Xk=Qv?Qv.boxStartIndex:uo.collisionBoxArray.length,nO=Qv?Qv.boxEndIndex:uo.collisionBoxArray.length,Zk=Zf?Zf.boxStartIndex:uo.collisionBoxArray.length,aO=Zf?Zf.boxEndIndex:uo.collisionBoxArray.length,gp=-1,tb=(Cd,tp)=>Cd&&Cd.circleDiameter?Math.max(Cd.circleDiameter,tp):tp;gp=tb(Gp,gp),gp=tb(Gc,gp),gp=tb(Qv,gp),gp=tb(Zf,gp);let Gw=gp>-1?1:0;Gw&&(gp*=I1/eu),uo.glyphOffsetArray.length>=E1.MAX_GLYPHS&&T("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),pc.sortKey!==void 0&&uo.addToSortKeyRanges(uo.symbolInstances.length,pc.sortKey);let wS=Uk(Ah,pc,ff),[oO,sO]=function(Cd,tp){let hm=Cd.length,Wd=tp==null?void 0:tp.values;if((Wd==null?void 0:Wd.length)>0)for(let kd=0;kd=0?g0.right:-1,g0.center>=0?g0.center:-1,g0.left>=0?g0.left:-1,g0.vertical||-1,bS,Uw,hy,iO,Vw,m0,cv,Xk,nO,Zk,aO,Hd,uv,R1,ep,gg,Gw,0,Sh,gp,oO,sO)}(R,Ro,Xn,F,W,te,fo,R.layers[0],R.collisionBoxArray,S.index,S.sourceLayerIndex,R.index,ui,[ln,ln,ln,ln],ro,Ke,dn,An,Vo,mr,S,fe,ut,Lt,pe)};if(Xa==="line")for(let Xn of Dk(S.geometry,0,0,Ha,Ha)){let Ro=J9(Xn,Fi,pa,F.vertical||Lr,W,24,yi,R.overscaling,Ha);for(let uo of Ro)Lr&&tO(R,Lr.text,sa,uo)||lo(Xn,uo)}else if(Xa==="line-center"){for(let Xn of S.geometry)if(Xn.length>1){let Ro=K9(Xn,pa,F.vertical||Lr,W,24,yi);Ro&&lo(Xn,Ro)}}else if(S.type==="Polygon")for(let Xn of Cf(S.geometry,0)){let Ro=$9(Xn,16);lo(Xn[0],new vg(Ro.x,Ro.y,0))}else if(S.type==="LineString")for(let Xn of S.geometry)lo(Xn,new vg(Xn[0].x,Xn[0].y,0));else if(S.type==="Point")for(let Xn of S.geometry)for(let Ro of Xn)lo([Ro],new vg(Ro.x,Ro.y,0))}function Vk(R,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr){let zr=function(dn,Fi,ln,An,pa,ro,Vo,Xa){let sa=An.layout.get("text-rotate").evaluate(ro,{})*Math.PI/180,Mo=[];for(let fo of Fi.positionedLines)for(let lo of fo.positionedGlyphs){if(!lo.rect)continue;let Xn=lo.rect||{},Ro=yk+1,uo=!0,$o=1,Ju=0,qu=(pa||Xa)&&lo.vertical,Th=lo.metrics.advance*lo.scale/2;if(Xa&&Fi.verticalizable&&(Ju=fo.lineOffset/2-(lo.imageName?-(eu-lo.metrics.width*lo.scale)/2:(lo.scale-1)*eu)),lo.imageName){let tu=Vo[lo.imageName];uo=tu.sdf,$o=tu.pixelRatio,Ro=Md/$o}let $v=pa?[lo.x+Th,lo.y]:[0,0],ld=pa?[0,0]:[lo.x+Th+ln[0],lo.y+ln[1]-Ju],Ah=[0,0];qu&&(Ah=ld,ld=[0,0]);let Gd=lo.metrics.isDoubleResolution?2:1,Hd=(lo.metrics.left-Ro)*lo.scale-Th+ld[0],jd=(-lo.metrics.top-Ro)*lo.scale+ld[1],Tf=Hd+Xn.w/Gd*lo.scale/$o,Sh=jd+Xn.h/Gd*lo.scale/$o,Ed=new u(Hd,jd),ud=new u(Tf,jd),Hh=new u(Hd,Sh),Rf=new u(Tf,Sh);if(qu){let tu=new u(-Th,Th-wh),pc=-Math.PI/2,$u=eu/2-Th,Fv=new u(5-wh-$u,-(lo.imageName?$u:0)),ff=new u(...Ah);Ed._rotateAround(pc,tu)._add(Fv)._add(ff),ud._rotateAround(pc,tu)._add(Fv)._add(ff),Hh._rotateAround(pc,tu)._add(Fv)._add(ff),Rf._rotateAround(pc,tu)._add(Fv)._add(ff)}if(sa){let tu=Math.sin(sa),pc=Math.cos(sa),$u=[pc,-tu,tu,pc];Ed._matMult($u),ud._matMult($u),Hh._matMult($u),Rf._matMult($u)}let Dv=new u(0,0),lv=new u(0,0);Mo.push({tl:Ed,tr:ud,bl:Hh,br:Rf,tex:Xn,writingMode:Fi.writingMode,glyphOffset:$v,sectionIndex:lo.sectionIndex,isSDF:uo,pixelOffsetTL:Dv,pixelOffsetBR:lv,minFontScaleX:0,minFontScaleY:0})}return Mo}(0,F,ze,te,fe,pe,W,R.allowVerticalPlacement),ui=R.textSizeData,yi=null;ui.kind==="source"?(yi=[v0*te.layout.get("text-size").evaluate(pe,{})],yi[0]>lm&&T(`${R.layerIds[0]}: Value for "text-size" is >= ${jx}. Reduce your "text-size".`)):ui.kind==="composite"&&(yi=[v0*mr.compositeTextSizes[0].evaluate(pe,{},Lr),v0*mr.compositeTextSizes[1].evaluate(pe,{},Lr)],(yi[0]>lm||yi[1]>lm)&&T(`${R.layerIds[0]}: Value for "text-size" is >= ${jx}. Reduce your "text-size".`)),R.addSymbols(R.text,zr,yi,ze,fe,pe,ut,S,Ke.lineStartIndex,Ke.lineLength,fr,Lr);for(let dn of Lt)Qt[dn]=R.text.placedSymbolArray.length-1;return 4*zr.length}function Gk(R){for(let S in R)return R[S];return null}function tO(R,S,F,W){let te=R.compareText;if(S in te){let fe=te[S];for(let pe=fe.length-1;pe>=0;pe--)if(W.dist(fe[pe])>4;if(te!==1)throw new Error(`Got v${te} data when expected v1.`);let fe=Hk[15&W];if(!fe)throw new Error("Unrecognized array type.");let[pe]=new Uint16Array(S,2,1),[ze]=new Uint32Array(S,4,1);return new mS(ze,pe,fe,S)}constructor(S,F=64,W=Float64Array,te){if(isNaN(S)||S<0)throw new Error(`Unpexpected numItems value: ${S}.`);this.numItems=+S,this.nodeSize=Math.min(Math.max(+F,2),65535),this.ArrayType=W,this.IndexArrayType=S<65536?Uint16Array:Uint32Array;let fe=Hk.indexOf(this.ArrayType),pe=2*S*this.ArrayType.BYTES_PER_ELEMENT,ze=S*this.IndexArrayType.BYTES_PER_ELEMENT,Ke=(8-ze%8)%8;if(fe<0)throw new Error(`Unexpected typed array class: ${W}.`);te&&te instanceof ArrayBuffer?(this.data=te,this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+ze+Ke,2*S),this._pos=2*S,this._finished=!0):(this.data=new ArrayBuffer(8+pe+ze+Ke),this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+ze+Ke,2*S),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+fe]),new Uint16Array(this.data,2,1)[0]=F,new Uint32Array(this.data,4,1)[0]=S)}add(S,F){let W=this._pos>>1;return this.ids[W]=W,this.coords[this._pos++]=S,this.coords[this._pos++]=F,W}finish(){let S=this._pos>>1;if(S!==this.numItems)throw new Error(`Added ${S} items when expected ${this.numItems}.`);return qw(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(S,F,W,te){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:fe,coords:pe,nodeSize:ze}=this,Ke=[0,fe.length-1,0],ut=[];for(;Ke.length;){let Lt=Ke.pop()||0,Qt=Ke.pop()||0,fr=Ke.pop()||0;if(Qt-fr<=ze){for(let ui=fr;ui<=Qt;ui++){let yi=pe[2*ui],dn=pe[2*ui+1];yi>=S&&yi<=W&&dn>=F&&dn<=te&&ut.push(fe[ui])}continue}let mr=fr+Qt>>1,Lr=pe[2*mr],zr=pe[2*mr+1];Lr>=S&&Lr<=W&&zr>=F&&zr<=te&&ut.push(fe[mr]),(Lt===0?S<=Lr:F<=zr)&&(Ke.push(fr),Ke.push(mr-1),Ke.push(1-Lt)),(Lt===0?W>=Lr:te>=zr)&&(Ke.push(mr+1),Ke.push(Qt),Ke.push(1-Lt))}return ut}within(S,F,W){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:te,coords:fe,nodeSize:pe}=this,ze=[0,te.length-1,0],Ke=[],ut=W*W;for(;ze.length;){let Lt=ze.pop()||0,Qt=ze.pop()||0,fr=ze.pop()||0;if(Qt-fr<=pe){for(let ui=fr;ui<=Qt;ui++)Wk(fe[2*ui],fe[2*ui+1],S,F)<=ut&&Ke.push(te[ui]);continue}let mr=fr+Qt>>1,Lr=fe[2*mr],zr=fe[2*mr+1];Wk(Lr,zr,S,F)<=ut&&Ke.push(te[mr]),(Lt===0?S-W<=Lr:F-W<=zr)&&(ze.push(fr),ze.push(mr-1),ze.push(1-Lt)),(Lt===0?S+W>=Lr:F+W>=zr)&&(ze.push(mr+1),ze.push(Qt),ze.push(1-Lt))}return Ke}}function qw(R,S,F,W,te,fe){if(te-W<=F)return;let pe=W+te>>1;jk(R,S,pe,W,te,fe),qw(R,S,F,W,pe-1,1-fe),qw(R,S,F,pe+1,te,1-fe)}function jk(R,S,F,W,te,fe){for(;te>W;){if(te-W>600){let ut=te-W+1,Lt=F-W+1,Qt=Math.log(ut),fr=.5*Math.exp(2*Qt/3),mr=.5*Math.sqrt(Qt*fr*(ut-fr)/ut)*(Lt-ut/2<0?-1:1);jk(R,S,F,Math.max(W,Math.floor(F-Lt*fr/ut+mr)),Math.min(te,Math.floor(F+(ut-Lt)*fr/ut+mr)),fe)}let pe=S[2*F+fe],ze=W,Ke=te;for(Qx(R,S,W,F),S[2*te+fe]>pe&&Qx(R,S,W,te);zepe;)Ke--}S[2*W+fe]===pe?Qx(R,S,W,Ke):(Ke++,Qx(R,S,Ke,te)),Ke<=F&&(W=Ke+1),F<=Ke&&(te=Ke-1)}}function Qx(R,S,F,W){yS(R,F,W),yS(S,2*F,2*W),yS(S,2*F+1,2*W+1)}function yS(R,S,F){let W=R[S];R[S]=R[F],R[F]=W}function Wk(R,S,F,W){let te=R-F,fe=S-W;return te*te+fe*fe}var Bw;i.bg=void 0,(Bw=i.bg||(i.bg={})).create="create",Bw.load="load",Bw.fullLoad="fullLoad";let eb=null,sh=[],_S=1e3/60,xS="loadTime",Nw="fullLoadTime",rO={mark(R){performance.mark(R)},frame(R){let S=R;eb!=null&&sh.push(S-eb),eb=S},clearMetrics(){eb=null,sh=[],performance.clearMeasures(xS),performance.clearMeasures(Nw);for(let R in i.bg)performance.clearMarks(i.bg[R])},getPerformanceMetrics(){performance.measure(xS,i.bg.create,i.bg.load),performance.measure(Nw,i.bg.create,i.bg.fullLoad);let R=performance.getEntriesByName(xS)[0].duration,S=performance.getEntriesByName(Nw)[0].duration,F=sh.length,W=1/(sh.reduce((fe,pe)=>fe+pe,0)/F/1e3),te=sh.filter(fe=>fe>_S).reduce((fe,pe)=>fe+(pe-_S)/_S,0);return{loadTime:R,fullLoadTime:S,fps:W,percentDroppedFrames:te/(F+te)*100,totalFrames:F}}};i.$=class extends Kt{},i.A=xi,i.B=hn,i.C=function(R){if(V==null){let S=R.navigator?R.navigator.userAgent:null;V=!!R.safari||!(!S||!(/\b(iPad|iPhone|iPod)\b/.test(S)||S.match("Safari")&&!S.match("Chrome")))}return V},i.D=Ua,i.E=Fe,i.F=class{constructor(R,S){this.target=R,this.mapId=S,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new cS(()=>this.process()),this.subscription=function(F,W,te,fe){return F.addEventListener(W,te,!1),{unsubscribe:()=>{F.removeEventListener(W,te,!1)}}}(this.target,"message",F=>this.receive(F)),this.globalScope=O(self)?R:window}registerMessageHandler(R,S){this.messageHandlers[R]=S}sendAsync(R,S){return new Promise((F,W)=>{let te=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[te]={resolve:F,reject:W},S&&S.signal.addEventListener("abort",()=>{delete this.resolveRejects[te];let ze={id:te,type:"",origin:location.origin,targetMapId:R.targetMapId,sourceMapId:this.mapId};this.target.postMessage(ze)},{once:!0});let fe=[],pe=Object.assign(Object.assign({},R),{id:te,sourceMapId:this.mapId,origin:location.origin,data:La(R.data,fe)});this.target.postMessage(pe,{transfer:fe})})}receive(R){let S=R.data,F=S.id;if(!(S.origin!=="file://"&&location.origin!=="file://"&&S.origin!=="resource://android"&&location.origin!=="resource://android"&&S.origin!==location.origin||S.targetMapId&&this.mapId!==S.targetMapId)){if(S.type===""){delete this.tasks[F];let W=this.abortControllers[F];return delete this.abortControllers[F],void(W&&W.abort())}if(O(self)||S.mustQueue)return this.tasks[F]=S,this.taskQueue.push(F),void this.invoker.trigger();this.processTask(F,S)}}process(){if(this.taskQueue.length===0)return;let R=this.taskQueue.shift(),S=this.tasks[R];delete this.tasks[R],this.taskQueue.length>0&&this.invoker.trigger(),S&&this.processTask(R,S)}processTask(R,S){return a(this,void 0,void 0,function*(){if(S.type===""){let te=this.resolveRejects[R];return delete this.resolveRejects[R],te?void(S.error?te.reject(Na(S.error)):te.resolve(Na(S.data))):void 0}if(!this.messageHandlers[S.type])return void this.completeTask(R,new Error(`Could not find a registered handler for ${S.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let F=Na(S.data),W=new AbortController;this.abortControllers[R]=W;try{let te=yield this.messageHandlers[S.type](S.sourceMapId,F,W);this.completeTask(R,null,te)}catch(te){this.completeTask(R,te)}})}completeTask(R,S,F){let W=[];delete this.abortControllers[R];let te={id:R,type:"",sourceMapId:this.mapId,origin:location.origin,error:S?La(S):null,data:La(F,W)};this.target.postMessage(te,{transfer:W})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=ke,i.H=function(){var R=new xi(16);return xi!=Float32Array&&(R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[11]=0,R[12]=0,R[13]=0,R[14]=0),R[0]=1,R[5]=1,R[10]=1,R[15]=1,R},i.I=Cw,i.J=function(R,S,F){var W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr=F[0],ui=F[1],yi=F[2];return S===R?(R[12]=S[0]*zr+S[4]*ui+S[8]*yi+S[12],R[13]=S[1]*zr+S[5]*ui+S[9]*yi+S[13],R[14]=S[2]*zr+S[6]*ui+S[10]*yi+S[14],R[15]=S[3]*zr+S[7]*ui+S[11]*yi+S[15]):(te=S[1],fe=S[2],pe=S[3],ze=S[4],Ke=S[5],ut=S[6],Lt=S[7],Qt=S[8],fr=S[9],mr=S[10],Lr=S[11],R[0]=W=S[0],R[1]=te,R[2]=fe,R[3]=pe,R[4]=ze,R[5]=Ke,R[6]=ut,R[7]=Lt,R[8]=Qt,R[9]=fr,R[10]=mr,R[11]=Lr,R[12]=W*zr+ze*ui+Qt*yi+S[12],R[13]=te*zr+Ke*ui+fr*yi+S[13],R[14]=fe*zr+ut*ui+mr*yi+S[14],R[15]=pe*zr+Lt*ui+Lr*yi+S[15]),R},i.K=function(R,S,F){var W=F[0],te=F[1],fe=F[2];return R[0]=S[0]*W,R[1]=S[1]*W,R[2]=S[2]*W,R[3]=S[3]*W,R[4]=S[4]*te,R[5]=S[5]*te,R[6]=S[6]*te,R[7]=S[7]*te,R[8]=S[8]*fe,R[9]=S[9]*fe,R[10]=S[10]*fe,R[11]=S[11]*fe,R[12]=S[12],R[13]=S[13],R[14]=S[14],R[15]=S[15],R},i.L=ci,i.M=function(R,S){let F={};for(let W=0;W{let S=window.document.createElement("video");return S.muted=!0,new Promise(F=>{S.onloadstart=()=>{F(S)};for(let W of R){let te=window.document.createElement("source");Le(W)||(S.crossOrigin="Anonymous"),te.src=W,S.appendChild(te)}})},i.a4=function(){return _++},i.a5=In,i.a6=E1,i.a7=Fc,i.a8=Ml,i.a9=dS,i.aA=function(R){if(R.type==="custom")return new uS(R);switch(R.type){case"background":return new Z9(R);case"circle":return new vi(R);case"fill":return new mt(R);case"fill-extrusion":return new kv(R);case"heatmap":return new oa(R);case"hillshade":return new Ys(R);case"line":return new ay(R);case"raster":return new Yx(R);case"symbol":return new uy(R)}},i.aB=g,i.aC=function(R,S){if(!R)return[{command:"setStyle",args:[S]}];let F=[];try{if(!pt(R.version,S.version))return[{command:"setStyle",args:[S]}];pt(R.center,S.center)||F.push({command:"setCenter",args:[S.center]}),pt(R.zoom,S.zoom)||F.push({command:"setZoom",args:[S.zoom]}),pt(R.bearing,S.bearing)||F.push({command:"setBearing",args:[S.bearing]}),pt(R.pitch,S.pitch)||F.push({command:"setPitch",args:[S.pitch]}),pt(R.sprite,S.sprite)||F.push({command:"setSprite",args:[S.sprite]}),pt(R.glyphs,S.glyphs)||F.push({command:"setGlyphs",args:[S.glyphs]}),pt(R.transition,S.transition)||F.push({command:"setTransition",args:[S.transition]}),pt(R.light,S.light)||F.push({command:"setLight",args:[S.light]}),pt(R.terrain,S.terrain)||F.push({command:"setTerrain",args:[S.terrain]}),pt(R.sky,S.sky)||F.push({command:"setSky",args:[S.sky]}),pt(R.projection,S.projection)||F.push({command:"setProjection",args:[S.projection]});let W={},te=[];(function(pe,ze,Ke,ut){let Lt;for(Lt in ze=ze||{},pe=pe||{})Object.prototype.hasOwnProperty.call(pe,Lt)&&(Object.prototype.hasOwnProperty.call(ze,Lt)||lt(Lt,Ke,ut));for(Lt in ze)Object.prototype.hasOwnProperty.call(ze,Lt)&&(Object.prototype.hasOwnProperty.call(pe,Lt)?pt(pe[Lt],ze[Lt])||(pe[Lt].type==="geojson"&&ze[Lt].type==="geojson"&&Nt(pe,ze,Lt)?Wt(Ke,{command:"setGeoJSONSourceData",args:[Lt,ze[Lt].data]}):Gt(Lt,ze,Ke,ut)):st(Lt,ze,Ke))})(R.sources,S.sources,te,W);let fe=[];R.layers&&R.layers.forEach(pe=>{"source"in pe&&W[pe.source]?F.push({command:"removeLayer",args:[pe.id]}):fe.push(pe)}),F=F.concat(te),function(pe,ze,Ke){ze=ze||[];let ut=(pe=pe||[]).map(sr),Lt=ze.map(sr),Qt=pe.reduce(wr,{}),fr=ze.reduce(wr,{}),mr=ut.slice(),Lr=Object.create(null),zr,ui,yi,dn,Fi;for(let ln=0,An=0;ln@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(F,W,te,fe)=>{let pe=te||fe;return S[W]=!pe||pe.toLowerCase(),""}),S["max-age"]){let F=parseInt(S["max-age"],10);isNaN(F)?delete S["max-age"]:S["max-age"]=F}return S},i.ab=function(R,S){let F=[];for(let W in R)W in S||F.push(W);return F},i.ac=E,i.ad=function(R,S,F){var W=Math.sin(F),te=Math.cos(F),fe=S[0],pe=S[1],ze=S[2],Ke=S[3],ut=S[4],Lt=S[5],Qt=S[6],fr=S[7];return S!==R&&(R[8]=S[8],R[9]=S[9],R[10]=S[10],R[11]=S[11],R[12]=S[12],R[13]=S[13],R[14]=S[14],R[15]=S[15]),R[0]=fe*te+ut*W,R[1]=pe*te+Lt*W,R[2]=ze*te+Qt*W,R[3]=Ke*te+fr*W,R[4]=ut*te-fe*W,R[5]=Lt*te-pe*W,R[6]=Qt*te-ze*W,R[7]=fr*te-Ke*W,R},i.ae=function(R){var S=new xi(16);return S[0]=R[0],S[1]=R[1],S[2]=R[2],S[3]=R[3],S[4]=R[4],S[5]=R[5],S[6]=R[6],S[7]=R[7],S[8]=R[8],S[9]=R[9],S[10]=R[10],S[11]=R[11],S[12]=R[12],S[13]=R[13],S[14]=R[14],S[15]=R[15],S},i.af=qn,i.ag=function(R,S){let F=0,W=0;if(R.kind==="constant")W=R.layoutSize;else if(R.kind!=="source"){let{interpolationType:te,minZoom:fe,maxZoom:pe}=R,ze=te?E(Co.interpolationFactor(te,S,fe,pe),0,1):0;R.kind==="camera"?W=Lo.number(R.minSize,R.maxSize,ze):F=ze}return{uSizeT:F,uSize:W}},i.ai=function(R,{uSize:S,uSizeT:F},{lowerSize:W,upperSize:te}){return R.kind==="source"?W/v0:R.kind==="composite"?Lo.number(W/v0,te/v0,F):S},i.aj=aS,i.ak=function(R,S,F,W){let te=S.y-R.y,fe=S.x-R.x,pe=W.y-F.y,ze=W.x-F.x,Ke=pe*fe-ze*te;if(Ke===0)return null;let ut=(ze*(R.y-F.y)-pe*(R.x-F.x))/Ke;return new u(R.x+ut*fe,R.y+ut*te)},i.al=Dk,i.am=Sc,i.an=Ii,i.ao=function(R){let S=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)S=Math.min(S,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return[S,F,W,te]},i.ap=eu,i.ar=nS,i.as=function(R,S){var F=S[0],W=S[1],te=S[2],fe=S[3],pe=S[4],ze=S[5],Ke=S[6],ut=S[7],Lt=S[8],Qt=S[9],fr=S[10],mr=S[11],Lr=S[12],zr=S[13],ui=S[14],yi=S[15],dn=F*ze-W*pe,Fi=F*Ke-te*pe,ln=F*ut-fe*pe,An=W*Ke-te*ze,pa=W*ut-fe*ze,ro=te*ut-fe*Ke,Vo=Lt*zr-Qt*Lr,Xa=Lt*ui-fr*Lr,sa=Lt*yi-mr*Lr,Mo=Qt*ui-fr*zr,fo=Qt*yi-mr*zr,lo=fr*yi-mr*ui,Xn=dn*lo-Fi*fo+ln*Mo+An*sa-pa*Xa+ro*Vo;return Xn?(R[0]=(ze*lo-Ke*fo+ut*Mo)*(Xn=1/Xn),R[1]=(te*fo-W*lo-fe*Mo)*Xn,R[2]=(zr*ro-ui*pa+yi*An)*Xn,R[3]=(fr*pa-Qt*ro-mr*An)*Xn,R[4]=(Ke*sa-pe*lo-ut*Xa)*Xn,R[5]=(F*lo-te*sa+fe*Xa)*Xn,R[6]=(ui*ln-Lr*ro-yi*Fi)*Xn,R[7]=(Lt*ro-fr*ln+mr*Fi)*Xn,R[8]=(pe*fo-ze*sa+ut*Vo)*Xn,R[9]=(W*sa-F*fo-fe*Vo)*Xn,R[10]=(Lr*pa-zr*ln+yi*dn)*Xn,R[11]=(Qt*ln-Lt*pa-mr*dn)*Xn,R[12]=(ze*Xa-pe*Mo-Ke*Vo)*Xn,R[13]=(F*Mo-W*Xa+te*Vo)*Xn,R[14]=(zr*Fi-Lr*An-ui*dn)*Xn,R[15]=(Lt*An-Qt*Fi+fr*dn)*Xn,R):null},i.at=gS,i.au=Iw,i.av=mS,i.aw=function(){let R={},S=ce.$version;for(let F in ce.$root){let W=ce.$root[F];if(W.required){let te=null;te=F==="version"?S:W.type==="array"?[]:{},te!=null&&(R[F]=te)}}return R},i.ax=Yn,i.ay=ie,i.az=function(R){R=R.slice();let S=Object.create(null);for(let F=0;F25||W<0||W>=1||F<0||F>=1)},i.bc=function(R,S){return R[0]=S[0],R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[5]=S[1],R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[10]=S[2],R[11]=0,R[12]=0,R[13]=0,R[14]=0,R[15]=1,R},i.bd=class extends Tt{},i.be=fS,i.bf=rO,i.bh=me,i.bi=function(R,S){_e.REGISTERED_PROTOCOLS[R]=S},i.bj=function(R){delete _e.REGISTERED_PROTOCOLS[R]},i.bk=function(R,S){let F={};for(let te=0;telo*eu)}let Xa=pe?"center":F.get("text-justify").evaluate(ut,{},R.canonical),sa=F.get("symbol-placement")==="point"?F.get("text-max-width").evaluate(ut,{},R.canonical)*eu:1/0,Mo=()=>{R.bucket.allowVerticalPlacement&&Ka(ln)&&(Lr.vertical=Gx(zr,R.glyphMap,R.glyphPositions,R.imagePositions,Lt,sa,fe,ro,"left",pa,yi,i.ah.vertical,!0,fr,Qt))};if(!pe&&Vo){let fo=new Set;if(Xa==="auto")for(let Xn=0;Xna(void 0,void 0,void 0,function*(){if(R.byteLength===0)return createImageBitmap(new ImageData(1,1));let S=new Blob([new Uint8Array(R)],{type:"image/png"});try{return createImageBitmap(S)}catch(F){throw new Error(`Could not load image because of ${F.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),i.e=L,i.f=R=>new Promise((S,F)=>{let W=new Image;W.onload=()=>{S(W),URL.revokeObjectURL(W.src),W.onload=null,window.requestAnimationFrame(()=>{W.src=Z})},W.onerror=()=>F(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let te=new Blob([new Uint8Array(R)],{type:"image/png"});W.src=R.byteLength?URL.createObjectURL(te):Z}),i.g=Me,i.h=(R,S)=>Se(L(R,{type:"json"}),S),i.i=O,i.j=ge,i.k=Pe,i.l=(R,S)=>Se(L(R,{type:"arrayBuffer"}),S),i.m=Se,i.n=function(R){return new tS(R).readFields(CQ,[])},i.o=na,i.p=iS,i.q=ue,i.r=Wi,i.s=Le,i.t=Zi,i.u=Ei,i.v=ce,i.w=T,i.x=function([R,S,F]){return S+=90,S*=Math.PI/180,F*=Math.PI/180,{x:R*Math.cos(S)*Math.sin(F),y:R*Math.sin(S)*Math.sin(F),z:R*Math.cos(F)}},i.y=Lo,i.z=is}),r("worker",["./shared"],function(i){"use strict";class a{constructor(Ge){this.keyCache={},Ge&&this.replace(Ge)}replace(Ge){this._layerConfigs={},this._layers={},this.update(Ge,[])}update(Ge,Je){for(let $e of Ge){this._layerConfigs[$e.id]=$e;let wt=this._layers[$e.id]=i.aA($e);wt._featureFilter=i.a7(wt.filter),this.keyCache[$e.id]&&delete this.keyCache[$e.id]}for(let $e of Je)delete this.keyCache[$e],delete this._layerConfigs[$e],delete this._layers[$e];this.familiesBySource={};let je=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let $e of je){let wt=$e.map(ir=>this._layers[ir.id]),Ie=wt[0];if(Ie.visibility==="none")continue;let xe=Ie.source||"",Ce=this.familiesBySource[xe];Ce||(Ce=this.familiesBySource[xe]={});let vt=Ie.sourceLayer||"_geojsonTileLayer",nr=Ce[vt];nr||(nr=Ce[vt]=[]),nr.push(wt)}}}class o{constructor(Ge){let Je={},je=[];for(let xe in Ge){let Ce=Ge[xe],vt=Je[xe]={};for(let nr in Ce){let ir=Ce[+nr];if(!ir||ir.bitmap.width===0||ir.bitmap.height===0)continue;let pr={x:0,y:0,w:ir.bitmap.width+2,h:ir.bitmap.height+2};je.push(pr),vt[nr]={rect:pr,metrics:ir.metrics}}}let{w:$e,h:wt}=i.p(je),Ie=new i.o({width:$e||1,height:wt||1});for(let xe in Ge){let Ce=Ge[xe];for(let vt in Ce){let nr=Ce[+vt];if(!nr||nr.bitmap.width===0||nr.bitmap.height===0)continue;let ir=Je[xe][vt].rect;i.o.copy(nr.bitmap,Ie,{x:0,y:0},{x:ir.x+1,y:ir.y+1},nr.bitmap)}}this.image=Ie,this.positions=Je}}i.bl("GlyphAtlas",o);class s{constructor(Ge){this.tileID=new i.S(Ge.tileID.overscaledZ,Ge.tileID.wrap,Ge.tileID.canonical.z,Ge.tileID.canonical.x,Ge.tileID.canonical.y),this.uid=Ge.uid,this.zoom=Ge.zoom,this.pixelRatio=Ge.pixelRatio,this.tileSize=Ge.tileSize,this.source=Ge.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=Ge.showCollisionBoxes,this.collectResourceTiming=!!Ge.collectResourceTiming,this.returnDependencies=!!Ge.returnDependencies,this.promoteId=Ge.promoteId,this.inFlightDependencies=[]}parse(Ge,Je,je,$e){return i._(this,void 0,void 0,function*(){this.status="parsing",this.data=Ge,this.collisionBoxArray=new i.a5;let wt=new i.bm(Object.keys(Ge.layers).sort()),Ie=new i.bn(this.tileID,this.promoteId);Ie.bucketLayerIDs=[];let xe={},Ce={featureIndex:Ie,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:je},vt=Je.familiesBySource[this.source];for(let Vn in vt){let kn=Ge.layers[Vn];if(!kn)continue;kn.version===1&&i.w(`Vector tile source "${this.source}" layer "${Vn}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let ea=wt.encode(Vn),ua=[];for(let Vt=0;Vt=_t.maxzoom||_t.visibility!=="none"&&(l(Vt,this.zoom,je),(xe[_t.id]=_t.createBucket({index:Ie.bucketLayerIDs.length,layers:Vt,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:ea,sourceID:this.source})).populate(ua,Ce,this.tileID.canonical),Ie.bucketLayerIDs.push(Vt.map(tr=>tr.id)))}}let nr=i.aF(Ce.glyphDependencies,Vn=>Object.keys(Vn).map(Number));this.inFlightDependencies.forEach(Vn=>Vn==null?void 0:Vn.abort()),this.inFlightDependencies=[];let ir=Promise.resolve({});if(Object.keys(nr).length){let Vn=new AbortController;this.inFlightDependencies.push(Vn),ir=$e.sendAsync({type:"GG",data:{stacks:nr,source:this.source,tileID:this.tileID,type:"glyphs"}},Vn)}let pr=Object.keys(Ce.iconDependencies),oi=Promise.resolve({});if(pr.length){let Vn=new AbortController;this.inFlightDependencies.push(Vn),oi=$e.sendAsync({type:"GI",data:{icons:pr,source:this.source,tileID:this.tileID,type:"icons"}},Vn)}let di=Object.keys(Ce.patternDependencies),Jr=Promise.resolve({});if(di.length){let Vn=new AbortController;this.inFlightDependencies.push(Vn),Jr=$e.sendAsync({type:"GI",data:{icons:di,source:this.source,tileID:this.tileID,type:"patterns"}},Vn)}let[fi,Hi,Pn]=yield Promise.all([ir,oi,Jr]),wn=new o(fi),pn=new i.bo(Hi,Pn);for(let Vn in xe){let kn=xe[Vn];kn instanceof i.a6?(l(kn.layers,this.zoom,je),i.bp({bucket:kn,glyphMap:fi,glyphPositions:wn.positions,imageMap:Hi,imagePositions:pn.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):kn.hasPattern&&(kn instanceof i.bq||kn instanceof i.br||kn instanceof i.bs)&&(l(kn.layers,this.zoom,je),kn.addFeatures(Ce,this.tileID.canonical,pn.patternPositions))}return this.status="done",{buckets:Object.values(xe).filter(Vn=>!Vn.isEmpty()),featureIndex:Ie,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:wn.image,imageAtlas:pn,glyphMap:this.returnDependencies?fi:null,iconMap:this.returnDependencies?Hi:null,glyphPositions:this.returnDependencies?wn.positions:null}})}}function l(dt,Ge,Je){let je=new i.z(Ge);for(let $e of dt)$e.recalculate(je,Je)}class u{constructor(Ge,Je,je){this.actor=Ge,this.layerIndex=Je,this.availableImages=je,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(Ge,Je){return i._(this,void 0,void 0,function*(){let je=yield i.l(Ge.request,Je);try{return{vectorTile:new i.bt.VectorTile(new i.bu(je.data)),rawData:je.data,cacheControl:je.cacheControl,expires:je.expires}}catch($e){let wt=new Uint8Array(je.data),Ie=`Unable to parse the tile at ${Ge.request.url}, `;throw Ie+=wt[0]===31&&wt[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${$e.message}`,new Error(Ie)}})}loadTile(Ge){return i._(this,void 0,void 0,function*(){let Je=Ge.uid,je=!!(Ge&&Ge.request&&Ge.request.collectResourceTiming)&&new i.bv(Ge.request),$e=new s(Ge);this.loading[Je]=$e;let wt=new AbortController;$e.abort=wt;try{let Ie=yield this.loadVectorTile(Ge,wt);if(delete this.loading[Je],!Ie)return null;let xe=Ie.rawData,Ce={};Ie.expires&&(Ce.expires=Ie.expires),Ie.cacheControl&&(Ce.cacheControl=Ie.cacheControl);let vt={};if(je){let ir=je.finish();ir&&(vt.resourceTiming=JSON.parse(JSON.stringify(ir)))}$e.vectorTile=Ie.vectorTile;let nr=$e.parse(Ie.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Je]=$e,this.fetching[Je]={rawTileData:xe,cacheControl:Ce,resourceTiming:vt};try{let ir=yield nr;return i.e({rawTileData:xe.slice(0)},ir,Ce,vt)}finally{delete this.fetching[Je]}}catch(Ie){throw delete this.loading[Je],$e.status="done",this.loaded[Je]=$e,Ie}})}reloadTile(Ge){return i._(this,void 0,void 0,function*(){let Je=Ge.uid;if(!this.loaded||!this.loaded[Je])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let je=this.loaded[Je];if(je.showCollisionBoxes=Ge.showCollisionBoxes,je.status==="parsing"){let $e=yield je.parse(je.vectorTile,this.layerIndex,this.availableImages,this.actor),wt;if(this.fetching[Je]){let{rawTileData:Ie,cacheControl:xe,resourceTiming:Ce}=this.fetching[Je];delete this.fetching[Je],wt=i.e({rawTileData:Ie.slice(0)},$e,xe,Ce)}else wt=$e;return wt}if(je.status==="done"&&je.vectorTile)return je.parse(je.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(Ge){return i._(this,void 0,void 0,function*(){let Je=this.loading,je=Ge.uid;Je&&Je[je]&&Je[je].abort&&(Je[je].abort.abort(),delete Je[je])})}removeTile(Ge){return i._(this,void 0,void 0,function*(){this.loaded&&this.loaded[Ge.uid]&&delete this.loaded[Ge.uid]})}}class c{constructor(){this.loaded={}}loadTile(Ge){return i._(this,void 0,void 0,function*(){let{uid:Je,encoding:je,rawImageData:$e,redFactor:wt,greenFactor:Ie,blueFactor:xe,baseShift:Ce}=Ge,vt=$e.width+2,nr=$e.height+2,ir=i.b($e)?new i.R({width:vt,height:nr},yield i.bw($e,-1,-1,vt,nr)):$e,pr=new i.bx(Je,ir,je,wt,Ie,xe,Ce);return this.loaded=this.loaded||{},this.loaded[Je]=pr,pr})}removeTile(Ge){let Je=this.loaded,je=Ge.uid;Je&&Je[je]&&delete Je[je]}}function f(dt,Ge){if(dt.length!==0){h(dt[0],Ge);for(var Je=1;Je=Math.abs(xe)?Je-Ce+xe:xe-Ce+Je,Je=Ce}Je+je>=0!=!!Ge&&dt.reverse()}var d=i.by(function dt(Ge,Je){var je,$e=Ge&&Ge.type;if($e==="FeatureCollection")for(je=0;je>31}function O(dt,Ge){for(var Je=dt.loadGeometry(),je=dt.type,$e=0,wt=0,Ie=Je.length,xe=0;xedt},H=Math.fround||(N=new Float32Array(1),dt=>(N[0]=+dt,N[0]));var N;let j=3,re=5,oe=6;class _e{constructor(Ge){this.options=Object.assign(Object.create(Z),Ge),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(Ge){let{log:Je,minZoom:je,maxZoom:$e}=this.options;Je&&console.time("total time");let wt=`prepare ${Ge.length} points`;Je&&console.time(wt),this.points=Ge;let Ie=[];for(let Ce=0;Ce=je;Ce--){let vt=+Date.now();xe=this.trees[Ce]=this._createTree(this._cluster(xe,Ce)),Je&&console.log("z%d: %d clusters in %dms",Ce,xe.numItems,+Date.now()-vt)}return Je&&console.timeEnd("total time"),this}getClusters(Ge,Je){let je=((Ge[0]+180)%360+360)%360-180,$e=Math.max(-90,Math.min(90,Ge[1])),wt=Ge[2]===180?180:((Ge[2]+180)%360+360)%360-180,Ie=Math.max(-90,Math.min(90,Ge[3]));if(Ge[2]-Ge[0]>=360)je=-180,wt=180;else if(je>wt){let ir=this.getClusters([je,$e,180,Ie],Je),pr=this.getClusters([-180,$e,wt,Ie],Je);return ir.concat(pr)}let xe=this.trees[this._limitZoom(Je)],Ce=xe.range(me(je),ie(Ie),me(wt),ie($e)),vt=xe.data,nr=[];for(let ir of Ce){let pr=this.stride*ir;nr.push(vt[pr+re]>1?Me(vt,pr,this.clusterProps):this.points[vt[pr+j]])}return nr}getChildren(Ge){let Je=this._getOriginId(Ge),je=this._getOriginZoom(Ge),$e="No cluster with the specified id.",wt=this.trees[je];if(!wt)throw new Error($e);let Ie=wt.data;if(Je*this.stride>=Ie.length)throw new Error($e);let xe=this.options.radius/(this.options.extent*Math.pow(2,je-1)),Ce=wt.within(Ie[Je*this.stride],Ie[Je*this.stride+1],xe),vt=[];for(let nr of Ce){let ir=nr*this.stride;Ie[ir+4]===Ge&&vt.push(Ie[ir+re]>1?Me(Ie,ir,this.clusterProps):this.points[Ie[ir+j]])}if(vt.length===0)throw new Error($e);return vt}getLeaves(Ge,Je,je){let $e=[];return this._appendLeaves($e,Ge,Je=Je||10,je=je||0,0),$e}getTile(Ge,Je,je){let $e=this.trees[this._limitZoom(Ge)],wt=Math.pow(2,Ge),{extent:Ie,radius:xe}=this.options,Ce=xe/Ie,vt=(je-Ce)/wt,nr=(je+1+Ce)/wt,ir={features:[]};return this._addTileFeatures($e.range((Je-Ce)/wt,vt,(Je+1+Ce)/wt,nr),$e.data,Je,je,wt,ir),Je===0&&this._addTileFeatures($e.range(1-Ce/wt,vt,1,nr),$e.data,wt,je,wt,ir),Je===wt-1&&this._addTileFeatures($e.range(0,vt,Ce/wt,nr),$e.data,-1,je,wt,ir),ir.features.length?ir:null}getClusterExpansionZoom(Ge){let Je=this._getOriginZoom(Ge)-1;for(;Je<=this.options.maxZoom;){let je=this.getChildren(Ge);if(Je++,je.length!==1)break;Ge=je[0].properties.cluster_id}return Je}_appendLeaves(Ge,Je,je,$e,wt){let Ie=this.getChildren(Je);for(let xe of Ie){let Ce=xe.properties;if(Ce&&Ce.cluster?wt+Ce.point_count<=$e?wt+=Ce.point_count:wt=this._appendLeaves(Ge,Ce.cluster_id,je,$e,wt):wt<$e?wt++:Ge.push(xe),Ge.length===je)break}return wt}_createTree(Ge){let Je=new i.av(Ge.length/this.stride|0,this.options.nodeSize,Float32Array);for(let je=0;je1,nr,ir,pr;if(vt)nr=ke(Je,Ce,this.clusterProps),ir=Je[Ce],pr=Je[Ce+1];else{let Jr=this.points[Je[Ce+j]];nr=Jr.properties;let[fi,Hi]=Jr.geometry.coordinates;ir=me(fi),pr=ie(Hi)}let oi={type:1,geometry:[[Math.round(this.options.extent*(ir*wt-je)),Math.round(this.options.extent*(pr*wt-$e))]],tags:nr},di;di=vt||this.options.generateId?Je[Ce+j]:this.points[Je[Ce+j]].id,di!==void 0&&(oi.id=di),Ie.features.push(oi)}}_limitZoom(Ge){return Math.max(this.options.minZoom,Math.min(Math.floor(+Ge),this.options.maxZoom+1))}_cluster(Ge,Je){let{radius:je,extent:$e,reduce:wt,minPoints:Ie}=this.options,xe=je/($e*Math.pow(2,Je)),Ce=Ge.data,vt=[],nr=this.stride;for(let ir=0;irJe&&(fi+=Ce[Pn+re])}if(fi>Jr&&fi>=Ie){let Hi,Pn=pr*Jr,wn=oi*Jr,pn=-1,Vn=((ir/nr|0)<<5)+(Je+1)+this.points.length;for(let kn of di){let ea=kn*nr;if(Ce[ea+2]<=Je)continue;Ce[ea+2]=Je;let ua=Ce[ea+re];Pn+=Ce[ea]*ua,wn+=Ce[ea+1]*ua,Ce[ea+4]=Vn,wt&&(Hi||(Hi=this._map(Ce,ir,!0),pn=this.clusterProps.length,this.clusterProps.push(Hi)),wt(Hi,this._map(Ce,ea)))}Ce[ir+4]=Vn,vt.push(Pn/fi,wn/fi,1/0,Vn,-1,fi),wt&&vt.push(pn)}else{for(let Hi=0;Hi1)for(let Hi of di){let Pn=Hi*nr;if(!(Ce[Pn+2]<=Je)){Ce[Pn+2]=Je;for(let wn=0;wn>5}_getOriginZoom(Ge){return(Ge-this.points.length)%32}_map(Ge,Je,je){if(Ge[Je+re]>1){let Ie=this.clusterProps[Ge[Je+oe]];return je?Object.assign({},Ie):Ie}let $e=this.points[Ge[Je+j]].properties,wt=this.options.map($e);return je&&wt===$e?Object.assign({},wt):wt}}function Me(dt,Ge,Je){return{type:"Feature",id:dt[Ge+j],properties:ke(dt,Ge,Je),geometry:{type:"Point",coordinates:[(je=dt[Ge],360*(je-.5)),Se(dt[Ge+1])]}};var je}function ke(dt,Ge,Je){let je=dt[Ge+re],$e=je>=1e4?`${Math.round(je/1e3)}k`:je>=1e3?Math.round(je/100)/10+"k":je,wt=dt[Ge+oe],Ie=wt===-1?{}:Object.assign({},Je[wt]);return Object.assign(Ie,{cluster:!0,cluster_id:dt[Ge+j],point_count:je,point_count_abbreviated:$e})}function me(dt){return dt/360+.5}function ie(dt){let Ge=Math.sin(dt*Math.PI/180),Je=.5-.25*Math.log((1+Ge)/(1-Ge))/Math.PI;return Je<0?0:Je>1?1:Je}function Se(dt){let Ge=(180-360*dt)*Math.PI/180;return 360*Math.atan(Math.exp(Ge))/Math.PI-90}function Le(dt,Ge,Je,je){let $e=je,wt=Ge+(Je-Ge>>1),Ie,xe=Je-Ge,Ce=dt[Ge],vt=dt[Ge+1],nr=dt[Je],ir=dt[Je+1];for(let pr=Ge+3;pr$e)Ie=pr,$e=oi;else if(oi===$e){let di=Math.abs(pr-wt);dije&&(Ie-Ge>3&&Le(dt,Ge,Ie,je),dt[Ie+2]=$e,Je-Ie>3&&Le(dt,Ie,Je,je))}function Ae(dt,Ge,Je,je,$e,wt){let Ie=$e-Je,xe=wt-je;if(Ie!==0||xe!==0){let Ce=((dt-Je)*Ie+(Ge-je)*xe)/(Ie*Ie+xe*xe);Ce>1?(Je=$e,je=wt):Ce>0&&(Je+=Ie*Ce,je+=xe*Ce)}return Ie=dt-Je,xe=Ge-je,Ie*Ie+xe*xe}function De(dt,Ge,Je,je){let $e={id:dt==null?null:dt,type:Ge,geometry:Je,tags:je,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(Ge==="Point"||Ge==="MultiPoint"||Ge==="LineString")Pe($e,Je);else if(Ge==="Polygon")Pe($e,Je[0]);else if(Ge==="MultiLineString")for(let wt of Je)Pe($e,wt);else if(Ge==="MultiPolygon")for(let wt of Je)Pe($e,wt[0]);return $e}function Pe(dt,Ge){for(let Je=0;Je0&&(Ie+=je?($e*nr-vt*wt)/2:Math.sqrt(Math.pow(vt-$e,2)+Math.pow(nr-wt,2))),$e=vt,wt=nr}let xe=Ge.length-3;Ge[2]=1,Le(Ge,0,xe,Je),Ge[xe+2]=1,Ge.size=Math.abs(Ie),Ge.start=0,Ge.end=Ge.size}function Ze(dt,Ge,Je,je){for(let $e=0;$e1?1:Je}function Wt(dt,Ge,Je,je,$e,wt,Ie,xe){if(je/=Ge,wt>=(Je/=Ge)&&Ie=je)return null;let Ce=[];for(let vt of dt){let nr=vt.geometry,ir=vt.type,pr=$e===0?vt.minX:vt.minY,oi=$e===0?vt.maxX:vt.maxY;if(pr>=Je&&oi=je)continue;let di=[];if(ir==="Point"||ir==="MultiPoint")st(nr,di,Je,je,$e);else if(ir==="LineString")lt(nr,di,Je,je,$e,!1,xe.lineMetrics);else if(ir==="MultiLineString")Nt(nr,di,Je,je,$e,!1);else if(ir==="Polygon")Nt(nr,di,Je,je,$e,!0);else if(ir==="MultiPolygon")for(let Jr of nr){let fi=[];Nt(Jr,fi,Je,je,$e,!0),fi.length&&di.push(fi)}if(di.length){if(xe.lineMetrics&&ir==="LineString"){for(let Jr of di)Ce.push(De(vt.id,ir,Jr,vt.tags));continue}ir!=="LineString"&&ir!=="MultiLineString"||(di.length===1?(ir="LineString",di=di[0]):ir="MultiLineString"),ir!=="Point"&&ir!=="MultiPoint"||(ir=di.length===3?"Point":"MultiPoint"),Ce.push(De(vt.id,ir,di,vt.tags))}}return Ce.length?Ce:null}function st(dt,Ge,Je,je,$e){for(let wt=0;wt=Je&&Ie<=je&&$t(Ge,dt[wt],dt[wt+1],dt[wt+2])}}function lt(dt,Ge,Je,je,$e,wt,Ie){let xe=Gt(dt),Ce=$e===0?sr:wr,vt,nr,ir=dt.start;for(let fi=0;fiJe&&(nr=Ce(xe,Hi,Pn,pn,Vn,Je),Ie&&(xe.start=ir+vt*nr)):kn>je?ea=Je&&(nr=Ce(xe,Hi,Pn,pn,Vn,Je),ua=!0),ea>je&&kn<=je&&(nr=Ce(xe,Hi,Pn,pn,Vn,je),ua=!0),!wt&&ua&&(Ie&&(xe.end=ir+vt*nr),Ge.push(xe),xe=Gt(dt)),Ie&&(ir+=vt)}let pr=dt.length-3,oi=dt[pr],di=dt[pr+1],Jr=$e===0?oi:di;Jr>=Je&&Jr<=je&&$t(xe,oi,di,dt[pr+2]),pr=xe.length-3,wt&&pr>=3&&(xe[pr]!==xe[0]||xe[pr+1]!==xe[1])&&$t(xe,xe[0],xe[1],xe[2]),xe.length&&Ge.push(xe)}function Gt(dt){let Ge=[];return Ge.size=dt.size,Ge.start=dt.start,Ge.end=dt.end,Ge}function Nt(dt,Ge,Je,je,$e,wt){for(let Ie of dt)lt(Ie,Ge,Je,je,$e,wt,!1)}function $t(dt,Ge,Je,je){dt.push(Ge,Je,je)}function sr(dt,Ge,Je,je,$e,wt){let Ie=(wt-Ge)/(je-Ge);return $t(dt,wt,Je+($e-Je)*Ie,1),Ie}function wr(dt,Ge,Je,je,$e,wt){let Ie=(wt-Je)/($e-Je);return $t(dt,Ge+(je-Ge)*Ie,wt,1),Ie}function ur(dt,Ge){let Je=[];for(let je=0;je0&&Ge.size<($e?Ie:je))return void(Je.numPoints+=Ge.length/3);let xe=[];for(let Ce=0;CeIe)&&(Je.numSimplified++,xe.push(Ge[Ce],Ge[Ce+1])),Je.numPoints++;$e&&function(Ce,vt){let nr=0;for(let ir=0,pr=Ce.length,oi=pr-2;ir0===vt)for(let ir=0,pr=Ce.length;ir24)throw new Error("maxZoom should be in the 0-24 range");if(Je.promoteId&&Je.generateId)throw new Error("promoteId and generateId cannot be used together.");let $e=function(wt,Ie){let xe=[];if(wt.type==="FeatureCollection")for(let Ce=0;Ce1&&console.time("creation"),oi=this.tiles[pr]=Ut(Ge,Je,je,$e,vt),this.tileCoords.push({z:Je,x:je,y:$e}),nr)){nr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Je,je,$e,oi.numFeatures,oi.numPoints,oi.numSimplified),console.timeEnd("creation"));let ua=`z${Je}`;this.stats[ua]=(this.stats[ua]||0)+1,this.total++}if(oi.source=Ge,wt==null){if(Je===vt.indexMaxZoom||oi.numPoints<=vt.indexMaxPoints)continue}else{if(Je===vt.maxZoom||Je===wt)continue;if(wt!=null){let ua=wt-Je;if(je!==Ie>>ua||$e!==xe>>ua)continue}}if(oi.source=null,Ge.length===0)continue;nr>1&&console.time("clipping");let di=.5*vt.buffer/vt.extent,Jr=.5-di,fi=.5+di,Hi=1+di,Pn=null,wn=null,pn=null,Vn=null,kn=Wt(Ge,ir,je-di,je+fi,0,oi.minX,oi.maxX,vt),ea=Wt(Ge,ir,je+Jr,je+Hi,0,oi.minX,oi.maxX,vt);Ge=null,kn&&(Pn=Wt(kn,ir,$e-di,$e+fi,1,oi.minY,oi.maxY,vt),wn=Wt(kn,ir,$e+Jr,$e+Hi,1,oi.minY,oi.maxY,vt),kn=null),ea&&(pn=Wt(ea,ir,$e-di,$e+fi,1,oi.minY,oi.maxY,vt),Vn=Wt(ea,ir,$e+Jr,$e+Hi,1,oi.minY,oi.maxY,vt),ea=null),nr>1&&console.timeEnd("clipping"),Ce.push(Pn||[],Je+1,2*je,2*$e),Ce.push(wn||[],Je+1,2*je,2*$e+1),Ce.push(pn||[],Je+1,2*je+1,2*$e),Ce.push(Vn||[],Je+1,2*je+1,2*$e+1)}}getTile(Ge,Je,je){Ge=+Ge,Je=+Je,je=+je;let $e=this.options,{extent:wt,debug:Ie}=$e;if(Ge<0||Ge>24)return null;let xe=1<1&&console.log("drilling down to z%d-%d-%d",Ge,Je,je);let vt,nr=Ge,ir=Je,pr=je;for(;!vt&&nr>0;)nr--,ir>>=1,pr>>=1,vt=this.tiles[lr(nr,ir,pr)];return vt&&vt.source?(Ie>1&&(console.log("found parent tile z%d-%d-%d",nr,ir,pr),console.time("drilling down")),this.splitTile(vt.source,nr,ir,pr,Ge,Je,je),Ie>1&&console.timeEnd("drilling down"),this.tiles[Ce]?Et(this.tiles[Ce],wt):null):null}}function lr(dt,Ge,Je){return 32*((1<{ir.properties=oi;let di={};for(let Jr of pr)di[Jr]=Ce[Jr].evaluate(nr,ir);return di},Ie.reduce=(oi,di)=>{ir.properties=di;for(let Jr of pr)nr.accumulated=oi[Jr],oi[Jr]=vt[Jr].evaluate(nr,ir)},Ie}(Ge)).load((yield this._pendingData).features):($e=yield this._pendingData,new Yt($e,Ge.geojsonVtOptions)),this.loaded={};let wt={};if(je){let Ie=je.finish();Ie&&(wt.resourceTiming={},wt.resourceTiming[Ge.source]=JSON.parse(JSON.stringify(Ie)))}return wt}catch(wt){if(delete this._pendingRequest,i.bB(wt))return{abandoned:!0};throw wt}var $e})}getData(){return i._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(Ge){let Je=this.loaded;return Je&&Je[Ge.uid]?super.reloadTile(Ge):this.loadTile(Ge)}loadAndProcessGeoJSON(Ge,Je){return i._(this,void 0,void 0,function*(){let je=yield this.loadGeoJSON(Ge,Je);if(delete this._pendingRequest,typeof je!="object")throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`);if(d(je,!0),Ge.filter){let $e=i.bC(Ge.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if($e.result==="error")throw new Error($e.value.map(Ie=>`${Ie.key}: ${Ie.message}`).join(", "));je={type:"FeatureCollection",features:je.features.filter(Ie=>$e.value.evaluate({zoom:0},Ie))}}return je})}loadGeoJSON(Ge,Je){return i._(this,void 0,void 0,function*(){let{promoteId:je}=Ge;if(Ge.request){let $e=yield i.h(Ge.request,Je);return this._dataUpdateable=Rr($e.data,je)?ei($e.data,je):void 0,$e.data}if(typeof Ge.data=="string")try{let $e=JSON.parse(Ge.data);return this._dataUpdateable=Rr($e,je)?ei($e,je):void 0,$e}catch($e){throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`)}if(!Ge.dataDiff)throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${Ge.source}`);return function($e,wt,Ie){var xe,Ce,vt,nr;if(wt.removeAll&&$e.clear(),wt.remove)for(let ir of wt.remove)$e.delete(ir);if(wt.add)for(let ir of wt.add){let pr=Tr(ir,Ie);pr!=null&&$e.set(pr,ir)}if(wt.update)for(let ir of wt.update){let pr=$e.get(ir.id);if(pr==null)continue;let oi=!ir.removeAllProperties&&(((xe=ir.removeProperties)===null||xe===void 0?void 0:xe.length)>0||((Ce=ir.addOrUpdateProperties)===null||Ce===void 0?void 0:Ce.length)>0);if((ir.newGeometry||ir.removeAllProperties||oi)&&(pr=Object.assign({},pr),$e.set(ir.id,pr),oi&&(pr.properties=Object.assign({},pr.properties))),ir.newGeometry&&(pr.geometry=ir.newGeometry),ir.removeAllProperties)pr.properties={};else if(((vt=ir.removeProperties)===null||vt===void 0?void 0:vt.length)>0)for(let di of ir.removeProperties)Object.prototype.hasOwnProperty.call(pr.properties,di)&&delete pr.properties[di];if(((nr=ir.addOrUpdateProperties)===null||nr===void 0?void 0:nr.length)>0)for(let{key:di,value:Jr}of ir.addOrUpdateProperties)pr.properties[di]=Jr}}(this._dataUpdateable,Ge.dataDiff,je),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(Ge){return i._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(Ge){return this._geoJSONIndex.getClusterExpansionZoom(Ge.clusterId)}getClusterChildren(Ge){return this._geoJSONIndex.getChildren(Ge.clusterId)}getClusterLeaves(Ge){return this._geoJSONIndex.getLeaves(Ge.clusterId,Ge.limit,Ge.offset)}}class Ur{constructor(Ge){this.self=Ge,this.actor=new i.F(Ge),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Je,je)=>{if(this.externalWorkerSourceTypes[Je])throw new Error(`Worker source with name "${Je}" already registered.`);this.externalWorkerSourceTypes[Je]=je},this.self.addProtocol=i.bi,this.self.removeProtocol=i.bj,this.self.registerRTLTextPlugin=Je=>{if(i.bD.isParsed())throw new Error("RTL text plugin already registered.");i.bD.setMethods(Je)},this.actor.registerMessageHandler("LDT",(Je,je)=>this._getDEMWorkerSource(Je,je.source).loadTile(je)),this.actor.registerMessageHandler("RDT",(Je,je)=>i._(this,void 0,void 0,function*(){this._getDEMWorkerSource(Je,je.source).removeTile(je)})),this.actor.registerMessageHandler("GCEZ",(Je,je)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Je,je.type,je.source).getClusterExpansionZoom(je)})),this.actor.registerMessageHandler("GCC",(Je,je)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Je,je.type,je.source).getClusterChildren(je)})),this.actor.registerMessageHandler("GCL",(Je,je)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Je,je.type,je.source).getClusterLeaves(je)})),this.actor.registerMessageHandler("LD",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).loadData(je)),this.actor.registerMessageHandler("GD",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).getData()),this.actor.registerMessageHandler("LT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).loadTile(je)),this.actor.registerMessageHandler("RT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).reloadTile(je)),this.actor.registerMessageHandler("AT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).abortTile(je)),this.actor.registerMessageHandler("RMT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).removeTile(je)),this.actor.registerMessageHandler("RS",(Je,je)=>i._(this,void 0,void 0,function*(){if(!this.workerSources[Je]||!this.workerSources[Je][je.type]||!this.workerSources[Je][je.type][je.source])return;let $e=this.workerSources[Je][je.type][je.source];delete this.workerSources[Je][je.type][je.source],$e.removeSource!==void 0&&$e.removeSource(je)})),this.actor.registerMessageHandler("RM",Je=>i._(this,void 0,void 0,function*(){delete this.layerIndexes[Je],delete this.availableImages[Je],delete this.workerSources[Je],delete this.demWorkerSources[Je]})),this.actor.registerMessageHandler("SR",(Je,je)=>i._(this,void 0,void 0,function*(){this.referrer=je})),this.actor.registerMessageHandler("SRPS",(Je,je)=>this._syncRTLPluginState(Je,je)),this.actor.registerMessageHandler("IS",(Je,je)=>i._(this,void 0,void 0,function*(){this.self.importScripts(je)})),this.actor.registerMessageHandler("SI",(Je,je)=>this._setImages(Je,je)),this.actor.registerMessageHandler("UL",(Je,je)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Je).update(je.layers,je.removedIds)})),this.actor.registerMessageHandler("SL",(Je,je)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Je).replace(je)}))}_setImages(Ge,Je){return i._(this,void 0,void 0,function*(){this.availableImages[Ge]=Je;for(let je in this.workerSources[Ge]){let $e=this.workerSources[Ge][je];for(let wt in $e)$e[wt].availableImages=Je}})}_syncRTLPluginState(Ge,Je){return i._(this,void 0,void 0,function*(){if(i.bD.isParsed())return i.bD.getState();if(Je.pluginStatus!=="loading")return i.bD.setState(Je),Je;let je=Je.pluginURL;if(this.self.importScripts(je),i.bD.isParsed()){let $e={pluginStatus:"loaded",pluginURL:je};return i.bD.setState($e),$e}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${je}`)})}_getAvailableImages(Ge){let Je=this.availableImages[Ge];return Je||(Je=[]),Je}_getLayerIndex(Ge){let Je=this.layerIndexes[Ge];return Je||(Je=this.layerIndexes[Ge]=new a),Je}_getWorkerSource(Ge,Je,je){if(this.workerSources[Ge]||(this.workerSources[Ge]={}),this.workerSources[Ge][Je]||(this.workerSources[Ge][Je]={}),!this.workerSources[Ge][Je][je]){let $e={sendAsync:(wt,Ie)=>(wt.targetMapId=Ge,this.actor.sendAsync(wt,Ie))};switch(Je){case"vector":this.workerSources[Ge][Je][je]=new u($e,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;case"geojson":this.workerSources[Ge][Je][je]=new Wr($e,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;default:this.workerSources[Ge][Je][je]=new this.externalWorkerSourceTypes[Je]($e,this._getLayerIndex(Ge),this._getAvailableImages(Ge))}}return this.workerSources[Ge][Je][je]}_getDEMWorkerSource(Ge,Je){return this.demWorkerSources[Ge]||(this.demWorkerSources[Ge]={}),this.demWorkerSources[Ge][Je]||(this.demWorkerSources[Ge][Je]=new c),this.demWorkerSources[Ge][Je]}}return i.i(self)&&(self.worker=new Ur(self)),Ur}),r("index",["exports","./shared"],function(i,a){"use strict";var o="4.7.1";let s,l,u={now:typeof performance!="undefined"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:ue=>new Promise((w,B)=>{let Q=requestAnimationFrame(w);ue.signal.addEventListener("abort",()=>{cancelAnimationFrame(Q),B(a.c())})}),getImageData(ue,w=0){return this.getImageCanvasContext(ue).getImageData(-w,-w,ue.width+2*w,ue.height+2*w)},getImageCanvasContext(ue){let w=window.document.createElement("canvas"),B=w.getContext("2d",{willReadFrequently:!0});if(!B)throw new Error("failed to create canvas 2d context");return w.width=ue.width,w.height=ue.height,B.drawImage(ue,0,0,ue.width,ue.height),B},resolveURL:ue=>(s||(s=document.createElement("a")),s.href=ue,s.href),hardwareConcurrency:typeof navigator!="undefined"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(l==null&&(l=matchMedia("(prefers-reduced-motion: reduce)")),l.matches)}};class c{static testProp(w){if(!c.docStyle)return w[0];for(let B=0;B{window.removeEventListener("click",c.suppressClickInternal,!0)},0)}static getScale(w){let B=w.getBoundingClientRect();return{x:B.width/w.offsetWidth||1,y:B.height/w.offsetHeight||1,boundingClientRect:B}}static getPoint(w,B,Q){let ee=B.boundingClientRect;return new a.P((Q.clientX-ee.left)/B.x-w.clientLeft,(Q.clientY-ee.top)/B.y-w.clientTop)}static mousePos(w,B){let Q=c.getScale(w);return c.getPoint(w,Q,B)}static touchPos(w,B){let Q=[],ee=c.getScale(w);for(let le=0;le{h&&b(h),h=null,x=!0},d.onerror=()=>{v=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(ue){let w,B,Q,ee;ue.resetRequestQueue=()=>{w=[],B=0,Q=0,ee={}},ue.addThrottleControl=ot=>{let Tt=Q++;return ee[Tt]=ot,Tt},ue.removeThrottleControl=ot=>{delete ee[ot],qe()},ue.getImage=(ot,Tt,Kt=!0)=>new Promise((Jt,xr)=>{f.supported&&(ot.headers||(ot.headers={}),ot.headers.accept="image/webp,*/*"),a.e(ot,{type:"image"}),w.push({abortController:Tt,requestParameters:ot,supportImageRefresh:Kt,state:"queued",onError:Pr=>{xr(Pr)},onSuccess:Pr=>{Jt(Pr)}}),qe()});let le=ot=>a._(this,void 0,void 0,function*(){ot.state="running";let{requestParameters:Tt,supportImageRefresh:Kt,onError:Jt,onSuccess:xr,abortController:Pr}=ot,ve=Kt===!1&&!a.i(self)&&!a.g(Tt.url)&&(!Tt.headers||Object.keys(Tt.headers).reduce((Be,tt)=>Be&&tt==="accept",!0));B++;let be=ve?Xe(Tt,Pr):a.m(Tt,Pr);try{let Be=yield be;delete ot.abortController,ot.state="completed",Be.data instanceof HTMLImageElement||a.b(Be.data)?xr(Be):Be.data&&xr({data:yield(Re=Be.data,typeof createImageBitmap=="function"?a.d(Re):a.f(Re)),cacheControl:Be.cacheControl,expires:Be.expires})}catch(Be){delete ot.abortController,Jt(Be)}finally{B--,qe()}var Re}),qe=()=>{let ot=(()=>{for(let Tt of Object.keys(ee))if(ee[Tt]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Tt=B;Tt0;Tt++){let Kt=w.shift();Kt.abortController.signal.aborted?Tt--:le(Kt)}},Xe=(ot,Tt)=>new Promise((Kt,Jt)=>{let xr=new Image,Pr=ot.url,ve=ot.credentials;ve&&ve==="include"?xr.crossOrigin="use-credentials":(ve&&ve==="same-origin"||!a.s(Pr))&&(xr.crossOrigin="anonymous"),Tt.signal.addEventListener("abort",()=>{xr.src="",Jt(a.c())}),xr.fetchPriority="high",xr.onload=()=>{xr.onerror=xr.onload=null,Kt({data:xr})},xr.onerror=()=>{xr.onerror=xr.onload=null,Tt.signal.aborted||Jt(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},xr.src=Pr})}(p||(p={})),p.resetRequestQueue();class C{constructor(w){this._transformRequestFn=w}transformRequest(w,B){return this._transformRequestFn&&this._transformRequestFn(w,B)||{url:w}}setTransformRequest(w){this._transformRequestFn=w}}function E(ue){var w=new a.A(3);return w[0]=ue[0],w[1]=ue[1],w[2]=ue[2],w}var A,L=function(ue,w,B){return ue[0]=w[0]-B[0],ue[1]=w[1]-B[1],ue[2]=w[2]-B[2],ue};A=new a.A(3),a.A!=Float32Array&&(A[0]=0,A[1]=0,A[2]=0);var _=function(ue){var w=ue[0],B=ue[1];return w*w+B*B};function k(ue){let w=[];if(typeof ue=="string")w.push({id:"default",url:ue});else if(ue&&ue.length>0){let B=[];for(let{id:Q,url:ee}of ue){let le=`${Q}${ee}`;B.indexOf(le)===-1&&(B.push(le),w.push({id:Q,url:ee}))}}return w}function M(ue,w,B){let Q=ue.split("?");return Q[0]+=`${w}${B}`,Q.join("?")}(function(){var ue=new a.A(2);a.A!=Float32Array&&(ue[0]=0,ue[1]=0)})();class g{constructor(w,B,Q,ee){this.context=w,this.format=Q,this.texture=w.gl.createTexture(),this.update(B,ee)}update(w,B,Q){let{width:ee,height:le}=w,qe=!(this.size&&this.size[0]===ee&&this.size[1]===le||Q),{context:Xe}=this,{gl:ot}=Xe;if(this.useMipmap=!!(B&&B.useMipmap),ot.bindTexture(ot.TEXTURE_2D,this.texture),Xe.pixelStoreUnpackFlipY.set(!1),Xe.pixelStoreUnpack.set(1),Xe.pixelStoreUnpackPremultiplyAlpha.set(this.format===ot.RGBA&&(!B||B.premultiply!==!1)),qe)this.size=[ee,le],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?ot.texImage2D(ot.TEXTURE_2D,0,this.format,this.format,ot.UNSIGNED_BYTE,w):ot.texImage2D(ot.TEXTURE_2D,0,this.format,ee,le,0,this.format,ot.UNSIGNED_BYTE,w.data);else{let{x:Tt,y:Kt}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?ot.texSubImage2D(ot.TEXTURE_2D,0,Tt,Kt,ot.RGBA,ot.UNSIGNED_BYTE,w):ot.texSubImage2D(ot.TEXTURE_2D,0,Tt,Kt,ee,le,ot.RGBA,ot.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&ot.generateMipmap(ot.TEXTURE_2D)}bind(w,B,Q){let{context:ee}=this,{gl:le}=ee;le.bindTexture(le.TEXTURE_2D,this.texture),Q!==le.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Q=le.LINEAR),w!==this.filter&&(le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MAG_FILTER,w),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MIN_FILTER,Q||w),this.filter=w),B!==this.wrap&&(le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_S,B),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_T,B),this.wrap=B)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:w}=this.context;w.deleteTexture(this.texture),this.texture=null}}function P(ue){let{userImage:w}=ue;return!!(w&&w.render&&w.render())&&(ue.data.replace(new Uint8Array(w.data.buffer)),!0)}class T extends a.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(w){if(this.loaded!==w&&(this.loaded=w,w)){for(let{ids:B,promiseResolve:Q}of this.requestors)Q(this._getImagesForIds(B));this.requestors=[]}}getImage(w){let B=this.images[w];if(B&&!B.data&&B.spriteData){let Q=B.spriteData;B.data=new a.R({width:Q.width,height:Q.height},Q.context.getImageData(Q.x,Q.y,Q.width,Q.height).data),B.spriteData=null}return B}addImage(w,B){if(this.images[w])throw new Error(`Image id ${w} already exist, use updateImage instead`);this._validate(w,B)&&(this.images[w]=B)}_validate(w,B){let Q=!0,ee=B.data||B.spriteData;return this._validateStretch(B.stretchX,ee&&ee.width)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchX" value`))),Q=!1),this._validateStretch(B.stretchY,ee&&ee.height)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchY" value`))),Q=!1),this._validateContent(B.content,B)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "content" value`))),Q=!1),Q}_validateStretch(w,B){if(!w)return!0;let Q=0;for(let ee of w){if(ee[0]{let ee=!0;if(!this.isLoaded())for(let le of w)this.images[le]||(ee=!1);this.isLoaded()||ee?B(this._getImagesForIds(w)):this.requestors.push({ids:w,promiseResolve:B})})}_getImagesForIds(w){let B={};for(let Q of w){let ee=this.getImage(Q);ee||(this.fire(new a.k("styleimagemissing",{id:Q})),ee=this.getImage(Q)),ee?B[Q]={data:ee.data.clone(),pixelRatio:ee.pixelRatio,sdf:ee.sdf,version:ee.version,stretchX:ee.stretchX,stretchY:ee.stretchY,content:ee.content,textFitWidth:ee.textFitWidth,textFitHeight:ee.textFitHeight,hasRenderCallback:!!(ee.userImage&&ee.userImage.render)}:a.w(`Image "${Q}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return B}getPixelSize(){let{width:w,height:B}=this.atlasImage;return{width:w,height:B}}getPattern(w){let B=this.patterns[w],Q=this.getImage(w);if(!Q)return null;if(B&&B.position.version===Q.version)return B.position;if(B)B.position.version=Q.version;else{let ee={w:Q.data.width+2,h:Q.data.height+2,x:0,y:0},le=new a.I(ee,Q);this.patterns[w]={bin:ee,position:le}}return this._updatePatternAtlas(),this.patterns[w].position}bind(w){let B=w.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new g(w,this.atlasImage,B.RGBA),this.atlasTexture.bind(B.LINEAR,B.CLAMP_TO_EDGE)}_updatePatternAtlas(){let w=[];for(let le in this.patterns)w.push(this.patterns[le].bin);let{w:B,h:Q}=a.p(w),ee=this.atlasImage;ee.resize({width:B||1,height:Q||1});for(let le in this.patterns){let{bin:qe}=this.patterns[le],Xe=qe.x+1,ot=qe.y+1,Tt=this.getImage(le).data,Kt=Tt.width,Jt=Tt.height;a.R.copy(Tt,ee,{x:0,y:0},{x:Xe,y:ot},{width:Kt,height:Jt}),a.R.copy(Tt,ee,{x:0,y:Jt-1},{x:Xe,y:ot-1},{width:Kt,height:1}),a.R.copy(Tt,ee,{x:0,y:0},{x:Xe,y:ot+Jt},{width:Kt,height:1}),a.R.copy(Tt,ee,{x:Kt-1,y:0},{x:Xe-1,y:ot},{width:1,height:Jt}),a.R.copy(Tt,ee,{x:0,y:0},{x:Xe+Kt,y:ot},{width:1,height:Jt})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(w){for(let B of w){if(this.callbackDispatchedThisFrame[B])continue;this.callbackDispatchedThisFrame[B]=!0;let Q=this.getImage(B);Q||a.w(`Image with ID: "${B}" was not found`),P(Q)&&this.updateImage(B,Q)}}}let z=1e20;function O(ue,w,B,Q,ee,le,qe,Xe,ot){for(let Tt=w;Tt-1);ot++,le[ot]=Xe,qe[ot]=Tt,qe[ot+1]=z}for(let Xe=0,ot=0;Xe65535)throw new Error("glyphs > 65535 not supported");if(Q.ranges[le])return{stack:w,id:B,glyph:ee};if(!this.url)throw new Error("glyphsUrl is not set");if(!Q.requests[le]){let Xe=G.loadGlyphRange(w,le,this.url,this.requestManager);Q.requests[le]=Xe}let qe=yield Q.requests[le];for(let Xe in qe)this._doesCharSupportLocalGlyph(+Xe)||(Q.glyphs[+Xe]=qe[+Xe]);return Q.ranges[le]=!0,{stack:w,id:B,glyph:qe[B]||null}})}_doesCharSupportLocalGlyph(w){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(w))}_tinySDF(w,B,Q){let ee=this.localIdeographFontFamily;if(!ee||!this._doesCharSupportLocalGlyph(Q))return;let le=w.tinySDF;if(!le){let Xe="400";/bold/i.test(B)?Xe="900":/medium/i.test(B)?Xe="500":/light/i.test(B)&&(Xe="200"),le=w.tinySDF=new G.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:ee,fontWeight:Xe})}let qe=le.draw(String.fromCharCode(Q));return{id:Q,bitmap:new a.o({width:qe.width||60,height:qe.height||60},qe.data),metrics:{width:qe.glyphWidth/2||24,height:qe.glyphHeight/2||24,left:qe.glyphLeft/2+.5||0,top:qe.glyphTop/2-27.5||-8,advance:qe.glyphAdvance/2||24,isDoubleResolution:!0}}}}G.loadGlyphRange=function(ue,w,B,Q){return a._(this,void 0,void 0,function*(){let ee=256*w,le=ee+255,qe=Q.transformRequest(B.replace("{fontstack}",ue).replace("{range}",`${ee}-${le}`),"Glyphs"),Xe=yield a.l(qe,new AbortController);if(!Xe||!Xe.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${le}`);let ot={};for(let Tt of a.n(Xe.data))ot[Tt.id]=Tt;return ot})},G.TinySDF=class{constructor({fontSize:ue=24,buffer:w=3,radius:B=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:le="normal",fontStyle:qe="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=B;let Xe=this.size=ue+4*w,ot=this._createCanvas(Xe),Tt=this.ctx=ot.getContext("2d",{willReadFrequently:!0});Tt.font=`${qe} ${le} ${ue}px ${ee}`,Tt.textBaseline="alphabetic",Tt.textAlign="left",Tt.fillStyle="black",this.gridOuter=new Float64Array(Xe*Xe),this.gridInner=new Float64Array(Xe*Xe),this.f=new Float64Array(Xe),this.z=new Float64Array(Xe+1),this.v=new Uint16Array(Xe)}_createCanvas(ue){let w=document.createElement("canvas");return w.width=w.height=ue,w}draw(ue){let{width:w,actualBoundingBoxAscent:B,actualBoundingBoxDescent:Q,actualBoundingBoxLeft:ee,actualBoundingBoxRight:le}=this.ctx.measureText(ue),qe=Math.ceil(B),Xe=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(le-ee))),ot=Math.min(this.size-this.buffer,qe+Math.ceil(Q)),Tt=Xe+2*this.buffer,Kt=ot+2*this.buffer,Jt=Math.max(Tt*Kt,0),xr=new Uint8ClampedArray(Jt),Pr={data:xr,width:Tt,height:Kt,glyphWidth:Xe,glyphHeight:ot,glyphTop:qe,glyphLeft:0,glyphAdvance:w};if(Xe===0||ot===0)return Pr;let{ctx:ve,buffer:be,gridInner:Re,gridOuter:Be}=this;ve.clearRect(be,be,Xe,ot),ve.fillText(ue,be,be+qe);let tt=ve.getImageData(be,be,Xe,ot);Be.fill(z,0,Jt),Re.fill(0,0,Jt);for(let We=0;We0?rr*rr:0,Re[Ht]=rr<0?rr*rr:0}}O(Be,0,0,Tt,Kt,Tt,this.f,this.v,this.z),O(Re,be,be,Xe,ot,Tt,this.f,this.v,this.z);for(let We=0;We1&&(ot=w[++Xe]);let Kt=Math.abs(Tt-ot.left),Jt=Math.abs(Tt-ot.right),xr=Math.min(Kt,Jt),Pr,ve=le/Q*(ee+1);if(ot.isDash){let be=ee-Math.abs(ve);Pr=Math.sqrt(xr*xr+be*be)}else Pr=ee-Math.sqrt(xr*xr+ve*ve);this.data[qe+Tt]=Math.max(0,Math.min(255,Pr+128))}}}addRegularDash(w){for(let Xe=w.length-1;Xe>=0;--Xe){let ot=w[Xe],Tt=w[Xe+1];ot.zeroLength?w.splice(Xe,1):Tt&&Tt.isDash===ot.isDash&&(Tt.left=ot.left,w.splice(Xe,1))}let B=w[0],Q=w[w.length-1];B.isDash===Q.isDash&&(B.left=Q.left-this.width,Q.right=B.right+this.width);let ee=this.width*this.nextRow,le=0,qe=w[le];for(let Xe=0;Xe1&&(qe=w[++le]);let ot=Math.abs(Xe-qe.left),Tt=Math.abs(Xe-qe.right),Kt=Math.min(ot,Tt);this.data[ee+Xe]=Math.max(0,Math.min(255,(qe.isDash?Kt:-Kt)+128))}}addDash(w,B){let Q=B?7:0,ee=2*Q+1;if(this.nextRow+ee>this.height)return a.w("LineAtlas out of space"),null;let le=0;for(let Xe=0;Xe{B.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[_e]}numActive(){return Object.keys(this.active).length}}let ke=Math.floor(u.hardwareConcurrency/2),me,ie;function Se(){return me||(me=new Me),me}Me.workerCount=a.C(globalThis)?Math.max(Math.min(ke,3),1):1;class Le{constructor(w,B){this.workerPool=w,this.actors=[],this.currentActor=0,this.id=B;let Q=this.workerPool.acquire(B);for(let ee=0;ee{B.remove()}),this.actors=[],w&&this.workerPool.release(this.id)}registerMessageHandler(w,B){for(let Q of this.actors)Q.registerMessageHandler(w,B)}}function Ae(){return ie||(ie=new Le(Se(),a.G),ie.registerMessageHandler("GR",(ue,w,B)=>a.m(w,B))),ie}function De(ue,w){let B=a.H();return a.J(B,B,[1,1,0]),a.K(B,B,[.5*ue.width,.5*ue.height,1]),a.L(B,B,ue.calculatePosMatrix(w.toUnwrapped()))}function Pe(ue,w,B,Q,ee,le){let qe=function(Jt,xr,Pr){if(Jt)for(let ve of Jt){let be=xr[ve];if(be&&be.source===Pr&&be.type==="fill-extrusion")return!0}else for(let ve in xr){let be=xr[ve];if(be.source===Pr&&be.type==="fill-extrusion")return!0}return!1}(ee&&ee.layers,w,ue.id),Xe=le.maxPitchScaleFactor(),ot=ue.tilesIn(Q,Xe,qe);ot.sort(ge);let Tt=[];for(let Jt of ot)Tt.push({wrappedTileID:Jt.tileID.wrapped().key,queryResults:Jt.tile.queryRenderedFeatures(w,B,ue._state,Jt.queryGeometry,Jt.cameraQueryGeometry,Jt.scale,ee,le,Xe,De(ue.transform,Jt.tileID))});let Kt=function(Jt){let xr={},Pr={};for(let ve of Jt){let be=ve.queryResults,Re=ve.wrappedTileID,Be=Pr[Re]=Pr[Re]||{};for(let tt in be){let We=be[tt],it=Be[tt]=Be[tt]||{},Dt=xr[tt]=xr[tt]||[];for(let Ht of We)it[Ht.featureIndex]||(it[Ht.featureIndex]=!0,Dt.push(Ht))}}return xr}(Tt);for(let Jt in Kt)Kt[Jt].forEach(xr=>{let Pr=xr.feature,ve=ue.getFeatureState(Pr.layer["source-layer"],Pr.id);Pr.source=Pr.layer.source,Pr.layer["source-layer"]&&(Pr.sourceLayer=Pr.layer["source-layer"]),Pr.state=ve});return Kt}function ge(ue,w){let B=ue.tileID,Q=w.tileID;return B.overscaledZ-Q.overscaledZ||B.canonical.y-Q.canonical.y||B.wrap-Q.wrap||B.canonical.x-Q.canonical.x}function Fe(ue,w,B){return a._(this,void 0,void 0,function*(){let Q=ue;if(ue.url?Q=(yield a.h(w.transformRequest(ue.url,"Source"),B)).data:yield u.frameAsync(B),!Q)return null;let ee=a.M(a.e(Q,ue),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Q&&Q.vector_layers&&(ee.vectorLayerIds=Q.vector_layers.map(le=>le.id)),ee})}class ce{constructor(w,B){w&&(B?this.setSouthWest(w).setNorthEast(B):Array.isArray(w)&&(w.length===4?this.setSouthWest([w[0],w[1]]).setNorthEast([w[2],w[3]]):this.setSouthWest(w[0]).setNorthEast(w[1])))}setNorthEast(w){return this._ne=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}setSouthWest(w){return this._sw=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}extend(w){let B=this._sw,Q=this._ne,ee,le;if(w instanceof a.N)ee=w,le=w;else{if(!(w instanceof ce))return Array.isArray(w)?w.length===4||w.every(Array.isArray)?this.extend(ce.convert(w)):this.extend(a.N.convert(w)):w&&("lng"in w||"lon"in w)&&"lat"in w?this.extend(a.N.convert(w)):this;if(ee=w._sw,le=w._ne,!ee||!le)return this}return B||Q?(B.lng=Math.min(ee.lng,B.lng),B.lat=Math.min(ee.lat,B.lat),Q.lng=Math.max(le.lng,Q.lng),Q.lat=Math.max(le.lat,Q.lat)):(this._sw=new a.N(ee.lng,ee.lat),this._ne=new a.N(le.lng,le.lat)),this}getCenter(){return new a.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new a.N(this.getWest(),this.getNorth())}getSouthEast(){return new a.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(w){let{lng:B,lat:Q}=a.N.convert(w),ee=this._sw.lng<=B&&B<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ee=this._sw.lng>=B&&B>=this._ne.lng),this._sw.lat<=Q&&Q<=this._ne.lat&&ee}static convert(w){return w instanceof ce?w:w&&new ce(w)}static fromLngLat(w,B=0){let Q=360*B/40075017,ee=Q/Math.cos(Math.PI/180*w.lat);return new ce(new a.N(w.lng-ee,w.lat-Q),new a.N(w.lng+ee,w.lat+Q))}adjustAntiMeridian(){let w=new a.N(this._sw.lng,this._sw.lat),B=new a.N(this._ne.lng,this._ne.lat);return new ce(w,w.lng>B.lng?new a.N(B.lng+360,B.lat):B)}}class Ze{constructor(w,B,Q){this.bounds=ce.convert(this.validateBounds(w)),this.minzoom=B||0,this.maxzoom=Q||24}validateBounds(w){return Array.isArray(w)&&w.length===4?[Math.max(-180,w[0]),Math.max(-90,w[1]),Math.min(180,w[2]),Math.min(90,w[3])]:[-180,-90,180,90]}contains(w){let B=Math.pow(2,w.z),Q=Math.floor(a.O(this.bounds.getWest())*B),ee=Math.floor(a.Q(this.bounds.getNorth())*B),le=Math.ceil(a.O(this.bounds.getEast())*B),qe=Math.ceil(a.Q(this.bounds.getSouth())*B);return w.x>=Q&&w.x=ee&&w.y{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return a.e({},this._options)}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q={request:this.map._requestManager.transformRequest(B,"Tile"),uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,tileSize:this.tileSize*w.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};Q.request.collectResourceTiming=this._collectResourceTiming;let ee="RT";if(w.actor&&w.state!=="expired"){if(w.state==="loading")return new Promise((le,qe)=>{w.reloadPromise={resolve:le,reject:qe}})}else w.actor=this.dispatcher.getActor(),ee="LT";w.abortController=new AbortController;try{let le=yield w.actor.sendAsync({type:ee,data:Q},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,le)}catch(le){if(delete w.abortController,w.aborted)return;if(le&&le.status!==404)throw le;this._afterTileLoadWorkerResponse(w,null)}})}_afterTileLoadWorkerResponse(w,B){if(B&&B.resourceTiming&&(w.resourceTiming=B.resourceTiming),B&&this.map._refreshExpiredTiles&&w.setExpiryData(B),w.loadVectorData(B,this.map.painter),w.reloadPromise){let Q=w.reloadPromise;w.reloadPromise=null,this.loadTile(w).then(Q.resolve).catch(Q.reject)}}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.actor&&(yield w.actor.sendAsync({type:"AT",data:{uid:w.uid,type:this.type,source:this.id}}))})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),w.actor&&(yield w.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class pt extends a.E{constructor(w,B,Q,ee){super(),this.id=w,this.dispatcher=Q,this.setEventedParent(ee),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.e({type:"raster"},B),a.e(this,a.M(B,["url","scheme","tileSize"]))}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let w=yield Fe(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,w&&(a.e(this,w),w.bounds&&(this.tileBounds=new Ze(w.bounds,this.minzoom,this.maxzoom)),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})))}catch(w){this._tileJSONRequest=null,this.fire(new a.j(w))}})}loaded(){return this._loaded}onAdd(w){this.map=w,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(w){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),w(),this.load()}setTiles(w){return this.setSourceProperty(()=>{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}serialize(){return a.e({},this._options)}hasTile(w){return!this.tileBounds||this.tileBounds.contains(w.canonical)}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);w.abortController=new AbortController;try{let Q=yield p.getImage(this.map._requestManager.transformRequest(B,"Tile"),w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(Q&&Q.data){this.map._refreshExpiredTiles&&Q.cacheControl&&Q.expires&&w.setExpiryData({cacheControl:Q.cacheControl,expires:Q.expires});let ee=this.map.painter.context,le=ee.gl,qe=Q.data;w.texture=this.map.painter.getTileTexture(qe.width),w.texture?w.texture.update(qe,{useMipmap:!0}):(w.texture=new g(ee,qe,le.RGBA,{useMipmap:!0}),w.texture.bind(le.LINEAR,le.CLAMP_TO_EDGE,le.LINEAR_MIPMAP_NEAREST)),w.state="loaded"}}catch(Q){if(delete w.abortController,w.aborted)w.state="unloaded";else if(Q)throw w.state="errored",Q}})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController)})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.texture&&this.map.painter.saveTileTexture(w.texture)})}hasTransition(){return!1}}class Wt extends pt{constructor(w,B,Q,ee){super(w,B,Q,ee),this.type="raster-dem",this.maxzoom=22,this._options=a.e({type:"raster-dem"},B),this.encoding=B.encoding||"mapbox",this.redFactor=B.redFactor,this.greenFactor=B.greenFactor,this.blueFactor=B.blueFactor,this.baseShift=B.baseShift}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q=this.map._requestManager.transformRequest(B,"Tile");w.neighboringTiles=this._getNeighboringTiles(w.tileID),w.abortController=new AbortController;try{let ee=yield p.getImage(Q,w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(ee&&ee.data){let le=ee.data;this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let qe=a.b(le)&&a.U()?le:yield this.readImageNow(le),Xe={type:this.type,uid:w.uid,source:this.id,rawImageData:qe,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!w.actor||w.state==="expired"){w.actor=this.dispatcher.getActor();let ot=yield w.actor.sendAsync({type:"LDT",data:Xe});w.dem=ot,w.needsHillshadePrepare=!0,w.needsTerrainPrepare=!0,w.state="loaded"}}}catch(ee){if(delete w.abortController,w.aborted)w.state="unloaded";else if(ee)throw w.state="errored",ee}})}readImageNow(w){return a._(this,void 0,void 0,function*(){if(typeof VideoFrame!="undefined"&&a.V()){let B=w.width+2,Q=w.height+2;try{return new a.R({width:B,height:Q},yield a.W(w,-1,-1,B,Q))}catch(ee){}}return u.getImageData(w,1)})}_getNeighboringTiles(w){let B=w.canonical,Q=Math.pow(2,B.z),ee=(B.x-1+Q)%Q,le=B.x===0?w.wrap-1:w.wrap,qe=(B.x+1+Q)%Q,Xe=B.x+1===Q?w.wrap+1:w.wrap,ot={};return ot[new a.S(w.overscaledZ,le,B.z,ee,B.y).key]={backfilled:!1},ot[new a.S(w.overscaledZ,Xe,B.z,qe,B.y).key]={backfilled:!1},B.y>0&&(ot[new a.S(w.overscaledZ,le,B.z,ee,B.y-1).key]={backfilled:!1},ot[new a.S(w.overscaledZ,w.wrap,B.z,B.x,B.y-1).key]={backfilled:!1},ot[new a.S(w.overscaledZ,Xe,B.z,qe,B.y-1).key]={backfilled:!1}),B.y+10&&a.e(le,{resourceTiming:ee}),this.fire(new a.k("data",Object.assign(Object.assign({},le),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},le),{sourceDataType:"content"})))}catch(Q){if(this._pendingLoads--,this._removed)return void this.fire(new a.k("dataabort",{dataType:"source"}));this.fire(new a.j(Q))}})}loaded(){return this._pendingLoads===0}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.actor?"RT":"LT";w.actor=this.actor;let Q={type:this.type,uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};w.abortController=new AbortController;let ee=yield this.actor.sendAsync({type:B,data:Q},w.abortController);delete w.abortController,w.unloadVectorData(),w.aborted||w.loadVectorData(ee,this.map.painter,B==="RT")})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.aborted=!0})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return a.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var lt=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class Gt extends a.E{constructor(w,B,Q,ee){super(),this.id=w,this.dispatcher=Q,this.coordinates=B.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ee),this.options=B}load(w){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let B=yield p.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,B&&B.data&&(this.image=B.data,w&&(this.coordinates=w),this._finishLoading())}catch(B){this._request=null,this._loaded=!0,this.fire(new a.j(B))}})}loaded(){return this._loaded}updateImage(w){return w.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=w.url,this.load(w.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(w){this.map=w,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(w){this.coordinates=w;let B=w.map(a.Z.fromLngLat);this.tileID=function(ee){let le=1/0,qe=1/0,Xe=-1/0,ot=-1/0;for(let xr of ee)le=Math.min(le,xr.x),qe=Math.min(qe,xr.y),Xe=Math.max(Xe,xr.x),ot=Math.max(ot,xr.y);let Tt=Math.max(Xe-le,ot-qe),Kt=Math.max(0,Math.floor(-Math.log(Tt)/Math.LN2)),Jt=Math.pow(2,Kt);return new a.a1(Kt,Math.floor((le+Xe)/2*Jt),Math.floor((qe+ot)/2*Jt))}(B),this.minzoom=this.maxzoom=this.tileID.z;let Q=B.map(ee=>this.tileID.getTilePoint(ee)._round());return this._boundsArray=new a.$,this._boundsArray.emplaceBack(Q[0].x,Q[0].y,0,0),this._boundsArray.emplaceBack(Q[1].x,Q[1].y,a.X,0),this._boundsArray.emplaceBack(Q[3].x,Q[3].y,0,a.X),this._boundsArray.emplaceBack(Q[2].x,Q[2].y,a.X,a.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new g(w,this.image,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let le=this.tiles[ee];le.state!=="loaded"&&(le.state="loaded",le.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(w){return a._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(w.tileID.canonical)?(this.tiles[String(w.tileID.wrap)]=w,w.buckets={}):w.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class Nt extends Gt{constructor(w,B,Q,ee){super(w,B,Q,ee),this.roundZoom=!0,this.type="video",this.options=B}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1;let w=this.options;this.urls=[];for(let B of w.urls)this.urls.push(this.map._requestManager.transformRequest(B,"Source").url);try{let B=yield a.a3(this.urls);if(this._loaded=!0,!B)return;this.video=B,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(B){this.fire(new a.j(B))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(w){if(this.video){let B=this.video.seekable;wB.end(0)?this.fire(new a.j(new a.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${B.start(0)} and ${B.end(0)}-second mark.`))):this.video.currentTime=w}}getVideo(){return this.video}onAdd(w){this.map||(this.map=w,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE),B.texSubImage2D(B.TEXTURE_2D,0,0,0,B.RGBA,B.UNSIGNED_BYTE,this.video)):(this.texture=new g(w,this.video,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let le=this.tiles[ee];le.state!=="loaded"&&(le.state="loaded",le.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class $t extends Gt{constructor(w,B,Q,ee){super(w,B,Q,ee),B.coordinates?Array.isArray(B.coordinates)&&B.coordinates.length===4&&!B.coordinates.some(le=>!Array.isArray(le)||le.length!==2||le.some(qe=>typeof qe!="number"))||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "coordinates"'))),B.animate&&typeof B.animate!="boolean"&&this.fire(new a.j(new a.a2(`sources.${w}`,null,'optional "animate" property must be a boolean value'))),B.canvas?typeof B.canvas=="string"||B.canvas instanceof HTMLCanvasElement||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "canvas"'))),this.options=B,this.animate=B.animate===void 0||B.animate}load(){return a._(this,void 0,void 0,function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(w){this.map=w,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let w=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,w=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,w=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let B=this.map.painter.context,Q=B.gl;this.boundsBuffer||(this.boundsBuffer=B.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?(w||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new g(B,this.canvas,Q.RGBA,{premultiply:!0});let ee=!1;for(let le in this.tiles){let qe=this.tiles[le];qe.state!=="loaded"&&(qe.state="loaded",qe.texture=this.texture,ee=!0)}ee&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let w of[this.canvas.width,this.canvas.height])if(isNaN(w)||w<=0)return!0;return!1}}let sr={},wr=ue=>{switch(ue){case"geojson":return st;case"image":return Gt;case"raster":return pt;case"raster-dem":return Wt;case"vector":return ct;case"video":return Nt;case"canvas":return $t}return sr[ue]},ur="RTLPluginLoaded";class Qe extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Ae()}_syncState(w){return this.status=w,this.dispatcher.broadcast("SRPS",{pluginStatus:w,pluginURL:this.url}).catch(B=>{throw this.status="error",B})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(w){return a._(this,arguments,void 0,function*(B,Q=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=u.resolveURL(B),!this.url)throw new Error(`requested url ${B} is invalid`);if(this.status==="unavailable"){if(!Q)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()})}_requestImport(){return a._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new a.k(ur))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let Et=null;function er(){return Et||(Et=new Qe),Et}class Ut{constructor(w,B){this.timeAdded=0,this.fadeEndTime=0,this.tileID=w,this.uid=a.a4(),this.uses=0,this.tileSize=B,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(w){let B=w+this.timeAdded;Ble.getLayer(Tt)).filter(Boolean);if(ot.length!==0){Xe.layers=ot,Xe.stateDependentLayerIds&&(Xe.stateDependentLayers=Xe.stateDependentLayerIds.map(Tt=>ot.filter(Kt=>Kt.id===Tt)[0]));for(let Tt of ot)qe[Tt.id]=Xe}}return qe}(w.buckets,B.style),this.hasSymbolBuckets=!1;for(let ee in this.buckets){let le=this.buckets[ee];if(le instanceof a.a6){if(this.hasSymbolBuckets=!0,!Q)break;le.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let ee in this.buckets){let le=this.buckets[ee];if(le instanceof a.a6&&le.hasRTLText){this.hasRTLText=!0,er().lazyLoad();break}}this.queryPadding=0;for(let ee in this.buckets){let le=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,B.style.getLayer(ee).queryRadius(le))}w.imageAtlas&&(this.imageAtlas=w.imageAtlas),w.glyphAtlasImage&&(this.glyphAtlasImage=w.glyphAtlasImage)}else this.collisionBoxArray=new a.a5}unloadVectorData(){for(let w in this.buckets)this.buckets[w].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(w){return this.buckets[w.id]}upload(w){for(let Q in this.buckets){let ee=this.buckets[Q];ee.uploadPending()&&ee.upload(w)}let B=w.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new g(w,this.imageAtlas.image,B.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new g(w,this.glyphAtlasImage,B.ALPHA),this.glyphAtlasImage=null)}prepare(w){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(w,this.imageAtlasTexture)}queryRenderedFeatures(w,B,Q,ee,le,qe,Xe,ot,Tt,Kt){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:le,scale:qe,tileSize:this.tileSize,pixelPosMatrix:Kt,transform:ot,params:Xe,queryPadding:this.queryPadding*Tt},w,B,Q):{}}querySourceFeatures(w,B){let Q=this.latestFeatureIndex;if(!Q||!Q.rawTileData)return;let ee=Q.loadVTLayers(),le=B&&B.sourceLayer?B.sourceLayer:"",qe=ee._geojsonTileLayer||ee[le];if(!qe)return;let Xe=a.a7(B&&B.filter),{z:ot,x:Tt,y:Kt}=this.tileID.canonical,Jt={z:ot,x:Tt,y:Kt};for(let xr=0;xrQ)ee=!1;else if(B)if(this.expirationTime{this.remove(w,le)},Q)),this.data[ee].push(le),this.order.push(ee),this.order.length>this.max){let qe=this._getAndRemoveByKey(this.order[0]);qe&&this.onRemove(qe)}return this}has(w){return w.wrapped().key in this.data}getAndRemove(w){return this.has(w)?this._getAndRemoveByKey(w.wrapped().key):null}_getAndRemoveByKey(w){let B=this.data[w].shift();return B.timeout&&clearTimeout(B.timeout),this.data[w].length===0&&delete this.data[w],this.order.splice(this.order.indexOf(w),1),B.value}getByKey(w){let B=this.data[w];return B?B[0].value:null}get(w){return this.has(w)?this.data[w.wrapped().key][0].value:null}remove(w,B){if(!this.has(w))return this;let Q=w.wrapped().key,ee=B===void 0?0:this.data[Q].indexOf(B),le=this.data[Q][ee];return this.data[Q].splice(ee,1),le.timeout&&clearTimeout(le.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(le.value),this.order.splice(this.order.indexOf(Q),1),this}setMaxSize(w){for(this.max=w;this.order.length>this.max;){let B=this._getAndRemoveByKey(this.order[0]);B&&this.onRemove(B)}return this}filter(w){let B=[];for(let Q in this.data)for(let ee of this.data[Q])w(ee.value)||B.push(ee);for(let Q of B)this.remove(Q.value.tileID,Q)}}class bt{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(w,B,Q){let ee=String(B);if(this.stateChanges[w]=this.stateChanges[w]||{},this.stateChanges[w][ee]=this.stateChanges[w][ee]||{},a.e(this.stateChanges[w][ee],Q),this.deletedStates[w]===null){this.deletedStates[w]={};for(let le in this.state[w])le!==ee&&(this.deletedStates[w][le]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][ee]===null){this.deletedStates[w][ee]={};for(let le in this.state[w][ee])Q[le]||(this.deletedStates[w][ee][le]=null)}else for(let le in Q)this.deletedStates[w]&&this.deletedStates[w][ee]&&this.deletedStates[w][ee][le]===null&&delete this.deletedStates[w][ee][le]}removeFeatureState(w,B,Q){if(this.deletedStates[w]===null)return;let ee=String(B);if(this.deletedStates[w]=this.deletedStates[w]||{},Q&&B!==void 0)this.deletedStates[w][ee]!==null&&(this.deletedStates[w][ee]=this.deletedStates[w][ee]||{},this.deletedStates[w][ee][Q]=null);else if(B!==void 0)if(this.stateChanges[w]&&this.stateChanges[w][ee])for(Q in this.deletedStates[w][ee]={},this.stateChanges[w][ee])this.deletedStates[w][ee][Q]=null;else this.deletedStates[w][ee]=null;else this.deletedStates[w]=null}getState(w,B){let Q=String(B),ee=a.e({},(this.state[w]||{})[Q],(this.stateChanges[w]||{})[Q]);if(this.deletedStates[w]===null)return{};if(this.deletedStates[w]){let le=this.deletedStates[w][B];if(le===null)return{};for(let qe in le)delete ee[qe]}return ee}initializeTileState(w,B){w.setFeatureState(this.state,B)}coalesceChanges(w,B){let Q={};for(let ee in this.stateChanges){this.state[ee]=this.state[ee]||{};let le={};for(let qe in this.stateChanges[ee])this.state[ee][qe]||(this.state[ee][qe]={}),a.e(this.state[ee][qe],this.stateChanges[ee][qe]),le[qe]=this.state[ee][qe];Q[ee]=le}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let le={};if(this.deletedStates[ee]===null)for(let qe in this.state[ee])le[qe]={},this.state[ee][qe]={};else for(let qe in this.deletedStates[ee]){if(this.deletedStates[ee][qe]===null)this.state[ee][qe]={};else for(let Xe of Object.keys(this.deletedStates[ee][qe]))delete this.state[ee][qe][Xe];le[qe]=this.state[ee][qe]}Q[ee]=Q[ee]||{},a.e(Q[ee],le)}if(this.stateChanges={},this.deletedStates={},Object.keys(Q).length!==0)for(let ee in w)w[ee].setFeatureState(Q,B)}}class yt extends a.E{constructor(w,B,Q){super(),this.id=w,this.dispatcher=Q,this.on("data",ee=>this._dataHandler(ee)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((ee,le,qe,Xe)=>{let ot=new(wr(le.type))(ee,le,qe,Xe);if(ot.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${ot.id}`);return ot})(w,B,Q,this),this._tiles={},this._cache=new Ft(0,ee=>this._unloadTile(ee)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new bt,this._didEmitContent=!1,this._updated=!1}onAdd(w){this.map=w,this._maxTileCacheSize=w?w._maxTileCacheSize:null,this._maxTileCacheZoomLevels=w?w._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(w)}onRemove(w){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(w)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let w in this._tiles){let B=this._tiles[w];if(B.state!=="loaded"&&B.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let w=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,w&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(w,B,Q){return a._(this,void 0,void 0,function*(){try{yield this._source.loadTile(w),this._tileLoaded(w,B,Q)}catch(ee){w.state="errored",ee.status!==404?this._source.fire(new a.j(ee,{tile:w})):this.update(this.transform,this.terrain)}})}_unloadTile(w){this._source.unloadTile&&this._source.unloadTile(w)}_abortTile(w){this._source.abortTile&&this._source.abortTile(w),this._source.fire(new a.k("dataabort",{tile:w,coord:w.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(w){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let B in this._tiles){let Q=this._tiles[B];Q.upload(w),Q.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(w=>w.tileID).sort(Yt).map(w=>w.key)}getRenderableIds(w){let B=[];for(let Q in this._tiles)this._isIdRenderable(Q,w)&&B.push(this._tiles[Q]);return w?B.sort((Q,ee)=>{let le=Q.tileID,qe=ee.tileID,Xe=new a.P(le.canonical.x,le.canonical.y)._rotate(this.transform.angle),ot=new a.P(qe.canonical.x,qe.canonical.y)._rotate(this.transform.angle);return le.overscaledZ-qe.overscaledZ||ot.y-Xe.y||ot.x-Xe.x}).map(Q=>Q.tileID.key):B.map(Q=>Q.tileID).sort(Yt).map(Q=>Q.key)}hasRenderableParent(w){let B=this.findLoadedParent(w,0);return!!B&&this._isIdRenderable(B.tileID.key)}_isIdRenderable(w,B){return this._tiles[w]&&this._tiles[w].hasData()&&!this._coveredTiles[w]&&(B||!this._tiles[w].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let w in this._tiles)this._tiles[w].state!=="errored"&&this._reloadTile(w,"reloading")}}_reloadTile(w,B){return a._(this,void 0,void 0,function*(){let Q=this._tiles[w];Q&&(Q.state!=="loading"&&(Q.state=B),yield this._loadTile(Q,w,B))})}_tileLoaded(w,B,Q){w.timeAdded=u.now(),Q==="expired"&&(w.refreshedUponExpiration=!0),this._setTileReloadTimer(B,w),this.getSource().type==="raster-dem"&&w.dem&&this._backfillDEM(w),this._state.initializeTileState(w,this.map?this.map.painter:null),w.aborted||this._source.fire(new a.k("data",{dataType:"source",tile:w,coord:w.tileID}))}_backfillDEM(w){let B=this.getRenderableIds();for(let ee=0;ee1||(Math.abs(qe)>1&&(Math.abs(qe+ot)===1?qe+=ot:Math.abs(qe-ot)===1&&(qe-=ot)),le.dem&&ee.dem&&(ee.dem.backfillBorder(le.dem,qe,Xe),ee.neighboringTiles&&ee.neighboringTiles[Tt]&&(ee.neighboringTiles[Tt].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,B,Q,ee){for(let le in this._tiles){let qe=this._tiles[le];if(ee[le]||!qe.hasData()||qe.tileID.overscaledZ<=B||qe.tileID.overscaledZ>Q)continue;let Xe=qe.tileID;for(;qe&&qe.tileID.overscaledZ>B+1;){let Tt=qe.tileID.scaledTo(qe.tileID.overscaledZ-1);qe=this._tiles[Tt.key],qe&&qe.hasData()&&(Xe=Tt)}let ot=Xe;for(;ot.overscaledZ>B;)if(ot=ot.scaledTo(ot.overscaledZ-1),w[ot.key]){ee[Xe.key]=Xe;break}}}findLoadedParent(w,B){if(w.key in this._loadedParentTiles){let Q=this._loadedParentTiles[w.key];return Q&&Q.tileID.overscaledZ>=B?Q:null}for(let Q=w.overscaledZ-1;Q>=B;Q--){let ee=w.scaledTo(Q),le=this._getLoadedTile(ee);if(le)return le}}findLoadedSibling(w){return this._getLoadedTile(w)}_getLoadedTile(w){let B=this._tiles[w.key];return B&&B.hasData()?B:this._cache.getByKey(w.wrapped().key)}updateCacheSize(w){let B=Math.ceil(w.width/this._source.tileSize)+1,Q=Math.ceil(w.height/this._source.tileSize)+1,ee=Math.floor(B*Q*(this._maxTileCacheZoomLevels===null?a.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),le=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ee):ee;this._cache.setMaxSize(le)}handleWrapJump(w){let B=Math.round((w-(this._prevLng===void 0?w:this._prevLng))/360);if(this._prevLng=w,B){let Q={};for(let ee in this._tiles){let le=this._tiles[ee];le.tileID=le.tileID.unwrapTo(le.tileID.wrap+B),Q[le.tileID.key]=le}this._tiles=Q;for(let ee in this._timers)clearTimeout(this._timers[ee]),delete this._timers[ee];for(let ee in this._tiles)this._setTileReloadTimer(ee,this._tiles[ee])}}_updateCoveredAndRetainedTiles(w,B,Q,ee,le,qe){let Xe={},ot={},Tt=Object.keys(w),Kt=u.now();for(let Jt of Tt){let xr=w[Jt],Pr=this._tiles[Jt];if(!Pr||Pr.fadeEndTime!==0&&Pr.fadeEndTime<=Kt)continue;let ve=this.findLoadedParent(xr,B),be=this.findLoadedSibling(xr),Re=ve||be||null;Re&&(this._addTile(Re.tileID),Xe[Re.tileID.key]=Re.tileID),ot[Jt]=xr}this._retainLoadedChildren(ot,ee,Q,w);for(let Jt in Xe)w[Jt]||(this._coveredTiles[Jt]=!0,w[Jt]=Xe[Jt]);if(qe){let Jt={},xr={};for(let Pr of le)this._tiles[Pr.key].hasData()?Jt[Pr.key]=Pr:xr[Pr.key]=Pr;for(let Pr in xr){let ve=xr[Pr].children(this._source.maxzoom);this._tiles[ve[0].key]&&this._tiles[ve[1].key]&&this._tiles[ve[2].key]&&this._tiles[ve[3].key]&&(Jt[ve[0].key]=w[ve[0].key]=ve[0],Jt[ve[1].key]=w[ve[1].key]=ve[1],Jt[ve[2].key]=w[ve[2].key]=ve[2],Jt[ve[3].key]=w[ve[3].key]=ve[3],delete xr[Pr])}for(let Pr in xr){let ve=xr[Pr],be=this.findLoadedParent(ve,this._source.minzoom),Re=this.findLoadedSibling(ve),Be=be||Re||null;if(Be){Jt[Be.tileID.key]=w[Be.tileID.key]=Be.tileID;for(let tt in Jt)Jt[tt].isChildOf(Be.tileID)&&delete Jt[tt]}}for(let Pr in this._tiles)Jt[Pr]||(this._coveredTiles[Pr]=!0)}}update(w,B){if(!this._sourceLoaded||this._paused)return;let Q;this.transform=w,this.terrain=B,this.updateCacheSize(w),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?Q=w.getVisibleUnwrappedCoordinates(this._source.tileID).map(Kt=>new a.S(Kt.canonical.z,Kt.wrap,Kt.canonical.z,Kt.canonical.x,Kt.canonical.y)):(Q=w.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:B}),this._source.hasTile&&(Q=Q.filter(Kt=>this._source.hasTile(Kt)))):Q=[];let ee=w.coveringZoomLevel(this._source),le=Math.max(ee-yt.maxOverzooming,this._source.minzoom),qe=Math.max(ee+yt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let Kt={};for(let Jt of Q)if(Jt.canonical.z>this._source.minzoom){let xr=Jt.scaledTo(Jt.canonical.z-1);Kt[xr.key]=xr;let Pr=Jt.scaledTo(Math.max(this._source.minzoom,Math.min(Jt.canonical.z,5)));Kt[Pr.key]=Pr}Q=Q.concat(Object.values(Kt))}let Xe=Q.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,Xe&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let ot=this._updateRetainedTiles(Q,ee);lr(this._source.type)&&this._updateCoveredAndRetainedTiles(ot,le,qe,ee,Q,B);for(let Kt in ot)this._tiles[Kt].clearFadeHold();let Tt=a.ab(this._tiles,ot);for(let Kt of Tt){let Jt=this._tiles[Kt];Jt.hasSymbolBuckets&&!Jt.holdingForFade()?Jt.setHoldDuration(this.map._fadeDuration):Jt.hasSymbolBuckets&&!Jt.symbolFadeFinished()||this._removeTile(Kt)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let w in this._tiles)this._tiles[w].holdingForFade()&&this._removeTile(w)}_updateRetainedTiles(w,B){var Q;let ee={},le={},qe=Math.max(B-yt.maxOverzooming,this._source.minzoom),Xe=Math.max(B+yt.maxUnderzooming,this._source.minzoom),ot={};for(let Tt of w){let Kt=this._addTile(Tt);ee[Tt.key]=Tt,Kt.hasData()||Bthis._source.maxzoom){let xr=Tt.children(this._source.maxzoom)[0],Pr=this.getTile(xr);if(Pr&&Pr.hasData()){ee[xr.key]=xr;continue}}else{let xr=Tt.children(this._source.maxzoom);if(ee[xr[0].key]&&ee[xr[1].key]&&ee[xr[2].key]&&ee[xr[3].key])continue}let Jt=Kt.wasRequested();for(let xr=Tt.overscaledZ-1;xr>=qe;--xr){let Pr=Tt.scaledTo(xr);if(le[Pr.key])break;if(le[Pr.key]=!0,Kt=this.getTile(Pr),!Kt&&Jt&&(Kt=this._addTile(Pr)),Kt){let ve=Kt.hasData();if((ve||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||Jt)&&(ee[Pr.key]=Pr),Jt=Kt.wasRequested(),ve)break}}}return ee}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let w in this._tiles){let B=[],Q,ee=this._tiles[w].tileID;for(;ee.overscaledZ>0;){if(ee.key in this._loadedParentTiles){Q=this._loadedParentTiles[ee.key];break}B.push(ee.key);let le=ee.scaledTo(ee.overscaledZ-1);if(Q=this._getLoadedTile(le),Q)break;ee=le}for(let le of B)this._loadedParentTiles[le]=Q}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let w in this._tiles){let B=this._tiles[w].tileID,Q=this._getLoadedTile(B);this._loadedSiblingTiles[B.key]=Q}}_addTile(w){let B=this._tiles[w.key];if(B)return B;B=this._cache.getAndRemove(w),B&&(this._setTileReloadTimer(w.key,B),B.tileID=w,this._state.initializeTileState(B,this.map?this.map.painter:null),this._cacheTimers[w.key]&&(clearTimeout(this._cacheTimers[w.key]),delete this._cacheTimers[w.key],this._setTileReloadTimer(w.key,B)));let Q=B;return B||(B=new Ut(w,this._source.tileSize*w.overscaleFactor()),this._loadTile(B,w.key,B.state)),B.uses++,this._tiles[w.key]=B,Q||this._source.fire(new a.k("dataloading",{tile:B,coord:B.tileID,dataType:"source"})),B}_setTileReloadTimer(w,B){w in this._timers&&(clearTimeout(this._timers[w]),delete this._timers[w]);let Q=B.getExpiryTimeout();Q&&(this._timers[w]=setTimeout(()=>{this._reloadTile(w,"expired"),delete this._timers[w]},Q))}_removeTile(w){let B=this._tiles[w];B&&(B.uses--,delete this._tiles[w],this._timers[w]&&(clearTimeout(this._timers[w]),delete this._timers[w]),B.uses>0||(B.hasData()&&B.state!=="reloading"?this._cache.add(B.tileID,B,B.getExpiryTimeout()):(B.aborted=!0,this._abortTile(B),this._unloadTile(B))))}_dataHandler(w){let B=w.sourceDataType;w.dataType==="source"&&B==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&w.dataType==="source"&&B==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let w in this._tiles)this._removeTile(w);this._cache.reset()}tilesIn(w,B,Q){let ee=[],le=this.transform;if(!le)return ee;let qe=Q?le.getCameraQueryGeometry(w):w,Xe=w.map(ve=>le.pointCoordinate(ve,this.terrain)),ot=qe.map(ve=>le.pointCoordinate(ve,this.terrain)),Tt=this.getIds(),Kt=1/0,Jt=1/0,xr=-1/0,Pr=-1/0;for(let ve of ot)Kt=Math.min(Kt,ve.x),Jt=Math.min(Jt,ve.y),xr=Math.max(xr,ve.x),Pr=Math.max(Pr,ve.y);for(let ve=0;ve=0&&We[1].y+tt>=0){let it=Xe.map(Ht=>Re.getTilePoint(Ht)),Dt=ot.map(Ht=>Re.getTilePoint(Ht));ee.push({tile:be,tileID:Re,queryGeometry:it,cameraQueryGeometry:Dt,scale:Be})}}return ee}getVisibleCoordinates(w){let B=this.getRenderableIds(w).map(Q=>this._tiles[Q].tileID);for(let Q of B)Q.posMatrix=this.transform.calculatePosMatrix(Q.toUnwrapped());return B}hasTransition(){if(this._source.hasTransition())return!0;if(lr(this._source.type)){let w=u.now();for(let B in this._tiles)if(this._tiles[B].fadeEndTime>=w)return!0}return!1}setFeatureState(w,B,Q){this._state.updateState(w=w||"_geojsonTileLayer",B,Q)}removeFeatureState(w,B,Q){this._state.removeFeatureState(w=w||"_geojsonTileLayer",B,Q)}getFeatureState(w,B){return this._state.getState(w=w||"_geojsonTileLayer",B)}setDependencies(w,B,Q){let ee=this._tiles[w];ee&&ee.setDependencies(B,Q)}reloadTilesForDependencies(w,B){for(let Q in this._tiles)this._tiles[Q].hasDependency(w,B)&&this._reloadTile(Q,"reloading");this._cache.filter(Q=>!Q.hasDependency(w,B))}}function Yt(ue,w){let B=Math.abs(2*ue.wrap)-+(ue.wrap<0),Q=Math.abs(2*w.wrap)-+(w.wrap<0);return ue.overscaledZ-w.overscaledZ||Q-B||w.canonical.y-ue.canonical.y||w.canonical.x-ue.canonical.x}function lr(ue){return ue==="raster"||ue==="image"||ue==="video"}yt.maxOverzooming=10,yt.maxUnderzooming=3;class Tr{constructor(w,B){this.reset(w,B)}reset(w,B){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-qe)/Xe:0;return this.points[le].mult(1-ot).add(this.points[B].mult(ot))}}function Rr(ue,w){let B=!0;return ue==="always"||ue!=="never"&&w!=="never"||(B=!1),B}class ei{constructor(w,B,Q){let ee=this.boxCells=[],le=this.circleCells=[];this.xCellCount=Math.ceil(w/Q),this.yCellCount=Math.ceil(B/Q);for(let qe=0;qethis.width||ee<0||B>this.height)return[];let ot=[];if(w<=0&&B<=0&&this.width<=Q&&this.height<=ee){if(le)return[{key:null,x1:w,y1:B,x2:Q,y2:ee}];for(let Tt=0;Tt0}hitTestCircle(w,B,Q,ee,le){let qe=w-Q,Xe=w+Q,ot=B-Q,Tt=B+Q;if(Xe<0||qe>this.width||Tt<0||ot>this.height)return!1;let Kt=[];return this._forEachCell(qe,ot,Xe,Tt,this._queryCellCircle,Kt,{hitTest:!0,overlapMode:ee,circle:{x:w,y:B,radius:Q},seenUids:{box:{},circle:{}}},le),Kt.length>0}_queryCell(w,B,Q,ee,le,qe,Xe,ot){let{seenUids:Tt,hitTest:Kt,overlapMode:Jt}=Xe,xr=this.boxCells[le];if(xr!==null){let ve=this.bboxes;for(let be of xr)if(!Tt.box[be]){Tt.box[be]=!0;let Re=4*be,Be=this.boxKeys[be];if(w<=ve[Re+2]&&B<=ve[Re+3]&&Q>=ve[Re+0]&&ee>=ve[Re+1]&&(!ot||ot(Be))&&(!Kt||!Rr(Jt,Be.overlapMode))&&(qe.push({key:Be,x1:ve[Re],y1:ve[Re+1],x2:ve[Re+2],y2:ve[Re+3]}),Kt))return!0}}let Pr=this.circleCells[le];if(Pr!==null){let ve=this.circles;for(let be of Pr)if(!Tt.circle[be]){Tt.circle[be]=!0;let Re=3*be,Be=this.circleKeys[be];if(this._circleAndRectCollide(ve[Re],ve[Re+1],ve[Re+2],w,B,Q,ee)&&(!ot||ot(Be))&&(!Kt||!Rr(Jt,Be.overlapMode))){let tt=ve[Re],We=ve[Re+1],it=ve[Re+2];if(qe.push({key:Be,x1:tt-it,y1:We-it,x2:tt+it,y2:We+it}),Kt)return!0}}}return!1}_queryCellCircle(w,B,Q,ee,le,qe,Xe,ot){let{circle:Tt,seenUids:Kt,overlapMode:Jt}=Xe,xr=this.boxCells[le];if(xr!==null){let ve=this.bboxes;for(let be of xr)if(!Kt.box[be]){Kt.box[be]=!0;let Re=4*be,Be=this.boxKeys[be];if(this._circleAndRectCollide(Tt.x,Tt.y,Tt.radius,ve[Re+0],ve[Re+1],ve[Re+2],ve[Re+3])&&(!ot||ot(Be))&&!Rr(Jt,Be.overlapMode))return qe.push(!0),!0}}let Pr=this.circleCells[le];if(Pr!==null){let ve=this.circles;for(let be of Pr)if(!Kt.circle[be]){Kt.circle[be]=!0;let Re=3*be,Be=this.circleKeys[be];if(this._circlesCollide(ve[Re],ve[Re+1],ve[Re+2],Tt.x,Tt.y,Tt.radius)&&(!ot||ot(Be))&&!Rr(Jt,Be.overlapMode))return qe.push(!0),!0}}}_forEachCell(w,B,Q,ee,le,qe,Xe,ot){let Tt=this._convertToXCellCoord(w),Kt=this._convertToYCellCoord(B),Jt=this._convertToXCellCoord(Q),xr=this._convertToYCellCoord(ee);for(let Pr=Tt;Pr<=Jt;Pr++)for(let ve=Kt;ve<=xr;ve++)if(le.call(this,w,B,Q,ee,this.xCellCount*ve+Pr,qe,Xe,ot))return}_convertToXCellCoord(w){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(w*this.xScale)))}_convertToYCellCoord(w){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(w*this.yScale)))}_circlesCollide(w,B,Q,ee,le,qe){let Xe=ee-w,ot=le-B,Tt=Q+qe;return Tt*Tt>Xe*Xe+ot*ot}_circleAndRectCollide(w,B,Q,ee,le,qe,Xe){let ot=(qe-ee)/2,Tt=Math.abs(w-(ee+ot));if(Tt>ot+Q)return!1;let Kt=(Xe-le)/2,Jt=Math.abs(B-(le+Kt));if(Jt>Kt+Q)return!1;if(Tt<=ot||Jt<=Kt)return!0;let xr=Tt-ot,Pr=Jt-Kt;return xr*xr+Pr*Pr<=Q*Q}}function Wr(ue,w,B,Q,ee){let le=a.H();return w?(a.K(le,le,[1/ee,1/ee,1]),B||a.ad(le,le,Q.angle)):a.L(le,Q.labelPlaneMatrix,ue),le}function Ur(ue,w,B,Q,ee){if(w){let le=a.ae(ue);return a.K(le,le,[ee,ee,1]),B||a.ad(le,le,-Q.angle),le}return Q.glCoordMatrix}function dt(ue,w,B,Q){let ee;Q?(ee=[ue,w,Q(ue,w),1],a.af(ee,ee,B)):(ee=[ue,w,0,1],Jr(ee,ee,B));let le=ee[3];return{point:new a.P(ee[0]/le,ee[1]/le),signedDistanceFromCamera:le,isOccluded:!1}}function Ge(ue,w){return .5+ue/w*.5}function Je(ue,w){return ue.x>=-w[0]&&ue.x<=w[0]&&ue.y>=-w[1]&&ue.y<=w[1]}function je(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve){let be=Q?ue.textSizeData:ue.iconSizeData,Re=a.ag(be,B.transform.zoom),Be=[256/B.width*2+1,256/B.height*2+1],tt=Q?ue.text.dynamicLayoutVertexArray:ue.icon.dynamicLayoutVertexArray;tt.clear();let We=ue.lineVertexArray,it=Q?ue.text.placedSymbolArray:ue.icon.placedSymbolArray,Dt=B.transform.width/B.transform.height,Ht=!1;for(let rr=0;rrMath.abs(B.x-w.x)*Q?{useVertical:!0}:(ue===a.ah.vertical?w.yB.x)?{needsFlipping:!0}:null}function Ie(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt){let Jt=B/24,xr=w.lineOffsetX*Jt,Pr=w.lineOffsetY*Jt,ve;if(w.numGlyphs>1){let be=w.glyphStartIndex+w.numGlyphs,Re=w.lineStartIndex,Be=w.lineStartIndex+w.lineLength,tt=$e(Jt,Xe,xr,Pr,Q,w,Kt,ue);if(!tt)return{notEnoughRoom:!0};let We=dt(tt.first.point.x,tt.first.point.y,qe,ue.getElevation).point,it=dt(tt.last.point.x,tt.last.point.y,qe,ue.getElevation).point;if(ee&&!Q){let Dt=wt(w.writingMode,We,it,Tt);if(Dt)return Dt}ve=[tt.first];for(let Dt=w.glyphStartIndex+1;Dt0?We.point:function(Ht,rr,dr,Sr,Or,jr){return xe(Ht,rr,dr,1,Or,jr)}(ue.tileAnchorPoint,tt,Re,0,le,ue),Dt=wt(w.writingMode,Re,it,Tt);if(Dt)return Dt}let be=pr(Jt*Xe.getoffsetX(w.glyphStartIndex),xr,Pr,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,ue,Kt);if(!be||ue.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};ve=[be]}for(let be of ve)a.aj(ot,be.point,be.angle);return{}}function xe(ue,w,B,Q,ee,le){let qe=ue.add(ue.sub(w)._unit()),Xe=ee!==void 0?dt(qe.x,qe.y,ee,le.getElevation).point:vt(qe.x,qe.y,le).point,ot=B.sub(Xe);return B.add(ot._mult(Q/ot.mag()))}function Ce(ue,w,B){let Q=w.projectionCache;if(Q.projections[ue])return Q.projections[ue];let ee=new a.P(w.lineVertexArray.getx(ue),w.lineVertexArray.gety(ue)),le=vt(ee.x,ee.y,w);if(le.signedDistanceFromCamera>0)return Q.projections[ue]=le.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||le.isOccluded,le.point;let qe=ue-B.direction;return function(Xe,ot,Tt,Kt,Jt){return xe(Xe,ot,Tt,Kt,void 0,Jt)}(B.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(qe),w.lineVertexArray.gety(qe)),ee,B.previousVertex,B.absOffsetX-B.distanceFromAnchor+1,w)}function vt(ue,w,B){let Q=ue+B.translation[0],ee=w+B.translation[1],le;return!B.pitchWithMap&&B.projection.useSpecialProjectionForSymbols?(le=B.projection.projectTileCoordinates(Q,ee,B.unwrappedTileID,B.getElevation),le.point.x=(.5*le.point.x+.5)*B.width,le.point.y=(.5*-le.point.y+.5)*B.height):(le=dt(Q,ee,B.labelPlaneMatrix,B.getElevation),le.isOccluded=!1),le}function nr(ue,w,B){return ue._unit()._perp()._mult(w*B)}function ir(ue,w,B,Q,ee,le,qe,Xe,ot){if(Xe.projectionCache.offsets[ue])return Xe.projectionCache.offsets[ue];let Tt=B.add(w);if(ue+ot.direction=ee)return Xe.projectionCache.offsets[ue]=Tt,Tt;let Kt=Ce(ue+ot.direction,Xe,ot),Jt=nr(Kt.sub(B),qe,ot.direction),xr=B.add(Jt),Pr=Kt.add(Jt);return Xe.projectionCache.offsets[ue]=a.ak(le,Tt,xr,Pr)||Tt,Xe.projectionCache.offsets[ue]}function pr(ue,w,B,Q,ee,le,qe,Xe,ot){let Tt=Q?ue-w:ue+w,Kt=Tt>0?1:-1,Jt=0;Q&&(Kt*=-1,Jt=Math.PI),Kt<0&&(Jt+=Math.PI);let xr,Pr=Kt>0?le+ee:le+ee+1;Xe.projectionCache.cachedAnchorPoint?xr=Xe.projectionCache.cachedAnchorPoint:(xr=vt(Xe.tileAnchorPoint.x,Xe.tileAnchorPoint.y,Xe).point,Xe.projectionCache.cachedAnchorPoint=xr);let ve,be,Re=xr,Be=xr,tt=0,We=0,it=Math.abs(Tt),Dt=[],Ht;for(;tt+We<=it;){if(Pr+=Kt,Pr=qe)return null;tt+=We,Be=Re,be=ve;let Sr={absOffsetX:it,direction:Kt,distanceFromAnchor:tt,previousVertex:Be};if(Re=Ce(Pr,Xe,Sr),B===0)Dt.push(Be),Ht=Re.sub(Be);else{let Or,jr=Re.sub(Be);Or=jr.mag()===0?nr(Ce(Pr+Kt,Xe,Sr).sub(Re),B,Kt):nr(jr,B,Kt),be||(be=Be.add(Or)),ve=ir(Pr,Or,Re,le,qe,be,B,Xe,Sr),Dt.push(be),Ht=ve.sub(be)}We=Ht.mag()}let rr=Ht._mult((it-tt)/We)._add(be||Be),dr=Jt+Math.atan2(Re.y-Be.y,Re.x-Be.x);return Dt.push(rr),{point:rr,angle:ot?dr:0,path:Dt}}let oi=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function di(ue,w){for(let B=0;B=1;fa--)In.push(un.path[fa]);for(let fa=1;fa$a.signedDistanceFromCamera<=0)?[]:fa.map($a=>$a.point)}let Aa=[];if(In.length>0){let fa=In[0].clone(),$a=In[0].clone();for(let ko=1;ko=jr.x&&$a.x<=ii.x&&fa.y>=jr.y&&$a.y<=ii.y?[In]:$a.xii.x||$a.yii.y?[]:a.al([In],jr.x,jr.y,ii.x,ii.y)}for(let fa of Aa){Li.reset(fa,.25*Or);let $a=0;$a=Li.length<=.5*Or?1:Math.ceil(Li.paddedLength/Kn)+1;for(let ko=0;ko<$a;ko++){let Qa=ko/Math.max($a-1,1),mo=Li.lerp(Qa),Bo=mo.x+fi,Is=mo.y+fi;Be.push(Bo,Is,Or,0);let As=Bo-Or,wo=Is-Or,To=Bo+Or,dl=Is+Or;if(Sr=Sr&&this.isOffscreen(As,wo,To,dl),dr=dr||this.isInsideGrid(As,wo,To,dl),w!=="always"&&this.grid.hitTestCircle(Bo,Is,Or,w,xr)&&(rr=!0,!Kt))return{circles:[],offscreen:!1,collisionDetected:rr}}}}return{circles:!Kt&&rr||!dr||Wedt(ee.x,ee.y,Q,B.getElevation))}queryRenderedSymbols(w){if(w.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let B=[],Q=1/0,ee=1/0,le=-1/0,qe=-1/0;for(let Kt of w){let Jt=new a.P(Kt.x+fi,Kt.y+fi);Q=Math.min(Q,Jt.x),ee=Math.min(ee,Jt.y),le=Math.max(le,Jt.x),qe=Math.max(qe,Jt.y),B.push(Jt)}let Xe=this.grid.query(Q,ee,le,qe).concat(this.ignoredGrid.query(Q,ee,le,qe)),ot={},Tt={};for(let Kt of Xe){let Jt=Kt.key;if(ot[Jt.bucketInstanceId]===void 0&&(ot[Jt.bucketInstanceId]={}),ot[Jt.bucketInstanceId][Jt.featureIndex])continue;let xr=[new a.P(Kt.x1,Kt.y1),new a.P(Kt.x2,Kt.y1),new a.P(Kt.x2,Kt.y2),new a.P(Kt.x1,Kt.y2)];a.am(B,xr)&&(ot[Jt.bucketInstanceId][Jt.featureIndex]=!0,Tt[Jt.bucketInstanceId]===void 0&&(Tt[Jt.bucketInstanceId]=[]),Tt[Jt.bucketInstanceId].push(Jt.featureIndex))}return Tt}insertCollisionBox(w,B,Q,ee,le,qe){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:le,collisionGroupID:qe,overlapMode:B},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,B,Q,ee,le,qe){let Xe=Q?this.ignoredGrid:this.grid,ot={bucketInstanceId:ee,featureIndex:le,collisionGroupID:qe,overlapMode:B};for(let Tt=0;Tt=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,B,Q,ee){return Q>=0&&w=0&&Bthis.projectAndGetPerspectiveRatio(Q,Or.x,Or.y,ee,Tt));dr=Sr.some(Or=>!Or.isOccluded),rr=Sr.map(Or=>Or.point)}else dr=!0;return{box:a.ao(rr),allPointsOccluded:!dr}}}function Pn(ue,w,B){return w*(a.X/(ue.tileSize*Math.pow(2,B-ue.tileID.overscaledZ)))}class wn{constructor(w,B,Q,ee){this.opacity=w?Math.max(0,Math.min(1,w.opacity+(w.placed?B:-B))):ee&&Q?1:0,this.placed=Q}isHidden(){return this.opacity===0&&!this.placed}}class pn{constructor(w,B,Q,ee,le){this.text=new wn(w?w.text:null,B,Q,le),this.icon=new wn(w?w.icon:null,B,ee,le)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Vn{constructor(w,B,Q){this.text=w,this.icon=B,this.skipFade=Q}}class kn{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class ea{constructor(w,B,Q,ee,le){this.bucketInstanceId=w,this.featureIndex=B,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=le}}class ua{constructor(w){this.crossSourceCollisions=w,this.maxGroupID=0,this.collisionGroups={}}get(w){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[w]){let B=++this.maxGroupID;this.collisionGroups[w]={ID:B,predicate:Q=>Q.collisionGroupID===B}}return this.collisionGroups[w]}}function Vt(ue,w,B,Q,ee){let{horizontalAlign:le,verticalAlign:qe}=a.au(ue);return new a.P(-(le-.5)*w+Q[0]*ee,-(qe-.5)*B+Q[1]*ee)}class _t{constructor(w,B,Q,ee,le,qe){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new Hi(this.transform,B),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new ua(le),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=qe,qe&&(qe.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(w){let B=this.terrain;return B?(Q,ee)=>B.getElevation(w,Q,ee):null}getBucketParts(w,B,Q,ee){let le=Q.getBucket(B),qe=Q.latestFeatureIndex;if(!le||!qe||B.id!==le.layerIds[0])return;let Xe=Q.collisionBoxArray,ot=le.layers[0].layout,Tt=le.layers[0].paint,Kt=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),Jt=Q.tileSize/a.X,xr=Q.tileID.toUnwrapped(),Pr=this.transform.calculatePosMatrix(xr),ve=ot.get("text-pitch-alignment")==="map",be=ot.get("text-rotation-alignment")==="map",Re=Pn(Q,1,this.transform.zoom),Be=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Tt.get("text-translate"),Tt.get("text-translate-anchor")),tt=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Tt.get("icon-translate"),Tt.get("icon-translate-anchor")),We=Wr(Pr,ve,be,this.transform,Re),it=null;if(ve){let Ht=Ur(Pr,ve,be,this.transform,Re);it=a.L([],this.transform.labelPlaneMatrix,Ht)}this.retainedQueryData[le.bucketInstanceId]=new ea(le.bucketInstanceId,qe,le.sourceLayerIndex,le.index,Q.tileID);let Dt={bucket:le,layout:ot,translationText:Be,translationIcon:tt,posMatrix:Pr,unwrappedTileID:xr,textLabelPlaneMatrix:We,labelToScreenMatrix:it,scale:Kt,textPixelRatio:Jt,holdingForFade:Q.holdingForFade(),collisionBoxArray:Xe,partiallyEvaluatedTextSize:a.ag(le.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(le.sourceID)};if(ee)for(let Ht of le.sortKeyRanges){let{sortKey:rr,symbolInstanceStart:dr,symbolInstanceEnd:Sr}=Ht;w.push({sortKey:rr,symbolInstanceStart:dr,symbolInstanceEnd:Sr,parameters:Dt})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:le.symbolInstances.length,parameters:Dt})}attemptAnchorPlacement(w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve,be,Re,Be,tt,We){let it=a.aq[w.textAnchor],Dt=[w.textOffset0,w.textOffset1],Ht=Vt(it,Q,ee,Dt,le),rr=this.collisionIndex.placeCollisionBox(B,xr,ot,Tt,Kt,Xe,qe,Re,Jt.predicate,We,Ht);if((!tt||this.collisionIndex.placeCollisionBox(tt,xr,ot,Tt,Kt,Xe,qe,Be,Jt.predicate,We,Ht).placeable)&&rr.placeable){let dr;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Pr.crossTileID]&&this.prevPlacement.placements[Pr.crossTileID]&&this.prevPlacement.placements[Pr.crossTileID].text&&(dr=this.prevPlacement.variableOffsets[Pr.crossTileID].anchor),Pr.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Pr.crossTileID]={textOffset:Dt,width:Q,height:ee,anchor:it,textBoxScale:le,prevAnchor:dr},this.markUsedJustification(ve,it,Pr,be),ve.allowVerticalPlacement&&(this.markUsedOrientation(ve,be,Pr),this.placedOrientations[Pr.crossTileID]=be),{shift:Ht,placedGlyphBoxes:rr}}}placeLayerBucketPart(w,B,Q){let{bucket:ee,layout:le,translationText:qe,translationIcon:Xe,posMatrix:ot,unwrappedTileID:Tt,textLabelPlaneMatrix:Kt,labelToScreenMatrix:Jt,textPixelRatio:xr,holdingForFade:Pr,collisionBoxArray:ve,partiallyEvaluatedTextSize:be,collisionGroup:Re}=w.parameters,Be=le.get("text-optional"),tt=le.get("icon-optional"),We=a.ar(le,"text-overlap","text-allow-overlap"),it=We==="always",Dt=a.ar(le,"icon-overlap","icon-allow-overlap"),Ht=Dt==="always",rr=le.get("text-rotation-alignment")==="map",dr=le.get("text-pitch-alignment")==="map",Sr=le.get("icon-text-fit")!=="none",Or=le.get("symbol-z-order")==="viewport-y",jr=it&&(Ht||!ee.hasIconData()||tt),ii=Ht&&(it||!ee.hasTextData()||Be);!ee.collisionArrays&&ve&&ee.deserializeCollisionBoxes(ve);let Li=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),un=(sn,In,Kn)=>{var Aa,fa;if(B[sn.crossTileID])return;if(Pr)return void(this.placements[sn.crossTileID]=new Vn(!1,!1,!1));let $a=!1,ko=!1,Qa=!0,mo=null,Bo={box:null,placeable:!1,offscreen:null},Is={box:null,placeable:!1,offscreen:null},As=null,wo=null,To=null,dl=0,Ul=0,Lu=0;In.textFeatureIndex?dl=In.textFeatureIndex:sn.useRuntimeCollisionCircles&&(dl=sn.featureIndex),In.verticalTextFeatureIndex&&(Ul=In.verticalTextFeatureIndex);let au=In.textBox;if(au){let Al=Te=>{let Ne=a.ah.horizontal;if(ee.allowVerticalPlacement&&!Te&&this.prevPlacement){let He=this.prevPlacement.placedOrientations[sn.crossTileID];He&&(this.placedOrientations[sn.crossTileID]=He,Ne=He,this.markUsedOrientation(ee,Ne,sn))}return Ne},Sl=(Te,Ne)=>{if(ee.allowVerticalPlacement&&sn.numVerticalGlyphVertices>0&&In.verticalTextBox){for(let He of ee.writingModes)if(He===a.ah.vertical?(Bo=Ne(),Is=Bo):Bo=Te(),Bo&&Bo.placeable)break}else Bo=Te()},X=sn.textAnchorOffsetStartIndex,se=sn.textAnchorOffsetEndIndex;if(se===X){let Te=(Ne,He)=>{let Ye=this.collisionIndex.placeCollisionBox(Ne,We,xr,ot,Tt,dr,rr,qe,Re.predicate,Li);return Ye&&Ye.placeable&&(this.markUsedOrientation(ee,He,sn),this.placedOrientations[sn.crossTileID]=He),Ye};Sl(()=>Te(au,a.ah.horizontal),()=>{let Ne=In.verticalTextBox;return ee.allowVerticalPlacement&&sn.numVerticalGlyphVertices>0&&Ne?Te(Ne,a.ah.vertical):{box:null,offscreen:null}}),Al(Bo&&Bo.placeable)}else{let Te=a.aq[(fa=(Aa=this.prevPlacement)===null||Aa===void 0?void 0:Aa.variableOffsets[sn.crossTileID])===null||fa===void 0?void 0:fa.anchor],Ne=(Ye,Ct,nt)=>{let jt=Ye.x2-Ye.x1,gr=Ye.y2-Ye.y1,yr=sn.textBoxScale,Gr=Sr&&Dt==="never"?Ct:null,qr=null,_i=We==="never"?1:2,bi="never";Te&&_i++;for(let Xr=0;Xr<_i;Xr++){for(let ni=X;niNe(au,In.iconBox,a.ah.horizontal),()=>{let Ye=In.verticalTextBox;return ee.allowVerticalPlacement&&(!Bo||!Bo.placeable)&&sn.numVerticalGlyphVertices>0&&Ye?Ne(Ye,In.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),Bo&&($a=Bo.placeable,Qa=Bo.offscreen);let He=Al(Bo&&Bo.placeable);if(!$a&&this.prevPlacement){let Ye=this.prevPlacement.variableOffsets[sn.crossTileID];Ye&&(this.variableOffsets[sn.crossTileID]=Ye,this.markUsedJustification(ee,Ye.anchor,sn,He))}}}if(As=Bo,$a=As&&As.placeable,Qa=As&&As.offscreen,sn.useRuntimeCollisionCircles){let Al=ee.text.placedSymbolArray.get(sn.centerJustifiedTextSymbolIndex),Sl=a.ai(ee.textSizeData,be,Al),X=le.get("text-padding");wo=this.collisionIndex.placeCollisionCircles(We,Al,ee.lineVertexArray,ee.glyphOffsetArray,Sl,ot,Tt,Kt,Jt,Q,dr,Re.predicate,sn.collisionCircleDiameter,X,qe,Li),wo.circles.length&&wo.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),$a=it||wo.circles.length>0&&!wo.collisionDetected,Qa=Qa&&wo.offscreen}if(In.iconFeatureIndex&&(Lu=In.iconFeatureIndex),In.iconBox){let Al=Sl=>this.collisionIndex.placeCollisionBox(Sl,Dt,xr,ot,Tt,dr,rr,Xe,Re.predicate,Li,Sr&&mo?mo:void 0);Is&&Is.placeable&&In.verticalIconBox?(To=Al(In.verticalIconBox),ko=To.placeable):(To=Al(In.iconBox),ko=To.placeable),Qa=Qa&&To.offscreen}let $s=Be||sn.numHorizontalGlyphVertices===0&&sn.numVerticalGlyphVertices===0,Ql=tt||sn.numIconVertices===0;$s||Ql?Ql?$s||(ko=ko&&$a):$a=ko&&$a:ko=$a=ko&&$a;let dc=ko&&To.placeable;if($a&&As.placeable&&this.collisionIndex.insertCollisionBox(As.box,We,le.get("text-ignore-placement"),ee.bucketInstanceId,Is&&Is.placeable&&Ul?Ul:dl,Re.ID),dc&&this.collisionIndex.insertCollisionBox(To.box,Dt,le.get("icon-ignore-placement"),ee.bucketInstanceId,Lu,Re.ID),wo&&$a&&this.collisionIndex.insertCollisionCircles(wo.circles,We,le.get("text-ignore-placement"),ee.bucketInstanceId,dl,Re.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Kn,In,As,To,wo),sn.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(ee.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[sn.crossTileID]=new Vn($a||jr,ko||ii,Qa||ee.justReloaded),B[sn.crossTileID]=!0};if(Or){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let sn=ee.getSortedSymbolIndexes(this.transform.angle);for(let In=sn.length-1;In>=0;--In){let Kn=sn[In];un(ee.symbolInstances.get(Kn),ee.collisionArrays[Kn],Kn)}}else for(let sn=w.symbolInstanceStart;sn=0&&(w.text.placedSymbolArray.get(Xe).crossTileID=le>=0&&Xe!==le?0:Q.crossTileID)}markUsedOrientation(w,B,Q){let ee=B===a.ah.horizontal||B===a.ah.horizontalOnly?B:0,le=B===a.ah.vertical?B:0,qe=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let Xe of qe)w.text.placedSymbolArray.get(Xe).placedOrientation=ee;Q.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(Q.verticalPlacedTextSymbolIndex).placedOrientation=le)}commit(w){this.commitTime=w,this.zoomAtLastRecencyCheck=this.transform.zoom;let B=this.prevPlacement,Q=!1;this.prevZoomAdjustment=B?B.zoomAdjustment(this.transform.zoom):0;let ee=B?B.symbolFadeChange(w):1,le=B?B.opacities:{},qe=B?B.variableOffsets:{},Xe=B?B.placedOrientations:{};for(let ot in this.placements){let Tt=this.placements[ot],Kt=le[ot];Kt?(this.opacities[ot]=new pn(Kt,ee,Tt.text,Tt.icon),Q=Q||Tt.text!==Kt.text.placed||Tt.icon!==Kt.icon.placed):(this.opacities[ot]=new pn(null,ee,Tt.text,Tt.icon,Tt.skipFade),Q=Q||Tt.text||Tt.icon)}for(let ot in le){let Tt=le[ot];if(!this.opacities[ot]){let Kt=new pn(Tt,ee,!1,!1);Kt.isHidden()||(this.opacities[ot]=Kt,Q=Q||Tt.text.placed||Tt.icon.placed)}}for(let ot in qe)this.variableOffsets[ot]||!this.opacities[ot]||this.opacities[ot].isHidden()||(this.variableOffsets[ot]=qe[ot]);for(let ot in Xe)this.placedOrientations[ot]||!this.opacities[ot]||this.opacities[ot].isHidden()||(this.placedOrientations[ot]=Xe[ot]);if(B&&B.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");Q?this.lastPlacementChangeTime=w:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=B?B.lastPlacementChangeTime:w)}updateLayerOpacities(w,B){let Q={};for(let ee of B){let le=ee.getBucket(w);le&&ee.latestFeatureIndex&&w.id===le.layerIds[0]&&this.updateBucketOpacities(le,ee.tileID,Q,ee.collisionBoxArray)}}updateBucketOpacities(w,B,Q,ee){w.hasTextData()&&(w.text.opacityVertexArray.clear(),w.text.hasVisibleVertices=!1),w.hasIconData()&&(w.icon.opacityVertexArray.clear(),w.icon.hasVisibleVertices=!1),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexArray.clear(),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexArray.clear();let le=w.layers[0],qe=le.layout,Xe=new pn(null,0,!1,!1,!0),ot=qe.get("text-allow-overlap"),Tt=qe.get("icon-allow-overlap"),Kt=le._unevaluatedLayout.hasValue("text-variable-anchor")||le._unevaluatedLayout.hasValue("text-variable-anchor-offset"),Jt=qe.get("text-rotation-alignment")==="map",xr=qe.get("text-pitch-alignment")==="map",Pr=qe.get("icon-text-fit")!=="none",ve=new pn(null,0,ot&&(Tt||!w.hasIconData()||qe.get("icon-optional")),Tt&&(ot||!w.hasTextData()||qe.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let be=(Be,tt,We)=>{for(let it=0;it0,dr=this.placedOrientations[tt.crossTileID],Sr=dr===a.ah.vertical,Or=dr===a.ah.horizontal||dr===a.ah.horizontalOnly;if(We>0||it>0){let ii=en(Ht.text);be(w.text,We,Sr?cn:ii),be(w.text,it,Or?cn:ii);let Li=Ht.text.isHidden();[tt.rightJustifiedTextSymbolIndex,tt.centerJustifiedTextSymbolIndex,tt.leftJustifiedTextSymbolIndex].forEach(In=>{In>=0&&(w.text.placedSymbolArray.get(In).hidden=Li||Sr?1:0)}),tt.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(tt.verticalPlacedTextSymbolIndex).hidden=Li||Or?1:0);let un=this.variableOffsets[tt.crossTileID];un&&this.markUsedJustification(w,un.anchor,tt,dr);let sn=this.placedOrientations[tt.crossTileID];sn&&(this.markUsedJustification(w,"left",tt,sn),this.markUsedOrientation(w,sn,tt))}if(rr){let ii=en(Ht.icon),Li=!(Pr&&tt.verticalPlacedIconSymbolIndex&&Sr);tt.placedIconSymbolIndex>=0&&(be(w.icon,tt.numIconVertices,Li?ii:cn),w.icon.placedSymbolArray.get(tt.placedIconSymbolIndex).hidden=Ht.icon.isHidden()),tt.verticalPlacedIconSymbolIndex>=0&&(be(w.icon,tt.numVerticalIconVertices,Li?cn:ii),w.icon.placedSymbolArray.get(tt.verticalPlacedIconSymbolIndex).hidden=Ht.icon.isHidden())}let jr=Re&&Re.has(Be)?Re.get(Be):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let ii=w.collisionArrays[Be];if(ii){let Li=new a.P(0,0);if(ii.textBox||ii.verticalTextBox){let un=!0;if(Kt){let sn=this.variableOffsets[Dt];sn?(Li=Vt(sn.anchor,sn.width,sn.height,sn.textOffset,sn.textBoxScale),Jt&&Li._rotate(xr?this.transform.angle:-this.transform.angle)):un=!1}if(ii.textBox||ii.verticalTextBox){let sn;ii.textBox&&(sn=Sr),ii.verticalTextBox&&(sn=Or),tr(w.textCollisionBox.collisionVertexArray,Ht.text.placed,!un||sn,jr.text,Li.x,Li.y)}}if(ii.iconBox||ii.verticalIconBox){let un=!!(!Or&&ii.verticalIconBox),sn;ii.iconBox&&(sn=un),ii.verticalIconBox&&(sn=!un),tr(w.iconCollisionBox.collisionVertexArray,Ht.icon.placed,sn,jr.icon,Pr?Li.x:0,Pr?Li.y:0)}}}}if(w.sortFeatures(this.transform.angle),this.retainedQueryData[w.bucketInstanceId]&&(this.retainedQueryData[w.bucketInstanceId].featureSortOrder=w.featureSortOrder),w.hasTextData()&&w.text.opacityVertexBuffer&&w.text.opacityVertexBuffer.updateData(w.text.opacityVertexArray),w.hasIconData()&&w.icon.opacityVertexBuffer&&w.icon.opacityVertexBuffer.updateData(w.icon.opacityVertexArray),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexBuffer&&w.iconCollisionBox.collisionVertexBuffer.updateData(w.iconCollisionBox.collisionVertexArray),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexBuffer&&w.textCollisionBox.collisionVertexBuffer.updateData(w.textCollisionBox.collisionVertexArray),w.text.opacityVertexArray.length!==w.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${w.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${w.text.layoutVertexArray.length}) / 4`);if(w.icon.opacityVertexArray.length!==w.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${w.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${w.icon.layoutVertexArray.length}) / 4`);if(w.bucketInstanceId in this.collisionCircleArrays){let Be=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=Be.invProjMatrix,w.placementViewportMatrix=Be.viewportMatrix,w.collisionCircleArray=Be.circles,delete this.collisionCircleArrays[w.bucketInstanceId]}}symbolFadeChange(w){return this.fadeDuration===0?1:(w-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(w){return Math.max(0,(this.transform.zoom-w)/1.5)}hasTransitions(w){return this.stale||w-this.lastPlacementChangeTimew}setStale(){this.stale=!0}}function tr(ue,w,B,Q,ee,le){Q&&Q.length!==0||(Q=[0,0,0,0]);let qe=Q[0]-fi,Xe=Q[1]-fi,ot=Q[2]-fi,Tt=Q[3]-fi;ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,qe,Xe),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,ot,Xe),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,ot,Tt),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,qe,Tt)}let ar=Math.pow(2,25),Er=Math.pow(2,24),Zr=Math.pow(2,17),ri=Math.pow(2,16),$r=Math.pow(2,9),zi=Math.pow(2,8),Ji=Math.pow(2,1);function en(ue){if(ue.opacity===0&&!ue.placed)return 0;if(ue.opacity===1&&ue.placed)return 4294967295;let w=ue.placed?1:0,B=Math.floor(127*ue.opacity);return B*ar+w*Er+B*Zr+w*ri+B*$r+w*zi+B*Ji+w}let cn=0;function yn(){return{isOccluded:(ue,w,B)=>!1,getPitchedTextCorrection:(ue,w,B)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(ue,w,B,Q){throw new Error("Not implemented.")},translatePosition:(ue,w,B,Q)=>function(ee,le,qe,Xe,ot=!1){if(!qe[0]&&!qe[1])return[0,0];let Tt=ot?Xe==="map"?ee.angle:0:Xe==="viewport"?-ee.angle:0;if(Tt){let Kt=Math.sin(Tt),Jt=Math.cos(Tt);qe=[qe[0]*Jt-qe[1]*Kt,qe[0]*Kt+qe[1]*Jt]}return[ot?qe[0]:Pn(le,qe[0],ee.zoom),ot?qe[1]:Pn(le,qe[1],ee.zoom)]}(ue,w,B,Q),getCircleRadiusCorrection:ue=>1}}class Mn{constructor(w){this._sortAcrossTiles=w.layout.get("symbol-z-order")!=="viewport-y"&&!w.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(w,B,Q,ee,le){let qe=this._bucketParts;for(;this._currentTileIndexXe.sortKey-ot.sortKey));this._currentPartIndex!this._forceFullPlacement&&u.now()-ee>2;for(;this._currentPlacementIndex>=0;){let qe=B[w[this._currentPlacementIndex]],Xe=this.placement.collisionIndex.transform.zoom;if(qe.type==="symbol"&&(!qe.minzoom||qe.minzoom<=Xe)&&(!qe.maxzoom||qe.maxzoom>Xe)){if(this._inProgressLayer||(this._inProgressLayer=new Mn(qe)),this._inProgressLayer.continuePlacement(Q[qe.source],this.placement,this._showCollisionBoxes,qe,le))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(w){return this.placement.commit(w),this.placement}}let la=512/a.X/2;class ma{constructor(w,B,Q){this.tileID=w,this.bucketInstanceId=Q,this._symbolsByKey={};let ee=new Map;for(let le=0;le({x:Math.floor(ot.anchorX*la),y:Math.floor(ot.anchorY*la)})),crossTileIDs:qe.map(ot=>ot.crossTileID)};if(Xe.positions.length>128){let ot=new a.av(Xe.positions.length,16,Uint16Array);for(let{x:Tt,y:Kt}of Xe.positions)ot.add(Tt,Kt);ot.finish(),delete Xe.positions,Xe.index=ot}this._symbolsByKey[le]=Xe}}getScaledCoordinates(w,B){let{x:Q,y:ee,z:le}=this.tileID.canonical,{x:qe,y:Xe,z:ot}=B.canonical,Tt=la/Math.pow(2,ot-le),Kt=(Xe*a.X+w.anchorY)*Tt,Jt=ee*a.X*la;return{x:Math.floor((qe*a.X+w.anchorX)*Tt-Q*a.X*la),y:Math.floor(Kt-Jt)}}findMatches(w,B,Q){let ee=this.tileID.canonical.zw)}}class Wa{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Fa{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(w){let B=Math.round((w-this.lng)/360);if(B!==0)for(let Q in this.indexes){let ee=this.indexes[Q],le={};for(let qe in ee){let Xe=ee[qe];Xe.tileID=Xe.tileID.unwrapTo(Xe.tileID.wrap+B),le[Xe.tileID.key]=Xe}this.indexes[Q]=le}this.lng=w}addBucket(w,B,Q){if(this.indexes[w.overscaledZ]&&this.indexes[w.overscaledZ][w.key]){if(this.indexes[w.overscaledZ][w.key].bucketInstanceId===B.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(w.overscaledZ,this.indexes[w.overscaledZ][w.key])}for(let le=0;lew.overscaledZ)for(let Xe in qe){let ot=qe[Xe];ot.tileID.isChildOf(w)&&ot.findMatches(B.symbolInstances,w,ee)}else{let Xe=qe[w.scaledTo(Number(le)).key];Xe&&Xe.findMatches(B.symbolInstances,w,ee)}}for(let le=0;le{B[Q]=!0});for(let Q in this.layerIndexes)B[Q]||delete this.layerIndexes[Q]}}let da=(ue,w)=>a.t(ue,w&&w.filter(B=>B.identifier!=="source.canvas")),Wn=a.aw();class Ga extends a.E{constructor(w,B={}){super(),this._rtlPluginLoaded=()=>{for(let Q in this.sourceCaches){let ee=this.sourceCaches[Q].getSource().type;ee!=="vector"&&ee!=="geojson"||this.sourceCaches[Q].reload()}},this.map=w,this.dispatcher=new Le(Se(),w._getMapId()),this.dispatcher.registerMessageHandler("GG",(Q,ee)=>this.getGlyphs(Q,ee)),this.dispatcher.registerMessageHandler("GI",(Q,ee)=>this.getImages(Q,ee)),this.imageManager=new T,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,B.localIdeographFontFamily),this.lineAtlas=new oe(256,512),this.crossTileSymbolIndex=new Wo,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new a.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",a.ay()),er().on(ur,this._rtlPluginLoaded),this.on("data",Q=>{if(Q.dataType!=="source"||Q.sourceDataType!=="metadata")return;let ee=this.sourceCaches[Q.sourceId];if(!ee)return;let le=ee.getSource();if(le&&le.vectorLayerIds)for(let qe in this._layers){let Xe=this._layers[qe];Xe.source===le.id&&this._validateLayer(Xe)}})}loadURL(w,B={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),B.validate=typeof B.validate!="boolean"||B.validate;let ee=this.map._requestManager.transformRequest(w,"Style");this._loadStyleRequest=new AbortController;let le=this._loadStyleRequest;a.h(ee,this._loadStyleRequest).then(qe=>{this._loadStyleRequest=null,this._load(qe.data,B,Q)}).catch(qe=>{this._loadStyleRequest=null,qe&&!le.signal.aborted&&this.fire(new a.j(qe))})}loadJSON(w,B={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,B.validate=B.validate!==!1,this._load(w,B,Q)}).catch(()=>{})}loadEmpty(){this.fire(new a.k("dataloading",{dataType:"style"})),this._load(Wn,{validate:!1})}_load(w,B,Q){var ee;let le=B.transformStyle?B.transformStyle(Q,w):w;if(!B.validate||!da(this,a.u(le))){this._loaded=!0,this.stylesheet=le;for(let qe in le.sources)this.addSource(qe,le.sources[qe],{validate:!1});le.sprite?this._loadSprite(le.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(le.glyphs),this._createLayers(),this.light=new N(this.stylesheet.light),this.sky=new re(this.stylesheet.sky),this.map.setTerrain((ee=this.stylesheet.terrain)!==null&&ee!==void 0?ee:null),this.fire(new a.k("data",{dataType:"style"})),this.fire(new a.k("style.load"))}}_createLayers(){let w=a.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",w),this._order=w.map(B=>B.id),this._layers={},this._serializedLayers=null;for(let B of w){let Q=a.aA(B);Q.setEventedParent(this,{layer:{id:B.id}}),this._layers[B.id]=Q}}_loadSprite(w,B=!1,Q=void 0){let ee;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(le,qe,Xe,ot){return a._(this,void 0,void 0,function*(){let Tt=k(le),Kt=Xe>1?"@2x":"",Jt={},xr={};for(let{id:Pr,url:ve}of Tt){let be=qe.transformRequest(M(ve,Kt,".json"),"SpriteJSON");Jt[Pr]=a.h(be,ot);let Re=qe.transformRequest(M(ve,Kt,".png"),"SpriteImage");xr[Pr]=p.getImage(Re,ot)}return yield Promise.all([...Object.values(Jt),...Object.values(xr)]),function(Pr,ve){return a._(this,void 0,void 0,function*(){let be={};for(let Re in Pr){be[Re]={};let Be=u.getImageCanvasContext((yield ve[Re]).data),tt=(yield Pr[Re]).data;for(let We in tt){let{width:it,height:Dt,x:Ht,y:rr,sdf:dr,pixelRatio:Sr,stretchX:Or,stretchY:jr,content:ii,textFitWidth:Li,textFitHeight:un}=tt[We];be[Re][We]={data:null,pixelRatio:Sr,sdf:dr,stretchX:Or,stretchY:jr,content:ii,textFitWidth:Li,textFitHeight:un,spriteData:{width:it,height:Dt,x:Ht,y:rr,context:Be}}}}return be})}(Jt,xr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(le=>{if(this._spriteRequest=null,le)for(let qe in le){this._spritesImagesIds[qe]=[];let Xe=this._spritesImagesIds[qe]?this._spritesImagesIds[qe].filter(ot=>!(ot in le)):[];for(let ot of Xe)this.imageManager.removeImage(ot),this._changedImages[ot]=!0;for(let ot in le[qe]){let Tt=qe==="default"?ot:`${qe}:${ot}`;this._spritesImagesIds[qe].push(Tt),Tt in this.imageManager.images?this.imageManager.updateImage(Tt,le[qe][ot],!1):this.imageManager.addImage(Tt,le[qe][ot]),B&&(this._changedImages[Tt]=!0)}}}).catch(le=>{this._spriteRequest=null,ee=le,this.fire(new a.j(ee))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),B&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"})),Q&&Q(ee)})}_unloadSprite(){for(let w of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(w),this._changedImages[w]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}_validateLayer(w){let B=this.sourceCaches[w.source];if(!B)return;let Q=w.sourceLayer;if(!Q)return;let ee=B.getSource();(ee.type==="geojson"||ee.vectorLayerIds&&ee.vectorLayerIds.indexOf(Q)===-1)&&this.fire(new a.j(new Error(`Source layer "${Q}" does not exist on source "${ee.id}" as specified by style layer "${w.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let w in this.sourceCaches)if(!this.sourceCaches[w].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(w,B=!1){let Q=this._serializedAllLayers();if(!w||w.length===0)return Object.values(B?a.aB(Q):Q);let ee=[];for(let le of w)if(Q[le]){let qe=B?a.aB(Q[le]):Q[le];ee.push(qe)}return ee}_serializedAllLayers(){let w=this._serializedLayers;if(w)return w;w=this._serializedLayers={};let B=Object.keys(this._layers);for(let Q of B){let ee=this._layers[Q];ee.type!=="custom"&&(w[Q]=ee.serialize())}return w}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let w in this.sourceCaches)if(this.sourceCaches[w].hasTransition())return!0;for(let w in this._layers)if(this._layers[w].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(w){if(!this._loaded)return;let B=this._changed;if(B){let ee=Object.keys(this._updatedLayers),le=Object.keys(this._removedLayers);(ee.length||le.length)&&this._updateWorkerLayers(ee,le);for(let qe in this._updatedSources){let Xe=this._updatedSources[qe];if(Xe==="reload")this._reloadSource(qe);else{if(Xe!=="clear")throw new Error(`Invalid action ${Xe}`);this._clearSource(qe)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let qe in this._updatedPaintProps)this._layers[qe].updateTransitions(w);this.light.updateTransitions(w),this.sky.updateTransitions(w),this._resetUpdates()}let Q={};for(let ee in this.sourceCaches){let le=this.sourceCaches[ee];Q[ee]=le.used,le.used=!1}for(let ee of this._order){let le=this._layers[ee];le.recalculate(w,this._availableImages),!le.isHidden(w.zoom)&&le.source&&(this.sourceCaches[le.source].used=!0)}for(let ee in Q){let le=this.sourceCaches[ee];!!Q[ee]!=!!le.used&&le.fire(new a.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:ee}))}this.light.recalculate(w),this.sky.recalculate(w),this.z=w.zoom,B&&this.fire(new a.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let w=Object.keys(this._changedImages);if(w.length){for(let B in this.sourceCaches)this.sourceCaches[B].reloadTilesForDependencies(["icons","patterns"],w);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let w in this.sourceCaches)this.sourceCaches[w].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(w,B){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(w,!1),removedIds:B})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(w,B={}){var Q;this._checkLoaded();let ee=this.serialize();if(w=B.transformStyle?B.transformStyle(ee,w):w,((Q=B.validate)===null||Q===void 0||Q)&&da(this,a.u(w)))return!1;(w=a.aB(w)).layers=a.az(w.layers);let le=a.aC(ee,w),qe=this._getOperationsToPerform(le);if(qe.unimplemented.length>0)throw new Error(`Unimplemented: ${qe.unimplemented.join(", ")}.`);if(qe.operations.length===0)return!1;for(let Xe of qe.operations)Xe();return this.stylesheet=w,this._serializedLayers=null,!0}_getOperationsToPerform(w){let B=[],Q=[];for(let ee of w)switch(ee.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":B.push(()=>this.addLayer.apply(this,ee.args));break;case"removeLayer":B.push(()=>this.removeLayer.apply(this,ee.args));break;case"setPaintProperty":B.push(()=>this.setPaintProperty.apply(this,ee.args));break;case"setLayoutProperty":B.push(()=>this.setLayoutProperty.apply(this,ee.args));break;case"setFilter":B.push(()=>this.setFilter.apply(this,ee.args));break;case"addSource":B.push(()=>this.addSource.apply(this,ee.args));break;case"removeSource":B.push(()=>this.removeSource.apply(this,ee.args));break;case"setLayerZoomRange":B.push(()=>this.setLayerZoomRange.apply(this,ee.args));break;case"setLight":B.push(()=>this.setLight.apply(this,ee.args));break;case"setGeoJSONSourceData":B.push(()=>this.setGeoJSONSourceData.apply(this,ee.args));break;case"setGlyphs":B.push(()=>this.setGlyphs.apply(this,ee.args));break;case"setSprite":B.push(()=>this.setSprite.apply(this,ee.args));break;case"setSky":B.push(()=>this.setSky.apply(this,ee.args));break;case"setTerrain":B.push(()=>this.map.setTerrain.apply(this,ee.args));break;case"setTransition":B.push(()=>{});break;default:Q.push(ee.command)}return{operations:B,unimplemented:Q}}addImage(w,B){if(this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" already exists.`)));this.imageManager.addImage(w,B),this._afterImageUpdated(w)}updateImage(w,B){this.imageManager.updateImage(w,B)}getImage(w){return this.imageManager.getImage(w)}removeImage(w){if(!this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" does not exist.`)));this.imageManager.removeImage(w),this._afterImageUpdated(w)}_afterImageUpdated(w){this._availableImages=this.imageManager.listImages(),this._changedImages[w]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(w,B,Q={}){if(this._checkLoaded(),this.sourceCaches[w]!==void 0)throw new Error(`Source "${w}" already exists.`);if(!B.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(B).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(B.type)>=0&&this._validate(a.u.source,`sources.${w}`,B,null,Q))return;this.map&&this.map._collectResourceTiming&&(B.collectResourceTiming=!0);let ee=this.sourceCaches[w]=new yt(w,B,this.dispatcher);ee.style=this,ee.setEventedParent(this,()=>({isSourceLoaded:ee.loaded(),source:ee.serialize(),sourceId:w})),ee.onAdd(this.map),this._changed=!0}removeSource(w){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error("There is no source with this ID");for(let Q in this._layers)if(this._layers[Q].source===w)return this.fire(new a.j(new Error(`Source "${w}" cannot be removed while layer "${Q}" is using it.`)));let B=this.sourceCaches[w];delete this.sourceCaches[w],delete this._updatedSources[w],B.fire(new a.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:w})),B.setEventedParent(null),B.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(w,B){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error(`There is no source with this ID=${w}`);let Q=this.sourceCaches[w].getSource();if(Q.type!=="geojson")throw new Error(`geojsonSource.type is ${Q.type}, which is !== 'geojson`);Q.setData(B),this._changed=!0}getSource(w){return this.sourceCaches[w]&&this.sourceCaches[w].getSource()}addLayer(w,B,Q={}){this._checkLoaded();let ee=w.id;if(this.getLayer(ee))return void this.fire(new a.j(new Error(`Layer "${ee}" already exists on this map.`)));let le;if(w.type==="custom"){if(da(this,a.aD(w)))return;le=a.aA(w)}else{if("source"in w&&typeof w.source=="object"&&(this.addSource(ee,w.source),w=a.aB(w),w=a.e(w,{source:ee})),this._validate(a.u.layer,`layers.${ee}`,w,{arrayIndex:-1},Q))return;le=a.aA(w),this._validateLayer(le),le.setEventedParent(this,{layer:{id:ee}})}let qe=B?this._order.indexOf(B):this._order.length;if(B&&qe===-1)this.fire(new a.j(new Error(`Cannot add layer "${ee}" before non-existing layer "${B}".`)));else{if(this._order.splice(qe,0,ee),this._layerOrderChanged=!0,this._layers[ee]=le,this._removedLayers[ee]&&le.source&&le.type!=="custom"){let Xe=this._removedLayers[ee];delete this._removedLayers[ee],Xe.type!==le.type?this._updatedSources[le.source]="clear":(this._updatedSources[le.source]="reload",this.sourceCaches[le.source].pause())}this._updateLayer(le),le.onAdd&&le.onAdd(this.map)}}moveLayer(w,B){if(this._checkLoaded(),this._changed=!0,!this._layers[w])return void this.fire(new a.j(new Error(`The layer '${w}' does not exist in the map's style and cannot be moved.`)));if(w===B)return;let Q=this._order.indexOf(w);this._order.splice(Q,1);let ee=B?this._order.indexOf(B):this._order.length;B&&ee===-1?this.fire(new a.j(new Error(`Cannot move layer "${w}" before non-existing layer "${B}".`))):(this._order.splice(ee,0,w),this._layerOrderChanged=!0)}removeLayer(w){this._checkLoaded();let B=this._layers[w];if(!B)return void this.fire(new a.j(new Error(`Cannot remove non-existing layer "${w}".`)));B.setEventedParent(null);let Q=this._order.indexOf(w);this._order.splice(Q,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[w]=B,delete this._layers[w],this._serializedLayers&&delete this._serializedLayers[w],delete this._updatedLayers[w],delete this._updatedPaintProps[w],B.onRemove&&B.onRemove(this.map)}getLayer(w){return this._layers[w]}getLayersOrder(){return[...this._order]}hasLayer(w){return w in this._layers}setLayerZoomRange(w,B,Q){this._checkLoaded();let ee=this.getLayer(w);ee?ee.minzoom===B&&ee.maxzoom===Q||(B!=null&&(ee.minzoom=B),Q!=null&&(ee.maxzoom=Q),this._updateLayer(ee)):this.fire(new a.j(new Error(`Cannot set the zoom range of non-existing layer "${w}".`)))}setFilter(w,B,Q={}){this._checkLoaded();let ee=this.getLayer(w);if(ee){if(!a.aE(ee.filter,B))return B==null?(ee.filter=void 0,void this._updateLayer(ee)):void(this._validate(a.u.filter,`layers.${ee.id}.filter`,B,null,Q)||(ee.filter=a.aB(B),this._updateLayer(ee)))}else this.fire(new a.j(new Error(`Cannot filter non-existing layer "${w}".`)))}getFilter(w){return a.aB(this.getLayer(w).filter)}setLayoutProperty(w,B,Q,ee={}){this._checkLoaded();let le=this.getLayer(w);le?a.aE(le.getLayoutProperty(B),Q)||(le.setLayoutProperty(B,Q,ee),this._updateLayer(le)):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getLayoutProperty(w,B){let Q=this.getLayer(w);if(Q)return Q.getLayoutProperty(B);this.fire(new a.j(new Error(`Cannot get style of non-existing layer "${w}".`)))}setPaintProperty(w,B,Q,ee={}){this._checkLoaded();let le=this.getLayer(w);le?a.aE(le.getPaintProperty(B),Q)||(le.setPaintProperty(B,Q,ee)&&this._updateLayer(le),this._changed=!0,this._updatedPaintProps[w]=!0,this._serializedLayers=null):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getPaintProperty(w,B){return this.getLayer(w).getPaintProperty(B)}setFeatureState(w,B){this._checkLoaded();let Q=w.source,ee=w.sourceLayer,le=this.sourceCaches[Q];if(le===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let qe=le.getSource().type;qe==="geojson"&&ee?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):qe!=="vector"||ee?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),le.setFeatureState(ee,w.id,B)):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(w,B){this._checkLoaded();let Q=w.source,ee=this.sourceCaches[Q];if(ee===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let le=ee.getSource().type,qe=le==="vector"?w.sourceLayer:void 0;le!=="vector"||qe?B&&typeof w.id!="string"&&typeof w.id!="number"?this.fire(new a.j(new Error("A feature id is required to remove its specific state property."))):ee.removeFeatureState(qe,w.id,B):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(w){this._checkLoaded();let B=w.source,Q=w.sourceLayer,ee=this.sourceCaches[B];if(ee!==void 0)return ee.getSource().type!=="vector"||Q?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ee.getFeatureState(Q,w.id)):void this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new a.j(new Error(`The source '${B}' does not exist in the map's style.`)))}getTransition(){return a.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let w=a.aF(this.sourceCaches,le=>le.serialize()),B=this._serializeByIds(this._order,!0),Q=this.map.getTerrain()||void 0,ee=this.stylesheet;return a.aG({version:ee.version,name:ee.name,metadata:ee.metadata,light:ee.light,sky:ee.sky,center:ee.center,zoom:ee.zoom,bearing:ee.bearing,pitch:ee.pitch,sprite:ee.sprite,glyphs:ee.glyphs,transition:ee.transition,sources:w,layers:B,terrain:Q},le=>le!==void 0)}_updateLayer(w){this._updatedLayers[w.id]=!0,w.source&&!this._updatedSources[w.source]&&this.sourceCaches[w.source].getSource().type!=="raster"&&(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(w){let B=qe=>this._layers[qe].type==="fill-extrusion",Q={},ee=[];for(let qe=this._order.length-1;qe>=0;qe--){let Xe=this._order[qe];if(B(Xe)){Q[Xe]=qe;for(let ot of w){let Tt=ot[Xe];if(Tt)for(let Kt of Tt)ee.push(Kt)}}}ee.sort((qe,Xe)=>Xe.intersectionZ-qe.intersectionZ);let le=[];for(let qe=this._order.length-1;qe>=0;qe--){let Xe=this._order[qe];if(B(Xe))for(let ot=ee.length-1;ot>=0;ot--){let Tt=ee[ot].feature;if(Q[Tt.layer.id]{let dr=Be.featureSortOrder;if(dr){let Sr=dr.indexOf(Ht.featureIndex);return dr.indexOf(rr.featureIndex)-Sr}return rr.featureIndex-Ht.featureIndex});for(let Ht of Dt)it.push(Ht)}}for(let Be in ve)ve[Be].forEach(tt=>{let We=tt.feature,it=Tt[Xe[Be].source].getFeatureState(We.layer["source-layer"],We.id);We.source=We.layer.source,We.layer["source-layer"]&&(We.sourceLayer=We.layer["source-layer"]),We.state=it});return ve}(this._layers,qe,this.sourceCaches,w,B,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(le)}querySourceFeatures(w,B){B&&B.filter&&this._validate(a.u.filter,"querySourceFeatures.filter",B.filter,null,B);let Q=this.sourceCaches[w];return Q?function(ee,le){let qe=ee.getRenderableIds().map(Tt=>ee.getTileByID(Tt)),Xe=[],ot={};for(let Tt=0;Ttxr.getTileByID(Pr)).sort((Pr,ve)=>ve.tileID.overscaledZ-Pr.tileID.overscaledZ||(Pr.tileID.isLessThan(ve.tileID)?-1:1))}let Jt=this.crossTileSymbolIndex.addLayer(Kt,ot[Kt.source],w.center.lng);qe=qe||Jt}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((le=le||this._layerOrderChanged||Q===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(u.now(),w.zoom))&&(this.pauseablePlacement=new Ba(w,this.map.terrain,this._order,le,B,Q,ee,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,ot),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(u.now()),Xe=!0),qe&&this.pauseablePlacement.placement.setStale()),Xe||qe)for(let Tt of this._order){let Kt=this._layers[Tt];Kt.type==="symbol"&&this.placement.updateLayerOpacities(Kt,ot[Kt.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(u.now())}_releaseSymbolFadeTiles(){for(let w in this.sourceCaches)this.sourceCaches[w].releaseSymbolFadeTiles()}getImages(w,B){return a._(this,void 0,void 0,function*(){let Q=yield this.imageManager.getImages(B.icons);this._updateTilesForChangedImages();let ee=this.sourceCaches[B.source];return ee&&ee.setDependencies(B.tileID.key,B.type,B.icons),Q})}getGlyphs(w,B){return a._(this,void 0,void 0,function*(){let Q=yield this.glyphManager.getGlyphs(B.stacks),ee=this.sourceCaches[B.source];return ee&&ee.setDependencies(B.tileID.key,B.type,[""]),Q})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(w,B={}){this._checkLoaded(),w&&this._validate(a.u.glyphs,"glyphs",w,null,B)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=w,this.glyphManager.entries={},this.glyphManager.setURL(w))}addSprite(w,B,Q={},ee){this._checkLoaded();let le=[{id:w,url:B}],qe=[...k(this.stylesheet.sprite),...le];this._validate(a.u.sprite,"sprite",qe,null,Q)||(this.stylesheet.sprite=qe,this._loadSprite(le,!0,ee))}removeSprite(w){this._checkLoaded();let B=k(this.stylesheet.sprite);if(B.find(Q=>Q.id===w)){if(this._spritesImagesIds[w])for(let Q of this._spritesImagesIds[w])this.imageManager.removeImage(Q),this._changedImages[Q]=!0;B.splice(B.findIndex(Q=>Q.id===w),1),this.stylesheet.sprite=B.length>0?B:void 0,delete this._spritesImagesIds[w],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}else this.fire(new a.j(new Error(`Sprite "${w}" doesn't exists on this map.`)))}getSprite(){return k(this.stylesheet.sprite)}setSprite(w,B={},Q){this._checkLoaded(),w&&this._validate(a.u.sprite,"sprite",w,null,B)||(this.stylesheet.sprite=w,w?this._loadSprite(w,!0,Q):(this._unloadSprite(),Q&&Q(null)))}}var vo=a.Y([{name:"a_pos",type:"Int16",components:2}]);let jn={prelude:St(`#ifdef GL_ES +{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var nHe=ye((Z_r,iHe)=>{iHe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var bx=ye((Y_r,uHe)=>{"use strict";var Jjt=Z1(),$jt=rHe(),Qjt=nHe(),eWt='\xA9 OpenStreetMap contributors',aHe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",oHe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",e7="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",tWt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",rWt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",iWt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",lHe={basic:e7,streets:e7,outdoors:e7,light:aHe,dark:oHe,satellite:Qjt,"satellite-streets":$jt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:eWt,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":aHe,"carto-darkmatter":oHe,"carto-voyager":e7,"carto-positron-nolabels":tWt,"carto-darkmatter-nolabels":rWt,"carto-voyager-nolabels":iWt},sHe=Jjt(lHe);uHe.exports={styleValueDflt:"basic",stylesMap:lHe,styleValuesMap:sHe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",sHe.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error."}});var jC=ye((K_r,vHe)=>{"use strict";var cHe=Dr(),fHe=Ca().defaultLine,nWt=kc().attributes,aWt=ec(),oWt=pf().textposition,sWt=mc().overrideAll,lWt=pl().templatedArray,hHe=bx(),dHe=aWt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});dHe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var uWt=vHe.exports=sWt({_arrayAttrRegexps:[cHe.counterRegex("map",".layers",!0)],domain:nWt({name:"map"}),style:{valType:"any",values:hHe.styleValuesMap,dflt:hHe.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:lWt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:fHe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:fHe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:dHe,textposition:cHe.extendFlat({},oWt,{arrayOk:!1})}})},"plot","from-root");uWt.uirevision={valType:"any",editType:"none"}});var t7=ye((J_r,mHe)=>{"use strict";var cWt=Qo().hovertemplateAttrs,fWt=Qo().texttemplateAttrs,hWt=Cg(),WC=G2(),S5=pf(),pHe=jC(),dWt=Gl(),vWt=Tu(),rw=Ao().extendFlat,pWt=mc().overrideAll,gWt=jC(),gHe=WC.line,M5=WC.marker;mHe.exports=pWt({lon:WC.lon,lat:WC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:rw({},gWt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:rw({},M5.opacity,{dflt:1})},mode:rw({},S5.mode,{dflt:"markers"}),text:rw({},S5.text,{}),texttemplate:fWt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:rw({},S5.hovertext,{}),line:{color:gHe.color,width:gHe.width},connectgaps:S5.connectgaps,marker:rw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:M5.opacity,size:M5.size,sizeref:M5.sizeref,sizemin:M5.sizemin,sizemode:M5.sizemode},vWt("marker")),fill:WC.fill,fillcolor:hWt(),textfont:pHe.layers.symbol.textfont,textposition:pHe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:S5.selected.marker},unselected:{marker:S5.unselected.marker},hoverinfo:rw({},dWt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:cWt()},"calc","nested")});var _J=ye(($_r,yHe)=>{"use strict";var mWt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];yHe.exports={isSupportedFont:function(e){return mWt.indexOf(e)!==-1}}});var bHe=ye((Q_r,xHe)=>{"use strict";var XC=Dr(),xJ=Ru(),yWt=$p(),_Wt=D0(),xWt=F0(),bWt=Ig(),_He=t7(),wWt=_J().isSupportedFont;xHe.exports=function(t,r,n,i){function a(p,C){return XC.coerce(t,r,_He,p,C)}function o(p,C){return XC.coerce2(t,r,_He,p,C)}var s=TWt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),xJ.hasMarkers(r)){yWt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(XC.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),XC.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}xJ.hasLines(r)&&(_Wt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,_=a("cluster.enabled",v);if(_||xJ.hasText(r)){var b=i.font.family;xWt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:wWt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&bWt(t,r,n,a),XC.coerceSelectionMarkerOpacity(r,a)};function TWt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var bJ=ye((exr,THe)=>{"use strict";var wHe=ho();THe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=wHe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=wHe.tickText(o,o.c2l(s[1]),!0).text,i}});var wJ=ye((txr,SHe)=>{"use strict";var AHe=Dr();SHe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=AHe.isArrayOrTypedArray(r)?AHe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var PHe=ye((rxr,LHe)=>{"use strict";var CHe=Eo(),ov=Dr(),AWt=hs().BADNUM,i7=tx(),MHe=tc(),SWt=So(),MWt=S3(),n7=Ru(),EWt=_J().isSupportedFont,CWt=wJ(),kWt=ip().appendArrayPointValue,LWt=ru().NEWLINES,PWt=ru().BR_TAG_ALL;LHe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=n7.hasLines(n),s=n7.hasMarkers(n),l=n7.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=r7("fill"),d=r7("line"),v=r7("circle"),_=r7("symbol"),b={fill:h,line:d,circle:v,symbol:_};if(!i)return b;var p;if((a||o)&&(p=i7.calcTraceToLineCoords(r)),a&&(h.geojson=i7.makePolygon(p),h.layout.visibility="visible",ov.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=i7.makeLine(p),d.layout.visibility="visible",ov.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var C=IWt(r);v.geojson=C.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":AJ(n.cluster.color,n.cluster.step),"circle-radius":AJ(n.cluster.size,n.cluster.step),"circle-opacity":AJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":EHe(n),"text-size":12}}),ov.extendFlat(v.paint,{"circle-color":C.mcc,"circle-radius":C.mrc,"circle-opacity":C.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(_.geojson=RWt(r,t),ov.extendFlat(_.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(ov.extendFlat(_.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&ov.extendFlat(_.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),_.layout["icon-allow-overlap"]=n.marker.allowoverlap,ov.extendFlat(_.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var E=(n.marker||{}).size,A=CWt(n.textposition,E);ov.extendFlat(_.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":EHe(n)}),ov.extendFlat(_.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function r7(e){return{type:e,geojson:i7.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function IWt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=ov.isArrayOrTypedArray(r.color),a=ov.isArrayOrTypedArray(r.size),o=ov.isArrayOrTypedArray(r.opacity),s;function l(E){return t.opacity*E}function u(E){return E/2}var c;i&&(MHe.hasColorscale(t,"marker")?c=MHe.makeColorScaleFuncFromTrace(r):c=ov.identity);var f;a&&(f=MWt(t));var h;o&&(h=function(E){var A=CHe(E)?+ov.constrain(E,0,1):0;return l(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),EWt(s)||(s=r);var l=s.split(", ");return l}});var FHe=ye((ixr,DHe)=>{"use strict";var DWt=Dr(),IHe=PHe(),E5=bx().traceLayerPrefix,ag={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function RHe(e,t,r,n){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:E5+t+"-fill",line:E5+t+"-line",circle:E5+t+"-circle",symbol:E5+t+"-symbol",cluster:E5+t+"-cluster",clusterCount:E5+t+"-cluster-count"},this.below=null}var ZC=RHe.prototype;ZC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&DWt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};ZC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};ZC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var x=A[L];i.removeLayer(u.layerIds[x])}E||i.removeSource(u.sourceIds.circle)}function h(E){for(var A=ag.nonCluster,L=0;L=0;L--){var x=A[L];i.removeLayer(u.layerIds[x]),E||i.removeSource(u.sourceIds[x])}}function v(E){l?f(E):d(E)}function _(E){s?c(E):h(E)}function b(){for(var E=s?ag.cluster:ag.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};DHe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new RHe(t,n.uid,i,a),s=IHe(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var FWt=vf(),SJ=Dr(),zWt=sT(),OWt=SJ.fillText,qWt=hs().BADNUM,BWt=bx().traceLayerPrefix;function NWt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=BWt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function _(M){var g=M.lonlat;if(g[0]===qWt||c&&l.indexOf(M.i+1)===-1)return 1/0;var P=SJ.modHalf(g[0],360),T=g[1],z=s.project([P,T]),O=z.x-a.c2p([v,T]),V=z.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(O*O+V*V)-G,1-3/G)}if(FWt.getClosest(n,_,e),e.index!==!1){var b=n[e.index],p=b.lonlat,C=[SJ.modHalf(p[0],360)+d,p[1]],E=a.c2p(C),A=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=A-L,e.y1=A+L;var x={};x[i.subplot]={_subplot:s};var k=i._module.formatLabels(b,i,x);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=zWt(i,b),e.extraText=zHe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function zHe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||i.indexOf("text")!==-1)&&OWt(t,e,u),u.join("
")}OHe.exports={hoverPoints:NWt,getExtraText:zHe}});var BHe=ye((axr,qHe)=>{"use strict";qHe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var UHe=ye((oxr,NHe)=>{"use strict";var UWt=Dr(),VWt=Ru(),GWt=hs().BADNUM;NHe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!VWt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof MJ=="object"&&typeof EJ!="undefined"?EJ.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(MJ,function(){"use strict";var e={},t={};function r(i,a,o){if(t[i]=o,i==="index"){var s="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",l={};return t.shared(l),t.index(e,l),typeof window!="undefined"&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([s],{type:"text/javascript"}))),e}}r("shared",["exports"],function(i){"use strict";function a(R,S,F,W){return new(F||(F=Promise))(function(te,fe){function pe(ut){try{Ke(W.next(ut))}catch(Lt){fe(Lt)}}function ze(ut){try{Ke(W.throw(ut))}catch(Lt){fe(Lt)}}function Ke(ut){var Lt;ut.done?te(ut.value):(Lt=ut.value,Lt instanceof F?Lt:new F(function(Qt){Qt(Lt)})).then(pe,ze)}Ke((W=W.apply(R,S||[])).next())})}function o(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}typeof SuppressedError=="function"&&SuppressedError;var s=l;function l(R,S){this.x=R,this.y=S}l.prototype={clone:function(){return new l(this.x,this.y)},add:function(R){return this.clone()._add(R)},sub:function(R){return this.clone()._sub(R)},multByPoint:function(R){return this.clone()._multByPoint(R)},divByPoint:function(R){return this.clone()._divByPoint(R)},mult:function(R){return this.clone()._mult(R)},div:function(R){return this.clone()._div(R)},rotate:function(R){return this.clone()._rotate(R)},rotateAround:function(R,S){return this.clone()._rotateAround(R,S)},matMult:function(R){return this.clone()._matMult(R)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(R){return this.x===R.x&&this.y===R.y},dist:function(R){return Math.sqrt(this.distSqr(R))},distSqr:function(R){var S=R.x-this.x,F=R.y-this.y;return S*S+F*F},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(R){return Math.atan2(this.y-R.y,this.x-R.x)},angleWith:function(R){return this.angleWithSep(R.x,R.y)},angleWithSep:function(R,S){return Math.atan2(this.x*S-this.y*R,this.x*R+this.y*S)},_matMult:function(R){var S=R[2]*this.x+R[3]*this.y;return this.x=R[0]*this.x+R[1]*this.y,this.y=S,this},_add:function(R){return this.x+=R.x,this.y+=R.y,this},_sub:function(R){return this.x-=R.x,this.y-=R.y,this},_mult:function(R){return this.x*=R,this.y*=R,this},_div:function(R){return this.x/=R,this.y/=R,this},_multByPoint:function(R){return this.x*=R.x,this.y*=R.y,this},_divByPoint:function(R){return this.x/=R.x,this.y/=R.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var R=this.y;return this.y=this.x,this.x=-R,this},_rotate:function(R){var S=Math.cos(R),F=Math.sin(R),W=F*this.x+S*this.y;return this.x=S*this.x-F*this.y,this.y=W,this},_rotateAround:function(R,S){var F=Math.cos(R),W=Math.sin(R),te=S.y+W*(this.x-S.x)+F*(this.y-S.y);return this.x=S.x+F*(this.x-S.x)-W*(this.y-S.y),this.y=te,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},l.convert=function(R){return R instanceof l?R:Array.isArray(R)?new l(R[0],R[1]):R};var u=o(s),c=f;function f(R,S,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(W-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=S,this.p2x=F,this.p2y=W}f.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,S){if(S===void 0&&(S=1e-6),R<0)return 0;if(R>1)return 1;for(var F=R,W=0;W<8;W++){var te=this.sampleCurveX(F)-R;if(Math.abs(te)te?pe=F:ze=F,F=.5*(ze-pe)+pe;return F},solve:function(R,S){return this.sampleCurveY(this.solveCurveX(R,S))}};var h=o(c);let d,v;function _(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(v==null&&(v=!1,_())){let S=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(S){for(let W=0;W<5*5;W++){let te=4*W;S.fillStyle=`rgb(${te},${te+1},${te+2})`,S.fillRect(W%5,Math.floor(W/5),1,1)}let F=S.getImageData(0,0,5,5).data;for(let W=0;W<5*5*4;W++)if(W%4!=3&&F[W]!==W){v=!0;break}}}return v||!1}function p(R,S,F,W){let te=new h(R,S,F,W);return fe=>te.solve(fe)}let C=p(.25,.1,.25,1);function E(R,S,F){return Math.min(F,Math.max(S,R))}function A(R,S,F){let W=F-S,te=((R-S)%W+W)%W+S;return te===S?F:te}function L(R,...S){for(let F of S)for(let W in F)R[W]=F[W];return R}let x=1;function k(R,S,F){let W={};for(let te in R)W[te]=S.call(this,R[te],te,R);return W}function M(R,S,F){let W={};for(let te in R)S.call(this,R[te],te,R)&&(W[te]=R[te]);return W}function g(R){return Array.isArray(R)?R.map(g):typeof R=="object"&&R?k(R,g):R}let P={};function T(R){P[R]||(typeof console!="undefined"&&console.warn(R),P[R]=!0)}function z(R,S,F){return(F.y-R.y)*(S.x-R.x)>(S.y-R.y)*(F.x-R.x)}function O(R){return typeof WorkerGlobalScope!="undefined"&&R!==void 0&&R instanceof WorkerGlobalScope}let V=null;function G(R){return typeof ImageBitmap!="undefined"&&R instanceof ImageBitmap}let Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function H(R,S,F,W,te){return a(this,void 0,void 0,function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let fe=new VideoFrame(R,{timestamp:0});try{let pe=fe==null?void 0:fe.format;if(!pe||!pe.startsWith("BGR")&&!pe.startsWith("RGB"))throw new Error(`Unrecognized format ${pe}`);let ze=pe.startsWith("BGR"),Ke=new Uint8ClampedArray(W*te*4);if(yield fe.copyTo(Ke,function(ut,Lt,Qt,fr,mr){let Lr=4*Math.max(-Lt,0),zr=(Math.max(0,Qt)-Qt)*fr*4+Lr,ui=4*fr,yi=Math.max(0,Lt),dn=Math.max(0,Qt);return{rect:{x:yi,y:dn,width:Math.min(ut.width,Lt+fr)-yi,height:Math.min(ut.height,Qt+mr)-dn},layout:[{offset:zr,stride:ui}]}}(R,S,F,W,te)),ze)for(let ut=0;utO(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,Se=function(R,S){if(/:\/\//.test(R.url)&&!/^https?:|^file:/.test(R.url)){let W=Me(R.url);if(W)return W(R,S);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,targetMapId:ke},S)}if(!(/^file:/.test(F=R.url)||/^file:/.test(ie())&&!/^\w+:/.test(F))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(W,te){return a(this,void 0,void 0,function*(){let fe=new Request(W.url,{method:W.method||"GET",body:W.body,credentials:W.credentials,headers:W.headers,cache:W.cache,referrer:ie(),signal:te.signal});W.type!=="json"||fe.headers.has("Accept")||fe.headers.set("Accept","application/json");let pe=yield fetch(fe);if(!pe.ok){let ut=yield pe.blob();throw new me(pe.status,pe.statusText,W.url,ut)}let ze;ze=W.type==="arrayBuffer"||W.type==="image"?pe.arrayBuffer():W.type==="json"?pe.json():pe.text();let Ke=yield ze;if(te.signal.aborted)throw oe();return{data:Ke,cacheControl:pe.headers.get("Cache-Control"),expires:pe.headers.get("Expires")}})}(R,S);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,mustQueue:!0,targetMapId:ke},S)}var F;return function(W,te){return new Promise((fe,pe)=>{var ze;let Ke=new XMLHttpRequest;Ke.open(W.method||"GET",W.url,!0),W.type!=="arrayBuffer"&&W.type!=="image"||(Ke.responseType="arraybuffer");for(let ut in W.headers)Ke.setRequestHeader(ut,W.headers[ut]);W.type==="json"&&(Ke.responseType="text",!((ze=W.headers)===null||ze===void 0)&&ze.Accept||Ke.setRequestHeader("Accept","application/json")),Ke.withCredentials=W.credentials==="include",Ke.onerror=()=>{pe(new Error(Ke.statusText))},Ke.onload=()=>{if(!te.signal.aborted)if((Ke.status>=200&&Ke.status<300||Ke.status===0)&&Ke.response!==null){let ut=Ke.response;if(W.type==="json")try{ut=JSON.parse(Ke.response)}catch(Lt){return void pe(Lt)}fe({data:ut,cacheControl:Ke.getResponseHeader("Cache-Control"),expires:Ke.getResponseHeader("Expires")})}else{let ut=new Blob([Ke.response],{type:Ke.getResponseHeader("Content-Type")});pe(new me(Ke.status,Ke.statusText,W.url,ut))}},te.signal.addEventListener("abort",()=>{Ke.abort(),pe(oe())}),Ke.send(W.body)})}(R,S)};function Le(R){if(!R||R.indexOf("://")<=0||R.indexOf("data:image/")===0||R.indexOf("blob:")===0)return!0;let S=new URL(R),F=window.location;return S.protocol===F.protocol&&S.host===F.host}function Ae(R,S,F){F[R]&&F[R].indexOf(S)!==-1||(F[R]=F[R]||[],F[R].push(S))}function De(R,S,F){if(F&&F[R]){let W=F[R].indexOf(S);W!==-1&&F[R].splice(W,1)}}class Pe{constructor(S,F={}){L(this,F),this.type=S}}class ge extends Pe{constructor(S,F={}){super("error",L({error:S},F))}}class Fe{on(S,F){return this._listeners=this._listeners||{},Ae(S,F,this._listeners),this}off(S,F){return De(S,F,this._listeners),De(S,F,this._oneTimeListeners),this}once(S,F){return F?(this._oneTimeListeners=this._oneTimeListeners||{},Ae(S,F,this._oneTimeListeners),this):new Promise(W=>this.once(S,W))}fire(S,F){typeof S=="string"&&(S=new Pe(S,F||{}));let W=S.type;if(this.listens(W)){S.target=this;let te=this._listeners&&this._listeners[W]?this._listeners[W].slice():[];for(let ze of te)ze.call(this,S);let fe=this._oneTimeListeners&&this._oneTimeListeners[W]?this._oneTimeListeners[W].slice():[];for(let ze of fe)De(W,ze,this._oneTimeListeners),ze.call(this,S);let pe=this._eventedParent;pe&&(L(S,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),pe.fire(S))}else S instanceof ge&&console.error(S.error);return this}listens(S){return this._listeners&&this._listeners[S]&&this._listeners[S].length>0||this._oneTimeListeners&&this._oneTimeListeners[S]&&this._oneTimeListeners[S].length>0||this._eventedParent&&this._eventedParent.listens(S)}setEventedParent(S,F){return this._eventedParent=S,this._eventedParentData=F,this}}var ce={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let Ze=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function ct(R,S){let F={};for(let W in R)W!=="ref"&&(F[W]=R[W]);return Ze.forEach(W=>{W in S&&(F[W]=S[W])}),F}function pt(R,S){if(Array.isArray(R)){if(!Array.isArray(S)||R.length!==S.length)return!1;for(let F=0;F`:R.itemType.kind==="value"?"array":`array<${S}>`}return R.kind}let je=[Ut,Ft,bt,yt,Yt,ei,lr,Ge(Tr),Wr,Ur,dt];function $e(R,S){if(S.kind==="error")return null;if(R.kind==="array"){if(S.kind==="array"&&(S.N===0&&S.itemType.kind==="value"||!$e(R.itemType,S.itemType))&&(typeof R.N!="number"||R.N===S.N))return null}else{if(R.kind===S.kind)return null;if(R.kind==="value"){for(let F of je)if(!$e(F,S))return null}}return`Expected ${Je(R)} but found ${Je(S)} instead.`}function wt(R,S){return S.some(F=>F.kind===R.kind)}function Ie(R,S){return S.some(F=>F==="null"?R===null:F==="array"?Array.isArray(R):F==="object"?R&&!Array.isArray(R)&&typeof R=="object":F===typeof R)}function xe(R,S){return R.kind==="array"&&S.kind==="array"?R.itemType.kind===S.itemType.kind&&typeof R.N=="number":R.kind===S.kind}let Ce=.96422,vt=.82521,nr=4/29,ir=6/29,pr=3*ir*ir,oi=ir*ir*ir,di=Math.PI/180,Jr=180/Math.PI;function fi(R){return(R%=360)<0&&(R+=360),R}function Hi([R,S,F,W]){let te,fe,pe=wn((.2225045*(R=Pn(R))+.7168786*(S=Pn(S))+.0606169*(F=Pn(F)))/1);R===S&&S===F?te=fe=pe:(te=wn((.4360747*R+.3850649*S+.1430804*F)/Ce),fe=wn((.0139322*R+.0971045*S+.7141733*F)/vt));let ze=116*pe-16;return[ze<0?0:ze,500*(te-pe),200*(pe-fe),W]}function Pn(R){return R<=.04045?R/12.92:Math.pow((R+.055)/1.055,2.4)}function wn(R){return R>oi?Math.pow(R,1/3):R/pr+nr}function pn([R,S,F,W]){let te=(R+16)/116,fe=isNaN(S)?te:te+S/500,pe=isNaN(F)?te:te-F/200;return te=1*kn(te),fe=Ce*kn(fe),pe=vt*kn(pe),[Vn(3.1338561*fe-1.6168667*te-.4906146*pe),Vn(-.9787684*fe+1.9161415*te+.033454*pe),Vn(.0719453*fe-.2289914*te+1.4052427*pe),W]}function Vn(R){return(R=R<=.00304?12.92*R:1.055*Math.pow(R,1/2.4)-.055)<0?0:R>1?1:R}function kn(R){return R>ir?R*R*R:pr*(R-nr)}function ea(R){return parseInt(R.padEnd(2,R),16)/255}function ua(R,S){return Vt(S?R/100:R,0,1)}function Vt(R,S,F){return Math.min(Math.max(S,R),F)}function _t(R){return!R.some(Number.isNaN)}let tr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class ar{constructor(S,F,W,te=1,fe=!0){this.r=S,this.g=F,this.b=W,this.a=te,fe||(this.r*=te,this.g*=te,this.b*=te,te||this.overwriteGetter("rgb",[S,F,W,te]))}static parse(S){if(S instanceof ar)return S;if(typeof S!="string")return;let F=function(W){if((W=W.toLowerCase().trim())==="transparent")return[0,0,0,0];let te=tr[W];if(te){let[pe,ze,Ke]=te;return[pe/255,ze/255,Ke/255,1]}if(W.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(W)){let pe=W.length<6?1:2,ze=1;return[ea(W.slice(ze,ze+=pe)),ea(W.slice(ze,ze+=pe)),ea(W.slice(ze,ze+=pe)),ea(W.slice(ze,ze+pe)||"ff")]}if(W.startsWith("rgb")){let pe=W.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(pe){let[ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn]=pe,Fi=[Lt||" ",mr||" ",ui].join("");if(Fi===" "||Fi===" /"||Fi===",,"||Fi===",,,"){let ln=[ut,fr,zr].join(""),An=ln==="%%%"?100:ln===""?255:0;if(An){let pa=[Vt(+Ke/An,0,1),Vt(+Qt/An,0,1),Vt(+Lr/An,0,1),yi?ua(+yi,dn):1];if(_t(pa))return pa}}return}}let fe=W.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(fe){let[pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr]=fe,zr=[Ke||" ",Lt||" ",fr].join("");if(zr===" "||zr===" /"||zr===",,"||zr===",,,"){let ui=[+ze,Vt(+ut,0,100),Vt(+Qt,0,100),mr?ua(+mr,Lr):1];if(_t(ui))return function([yi,dn,Fi,ln]){function An(pa){let ro=(pa+yi/30)%12,Vo=dn*Math.min(Fi,1-Fi);return Fi-Vo*Math.max(-1,Math.min(ro-3,9-ro,1))}return yi=fi(yi),dn/=100,Fi/=100,[An(0),An(8),An(4),ln]}(ui)}}}(S);return F?new ar(...F,!1):void 0}get rgb(){let{r:S,g:F,b:W,a:te}=this,fe=te||1/0;return this.overwriteGetter("rgb",[S/fe,F/fe,W/fe,te])}get hcl(){return this.overwriteGetter("hcl",function(S){let[F,W,te,fe]=Hi(S),pe=Math.sqrt(W*W+te*te);return[Math.round(1e4*pe)?fi(Math.atan2(te,W)*Jr):NaN,pe,F,fe]}(this.rgb))}get lab(){return this.overwriteGetter("lab",Hi(this.rgb))}overwriteGetter(S,F){return Object.defineProperty(this,S,{value:F}),F}toString(){let[S,F,W,te]=this.rgb;return`rgba(${[S,F,W].map(fe=>Math.round(255*fe)).join(",")},${te})`}}ar.black=new ar(0,0,0,1),ar.white=new ar(1,1,1,1),ar.transparent=new ar(0,0,0,0),ar.red=new ar(1,0,0,1);class Er{constructor(S,F,W){this.sensitivity=S?F?"variant":"case":F?"accent":"base",this.locale=W,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(S,F){return this.collator.compare(S,F)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Zr{constructor(S,F,W,te,fe){this.text=S,this.image=F,this.scale=W,this.fontStack=te,this.textColor=fe}}class ri{constructor(S){this.sections=S}static fromString(S){return new ri([new Zr(S,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(S=>S.text.length!==0||S.image&&S.image.name.length!==0)}static factory(S){return S instanceof ri?S:ri.fromString(S)}toString(){return this.sections.length===0?"":this.sections.map(S=>S.text).join("")}}class $r{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof $r)return S;if(typeof S=="number")return new $r([S,S,S,S]);if(Array.isArray(S)&&!(S.length<1||S.length>4)){for(let F of S)if(typeof F!="number")return;switch(S.length){case 1:S=[S[0],S[0],S[0],S[0]];break;case 2:S=[S[0],S[1],S[0],S[1]];break;case 3:S=[S[0],S[1],S[2],S[1]]}return new $r(S)}}toString(){return JSON.stringify(this.values)}}let zi=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class Ji{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof Ji)return S;if(Array.isArray(S)&&!(S.length<1)&&S.length%2==0){for(let F=0;F=0&&R<=255&&typeof S=="number"&&S>=0&&S<=255&&typeof F=="number"&&F>=0&&F<=255?W===void 0||typeof W=="number"&&W>=0&&W<=1?null:`Invalid rgba value [${[R,S,F,W].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof W=="number"?[R,S,F,W]:[R,S,F]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function yn(R){if(R===null||typeof R=="string"||typeof R=="boolean"||typeof R=="number"||R instanceof ar||R instanceof Er||R instanceof ri||R instanceof $r||R instanceof Ji||R instanceof en)return!0;if(Array.isArray(R)){for(let S of R)if(!yn(S))return!1;return!0}if(typeof R=="object"){for(let S in R)if(!yn(R[S]))return!1;return!0}return!1}function Mn(R){if(R===null)return Ut;if(typeof R=="string")return bt;if(typeof R=="boolean")return yt;if(typeof R=="number")return Ft;if(R instanceof ar)return Yt;if(R instanceof Er)return Rr;if(R instanceof ri)return ei;if(R instanceof $r)return Wr;if(R instanceof Ji)return dt;if(R instanceof en)return Ur;if(Array.isArray(R)){let S=R.length,F;for(let W of R){let te=Mn(W);if(F){if(F===te)continue;F=Tr;break}F=te}return Ge(F||Tr,S)}return lr}function Ba(R){let S=typeof R;return R===null?"":S==="string"||S==="number"||S==="boolean"?String(R):R instanceof ar||R instanceof ri||R instanceof $r||R instanceof Ji||R instanceof en?R.toString():JSON.stringify(R)}class la{constructor(S,F){this.type=S,this.value=F}static parse(S,F){if(S.length!==2)return F.error(`'literal' expression requires exactly one argument, but found ${S.length-1} instead.`);if(!yn(S[1]))return F.error("invalid value");let W=S[1],te=Mn(W),fe=F.expectedType;return te.kind!=="array"||te.N!==0||!fe||fe.kind!=="array"||typeof fe.N=="number"&&fe.N!==0||(te=fe),new la(te,W)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class ma{constructor(S){this.name="ExpressionEvaluationError",this.message=S}toJSON(){return this.message}}let Wa={string:bt,number:Ft,boolean:yt,object:lr};class Fa{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W,te=1,fe=S[0];if(fe==="array"){let ze,Ke;if(S.length>2){let ut=S[1];if(typeof ut!="string"||!(ut in Wa)||ut==="object")return F.error('The item type argument of "array" must be one of string, number, boolean',1);ze=Wa[ut],te++}else ze=Tr;if(S.length>3){if(S[2]!==null&&(typeof S[2]!="number"||S[2]<0||S[2]!==Math.floor(S[2])))return F.error('The length argument to "array" must be a positive integer literal',2);Ke=S[2],te++}W=Ge(ze,Ke)}else{if(!Wa[fe])throw new Error(`Types doesn't contain name = ${fe}`);W=Wa[fe]}let pe=[];for(;teS.outputDefined())}}let Wo={"to-boolean":yt,"to-color":Yt,"to-number":Ft,"to-string":bt};class da{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W=S[0];if(!Wo[W])throw new Error(`Can't parse ${W} as it is not part of the known types`);if((W==="to-boolean"||W==="to-string")&&S.length!==2)return F.error("Expected one argument.");let te=Wo[W],fe=[];for(let pe=1;pe4?`Invalid rbga value ${JSON.stringify(F)}: expected an array containing either three or four numeric values.`:cn(F[0],F[1],F[2],F[3]),!W))return new ar(F[0]/255,F[1]/255,F[2]/255,F[3])}throw new ma(W||`Could not parse color from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"padding":{let F;for(let W of this.args){F=W.evaluate(S);let te=$r.parse(F);if(te)return te}throw new ma(`Could not parse padding from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"variableAnchorOffsetCollection":{let F;for(let W of this.args){F=W.evaluate(S);let te=Ji.parse(F);if(te)return te}throw new ma(`Could not parse variableAnchorOffsetCollection from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"number":{let F=null;for(let W of this.args){if(F=W.evaluate(S),F===null)return 0;let te=Number(F);if(!isNaN(te))return te}throw new ma(`Could not convert ${JSON.stringify(F)} to number.`)}case"formatted":return ri.fromString(Ba(this.args[0].evaluate(S)));case"resolvedImage":return en.fromString(Ba(this.args[0].evaluate(S)));default:return Ba(this.args[0].evaluate(S))}}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}let Wn=["Unknown","Point","LineString","Polygon"];class Ga{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Wn[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(S){let F=this._parseColorCache[S];return F||(F=this._parseColorCache[S]=ar.parse(S)),F}}class vo{constructor(S,F,W=[],te,fe=new er,pe=[]){this.registry=S,this.path=W,this.key=W.map(ze=>`[${ze}]`).join(""),this.scope=fe,this.errors=pe,this.expectedType=te,this._isConstant=F}parse(S,F,W,te,fe={}){return F?this.concat(F,W,te)._parse(S,fe):this._parse(S,fe)}_parse(S,F){function W(te,fe,pe){return pe==="assert"?new Fa(fe,[te]):pe==="coerce"?new da(fe,[te]):te}if(S!==null&&typeof S!="string"&&typeof S!="boolean"&&typeof S!="number"||(S=["literal",S]),Array.isArray(S)){if(S.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let te=S[0];if(typeof te!="string")return this.error(`Expression name must be a string, but found ${typeof te} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let fe=this.registry[te];if(fe){let pe=fe.parse(S,this);if(!pe)return null;if(this.expectedType){let ze=this.expectedType,Ke=pe.type;if(ze.kind!=="string"&&ze.kind!=="number"&&ze.kind!=="boolean"&&ze.kind!=="object"&&ze.kind!=="array"||Ke.kind!=="value")if(ze.kind!=="color"&&ze.kind!=="formatted"&&ze.kind!=="resolvedImage"||Ke.kind!=="value"&&Ke.kind!=="string")if(ze.kind!=="padding"||Ke.kind!=="value"&&Ke.kind!=="number"&&Ke.kind!=="array")if(ze.kind!=="variableAnchorOffsetCollection"||Ke.kind!=="value"&&Ke.kind!=="array"){if(this.checkSubtype(ze,Ke))return null}else pe=W(pe,ze,F.typeAnnotation||"coerce");else pe=W(pe,ze,F.typeAnnotation||"coerce");else pe=W(pe,ze,F.typeAnnotation||"coerce");else pe=W(pe,ze,F.typeAnnotation||"assert")}if(!(pe instanceof la)&&pe.type.kind!=="resolvedImage"&&this._isConstant(pe)){let ze=new Ga;try{pe=new la(pe.type,pe.evaluate(ze))}catch(Ke){return this.error(Ke.message),null}}return pe}return this.error(`Unknown expression "${te}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(S===void 0?"'undefined' value invalid. Use null instead.":typeof S=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof S} instead.`)}concat(S,F,W){let te=typeof S=="number"?this.path.concat(S):this.path,fe=W?this.scope.concat(W):this.scope;return new vo(this.registry,this._isConstant,te,F||null,fe,this.errors)}error(S,...F){let W=`${this.key}${F.map(te=>`[${te}]`).join("")}`;this.errors.push(new Et(W,S))}checkSubtype(S,F){let W=$e(S,F);return W&&this.error(W),W}}class jn{constructor(S,F){this.type=F.type,this.bindings=[].concat(S),this.result=F}evaluate(S){return this.result.evaluate(S)}eachChild(S){for(let F of this.bindings)S(F[1]);S(this.result)}static parse(S,F){if(S.length<4)return F.error(`Expected at least 3 arguments, but found ${S.length-1} instead.`);let W=[];for(let fe=1;fe=W.length)throw new ma(`Array index out of bounds: ${F} > ${W.length-1}.`);if(F!==Math.floor(F))throw new ma(`Array index must be an integer, but found ${F} instead.`);return W[F]}eachChild(S){S(this.index),S(this.input)}outputDefined(){return!1}}class Qr{constructor(S,F){this.type=yt,this.needle=S,this.haystack=F}static parse(S,F){if(S.length!==3)return F.error(`Expected 2 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,Tr),te=F.parse(S[2],2,Tr);return W&&te?wt(W.type,[yt,bt,Ft,Ut,Tr])?new Qr(W,te):F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(W.type)} instead`):null}evaluate(S){let F=this.needle.evaluate(S),W=this.haystack.evaluate(S);if(!W)return!1;if(!Ie(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Mn(F))} instead.`);if(!Ie(W,["string","array"]))throw new ma(`Expected second argument to be of type array or string, but found ${Je(Mn(W))} instead.`);return W.indexOf(F)>=0}eachChild(S){S(this.needle),S(this.haystack)}outputDefined(){return!0}}class pi{constructor(S,F,W){this.type=Ft,this.needle=S,this.haystack=F,this.fromIndex=W}static parse(S,F){if(S.length<=2||S.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,Tr),te=F.parse(S[2],2,Tr);if(!W||!te)return null;if(!wt(W.type,[yt,bt,Ft,Ut,Tr]))return F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(W.type)} instead`);if(S.length===4){let fe=F.parse(S[3],3,Ft);return fe?new pi(W,te,fe):null}return new pi(W,te)}evaluate(S){let F=this.needle.evaluate(S),W=this.haystack.evaluate(S);if(!Ie(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Mn(F))} instead.`);let te;if(this.fromIndex&&(te=this.fromIndex.evaluate(S)),Ie(W,["string"])){let fe=W.indexOf(F,te);return fe===-1?-1:[...W.slice(0,fe)].length}if(Ie(W,["array"]))return W.indexOf(F,te);throw new ma(`Expected second argument to be of type array or string, but found ${Je(Mn(W))} instead.`)}eachChild(S){S(this.needle),S(this.haystack),this.fromIndex&&S(this.fromIndex)}outputDefined(){return!1}}class fn{constructor(S,F,W,te,fe,pe){this.inputType=S,this.type=F,this.input=W,this.cases=te,this.outputs=fe,this.otherwise=pe}static parse(S,F){if(S.length<5)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if(S.length%2!=1)return F.error("Expected an even number of arguments.");let W,te;F.expectedType&&F.expectedType.kind!=="value"&&(te=F.expectedType);let fe={},pe=[];for(let ut=2;utNumber.MAX_SAFE_INTEGER)return fr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Lr=="number"&&Math.floor(Lr)!==Lr)return fr.error("Numeric branch labels must be integer values.");if(W){if(fr.checkSubtype(W,Mn(Lr)))return null}else W=Mn(Lr);if(fe[String(Lr)]!==void 0)return fr.error("Branch labels must be unique.");fe[String(Lr)]=pe.length}let mr=F.parse(Qt,ut,te);if(!mr)return null;te=te||mr.type,pe.push(mr)}let ze=F.parse(S[1],1,Tr);if(!ze)return null;let Ke=F.parse(S[S.length-1],S.length-1,te);return Ke?ze.type.kind!=="value"&&F.concat(1).checkSubtype(W,ze.type)?null:new fn(W,te,ze,fe,pe,Ke):null}evaluate(S){let F=this.input.evaluate(S);return(Mn(F)===this.inputType&&this.outputs[this.cases[F]]||this.otherwise).evaluate(S)}eachChild(S){S(this.input),this.outputs.forEach(S),S(this.otherwise)}outputDefined(){return this.outputs.every(S=>S.outputDefined())&&this.otherwise.outputDefined()}}class Sn{constructor(S,F,W){this.type=S,this.branches=F,this.otherwise=W}static parse(S,F){if(S.length<4)return F.error(`Expected at least 3 arguments, but found only ${S.length-1}.`);if(S.length%2!=0)return F.error("Expected an odd number of arguments.");let W;F.expectedType&&F.expectedType.kind!=="value"&&(W=F.expectedType);let te=[];for(let pe=1;peF.outputDefined())&&this.otherwise.outputDefined()}}class En{constructor(S,F,W,te){this.type=S,this.input=F,this.beginIndex=W,this.endIndex=te}static parse(S,F){if(S.length<=2||S.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,Tr),te=F.parse(S[2],2,Ft);if(!W||!te)return null;if(!wt(W.type,[Ge(Tr),bt,Tr]))return F.error(`Expected first argument to be of type array or string, but found ${Je(W.type)} instead`);if(S.length===4){let fe=F.parse(S[3],3,Ft);return fe?new En(W.type,W,te,fe):null}return new En(W.type,W,te)}evaluate(S){let F=this.input.evaluate(S),W=this.beginIndex.evaluate(S),te;if(this.endIndex&&(te=this.endIndex.evaluate(S)),Ie(F,["string"]))return[...F].slice(W,te).join("");if(Ie(F,["array"]))return F.slice(W,te);throw new ma(`Expected first argument to be of type array or string, but found ${Je(Mn(F))} instead.`)}eachChild(S){S(this.input),S(this.beginIndex),this.endIndex&&S(this.endIndex)}outputDefined(){return!1}}function ki(R,S){let F=R.length-1,W,te,fe=0,pe=F,ze=0;for(;fe<=pe;)if(ze=Math.floor((fe+pe)/2),W=R[ze],te=R[ze+1],W<=S){if(ze===F||SS))throw new ma("Input is not a number.");pe=ze-1}return 0}class _n{constructor(S,F,W){this.type=S,this.input=F,this.labels=[],this.outputs=[];for(let[te,fe]of W)this.labels.push(te),this.outputs.push(fe)}static parse(S,F){if(S.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return F.error("Expected an even number of arguments.");let W=F.parse(S[1],1,Ft);if(!W)return null;let te=[],fe=null;F.expectedType&&F.expectedType.kind!=="value"&&(fe=F.expectedType);for(let pe=1;pe=ze)return F.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',ut);let Qt=F.parse(Ke,Lt,fe);if(!Qt)return null;fe=fe||Qt.type,te.push([ze,Qt])}return new _n(fe,W,te)}evaluate(S){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(S);let te=this.input.evaluate(S);if(te<=F[0])return W[0].evaluate(S);let fe=F.length;return te>=F[fe-1]?W[fe-1].evaluate(S):W[ki(F,te)].evaluate(S)}eachChild(S){S(this.input);for(let F of this.outputs)S(F)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function ya(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}var Jn=Ma;function Ma(R,S,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(W-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=S,this.p2x=F,this.p2y=W}Ma.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,S){if(S===void 0&&(S=1e-6),R<0)return 0;if(R>1)return 1;for(var F=R,W=0;W<8;W++){var te=this.sampleCurveX(F)-R;if(Math.abs(te)te?pe=F:ze=F,F=.5*(ze-pe)+pe;return F},solve:function(R,S){return this.sampleCurveY(this.solveCurveX(R,S))}};var _o=ya(Jn);function No(R,S,F){return R+F*(S-R)}function po(R,S,F){return R.map((W,te)=>No(W,S[te],F))}let Lo={number:No,color:function(R,S,F,W="rgb"){switch(W){case"rgb":{let[te,fe,pe,ze]=po(R.rgb,S.rgb,F);return new ar(te,fe,pe,ze,!1)}case"hcl":{let[te,fe,pe,ze]=R.hcl,[Ke,ut,Lt,Qt]=S.hcl,fr,mr;if(isNaN(te)||isNaN(Ke))isNaN(te)?isNaN(Ke)?fr=NaN:(fr=Ke,pe!==1&&pe!==0||(mr=ut)):(fr=te,Lt!==1&&Lt!==0||(mr=fe));else{let dn=Ke-te;Ke>te&&dn>180?dn-=360:Ke180&&(dn+=360),fr=te+F*dn}let[Lr,zr,ui,yi]=function([dn,Fi,ln,An]){return dn=isNaN(dn)?0:dn*di,pn([ln,Math.cos(dn)*Fi,Math.sin(dn)*Fi,An])}([fr,mr!=null?mr:No(fe,ut,F),No(pe,Lt,F),No(ze,Qt,F)]);return new ar(Lr,zr,ui,yi,!1)}case"lab":{let[te,fe,pe,ze]=pn(po(R.lab,S.lab,F));return new ar(te,fe,pe,ze,!1)}}},array:po,padding:function(R,S,F){return new $r(po(R.values,S.values,F))},variableAnchorOffsetCollection:function(R,S,F){let W=R.values,te=S.values;if(W.length!==te.length)throw new ma(`Cannot interpolate values of different length. from: ${R.toString()}, to: ${S.toString()}`);let fe=[];for(let pe=0;petypeof Lt!="number"||Lt<0||Lt>1))return F.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);te={name:"cubic-bezier",controlPoints:ut}}}if(S.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return F.error("Expected an even number of arguments.");if(fe=F.parse(fe,2,Ft),!fe)return null;let ze=[],Ke=null;W==="interpolate-hcl"||W==="interpolate-lab"?Ke=Yt:F.expectedType&&F.expectedType.kind!=="value"&&(Ke=F.expectedType);for(let ut=0;ut=Lt)return F.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',fr);let Lr=F.parse(Qt,mr,Ke);if(!Lr)return null;Ke=Ke||Lr.type,ze.push([Lt,Lr])}return xe(Ke,Ft)||xe(Ke,Yt)||xe(Ke,Wr)||xe(Ke,dt)||xe(Ke,Ge(Ft))?new Co(Ke,W,te,fe,ze):F.error(`Type ${Je(Ke)} is not interpolatable.`)}evaluate(S){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(S);let te=this.input.evaluate(S);if(te<=F[0])return W[0].evaluate(S);let fe=F.length;if(te>=F[fe-1])return W[fe-1].evaluate(S);let pe=ki(F,te),ze=Co.interpolationFactor(this.interpolation,te,F[pe],F[pe+1]),Ke=W[pe].evaluate(S),ut=W[pe+1].evaluate(S);switch(this.operator){case"interpolate":return Lo[this.type.kind](Ke,ut,ze);case"interpolate-hcl":return Lo.color(Ke,ut,ze,"hcl");case"interpolate-lab":return Lo.color(Ke,ut,ze,"lab")}}eachChild(S){S(this.input);for(let F of this.outputs)S(F)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function Fs(R,S,F,W){let te=W-F,fe=R-F;return te===0?0:S===1?fe/te:(Math.pow(S,fe)-1)/(Math.pow(S,te)-1)}class zs{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expectected at least one argument.");let W=null,te=F.expectedType;te&&te.kind!=="value"&&(W=te);let fe=[];for(let ze of S.slice(1)){let Ke=F.parse(ze,1+fe.length,W,void 0,{typeAnnotation:"omit"});if(!Ke)return null;W=W||Ke.type,fe.push(Ke)}if(!W)throw new Error("No output type");let pe=te&&fe.some(ze=>$e(te,ze.type));return new zs(pe?Tr:W,fe)}evaluate(S){let F,W=null,te=0;for(let fe of this.args)if(te++,W=fe.evaluate(S),W&&W instanceof en&&!W.available&&(F||(F=W.name),W=null,te===this.args.length&&(W=F)),W!==null)break;return W}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}function ul(R,S){return R==="=="||R==="!="?S.kind==="boolean"||S.kind==="string"||S.kind==="number"||S.kind==="null"||S.kind==="value":S.kind==="string"||S.kind==="number"||S.kind==="value"}function cl(R,S,F,W){return W.compare(S,F)===0}function zl(R,S,F){let W=R!=="=="&&R!=="!=";return class VHe{constructor(fe,pe,ze){this.type=yt,this.lhs=fe,this.rhs=pe,this.collator=ze,this.hasUntypedArgument=fe.type.kind==="value"||pe.type.kind==="value"}static parse(fe,pe){if(fe.length!==3&&fe.length!==4)return pe.error("Expected two or three arguments.");let ze=fe[0],Ke=pe.parse(fe[1],1,Tr);if(!Ke)return null;if(!ul(ze,Ke.type))return pe.concat(1).error(`"${ze}" comparisons are not supported for type '${Je(Ke.type)}'.`);let ut=pe.parse(fe[2],2,Tr);if(!ut)return null;if(!ul(ze,ut.type))return pe.concat(2).error(`"${ze}" comparisons are not supported for type '${Je(ut.type)}'.`);if(Ke.type.kind!==ut.type.kind&&Ke.type.kind!=="value"&&ut.type.kind!=="value")return pe.error(`Cannot compare types '${Je(Ke.type)}' and '${Je(ut.type)}'.`);W&&(Ke.type.kind==="value"&&ut.type.kind!=="value"?Ke=new Fa(ut.type,[Ke]):Ke.type.kind!=="value"&&ut.type.kind==="value"&&(ut=new Fa(Ke.type,[ut])));let Lt=null;if(fe.length===4){if(Ke.type.kind!=="string"&&ut.type.kind!=="string"&&Ke.type.kind!=="value"&&ut.type.kind!=="value")return pe.error("Cannot use collator to compare non-string types.");if(Lt=pe.parse(fe[3],3,Rr),!Lt)return null}return new VHe(Ke,ut,Lt)}evaluate(fe){let pe=this.lhs.evaluate(fe),ze=this.rhs.evaluate(fe);if(W&&this.hasUntypedArgument){let Ke=Mn(pe),ut=Mn(ze);if(Ke.kind!==ut.kind||Ke.kind!=="string"&&Ke.kind!=="number")throw new ma(`Expected arguments for "${R}" to be (string, string) or (number, number), but found (${Ke.kind}, ${ut.kind}) instead.`)}if(this.collator&&!W&&this.hasUntypedArgument){let Ke=Mn(pe),ut=Mn(ze);if(Ke.kind!=="string"||ut.kind!=="string")return S(fe,pe,ze)}return this.collator?F(fe,pe,ze,this.collator.evaluate(fe)):S(fe,pe,ze)}eachChild(fe){fe(this.lhs),fe(this.rhs),this.collator&&fe(this.collator)}outputDefined(){return!0}}}let cs=zl("==",function(R,S,F){return S===F},cl),nl=zl("!=",function(R,S,F){return S!==F},function(R,S,F,W){return!cl(0,S,F,W)}),Ss=zl("<",function(R,S,F){return S",function(R,S,F){return S>F},function(R,S,F,W){return W.compare(S,F)>0}),Js=zl("<=",function(R,S,F){return S<=F},function(R,S,F,W){return W.compare(S,F)<=0}),Os=zl(">=",function(R,S,F){return S>=F},function(R,S,F,W){return W.compare(S,F)>=0});class Io{constructor(S,F,W){this.type=Rr,this.locale=W,this.caseSensitive=S,this.diacriticSensitive=F}static parse(S,F){if(S.length!==2)return F.error("Expected one argument.");let W=S[1];if(typeof W!="object"||Array.isArray(W))return F.error("Collator options argument must be an object.");let te=F.parse(W["case-sensitive"]!==void 0&&W["case-sensitive"],1,yt);if(!te)return null;let fe=F.parse(W["diacritic-sensitive"]!==void 0&&W["diacritic-sensitive"],1,yt);if(!fe)return null;let pe=null;return W.locale&&(pe=F.parse(W.locale,1,bt),!pe)?null:new Io(te,fe,pe)}evaluate(S){return new Er(this.caseSensitive.evaluate(S),this.diacriticSensitive.evaluate(S),this.locale?this.locale.evaluate(S):null)}eachChild(S){S(this.caseSensitive),S(this.diacriticSensitive),this.locale&&S(this.locale)}outputDefined(){return!1}}class us{constructor(S,F,W,te,fe){this.type=bt,this.number=S,this.locale=F,this.currency=W,this.minFractionDigits=te,this.maxFractionDigits=fe}static parse(S,F){if(S.length!==3)return F.error("Expected two arguments.");let W=F.parse(S[1],1,Ft);if(!W)return null;let te=S[2];if(typeof te!="object"||Array.isArray(te))return F.error("NumberFormat options argument must be an object.");let fe=null;if(te.locale&&(fe=F.parse(te.locale,1,bt),!fe))return null;let pe=null;if(te.currency&&(pe=F.parse(te.currency,1,bt),!pe))return null;let ze=null;if(te["min-fraction-digits"]&&(ze=F.parse(te["min-fraction-digits"],1,Ft),!ze))return null;let Ke=null;return te["max-fraction-digits"]&&(Ke=F.parse(te["max-fraction-digits"],1,Ft),!Ke)?null:new us(W,fe,pe,ze,Ke)}evaluate(S){return new Intl.NumberFormat(this.locale?this.locale.evaluate(S):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(S):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(S):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(S):void 0}).format(this.number.evaluate(S))}eachChild(S){S(this.number),this.locale&&S(this.locale),this.currency&&S(this.currency),this.minFractionDigits&&S(this.minFractionDigits),this.maxFractionDigits&&S(this.maxFractionDigits)}outputDefined(){return!1}}class Zl{constructor(S){this.type=ei,this.sections=S}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W=S[1];if(!Array.isArray(W)&&typeof W=="object")return F.error("First argument must be an image or text section.");let te=[],fe=!1;for(let pe=1;pe<=S.length-1;++pe){let ze=S[pe];if(fe&&typeof ze=="object"&&!Array.isArray(ze)){fe=!1;let Ke=null;if(ze["font-scale"]&&(Ke=F.parse(ze["font-scale"],1,Ft),!Ke))return null;let ut=null;if(ze["text-font"]&&(ut=F.parse(ze["text-font"],1,Ge(bt)),!ut))return null;let Lt=null;if(ze["text-color"]&&(Lt=F.parse(ze["text-color"],1,Yt),!Lt))return null;let Qt=te[te.length-1];Qt.scale=Ke,Qt.font=ut,Qt.textColor=Lt}else{let Ke=F.parse(S[pe],1,Tr);if(!Ke)return null;let ut=Ke.type.kind;if(ut!=="string"&&ut!=="value"&&ut!=="null"&&ut!=="resolvedImage")return F.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");fe=!0,te.push({content:Ke,scale:null,font:null,textColor:null})}}return new Zl(te)}evaluate(S){return new ri(this.sections.map(F=>{let W=F.content.evaluate(S);return Mn(W)===Ur?new Zr("",W,null,null,null):new Zr(Ba(W),null,F.scale?F.scale.evaluate(S):null,F.font?F.font.evaluate(S).join(","):null,F.textColor?F.textColor.evaluate(S):null)}))}eachChild(S){for(let F of this.sections)S(F.content),F.scale&&S(F.scale),F.font&&S(F.font),F.textColor&&S(F.textColor)}outputDefined(){return!1}}class Su{constructor(S){this.type=Ur,this.input=S}static parse(S,F){if(S.length!==2)return F.error("Expected two arguments.");let W=F.parse(S[1],1,bt);return W?new Su(W):F.error("No image name provided.")}evaluate(S){let F=this.input.evaluate(S),W=en.fromString(F);return W&&S.availableImages&&(W.available=S.availableImages.indexOf(F)>-1),W}eachChild(S){S(this.input)}outputDefined(){return!1}}class nc{constructor(S){this.type=Ft,this.input=S}static parse(S,F){if(S.length!==2)return F.error(`Expected 1 argument, but found ${S.length-1} instead.`);let W=F.parse(S[1],1);return W?W.type.kind!=="array"&&W.type.kind!=="string"&&W.type.kind!=="value"?F.error(`Expected argument of type string or array, but found ${Je(W.type)} instead.`):new nc(W):null}evaluate(S){let F=this.input.evaluate(S);if(typeof F=="string")return[...F].length;if(Array.isArray(F))return F.length;throw new ma(`Expected value to be of type string or array, but found ${Je(Mn(F))} instead.`)}eachChild(S){S(this.input)}outputDefined(){return!1}}let ws=8192;function Fn(R,S){let F=(180+R[0])/360,W=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R[1]*Math.PI/360)))/360,te=Math.pow(2,S.z);return[Math.round(F*te*ws),Math.round(W*te*ws)]}function _a(R,S){let F=Math.pow(2,S.z);return[(te=(R[0]/ws+S.x)/F,360*te-180),(W=(R[1]/ws+S.y)/F,360/Math.PI*Math.atan(Math.exp((180-360*W)*Math.PI/180))-90)];var W,te}function Vu(R,S){R[0]=Math.min(R[0],S[0]),R[1]=Math.min(R[1],S[1]),R[2]=Math.max(R[2],S[0]),R[3]=Math.max(R[3],S[1])}function Ol(R,S){return!(R[0]<=S[0]||R[2]>=S[2]||R[1]<=S[1]||R[3]>=S[3])}function xo(R,S,F){let W=R[0]-S[0],te=R[1]-S[1],fe=R[0]-F[0],pe=R[1]-F[1];return W*pe-fe*te==0&&W*fe<=0&&te*pe<=0}function Yl(R,S,F,W){return(te=[W[0]-F[0],W[1]-F[1]])[0]*(fe=[S[0]-R[0],S[1]-R[1]])[1]-te[1]*fe[0]!=0&&!(!qo(R,S,F,W)||!qo(F,W,R,S));var te,fe}function Us(R,S,F){for(let W of F)for(let te=0;te(te=R)[1]!=(pe=ze[Ke+1])[1]>te[1]&&te[0]<(pe[0]-fe[0])*(te[1]-fe[1])/(pe[1]-fe[1])+fe[0]&&(W=!W)}var te,fe,pe;return W}function ac(R,S){for(let F of S)if(Hl(R,F))return!0;return!1}function aa(R,S){for(let F of R)if(!Hl(F,S))return!1;for(let F=0;F0&&ze<0||pe<0&&ze>0}function ql(R,S,F){let W=[];for(let te=0;teF[2]){let te=.5*W,fe=R[0]-F[0]>te?-W:F[0]-R[0]>te?W:0;fe===0&&(fe=R[0]-F[2]>te?-W:F[2]-R[0]>te?W:0),R[0]+=fe}Vu(S,R)}function rf(R,S,F,W){let te=Math.pow(2,W.z)*ws,fe=[W.x*ws,W.y*ws],pe=[];for(let ze of R)for(let Ke of ze){let ut=[Ke.x+fe[0],Ke.y+fe[1]];Do(ut,S,F,te),pe.push(ut)}return pe}function Uf(R,S,F,W){let te=Math.pow(2,W.z)*ws,fe=[W.x*ws,W.y*ws],pe=[];for(let Ke of R){let ut=[];for(let Lt of Ke){let Qt=[Lt.x+fe[0],Lt.y+fe[1]];Vu(S,Qt),ut.push(Qt)}pe.push(ut)}if(S[2]-S[0]<=te/2){(ze=S)[0]=ze[1]=1/0,ze[2]=ze[3]=-1/0;for(let Ke of pe)for(let ut of Ke)Do(ut,S,F,te)}var ze;return pe}class ml{constructor(S,F){this.type=yt,this.geojson=S,this.geometries=F}static parse(S,F){if(S.length!==2)return F.error(`'within' expression requires exactly one argument, but found ${S.length-1} instead.`);if(yn(S[1])){let W=S[1];if(W.type==="FeatureCollection"){let te=[];for(let fe of W.features){let{type:pe,coordinates:ze}=fe.geometry;pe==="Polygon"&&te.push(ze),pe==="MultiPolygon"&&te.push(...ze)}if(te.length)return new ml(W,{type:"MultiPolygon",coordinates:te})}else if(W.type==="Feature"){let te=W.geometry.type;if(te==="Polygon"||te==="MultiPolygon")return new ml(W,W.geometry)}else if(W.type==="Polygon"||W.type==="MultiPolygon")return new ml(W,W)}return F.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(F,W){let te=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],pe=F.canonicalID();if(W.type==="Polygon"){let ze=ql(W.coordinates,fe,pe),Ke=rf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ut of Ke)if(!Hl(ut,ze))return!1}if(W.type==="MultiPolygon"){let ze=Pc(W.coordinates,fe,pe),Ke=rf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ut of Ke)if(!ac(ut,ze))return!1}return!0}(S,this.geometries);if(S.geometryType()==="LineString")return function(F,W){let te=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],pe=F.canonicalID();if(W.type==="Polygon"){let ze=ql(W.coordinates,fe,pe),Ke=Uf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ut of Ke)if(!aa(ut,ze))return!1}if(W.type==="MultiPolygon"){let ze=Pc(W.coordinates,fe,pe),Ke=Uf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ut of Ke)if(!Oo(ut,ze))return!1}return!0}(S,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let Zc=class{constructor(R=[],S=(F,W)=>FW?1:0){if(this.data=R,this.length=this.data.length,this.compare=S,this.length>0)for(let F=(this.length>>1)-1;F>=0;F--)this._down(F)}push(R){this.data.push(R),this._up(this.length++)}pop(){if(this.length===0)return;let R=this.data[0],S=this.data.pop();return--this.length>0&&(this.data[0]=S,this._down(0)),R}peek(){return this.data[0]}_up(R){let{data:S,compare:F}=this,W=S[R];for(;R>0;){let te=R-1>>1,fe=S[te];if(F(W,fe)>=0)break;S[R]=fe,R=te}S[R]=W}_down(R){let{data:S,compare:F}=this,W=this.length>>1,te=S[R];for(;R=0)break;S[R]=S[fe],R=fe}S[R]=te}};function Kl(R,S,F,W,te){qs(R,S,F,W||R.length-1,te||oc)}function qs(R,S,F,W,te){for(;W>F;){if(W-F>600){var fe=W-F+1,pe=S-F+1,ze=Math.log(fe),Ke=.5*Math.exp(2*ze/3),ut=.5*Math.sqrt(ze*Ke*(fe-Ke)/fe)*(pe-fe/2<0?-1:1);qs(R,S,Math.max(F,Math.floor(S-pe*Ke/fe+ut)),Math.min(W,Math.floor(S+(fe-pe)*Ke/fe+ut)),te)}var Lt=R[S],Qt=F,fr=W;for(yu(R,F,S),te(R[W],Lt)>0&&yu(R,F,W);Qt0;)fr--}te(R[F],Lt)===0?yu(R,F,fr):yu(R,++fr,W),fr<=S&&(F=fr+1),S<=fr&&(W=fr-1)}}function yu(R,S,F){var W=R[S];R[S]=R[F],R[F]=W}function oc(R,S){return RS?1:0}function Cf(R,S){if(R.length<=1)return[R];let F=[],W,te;for(let fe of R){let pe=Nh(fe);pe!==0&&(fe.area=Math.abs(pe),te===void 0&&(te=pe<0),te===pe<0?(W&&F.push(W),W=[fe]):W.push(fe))}if(W&&F.push(W),S>1)for(let fe=0;fe1?(ut=S[Ke+1][0],Lt=S[Ke+1][1]):mr>0&&(ut+=Qt/this.kx*mr,Lt+=fr/this.ky*mr)),Qt=this.wrap(F[0]-ut)*this.kx,fr=(F[1]-Lt)*this.ky;let Lr=Qt*Qt+fr*fr;Lr180;)S-=360;return S}}function Jl(R,S){return S[0]-R[0]}function hl(R){return R[1]-R[0]+1}function lc(R,S){return R[1]>=R[0]&&R[1]R[1])return[null,null];let F=hl(R);if(S){if(F===2)return[R,null];let te=Math.floor(F/2);return[[R[0],R[0]+te],[R[0]+te,R[1]]]}if(F===1)return[R,null];let W=Math.floor(F/2)-1;return[[R[0],R[0]+W],[R[0]+W+1,R[1]]]}function Cs(R,S){if(!lc(S,R.length))return[1/0,1/0,-1/0,-1/0];let F=[1/0,1/0,-1/0,-1/0];for(let W=S[0];W<=S[1];++W)Vu(F,R[W]);return F}function js(R){let S=[1/0,1/0,-1/0,-1/0];for(let F of R)for(let W of F)Vu(S,W);return S}function Go(R){return R[0]!==-1/0&&R[1]!==-1/0&&R[2]!==1/0&&R[3]!==1/0}function gs(R,S,F){if(!Go(R)||!Go(S))return NaN;let W=0,te=0;return R[2]S[2]&&(W=R[0]-S[2]),R[1]>S[3]&&(te=R[1]-S[3]),R[3]=W)return W;if(Ol(te,fe)){if(od(R,S))return 0}else if(od(S,R))return 0;let pe=1/0;for(let ze of R)for(let Ke=0,ut=ze.length,Lt=ut-1;Ke0;){let Ke=pe.pop();if(Ke[0]>=fe)continue;let ut=Ke[1],Lt=S?50:100;if(hl(ut)<=Lt){if(!lc(ut,R.length))return NaN;if(S){let Qt=Po(R,ut,F,W);if(isNaN(Qt)||Qt===0)return Qt;fe=Math.min(fe,Qt)}else for(let Qt=ut[0];Qt<=ut[1];++Qt){let fr=ad(R[Qt],F,W);if(fe=Math.min(fe,fr),fe===0)return 0}}else{let Qt=Fu(ut,S);Pa(pe,fe,W,R,ze,Qt[0]),Pa(pe,fe,W,R,ze,Qt[1])}}return fe}function wl(R,S,F,W,te,fe=1/0){let pe=Math.min(fe,te.distance(R[0],F[0]));if(pe===0)return pe;let ze=new Zc([[0,[0,R.length-1],[0,F.length-1]]],Jl);for(;ze.length>0;){let Ke=ze.pop();if(Ke[0]>=pe)continue;let ut=Ke[1],Lt=Ke[2],Qt=S?50:100,fr=W?50:100;if(hl(ut)<=Qt&&hl(Lt)<=fr){if(!lc(ut,R.length)&&lc(Lt,F.length))return NaN;let mr;if(S&&W)mr=Gu(R,ut,F,Lt,te),pe=Math.min(pe,mr);else if(S&&!W){let Lr=R.slice(ut[0],ut[1]+1);for(let zr=Lt[0];zr<=Lt[1];++zr)if(mr=uc(F[zr],Lr,te),pe=Math.min(pe,mr),pe===0)return pe}else if(!S&&W){let Lr=F.slice(Lt[0],Lt[1]+1);for(let zr=ut[0];zr<=ut[1];++zr)if(mr=uc(R[zr],Lr,te),pe=Math.min(pe,mr),pe===0)return pe}else mr=Bs(R,ut,F,Lt,te),pe=Math.min(pe,mr)}else{let mr=Fu(ut,S),Lr=Fu(Lt,W);af(ze,pe,te,R,F,mr[0],Lr[0]),af(ze,pe,te,R,F,mr[0],Lr[1]),af(ze,pe,te,R,F,mr[1],Lr[0]),af(ze,pe,te,R,F,mr[1],Lr[1])}}return pe}function Gf(R){return R.type==="MultiPolygon"?R.coordinates.map(S=>({type:"Polygon",coordinates:S})):R.type==="MultiLineString"?R.coordinates.map(S=>({type:"LineString",coordinates:S})):R.type==="MultiPoint"?R.coordinates.map(S=>({type:"Point",coordinates:S})):[R]}class Ic{constructor(S,F){this.type=Ft,this.geojson=S,this.geometries=F}static parse(S,F){if(S.length!==2)return F.error(`'distance' expression requires exactly one argument, but found ${S.length-1} instead.`);if(yn(S[1])){let W=S[1];if(W.type==="FeatureCollection")return new Ic(W,W.features.map(te=>Gf(te.geometry)).flat());if(W.type==="Feature")return new Ic(W,Gf(W.geometry));if("type"in W&&"coordinates"in W)return new Ic(W,Gf(W))}return F.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(F,W){let te=F.geometry(),fe=te.flat().map(Ke=>_a([Ke.x,Ke.y],F.canonical));if(te.length===0)return NaN;let pe=new Vf(fe[0][1]),ze=1/0;for(let Ke of W){switch(Ke.type){case"Point":ze=Math.min(ze,wl(fe,!1,[Ke.coordinates],!1,pe,ze));break;case"LineString":ze=Math.min(ze,wl(fe,!1,Ke.coordinates,!0,pe,ze));break;case"Polygon":ze=Math.min(ze,Hu(fe,!1,Ke.coordinates,pe,ze))}if(ze===0)return ze}return ze}(S,this.geometries);if(S.geometryType()==="LineString")return function(F,W){let te=F.geometry(),fe=te.flat().map(Ke=>_a([Ke.x,Ke.y],F.canonical));if(te.length===0)return NaN;let pe=new Vf(fe[0][1]),ze=1/0;for(let Ke of W){switch(Ke.type){case"Point":ze=Math.min(ze,wl(fe,!0,[Ke.coordinates],!1,pe,ze));break;case"LineString":ze=Math.min(ze,wl(fe,!0,Ke.coordinates,!0,pe,ze));break;case"Polygon":ze=Math.min(ze,Hu(fe,!0,Ke.coordinates,pe,ze))}if(ze===0)return ze}return ze}(S,this.geometries);if(S.geometryType()==="Polygon")return function(F,W){let te=F.geometry();if(te.length===0||te[0].length===0)return NaN;let fe=Cf(te,0).map(Ke=>Ke.map(ut=>ut.map(Lt=>_a([Lt.x,Lt.y],F.canonical)))),pe=new Vf(fe[0][0][0][1]),ze=1/0;for(let Ke of W)for(let ut of fe){switch(Ke.type){case"Point":ze=Math.min(ze,Hu([Ke.coordinates],!1,ut,pe,ze));break;case"LineString":ze=Math.min(ze,Hu(Ke.coordinates,!0,ut,pe,ze));break;case"Polygon":ze=Math.min(ze,Yo(ut,Ke.coordinates,pe,ze))}if(ze===0)return ze}return ze}(S,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let mf={"==":cs,"!=":nl,">":fl,"<":Ss,">=":Os,"<=":Js,array:Fa,at:Cr,boolean:Fa,case:Sn,coalesce:zs,collator:Io,format:Zl,image:Su,in:Qr,"index-of":pi,interpolate:Co,"interpolate-hcl":Co,"interpolate-lab":Co,length:nc,let:jn,literal:la,match:fn,number:Fa,"number-format":us,object:Fa,slice:En,step:_n,string:Fa,"to-boolean":da,"to-color":da,"to-number":da,"to-string":da,var:St,within:ml,distance:Ic};class Bl{constructor(S,F,W,te){this.name=S,this.type=F,this._evaluate=W,this.args=te}evaluate(S){return this._evaluate(S,this.args)}eachChild(S){this.args.forEach(S)}outputDefined(){return!1}static parse(S,F){let W=S[0],te=Bl.definitions[W];if(!te)return F.error(`Unknown expression "${W}". If you wanted a literal array, use ["literal", [...]].`,0);let fe=Array.isArray(te)?te[0]:te.type,pe=Array.isArray(te)?[[te[1],te[2]]]:te.overloads,ze=pe.filter(([ut])=>!Array.isArray(ut)||ut.length===S.length-1),Ke=null;for(let[ut,Lt]of ze){Ke=new vo(F.registry,eh,F.path,null,F.scope);let Qt=[],fr=!1;for(let mr=1;mr{return fr=Qt,Array.isArray(fr)?`(${fr.map(Je).join(", ")})`:`(${Je(fr.type)}...)`;var fr}).join(" | "),Lt=[];for(let Qt=1;Qt{F=S?F&&eh(W):F&&W instanceof la}),!!F&&th(R)&&Hf(R,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function th(R){if(R instanceof Bl&&(R.name==="get"&&R.args.length===1||R.name==="feature-state"||R.name==="has"&&R.args.length===1||R.name==="properties"||R.name==="geometry-type"||R.name==="id"||/^filter-/.test(R.name))||R instanceof ml||R instanceof Ic)return!1;let S=!0;return R.eachChild(F=>{S&&!th(F)&&(S=!1)}),S}function ju(R){if(R instanceof Bl&&R.name==="feature-state")return!1;let S=!0;return R.eachChild(F=>{S&&!ju(F)&&(S=!1)}),S}function Hf(R,S){if(R instanceof Bl&&S.indexOf(R.name)>=0)return!1;let F=!0;return R.eachChild(W=>{F&&!Hf(W,S)&&(F=!1)}),F}function cc(R){return{result:"success",value:R}}function of(R){return{result:"error",value:R}}function Nl(R){return R["property-type"]==="data-driven"||R["property-type"]==="cross-faded-data-driven"}function Kc(R){return!!R.expression&&R.expression.parameters.indexOf("zoom")>-1}function Rc(R){return!!R.expression&&R.expression.interpolated}function ms(R){return R instanceof Number?"number":R instanceof String?"string":R instanceof Boolean?"boolean":Array.isArray(R)?"array":R===null?"null":typeof R}function jf(R){return typeof R=="object"&&R!==null&&!Array.isArray(R)}function Uh(R){return R}function rh(R,S){let F=S.type==="color",W=R.stops&&typeof R.stops[0][0]=="object",te=W||!(W||R.property!==void 0),fe=R.type||(Rc(S)?"exponential":"interval");if(F||S.type==="padding"){let Lt=F?ar.parse:$r.parse;(R=Qe({},R)).stops&&(R.stops=R.stops.map(Qt=>[Qt[0],Lt(Qt[1])])),R.default=Lt(R.default?R.default:S.default)}if(R.colorSpace&&(pe=R.colorSpace)!=="rgb"&&pe!=="hcl"&&pe!=="lab")throw new Error(`Unknown color space: "${R.colorSpace}"`);var pe;let ze,Ke,ut;if(fe==="exponential")ze=ih;else if(fe==="interval")ze=Mu;else if(fe==="categorical"){ze=bh,Ke=Object.create(null);for(let Lt of R.stops)Ke[Lt[0]]=Lt[1];ut=typeof R.stops[0][0]}else{if(fe!=="identity")throw new Error(`Unknown function type "${fe}"`);ze=Ws}if(W){let Lt={},Qt=[];for(let Lr=0;LrLr[0]),evaluate:({zoom:Lr},zr)=>ih({stops:fr,base:R.base},S,Lr).evaluate(Lr,zr)}}if(te){let Lt=fe==="exponential"?{name:"exponential",base:R.base!==void 0?R.base:1}:null;return{kind:"camera",interpolationType:Lt,interpolationFactor:Co.interpolationFactor.bind(void 0,Lt),zoomStops:R.stops.map(Qt=>Qt[0]),evaluate:({zoom:Qt})=>ze(R,S,Qt,Ke,ut)}}return{kind:"source",evaluate(Lt,Qt){let fr=Qt&&Qt.properties?Qt.properties[R.property]:void 0;return fr===void 0?sf(R.default,S.default):ze(R,S,fr,Ke,ut)}}}function sf(R,S,F){return R!==void 0?R:S!==void 0?S:F!==void 0?F:void 0}function bh(R,S,F,W,te){return sf(typeof F===te?W[F]:void 0,R.default,S.default)}function Mu(R,S,F){if(ms(F)!=="number")return sf(R.default,S.default);let W=R.stops.length;if(W===1||F<=R.stops[0][0])return R.stops[0][1];if(F>=R.stops[W-1][0])return R.stops[W-1][1];let te=ki(R.stops.map(fe=>fe[0]),F);return R.stops[te][1]}function ih(R,S,F){let W=R.base!==void 0?R.base:1;if(ms(F)!=="number")return sf(R.default,S.default);let te=R.stops.length;if(te===1||F<=R.stops[0][0])return R.stops[0][1];if(F>=R.stops[te-1][0])return R.stops[te-1][1];let fe=ki(R.stops.map(Lt=>Lt[0]),F),pe=function(Lt,Qt,fr,mr){let Lr=mr-fr,zr=Lt-fr;return Lr===0?0:Qt===1?zr/Lr:(Math.pow(Qt,zr)-1)/(Math.pow(Qt,Lr)-1)}(F,W,R.stops[fe][0],R.stops[fe+1][0]),ze=R.stops[fe][1],Ke=R.stops[fe+1][1],ut=Lo[S.type]||Uh;return typeof ze.evaluate=="function"?{evaluate(...Lt){let Qt=ze.evaluate.apply(void 0,Lt),fr=Ke.evaluate.apply(void 0,Lt);if(Qt!==void 0&&fr!==void 0)return ut(Qt,fr,pe,R.colorSpace)}}:ut(ze,Ke,pe,R.colorSpace)}function Ws(R,S,F){switch(S.type){case"color":F=ar.parse(F);break;case"formatted":F=ri.fromString(F.toString());break;case"resolvedImage":F=en.fromString(F.toString());break;case"padding":F=$r.parse(F);break;default:ms(F)===S.type||S.type==="enum"&&S.values[F]||(F=void 0)}return sf(F,R.default,S.default)}Bl.register(mf,{error:[{kind:"error"},[bt],(R,[S])=>{throw new ma(S.evaluate(R))}],typeof:[bt,[Tr],(R,[S])=>Je(Mn(S.evaluate(R)))],"to-rgba":[Ge(Ft,4),[Yt],(R,[S])=>{let[F,W,te,fe]=S.evaluate(R).rgb;return[255*F,255*W,255*te,fe]}],rgb:[Yt,[Ft,Ft,Ft],xh],rgba:[Yt,[Ft,Ft,Ft,Ft],xh],has:{type:yt,overloads:[[[bt],(R,[S])=>Qf(S.evaluate(R),R.properties())],[[bt,lr],(R,[S,F])=>Qf(S.evaluate(R),F.evaluate(R))]]},get:{type:Tr,overloads:[[[bt],(R,[S])=>yf(S.evaluate(R),R.properties())],[[bt,lr],(R,[S,F])=>yf(S.evaluate(R),F.evaluate(R))]]},"feature-state":[Tr,[bt],(R,[S])=>yf(S.evaluate(R),R.featureState||{})],properties:[lr,[],R=>R.properties()],"geometry-type":[bt,[],R=>R.geometryType()],id:[Tr,[],R=>R.id()],zoom:[Ft,[],R=>R.globals.zoom],"heatmap-density":[Ft,[],R=>R.globals.heatmapDensity||0],"line-progress":[Ft,[],R=>R.globals.lineProgress||0],accumulated:[Tr,[],R=>R.globals.accumulated===void 0?null:R.globals.accumulated],"+":[Ft,Yc(Ft),(R,S)=>{let F=0;for(let W of S)F+=W.evaluate(R);return F}],"*":[Ft,Yc(Ft),(R,S)=>{let F=1;for(let W of S)F*=W.evaluate(R);return F}],"-":{type:Ft,overloads:[[[Ft,Ft],(R,[S,F])=>S.evaluate(R)-F.evaluate(R)],[[Ft],(R,[S])=>-S.evaluate(R)]]},"/":[Ft,[Ft,Ft],(R,[S,F])=>S.evaluate(R)/F.evaluate(R)],"%":[Ft,[Ft,Ft],(R,[S,F])=>S.evaluate(R)%F.evaluate(R)],ln2:[Ft,[],()=>Math.LN2],pi:[Ft,[],()=>Math.PI],e:[Ft,[],()=>Math.E],"^":[Ft,[Ft,Ft],(R,[S,F])=>Math.pow(S.evaluate(R),F.evaluate(R))],sqrt:[Ft,[Ft],(R,[S])=>Math.sqrt(S.evaluate(R))],log10:[Ft,[Ft],(R,[S])=>Math.log(S.evaluate(R))/Math.LN10],ln:[Ft,[Ft],(R,[S])=>Math.log(S.evaluate(R))],log2:[Ft,[Ft],(R,[S])=>Math.log(S.evaluate(R))/Math.LN2],sin:[Ft,[Ft],(R,[S])=>Math.sin(S.evaluate(R))],cos:[Ft,[Ft],(R,[S])=>Math.cos(S.evaluate(R))],tan:[Ft,[Ft],(R,[S])=>Math.tan(S.evaluate(R))],asin:[Ft,[Ft],(R,[S])=>Math.asin(S.evaluate(R))],acos:[Ft,[Ft],(R,[S])=>Math.acos(S.evaluate(R))],atan:[Ft,[Ft],(R,[S])=>Math.atan(S.evaluate(R))],min:[Ft,Yc(Ft),(R,S)=>Math.min(...S.map(F=>F.evaluate(R)))],max:[Ft,Yc(Ft),(R,S)=>Math.max(...S.map(F=>F.evaluate(R)))],abs:[Ft,[Ft],(R,[S])=>Math.abs(S.evaluate(R))],round:[Ft,[Ft],(R,[S])=>{let F=S.evaluate(R);return F<0?-Math.round(-F):Math.round(F)}],floor:[Ft,[Ft],(R,[S])=>Math.floor(S.evaluate(R))],ceil:[Ft,[Ft],(R,[S])=>Math.ceil(S.evaluate(R))],"filter-==":[yt,[bt,Tr],(R,[S,F])=>R.properties()[S.value]===F.value],"filter-id-==":[yt,[Tr],(R,[S])=>R.id()===S.value],"filter-type-==":[yt,[bt],(R,[S])=>R.geometryType()===S.value],"filter-<":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W{let F=R.id(),W=S.value;return typeof F==typeof W&&F":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W>te}],"filter-id->":[yt,[Tr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F>W}],"filter-<=":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W<=te}],"filter-id-<=":[yt,[Tr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F<=W}],"filter->=":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W>=te}],"filter-id->=":[yt,[Tr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F>=W}],"filter-has":[yt,[Tr],(R,[S])=>S.value in R.properties()],"filter-has-id":[yt,[],R=>R.id()!==null&&R.id()!==void 0],"filter-type-in":[yt,[Ge(bt)],(R,[S])=>S.value.indexOf(R.geometryType())>=0],"filter-id-in":[yt,[Ge(Tr)],(R,[S])=>S.value.indexOf(R.id())>=0],"filter-in-small":[yt,[bt,Ge(Tr)],(R,[S,F])=>F.value.indexOf(R.properties()[S.value])>=0],"filter-in-large":[yt,[bt,Ge(Tr)],(R,[S,F])=>function(W,te,fe,pe){for(;fe<=pe;){let ze=fe+pe>>1;if(te[ze]===W)return!0;te[ze]>W?pe=ze-1:fe=ze+1}return!1}(R.properties()[S.value],F.value,0,F.value.length-1)],all:{type:yt,overloads:[[[yt,yt],(R,[S,F])=>S.evaluate(R)&&F.evaluate(R)],[Yc(yt),(R,S)=>{for(let F of S)if(!F.evaluate(R))return!1;return!0}]]},any:{type:yt,overloads:[[[yt,yt],(R,[S,F])=>S.evaluate(R)||F.evaluate(R)],[Yc(yt),(R,S)=>{for(let F of S)if(F.evaluate(R))return!0;return!1}]]},"!":[yt,[yt],(R,[S])=>!S.evaluate(R)],"is-supported-script":[yt,[bt],(R,[S])=>{let F=R.globals&&R.globals.isSupportedScript;return!F||F(S.evaluate(R))}],upcase:[bt,[bt],(R,[S])=>S.evaluate(R).toUpperCase()],downcase:[bt,[bt],(R,[S])=>S.evaluate(R).toLowerCase()],concat:[bt,Yc(Tr),(R,S)=>S.map(F=>Ba(F.evaluate(R))).join("")],"resolved-locale":[bt,[Rr],(R,[S])=>S.evaluate(R).resolvedLocale()]});class Eu{constructor(S,F){var W;this.expression=S,this._warningHistory={},this._evaluator=new Ga,this._defaultValue=F?(W=F).type==="color"&&jf(W.default)?new ar(0,0,0,0):W.type==="color"?ar.parse(W.default)||null:W.type==="padding"?$r.parse(W.default)||null:W.type==="variableAnchorOffsetCollection"?Ji.parse(W.default)||null:W.default===void 0?null:W.default:null,this._enumValues=F&&F.type==="enum"?F.values:null}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._evaluator.globals=S,this._evaluator.feature=F,this._evaluator.featureState=W,this._evaluator.canonical=te,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=pe,this.expression.evaluate(this._evaluator)}evaluate(S,F,W,te,fe,pe){this._evaluator.globals=S,this._evaluator.feature=F||null,this._evaluator.featureState=W||null,this._evaluator.canonical=te,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=pe||null;try{let ze=this.expression.evaluate(this._evaluator);if(ze==null||typeof ze=="number"&&ze!=ze)return this._defaultValue;if(this._enumValues&&!(ze in this._enumValues))throw new ma(`Expected value to be one of ${Object.keys(this._enumValues).map(Ke=>JSON.stringify(Ke)).join(", ")}, but found ${JSON.stringify(ze)} instead.`);return ze}catch(ze){return this._warningHistory[ze.message]||(this._warningHistory[ze.message]=!0,typeof console!="undefined"&&console.warn(ze.message)),this._defaultValue}}}function Dc(R){return Array.isArray(R)&&R.length>0&&typeof R[0]=="string"&&R[0]in mf}function ks(R,S){let F=new vo(mf,eh,[],S?function(te){let fe={color:Yt,string:bt,number:Ft,enum:bt,boolean:yt,formatted:ei,padding:Wr,resolvedImage:Ur,variableAnchorOffsetCollection:dt};return te.type==="array"?Ge(fe[te.value]||Tr,te.length):fe[te.type]}(S):void 0),W=F.parse(R,void 0,void 0,void 0,S&&S.type==="string"?{typeAnnotation:"coerce"}:void 0);return W?cc(new Eu(W,S)):of(F.errors)}class bc{constructor(S,F){this.kind=S,this._styleExpression=F,this.isStateDependent=S!=="constant"&&!ju(F.expression)}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(S,F,W,te,fe,pe)}evaluate(S,F,W,te,fe,pe){return this._styleExpression.evaluate(S,F,W,te,fe,pe)}}class hu{constructor(S,F,W,te){this.kind=S,this.zoomStops=W,this._styleExpression=F,this.isStateDependent=S!=="camera"&&!ju(F.expression),this.interpolationType=te}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(S,F,W,te,fe,pe)}evaluate(S,F,W,te,fe,pe){return this._styleExpression.evaluate(S,F,W,te,fe,pe)}interpolationFactor(S,F,W){return this.interpolationType?Co.interpolationFactor(this.interpolationType,S,F,W):0}}function _u(R,S){let F=ks(R,S);if(F.result==="error")return F;let W=F.value.expression,te=th(W);if(!te&&!Nl(S))return of([new Et("","data expressions not supported")]);let fe=Hf(W,["zoom"]);if(!fe&&!Kc(S))return of([new Et("","zoom expressions not supported")]);let pe=nh(W);return pe||fe?pe instanceof Et?of([pe]):pe instanceof Co&&!Rc(S)?of([new Et("",'"interpolate" expressions cannot be used with this property')]):cc(pe?new hu(te?"camera":"composite",F.value,pe.labels,pe instanceof Co?pe.interpolation:void 0):new bc(te?"constant":"source",F.value)):of([new Et("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class al{constructor(S,F){this._parameters=S,this._specification=F,Qe(this,rh(this._parameters,this._specification))}static deserialize(S){return new al(S._parameters,S._specification)}static serialize(S){return{_parameters:S._parameters,_specification:S._specification}}}function nh(R){let S=null;if(R instanceof jn)S=nh(R.result);else if(R instanceof zs){for(let F of R.args)if(S=nh(F),S)break}else(R instanceof _n||R instanceof Co)&&R.input instanceof Bl&&R.input.name==="zoom"&&(S=R);return S instanceof Et||R.eachChild(F=>{let W=nh(F);W instanceof Et?S=W:!S&&W?S=new Et("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):S&&W&&S!==W&&(S=new Et("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),S}function wh(R){if(R===!0||R===!1)return!0;if(!Array.isArray(R)||R.length===0)return!1;switch(R[0]){case"has":return R.length>=2&&R[1]!=="$id"&&R[1]!=="$type";case"in":return R.length>=3&&(typeof R[1]!="string"||Array.isArray(R[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return R.length!==3||Array.isArray(R[1])||Array.isArray(R[2]);case"any":case"all":for(let S of R.slice(1))if(!wh(S)&&typeof S!="boolean")return!1;return!0;default:return!0}}let zu={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Fc(R){if(R==null)return{filter:()=>!0,needGeometry:!1};wh(R)||(R=_f(R));let S=ks(R,zu);if(S.result==="error")throw new Error(S.value.map(F=>`${F.key}: ${F.message}`).join(", "));return{filter:(F,W,te)=>S.value.evaluate(F,W,{},te),needGeometry:bd(R)}}function wc(R,S){return RS?1:0}function bd(R){if(!Array.isArray(R))return!1;if(R[0]==="within"||R[0]==="distance")return!0;for(let S=1;S"||S==="<="||S===">="?Lf(R[1],R[2],S):S==="any"?(F=R.slice(1),["any"].concat(F.map(_f))):S==="all"?["all"].concat(R.slice(1).map(_f)):S==="none"?["all"].concat(R.slice(1).map(_f).map(jl)):S==="in"?Ou(R[1],R.slice(2)):S==="!in"?jl(Ou(R[1],R.slice(2))):S==="has"?xf(R[1]):S!=="!has"||jl(xf(R[1]));var F}function Lf(R,S,F){switch(R){case"$type":return[`filter-type-${F}`,S];case"$id":return[`filter-id-${F}`,S];default:return[`filter-${F}`,R,S]}}function Ou(R,S){if(S.length===0)return!1;switch(R){case"$type":return["filter-type-in",["literal",S]];case"$id":return["filter-id-in",["literal",S]];default:return S.length>200&&!S.some(F=>typeof F!=typeof S[0])?["filter-in-large",R,["literal",S.sort(wc)]]:["filter-in-small",R,["literal",S]]}}function xf(R){switch(R){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",R]}}function jl(R){return["!",R]}function lf(R){let S=typeof R;if(S==="number"||S==="boolean"||S==="string"||R==null)return JSON.stringify(R);if(Array.isArray(R)){let te="[";for(let fe of R)te+=`${lf(fe)},`;return`${te}]`}let F=Object.keys(R).sort(),W="{";for(let te=0;teW.maximum?[new ur(S,F,`${F} is greater than the maximum value ${W.maximum}`)]:[]}function bf(R){let S=R.valueSpec,F=Ls(R.value.type),W,te,fe,pe={},ze=F!=="categorical"&&R.value.property===void 0,Ke=!ze,ut=ms(R.value.stops)==="array"&&ms(R.value.stops[0])==="array"&&ms(R.value.stops[0][0])==="object",Lt=Cu({key:R.key,value:R.value,valueSpec:R.styleSpec.function,validateSpec:R.validateSpec,style:R.style,styleSpec:R.styleSpec,objectElementValidators:{stops:function(mr){if(F==="identity")return[new ur(mr.key,mr.value,'identity function may not have a "stops" property')];let Lr=[],zr=mr.value;return Lr=Lr.concat(Wf({key:mr.key,value:zr,valueSpec:mr.valueSpec,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec,arrayElementValidator:Qt})),ms(zr)==="array"&&zr.length===0&&Lr.push(new ur(mr.key,zr,"array must have at least one stop")),Lr},default:function(mr){return mr.validateSpec({key:mr.key,value:mr.value,valueSpec:S,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec})}}});return F==="identity"&&ze&&Lt.push(new ur(R.key,R.value,'missing required property "property"')),F==="identity"||R.value.stops||Lt.push(new ur(R.key,R.value,'missing required property "stops"')),F==="exponential"&&R.valueSpec.expression&&!Rc(R.valueSpec)&&Lt.push(new ur(R.key,R.value,"exponential functions not supported")),R.styleSpec.$version>=8&&(Ke&&!Nl(R.valueSpec)?Lt.push(new ur(R.key,R.value,"property functions not supported")):ze&&!Kc(R.valueSpec)&&Lt.push(new ur(R.key,R.value,"zoom functions not supported"))),F!=="categorical"&&!ut||R.value.property!==void 0||Lt.push(new ur(R.key,R.value,'"property" property is required')),Lt;function Qt(mr){let Lr=[],zr=mr.value,ui=mr.key;if(ms(zr)!=="array")return[new ur(ui,zr,`array expected, ${ms(zr)} found`)];if(zr.length!==2)return[new ur(ui,zr,`array length 2 expected, length ${zr.length} found`)];if(ut){if(ms(zr[0])!=="object")return[new ur(ui,zr,`object expected, ${ms(zr[0])} found`)];if(zr[0].zoom===void 0)return[new ur(ui,zr,"object stop key must have zoom")];if(zr[0].value===void 0)return[new ur(ui,zr,"object stop key must have value")];if(fe&&fe>Ls(zr[0].zoom))return[new ur(ui,zr[0].zoom,"stop zoom values must appear in ascending order")];Ls(zr[0].zoom)!==fe&&(fe=Ls(zr[0].zoom),te=void 0,pe={}),Lr=Lr.concat(Cu({key:`${ui}[0]`,value:zr[0],valueSpec:{zoom:{}},validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec,objectElementValidators:{zoom:Vs,value:fr}}))}else Lr=Lr.concat(fr({key:`${ui}[0]`,value:zr[0],valueSpec:{},validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec},zr));return Dc(du(zr[1]))?Lr.concat([new ur(`${ui}[1]`,zr[1],"expressions are not allowed in function stops.")]):Lr.concat(mr.validateSpec({key:`${ui}[1]`,value:zr[1],valueSpec:S,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec}))}function fr(mr,Lr){let zr=ms(mr.value),ui=Ls(mr.value),yi=mr.value!==null?mr.value:Lr;if(W){if(zr!==W)return[new ur(mr.key,yi,`${zr} stop domain type must match previous stop domain type ${W}`)]}else W=zr;if(zr!=="number"&&zr!=="string"&&zr!=="boolean")return[new ur(mr.key,yi,"stop domain value must be a number, string, or boolean")];if(zr!=="number"&&F!=="categorical"){let dn=`number expected, ${zr} found`;return Nl(S)&&F===void 0&&(dn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ur(mr.key,yi,dn)]}return F!=="categorical"||zr!=="number"||isFinite(ui)&&Math.floor(ui)===ui?F!=="categorical"&&zr==="number"&&te!==void 0&&uinew ur(`${R.key}${W.key}`,R.value,W.message));let F=S.value.expression||S.value._styleExpression.expression;if(R.expressionContext==="property"&&R.propertyKey==="text-font"&&!F.outputDefined())return[new ur(R.key,R.value,`Invalid data expression for "${R.propertyKey}". Output values must be contained as literals within the expression.`)];if(R.expressionContext==="property"&&R.propertyType==="layout"&&!ju(F))return[new ur(R.key,R.value,'"feature-state" data expressions are not supported with layout properties.')];if(R.expressionContext==="filter"&&!ju(F))return[new ur(R.key,R.value,'"feature-state" data expressions are not supported with filters.')];if(R.expressionContext&&R.expressionContext.indexOf("cluster")===0){if(!Hf(F,["zoom","feature-state"]))return[new ur(R.key,R.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(R.expressionContext==="cluster-initial"&&!th(F))return[new ur(R.key,R.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Wu(R){let S=R.key,F=R.value,W=R.valueSpec,te=[];return Array.isArray(W.values)?W.values.indexOf(Ls(F))===-1&&te.push(new ur(S,F,`expected one of [${W.values.join(", ")}], ${JSON.stringify(F)} found`)):Object.keys(W.values).indexOf(Ls(F))===-1&&te.push(new ur(S,F,`expected one of [${Object.keys(W.values).join(", ")}], ${JSON.stringify(F)} found`)),te}function If(R){return wh(du(R.value))?zc(Qe({},R,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Xu(R)}function Xu(R){let S=R.value,F=R.key;if(ms(S)!=="array")return[new ur(F,S,`array expected, ${ms(S)} found`)];let W=R.styleSpec,te,fe=[];if(S.length<1)return[new ur(F,S,"filter array must have at least 1 element")];switch(fe=fe.concat(Wu({key:`${F}[0]`,value:S[0],valueSpec:W.filter_operator,style:R.style,styleSpec:R.styleSpec})),Ls(S[0])){case"<":case"<=":case">":case">=":S.length>=2&&Ls(S[1])==="$type"&&fe.push(new ur(F,S,`"$type" cannot be use with operator "${S[0]}"`));case"==":case"!=":S.length!==3&&fe.push(new ur(F,S,`filter array for operator "${S[0]}" must have 3 elements`));case"in":case"!in":S.length>=2&&(te=ms(S[1]),te!=="string"&&fe.push(new ur(`${F}[1]`,S[1],`string expected, ${te} found`)));for(let pe=2;pe{ut in F&&S.push(new ur(W,F[ut],`"${ut}" is prohibited for ref layers`))}),te.layers.forEach(ut=>{Ls(ut.id)===ze&&(Ke=ut)}),Ke?Ke.ref?S.push(new ur(W,F.ref,"ref cannot reference another ref layer")):pe=Ls(Ke.type):S.push(new ur(W,F.ref,`ref layer "${ze}" not found`))}else if(pe!=="background")if(F.source){let Ke=te.sources&&te.sources[F.source],ut=Ke&&Ls(Ke.type);Ke?ut==="vector"&&pe==="raster"?S.push(new ur(W,F.source,`layer "${F.id}" requires a raster source`)):ut!=="raster-dem"&&pe==="hillshade"?S.push(new ur(W,F.source,`layer "${F.id}" requires a raster-dem source`)):ut==="raster"&&pe!=="raster"?S.push(new ur(W,F.source,`layer "${F.id}" requires a vector source`)):ut!=="vector"||F["source-layer"]?ut==="raster-dem"&&pe!=="hillshade"?S.push(new ur(W,F.source,"raster-dem source can only be used with layer type 'hillshade'.")):pe!=="line"||!F.paint||!F.paint["line-gradient"]||ut==="geojson"&&Ke.lineMetrics||S.push(new ur(W,F,`layer "${F.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):S.push(new ur(W,F,`layer "${F.id}" must specify a "source-layer"`)):S.push(new ur(W,F.source,`source "${F.source}" not found`))}else S.push(new ur(W,F,'missing required property "source"'));return S=S.concat(Cu({key:W,value:F,valueSpec:fe.layer,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,objectElementValidators:{"*":()=>[],type:()=>R.validateSpec({key:`${W}.type`,value:F.type,valueSpec:fe.layer.type,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,object:F,objectKey:"type"}),filter:If,layout:Ke=>Cu({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ut=>Wl(Qe({layerType:pe},ut))}}),paint:Ke=>Cu({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ut=>Xf(Qe({layerType:pe},ut))}})}})),S}function Zu(R){let S=R.value,F=R.key,W=ms(S);return W!=="string"?[new ur(F,S,`string expected, ${W} found`)]:[]}let Oc={promoteId:function({key:R,value:S}){if(ms(S)==="string")return Zu({key:R,value:S});{let F=[];for(let W in S)F.push(...Zu({key:`${R}.${W}`,value:S[W]}));return F}}};function Tc(R){let S=R.value,F=R.key,W=R.styleSpec,te=R.style,fe=R.validateSpec;if(!S.type)return[new ur(F,S,'"type" is required')];let pe=Ls(S.type),ze;switch(pe){case"vector":case"raster":return ze=Cu({key:F,value:S,valueSpec:W[`source_${pe.replace("-","_")}`],style:R.style,styleSpec:W,objectElementValidators:Oc,validateSpec:fe}),ze;case"raster-dem":return ze=function(Ke){var ut;let Lt=(ut=Ke.sourceName)!==null&&ut!==void 0?ut:"",Qt=Ke.value,fr=Ke.styleSpec,mr=fr.source_raster_dem,Lr=Ke.style,zr=[],ui=ms(Qt);if(Qt===void 0)return zr;if(ui!=="object")return zr.push(new ur("source_raster_dem",Qt,`object expected, ${ui} found`)),zr;let yi=Ls(Qt.encoding)==="custom",dn=["redFactor","greenFactor","blueFactor","baseShift"],Fi=Ke.value.encoding?`"${Ke.value.encoding}"`:"Default";for(let ln in Qt)!yi&&dn.includes(ln)?zr.push(new ur(ln,Qt[ln],`In "${Lt}": "${ln}" is only valid when "encoding" is set to "custom". ${Fi} encoding found`)):mr[ln]?zr=zr.concat(Ke.validateSpec({key:ln,value:Qt[ln],valueSpec:mr[ln],validateSpec:Ke.validateSpec,style:Lr,styleSpec:fr})):zr.push(new ur(ln,Qt[ln],`unknown property "${ln}"`));return zr}({sourceName:F,value:S,style:R.style,styleSpec:W,validateSpec:fe}),ze;case"geojson":if(ze=Cu({key:F,value:S,valueSpec:W.source_geojson,style:te,styleSpec:W,validateSpec:fe,objectElementValidators:Oc}),S.cluster)for(let Ke in S.clusterProperties){let[ut,Lt]=S.clusterProperties[Ke],Qt=typeof ut=="string"?[ut,["accumulated"],["get",Ke]]:ut;ze.push(...zc({key:`${F}.${Ke}.map`,value:Lt,validateSpec:fe,expressionContext:"cluster-map"})),ze.push(...zc({key:`${F}.${Ke}.reduce`,value:Qt,validateSpec:fe,expressionContext:"cluster-reduce"}))}return ze;case"video":return Cu({key:F,value:S,valueSpec:W.source_video,style:te,validateSpec:fe,styleSpec:W});case"image":return Cu({key:F,value:S,valueSpec:W.source_image,style:te,validateSpec:fe,styleSpec:W});case"canvas":return[new ur(F,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Wu({key:`${F}.type`,value:S.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:te,validateSpec:fe,styleSpec:W})}}function Tl(R){let S=R.value,F=R.styleSpec,W=F.light,te=R.style,fe=[],pe=ms(S);if(S===void 0)return fe;if(pe!=="object")return fe=fe.concat([new ur("light",S,`object expected, ${pe} found`)]),fe;for(let ze in S){let Ke=ze.match(/^(.*)-transition$/);fe=fe.concat(Ke&&W[Ke[1]]&&W[Ke[1]].transition?R.validateSpec({key:ze,value:S[ze],valueSpec:F.transition,validateSpec:R.validateSpec,style:te,styleSpec:F}):W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)])}return fe}function vu(R){let S=R.value,F=R.styleSpec,W=F.sky,te=R.style,fe=ms(S);if(S===void 0)return[];if(fe!=="object")return[new ur("sky",S,`object expected, ${fe} found`)];let pe=[];for(let ze in S)pe=pe.concat(W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)]);return pe}function qc(R){let S=R.value,F=R.styleSpec,W=F.terrain,te=R.style,fe=[],pe=ms(S);if(S===void 0)return fe;if(pe!=="object")return fe=fe.concat([new ur("terrain",S,`object expected, ${pe} found`)]),fe;for(let ze in S)fe=fe.concat(W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)]);return fe}function cf(R){let S=[],F=R.value,W=R.key;if(Array.isArray(F)){let te=[],fe=[];for(let pe in F)F[pe].id&&te.includes(F[pe].id)&&S.push(new ur(W,F,`all the sprites' ids must be unique, but ${F[pe].id} is duplicated`)),te.push(F[pe].id),F[pe].url&&fe.includes(F[pe].url)&&S.push(new ur(W,F,`all the sprites' URLs must be unique, but ${F[pe].url} is duplicated`)),fe.push(F[pe].url),S=S.concat(Cu({key:`${W}[${pe}]`,value:F[pe],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:R.validateSpec}));return S}return Zu({key:W,value:F})}let fc={"*":()=>[],array:Wf,boolean:function(R){let S=R.value,F=R.key,W=ms(S);return W!=="boolean"?[new ur(F,S,`boolean expected, ${W} found`)]:[]},number:Vs,color:function(R){let S=R.key,F=R.value,W=ms(F);return W!=="string"?[new ur(S,F,`color expected, ${W} found`)]:ar.parse(String(F))?[]:[new ur(S,F,`color expected, "${F}" found`)]},constants:Pf,enum:Wu,filter:If,function:bf,layer:ah,object:Cu,source:Tc,light:Tl,sky:vu,terrain:qc,projection:function(R){let S=R.value,F=R.styleSpec,W=F.projection,te=R.style,fe=ms(S);if(S===void 0)return[];if(fe!=="object")return[new ur("projection",S,`object expected, ${fe} found`)];let pe=[];for(let ze in S)pe=pe.concat(W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)]);return pe},string:Zu,formatted:function(R){return Zu(R).length===0?[]:zc(R)},resolvedImage:function(R){return Zu(R).length===0?[]:zc(R)},padding:function(R){let S=R.key,F=R.value;if(ms(F)==="array"){if(F.length<1||F.length>4)return[new ur(S,F,`padding requires 1 to 4 values; ${F.length} values found`)];let W={type:"number"},te=[];for(let fe=0;fe[]}})),R.constants&&(F=F.concat(Pf({key:"constants",value:R.constants,style:R,styleSpec:S,validateSpec:Bc}))),Ar(F)}function kr(R){return function(S){return R(lee(see({},S),{validateSpec:Bc}))}}function Ar(R){return[].concat(R).sort((S,F)=>S.line-F.line)}function Kr(R){return function(...S){return Ar(R.apply(this,S))}}Xt.source=Kr(kr(Tc)),Xt.sprite=Kr(kr(cf)),Xt.glyphs=Kr(kr(At)),Xt.light=Kr(kr(Tl)),Xt.sky=Kr(kr(vu)),Xt.terrain=Kr(kr(qc)),Xt.layer=Kr(kr(ah)),Xt.filter=Kr(kr(If)),Xt.paintProperty=Kr(kr(Xf)),Xt.layoutProperty=Kr(kr(Wl));let Ei=Xt,Wi=Ei.light,hn=Ei.sky,Tn=Ei.paintProperty,Bn=Ei.layoutProperty;function Zi(R,S){let F=!1;if(S&&S.length)for(let W of S)R.fire(new ge(new Error(W.message))),F=!0;return F}class $i{constructor(S,F,W){let te=this.cells=[];if(S instanceof ArrayBuffer){this.arrayBuffer=S;let pe=new Int32Array(this.arrayBuffer);S=pe[0],this.d=(F=pe[1])+2*(W=pe[2]);for(let Ke=0;Ke=Qt[Lr+0]&&te>=Qt[Lr+1])?(ze[mr]=!0,pe.push(Lt[mr])):ze[mr]=!1}}}}_forEachCell(S,F,W,te,fe,pe,ze,Ke){let ut=this._convertToCellCoord(S),Lt=this._convertToCellCoord(F),Qt=this._convertToCellCoord(W),fr=this._convertToCellCoord(te);for(let mr=ut;mr<=Qt;mr++)for(let Lr=Lt;Lr<=fr;Lr++){let zr=this.d*Lr+mr;if((!Ke||Ke(this._convertFromCellCoord(mr),this._convertFromCellCoord(Lr),this._convertFromCellCoord(mr+1),this._convertFromCellCoord(Lr+1)))&&fe.call(this,S,F,W,te,zr,pe,ze,Ke))return}}_convertFromCellCoord(S){return(S-this.padding)/this.scale}_convertToCellCoord(S){return Math.max(0,Math.min(this.d-1,Math.floor(S*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let S=this.cells,F=3+this.cells.length+1+1,W=0;for(let pe=0;pe=0)continue;let pe=R[fe];te[fe]=an[F].shallow.indexOf(fe)>=0?pe:La(pe,S)}R instanceof Error&&(te.message=R.message)}if(te.$name)throw new Error("$name property is reserved for worker serialization logic.");return F!=="Object"&&(te.$name=F),te}function Na(R){if(Ra(R))return R;if(Array.isArray(R))return R.map(Na);if(typeof R!="object")throw new Error("can't deserialize object of type "+typeof R);let S=ka(R)||"Object";if(!an[S])throw new Error(`can't deserialize unregistered class ${S}`);let{klass:F}=an[S];if(!F)throw new Error(`can't deserialize unregistered class ${S}`);if(F.deserialize)return F.deserialize(R);let W=Object.create(F.prototype);for(let te of Object.keys(R)){if(te==="$name")continue;let fe=R[te];W[te]=an[S].shallow.indexOf(te)>=0?fe:Na(fe)}return W}class Yn{constructor(){this.first=!0}update(S,F){let W=Math.floor(S);return this.first?(this.first=!1,this.lastIntegerZoom=W,this.lastIntegerZoomTime=0,this.lastZoom=S,this.lastFloorZoom=W,!0):(this.lastFloorZoom>W?(this.lastIntegerZoom=W+1,this.lastIntegerZoomTime=F):this.lastFloorZoomR>=128&&R<=255,"Hangul Jamo":R=>R>=4352&&R<=4607,Khmer:R=>R>=6016&&R<=6143,"General Punctuation":R=>R>=8192&&R<=8303,"Letterlike Symbols":R=>R>=8448&&R<=8527,"Number Forms":R=>R>=8528&&R<=8591,"Miscellaneous Technical":R=>R>=8960&&R<=9215,"Control Pictures":R=>R>=9216&&R<=9279,"Optical Character Recognition":R=>R>=9280&&R<=9311,"Enclosed Alphanumerics":R=>R>=9312&&R<=9471,"Geometric Shapes":R=>R>=9632&&R<=9727,"Miscellaneous Symbols":R=>R>=9728&&R<=9983,"Miscellaneous Symbols and Arrows":R=>R>=11008&&R<=11263,"Ideographic Description Characters":R=>R>=12272&&R<=12287,"CJK Symbols and Punctuation":R=>R>=12288&&R<=12351,Katakana:R=>R>=12448&&R<=12543,Kanbun:R=>R>=12688&&R<=12703,"CJK Strokes":R=>R>=12736&&R<=12783,"Enclosed CJK Letters and Months":R=>R>=12800&&R<=13055,"CJK Compatibility":R=>R>=13056&&R<=13311,"Yijing Hexagram Symbols":R=>R>=19904&&R<=19967,"Private Use Area":R=>R>=57344&&R<=63743,"Vertical Forms":R=>R>=65040&&R<=65055,"CJK Compatibility Forms":R=>R>=65072&&R<=65103,"Small Form Variants":R=>R>=65104&&R<=65135,"Halfwidth and Fullwidth Forms":R=>R>=65280&&R<=65519};function Ka(R){for(let S of R)if(Ho(S.charCodeAt(0)))return!0;return!1}function bo(R){for(let S of R)if(!os(S.charCodeAt(0)))return!1;return!0}function Xo(R){let S=R.map(F=>{try{return new RegExp(`\\p{sc=${F}}`,"u").source}catch(W){return null}}).filter(F=>F);return new RegExp(S.join("|"),"u")}let Ms=Xo(["Arab","Dupl","Mong","Ougr","Syrc"]);function os(R){return!Ms.test(String.fromCodePoint(R))}let Ts=Xo(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function Ho(R){return!(R!==746&&R!==747&&(R<4352||!(zn["CJK Compatibility Forms"](R)&&!(R>=65097&&R<=65103)||zn["CJK Compatibility"](R)||zn["CJK Strokes"](R)||!(!zn["CJK Symbols and Punctuation"](R)||R>=12296&&R<=12305||R>=12308&&R<=12319||R===12336)||zn["Enclosed CJK Letters and Months"](R)||zn["Ideographic Description Characters"](R)||zn.Kanbun(R)||zn.Katakana(R)&&R!==12540||!(!zn["Halfwidth and Fullwidth Forms"](R)||R===65288||R===65289||R===65293||R>=65306&&R<=65310||R===65339||R===65341||R===65343||R>=65371&&R<=65503||R===65507||R>=65512&&R<=65519)||!(!zn["Small Form Variants"](R)||R>=65112&&R<=65118||R>=65123&&R<=65126)||zn["Vertical Forms"](R)||zn["Yijing Hexagram Symbols"](R)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(R))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(R))||Ts.test(String.fromCodePoint(R)))))}function yl(R){return!(Ho(R)||function(S){return!!(zn["Latin-1 Supplement"](S)&&(S===167||S===169||S===174||S===177||S===188||S===189||S===190||S===215||S===247)||zn["General Punctuation"](S)&&(S===8214||S===8224||S===8225||S===8240||S===8241||S===8251||S===8252||S===8258||S===8263||S===8264||S===8265||S===8273)||zn["Letterlike Symbols"](S)||zn["Number Forms"](S)||zn["Miscellaneous Technical"](S)&&(S>=8960&&S<=8967||S>=8972&&S<=8991||S>=8996&&S<=9e3||S===9003||S>=9085&&S<=9114||S>=9150&&S<=9165||S===9167||S>=9169&&S<=9179||S>=9186&&S<=9215)||zn["Control Pictures"](S)&&S!==9251||zn["Optical Character Recognition"](S)||zn["Enclosed Alphanumerics"](S)||zn["Geometric Shapes"](S)||zn["Miscellaneous Symbols"](S)&&!(S>=9754&&S<=9759)||zn["Miscellaneous Symbols and Arrows"](S)&&(S>=11026&&S<=11055||S>=11088&&S<=11097||S>=11192&&S<=11243)||zn["CJK Symbols and Punctuation"](S)||zn.Katakana(S)||zn["Private Use Area"](S)||zn["CJK Compatibility Forms"](S)||zn["Small Form Variants"](S)||zn["Halfwidth and Fullwidth Forms"](S)||S===8734||S===8756||S===8757||S>=9984&&S<=10087||S>=10102&&S<=10131||S===65532||S===65533)}(R))}let Xs=Xo(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Ps(R){return Xs.test(String.fromCodePoint(R))}function va(R,S){return!(!S&&Ps(R)||R>=2304&&R<=3583||R>=3840&&R<=4255||zn.Khmer(R))}function no(R){for(let S of R)if(Ps(S.charCodeAt(0)))return!0;return!1}let _s=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(R){this.pluginStatus=R.pluginStatus,this.pluginURL=R.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(R){this.applyArabicShaping=R.applyArabicShaping,this.processBidirectionalText=R.processBidirectionalText,this.processStyledBidirectionalText=R.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class is{constructor(S,F){this.zoom=S,F?(this.now=F.now,this.fadeDuration=F.fadeDuration,this.zoomHistory=F.zoomHistory,this.transition=F.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Yn,this.transition={})}isSupportedScript(S){return function(F,W){for(let te of F)if(!va(te.charCodeAt(0),W))return!1;return!0}(S,_s.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let S=this.zoom,F=S-Math.floor(S),W=this.crossFadingFactor();return S>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:F+(1-F)*W}:{fromScale:.5,toScale:1,t:1-(1-W)*F}}}class $l{constructor(S,F){this.property=S,this.value=F,this.expression=function(W,te){if(jf(W))return new al(W,te);if(Dc(W)){let fe=_u(W,te);if(fe.result==="error")throw new Error(fe.value.map(pe=>`${pe.key}: ${pe.message}`).join(", "));return fe.value}{let fe=W;return te.type==="color"&&typeof W=="string"?fe=ar.parse(W):te.type!=="padding"||typeof W!="number"&&!Array.isArray(W)?te.type==="variableAnchorOffsetCollection"&&Array.isArray(W)&&(fe=Ji.parse(W)):fe=$r.parse(W),{kind:"constant",evaluate:()=>fe}}}(F===void 0?S.specification.default:F,S.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(S,F,W){return this.property.possiblyEvaluate(this,S,F,W)}}class ku{constructor(S){this.property=S,this.value=new $l(S,void 0)}transitioned(S,F){return new Nc(this.property,this.value,F,L({},S.transition,this.transition),S.now)}untransitioned(){return new Nc(this.property,this.value,null,{},0)}}class Yu{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitionablePropertyValues)}getValue(S){return g(this._values[S].value.value)}setValue(S,F){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ku(this._values[S].property)),this._values[S].value=new $l(this._values[S].property,F===null?void 0:g(F))}getTransition(S){return g(this._values[S].transition)}setTransition(S,F){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ku(this._values[S].property)),this._values[S].transition=g(F)||void 0}serialize(){let S={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(S[F]=W);let te=this.getTransition(F);te!==void 0&&(S[`${F}-transition`]=te)}return S}transitioned(S,F){let W=new pu(this._properties);for(let te of Object.keys(this._values))W._values[te]=this._values[te].transitioned(S,F._values[te]);return W}untransitioned(){let S=new pu(this._properties);for(let F of Object.keys(this._values))S._values[F]=this._values[F].untransitioned();return S}}class Nc{constructor(S,F,W,te,fe){this.property=S,this.value=F,this.begin=fe+te.delay||0,this.end=this.begin+te.duration||0,S.specification.transition&&(te.delay||te.duration)&&(this.prior=W)}possiblyEvaluate(S,F,W){let te=S.now||0,fe=this.value.possiblyEvaluate(S,F,W),pe=this.prior;if(pe){if(te>this.end)return this.prior=null,fe;if(this.value.isDataDriven())return this.prior=null,fe;if(te=1)return 1;let ut=Ke*Ke,Lt=ut*Ke;return 4*(Ke<.5?Lt:3*(Ke-ut)+Lt-.75)}(ze))}}return fe}}class pu{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitioningPropertyValues)}possiblyEvaluate(S,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(S,F,W);return te}hasTransition(){for(let S of Object.keys(this._values))if(this._values[S].prior)return!0;return!1}}class Uc{constructor(S){this._properties=S,this._values=Object.create(S.defaultPropertyValues)}hasValue(S){return this._values[S].value!==void 0}getValue(S){return g(this._values[S].value)}setValue(S,F){this._values[S]=new $l(this._values[S].property,F===null?void 0:g(F))}serialize(){let S={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(S[F]=W)}return S}possiblyEvaluate(S,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(S,F,W);return te}}class xu{constructor(S,F,W){this.property=S,this.value=F,this.parameters=W}isConstant(){return this.value.kind==="constant"}constantOr(S){return this.value.kind==="constant"?this.value.value:S}evaluate(S,F,W,te){return this.property.evaluate(this.value,this.parameters,S,F,W,te)}}class Ac{constructor(S){this._properties=S,this._values=Object.create(S.defaultPossiblyEvaluatedValues)}get(S){return this._values[S]}}class Ua{constructor(S){this.specification=S}possiblyEvaluate(S,F){if(S.isDataDriven())throw new Error("Value should not be data driven");return S.expression.evaluate(F)}interpolate(S,F,W){let te=Lo[this.specification.type];return te?te(S,F,W):S}}class oo{constructor(S,F){this.specification=S,this.overrides=F}possiblyEvaluate(S,F,W,te){return new xu(this,S.expression.kind==="constant"||S.expression.kind==="camera"?{kind:"constant",value:S.expression.evaluate(F,null,{},W,te)}:S.expression,F)}interpolate(S,F,W){if(S.value.kind!=="constant"||F.value.kind!=="constant")return S;if(S.value.value===void 0||F.value.value===void 0)return new xu(this,{kind:"constant",value:void 0},S.parameters);let te=Lo[this.specification.type];if(te){let fe=te(S.value.value,F.value.value,W);return new xu(this,{kind:"constant",value:fe},S.parameters)}return S}evaluate(S,F,W,te,fe,pe){return S.kind==="constant"?S.value:S.evaluate(F,W,te,fe,pe)}}class Vc extends oo{possiblyEvaluate(S,F,W,te){if(S.value===void 0)return new xu(this,{kind:"constant",value:void 0},F);if(S.expression.kind==="constant"){let fe=S.expression.evaluate(F,null,{},W,te),pe=S.property.specification.type==="resolvedImage"&&typeof fe!="string"?fe.name:fe,ze=this._calculate(pe,pe,pe,F);return new xu(this,{kind:"constant",value:ze},F)}if(S.expression.kind==="camera"){let fe=this._calculate(S.expression.evaluate({zoom:F.zoom-1}),S.expression.evaluate({zoom:F.zoom}),S.expression.evaluate({zoom:F.zoom+1}),F);return new xu(this,{kind:"constant",value:fe},F)}return new xu(this,S.expression,F)}evaluate(S,F,W,te,fe,pe){if(S.kind==="source"){let ze=S.evaluate(F,W,te,fe,pe);return this._calculate(ze,ze,ze,F)}return S.kind==="composite"?this._calculate(S.evaluate({zoom:Math.floor(F.zoom)-1},W,te),S.evaluate({zoom:Math.floor(F.zoom)},W,te),S.evaluate({zoom:Math.floor(F.zoom)+1},W,te),F):S.value}_calculate(S,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:S,to:F}:{from:W,to:F}}interpolate(S){return S}}class hc{constructor(S){this.specification=S}possiblyEvaluate(S,F,W,te){if(S.value!==void 0){if(S.expression.kind==="constant"){let fe=S.expression.evaluate(F,null,{},W,te);return this._calculate(fe,fe,fe,F)}return this._calculate(S.expression.evaluate(new is(Math.floor(F.zoom-1),F)),S.expression.evaluate(new is(Math.floor(F.zoom),F)),S.expression.evaluate(new is(Math.floor(F.zoom+1),F)),F)}}_calculate(S,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:S,to:F}:{from:W,to:F}}interpolate(S){return S}}class Ku{constructor(S){this.specification=S}possiblyEvaluate(S,F,W,te){return!!S.expression.evaluate(F,null,{},W,te)}interpolate(){return!1}}class ue{constructor(S){this.properties=S,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let F in S){let W=S[F];W.specification.overridable&&this.overridableProperties.push(F);let te=this.defaultPropertyValues[F]=new $l(W,void 0),fe=this.defaultTransitionablePropertyValues[F]=new ku(W);this.defaultTransitioningPropertyValues[F]=fe.untransitioned(),this.defaultPossiblyEvaluatedValues[F]=te.possiblyEvaluate({})}}}Di("DataDrivenProperty",oo),Di("DataConstantProperty",Ua),Di("CrossFadedDataDrivenProperty",Vc),Di("CrossFadedProperty",hc),Di("ColorRampProperty",Ku);let w="-transition";class B extends Fe{constructor(S,F){if(super(),this.id=S.id,this.type=S.type,this._featureFilter={filter:()=>!0,needGeometry:!1},S.type!=="custom"&&(this.metadata=S.metadata,this.minzoom=S.minzoom,this.maxzoom=S.maxzoom,S.type!=="background"&&(this.source=S.source,this.sourceLayer=S["source-layer"],this.filter=S.filter),F.layout&&(this._unevaluatedLayout=new Uc(F.layout)),F.paint)){this._transitionablePaint=new Yu(F.paint);for(let W in S.paint)this.setPaintProperty(W,S.paint[W],{validate:!1});for(let W in S.layout)this.setLayoutProperty(W,S.layout[W],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ac(F.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(S){return S==="visibility"?this.visibility:this._unevaluatedLayout.getValue(S)}setLayoutProperty(S,F,W={}){F!=null&&this._validate(Bn,`layers.${this.id}.layout.${S}`,S,F,W)||(S!=="visibility"?this._unevaluatedLayout.setValue(S,F):this.visibility=F)}getPaintProperty(S){return S.endsWith(w)?this._transitionablePaint.getTransition(S.slice(0,-11)):this._transitionablePaint.getValue(S)}setPaintProperty(S,F,W={}){if(F!=null&&this._validate(Tn,`layers.${this.id}.paint.${S}`,S,F,W))return!1;if(S.endsWith(w))return this._transitionablePaint.setTransition(S.slice(0,-11),F||void 0),!1;{let te=this._transitionablePaint._values[S],fe=te.property.specification["property-type"]==="cross-faded-data-driven",pe=te.value.isDataDriven(),ze=te.value;this._transitionablePaint.setValue(S,F),this._handleSpecialPaintPropertyUpdate(S);let Ke=this._transitionablePaint._values[S].value;return Ke.isDataDriven()||pe||fe||this._handleOverridablePaintPropertyUpdate(S,ze,Ke)}}_handleSpecialPaintPropertyUpdate(S){}_handleOverridablePaintPropertyUpdate(S,F,W){return!1}isHidden(S){return!!(this.minzoom&&S=this.maxzoom)||this.visibility==="none"}updateTransitions(S){this._transitioningPaint=this._transitionablePaint.transitioned(S,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(S,F){S.getCrossfadeParameters&&(this._crossfadeParameters=S.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(S,void 0,F)),this.paint=this._transitioningPaint.possiblyEvaluate(S,void 0,F)}serialize(){let S={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(S.layout=S.layout||{},S.layout.visibility=this.visibility),M(S,(F,W)=>!(F===void 0||W==="layout"&&!Object.keys(F).length||W==="paint"&&!Object.keys(F).length))}_validate(S,F,W,te,fe={}){return(!fe||fe.validate!==!1)&&Zi(this,S.call(Ei,{key:F,layerType:this.type,objectKey:W,value:te,styleSpec:ce,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let S in this.paint._values){let F=this.paint.get(S);if(F instanceof xu&&Nl(F.property.specification)&&(F.value.kind==="source"||F.value.kind==="composite")&&F.value.isStateDependent)return!0}return!1}}let Q={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class ee{constructor(S,F){this._structArray=S,this._pos1=F*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class le{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(S,F){return S._trim(),F&&(S.isTransferred=!0,F.push(S.arrayBuffer)),{length:S.length,arrayBuffer:S.arrayBuffer}}static deserialize(S){let F=Object.create(this.prototype);return F.arrayBuffer=S.arrayBuffer,F.length=S.length,F.capacity=S.arrayBuffer.byteLength/F.bytesPerElement,F._refreshViews(),F}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(S){this.reserve(S),this.length=S}reserve(S){if(S>this.capacity){this.capacity=Math.max(S,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let F=this.uint8;this._refreshViews(),F&&this.uint8.set(F)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function qe(R,S=1){let F=0,W=0;return{members:R.map(te=>{let fe=Q[te.type].BYTES_PER_ELEMENT,pe=F=Xe(F,Math.max(S,fe)),ze=te.components||1;return W=Math.max(W,fe),F+=fe*ze,{name:te.name,type:te.type,components:ze,offset:pe}}),size:Xe(F,Math.max(W,S)),alignment:S}}function Xe(R,S){return Math.ceil(R/S)*S}class ot extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.int16[te+0]=F,this.int16[te+1]=W,S}}ot.prototype.bytesPerElement=4,Di("StructArrayLayout2i4",ot);class Tt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.int16[fe+0]=F,this.int16[fe+1]=W,this.int16[fe+2]=te,S}}Tt.prototype.bytesPerElement=6,Di("StructArrayLayout3i6",Tt);class Kt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,S,F,W,te)}emplace(S,F,W,te,fe){let pe=4*S;return this.int16[pe+0]=F,this.int16[pe+1]=W,this.int16[pe+2]=te,this.int16[pe+3]=fe,S}}Kt.prototype.bytesPerElement=8,Di("StructArrayLayout4i8",Kt);class Jt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=6*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.int16[Ke+2]=te,this.int16[Ke+3]=fe,this.int16[Ke+4]=pe,this.int16[Ke+5]=ze,S}}Jt.prototype.bytesPerElement=12,Di("StructArrayLayout2i4i12",Jt);class xr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=4*S,ut=8*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.uint8[ut+4]=te,this.uint8[ut+5]=fe,this.uint8[ut+6]=pe,this.uint8[ut+7]=ze,S}}xr.prototype.bytesPerElement=8,Di("StructArrayLayout2i4ub8",xr);class Pr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.float32[te+0]=F,this.float32[te+1]=W,S}}Pr.prototype.bytesPerElement=8,Di("StructArrayLayout2f8",Pr);class ve extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut,Lt){let Qt=this.length;return this.resize(Qt+1),this.emplace(Qt,S,F,W,te,fe,pe,ze,Ke,ut,Lt)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt){let fr=10*S;return this.uint16[fr+0]=F,this.uint16[fr+1]=W,this.uint16[fr+2]=te,this.uint16[fr+3]=fe,this.uint16[fr+4]=pe,this.uint16[fr+5]=ze,this.uint16[fr+6]=Ke,this.uint16[fr+7]=ut,this.uint16[fr+8]=Lt,this.uint16[fr+9]=Qt,S}}ve.prototype.bytesPerElement=20,Di("StructArrayLayout10ui20",ve);class be extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr){let mr=this.length;return this.resize(mr+1),this.emplace(mr,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr){let Lr=12*S;return this.int16[Lr+0]=F,this.int16[Lr+1]=W,this.int16[Lr+2]=te,this.int16[Lr+3]=fe,this.uint16[Lr+4]=pe,this.uint16[Lr+5]=ze,this.uint16[Lr+6]=Ke,this.uint16[Lr+7]=ut,this.int16[Lr+8]=Lt,this.int16[Lr+9]=Qt,this.int16[Lr+10]=fr,this.int16[Lr+11]=mr,S}}be.prototype.bytesPerElement=24,Di("StructArrayLayout4i4ui4i24",be);class Re extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.float32[fe+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,S}}Re.prototype.bytesPerElement=12,Di("StructArrayLayout3f12",Re);class Be extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.uint32[1*S+0]=F,S}}Be.prototype.bytesPerElement=4,Di("StructArrayLayout1ul4",Be);class tt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut){let Lt=this.length;return this.resize(Lt+1),this.emplace(Lt,S,F,W,te,fe,pe,ze,Ke,ut)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt){let Qt=10*S,fr=5*S;return this.int16[Qt+0]=F,this.int16[Qt+1]=W,this.int16[Qt+2]=te,this.int16[Qt+3]=fe,this.int16[Qt+4]=pe,this.int16[Qt+5]=ze,this.uint32[fr+3]=Ke,this.uint16[Qt+8]=ut,this.uint16[Qt+9]=Lt,S}}tt.prototype.bytesPerElement=20,Di("StructArrayLayout6i1ul2ui20",tt);class We extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=6*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.int16[Ke+2]=te,this.int16[Ke+3]=fe,this.int16[Ke+4]=pe,this.int16[Ke+5]=ze,S}}We.prototype.bytesPerElement=12,Di("StructArrayLayout2i2i2i12",We);class it extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe){let pe=this.length;return this.resize(pe+1),this.emplace(pe,S,F,W,te,fe)}emplace(S,F,W,te,fe,pe){let ze=4*S,Ke=8*S;return this.float32[ze+0]=F,this.float32[ze+1]=W,this.float32[ze+2]=te,this.int16[Ke+6]=fe,this.int16[Ke+7]=pe,S}}it.prototype.bytesPerElement=16,Di("StructArrayLayout2f1f2i16",it);class Dt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=16*S,ut=4*S,Lt=8*S;return this.uint8[Ke+0]=F,this.uint8[Ke+1]=W,this.float32[ut+1]=te,this.float32[ut+2]=fe,this.int16[Lt+6]=pe,this.int16[Lt+7]=ze,S}}Dt.prototype.bytesPerElement=16,Di("StructArrayLayout2ub2f2i16",Dt);class Ht extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.uint16[fe+0]=F,this.uint16[fe+1]=W,this.uint16[fe+2]=te,S}}Ht.prototype.bytesPerElement=6,Di("StructArrayLayout3ui6",Ht);class rr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi){let dn=this.length;return this.resize(dn+1),this.emplace(dn,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn){let Fi=24*S,ln=12*S,An=48*S;return this.int16[Fi+0]=F,this.int16[Fi+1]=W,this.uint16[Fi+2]=te,this.uint16[Fi+3]=fe,this.uint32[ln+2]=pe,this.uint32[ln+3]=ze,this.uint32[ln+4]=Ke,this.uint16[Fi+10]=ut,this.uint16[Fi+11]=Lt,this.uint16[Fi+12]=Qt,this.float32[ln+7]=fr,this.float32[ln+8]=mr,this.uint8[An+36]=Lr,this.uint8[An+37]=zr,this.uint8[An+38]=ui,this.uint32[ln+10]=yi,this.int16[Fi+22]=dn,S}}rr.prototype.bytesPerElement=48,Di("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",rr);class dr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn,Fi,ln,An,pa,ro,Vo,Xa,sa,Mo,fo){let lo=this.length;return this.resize(lo+1),this.emplace(lo,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn,Fi,ln,An,pa,ro,Vo,Xa,sa,Mo,fo)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn,Fi,ln,An,pa,ro,Vo,Xa,sa,Mo,fo,lo){let Xn=32*S,Ro=16*S;return this.int16[Xn+0]=F,this.int16[Xn+1]=W,this.int16[Xn+2]=te,this.int16[Xn+3]=fe,this.int16[Xn+4]=pe,this.int16[Xn+5]=ze,this.int16[Xn+6]=Ke,this.int16[Xn+7]=ut,this.uint16[Xn+8]=Lt,this.uint16[Xn+9]=Qt,this.uint16[Xn+10]=fr,this.uint16[Xn+11]=mr,this.uint16[Xn+12]=Lr,this.uint16[Xn+13]=zr,this.uint16[Xn+14]=ui,this.uint16[Xn+15]=yi,this.uint16[Xn+16]=dn,this.uint16[Xn+17]=Fi,this.uint16[Xn+18]=ln,this.uint16[Xn+19]=An,this.uint16[Xn+20]=pa,this.uint16[Xn+21]=ro,this.uint16[Xn+22]=Vo,this.uint32[Ro+12]=Xa,this.float32[Ro+13]=sa,this.float32[Ro+14]=Mo,this.uint16[Xn+30]=fo,this.uint16[Xn+31]=lo,S}}dr.prototype.bytesPerElement=64,Di("StructArrayLayout8i15ui1ul2f2ui64",dr);class Sr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.float32[1*S+0]=F,S}}Sr.prototype.bytesPerElement=4,Di("StructArrayLayout1f4",Sr);class Or extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.uint16[6*S+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,S}}Or.prototype.bytesPerElement=12,Di("StructArrayLayout1ui2f12",Or);class jr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=4*S;return this.uint32[2*S+0]=F,this.uint16[fe+2]=W,this.uint16[fe+3]=te,S}}jr.prototype.bytesPerElement=8,Di("StructArrayLayout1ul2ui8",jr);class ii extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.uint16[te+0]=F,this.uint16[te+1]=W,S}}ii.prototype.bytesPerElement=4,Di("StructArrayLayout2ui4",ii);class Li extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.uint16[1*S+0]=F,S}}Li.prototype.bytesPerElement=2,Di("StructArrayLayout1ui2",Li);class un extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,S,F,W,te)}emplace(S,F,W,te,fe){let pe=4*S;return this.float32[pe+0]=F,this.float32[pe+1]=W,this.float32[pe+2]=te,this.float32[pe+3]=fe,S}}un.prototype.bytesPerElement=16,Di("StructArrayLayout4f16",un);class sn extends ee{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new u(this.anchorPointX,this.anchorPointY)}}sn.prototype.size=20;class In extends tt{get(S){return new sn(this,S)}}Di("CollisionBoxArray",In);class Kn extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(S){this._structArray.uint8[this._pos1+37]=S}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(S){this._structArray.uint8[this._pos1+38]=S}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(S){this._structArray.uint32[this._pos4+10]=S}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Kn.prototype.size=48;class Ta extends rr{get(S){return new Kn(this,S)}}Di("PlacedSymbolArray",Ta);class fa extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(S){this._structArray.uint32[this._pos4+12]=S}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}fa.prototype.size=64;class $a extends dr{get(S){return new fa(this,S)}}Di("SymbolInstanceArray",$a);class ko extends Sr{getoffsetX(S){return this.float32[1*S+0]}}Di("GlyphOffsetArray",ko);class Qa extends Tt{getx(S){return this.int16[3*S+0]}gety(S){return this.int16[3*S+1]}gettileUnitDistanceFromAnchor(S){return this.int16[3*S+2]}}Di("SymbolLineVertexArray",Qa);class mo extends ee{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}mo.prototype.size=12;class Bo extends Or{get(S){return new mo(this,S)}}Di("TextAnchorOffsetArray",Bo);class Is extends ee{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}Is.prototype.size=8;class As extends jr{get(S){return new Is(this,S)}}Di("FeatureIndexArray",As);class wo extends ot{}class To extends ot{}class dl extends ot{}class Ul extends Jt{}class Lu extends xr{}class au extends Pr{}class $s extends ve{}class Ql extends be{}class dc extends Re{}class Al extends Be{}class Sl extends We{}class X extends Dt{}class se extends Ht{}class Te extends ii{}let Ne=qe([{name:"a_pos",components:2,type:"Int16"}],4),{members:He}=Ne;class Ye{constructor(S=[]){this.segments=S}prepareSegment(S,F,W,te){let fe=this.segments[this.segments.length-1];return S>Ye.MAX_VERTEX_ARRAY_LENGTH&&T(`Max vertices per segment is ${Ye.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${S}`),(!fe||fe.vertexLength+S>Ye.MAX_VERTEX_ARRAY_LENGTH||fe.sortKey!==te)&&(fe={vertexOffset:F.length,primitiveOffset:W.length,vertexLength:0,primitiveLength:0},te!==void 0&&(fe.sortKey=te),this.segments.push(fe)),fe}get(){return this.segments}destroy(){for(let S of this.segments)for(let F in S.vaos)S.vaos[F].destroy()}static simpleSegment(S,F,W,te){return new Ye([{vertexOffset:S,primitiveOffset:F,vertexLength:W,primitiveLength:te,vaos:{},sortKey:0}])}}function Ct(R,S){return 256*(R=E(Math.floor(R),0,255))+E(Math.floor(S),0,255)}Ye.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Di("SegmentVector",Ye);let nt=qe([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var jt={exports:{}},gr={exports:{}};gr.exports=function(R,S){var F,W,te,fe,pe,ze,Ke,ut;for(W=R.length-(F=3&R.length),te=S,pe=3432918353,ze=461845907,ut=0;ut>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*ze+(((Ke>>>16)*ze&65535)<<16)&4294967295)<<13|te>>>19))+((5*(te>>>16)&65535)<<16)&4294967295))+((58964+(fe>>>16)&65535)<<16);switch(Ke=0,F){case 3:Ke^=(255&R.charCodeAt(ut+2))<<16;case 2:Ke^=(255&R.charCodeAt(ut+1))<<8;case 1:te^=Ke=(65535&(Ke=(Ke=(65535&(Ke^=255&R.charCodeAt(ut)))*pe+(((Ke>>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*ze+(((Ke>>>16)*ze&65535)<<16)&4294967295}return te^=R.length,te=2246822507*(65535&(te^=te>>>16))+((2246822507*(te>>>16)&65535)<<16)&4294967295,te=3266489909*(65535&(te^=te>>>13))+((3266489909*(te>>>16)&65535)<<16)&4294967295,(te^=te>>>16)>>>0};var yr=gr.exports,Gr={exports:{}};Gr.exports=function(R,S){for(var F,W=R.length,te=S^W,fe=0;W>=4;)F=1540483477*(65535&(F=255&R.charCodeAt(fe)|(255&R.charCodeAt(++fe))<<8|(255&R.charCodeAt(++fe))<<16|(255&R.charCodeAt(++fe))<<24))+((1540483477*(F>>>16)&65535)<<16),te=1540483477*(65535&te)+((1540483477*(te>>>16)&65535)<<16)^(F=1540483477*(65535&(F^=F>>>24))+((1540483477*(F>>>16)&65535)<<16)),W-=4,++fe;switch(W){case 3:te^=(255&R.charCodeAt(fe+2))<<16;case 2:te^=(255&R.charCodeAt(fe+1))<<8;case 1:te=1540483477*(65535&(te^=255&R.charCodeAt(fe)))+((1540483477*(te>>>16)&65535)<<16)}return te=1540483477*(65535&(te^=te>>>13))+((1540483477*(te>>>16)&65535)<<16),(te^=te>>>15)>>>0};var qr=yr,_i=Gr.exports;jt.exports=qr,jt.exports.murmur3=qr,jt.exports.murmur2=_i;var bi=o(jt.exports);class Xr{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(S,F,W,te){this.ids.push(ni(S)),this.positions.push(F,W,te)}getPositions(S){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let F=ni(S),W=0,te=this.ids.length-1;for(;W>1;this.ids[pe]>=F?te=pe:W=pe+1}let fe=[];for(;this.ids[W]===F;)fe.push({index:this.positions[3*W],start:this.positions[3*W+1],end:this.positions[3*W+2]}),W++;return fe}static serialize(S,F){let W=new Float64Array(S.ids),te=new Uint32Array(S.positions);return gi(W,te,0,W.length-1),F&&F.push(W.buffer,te.buffer),{ids:W,positions:te}}static deserialize(S){let F=new Xr;return F.ids=S.ids,F.positions=S.positions,F.indexed=!0,F}}function ni(R){let S=+R;return!isNaN(S)&&S<=Number.MAX_SAFE_INTEGER?S:bi(String(R))}function gi(R,S,F,W){for(;F>1],fe=F-1,pe=W+1;for(;;){do fe++;while(R[fe]te);if(fe>=pe)break;Pi(R,fe,pe),Pi(S,3*fe,3*pe),Pi(S,3*fe+1,3*pe+1),Pi(S,3*fe+2,3*pe+2)}pe-F`u_${te}`),this.type=W}setUniform(S,F,W){S.set(W.constantOr(this.value))}getBinding(S,F,W){return this.type==="color"?new Cn(S,F):new ti(S,F)}}class Ia{constructor(S,F){this.uniformNames=F.map(W=>`u_${W}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(S,F){this.pixelRatioFrom=F.pixelRatio,this.pixelRatioTo=S.pixelRatio,this.patternFrom=F.tlbr,this.patternTo=S.tlbr}setUniform(S,F,W,te){let fe=te==="u_pattern_to"?this.patternTo:te==="u_pattern_from"?this.patternFrom:te==="u_pixel_ratio_to"?this.pixelRatioTo:te==="u_pixel_ratio_from"?this.pixelRatioFrom:null;fe&&S.set(fe)}getBinding(S,F,W){return W.substr(0,9)==="u_pattern"?new Rn(S,F):new ti(S,F)}}class yo{constructor(S,F,W,te){this.expression=S,this.type=W,this.maxValue=0,this.paintVertexAttributes=F.map(fe=>({name:`a_${fe}`,type:"Float32",components:W==="color"?2:1,offset:0})),this.paintVertexArray=new te}populatePaintArray(S,F,W,te,fe){let pe=this.paintVertexArray.length,ze=this.expression.evaluate(new is(0),F,{},te,[],fe);this.paintVertexArray.resize(S),this._setPaintValue(pe,S,ze)}updatePaintArray(S,F,W,te){let fe=this.expression.evaluate({zoom:0},W,te);this._setPaintValue(S,F,fe)}_setPaintValue(S,F,W){if(this.type==="color"){let te=ia(W);for(let fe=S;fe`u_${ze}_t`),this.type=W,this.useIntegerZoom=te,this.zoom=fe,this.maxValue=0,this.paintVertexAttributes=F.map(ze=>({name:`a_${ze}`,type:"Float32",components:W==="color"?4:2,offset:0})),this.paintVertexArray=new pe}populatePaintArray(S,F,W,te,fe){let pe=this.expression.evaluate(new is(this.zoom),F,{},te,[],fe),ze=this.expression.evaluate(new is(this.zoom+1),F,{},te,[],fe),Ke=this.paintVertexArray.length;this.paintVertexArray.resize(S),this._setPaintValue(Ke,S,pe,ze)}updatePaintArray(S,F,W,te){let fe=this.expression.evaluate({zoom:this.zoom},W,te),pe=this.expression.evaluate({zoom:this.zoom+1},W,te);this._setPaintValue(S,F,fe,pe)}_setPaintValue(S,F,W,te){if(this.type==="color"){let fe=ia(W),pe=ia(te);for(let ze=S;ze`#define HAS_UNIFORM_${te}`))}return S}getBinderAttributes(){let S=[];for(let F in this.binders){let W=this.binders[F];if(W instanceof yo||W instanceof Da)for(let te=0;te!0){this.programConfigurations={};for(let te of S)this.programConfigurations[te.id]=new Rs(te,F,W);this.needsUpload=!1,this._featureMap=new Xr,this._bufferOffset=0}populatePaintArrays(S,F,W,te,fe,pe){for(let ze in this.programConfigurations)this.programConfigurations[ze].populatePaintArrays(S,F,te,fe,pe);F.id!==void 0&&this._featureMap.add(F.id,W,this._bufferOffset,S),this._bufferOffset=S,this.needsUpload=!0}updatePaintArrays(S,F,W,te){for(let fe of W)this.needsUpload=this.programConfigurations[fe.id].updatePaintArrays(S,this._featureMap,F,fe,te)||this.needsUpload}get(S){return this.programConfigurations[S]}upload(S){if(this.needsUpload){for(let F in this.programConfigurations)this.programConfigurations[F].upload(S);this.needsUpload=!1}}destroy(){for(let S in this.programConfigurations)this.programConfigurations[S].destroy()}}function Zs(R,S){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[R]||[R.replace(`${S}-`,"").replace(/-/g,"_")]}function Gn(R,S,F){let W={color:{source:Pr,composite:un},number:{source:Sr,composite:Pr}},te=function(fe){return{"line-pattern":{source:$s,composite:$s},"fill-pattern":{source:$s,composite:$s},"fill-extrusion-pattern":{source:$s,composite:$s}}[fe]}(R);return te&&te[F]||W[S][F]}Di("ConstantBinder",Ea),Di("CrossFadedConstantBinder",Ia),Di("SourceExpressionBinder",yo),Di("CrossFadedCompositeBinder",go),Di("CompositeExpressionBinder",Da),Di("ProgramConfiguration",Rs,{omit:["_buffers"]}),Di("ProgramConfigurationSet",Es);let Ha=8192,Fo=Math.pow(2,14)-1,Uo=-Fo-1;function Qs(R){let S=Ha/R.extent,F=R.loadGeometry();for(let W=0;Wpe.x+1||Kepe.y+1)&&T("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return F}function Ml(R,S){return{type:R.type,id:R.id,properties:R.properties,geometry:S?Qs(R):[]}}function bu(R,S,F,W,te){R.emplaceBack(2*S+(W+1)/2,2*F+(te+1)/2)}class vl{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new To,this.indexArray=new se,this.segments=new Ye,this.programConfigurations=new Es(S.layers,S.zoom),this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){let te=this.layers[0],fe=[],pe=null,ze=!1;te.type==="circle"&&(pe=te.layout.get("circle-sort-key"),ze=!pe.isConstant());for(let{feature:Ke,id:ut,index:Lt,sourceLayerIndex:Qt}of S){let fr=this.layers[0]._featureFilter.needGeometry,mr=Ml(Ke,fr);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),mr,W))continue;let Lr=ze?pe.evaluate(mr,{},W):void 0,zr={id:ut,properties:Ke.properties,type:Ke.type,sourceLayerIndex:Qt,index:Lt,geometry:fr?mr.geometry:Qs(Ke),patterns:{},sortKey:Lr};fe.push(zr)}ze&&fe.sort((Ke,ut)=>Ke.sortKey-ut.sortKey);for(let Ke of fe){let{geometry:ut,index:Lt,sourceLayerIndex:Qt}=Ke,fr=S[Lt].feature;this.addFeature(Ke,ut,Lt,W),F.featureIndex.insert(fr,ut,Lt,Qt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,He),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(S,F,W,te){for(let fe of F)for(let pe of fe){let ze=pe.x,Ke=pe.y;if(ze<0||ze>=Ha||Ke<0||Ke>=Ha)continue;let ut=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,S.sortKey),Lt=ut.vertexLength;bu(this.layoutVertexArray,ze,Ke,-1,-1),bu(this.layoutVertexArray,ze,Ke,1,-1),bu(this.layoutVertexArray,ze,Ke,1,1),bu(this.layoutVertexArray,ze,Ke,-1,1),this.indexArray.emplaceBack(Lt,Lt+1,Lt+2),this.indexArray.emplaceBack(Lt,Lt+3,Lt+2),ut.vertexLength+=4,ut.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,W,{},te)}}function Sc(R,S){for(let F=0;F1){if(Ir(R,S))return!0;for(let W=0;W1?F:F.sub(S)._mult(te)._add(S))}function mi(R,S){let F,W,te,fe=!1;for(let pe=0;peS.y!=te.y>S.y&&S.x<(te.x-W.x)*(S.y-W.y)/(te.y-W.y)+W.x&&(fe=!fe)}return fe}function Ni(R,S){let F=!1;for(let W=0,te=R.length-1;WS.y!=pe.y>S.y&&S.x<(pe.x-fe.x)*(S.y-fe.y)/(pe.y-fe.y)+fe.x&&(F=!F)}return F}function Oi(R,S,F){let W=F[0],te=F[2];if(R.xte.x&&S.x>te.x||R.yte.y&&S.y>te.y)return!1;let fe=z(R,S,F[0]);return fe!==z(R,S,F[1])||fe!==z(R,S,F[2])||fe!==z(R,S,F[3])}function Mi(R,S,F){let W=S.paint.get(R).value;return W.kind==="constant"?W.value:F.programConfigurations.get(S.id).getMaxValue(R)}function Hn(R){return Math.sqrt(R[0]*R[0]+R[1]*R[1])}function Qi(R,S,F,W,te){if(!S[0]&&!S[1])return R;let fe=u.convert(S)._mult(te);F==="viewport"&&fe._rotate(-W);let pe=[];for(let ze=0;zeli(ui,zr))}(ut,Ke),mr=Qt?Lt*ze:Lt;for(let Lr of te)for(let zr of Lr){let ui=Qt?zr:li(zr,Ke),yi=mr,dn=qn([],[zr.x,zr.y,0,1],Ke);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?yi*=dn[3]/pe.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(yi*=pe.cameraToCenterDistance/dn[3]),Ee(fr,ui,yi))return!0}return!1}}function li(R,S){let F=qn([],[R.x,R.y,0,1],S);return new u(F[0]/F[3],F[1]/F[3])}class mn extends vl{}let Ki;Di("HeatmapBucket",mn,{omit:["layers"]});var Ui={get paint(){return Ki=Ki||new ue({"heatmap-radius":new oo(ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new oo(ce.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Ua(ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Ku(ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ua(ce.paint_heatmap["heatmap-opacity"])})}};function Bi(R,{width:S,height:F},W,te){if(te){if(te instanceof Uint8ClampedArray)te=new Uint8Array(te.buffer);else if(te.length!==S*F*W)throw new RangeError(`mismatched image size. expected: ${te.length} but got: ${S*F*W}`)}else te=new Uint8Array(S*F*W);return R.width=S,R.height=F,R.data=te,R}function vn(R,{width:S,height:F},W){if(S===R.width&&F===R.height)return;let te=Bi({},{width:S,height:F},W);Un(R,te,{x:0,y:0},{x:0,y:0},{width:Math.min(R.width,S),height:Math.min(R.height,F)},W),R.width=S,R.height=F,R.data=te.data}function Un(R,S,F,W,te,fe){if(te.width===0||te.height===0)return S;if(te.width>R.width||te.height>R.height||F.x>R.width-te.width||F.y>R.height-te.height)throw new RangeError("out of range source coordinates for image copy");if(te.width>S.width||te.height>S.height||W.x>S.width-te.width||W.y>S.height-te.height)throw new RangeError("out of range destination coordinates for image copy");let pe=R.data,ze=S.data;if(pe===ze)throw new Error("srcData equals dstData, so image is already copied");for(let Ke=0;Ke{S[R.evaluationKey]=Ke;let ut=R.expression.evaluate(S);te.data[pe+ze+0]=Math.floor(255*ut.r/ut.a),te.data[pe+ze+1]=Math.floor(255*ut.g/ut.a),te.data[pe+ze+2]=Math.floor(255*ut.b/ut.a),te.data[pe+ze+3]=Math.floor(255*ut.a)};if(R.clips)for(let pe=0,ze=0;pe80*F){ze=1/0,Ke=1/0;let Lt=-1/0,Qt=-1/0;for(let fr=F;frLt&&(Lt=mr),Lr>Qt&&(Qt=Lr)}ut=Math.max(Lt-ze,Qt-Ke),ut=ut!==0?32767/ut:0}return Vl(fe,pe,F,ze,Ke,ut,0),pe}function el(R,S,F,W,te){let fe;if(te===function(pe,ze,Ke,ut){let Lt=0;for(let Qt=ze,fr=Ke-ut;Qt0)for(let pe=S;pe=S;pe-=W)fe=qt(pe/W|0,R[pe],R[pe+1],fe);return fe&&ne(fe,fe.next)&&(Ve(fe),fe=fe.next),fe}function ol(R,S){if(!R)return R;S||(S=R);let F,W=R;do if(F=!1,W.steiner||!ne(W,W.next)&&de(W.prev,W,W.next)!==0)W=W.next;else{if(Ve(W),W=S=W.prev,W===W.next)break;F=!0}while(F||W!==S);return S}function Vl(R,S,F,W,te,fe,pe){if(!R)return;!pe&&fe&&function(Ke,ut,Lt,Qt){let fr=Ke;do fr.z===0&&(fr.z=D(fr.x,fr.y,ut,Lt,Qt)),fr.prevZ=fr.prev,fr.nextZ=fr.next,fr=fr.next;while(fr!==Ke);fr.prevZ.nextZ=null,fr.prevZ=null,function(mr){let Lr,zr=1;do{let ui,yi=mr;mr=null;let dn=null;for(Lr=0;yi;){Lr++;let Fi=yi,ln=0;for(let pa=0;pa0||An>0&&Fi;)ln!==0&&(An===0||!Fi||yi.z<=Fi.z)?(ui=yi,yi=yi.nextZ,ln--):(ui=Fi,Fi=Fi.nextZ,An--),dn?dn.nextZ=ui:mr=ui,ui.prevZ=dn,dn=ui;yi=Fi}dn.nextZ=null,zr*=2}while(Lr>1)}(fr)}(R,W,te,fe);let ze=R;for(;R.prev!==R.next;){let Ke=R.prev,ut=R.next;if(fe?Gs(R,W,te,fe):ls(R))S.push(Ke.i,R.i,ut.i),Ve(R),R=ut.next,ze=ut.next;else if((R=ut)===ze){pe?pe===1?Vl(R=Ks(ol(R),S),S,F,W,te,fe,2):pe===2&&wa(R,S,F,W,te,fe):Vl(ol(R),S,F,W,te,fe,1);break}}}function ls(R){let S=R.prev,F=R,W=R.next;if(de(S,F,W)>=0)return!1;let te=S.x,fe=F.x,pe=W.x,ze=S.y,Ke=F.y,ut=W.y,Lt=tefe?te>pe?te:pe:fe>pe?fe:pe,mr=ze>Ke?ze>ut?ze:ut:Ke>ut?Ke:ut,Lr=W.next;for(;Lr!==S;){if(Lr.x>=Lt&&Lr.x<=fr&&Lr.y>=Qt&&Lr.y<=mr&&q(te,ze,fe,Ke,pe,ut,Lr.x,Lr.y)&&de(Lr.prev,Lr,Lr.next)>=0)return!1;Lr=Lr.next}return!0}function Gs(R,S,F,W){let te=R.prev,fe=R,pe=R.next;if(de(te,fe,pe)>=0)return!1;let ze=te.x,Ke=fe.x,ut=pe.x,Lt=te.y,Qt=fe.y,fr=pe.y,mr=zeKe?ze>ut?ze:ut:Ke>ut?Ke:ut,ui=Lt>Qt?Lt>fr?Lt:fr:Qt>fr?Qt:fr,yi=D(mr,Lr,S,F,W),dn=D(zr,ui,S,F,W),Fi=R.prevZ,ln=R.nextZ;for(;Fi&&Fi.z>=yi&&ln&&ln.z<=dn;){if(Fi.x>=mr&&Fi.x<=zr&&Fi.y>=Lr&&Fi.y<=ui&&Fi!==te&&Fi!==pe&&q(ze,Lt,Ke,Qt,ut,fr,Fi.x,Fi.y)&&de(Fi.prev,Fi,Fi.next)>=0||(Fi=Fi.prevZ,ln.x>=mr&&ln.x<=zr&&ln.y>=Lr&&ln.y<=ui&&ln!==te&&ln!==pe&&q(ze,Lt,Ke,Qt,ut,fr,ln.x,ln.y)&&de(ln.prev,ln,ln.next)>=0))return!1;ln=ln.nextZ}for(;Fi&&Fi.z>=yi;){if(Fi.x>=mr&&Fi.x<=zr&&Fi.y>=Lr&&Fi.y<=ui&&Fi!==te&&Fi!==pe&&q(ze,Lt,Ke,Qt,ut,fr,Fi.x,Fi.y)&&de(Fi.prev,Fi,Fi.next)>=0)return!1;Fi=Fi.prevZ}for(;ln&&ln.z<=dn;){if(ln.x>=mr&&ln.x<=zr&&ln.y>=Lr&&ln.y<=ui&&ln!==te&&ln!==pe&&q(ze,Lt,Ke,Qt,ut,fr,ln.x,ln.y)&&de(ln.prev,ln,ln.next)>=0)return!1;ln=ln.nextZ}return!0}function Ks(R,S){let F=R;do{let W=F.prev,te=F.next.next;!ne(W,te)&&we(W,F,F.next,te)&&Zt(W,te)&&Zt(te,W)&&(S.push(W.i,F.i,te.i),Ve(F),Ve(F.next),F=R=te),F=F.next}while(F!==R);return ol(F)}function wa(R,S,F,W,te,fe){let pe=R;do{let ze=pe.next.next;for(;ze!==pe.prev;){if(pe.i!==ze.i&&K(pe,ze)){let Ke=hr(pe,ze);return pe=ol(pe,pe.next),Ke=ol(Ke,Ke.next),Vl(pe,S,F,W,te,fe,0),void Vl(Ke,S,F,W,te,fe,0)}ze=ze.next}pe=pe.next}while(pe!==R)}function sl(R,S){return R.x-S.x}function io(R,S){let F=function(te,fe){let pe=fe,ze=te.x,Ke=te.y,ut,Lt=-1/0;do{if(Ke<=pe.y&&Ke>=pe.next.y&&pe.next.y!==pe.y){let zr=pe.x+(Ke-pe.y)*(pe.next.x-pe.x)/(pe.next.y-pe.y);if(zr<=ze&&zr>Lt&&(Lt=zr,ut=pe.x=pe.x&&pe.x>=fr&&ze!==pe.x&&q(Keut.x||pe.x===ut.x&&Y(ut,pe)))&&(ut=pe,Lr=zr)}pe=pe.next}while(pe!==Qt);return ut}(R,S);if(!F)return S;let W=hr(F,R);return ol(W,W.next),ol(F,F.next)}function Y(R,S){return de(R.prev,R,S.prev)<0&&de(S.next,R,R.next)<0}function D(R,S,F,W,te){return(R=1431655765&((R=858993459&((R=252645135&((R=16711935&((R=(R-F)*te|0)|R<<8))|R<<4))|R<<2))|R<<1))|(S=1431655765&((S=858993459&((S=252645135&((S=16711935&((S=(S-W)*te|0)|S<<8))|S<<4))|S<<2))|S<<1))<<1}function J(R){let S=R,F=R;do(S.x=(R-pe)*(fe-ze)&&(R-pe)*(W-ze)>=(F-pe)*(S-ze)&&(F-pe)*(fe-ze)>=(te-pe)*(W-ze)}function K(R,S){return R.next.i!==S.i&&R.prev.i!==S.i&&!function(F,W){let te=F;do{if(te.i!==F.i&&te.next.i!==F.i&&te.i!==W.i&&te.next.i!==W.i&&we(te,te.next,F,W))return!0;te=te.next}while(te!==F);return!1}(R,S)&&(Zt(R,S)&&Zt(S,R)&&function(F,W){let te=F,fe=!1,pe=(F.x+W.x)/2,ze=(F.y+W.y)/2;do te.y>ze!=te.next.y>ze&&te.next.y!==te.y&&pe<(te.next.x-te.x)*(ze-te.y)/(te.next.y-te.y)+te.x&&(fe=!fe),te=te.next;while(te!==F);return fe}(R,S)&&(de(R.prev,R,S.prev)||de(R,S.prev,S))||ne(R,S)&&de(R.prev,R,R.next)>0&&de(S.prev,S,S.next)>0)}function de(R,S,F){return(S.y-R.y)*(F.x-S.x)-(S.x-R.x)*(F.y-S.y)}function ne(R,S){return R.x===S.x&&R.y===S.y}function we(R,S,F,W){let te=ft(de(R,S,F)),fe=ft(de(R,S,W)),pe=ft(de(F,W,R)),ze=ft(de(F,W,S));return te!==fe&&pe!==ze||!(te!==0||!Ue(R,F,S))||!(fe!==0||!Ue(R,W,S))||!(pe!==0||!Ue(F,R,W))||!(ze!==0||!Ue(F,S,W))}function Ue(R,S,F){return S.x<=Math.max(R.x,F.x)&&S.x>=Math.min(R.x,F.x)&&S.y<=Math.max(R.y,F.y)&&S.y>=Math.min(R.y,F.y)}function ft(R){return R>0?1:R<0?-1:0}function Zt(R,S){return de(R.prev,R,R.next)<0?de(R,S,R.next)>=0&&de(R,R.prev,S)>=0:de(R,S,R.prev)<0||de(R,R.next,S)<0}function hr(R,S){let F=et(R.i,R.x,R.y),W=et(S.i,S.x,S.y),te=R.next,fe=S.prev;return R.next=S,S.prev=R,F.next=te,te.prev=F,W.next=F,F.prev=W,fe.next=W,W.prev=fe,W}function qt(R,S,F,W){let te=et(R,S,F);return W?(te.next=W.next,te.prev=W,W.next.prev=te,W.next=te):(te.prev=te,te.next=te),te}function Ve(R){R.next.prev=R.prev,R.prev.next=R.next,R.prevZ&&(R.prevZ.nextZ=R.nextZ),R.nextZ&&(R.nextZ.prevZ=R.prevZ)}function et(R,S,F){return{i:R,x:S,y:F,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function at(R,S,F){let W=F.patternDependencies,te=!1;for(let fe of S){let pe=fe.paint.get(`${R}-pattern`);pe.isConstant()||(te=!0);let ze=pe.constantOr(null);ze&&(te=!0,W[ze.to]=!0,W[ze.from]=!0)}return te}function kt(R,S,F,W,te){let fe=te.patternDependencies;for(let pe of S){let ze=pe.paint.get(`${R}-pattern`).value;if(ze.kind!=="constant"){let Ke=ze.evaluate({zoom:W-1},F,{},te.availableImages),ut=ze.evaluate({zoom:W},F,{},te.availableImages),Lt=ze.evaluate({zoom:W+1},F,{},te.availableImages);Ke=Ke&&Ke.name?Ke.name:Ke,ut=ut&&ut.name?ut.name:ut,Lt=Lt&&Lt.name?Lt.name:Lt,fe[Ke]=!0,fe[ut]=!0,fe[Lt]=!0,F.patterns[pe.id]={min:Ke,mid:ut,max:Lt}}}return F}class Ot{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new dl,this.indexArray=new se,this.indexArray2=new Te,this.programConfigurations=new Es(S.layers,S.zoom),this.segments=new Ye,this.segments2=new Ye,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.hasPattern=at("fill",this.layers,F);let te=this.layers[0].layout.get("fill-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:ze,id:Ke,index:ut,sourceLayerIndex:Lt}of S){let Qt=this.layers[0]._featureFilter.needGeometry,fr=Ml(ze,Qt);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),fr,W))continue;let mr=fe?te.evaluate(fr,{},W,F.availableImages):void 0,Lr={id:Ke,properties:ze.properties,type:ze.type,sourceLayerIndex:Lt,index:ut,geometry:Qt?fr.geometry:Qs(ze),patterns:{},sortKey:mr};pe.push(Lr)}fe&&pe.sort((ze,Ke)=>ze.sortKey-Ke.sortKey);for(let ze of pe){let{geometry:Ke,index:ut,sourceLayerIndex:Lt}=ze;if(this.hasPattern){let Qt=kt("fill",this.layers,ze,this.zoom,F);this.patternFeatures.push(Qt)}else this.addFeature(ze,Ke,ut,W,{});F.featureIndex.insert(S[ut].feature,Ke,ut,Lt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}addFeatures(S,F,W){for(let te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,F,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,El),this.indexBuffer=S.createIndexBuffer(this.indexArray),this.indexBuffer2=S.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(S,F,W,te,fe){for(let pe of Cf(F,500)){let ze=0;for(let mr of pe)ze+=mr.length;let Ke=this.segments.prepareSegment(ze,this.layoutVertexArray,this.indexArray),ut=Ke.vertexLength,Lt=[],Qt=[];for(let mr of pe){if(mr.length===0)continue;mr!==pe[0]&&Qt.push(Lt.length/2);let Lr=this.segments2.prepareSegment(mr.length,this.layoutVertexArray,this.indexArray2),zr=Lr.vertexLength;this.layoutVertexArray.emplaceBack(mr[0].x,mr[0].y),this.indexArray2.emplaceBack(zr+mr.length-1,zr),Lt.push(mr[0].x),Lt.push(mr[0].y);for(let ui=1;ui>3}if(te--,W===1||W===2)fe+=R.readSVarint(),pe+=R.readSVarint(),W===1&&(S&&ze.push(S),S=[]),S.push(new Nr(fe,pe));else{if(W!==7)throw new Error("unknown command "+W);S&&S.push(S[0].clone())}}return S&&ze.push(S),ze},hi.prototype.bbox=function(){var R=this._pbf;R.pos=this._geometry;for(var S=R.readVarint()+R.pos,F=1,W=0,te=0,fe=0,pe=1/0,ze=-1/0,Ke=1/0,ut=-1/0;R.pos>3}if(W--,F===1||F===2)(te+=R.readSVarint())ze&&(ze=te),(fe+=R.readSVarint())ut&&(ut=fe);else if(F!==7)throw new Error("unknown command "+F)}return[pe,Ke,ze,ut]},hi.prototype.toGeoJSON=function(R,S,F){var W,te,fe=this.extent*Math.pow(2,F),pe=this.extent*R,ze=this.extent*S,Ke=this.loadGeometry(),ut=hi.types[this.type];function Lt(mr){for(var Lr=0;Lr>3;te=pe===1?W.readString():pe===2?W.readFloat():pe===3?W.readDouble():pe===4?W.readVarint64():pe===5?W.readVarint():pe===6?W.readSVarint():pe===7?W.readBoolean():null}return te}(F))}qi.prototype.feature=function(R){if(R<0||R>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[R];var S=this._pbf.readVarint()+this._pbf.pos;return new tn(this._pbf,S,this.extent,this._keys,this._values)};var on=Ci;function On(R,S,F){if(R===3){var W=new on(F,F.readVarint()+F.pos);W.length&&(S[W.name]=W)}}br.VectorTile=function(R,S){this.layers=R.readFields(On,{},S)},br.VectorTileFeature=Ri,br.VectorTileLayer=Ci;let Ja=br.VectorTileFeature.types,co=Math.pow(2,13);function rs(R,S,F,W,te,fe,pe,ze){R.emplaceBack(S,F,2*Math.floor(W*co)+pe,te*co*2,fe*co*2,Math.round(ze))}class so{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new Ul,this.centroidVertexArray=new wo,this.indexArray=new se,this.programConfigurations=new Es(S.layers,S.zoom),this.segments=new Ye,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.features=[],this.hasPattern=at("fill-extrusion",this.layers,F);for(let{feature:te,id:fe,index:pe,sourceLayerIndex:ze}of S){let Ke=this.layers[0]._featureFilter.needGeometry,ut=Ml(te,Ke);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),ut,W))continue;let Lt={id:fe,sourceLayerIndex:ze,index:pe,geometry:Ke?ut.geometry:Qs(te),properties:te.properties,type:te.type,patterns:{}};this.hasPattern?this.features.push(kt("fill-extrusion",this.layers,Lt,this.zoom,F)):this.addFeature(Lt,Lt.geometry,pe,W,{}),F.featureIndex.insert(te,Lt.geometry,pe,ze,this.index,!0)}}addFeatures(S,F,W){for(let te of this.features){let{geometry:fe}=te;this.addFeature(te,fe,te.index,F,W)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,cr),this.centroidVertexBuffer=S.createVertexBuffer(this.centroidVertexArray,ht.members,!0),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(S,F,W,te,fe){for(let pe of Cf(F,500)){let ze={x:0,y:0,vertexCount:0},Ke=0;for(let Lr of pe)Ke+=Lr.length;let ut=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Lr of pe){if(Lr.length===0||ys(Lr))continue;let zr=0;for(let ui=0;ui=1){let dn=Lr[ui-1];if(!Zo(yi,dn)){ut.vertexLength+4>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ut=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let Fi=yi.sub(dn)._perp()._unit(),ln=dn.dist(yi);zr+ln>32768&&(zr=0),rs(this.layoutVertexArray,yi.x,yi.y,Fi.x,Fi.y,0,0,zr),rs(this.layoutVertexArray,yi.x,yi.y,Fi.x,Fi.y,0,1,zr),ze.x+=2*yi.x,ze.y+=2*yi.y,ze.vertexCount+=2,zr+=ln,rs(this.layoutVertexArray,dn.x,dn.y,Fi.x,Fi.y,0,0,zr),rs(this.layoutVertexArray,dn.x,dn.y,Fi.x,Fi.y,0,1,zr),ze.x+=2*dn.x,ze.y+=2*dn.y,ze.vertexCount+=2;let An=ut.vertexLength;this.indexArray.emplaceBack(An,An+2,An+1),this.indexArray.emplaceBack(An+1,An+2,An+3),ut.vertexLength+=4,ut.primitiveLength+=2}}}}if(ut.vertexLength+Ke>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ut=this.segments.prepareSegment(Ke,this.layoutVertexArray,this.indexArray)),Ja[S.type]!=="Polygon")continue;let Lt=[],Qt=[],fr=ut.vertexLength;for(let Lr of pe)if(Lr.length!==0){Lr!==pe[0]&&Qt.push(Lt.length/2);for(let zr=0;zrHa)||R.y===S.y&&(R.y<0||R.y>Ha)}function ys(R){return R.every(S=>S.x<0)||R.every(S=>S.x>Ha)||R.every(S=>S.y<0)||R.every(S=>S.y>Ha)}let ou;Di("FillExtrusionBucket",so,{omit:["layers","features"]});var Cv={get paint(){return ou=ou||new ue({"fill-extrusion-opacity":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new oo(ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Vc(ce["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new oo(ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new oo(ce["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class kv extends B{constructor(S){super(S,Cv)}createBucket(S){return new so(S)}queryRadius(){return Hn(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(S,F,W,te,fe,pe,ze,Ke){let ut=Qi(S,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),pe.angle,ze),Lt=this.paint.get("fill-extrusion-height").evaluate(F,W),Qt=this.paint.get("fill-extrusion-base").evaluate(F,W),fr=function(Lr,zr,ui,yi){let dn=[];for(let Fi of Lr){let ln=[Fi.x,Fi.y,0,1];qn(ln,ln,zr),dn.push(new u(ln[0]/ln[3],ln[1]/ln[3]))}return dn}(ut,Ke),mr=function(Lr,zr,ui,yi){let dn=[],Fi=[],ln=yi[8]*zr,An=yi[9]*zr,pa=yi[10]*zr,ro=yi[11]*zr,Vo=yi[8]*ui,Xa=yi[9]*ui,sa=yi[10]*ui,Mo=yi[11]*ui;for(let fo of Lr){let lo=[],Xn=[];for(let Ro of fo){let uo=Ro.x,$o=Ro.y,Ju=yi[0]*uo+yi[4]*$o+yi[12],qu=yi[1]*uo+yi[5]*$o+yi[13],Ah=yi[2]*uo+yi[6]*$o+yi[14],Qv=yi[3]*uo+yi[7]*$o+yi[15],ld=Ah+pa,Sh=Qv+ro,Gd=Ju+Vo,Hd=qu+Xa,jd=Ah+sa,Tf=Qv+Mo,Mh=new u((Ju+ln)/Sh,(qu+An)/Sh);Mh.z=ld/Sh,lo.push(Mh);let Ed=new u(Gd/Tf,Hd/Tf);Ed.z=jd/Tf,Xn.push(Ed)}dn.push(lo),Fi.push(Xn)}return[dn,Fi]}(te,Qt,Lt,Ke);return function(Lr,zr,ui){let yi=1/0;xt(ui,zr)&&(yi=Kv(ui,zr[0]));for(let dn=0;dnF.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(F=>{this.gradients[F.id]={}}),this.layoutVertexArray=new Lu,this.layoutVertexArray2=new au,this.indexArray=new se,this.programConfigurations=new Es(S.layers,S.zoom),this.segments=new Ye,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.hasPattern=at("line",this.layers,F);let te=this.layers[0].layout.get("line-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:ze,id:Ke,index:ut,sourceLayerIndex:Lt}of S){let Qt=this.layers[0]._featureFilter.needGeometry,fr=Ml(ze,Qt);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),fr,W))continue;let mr=fe?te.evaluate(fr,{},W):void 0,Lr={id:Ke,properties:ze.properties,type:ze.type,sourceLayerIndex:Lt,index:ut,geometry:Qt?fr.geometry:Qs(ze),patterns:{},sortKey:mr};pe.push(Lr)}fe&&pe.sort((ze,Ke)=>ze.sortKey-Ke.sortKey);for(let ze of pe){let{geometry:Ke,index:ut,sourceLayerIndex:Lt}=ze;if(this.hasPattern){let Qt=kt("line",this.layers,ze,this.zoom,F);this.patternFeatures.push(Qt)}else this.addFeature(ze,Ke,ut,W,{});F.featureIndex.insert(S[ut].feature,Ke,ut,Lt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}addFeatures(S,F,W){for(let te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,F,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=S.createVertexBuffer(this.layoutVertexArray2,pp)),this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,vp),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(S){if(S.properties&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_end"))return{start:+S.properties.mapbox_clip_start,end:+S.properties.mapbox_clip_end}}addFeature(S,F,W,te,fe){let pe=this.layers[0].layout,ze=pe.get("line-join").evaluate(S,{}),Ke=pe.get("line-cap"),ut=pe.get("line-miter-limit"),Lt=pe.get("line-round-limit");this.lineClips=this.lineFeatureClips(S);for(let Qt of F)this.addLine(Qt,S,ze,Ke,ut,Lt);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,W,fe,te)}addLine(S,F,W,te,fe,pe){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let yi=0;yi=2&&S[Ke-1].equals(S[Ke-2]);)Ke--;let ut=0;for(;ut0;if(ro&&yi>ut){let Mo=fr.dist(mr);if(Mo>2*Lt){let fo=fr.sub(fr.sub(mr)._mult(Lt/Mo)._round());this.updateDistance(mr,fo),this.addCurrentVertex(fo,zr,0,0,Qt),mr=fo}}let Xa=mr&&Lr,sa=Xa?W:ze?"butt":te;if(Xa&&sa==="round"&&(Anfe&&(sa="bevel"),sa==="bevel"&&(An>2&&(sa="flipbevel"),An100)dn=ui.mult(-1);else{let Mo=An*zr.add(ui).mag()/zr.sub(ui).mag();dn._perp()._mult(Mo*(Vo?-1:1))}this.addCurrentVertex(fr,dn,0,0,Qt),this.addCurrentVertex(fr,dn.mult(-1),0,0,Qt)}else if(sa==="bevel"||sa==="fakeround"){let Mo=-Math.sqrt(An*An-1),fo=Vo?Mo:0,lo=Vo?0:Mo;if(mr&&this.addCurrentVertex(fr,zr,fo,lo,Qt),sa==="fakeround"){let Xn=Math.round(180*pa/Math.PI/20);for(let Ro=1;Ro2*Lt){let fo=fr.add(Lr.sub(fr)._mult(Lt/Mo)._round());this.updateDistance(fr,fo),this.addCurrentVertex(fo,ui,0,0,Qt),fr=fo}}}}addCurrentVertex(S,F,W,te,fe,pe=!1){let ze=F.y*te-F.x,Ke=-F.y-F.x*te;this.addHalfVertex(S,F.x+F.y*W,F.y-F.x*W,pe,!1,W,fe),this.addHalfVertex(S,ze,Ke,pe,!0,-te,fe),this.distance>Lv/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(S,F,W,te,fe,pe))}addHalfVertex({x:S,y:F},W,te,fe,pe,ze,Ke){let ut=.5*(this.lineClips?this.scaledDistance*(Lv-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((S<<1)+(fe?1:0),(F<<1)+(pe?1:0),Math.round(63*W)+128,Math.round(63*te)+128,1+(ze===0?0:ze<0?-1:1)|(63&ut)<<2,ut>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let Lt=Ke.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Lt),Ke.primitiveLength++),pe?this.e2=Lt:this.e1=Lt}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(S,F){this.distance+=S.dist(F),this.updateScaledDistance()}}let Pv,ny;Di("LineBucket",Jv,{omit:["layers","patternFeatures"]});var hg={get paint(){return ny=ny||new ue({"line-opacity":new oo(ce.paint_line["line-opacity"]),"line-color":new oo(ce.paint_line["line-color"]),"line-translate":new Ua(ce.paint_line["line-translate"]),"line-translate-anchor":new Ua(ce.paint_line["line-translate-anchor"]),"line-width":new oo(ce.paint_line["line-width"]),"line-gap-width":new oo(ce.paint_line["line-gap-width"]),"line-offset":new oo(ce.paint_line["line-offset"]),"line-blur":new oo(ce.paint_line["line-blur"]),"line-dasharray":new hc(ce.paint_line["line-dasharray"]),"line-pattern":new Vc(ce.paint_line["line-pattern"]),"line-gradient":new Ku(ce.paint_line["line-gradient"])})},get layout(){return Pv=Pv||new ue({"line-cap":new Ua(ce.layout_line["line-cap"]),"line-join":new oo(ce.layout_line["line-join"]),"line-miter-limit":new Ua(ce.layout_line["line-miter-limit"]),"line-round-limit":new Ua(ce.layout_line["line-round-limit"]),"line-sort-key":new oo(ce.layout_line["line-sort-key"])})}};class oh extends oo{possiblyEvaluate(S,F){return F=new is(Math.floor(F.zoom),{now:F.now,fadeDuration:F.fadeDuration,zoomHistory:F.zoomHistory,transition:F.transition}),super.possiblyEvaluate(S,F)}evaluate(S,F,W,te){return F=L({},F,{zoom:Math.floor(F.zoom)}),super.evaluate(S,F,W,te)}}let dg;class ay extends B{constructor(S){super(S,hg),this.gradientVersion=0,dg||(dg=new oh(hg.paint.properties["line-width"].specification),dg.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(S){if(S==="line-gradient"){let F=this.gradientExpression();this.stepInterpolant=!!function(W){return W._styleExpression!==void 0}(F)&&F._styleExpression.expression instanceof _n,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(S,F){super.recalculate(S,F),this.paint._values["line-floorwidth"]=dg.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,S)}createBucket(S){return new Jv(S)}queryRadius(S){let F=S,W=Gh(Mi("line-width",this,F),Mi("line-gap-width",this,F)),te=Mi("line-offset",this,F);return W/2+Math.abs(te)+Hn(this.paint.get("line-translate"))}queryIntersectsFeature(S,F,W,te,fe,pe,ze){let Ke=Qi(S,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),pe.angle,ze),ut=ze/2*Gh(this.paint.get("line-width").evaluate(F,W),this.paint.get("line-gap-width").evaluate(F,W)),Lt=this.paint.get("line-offset").evaluate(F,W);return Lt&&(te=function(Qt,fr){let mr=[];for(let Lr=0;Lr=3){for(let ui=0;ui0?S+2*R:R}let rm=qe([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),w1=qe([{name:"a_projected_pos",components:3,type:"Float32"}],4);qe([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let T1=qe([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);qe([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let oy=qe([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),im=qe([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function nm(R,S,F){return R.sections.forEach(W=>{W.text=function(te,fe,pe){let ze=fe.layout.get("text-transform").evaluate(pe,{});return ze==="uppercase"?te=te.toLocaleUpperCase():ze==="lowercase"&&(te=te.toLocaleLowerCase()),_s.applyArabicShaping&&(te=_s.applyArabicShaping(te)),te}(W.text,S,F)}),R}qe([{name:"triangle",components:3,type:"Uint16"}]),qe([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),qe([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),qe([{type:"Float32",name:"offsetX"}]),qe([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),qe([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let vc={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};var eu=24,Sd=wu,sy=function(R,S,F,W,te){var fe,pe,ze=8*te-W-1,Ke=(1<>1,Lt=-7,Qt=F?te-1:0,fr=F?-1:1,mr=R[S+Qt];for(Qt+=fr,fe=mr&(1<<-Lt)-1,mr>>=-Lt,Lt+=ze;Lt>0;fe=256*fe+R[S+Qt],Qt+=fr,Lt-=8);for(pe=fe&(1<<-Lt)-1,fe>>=-Lt,Lt+=W;Lt>0;pe=256*pe+R[S+Qt],Qt+=fr,Lt-=8);if(fe===0)fe=1-ut;else{if(fe===Ke)return pe?NaN:1/0*(mr?-1:1);pe+=Math.pow(2,W),fe-=ut}return(mr?-1:1)*pe*Math.pow(2,fe-W)},A1=function(R,S,F,W,te,fe){var pe,ze,Ke,ut=8*fe-te-1,Lt=(1<>1,fr=te===23?Math.pow(2,-24)-Math.pow(2,-77):0,mr=W?0:fe-1,Lr=W?1:-1,zr=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(ze=isNaN(S)?1:0,pe=Lt):(pe=Math.floor(Math.log(S)/Math.LN2),S*(Ke=Math.pow(2,-pe))<1&&(pe--,Ke*=2),(S+=pe+Qt>=1?fr/Ke:fr*Math.pow(2,1-Qt))*Ke>=2&&(pe++,Ke/=2),pe+Qt>=Lt?(ze=0,pe=Lt):pe+Qt>=1?(ze=(S*Ke-1)*Math.pow(2,te),pe+=Qt):(ze=S*Math.pow(2,Qt-1)*Math.pow(2,te),pe=0));te>=8;R[F+mr]=255&ze,mr+=Lr,ze/=256,te-=8);for(pe=pe<0;R[F+mr]=255&pe,mr+=Lr,pe/=256,ut-=8);R[F+mr-Lr]|=128*zr};function wu(R){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(R)?R:new Uint8Array(R||0),this.pos=0,this.type=0,this.length=this.buf.length}wu.Varint=0,wu.Fixed64=1,wu.Bytes=2,wu.Fixed32=5;var Bx=4294967296,am=1/Bx,Mw=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function Iv(R){return R.type===wu.Bytes?R.readVarint()+R.pos:R.pos+1}function om(R,S,F){return F?4294967296*S+(R>>>0):4294967296*(S>>>0)+(R>>>0)}function Ew(R,S,F){var W=S<=16383?1:S<=2097151?2:S<=268435455?3:Math.floor(Math.log(S)/(7*Math.LN2));F.realloc(W);for(var te=F.pos-1;te>=R;te--)F.buf[te+W]=F.buf[te]}function Nx(R,S){for(var F=0;F>>8,R[F+2]=S>>>16,R[F+3]=S>>>24}function mk(R,S){return(R[S]|R[S+1]<<8|R[S+2]<<16)+(R[S+3]<<24)}wu.prototype={destroy:function(){this.buf=null},readFields:function(R,S,F){for(F=F||this.length;this.pos>3,fe=this.pos;this.type=7&W,R(te,S,this),this.pos===fe&&this.skip(W)}return S},readMessage:function(R,S){return this.readFields(R,S,this.readVarint()+this.pos)},readFixed32:function(){var R=ly(this.buf,this.pos);return this.pos+=4,R},readSFixed32:function(){var R=mk(this.buf,this.pos);return this.pos+=4,R},readFixed64:function(){var R=ly(this.buf,this.pos)+ly(this.buf,this.pos+4)*Bx;return this.pos+=8,R},readSFixed64:function(){var R=ly(this.buf,this.pos)+mk(this.buf,this.pos+4)*Bx;return this.pos+=8,R},readFloat:function(){var R=sy(this.buf,this.pos,!0,23,4);return this.pos+=4,R},readDouble:function(){var R=sy(this.buf,this.pos,!0,52,8);return this.pos+=8,R},readVarint:function(R){var S,F,W=this.buf;return S=127&(F=W[this.pos++]),F<128?S:(S|=(127&(F=W[this.pos++]))<<7,F<128?S:(S|=(127&(F=W[this.pos++]))<<14,F<128?S:(S|=(127&(F=W[this.pos++]))<<21,F<128?S:function(te,fe,pe){var ze,Ke,ut=pe.buf;if(ze=(112&(Ke=ut[pe.pos++]))>>4,Ke<128||(ze|=(127&(Ke=ut[pe.pos++]))<<3,Ke<128)||(ze|=(127&(Ke=ut[pe.pos++]))<<10,Ke<128)||(ze|=(127&(Ke=ut[pe.pos++]))<<17,Ke<128)||(ze|=(127&(Ke=ut[pe.pos++]))<<24,Ke<128)||(ze|=(1&(Ke=ut[pe.pos++]))<<31,Ke<128))return om(te,ze,fe);throw new Error("Expected varint not more than 10 bytes")}(S|=(15&(F=W[this.pos]))<<28,R,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var R=this.readVarint();return R%2==1?(R+1)/-2:R/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var R=this.readVarint()+this.pos,S=this.pos;return this.pos=R,R-S>=12&&Mw?function(F,W,te){return Mw.decode(F.subarray(W,te))}(this.buf,S,R):function(F,W,te){for(var fe="",pe=W;pe239?4:Lt>223?3:Lt>191?2:1;if(pe+fr>te)break;fr===1?Lt<128&&(Qt=Lt):fr===2?(192&(ze=F[pe+1]))==128&&(Qt=(31&Lt)<<6|63&ze)<=127&&(Qt=null):fr===3?(Ke=F[pe+2],(192&(ze=F[pe+1]))==128&&(192&Ke)==128&&((Qt=(15&Lt)<<12|(63&ze)<<6|63&Ke)<=2047||Qt>=55296&&Qt<=57343)&&(Qt=null)):fr===4&&(Ke=F[pe+2],ut=F[pe+3],(192&(ze=F[pe+1]))==128&&(192&Ke)==128&&(192&ut)==128&&((Qt=(15&Lt)<<18|(63&ze)<<12|(63&Ke)<<6|63&ut)<=65535||Qt>=1114112)&&(Qt=null)),Qt===null?(Qt=65533,fr=1):Qt>65535&&(Qt-=65536,fe+=String.fromCharCode(Qt>>>10&1023|55296),Qt=56320|1023&Qt),fe+=String.fromCharCode(Qt),pe+=fr}return fe}(this.buf,S,R)},readBytes:function(){var R=this.readVarint()+this.pos,S=this.buf.subarray(this.pos,R);return this.pos=R,S},readPackedVarint:function(R,S){if(this.type!==wu.Bytes)return R.push(this.readVarint(S));var F=Iv(this);for(R=R||[];this.pos127;);else if(S===wu.Bytes)this.pos=this.readVarint()+this.pos;else if(S===wu.Fixed32)this.pos+=4;else{if(S!==wu.Fixed64)throw new Error("Unimplemented type: "+S);this.pos+=8}},writeTag:function(R,S){this.writeVarint(R<<3|S)},realloc:function(R){for(var S=this.length||16;S268435455||R<0?function(S,F){var W,te;if(S>=0?(W=S%4294967296|0,te=S/4294967296|0):(te=~(-S/4294967296),4294967295^(W=~(-S%4294967296))?W=W+1|0:(W=0,te=te+1|0)),S>=18446744073709552e3||S<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");F.realloc(10),function(fe,pe,ze){ze.buf[ze.pos++]=127&fe|128,fe>>>=7,ze.buf[ze.pos++]=127&fe|128,fe>>>=7,ze.buf[ze.pos++]=127&fe|128,fe>>>=7,ze.buf[ze.pos++]=127&fe|128,ze.buf[ze.pos]=127&(fe>>>=7)}(W,0,F),function(fe,pe){var ze=(7&fe)<<4;pe.buf[pe.pos++]|=ze|((fe>>>=3)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe)))))}(te,F)}(R,this):(this.realloc(4),this.buf[this.pos++]=127&R|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=R>>>7&127))))},writeSVarint:function(R){this.writeVarint(R<0?2*-R-1:2*R)},writeBoolean:function(R){this.writeVarint(!!R)},writeString:function(R){R=String(R),this.realloc(4*R.length),this.pos++;var S=this.pos;this.pos=function(W,te,fe){for(var pe,ze,Ke=0;Ke55295&&pe<57344){if(!ze){pe>56319||Ke+1===te.length?(W[fe++]=239,W[fe++]=191,W[fe++]=189):ze=pe;continue}if(pe<56320){W[fe++]=239,W[fe++]=191,W[fe++]=189,ze=pe;continue}pe=ze-55296<<10|pe-56320|65536,ze=null}else ze&&(W[fe++]=239,W[fe++]=191,W[fe++]=189,ze=null);pe<128?W[fe++]=pe:(pe<2048?W[fe++]=pe>>6|192:(pe<65536?W[fe++]=pe>>12|224:(W[fe++]=pe>>18|240,W[fe++]=pe>>12&63|128),W[fe++]=pe>>6&63|128),W[fe++]=63&pe|128)}return fe}(this.buf,R,this.pos);var F=this.pos-S;F>=128&&Ew(S,F,this),this.pos=S-1,this.writeVarint(F),this.pos+=F},writeFloat:function(R){this.realloc(4),A1(this.buf,R,this.pos,!0,23,4),this.pos+=4},writeDouble:function(R){this.realloc(8),A1(this.buf,R,this.pos,!0,52,8),this.pos+=8},writeBytes:function(R){var S=R.length;this.writeVarint(S),this.realloc(S);for(var F=0;F=128&&Ew(F,W,this),this.pos=F-1,this.writeVarint(W),this.pos+=W},writeMessage:function(R,S,F){this.writeTag(R,wu.Bytes),this.writeRawMessage(S,F)},writePackedVarint:function(R,S){S.length&&this.writeMessage(R,Nx,S)},writePackedSVarint:function(R,S){S.length&&this.writeMessage(R,F9,S)},writePackedBoolean:function(R,S){S.length&&this.writeMessage(R,q9,S)},writePackedFloat:function(R,S){S.length&&this.writeMessage(R,z9,S)},writePackedDouble:function(R,S){S.length&&this.writeMessage(R,O9,S)},writePackedFixed32:function(R,S){S.length&&this.writeMessage(R,EQ,S)},writePackedSFixed32:function(R,S){S.length&&this.writeMessage(R,B9,S)},writePackedFixed64:function(R,S){S.length&&this.writeMessage(R,N9,S)},writePackedSFixed64:function(R,S){S.length&&this.writeMessage(R,U9,S)},writeBytesField:function(R,S){this.writeTag(R,wu.Bytes),this.writeBytes(S)},writeFixed32Field:function(R,S){this.writeTag(R,wu.Fixed32),this.writeFixed32(S)},writeSFixed32Field:function(R,S){this.writeTag(R,wu.Fixed32),this.writeSFixed32(S)},writeFixed64Field:function(R,S){this.writeTag(R,wu.Fixed64),this.writeFixed64(S)},writeSFixed64Field:function(R,S){this.writeTag(R,wu.Fixed64),this.writeSFixed64(S)},writeVarintField:function(R,S){this.writeTag(R,wu.Varint),this.writeVarint(S)},writeSVarintField:function(R,S){this.writeTag(R,wu.Varint),this.writeSVarint(S)},writeStringField:function(R,S){this.writeTag(R,wu.Bytes),this.writeString(S)},writeFloatField:function(R,S){this.writeTag(R,wu.Fixed32),this.writeFloat(S)},writeDoubleField:function(R,S){this.writeTag(R,wu.Fixed64),this.writeDouble(S)},writeBooleanField:function(R,S){this.writeVarintField(R,!!S)}};var rS=o(Sd);let iS=3;function CQ(R,S,F){R===1&&F.readMessage(V9,S)}function V9(R,S,F){if(R===3){let{id:W,bitmap:te,width:fe,height:pe,left:ze,top:Ke,advance:ut}=F.readMessage(yk,{});S.push({id:W,bitmap:new na({width:fe+2*iS,height:pe+2*iS},te),metrics:{width:fe,height:pe,left:ze,top:Ke,advance:ut}})}}function yk(R,S,F){R===1?S.id=F.readVarint():R===2?S.bitmap=F.readBytes():R===3?S.width=F.readVarint():R===4?S.height=F.readVarint():R===5?S.left=F.readSVarint():R===6?S.top=F.readSVarint():R===7&&(S.advance=F.readVarint())}let _k=iS;function nS(R){let S=0,F=0;for(let pe of R)S+=pe.w*pe.h,F=Math.max(F,pe.w);R.sort((pe,ze)=>ze.h-pe.h);let W=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(S/.95)),F),h:1/0}],te=0,fe=0;for(let pe of R)for(let ze=W.length-1;ze>=0;ze--){let Ke=W[ze];if(!(pe.w>Ke.w||pe.h>Ke.h)){if(pe.x=Ke.x,pe.y=Ke.y,fe=Math.max(fe,pe.y+pe.h),te=Math.max(te,pe.x+pe.w),pe.w===Ke.w&&pe.h===Ke.h){let ut=W.pop();ze=0&&W>=S&&Lw[this.text.charCodeAt(W)];W--)F--;this.text=this.text.substring(S,F),this.sectionIndex=this.sectionIndex.slice(S,F)}substring(S,F){let W=new S1;return W.text=this.text.substring(S,F),W.sectionIndex=this.sectionIndex.slice(S,F),W.sections=this.sections,W}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((S,F)=>Math.max(S,this.sections[F].scale),0)}addTextSection(S,F){this.text+=S.text,this.sections.push(Vx.forText(S.scale,S.fontStack||F));let W=this.sections.length-1;for(let te=0;te=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Gx(R,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr){let zr=S1.fromFeature(R,te),ui;Qt===i.ah.vertical&&zr.verticalizePunctuation();let{processBidirectionalText:yi,processStyledBidirectionalText:dn}=_s;if(yi&&zr.sections.length===1){ui=[];let An=yi(zr.toString(),M1(zr,ut,fe,S,W,mr));for(let pa of An){let ro=new S1;ro.text=pa,ro.sections=zr.sections;for(let Vo=0;Vo0&&tp>Rf&&(Rf=tp)}else{let Gc=ro[tu.fontStack],Zf=Gc&&Gc[$u];if(Zf&&Zf.rect)I1=Zf.rect,ff=Zf.metrics;else{let tp=pa[tu.fontStack],mg=tp&&tp[$u];if(!mg)continue;ff=mg.metrics}Fv=(Mh-tu.scale)*eu}ep?(An.verticalizable=!0,Hh.push({glyph:$u,imageName:p0,x:$o,y:Ju+Fv,vertical:ep,scale:tu.scale,fontStack:tu.fontStack,sectionIndex:pc,metrics:ff,rect:I1}),$o+=Gp*tu.scale+Xn):(Hh.push({glyph:$u,imageName:p0,x:$o,y:Ju+Fv,vertical:ep,scale:tu.scale,fontStack:tu.fontStack,sectionIndex:pc,metrics:ff,rect:I1}),$o+=ff.advance*tu.scale+Xn)}Hh.length!==0&&(qu=Math.max($o-Xn,qu),sm(Hh,0,Hh.length-1,Qv,Rf)),$o=0;let Dv=sa*Mh+Rf;ud.lineOffset=Math.max(Rf,Ed),Ju+=Dv,Ah=Math.max(Dv,Ah),++ld}var Sh;let Gd=Ju-Th,{horizontalAlign:Hd,verticalAlign:jd}=Iw(Mo);(function(Tf,Mh,Ed,ud,Hh,Rf,Dv,lv,tu){let pc=(Mh-Ed)*Hh,$u=0;$u=Rf!==Dv?-lv*ud-Th:(-ud*tu+.5)*Dv;for(let Fv of Tf)for(let ff of Fv.positionedGlyphs)ff.x+=pc,ff.y+=$u})(An.positionedLines,Qv,Hd,jd,qu,Ah,sa,Gd,Xa.length),An.top+=-jd*Gd,An.bottom=An.top+Gd,An.left+=-Hd*qu,An.right=An.left+qu}(ln,S,F,W,ui,pe,ze,Ke,Qt,ut,fr,Lr),!function(An){for(let pa of An)if(pa.positionedGlyphs.length!==0)return!1;return!0}(Fi)&&ln}let Lw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},G9={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},H9={40:!0};function xk(R,S,F,W,te,fe){if(S.imageName){let pe=W[S.imageName];return pe?pe.displaySize[0]*S.scale*eu/fe+te:0}{let pe=F[S.fontStack],ze=pe&&pe[R];return ze?ze.metrics.advance*S.scale+te:0}}function bk(R,S,F,W){let te=Math.pow(R-S,2);return W?R=0,ut=0;for(let Qt=0;Qtut){let Lt=Math.ceil(fe/ut);te*=Lt/pe,pe=Lt}return{x1:W,y1:te,x2:W+fe,y2:te+pe}}function Ak(R,S,F,W,te,fe){let pe=R.image,ze;if(pe.content){let ui=pe.content,yi=pe.pixelRatio||1;ze=[ui[0]/yi,ui[1]/yi,pe.displaySize[0]-ui[2]/yi,pe.displaySize[1]-ui[3]/yi]}let Ke=S.left*fe,ut=S.right*fe,Lt,Qt,fr,mr;F==="width"||F==="both"?(mr=te[0]+Ke-W[3],Qt=te[0]+ut+W[1]):(mr=te[0]+(Ke+ut-pe.displaySize[0])/2,Qt=mr+pe.displaySize[0]);let Lr=S.top*fe,zr=S.bottom*fe;return F==="height"||F==="both"?(Lt=te[1]+Lr-W[0],fr=te[1]+zr+W[2]):(Lt=te[1]+(Lr+zr-pe.displaySize[1])/2,fr=Lt+pe.displaySize[1]),{image:pe,top:Lt,right:Qt,bottom:fr,left:mr,collisionPadding:ze}}let jx=255,v0=128,lm=jx*v0;function Sk(R,S){let{expression:F}=S;if(F.kind==="constant")return{kind:"constant",layoutSize:F.evaluate(new is(R+1))};if(F.kind==="source")return{kind:"source"};{let{zoomStops:W,interpolationType:te}=F,fe=0;for(;fepe.id),this.index=S.index,this.pixelRatio=S.pixelRatio,this.sourceLayerIndex=S.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Ii([]),this.placementViewportMatrix=Ii([]);let F=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Sk(this.zoom,F["text-size"]),this.iconSizeData=Sk(this.zoom,F["icon-size"]);let W=this.layers[0].layout,te=W.get("symbol-sort-key"),fe=W.get("symbol-z-order");this.canOverlap=aS(W,"text-overlap","text-allow-overlap")!=="never"||aS(W,"icon-overlap","icon-allow-overlap")!=="never"||W.get("text-ignore-placement")||W.get("icon-ignore-placement"),this.sortFeaturesByKey=fe!=="viewport-y"&&!te.isConstant(),this.sortFeaturesByY=(fe==="viewport-y"||fe==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,W.get("symbol-placement")==="point"&&(this.writingModes=W.get("text-writing-mode").map(pe=>i.ah[pe])),this.stateDependentLayerIds=this.layers.filter(pe=>pe.isStateDependent()).map(pe=>pe.id),this.sourceID=S.sourceID}createArrays(){this.text=new lS(new Es(this.layers,this.zoom,S=>/^text/.test(S))),this.icon=new lS(new Es(this.layers,this.zoom,S=>/^icon/.test(S))),this.glyphOffsetArray=new ko,this.lineVertexArray=new Qa,this.symbolInstances=new $a,this.textAnchorOffsets=new Bo}calculateGlyphDependencies(S,F,W,te,fe){for(let pe=0;pe0)&&(pe.value.kind!=="constant"||pe.value.value.length>0),Lt=Ke.value.kind!=="constant"||!!Ke.value.value||Object.keys(Ke.parameters).length>0,Qt=fe.get("symbol-sort-key");if(this.features=[],!ut&&!Lt)return;let fr=F.iconDependencies,mr=F.glyphDependencies,Lr=F.availableImages,zr=new is(this.zoom);for(let{feature:ui,id:yi,index:dn,sourceLayerIndex:Fi}of S){let ln=te._featureFilter.needGeometry,An=Ml(ui,ln);if(!te._featureFilter.filter(zr,An,W))continue;let pa,ro;if(ln||(An.geometry=Qs(ui)),ut){let Xa=te.getValueAndResolveTokens("text-field",An,W,Lr),sa=ri.factory(Xa),Mo=this.hasRTLText=this.hasRTLText||sS(sa);(!Mo||_s.getRTLTextPluginStatus()==="unavailable"||Mo&&_s.isParsed())&&(pa=nm(sa,te,An))}if(Lt){let Xa=te.getValueAndResolveTokens("icon-image",An,W,Lr);ro=Xa instanceof en?Xa:en.fromString(Xa)}if(!pa&&!ro)continue;let Vo=this.sortFeaturesByKey?Qt.evaluate(An,{},W):void 0;if(this.features.push({id:yi,text:pa,icon:ro,index:dn,sourceLayerIndex:Fi,geometry:An.geometry,properties:ui.properties,type:W9[ui.type],sortKey:Vo}),ro&&(fr[ro.name]=!0),pa){let Xa=pe.evaluate(An,{},W).join(","),sa=fe.get("text-rotation-alignment")!=="viewport"&&fe.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let Mo of pa.sections)if(Mo.image)fr[Mo.image.name]=!0;else{let fo=Ka(pa.toString()),lo=Mo.fontStack||Xa,Xn=mr[lo]=mr[lo]||{};this.calculateGlyphDependencies(Mo.text,Xn,sa,this.allowVerticalPlacement,fo)}}}fe.get("symbol-placement")==="line"&&(this.features=function(ui){let yi={},dn={},Fi=[],ln=0;function An(Xa){Fi.push(ui[Xa]),ln++}function pa(Xa,sa,Mo){let fo=dn[Xa];return delete dn[Xa],dn[sa]=fo,Fi[fo].geometry[0].pop(),Fi[fo].geometry[0]=Fi[fo].geometry[0].concat(Mo[0]),fo}function ro(Xa,sa,Mo){let fo=yi[sa];return delete yi[sa],yi[Xa]=fo,Fi[fo].geometry[0].shift(),Fi[fo].geometry[0]=Mo[0].concat(Fi[fo].geometry[0]),fo}function Vo(Xa,sa,Mo){let fo=Mo?sa[0][sa[0].length-1]:sa[0][0];return`${Xa}:${fo.x}:${fo.y}`}for(let Xa=0;XaXa.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((ui,yi)=>ui.sortKey-yi.sortKey)}update(S,F,W){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(S,F,this.layers,W),this.icon.programConfigurations.updatePaintArrays(S,F,this.layers,W))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(S){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(S),this.iconCollisionBox.upload(S)),this.text.upload(S,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(S,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(S,F){let W=this.lineVertexArray.length;if(S.segment!==void 0){let te=S.dist(F[S.segment+1]),fe=S.dist(F[S.segment]),pe={};for(let ze=S.segment+1;ze=0;ze--)pe[ze]={x:F[ze].x,y:F[ze].y,tileUnitDistanceFromAnchor:fe},ze>0&&(fe+=F[ze-1].dist(F[ze]));for(let ze=0;ze0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(S,F){let W=S.placedSymbolArray.get(F),te=W.vertexStartIndex+4*W.numGlyphs;for(let fe=W.vertexStartIndex;fete[ze]-te[Ke]||fe[Ke]-fe[ze]),pe}addToSortKeyRanges(S,F){let W=this.sortKeyRanges[this.sortKeyRanges.length-1];W&&W.sortKey===F?W.symbolInstanceEnd=S+1:this.sortKeyRanges.push({sortKey:F,symbolInstanceStart:S,symbolInstanceEnd:S+1})}sortFeatures(S){if(this.sortFeaturesByY&&this.sortedAngle!==S&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(S),this.sortedAngle=S,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let F of this.symbolInstanceIndexes){let W=this.symbolInstances.get(F);this.featureSortOrder.push(W.featureIndex),[W.rightJustifiedTextSymbolIndex,W.centerJustifiedTextSymbolIndex,W.leftJustifiedTextSymbolIndex].forEach((te,fe,pe)=>{te>=0&&pe.indexOf(te)===fe&&this.addIndicesForPlacedSymbol(this.text,te)}),W.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,W.verticalPlacedTextSymbolIndex),W.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.placedIconSymbolIndex),W.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let wf,Wx;Di("SymbolBucket",E1,{omit:["layers","collisionBoxArray","features","compareText"]}),E1.MAX_GLYPHS=65535,E1.addDynamicAttributes=oS;var Dw={get paint(){return Wx=Wx||new ue({"icon-opacity":new oo(ce.paint_symbol["icon-opacity"]),"icon-color":new oo(ce.paint_symbol["icon-color"]),"icon-halo-color":new oo(ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new oo(ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new oo(ce.paint_symbol["icon-halo-blur"]),"icon-translate":new Ua(ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ua(ce.paint_symbol["icon-translate-anchor"]),"text-opacity":new oo(ce.paint_symbol["text-opacity"]),"text-color":new oo(ce.paint_symbol["text-color"],{runtimeType:Yt,getOverride:R=>R.textColor,hasOverride:R=>!!R.textColor}),"text-halo-color":new oo(ce.paint_symbol["text-halo-color"]),"text-halo-width":new oo(ce.paint_symbol["text-halo-width"]),"text-halo-blur":new oo(ce.paint_symbol["text-halo-blur"]),"text-translate":new Ua(ce.paint_symbol["text-translate"]),"text-translate-anchor":new Ua(ce.paint_symbol["text-translate-anchor"])})},get layout(){return wf=wf||new ue({"symbol-placement":new Ua(ce.layout_symbol["symbol-placement"]),"symbol-spacing":new Ua(ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ua(ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new oo(ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ua(ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ua(ce.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Ua(ce.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Ua(ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ua(ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ua(ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new oo(ce.layout_symbol["icon-size"]),"icon-text-fit":new Ua(ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ua(ce.layout_symbol["icon-text-fit-padding"]),"icon-image":new oo(ce.layout_symbol["icon-image"]),"icon-rotate":new oo(ce.layout_symbol["icon-rotate"]),"icon-padding":new oo(ce.layout_symbol["icon-padding"]),"icon-keep-upright":new Ua(ce.layout_symbol["icon-keep-upright"]),"icon-offset":new oo(ce.layout_symbol["icon-offset"]),"icon-anchor":new oo(ce.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ua(ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ua(ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ua(ce.layout_symbol["text-rotation-alignment"]),"text-field":new oo(ce.layout_symbol["text-field"]),"text-font":new oo(ce.layout_symbol["text-font"]),"text-size":new oo(ce.layout_symbol["text-size"]),"text-max-width":new oo(ce.layout_symbol["text-max-width"]),"text-line-height":new Ua(ce.layout_symbol["text-line-height"]),"text-letter-spacing":new oo(ce.layout_symbol["text-letter-spacing"]),"text-justify":new oo(ce.layout_symbol["text-justify"]),"text-radial-offset":new oo(ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ua(ce.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new oo(ce.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new oo(ce.layout_symbol["text-anchor"]),"text-max-angle":new Ua(ce.layout_symbol["text-max-angle"]),"text-writing-mode":new Ua(ce.layout_symbol["text-writing-mode"]),"text-rotate":new oo(ce.layout_symbol["text-rotate"]),"text-padding":new Ua(ce.layout_symbol["text-padding"]),"text-keep-upright":new Ua(ce.layout_symbol["text-keep-upright"]),"text-transform":new oo(ce.layout_symbol["text-transform"]),"text-offset":new oo(ce.layout_symbol["text-offset"]),"text-allow-overlap":new Ua(ce.layout_symbol["text-allow-overlap"]),"text-overlap":new Ua(ce.layout_symbol["text-overlap"]),"text-ignore-placement":new Ua(ce.layout_symbol["text-ignore-placement"]),"text-optional":new Ua(ce.layout_symbol["text-optional"])})}};class Xx{constructor(S){if(S.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=S.property.overrides?S.property.overrides.runtimeType:Ut,this.defaultValue=S}evaluate(S){if(S.formattedSection){let F=this.defaultValue.property.overrides;if(F&&F.hasOverride(S.formattedSection))return F.getOverride(S.formattedSection)}return S.feature&&S.featureState?this.defaultValue.evaluate(S.feature,S.featureState):this.defaultValue.property.specification.default}eachChild(S){this.defaultValue.isConstant()||S(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Di("FormatSectionOverride",Xx,{omit:["defaultValue"]});class uy extends B{constructor(S){super(S,Dw)}recalculate(S,F){if(super.recalculate(S,F),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){let W=this.layout.get("text-writing-mode");if(W){let te=[];for(let fe of W)te.indexOf(fe)<0&&te.push(fe);this.layout._values["text-writing-mode"]=te}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(S,F,W,te){let fe=this.layout.get(S).evaluate(F,{},W,te),pe=this._unevaluatedLayout._values[S];return pe.isDataDriven()||Dc(pe.value)||!fe?fe:function(ze,Ke){return Ke.replace(/{([^{}]+)}/g,(ut,Lt)=>ze&&Lt in ze?String(ze[Lt]):"")}(F.properties,fe)}createBucket(S){return new E1(S)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let S of Dw.paint.overridableProperties){if(!uy.hasPaintOverride(this.layout,S))continue;let F=this.paint.get(S),W=new Xx(F),te=new Eu(W,F.property.specification),fe=null;fe=F.value.kind==="constant"||F.value.kind==="source"?new bc("source",te):new hu("composite",te,F.value.zoomStops),this.paint._values[S]=new xu(F.property,fe,F.parameters)}}_handleOverridablePaintPropertyUpdate(S,F,W){return!(!this.layout||F.isDataDriven()||W.isDataDriven())&&uy.hasPaintOverride(this.layout,S)}static hasPaintOverride(S,F){let W=S.get("text-field"),te=Dw.paint.properties[F],fe=!1,pe=ze=>{for(let Ke of ze)if(te.overrides&&te.overrides.hasOverride(Ke))return void(fe=!0)};if(W.value.kind==="constant"&&W.value.value instanceof ri)pe(W.value.value.sections);else if(W.value.kind==="source"){let ze=ut=>{fe||(ut instanceof la&&Mn(ut.value)===ei?pe(ut.value.sections):ut instanceof Zl?pe(ut.sections):ut.eachChild(ze))},Ke=W.value;Ke._styleExpression&&ze(Ke._styleExpression.expression)}return fe}}let Mk;var Zx={get paint(){return Mk=Mk||new ue({"background-color":new Ua(ce.paint_background["background-color"]),"background-pattern":new hc(ce.paint_background["background-pattern"]),"background-opacity":new Ua(ce.paint_background["background-opacity"])})}};class Z9 extends B{constructor(S){super(S,Zx)}}let uS;var Ek={get paint(){return uS=uS||new ue({"raster-opacity":new Ua(ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new Ua(ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Ua(ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Ua(ce.paint_raster["raster-brightness-max"]),"raster-saturation":new Ua(ce.paint_raster["raster-saturation"]),"raster-contrast":new Ua(ce.paint_raster["raster-contrast"]),"raster-resampling":new Ua(ce.paint_raster["raster-resampling"]),"raster-fade-duration":new Ua(ce.paint_raster["raster-fade-duration"])})}};class Yx extends B{constructor(S){super(S,Ek)}}class cS extends B{constructor(S){super(S,{}),this.onAdd=F=>{this.implementation.onAdd&&this.implementation.onAdd(F,F.painter.context.gl)},this.onRemove=F=>{this.implementation.onRemove&&this.implementation.onRemove(F,F.painter.context.gl)},this.implementation=S}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class fS{constructor(S){this._methodToThrottle=S,this._triggered=!1,typeof MessageChannel!="undefined"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let hS=63710088e-1;class vg{constructor(S,F){if(isNaN(S)||isNaN(F))throw new Error(`Invalid LngLat object: (${S}, ${F})`);if(this.lng=+S,this.lat=+F,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new vg(A(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(S){let F=Math.PI/180,W=this.lat*F,te=S.lat*F,fe=Math.sin(W)*Math.sin(te)+Math.cos(W)*Math.cos(te)*Math.cos((S.lng-this.lng)*F);return hS*Math.acos(Math.min(fe,1))}static convert(S){if(S instanceof vg)return S;if(Array.isArray(S)&&(S.length===2||S.length===3))return new vg(Number(S[0]),Number(S[1]));if(!Array.isArray(S)&&typeof S=="object"&&S!==null)return new vg(Number("lng"in S?S.lng:S.lon),Number(S.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let C1=2*Math.PI*hS;function Ck(R){return C1*Math.cos(R*Math.PI/180)}function Fw(R){return(180+R)/360}function kk(R){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R*Math.PI/360)))/360}function zw(R,S){return R/Ck(S)}function Kx(R){return 360/Math.PI*Math.atan(Math.exp((180-360*R)*Math.PI/180))-90}class Jx{constructor(S,F,W=0){this.x=+S,this.y=+F,this.z=+W}static fromLngLat(S,F=0){let W=vg.convert(S);return new Jx(Fw(W.lng),kk(W.lat),zw(F,W.lat))}toLngLat(){return new vg(360*this.x-180,Kx(this.y))}toAltitude(){return this.z*Ck(Kx(this.y))}meterInMercatorCoordinateUnits(){return 1/C1*(S=Kx(this.y),1/Math.cos(S*Math.PI/180));var S}}function gp(R,S,F){var W=2*Math.PI*6378137/256/Math.pow(2,F);return[R*W-2*Math.PI*6378137/2,S*W-2*Math.PI*6378137/2]}class dS{constructor(S,F,W){if(!function(te,fe,pe){return!(te<0||te>25||pe<0||pe>=Math.pow(2,te)||fe<0||fe>=Math.pow(2,te))}(S,F,W))throw new Error(`x=${F}, y=${W}, z=${S} outside of bounds. 0<=x<${Math.pow(2,S)}, 0<=y<${Math.pow(2,S)} 0<=z<=25 `);this.z=S,this.x=F,this.y=W,this.key=$x(0,S,S,F,W)}equals(S){return this.z===S.z&&this.x===S.x&&this.y===S.y}url(S,F,W){let te=(pe=this.y,ze=this.z,Ke=gp(256*(fe=this.x),256*(pe=Math.pow(2,ze)-pe-1),ze),ut=gp(256*(fe+1),256*(pe+1),ze),Ke[0]+","+Ke[1]+","+ut[0]+","+ut[1]);var fe,pe,ze,Ke,ut;let Lt=function(Qt,fr,mr){let Lr,zr="";for(let ui=Qt;ui>0;ui--)Lr=1<1?"@2x":"").replace(/{quadkey}/g,Lt).replace(/{bbox-epsg-3857}/g,te)}isChildOf(S){let F=this.z-S.z;return F>0&&S.x===this.x>>F&&S.y===this.y>>F}getTilePoint(S){let F=Math.pow(2,this.z);return new u((S.x*F-this.x)*Ha,(S.y*F-this.y)*Ha)}toString(){return`${this.z}/${this.x}/${this.y}`}}class Lk{constructor(S,F){this.wrap=S,this.canonical=F,this.key=$x(S,F.z,F.z,F.x,F.y)}}class $v{constructor(S,F,W,te,fe){if(S= z; overscaledZ = ${S}; z = ${W}`);this.overscaledZ=S,this.wrap=F,this.canonical=new dS(W,+te,+fe),this.key=$x(F,S,W,te,fe)}clone(){return new $v(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(S){return this.overscaledZ===S.overscaledZ&&this.wrap===S.wrap&&this.canonical.equals(S.canonical)}scaledTo(S){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let F=this.canonical.z-S;return S>this.canonical.z?new $v(S,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new $v(S,this.wrap,S,this.canonical.x>>F,this.canonical.y>>F)}calculateScaledKey(S,F){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let W=this.canonical.z-S;return S>this.canonical.z?$x(this.wrap*+F,S,this.canonical.z,this.canonical.x,this.canonical.y):$x(this.wrap*+F,S,S,this.canonical.x>>W,this.canonical.y>>W)}isChildOf(S){if(S.wrap!==this.wrap)return!1;let F=this.canonical.z-S.canonical.z;return S.overscaledZ===0||S.overscaledZ>F&&S.canonical.y===this.canonical.y>>F}children(S){if(this.overscaledZ>=S)return[new $v(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let F=this.canonical.z+1,W=2*this.canonical.x,te=2*this.canonical.y;return[new $v(F,this.wrap,F,W,te),new $v(F,this.wrap,F,W+1,te),new $v(F,this.wrap,F,W,te+1),new $v(F,this.wrap,F,W+1,te+1)]}isLessThan(S){return this.wrapS.wrap)&&(this.overscaledZS.overscaledZ)&&(this.canonical.xS.canonical.x)&&this.canonical.ythis.max&&(this.max=Qt),Qt=this.dim+1||F<-1||F>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(F+1)*this.stride+(S+1)}unpack(S,F,W){return S*this.redFactor+F*this.greenFactor+W*this.blueFactor-this.baseShift}getPixels(){return new Yi({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(S,F,W){if(this.dim!==S.dim)throw new Error("dem dimension mismatch");let te=F*this.dim,fe=F*this.dim+this.dim,pe=W*this.dim,ze=W*this.dim+this.dim;switch(F){case-1:te=fe-1;break;case 1:fe=te+1}switch(W){case-1:pe=ze-1;break;case 1:ze=pe+1}let Ke=-F*this.dim,ut=-W*this.dim;for(let Lt=pe;Lt=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${S} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[S]}}class vS{constructor(S,F,W,te,fe){this.type="Feature",this._vectorTileFeature=S,S._z=F,S._x=W,S._y=te,this.properties=S.properties,this.id=fe}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(S){this._geometry=S}toJSON(){let S={geometry:this.geometry};for(let F in this)F!=="_geometry"&&F!=="_vectorTileFeature"&&(S[F]=this[F]);return S}}class cy{constructor(S,F){this.tileID=S,this.x=S.canonical.x,this.y=S.canonical.y,this.z=S.canonical.z,this.grid=new $i(Ha,16,0),this.grid3D=new $i(Ha,16,0),this.featureIndexArray=new As,this.promoteId=F}insert(S,F,W,te,fe,pe){let ze=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(W,te,fe);let Ke=pe?this.grid3D:this.grid;for(let ut=0;ut=0&&Qt[3]>=0&&Ke.insert(ze,Qt[0],Qt[1],Qt[2],Qt[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new br.VectorTile(new rS(this.rawTileData)).layers,this.sourceLayerCoder=new Ik(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(S,F,W,te){this.loadVTLayers();let fe=S.params||{},pe=Ha/S.tileSize/S.scale,ze=Fc(fe.filter),Ke=S.queryGeometry,ut=S.queryPadding*pe,Lt=Dk(Ke),Qt=this.grid.query(Lt.minX-ut,Lt.minY-ut,Lt.maxX+ut,Lt.maxY+ut),fr=Dk(S.cameraQueryGeometry),mr=this.grid3D.query(fr.minX-ut,fr.minY-ut,fr.maxX+ut,fr.maxY+ut,(ui,yi,dn,Fi)=>function(ln,An,pa,ro,Vo){for(let sa of ln)if(An<=sa.x&&pa<=sa.y&&ro>=sa.x&&Vo>=sa.y)return!0;let Xa=[new u(An,pa),new u(An,Vo),new u(ro,Vo),new u(ro,pa)];if(ln.length>2){for(let sa of Xa)if(Ni(ln,sa))return!0}for(let sa=0;sa(Fi||(Fi=Qs(ln)),An.queryIntersectsFeature(Ke,ln,pa,Fi,this.z,S.transform,pe,S.pixelPosMatrix)))}return Lr}loadMatchingFeature(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt){let fr=this.bucketLayerIDs[F];if(pe&&!function(ui,yi){for(let dn=0;dn=0)return!0;return!1}(pe,fr))return;let mr=this.sourceLayerCoder.decode(W),Lr=this.vtLayers[mr].feature(te);if(fe.needGeometry){let ui=Ml(Lr,!0);if(!fe.filter(new is(this.tileID.overscaledZ),ui,this.tileID.canonical))return}else if(!fe.filter(new is(this.tileID.overscaledZ),Lr))return;let zr=this.getId(Lr,mr);for(let ui=0;ui{let ze=S instanceof Ac?S.get(pe):null;return ze&&ze.evaluate?ze.evaluate(F,W,te):ze})}function Dk(R){let S=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)S=Math.min(S,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return{minX:S,minY:F,maxX:W,maxY:te}}function Y9(R,S){return S-R}function Fk(R,S,F,W,te){let fe=[];for(let pe=0;pe=W&&Qt.x>=W||(Lt.x>=W?Lt=new u(W,Lt.y+(W-Lt.x)/(Qt.x-Lt.x)*(Qt.y-Lt.y))._round():Qt.x>=W&&(Qt=new u(W,Lt.y+(W-Lt.x)/(Qt.x-Lt.x)*(Qt.y-Lt.y))._round()),Lt.y>=te&&Qt.y>=te||(Lt.y>=te?Lt=new u(Lt.x+(te-Lt.y)/(Qt.y-Lt.y)*(Qt.x-Lt.x),te)._round():Qt.y>=te&&(Qt=new u(Lt.x+(te-Lt.y)/(Qt.y-Lt.y)*(Qt.x-Lt.x),te)._round()),Ke&&Lt.equals(Ke[Ke.length-1])||(Ke=[Lt],fe.push(Ke)),Ke.push(Qt)))))}}return fe}Di("FeatureIndex",cy,{omit:["rawTileData","sourceLayerCoder"]});class pg extends u{constructor(S,F,W,te){super(S,F),this.angle=W,te!==void 0&&(this.segment=te)}clone(){return new pg(this.x,this.y,this.angle,this.segment)}}function pS(R,S,F,W,te){if(S.segment===void 0||F===0)return!0;let fe=S,pe=S.segment+1,ze=0;for(;ze>-F/2;){if(pe--,pe<0)return!1;ze-=R[pe].dist(fe),fe=R[pe]}ze+=R[pe].dist(R[pe+1]),pe++;let Ke=[],ut=0;for(;zeW;)ut-=Ke.shift().angleDelta;if(ut>te)return!1;pe++,ze+=Lt.dist(Qt)}return!0}function zk(R){let S=0;for(let F=0;Fut){let Lr=(ut-Ke)/mr,zr=Lo.number(Qt.x,fr.x,Lr),ui=Lo.number(Qt.y,fr.y,Lr),yi=new pg(zr,ui,fr.angleTo(Qt),Lt);return yi._round(),!pe||pS(R,yi,ze,pe,S)?yi:void 0}Ke+=mr}}function J9(R,S,F,W,te,fe,pe,ze,Ke){let ut=Ok(W,fe,pe),Lt=qk(W,te),Qt=Lt*pe,fr=R[0].x===0||R[0].x===Ke||R[0].y===0||R[0].y===Ke;return S-Qt=0&&ln=0&&An=0&&fr+ut<=Lt){let pa=new pg(ln,An,dn,Lr);pa._round(),W&&!pS(R,pa,fe,W,te)||mr.push(pa)}}Qt+=yi}return ze||mr.length||pe||(mr=Bk(R,Qt/2,F,W,te,fe,pe,!0,Ke)),mr}Di("Anchor",pg);let k1=Md;function Nk(R,S,F,W){let te=[],fe=R.image,pe=fe.pixelRatio,ze=fe.paddedRect.w-2*k1,Ke=fe.paddedRect.h-2*k1,ut={x1:R.left,y1:R.top,x2:R.right,y2:R.bottom},Lt=fe.stretchX||[[0,ze]],Qt=fe.stretchY||[[0,Ke]],fr=(Xn,Ro)=>Xn+Ro[1]-Ro[0],mr=Lt.reduce(fr,0),Lr=Qt.reduce(fr,0),zr=ze-mr,ui=Ke-Lr,yi=0,dn=mr,Fi=0,ln=Lr,An=0,pa=zr,ro=0,Vo=ui;if(fe.content&&W){let Xn=fe.content,Ro=Xn[2]-Xn[0],uo=Xn[3]-Xn[1];(fe.textFitWidth||fe.textFitHeight)&&(ut=Tk(R)),yi=gg(Lt,0,Xn[0]),Fi=gg(Qt,0,Xn[1]),dn=gg(Lt,Xn[0],Xn[2]),ln=gg(Qt,Xn[1],Xn[3]),An=Xn[0]-yi,ro=Xn[1]-Fi,pa=Ro-dn,Vo=uo-ln}let Xa=ut.x1,sa=ut.y1,Mo=ut.x2-Xa,fo=ut.y2-sa,lo=(Xn,Ro,uo,$o)=>{let Ju=Ow(Xn.stretch-yi,dn,Mo,Xa),qu=L1(Xn.fixed-An,pa,Xn.stretch,mr),Ah=Ow(Ro.stretch-Fi,ln,fo,sa),Qv=L1(Ro.fixed-ro,Vo,Ro.stretch,Lr),ld=Ow(uo.stretch-yi,dn,Mo,Xa),Sh=L1(uo.fixed-An,pa,uo.stretch,mr),Gd=Ow($o.stretch-Fi,ln,fo,sa),Hd=L1($o.fixed-ro,Vo,$o.stretch,Lr),jd=new u(Ju,Ah),Tf=new u(ld,Ah),Mh=new u(ld,Gd),Ed=new u(Ju,Gd),ud=new u(qu/pe,Qv/pe),Hh=new u(Sh/pe,Hd/pe),Rf=S*Math.PI/180;if(Rf){let tu=Math.sin(Rf),pc=Math.cos(Rf),$u=[pc,-tu,tu,pc];jd._matMult($u),Tf._matMult($u),Ed._matMult($u),Mh._matMult($u)}let Dv=Xn.stretch+Xn.fixed,lv=Ro.stretch+Ro.fixed;return{tl:jd,tr:Tf,bl:Ed,br:Mh,tex:{x:fe.paddedRect.x+k1+Dv,y:fe.paddedRect.y+k1+lv,w:uo.stretch+uo.fixed-Dv,h:$o.stretch+$o.fixed-lv},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:ud,pixelOffsetBR:Hh,minFontScaleX:pa/pe/Mo,minFontScaleY:Vo/pe/fo,isSDF:F}};if(W&&(fe.stretchX||fe.stretchY)){let Xn=Uk(Lt,zr,mr),Ro=Uk(Qt,ui,Lr);for(let uo=0;uo0&&(zr=Math.max(10,zr),this.circleDiameter=zr)}else{let fr=!((Qt=pe.image)===null||Qt===void 0)&&Qt.content&&(pe.image.textFitWidth||pe.image.textFitHeight)?Tk(pe):{x1:pe.left,y1:pe.top,x2:pe.right,y2:pe.bottom};fr.y1=fr.y1*ze-Ke[0],fr.y2=fr.y2*ze+Ke[2],fr.x1=fr.x1*ze-Ke[3],fr.x2=fr.x2*ze+Ke[1];let mr=pe.collisionPadding;if(mr&&(fr.x1-=mr[0]*ze,fr.y1-=mr[1]*ze,fr.x2+=mr[2]*ze,fr.y2+=mr[3]*ze),Lt){let Lr=new u(fr.x1,fr.y1),zr=new u(fr.x2,fr.y1),ui=new u(fr.x1,fr.y2),yi=new u(fr.x2,fr.y2),dn=Lt*Math.PI/180;Lr._rotate(dn),zr._rotate(dn),ui._rotate(dn),yi._rotate(dn),fr.x1=Math.min(Lr.x,zr.x,ui.x,yi.x),fr.x2=Math.max(Lr.x,zr.x,ui.x,yi.x),fr.y1=Math.min(Lr.y,zr.y,ui.y,yi.y),fr.y2=Math.max(Lr.y,zr.y,ui.y,yi.y)}S.emplaceBack(F.x,F.y,fr.x1,fr.y1,fr.x2,fr.y2,W,te,fe)}this.boxEndIndex=S.length}}class Vp{constructor(S=[],F=(W,te)=>Wte?1:0){if(this.data=S,this.length=this.data.length,this.compare=F,this.length>0)for(let W=(this.length>>1)-1;W>=0;W--)this._down(W)}push(S){this.data.push(S),this._up(this.length++)}pop(){if(this.length===0)return;let S=this.data[0],F=this.data.pop();return--this.length>0&&(this.data[0]=F,this._down(0)),S}peek(){return this.data[0]}_up(S){let{data:F,compare:W}=this,te=F[S];for(;S>0;){let fe=S-1>>1,pe=F[fe];if(W(te,pe)>=0)break;F[S]=pe,S=fe}F[S]=te}_down(S){let{data:F,compare:W}=this,te=this.length>>1,fe=F[S];for(;S=0)break;F[S]=F[pe],S=pe}F[S]=fe}}function $9(R,S=1,F=!1){let W=1/0,te=1/0,fe=-1/0,pe=-1/0,ze=R[0];for(let mr=0;mrfe)&&(fe=Lr.x),(!mr||Lr.y>pe)&&(pe=Lr.y)}let Ke=Math.min(fe-W,pe-te),ut=Ke/2,Lt=new Vp([],Q9);if(Ke===0)return new u(W,te);for(let mr=W;mrQt.d||!Qt.d)&&(Qt=mr,F&&console.log("found best %d after %d probes",Math.round(1e4*mr.d)/1e4,fr)),mr.max-Qt.d<=S||(ut=mr.h/2,Lt.push(new P1(mr.p.x-ut,mr.p.y-ut,ut,R)),Lt.push(new P1(mr.p.x+ut,mr.p.y-ut,ut,R)),Lt.push(new P1(mr.p.x-ut,mr.p.y+ut,ut,R)),Lt.push(new P1(mr.p.x+ut,mr.p.y+ut,ut,R)),fr+=4)}return F&&(console.log(`num probes: ${fr}`),console.log(`best distance: ${Qt.d}`)),Qt.p}function Q9(R,S){return S.max-R.max}function P1(R,S,F,W){this.p=new u(R,S),this.h=F,this.d=function(te,fe){let pe=!1,ze=1/0;for(let Ke=0;Kete.y!=Lr.y>te.y&&te.x<(Lr.x-mr.x)*(te.y-mr.y)/(Lr.y-mr.y)+mr.x&&(pe=!pe),ze=Math.min(ze,Vr(te,mr,Lr))}}return(pe?1:-1)*Math.sqrt(ze)}(this.p,W),this.max=this.d+this.h*Math.SQRT2}var sd;i.aq=void 0,(sd=i.aq||(i.aq={}))[sd.center=1]="center",sd[sd.left=2]="left",sd[sd.right=3]="right",sd[sd.top=4]="top",sd[sd.bottom=5]="bottom",sd[sd["top-left"]=6]="top-left",sd[sd["top-right"]=7]="top-right",sd[sd["bottom-left"]=8]="bottom-left",sd[sd["bottom-right"]=9]="bottom-right";let fm=7,fy=Number.POSITIVE_INFINITY;function gS(R,S){return S[1]!==fy?function(F,W,te){let fe=0,pe=0;switch(W=Math.abs(W),te=Math.abs(te),F){case"top-right":case"top-left":case"top":pe=te-fm;break;case"bottom-right":case"bottom-left":case"bottom":pe=-te+fm}switch(F){case"top-right":case"bottom-right":case"right":fe=-W;break;case"top-left":case"bottom-left":case"left":fe=W}return[fe,pe]}(R,S[0],S[1]):function(F,W){let te=0,fe=0;W<0&&(W=0);let pe=W/Math.SQRT2;switch(F){case"top-right":case"top-left":fe=pe-fm;break;case"bottom-right":case"bottom-left":fe=-pe+fm;break;case"bottom":fe=-W+fm;break;case"top":fe=W-fm}switch(F){case"top-right":case"bottom-right":te=-pe;break;case"top-left":case"bottom-left":te=pe;break;case"left":te=W;break;case"right":te=-W}return[te,fe]}(R,S[0])}function Vk(R,S,F){var W;let te=R.layout,fe=(W=te.get("text-variable-anchor-offset"))===null||W===void 0?void 0:W.evaluate(S,{},F);if(fe){let ze=fe.values,Ke=[];for(let ut=0;utfr*eu);Lt.startsWith("top")?Qt[1]-=fm:Lt.startsWith("bottom")&&(Qt[1]+=fm),Ke[ut+1]=Qt}return new Ji(Ke)}let pe=te.get("text-variable-anchor");if(pe){let ze;ze=R._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[te.get("text-radial-offset").evaluate(S,{},F)*eu,fy]:te.get("text-offset").evaluate(S,{},F).map(ut=>ut*eu);let Ke=[];for(let ut of pe)Ke.push(ut,gS(ut,ze));return new Ji(Ke)}return null}function mS(R){switch(R){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function eO(R,S,F,W,te,fe,pe,ze,Ke,ut,Lt){let Qt=fe.textMaxSize.evaluate(S,{});Qt===void 0&&(Qt=pe);let fr=R.layers[0].layout,mr=fr.get("icon-offset").evaluate(S,{},Lt),Lr=Hk(F.horizontal),zr=pe/24,ui=R.tilePixelRatio*zr,yi=R.tilePixelRatio*Qt/24,dn=R.tilePixelRatio*ze,Fi=R.tilePixelRatio*fr.get("symbol-spacing"),ln=fr.get("text-padding")*R.tilePixelRatio,An=function(Xn,Ro,uo,$o=1){let Ju=Xn.get("icon-padding").evaluate(Ro,{},uo),qu=Ju&&Ju.values;return[qu[0]*$o,qu[1]*$o,qu[2]*$o,qu[3]*$o]}(fr,S,Lt,R.tilePixelRatio),pa=fr.get("text-max-angle")/180*Math.PI,ro=fr.get("text-rotation-alignment")!=="viewport"&&fr.get("symbol-placement")!=="point",Vo=fr.get("icon-rotation-alignment")==="map"&&fr.get("symbol-placement")!=="point",Xa=fr.get("symbol-placement"),sa=Fi/2,Mo=fr.get("icon-text-fit"),fo;W&&Mo!=="none"&&(R.allowVerticalPlacement&&F.vertical&&(fo=Ak(W,F.vertical,Mo,fr.get("icon-text-fit-padding"),mr,zr)),Lr&&(W=Ak(W,Lr,Mo,fr.get("icon-text-fit-padding"),mr,zr)));let lo=(Xn,Ro)=>{Ro.x<0||Ro.x>=Ha||Ro.y<0||Ro.y>=Ha||function(uo,$o,Ju,qu,Ah,Qv,ld,Sh,Gd,Hd,jd,Tf,Mh,Ed,ud,Hh,Rf,Dv,lv,tu,pc,$u,Fv,ff,I1){let p0=uo.addToLineVertexArray($o,Ju),Gp,ep,Gc,Zf,tp=0,mg=0,uv=0,R1=0,wS=-1,Uw=-1,g0={},hy=bi("");if(uo.allowVerticalPlacement&&qu.vertical){let Cd=Sh.layout.get("text-rotate").evaluate(pc,{},ff)+90;Gc=new cm(Gd,$o,Hd,jd,Tf,qu.vertical,Mh,Ed,ud,Cd),ld&&(Zf=new cm(Gd,$o,Hd,jd,Tf,ld,Rf,Dv,ud,Cd))}if(Ah){let Cd=Sh.layout.get("icon-rotate").evaluate(pc,{}),rp=Sh.layout.get("icon-text-fit")!=="none",hm=Nk(Ah,Cd,Fv,rp),Wd=ld?Nk(ld,Cd,Fv,rp):void 0;ep=new cm(Gd,$o,Hd,jd,Tf,Ah,Rf,Dv,!1,Cd),tp=4*hm.length;let kd=uo.iconSizeData,yp=null;kd.kind==="source"?(yp=[v0*Sh.layout.get("icon-size").evaluate(pc,{})],yp[0]>lm&&T(`${uo.layerIds[0]}: Value for "icon-size" is >= ${jx}. Reduce your "icon-size".`)):kd.kind==="composite"&&(yp=[v0*$u.compositeIconSizes[0].evaluate(pc,{},ff),v0*$u.compositeIconSizes[1].evaluate(pc,{},ff)],(yp[0]>lm||yp[1]>lm)&&T(`${uo.layerIds[0]}: Value for "icon-size" is >= ${jx}. Reduce your "icon-size".`)),uo.addSymbols(uo.icon,hm,yp,tu,lv,pc,i.ah.none,$o,p0.lineStartIndex,p0.lineLength,-1,ff),wS=uo.icon.placedSymbolArray.length-1,Wd&&(mg=4*Wd.length,uo.addSymbols(uo.icon,Wd,yp,tu,lv,pc,i.ah.vertical,$o,p0.lineStartIndex,p0.lineLength,-1,ff),Uw=uo.icon.placedSymbolArray.length-1)}let jh=Object.keys(qu.horizontal);for(let Cd of jh){let rp=qu.horizontal[Cd];if(!Gp){hy=bi(rp.text);let Wd=Sh.layout.get("text-rotate").evaluate(pc,{},ff);Gp=new cm(Gd,$o,Hd,jd,Tf,rp,Mh,Ed,ud,Wd)}let hm=rp.positionedLines.length===1;if(uv+=Gk(uo,$o,rp,Qv,Sh,ud,pc,Hh,p0,qu.vertical?i.ah.horizontal:i.ah.horizontalOnly,hm?jh:[Cd],g0,wS,$u,ff),hm)break}qu.vertical&&(R1+=Gk(uo,$o,qu.vertical,Qv,Sh,ud,pc,Hh,p0,i.ah.vertical,["vertical"],g0,Uw,$u,ff));let iO=Gp?Gp.boxStartIndex:uo.collisionBoxArray.length,Vw=Gp?Gp.boxEndIndex:uo.collisionBoxArray.length,m0=Gc?Gc.boxStartIndex:uo.collisionBoxArray.length,cv=Gc?Gc.boxEndIndex:uo.collisionBoxArray.length,Zk=ep?ep.boxStartIndex:uo.collisionBoxArray.length,nO=ep?ep.boxEndIndex:uo.collisionBoxArray.length,Yk=Zf?Zf.boxStartIndex:uo.collisionBoxArray.length,aO=Zf?Zf.boxEndIndex:uo.collisionBoxArray.length,mp=-1,tb=(Cd,rp)=>Cd&&Cd.circleDiameter?Math.max(Cd.circleDiameter,rp):rp;mp=tb(Gp,mp),mp=tb(Gc,mp),mp=tb(ep,mp),mp=tb(Zf,mp);let Gw=mp>-1?1:0;Gw&&(mp*=I1/eu),uo.glyphOffsetArray.length>=E1.MAX_GLYPHS&&T("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),pc.sortKey!==void 0&&uo.addToSortKeyRanges(uo.symbolInstances.length,pc.sortKey);let TS=Vk(Sh,pc,ff),[oO,sO]=function(Cd,rp){let hm=Cd.length,Wd=rp==null?void 0:rp.values;if((Wd==null?void 0:Wd.length)>0)for(let kd=0;kd=0?g0.right:-1,g0.center>=0?g0.center:-1,g0.left>=0?g0.left:-1,g0.vertical||-1,wS,Uw,hy,iO,Vw,m0,cv,Zk,nO,Yk,aO,Hd,uv,R1,tp,mg,Gw,0,Mh,mp,oO,sO)}(R,Ro,Xn,F,W,te,fo,R.layers[0],R.collisionBoxArray,S.index,S.sourceLayerIndex,R.index,ui,[ln,ln,ln,ln],ro,Ke,dn,An,Vo,mr,S,fe,ut,Lt,pe)};if(Xa==="line")for(let Xn of Fk(S.geometry,0,0,Ha,Ha)){let Ro=J9(Xn,Fi,pa,F.vertical||Lr,W,24,yi,R.overscaling,Ha);for(let uo of Ro)Lr&&tO(R,Lr.text,sa,uo)||lo(Xn,uo)}else if(Xa==="line-center"){for(let Xn of S.geometry)if(Xn.length>1){let Ro=K9(Xn,pa,F.vertical||Lr,W,24,yi);Ro&&lo(Xn,Ro)}}else if(S.type==="Polygon")for(let Xn of Cf(S.geometry,0)){let Ro=$9(Xn,16);lo(Xn[0],new pg(Ro.x,Ro.y,0))}else if(S.type==="LineString")for(let Xn of S.geometry)lo(Xn,new pg(Xn[0].x,Xn[0].y,0));else if(S.type==="Point")for(let Xn of S.geometry)for(let Ro of Xn)lo([Ro],new pg(Ro.x,Ro.y,0))}function Gk(R,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr){let zr=function(dn,Fi,ln,An,pa,ro,Vo,Xa){let sa=An.layout.get("text-rotate").evaluate(ro,{})*Math.PI/180,Mo=[];for(let fo of Fi.positionedLines)for(let lo of fo.positionedGlyphs){if(!lo.rect)continue;let Xn=lo.rect||{},Ro=_k+1,uo=!0,$o=1,Ju=0,qu=(pa||Xa)&&lo.vertical,Ah=lo.metrics.advance*lo.scale/2;if(Xa&&Fi.verticalizable&&(Ju=fo.lineOffset/2-(lo.imageName?-(eu-lo.metrics.width*lo.scale)/2:(lo.scale-1)*eu)),lo.imageName){let tu=Vo[lo.imageName];uo=tu.sdf,$o=tu.pixelRatio,Ro=Md/$o}let Qv=pa?[lo.x+Ah,lo.y]:[0,0],ld=pa?[0,0]:[lo.x+Ah+ln[0],lo.y+ln[1]-Ju],Sh=[0,0];qu&&(Sh=ld,ld=[0,0]);let Gd=lo.metrics.isDoubleResolution?2:1,Hd=(lo.metrics.left-Ro)*lo.scale-Ah+ld[0],jd=(-lo.metrics.top-Ro)*lo.scale+ld[1],Tf=Hd+Xn.w/Gd*lo.scale/$o,Mh=jd+Xn.h/Gd*lo.scale/$o,Ed=new u(Hd,jd),ud=new u(Tf,jd),Hh=new u(Hd,Mh),Rf=new u(Tf,Mh);if(qu){let tu=new u(-Ah,Ah-Th),pc=-Math.PI/2,$u=eu/2-Ah,Fv=new u(5-Th-$u,-(lo.imageName?$u:0)),ff=new u(...Sh);Ed._rotateAround(pc,tu)._add(Fv)._add(ff),ud._rotateAround(pc,tu)._add(Fv)._add(ff),Hh._rotateAround(pc,tu)._add(Fv)._add(ff),Rf._rotateAround(pc,tu)._add(Fv)._add(ff)}if(sa){let tu=Math.sin(sa),pc=Math.cos(sa),$u=[pc,-tu,tu,pc];Ed._matMult($u),ud._matMult($u),Hh._matMult($u),Rf._matMult($u)}let Dv=new u(0,0),lv=new u(0,0);Mo.push({tl:Ed,tr:ud,bl:Hh,br:Rf,tex:Xn,writingMode:Fi.writingMode,glyphOffset:Qv,sectionIndex:lo.sectionIndex,isSDF:uo,pixelOffsetTL:Dv,pixelOffsetBR:lv,minFontScaleX:0,minFontScaleY:0})}return Mo}(0,F,ze,te,fe,pe,W,R.allowVerticalPlacement),ui=R.textSizeData,yi=null;ui.kind==="source"?(yi=[v0*te.layout.get("text-size").evaluate(pe,{})],yi[0]>lm&&T(`${R.layerIds[0]}: Value for "text-size" is >= ${jx}. Reduce your "text-size".`)):ui.kind==="composite"&&(yi=[v0*mr.compositeTextSizes[0].evaluate(pe,{},Lr),v0*mr.compositeTextSizes[1].evaluate(pe,{},Lr)],(yi[0]>lm||yi[1]>lm)&&T(`${R.layerIds[0]}: Value for "text-size" is >= ${jx}. Reduce your "text-size".`)),R.addSymbols(R.text,zr,yi,ze,fe,pe,ut,S,Ke.lineStartIndex,Ke.lineLength,fr,Lr);for(let dn of Lt)Qt[dn]=R.text.placedSymbolArray.length-1;return 4*zr.length}function Hk(R){for(let S in R)return R[S];return null}function tO(R,S,F,W){let te=R.compareText;if(S in te){let fe=te[S];for(let pe=fe.length-1;pe>=0;pe--)if(W.dist(fe[pe])>4;if(te!==1)throw new Error(`Got v${te} data when expected v1.`);let fe=jk[15&W];if(!fe)throw new Error("Unrecognized array type.");let[pe]=new Uint16Array(S,2,1),[ze]=new Uint32Array(S,4,1);return new yS(ze,pe,fe,S)}constructor(S,F=64,W=Float64Array,te){if(isNaN(S)||S<0)throw new Error(`Unpexpected numItems value: ${S}.`);this.numItems=+S,this.nodeSize=Math.min(Math.max(+F,2),65535),this.ArrayType=W,this.IndexArrayType=S<65536?Uint16Array:Uint32Array;let fe=jk.indexOf(this.ArrayType),pe=2*S*this.ArrayType.BYTES_PER_ELEMENT,ze=S*this.IndexArrayType.BYTES_PER_ELEMENT,Ke=(8-ze%8)%8;if(fe<0)throw new Error(`Unexpected typed array class: ${W}.`);te&&te instanceof ArrayBuffer?(this.data=te,this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+ze+Ke,2*S),this._pos=2*S,this._finished=!0):(this.data=new ArrayBuffer(8+pe+ze+Ke),this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+ze+Ke,2*S),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+fe]),new Uint16Array(this.data,2,1)[0]=F,new Uint32Array(this.data,4,1)[0]=S)}add(S,F){let W=this._pos>>1;return this.ids[W]=W,this.coords[this._pos++]=S,this.coords[this._pos++]=F,W}finish(){let S=this._pos>>1;if(S!==this.numItems)throw new Error(`Added ${S} items when expected ${this.numItems}.`);return qw(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(S,F,W,te){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:fe,coords:pe,nodeSize:ze}=this,Ke=[0,fe.length-1,0],ut=[];for(;Ke.length;){let Lt=Ke.pop()||0,Qt=Ke.pop()||0,fr=Ke.pop()||0;if(Qt-fr<=ze){for(let ui=fr;ui<=Qt;ui++){let yi=pe[2*ui],dn=pe[2*ui+1];yi>=S&&yi<=W&&dn>=F&&dn<=te&&ut.push(fe[ui])}continue}let mr=fr+Qt>>1,Lr=pe[2*mr],zr=pe[2*mr+1];Lr>=S&&Lr<=W&&zr>=F&&zr<=te&&ut.push(fe[mr]),(Lt===0?S<=Lr:F<=zr)&&(Ke.push(fr),Ke.push(mr-1),Ke.push(1-Lt)),(Lt===0?W>=Lr:te>=zr)&&(Ke.push(mr+1),Ke.push(Qt),Ke.push(1-Lt))}return ut}within(S,F,W){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:te,coords:fe,nodeSize:pe}=this,ze=[0,te.length-1,0],Ke=[],ut=W*W;for(;ze.length;){let Lt=ze.pop()||0,Qt=ze.pop()||0,fr=ze.pop()||0;if(Qt-fr<=pe){for(let ui=fr;ui<=Qt;ui++)Xk(fe[2*ui],fe[2*ui+1],S,F)<=ut&&Ke.push(te[ui]);continue}let mr=fr+Qt>>1,Lr=fe[2*mr],zr=fe[2*mr+1];Xk(Lr,zr,S,F)<=ut&&Ke.push(te[mr]),(Lt===0?S-W<=Lr:F-W<=zr)&&(ze.push(fr),ze.push(mr-1),ze.push(1-Lt)),(Lt===0?S+W>=Lr:F+W>=zr)&&(ze.push(mr+1),ze.push(Qt),ze.push(1-Lt))}return Ke}}function qw(R,S,F,W,te,fe){if(te-W<=F)return;let pe=W+te>>1;Wk(R,S,pe,W,te,fe),qw(R,S,F,W,pe-1,1-fe),qw(R,S,F,pe+1,te,1-fe)}function Wk(R,S,F,W,te,fe){for(;te>W;){if(te-W>600){let ut=te-W+1,Lt=F-W+1,Qt=Math.log(ut),fr=.5*Math.exp(2*Qt/3),mr=.5*Math.sqrt(Qt*fr*(ut-fr)/ut)*(Lt-ut/2<0?-1:1);Wk(R,S,F,Math.max(W,Math.floor(F-Lt*fr/ut+mr)),Math.min(te,Math.floor(F+(ut-Lt)*fr/ut+mr)),fe)}let pe=S[2*F+fe],ze=W,Ke=te;for(Qx(R,S,W,F),S[2*te+fe]>pe&&Qx(R,S,W,te);zepe;)Ke--}S[2*W+fe]===pe?Qx(R,S,W,Ke):(Ke++,Qx(R,S,Ke,te)),Ke<=F&&(W=Ke+1),F<=Ke&&(te=Ke-1)}}function Qx(R,S,F,W){_S(R,F,W),_S(S,2*F,2*W),_S(S,2*F+1,2*W+1)}function _S(R,S,F){let W=R[S];R[S]=R[F],R[F]=W}function Xk(R,S,F,W){let te=R-F,fe=S-W;return te*te+fe*fe}var Bw;i.bg=void 0,(Bw=i.bg||(i.bg={})).create="create",Bw.load="load",Bw.fullLoad="fullLoad";let eb=null,sh=[],xS=1e3/60,bS="loadTime",Nw="fullLoadTime",rO={mark(R){performance.mark(R)},frame(R){let S=R;eb!=null&&sh.push(S-eb),eb=S},clearMetrics(){eb=null,sh=[],performance.clearMeasures(bS),performance.clearMeasures(Nw);for(let R in i.bg)performance.clearMarks(i.bg[R])},getPerformanceMetrics(){performance.measure(bS,i.bg.create,i.bg.load),performance.measure(Nw,i.bg.create,i.bg.fullLoad);let R=performance.getEntriesByName(bS)[0].duration,S=performance.getEntriesByName(Nw)[0].duration,F=sh.length,W=1/(sh.reduce((fe,pe)=>fe+pe,0)/F/1e3),te=sh.filter(fe=>fe>xS).reduce((fe,pe)=>fe+(pe-xS)/xS,0);return{loadTime:R,fullLoadTime:S,fps:W,percentDroppedFrames:te/(F+te)*100,totalFrames:F}}};i.$=class extends Kt{},i.A=xi,i.B=hn,i.C=function(R){if(V==null){let S=R.navigator?R.navigator.userAgent:null;V=!!R.safari||!(!S||!(/\b(iPad|iPhone|iPod)\b/.test(S)||S.match("Safari")&&!S.match("Chrome")))}return V},i.D=Ua,i.E=Fe,i.F=class{constructor(R,S){this.target=R,this.mapId=S,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new fS(()=>this.process()),this.subscription=function(F,W,te,fe){return F.addEventListener(W,te,!1),{unsubscribe:()=>{F.removeEventListener(W,te,!1)}}}(this.target,"message",F=>this.receive(F)),this.globalScope=O(self)?R:window}registerMessageHandler(R,S){this.messageHandlers[R]=S}sendAsync(R,S){return new Promise((F,W)=>{let te=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[te]={resolve:F,reject:W},S&&S.signal.addEventListener("abort",()=>{delete this.resolveRejects[te];let ze={id:te,type:"",origin:location.origin,targetMapId:R.targetMapId,sourceMapId:this.mapId};this.target.postMessage(ze)},{once:!0});let fe=[],pe=Object.assign(Object.assign({},R),{id:te,sourceMapId:this.mapId,origin:location.origin,data:La(R.data,fe)});this.target.postMessage(pe,{transfer:fe})})}receive(R){let S=R.data,F=S.id;if(!(S.origin!=="file://"&&location.origin!=="file://"&&S.origin!=="resource://android"&&location.origin!=="resource://android"&&S.origin!==location.origin||S.targetMapId&&this.mapId!==S.targetMapId)){if(S.type===""){delete this.tasks[F];let W=this.abortControllers[F];return delete this.abortControllers[F],void(W&&W.abort())}if(O(self)||S.mustQueue)return this.tasks[F]=S,this.taskQueue.push(F),void this.invoker.trigger();this.processTask(F,S)}}process(){if(this.taskQueue.length===0)return;let R=this.taskQueue.shift(),S=this.tasks[R];delete this.tasks[R],this.taskQueue.length>0&&this.invoker.trigger(),S&&this.processTask(R,S)}processTask(R,S){return a(this,void 0,void 0,function*(){if(S.type===""){let te=this.resolveRejects[R];return delete this.resolveRejects[R],te?void(S.error?te.reject(Na(S.error)):te.resolve(Na(S.data))):void 0}if(!this.messageHandlers[S.type])return void this.completeTask(R,new Error(`Could not find a registered handler for ${S.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let F=Na(S.data),W=new AbortController;this.abortControllers[R]=W;try{let te=yield this.messageHandlers[S.type](S.sourceMapId,F,W);this.completeTask(R,null,te)}catch(te){this.completeTask(R,te)}})}completeTask(R,S,F){let W=[];delete this.abortControllers[R];let te={id:R,type:"",sourceMapId:this.mapId,origin:location.origin,error:S?La(S):null,data:La(F,W)};this.target.postMessage(te,{transfer:W})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=ke,i.H=function(){var R=new xi(16);return xi!=Float32Array&&(R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[11]=0,R[12]=0,R[13]=0,R[14]=0),R[0]=1,R[5]=1,R[10]=1,R[15]=1,R},i.I=Cw,i.J=function(R,S,F){var W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr=F[0],ui=F[1],yi=F[2];return S===R?(R[12]=S[0]*zr+S[4]*ui+S[8]*yi+S[12],R[13]=S[1]*zr+S[5]*ui+S[9]*yi+S[13],R[14]=S[2]*zr+S[6]*ui+S[10]*yi+S[14],R[15]=S[3]*zr+S[7]*ui+S[11]*yi+S[15]):(te=S[1],fe=S[2],pe=S[3],ze=S[4],Ke=S[5],ut=S[6],Lt=S[7],Qt=S[8],fr=S[9],mr=S[10],Lr=S[11],R[0]=W=S[0],R[1]=te,R[2]=fe,R[3]=pe,R[4]=ze,R[5]=Ke,R[6]=ut,R[7]=Lt,R[8]=Qt,R[9]=fr,R[10]=mr,R[11]=Lr,R[12]=W*zr+ze*ui+Qt*yi+S[12],R[13]=te*zr+Ke*ui+fr*yi+S[13],R[14]=fe*zr+ut*ui+mr*yi+S[14],R[15]=pe*zr+Lt*ui+Lr*yi+S[15]),R},i.K=function(R,S,F){var W=F[0],te=F[1],fe=F[2];return R[0]=S[0]*W,R[1]=S[1]*W,R[2]=S[2]*W,R[3]=S[3]*W,R[4]=S[4]*te,R[5]=S[5]*te,R[6]=S[6]*te,R[7]=S[7]*te,R[8]=S[8]*fe,R[9]=S[9]*fe,R[10]=S[10]*fe,R[11]=S[11]*fe,R[12]=S[12],R[13]=S[13],R[14]=S[14],R[15]=S[15],R},i.L=ci,i.M=function(R,S){let F={};for(let W=0;W{let S=window.document.createElement("video");return S.muted=!0,new Promise(F=>{S.onloadstart=()=>{F(S)};for(let W of R){let te=window.document.createElement("source");Le(W)||(S.crossOrigin="Anonymous"),te.src=W,S.appendChild(te)}})},i.a4=function(){return x++},i.a5=In,i.a6=E1,i.a7=Fc,i.a8=Ml,i.a9=vS,i.aA=function(R){if(R.type==="custom")return new cS(R);switch(R.type){case"background":return new Z9(R);case"circle":return new vi(R);case"fill":return new mt(R);case"fill-extrusion":return new kv(R);case"heatmap":return new oa(R);case"hillshade":return new Ys(R);case"line":return new ay(R);case"raster":return new Yx(R);case"symbol":return new uy(R)}},i.aB=g,i.aC=function(R,S){if(!R)return[{command:"setStyle",args:[S]}];let F=[];try{if(!pt(R.version,S.version))return[{command:"setStyle",args:[S]}];pt(R.center,S.center)||F.push({command:"setCenter",args:[S.center]}),pt(R.zoom,S.zoom)||F.push({command:"setZoom",args:[S.zoom]}),pt(R.bearing,S.bearing)||F.push({command:"setBearing",args:[S.bearing]}),pt(R.pitch,S.pitch)||F.push({command:"setPitch",args:[S.pitch]}),pt(R.sprite,S.sprite)||F.push({command:"setSprite",args:[S.sprite]}),pt(R.glyphs,S.glyphs)||F.push({command:"setGlyphs",args:[S.glyphs]}),pt(R.transition,S.transition)||F.push({command:"setTransition",args:[S.transition]}),pt(R.light,S.light)||F.push({command:"setLight",args:[S.light]}),pt(R.terrain,S.terrain)||F.push({command:"setTerrain",args:[S.terrain]}),pt(R.sky,S.sky)||F.push({command:"setSky",args:[S.sky]}),pt(R.projection,S.projection)||F.push({command:"setProjection",args:[S.projection]});let W={},te=[];(function(pe,ze,Ke,ut){let Lt;for(Lt in ze=ze||{},pe=pe||{})Object.prototype.hasOwnProperty.call(pe,Lt)&&(Object.prototype.hasOwnProperty.call(ze,Lt)||lt(Lt,Ke,ut));for(Lt in ze)Object.prototype.hasOwnProperty.call(ze,Lt)&&(Object.prototype.hasOwnProperty.call(pe,Lt)?pt(pe[Lt],ze[Lt])||(pe[Lt].type==="geojson"&&ze[Lt].type==="geojson"&&Nt(pe,ze,Lt)?Wt(Ke,{command:"setGeoJSONSourceData",args:[Lt,ze[Lt].data]}):Gt(Lt,ze,Ke,ut)):st(Lt,ze,Ke))})(R.sources,S.sources,te,W);let fe=[];R.layers&&R.layers.forEach(pe=>{"source"in pe&&W[pe.source]?F.push({command:"removeLayer",args:[pe.id]}):fe.push(pe)}),F=F.concat(te),function(pe,ze,Ke){ze=ze||[];let ut=(pe=pe||[]).map(sr),Lt=ze.map(sr),Qt=pe.reduce(wr,{}),fr=ze.reduce(wr,{}),mr=ut.slice(),Lr=Object.create(null),zr,ui,yi,dn,Fi;for(let ln=0,An=0;ln@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(F,W,te,fe)=>{let pe=te||fe;return S[W]=!pe||pe.toLowerCase(),""}),S["max-age"]){let F=parseInt(S["max-age"],10);isNaN(F)?delete S["max-age"]:S["max-age"]=F}return S},i.ab=function(R,S){let F=[];for(let W in R)W in S||F.push(W);return F},i.ac=E,i.ad=function(R,S,F){var W=Math.sin(F),te=Math.cos(F),fe=S[0],pe=S[1],ze=S[2],Ke=S[3],ut=S[4],Lt=S[5],Qt=S[6],fr=S[7];return S!==R&&(R[8]=S[8],R[9]=S[9],R[10]=S[10],R[11]=S[11],R[12]=S[12],R[13]=S[13],R[14]=S[14],R[15]=S[15]),R[0]=fe*te+ut*W,R[1]=pe*te+Lt*W,R[2]=ze*te+Qt*W,R[3]=Ke*te+fr*W,R[4]=ut*te-fe*W,R[5]=Lt*te-pe*W,R[6]=Qt*te-ze*W,R[7]=fr*te-Ke*W,R},i.ae=function(R){var S=new xi(16);return S[0]=R[0],S[1]=R[1],S[2]=R[2],S[3]=R[3],S[4]=R[4],S[5]=R[5],S[6]=R[6],S[7]=R[7],S[8]=R[8],S[9]=R[9],S[10]=R[10],S[11]=R[11],S[12]=R[12],S[13]=R[13],S[14]=R[14],S[15]=R[15],S},i.af=qn,i.ag=function(R,S){let F=0,W=0;if(R.kind==="constant")W=R.layoutSize;else if(R.kind!=="source"){let{interpolationType:te,minZoom:fe,maxZoom:pe}=R,ze=te?E(Co.interpolationFactor(te,S,fe,pe),0,1):0;R.kind==="camera"?W=Lo.number(R.minSize,R.maxSize,ze):F=ze}return{uSizeT:F,uSize:W}},i.ai=function(R,{uSize:S,uSizeT:F},{lowerSize:W,upperSize:te}){return R.kind==="source"?W/v0:R.kind==="composite"?Lo.number(W/v0,te/v0,F):S},i.aj=oS,i.ak=function(R,S,F,W){let te=S.y-R.y,fe=S.x-R.x,pe=W.y-F.y,ze=W.x-F.x,Ke=pe*fe-ze*te;if(Ke===0)return null;let ut=(ze*(R.y-F.y)-pe*(R.x-F.x))/Ke;return new u(R.x+ut*fe,R.y+ut*te)},i.al=Fk,i.am=Sc,i.an=Ii,i.ao=function(R){let S=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)S=Math.min(S,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return[S,F,W,te]},i.ap=eu,i.ar=aS,i.as=function(R,S){var F=S[0],W=S[1],te=S[2],fe=S[3],pe=S[4],ze=S[5],Ke=S[6],ut=S[7],Lt=S[8],Qt=S[9],fr=S[10],mr=S[11],Lr=S[12],zr=S[13],ui=S[14],yi=S[15],dn=F*ze-W*pe,Fi=F*Ke-te*pe,ln=F*ut-fe*pe,An=W*Ke-te*ze,pa=W*ut-fe*ze,ro=te*ut-fe*Ke,Vo=Lt*zr-Qt*Lr,Xa=Lt*ui-fr*Lr,sa=Lt*yi-mr*Lr,Mo=Qt*ui-fr*zr,fo=Qt*yi-mr*zr,lo=fr*yi-mr*ui,Xn=dn*lo-Fi*fo+ln*Mo+An*sa-pa*Xa+ro*Vo;return Xn?(R[0]=(ze*lo-Ke*fo+ut*Mo)*(Xn=1/Xn),R[1]=(te*fo-W*lo-fe*Mo)*Xn,R[2]=(zr*ro-ui*pa+yi*An)*Xn,R[3]=(fr*pa-Qt*ro-mr*An)*Xn,R[4]=(Ke*sa-pe*lo-ut*Xa)*Xn,R[5]=(F*lo-te*sa+fe*Xa)*Xn,R[6]=(ui*ln-Lr*ro-yi*Fi)*Xn,R[7]=(Lt*ro-fr*ln+mr*Fi)*Xn,R[8]=(pe*fo-ze*sa+ut*Vo)*Xn,R[9]=(W*sa-F*fo-fe*Vo)*Xn,R[10]=(Lr*pa-zr*ln+yi*dn)*Xn,R[11]=(Qt*ln-Lt*pa-mr*dn)*Xn,R[12]=(ze*Xa-pe*Mo-Ke*Vo)*Xn,R[13]=(F*Mo-W*Xa+te*Vo)*Xn,R[14]=(zr*Fi-Lr*An-ui*dn)*Xn,R[15]=(Lt*An-Qt*Fi+fr*dn)*Xn,R):null},i.at=mS,i.au=Iw,i.av=yS,i.aw=function(){let R={},S=ce.$version;for(let F in ce.$root){let W=ce.$root[F];if(W.required){let te=null;te=F==="version"?S:W.type==="array"?[]:{},te!=null&&(R[F]=te)}}return R},i.ax=Yn,i.ay=ie,i.az=function(R){R=R.slice();let S=Object.create(null);for(let F=0;F25||W<0||W>=1||F<0||F>=1)},i.bc=function(R,S){return R[0]=S[0],R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[5]=S[1],R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[10]=S[2],R[11]=0,R[12]=0,R[13]=0,R[14]=0,R[15]=1,R},i.bd=class extends Tt{},i.be=hS,i.bf=rO,i.bh=me,i.bi=function(R,S){_e.REGISTERED_PROTOCOLS[R]=S},i.bj=function(R){delete _e.REGISTERED_PROTOCOLS[R]},i.bk=function(R,S){let F={};for(let te=0;telo*eu)}let Xa=pe?"center":F.get("text-justify").evaluate(ut,{},R.canonical),sa=F.get("symbol-placement")==="point"?F.get("text-max-width").evaluate(ut,{},R.canonical)*eu:1/0,Mo=()=>{R.bucket.allowVerticalPlacement&&Ka(ln)&&(Lr.vertical=Gx(zr,R.glyphMap,R.glyphPositions,R.imagePositions,Lt,sa,fe,ro,"left",pa,yi,i.ah.vertical,!0,fr,Qt))};if(!pe&&Vo){let fo=new Set;if(Xa==="auto")for(let Xn=0;Xna(void 0,void 0,void 0,function*(){if(R.byteLength===0)return createImageBitmap(new ImageData(1,1));let S=new Blob([new Uint8Array(R)],{type:"image/png"});try{return createImageBitmap(S)}catch(F){throw new Error(`Could not load image because of ${F.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),i.e=L,i.f=R=>new Promise((S,F)=>{let W=new Image;W.onload=()=>{S(W),URL.revokeObjectURL(W.src),W.onload=null,window.requestAnimationFrame(()=>{W.src=Z})},W.onerror=()=>F(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let te=new Blob([new Uint8Array(R)],{type:"image/png"});W.src=R.byteLength?URL.createObjectURL(te):Z}),i.g=Me,i.h=(R,S)=>Se(L(R,{type:"json"}),S),i.i=O,i.j=ge,i.k=Pe,i.l=(R,S)=>Se(L(R,{type:"arrayBuffer"}),S),i.m=Se,i.n=function(R){return new rS(R).readFields(CQ,[])},i.o=na,i.p=nS,i.q=ue,i.r=Wi,i.s=Le,i.t=Zi,i.u=Ei,i.v=ce,i.w=T,i.x=function([R,S,F]){return S+=90,S*=Math.PI/180,F*=Math.PI/180,{x:R*Math.cos(S)*Math.sin(F),y:R*Math.sin(S)*Math.sin(F),z:R*Math.cos(F)}},i.y=Lo,i.z=is}),r("worker",["./shared"],function(i){"use strict";class a{constructor(Ge){this.keyCache={},Ge&&this.replace(Ge)}replace(Ge){this._layerConfigs={},this._layers={},this.update(Ge,[])}update(Ge,Je){for(let $e of Ge){this._layerConfigs[$e.id]=$e;let wt=this._layers[$e.id]=i.aA($e);wt._featureFilter=i.a7(wt.filter),this.keyCache[$e.id]&&delete this.keyCache[$e.id]}for(let $e of Je)delete this.keyCache[$e],delete this._layerConfigs[$e],delete this._layers[$e];this.familiesBySource={};let je=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let $e of je){let wt=$e.map(ir=>this._layers[ir.id]),Ie=wt[0];if(Ie.visibility==="none")continue;let xe=Ie.source||"",Ce=this.familiesBySource[xe];Ce||(Ce=this.familiesBySource[xe]={});let vt=Ie.sourceLayer||"_geojsonTileLayer",nr=Ce[vt];nr||(nr=Ce[vt]=[]),nr.push(wt)}}}class o{constructor(Ge){let Je={},je=[];for(let xe in Ge){let Ce=Ge[xe],vt=Je[xe]={};for(let nr in Ce){let ir=Ce[+nr];if(!ir||ir.bitmap.width===0||ir.bitmap.height===0)continue;let pr={x:0,y:0,w:ir.bitmap.width+2,h:ir.bitmap.height+2};je.push(pr),vt[nr]={rect:pr,metrics:ir.metrics}}}let{w:$e,h:wt}=i.p(je),Ie=new i.o({width:$e||1,height:wt||1});for(let xe in Ge){let Ce=Ge[xe];for(let vt in Ce){let nr=Ce[+vt];if(!nr||nr.bitmap.width===0||nr.bitmap.height===0)continue;let ir=Je[xe][vt].rect;i.o.copy(nr.bitmap,Ie,{x:0,y:0},{x:ir.x+1,y:ir.y+1},nr.bitmap)}}this.image=Ie,this.positions=Je}}i.bl("GlyphAtlas",o);class s{constructor(Ge){this.tileID=new i.S(Ge.tileID.overscaledZ,Ge.tileID.wrap,Ge.tileID.canonical.z,Ge.tileID.canonical.x,Ge.tileID.canonical.y),this.uid=Ge.uid,this.zoom=Ge.zoom,this.pixelRatio=Ge.pixelRatio,this.tileSize=Ge.tileSize,this.source=Ge.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=Ge.showCollisionBoxes,this.collectResourceTiming=!!Ge.collectResourceTiming,this.returnDependencies=!!Ge.returnDependencies,this.promoteId=Ge.promoteId,this.inFlightDependencies=[]}parse(Ge,Je,je,$e){return i._(this,void 0,void 0,function*(){this.status="parsing",this.data=Ge,this.collisionBoxArray=new i.a5;let wt=new i.bm(Object.keys(Ge.layers).sort()),Ie=new i.bn(this.tileID,this.promoteId);Ie.bucketLayerIDs=[];let xe={},Ce={featureIndex:Ie,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:je},vt=Je.familiesBySource[this.source];for(let Vn in vt){let kn=Ge.layers[Vn];if(!kn)continue;kn.version===1&&i.w(`Vector tile source "${this.source}" layer "${Vn}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let ea=wt.encode(Vn),ua=[];for(let Vt=0;Vt=_t.maxzoom||_t.visibility!=="none"&&(l(Vt,this.zoom,je),(xe[_t.id]=_t.createBucket({index:Ie.bucketLayerIDs.length,layers:Vt,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:ea,sourceID:this.source})).populate(ua,Ce,this.tileID.canonical),Ie.bucketLayerIDs.push(Vt.map(tr=>tr.id)))}}let nr=i.aF(Ce.glyphDependencies,Vn=>Object.keys(Vn).map(Number));this.inFlightDependencies.forEach(Vn=>Vn==null?void 0:Vn.abort()),this.inFlightDependencies=[];let ir=Promise.resolve({});if(Object.keys(nr).length){let Vn=new AbortController;this.inFlightDependencies.push(Vn),ir=$e.sendAsync({type:"GG",data:{stacks:nr,source:this.source,tileID:this.tileID,type:"glyphs"}},Vn)}let pr=Object.keys(Ce.iconDependencies),oi=Promise.resolve({});if(pr.length){let Vn=new AbortController;this.inFlightDependencies.push(Vn),oi=$e.sendAsync({type:"GI",data:{icons:pr,source:this.source,tileID:this.tileID,type:"icons"}},Vn)}let di=Object.keys(Ce.patternDependencies),Jr=Promise.resolve({});if(di.length){let Vn=new AbortController;this.inFlightDependencies.push(Vn),Jr=$e.sendAsync({type:"GI",data:{icons:di,source:this.source,tileID:this.tileID,type:"patterns"}},Vn)}let[fi,Hi,Pn]=yield Promise.all([ir,oi,Jr]),wn=new o(fi),pn=new i.bo(Hi,Pn);for(let Vn in xe){let kn=xe[Vn];kn instanceof i.a6?(l(kn.layers,this.zoom,je),i.bp({bucket:kn,glyphMap:fi,glyphPositions:wn.positions,imageMap:Hi,imagePositions:pn.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):kn.hasPattern&&(kn instanceof i.bq||kn instanceof i.br||kn instanceof i.bs)&&(l(kn.layers,this.zoom,je),kn.addFeatures(Ce,this.tileID.canonical,pn.patternPositions))}return this.status="done",{buckets:Object.values(xe).filter(Vn=>!Vn.isEmpty()),featureIndex:Ie,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:wn.image,imageAtlas:pn,glyphMap:this.returnDependencies?fi:null,iconMap:this.returnDependencies?Hi:null,glyphPositions:this.returnDependencies?wn.positions:null}})}}function l(dt,Ge,Je){let je=new i.z(Ge);for(let $e of dt)$e.recalculate(je,Je)}class u{constructor(Ge,Je,je){this.actor=Ge,this.layerIndex=Je,this.availableImages=je,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(Ge,Je){return i._(this,void 0,void 0,function*(){let je=yield i.l(Ge.request,Je);try{return{vectorTile:new i.bt.VectorTile(new i.bu(je.data)),rawData:je.data,cacheControl:je.cacheControl,expires:je.expires}}catch($e){let wt=new Uint8Array(je.data),Ie=`Unable to parse the tile at ${Ge.request.url}, `;throw Ie+=wt[0]===31&&wt[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${$e.message}`,new Error(Ie)}})}loadTile(Ge){return i._(this,void 0,void 0,function*(){let Je=Ge.uid,je=!!(Ge&&Ge.request&&Ge.request.collectResourceTiming)&&new i.bv(Ge.request),$e=new s(Ge);this.loading[Je]=$e;let wt=new AbortController;$e.abort=wt;try{let Ie=yield this.loadVectorTile(Ge,wt);if(delete this.loading[Je],!Ie)return null;let xe=Ie.rawData,Ce={};Ie.expires&&(Ce.expires=Ie.expires),Ie.cacheControl&&(Ce.cacheControl=Ie.cacheControl);let vt={};if(je){let ir=je.finish();ir&&(vt.resourceTiming=JSON.parse(JSON.stringify(ir)))}$e.vectorTile=Ie.vectorTile;let nr=$e.parse(Ie.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Je]=$e,this.fetching[Je]={rawTileData:xe,cacheControl:Ce,resourceTiming:vt};try{let ir=yield nr;return i.e({rawTileData:xe.slice(0)},ir,Ce,vt)}finally{delete this.fetching[Je]}}catch(Ie){throw delete this.loading[Je],$e.status="done",this.loaded[Je]=$e,Ie}})}reloadTile(Ge){return i._(this,void 0,void 0,function*(){let Je=Ge.uid;if(!this.loaded||!this.loaded[Je])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let je=this.loaded[Je];if(je.showCollisionBoxes=Ge.showCollisionBoxes,je.status==="parsing"){let $e=yield je.parse(je.vectorTile,this.layerIndex,this.availableImages,this.actor),wt;if(this.fetching[Je]){let{rawTileData:Ie,cacheControl:xe,resourceTiming:Ce}=this.fetching[Je];delete this.fetching[Je],wt=i.e({rawTileData:Ie.slice(0)},$e,xe,Ce)}else wt=$e;return wt}if(je.status==="done"&&je.vectorTile)return je.parse(je.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(Ge){return i._(this,void 0,void 0,function*(){let Je=this.loading,je=Ge.uid;Je&&Je[je]&&Je[je].abort&&(Je[je].abort.abort(),delete Je[je])})}removeTile(Ge){return i._(this,void 0,void 0,function*(){this.loaded&&this.loaded[Ge.uid]&&delete this.loaded[Ge.uid]})}}class c{constructor(){this.loaded={}}loadTile(Ge){return i._(this,void 0,void 0,function*(){let{uid:Je,encoding:je,rawImageData:$e,redFactor:wt,greenFactor:Ie,blueFactor:xe,baseShift:Ce}=Ge,vt=$e.width+2,nr=$e.height+2,ir=i.b($e)?new i.R({width:vt,height:nr},yield i.bw($e,-1,-1,vt,nr)):$e,pr=new i.bx(Je,ir,je,wt,Ie,xe,Ce);return this.loaded=this.loaded||{},this.loaded[Je]=pr,pr})}removeTile(Ge){let Je=this.loaded,je=Ge.uid;Je&&Je[je]&&delete Je[je]}}function f(dt,Ge){if(dt.length!==0){h(dt[0],Ge);for(var Je=1;Je=Math.abs(xe)?Je-Ce+xe:xe-Ce+Je,Je=Ce}Je+je>=0!=!!Ge&&dt.reverse()}var d=i.by(function dt(Ge,Je){var je,$e=Ge&&Ge.type;if($e==="FeatureCollection")for(je=0;je>31}function O(dt,Ge){for(var Je=dt.loadGeometry(),je=dt.type,$e=0,wt=0,Ie=Je.length,xe=0;xedt},H=Math.fround||(N=new Float32Array(1),dt=>(N[0]=+dt,N[0]));var N;let j=3,re=5,oe=6;class _e{constructor(Ge){this.options=Object.assign(Object.create(Z),Ge),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(Ge){let{log:Je,minZoom:je,maxZoom:$e}=this.options;Je&&console.time("total time");let wt=`prepare ${Ge.length} points`;Je&&console.time(wt),this.points=Ge;let Ie=[];for(let Ce=0;Ce=je;Ce--){let vt=+Date.now();xe=this.trees[Ce]=this._createTree(this._cluster(xe,Ce)),Je&&console.log("z%d: %d clusters in %dms",Ce,xe.numItems,+Date.now()-vt)}return Je&&console.timeEnd("total time"),this}getClusters(Ge,Je){let je=((Ge[0]+180)%360+360)%360-180,$e=Math.max(-90,Math.min(90,Ge[1])),wt=Ge[2]===180?180:((Ge[2]+180)%360+360)%360-180,Ie=Math.max(-90,Math.min(90,Ge[3]));if(Ge[2]-Ge[0]>=360)je=-180,wt=180;else if(je>wt){let ir=this.getClusters([je,$e,180,Ie],Je),pr=this.getClusters([-180,$e,wt,Ie],Je);return ir.concat(pr)}let xe=this.trees[this._limitZoom(Je)],Ce=xe.range(me(je),ie(Ie),me(wt),ie($e)),vt=xe.data,nr=[];for(let ir of Ce){let pr=this.stride*ir;nr.push(vt[pr+re]>1?Me(vt,pr,this.clusterProps):this.points[vt[pr+j]])}return nr}getChildren(Ge){let Je=this._getOriginId(Ge),je=this._getOriginZoom(Ge),$e="No cluster with the specified id.",wt=this.trees[je];if(!wt)throw new Error($e);let Ie=wt.data;if(Je*this.stride>=Ie.length)throw new Error($e);let xe=this.options.radius/(this.options.extent*Math.pow(2,je-1)),Ce=wt.within(Ie[Je*this.stride],Ie[Je*this.stride+1],xe),vt=[];for(let nr of Ce){let ir=nr*this.stride;Ie[ir+4]===Ge&&vt.push(Ie[ir+re]>1?Me(Ie,ir,this.clusterProps):this.points[Ie[ir+j]])}if(vt.length===0)throw new Error($e);return vt}getLeaves(Ge,Je,je){let $e=[];return this._appendLeaves($e,Ge,Je=Je||10,je=je||0,0),$e}getTile(Ge,Je,je){let $e=this.trees[this._limitZoom(Ge)],wt=Math.pow(2,Ge),{extent:Ie,radius:xe}=this.options,Ce=xe/Ie,vt=(je-Ce)/wt,nr=(je+1+Ce)/wt,ir={features:[]};return this._addTileFeatures($e.range((Je-Ce)/wt,vt,(Je+1+Ce)/wt,nr),$e.data,Je,je,wt,ir),Je===0&&this._addTileFeatures($e.range(1-Ce/wt,vt,1,nr),$e.data,wt,je,wt,ir),Je===wt-1&&this._addTileFeatures($e.range(0,vt,Ce/wt,nr),$e.data,-1,je,wt,ir),ir.features.length?ir:null}getClusterExpansionZoom(Ge){let Je=this._getOriginZoom(Ge)-1;for(;Je<=this.options.maxZoom;){let je=this.getChildren(Ge);if(Je++,je.length!==1)break;Ge=je[0].properties.cluster_id}return Je}_appendLeaves(Ge,Je,je,$e,wt){let Ie=this.getChildren(Je);for(let xe of Ie){let Ce=xe.properties;if(Ce&&Ce.cluster?wt+Ce.point_count<=$e?wt+=Ce.point_count:wt=this._appendLeaves(Ge,Ce.cluster_id,je,$e,wt):wt<$e?wt++:Ge.push(xe),Ge.length===je)break}return wt}_createTree(Ge){let Je=new i.av(Ge.length/this.stride|0,this.options.nodeSize,Float32Array);for(let je=0;je1,nr,ir,pr;if(vt)nr=ke(Je,Ce,this.clusterProps),ir=Je[Ce],pr=Je[Ce+1];else{let Jr=this.points[Je[Ce+j]];nr=Jr.properties;let[fi,Hi]=Jr.geometry.coordinates;ir=me(fi),pr=ie(Hi)}let oi={type:1,geometry:[[Math.round(this.options.extent*(ir*wt-je)),Math.round(this.options.extent*(pr*wt-$e))]],tags:nr},di;di=vt||this.options.generateId?Je[Ce+j]:this.points[Je[Ce+j]].id,di!==void 0&&(oi.id=di),Ie.features.push(oi)}}_limitZoom(Ge){return Math.max(this.options.minZoom,Math.min(Math.floor(+Ge),this.options.maxZoom+1))}_cluster(Ge,Je){let{radius:je,extent:$e,reduce:wt,minPoints:Ie}=this.options,xe=je/($e*Math.pow(2,Je)),Ce=Ge.data,vt=[],nr=this.stride;for(let ir=0;irJe&&(fi+=Ce[Pn+re])}if(fi>Jr&&fi>=Ie){let Hi,Pn=pr*Jr,wn=oi*Jr,pn=-1,Vn=((ir/nr|0)<<5)+(Je+1)+this.points.length;for(let kn of di){let ea=kn*nr;if(Ce[ea+2]<=Je)continue;Ce[ea+2]=Je;let ua=Ce[ea+re];Pn+=Ce[ea]*ua,wn+=Ce[ea+1]*ua,Ce[ea+4]=Vn,wt&&(Hi||(Hi=this._map(Ce,ir,!0),pn=this.clusterProps.length,this.clusterProps.push(Hi)),wt(Hi,this._map(Ce,ea)))}Ce[ir+4]=Vn,vt.push(Pn/fi,wn/fi,1/0,Vn,-1,fi),wt&&vt.push(pn)}else{for(let Hi=0;Hi1)for(let Hi of di){let Pn=Hi*nr;if(!(Ce[Pn+2]<=Je)){Ce[Pn+2]=Je;for(let wn=0;wn>5}_getOriginZoom(Ge){return(Ge-this.points.length)%32}_map(Ge,Je,je){if(Ge[Je+re]>1){let Ie=this.clusterProps[Ge[Je+oe]];return je?Object.assign({},Ie):Ie}let $e=this.points[Ge[Je+j]].properties,wt=this.options.map($e);return je&&wt===$e?Object.assign({},wt):wt}}function Me(dt,Ge,Je){return{type:"Feature",id:dt[Ge+j],properties:ke(dt,Ge,Je),geometry:{type:"Point",coordinates:[(je=dt[Ge],360*(je-.5)),Se(dt[Ge+1])]}};var je}function ke(dt,Ge,Je){let je=dt[Ge+re],$e=je>=1e4?`${Math.round(je/1e3)}k`:je>=1e3?Math.round(je/100)/10+"k":je,wt=dt[Ge+oe],Ie=wt===-1?{}:Object.assign({},Je[wt]);return Object.assign(Ie,{cluster:!0,cluster_id:dt[Ge+j],point_count:je,point_count_abbreviated:$e})}function me(dt){return dt/360+.5}function ie(dt){let Ge=Math.sin(dt*Math.PI/180),Je=.5-.25*Math.log((1+Ge)/(1-Ge))/Math.PI;return Je<0?0:Je>1?1:Je}function Se(dt){let Ge=(180-360*dt)*Math.PI/180;return 360*Math.atan(Math.exp(Ge))/Math.PI-90}function Le(dt,Ge,Je,je){let $e=je,wt=Ge+(Je-Ge>>1),Ie,xe=Je-Ge,Ce=dt[Ge],vt=dt[Ge+1],nr=dt[Je],ir=dt[Je+1];for(let pr=Ge+3;pr$e)Ie=pr,$e=oi;else if(oi===$e){let di=Math.abs(pr-wt);dije&&(Ie-Ge>3&&Le(dt,Ge,Ie,je),dt[Ie+2]=$e,Je-Ie>3&&Le(dt,Ie,Je,je))}function Ae(dt,Ge,Je,je,$e,wt){let Ie=$e-Je,xe=wt-je;if(Ie!==0||xe!==0){let Ce=((dt-Je)*Ie+(Ge-je)*xe)/(Ie*Ie+xe*xe);Ce>1?(Je=$e,je=wt):Ce>0&&(Je+=Ie*Ce,je+=xe*Ce)}return Ie=dt-Je,xe=Ge-je,Ie*Ie+xe*xe}function De(dt,Ge,Je,je){let $e={id:dt==null?null:dt,type:Ge,geometry:Je,tags:je,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(Ge==="Point"||Ge==="MultiPoint"||Ge==="LineString")Pe($e,Je);else if(Ge==="Polygon")Pe($e,Je[0]);else if(Ge==="MultiLineString")for(let wt of Je)Pe($e,wt);else if(Ge==="MultiPolygon")for(let wt of Je)Pe($e,wt[0]);return $e}function Pe(dt,Ge){for(let Je=0;Je0&&(Ie+=je?($e*nr-vt*wt)/2:Math.sqrt(Math.pow(vt-$e,2)+Math.pow(nr-wt,2))),$e=vt,wt=nr}let xe=Ge.length-3;Ge[2]=1,Le(Ge,0,xe,Je),Ge[xe+2]=1,Ge.size=Math.abs(Ie),Ge.start=0,Ge.end=Ge.size}function Ze(dt,Ge,Je,je){for(let $e=0;$e1?1:Je}function Wt(dt,Ge,Je,je,$e,wt,Ie,xe){if(je/=Ge,wt>=(Je/=Ge)&&Ie=je)return null;let Ce=[];for(let vt of dt){let nr=vt.geometry,ir=vt.type,pr=$e===0?vt.minX:vt.minY,oi=$e===0?vt.maxX:vt.maxY;if(pr>=Je&&oi=je)continue;let di=[];if(ir==="Point"||ir==="MultiPoint")st(nr,di,Je,je,$e);else if(ir==="LineString")lt(nr,di,Je,je,$e,!1,xe.lineMetrics);else if(ir==="MultiLineString")Nt(nr,di,Je,je,$e,!1);else if(ir==="Polygon")Nt(nr,di,Je,je,$e,!0);else if(ir==="MultiPolygon")for(let Jr of nr){let fi=[];Nt(Jr,fi,Je,je,$e,!0),fi.length&&di.push(fi)}if(di.length){if(xe.lineMetrics&&ir==="LineString"){for(let Jr of di)Ce.push(De(vt.id,ir,Jr,vt.tags));continue}ir!=="LineString"&&ir!=="MultiLineString"||(di.length===1?(ir="LineString",di=di[0]):ir="MultiLineString"),ir!=="Point"&&ir!=="MultiPoint"||(ir=di.length===3?"Point":"MultiPoint"),Ce.push(De(vt.id,ir,di,vt.tags))}}return Ce.length?Ce:null}function st(dt,Ge,Je,je,$e){for(let wt=0;wt=Je&&Ie<=je&&$t(Ge,dt[wt],dt[wt+1],dt[wt+2])}}function lt(dt,Ge,Je,je,$e,wt,Ie){let xe=Gt(dt),Ce=$e===0?sr:wr,vt,nr,ir=dt.start;for(let fi=0;fiJe&&(nr=Ce(xe,Hi,Pn,pn,Vn,Je),Ie&&(xe.start=ir+vt*nr)):kn>je?ea=Je&&(nr=Ce(xe,Hi,Pn,pn,Vn,Je),ua=!0),ea>je&&kn<=je&&(nr=Ce(xe,Hi,Pn,pn,Vn,je),ua=!0),!wt&&ua&&(Ie&&(xe.end=ir+vt*nr),Ge.push(xe),xe=Gt(dt)),Ie&&(ir+=vt)}let pr=dt.length-3,oi=dt[pr],di=dt[pr+1],Jr=$e===0?oi:di;Jr>=Je&&Jr<=je&&$t(xe,oi,di,dt[pr+2]),pr=xe.length-3,wt&&pr>=3&&(xe[pr]!==xe[0]||xe[pr+1]!==xe[1])&&$t(xe,xe[0],xe[1],xe[2]),xe.length&&Ge.push(xe)}function Gt(dt){let Ge=[];return Ge.size=dt.size,Ge.start=dt.start,Ge.end=dt.end,Ge}function Nt(dt,Ge,Je,je,$e,wt){for(let Ie of dt)lt(Ie,Ge,Je,je,$e,wt,!1)}function $t(dt,Ge,Je,je){dt.push(Ge,Je,je)}function sr(dt,Ge,Je,je,$e,wt){let Ie=(wt-Ge)/(je-Ge);return $t(dt,wt,Je+($e-Je)*Ie,1),Ie}function wr(dt,Ge,Je,je,$e,wt){let Ie=(wt-Je)/($e-Je);return $t(dt,Ge+(je-Ge)*Ie,wt,1),Ie}function ur(dt,Ge){let Je=[];for(let je=0;je0&&Ge.size<($e?Ie:je))return void(Je.numPoints+=Ge.length/3);let xe=[];for(let Ce=0;CeIe)&&(Je.numSimplified++,xe.push(Ge[Ce],Ge[Ce+1])),Je.numPoints++;$e&&function(Ce,vt){let nr=0;for(let ir=0,pr=Ce.length,oi=pr-2;ir0===vt)for(let ir=0,pr=Ce.length;ir24)throw new Error("maxZoom should be in the 0-24 range");if(Je.promoteId&&Je.generateId)throw new Error("promoteId and generateId cannot be used together.");let $e=function(wt,Ie){let xe=[];if(wt.type==="FeatureCollection")for(let Ce=0;Ce1&&console.time("creation"),oi=this.tiles[pr]=Ut(Ge,Je,je,$e,vt),this.tileCoords.push({z:Je,x:je,y:$e}),nr)){nr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Je,je,$e,oi.numFeatures,oi.numPoints,oi.numSimplified),console.timeEnd("creation"));let ua=`z${Je}`;this.stats[ua]=(this.stats[ua]||0)+1,this.total++}if(oi.source=Ge,wt==null){if(Je===vt.indexMaxZoom||oi.numPoints<=vt.indexMaxPoints)continue}else{if(Je===vt.maxZoom||Je===wt)continue;if(wt!=null){let ua=wt-Je;if(je!==Ie>>ua||$e!==xe>>ua)continue}}if(oi.source=null,Ge.length===0)continue;nr>1&&console.time("clipping");let di=.5*vt.buffer/vt.extent,Jr=.5-di,fi=.5+di,Hi=1+di,Pn=null,wn=null,pn=null,Vn=null,kn=Wt(Ge,ir,je-di,je+fi,0,oi.minX,oi.maxX,vt),ea=Wt(Ge,ir,je+Jr,je+Hi,0,oi.minX,oi.maxX,vt);Ge=null,kn&&(Pn=Wt(kn,ir,$e-di,$e+fi,1,oi.minY,oi.maxY,vt),wn=Wt(kn,ir,$e+Jr,$e+Hi,1,oi.minY,oi.maxY,vt),kn=null),ea&&(pn=Wt(ea,ir,$e-di,$e+fi,1,oi.minY,oi.maxY,vt),Vn=Wt(ea,ir,$e+Jr,$e+Hi,1,oi.minY,oi.maxY,vt),ea=null),nr>1&&console.timeEnd("clipping"),Ce.push(Pn||[],Je+1,2*je,2*$e),Ce.push(wn||[],Je+1,2*je,2*$e+1),Ce.push(pn||[],Je+1,2*je+1,2*$e),Ce.push(Vn||[],Je+1,2*je+1,2*$e+1)}}getTile(Ge,Je,je){Ge=+Ge,Je=+Je,je=+je;let $e=this.options,{extent:wt,debug:Ie}=$e;if(Ge<0||Ge>24)return null;let xe=1<1&&console.log("drilling down to z%d-%d-%d",Ge,Je,je);let vt,nr=Ge,ir=Je,pr=je;for(;!vt&&nr>0;)nr--,ir>>=1,pr>>=1,vt=this.tiles[lr(nr,ir,pr)];return vt&&vt.source?(Ie>1&&(console.log("found parent tile z%d-%d-%d",nr,ir,pr),console.time("drilling down")),this.splitTile(vt.source,nr,ir,pr,Ge,Je,je),Ie>1&&console.timeEnd("drilling down"),this.tiles[Ce]?Et(this.tiles[Ce],wt):null):null}}function lr(dt,Ge,Je){return 32*((1<{ir.properties=oi;let di={};for(let Jr of pr)di[Jr]=Ce[Jr].evaluate(nr,ir);return di},Ie.reduce=(oi,di)=>{ir.properties=di;for(let Jr of pr)nr.accumulated=oi[Jr],oi[Jr]=vt[Jr].evaluate(nr,ir)},Ie}(Ge)).load((yield this._pendingData).features):($e=yield this._pendingData,new Yt($e,Ge.geojsonVtOptions)),this.loaded={};let wt={};if(je){let Ie=je.finish();Ie&&(wt.resourceTiming={},wt.resourceTiming[Ge.source]=JSON.parse(JSON.stringify(Ie)))}return wt}catch(wt){if(delete this._pendingRequest,i.bB(wt))return{abandoned:!0};throw wt}var $e})}getData(){return i._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(Ge){let Je=this.loaded;return Je&&Je[Ge.uid]?super.reloadTile(Ge):this.loadTile(Ge)}loadAndProcessGeoJSON(Ge,Je){return i._(this,void 0,void 0,function*(){let je=yield this.loadGeoJSON(Ge,Je);if(delete this._pendingRequest,typeof je!="object")throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`);if(d(je,!0),Ge.filter){let $e=i.bC(Ge.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if($e.result==="error")throw new Error($e.value.map(Ie=>`${Ie.key}: ${Ie.message}`).join(", "));je={type:"FeatureCollection",features:je.features.filter(Ie=>$e.value.evaluate({zoom:0},Ie))}}return je})}loadGeoJSON(Ge,Je){return i._(this,void 0,void 0,function*(){let{promoteId:je}=Ge;if(Ge.request){let $e=yield i.h(Ge.request,Je);return this._dataUpdateable=Rr($e.data,je)?ei($e.data,je):void 0,$e.data}if(typeof Ge.data=="string")try{let $e=JSON.parse(Ge.data);return this._dataUpdateable=Rr($e,je)?ei($e,je):void 0,$e}catch($e){throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`)}if(!Ge.dataDiff)throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${Ge.source}`);return function($e,wt,Ie){var xe,Ce,vt,nr;if(wt.removeAll&&$e.clear(),wt.remove)for(let ir of wt.remove)$e.delete(ir);if(wt.add)for(let ir of wt.add){let pr=Tr(ir,Ie);pr!=null&&$e.set(pr,ir)}if(wt.update)for(let ir of wt.update){let pr=$e.get(ir.id);if(pr==null)continue;let oi=!ir.removeAllProperties&&(((xe=ir.removeProperties)===null||xe===void 0?void 0:xe.length)>0||((Ce=ir.addOrUpdateProperties)===null||Ce===void 0?void 0:Ce.length)>0);if((ir.newGeometry||ir.removeAllProperties||oi)&&(pr=Object.assign({},pr),$e.set(ir.id,pr),oi&&(pr.properties=Object.assign({},pr.properties))),ir.newGeometry&&(pr.geometry=ir.newGeometry),ir.removeAllProperties)pr.properties={};else if(((vt=ir.removeProperties)===null||vt===void 0?void 0:vt.length)>0)for(let di of ir.removeProperties)Object.prototype.hasOwnProperty.call(pr.properties,di)&&delete pr.properties[di];if(((nr=ir.addOrUpdateProperties)===null||nr===void 0?void 0:nr.length)>0)for(let{key:di,value:Jr}of ir.addOrUpdateProperties)pr.properties[di]=Jr}}(this._dataUpdateable,Ge.dataDiff,je),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(Ge){return i._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(Ge){return this._geoJSONIndex.getClusterExpansionZoom(Ge.clusterId)}getClusterChildren(Ge){return this._geoJSONIndex.getChildren(Ge.clusterId)}getClusterLeaves(Ge){return this._geoJSONIndex.getLeaves(Ge.clusterId,Ge.limit,Ge.offset)}}class Ur{constructor(Ge){this.self=Ge,this.actor=new i.F(Ge),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Je,je)=>{if(this.externalWorkerSourceTypes[Je])throw new Error(`Worker source with name "${Je}" already registered.`);this.externalWorkerSourceTypes[Je]=je},this.self.addProtocol=i.bi,this.self.removeProtocol=i.bj,this.self.registerRTLTextPlugin=Je=>{if(i.bD.isParsed())throw new Error("RTL text plugin already registered.");i.bD.setMethods(Je)},this.actor.registerMessageHandler("LDT",(Je,je)=>this._getDEMWorkerSource(Je,je.source).loadTile(je)),this.actor.registerMessageHandler("RDT",(Je,je)=>i._(this,void 0,void 0,function*(){this._getDEMWorkerSource(Je,je.source).removeTile(je)})),this.actor.registerMessageHandler("GCEZ",(Je,je)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Je,je.type,je.source).getClusterExpansionZoom(je)})),this.actor.registerMessageHandler("GCC",(Je,je)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Je,je.type,je.source).getClusterChildren(je)})),this.actor.registerMessageHandler("GCL",(Je,je)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Je,je.type,je.source).getClusterLeaves(je)})),this.actor.registerMessageHandler("LD",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).loadData(je)),this.actor.registerMessageHandler("GD",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).getData()),this.actor.registerMessageHandler("LT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).loadTile(je)),this.actor.registerMessageHandler("RT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).reloadTile(je)),this.actor.registerMessageHandler("AT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).abortTile(je)),this.actor.registerMessageHandler("RMT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).removeTile(je)),this.actor.registerMessageHandler("RS",(Je,je)=>i._(this,void 0,void 0,function*(){if(!this.workerSources[Je]||!this.workerSources[Je][je.type]||!this.workerSources[Je][je.type][je.source])return;let $e=this.workerSources[Je][je.type][je.source];delete this.workerSources[Je][je.type][je.source],$e.removeSource!==void 0&&$e.removeSource(je)})),this.actor.registerMessageHandler("RM",Je=>i._(this,void 0,void 0,function*(){delete this.layerIndexes[Je],delete this.availableImages[Je],delete this.workerSources[Je],delete this.demWorkerSources[Je]})),this.actor.registerMessageHandler("SR",(Je,je)=>i._(this,void 0,void 0,function*(){this.referrer=je})),this.actor.registerMessageHandler("SRPS",(Je,je)=>this._syncRTLPluginState(Je,je)),this.actor.registerMessageHandler("IS",(Je,je)=>i._(this,void 0,void 0,function*(){this.self.importScripts(je)})),this.actor.registerMessageHandler("SI",(Je,je)=>this._setImages(Je,je)),this.actor.registerMessageHandler("UL",(Je,je)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Je).update(je.layers,je.removedIds)})),this.actor.registerMessageHandler("SL",(Je,je)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Je).replace(je)}))}_setImages(Ge,Je){return i._(this,void 0,void 0,function*(){this.availableImages[Ge]=Je;for(let je in this.workerSources[Ge]){let $e=this.workerSources[Ge][je];for(let wt in $e)$e[wt].availableImages=Je}})}_syncRTLPluginState(Ge,Je){return i._(this,void 0,void 0,function*(){if(i.bD.isParsed())return i.bD.getState();if(Je.pluginStatus!=="loading")return i.bD.setState(Je),Je;let je=Je.pluginURL;if(this.self.importScripts(je),i.bD.isParsed()){let $e={pluginStatus:"loaded",pluginURL:je};return i.bD.setState($e),$e}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${je}`)})}_getAvailableImages(Ge){let Je=this.availableImages[Ge];return Je||(Je=[]),Je}_getLayerIndex(Ge){let Je=this.layerIndexes[Ge];return Je||(Je=this.layerIndexes[Ge]=new a),Je}_getWorkerSource(Ge,Je,je){if(this.workerSources[Ge]||(this.workerSources[Ge]={}),this.workerSources[Ge][Je]||(this.workerSources[Ge][Je]={}),!this.workerSources[Ge][Je][je]){let $e={sendAsync:(wt,Ie)=>(wt.targetMapId=Ge,this.actor.sendAsync(wt,Ie))};switch(Je){case"vector":this.workerSources[Ge][Je][je]=new u($e,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;case"geojson":this.workerSources[Ge][Je][je]=new Wr($e,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;default:this.workerSources[Ge][Je][je]=new this.externalWorkerSourceTypes[Je]($e,this._getLayerIndex(Ge),this._getAvailableImages(Ge))}}return this.workerSources[Ge][Je][je]}_getDEMWorkerSource(Ge,Je){return this.demWorkerSources[Ge]||(this.demWorkerSources[Ge]={}),this.demWorkerSources[Ge][Je]||(this.demWorkerSources[Ge][Je]=new c),this.demWorkerSources[Ge][Je]}}return i.i(self)&&(self.worker=new Ur(self)),Ur}),r("index",["exports","./shared"],function(i,a){"use strict";var o="4.7.1";let s,l,u={now:typeof performance!="undefined"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:ue=>new Promise((w,B)=>{let Q=requestAnimationFrame(w);ue.signal.addEventListener("abort",()=>{cancelAnimationFrame(Q),B(a.c())})}),getImageData(ue,w=0){return this.getImageCanvasContext(ue).getImageData(-w,-w,ue.width+2*w,ue.height+2*w)},getImageCanvasContext(ue){let w=window.document.createElement("canvas"),B=w.getContext("2d",{willReadFrequently:!0});if(!B)throw new Error("failed to create canvas 2d context");return w.width=ue.width,w.height=ue.height,B.drawImage(ue,0,0,ue.width,ue.height),B},resolveURL:ue=>(s||(s=document.createElement("a")),s.href=ue,s.href),hardwareConcurrency:typeof navigator!="undefined"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(l==null&&(l=matchMedia("(prefers-reduced-motion: reduce)")),l.matches)}};class c{static testProp(w){if(!c.docStyle)return w[0];for(let B=0;B{window.removeEventListener("click",c.suppressClickInternal,!0)},0)}static getScale(w){let B=w.getBoundingClientRect();return{x:B.width/w.offsetWidth||1,y:B.height/w.offsetHeight||1,boundingClientRect:B}}static getPoint(w,B,Q){let ee=B.boundingClientRect;return new a.P((Q.clientX-ee.left)/B.x-w.clientLeft,(Q.clientY-ee.top)/B.y-w.clientTop)}static mousePos(w,B){let Q=c.getScale(w);return c.getPoint(w,Q,B)}static touchPos(w,B){let Q=[],ee=c.getScale(w);for(let le=0;le{h&&b(h),h=null,_=!0},d.onerror=()=>{v=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(ue){let w,B,Q,ee;ue.resetRequestQueue=()=>{w=[],B=0,Q=0,ee={}},ue.addThrottleControl=ot=>{let Tt=Q++;return ee[Tt]=ot,Tt},ue.removeThrottleControl=ot=>{delete ee[ot],qe()},ue.getImage=(ot,Tt,Kt=!0)=>new Promise((Jt,xr)=>{f.supported&&(ot.headers||(ot.headers={}),ot.headers.accept="image/webp,*/*"),a.e(ot,{type:"image"}),w.push({abortController:Tt,requestParameters:ot,supportImageRefresh:Kt,state:"queued",onError:Pr=>{xr(Pr)},onSuccess:Pr=>{Jt(Pr)}}),qe()});let le=ot=>a._(this,void 0,void 0,function*(){ot.state="running";let{requestParameters:Tt,supportImageRefresh:Kt,onError:Jt,onSuccess:xr,abortController:Pr}=ot,ve=Kt===!1&&!a.i(self)&&!a.g(Tt.url)&&(!Tt.headers||Object.keys(Tt.headers).reduce((Be,tt)=>Be&&tt==="accept",!0));B++;let be=ve?Xe(Tt,Pr):a.m(Tt,Pr);try{let Be=yield be;delete ot.abortController,ot.state="completed",Be.data instanceof HTMLImageElement||a.b(Be.data)?xr(Be):Be.data&&xr({data:yield(Re=Be.data,typeof createImageBitmap=="function"?a.d(Re):a.f(Re)),cacheControl:Be.cacheControl,expires:Be.expires})}catch(Be){delete ot.abortController,Jt(Be)}finally{B--,qe()}var Re}),qe=()=>{let ot=(()=>{for(let Tt of Object.keys(ee))if(ee[Tt]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Tt=B;Tt0;Tt++){let Kt=w.shift();Kt.abortController.signal.aborted?Tt--:le(Kt)}},Xe=(ot,Tt)=>new Promise((Kt,Jt)=>{let xr=new Image,Pr=ot.url,ve=ot.credentials;ve&&ve==="include"?xr.crossOrigin="use-credentials":(ve&&ve==="same-origin"||!a.s(Pr))&&(xr.crossOrigin="anonymous"),Tt.signal.addEventListener("abort",()=>{xr.src="",Jt(a.c())}),xr.fetchPriority="high",xr.onload=()=>{xr.onerror=xr.onload=null,Kt({data:xr})},xr.onerror=()=>{xr.onerror=xr.onload=null,Tt.signal.aborted||Jt(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},xr.src=Pr})}(p||(p={})),p.resetRequestQueue();class C{constructor(w){this._transformRequestFn=w}transformRequest(w,B){return this._transformRequestFn&&this._transformRequestFn(w,B)||{url:w}}setTransformRequest(w){this._transformRequestFn=w}}function E(ue){var w=new a.A(3);return w[0]=ue[0],w[1]=ue[1],w[2]=ue[2],w}var A,L=function(ue,w,B){return ue[0]=w[0]-B[0],ue[1]=w[1]-B[1],ue[2]=w[2]-B[2],ue};A=new a.A(3),a.A!=Float32Array&&(A[0]=0,A[1]=0,A[2]=0);var x=function(ue){var w=ue[0],B=ue[1];return w*w+B*B};function k(ue){let w=[];if(typeof ue=="string")w.push({id:"default",url:ue});else if(ue&&ue.length>0){let B=[];for(let{id:Q,url:ee}of ue){let le=`${Q}${ee}`;B.indexOf(le)===-1&&(B.push(le),w.push({id:Q,url:ee}))}}return w}function M(ue,w,B){let Q=ue.split("?");return Q[0]+=`${w}${B}`,Q.join("?")}(function(){var ue=new a.A(2);a.A!=Float32Array&&(ue[0]=0,ue[1]=0)})();class g{constructor(w,B,Q,ee){this.context=w,this.format=Q,this.texture=w.gl.createTexture(),this.update(B,ee)}update(w,B,Q){let{width:ee,height:le}=w,qe=!(this.size&&this.size[0]===ee&&this.size[1]===le||Q),{context:Xe}=this,{gl:ot}=Xe;if(this.useMipmap=!!(B&&B.useMipmap),ot.bindTexture(ot.TEXTURE_2D,this.texture),Xe.pixelStoreUnpackFlipY.set(!1),Xe.pixelStoreUnpack.set(1),Xe.pixelStoreUnpackPremultiplyAlpha.set(this.format===ot.RGBA&&(!B||B.premultiply!==!1)),qe)this.size=[ee,le],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?ot.texImage2D(ot.TEXTURE_2D,0,this.format,this.format,ot.UNSIGNED_BYTE,w):ot.texImage2D(ot.TEXTURE_2D,0,this.format,ee,le,0,this.format,ot.UNSIGNED_BYTE,w.data);else{let{x:Tt,y:Kt}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?ot.texSubImage2D(ot.TEXTURE_2D,0,Tt,Kt,ot.RGBA,ot.UNSIGNED_BYTE,w):ot.texSubImage2D(ot.TEXTURE_2D,0,Tt,Kt,ee,le,ot.RGBA,ot.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&ot.generateMipmap(ot.TEXTURE_2D)}bind(w,B,Q){let{context:ee}=this,{gl:le}=ee;le.bindTexture(le.TEXTURE_2D,this.texture),Q!==le.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Q=le.LINEAR),w!==this.filter&&(le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MAG_FILTER,w),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MIN_FILTER,Q||w),this.filter=w),B!==this.wrap&&(le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_S,B),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_T,B),this.wrap=B)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:w}=this.context;w.deleteTexture(this.texture),this.texture=null}}function P(ue){let{userImage:w}=ue;return!!(w&&w.render&&w.render())&&(ue.data.replace(new Uint8Array(w.data.buffer)),!0)}class T extends a.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(w){if(this.loaded!==w&&(this.loaded=w,w)){for(let{ids:B,promiseResolve:Q}of this.requestors)Q(this._getImagesForIds(B));this.requestors=[]}}getImage(w){let B=this.images[w];if(B&&!B.data&&B.spriteData){let Q=B.spriteData;B.data=new a.R({width:Q.width,height:Q.height},Q.context.getImageData(Q.x,Q.y,Q.width,Q.height).data),B.spriteData=null}return B}addImage(w,B){if(this.images[w])throw new Error(`Image id ${w} already exist, use updateImage instead`);this._validate(w,B)&&(this.images[w]=B)}_validate(w,B){let Q=!0,ee=B.data||B.spriteData;return this._validateStretch(B.stretchX,ee&&ee.width)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchX" value`))),Q=!1),this._validateStretch(B.stretchY,ee&&ee.height)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchY" value`))),Q=!1),this._validateContent(B.content,B)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "content" value`))),Q=!1),Q}_validateStretch(w,B){if(!w)return!0;let Q=0;for(let ee of w){if(ee[0]{let ee=!0;if(!this.isLoaded())for(let le of w)this.images[le]||(ee=!1);this.isLoaded()||ee?B(this._getImagesForIds(w)):this.requestors.push({ids:w,promiseResolve:B})})}_getImagesForIds(w){let B={};for(let Q of w){let ee=this.getImage(Q);ee||(this.fire(new a.k("styleimagemissing",{id:Q})),ee=this.getImage(Q)),ee?B[Q]={data:ee.data.clone(),pixelRatio:ee.pixelRatio,sdf:ee.sdf,version:ee.version,stretchX:ee.stretchX,stretchY:ee.stretchY,content:ee.content,textFitWidth:ee.textFitWidth,textFitHeight:ee.textFitHeight,hasRenderCallback:!!(ee.userImage&&ee.userImage.render)}:a.w(`Image "${Q}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return B}getPixelSize(){let{width:w,height:B}=this.atlasImage;return{width:w,height:B}}getPattern(w){let B=this.patterns[w],Q=this.getImage(w);if(!Q)return null;if(B&&B.position.version===Q.version)return B.position;if(B)B.position.version=Q.version;else{let ee={w:Q.data.width+2,h:Q.data.height+2,x:0,y:0},le=new a.I(ee,Q);this.patterns[w]={bin:ee,position:le}}return this._updatePatternAtlas(),this.patterns[w].position}bind(w){let B=w.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new g(w,this.atlasImage,B.RGBA),this.atlasTexture.bind(B.LINEAR,B.CLAMP_TO_EDGE)}_updatePatternAtlas(){let w=[];for(let le in this.patterns)w.push(this.patterns[le].bin);let{w:B,h:Q}=a.p(w),ee=this.atlasImage;ee.resize({width:B||1,height:Q||1});for(let le in this.patterns){let{bin:qe}=this.patterns[le],Xe=qe.x+1,ot=qe.y+1,Tt=this.getImage(le).data,Kt=Tt.width,Jt=Tt.height;a.R.copy(Tt,ee,{x:0,y:0},{x:Xe,y:ot},{width:Kt,height:Jt}),a.R.copy(Tt,ee,{x:0,y:Jt-1},{x:Xe,y:ot-1},{width:Kt,height:1}),a.R.copy(Tt,ee,{x:0,y:0},{x:Xe,y:ot+Jt},{width:Kt,height:1}),a.R.copy(Tt,ee,{x:Kt-1,y:0},{x:Xe-1,y:ot},{width:1,height:Jt}),a.R.copy(Tt,ee,{x:0,y:0},{x:Xe+Kt,y:ot},{width:1,height:Jt})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(w){for(let B of w){if(this.callbackDispatchedThisFrame[B])continue;this.callbackDispatchedThisFrame[B]=!0;let Q=this.getImage(B);Q||a.w(`Image with ID: "${B}" was not found`),P(Q)&&this.updateImage(B,Q)}}}let z=1e20;function O(ue,w,B,Q,ee,le,qe,Xe,ot){for(let Tt=w;Tt-1);ot++,le[ot]=Xe,qe[ot]=Tt,qe[ot+1]=z}for(let Xe=0,ot=0;Xe65535)throw new Error("glyphs > 65535 not supported");if(Q.ranges[le])return{stack:w,id:B,glyph:ee};if(!this.url)throw new Error("glyphsUrl is not set");if(!Q.requests[le]){let Xe=G.loadGlyphRange(w,le,this.url,this.requestManager);Q.requests[le]=Xe}let qe=yield Q.requests[le];for(let Xe in qe)this._doesCharSupportLocalGlyph(+Xe)||(Q.glyphs[+Xe]=qe[+Xe]);return Q.ranges[le]=!0,{stack:w,id:B,glyph:qe[B]||null}})}_doesCharSupportLocalGlyph(w){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(w))}_tinySDF(w,B,Q){let ee=this.localIdeographFontFamily;if(!ee||!this._doesCharSupportLocalGlyph(Q))return;let le=w.tinySDF;if(!le){let Xe="400";/bold/i.test(B)?Xe="900":/medium/i.test(B)?Xe="500":/light/i.test(B)&&(Xe="200"),le=w.tinySDF=new G.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:ee,fontWeight:Xe})}let qe=le.draw(String.fromCharCode(Q));return{id:Q,bitmap:new a.o({width:qe.width||60,height:qe.height||60},qe.data),metrics:{width:qe.glyphWidth/2||24,height:qe.glyphHeight/2||24,left:qe.glyphLeft/2+.5||0,top:qe.glyphTop/2-27.5||-8,advance:qe.glyphAdvance/2||24,isDoubleResolution:!0}}}}G.loadGlyphRange=function(ue,w,B,Q){return a._(this,void 0,void 0,function*(){let ee=256*w,le=ee+255,qe=Q.transformRequest(B.replace("{fontstack}",ue).replace("{range}",`${ee}-${le}`),"Glyphs"),Xe=yield a.l(qe,new AbortController);if(!Xe||!Xe.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${le}`);let ot={};for(let Tt of a.n(Xe.data))ot[Tt.id]=Tt;return ot})},G.TinySDF=class{constructor({fontSize:ue=24,buffer:w=3,radius:B=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:le="normal",fontStyle:qe="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=B;let Xe=this.size=ue+4*w,ot=this._createCanvas(Xe),Tt=this.ctx=ot.getContext("2d",{willReadFrequently:!0});Tt.font=`${qe} ${le} ${ue}px ${ee}`,Tt.textBaseline="alphabetic",Tt.textAlign="left",Tt.fillStyle="black",this.gridOuter=new Float64Array(Xe*Xe),this.gridInner=new Float64Array(Xe*Xe),this.f=new Float64Array(Xe),this.z=new Float64Array(Xe+1),this.v=new Uint16Array(Xe)}_createCanvas(ue){let w=document.createElement("canvas");return w.width=w.height=ue,w}draw(ue){let{width:w,actualBoundingBoxAscent:B,actualBoundingBoxDescent:Q,actualBoundingBoxLeft:ee,actualBoundingBoxRight:le}=this.ctx.measureText(ue),qe=Math.ceil(B),Xe=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(le-ee))),ot=Math.min(this.size-this.buffer,qe+Math.ceil(Q)),Tt=Xe+2*this.buffer,Kt=ot+2*this.buffer,Jt=Math.max(Tt*Kt,0),xr=new Uint8ClampedArray(Jt),Pr={data:xr,width:Tt,height:Kt,glyphWidth:Xe,glyphHeight:ot,glyphTop:qe,glyphLeft:0,glyphAdvance:w};if(Xe===0||ot===0)return Pr;let{ctx:ve,buffer:be,gridInner:Re,gridOuter:Be}=this;ve.clearRect(be,be,Xe,ot),ve.fillText(ue,be,be+qe);let tt=ve.getImageData(be,be,Xe,ot);Be.fill(z,0,Jt),Re.fill(0,0,Jt);for(let We=0;We0?rr*rr:0,Re[Ht]=rr<0?rr*rr:0}}O(Be,0,0,Tt,Kt,Tt,this.f,this.v,this.z),O(Re,be,be,Xe,ot,Tt,this.f,this.v,this.z);for(let We=0;We1&&(ot=w[++Xe]);let Kt=Math.abs(Tt-ot.left),Jt=Math.abs(Tt-ot.right),xr=Math.min(Kt,Jt),Pr,ve=le/Q*(ee+1);if(ot.isDash){let be=ee-Math.abs(ve);Pr=Math.sqrt(xr*xr+be*be)}else Pr=ee-Math.sqrt(xr*xr+ve*ve);this.data[qe+Tt]=Math.max(0,Math.min(255,Pr+128))}}}addRegularDash(w){for(let Xe=w.length-1;Xe>=0;--Xe){let ot=w[Xe],Tt=w[Xe+1];ot.zeroLength?w.splice(Xe,1):Tt&&Tt.isDash===ot.isDash&&(Tt.left=ot.left,w.splice(Xe,1))}let B=w[0],Q=w[w.length-1];B.isDash===Q.isDash&&(B.left=Q.left-this.width,Q.right=B.right+this.width);let ee=this.width*this.nextRow,le=0,qe=w[le];for(let Xe=0;Xe1&&(qe=w[++le]);let ot=Math.abs(Xe-qe.left),Tt=Math.abs(Xe-qe.right),Kt=Math.min(ot,Tt);this.data[ee+Xe]=Math.max(0,Math.min(255,(qe.isDash?Kt:-Kt)+128))}}addDash(w,B){let Q=B?7:0,ee=2*Q+1;if(this.nextRow+ee>this.height)return a.w("LineAtlas out of space"),null;let le=0;for(let Xe=0;Xe{B.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[_e]}numActive(){return Object.keys(this.active).length}}let ke=Math.floor(u.hardwareConcurrency/2),me,ie;function Se(){return me||(me=new Me),me}Me.workerCount=a.C(globalThis)?Math.max(Math.min(ke,3),1):1;class Le{constructor(w,B){this.workerPool=w,this.actors=[],this.currentActor=0,this.id=B;let Q=this.workerPool.acquire(B);for(let ee=0;ee{B.remove()}),this.actors=[],w&&this.workerPool.release(this.id)}registerMessageHandler(w,B){for(let Q of this.actors)Q.registerMessageHandler(w,B)}}function Ae(){return ie||(ie=new Le(Se(),a.G),ie.registerMessageHandler("GR",(ue,w,B)=>a.m(w,B))),ie}function De(ue,w){let B=a.H();return a.J(B,B,[1,1,0]),a.K(B,B,[.5*ue.width,.5*ue.height,1]),a.L(B,B,ue.calculatePosMatrix(w.toUnwrapped()))}function Pe(ue,w,B,Q,ee,le){let qe=function(Jt,xr,Pr){if(Jt)for(let ve of Jt){let be=xr[ve];if(be&&be.source===Pr&&be.type==="fill-extrusion")return!0}else for(let ve in xr){let be=xr[ve];if(be.source===Pr&&be.type==="fill-extrusion")return!0}return!1}(ee&&ee.layers,w,ue.id),Xe=le.maxPitchScaleFactor(),ot=ue.tilesIn(Q,Xe,qe);ot.sort(ge);let Tt=[];for(let Jt of ot)Tt.push({wrappedTileID:Jt.tileID.wrapped().key,queryResults:Jt.tile.queryRenderedFeatures(w,B,ue._state,Jt.queryGeometry,Jt.cameraQueryGeometry,Jt.scale,ee,le,Xe,De(ue.transform,Jt.tileID))});let Kt=function(Jt){let xr={},Pr={};for(let ve of Jt){let be=ve.queryResults,Re=ve.wrappedTileID,Be=Pr[Re]=Pr[Re]||{};for(let tt in be){let We=be[tt],it=Be[tt]=Be[tt]||{},Dt=xr[tt]=xr[tt]||[];for(let Ht of We)it[Ht.featureIndex]||(it[Ht.featureIndex]=!0,Dt.push(Ht))}}return xr}(Tt);for(let Jt in Kt)Kt[Jt].forEach(xr=>{let Pr=xr.feature,ve=ue.getFeatureState(Pr.layer["source-layer"],Pr.id);Pr.source=Pr.layer.source,Pr.layer["source-layer"]&&(Pr.sourceLayer=Pr.layer["source-layer"]),Pr.state=ve});return Kt}function ge(ue,w){let B=ue.tileID,Q=w.tileID;return B.overscaledZ-Q.overscaledZ||B.canonical.y-Q.canonical.y||B.wrap-Q.wrap||B.canonical.x-Q.canonical.x}function Fe(ue,w,B){return a._(this,void 0,void 0,function*(){let Q=ue;if(ue.url?Q=(yield a.h(w.transformRequest(ue.url,"Source"),B)).data:yield u.frameAsync(B),!Q)return null;let ee=a.M(a.e(Q,ue),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Q&&Q.vector_layers&&(ee.vectorLayerIds=Q.vector_layers.map(le=>le.id)),ee})}class ce{constructor(w,B){w&&(B?this.setSouthWest(w).setNorthEast(B):Array.isArray(w)&&(w.length===4?this.setSouthWest([w[0],w[1]]).setNorthEast([w[2],w[3]]):this.setSouthWest(w[0]).setNorthEast(w[1])))}setNorthEast(w){return this._ne=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}setSouthWest(w){return this._sw=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}extend(w){let B=this._sw,Q=this._ne,ee,le;if(w instanceof a.N)ee=w,le=w;else{if(!(w instanceof ce))return Array.isArray(w)?w.length===4||w.every(Array.isArray)?this.extend(ce.convert(w)):this.extend(a.N.convert(w)):w&&("lng"in w||"lon"in w)&&"lat"in w?this.extend(a.N.convert(w)):this;if(ee=w._sw,le=w._ne,!ee||!le)return this}return B||Q?(B.lng=Math.min(ee.lng,B.lng),B.lat=Math.min(ee.lat,B.lat),Q.lng=Math.max(le.lng,Q.lng),Q.lat=Math.max(le.lat,Q.lat)):(this._sw=new a.N(ee.lng,ee.lat),this._ne=new a.N(le.lng,le.lat)),this}getCenter(){return new a.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new a.N(this.getWest(),this.getNorth())}getSouthEast(){return new a.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(w){let{lng:B,lat:Q}=a.N.convert(w),ee=this._sw.lng<=B&&B<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ee=this._sw.lng>=B&&B>=this._ne.lng),this._sw.lat<=Q&&Q<=this._ne.lat&&ee}static convert(w){return w instanceof ce?w:w&&new ce(w)}static fromLngLat(w,B=0){let Q=360*B/40075017,ee=Q/Math.cos(Math.PI/180*w.lat);return new ce(new a.N(w.lng-ee,w.lat-Q),new a.N(w.lng+ee,w.lat+Q))}adjustAntiMeridian(){let w=new a.N(this._sw.lng,this._sw.lat),B=new a.N(this._ne.lng,this._ne.lat);return new ce(w,w.lng>B.lng?new a.N(B.lng+360,B.lat):B)}}class Ze{constructor(w,B,Q){this.bounds=ce.convert(this.validateBounds(w)),this.minzoom=B||0,this.maxzoom=Q||24}validateBounds(w){return Array.isArray(w)&&w.length===4?[Math.max(-180,w[0]),Math.max(-90,w[1]),Math.min(180,w[2]),Math.min(90,w[3])]:[-180,-90,180,90]}contains(w){let B=Math.pow(2,w.z),Q=Math.floor(a.O(this.bounds.getWest())*B),ee=Math.floor(a.Q(this.bounds.getNorth())*B),le=Math.ceil(a.O(this.bounds.getEast())*B),qe=Math.ceil(a.Q(this.bounds.getSouth())*B);return w.x>=Q&&w.x=ee&&w.y{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return a.e({},this._options)}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q={request:this.map._requestManager.transformRequest(B,"Tile"),uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,tileSize:this.tileSize*w.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};Q.request.collectResourceTiming=this._collectResourceTiming;let ee="RT";if(w.actor&&w.state!=="expired"){if(w.state==="loading")return new Promise((le,qe)=>{w.reloadPromise={resolve:le,reject:qe}})}else w.actor=this.dispatcher.getActor(),ee="LT";w.abortController=new AbortController;try{let le=yield w.actor.sendAsync({type:ee,data:Q},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,le)}catch(le){if(delete w.abortController,w.aborted)return;if(le&&le.status!==404)throw le;this._afterTileLoadWorkerResponse(w,null)}})}_afterTileLoadWorkerResponse(w,B){if(B&&B.resourceTiming&&(w.resourceTiming=B.resourceTiming),B&&this.map._refreshExpiredTiles&&w.setExpiryData(B),w.loadVectorData(B,this.map.painter),w.reloadPromise){let Q=w.reloadPromise;w.reloadPromise=null,this.loadTile(w).then(Q.resolve).catch(Q.reject)}}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.actor&&(yield w.actor.sendAsync({type:"AT",data:{uid:w.uid,type:this.type,source:this.id}}))})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),w.actor&&(yield w.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class pt extends a.E{constructor(w,B,Q,ee){super(),this.id=w,this.dispatcher=Q,this.setEventedParent(ee),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.e({type:"raster"},B),a.e(this,a.M(B,["url","scheme","tileSize"]))}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let w=yield Fe(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,w&&(a.e(this,w),w.bounds&&(this.tileBounds=new Ze(w.bounds,this.minzoom,this.maxzoom)),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})))}catch(w){this._tileJSONRequest=null,this.fire(new a.j(w))}})}loaded(){return this._loaded}onAdd(w){this.map=w,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(w){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),w(),this.load()}setTiles(w){return this.setSourceProperty(()=>{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}serialize(){return a.e({},this._options)}hasTile(w){return!this.tileBounds||this.tileBounds.contains(w.canonical)}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);w.abortController=new AbortController;try{let Q=yield p.getImage(this.map._requestManager.transformRequest(B,"Tile"),w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(Q&&Q.data){this.map._refreshExpiredTiles&&Q.cacheControl&&Q.expires&&w.setExpiryData({cacheControl:Q.cacheControl,expires:Q.expires});let ee=this.map.painter.context,le=ee.gl,qe=Q.data;w.texture=this.map.painter.getTileTexture(qe.width),w.texture?w.texture.update(qe,{useMipmap:!0}):(w.texture=new g(ee,qe,le.RGBA,{useMipmap:!0}),w.texture.bind(le.LINEAR,le.CLAMP_TO_EDGE,le.LINEAR_MIPMAP_NEAREST)),w.state="loaded"}}catch(Q){if(delete w.abortController,w.aborted)w.state="unloaded";else if(Q)throw w.state="errored",Q}})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController)})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.texture&&this.map.painter.saveTileTexture(w.texture)})}hasTransition(){return!1}}class Wt extends pt{constructor(w,B,Q,ee){super(w,B,Q,ee),this.type="raster-dem",this.maxzoom=22,this._options=a.e({type:"raster-dem"},B),this.encoding=B.encoding||"mapbox",this.redFactor=B.redFactor,this.greenFactor=B.greenFactor,this.blueFactor=B.blueFactor,this.baseShift=B.baseShift}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q=this.map._requestManager.transformRequest(B,"Tile");w.neighboringTiles=this._getNeighboringTiles(w.tileID),w.abortController=new AbortController;try{let ee=yield p.getImage(Q,w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(ee&&ee.data){let le=ee.data;this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let qe=a.b(le)&&a.U()?le:yield this.readImageNow(le),Xe={type:this.type,uid:w.uid,source:this.id,rawImageData:qe,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!w.actor||w.state==="expired"){w.actor=this.dispatcher.getActor();let ot=yield w.actor.sendAsync({type:"LDT",data:Xe});w.dem=ot,w.needsHillshadePrepare=!0,w.needsTerrainPrepare=!0,w.state="loaded"}}}catch(ee){if(delete w.abortController,w.aborted)w.state="unloaded";else if(ee)throw w.state="errored",ee}})}readImageNow(w){return a._(this,void 0,void 0,function*(){if(typeof VideoFrame!="undefined"&&a.V()){let B=w.width+2,Q=w.height+2;try{return new a.R({width:B,height:Q},yield a.W(w,-1,-1,B,Q))}catch(ee){}}return u.getImageData(w,1)})}_getNeighboringTiles(w){let B=w.canonical,Q=Math.pow(2,B.z),ee=(B.x-1+Q)%Q,le=B.x===0?w.wrap-1:w.wrap,qe=(B.x+1+Q)%Q,Xe=B.x+1===Q?w.wrap+1:w.wrap,ot={};return ot[new a.S(w.overscaledZ,le,B.z,ee,B.y).key]={backfilled:!1},ot[new a.S(w.overscaledZ,Xe,B.z,qe,B.y).key]={backfilled:!1},B.y>0&&(ot[new a.S(w.overscaledZ,le,B.z,ee,B.y-1).key]={backfilled:!1},ot[new a.S(w.overscaledZ,w.wrap,B.z,B.x,B.y-1).key]={backfilled:!1},ot[new a.S(w.overscaledZ,Xe,B.z,qe,B.y-1).key]={backfilled:!1}),B.y+10&&a.e(le,{resourceTiming:ee}),this.fire(new a.k("data",Object.assign(Object.assign({},le),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},le),{sourceDataType:"content"})))}catch(Q){if(this._pendingLoads--,this._removed)return void this.fire(new a.k("dataabort",{dataType:"source"}));this.fire(new a.j(Q))}})}loaded(){return this._pendingLoads===0}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.actor?"RT":"LT";w.actor=this.actor;let Q={type:this.type,uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};w.abortController=new AbortController;let ee=yield this.actor.sendAsync({type:B,data:Q},w.abortController);delete w.abortController,w.unloadVectorData(),w.aborted||w.loadVectorData(ee,this.map.painter,B==="RT")})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.aborted=!0})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return a.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var lt=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class Gt extends a.E{constructor(w,B,Q,ee){super(),this.id=w,this.dispatcher=Q,this.coordinates=B.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ee),this.options=B}load(w){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let B=yield p.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,B&&B.data&&(this.image=B.data,w&&(this.coordinates=w),this._finishLoading())}catch(B){this._request=null,this._loaded=!0,this.fire(new a.j(B))}})}loaded(){return this._loaded}updateImage(w){return w.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=w.url,this.load(w.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(w){this.map=w,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(w){this.coordinates=w;let B=w.map(a.Z.fromLngLat);this.tileID=function(ee){let le=1/0,qe=1/0,Xe=-1/0,ot=-1/0;for(let xr of ee)le=Math.min(le,xr.x),qe=Math.min(qe,xr.y),Xe=Math.max(Xe,xr.x),ot=Math.max(ot,xr.y);let Tt=Math.max(Xe-le,ot-qe),Kt=Math.max(0,Math.floor(-Math.log(Tt)/Math.LN2)),Jt=Math.pow(2,Kt);return new a.a1(Kt,Math.floor((le+Xe)/2*Jt),Math.floor((qe+ot)/2*Jt))}(B),this.minzoom=this.maxzoom=this.tileID.z;let Q=B.map(ee=>this.tileID.getTilePoint(ee)._round());return this._boundsArray=new a.$,this._boundsArray.emplaceBack(Q[0].x,Q[0].y,0,0),this._boundsArray.emplaceBack(Q[1].x,Q[1].y,a.X,0),this._boundsArray.emplaceBack(Q[3].x,Q[3].y,0,a.X),this._boundsArray.emplaceBack(Q[2].x,Q[2].y,a.X,a.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new g(w,this.image,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let le=this.tiles[ee];le.state!=="loaded"&&(le.state="loaded",le.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(w){return a._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(w.tileID.canonical)?(this.tiles[String(w.tileID.wrap)]=w,w.buckets={}):w.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class Nt extends Gt{constructor(w,B,Q,ee){super(w,B,Q,ee),this.roundZoom=!0,this.type="video",this.options=B}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1;let w=this.options;this.urls=[];for(let B of w.urls)this.urls.push(this.map._requestManager.transformRequest(B,"Source").url);try{let B=yield a.a3(this.urls);if(this._loaded=!0,!B)return;this.video=B,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(B){this.fire(new a.j(B))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(w){if(this.video){let B=this.video.seekable;wB.end(0)?this.fire(new a.j(new a.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${B.start(0)} and ${B.end(0)}-second mark.`))):this.video.currentTime=w}}getVideo(){return this.video}onAdd(w){this.map||(this.map=w,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE),B.texSubImage2D(B.TEXTURE_2D,0,0,0,B.RGBA,B.UNSIGNED_BYTE,this.video)):(this.texture=new g(w,this.video,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let le=this.tiles[ee];le.state!=="loaded"&&(le.state="loaded",le.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class $t extends Gt{constructor(w,B,Q,ee){super(w,B,Q,ee),B.coordinates?Array.isArray(B.coordinates)&&B.coordinates.length===4&&!B.coordinates.some(le=>!Array.isArray(le)||le.length!==2||le.some(qe=>typeof qe!="number"))||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "coordinates"'))),B.animate&&typeof B.animate!="boolean"&&this.fire(new a.j(new a.a2(`sources.${w}`,null,'optional "animate" property must be a boolean value'))),B.canvas?typeof B.canvas=="string"||B.canvas instanceof HTMLCanvasElement||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "canvas"'))),this.options=B,this.animate=B.animate===void 0||B.animate}load(){return a._(this,void 0,void 0,function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(w){this.map=w,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let w=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,w=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,w=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let B=this.map.painter.context,Q=B.gl;this.boundsBuffer||(this.boundsBuffer=B.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?(w||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new g(B,this.canvas,Q.RGBA,{premultiply:!0});let ee=!1;for(let le in this.tiles){let qe=this.tiles[le];qe.state!=="loaded"&&(qe.state="loaded",qe.texture=this.texture,ee=!0)}ee&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let w of[this.canvas.width,this.canvas.height])if(isNaN(w)||w<=0)return!0;return!1}}let sr={},wr=ue=>{switch(ue){case"geojson":return st;case"image":return Gt;case"raster":return pt;case"raster-dem":return Wt;case"vector":return ct;case"video":return Nt;case"canvas":return $t}return sr[ue]},ur="RTLPluginLoaded";class Qe extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Ae()}_syncState(w){return this.status=w,this.dispatcher.broadcast("SRPS",{pluginStatus:w,pluginURL:this.url}).catch(B=>{throw this.status="error",B})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(w){return a._(this,arguments,void 0,function*(B,Q=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=u.resolveURL(B),!this.url)throw new Error(`requested url ${B} is invalid`);if(this.status==="unavailable"){if(!Q)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()})}_requestImport(){return a._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new a.k(ur))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let Et=null;function er(){return Et||(Et=new Qe),Et}class Ut{constructor(w,B){this.timeAdded=0,this.fadeEndTime=0,this.tileID=w,this.uid=a.a4(),this.uses=0,this.tileSize=B,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(w){let B=w+this.timeAdded;Ble.getLayer(Tt)).filter(Boolean);if(ot.length!==0){Xe.layers=ot,Xe.stateDependentLayerIds&&(Xe.stateDependentLayers=Xe.stateDependentLayerIds.map(Tt=>ot.filter(Kt=>Kt.id===Tt)[0]));for(let Tt of ot)qe[Tt.id]=Xe}}return qe}(w.buckets,B.style),this.hasSymbolBuckets=!1;for(let ee in this.buckets){let le=this.buckets[ee];if(le instanceof a.a6){if(this.hasSymbolBuckets=!0,!Q)break;le.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let ee in this.buckets){let le=this.buckets[ee];if(le instanceof a.a6&&le.hasRTLText){this.hasRTLText=!0,er().lazyLoad();break}}this.queryPadding=0;for(let ee in this.buckets){let le=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,B.style.getLayer(ee).queryRadius(le))}w.imageAtlas&&(this.imageAtlas=w.imageAtlas),w.glyphAtlasImage&&(this.glyphAtlasImage=w.glyphAtlasImage)}else this.collisionBoxArray=new a.a5}unloadVectorData(){for(let w in this.buckets)this.buckets[w].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(w){return this.buckets[w.id]}upload(w){for(let Q in this.buckets){let ee=this.buckets[Q];ee.uploadPending()&&ee.upload(w)}let B=w.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new g(w,this.imageAtlas.image,B.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new g(w,this.glyphAtlasImage,B.ALPHA),this.glyphAtlasImage=null)}prepare(w){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(w,this.imageAtlasTexture)}queryRenderedFeatures(w,B,Q,ee,le,qe,Xe,ot,Tt,Kt){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:le,scale:qe,tileSize:this.tileSize,pixelPosMatrix:Kt,transform:ot,params:Xe,queryPadding:this.queryPadding*Tt},w,B,Q):{}}querySourceFeatures(w,B){let Q=this.latestFeatureIndex;if(!Q||!Q.rawTileData)return;let ee=Q.loadVTLayers(),le=B&&B.sourceLayer?B.sourceLayer:"",qe=ee._geojsonTileLayer||ee[le];if(!qe)return;let Xe=a.a7(B&&B.filter),{z:ot,x:Tt,y:Kt}=this.tileID.canonical,Jt={z:ot,x:Tt,y:Kt};for(let xr=0;xrQ)ee=!1;else if(B)if(this.expirationTime{this.remove(w,le)},Q)),this.data[ee].push(le),this.order.push(ee),this.order.length>this.max){let qe=this._getAndRemoveByKey(this.order[0]);qe&&this.onRemove(qe)}return this}has(w){return w.wrapped().key in this.data}getAndRemove(w){return this.has(w)?this._getAndRemoveByKey(w.wrapped().key):null}_getAndRemoveByKey(w){let B=this.data[w].shift();return B.timeout&&clearTimeout(B.timeout),this.data[w].length===0&&delete this.data[w],this.order.splice(this.order.indexOf(w),1),B.value}getByKey(w){let B=this.data[w];return B?B[0].value:null}get(w){return this.has(w)?this.data[w.wrapped().key][0].value:null}remove(w,B){if(!this.has(w))return this;let Q=w.wrapped().key,ee=B===void 0?0:this.data[Q].indexOf(B),le=this.data[Q][ee];return this.data[Q].splice(ee,1),le.timeout&&clearTimeout(le.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(le.value),this.order.splice(this.order.indexOf(Q),1),this}setMaxSize(w){for(this.max=w;this.order.length>this.max;){let B=this._getAndRemoveByKey(this.order[0]);B&&this.onRemove(B)}return this}filter(w){let B=[];for(let Q in this.data)for(let ee of this.data[Q])w(ee.value)||B.push(ee);for(let Q of B)this.remove(Q.value.tileID,Q)}}class bt{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(w,B,Q){let ee=String(B);if(this.stateChanges[w]=this.stateChanges[w]||{},this.stateChanges[w][ee]=this.stateChanges[w][ee]||{},a.e(this.stateChanges[w][ee],Q),this.deletedStates[w]===null){this.deletedStates[w]={};for(let le in this.state[w])le!==ee&&(this.deletedStates[w][le]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][ee]===null){this.deletedStates[w][ee]={};for(let le in this.state[w][ee])Q[le]||(this.deletedStates[w][ee][le]=null)}else for(let le in Q)this.deletedStates[w]&&this.deletedStates[w][ee]&&this.deletedStates[w][ee][le]===null&&delete this.deletedStates[w][ee][le]}removeFeatureState(w,B,Q){if(this.deletedStates[w]===null)return;let ee=String(B);if(this.deletedStates[w]=this.deletedStates[w]||{},Q&&B!==void 0)this.deletedStates[w][ee]!==null&&(this.deletedStates[w][ee]=this.deletedStates[w][ee]||{},this.deletedStates[w][ee][Q]=null);else if(B!==void 0)if(this.stateChanges[w]&&this.stateChanges[w][ee])for(Q in this.deletedStates[w][ee]={},this.stateChanges[w][ee])this.deletedStates[w][ee][Q]=null;else this.deletedStates[w][ee]=null;else this.deletedStates[w]=null}getState(w,B){let Q=String(B),ee=a.e({},(this.state[w]||{})[Q],(this.stateChanges[w]||{})[Q]);if(this.deletedStates[w]===null)return{};if(this.deletedStates[w]){let le=this.deletedStates[w][B];if(le===null)return{};for(let qe in le)delete ee[qe]}return ee}initializeTileState(w,B){w.setFeatureState(this.state,B)}coalesceChanges(w,B){let Q={};for(let ee in this.stateChanges){this.state[ee]=this.state[ee]||{};let le={};for(let qe in this.stateChanges[ee])this.state[ee][qe]||(this.state[ee][qe]={}),a.e(this.state[ee][qe],this.stateChanges[ee][qe]),le[qe]=this.state[ee][qe];Q[ee]=le}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let le={};if(this.deletedStates[ee]===null)for(let qe in this.state[ee])le[qe]={},this.state[ee][qe]={};else for(let qe in this.deletedStates[ee]){if(this.deletedStates[ee][qe]===null)this.state[ee][qe]={};else for(let Xe of Object.keys(this.deletedStates[ee][qe]))delete this.state[ee][qe][Xe];le[qe]=this.state[ee][qe]}Q[ee]=Q[ee]||{},a.e(Q[ee],le)}if(this.stateChanges={},this.deletedStates={},Object.keys(Q).length!==0)for(let ee in w)w[ee].setFeatureState(Q,B)}}class yt extends a.E{constructor(w,B,Q){super(),this.id=w,this.dispatcher=Q,this.on("data",ee=>this._dataHandler(ee)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((ee,le,qe,Xe)=>{let ot=new(wr(le.type))(ee,le,qe,Xe);if(ot.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${ot.id}`);return ot})(w,B,Q,this),this._tiles={},this._cache=new Ft(0,ee=>this._unloadTile(ee)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new bt,this._didEmitContent=!1,this._updated=!1}onAdd(w){this.map=w,this._maxTileCacheSize=w?w._maxTileCacheSize:null,this._maxTileCacheZoomLevels=w?w._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(w)}onRemove(w){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(w)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let w in this._tiles){let B=this._tiles[w];if(B.state!=="loaded"&&B.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let w=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,w&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(w,B,Q){return a._(this,void 0,void 0,function*(){try{yield this._source.loadTile(w),this._tileLoaded(w,B,Q)}catch(ee){w.state="errored",ee.status!==404?this._source.fire(new a.j(ee,{tile:w})):this.update(this.transform,this.terrain)}})}_unloadTile(w){this._source.unloadTile&&this._source.unloadTile(w)}_abortTile(w){this._source.abortTile&&this._source.abortTile(w),this._source.fire(new a.k("dataabort",{tile:w,coord:w.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(w){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let B in this._tiles){let Q=this._tiles[B];Q.upload(w),Q.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(w=>w.tileID).sort(Yt).map(w=>w.key)}getRenderableIds(w){let B=[];for(let Q in this._tiles)this._isIdRenderable(Q,w)&&B.push(this._tiles[Q]);return w?B.sort((Q,ee)=>{let le=Q.tileID,qe=ee.tileID,Xe=new a.P(le.canonical.x,le.canonical.y)._rotate(this.transform.angle),ot=new a.P(qe.canonical.x,qe.canonical.y)._rotate(this.transform.angle);return le.overscaledZ-qe.overscaledZ||ot.y-Xe.y||ot.x-Xe.x}).map(Q=>Q.tileID.key):B.map(Q=>Q.tileID).sort(Yt).map(Q=>Q.key)}hasRenderableParent(w){let B=this.findLoadedParent(w,0);return!!B&&this._isIdRenderable(B.tileID.key)}_isIdRenderable(w,B){return this._tiles[w]&&this._tiles[w].hasData()&&!this._coveredTiles[w]&&(B||!this._tiles[w].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let w in this._tiles)this._tiles[w].state!=="errored"&&this._reloadTile(w,"reloading")}}_reloadTile(w,B){return a._(this,void 0,void 0,function*(){let Q=this._tiles[w];Q&&(Q.state!=="loading"&&(Q.state=B),yield this._loadTile(Q,w,B))})}_tileLoaded(w,B,Q){w.timeAdded=u.now(),Q==="expired"&&(w.refreshedUponExpiration=!0),this._setTileReloadTimer(B,w),this.getSource().type==="raster-dem"&&w.dem&&this._backfillDEM(w),this._state.initializeTileState(w,this.map?this.map.painter:null),w.aborted||this._source.fire(new a.k("data",{dataType:"source",tile:w,coord:w.tileID}))}_backfillDEM(w){let B=this.getRenderableIds();for(let ee=0;ee1||(Math.abs(qe)>1&&(Math.abs(qe+ot)===1?qe+=ot:Math.abs(qe-ot)===1&&(qe-=ot)),le.dem&&ee.dem&&(ee.dem.backfillBorder(le.dem,qe,Xe),ee.neighboringTiles&&ee.neighboringTiles[Tt]&&(ee.neighboringTiles[Tt].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,B,Q,ee){for(let le in this._tiles){let qe=this._tiles[le];if(ee[le]||!qe.hasData()||qe.tileID.overscaledZ<=B||qe.tileID.overscaledZ>Q)continue;let Xe=qe.tileID;for(;qe&&qe.tileID.overscaledZ>B+1;){let Tt=qe.tileID.scaledTo(qe.tileID.overscaledZ-1);qe=this._tiles[Tt.key],qe&&qe.hasData()&&(Xe=Tt)}let ot=Xe;for(;ot.overscaledZ>B;)if(ot=ot.scaledTo(ot.overscaledZ-1),w[ot.key]){ee[Xe.key]=Xe;break}}}findLoadedParent(w,B){if(w.key in this._loadedParentTiles){let Q=this._loadedParentTiles[w.key];return Q&&Q.tileID.overscaledZ>=B?Q:null}for(let Q=w.overscaledZ-1;Q>=B;Q--){let ee=w.scaledTo(Q),le=this._getLoadedTile(ee);if(le)return le}}findLoadedSibling(w){return this._getLoadedTile(w)}_getLoadedTile(w){let B=this._tiles[w.key];return B&&B.hasData()?B:this._cache.getByKey(w.wrapped().key)}updateCacheSize(w){let B=Math.ceil(w.width/this._source.tileSize)+1,Q=Math.ceil(w.height/this._source.tileSize)+1,ee=Math.floor(B*Q*(this._maxTileCacheZoomLevels===null?a.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),le=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ee):ee;this._cache.setMaxSize(le)}handleWrapJump(w){let B=Math.round((w-(this._prevLng===void 0?w:this._prevLng))/360);if(this._prevLng=w,B){let Q={};for(let ee in this._tiles){let le=this._tiles[ee];le.tileID=le.tileID.unwrapTo(le.tileID.wrap+B),Q[le.tileID.key]=le}this._tiles=Q;for(let ee in this._timers)clearTimeout(this._timers[ee]),delete this._timers[ee];for(let ee in this._tiles)this._setTileReloadTimer(ee,this._tiles[ee])}}_updateCoveredAndRetainedTiles(w,B,Q,ee,le,qe){let Xe={},ot={},Tt=Object.keys(w),Kt=u.now();for(let Jt of Tt){let xr=w[Jt],Pr=this._tiles[Jt];if(!Pr||Pr.fadeEndTime!==0&&Pr.fadeEndTime<=Kt)continue;let ve=this.findLoadedParent(xr,B),be=this.findLoadedSibling(xr),Re=ve||be||null;Re&&(this._addTile(Re.tileID),Xe[Re.tileID.key]=Re.tileID),ot[Jt]=xr}this._retainLoadedChildren(ot,ee,Q,w);for(let Jt in Xe)w[Jt]||(this._coveredTiles[Jt]=!0,w[Jt]=Xe[Jt]);if(qe){let Jt={},xr={};for(let Pr of le)this._tiles[Pr.key].hasData()?Jt[Pr.key]=Pr:xr[Pr.key]=Pr;for(let Pr in xr){let ve=xr[Pr].children(this._source.maxzoom);this._tiles[ve[0].key]&&this._tiles[ve[1].key]&&this._tiles[ve[2].key]&&this._tiles[ve[3].key]&&(Jt[ve[0].key]=w[ve[0].key]=ve[0],Jt[ve[1].key]=w[ve[1].key]=ve[1],Jt[ve[2].key]=w[ve[2].key]=ve[2],Jt[ve[3].key]=w[ve[3].key]=ve[3],delete xr[Pr])}for(let Pr in xr){let ve=xr[Pr],be=this.findLoadedParent(ve,this._source.minzoom),Re=this.findLoadedSibling(ve),Be=be||Re||null;if(Be){Jt[Be.tileID.key]=w[Be.tileID.key]=Be.tileID;for(let tt in Jt)Jt[tt].isChildOf(Be.tileID)&&delete Jt[tt]}}for(let Pr in this._tiles)Jt[Pr]||(this._coveredTiles[Pr]=!0)}}update(w,B){if(!this._sourceLoaded||this._paused)return;let Q;this.transform=w,this.terrain=B,this.updateCacheSize(w),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?Q=w.getVisibleUnwrappedCoordinates(this._source.tileID).map(Kt=>new a.S(Kt.canonical.z,Kt.wrap,Kt.canonical.z,Kt.canonical.x,Kt.canonical.y)):(Q=w.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:B}),this._source.hasTile&&(Q=Q.filter(Kt=>this._source.hasTile(Kt)))):Q=[];let ee=w.coveringZoomLevel(this._source),le=Math.max(ee-yt.maxOverzooming,this._source.minzoom),qe=Math.max(ee+yt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let Kt={};for(let Jt of Q)if(Jt.canonical.z>this._source.minzoom){let xr=Jt.scaledTo(Jt.canonical.z-1);Kt[xr.key]=xr;let Pr=Jt.scaledTo(Math.max(this._source.minzoom,Math.min(Jt.canonical.z,5)));Kt[Pr.key]=Pr}Q=Q.concat(Object.values(Kt))}let Xe=Q.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,Xe&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let ot=this._updateRetainedTiles(Q,ee);lr(this._source.type)&&this._updateCoveredAndRetainedTiles(ot,le,qe,ee,Q,B);for(let Kt in ot)this._tiles[Kt].clearFadeHold();let Tt=a.ab(this._tiles,ot);for(let Kt of Tt){let Jt=this._tiles[Kt];Jt.hasSymbolBuckets&&!Jt.holdingForFade()?Jt.setHoldDuration(this.map._fadeDuration):Jt.hasSymbolBuckets&&!Jt.symbolFadeFinished()||this._removeTile(Kt)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let w in this._tiles)this._tiles[w].holdingForFade()&&this._removeTile(w)}_updateRetainedTiles(w,B){var Q;let ee={},le={},qe=Math.max(B-yt.maxOverzooming,this._source.minzoom),Xe=Math.max(B+yt.maxUnderzooming,this._source.minzoom),ot={};for(let Tt of w){let Kt=this._addTile(Tt);ee[Tt.key]=Tt,Kt.hasData()||Bthis._source.maxzoom){let xr=Tt.children(this._source.maxzoom)[0],Pr=this.getTile(xr);if(Pr&&Pr.hasData()){ee[xr.key]=xr;continue}}else{let xr=Tt.children(this._source.maxzoom);if(ee[xr[0].key]&&ee[xr[1].key]&&ee[xr[2].key]&&ee[xr[3].key])continue}let Jt=Kt.wasRequested();for(let xr=Tt.overscaledZ-1;xr>=qe;--xr){let Pr=Tt.scaledTo(xr);if(le[Pr.key])break;if(le[Pr.key]=!0,Kt=this.getTile(Pr),!Kt&&Jt&&(Kt=this._addTile(Pr)),Kt){let ve=Kt.hasData();if((ve||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||Jt)&&(ee[Pr.key]=Pr),Jt=Kt.wasRequested(),ve)break}}}return ee}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let w in this._tiles){let B=[],Q,ee=this._tiles[w].tileID;for(;ee.overscaledZ>0;){if(ee.key in this._loadedParentTiles){Q=this._loadedParentTiles[ee.key];break}B.push(ee.key);let le=ee.scaledTo(ee.overscaledZ-1);if(Q=this._getLoadedTile(le),Q)break;ee=le}for(let le of B)this._loadedParentTiles[le]=Q}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let w in this._tiles){let B=this._tiles[w].tileID,Q=this._getLoadedTile(B);this._loadedSiblingTiles[B.key]=Q}}_addTile(w){let B=this._tiles[w.key];if(B)return B;B=this._cache.getAndRemove(w),B&&(this._setTileReloadTimer(w.key,B),B.tileID=w,this._state.initializeTileState(B,this.map?this.map.painter:null),this._cacheTimers[w.key]&&(clearTimeout(this._cacheTimers[w.key]),delete this._cacheTimers[w.key],this._setTileReloadTimer(w.key,B)));let Q=B;return B||(B=new Ut(w,this._source.tileSize*w.overscaleFactor()),this._loadTile(B,w.key,B.state)),B.uses++,this._tiles[w.key]=B,Q||this._source.fire(new a.k("dataloading",{tile:B,coord:B.tileID,dataType:"source"})),B}_setTileReloadTimer(w,B){w in this._timers&&(clearTimeout(this._timers[w]),delete this._timers[w]);let Q=B.getExpiryTimeout();Q&&(this._timers[w]=setTimeout(()=>{this._reloadTile(w,"expired"),delete this._timers[w]},Q))}_removeTile(w){let B=this._tiles[w];B&&(B.uses--,delete this._tiles[w],this._timers[w]&&(clearTimeout(this._timers[w]),delete this._timers[w]),B.uses>0||(B.hasData()&&B.state!=="reloading"?this._cache.add(B.tileID,B,B.getExpiryTimeout()):(B.aborted=!0,this._abortTile(B),this._unloadTile(B))))}_dataHandler(w){let B=w.sourceDataType;w.dataType==="source"&&B==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&w.dataType==="source"&&B==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let w in this._tiles)this._removeTile(w);this._cache.reset()}tilesIn(w,B,Q){let ee=[],le=this.transform;if(!le)return ee;let qe=Q?le.getCameraQueryGeometry(w):w,Xe=w.map(ve=>le.pointCoordinate(ve,this.terrain)),ot=qe.map(ve=>le.pointCoordinate(ve,this.terrain)),Tt=this.getIds(),Kt=1/0,Jt=1/0,xr=-1/0,Pr=-1/0;for(let ve of ot)Kt=Math.min(Kt,ve.x),Jt=Math.min(Jt,ve.y),xr=Math.max(xr,ve.x),Pr=Math.max(Pr,ve.y);for(let ve=0;ve=0&&We[1].y+tt>=0){let it=Xe.map(Ht=>Re.getTilePoint(Ht)),Dt=ot.map(Ht=>Re.getTilePoint(Ht));ee.push({tile:be,tileID:Re,queryGeometry:it,cameraQueryGeometry:Dt,scale:Be})}}return ee}getVisibleCoordinates(w){let B=this.getRenderableIds(w).map(Q=>this._tiles[Q].tileID);for(let Q of B)Q.posMatrix=this.transform.calculatePosMatrix(Q.toUnwrapped());return B}hasTransition(){if(this._source.hasTransition())return!0;if(lr(this._source.type)){let w=u.now();for(let B in this._tiles)if(this._tiles[B].fadeEndTime>=w)return!0}return!1}setFeatureState(w,B,Q){this._state.updateState(w=w||"_geojsonTileLayer",B,Q)}removeFeatureState(w,B,Q){this._state.removeFeatureState(w=w||"_geojsonTileLayer",B,Q)}getFeatureState(w,B){return this._state.getState(w=w||"_geojsonTileLayer",B)}setDependencies(w,B,Q){let ee=this._tiles[w];ee&&ee.setDependencies(B,Q)}reloadTilesForDependencies(w,B){for(let Q in this._tiles)this._tiles[Q].hasDependency(w,B)&&this._reloadTile(Q,"reloading");this._cache.filter(Q=>!Q.hasDependency(w,B))}}function Yt(ue,w){let B=Math.abs(2*ue.wrap)-+(ue.wrap<0),Q=Math.abs(2*w.wrap)-+(w.wrap<0);return ue.overscaledZ-w.overscaledZ||Q-B||w.canonical.y-ue.canonical.y||w.canonical.x-ue.canonical.x}function lr(ue){return ue==="raster"||ue==="image"||ue==="video"}yt.maxOverzooming=10,yt.maxUnderzooming=3;class Tr{constructor(w,B){this.reset(w,B)}reset(w,B){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-qe)/Xe:0;return this.points[le].mult(1-ot).add(this.points[B].mult(ot))}}function Rr(ue,w){let B=!0;return ue==="always"||ue!=="never"&&w!=="never"||(B=!1),B}class ei{constructor(w,B,Q){let ee=this.boxCells=[],le=this.circleCells=[];this.xCellCount=Math.ceil(w/Q),this.yCellCount=Math.ceil(B/Q);for(let qe=0;qethis.width||ee<0||B>this.height)return[];let ot=[];if(w<=0&&B<=0&&this.width<=Q&&this.height<=ee){if(le)return[{key:null,x1:w,y1:B,x2:Q,y2:ee}];for(let Tt=0;Tt0}hitTestCircle(w,B,Q,ee,le){let qe=w-Q,Xe=w+Q,ot=B-Q,Tt=B+Q;if(Xe<0||qe>this.width||Tt<0||ot>this.height)return!1;let Kt=[];return this._forEachCell(qe,ot,Xe,Tt,this._queryCellCircle,Kt,{hitTest:!0,overlapMode:ee,circle:{x:w,y:B,radius:Q},seenUids:{box:{},circle:{}}},le),Kt.length>0}_queryCell(w,B,Q,ee,le,qe,Xe,ot){let{seenUids:Tt,hitTest:Kt,overlapMode:Jt}=Xe,xr=this.boxCells[le];if(xr!==null){let ve=this.bboxes;for(let be of xr)if(!Tt.box[be]){Tt.box[be]=!0;let Re=4*be,Be=this.boxKeys[be];if(w<=ve[Re+2]&&B<=ve[Re+3]&&Q>=ve[Re+0]&&ee>=ve[Re+1]&&(!ot||ot(Be))&&(!Kt||!Rr(Jt,Be.overlapMode))&&(qe.push({key:Be,x1:ve[Re],y1:ve[Re+1],x2:ve[Re+2],y2:ve[Re+3]}),Kt))return!0}}let Pr=this.circleCells[le];if(Pr!==null){let ve=this.circles;for(let be of Pr)if(!Tt.circle[be]){Tt.circle[be]=!0;let Re=3*be,Be=this.circleKeys[be];if(this._circleAndRectCollide(ve[Re],ve[Re+1],ve[Re+2],w,B,Q,ee)&&(!ot||ot(Be))&&(!Kt||!Rr(Jt,Be.overlapMode))){let tt=ve[Re],We=ve[Re+1],it=ve[Re+2];if(qe.push({key:Be,x1:tt-it,y1:We-it,x2:tt+it,y2:We+it}),Kt)return!0}}}return!1}_queryCellCircle(w,B,Q,ee,le,qe,Xe,ot){let{circle:Tt,seenUids:Kt,overlapMode:Jt}=Xe,xr=this.boxCells[le];if(xr!==null){let ve=this.bboxes;for(let be of xr)if(!Kt.box[be]){Kt.box[be]=!0;let Re=4*be,Be=this.boxKeys[be];if(this._circleAndRectCollide(Tt.x,Tt.y,Tt.radius,ve[Re+0],ve[Re+1],ve[Re+2],ve[Re+3])&&(!ot||ot(Be))&&!Rr(Jt,Be.overlapMode))return qe.push(!0),!0}}let Pr=this.circleCells[le];if(Pr!==null){let ve=this.circles;for(let be of Pr)if(!Kt.circle[be]){Kt.circle[be]=!0;let Re=3*be,Be=this.circleKeys[be];if(this._circlesCollide(ve[Re],ve[Re+1],ve[Re+2],Tt.x,Tt.y,Tt.radius)&&(!ot||ot(Be))&&!Rr(Jt,Be.overlapMode))return qe.push(!0),!0}}}_forEachCell(w,B,Q,ee,le,qe,Xe,ot){let Tt=this._convertToXCellCoord(w),Kt=this._convertToYCellCoord(B),Jt=this._convertToXCellCoord(Q),xr=this._convertToYCellCoord(ee);for(let Pr=Tt;Pr<=Jt;Pr++)for(let ve=Kt;ve<=xr;ve++)if(le.call(this,w,B,Q,ee,this.xCellCount*ve+Pr,qe,Xe,ot))return}_convertToXCellCoord(w){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(w*this.xScale)))}_convertToYCellCoord(w){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(w*this.yScale)))}_circlesCollide(w,B,Q,ee,le,qe){let Xe=ee-w,ot=le-B,Tt=Q+qe;return Tt*Tt>Xe*Xe+ot*ot}_circleAndRectCollide(w,B,Q,ee,le,qe,Xe){let ot=(qe-ee)/2,Tt=Math.abs(w-(ee+ot));if(Tt>ot+Q)return!1;let Kt=(Xe-le)/2,Jt=Math.abs(B-(le+Kt));if(Jt>Kt+Q)return!1;if(Tt<=ot||Jt<=Kt)return!0;let xr=Tt-ot,Pr=Jt-Kt;return xr*xr+Pr*Pr<=Q*Q}}function Wr(ue,w,B,Q,ee){let le=a.H();return w?(a.K(le,le,[1/ee,1/ee,1]),B||a.ad(le,le,Q.angle)):a.L(le,Q.labelPlaneMatrix,ue),le}function Ur(ue,w,B,Q,ee){if(w){let le=a.ae(ue);return a.K(le,le,[ee,ee,1]),B||a.ad(le,le,-Q.angle),le}return Q.glCoordMatrix}function dt(ue,w,B,Q){let ee;Q?(ee=[ue,w,Q(ue,w),1],a.af(ee,ee,B)):(ee=[ue,w,0,1],Jr(ee,ee,B));let le=ee[3];return{point:new a.P(ee[0]/le,ee[1]/le),signedDistanceFromCamera:le,isOccluded:!1}}function Ge(ue,w){return .5+ue/w*.5}function Je(ue,w){return ue.x>=-w[0]&&ue.x<=w[0]&&ue.y>=-w[1]&&ue.y<=w[1]}function je(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve){let be=Q?ue.textSizeData:ue.iconSizeData,Re=a.ag(be,B.transform.zoom),Be=[256/B.width*2+1,256/B.height*2+1],tt=Q?ue.text.dynamicLayoutVertexArray:ue.icon.dynamicLayoutVertexArray;tt.clear();let We=ue.lineVertexArray,it=Q?ue.text.placedSymbolArray:ue.icon.placedSymbolArray,Dt=B.transform.width/B.transform.height,Ht=!1;for(let rr=0;rrMath.abs(B.x-w.x)*Q?{useVertical:!0}:(ue===a.ah.vertical?w.yB.x)?{needsFlipping:!0}:null}function Ie(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt){let Jt=B/24,xr=w.lineOffsetX*Jt,Pr=w.lineOffsetY*Jt,ve;if(w.numGlyphs>1){let be=w.glyphStartIndex+w.numGlyphs,Re=w.lineStartIndex,Be=w.lineStartIndex+w.lineLength,tt=$e(Jt,Xe,xr,Pr,Q,w,Kt,ue);if(!tt)return{notEnoughRoom:!0};let We=dt(tt.first.point.x,tt.first.point.y,qe,ue.getElevation).point,it=dt(tt.last.point.x,tt.last.point.y,qe,ue.getElevation).point;if(ee&&!Q){let Dt=wt(w.writingMode,We,it,Tt);if(Dt)return Dt}ve=[tt.first];for(let Dt=w.glyphStartIndex+1;Dt0?We.point:function(Ht,rr,dr,Sr,Or,jr){return xe(Ht,rr,dr,1,Or,jr)}(ue.tileAnchorPoint,tt,Re,0,le,ue),Dt=wt(w.writingMode,Re,it,Tt);if(Dt)return Dt}let be=pr(Jt*Xe.getoffsetX(w.glyphStartIndex),xr,Pr,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,ue,Kt);if(!be||ue.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};ve=[be]}for(let be of ve)a.aj(ot,be.point,be.angle);return{}}function xe(ue,w,B,Q,ee,le){let qe=ue.add(ue.sub(w)._unit()),Xe=ee!==void 0?dt(qe.x,qe.y,ee,le.getElevation).point:vt(qe.x,qe.y,le).point,ot=B.sub(Xe);return B.add(ot._mult(Q/ot.mag()))}function Ce(ue,w,B){let Q=w.projectionCache;if(Q.projections[ue])return Q.projections[ue];let ee=new a.P(w.lineVertexArray.getx(ue),w.lineVertexArray.gety(ue)),le=vt(ee.x,ee.y,w);if(le.signedDistanceFromCamera>0)return Q.projections[ue]=le.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||le.isOccluded,le.point;let qe=ue-B.direction;return function(Xe,ot,Tt,Kt,Jt){return xe(Xe,ot,Tt,Kt,void 0,Jt)}(B.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(qe),w.lineVertexArray.gety(qe)),ee,B.previousVertex,B.absOffsetX-B.distanceFromAnchor+1,w)}function vt(ue,w,B){let Q=ue+B.translation[0],ee=w+B.translation[1],le;return!B.pitchWithMap&&B.projection.useSpecialProjectionForSymbols?(le=B.projection.projectTileCoordinates(Q,ee,B.unwrappedTileID,B.getElevation),le.point.x=(.5*le.point.x+.5)*B.width,le.point.y=(.5*-le.point.y+.5)*B.height):(le=dt(Q,ee,B.labelPlaneMatrix,B.getElevation),le.isOccluded=!1),le}function nr(ue,w,B){return ue._unit()._perp()._mult(w*B)}function ir(ue,w,B,Q,ee,le,qe,Xe,ot){if(Xe.projectionCache.offsets[ue])return Xe.projectionCache.offsets[ue];let Tt=B.add(w);if(ue+ot.direction=ee)return Xe.projectionCache.offsets[ue]=Tt,Tt;let Kt=Ce(ue+ot.direction,Xe,ot),Jt=nr(Kt.sub(B),qe,ot.direction),xr=B.add(Jt),Pr=Kt.add(Jt);return Xe.projectionCache.offsets[ue]=a.ak(le,Tt,xr,Pr)||Tt,Xe.projectionCache.offsets[ue]}function pr(ue,w,B,Q,ee,le,qe,Xe,ot){let Tt=Q?ue-w:ue+w,Kt=Tt>0?1:-1,Jt=0;Q&&(Kt*=-1,Jt=Math.PI),Kt<0&&(Jt+=Math.PI);let xr,Pr=Kt>0?le+ee:le+ee+1;Xe.projectionCache.cachedAnchorPoint?xr=Xe.projectionCache.cachedAnchorPoint:(xr=vt(Xe.tileAnchorPoint.x,Xe.tileAnchorPoint.y,Xe).point,Xe.projectionCache.cachedAnchorPoint=xr);let ve,be,Re=xr,Be=xr,tt=0,We=0,it=Math.abs(Tt),Dt=[],Ht;for(;tt+We<=it;){if(Pr+=Kt,Pr=qe)return null;tt+=We,Be=Re,be=ve;let Sr={absOffsetX:it,direction:Kt,distanceFromAnchor:tt,previousVertex:Be};if(Re=Ce(Pr,Xe,Sr),B===0)Dt.push(Be),Ht=Re.sub(Be);else{let Or,jr=Re.sub(Be);Or=jr.mag()===0?nr(Ce(Pr+Kt,Xe,Sr).sub(Re),B,Kt):nr(jr,B,Kt),be||(be=Be.add(Or)),ve=ir(Pr,Or,Re,le,qe,be,B,Xe,Sr),Dt.push(be),Ht=ve.sub(be)}We=Ht.mag()}let rr=Ht._mult((it-tt)/We)._add(be||Be),dr=Jt+Math.atan2(Re.y-Be.y,Re.x-Be.x);return Dt.push(rr),{point:rr,angle:ot?dr:0,path:Dt}}let oi=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function di(ue,w){for(let B=0;B=1;fa--)In.push(un.path[fa]);for(let fa=1;fa$a.signedDistanceFromCamera<=0)?[]:fa.map($a=>$a.point)}let Ta=[];if(In.length>0){let fa=In[0].clone(),$a=In[0].clone();for(let ko=1;ko=jr.x&&$a.x<=ii.x&&fa.y>=jr.y&&$a.y<=ii.y?[In]:$a.xii.x||$a.yii.y?[]:a.al([In],jr.x,jr.y,ii.x,ii.y)}for(let fa of Ta){Li.reset(fa,.25*Or);let $a=0;$a=Li.length<=.5*Or?1:Math.ceil(Li.paddedLength/Kn)+1;for(let ko=0;ko<$a;ko++){let Qa=ko/Math.max($a-1,1),mo=Li.lerp(Qa),Bo=mo.x+fi,Is=mo.y+fi;Be.push(Bo,Is,Or,0);let As=Bo-Or,wo=Is-Or,To=Bo+Or,dl=Is+Or;if(Sr=Sr&&this.isOffscreen(As,wo,To,dl),dr=dr||this.isInsideGrid(As,wo,To,dl),w!=="always"&&this.grid.hitTestCircle(Bo,Is,Or,w,xr)&&(rr=!0,!Kt))return{circles:[],offscreen:!1,collisionDetected:rr}}}}return{circles:!Kt&&rr||!dr||Wedt(ee.x,ee.y,Q,B.getElevation))}queryRenderedSymbols(w){if(w.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let B=[],Q=1/0,ee=1/0,le=-1/0,qe=-1/0;for(let Kt of w){let Jt=new a.P(Kt.x+fi,Kt.y+fi);Q=Math.min(Q,Jt.x),ee=Math.min(ee,Jt.y),le=Math.max(le,Jt.x),qe=Math.max(qe,Jt.y),B.push(Jt)}let Xe=this.grid.query(Q,ee,le,qe).concat(this.ignoredGrid.query(Q,ee,le,qe)),ot={},Tt={};for(let Kt of Xe){let Jt=Kt.key;if(ot[Jt.bucketInstanceId]===void 0&&(ot[Jt.bucketInstanceId]={}),ot[Jt.bucketInstanceId][Jt.featureIndex])continue;let xr=[new a.P(Kt.x1,Kt.y1),new a.P(Kt.x2,Kt.y1),new a.P(Kt.x2,Kt.y2),new a.P(Kt.x1,Kt.y2)];a.am(B,xr)&&(ot[Jt.bucketInstanceId][Jt.featureIndex]=!0,Tt[Jt.bucketInstanceId]===void 0&&(Tt[Jt.bucketInstanceId]=[]),Tt[Jt.bucketInstanceId].push(Jt.featureIndex))}return Tt}insertCollisionBox(w,B,Q,ee,le,qe){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:le,collisionGroupID:qe,overlapMode:B},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,B,Q,ee,le,qe){let Xe=Q?this.ignoredGrid:this.grid,ot={bucketInstanceId:ee,featureIndex:le,collisionGroupID:qe,overlapMode:B};for(let Tt=0;Tt=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,B,Q,ee){return Q>=0&&w=0&&Bthis.projectAndGetPerspectiveRatio(Q,Or.x,Or.y,ee,Tt));dr=Sr.some(Or=>!Or.isOccluded),rr=Sr.map(Or=>Or.point)}else dr=!0;return{box:a.ao(rr),allPointsOccluded:!dr}}}function Pn(ue,w,B){return w*(a.X/(ue.tileSize*Math.pow(2,B-ue.tileID.overscaledZ)))}class wn{constructor(w,B,Q,ee){this.opacity=w?Math.max(0,Math.min(1,w.opacity+(w.placed?B:-B))):ee&&Q?1:0,this.placed=Q}isHidden(){return this.opacity===0&&!this.placed}}class pn{constructor(w,B,Q,ee,le){this.text=new wn(w?w.text:null,B,Q,le),this.icon=new wn(w?w.icon:null,B,ee,le)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Vn{constructor(w,B,Q){this.text=w,this.icon=B,this.skipFade=Q}}class kn{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class ea{constructor(w,B,Q,ee,le){this.bucketInstanceId=w,this.featureIndex=B,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=le}}class ua{constructor(w){this.crossSourceCollisions=w,this.maxGroupID=0,this.collisionGroups={}}get(w){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[w]){let B=++this.maxGroupID;this.collisionGroups[w]={ID:B,predicate:Q=>Q.collisionGroupID===B}}return this.collisionGroups[w]}}function Vt(ue,w,B,Q,ee){let{horizontalAlign:le,verticalAlign:qe}=a.au(ue);return new a.P(-(le-.5)*w+Q[0]*ee,-(qe-.5)*B+Q[1]*ee)}class _t{constructor(w,B,Q,ee,le,qe){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new Hi(this.transform,B),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new ua(le),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=qe,qe&&(qe.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(w){let B=this.terrain;return B?(Q,ee)=>B.getElevation(w,Q,ee):null}getBucketParts(w,B,Q,ee){let le=Q.getBucket(B),qe=Q.latestFeatureIndex;if(!le||!qe||B.id!==le.layerIds[0])return;let Xe=Q.collisionBoxArray,ot=le.layers[0].layout,Tt=le.layers[0].paint,Kt=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),Jt=Q.tileSize/a.X,xr=Q.tileID.toUnwrapped(),Pr=this.transform.calculatePosMatrix(xr),ve=ot.get("text-pitch-alignment")==="map",be=ot.get("text-rotation-alignment")==="map",Re=Pn(Q,1,this.transform.zoom),Be=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Tt.get("text-translate"),Tt.get("text-translate-anchor")),tt=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Tt.get("icon-translate"),Tt.get("icon-translate-anchor")),We=Wr(Pr,ve,be,this.transform,Re),it=null;if(ve){let Ht=Ur(Pr,ve,be,this.transform,Re);it=a.L([],this.transform.labelPlaneMatrix,Ht)}this.retainedQueryData[le.bucketInstanceId]=new ea(le.bucketInstanceId,qe,le.sourceLayerIndex,le.index,Q.tileID);let Dt={bucket:le,layout:ot,translationText:Be,translationIcon:tt,posMatrix:Pr,unwrappedTileID:xr,textLabelPlaneMatrix:We,labelToScreenMatrix:it,scale:Kt,textPixelRatio:Jt,holdingForFade:Q.holdingForFade(),collisionBoxArray:Xe,partiallyEvaluatedTextSize:a.ag(le.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(le.sourceID)};if(ee)for(let Ht of le.sortKeyRanges){let{sortKey:rr,symbolInstanceStart:dr,symbolInstanceEnd:Sr}=Ht;w.push({sortKey:rr,symbolInstanceStart:dr,symbolInstanceEnd:Sr,parameters:Dt})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:le.symbolInstances.length,parameters:Dt})}attemptAnchorPlacement(w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve,be,Re,Be,tt,We){let it=a.aq[w.textAnchor],Dt=[w.textOffset0,w.textOffset1],Ht=Vt(it,Q,ee,Dt,le),rr=this.collisionIndex.placeCollisionBox(B,xr,ot,Tt,Kt,Xe,qe,Re,Jt.predicate,We,Ht);if((!tt||this.collisionIndex.placeCollisionBox(tt,xr,ot,Tt,Kt,Xe,qe,Be,Jt.predicate,We,Ht).placeable)&&rr.placeable){let dr;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Pr.crossTileID]&&this.prevPlacement.placements[Pr.crossTileID]&&this.prevPlacement.placements[Pr.crossTileID].text&&(dr=this.prevPlacement.variableOffsets[Pr.crossTileID].anchor),Pr.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Pr.crossTileID]={textOffset:Dt,width:Q,height:ee,anchor:it,textBoxScale:le,prevAnchor:dr},this.markUsedJustification(ve,it,Pr,be),ve.allowVerticalPlacement&&(this.markUsedOrientation(ve,be,Pr),this.placedOrientations[Pr.crossTileID]=be),{shift:Ht,placedGlyphBoxes:rr}}}placeLayerBucketPart(w,B,Q){let{bucket:ee,layout:le,translationText:qe,translationIcon:Xe,posMatrix:ot,unwrappedTileID:Tt,textLabelPlaneMatrix:Kt,labelToScreenMatrix:Jt,textPixelRatio:xr,holdingForFade:Pr,collisionBoxArray:ve,partiallyEvaluatedTextSize:be,collisionGroup:Re}=w.parameters,Be=le.get("text-optional"),tt=le.get("icon-optional"),We=a.ar(le,"text-overlap","text-allow-overlap"),it=We==="always",Dt=a.ar(le,"icon-overlap","icon-allow-overlap"),Ht=Dt==="always",rr=le.get("text-rotation-alignment")==="map",dr=le.get("text-pitch-alignment")==="map",Sr=le.get("icon-text-fit")!=="none",Or=le.get("symbol-z-order")==="viewport-y",jr=it&&(Ht||!ee.hasIconData()||tt),ii=Ht&&(it||!ee.hasTextData()||Be);!ee.collisionArrays&&ve&&ee.deserializeCollisionBoxes(ve);let Li=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),un=(sn,In,Kn)=>{var Ta,fa;if(B[sn.crossTileID])return;if(Pr)return void(this.placements[sn.crossTileID]=new Vn(!1,!1,!1));let $a=!1,ko=!1,Qa=!0,mo=null,Bo={box:null,placeable:!1,offscreen:null},Is={box:null,placeable:!1,offscreen:null},As=null,wo=null,To=null,dl=0,Ul=0,Lu=0;In.textFeatureIndex?dl=In.textFeatureIndex:sn.useRuntimeCollisionCircles&&(dl=sn.featureIndex),In.verticalTextFeatureIndex&&(Ul=In.verticalTextFeatureIndex);let au=In.textBox;if(au){let Al=Te=>{let Ne=a.ah.horizontal;if(ee.allowVerticalPlacement&&!Te&&this.prevPlacement){let He=this.prevPlacement.placedOrientations[sn.crossTileID];He&&(this.placedOrientations[sn.crossTileID]=He,Ne=He,this.markUsedOrientation(ee,Ne,sn))}return Ne},Sl=(Te,Ne)=>{if(ee.allowVerticalPlacement&&sn.numVerticalGlyphVertices>0&&In.verticalTextBox){for(let He of ee.writingModes)if(He===a.ah.vertical?(Bo=Ne(),Is=Bo):Bo=Te(),Bo&&Bo.placeable)break}else Bo=Te()},X=sn.textAnchorOffsetStartIndex,se=sn.textAnchorOffsetEndIndex;if(se===X){let Te=(Ne,He)=>{let Ye=this.collisionIndex.placeCollisionBox(Ne,We,xr,ot,Tt,dr,rr,qe,Re.predicate,Li);return Ye&&Ye.placeable&&(this.markUsedOrientation(ee,He,sn),this.placedOrientations[sn.crossTileID]=He),Ye};Sl(()=>Te(au,a.ah.horizontal),()=>{let Ne=In.verticalTextBox;return ee.allowVerticalPlacement&&sn.numVerticalGlyphVertices>0&&Ne?Te(Ne,a.ah.vertical):{box:null,offscreen:null}}),Al(Bo&&Bo.placeable)}else{let Te=a.aq[(fa=(Ta=this.prevPlacement)===null||Ta===void 0?void 0:Ta.variableOffsets[sn.crossTileID])===null||fa===void 0?void 0:fa.anchor],Ne=(Ye,Ct,nt)=>{let jt=Ye.x2-Ye.x1,gr=Ye.y2-Ye.y1,yr=sn.textBoxScale,Gr=Sr&&Dt==="never"?Ct:null,qr=null,_i=We==="never"?1:2,bi="never";Te&&_i++;for(let Xr=0;Xr<_i;Xr++){for(let ni=X;niNe(au,In.iconBox,a.ah.horizontal),()=>{let Ye=In.verticalTextBox;return ee.allowVerticalPlacement&&(!Bo||!Bo.placeable)&&sn.numVerticalGlyphVertices>0&&Ye?Ne(Ye,In.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),Bo&&($a=Bo.placeable,Qa=Bo.offscreen);let He=Al(Bo&&Bo.placeable);if(!$a&&this.prevPlacement){let Ye=this.prevPlacement.variableOffsets[sn.crossTileID];Ye&&(this.variableOffsets[sn.crossTileID]=Ye,this.markUsedJustification(ee,Ye.anchor,sn,He))}}}if(As=Bo,$a=As&&As.placeable,Qa=As&&As.offscreen,sn.useRuntimeCollisionCircles){let Al=ee.text.placedSymbolArray.get(sn.centerJustifiedTextSymbolIndex),Sl=a.ai(ee.textSizeData,be,Al),X=le.get("text-padding");wo=this.collisionIndex.placeCollisionCircles(We,Al,ee.lineVertexArray,ee.glyphOffsetArray,Sl,ot,Tt,Kt,Jt,Q,dr,Re.predicate,sn.collisionCircleDiameter,X,qe,Li),wo.circles.length&&wo.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),$a=it||wo.circles.length>0&&!wo.collisionDetected,Qa=Qa&&wo.offscreen}if(In.iconFeatureIndex&&(Lu=In.iconFeatureIndex),In.iconBox){let Al=Sl=>this.collisionIndex.placeCollisionBox(Sl,Dt,xr,ot,Tt,dr,rr,Xe,Re.predicate,Li,Sr&&mo?mo:void 0);Is&&Is.placeable&&In.verticalIconBox?(To=Al(In.verticalIconBox),ko=To.placeable):(To=Al(In.iconBox),ko=To.placeable),Qa=Qa&&To.offscreen}let $s=Be||sn.numHorizontalGlyphVertices===0&&sn.numVerticalGlyphVertices===0,Ql=tt||sn.numIconVertices===0;$s||Ql?Ql?$s||(ko=ko&&$a):$a=ko&&$a:ko=$a=ko&&$a;let dc=ko&&To.placeable;if($a&&As.placeable&&this.collisionIndex.insertCollisionBox(As.box,We,le.get("text-ignore-placement"),ee.bucketInstanceId,Is&&Is.placeable&&Ul?Ul:dl,Re.ID),dc&&this.collisionIndex.insertCollisionBox(To.box,Dt,le.get("icon-ignore-placement"),ee.bucketInstanceId,Lu,Re.ID),wo&&$a&&this.collisionIndex.insertCollisionCircles(wo.circles,We,le.get("text-ignore-placement"),ee.bucketInstanceId,dl,Re.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Kn,In,As,To,wo),sn.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(ee.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[sn.crossTileID]=new Vn($a||jr,ko||ii,Qa||ee.justReloaded),B[sn.crossTileID]=!0};if(Or){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let sn=ee.getSortedSymbolIndexes(this.transform.angle);for(let In=sn.length-1;In>=0;--In){let Kn=sn[In];un(ee.symbolInstances.get(Kn),ee.collisionArrays[Kn],Kn)}}else for(let sn=w.symbolInstanceStart;sn=0&&(w.text.placedSymbolArray.get(Xe).crossTileID=le>=0&&Xe!==le?0:Q.crossTileID)}markUsedOrientation(w,B,Q){let ee=B===a.ah.horizontal||B===a.ah.horizontalOnly?B:0,le=B===a.ah.vertical?B:0,qe=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let Xe of qe)w.text.placedSymbolArray.get(Xe).placedOrientation=ee;Q.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(Q.verticalPlacedTextSymbolIndex).placedOrientation=le)}commit(w){this.commitTime=w,this.zoomAtLastRecencyCheck=this.transform.zoom;let B=this.prevPlacement,Q=!1;this.prevZoomAdjustment=B?B.zoomAdjustment(this.transform.zoom):0;let ee=B?B.symbolFadeChange(w):1,le=B?B.opacities:{},qe=B?B.variableOffsets:{},Xe=B?B.placedOrientations:{};for(let ot in this.placements){let Tt=this.placements[ot],Kt=le[ot];Kt?(this.opacities[ot]=new pn(Kt,ee,Tt.text,Tt.icon),Q=Q||Tt.text!==Kt.text.placed||Tt.icon!==Kt.icon.placed):(this.opacities[ot]=new pn(null,ee,Tt.text,Tt.icon,Tt.skipFade),Q=Q||Tt.text||Tt.icon)}for(let ot in le){let Tt=le[ot];if(!this.opacities[ot]){let Kt=new pn(Tt,ee,!1,!1);Kt.isHidden()||(this.opacities[ot]=Kt,Q=Q||Tt.text.placed||Tt.icon.placed)}}for(let ot in qe)this.variableOffsets[ot]||!this.opacities[ot]||this.opacities[ot].isHidden()||(this.variableOffsets[ot]=qe[ot]);for(let ot in Xe)this.placedOrientations[ot]||!this.opacities[ot]||this.opacities[ot].isHidden()||(this.placedOrientations[ot]=Xe[ot]);if(B&&B.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");Q?this.lastPlacementChangeTime=w:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=B?B.lastPlacementChangeTime:w)}updateLayerOpacities(w,B){let Q={};for(let ee of B){let le=ee.getBucket(w);le&&ee.latestFeatureIndex&&w.id===le.layerIds[0]&&this.updateBucketOpacities(le,ee.tileID,Q,ee.collisionBoxArray)}}updateBucketOpacities(w,B,Q,ee){w.hasTextData()&&(w.text.opacityVertexArray.clear(),w.text.hasVisibleVertices=!1),w.hasIconData()&&(w.icon.opacityVertexArray.clear(),w.icon.hasVisibleVertices=!1),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexArray.clear(),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexArray.clear();let le=w.layers[0],qe=le.layout,Xe=new pn(null,0,!1,!1,!0),ot=qe.get("text-allow-overlap"),Tt=qe.get("icon-allow-overlap"),Kt=le._unevaluatedLayout.hasValue("text-variable-anchor")||le._unevaluatedLayout.hasValue("text-variable-anchor-offset"),Jt=qe.get("text-rotation-alignment")==="map",xr=qe.get("text-pitch-alignment")==="map",Pr=qe.get("icon-text-fit")!=="none",ve=new pn(null,0,ot&&(Tt||!w.hasIconData()||qe.get("icon-optional")),Tt&&(ot||!w.hasTextData()||qe.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let be=(Be,tt,We)=>{for(let it=0;it0,dr=this.placedOrientations[tt.crossTileID],Sr=dr===a.ah.vertical,Or=dr===a.ah.horizontal||dr===a.ah.horizontalOnly;if(We>0||it>0){let ii=en(Ht.text);be(w.text,We,Sr?cn:ii),be(w.text,it,Or?cn:ii);let Li=Ht.text.isHidden();[tt.rightJustifiedTextSymbolIndex,tt.centerJustifiedTextSymbolIndex,tt.leftJustifiedTextSymbolIndex].forEach(In=>{In>=0&&(w.text.placedSymbolArray.get(In).hidden=Li||Sr?1:0)}),tt.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(tt.verticalPlacedTextSymbolIndex).hidden=Li||Or?1:0);let un=this.variableOffsets[tt.crossTileID];un&&this.markUsedJustification(w,un.anchor,tt,dr);let sn=this.placedOrientations[tt.crossTileID];sn&&(this.markUsedJustification(w,"left",tt,sn),this.markUsedOrientation(w,sn,tt))}if(rr){let ii=en(Ht.icon),Li=!(Pr&&tt.verticalPlacedIconSymbolIndex&&Sr);tt.placedIconSymbolIndex>=0&&(be(w.icon,tt.numIconVertices,Li?ii:cn),w.icon.placedSymbolArray.get(tt.placedIconSymbolIndex).hidden=Ht.icon.isHidden()),tt.verticalPlacedIconSymbolIndex>=0&&(be(w.icon,tt.numVerticalIconVertices,Li?cn:ii),w.icon.placedSymbolArray.get(tt.verticalPlacedIconSymbolIndex).hidden=Ht.icon.isHidden())}let jr=Re&&Re.has(Be)?Re.get(Be):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let ii=w.collisionArrays[Be];if(ii){let Li=new a.P(0,0);if(ii.textBox||ii.verticalTextBox){let un=!0;if(Kt){let sn=this.variableOffsets[Dt];sn?(Li=Vt(sn.anchor,sn.width,sn.height,sn.textOffset,sn.textBoxScale),Jt&&Li._rotate(xr?this.transform.angle:-this.transform.angle)):un=!1}if(ii.textBox||ii.verticalTextBox){let sn;ii.textBox&&(sn=Sr),ii.verticalTextBox&&(sn=Or),tr(w.textCollisionBox.collisionVertexArray,Ht.text.placed,!un||sn,jr.text,Li.x,Li.y)}}if(ii.iconBox||ii.verticalIconBox){let un=!!(!Or&&ii.verticalIconBox),sn;ii.iconBox&&(sn=un),ii.verticalIconBox&&(sn=!un),tr(w.iconCollisionBox.collisionVertexArray,Ht.icon.placed,sn,jr.icon,Pr?Li.x:0,Pr?Li.y:0)}}}}if(w.sortFeatures(this.transform.angle),this.retainedQueryData[w.bucketInstanceId]&&(this.retainedQueryData[w.bucketInstanceId].featureSortOrder=w.featureSortOrder),w.hasTextData()&&w.text.opacityVertexBuffer&&w.text.opacityVertexBuffer.updateData(w.text.opacityVertexArray),w.hasIconData()&&w.icon.opacityVertexBuffer&&w.icon.opacityVertexBuffer.updateData(w.icon.opacityVertexArray),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexBuffer&&w.iconCollisionBox.collisionVertexBuffer.updateData(w.iconCollisionBox.collisionVertexArray),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexBuffer&&w.textCollisionBox.collisionVertexBuffer.updateData(w.textCollisionBox.collisionVertexArray),w.text.opacityVertexArray.length!==w.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${w.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${w.text.layoutVertexArray.length}) / 4`);if(w.icon.opacityVertexArray.length!==w.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${w.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${w.icon.layoutVertexArray.length}) / 4`);if(w.bucketInstanceId in this.collisionCircleArrays){let Be=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=Be.invProjMatrix,w.placementViewportMatrix=Be.viewportMatrix,w.collisionCircleArray=Be.circles,delete this.collisionCircleArrays[w.bucketInstanceId]}}symbolFadeChange(w){return this.fadeDuration===0?1:(w-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(w){return Math.max(0,(this.transform.zoom-w)/1.5)}hasTransitions(w){return this.stale||w-this.lastPlacementChangeTimew}setStale(){this.stale=!0}}function tr(ue,w,B,Q,ee,le){Q&&Q.length!==0||(Q=[0,0,0,0]);let qe=Q[0]-fi,Xe=Q[1]-fi,ot=Q[2]-fi,Tt=Q[3]-fi;ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,qe,Xe),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,ot,Xe),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,ot,Tt),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,qe,Tt)}let ar=Math.pow(2,25),Er=Math.pow(2,24),Zr=Math.pow(2,17),ri=Math.pow(2,16),$r=Math.pow(2,9),zi=Math.pow(2,8),Ji=Math.pow(2,1);function en(ue){if(ue.opacity===0&&!ue.placed)return 0;if(ue.opacity===1&&ue.placed)return 4294967295;let w=ue.placed?1:0,B=Math.floor(127*ue.opacity);return B*ar+w*Er+B*Zr+w*ri+B*$r+w*zi+B*Ji+w}let cn=0;function yn(){return{isOccluded:(ue,w,B)=>!1,getPitchedTextCorrection:(ue,w,B)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(ue,w,B,Q){throw new Error("Not implemented.")},translatePosition:(ue,w,B,Q)=>function(ee,le,qe,Xe,ot=!1){if(!qe[0]&&!qe[1])return[0,0];let Tt=ot?Xe==="map"?ee.angle:0:Xe==="viewport"?-ee.angle:0;if(Tt){let Kt=Math.sin(Tt),Jt=Math.cos(Tt);qe=[qe[0]*Jt-qe[1]*Kt,qe[0]*Kt+qe[1]*Jt]}return[ot?qe[0]:Pn(le,qe[0],ee.zoom),ot?qe[1]:Pn(le,qe[1],ee.zoom)]}(ue,w,B,Q),getCircleRadiusCorrection:ue=>1}}class Mn{constructor(w){this._sortAcrossTiles=w.layout.get("symbol-z-order")!=="viewport-y"&&!w.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(w,B,Q,ee,le){let qe=this._bucketParts;for(;this._currentTileIndexXe.sortKey-ot.sortKey));this._currentPartIndex!this._forceFullPlacement&&u.now()-ee>2;for(;this._currentPlacementIndex>=0;){let qe=B[w[this._currentPlacementIndex]],Xe=this.placement.collisionIndex.transform.zoom;if(qe.type==="symbol"&&(!qe.minzoom||qe.minzoom<=Xe)&&(!qe.maxzoom||qe.maxzoom>Xe)){if(this._inProgressLayer||(this._inProgressLayer=new Mn(qe)),this._inProgressLayer.continuePlacement(Q[qe.source],this.placement,this._showCollisionBoxes,qe,le))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(w){return this.placement.commit(w),this.placement}}let la=512/a.X/2;class ma{constructor(w,B,Q){this.tileID=w,this.bucketInstanceId=Q,this._symbolsByKey={};let ee=new Map;for(let le=0;le({x:Math.floor(ot.anchorX*la),y:Math.floor(ot.anchorY*la)})),crossTileIDs:qe.map(ot=>ot.crossTileID)};if(Xe.positions.length>128){let ot=new a.av(Xe.positions.length,16,Uint16Array);for(let{x:Tt,y:Kt}of Xe.positions)ot.add(Tt,Kt);ot.finish(),delete Xe.positions,Xe.index=ot}this._symbolsByKey[le]=Xe}}getScaledCoordinates(w,B){let{x:Q,y:ee,z:le}=this.tileID.canonical,{x:qe,y:Xe,z:ot}=B.canonical,Tt=la/Math.pow(2,ot-le),Kt=(Xe*a.X+w.anchorY)*Tt,Jt=ee*a.X*la;return{x:Math.floor((qe*a.X+w.anchorX)*Tt-Q*a.X*la),y:Math.floor(Kt-Jt)}}findMatches(w,B,Q){let ee=this.tileID.canonical.zw)}}class Wa{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Fa{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(w){let B=Math.round((w-this.lng)/360);if(B!==0)for(let Q in this.indexes){let ee=this.indexes[Q],le={};for(let qe in ee){let Xe=ee[qe];Xe.tileID=Xe.tileID.unwrapTo(Xe.tileID.wrap+B),le[Xe.tileID.key]=Xe}this.indexes[Q]=le}this.lng=w}addBucket(w,B,Q){if(this.indexes[w.overscaledZ]&&this.indexes[w.overscaledZ][w.key]){if(this.indexes[w.overscaledZ][w.key].bucketInstanceId===B.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(w.overscaledZ,this.indexes[w.overscaledZ][w.key])}for(let le=0;lew.overscaledZ)for(let Xe in qe){let ot=qe[Xe];ot.tileID.isChildOf(w)&&ot.findMatches(B.symbolInstances,w,ee)}else{let Xe=qe[w.scaledTo(Number(le)).key];Xe&&Xe.findMatches(B.symbolInstances,w,ee)}}for(let le=0;le{B[Q]=!0});for(let Q in this.layerIndexes)B[Q]||delete this.layerIndexes[Q]}}let da=(ue,w)=>a.t(ue,w&&w.filter(B=>B.identifier!=="source.canvas")),Wn=a.aw();class Ga extends a.E{constructor(w,B={}){super(),this._rtlPluginLoaded=()=>{for(let Q in this.sourceCaches){let ee=this.sourceCaches[Q].getSource().type;ee!=="vector"&&ee!=="geojson"||this.sourceCaches[Q].reload()}},this.map=w,this.dispatcher=new Le(Se(),w._getMapId()),this.dispatcher.registerMessageHandler("GG",(Q,ee)=>this.getGlyphs(Q,ee)),this.dispatcher.registerMessageHandler("GI",(Q,ee)=>this.getImages(Q,ee)),this.imageManager=new T,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,B.localIdeographFontFamily),this.lineAtlas=new oe(256,512),this.crossTileSymbolIndex=new Wo,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new a.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",a.ay()),er().on(ur,this._rtlPluginLoaded),this.on("data",Q=>{if(Q.dataType!=="source"||Q.sourceDataType!=="metadata")return;let ee=this.sourceCaches[Q.sourceId];if(!ee)return;let le=ee.getSource();if(le&&le.vectorLayerIds)for(let qe in this._layers){let Xe=this._layers[qe];Xe.source===le.id&&this._validateLayer(Xe)}})}loadURL(w,B={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),B.validate=typeof B.validate!="boolean"||B.validate;let ee=this.map._requestManager.transformRequest(w,"Style");this._loadStyleRequest=new AbortController;let le=this._loadStyleRequest;a.h(ee,this._loadStyleRequest).then(qe=>{this._loadStyleRequest=null,this._load(qe.data,B,Q)}).catch(qe=>{this._loadStyleRequest=null,qe&&!le.signal.aborted&&this.fire(new a.j(qe))})}loadJSON(w,B={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,B.validate=B.validate!==!1,this._load(w,B,Q)}).catch(()=>{})}loadEmpty(){this.fire(new a.k("dataloading",{dataType:"style"})),this._load(Wn,{validate:!1})}_load(w,B,Q){var ee;let le=B.transformStyle?B.transformStyle(Q,w):w;if(!B.validate||!da(this,a.u(le))){this._loaded=!0,this.stylesheet=le;for(let qe in le.sources)this.addSource(qe,le.sources[qe],{validate:!1});le.sprite?this._loadSprite(le.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(le.glyphs),this._createLayers(),this.light=new N(this.stylesheet.light),this.sky=new re(this.stylesheet.sky),this.map.setTerrain((ee=this.stylesheet.terrain)!==null&&ee!==void 0?ee:null),this.fire(new a.k("data",{dataType:"style"})),this.fire(new a.k("style.load"))}}_createLayers(){let w=a.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",w),this._order=w.map(B=>B.id),this._layers={},this._serializedLayers=null;for(let B of w){let Q=a.aA(B);Q.setEventedParent(this,{layer:{id:B.id}}),this._layers[B.id]=Q}}_loadSprite(w,B=!1,Q=void 0){let ee;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(le,qe,Xe,ot){return a._(this,void 0,void 0,function*(){let Tt=k(le),Kt=Xe>1?"@2x":"",Jt={},xr={};for(let{id:Pr,url:ve}of Tt){let be=qe.transformRequest(M(ve,Kt,".json"),"SpriteJSON");Jt[Pr]=a.h(be,ot);let Re=qe.transformRequest(M(ve,Kt,".png"),"SpriteImage");xr[Pr]=p.getImage(Re,ot)}return yield Promise.all([...Object.values(Jt),...Object.values(xr)]),function(Pr,ve){return a._(this,void 0,void 0,function*(){let be={};for(let Re in Pr){be[Re]={};let Be=u.getImageCanvasContext((yield ve[Re]).data),tt=(yield Pr[Re]).data;for(let We in tt){let{width:it,height:Dt,x:Ht,y:rr,sdf:dr,pixelRatio:Sr,stretchX:Or,stretchY:jr,content:ii,textFitWidth:Li,textFitHeight:un}=tt[We];be[Re][We]={data:null,pixelRatio:Sr,sdf:dr,stretchX:Or,stretchY:jr,content:ii,textFitWidth:Li,textFitHeight:un,spriteData:{width:it,height:Dt,x:Ht,y:rr,context:Be}}}}return be})}(Jt,xr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(le=>{if(this._spriteRequest=null,le)for(let qe in le){this._spritesImagesIds[qe]=[];let Xe=this._spritesImagesIds[qe]?this._spritesImagesIds[qe].filter(ot=>!(ot in le)):[];for(let ot of Xe)this.imageManager.removeImage(ot),this._changedImages[ot]=!0;for(let ot in le[qe]){let Tt=qe==="default"?ot:`${qe}:${ot}`;this._spritesImagesIds[qe].push(Tt),Tt in this.imageManager.images?this.imageManager.updateImage(Tt,le[qe][ot],!1):this.imageManager.addImage(Tt,le[qe][ot]),B&&(this._changedImages[Tt]=!0)}}}).catch(le=>{this._spriteRequest=null,ee=le,this.fire(new a.j(ee))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),B&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"})),Q&&Q(ee)})}_unloadSprite(){for(let w of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(w),this._changedImages[w]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}_validateLayer(w){let B=this.sourceCaches[w.source];if(!B)return;let Q=w.sourceLayer;if(!Q)return;let ee=B.getSource();(ee.type==="geojson"||ee.vectorLayerIds&&ee.vectorLayerIds.indexOf(Q)===-1)&&this.fire(new a.j(new Error(`Source layer "${Q}" does not exist on source "${ee.id}" as specified by style layer "${w.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let w in this.sourceCaches)if(!this.sourceCaches[w].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(w,B=!1){let Q=this._serializedAllLayers();if(!w||w.length===0)return Object.values(B?a.aB(Q):Q);let ee=[];for(let le of w)if(Q[le]){let qe=B?a.aB(Q[le]):Q[le];ee.push(qe)}return ee}_serializedAllLayers(){let w=this._serializedLayers;if(w)return w;w=this._serializedLayers={};let B=Object.keys(this._layers);for(let Q of B){let ee=this._layers[Q];ee.type!=="custom"&&(w[Q]=ee.serialize())}return w}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let w in this.sourceCaches)if(this.sourceCaches[w].hasTransition())return!0;for(let w in this._layers)if(this._layers[w].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(w){if(!this._loaded)return;let B=this._changed;if(B){let ee=Object.keys(this._updatedLayers),le=Object.keys(this._removedLayers);(ee.length||le.length)&&this._updateWorkerLayers(ee,le);for(let qe in this._updatedSources){let Xe=this._updatedSources[qe];if(Xe==="reload")this._reloadSource(qe);else{if(Xe!=="clear")throw new Error(`Invalid action ${Xe}`);this._clearSource(qe)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let qe in this._updatedPaintProps)this._layers[qe].updateTransitions(w);this.light.updateTransitions(w),this.sky.updateTransitions(w),this._resetUpdates()}let Q={};for(let ee in this.sourceCaches){let le=this.sourceCaches[ee];Q[ee]=le.used,le.used=!1}for(let ee of this._order){let le=this._layers[ee];le.recalculate(w,this._availableImages),!le.isHidden(w.zoom)&&le.source&&(this.sourceCaches[le.source].used=!0)}for(let ee in Q){let le=this.sourceCaches[ee];!!Q[ee]!=!!le.used&&le.fire(new a.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:ee}))}this.light.recalculate(w),this.sky.recalculate(w),this.z=w.zoom,B&&this.fire(new a.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let w=Object.keys(this._changedImages);if(w.length){for(let B in this.sourceCaches)this.sourceCaches[B].reloadTilesForDependencies(["icons","patterns"],w);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let w in this.sourceCaches)this.sourceCaches[w].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(w,B){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(w,!1),removedIds:B})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(w,B={}){var Q;this._checkLoaded();let ee=this.serialize();if(w=B.transformStyle?B.transformStyle(ee,w):w,((Q=B.validate)===null||Q===void 0||Q)&&da(this,a.u(w)))return!1;(w=a.aB(w)).layers=a.az(w.layers);let le=a.aC(ee,w),qe=this._getOperationsToPerform(le);if(qe.unimplemented.length>0)throw new Error(`Unimplemented: ${qe.unimplemented.join(", ")}.`);if(qe.operations.length===0)return!1;for(let Xe of qe.operations)Xe();return this.stylesheet=w,this._serializedLayers=null,!0}_getOperationsToPerform(w){let B=[],Q=[];for(let ee of w)switch(ee.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":B.push(()=>this.addLayer.apply(this,ee.args));break;case"removeLayer":B.push(()=>this.removeLayer.apply(this,ee.args));break;case"setPaintProperty":B.push(()=>this.setPaintProperty.apply(this,ee.args));break;case"setLayoutProperty":B.push(()=>this.setLayoutProperty.apply(this,ee.args));break;case"setFilter":B.push(()=>this.setFilter.apply(this,ee.args));break;case"addSource":B.push(()=>this.addSource.apply(this,ee.args));break;case"removeSource":B.push(()=>this.removeSource.apply(this,ee.args));break;case"setLayerZoomRange":B.push(()=>this.setLayerZoomRange.apply(this,ee.args));break;case"setLight":B.push(()=>this.setLight.apply(this,ee.args));break;case"setGeoJSONSourceData":B.push(()=>this.setGeoJSONSourceData.apply(this,ee.args));break;case"setGlyphs":B.push(()=>this.setGlyphs.apply(this,ee.args));break;case"setSprite":B.push(()=>this.setSprite.apply(this,ee.args));break;case"setSky":B.push(()=>this.setSky.apply(this,ee.args));break;case"setTerrain":B.push(()=>this.map.setTerrain.apply(this,ee.args));break;case"setTransition":B.push(()=>{});break;default:Q.push(ee.command)}return{operations:B,unimplemented:Q}}addImage(w,B){if(this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" already exists.`)));this.imageManager.addImage(w,B),this._afterImageUpdated(w)}updateImage(w,B){this.imageManager.updateImage(w,B)}getImage(w){return this.imageManager.getImage(w)}removeImage(w){if(!this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" does not exist.`)));this.imageManager.removeImage(w),this._afterImageUpdated(w)}_afterImageUpdated(w){this._availableImages=this.imageManager.listImages(),this._changedImages[w]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(w,B,Q={}){if(this._checkLoaded(),this.sourceCaches[w]!==void 0)throw new Error(`Source "${w}" already exists.`);if(!B.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(B).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(B.type)>=0&&this._validate(a.u.source,`sources.${w}`,B,null,Q))return;this.map&&this.map._collectResourceTiming&&(B.collectResourceTiming=!0);let ee=this.sourceCaches[w]=new yt(w,B,this.dispatcher);ee.style=this,ee.setEventedParent(this,()=>({isSourceLoaded:ee.loaded(),source:ee.serialize(),sourceId:w})),ee.onAdd(this.map),this._changed=!0}removeSource(w){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error("There is no source with this ID");for(let Q in this._layers)if(this._layers[Q].source===w)return this.fire(new a.j(new Error(`Source "${w}" cannot be removed while layer "${Q}" is using it.`)));let B=this.sourceCaches[w];delete this.sourceCaches[w],delete this._updatedSources[w],B.fire(new a.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:w})),B.setEventedParent(null),B.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(w,B){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error(`There is no source with this ID=${w}`);let Q=this.sourceCaches[w].getSource();if(Q.type!=="geojson")throw new Error(`geojsonSource.type is ${Q.type}, which is !== 'geojson`);Q.setData(B),this._changed=!0}getSource(w){return this.sourceCaches[w]&&this.sourceCaches[w].getSource()}addLayer(w,B,Q={}){this._checkLoaded();let ee=w.id;if(this.getLayer(ee))return void this.fire(new a.j(new Error(`Layer "${ee}" already exists on this map.`)));let le;if(w.type==="custom"){if(da(this,a.aD(w)))return;le=a.aA(w)}else{if("source"in w&&typeof w.source=="object"&&(this.addSource(ee,w.source),w=a.aB(w),w=a.e(w,{source:ee})),this._validate(a.u.layer,`layers.${ee}`,w,{arrayIndex:-1},Q))return;le=a.aA(w),this._validateLayer(le),le.setEventedParent(this,{layer:{id:ee}})}let qe=B?this._order.indexOf(B):this._order.length;if(B&&qe===-1)this.fire(new a.j(new Error(`Cannot add layer "${ee}" before non-existing layer "${B}".`)));else{if(this._order.splice(qe,0,ee),this._layerOrderChanged=!0,this._layers[ee]=le,this._removedLayers[ee]&&le.source&&le.type!=="custom"){let Xe=this._removedLayers[ee];delete this._removedLayers[ee],Xe.type!==le.type?this._updatedSources[le.source]="clear":(this._updatedSources[le.source]="reload",this.sourceCaches[le.source].pause())}this._updateLayer(le),le.onAdd&&le.onAdd(this.map)}}moveLayer(w,B){if(this._checkLoaded(),this._changed=!0,!this._layers[w])return void this.fire(new a.j(new Error(`The layer '${w}' does not exist in the map's style and cannot be moved.`)));if(w===B)return;let Q=this._order.indexOf(w);this._order.splice(Q,1);let ee=B?this._order.indexOf(B):this._order.length;B&&ee===-1?this.fire(new a.j(new Error(`Cannot move layer "${w}" before non-existing layer "${B}".`))):(this._order.splice(ee,0,w),this._layerOrderChanged=!0)}removeLayer(w){this._checkLoaded();let B=this._layers[w];if(!B)return void this.fire(new a.j(new Error(`Cannot remove non-existing layer "${w}".`)));B.setEventedParent(null);let Q=this._order.indexOf(w);this._order.splice(Q,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[w]=B,delete this._layers[w],this._serializedLayers&&delete this._serializedLayers[w],delete this._updatedLayers[w],delete this._updatedPaintProps[w],B.onRemove&&B.onRemove(this.map)}getLayer(w){return this._layers[w]}getLayersOrder(){return[...this._order]}hasLayer(w){return w in this._layers}setLayerZoomRange(w,B,Q){this._checkLoaded();let ee=this.getLayer(w);ee?ee.minzoom===B&&ee.maxzoom===Q||(B!=null&&(ee.minzoom=B),Q!=null&&(ee.maxzoom=Q),this._updateLayer(ee)):this.fire(new a.j(new Error(`Cannot set the zoom range of non-existing layer "${w}".`)))}setFilter(w,B,Q={}){this._checkLoaded();let ee=this.getLayer(w);if(ee){if(!a.aE(ee.filter,B))return B==null?(ee.filter=void 0,void this._updateLayer(ee)):void(this._validate(a.u.filter,`layers.${ee.id}.filter`,B,null,Q)||(ee.filter=a.aB(B),this._updateLayer(ee)))}else this.fire(new a.j(new Error(`Cannot filter non-existing layer "${w}".`)))}getFilter(w){return a.aB(this.getLayer(w).filter)}setLayoutProperty(w,B,Q,ee={}){this._checkLoaded();let le=this.getLayer(w);le?a.aE(le.getLayoutProperty(B),Q)||(le.setLayoutProperty(B,Q,ee),this._updateLayer(le)):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getLayoutProperty(w,B){let Q=this.getLayer(w);if(Q)return Q.getLayoutProperty(B);this.fire(new a.j(new Error(`Cannot get style of non-existing layer "${w}".`)))}setPaintProperty(w,B,Q,ee={}){this._checkLoaded();let le=this.getLayer(w);le?a.aE(le.getPaintProperty(B),Q)||(le.setPaintProperty(B,Q,ee)&&this._updateLayer(le),this._changed=!0,this._updatedPaintProps[w]=!0,this._serializedLayers=null):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getPaintProperty(w,B){return this.getLayer(w).getPaintProperty(B)}setFeatureState(w,B){this._checkLoaded();let Q=w.source,ee=w.sourceLayer,le=this.sourceCaches[Q];if(le===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let qe=le.getSource().type;qe==="geojson"&&ee?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):qe!=="vector"||ee?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),le.setFeatureState(ee,w.id,B)):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(w,B){this._checkLoaded();let Q=w.source,ee=this.sourceCaches[Q];if(ee===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let le=ee.getSource().type,qe=le==="vector"?w.sourceLayer:void 0;le!=="vector"||qe?B&&typeof w.id!="string"&&typeof w.id!="number"?this.fire(new a.j(new Error("A feature id is required to remove its specific state property."))):ee.removeFeatureState(qe,w.id,B):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(w){this._checkLoaded();let B=w.source,Q=w.sourceLayer,ee=this.sourceCaches[B];if(ee!==void 0)return ee.getSource().type!=="vector"||Q?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ee.getFeatureState(Q,w.id)):void this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new a.j(new Error(`The source '${B}' does not exist in the map's style.`)))}getTransition(){return a.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let w=a.aF(this.sourceCaches,le=>le.serialize()),B=this._serializeByIds(this._order,!0),Q=this.map.getTerrain()||void 0,ee=this.stylesheet;return a.aG({version:ee.version,name:ee.name,metadata:ee.metadata,light:ee.light,sky:ee.sky,center:ee.center,zoom:ee.zoom,bearing:ee.bearing,pitch:ee.pitch,sprite:ee.sprite,glyphs:ee.glyphs,transition:ee.transition,sources:w,layers:B,terrain:Q},le=>le!==void 0)}_updateLayer(w){this._updatedLayers[w.id]=!0,w.source&&!this._updatedSources[w.source]&&this.sourceCaches[w.source].getSource().type!=="raster"&&(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(w){let B=qe=>this._layers[qe].type==="fill-extrusion",Q={},ee=[];for(let qe=this._order.length-1;qe>=0;qe--){let Xe=this._order[qe];if(B(Xe)){Q[Xe]=qe;for(let ot of w){let Tt=ot[Xe];if(Tt)for(let Kt of Tt)ee.push(Kt)}}}ee.sort((qe,Xe)=>Xe.intersectionZ-qe.intersectionZ);let le=[];for(let qe=this._order.length-1;qe>=0;qe--){let Xe=this._order[qe];if(B(Xe))for(let ot=ee.length-1;ot>=0;ot--){let Tt=ee[ot].feature;if(Q[Tt.layer.id]{let dr=Be.featureSortOrder;if(dr){let Sr=dr.indexOf(Ht.featureIndex);return dr.indexOf(rr.featureIndex)-Sr}return rr.featureIndex-Ht.featureIndex});for(let Ht of Dt)it.push(Ht)}}for(let Be in ve)ve[Be].forEach(tt=>{let We=tt.feature,it=Tt[Xe[Be].source].getFeatureState(We.layer["source-layer"],We.id);We.source=We.layer.source,We.layer["source-layer"]&&(We.sourceLayer=We.layer["source-layer"]),We.state=it});return ve}(this._layers,qe,this.sourceCaches,w,B,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(le)}querySourceFeatures(w,B){B&&B.filter&&this._validate(a.u.filter,"querySourceFeatures.filter",B.filter,null,B);let Q=this.sourceCaches[w];return Q?function(ee,le){let qe=ee.getRenderableIds().map(Tt=>ee.getTileByID(Tt)),Xe=[],ot={};for(let Tt=0;Ttxr.getTileByID(Pr)).sort((Pr,ve)=>ve.tileID.overscaledZ-Pr.tileID.overscaledZ||(Pr.tileID.isLessThan(ve.tileID)?-1:1))}let Jt=this.crossTileSymbolIndex.addLayer(Kt,ot[Kt.source],w.center.lng);qe=qe||Jt}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((le=le||this._layerOrderChanged||Q===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(u.now(),w.zoom))&&(this.pauseablePlacement=new Ba(w,this.map.terrain,this._order,le,B,Q,ee,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,ot),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(u.now()),Xe=!0),qe&&this.pauseablePlacement.placement.setStale()),Xe||qe)for(let Tt of this._order){let Kt=this._layers[Tt];Kt.type==="symbol"&&this.placement.updateLayerOpacities(Kt,ot[Kt.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(u.now())}_releaseSymbolFadeTiles(){for(let w in this.sourceCaches)this.sourceCaches[w].releaseSymbolFadeTiles()}getImages(w,B){return a._(this,void 0,void 0,function*(){let Q=yield this.imageManager.getImages(B.icons);this._updateTilesForChangedImages();let ee=this.sourceCaches[B.source];return ee&&ee.setDependencies(B.tileID.key,B.type,B.icons),Q})}getGlyphs(w,B){return a._(this,void 0,void 0,function*(){let Q=yield this.glyphManager.getGlyphs(B.stacks),ee=this.sourceCaches[B.source];return ee&&ee.setDependencies(B.tileID.key,B.type,[""]),Q})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(w,B={}){this._checkLoaded(),w&&this._validate(a.u.glyphs,"glyphs",w,null,B)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=w,this.glyphManager.entries={},this.glyphManager.setURL(w))}addSprite(w,B,Q={},ee){this._checkLoaded();let le=[{id:w,url:B}],qe=[...k(this.stylesheet.sprite),...le];this._validate(a.u.sprite,"sprite",qe,null,Q)||(this.stylesheet.sprite=qe,this._loadSprite(le,!0,ee))}removeSprite(w){this._checkLoaded();let B=k(this.stylesheet.sprite);if(B.find(Q=>Q.id===w)){if(this._spritesImagesIds[w])for(let Q of this._spritesImagesIds[w])this.imageManager.removeImage(Q),this._changedImages[Q]=!0;B.splice(B.findIndex(Q=>Q.id===w),1),this.stylesheet.sprite=B.length>0?B:void 0,delete this._spritesImagesIds[w],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}else this.fire(new a.j(new Error(`Sprite "${w}" doesn't exists on this map.`)))}getSprite(){return k(this.stylesheet.sprite)}setSprite(w,B={},Q){this._checkLoaded(),w&&this._validate(a.u.sprite,"sprite",w,null,B)||(this.stylesheet.sprite=w,w?this._loadSprite(w,!0,Q):(this._unloadSprite(),Q&&Q(null)))}}var vo=a.Y([{name:"a_pos",type:"Int16",components:2}]);let jn={prelude:St(`#ifdef GL_ES precision mediump float; #else #if !defined(lowp) @@ -3800,7 +3800,7 @@ uniform ${Kt} ${Jt} u_${xr}; #endif `}),staticAttributes:Q,staticUniforms:qe}}class Cr{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(w,B,Q,ee,le,qe,Xe,ot,Tt){this.context=w;let Kt=this.boundPaintVertexBuffers.length!==ee.length;for(let Jt=0;!Kt&&Jt({u_matrix:ue,u_texture:0,u_ele_delta:w,u_fog_matrix:B,u_fog_color:Q?Q.properties.get("fog-color"):a.aM.white,u_fog_ground_blend:Q?Q.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Q?Q.calculateFogBlendOpacity(ee):0,u_horizon_color:Q?Q.properties.get("horizon-color"):a.aM.white,u_horizon_fog_blend:Q?Q.properties.get("horizon-fog-blend"):1});function pi(ue){let w=[];for(let B=0;B({u_depth:new a.aH(Ht,rr.u_depth),u_terrain:new a.aH(Ht,rr.u_terrain),u_terrain_dim:new a.aI(Ht,rr.u_terrain_dim),u_terrain_matrix:new a.aJ(Ht,rr.u_terrain_matrix),u_terrain_unpack:new a.aK(Ht,rr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(Ht,rr.u_terrain_exaggeration)}))(w,Dt),this.binderUniforms=Q?Q.getUniforms(w,Dt):[]}draw(w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve,be,Re,Be,tt){let We=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(Q),w.setStencilMode(ee),w.setColorMode(le),w.setCullFace(qe),ot){w.activeTexture.set(We.TEXTURE2),We.bindTexture(We.TEXTURE_2D,ot.depthTexture),w.activeTexture.set(We.TEXTURE3),We.bindTexture(We.TEXTURE_2D,ot.texture);for(let Dt in this.terrainUniforms)this.terrainUniforms[Dt].set(ot[Dt])}for(let Dt in this.fixedUniforms)this.fixedUniforms[Dt].set(Xe[Dt]);be&&be.setUniforms(w,this.binderUniforms,Pr,{zoom:ve});let it=0;switch(B){case We.LINES:it=2;break;case We.TRIANGLES:it=3;break;case We.LINE_STRIP:it=1}for(let Dt of xr.get()){let Ht=Dt.vaos||(Dt.vaos={});(Ht[Tt]||(Ht[Tt]=new Cr)).bind(w,this,Kt,be?be.getPaintVertexBuffers():[],Jt,Dt.vertexOffset,Re,Be,tt),We.drawElements(B,Dt.primitiveLength*it,We.UNSIGNED_SHORT,Dt.primitiveOffset*it*2)}}}function Sn(ue,w,B){let Q=1/Pn(B,1,w.transform.tileZoom),ee=Math.pow(2,B.tileID.overscaledZ),le=B.tileSize*Math.pow(2,w.transform.tileZoom)/ee,qe=le*(B.tileID.canonical.x+B.tileID.wrap*ee),Xe=le*B.tileID.canonical.y;return{u_image:0,u_texsize:B.imageAtlasTexture.size,u_scale:[Q,ue.fromScale,ue.toScale],u_fade:ue.t,u_pixel_coord_upper:[qe>>16,Xe>>16],u_pixel_coord_lower:[65535&qe,65535&Xe]}}let En=(ue,w,B,Q)=>{let ee=w.style.light,le=ee.properties.get("position"),qe=[le.x,le.y,le.z],Xe=function(){var Tt=new a.A(9);return a.A!=Float32Array&&(Tt[1]=0,Tt[2]=0,Tt[3]=0,Tt[5]=0,Tt[6]=0,Tt[7]=0),Tt[0]=1,Tt[4]=1,Tt[8]=1,Tt}();ee.properties.get("anchor")==="viewport"&&function(Tt,Kt){var Jt=Math.sin(Kt),xr=Math.cos(Kt);Tt[0]=xr,Tt[1]=Jt,Tt[2]=0,Tt[3]=-Jt,Tt[4]=xr,Tt[5]=0,Tt[6]=0,Tt[7]=0,Tt[8]=1}(Xe,-w.transform.angle),function(Tt,Kt,Jt){var xr=Kt[0],Pr=Kt[1],ve=Kt[2];Tt[0]=xr*Jt[0]+Pr*Jt[3]+ve*Jt[6],Tt[1]=xr*Jt[1]+Pr*Jt[4]+ve*Jt[7],Tt[2]=xr*Jt[2]+Pr*Jt[5]+ve*Jt[8]}(qe,qe,Xe);let ot=ee.properties.get("color");return{u_matrix:ue,u_lightpos:qe,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[ot.r,ot.g,ot.b],u_vertical_gradient:+B,u_opacity:Q}},ki=(ue,w,B,Q,ee,le,qe)=>a.e(En(ue,w,B,Q),Sn(le,w,qe),{u_height_factor:-Math.pow(2,ee.overscaledZ)/qe.tileSize/8}),_n=ue=>({u_matrix:ue}),ya=(ue,w,B,Q)=>a.e(_n(ue),Sn(B,w,Q)),Jn=(ue,w)=>({u_matrix:ue,u_world:w}),Ma=(ue,w,B,Q,ee)=>a.e(ya(ue,w,B,Q),{u_world:ee}),_o=(ue,w,B,Q)=>{let ee=ue.transform,le,qe;if(Q.paint.get("circle-pitch-alignment")==="map"){let Xe=Pn(B,1,ee.zoom);le=!0,qe=[Xe,Xe]}else le=!1,qe=ee.pixelsToGLUnits;return{u_camera_to_center_distance:ee.cameraToCenterDistance,u_scale_with_map:+(Q.paint.get("circle-pitch-scale")==="map"),u_matrix:ue.translatePosMatrix(w.posMatrix,B,Q.paint.get("circle-translate"),Q.paint.get("circle-translate-anchor")),u_pitch_with_map:+le,u_device_pixel_ratio:ue.pixelRatio,u_extrude_scale:qe}},No=(ue,w,B)=>({u_matrix:ue,u_inv_matrix:w,u_camera_to_center_distance:B.cameraToCenterDistance,u_viewport_size:[B.width,B.height]}),po=(ue,w,B=1)=>({u_matrix:ue,u_color:w,u_overlay:0,u_overlay_scale:B}),Lo=ue=>({u_matrix:ue}),Co=(ue,w,B,Q)=>({u_matrix:ue,u_extrude_scale:Pn(w,1,B),u_intensity:Q}),Fs=(ue,w,B,Q)=>{let ee=a.H();a.aP(ee,0,ue.width,ue.height,0,0,1);let le=ue.context.gl;return{u_matrix:ee,u_world:[le.drawingBufferWidth,le.drawingBufferHeight],u_image:B,u_color_ramp:Q,u_opacity:w.paint.get("heatmap-opacity")}};function zs(ue,w){let B=Math.pow(2,w.canonical.z),Q=w.canonical.y;return[new a.Z(0,Q/B).toLngLat().lat,new a.Z(0,(Q+1)/B).toLngLat().lat]}let ul=(ue,w,B,Q)=>{let ee=ue.transform;return{u_matrix:Ss(ue,w,B,Q),u_ratio:1/Pn(w,1,ee.zoom),u_device_pixel_ratio:ue.pixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},cl=(ue,w,B,Q,ee)=>a.e(ul(ue,w,B,ee),{u_image:0,u_image_height:Q}),zl=(ue,w,B,Q,ee)=>{let le=ue.transform,qe=nl(w,le);return{u_matrix:Ss(ue,w,B,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/Pn(w,1,le.zoom),u_device_pixel_ratio:ue.pixelRatio,u_image:0,u_scale:[qe,Q.fromScale,Q.toScale],u_fade:Q.t,u_units_to_pixels:[1/le.pixelsToGLUnits[0],1/le.pixelsToGLUnits[1]]}},cs=(ue,w,B,Q,ee,le)=>{let qe=ue.lineAtlas,Xe=nl(w,ue.transform),ot=B.layout.get("line-cap")==="round",Tt=qe.getDash(Q.from,ot),Kt=qe.getDash(Q.to,ot),Jt=Tt.width*ee.fromScale,xr=Kt.width*ee.toScale;return a.e(ul(ue,w,B,le),{u_patternscale_a:[Xe/Jt,-Tt.height/2],u_patternscale_b:[Xe/xr,-Kt.height/2],u_sdfgamma:qe.width/(256*Math.min(Jt,xr)*ue.pixelRatio)/2,u_image:0,u_tex_y_a:Tt.y,u_tex_y_b:Kt.y,u_mix:ee.t})};function nl(ue,w){return 1/Pn(ue,1,w.tileZoom)}function Ss(ue,w,B,Q){return ue.translatePosMatrix(Q?Q.posMatrix:w.tileID.posMatrix,w,B.paint.get("line-translate"),B.paint.get("line-translate-anchor"))}let fl=(ue,w,B,Q,ee)=>{return{u_matrix:ue,u_tl_parent:w,u_scale_parent:B,u_buffer_scale:1,u_fade_t:Q.mix,u_opacity:Q.opacity*ee.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ee.paint.get("raster-brightness-min"),u_brightness_high:ee.paint.get("raster-brightness-max"),u_saturation_factor:(qe=ee.paint.get("raster-saturation"),qe>0?1-1/(1.001-qe):-qe),u_contrast_factor:(le=ee.paint.get("raster-contrast"),le>0?1/(1-le):1+le),u_spin_weights:Js(ee.paint.get("raster-hue-rotate"))};var le,qe};function Js(ue){ue*=Math.PI/180;let w=Math.sin(ue),B=Math.cos(ue);return[(2*B+1)/3,(-Math.sqrt(3)*w-B+1)/3,(Math.sqrt(3)*w-B+1)/3]}let Os=(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr)=>{let ve=qe.transform;return{u_is_size_zoom_constant:+(ue==="constant"||ue==="source"),u_is_size_feature_constant:+(ue==="constant"||ue==="camera"),u_size_t:w?w.uSizeT:0,u_size:w?w.uSize:0,u_camera_to_center_distance:ve.cameraToCenterDistance,u_pitch:ve.pitch/360*2*Math.PI,u_rotate_symbol:+B,u_aspect_ratio:ve.width/ve.height,u_fade_change:qe.options.fadeDuration?qe.symbolFadeChange:1,u_matrix:Xe,u_label_plane_matrix:ot,u_coord_matrix:Tt,u_is_text:+Jt,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:le,u_texsize:xr,u_texture:0,u_translation:Kt,u_pitched_scale:Pr}},Io=(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve)=>{let be=qe.transform;return a.e(Os(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,ve),{u_gamma_scale:Q?Math.cos(be._pitch)*be.cameraToCenterDistance:1,u_device_pixel_ratio:qe.pixelRatio,u_is_halo:+Pr})},us=(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr)=>a.e(Io(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,!0,Jt,!0,Pr),{u_texsize_icon:xr,u_texture_icon:1}),Zl=(ue,w,B)=>({u_matrix:ue,u_opacity:w,u_color:B}),Su=(ue,w,B,Q,ee,le)=>a.e(function(qe,Xe,ot,Tt){let Kt=ot.imageManager.getPattern(qe.from.toString()),Jt=ot.imageManager.getPattern(qe.to.toString()),{width:xr,height:Pr}=ot.imageManager.getPixelSize(),ve=Math.pow(2,Tt.tileID.overscaledZ),be=Tt.tileSize*Math.pow(2,ot.transform.tileZoom)/ve,Re=be*(Tt.tileID.canonical.x+Tt.tileID.wrap*ve),Be=be*Tt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Kt.tl,u_pattern_br_a:Kt.br,u_pattern_tl_b:Jt.tl,u_pattern_br_b:Jt.br,u_texsize:[xr,Pr],u_mix:Xe.t,u_pattern_size_a:Kt.displaySize,u_pattern_size_b:Jt.displaySize,u_scale_a:Xe.fromScale,u_scale_b:Xe.toScale,u_tile_units_to_pixels:1/Pn(Tt,1,ot.transform.tileZoom),u_pixel_coord_upper:[Re>>16,Be>>16],u_pixel_coord_lower:[65535&Re,65535&Be]}}(Q,le,B,ee),{u_matrix:ue,u_opacity:w}),nc={fillExtrusion:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_opacity:new a.aI(ue,w.u_opacity)}),fillExtrusionPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_height_factor:new a.aI(ue,w.u_height_factor),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade),u_opacity:new a.aI(ue,w.u_opacity)}),fill:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),fillPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),fillOutline:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world)}),fillOutlinePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),circle:(ue,w)=>({u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(ue,w.u_scale_with_map),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_extrude_scale:new a.aO(ue,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_matrix:new a.aJ(ue,w.u_matrix)}),collisionBox:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_pixel_extrude_scale:new a.aO(ue,w.u_pixel_extrude_scale)}),collisionCircle:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_inv_matrix:new a.aJ(ue,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_viewport_size:new a.aO(ue,w.u_viewport_size)}),debug:(ue,w)=>({u_color:new a.aL(ue,w.u_color),u_matrix:new a.aJ(ue,w.u_matrix),u_overlay:new a.aH(ue,w.u_overlay),u_overlay_scale:new a.aI(ue,w.u_overlay_scale)}),clippingMask:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),heatmap:(ue,w)=>({u_extrude_scale:new a.aI(ue,w.u_extrude_scale),u_intensity:new a.aI(ue,w.u_intensity),u_matrix:new a.aJ(ue,w.u_matrix)}),heatmapTexture:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_color_ramp:new a.aH(ue,w.u_color_ramp),u_opacity:new a.aI(ue,w.u_opacity)}),hillshade:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_latrange:new a.aO(ue,w.u_latrange),u_light:new a.aO(ue,w.u_light),u_shadow:new a.aL(ue,w.u_shadow),u_highlight:new a.aL(ue,w.u_highlight),u_accent:new a.aL(ue,w.u_accent)}),hillshadePrepare:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_dimension:new a.aO(ue,w.u_dimension),u_zoom:new a.aI(ue,w.u_zoom),u_unpack:new a.aK(ue,w.u_unpack)}),line:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels)}),lineGradient:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_image:new a.aH(ue,w.u_image),u_image_height:new a.aI(ue,w.u_image_height)}),linePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texsize:new a.aO(ue,w.u_texsize),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_image:new a.aH(ue,w.u_image),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),lineSDF:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_patternscale_a:new a.aO(ue,w.u_patternscale_a),u_patternscale_b:new a.aO(ue,w.u_patternscale_b),u_sdfgamma:new a.aI(ue,w.u_sdfgamma),u_image:new a.aH(ue,w.u_image),u_tex_y_a:new a.aI(ue,w.u_tex_y_a),u_tex_y_b:new a.aI(ue,w.u_tex_y_b),u_mix:new a.aI(ue,w.u_mix)}),raster:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_tl_parent:new a.aO(ue,w.u_tl_parent),u_scale_parent:new a.aI(ue,w.u_scale_parent),u_buffer_scale:new a.aI(ue,w.u_buffer_scale),u_fade_t:new a.aI(ue,w.u_fade_t),u_opacity:new a.aI(ue,w.u_opacity),u_image0:new a.aH(ue,w.u_image0),u_image1:new a.aH(ue,w.u_image1),u_brightness_low:new a.aI(ue,w.u_brightness_low),u_brightness_high:new a.aI(ue,w.u_brightness_high),u_saturation_factor:new a.aI(ue,w.u_saturation_factor),u_contrast_factor:new a.aI(ue,w.u_contrast_factor),u_spin_weights:new a.aN(ue,w.u_spin_weights)}),symbolIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolSDF:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolTextAndIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texsize_icon:new a.aO(ue,w.u_texsize_icon),u_texture:new a.aH(ue,w.u_texture),u_texture_icon:new a.aH(ue,w.u_texture_icon),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),background:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_color:new a.aL(ue,w.u_color)}),backgroundPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_image:new a.aH(ue,w.u_image),u_pattern_tl_a:new a.aO(ue,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(ue,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(ue,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(ue,w.u_pattern_br_b),u_texsize:new a.aO(ue,w.u_texsize),u_mix:new a.aI(ue,w.u_mix),u_pattern_size_a:new a.aO(ue,w.u_pattern_size_a),u_pattern_size_b:new a.aO(ue,w.u_pattern_size_b),u_scale_a:new a.aI(ue,w.u_scale_a),u_scale_b:new a.aI(ue,w.u_scale_b),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(ue,w.u_tile_units_to_pixels)}),terrain:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_ele_delta:new a.aI(ue,w.u_ele_delta),u_fog_matrix:new a.aJ(ue,w.u_fog_matrix),u_fog_color:new a.aL(ue,w.u_fog_color),u_fog_ground_blend:new a.aI(ue,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(ue,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon_fog_blend:new a.aI(ue,w.u_horizon_fog_blend)}),terrainDepth:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),terrainCoords:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_terrain_coords_id:new a.aI(ue,w.u_terrain_coords_id),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),sky:(ue,w)=>({u_sky_color:new a.aL(ue,w.u_sky_color),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon:new a.aI(ue,w.u_horizon),u_sky_horizon_blend:new a.aI(ue,w.u_sky_horizon_blend)})};class ws{constructor(w,B,Q){this.context=w;let ee=w.gl;this.buffer=ee.createBuffer(),this.dynamicDraw=!!Q,this.context.unbindVAO(),w.bindElementBuffer.set(this.buffer),ee.bufferData(ee.ELEMENT_ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?ee.DYNAMIC_DRAW:ee.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(w){let B=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),B.bufferSubData(B.ELEMENT_ARRAY_BUFFER,0,w.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let Fn={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class _a{constructor(w,B,Q,ee){this.length=B.length,this.attributes=Q,this.itemSize=B.bytesPerElement,this.dynamicDraw=ee,this.context=w;let le=w.gl;this.buffer=le.createBuffer(),w.bindVertexBuffer.set(this.buffer),le.bufferData(le.ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?le.DYNAMIC_DRAW:le.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(w){if(w.length!==this.length)throw new Error(`Length of new data is ${w.length}, which doesn't match current length of ${this.length}`);let B=this.context.gl;this.bind(),B.bufferSubData(B.ARRAY_BUFFER,0,w.arrayBuffer)}enableAttributes(w,B){for(let Q=0;Q0){let Ht=a.H();a.aQ(Ht,We.placementInvProjMatrix,ue.transform.glCoordMatrix),a.aQ(Ht,Ht,We.placementViewportMatrix),ot.push({circleArray:Dt,circleOffset:Kt,transform:tt.posMatrix,invTransform:Ht,coord:tt}),Tt+=Dt.length/4,Kt=Tt}it&&Xe.draw(le,qe.LINES,Po.disabled,Yo.disabled,ue.colorModeForRenderPass(),Pa.disabled,{u_matrix:tt.posMatrix,u_pixel_extrude_scale:[1/(Jt=ue.transform).width,1/Jt.height]},ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(tt),B.id,it.layoutVertexBuffer,it.indexBuffer,it.segments,null,ue.transform.zoom,null,null,it.collisionVertexBuffer)}var Jt;if(!ee||!ot.length)return;let xr=ue.useProgram("collisionCircle"),Pr=new a.aR;Pr.resize(4*Tt),Pr._trim();let ve=0;for(let Be of ot)for(let tt=0;tt=0&&(Be[We.associatedIconIndex]={shiftedAnchor:Kn,angle:Aa})}else di(We.numGlyphs,be)}if(Tt){Re.clear();let tt=ue.icon.placedSymbolArray;for(let We=0;Weue.style.map.terrain.getElevation(jr,nt,jt):null,Ct=B.layout.get("text-rotation-alignment")==="map";je(Li,jr.posMatrix,ue,ee,Ul,au,Be,Tt,Ct,be,jr.toUnwrapped(),ve.width,ve.height,$s,Ye)}let Al=jr.posMatrix,Sl=ee&&dr||dc,X=tt||Sl?wl:Ul,se=Lu,Te=In&&B.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Ne;Ne=In?Li.iconsInText?us(Kn.kind,$a,We,Be,tt,Sl,ue,Al,X,se,$s,Qa,As,Or):Io(Kn.kind,$a,We,Be,tt,Sl,ue,Al,X,se,$s,ee,Qa,!0,Or):Os(Kn.kind,$a,We,Be,tt,Sl,ue,Al,X,se,$s,ee,Qa,Or);let He={program:fa,buffers:un,uniformValues:Ne,atlasTexture:mo,atlasTextureIcon:wo,atlasInterpolation:Bo,atlasInterpolationIcon:Is,isSDF:In,hasHalo:Te};if(Dt&&Li.canOverlap){Ht=!0;let Ye=un.segments.get();for(let Ct of Ye)Sr.push({segments:new a.a0([Ct]),sortKey:Ct.sortKey,state:He,terrainData:ko})}else Sr.push({segments:un.segments,sortKey:0,state:He,terrainData:ko})}Ht&&Sr.sort((jr,ii)=>jr.sortKey-ii.sortKey);for(let jr of Sr){let ii=jr.state;if(xr.activeTexture.set(Pr.TEXTURE0),ii.atlasTexture.bind(ii.atlasInterpolation,Pr.CLAMP_TO_EDGE),ii.atlasTextureIcon&&(xr.activeTexture.set(Pr.TEXTURE1),ii.atlasTextureIcon&&ii.atlasTextureIcon.bind(ii.atlasInterpolationIcon,Pr.CLAMP_TO_EDGE)),ii.isSDF){let Li=ii.uniformValues;ii.hasHalo&&(Li.u_is_halo=1,Qf(ii.buffers,jr.segments,B,ue,ii.program,rr,Kt,Jt,Li,jr.terrainData)),Li.u_is_halo=0}Qf(ii.buffers,jr.segments,B,ue,ii.program,rr,Kt,Jt,ii.uniformValues,jr.terrainData)}}function Qf(ue,w,B,Q,ee,le,qe,Xe,ot,Tt){let Kt=Q.context;ee.draw(Kt,Kt.gl.TRIANGLES,le,qe,Xe,Pa.disabled,ot,Tt,B.id,ue.layoutVertexBuffer,ue.indexBuffer,w,B.paint,Q.transform.zoom,ue.programConfigurations.get(B.id),ue.dynamicLayoutVertexBuffer,ue.opacityVertexBuffer)}function yf(ue,w,B,Q){let ee=ue.context,le=ee.gl,qe=Yo.disabled,Xe=new Bs([le.ONE,le.ONE],a.aM.transparent,[!0,!0,!0,!0]),ot=w.getBucket(B);if(!ot)return;let Tt=Q.key,Kt=B.heatmapFbos.get(Tt);Kt||(Kt=eh(ee,w.tileSize,w.tileSize),B.heatmapFbos.set(Tt,Kt)),ee.bindFramebuffer.set(Kt.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let Jt=ot.programConfigurations.get(B.id),xr=ue.useProgram("heatmap",Jt),Pr=ue.style.map.terrain.getTerrainData(Q);xr.draw(ee,le.TRIANGLES,Po.disabled,qe,Xe,Pa.disabled,Co(Q.posMatrix,w,ue.transform.zoom,B.paint.get("heatmap-intensity")),Pr,B.id,ot.layoutVertexBuffer,ot.indexBuffer,ot.segments,B.paint,ue.transform.zoom,Jt)}function Yc(ue,w,B){let Q=ue.context,ee=Q.gl;Q.setColorMode(ue.colorModeForRenderPass());let le=th(Q,w),qe=B.key,Xe=w.heatmapFbos.get(qe);Xe&&(Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Xe.colorAttachment.get()),Q.activeTexture.set(ee.TEXTURE1),le.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),ue.useProgram("heatmapTexture").draw(Q,ee.TRIANGLES,Po.disabled,Yo.disabled,ue.colorModeForRenderPass(),Pa.disabled,Fs(ue,w,0,1),null,w.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments,w.paint,ue.transform.zoom),Xe.destroy(),w.heatmapFbos.delete(qe))}function eh(ue,w,B){var Q,ee;let le=ue.gl,qe=le.createTexture();le.bindTexture(le.TEXTURE_2D,qe),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_S,le.CLAMP_TO_EDGE),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_T,le.CLAMP_TO_EDGE),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MIN_FILTER,le.LINEAR),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MAG_FILTER,le.LINEAR);let Xe=(Q=ue.HALF_FLOAT)!==null&&Q!==void 0?Q:le.UNSIGNED_BYTE,ot=(ee=ue.RGBA16F)!==null&&ee!==void 0?ee:le.RGBA;le.texImage2D(le.TEXTURE_2D,0,ot,w,B,0,le.RGBA,Xe,null);let Tt=ue.createFramebuffer(w,B,!1,!1);return Tt.colorAttachment.set(qe),Tt}function th(ue,w){return w.colorRampTexture||(w.colorRampTexture=new g(ue,w.colorRamp,ue.gl.RGBA)),w.colorRampTexture}function ju(ue,w,B,Q,ee){if(!B||!Q||!Q.imageAtlas)return;let le=Q.imageAtlas.patternPositions,qe=le[B.to.toString()],Xe=le[B.from.toString()];if(!qe&&Xe&&(qe=Xe),!Xe&&qe&&(Xe=qe),!qe||!Xe){let ot=ee.getPaintProperty(w);qe=le[ot],Xe=le[ot]}qe&&Xe&&ue.setConstantPatternPositions(qe,Xe)}function Hf(ue,w,B,Q,ee,le,qe){let Xe=ue.context.gl,ot="fill-pattern",Tt=B.paint.get(ot),Kt=Tt&&Tt.constantOr(1),Jt=B.getCrossfadeParameters(),xr,Pr,ve,be,Re;qe?(Pr=Kt&&!B.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",xr=Xe.LINES):(Pr=Kt?"fillPattern":"fill",xr=Xe.TRIANGLES);let Be=Tt.constantOr(null);for(let tt of Q){let We=w.getTile(tt);if(Kt&&!We.patternsLoaded())continue;let it=We.getBucket(B);if(!it)continue;let Dt=it.programConfigurations.get(B.id),Ht=ue.useProgram(Pr,Dt),rr=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(tt);Kt&&(ue.context.activeTexture.set(Xe.TEXTURE0),We.imageAtlasTexture.bind(Xe.LINEAR,Xe.CLAMP_TO_EDGE),Dt.updatePaintBuffers(Jt)),ju(Dt,ot,Be,We,B);let dr=rr?tt:null,Sr=ue.translatePosMatrix(dr?dr.posMatrix:tt.posMatrix,We,B.paint.get("fill-translate"),B.paint.get("fill-translate-anchor"));if(qe){be=it.indexBuffer2,Re=it.segments2;let Or=[Xe.drawingBufferWidth,Xe.drawingBufferHeight];ve=Pr==="fillOutlinePattern"&&Kt?Ma(Sr,ue,Jt,We,Or):Jn(Sr,Or)}else be=it.indexBuffer,Re=it.segments,ve=Kt?ya(Sr,ue,Jt,We):_n(Sr);Ht.draw(ue.context,xr,ee,ue.stencilModeForClipping(tt),le,Pa.disabled,ve,rr,B.id,it.layoutVertexBuffer,be,Re,B.paint,ue.transform.zoom,Dt)}}function cc(ue,w,B,Q,ee,le,qe){let Xe=ue.context,ot=Xe.gl,Tt="fill-extrusion-pattern",Kt=B.paint.get(Tt),Jt=Kt.constantOr(1),xr=B.getCrossfadeParameters(),Pr=B.paint.get("fill-extrusion-opacity"),ve=Kt.constantOr(null);for(let be of Q){let Re=w.getTile(be),Be=Re.getBucket(B);if(!Be)continue;let tt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(be),We=Be.programConfigurations.get(B.id),it=ue.useProgram(Jt?"fillExtrusionPattern":"fillExtrusion",We);Jt&&(ue.context.activeTexture.set(ot.TEXTURE0),Re.imageAtlasTexture.bind(ot.LINEAR,ot.CLAMP_TO_EDGE),We.updatePaintBuffers(xr)),ju(We,Tt,ve,Re,B);let Dt=ue.translatePosMatrix(be.posMatrix,Re,B.paint.get("fill-extrusion-translate"),B.paint.get("fill-extrusion-translate-anchor")),Ht=B.paint.get("fill-extrusion-vertical-gradient"),rr=Jt?ki(Dt,ue,Ht,Pr,be,xr,Re):En(Dt,ue,Ht,Pr);it.draw(Xe,Xe.gl.TRIANGLES,ee,le,qe,Pa.backCCW,rr,tt,B.id,Be.layoutVertexBuffer,Be.indexBuffer,Be.segments,B.paint,ue.transform.zoom,We,ue.style.map.terrain&&Be.centroidVertexBuffer)}}function of(ue,w,B,Q,ee,le,qe){let Xe=ue.context,ot=Xe.gl,Tt=B.fbo;if(!Tt)return;let Kt=ue.useProgram("hillshade"),Jt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(w);Xe.activeTexture.set(ot.TEXTURE0),ot.bindTexture(ot.TEXTURE_2D,Tt.colorAttachment.get()),Kt.draw(Xe,ot.TRIANGLES,ee,le,qe,Pa.disabled,((xr,Pr,ve,be)=>{let Re=ve.paint.get("hillshade-shadow-color"),Be=ve.paint.get("hillshade-highlight-color"),tt=ve.paint.get("hillshade-accent-color"),We=ve.paint.get("hillshade-illumination-direction")*(Math.PI/180);ve.paint.get("hillshade-illumination-anchor")==="viewport"&&(We-=xr.transform.angle);let it=!xr.options.moving;return{u_matrix:be?be.posMatrix:xr.transform.calculatePosMatrix(Pr.tileID.toUnwrapped(),it),u_image:0,u_latrange:zs(0,Pr.tileID),u_light:[ve.paint.get("hillshade-exaggeration"),We],u_shadow:Re,u_highlight:Be,u_accent:tt}})(ue,B,Q,Jt?w:null),Jt,Q.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}function Nl(ue,w,B,Q,ee,le){let qe=ue.context,Xe=qe.gl,ot=w.dem;if(ot&&ot.data){let Tt=ot.dim,Kt=ot.stride,Jt=ot.getPixels();if(qe.activeTexture.set(Xe.TEXTURE1),qe.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||ue.getTileTexture(Kt),w.demTexture){let Pr=w.demTexture;Pr.update(Jt,{premultiply:!1}),Pr.bind(Xe.NEAREST,Xe.CLAMP_TO_EDGE)}else w.demTexture=new g(qe,Jt,Xe.RGBA,{premultiply:!1}),w.demTexture.bind(Xe.NEAREST,Xe.CLAMP_TO_EDGE);qe.activeTexture.set(Xe.TEXTURE0);let xr=w.fbo;if(!xr){let Pr=new g(qe,{width:Tt,height:Tt,data:null},Xe.RGBA);Pr.bind(Xe.LINEAR,Xe.CLAMP_TO_EDGE),xr=w.fbo=qe.createFramebuffer(Tt,Tt,!0,!1),xr.colorAttachment.set(Pr.texture)}qe.bindFramebuffer.set(xr.framebuffer),qe.viewport.set([0,0,Tt,Tt]),ue.useProgram("hillshadePrepare").draw(qe,Xe.TRIANGLES,Q,ee,le,Pa.disabled,((Pr,ve)=>{let be=ve.stride,Re=a.H();return a.aP(Re,0,a.X,-a.X,0,0,1),a.J(Re,Re,[0,-a.X,0]),{u_matrix:Re,u_image:1,u_dimension:[be,be],u_zoom:Pr.overscaledZ,u_unpack:ve.getUnpackVector()}})(w.tileID,ot),null,B.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Kc(ue,w,B,Q,ee,le){let qe=Q.paint.get("raster-fade-duration");if(!le&&qe>0){let Xe=u.now(),ot=(Xe-ue.timeAdded)/qe,Tt=w?(Xe-w.timeAdded)/qe:-1,Kt=B.getSource(),Jt=ee.coveringZoomLevel({tileSize:Kt.tileSize,roundZoom:Kt.roundZoom}),xr=!w||Math.abs(w.tileID.overscaledZ-Jt)>Math.abs(ue.tileID.overscaledZ-Jt),Pr=xr&&ue.refreshedUponExpiration?1:a.ac(xr?ot:1-Tt,0,1);return ue.refreshedUponExpiration&&ot>=1&&(ue.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Pr}:{opacity:Pr,mix:0}}return{opacity:1,mix:0}}let Rc=new a.aM(1,0,0,1),ms=new a.aM(0,1,0,1),jf=new a.aM(0,0,1,1),Uh=new a.aM(1,0,1,1),rh=new a.aM(0,1,1,1);function sf(ue,w,B,Q){Mu(ue,0,w+B/2,ue.transform.width,B,Q)}function xh(ue,w,B,Q){Mu(ue,w-B/2,0,B,ue.transform.height,Q)}function Mu(ue,w,B,Q,ee,le){let qe=ue.context,Xe=qe.gl;Xe.enable(Xe.SCISSOR_TEST),Xe.scissor(w*ue.pixelRatio,B*ue.pixelRatio,Q*ue.pixelRatio,ee*ue.pixelRatio),qe.clear({color:le}),Xe.disable(Xe.SCISSOR_TEST)}function ih(ue,w,B){let Q=ue.context,ee=Q.gl,le=B.posMatrix,qe=ue.useProgram("debug"),Xe=Po.disabled,ot=Yo.disabled,Tt=ue.colorModeForRenderPass(),Kt="$debug",Jt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(B);Q.activeTexture.set(ee.TEXTURE0);let xr=w.getTileByID(B.key).latestRawTileData,Pr=Math.floor((xr&&xr.byteLength||0)/1024),ve=w.getTile(B).tileSize,be=512/Math.min(ve,512)*(B.overscaledZ/ue.transform.zoom)*.5,Re=B.canonical.toString();B.overscaledZ!==B.canonical.z&&(Re+=` => ${B.overscaledZ}`),function(Be,tt){Be.initDebugOverlayCanvas();let We=Be.debugOverlayCanvas,it=Be.context.gl,Dt=Be.debugOverlayCanvas.getContext("2d");Dt.clearRect(0,0,We.width,We.height),Dt.shadowColor="white",Dt.shadowBlur=2,Dt.lineWidth=1.5,Dt.strokeStyle="white",Dt.textBaseline="top",Dt.font="bold 36px Open Sans, sans-serif",Dt.fillText(tt,5,5),Dt.strokeText(tt,5,5),Be.debugOverlayTexture.update(We),Be.debugOverlayTexture.bind(it.LINEAR,it.CLAMP_TO_EDGE)}(ue,`${Re} ${Pr}kB`),qe.draw(Q,ee.TRIANGLES,Xe,ot,Bs.alphaBlended,Pa.disabled,po(le,a.aM.transparent,be),null,Kt,ue.debugBuffer,ue.quadTriangleIndexBuffer,ue.debugSegments),qe.draw(Q,ee.LINE_STRIP,Xe,ot,Tt,Pa.disabled,po(le,a.aM.red),Jt,Kt,ue.debugBuffer,ue.tileBorderIndexBuffer,ue.debugSegments)}function Ws(ue,w,B){let Q=ue.context,ee=Q.gl,le=ue.colorModeForRenderPass(),qe=new Po(ee.LEQUAL,Po.ReadWrite,ue.depthRangeFor3D),Xe=ue.useProgram("terrain"),ot=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,ue.width,ue.height]);for(let Tt of B){let Kt=ue.renderToTexture.getTexture(Tt),Jt=w.getTerrainData(Tt.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Kt.texture);let xr=ue.transform.calculatePosMatrix(Tt.tileID.toUnwrapped()),Pr=w.getMeshFrameDelta(ue.transform.zoom),ve=ue.transform.calculateFogMatrix(Tt.tileID.toUnwrapped()),be=Qr(xr,Pr,ve,ue.style.sky,ue.transform.pitch);Xe.draw(Q,ee.TRIANGLES,qe,Yo.disabled,le,Pa.backCCW,be,Jt,"terrain",ot.vertexBuffer,ot.indexBuffer,ot.segments)}}class Eu{constructor(w,B,Q){this.vertexBuffer=w,this.indexBuffer=B,this.segments=Q}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class Dc{constructor(w,B){this.context=new ad(w),this.transform=B,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:a.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=yt.maxUnderzooming+yt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Wo}resize(w,B,Q){if(this.width=Math.floor(w*Q),this.height=Math.floor(B*Q),this.pixelRatio=Q,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let ee of this.style._order)this.style._layers[ee].resize()}setup(){let w=this.context,B=new a.aX;B.emplaceBack(0,0),B.emplaceBack(a.X,0),B.emplaceBack(0,a.X),B.emplaceBack(a.X,a.X),this.tileExtentBuffer=w.createVertexBuffer(B,vo.members),this.tileExtentSegments=a.a0.simpleSegment(0,0,4,2);let Q=new a.aX;Q.emplaceBack(0,0),Q.emplaceBack(a.X,0),Q.emplaceBack(0,a.X),Q.emplaceBack(a.X,a.X),this.debugBuffer=w.createVertexBuffer(Q,vo.members),this.debugSegments=a.a0.simpleSegment(0,0,4,5);let ee=new a.$;ee.emplaceBack(0,0,0,0),ee.emplaceBack(a.X,0,a.X,0),ee.emplaceBack(0,a.X,0,a.X),ee.emplaceBack(a.X,a.X,a.X,a.X),this.rasterBoundsBuffer=w.createVertexBuffer(ee,lt.members),this.rasterBoundsSegments=a.a0.simpleSegment(0,0,4,2);let le=new a.aX;le.emplaceBack(0,0),le.emplaceBack(1,0),le.emplaceBack(0,1),le.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(le,vo.members),this.viewportSegments=a.a0.simpleSegment(0,0,4,2);let qe=new a.aZ;qe.emplaceBack(0),qe.emplaceBack(1),qe.emplaceBack(3),qe.emplaceBack(2),qe.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(qe);let Xe=new a.aY;Xe.emplaceBack(0,1,2),Xe.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(Xe);let ot=this.context.gl;this.stencilClearMode=new Yo({func:ot.ALWAYS,mask:0},0,255,ot.ZERO,ot.ZERO,ot.ZERO)}clearStencil(){let w=this.context,B=w.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let Q=a.H();a.aP(Q,0,this.width,this.height,0,0,1),a.K(Q,Q,[B.drawingBufferWidth,B.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(w,B.TRIANGLES,Po.disabled,this.stencilClearMode,Bs.disabled,Pa.disabled,Lo(Q),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(w,B){if(this.currentStencilSource===w.source||!w.isTileClipped()||!B||!B.length)return;this.currentStencilSource=w.source;let Q=this.context,ee=Q.gl;this.nextStencilID+B.length>256&&this.clearStencil(),Q.setColorMode(Bs.disabled),Q.setDepthMode(Po.disabled);let le=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let qe of B){let Xe=this._tileClippingMaskIDs[qe.key]=this.nextStencilID++,ot=this.style.map.terrain&&this.style.map.terrain.getTerrainData(qe);le.draw(Q,ee.TRIANGLES,Po.disabled,new Yo({func:ee.ALWAYS,mask:0},Xe,255,ee.KEEP,ee.KEEP,ee.REPLACE),Bs.disabled,Pa.disabled,Lo(qe.posMatrix),ot,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let w=this.nextStencilID++,B=this.context.gl;return new Yo({func:B.NOTEQUAL,mask:255},w,255,B.KEEP,B.KEEP,B.REPLACE)}stencilModeForClipping(w){let B=this.context.gl;return new Yo({func:B.EQUAL,mask:255},this._tileClippingMaskIDs[w.key],0,B.KEEP,B.KEEP,B.REPLACE)}stencilConfigForOverlap(w){let B=this.context.gl,Q=w.sort((qe,Xe)=>Xe.overscaledZ-qe.overscaledZ),ee=Q[Q.length-1].overscaledZ,le=Q[0].overscaledZ-ee+1;if(le>1){this.currentStencilSource=void 0,this.nextStencilID+le>256&&this.clearStencil();let qe={};for(let Xe=0;Xe({u_sky_color:Be.properties.get("sky-color"),u_horizon_color:Be.properties.get("horizon-color"),u_horizon:(tt.height/2+tt.getHorizon())*We,u_sky_horizon_blend:Be.properties.get("sky-horizon-blend")*tt.height/2*We}))(Tt,ot.style.map.transform,ot.pixelRatio),Pr=new Po(Jt.LEQUAL,Po.ReadWrite,[0,1]),ve=Yo.disabled,be=ot.colorModeForRenderPass(),Re=ot.useProgram("sky");if(!Tt.mesh){let Be=new a.aX;Be.emplaceBack(-1,-1),Be.emplaceBack(1,-1),Be.emplaceBack(1,1),Be.emplaceBack(-1,1);let tt=new a.aY;tt.emplaceBack(0,1,2),tt.emplaceBack(0,2,3),Tt.mesh=new Eu(Kt.createVertexBuffer(Be,vo.members),Kt.createIndexBuffer(tt),a.a0.simpleSegment(0,0,Be.length,tt.length))}Re.draw(Kt,Jt.TRIANGLES,Pr,ve,be,Pa.disabled,xr,void 0,"sky",Tt.mesh.vertexBuffer,Tt.mesh.indexBuffer,Tt.mesh.segments)}(this,this.style.sky),this._showOverdrawInspector=B.showOverdrawInspector,this.depthRangeFor3D=[0,1-(w._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=Q.length-1;this.currentLayer>=0;this.currentLayer--){let ot=this.style._layers[Q[this.currentLayer]],Tt=ee[ot.source],Kt=le[ot.source];this._renderTileClippingMasks(ot,Kt),this.renderLayer(this,Tt,ot,Kt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerRe.source&&!Re.isHidden(Kt)?[Tt.sourceCaches[Re.source]]:[]),Pr=xr.filter(Re=>Re.getSource().type==="vector"),ve=xr.filter(Re=>Re.getSource().type!=="vector"),be=Re=>{(!Jt||Jt.getSource().maxzoombe(Re)),Jt||ve.forEach(Re=>be(Re)),Jt}(this.style,this.transform.zoom);ot&&function(Tt,Kt,Jt){for(let xr=0;xr0),ee&&(a.b0(B,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(le,qe){let Xe=le.context,ot=Xe.gl,Tt=Bs.unblended,Kt=new Po(ot.LEQUAL,Po.ReadWrite,[0,1]),Jt=qe.getTerrainMesh(),xr=qe.sourceCache.getRenderableTiles(),Pr=le.useProgram("terrainDepth");Xe.bindFramebuffer.set(qe.getFramebuffer("depth").framebuffer),Xe.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Xe.clear({color:a.aM.transparent,depth:1});for(let ve of xr){let be=qe.getTerrainData(ve.tileID),Re={u_matrix:le.transform.calculatePosMatrix(ve.tileID.toUnwrapped()),u_ele_delta:qe.getMeshFrameDelta(le.transform.zoom)};Pr.draw(Xe,ot.TRIANGLES,Kt,Yo.disabled,Tt,Pa.backCCW,Re,be,"terrain",Jt.vertexBuffer,Jt.indexBuffer,Jt.segments)}Xe.bindFramebuffer.set(null),Xe.viewport.set([0,0,le.width,le.height])}(this,this.style.map.terrain),function(le,qe){let Xe=le.context,ot=Xe.gl,Tt=Bs.unblended,Kt=new Po(ot.LEQUAL,Po.ReadWrite,[0,1]),Jt=qe.getTerrainMesh(),xr=qe.getCoordsTexture(),Pr=qe.sourceCache.getRenderableTiles(),ve=le.useProgram("terrainCoords");Xe.bindFramebuffer.set(qe.getFramebuffer("coords").framebuffer),Xe.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Xe.clear({color:a.aM.transparent,depth:1}),qe.coordsIndex=[];for(let be of Pr){let Re=qe.getTerrainData(be.tileID);Xe.activeTexture.set(ot.TEXTURE0),ot.bindTexture(ot.TEXTURE_2D,xr.texture);let Be={u_matrix:le.transform.calculatePosMatrix(be.tileID.toUnwrapped()),u_terrain_coords_id:(255-qe.coordsIndex.length)/255,u_texture:0,u_ele_delta:qe.getMeshFrameDelta(le.transform.zoom)};ve.draw(Xe,ot.TRIANGLES,Kt,Yo.disabled,Tt,Pa.backCCW,Be,Re,"terrain",Jt.vertexBuffer,Jt.indexBuffer,Jt.segments),qe.coordsIndex.push(be.tileID.key)}Xe.bindFramebuffer.set(null),Xe.viewport.set([0,0,le.width,le.height])}(this,this.style.map.terrain))}renderLayer(w,B,Q,ee){if(!Q.isHidden(this.transform.zoom)&&(Q.type==="background"||Q.type==="custom"||(ee||[]).length))switch(this.id=Q.id,Q.type){case"symbol":(function(le,qe,Xe,ot,Tt){if(le.renderPass!=="translucent")return;let Kt=Yo.disabled,Jt=le.colorModeForRenderPass();(Xe._unevaluatedLayout.hasValue("text-variable-anchor")||Xe._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(xr,Pr,ve,be,Re,Be,tt,We,it){let Dt=Pr.transform,Ht=yn(),rr=Re==="map",dr=Be==="map";for(let Sr of xr){let Or=be.getTile(Sr),jr=Or.getBucket(ve);if(!jr||!jr.text||!jr.text.segments.get().length)continue;let ii=a.ag(jr.textSizeData,Dt.zoom),Li=Pn(Or,1,Pr.transform.zoom),un=Wr(Sr.posMatrix,dr,rr,Pr.transform,Li),sn=ve.layout.get("icon-text-fit")!=="none"&&jr.hasIconData();if(ii){let In=Math.pow(2,Dt.zoom-Or.tileID.overscaledZ),Kn=Pr.style.map.terrain?(fa,$a)=>Pr.style.map.terrain.getElevation(Sr,fa,$a):null,Aa=Ht.translatePosition(Dt,Or,tt,We);mf(jr,rr,dr,it,Dt,un,Sr.posMatrix,In,ii,sn,Ht,Aa,Sr.toUnwrapped(),Kn)}}}(ot,le,Xe,qe,Xe.layout.get("text-rotation-alignment"),Xe.layout.get("text-pitch-alignment"),Xe.paint.get("text-translate"),Xe.paint.get("text-translate-anchor"),Tt),Xe.paint.get("icon-opacity").constantOr(1)!==0&&_h(le,qe,Xe,ot,!1,Xe.paint.get("icon-translate"),Xe.paint.get("icon-translate-anchor"),Xe.layout.get("icon-rotation-alignment"),Xe.layout.get("icon-pitch-alignment"),Xe.layout.get("icon-keep-upright"),Kt,Jt),Xe.paint.get("text-opacity").constantOr(1)!==0&&_h(le,qe,Xe,ot,!0,Xe.paint.get("text-translate"),Xe.paint.get("text-translate-anchor"),Xe.layout.get("text-rotation-alignment"),Xe.layout.get("text-pitch-alignment"),Xe.layout.get("text-keep-upright"),Kt,Jt),qe.map.showCollisionBoxes&&(Hu(le,qe,Xe,ot,!0),Hu(le,qe,Xe,ot,!1))})(w,B,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(le,qe,Xe,ot){if(le.renderPass!=="translucent")return;let Tt=Xe.paint.get("circle-opacity"),Kt=Xe.paint.get("circle-stroke-width"),Jt=Xe.paint.get("circle-stroke-opacity"),xr=!Xe.layout.get("circle-sort-key").isConstant();if(Tt.constantOr(1)===0&&(Kt.constantOr(1)===0||Jt.constantOr(1)===0))return;let Pr=le.context,ve=Pr.gl,be=le.depthModeForSublayer(0,Po.ReadOnly),Re=Yo.disabled,Be=le.colorModeForRenderPass(),tt=[];for(let We=0;WeWe.sortKey-it.sortKey);for(let We of tt){let{programConfiguration:it,program:Dt,layoutVertexBuffer:Ht,indexBuffer:rr,uniformValues:dr,terrainData:Sr}=We.state;Dt.draw(Pr,ve.TRIANGLES,be,Re,Be,Pa.disabled,dr,Sr,Xe.id,Ht,rr,We.segments,Xe.paint,le.transform.zoom,it)}})(w,B,Q,ee);break;case"heatmap":(function(le,qe,Xe,ot){if(Xe.paint.get("heatmap-opacity")===0)return;let Tt=le.context;if(le.style.map.terrain){for(let Kt of ot){let Jt=qe.getTile(Kt);qe.hasRenderableParent(Kt)||(le.renderPass==="offscreen"?yf(le,Jt,Xe,Kt):le.renderPass==="translucent"&&Yc(le,Xe,Kt))}Tt.viewport.set([0,0,le.width,le.height])}else le.renderPass==="offscreen"?function(Kt,Jt,xr,Pr){let ve=Kt.context,be=ve.gl,Re=Yo.disabled,Be=new Bs([be.ONE,be.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(tt,We,it){let Dt=tt.gl;tt.activeTexture.set(Dt.TEXTURE1),tt.viewport.set([0,0,We.width/4,We.height/4]);let Ht=it.heatmapFbos.get(a.aU);Ht?(Dt.bindTexture(Dt.TEXTURE_2D,Ht.colorAttachment.get()),tt.bindFramebuffer.set(Ht.framebuffer)):(Ht=eh(tt,We.width/4,We.height/4),it.heatmapFbos.set(a.aU,Ht))})(ve,Kt,xr),ve.clear({color:a.aM.transparent});for(let tt=0;tt20&&Kt.texParameterf(Kt.TEXTURE_2D,Tt.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Tt.extTextureFilterAnisotropicMax);let jr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(tt),ii=jr?tt:null,Li=ii?ii.posMatrix:le.transform.calculatePosMatrix(tt.toUnwrapped(),Be),un=fl(Li,Sr||[0,0],dr||1,rr,Xe);Jt instanceof Gt?xr.draw(Tt,Kt.TRIANGLES,We,Yo.disabled,Pr,Pa.disabled,un,jr,Xe.id,Jt.boundsBuffer,le.quadTriangleIndexBuffer,Jt.boundsSegments):xr.draw(Tt,Kt.TRIANGLES,We,ve[tt.overscaledZ],Pr,Pa.disabled,un,jr,Xe.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments)}})(w,B,Q,ee);break;case"background":(function(le,qe,Xe,ot){let Tt=Xe.paint.get("background-color"),Kt=Xe.paint.get("background-opacity");if(Kt===0)return;let Jt=le.context,xr=Jt.gl,Pr=le.transform,ve=Pr.tileSize,be=Xe.paint.get("background-pattern");if(le.isPatternMissing(be))return;let Re=!be&&Tt.a===1&&Kt===1&&le.opaquePassEnabledForLayer()?"opaque":"translucent";if(le.renderPass!==Re)return;let Be=Yo.disabled,tt=le.depthModeForSublayer(0,Re==="opaque"?Po.ReadWrite:Po.ReadOnly),We=le.colorModeForRenderPass(),it=le.useProgram(be?"backgroundPattern":"background"),Dt=ot||Pr.coveringTiles({tileSize:ve,terrain:le.style.map.terrain});be&&(Jt.activeTexture.set(xr.TEXTURE0),le.imageManager.bind(le.context));let Ht=Xe.getCrossfadeParameters();for(let rr of Dt){let dr=ot?rr.posMatrix:le.transform.calculatePosMatrix(rr.toUnwrapped()),Sr=be?Su(dr,Kt,le,be,{tileID:rr,tileSize:ve},Ht):Zl(dr,Kt,Tt),Or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(rr);it.draw(Jt,xr.TRIANGLES,tt,Be,We,Pa.disabled,Sr,Or,Xe.id,le.tileExtentBuffer,le.quadTriangleIndexBuffer,le.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(le,qe,Xe){let ot=le.context,Tt=Xe.implementation;if(le.renderPass==="offscreen"){let Kt=Tt.prerender;Kt&&(le.setCustomLayerDefaults(),ot.setColorMode(le.colorModeForRenderPass()),Kt.call(Tt,ot.gl,le.transform.customLayerMatrix()),ot.setDirty(),le.setBaseState())}else if(le.renderPass==="translucent"){le.setCustomLayerDefaults(),ot.setColorMode(le.colorModeForRenderPass()),ot.setStencilMode(Yo.disabled);let Kt=Tt.renderingMode==="3d"?new Po(le.context.gl.LEQUAL,Po.ReadWrite,le.depthRangeFor3D):le.depthModeForSublayer(0,Po.ReadOnly);ot.setDepthMode(Kt),Tt.render(ot.gl,le.transform.customLayerMatrix(),{farZ:le.transform.farZ,nearZ:le.transform.nearZ,fov:le.transform._fov,modelViewProjectionMatrix:le.transform.modelViewProjectionMatrix,projectionMatrix:le.transform.projectionMatrix}),ot.setDirty(),le.setBaseState(),ot.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,B,Q,ee,le){if(!Q[0]&&!Q[1])return w;let qe=le?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(qe){let Tt=Math.sin(qe),Kt=Math.cos(qe);Q=[Q[0]*Kt-Q[1]*Tt,Q[0]*Tt+Q[1]*Kt]}let Xe=[le?Q[0]:Pn(B,Q[0],this.transform.zoom),le?Q[1]:Pn(B,Q[1],this.transform.zoom),0],ot=new Float32Array(16);return a.J(ot,w,Xe),ot}saveTileTexture(w){let B=this._tileTextures[w.size[0]];B?B.push(w):this._tileTextures[w.size[0]]=[w]}getTileTexture(w){let B=this._tileTextures[w];return B&&B.length>0?B.pop():null}isPatternMissing(w){if(!w)return!1;if(!w.from||!w.to)return!0;let B=this.imageManager.getPattern(w.from.toString()),Q=this.imageManager.getPattern(w.to.toString());return!B||!Q}useProgram(w,B){this.cache=this.cache||{};let Q=w+(B?B.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[Q]||(this.cache[Q]=new fn(this.context,jn[w],B,nc[w],this._showOverdrawInspector,this.style.map.terrain)),this.cache[Q]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let w=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(w.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new g(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:w,drawingBufferHeight:B}=this.context.gl;return this.width!==w||this.height!==B}}class ks{constructor(w,B){this.points=w,this.planes=B}static fromInvProjectionMatrix(w,B,Q){let ee=Math.pow(2,Q),le=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(Xe=>{let ot=1/(Xe=a.af([],Xe,w))[3]/B*ee;return a.b1(Xe,Xe,[ot,ot,1/Xe[3],ot])}),qe=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(Xe=>{let ot=function(xr,Pr){var ve=Pr[0],be=Pr[1],Re=Pr[2],Be=ve*ve+be*be+Re*Re;return Be>0&&(Be=1/Math.sqrt(Be)),xr[0]=Pr[0]*Be,xr[1]=Pr[1]*Be,xr[2]=Pr[2]*Be,xr}([],function(xr,Pr,ve){var be=Pr[0],Re=Pr[1],Be=Pr[2],tt=ve[0],We=ve[1],it=ve[2];return xr[0]=Re*it-Be*We,xr[1]=Be*tt-be*it,xr[2]=be*We-Re*tt,xr}([],L([],le[Xe[0]],le[Xe[1]]),L([],le[Xe[2]],le[Xe[1]]))),Tt=-((Kt=ot)[0]*(Jt=le[Xe[1]])[0]+Kt[1]*Jt[1]+Kt[2]*Jt[2]);var Kt,Jt;return ot.concat(Tt)});return new ks(le,qe)}}class bc{constructor(w,B){this.min=w,this.max=B,this.center=function(Q,ee,le){return Q[0]=.5*ee[0],Q[1]=.5*ee[1],Q[2]=.5*ee[2],Q}([],function(Q,ee,le){return Q[0]=ee[0]+le[0],Q[1]=ee[1]+le[1],Q[2]=ee[2]+le[2],Q}([],this.min,this.max))}quadrant(w){let B=[w%2==0,w<2],Q=E(this.min),ee=E(this.max);for(let le=0;le=0&&qe++;if(qe===0)return 0;qe!==B.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let le=Number.MAX_VALUE,qe=-Number.MAX_VALUE;for(let Xe=0;Xethis.max[ee]-this.min[ee])return 0}return 1}}class hu{constructor(w=0,B=0,Q=0,ee=0){if(isNaN(w)||w<0||isNaN(B)||B<0||isNaN(Q)||Q<0||isNaN(ee)||ee<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=w,this.bottom=B,this.left=Q,this.right=ee}interpolate(w,B,Q){return B.top!=null&&w.top!=null&&(this.top=a.y.number(w.top,B.top,Q)),B.bottom!=null&&w.bottom!=null&&(this.bottom=a.y.number(w.bottom,B.bottom,Q)),B.left!=null&&w.left!=null&&(this.left=a.y.number(w.left,B.left,Q)),B.right!=null&&w.right!=null&&(this.right=a.y.number(w.right,B.right,Q)),this}getCenter(w,B){let Q=a.ac((this.left+w-this.right)/2,0,w),ee=a.ac((this.top+B-this.bottom)/2,0,B);return new a.P(Q,ee)}equals(w){return this.top===w.top&&this.bottom===w.bottom&&this.left===w.left&&this.right===w.right}clone(){return new hu(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let _u=85.051129;class al{constructor(w,B,Q,ee,le){this.tileSize=512,this._renderWorldCopies=le===void 0||!!le,this._minZoom=w||0,this._maxZoom=B||22,this._minPitch=Q==null?0:Q,this._maxPitch=ee==null?60:ee,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new hu,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let w=new al(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return w.apply(this),w}apply(w){this.tileSize=w.tileSize,this.latRange=w.latRange,this.lngRange=w.lngRange,this.width=w.width,this.height=w.height,this._center=w._center,this._elevation=w._elevation,this.minElevationForCurrentTile=w.minElevationForCurrentTile,this.zoom=w.zoom,this.angle=w.angle,this._fov=w._fov,this._pitch=w._pitch,this._unmodified=w._unmodified,this._edgeInsets=w._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(w){this._minZoom!==w&&(this._minZoom=w,this.zoom=Math.max(this.zoom,w))}get maxZoom(){return this._maxZoom}set maxZoom(w){this._maxZoom!==w&&(this._maxZoom=w,this.zoom=Math.min(this.zoom,w))}get minPitch(){return this._minPitch}set minPitch(w){this._minPitch!==w&&(this._minPitch=w,this.pitch=Math.max(this.pitch,w))}get maxPitch(){return this._maxPitch}set maxPitch(w){this._maxPitch!==w&&(this._maxPitch=w,this.pitch=Math.min(this.pitch,w))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(w){w===void 0?w=!0:w===null&&(w=!1),this._renderWorldCopies=w}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(w){let B=-a.b3(w,-180,180)*Math.PI/180;this.angle!==B&&(this._unmodified=!1,this.angle=B,this._calcMatrices(),this.rotationMatrix=function(){var Q=new a.A(4);return a.A!=Float32Array&&(Q[1]=0,Q[2]=0),Q[0]=1,Q[3]=1,Q}(),function(Q,ee,le){var qe=ee[0],Xe=ee[1],ot=ee[2],Tt=ee[3],Kt=Math.sin(le),Jt=Math.cos(le);Q[0]=qe*Jt+ot*Kt,Q[1]=Xe*Jt+Tt*Kt,Q[2]=qe*-Kt+ot*Jt,Q[3]=Xe*-Kt+Tt*Jt}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(w){let B=a.ac(w,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==B&&(this._unmodified=!1,this._pitch=B,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(w){w=Math.max(.01,Math.min(60,w)),this._fov!==w&&(this._unmodified=!1,this._fov=w/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(w){let B=Math.min(Math.max(w,this.minZoom),this.maxZoom);this._zoom!==B&&(this._unmodified=!1,this._zoom=B,this.tileZoom=Math.max(0,Math.floor(B)),this.scale=this.zoomScale(B),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(w){w.lat===this._center.lat&&w.lng===this._center.lng||(this._unmodified=!1,this._center=w,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(w){w!==this._elevation&&(this._elevation=w,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(w){this._edgeInsets.equals(w)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,w,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(w){return this._edgeInsets.equals(w)}interpolatePadding(w,B,Q){this._unmodified=!1,this._edgeInsets.interpolate(w,B,Q),this._constrain(),this._calcMatrices()}coveringZoomLevel(w){let B=(w.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/w.tileSize));return Math.max(0,B)}getVisibleUnwrappedCoordinates(w){let B=[new a.b4(0,w)];if(this._renderWorldCopies){let Q=this.pointCoordinate(new a.P(0,0)),ee=this.pointCoordinate(new a.P(this.width,0)),le=this.pointCoordinate(new a.P(this.width,this.height)),qe=this.pointCoordinate(new a.P(0,this.height)),Xe=Math.floor(Math.min(Q.x,ee.x,le.x,qe.x)),ot=Math.floor(Math.max(Q.x,ee.x,le.x,qe.x)),Tt=1;for(let Kt=Xe-Tt;Kt<=ot+Tt;Kt++)Kt!==0&&B.push(new a.b4(Kt,w))}return B}coveringTiles(w){var B,Q;let ee=this.coveringZoomLevel(w),le=ee;if(w.minzoom!==void 0&&eew.maxzoom&&(ee=w.maxzoom);let qe=this.pointCoordinate(this.getCameraPoint()),Xe=a.Z.fromLngLat(this.center),ot=Math.pow(2,ee),Tt=[ot*qe.x,ot*qe.y,0],Kt=[ot*Xe.x,ot*Xe.y,0],Jt=ks.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),xr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(xr=ee);let Pr=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,ve=We=>({aabb:new bc([We*ot,0,0],[(We+1)*ot,ot,0]),zoom:0,x:0,y:0,wrap:We,fullyVisible:!1}),be=[],Re=[],Be=ee,tt=w.reparseOverscaled?le:ee;if(this._renderWorldCopies)for(let We=1;We<=3;We++)be.push(ve(-We)),be.push(ve(We));for(be.push(ve(0));be.length>0;){let We=be.pop(),it=We.x,Dt=We.y,Ht=We.fullyVisible;if(!Ht){let jr=We.aabb.intersects(Jt);if(jr===0)continue;Ht=jr===2}let rr=w.terrain?Tt:Kt,dr=We.aabb.distanceX(rr),Sr=We.aabb.distanceY(rr),Or=Math.max(Math.abs(dr),Math.abs(Sr));if(We.zoom===Be||Or>Pr+(1<=xr){let jr=Be-We.zoom,ii=Tt[0]-.5-(it<>1),un=We.zoom+1,sn=We.aabb.quadrant(jr);if(w.terrain){let In=new a.S(un,We.wrap,un,ii,Li),Kn=w.terrain.getMinMaxElevation(In),Aa=(B=Kn.minElevation)!==null&&B!==void 0?B:this.elevation,fa=(Q=Kn.maxElevation)!==null&&Q!==void 0?Q:this.elevation;sn=new bc([sn.min[0],sn.min[1],Aa],[sn.max[0],sn.max[1],fa])}be.push({aabb:sn,zoom:un,x:ii,y:Li,wrap:We.wrap,fullyVisible:Ht})}}return Re.sort((We,it)=>We.distanceSq-it.distanceSq).map(We=>We.tileID)}resize(w,B){this.width=w,this.height=B,this.pixelsToGLUnits=[2/w,-2/B],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(w){return Math.pow(2,w)}scaleZoom(w){return Math.log(w)/Math.LN2}project(w){let B=a.ac(w.lat,-85.051129,_u);return new a.P(a.O(w.lng)*this.worldSize,a.Q(B)*this.worldSize)}unproject(w){return new a.Z(w.x/this.worldSize,w.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(w){let B=this.elevation,Q=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,ee=this.pointLocation(this.centerPoint,w),le=w.getElevationForLngLatZoom(ee,this.tileZoom);if(!(this.elevation-le))return;let qe=Q+B-le,Xe=Math.cos(this._pitch)*this.cameraToCenterDistance/qe/a.b5(1,ee.lat),ot=this.scaleZoom(Xe/this.tileSize);this._elevation=le,this._center=ee,this.zoom=ot}setLocationAtPoint(w,B){let Q=this.pointCoordinate(B),ee=this.pointCoordinate(this.centerPoint),le=this.locationCoordinate(w),qe=new a.Z(le.x-(Q.x-ee.x),le.y-(Q.y-ee.y));this.center=this.coordinateLocation(qe),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(w,B){return B?this.coordinatePoint(this.locationCoordinate(w),B.getElevationForLngLatZoom(w,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(w))}pointLocation(w,B){return this.coordinateLocation(this.pointCoordinate(w,B))}locationCoordinate(w){return a.Z.fromLngLat(w)}coordinateLocation(w){return w&&w.toLngLat()}pointCoordinate(w,B){if(B){let xr=B.pointCoordinate(w);if(xr!=null)return xr}let Q=[w.x,w.y,0,1],ee=[w.x,w.y,1,1];a.af(Q,Q,this.pixelMatrixInverse),a.af(ee,ee,this.pixelMatrixInverse);let le=Q[3],qe=ee[3],Xe=Q[1]/le,ot=ee[1]/qe,Tt=Q[2]/le,Kt=ee[2]/qe,Jt=Tt===Kt?0:(0-Tt)/(Kt-Tt);return new a.Z(a.y.number(Q[0]/le,ee[0]/qe,Jt)/this.worldSize,a.y.number(Xe,ot,Jt)/this.worldSize)}coordinatePoint(w,B=0,Q=this.pixelMatrix){let ee=[w.x*this.worldSize,w.y*this.worldSize,B,1];return a.af(ee,ee,Q),new a.P(ee[0]/ee[3],ee[1]/ee[3])}getBounds(){let w=Math.max(0,this.height/2-this.getHorizon());return new ce().extend(this.pointLocation(new a.P(0,w))).extend(this.pointLocation(new a.P(this.width,w))).extend(this.pointLocation(new a.P(this.width,this.height))).extend(this.pointLocation(new a.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new ce([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(w){w?(this.lngRange=[w.getWest(),w.getEast()],this.latRange=[w.getSouth(),w.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,_u])}calculateTileMatrix(w){let B=w.canonical,Q=this.worldSize/this.zoomScale(B.z),ee=B.x+Math.pow(2,B.z)*w.wrap,le=a.an(new Float64Array(16));return a.J(le,le,[ee*Q,B.y*Q,0]),a.K(le,le,[Q/a.X,Q/a.X,1]),le}calculatePosMatrix(w,B=!1){let Q=w.key,ee=B?this._alignedPosMatrixCache:this._posMatrixCache;if(ee[Q])return ee[Q];let le=this.calculateTileMatrix(w);return a.L(le,B?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,le),ee[Q]=new Float32Array(le),ee[Q]}calculateFogMatrix(w){let B=w.key,Q=this._fogMatrixCache;if(Q[B])return Q[B];let ee=this.calculateTileMatrix(w);return a.L(ee,this.fogMatrix,ee),Q[B]=new Float32Array(ee),Q[B]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(w,B){B=a.ac(+B,this.minZoom,this.maxZoom);let Q={center:new a.N(w.lng,w.lat),zoom:B},ee=this.lngRange;if(!this._renderWorldCopies&&ee===null){let We=179.9999999999;ee=[-We,We]}let le=this.tileSize*this.zoomScale(Q.zoom),qe=0,Xe=le,ot=0,Tt=le,Kt=0,Jt=0,{x:xr,y:Pr}=this.size;if(this.latRange){let We=this.latRange;qe=a.Q(We[1])*le,Xe=a.Q(We[0])*le,Xe-qeXe&&(Be=Xe-We)}if(ee){let We=(ot+Tt)/2,it=ve;this._renderWorldCopies&&(it=a.b3(ve,We-le/2,We+le/2));let Dt=xr/2;it-DtTt&&(Re=Tt-Dt)}if(Re!==void 0||Be!==void 0){let We=new a.P(Re!=null?Re:ve,Be!=null?Be:be);Q.center=this.unproject.call({worldSize:le},We).wrap()}return Q}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let w=this._unmodified,{center:B,zoom:Q}=this.getConstrained(this.center,this.zoom);this.center=B,this.zoom=Q,this._unmodified=w,this._constraining=!1}_calcMatrices(){if(!this.height)return;let w=this.centerOffset,B=this.point.x,Q=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=a.b5(1,this.center.lat)*this.worldSize;let ee=a.an(new Float64Array(16));a.K(ee,ee,[this.width/2,-this.height/2,1]),a.J(ee,ee,[1,-1,0]),this.labelPlaneMatrix=ee,ee=a.an(new Float64Array(16)),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[-1,-1,0]),a.K(ee,ee,[2/this.width,2/this.height,1]),this.glCoordMatrix=ee;let le=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),qe=Math.min(this.elevation,this.minElevationForCurrentTile),Xe=le-qe*this._pixelPerMeter/Math.cos(this._pitch),ot=qe<0?Xe:le,Tt=Math.PI/2+this._pitch,Kt=this._fov*(.5+w.y/this.height),Jt=Math.sin(Kt)*ot/Math.sin(a.ac(Math.PI-Tt-Kt,.01,Math.PI-.01)),xr=this.getHorizon(),Pr=2*Math.atan(xr/this.cameraToCenterDistance)*(.5+w.y/(2*xr)),ve=Math.sin(Pr)*ot/Math.sin(a.ac(Math.PI-Tt-Pr,.01,Math.PI-.01)),be=Math.min(Jt,ve);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*be+ot),this.nearZ=this.height/50,ee=new Float64Array(16),a.b6(ee,this._fov,this.width/this.height,this.nearZ,this.farZ),ee[8]=2*-w.x/this.width,ee[9]=2*w.y/this.height,this.projectionMatrix=a.ae(ee),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[0,0,-this.cameraToCenterDistance]),a.b7(ee,ee,this._pitch),a.ad(ee,ee,this.angle),a.J(ee,ee,[-B,-Q,0]),this.mercatorMatrix=a.K([],ee,[this.worldSize,this.worldSize,this.worldSize]),a.K(ee,ee,[1,1,this._pixelPerMeter]),this.pixelMatrix=a.L(new Float64Array(16),this.labelPlaneMatrix,ee),a.J(ee,ee,[0,0,-this.elevation]),this.modelViewProjectionMatrix=ee,this.invModelViewProjectionMatrix=a.as([],ee),this.fogMatrix=new Float64Array(16),a.b6(this.fogMatrix,this._fov,this.width/this.height,le,this.farZ),this.fogMatrix[8]=2*-w.x/this.width,this.fogMatrix[9]=2*w.y/this.height,a.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),a.b7(this.fogMatrix,this.fogMatrix,this._pitch),a.ad(this.fogMatrix,this.fogMatrix,this.angle),a.J(this.fogMatrix,this.fogMatrix,[-B,-Q,0]),a.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=a.L(new Float64Array(16),this.labelPlaneMatrix,ee);let Re=this.width%2/2,Be=this.height%2/2,tt=Math.cos(this.angle),We=Math.sin(this.angle),it=B-Math.round(B)+tt*Re+We*Be,Dt=Q-Math.round(Q)+tt*Be+We*Re,Ht=new Float64Array(ee);if(a.J(Ht,Ht,[it>.5?it-1:it,Dt>.5?Dt-1:Dt,0]),this.alignedModelViewProjectionMatrix=Ht,ee=a.as(new Float64Array(16),this.pixelMatrix),!ee)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ee,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let w=this.pointCoordinate(new a.P(0,0)),B=[w.x*this.worldSize,w.y*this.worldSize,0,1];return a.af(B,B,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let w=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.P(0,w))}getCameraQueryGeometry(w){let B=this.getCameraPoint();if(w.length===1)return[w[0],B];{let Q=B.x,ee=B.y,le=B.x,qe=B.y;for(let Xe of w)Q=Math.min(Q,Xe.x),ee=Math.min(ee,Xe.y),le=Math.max(le,Xe.x),qe=Math.max(qe,Xe.y);return[new a.P(Q,ee),new a.P(le,ee),new a.P(le,qe),new a.P(Q,qe),new a.P(Q,ee)]}}lngLatToCameraDepth(w,B){let Q=this.locationCoordinate(w),ee=[Q.x*this.worldSize,Q.y*this.worldSize,B,1];return a.af(ee,ee,this.modelViewProjectionMatrix),ee[2]/ee[3]}}function nh(ue,w){let B,Q=!1,ee=null,le=null,qe=()=>{ee=null,Q&&(ue.apply(le,B),ee=setTimeout(qe,w),Q=!1)};return(...Xe)=>(Q=!0,le=this,B=Xe,ee||qe(),ee)}class bh{constructor(w){this._getCurrentHash=()=>{let B=window.location.hash.replace("#","");if(this._hashName){let Q;return B.split("&").map(ee=>ee.split("=")).forEach(ee=>{ee[0]===this._hashName&&(Q=ee)}),(Q&&Q[1]||"").split("/")}return B.split("/")},this._onHashChange=()=>{let B=this._getCurrentHash();if(B.length>=3&&!B.some(Q=>isNaN(Q))){let Q=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(B[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+B[2],+B[1]],zoom:+B[0],bearing:Q,pitch:+(B[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let B=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,B)},this._removeHash=()=>{let B=this._getCurrentHash();if(B.length===0)return;let Q=B.join("/"),ee=Q;ee.split("&").length>0&&(ee=ee.split("&")[0]),this._hashName&&(ee=`${this._hashName}=${Q}`);let le=window.location.hash.replace(ee,"");le.startsWith("#&")?le=le.slice(0,1)+le.slice(2):le==="#"&&(le="");let qe=window.location.href.replace(/(#.+)?$/,le);qe=qe.replace("&&","&"),window.history.replaceState(window.history.state,null,qe)},this._updateHash=nh(this._updateHashUnthrottled,300),this._hashName=w&&encodeURIComponent(w)}addTo(w){return this._map=w,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(w){let B=this._map.getCenter(),Q=Math.round(100*this._map.getZoom())/100,ee=Math.ceil((Q*Math.LN2+Math.log(512/360/.5))/Math.LN10),le=Math.pow(10,ee),qe=Math.round(B.lng*le)/le,Xe=Math.round(B.lat*le)/le,ot=this._map.getBearing(),Tt=this._map.getPitch(),Kt="";if(Kt+=w?`/${qe}/${Xe}/${Q}`:`${Q}/${Xe}/${qe}`,(ot||Tt)&&(Kt+="/"+Math.round(10*ot)/10),Tt&&(Kt+=`/${Math.round(Tt)}`),this._hashName){let Jt=this._hashName,xr=!1,Pr=window.location.hash.slice(1).split("&").map(ve=>{let be=ve.split("=")[0];return be===Jt?(xr=!0,`${be}=${Kt}`):ve}).filter(ve=>ve);return xr||Pr.push(`${Jt}=${Kt}`),`#${Pr.join("&")}`}return`#${Kt}`}}let zu={linearity:.3,easing:a.b8(0,0,.3,1)},Fc=a.e({deceleration:2500,maxSpeed:1400},zu),wc=a.e({deceleration:20,maxSpeed:1400},zu),bd=a.e({deceleration:1e3,maxSpeed:360},zu),_f=a.e({deceleration:1e3,maxSpeed:90},zu);class Lf{constructor(w){this._map=w,this.clear()}clear(){this._inertiaBuffer=[]}record(w){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:u.now(),settings:w})}_drainInertiaBuffer(){let w=this._inertiaBuffer,B=u.now();for(;w.length>0&&B-w[0].time>160;)w.shift()}_onMoveEnd(w){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let B={zoom:0,bearing:0,pitch:0,pan:new a.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:le}of this._inertiaBuffer)B.zoom+=le.zoomDelta||0,B.bearing+=le.bearingDelta||0,B.pitch+=le.pitchDelta||0,le.panDelta&&B.pan._add(le.panDelta),le.around&&(B.around=le.around),le.pinchAround&&(B.pinchAround=le.pinchAround);let Q=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ee={};if(B.pan.mag()){let le=xf(B.pan.mag(),Q,a.e({},Fc,w||{}));ee.offset=B.pan.mult(le.amount/B.pan.mag()),ee.center=this._map.transform.center,Ou(ee,le)}if(B.zoom){let le=xf(B.zoom,Q,wc);ee.zoom=this._map.transform.zoom+le.amount,Ou(ee,le)}if(B.bearing){let le=xf(B.bearing,Q,bd);ee.bearing=this._map.transform.bearing+a.ac(le.amount,-179,179),Ou(ee,le)}if(B.pitch){let le=xf(B.pitch,Q,_f);ee.pitch=this._map.transform.pitch+le.amount,Ou(ee,le)}if(ee.zoom||ee.bearing){let le=B.pinchAround===void 0?B.around:B.pinchAround;ee.around=le?this._map.unproject(le):this._map.getCenter()}return this.clear(),a.e(ee,{noMoveStart:!0})}}function Ou(ue,w){(!ue.duration||ue.durationB.unproject(ot)),Xe=le.reduce((ot,Tt,Kt,Jt)=>ot.add(Tt.div(Jt.length)),new a.P(0,0));super(w,{points:le,point:Xe,lngLats:qe,lngLat:B.unproject(Xe),originalEvent:Q}),this._defaultPrevented=!1}}class Vh extends a.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(w,B,Q){super(w,{originalEvent:Q}),this._defaultPrevented=!1}}class Pf{constructor(w,B){this._map=w,this._clickTolerance=B.clickTolerance}reset(){delete this._mousedownPos}wheel(w){return this._firePreventable(new Vh(w.type,this._map,w))}mousedown(w,B){return this._mousedownPos=B,this._firePreventable(new jl(w.type,this._map,w))}mouseup(w){this._map.fire(new jl(w.type,this._map,w))}click(w,B){this._mousedownPos&&this._mousedownPos.dist(B)>=this._clickTolerance||this._map.fire(new jl(w.type,this._map,w))}dblclick(w){return this._firePreventable(new jl(w.type,this._map,w))}mouseover(w){this._map.fire(new jl(w.type,this._map,w))}mouseout(w){this._map.fire(new jl(w.type,this._map,w))}touchstart(w){return this._firePreventable(new lf(w.type,this._map,w))}touchmove(w){this._map.fire(new lf(w.type,this._map,w))}touchend(w){this._map.fire(new lf(w.type,this._map,w))}touchcancel(w){this._map.fire(new lf(w.type,this._map,w))}_firePreventable(w){if(this._map.fire(w),w.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Ls{constructor(w){this._map=w}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(w){this._map.fire(new jl(w.type,this._map,w))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new jl("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(w){this._delayContextMenu?this._contextMenuEvent=w:this._ignoreContextMenu||this._map.fire(new jl(w.type,this._map,w)),this._map.listens("contextmenu")&&w.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class du{constructor(w){this._map=w}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(w){return this.transform.pointLocation(a.P.convert(w),this._map.terrain)}}class Cu{constructor(w,B){this._map=w,this._tr=new du(w),this._el=w.getCanvasContainer(),this._container=w.getContainer(),this._clickTolerance=B.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(w,B){this.isEnabled()&&w.shiftKey&&w.button===0&&(c.disableDrag(),this._startPos=this._lastPos=B,this._active=!0)}mousemoveWindow(w,B){if(!this._active)return;let Q=B;if(this._lastPos.equals(Q)||!this._box&&Q.dist(this._startPos)le.fitScreenCoordinates(Q,ee,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",w)}keydown(w){this._active&&w.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",w))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(c.remove(this._box),this._box=null),c.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(w,B){return this._map.fire(new a.k(w,{originalEvent:B}))}}function Wf(ue,w){if(ue.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${ue.length}, points ${w.length}`);let B={};for(let Q=0;Qthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=w.timeStamp),Q.length===this.numTouches&&(this.centroid=function(ee){let le=new a.P(0,0);for(let qe of ee)le._add(qe);return le.div(ee.length)}(B),this.touches=Wf(Q,B)))}touchmove(w,B,Q){if(this.aborted||!this.centroid)return;let ee=Wf(Q,B);for(let le in this.touches){let qe=ee[le];(!qe||qe.dist(this.touches[le])>30)&&(this.aborted=!0)}}touchend(w,B,Q){if((!this.centroid||w.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){let ee=!this.aborted&&this.centroid;if(this.reset(),ee)return ee}}}class bf{constructor(w){this.singleTap=new Vs(w),this.numTaps=w.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(w,B,Q){this.singleTap.touchstart(w,B,Q)}touchmove(w,B,Q){this.singleTap.touchmove(w,B,Q)}touchend(w,B,Q){let ee=this.singleTap.touchend(w,B,Q);if(ee){let le=w.timeStamp-this.lastTime<500,qe=!this.lastTap||this.lastTap.dist(ee)<30;if(le&&qe||this.reset(),this.count++,this.lastTime=w.timeStamp,this.lastTap=ee,this.count===this.numTaps)return this.reset(),ee}}}class zc{constructor(w){this._tr=new du(w),this._zoomIn=new bf({numTouches:1,numTaps:2}),this._zoomOut=new bf({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(w,B,Q){this._zoomIn.touchstart(w,B,Q),this._zoomOut.touchstart(w,B,Q)}touchmove(w,B,Q){this._zoomIn.touchmove(w,B,Q),this._zoomOut.touchmove(w,B,Q)}touchend(w,B,Q){let ee=this._zoomIn.touchend(w,B,Q),le=this._zoomOut.touchend(w,B,Q),qe=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Xe=>Xe.easeTo({duration:300,zoom:qe.zoom+1,around:qe.unproject(ee)},{originalEvent:w})}):le?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Xe=>Xe.easeTo({duration:300,zoom:qe.zoom-1,around:qe.unproject(le)},{originalEvent:w})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Wu{constructor(w){this._enabled=!!w.enable,this._moveStateManager=w.moveStateManager,this._clickTolerance=w.clickTolerance||1,this._moveFunction=w.move,this._activateOnStart=!!w.activateOnStart,w.assignEvents(this),this.reset()}reset(w){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(w)}_move(...w){let B=this._moveFunction(...w);if(B.bearingDelta||B.pitchDelta||B.around||B.panDelta)return this._active=!0,B}dragStart(w,B){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(w)&&(this._moveStateManager.startMove(w),this._lastPoint=B.length?B[0]:B,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(w,B){if(!this.isEnabled())return;let Q=this._lastPoint;if(!Q)return;if(w.preventDefault(),!this._moveStateManager.isValidMoveEvent(w))return void this.reset(w);let ee=B.length?B[0]:B;return!this._moved&&ee.dist(Q){ue.mousedown=ue.dragStart,ue.mousemoveWindow=ue.dragMove,ue.mouseup=ue.dragEnd,ue.contextmenu=w=>{w.preventDefault()}},Wl=({enable:ue,clickTolerance:w,bearingDegreesPerPixelMoved:B=.8})=>{let Q=new Xu({checkCorrectEvent:ee=>c.mouseButton(ee)===0&&ee.ctrlKey||c.mouseButton(ee)===2});return new Wu({clickTolerance:w,move:(ee,le)=>({bearingDelta:(le.x-ee.x)*B}),moveStateManager:Q,enable:ue,assignEvents:Xf})},ah=({enable:ue,clickTolerance:w,pitchDegreesPerPixelMoved:B=-.5})=>{let Q=new Xu({checkCorrectEvent:ee=>c.mouseButton(ee)===0&&ee.ctrlKey||c.mouseButton(ee)===2});return new Wu({clickTolerance:w,move:(ee,le)=>({pitchDelta:(le.y-ee.y)*B}),moveStateManager:Q,enable:ue,assignEvents:Xf})};class Zu{constructor(w,B){this._clickTolerance=w.clickTolerance||1,this._map=B,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new a.P(0,0)}_shouldBePrevented(w){return w<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(w,B,Q){return this._calculateTransform(w,B,Q)}touchmove(w,B,Q){if(this._active){if(!this._shouldBePrevented(Q.length))return w.preventDefault(),this._calculateTransform(w,B,Q);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",w)}}touchend(w,B,Q){this._calculateTransform(w,B,Q),this._active&&this._shouldBePrevented(Q.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(w,B,Q){Q.length>0&&(this._active=!0);let ee=Wf(Q,B),le=new a.P(0,0),qe=new a.P(0,0),Xe=0;for(let Tt in ee){let Kt=ee[Tt],Jt=this._touches[Tt];Jt&&(le._add(Kt),qe._add(Kt.sub(Jt)),Xe++,ee[Tt]=Kt)}if(this._touches=ee,this._shouldBePrevented(Xe)||!qe.mag())return;let ot=qe.div(Xe);return this._sum._add(ot),this._sum.mag()Math.abs(ue.x)}class Bc extends Oc{constructor(w){super(),this._currentTouchCount=0,this._map=w}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(w,B,Q){super.touchstart(w,B,Q),this._currentTouchCount=Q.length}_start(w){this._lastPoints=w,fc(w[0].sub(w[1]))&&(this._valid=!1)}_move(w,B,Q){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let ee=w[0].sub(this._lastPoints[0]),le=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(ee,le,Q.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(ee.y+le.y)/2*-.5}):void 0}gestureBeginsVertically(w,B,Q){if(this._valid!==void 0)return this._valid;let ee=w.mag()>=2,le=B.mag()>=2;if(!ee&&!le)return;if(!ee||!le)return this._firstMove===void 0&&(this._firstMove=Q),Q-this._firstMove<100&&void 0;let qe=w.y>0==B.y>0;return fc(w)&&fc(B)&&qe}}let At={panStep:100,bearingStep:15,pitchStep:10};class Xt{constructor(w){this._tr=new du(w);let B=At;this._panStep=B.panStep,this._bearingStep=B.bearingStep,this._pitchStep=B.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(w){if(w.altKey||w.ctrlKey||w.metaKey)return;let B=0,Q=0,ee=0,le=0,qe=0;switch(w.keyCode){case 61:case 107:case 171:case 187:B=1;break;case 189:case 109:case 173:B=-1;break;case 37:w.shiftKey?Q=-1:(w.preventDefault(),le=-1);break;case 39:w.shiftKey?Q=1:(w.preventDefault(),le=1);break;case 38:w.shiftKey?ee=1:(w.preventDefault(),qe=-1);break;case 40:w.shiftKey?ee=-1:(w.preventDefault(),qe=1);break;default:return}return this._rotationDisabled&&(Q=0,ee=0),{cameraAnimation:Xe=>{let ot=this._tr;Xe.easeTo({duration:300,easeId:"keyboardHandler",easing:kr,zoom:B?Math.round(ot.zoom)+B*(w.shiftKey?2:1):ot.zoom,bearing:ot.bearing+Q*this._bearingStep,pitch:ot.pitch+ee*this._pitchStep,offset:[-le*this._panStep,-qe*this._panStep],center:ot.center},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function kr(ue){return ue*(2-ue)}let Ar=4.000244140625;class Kr{constructor(w,B){this._onTimeout=Q=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Q)},this._map=w,this._tr=new du(w),this._triggerRenderFrame=B,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(w){this._defaultZoomRate=w}setWheelZoomRate(w){this._wheelZoomRate=w}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(w){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!w&&w.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(w){return!!this._map.cooperativeGestures.isEnabled()&&!(w.ctrlKey||this._map.cooperativeGestures.isBypassed(w))}wheel(w){if(!this.isEnabled())return;if(this._shouldBePrevented(w))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",w);let B=w.deltaMode===WheelEvent.DOM_DELTA_LINE?40*w.deltaY:w.deltaY,Q=u.now(),ee=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,B!==0&&B%Ar==0?this._type="wheel":B!==0&&Math.abs(B)<4?this._type="trackpad":ee>400?(this._type=null,this._lastValue=B,this._timeout=setTimeout(this._onTimeout,40,w)):this._type||(this._type=Math.abs(ee*B)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,B+=this._lastValue)),w.shiftKey&&B&&(B/=4),this._type&&(this._lastWheelEvent=w,this._delta-=B,this._active||this._start(w)),w.preventDefault()}_start(w){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let B=c.mousePos(this._map.getCanvas(),w),Q=this._tr;this._around=B.y>Q.transform.height/2-Q.transform.getHorizon()?a.N.convert(this._aroundCenter?Q.center:Q.unproject(B)):a.N.convert(Q.center),this._aroundPoint=Q.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let w=this._tr.transform;if(this._delta!==0){let ot=this._type==="wheel"&&Math.abs(this._delta)>Ar?this._wheelZoomRate:this._defaultZoomRate,Tt=2/(1+Math.exp(-Math.abs(this._delta*ot)));this._delta<0&&Tt!==0&&(Tt=1/Tt);let Kt=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(Kt*Tt))),this._type==="wheel"&&(this._startZoom=w.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let B=typeof this._targetZoom=="number"?this._targetZoom:w.zoom,Q=this._startZoom,ee=this._easing,le,qe=!1,Xe=u.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&Xe){let ot=Math.min(Xe/200,1),Tt=ee(ot);le=a.y.number(Q,B,Tt),ot<1?this._frameId||(this._frameId=!0):qe=!0}else le=B,qe=!0;return this._active=!0,qe&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!qe,zoomDelta:le-w.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(w){let B=a.b9;if(this._prevEase){let Q=this._prevEase,ee=(u.now()-Q.start)/Q.duration,le=Q.easing(ee+.01)-Q.easing(ee),qe=.27/Math.sqrt(le*le+1e-4)*.01,Xe=Math.sqrt(.0729-qe*qe);B=a.b8(qe,Xe,.25,1)}return this._prevEase={start:u.now(),duration:w,easing:B},B}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class Ei{constructor(w,B){this._clickZoom=w,this._tapZoom=B}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Wi{constructor(w){this._tr=new du(w),this.reset()}reset(){this._active=!1}dblclick(w,B){return w.preventDefault(),{cameraAnimation:Q=>{Q.easeTo({duration:300,zoom:this._tr.zoom+(w.shiftKey?-1:1),around:this._tr.unproject(B)},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class hn{constructor(){this._tap=new bf({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(w,B,Q){if(!this._swipePoint)if(this._tapTime){let ee=B[0],le=w.timeStamp-this._tapTime<500,qe=this._tapPoint.dist(ee)<30;le&&qe?Q.length>0&&(this._swipePoint=ee,this._swipeTouch=Q[0].identifier):this.reset()}else this._tap.touchstart(w,B,Q)}touchmove(w,B,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;let ee=B[0],le=ee.y-this._swipePoint.y;return this._swipePoint=ee,w.preventDefault(),this._active=!0,{zoomDelta:le/128}}}else this._tap.touchmove(w,B,Q)}touchend(w,B,Q){if(this._tapTime)this._swipePoint&&Q.length===0&&this.reset();else{let ee=this._tap.touchend(w,B,Q);ee&&(this._tapTime=w.timeStamp,this._tapPoint=ee)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Tn{constructor(w,B,Q){this._el=w,this._mousePan=B,this._touchPan=Q}enable(w){this._inertiaOptions=w||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Bn{constructor(w,B,Q){this._pitchWithRotate=w.pitchWithRotate,this._mouseRotate=B,this._mousePitch=Q}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Zi{constructor(w,B,Q,ee){this._el=w,this._touchZoom=B,this._touchRotate=Q,this._tapDragZoom=ee,this._rotationDisabled=!1,this._enabled=!0}enable(w){this._touchZoom.enable(w),this._rotationDisabled||this._touchRotate.enable(w),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class $i{constructor(w,B){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=w,this._options=B,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let w=this._map.getCanvasContainer();w.classList.add("maplibregl-cooperative-gestures"),this._container=c.create("div","maplibregl-cooperative-gesture-screen",w);let B=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(B=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let Q=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),ee=document.createElement("div");ee.className="maplibregl-desktop-message",ee.textContent=B,this._container.appendChild(ee);let le=document.createElement("div");le.className="maplibregl-mobile-message",le.textContent=Q,this._container.appendChild(le),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(c.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(w){return w[this._bypassKey]}notifyGestureBlocked(w,B){this._enabled&&(this._map.fire(new a.k("cooperativegestureprevented",{gestureType:w,originalEvent:B})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}let an=ue=>ue.zoom||ue.drag||ue.pitch||ue.rotate;class Di extends a.k{}function $n(ue){return ue.panDelta&&ue.panDelta.mag()||ue.zoomDelta||ue.bearingDelta||ue.pitchDelta}class ka{constructor(w,B){this.handleWindowEvent=ee=>{this.handleEvent(ee,`${ee.type}Window`)},this.handleEvent=(ee,le)=>{if(ee.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let qe=ee.type==="renderFrame"?void 0:ee,Xe={needsRenderFrame:!1},ot={},Tt={},Kt=ee.touches,Jt=Kt?this._getMapTouches(Kt):void 0,xr=Jt?c.touchPos(this._map.getCanvas(),Jt):c.mousePos(this._map.getCanvas(),ee);for(let{handlerName:be,handler:Re,allowed:Be}of this._handlers){if(!Re.isEnabled())continue;let tt;this._blockedByActive(Tt,Be,be)?Re.reset():Re[le||ee.type]&&(tt=Re[le||ee.type](ee,xr,Jt),this.mergeHandlerResult(Xe,ot,tt,be,qe),tt&&tt.needsRenderFrame&&this._triggerRenderFrame()),(tt||Re.isActive())&&(Tt[be]=Re)}let Pr={};for(let be in this._previousActiveHandlers)Tt[be]||(Pr[be]=qe);this._previousActiveHandlers=Tt,(Object.keys(Pr).length||$n(Xe))&&(this._changes.push([Xe,ot,Pr]),this._triggerRenderFrame()),(Object.keys(Tt).length||$n(Xe))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:ve}=Xe;ve&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],ve(this._map))},this._map=w,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Lf(w),this._bearingSnap=B.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(B);let Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[window,"blur",void 0]];for(let[ee,le,qe]of this._listeners)c.addEventListener(ee,le,ee===document?this.handleWindowEvent:this.handleEvent,qe)}destroy(){for(let[w,B,Q]of this._listeners)c.removeEventListener(w,B,w===document?this.handleWindowEvent:this.handleEvent,Q)}_addDefaultHandlers(w){let B=this._map,Q=B.getCanvasContainer();this._add("mapEvent",new Pf(B,w));let ee=B.boxZoom=new Cu(B,w);this._add("boxZoom",ee),w.interactive&&w.boxZoom&&ee.enable();let le=B.cooperativeGestures=new $i(B,w.cooperativeGestures);this._add("cooperativeGestures",le),w.cooperativeGestures&&le.enable();let qe=new zc(B),Xe=new Wi(B);B.doubleClickZoom=new Ei(Xe,qe),this._add("tapZoom",qe),this._add("clickZoom",Xe),w.interactive&&w.doubleClickZoom&&B.doubleClickZoom.enable();let ot=new hn;this._add("tapDragZoom",ot);let Tt=B.touchPitch=new Bc(B);this._add("touchPitch",Tt),w.interactive&&w.touchPitch&&B.touchPitch.enable(w.touchPitch);let Kt=Wl(w),Jt=ah(w);B.dragRotate=new Bn(w,Kt,Jt),this._add("mouseRotate",Kt,["mousePitch"]),this._add("mousePitch",Jt,["mouseRotate"]),w.interactive&&w.dragRotate&&B.dragRotate.enable();let xr=(({enable:tt,clickTolerance:We})=>{let it=new Xu({checkCorrectEvent:Dt=>c.mouseButton(Dt)===0&&!Dt.ctrlKey});return new Wu({clickTolerance:We,move:(Dt,Ht)=>({around:Ht,panDelta:Ht.sub(Dt)}),activateOnStart:!0,moveStateManager:it,enable:tt,assignEvents:Xf})})(w),Pr=new Zu(w,B);B.dragPan=new Tn(Q,xr,Pr),this._add("mousePan",xr),this._add("touchPan",Pr,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&B.dragPan.enable(w.dragPan);let ve=new cf,be=new vu;B.touchZoomRotate=new Zi(Q,be,ve,ot),this._add("touchRotate",ve,["touchPan","touchZoom"]),this._add("touchZoom",be,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&B.touchZoomRotate.enable(w.touchZoomRotate);let Re=B.scrollZoom=new Kr(B,()=>this._triggerRenderFrame());this._add("scrollZoom",Re,["mousePan"]),w.interactive&&w.scrollZoom&&B.scrollZoom.enable(w.scrollZoom);let Be=B.keyboard=new Xt(B);this._add("keyboard",Be),w.interactive&&w.keyboard&&B.keyboard.enable(),this._add("blockableMapEvent",new Ls(B))}_add(w,B,Q){this._handlers.push({handlerName:w,handler:B,allowed:Q}),this._handlersById[w]=B}stop(w){if(!this._updatingCamera){for(let{handler:B}of this._handlers)B.reset();this._inertia.clear(),this._fireEvents({},{},w),this._changes=[]}}isActive(){for(let{handler:w}of this._handlers)if(w.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!an(this._eventsInProgress)||this.isZooming()}_blockedByActive(w,B,Q){for(let ee in w)if(ee!==Q&&(!B||B.indexOf(ee)<0))return!0;return!1}_getMapTouches(w){let B=[];for(let Q of w)this._el.contains(Q.target)&&B.push(Q);return B}mergeHandlerResult(w,B,Q,ee,le){if(!Q)return;a.e(w,Q);let qe={handlerName:ee,originalEvent:Q.originalEvent||le};Q.zoomDelta!==void 0&&(B.zoom=qe),Q.panDelta!==void 0&&(B.drag=qe),Q.pitchDelta!==void 0&&(B.pitch=qe),Q.bearingDelta!==void 0&&(B.rotate=qe)}_applyChanges(){let w={},B={},Q={};for(let[ee,le,qe]of this._changes)ee.panDelta&&(w.panDelta=(w.panDelta||new a.P(0,0))._add(ee.panDelta)),ee.zoomDelta&&(w.zoomDelta=(w.zoomDelta||0)+ee.zoomDelta),ee.bearingDelta&&(w.bearingDelta=(w.bearingDelta||0)+ee.bearingDelta),ee.pitchDelta&&(w.pitchDelta=(w.pitchDelta||0)+ee.pitchDelta),ee.around!==void 0&&(w.around=ee.around),ee.pinchAround!==void 0&&(w.pinchAround=ee.pinchAround),ee.noInertia&&(w.noInertia=ee.noInertia),a.e(B,le),a.e(Q,qe);this._updateMapTransform(w,B,Q),this._changes=[]}_updateMapTransform(w,B,Q){let ee=this._map,le=ee._getTransformForUpdate(),qe=ee.terrain;if(!($n(w)||qe&&this._terrainMovement))return this._fireEvents(B,Q,!0);let{panDelta:Xe,zoomDelta:ot,bearingDelta:Tt,pitchDelta:Kt,around:Jt,pinchAround:xr}=w;xr!==void 0&&(Jt=xr),ee._stop(!0),Jt=Jt||ee.transform.centerPoint;let Pr=le.pointLocation(Xe?Jt.sub(Xe):Jt);Tt&&(le.bearing+=Tt),Kt&&(le.pitch+=Kt),ot&&(le.zoom+=ot),qe?this._terrainMovement||!B.drag&&!B.zoom?B.drag&&this._terrainMovement?le.center=le.pointLocation(le.centerPoint.sub(Xe)):le.setLocationAtPoint(Pr,Jt):(this._terrainMovement=!0,this._map._elevationFreeze=!0,le.setLocationAtPoint(Pr,Jt)):le.setLocationAtPoint(Pr,Jt),ee._applyUpdatedTransform(le),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(B,Q,!0)}_fireEvents(w,B,Q){let ee=an(this._eventsInProgress),le=an(w),qe={};for(let Jt in w){let{originalEvent:xr}=w[Jt];this._eventsInProgress[Jt]||(qe[`${Jt}start`]=xr),this._eventsInProgress[Jt]=w[Jt]}!ee&&le&&this._fireEvent("movestart",le.originalEvent);for(let Jt in qe)this._fireEvent(Jt,qe[Jt]);le&&this._fireEvent("move",le.originalEvent);for(let Jt in w){let{originalEvent:xr}=w[Jt];this._fireEvent(Jt,xr)}let Xe={},ot;for(let Jt in this._eventsInProgress){let{handlerName:xr,originalEvent:Pr}=this._eventsInProgress[Jt];this._handlersById[xr].isActive()||(delete this._eventsInProgress[Jt],ot=B[xr]||Pr,Xe[`${Jt}end`]=ot)}for(let Jt in Xe)this._fireEvent(Jt,Xe[Jt]);let Tt=an(this._eventsInProgress),Kt=(ee||le)&&!Tt;if(Kt&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let Jt=this._map._getTransformForUpdate();Jt.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(Jt)}if(Q&&Kt){this._updatingCamera=!0;let Jt=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),xr=Pr=>Pr!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Di("renderFrame",{timeStamp:w})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class Ra extends a.E{constructor(w,B){super(),this._renderFrameCallback=()=>{let Q=Math.min((u.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=w,this._bearingSnap=B.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new a.N(this.transform.center.lng,this.transform.center.lat)}setCenter(w,B){return this.jumpTo({center:w},B)}panBy(w,B,Q){return w=a.P.convert(w).mult(-1),this.panTo(this.transform.center,a.e({offset:w},B),Q)}panTo(w,B,Q){return this.easeTo(a.e({center:w},B),Q)}getZoom(){return this.transform.zoom}setZoom(w,B){return this.jumpTo({zoom:w},B),this}zoomTo(w,B,Q){return this.easeTo(a.e({zoom:w},B),Q)}zoomIn(w,B){return this.zoomTo(this.getZoom()+1,w,B),this}zoomOut(w,B){return this.zoomTo(this.getZoom()-1,w,B),this}getBearing(){return this.transform.bearing}setBearing(w,B){return this.jumpTo({bearing:w},B),this}getPadding(){return this.transform.padding}setPadding(w,B){return this.jumpTo({padding:w},B),this}rotateTo(w,B,Q){return this.easeTo(a.e({bearing:w},B),Q)}resetNorth(w,B){return this.rotateTo(0,a.e({duration:1e3},w),B),this}resetNorthPitch(w,B){return this.easeTo(a.e({bearing:0,pitch:0,duration:1e3},w),B),this}snapToNorth(w,B){return Math.abs(this.getBearing()){if(this._zooming&&(ee.zoom=a.y.number(le,Re,rr)),this._rotating&&(ee.bearing=a.y.number(qe,Tt,rr)),this._pitching&&(ee.pitch=a.y.number(Xe,Kt,rr)),this._padding&&(ee.interpolatePadding(ot,Jt,rr),Pr=ee.centerPoint.add(xr)),this.terrain&&!w.freezeElevation&&this._updateElevation(rr),it)ee.setLocationAtPoint(it,Dt);else{let dr=ee.zoomScale(ee.zoom-le),Sr=Re>le?Math.min(2,We):Math.max(.5,We),Or=Math.pow(Sr,1-rr),jr=ee.unproject(Be.add(tt.mult(rr*Or)).mult(dr));ee.setLocationAtPoint(ee.renderWorldCopies?jr.wrap():jr,Pr)}this._applyUpdatedTransform(ee),this._fireMoveEvents(B)},rr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B,rr)},w),this}_prepareEase(w,B,Q={}){this._moving=!0,B||Q.moving||this.fire(new a.k("movestart",w)),this._zooming&&!Q.zooming&&this.fire(new a.k("zoomstart",w)),this._rotating&&!Q.rotating&&this.fire(new a.k("rotatestart",w)),this._pitching&&!Q.pitching&&this.fire(new a.k("pitchstart",w))}_prepareElevation(w){this._elevationCenter=w,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(w,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(w){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let B=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(w<1&&B!==this._elevationTarget){let Q=this._elevationTarget-this._elevationStart;this._elevationStart+=w*(Q-(B-(Q*w+this._elevationStart))/(1-w)),this._elevationTarget=B}this.transform.elevation=a.y.number(this._elevationStart,this._elevationTarget,w)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(w){let B=w.getCameraPosition(),Q=this.terrain.getElevationForLngLatZoom(B.lngLat,w.zoom);if(B.altitudethis._elevateCameraIfInsideTerrain(ee)),this.transformCameraUpdate&&B.push(ee=>this.transformCameraUpdate(ee)),!B.length)return;let Q=w.clone();for(let ee of B){let le=Q.clone(),{center:qe,zoom:Xe,pitch:ot,bearing:Tt,elevation:Kt}=ee(le);qe&&(le.center=qe),Xe!==void 0&&(le.zoom=Xe),ot!==void 0&&(le.pitch=ot),Tt!==void 0&&(le.bearing=Tt),Kt!==void 0&&(le.elevation=Kt),Q.apply(le)}this.transform.apply(Q)}_fireMoveEvents(w){this.fire(new a.k("move",w)),this._zooming&&this.fire(new a.k("zoom",w)),this._rotating&&this.fire(new a.k("rotate",w)),this._pitching&&this.fire(new a.k("pitch",w))}_afterEase(w,B){if(this._easeId&&B&&this._easeId===B)return;delete this._easeId;let Q=this._zooming,ee=this._rotating,le=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Q&&this.fire(new a.k("zoomend",w)),ee&&this.fire(new a.k("rotateend",w)),le&&this.fire(new a.k("pitchend",w)),this.fire(new a.k("moveend",w))}flyTo(w,B){var Q;if(!w.essential&&u.prefersReducedMotion){let In=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(In,B)}this.stop(),w=a.e({offset:[0,0],speed:1.2,curve:1.42,easing:a.b9},w);let ee=this._getTransformForUpdate(),le=ee.zoom,qe=ee.bearing,Xe=ee.pitch,ot=ee.padding,Tt="bearing"in w?this._normalizeBearing(w.bearing,qe):qe,Kt="pitch"in w?+w.pitch:Xe,Jt="padding"in w?w.padding:ee.padding,xr=a.P.convert(w.offset),Pr=ee.centerPoint.add(xr),ve=ee.pointLocation(Pr),{center:be,zoom:Re}=ee.getConstrained(a.N.convert(w.center||ve),(Q=w.zoom)!==null&&Q!==void 0?Q:le);this._normalizeCenter(be,ee);let Be=ee.zoomScale(Re-le),tt=ee.project(ve),We=ee.project(be).sub(tt),it=w.curve,Dt=Math.max(ee.width,ee.height),Ht=Dt/Be,rr=We.mag();if("minZoom"in w){let In=a.ac(Math.min(w.minZoom,le,Re),ee.minZoom,ee.maxZoom),Kn=Dt/ee.zoomScale(In-le);it=Math.sqrt(Kn/rr*2)}let dr=it*it;function Sr(In){let Kn=(Ht*Ht-Dt*Dt+(In?-1:1)*dr*dr*rr*rr)/(2*(In?Ht:Dt)*dr*rr);return Math.log(Math.sqrt(Kn*Kn+1)-Kn)}function Or(In){return(Math.exp(In)-Math.exp(-In))/2}function jr(In){return(Math.exp(In)+Math.exp(-In))/2}let ii=Sr(!1),Li=function(In){return jr(ii)/jr(ii+it*In)},un=function(In){return Dt*((jr(ii)*(Or(Kn=ii+it*In)/jr(Kn))-Or(ii))/dr)/rr;var Kn},sn=(Sr(!0)-ii)/it;if(Math.abs(rr)<1e-6||!isFinite(sn)){if(Math.abs(Dt-Ht)<1e-6)return this.easeTo(w,B);let In=Ht0,Li=Kn=>Math.exp(In*it*Kn)}return w.duration="duration"in w?+w.duration:1e3*sn/("screenSpeed"in w?+w.screenSpeed/it:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=qe!==Tt,this._pitching=Kt!==Xe,this._padding=!ee.isPaddingEqual(Jt),this._prepareEase(B,!1),this.terrain&&this._prepareElevation(be),this._ease(In=>{let Kn=In*sn,Aa=1/Li(Kn);ee.zoom=In===1?Re:le+ee.scaleZoom(Aa),this._rotating&&(ee.bearing=a.y.number(qe,Tt,In)),this._pitching&&(ee.pitch=a.y.number(Xe,Kt,In)),this._padding&&(ee.interpolatePadding(ot,Jt,In),Pr=ee.centerPoint.add(xr)),this.terrain&&!w.freezeElevation&&this._updateElevation(In);let fa=In===1?be:ee.unproject(tt.add(We.mult(un(Kn))).mult(Aa));ee.setLocationAtPoint(ee.renderWorldCopies?fa.wrap():fa,Pr),this._applyUpdatedTransform(ee),this._fireMoveEvents(B)},()=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B)},w),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(w,B){var Q;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let ee=this._onEaseEnd;delete this._onEaseEnd,ee.call(this,B)}return w||(Q=this.handlers)===null||Q===void 0||Q.stop(!1),this}_ease(w,B,Q){Q.animate===!1||Q.duration===0?(w(1),B()):(this._easeStart=u.now(),this._easeOptions=Q,this._onEaseFrame=w,this._onEaseEnd=B,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(w,B){w=a.b3(w,-180,180);let Q=Math.abs(w-B);return Math.abs(w-360-B)180?-360:Q<-180?360:0}queryTerrainElevation(w){return this.terrain?this.terrain.getElevationForLngLatZoom(a.N.convert(w),this.transform.tileZoom)-this.transform.elevation:null}}let La={compact:!0,customAttribution:'MapLibre'};class Na{constructor(w=La){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=B=>{!B||B.sourceDataType!=="metadata"&&B.sourceDataType!=="visibility"&&B.dataType!=="style"&&B.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=w}getDefaultPosition(){return"bottom-right"}onAdd(w){return this._map=w,this._compact=this.options.compact,this._container=c.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=c.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=c.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){c.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(w,B){let Q=this._map._getUIString(`AttributionControl.${B}`);w.title=Q,w.setAttribute("aria-label",Q)}_updateAttributions(){if(!this._map.style)return;let w=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?w=w.concat(this.options.customAttribution.map(ee=>typeof ee!="string"?"":ee)):typeof this.options.customAttribution=="string"&&w.push(this.options.customAttribution)),this._map.style.stylesheet){let ee=this._map.style.stylesheet;this.styleOwner=ee.owner,this.styleId=ee.id}let B=this._map.style.sourceCaches;for(let ee in B){let le=B[ee];if(le.used||le.usedForTerrain){let qe=le.getSource();qe.attribution&&w.indexOf(qe.attribution)<0&&w.push(qe.attribution)}}w=w.filter(ee=>String(ee).trim()),w.sort((ee,le)=>ee.length-le.length),w=w.filter((ee,le)=>{for(let qe=le+1;qe=0)return!1;return!0});let Q=w.join(" | ");Q!==this._attribHTML&&(this._attribHTML=Q,w.length?(this._innerContainer.innerHTML=Q,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class Yn{constructor(w={}){this._updateCompact=()=>{let B=this._container.children;if(B.length){let Q=B[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&Q.classList.add("maplibregl-compact"):Q.classList.remove("maplibregl-compact")}},this.options=w}getDefaultPosition(){return"bottom-left"}onAdd(w){this._map=w,this._compact=this.options&&this.options.compact,this._container=c.create("div","maplibregl-ctrl");let B=c.create("a","maplibregl-ctrl-logo");return B.target="_blank",B.rel="noopener nofollow",B.href="https://maplibre.org/",B.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),B.setAttribute("rel","noopener nofollow"),this._container.appendChild(B),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){c.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class zn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(w){let B=++this._id;return this._queue.push({callback:w,id:B,cancelled:!1}),B}remove(w){let B=this._currentlyRunning,Q=B?this._queue.concat(B):this._queue;for(let ee of Q)if(ee.id===w)return void(ee.cancelled=!0)}run(w=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let B=this._currentlyRunning=this._queue;this._queue=[];for(let Q of B)if(!Q.cancelled&&(Q.callback(w),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var Ka=a.Y([{name:"a_pos3d",type:"Int16",components:3}]);class bo extends a.E{constructor(w){super(),this.sourceCache=w,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,w.usedForTerrain=!0,w.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(w,B){this.sourceCache.update(w,B),this._renderableTilesKeys=[];let Q={};for(let ee of w.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:B}))Q[ee.key]=!0,this._renderableTilesKeys.push(ee.key),this._tiles[ee.key]||(ee.posMatrix=new Float64Array(16),a.aP(ee.posMatrix,0,a.X,0,a.X,0,1),this._tiles[ee.key]=new Ut(ee,this.tileSize));for(let ee in this._tiles)Q[ee]||delete this._tiles[ee]}freeRtt(w){for(let B in this._tiles){let Q=this._tiles[B];(!w||Q.tileID.equals(w)||Q.tileID.isChildOf(w)||w.isChildOf(Q.tileID))&&(Q.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(w=>this.getTileByID(w))}getTileByID(w){return this._tiles[w]}getTerrainCoords(w){let B={};for(let Q of this._renderableTilesKeys){let ee=this._tiles[Q].tileID;if(ee.canonical.equals(w.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16),a.aP(le.posMatrix,0,a.X,0,a.X,0,1),B[Q]=le}else if(ee.canonical.isChildOf(w.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let qe=ee.canonical.z-w.canonical.z,Xe=ee.canonical.x-(ee.canonical.x>>qe<>qe<>qe;a.aP(le.posMatrix,0,Tt,0,Tt,0,1),a.J(le.posMatrix,le.posMatrix,[-Xe*Tt,-ot*Tt,0]),B[Q]=le}else if(w.canonical.isChildOf(ee.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let qe=w.canonical.z-ee.canonical.z,Xe=w.canonical.x-(w.canonical.x>>qe<>qe<>qe;a.aP(le.posMatrix,0,a.X,0,a.X,0,1),a.J(le.posMatrix,le.posMatrix,[Xe*Tt,ot*Tt,0]),a.K(le.posMatrix,le.posMatrix,[1/2**qe,1/2**qe,0]),B[Q]=le}}return B}getSourceTile(w,B){let Q=this.sourceCache._source,ee=w.overscaledZ-this.deltaZoom;if(ee>Q.maxzoom&&(ee=Q.maxzoom),ee=Q.minzoom&&(!le||!le.dem);)le=this.sourceCache.getTileByID(w.scaledTo(ee--).key);return le}tilesAfterTime(w=Date.now()){return Object.values(this._tiles).filter(B=>B.timeAdded>=w)}}class Xo{constructor(w,B,Q){this.painter=w,this.sourceCache=new bo(B),this.options=Q,this.exaggeration=typeof Q.exaggeration=="number"?Q.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(w,B,Q,ee=a.X){var le;if(!(B>=0&&B=0&&Qw.canonical.z&&(w.canonical.z>=ee?le=w.canonical.z-ee:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let qe=w.canonical.x-(w.canonical.x>>le<>le<>8<<4|le>>8,B[qe+3]=0;let Q=new a.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(B.buffer)),ee=new g(w,Q,w.gl.RGBA,{premultiply:!1});return ee.bind(w.gl.NEAREST,w.gl.CLAMP_TO_EDGE),this._coordsTexture=ee,ee}pointCoordinate(w){this.painter.maybeDrawDepthAndCoords(!0);let B=new Uint8Array(4),Q=this.painter.context,ee=Q.gl,le=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),qe=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),Xe=Math.round(this.painter.height/devicePixelRatio);Q.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(le,Xe-qe-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,B),Q.bindFramebuffer.set(null);let ot=B[0]+(B[2]>>4<<8),Tt=B[1]+((15&B[2])<<8),Kt=this.coordsIndex[255-B[3]],Jt=Kt&&this.sourceCache.getTileByID(Kt);if(!Jt)return null;let xr=this._coordsTextureSize,Pr=(1<w.id!==B),this._recentlyUsed.push(w.id)}stampObject(w){w.stamp=++this._stamp}getOrCreateFreeObject(){for(let B of this._recentlyUsed)if(!this._objects[B].inUse)return this._objects[B];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let w=this._createObject(this._objects.length);return this._objects.push(w),w}freeObject(w){w.inUse=!1}freeAllObjects(){for(let w of this._objects)this.freeObject(w)}isFull(){return!(this._objects.length!w.inUse)===!1}}let os={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Ts{constructor(w,B){this.painter=w,this.terrain=B,this.pool=new Ms(w.context,30,B.sourceCache.tileSize*B.qualityFactor)}destruct(){this.pool.destruct()}getTexture(w){return this.pool.getObjectForId(w.rtt[this._stacks.length-1].id).texture}prepareForRender(w,B){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=w._order.filter(Q=>!w._layers[Q].isHidden(B)),this._coordsDescendingInv={};for(let Q in w.sourceCaches){this._coordsDescendingInv[Q]={};let ee=w.sourceCaches[Q].getVisibleCoordinates();for(let le of ee){let qe=this.terrain.sourceCache.getTerrainCoords(le);for(let Xe in qe)this._coordsDescendingInv[Q][Xe]||(this._coordsDescendingInv[Q][Xe]=[]),this._coordsDescendingInv[Q][Xe].push(qe[Xe])}}this._coordsDescendingInvStr={};for(let Q of w._order){let ee=w._layers[Q],le=ee.source;if(os[ee.type]&&!this._coordsDescendingInvStr[le]){this._coordsDescendingInvStr[le]={};for(let qe in this._coordsDescendingInv[le])this._coordsDescendingInvStr[le][qe]=this._coordsDescendingInv[le][qe].map(Xe=>Xe.key).sort().join()}}for(let Q of this._renderableTiles)for(let ee in this._coordsDescendingInvStr){let le=this._coordsDescendingInvStr[ee][Q.tileID.key];le&&le!==Q.rttCoords[ee]&&(Q.rtt=[])}}renderLayer(w){if(w.isHidden(this.painter.transform.zoom))return!1;let B=w.type,Q=this.painter,ee=this._renderableLayerIds[this._renderableLayerIds.length-1]===w.id;if(os[B]&&(this._prevType&&os[this._prevType]||this._stacks.push([]),this._prevType=B,this._stacks[this._stacks.length-1].push(w.id),!ee))return!0;if(os[this._prevType]||os[B]&&ee){this._prevType=B;let le=this._stacks.length-1,qe=this._stacks[le]||[];for(let Xe of this._renderableTiles){if(this.pool.isFull()&&(Ws(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(Xe),Xe.rtt[le]){let Tt=this.pool.getObjectForId(Xe.rtt[le].id);if(Tt.stamp===Xe.rtt[le].stamp){this.pool.useObject(Tt);continue}}let ot=this.pool.getOrCreateFreeObject();this.pool.useObject(ot),this.pool.stampObject(ot),Xe.rtt[le]={id:ot.id,stamp:ot.stamp},Q.context.bindFramebuffer.set(ot.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Tt=0;Tt{ue.touchstart=ue.dragStart,ue.touchmoveWindow=ue.dragMove,ue.touchend=ue.dragEnd},va={showCompass:!0,showZoom:!0,visualizePitch:!1};class no{constructor(w,B,Q=!1){this.mousedown=qe=>{this.startMouse(a.e({},qe,{ctrlKey:!0,preventDefault:()=>qe.preventDefault()}),c.mousePos(this.element,qe)),c.addEventListener(window,"mousemove",this.mousemove),c.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=qe=>{this.moveMouse(qe,c.mousePos(this.element,qe))},this.mouseup=qe=>{this.mouseRotate.dragEnd(qe),this.mousePitch&&this.mousePitch.dragEnd(qe),this.offTemp()},this.touchstart=qe=>{qe.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=c.touchPos(this.element,qe.targetTouches)[0],this.startTouch(qe,this._startPos),c.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.addEventListener(window,"touchend",this.touchend))},this.touchmove=qe=>{qe.targetTouches.length!==1?this.reset():(this._lastPos=c.touchPos(this.element,qe.targetTouches)[0],this.moveTouch(qe,this._lastPos))},this.touchend=qe=>{qe.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let ee=w.dragRotate._mouseRotate.getClickTolerance(),le=w.dragRotate._mousePitch.getClickTolerance();this.element=B,this.mouseRotate=Wl({clickTolerance:ee,enable:!0}),this.touchRotate=(({enable:qe,clickTolerance:Xe,bearingDegreesPerPixelMoved:ot=.8})=>{let Tt=new uf;return new Wu({clickTolerance:Xe,move:(Kt,Jt)=>({bearingDelta:(Jt.x-Kt.x)*ot}),moveStateManager:Tt,enable:qe,assignEvents:Ps})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=ah({clickTolerance:le,enable:!0}),this.touchPitch=(({enable:qe,clickTolerance:Xe,pitchDegreesPerPixelMoved:ot=-.5})=>{let Tt=new uf;return new Wu({clickTolerance:Xe,move:(Kt,Jt)=>({pitchDelta:(Jt.y-Kt.y)*ot}),moveStateManager:Tt,enable:qe,assignEvents:Ps})})({clickTolerance:le,enable:!0})),c.addEventListener(B,"mousedown",this.mousedown),c.addEventListener(B,"touchstart",this.touchstart,{passive:!1}),c.addEventListener(B,"touchcancel",this.reset)}startMouse(w,B){this.mouseRotate.dragStart(w,B),this.mousePitch&&this.mousePitch.dragStart(w,B),c.disableDrag()}startTouch(w,B){this.touchRotate.dragStart(w,B),this.touchPitch&&this.touchPitch.dragStart(w,B),c.disableDrag()}moveMouse(w,B){let Q=this.map,{bearingDelta:ee}=this.mouseRotate.dragMove(w,B)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.mousePitch){let{pitchDelta:le}=this.mousePitch.dragMove(w,B)||{};le&&Q.setPitch(Q.getPitch()+le)}}moveTouch(w,B){let Q=this.map,{bearingDelta:ee}=this.touchRotate.dragMove(w,B)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.touchPitch){let{pitchDelta:le}=this.touchPitch.dragMove(w,B)||{};le&&Q.setPitch(Q.getPitch()+le)}}off(){let w=this.element;c.removeEventListener(w,"mousedown",this.mousedown),c.removeEventListener(w,"touchstart",this.touchstart,{passive:!1}),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend),c.removeEventListener(w,"touchcancel",this.reset),this.offTemp()}offTemp(){c.enableDrag(),c.removeEventListener(window,"mousemove",this.mousemove),c.removeEventListener(window,"mouseup",this.mouseup),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend)}}let _s;function is(ue,w,B){let Q=new a.N(ue.lng,ue.lat);if(ue=new a.N(ue.lng,ue.lat),w){let ee=new a.N(ue.lng-360,ue.lat),le=new a.N(ue.lng+360,ue.lat),qe=B.locationPoint(ue).distSqr(w);B.locationPoint(ee).distSqr(w)180;){let ee=B.locationPoint(ue);if(ee.x>=0&&ee.y>=0&&ee.x<=B.width&&ee.y<=B.height)break;ue.lng>B.center.lng?ue.lng-=360:ue.lng+=360}return ue.lng!==Q.lng&&B.locationPoint(ue).y>B.height/2-B.getHorizon()?ue:Q}let $l={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ku(ue,w,B){let Q=ue.classList;for(let ee in $l)Q.remove(`maplibregl-${B}-anchor-${ee}`);Q.add(`maplibregl-${B}-anchor-${w}`)}class Yu extends a.E{constructor(w){if(super(),this._onKeyPress=B=>{let Q=B.code,ee=B.charCode||B.keyCode;Q!=="Space"&&Q!=="Enter"&&ee!==32&&ee!==13||this.togglePopup()},this._onMapClick=B=>{let Q=B.originalEvent.target,ee=this._element;this._popup&&(Q===ee||ee.contains(Q))&&this.togglePopup()},this._update=B=>{var Q;if(!this._map)return;let ee=this._map.loaded()&&!this._map.isMoving();((B==null?void 0:B.type)==="terrain"||(B==null?void 0:B.type)==="render"&&!ee)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?is(this._lngLat,this._flatPos,this._map.transform):(Q=this._lngLat)===null||Q===void 0?void 0:Q.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let le="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?le=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(le=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let qe="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?qe="rotateX(0deg)":this._pitchAlignment==="map"&&(qe=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||B&&B.type!=="moveend"||(this._pos=this._pos.round()),c.setTransform(this._element,`${$l[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${qe} ${le}`),u.frameAsync(new AbortController).then(()=>{this._updateOpacity(B&&B.type==="moveend")}).catch(()=>{})},this._onMove=B=>{if(!this._isDragging){let Q=this._clickTolerance||this._map._clickTolerance;this._isDragging=B.point.dist(this._pointerdownPos)>=Q}this._isDragging&&(this._pos=B.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.k("dragstart"))),this.fire(new a.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.k("dragend")),this._state="inactive"},this._addDragHandler=B=>{this._element.contains(B.originalEvent.target)&&(B.preventDefault(),this._positionDelta=B.point.sub(this._pos).add(this._offset),this._pointerdownPos=B.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=w&&w.anchor||"center",this._color=w&&w.color||"#3FB1CE",this._scale=w&&w.scale||1,this._draggable=w&&w.draggable||!1,this._clickTolerance=w&&w.clickTolerance||0,this._subpixelPositioning=w&&w.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=w&&w.rotation||0,this._rotationAlignment=w&&w.rotationAlignment||"auto",this._pitchAlignment=w&&w.pitchAlignment&&w.pitchAlignment!=="auto"?w.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(w==null?void 0:w.opacity,w==null?void 0:w.opacityWhenCovered),w&&w.element)this._element=w.element,this._offset=a.P.convert(w&&w.offset||[0,0]);else{this._defaultMarker=!0,this._element=c.create("div");let B=c.createNS("http://www.w3.org/2000/svg","svg"),Q=41,ee=27;B.setAttributeNS(null,"display","block"),B.setAttributeNS(null,"height",`${Q}px`),B.setAttributeNS(null,"width",`${ee}px`),B.setAttributeNS(null,"viewBox",`0 0 ${ee} ${Q}`);let le=c.createNS("http://www.w3.org/2000/svg","g");le.setAttributeNS(null,"stroke","none"),le.setAttributeNS(null,"stroke-width","1"),le.setAttributeNS(null,"fill","none"),le.setAttributeNS(null,"fill-rule","evenodd");let qe=c.createNS("http://www.w3.org/2000/svg","g");qe.setAttributeNS(null,"fill-rule","nonzero");let Xe=c.createNS("http://www.w3.org/2000/svg","g");Xe.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Xe.setAttributeNS(null,"fill","#000000");let ot=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let Be of ot){let tt=c.createNS("http://www.w3.org/2000/svg","ellipse");tt.setAttributeNS(null,"opacity","0.04"),tt.setAttributeNS(null,"cx","10.5"),tt.setAttributeNS(null,"cy","5.80029008"),tt.setAttributeNS(null,"rx",Be.rx),tt.setAttributeNS(null,"ry",Be.ry),Xe.appendChild(tt)}let Tt=c.createNS("http://www.w3.org/2000/svg","g");Tt.setAttributeNS(null,"fill",this._color);let Kt=c.createNS("http://www.w3.org/2000/svg","path");Kt.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),Tt.appendChild(Kt);let Jt=c.createNS("http://www.w3.org/2000/svg","g");Jt.setAttributeNS(null,"opacity","0.25"),Jt.setAttributeNS(null,"fill","#000000");let xr=c.createNS("http://www.w3.org/2000/svg","path");xr.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),Jt.appendChild(xr);let Pr=c.createNS("http://www.w3.org/2000/svg","g");Pr.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Pr.setAttributeNS(null,"fill","#FFFFFF");let ve=c.createNS("http://www.w3.org/2000/svg","g");ve.setAttributeNS(null,"transform","translate(8.0, 8.0)");let be=c.createNS("http://www.w3.org/2000/svg","circle");be.setAttributeNS(null,"fill","#000000"),be.setAttributeNS(null,"opacity","0.25"),be.setAttributeNS(null,"cx","5.5"),be.setAttributeNS(null,"cy","5.5"),be.setAttributeNS(null,"r","5.4999962");let Re=c.createNS("http://www.w3.org/2000/svg","circle");Re.setAttributeNS(null,"fill","#FFFFFF"),Re.setAttributeNS(null,"cx","5.5"),Re.setAttributeNS(null,"cy","5.5"),Re.setAttributeNS(null,"r","5.4999962"),ve.appendChild(be),ve.appendChild(Re),qe.appendChild(Xe),qe.appendChild(Tt),qe.appendChild(Jt),qe.appendChild(Pr),qe.appendChild(ve),B.appendChild(qe),B.setAttributeNS(null,"height",Q*this._scale+"px"),B.setAttributeNS(null,"width",ee*this._scale+"px"),this._element.appendChild(B),this._offset=a.P.convert(w&&w.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",B=>{B.preventDefault()}),this._element.addEventListener("mousedown",B=>{B.preventDefault()}),ku(this._element,this._anchor,"marker"),w&&w.className)for(let B of w.className.split(" "))this._element.classList.add(B);this._popup=null}addTo(w){return this.remove(),this._map=w,this._element.setAttribute("aria-label",w._getUIString("Marker.Title")),w.getCanvasContainer().appendChild(this._element),w.on("move",this._update),w.on("moveend",this._update),w.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),c.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(w){return this._lngLat=a.N.convert(w),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(w){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),w){if(!("offset"in w.options)){let ee=Math.abs(13.5)/Math.SQRT2;w.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[ee,-1*(38.1-13.5+ee)],"bottom-right":[-ee,-1*(38.1-13.5+ee)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=w,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(w){return this._subpixelPositioning=w,this}getPopup(){return this._popup}togglePopup(){let w=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:w?(w.isOpen()?w.remove():(w.setLngLat(this._lngLat),w.addTo(this._map)),this):this}_updateOpacity(w=!1){var B,Q;if(!(!((B=this._map)===null||B===void 0)&&B.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(w)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}let ee=this._map,le=ee.terrain.depthAtPoint(this._pos),qe=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,qe)-le<.006)return void(this._element.style.opacity=this._opacity);let Xe=-this._offset.y/ee.transform._pixelPerMeter,ot=Math.sin(ee.getPitch()*Math.PI/180)*Xe,Tt=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),Kt=ee.transform.lngLatToCameraDepth(this._lngLat,qe+ot)-Tt>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&Kt&&this._popup.remove(),this._element.style.opacity=Kt?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(w){return this._offset=a.P.convert(w),this._update(),this}addClassName(w){this._element.classList.add(w)}removeClassName(w){this._element.classList.remove(w)}toggleClassName(w){return this._element.classList.toggle(w)}setDraggable(w){return this._draggable=!!w,this._map&&(w?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(w){return this._rotation=w||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(w){return this._rotationAlignment=w||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(w){return this._pitchAlignment=w&&w!=="auto"?w:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(w,B){return w===void 0&&B===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),w!==void 0&&(this._opacity=w),B!==void 0&&(this._opacityWhenCovered=B),this._map&&this._updateOpacity(!0),this}}let Nc={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},pu=0,Uc=!1,xu={maxWidth:100,unit:"metric"};function Ac(ue,w,B){let Q=B&&B.maxWidth||100,ee=ue._container.clientHeight/2,le=ue.unproject([0,ee]),qe=ue.unproject([Q,ee]),Xe=le.distanceTo(qe);if(B&&B.unit==="imperial"){let ot=3.2808*Xe;ot>5280?Ua(w,Q,ot/5280,ue._getUIString("ScaleControl.Miles")):Ua(w,Q,ot,ue._getUIString("ScaleControl.Feet"))}else B&&B.unit==="nautical"?Ua(w,Q,Xe/1852,ue._getUIString("ScaleControl.NauticalMiles")):Xe>=1e3?Ua(w,Q,Xe/1e3,ue._getUIString("ScaleControl.Kilometers")):Ua(w,Q,Xe,ue._getUIString("ScaleControl.Meters"))}function Ua(ue,w,B,Q){let ee=function(le){let qe=Math.pow(10,`${Math.floor(le)}`.length-1),Xe=le/qe;return Xe=Xe>=10?10:Xe>=5?5:Xe>=3?3:Xe>=2?2:Xe>=1?1:function(ot){let Tt=Math.pow(10,Math.ceil(-Math.log(ot)/Math.LN10));return Math.round(ot*Tt)/Tt}(Xe),qe*Xe}(B);ue.style.width=w*(ee/B)+"px",ue.innerHTML=`${ee} ${Q}`}let oo={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Vc=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function hc(ue){if(ue){if(typeof ue=="number"){let w=Math.round(Math.abs(ue)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,ue),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-ue),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(ue,0),right:new a.P(-ue,0)}}if(ue instanceof a.P||Array.isArray(ue)){let w=a.P.convert(ue);return{center:w,top:w,"top-left":w,"top-right":w,bottom:w,"bottom-left":w,"bottom-right":w,left:w,right:w}}return{center:a.P.convert(ue.center||[0,0]),top:a.P.convert(ue.top||[0,0]),"top-left":a.P.convert(ue["top-left"]||[0,0]),"top-right":a.P.convert(ue["top-right"]||[0,0]),bottom:a.P.convert(ue.bottom||[0,0]),"bottom-left":a.P.convert(ue["bottom-left"]||[0,0]),"bottom-right":a.P.convert(ue["bottom-right"]||[0,0]),left:a.P.convert(ue.left||[0,0]),right:a.P.convert(ue.right||[0,0])}}return hc(new a.P(0,0))}let Ku=o;i.AJAXError=a.bh,i.Evented=a.E,i.LngLat=a.N,i.MercatorCoordinate=a.Z,i.Point=a.P,i.addProtocol=a.bi,i.config=a.a,i.removeProtocol=a.bj,i.AttributionControl=Na,i.BoxZoomHandler=Cu,i.CanvasSource=$t,i.CooperativeGesturesHandler=$i,i.DoubleClickZoomHandler=Ei,i.DragPanHandler=Tn,i.DragRotateHandler=Bn,i.EdgeInsets=hu,i.FullscreenControl=class extends a.E{constructor(ue={}){super(),this._onFullscreenChange=()=>{var w;let B=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((w=B==null?void 0:B.shadowRoot)===null||w===void 0)&&w.fullscreenElement;)B=B.shadowRoot.fullscreenElement;B===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,ue&&ue.container&&(ue.container instanceof HTMLElement?this._container=ue.container:a.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(ue){return this._map=ue,this._container||(this._container=this._map.getContainer()),this._controlContainer=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){c.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let ue=this._fullscreenButton=c.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);c.create("span","maplibregl-ctrl-icon",ue).setAttribute("aria-hidden","true"),ue.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let ue=this._getTitle();this._fullscreenButton.setAttribute("aria-label",ue),this._fullscreenButton.title=ue}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new a.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new a.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},i.GeoJSONSource=st,i.GeolocateControl=class extends a.E{constructor(ue){super(),this._onSuccess=w=>{if(this._map){if(this._isOutOfMapMaxBounds(w))return this._setErrorState(),this.fire(new a.k("outofmaxbounds",w)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=w,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(w),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(w),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new a.k("geolocate",w)),this._finish()}},this._updateCamera=w=>{let B=new a.N(w.coords.longitude,w.coords.latitude),Q=w.coords.accuracy,ee=this._map.getBearing(),le=a.e({bearing:ee},this.options.fitBoundsOptions),qe=ce.fromLngLat(B,Q);this._map.fitBounds(qe,le,{geolocateSource:!0})},this._updateMarker=w=>{if(w){let B=new a.N(w.coords.longitude,w.coords.latitude);this._accuracyCircleMarker.setLngLat(B).addTo(this._map),this._userLocationDotMarker.setLngLat(B).addTo(this._map),this._accuracy=w.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=w=>{if(this._map){if(this.options.trackUserLocation)if(w.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(w.code===3&&Uc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new a.k("error",w)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",w=>w.preventDefault()),this._geolocateButton=c.create("button","maplibregl-ctrl-geolocate",this._container),c.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=w=>{if(this._map){if(w===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");let B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}else{let B=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=c.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new Yu({element:this._dotElement}),this._circleElement=c.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Yu({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",B=>{B.geolocateSource||this._watchState!=="ACTIVE_LOCK"||B.originalEvent&&B.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new a.k("trackuserlocationend")),this.fire(new a.k("userlocationlostfocus")))})}},this.options=a.e({},Nc,ue)}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return a._(this,arguments,void 0,function*(w=!1){if(_s!==void 0&&!w)return _s;if(window.navigator.permissions===void 0)return _s=!!window.navigator.geolocation,_s;try{_s=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(B){_s=!!window.navigator.geolocation}return _s})}().then(w=>this._finishSetupUI(w)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),c.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,pu=0,Uc=!1}_isOutOfMapMaxBounds(ue){let w=this._map.getMaxBounds(),B=ue.coords;return w&&(B.longitudew.getEast()||B.latitudew.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let ue=this._map.getBounds(),w=ue.getSouthEast(),B=ue.getNorthEast(),Q=w.distanceTo(B),ee=Math.ceil(this._accuracy/(Q/this._map._container.clientHeight)*2);this._circleElement.style.width=`${ee}px`,this._circleElement.style.height=`${ee}px`}trigger(){if(!this._setup)return a.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":pu--,Uc=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new a.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.k("trackuserlocationstart")),this.fire(new a.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let ue;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),pu++,pu>1?(ue={maximumAge:6e5,timeout:0},Uc=!0):(ue=this.options.positionOptions,Uc=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ue)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},i.Hash=bh,i.ImageSource=Gt,i.KeyboardHandler=Xt,i.LngLatBounds=ce,i.LogoControl=Yn,i.Map=class extends Ra{constructor(ue){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Xs),ue);if(w.minZoom!=null&&w.maxZoom!=null&&w.minZoom>w.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(w.minPitch!=null&&w.maxPitch!=null&&w.minPitch>w.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(w.minPitch!=null&&w.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(w.maxPitch!=null&&w.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new al(w.minZoom,w.maxZoom,w.minPitch,w.maxPitch,w.renderWorldCopies),{bearingSnap:w.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new zn,this._controls=[],this._mapId=a.a4(),this._contextLost=B=>{B.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new a.k("webglcontextlost",{originalEvent:B}))},this._contextRestored=B=>{this._setupPainter(),this.resize(),this._update(),this.fire(new a.k("webglcontextrestored",{originalEvent:B}))},this._onMapScroll=B=>{if(B.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=w.interactive,this._maxTileCacheSize=w.maxTileCacheSize,this._maxTileCacheZoomLevels=w.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=w.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=w.preserveDrawingBuffer===!0,this._antialias=w.antialias===!0,this._trackResize=w.trackResize===!0,this._bearingSnap=w.bearingSnap,this._refreshExpiredTiles=w.refreshExpiredTiles===!0,this._fadeDuration=w.fadeDuration,this._crossSourceCollisions=w.crossSourceCollisions===!0,this._collectResourceTiming=w.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},Ho),w.locale),this._clickTolerance=w.clickTolerance,this._overridePixelRatio=w.pixelRatio,this._maxCanvasSize=w.maxCanvasSize,this.transformCameraUpdate=w.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=w.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=p.addThrottleControl(()=>this.isMoving()),this._requestManager=new C(w.transformRequest),typeof w.container=="string"){if(this._container=document.getElementById(w.container),!this._container)throw new Error(`Container '${w.container}' not found.`)}else{if(!(w.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=w.container}if(w.maxBounds&&this.setMaxBounds(w.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window!="undefined"){addEventListener("online",this._onWindowOnline,!1);let B=!1,Q=nh(ee=>{this._trackResize&&!this._removed&&(this.resize(ee),this.redraw())},50);this._resizeObserver=new ResizeObserver(ee=>{B?Q(ee):B=!0}),this._resizeObserver.observe(this._container)}this.handlers=new ka(this,w),this._hash=w.hash&&new bh(typeof w.hash=="string"&&w.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:w.center,zoom:w.zoom,bearing:w.bearing,pitch:w.pitch}),w.bounds&&(this.resize(),this.fitBounds(w.bounds,a.e({},w.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=w.localIdeographFontFamily,this._validateStyle=w.validateStyle,w.style&&this.setStyle(w.style,{localIdeographFontFamily:w.localIdeographFontFamily}),w.attributionControl&&this.addControl(new Na(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new Yn,w.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",B=>{this._update(B.dataType==="style"),this.fire(new a.k(`${B.dataType}data`,B))}),this.on("dataloading",B=>{this.fire(new a.k(`${B.dataType}dataloading`,B))}),this.on("dataabort",B=>{this.fire(new a.k("sourcedataabort",B))})}_getMapId(){return this._mapId}addControl(ue,w){if(w===void 0&&(w=ue.getDefaultPosition?ue.getDefaultPosition():"top-right"),!ue||!ue.onAdd)return this.fire(new a.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let B=ue.onAdd(this);this._controls.push(ue);let Q=this._controlPositions[w];return w.indexOf("bottom")!==-1?Q.insertBefore(B,Q.firstChild):Q.appendChild(B),this}removeControl(ue){if(!ue||!ue.onRemove)return this.fire(new a.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let w=this._controls.indexOf(ue);return w>-1&&this._controls.splice(w,1),ue.onRemove(this),this}hasControl(ue){return this._controls.indexOf(ue)>-1}calculateCameraOptionsFromTo(ue,w,B,Q){return Q==null&&this.terrain&&(Q=this.terrain.getElevationForLngLatZoom(B,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(ue,w,B,Q)}resize(ue){var w;let B=this._containerDimensions(),Q=B[0],ee=B[1],le=this._getClampedPixelRatio(Q,ee);if(this._resizeCanvas(Q,ee,le),this.painter.resize(Q,ee,le),this.painter.overLimit()){let Xe=this.painter.context.gl;this._maxCanvasSize=[Xe.drawingBufferWidth,Xe.drawingBufferHeight];let ot=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,ot),this.painter.resize(Q,ee,ot)}this.transform.resize(Q,ee),(w=this._requestedCameraState)===null||w===void 0||w.resize(Q,ee);let qe=!this._moving;return qe&&(this.stop(),this.fire(new a.k("movestart",ue)).fire(new a.k("move",ue))),this.fire(new a.k("resize",ue)),qe&&this.fire(new a.k("moveend",ue)),this}_getClampedPixelRatio(ue,w){let{0:B,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),le=ue*ee,qe=w*ee;return Math.min(le>B?B/le:1,qe>Q?Q/qe:1)*ee}getPixelRatio(){var ue;return(ue=this._overridePixelRatio)!==null&&ue!==void 0?ue:devicePixelRatio}setPixelRatio(ue){this._overridePixelRatio=ue,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(ue){return this.transform.setMaxBounds(ce.convert(ue)),this._update()}setMinZoom(ue){if((ue=ue==null?-2:ue)>=-2&&ue<=this.transform.maxZoom)return this.transform.minZoom=ue,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ue,this._update(),this.getZoom()>ue&&this.setZoom(ue),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(ue){if((ue=ue==null?0:ue)<0)throw new Error("minPitch must be greater than or equal to 0");if(ue>=0&&ue<=this.transform.maxPitch)return this.transform.minPitch=ue,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(ue>=this.transform.minPitch)return this.transform.maxPitch=ue,this._update(),this.getPitch()>ue&&this.setPitch(ue),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(ue){return this.transform.renderWorldCopies=ue,this._update()}project(ue){return this.transform.locationPoint(a.N.convert(ue),this.style&&this.terrain)}unproject(ue){return this.transform.pointLocation(a.P.convert(ue),this.terrain)}isMoving(){var ue;return this._moving||((ue=this.handlers)===null||ue===void 0?void 0:ue.isMoving())}isZooming(){var ue;return this._zooming||((ue=this.handlers)===null||ue===void 0?void 0:ue.isZooming())}isRotating(){var ue;return this._rotating||((ue=this.handlers)===null||ue===void 0?void 0:ue.isRotating())}_createDelegatedListener(ue,w,B){if(ue==="mouseenter"||ue==="mouseover"){let Q=!1;return{layers:w,listener:B,delegates:{mousemove:le=>{let qe=w.filter(ot=>this.getLayer(ot)),Xe=qe.length!==0?this.queryRenderedFeatures(le.point,{layers:qe}):[];Xe.length?Q||(Q=!0,B.call(this,new jl(ue,this,le.originalEvent,{features:Xe}))):Q=!1},mouseout:()=>{Q=!1}}}}if(ue==="mouseleave"||ue==="mouseout"){let Q=!1;return{layers:w,listener:B,delegates:{mousemove:qe=>{let Xe=w.filter(ot=>this.getLayer(ot));(Xe.length!==0?this.queryRenderedFeatures(qe.point,{layers:Xe}):[]).length?Q=!0:Q&&(Q=!1,B.call(this,new jl(ue,this,qe.originalEvent)))},mouseout:qe=>{Q&&(Q=!1,B.call(this,new jl(ue,this,qe.originalEvent)))}}}}{let Q=ee=>{let le=w.filter(Xe=>this.getLayer(Xe)),qe=le.length!==0?this.queryRenderedFeatures(ee.point,{layers:le}):[];qe.length&&(ee.features=qe,B.call(this,ee),delete ee.features)};return{layers:w,listener:B,delegates:{[ue]:Q}}}}_saveDelegatedListener(ue,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ue]=this._delegatedListeners[ue]||[],this._delegatedListeners[ue].push(w)}_removeDelegatedListener(ue,w,B){if(!this._delegatedListeners||!this._delegatedListeners[ue])return;let Q=this._delegatedListeners[ue];for(let ee=0;eew.includes(qe))){for(let qe in le.delegates)this.off(qe,le.delegates[qe]);return void Q.splice(ee,1)}}}on(ue,w,B){if(B===void 0)return super.on(ue,w);let Q=this._createDelegatedListener(ue,typeof w=="string"?[w]:w,B);this._saveDelegatedListener(ue,Q);for(let ee in Q.delegates)this.on(ee,Q.delegates[ee]);return this}once(ue,w,B){if(B===void 0)return super.once(ue,w);let Q=typeof w=="string"?[w]:w,ee=this._createDelegatedListener(ue,Q,B);for(let le in ee.delegates){let qe=ee.delegates[le];ee.delegates[le]=(...Xe)=>{this._removeDelegatedListener(ue,Q,B),qe(...Xe)}}this._saveDelegatedListener(ue,ee);for(let le in ee.delegates)this.once(le,ee.delegates[le]);return this}off(ue,w,B){return B===void 0?super.off(ue,w):(this._removeDelegatedListener(ue,typeof w=="string"?[w]:w,B),this)}queryRenderedFeatures(ue,w){if(!this.style)return[];let B,Q=ue instanceof a.P||Array.isArray(ue),ee=Q?ue:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(Q?{}:ue)||{},ee instanceof a.P||typeof ee[0]=="number")B=[a.P.convert(ee)];else{let le=a.P.convert(ee[0]),qe=a.P.convert(ee[1]);B=[le,new a.P(qe.x,le.y),qe,new a.P(le.x,qe.y),le]}return this.style.queryRenderedFeatures(B,w,this.transform)}querySourceFeatures(ue,w){return this.style.querySourceFeatures(ue,w)}setStyle(ue,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&ue?(this._diffStyle(ue,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(ue,w))}setTransformRequest(ue){return this._requestManager.setTransformRequest(ue),this}_getUIString(ue){let w=this._locale[ue];if(w==null)throw new Error(`Missing UI string '${ue}'`);return w}_updateStyle(ue,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(ue,w));let B=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!ue)),ue?(this.style=new Ga(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof ue=="string"?this.style.loadURL(ue,w,B):this.style.loadJSON(ue,w,B),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new Ga(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(ue,w){if(typeof ue=="string"){let B=this._requestManager.transformRequest(ue,"Style");a.h(B,new AbortController).then(Q=>{this._updateDiff(Q.data,w)}).catch(Q=>{Q&&this.fire(new a.j(Q))})}else typeof ue=="object"&&this._updateDiff(ue,w)}_updateDiff(ue,w){try{this.style.setState(ue,w)&&this._update(!0)}catch(B){a.w(`Unable to perform style diff: ${B.message||B.error||B}. Rebuilding the style from scratch.`),this._updateStyle(ue,w)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.w("There is no style added to the map.")}addSource(ue,w){return this._lazyInitEmptyStyle(),this.style.addSource(ue,w),this._update(!0)}isSourceLoaded(ue){let w=this.style&&this.style.sourceCaches[ue];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${ue}'`)))}setTerrain(ue){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),ue){let w=this.style.sourceCaches[ue.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${ue.source}`);this.terrain===null&&w.reload();for(let B in this.style._layers){let Q=this.style._layers[B];Q.type==="hillshade"&&Q.source===ue.source&&a.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Xo(this.painter,w,ue),this.painter.renderToTexture=new Ts(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=B=>{B.dataType==="style"?this.terrain.sourceCache.freeRtt():B.dataType==="source"&&B.tile&&(B.sourceId!==ue.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(B.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new a.k("terrain",{terrain:ue})),this}getTerrain(){var ue,w;return(w=(ue=this.terrain)===null||ue===void 0?void 0:ue.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let ue=this.style&&this.style.sourceCaches;for(let w in ue){let B=ue[w]._tiles;for(let Q in B){let ee=B[Q];if(ee.state!=="loaded"&&ee.state!=="errored")return!1}}return!0}removeSource(ue){return this.style.removeSource(ue),this._update(!0)}getSource(ue){return this.style.getSource(ue)}addImage(ue,w,B={}){let{pixelRatio:Q=1,sdf:ee=!1,stretchX:le,stretchY:qe,content:Xe,textFitWidth:ot,textFitHeight:Tt}=B;if(this._lazyInitEmptyStyle(),!(w instanceof HTMLImageElement||a.b(w))){if(w.width===void 0||w.height===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:Kt,height:Jt,data:xr}=w,Pr=w;return this.style.addImage(ue,{data:new a.R({width:Kt,height:Jt},new Uint8Array(xr)),pixelRatio:Q,stretchX:le,stretchY:qe,content:Xe,textFitWidth:ot,textFitHeight:Tt,sdf:ee,version:0,userImage:Pr}),Pr.onAdd&&Pr.onAdd(this,ue),this}}{let{width:Kt,height:Jt,data:xr}=u.getImageData(w);this.style.addImage(ue,{data:new a.R({width:Kt,height:Jt},xr),pixelRatio:Q,stretchX:le,stretchY:qe,content:Xe,textFitWidth:ot,textFitHeight:Tt,sdf:ee,version:0})}}updateImage(ue,w){let B=this.style.getImage(ue);if(!B)return this.fire(new a.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let Q=w instanceof HTMLImageElement||a.b(w)?u.getImageData(w):w,{width:ee,height:le,data:qe}=Q;if(ee===void 0||le===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(ee!==B.data.width||le!==B.data.height)return this.fire(new a.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let Xe=!(w instanceof HTMLImageElement||a.b(w));return B.data.replace(qe,Xe),this.style.updateImage(ue,B),this}getImage(ue){return this.style.getImage(ue)}hasImage(ue){return ue?!!this.style.getImage(ue):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(ue){this.style.removeImage(ue)}loadImage(ue){return p.getImage(this._requestManager.transformRequest(ue,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(ue,w){return this._lazyInitEmptyStyle(),this.style.addLayer(ue,w),this._update(!0)}moveLayer(ue,w){return this.style.moveLayer(ue,w),this._update(!0)}removeLayer(ue){return this.style.removeLayer(ue),this._update(!0)}getLayer(ue){return this.style.getLayer(ue)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(ue,w,B){return this.style.setLayerZoomRange(ue,w,B),this._update(!0)}setFilter(ue,w,B={}){return this.style.setFilter(ue,w,B),this._update(!0)}getFilter(ue){return this.style.getFilter(ue)}setPaintProperty(ue,w,B,Q={}){return this.style.setPaintProperty(ue,w,B,Q),this._update(!0)}getPaintProperty(ue,w){return this.style.getPaintProperty(ue,w)}setLayoutProperty(ue,w,B,Q={}){return this.style.setLayoutProperty(ue,w,B,Q),this._update(!0)}getLayoutProperty(ue,w){return this.style.getLayoutProperty(ue,w)}setGlyphs(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(ue,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(ue,w,B={}){return this._lazyInitEmptyStyle(),this.style.addSprite(ue,w,B,Q=>{Q||this._update(!0)}),this}removeSprite(ue){return this._lazyInitEmptyStyle(),this.style.removeSprite(ue),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(ue,w,B=>{B||this._update(!0)}),this}setLight(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(ue,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(ue){return this._lazyInitEmptyStyle(),this.style.setSky(ue),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(ue,w){return this.style.setFeatureState(ue,w),this._update()}removeFeatureState(ue,w){return this.style.removeFeatureState(ue,w),this._update()}getFeatureState(ue){return this.style.getFeatureState(ue)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let ue=0,w=0;return this._container&&(ue=this._container.clientWidth||400,w=this._container.clientHeight||300),[ue,w]}_setupContainer(){let ue=this._container;ue.classList.add("maplibregl-map");let w=this._canvasContainer=c.create("div","maplibregl-canvas-container",ue);this._interactive&&w.classList.add("maplibregl-interactive"),this._canvas=c.create("canvas","maplibregl-canvas",w),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let B=this._containerDimensions(),Q=this._getClampedPixelRatio(B[0],B[1]);this._resizeCanvas(B[0],B[1],Q);let ee=this._controlContainer=c.create("div","maplibregl-control-container",ue),le=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(qe=>{le[qe]=c.create("div",`maplibregl-ctrl-${qe} `,ee)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(ue,w,B){this._canvas.width=Math.floor(B*ue),this._canvas.height=Math.floor(B*w),this._canvas.style.width=`${ue}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let ue={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},w=null;this._canvas.addEventListener("webglcontextcreationerror",Q=>{w={requestedAttributes:ue},Q&&(w.statusMessage=Q.statusMessage,w.type=Q.type)},{once:!0});let B=this._canvas.getContext("webgl2",ue)||this._canvas.getContext("webgl",ue);if(!B){let Q="Failed to initialize WebGL";throw w?(w.message=Q,new Error(JSON.stringify(w))):new Error(Q)}this.painter=new Dc(B,this.transform),f.testSupport(B)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(ue){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||ue,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(ue){return this._update(),this._renderTaskQueue.add(ue)}_cancelRenderFrame(ue){this._renderTaskQueue.remove(ue)}_render(ue){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(ue),this._removed)return;let B=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let ee=this.transform.zoom,le=u.now();this.style.zoomHistory.update(ee,le);let qe=new a.z(ee,{now:le,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),Xe=qe.crossFadingFactor();Xe===1&&Xe===this._crossFadingFactor||(B=!0,this._crossFadingFactor=Xe),this.style.update(qe)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,showPadding:this.showPadding}),this.fire(new a.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,a.bf.mark(a.bg.load),this.fire(new a.k("load"))),this.style&&(this.style.hasTransitions()||B)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let Q=this._sourcesDirty||this._styleDirty||this._placementDirty;return Q||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new a.k("idle")),!this._loaded||this._fullyLoaded||Q||(this._fullyLoaded=!0,a.bf.mark(a.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var ue;this._hash&&this._hash.remove();for(let B of this._controls)B.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window!="undefined"&&removeEventListener("online",this._onWindowOnline,!1),p.removeThrottleControl(this._imageQueueHandle),(ue=this._resizeObserver)===null||ue===void 0||ue.disconnect();let w=this.painter.context.gl.getExtension("WEBGL_lose_context");w!=null&&w.loseContext&&w.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),c.remove(this._canvasContainer),c.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),a.bf.clearMetrics(),this._removed=!0,this.fire(new a.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then(ue=>{a.bf.frame(ue),this._frameRequest=null,this._render(ue)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(ue){this._showTileBoundaries!==ue&&(this._showTileBoundaries=ue,this._update())}get showPadding(){return!!this._showPadding}set showPadding(ue){this._showPadding!==ue&&(this._showPadding=ue,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(ue){this._showCollisionBoxes!==ue&&(this._showCollisionBoxes=ue,ue?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(ue){this._showOverdrawInspector!==ue&&(this._showOverdrawInspector=ue,this._update())}get repaint(){return!!this._repaint}set repaint(ue){this._repaint!==ue&&(this._repaint=ue,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(ue){this._vertices=ue,this._update()}get version(){return yl}getCameraTargetElevation(){return this.transform.elevation}},i.MapMouseEvent=jl,i.MapTouchEvent=lf,i.MapWheelEvent=Vh,i.Marker=Yu,i.NavigationControl=class{constructor(ue){this._updateZoomButtons=()=>{let w=this._map.getZoom(),B=w===this._map.getMaxZoom(),Q=w===this._map.getMinZoom();this._zoomInButton.disabled=B,this._zoomOutButton.disabled=Q,this._zoomInButton.setAttribute("aria-disabled",B.toString()),this._zoomOutButton.setAttribute("aria-disabled",Q.toString())},this._rotateCompassArrow=()=>{let w=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=w},this._setButtonTitle=(w,B)=>{let Q=this._map._getUIString(`NavigationControl.${B}`);w.title=Q,w.setAttribute("aria-label",Q)},this.options=a.e({},va,ue),this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",w=>w.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",w=>this._map.zoomIn({},{originalEvent:w})),c.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",w=>this._map.zoomOut({},{originalEvent:w})),c.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",w=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:w}):this._map.resetNorth({},{originalEvent:w})}),this._compassIcon=c.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(ue){return this._map=ue,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new no(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){c.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(ue,w){let B=c.create("button",ue,this._container);return B.type="button",B.addEventListener("click",w),B}},i.Popup=class extends a.E{constructor(ue){super(),this.remove=()=>(this._content&&c.remove(this._content),this._container&&(c.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new a.k("close"))),this),this._onMouseUp=w=>{this._update(w.point)},this._onMouseMove=w=>{this._update(w.point)},this._onDrag=w=>{this._update(w.point)},this._update=w=>{var B;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=c.create("div","maplibregl-popup",this._map.getContainer()),this._tip=c.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let Xe of this.options.className.split(" "))this._container.classList.add(Xe);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?is(this._lngLat,this._flatPos,this._map.transform):(B=this._lngLat)===null||B===void 0?void 0:B.wrap(),this._trackPointer&&!w)return;let Q=this._flatPos=this._pos=this._trackPointer&&w?w:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&w?w:this._map.transform.locationPoint(this._lngLat));let ee=this.options.anchor,le=hc(this.options.offset);if(!ee){let Xe=this._container.offsetWidth,ot=this._container.offsetHeight,Tt;Tt=Q.y+le.bottom.ythis._map.transform.height-ot?["bottom"]:[],Q.xthis._map.transform.width-Xe/2&&Tt.push("right"),ee=Tt.length===0?"bottom":Tt.join("-")}let qe=Q.add(le[ee]);this.options.subpixelPositioning||(qe=qe.round()),c.setTransform(this._container,`${$l[ee]} translate(${qe.x}px,${qe.y}px)`),ku(this._container,ee,"popup")},this._onClose=()=>{this.remove()},this.options=a.e(Object.create(oo),ue)}addTo(ue){return this._map&&this.remove(),this._map=ue,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new a.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(ue){return this._lngLat=a.N.convert(ue),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(ue){return this.setDOMContent(document.createTextNode(ue))}setHTML(ue){let w=document.createDocumentFragment(),B=document.createElement("body"),Q;for(B.innerHTML=ue;Q=B.firstChild,Q;)w.appendChild(Q);return this.setDOMContent(w)}getMaxWidth(){var ue;return(ue=this._container)===null||ue===void 0?void 0:ue.style.maxWidth}setMaxWidth(ue){return this.options.maxWidth=ue,this._update(),this}setDOMContent(ue){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=c.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(ue),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(ue){return this._container&&this._container.classList.add(ue),this}removeClassName(ue){return this._container&&this._container.classList.remove(ue),this}setOffset(ue){return this.options.offset=ue,this._update(),this}toggleClassName(ue){if(this._container)return this._container.classList.toggle(ue)}setSubpixelPositioning(ue){this.options.subpixelPositioning=ue}_createCloseButton(){this.options.closeButton&&(this._closeButton=c.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let ue=this._container.querySelector(Vc);ue&&ue.focus()}},i.RasterDEMTileSource=Wt,i.RasterTileSource=pt,i.ScaleControl=class{constructor(ue){this._onMove=()=>{Ac(this._map,this._container,this.options)},this.setUnit=w=>{this.options.unit=w,Ac(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},xu),ue)}getDefaultPosition(){return"bottom-left"}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-scale",ue.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){c.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},i.ScrollZoomHandler=Kr,i.Style=Ga,i.TerrainControl=class{constructor(ue){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=ue}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=c.create("button","maplibregl-ctrl-terrain",this._container),c.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){c.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},i.TwoFingersTouchPitchHandler=Bc,i.TwoFingersTouchRotateHandler=cf,i.TwoFingersTouchZoomHandler=vu,i.TwoFingersTouchZoomRotateHandler=Zi,i.VectorTileSource=ct,i.VideoSource=Nt,i.addSourceType=(ue,w)=>a._(void 0,void 0,void 0,function*(){if(wr(ue))throw new Error(`A source type called "${ue}" already exists.`);((B,Q)=>{sr[B]=Q})(ue,w)}),i.clearPrewarmedResources=function(){let ue=me;ue&&(ue.isPreloaded()&&ue.numActive()===1?(ue.release(_e),me=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},i.getMaxParallelImageRequests=function(){return a.a.MAX_PARALLEL_IMAGE_REQUESTS},i.getRTLTextPluginStatus=function(){return er().getRTLTextPluginStatus()},i.getVersion=function(){return Ku},i.getWorkerCount=function(){return Me.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(ue){return Ae().broadcast("IS",ue)},i.prewarm=function(){Se().acquire(_e)},i.setMaxParallelImageRequests=function(ue){a.a.MAX_PARALLEL_IMAGE_REQUESTS=ue},i.setRTLTextPlugin=function(ue,w){return er().setRTLTextPlugin(ue,w)},i.setWorkerCount=function(ue){Me.workerCount=ue},i.setWorkerUrl=function(ue){a.a.WORKER_URL=ue}});var n=e;return n})});var WHe=ye((kxr,jHe)=>{"use strict";var iw=Dr(),UWt=ru().sanitizeHTML,VWt=wJ(),VHe=bx();function GHe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=VHe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var ag=GHe.prototype;ag.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=s7(t)};ag.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};ag.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};ag.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};ag.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};ag.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};ag.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!s7(e)){var r=GWt(e);t.addSource(this.idSource,r)}};ag.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function HHe(e){var t={},r={};switch(e.type){case"circle":iw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":iw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":iw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=VWt(n.textposition,n.iconsize);iw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),iw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":iw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function GWt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=UWt(e.sourceattribution)),n}jHe.exports=function(t,r,n){var i=new GHe(t,r);return i.update(n),i}});var eje=ye((Lxr,QHe)=>{"use strict";var CJ=UHe(),kJ=Dr(),YHe=ix(),XHe=qa(),HWt=ho(),jWt=yv(),l7=vf(),KHe=Sg(),WWt=KHe.drawMode,XWt=KHe.selectMode,ZWt=zf().prepSelect,YWt=zf().clearOutline,KWt=zf().clearSelectionsCache,JWt=zf().selectOnClick,nw=bx(),$Wt=WHe();function JHe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Bh=JHe.prototype;Bh.plot=function(e,t,r){var n=this,i;n.map?i=new Promise(function(a,o){n.updateMap(e,t,a,o)}):i=new Promise(function(a,o){n.createMap(e,t,a,o)}),r.push(i)};Bh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=$He(a.style),s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new CJ.Map({container:i.div,style:o.style,center:LJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new CJ.AttributionControl({compact:!0})),c={};u.on("styleimagemissing",function(h){var d=h.id;if(!c[d]&&d.includes("-15")){c[d]=!0;var v=new Image(15,15);v.onload=function(){u.addImage(d,v)},v.crossOrigin="Anonymous",v.src="https://unpkg.com/maki@2.1.0/icons/"+d+".svg"}}),u.setTransformRequest(function(h){return h=h.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:h}}),u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var f=[];f.push(new Promise(function(h){u.once("load",h)})),f=f.concat(YHe.fetchTraceGeoData(e)),Promise.all(f).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Bh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=$He(o.style);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(YHe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Bh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&JWt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&l7.click(n,l.originalEvent)}}};Bh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=kJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),XWt(a)||WWt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){ZWt(l,u,c,t.dragOptions,a)},jWt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Bh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Bh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var PJ=Dr(),eXt=C_(),tXt=Yd(),tje=HC();rje.exports=function(t,r,n){eXt(t,r,n,{type:"map",attributes:tje,handleDefaults:rXt,partition:"y"})};function rXt(e,t,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var n=r("bounds.west"),i=r("bounds.east"),a=r("bounds.south"),o=r("bounds.north");(n===void 0||i===void 0||a===void 0||o===void 0)&&delete t.bounds,tXt(e,t,{name:"layers",handleItemDefaults:iXt}),t._input=e}function iXt(e,t){function r(l,u){return PJ.coerce(e,t,tje.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",PJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),PJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var c7=ye(l0=>{"use strict";var u7=Dr(),nje=u7.strTranslate,nXt=u7.strScale,aXt=Id().getSubplotCalcData,oXt=Wp(),sXt=Oa(),aje=So(),lXt=ru(),uXt=eje(),wx="map";l0.name=wx;l0.attr="subplot";l0.idRoot=wx;l0.idRegex=l0.attrRegex=u7.counterRegex(wx);l0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};l0.layoutAttributes=HC();l0.supplyLayoutDefaults=ije();l0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[wx],a=0;ax/2){var b=f.split("|").join("
");d.text(b).attr("data-unformatted",b).call(lXt.convertToTspans,e),v=aje.bBox(d.node())}d.attr("transform",nje(-3,-v.height+8)),h.insert("rect",".static-attribution").attr({x:-v.width-6,y:-v.height-3,width:v.width+6,height:v.height+3,fill:"rgba(255, 255, 255, 0.75)"});var p=1;v.width+6>x&&(p=x/(v.width+6));var C=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",nje(C[0],C[1])+nXt(p))}};l0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[wx],n=0;n{"use strict";oje.exports={attributes:t7(),supplyDefaults:_He(),colorbar:$d(),formatLabels:bJ(),calc:hF(),plot:RHe(),hoverPoints:o7().hoverPoints,eventData:OHe(),selectPoints:BHe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:c7(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var uje=ye((Dxr,lje)=>{"use strict";lje.exports=sje()});var IJ=ye((Fxr,cje)=>{"use strict";var d1=JA(),cXt=Tu(),fXt=Qo().hovertemplateAttrs,hXt=Gl(),Tx=Ao().extendFlat;cje.exports=Tx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Tx({},d1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:d1.text,hovertext:d1.hovertext,marker:{line:{color:Tx({},d1.marker.line.color,{editType:"plot"}),width:Tx({},d1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Tx({},d1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Tx({},d1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Tx({},d1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:d1.hoverinfo,hovertemplate:fXt({},{keys:["properties"]}),showlegend:Tx({},hXt.showlegend,{dflt:!1})},cXt("",{cLetter:"z",editTypeOverride:"calc"}))});var hje=ye((zxr,fje)=>{"use strict";var ZC=Dr(),dXt=Jh(),vXt=IJ();fje.exports=function(t,r,n,i){function a(c,f){return ZC.coerce(t,r,vXt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!ZC.isArrayOrTypedArray(o)||!o.length||!ZC.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||ZC.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),dXt(t,r,i,a,{prefix:"",cLetter:"z"}),ZC.coerceSelectionMarkerOpacity(r,a)}});var RJ=ye((Oxr,pje)=>{"use strict";var pXt=Eo(),v1=Dr(),gXt=tc(),mXt=So(),yXt=tx().makeBlank,dje=ix();function _Xt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:yXt()};if(!r)return a;var o=dje.extractTraceFeature(e);if(!o)return a;var s=gXt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;v1.isArrayOrTypedArray(l.opacity)&&(c=function(C){var E=C.mo;return pXt(E)?+v1.constrain(E,0,1):0});var f;v1.isArrayOrTypedArray(u.color)&&(f=function(C){return C.mlc});var h;v1.isArrayOrTypedArray(u.width)&&(h=function(C){return C.mlw});for(var d=0;d{"use strict";var mje=RJ().convert,xXt=RJ().convertOnSelect,gje=bx().traceLayerPrefix;function yje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",gje+t+"-fill"],["line",gje+t+"-line"]],this.below=null}var E5=yje.prototype;E5.update=function(e){this._update(mje(e)),e[0].trace._glTrace=this};E5.updateOnSelect=function(e){this._update(xXt(e))};E5._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};E5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};_je.exports=function(t,r){var n=r[0].trace,i=new yje(t,n.uid),a=i.sourceId,o=mje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var wje=ye((Bxr,bje)=>{"use strict";bje.exports={attributes:IJ(),supplyDefaults:hje(),colorbar:S_(),calc:RF(),plot:xje(),hoverPoints:FF(),eventData:zF(),selectPoints:OF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";Tje.exports=wje()});var FJ=ye((Uxr,Mje)=>{"use strict";var bXt=Tu(),wXt=Qo().hovertemplateAttrs,Sje=Gl(),f7=t7(),DJ=Ao().extendFlat;Mje.exports=DJ({lon:f7.lon,lat:f7.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:f7.text,hovertext:f7.hovertext,hoverinfo:DJ({},Sje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:wXt(),showlegend:DJ({},Sje.showlegend,{dflt:!1})},bXt("",{cLetter:"z",editTypeOverride:"calc"}))});var Cje=ye((Vxr,Eje)=>{"use strict";var TXt=Dr(),AXt=Jh(),SXt=FJ();Eje.exports=function(t,r,n,i){function a(u,c){return TXt.coerce(t,r,SXt,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),AXt(t,r,i,a,{prefix:"",cLetter:"z"})}});var Pje=ye((Gxr,Lje)=>{"use strict";var zJ=Eo(),MXt=Dr().isArrayOrTypedArray,OJ=hs().BADNUM,EXt=gv(),kje=Dr()._;Lje.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=MXt(a)&&a.length,s=0;s{"use strict";var CXt=Eo(),qJ=Dr(),Ije=Ca(),Rje=tc(),Dje=hs().BADNUM,kXt=tx().makeBlank;Fje.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:kXt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=qJ.isArrayOrTypedArray(l)&&l.length,f=qJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=Rje.extractOpts(r),p=b.reversescale?Rje.flipScale(b.colorscale):b.colorscale,C=p[0][1],E=Ije.opacity(C)<1?C:Ije.addOpacity(C,0),A=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var Oje=zje(),LXt=bx().traceLayerPrefix;function qje(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",LXt+t+"-heatmap"]],this.below=null}var h7=qje.prototype;h7.update=function(e){var t=this.subplot,r=this.layerList,n=Oje(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};h7.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Bje.exports=function(t,r){var n=r[0].trace,i=new qje(t,n.uid),a=i.sourceId,o=Oje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var Vje=ye((Wxr,Uje)=>{"use strict";var PXt=ho(),IXt=o7().hoverPoints,RXt=o7().getExtraText;Uje.exports=function(t,r,n){var i=IXt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=PXt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=RXt(s,l,o[0].t.labels),[a]}}});var Hje=ye((Xxr,Gje)=>{"use strict";Gje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var Wje=ye((Zxr,jje)=>{"use strict";jje.exports={attributes:FJ(),supplyDefaults:Cje(),colorbar:S_(),formatLabels:bJ(),calc:Pje(),plot:Nje(),hoverPoints:Vje(),eventData:Hje(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";Xje.exports=Wje()});var NJ=ye((Jxr,$je)=>{"use strict";var DXt=ec(),FXt=Gl(),Yje=Eh(),BJ=i3(),zXt=kc().attributes,Kje=Qo().hovertemplateAttrs,OXt=Tu(),qXt=pl().templatedArray,BXt=df().descriptionOnlyNumbers,Jje=Ao().extendFlat,NXt=mc().overrideAll,Kxr=$je.exports=NXt({hoverinfo:Jje({},FXt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:BJ.hoverlabel,domain:zXt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:BXt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:DXt({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Yje.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:BJ.hoverlabel,hovertemplate:Kje({},{keys:["value","label"]}),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Yje.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:BJ.hoverlabel,hovertemplate:Kje({},{keys:["value","label"]}),colorscales:qXt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:Jje(OXt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var iWe=ye(($xr,rWe)=>{"use strict";var C5=Dr(),d7=NJ(),UXt=Ca(),Qje=cd(),VXt=kc().defaults,eWe=cM(),tWe=pl(),GXt=Yd();rWe.exports=function(t,r,n,i){function a(A,L){return C5.coerce(t,r,d7,A,L)}var o=C5.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,l=tWe.newContainer(r,"node");function u(A,L){return C5.coerce(s,l,d7.node,A,L)}u("label"),u("groups"),u("x"),u("y"),u("pad"),u("thickness"),u("line.color"),u("line.width"),u("hoverinfo",t.hoverinfo),eWe(s,l,u,o),u("hovertemplate"),u("align");var c=i.colorway,f=function(A){return c[A%c.length]};u("color",l.label.map(function(A,L){return UXt.addOpacity(f(L),.8)})),u("customdata");var h=t.link||{},d=tWe.newContainer(r,"link");function v(A,L){return C5.coerce(h,d,d7.link,A,L)}v("label"),v("arrowlen"),v("source"),v("target"),v("value"),v("line.color"),v("line.width"),v("hoverinfo",t.hoverinfo),eWe(h,d,v,o),v("hovertemplate");var x=Qje(i.paper_bgcolor).getLuminance()<.333,b=x?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",p=v("color",b);function C(A){var L=Qje(A);if(!L.isValid())return A;var _=L.getAlpha();return _<=.8?L.setAlpha(_+.2):L=x?L.brighten():L.darken(),L.toRgbString()}v("hovercolor",Array.isArray(p)?p.map(C):C(p)),v("customdata"),GXt(h,d,{name:"colorscales",handleItemDefaults:HXt}),VXt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var E;l.x.length&&l.y.length&&(E="freeform"),a("arrangement",E),C5.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function HXt(e,t){function r(n,i){return C5.coerce(e,t,d7.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var UJ=ye((Qxr,nWe)=>{"use strict";nWe.exports=jXt;function jXt(e){for(var t=e.length,r=new Array(t),n=new Array(t),i=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),l=0;l0;){b=C[C.length-1];var E=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=A}else{if(n[b]===r[b]){for(var _=[],k=[],M=0,A=p.length-1;A>=0;--A){var g=p[A];if(i[g]=!1,_.push(g),k.push(s[g]),M+=s[g].length,o[g]=c.length,g===b){p.length=A;break}}c.push(_);for(var P=new Array(M),A=0;A{"use strict";var WXt=UJ(),k5=Dr(),XXt=Km().wrap,YC=k5.isArrayOrTypedArray,aWe=k5.isIndex,oWe=tc();function ZXt(e){var t=e.node,r=e.link,n=[],i=YC(r.color),a=YC(r.hovercolor),o=YC(r.customdata),s={},l={},u=r.colorscales.length,c;for(c=0;cv&&(v=r.source[c]),r.target[c]>v&&(v=r.target[c]);var x=v+1;e.node._count=x;var b,p=e.node.groups,C={};for(c=0;c0&&aWe(M,x)&&aWe(g,x)&&!(C.hasOwnProperty(M)&&C.hasOwnProperty(g)&&C[M]===C[g])){C.hasOwnProperty(g)&&(g=C[g]),C.hasOwnProperty(M)&&(M=C[M]),M=+M,g=+g,s[M]=s[g]=!0;var P="";r.label&&r.label[c]&&(P=r.label[c]);var T=null;P&&l.hasOwnProperty(P)&&(T=l[P]),n.push({pointNumber:c,label:P,color:i?r.color[c]:r.color,hovercolor:a?r.hovercolor[c]:r.hovercolor,customdata:o?r.customdata[c]:r.customdata,concentrationscale:T,source:M,target:g,value:+k}),_.source.push(M),_.target.push(g)}}var z=x+p.length,O=YC(t.color),V=YC(t.customdata),G=[];for(c=0;cx-1,childrenNodes:[],pointNumber:c,label:Z,color:O?t.color[c]:t.color,customdata:V?t.customdata[c]:t.customdata})}var H=!1;return YXt(z,_.source,_.target)&&(H=!0),{circular:H,links:n,nodes:G,groups:p,groupLookup:C}}function YXt(e,t,r){for(var n=k5.init2dArray(e,0),i=0;i1})}sWe.exports=function(t,r){var n=ZXt(r);return XXt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var cWe=ye((v7,uWe)=>{(function(e,t){typeof v7=="object"&&typeof uWe!="undefined"?t(v7):(e=e||self,t(e.d3=e.d3||{}))})(v7,function(e){"use strict";function t(k){var M=+this._x.call(null,k),g=+this._y.call(null,k);return r(this.cover(M,g),M,g,k)}function r(k,M,g,P){if(isNaN(M)||isNaN(g))return k;var T,z=k._root,O={data:P},V=k._x0,G=k._y0,Z=k._x1,H=k._y1,N,j,re,oe,_e,Me,ke,me;if(!z)return k._root=O,k;for(;z.length;)if((_e=M>=(N=(V+Z)/2))?V=N:Z=N,(Me=g>=(j=(G+H)/2))?G=j:H=j,T=z,!(z=z[ke=Me<<1|_e]))return T[ke]=O,k;if(re=+k._x.call(null,z.data),oe=+k._y.call(null,z.data),M===re&&g===oe)return O.next=z,T?T[ke]=O:k._root=O,k;do T=T?T[ke]=new Array(4):k._root=new Array(4),(_e=M>=(N=(V+Z)/2))?V=N:Z=N,(Me=g>=(j=(G+H)/2))?G=j:H=j;while((ke=Me<<1|_e)===(me=(oe>=j)<<1|re>=N));return T[me]=z,T[ke]=O,k}function n(k){var M,g,P=k.length,T,z,O=new Array(P),V=new Array(P),G=1/0,Z=1/0,H=-1/0,N=-1/0;for(g=0;gH&&(H=T),zN&&(N=z));if(G>H||Z>N)return this;for(this.cover(G,Z).cover(H,N),g=0;gk||k>=T||P>M||M>=z;)switch(Z=(MH||(V=oe.y0)>N||(G=oe.x1)=ke)<<1|k>=Me)&&(oe=j[j.length-1],j[j.length-1]=j[j.length-1-_e],j[j.length-1-_e]=oe)}else{var me=k-+this._x.call(null,re.data),ie=M-+this._y.call(null,re.data),Se=me*me+ie*ie;if(Se=(j=(O+G)/2))?O=j:G=j,(_e=N>=(re=(V+Z)/2))?V=re:Z=re,M=g,!(g=g[Me=_e<<1|oe]))return this;if(!g.length)break;(M[Me+1&3]||M[Me+2&3]||M[Me+3&3])&&(P=M,ke=Me)}for(;g.data!==k;)if(T=g,!(g=g.next))return this;return(z=g.next)&&delete g.next,T?(z?T.next=z:delete T.next,this):M?(z?M[Me]=z:delete M[Me],(g=M[0]||M[1]||M[2]||M[3])&&g===(M[3]||M[2]||M[1]||M[0])&&!g.length&&(P?P[ke]=g:this._root=g),this):(this._root=z,this)}function c(k){for(var M=0,g=k.length;M{(function(e,t){t(typeof p7=="object"&&typeof fWe!="undefined"?p7:e.d3=e.d3||{})})(p7,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(x){return t+x in this},get:function(x){return this[t+x]},set:function(x,b){return this[t+x]=b,this},remove:function(x){var b=t+x;return b in this&&delete this[b]},clear:function(){for(var x in this)x[0]===t&&delete this[x]},keys:function(){var x=[];for(var b in this)b[0]===t&&x.push(b.slice(1));return x},values:function(){var x=[];for(var b in this)b[0]===t&&x.push(this[b]);return x},entries:function(){var x=[];for(var b in this)b[0]===t&&x.push({key:b.slice(1),value:this[b]});return x},size:function(){var x=0;for(var b in this)b[0]===t&&++x;return x},empty:function(){for(var x in this)if(x[0]===t)return!1;return!0},each:function(x){for(var b in this)b[0]===t&&x(this[b],b.slice(1),this)}};function n(x,b){var p=new r;if(x instanceof r)x.each(function(_,k){p.set(k,_)});else if(Array.isArray(x)){var C=-1,E=x.length,A;if(b==null)for(;++C=x.length)return p!=null&&_.sort(p),C!=null?C(_):_;for(var P=-1,T=_.length,z=x[k++],O,V,G=n(),Z,H=M();++Px.length)return _;var M,g=b[k-1];return C!=null&&k>=x.length?M=_.entries():(M=[],_.each(function(P,T){M.push({key:T,values:L(P,k)})})),g!=null?M.sort(function(P,T){return g(P.key,T.key)}):M}return E={object:function(_){return A(_,0,a,o)},map:function(_){return A(_,0,s,l)},entries:function(_){return L(A(_,0,s,l),0)},key:function(_){return x.push(_),E},sortKeys:function(_){return b[x.length-1]=_,E},sortValues:function(_){return p=_,E},rollup:function(_){return C=_,E}}}function a(){return{}}function o(x,b,p){x[b]=p}function s(){return n()}function l(x,b,p){x.set(b,p)}function u(){}var c=n.prototype;u.prototype=f.prototype={constructor:u,has:c.has,add:function(x){return x+="",this[t+x]=x,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each};function f(x,b){var p=new u;if(x instanceof u)x.each(function(A){p.add(A)});else if(x){var C=-1,E=x.length;if(b==null)for(;++C{(function(e,t){typeof m7=="object"&&typeof hWe!="undefined"?t(m7):(e=e||self,t(e.d3=e.d3||{}))})(m7,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,l=arguments.length,u={},c;s=0&&(c=u.slice(f+1),u=u.slice(0,f)),u&&!l.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:c}})}n.prototype=r.prototype={constructor:n,on:function(s,l){var u=this._,c=i(s+"",u),f,h=-1,d=c.length;if(arguments.length<2){for(;++h0)for(var u=new Array(f),c=0,f,h;c{(function(e,t){typeof y7=="object"&&typeof vWe!="undefined"?t(y7):(e=e||self,t(e.d3=e.d3||{}))})(y7,function(e){"use strict";var t=0,r=0,n=0,i=1e3,a,o,s=0,l=0,u=0,c=typeof performance=="object"&&performance.now?performance:Date,f=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(k){setTimeout(k,17)};function h(){return l||(f(d),l=c.now()+u)}function d(){l=0}function v(){this._call=this._time=this._next=null}v.prototype=x.prototype={constructor:v,restart:function(k,M,g){if(typeof k!="function")throw new TypeError("callback is not a function");g=(g==null?h():+g)+(M==null?0:+M),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=k,this._time=g,A()},stop:function(){this._call&&(this._call=null,this._time=1/0,A())}};function x(k,M,g){var P=new v;return P.restart(k,M,g),P}function b(){h(),++t;for(var k=a,M;k;)(M=l-k._time)>=0&&k._call.call(null,M),k=k._next;--t}function p(){l=(s=c.now())+u,t=r=0;try{b()}finally{t=0,E(),l=0}}function C(){var k=c.now(),M=k-s;M>i&&(u-=M,s=k)}function E(){for(var k,M=a,g,P=1/0;M;)M._call?(P>M._time&&(P=M._time),k=M,M=M._next):(g=M._next,M._next=null,M=k?k._next=g:a=g);o=k,A(P)}function A(k){if(!t){r&&(r=clearTimeout(r));var M=k-l;M>24?(k<1/0&&(r=setTimeout(p,k-c.now()-u)),n&&(n=clearInterval(n))):(n||(s=c.now(),n=setInterval(C,i)),t=1,f(p))}}function L(k,M,g){var P=new v;return M=M==null?0:+M,P.restart(function(T){P.stop(),k(T+M)},M,g),P}function _(k,M,g){var P=new v,T=M;return M==null?(P.restart(k,M,g),P):(M=+M,g=g==null?h():+g,P.restart(function z(O){O+=T,P.restart(z,T+=M,g),k(O)},M,g),P)}e.interval=_,e.now=h,e.timeout=L,e.timer=x,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var mWe=ye((_7,gWe)=>{(function(e,t){typeof _7=="object"&&typeof gWe!="undefined"?t(_7,cWe(),g7(),dWe(),pWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(_7,function(e,t,r,n,i){"use strict";function a(k,M){var g;k==null&&(k=0),M==null&&(M=0);function P(){var T,z=g.length,O,V=0,G=0;for(T=0;TN.index){var Fe=j-De.x-De.vx,ce=re-De.y-De.vy,Ze=Fe*Fe+ce*ce;Zej+ge||Lere+ge||AeG.r&&(G.r=G[Z].r)}function V(){if(M){var G,Z=M.length,H;for(g=new Array(Z),G=0;G1?(_e==null?V.remove(oe):V.set(oe,re(_e)),M):V.get(oe)},find:function(oe,_e,Me){var ke=0,me=k.length,ie,Se,Le,Ae,De;for(Me==null?Me=1/0:Me*=Me,ke=0;ke1?(Z.on(oe,_e),M):Z.on(oe)}}}function E(){var k,M,g,P=o(-30),T,z=1,O=1/0,V=.81;function G(j){var re,oe=k.length,_e=t.quadtree(k,v,x).visitAfter(H);for(g=j,re=0;re=O)return;(j.data!==M||j.next)&&(Me===0&&(Me=s(),ie+=Me*Me),ke===0&&(ke=s(),ie+=ke*ke),ie{(function(e,t){typeof x7=="object"&&typeof yWe!="undefined"?t(x7):(e=e||self,t(e.d3=e.d3||{}))})(x7,function(e){"use strict";var t=Math.PI,r=2*t,n=1e-6,i=r-n;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,l){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,l){this._+="L"+(this._x1=+s)+","+(this._y1=+l)},quadraticCurveTo:function(s,l,u,c){this._+="Q"+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+c)},bezierCurveTo:function(s,l,u,c,f,h){this._+="C"+ +s+","+ +l+","+ +u+","+ +c+","+(this._x1=+f)+","+(this._y1=+h)},arcTo:function(s,l,u,c,f){s=+s,l=+l,u=+u,c=+c,f=+f;var h=this._x1,d=this._y1,v=u-s,x=c-l,b=h-s,p=d-l,C=b*b+p*p;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=l);else if(C>n)if(!(Math.abs(p*v-x*b)>n)||!f)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var E=u-h,A=c-d,L=v*v+x*x,_=E*E+A*A,k=Math.sqrt(L),M=Math.sqrt(C),g=f*Math.tan((t-Math.acos((L+C-_)/(2*k*M)))/2),P=g/M,T=g/k;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(l+P*p)),this._+="A"+f+","+f+",0,0,"+ +(p*E>b*A)+","+(this._x1=s+T*v)+","+(this._y1=l+T*x)}},arc:function(s,l,u,c,f,h){s=+s,l=+l,u=+u,h=!!h;var d=u*Math.cos(c),v=u*Math.sin(c),x=s+d,b=l+v,p=1^h,C=h?c-f:f-c;if(u<0)throw new Error("negative radius: "+u);this._x1===null?this._+="M"+x+","+b:(Math.abs(this._x1-x)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+x+","+b),u&&(C<0&&(C=C%r+r),C>i?this._+="A"+u+","+u+",0,1,"+p+","+(s-d)+","+(l-v)+"A"+u+","+u+",0,1,"+p+","+(this._x1=x)+","+(this._y1=b):C>n&&(this._+="A"+u+","+u+",0,"+ +(C>=t)+","+p+","+(this._x1=s+u*Math.cos(f))+","+(this._y1=l+u*Math.sin(f))))},rect:function(s,l,u,c){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)+"h"+ +u+"v"+ +c+"h"+-u+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var VJ=ye((b7,xWe)=>{(function(e,t){typeof b7=="object"&&typeof xWe!="undefined"?t(b7,_We()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(b7,function(e,t){"use strict";function r(St){return function(){return St}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,f=Math.PI,h=f/2,d=2*f;function v(St){return St>1?0:St<-1?f:Math.acos(St)}function x(St){return St>=1?h:St<=-1?-h:Math.asin(St)}function b(St){return St.innerRadius}function p(St){return St.outerRadius}function C(St){return St.startAngle}function E(St){return St.endAngle}function A(St){return St&&St.padAngle}function L(St,Cr,Qr,pi,fn,Sn,En,ki){var _n=Qr-St,ya=pi-Cr,Jn=En-fn,Ma=ki-Sn,_o=Ma*_n-Jn*ya;if(!(_o*_oZl*Zl+Su*Su&&(Ss=Js,fl=Os),{cx:Ss,cy:fl,x01:-Jn,y01:-Ma,x11:Ss*(fn/zl-1),y11:fl*(fn/zl-1)}}function k(){var St=b,Cr=p,Qr=r(0),pi=null,fn=C,Sn=E,En=A,ki=null;function _n(){var ya,Jn,Ma=+St.apply(this,arguments),_o=+Cr.apply(this,arguments),No=fn.apply(this,arguments)-h,po=Sn.apply(this,arguments)-h,Lo=n(po-No),Co=po>No;if(ki||(ki=ya=t.path()),_oc))ki.moveTo(0,0);else if(Lo>d-c)ki.moveTo(_o*a(No),_o*l(No)),ki.arc(0,0,_o,No,po,!Co),Ma>c&&(ki.moveTo(Ma*a(po),Ma*l(po)),ki.arc(0,0,Ma,po,No,Co));else{var Fs=No,zs=po,ul=No,cl=po,zl=Lo,cs=Lo,nl=En.apply(this,arguments)/2,Ss=nl>c&&(pi?+pi.apply(this,arguments):u(Ma*Ma+_o*_o)),fl=s(n(_o-Ma)/2,+Qr.apply(this,arguments)),Js=fl,Os=fl,Io,us;if(Ss>c){var Zl=x(Ss/Ma*l(nl)),Su=x(Ss/_o*l(nl));(zl-=Zl*2)>c?(Zl*=Co?1:-1,ul+=Zl,cl-=Zl):(zl=0,ul=cl=(No+po)/2),(cs-=Su*2)>c?(Su*=Co?1:-1,Fs+=Su,zs-=Su):(cs=0,Fs=zs=(No+po)/2)}var nc=_o*a(Fs),ws=_o*l(Fs),Fn=Ma*a(cl),_a=Ma*l(cl);if(fl>c){var Vu=_o*a(zs),Ol=_o*l(zs),xo=Ma*a(ul),Yl=Ma*l(ul),Us;if(Loc?Os>c?(Io=_(xo,Yl,nc,ws,_o,Os,Co),us=_(Vu,Ol,Fn,_a,_o,Os,Co),ki.moveTo(Io.cx+Io.x01,Io.cy+Io.y01),Osc)||!(zl>c)?ki.lineTo(Fn,_a):Js>c?(Io=_(Fn,_a,Vu,Ol,Ma,-Js,Co),us=_(nc,ws,xo,Yl,Ma,-Js,Co),ki.lineTo(Io.cx+Io.x01,Io.cy+Io.y01),Js=_o;--No)ki.point(zs[No],ul[No]);ki.lineEnd(),ki.areaEnd()}Co&&(zs[Ma]=+St(Lo,Ma,Jn),ul[Ma]=+Qr(Lo,Ma,Jn),ki.point(Cr?+Cr(Lo,Ma,Jn):zs[Ma],pi?+pi(Lo,Ma,Jn):ul[Ma]))}if(Fs)return ki=null,Fs+""||null}function ya(){return z().defined(fn).curve(En).context(Sn)}return _n.x=function(Jn){return arguments.length?(St=typeof Jn=="function"?Jn:r(+Jn),Cr=null,_n):St},_n.x0=function(Jn){return arguments.length?(St=typeof Jn=="function"?Jn:r(+Jn),_n):St},_n.x1=function(Jn){return arguments.length?(Cr=Jn==null?null:typeof Jn=="function"?Jn:r(+Jn),_n):Cr},_n.y=function(Jn){return arguments.length?(Qr=typeof Jn=="function"?Jn:r(+Jn),pi=null,_n):Qr},_n.y0=function(Jn){return arguments.length?(Qr=typeof Jn=="function"?Jn:r(+Jn),_n):Qr},_n.y1=function(Jn){return arguments.length?(pi=Jn==null?null:typeof Jn=="function"?Jn:r(+Jn),_n):pi},_n.lineX0=_n.lineY0=function(){return ya().x(St).y(Qr)},_n.lineY1=function(){return ya().x(St).y(pi)},_n.lineX1=function(){return ya().x(Cr).y(Qr)},_n.defined=function(Jn){return arguments.length?(fn=typeof Jn=="function"?Jn:r(!!Jn),_n):fn},_n.curve=function(Jn){return arguments.length?(En=Jn,Sn!=null&&(ki=En(Sn)),_n):En},_n.context=function(Jn){return arguments.length?(Jn==null?Sn=ki=null:ki=En(Sn=Jn),_n):Sn},_n}function V(St,Cr){return CrSt?1:Cr>=St?0:NaN}function G(St){return St}function Z(){var St=G,Cr=V,Qr=null,pi=r(0),fn=r(d),Sn=r(0);function En(ki){var _n,ya=ki.length,Jn,Ma,_o=0,No=new Array(ya),po=new Array(ya),Lo=+pi.apply(this,arguments),Co=Math.min(d,Math.max(-d,fn.apply(this,arguments)-Lo)),Fs,zs=Math.min(Math.abs(Co)/ya,Sn.apply(this,arguments)),ul=zs*(Co<0?-1:1),cl;for(_n=0;_n0&&(_o+=cl);for(Cr!=null?No.sort(function(zl,cs){return Cr(po[zl],po[cs])}):Qr!=null&&No.sort(function(zl,cs){return Qr(ki[zl],ki[cs])}),_n=0,Ma=_o?(Co-ya*ul)/_o:0;_n0?cl*Ma:0)+ul,po[Jn]={data:ki[Jn],index:_n,value:cl,startAngle:Lo,endAngle:Fs,padAngle:zs};return po}return En.value=function(ki){return arguments.length?(St=typeof ki=="function"?ki:r(+ki),En):St},En.sortValues=function(ki){return arguments.length?(Cr=ki,Qr=null,En):Cr},En.sort=function(ki){return arguments.length?(Qr=ki,Cr=null,En):Qr},En.startAngle=function(ki){return arguments.length?(pi=typeof ki=="function"?ki:r(+ki),En):pi},En.endAngle=function(ki){return arguments.length?(fn=typeof ki=="function"?ki:r(+ki),En):fn},En.padAngle=function(ki){return arguments.length?(Sn=typeof ki=="function"?ki:r(+ki),En):Sn},En}var H=j(g);function N(St){this._curve=St}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(St,Cr){this._curve.point(Cr*Math.sin(St),Cr*-Math.cos(St))}};function j(St){function Cr(Qr){return new N(St(Qr))}return Cr._curve=St,Cr}function re(St){var Cr=St.curve;return St.angle=St.x,delete St.x,St.radius=St.y,delete St.y,St.curve=function(Qr){return arguments.length?Cr(j(Qr)):Cr()._curve},St}function oe(){return re(z().curve(H))}function _e(){var St=O().curve(H),Cr=St.curve,Qr=St.lineX0,pi=St.lineX1,fn=St.lineY0,Sn=St.lineY1;return St.angle=St.x,delete St.x,St.startAngle=St.x0,delete St.x0,St.endAngle=St.x1,delete St.x1,St.radius=St.y,delete St.y,St.innerRadius=St.y0,delete St.y0,St.outerRadius=St.y1,delete St.y1,St.lineStartAngle=function(){return re(Qr())},delete St.lineX0,St.lineEndAngle=function(){return re(pi())},delete St.lineX1,St.lineInnerRadius=function(){return re(fn())},delete St.lineY0,St.lineOuterRadius=function(){return re(Sn())},delete St.lineY1,St.curve=function(En){return arguments.length?Cr(j(En)):Cr()._curve},St}function Me(St,Cr){return[(Cr=+Cr)*Math.cos(St-=Math.PI/2),Cr*Math.sin(St)]}var ke=Array.prototype.slice;function me(St){return St.source}function ie(St){return St.target}function Se(St){var Cr=me,Qr=ie,pi=P,fn=T,Sn=null;function En(){var ki,_n=ke.call(arguments),ya=Cr.apply(this,_n),Jn=Qr.apply(this,_n);if(Sn||(Sn=ki=t.path()),St(Sn,+pi.apply(this,(_n[0]=ya,_n)),+fn.apply(this,_n),+pi.apply(this,(_n[0]=Jn,_n)),+fn.apply(this,_n)),ki)return Sn=null,ki+""||null}return En.source=function(ki){return arguments.length?(Cr=ki,En):Cr},En.target=function(ki){return arguments.length?(Qr=ki,En):Qr},En.x=function(ki){return arguments.length?(pi=typeof ki=="function"?ki:r(+ki),En):pi},En.y=function(ki){return arguments.length?(fn=typeof ki=="function"?ki:r(+ki),En):fn},En.context=function(ki){return arguments.length?(Sn=ki==null?null:ki,En):Sn},En}function Le(St,Cr,Qr,pi,fn){St.moveTo(Cr,Qr),St.bezierCurveTo(Cr=(Cr+pi)/2,Qr,Cr,fn,pi,fn)}function Ae(St,Cr,Qr,pi,fn){St.moveTo(Cr,Qr),St.bezierCurveTo(Cr,Qr=(Qr+fn)/2,pi,Qr,pi,fn)}function De(St,Cr,Qr,pi,fn){var Sn=Me(Cr,Qr),En=Me(Cr,Qr=(Qr+fn)/2),ki=Me(pi,Qr),_n=Me(pi,fn);St.moveTo(Sn[0],Sn[1]),St.bezierCurveTo(En[0],En[1],ki[0],ki[1],_n[0],_n[1])}function Pe(){return Se(Le)}function ge(){return Se(Ae)}function Fe(){var St=Se(De);return St.angle=St.x,delete St.x,St.radius=St.y,delete St.y,St}var ce={draw:function(St,Cr){var Qr=Math.sqrt(Cr/f);St.moveTo(Qr,0),St.arc(0,0,Qr,0,d)}},Ze={draw:function(St,Cr){var Qr=Math.sqrt(Cr/5)/2;St.moveTo(-3*Qr,-Qr),St.lineTo(-Qr,-Qr),St.lineTo(-Qr,-3*Qr),St.lineTo(Qr,-3*Qr),St.lineTo(Qr,-Qr),St.lineTo(3*Qr,-Qr),St.lineTo(3*Qr,Qr),St.lineTo(Qr,Qr),St.lineTo(Qr,3*Qr),St.lineTo(-Qr,3*Qr),St.lineTo(-Qr,Qr),St.lineTo(-3*Qr,Qr),St.closePath()}},ct=Math.sqrt(1/3),pt=ct*2,Wt={draw:function(St,Cr){var Qr=Math.sqrt(Cr/pt),pi=Qr*ct;St.moveTo(0,-Qr),St.lineTo(pi,0),St.lineTo(0,Qr),St.lineTo(-pi,0),St.closePath()}},st=.8908130915292852,lt=Math.sin(f/10)/Math.sin(7*f/10),Gt=Math.sin(d/10)*lt,Nt=-Math.cos(d/10)*lt,$t={draw:function(St,Cr){var Qr=Math.sqrt(Cr*st),pi=Gt*Qr,fn=Nt*Qr;St.moveTo(0,-Qr),St.lineTo(pi,fn);for(var Sn=1;Sn<5;++Sn){var En=d*Sn/5,ki=Math.cos(En),_n=Math.sin(En);St.lineTo(_n*Qr,-ki*Qr),St.lineTo(ki*pi-_n*fn,_n*pi+ki*fn)}St.closePath()}},sr={draw:function(St,Cr){var Qr=Math.sqrt(Cr),pi=-Qr/2;St.rect(pi,pi,Qr,Qr)}},wr=Math.sqrt(3),ur={draw:function(St,Cr){var Qr=-Math.sqrt(Cr/(wr*3));St.moveTo(0,Qr*2),St.lineTo(-wr*Qr,-Qr),St.lineTo(wr*Qr,-Qr),St.closePath()}},Qe=-.5,Et=Math.sqrt(3)/2,er=1/Math.sqrt(12),Ut=(er/2+1)*3,Ft={draw:function(St,Cr){var Qr=Math.sqrt(Cr/Ut),pi=Qr/2,fn=Qr*er,Sn=pi,En=Qr*er+Qr,ki=-Sn,_n=En;St.moveTo(pi,fn),St.lineTo(Sn,En),St.lineTo(ki,_n),St.lineTo(Qe*pi-Et*fn,Et*pi+Qe*fn),St.lineTo(Qe*Sn-Et*En,Et*Sn+Qe*En),St.lineTo(Qe*ki-Et*_n,Et*ki+Qe*_n),St.lineTo(Qe*pi+Et*fn,Qe*fn-Et*pi),St.lineTo(Qe*Sn+Et*En,Qe*En-Et*Sn),St.lineTo(Qe*ki+Et*_n,Qe*_n-Et*ki),St.closePath()}},bt=[ce,Ze,Wt,sr,$t,ur,Ft];function yt(){var St=r(ce),Cr=r(64),Qr=null;function pi(){var fn;if(Qr||(Qr=fn=t.path()),St.apply(this,arguments).draw(Qr,+Cr.apply(this,arguments)),fn)return Qr=null,fn+""||null}return pi.type=function(fn){return arguments.length?(St=typeof fn=="function"?fn:r(fn),pi):St},pi.size=function(fn){return arguments.length?(Cr=typeof fn=="function"?fn:r(+fn),pi):Cr},pi.context=function(fn){return arguments.length?(Qr=fn==null?null:fn,pi):Qr},pi}function Yt(){}function lr(St,Cr,Qr){St._context.bezierCurveTo((2*St._x0+St._x1)/3,(2*St._y0+St._y1)/3,(St._x0+2*St._x1)/3,(St._y0+2*St._y1)/3,(St._x0+4*St._x1+Cr)/6,(St._y0+4*St._y1+Qr)/6)}function Tr(St){this._context=St}Tr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:lr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:lr(this,St,Cr);break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr}};function Rr(St){return new Tr(St)}function ei(St){this._context=St}ei.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._x2=St,this._y2=Cr;break;case 1:this._point=2,this._x3=St,this._y3=Cr;break;case 2:this._point=3,this._x4=St,this._y4=Cr,this._context.moveTo((this._x0+4*this._x1+St)/6,(this._y0+4*this._y1+Cr)/6);break;default:lr(this,St,Cr);break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr}};function Wr(St){return new ei(St)}function Ur(St){this._context=St}Ur.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Qr=(this._x0+4*this._x1+St)/6,pi=(this._y0+4*this._y1+Cr)/6;this._line?this._context.lineTo(Qr,pi):this._context.moveTo(Qr,pi);break;case 3:this._point=4;default:lr(this,St,Cr);break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr}};function dt(St){return new Ur(St)}function Ge(St,Cr){this._basis=new Tr(St),this._beta=Cr}Ge.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var St=this._x,Cr=this._y,Qr=St.length-1;if(Qr>0)for(var pi=St[0],fn=Cr[0],Sn=St[Qr]-pi,En=Cr[Qr]-fn,ki=-1,_n;++ki<=Qr;)_n=ki/Qr,this._basis.point(this._beta*St[ki]+(1-this._beta)*(pi+_n*Sn),this._beta*Cr[ki]+(1-this._beta)*(fn+_n*En));this._x=this._y=null,this._basis.lineEnd()},point:function(St,Cr){this._x.push(+St),this._y.push(+Cr)}};var Je=function St(Cr){function Qr(pi){return Cr===1?new Tr(pi):new Ge(pi,Cr)}return Qr.beta=function(pi){return St(+pi)},Qr}(.85);function je(St,Cr,Qr){St._context.bezierCurveTo(St._x1+St._k*(St._x2-St._x0),St._y1+St._k*(St._y2-St._y0),St._x2+St._k*(St._x1-Cr),St._y2+St._k*(St._y1-Qr),St._x2,St._y2)}function $e(St,Cr){this._context=St,this._k=(1-Cr)/6}$e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:je(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2,this._x1=St,this._y1=Cr;break;case 2:this._point=3;default:je(this,St,Cr);break}this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var wt=function St(Cr){function Qr(pi){return new $e(pi,Cr)}return Qr.tension=function(pi){return St(+pi)},Qr}(0);function Ie(St,Cr){this._context=St,this._k=(1-Cr)/6}Ie.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._x3=St,this._y3=Cr;break;case 1:this._point=2,this._context.moveTo(this._x4=St,this._y4=Cr);break;case 2:this._point=3,this._x5=St,this._y5=Cr;break;default:je(this,St,Cr);break}this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var xe=function St(Cr){function Qr(pi){return new Ie(pi,Cr)}return Qr.tension=function(pi){return St(+pi)},Qr}(0);function Ce(St,Cr){this._context=St,this._k=(1-Cr)/6}Ce.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:je(this,St,Cr);break}this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var vt=function St(Cr){function Qr(pi){return new Ce(pi,Cr)}return Qr.tension=function(pi){return St(+pi)},Qr}(0);function nr(St,Cr,Qr){var pi=St._x1,fn=St._y1,Sn=St._x2,En=St._y2;if(St._l01_a>c){var ki=2*St._l01_2a+3*St._l01_a*St._l12_a+St._l12_2a,_n=3*St._l01_a*(St._l01_a+St._l12_a);pi=(pi*ki-St._x0*St._l12_2a+St._x2*St._l01_2a)/_n,fn=(fn*ki-St._y0*St._l12_2a+St._y2*St._l01_2a)/_n}if(St._l23_a>c){var ya=2*St._l23_2a+3*St._l23_a*St._l12_a+St._l12_2a,Jn=3*St._l23_a*(St._l23_a+St._l12_a);Sn=(Sn*ya+St._x1*St._l23_2a-Cr*St._l12_2a)/Jn,En=(En*ya+St._y1*St._l23_2a-Qr*St._l12_2a)/Jn}St._context.bezierCurveTo(pi,fn,Sn,En,St._x2,St._y2)}function ir(St,Cr){this._context=St,this._alpha=Cr}ir.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){if(St=+St,Cr=+Cr,this._point){var Qr=this._x2-St,pi=this._y2-Cr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Qr*Qr+pi*pi,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2;break;case 2:this._point=3;default:nr(this,St,Cr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var pr=function St(Cr){function Qr(pi){return Cr?new ir(pi,Cr):new $e(pi,0)}return Qr.alpha=function(pi){return St(+pi)},Qr}(.5);function oi(St,Cr){this._context=St,this._alpha=Cr}oi.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(St,Cr){if(St=+St,Cr=+Cr,this._point){var Qr=this._x2-St,pi=this._y2-Cr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Qr*Qr+pi*pi,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=St,this._y3=Cr;break;case 1:this._point=2,this._context.moveTo(this._x4=St,this._y4=Cr);break;case 2:this._point=3,this._x5=St,this._y5=Cr;break;default:nr(this,St,Cr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var di=function St(Cr){function Qr(pi){return Cr?new oi(pi,Cr):new Ie(pi,0)}return Qr.alpha=function(pi){return St(+pi)},Qr}(.5);function Jr(St,Cr){this._context=St,this._alpha=Cr}Jr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){if(St=+St,Cr=+Cr,this._point){var Qr=this._x2-St,pi=this._y2-Cr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Qr*Qr+pi*pi,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:nr(this,St,Cr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var fi=function St(Cr){function Qr(pi){return Cr?new Jr(pi,Cr):new Ce(pi,0)}return Qr.alpha=function(pi){return St(+pi)},Qr}(.5);function Hi(St){this._context=St}Hi.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(St,Cr){St=+St,Cr=+Cr,this._point?this._context.lineTo(St,Cr):(this._point=1,this._context.moveTo(St,Cr))}};function Pn(St){return new Hi(St)}function wn(St){return St<0?-1:1}function pn(St,Cr,Qr){var pi=St._x1-St._x0,fn=Cr-St._x1,Sn=(St._y1-St._y0)/(pi||fn<0&&-0),En=(Qr-St._y1)/(fn||pi<0&&-0),ki=(Sn*fn+En*pi)/(pi+fn);return(wn(Sn)+wn(En))*Math.min(Math.abs(Sn),Math.abs(En),.5*Math.abs(ki))||0}function Vn(St,Cr){var Qr=St._x1-St._x0;return Qr?(3*(St._y1-St._y0)/Qr-Cr)/2:Cr}function kn(St,Cr,Qr){var pi=St._x0,fn=St._y0,Sn=St._x1,En=St._y1,ki=(Sn-pi)/3;St._context.bezierCurveTo(pi+ki,fn+ki*Cr,Sn-ki,En-ki*Qr,Sn,En)}function ea(St){this._context=St}ea.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:kn(this,this._t0,Vn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){var Qr=NaN;if(St=+St,Cr=+Cr,!(St===this._x1&&Cr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2;break;case 2:this._point=3,kn(this,Vn(this,Qr=pn(this,St,Cr)),Qr);break;default:kn(this,this._t0,Qr=pn(this,St,Cr));break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr,this._t0=Qr}}};function ua(St){this._context=new Vt(St)}(ua.prototype=Object.create(ea.prototype)).point=function(St,Cr){ea.prototype.point.call(this,Cr,St)};function Vt(St){this._context=St}Vt.prototype={moveTo:function(St,Cr){this._context.moveTo(Cr,St)},closePath:function(){this._context.closePath()},lineTo:function(St,Cr){this._context.lineTo(Cr,St)},bezierCurveTo:function(St,Cr,Qr,pi,fn,Sn){this._context.bezierCurveTo(Cr,St,pi,Qr,Sn,fn)}};function _t(St){return new ea(St)}function tr(St){return new ua(St)}function ar(St){this._context=St}ar.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var St=this._x,Cr=this._y,Qr=St.length;if(Qr)if(this._line?this._context.lineTo(St[0],Cr[0]):this._context.moveTo(St[0],Cr[0]),Qr===2)this._context.lineTo(St[1],Cr[1]);else for(var pi=Er(St),fn=Er(Cr),Sn=0,En=1;En=0;--Cr)fn[Cr]=(En[Cr]-fn[Cr+1])/Sn[Cr];for(Sn[Qr-1]=(St[Qr]+fn[Qr-1])/2,Cr=0;Cr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,Cr),this._context.lineTo(St,Cr);else{var Qr=this._x*(1-this._t)+St*this._t;this._context.lineTo(Qr,this._y),this._context.lineTo(Qr,Cr)}break}}this._x=St,this._y=Cr}};function $r(St){return new ri(St,.5)}function zi(St){return new ri(St,0)}function Ji(St){return new ri(St,1)}function en(St,Cr){if((En=St.length)>1)for(var Qr=1,pi,fn,Sn=St[Cr[0]],En,ki=Sn.length;Qr=0;)Qr[Cr]=Cr;return Qr}function yn(St,Cr){return St[Cr]}function Mn(){var St=r([]),Cr=cn,Qr=en,pi=yn;function fn(Sn){var En=St.apply(this,arguments),ki,_n=Sn.length,ya=En.length,Jn=new Array(ya),Ma;for(ki=0;ki0){for(var Qr,pi,fn=0,Sn=St[0].length,En;fn0)for(var Qr,pi=0,fn,Sn,En,ki,_n,ya=St[Cr[0]].length;pi0?(fn[0]=En,fn[1]=En+=Sn):Sn<0?(fn[1]=ki,fn[0]=ki+=Sn):(fn[0]=0,fn[1]=Sn)}function ma(St,Cr){if((fn=St.length)>0){for(var Qr=0,pi=St[Cr[0]],fn,Sn=pi.length;Qr0)||!((Sn=(fn=St[Cr[0]]).length)>0))){for(var Qr=0,pi=1,fn,Sn,En;piSn&&(Sn=fn,Qr=Cr);return Qr}function da(St){var Cr=St.map(Wn);return cn(St).sort(function(Qr,pi){return Cr[Qr]-Cr[pi]})}function Wn(St){for(var Cr=0,Qr=-1,pi=St.length,fn;++Qr{(function(e,t){typeof w7=="object"&&typeof bWe!="undefined"?t(w7,iC(),g7(),VJ()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(w7,function(e,t,r,n){"use strict";function i(g){return g.target.depth}function a(g){return g.depth}function o(g,P){return P-1-g.height}function s(g,P){return g.sourceLinks.length?g.depth:P-1}function l(g){return g.targetLinks.length?g.depth:g.sourceLinks.length?t.min(g.sourceLinks,i)-1:0}function u(g){return function(){return g}}function c(g,P){return h(g.source,P.source)||g.index-P.index}function f(g,P){return h(g.target,P.target)||g.index-P.index}function h(g,P){return g.y0-P.y0}function d(g){return g.value}function v(g){return(g.y0+g.y1)/2}function x(g){return v(g.source)*g.value}function b(g){return v(g.target)*g.value}function p(g){return g.index}function C(g){return g.nodes}function E(g){return g.links}function A(g,P){var T=g.get(P);if(!T)throw new Error("missing: "+P);return T}var L=function(){var g=0,P=0,T=1,z=1,O=24,V=8,G=p,Z=s,H=C,N=E,j=32,re=2/3;function oe(){var Se={nodes:H.apply(null,arguments),links:N.apply(null,arguments)};return _e(Se),Me(Se),ke(Se),me(Se,j),ie(Se),Se}oe.update=function(Se){return ie(Se),Se},oe.nodeId=function(Se){return arguments.length?(G=typeof Se=="function"?Se:u(Se),oe):G},oe.nodeAlign=function(Se){return arguments.length?(Z=typeof Se=="function"?Se:u(Se),oe):Z},oe.nodeWidth=function(Se){return arguments.length?(O=+Se,oe):O},oe.nodePadding=function(Se){return arguments.length?(V=+Se,oe):V},oe.nodes=function(Se){return arguments.length?(H=typeof Se=="function"?Se:u(Se),oe):H},oe.links=function(Se){return arguments.length?(N=typeof Se=="function"?Se:u(Se),oe):N},oe.size=function(Se){return arguments.length?(g=P=0,T=+Se[0],z=+Se[1],oe):[T-g,z-P]},oe.extent=function(Se){return arguments.length?(g=+Se[0][0],T=+Se[1][0],P=+Se[0][1],z=+Se[1][1],oe):[[g,P],[T,z]]},oe.iterations=function(Se){return arguments.length?(j=+Se,oe):j};function _e(Se){Se.nodes.forEach(function(Ae,De){Ae.index=De,Ae.sourceLinks=[],Ae.targetLinks=[]});var Le=r.map(Se.nodes,G);Se.links.forEach(function(Ae,De){Ae.index=De;var Pe=Ae.source,ge=Ae.target;typeof Pe!="object"&&(Pe=Ae.source=A(Le,Pe)),typeof ge!="object"&&(ge=Ae.target=A(Le,ge)),Pe.sourceLinks.push(Ae),ge.targetLinks.push(Ae)})}function Me(Se){Se.nodes.forEach(function(Le){Le.value=Math.max(t.sum(Le.sourceLinks,d),t.sum(Le.targetLinks,d))})}function ke(Se){var Le,Ae,De;for(Le=Se.nodes,Ae=[],De=0;Le.length;++De,Le=Ae,Ae=[])Le.forEach(function(ge){ge.depth=De,ge.sourceLinks.forEach(function(Fe){Ae.indexOf(Fe.target)<0&&Ae.push(Fe.target)})});for(Le=Se.nodes,Ae=[],De=0;Le.length;++De,Le=Ae,Ae=[])Le.forEach(function(ge){ge.height=De,ge.targetLinks.forEach(function(Fe){Ae.indexOf(Fe.source)<0&&Ae.push(Fe.source)})});var Pe=(T-g-O)/(De-1);Se.nodes.forEach(function(ge){ge.x1=(ge.x0=g+Math.max(0,Math.min(De-1,Math.floor(Z.call(null,ge,De))))*Pe)+O})}function me(Se){var Le=r.nest().key(function(Ze){return Ze.x0}).sortKeys(t.ascending).entries(Se.nodes).map(function(Ze){return Ze.values});Pe(),ce();for(var Ae=1,De=j;De>0;--De)Fe(Ae*=.99),ce(),ge(Ae),ce();function Pe(){var Ze=t.max(Le,function(Wt){return Wt.length}),ct=re*(z-P)/(Ze-1);V>ct&&(V=ct);var pt=t.min(Le,function(Wt){return(z-P-(Wt.length-1)*V)/t.sum(Wt,d)});Le.forEach(function(Wt){Wt.forEach(function(st,lt){st.y1=(st.y0=lt)+st.value*pt})}),Se.links.forEach(function(Wt){Wt.width=Wt.value*pt})}function ge(Ze){Le.forEach(function(ct){ct.forEach(function(pt){if(pt.targetLinks.length){var Wt=(t.sum(pt.targetLinks,x)/t.sum(pt.targetLinks,d)-v(pt))*Ze;pt.y0+=Wt,pt.y1+=Wt}})})}function Fe(Ze){Le.slice().reverse().forEach(function(ct){ct.forEach(function(pt){if(pt.sourceLinks.length){var Wt=(t.sum(pt.sourceLinks,b)/t.sum(pt.sourceLinks,d)-v(pt))*Ze;pt.y0+=Wt,pt.y1+=Wt}})})}function ce(){Le.forEach(function(Ze){var ct,pt,Wt=P,st=Ze.length,lt;for(Ze.sort(h),lt=0;lt0&&(ct.y0+=pt,ct.y1+=pt),Wt=ct.y1+V;if(pt=Wt-V-z,pt>0)for(Wt=ct.y0-=pt,ct.y1-=pt,lt=st-2;lt>=0;--lt)ct=Ze[lt],pt=ct.y1+V-Wt,pt>0&&(ct.y0-=pt,ct.y1-=pt),Wt=ct.y0})}}function ie(Se){Se.nodes.forEach(function(Le){Le.sourceLinks.sort(f),Le.targetLinks.sort(c)}),Se.nodes.forEach(function(Le){var Ae=Le.y0,De=Ae;Le.sourceLinks.forEach(function(Pe){Pe.y0=Ae+Pe.width/2,Ae+=Pe.width}),Le.targetLinks.forEach(function(Pe){Pe.y1=De+Pe.width/2,De+=Pe.width})})}return oe};function _(g){return[g.source.x1,g.y0]}function k(g){return[g.target.x0,g.y1]}var M=function(){return n.linkHorizontal().source(_).target(k)};e.sankey=L,e.sankeyCenter=l,e.sankeyLeft=a,e.sankeyRight=o,e.sankeyJustify=s,e.sankeyLinkHorizontal=M,Object.defineProperty(e,"__esModule",{value:!0})})});var AWe=ye((tbr,TWe)=>{var KXt=UJ();TWe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],l;function u(E){a[E]=!1,o.hasOwnProperty(E)&&Object.keys(o[E]).forEach(function(A){delete o[E][A],a[A]&&u(A)})}function c(E){var A=!1;i.push(E),a[E]=!0;var L,_;for(L=0;L=E})}function d(E){h(E);for(var A=t,L=KXt(A),_=L.components.filter(function(O){return O.length>1}),k=1/0,M,g=0;g<_.length;g++)for(var P=0;P<_[g].length;P++)_[g][P]{(function(e,t){typeof T7=="object"&&typeof SWe!="undefined"?t(T7,iC(),g7(),VJ(),AWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(T7,function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(st){return st.target.depth}function o(st){return st.depth}function s(st,lt){return lt-1-st.height}function l(st,lt){return st.sourceLinks.length?st.depth:lt-1}function u(st){return st.targetLinks.length?st.depth:st.sourceLinks.length?t.min(st.sourceLinks,a)-1:0}function c(st){return function(){return st}}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(st){return typeof st}:function(st){return st&&typeof Symbol=="function"&&st.constructor===Symbol&&st!==Symbol.prototype?"symbol":typeof st};function h(st,lt){return v(st.source,lt.source)||st.index-lt.index}function d(st,lt){return v(st.target,lt.target)||st.index-lt.index}function v(st,lt){return st.partOfCycle===lt.partOfCycle?st.y0-lt.y0:st.circularLinkType==="top"||lt.circularLinkType==="bottom"?-1:1}function x(st){return st.value}function b(st){return(st.y0+st.y1)/2}function p(st){return b(st.source)}function C(st){return b(st.target)}function E(st){return st.index}function A(st){return st.nodes}function L(st){return st.links}function _(st,lt){var Gt=st.get(lt);if(!Gt)throw new Error("missing: "+lt);return Gt}function k(st,lt){return lt(st)}var M=25,g=10,P=.3;function T(){var st=0,lt=0,Gt=1,Nt=1,$t=24,sr,wr=E,ur=l,Qe=A,Et=L,er=32,Ut=2,Ft,bt=null;function yt(){var dt={nodes:Qe.apply(null,arguments),links:Et.apply(null,arguments)};Yt(dt),z(dt,wr,bt),lr(dt),ei(dt),O(dt,wr),Wr(dt,er,wr),Ur(dt);for(var Ge=4,Je=0;Je0?Ge+M+g:Ge,Je=Je>0?Je+M+g:Je,je=je>0?je+M+g:je,$e=$e>0?$e+M+g:$e,{top:Ge,bottom:Je,left:$e,right:je}}function Rr(dt,Ge){var Je=t.max(dt.nodes,function(vt){return vt.column}),je=Gt-st,$e=Nt-lt,wt=je+Ge.right+Ge.left,Ie=$e+Ge.top+Ge.bottom,xe=je/wt,Ce=$e/Ie;return st=st*xe+Ge.left,Gt=Ge.right==0?Gt:Gt*xe,lt=lt*Ce+Ge.top,Nt=Nt*Ce,dt.nodes.forEach(function(vt){vt.x0=st+vt.column*((Gt-st-$t)/Je),vt.x1=vt.x0+$t}),Ce}function ei(dt){var Ge,Je,je;for(Ge=dt.nodes,Je=[],je=0;Ge.length;++je,Ge=Je,Je=[])Ge.forEach(function($e){$e.depth=je,$e.sourceLinks.forEach(function(wt){Je.indexOf(wt.target)<0&&!wt.circular&&Je.push(wt.target)})});for(Ge=dt.nodes,Je=[],je=0;Ge.length;++je,Ge=Je,Je=[])Ge.forEach(function($e){$e.height=je,$e.targetLinks.forEach(function(wt){Je.indexOf(wt.source)<0&&!wt.circular&&Je.push(wt.source)})});dt.nodes.forEach(function($e){$e.column=Math.floor(ur.call(null,$e,je))})}function Wr(dt,Ge,Je){var je=r.nest().key(function(vt){return vt.column}).sortKeys(t.ascending).entries(dt.nodes).map(function(vt){return vt.values});Ie(Je),Ce();for(var $e=1,wt=Ge;wt>0;--wt)xe($e*=.99,Je),Ce();function Ie(vt){if(Ft){var nr=1/0;je.forEach(function(di){var Jr=Nt*Ft/(di.length+1);nr=Jr0))if(di==0&&oi==1)fi=Jr.y1-Jr.y0,Jr.y0=Nt/2-fi/2,Jr.y1=Nt/2+fi/2;else if(di==ir-1&&oi==1)fi=Jr.y1-Jr.y0,Jr.y0=Nt/2-fi/2,Jr.y1=Nt/2+fi/2;else{var Hi=0,Pn=t.mean(Jr.sourceLinks,C),wn=t.mean(Jr.targetLinks,p);Pn&&wn?Hi=(Pn+wn)/2:Hi=Pn||wn;var pn=(Hi-b(Jr))*vt;Jr.y0+=pn,Jr.y1+=pn}})})}function Ce(){je.forEach(function(vt){var nr,ir,pr=lt,oi=vt.length,di;for(vt.sort(v),di=0;di0&&(nr.y0+=ir,nr.y1+=ir),pr=nr.y1+sr;if(ir=pr-sr-Nt,ir>0)for(pr=nr.y0-=ir,nr.y1-=ir,di=oi-2;di>=0;--di)nr=vt[di],ir=nr.y1+sr-pr,ir>0&&(nr.y0-=ir,nr.y1-=ir),pr=nr.y0})}}function Ur(dt){dt.nodes.forEach(function(Ge){Ge.sourceLinks.sort(d),Ge.targetLinks.sort(h)}),dt.nodes.forEach(function(Ge){var Je=Ge.y0,je=Je,$e=Ge.y1,wt=$e;Ge.sourceLinks.forEach(function(Ie){Ie.circular?(Ie.y0=$e-Ie.width/2,$e=$e-Ie.width):(Ie.y0=Je+Ie.width/2,Je+=Ie.width)}),Ge.targetLinks.forEach(function(Ie){Ie.circular?(Ie.y1=wt-Ie.width/2,wt=wt-Ie.width):(Ie.y1=je+Ie.width/2,je+=Ie.width)})})}return yt}function z(st,lt,Gt){var Nt=0;if(Gt===null){for(var $t=[],sr=0;srlt.source.column)}function Z(st,lt){var Gt=0;st.sourceLinks.forEach(function($t){Gt=$t.circular&&!pt($t,lt)?Gt+1:Gt});var Nt=0;return st.targetLinks.forEach(function($t){Nt=$t.circular&&!pt($t,lt)?Nt+1:Nt}),Gt+Nt}function H(st){var lt=st.source.sourceLinks,Gt=0;lt.forEach(function(sr){Gt=sr.circular?Gt+1:Gt});var Nt=st.target.targetLinks,$t=0;return Nt.forEach(function(sr){$t=sr.circular?$t+1:$t}),!(Gt>1||$t>1)}function N(st,lt,Gt){return st.sort(oe),st.forEach(function(Nt,$t){var sr=0;if(pt(Nt,Gt)&&H(Nt))Nt.circularPathData.verticalBuffer=sr+Nt.width/2;else{var wr=0;for(wr;wr<$t;wr++)if(G(st[$t],st[wr])){var ur=st[wr].circularPathData.verticalBuffer+st[wr].width/2+lt;sr=ur>sr?ur:sr}Nt.circularPathData.verticalBuffer=sr+Nt.width/2}}),st}function j(st,lt,Gt,Nt){var $t=5,sr=t.min(st.links,function(Qe){return Qe.source.y0});st.links.forEach(function(Qe){Qe.circular&&(Qe.circularPathData={})});var wr=st.links.filter(function(Qe){return Qe.circularLinkType=="top"});N(wr,lt,Nt);var ur=st.links.filter(function(Qe){return Qe.circularLinkType=="bottom"});N(ur,lt,Nt),st.links.forEach(function(Qe){if(Qe.circular){if(Qe.circularPathData.arcRadius=Qe.width+g,Qe.circularPathData.leftNodeBuffer=$t,Qe.circularPathData.rightNodeBuffer=$t,Qe.circularPathData.sourceWidth=Qe.source.x1-Qe.source.x0,Qe.circularPathData.sourceX=Qe.source.x0+Qe.circularPathData.sourceWidth,Qe.circularPathData.targetX=Qe.target.x0,Qe.circularPathData.sourceY=Qe.y0,Qe.circularPathData.targetY=Qe.y1,pt(Qe,Nt)&&H(Qe))Qe.circularPathData.leftSmallArcRadius=g+Qe.width/2,Qe.circularPathData.leftLargeArcRadius=g+Qe.width/2,Qe.circularPathData.rightSmallArcRadius=g+Qe.width/2,Qe.circularPathData.rightLargeArcRadius=g+Qe.width/2,Qe.circularLinkType=="bottom"?(Qe.circularPathData.verticalFullExtent=Qe.source.y1+M+Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.rightLargeArcRadius):(Qe.circularPathData.verticalFullExtent=Qe.source.y0-M-Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.rightLargeArcRadius);else{var Et=Qe.source.column,er=Qe.circularLinkType,Ut=st.links.filter(function(yt){return yt.source.column==Et&&yt.circularLinkType==er});Qe.circularLinkType=="bottom"?Ut.sort(Me):Ut.sort(_e);var Ft=0;Ut.forEach(function(yt,Yt){yt.circularLinkID==Qe.circularLinkID&&(Qe.circularPathData.leftSmallArcRadius=g+Qe.width/2+Ft,Qe.circularPathData.leftLargeArcRadius=g+Qe.width/2+Yt*lt+Ft),Ft=Ft+yt.width}),Et=Qe.target.column,Ut=st.links.filter(function(yt){return yt.target.column==Et&&yt.circularLinkType==er}),Qe.circularLinkType=="bottom"?Ut.sort(me):Ut.sort(ke),Ft=0,Ut.forEach(function(yt,Yt){yt.circularLinkID==Qe.circularLinkID&&(Qe.circularPathData.rightSmallArcRadius=g+Qe.width/2+Ft,Qe.circularPathData.rightLargeArcRadius=g+Qe.width/2+Yt*lt+Ft),Ft=Ft+yt.width}),Qe.circularLinkType=="bottom"?(Qe.circularPathData.verticalFullExtent=Math.max(Gt,Qe.source.y1,Qe.target.y1)+M+Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.rightLargeArcRadius):(Qe.circularPathData.verticalFullExtent=sr-M-Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.rightLargeArcRadius)}Qe.circularPathData.leftInnerExtent=Qe.circularPathData.sourceX+Qe.circularPathData.leftNodeBuffer,Qe.circularPathData.rightInnerExtent=Qe.circularPathData.targetX-Qe.circularPathData.rightNodeBuffer,Qe.circularPathData.leftFullExtent=Qe.circularPathData.sourceX+Qe.circularPathData.leftLargeArcRadius+Qe.circularPathData.leftNodeBuffer,Qe.circularPathData.rightFullExtent=Qe.circularPathData.targetX-Qe.circularPathData.rightLargeArcRadius-Qe.circularPathData.rightNodeBuffer}if(Qe.circular)Qe.path=re(Qe);else{var bt=n.linkHorizontal().source(function(yt){var Yt=yt.source.x0+(yt.source.x1-yt.source.x0),lr=yt.y0;return[Yt,lr]}).target(function(yt){var Yt=yt.target.x0,lr=yt.y1;return[Yt,lr]});Qe.path=bt(Qe)}})}function re(st){var lt="";return st.circularLinkType=="top"?lt="M"+st.circularPathData.sourceX+" "+st.circularPathData.sourceY+" L"+st.circularPathData.leftInnerExtent+" "+st.circularPathData.sourceY+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftSmallArcRadius+" 0 0 0 "+st.circularPathData.leftFullExtent+" "+(st.circularPathData.sourceY-st.circularPathData.leftSmallArcRadius)+" L"+st.circularPathData.leftFullExtent+" "+st.circularPathData.verticalLeftInnerExtent+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftLargeArcRadius+" 0 0 0 "+st.circularPathData.leftInnerExtent+" "+st.circularPathData.verticalFullExtent+" L"+st.circularPathData.rightInnerExtent+" "+st.circularPathData.verticalFullExtent+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightLargeArcRadius+" 0 0 0 "+st.circularPathData.rightFullExtent+" "+st.circularPathData.verticalRightInnerExtent+" L"+st.circularPathData.rightFullExtent+" "+(st.circularPathData.targetY-st.circularPathData.rightSmallArcRadius)+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightSmallArcRadius+" 0 0 0 "+st.circularPathData.rightInnerExtent+" "+st.circularPathData.targetY+" L"+st.circularPathData.targetX+" "+st.circularPathData.targetY:lt="M"+st.circularPathData.sourceX+" "+st.circularPathData.sourceY+" L"+st.circularPathData.leftInnerExtent+" "+st.circularPathData.sourceY+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftSmallArcRadius+" 0 0 1 "+st.circularPathData.leftFullExtent+" "+(st.circularPathData.sourceY+st.circularPathData.leftSmallArcRadius)+" L"+st.circularPathData.leftFullExtent+" "+st.circularPathData.verticalLeftInnerExtent+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftLargeArcRadius+" 0 0 1 "+st.circularPathData.leftInnerExtent+" "+st.circularPathData.verticalFullExtent+" L"+st.circularPathData.rightInnerExtent+" "+st.circularPathData.verticalFullExtent+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightLargeArcRadius+" 0 0 1 "+st.circularPathData.rightFullExtent+" "+st.circularPathData.verticalRightInnerExtent+" L"+st.circularPathData.rightFullExtent+" "+(st.circularPathData.targetY+st.circularPathData.rightSmallArcRadius)+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightSmallArcRadius+" 0 0 1 "+st.circularPathData.rightInnerExtent+" "+st.circularPathData.targetY+" L"+st.circularPathData.targetX+" "+st.circularPathData.targetY,lt}function oe(st,lt){return ie(st)==ie(lt)?st.circularLinkType=="bottom"?Me(st,lt):_e(st,lt):ie(lt)-ie(st)}function _e(st,lt){return st.y0-lt.y0}function Me(st,lt){return lt.y0-st.y0}function ke(st,lt){return st.y1-lt.y1}function me(st,lt){return lt.y1-st.y1}function ie(st){return st.target.column-st.source.column}function Se(st){return st.target.x0-st.source.x1}function Le(st,lt){var Gt=V(st),Nt=Se(lt)/Math.tan(Gt),$t=ct(st)=="up"?st.y1+Nt:st.y1-Nt;return $t}function Ae(st,lt){var Gt=V(st),Nt=Se(lt)/Math.tan(Gt),$t=ct(st)=="up"?st.y1-Nt:st.y1+Nt;return $t}function De(st,lt,Gt,Nt){st.links.forEach(function($t){if(!$t.circular&&$t.target.column-$t.source.column>1){var sr=$t.source.column+1,wr=$t.target.column-1,ur=1,Qe=wr-sr+1;for(ur=1;sr<=wr;sr++,ur++)st.nodes.forEach(function(Et){if(Et.column==sr){var er=ur/(Qe+1),Ut=Math.pow(1-er,3),Ft=3*er*Math.pow(1-er,2),bt=3*Math.pow(er,2)*(1-er),yt=Math.pow(er,3),Yt=Ut*$t.y0+Ft*$t.y0+bt*$t.y1+yt*$t.y1,lr=Yt-$t.width/2,Tr=Yt+$t.width/2,Rr;lr>Et.y0&&lrEt.y0&&TrEt.y1&&ge(ei,Rr,lt,Gt)})):lrEt.y1&&(Rr=Tr-Et.y0+10,Et=ge(Et,Rr,lt,Gt),st.nodes.forEach(function(ei){k(ei,Nt)==k(Et,Nt)||ei.column!=Et.column||ei.y0Et.y1&&ge(ei,Rr,lt,Gt)}))}})}})}function Pe(st,lt){return st.y0>lt.y0&&st.y0lt.y0&&st.y1lt.y1}function ge(st,lt,Gt,Nt){return st.y0+lt>=Gt&&st.y1+lt<=Nt&&(st.y0=st.y0+lt,st.y1=st.y1+lt,st.targetLinks.forEach(function($t){$t.y1=$t.y1+lt}),st.sourceLinks.forEach(function($t){$t.y0=$t.y0+lt})),st}function Fe(st,lt,Gt,Nt){st.nodes.forEach(function($t){Nt&&$t.y+($t.y1-$t.y0)>lt&&($t.y=$t.y-($t.y+($t.y1-$t.y0)-lt));var sr=st.links.filter(function(Qe){return k(Qe.source,Gt)==k($t,Gt)}),wr=sr.length;wr>1&&sr.sort(function(Qe,Et){if(!Qe.circular&&!Et.circular){if(Qe.target.column==Et.target.column)return Qe.y1-Et.y1;if(Ze(Qe,Et)){if(Qe.target.column>Et.target.column){var er=Ae(Et,Qe);return Qe.y1-er}if(Et.target.column>Qe.target.column){var Ut=Ae(Qe,Et);return Ut-Et.y1}}else return Qe.y1-Et.y1}if(Qe.circular&&!Et.circular)return Qe.circularLinkType=="top"?-1:1;if(Et.circular&&!Qe.circular)return Et.circularLinkType=="top"?1:-1;if(Qe.circular&&Et.circular)return Qe.circularLinkType===Et.circularLinkType&&Qe.circularLinkType=="top"?Qe.target.column===Et.target.column?Qe.target.y1-Et.target.y1:Et.target.column-Qe.target.column:Qe.circularLinkType===Et.circularLinkType&&Qe.circularLinkType=="bottom"?Qe.target.column===Et.target.column?Et.target.y1-Qe.target.y1:Qe.target.column-Et.target.column:Qe.circularLinkType=="top"?-1:1});var ur=$t.y0;sr.forEach(function(Qe){Qe.y0=ur+Qe.width/2,ur=ur+Qe.width}),sr.forEach(function(Qe,Et){if(Qe.circularLinkType=="bottom"){var er=Et+1,Ut=0;for(er;er1&&$t.sort(function(ur,Qe){if(!ur.circular&&!Qe.circular){if(ur.source.column==Qe.source.column)return ur.y0-Qe.y0;if(Ze(ur,Qe)){if(Qe.source.column0?"up":"down"}function pt(st,lt){return k(st.source,lt)==k(st.target,lt)}function Wt(st,lt,Gt){var Nt=st.nodes,$t=st.links,sr=!1,wr=!1;if($t.forEach(function(Ft){Ft.circularLinkType=="top"?sr=!0:Ft.circularLinkType=="bottom"&&(wr=!0)}),sr==!1||wr==!1){var ur=t.min(Nt,function(Ft){return Ft.y0}),Qe=t.max(Nt,function(Ft){return Ft.y1}),Et=Qe-ur,er=Gt-lt,Ut=er/Et;Nt.forEach(function(Ft){var bt=(Ft.y1-Ft.y0)*Ut;Ft.y0=(Ft.y0-ur)*Ut,Ft.y1=Ft.y0+bt}),$t.forEach(function(Ft){Ft.y0=(Ft.y0-ur)*Ut,Ft.y1=(Ft.y1-ur)*Ut,Ft.width=Ft.width*Ut})}}e.sankeyCircular=T,e.sankeyCenter=u,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=l,Object.defineProperty(e,"__esModule",{value:!0})})});var GJ=ye((rbr,EWe)=>{"use strict";EWe.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}});var NWe=ye((ibr,BWe)=>{"use strict";var CWe=mWe(),JXt=(R2(),ab(I2)).interpolateNumber,L5=Oa(),KC=wWe(),$Xt=MWe(),Nu=GJ(),P5=cd(),aw=Ca(),QXt=So(),p1=Dr(),WJ=p1.strTranslate,eZt=p1.strRotate,XJ=Km(),JC=XJ.keyFun,A7=XJ.repeat,DWe=XJ.unwrap,kWe=ru(),tZt=qa(),FWe=Kh(),rZt=FWe.CAP_SHIFT,iZt=FWe.LINE_SPACING,nZt=3;function aZt(e,t,r){var n=DWe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,l=i.node.thickness,u={justify:KC.sankeyJustify,left:KC.sankeyLeft,right:KC.sankeyRight,center:KC.sankeyCenter}[i.node.align],c=e.width*(a.x[1]-a.x[0]),f=e.height*(a.y[1]-a.y[0]),h=n._nodes,d=n._links,v=n.circular,x;v?x=$Xt.sankeyCircular().circularLinkGap(0):x=KC.sankey(),x.iterations(Nu.sankeyIterations).size(o?[c,f]:[f,c]).nodeWidth(l).nodePadding(s).nodeId(function(V){return V.pointNumber}).nodeAlign(u).nodes(h).links(d);var b=x();x.nodePadding()=N||(H=N-Z.y0,H>1e-6&&(Z.y0+=H,Z.y1+=H)),N=Z.y1+s})}function P(V){var G=V.map(function(_e,Me){return{x0:_e.x0,index:Me}}).sort(function(_e,Me){return _e.x0-Me.x0}),Z=[],H=-1,N,j=-1/0,re;for(p=0;pj+l&&(H+=1,N=oe.x0),j=oe.x0,Z[H]||(Z[H]=[]),Z[H].push(oe),re=N-oe.x0,oe.x0+=re,oe.x1+=re}return Z}if(i.node.x.length&&i.node.y.length){for(p=0;p0?" L "+i.targetX+" "+i.targetY:"")+"Z"):(r="M "+(i.targetX-t)+" "+(i.targetY-n)+" L "+(i.rightInnerExtent-t)+" "+(i.targetY-n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightSmallArcRadius+n)+" 0 0 0 "+(i.rightFullExtent-n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" L "+(i.rightFullExtent-n-t)+" "+i.verticalRightInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-n-t)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent+n-t-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:a?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent-t-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.leftFullExtent+n+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent+n)+" L "+i.leftInnerExtent+" "+(i.verticalFullExtent+n)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent,r+=" L "+(i.leftFullExtent+n)+" "+(i.sourceY+i.leftSmallArcRadius)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftSmallArcRadius+n)+" 0 0 0 "+i.leftInnerExtent+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY+n)+" L "+i.leftInnerExtent+" "+(i.sourceY+n)+" A "+(i.leftLargeArcRadius-n)+" "+(i.leftSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n)+" "+(i.sourceY+i.leftSmallArcRadius)+" L "+(i.leftFullExtent-n)+" "+i.verticalLeftInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.rightFullExtent+n-t+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:a?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent-t-n)+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:r+=" A "+(i.leftLargeArcRadius-n)+" "+(i.leftLargeArcRadius-n)+" 0 0 1 "+i.leftInnerExtent+" "+(i.verticalFullExtent-n)+" L "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightLargeArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent,r+=" L "+(i.rightFullExtent+n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightInnerExtent-t)+" "+(i.targetY+n)+" L "+(i.targetX-t)+" "+(i.targetY+n)+(t>0?" L "+i.targetX+" "+i.targetY:"")+"Z"),r}function ZJ(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return sZt(r.link,n);var i=Math.abs((r.link.target.x0-r.link.source.x1)/2);n>i&&(n=i);var a=r.link.source.x1,o=r.link.target.x0-n,s=JXt(a,o),l=s(e),u=s(1-e),c=r.link.y0-r.link.width/2,f=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,d=r.link.y1+r.link.width/2,v="M"+a+","+c,x="C"+l+","+c+" "+u+","+h+" "+o+","+h,b="C"+u+","+d+" "+l+","+f+" "+a+","+f,p=n>0?"L"+(o+n)+","+(h+r.link.width/2):"";return p+="L"+o+","+d,v+x+p+b+"Z"}return t}function lZt(e,t){var r=P5(t.color),n=Nu.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var a=t.dx,o=Math.max(.5,t.dy),s="node_"+t.pointNumber;return t.group&&(s=p1.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:s,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:aw.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,s].join("_"),interactionState:e.interactionState,figure:e}}function jJ(e){e.attr("transform",function(t){return WJ(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function uZt(e){e.call(jJ)}function zWe(e,t){e.call(uZt),t.attr("d",ZJ())}function LWe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function HJ(e){return e.link.width>1||e.linkLineWidth>0}function PWe(e){var t=WJ(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function IWe(e,t,r){e.on(".basic",null).on("mouseover.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.hover(this,n,t),n.interactionState.hovered=[this,n])}).on("mousemove.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.follow(this,n),n.interactionState.hovered=[this,n])}).on("mouseout.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.unhover(this,n,t),n.interactionState.hovered=!1)}).on("click.basic",function(n){n.interactionState.hovered&&(r.unhover(this,n,t),n.interactionState.hovered=!1),!n.interactionState.dragInProgress&&!n.partOfGroup&&r.select(this,n,t)})}function cZt(e,t,r,n){var i=L5.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(p1.ensureSingle(n._fullLayout._infolayer,"g","dragcover",function(s){n._fullLayout._dragCover=s}),p1.raiseToTop(this),a.interactionState.dragInProgress=a.node,RWe(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):fZt(e,o,a,n),hZt(e,t,a,o,n)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=L5.event.x,s=L5.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),RWe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),zWe(e.filter(qWe(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,OWe(r,i)}})}function dZt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function OWe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Xv=Oa(),KJ=Dr(),S7=KJ.numberFormat,mZt=NWe(),I5=vf(),yZt=Ca(),Ax=GJ().cn,$C=KJ._;function UWe(e){return e!==""}function R5(e,t){return e.filter(function(r){return r.key===t.traceId})}function VWe(e,t){Xv.select(e).select("path").style("fill-opacity",t),Xv.select(e).select("rect").style("fill-opacity",t)}function GWe(e){Xv.select(e).select("text.name").style("fill","black")}function HWe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function jWe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function WWe(e,t,r){t&&r&&R5(r,t).selectAll("."+Ax.sankeyLink).filter(HWe(t)).call(XWe.bind(0,t,r,!1))}function YJ(e,t,r){t&&r&&R5(r,t).selectAll("."+Ax.sankeyLink).filter(HWe(t)).call(ZWe.bind(0,t,r,!1))}function XWe(e,t,r,n){n.style("fill",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverHue}).style("fill-opacity",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverAlpha}),n.each(function(i){var a=i.link.label;a!==""&&R5(t,e).selectAll("."+Ax.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverHue}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverAlpha})}),r&&R5(t,e).selectAll("."+Ax.sankeyNode).filter(jWe(e)).call(WWe)}function ZWe(e,t,r,n){n.style("fill",function(i){return i.tinyColorHue}).style("fill-opacity",function(i){return i.tinyColorAlpha}),n.each(function(i){var a=i.link.label;a!==""&&R5(t,e).selectAll("."+Ax.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){return o.tinyColorHue}).style("fill-opacity",function(o){return o.tinyColorAlpha})}),r&&R5(t,e).selectAll(Ax.sankeyNode).filter(jWe(e)).call(YJ)}function Ef(e,t){var r=e.hoverlabel||{},n=KJ.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}YWe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:Ef(k,"bgcolor")||yZt.addOpacity(z.color,1),borderColor:Ef(k,"bordercolor"),fontFamily:Ef(k,"font.family"),fontSize:Ef(k,"font.size"),fontColor:Ef(k,"font.color"),fontWeight:Ef(k,"font.weight"),fontStyle:Ef(k,"font.style"),fontVariant:Ef(k,"font.variant"),fontTextcase:Ef(k,"font.textcase"),fontLineposition:Ef(k,"font.lineposition"),fontShadow:Ef(k,"font.shadow"),nameLength:Ef(k,"namelength"),textAlign:Ef(k,"align"),idealAlign:Xv.event.x"),color:Ef(k,"bgcolor")||_.tinyColorHue,borderColor:Ef(k,"bordercolor"),fontFamily:Ef(k,"font.family"),fontSize:Ef(k,"font.size"),fontColor:Ef(k,"font.color"),fontWeight:Ef(k,"font.weight"),fontStyle:Ef(k,"font.style"),fontVariant:Ef(k,"font.variant"),fontTextcase:Ef(k,"font.textcase"),fontLineposition:Ef(k,"font.lineposition"),fontShadow:Ef(k,"font.shadow"),nameLength:Ef(k,"namelength"),textAlign:Ef(k,"align"),idealAlign:"left",hovertemplate:k.hovertemplate,hovertemplateLabels:V,eventData:[_.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});VWe(H,.85),GWe(H)}}},A=function(L,_,k){t._fullLayout.hovermode!==!1&&(Xv.select(L).call(YJ,_,k),_.node.trace.node.hoverinfo!=="skip"&&(_.node.fullData=_.node.trace,t.emit("plotly_unhover",{event:Xv.event,points:[_.node]})),I5.loneUnhover(n._hoverlayer.node()))};mZt(t,i,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:u,follow:x,unhover:b,select:l},nodeEvents:{hover:C,follow:E,unhover:A,select:p}})}});var KWe=ye(ow=>{"use strict";var _Zt=mc().overrideAll,xZt=Id().getModuleCalcData,bZt=JJ(),wZt=B1(),TZt=Tg(),AZt=yv(),SZt=zf().prepSelect,$J=Dr(),MZt=qa(),M7="sankey";ow.name=M7;ow.baseLayoutAttrOverrides=_Zt({hoverlabel:wZt.hoverlabel},"plot","nested");ow.plot=function(e){var t=xZt(e.calcdata,M7)[0];bZt(e,t),ow.updateFx(e)};ow.clean=function(e,t,r,n){var i=n._has&&n._has(M7),a=t._has&&t._has(M7);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};ow.updateFx=function(e){for(var t=0;t{"use strict";JWe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";QWe.exports={attributes:NJ(),supplyDefaults:iWe(),calc:lWe(),plot:JJ(),moduleType:"trace",name:"sankey",basePlotModule:KWe(),selectPoints:$We(),categories:["noOpacity"],meta:{}}});var rXe=ye((lbr,tXe)=>{"use strict";tXe.exports=eXe()});var nXe=ye(D5=>{"use strict";var iXe=Mc();D5.name="indicator";D5.plot=function(e,t,r,n){iXe.plotBasePlot(D5.name,e,t,r,n)};D5.clean=function(e,t,r,n){iXe.cleanBasePlot(D5.name,e,t,r,n)}});var e$=ye((cbr,cXe)=>{"use strict";var Sx=Ao().extendFlat,oXe=Ao().extendDeep,CZt=mc().overrideAll,sXe=ec(),lXe=Eh(),kZt=kc().attributes,Bf=Rd(),LZt=pl().templatedArray,E7=GT(),aXe=df().descriptionOnlyNumbers,QJ=sXe({editType:"plot",colorEditType:"plot"}),QC={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:lXe.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},uXe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},PZt=LZt("step",oXe({},QC,{range:uXe}));cXe.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:kZt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Sx({},QJ,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:aXe("value")},font:Sx({},QJ,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:aXe("value")},increasing:{symbol:{valType:"string",dflt:E7.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:E7.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:E7.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:E7.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Sx({},QJ,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:oXe({},QC,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:lXe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:CZt({range:uXe,visible:Sx({},Bf.visible,{dflt:!0}),tickmode:Bf.minor.tickmode,nticks:Bf.nticks,tick0:Bf.tick0,dtick:Bf.dtick,tickvals:Bf.tickvals,ticktext:Bf.ticktext,ticks:Sx({},Bf.ticks,{dflt:"outside"}),ticklen:Bf.ticklen,tickwidth:Bf.tickwidth,tickcolor:Bf.tickcolor,ticklabelstep:Bf.ticklabelstep,showticklabels:Bf.showticklabels,labelalias:Bf.labelalias,tickfont:sXe({}),tickangle:Bf.tickangle,tickformat:Bf.tickformat,tickformatstops:Bf.tickformatstops,tickprefix:Bf.tickprefix,showtickprefix:Bf.showtickprefix,ticksuffix:Bf.ticksuffix,showticksuffix:Bf.showticksuffix,separatethousands:Bf.separatethousands,exponentformat:Bf.exponentformat,minexponent:Bf.minexponent,showexponent:Bf.showexponent,editType:"plot"},"plot"),steps:PZt,threshold:{line:{color:Sx({},QC.line.color,{}),width:Sx({},QC.line.width,{dflt:1}),editType:"plot"},thickness:Sx({},QC.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var t$=ye((fbr,fXe)=>{"use strict";fXe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var vXe=ye((hbr,dXe)=>{"use strict";var ey=Dr(),k7=e$(),IZt=kc().defaults,hXe=pl(),RZt=Yd(),C7=t$(),DZt=xb(),FZt=T3(),zZt=e_(),OZt=t_();function qZt(e,t,r,n){function i(_,k){return ey.coerce(e,t,k7,_,k)}IZt(t,n,i),i("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=i("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){i("number.valueformat");var l=ey.extendFlat({},n.font);l.size=void 0,ey.coerceFont(i,"number.font",l),t.number.font.size===void 0&&(t.number.font.size=C7.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var u;if(t._hasDelta){var c=ey.extendFlat({},n.font);c.size=void 0,ey.coerceFont(i,"delta.font",c),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||C7.defaultNumberFontSize),o[1]=!0),i("delta.reference",t.value),i("delta.relative"),i("delta.valueformat",t.delta.relative?"2%":""),i("delta.increasing.symbol"),i("delta.increasing.color"),i("delta.decreasing.symbol"),i("delta.decreasing.color"),i("delta.position"),i("delta.prefix"),i("delta.suffix"),u=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var f=ey.extendFlat({},n.font);f.size=.25*(s||u||C7.defaultNumberFontSize),ey.coerceFont(i,"title.font",f),i("title.text");var h,d,v,x;function b(_,k){return ey.coerce(h,d,k7.gauge,_,k)}function p(_,k){return ey.coerce(v,x,k7.gauge.axis,_,k)}if(t._hasGauge){h=e.gauge,h||(h={}),d=hXe.newContainer(t,"gauge"),b("shape");var C=t._isBullet=t.gauge.shape==="bullet";C||i("title.align","center");var E=t._isAngular=t.gauge.shape==="angular";E||i("align","center"),b("bgcolor",n.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var A=C7.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",A),RZt(h,d,{name:"steps",handleItemDefaults:BZt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),v={},h&&(v=h.axis||{}),x=hXe.newContainer(d,"axis"),p("visible"),t._range=p("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};DZt(v,x,p,"linear"),OZt(v,x,p,"linear",L),zZt(v,x,p,"linear",L),FZt(v,x,p,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function BZt(e,t){function r(n,i){return ey.coerce(e,t,k7.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}dXe.exports={supplyDefaults:qZt}});var gXe=ye((dbr,pXe)=>{"use strict";function NZt(e,t){var r=[],n=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var i=t._lastValue,a=i;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}pXe.exports={calc:NZt}});var wXe=ye((vbr,bXe)=>{"use strict";var fw=Oa(),UZt=(R2(),ab(I2)).interpolate,mXe=(R2(),ab(I2)).interpolateNumber,Mx=Dr(),VZt=Mx.strScale,tk=Mx.strTranslate,GZt=Mx.rad2deg,HZt=Kh().MID_SHIFT,cw=So(),sw=t$(),P7=ru(),sv=ho(),jZt=t4(),WZt=oI(),XZt=Rd(),F5=Ca(),r$={left:"start",center:"middle",right:"end"},lw={left:0,center:.5,right:1},yXe=/[yzafpnµmkMGTPEZY]/;function rk(e){return e&&e.duration>0}bXe.exports=function(t,r,n,i){var a=t._fullLayout,o;rk(n)&&i&&(o=i()),Mx.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var l=s[0],u=l.trace,c=fw.select(this),f=u._hasGauge,h=u._isAngular,d=u._isBullet,v=u.domain,x={w:a._size.w*(v.x[1]-v.x[0]),h:a._size.h*(v.y[1]-v.y[0]),l:a._size.l+a._size.w*v.x[0],r:a._size.r+a._size.w*(1-v.x[1]),t:a._size.t+a._size.h*(1-v.y[1]),b:a._size.b+a._size.h*v.y[0]},b=x.l+x.w/2,p=x.t+x.h/2,C=Math.min(x.w/2,x.h),E=sw.innerRadius*C,A,L,_,k=u.align||"center";if(L=p,!f)A=x.l+lw[k]*x.w,_=function(H){return _Xe(H,x.w,x.h)};else if(h&&(A=b,L=p+C/2,_=function(H){return $Zt(H,.9*E)}),d){var M=sw.bulletPadding,g=1-sw.bulletNumberDomainSize+M;A=x.l+(g+(1-g)*lw[k])*x.w,_=function(H){return _Xe(H,(sw.bulletNumberDomainSize-M)*x.w,x.h)}}KZt(t,c,s,{numbersX:A,numbersY:L,numbersScaler:_,transitionOpts:n,onComplete:o});var P,T;f&&(P={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},T={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var z=c.selectAll("g.angular").data(h?s:[]);z.exit().remove();var O=c.selectAll("g.angularaxis").data(h?s:[]);O.exit().remove(),h&&YZt(t,c,s,{radius:C,innerRadius:E,gauge:z,layer:O,size:x,gaugeBg:P,gaugeOutline:T,transitionOpts:n,onComplete:o});var V=c.selectAll("g.bullet").data(d?s:[]);V.exit().remove();var G=c.selectAll("g.bulletaxis").data(d?s:[]);G.exit().remove(),d&&ZZt(t,c,s,{gauge:V,layer:G,size:x,gaugeBg:P,gaugeOutline:T,transitionOpts:n,onComplete:o});var Z=c.selectAll("text.title").data(s);Z.exit().remove(),Z.enter().append("text").classed("title",!0),Z.attr("text-anchor",function(){return d?r$.right:r$[u.title.align]}).text(u.title.text).call(cw.font,u.title.font).call(P7.convertToTspans,t),Z.attr("transform",function(){var H=x.l+x.w*lw[u.title.align],N,j=sw.titlePadding,re=cw.bBox(Z.node());if(f){if(h)if(u.gauge.axis.visible){var oe=cw.bBox(O.node());N=oe.top-j-re.bottom}else N=x.t+x.h/2-C/2-re.bottom-j;d&&(N=L-(re.top+re.bottom)/2,H=x.l-sw.bulletPadding*x.w)}else N=u._numbersTop-j-re.bottom;return tk(H,N)})})};function ZZt(e,t,r,n){var i=r[0].trace,a=n.gauge,o=n.layer,s=n.gaugeBg,l=n.gaugeOutline,u=n.size,c=i.domain,f=n.transitionOpts,h=n.onComplete,d,v,x,b,p;a.enter().append("g").classed("bullet",!0),a.attr("transform",tk(u.l,u.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var C=u.h,E=i.gauge.bar.thickness*C,A=c.x[0],L=c.x[0]+(c.x[1]-c.x[0])*(i._hasNumber||i._hasDelta?1-sw.bulletNumberDomainSize:1);d=ek(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[A,L],d.setScale(),v=sv.calcTicks(d),x=sv.makeTransTickFn(d),b=sv.getTickSigns(d)[2],p=u.t+u.h,d.visible&&(sv.drawTicks(e,d,{vals:d.ticks==="inside"?sv.clipEnds(d,v):v,layer:o,path:sv.makeTickPath(d,p,b),transFn:x}),sv.drawLabels(e,d,{vals:v,layer:o,transFn:x,labelFns:sv.makeLabelFns(d,p)}));function _(O){O.attr("width",function(V){return Math.max(0,d.c2p(V.range[1])-d.c2p(V.range[0]))}).attr("x",function(V){return d.c2p(V.range[0])}).attr("y",function(V){return .5*(1-V.thickness)*C}).attr("height",function(V){return V.thickness*C})}var k=[s].concat(i.gauge.steps),M=a.selectAll("g.bg-bullet").data(k);M.enter().append("g").classed("bg-bullet",!0).append("rect"),M.select("rect").call(_).call(uw),M.exit().remove();var g=a.selectAll("g.value-bullet").data([i.gauge.bar]);g.enter().append("g").classed("value-bullet",!0).append("rect"),g.select("rect").attr("height",E).attr("y",(C-E)/2).call(uw),rk(f)?g.select("rect").transition().duration(f.duration).ease(f.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y)))):g.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y))):0),g.exit().remove();var P=r.filter(function(){return i.gauge.threshold.value||i.gauge.threshold.value===0}),T=a.selectAll("g.threshold-bullet").data(P);T.enter().append("g").classed("threshold-bullet",!0).append("line"),T.select("line").attr("x1",d.c2p(i.gauge.threshold.value)).attr("x2",d.c2p(i.gauge.threshold.value)).attr("y1",(1-i.gauge.threshold.thickness)/2*C).attr("y2",(1-(1-i.gauge.threshold.thickness)/2)*C).call(F5.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),T.exit().remove();var z=a.selectAll("g.gauge-outline").data([l]);z.enter().append("g").classed("gauge-outline",!0).append("rect"),z.select("rect").call(_).call(uw),z.exit().remove()}function YZt(e,t,r,n){var i=r[0].trace,a=n.size,o=n.radius,s=n.innerRadius,l=n.gaugeBg,u=n.gaugeOutline,c=[a.l+a.w/2,a.t+a.h/2+o/2],f=n.gauge,h=n.layer,d=n.transitionOpts,v=n.onComplete,x=Math.PI/2;function b(_e){var Me=i.gauge.axis.range[0],ke=i.gauge.axis.range[1],me=(_e-Me)/(ke-Me)*Math.PI-x;return me<-x?-x:me>x?x:me}function p(_e){return fw.svg.arc().innerRadius((s+o)/2-_e/2*(o-s)).outerRadius((s+o)/2+_e/2*(o-s)).startAngle(-x)}function C(_e){_e.attr("d",function(Me){return p(Me.thickness).startAngle(b(Me.range[0])).endAngle(b(Me.range[1]))()})}var E,A,L,_;f.enter().append("g").classed("angular",!0),f.attr("transform",tk(c[0],c[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),E=ek(e,i.gauge.axis),E.type="linear",E.range=i.gauge.axis.range,E._id="xangularaxis",E.ticklabeloverflow="allow",E.setScale();var k=function(_e){return(E.range[0]-_e.x)/(E.range[1]-E.range[0])*Math.PI+Math.PI},M={},g=sv.makeLabelFns(E,0),P=g.labelStandoff;M.xFn=function(_e){var Me=k(_e);return Math.cos(Me)*P},M.yFn=function(_e){var Me=k(_e),ke=Math.sin(Me)>0?.2:1;return-Math.sin(Me)*(P+_e.fontSize*ke)+Math.abs(Math.cos(Me))*(_e.fontSize*HZt)},M.anchorFn=function(_e){var Me=k(_e),ke=Math.cos(Me);return Math.abs(ke)<.1?"middle":ke>0?"start":"end"},M.heightFn=function(_e,Me,ke){var me=k(_e);return-.5*(1+Math.sin(me))*ke};var T=function(_e){return tk(c[0]+o*Math.cos(_e),c[1]-o*Math.sin(_e))};L=function(_e){return T(k(_e))};var z=function(_e){var Me=k(_e);return T(Me)+"rotate("+-GZt(Me)+")"};if(A=sv.calcTicks(E),_=sv.getTickSigns(E)[2],E.visible){_=E.ticks==="inside"?-1:1;var O=(E.linewidth||1)/2;sv.drawTicks(e,E,{vals:A,layer:h,path:"M"+_*O+",0h"+_*E.ticklen,transFn:z}),sv.drawLabels(e,E,{vals:A,layer:h,transFn:L,labelFns:M})}var V=[l].concat(i.gauge.steps),G=f.selectAll("g.bg-arc").data(V);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(C).call(uw),G.exit().remove();var Z=p(i.gauge.bar.thickness),H=f.selectAll("g.value-arc").data([i.gauge.bar]);H.enter().append("g").classed("value-arc",!0).append("path");var N=H.select("path");rk(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){v&&v()}).each("interrupt",function(){v&&v()}).attrTween("d",JZt(Z,b(r[0].lastY),b(r[0].y))),i._lastValue=r[0].y):N.attr("d",typeof r[0].y=="number"?Z.endAngle(b(r[0].y)):"M0,0Z"),N.call(uw),H.exit().remove(),V=[];var j=i.gauge.threshold.value;(j||j===0)&&V.push({range:[j,j],color:i.gauge.threshold.color,line:{color:i.gauge.threshold.line.color,width:i.gauge.threshold.line.width},thickness:i.gauge.threshold.thickness});var re=f.selectAll("g.threshold-arc").data(V);re.enter().append("g").classed("threshold-arc",!0).append("path"),re.select("path").call(C).call(uw),re.exit().remove();var oe=f.selectAll("g.gauge-outline").data([u]);oe.enter().append("g").classed("gauge-outline",!0).append("path"),oe.select("path").call(C).call(uw),oe.exit().remove()}function KZt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",l=r$[s],u=n.transitionOpts,c=n.onComplete,f=Mx.ensureSingle(t,"g","numbers"),h,d,v,x=[];i._hasNumber&&x.push("number"),i._hasDelta&&(x.push("delta"),i.delta.position==="left"&&x.reverse());var b=f.selectAll("text").data(x);b.enter().append("text"),b.attr("text-anchor",function(){return l}).attr("class",function(T){return T}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function p(T,z,O,V){if(T.match("s")&&O>=0!=V>=0&&!z(O).slice(-1).match(yXe)&&!z(V).slice(-1).match(yXe)){var G=T.slice().replace("s","f").replace(/\d+/,function(H){return parseInt(H)-1}),Z=ek(e,{tickformat:G});return function(H){return Math.abs(H)<1?sv.tickText(Z,H).text:z(H)}}else return z}function C(){var T=ek(e,{tickformat:i.number.valueformat},i._range);T.setScale(),sv.prepTicks(T);var z=function(H){return sv.tickText(T,H).text},O=i.number.suffix,V=i.number.prefix,G=f.select("text.number");function Z(){var H=typeof r[0].y=="number"?V+z(r[0].y)+O:"-";G.text(H).call(cw.font,i.number.font).call(P7.convertToTspans,e)}return rk(u)?G.transition().duration(u.duration).ease(u.easing).each("end",function(){Z(),c&&c()}).each("interrupt",function(){Z(),c&&c()}).attrTween("text",function(){var H=fw.select(this),N=mXe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var j=p(i.number.valueformat,z,r[0].lastY,r[0].y);return function(re){H.text(V+j(N(re))+O)}}):Z(),h=xXe(V+z(r[0].y)+O,i.number.font,l,e),G}function E(){var T=ek(e,{tickformat:i.delta.valueformat},i._range);T.setScale(),sv.prepTicks(T);var z=function(re){return sv.tickText(T,re).text},O=i.delta.suffix,V=i.delta.prefix,G=function(re){var oe=i.delta.relative?re.relativeDelta:re.delta;return oe},Z=function(re,oe){return re===0||typeof re!="number"||isNaN(re)?"-":(re>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+V+oe(re)+O},H=function(re){return re.delta>=0?i.delta.increasing.color:i.delta.decreasing.color};i._deltaLastValue===void 0&&(i._deltaLastValue=G(r[0]));var N=f.select("text.delta");N.call(cw.font,i.delta.font).call(F5.fill,H({delta:i._deltaLastValue}));function j(){N.text(Z(G(r[0]),z)).call(F5.fill,H(r[0])).call(P7.convertToTspans,e)}return rk(u)?N.transition().duration(u.duration).ease(u.easing).tween("text",function(){var re=fw.select(this),oe=G(r[0]),_e=i._deltaLastValue,Me=p(i.delta.valueformat,z,_e,oe),ke=mXe(_e,oe);return i._deltaLastValue=oe,function(me){re.text(Z(ke(me),Me)),re.call(F5.fill,H({delta:ke(me)}))}}).each("end",function(){j(),c&&c()}).each("interrupt",function(){j(),c&&c()}):j(),d=xXe(Z(G(r[0]),z),i.delta.font,l,e),N}var A=i.mode+i.align,L;if(i._hasDelta&&(L=E(),A+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,A+=i.delta.increasing.symbol+i.delta.decreasing.symbol,v=d),i._hasNumber&&(C(),A+=i.number.font.size+i.number.font.family+i.number.valueformat+i.number.suffix+i.number.prefix,v=h),i._hasDelta&&i._hasNumber){var _=[(h.left+h.right)/2,(h.top+h.bottom)/2],k=[(d.left+d.right)/2,(d.top+d.bottom)/2],M,g,P=.75*i.delta.font.size;i.delta.position==="left"&&(M=L7(i,"deltaPos",0,-1*(h.width*lw[i.align]+d.width*(1-lw[i.align])+P),A,Math.min),g=_[1]-k[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+M,right:h.right,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="right"&&(M=L7(i,"deltaPos",0,h.width*(1-lw[i.align])+d.width*lw[i.align]+P,A,Math.max),g=_[1]-k[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:h.left,right:d.right+M,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="bottom"&&(M=null,g=d.height,v={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),i.delta.position==="top"&&(M=null,g=h.top,v={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),L.attr({dx:M,dy:g})}(i._hasNumber||i._hasDelta)&&f.attr("transform",function(){var T=n.numbersScaler(v);A+=T[2];var z=L7(i,"numbersScale",1,T[0],A,Math.min),O;i._scaleNumbers||(z=1),i._isAngular?O=o-z*v.bottom:O=o-z*(v.top+v.bottom)/2,i._numbersTop=z*v.top+O;var V=v[s];s==="center"&&(V=(v.left+v.right)/2);var G=a-z*V;return G=L7(i,"numbersTranslate",0,G,A,Math.max),tk(G,O)+VZt(z)})}function uw(e){e.each(function(t){F5.stroke(fw.select(this),t.line.color)}).each(function(t){F5.fill(fw.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function JZt(e,t,r){return function(){var n=UZt(t,r);return function(i){return e.endAngle(n(i))()}}}function ek(e,t,r){var n=e._fullLayout,i=Mx.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:n.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(l,u){return Mx.coerce(i,a,XZt,l,u)}return jZt(i,a,s,o,n),WZt(i,a,s,o),a}function _Xe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function $Zt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function xXe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=fw.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(P7.convertToTspans,n).call(cw.font,t),cw.bBox(a.node())}function L7(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=Mx.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var AXe=ye((pbr,TXe)=>{"use strict";TXe.exports={moduleType:"trace",name:"indicator",basePlotModule:nXe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:e$(),supplyDefaults:vXe().supplyDefaults,calc:gXe().calc,plot:wXe(),meta:{}}});var MXe=ye((gbr,SXe)=>{"use strict";SXe.exports=AXe()});var i$=ye((ybr,LXe)=>{"use strict";var EXe=Nb(),I7=Ao().extendFlat,QZt=mc().overrideAll,CXe=ec(),eYt=kc().attributes,kXe=df().descriptionOnlyNumbers,mbr=LXe.exports=QZt({domain:eYt({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:kXe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:I7({},EXe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:I7({},CXe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:kXe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:I7({},EXe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:I7({},CXe({arrayOk:!0}))}},"calc","from-root")});var IXe=ye((_br,PXe)=>{"use strict";var n$=Dr(),tYt=i$(),rYt=kc().defaults;function iYt(e,t){for(var r=e.columnorder||[],n=e.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(l,u){return l-u}),o=i.map(function(l){return a.indexOf(l)}),s=o.length;s{"use strict";var nYt=Km().wrap;RXe.exports=function(){return nYt({})}});var a$=ye((bbr,FXe)=>{"use strict";FXe.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"
",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}});var HXe=ye((wbr,GXe)=>{"use strict";var zXe=a$(),s$=Ao().extendFlat,aYt=Eo(),oYt=vv().isTypedArray,R7=vv().isArrayOrTypedArray;GXe.exports=function(t,r){var n=o$(r.cells.values),i=function(g){return g.slice(r.header.values.length,g.length)},a=o$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=o$(a));var o=a.concat(i(n).map(function(){return VXe((a[0]||[""]).length)})),s=r.domain,l=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),u=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),c=r.header.values.length?o[0].map(function(){return r.header.height}):[zXe.emptyHeaderHeight],f=n.length?n[0].map(function(){return r.cells.height}):[],h=c.reduce(OXe,0),d=u-h,v=d+zXe.uplift,x=NXe(f,v),b=NXe(c,h),p=BXe(b,[]),C=BXe(x,p),E={},A=r._fullInput.columnorder;R7(A)&&(A=Array.from(A)),A=A.concat(i(n.map(function(g,P){return P})));var L=o.map(function(g,P){var T=R7(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return aYt(T)?Number(T):1}),_=L.reduce(OXe,0);L=L.map(function(g){return g/_*l});var k=Math.max(l$(r.header.line.width),l$(r.cells.line.width)),M={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:l,maxLineWidth:k,height:u,columnOrder:A,groupHeight:u,rowBlocks:C,headerRowBlocks:p,scrollY:0,cells:s$({},r.cells,{values:n}),headerCells:s$({},r.header,{values:o}),gdColumns:o.map(function(g){return g[0]}),gdColumnsOriginalOrder:o.map(function(g){return g[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(g,P){var T=E[g];E[g]=(T||0)+1;var z=g+"__"+E[g];return{key:z,label:g,specIndex:P,xIndex:A[P],xScale:qXe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return M.columns.forEach(function(g){g.calcdata=M,g.x=qXe(g)}),M};function l$(e){if(R7(e)){for(var t=0,r=0;r=t||u===e.length-1)&&(r[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=u,o=UXe(),i+=a,s=u+1,a=0);return r}function UXe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var jXe=ye(u$=>{"use strict";var D7=Ao().extendFlat;u$.splitToPanels=function(e){var t=[0,0],r=D7({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:D7({},e.calcdata,{cells:e.calcdata.headerCells})}),n=D7({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),i=D7({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[n,i,r]};u$.splitToCells=function(e){var t=sYt(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,n){var i=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:n+i,key:t[0]+n,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function sYt(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,n=t?r+t.rows.length:0;return[r,n]}});var _$=ye((Abr,rZe)=>{"use strict";var Ya=a$(),tf=Oa(),c$=Dr(),lYt=c$.numberFormat,Uu=Km(),f$=So(),uYt=ru(),cYt=Dr().raiseToTop,og=Dr().strTranslate,fYt=Dr().cancelTransition,hYt=HXe(),$Xe=jXe(),WXe=Ca();rZe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+Ya.cn.table).data(r.map(function(C){var E=Uu.unwrap(C),A=E.trace;return hYt(t,A)}),Uu.keyFun);i.exit().remove(),i.enter().append("g").classed(Ya.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),i.attr("width",function(C){return C.width+C.size.l+C.size.r}).attr("height",function(C){return C.height+C.size.t+C.size.b}).attr("transform",function(C){return og(C.translateX,C.translateY)});var a=i.selectAll("."+Ya.cn.tableControlView).data(Uu.repeat,Uu.keyFun),o=a.enter().append("g").classed(Ya.cn.tableControlView,!0).style("box-sizing","content-box");if(n){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(C){a.filter(function(E){return C===E}).call(ik,t)}).on(s,function(C){if(!C.scrollbarState.wheeling){C.scrollbarState.wheeling=!0;var E=C.scrollY+tf.event.deltaY,A=z7(t,a,null,E)(C);A||(tf.event.stopPropagation(),tf.event.preventDefault()),C.scrollbarState.wheeling=!1}}).call(ik,t,!0)}a.attr("transform",function(C){return og(C.size.l,C.size.t)});var l=a.selectAll("."+Ya.cn.scrollBackground).data(Uu.repeat,Uu.keyFun);l.enter().append("rect").classed(Ya.cn.scrollBackground,!0).attr("fill","none"),l.attr("width",function(C){return C.width}).attr("height",function(C){return C.height}),a.each(function(C){f$.setClipUrl(tf.select(this),XXe(t,C),t)});var u=a.selectAll("."+Ya.cn.yColumn).data(function(C){return C.columns},Uu.keyFun);u.enter().append("g").classed(Ya.cn.yColumn,!0),u.exit().remove(),u.attr("transform",function(C){return og(C.x,0)}),n&&u.call(tf.behavior.drag().origin(function(C){var E=tf.select(this);return KXe(E,C,-Ya.uplift),cYt(this),C.calcdata.columnDragInProgress=!0,ik(a.filter(function(A){return C.calcdata.key===A.key}),t),C}).on("drag",function(C){var E=tf.select(this),A=function(k){return(C===k?tf.event.x:k.x)+k.columnWidth/2};C.x=Math.max(-Ya.overdrag,Math.min(C.calcdata.width+Ya.overdrag-C.columnWidth,tf.event.x));var L=QXe(u).filter(function(k){return k.calcdata.key===C.calcdata.key}),_=L.sort(function(k,M){return A(k)-A(M)});_.forEach(function(k,M){k.xIndex=M,k.x=C===k?k.x:k.xScale(k)}),u.filter(function(k){return C!==k}).transition().ease(Ya.transitionEase).duration(Ya.transitionDuration).attr("transform",function(k){return og(k.x,0)}),E.call(fYt).attr("transform",og(C.x,-Ya.uplift))}).on("dragend",function(C){var E=tf.select(this),A=C.calcdata;C.x=C.xScale(C),C.calcdata.columnDragInProgress=!1,KXe(E,C,0),wYt(t,A,A.columns.map(function(L){return L.xIndex}))})),u.each(function(C){f$.setClipUrl(tf.select(this),ZXe(t,C),t)});var c=u.selectAll("."+Ya.cn.columnBlock).data($Xe.splitToPanels,Uu.keyFun);c.enter().append("g").classed(Ya.cn.columnBlock,!0).attr("id",function(C){return C.key}),c.style("cursor",function(C){return C.dragHandle?"ew-resize":C.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var f=c.filter(TYt),h=c.filter(g$);n&&h.call(tf.behavior.drag().origin(function(C){return tf.event.stopPropagation(),C}).on("drag",z7(t,a,-1)).on("dragend",function(){})),h$(t,a,f,c),h$(t,a,h,c);var d=a.selectAll("."+Ya.cn.scrollAreaClip).data(Uu.repeat,Uu.keyFun);d.enter().append("clipPath").classed(Ya.cn.scrollAreaClip,!0).attr("id",function(C){return XXe(t,C)});var v=d.selectAll("."+Ya.cn.scrollAreaClipRect).data(Uu.repeat,Uu.keyFun);v.enter().append("rect").classed(Ya.cn.scrollAreaClipRect,!0).attr("x",-Ya.overdrag).attr("y",-Ya.uplift).attr("fill","none"),v.attr("width",function(C){return C.width+2*Ya.overdrag}).attr("height",function(C){return C.height+Ya.uplift});var x=u.selectAll("."+Ya.cn.columnBoundary).data(Uu.repeat,Uu.keyFun);x.enter().append("g").classed(Ya.cn.columnBoundary,!0);var b=u.selectAll("."+Ya.cn.columnBoundaryClippath).data(Uu.repeat,Uu.keyFun);b.enter().append("clipPath").classed(Ya.cn.columnBoundaryClippath,!0),b.attr("id",function(C){return ZXe(t,C)});var p=b.selectAll("."+Ya.cn.columnBoundaryRect).data(Uu.repeat,Uu.keyFun);p.enter().append("rect").classed(Ya.cn.columnBoundaryRect,!0).attr("fill","none"),p.attr("width",function(C){return C.columnWidth+2*F7(C)}).attr("height",function(C){return C.calcdata.height+2*F7(C)+Ya.uplift}).attr("x",function(C){return-F7(C)}).attr("y",function(C){return-F7(C)}),m$(null,h,a)};function F7(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function XXe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function ZXe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function QXe(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function ik(e,t,r){function n(u){var c=u.rowBlocks;return v$(c,c.length-1)+(c.length?O7(c[c.length-1],1/0):1)}var i=e.selectAll("."+Ya.cn.scrollbarKit).data(Uu.repeat,Uu.keyFun);i.enter().append("g").classed(Ya.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),i.each(function(u){var c=u.scrollbarState;c.totalHeight=n(u),c.scrollableAreaHeight=u.groupHeight-d$(u),c.currentlyVisibleHeight=Math.min(c.totalHeight,c.scrollableAreaHeight),c.ratio=c.currentlyVisibleHeight/c.totalHeight,c.barLength=Math.max(c.ratio*c.currentlyVisibleHeight,Ya.goldenRatio*Ya.scrollbarWidth),c.barWiggleRoom=c.currentlyVisibleHeight-c.barLength,c.wiggleRoom=Math.max(0,c.totalHeight-c.scrollableAreaHeight),c.topY=c.barWiggleRoom===0?0:u.scrollY/c.wiggleRoom*c.barWiggleRoom,c.bottomY=c.topY+c.barLength,c.dragMultiplier=c.wiggleRoom/c.barWiggleRoom}).attr("transform",function(u){var c=u.width+Ya.scrollbarWidth/2+Ya.scrollbarOffset;return og(c,d$(u))});var a=i.selectAll("."+Ya.cn.scrollbar).data(Uu.repeat,Uu.keyFun);a.enter().append("g").classed(Ya.cn.scrollbar,!0);var o=a.selectAll("."+Ya.cn.scrollbarSlider).data(Uu.repeat,Uu.keyFun);o.enter().append("g").classed(Ya.cn.scrollbarSlider,!0),o.attr("transform",function(u){return og(0,u.scrollbarState.topY||0)});var s=o.selectAll("."+Ya.cn.scrollbarGlyph).data(Uu.repeat,Uu.keyFun);s.enter().append("line").classed(Ya.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",Ya.scrollbarWidth).attr("stroke-linecap","round").attr("y1",Ya.scrollbarWidth/2),s.attr("y2",function(u){return u.scrollbarState.barLength-Ya.scrollbarWidth/2}).attr("stroke-opacity",function(u){return u.columnDragInProgress||!u.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(Ya.scrollbarHideDelay).duration(Ya.scrollbarHideDuration).attr("stroke-opacity",0);var l=a.selectAll("."+Ya.cn.scrollbarCaptureZone).data(Uu.repeat,Uu.keyFun);l.enter().append("line").classed(Ya.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",Ya.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(u){var c=tf.event.y,f=this.getBoundingClientRect(),h=u.scrollbarState,d=c-f.top,v=tf.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||z7(t,e,null,v(d-h.barLength/2))(u)}).call(tf.behavior.drag().origin(function(u){return tf.event.stopPropagation(),u.scrollbarState.scrollbarScrollInProgress=!0,u}).on("drag",z7(t,e)).on("dragend",function(){})),l.attr("y2",function(u){return u.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),l.remove())}function h$(e,t,r,n){var i=dYt(r),a=vYt(i);yYt(a);var o=pYt(a);xYt(o);var s=mYt(a),l=gYt(s);_Yt(l),eZe(l,t,n,e),y$(a)}function dYt(e){var t=e.selectAll("."+Ya.cn.columnCells).data(Uu.repeat,Uu.keyFun);return t.enter().append("g").classed(Ya.cn.columnCells,!0),t.exit().remove(),t}function vYt(e){var t=e.selectAll("."+Ya.cn.columnCell).data($Xe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.columnCell,!0),t.exit().remove(),t}function pYt(e){var t=e.selectAll("."+Ya.cn.cellRect).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(Ya.cn.cellRect,!0),t}function gYt(e){var t=e.selectAll("."+Ya.cn.cellText).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(Ya.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){tf.event.stopPropagation()}),t}function mYt(e){var t=e.selectAll("."+Ya.cn.cellTextHolder).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function yYt(e){e.each(function(t,r){var n=t.calcdata.cells.font,i=t.column.specIndex,a={size:Zv(n.size,i,r),color:Zv(n.color,i,r),family:Zv(n.family,i,r),weight:Zv(n.weight,i,r),style:Zv(n.style,i,r),variant:Zv(n.variant,i,r),textcase:Zv(n.textcase,i,r),lineposition:Zv(n.lineposition,i,r),shadow:Zv(n.shadow,i,r)};t.rowNumber=t.key,t.align=Zv(t.calcdata.cells.align,i,r),t.cellBorderWidth=Zv(t.calcdata.cells.line.width,i,r),t.font=a})}function _Yt(e){e.each(function(t){f$.font(tf.select(this),t.font)})}function xYt(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=tf.select(this);WXe.stroke(r,Zv(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),WXe.fill(r,Zv(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function eZe(e,t,r,n){e.text(function(i){var a=i.column.specIndex,o=i.rowNumber,s=i.value,l=typeof s=="string",u=l&&s.match(/
/i),c=!l||u;i.mayHaveMarkup=l&&s.match(/[<&>]/);var f=bYt(s);i.latex=f;var h=f?"":Zv(i.calcdata.cells.prefix,a,o)||"",d=f?"":Zv(i.calcdata.cells.suffix,a,o)||"",v=f?null:Zv(i.calcdata.cells.format,a,o)||null,x=h+(v?lYt(v)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!c&&!f&&(b=YXe(x)),i.cellHeightMayIncrease=u||f||i.mayHaveMarkup||(b===void 0?YXe(x):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var p;if(i.wrappingNeeded){var C=Ya.wrapSplitCharacter===" "?x.replace(/i&&n.push(a),i+=l}return n}function m$(e,t,r){var n=QXe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=v$(i,i.length),s=n.calcdata.groupHeight-d$(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=AYt(i,l,s);u.length===1&&(u[0]===i.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&&u.reverse(),t.each(function(c,f){c.page=u[f],c.scrollY=l}),t.attr("transform",function(c){var f=v$(c.rowBlocks,c.page)-c.scrollY;return og(0,f)}),e&&(JXe(e,r,t,u,n.prevPages,n,0),JXe(e,r,t,u,n.prevPages,n,1),ik(r,e))}}function z7(e,t,r,n){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(f){return o.key===f.key}),l=r||o.scrollbarState.dragMultiplier,u=o.scrollY;o.scrollY=n===void 0?o.scrollY+l*tf.event.dy:n;var c=s.selectAll("."+Ya.cn.yColumn).selectAll("."+Ya.cn.columnBlock).filter(g$);return m$(e,c,s),o.scrollY===u}}function JXe(e,t,r,n,i,a,o){var s=n[o]!==i[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var l=r.filter(function(u,c){return c===o&&n[c]!==i[c]});h$(e,t,l,r),i[o]=n[o]}))}function SYt(e,t,r,n){return function(){var a=tf.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(x,b){s[b].width=this.getComputedTextLength()});var l=s[s.length-1].width,u=s.slice(0,-1),c=[],f,h,d=0,v=o.column.columnWidth-2*Ya.cellPad;for(o.value="";u.length;)f=u.shift(),h=f.width+l,d+h>v&&(o.value+=c.join(Ya.wrapSpacer)+Ya.lineBreaker,c=[],d=0),c.push(f.text),d+=h;d&&(o.value+=c.join(Ya.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),eZe(a.select("."+Ya.cn.cellText),r,e,n),tf.select(t.parentNode.parentNode).call(y$)}}function MYt(e,t,r,n,i){return function(){if(!i.settledY){var o=tf.select(t.parentNode),s=p$(i),l=i.key-s.firstRowIndex,u=s.rows[l].rowHeight,c=i.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*Ya.cellPad:u,f=Math.max(c,u),h=f-s.rows[l].rowHeight;h&&(s.rows[l].rowHeight=f,e.selectAll("."+Ya.cn.columnCell).call(y$),m$(null,e.filter(g$),0),ik(r,n,!0)),o.attr("transform",function(){var d=this,v=d.parentNode,x=v.getBoundingClientRect(),b=tf.select(d.parentNode).select("."+Ya.cn.cellRect).node().getBoundingClientRect(),p=d.transform.baseVal.consolidate(),C=b.top-x.top+(p?p.matrix.f:Ya.cellPad);return og(tZe(i,tf.select(d.parentNode).select("."+Ya.cn.cellTextHolder).node().getBoundingClientRect().width),C)}),i.settledY=!0}}}function tZe(e,t){switch(e.align){case"left":return Ya.cellPad;case"right":return e.column.columnWidth-(t||0)-Ya.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return Ya.cellPad}}function y$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+O7(s,1/0)},0),n=p$(t),i=O7(n,t.key),a=i+r;return og(0,a)}).selectAll("."+Ya.cn.cellRect).attr("height",function(t){return CYt(p$(t),t.key).rowHeight})}function v$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=EYt(e[n]);return r}function O7(e,t){for(var r=0,n=0;n{"use strict";var kYt=Id().getModuleCalcData,LYt=_$(),q7="table";B7.name=q7;B7.plot=function(e){var t=kYt(e.calcdata,q7)[0];t.length&&LYt(e,t)};B7.clean=function(e,t,r,n){var i=n._has&&n._has(q7),a=t._has&&t._has(q7);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var aZe=ye((Mbr,nZe)=>{"use strict";nZe.exports={attributes:i$(),supplyDefaults:IXe(),calc:DXe(),plot:_$(),moduleType:"trace",name:"table",basePlotModule:iZe(),categories:["noOpacity"],meta:{}}});var sZe=ye((Ebr,oZe)=>{"use strict";oZe.exports=aZe()});var hZe=ye((Cbr,fZe)=>{"use strict";var lZe=ec(),uZe=Eh(),x$=Rd(),PYt=df().descriptionWithDates,IYt=mc().overrideAll,cZe=Pd().dash,b$=Ao().extendFlat;fZe.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:lZe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:x$.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:b$({},x$.labelalias,{editType:"calc"}),tickfont:lZe({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:PYt("tick label")},tickformatstops:IYt(x$.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:uZe.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:b$({},cZe,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:b$({},cZe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:uZe.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var U7=ye((kbr,pZe)=>{"use strict";var RYt=ec(),dZe=hZe(),vZe=Eh(),N7=RYt({editType:"calc"}),DYt=pf().zorder;N7.family.dflt='"Open Sans", verdana, arial, sans-serif';N7.size.dflt=12;N7.color.dflt=vZe.defaultLine;pZe.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:dZe,baxis:dZe,font:N7,color:{valType:"color",dflt:vZe.defaultLine,editType:"plot"},zorder:DYt}});var yZe=ye((Lbr,mZe)=>{"use strict";var gZe=Dr().isArray1D;mZe.exports=function(t,r,n){var i=n("x"),a=i&&i.length,o=n("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!i,(!a||gZe(i))&&(!s||gZe(o))){var l=a?i.length:1/0;s&&(l=Math.min(l,o.length)),r.a&&r.a.length&&(l=Math.min(l,r.a.length)),r.b&&r.b.length&&(l=Math.min(l,r.b.length)),r._length=l}else r._length=null;return!0}});var bZe=ye((Pbr,xZe)=>{"use strict";var FYt=U7(),_Ze=Ca().addOpacity,zYt=qa(),nk=Dr(),OYt=xb(),qYt=e_(),BYt=t_(),NYt=iI(),UYt=ym(),VYt=L3();xZe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=FYt[i+"axis"];function s(g,P){return nk.coerce(t,r,o,g,P)}function l(g,P){return nk.coerce2(t,r,o,g,P)}n.name&&(r._name=n.name,r._id=n.name),s("autotypenumbers",n.autotypenumbersDflt);var u=s("type");if(u==="-"&&(n.data&&GYt(r,n.data),r.type==="-"?r.type="linear":u=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",i+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=i,u==="date"){var c=zYt.getComponentMethod("calendars","handleDefaults");c(t,r,"calendar",n.calendar)}UYt(r,n.fullLayout),r.c2p=nk.identity;var f=s("color",n.dfltColor),h=f===t.color?f:a.color,d=s("title.text");d&&(nk.coerceFont(s,"title.font",a,{overrideDflt:{size:nk.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var v=s("autorange",!r.isValidRange(t.range));v&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),OYt(t,r,s,u),BYt(t,r,s,u,n),qYt(t,r,s,u,n),NYt(t,r,s,{data:n.data,dataAttr:i});var x=l("gridcolor",_Ze(f,.3)),b=l("gridwidth"),p=l("griddash"),C=s("showgrid");C||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var E=l("startlinecolor",f),A=l("startlinewidth",b),L=s("startline",r.showgrid||!!E||!!A);L||(delete r.startlinecolor,delete r.startlinewidth);var _=l("endlinecolor",f),k=l("endlinewidth",b),M=s("endline",r.showgrid||!!_||!!k);return M||(delete r.endlinecolor,delete r.endlinewidth),C?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",p),s("minorgridcolor",_Ze(x,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function GYt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=VYt(t,a,{autotypenumbers:e.autotypenumbers})}}});var TZe=ye((Ibr,wZe)=>{"use strict";var HYt=bZe(),jYt=pl();wZe.exports=function(t,r,n,i,a){var o=i("a");o||(i("da"),i("a0"));var s=i("b");s||(i("db"),i("b0")),WYt(t,r,n,a)};function WYt(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=jYt.newContainer(t,a),u={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:n,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};HYt(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var MZe=ye((Rbr,SZe)=>{"use strict";var AZe=Dr(),XYt=yZe(),ZYt=TZe(),YYt=U7(),KYt=Eh();SZe.exports=function(t,r,n,i){function a(l,u){return AZe.coerce(t,r,YYt,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",KYt.defaultLine);if(AZe.coerceFont(a,"font",i.font),a("carpet"),ZYt(t,r,i,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=XYt(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var w$=ye((Dbr,EZe)=>{"use strict";var JYt=Dr().isArrayOrTypedArray;EZe.exports=function(t,r,n){var i;for(JYt(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";CZe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";kZe.exports=function(t,r,n,i,a,o){var s=a[0]*t.dpdx(r),l=a[1]*t.dpdy(n),u=1,c=1;if(o){var f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=(a[0]*o[0]+a[1]*o[1])/f/h;c=Math.max(0,d)}var v=Math.atan2(l,s)*180/Math.PI;return v<-90?(v+=180,u=-u):v>90&&(v-=180,u=-u),{angle:v,flip:u,p:t.c2p(i,r,n),offsetMultplier:c}}});var qZe=ye((Obr,OZe)=>{"use strict";var j7=Oa(),V7=So(),G7=w$(),RZe=T$(),ak=LZe(),A$=ru(),Np=Dr(),DZe=Np.strRotate,H7=Np.strTranslate,FZe=Kh();OZe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,l=t._fullLayout,u=l._clips;Np.makeTraceGroups(i,n,"trace").each(function(c){var f=j7.select(this),h=c[0],d=h.trace,v=d.aaxis,x=d.baxis,b=Np.ensureSingle(f,"g","minorlayer"),p=Np.ensureSingle(f,"g","majorlayer"),C=Np.ensureSingle(f,"g","boundarylayer"),E=Np.ensureSingle(f,"g","labellayer");f.style("opacity",d.opacity),z5(o,s,p,v,"a",v._gridlines,!0,a),z5(o,s,p,x,"b",x._gridlines,!0,a),z5(o,s,b,v,"a",v._minorgridlines,!0,a),z5(o,s,b,x,"b",x._minorgridlines,!0,a),z5(o,s,C,v,"a-boundary",v._boundarylines,a),z5(o,s,C,x,"b-boundary",x._boundarylines,a);var A=PZe(t,o,s,d,h,E,v._labels,"a-label"),L=PZe(t,o,s,d,h,E,x._labels,"b-label");QYt(t,E,d,h,o,s,A,L),$Yt(d,h,u,o,s)})};function $Yt(e,t,r,n,i){var a,o,s,l,u=r.select("#"+e._clipPathId);u.size()||(u=r.append("clipPath").classed("carpetclip",!0));var c=Np.ensureSingle(u,"path","carpetboundary"),f=t.clipsegments,h=[];for(l=0;l0?"start":"end","data-notex":1}).call(V7.font,f.font).text(f.text).call(A$.convertToTspans,e),p=V7.bBox(this);b.attr("transform",H7(d.p[0],d.p[1])+DZe(d.angle)+H7(f.axis.labelpadding*x,p.height*.3)),u=Math.max(u,p.width+f.axis.labelpadding)}),l.exit().remove(),c.maxExtent=u,c}function QYt(e,t,r,n,i,a,o,s){var l,u,c,f,h=Np.aggNums(Math.min,null,r.a),d=Np.aggNums(Math.max,null,r.a),v=Np.aggNums(Math.min,null,r.b),x=Np.aggNums(Math.max,null,r.b);l=.5*(h+d),u=v,c=r.ab2xy(l,u,!0),f=r.dxyda_rough(l,u),o.angle===void 0&&Np.extendFlat(o,ak(r,i,a,c,r.dxydb_rough(l,u))),IZe(e,t,r,n,c,f,r.aaxis,i,a,o,"a-title"),l=h,u=.5*(v+x),c=r.ab2xy(l,u,!0),f=r.dxydb_rough(l,u),s.angle===void 0&&Np.extendFlat(s,ak(r,i,a,c,r.dxyda_rough(l,u))),IZe(e,t,r,n,c,f,r.baxis,i,a,s,"b-title")}var zZe=FZe.LINE_SPACING,eKt=(1-FZe.MID_SHIFT)/zZe+1;function IZe(e,t,r,n,i,a,o,s,l,u,c){var f=[];o.title.text&&f.push(o.title.text);var h=t.selectAll("text."+c).data(f),d=u.maxExtent;h.enter().append("text").classed(c,!0),h.each(function(){var v=ak(r,s,l,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var x=o.title.font.size;d+=x+o.title.offset;var b=u.angle+(u.flip<0?180:0),p=(b-v.angle+450)%360,C=p>90&&p<270,E=j7.select(this);E.text(o.title.text).call(A$.convertToTspans,e),C&&(d=(-A$.lineCount(E)+eKt)*zZe*x-d),E.attr("transform",H7(v.p[0],v.p[1])+DZe(v.angle)+H7(0,d)).attr("text-anchor","middle").call(V7.font,o.title.font)}),h.exit().remove()}});var NZe=ye((qbr,BZe)=>{"use strict";var W7=Dr().isArrayOrTypedArray;BZe.exports=function(e,t,r){var n,i,a,o,s,l,u=[],c=W7(e)?e.length:e,f=W7(t)?t.length:t,h=W7(e)?e:null,d=W7(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(c-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(f-1));var v,x=1/0,b=-1/0;for(i=0;i{"use strict";var UZe=Dr().isArrayOrTypedArray;GZe.exports=function(e){return VZe(e,0)};function VZe(e,t){if(!UZe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var tKt=ho(),Ex=Ao().extendFlat;jZe.exports=function(t,r,n){var i,a,o,s,l,u,c,f,h,d,v,x,b,p,C=t["_"+r],E=t[r+"axis"],A=E._gridlines=[],L=E._minorgridlines=[],_=E._boundarylines=[],k=t["_"+n],M=t[n+"axis"];E.tickmode==="array"&&(E.tickvals=C.slice());var g=t._xctrl,P=t._yctrl,T=g[0].length,z=g.length,O=t._a.length,V=t._b.length;tKt.prepTicks(E),E.tickmode==="array"&&delete E.tickvals;var G=E.smoothing?3:1;function Z(N){var j,re,oe,_e,Me,ke,me,ie,Se,Le,Ae,De,Pe=[],ge=[],Fe={};if(r==="b")for(re=t.b2j(N),oe=Math.floor(Math.max(0,Math.min(V-2,re))),_e=re-oe,Fe.length=V,Fe.crossLength=O,Fe.xy=function(ce){return t.evalxy([],ce,re)},Fe.dxy=function(ce,Ze){return t.dxydi([],ce,oe,Ze,_e)},j=0;j0&&(Se=t.dxydi([],j-1,oe,0,_e),Pe.push(Me[0]+Se[0]/3),ge.push(Me[1]+Se[1]/3),Le=t.dxydi([],j-1,oe,1,_e),Pe.push(ie[0]-Le[0]/3),ge.push(ie[1]-Le[1]/3)),Pe.push(ie[0]),ge.push(ie[1]),Me=ie;else for(j=t.a2i(N),ke=Math.floor(Math.max(0,Math.min(O-2,j))),me=j-ke,Fe.length=O,Fe.crossLength=V,Fe.xy=function(ce){return t.evalxy([],j,ce)},Fe.dxy=function(ce,Ze){return t.dxydj([],ke,ce,me,Ze)},re=0;re0&&(Ae=t.dxydj([],ke,re-1,me,0),Pe.push(Me[0]+Ae[0]/3),ge.push(Me[1]+Ae[1]/3),De=t.dxydj([],ke,re-1,me,1),Pe.push(ie[0]-De[0]/3),ge.push(ie[1]-De[1]/3)),Pe.push(ie[0]),ge.push(ie[1]),Me=ie;return Fe.axisLetter=r,Fe.axis=E,Fe.crossAxis=M,Fe.value=N,Fe.constvar=n,Fe.index=f,Fe.x=Pe,Fe.y=ge,Fe.smoothing=M.smoothing,Fe}function H(N){var j,re,oe,_e,Me,ke=[],me=[],ie={};if(ie.length=C.length,ie.crossLength=k.length,r==="b")for(oe=Math.max(0,Math.min(V-2,N)),Me=Math.min(1,Math.max(0,N-oe)),ie.xy=function(Se){return t.evalxy([],Se,N)},ie.dxy=function(Se,Le){return t.dxydi([],Se,oe,Le,Me)},j=0;jC.length-1)&&A.push(Ex(H(a),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(f=u;fC.length-1)&&!(v<0||v>C.length-1))for(x=C[o],b=C[v],i=0;iC[C.length-1])&&L.push(Ex(Z(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash})));E.startline&&_.push(Ex(H(0),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&_.push(Ex(H(C.length-1),{color:E.endlinecolor,width:E.endlinewidth}))}else{for(s=5e-15,l=[Math.floor((C[C.length-1]-E.tick0)/E.dtick*(1+s)),Math.ceil((C[0]-E.tick0)/E.dtick/(1+s))].sort(function(N,j){return N-j}),u=l[0],c=l[1],f=u;f<=c;f++)h=E.tick0+E.dtick*f,A.push(Ex(Z(h),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(f=u-1;fC[C.length-1])&&L.push(Ex(Z(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash}));E.startline&&_.push(Ex(Z(C[0]),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&_.push(Ex(Z(C[C.length-1]),{color:E.endlinecolor,width:E.endlinewidth}))}}});var KZe=ye((Ubr,YZe)=>{"use strict";var XZe=ho(),ZZe=Ao().extendFlat;YZe.exports=function(t,r){var n,i,a,o,s,l=r._labels=[],u=r._gridlines;for(n=0;n{"use strict";JZe.exports=function(t,r,n,i){var a,o,s,l=[],u=!!n.smoothing,c=!!i.smoothing,f=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=f;a++)o[a]=t[0][a],s[a]=r[0][a];for(l.push({x:o,y:s,bicubic:u}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][f],s[a]=r[a][f];for(l.push({x:o,y:s,bicubic:c}),a=f,o=[],s=[];a>=0;a--)o[f-a]=t[h][a],s[f-a]=r[h][a];for(l.push({x:o,y:s,bicubic:u}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return l.push({x:o,y:s,bicubic:c}),l}});var eYe=ye((Gbr,QZe)=>{"use strict";var rKt=Dr();QZe.exports=function(t,r,n){var i,a,o,s=[],l=[],u=t[0].length,c=t.length;function f(oe,_e){var Me=0,ke,me=0;return oe>0&&(ke=t[_e][oe-1])!==void 0&&(me++,Me+=ke),oe0&&(ke=t[_e-1][oe])!==void 0&&(me++,Me+=ke),_e0&&a0&&iM);return rKt.log("Smoother converged to",g,"after",T,"iterations"),t}});var rYe=ye((Hbr,tYe)=>{"use strict";tYe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var aYe=ye((jbr,nYe)=>{"use strict";var iYe=.5;nYe.exports=function(t,r,n,i){var a=t[0]-r[0],o=t[1]-r[1],s=n[0]-r[0],l=n[1]-r[1],u=Math.pow(a*a+o*o,iYe/2),c=Math.pow(s*s+l*l,iYe/2),f=(c*c*a-u*u*s)*i,h=(c*c*o-u*u*l)*i,d=c*(u+c)*3,v=u*(u+c)*3;return[[r[0]+(d&&f/d),r[1]+(d&&h/d)],[r[0]-(v&&f/v),r[1]-(v&&h/v)]]}});var sYe=ye((Wbr,oYe)=>{"use strict";var S$=aYe(),X7=Dr().ensureArray;function O5(e,t,r){var n=-.5*r[0]+1.5*t[0],i=-.5*r[1]+1.5*t[1];return[(2*n+e[0])/3,(2*i+e[1])/3]}oYe.exports=function(t,r,n,i,a,o){var s,l,u,c,f,h,d,v,x,b,p=n[0].length,C=n.length,E=a?3*p-2:p,A=o?3*C-2:C;for(t=X7(t,A),r=X7(r,A),u=0;u{"use strict";lYe.exports=function(e,t,r,n,i){var a=t-2,o=r-2;return n&&i?function(s,l,u){s||(s=[]);var c,f,h,d,v,x,b=Math.max(0,Math.min(Math.floor(l),a)),p=Math.max(0,Math.min(Math.floor(u),o)),C=Math.max(0,Math.min(1,l-b)),E=Math.max(0,Math.min(1,u-p));b*=3,p*=3;var A=C*C,L=A*C,_=1-C,k=_*_,M=k*_,g=E*E,P=g*E,T=1-E,z=T*T,O=z*T;for(x=0;x{"use strict";cYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,x=1-o,b=x*x,p=x*o*2,C=-3*b,E=3*(b-p),A=3*(p-v),L=3*v,_=s*s,k=_*s,M=1-s,g=M*M,P=g*M;for(d=0;d{"use strict";hYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,x=v*o,b=1-o,p=b*b,C=p*b,E=s*s,A=1-s,L=A*A,_=A*s*2,k=-3*L,M=3*(L-_),g=3*(_-E),P=3*E;for(d=0;d{"use strict";var vYe=rYe(),pYe=P6().findBin,iKt=sYe(),nKt=uYe(),aKt=fYe(),oKt=dYe();gYe.exports=function(t){var r=t._a,n=t._b,i=r.length,a=n.length,o=t.aaxis,s=t.baxis,l=r[0],u=r[i-1],c=n[0],f=n[a-1],h=r[r.length-1]-r[0],d=n[n.length-1]-n[0],v=h*vYe.RELATIVE_CULL_TOLERANCE,x=d*vYe.RELATIVE_CULL_TOLERANCE;l-=v,u+=v,c-=x,f+=x,t.isVisible=function(b,p){return b>l&&bc&&pu||pf},t.setScale=function(){var b=t._x,p=t._y,C=iKt(t._xctrl,t._yctrl,b,p,o.smoothing,s.smoothing);t._xctrl=C[0],t._yctrl=C[1],t.evalxy=nKt([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=aKt([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=oKt([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(b){var p=Math.max(0,Math.floor(b[0]),i-2),C=b[0]-p;return(1-C)*r[p]+C*r[p+1]},t.j2b=function(b){var p=Math.max(0,Math.floor(b[1]),i-2),C=b[1]-p;return(1-C)*n[p]+C*n[p+1]},t.ij2ab=function(b){return[t.i2a(b[0]),t.j2b(b[1])]},t.a2i=function(b){var p=Math.max(0,Math.min(pYe(b,r),i-2)),C=r[p],E=r[p+1];return Math.max(0,Math.min(i-1,p+(b-C)/(E-C)))},t.b2j=function(b){var p=Math.max(0,Math.min(pYe(b,n),a-2)),C=n[p],E=n[p+1];return Math.max(0,Math.min(a-1,p+(b-C)/(E-C)))},t.ab2ij=function(b){return[t.a2i(b[0]),t.b2j(b[1])]},t.i2c=function(b,p){return t.evalxy([],b,p)},t.ab2xy=function(b,p,C){if(!C&&(br[i-1]|pn[a-1]))return[!1,!1];var E=t.a2i(b),A=t.b2j(p),L=t.evalxy([],E,A);if(C){var _=0,k=0,M=[],g,P,T,z;br[i-1]?(g=i-2,P=1,_=(b-r[i-1])/(r[i-1]-r[i-2])):(g=Math.max(0,Math.min(i-2,Math.floor(E))),P=E-g),pn[a-1]?(T=a-2,z=1,k=(p-n[a-1])/(n[a-1]-n[a-2])):(T=Math.max(0,Math.min(a-2,Math.floor(A))),z=A-T),_&&(t.dxydi(M,g,T,P,z),L[0]+=M[0]*_,L[1]+=M[1]*_),k&&(t.dxydj(M,g,T,P,z),L[0]+=M[0]*k,L[1]+=M[1]*k)}return L},t.c2p=function(b,p,C){return[p.c2p(b[0]),C.c2p(b[1])]},t.p2x=function(b,p,C){return[p.p2c(b[0]),C.p2c(b[1])]},t.dadi=function(b){var p=Math.max(0,Math.min(r.length-2,b));return r[p+1]-r[p]},t.dbdj=function(b){var p=Math.max(0,Math.min(n.length-2,b));return n[p+1]-n[p]},t.dxyda=function(b,p,C,E){var A=t.dxydi(null,b,p,C,E),L=t.dadi(b,C);return[A[0]/L,A[1]/L]},t.dxydb=function(b,p,C,E){var A=t.dxydj(null,b,p,C,E),L=t.dbdj(p,E);return[A[0]/L,A[1]/L]},t.dxyda_rough=function(b,p,C){var E=h*(C||.1),A=t.ab2xy(b+E,p,!0),L=t.ab2xy(b-E,p,!0);return[(A[0]-L[0])*.5/E,(A[1]-L[1])*.5/E]},t.dxydb_rough=function(b,p,C){var E=d*(C||.1),A=t.ab2xy(b,p+E,!0),L=t.ab2xy(b,p-E,!0);return[(A[0]-L[0])*.5/E,(A[1]-L[1])*.5/E]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var SYe=ye((Jbr,AYe)=>{"use strict";var Z7=ho(),yYe=Dr().isArray1D,sKt=NZe(),_Ye=HZe(),xYe=WZe(),bYe=KZe(),lKt=$Ze(),wYe=r8(),TYe=eYe(),uKt=e8(),cKt=mYe();AYe.exports=function(t,r){var n=Z7.getFromId(t,r.xaxis),i=Z7.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,l=r.y,u=[];s&&yYe(s)&&u.push("x"),l&&yYe(l)&&u.push("y"),u.length&&uKt(r,a,o,"a","b",u);var c=r._a=r._a||r.a,f=r._b=r._b||r.b;s=r._x||r.x,l=r._y||r.y;var h={};if(r._cheater){var d=a.cheatertype==="index"?c.length:c,v=o.cheatertype==="index"?f.length:f;s=sKt(d,v,r.cheaterslope)}r._x=s=wYe(s),r._y=l=wYe(l),TYe(s,c,f),TYe(l,c,f),cKt(r),r.setScale();var x=_Ye(s),b=_Ye(l),p=.5*(x[1]-x[0]),C=.5*(x[1]+x[0]),E=.5*(b[1]-b[0]),A=.5*(b[1]+b[0]),L=1.3;return x=[C-p*L,C+p*L],b=[A-E*L,A+E*L],r._extremes[n._id]=Z7.findExtremes(n,x,{padded:!0}),r._extremes[i._id]=Z7.findExtremes(i,b,{padded:!0}),xYe(r,"a","b"),xYe(r,"b","a"),bYe(r,a),bYe(r,o),h.clipsegments=lKt(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=c,h.b=f,[h]}});var EYe=ye(($br,MYe)=>{"use strict";MYe.exports={attributes:U7(),supplyDefaults:MZe(),plot:qZe(),calc:SYe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:vh(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var kYe=ye((Qbr,CYe)=>{"use strict";CYe.exports=EYe()});var M$=ye((e2r,PYe)=>{"use strict";var fKt=Eg(),u0=pf(),hKt=Gl(),dKt=Qo().hovertemplateAttrs,vKt=Qo().texttemplateAttrs,LYe=Tu(),Cx=Ao().extendFlat,sg=u0.marker,q5=u0.line,pKt=sg.line;PYe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:Cx({},u0.mode,{dflt:"markers"}),text:Cx({},u0.text,{}),texttemplate:vKt({editType:"plot"},{keys:["a","b","text"]}),hovertext:Cx({},u0.hovertext,{}),line:{color:q5.color,width:q5.width,dash:q5.dash,backoff:q5.backoff,shape:Cx({},q5.shape,{values:["linear","spline"]}),smoothing:q5.smoothing,editType:"calc"},connectgaps:u0.connectgaps,fill:Cx({},u0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:fKt(),marker:Cx({symbol:sg.symbol,opacity:sg.opacity,maxdisplayed:sg.maxdisplayed,angle:sg.angle,angleref:sg.angleref,standoff:sg.standoff,size:sg.size,sizeref:sg.sizeref,sizemin:sg.sizemin,sizemode:sg.sizemode,line:Cx({width:pKt.width,editType:"calc"},LYe("marker.line")),gradient:sg.gradient,editType:"calc"},LYe("marker")),textfont:u0.textfont,textposition:u0.textposition,selected:u0.selected,unselected:u0.unselected,hoverinfo:Cx({},hKt.hoverinfo,{flags:["a","b","text","name"]}),hoveron:u0.hoveron,hovertemplate:dKt(),zorder:u0.zorder}});var FYe=ye((t2r,DYe)=>{"use strict";var IYe=Dr(),gKt=Sm(),B5=Ru(),mKt=$p(),yKt=R0(),RYe=J3(),_Kt=D0(),xKt=Ig(),bKt=M$();DYe.exports=function(t,r,n,i){function a(h,d){return IYe.coerce(t,r,bKt,h,d)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("text"),a("texttemplate"),a("hovertext");var u=l{"use strict";zYe.exports=function(t,r){var n={},i=r._carpet,a=i.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,l=Math.floor(a[1]),u=a[1]-l,c=i.evalxy([],o,l,s,u);return n.yLabel=c[1].toFixed(3),n}});var Y7=ye((i2r,qYe)=>{"use strict";qYe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var BYe=Eo(),wKt=F0(),TKt=Cm(),AKt=z0(),SKt=O0().calcMarkerSize,MKt=Y7();NYe.exports=function(t,r){var n=r._carpetTrace=MKt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){var i;r.xaxis=n.xaxis,r.yaxis=n.yaxis;var a=r._length,o=new Array(a),s,l,u=!1;for(i=0;i{"use strict";var EKt=iT(),VYe=ho(),CKt=So();GYe.exports=function(t,r,n,i){var a,o,s,l=n[0][0].carpet,u=VYe.getFromId(t,l.xaxis||"x"),c=VYe.getFromId(t,l.yaxis||"y"),f={xaxis:u,yaxis:c,plot:r.plot};for(a=0;a{"use strict";var kKt=sT(),LKt=Dr().fillText;jYe.exports=function(t,r,n,i){var a=kKt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index];o.a=f.a,o.b=f.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,d=h._carpet,v=h._module.formatLabels(f,h);o.yLabel=v.yLabel,delete o.text;var x=[];function b(E,A){var L;E.labelprefix&&E.labelprefix.length>0?L=E.labelprefix.replace(/ = $/,""):L=E._hovertitle,x.push(L+": "+A.toFixed(3)+E.labelsuffix)}if(!h.hovertemplate){var p=f.hi||h.hoverinfo,C=p.split("+");C.indexOf("all")!==-1&&(C=["a","b","text"]),C.indexOf("a")!==-1&&b(d.aaxis,f.a),C.indexOf("b")!==-1&&b(d.baxis,f.b),x.push("y: "+o.yLabel),C.indexOf("text")!==-1&&LKt(f,h,x),o.extraText=x.join("
")}return a}});var ZYe=ye((s2r,XYe)=>{"use strict";XYe.exports=function(t,r,n,i,a){var o=i[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var KYe=ye((l2r,YYe)=>{"use strict";YYe.exports={attributes:M$(),supplyDefaults:FYe(),colorbar:$d(),formatLabels:OYe(),calc:UYe(),plot:HYe(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:WYe(),selectPoints:lT(),eventData:ZYe(),moduleType:"trace",name:"scattercarpet",basePlotModule:vh(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var $Ye=ye((u2r,JYe)=>{"use strict";JYe.exports=KYe()});var E$=ye((c2r,QYe)=>{"use strict";var lg=ET(),g1=E4(),PKt=Tu(),IKt=Ao().extendFlat,ty=g1.contours;QYe.exports=IKt({carpet:{valType:"string",editType:"calc"},z:lg.z,a:lg.x,a0:lg.x0,da:lg.dx,b:lg.y,b0:lg.y0,db:lg.dy,text:lg.text,hovertext:lg.hovertext,transpose:lg.transpose,atype:lg.xtype,btype:lg.ytype,fillcolor:g1.fillcolor,autocontour:g1.autocontour,ncontours:g1.ncontours,contours:{type:ty.type,start:ty.start,end:ty.end,size:ty.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:ty.showlines,showlabels:ty.showlabels,labelfont:ty.labelfont,labelformat:ty.labelformat,operation:ty.operation,value:ty.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:g1.line.color,width:g1.line.width,dash:g1.line.dash,smoothing:g1.line.smoothing,editType:"plot"},zorder:g1.zorder},PKt("",{cLetter:"z",autoColorDflt:!1}))});var C$=ye((f2r,rKe)=>{"use strict";var eKe=Dr(),RKt=JI(),tKe=E$(),DKt=AG(),FKt=b8(),zKt=w8();rKe.exports=function(t,r,n,i){function a(u,c){return eKe.coerce(t,r,tKe,u,c)}function o(u){return eKe.coerce2(t,r,tKe,u)}if(a("carpet"),t.a&&t.b){var s=RKt(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?DKt(t,r,a,i,n,{hasHover:!1}):(FKt(t,r,a,o),zKt(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var oKe=ye((h2r,aKe)=>{"use strict";var OKt=gv(),iKe=Dr(),qKt=e8(),BKt=r8(),NKt=i8(),UKt=n8(),nKe=XV(),VKt=C$(),GKt=Y7(),HKt=hG();aKe.exports=function(t,r){var n=r._carpetTrace=GKt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){if(!r.a||!r.b){var i=t.data[n.index],a=t.data[r.index];a.a||(a.a=i.a),a.b||(a.b=i.b),VKt(a,r,r._defaultColor,t._fullLayout)}var o=jKt(t,r);return HKt(r,r._z),o}};function jKt(e,t){var r=t._carpetTrace,n=r.aaxis,i=r.baxis,a,o,s,l,u,c,f;n._minDtick=0,i._minDtick=0,iKe.isArray1D(t.z)&&qKt(t,n,i,"a","b",["z"]),a=t._a=t._a||t.a,l=t._b=t._b||t.b,a=a?n.makeCalcdata(t,"_a"):[],l=l?i.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,u=t.b0||0,c=t.db||1,f=t._z=BKt(t._z||t.z,t.transpose),t._emptypoints=UKt(f),NKt(f,t._emptypoints);var h=iKe.maxRowLength(f),d=t.xtype==="scaled"?"":a,v=nKe(t,d,o,s,h,n),x=t.ytype==="scaled"?"":l,b=nKe(t,x,u,c,f.length,i),p={a:v,b,z:f};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&OKt(e,t,{vals:f,containerStr:"",cLetter:"z"}),[p]}});var lKe=ye((d2r,sKe)=>{"use strict";var WKt=Dr().isArrayOrTypedArray;sKe.exports=function(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v,x,b,p=WKt(r)?"a":"b",C=p==="a"?e.aaxis:e.baxis,E=C.smoothing,A=p==="a"?e.a2i:e.b2j,L=p==="a"?r:n,_=p==="a"?n:r,k=p==="a"?t.a.length:t.b.length,M=p==="a"?t.b.length:t.a.length,g=Math.floor(p==="a"?e.b2j(_):e.a2i(_)),P=p==="a"?function(_e){return e.evalxy([],_e,g)}:function(_e){return e.evalxy([],g,_e)};E&&(o=Math.max(0,Math.min(M-2,g)),s=g-o,a=p==="a"?function(_e,Me){return e.dxydi([],_e,o,Me,s)}:function(_e,Me){return e.dxydj([],o,_e,s,Me)});var T=A(L[0]),z=A(L[1]),O=T0?Math.floor:Math.ceil,Z=O>0?Math.ceil:Math.floor,H=O>0?Math.min:Math.max,N=O>0?Math.max:Math.min,j=G(T+V),re=Z(z-V);c=P(T);var oe=[[c]];for(i=j;i*O{"use strict";var J7=Oa(),$7=w$(),dKe=T$(),ok=So(),m1=Dr(),XKt=vG(),ZKt=pG(),hw=S8(),K7=k4(),YKt=_G(),KKt=yG(),JKt=xG(),$Kt=Y7(),uKe=lKe();vKe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;m1.makeTraceGroups(i,n,"contour").each(function(s){var l=J7.select(this),u=s[0],c=u.trace,f=c._carpetTrace=$Kt(t,c),h=t.calcdata[f.index][0];if(!f.visible||f.visible==="legendonly")return;var d=u.a,v=u.b,x=c.contours,b=KKt(x,r,u),p=x.type==="constraint",C=x._operation,E=p?C==="="?"lines":"fill":x.coloring;function A(G){var Z=f.ab2xy(G[0],G[1],!0);return[a.c2p(Z[0]),o.c2p(Z[1])]}var L=[[d[0],v[v.length-1]],[d[d.length-1],v[v.length-1]],[d[d.length-1],v[0]],[d[0],v[0]]];XKt(b);var _=(d[d.length-1]-d[0])*1e-8,k=(v[v.length-1]-v[0])*1e-8;ZKt(b,_,k);var M=b;x.type==="constraint"&&(M=YKt(b,C)),QKt(b,A);var g,P,T,z,O=[];for(z=h.clipsegments.length-1;z>=0;z--)g=h.clipsegments[z],P=$7([],g.x,a.c2p),T=$7([],g.y,o.c2p),P.reverse(),T.reverse(),O.push(dKe(P,T,g.bicubic));var V="M"+O.join("L")+"Z";rJt(l,h.clipsegments,a,o,p,E),iJt(c,l,a,o,M,L,A,f,h,E,V),eJt(l,b,t,u,x,r,f),ok.setClipUrl(l,f._clipPathId,t)})};function QKt(e,t){var r,n,i,a,o,s,l,u,c;for(r=0;rb&&(n.max=b),n.len=n.max-n.min}function cKe(e,t,r){var n=e.getPointAtLength(t),i=e.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function fKe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function hKe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function rJt(e,t,r,n,i,a){var o,s,l,u,c=m1.ensureSingle(e,"g","contourbg"),f=c.selectAll("path").data(a==="fill"&&!i?[0]:[]);f.enter().append("path"),f.exit().remove();var h=[];for(u=0;u=0&&(d=P,x=b):Math.abs(h[1]-d[1])=0&&(d=P,x=b):m1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(x>=0)break;u+=M(h,d),h=d}if(x===t.edgepaths.length){m1.log("unclosed perimeter path");break}l=x,f=c.indexOf(l)===-1,f&&(l=c[0],u+=M(h,d)+"Z",h=null)}for(l=0;l{"use strict";gKe.exports={attributes:E$(),supplyDefaults:C$(),colorbar:C8(),calc:oKe(),plot:pKe(),style:E8(),moduleType:"trace",name:"contourcarpet",basePlotModule:vh(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var _Ke=ye((g2r,yKe)=>{"use strict";yKe.exports=mKe()});var e9=ye((m2r,AKe)=>{"use strict";var Q7=Dr().extendFlat,sk=pf(),xKe=df().axisHoverFormat,wKe=Pd().dash,aJt=i3(),TKe=GT(),oJt=TKe.INCREASING.COLOR,sJt=TKe.DECREASING.COLOR,k$=sk.line;function bKe(e){return{line:{color:Q7({},k$.color,{dflt:e}),width:k$.width,dash:wKe,editType:"style"},editType:"style"}}AKe.exports={xperiod:sk.xperiod,xperiod0:sk.xperiod0,xperiodalignment:sk.xperiodalignment,xhoverformat:xKe("x"),yhoverformat:xKe("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:Q7({},k$.width,{}),dash:Q7({},wKe,{}),editType:"style"},increasing:bKe(oJt),decreasing:bKe(sJt),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:Q7({},aJt.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:sk.zorder}});var L$=ye((y2r,SKe)=>{"use strict";var lJt=qa(),uJt=Dr();SKe.exports=function(t,r,n,i){var a=n("x"),o=n("open"),s=n("high"),l=n("low"),u=n("close");n("hoverlabel.split");var c=lJt.getComponentMethod("calendars","handleTraceDefaults");if(c(t,r,["x"],i),!!(o&&s&&l&&u)){var f=Math.min(o.length,s.length,l.length,u.length);return a&&(f=Math.min(f,uJt.minRowLength(a))),r._length=f,f}}});var CKe=ye((_2r,EKe)=>{"use strict";var cJt=Dr(),fJt=L$(),hJt=Pg(),dJt=e9();EKe.exports=function(t,r,n,i){function a(s,l){return cJt.coerce(t,r,dJt,s,l)}var o=fJt(t,r,a,i);if(!o){r.visible=!1;return}hJt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),MKe(t,r,a,"increasing"),MKe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function MKe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var P$=ye((x2r,LKe)=>{"use strict";var N5=Dr(),t9=N5._,r9=ho(),vJt=Rg(),lk=hs().BADNUM;function pJt(e,t){var r=r9.getFromId(e,t.xaxis),n=r9.getFromId(e,t.yaxis),i=mJt(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var l=kKe(e,t,o,s,n,gJt);return t._extremes[r._id]=r9.findExtremes(r,s,{vpad:a/2}),l.length?(N5.extendFlat(l[0].t,{wHover:a/2,tickLen:i}),l):[{t:{empty:!0}}]}function gJt(e,t,r,n){return{o:e,h:t,l:r,c:n}}function kKe(e,t,r,n,i,a){for(var o=i.makeCalcdata(t,"open"),s=i.makeCalcdata(t,"high"),l=i.makeCalcdata(t,"low"),u=i.makeCalcdata(t,"close"),c=N5.isArrayOrTypedArray(t.text),f=N5.isArrayOrTypedArray(t.hovertext),h=!0,d=null,v=!!t.xperiodalignment,x=[],b=0;bd):h=L>C,d=L;var _=a(C,E,A,L);_.pos=p,_.yc=(C+L)/2,_.i=b,_.dir=h?"increasing":"decreasing",_.x=_.pos,_.y=[A,E],v&&(_.orig_p=r[b]),c&&(_.tx=t.text[b]),f&&(_.htx=t.hovertext[b]),x.push(_)}else x.push({pos:p,empty:!0})}return t._extremes[i._id]=r9.findExtremes(i,N5.concat(l,s),{padded:!0}),x.length&&(x[0].t={labels:{open:t9(e,"open:")+" ",high:t9(e,"high:")+" ",low:t9(e,"low:")+" ",close:t9(e,"close:")+" "}}),x}function mJt(e,t,r){var n=r._minDiff;if(!n){var i=e._fullData,a=[];n=1/0;var o;for(o=0;o{"use strict";var yJt=Oa(),PKe=Dr();IKe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;PKe.makeTraceGroups(i,n,"trace ohlc").each(function(l){var u=yJt.select(this),c=l[0],f=c.t,h=c.trace;if(h.visible!==!0||f.empty){u.remove();return}var d=f.tickLen,v=u.selectAll("path").data(PKe.identity);v.enter().append("path"),v.exit().remove(),v.attr("d",function(x){if(x.empty)return"M0,0Z";var b=o.c2p(x.pos-d,!0),p=o.c2p(x.pos+d,!0),C=s?(b+p)/2:o.c2p(x.pos,!0),E=a.c2p(x.o,!0),A=a.c2p(x.h,!0),L=a.c2p(x.l,!0),_=a.c2p(x.c,!0);return"M"+b+","+E+"H"+C+"M"+C+","+A+"V"+L+"M"+p+","+_+"H"+C})})}});var FKe=ye((w2r,DKe)=>{"use strict";var I$=Oa(),_Jt=So(),xJt=Ca();DKe.exports=function(t,r,n){var i=n||I$.select(t).selectAll("g.ohlclayer").selectAll("g.trace");i.style("opacity",function(a){return a[0].trace.opacity}),i.each(function(a){var o=a[0].trace;I$.select(this).selectAll("path").each(function(s){if(!s.empty){var l=o[s.dir].line;I$.select(this).style("fill","none").call(xJt.stroke,l.color).call(_Jt.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var D$=ye((T2r,NKe)=>{"use strict";var R$=ho(),bJt=Dr(),i9=vf(),wJt=Ca(),TJt=Dr().fillText,zKe=GT(),AJt={increasing:zKe.INCREASING.SYMBOL,decreasing:zKe.DECREASING.SYMBOL};function SJt(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?qKe(e,t,r,n):BKe(e,t,r,n)}function OKe(e,t,r,n){var i=e.cd,a=e.xa,o=i[0].trace,s=i[0].t,l=o.type,u=l==="ohlc"?"l":"min",c=l==="ohlc"?"h":"max",f,h,d=s.bPos||0,v=function(P){return P.pos+d-t},x=s.bdPos||s.tickLen,b=s.wHover,p=Math.min(1,x/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));f=e.maxHoverDistance-p,h=e.maxSpikeDistance-p;function C(P){var T=v(P);return i9.inbox(T-b,T+b,f)}function E(P){var T=P[u],z=P[c];return T===z||i9.inbox(T-r,z-r,f)}function A(P){return(C(P)+E(P))/2}var L=i9.getDistanceFunction(n,C,E,A);if(i9.getClosest(i,L,e),e.index===!1)return null;var _=i[e.index];if(_.empty)return null;var k=_.dir,M=o[k],g=M.line.color;return wJt.opacity(g)&&M.line.width?e.color=g:e.color=M.fillcolor,e.x0=a.c2p(_.pos+d-x,!0),e.x1=a.c2p(_.pos+d+x,!0),e.xLabelVal=_.orig_p!==void 0?_.orig_p:_.pos,e.spikeDistance=A(_)*h/f,e.xSpike=a.c2p(_.pos,!0),e}function qKe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=[],u=OKe(e,t,r,n);if(!u)return[];var c=u.index,f=i[c],h=f.hi||o.hoverinfo,d=h.split("+"),v=h==="all",x=v||d.indexOf("y")!==-1;if(!x)return[];for(var b=["high","open","close","low"],p={},C=0;C"+s.labels[E]+R$.hoverLabelText(a,A,o.yhoverformat)):(_=bJt.extendFlat({},u),_.y0=_.y1=L,_.yLabelVal=A,_.yLabel=s.labels[E]+R$.hoverLabelText(a,A,o.yhoverformat),_.name="",l.push(_),p[A]=_)}return l}function BKe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=OKe(e,t,r,n);if(!l)return[];var u=l.index,c=i[u],f=l.index=c.i,h=c.dir;function d(A){return s.labels[A]+R$.hoverLabelText(a,o[A][f],o.yhoverformat)}var v=c.hi||o.hoverinfo,x=v.split("+"),b=v==="all",p=b||x.indexOf("y")!==-1,C=b||x.indexOf("text")!==-1,E=p?[d("open"),d("high"),d("low"),d("close")+" "+AJt[h]]:[];return C&&TJt(c,o,E),l.extraText=E.join("
"),l.y0=l.y1=a.c2p(c.yc,!0),[l]}NKe.exports={hoverPoints:SJt,hoverSplit:qKe,hoverOnPoints:BKe}});var F$=ye((A2r,UKe)=>{"use strict";UKe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l=n[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";VKe.exports={moduleType:"trace",name:"ohlc",basePlotModule:vh(),categories:["cartesian","svg","showLegend"],meta:{},attributes:e9(),supplyDefaults:CKe(),calc:P$().calc,plot:RKe(),style:FKe(),hoverPoints:D$().hoverPoints,selectPoints:F$()}});var jKe=ye((M2r,HKe)=>{"use strict";HKe.exports=GKe()});var O$=ye((E2r,ZKe)=>{"use strict";var z$=Dr().extendFlat,WKe=df().axisHoverFormat,c0=e9(),U5=y4();function XKe(e){return{line:{color:z$({},U5.line.color,{dflt:e}),width:U5.line.width,editType:"style"},fillcolor:U5.fillcolor,editType:"style"}}ZKe.exports={xperiod:c0.xperiod,xperiod0:c0.xperiod0,xperiodalignment:c0.xperiodalignment,xhoverformat:WKe("x"),yhoverformat:WKe("y"),x:c0.x,open:c0.open,high:c0.high,low:c0.low,close:c0.close,line:{width:z$({},U5.line.width,{}),editType:"style"},increasing:XKe(c0.increasing.line.color.dflt),decreasing:XKe(c0.decreasing.line.color.dflt),text:c0.text,hovertext:c0.hovertext,whiskerwidth:z$({},U5.whiskerwidth,{dflt:0}),hoverlabel:c0.hoverlabel,zorder:U5.zorder}});var JKe=ye((C2r,KKe)=>{"use strict";var MJt=Dr(),EJt=Ca(),CJt=L$(),kJt=Pg(),LJt=O$();KKe.exports=function(t,r,n,i){function a(s,l){return MJt.coerce(t,r,LJt,s,l)}var o=CJt(t,r,a,i);if(!o){r.visible=!1;return}kJt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),YKe(t,r,a,"increasing"),YKe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function YKe(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",EJt.addOpacity(i,.5))}});var tJe=ye((k2r,eJe)=>{"use strict";var $Ke=Dr(),QKe=ho(),PJt=Rg(),IJt=P$().calcCommon;eJe.exports=function(e,t){var r=e._fullLayout,n=QKe.getFromId(e,t.xaxis),i=QKe.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=PJt(t,n,"x",a).vals,s=IJt(e,t,a,o,i,RJt);return s.length?($Ke.extendFlat(s[0].t,{num:r._numBoxes,dPos:$Ke.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function RJt(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var iJe=ye((L2r,rJe)=>{"use strict";rJe.exports={moduleType:"trace",name:"candlestick",basePlotModule:vh(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:O$(),layoutAttributes:_4(),supplyLayoutDefaults:jI().supplyLayoutDefaults,crossTraceCalc:XI().crossTraceCalc,supplyDefaults:JKe(),calc:tJe(),plot:ZI().plot,layerName:"boxlayer",style:YI().style,hoverPoints:D$().hoverPoints,selectPoints:F$()}});var aJe=ye((P2r,nJe)=>{"use strict";nJe.exports=iJe()});var B$=ye((I2r,oJe)=>{"use strict";var a9=Dr(),DJt=ym(),n9=a9.deg2rad,q$=a9.rad2deg;oJe.exports=function(t,r,n){switch(DJt(t,n),t._id){case"x":case"radialaxis":FJt(t,r);break;case"angularaxis":qJt(t,r);break}};function FJt(e,t){var r=t._subplot;e.setGeometry=function(){var n=e._rl[0],i=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(i-n),s=a/o,l=n>i?function(u){return u<=0}:function(u){return u>=0};e.c2g=function(u){var c=e.c2l(u)-n;return(l(c)?c:0)+s},e.g2c=function(u){return e.l2c(u+n-s)},e.g2p=function(u){return u*o},e.c2p=function(u){return e.g2p(e.c2g(u))}}}function zJt(e,t){return t==="degrees"?n9(e):e}function OJt(e,t){return t==="degrees"?q$(e):e}function qJt(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return zJt(n(a),o)},e.c2d=function(a,o){return i(OJt(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],l=a._length,u,c,f=function(b){return e.d2c(b,a.thetaunit)};if(s)for(u=new Array(l),c=0;c{"use strict";sJe.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}});var l9=ye((D2r,hJe)=>{"use strict";var dw=Dr(),lJe=MM().tester,N$=dw.findIndexOfMin,cJe=dw.isAngleInsideSector,BJt=dw.angleDelta,uJe=dw.angleDist;function NJt(e,t,r,n,i){if(!cJe(t,n))return!1;var a,o;r[0]0?o:1/0},n=N$(t,r),i=dw.mod(n+1,t.length);return[t[n],t[i]]}function s9(e){return Math.abs(e)>1e-10?e:0}function U$(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function dJe(e){return e<0?-1:e>0?1:0}function G5(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var n=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/n,2*r/n]}function H5(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function vJe(e,t){return t*e.radius}function ZJt(e,t,r,n){var i=H5(e,G5([r,t])),a=i[0],o=i[1],s=H5(e,G5([n,t])),l=s[0],u=s[1];if(t===0)return["M"+a+","+o,"L"+l+","+u].join(" ");var c=vJe(e,1/Math.abs(t));return["M"+a+","+o,"A"+c+","+c+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function YJt(e,t,r,n){var i=vJe(e,1/(t+1)),a=H5(e,G5([t,r])),o=a[0],s=a[1],l=H5(e,G5([t,n])),u=l[0],c=l[1];if(dJe(r)!==dJe(n)){var f=H5(e,G5([t,0])),h=f[0],d=f[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var vw=Oa(),KJt=cd(),gw=qa(),Xc=Dr(),ry=Xc.strRotate,xd=Xc.strTranslate,G$=Ca(),uk=So(),JJt=Mc(),hp=ho(),$Jt=ym(),QJt=B$(),e$t=wg().doAutoRange,y1=qN(),f9=yv(),gJe=vf(),t$t=Mb(),r$t=zf().prepSelect,i$t=zf().selectOnClick,H$=zf().clearOutline,mJe=Tg(),yJe=hM(),_Je=xM().redrawReglTraces,n$t=Kh().MID_SHIFT,kx=o9(),_1=l9(),h9=V$(),u9=h9.smith,a$t=h9.reactanceArc,o$t=h9.resistanceArc,c9=h9.smithTransform,s$t=Xc._,xJe=Xc.mod,Lx=Xc.deg2rad,pw=Xc.rad2deg;function bJe(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=e._fullLayout,i="clip"+n._uid+t;this.clipIds.forTraces=i+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var Nd=bJe.prototype;AJe.exports=function(t,r,n){return new bJe(t,r,n)};Nd.plot=function(e,t){for(var r=this,n=t[r.id],i=!1,a=0;ab?(p=u,C=u*b,L=(c-C)/i.h/2,E=[s[0],s[1]],A=[l[0]+L,l[1]-L]):(p=c/b,C=c,L=(u-p)/i.w/2,E=[s[0]+L,s[1]-L],A=[l[0],l[1]]),r.xLength2=p,r.yLength2=C,r.xDomain2=E,r.yDomain2=A;var _=r.xOffset2=i.l+i.w*E[0],k=r.yOffset2=i.t+i.h*(1-A[1]),M=r.radius=p/d,g=r.innerRadius=r.getHole(t)*M,P=r.cx=_-M*h[0],T=r.cy=k+M*h[3],z=r.cxx=P-_,O=r.cyy=T-k,V=a.side,G;V==="counterclockwise"?(G=V,V="top"):V==="clockwise"&&(G=V,V="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:V,_trueSide:G,domain:[g/i.w,M/i.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:E}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:A});var Z=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",Z).attr("transform",xd(z,O)),n.frontplot.attr("transform",xd(_,k)).call(uk.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",Z).attr("transform",xd(P,T)).call(G$.fill,t.bgcolor)};Nd.mockAxis=function(e,t,r,n){var i=Xc.extendFlat({},r,n);return QJt(i,t,e),i};Nd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Xc.extendFlat({type:"linear"},r);$Jt(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var l=n.sectorBBox,u=s[a],c=n.radialAxis._rl,f=(c[1]-c[0])/(1-n.getHole(t));o.range=[l[u[0]]*f,l[u[1]]*f]},o.isPtWithinRange=a==="x"&&!i?function(l){return n.isPtInside(l)}:function(){return!0},o.setRange(),o.setScale(),o};Nd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);e$t(n,i);var o=i.range;if(a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")],i.minallowed!==void 0){var s=i.r2l(i.minallowed);i._rl[0]>i._rl[1]?i._rl[1]=Math.max(i._rl[1],s):i._rl[0]=Math.max(i._rl[0],s)}if(i.maxallowed!==void 0){var l=i.r2l(i.maxallowed);i._rl[0]90&&c<=270&&(f.tickangle=180);var v=d?function(M){var g=c9(r,u9([M.x,0]));return xd(g[0]-s,g[1]-l)}:function(M){return xd(f.l2p(M.x)+o,0)},x=d?function(M){return o$t(r,M.x,-1/0,1/0)}:function(M){return r.pathArc(f.r2p(M.x)+o)},b=wJe(u);if(r.radialTickLayout!==b&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=b),h){f.setScale();var p=0,C=d?(f.tickvals||[]).filter(function(M){return M>=0}).map(function(M){return hp.tickText(f,M,!0,!1)}):hp.calcTicks(f),E=d?C:hp.clipEnds(f,C),A=hp.getTickSigns(f)[2];d&&((f.ticks==="top"&&f.side==="bottom"||f.ticks==="bottom"&&f.side==="top")&&(A=-A),f.ticks==="top"&&f.side==="top"&&(p=-f.ticklen),f.ticks==="bottom"&&f.side==="bottom"&&(p=f.ticklen)),hp.drawTicks(n,f,{vals:C,layer:i["radial-axis"],path:hp.makeTickPath(f,0,A),transFn:v,crisp:!1}),hp.drawGrid(n,f,{vals:E,layer:i["radial-grid"],path:x,transFn:Xc.noop,crisp:!1}),hp.drawLabels(n,f,{vals:C,layer:i["radial-axis"],transFn:v,labelFns:hp.makeLabelFns(f,p)})}var L=r.radialAxisAngle=r.vangles?pw(TJe(Lx(u.angle),r.vangles)):u.angle,_=xd(s,l),k=_+ry(-L);ck(i["radial-axis"],h&&(u.showticklabels||u.ticks),{transform:k}),ck(i["radial-grid"],h&&u.showgrid,{transform:d?"":_}),ck(i["radial-line"].select("line"),h&&u.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:k}).attr("stroke-width",u.linewidth).call(G$.stroke,u.linecolor)};Nd.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,l=n.getRadial(t),u=n.id+"title",c=0;if(l.title){var f=uk.bBox(n.layers["radial-axis"].node()).height,h=l.title.font.size,d=l.side;c=d==="top"?h:d==="counterclockwise"?-(f+h*.4):f+h*.8}var v=r!==void 0?r:n.radialAxisAngle,x=Lx(v),b=Math.cos(x),p=Math.sin(x),C=o+a/2*b+c*p,E=s-a/2*p+c*b;n.layers["radial-axis-title"]=t$t.draw(i,u,{propContainer:l,propName:n.id+".radialaxis.title",placeholder:s$t(i,"Click to enter radial axis title"),attributes:{x:C,y:E,"text-anchor":"middle"},transform:{rotate:-v}})}};Nd.updateAngularAxis=function(e,t){var r=this,n=r.gd,i=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,l=r.cy,u=r.getAngular(t),c=r.angularAxis,f=r.isSmith;f||(r.fillViewInitialKey("angularaxis.rotation",u.rotation),c.setGeometry(),c.setScale());var h=f?function(g){var P=c9(r,u9([0,g.x]));return Math.atan2(P[0]-s,P[1]-l)-Math.PI/2}:function(g){return c.t2g(g.x)};c.type==="linear"&&c.thetaunit==="radians"&&(c.tick0=pw(c.tick0),c.dtick=pw(c.dtick));var d=function(g){return xd(s+a*Math.cos(g),l-a*Math.sin(g))},v=f?function(g){var P=c9(r,u9([0,g.x]));return xd(P[0],P[1])}:function(g){return d(h(g))},x=f?function(g){var P=c9(r,u9([0,g.x])),T=Math.atan2(P[0]-s,P[1]-l)-Math.PI/2;return xd(P[0],P[1])+ry(-pw(T))}:function(g){var P=h(g);return d(P)+ry(-pw(P))},b=f?function(g){return a$t(r,g.x,0,1/0)}:function(g){var P=h(g),T=Math.cos(P),z=Math.sin(P);return"M"+[s+o*T,l-o*z]+"L"+[s+a*T,l-a*z]},p=hp.makeLabelFns(c,0),C=p.labelStandoff,E={};E.xFn=function(g){var P=h(g);return Math.cos(P)*C},E.yFn=function(g){var P=h(g),T=Math.sin(P)>0?.2:1;return-Math.sin(P)*(C+g.fontSize*T)+Math.abs(Math.cos(P))*(g.fontSize*n$t)},E.anchorFn=function(g){var P=h(g),T=Math.cos(P);return Math.abs(T)<.1?"middle":T>0?"start":"end"},E.heightFn=function(g,P,T){var z=h(g);return-.5*(1+Math.sin(z))*T};var A=wJe(u);r.angularTickLayout!==A&&(i["angular-axis"].selectAll("."+c._id+"tick").remove(),r.angularTickLayout=A);var L=f?[1/0].concat(c.tickvals||[]).map(function(g){return hp.tickText(c,g,!0,!1)}):hp.calcTicks(c);f&&(L[0].text="\u221E",L[0].fontSize*=1.75);var _;if(t.gridshape==="linear"?(_=L.map(h),Xc.angleDelta(_[0],_[1])<0&&(_=_.slice().reverse())):_=null,r.vangles=_,c.type==="category"&&(L=L.filter(function(g){return Xc.isAngleInsideSector(h(g),r.sectorInRad)})),c.visible){var k=c.ticks==="inside"?-1:1,M=(c.linewidth||1)/2;hp.drawTicks(n,c,{vals:L,layer:i["angular-axis"],path:"M"+k*M+",0h"+k*c.ticklen,transFn:x,crisp:!1}),hp.drawGrid(n,c,{vals:L,layer:i["angular-grid"],path:b,transFn:Xc.noop,crisp:!1}),hp.drawLabels(n,c,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:v,labelFns:E})}ck(i["angular-line"].select("path"),u.showline,{d:r.pathSubplot(),transform:xd(s,l)}).attr("stroke-width",u.linewidth).call(G$.stroke,u.linecolor)};Nd.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};Nd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=kx.MINZOOM,s=kx.OFFEDGE,l=t.radius,u=t.innerRadius,c=t.cx,f=t.cy,h=t.cxx,d=t.cyy,v=t.sectorInRad,x=t.vangles,b=t.radialAxis,p=_1.clampTiny,C=_1.findXYatLength,E=_1.findEnclosingVertexAngles,A=kx.cornerHalfWidth,L=kx.cornerLen/2,_,k,M=y1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");vw.select(M).attr("d",t.pathSubplot()).attr("transform",xd(c,f)),M.onmousemove=function(ce){gJe.hover(n,ce,t.id),n._fullLayout._lasthover=M,n._fullLayout._hoversubplot=t.id},M.onmouseout=function(ce){n._dragging||f9.unhover(n,ce)};var g={element:M,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,T,z,O,V,G,Z,H,N;function j(ce,Ze){return Math.sqrt(ce*ce+Ze*Ze)}function re(ce,Ze){return j(ce-h,Ze-d)}function oe(ce,Ze){return Math.atan2(d-Ze,ce-h)}function _e(ce,Ze){return[ce*Math.cos(Ze),ce*Math.sin(-Ze)]}function Me(ce,Ze){if(ce===0)return t.pathSector(2*A);var ct=L/ce,pt=Ze-ct,Wt=Ze+ct,st=Math.max(0,Math.min(ce,l)),lt=st-A,Gt=st+A;return"M"+_e(lt,pt)+"A"+[lt,lt]+" 0,0,0 "+_e(lt,Wt)+"L"+_e(Gt,Wt)+"A"+[Gt,Gt]+" 0,0,1 "+_e(Gt,pt)+"Z"}function ke(ce,Ze,ct){if(ce===0)return t.pathSector(2*A);var pt=_e(ce,Ze),Wt=_e(ce,ct),st=p((pt[0]+Wt[0])/2),lt=p((pt[1]+Wt[1])/2),Gt,Nt;if(st&<){var $t=lt/st,sr=-1/$t,wr=C(A,$t,st,lt);Gt=C(L,sr,wr[0][0],wr[0][1]),Nt=C(L,sr,wr[1][0],wr[1][1])}else{var ur,Qe;lt?(ur=L,Qe=A):(ur=A,Qe=L),Gt=[[st-ur,lt-Qe],[st+ur,lt-Qe]],Nt=[[st-ur,lt+Qe],[st+ur,lt+Qe]]}return"M"+Gt.join("L")+"L"+Nt.reverse().join("L")+"Z"}function me(){z=null,O=null,V=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];Z=KJt(ce.bgcolor).getLuminance(),H=y1.makeZoombox(a,Z,c,f,V),H.attr("fill-rule","evenodd"),N=y1.makeCorners(a,c,f),H$(n)}function ie(ce,Ze){return Ze=Math.max(Math.min(Ze,l),u),ceo?(ce-1&&ce===1&&i$t(Ze,n,[t.xaxis],[t.yaxis],t.id,g),ct.indexOf("event")>-1&&gJe.click(n,Ze,t.id)}g.prepFn=function(ce,Ze,ct){var pt=n._fullLayout.dragmode,Wt=M.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var st=n._fullLayout._invTransform;_=n._fullLayout._invScaleX,k=n._fullLayout._invScaleY;var lt=Xc.apply3DTransform(st)(Ze-Wt.left,ct-Wt.top);if(P=lt[0],T=lt[1],x){var Gt=_1.findPolygonOffset(l,v[0],v[1],x);P+=h+Gt[0],T+=d+Gt[1]}switch(pt){case"zoom":g.clickFn=Fe,r||(x?g.moveFn=De:g.moveFn=Le,g.doneFn=Pe,me(ce,Ze,ct));break;case"select":case"lasso":r$t(ce,Ze,ct,g,pt);break}},f9.init(g)};Nd.updateRadialDrag=function(e,t,r){var n=this,i=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,l=n.cx,u=n.cy,c=n.radialAxis,f=kx.radialDragBoxSize,h=f/2;if(!c.visible)return;var d=Lx(n.radialAxisAngle),v=c._rl,x=v[0],b=v[1],p=v[r],C=.75*(v[1]-v[0])/(1-n.getHole(t))/o,E,A,L;r?(E=l+(o+h)*Math.cos(d),A=u-(o+h)*Math.sin(d),L="radialdrag"):(E=l+(s-h)*Math.cos(d),A=u-(s-h)*Math.sin(d),L="radialdrag-inner");var _=y1.makeRectDragger(a,L,"crosshair",-h,-h,f,f),k={element:_,gd:i};e.dragmode===!1&&(k.dragmode=!1),ck(vw.select(_),c.visible&&s0!=(r?P>x:P=90||i>90&&a>=450?d=1:s<=0&&u<=0?d=0:d=Math.max(s,u),i<=180&&a>=180||i>180&&a>=540?c=-1:o>=0&&l>=0?c=0:c=Math.min(o,l),i<=270&&a>=270||i>270&&a>=630?f=-1:s>=0&&u>=0?f=0:f=Math.min(s,u),a>=360?h=1:o<=0&&l<=0?h=0:h=Math.max(o,l),[c,f,h,d]}function TJe(e,t){var r=function(i){return Xc.angleDist(e,i)},n=Xc.findIndexOfMin(t,r);return t[n]}function ck(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var W$=ye((O2r,LJe)=>{"use strict";var u$t=Eh(),ss=Rd(),c$t=kc().attributes,f0=Dr().extendFlat,SJe=mc().overrideAll,MJe=SJe({color:ss.color,showline:f0({},ss.showline,{dflt:!0}),linecolor:ss.linecolor,linewidth:ss.linewidth,showgrid:f0({},ss.showgrid,{dflt:!0}),gridcolor:ss.gridcolor,gridwidth:ss.gridwidth,griddash:ss.griddash},"plot","from-root"),EJe=SJe({tickmode:ss.minor.tickmode,nticks:ss.nticks,tick0:ss.tick0,dtick:ss.dtick,tickvals:ss.tickvals,ticktext:ss.ticktext,ticks:ss.ticks,ticklen:ss.ticklen,tickwidth:ss.tickwidth,tickcolor:ss.tickcolor,ticklabelstep:ss.ticklabelstep,showticklabels:ss.showticklabels,labelalias:ss.labelalias,minorloglabels:ss.minorloglabels,showtickprefix:ss.showtickprefix,tickprefix:ss.tickprefix,showticksuffix:ss.showticksuffix,ticksuffix:ss.ticksuffix,showexponent:ss.showexponent,exponentformat:ss.exponentformat,minexponent:ss.minexponent,separatethousands:ss.separatethousands,tickfont:ss.tickfont,tickangle:ss.tickangle,tickformat:ss.tickformat,tickformatstops:ss.tickformatstops,layer:ss.layer},"plot","from-root"),CJe={visible:f0({},ss.visible,{dflt:!0}),type:f0({},ss.type,{values:["-","linear","log","date","category"]}),autotypenumbers:ss.autotypenumbers,autorangeoptions:{minallowed:ss.autorangeoptions.minallowed,maxallowed:ss.autorangeoptions.maxallowed,clipmin:ss.autorangeoptions.clipmin,clipmax:ss.autorangeoptions.clipmax,include:ss.autorangeoptions.include,editType:"plot"},autorange:f0({},ss.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:f0({},ss.minallowed,{editType:"plot"}),maxallowed:f0({},ss.maxallowed,{editType:"plot"}),range:f0({},ss.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:ss.categoryorder,categoryarray:ss.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:ss.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:f0({},ss.title.text,{editType:"plot",dflt:""}),font:f0({},ss.title.font,{editType:"plot"}),editType:"plot"},hoverformat:ss.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(CJe,MJe,EJe);var kJe={visible:f0({},ss.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:ss.autotypenumbers,categoryorder:ss.categoryorder,categoryarray:ss.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:ss.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(kJe,MJe,EJe);LJe.exports={domain:c$t({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:u$t.background},radialaxis:CJe,angularaxis:kJe,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var DJe=ye((q2r,RJe)=>{"use strict";var d9=Dr(),f$t=Ca(),h$t=pl(),d$t=C_(),v$t=Id().getSubplotData,p$t=xb(),g$t=T3(),m$t=e_(),y$t=t_(),_$t=iI(),x$t=QM(),b$t=gB(),w$t=L3(),IJe=W$(),T$t=B$(),v9=o9(),PJe=v9.axisNames;function A$t(e,t,r,n){var i=r("bgcolor");n.bgColor=f$t.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=v$t(n.fullData,v9.name,n.id),s=n.layoutOut,l;function u(H,N){return r(l+"."+H,N)}for(var c=0;c{"use strict";var M$t=Id().getSubplotCalcData,E$t=Dr().counterRegex,C$t=j$(),zJe=o9(),OJe=zJe.attr,mw=zJe.name,FJe=E$t(mw),qJe={};qJe[OJe]={valType:"subplotid",dflt:mw,editType:"calc"};function k$t(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[mw],i=0;i{"use strict";var P$t=Qo().hovertemplateAttrs,I$t=Qo().texttemplateAttrs,g9=Ao().extendFlat,R$t=Eg(),h0=pf(),D$t=Gl(),j5=h0.line;NJe.exports={mode:h0.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:h0.text,texttemplate:I$t({editType:"plot"},{keys:["r","theta","text"]}),hovertext:h0.hovertext,line:{color:j5.color,width:j5.width,dash:j5.dash,backoff:j5.backoff,shape:g9({},j5.shape,{values:["linear","spline"]}),smoothing:j5.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:g9({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:g9({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:R$t(),hoverinfo:g9({},D$t.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:P$t(),selected:h0.selected,unselected:h0.unselected}});var y9=ye((U2r,GJe)=>{"use strict";var m9=Dr(),W5=Ru(),F$t=$p(),z$t=R0(),UJe=J3(),O$t=D0(),q$t=Ig(),B$t=Sm().PTS_LINESONLY,N$t=fk();function U$t(e,t,r,n){function i(s,l){return m9.coerce(e,t,N$t,s,l)}var a=VJe(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var V$t=Dr(),HJe=ho();jJe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=n[r.subplot],o=a.radialaxis,s=a.angularaxis);var l=o.c2l(t.r);i.rLabel=HJe.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?V$t.rad2deg(t.theta):t.theta;return i.thetaLabel=HJe.tickText(s,u,!0).text,i}});var ZJe=ye((G2r,XJe)=>{"use strict";var WJe=Eo(),G$t=hs().BADNUM,H$t=ho(),j$t=F0(),W$t=Cm(),X$t=z0(),Z$t=O0().calcMarkerSize;XJe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=a.makeCalcdata(r,"r"),l=o.makeCalcdata(r,"theta"),u=r._length,c=new Array(u),f=0;f{"use strict";var Y$t=iT(),YJe=hs().BADNUM;KJe.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=r.radialAxis,u=r.angularAxis,c=0;c{"use strict";var K$t=sT();function J$t(e,t,r,n){var i=K$t(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,$Je(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function $Je(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["r","theta","text"]),f.indexOf("r")!==-1&&c(i,n.rLabel),f.indexOf("theta")!==-1&&c(a,n.thetaLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}QJe.exports={hoverPoints:J$t,makeHoverPointText:$Je}});var t$e=ye((W2r,e$e)=>{"use strict";e$e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:p9(),categories:["polar","symbols","showLegend","scatter-like"],attributes:fk(),supplyDefaults:y9().supplyDefaults,colorbar:$d(),formatLabels:_9(),calc:ZJe(),plot:JJe(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:x9().hoverPoints,selectPoints:lT(),meta:{}}});var i$e=ye((X2r,r$e)=>{"use strict";r$e.exports=t$e()});var X$=ye((Z2r,n$e)=>{"use strict";var Up=fk(),x1=sC(),$$t=Qo().texttemplateAttrs;n$e.exports={mode:Up.mode,r:Up.r,theta:Up.theta,r0:Up.r0,dr:Up.dr,theta0:Up.theta0,dtheta:Up.dtheta,thetaunit:Up.thetaunit,text:Up.text,texttemplate:$$t({editType:"plot"},{keys:["r","theta","text"]}),hovertext:Up.hovertext,hovertemplate:Up.hovertemplate,line:{color:x1.line.color,width:x1.line.width,dash:x1.line.dash,editType:"calc"},connectgaps:x1.connectgaps,marker:x1.marker,fill:x1.fill,fillcolor:x1.fillcolor,textposition:x1.textposition,textfont:x1.textfont,hoverinfo:Up.hoverinfo,selected:Up.selected,unselected:Up.unselected}});var s$e=ye((Y2r,o$e)=>{"use strict";var a$e=Dr(),Z$=Ru(),Q$t=y9().handleRThetaDefaults,eQt=$p(),tQt=R0(),rQt=D0(),iQt=Ig(),nQt=Sm().PTS_LINESONLY,aQt=X$();o$e.exports=function(t,r,n,i){function a(s,l){return a$e.coerce(t,r,aQt,s,l)}var o=Q$t(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var oQt=_9();l$e.exports=function(t,r,n){var i=t.i;return"r"in t||(t.r=r._r[i]),"theta"in t||(t.theta=r._theta[i]),oQt(t,r,n)}});var f$e=ye((J2r,c$e)=>{"use strict";var sQt=F0(),lQt=O0().calcMarkerSize,uQt=Y2(),cQt=ho(),fQt=ox().TOO_MANY_POINTS;c$e.exports=function(t,r){var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=r._r=a.makeCalcdata(r,"r"),l=r._theta=o.makeCalcdata(r,"theta"),u=r._length,c={};u{"use strict";var hQt=qF(),dQt=x9().makeHoverPointText;function vQt(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,l=hQt.hoverPoints(e,t,r,n);if(!(!l||l[0].index===!1)){var u=l[0];if(u.index===void 0)return l;var c=e.subplot,f=u.cd[u.index],h=u.trace;if(f.r=o[u.index],f.theta=s[u.index],!!c.isPtInside(f))return u.xLabelVal=void 0,u.yLabelVal=void 0,dQt(f,h,c,u),l}}h$e.exports={hoverPoints:vQt}});var p$e=ye((Q2r,v$e)=>{"use strict";v$e.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:p9(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:X$(),supplyDefaults:s$e(),colorbar:$d(),formatLabels:u$e(),calc:f$e(),hoverPoints:d$e().hoverPoints,selectPoints:oY(),meta:{}}});var g$e=ye((ewr,Y$)=>{"use strict";var pQt=UF(),gQt=Eo(),mQt=cK(),yQt=iY(),b9=Y2(),w9=Dr(),_Qt=ox().TOO_MANY_POINTS,xQt={};Y$.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=yQt(t,r);return n.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var l=s[0],u=l.trace,c=l.t,f=u._length,h=c.r,d=c.theta,v=c.opts,x,b=h.slice(),p=d.slice();for(x=0;x=_Qt&&(v.marker.cluster=c.tree),v.marker&&(v.markerSel.positions=v.markerUnsel.positions=v.marker.positions=C),v.line&&C.length>1&&w9.extendFlat(v.line,b9.linePositions(t,u,C)),v.text&&(w9.extendFlat(v.text,{positions:C},b9.textPosition(t,u,v.text,v.marker)),w9.extendFlat(v.textSel,{positions:C},b9.textPosition(t,u,v.text,v.markerSel)),w9.extendFlat(v.textUnsel,{positions:C},b9.textPosition(t,u,v.text,v.markerUnsel))),v.fill&&!o.fill2d&&(o.fill2d=!0),v.marker&&!o.scatter2d&&(o.scatter2d=!0),v.line&&!o.line2d&&(o.line2d=!0),v.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(v.line),o.fillOptions.push(v.fill),o.markerOptions.push(v.marker),o.markerSelectedOptions.push(v.markerSel),o.markerUnselectedOptions.push(v.markerUnsel),o.textOptions.push(v.text),o.textSelectedOptions.push(v.textSel),o.textUnselectedOptions.push(v.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),c.x=E,c.y=A,c.rawx=E,c.rawy=A,c.r=h,c.theta=d,c.positions=C,c._scene=o,c.index=o.count,o.count++}}),mQt(t,r,n)}};Y$.exports.reglPrecompiled=xQt});var _$e=ye((twr,y$e)=>{"use strict";var m$e=p$e();m$e.plot=g$e();y$e.exports=m$e});var b$e=ye((rwr,x$e)=>{"use strict";x$e.exports=_$e()});var K$=ye((iwr,w$e)=>{"use strict";var bQt=Qo().hovertemplateAttrs,X5=Ao().extendFlat,Px=fk(),Ix=Lm();w$e.exports={r:Px.r,theta:Px.theta,r0:Px.r0,dr:Px.dr,theta0:Px.theta0,dtheta:Px.dtheta,thetaunit:Px.thetaunit,base:X5({},Ix.base,{}),offset:X5({},Ix.offset,{}),width:X5({},Ix.width,{}),text:X5({},Ix.text,{}),hovertext:X5({},Ix.hovertext,{}),marker:wQt(),hoverinfo:Px.hoverinfo,hovertemplate:bQt(),selected:Ix.selected,unselected:Ix.unselected};function wQt(){var e=X5({},Ix.marker);return delete e.cornerradius,e}});var J$=ye((nwr,T$e)=>{"use strict";T$e.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var M$e=ye((awr,S$e)=>{"use strict";var A$e=Dr(),TQt=y9().handleRThetaDefaults,AQt=BI(),SQt=K$();S$e.exports=function(t,r,n,i){function a(s,l){return A$e.coerce(t,r,SQt,s,l)}var o=TQt(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),AQt(t,r,a,n,i),A$e.coerceSelectionMarkerOpacity(r,a)}});var C$e=ye((owr,E$e)=>{"use strict";var MQt=Dr(),EQt=J$();E$e.exports=function(e,t,r){var n={},i;function a(l,u){return MQt.coerce(e[i]||{},t[i],EQt,l,u)}for(var o=0;o{"use strict";var k$e=pv().hasColorscale,L$e=gv(),CQt=Dr().isArrayOrTypedArray,kQt=v4(),LQt=Hb().setGroupPositions,PQt=z0(),IQt=qa().traceIs,RQt=Dr().extendFlat;function DQt(e,t){for(var r=e._fullLayout,n=t.subplot,i=r[n].radialaxis,a=r[n].angularaxis,o=i.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),l=t._length,u=new Array(l),c=o,f=s,h=0;h{"use strict";var I$e=Oa(),T9=Eo(),Z5=Dr(),zQt=So(),Q$=l9();R$e.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=OQt(r),c=r.layers.frontplot.select("g.barlayer");Z5.makeTraceGroups(c,n,"trace bars").each(function(){var f=I$e.select(this),h=Z5.ensureSingle(f,"g","points"),d=h.selectAll("g.point").data(Z5.identity);d.enter().append("g").style("vector-effect",i?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(v){var x=I$e.select(this),b=v.rp0=s.c2p(v.s0),p=v.rp1=s.c2p(v.s1),C=v.thetag0=l.c2g(v.p0),E=v.thetag1=l.c2g(v.p1),A;if(!T9(b)||!T9(p)||!T9(C)||!T9(E)||b===p||C===E)A="M0,0Z";else{var L=s.c2g(v.s1),_=(C+E)/2;v.ct=[a.c2p(L*Math.cos(_)),o.c2p(L*Math.sin(_))],A=u(b,p,C,E)}Z5.ensureSingle(x,"path").attr("d",A)}),zQt.setClipUrl(f,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function OQt(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,l;Z5.angleDelta(a,o)>0?(s=a,l=o):(s=o,l=a);var u=Q$.findEnclosingVertexAngles(s,e.vangles)[0],c=Q$.findEnclosingVertexAngles(l,e.vangles)[1],f=[u,(s+l)/2,c];return Q$.pathPolygonAnnulus(n,i,s,l,f,t,r)}:function(n,i,a,o){return Z5.pathAnnulus(n,i,a,o,t,r)}}});var z$e=ye((uwr,F$e)=>{"use strict";var qQt=vf(),eQ=Dr(),BQt=TT().getTraceColor,NQt=eQ.fillText,UQt=x9().makeHoverPointText,VQt=l9().isPtInsidePolygon;F$e.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s=o.radialAxis,l=o.angularAxis,u=o.vangles,c=u?VQt:eQ.isPtInsideSector,f=t.maxHoverDistance,h=l._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+n*n))),v=Math.atan2(n,r);s.range[0]>s.range[1]&&(v+=Math.PI);var x=function(E){return c(d,v,[E.rp0,E.rp1],[E.thetag0,E.thetag1],u)?f+Math.min(1,Math.abs(E.thetag1-E.thetag0)/h)-1+(E.rp1-d)/(E.rp1-E.rp0)-1:1/0};if(qQt.getClosest(i,x,t),t.index!==!1){var b=t.index,p=i[b];t.x0=t.x1=p.ct[0],t.y0=t.y1=p.ct[1];var C=eQ.extendFlat({},p,{r:p.s,theta:p.p});return NQt(p,a,t),UQt(C,a,o,t),t.hovertemplate=a.hovertemplate,t.color=BQt(a,p),t.xLabelVal=t.yLabelVal=void 0,p.s<0&&(t.idealAlign="left"),[t]}}});var q$e=ye((cwr,O$e)=>{"use strict";O$e.exports={moduleType:"trace",name:"barpolar",basePlotModule:p9(),categories:["polar","bar","showLegend"],attributes:K$(),layoutAttributes:J$(),supplyDefaults:M$e(),supplyLayoutDefaults:C$e(),calc:$$().calc,crossTraceCalc:$$().crossTraceCalc,plot:D$e(),colorbar:$d(),formatLabels:_9(),style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:z$e(),selectPoints:AT(),meta:{}}});var N$e=ye((fwr,B$e)=>{"use strict";B$e.exports=q$e()});var tQ=ye((hwr,U$e)=>{"use strict";U$e.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var rQ=ye((dwr,j$e)=>{"use strict";var GQt=Eh(),Nf=Rd(),HQt=kc().attributes,Rx=Dr().extendFlat,V$e=mc().overrideAll,G$e=V$e({color:Nf.color,showline:Rx({},Nf.showline,{dflt:!0}),linecolor:Nf.linecolor,linewidth:Nf.linewidth,showgrid:Rx({},Nf.showgrid,{dflt:!0}),gridcolor:Nf.gridcolor,gridwidth:Nf.gridwidth,griddash:Nf.griddash},"plot","from-root"),H$e=V$e({ticklen:Nf.ticklen,tickwidth:Rx({},Nf.tickwidth,{dflt:2}),tickcolor:Nf.tickcolor,showticklabels:Nf.showticklabels,labelalias:Nf.labelalias,showtickprefix:Nf.showtickprefix,tickprefix:Nf.tickprefix,showticksuffix:Nf.showticksuffix,ticksuffix:Nf.ticksuffix,tickfont:Nf.tickfont,tickformat:Nf.tickformat,hoverformat:Nf.hoverformat,layer:Nf.layer},"plot","from-root"),jQt=Rx({visible:Rx({},Nf.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Rx({},Nf.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},G$e,H$e),WQt=Rx({visible:Rx({},Nf.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:Nf.ticks,editType:"calc"},G$e,H$e);j$e.exports={domain:HQt({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:GQt.background},realaxis:jQt,imaginaryaxis:WQt,editType:"calc"}});var Z$e=ye((vwr,X$e)=>{"use strict";var Y5=Dr(),XQt=Ca(),ZQt=pl(),YQt=C_(),KQt=Id().getSubplotData,JQt=t_(),$Qt=e_(),QQt=QM(),eer=ym(),K5=rQ(),iQ=tQ(),W$e=iQ.axisNames,ter=ier(function(e){return Y5.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function rer(e,t,r,n){var i=r("bgcolor");n.bgColor=XQt.combine(i,n.paper_bgcolor);var a=KQt(n.fullData,iQ.name,n.id),o=n.layoutOut,s;function l(L,_){return r(s+"."+L,_)}for(var u=0;u{"use strict";var ner=Id().getSubplotCalcData,aer=Dr().counterRegex,oer=j$(),K$e=tQ(),J$e=K$e.attr,yw=K$e.name,Y$e=aer(yw),$$e={};$$e[J$e]={valType:"subplotid",dflt:yw,editType:"calc"};function ser(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[yw],i=0;i{"use strict";var uer=Qo().hovertemplateAttrs,cer=Qo().texttemplateAttrs,A9=Ao().extendFlat,fer=Eg(),d0=pf(),her=Gl(),J5=d0.line;tQe.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:cer({editType:"plot"},{keys:["real","imag","text"]}),hovertext:d0.hovertext,line:{color:J5.color,width:J5.width,dash:J5.dash,backoff:J5.backoff,shape:A9({},J5.shape,{values:["linear","spline"]}),smoothing:J5.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:A9({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:A9({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:fer(),hoverinfo:A9({},her.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:uer(),selected:d0.selected,unselected:d0.unselected}});var nQe=ye((mwr,iQe)=>{"use strict";var S9=Dr(),$5=Ru(),der=$p(),ver=R0(),rQe=J3(),per=D0(),ger=Ig(),mer=Sm().PTS_LINESONLY,yer=nQ();iQe.exports=function(t,r,n,i){function a(l,u){return S9.coerce(t,r,yer,l,u)}var o=_er(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var aQe=ho();oQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=aQe.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=aQe.tickText(a.angularAxis,t.imag,!0).text,i}});var cQe=ye((_wr,uQe)=>{"use strict";var lQe=Eo(),xer=hs().BADNUM,ber=F0(),wer=Cm(),Ter=z0(),Aer=O0().calcMarkerSize;uQe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].realaxis,o=n[i].imaginaryaxis,s=a.makeCalcdata(r,"real"),l=o.makeCalcdata(r,"imag"),u=r._length,c=new Array(u),f=0;f{"use strict";var Ser=iT(),fQe=hs().BADNUM,Mer=V$(),Eer=Mer.smith;hQe.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=0;l{"use strict";var Cer=sT();function ker(e,t,r,n){var i=Cer(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,vQe(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function vQe(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["real","imag","text"]),f.indexOf("real")!==-1&&c(i,n.realLabel),f.indexOf("imag")!==-1&&c(a,n.imagLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}pQe.exports={hoverPoints:ker,makeHoverPointText:vQe}});var yQe=ye((wwr,mQe)=>{"use strict";mQe.exports={moduleType:"trace",name:"scattersmith",basePlotModule:eQe(),categories:["smith","symbols","showLegend","scatter-like"],attributes:nQ(),supplyDefaults:nQe(),colorbar:$d(),formatLabels:sQe(),calc:cQe(),plot:dQe(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:gQe().hoverPoints,selectPoints:lT(),meta:{}}});var xQe=ye((Twr,_Qe)=>{"use strict";_Qe.exports=yQe()});var Ev=ye((Awr,wQe)=>{var E9=Fh();function bQe(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}E9(bQe.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,i){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,i):n)||this.instance(),n.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(a===0?"":e[a]+t[i])+n,i++,r=Math.floor(r/10)}return n.indexOf(e[1]+t[1])===0&&(n=n.substr(1)),n||e[0]}}});function aQ(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function M9(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}E9(aQ.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Hs.local.differentCalendars||Hs.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+M9(Math.abs(this.year()),4)+"-"+M9(this.month(),2)+"-"+M9(this.day(),2)}});function oQ(){this.shortYearCutoff="+10"}E9(oQ.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new aQ(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+M9(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Hs.local.invalidMonth||Hs.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Hs.local.invalidMonth||Hs.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var n=e.toJD()+t*(r==="w"?this.daysInWeek():1),i=e.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),i=e.day(),s=function(c){for(;of-1+c.minMonth;)a++,o-=f,f=c.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var l=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,l}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,t,r,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;t=this._add(e,r*i[0]+a*i[1],i[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate);var n=r==="y"?t:e.year(),i=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(n,i))),e.date(n,i,a)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var i=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),u=i-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Hs=wQe.exports=new bQe;Hs.cdate=aQ;Hs.baseCalendar=oQ;Hs.calendars.gregorian=sQ});var TQe=ye(()=>{var lQ=Fh(),Ud=Ev();lQ(Ud.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Ud.local=Ud.regionalOptions[""];lQ(Ud.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});lQ(Ud.baseCalendar.prototype,{UNIX_EPOCH:Ud.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Ud.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw Ud.local.invalidFormat||Ud.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,l=r.calculateWeek||this.local.calculateWeek,u=function(A,L){for(var _=1;E+_1},c=function(A,L,_,k){var M=""+L;if(u(A,k))for(;M.length<_;)M="0"+M;return M},f=function(A,L,_,k){return u(A)?k[L]:_[L]},h=this,d=function(A){return typeof a=="function"?a.call(h,A,u("m")):b(c("m",A.month(),2))},v=function(A,L){return L?typeof s=="function"?s.call(h,A):s[A.month()-h.minMonth]:typeof o=="function"?o.call(h,A):o[A.month()-h.minMonth]},x=this.local.digits,b=function(A){return r.localNumbers&&x?x(A):A},p="",C=!1,E=0;E1},C=function(z,O){var V=p(z,O),G=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(z)+1],Z=new RegExp("^-?\\d{1,"+G+"}"),H=t.substring(M).match(Z);if(!H)throw(Ud.local.missingNumberAt||Ud.regionalOptions[""].missingNumberAt).replace(/\{0\}/,M);return M+=H[0].length,parseInt(H[0],10)},E=this,A=function(){if(typeof s=="function"){p("m");var z=s.call(E,t.substring(M));return M+=z.length,z}return C("m")},L=function(z,O,V,G){for(var Z=p(z,G)?V:O,H=0;H-1){h=1,d=v;for(var T=this.daysInMonth(f,h);d>T;T=this.daysInMonth(f,h))h++,d-=T}return c>-1?this.fromJD(c):this.newDate(f,h,d)},determineDate:function(e,t,r,n,i){r&&typeof r!="object"&&(i=n,n=r,r=null),typeof n!="string"&&(i=n,n="");var a=this,o=function(s){try{return a.parseDate(n,s,i)}catch(f){}s=s.toLowerCase();for(var l=(s.match(/^c/)&&r?r.newDate():null)||a.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,c=u.exec(s);c;)l.add(parseInt(c[1],10),c[2]||"d"),c=u.exec(s);return l};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var AQe=ye(()=>{var Dx=Ev(),Ler=Fh(),uQ=Dx.instance();function C9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C9.prototype=new Dx.baseCalendar;Ler(C9.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(Ier);return r?r[0]:""}var n=this._validateYear(e),i=e.month(),a=""+this.toChineseMonth(n,i);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(n,i)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(Rer);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(Der);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),n;if(isNaN(r))t[0]==="\u95F0"&&(n=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var i=t[t.length-1];n=i==="i"||i==="I"}var a=this.toMonthIndex(e,r,n);return a},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var n=this.intercalaryMonth(e),i=r&&t!==n;if(i||t<1||t>12)throw Dx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return n?!r&&t<=n?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),n=r?12:11;if(t<0||t>n)throw Dx.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var n=this._validateYear(e,Dx.local.invalidyear),i=zx[n-zx[0]],a=i>>9&4095,o=i>>5&15,s=i&31,l;l=uQ.newDate(a,o,s),l.add(4-(l.dayOfWeek()||7),"d");var u=this.toJD(e,t,r)-l.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=Fx[e-Fx[0]],n=r>>13,i=n?12:11;if(t>i)throw Dx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,a,r,Dx.local.invalidDate);e=this._validateYear(n.year()),t=n.month(),r=n.day();var i=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=zer(e,a,r,i);return uQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=uQ.fromJD(e),r=Fer(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(Per),r=this._validateYear(+t[1]),n=+t[2],i=!!t[3],a=this.toMonthIndex(r,n,i),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var n=e.year(),i=e.month(),a=this.isIntercalaryMonth(n,i),o=this.toChineseMonth(n,i),s=Object.getPrototypeOf(C9.prototype).add.call(this,e,t,r);if(r==="y"){var l=s.year(),u=s.month(),c=this.isIntercalaryMonth(l,o),f=a&&c?this.toMonthIndex(l,o,!0):this.toMonthIndex(l,o,!1);f!==u&&s.month(f)}return s}});var Per=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Ier=/^\d?\d[iI]?/m,Rer=/^闰?十?[一二三四五六七八九]?月/m,Der=/^闰?十?[一二三四五六七八九]?/m;Dx.calendars.chinese=C9;var Fx=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],zx=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function Fer(e,t,r,n){var i,a;if(typeof e=="object")i=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=31;if(!l)throw new Error("Solar day outside range 1 - 31");i={year:e,month:t,day:r},a=n||{}}var u=zx[i.year-zx[0]],c=i.year<<9|i.month<<5|i.day;a.year=c>=u?i.year:i.year-1,u=zx[a.year-zx[0]];var f=u>>9&4095,h=u>>5&15,d=u&31,v,x=new Date(f,h-1,d),b=new Date(i.year,i.month-1,i.day);v=Math.round((b-x)/(24*3600*1e3));var p=Fx[a.year-Fx[0]],C;for(C=0;C<13;C++){var E=p&1<<12-C?30:29;if(v>13;return!A||C=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var l=typeof t=="number"&&t>=1&&t<=12;if(!l)throw new Error("Lunar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var c;typeof n=="object"?(c=!1,a=n):(c=!!n,a=i||{}),o={year:e,month:t,day:r,isIntercalary:c}}var f;f=o.day-1;var h=Fx[o.year-Fx[0]],d=h>>13,v;d&&(o.month>d||o.isIntercalary)?v=o.month:v=o.month-1;for(var x=0;x>9&4095,E=p>>5&15,A=p&31,L=new Date(C,E-1,A+f);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var SQe=ye(()=>{var _w=Ev(),Oer=Fh();function cQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}cQ.prototype=new _w.baseCalendar;Oer(cQ.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,_w.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_w.local.invalidYear||_w.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,_w.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,_w.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});_w.calendars.coptic=cQ});var MQe=ye(()=>{var b1=Ev(),qer=Fh();function fQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fQ.prototype=new b1.baseCalendar;qer(fQ.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,b1.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return{century:Ber[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return e=n.year()+(n.year()<0?1:0),t=n.month(),r=n.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,n)}});var Ber={20:"Fruitbat",21:"Anchovy"};b1.calendars.discworld=fQ});var EQe=ye(()=>{var xw=Ev(),Ner=Fh();function hQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hQ.prototype=new xw.baseCalendar;Ner(hQ.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,xw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,xw.local.invalidYear||xw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,xw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,xw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});xw.calendars.ethiopian=hQ});var CQe=ye(()=>{var Ox=Ev(),Uer=Fh();function dQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dQ.prototype=new Ox.baseCalendar;Uer(dQ.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,k9(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Ox.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&k9(this.daysInYear(e),10)===5?30:t===9&&k9(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,Ox.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,t,r){var n=this._validate(e,t,r,Ox.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=e<=0?e+1:e,a=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});function k9(e,t){return e-t*Math.floor(e/t)}Ox.calendars.hebrew=dQ});var kQe=ye(()=>{var hk=Ev(),Ver=Fh();function vQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vQ.prototype=new hk.baseCalendar;Ver(vQ.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,hk.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,hk.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,hk.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});hk.calendars.islamic=vQ});var LQe=ye(()=>{var dk=Ev(),Ger=Fh();function pQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}pQ.prototype=new dk.baseCalendar;Ger(pQ.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,dk.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,dk.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,dk.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),l=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,l)}});dk.calendars.julian=pQ});var IQe=ye(()=>{var ug=Ev(),Her=Fh();function mQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}mQ.prototype=new ug.baseCalendar;Her(mQ.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return r+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";t=t*20+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,ug.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,ug.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,ug.local.invalidDate);return n.day()},weekDay:function(e,t,r){return this._validate(e,t,r,ug.local.invalidDate),!0},extraInfo:function(e,t,r){var n=this._validate(e,t,r,ug.local.invalidDate),i=n.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=gQ(e+8+17*20,365);return[Math.floor(t/20)+1,gQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[PQe(e+20,20),PQe(e+4,13)]},toJD:function(e,t,r){var n=this._validate(e,t,r,ug.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}});function gQ(e,t){return e-t*Math.floor(e/t)}function PQe(e,t){return gQ(e-1,t)+1}ug.calendars.mayan=mQ});var DQe=ye(()=>{var bw=Ev(),jer=Fh();function yQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yQ.prototype=new bw.baseCalendar;var RQe=bw.instance("gregorian");jer(yQ.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,bw.local.invalidYear||bw.regionalOptions[""].invalidYear);return RQe.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,bw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,bw.local.invalidMonth),i=n.year();i<0&&i++;for(var a=n.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}});bw.calendars.nanakshahi=yQ});var FQe=ye(()=>{var ww=Ev(),Wer=Fh();function _Q(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_Q.prototype=new ww.baseCalendar;Wer(_Q.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ww.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,n=this.minMonth;n<=12;n++)r+=this.NEPALI_CALENDAR_DATA[e][n];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,ww.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var n=this._validate(e,t,r,ww.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=ww.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var l=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=i.daysInYear(l))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(l,1,1).add(a,"d").toJD()},fromJD:function(e){var t=ww.instance(),r=t.fromJD(e),n=r.year(),i=r.dayOfYear(),a=n+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>l;)o++,o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var u=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,u)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var Q5=Ev(),Xer=Fh();function P9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function L9(e){var t=e-475;e<0&&t++;var r=.242197,n=r*t,i=r*(t+1),a=n-Math.floor(n),o=i-Math.floor(i);return a>o}P9.prototype=new Q5.baseCalendar;Xer(P9.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Q5.local.invalidYear);return L9(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Q5.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Q5.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=0;if(e>0)for(var a=1;a0?e-1:e)*365+i+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,L9(r)?30:29)&&(r++,r===0&&r++);var n=e-this.toJD(r,1,1)+1,i=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),a=e-this.toJD(r,i,1)+1;return this.newDate(r,i,a)}});Q5.calendars.persian=P9;Q5.calendars.jalali=P9});var OQe=ye(()=>{var Tw=Ev(),Zer=Fh(),I9=Tw.instance();function xQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xQ.prototype=new Tw.baseCalendar;Zer(xQ.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Tw.local.invalidYear),r=this._t2gYear(t.year());return I9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Tw.local.invalidYear),i=this._t2gYear(n.year());return I9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Tw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Tw.local.invalidDate),i=this._t2gYear(n.year());return I9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=I9.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Tw.calendars.taiwan=xQ});var qQe=ye(()=>{var Aw=Ev(),Yer=Fh(),R9=Aw.instance();function bQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bQ.prototype=new Aw.baseCalendar;Yer(bQ.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Aw.local.invalidYear),r=this._t2gYear(t.year());return R9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Aw.local.invalidYear),i=this._t2gYear(n.year());return R9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Aw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Aw.local.invalidDate),i=this._t2gYear(n.year());return R9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=R9.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Aw.calendars.thai=bQ});var BQe=ye(()=>{var Sw=Ev(),Ker=Fh();function wQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wQ.prototype=new Sw.baseCalendar;Ker(wQ.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Sw.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Sw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return qx[i]-qx[i-1];i++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Sw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+qx[i-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),o=a+1,s=i-12*a,l=t-qx[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var n=Sw.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,t,r,n){var i=Sw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Sw.calendars.ummalqura=wQ;var qx=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var UQe=ye((t3r,NQe)=>{"use strict";NQe.exports=Ev();TQe();AQe();SQe();MQe();EQe();CQe();kQe();LQe();IQe();DQe();FQe();zQe();OQe();qQe();BQe()});var ZQe=ye((r3r,XQe)=>{"use strict";var GQe=UQe(),vk=Dr(),HQe=hs(),Jer=HQe.EPOCHJD,$er=HQe.ONEDAY,SQ={valType:"enumerated",values:vk.sortObjectKeys(GQe.calendars),editType:"calc",dflt:"gregorian"},jQe=function(e,t,r,n){var i={};return i[r]=SQ,vk.coerce(e,t,i,r,n)},Qer=function(e,t,r,n){for(var i=0;i{"use strict";YQe.exports=ZQe()});var atr=ye((n3r,$Qe)=>{var JQe=tye();JQe.register([i1e(),H1e(),ixe(),Txe(),zxe(),Ibe(),jbe(),P2e(),owe(),Uwe(),E3e(),BEe(),ECe(),m6e(),nLe(),DLe(),iPe(),EIe(),WIe(),c8e(),w8e(),z8e(),J8e(),dRe(),NDe(),oFe(),TBe(),TNe(),RUe(),nVe(),dGe(),CGe(),$Ge(),uje(),Aje(),Zje(),rXe(),MXe(),sZe(),kYe(),$Ye(),_Ke(),jKe(),aJe(),i$e(),b$e(),N$e(),xQe(),KQe()]);$Qe.exports=JQe});return atr();})(); +`),We=Xe.createShader(Xe.FRAGMENT_SHADER);if(Xe.isContextLost())return void(this.failedToCreate=!0);if(Xe.shaderSource(We,Be),Xe.compileShader(We),!Xe.getShaderParameter(We,Xe.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${Xe.getShaderInfoLog(We)}`);Xe.attachShader(this.program,We);let it=Xe.createShader(Xe.VERTEX_SHADER);if(Xe.isContextLost())return void(this.failedToCreate=!0);if(Xe.shaderSource(it,tt),Xe.compileShader(it),!Xe.getShaderParameter(it,Xe.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${Xe.getShaderInfoLog(it)}`);Xe.attachShader(this.program,it),this.attributes={};let Dt={};this.numAttributes=Kt.length;for(let Ht=0;Ht({u_depth:new a.aH(Ht,rr.u_depth),u_terrain:new a.aH(Ht,rr.u_terrain),u_terrain_dim:new a.aI(Ht,rr.u_terrain_dim),u_terrain_matrix:new a.aJ(Ht,rr.u_terrain_matrix),u_terrain_unpack:new a.aK(Ht,rr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(Ht,rr.u_terrain_exaggeration)}))(w,Dt),this.binderUniforms=Q?Q.getUniforms(w,Dt):[]}draw(w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve,be,Re,Be,tt){let We=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(Q),w.setStencilMode(ee),w.setColorMode(le),w.setCullFace(qe),ot){w.activeTexture.set(We.TEXTURE2),We.bindTexture(We.TEXTURE_2D,ot.depthTexture),w.activeTexture.set(We.TEXTURE3),We.bindTexture(We.TEXTURE_2D,ot.texture);for(let Dt in this.terrainUniforms)this.terrainUniforms[Dt].set(ot[Dt])}for(let Dt in this.fixedUniforms)this.fixedUniforms[Dt].set(Xe[Dt]);be&&be.setUniforms(w,this.binderUniforms,Pr,{zoom:ve});let it=0;switch(B){case We.LINES:it=2;break;case We.TRIANGLES:it=3;break;case We.LINE_STRIP:it=1}for(let Dt of xr.get()){let Ht=Dt.vaos||(Dt.vaos={});(Ht[Tt]||(Ht[Tt]=new Cr)).bind(w,this,Kt,be?be.getPaintVertexBuffers():[],Jt,Dt.vertexOffset,Re,Be,tt),We.drawElements(B,Dt.primitiveLength*it,We.UNSIGNED_SHORT,Dt.primitiveOffset*it*2)}}}function Sn(ue,w,B){let Q=1/Pn(B,1,w.transform.tileZoom),ee=Math.pow(2,B.tileID.overscaledZ),le=B.tileSize*Math.pow(2,w.transform.tileZoom)/ee,qe=le*(B.tileID.canonical.x+B.tileID.wrap*ee),Xe=le*B.tileID.canonical.y;return{u_image:0,u_texsize:B.imageAtlasTexture.size,u_scale:[Q,ue.fromScale,ue.toScale],u_fade:ue.t,u_pixel_coord_upper:[qe>>16,Xe>>16],u_pixel_coord_lower:[65535&qe,65535&Xe]}}let En=(ue,w,B,Q)=>{let ee=w.style.light,le=ee.properties.get("position"),qe=[le.x,le.y,le.z],Xe=function(){var Tt=new a.A(9);return a.A!=Float32Array&&(Tt[1]=0,Tt[2]=0,Tt[3]=0,Tt[5]=0,Tt[6]=0,Tt[7]=0),Tt[0]=1,Tt[4]=1,Tt[8]=1,Tt}();ee.properties.get("anchor")==="viewport"&&function(Tt,Kt){var Jt=Math.sin(Kt),xr=Math.cos(Kt);Tt[0]=xr,Tt[1]=Jt,Tt[2]=0,Tt[3]=-Jt,Tt[4]=xr,Tt[5]=0,Tt[6]=0,Tt[7]=0,Tt[8]=1}(Xe,-w.transform.angle),function(Tt,Kt,Jt){var xr=Kt[0],Pr=Kt[1],ve=Kt[2];Tt[0]=xr*Jt[0]+Pr*Jt[3]+ve*Jt[6],Tt[1]=xr*Jt[1]+Pr*Jt[4]+ve*Jt[7],Tt[2]=xr*Jt[2]+Pr*Jt[5]+ve*Jt[8]}(qe,qe,Xe);let ot=ee.properties.get("color");return{u_matrix:ue,u_lightpos:qe,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[ot.r,ot.g,ot.b],u_vertical_gradient:+B,u_opacity:Q}},ki=(ue,w,B,Q,ee,le,qe)=>a.e(En(ue,w,B,Q),Sn(le,w,qe),{u_height_factor:-Math.pow(2,ee.overscaledZ)/qe.tileSize/8}),_n=ue=>({u_matrix:ue}),ya=(ue,w,B,Q)=>a.e(_n(ue),Sn(B,w,Q)),Jn=(ue,w)=>({u_matrix:ue,u_world:w}),Ma=(ue,w,B,Q,ee)=>a.e(ya(ue,w,B,Q),{u_world:ee}),_o=(ue,w,B,Q)=>{let ee=ue.transform,le,qe;if(Q.paint.get("circle-pitch-alignment")==="map"){let Xe=Pn(B,1,ee.zoom);le=!0,qe=[Xe,Xe]}else le=!1,qe=ee.pixelsToGLUnits;return{u_camera_to_center_distance:ee.cameraToCenterDistance,u_scale_with_map:+(Q.paint.get("circle-pitch-scale")==="map"),u_matrix:ue.translatePosMatrix(w.posMatrix,B,Q.paint.get("circle-translate"),Q.paint.get("circle-translate-anchor")),u_pitch_with_map:+le,u_device_pixel_ratio:ue.pixelRatio,u_extrude_scale:qe}},No=(ue,w,B)=>({u_matrix:ue,u_inv_matrix:w,u_camera_to_center_distance:B.cameraToCenterDistance,u_viewport_size:[B.width,B.height]}),po=(ue,w,B=1)=>({u_matrix:ue,u_color:w,u_overlay:0,u_overlay_scale:B}),Lo=ue=>({u_matrix:ue}),Co=(ue,w,B,Q)=>({u_matrix:ue,u_extrude_scale:Pn(w,1,B),u_intensity:Q}),Fs=(ue,w,B,Q)=>{let ee=a.H();a.aP(ee,0,ue.width,ue.height,0,0,1);let le=ue.context.gl;return{u_matrix:ee,u_world:[le.drawingBufferWidth,le.drawingBufferHeight],u_image:B,u_color_ramp:Q,u_opacity:w.paint.get("heatmap-opacity")}};function zs(ue,w){let B=Math.pow(2,w.canonical.z),Q=w.canonical.y;return[new a.Z(0,Q/B).toLngLat().lat,new a.Z(0,(Q+1)/B).toLngLat().lat]}let ul=(ue,w,B,Q)=>{let ee=ue.transform;return{u_matrix:Ss(ue,w,B,Q),u_ratio:1/Pn(w,1,ee.zoom),u_device_pixel_ratio:ue.pixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},cl=(ue,w,B,Q,ee)=>a.e(ul(ue,w,B,ee),{u_image:0,u_image_height:Q}),zl=(ue,w,B,Q,ee)=>{let le=ue.transform,qe=nl(w,le);return{u_matrix:Ss(ue,w,B,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/Pn(w,1,le.zoom),u_device_pixel_ratio:ue.pixelRatio,u_image:0,u_scale:[qe,Q.fromScale,Q.toScale],u_fade:Q.t,u_units_to_pixels:[1/le.pixelsToGLUnits[0],1/le.pixelsToGLUnits[1]]}},cs=(ue,w,B,Q,ee,le)=>{let qe=ue.lineAtlas,Xe=nl(w,ue.transform),ot=B.layout.get("line-cap")==="round",Tt=qe.getDash(Q.from,ot),Kt=qe.getDash(Q.to,ot),Jt=Tt.width*ee.fromScale,xr=Kt.width*ee.toScale;return a.e(ul(ue,w,B,le),{u_patternscale_a:[Xe/Jt,-Tt.height/2],u_patternscale_b:[Xe/xr,-Kt.height/2],u_sdfgamma:qe.width/(256*Math.min(Jt,xr)*ue.pixelRatio)/2,u_image:0,u_tex_y_a:Tt.y,u_tex_y_b:Kt.y,u_mix:ee.t})};function nl(ue,w){return 1/Pn(ue,1,w.tileZoom)}function Ss(ue,w,B,Q){return ue.translatePosMatrix(Q?Q.posMatrix:w.tileID.posMatrix,w,B.paint.get("line-translate"),B.paint.get("line-translate-anchor"))}let fl=(ue,w,B,Q,ee)=>{return{u_matrix:ue,u_tl_parent:w,u_scale_parent:B,u_buffer_scale:1,u_fade_t:Q.mix,u_opacity:Q.opacity*ee.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ee.paint.get("raster-brightness-min"),u_brightness_high:ee.paint.get("raster-brightness-max"),u_saturation_factor:(qe=ee.paint.get("raster-saturation"),qe>0?1-1/(1.001-qe):-qe),u_contrast_factor:(le=ee.paint.get("raster-contrast"),le>0?1/(1-le):1+le),u_spin_weights:Js(ee.paint.get("raster-hue-rotate"))};var le,qe};function Js(ue){ue*=Math.PI/180;let w=Math.sin(ue),B=Math.cos(ue);return[(2*B+1)/3,(-Math.sqrt(3)*w-B+1)/3,(Math.sqrt(3)*w-B+1)/3]}let Os=(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr)=>{let ve=qe.transform;return{u_is_size_zoom_constant:+(ue==="constant"||ue==="source"),u_is_size_feature_constant:+(ue==="constant"||ue==="camera"),u_size_t:w?w.uSizeT:0,u_size:w?w.uSize:0,u_camera_to_center_distance:ve.cameraToCenterDistance,u_pitch:ve.pitch/360*2*Math.PI,u_rotate_symbol:+B,u_aspect_ratio:ve.width/ve.height,u_fade_change:qe.options.fadeDuration?qe.symbolFadeChange:1,u_matrix:Xe,u_label_plane_matrix:ot,u_coord_matrix:Tt,u_is_text:+Jt,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:le,u_texsize:xr,u_texture:0,u_translation:Kt,u_pitched_scale:Pr}},Io=(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve)=>{let be=qe.transform;return a.e(Os(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,ve),{u_gamma_scale:Q?Math.cos(be._pitch)*be.cameraToCenterDistance:1,u_device_pixel_ratio:qe.pixelRatio,u_is_halo:+Pr})},us=(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr)=>a.e(Io(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,!0,Jt,!0,Pr),{u_texsize_icon:xr,u_texture_icon:1}),Zl=(ue,w,B)=>({u_matrix:ue,u_opacity:w,u_color:B}),Su=(ue,w,B,Q,ee,le)=>a.e(function(qe,Xe,ot,Tt){let Kt=ot.imageManager.getPattern(qe.from.toString()),Jt=ot.imageManager.getPattern(qe.to.toString()),{width:xr,height:Pr}=ot.imageManager.getPixelSize(),ve=Math.pow(2,Tt.tileID.overscaledZ),be=Tt.tileSize*Math.pow(2,ot.transform.tileZoom)/ve,Re=be*(Tt.tileID.canonical.x+Tt.tileID.wrap*ve),Be=be*Tt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Kt.tl,u_pattern_br_a:Kt.br,u_pattern_tl_b:Jt.tl,u_pattern_br_b:Jt.br,u_texsize:[xr,Pr],u_mix:Xe.t,u_pattern_size_a:Kt.displaySize,u_pattern_size_b:Jt.displaySize,u_scale_a:Xe.fromScale,u_scale_b:Xe.toScale,u_tile_units_to_pixels:1/Pn(Tt,1,ot.transform.tileZoom),u_pixel_coord_upper:[Re>>16,Be>>16],u_pixel_coord_lower:[65535&Re,65535&Be]}}(Q,le,B,ee),{u_matrix:ue,u_opacity:w}),nc={fillExtrusion:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_opacity:new a.aI(ue,w.u_opacity)}),fillExtrusionPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_height_factor:new a.aI(ue,w.u_height_factor),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade),u_opacity:new a.aI(ue,w.u_opacity)}),fill:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),fillPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),fillOutline:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world)}),fillOutlinePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),circle:(ue,w)=>({u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(ue,w.u_scale_with_map),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_extrude_scale:new a.aO(ue,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_matrix:new a.aJ(ue,w.u_matrix)}),collisionBox:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_pixel_extrude_scale:new a.aO(ue,w.u_pixel_extrude_scale)}),collisionCircle:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_inv_matrix:new a.aJ(ue,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_viewport_size:new a.aO(ue,w.u_viewport_size)}),debug:(ue,w)=>({u_color:new a.aL(ue,w.u_color),u_matrix:new a.aJ(ue,w.u_matrix),u_overlay:new a.aH(ue,w.u_overlay),u_overlay_scale:new a.aI(ue,w.u_overlay_scale)}),clippingMask:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),heatmap:(ue,w)=>({u_extrude_scale:new a.aI(ue,w.u_extrude_scale),u_intensity:new a.aI(ue,w.u_intensity),u_matrix:new a.aJ(ue,w.u_matrix)}),heatmapTexture:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_color_ramp:new a.aH(ue,w.u_color_ramp),u_opacity:new a.aI(ue,w.u_opacity)}),hillshade:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_latrange:new a.aO(ue,w.u_latrange),u_light:new a.aO(ue,w.u_light),u_shadow:new a.aL(ue,w.u_shadow),u_highlight:new a.aL(ue,w.u_highlight),u_accent:new a.aL(ue,w.u_accent)}),hillshadePrepare:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_dimension:new a.aO(ue,w.u_dimension),u_zoom:new a.aI(ue,w.u_zoom),u_unpack:new a.aK(ue,w.u_unpack)}),line:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels)}),lineGradient:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_image:new a.aH(ue,w.u_image),u_image_height:new a.aI(ue,w.u_image_height)}),linePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texsize:new a.aO(ue,w.u_texsize),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_image:new a.aH(ue,w.u_image),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),lineSDF:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_patternscale_a:new a.aO(ue,w.u_patternscale_a),u_patternscale_b:new a.aO(ue,w.u_patternscale_b),u_sdfgamma:new a.aI(ue,w.u_sdfgamma),u_image:new a.aH(ue,w.u_image),u_tex_y_a:new a.aI(ue,w.u_tex_y_a),u_tex_y_b:new a.aI(ue,w.u_tex_y_b),u_mix:new a.aI(ue,w.u_mix)}),raster:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_tl_parent:new a.aO(ue,w.u_tl_parent),u_scale_parent:new a.aI(ue,w.u_scale_parent),u_buffer_scale:new a.aI(ue,w.u_buffer_scale),u_fade_t:new a.aI(ue,w.u_fade_t),u_opacity:new a.aI(ue,w.u_opacity),u_image0:new a.aH(ue,w.u_image0),u_image1:new a.aH(ue,w.u_image1),u_brightness_low:new a.aI(ue,w.u_brightness_low),u_brightness_high:new a.aI(ue,w.u_brightness_high),u_saturation_factor:new a.aI(ue,w.u_saturation_factor),u_contrast_factor:new a.aI(ue,w.u_contrast_factor),u_spin_weights:new a.aN(ue,w.u_spin_weights)}),symbolIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolSDF:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolTextAndIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texsize_icon:new a.aO(ue,w.u_texsize_icon),u_texture:new a.aH(ue,w.u_texture),u_texture_icon:new a.aH(ue,w.u_texture_icon),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),background:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_color:new a.aL(ue,w.u_color)}),backgroundPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_image:new a.aH(ue,w.u_image),u_pattern_tl_a:new a.aO(ue,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(ue,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(ue,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(ue,w.u_pattern_br_b),u_texsize:new a.aO(ue,w.u_texsize),u_mix:new a.aI(ue,w.u_mix),u_pattern_size_a:new a.aO(ue,w.u_pattern_size_a),u_pattern_size_b:new a.aO(ue,w.u_pattern_size_b),u_scale_a:new a.aI(ue,w.u_scale_a),u_scale_b:new a.aI(ue,w.u_scale_b),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(ue,w.u_tile_units_to_pixels)}),terrain:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_ele_delta:new a.aI(ue,w.u_ele_delta),u_fog_matrix:new a.aJ(ue,w.u_fog_matrix),u_fog_color:new a.aL(ue,w.u_fog_color),u_fog_ground_blend:new a.aI(ue,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(ue,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon_fog_blend:new a.aI(ue,w.u_horizon_fog_blend)}),terrainDepth:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),terrainCoords:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_terrain_coords_id:new a.aI(ue,w.u_terrain_coords_id),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),sky:(ue,w)=>({u_sky_color:new a.aL(ue,w.u_sky_color),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon:new a.aI(ue,w.u_horizon),u_sky_horizon_blend:new a.aI(ue,w.u_sky_horizon_blend)})};class ws{constructor(w,B,Q){this.context=w;let ee=w.gl;this.buffer=ee.createBuffer(),this.dynamicDraw=!!Q,this.context.unbindVAO(),w.bindElementBuffer.set(this.buffer),ee.bufferData(ee.ELEMENT_ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?ee.DYNAMIC_DRAW:ee.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(w){let B=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),B.bufferSubData(B.ELEMENT_ARRAY_BUFFER,0,w.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let Fn={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class _a{constructor(w,B,Q,ee){this.length=B.length,this.attributes=Q,this.itemSize=B.bytesPerElement,this.dynamicDraw=ee,this.context=w;let le=w.gl;this.buffer=le.createBuffer(),w.bindVertexBuffer.set(this.buffer),le.bufferData(le.ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?le.DYNAMIC_DRAW:le.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(w){if(w.length!==this.length)throw new Error(`Length of new data is ${w.length}, which doesn't match current length of ${this.length}`);let B=this.context.gl;this.bind(),B.bufferSubData(B.ARRAY_BUFFER,0,w.arrayBuffer)}enableAttributes(w,B){for(let Q=0;Q0){let Ht=a.H();a.aQ(Ht,We.placementInvProjMatrix,ue.transform.glCoordMatrix),a.aQ(Ht,Ht,We.placementViewportMatrix),ot.push({circleArray:Dt,circleOffset:Kt,transform:tt.posMatrix,invTransform:Ht,coord:tt}),Tt+=Dt.length/4,Kt=Tt}it&&Xe.draw(le,qe.LINES,Po.disabled,Yo.disabled,ue.colorModeForRenderPass(),Pa.disabled,{u_matrix:tt.posMatrix,u_pixel_extrude_scale:[1/(Jt=ue.transform).width,1/Jt.height]},ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(tt),B.id,it.layoutVertexBuffer,it.indexBuffer,it.segments,null,ue.transform.zoom,null,null,it.collisionVertexBuffer)}var Jt;if(!ee||!ot.length)return;let xr=ue.useProgram("collisionCircle"),Pr=new a.aR;Pr.resize(4*Tt),Pr._trim();let ve=0;for(let Be of ot)for(let tt=0;tt=0&&(Be[We.associatedIconIndex]={shiftedAnchor:Kn,angle:Ta})}else di(We.numGlyphs,be)}if(Tt){Re.clear();let tt=ue.icon.placedSymbolArray;for(let We=0;Weue.style.map.terrain.getElevation(jr,nt,jt):null,Ct=B.layout.get("text-rotation-alignment")==="map";je(Li,jr.posMatrix,ue,ee,Ul,au,Be,Tt,Ct,be,jr.toUnwrapped(),ve.width,ve.height,$s,Ye)}let Al=jr.posMatrix,Sl=ee&&dr||dc,X=tt||Sl?wl:Ul,se=Lu,Te=In&&B.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Ne;Ne=In?Li.iconsInText?us(Kn.kind,$a,We,Be,tt,Sl,ue,Al,X,se,$s,Qa,As,Or):Io(Kn.kind,$a,We,Be,tt,Sl,ue,Al,X,se,$s,ee,Qa,!0,Or):Os(Kn.kind,$a,We,Be,tt,Sl,ue,Al,X,se,$s,ee,Qa,Or);let He={program:fa,buffers:un,uniformValues:Ne,atlasTexture:mo,atlasTextureIcon:wo,atlasInterpolation:Bo,atlasInterpolationIcon:Is,isSDF:In,hasHalo:Te};if(Dt&&Li.canOverlap){Ht=!0;let Ye=un.segments.get();for(let Ct of Ye)Sr.push({segments:new a.a0([Ct]),sortKey:Ct.sortKey,state:He,terrainData:ko})}else Sr.push({segments:un.segments,sortKey:0,state:He,terrainData:ko})}Ht&&Sr.sort((jr,ii)=>jr.sortKey-ii.sortKey);for(let jr of Sr){let ii=jr.state;if(xr.activeTexture.set(Pr.TEXTURE0),ii.atlasTexture.bind(ii.atlasInterpolation,Pr.CLAMP_TO_EDGE),ii.atlasTextureIcon&&(xr.activeTexture.set(Pr.TEXTURE1),ii.atlasTextureIcon&&ii.atlasTextureIcon.bind(ii.atlasInterpolationIcon,Pr.CLAMP_TO_EDGE)),ii.isSDF){let Li=ii.uniformValues;ii.hasHalo&&(Li.u_is_halo=1,Qf(ii.buffers,jr.segments,B,ue,ii.program,rr,Kt,Jt,Li,jr.terrainData)),Li.u_is_halo=0}Qf(ii.buffers,jr.segments,B,ue,ii.program,rr,Kt,Jt,ii.uniformValues,jr.terrainData)}}function Qf(ue,w,B,Q,ee,le,qe,Xe,ot,Tt){let Kt=Q.context;ee.draw(Kt,Kt.gl.TRIANGLES,le,qe,Xe,Pa.disabled,ot,Tt,B.id,ue.layoutVertexBuffer,ue.indexBuffer,w,B.paint,Q.transform.zoom,ue.programConfigurations.get(B.id),ue.dynamicLayoutVertexBuffer,ue.opacityVertexBuffer)}function yf(ue,w,B,Q){let ee=ue.context,le=ee.gl,qe=Yo.disabled,Xe=new Bs([le.ONE,le.ONE],a.aM.transparent,[!0,!0,!0,!0]),ot=w.getBucket(B);if(!ot)return;let Tt=Q.key,Kt=B.heatmapFbos.get(Tt);Kt||(Kt=eh(ee,w.tileSize,w.tileSize),B.heatmapFbos.set(Tt,Kt)),ee.bindFramebuffer.set(Kt.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let Jt=ot.programConfigurations.get(B.id),xr=ue.useProgram("heatmap",Jt),Pr=ue.style.map.terrain.getTerrainData(Q);xr.draw(ee,le.TRIANGLES,Po.disabled,qe,Xe,Pa.disabled,Co(Q.posMatrix,w,ue.transform.zoom,B.paint.get("heatmap-intensity")),Pr,B.id,ot.layoutVertexBuffer,ot.indexBuffer,ot.segments,B.paint,ue.transform.zoom,Jt)}function Yc(ue,w,B){let Q=ue.context,ee=Q.gl;Q.setColorMode(ue.colorModeForRenderPass());let le=th(Q,w),qe=B.key,Xe=w.heatmapFbos.get(qe);Xe&&(Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Xe.colorAttachment.get()),Q.activeTexture.set(ee.TEXTURE1),le.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),ue.useProgram("heatmapTexture").draw(Q,ee.TRIANGLES,Po.disabled,Yo.disabled,ue.colorModeForRenderPass(),Pa.disabled,Fs(ue,w,0,1),null,w.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments,w.paint,ue.transform.zoom),Xe.destroy(),w.heatmapFbos.delete(qe))}function eh(ue,w,B){var Q,ee;let le=ue.gl,qe=le.createTexture();le.bindTexture(le.TEXTURE_2D,qe),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_S,le.CLAMP_TO_EDGE),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_T,le.CLAMP_TO_EDGE),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MIN_FILTER,le.LINEAR),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MAG_FILTER,le.LINEAR);let Xe=(Q=ue.HALF_FLOAT)!==null&&Q!==void 0?Q:le.UNSIGNED_BYTE,ot=(ee=ue.RGBA16F)!==null&&ee!==void 0?ee:le.RGBA;le.texImage2D(le.TEXTURE_2D,0,ot,w,B,0,le.RGBA,Xe,null);let Tt=ue.createFramebuffer(w,B,!1,!1);return Tt.colorAttachment.set(qe),Tt}function th(ue,w){return w.colorRampTexture||(w.colorRampTexture=new g(ue,w.colorRamp,ue.gl.RGBA)),w.colorRampTexture}function ju(ue,w,B,Q,ee){if(!B||!Q||!Q.imageAtlas)return;let le=Q.imageAtlas.patternPositions,qe=le[B.to.toString()],Xe=le[B.from.toString()];if(!qe&&Xe&&(qe=Xe),!Xe&&qe&&(Xe=qe),!qe||!Xe){let ot=ee.getPaintProperty(w);qe=le[ot],Xe=le[ot]}qe&&Xe&&ue.setConstantPatternPositions(qe,Xe)}function Hf(ue,w,B,Q,ee,le,qe){let Xe=ue.context.gl,ot="fill-pattern",Tt=B.paint.get(ot),Kt=Tt&&Tt.constantOr(1),Jt=B.getCrossfadeParameters(),xr,Pr,ve,be,Re;qe?(Pr=Kt&&!B.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",xr=Xe.LINES):(Pr=Kt?"fillPattern":"fill",xr=Xe.TRIANGLES);let Be=Tt.constantOr(null);for(let tt of Q){let We=w.getTile(tt);if(Kt&&!We.patternsLoaded())continue;let it=We.getBucket(B);if(!it)continue;let Dt=it.programConfigurations.get(B.id),Ht=ue.useProgram(Pr,Dt),rr=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(tt);Kt&&(ue.context.activeTexture.set(Xe.TEXTURE0),We.imageAtlasTexture.bind(Xe.LINEAR,Xe.CLAMP_TO_EDGE),Dt.updatePaintBuffers(Jt)),ju(Dt,ot,Be,We,B);let dr=rr?tt:null,Sr=ue.translatePosMatrix(dr?dr.posMatrix:tt.posMatrix,We,B.paint.get("fill-translate"),B.paint.get("fill-translate-anchor"));if(qe){be=it.indexBuffer2,Re=it.segments2;let Or=[Xe.drawingBufferWidth,Xe.drawingBufferHeight];ve=Pr==="fillOutlinePattern"&&Kt?Ma(Sr,ue,Jt,We,Or):Jn(Sr,Or)}else be=it.indexBuffer,Re=it.segments,ve=Kt?ya(Sr,ue,Jt,We):_n(Sr);Ht.draw(ue.context,xr,ee,ue.stencilModeForClipping(tt),le,Pa.disabled,ve,rr,B.id,it.layoutVertexBuffer,be,Re,B.paint,ue.transform.zoom,Dt)}}function cc(ue,w,B,Q,ee,le,qe){let Xe=ue.context,ot=Xe.gl,Tt="fill-extrusion-pattern",Kt=B.paint.get(Tt),Jt=Kt.constantOr(1),xr=B.getCrossfadeParameters(),Pr=B.paint.get("fill-extrusion-opacity"),ve=Kt.constantOr(null);for(let be of Q){let Re=w.getTile(be),Be=Re.getBucket(B);if(!Be)continue;let tt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(be),We=Be.programConfigurations.get(B.id),it=ue.useProgram(Jt?"fillExtrusionPattern":"fillExtrusion",We);Jt&&(ue.context.activeTexture.set(ot.TEXTURE0),Re.imageAtlasTexture.bind(ot.LINEAR,ot.CLAMP_TO_EDGE),We.updatePaintBuffers(xr)),ju(We,Tt,ve,Re,B);let Dt=ue.translatePosMatrix(be.posMatrix,Re,B.paint.get("fill-extrusion-translate"),B.paint.get("fill-extrusion-translate-anchor")),Ht=B.paint.get("fill-extrusion-vertical-gradient"),rr=Jt?ki(Dt,ue,Ht,Pr,be,xr,Re):En(Dt,ue,Ht,Pr);it.draw(Xe,Xe.gl.TRIANGLES,ee,le,qe,Pa.backCCW,rr,tt,B.id,Be.layoutVertexBuffer,Be.indexBuffer,Be.segments,B.paint,ue.transform.zoom,We,ue.style.map.terrain&&Be.centroidVertexBuffer)}}function of(ue,w,B,Q,ee,le,qe){let Xe=ue.context,ot=Xe.gl,Tt=B.fbo;if(!Tt)return;let Kt=ue.useProgram("hillshade"),Jt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(w);Xe.activeTexture.set(ot.TEXTURE0),ot.bindTexture(ot.TEXTURE_2D,Tt.colorAttachment.get()),Kt.draw(Xe,ot.TRIANGLES,ee,le,qe,Pa.disabled,((xr,Pr,ve,be)=>{let Re=ve.paint.get("hillshade-shadow-color"),Be=ve.paint.get("hillshade-highlight-color"),tt=ve.paint.get("hillshade-accent-color"),We=ve.paint.get("hillshade-illumination-direction")*(Math.PI/180);ve.paint.get("hillshade-illumination-anchor")==="viewport"&&(We-=xr.transform.angle);let it=!xr.options.moving;return{u_matrix:be?be.posMatrix:xr.transform.calculatePosMatrix(Pr.tileID.toUnwrapped(),it),u_image:0,u_latrange:zs(0,Pr.tileID),u_light:[ve.paint.get("hillshade-exaggeration"),We],u_shadow:Re,u_highlight:Be,u_accent:tt}})(ue,B,Q,Jt?w:null),Jt,Q.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}function Nl(ue,w,B,Q,ee,le){let qe=ue.context,Xe=qe.gl,ot=w.dem;if(ot&&ot.data){let Tt=ot.dim,Kt=ot.stride,Jt=ot.getPixels();if(qe.activeTexture.set(Xe.TEXTURE1),qe.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||ue.getTileTexture(Kt),w.demTexture){let Pr=w.demTexture;Pr.update(Jt,{premultiply:!1}),Pr.bind(Xe.NEAREST,Xe.CLAMP_TO_EDGE)}else w.demTexture=new g(qe,Jt,Xe.RGBA,{premultiply:!1}),w.demTexture.bind(Xe.NEAREST,Xe.CLAMP_TO_EDGE);qe.activeTexture.set(Xe.TEXTURE0);let xr=w.fbo;if(!xr){let Pr=new g(qe,{width:Tt,height:Tt,data:null},Xe.RGBA);Pr.bind(Xe.LINEAR,Xe.CLAMP_TO_EDGE),xr=w.fbo=qe.createFramebuffer(Tt,Tt,!0,!1),xr.colorAttachment.set(Pr.texture)}qe.bindFramebuffer.set(xr.framebuffer),qe.viewport.set([0,0,Tt,Tt]),ue.useProgram("hillshadePrepare").draw(qe,Xe.TRIANGLES,Q,ee,le,Pa.disabled,((Pr,ve)=>{let be=ve.stride,Re=a.H();return a.aP(Re,0,a.X,-a.X,0,0,1),a.J(Re,Re,[0,-a.X,0]),{u_matrix:Re,u_image:1,u_dimension:[be,be],u_zoom:Pr.overscaledZ,u_unpack:ve.getUnpackVector()}})(w.tileID,ot),null,B.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Kc(ue,w,B,Q,ee,le){let qe=Q.paint.get("raster-fade-duration");if(!le&&qe>0){let Xe=u.now(),ot=(Xe-ue.timeAdded)/qe,Tt=w?(Xe-w.timeAdded)/qe:-1,Kt=B.getSource(),Jt=ee.coveringZoomLevel({tileSize:Kt.tileSize,roundZoom:Kt.roundZoom}),xr=!w||Math.abs(w.tileID.overscaledZ-Jt)>Math.abs(ue.tileID.overscaledZ-Jt),Pr=xr&&ue.refreshedUponExpiration?1:a.ac(xr?ot:1-Tt,0,1);return ue.refreshedUponExpiration&&ot>=1&&(ue.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Pr}:{opacity:Pr,mix:0}}return{opacity:1,mix:0}}let Rc=new a.aM(1,0,0,1),ms=new a.aM(0,1,0,1),jf=new a.aM(0,0,1,1),Uh=new a.aM(1,0,1,1),rh=new a.aM(0,1,1,1);function sf(ue,w,B,Q){Mu(ue,0,w+B/2,ue.transform.width,B,Q)}function bh(ue,w,B,Q){Mu(ue,w-B/2,0,B,ue.transform.height,Q)}function Mu(ue,w,B,Q,ee,le){let qe=ue.context,Xe=qe.gl;Xe.enable(Xe.SCISSOR_TEST),Xe.scissor(w*ue.pixelRatio,B*ue.pixelRatio,Q*ue.pixelRatio,ee*ue.pixelRatio),qe.clear({color:le}),Xe.disable(Xe.SCISSOR_TEST)}function ih(ue,w,B){let Q=ue.context,ee=Q.gl,le=B.posMatrix,qe=ue.useProgram("debug"),Xe=Po.disabled,ot=Yo.disabled,Tt=ue.colorModeForRenderPass(),Kt="$debug",Jt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(B);Q.activeTexture.set(ee.TEXTURE0);let xr=w.getTileByID(B.key).latestRawTileData,Pr=Math.floor((xr&&xr.byteLength||0)/1024),ve=w.getTile(B).tileSize,be=512/Math.min(ve,512)*(B.overscaledZ/ue.transform.zoom)*.5,Re=B.canonical.toString();B.overscaledZ!==B.canonical.z&&(Re+=` => ${B.overscaledZ}`),function(Be,tt){Be.initDebugOverlayCanvas();let We=Be.debugOverlayCanvas,it=Be.context.gl,Dt=Be.debugOverlayCanvas.getContext("2d");Dt.clearRect(0,0,We.width,We.height),Dt.shadowColor="white",Dt.shadowBlur=2,Dt.lineWidth=1.5,Dt.strokeStyle="white",Dt.textBaseline="top",Dt.font="bold 36px Open Sans, sans-serif",Dt.fillText(tt,5,5),Dt.strokeText(tt,5,5),Be.debugOverlayTexture.update(We),Be.debugOverlayTexture.bind(it.LINEAR,it.CLAMP_TO_EDGE)}(ue,`${Re} ${Pr}kB`),qe.draw(Q,ee.TRIANGLES,Xe,ot,Bs.alphaBlended,Pa.disabled,po(le,a.aM.transparent,be),null,Kt,ue.debugBuffer,ue.quadTriangleIndexBuffer,ue.debugSegments),qe.draw(Q,ee.LINE_STRIP,Xe,ot,Tt,Pa.disabled,po(le,a.aM.red),Jt,Kt,ue.debugBuffer,ue.tileBorderIndexBuffer,ue.debugSegments)}function Ws(ue,w,B){let Q=ue.context,ee=Q.gl,le=ue.colorModeForRenderPass(),qe=new Po(ee.LEQUAL,Po.ReadWrite,ue.depthRangeFor3D),Xe=ue.useProgram("terrain"),ot=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,ue.width,ue.height]);for(let Tt of B){let Kt=ue.renderToTexture.getTexture(Tt),Jt=w.getTerrainData(Tt.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Kt.texture);let xr=ue.transform.calculatePosMatrix(Tt.tileID.toUnwrapped()),Pr=w.getMeshFrameDelta(ue.transform.zoom),ve=ue.transform.calculateFogMatrix(Tt.tileID.toUnwrapped()),be=Qr(xr,Pr,ve,ue.style.sky,ue.transform.pitch);Xe.draw(Q,ee.TRIANGLES,qe,Yo.disabled,le,Pa.backCCW,be,Jt,"terrain",ot.vertexBuffer,ot.indexBuffer,ot.segments)}}class Eu{constructor(w,B,Q){this.vertexBuffer=w,this.indexBuffer=B,this.segments=Q}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class Dc{constructor(w,B){this.context=new ad(w),this.transform=B,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:a.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=yt.maxUnderzooming+yt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Wo}resize(w,B,Q){if(this.width=Math.floor(w*Q),this.height=Math.floor(B*Q),this.pixelRatio=Q,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let ee of this.style._order)this.style._layers[ee].resize()}setup(){let w=this.context,B=new a.aX;B.emplaceBack(0,0),B.emplaceBack(a.X,0),B.emplaceBack(0,a.X),B.emplaceBack(a.X,a.X),this.tileExtentBuffer=w.createVertexBuffer(B,vo.members),this.tileExtentSegments=a.a0.simpleSegment(0,0,4,2);let Q=new a.aX;Q.emplaceBack(0,0),Q.emplaceBack(a.X,0),Q.emplaceBack(0,a.X),Q.emplaceBack(a.X,a.X),this.debugBuffer=w.createVertexBuffer(Q,vo.members),this.debugSegments=a.a0.simpleSegment(0,0,4,5);let ee=new a.$;ee.emplaceBack(0,0,0,0),ee.emplaceBack(a.X,0,a.X,0),ee.emplaceBack(0,a.X,0,a.X),ee.emplaceBack(a.X,a.X,a.X,a.X),this.rasterBoundsBuffer=w.createVertexBuffer(ee,lt.members),this.rasterBoundsSegments=a.a0.simpleSegment(0,0,4,2);let le=new a.aX;le.emplaceBack(0,0),le.emplaceBack(1,0),le.emplaceBack(0,1),le.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(le,vo.members),this.viewportSegments=a.a0.simpleSegment(0,0,4,2);let qe=new a.aZ;qe.emplaceBack(0),qe.emplaceBack(1),qe.emplaceBack(3),qe.emplaceBack(2),qe.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(qe);let Xe=new a.aY;Xe.emplaceBack(0,1,2),Xe.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(Xe);let ot=this.context.gl;this.stencilClearMode=new Yo({func:ot.ALWAYS,mask:0},0,255,ot.ZERO,ot.ZERO,ot.ZERO)}clearStencil(){let w=this.context,B=w.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let Q=a.H();a.aP(Q,0,this.width,this.height,0,0,1),a.K(Q,Q,[B.drawingBufferWidth,B.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(w,B.TRIANGLES,Po.disabled,this.stencilClearMode,Bs.disabled,Pa.disabled,Lo(Q),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(w,B){if(this.currentStencilSource===w.source||!w.isTileClipped()||!B||!B.length)return;this.currentStencilSource=w.source;let Q=this.context,ee=Q.gl;this.nextStencilID+B.length>256&&this.clearStencil(),Q.setColorMode(Bs.disabled),Q.setDepthMode(Po.disabled);let le=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let qe of B){let Xe=this._tileClippingMaskIDs[qe.key]=this.nextStencilID++,ot=this.style.map.terrain&&this.style.map.terrain.getTerrainData(qe);le.draw(Q,ee.TRIANGLES,Po.disabled,new Yo({func:ee.ALWAYS,mask:0},Xe,255,ee.KEEP,ee.KEEP,ee.REPLACE),Bs.disabled,Pa.disabled,Lo(qe.posMatrix),ot,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let w=this.nextStencilID++,B=this.context.gl;return new Yo({func:B.NOTEQUAL,mask:255},w,255,B.KEEP,B.KEEP,B.REPLACE)}stencilModeForClipping(w){let B=this.context.gl;return new Yo({func:B.EQUAL,mask:255},this._tileClippingMaskIDs[w.key],0,B.KEEP,B.KEEP,B.REPLACE)}stencilConfigForOverlap(w){let B=this.context.gl,Q=w.sort((qe,Xe)=>Xe.overscaledZ-qe.overscaledZ),ee=Q[Q.length-1].overscaledZ,le=Q[0].overscaledZ-ee+1;if(le>1){this.currentStencilSource=void 0,this.nextStencilID+le>256&&this.clearStencil();let qe={};for(let Xe=0;Xe({u_sky_color:Be.properties.get("sky-color"),u_horizon_color:Be.properties.get("horizon-color"),u_horizon:(tt.height/2+tt.getHorizon())*We,u_sky_horizon_blend:Be.properties.get("sky-horizon-blend")*tt.height/2*We}))(Tt,ot.style.map.transform,ot.pixelRatio),Pr=new Po(Jt.LEQUAL,Po.ReadWrite,[0,1]),ve=Yo.disabled,be=ot.colorModeForRenderPass(),Re=ot.useProgram("sky");if(!Tt.mesh){let Be=new a.aX;Be.emplaceBack(-1,-1),Be.emplaceBack(1,-1),Be.emplaceBack(1,1),Be.emplaceBack(-1,1);let tt=new a.aY;tt.emplaceBack(0,1,2),tt.emplaceBack(0,2,3),Tt.mesh=new Eu(Kt.createVertexBuffer(Be,vo.members),Kt.createIndexBuffer(tt),a.a0.simpleSegment(0,0,Be.length,tt.length))}Re.draw(Kt,Jt.TRIANGLES,Pr,ve,be,Pa.disabled,xr,void 0,"sky",Tt.mesh.vertexBuffer,Tt.mesh.indexBuffer,Tt.mesh.segments)}(this,this.style.sky),this._showOverdrawInspector=B.showOverdrawInspector,this.depthRangeFor3D=[0,1-(w._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=Q.length-1;this.currentLayer>=0;this.currentLayer--){let ot=this.style._layers[Q[this.currentLayer]],Tt=ee[ot.source],Kt=le[ot.source];this._renderTileClippingMasks(ot,Kt),this.renderLayer(this,Tt,ot,Kt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerRe.source&&!Re.isHidden(Kt)?[Tt.sourceCaches[Re.source]]:[]),Pr=xr.filter(Re=>Re.getSource().type==="vector"),ve=xr.filter(Re=>Re.getSource().type!=="vector"),be=Re=>{(!Jt||Jt.getSource().maxzoombe(Re)),Jt||ve.forEach(Re=>be(Re)),Jt}(this.style,this.transform.zoom);ot&&function(Tt,Kt,Jt){for(let xr=0;xr0),ee&&(a.b0(B,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(le,qe){let Xe=le.context,ot=Xe.gl,Tt=Bs.unblended,Kt=new Po(ot.LEQUAL,Po.ReadWrite,[0,1]),Jt=qe.getTerrainMesh(),xr=qe.sourceCache.getRenderableTiles(),Pr=le.useProgram("terrainDepth");Xe.bindFramebuffer.set(qe.getFramebuffer("depth").framebuffer),Xe.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Xe.clear({color:a.aM.transparent,depth:1});for(let ve of xr){let be=qe.getTerrainData(ve.tileID),Re={u_matrix:le.transform.calculatePosMatrix(ve.tileID.toUnwrapped()),u_ele_delta:qe.getMeshFrameDelta(le.transform.zoom)};Pr.draw(Xe,ot.TRIANGLES,Kt,Yo.disabled,Tt,Pa.backCCW,Re,be,"terrain",Jt.vertexBuffer,Jt.indexBuffer,Jt.segments)}Xe.bindFramebuffer.set(null),Xe.viewport.set([0,0,le.width,le.height])}(this,this.style.map.terrain),function(le,qe){let Xe=le.context,ot=Xe.gl,Tt=Bs.unblended,Kt=new Po(ot.LEQUAL,Po.ReadWrite,[0,1]),Jt=qe.getTerrainMesh(),xr=qe.getCoordsTexture(),Pr=qe.sourceCache.getRenderableTiles(),ve=le.useProgram("terrainCoords");Xe.bindFramebuffer.set(qe.getFramebuffer("coords").framebuffer),Xe.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Xe.clear({color:a.aM.transparent,depth:1}),qe.coordsIndex=[];for(let be of Pr){let Re=qe.getTerrainData(be.tileID);Xe.activeTexture.set(ot.TEXTURE0),ot.bindTexture(ot.TEXTURE_2D,xr.texture);let Be={u_matrix:le.transform.calculatePosMatrix(be.tileID.toUnwrapped()),u_terrain_coords_id:(255-qe.coordsIndex.length)/255,u_texture:0,u_ele_delta:qe.getMeshFrameDelta(le.transform.zoom)};ve.draw(Xe,ot.TRIANGLES,Kt,Yo.disabled,Tt,Pa.backCCW,Be,Re,"terrain",Jt.vertexBuffer,Jt.indexBuffer,Jt.segments),qe.coordsIndex.push(be.tileID.key)}Xe.bindFramebuffer.set(null),Xe.viewport.set([0,0,le.width,le.height])}(this,this.style.map.terrain))}renderLayer(w,B,Q,ee){if(!Q.isHidden(this.transform.zoom)&&(Q.type==="background"||Q.type==="custom"||(ee||[]).length))switch(this.id=Q.id,Q.type){case"symbol":(function(le,qe,Xe,ot,Tt){if(le.renderPass!=="translucent")return;let Kt=Yo.disabled,Jt=le.colorModeForRenderPass();(Xe._unevaluatedLayout.hasValue("text-variable-anchor")||Xe._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(xr,Pr,ve,be,Re,Be,tt,We,it){let Dt=Pr.transform,Ht=yn(),rr=Re==="map",dr=Be==="map";for(let Sr of xr){let Or=be.getTile(Sr),jr=Or.getBucket(ve);if(!jr||!jr.text||!jr.text.segments.get().length)continue;let ii=a.ag(jr.textSizeData,Dt.zoom),Li=Pn(Or,1,Pr.transform.zoom),un=Wr(Sr.posMatrix,dr,rr,Pr.transform,Li),sn=ve.layout.get("icon-text-fit")!=="none"&&jr.hasIconData();if(ii){let In=Math.pow(2,Dt.zoom-Or.tileID.overscaledZ),Kn=Pr.style.map.terrain?(fa,$a)=>Pr.style.map.terrain.getElevation(Sr,fa,$a):null,Ta=Ht.translatePosition(Dt,Or,tt,We);mf(jr,rr,dr,it,Dt,un,Sr.posMatrix,In,ii,sn,Ht,Ta,Sr.toUnwrapped(),Kn)}}}(ot,le,Xe,qe,Xe.layout.get("text-rotation-alignment"),Xe.layout.get("text-pitch-alignment"),Xe.paint.get("text-translate"),Xe.paint.get("text-translate-anchor"),Tt),Xe.paint.get("icon-opacity").constantOr(1)!==0&&xh(le,qe,Xe,ot,!1,Xe.paint.get("icon-translate"),Xe.paint.get("icon-translate-anchor"),Xe.layout.get("icon-rotation-alignment"),Xe.layout.get("icon-pitch-alignment"),Xe.layout.get("icon-keep-upright"),Kt,Jt),Xe.paint.get("text-opacity").constantOr(1)!==0&&xh(le,qe,Xe,ot,!0,Xe.paint.get("text-translate"),Xe.paint.get("text-translate-anchor"),Xe.layout.get("text-rotation-alignment"),Xe.layout.get("text-pitch-alignment"),Xe.layout.get("text-keep-upright"),Kt,Jt),qe.map.showCollisionBoxes&&(Hu(le,qe,Xe,ot,!0),Hu(le,qe,Xe,ot,!1))})(w,B,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(le,qe,Xe,ot){if(le.renderPass!=="translucent")return;let Tt=Xe.paint.get("circle-opacity"),Kt=Xe.paint.get("circle-stroke-width"),Jt=Xe.paint.get("circle-stroke-opacity"),xr=!Xe.layout.get("circle-sort-key").isConstant();if(Tt.constantOr(1)===0&&(Kt.constantOr(1)===0||Jt.constantOr(1)===0))return;let Pr=le.context,ve=Pr.gl,be=le.depthModeForSublayer(0,Po.ReadOnly),Re=Yo.disabled,Be=le.colorModeForRenderPass(),tt=[];for(let We=0;WeWe.sortKey-it.sortKey);for(let We of tt){let{programConfiguration:it,program:Dt,layoutVertexBuffer:Ht,indexBuffer:rr,uniformValues:dr,terrainData:Sr}=We.state;Dt.draw(Pr,ve.TRIANGLES,be,Re,Be,Pa.disabled,dr,Sr,Xe.id,Ht,rr,We.segments,Xe.paint,le.transform.zoom,it)}})(w,B,Q,ee);break;case"heatmap":(function(le,qe,Xe,ot){if(Xe.paint.get("heatmap-opacity")===0)return;let Tt=le.context;if(le.style.map.terrain){for(let Kt of ot){let Jt=qe.getTile(Kt);qe.hasRenderableParent(Kt)||(le.renderPass==="offscreen"?yf(le,Jt,Xe,Kt):le.renderPass==="translucent"&&Yc(le,Xe,Kt))}Tt.viewport.set([0,0,le.width,le.height])}else le.renderPass==="offscreen"?function(Kt,Jt,xr,Pr){let ve=Kt.context,be=ve.gl,Re=Yo.disabled,Be=new Bs([be.ONE,be.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(tt,We,it){let Dt=tt.gl;tt.activeTexture.set(Dt.TEXTURE1),tt.viewport.set([0,0,We.width/4,We.height/4]);let Ht=it.heatmapFbos.get(a.aU);Ht?(Dt.bindTexture(Dt.TEXTURE_2D,Ht.colorAttachment.get()),tt.bindFramebuffer.set(Ht.framebuffer)):(Ht=eh(tt,We.width/4,We.height/4),it.heatmapFbos.set(a.aU,Ht))})(ve,Kt,xr),ve.clear({color:a.aM.transparent});for(let tt=0;tt20&&Kt.texParameterf(Kt.TEXTURE_2D,Tt.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Tt.extTextureFilterAnisotropicMax);let jr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(tt),ii=jr?tt:null,Li=ii?ii.posMatrix:le.transform.calculatePosMatrix(tt.toUnwrapped(),Be),un=fl(Li,Sr||[0,0],dr||1,rr,Xe);Jt instanceof Gt?xr.draw(Tt,Kt.TRIANGLES,We,Yo.disabled,Pr,Pa.disabled,un,jr,Xe.id,Jt.boundsBuffer,le.quadTriangleIndexBuffer,Jt.boundsSegments):xr.draw(Tt,Kt.TRIANGLES,We,ve[tt.overscaledZ],Pr,Pa.disabled,un,jr,Xe.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments)}})(w,B,Q,ee);break;case"background":(function(le,qe,Xe,ot){let Tt=Xe.paint.get("background-color"),Kt=Xe.paint.get("background-opacity");if(Kt===0)return;let Jt=le.context,xr=Jt.gl,Pr=le.transform,ve=Pr.tileSize,be=Xe.paint.get("background-pattern");if(le.isPatternMissing(be))return;let Re=!be&&Tt.a===1&&Kt===1&&le.opaquePassEnabledForLayer()?"opaque":"translucent";if(le.renderPass!==Re)return;let Be=Yo.disabled,tt=le.depthModeForSublayer(0,Re==="opaque"?Po.ReadWrite:Po.ReadOnly),We=le.colorModeForRenderPass(),it=le.useProgram(be?"backgroundPattern":"background"),Dt=ot||Pr.coveringTiles({tileSize:ve,terrain:le.style.map.terrain});be&&(Jt.activeTexture.set(xr.TEXTURE0),le.imageManager.bind(le.context));let Ht=Xe.getCrossfadeParameters();for(let rr of Dt){let dr=ot?rr.posMatrix:le.transform.calculatePosMatrix(rr.toUnwrapped()),Sr=be?Su(dr,Kt,le,be,{tileID:rr,tileSize:ve},Ht):Zl(dr,Kt,Tt),Or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(rr);it.draw(Jt,xr.TRIANGLES,tt,Be,We,Pa.disabled,Sr,Or,Xe.id,le.tileExtentBuffer,le.quadTriangleIndexBuffer,le.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(le,qe,Xe){let ot=le.context,Tt=Xe.implementation;if(le.renderPass==="offscreen"){let Kt=Tt.prerender;Kt&&(le.setCustomLayerDefaults(),ot.setColorMode(le.colorModeForRenderPass()),Kt.call(Tt,ot.gl,le.transform.customLayerMatrix()),ot.setDirty(),le.setBaseState())}else if(le.renderPass==="translucent"){le.setCustomLayerDefaults(),ot.setColorMode(le.colorModeForRenderPass()),ot.setStencilMode(Yo.disabled);let Kt=Tt.renderingMode==="3d"?new Po(le.context.gl.LEQUAL,Po.ReadWrite,le.depthRangeFor3D):le.depthModeForSublayer(0,Po.ReadOnly);ot.setDepthMode(Kt),Tt.render(ot.gl,le.transform.customLayerMatrix(),{farZ:le.transform.farZ,nearZ:le.transform.nearZ,fov:le.transform._fov,modelViewProjectionMatrix:le.transform.modelViewProjectionMatrix,projectionMatrix:le.transform.projectionMatrix}),ot.setDirty(),le.setBaseState(),ot.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,B,Q,ee,le){if(!Q[0]&&!Q[1])return w;let qe=le?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(qe){let Tt=Math.sin(qe),Kt=Math.cos(qe);Q=[Q[0]*Kt-Q[1]*Tt,Q[0]*Tt+Q[1]*Kt]}let Xe=[le?Q[0]:Pn(B,Q[0],this.transform.zoom),le?Q[1]:Pn(B,Q[1],this.transform.zoom),0],ot=new Float32Array(16);return a.J(ot,w,Xe),ot}saveTileTexture(w){let B=this._tileTextures[w.size[0]];B?B.push(w):this._tileTextures[w.size[0]]=[w]}getTileTexture(w){let B=this._tileTextures[w];return B&&B.length>0?B.pop():null}isPatternMissing(w){if(!w)return!1;if(!w.from||!w.to)return!0;let B=this.imageManager.getPattern(w.from.toString()),Q=this.imageManager.getPattern(w.to.toString());return!B||!Q}useProgram(w,B){this.cache=this.cache||{};let Q=w+(B?B.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[Q]||(this.cache[Q]=new fn(this.context,jn[w],B,nc[w],this._showOverdrawInspector,this.style.map.terrain)),this.cache[Q]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let w=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(w.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new g(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:w,drawingBufferHeight:B}=this.context.gl;return this.width!==w||this.height!==B}}class ks{constructor(w,B){this.points=w,this.planes=B}static fromInvProjectionMatrix(w,B,Q){let ee=Math.pow(2,Q),le=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(Xe=>{let ot=1/(Xe=a.af([],Xe,w))[3]/B*ee;return a.b1(Xe,Xe,[ot,ot,1/Xe[3],ot])}),qe=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(Xe=>{let ot=function(xr,Pr){var ve=Pr[0],be=Pr[1],Re=Pr[2],Be=ve*ve+be*be+Re*Re;return Be>0&&(Be=1/Math.sqrt(Be)),xr[0]=Pr[0]*Be,xr[1]=Pr[1]*Be,xr[2]=Pr[2]*Be,xr}([],function(xr,Pr,ve){var be=Pr[0],Re=Pr[1],Be=Pr[2],tt=ve[0],We=ve[1],it=ve[2];return xr[0]=Re*it-Be*We,xr[1]=Be*tt-be*it,xr[2]=be*We-Re*tt,xr}([],L([],le[Xe[0]],le[Xe[1]]),L([],le[Xe[2]],le[Xe[1]]))),Tt=-((Kt=ot)[0]*(Jt=le[Xe[1]])[0]+Kt[1]*Jt[1]+Kt[2]*Jt[2]);var Kt,Jt;return ot.concat(Tt)});return new ks(le,qe)}}class bc{constructor(w,B){this.min=w,this.max=B,this.center=function(Q,ee,le){return Q[0]=.5*ee[0],Q[1]=.5*ee[1],Q[2]=.5*ee[2],Q}([],function(Q,ee,le){return Q[0]=ee[0]+le[0],Q[1]=ee[1]+le[1],Q[2]=ee[2]+le[2],Q}([],this.min,this.max))}quadrant(w){let B=[w%2==0,w<2],Q=E(this.min),ee=E(this.max);for(let le=0;le=0&&qe++;if(qe===0)return 0;qe!==B.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let le=Number.MAX_VALUE,qe=-Number.MAX_VALUE;for(let Xe=0;Xethis.max[ee]-this.min[ee])return 0}return 1}}class hu{constructor(w=0,B=0,Q=0,ee=0){if(isNaN(w)||w<0||isNaN(B)||B<0||isNaN(Q)||Q<0||isNaN(ee)||ee<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=w,this.bottom=B,this.left=Q,this.right=ee}interpolate(w,B,Q){return B.top!=null&&w.top!=null&&(this.top=a.y.number(w.top,B.top,Q)),B.bottom!=null&&w.bottom!=null&&(this.bottom=a.y.number(w.bottom,B.bottom,Q)),B.left!=null&&w.left!=null&&(this.left=a.y.number(w.left,B.left,Q)),B.right!=null&&w.right!=null&&(this.right=a.y.number(w.right,B.right,Q)),this}getCenter(w,B){let Q=a.ac((this.left+w-this.right)/2,0,w),ee=a.ac((this.top+B-this.bottom)/2,0,B);return new a.P(Q,ee)}equals(w){return this.top===w.top&&this.bottom===w.bottom&&this.left===w.left&&this.right===w.right}clone(){return new hu(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let _u=85.051129;class al{constructor(w,B,Q,ee,le){this.tileSize=512,this._renderWorldCopies=le===void 0||!!le,this._minZoom=w||0,this._maxZoom=B||22,this._minPitch=Q==null?0:Q,this._maxPitch=ee==null?60:ee,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new hu,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let w=new al(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return w.apply(this),w}apply(w){this.tileSize=w.tileSize,this.latRange=w.latRange,this.lngRange=w.lngRange,this.width=w.width,this.height=w.height,this._center=w._center,this._elevation=w._elevation,this.minElevationForCurrentTile=w.minElevationForCurrentTile,this.zoom=w.zoom,this.angle=w.angle,this._fov=w._fov,this._pitch=w._pitch,this._unmodified=w._unmodified,this._edgeInsets=w._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(w){this._minZoom!==w&&(this._minZoom=w,this.zoom=Math.max(this.zoom,w))}get maxZoom(){return this._maxZoom}set maxZoom(w){this._maxZoom!==w&&(this._maxZoom=w,this.zoom=Math.min(this.zoom,w))}get minPitch(){return this._minPitch}set minPitch(w){this._minPitch!==w&&(this._minPitch=w,this.pitch=Math.max(this.pitch,w))}get maxPitch(){return this._maxPitch}set maxPitch(w){this._maxPitch!==w&&(this._maxPitch=w,this.pitch=Math.min(this.pitch,w))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(w){w===void 0?w=!0:w===null&&(w=!1),this._renderWorldCopies=w}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(w){let B=-a.b3(w,-180,180)*Math.PI/180;this.angle!==B&&(this._unmodified=!1,this.angle=B,this._calcMatrices(),this.rotationMatrix=function(){var Q=new a.A(4);return a.A!=Float32Array&&(Q[1]=0,Q[2]=0),Q[0]=1,Q[3]=1,Q}(),function(Q,ee,le){var qe=ee[0],Xe=ee[1],ot=ee[2],Tt=ee[3],Kt=Math.sin(le),Jt=Math.cos(le);Q[0]=qe*Jt+ot*Kt,Q[1]=Xe*Jt+Tt*Kt,Q[2]=qe*-Kt+ot*Jt,Q[3]=Xe*-Kt+Tt*Jt}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(w){let B=a.ac(w,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==B&&(this._unmodified=!1,this._pitch=B,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(w){w=Math.max(.01,Math.min(60,w)),this._fov!==w&&(this._unmodified=!1,this._fov=w/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(w){let B=Math.min(Math.max(w,this.minZoom),this.maxZoom);this._zoom!==B&&(this._unmodified=!1,this._zoom=B,this.tileZoom=Math.max(0,Math.floor(B)),this.scale=this.zoomScale(B),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(w){w.lat===this._center.lat&&w.lng===this._center.lng||(this._unmodified=!1,this._center=w,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(w){w!==this._elevation&&(this._elevation=w,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(w){this._edgeInsets.equals(w)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,w,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(w){return this._edgeInsets.equals(w)}interpolatePadding(w,B,Q){this._unmodified=!1,this._edgeInsets.interpolate(w,B,Q),this._constrain(),this._calcMatrices()}coveringZoomLevel(w){let B=(w.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/w.tileSize));return Math.max(0,B)}getVisibleUnwrappedCoordinates(w){let B=[new a.b4(0,w)];if(this._renderWorldCopies){let Q=this.pointCoordinate(new a.P(0,0)),ee=this.pointCoordinate(new a.P(this.width,0)),le=this.pointCoordinate(new a.P(this.width,this.height)),qe=this.pointCoordinate(new a.P(0,this.height)),Xe=Math.floor(Math.min(Q.x,ee.x,le.x,qe.x)),ot=Math.floor(Math.max(Q.x,ee.x,le.x,qe.x)),Tt=1;for(let Kt=Xe-Tt;Kt<=ot+Tt;Kt++)Kt!==0&&B.push(new a.b4(Kt,w))}return B}coveringTiles(w){var B,Q;let ee=this.coveringZoomLevel(w),le=ee;if(w.minzoom!==void 0&&eew.maxzoom&&(ee=w.maxzoom);let qe=this.pointCoordinate(this.getCameraPoint()),Xe=a.Z.fromLngLat(this.center),ot=Math.pow(2,ee),Tt=[ot*qe.x,ot*qe.y,0],Kt=[ot*Xe.x,ot*Xe.y,0],Jt=ks.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),xr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(xr=ee);let Pr=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,ve=We=>({aabb:new bc([We*ot,0,0],[(We+1)*ot,ot,0]),zoom:0,x:0,y:0,wrap:We,fullyVisible:!1}),be=[],Re=[],Be=ee,tt=w.reparseOverscaled?le:ee;if(this._renderWorldCopies)for(let We=1;We<=3;We++)be.push(ve(-We)),be.push(ve(We));for(be.push(ve(0));be.length>0;){let We=be.pop(),it=We.x,Dt=We.y,Ht=We.fullyVisible;if(!Ht){let jr=We.aabb.intersects(Jt);if(jr===0)continue;Ht=jr===2}let rr=w.terrain?Tt:Kt,dr=We.aabb.distanceX(rr),Sr=We.aabb.distanceY(rr),Or=Math.max(Math.abs(dr),Math.abs(Sr));if(We.zoom===Be||Or>Pr+(1<=xr){let jr=Be-We.zoom,ii=Tt[0]-.5-(it<>1),un=We.zoom+1,sn=We.aabb.quadrant(jr);if(w.terrain){let In=new a.S(un,We.wrap,un,ii,Li),Kn=w.terrain.getMinMaxElevation(In),Ta=(B=Kn.minElevation)!==null&&B!==void 0?B:this.elevation,fa=(Q=Kn.maxElevation)!==null&&Q!==void 0?Q:this.elevation;sn=new bc([sn.min[0],sn.min[1],Ta],[sn.max[0],sn.max[1],fa])}be.push({aabb:sn,zoom:un,x:ii,y:Li,wrap:We.wrap,fullyVisible:Ht})}}return Re.sort((We,it)=>We.distanceSq-it.distanceSq).map(We=>We.tileID)}resize(w,B){this.width=w,this.height=B,this.pixelsToGLUnits=[2/w,-2/B],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(w){return Math.pow(2,w)}scaleZoom(w){return Math.log(w)/Math.LN2}project(w){let B=a.ac(w.lat,-85.051129,_u);return new a.P(a.O(w.lng)*this.worldSize,a.Q(B)*this.worldSize)}unproject(w){return new a.Z(w.x/this.worldSize,w.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(w){let B=this.elevation,Q=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,ee=this.pointLocation(this.centerPoint,w),le=w.getElevationForLngLatZoom(ee,this.tileZoom);if(!(this.elevation-le))return;let qe=Q+B-le,Xe=Math.cos(this._pitch)*this.cameraToCenterDistance/qe/a.b5(1,ee.lat),ot=this.scaleZoom(Xe/this.tileSize);this._elevation=le,this._center=ee,this.zoom=ot}setLocationAtPoint(w,B){let Q=this.pointCoordinate(B),ee=this.pointCoordinate(this.centerPoint),le=this.locationCoordinate(w),qe=new a.Z(le.x-(Q.x-ee.x),le.y-(Q.y-ee.y));this.center=this.coordinateLocation(qe),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(w,B){return B?this.coordinatePoint(this.locationCoordinate(w),B.getElevationForLngLatZoom(w,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(w))}pointLocation(w,B){return this.coordinateLocation(this.pointCoordinate(w,B))}locationCoordinate(w){return a.Z.fromLngLat(w)}coordinateLocation(w){return w&&w.toLngLat()}pointCoordinate(w,B){if(B){let xr=B.pointCoordinate(w);if(xr!=null)return xr}let Q=[w.x,w.y,0,1],ee=[w.x,w.y,1,1];a.af(Q,Q,this.pixelMatrixInverse),a.af(ee,ee,this.pixelMatrixInverse);let le=Q[3],qe=ee[3],Xe=Q[1]/le,ot=ee[1]/qe,Tt=Q[2]/le,Kt=ee[2]/qe,Jt=Tt===Kt?0:(0-Tt)/(Kt-Tt);return new a.Z(a.y.number(Q[0]/le,ee[0]/qe,Jt)/this.worldSize,a.y.number(Xe,ot,Jt)/this.worldSize)}coordinatePoint(w,B=0,Q=this.pixelMatrix){let ee=[w.x*this.worldSize,w.y*this.worldSize,B,1];return a.af(ee,ee,Q),new a.P(ee[0]/ee[3],ee[1]/ee[3])}getBounds(){let w=Math.max(0,this.height/2-this.getHorizon());return new ce().extend(this.pointLocation(new a.P(0,w))).extend(this.pointLocation(new a.P(this.width,w))).extend(this.pointLocation(new a.P(this.width,this.height))).extend(this.pointLocation(new a.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new ce([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(w){w?(this.lngRange=[w.getWest(),w.getEast()],this.latRange=[w.getSouth(),w.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,_u])}calculateTileMatrix(w){let B=w.canonical,Q=this.worldSize/this.zoomScale(B.z),ee=B.x+Math.pow(2,B.z)*w.wrap,le=a.an(new Float64Array(16));return a.J(le,le,[ee*Q,B.y*Q,0]),a.K(le,le,[Q/a.X,Q/a.X,1]),le}calculatePosMatrix(w,B=!1){let Q=w.key,ee=B?this._alignedPosMatrixCache:this._posMatrixCache;if(ee[Q])return ee[Q];let le=this.calculateTileMatrix(w);return a.L(le,B?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,le),ee[Q]=new Float32Array(le),ee[Q]}calculateFogMatrix(w){let B=w.key,Q=this._fogMatrixCache;if(Q[B])return Q[B];let ee=this.calculateTileMatrix(w);return a.L(ee,this.fogMatrix,ee),Q[B]=new Float32Array(ee),Q[B]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(w,B){B=a.ac(+B,this.minZoom,this.maxZoom);let Q={center:new a.N(w.lng,w.lat),zoom:B},ee=this.lngRange;if(!this._renderWorldCopies&&ee===null){let We=179.9999999999;ee=[-We,We]}let le=this.tileSize*this.zoomScale(Q.zoom),qe=0,Xe=le,ot=0,Tt=le,Kt=0,Jt=0,{x:xr,y:Pr}=this.size;if(this.latRange){let We=this.latRange;qe=a.Q(We[1])*le,Xe=a.Q(We[0])*le,Xe-qeXe&&(Be=Xe-We)}if(ee){let We=(ot+Tt)/2,it=ve;this._renderWorldCopies&&(it=a.b3(ve,We-le/2,We+le/2));let Dt=xr/2;it-DtTt&&(Re=Tt-Dt)}if(Re!==void 0||Be!==void 0){let We=new a.P(Re!=null?Re:ve,Be!=null?Be:be);Q.center=this.unproject.call({worldSize:le},We).wrap()}return Q}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let w=this._unmodified,{center:B,zoom:Q}=this.getConstrained(this.center,this.zoom);this.center=B,this.zoom=Q,this._unmodified=w,this._constraining=!1}_calcMatrices(){if(!this.height)return;let w=this.centerOffset,B=this.point.x,Q=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=a.b5(1,this.center.lat)*this.worldSize;let ee=a.an(new Float64Array(16));a.K(ee,ee,[this.width/2,-this.height/2,1]),a.J(ee,ee,[1,-1,0]),this.labelPlaneMatrix=ee,ee=a.an(new Float64Array(16)),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[-1,-1,0]),a.K(ee,ee,[2/this.width,2/this.height,1]),this.glCoordMatrix=ee;let le=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),qe=Math.min(this.elevation,this.minElevationForCurrentTile),Xe=le-qe*this._pixelPerMeter/Math.cos(this._pitch),ot=qe<0?Xe:le,Tt=Math.PI/2+this._pitch,Kt=this._fov*(.5+w.y/this.height),Jt=Math.sin(Kt)*ot/Math.sin(a.ac(Math.PI-Tt-Kt,.01,Math.PI-.01)),xr=this.getHorizon(),Pr=2*Math.atan(xr/this.cameraToCenterDistance)*(.5+w.y/(2*xr)),ve=Math.sin(Pr)*ot/Math.sin(a.ac(Math.PI-Tt-Pr,.01,Math.PI-.01)),be=Math.min(Jt,ve);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*be+ot),this.nearZ=this.height/50,ee=new Float64Array(16),a.b6(ee,this._fov,this.width/this.height,this.nearZ,this.farZ),ee[8]=2*-w.x/this.width,ee[9]=2*w.y/this.height,this.projectionMatrix=a.ae(ee),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[0,0,-this.cameraToCenterDistance]),a.b7(ee,ee,this._pitch),a.ad(ee,ee,this.angle),a.J(ee,ee,[-B,-Q,0]),this.mercatorMatrix=a.K([],ee,[this.worldSize,this.worldSize,this.worldSize]),a.K(ee,ee,[1,1,this._pixelPerMeter]),this.pixelMatrix=a.L(new Float64Array(16),this.labelPlaneMatrix,ee),a.J(ee,ee,[0,0,-this.elevation]),this.modelViewProjectionMatrix=ee,this.invModelViewProjectionMatrix=a.as([],ee),this.fogMatrix=new Float64Array(16),a.b6(this.fogMatrix,this._fov,this.width/this.height,le,this.farZ),this.fogMatrix[8]=2*-w.x/this.width,this.fogMatrix[9]=2*w.y/this.height,a.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),a.b7(this.fogMatrix,this.fogMatrix,this._pitch),a.ad(this.fogMatrix,this.fogMatrix,this.angle),a.J(this.fogMatrix,this.fogMatrix,[-B,-Q,0]),a.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=a.L(new Float64Array(16),this.labelPlaneMatrix,ee);let Re=this.width%2/2,Be=this.height%2/2,tt=Math.cos(this.angle),We=Math.sin(this.angle),it=B-Math.round(B)+tt*Re+We*Be,Dt=Q-Math.round(Q)+tt*Be+We*Re,Ht=new Float64Array(ee);if(a.J(Ht,Ht,[it>.5?it-1:it,Dt>.5?Dt-1:Dt,0]),this.alignedModelViewProjectionMatrix=Ht,ee=a.as(new Float64Array(16),this.pixelMatrix),!ee)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ee,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let w=this.pointCoordinate(new a.P(0,0)),B=[w.x*this.worldSize,w.y*this.worldSize,0,1];return a.af(B,B,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let w=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.P(0,w))}getCameraQueryGeometry(w){let B=this.getCameraPoint();if(w.length===1)return[w[0],B];{let Q=B.x,ee=B.y,le=B.x,qe=B.y;for(let Xe of w)Q=Math.min(Q,Xe.x),ee=Math.min(ee,Xe.y),le=Math.max(le,Xe.x),qe=Math.max(qe,Xe.y);return[new a.P(Q,ee),new a.P(le,ee),new a.P(le,qe),new a.P(Q,qe),new a.P(Q,ee)]}}lngLatToCameraDepth(w,B){let Q=this.locationCoordinate(w),ee=[Q.x*this.worldSize,Q.y*this.worldSize,B,1];return a.af(ee,ee,this.modelViewProjectionMatrix),ee[2]/ee[3]}}function nh(ue,w){let B,Q=!1,ee=null,le=null,qe=()=>{ee=null,Q&&(ue.apply(le,B),ee=setTimeout(qe,w),Q=!1)};return(...Xe)=>(Q=!0,le=this,B=Xe,ee||qe(),ee)}class wh{constructor(w){this._getCurrentHash=()=>{let B=window.location.hash.replace("#","");if(this._hashName){let Q;return B.split("&").map(ee=>ee.split("=")).forEach(ee=>{ee[0]===this._hashName&&(Q=ee)}),(Q&&Q[1]||"").split("/")}return B.split("/")},this._onHashChange=()=>{let B=this._getCurrentHash();if(B.length>=3&&!B.some(Q=>isNaN(Q))){let Q=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(B[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+B[2],+B[1]],zoom:+B[0],bearing:Q,pitch:+(B[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let B=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,B)},this._removeHash=()=>{let B=this._getCurrentHash();if(B.length===0)return;let Q=B.join("/"),ee=Q;ee.split("&").length>0&&(ee=ee.split("&")[0]),this._hashName&&(ee=`${this._hashName}=${Q}`);let le=window.location.hash.replace(ee,"");le.startsWith("#&")?le=le.slice(0,1)+le.slice(2):le==="#"&&(le="");let qe=window.location.href.replace(/(#.+)?$/,le);qe=qe.replace("&&","&"),window.history.replaceState(window.history.state,null,qe)},this._updateHash=nh(this._updateHashUnthrottled,300),this._hashName=w&&encodeURIComponent(w)}addTo(w){return this._map=w,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(w){let B=this._map.getCenter(),Q=Math.round(100*this._map.getZoom())/100,ee=Math.ceil((Q*Math.LN2+Math.log(512/360/.5))/Math.LN10),le=Math.pow(10,ee),qe=Math.round(B.lng*le)/le,Xe=Math.round(B.lat*le)/le,ot=this._map.getBearing(),Tt=this._map.getPitch(),Kt="";if(Kt+=w?`/${qe}/${Xe}/${Q}`:`${Q}/${Xe}/${qe}`,(ot||Tt)&&(Kt+="/"+Math.round(10*ot)/10),Tt&&(Kt+=`/${Math.round(Tt)}`),this._hashName){let Jt=this._hashName,xr=!1,Pr=window.location.hash.slice(1).split("&").map(ve=>{let be=ve.split("=")[0];return be===Jt?(xr=!0,`${be}=${Kt}`):ve}).filter(ve=>ve);return xr||Pr.push(`${Jt}=${Kt}`),`#${Pr.join("&")}`}return`#${Kt}`}}let zu={linearity:.3,easing:a.b8(0,0,.3,1)},Fc=a.e({deceleration:2500,maxSpeed:1400},zu),wc=a.e({deceleration:20,maxSpeed:1400},zu),bd=a.e({deceleration:1e3,maxSpeed:360},zu),_f=a.e({deceleration:1e3,maxSpeed:90},zu);class Lf{constructor(w){this._map=w,this.clear()}clear(){this._inertiaBuffer=[]}record(w){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:u.now(),settings:w})}_drainInertiaBuffer(){let w=this._inertiaBuffer,B=u.now();for(;w.length>0&&B-w[0].time>160;)w.shift()}_onMoveEnd(w){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let B={zoom:0,bearing:0,pitch:0,pan:new a.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:le}of this._inertiaBuffer)B.zoom+=le.zoomDelta||0,B.bearing+=le.bearingDelta||0,B.pitch+=le.pitchDelta||0,le.panDelta&&B.pan._add(le.panDelta),le.around&&(B.around=le.around),le.pinchAround&&(B.pinchAround=le.pinchAround);let Q=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ee={};if(B.pan.mag()){let le=xf(B.pan.mag(),Q,a.e({},Fc,w||{}));ee.offset=B.pan.mult(le.amount/B.pan.mag()),ee.center=this._map.transform.center,Ou(ee,le)}if(B.zoom){let le=xf(B.zoom,Q,wc);ee.zoom=this._map.transform.zoom+le.amount,Ou(ee,le)}if(B.bearing){let le=xf(B.bearing,Q,bd);ee.bearing=this._map.transform.bearing+a.ac(le.amount,-179,179),Ou(ee,le)}if(B.pitch){let le=xf(B.pitch,Q,_f);ee.pitch=this._map.transform.pitch+le.amount,Ou(ee,le)}if(ee.zoom||ee.bearing){let le=B.pinchAround===void 0?B.around:B.pinchAround;ee.around=le?this._map.unproject(le):this._map.getCenter()}return this.clear(),a.e(ee,{noMoveStart:!0})}}function Ou(ue,w){(!ue.duration||ue.durationB.unproject(ot)),Xe=le.reduce((ot,Tt,Kt,Jt)=>ot.add(Tt.div(Jt.length)),new a.P(0,0));super(w,{points:le,point:Xe,lngLats:qe,lngLat:B.unproject(Xe),originalEvent:Q}),this._defaultPrevented=!1}}class Vh extends a.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(w,B,Q){super(w,{originalEvent:Q}),this._defaultPrevented=!1}}class Pf{constructor(w,B){this._map=w,this._clickTolerance=B.clickTolerance}reset(){delete this._mousedownPos}wheel(w){return this._firePreventable(new Vh(w.type,this._map,w))}mousedown(w,B){return this._mousedownPos=B,this._firePreventable(new jl(w.type,this._map,w))}mouseup(w){this._map.fire(new jl(w.type,this._map,w))}click(w,B){this._mousedownPos&&this._mousedownPos.dist(B)>=this._clickTolerance||this._map.fire(new jl(w.type,this._map,w))}dblclick(w){return this._firePreventable(new jl(w.type,this._map,w))}mouseover(w){this._map.fire(new jl(w.type,this._map,w))}mouseout(w){this._map.fire(new jl(w.type,this._map,w))}touchstart(w){return this._firePreventable(new lf(w.type,this._map,w))}touchmove(w){this._map.fire(new lf(w.type,this._map,w))}touchend(w){this._map.fire(new lf(w.type,this._map,w))}touchcancel(w){this._map.fire(new lf(w.type,this._map,w))}_firePreventable(w){if(this._map.fire(w),w.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Ls{constructor(w){this._map=w}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(w){this._map.fire(new jl(w.type,this._map,w))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new jl("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(w){this._delayContextMenu?this._contextMenuEvent=w:this._ignoreContextMenu||this._map.fire(new jl(w.type,this._map,w)),this._map.listens("contextmenu")&&w.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class du{constructor(w){this._map=w}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(w){return this.transform.pointLocation(a.P.convert(w),this._map.terrain)}}class Cu{constructor(w,B){this._map=w,this._tr=new du(w),this._el=w.getCanvasContainer(),this._container=w.getContainer(),this._clickTolerance=B.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(w,B){this.isEnabled()&&w.shiftKey&&w.button===0&&(c.disableDrag(),this._startPos=this._lastPos=B,this._active=!0)}mousemoveWindow(w,B){if(!this._active)return;let Q=B;if(this._lastPos.equals(Q)||!this._box&&Q.dist(this._startPos)le.fitScreenCoordinates(Q,ee,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",w)}keydown(w){this._active&&w.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",w))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(c.remove(this._box),this._box=null),c.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(w,B){return this._map.fire(new a.k(w,{originalEvent:B}))}}function Wf(ue,w){if(ue.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${ue.length}, points ${w.length}`);let B={};for(let Q=0;Qthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=w.timeStamp),Q.length===this.numTouches&&(this.centroid=function(ee){let le=new a.P(0,0);for(let qe of ee)le._add(qe);return le.div(ee.length)}(B),this.touches=Wf(Q,B)))}touchmove(w,B,Q){if(this.aborted||!this.centroid)return;let ee=Wf(Q,B);for(let le in this.touches){let qe=ee[le];(!qe||qe.dist(this.touches[le])>30)&&(this.aborted=!0)}}touchend(w,B,Q){if((!this.centroid||w.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){let ee=!this.aborted&&this.centroid;if(this.reset(),ee)return ee}}}class bf{constructor(w){this.singleTap=new Vs(w),this.numTaps=w.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(w,B,Q){this.singleTap.touchstart(w,B,Q)}touchmove(w,B,Q){this.singleTap.touchmove(w,B,Q)}touchend(w,B,Q){let ee=this.singleTap.touchend(w,B,Q);if(ee){let le=w.timeStamp-this.lastTime<500,qe=!this.lastTap||this.lastTap.dist(ee)<30;if(le&&qe||this.reset(),this.count++,this.lastTime=w.timeStamp,this.lastTap=ee,this.count===this.numTaps)return this.reset(),ee}}}class zc{constructor(w){this._tr=new du(w),this._zoomIn=new bf({numTouches:1,numTaps:2}),this._zoomOut=new bf({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(w,B,Q){this._zoomIn.touchstart(w,B,Q),this._zoomOut.touchstart(w,B,Q)}touchmove(w,B,Q){this._zoomIn.touchmove(w,B,Q),this._zoomOut.touchmove(w,B,Q)}touchend(w,B,Q){let ee=this._zoomIn.touchend(w,B,Q),le=this._zoomOut.touchend(w,B,Q),qe=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Xe=>Xe.easeTo({duration:300,zoom:qe.zoom+1,around:qe.unproject(ee)},{originalEvent:w})}):le?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Xe=>Xe.easeTo({duration:300,zoom:qe.zoom-1,around:qe.unproject(le)},{originalEvent:w})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Wu{constructor(w){this._enabled=!!w.enable,this._moveStateManager=w.moveStateManager,this._clickTolerance=w.clickTolerance||1,this._moveFunction=w.move,this._activateOnStart=!!w.activateOnStart,w.assignEvents(this),this.reset()}reset(w){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(w)}_move(...w){let B=this._moveFunction(...w);if(B.bearingDelta||B.pitchDelta||B.around||B.panDelta)return this._active=!0,B}dragStart(w,B){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(w)&&(this._moveStateManager.startMove(w),this._lastPoint=B.length?B[0]:B,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(w,B){if(!this.isEnabled())return;let Q=this._lastPoint;if(!Q)return;if(w.preventDefault(),!this._moveStateManager.isValidMoveEvent(w))return void this.reset(w);let ee=B.length?B[0]:B;return!this._moved&&ee.dist(Q){ue.mousedown=ue.dragStart,ue.mousemoveWindow=ue.dragMove,ue.mouseup=ue.dragEnd,ue.contextmenu=w=>{w.preventDefault()}},Wl=({enable:ue,clickTolerance:w,bearingDegreesPerPixelMoved:B=.8})=>{let Q=new Xu({checkCorrectEvent:ee=>c.mouseButton(ee)===0&&ee.ctrlKey||c.mouseButton(ee)===2});return new Wu({clickTolerance:w,move:(ee,le)=>({bearingDelta:(le.x-ee.x)*B}),moveStateManager:Q,enable:ue,assignEvents:Xf})},ah=({enable:ue,clickTolerance:w,pitchDegreesPerPixelMoved:B=-.5})=>{let Q=new Xu({checkCorrectEvent:ee=>c.mouseButton(ee)===0&&ee.ctrlKey||c.mouseButton(ee)===2});return new Wu({clickTolerance:w,move:(ee,le)=>({pitchDelta:(le.y-ee.y)*B}),moveStateManager:Q,enable:ue,assignEvents:Xf})};class Zu{constructor(w,B){this._clickTolerance=w.clickTolerance||1,this._map=B,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new a.P(0,0)}_shouldBePrevented(w){return w<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(w,B,Q){return this._calculateTransform(w,B,Q)}touchmove(w,B,Q){if(this._active){if(!this._shouldBePrevented(Q.length))return w.preventDefault(),this._calculateTransform(w,B,Q);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",w)}}touchend(w,B,Q){this._calculateTransform(w,B,Q),this._active&&this._shouldBePrevented(Q.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(w,B,Q){Q.length>0&&(this._active=!0);let ee=Wf(Q,B),le=new a.P(0,0),qe=new a.P(0,0),Xe=0;for(let Tt in ee){let Kt=ee[Tt],Jt=this._touches[Tt];Jt&&(le._add(Kt),qe._add(Kt.sub(Jt)),Xe++,ee[Tt]=Kt)}if(this._touches=ee,this._shouldBePrevented(Xe)||!qe.mag())return;let ot=qe.div(Xe);return this._sum._add(ot),this._sum.mag()Math.abs(ue.x)}class Bc extends Oc{constructor(w){super(),this._currentTouchCount=0,this._map=w}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(w,B,Q){super.touchstart(w,B,Q),this._currentTouchCount=Q.length}_start(w){this._lastPoints=w,fc(w[0].sub(w[1]))&&(this._valid=!1)}_move(w,B,Q){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let ee=w[0].sub(this._lastPoints[0]),le=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(ee,le,Q.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(ee.y+le.y)/2*-.5}):void 0}gestureBeginsVertically(w,B,Q){if(this._valid!==void 0)return this._valid;let ee=w.mag()>=2,le=B.mag()>=2;if(!ee&&!le)return;if(!ee||!le)return this._firstMove===void 0&&(this._firstMove=Q),Q-this._firstMove<100&&void 0;let qe=w.y>0==B.y>0;return fc(w)&&fc(B)&&qe}}let At={panStep:100,bearingStep:15,pitchStep:10};class Xt{constructor(w){this._tr=new du(w);let B=At;this._panStep=B.panStep,this._bearingStep=B.bearingStep,this._pitchStep=B.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(w){if(w.altKey||w.ctrlKey||w.metaKey)return;let B=0,Q=0,ee=0,le=0,qe=0;switch(w.keyCode){case 61:case 107:case 171:case 187:B=1;break;case 189:case 109:case 173:B=-1;break;case 37:w.shiftKey?Q=-1:(w.preventDefault(),le=-1);break;case 39:w.shiftKey?Q=1:(w.preventDefault(),le=1);break;case 38:w.shiftKey?ee=1:(w.preventDefault(),qe=-1);break;case 40:w.shiftKey?ee=-1:(w.preventDefault(),qe=1);break;default:return}return this._rotationDisabled&&(Q=0,ee=0),{cameraAnimation:Xe=>{let ot=this._tr;Xe.easeTo({duration:300,easeId:"keyboardHandler",easing:kr,zoom:B?Math.round(ot.zoom)+B*(w.shiftKey?2:1):ot.zoom,bearing:ot.bearing+Q*this._bearingStep,pitch:ot.pitch+ee*this._pitchStep,offset:[-le*this._panStep,-qe*this._panStep],center:ot.center},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function kr(ue){return ue*(2-ue)}let Ar=4.000244140625;class Kr{constructor(w,B){this._onTimeout=Q=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Q)},this._map=w,this._tr=new du(w),this._triggerRenderFrame=B,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(w){this._defaultZoomRate=w}setWheelZoomRate(w){this._wheelZoomRate=w}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(w){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!w&&w.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(w){return!!this._map.cooperativeGestures.isEnabled()&&!(w.ctrlKey||this._map.cooperativeGestures.isBypassed(w))}wheel(w){if(!this.isEnabled())return;if(this._shouldBePrevented(w))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",w);let B=w.deltaMode===WheelEvent.DOM_DELTA_LINE?40*w.deltaY:w.deltaY,Q=u.now(),ee=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,B!==0&&B%Ar==0?this._type="wheel":B!==0&&Math.abs(B)<4?this._type="trackpad":ee>400?(this._type=null,this._lastValue=B,this._timeout=setTimeout(this._onTimeout,40,w)):this._type||(this._type=Math.abs(ee*B)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,B+=this._lastValue)),w.shiftKey&&B&&(B/=4),this._type&&(this._lastWheelEvent=w,this._delta-=B,this._active||this._start(w)),w.preventDefault()}_start(w){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let B=c.mousePos(this._map.getCanvas(),w),Q=this._tr;this._around=B.y>Q.transform.height/2-Q.transform.getHorizon()?a.N.convert(this._aroundCenter?Q.center:Q.unproject(B)):a.N.convert(Q.center),this._aroundPoint=Q.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let w=this._tr.transform;if(this._delta!==0){let ot=this._type==="wheel"&&Math.abs(this._delta)>Ar?this._wheelZoomRate:this._defaultZoomRate,Tt=2/(1+Math.exp(-Math.abs(this._delta*ot)));this._delta<0&&Tt!==0&&(Tt=1/Tt);let Kt=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(Kt*Tt))),this._type==="wheel"&&(this._startZoom=w.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let B=typeof this._targetZoom=="number"?this._targetZoom:w.zoom,Q=this._startZoom,ee=this._easing,le,qe=!1,Xe=u.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&Xe){let ot=Math.min(Xe/200,1),Tt=ee(ot);le=a.y.number(Q,B,Tt),ot<1?this._frameId||(this._frameId=!0):qe=!0}else le=B,qe=!0;return this._active=!0,qe&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!qe,zoomDelta:le-w.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(w){let B=a.b9;if(this._prevEase){let Q=this._prevEase,ee=(u.now()-Q.start)/Q.duration,le=Q.easing(ee+.01)-Q.easing(ee),qe=.27/Math.sqrt(le*le+1e-4)*.01,Xe=Math.sqrt(.0729-qe*qe);B=a.b8(qe,Xe,.25,1)}return this._prevEase={start:u.now(),duration:w,easing:B},B}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class Ei{constructor(w,B){this._clickZoom=w,this._tapZoom=B}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Wi{constructor(w){this._tr=new du(w),this.reset()}reset(){this._active=!1}dblclick(w,B){return w.preventDefault(),{cameraAnimation:Q=>{Q.easeTo({duration:300,zoom:this._tr.zoom+(w.shiftKey?-1:1),around:this._tr.unproject(B)},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class hn{constructor(){this._tap=new bf({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(w,B,Q){if(!this._swipePoint)if(this._tapTime){let ee=B[0],le=w.timeStamp-this._tapTime<500,qe=this._tapPoint.dist(ee)<30;le&&qe?Q.length>0&&(this._swipePoint=ee,this._swipeTouch=Q[0].identifier):this.reset()}else this._tap.touchstart(w,B,Q)}touchmove(w,B,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;let ee=B[0],le=ee.y-this._swipePoint.y;return this._swipePoint=ee,w.preventDefault(),this._active=!0,{zoomDelta:le/128}}}else this._tap.touchmove(w,B,Q)}touchend(w,B,Q){if(this._tapTime)this._swipePoint&&Q.length===0&&this.reset();else{let ee=this._tap.touchend(w,B,Q);ee&&(this._tapTime=w.timeStamp,this._tapPoint=ee)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Tn{constructor(w,B,Q){this._el=w,this._mousePan=B,this._touchPan=Q}enable(w){this._inertiaOptions=w||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Bn{constructor(w,B,Q){this._pitchWithRotate=w.pitchWithRotate,this._mouseRotate=B,this._mousePitch=Q}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Zi{constructor(w,B,Q,ee){this._el=w,this._touchZoom=B,this._touchRotate=Q,this._tapDragZoom=ee,this._rotationDisabled=!1,this._enabled=!0}enable(w){this._touchZoom.enable(w),this._rotationDisabled||this._touchRotate.enable(w),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class $i{constructor(w,B){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=w,this._options=B,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let w=this._map.getCanvasContainer();w.classList.add("maplibregl-cooperative-gestures"),this._container=c.create("div","maplibregl-cooperative-gesture-screen",w);let B=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(B=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let Q=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),ee=document.createElement("div");ee.className="maplibregl-desktop-message",ee.textContent=B,this._container.appendChild(ee);let le=document.createElement("div");le.className="maplibregl-mobile-message",le.textContent=Q,this._container.appendChild(le),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(c.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(w){return w[this._bypassKey]}notifyGestureBlocked(w,B){this._enabled&&(this._map.fire(new a.k("cooperativegestureprevented",{gestureType:w,originalEvent:B})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}let an=ue=>ue.zoom||ue.drag||ue.pitch||ue.rotate;class Di extends a.k{}function $n(ue){return ue.panDelta&&ue.panDelta.mag()||ue.zoomDelta||ue.bearingDelta||ue.pitchDelta}class ka{constructor(w,B){this.handleWindowEvent=ee=>{this.handleEvent(ee,`${ee.type}Window`)},this.handleEvent=(ee,le)=>{if(ee.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let qe=ee.type==="renderFrame"?void 0:ee,Xe={needsRenderFrame:!1},ot={},Tt={},Kt=ee.touches,Jt=Kt?this._getMapTouches(Kt):void 0,xr=Jt?c.touchPos(this._map.getCanvas(),Jt):c.mousePos(this._map.getCanvas(),ee);for(let{handlerName:be,handler:Re,allowed:Be}of this._handlers){if(!Re.isEnabled())continue;let tt;this._blockedByActive(Tt,Be,be)?Re.reset():Re[le||ee.type]&&(tt=Re[le||ee.type](ee,xr,Jt),this.mergeHandlerResult(Xe,ot,tt,be,qe),tt&&tt.needsRenderFrame&&this._triggerRenderFrame()),(tt||Re.isActive())&&(Tt[be]=Re)}let Pr={};for(let be in this._previousActiveHandlers)Tt[be]||(Pr[be]=qe);this._previousActiveHandlers=Tt,(Object.keys(Pr).length||$n(Xe))&&(this._changes.push([Xe,ot,Pr]),this._triggerRenderFrame()),(Object.keys(Tt).length||$n(Xe))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:ve}=Xe;ve&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],ve(this._map))},this._map=w,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Lf(w),this._bearingSnap=B.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(B);let Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[window,"blur",void 0]];for(let[ee,le,qe]of this._listeners)c.addEventListener(ee,le,ee===document?this.handleWindowEvent:this.handleEvent,qe)}destroy(){for(let[w,B,Q]of this._listeners)c.removeEventListener(w,B,w===document?this.handleWindowEvent:this.handleEvent,Q)}_addDefaultHandlers(w){let B=this._map,Q=B.getCanvasContainer();this._add("mapEvent",new Pf(B,w));let ee=B.boxZoom=new Cu(B,w);this._add("boxZoom",ee),w.interactive&&w.boxZoom&&ee.enable();let le=B.cooperativeGestures=new $i(B,w.cooperativeGestures);this._add("cooperativeGestures",le),w.cooperativeGestures&&le.enable();let qe=new zc(B),Xe=new Wi(B);B.doubleClickZoom=new Ei(Xe,qe),this._add("tapZoom",qe),this._add("clickZoom",Xe),w.interactive&&w.doubleClickZoom&&B.doubleClickZoom.enable();let ot=new hn;this._add("tapDragZoom",ot);let Tt=B.touchPitch=new Bc(B);this._add("touchPitch",Tt),w.interactive&&w.touchPitch&&B.touchPitch.enable(w.touchPitch);let Kt=Wl(w),Jt=ah(w);B.dragRotate=new Bn(w,Kt,Jt),this._add("mouseRotate",Kt,["mousePitch"]),this._add("mousePitch",Jt,["mouseRotate"]),w.interactive&&w.dragRotate&&B.dragRotate.enable();let xr=(({enable:tt,clickTolerance:We})=>{let it=new Xu({checkCorrectEvent:Dt=>c.mouseButton(Dt)===0&&!Dt.ctrlKey});return new Wu({clickTolerance:We,move:(Dt,Ht)=>({around:Ht,panDelta:Ht.sub(Dt)}),activateOnStart:!0,moveStateManager:it,enable:tt,assignEvents:Xf})})(w),Pr=new Zu(w,B);B.dragPan=new Tn(Q,xr,Pr),this._add("mousePan",xr),this._add("touchPan",Pr,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&B.dragPan.enable(w.dragPan);let ve=new cf,be=new vu;B.touchZoomRotate=new Zi(Q,be,ve,ot),this._add("touchRotate",ve,["touchPan","touchZoom"]),this._add("touchZoom",be,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&B.touchZoomRotate.enable(w.touchZoomRotate);let Re=B.scrollZoom=new Kr(B,()=>this._triggerRenderFrame());this._add("scrollZoom",Re,["mousePan"]),w.interactive&&w.scrollZoom&&B.scrollZoom.enable(w.scrollZoom);let Be=B.keyboard=new Xt(B);this._add("keyboard",Be),w.interactive&&w.keyboard&&B.keyboard.enable(),this._add("blockableMapEvent",new Ls(B))}_add(w,B,Q){this._handlers.push({handlerName:w,handler:B,allowed:Q}),this._handlersById[w]=B}stop(w){if(!this._updatingCamera){for(let{handler:B}of this._handlers)B.reset();this._inertia.clear(),this._fireEvents({},{},w),this._changes=[]}}isActive(){for(let{handler:w}of this._handlers)if(w.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!an(this._eventsInProgress)||this.isZooming()}_blockedByActive(w,B,Q){for(let ee in w)if(ee!==Q&&(!B||B.indexOf(ee)<0))return!0;return!1}_getMapTouches(w){let B=[];for(let Q of w)this._el.contains(Q.target)&&B.push(Q);return B}mergeHandlerResult(w,B,Q,ee,le){if(!Q)return;a.e(w,Q);let qe={handlerName:ee,originalEvent:Q.originalEvent||le};Q.zoomDelta!==void 0&&(B.zoom=qe),Q.panDelta!==void 0&&(B.drag=qe),Q.pitchDelta!==void 0&&(B.pitch=qe),Q.bearingDelta!==void 0&&(B.rotate=qe)}_applyChanges(){let w={},B={},Q={};for(let[ee,le,qe]of this._changes)ee.panDelta&&(w.panDelta=(w.panDelta||new a.P(0,0))._add(ee.panDelta)),ee.zoomDelta&&(w.zoomDelta=(w.zoomDelta||0)+ee.zoomDelta),ee.bearingDelta&&(w.bearingDelta=(w.bearingDelta||0)+ee.bearingDelta),ee.pitchDelta&&(w.pitchDelta=(w.pitchDelta||0)+ee.pitchDelta),ee.around!==void 0&&(w.around=ee.around),ee.pinchAround!==void 0&&(w.pinchAround=ee.pinchAround),ee.noInertia&&(w.noInertia=ee.noInertia),a.e(B,le),a.e(Q,qe);this._updateMapTransform(w,B,Q),this._changes=[]}_updateMapTransform(w,B,Q){let ee=this._map,le=ee._getTransformForUpdate(),qe=ee.terrain;if(!($n(w)||qe&&this._terrainMovement))return this._fireEvents(B,Q,!0);let{panDelta:Xe,zoomDelta:ot,bearingDelta:Tt,pitchDelta:Kt,around:Jt,pinchAround:xr}=w;xr!==void 0&&(Jt=xr),ee._stop(!0),Jt=Jt||ee.transform.centerPoint;let Pr=le.pointLocation(Xe?Jt.sub(Xe):Jt);Tt&&(le.bearing+=Tt),Kt&&(le.pitch+=Kt),ot&&(le.zoom+=ot),qe?this._terrainMovement||!B.drag&&!B.zoom?B.drag&&this._terrainMovement?le.center=le.pointLocation(le.centerPoint.sub(Xe)):le.setLocationAtPoint(Pr,Jt):(this._terrainMovement=!0,this._map._elevationFreeze=!0,le.setLocationAtPoint(Pr,Jt)):le.setLocationAtPoint(Pr,Jt),ee._applyUpdatedTransform(le),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(B,Q,!0)}_fireEvents(w,B,Q){let ee=an(this._eventsInProgress),le=an(w),qe={};for(let Jt in w){let{originalEvent:xr}=w[Jt];this._eventsInProgress[Jt]||(qe[`${Jt}start`]=xr),this._eventsInProgress[Jt]=w[Jt]}!ee&&le&&this._fireEvent("movestart",le.originalEvent);for(let Jt in qe)this._fireEvent(Jt,qe[Jt]);le&&this._fireEvent("move",le.originalEvent);for(let Jt in w){let{originalEvent:xr}=w[Jt];this._fireEvent(Jt,xr)}let Xe={},ot;for(let Jt in this._eventsInProgress){let{handlerName:xr,originalEvent:Pr}=this._eventsInProgress[Jt];this._handlersById[xr].isActive()||(delete this._eventsInProgress[Jt],ot=B[xr]||Pr,Xe[`${Jt}end`]=ot)}for(let Jt in Xe)this._fireEvent(Jt,Xe[Jt]);let Tt=an(this._eventsInProgress),Kt=(ee||le)&&!Tt;if(Kt&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let Jt=this._map._getTransformForUpdate();Jt.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(Jt)}if(Q&&Kt){this._updatingCamera=!0;let Jt=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),xr=Pr=>Pr!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Di("renderFrame",{timeStamp:w})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class Ra extends a.E{constructor(w,B){super(),this._renderFrameCallback=()=>{let Q=Math.min((u.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=w,this._bearingSnap=B.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new a.N(this.transform.center.lng,this.transform.center.lat)}setCenter(w,B){return this.jumpTo({center:w},B)}panBy(w,B,Q){return w=a.P.convert(w).mult(-1),this.panTo(this.transform.center,a.e({offset:w},B),Q)}panTo(w,B,Q){return this.easeTo(a.e({center:w},B),Q)}getZoom(){return this.transform.zoom}setZoom(w,B){return this.jumpTo({zoom:w},B),this}zoomTo(w,B,Q){return this.easeTo(a.e({zoom:w},B),Q)}zoomIn(w,B){return this.zoomTo(this.getZoom()+1,w,B),this}zoomOut(w,B){return this.zoomTo(this.getZoom()-1,w,B),this}getBearing(){return this.transform.bearing}setBearing(w,B){return this.jumpTo({bearing:w},B),this}getPadding(){return this.transform.padding}setPadding(w,B){return this.jumpTo({padding:w},B),this}rotateTo(w,B,Q){return this.easeTo(a.e({bearing:w},B),Q)}resetNorth(w,B){return this.rotateTo(0,a.e({duration:1e3},w),B),this}resetNorthPitch(w,B){return this.easeTo(a.e({bearing:0,pitch:0,duration:1e3},w),B),this}snapToNorth(w,B){return Math.abs(this.getBearing()){if(this._zooming&&(ee.zoom=a.y.number(le,Re,rr)),this._rotating&&(ee.bearing=a.y.number(qe,Tt,rr)),this._pitching&&(ee.pitch=a.y.number(Xe,Kt,rr)),this._padding&&(ee.interpolatePadding(ot,Jt,rr),Pr=ee.centerPoint.add(xr)),this.terrain&&!w.freezeElevation&&this._updateElevation(rr),it)ee.setLocationAtPoint(it,Dt);else{let dr=ee.zoomScale(ee.zoom-le),Sr=Re>le?Math.min(2,We):Math.max(.5,We),Or=Math.pow(Sr,1-rr),jr=ee.unproject(Be.add(tt.mult(rr*Or)).mult(dr));ee.setLocationAtPoint(ee.renderWorldCopies?jr.wrap():jr,Pr)}this._applyUpdatedTransform(ee),this._fireMoveEvents(B)},rr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B,rr)},w),this}_prepareEase(w,B,Q={}){this._moving=!0,B||Q.moving||this.fire(new a.k("movestart",w)),this._zooming&&!Q.zooming&&this.fire(new a.k("zoomstart",w)),this._rotating&&!Q.rotating&&this.fire(new a.k("rotatestart",w)),this._pitching&&!Q.pitching&&this.fire(new a.k("pitchstart",w))}_prepareElevation(w){this._elevationCenter=w,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(w,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(w){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let B=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(w<1&&B!==this._elevationTarget){let Q=this._elevationTarget-this._elevationStart;this._elevationStart+=w*(Q-(B-(Q*w+this._elevationStart))/(1-w)),this._elevationTarget=B}this.transform.elevation=a.y.number(this._elevationStart,this._elevationTarget,w)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(w){let B=w.getCameraPosition(),Q=this.terrain.getElevationForLngLatZoom(B.lngLat,w.zoom);if(B.altitudethis._elevateCameraIfInsideTerrain(ee)),this.transformCameraUpdate&&B.push(ee=>this.transformCameraUpdate(ee)),!B.length)return;let Q=w.clone();for(let ee of B){let le=Q.clone(),{center:qe,zoom:Xe,pitch:ot,bearing:Tt,elevation:Kt}=ee(le);qe&&(le.center=qe),Xe!==void 0&&(le.zoom=Xe),ot!==void 0&&(le.pitch=ot),Tt!==void 0&&(le.bearing=Tt),Kt!==void 0&&(le.elevation=Kt),Q.apply(le)}this.transform.apply(Q)}_fireMoveEvents(w){this.fire(new a.k("move",w)),this._zooming&&this.fire(new a.k("zoom",w)),this._rotating&&this.fire(new a.k("rotate",w)),this._pitching&&this.fire(new a.k("pitch",w))}_afterEase(w,B){if(this._easeId&&B&&this._easeId===B)return;delete this._easeId;let Q=this._zooming,ee=this._rotating,le=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Q&&this.fire(new a.k("zoomend",w)),ee&&this.fire(new a.k("rotateend",w)),le&&this.fire(new a.k("pitchend",w)),this.fire(new a.k("moveend",w))}flyTo(w,B){var Q;if(!w.essential&&u.prefersReducedMotion){let In=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(In,B)}this.stop(),w=a.e({offset:[0,0],speed:1.2,curve:1.42,easing:a.b9},w);let ee=this._getTransformForUpdate(),le=ee.zoom,qe=ee.bearing,Xe=ee.pitch,ot=ee.padding,Tt="bearing"in w?this._normalizeBearing(w.bearing,qe):qe,Kt="pitch"in w?+w.pitch:Xe,Jt="padding"in w?w.padding:ee.padding,xr=a.P.convert(w.offset),Pr=ee.centerPoint.add(xr),ve=ee.pointLocation(Pr),{center:be,zoom:Re}=ee.getConstrained(a.N.convert(w.center||ve),(Q=w.zoom)!==null&&Q!==void 0?Q:le);this._normalizeCenter(be,ee);let Be=ee.zoomScale(Re-le),tt=ee.project(ve),We=ee.project(be).sub(tt),it=w.curve,Dt=Math.max(ee.width,ee.height),Ht=Dt/Be,rr=We.mag();if("minZoom"in w){let In=a.ac(Math.min(w.minZoom,le,Re),ee.minZoom,ee.maxZoom),Kn=Dt/ee.zoomScale(In-le);it=Math.sqrt(Kn/rr*2)}let dr=it*it;function Sr(In){let Kn=(Ht*Ht-Dt*Dt+(In?-1:1)*dr*dr*rr*rr)/(2*(In?Ht:Dt)*dr*rr);return Math.log(Math.sqrt(Kn*Kn+1)-Kn)}function Or(In){return(Math.exp(In)-Math.exp(-In))/2}function jr(In){return(Math.exp(In)+Math.exp(-In))/2}let ii=Sr(!1),Li=function(In){return jr(ii)/jr(ii+it*In)},un=function(In){return Dt*((jr(ii)*(Or(Kn=ii+it*In)/jr(Kn))-Or(ii))/dr)/rr;var Kn},sn=(Sr(!0)-ii)/it;if(Math.abs(rr)<1e-6||!isFinite(sn)){if(Math.abs(Dt-Ht)<1e-6)return this.easeTo(w,B);let In=Ht0,Li=Kn=>Math.exp(In*it*Kn)}return w.duration="duration"in w?+w.duration:1e3*sn/("screenSpeed"in w?+w.screenSpeed/it:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=qe!==Tt,this._pitching=Kt!==Xe,this._padding=!ee.isPaddingEqual(Jt),this._prepareEase(B,!1),this.terrain&&this._prepareElevation(be),this._ease(In=>{let Kn=In*sn,Ta=1/Li(Kn);ee.zoom=In===1?Re:le+ee.scaleZoom(Ta),this._rotating&&(ee.bearing=a.y.number(qe,Tt,In)),this._pitching&&(ee.pitch=a.y.number(Xe,Kt,In)),this._padding&&(ee.interpolatePadding(ot,Jt,In),Pr=ee.centerPoint.add(xr)),this.terrain&&!w.freezeElevation&&this._updateElevation(In);let fa=In===1?be:ee.unproject(tt.add(We.mult(un(Kn))).mult(Ta));ee.setLocationAtPoint(ee.renderWorldCopies?fa.wrap():fa,Pr),this._applyUpdatedTransform(ee),this._fireMoveEvents(B)},()=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B)},w),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(w,B){var Q;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let ee=this._onEaseEnd;delete this._onEaseEnd,ee.call(this,B)}return w||(Q=this.handlers)===null||Q===void 0||Q.stop(!1),this}_ease(w,B,Q){Q.animate===!1||Q.duration===0?(w(1),B()):(this._easeStart=u.now(),this._easeOptions=Q,this._onEaseFrame=w,this._onEaseEnd=B,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(w,B){w=a.b3(w,-180,180);let Q=Math.abs(w-B);return Math.abs(w-360-B)180?-360:Q<-180?360:0}queryTerrainElevation(w){return this.terrain?this.terrain.getElevationForLngLatZoom(a.N.convert(w),this.transform.tileZoom)-this.transform.elevation:null}}let La={compact:!0,customAttribution:'
MapLibre'};class Na{constructor(w=La){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=B=>{!B||B.sourceDataType!=="metadata"&&B.sourceDataType!=="visibility"&&B.dataType!=="style"&&B.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=w}getDefaultPosition(){return"bottom-right"}onAdd(w){return this._map=w,this._compact=this.options.compact,this._container=c.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=c.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=c.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){c.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(w,B){let Q=this._map._getUIString(`AttributionControl.${B}`);w.title=Q,w.setAttribute("aria-label",Q)}_updateAttributions(){if(!this._map.style)return;let w=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?w=w.concat(this.options.customAttribution.map(ee=>typeof ee!="string"?"":ee)):typeof this.options.customAttribution=="string"&&w.push(this.options.customAttribution)),this._map.style.stylesheet){let ee=this._map.style.stylesheet;this.styleOwner=ee.owner,this.styleId=ee.id}let B=this._map.style.sourceCaches;for(let ee in B){let le=B[ee];if(le.used||le.usedForTerrain){let qe=le.getSource();qe.attribution&&w.indexOf(qe.attribution)<0&&w.push(qe.attribution)}}w=w.filter(ee=>String(ee).trim()),w.sort((ee,le)=>ee.length-le.length),w=w.filter((ee,le)=>{for(let qe=le+1;qe=0)return!1;return!0});let Q=w.join(" | ");Q!==this._attribHTML&&(this._attribHTML=Q,w.length?(this._innerContainer.innerHTML=Q,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class Yn{constructor(w={}){this._updateCompact=()=>{let B=this._container.children;if(B.length){let Q=B[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&Q.classList.add("maplibregl-compact"):Q.classList.remove("maplibregl-compact")}},this.options=w}getDefaultPosition(){return"bottom-left"}onAdd(w){this._map=w,this._compact=this.options&&this.options.compact,this._container=c.create("div","maplibregl-ctrl");let B=c.create("a","maplibregl-ctrl-logo");return B.target="_blank",B.rel="noopener nofollow",B.href="https://maplibre.org/",B.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),B.setAttribute("rel","noopener nofollow"),this._container.appendChild(B),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){c.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class zn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(w){let B=++this._id;return this._queue.push({callback:w,id:B,cancelled:!1}),B}remove(w){let B=this._currentlyRunning,Q=B?this._queue.concat(B):this._queue;for(let ee of Q)if(ee.id===w)return void(ee.cancelled=!0)}run(w=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let B=this._currentlyRunning=this._queue;this._queue=[];for(let Q of B)if(!Q.cancelled&&(Q.callback(w),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var Ka=a.Y([{name:"a_pos3d",type:"Int16",components:3}]);class bo extends a.E{constructor(w){super(),this.sourceCache=w,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,w.usedForTerrain=!0,w.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(w,B){this.sourceCache.update(w,B),this._renderableTilesKeys=[];let Q={};for(let ee of w.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:B}))Q[ee.key]=!0,this._renderableTilesKeys.push(ee.key),this._tiles[ee.key]||(ee.posMatrix=new Float64Array(16),a.aP(ee.posMatrix,0,a.X,0,a.X,0,1),this._tiles[ee.key]=new Ut(ee,this.tileSize));for(let ee in this._tiles)Q[ee]||delete this._tiles[ee]}freeRtt(w){for(let B in this._tiles){let Q=this._tiles[B];(!w||Q.tileID.equals(w)||Q.tileID.isChildOf(w)||w.isChildOf(Q.tileID))&&(Q.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(w=>this.getTileByID(w))}getTileByID(w){return this._tiles[w]}getTerrainCoords(w){let B={};for(let Q of this._renderableTilesKeys){let ee=this._tiles[Q].tileID;if(ee.canonical.equals(w.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16),a.aP(le.posMatrix,0,a.X,0,a.X,0,1),B[Q]=le}else if(ee.canonical.isChildOf(w.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let qe=ee.canonical.z-w.canonical.z,Xe=ee.canonical.x-(ee.canonical.x>>qe<>qe<>qe;a.aP(le.posMatrix,0,Tt,0,Tt,0,1),a.J(le.posMatrix,le.posMatrix,[-Xe*Tt,-ot*Tt,0]),B[Q]=le}else if(w.canonical.isChildOf(ee.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let qe=w.canonical.z-ee.canonical.z,Xe=w.canonical.x-(w.canonical.x>>qe<>qe<>qe;a.aP(le.posMatrix,0,a.X,0,a.X,0,1),a.J(le.posMatrix,le.posMatrix,[Xe*Tt,ot*Tt,0]),a.K(le.posMatrix,le.posMatrix,[1/2**qe,1/2**qe,0]),B[Q]=le}}return B}getSourceTile(w,B){let Q=this.sourceCache._source,ee=w.overscaledZ-this.deltaZoom;if(ee>Q.maxzoom&&(ee=Q.maxzoom),ee=Q.minzoom&&(!le||!le.dem);)le=this.sourceCache.getTileByID(w.scaledTo(ee--).key);return le}tilesAfterTime(w=Date.now()){return Object.values(this._tiles).filter(B=>B.timeAdded>=w)}}class Xo{constructor(w,B,Q){this.painter=w,this.sourceCache=new bo(B),this.options=Q,this.exaggeration=typeof Q.exaggeration=="number"?Q.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(w,B,Q,ee=a.X){var le;if(!(B>=0&&B=0&&Qw.canonical.z&&(w.canonical.z>=ee?le=w.canonical.z-ee:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let qe=w.canonical.x-(w.canonical.x>>le<>le<>8<<4|le>>8,B[qe+3]=0;let Q=new a.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(B.buffer)),ee=new g(w,Q,w.gl.RGBA,{premultiply:!1});return ee.bind(w.gl.NEAREST,w.gl.CLAMP_TO_EDGE),this._coordsTexture=ee,ee}pointCoordinate(w){this.painter.maybeDrawDepthAndCoords(!0);let B=new Uint8Array(4),Q=this.painter.context,ee=Q.gl,le=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),qe=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),Xe=Math.round(this.painter.height/devicePixelRatio);Q.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(le,Xe-qe-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,B),Q.bindFramebuffer.set(null);let ot=B[0]+(B[2]>>4<<8),Tt=B[1]+((15&B[2])<<8),Kt=this.coordsIndex[255-B[3]],Jt=Kt&&this.sourceCache.getTileByID(Kt);if(!Jt)return null;let xr=this._coordsTextureSize,Pr=(1<w.id!==B),this._recentlyUsed.push(w.id)}stampObject(w){w.stamp=++this._stamp}getOrCreateFreeObject(){for(let B of this._recentlyUsed)if(!this._objects[B].inUse)return this._objects[B];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let w=this._createObject(this._objects.length);return this._objects.push(w),w}freeObject(w){w.inUse=!1}freeAllObjects(){for(let w of this._objects)this.freeObject(w)}isFull(){return!(this._objects.length!w.inUse)===!1}}let os={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Ts{constructor(w,B){this.painter=w,this.terrain=B,this.pool=new Ms(w.context,30,B.sourceCache.tileSize*B.qualityFactor)}destruct(){this.pool.destruct()}getTexture(w){return this.pool.getObjectForId(w.rtt[this._stacks.length-1].id).texture}prepareForRender(w,B){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=w._order.filter(Q=>!w._layers[Q].isHidden(B)),this._coordsDescendingInv={};for(let Q in w.sourceCaches){this._coordsDescendingInv[Q]={};let ee=w.sourceCaches[Q].getVisibleCoordinates();for(let le of ee){let qe=this.terrain.sourceCache.getTerrainCoords(le);for(let Xe in qe)this._coordsDescendingInv[Q][Xe]||(this._coordsDescendingInv[Q][Xe]=[]),this._coordsDescendingInv[Q][Xe].push(qe[Xe])}}this._coordsDescendingInvStr={};for(let Q of w._order){let ee=w._layers[Q],le=ee.source;if(os[ee.type]&&!this._coordsDescendingInvStr[le]){this._coordsDescendingInvStr[le]={};for(let qe in this._coordsDescendingInv[le])this._coordsDescendingInvStr[le][qe]=this._coordsDescendingInv[le][qe].map(Xe=>Xe.key).sort().join()}}for(let Q of this._renderableTiles)for(let ee in this._coordsDescendingInvStr){let le=this._coordsDescendingInvStr[ee][Q.tileID.key];le&&le!==Q.rttCoords[ee]&&(Q.rtt=[])}}renderLayer(w){if(w.isHidden(this.painter.transform.zoom))return!1;let B=w.type,Q=this.painter,ee=this._renderableLayerIds[this._renderableLayerIds.length-1]===w.id;if(os[B]&&(this._prevType&&os[this._prevType]||this._stacks.push([]),this._prevType=B,this._stacks[this._stacks.length-1].push(w.id),!ee))return!0;if(os[this._prevType]||os[B]&&ee){this._prevType=B;let le=this._stacks.length-1,qe=this._stacks[le]||[];for(let Xe of this._renderableTiles){if(this.pool.isFull()&&(Ws(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(Xe),Xe.rtt[le]){let Tt=this.pool.getObjectForId(Xe.rtt[le].id);if(Tt.stamp===Xe.rtt[le].stamp){this.pool.useObject(Tt);continue}}let ot=this.pool.getOrCreateFreeObject();this.pool.useObject(ot),this.pool.stampObject(ot),Xe.rtt[le]={id:ot.id,stamp:ot.stamp},Q.context.bindFramebuffer.set(ot.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Tt=0;Tt{ue.touchstart=ue.dragStart,ue.touchmoveWindow=ue.dragMove,ue.touchend=ue.dragEnd},va={showCompass:!0,showZoom:!0,visualizePitch:!1};class no{constructor(w,B,Q=!1){this.mousedown=qe=>{this.startMouse(a.e({},qe,{ctrlKey:!0,preventDefault:()=>qe.preventDefault()}),c.mousePos(this.element,qe)),c.addEventListener(window,"mousemove",this.mousemove),c.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=qe=>{this.moveMouse(qe,c.mousePos(this.element,qe))},this.mouseup=qe=>{this.mouseRotate.dragEnd(qe),this.mousePitch&&this.mousePitch.dragEnd(qe),this.offTemp()},this.touchstart=qe=>{qe.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=c.touchPos(this.element,qe.targetTouches)[0],this.startTouch(qe,this._startPos),c.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.addEventListener(window,"touchend",this.touchend))},this.touchmove=qe=>{qe.targetTouches.length!==1?this.reset():(this._lastPos=c.touchPos(this.element,qe.targetTouches)[0],this.moveTouch(qe,this._lastPos))},this.touchend=qe=>{qe.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let ee=w.dragRotate._mouseRotate.getClickTolerance(),le=w.dragRotate._mousePitch.getClickTolerance();this.element=B,this.mouseRotate=Wl({clickTolerance:ee,enable:!0}),this.touchRotate=(({enable:qe,clickTolerance:Xe,bearingDegreesPerPixelMoved:ot=.8})=>{let Tt=new uf;return new Wu({clickTolerance:Xe,move:(Kt,Jt)=>({bearingDelta:(Jt.x-Kt.x)*ot}),moveStateManager:Tt,enable:qe,assignEvents:Ps})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=ah({clickTolerance:le,enable:!0}),this.touchPitch=(({enable:qe,clickTolerance:Xe,pitchDegreesPerPixelMoved:ot=-.5})=>{let Tt=new uf;return new Wu({clickTolerance:Xe,move:(Kt,Jt)=>({pitchDelta:(Jt.y-Kt.y)*ot}),moveStateManager:Tt,enable:qe,assignEvents:Ps})})({clickTolerance:le,enable:!0})),c.addEventListener(B,"mousedown",this.mousedown),c.addEventListener(B,"touchstart",this.touchstart,{passive:!1}),c.addEventListener(B,"touchcancel",this.reset)}startMouse(w,B){this.mouseRotate.dragStart(w,B),this.mousePitch&&this.mousePitch.dragStart(w,B),c.disableDrag()}startTouch(w,B){this.touchRotate.dragStart(w,B),this.touchPitch&&this.touchPitch.dragStart(w,B),c.disableDrag()}moveMouse(w,B){let Q=this.map,{bearingDelta:ee}=this.mouseRotate.dragMove(w,B)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.mousePitch){let{pitchDelta:le}=this.mousePitch.dragMove(w,B)||{};le&&Q.setPitch(Q.getPitch()+le)}}moveTouch(w,B){let Q=this.map,{bearingDelta:ee}=this.touchRotate.dragMove(w,B)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.touchPitch){let{pitchDelta:le}=this.touchPitch.dragMove(w,B)||{};le&&Q.setPitch(Q.getPitch()+le)}}off(){let w=this.element;c.removeEventListener(w,"mousedown",this.mousedown),c.removeEventListener(w,"touchstart",this.touchstart,{passive:!1}),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend),c.removeEventListener(w,"touchcancel",this.reset),this.offTemp()}offTemp(){c.enableDrag(),c.removeEventListener(window,"mousemove",this.mousemove),c.removeEventListener(window,"mouseup",this.mouseup),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend)}}let _s;function is(ue,w,B){let Q=new a.N(ue.lng,ue.lat);if(ue=new a.N(ue.lng,ue.lat),w){let ee=new a.N(ue.lng-360,ue.lat),le=new a.N(ue.lng+360,ue.lat),qe=B.locationPoint(ue).distSqr(w);B.locationPoint(ee).distSqr(w)180;){let ee=B.locationPoint(ue);if(ee.x>=0&&ee.y>=0&&ee.x<=B.width&&ee.y<=B.height)break;ue.lng>B.center.lng?ue.lng-=360:ue.lng+=360}return ue.lng!==Q.lng&&B.locationPoint(ue).y>B.height/2-B.getHorizon()?ue:Q}let $l={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ku(ue,w,B){let Q=ue.classList;for(let ee in $l)Q.remove(`maplibregl-${B}-anchor-${ee}`);Q.add(`maplibregl-${B}-anchor-${w}`)}class Yu extends a.E{constructor(w){if(super(),this._onKeyPress=B=>{let Q=B.code,ee=B.charCode||B.keyCode;Q!=="Space"&&Q!=="Enter"&&ee!==32&&ee!==13||this.togglePopup()},this._onMapClick=B=>{let Q=B.originalEvent.target,ee=this._element;this._popup&&(Q===ee||ee.contains(Q))&&this.togglePopup()},this._update=B=>{var Q;if(!this._map)return;let ee=this._map.loaded()&&!this._map.isMoving();((B==null?void 0:B.type)==="terrain"||(B==null?void 0:B.type)==="render"&&!ee)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?is(this._lngLat,this._flatPos,this._map.transform):(Q=this._lngLat)===null||Q===void 0?void 0:Q.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let le="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?le=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(le=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let qe="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?qe="rotateX(0deg)":this._pitchAlignment==="map"&&(qe=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||B&&B.type!=="moveend"||(this._pos=this._pos.round()),c.setTransform(this._element,`${$l[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${qe} ${le}`),u.frameAsync(new AbortController).then(()=>{this._updateOpacity(B&&B.type==="moveend")}).catch(()=>{})},this._onMove=B=>{if(!this._isDragging){let Q=this._clickTolerance||this._map._clickTolerance;this._isDragging=B.point.dist(this._pointerdownPos)>=Q}this._isDragging&&(this._pos=B.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.k("dragstart"))),this.fire(new a.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.k("dragend")),this._state="inactive"},this._addDragHandler=B=>{this._element.contains(B.originalEvent.target)&&(B.preventDefault(),this._positionDelta=B.point.sub(this._pos).add(this._offset),this._pointerdownPos=B.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=w&&w.anchor||"center",this._color=w&&w.color||"#3FB1CE",this._scale=w&&w.scale||1,this._draggable=w&&w.draggable||!1,this._clickTolerance=w&&w.clickTolerance||0,this._subpixelPositioning=w&&w.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=w&&w.rotation||0,this._rotationAlignment=w&&w.rotationAlignment||"auto",this._pitchAlignment=w&&w.pitchAlignment&&w.pitchAlignment!=="auto"?w.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(w==null?void 0:w.opacity,w==null?void 0:w.opacityWhenCovered),w&&w.element)this._element=w.element,this._offset=a.P.convert(w&&w.offset||[0,0]);else{this._defaultMarker=!0,this._element=c.create("div");let B=c.createNS("http://www.w3.org/2000/svg","svg"),Q=41,ee=27;B.setAttributeNS(null,"display","block"),B.setAttributeNS(null,"height",`${Q}px`),B.setAttributeNS(null,"width",`${ee}px`),B.setAttributeNS(null,"viewBox",`0 0 ${ee} ${Q}`);let le=c.createNS("http://www.w3.org/2000/svg","g");le.setAttributeNS(null,"stroke","none"),le.setAttributeNS(null,"stroke-width","1"),le.setAttributeNS(null,"fill","none"),le.setAttributeNS(null,"fill-rule","evenodd");let qe=c.createNS("http://www.w3.org/2000/svg","g");qe.setAttributeNS(null,"fill-rule","nonzero");let Xe=c.createNS("http://www.w3.org/2000/svg","g");Xe.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Xe.setAttributeNS(null,"fill","#000000");let ot=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let Be of ot){let tt=c.createNS("http://www.w3.org/2000/svg","ellipse");tt.setAttributeNS(null,"opacity","0.04"),tt.setAttributeNS(null,"cx","10.5"),tt.setAttributeNS(null,"cy","5.80029008"),tt.setAttributeNS(null,"rx",Be.rx),tt.setAttributeNS(null,"ry",Be.ry),Xe.appendChild(tt)}let Tt=c.createNS("http://www.w3.org/2000/svg","g");Tt.setAttributeNS(null,"fill",this._color);let Kt=c.createNS("http://www.w3.org/2000/svg","path");Kt.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),Tt.appendChild(Kt);let Jt=c.createNS("http://www.w3.org/2000/svg","g");Jt.setAttributeNS(null,"opacity","0.25"),Jt.setAttributeNS(null,"fill","#000000");let xr=c.createNS("http://www.w3.org/2000/svg","path");xr.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),Jt.appendChild(xr);let Pr=c.createNS("http://www.w3.org/2000/svg","g");Pr.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Pr.setAttributeNS(null,"fill","#FFFFFF");let ve=c.createNS("http://www.w3.org/2000/svg","g");ve.setAttributeNS(null,"transform","translate(8.0, 8.0)");let be=c.createNS("http://www.w3.org/2000/svg","circle");be.setAttributeNS(null,"fill","#000000"),be.setAttributeNS(null,"opacity","0.25"),be.setAttributeNS(null,"cx","5.5"),be.setAttributeNS(null,"cy","5.5"),be.setAttributeNS(null,"r","5.4999962");let Re=c.createNS("http://www.w3.org/2000/svg","circle");Re.setAttributeNS(null,"fill","#FFFFFF"),Re.setAttributeNS(null,"cx","5.5"),Re.setAttributeNS(null,"cy","5.5"),Re.setAttributeNS(null,"r","5.4999962"),ve.appendChild(be),ve.appendChild(Re),qe.appendChild(Xe),qe.appendChild(Tt),qe.appendChild(Jt),qe.appendChild(Pr),qe.appendChild(ve),B.appendChild(qe),B.setAttributeNS(null,"height",Q*this._scale+"px"),B.setAttributeNS(null,"width",ee*this._scale+"px"),this._element.appendChild(B),this._offset=a.P.convert(w&&w.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",B=>{B.preventDefault()}),this._element.addEventListener("mousedown",B=>{B.preventDefault()}),ku(this._element,this._anchor,"marker"),w&&w.className)for(let B of w.className.split(" "))this._element.classList.add(B);this._popup=null}addTo(w){return this.remove(),this._map=w,this._element.setAttribute("aria-label",w._getUIString("Marker.Title")),w.getCanvasContainer().appendChild(this._element),w.on("move",this._update),w.on("moveend",this._update),w.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),c.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(w){return this._lngLat=a.N.convert(w),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(w){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),w){if(!("offset"in w.options)){let ee=Math.abs(13.5)/Math.SQRT2;w.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[ee,-1*(38.1-13.5+ee)],"bottom-right":[-ee,-1*(38.1-13.5+ee)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=w,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(w){return this._subpixelPositioning=w,this}getPopup(){return this._popup}togglePopup(){let w=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:w?(w.isOpen()?w.remove():(w.setLngLat(this._lngLat),w.addTo(this._map)),this):this}_updateOpacity(w=!1){var B,Q;if(!(!((B=this._map)===null||B===void 0)&&B.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(w)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}let ee=this._map,le=ee.terrain.depthAtPoint(this._pos),qe=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,qe)-le<.006)return void(this._element.style.opacity=this._opacity);let Xe=-this._offset.y/ee.transform._pixelPerMeter,ot=Math.sin(ee.getPitch()*Math.PI/180)*Xe,Tt=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),Kt=ee.transform.lngLatToCameraDepth(this._lngLat,qe+ot)-Tt>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&Kt&&this._popup.remove(),this._element.style.opacity=Kt?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(w){return this._offset=a.P.convert(w),this._update(),this}addClassName(w){this._element.classList.add(w)}removeClassName(w){this._element.classList.remove(w)}toggleClassName(w){return this._element.classList.toggle(w)}setDraggable(w){return this._draggable=!!w,this._map&&(w?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(w){return this._rotation=w||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(w){return this._rotationAlignment=w||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(w){return this._pitchAlignment=w&&w!=="auto"?w:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(w,B){return w===void 0&&B===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),w!==void 0&&(this._opacity=w),B!==void 0&&(this._opacityWhenCovered=B),this._map&&this._updateOpacity(!0),this}}let Nc={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},pu=0,Uc=!1,xu={maxWidth:100,unit:"metric"};function Ac(ue,w,B){let Q=B&&B.maxWidth||100,ee=ue._container.clientHeight/2,le=ue.unproject([0,ee]),qe=ue.unproject([Q,ee]),Xe=le.distanceTo(qe);if(B&&B.unit==="imperial"){let ot=3.2808*Xe;ot>5280?Ua(w,Q,ot/5280,ue._getUIString("ScaleControl.Miles")):Ua(w,Q,ot,ue._getUIString("ScaleControl.Feet"))}else B&&B.unit==="nautical"?Ua(w,Q,Xe/1852,ue._getUIString("ScaleControl.NauticalMiles")):Xe>=1e3?Ua(w,Q,Xe/1e3,ue._getUIString("ScaleControl.Kilometers")):Ua(w,Q,Xe,ue._getUIString("ScaleControl.Meters"))}function Ua(ue,w,B,Q){let ee=function(le){let qe=Math.pow(10,`${Math.floor(le)}`.length-1),Xe=le/qe;return Xe=Xe>=10?10:Xe>=5?5:Xe>=3?3:Xe>=2?2:Xe>=1?1:function(ot){let Tt=Math.pow(10,Math.ceil(-Math.log(ot)/Math.LN10));return Math.round(ot*Tt)/Tt}(Xe),qe*Xe}(B);ue.style.width=w*(ee/B)+"px",ue.innerHTML=`${ee} ${Q}`}let oo={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Vc=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function hc(ue){if(ue){if(typeof ue=="number"){let w=Math.round(Math.abs(ue)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,ue),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-ue),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(ue,0),right:new a.P(-ue,0)}}if(ue instanceof a.P||Array.isArray(ue)){let w=a.P.convert(ue);return{center:w,top:w,"top-left":w,"top-right":w,bottom:w,"bottom-left":w,"bottom-right":w,left:w,right:w}}return{center:a.P.convert(ue.center||[0,0]),top:a.P.convert(ue.top||[0,0]),"top-left":a.P.convert(ue["top-left"]||[0,0]),"top-right":a.P.convert(ue["top-right"]||[0,0]),bottom:a.P.convert(ue.bottom||[0,0]),"bottom-left":a.P.convert(ue["bottom-left"]||[0,0]),"bottom-right":a.P.convert(ue["bottom-right"]||[0,0]),left:a.P.convert(ue.left||[0,0]),right:a.P.convert(ue.right||[0,0])}}return hc(new a.P(0,0))}let Ku=o;i.AJAXError=a.bh,i.Evented=a.E,i.LngLat=a.N,i.MercatorCoordinate=a.Z,i.Point=a.P,i.addProtocol=a.bi,i.config=a.a,i.removeProtocol=a.bj,i.AttributionControl=Na,i.BoxZoomHandler=Cu,i.CanvasSource=$t,i.CooperativeGesturesHandler=$i,i.DoubleClickZoomHandler=Ei,i.DragPanHandler=Tn,i.DragRotateHandler=Bn,i.EdgeInsets=hu,i.FullscreenControl=class extends a.E{constructor(ue={}){super(),this._onFullscreenChange=()=>{var w;let B=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((w=B==null?void 0:B.shadowRoot)===null||w===void 0)&&w.fullscreenElement;)B=B.shadowRoot.fullscreenElement;B===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,ue&&ue.container&&(ue.container instanceof HTMLElement?this._container=ue.container:a.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(ue){return this._map=ue,this._container||(this._container=this._map.getContainer()),this._controlContainer=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){c.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let ue=this._fullscreenButton=c.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);c.create("span","maplibregl-ctrl-icon",ue).setAttribute("aria-hidden","true"),ue.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let ue=this._getTitle();this._fullscreenButton.setAttribute("aria-label",ue),this._fullscreenButton.title=ue}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new a.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new a.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},i.GeoJSONSource=st,i.GeolocateControl=class extends a.E{constructor(ue){super(),this._onSuccess=w=>{if(this._map){if(this._isOutOfMapMaxBounds(w))return this._setErrorState(),this.fire(new a.k("outofmaxbounds",w)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=w,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(w),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(w),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new a.k("geolocate",w)),this._finish()}},this._updateCamera=w=>{let B=new a.N(w.coords.longitude,w.coords.latitude),Q=w.coords.accuracy,ee=this._map.getBearing(),le=a.e({bearing:ee},this.options.fitBoundsOptions),qe=ce.fromLngLat(B,Q);this._map.fitBounds(qe,le,{geolocateSource:!0})},this._updateMarker=w=>{if(w){let B=new a.N(w.coords.longitude,w.coords.latitude);this._accuracyCircleMarker.setLngLat(B).addTo(this._map),this._userLocationDotMarker.setLngLat(B).addTo(this._map),this._accuracy=w.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=w=>{if(this._map){if(this.options.trackUserLocation)if(w.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(w.code===3&&Uc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new a.k("error",w)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",w=>w.preventDefault()),this._geolocateButton=c.create("button","maplibregl-ctrl-geolocate",this._container),c.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=w=>{if(this._map){if(w===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");let B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}else{let B=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=c.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new Yu({element:this._dotElement}),this._circleElement=c.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Yu({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",B=>{B.geolocateSource||this._watchState!=="ACTIVE_LOCK"||B.originalEvent&&B.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new a.k("trackuserlocationend")),this.fire(new a.k("userlocationlostfocus")))})}},this.options=a.e({},Nc,ue)}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return a._(this,arguments,void 0,function*(w=!1){if(_s!==void 0&&!w)return _s;if(window.navigator.permissions===void 0)return _s=!!window.navigator.geolocation,_s;try{_s=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(B){_s=!!window.navigator.geolocation}return _s})}().then(w=>this._finishSetupUI(w)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),c.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,pu=0,Uc=!1}_isOutOfMapMaxBounds(ue){let w=this._map.getMaxBounds(),B=ue.coords;return w&&(B.longitudew.getEast()||B.latitudew.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let ue=this._map.getBounds(),w=ue.getSouthEast(),B=ue.getNorthEast(),Q=w.distanceTo(B),ee=Math.ceil(this._accuracy/(Q/this._map._container.clientHeight)*2);this._circleElement.style.width=`${ee}px`,this._circleElement.style.height=`${ee}px`}trigger(){if(!this._setup)return a.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":pu--,Uc=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new a.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.k("trackuserlocationstart")),this.fire(new a.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let ue;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),pu++,pu>1?(ue={maximumAge:6e5,timeout:0},Uc=!0):(ue=this.options.positionOptions,Uc=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ue)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},i.Hash=wh,i.ImageSource=Gt,i.KeyboardHandler=Xt,i.LngLatBounds=ce,i.LogoControl=Yn,i.Map=class extends Ra{constructor(ue){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Xs),ue);if(w.minZoom!=null&&w.maxZoom!=null&&w.minZoom>w.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(w.minPitch!=null&&w.maxPitch!=null&&w.minPitch>w.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(w.minPitch!=null&&w.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(w.maxPitch!=null&&w.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new al(w.minZoom,w.maxZoom,w.minPitch,w.maxPitch,w.renderWorldCopies),{bearingSnap:w.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new zn,this._controls=[],this._mapId=a.a4(),this._contextLost=B=>{B.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new a.k("webglcontextlost",{originalEvent:B}))},this._contextRestored=B=>{this._setupPainter(),this.resize(),this._update(),this.fire(new a.k("webglcontextrestored",{originalEvent:B}))},this._onMapScroll=B=>{if(B.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=w.interactive,this._maxTileCacheSize=w.maxTileCacheSize,this._maxTileCacheZoomLevels=w.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=w.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=w.preserveDrawingBuffer===!0,this._antialias=w.antialias===!0,this._trackResize=w.trackResize===!0,this._bearingSnap=w.bearingSnap,this._refreshExpiredTiles=w.refreshExpiredTiles===!0,this._fadeDuration=w.fadeDuration,this._crossSourceCollisions=w.crossSourceCollisions===!0,this._collectResourceTiming=w.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},Ho),w.locale),this._clickTolerance=w.clickTolerance,this._overridePixelRatio=w.pixelRatio,this._maxCanvasSize=w.maxCanvasSize,this.transformCameraUpdate=w.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=w.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=p.addThrottleControl(()=>this.isMoving()),this._requestManager=new C(w.transformRequest),typeof w.container=="string"){if(this._container=document.getElementById(w.container),!this._container)throw new Error(`Container '${w.container}' not found.`)}else{if(!(w.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=w.container}if(w.maxBounds&&this.setMaxBounds(w.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window!="undefined"){addEventListener("online",this._onWindowOnline,!1);let B=!1,Q=nh(ee=>{this._trackResize&&!this._removed&&(this.resize(ee),this.redraw())},50);this._resizeObserver=new ResizeObserver(ee=>{B?Q(ee):B=!0}),this._resizeObserver.observe(this._container)}this.handlers=new ka(this,w),this._hash=w.hash&&new wh(typeof w.hash=="string"&&w.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:w.center,zoom:w.zoom,bearing:w.bearing,pitch:w.pitch}),w.bounds&&(this.resize(),this.fitBounds(w.bounds,a.e({},w.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=w.localIdeographFontFamily,this._validateStyle=w.validateStyle,w.style&&this.setStyle(w.style,{localIdeographFontFamily:w.localIdeographFontFamily}),w.attributionControl&&this.addControl(new Na(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new Yn,w.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",B=>{this._update(B.dataType==="style"),this.fire(new a.k(`${B.dataType}data`,B))}),this.on("dataloading",B=>{this.fire(new a.k(`${B.dataType}dataloading`,B))}),this.on("dataabort",B=>{this.fire(new a.k("sourcedataabort",B))})}_getMapId(){return this._mapId}addControl(ue,w){if(w===void 0&&(w=ue.getDefaultPosition?ue.getDefaultPosition():"top-right"),!ue||!ue.onAdd)return this.fire(new a.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let B=ue.onAdd(this);this._controls.push(ue);let Q=this._controlPositions[w];return w.indexOf("bottom")!==-1?Q.insertBefore(B,Q.firstChild):Q.appendChild(B),this}removeControl(ue){if(!ue||!ue.onRemove)return this.fire(new a.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let w=this._controls.indexOf(ue);return w>-1&&this._controls.splice(w,1),ue.onRemove(this),this}hasControl(ue){return this._controls.indexOf(ue)>-1}calculateCameraOptionsFromTo(ue,w,B,Q){return Q==null&&this.terrain&&(Q=this.terrain.getElevationForLngLatZoom(B,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(ue,w,B,Q)}resize(ue){var w;let B=this._containerDimensions(),Q=B[0],ee=B[1],le=this._getClampedPixelRatio(Q,ee);if(this._resizeCanvas(Q,ee,le),this.painter.resize(Q,ee,le),this.painter.overLimit()){let Xe=this.painter.context.gl;this._maxCanvasSize=[Xe.drawingBufferWidth,Xe.drawingBufferHeight];let ot=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,ot),this.painter.resize(Q,ee,ot)}this.transform.resize(Q,ee),(w=this._requestedCameraState)===null||w===void 0||w.resize(Q,ee);let qe=!this._moving;return qe&&(this.stop(),this.fire(new a.k("movestart",ue)).fire(new a.k("move",ue))),this.fire(new a.k("resize",ue)),qe&&this.fire(new a.k("moveend",ue)),this}_getClampedPixelRatio(ue,w){let{0:B,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),le=ue*ee,qe=w*ee;return Math.min(le>B?B/le:1,qe>Q?Q/qe:1)*ee}getPixelRatio(){var ue;return(ue=this._overridePixelRatio)!==null&&ue!==void 0?ue:devicePixelRatio}setPixelRatio(ue){this._overridePixelRatio=ue,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(ue){return this.transform.setMaxBounds(ce.convert(ue)),this._update()}setMinZoom(ue){if((ue=ue==null?-2:ue)>=-2&&ue<=this.transform.maxZoom)return this.transform.minZoom=ue,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ue,this._update(),this.getZoom()>ue&&this.setZoom(ue),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(ue){if((ue=ue==null?0:ue)<0)throw new Error("minPitch must be greater than or equal to 0");if(ue>=0&&ue<=this.transform.maxPitch)return this.transform.minPitch=ue,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(ue>=this.transform.minPitch)return this.transform.maxPitch=ue,this._update(),this.getPitch()>ue&&this.setPitch(ue),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(ue){return this.transform.renderWorldCopies=ue,this._update()}project(ue){return this.transform.locationPoint(a.N.convert(ue),this.style&&this.terrain)}unproject(ue){return this.transform.pointLocation(a.P.convert(ue),this.terrain)}isMoving(){var ue;return this._moving||((ue=this.handlers)===null||ue===void 0?void 0:ue.isMoving())}isZooming(){var ue;return this._zooming||((ue=this.handlers)===null||ue===void 0?void 0:ue.isZooming())}isRotating(){var ue;return this._rotating||((ue=this.handlers)===null||ue===void 0?void 0:ue.isRotating())}_createDelegatedListener(ue,w,B){if(ue==="mouseenter"||ue==="mouseover"){let Q=!1;return{layers:w,listener:B,delegates:{mousemove:le=>{let qe=w.filter(ot=>this.getLayer(ot)),Xe=qe.length!==0?this.queryRenderedFeatures(le.point,{layers:qe}):[];Xe.length?Q||(Q=!0,B.call(this,new jl(ue,this,le.originalEvent,{features:Xe}))):Q=!1},mouseout:()=>{Q=!1}}}}if(ue==="mouseleave"||ue==="mouseout"){let Q=!1;return{layers:w,listener:B,delegates:{mousemove:qe=>{let Xe=w.filter(ot=>this.getLayer(ot));(Xe.length!==0?this.queryRenderedFeatures(qe.point,{layers:Xe}):[]).length?Q=!0:Q&&(Q=!1,B.call(this,new jl(ue,this,qe.originalEvent)))},mouseout:qe=>{Q&&(Q=!1,B.call(this,new jl(ue,this,qe.originalEvent)))}}}}{let Q=ee=>{let le=w.filter(Xe=>this.getLayer(Xe)),qe=le.length!==0?this.queryRenderedFeatures(ee.point,{layers:le}):[];qe.length&&(ee.features=qe,B.call(this,ee),delete ee.features)};return{layers:w,listener:B,delegates:{[ue]:Q}}}}_saveDelegatedListener(ue,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ue]=this._delegatedListeners[ue]||[],this._delegatedListeners[ue].push(w)}_removeDelegatedListener(ue,w,B){if(!this._delegatedListeners||!this._delegatedListeners[ue])return;let Q=this._delegatedListeners[ue];for(let ee=0;eew.includes(qe))){for(let qe in le.delegates)this.off(qe,le.delegates[qe]);return void Q.splice(ee,1)}}}on(ue,w,B){if(B===void 0)return super.on(ue,w);let Q=this._createDelegatedListener(ue,typeof w=="string"?[w]:w,B);this._saveDelegatedListener(ue,Q);for(let ee in Q.delegates)this.on(ee,Q.delegates[ee]);return this}once(ue,w,B){if(B===void 0)return super.once(ue,w);let Q=typeof w=="string"?[w]:w,ee=this._createDelegatedListener(ue,Q,B);for(let le in ee.delegates){let qe=ee.delegates[le];ee.delegates[le]=(...Xe)=>{this._removeDelegatedListener(ue,Q,B),qe(...Xe)}}this._saveDelegatedListener(ue,ee);for(let le in ee.delegates)this.once(le,ee.delegates[le]);return this}off(ue,w,B){return B===void 0?super.off(ue,w):(this._removeDelegatedListener(ue,typeof w=="string"?[w]:w,B),this)}queryRenderedFeatures(ue,w){if(!this.style)return[];let B,Q=ue instanceof a.P||Array.isArray(ue),ee=Q?ue:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(Q?{}:ue)||{},ee instanceof a.P||typeof ee[0]=="number")B=[a.P.convert(ee)];else{let le=a.P.convert(ee[0]),qe=a.P.convert(ee[1]);B=[le,new a.P(qe.x,le.y),qe,new a.P(le.x,qe.y),le]}return this.style.queryRenderedFeatures(B,w,this.transform)}querySourceFeatures(ue,w){return this.style.querySourceFeatures(ue,w)}setStyle(ue,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&ue?(this._diffStyle(ue,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(ue,w))}setTransformRequest(ue){return this._requestManager.setTransformRequest(ue),this}_getUIString(ue){let w=this._locale[ue];if(w==null)throw new Error(`Missing UI string '${ue}'`);return w}_updateStyle(ue,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(ue,w));let B=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!ue)),ue?(this.style=new Ga(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof ue=="string"?this.style.loadURL(ue,w,B):this.style.loadJSON(ue,w,B),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new Ga(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(ue,w){if(typeof ue=="string"){let B=this._requestManager.transformRequest(ue,"Style");a.h(B,new AbortController).then(Q=>{this._updateDiff(Q.data,w)}).catch(Q=>{Q&&this.fire(new a.j(Q))})}else typeof ue=="object"&&this._updateDiff(ue,w)}_updateDiff(ue,w){try{this.style.setState(ue,w)&&this._update(!0)}catch(B){a.w(`Unable to perform style diff: ${B.message||B.error||B}. Rebuilding the style from scratch.`),this._updateStyle(ue,w)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.w("There is no style added to the map.")}addSource(ue,w){return this._lazyInitEmptyStyle(),this.style.addSource(ue,w),this._update(!0)}isSourceLoaded(ue){let w=this.style&&this.style.sourceCaches[ue];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${ue}'`)))}setTerrain(ue){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),ue){let w=this.style.sourceCaches[ue.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${ue.source}`);this.terrain===null&&w.reload();for(let B in this.style._layers){let Q=this.style._layers[B];Q.type==="hillshade"&&Q.source===ue.source&&a.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Xo(this.painter,w,ue),this.painter.renderToTexture=new Ts(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=B=>{B.dataType==="style"?this.terrain.sourceCache.freeRtt():B.dataType==="source"&&B.tile&&(B.sourceId!==ue.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(B.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new a.k("terrain",{terrain:ue})),this}getTerrain(){var ue,w;return(w=(ue=this.terrain)===null||ue===void 0?void 0:ue.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let ue=this.style&&this.style.sourceCaches;for(let w in ue){let B=ue[w]._tiles;for(let Q in B){let ee=B[Q];if(ee.state!=="loaded"&&ee.state!=="errored")return!1}}return!0}removeSource(ue){return this.style.removeSource(ue),this._update(!0)}getSource(ue){return this.style.getSource(ue)}addImage(ue,w,B={}){let{pixelRatio:Q=1,sdf:ee=!1,stretchX:le,stretchY:qe,content:Xe,textFitWidth:ot,textFitHeight:Tt}=B;if(this._lazyInitEmptyStyle(),!(w instanceof HTMLImageElement||a.b(w))){if(w.width===void 0||w.height===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:Kt,height:Jt,data:xr}=w,Pr=w;return this.style.addImage(ue,{data:new a.R({width:Kt,height:Jt},new Uint8Array(xr)),pixelRatio:Q,stretchX:le,stretchY:qe,content:Xe,textFitWidth:ot,textFitHeight:Tt,sdf:ee,version:0,userImage:Pr}),Pr.onAdd&&Pr.onAdd(this,ue),this}}{let{width:Kt,height:Jt,data:xr}=u.getImageData(w);this.style.addImage(ue,{data:new a.R({width:Kt,height:Jt},xr),pixelRatio:Q,stretchX:le,stretchY:qe,content:Xe,textFitWidth:ot,textFitHeight:Tt,sdf:ee,version:0})}}updateImage(ue,w){let B=this.style.getImage(ue);if(!B)return this.fire(new a.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let Q=w instanceof HTMLImageElement||a.b(w)?u.getImageData(w):w,{width:ee,height:le,data:qe}=Q;if(ee===void 0||le===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(ee!==B.data.width||le!==B.data.height)return this.fire(new a.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let Xe=!(w instanceof HTMLImageElement||a.b(w));return B.data.replace(qe,Xe),this.style.updateImage(ue,B),this}getImage(ue){return this.style.getImage(ue)}hasImage(ue){return ue?!!this.style.getImage(ue):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(ue){this.style.removeImage(ue)}loadImage(ue){return p.getImage(this._requestManager.transformRequest(ue,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(ue,w){return this._lazyInitEmptyStyle(),this.style.addLayer(ue,w),this._update(!0)}moveLayer(ue,w){return this.style.moveLayer(ue,w),this._update(!0)}removeLayer(ue){return this.style.removeLayer(ue),this._update(!0)}getLayer(ue){return this.style.getLayer(ue)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(ue,w,B){return this.style.setLayerZoomRange(ue,w,B),this._update(!0)}setFilter(ue,w,B={}){return this.style.setFilter(ue,w,B),this._update(!0)}getFilter(ue){return this.style.getFilter(ue)}setPaintProperty(ue,w,B,Q={}){return this.style.setPaintProperty(ue,w,B,Q),this._update(!0)}getPaintProperty(ue,w){return this.style.getPaintProperty(ue,w)}setLayoutProperty(ue,w,B,Q={}){return this.style.setLayoutProperty(ue,w,B,Q),this._update(!0)}getLayoutProperty(ue,w){return this.style.getLayoutProperty(ue,w)}setGlyphs(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(ue,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(ue,w,B={}){return this._lazyInitEmptyStyle(),this.style.addSprite(ue,w,B,Q=>{Q||this._update(!0)}),this}removeSprite(ue){return this._lazyInitEmptyStyle(),this.style.removeSprite(ue),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(ue,w,B=>{B||this._update(!0)}),this}setLight(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(ue,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(ue){return this._lazyInitEmptyStyle(),this.style.setSky(ue),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(ue,w){return this.style.setFeatureState(ue,w),this._update()}removeFeatureState(ue,w){return this.style.removeFeatureState(ue,w),this._update()}getFeatureState(ue){return this.style.getFeatureState(ue)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let ue=0,w=0;return this._container&&(ue=this._container.clientWidth||400,w=this._container.clientHeight||300),[ue,w]}_setupContainer(){let ue=this._container;ue.classList.add("maplibregl-map");let w=this._canvasContainer=c.create("div","maplibregl-canvas-container",ue);this._interactive&&w.classList.add("maplibregl-interactive"),this._canvas=c.create("canvas","maplibregl-canvas",w),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let B=this._containerDimensions(),Q=this._getClampedPixelRatio(B[0],B[1]);this._resizeCanvas(B[0],B[1],Q);let ee=this._controlContainer=c.create("div","maplibregl-control-container",ue),le=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(qe=>{le[qe]=c.create("div",`maplibregl-ctrl-${qe} `,ee)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(ue,w,B){this._canvas.width=Math.floor(B*ue),this._canvas.height=Math.floor(B*w),this._canvas.style.width=`${ue}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let ue={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},w=null;this._canvas.addEventListener("webglcontextcreationerror",Q=>{w={requestedAttributes:ue},Q&&(w.statusMessage=Q.statusMessage,w.type=Q.type)},{once:!0});let B=this._canvas.getContext("webgl2",ue)||this._canvas.getContext("webgl",ue);if(!B){let Q="Failed to initialize WebGL";throw w?(w.message=Q,new Error(JSON.stringify(w))):new Error(Q)}this.painter=new Dc(B,this.transform),f.testSupport(B)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(ue){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||ue,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(ue){return this._update(),this._renderTaskQueue.add(ue)}_cancelRenderFrame(ue){this._renderTaskQueue.remove(ue)}_render(ue){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(ue),this._removed)return;let B=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let ee=this.transform.zoom,le=u.now();this.style.zoomHistory.update(ee,le);let qe=new a.z(ee,{now:le,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),Xe=qe.crossFadingFactor();Xe===1&&Xe===this._crossFadingFactor||(B=!0,this._crossFadingFactor=Xe),this.style.update(qe)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,showPadding:this.showPadding}),this.fire(new a.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,a.bf.mark(a.bg.load),this.fire(new a.k("load"))),this.style&&(this.style.hasTransitions()||B)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let Q=this._sourcesDirty||this._styleDirty||this._placementDirty;return Q||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new a.k("idle")),!this._loaded||this._fullyLoaded||Q||(this._fullyLoaded=!0,a.bf.mark(a.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var ue;this._hash&&this._hash.remove();for(let B of this._controls)B.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window!="undefined"&&removeEventListener("online",this._onWindowOnline,!1),p.removeThrottleControl(this._imageQueueHandle),(ue=this._resizeObserver)===null||ue===void 0||ue.disconnect();let w=this.painter.context.gl.getExtension("WEBGL_lose_context");w!=null&&w.loseContext&&w.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),c.remove(this._canvasContainer),c.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),a.bf.clearMetrics(),this._removed=!0,this.fire(new a.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then(ue=>{a.bf.frame(ue),this._frameRequest=null,this._render(ue)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(ue){this._showTileBoundaries!==ue&&(this._showTileBoundaries=ue,this._update())}get showPadding(){return!!this._showPadding}set showPadding(ue){this._showPadding!==ue&&(this._showPadding=ue,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(ue){this._showCollisionBoxes!==ue&&(this._showCollisionBoxes=ue,ue?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(ue){this._showOverdrawInspector!==ue&&(this._showOverdrawInspector=ue,this._update())}get repaint(){return!!this._repaint}set repaint(ue){this._repaint!==ue&&(this._repaint=ue,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(ue){this._vertices=ue,this._update()}get version(){return yl}getCameraTargetElevation(){return this.transform.elevation}},i.MapMouseEvent=jl,i.MapTouchEvent=lf,i.MapWheelEvent=Vh,i.Marker=Yu,i.NavigationControl=class{constructor(ue){this._updateZoomButtons=()=>{let w=this._map.getZoom(),B=w===this._map.getMaxZoom(),Q=w===this._map.getMinZoom();this._zoomInButton.disabled=B,this._zoomOutButton.disabled=Q,this._zoomInButton.setAttribute("aria-disabled",B.toString()),this._zoomOutButton.setAttribute("aria-disabled",Q.toString())},this._rotateCompassArrow=()=>{let w=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=w},this._setButtonTitle=(w,B)=>{let Q=this._map._getUIString(`NavigationControl.${B}`);w.title=Q,w.setAttribute("aria-label",Q)},this.options=a.e({},va,ue),this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",w=>w.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",w=>this._map.zoomIn({},{originalEvent:w})),c.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",w=>this._map.zoomOut({},{originalEvent:w})),c.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",w=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:w}):this._map.resetNorth({},{originalEvent:w})}),this._compassIcon=c.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(ue){return this._map=ue,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new no(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){c.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(ue,w){let B=c.create("button",ue,this._container);return B.type="button",B.addEventListener("click",w),B}},i.Popup=class extends a.E{constructor(ue){super(),this.remove=()=>(this._content&&c.remove(this._content),this._container&&(c.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new a.k("close"))),this),this._onMouseUp=w=>{this._update(w.point)},this._onMouseMove=w=>{this._update(w.point)},this._onDrag=w=>{this._update(w.point)},this._update=w=>{var B;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=c.create("div","maplibregl-popup",this._map.getContainer()),this._tip=c.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let Xe of this.options.className.split(" "))this._container.classList.add(Xe);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?is(this._lngLat,this._flatPos,this._map.transform):(B=this._lngLat)===null||B===void 0?void 0:B.wrap(),this._trackPointer&&!w)return;let Q=this._flatPos=this._pos=this._trackPointer&&w?w:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&w?w:this._map.transform.locationPoint(this._lngLat));let ee=this.options.anchor,le=hc(this.options.offset);if(!ee){let Xe=this._container.offsetWidth,ot=this._container.offsetHeight,Tt;Tt=Q.y+le.bottom.ythis._map.transform.height-ot?["bottom"]:[],Q.xthis._map.transform.width-Xe/2&&Tt.push("right"),ee=Tt.length===0?"bottom":Tt.join("-")}let qe=Q.add(le[ee]);this.options.subpixelPositioning||(qe=qe.round()),c.setTransform(this._container,`${$l[ee]} translate(${qe.x}px,${qe.y}px)`),ku(this._container,ee,"popup")},this._onClose=()=>{this.remove()},this.options=a.e(Object.create(oo),ue)}addTo(ue){return this._map&&this.remove(),this._map=ue,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new a.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(ue){return this._lngLat=a.N.convert(ue),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(ue){return this.setDOMContent(document.createTextNode(ue))}setHTML(ue){let w=document.createDocumentFragment(),B=document.createElement("body"),Q;for(B.innerHTML=ue;Q=B.firstChild,Q;)w.appendChild(Q);return this.setDOMContent(w)}getMaxWidth(){var ue;return(ue=this._container)===null||ue===void 0?void 0:ue.style.maxWidth}setMaxWidth(ue){return this.options.maxWidth=ue,this._update(),this}setDOMContent(ue){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=c.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(ue),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(ue){return this._container&&this._container.classList.add(ue),this}removeClassName(ue){return this._container&&this._container.classList.remove(ue),this}setOffset(ue){return this.options.offset=ue,this._update(),this}toggleClassName(ue){if(this._container)return this._container.classList.toggle(ue)}setSubpixelPositioning(ue){this.options.subpixelPositioning=ue}_createCloseButton(){this.options.closeButton&&(this._closeButton=c.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let ue=this._container.querySelector(Vc);ue&&ue.focus()}},i.RasterDEMTileSource=Wt,i.RasterTileSource=pt,i.ScaleControl=class{constructor(ue){this._onMove=()=>{Ac(this._map,this._container,this.options)},this.setUnit=w=>{this.options.unit=w,Ac(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},xu),ue)}getDefaultPosition(){return"bottom-left"}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-scale",ue.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){c.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},i.ScrollZoomHandler=Kr,i.Style=Ga,i.TerrainControl=class{constructor(ue){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=ue}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=c.create("button","maplibregl-ctrl-terrain",this._container),c.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){c.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},i.TwoFingersTouchPitchHandler=Bc,i.TwoFingersTouchRotateHandler=cf,i.TwoFingersTouchZoomHandler=vu,i.TwoFingersTouchZoomRotateHandler=Zi,i.VectorTileSource=ct,i.VideoSource=Nt,i.addSourceType=(ue,w)=>a._(void 0,void 0,void 0,function*(){if(wr(ue))throw new Error(`A source type called "${ue}" already exists.`);((B,Q)=>{sr[B]=Q})(ue,w)}),i.clearPrewarmedResources=function(){let ue=me;ue&&(ue.isPreloaded()&&ue.numActive()===1?(ue.release(_e),me=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},i.getMaxParallelImageRequests=function(){return a.a.MAX_PARALLEL_IMAGE_REQUESTS},i.getRTLTextPluginStatus=function(){return er().getRTLTextPluginStatus()},i.getVersion=function(){return Ku},i.getWorkerCount=function(){return Me.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(ue){return Ae().broadcast("IS",ue)},i.prewarm=function(){Se().acquire(_e)},i.setMaxParallelImageRequests=function(ue){a.a.MAX_PARALLEL_IMAGE_REQUESTS=ue},i.setRTLTextPlugin=function(ue,w){return er().setRTLTextPlugin(ue,w)},i.setWorkerCount=function(ue){Me.workerCount=ue},i.setWorkerUrl=function(ue){a.a.WORKER_URL=ue}});var n=e;return n})});var ZHe=ye((Pxr,XHe)=>{"use strict";var iw=Dr(),HWt=ru().sanitizeHTML,jWt=wJ(),HHe=bx();function jHe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=HHe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var og=jHe.prototype;og.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=s7(t)};og.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};og.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};og.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};og.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};og.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};og.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!s7(e)){var r=WWt(e);t.addSource(this.idSource,r)}};og.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function WHe(e){var t={},r={};switch(e.type){case"circle":iw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":iw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":iw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=jWt(n.textposition,n.iconsize);iw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),iw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":iw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function WWt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=HWt(e.sourceattribution)),n}XHe.exports=function(t,r,n){var i=new jHe(t,r);return i.update(n),i}});var rje=ye((Ixr,tje)=>{"use strict";var CJ=GHe(),kJ=Dr(),JHe=ix(),YHe=qa(),XWt=ho(),ZWt=yv(),l7=vf(),$He=Mg(),YWt=$He.drawMode,KWt=$He.selectMode,JWt=zf().prepSelect,$Wt=zf().clearOutline,QWt=zf().clearSelectionsCache,eXt=zf().selectOnClick,nw=bx(),tXt=ZHe();function QHe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Bh=QHe.prototype;Bh.plot=function(e,t,r){var n=this,i;n.map?i=new Promise(function(a,o){n.updateMap(e,t,a,o)}):i=new Promise(function(a,o){n.createMap(e,t,a,o)}),r.push(i)};Bh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=eje(a.style),s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new CJ.Map({container:i.div,style:o.style,center:LJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new CJ.AttributionControl({compact:!0})),c={};u.on("styleimagemissing",function(h){var d=h.id;if(!c[d]&&d.includes("-15")){c[d]=!0;var v=new Image(15,15);v.onload=function(){u.addImage(d,v)},v.crossOrigin="Anonymous",v.src="https://unpkg.com/maki@2.1.0/icons/"+d+".svg"}}),u.setTransformRequest(function(h){return h=h.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:h}}),u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var f=[];f.push(new Promise(function(h){u.once("load",h)})),f=f.concat(JHe.fetchTraceGeoData(e)),Promise.all(f).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Bh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=eje(o.style);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(JHe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Bh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&eXt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&l7.click(n,l.originalEvent)}}};Bh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=kJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),KWt(a)||YWt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){JWt(l,u,c,t.dragOptions,a)},ZWt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Bh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Bh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var PJ=Dr(),iXt=C_(),nXt=Yd(),ije=jC();nje.exports=function(t,r,n){iXt(t,r,n,{type:"map",attributes:ije,handleDefaults:aXt,partition:"y"})};function aXt(e,t,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var n=r("bounds.west"),i=r("bounds.east"),a=r("bounds.south"),o=r("bounds.north");(n===void 0||i===void 0||a===void 0||o===void 0)&&delete t.bounds,nXt(e,t,{name:"layers",handleItemDefaults:oXt}),t._input=e}function oXt(e,t){function r(l,u){return PJ.coerce(e,t,ije.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",PJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),PJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var c7=ye(l0=>{"use strict";var u7=Dr(),oje=u7.strTranslate,sXt=u7.strScale,lXt=Id().getSubplotCalcData,uXt=Wp(),cXt=Oa(),sje=So(),fXt=ru(),hXt=rje(),wx="map";l0.name=wx;l0.attr="subplot";l0.idRoot=wx;l0.idRegex=l0.attrRegex=u7.counterRegex(wx);l0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};l0.layoutAttributes=jC();l0.supplyLayoutDefaults=aje();l0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[wx],a=0;a_/2){var b=f.split("|").join("
");d.text(b).attr("data-unformatted",b).call(fXt.convertToTspans,e),v=sje.bBox(d.node())}d.attr("transform",oje(-3,-v.height+8)),h.insert("rect",".static-attribution").attr({x:-v.width-6,y:-v.height-3,width:v.width+6,height:v.height+3,fill:"rgba(255, 255, 255, 0.75)"});var p=1;v.width+6>_&&(p=_/(v.width+6));var C=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",oje(C[0],C[1])+sXt(p))}};l0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[wx],n=0;n{"use strict";lje.exports={attributes:t7(),supplyDefaults:bHe(),colorbar:$d(),formatLabels:bJ(),calc:hF(),plot:FHe(),hoverPoints:o7().hoverPoints,eventData:BHe(),selectPoints:UHe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:c7(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var fje=ye((zxr,cje)=>{"use strict";cje.exports=uje()});var IJ=ye((Oxr,hje)=>{"use strict";var d1=$A(),dXt=Tu(),vXt=Qo().hovertemplateAttrs,pXt=Gl(),Tx=Ao().extendFlat;hje.exports=Tx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Tx({},d1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:d1.text,hovertext:d1.hovertext,marker:{line:{color:Tx({},d1.marker.line.color,{editType:"plot"}),width:Tx({},d1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Tx({},d1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Tx({},d1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Tx({},d1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:d1.hoverinfo,hovertemplate:vXt({},{keys:["properties"]}),showlegend:Tx({},pXt.showlegend,{dflt:!1})},dXt("",{cLetter:"z",editTypeOverride:"calc"}))});var vje=ye((qxr,dje)=>{"use strict";var YC=Dr(),gXt=Jh(),mXt=IJ();dje.exports=function(t,r,n,i){function a(c,f){return YC.coerce(t,r,mXt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!YC.isArrayOrTypedArray(o)||!o.length||!YC.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||YC.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),gXt(t,r,i,a,{prefix:"",cLetter:"z"}),YC.coerceSelectionMarkerOpacity(r,a)}});var RJ=ye((Bxr,mje)=>{"use strict";var yXt=Eo(),v1=Dr(),_Xt=tc(),xXt=So(),bXt=tx().makeBlank,pje=ix();function wXt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:bXt()};if(!r)return a;var o=pje.extractTraceFeature(e);if(!o)return a;var s=_Xt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;v1.isArrayOrTypedArray(l.opacity)&&(c=function(C){var E=C.mo;return yXt(E)?+v1.constrain(E,0,1):0});var f;v1.isArrayOrTypedArray(u.color)&&(f=function(C){return C.mlc});var h;v1.isArrayOrTypedArray(u.width)&&(h=function(C){return C.mlw});for(var d=0;d{"use strict";var _je=RJ().convert,TXt=RJ().convertOnSelect,yje=bx().traceLayerPrefix;function xje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",yje+t+"-fill"],["line",yje+t+"-line"]],this.below=null}var C5=xje.prototype;C5.update=function(e){this._update(_je(e)),e[0].trace._glTrace=this};C5.updateOnSelect=function(e){this._update(TXt(e))};C5._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};C5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};bje.exports=function(t,r){var n=r[0].trace,i=new xje(t,n.uid),a=i.sourceId,o=_je(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var Aje=ye((Uxr,Tje)=>{"use strict";Tje.exports={attributes:IJ(),supplyDefaults:vje(),colorbar:S_(),calc:RF(),plot:wje(),hoverPoints:FF(),eventData:zF(),selectPoints:OF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";Sje.exports=Aje()});var FJ=ye((Gxr,Cje)=>{"use strict";var AXt=Tu(),SXt=Qo().hovertemplateAttrs,Eje=Gl(),f7=t7(),DJ=Ao().extendFlat;Cje.exports=DJ({lon:f7.lon,lat:f7.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:f7.text,hovertext:f7.hovertext,hoverinfo:DJ({},Eje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:SXt(),showlegend:DJ({},Eje.showlegend,{dflt:!1})},AXt("",{cLetter:"z",editTypeOverride:"calc"}))});var Lje=ye((Hxr,kje)=>{"use strict";var MXt=Dr(),EXt=Jh(),CXt=FJ();kje.exports=function(t,r,n,i){function a(u,c){return MXt.coerce(t,r,CXt,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),EXt(t,r,i,a,{prefix:"",cLetter:"z"})}});var Rje=ye((jxr,Ije)=>{"use strict";var zJ=Eo(),kXt=Dr().isArrayOrTypedArray,OJ=hs().BADNUM,LXt=gv(),Pje=Dr()._;Ije.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=kXt(a)&&a.length,s=0;s{"use strict";var PXt=Eo(),qJ=Dr(),Dje=Ca(),Fje=tc(),zje=hs().BADNUM,IXt=tx().makeBlank;Oje.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:IXt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=qJ.isArrayOrTypedArray(l)&&l.length,f=qJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=Fje.extractOpts(r),p=b.reversescale?Fje.flipScale(b.colorscale):b.colorscale,C=p[0][1],E=Dje.opacity(C)<1?C:Dje.addOpacity(C,0),A=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var Bje=qje(),RXt=bx().traceLayerPrefix;function Nje(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",RXt+t+"-heatmap"]],this.below=null}var h7=Nje.prototype;h7.update=function(e){var t=this.subplot,r=this.layerList,n=Bje(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};h7.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Uje.exports=function(t,r){var n=r[0].trace,i=new Nje(t,n.uid),a=i.sourceId,o=Bje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var Hje=ye((Zxr,Gje)=>{"use strict";var DXt=ho(),FXt=o7().hoverPoints,zXt=o7().getExtraText;Gje.exports=function(t,r,n){var i=FXt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=DXt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=zXt(s,l,o[0].t.labels),[a]}}});var Wje=ye((Yxr,jje)=>{"use strict";jje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var Zje=ye((Kxr,Xje)=>{"use strict";Xje.exports={attributes:FJ(),supplyDefaults:Lje(),colorbar:S_(),formatLabels:bJ(),calc:Rje(),plot:Vje(),hoverPoints:Hje(),eventData:Wje(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";Yje.exports=Zje()});var NJ=ye((Qxr,eWe)=>{"use strict";var OXt=ec(),qXt=Gl(),Jje=Ch(),BJ=i3(),BXt=kc().attributes,$je=Qo().hovertemplateAttrs,NXt=Tu(),UXt=pl().templatedArray,VXt=df().descriptionOnlyNumbers,Qje=Ao().extendFlat,GXt=mc().overrideAll,$xr=eWe.exports=GXt({hoverinfo:Qje({},qXt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:BJ.hoverlabel,domain:BXt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:VXt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:OXt({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Jje.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:BJ.hoverlabel,hovertemplate:$je({},{keys:["value","label"]}),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Jje.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:BJ.hoverlabel,hovertemplate:$je({},{keys:["value","label"]}),colorscales:UXt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:Qje(NXt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var aWe=ye((ebr,nWe)=>{"use strict";var k5=Dr(),d7=NJ(),HXt=Ca(),tWe=cd(),jXt=kc().defaults,rWe=fM(),iWe=pl(),WXt=Yd();nWe.exports=function(t,r,n,i){function a(A,L){return k5.coerce(t,r,d7,A,L)}var o=k5.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,l=iWe.newContainer(r,"node");function u(A,L){return k5.coerce(s,l,d7.node,A,L)}u("label"),u("groups"),u("x"),u("y"),u("pad"),u("thickness"),u("line.color"),u("line.width"),u("hoverinfo",t.hoverinfo),rWe(s,l,u,o),u("hovertemplate"),u("align");var c=i.colorway,f=function(A){return c[A%c.length]};u("color",l.label.map(function(A,L){return HXt.addOpacity(f(L),.8)})),u("customdata");var h=t.link||{},d=iWe.newContainer(r,"link");function v(A,L){return k5.coerce(h,d,d7.link,A,L)}v("label"),v("arrowlen"),v("source"),v("target"),v("value"),v("line.color"),v("line.width"),v("hoverinfo",t.hoverinfo),rWe(h,d,v,o),v("hovertemplate");var _=tWe(i.paper_bgcolor).getLuminance()<.333,b=_?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",p=v("color",b);function C(A){var L=tWe(A);if(!L.isValid())return A;var x=L.getAlpha();return x<=.8?L.setAlpha(x+.2):L=_?L.brighten():L.darken(),L.toRgbString()}v("hovercolor",Array.isArray(p)?p.map(C):C(p)),v("customdata"),WXt(h,d,{name:"colorscales",handleItemDefaults:XXt}),jXt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var E;l.x.length&&l.y.length&&(E="freeform"),a("arrangement",E),k5.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function XXt(e,t){function r(n,i){return k5.coerce(e,t,d7.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var UJ=ye((tbr,oWe)=>{"use strict";oWe.exports=ZXt;function ZXt(e){for(var t=e.length,r=new Array(t),n=new Array(t),i=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),l=0;l0;){b=C[C.length-1];var E=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=A}else{if(n[b]===r[b]){for(var x=[],k=[],M=0,A=p.length-1;A>=0;--A){var g=p[A];if(i[g]=!1,x.push(g),k.push(s[g]),M+=s[g].length,o[g]=c.length,g===b){p.length=A;break}}c.push(x);for(var P=new Array(M),A=0;A{"use strict";var YXt=UJ(),L5=Dr(),KXt=Km().wrap,KC=L5.isArrayOrTypedArray,sWe=L5.isIndex,lWe=tc();function JXt(e){var t=e.node,r=e.link,n=[],i=KC(r.color),a=KC(r.hovercolor),o=KC(r.customdata),s={},l={},u=r.colorscales.length,c;for(c=0;cv&&(v=r.source[c]),r.target[c]>v&&(v=r.target[c]);var _=v+1;e.node._count=_;var b,p=e.node.groups,C={};for(c=0;c0&&sWe(M,_)&&sWe(g,_)&&!(C.hasOwnProperty(M)&&C.hasOwnProperty(g)&&C[M]===C[g])){C.hasOwnProperty(g)&&(g=C[g]),C.hasOwnProperty(M)&&(M=C[M]),M=+M,g=+g,s[M]=s[g]=!0;var P="";r.label&&r.label[c]&&(P=r.label[c]);var T=null;P&&l.hasOwnProperty(P)&&(T=l[P]),n.push({pointNumber:c,label:P,color:i?r.color[c]:r.color,hovercolor:a?r.hovercolor[c]:r.hovercolor,customdata:o?r.customdata[c]:r.customdata,concentrationscale:T,source:M,target:g,value:+k}),x.source.push(M),x.target.push(g)}}var z=_+p.length,O=KC(t.color),V=KC(t.customdata),G=[];for(c=0;c_-1,childrenNodes:[],pointNumber:c,label:Z,color:O?t.color[c]:t.color,customdata:V?t.customdata[c]:t.customdata})}var H=!1;return $Xt(z,x.source,x.target)&&(H=!0),{circular:H,links:n,nodes:G,groups:p,groupLookup:C}}function $Xt(e,t,r){for(var n=L5.init2dArray(e,0),i=0;i1})}uWe.exports=function(t,r){var n=JXt(r);return KXt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var hWe=ye((v7,fWe)=>{(function(e,t){typeof v7=="object"&&typeof fWe!="undefined"?t(v7):(e=e||self,t(e.d3=e.d3||{}))})(v7,function(e){"use strict";function t(k){var M=+this._x.call(null,k),g=+this._y.call(null,k);return r(this.cover(M,g),M,g,k)}function r(k,M,g,P){if(isNaN(M)||isNaN(g))return k;var T,z=k._root,O={data:P},V=k._x0,G=k._y0,Z=k._x1,H=k._y1,N,j,re,oe,_e,Me,ke,me;if(!z)return k._root=O,k;for(;z.length;)if((_e=M>=(N=(V+Z)/2))?V=N:Z=N,(Me=g>=(j=(G+H)/2))?G=j:H=j,T=z,!(z=z[ke=Me<<1|_e]))return T[ke]=O,k;if(re=+k._x.call(null,z.data),oe=+k._y.call(null,z.data),M===re&&g===oe)return O.next=z,T?T[ke]=O:k._root=O,k;do T=T?T[ke]=new Array(4):k._root=new Array(4),(_e=M>=(N=(V+Z)/2))?V=N:Z=N,(Me=g>=(j=(G+H)/2))?G=j:H=j;while((ke=Me<<1|_e)===(me=(oe>=j)<<1|re>=N));return T[me]=z,T[ke]=O,k}function n(k){var M,g,P=k.length,T,z,O=new Array(P),V=new Array(P),G=1/0,Z=1/0,H=-1/0,N=-1/0;for(g=0;gH&&(H=T),zN&&(N=z));if(G>H||Z>N)return this;for(this.cover(G,Z).cover(H,N),g=0;gk||k>=T||P>M||M>=z;)switch(Z=(MH||(V=oe.y0)>N||(G=oe.x1)=ke)<<1|k>=Me)&&(oe=j[j.length-1],j[j.length-1]=j[j.length-1-_e],j[j.length-1-_e]=oe)}else{var me=k-+this._x.call(null,re.data),ie=M-+this._y.call(null,re.data),Se=me*me+ie*ie;if(Se=(j=(O+G)/2))?O=j:G=j,(_e=N>=(re=(V+Z)/2))?V=re:Z=re,M=g,!(g=g[Me=_e<<1|oe]))return this;if(!g.length)break;(M[Me+1&3]||M[Me+2&3]||M[Me+3&3])&&(P=M,ke=Me)}for(;g.data!==k;)if(T=g,!(g=g.next))return this;return(z=g.next)&&delete g.next,T?(z?T.next=z:delete T.next,this):M?(z?M[Me]=z:delete M[Me],(g=M[0]||M[1]||M[2]||M[3])&&g===(M[3]||M[2]||M[1]||M[0])&&!g.length&&(P?P[ke]=g:this._root=g),this):(this._root=z,this)}function c(k){for(var M=0,g=k.length;M{(function(e,t){t(typeof p7=="object"&&typeof dWe!="undefined"?p7:e.d3=e.d3||{})})(p7,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(_){return t+_ in this},get:function(_){return this[t+_]},set:function(_,b){return this[t+_]=b,this},remove:function(_){var b=t+_;return b in this&&delete this[b]},clear:function(){for(var _ in this)_[0]===t&&delete this[_]},keys:function(){var _=[];for(var b in this)b[0]===t&&_.push(b.slice(1));return _},values:function(){var _=[];for(var b in this)b[0]===t&&_.push(this[b]);return _},entries:function(){var _=[];for(var b in this)b[0]===t&&_.push({key:b.slice(1),value:this[b]});return _},size:function(){var _=0;for(var b in this)b[0]===t&&++_;return _},empty:function(){for(var _ in this)if(_[0]===t)return!1;return!0},each:function(_){for(var b in this)b[0]===t&&_(this[b],b.slice(1),this)}};function n(_,b){var p=new r;if(_ instanceof r)_.each(function(x,k){p.set(k,x)});else if(Array.isArray(_)){var C=-1,E=_.length,A;if(b==null)for(;++C=_.length)return p!=null&&x.sort(p),C!=null?C(x):x;for(var P=-1,T=x.length,z=_[k++],O,V,G=n(),Z,H=M();++P_.length)return x;var M,g=b[k-1];return C!=null&&k>=_.length?M=x.entries():(M=[],x.each(function(P,T){M.push({key:T,values:L(P,k)})})),g!=null?M.sort(function(P,T){return g(P.key,T.key)}):M}return E={object:function(x){return A(x,0,a,o)},map:function(x){return A(x,0,s,l)},entries:function(x){return L(A(x,0,s,l),0)},key:function(x){return _.push(x),E},sortKeys:function(x){return b[_.length-1]=x,E},sortValues:function(x){return p=x,E},rollup:function(x){return C=x,E}}}function a(){return{}}function o(_,b,p){_[b]=p}function s(){return n()}function l(_,b,p){_.set(b,p)}function u(){}var c=n.prototype;u.prototype=f.prototype={constructor:u,has:c.has,add:function(_){return _+="",this[t+_]=_,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each};function f(_,b){var p=new u;if(_ instanceof u)_.each(function(A){p.add(A)});else if(_){var C=-1,E=_.length;if(b==null)for(;++C{(function(e,t){typeof m7=="object"&&typeof vWe!="undefined"?t(m7):(e=e||self,t(e.d3=e.d3||{}))})(m7,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,l=arguments.length,u={},c;s=0&&(c=u.slice(f+1),u=u.slice(0,f)),u&&!l.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:c}})}n.prototype=r.prototype={constructor:n,on:function(s,l){var u=this._,c=i(s+"",u),f,h=-1,d=c.length;if(arguments.length<2){for(;++h0)for(var u=new Array(f),c=0,f,h;c{(function(e,t){typeof y7=="object"&&typeof gWe!="undefined"?t(y7):(e=e||self,t(e.d3=e.d3||{}))})(y7,function(e){"use strict";var t=0,r=0,n=0,i=1e3,a,o,s=0,l=0,u=0,c=typeof performance=="object"&&performance.now?performance:Date,f=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(k){setTimeout(k,17)};function h(){return l||(f(d),l=c.now()+u)}function d(){l=0}function v(){this._call=this._time=this._next=null}v.prototype=_.prototype={constructor:v,restart:function(k,M,g){if(typeof k!="function")throw new TypeError("callback is not a function");g=(g==null?h():+g)+(M==null?0:+M),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=k,this._time=g,A()},stop:function(){this._call&&(this._call=null,this._time=1/0,A())}};function _(k,M,g){var P=new v;return P.restart(k,M,g),P}function b(){h(),++t;for(var k=a,M;k;)(M=l-k._time)>=0&&k._call.call(null,M),k=k._next;--t}function p(){l=(s=c.now())+u,t=r=0;try{b()}finally{t=0,E(),l=0}}function C(){var k=c.now(),M=k-s;M>i&&(u-=M,s=k)}function E(){for(var k,M=a,g,P=1/0;M;)M._call?(P>M._time&&(P=M._time),k=M,M=M._next):(g=M._next,M._next=null,M=k?k._next=g:a=g);o=k,A(P)}function A(k){if(!t){r&&(r=clearTimeout(r));var M=k-l;M>24?(k<1/0&&(r=setTimeout(p,k-c.now()-u)),n&&(n=clearInterval(n))):(n||(s=c.now(),n=setInterval(C,i)),t=1,f(p))}}function L(k,M,g){var P=new v;return M=M==null?0:+M,P.restart(function(T){P.stop(),k(T+M)},M,g),P}function x(k,M,g){var P=new v,T=M;return M==null?(P.restart(k,M,g),P):(M=+M,g=g==null?h():+g,P.restart(function z(O){O+=T,P.restart(z,T+=M,g),k(O)},M,g),P)}e.interval=x,e.now=h,e.timeout=L,e.timer=_,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var _We=ye((_7,yWe)=>{(function(e,t){typeof _7=="object"&&typeof yWe!="undefined"?t(_7,hWe(),g7(),pWe(),mWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(_7,function(e,t,r,n,i){"use strict";function a(k,M){var g;k==null&&(k=0),M==null&&(M=0);function P(){var T,z=g.length,O,V=0,G=0;for(T=0;TN.index){var Fe=j-De.x-De.vx,ce=re-De.y-De.vy,Ze=Fe*Fe+ce*ce;Zej+ge||Lere+ge||AeG.r&&(G.r=G[Z].r)}function V(){if(M){var G,Z=M.length,H;for(g=new Array(Z),G=0;G1?(_e==null?V.remove(oe):V.set(oe,re(_e)),M):V.get(oe)},find:function(oe,_e,Me){var ke=0,me=k.length,ie,Se,Le,Ae,De;for(Me==null?Me=1/0:Me*=Me,ke=0;ke1?(Z.on(oe,_e),M):Z.on(oe)}}}function E(){var k,M,g,P=o(-30),T,z=1,O=1/0,V=.81;function G(j){var re,oe=k.length,_e=t.quadtree(k,v,_).visitAfter(H);for(g=j,re=0;re=O)return;(j.data!==M||j.next)&&(Me===0&&(Me=s(),ie+=Me*Me),ke===0&&(ke=s(),ie+=ke*ke),ie{(function(e,t){typeof x7=="object"&&typeof xWe!="undefined"?t(x7):(e=e||self,t(e.d3=e.d3||{}))})(x7,function(e){"use strict";var t=Math.PI,r=2*t,n=1e-6,i=r-n;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,l){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,l){this._+="L"+(this._x1=+s)+","+(this._y1=+l)},quadraticCurveTo:function(s,l,u,c){this._+="Q"+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+c)},bezierCurveTo:function(s,l,u,c,f,h){this._+="C"+ +s+","+ +l+","+ +u+","+ +c+","+(this._x1=+f)+","+(this._y1=+h)},arcTo:function(s,l,u,c,f){s=+s,l=+l,u=+u,c=+c,f=+f;var h=this._x1,d=this._y1,v=u-s,_=c-l,b=h-s,p=d-l,C=b*b+p*p;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=l);else if(C>n)if(!(Math.abs(p*v-_*b)>n)||!f)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var E=u-h,A=c-d,L=v*v+_*_,x=E*E+A*A,k=Math.sqrt(L),M=Math.sqrt(C),g=f*Math.tan((t-Math.acos((L+C-x)/(2*k*M)))/2),P=g/M,T=g/k;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(l+P*p)),this._+="A"+f+","+f+",0,0,"+ +(p*E>b*A)+","+(this._x1=s+T*v)+","+(this._y1=l+T*_)}},arc:function(s,l,u,c,f,h){s=+s,l=+l,u=+u,h=!!h;var d=u*Math.cos(c),v=u*Math.sin(c),_=s+d,b=l+v,p=1^h,C=h?c-f:f-c;if(u<0)throw new Error("negative radius: "+u);this._x1===null?this._+="M"+_+","+b:(Math.abs(this._x1-_)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+_+","+b),u&&(C<0&&(C=C%r+r),C>i?this._+="A"+u+","+u+",0,1,"+p+","+(s-d)+","+(l-v)+"A"+u+","+u+",0,1,"+p+","+(this._x1=_)+","+(this._y1=b):C>n&&(this._+="A"+u+","+u+",0,"+ +(C>=t)+","+p+","+(this._x1=s+u*Math.cos(f))+","+(this._y1=l+u*Math.sin(f))))},rect:function(s,l,u,c){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)+"h"+ +u+"v"+ +c+"h"+-u+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var VJ=ye((b7,wWe)=>{(function(e,t){typeof b7=="object"&&typeof wWe!="undefined"?t(b7,bWe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(b7,function(e,t){"use strict";function r(St){return function(){return St}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,f=Math.PI,h=f/2,d=2*f;function v(St){return St>1?0:St<-1?f:Math.acos(St)}function _(St){return St>=1?h:St<=-1?-h:Math.asin(St)}function b(St){return St.innerRadius}function p(St){return St.outerRadius}function C(St){return St.startAngle}function E(St){return St.endAngle}function A(St){return St&&St.padAngle}function L(St,Cr,Qr,pi,fn,Sn,En,ki){var _n=Qr-St,ya=pi-Cr,Jn=En-fn,Ma=ki-Sn,_o=Ma*_n-Jn*ya;if(!(_o*_oZl*Zl+Su*Su&&(Ss=Js,fl=Os),{cx:Ss,cy:fl,x01:-Jn,y01:-Ma,x11:Ss*(fn/zl-1),y11:fl*(fn/zl-1)}}function k(){var St=b,Cr=p,Qr=r(0),pi=null,fn=C,Sn=E,En=A,ki=null;function _n(){var ya,Jn,Ma=+St.apply(this,arguments),_o=+Cr.apply(this,arguments),No=fn.apply(this,arguments)-h,po=Sn.apply(this,arguments)-h,Lo=n(po-No),Co=po>No;if(ki||(ki=ya=t.path()),_oc))ki.moveTo(0,0);else if(Lo>d-c)ki.moveTo(_o*a(No),_o*l(No)),ki.arc(0,0,_o,No,po,!Co),Ma>c&&(ki.moveTo(Ma*a(po),Ma*l(po)),ki.arc(0,0,Ma,po,No,Co));else{var Fs=No,zs=po,ul=No,cl=po,zl=Lo,cs=Lo,nl=En.apply(this,arguments)/2,Ss=nl>c&&(pi?+pi.apply(this,arguments):u(Ma*Ma+_o*_o)),fl=s(n(_o-Ma)/2,+Qr.apply(this,arguments)),Js=fl,Os=fl,Io,us;if(Ss>c){var Zl=_(Ss/Ma*l(nl)),Su=_(Ss/_o*l(nl));(zl-=Zl*2)>c?(Zl*=Co?1:-1,ul+=Zl,cl-=Zl):(zl=0,ul=cl=(No+po)/2),(cs-=Su*2)>c?(Su*=Co?1:-1,Fs+=Su,zs-=Su):(cs=0,Fs=zs=(No+po)/2)}var nc=_o*a(Fs),ws=_o*l(Fs),Fn=Ma*a(cl),_a=Ma*l(cl);if(fl>c){var Vu=_o*a(zs),Ol=_o*l(zs),xo=Ma*a(ul),Yl=Ma*l(ul),Us;if(Loc?Os>c?(Io=x(xo,Yl,nc,ws,_o,Os,Co),us=x(Vu,Ol,Fn,_a,_o,Os,Co),ki.moveTo(Io.cx+Io.x01,Io.cy+Io.y01),Osc)||!(zl>c)?ki.lineTo(Fn,_a):Js>c?(Io=x(Fn,_a,Vu,Ol,Ma,-Js,Co),us=x(nc,ws,xo,Yl,Ma,-Js,Co),ki.lineTo(Io.cx+Io.x01,Io.cy+Io.y01),Js=_o;--No)ki.point(zs[No],ul[No]);ki.lineEnd(),ki.areaEnd()}Co&&(zs[Ma]=+St(Lo,Ma,Jn),ul[Ma]=+Qr(Lo,Ma,Jn),ki.point(Cr?+Cr(Lo,Ma,Jn):zs[Ma],pi?+pi(Lo,Ma,Jn):ul[Ma]))}if(Fs)return ki=null,Fs+""||null}function ya(){return z().defined(fn).curve(En).context(Sn)}return _n.x=function(Jn){return arguments.length?(St=typeof Jn=="function"?Jn:r(+Jn),Cr=null,_n):St},_n.x0=function(Jn){return arguments.length?(St=typeof Jn=="function"?Jn:r(+Jn),_n):St},_n.x1=function(Jn){return arguments.length?(Cr=Jn==null?null:typeof Jn=="function"?Jn:r(+Jn),_n):Cr},_n.y=function(Jn){return arguments.length?(Qr=typeof Jn=="function"?Jn:r(+Jn),pi=null,_n):Qr},_n.y0=function(Jn){return arguments.length?(Qr=typeof Jn=="function"?Jn:r(+Jn),_n):Qr},_n.y1=function(Jn){return arguments.length?(pi=Jn==null?null:typeof Jn=="function"?Jn:r(+Jn),_n):pi},_n.lineX0=_n.lineY0=function(){return ya().x(St).y(Qr)},_n.lineY1=function(){return ya().x(St).y(pi)},_n.lineX1=function(){return ya().x(Cr).y(Qr)},_n.defined=function(Jn){return arguments.length?(fn=typeof Jn=="function"?Jn:r(!!Jn),_n):fn},_n.curve=function(Jn){return arguments.length?(En=Jn,Sn!=null&&(ki=En(Sn)),_n):En},_n.context=function(Jn){return arguments.length?(Jn==null?Sn=ki=null:ki=En(Sn=Jn),_n):Sn},_n}function V(St,Cr){return CrSt?1:Cr>=St?0:NaN}function G(St){return St}function Z(){var St=G,Cr=V,Qr=null,pi=r(0),fn=r(d),Sn=r(0);function En(ki){var _n,ya=ki.length,Jn,Ma,_o=0,No=new Array(ya),po=new Array(ya),Lo=+pi.apply(this,arguments),Co=Math.min(d,Math.max(-d,fn.apply(this,arguments)-Lo)),Fs,zs=Math.min(Math.abs(Co)/ya,Sn.apply(this,arguments)),ul=zs*(Co<0?-1:1),cl;for(_n=0;_n0&&(_o+=cl);for(Cr!=null?No.sort(function(zl,cs){return Cr(po[zl],po[cs])}):Qr!=null&&No.sort(function(zl,cs){return Qr(ki[zl],ki[cs])}),_n=0,Ma=_o?(Co-ya*ul)/_o:0;_n0?cl*Ma:0)+ul,po[Jn]={data:ki[Jn],index:_n,value:cl,startAngle:Lo,endAngle:Fs,padAngle:zs};return po}return En.value=function(ki){return arguments.length?(St=typeof ki=="function"?ki:r(+ki),En):St},En.sortValues=function(ki){return arguments.length?(Cr=ki,Qr=null,En):Cr},En.sort=function(ki){return arguments.length?(Qr=ki,Cr=null,En):Qr},En.startAngle=function(ki){return arguments.length?(pi=typeof ki=="function"?ki:r(+ki),En):pi},En.endAngle=function(ki){return arguments.length?(fn=typeof ki=="function"?ki:r(+ki),En):fn},En.padAngle=function(ki){return arguments.length?(Sn=typeof ki=="function"?ki:r(+ki),En):Sn},En}var H=j(g);function N(St){this._curve=St}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(St,Cr){this._curve.point(Cr*Math.sin(St),Cr*-Math.cos(St))}};function j(St){function Cr(Qr){return new N(St(Qr))}return Cr._curve=St,Cr}function re(St){var Cr=St.curve;return St.angle=St.x,delete St.x,St.radius=St.y,delete St.y,St.curve=function(Qr){return arguments.length?Cr(j(Qr)):Cr()._curve},St}function oe(){return re(z().curve(H))}function _e(){var St=O().curve(H),Cr=St.curve,Qr=St.lineX0,pi=St.lineX1,fn=St.lineY0,Sn=St.lineY1;return St.angle=St.x,delete St.x,St.startAngle=St.x0,delete St.x0,St.endAngle=St.x1,delete St.x1,St.radius=St.y,delete St.y,St.innerRadius=St.y0,delete St.y0,St.outerRadius=St.y1,delete St.y1,St.lineStartAngle=function(){return re(Qr())},delete St.lineX0,St.lineEndAngle=function(){return re(pi())},delete St.lineX1,St.lineInnerRadius=function(){return re(fn())},delete St.lineY0,St.lineOuterRadius=function(){return re(Sn())},delete St.lineY1,St.curve=function(En){return arguments.length?Cr(j(En)):Cr()._curve},St}function Me(St,Cr){return[(Cr=+Cr)*Math.cos(St-=Math.PI/2),Cr*Math.sin(St)]}var ke=Array.prototype.slice;function me(St){return St.source}function ie(St){return St.target}function Se(St){var Cr=me,Qr=ie,pi=P,fn=T,Sn=null;function En(){var ki,_n=ke.call(arguments),ya=Cr.apply(this,_n),Jn=Qr.apply(this,_n);if(Sn||(Sn=ki=t.path()),St(Sn,+pi.apply(this,(_n[0]=ya,_n)),+fn.apply(this,_n),+pi.apply(this,(_n[0]=Jn,_n)),+fn.apply(this,_n)),ki)return Sn=null,ki+""||null}return En.source=function(ki){return arguments.length?(Cr=ki,En):Cr},En.target=function(ki){return arguments.length?(Qr=ki,En):Qr},En.x=function(ki){return arguments.length?(pi=typeof ki=="function"?ki:r(+ki),En):pi},En.y=function(ki){return arguments.length?(fn=typeof ki=="function"?ki:r(+ki),En):fn},En.context=function(ki){return arguments.length?(Sn=ki==null?null:ki,En):Sn},En}function Le(St,Cr,Qr,pi,fn){St.moveTo(Cr,Qr),St.bezierCurveTo(Cr=(Cr+pi)/2,Qr,Cr,fn,pi,fn)}function Ae(St,Cr,Qr,pi,fn){St.moveTo(Cr,Qr),St.bezierCurveTo(Cr,Qr=(Qr+fn)/2,pi,Qr,pi,fn)}function De(St,Cr,Qr,pi,fn){var Sn=Me(Cr,Qr),En=Me(Cr,Qr=(Qr+fn)/2),ki=Me(pi,Qr),_n=Me(pi,fn);St.moveTo(Sn[0],Sn[1]),St.bezierCurveTo(En[0],En[1],ki[0],ki[1],_n[0],_n[1])}function Pe(){return Se(Le)}function ge(){return Se(Ae)}function Fe(){var St=Se(De);return St.angle=St.x,delete St.x,St.radius=St.y,delete St.y,St}var ce={draw:function(St,Cr){var Qr=Math.sqrt(Cr/f);St.moveTo(Qr,0),St.arc(0,0,Qr,0,d)}},Ze={draw:function(St,Cr){var Qr=Math.sqrt(Cr/5)/2;St.moveTo(-3*Qr,-Qr),St.lineTo(-Qr,-Qr),St.lineTo(-Qr,-3*Qr),St.lineTo(Qr,-3*Qr),St.lineTo(Qr,-Qr),St.lineTo(3*Qr,-Qr),St.lineTo(3*Qr,Qr),St.lineTo(Qr,Qr),St.lineTo(Qr,3*Qr),St.lineTo(-Qr,3*Qr),St.lineTo(-Qr,Qr),St.lineTo(-3*Qr,Qr),St.closePath()}},ct=Math.sqrt(1/3),pt=ct*2,Wt={draw:function(St,Cr){var Qr=Math.sqrt(Cr/pt),pi=Qr*ct;St.moveTo(0,-Qr),St.lineTo(pi,0),St.lineTo(0,Qr),St.lineTo(-pi,0),St.closePath()}},st=.8908130915292852,lt=Math.sin(f/10)/Math.sin(7*f/10),Gt=Math.sin(d/10)*lt,Nt=-Math.cos(d/10)*lt,$t={draw:function(St,Cr){var Qr=Math.sqrt(Cr*st),pi=Gt*Qr,fn=Nt*Qr;St.moveTo(0,-Qr),St.lineTo(pi,fn);for(var Sn=1;Sn<5;++Sn){var En=d*Sn/5,ki=Math.cos(En),_n=Math.sin(En);St.lineTo(_n*Qr,-ki*Qr),St.lineTo(ki*pi-_n*fn,_n*pi+ki*fn)}St.closePath()}},sr={draw:function(St,Cr){var Qr=Math.sqrt(Cr),pi=-Qr/2;St.rect(pi,pi,Qr,Qr)}},wr=Math.sqrt(3),ur={draw:function(St,Cr){var Qr=-Math.sqrt(Cr/(wr*3));St.moveTo(0,Qr*2),St.lineTo(-wr*Qr,-Qr),St.lineTo(wr*Qr,-Qr),St.closePath()}},Qe=-.5,Et=Math.sqrt(3)/2,er=1/Math.sqrt(12),Ut=(er/2+1)*3,Ft={draw:function(St,Cr){var Qr=Math.sqrt(Cr/Ut),pi=Qr/2,fn=Qr*er,Sn=pi,En=Qr*er+Qr,ki=-Sn,_n=En;St.moveTo(pi,fn),St.lineTo(Sn,En),St.lineTo(ki,_n),St.lineTo(Qe*pi-Et*fn,Et*pi+Qe*fn),St.lineTo(Qe*Sn-Et*En,Et*Sn+Qe*En),St.lineTo(Qe*ki-Et*_n,Et*ki+Qe*_n),St.lineTo(Qe*pi+Et*fn,Qe*fn-Et*pi),St.lineTo(Qe*Sn+Et*En,Qe*En-Et*Sn),St.lineTo(Qe*ki+Et*_n,Qe*_n-Et*ki),St.closePath()}},bt=[ce,Ze,Wt,sr,$t,ur,Ft];function yt(){var St=r(ce),Cr=r(64),Qr=null;function pi(){var fn;if(Qr||(Qr=fn=t.path()),St.apply(this,arguments).draw(Qr,+Cr.apply(this,arguments)),fn)return Qr=null,fn+""||null}return pi.type=function(fn){return arguments.length?(St=typeof fn=="function"?fn:r(fn),pi):St},pi.size=function(fn){return arguments.length?(Cr=typeof fn=="function"?fn:r(+fn),pi):Cr},pi.context=function(fn){return arguments.length?(Qr=fn==null?null:fn,pi):Qr},pi}function Yt(){}function lr(St,Cr,Qr){St._context.bezierCurveTo((2*St._x0+St._x1)/3,(2*St._y0+St._y1)/3,(St._x0+2*St._x1)/3,(St._y0+2*St._y1)/3,(St._x0+4*St._x1+Cr)/6,(St._y0+4*St._y1+Qr)/6)}function Tr(St){this._context=St}Tr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:lr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:lr(this,St,Cr);break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr}};function Rr(St){return new Tr(St)}function ei(St){this._context=St}ei.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._x2=St,this._y2=Cr;break;case 1:this._point=2,this._x3=St,this._y3=Cr;break;case 2:this._point=3,this._x4=St,this._y4=Cr,this._context.moveTo((this._x0+4*this._x1+St)/6,(this._y0+4*this._y1+Cr)/6);break;default:lr(this,St,Cr);break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr}};function Wr(St){return new ei(St)}function Ur(St){this._context=St}Ur.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Qr=(this._x0+4*this._x1+St)/6,pi=(this._y0+4*this._y1+Cr)/6;this._line?this._context.lineTo(Qr,pi):this._context.moveTo(Qr,pi);break;case 3:this._point=4;default:lr(this,St,Cr);break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr}};function dt(St){return new Ur(St)}function Ge(St,Cr){this._basis=new Tr(St),this._beta=Cr}Ge.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var St=this._x,Cr=this._y,Qr=St.length-1;if(Qr>0)for(var pi=St[0],fn=Cr[0],Sn=St[Qr]-pi,En=Cr[Qr]-fn,ki=-1,_n;++ki<=Qr;)_n=ki/Qr,this._basis.point(this._beta*St[ki]+(1-this._beta)*(pi+_n*Sn),this._beta*Cr[ki]+(1-this._beta)*(fn+_n*En));this._x=this._y=null,this._basis.lineEnd()},point:function(St,Cr){this._x.push(+St),this._y.push(+Cr)}};var Je=function St(Cr){function Qr(pi){return Cr===1?new Tr(pi):new Ge(pi,Cr)}return Qr.beta=function(pi){return St(+pi)},Qr}(.85);function je(St,Cr,Qr){St._context.bezierCurveTo(St._x1+St._k*(St._x2-St._x0),St._y1+St._k*(St._y2-St._y0),St._x2+St._k*(St._x1-Cr),St._y2+St._k*(St._y1-Qr),St._x2,St._y2)}function $e(St,Cr){this._context=St,this._k=(1-Cr)/6}$e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:je(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2,this._x1=St,this._y1=Cr;break;case 2:this._point=3;default:je(this,St,Cr);break}this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var wt=function St(Cr){function Qr(pi){return new $e(pi,Cr)}return Qr.tension=function(pi){return St(+pi)},Qr}(0);function Ie(St,Cr){this._context=St,this._k=(1-Cr)/6}Ie.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._x3=St,this._y3=Cr;break;case 1:this._point=2,this._context.moveTo(this._x4=St,this._y4=Cr);break;case 2:this._point=3,this._x5=St,this._y5=Cr;break;default:je(this,St,Cr);break}this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var xe=function St(Cr){function Qr(pi){return new Ie(pi,Cr)}return Qr.tension=function(pi){return St(+pi)},Qr}(0);function Ce(St,Cr){this._context=St,this._k=(1-Cr)/6}Ce.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:je(this,St,Cr);break}this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var vt=function St(Cr){function Qr(pi){return new Ce(pi,Cr)}return Qr.tension=function(pi){return St(+pi)},Qr}(0);function nr(St,Cr,Qr){var pi=St._x1,fn=St._y1,Sn=St._x2,En=St._y2;if(St._l01_a>c){var ki=2*St._l01_2a+3*St._l01_a*St._l12_a+St._l12_2a,_n=3*St._l01_a*(St._l01_a+St._l12_a);pi=(pi*ki-St._x0*St._l12_2a+St._x2*St._l01_2a)/_n,fn=(fn*ki-St._y0*St._l12_2a+St._y2*St._l01_2a)/_n}if(St._l23_a>c){var ya=2*St._l23_2a+3*St._l23_a*St._l12_a+St._l12_2a,Jn=3*St._l23_a*(St._l23_a+St._l12_a);Sn=(Sn*ya+St._x1*St._l23_2a-Cr*St._l12_2a)/Jn,En=(En*ya+St._y1*St._l23_2a-Qr*St._l12_2a)/Jn}St._context.bezierCurveTo(pi,fn,Sn,En,St._x2,St._y2)}function ir(St,Cr){this._context=St,this._alpha=Cr}ir.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){if(St=+St,Cr=+Cr,this._point){var Qr=this._x2-St,pi=this._y2-Cr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Qr*Qr+pi*pi,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2;break;case 2:this._point=3;default:nr(this,St,Cr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var pr=function St(Cr){function Qr(pi){return Cr?new ir(pi,Cr):new $e(pi,0)}return Qr.alpha=function(pi){return St(+pi)},Qr}(.5);function oi(St,Cr){this._context=St,this._alpha=Cr}oi.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(St,Cr){if(St=+St,Cr=+Cr,this._point){var Qr=this._x2-St,pi=this._y2-Cr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Qr*Qr+pi*pi,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=St,this._y3=Cr;break;case 1:this._point=2,this._context.moveTo(this._x4=St,this._y4=Cr);break;case 2:this._point=3,this._x5=St,this._y5=Cr;break;default:nr(this,St,Cr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var di=function St(Cr){function Qr(pi){return Cr?new oi(pi,Cr):new Ie(pi,0)}return Qr.alpha=function(pi){return St(+pi)},Qr}(.5);function Jr(St,Cr){this._context=St,this._alpha=Cr}Jr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){if(St=+St,Cr=+Cr,this._point){var Qr=this._x2-St,pi=this._y2-Cr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Qr*Qr+pi*pi,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:nr(this,St,Cr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var fi=function St(Cr){function Qr(pi){return Cr?new Jr(pi,Cr):new Ce(pi,0)}return Qr.alpha=function(pi){return St(+pi)},Qr}(.5);function Hi(St){this._context=St}Hi.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(St,Cr){St=+St,Cr=+Cr,this._point?this._context.lineTo(St,Cr):(this._point=1,this._context.moveTo(St,Cr))}};function Pn(St){return new Hi(St)}function wn(St){return St<0?-1:1}function pn(St,Cr,Qr){var pi=St._x1-St._x0,fn=Cr-St._x1,Sn=(St._y1-St._y0)/(pi||fn<0&&-0),En=(Qr-St._y1)/(fn||pi<0&&-0),ki=(Sn*fn+En*pi)/(pi+fn);return(wn(Sn)+wn(En))*Math.min(Math.abs(Sn),Math.abs(En),.5*Math.abs(ki))||0}function Vn(St,Cr){var Qr=St._x1-St._x0;return Qr?(3*(St._y1-St._y0)/Qr-Cr)/2:Cr}function kn(St,Cr,Qr){var pi=St._x0,fn=St._y0,Sn=St._x1,En=St._y1,ki=(Sn-pi)/3;St._context.bezierCurveTo(pi+ki,fn+ki*Cr,Sn-ki,En-ki*Qr,Sn,En)}function ea(St){this._context=St}ea.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:kn(this,this._t0,Vn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){var Qr=NaN;if(St=+St,Cr=+Cr,!(St===this._x1&&Cr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2;break;case 2:this._point=3,kn(this,Vn(this,Qr=pn(this,St,Cr)),Qr);break;default:kn(this,this._t0,Qr=pn(this,St,Cr));break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr,this._t0=Qr}}};function ua(St){this._context=new Vt(St)}(ua.prototype=Object.create(ea.prototype)).point=function(St,Cr){ea.prototype.point.call(this,Cr,St)};function Vt(St){this._context=St}Vt.prototype={moveTo:function(St,Cr){this._context.moveTo(Cr,St)},closePath:function(){this._context.closePath()},lineTo:function(St,Cr){this._context.lineTo(Cr,St)},bezierCurveTo:function(St,Cr,Qr,pi,fn,Sn){this._context.bezierCurveTo(Cr,St,pi,Qr,Sn,fn)}};function _t(St){return new ea(St)}function tr(St){return new ua(St)}function ar(St){this._context=St}ar.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var St=this._x,Cr=this._y,Qr=St.length;if(Qr)if(this._line?this._context.lineTo(St[0],Cr[0]):this._context.moveTo(St[0],Cr[0]),Qr===2)this._context.lineTo(St[1],Cr[1]);else for(var pi=Er(St),fn=Er(Cr),Sn=0,En=1;En=0;--Cr)fn[Cr]=(En[Cr]-fn[Cr+1])/Sn[Cr];for(Sn[Qr-1]=(St[Qr]+fn[Qr-1])/2,Cr=0;Cr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,Cr),this._context.lineTo(St,Cr);else{var Qr=this._x*(1-this._t)+St*this._t;this._context.lineTo(Qr,this._y),this._context.lineTo(Qr,Cr)}break}}this._x=St,this._y=Cr}};function $r(St){return new ri(St,.5)}function zi(St){return new ri(St,0)}function Ji(St){return new ri(St,1)}function en(St,Cr){if((En=St.length)>1)for(var Qr=1,pi,fn,Sn=St[Cr[0]],En,ki=Sn.length;Qr=0;)Qr[Cr]=Cr;return Qr}function yn(St,Cr){return St[Cr]}function Mn(){var St=r([]),Cr=cn,Qr=en,pi=yn;function fn(Sn){var En=St.apply(this,arguments),ki,_n=Sn.length,ya=En.length,Jn=new Array(ya),Ma;for(ki=0;ki0){for(var Qr,pi,fn=0,Sn=St[0].length,En;fn0)for(var Qr,pi=0,fn,Sn,En,ki,_n,ya=St[Cr[0]].length;pi0?(fn[0]=En,fn[1]=En+=Sn):Sn<0?(fn[1]=ki,fn[0]=ki+=Sn):(fn[0]=0,fn[1]=Sn)}function ma(St,Cr){if((fn=St.length)>0){for(var Qr=0,pi=St[Cr[0]],fn,Sn=pi.length;Qr0)||!((Sn=(fn=St[Cr[0]]).length)>0))){for(var Qr=0,pi=1,fn,Sn,En;piSn&&(Sn=fn,Qr=Cr);return Qr}function da(St){var Cr=St.map(Wn);return cn(St).sort(function(Qr,pi){return Cr[Qr]-Cr[pi]})}function Wn(St){for(var Cr=0,Qr=-1,pi=St.length,fn;++Qr{(function(e,t){typeof w7=="object"&&typeof TWe!="undefined"?t(w7,nC(),g7(),VJ()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(w7,function(e,t,r,n){"use strict";function i(g){return g.target.depth}function a(g){return g.depth}function o(g,P){return P-1-g.height}function s(g,P){return g.sourceLinks.length?g.depth:P-1}function l(g){return g.targetLinks.length?g.depth:g.sourceLinks.length?t.min(g.sourceLinks,i)-1:0}function u(g){return function(){return g}}function c(g,P){return h(g.source,P.source)||g.index-P.index}function f(g,P){return h(g.target,P.target)||g.index-P.index}function h(g,P){return g.y0-P.y0}function d(g){return g.value}function v(g){return(g.y0+g.y1)/2}function _(g){return v(g.source)*g.value}function b(g){return v(g.target)*g.value}function p(g){return g.index}function C(g){return g.nodes}function E(g){return g.links}function A(g,P){var T=g.get(P);if(!T)throw new Error("missing: "+P);return T}var L=function(){var g=0,P=0,T=1,z=1,O=24,V=8,G=p,Z=s,H=C,N=E,j=32,re=2/3;function oe(){var Se={nodes:H.apply(null,arguments),links:N.apply(null,arguments)};return _e(Se),Me(Se),ke(Se),me(Se,j),ie(Se),Se}oe.update=function(Se){return ie(Se),Se},oe.nodeId=function(Se){return arguments.length?(G=typeof Se=="function"?Se:u(Se),oe):G},oe.nodeAlign=function(Se){return arguments.length?(Z=typeof Se=="function"?Se:u(Se),oe):Z},oe.nodeWidth=function(Se){return arguments.length?(O=+Se,oe):O},oe.nodePadding=function(Se){return arguments.length?(V=+Se,oe):V},oe.nodes=function(Se){return arguments.length?(H=typeof Se=="function"?Se:u(Se),oe):H},oe.links=function(Se){return arguments.length?(N=typeof Se=="function"?Se:u(Se),oe):N},oe.size=function(Se){return arguments.length?(g=P=0,T=+Se[0],z=+Se[1],oe):[T-g,z-P]},oe.extent=function(Se){return arguments.length?(g=+Se[0][0],T=+Se[1][0],P=+Se[0][1],z=+Se[1][1],oe):[[g,P],[T,z]]},oe.iterations=function(Se){return arguments.length?(j=+Se,oe):j};function _e(Se){Se.nodes.forEach(function(Ae,De){Ae.index=De,Ae.sourceLinks=[],Ae.targetLinks=[]});var Le=r.map(Se.nodes,G);Se.links.forEach(function(Ae,De){Ae.index=De;var Pe=Ae.source,ge=Ae.target;typeof Pe!="object"&&(Pe=Ae.source=A(Le,Pe)),typeof ge!="object"&&(ge=Ae.target=A(Le,ge)),Pe.sourceLinks.push(Ae),ge.targetLinks.push(Ae)})}function Me(Se){Se.nodes.forEach(function(Le){Le.value=Math.max(t.sum(Le.sourceLinks,d),t.sum(Le.targetLinks,d))})}function ke(Se){var Le,Ae,De;for(Le=Se.nodes,Ae=[],De=0;Le.length;++De,Le=Ae,Ae=[])Le.forEach(function(ge){ge.depth=De,ge.sourceLinks.forEach(function(Fe){Ae.indexOf(Fe.target)<0&&Ae.push(Fe.target)})});for(Le=Se.nodes,Ae=[],De=0;Le.length;++De,Le=Ae,Ae=[])Le.forEach(function(ge){ge.height=De,ge.targetLinks.forEach(function(Fe){Ae.indexOf(Fe.source)<0&&Ae.push(Fe.source)})});var Pe=(T-g-O)/(De-1);Se.nodes.forEach(function(ge){ge.x1=(ge.x0=g+Math.max(0,Math.min(De-1,Math.floor(Z.call(null,ge,De))))*Pe)+O})}function me(Se){var Le=r.nest().key(function(Ze){return Ze.x0}).sortKeys(t.ascending).entries(Se.nodes).map(function(Ze){return Ze.values});Pe(),ce();for(var Ae=1,De=j;De>0;--De)Fe(Ae*=.99),ce(),ge(Ae),ce();function Pe(){var Ze=t.max(Le,function(Wt){return Wt.length}),ct=re*(z-P)/(Ze-1);V>ct&&(V=ct);var pt=t.min(Le,function(Wt){return(z-P-(Wt.length-1)*V)/t.sum(Wt,d)});Le.forEach(function(Wt){Wt.forEach(function(st,lt){st.y1=(st.y0=lt)+st.value*pt})}),Se.links.forEach(function(Wt){Wt.width=Wt.value*pt})}function ge(Ze){Le.forEach(function(ct){ct.forEach(function(pt){if(pt.targetLinks.length){var Wt=(t.sum(pt.targetLinks,_)/t.sum(pt.targetLinks,d)-v(pt))*Ze;pt.y0+=Wt,pt.y1+=Wt}})})}function Fe(Ze){Le.slice().reverse().forEach(function(ct){ct.forEach(function(pt){if(pt.sourceLinks.length){var Wt=(t.sum(pt.sourceLinks,b)/t.sum(pt.sourceLinks,d)-v(pt))*Ze;pt.y0+=Wt,pt.y1+=Wt}})})}function ce(){Le.forEach(function(Ze){var ct,pt,Wt=P,st=Ze.length,lt;for(Ze.sort(h),lt=0;lt0&&(ct.y0+=pt,ct.y1+=pt),Wt=ct.y1+V;if(pt=Wt-V-z,pt>0)for(Wt=ct.y0-=pt,ct.y1-=pt,lt=st-2;lt>=0;--lt)ct=Ze[lt],pt=ct.y1+V-Wt,pt>0&&(ct.y0-=pt,ct.y1-=pt),Wt=ct.y0})}}function ie(Se){Se.nodes.forEach(function(Le){Le.sourceLinks.sort(f),Le.targetLinks.sort(c)}),Se.nodes.forEach(function(Le){var Ae=Le.y0,De=Ae;Le.sourceLinks.forEach(function(Pe){Pe.y0=Ae+Pe.width/2,Ae+=Pe.width}),Le.targetLinks.forEach(function(Pe){Pe.y1=De+Pe.width/2,De+=Pe.width})})}return oe};function x(g){return[g.source.x1,g.y0]}function k(g){return[g.target.x0,g.y1]}var M=function(){return n.linkHorizontal().source(x).target(k)};e.sankey=L,e.sankeyCenter=l,e.sankeyLeft=a,e.sankeyRight=o,e.sankeyJustify=s,e.sankeyLinkHorizontal=M,Object.defineProperty(e,"__esModule",{value:!0})})});var MWe=ye((ibr,SWe)=>{var QXt=UJ();SWe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],l;function u(E){a[E]=!1,o.hasOwnProperty(E)&&Object.keys(o[E]).forEach(function(A){delete o[E][A],a[A]&&u(A)})}function c(E){var A=!1;i.push(E),a[E]=!0;var L,x;for(L=0;L=E})}function d(E){h(E);for(var A=t,L=QXt(A),x=L.components.filter(function(O){return O.length>1}),k=1/0,M,g=0;g{(function(e,t){typeof T7=="object"&&typeof EWe!="undefined"?t(T7,nC(),g7(),VJ(),MWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(T7,function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(st){return st.target.depth}function o(st){return st.depth}function s(st,lt){return lt-1-st.height}function l(st,lt){return st.sourceLinks.length?st.depth:lt-1}function u(st){return st.targetLinks.length?st.depth:st.sourceLinks.length?t.min(st.sourceLinks,a)-1:0}function c(st){return function(){return st}}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(st){return typeof st}:function(st){return st&&typeof Symbol=="function"&&st.constructor===Symbol&&st!==Symbol.prototype?"symbol":typeof st};function h(st,lt){return v(st.source,lt.source)||st.index-lt.index}function d(st,lt){return v(st.target,lt.target)||st.index-lt.index}function v(st,lt){return st.partOfCycle===lt.partOfCycle?st.y0-lt.y0:st.circularLinkType==="top"||lt.circularLinkType==="bottom"?-1:1}function _(st){return st.value}function b(st){return(st.y0+st.y1)/2}function p(st){return b(st.source)}function C(st){return b(st.target)}function E(st){return st.index}function A(st){return st.nodes}function L(st){return st.links}function x(st,lt){var Gt=st.get(lt);if(!Gt)throw new Error("missing: "+lt);return Gt}function k(st,lt){return lt(st)}var M=25,g=10,P=.3;function T(){var st=0,lt=0,Gt=1,Nt=1,$t=24,sr,wr=E,ur=l,Qe=A,Et=L,er=32,Ut=2,Ft,bt=null;function yt(){var dt={nodes:Qe.apply(null,arguments),links:Et.apply(null,arguments)};Yt(dt),z(dt,wr,bt),lr(dt),ei(dt),O(dt,wr),Wr(dt,er,wr),Ur(dt);for(var Ge=4,Je=0;Je0?Ge+M+g:Ge,Je=Je>0?Je+M+g:Je,je=je>0?je+M+g:je,$e=$e>0?$e+M+g:$e,{top:Ge,bottom:Je,left:$e,right:je}}function Rr(dt,Ge){var Je=t.max(dt.nodes,function(vt){return vt.column}),je=Gt-st,$e=Nt-lt,wt=je+Ge.right+Ge.left,Ie=$e+Ge.top+Ge.bottom,xe=je/wt,Ce=$e/Ie;return st=st*xe+Ge.left,Gt=Ge.right==0?Gt:Gt*xe,lt=lt*Ce+Ge.top,Nt=Nt*Ce,dt.nodes.forEach(function(vt){vt.x0=st+vt.column*((Gt-st-$t)/Je),vt.x1=vt.x0+$t}),Ce}function ei(dt){var Ge,Je,je;for(Ge=dt.nodes,Je=[],je=0;Ge.length;++je,Ge=Je,Je=[])Ge.forEach(function($e){$e.depth=je,$e.sourceLinks.forEach(function(wt){Je.indexOf(wt.target)<0&&!wt.circular&&Je.push(wt.target)})});for(Ge=dt.nodes,Je=[],je=0;Ge.length;++je,Ge=Je,Je=[])Ge.forEach(function($e){$e.height=je,$e.targetLinks.forEach(function(wt){Je.indexOf(wt.source)<0&&!wt.circular&&Je.push(wt.source)})});dt.nodes.forEach(function($e){$e.column=Math.floor(ur.call(null,$e,je))})}function Wr(dt,Ge,Je){var je=r.nest().key(function(vt){return vt.column}).sortKeys(t.ascending).entries(dt.nodes).map(function(vt){return vt.values});Ie(Je),Ce();for(var $e=1,wt=Ge;wt>0;--wt)xe($e*=.99,Je),Ce();function Ie(vt){if(Ft){var nr=1/0;je.forEach(function(di){var Jr=Nt*Ft/(di.length+1);nr=Jr0))if(di==0&&oi==1)fi=Jr.y1-Jr.y0,Jr.y0=Nt/2-fi/2,Jr.y1=Nt/2+fi/2;else if(di==ir-1&&oi==1)fi=Jr.y1-Jr.y0,Jr.y0=Nt/2-fi/2,Jr.y1=Nt/2+fi/2;else{var Hi=0,Pn=t.mean(Jr.sourceLinks,C),wn=t.mean(Jr.targetLinks,p);Pn&&wn?Hi=(Pn+wn)/2:Hi=Pn||wn;var pn=(Hi-b(Jr))*vt;Jr.y0+=pn,Jr.y1+=pn}})})}function Ce(){je.forEach(function(vt){var nr,ir,pr=lt,oi=vt.length,di;for(vt.sort(v),di=0;di0&&(nr.y0+=ir,nr.y1+=ir),pr=nr.y1+sr;if(ir=pr-sr-Nt,ir>0)for(pr=nr.y0-=ir,nr.y1-=ir,di=oi-2;di>=0;--di)nr=vt[di],ir=nr.y1+sr-pr,ir>0&&(nr.y0-=ir,nr.y1-=ir),pr=nr.y0})}}function Ur(dt){dt.nodes.forEach(function(Ge){Ge.sourceLinks.sort(d),Ge.targetLinks.sort(h)}),dt.nodes.forEach(function(Ge){var Je=Ge.y0,je=Je,$e=Ge.y1,wt=$e;Ge.sourceLinks.forEach(function(Ie){Ie.circular?(Ie.y0=$e-Ie.width/2,$e=$e-Ie.width):(Ie.y0=Je+Ie.width/2,Je+=Ie.width)}),Ge.targetLinks.forEach(function(Ie){Ie.circular?(Ie.y1=wt-Ie.width/2,wt=wt-Ie.width):(Ie.y1=je+Ie.width/2,je+=Ie.width)})})}return yt}function z(st,lt,Gt){var Nt=0;if(Gt===null){for(var $t=[],sr=0;srlt.source.column)}function Z(st,lt){var Gt=0;st.sourceLinks.forEach(function($t){Gt=$t.circular&&!pt($t,lt)?Gt+1:Gt});var Nt=0;return st.targetLinks.forEach(function($t){Nt=$t.circular&&!pt($t,lt)?Nt+1:Nt}),Gt+Nt}function H(st){var lt=st.source.sourceLinks,Gt=0;lt.forEach(function(sr){Gt=sr.circular?Gt+1:Gt});var Nt=st.target.targetLinks,$t=0;return Nt.forEach(function(sr){$t=sr.circular?$t+1:$t}),!(Gt>1||$t>1)}function N(st,lt,Gt){return st.sort(oe),st.forEach(function(Nt,$t){var sr=0;if(pt(Nt,Gt)&&H(Nt))Nt.circularPathData.verticalBuffer=sr+Nt.width/2;else{var wr=0;for(wr;wr<$t;wr++)if(G(st[$t],st[wr])){var ur=st[wr].circularPathData.verticalBuffer+st[wr].width/2+lt;sr=ur>sr?ur:sr}Nt.circularPathData.verticalBuffer=sr+Nt.width/2}}),st}function j(st,lt,Gt,Nt){var $t=5,sr=t.min(st.links,function(Qe){return Qe.source.y0});st.links.forEach(function(Qe){Qe.circular&&(Qe.circularPathData={})});var wr=st.links.filter(function(Qe){return Qe.circularLinkType=="top"});N(wr,lt,Nt);var ur=st.links.filter(function(Qe){return Qe.circularLinkType=="bottom"});N(ur,lt,Nt),st.links.forEach(function(Qe){if(Qe.circular){if(Qe.circularPathData.arcRadius=Qe.width+g,Qe.circularPathData.leftNodeBuffer=$t,Qe.circularPathData.rightNodeBuffer=$t,Qe.circularPathData.sourceWidth=Qe.source.x1-Qe.source.x0,Qe.circularPathData.sourceX=Qe.source.x0+Qe.circularPathData.sourceWidth,Qe.circularPathData.targetX=Qe.target.x0,Qe.circularPathData.sourceY=Qe.y0,Qe.circularPathData.targetY=Qe.y1,pt(Qe,Nt)&&H(Qe))Qe.circularPathData.leftSmallArcRadius=g+Qe.width/2,Qe.circularPathData.leftLargeArcRadius=g+Qe.width/2,Qe.circularPathData.rightSmallArcRadius=g+Qe.width/2,Qe.circularPathData.rightLargeArcRadius=g+Qe.width/2,Qe.circularLinkType=="bottom"?(Qe.circularPathData.verticalFullExtent=Qe.source.y1+M+Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.rightLargeArcRadius):(Qe.circularPathData.verticalFullExtent=Qe.source.y0-M-Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.rightLargeArcRadius);else{var Et=Qe.source.column,er=Qe.circularLinkType,Ut=st.links.filter(function(yt){return yt.source.column==Et&&yt.circularLinkType==er});Qe.circularLinkType=="bottom"?Ut.sort(Me):Ut.sort(_e);var Ft=0;Ut.forEach(function(yt,Yt){yt.circularLinkID==Qe.circularLinkID&&(Qe.circularPathData.leftSmallArcRadius=g+Qe.width/2+Ft,Qe.circularPathData.leftLargeArcRadius=g+Qe.width/2+Yt*lt+Ft),Ft=Ft+yt.width}),Et=Qe.target.column,Ut=st.links.filter(function(yt){return yt.target.column==Et&&yt.circularLinkType==er}),Qe.circularLinkType=="bottom"?Ut.sort(me):Ut.sort(ke),Ft=0,Ut.forEach(function(yt,Yt){yt.circularLinkID==Qe.circularLinkID&&(Qe.circularPathData.rightSmallArcRadius=g+Qe.width/2+Ft,Qe.circularPathData.rightLargeArcRadius=g+Qe.width/2+Yt*lt+Ft),Ft=Ft+yt.width}),Qe.circularLinkType=="bottom"?(Qe.circularPathData.verticalFullExtent=Math.max(Gt,Qe.source.y1,Qe.target.y1)+M+Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.rightLargeArcRadius):(Qe.circularPathData.verticalFullExtent=sr-M-Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.rightLargeArcRadius)}Qe.circularPathData.leftInnerExtent=Qe.circularPathData.sourceX+Qe.circularPathData.leftNodeBuffer,Qe.circularPathData.rightInnerExtent=Qe.circularPathData.targetX-Qe.circularPathData.rightNodeBuffer,Qe.circularPathData.leftFullExtent=Qe.circularPathData.sourceX+Qe.circularPathData.leftLargeArcRadius+Qe.circularPathData.leftNodeBuffer,Qe.circularPathData.rightFullExtent=Qe.circularPathData.targetX-Qe.circularPathData.rightLargeArcRadius-Qe.circularPathData.rightNodeBuffer}if(Qe.circular)Qe.path=re(Qe);else{var bt=n.linkHorizontal().source(function(yt){var Yt=yt.source.x0+(yt.source.x1-yt.source.x0),lr=yt.y0;return[Yt,lr]}).target(function(yt){var Yt=yt.target.x0,lr=yt.y1;return[Yt,lr]});Qe.path=bt(Qe)}})}function re(st){var lt="";return st.circularLinkType=="top"?lt="M"+st.circularPathData.sourceX+" "+st.circularPathData.sourceY+" L"+st.circularPathData.leftInnerExtent+" "+st.circularPathData.sourceY+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftSmallArcRadius+" 0 0 0 "+st.circularPathData.leftFullExtent+" "+(st.circularPathData.sourceY-st.circularPathData.leftSmallArcRadius)+" L"+st.circularPathData.leftFullExtent+" "+st.circularPathData.verticalLeftInnerExtent+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftLargeArcRadius+" 0 0 0 "+st.circularPathData.leftInnerExtent+" "+st.circularPathData.verticalFullExtent+" L"+st.circularPathData.rightInnerExtent+" "+st.circularPathData.verticalFullExtent+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightLargeArcRadius+" 0 0 0 "+st.circularPathData.rightFullExtent+" "+st.circularPathData.verticalRightInnerExtent+" L"+st.circularPathData.rightFullExtent+" "+(st.circularPathData.targetY-st.circularPathData.rightSmallArcRadius)+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightSmallArcRadius+" 0 0 0 "+st.circularPathData.rightInnerExtent+" "+st.circularPathData.targetY+" L"+st.circularPathData.targetX+" "+st.circularPathData.targetY:lt="M"+st.circularPathData.sourceX+" "+st.circularPathData.sourceY+" L"+st.circularPathData.leftInnerExtent+" "+st.circularPathData.sourceY+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftSmallArcRadius+" 0 0 1 "+st.circularPathData.leftFullExtent+" "+(st.circularPathData.sourceY+st.circularPathData.leftSmallArcRadius)+" L"+st.circularPathData.leftFullExtent+" "+st.circularPathData.verticalLeftInnerExtent+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftLargeArcRadius+" 0 0 1 "+st.circularPathData.leftInnerExtent+" "+st.circularPathData.verticalFullExtent+" L"+st.circularPathData.rightInnerExtent+" "+st.circularPathData.verticalFullExtent+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightLargeArcRadius+" 0 0 1 "+st.circularPathData.rightFullExtent+" "+st.circularPathData.verticalRightInnerExtent+" L"+st.circularPathData.rightFullExtent+" "+(st.circularPathData.targetY+st.circularPathData.rightSmallArcRadius)+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightSmallArcRadius+" 0 0 1 "+st.circularPathData.rightInnerExtent+" "+st.circularPathData.targetY+" L"+st.circularPathData.targetX+" "+st.circularPathData.targetY,lt}function oe(st,lt){return ie(st)==ie(lt)?st.circularLinkType=="bottom"?Me(st,lt):_e(st,lt):ie(lt)-ie(st)}function _e(st,lt){return st.y0-lt.y0}function Me(st,lt){return lt.y0-st.y0}function ke(st,lt){return st.y1-lt.y1}function me(st,lt){return lt.y1-st.y1}function ie(st){return st.target.column-st.source.column}function Se(st){return st.target.x0-st.source.x1}function Le(st,lt){var Gt=V(st),Nt=Se(lt)/Math.tan(Gt),$t=ct(st)=="up"?st.y1+Nt:st.y1-Nt;return $t}function Ae(st,lt){var Gt=V(st),Nt=Se(lt)/Math.tan(Gt),$t=ct(st)=="up"?st.y1-Nt:st.y1+Nt;return $t}function De(st,lt,Gt,Nt){st.links.forEach(function($t){if(!$t.circular&&$t.target.column-$t.source.column>1){var sr=$t.source.column+1,wr=$t.target.column-1,ur=1,Qe=wr-sr+1;for(ur=1;sr<=wr;sr++,ur++)st.nodes.forEach(function(Et){if(Et.column==sr){var er=ur/(Qe+1),Ut=Math.pow(1-er,3),Ft=3*er*Math.pow(1-er,2),bt=3*Math.pow(er,2)*(1-er),yt=Math.pow(er,3),Yt=Ut*$t.y0+Ft*$t.y0+bt*$t.y1+yt*$t.y1,lr=Yt-$t.width/2,Tr=Yt+$t.width/2,Rr;lr>Et.y0&&lrEt.y0&&TrEt.y1&&ge(ei,Rr,lt,Gt)})):lrEt.y1&&(Rr=Tr-Et.y0+10,Et=ge(Et,Rr,lt,Gt),st.nodes.forEach(function(ei){k(ei,Nt)==k(Et,Nt)||ei.column!=Et.column||ei.y0Et.y1&&ge(ei,Rr,lt,Gt)}))}})}})}function Pe(st,lt){return st.y0>lt.y0&&st.y0lt.y0&&st.y1lt.y1}function ge(st,lt,Gt,Nt){return st.y0+lt>=Gt&&st.y1+lt<=Nt&&(st.y0=st.y0+lt,st.y1=st.y1+lt,st.targetLinks.forEach(function($t){$t.y1=$t.y1+lt}),st.sourceLinks.forEach(function($t){$t.y0=$t.y0+lt})),st}function Fe(st,lt,Gt,Nt){st.nodes.forEach(function($t){Nt&&$t.y+($t.y1-$t.y0)>lt&&($t.y=$t.y-($t.y+($t.y1-$t.y0)-lt));var sr=st.links.filter(function(Qe){return k(Qe.source,Gt)==k($t,Gt)}),wr=sr.length;wr>1&&sr.sort(function(Qe,Et){if(!Qe.circular&&!Et.circular){if(Qe.target.column==Et.target.column)return Qe.y1-Et.y1;if(Ze(Qe,Et)){if(Qe.target.column>Et.target.column){var er=Ae(Et,Qe);return Qe.y1-er}if(Et.target.column>Qe.target.column){var Ut=Ae(Qe,Et);return Ut-Et.y1}}else return Qe.y1-Et.y1}if(Qe.circular&&!Et.circular)return Qe.circularLinkType=="top"?-1:1;if(Et.circular&&!Qe.circular)return Et.circularLinkType=="top"?1:-1;if(Qe.circular&&Et.circular)return Qe.circularLinkType===Et.circularLinkType&&Qe.circularLinkType=="top"?Qe.target.column===Et.target.column?Qe.target.y1-Et.target.y1:Et.target.column-Qe.target.column:Qe.circularLinkType===Et.circularLinkType&&Qe.circularLinkType=="bottom"?Qe.target.column===Et.target.column?Et.target.y1-Qe.target.y1:Qe.target.column-Et.target.column:Qe.circularLinkType=="top"?-1:1});var ur=$t.y0;sr.forEach(function(Qe){Qe.y0=ur+Qe.width/2,ur=ur+Qe.width}),sr.forEach(function(Qe,Et){if(Qe.circularLinkType=="bottom"){var er=Et+1,Ut=0;for(er;er1&&$t.sort(function(ur,Qe){if(!ur.circular&&!Qe.circular){if(ur.source.column==Qe.source.column)return ur.y0-Qe.y0;if(Ze(ur,Qe)){if(Qe.source.column0?"up":"down"}function pt(st,lt){return k(st.source,lt)==k(st.target,lt)}function Wt(st,lt,Gt){var Nt=st.nodes,$t=st.links,sr=!1,wr=!1;if($t.forEach(function(Ft){Ft.circularLinkType=="top"?sr=!0:Ft.circularLinkType=="bottom"&&(wr=!0)}),sr==!1||wr==!1){var ur=t.min(Nt,function(Ft){return Ft.y0}),Qe=t.max(Nt,function(Ft){return Ft.y1}),Et=Qe-ur,er=Gt-lt,Ut=er/Et;Nt.forEach(function(Ft){var bt=(Ft.y1-Ft.y0)*Ut;Ft.y0=(Ft.y0-ur)*Ut,Ft.y1=Ft.y0+bt}),$t.forEach(function(Ft){Ft.y0=(Ft.y0-ur)*Ut,Ft.y1=(Ft.y1-ur)*Ut,Ft.width=Ft.width*Ut})}}e.sankeyCircular=T,e.sankeyCenter=u,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=l,Object.defineProperty(e,"__esModule",{value:!0})})});var GJ=ye((nbr,kWe)=>{"use strict";kWe.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}});var VWe=ye((abr,UWe)=>{"use strict";var LWe=_We(),eZt=(R2(),ab(I2)).interpolateNumber,P5=Oa(),JC=AWe(),tZt=CWe(),Nu=GJ(),I5=cd(),aw=Ca(),rZt=So(),p1=Dr(),WJ=p1.strTranslate,iZt=p1.strRotate,XJ=Km(),$C=XJ.keyFun,A7=XJ.repeat,zWe=XJ.unwrap,PWe=ru(),nZt=qa(),OWe=Kh(),aZt=OWe.CAP_SHIFT,oZt=OWe.LINE_SPACING,sZt=3;function lZt(e,t,r){var n=zWe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,l=i.node.thickness,u={justify:JC.sankeyJustify,left:JC.sankeyLeft,right:JC.sankeyRight,center:JC.sankeyCenter}[i.node.align],c=e.width*(a.x[1]-a.x[0]),f=e.height*(a.y[1]-a.y[0]),h=n._nodes,d=n._links,v=n.circular,_;v?_=tZt.sankeyCircular().circularLinkGap(0):_=JC.sankey(),_.iterations(Nu.sankeyIterations).size(o?[c,f]:[f,c]).nodeWidth(l).nodePadding(s).nodeId(function(V){return V.pointNumber}).nodeAlign(u).nodes(h).links(d);var b=_();_.nodePadding()=N||(H=N-Z.y0,H>1e-6&&(Z.y0+=H,Z.y1+=H)),N=Z.y1+s})}function P(V){var G=V.map(function(_e,Me){return{x0:_e.x0,index:Me}}).sort(function(_e,Me){return _e.x0-Me.x0}),Z=[],H=-1,N,j=-1/0,re;for(p=0;pj+l&&(H+=1,N=oe.x0),j=oe.x0,Z[H]||(Z[H]=[]),Z[H].push(oe),re=N-oe.x0,oe.x0+=re,oe.x1+=re}return Z}if(i.node.x.length&&i.node.y.length){for(p=0;p0?" L "+i.targetX+" "+i.targetY:"")+"Z"):(r="M "+(i.targetX-t)+" "+(i.targetY-n)+" L "+(i.rightInnerExtent-t)+" "+(i.targetY-n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightSmallArcRadius+n)+" 0 0 0 "+(i.rightFullExtent-n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" L "+(i.rightFullExtent-n-t)+" "+i.verticalRightInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-n-t)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent+n-t-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:a?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent-t-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.leftFullExtent+n+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent+n)+" L "+i.leftInnerExtent+" "+(i.verticalFullExtent+n)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent,r+=" L "+(i.leftFullExtent+n)+" "+(i.sourceY+i.leftSmallArcRadius)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftSmallArcRadius+n)+" 0 0 0 "+i.leftInnerExtent+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY+n)+" L "+i.leftInnerExtent+" "+(i.sourceY+n)+" A "+(i.leftLargeArcRadius-n)+" "+(i.leftSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n)+" "+(i.sourceY+i.leftSmallArcRadius)+" L "+(i.leftFullExtent-n)+" "+i.verticalLeftInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.rightFullExtent+n-t+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:a?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent-t-n)+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:r+=" A "+(i.leftLargeArcRadius-n)+" "+(i.leftLargeArcRadius-n)+" 0 0 1 "+i.leftInnerExtent+" "+(i.verticalFullExtent-n)+" L "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightLargeArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent,r+=" L "+(i.rightFullExtent+n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightInnerExtent-t)+" "+(i.targetY+n)+" L "+(i.targetX-t)+" "+(i.targetY+n)+(t>0?" L "+i.targetX+" "+i.targetY:"")+"Z"),r}function ZJ(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return cZt(r.link,n);var i=Math.abs((r.link.target.x0-r.link.source.x1)/2);n>i&&(n=i);var a=r.link.source.x1,o=r.link.target.x0-n,s=eZt(a,o),l=s(e),u=s(1-e),c=r.link.y0-r.link.width/2,f=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,d=r.link.y1+r.link.width/2,v="M"+a+","+c,_="C"+l+","+c+" "+u+","+h+" "+o+","+h,b="C"+u+","+d+" "+l+","+f+" "+a+","+f,p=n>0?"L"+(o+n)+","+(h+r.link.width/2):"";return p+="L"+o+","+d,v+_+p+b+"Z"}return t}function fZt(e,t){var r=I5(t.color),n=Nu.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var a=t.dx,o=Math.max(.5,t.dy),s="node_"+t.pointNumber;return t.group&&(s=p1.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:s,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:aw.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,s].join("_"),interactionState:e.interactionState,figure:e}}function jJ(e){e.attr("transform",function(t){return WJ(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function hZt(e){e.call(jJ)}function qWe(e,t){e.call(hZt),t.attr("d",ZJ())}function IWe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function HJ(e){return e.link.width>1||e.linkLineWidth>0}function RWe(e){var t=WJ(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function DWe(e,t,r){e.on(".basic",null).on("mouseover.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.hover(this,n,t),n.interactionState.hovered=[this,n])}).on("mousemove.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.follow(this,n),n.interactionState.hovered=[this,n])}).on("mouseout.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.unhover(this,n,t),n.interactionState.hovered=!1)}).on("click.basic",function(n){n.interactionState.hovered&&(r.unhover(this,n,t),n.interactionState.hovered=!1),!n.interactionState.dragInProgress&&!n.partOfGroup&&r.select(this,n,t)})}function dZt(e,t,r,n){var i=P5.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(p1.ensureSingle(n._fullLayout._infolayer,"g","dragcover",function(s){n._fullLayout._dragCover=s}),p1.raiseToTop(this),a.interactionState.dragInProgress=a.node,FWe(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):vZt(e,o,a,n),pZt(e,t,a,o,n)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=P5.event.x,s=P5.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),FWe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),qWe(e.filter(NWe(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,BWe(r,i)}})}function gZt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function BWe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Zv=Oa(),KJ=Dr(),S7=KJ.numberFormat,xZt=VWe(),R5=vf(),bZt=Ca(),Ax=GJ().cn,QC=KJ._;function GWe(e){return e!==""}function D5(e,t){return e.filter(function(r){return r.key===t.traceId})}function HWe(e,t){Zv.select(e).select("path").style("fill-opacity",t),Zv.select(e).select("rect").style("fill-opacity",t)}function jWe(e){Zv.select(e).select("text.name").style("fill","black")}function WWe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function XWe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function ZWe(e,t,r){t&&r&&D5(r,t).selectAll("."+Ax.sankeyLink).filter(WWe(t)).call(YWe.bind(0,t,r,!1))}function YJ(e,t,r){t&&r&&D5(r,t).selectAll("."+Ax.sankeyLink).filter(WWe(t)).call(KWe.bind(0,t,r,!1))}function YWe(e,t,r,n){n.style("fill",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverHue}).style("fill-opacity",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverAlpha}),n.each(function(i){var a=i.link.label;a!==""&&D5(t,e).selectAll("."+Ax.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverHue}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverAlpha})}),r&&D5(t,e).selectAll("."+Ax.sankeyNode).filter(XWe(e)).call(ZWe)}function KWe(e,t,r,n){n.style("fill",function(i){return i.tinyColorHue}).style("fill-opacity",function(i){return i.tinyColorAlpha}),n.each(function(i){var a=i.link.label;a!==""&&D5(t,e).selectAll("."+Ax.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){return o.tinyColorHue}).style("fill-opacity",function(o){return o.tinyColorAlpha})}),r&&D5(t,e).selectAll(Ax.sankeyNode).filter(XWe(e)).call(YJ)}function Ef(e,t){var r=e.hoverlabel||{},n=KJ.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}JWe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:Ef(k,"bgcolor")||bZt.addOpacity(z.color,1),borderColor:Ef(k,"bordercolor"),fontFamily:Ef(k,"font.family"),fontSize:Ef(k,"font.size"),fontColor:Ef(k,"font.color"),fontWeight:Ef(k,"font.weight"),fontStyle:Ef(k,"font.style"),fontVariant:Ef(k,"font.variant"),fontTextcase:Ef(k,"font.textcase"),fontLineposition:Ef(k,"font.lineposition"),fontShadow:Ef(k,"font.shadow"),nameLength:Ef(k,"namelength"),textAlign:Ef(k,"align"),idealAlign:Zv.event.x"),color:Ef(k,"bgcolor")||x.tinyColorHue,borderColor:Ef(k,"bordercolor"),fontFamily:Ef(k,"font.family"),fontSize:Ef(k,"font.size"),fontColor:Ef(k,"font.color"),fontWeight:Ef(k,"font.weight"),fontStyle:Ef(k,"font.style"),fontVariant:Ef(k,"font.variant"),fontTextcase:Ef(k,"font.textcase"),fontLineposition:Ef(k,"font.lineposition"),fontShadow:Ef(k,"font.shadow"),nameLength:Ef(k,"namelength"),textAlign:Ef(k,"align"),idealAlign:"left",hovertemplate:k.hovertemplate,hovertemplateLabels:V,eventData:[x.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});HWe(H,.85),jWe(H)}}},A=function(L,x,k){t._fullLayout.hovermode!==!1&&(Zv.select(L).call(YJ,x,k),x.node.trace.node.hoverinfo!=="skip"&&(x.node.fullData=x.node.trace,t.emit("plotly_unhover",{event:Zv.event,points:[x.node]})),R5.loneUnhover(n._hoverlayer.node()))};xZt(t,i,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:u,follow:_,unhover:b,select:l},nodeEvents:{hover:C,follow:E,unhover:A,select:p}})}});var $We=ye(ow=>{"use strict";var wZt=mc().overrideAll,TZt=Id().getModuleCalcData,AZt=JJ(),SZt=B1(),MZt=Ag(),EZt=yv(),CZt=zf().prepSelect,$J=Dr(),kZt=qa(),M7="sankey";ow.name=M7;ow.baseLayoutAttrOverrides=wZt({hoverlabel:SZt.hoverlabel},"plot","nested");ow.plot=function(e){var t=TZt(e.calcdata,M7)[0];AZt(e,t),ow.updateFx(e)};ow.clean=function(e,t,r,n){var i=n._has&&n._has(M7),a=t._has&&t._has(M7);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};ow.updateFx=function(e){for(var t=0;t{"use strict";QWe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";tXe.exports={attributes:NJ(),supplyDefaults:aWe(),calc:cWe(),plot:JJ(),moduleType:"trace",name:"sankey",basePlotModule:$We(),selectPoints:eXe(),categories:["noOpacity"],meta:{}}});var nXe=ye((cbr,iXe)=>{"use strict";iXe.exports=rXe()});var oXe=ye(F5=>{"use strict";var aXe=Mc();F5.name="indicator";F5.plot=function(e,t,r,n){aXe.plotBasePlot(F5.name,e,t,r,n)};F5.clean=function(e,t,r,n){aXe.cleanBasePlot(F5.name,e,t,r,n)}});var e$=ye((hbr,hXe)=>{"use strict";var Sx=Ao().extendFlat,lXe=Ao().extendDeep,PZt=mc().overrideAll,uXe=ec(),cXe=Ch(),IZt=kc().attributes,Bf=Rd(),RZt=pl().templatedArray,E7=HT(),sXe=df().descriptionOnlyNumbers,QJ=uXe({editType:"plot",colorEditType:"plot"}),ek={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:cXe.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},fXe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},DZt=RZt("step",lXe({},ek,{range:fXe}));hXe.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:IZt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Sx({},QJ,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:sXe("value")},font:Sx({},QJ,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:sXe("value")},increasing:{symbol:{valType:"string",dflt:E7.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:E7.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:E7.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:E7.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Sx({},QJ,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:lXe({},ek,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:cXe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:PZt({range:fXe,visible:Sx({},Bf.visible,{dflt:!0}),tickmode:Bf.minor.tickmode,nticks:Bf.nticks,tick0:Bf.tick0,dtick:Bf.dtick,tickvals:Bf.tickvals,ticktext:Bf.ticktext,ticks:Sx({},Bf.ticks,{dflt:"outside"}),ticklen:Bf.ticklen,tickwidth:Bf.tickwidth,tickcolor:Bf.tickcolor,ticklabelstep:Bf.ticklabelstep,showticklabels:Bf.showticklabels,labelalias:Bf.labelalias,tickfont:uXe({}),tickangle:Bf.tickangle,tickformat:Bf.tickformat,tickformatstops:Bf.tickformatstops,tickprefix:Bf.tickprefix,showtickprefix:Bf.showtickprefix,ticksuffix:Bf.ticksuffix,showticksuffix:Bf.showticksuffix,separatethousands:Bf.separatethousands,exponentformat:Bf.exponentformat,minexponent:Bf.minexponent,showexponent:Bf.showexponent,editType:"plot"},"plot"),steps:DZt,threshold:{line:{color:Sx({},ek.line.color,{}),width:Sx({},ek.line.width,{dflt:1}),editType:"plot"},thickness:Sx({},ek.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var t$=ye((dbr,dXe)=>{"use strict";dXe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var gXe=ye((vbr,pXe)=>{"use strict";var ey=Dr(),k7=e$(),FZt=kc().defaults,vXe=pl(),zZt=Yd(),C7=t$(),OZt=xb(),qZt=T3(),BZt=e_(),NZt=t_();function UZt(e,t,r,n){function i(x,k){return ey.coerce(e,t,k7,x,k)}FZt(t,n,i),i("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=i("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){i("number.valueformat");var l=ey.extendFlat({},n.font);l.size=void 0,ey.coerceFont(i,"number.font",l),t.number.font.size===void 0&&(t.number.font.size=C7.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var u;if(t._hasDelta){var c=ey.extendFlat({},n.font);c.size=void 0,ey.coerceFont(i,"delta.font",c),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||C7.defaultNumberFontSize),o[1]=!0),i("delta.reference",t.value),i("delta.relative"),i("delta.valueformat",t.delta.relative?"2%":""),i("delta.increasing.symbol"),i("delta.increasing.color"),i("delta.decreasing.symbol"),i("delta.decreasing.color"),i("delta.position"),i("delta.prefix"),i("delta.suffix"),u=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var f=ey.extendFlat({},n.font);f.size=.25*(s||u||C7.defaultNumberFontSize),ey.coerceFont(i,"title.font",f),i("title.text");var h,d,v,_;function b(x,k){return ey.coerce(h,d,k7.gauge,x,k)}function p(x,k){return ey.coerce(v,_,k7.gauge.axis,x,k)}if(t._hasGauge){h=e.gauge,h||(h={}),d=vXe.newContainer(t,"gauge"),b("shape");var C=t._isBullet=t.gauge.shape==="bullet";C||i("title.align","center");var E=t._isAngular=t.gauge.shape==="angular";E||i("align","center"),b("bgcolor",n.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var A=C7.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",A),zZt(h,d,{name:"steps",handleItemDefaults:VZt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),v={},h&&(v=h.axis||{}),_=vXe.newContainer(d,"axis"),p("visible"),t._range=p("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};OZt(v,_,p,"linear"),NZt(v,_,p,"linear",L),BZt(v,_,p,"linear",L),qZt(v,_,p,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function VZt(e,t){function r(n,i){return ey.coerce(e,t,k7.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}pXe.exports={supplyDefaults:UZt}});var yXe=ye((pbr,mXe)=>{"use strict";function GZt(e,t){var r=[],n=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var i=t._lastValue,a=i;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}mXe.exports={calc:GZt}});var AXe=ye((gbr,TXe)=>{"use strict";var fw=Oa(),HZt=(R2(),ab(I2)).interpolate,_Xe=(R2(),ab(I2)).interpolateNumber,Mx=Dr(),jZt=Mx.strScale,rk=Mx.strTranslate,WZt=Mx.rad2deg,XZt=Kh().MID_SHIFT,cw=So(),sw=t$(),P7=ru(),sv=ho(),ZZt=r4(),YZt=oI(),KZt=Rd(),z5=Ca(),r$={left:"start",center:"middle",right:"end"},lw={left:0,center:.5,right:1},xXe=/[yzafpnµmkMGTPEZY]/;function ik(e){return e&&e.duration>0}TXe.exports=function(t,r,n,i){var a=t._fullLayout,o;ik(n)&&i&&(o=i()),Mx.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var l=s[0],u=l.trace,c=fw.select(this),f=u._hasGauge,h=u._isAngular,d=u._isBullet,v=u.domain,_={w:a._size.w*(v.x[1]-v.x[0]),h:a._size.h*(v.y[1]-v.y[0]),l:a._size.l+a._size.w*v.x[0],r:a._size.r+a._size.w*(1-v.x[1]),t:a._size.t+a._size.h*(1-v.y[1]),b:a._size.b+a._size.h*v.y[0]},b=_.l+_.w/2,p=_.t+_.h/2,C=Math.min(_.w/2,_.h),E=sw.innerRadius*C,A,L,x,k=u.align||"center";if(L=p,!f)A=_.l+lw[k]*_.w,x=function(H){return bXe(H,_.w,_.h)};else if(h&&(A=b,L=p+C/2,x=function(H){return tYt(H,.9*E)}),d){var M=sw.bulletPadding,g=1-sw.bulletNumberDomainSize+M;A=_.l+(g+(1-g)*lw[k])*_.w,x=function(H){return bXe(H,(sw.bulletNumberDomainSize-M)*_.w,_.h)}}QZt(t,c,s,{numbersX:A,numbersY:L,numbersScaler:x,transitionOpts:n,onComplete:o});var P,T;f&&(P={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},T={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var z=c.selectAll("g.angular").data(h?s:[]);z.exit().remove();var O=c.selectAll("g.angularaxis").data(h?s:[]);O.exit().remove(),h&&$Zt(t,c,s,{radius:C,innerRadius:E,gauge:z,layer:O,size:_,gaugeBg:P,gaugeOutline:T,transitionOpts:n,onComplete:o});var V=c.selectAll("g.bullet").data(d?s:[]);V.exit().remove();var G=c.selectAll("g.bulletaxis").data(d?s:[]);G.exit().remove(),d&&JZt(t,c,s,{gauge:V,layer:G,size:_,gaugeBg:P,gaugeOutline:T,transitionOpts:n,onComplete:o});var Z=c.selectAll("text.title").data(s);Z.exit().remove(),Z.enter().append("text").classed("title",!0),Z.attr("text-anchor",function(){return d?r$.right:r$[u.title.align]}).text(u.title.text).call(cw.font,u.title.font).call(P7.convertToTspans,t),Z.attr("transform",function(){var H=_.l+_.w*lw[u.title.align],N,j=sw.titlePadding,re=cw.bBox(Z.node());if(f){if(h)if(u.gauge.axis.visible){var oe=cw.bBox(O.node());N=oe.top-j-re.bottom}else N=_.t+_.h/2-C/2-re.bottom-j;d&&(N=L-(re.top+re.bottom)/2,H=_.l-sw.bulletPadding*_.w)}else N=u._numbersTop-j-re.bottom;return rk(H,N)})})};function JZt(e,t,r,n){var i=r[0].trace,a=n.gauge,o=n.layer,s=n.gaugeBg,l=n.gaugeOutline,u=n.size,c=i.domain,f=n.transitionOpts,h=n.onComplete,d,v,_,b,p;a.enter().append("g").classed("bullet",!0),a.attr("transform",rk(u.l,u.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var C=u.h,E=i.gauge.bar.thickness*C,A=c.x[0],L=c.x[0]+(c.x[1]-c.x[0])*(i._hasNumber||i._hasDelta?1-sw.bulletNumberDomainSize:1);d=tk(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[A,L],d.setScale(),v=sv.calcTicks(d),_=sv.makeTransTickFn(d),b=sv.getTickSigns(d)[2],p=u.t+u.h,d.visible&&(sv.drawTicks(e,d,{vals:d.ticks==="inside"?sv.clipEnds(d,v):v,layer:o,path:sv.makeTickPath(d,p,b),transFn:_}),sv.drawLabels(e,d,{vals:v,layer:o,transFn:_,labelFns:sv.makeLabelFns(d,p)}));function x(O){O.attr("width",function(V){return Math.max(0,d.c2p(V.range[1])-d.c2p(V.range[0]))}).attr("x",function(V){return d.c2p(V.range[0])}).attr("y",function(V){return .5*(1-V.thickness)*C}).attr("height",function(V){return V.thickness*C})}var k=[s].concat(i.gauge.steps),M=a.selectAll("g.bg-bullet").data(k);M.enter().append("g").classed("bg-bullet",!0).append("rect"),M.select("rect").call(x).call(uw),M.exit().remove();var g=a.selectAll("g.value-bullet").data([i.gauge.bar]);g.enter().append("g").classed("value-bullet",!0).append("rect"),g.select("rect").attr("height",E).attr("y",(C-E)/2).call(uw),ik(f)?g.select("rect").transition().duration(f.duration).ease(f.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y)))):g.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y))):0),g.exit().remove();var P=r.filter(function(){return i.gauge.threshold.value||i.gauge.threshold.value===0}),T=a.selectAll("g.threshold-bullet").data(P);T.enter().append("g").classed("threshold-bullet",!0).append("line"),T.select("line").attr("x1",d.c2p(i.gauge.threshold.value)).attr("x2",d.c2p(i.gauge.threshold.value)).attr("y1",(1-i.gauge.threshold.thickness)/2*C).attr("y2",(1-(1-i.gauge.threshold.thickness)/2)*C).call(z5.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),T.exit().remove();var z=a.selectAll("g.gauge-outline").data([l]);z.enter().append("g").classed("gauge-outline",!0).append("rect"),z.select("rect").call(x).call(uw),z.exit().remove()}function $Zt(e,t,r,n){var i=r[0].trace,a=n.size,o=n.radius,s=n.innerRadius,l=n.gaugeBg,u=n.gaugeOutline,c=[a.l+a.w/2,a.t+a.h/2+o/2],f=n.gauge,h=n.layer,d=n.transitionOpts,v=n.onComplete,_=Math.PI/2;function b(_e){var Me=i.gauge.axis.range[0],ke=i.gauge.axis.range[1],me=(_e-Me)/(ke-Me)*Math.PI-_;return me<-_?-_:me>_?_:me}function p(_e){return fw.svg.arc().innerRadius((s+o)/2-_e/2*(o-s)).outerRadius((s+o)/2+_e/2*(o-s)).startAngle(-_)}function C(_e){_e.attr("d",function(Me){return p(Me.thickness).startAngle(b(Me.range[0])).endAngle(b(Me.range[1]))()})}var E,A,L,x;f.enter().append("g").classed("angular",!0),f.attr("transform",rk(c[0],c[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),E=tk(e,i.gauge.axis),E.type="linear",E.range=i.gauge.axis.range,E._id="xangularaxis",E.ticklabeloverflow="allow",E.setScale();var k=function(_e){return(E.range[0]-_e.x)/(E.range[1]-E.range[0])*Math.PI+Math.PI},M={},g=sv.makeLabelFns(E,0),P=g.labelStandoff;M.xFn=function(_e){var Me=k(_e);return Math.cos(Me)*P},M.yFn=function(_e){var Me=k(_e),ke=Math.sin(Me)>0?.2:1;return-Math.sin(Me)*(P+_e.fontSize*ke)+Math.abs(Math.cos(Me))*(_e.fontSize*XZt)},M.anchorFn=function(_e){var Me=k(_e),ke=Math.cos(Me);return Math.abs(ke)<.1?"middle":ke>0?"start":"end"},M.heightFn=function(_e,Me,ke){var me=k(_e);return-.5*(1+Math.sin(me))*ke};var T=function(_e){return rk(c[0]+o*Math.cos(_e),c[1]-o*Math.sin(_e))};L=function(_e){return T(k(_e))};var z=function(_e){var Me=k(_e);return T(Me)+"rotate("+-WZt(Me)+")"};if(A=sv.calcTicks(E),x=sv.getTickSigns(E)[2],E.visible){x=E.ticks==="inside"?-1:1;var O=(E.linewidth||1)/2;sv.drawTicks(e,E,{vals:A,layer:h,path:"M"+x*O+",0h"+x*E.ticklen,transFn:z}),sv.drawLabels(e,E,{vals:A,layer:h,transFn:L,labelFns:M})}var V=[l].concat(i.gauge.steps),G=f.selectAll("g.bg-arc").data(V);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(C).call(uw),G.exit().remove();var Z=p(i.gauge.bar.thickness),H=f.selectAll("g.value-arc").data([i.gauge.bar]);H.enter().append("g").classed("value-arc",!0).append("path");var N=H.select("path");ik(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){v&&v()}).each("interrupt",function(){v&&v()}).attrTween("d",eYt(Z,b(r[0].lastY),b(r[0].y))),i._lastValue=r[0].y):N.attr("d",typeof r[0].y=="number"?Z.endAngle(b(r[0].y)):"M0,0Z"),N.call(uw),H.exit().remove(),V=[];var j=i.gauge.threshold.value;(j||j===0)&&V.push({range:[j,j],color:i.gauge.threshold.color,line:{color:i.gauge.threshold.line.color,width:i.gauge.threshold.line.width},thickness:i.gauge.threshold.thickness});var re=f.selectAll("g.threshold-arc").data(V);re.enter().append("g").classed("threshold-arc",!0).append("path"),re.select("path").call(C).call(uw),re.exit().remove();var oe=f.selectAll("g.gauge-outline").data([u]);oe.enter().append("g").classed("gauge-outline",!0).append("path"),oe.select("path").call(C).call(uw),oe.exit().remove()}function QZt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",l=r$[s],u=n.transitionOpts,c=n.onComplete,f=Mx.ensureSingle(t,"g","numbers"),h,d,v,_=[];i._hasNumber&&_.push("number"),i._hasDelta&&(_.push("delta"),i.delta.position==="left"&&_.reverse());var b=f.selectAll("text").data(_);b.enter().append("text"),b.attr("text-anchor",function(){return l}).attr("class",function(T){return T}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function p(T,z,O,V){if(T.match("s")&&O>=0!=V>=0&&!z(O).slice(-1).match(xXe)&&!z(V).slice(-1).match(xXe)){var G=T.slice().replace("s","f").replace(/\d+/,function(H){return parseInt(H)-1}),Z=tk(e,{tickformat:G});return function(H){return Math.abs(H)<1?sv.tickText(Z,H).text:z(H)}}else return z}function C(){var T=tk(e,{tickformat:i.number.valueformat},i._range);T.setScale(),sv.prepTicks(T);var z=function(H){return sv.tickText(T,H).text},O=i.number.suffix,V=i.number.prefix,G=f.select("text.number");function Z(){var H=typeof r[0].y=="number"?V+z(r[0].y)+O:"-";G.text(H).call(cw.font,i.number.font).call(P7.convertToTspans,e)}return ik(u)?G.transition().duration(u.duration).ease(u.easing).each("end",function(){Z(),c&&c()}).each("interrupt",function(){Z(),c&&c()}).attrTween("text",function(){var H=fw.select(this),N=_Xe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var j=p(i.number.valueformat,z,r[0].lastY,r[0].y);return function(re){H.text(V+j(N(re))+O)}}):Z(),h=wXe(V+z(r[0].y)+O,i.number.font,l,e),G}function E(){var T=tk(e,{tickformat:i.delta.valueformat},i._range);T.setScale(),sv.prepTicks(T);var z=function(re){return sv.tickText(T,re).text},O=i.delta.suffix,V=i.delta.prefix,G=function(re){var oe=i.delta.relative?re.relativeDelta:re.delta;return oe},Z=function(re,oe){return re===0||typeof re!="number"||isNaN(re)?"-":(re>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+V+oe(re)+O},H=function(re){return re.delta>=0?i.delta.increasing.color:i.delta.decreasing.color};i._deltaLastValue===void 0&&(i._deltaLastValue=G(r[0]));var N=f.select("text.delta");N.call(cw.font,i.delta.font).call(z5.fill,H({delta:i._deltaLastValue}));function j(){N.text(Z(G(r[0]),z)).call(z5.fill,H(r[0])).call(P7.convertToTspans,e)}return ik(u)?N.transition().duration(u.duration).ease(u.easing).tween("text",function(){var re=fw.select(this),oe=G(r[0]),_e=i._deltaLastValue,Me=p(i.delta.valueformat,z,_e,oe),ke=_Xe(_e,oe);return i._deltaLastValue=oe,function(me){re.text(Z(ke(me),Me)),re.call(z5.fill,H({delta:ke(me)}))}}).each("end",function(){j(),c&&c()}).each("interrupt",function(){j(),c&&c()}):j(),d=wXe(Z(G(r[0]),z),i.delta.font,l,e),N}var A=i.mode+i.align,L;if(i._hasDelta&&(L=E(),A+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,A+=i.delta.increasing.symbol+i.delta.decreasing.symbol,v=d),i._hasNumber&&(C(),A+=i.number.font.size+i.number.font.family+i.number.valueformat+i.number.suffix+i.number.prefix,v=h),i._hasDelta&&i._hasNumber){var x=[(h.left+h.right)/2,(h.top+h.bottom)/2],k=[(d.left+d.right)/2,(d.top+d.bottom)/2],M,g,P=.75*i.delta.font.size;i.delta.position==="left"&&(M=L7(i,"deltaPos",0,-1*(h.width*lw[i.align]+d.width*(1-lw[i.align])+P),A,Math.min),g=x[1]-k[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+M,right:h.right,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="right"&&(M=L7(i,"deltaPos",0,h.width*(1-lw[i.align])+d.width*lw[i.align]+P,A,Math.max),g=x[1]-k[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:h.left,right:d.right+M,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="bottom"&&(M=null,g=d.height,v={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),i.delta.position==="top"&&(M=null,g=h.top,v={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),L.attr({dx:M,dy:g})}(i._hasNumber||i._hasDelta)&&f.attr("transform",function(){var T=n.numbersScaler(v);A+=T[2];var z=L7(i,"numbersScale",1,T[0],A,Math.min),O;i._scaleNumbers||(z=1),i._isAngular?O=o-z*v.bottom:O=o-z*(v.top+v.bottom)/2,i._numbersTop=z*v.top+O;var V=v[s];s==="center"&&(V=(v.left+v.right)/2);var G=a-z*V;return G=L7(i,"numbersTranslate",0,G,A,Math.max),rk(G,O)+jZt(z)})}function uw(e){e.each(function(t){z5.stroke(fw.select(this),t.line.color)}).each(function(t){z5.fill(fw.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function eYt(e,t,r){return function(){var n=HZt(t,r);return function(i){return e.endAngle(n(i))()}}}function tk(e,t,r){var n=e._fullLayout,i=Mx.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:n.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(l,u){return Mx.coerce(i,a,KZt,l,u)}return ZZt(i,a,s,o,n),YZt(i,a,s,o),a}function bXe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function tYt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function wXe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=fw.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(P7.convertToTspans,n).call(cw.font,t),cw.bBox(a.node())}function L7(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=Mx.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var MXe=ye((mbr,SXe)=>{"use strict";SXe.exports={moduleType:"trace",name:"indicator",basePlotModule:oXe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:e$(),supplyDefaults:gXe().supplyDefaults,calc:yXe().calc,plot:AXe(),meta:{}}});var CXe=ye((ybr,EXe)=>{"use strict";EXe.exports=MXe()});var i$=ye((xbr,IXe)=>{"use strict";var kXe=Nb(),I7=Ao().extendFlat,rYt=mc().overrideAll,LXe=ec(),iYt=kc().attributes,PXe=df().descriptionOnlyNumbers,_br=IXe.exports=rYt({domain:iYt({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:PXe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:I7({},kXe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:I7({},LXe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:PXe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:I7({},kXe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:I7({},LXe({arrayOk:!0}))}},"calc","from-root")});var DXe=ye((bbr,RXe)=>{"use strict";var n$=Dr(),nYt=i$(),aYt=kc().defaults;function oYt(e,t){for(var r=e.columnorder||[],n=e.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(l,u){return l-u}),o=i.map(function(l){return a.indexOf(l)}),s=o.length;s{"use strict";var sYt=Km().wrap;FXe.exports=function(){return sYt({})}});var a$=ye((Tbr,OXe)=>{"use strict";OXe.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"
",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}});var WXe=ye((Abr,jXe)=>{"use strict";var qXe=a$(),s$=Ao().extendFlat,lYt=Eo(),uYt=vv().isTypedArray,R7=vv().isArrayOrTypedArray;jXe.exports=function(t,r){var n=o$(r.cells.values),i=function(g){return g.slice(r.header.values.length,g.length)},a=o$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=o$(a));var o=a.concat(i(n).map(function(){return HXe((a[0]||[""]).length)})),s=r.domain,l=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),u=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),c=r.header.values.length?o[0].map(function(){return r.header.height}):[qXe.emptyHeaderHeight],f=n.length?n[0].map(function(){return r.cells.height}):[],h=c.reduce(BXe,0),d=u-h,v=d+qXe.uplift,_=VXe(f,v),b=VXe(c,h),p=UXe(b,[]),C=UXe(_,p),E={},A=r._fullInput.columnorder;R7(A)&&(A=Array.from(A)),A=A.concat(i(n.map(function(g,P){return P})));var L=o.map(function(g,P){var T=R7(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return lYt(T)?Number(T):1}),x=L.reduce(BXe,0);L=L.map(function(g){return g/x*l});var k=Math.max(l$(r.header.line.width),l$(r.cells.line.width)),M={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:l,maxLineWidth:k,height:u,columnOrder:A,groupHeight:u,rowBlocks:C,headerRowBlocks:p,scrollY:0,cells:s$({},r.cells,{values:n}),headerCells:s$({},r.header,{values:o}),gdColumns:o.map(function(g){return g[0]}),gdColumnsOriginalOrder:o.map(function(g){return g[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(g,P){var T=E[g];E[g]=(T||0)+1;var z=g+"__"+E[g];return{key:z,label:g,specIndex:P,xIndex:A[P],xScale:NXe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return M.columns.forEach(function(g){g.calcdata=M,g.x=NXe(g)}),M};function l$(e){if(R7(e)){for(var t=0,r=0;r=t||u===e.length-1)&&(r[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=u,o=GXe(),i+=a,s=u+1,a=0);return r}function GXe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var XXe=ye(u$=>{"use strict";var D7=Ao().extendFlat;u$.splitToPanels=function(e){var t=[0,0],r=D7({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:D7({},e.calcdata,{cells:e.calcdata.headerCells})}),n=D7({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),i=D7({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[n,i,r]};u$.splitToCells=function(e){var t=cYt(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,n){var i=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:n+i,key:t[0]+n,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function cYt(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,n=t?r+t.rows.length:0;return[r,n]}});var _$=ye((Mbr,nZe)=>{"use strict";var Ya=a$(),tf=Oa(),c$=Dr(),fYt=c$.numberFormat,Uu=Km(),f$=So(),hYt=ru(),dYt=Dr().raiseToTop,sg=Dr().strTranslate,vYt=Dr().cancelTransition,pYt=WXe(),eZe=XXe(),ZXe=Ca();nZe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+Ya.cn.table).data(r.map(function(C){var E=Uu.unwrap(C),A=E.trace;return pYt(t,A)}),Uu.keyFun);i.exit().remove(),i.enter().append("g").classed(Ya.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),i.attr("width",function(C){return C.width+C.size.l+C.size.r}).attr("height",function(C){return C.height+C.size.t+C.size.b}).attr("transform",function(C){return sg(C.translateX,C.translateY)});var a=i.selectAll("."+Ya.cn.tableControlView).data(Uu.repeat,Uu.keyFun),o=a.enter().append("g").classed(Ya.cn.tableControlView,!0).style("box-sizing","content-box");if(n){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(C){a.filter(function(E){return C===E}).call(nk,t)}).on(s,function(C){if(!C.scrollbarState.wheeling){C.scrollbarState.wheeling=!0;var E=C.scrollY+tf.event.deltaY,A=z7(t,a,null,E)(C);A||(tf.event.stopPropagation(),tf.event.preventDefault()),C.scrollbarState.wheeling=!1}}).call(nk,t,!0)}a.attr("transform",function(C){return sg(C.size.l,C.size.t)});var l=a.selectAll("."+Ya.cn.scrollBackground).data(Uu.repeat,Uu.keyFun);l.enter().append("rect").classed(Ya.cn.scrollBackground,!0).attr("fill","none"),l.attr("width",function(C){return C.width}).attr("height",function(C){return C.height}),a.each(function(C){f$.setClipUrl(tf.select(this),YXe(t,C),t)});var u=a.selectAll("."+Ya.cn.yColumn).data(function(C){return C.columns},Uu.keyFun);u.enter().append("g").classed(Ya.cn.yColumn,!0),u.exit().remove(),u.attr("transform",function(C){return sg(C.x,0)}),n&&u.call(tf.behavior.drag().origin(function(C){var E=tf.select(this);return $Xe(E,C,-Ya.uplift),dYt(this),C.calcdata.columnDragInProgress=!0,nk(a.filter(function(A){return C.calcdata.key===A.key}),t),C}).on("drag",function(C){var E=tf.select(this),A=function(k){return(C===k?tf.event.x:k.x)+k.columnWidth/2};C.x=Math.max(-Ya.overdrag,Math.min(C.calcdata.width+Ya.overdrag-C.columnWidth,tf.event.x));var L=tZe(u).filter(function(k){return k.calcdata.key===C.calcdata.key}),x=L.sort(function(k,M){return A(k)-A(M)});x.forEach(function(k,M){k.xIndex=M,k.x=C===k?k.x:k.xScale(k)}),u.filter(function(k){return C!==k}).transition().ease(Ya.transitionEase).duration(Ya.transitionDuration).attr("transform",function(k){return sg(k.x,0)}),E.call(vYt).attr("transform",sg(C.x,-Ya.uplift))}).on("dragend",function(C){var E=tf.select(this),A=C.calcdata;C.x=C.xScale(C),C.calcdata.columnDragInProgress=!1,$Xe(E,C,0),SYt(t,A,A.columns.map(function(L){return L.xIndex}))})),u.each(function(C){f$.setClipUrl(tf.select(this),KXe(t,C),t)});var c=u.selectAll("."+Ya.cn.columnBlock).data(eZe.splitToPanels,Uu.keyFun);c.enter().append("g").classed(Ya.cn.columnBlock,!0).attr("id",function(C){return C.key}),c.style("cursor",function(C){return C.dragHandle?"ew-resize":C.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var f=c.filter(MYt),h=c.filter(g$);n&&h.call(tf.behavior.drag().origin(function(C){return tf.event.stopPropagation(),C}).on("drag",z7(t,a,-1)).on("dragend",function(){})),h$(t,a,f,c),h$(t,a,h,c);var d=a.selectAll("."+Ya.cn.scrollAreaClip).data(Uu.repeat,Uu.keyFun);d.enter().append("clipPath").classed(Ya.cn.scrollAreaClip,!0).attr("id",function(C){return YXe(t,C)});var v=d.selectAll("."+Ya.cn.scrollAreaClipRect).data(Uu.repeat,Uu.keyFun);v.enter().append("rect").classed(Ya.cn.scrollAreaClipRect,!0).attr("x",-Ya.overdrag).attr("y",-Ya.uplift).attr("fill","none"),v.attr("width",function(C){return C.width+2*Ya.overdrag}).attr("height",function(C){return C.height+Ya.uplift});var _=u.selectAll("."+Ya.cn.columnBoundary).data(Uu.repeat,Uu.keyFun);_.enter().append("g").classed(Ya.cn.columnBoundary,!0);var b=u.selectAll("."+Ya.cn.columnBoundaryClippath).data(Uu.repeat,Uu.keyFun);b.enter().append("clipPath").classed(Ya.cn.columnBoundaryClippath,!0),b.attr("id",function(C){return KXe(t,C)});var p=b.selectAll("."+Ya.cn.columnBoundaryRect).data(Uu.repeat,Uu.keyFun);p.enter().append("rect").classed(Ya.cn.columnBoundaryRect,!0).attr("fill","none"),p.attr("width",function(C){return C.columnWidth+2*F7(C)}).attr("height",function(C){return C.calcdata.height+2*F7(C)+Ya.uplift}).attr("x",function(C){return-F7(C)}).attr("y",function(C){return-F7(C)}),m$(null,h,a)};function F7(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function YXe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function KXe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function tZe(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function nk(e,t,r){function n(u){var c=u.rowBlocks;return v$(c,c.length-1)+(c.length?O7(c[c.length-1],1/0):1)}var i=e.selectAll("."+Ya.cn.scrollbarKit).data(Uu.repeat,Uu.keyFun);i.enter().append("g").classed(Ya.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),i.each(function(u){var c=u.scrollbarState;c.totalHeight=n(u),c.scrollableAreaHeight=u.groupHeight-d$(u),c.currentlyVisibleHeight=Math.min(c.totalHeight,c.scrollableAreaHeight),c.ratio=c.currentlyVisibleHeight/c.totalHeight,c.barLength=Math.max(c.ratio*c.currentlyVisibleHeight,Ya.goldenRatio*Ya.scrollbarWidth),c.barWiggleRoom=c.currentlyVisibleHeight-c.barLength,c.wiggleRoom=Math.max(0,c.totalHeight-c.scrollableAreaHeight),c.topY=c.barWiggleRoom===0?0:u.scrollY/c.wiggleRoom*c.barWiggleRoom,c.bottomY=c.topY+c.barLength,c.dragMultiplier=c.wiggleRoom/c.barWiggleRoom}).attr("transform",function(u){var c=u.width+Ya.scrollbarWidth/2+Ya.scrollbarOffset;return sg(c,d$(u))});var a=i.selectAll("."+Ya.cn.scrollbar).data(Uu.repeat,Uu.keyFun);a.enter().append("g").classed(Ya.cn.scrollbar,!0);var o=a.selectAll("."+Ya.cn.scrollbarSlider).data(Uu.repeat,Uu.keyFun);o.enter().append("g").classed(Ya.cn.scrollbarSlider,!0),o.attr("transform",function(u){return sg(0,u.scrollbarState.topY||0)});var s=o.selectAll("."+Ya.cn.scrollbarGlyph).data(Uu.repeat,Uu.keyFun);s.enter().append("line").classed(Ya.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",Ya.scrollbarWidth).attr("stroke-linecap","round").attr("y1",Ya.scrollbarWidth/2),s.attr("y2",function(u){return u.scrollbarState.barLength-Ya.scrollbarWidth/2}).attr("stroke-opacity",function(u){return u.columnDragInProgress||!u.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(Ya.scrollbarHideDelay).duration(Ya.scrollbarHideDuration).attr("stroke-opacity",0);var l=a.selectAll("."+Ya.cn.scrollbarCaptureZone).data(Uu.repeat,Uu.keyFun);l.enter().append("line").classed(Ya.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",Ya.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(u){var c=tf.event.y,f=this.getBoundingClientRect(),h=u.scrollbarState,d=c-f.top,v=tf.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||z7(t,e,null,v(d-h.barLength/2))(u)}).call(tf.behavior.drag().origin(function(u){return tf.event.stopPropagation(),u.scrollbarState.scrollbarScrollInProgress=!0,u}).on("drag",z7(t,e)).on("dragend",function(){})),l.attr("y2",function(u){return u.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),l.remove())}function h$(e,t,r,n){var i=gYt(r),a=mYt(i);bYt(a);var o=yYt(a);TYt(o);var s=xYt(a),l=_Yt(s);wYt(l),rZe(l,t,n,e),y$(a)}function gYt(e){var t=e.selectAll("."+Ya.cn.columnCells).data(Uu.repeat,Uu.keyFun);return t.enter().append("g").classed(Ya.cn.columnCells,!0),t.exit().remove(),t}function mYt(e){var t=e.selectAll("."+Ya.cn.columnCell).data(eZe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.columnCell,!0),t.exit().remove(),t}function yYt(e){var t=e.selectAll("."+Ya.cn.cellRect).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(Ya.cn.cellRect,!0),t}function _Yt(e){var t=e.selectAll("."+Ya.cn.cellText).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(Ya.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){tf.event.stopPropagation()}),t}function xYt(e){var t=e.selectAll("."+Ya.cn.cellTextHolder).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function bYt(e){e.each(function(t,r){var n=t.calcdata.cells.font,i=t.column.specIndex,a={size:Yv(n.size,i,r),color:Yv(n.color,i,r),family:Yv(n.family,i,r),weight:Yv(n.weight,i,r),style:Yv(n.style,i,r),variant:Yv(n.variant,i,r),textcase:Yv(n.textcase,i,r),lineposition:Yv(n.lineposition,i,r),shadow:Yv(n.shadow,i,r)};t.rowNumber=t.key,t.align=Yv(t.calcdata.cells.align,i,r),t.cellBorderWidth=Yv(t.calcdata.cells.line.width,i,r),t.font=a})}function wYt(e){e.each(function(t){f$.font(tf.select(this),t.font)})}function TYt(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=tf.select(this);ZXe.stroke(r,Yv(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),ZXe.fill(r,Yv(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function rZe(e,t,r,n){e.text(function(i){var a=i.column.specIndex,o=i.rowNumber,s=i.value,l=typeof s=="string",u=l&&s.match(/
/i),c=!l||u;i.mayHaveMarkup=l&&s.match(/[<&>]/);var f=AYt(s);i.latex=f;var h=f?"":Yv(i.calcdata.cells.prefix,a,o)||"",d=f?"":Yv(i.calcdata.cells.suffix,a,o)||"",v=f?null:Yv(i.calcdata.cells.format,a,o)||null,_=h+(v?fYt(v)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!c&&!f&&(b=JXe(_)),i.cellHeightMayIncrease=u||f||i.mayHaveMarkup||(b===void 0?JXe(_):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var p;if(i.wrappingNeeded){var C=Ya.wrapSplitCharacter===" "?_.replace(/i&&n.push(a),i+=l}return n}function m$(e,t,r){var n=tZe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=v$(i,i.length),s=n.calcdata.groupHeight-d$(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=EYt(i,l,s);u.length===1&&(u[0]===i.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&&u.reverse(),t.each(function(c,f){c.page=u[f],c.scrollY=l}),t.attr("transform",function(c){var f=v$(c.rowBlocks,c.page)-c.scrollY;return sg(0,f)}),e&&(QXe(e,r,t,u,n.prevPages,n,0),QXe(e,r,t,u,n.prevPages,n,1),nk(r,e))}}function z7(e,t,r,n){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(f){return o.key===f.key}),l=r||o.scrollbarState.dragMultiplier,u=o.scrollY;o.scrollY=n===void 0?o.scrollY+l*tf.event.dy:n;var c=s.selectAll("."+Ya.cn.yColumn).selectAll("."+Ya.cn.columnBlock).filter(g$);return m$(e,c,s),o.scrollY===u}}function QXe(e,t,r,n,i,a,o){var s=n[o]!==i[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var l=r.filter(function(u,c){return c===o&&n[c]!==i[c]});h$(e,t,l,r),i[o]=n[o]}))}function CYt(e,t,r,n){return function(){var a=tf.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(_,b){s[b].width=this.getComputedTextLength()});var l=s[s.length-1].width,u=s.slice(0,-1),c=[],f,h,d=0,v=o.column.columnWidth-2*Ya.cellPad;for(o.value="";u.length;)f=u.shift(),h=f.width+l,d+h>v&&(o.value+=c.join(Ya.wrapSpacer)+Ya.lineBreaker,c=[],d=0),c.push(f.text),d+=h;d&&(o.value+=c.join(Ya.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),rZe(a.select("."+Ya.cn.cellText),r,e,n),tf.select(t.parentNode.parentNode).call(y$)}}function kYt(e,t,r,n,i){return function(){if(!i.settledY){var o=tf.select(t.parentNode),s=p$(i),l=i.key-s.firstRowIndex,u=s.rows[l].rowHeight,c=i.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*Ya.cellPad:u,f=Math.max(c,u),h=f-s.rows[l].rowHeight;h&&(s.rows[l].rowHeight=f,e.selectAll("."+Ya.cn.columnCell).call(y$),m$(null,e.filter(g$),0),nk(r,n,!0)),o.attr("transform",function(){var d=this,v=d.parentNode,_=v.getBoundingClientRect(),b=tf.select(d.parentNode).select("."+Ya.cn.cellRect).node().getBoundingClientRect(),p=d.transform.baseVal.consolidate(),C=b.top-_.top+(p?p.matrix.f:Ya.cellPad);return sg(iZe(i,tf.select(d.parentNode).select("."+Ya.cn.cellTextHolder).node().getBoundingClientRect().width),C)}),i.settledY=!0}}}function iZe(e,t){switch(e.align){case"left":return Ya.cellPad;case"right":return e.column.columnWidth-(t||0)-Ya.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return Ya.cellPad}}function y$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+O7(s,1/0)},0),n=p$(t),i=O7(n,t.key),a=i+r;return sg(0,a)}).selectAll("."+Ya.cn.cellRect).attr("height",function(t){return PYt(p$(t),t.key).rowHeight})}function v$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=LYt(e[n]);return r}function O7(e,t){for(var r=0,n=0;n{"use strict";var IYt=Id().getModuleCalcData,RYt=_$(),q7="table";B7.name=q7;B7.plot=function(e){var t=IYt(e.calcdata,q7)[0];t.length&&RYt(e,t)};B7.clean=function(e,t,r,n){var i=n._has&&n._has(q7),a=t._has&&t._has(q7);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var sZe=ye((Cbr,oZe)=>{"use strict";oZe.exports={attributes:i$(),supplyDefaults:DXe(),calc:zXe(),plot:_$(),moduleType:"trace",name:"table",basePlotModule:aZe(),categories:["noOpacity"],meta:{}}});var uZe=ye((kbr,lZe)=>{"use strict";lZe.exports=sZe()});var vZe=ye((Lbr,dZe)=>{"use strict";var cZe=ec(),fZe=Ch(),x$=Rd(),DYt=df().descriptionWithDates,FYt=mc().overrideAll,hZe=Pd().dash,b$=Ao().extendFlat;dZe.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:cZe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:x$.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:b$({},x$.labelalias,{editType:"calc"}),tickfont:cZe({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:DYt("tick label")},tickformatstops:FYt(x$.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:fZe.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:b$({},hZe,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:b$({},hZe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:fZe.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var U7=ye((Pbr,mZe)=>{"use strict";var zYt=ec(),pZe=vZe(),gZe=Ch(),N7=zYt({editType:"calc"}),OYt=pf().zorder;N7.family.dflt='"Open Sans", verdana, arial, sans-serif';N7.size.dflt=12;N7.color.dflt=gZe.defaultLine;mZe.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:pZe,baxis:pZe,font:N7,color:{valType:"color",dflt:gZe.defaultLine,editType:"plot"},zorder:OYt}});var xZe=ye((Ibr,_Ze)=>{"use strict";var yZe=Dr().isArray1D;_Ze.exports=function(t,r,n){var i=n("x"),a=i&&i.length,o=n("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!i,(!a||yZe(i))&&(!s||yZe(o))){var l=a?i.length:1/0;s&&(l=Math.min(l,o.length)),r.a&&r.a.length&&(l=Math.min(l,r.a.length)),r.b&&r.b.length&&(l=Math.min(l,r.b.length)),r._length=l}else r._length=null;return!0}});var TZe=ye((Rbr,wZe)=>{"use strict";var qYt=U7(),bZe=Ca().addOpacity,BYt=qa(),ak=Dr(),NYt=xb(),UYt=e_(),VYt=t_(),GYt=iI(),HYt=ym(),jYt=L3();wZe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=qYt[i+"axis"];function s(g,P){return ak.coerce(t,r,o,g,P)}function l(g,P){return ak.coerce2(t,r,o,g,P)}n.name&&(r._name=n.name,r._id=n.name),s("autotypenumbers",n.autotypenumbersDflt);var u=s("type");if(u==="-"&&(n.data&&WYt(r,n.data),r.type==="-"?r.type="linear":u=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",i+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=i,u==="date"){var c=BYt.getComponentMethod("calendars","handleDefaults");c(t,r,"calendar",n.calendar)}HYt(r,n.fullLayout),r.c2p=ak.identity;var f=s("color",n.dfltColor),h=f===t.color?f:a.color,d=s("title.text");d&&(ak.coerceFont(s,"title.font",a,{overrideDflt:{size:ak.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var v=s("autorange",!r.isValidRange(t.range));v&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),NYt(t,r,s,u),VYt(t,r,s,u,n),UYt(t,r,s,u,n),GYt(t,r,s,{data:n.data,dataAttr:i});var _=l("gridcolor",bZe(f,.3)),b=l("gridwidth"),p=l("griddash"),C=s("showgrid");C||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var E=l("startlinecolor",f),A=l("startlinewidth",b),L=s("startline",r.showgrid||!!E||!!A);L||(delete r.startlinecolor,delete r.startlinewidth);var x=l("endlinecolor",f),k=l("endlinewidth",b),M=s("endline",r.showgrid||!!x||!!k);return M||(delete r.endlinecolor,delete r.endlinewidth),C?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",p),s("minorgridcolor",bZe(_,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function WYt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=jYt(t,a,{autotypenumbers:e.autotypenumbers})}}});var SZe=ye((Dbr,AZe)=>{"use strict";var XYt=TZe(),ZYt=pl();AZe.exports=function(t,r,n,i,a){var o=i("a");o||(i("da"),i("a0"));var s=i("b");s||(i("db"),i("b0")),YYt(t,r,n,a)};function YYt(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=ZYt.newContainer(t,a),u={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:n,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};XYt(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var CZe=ye((Fbr,EZe)=>{"use strict";var MZe=Dr(),KYt=xZe(),JYt=SZe(),$Yt=U7(),QYt=Ch();EZe.exports=function(t,r,n,i){function a(l,u){return MZe.coerce(t,r,$Yt,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",QYt.defaultLine);if(MZe.coerceFont(a,"font",i.font),a("carpet"),JYt(t,r,i,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=KYt(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var w$=ye((zbr,kZe)=>{"use strict";var eKt=Dr().isArrayOrTypedArray;kZe.exports=function(t,r,n){var i;for(eKt(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";LZe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";PZe.exports=function(t,r,n,i,a,o){var s=a[0]*t.dpdx(r),l=a[1]*t.dpdy(n),u=1,c=1;if(o){var f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=(a[0]*o[0]+a[1]*o[1])/f/h;c=Math.max(0,d)}var v=Math.atan2(l,s)*180/Math.PI;return v<-90?(v+=180,u=-u):v>90&&(v-=180,u=-u),{angle:v,flip:u,p:t.c2p(i,r,n),offsetMultplier:c}}});var NZe=ye((Bbr,BZe)=>{"use strict";var j7=Oa(),V7=So(),G7=w$(),FZe=T$(),ok=IZe(),A$=ru(),Np=Dr(),zZe=Np.strRotate,H7=Np.strTranslate,OZe=Kh();BZe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,l=t._fullLayout,u=l._clips;Np.makeTraceGroups(i,n,"trace").each(function(c){var f=j7.select(this),h=c[0],d=h.trace,v=d.aaxis,_=d.baxis,b=Np.ensureSingle(f,"g","minorlayer"),p=Np.ensureSingle(f,"g","majorlayer"),C=Np.ensureSingle(f,"g","boundarylayer"),E=Np.ensureSingle(f,"g","labellayer");f.style("opacity",d.opacity),O5(o,s,p,v,"a",v._gridlines,!0,a),O5(o,s,p,_,"b",_._gridlines,!0,a),O5(o,s,b,v,"a",v._minorgridlines,!0,a),O5(o,s,b,_,"b",_._minorgridlines,!0,a),O5(o,s,C,v,"a-boundary",v._boundarylines,a),O5(o,s,C,_,"b-boundary",_._boundarylines,a);var A=RZe(t,o,s,d,h,E,v._labels,"a-label"),L=RZe(t,o,s,d,h,E,_._labels,"b-label");rKt(t,E,d,h,o,s,A,L),tKt(d,h,u,o,s)})};function tKt(e,t,r,n,i){var a,o,s,l,u=r.select("#"+e._clipPathId);u.size()||(u=r.append("clipPath").classed("carpetclip",!0));var c=Np.ensureSingle(u,"path","carpetboundary"),f=t.clipsegments,h=[];for(l=0;l0?"start":"end","data-notex":1}).call(V7.font,f.font).text(f.text).call(A$.convertToTspans,e),p=V7.bBox(this);b.attr("transform",H7(d.p[0],d.p[1])+zZe(d.angle)+H7(f.axis.labelpadding*_,p.height*.3)),u=Math.max(u,p.width+f.axis.labelpadding)}),l.exit().remove(),c.maxExtent=u,c}function rKt(e,t,r,n,i,a,o,s){var l,u,c,f,h=Np.aggNums(Math.min,null,r.a),d=Np.aggNums(Math.max,null,r.a),v=Np.aggNums(Math.min,null,r.b),_=Np.aggNums(Math.max,null,r.b);l=.5*(h+d),u=v,c=r.ab2xy(l,u,!0),f=r.dxyda_rough(l,u),o.angle===void 0&&Np.extendFlat(o,ok(r,i,a,c,r.dxydb_rough(l,u))),DZe(e,t,r,n,c,f,r.aaxis,i,a,o,"a-title"),l=h,u=.5*(v+_),c=r.ab2xy(l,u,!0),f=r.dxydb_rough(l,u),s.angle===void 0&&Np.extendFlat(s,ok(r,i,a,c,r.dxyda_rough(l,u))),DZe(e,t,r,n,c,f,r.baxis,i,a,s,"b-title")}var qZe=OZe.LINE_SPACING,iKt=(1-OZe.MID_SHIFT)/qZe+1;function DZe(e,t,r,n,i,a,o,s,l,u,c){var f=[];o.title.text&&f.push(o.title.text);var h=t.selectAll("text."+c).data(f),d=u.maxExtent;h.enter().append("text").classed(c,!0),h.each(function(){var v=ok(r,s,l,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var _=o.title.font.size;d+=_+o.title.offset;var b=u.angle+(u.flip<0?180:0),p=(b-v.angle+450)%360,C=p>90&&p<270,E=j7.select(this);E.text(o.title.text).call(A$.convertToTspans,e),C&&(d=(-A$.lineCount(E)+iKt)*qZe*_-d),E.attr("transform",H7(v.p[0],v.p[1])+zZe(v.angle)+H7(0,d)).attr("text-anchor","middle").call(V7.font,o.title.font)}),h.exit().remove()}});var VZe=ye((Nbr,UZe)=>{"use strict";var W7=Dr().isArrayOrTypedArray;UZe.exports=function(e,t,r){var n,i,a,o,s,l,u=[],c=W7(e)?e.length:e,f=W7(t)?t.length:t,h=W7(e)?e:null,d=W7(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(c-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(f-1));var v,_=1/0,b=-1/0;for(i=0;i{"use strict";var GZe=Dr().isArrayOrTypedArray;jZe.exports=function(e){return HZe(e,0)};function HZe(e,t){if(!GZe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var nKt=ho(),Ex=Ao().extendFlat;XZe.exports=function(t,r,n){var i,a,o,s,l,u,c,f,h,d,v,_,b,p,C=t["_"+r],E=t[r+"axis"],A=E._gridlines=[],L=E._minorgridlines=[],x=E._boundarylines=[],k=t["_"+n],M=t[n+"axis"];E.tickmode==="array"&&(E.tickvals=C.slice());var g=t._xctrl,P=t._yctrl,T=g[0].length,z=g.length,O=t._a.length,V=t._b.length;nKt.prepTicks(E),E.tickmode==="array"&&delete E.tickvals;var G=E.smoothing?3:1;function Z(N){var j,re,oe,_e,Me,ke,me,ie,Se,Le,Ae,De,Pe=[],ge=[],Fe={};if(r==="b")for(re=t.b2j(N),oe=Math.floor(Math.max(0,Math.min(V-2,re))),_e=re-oe,Fe.length=V,Fe.crossLength=O,Fe.xy=function(ce){return t.evalxy([],ce,re)},Fe.dxy=function(ce,Ze){return t.dxydi([],ce,oe,Ze,_e)},j=0;j0&&(Se=t.dxydi([],j-1,oe,0,_e),Pe.push(Me[0]+Se[0]/3),ge.push(Me[1]+Se[1]/3),Le=t.dxydi([],j-1,oe,1,_e),Pe.push(ie[0]-Le[0]/3),ge.push(ie[1]-Le[1]/3)),Pe.push(ie[0]),ge.push(ie[1]),Me=ie;else for(j=t.a2i(N),ke=Math.floor(Math.max(0,Math.min(O-2,j))),me=j-ke,Fe.length=O,Fe.crossLength=V,Fe.xy=function(ce){return t.evalxy([],j,ce)},Fe.dxy=function(ce,Ze){return t.dxydj([],ke,ce,me,Ze)},re=0;re0&&(Ae=t.dxydj([],ke,re-1,me,0),Pe.push(Me[0]+Ae[0]/3),ge.push(Me[1]+Ae[1]/3),De=t.dxydj([],ke,re-1,me,1),Pe.push(ie[0]-De[0]/3),ge.push(ie[1]-De[1]/3)),Pe.push(ie[0]),ge.push(ie[1]),Me=ie;return Fe.axisLetter=r,Fe.axis=E,Fe.crossAxis=M,Fe.value=N,Fe.constvar=n,Fe.index=f,Fe.x=Pe,Fe.y=ge,Fe.smoothing=M.smoothing,Fe}function H(N){var j,re,oe,_e,Me,ke=[],me=[],ie={};if(ie.length=C.length,ie.crossLength=k.length,r==="b")for(oe=Math.max(0,Math.min(V-2,N)),Me=Math.min(1,Math.max(0,N-oe)),ie.xy=function(Se){return t.evalxy([],Se,N)},ie.dxy=function(Se,Le){return t.dxydi([],Se,oe,Le,Me)},j=0;jC.length-1)&&A.push(Ex(H(a),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(f=u;fC.length-1)&&!(v<0||v>C.length-1))for(_=C[o],b=C[v],i=0;iC[C.length-1])&&L.push(Ex(Z(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash})));E.startline&&x.push(Ex(H(0),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&x.push(Ex(H(C.length-1),{color:E.endlinecolor,width:E.endlinewidth}))}else{for(s=5e-15,l=[Math.floor((C[C.length-1]-E.tick0)/E.dtick*(1+s)),Math.ceil((C[0]-E.tick0)/E.dtick/(1+s))].sort(function(N,j){return N-j}),u=l[0],c=l[1],f=u;f<=c;f++)h=E.tick0+E.dtick*f,A.push(Ex(Z(h),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(f=u-1;fC[C.length-1])&&L.push(Ex(Z(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash}));E.startline&&x.push(Ex(Z(C[0]),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&x.push(Ex(Z(C[C.length-1]),{color:E.endlinecolor,width:E.endlinewidth}))}}});var $Ze=ye((Gbr,JZe)=>{"use strict";var YZe=ho(),KZe=Ao().extendFlat;JZe.exports=function(t,r){var n,i,a,o,s,l=r._labels=[],u=r._gridlines;for(n=0;n{"use strict";QZe.exports=function(t,r,n,i){var a,o,s,l=[],u=!!n.smoothing,c=!!i.smoothing,f=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=f;a++)o[a]=t[0][a],s[a]=r[0][a];for(l.push({x:o,y:s,bicubic:u}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][f],s[a]=r[a][f];for(l.push({x:o,y:s,bicubic:c}),a=f,o=[],s=[];a>=0;a--)o[f-a]=t[h][a],s[f-a]=r[h][a];for(l.push({x:o,y:s,bicubic:u}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return l.push({x:o,y:s,bicubic:c}),l}});var rYe=ye((jbr,tYe)=>{"use strict";var aKt=Dr();tYe.exports=function(t,r,n){var i,a,o,s=[],l=[],u=t[0].length,c=t.length;function f(oe,_e){var Me=0,ke,me=0;return oe>0&&(ke=t[_e][oe-1])!==void 0&&(me++,Me+=ke),oe0&&(ke=t[_e-1][oe])!==void 0&&(me++,Me+=ke),_e0&&a0&&iM);return aKt.log("Smoother converged to",g,"after",T,"iterations"),t}});var nYe=ye((Wbr,iYe)=>{"use strict";iYe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var sYe=ye((Xbr,oYe)=>{"use strict";var aYe=.5;oYe.exports=function(t,r,n,i){var a=t[0]-r[0],o=t[1]-r[1],s=n[0]-r[0],l=n[1]-r[1],u=Math.pow(a*a+o*o,aYe/2),c=Math.pow(s*s+l*l,aYe/2),f=(c*c*a-u*u*s)*i,h=(c*c*o-u*u*l)*i,d=c*(u+c)*3,v=u*(u+c)*3;return[[r[0]+(d&&f/d),r[1]+(d&&h/d)],[r[0]-(v&&f/v),r[1]-(v&&h/v)]]}});var uYe=ye((Zbr,lYe)=>{"use strict";var S$=sYe(),X7=Dr().ensureArray;function q5(e,t,r){var n=-.5*r[0]+1.5*t[0],i=-.5*r[1]+1.5*t[1];return[(2*n+e[0])/3,(2*i+e[1])/3]}lYe.exports=function(t,r,n,i,a,o){var s,l,u,c,f,h,d,v,_,b,p=n[0].length,C=n.length,E=a?3*p-2:p,A=o?3*C-2:C;for(t=X7(t,A),r=X7(r,A),u=0;u{"use strict";cYe.exports=function(e,t,r,n,i){var a=t-2,o=r-2;return n&&i?function(s,l,u){s||(s=[]);var c,f,h,d,v,_,b=Math.max(0,Math.min(Math.floor(l),a)),p=Math.max(0,Math.min(Math.floor(u),o)),C=Math.max(0,Math.min(1,l-b)),E=Math.max(0,Math.min(1,u-p));b*=3,p*=3;var A=C*C,L=A*C,x=1-C,k=x*x,M=k*x,g=E*E,P=g*E,T=1-E,z=T*T,O=z*T;for(_=0;_{"use strict";hYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,_=1-o,b=_*_,p=_*o*2,C=-3*b,E=3*(b-p),A=3*(p-v),L=3*v,x=s*s,k=x*s,M=1-s,g=M*M,P=g*M;for(d=0;d{"use strict";vYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,_=v*o,b=1-o,p=b*b,C=p*b,E=s*s,A=1-s,L=A*A,x=A*s*2,k=-3*L,M=3*(L-x),g=3*(x-E),P=3*E;for(d=0;d{"use strict";var gYe=nYe(),mYe=I6().findBin,oKt=uYe(),sKt=fYe(),lKt=dYe(),uKt=pYe();yYe.exports=function(t){var r=t._a,n=t._b,i=r.length,a=n.length,o=t.aaxis,s=t.baxis,l=r[0],u=r[i-1],c=n[0],f=n[a-1],h=r[r.length-1]-r[0],d=n[n.length-1]-n[0],v=h*gYe.RELATIVE_CULL_TOLERANCE,_=d*gYe.RELATIVE_CULL_TOLERANCE;l-=v,u+=v,c-=_,f+=_,t.isVisible=function(b,p){return b>l&&bc&&pu||pf},t.setScale=function(){var b=t._x,p=t._y,C=oKt(t._xctrl,t._yctrl,b,p,o.smoothing,s.smoothing);t._xctrl=C[0],t._yctrl=C[1],t.evalxy=sKt([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=lKt([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=uKt([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(b){var p=Math.max(0,Math.floor(b[0]),i-2),C=b[0]-p;return(1-C)*r[p]+C*r[p+1]},t.j2b=function(b){var p=Math.max(0,Math.floor(b[1]),i-2),C=b[1]-p;return(1-C)*n[p]+C*n[p+1]},t.ij2ab=function(b){return[t.i2a(b[0]),t.j2b(b[1])]},t.a2i=function(b){var p=Math.max(0,Math.min(mYe(b,r),i-2)),C=r[p],E=r[p+1];return Math.max(0,Math.min(i-1,p+(b-C)/(E-C)))},t.b2j=function(b){var p=Math.max(0,Math.min(mYe(b,n),a-2)),C=n[p],E=n[p+1];return Math.max(0,Math.min(a-1,p+(b-C)/(E-C)))},t.ab2ij=function(b){return[t.a2i(b[0]),t.b2j(b[1])]},t.i2c=function(b,p){return t.evalxy([],b,p)},t.ab2xy=function(b,p,C){if(!C&&(br[i-1]|pn[a-1]))return[!1,!1];var E=t.a2i(b),A=t.b2j(p),L=t.evalxy([],E,A);if(C){var x=0,k=0,M=[],g,P,T,z;br[i-1]?(g=i-2,P=1,x=(b-r[i-1])/(r[i-1]-r[i-2])):(g=Math.max(0,Math.min(i-2,Math.floor(E))),P=E-g),pn[a-1]?(T=a-2,z=1,k=(p-n[a-1])/(n[a-1]-n[a-2])):(T=Math.max(0,Math.min(a-2,Math.floor(A))),z=A-T),x&&(t.dxydi(M,g,T,P,z),L[0]+=M[0]*x,L[1]+=M[1]*x),k&&(t.dxydj(M,g,T,P,z),L[0]+=M[0]*k,L[1]+=M[1]*k)}return L},t.c2p=function(b,p,C){return[p.c2p(b[0]),C.c2p(b[1])]},t.p2x=function(b,p,C){return[p.p2c(b[0]),C.p2c(b[1])]},t.dadi=function(b){var p=Math.max(0,Math.min(r.length-2,b));return r[p+1]-r[p]},t.dbdj=function(b){var p=Math.max(0,Math.min(n.length-2,b));return n[p+1]-n[p]},t.dxyda=function(b,p,C,E){var A=t.dxydi(null,b,p,C,E),L=t.dadi(b,C);return[A[0]/L,A[1]/L]},t.dxydb=function(b,p,C,E){var A=t.dxydj(null,b,p,C,E),L=t.dbdj(p,E);return[A[0]/L,A[1]/L]},t.dxyda_rough=function(b,p,C){var E=h*(C||.1),A=t.ab2xy(b+E,p,!0),L=t.ab2xy(b-E,p,!0);return[(A[0]-L[0])*.5/E,(A[1]-L[1])*.5/E]},t.dxydb_rough=function(b,p,C){var E=d*(C||.1),A=t.ab2xy(b,p+E,!0),L=t.ab2xy(b,p-E,!0);return[(A[0]-L[0])*.5/E,(A[1]-L[1])*.5/E]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var EYe=ye((Qbr,MYe)=>{"use strict";var Z7=ho(),xYe=Dr().isArray1D,cKt=VZe(),bYe=WZe(),wYe=ZZe(),TYe=$Ze(),fKt=eYe(),AYe=r8(),SYe=rYe(),hKt=e8(),dKt=_Ye();MYe.exports=function(t,r){var n=Z7.getFromId(t,r.xaxis),i=Z7.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,l=r.y,u=[];s&&xYe(s)&&u.push("x"),l&&xYe(l)&&u.push("y"),u.length&&hKt(r,a,o,"a","b",u);var c=r._a=r._a||r.a,f=r._b=r._b||r.b;s=r._x||r.x,l=r._y||r.y;var h={};if(r._cheater){var d=a.cheatertype==="index"?c.length:c,v=o.cheatertype==="index"?f.length:f;s=cKt(d,v,r.cheaterslope)}r._x=s=AYe(s),r._y=l=AYe(l),SYe(s,c,f),SYe(l,c,f),dKt(r),r.setScale();var _=bYe(s),b=bYe(l),p=.5*(_[1]-_[0]),C=.5*(_[1]+_[0]),E=.5*(b[1]-b[0]),A=.5*(b[1]+b[0]),L=1.3;return _=[C-p*L,C+p*L],b=[A-E*L,A+E*L],r._extremes[n._id]=Z7.findExtremes(n,_,{padded:!0}),r._extremes[i._id]=Z7.findExtremes(i,b,{padded:!0}),wYe(r,"a","b"),wYe(r,"b","a"),TYe(r,a),TYe(r,o),h.clipsegments=fKt(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=c,h.b=f,[h]}});var kYe=ye((e2r,CYe)=>{"use strict";CYe.exports={attributes:U7(),supplyDefaults:CZe(),plot:NZe(),calc:EYe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:ph(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var PYe=ye((t2r,LYe)=>{"use strict";LYe.exports=kYe()});var M$=ye((r2r,RYe)=>{"use strict";var vKt=Cg(),u0=pf(),pKt=Gl(),gKt=Qo().hovertemplateAttrs,mKt=Qo().texttemplateAttrs,IYe=Tu(),Cx=Ao().extendFlat,lg=u0.marker,B5=u0.line,yKt=lg.line;RYe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:Cx({},u0.mode,{dflt:"markers"}),text:Cx({},u0.text,{}),texttemplate:mKt({editType:"plot"},{keys:["a","b","text"]}),hovertext:Cx({},u0.hovertext,{}),line:{color:B5.color,width:B5.width,dash:B5.dash,backoff:B5.backoff,shape:Cx({},B5.shape,{values:["linear","spline"]}),smoothing:B5.smoothing,editType:"calc"},connectgaps:u0.connectgaps,fill:Cx({},u0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:vKt(),marker:Cx({symbol:lg.symbol,opacity:lg.opacity,maxdisplayed:lg.maxdisplayed,angle:lg.angle,angleref:lg.angleref,standoff:lg.standoff,size:lg.size,sizeref:lg.sizeref,sizemin:lg.sizemin,sizemode:lg.sizemode,line:Cx({width:yKt.width,editType:"calc"},IYe("marker.line")),gradient:lg.gradient,editType:"calc"},IYe("marker")),textfont:u0.textfont,textposition:u0.textposition,selected:u0.selected,unselected:u0.unselected,hoverinfo:Cx({},pKt.hoverinfo,{flags:["a","b","text","name"]}),hoveron:u0.hoveron,hovertemplate:gKt(),zorder:u0.zorder}});var OYe=ye((i2r,zYe)=>{"use strict";var DYe=Dr(),_Kt=Sm(),N5=Ru(),xKt=$p(),bKt=D0(),FYe=$3(),wKt=F0(),TKt=Ig(),AKt=M$();zYe.exports=function(t,r,n,i){function a(h,d){return DYe.coerce(t,r,AKt,h,d)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("text"),a("texttemplate"),a("hovertext");var u=l<_Kt.PTS_LINESONLY?"lines+markers":"lines";a("mode",u),N5.hasMarkers(r)&&xKt(t,r,n,i,a,{gradient:!0}),N5.hasLines(r)&&(bKt(t,r,n,i,a,{backoff:!0}),FYe(t,r,a),a("connectgaps")),N5.hasText(r)&&wKt(t,r,i,a);var c=[];(N5.hasMarkers(r)||N5.hasText(r))&&(a("marker.maxdisplayed"),c.push("points")),a("fill"),r.fill!=="none"&&(TKt(t,r,n,a),N5.hasLines(r)||FYe(t,r,a)),(r.fill==="tonext"||r.fill==="toself")&&c.push("fills");var f=a("hoveron",c.join("+")||"points");f!=="fills"&&a("hovertemplate"),a("zorder"),DYe.coerceSelectionMarkerOpacity(r,a)}});var BYe=ye((n2r,qYe)=>{"use strict";qYe.exports=function(t,r){var n={},i=r._carpet,a=i.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,l=Math.floor(a[1]),u=a[1]-l,c=i.evalxy([],o,l,s,u);return n.yLabel=c[1].toFixed(3),n}});var Y7=ye((a2r,NYe)=>{"use strict";NYe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var UYe=Eo(),SKt=z0(),MKt=Cm(),EKt=O0(),CKt=q0().calcMarkerSize,kKt=Y7();VYe.exports=function(t,r){var n=r._carpetTrace=kKt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){var i;r.xaxis=n.xaxis,r.yaxis=n.yaxis;var a=r._length,o=new Array(a),s,l,u=!1;for(i=0;i{"use strict";var LKt=nT(),HYe=ho(),PKt=So();jYe.exports=function(t,r,n,i){var a,o,s,l=n[0][0].carpet,u=HYe.getFromId(t,l.xaxis||"x"),c=HYe.getFromId(t,l.yaxis||"y"),f={xaxis:u,yaxis:c,plot:r.plot};for(a=0;a{"use strict";var IKt=lT(),RKt=Dr().fillText;XYe.exports=function(t,r,n,i){var a=IKt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index];o.a=f.a,o.b=f.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,d=h._carpet,v=h._module.formatLabels(f,h);o.yLabel=v.yLabel,delete o.text;var _=[];function b(E,A){var L;E.labelprefix&&E.labelprefix.length>0?L=E.labelprefix.replace(/ = $/,""):L=E._hovertitle,_.push(L+": "+A.toFixed(3)+E.labelsuffix)}if(!h.hovertemplate){var p=f.hi||h.hoverinfo,C=p.split("+");C.indexOf("all")!==-1&&(C=["a","b","text"]),C.indexOf("a")!==-1&&b(d.aaxis,f.a),C.indexOf("b")!==-1&&b(d.baxis,f.b),_.push("y: "+o.yLabel),C.indexOf("text")!==-1&&RKt(f,h,_),o.extraText=_.join("
")}return a}});var KYe=ye((u2r,YYe)=>{"use strict";YYe.exports=function(t,r,n,i,a){var o=i[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var $Ye=ye((c2r,JYe)=>{"use strict";JYe.exports={attributes:M$(),supplyDefaults:OYe(),colorbar:$d(),formatLabels:BYe(),calc:GYe(),plot:WYe(),style:op().style,styleOnSelect:op().styleOnSelect,hoverPoints:ZYe(),selectPoints:uT(),eventData:KYe(),moduleType:"trace",name:"scattercarpet",basePlotModule:ph(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var eKe=ye((f2r,QYe)=>{"use strict";QYe.exports=$Ye()});var E$=ye((h2r,tKe)=>{"use strict";var ug=CT(),g1=C4(),DKt=Tu(),FKt=Ao().extendFlat,ty=g1.contours;tKe.exports=FKt({carpet:{valType:"string",editType:"calc"},z:ug.z,a:ug.x,a0:ug.x0,da:ug.dx,b:ug.y,b0:ug.y0,db:ug.dy,text:ug.text,hovertext:ug.hovertext,transpose:ug.transpose,atype:ug.xtype,btype:ug.ytype,fillcolor:g1.fillcolor,autocontour:g1.autocontour,ncontours:g1.ncontours,contours:{type:ty.type,start:ty.start,end:ty.end,size:ty.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:ty.showlines,showlabels:ty.showlabels,labelfont:ty.labelfont,labelformat:ty.labelformat,operation:ty.operation,value:ty.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:g1.line.color,width:g1.line.width,dash:g1.line.dash,smoothing:g1.line.smoothing,editType:"plot"},zorder:g1.zorder},DKt("",{cLetter:"z",autoColorDflt:!1}))});var C$=ye((d2r,nKe)=>{"use strict";var rKe=Dr(),zKt=JI(),iKe=E$(),OKt=AG(),qKt=b8(),BKt=w8();nKe.exports=function(t,r,n,i){function a(u,c){return rKe.coerce(t,r,iKe,u,c)}function o(u){return rKe.coerce2(t,r,iKe,u)}if(a("carpet"),t.a&&t.b){var s=zKt(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?OKt(t,r,a,i,n,{hasHover:!1}):(qKt(t,r,a,o),BKt(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var lKe=ye((v2r,sKe)=>{"use strict";var NKt=gv(),aKe=Dr(),UKt=e8(),VKt=r8(),GKt=i8(),HKt=n8(),oKe=XV(),jKt=C$(),WKt=Y7(),XKt=hG();sKe.exports=function(t,r){var n=r._carpetTrace=WKt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){if(!r.a||!r.b){var i=t.data[n.index],a=t.data[r.index];a.a||(a.a=i.a),a.b||(a.b=i.b),jKt(a,r,r._defaultColor,t._fullLayout)}var o=ZKt(t,r);return XKt(r,r._z),o}};function ZKt(e,t){var r=t._carpetTrace,n=r.aaxis,i=r.baxis,a,o,s,l,u,c,f;n._minDtick=0,i._minDtick=0,aKe.isArray1D(t.z)&&UKt(t,n,i,"a","b",["z"]),a=t._a=t._a||t.a,l=t._b=t._b||t.b,a=a?n.makeCalcdata(t,"_a"):[],l=l?i.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,u=t.b0||0,c=t.db||1,f=t._z=VKt(t._z||t.z,t.transpose),t._emptypoints=HKt(f),GKt(f,t._emptypoints);var h=aKe.maxRowLength(f),d=t.xtype==="scaled"?"":a,v=oKe(t,d,o,s,h,n),_=t.ytype==="scaled"?"":l,b=oKe(t,_,u,c,f.length,i),p={a:v,b,z:f};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&NKt(e,t,{vals:f,containerStr:"",cLetter:"z"}),[p]}});var cKe=ye((p2r,uKe)=>{"use strict";var YKt=Dr().isArrayOrTypedArray;uKe.exports=function(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v,_,b,p=YKt(r)?"a":"b",C=p==="a"?e.aaxis:e.baxis,E=C.smoothing,A=p==="a"?e.a2i:e.b2j,L=p==="a"?r:n,x=p==="a"?n:r,k=p==="a"?t.a.length:t.b.length,M=p==="a"?t.b.length:t.a.length,g=Math.floor(p==="a"?e.b2j(x):e.a2i(x)),P=p==="a"?function(_e){return e.evalxy([],_e,g)}:function(_e){return e.evalxy([],g,_e)};E&&(o=Math.max(0,Math.min(M-2,g)),s=g-o,a=p==="a"?function(_e,Me){return e.dxydi([],_e,o,Me,s)}:function(_e,Me){return e.dxydj([],o,_e,s,Me)});var T=A(L[0]),z=A(L[1]),O=T0?Math.floor:Math.ceil,Z=O>0?Math.ceil:Math.floor,H=O>0?Math.min:Math.max,N=O>0?Math.max:Math.min,j=G(T+V),re=Z(z-V);c=P(T);var oe=[[c]];for(i=j;i*O{"use strict";var J7=Oa(),$7=w$(),pKe=T$(),sk=So(),m1=Dr(),KKt=vG(),JKt=pG(),hw=S8(),K7=L4(),$Kt=_G(),QKt=yG(),eJt=xG(),tJt=Y7(),fKe=cKe();gKe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;m1.makeTraceGroups(i,n,"contour").each(function(s){var l=J7.select(this),u=s[0],c=u.trace,f=c._carpetTrace=tJt(t,c),h=t.calcdata[f.index][0];if(!f.visible||f.visible==="legendonly")return;var d=u.a,v=u.b,_=c.contours,b=QKt(_,r,u),p=_.type==="constraint",C=_._operation,E=p?C==="="?"lines":"fill":_.coloring;function A(G){var Z=f.ab2xy(G[0],G[1],!0);return[a.c2p(Z[0]),o.c2p(Z[1])]}var L=[[d[0],v[v.length-1]],[d[d.length-1],v[v.length-1]],[d[d.length-1],v[0]],[d[0],v[0]]];KKt(b);var x=(d[d.length-1]-d[0])*1e-8,k=(v[v.length-1]-v[0])*1e-8;JKt(b,x,k);var M=b;_.type==="constraint"&&(M=$Kt(b,C)),rJt(b,A);var g,P,T,z,O=[];for(z=h.clipsegments.length-1;z>=0;z--)g=h.clipsegments[z],P=$7([],g.x,a.c2p),T=$7([],g.y,o.c2p),P.reverse(),T.reverse(),O.push(pKe(P,T,g.bicubic));var V="M"+O.join("L")+"Z";aJt(l,h.clipsegments,a,o,p,E),oJt(c,l,a,o,M,L,A,f,h,E,V),iJt(l,b,t,u,_,r,f),sk.setClipUrl(l,f._clipPathId,t)})};function rJt(e,t){var r,n,i,a,o,s,l,u,c;for(r=0;rb&&(n.max=b),n.len=n.max-n.min}function hKe(e,t,r){var n=e.getPointAtLength(t),i=e.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function dKe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function vKe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function aJt(e,t,r,n,i,a){var o,s,l,u,c=m1.ensureSingle(e,"g","contourbg"),f=c.selectAll("path").data(a==="fill"&&!i?[0]:[]);f.enter().append("path"),f.exit().remove();var h=[];for(u=0;u=0&&(d=P,_=b):Math.abs(h[1]-d[1])=0&&(d=P,_=b):m1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(_>=0)break;u+=M(h,d),h=d}if(_===t.edgepaths.length){m1.log("unclosed perimeter path");break}l=_,f=c.indexOf(l)===-1,f&&(l=c[0],u+=M(h,d)+"Z",h=null)}for(l=0;l{"use strict";yKe.exports={attributes:E$(),supplyDefaults:C$(),colorbar:C8(),calc:lKe(),plot:mKe(),style:E8(),moduleType:"trace",name:"contourcarpet",basePlotModule:ph(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var bKe=ye((y2r,xKe)=>{"use strict";xKe.exports=_Ke()});var e9=ye((_2r,MKe)=>{"use strict";var Q7=Dr().extendFlat,lk=pf(),wKe=df().axisHoverFormat,AKe=Pd().dash,lJt=i3(),SKe=HT(),uJt=SKe.INCREASING.COLOR,cJt=SKe.DECREASING.COLOR,k$=lk.line;function TKe(e){return{line:{color:Q7({},k$.color,{dflt:e}),width:k$.width,dash:AKe,editType:"style"},editType:"style"}}MKe.exports={xperiod:lk.xperiod,xperiod0:lk.xperiod0,xperiodalignment:lk.xperiodalignment,xhoverformat:wKe("x"),yhoverformat:wKe("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:Q7({},k$.width,{}),dash:Q7({},AKe,{}),editType:"style"},increasing:TKe(uJt),decreasing:TKe(cJt),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:Q7({},lJt.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:lk.zorder}});var L$=ye((x2r,EKe)=>{"use strict";var fJt=qa(),hJt=Dr();EKe.exports=function(t,r,n,i){var a=n("x"),o=n("open"),s=n("high"),l=n("low"),u=n("close");n("hoverlabel.split");var c=fJt.getComponentMethod("calendars","handleTraceDefaults");if(c(t,r,["x"],i),!!(o&&s&&l&&u)){var f=Math.min(o.length,s.length,l.length,u.length);return a&&(f=Math.min(f,hJt.minRowLength(a))),r._length=f,f}}});var LKe=ye((b2r,kKe)=>{"use strict";var dJt=Dr(),vJt=L$(),pJt=Pg(),gJt=e9();kKe.exports=function(t,r,n,i){function a(s,l){return dJt.coerce(t,r,gJt,s,l)}var o=vJt(t,r,a,i);if(!o){r.visible=!1;return}pJt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),CKe(t,r,a,"increasing"),CKe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function CKe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var P$=ye((w2r,IKe)=>{"use strict";var U5=Dr(),t9=U5._,r9=ho(),mJt=Rg(),uk=hs().BADNUM;function yJt(e,t){var r=r9.getFromId(e,t.xaxis),n=r9.getFromId(e,t.yaxis),i=xJt(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var l=PKe(e,t,o,s,n,_Jt);return t._extremes[r._id]=r9.findExtremes(r,s,{vpad:a/2}),l.length?(U5.extendFlat(l[0].t,{wHover:a/2,tickLen:i}),l):[{t:{empty:!0}}]}function _Jt(e,t,r,n){return{o:e,h:t,l:r,c:n}}function PKe(e,t,r,n,i,a){for(var o=i.makeCalcdata(t,"open"),s=i.makeCalcdata(t,"high"),l=i.makeCalcdata(t,"low"),u=i.makeCalcdata(t,"close"),c=U5.isArrayOrTypedArray(t.text),f=U5.isArrayOrTypedArray(t.hovertext),h=!0,d=null,v=!!t.xperiodalignment,_=[],b=0;bd):h=L>C,d=L;var x=a(C,E,A,L);x.pos=p,x.yc=(C+L)/2,x.i=b,x.dir=h?"increasing":"decreasing",x.x=x.pos,x.y=[A,E],v&&(x.orig_p=r[b]),c&&(x.tx=t.text[b]),f&&(x.htx=t.hovertext[b]),_.push(x)}else _.push({pos:p,empty:!0})}return t._extremes[i._id]=r9.findExtremes(i,U5.concat(l,s),{padded:!0}),_.length&&(_[0].t={labels:{open:t9(e,"open:")+" ",high:t9(e,"high:")+" ",low:t9(e,"low:")+" ",close:t9(e,"close:")+" "}}),_}function xJt(e,t,r){var n=r._minDiff;if(!n){var i=e._fullData,a=[];n=1/0;var o;for(o=0;o{"use strict";var bJt=Oa(),RKe=Dr();DKe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;RKe.makeTraceGroups(i,n,"trace ohlc").each(function(l){var u=bJt.select(this),c=l[0],f=c.t,h=c.trace;if(h.visible!==!0||f.empty){u.remove();return}var d=f.tickLen,v=u.selectAll("path").data(RKe.identity);v.enter().append("path"),v.exit().remove(),v.attr("d",function(_){if(_.empty)return"M0,0Z";var b=o.c2p(_.pos-d,!0),p=o.c2p(_.pos+d,!0),C=s?(b+p)/2:o.c2p(_.pos,!0),E=a.c2p(_.o,!0),A=a.c2p(_.h,!0),L=a.c2p(_.l,!0),x=a.c2p(_.c,!0);return"M"+b+","+E+"H"+C+"M"+C+","+A+"V"+L+"M"+p+","+x+"H"+C})})}});var OKe=ye((A2r,zKe)=>{"use strict";var I$=Oa(),wJt=So(),TJt=Ca();zKe.exports=function(t,r,n){var i=n||I$.select(t).selectAll("g.ohlclayer").selectAll("g.trace");i.style("opacity",function(a){return a[0].trace.opacity}),i.each(function(a){var o=a[0].trace;I$.select(this).selectAll("path").each(function(s){if(!s.empty){var l=o[s.dir].line;I$.select(this).style("fill","none").call(TJt.stroke,l.color).call(wJt.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var D$=ye((S2r,VKe)=>{"use strict";var R$=ho(),AJt=Dr(),i9=vf(),SJt=Ca(),MJt=Dr().fillText,qKe=HT(),EJt={increasing:qKe.INCREASING.SYMBOL,decreasing:qKe.DECREASING.SYMBOL};function CJt(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?NKe(e,t,r,n):UKe(e,t,r,n)}function BKe(e,t,r,n){var i=e.cd,a=e.xa,o=i[0].trace,s=i[0].t,l=o.type,u=l==="ohlc"?"l":"min",c=l==="ohlc"?"h":"max",f,h,d=s.bPos||0,v=function(P){return P.pos+d-t},_=s.bdPos||s.tickLen,b=s.wHover,p=Math.min(1,_/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));f=e.maxHoverDistance-p,h=e.maxSpikeDistance-p;function C(P){var T=v(P);return i9.inbox(T-b,T+b,f)}function E(P){var T=P[u],z=P[c];return T===z||i9.inbox(T-r,z-r,f)}function A(P){return(C(P)+E(P))/2}var L=i9.getDistanceFunction(n,C,E,A);if(i9.getClosest(i,L,e),e.index===!1)return null;var x=i[e.index];if(x.empty)return null;var k=x.dir,M=o[k],g=M.line.color;return SJt.opacity(g)&&M.line.width?e.color=g:e.color=M.fillcolor,e.x0=a.c2p(x.pos+d-_,!0),e.x1=a.c2p(x.pos+d+_,!0),e.xLabelVal=x.orig_p!==void 0?x.orig_p:x.pos,e.spikeDistance=A(x)*h/f,e.xSpike=a.c2p(x.pos,!0),e}function NKe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=[],u=BKe(e,t,r,n);if(!u)return[];var c=u.index,f=i[c],h=f.hi||o.hoverinfo,d=h.split("+"),v=h==="all",_=v||d.indexOf("y")!==-1;if(!_)return[];for(var b=["high","open","close","low"],p={},C=0;C"+s.labels[E]+R$.hoverLabelText(a,A,o.yhoverformat)):(x=AJt.extendFlat({},u),x.y0=x.y1=L,x.yLabelVal=A,x.yLabel=s.labels[E]+R$.hoverLabelText(a,A,o.yhoverformat),x.name="",l.push(x),p[A]=x)}return l}function UKe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=BKe(e,t,r,n);if(!l)return[];var u=l.index,c=i[u],f=l.index=c.i,h=c.dir;function d(A){return s.labels[A]+R$.hoverLabelText(a,o[A][f],o.yhoverformat)}var v=c.hi||o.hoverinfo,_=v.split("+"),b=v==="all",p=b||_.indexOf("y")!==-1,C=b||_.indexOf("text")!==-1,E=p?[d("open"),d("high"),d("low"),d("close")+" "+EJt[h]]:[];return C&&MJt(c,o,E),l.extraText=E.join("
"),l.y0=l.y1=a.c2p(c.yc,!0),[l]}VKe.exports={hoverPoints:CJt,hoverSplit:NKe,hoverOnPoints:UKe}});var F$=ye((M2r,GKe)=>{"use strict";GKe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l=n[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";HKe.exports={moduleType:"trace",name:"ohlc",basePlotModule:ph(),categories:["cartesian","svg","showLegend"],meta:{},attributes:e9(),supplyDefaults:LKe(),calc:P$().calc,plot:FKe(),style:OKe(),hoverPoints:D$().hoverPoints,selectPoints:F$()}});var XKe=ye((C2r,WKe)=>{"use strict";WKe.exports=jKe()});var O$=ye((k2r,KKe)=>{"use strict";var z$=Dr().extendFlat,ZKe=df().axisHoverFormat,c0=e9(),V5=_4();function YKe(e){return{line:{color:z$({},V5.line.color,{dflt:e}),width:V5.line.width,editType:"style"},fillcolor:V5.fillcolor,editType:"style"}}KKe.exports={xperiod:c0.xperiod,xperiod0:c0.xperiod0,xperiodalignment:c0.xperiodalignment,xhoverformat:ZKe("x"),yhoverformat:ZKe("y"),x:c0.x,open:c0.open,high:c0.high,low:c0.low,close:c0.close,line:{width:z$({},V5.line.width,{}),editType:"style"},increasing:YKe(c0.increasing.line.color.dflt),decreasing:YKe(c0.decreasing.line.color.dflt),text:c0.text,hovertext:c0.hovertext,whiskerwidth:z$({},V5.whiskerwidth,{dflt:0}),hoverlabel:c0.hoverlabel,zorder:V5.zorder}});var QKe=ye((L2r,$Ke)=>{"use strict";var kJt=Dr(),LJt=Ca(),PJt=L$(),IJt=Pg(),RJt=O$();$Ke.exports=function(t,r,n,i){function a(s,l){return kJt.coerce(t,r,RJt,s,l)}var o=PJt(t,r,a,i);if(!o){r.visible=!1;return}IJt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),JKe(t,r,a,"increasing"),JKe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function JKe(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",LJt.addOpacity(i,.5))}});var iJe=ye((P2r,rJe)=>{"use strict";var eJe=Dr(),tJe=ho(),DJt=Rg(),FJt=P$().calcCommon;rJe.exports=function(e,t){var r=e._fullLayout,n=tJe.getFromId(e,t.xaxis),i=tJe.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=DJt(t,n,"x",a).vals,s=FJt(e,t,a,o,i,zJt);return s.length?(eJe.extendFlat(s[0].t,{num:r._numBoxes,dPos:eJe.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function zJt(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var aJe=ye((I2r,nJe)=>{"use strict";nJe.exports={moduleType:"trace",name:"candlestick",basePlotModule:ph(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:O$(),layoutAttributes:x4(),supplyLayoutDefaults:jI().supplyLayoutDefaults,crossTraceCalc:XI().crossTraceCalc,supplyDefaults:QKe(),calc:iJe(),plot:ZI().plot,layerName:"boxlayer",style:YI().style,hoverPoints:D$().hoverPoints,selectPoints:F$()}});var sJe=ye((R2r,oJe)=>{"use strict";oJe.exports=aJe()});var B$=ye((D2r,lJe)=>{"use strict";var a9=Dr(),OJt=ym(),n9=a9.deg2rad,q$=a9.rad2deg;lJe.exports=function(t,r,n){switch(OJt(t,n),t._id){case"x":case"radialaxis":qJt(t,r);break;case"angularaxis":UJt(t,r);break}};function qJt(e,t){var r=t._subplot;e.setGeometry=function(){var n=e._rl[0],i=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(i-n),s=a/o,l=n>i?function(u){return u<=0}:function(u){return u>=0};e.c2g=function(u){var c=e.c2l(u)-n;return(l(c)?c:0)+s},e.g2c=function(u){return e.l2c(u+n-s)},e.g2p=function(u){return u*o},e.c2p=function(u){return e.g2p(e.c2g(u))}}}function BJt(e,t){return t==="degrees"?n9(e):e}function NJt(e,t){return t==="degrees"?q$(e):e}function UJt(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return BJt(n(a),o)},e.c2d=function(a,o){return i(NJt(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],l=a._length,u,c,f=function(b){return e.d2c(b,a.thetaunit)};if(s)for(u=new Array(l),c=0;c{"use strict";uJe.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}});var l9=ye((z2r,vJe)=>{"use strict";var dw=Dr(),cJe=EM().tester,N$=dw.findIndexOfMin,hJe=dw.isAngleInsideSector,VJt=dw.angleDelta,fJe=dw.angleDist;function GJt(e,t,r,n,i){if(!hJe(t,n))return!1;var a,o;r[0]0?o:1/0},n=N$(t,r),i=dw.mod(n+1,t.length);return[t[n],t[i]]}function s9(e){return Math.abs(e)>1e-10?e:0}function U$(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function pJe(e){return e<0?-1:e>0?1:0}function H5(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var n=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/n,2*r/n]}function j5(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function gJe(e,t){return t*e.radius}function JJt(e,t,r,n){var i=j5(e,H5([r,t])),a=i[0],o=i[1],s=j5(e,H5([n,t])),l=s[0],u=s[1];if(t===0)return["M"+a+","+o,"L"+l+","+u].join(" ");var c=gJe(e,1/Math.abs(t));return["M"+a+","+o,"A"+c+","+c+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function $Jt(e,t,r,n){var i=gJe(e,1/(t+1)),a=j5(e,H5([t,r])),o=a[0],s=a[1],l=j5(e,H5([t,n])),u=l[0],c=l[1];if(pJe(r)!==pJe(n)){var f=j5(e,H5([t,0])),h=f[0],d=f[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var vw=Oa(),QJt=cd(),gw=qa(),Xc=Dr(),ry=Xc.strRotate,xd=Xc.strTranslate,G$=Ca(),ck=So(),e$t=Mc(),dp=ho(),t$t=ym(),r$t=B$(),i$t=Tg().doAutoRange,y1=qN(),f9=yv(),yJe=vf(),n$t=Mb(),a$t=zf().prepSelect,o$t=zf().selectOnClick,H$=zf().clearOutline,_Je=Ag(),xJe=dM(),bJe=bM().redrawReglTraces,s$t=Kh().MID_SHIFT,kx=o9(),_1=l9(),h9=V$(),u9=h9.smith,l$t=h9.reactanceArc,u$t=h9.resistanceArc,c9=h9.smithTransform,c$t=Xc._,wJe=Xc.mod,Lx=Xc.deg2rad,pw=Xc.rad2deg;function TJe(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=e._fullLayout,i="clip"+n._uid+t;this.clipIds.forTraces=i+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var Nd=TJe.prototype;MJe.exports=function(t,r,n){return new TJe(t,r,n)};Nd.plot=function(e,t){for(var r=this,n=t[r.id],i=!1,a=0;ab?(p=u,C=u*b,L=(c-C)/i.h/2,E=[s[0],s[1]],A=[l[0]+L,l[1]-L]):(p=c/b,C=c,L=(u-p)/i.w/2,E=[s[0]+L,s[1]-L],A=[l[0],l[1]]),r.xLength2=p,r.yLength2=C,r.xDomain2=E,r.yDomain2=A;var x=r.xOffset2=i.l+i.w*E[0],k=r.yOffset2=i.t+i.h*(1-A[1]),M=r.radius=p/d,g=r.innerRadius=r.getHole(t)*M,P=r.cx=x-M*h[0],T=r.cy=k+M*h[3],z=r.cxx=P-x,O=r.cyy=T-k,V=a.side,G;V==="counterclockwise"?(G=V,V="top"):V==="clockwise"&&(G=V,V="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:V,_trueSide:G,domain:[g/i.w,M/i.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:E}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:A});var Z=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",Z).attr("transform",xd(z,O)),n.frontplot.attr("transform",xd(x,k)).call(ck.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",Z).attr("transform",xd(P,T)).call(G$.fill,t.bgcolor)};Nd.mockAxis=function(e,t,r,n){var i=Xc.extendFlat({},r,n);return r$t(i,t,e),i};Nd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Xc.extendFlat({type:"linear"},r);t$t(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var l=n.sectorBBox,u=s[a],c=n.radialAxis._rl,f=(c[1]-c[0])/(1-n.getHole(t));o.range=[l[u[0]]*f,l[u[1]]*f]},o.isPtWithinRange=a==="x"&&!i?function(l){return n.isPtInside(l)}:function(){return!0},o.setRange(),o.setScale(),o};Nd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);i$t(n,i);var o=i.range;if(a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")],i.minallowed!==void 0){var s=i.r2l(i.minallowed);i._rl[0]>i._rl[1]?i._rl[1]=Math.max(i._rl[1],s):i._rl[0]=Math.max(i._rl[0],s)}if(i.maxallowed!==void 0){var l=i.r2l(i.maxallowed);i._rl[0]90&&c<=270&&(f.tickangle=180);var v=d?function(M){var g=c9(r,u9([M.x,0]));return xd(g[0]-s,g[1]-l)}:function(M){return xd(f.l2p(M.x)+o,0)},_=d?function(M){return u$t(r,M.x,-1/0,1/0)}:function(M){return r.pathArc(f.r2p(M.x)+o)},b=AJe(u);if(r.radialTickLayout!==b&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=b),h){f.setScale();var p=0,C=d?(f.tickvals||[]).filter(function(M){return M>=0}).map(function(M){return dp.tickText(f,M,!0,!1)}):dp.calcTicks(f),E=d?C:dp.clipEnds(f,C),A=dp.getTickSigns(f)[2];d&&((f.ticks==="top"&&f.side==="bottom"||f.ticks==="bottom"&&f.side==="top")&&(A=-A),f.ticks==="top"&&f.side==="top"&&(p=-f.ticklen),f.ticks==="bottom"&&f.side==="bottom"&&(p=f.ticklen)),dp.drawTicks(n,f,{vals:C,layer:i["radial-axis"],path:dp.makeTickPath(f,0,A),transFn:v,crisp:!1}),dp.drawGrid(n,f,{vals:E,layer:i["radial-grid"],path:_,transFn:Xc.noop,crisp:!1}),dp.drawLabels(n,f,{vals:C,layer:i["radial-axis"],transFn:v,labelFns:dp.makeLabelFns(f,p)})}var L=r.radialAxisAngle=r.vangles?pw(SJe(Lx(u.angle),r.vangles)):u.angle,x=xd(s,l),k=x+ry(-L);fk(i["radial-axis"],h&&(u.showticklabels||u.ticks),{transform:k}),fk(i["radial-grid"],h&&u.showgrid,{transform:d?"":x}),fk(i["radial-line"].select("line"),h&&u.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:k}).attr("stroke-width",u.linewidth).call(G$.stroke,u.linecolor)};Nd.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,l=n.getRadial(t),u=n.id+"title",c=0;if(l.title){var f=ck.bBox(n.layers["radial-axis"].node()).height,h=l.title.font.size,d=l.side;c=d==="top"?h:d==="counterclockwise"?-(f+h*.4):f+h*.8}var v=r!==void 0?r:n.radialAxisAngle,_=Lx(v),b=Math.cos(_),p=Math.sin(_),C=o+a/2*b+c*p,E=s-a/2*p+c*b;n.layers["radial-axis-title"]=n$t.draw(i,u,{propContainer:l,propName:n.id+".radialaxis.title.text",placeholder:c$t(i,"Click to enter radial axis title"),attributes:{x:C,y:E,"text-anchor":"middle"},transform:{rotate:-v}})}};Nd.updateAngularAxis=function(e,t){var r=this,n=r.gd,i=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,l=r.cy,u=r.getAngular(t),c=r.angularAxis,f=r.isSmith;f||(r.fillViewInitialKey("angularaxis.rotation",u.rotation),c.setGeometry(),c.setScale());var h=f?function(g){var P=c9(r,u9([0,g.x]));return Math.atan2(P[0]-s,P[1]-l)-Math.PI/2}:function(g){return c.t2g(g.x)};c.type==="linear"&&c.thetaunit==="radians"&&(c.tick0=pw(c.tick0),c.dtick=pw(c.dtick));var d=function(g){return xd(s+a*Math.cos(g),l-a*Math.sin(g))},v=f?function(g){var P=c9(r,u9([0,g.x]));return xd(P[0],P[1])}:function(g){return d(h(g))},_=f?function(g){var P=c9(r,u9([0,g.x])),T=Math.atan2(P[0]-s,P[1]-l)-Math.PI/2;return xd(P[0],P[1])+ry(-pw(T))}:function(g){var P=h(g);return d(P)+ry(-pw(P))},b=f?function(g){return l$t(r,g.x,0,1/0)}:function(g){var P=h(g),T=Math.cos(P),z=Math.sin(P);return"M"+[s+o*T,l-o*z]+"L"+[s+a*T,l-a*z]},p=dp.makeLabelFns(c,0),C=p.labelStandoff,E={};E.xFn=function(g){var P=h(g);return Math.cos(P)*C},E.yFn=function(g){var P=h(g),T=Math.sin(P)>0?.2:1;return-Math.sin(P)*(C+g.fontSize*T)+Math.abs(Math.cos(P))*(g.fontSize*s$t)},E.anchorFn=function(g){var P=h(g),T=Math.cos(P);return Math.abs(T)<.1?"middle":T>0?"start":"end"},E.heightFn=function(g,P,T){var z=h(g);return-.5*(1+Math.sin(z))*T};var A=AJe(u);r.angularTickLayout!==A&&(i["angular-axis"].selectAll("."+c._id+"tick").remove(),r.angularTickLayout=A);var L=f?[1/0].concat(c.tickvals||[]).map(function(g){return dp.tickText(c,g,!0,!1)}):dp.calcTicks(c);f&&(L[0].text="\u221E",L[0].fontSize*=1.75);var x;if(t.gridshape==="linear"?(x=L.map(h),Xc.angleDelta(x[0],x[1])<0&&(x=x.slice().reverse())):x=null,r.vangles=x,c.type==="category"&&(L=L.filter(function(g){return Xc.isAngleInsideSector(h(g),r.sectorInRad)})),c.visible){var k=c.ticks==="inside"?-1:1,M=(c.linewidth||1)/2;dp.drawTicks(n,c,{vals:L,layer:i["angular-axis"],path:"M"+k*M+",0h"+k*c.ticklen,transFn:_,crisp:!1}),dp.drawGrid(n,c,{vals:L,layer:i["angular-grid"],path:b,transFn:Xc.noop,crisp:!1}),dp.drawLabels(n,c,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:v,labelFns:E})}fk(i["angular-line"].select("path"),u.showline,{d:r.pathSubplot(),transform:xd(s,l)}).attr("stroke-width",u.linewidth).call(G$.stroke,u.linecolor)};Nd.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};Nd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=kx.MINZOOM,s=kx.OFFEDGE,l=t.radius,u=t.innerRadius,c=t.cx,f=t.cy,h=t.cxx,d=t.cyy,v=t.sectorInRad,_=t.vangles,b=t.radialAxis,p=_1.clampTiny,C=_1.findXYatLength,E=_1.findEnclosingVertexAngles,A=kx.cornerHalfWidth,L=kx.cornerLen/2,x,k,M=y1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");vw.select(M).attr("d",t.pathSubplot()).attr("transform",xd(c,f)),M.onmousemove=function(ce){yJe.hover(n,ce,t.id),n._fullLayout._lasthover=M,n._fullLayout._hoversubplot=t.id},M.onmouseout=function(ce){n._dragging||f9.unhover(n,ce)};var g={element:M,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,T,z,O,V,G,Z,H,N;function j(ce,Ze){return Math.sqrt(ce*ce+Ze*Ze)}function re(ce,Ze){return j(ce-h,Ze-d)}function oe(ce,Ze){return Math.atan2(d-Ze,ce-h)}function _e(ce,Ze){return[ce*Math.cos(Ze),ce*Math.sin(-Ze)]}function Me(ce,Ze){if(ce===0)return t.pathSector(2*A);var ct=L/ce,pt=Ze-ct,Wt=Ze+ct,st=Math.max(0,Math.min(ce,l)),lt=st-A,Gt=st+A;return"M"+_e(lt,pt)+"A"+[lt,lt]+" 0,0,0 "+_e(lt,Wt)+"L"+_e(Gt,Wt)+"A"+[Gt,Gt]+" 0,0,1 "+_e(Gt,pt)+"Z"}function ke(ce,Ze,ct){if(ce===0)return t.pathSector(2*A);var pt=_e(ce,Ze),Wt=_e(ce,ct),st=p((pt[0]+Wt[0])/2),lt=p((pt[1]+Wt[1])/2),Gt,Nt;if(st&<){var $t=lt/st,sr=-1/$t,wr=C(A,$t,st,lt);Gt=C(L,sr,wr[0][0],wr[0][1]),Nt=C(L,sr,wr[1][0],wr[1][1])}else{var ur,Qe;lt?(ur=L,Qe=A):(ur=A,Qe=L),Gt=[[st-ur,lt-Qe],[st+ur,lt-Qe]],Nt=[[st-ur,lt+Qe],[st+ur,lt+Qe]]}return"M"+Gt.join("L")+"L"+Nt.reverse().join("L")+"Z"}function me(){z=null,O=null,V=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];Z=QJt(ce.bgcolor).getLuminance(),H=y1.makeZoombox(a,Z,c,f,V),H.attr("fill-rule","evenodd"),N=y1.makeCorners(a,c,f),H$(n)}function ie(ce,Ze){return Ze=Math.max(Math.min(Ze,l),u),ceo?(ce-1&&ce===1&&o$t(Ze,n,[t.xaxis],[t.yaxis],t.id,g),ct.indexOf("event")>-1&&yJe.click(n,Ze,t.id)}g.prepFn=function(ce,Ze,ct){var pt=n._fullLayout.dragmode,Wt=M.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var st=n._fullLayout._invTransform;x=n._fullLayout._invScaleX,k=n._fullLayout._invScaleY;var lt=Xc.apply3DTransform(st)(Ze-Wt.left,ct-Wt.top);if(P=lt[0],T=lt[1],_){var Gt=_1.findPolygonOffset(l,v[0],v[1],_);P+=h+Gt[0],T+=d+Gt[1]}switch(pt){case"zoom":g.clickFn=Fe,r||(_?g.moveFn=De:g.moveFn=Le,g.doneFn=Pe,me(ce,Ze,ct));break;case"select":case"lasso":a$t(ce,Ze,ct,g,pt);break}},f9.init(g)};Nd.updateRadialDrag=function(e,t,r){var n=this,i=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,l=n.cx,u=n.cy,c=n.radialAxis,f=kx.radialDragBoxSize,h=f/2;if(!c.visible)return;var d=Lx(n.radialAxisAngle),v=c._rl,_=v[0],b=v[1],p=v[r],C=.75*(v[1]-v[0])/(1-n.getHole(t))/o,E,A,L;r?(E=l+(o+h)*Math.cos(d),A=u-(o+h)*Math.sin(d),L="radialdrag"):(E=l+(s-h)*Math.cos(d),A=u-(s-h)*Math.sin(d),L="radialdrag-inner");var x=y1.makeRectDragger(a,L,"crosshair",-h,-h,f,f),k={element:x,gd:i};e.dragmode===!1&&(k.dragmode=!1),fk(vw.select(x),c.visible&&s0!=(r?P>_:P=90||i>90&&a>=450?d=1:s<=0&&u<=0?d=0:d=Math.max(s,u),i<=180&&a>=180||i>180&&a>=540?c=-1:o>=0&&l>=0?c=0:c=Math.min(o,l),i<=270&&a>=270||i>270&&a>=630?f=-1:s>=0&&u>=0?f=0:f=Math.min(s,u),a>=360?h=1:o<=0&&l<=0?h=0:h=Math.max(o,l),[c,f,h,d]}function SJe(e,t){var r=function(i){return Xc.angleDist(e,i)},n=Xc.findIndexOfMin(t,r);return t[n]}function fk(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var W$=ye((B2r,IJe)=>{"use strict";var h$t=Ch(),ss=Rd(),d$t=kc().attributes,f0=Dr().extendFlat,EJe=mc().overrideAll,CJe=EJe({color:ss.color,showline:f0({},ss.showline,{dflt:!0}),linecolor:ss.linecolor,linewidth:ss.linewidth,showgrid:f0({},ss.showgrid,{dflt:!0}),gridcolor:ss.gridcolor,gridwidth:ss.gridwidth,griddash:ss.griddash},"plot","from-root"),kJe=EJe({tickmode:ss.minor.tickmode,nticks:ss.nticks,tick0:ss.tick0,dtick:ss.dtick,tickvals:ss.tickvals,ticktext:ss.ticktext,ticks:ss.ticks,ticklen:ss.ticklen,tickwidth:ss.tickwidth,tickcolor:ss.tickcolor,ticklabelstep:ss.ticklabelstep,showticklabels:ss.showticklabels,labelalias:ss.labelalias,minorloglabels:ss.minorloglabels,showtickprefix:ss.showtickprefix,tickprefix:ss.tickprefix,showticksuffix:ss.showticksuffix,ticksuffix:ss.ticksuffix,showexponent:ss.showexponent,exponentformat:ss.exponentformat,minexponent:ss.minexponent,separatethousands:ss.separatethousands,tickfont:ss.tickfont,tickangle:ss.tickangle,tickformat:ss.tickformat,tickformatstops:ss.tickformatstops,layer:ss.layer},"plot","from-root"),LJe={visible:f0({},ss.visible,{dflt:!0}),type:f0({},ss.type,{values:["-","linear","log","date","category"]}),autotypenumbers:ss.autotypenumbers,autorangeoptions:{minallowed:ss.autorangeoptions.minallowed,maxallowed:ss.autorangeoptions.maxallowed,clipmin:ss.autorangeoptions.clipmin,clipmax:ss.autorangeoptions.clipmax,include:ss.autorangeoptions.include,editType:"plot"},autorange:f0({},ss.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:f0({},ss.minallowed,{editType:"plot"}),maxallowed:f0({},ss.maxallowed,{editType:"plot"}),range:f0({},ss.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:ss.categoryorder,categoryarray:ss.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:ss.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:f0({},ss.title.text,{editType:"plot",dflt:""}),font:f0({},ss.title.font,{editType:"plot"}),editType:"plot"},hoverformat:ss.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(LJe,CJe,kJe);var PJe={visible:f0({},ss.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:ss.autotypenumbers,categoryorder:ss.categoryorder,categoryarray:ss.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:ss.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(PJe,CJe,kJe);IJe.exports={domain:d$t({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:h$t.background},radialaxis:LJe,angularaxis:PJe,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var zJe=ye((N2r,FJe)=>{"use strict";var d9=Dr(),v$t=Ca(),p$t=pl(),g$t=C_(),m$t=Id().getSubplotData,y$t=xb(),_$t=T3(),x$t=e_(),b$t=t_(),w$t=iI(),T$t=e4(),A$t=gB(),S$t=L3(),DJe=W$(),M$t=B$(),v9=o9(),RJe=v9.axisNames;function E$t(e,t,r,n){var i=r("bgcolor");n.bgColor=v$t.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=m$t(n.fullData,v9.name,n.id),s=n.layoutOut,l;function u(H,N){return r(l+"."+H,N)}for(var c=0;c{"use strict";var k$t=Id().getSubplotCalcData,L$t=Dr().counterRegex,P$t=j$(),qJe=o9(),BJe=qJe.attr,mw=qJe.name,OJe=L$t(mw),NJe={};NJe[BJe]={valType:"subplotid",dflt:mw,editType:"calc"};function I$t(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[mw],i=0;i{"use strict";var D$t=Qo().hovertemplateAttrs,F$t=Qo().texttemplateAttrs,g9=Ao().extendFlat,z$t=Cg(),h0=pf(),O$t=Gl(),W5=h0.line;VJe.exports={mode:h0.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:h0.text,texttemplate:F$t({editType:"plot"},{keys:["r","theta","text"]}),hovertext:h0.hovertext,line:{color:W5.color,width:W5.width,dash:W5.dash,backoff:W5.backoff,shape:g9({},W5.shape,{values:["linear","spline"]}),smoothing:W5.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:g9({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:g9({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:z$t(),hoverinfo:g9({},O$t.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:D$t(),selected:h0.selected,unselected:h0.unselected}});var y9=ye((G2r,jJe)=>{"use strict";var m9=Dr(),X5=Ru(),q$t=$p(),B$t=D0(),GJe=$3(),N$t=F0(),U$t=Ig(),V$t=Sm().PTS_LINESONLY,G$t=hk();function H$t(e,t,r,n){function i(s,l){return m9.coerce(e,t,G$t,s,l)}var a=HJe(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var j$t=Dr(),WJe=ho();XJe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=n[r.subplot],o=a.radialaxis,s=a.angularaxis);var l=o.c2l(t.r);i.rLabel=WJe.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?j$t.rad2deg(t.theta):t.theta;return i.thetaLabel=WJe.tickText(s,u,!0).text,i}});var KJe=ye((j2r,YJe)=>{"use strict";var ZJe=Eo(),W$t=hs().BADNUM,X$t=ho(),Z$t=z0(),Y$t=Cm(),K$t=O0(),J$t=q0().calcMarkerSize;YJe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=a.makeCalcdata(r,"r"),l=o.makeCalcdata(r,"theta"),u=r._length,c=new Array(u),f=0;f{"use strict";var $$t=nT(),JJe=hs().BADNUM;$Je.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=r.radialAxis,u=r.angularAxis,c=0;c{"use strict";var Q$t=lT();function eQt(e,t,r,n){var i=Q$t(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,e$e(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function e$e(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["r","theta","text"]),f.indexOf("r")!==-1&&c(i,n.rLabel),f.indexOf("theta")!==-1&&c(a,n.thetaLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}t$e.exports={hoverPoints:eQt,makeHoverPointText:e$e}});var i$e=ye((Z2r,r$e)=>{"use strict";r$e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:p9(),categories:["polar","symbols","showLegend","scatter-like"],attributes:hk(),supplyDefaults:y9().supplyDefaults,colorbar:$d(),formatLabels:_9(),calc:KJe(),plot:QJe(),style:op().style,styleOnSelect:op().styleOnSelect,hoverPoints:x9().hoverPoints,selectPoints:uT(),meta:{}}});var a$e=ye((Y2r,n$e)=>{"use strict";n$e.exports=i$e()});var X$=ye((K2r,o$e)=>{"use strict";var Up=hk(),x1=lC(),tQt=Qo().texttemplateAttrs;o$e.exports={mode:Up.mode,r:Up.r,theta:Up.theta,r0:Up.r0,dr:Up.dr,theta0:Up.theta0,dtheta:Up.dtheta,thetaunit:Up.thetaunit,text:Up.text,texttemplate:tQt({editType:"plot"},{keys:["r","theta","text"]}),hovertext:Up.hovertext,hovertemplate:Up.hovertemplate,line:{color:x1.line.color,width:x1.line.width,dash:x1.line.dash,editType:"calc"},connectgaps:x1.connectgaps,marker:x1.marker,fill:x1.fill,fillcolor:x1.fillcolor,textposition:x1.textposition,textfont:x1.textfont,hoverinfo:Up.hoverinfo,selected:Up.selected,unselected:Up.unselected}});var u$e=ye((J2r,l$e)=>{"use strict";var s$e=Dr(),Z$=Ru(),rQt=y9().handleRThetaDefaults,iQt=$p(),nQt=D0(),aQt=F0(),oQt=Ig(),sQt=Sm().PTS_LINESONLY,lQt=X$();l$e.exports=function(t,r,n,i){function a(s,l){return s$e.coerce(t,r,lQt,s,l)}var o=rQt(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var uQt=_9();c$e.exports=function(t,r,n){var i=t.i;return"r"in t||(t.r=r._r[i]),"theta"in t||(t.theta=r._theta[i]),uQt(t,r,n)}});var d$e=ye((Q2r,h$e)=>{"use strict";var cQt=z0(),fQt=q0().calcMarkerSize,hQt=Y2(),dQt=ho(),vQt=ox().TOO_MANY_POINTS;h$e.exports=function(t,r){var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=r._r=a.makeCalcdata(r,"r"),l=r._theta=o.makeCalcdata(r,"theta"),u=r._length,c={};u{"use strict";var pQt=qF(),gQt=x9().makeHoverPointText;function mQt(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,l=pQt.hoverPoints(e,t,r,n);if(!(!l||l[0].index===!1)){var u=l[0];if(u.index===void 0)return l;var c=e.subplot,f=u.cd[u.index],h=u.trace;if(f.r=o[u.index],f.theta=s[u.index],!!c.isPtInside(f))return u.xLabelVal=void 0,u.yLabelVal=void 0,gQt(f,h,c,u),l}}v$e.exports={hoverPoints:mQt}});var m$e=ye((twr,g$e)=>{"use strict";g$e.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:p9(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:X$(),supplyDefaults:u$e(),colorbar:$d(),formatLabels:f$e(),calc:d$e(),hoverPoints:p$e().hoverPoints,selectPoints:oY(),meta:{}}});var y$e=ye((rwr,Y$)=>{"use strict";var yQt=UF(),_Qt=Eo(),xQt=cK(),bQt=iY(),b9=Y2(),w9=Dr(),wQt=ox().TOO_MANY_POINTS,TQt={};Y$.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=bQt(t,r);return n.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var l=s[0],u=l.trace,c=l.t,f=u._length,h=c.r,d=c.theta,v=c.opts,_,b=h.slice(),p=d.slice();for(_=0;_=wQt&&(v.marker.cluster=c.tree),v.marker&&(v.markerSel.positions=v.markerUnsel.positions=v.marker.positions=C),v.line&&C.length>1&&w9.extendFlat(v.line,b9.linePositions(t,u,C)),v.text&&(w9.extendFlat(v.text,{positions:C},b9.textPosition(t,u,v.text,v.marker)),w9.extendFlat(v.textSel,{positions:C},b9.textPosition(t,u,v.text,v.markerSel)),w9.extendFlat(v.textUnsel,{positions:C},b9.textPosition(t,u,v.text,v.markerUnsel))),v.fill&&!o.fill2d&&(o.fill2d=!0),v.marker&&!o.scatter2d&&(o.scatter2d=!0),v.line&&!o.line2d&&(o.line2d=!0),v.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(v.line),o.fillOptions.push(v.fill),o.markerOptions.push(v.marker),o.markerSelectedOptions.push(v.markerSel),o.markerUnselectedOptions.push(v.markerUnsel),o.textOptions.push(v.text),o.textSelectedOptions.push(v.textSel),o.textUnselectedOptions.push(v.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),c.x=E,c.y=A,c.rawx=E,c.rawy=A,c.r=h,c.theta=d,c.positions=C,c._scene=o,c.index=o.count,o.count++}}),xQt(t,r,n)}};Y$.exports.reglPrecompiled=TQt});var b$e=ye((iwr,x$e)=>{"use strict";var _$e=m$e();_$e.plot=y$e();x$e.exports=_$e});var T$e=ye((nwr,w$e)=>{"use strict";w$e.exports=b$e()});var K$=ye((awr,A$e)=>{"use strict";var AQt=Qo().hovertemplateAttrs,Z5=Ao().extendFlat,Px=hk(),Ix=Lm();A$e.exports={r:Px.r,theta:Px.theta,r0:Px.r0,dr:Px.dr,theta0:Px.theta0,dtheta:Px.dtheta,thetaunit:Px.thetaunit,base:Z5({},Ix.base,{}),offset:Z5({},Ix.offset,{}),width:Z5({},Ix.width,{}),text:Z5({},Ix.text,{}),hovertext:Z5({},Ix.hovertext,{}),marker:SQt(),hoverinfo:Px.hoverinfo,hovertemplate:AQt(),selected:Ix.selected,unselected:Ix.unselected};function SQt(){var e=Z5({},Ix.marker);return delete e.cornerradius,e}});var J$=ye((owr,S$e)=>{"use strict";S$e.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var C$e=ye((swr,E$e)=>{"use strict";var M$e=Dr(),MQt=y9().handleRThetaDefaults,EQt=BI(),CQt=K$();E$e.exports=function(t,r,n,i){function a(s,l){return M$e.coerce(t,r,CQt,s,l)}var o=MQt(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),EQt(t,r,a,n,i),M$e.coerceSelectionMarkerOpacity(r,a)}});var L$e=ye((lwr,k$e)=>{"use strict";var kQt=Dr(),LQt=J$();k$e.exports=function(e,t,r){var n={},i;function a(l,u){return kQt.coerce(e[i]||{},t[i],LQt,l,u)}for(var o=0;o{"use strict";var P$e=pv().hasColorscale,I$e=gv(),PQt=Dr().isArrayOrTypedArray,IQt=p4(),RQt=Hb().setGroupPositions,DQt=O0(),FQt=qa().traceIs,zQt=Dr().extendFlat;function OQt(e,t){for(var r=e._fullLayout,n=t.subplot,i=r[n].radialaxis,a=r[n].angularaxis,o=i.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),l=t._length,u=new Array(l),c=o,f=s,h=0;h{"use strict";var D$e=Oa(),T9=Eo(),Y5=Dr(),BQt=So(),Q$=l9();F$e.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=NQt(r),c=r.layers.frontplot.select("g.barlayer");Y5.makeTraceGroups(c,n,"trace bars").each(function(){var f=D$e.select(this),h=Y5.ensureSingle(f,"g","points"),d=h.selectAll("g.point").data(Y5.identity);d.enter().append("g").style("vector-effect",i?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(v){var _=D$e.select(this),b=v.rp0=s.c2p(v.s0),p=v.rp1=s.c2p(v.s1),C=v.thetag0=l.c2g(v.p0),E=v.thetag1=l.c2g(v.p1),A;if(!T9(b)||!T9(p)||!T9(C)||!T9(E)||b===p||C===E)A="M0,0Z";else{var L=s.c2g(v.s1),x=(C+E)/2;v.ct=[a.c2p(L*Math.cos(x)),o.c2p(L*Math.sin(x))],A=u(b,p,C,E)}Y5.ensureSingle(_,"path").attr("d",A)}),BQt.setClipUrl(f,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function NQt(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,l;Y5.angleDelta(a,o)>0?(s=a,l=o):(s=o,l=a);var u=Q$.findEnclosingVertexAngles(s,e.vangles)[0],c=Q$.findEnclosingVertexAngles(l,e.vangles)[1],f=[u,(s+l)/2,c];return Q$.pathPolygonAnnulus(n,i,s,l,f,t,r)}:function(n,i,a,o){return Y5.pathAnnulus(n,i,a,o,t,r)}}});var q$e=ye((fwr,O$e)=>{"use strict";var UQt=vf(),eQ=Dr(),VQt=AT().getTraceColor,GQt=eQ.fillText,HQt=x9().makeHoverPointText,jQt=l9().isPtInsidePolygon;O$e.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s=o.radialAxis,l=o.angularAxis,u=o.vangles,c=u?jQt:eQ.isPtInsideSector,f=t.maxHoverDistance,h=l._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+n*n))),v=Math.atan2(n,r);s.range[0]>s.range[1]&&(v+=Math.PI);var _=function(E){return c(d,v,[E.rp0,E.rp1],[E.thetag0,E.thetag1],u)?f+Math.min(1,Math.abs(E.thetag1-E.thetag0)/h)-1+(E.rp1-d)/(E.rp1-E.rp0)-1:1/0};if(UQt.getClosest(i,_,t),t.index!==!1){var b=t.index,p=i[b];t.x0=t.x1=p.ct[0],t.y0=t.y1=p.ct[1];var C=eQ.extendFlat({},p,{r:p.s,theta:p.p});return GQt(p,a,t),HQt(C,a,o,t),t.hovertemplate=a.hovertemplate,t.color=VQt(a,p),t.xLabelVal=t.yLabelVal=void 0,p.s<0&&(t.idealAlign="left"),[t]}}});var N$e=ye((hwr,B$e)=>{"use strict";B$e.exports={moduleType:"trace",name:"barpolar",basePlotModule:p9(),categories:["polar","bar","showLegend"],attributes:K$(),layoutAttributes:J$(),supplyDefaults:C$e(),supplyLayoutDefaults:L$e(),calc:$$().calc,crossTraceCalc:$$().crossTraceCalc,plot:z$e(),colorbar:$d(),formatLabels:_9(),style:U0().style,styleOnSelect:U0().styleOnSelect,hoverPoints:q$e(),selectPoints:ST(),meta:{}}});var V$e=ye((dwr,U$e)=>{"use strict";U$e.exports=N$e()});var tQ=ye((vwr,G$e)=>{"use strict";G$e.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var rQ=ye((pwr,X$e)=>{"use strict";var WQt=Ch(),Nf=Rd(),XQt=kc().attributes,Rx=Dr().extendFlat,H$e=mc().overrideAll,j$e=H$e({color:Nf.color,showline:Rx({},Nf.showline,{dflt:!0}),linecolor:Nf.linecolor,linewidth:Nf.linewidth,showgrid:Rx({},Nf.showgrid,{dflt:!0}),gridcolor:Nf.gridcolor,gridwidth:Nf.gridwidth,griddash:Nf.griddash},"plot","from-root"),W$e=H$e({ticklen:Nf.ticklen,tickwidth:Rx({},Nf.tickwidth,{dflt:2}),tickcolor:Nf.tickcolor,showticklabels:Nf.showticklabels,labelalias:Nf.labelalias,showtickprefix:Nf.showtickprefix,tickprefix:Nf.tickprefix,showticksuffix:Nf.showticksuffix,ticksuffix:Nf.ticksuffix,tickfont:Nf.tickfont,tickformat:Nf.tickformat,hoverformat:Nf.hoverformat,layer:Nf.layer},"plot","from-root"),ZQt=Rx({visible:Rx({},Nf.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Rx({},Nf.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},j$e,W$e),YQt=Rx({visible:Rx({},Nf.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:Nf.ticks,editType:"calc"},j$e,W$e);X$e.exports={domain:XQt({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:WQt.background},realaxis:ZQt,imaginaryaxis:YQt,editType:"calc"}});var K$e=ye((gwr,Y$e)=>{"use strict";var K5=Dr(),KQt=Ca(),JQt=pl(),$Qt=C_(),QQt=Id().getSubplotData,eer=t_(),ter=e_(),rer=e4(),ier=ym(),J5=rQ(),iQ=tQ(),Z$e=iQ.axisNames,ner=oer(function(e){return K5.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function aer(e,t,r,n){var i=r("bgcolor");n.bgColor=KQt.combine(i,n.paper_bgcolor);var a=QQt(n.fullData,iQ.name,n.id),o=n.layoutOut,s;function l(L,x){return r(s+"."+L,x)}for(var u=0;u{"use strict";var ser=Id().getSubplotCalcData,ler=Dr().counterRegex,uer=j$(),$$e=tQ(),Q$e=$$e.attr,yw=$$e.name,J$e=ler(yw),eQe={};eQe[Q$e]={valType:"subplotid",dflt:yw,editType:"calc"};function cer(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[yw],i=0;i{"use strict";var her=Qo().hovertemplateAttrs,der=Qo().texttemplateAttrs,A9=Ao().extendFlat,ver=Cg(),d0=pf(),per=Gl(),$5=d0.line;iQe.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:der({editType:"plot"},{keys:["real","imag","text"]}),hovertext:d0.hovertext,line:{color:$5.color,width:$5.width,dash:$5.dash,backoff:$5.backoff,shape:A9({},$5.shape,{values:["linear","spline"]}),smoothing:$5.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:A9({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:A9({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:ver(),hoverinfo:A9({},per.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:her(),selected:d0.selected,unselected:d0.unselected}});var oQe=ye((_wr,aQe)=>{"use strict";var S9=Dr(),Q5=Ru(),ger=$p(),mer=D0(),nQe=$3(),yer=F0(),_er=Ig(),xer=Sm().PTS_LINESONLY,ber=nQ();aQe.exports=function(t,r,n,i){function a(l,u){return S9.coerce(t,r,ber,l,u)}var o=wer(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var sQe=ho();lQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=sQe.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=sQe.tickText(a.angularAxis,t.imag,!0).text,i}});var hQe=ye((bwr,fQe)=>{"use strict";var cQe=Eo(),Ter=hs().BADNUM,Aer=z0(),Ser=Cm(),Mer=O0(),Eer=q0().calcMarkerSize;fQe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].realaxis,o=n[i].imaginaryaxis,s=a.makeCalcdata(r,"real"),l=o.makeCalcdata(r,"imag"),u=r._length,c=new Array(u),f=0;f{"use strict";var Cer=nT(),dQe=hs().BADNUM,ker=V$(),Ler=ker.smith;vQe.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=0;l{"use strict";var Per=lT();function Ier(e,t,r,n){var i=Per(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,gQe(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function gQe(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["real","imag","text"]),f.indexOf("real")!==-1&&c(i,n.realLabel),f.indexOf("imag")!==-1&&c(a,n.imagLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}mQe.exports={hoverPoints:Ier,makeHoverPointText:gQe}});var xQe=ye((Awr,_Qe)=>{"use strict";_Qe.exports={moduleType:"trace",name:"scattersmith",basePlotModule:rQe(),categories:["smith","symbols","showLegend","scatter-like"],attributes:nQ(),supplyDefaults:oQe(),colorbar:$d(),formatLabels:uQe(),calc:hQe(),plot:pQe(),style:op().style,styleOnSelect:op().styleOnSelect,hoverPoints:yQe().hoverPoints,selectPoints:uT(),meta:{}}});var wQe=ye((Swr,bQe)=>{"use strict";bQe.exports=xQe()});var Ev=ye((Mwr,AQe)=>{var E9=Fh();function TQe(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}E9(TQe.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,i){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,i):n)||this.instance(),n.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(a===0?"":e[a]+t[i])+n,i++,r=Math.floor(r/10)}return n.indexOf(e[1]+t[1])===0&&(n=n.substr(1)),n||e[0]}}});function aQ(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function M9(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}E9(aQ.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Hs.local.differentCalendars||Hs.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+M9(Math.abs(this.year()),4)+"-"+M9(this.month(),2)+"-"+M9(this.day(),2)}});function oQ(){this.shortYearCutoff="+10"}E9(oQ.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new aQ(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+M9(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Hs.local.invalidMonth||Hs.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Hs.local.invalidMonth||Hs.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var n=e.toJD()+t*(r==="w"?this.daysInWeek():1),i=e.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),i=e.day(),s=function(c){for(;of-1+c.minMonth;)a++,o-=f,f=c.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var l=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,l}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,t,r,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;t=this._add(e,r*i[0]+a*i[1],i[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate);var n=r==="y"?t:e.year(),i=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(n,i))),e.date(n,i,a)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var i=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),u=i-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Hs=AQe.exports=new TQe;Hs.cdate=aQ;Hs.baseCalendar=oQ;Hs.calendars.gregorian=sQ});var SQe=ye(()=>{var lQ=Fh(),Ud=Ev();lQ(Ud.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Ud.local=Ud.regionalOptions[""];lQ(Ud.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});lQ(Ud.baseCalendar.prototype,{UNIX_EPOCH:Ud.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Ud.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw Ud.local.invalidFormat||Ud.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,l=r.calculateWeek||this.local.calculateWeek,u=function(A,L){for(var x=1;E+x1},c=function(A,L,x,k){var M=""+L;if(u(A,k))for(;M.length1},C=function(z,O){var V=p(z,O),G=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(z)+1],Z=new RegExp("^-?\\d{1,"+G+"}"),H=t.substring(M).match(Z);if(!H)throw(Ud.local.missingNumberAt||Ud.regionalOptions[""].missingNumberAt).replace(/\{0\}/,M);return M+=H[0].length,parseInt(H[0],10)},E=this,A=function(){if(typeof s=="function"){p("m");var z=s.call(E,t.substring(M));return M+=z.length,z}return C("m")},L=function(z,O,V,G){for(var Z=p(z,G)?V:O,H=0;H-1){h=1,d=v;for(var T=this.daysInMonth(f,h);d>T;T=this.daysInMonth(f,h))h++,d-=T}return c>-1?this.fromJD(c):this.newDate(f,h,d)},determineDate:function(e,t,r,n,i){r&&typeof r!="object"&&(i=n,n=r,r=null),typeof n!="string"&&(i=n,n="");var a=this,o=function(s){try{return a.parseDate(n,s,i)}catch(f){}s=s.toLowerCase();for(var l=(s.match(/^c/)&&r?r.newDate():null)||a.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,c=u.exec(s);c;)l.add(parseInt(c[1],10),c[2]||"d"),c=u.exec(s);return l};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var MQe=ye(()=>{var Dx=Ev(),Rer=Fh(),uQ=Dx.instance();function C9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C9.prototype=new Dx.baseCalendar;Rer(C9.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(Fer);return r?r[0]:""}var n=this._validateYear(e),i=e.month(),a=""+this.toChineseMonth(n,i);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(n,i)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(zer);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(Oer);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),n;if(isNaN(r))t[0]==="\u95F0"&&(n=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var i=t[t.length-1];n=i==="i"||i==="I"}var a=this.toMonthIndex(e,r,n);return a},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var n=this.intercalaryMonth(e),i=r&&t!==n;if(i||t<1||t>12)throw Dx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return n?!r&&t<=n?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),n=r?12:11;if(t<0||t>n)throw Dx.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var n=this._validateYear(e,Dx.local.invalidyear),i=zx[n-zx[0]],a=i>>9&4095,o=i>>5&15,s=i&31,l;l=uQ.newDate(a,o,s),l.add(4-(l.dayOfWeek()||7),"d");var u=this.toJD(e,t,r)-l.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=Fx[e-Fx[0]],n=r>>13,i=n?12:11;if(t>i)throw Dx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,a,r,Dx.local.invalidDate);e=this._validateYear(n.year()),t=n.month(),r=n.day();var i=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=Ber(e,a,r,i);return uQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=uQ.fromJD(e),r=qer(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(Der),r=this._validateYear(+t[1]),n=+t[2],i=!!t[3],a=this.toMonthIndex(r,n,i),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var n=e.year(),i=e.month(),a=this.isIntercalaryMonth(n,i),o=this.toChineseMonth(n,i),s=Object.getPrototypeOf(C9.prototype).add.call(this,e,t,r);if(r==="y"){var l=s.year(),u=s.month(),c=this.isIntercalaryMonth(l,o),f=a&&c?this.toMonthIndex(l,o,!0):this.toMonthIndex(l,o,!1);f!==u&&s.month(f)}return s}});var Der=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Fer=/^\d?\d[iI]?/m,zer=/^闰?十?[一二三四五六七八九]?月/m,Oer=/^闰?十?[一二三四五六七八九]?/m;Dx.calendars.chinese=C9;var Fx=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],zx=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function qer(e,t,r,n){var i,a;if(typeof e=="object")i=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=31;if(!l)throw new Error("Solar day outside range 1 - 31");i={year:e,month:t,day:r},a=n||{}}var u=zx[i.year-zx[0]],c=i.year<<9|i.month<<5|i.day;a.year=c>=u?i.year:i.year-1,u=zx[a.year-zx[0]];var f=u>>9&4095,h=u>>5&15,d=u&31,v,_=new Date(f,h-1,d),b=new Date(i.year,i.month-1,i.day);v=Math.round((b-_)/(24*3600*1e3));var p=Fx[a.year-Fx[0]],C;for(C=0;C<13;C++){var E=p&1<<12-C?30:29;if(v>13;return!A||C=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var l=typeof t=="number"&&t>=1&&t<=12;if(!l)throw new Error("Lunar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var c;typeof n=="object"?(c=!1,a=n):(c=!!n,a=i||{}),o={year:e,month:t,day:r,isIntercalary:c}}var f;f=o.day-1;var h=Fx[o.year-Fx[0]],d=h>>13,v;d&&(o.month>d||o.isIntercalary)?v=o.month:v=o.month-1;for(var _=0;_>9&4095,E=p>>5&15,A=p&31,L=new Date(C,E-1,A+f);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var EQe=ye(()=>{var _w=Ev(),Ner=Fh();function cQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}cQ.prototype=new _w.baseCalendar;Ner(cQ.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,_w.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_w.local.invalidYear||_w.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,_w.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,_w.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});_w.calendars.coptic=cQ});var CQe=ye(()=>{var b1=Ev(),Uer=Fh();function fQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fQ.prototype=new b1.baseCalendar;Uer(fQ.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,b1.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return{century:Ver[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return e=n.year()+(n.year()<0?1:0),t=n.month(),r=n.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,n)}});var Ver={20:"Fruitbat",21:"Anchovy"};b1.calendars.discworld=fQ});var kQe=ye(()=>{var xw=Ev(),Ger=Fh();function hQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hQ.prototype=new xw.baseCalendar;Ger(hQ.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,xw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,xw.local.invalidYear||xw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,xw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,xw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});xw.calendars.ethiopian=hQ});var LQe=ye(()=>{var Ox=Ev(),Her=Fh();function dQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dQ.prototype=new Ox.baseCalendar;Her(dQ.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,k9(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Ox.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&k9(this.daysInYear(e),10)===5?30:t===9&&k9(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,Ox.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,t,r){var n=this._validate(e,t,r,Ox.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=e<=0?e+1:e,a=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});function k9(e,t){return e-t*Math.floor(e/t)}Ox.calendars.hebrew=dQ});var PQe=ye(()=>{var dk=Ev(),jer=Fh();function vQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vQ.prototype=new dk.baseCalendar;jer(vQ.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,dk.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,dk.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,dk.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});dk.calendars.islamic=vQ});var IQe=ye(()=>{var vk=Ev(),Wer=Fh();function pQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}pQ.prototype=new vk.baseCalendar;Wer(pQ.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,vk.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,vk.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,vk.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),l=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,l)}});vk.calendars.julian=pQ});var DQe=ye(()=>{var cg=Ev(),Xer=Fh();function mQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}mQ.prototype=new cg.baseCalendar;Xer(mQ.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,cg.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,cg.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return r+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";t=t*20+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cg.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,cg.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cg.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,cg.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,cg.local.invalidDate);return n.day()},weekDay:function(e,t,r){return this._validate(e,t,r,cg.local.invalidDate),!0},extraInfo:function(e,t,r){var n=this._validate(e,t,r,cg.local.invalidDate),i=n.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=gQ(e+8+17*20,365);return[Math.floor(t/20)+1,gQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[RQe(e+20,20),RQe(e+4,13)]},toJD:function(e,t,r){var n=this._validate(e,t,r,cg.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}});function gQ(e,t){return e-t*Math.floor(e/t)}function RQe(e,t){return gQ(e-1,t)+1}cg.calendars.mayan=mQ});var zQe=ye(()=>{var bw=Ev(),Zer=Fh();function yQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yQ.prototype=new bw.baseCalendar;var FQe=bw.instance("gregorian");Zer(yQ.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,bw.local.invalidYear||bw.regionalOptions[""].invalidYear);return FQe.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,bw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,bw.local.invalidMonth),i=n.year();i<0&&i++;for(var a=n.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}});bw.calendars.nanakshahi=yQ});var OQe=ye(()=>{var ww=Ev(),Yer=Fh();function _Q(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_Q.prototype=new ww.baseCalendar;Yer(_Q.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ww.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,n=this.minMonth;n<=12;n++)r+=this.NEPALI_CALENDAR_DATA[e][n];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,ww.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var n=this._validate(e,t,r,ww.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=ww.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var l=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=i.daysInYear(l))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(l,1,1).add(a,"d").toJD()},fromJD:function(e){var t=ww.instance(),r=t.fromJD(e),n=r.year(),i=r.dayOfYear(),a=n+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>l;)o++,o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var u=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,u)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var eS=Ev(),Ker=Fh();function P9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function L9(e){var t=e-475;e<0&&t++;var r=.242197,n=r*t,i=r*(t+1),a=n-Math.floor(n),o=i-Math.floor(i);return a>o}P9.prototype=new eS.baseCalendar;Ker(P9.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,eS.local.invalidYear);return L9(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,eS.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,eS.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=0;if(e>0)for(var a=1;a0?e-1:e)*365+i+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,L9(r)?30:29)&&(r++,r===0&&r++);var n=e-this.toJD(r,1,1)+1,i=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),a=e-this.toJD(r,i,1)+1;return this.newDate(r,i,a)}});eS.calendars.persian=P9;eS.calendars.jalali=P9});var BQe=ye(()=>{var Tw=Ev(),Jer=Fh(),I9=Tw.instance();function xQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xQ.prototype=new Tw.baseCalendar;Jer(xQ.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Tw.local.invalidYear),r=this._t2gYear(t.year());return I9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Tw.local.invalidYear),i=this._t2gYear(n.year());return I9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Tw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Tw.local.invalidDate),i=this._t2gYear(n.year());return I9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=I9.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Tw.calendars.taiwan=xQ});var NQe=ye(()=>{var Aw=Ev(),$er=Fh(),R9=Aw.instance();function bQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bQ.prototype=new Aw.baseCalendar;$er(bQ.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Aw.local.invalidYear),r=this._t2gYear(t.year());return R9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Aw.local.invalidYear),i=this._t2gYear(n.year());return R9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Aw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Aw.local.invalidDate),i=this._t2gYear(n.year());return R9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=R9.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Aw.calendars.thai=bQ});var UQe=ye(()=>{var Sw=Ev(),Qer=Fh();function wQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wQ.prototype=new Sw.baseCalendar;Qer(wQ.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Sw.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Sw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return qx[i]-qx[i-1];i++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Sw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+qx[i-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),o=a+1,s=i-12*a,l=t-qx[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var n=Sw.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,t,r,n){var i=Sw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Sw.calendars.ummalqura=wQ;var qx=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var GQe=ye((i3r,VQe)=>{"use strict";VQe.exports=Ev();SQe();MQe();EQe();CQe();kQe();LQe();PQe();IQe();DQe();zQe();OQe();qQe();BQe();NQe();UQe()});var KQe=ye((n3r,YQe)=>{"use strict";var jQe=GQe(),pk=Dr(),WQe=hs(),etr=WQe.EPOCHJD,ttr=WQe.ONEDAY,SQ={valType:"enumerated",values:pk.sortObjectKeys(jQe.calendars),editType:"calc",dflt:"gregorian"},XQe=function(e,t,r,n){var i={};return i[r]=SQ,pk.coerce(e,t,i,r,n)},rtr=function(e,t,r,n){for(var i=0;i{"use strict";JQe.exports=KQe()});var ltr=ye((o3r,eet)=>{var QQe=iye();QQe.register([a1e(),W1e(),axe(),Sxe(),qxe(),Dbe(),Xbe(),R2e(),lwe(),Gwe(),k3e(),UEe(),kCe(),_6e(),oLe(),zLe(),aPe(),kIe(),ZIe(),h8e(),A8e(),q8e(),Q8e(),pRe(),VDe(),lFe(),SBe(),SNe(),FUe(),oVe(),pGe(),LGe(),eHe(),fje(),Mje(),Kje(),nXe(),CXe(),uZe(),PYe(),eKe(),bKe(),XKe(),sJe(),a$e(),T$e(),V$e(),wQe(),$Qe()]);eet.exports=QQe});return ltr();})(); /*! * The buffer module from node.js, for the browser. * diff --git a/package-lock.json b/package-lock.json index b3b75cfa44c..668e6feff7e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "plotly.js", - "version": "3.1.1", + "version": "3.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "plotly.js", - "version": "3.1.1", + "version": "3.1.2", "license": "MIT", "dependencies": { "@plotly/d3": "3.8.2", diff --git a/package.json b/package.json index 32ca49508b7..37d9d68e861 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plotly.js", - "version": "3.1.1", + "version": "3.1.2", "description": "The open source javascript graphing library that powers plotly", "license": "MIT", "main": "./lib/index.js", diff --git a/src/version.js b/src/version.js index 510413659f9..a0ff8b78bed 100644 --- a/src/version.js +++ b/src/version.js @@ -1,4 +1,4 @@ 'use strict'; // package version injected by `npm run preprocess` -exports.version = '3.1.1'; +exports.version = '3.1.2';